/**
 * Lighthouse v13.0.3-93-gcb79bea56 (Jul 07 2026)
 *
 * Automated auditing, performance metrics, and best practices for the web.
 *
 * @homepage https://github.com/GoogleChrome/lighthouse#readme
 * @author   Copyright 2026 Google LLC
 * @license  Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 */
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __esm = (fn, res) => function __init() {
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
};
var __commonJS = (cb, mod2) => function __require() {
  return mod2 || (0, cb[__getOwnPropNames(cb)[0]])((mod2 = { exports: {} }).exports, mod2), mod2.exports;
};
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__getProtoOf(mod2)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod2 || !mod2.__esModule ? __defProp(target, "default", { value: mod2, enumerable: true }) : target,
  mod2
));
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);

// build/process-global.js
import process2 from "process";
var init_process_global = __esm({
  "build/process-global.js"() {
    "use strict";
    globalThis.process = process2;
  }
});

// types/lh.js
var init_lh = __esm({
  "types/lh.js"() {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
  }
});

// core/gather/base-gatherer.js
var BaseGatherer, base_gatherer_default;
var init_base_gatherer = __esm({
  "core/gather/base-gatherer.js"() {
    "use strict";
    init_process_global();
    init_lh();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    BaseGatherer = class {
      static {
        __name(this, "BaseGatherer");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = { supportedModes: [] };
      /**
       * Method to start observing a page for an arbitrary period of time.
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<void>|void}
       */
      startInstrumentation(passContext) {
      }
      /**
       * Method to start observing a page when the measurements are very sensitive and
       * should observe as little Lighthouse-induced work as possible.
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<void>|void}
       */
      startSensitiveInstrumentation(passContext) {
      }
      /**
       * Method to stop observing a page when the measurements are very sensitive and
       * should observe as little Lighthouse-induced work as possible.
       *
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<void>|void}
       */
      stopSensitiveInstrumentation(passContext) {
      }
      /**
       * Method to end observing a page after an arbitrary period of time.
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<void>|void}
       */
      stopInstrumentation(passContext) {
      }
      /**
       * Method to gather results about a page.
       * @param {LH.Gatherer.Context} passContext
       * @return {LH.Gatherer.PhaseResult}
       */
      getArtifact(passContext) {
      }
    };
    base_gatherer_default = BaseGatherer;
  }
});

// node_modules/ms/index.js
var require_ms = __commonJS({
  "node_modules/ms/index.js"(exports2, module2) {
    init_process_global();
    var s = 1e3;
    var m = s * 60;
    var h = m * 60;
    var d = h * 24;
    var w = d * 7;
    var y = d * 365.25;
    module2.exports = function(val, options) {
      options = options || {};
      var type = typeof val;
      if (type === "string" && val.length > 0) {
        return parse(val);
      } else if (type === "number" && isFinite(val)) {
        return options.long ? fmtLong(val) : fmtShort(val);
      }
      throw new Error(
        "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
      );
    };
    function parse(str) {
      str = String(str);
      if (str.length > 100) {
        return;
      }
      var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
        str
      );
      if (!match) {
        return;
      }
      var n = parseFloat(match[1]);
      var type = (match[2] || "ms").toLowerCase();
      switch (type) {
        case "years":
        case "year":
        case "yrs":
        case "yr":
        case "y":
          return n * y;
        case "weeks":
        case "week":
        case "w":
          return n * w;
        case "days":
        case "day":
        case "d":
          return n * d;
        case "hours":
        case "hour":
        case "hrs":
        case "hr":
        case "h":
          return n * h;
        case "minutes":
        case "minute":
        case "mins":
        case "min":
        case "m":
          return n * m;
        case "seconds":
        case "second":
        case "secs":
        case "sec":
        case "s":
          return n * s;
        case "milliseconds":
        case "millisecond":
        case "msecs":
        case "msec":
        case "ms":
          return n;
        default:
          return void 0;
      }
    }
    __name(parse, "parse");
    function fmtShort(ms) {
      var msAbs = Math.abs(ms);
      if (msAbs >= d) {
        return Math.round(ms / d) + "d";
      }
      if (msAbs >= h) {
        return Math.round(ms / h) + "h";
      }
      if (msAbs >= m) {
        return Math.round(ms / m) + "m";
      }
      if (msAbs >= s) {
        return Math.round(ms / s) + "s";
      }
      return ms + "ms";
    }
    __name(fmtShort, "fmtShort");
    function fmtLong(ms) {
      var msAbs = Math.abs(ms);
      if (msAbs >= d) {
        return plural(ms, msAbs, d, "day");
      }
      if (msAbs >= h) {
        return plural(ms, msAbs, h, "hour");
      }
      if (msAbs >= m) {
        return plural(ms, msAbs, m, "minute");
      }
      if (msAbs >= s) {
        return plural(ms, msAbs, s, "second");
      }
      return ms + " ms";
    }
    __name(fmtLong, "fmtLong");
    function plural(ms, msAbs, n, name) {
      var isPlural = msAbs >= n * 1.5;
      return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
    }
    __name(plural, "plural");
  }
});

// node_modules/debug/src/common.js
var require_common = __commonJS({
  "node_modules/debug/src/common.js"(exports2, module2) {
    init_process_global();
    function setup(env) {
      createDebug.debug = createDebug;
      createDebug.default = createDebug;
      createDebug.coerce = coerce;
      createDebug.disable = disable;
      createDebug.enable = enable;
      createDebug.enabled = enabled;
      createDebug.humanize = require_ms();
      createDebug.destroy = destroy;
      Object.keys(env).forEach((key) => {
        createDebug[key] = env[key];
      });
      createDebug.names = [];
      createDebug.skips = [];
      createDebug.formatters = {};
      function selectColor(namespace) {
        let hash = 0;
        for (let i = 0; i < namespace.length; i++) {
          hash = (hash << 5) - hash + namespace.charCodeAt(i);
          hash |= 0;
        }
        return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
      }
      __name(selectColor, "selectColor");
      createDebug.selectColor = selectColor;
      function createDebug(namespace) {
        let prevTime;
        let enableOverride = null;
        let namespacesCache;
        let enabledCache;
        function debug2(...args) {
          if (!debug2.enabled) {
            return;
          }
          const self2 = debug2;
          const curr = Number(/* @__PURE__ */ new Date());
          const ms = curr - (prevTime || curr);
          self2.diff = ms;
          self2.prev = prevTime;
          self2.curr = curr;
          prevTime = curr;
          args[0] = createDebug.coerce(args[0]);
          if (typeof args[0] !== "string") {
            args.unshift("%O");
          }
          let index = 0;
          args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
            if (match === "%%") {
              return "%";
            }
            index++;
            const formatter = createDebug.formatters[format];
            if (typeof formatter === "function") {
              const val = args[index];
              match = formatter.call(self2, val);
              args.splice(index, 1);
              index--;
            }
            return match;
          });
          createDebug.formatArgs.call(self2, args);
          const logFn = self2.log || createDebug.log;
          logFn.apply(self2, args);
        }
        __name(debug2, "debug");
        debug2.namespace = namespace;
        debug2.useColors = createDebug.useColors();
        debug2.color = createDebug.selectColor(namespace);
        debug2.extend = extend;
        debug2.destroy = createDebug.destroy;
        Object.defineProperty(debug2, "enabled", {
          enumerable: true,
          configurable: false,
          get: /* @__PURE__ */ __name(() => {
            if (enableOverride !== null) {
              return enableOverride;
            }
            if (namespacesCache !== createDebug.namespaces) {
              namespacesCache = createDebug.namespaces;
              enabledCache = createDebug.enabled(namespace);
            }
            return enabledCache;
          }, "get"),
          set: /* @__PURE__ */ __name((v) => {
            enableOverride = v;
          }, "set")
        });
        if (typeof createDebug.init === "function") {
          createDebug.init(debug2);
        }
        return debug2;
      }
      __name(createDebug, "createDebug");
      function extend(namespace, delimiter) {
        const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
        newDebug.log = this.log;
        return newDebug;
      }
      __name(extend, "extend");
      function enable(namespaces) {
        createDebug.save(namespaces);
        createDebug.namespaces = namespaces;
        createDebug.names = [];
        createDebug.skips = [];
        const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
        for (const ns of split) {
          if (ns[0] === "-") {
            createDebug.skips.push(ns.slice(1));
          } else {
            createDebug.names.push(ns);
          }
        }
      }
      __name(enable, "enable");
      function matchesTemplate(search, template) {
        let searchIndex = 0;
        let templateIndex = 0;
        let starIndex = -1;
        let matchIndex = 0;
        while (searchIndex < search.length) {
          if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
            if (template[templateIndex] === "*") {
              starIndex = templateIndex;
              matchIndex = searchIndex;
              templateIndex++;
            } else {
              searchIndex++;
              templateIndex++;
            }
          } else if (starIndex !== -1) {
            templateIndex = starIndex + 1;
            matchIndex++;
            searchIndex = matchIndex;
          } else {
            return false;
          }
        }
        while (templateIndex < template.length && template[templateIndex] === "*") {
          templateIndex++;
        }
        return templateIndex === template.length;
      }
      __name(matchesTemplate, "matchesTemplate");
      function disable() {
        const namespaces = [
          ...createDebug.names,
          ...createDebug.skips.map((namespace) => "-" + namespace)
        ].join(",");
        createDebug.enable("");
        return namespaces;
      }
      __name(disable, "disable");
      function enabled(name) {
        for (const skip of createDebug.skips) {
          if (matchesTemplate(name, skip)) {
            return false;
          }
        }
        for (const ns of createDebug.names) {
          if (matchesTemplate(name, ns)) {
            return true;
          }
        }
        return false;
      }
      __name(enabled, "enabled");
      function coerce(val) {
        if (val instanceof Error) {
          return val.stack || val.message;
        }
        return val;
      }
      __name(coerce, "coerce");
      function destroy() {
        console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
      }
      __name(destroy, "destroy");
      createDebug.enable(createDebug.load());
      return createDebug;
    }
    __name(setup, "setup");
    module2.exports = setup;
  }
});

// node_modules/debug/src/browser.js
var require_browser = __commonJS({
  "node_modules/debug/src/browser.js"(exports2, module2) {
    init_process_global();
    exports2.formatArgs = formatArgs;
    exports2.save = save;
    exports2.load = load;
    exports2.useColors = useColors;
    exports2.storage = localstorage();
    exports2.destroy = /* @__PURE__ */ (() => {
      let warned = false;
      return () => {
        if (!warned) {
          warned = true;
          console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
        }
      };
    })();
    exports2.colors = [
      "#0000CC",
      "#0000FF",
      "#0033CC",
      "#0033FF",
      "#0066CC",
      "#0066FF",
      "#0099CC",
      "#0099FF",
      "#00CC00",
      "#00CC33",
      "#00CC66",
      "#00CC99",
      "#00CCCC",
      "#00CCFF",
      "#3300CC",
      "#3300FF",
      "#3333CC",
      "#3333FF",
      "#3366CC",
      "#3366FF",
      "#3399CC",
      "#3399FF",
      "#33CC00",
      "#33CC33",
      "#33CC66",
      "#33CC99",
      "#33CCCC",
      "#33CCFF",
      "#6600CC",
      "#6600FF",
      "#6633CC",
      "#6633FF",
      "#66CC00",
      "#66CC33",
      "#9900CC",
      "#9900FF",
      "#9933CC",
      "#9933FF",
      "#99CC00",
      "#99CC33",
      "#CC0000",
      "#CC0033",
      "#CC0066",
      "#CC0099",
      "#CC00CC",
      "#CC00FF",
      "#CC3300",
      "#CC3333",
      "#CC3366",
      "#CC3399",
      "#CC33CC",
      "#CC33FF",
      "#CC6600",
      "#CC6633",
      "#CC9900",
      "#CC9933",
      "#CCCC00",
      "#CCCC33",
      "#FF0000",
      "#FF0033",
      "#FF0066",
      "#FF0099",
      "#FF00CC",
      "#FF00FF",
      "#FF3300",
      "#FF3333",
      "#FF3366",
      "#FF3399",
      "#FF33CC",
      "#FF33FF",
      "#FF6600",
      "#FF6633",
      "#FF9900",
      "#FF9933",
      "#FFCC00",
      "#FFCC33"
    ];
    function useColors() {
      if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
        return true;
      }
      if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
        return false;
      }
      let m;
      return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
      typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
      // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
      typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
      typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
    }
    __name(useColors, "useColors");
    function formatArgs(args) {
      args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
      if (!this.useColors) {
        return;
      }
      const c = "color: " + this.color;
      args.splice(1, 0, c, "color: inherit");
      let index = 0;
      let lastC = 0;
      args[0].replace(/%[a-zA-Z%]/g, (match) => {
        if (match === "%%") {
          return;
        }
        index++;
        if (match === "%c") {
          lastC = index;
        }
      });
      args.splice(lastC, 0, c);
    }
    __name(formatArgs, "formatArgs");
    exports2.log = console.debug || console.log || (() => {
    });
    function save(namespaces) {
      try {
        if (namespaces) {
          exports2.storage.setItem("debug", namespaces);
        } else {
          exports2.storage.removeItem("debug");
        }
      } catch (error) {
      }
    }
    __name(save, "save");
    function load() {
      let r;
      try {
        r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
      } catch (error) {
      }
      if (!r && typeof process !== "undefined" && "env" in process) {
        r = process.env.DEBUG;
      }
      return r;
    }
    __name(load, "load");
    function localstorage() {
      try {
        return localStorage;
      } catch (error) {
      }
    }
    __name(localstorage, "localstorage");
    module2.exports = require_common()(exports2);
    var { formatters } = module2.exports;
    formatters.j = function(v) {
      try {
        return JSON.stringify(v);
      } catch (error) {
        return "[UnexpectedJSONParseError]: " + error.message;
      }
    };
  }
});

// node_modules/marky/lib/marky.cjs.js
var require_marky_cjs = __commonJS({
  "node_modules/marky/lib/marky.cjs.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    var perf = typeof performance !== "undefined" && performance;
    var nowForNode;
    {
      hrtime = process.hrtime;
      getNanoSeconds = /* @__PURE__ */ __name(function() {
        var hr = hrtime();
        return hr[0] * 1e9 + hr[1];
      }, "getNanoSeconds");
      loadTime = getNanoSeconds();
      nowForNode = /* @__PURE__ */ __name(function() {
        return (getNanoSeconds() - loadTime) / 1e6;
      }, "nowForNode");
    }
    var hrtime;
    var getNanoSeconds;
    var loadTime;
    var now = nowForNode;
    function throwIfEmpty(name) {
      if (!name) {
        throw new Error("name must be non-empty");
      }
    }
    __name(throwIfEmpty, "throwIfEmpty");
    function insertSorted(arr, item) {
      var low = 0;
      var high = arr.length;
      var mid;
      while (low < high) {
        mid = low + high >>> 1;
        if (arr[mid].startTime < item.startTime) {
          low = mid + 1;
        } else {
          high = mid;
        }
      }
      arr.splice(low, 0, item);
    }
    __name(insertSorted, "insertSorted");
    exports2.mark = void 0;
    exports2.stop = void 0;
    exports2.getEntries = void 0;
    exports2.clear = void 0;
    if (perf && perf.mark && perf.getEntriesByName && perf.getEntriesByType && perf.clearMeasures) {
      exports2.mark = function(name) {
        throwIfEmpty(name);
        perf.mark("start " + name);
      };
      exports2.stop = function(name) {
        throwIfEmpty(name);
        perf.mark("end " + name);
        perf.measure(name, "start " + name, "end " + name);
        var entries2 = perf.getEntriesByName(name);
        return entries2[entries2.length - 1];
      };
      exports2.getEntries = function() {
        return perf.getEntriesByType("measure");
      };
      exports2.clear = function() {
        perf.clearMarks();
        perf.clearMeasures();
      };
    } else {
      marks = {};
      entries = [];
      exports2.mark = function(name) {
        throwIfEmpty(name);
        var startTime = now();
        marks["$" + name] = startTime;
      };
      exports2.stop = function(name) {
        throwIfEmpty(name);
        var endTime = now();
        var startTime = marks["$" + name];
        if (!startTime) {
          throw new Error("no known mark: " + name);
        }
        var entry = {
          startTime,
          name,
          duration: endTime - startTime,
          entryType: "measure"
        };
        insertSorted(entries, entry);
        return entry;
      };
      exports2.getEntries = function() {
        return entries;
      };
      exports2.clear = function() {
        marks = {};
        entries = [];
      };
    }
    var marks;
    var entries;
  }
});

// lighthouse-logger/index.js
import process3 from "process";
import { EventEmitter } from "events";
var import_debug, marky, isWindows, isBrowser, colors, Emitter, loggersByTitle, loggingBufferColumns, level_, Log, lighthouse_logger_default;
var init_lighthouse_logger = __esm({
  "lighthouse-logger/index.js"() {
    "use strict";
    init_process_global();
    import_debug = __toESM(require_browser(), 1);
    marky = __toESM(require_marky_cjs(), 1);
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    isWindows = process3.platform === "win32";
    isBrowser = process3.browser;
    colors = {
      red: isBrowser ? "crimson" : 1,
      yellow: isBrowser ? "gold" : 3,
      cyan: isBrowser ? "darkturquoise" : 6,
      green: isBrowser ? "forestgreen" : 2,
      blue: isBrowser ? "steelblue" : 4,
      magenta: isBrowser ? "palevioletred" : 5
    };
    import_debug.default.colors = [colors.cyan, colors.green, colors.blue, colors.magenta];
    Emitter = class extends EventEmitter {
      static {
        __name(this, "Emitter");
      }
      // yarn build-types fails without this!
      // https://github.com/microsoft/TypeScript/issues/41672#issuecomment-2303803072
      constructor(options) {
        super(options);
      }
      /**
       * Fires off all status updates. Listen with
       * `require('lib/log').events.addListener('status', callback)`
       * @param {string} title
       * @param {!Array<*>} argsArray
       */
      issueStatus(title, argsArray) {
        if (title === "status" || title === "statusEnd") {
          this.emit(title, [title, ...argsArray]);
        }
      }
      /**
       * Fires off all warnings. Listen with
       * `require('lib/log').events.addListener('warning', callback)`
       * @param {string} title
       * @param {!Array<*>} argsArray
       */
      issueWarning(title, argsArray) {
        this.emit("warning", [title, ...argsArray]);
      }
    };
    loggersByTitle = {};
    loggingBufferColumns = 25;
    Log = class _Log {
      static {
        __name(this, "Log");
      }
      static _logToStdErr(title, argsArray) {
        const log = _Log.loggerfn(title);
        log(...argsArray);
      }
      /**
       * @param {string} title
       */
      static loggerfn(title) {
        title = `LH:${title}`;
        let log = loggersByTitle[title];
        if (!log) {
          log = (0, import_debug.default)(title);
          loggersByTitle[title] = log;
          if (title.endsWith("error")) {
            log.color = colors.red;
          } else if (title.endsWith("warn")) {
            log.color = colors.yellow;
          }
        }
        return log;
      }
      /**
       * @param {string} level
       */
      static setLevel(level) {
        level_ = level;
        switch (level) {
          case "silent":
            import_debug.default.enable("-LH:*");
            break;
          case "verbose":
            import_debug.default.enable("LH:*");
            break;
          case "warn":
            import_debug.default.enable("-LH:*, LH:*:warn, LH:*:error");
            break;
          case "error":
            import_debug.default.enable("-LH:*, LH:*:error");
            break;
          default:
            import_debug.default.enable("LH:*, -LH:*:verbose");
        }
      }
      /**
       * A simple formatting utility for event logging.
       * @param {string} prefix
       * @param {!Object} data A JSON-serializable object of event data to log.
       * @param {string=} level Optional logging level. Defaults to 'log'.
       */
      static formatProtocol(prefix, data31, level) {
        const columns = !process3 || process3.browser ? Infinity : process3.stdout.columns;
        const method = data31.method || "?????";
        const maxLength = columns - method.length - prefix.length - loggingBufferColumns;
        const snippet = data31.params && method !== "IO.read" ? JSON.stringify(data31.params).substr(0, maxLength) : "";
        _Log._logToStdErr(`${prefix}:${level || ""}`, [method, snippet]);
      }
      /**
       * @return {boolean}
       */
      static isVerbose() {
        return level_ === "verbose";
      }
      /**
       * @param {{msg: string, id: string, args?: any[]}} status
       * @param {string} level
       */
      static time({ msg, id, args = [] }, level = "log") {
        marky.mark(id);
        _Log[level]("status", msg, ...args);
      }
      /**
       * @param {{msg: string, id: string, args?: any[]}} status
       * @param {string} level
       */
      static timeEnd({ msg, id, args = [] }, level = "verbose") {
        _Log[level]("statusEnd", msg, ...args);
        marky.stop(id);
      }
      /**
       * @param {string} title
       * @param {...any} args
       */
      static log(title, ...args) {
        _Log.events.issueStatus(title, args);
        return _Log._logToStdErr(title, args);
      }
      /**
       * @param {string} title
       * @param {...any} args
       */
      static warn(title, ...args) {
        _Log.events.issueWarning(title, args);
        return _Log._logToStdErr(`${title}:warn`, args);
      }
      /**
       * @param {string} title
       * @param {...any} args
       */
      static error(title, ...args) {
        return _Log._logToStdErr(`${title}:error`, args);
      }
      /**
       * @param {string} title
       * @param {...any} args
       */
      static verbose(title, ...args) {
        _Log.events.issueStatus(title, args);
        return _Log._logToStdErr(`${title}:verbose`, args);
      }
      /**
       * Add surrounding escape sequences to turn a string green when logged.
       * @param {string} str
       * @return {string}
       */
      static greenify(str) {
        return `${_Log.green}${str}${_Log.reset}`;
      }
      /**
       * Add surrounding escape sequences to turn a string red when logged.
       * @param {string} str
       * @return {string}
       */
      static redify(str) {
        return `${_Log.red}${str}${_Log.reset}`;
      }
      static get green() {
        return "\x1B[32m";
      }
      static get red() {
        return "\x1B[31m";
      }
      static get yellow() {
        return "\x1B[33m";
      }
      static get purple() {
        return "\x1B[95m";
      }
      static get reset() {
        return "\x1B[0m";
      }
      static get bold() {
        return "\x1B[1m";
      }
      static get dim() {
        return "\x1B[2m";
      }
      static get tick() {
        return isWindows ? "√" : "✓";
      }
      static get cross() {
        return isWindows ? "×" : "✘";
      }
      static get whiteSmallSquare() {
        return isWindows ? "·" : "▫";
      }
      static get heavyHorizontal() {
        return isWindows ? "─" : "━";
      }
      static get heavyVertical() {
        return isWindows ? "│ " : "┃ ";
      }
      static get heavyUpAndRight() {
        return isWindows ? "└" : "┗";
      }
      static get heavyVerticalAndRight() {
        return isWindows ? "├" : "┣";
      }
      static get heavyDownAndHorizontal() {
        return isWindows ? "┬" : "┳";
      }
      static get doubleLightHorizontal() {
        return "──";
      }
    };
    Log.events = new Emitter();
    Log.takeTimeEntries = () => {
      const entries = marky.getEntries();
      marky.clear();
      return entries;
    };
    Log.getTimeEntries = () => marky.getEntries();
    lighthouse_logger_default = Log;
  }
});

// core/lib/tracehouse/trace-processor.js
var ACCEPTABLE_NAVIGATION_URL_REGEX, BASE_RESPONSE_LATENCY, SCHEDULABLE_TASK_TITLE_LH, SCHEDULABLE_TASK_TITLE_ALT1, SCHEDULABLE_TASK_TITLE_ALT2, SCHEDULABLE_TASK_TITLE_ALT3, TraceProcessor;
var init_trace_processor = __esm({
  "core/lib/tracehouse/trace-processor.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    ACCEPTABLE_NAVIGATION_URL_REGEX = /^(chrome|https?):/;
    BASE_RESPONSE_LATENCY = 16;
    SCHEDULABLE_TASK_TITLE_LH = "RunTask";
    SCHEDULABLE_TASK_TITLE_ALT1 = "ThreadControllerImpl::RunTask";
    SCHEDULABLE_TASK_TITLE_ALT2 = "ThreadControllerImpl::DoWork";
    SCHEDULABLE_TASK_TITLE_ALT3 = "TaskQueueManager::ProcessTaskFromWorkQueue";
    TraceProcessor = class _TraceProcessor {
      static {
        __name(this, "TraceProcessor");
      }
      static get TIMESPAN_MARKER_ID() {
        return "__lighthouseTimespanStart__";
      }
      /**
       * @return {Error}
       */
      static createNoNavstartError() {
        return new Error("No navigationStart event found");
      }
      /**
       * @return {Error}
       */
      static createNoResourceSendRequestError() {
        return new Error("No ResourceSendRequest event found");
      }
      /**
       * @return {Error}
       */
      static createNoTracingStartedError() {
        return new Error("No tracingStartedInBrowser event found");
      }
      /**
       * @return {Error}
       */
      static createNoFirstContentfulPaintError() {
        return new Error("No FirstContentfulPaint event found");
      }
      /**
       * @return {Error}
       */
      static createNoLighthouseMarkerError() {
        return new Error("No Lighthouse timespan marker event found");
      }
      /**
       * Returns true if the event is a navigation start event of a document whose URL seems valid.
       *
       * @param {LH.TraceEvent} event
       * @return {boolean}
       */
      static _isNavigationStartOfInterest(event) {
        if (event.name !== "navigationStart") return false;
        if (event.args.data?.documentLoaderURL === void 0) return true;
        if (!event.args.data?.documentLoaderURL) return false;
        return ACCEPTABLE_NAVIGATION_URL_REGEX.test(event.args.data.documentLoaderURL);
      }
      /**
       * This method sorts a group of trace events that have the same timestamp. We want to...
       *
       * 1. Put E events first, we finish off our existing events before we start new ones.
       * 2. Order B/X events by their duration, we want parents to start before child events.
       * 3. If we don't have any of this to go on, just use the position in the original array (stable sort).
       *
       * Note that the typical group size with the same timestamp will be quite small (<10 or so events),
       * and the number of groups typically ~1% of total trace, so the same ultra-performance-sensitive consideration
       * given to functions that run on entire traces does not necessarily apply here.
       *
       * @param {number[]} tsGroupIndices
       * @param {number[]} timestampSortedIndices
       * @param {number} indexOfTsGroupIndicesStart
       * @param {LH.TraceEvent[]} traceEvents
       * @return {number[]}
       */
      static _sortTimestampEventGroup(tsGroupIndices, timestampSortedIndices, indexOfTsGroupIndicesStart, traceEvents) {
        const lookupArrayIndexByTsIndex = /* @__PURE__ */ __name((i) => timestampSortedIndices[i], "lookupArrayIndexByTsIndex");
        const lookupEventByTsIndex = /* @__PURE__ */ __name((i) => traceEvents[lookupArrayIndexByTsIndex(i)], "lookupEventByTsIndex");
        const eEventIndices = [];
        const bxEventIndices = [];
        const otherEventIndices = [];
        for (const tsIndex of tsGroupIndices) {
          const arrayIndex = lookupArrayIndexByTsIndex(tsIndex);
          const event = lookupEventByTsIndex(tsIndex);
          if (event.ph === "E") eEventIndices.push(arrayIndex);
          else if (event.ph === "X" || event.ph === "B") bxEventIndices.push(arrayIndex);
          else otherEventIndices.push(arrayIndex);
        }
        const effectiveDuration = /* @__PURE__ */ new Map();
        for (const index of bxEventIndices) {
          const event = traceEvents[index];
          if (event.ph === "X") {
            effectiveDuration.set(index, event.dur);
          } else {
            let duration = Number.MAX_SAFE_INTEGER;
            let additionalNestedEventsWithSameName = 0;
            const startIndex = indexOfTsGroupIndicesStart + tsGroupIndices.length;
            for (let j = startIndex; j < timestampSortedIndices.length; j++) {
              const potentialMatchingEvent = lookupEventByTsIndex(j);
              const eventMatches = potentialMatchingEvent.name === event.name && potentialMatchingEvent.pid === event.pid && potentialMatchingEvent.tid === event.tid;
              if (!eventMatches) continue;
              if (potentialMatchingEvent.ph === "E" && additionalNestedEventsWithSameName === 0) {
                duration = potentialMatchingEvent.ts - event.ts;
                break;
              } else if (potentialMatchingEvent.ph === "E") {
                additionalNestedEventsWithSameName--;
              } else if (potentialMatchingEvent.ph === "B") {
                additionalNestedEventsWithSameName++;
              }
            }
            effectiveDuration.set(index, duration);
          }
        }
        bxEventIndices.sort((indexA, indexB) => (effectiveDuration.get(indexB) || 0) - (effectiveDuration.get(indexA) || 0) || indexA - indexB);
        otherEventIndices.sort((indexA, indexB) => indexA - indexB);
        return [...eEventIndices, ...bxEventIndices, ...otherEventIndices];
      }
      /**
       * Sorts and filters trace events by timestamp and respecting the nesting structure inherent to
       * parent/child event relationships.
       *
       * @param {LH.TraceEvent[]} traceEvents
       * @param {(e: LH.TraceEvent) => boolean} filter
       */
      static filteredTraceSort(traceEvents, filter) {
        const indices = [];
        for (let srcIndex = 0; srcIndex < traceEvents.length; srcIndex++) {
          if (filter(traceEvents[srcIndex])) {
            indices.push(srcIndex);
          }
        }
        indices.sort((indexA, indexB) => traceEvents[indexA].ts - traceEvents[indexB].ts);
        for (let i = 0; i < indices.length - 1; i++) {
          const ts = traceEvents[indices[i]].ts;
          const tsGroupIndices = [i];
          for (let j = i + 1; j < indices.length; j++) {
            if (traceEvents[indices[j]].ts !== ts) break;
            tsGroupIndices.push(j);
          }
          if (tsGroupIndices.length === 1) continue;
          const finalIndexOrder = _TraceProcessor._sortTimestampEventGroup(
            tsGroupIndices,
            indices,
            i,
            traceEvents
          );
          indices.splice(i, finalIndexOrder.length, ...finalIndexOrder);
          i += tsGroupIndices.length - 1;
        }
        const sorted2 = [];
        for (let i = 0; i < indices.length; i++) {
          sorted2.push(traceEvents[indices[i]]);
        }
        return sorted2;
      }
      /**
       * There should *always* be at least one top level event, having 0 typically means something is
       * drastically wrong with the trace and we should just give up early and loudly.
       *
       * @param {LH.TraceEvent[]} events
       */
      static assertHasToplevelEvents(events) {
        const hasToplevelTask = events.some(this.isScheduleableTask);
        if (!hasToplevelTask) {
          throw new Error("Could not find any top level events");
        }
      }
      /**
       * Calculate duration at specified percentiles for given population of
       * durations.
       * If one of the durations overlaps the end of the window, the full
       * duration should be in the duration array, but the length not included
       * within the window should be given as `clippedLength`. For instance, if a
       * 50ms duration occurs 10ms before the end of the window, `50` should be in
       * the `durations` array, and `clippedLength` should be set to 40.
       * @see https://docs.google.com/document/d/1b9slyaB9yho91YTOkAQfpCdULFkZM9LqsipcX3t7He8/preview
       * @param {!Array<number>} durations Array of durations, sorted in ascending order.
       * @param {number} totalTime Total time (in ms) of interval containing durations.
       * @param {!Array<number>} percentiles Array of percentiles of interest, in ascending order.
       * @param {number=} clippedLength Optional length clipped from a duration overlapping end of window. Default of 0.
       * @return {!Array<{percentile: number, time: number}>}
       * @private
       */
      static _riskPercentiles(durations, totalTime, percentiles, clippedLength = 0) {
        let busyTime = 0;
        for (let i = 0; i < durations.length; i++) {
          busyTime += durations[i];
        }
        busyTime -= clippedLength;
        let completedTime = totalTime - busyTime;
        let duration = 0;
        let cdfTime = completedTime;
        const results = [];
        let durationIndex = -1;
        let remainingCount = durations.length + 1;
        if (clippedLength > 0) {
          remainingCount--;
        }
        for (const percentile of percentiles) {
          const percentileTime = percentile * totalTime;
          while (cdfTime < percentileTime && durationIndex < durations.length - 1) {
            completedTime += duration;
            remainingCount -= duration < 0 ? -1 : 1;
            if (clippedLength > 0 && clippedLength < durations[durationIndex + 1]) {
              duration = -clippedLength;
              clippedLength = 0;
            } else {
              durationIndex++;
              duration = durations[durationIndex];
            }
            cdfTime = completedTime + Math.abs(duration) * remainingCount;
          }
          results.push({
            percentile,
            time: Math.max(0, (percentileTime - completedTime) / remainingCount) + BASE_RESPONSE_LATENCY
          });
        }
        return results;
      }
      /**
       * Calculates the maximum queueing time (in ms) of high priority tasks for
       * selected percentiles within a window of the main thread.
       * @see https://docs.google.com/document/d/1b9slyaB9yho91YTOkAQfpCdULFkZM9LqsipcX3t7He8/preview
       * @param {Array<ToplevelEvent>} events
       * @param {number} startTime Start time (in ms relative to timeOrigin) of range of interest.
       * @param {number} endTime End time (in ms relative to timeOrigin) of range of interest.
       * @param {!Array<number>=} percentiles Optional array of percentiles to compute. Defaults to [0.5, 0.75, 0.9, 0.99, 1].
       * @return {!Array<{percentile: number, time: number}>}
       */
      static getRiskToResponsiveness(events, startTime, endTime, percentiles = [0.5, 0.75, 0.9, 0.99, 1]) {
        const totalTime = endTime - startTime;
        percentiles.sort((a, b) => a - b);
        const ret = this.getMainThreadTopLevelEventDurations(events, startTime, endTime);
        return this._riskPercentiles(
          ret.durations,
          totalTime,
          percentiles,
          ret.clippedLength
        );
      }
      /**
       * Provides durations in ms of all main thread top-level events
       * @param {Array<ToplevelEvent>} topLevelEvents
       * @param {number} startTime Optional start time (in ms relative to timeOrigin) of range of interest. Defaults to 0.
       * @param {number} endTime Optional end time (in ms relative to timeOrigin) of range of interest. Defaults to trace end.
       * @return {{durations: Array<number>, clippedLength: number}}
       */
      static getMainThreadTopLevelEventDurations(topLevelEvents, startTime = 0, endTime = Infinity) {
        const durations = [];
        let clippedLength = 0;
        for (const event of topLevelEvents) {
          if (event.end < startTime || event.start > endTime) {
            continue;
          }
          let duration = event.duration;
          let eventStart = event.start;
          if (eventStart < startTime) {
            eventStart = startTime;
            duration = event.end - startTime;
          }
          if (event.end > endTime) {
            clippedLength = duration - (endTime - eventStart);
          }
          durations.push(duration);
        }
        durations.sort((a, b) => a - b);
        return {
          durations,
          clippedLength
        };
      }
      /**
       * Provides the top level events on the main thread with timestamps in ms relative to timeOrigin.
       * start.
       * @param {LH.Artifacts.ProcessedTrace} trace
       * @param {number=} startTime Optional start time (in ms relative to timeOrigin) of range of interest. Defaults to 0.
       * @param {number=} endTime Optional end time (in ms relative to timeOrigin) of range of interest. Defaults to trace end.
       * @return {Array<ToplevelEvent>}
       */
      static getMainThreadTopLevelEvents(trace, startTime = 0, endTime = Infinity) {
        const topLevelEvents = [];
        let prevToplevel = void 0;
        for (const event of trace.mainThreadEvents) {
          if (!this.isScheduleableTask(event) || !event.dur) continue;
          const start = (event.ts - trace.timeOriginEvt.ts) / 1e3;
          const end = (event.ts + event.dur - trace.timeOriginEvt.ts) / 1e3;
          if (start > endTime || end < startTime) continue;
          if (prevToplevel && start < prevToplevel.end) {
            prevToplevel.end = start - 1e-3;
          }
          prevToplevel = {
            start,
            end,
            duration: event.dur / 1e3
          };
          topLevelEvents.push(prevToplevel);
        }
        return topLevelEvents;
      }
      /**
       * @param {LH.TraceEvent[]} events
       * @return {{startingPid: number, frameId: string}}
       */
      static findMainFrameIds(events) {
        const startedInBrowserEvt = events.find((e) => e.name === "TracingStartedInBrowser");
        if (startedInBrowserEvt?.args.data?.frames) {
          const mainFrame = startedInBrowserEvt.args.data.frames.find((frame) => !frame.parent);
          const frameId = mainFrame?.frame;
          const pid = mainFrame?.processId;
          if (pid && frameId) {
            return {
              startingPid: pid,
              frameId
            };
          }
        }
        const startedInPageEvt = events.find((e) => e.name === "TracingStartedInPage");
        if (startedInPageEvt?.args?.data) {
          const frameId = startedInPageEvt.args.data.page;
          if (frameId) {
            return {
              startingPid: startedInPageEvt.pid,
              frameId
            };
          }
        }
        const navStartEvt = events.find(
          (e) => this._isNavigationStartOfInterest(e) && e.args.data?.isLoadingMainFrame
        );
        const firstResourceSendEvt = events.find((e) => e.name === "ResourceSendRequest");
        if (navStartEvt?.args?.data && firstResourceSendEvt && firstResourceSendEvt.pid === navStartEvt.pid && firstResourceSendEvt.tid === navStartEvt.tid) {
          const frameId = navStartEvt.args.frame;
          if (frameId) {
            return {
              startingPid: navStartEvt.pid,
              frameId
            };
          }
        }
        throw this.createNoTracingStartedError();
      }
      /**
       * If there were any cross-origin navigations, there'll be more than one pid returned
       * @param {{startingPid: number, frameId: string}} mainFrameInfo
       * @param {LH.TraceEvent[]} keyEvents
       * @return {Map<number, number>} Map where keys are process IDs and their values are thread IDs
       */
      static findMainFramePidTids(mainFrameInfo, keyEvents) {
        const frameProcessEvts = keyEvents.filter(
          (evt) => (
            // ProcessReadyInBrowser is used when a processID isn't available when the FrameCommittedInBrowser trace event is emitted.
            // In that case. FrameCommittedInBrowser has no processId, but a processPseudoId. and the ProcessReadyInBrowser event declares the proper processId.
            (evt.name === "FrameCommittedInBrowser" || evt.name === "ProcessReadyInBrowser") && evt.args?.data?.frame === mainFrameInfo.frameId && evt?.args?.data?.processId
          )
        );
        const mainFramePids = frameProcessEvts.length ? frameProcessEvts.map((e) => e?.args?.data?.processId) : [mainFrameInfo.startingPid];
        const pidToTid = /* @__PURE__ */ new Map();
        for (const pid of new Set(mainFramePids)) {
          const threadEvents = keyEvents.filter(
            (e) => e.cat === "__metadata" && e.pid === pid && e.ph === "M" && e.name === "thread_name"
          );
          let threadNameEvt = threadEvents.find((e) => e.args.name === "CrRendererMain");
          if (!threadNameEvt) {
            threadNameEvt = threadEvents.find((e) => e.args.name === "CrBrowserMain");
          }
          const tid = threadNameEvt?.tid;
          if (!tid) {
            throw new Error("Unable to determine tid for renderer process");
          }
          pidToTid.set(pid, tid);
        }
        return pidToTid;
      }
      /**
       * @param {LH.TraceEvent} evt
       * @return {boolean}
       */
      static isScheduleableTask(evt) {
        return evt.name === SCHEDULABLE_TASK_TITLE_LH || evt.name === SCHEDULABLE_TASK_TITLE_ALT1 || evt.name === SCHEDULABLE_TASK_TITLE_ALT2 || evt.name === SCHEDULABLE_TASK_TITLE_ALT3;
      }
      /**
       * @param {LH.TraceEvent} evt
       * @return {evt is LCPEvent}
       */
      static isLCPEvent(evt) {
        if (evt.name !== "largestContentfulPaint::Invalidate" && evt.name !== "largestContentfulPaint::Candidate") return false;
        return Boolean(evt.args?.frame);
      }
      /**
       * @param {LH.TraceEvent} evt
       * @return {evt is LCPCandidateEvent}
       */
      static isLCPCandidateEvent(evt) {
        return Boolean(
          evt.name === "largestContentfulPaint::Candidate" && evt.args?.frame && evt.args.data && evt.args.data.size !== void 0
        );
      }
      /**
       * The associated frame ID is set in different locations for different trace events.
       * This function checks all known locations for the frame ID and returns `undefined` if it's not found.
       *
       * @param {LH.TraceEvent} evt
       * @return {string|undefined}
       */
      static getFrameId(evt) {
        return evt.args?.data?.frame || evt.args.data?.frameID || evt.args.frame;
      }
      /**
       * Returns the maximum LCP event across all frames in `events`.
       * Sets `invalidated` flag if LCP of every frame is invalidated.
       *
       * LCP's trace event was first introduced in m78. We can't surface an LCP for older Chrome versions.
       * LCP comes from a frame's latest `largestContentfulPaint::Candidate`, but it can be invalidated by a `largestContentfulPaint::Invalidate` event.
       *
       * @param {LH.TraceEvent[]} events
       * @param {LH.TraceEvent} timeOriginEvent
       * @param {string|undefined} mainFrameId
       * @return {{lcp: LCPEvent | undefined, invalidated: boolean}}
       */
      static computeValidLCPAllFrames(events, timeOriginEvent, mainFrameId2) {
        const lcpEvents = events.filter(this.isLCPEvent).reverse();
        const finalLcpEventsByFrame = /* @__PURE__ */ new Map();
        for (const e of lcpEvents) {
          if (e.ts <= timeOriginEvent.ts) break;
          const frame = e.args.frame;
          if (finalLcpEventsByFrame.has(frame)) continue;
          finalLcpEventsByFrame.set(frame, e);
        }
        let maxLcpAcrossFrames;
        for (const lcp of finalLcpEventsByFrame.values()) {
          if (!this.isLCPCandidateEvent(lcp)) continue;
          if (!maxLcpAcrossFrames || lcp.args.data.size > maxLcpAcrossFrames.args.data.size) {
            maxLcpAcrossFrames = lcp;
          }
        }
        if (!maxLcpAcrossFrames) {
          const ukmEvents = events.filter(
            (e) => e.name.includes("LargestContentfulPaint") && e.name.includes("UKM")
          );
          const targetEventName = "NavStartToLargestContentfulPaint::Invalidate::AllFrames::UKM";
          const ukmInvalidates = ukmEvents.filter((e) => e.name === targetEventName);
          if (ukmInvalidates.length > 0) {
            ukmInvalidates.sort((a, b) => a.ts - b.ts);
            const lastInvalidate = ukmInvalidates[ukmInvalidates.length - 1];
            lighthouse_logger_default.warn(
              "TraceProcessor",
              "LCP candidate missing, falling back to UKM Invalidate event."
            );
            maxLcpAcrossFrames = /** @type {LCPCandidateEvent} */
            /** @type {unknown} */
            {
              name: "largestContentfulPaint::Candidate",
              cat: "loading",
              ph: lastInvalidate.ph,
              ts: lastInvalidate.ts,
              pid: lastInvalidate.pid,
              tid: lastInvalidate.tid,
              args: {
                frame: mainFrameId2 || "main_frame",
                // Mocked frame ID
                data: {
                  size: 1,
                  // Don't know the actuall size so we assign it 1
                  isMainFrame: true,
                  isOutermostMainFrame: true
                }
              }
            };
          }
        }
        return {
          lcp: maxLcpAcrossFrames,
          // LCP events were found, but final LCP event of every frame was an invalidate event.
          invalidated: Boolean(!maxLcpAcrossFrames && finalLcpEventsByFrame.size)
        };
      }
      /**
       * @param {Array<{id: string, url: string, parent?: string}>} frames
       * @return {Map<string, string>}
       */
      static resolveRootFrames(frames2) {
        const parentFrames = /* @__PURE__ */ new Map();
        for (const frame of frames2) {
          if (!frame.parent) continue;
          parentFrames.set(frame.id, frame.parent);
        }
        const frameIdToRootFrameId = /* @__PURE__ */ new Map();
        for (const frame of frames2) {
          let cur = frame.id;
          while (parentFrames.has(cur)) {
            cur = /** @type {string} */
            parentFrames.get(cur);
          }
          if (cur === void 0) {
            throw new Error("Unexpected undefined frameId");
          }
          frameIdToRootFrameId.set(frame.id, cur);
        }
        return frameIdToRootFrameId;
      }
      /**
       * Finds key trace events, identifies main process/thread, and returns timings of trace events
       * in milliseconds since the time origin in addition to the standard microsecond monotonic timestamps.
       * @param {LH.Trace} trace
       * @param {{timeOriginDeterminationMethod?: TimeOriginDeterminationMethod}} [options]
       * @return {LH.Artifacts.ProcessedTrace}
       */
      static processTrace(trace, options) {
        const { timeOriginDeterminationMethod = "auto" } = options || {};
        const keyEvents = this.filteredTraceSort(trace.traceEvents, (e) => {
          return e.cat.includes("blink.user_timing") || e.cat.includes("loading") || e.cat.includes("devtools.timeline") || e.cat === "__metadata";
        });
        const mainFrameInfo = this.findMainFrameIds(keyEvents);
        const rendererPidToTid = this.findMainFramePidTids(mainFrameInfo, keyEvents);
        const processEvents = _TraceProcessor.filteredTraceSort(trace.traceEvents, (e) => rendererPidToTid.has(e.pid));
        const framesById = /* @__PURE__ */ new Map();
        const tracingStartedFrames = keyEvents.find((e) => e.name === "TracingStartedInBrowser")?.args?.data?.frames;
        if (tracingStartedFrames) {
          for (const frame of tracingStartedFrames) {
            framesById.set(frame.frame, {
              id: frame.frame,
              url: frame.url,
              parent: frame.parent
            });
          }
        }
        keyEvents.filter(
          /** @return {evt is FrameCommittedEvent} */
          (evt) => {
            return Boolean(
              evt.name === "FrameCommittedInBrowser" && evt.args.data?.frame && evt.args.data.url !== void 0
            );
          }
        ).forEach((evt) => {
          framesById.set(evt.args.data.frame, {
            id: evt.args.data.frame,
            url: evt.args.data.url,
            parent: evt.args.data.parent
          });
        });
        const frames2 = [...framesById.values()];
        const frameIdToRootFrameId = this.resolveRootFrames(frames2);
        const inspectedTreeFrameIds = [...frameIdToRootFrameId.entries()].filter(([, rootFrameId]) => rootFrameId === mainFrameInfo.frameId).map(([child]) => child);
        function associatedToMainFrame(e) {
          if (e.name === "NavStartToLargestContentfulPaint::Invalidate::AllFrames::UKM") {
            return true;
          }
          const frameId = _TraceProcessor.getFrameId(e);
          return frameId === mainFrameInfo.frameId;
        }
        __name(associatedToMainFrame, "associatedToMainFrame");
        function associatedToAllFrames(e) {
          if (e.name.includes("LargestContentfulPaint") && e.name.includes("UKM")) {
            return true;
          }
          const frameId = _TraceProcessor.getFrameId(e);
          return frameId ? inspectedTreeFrameIds.includes(frameId) : false;
        }
        __name(associatedToAllFrames, "associatedToAllFrames");
        const frameEvents = keyEvents.filter((e) => associatedToMainFrame(e));
        let frameTreeEvents = [];
        if (frameIdToRootFrameId.has(mainFrameInfo.frameId)) {
          frameTreeEvents = keyEvents.filter((e) => associatedToAllFrames(e));
        } else {
          lighthouse_logger_default.warn(
            "TraceProcessor",
            "frameTreeEvents may be incomplete, make sure the trace has frame events"
          );
          frameIdToRootFrameId.set(mainFrameInfo.frameId, mainFrameInfo.frameId);
          frameTreeEvents = frameEvents;
        }
        const timeOriginEvt = this.computeTimeOrigin(
          { keyEvents, frameEvents, mainFrameInfo },
          timeOriginDeterminationMethod
        );
        const mainThreadEvents = processEvents.filter((e) => e.tid === rendererPidToTid.get(e.pid));
        const traceEnd = this.computeTraceEnd(trace.traceEvents, timeOriginEvt);
        return {
          frames: frames2,
          mainThreadEvents,
          frameEvents,
          frameTreeEvents,
          processEvents,
          mainFrameInfo,
          timeOriginEvt,
          timings: {
            timeOrigin: 0,
            traceEnd: traceEnd.timing
          },
          timestamps: {
            timeOrigin: timeOriginEvt.ts,
            traceEnd: traceEnd.timestamp
          },
          _keyEvents: keyEvents,
          _rendererPidToTid: rendererPidToTid
        };
      }
      /**
       * Finds key navigation trace events and computes timings of events in milliseconds since the time
       * origin in addition to the standard microsecond monotonic timestamps.
       * @param {LH.Artifacts.ProcessedTrace} processedTrace
       * @return {LH.Artifacts.ProcessedNavigation}
       */
      static processNavigation(processedTrace) {
        const {
          frameEvents,
          frameTreeEvents,
          timeOriginEvt,
          timings,
          timestamps,
          mainFrameInfo
        } = processedTrace;
        const frameTimings = this.computeNavigationTimingsForFrame(frameEvents, { timeOriginEvt });
        const fcpAllFramesEvt = frameTreeEvents.find(
          (e) => e.name === "firstContentfulPaint" && e.ts > timeOriginEvt.ts
        );
        if (!fcpAllFramesEvt) {
          throw this.createNoFirstContentfulPaintError();
        }
        const lcpAllFramesEvt = this.computeValidLCPAllFrames(
          frameTreeEvents,
          timeOriginEvt,
          mainFrameInfo.frameId
        ).lcp;
        const getTiming = /* @__PURE__ */ __name((ts) => (ts - timeOriginEvt.ts) / 1e3, "getTiming");
        const maybeGetTiming = /* @__PURE__ */ __name((ts) => ts === void 0 ? void 0 : getTiming(ts), "maybeGetTiming");
        return {
          timings: {
            timeOrigin: timings.timeOrigin,
            firstPaint: frameTimings.timings.firstPaint,
            firstContentfulPaint: frameTimings.timings.firstContentfulPaint,
            firstContentfulPaintAllFrames: getTiming(fcpAllFramesEvt.ts),
            largestContentfulPaint: frameTimings.timings.largestContentfulPaint,
            largestContentfulPaintAllFrames: maybeGetTiming(lcpAllFramesEvt?.ts),
            load: frameTimings.timings.load,
            domContentLoaded: frameTimings.timings.domContentLoaded,
            traceEnd: timings.traceEnd
          },
          timestamps: {
            timeOrigin: timestamps.timeOrigin,
            firstPaint: frameTimings.timestamps.firstPaint,
            firstContentfulPaint: frameTimings.timestamps.firstContentfulPaint,
            firstContentfulPaintAllFrames: fcpAllFramesEvt.ts,
            largestContentfulPaint: frameTimings.timestamps.largestContentfulPaint,
            largestContentfulPaintAllFrames: lcpAllFramesEvt?.ts,
            load: frameTimings.timestamps.load,
            domContentLoaded: frameTimings.timestamps.domContentLoaded,
            traceEnd: timestamps.traceEnd
          },
          firstPaintEvt: frameTimings.firstPaintEvt,
          firstContentfulPaintEvt: frameTimings.firstContentfulPaintEvt,
          firstContentfulPaintAllFramesEvt: fcpAllFramesEvt,
          largestContentfulPaintEvt: frameTimings.largestContentfulPaintEvt,
          largestContentfulPaintAllFramesEvt: lcpAllFramesEvt,
          loadEvt: frameTimings.loadEvt,
          domContentLoadedEvt: frameTimings.domContentLoadedEvt,
          lcpInvalidated: frameTimings.lcpInvalidated
        };
      }
      /**
       * Computes the last observable timestamp in a set of trace events.
       *
       * @param {Array<LH.TraceEvent>} events
       * @param {LH.TraceEvent} timeOriginEvt
       * @return {{timing: number, timestamp: number}}
       */
      static computeTraceEnd(events, timeOriginEvt) {
        let maxTs = -Infinity;
        for (const event of events) {
          maxTs = Math.max(event.ts + (event.dur || 0), maxTs);
        }
        return { timestamp: maxTs, timing: (maxTs - timeOriginEvt.ts) / 1e3 };
      }
      /**
       * Computes the time origin using the specified method.
       *
       *    - firstResourceSendRequest
       *      Uses the time that the very first network request is sent in the main frame.
       *      Eventually should be used in place of lastNavigationStart as the default for navigations.
       *      This method includes the cost of all redirects when evaluating a navigation (which matches lantern behavior).
       *      The only difference between firstResourceSendRequest and the first `navigationStart` is
       *      the unload time of `about:blank` (which is a Lighthouse implementation detail and shouldn't be included).
       *
       *    - lastNavigationStart
       *      Uses the time of the last `navigationStart` event in the main frame.
       *      The historical time origin of Lighthouse from 2016-Present.
       *      This method excludes the cost of client-side redirects when evaluating a navigation.
       *      Can also be skewed by several hundred milliseconds or even seconds when the browser takes a long
       *      time to unload `about:blank`.
       *
       * @param {{keyEvents: Array<LH.TraceEvent>, frameEvents: Array<LH.TraceEvent>, mainFrameInfo: {frameId: string}}} traceEventSubsets
       * @param {TimeOriginDeterminationMethod} method
       * @return {LH.TraceEvent}
       */
      static computeTimeOrigin(traceEventSubsets, method) {
        const lastNavigationStart = /* @__PURE__ */ __name(() => {
          const frameEvents = traceEventSubsets.frameEvents;
          return frameEvents.filter(this._isNavigationStartOfInterest).pop();
        }, "lastNavigationStart");
        const lighthouseMarker = /* @__PURE__ */ __name(() => {
          const frameEvents = traceEventSubsets.keyEvents;
          return frameEvents.find(
            (evt) => evt.name === "clock_sync" && evt.args.sync_id === _TraceProcessor.TIMESPAN_MARKER_ID
          );
        }, "lighthouseMarker");
        switch (method) {
          case "firstResourceSendRequest": {
            const fetchStart = traceEventSubsets.keyEvents.find((event) => {
              if (event.name !== "ResourceSendRequest") return false;
              const data31 = event.args.data || {};
              return data31.frame === traceEventSubsets.mainFrameInfo.frameId;
            });
            if (!fetchStart) throw this.createNoResourceSendRequestError();
            return fetchStart;
          }
          case "lastNavigationStart": {
            const navigationStart = lastNavigationStart();
            if (!navigationStart) throw this.createNoNavstartError();
            return navigationStart;
          }
          case "lighthouseMarker": {
            const marker = lighthouseMarker();
            if (!marker) throw this.createNoLighthouseMarkerError();
            return marker;
          }
          case "auto": {
            const marker = lighthouseMarker() || lastNavigationStart();
            if (!marker) throw this.createNoNavstartError();
            return marker;
          }
        }
      }
      /**
       * Computes timings of trace events of key trace events in milliseconds since the time origin
       * in addition to the standard microsecond monotonic timestamps.
       * @param {Array<LH.TraceEvent>} frameEvents
       * @param {{timeOriginEvt: LH.TraceEvent}} options
       */
      static computeNavigationTimingsForFrame(frameEvents, options) {
        const { timeOriginEvt } = options;
        const firstPaint = frameEvents.find((e) => e.name === "firstPaint" && e.ts > timeOriginEvt.ts);
        const firstContentfulPaint = frameEvents.find(
          (e) => e.name === "firstContentfulPaint" && e.ts > timeOriginEvt.ts
        );
        if (!firstContentfulPaint) {
          throw this.createNoFirstContentfulPaintError();
        }
        const frameId = frameEvents.map((e) => _TraceProcessor.getFrameId(e)).find(Boolean);
        const lcpResult = this.computeValidLCPAllFrames(frameEvents, timeOriginEvt, frameId);
        const load = frameEvents.find((e) => e.name === "loadEventEnd" && e.ts > timeOriginEvt.ts);
        const domContentLoaded = frameEvents.find(
          (e) => e.name === "domContentLoadedEventEnd" && e.ts > timeOriginEvt.ts
        );
        const getTimestamp = /* @__PURE__ */ __name((event) => event?.ts, "getTimestamp");
        const timestamps = {
          timeOrigin: timeOriginEvt.ts,
          firstPaint: getTimestamp(firstPaint),
          firstContentfulPaint: firstContentfulPaint.ts,
          largestContentfulPaint: getTimestamp(lcpResult.lcp),
          load: getTimestamp(load),
          domContentLoaded: getTimestamp(domContentLoaded)
        };
        const getTiming = /* @__PURE__ */ __name((ts) => (ts - timeOriginEvt.ts) / 1e3, "getTiming");
        const maybeGetTiming = /* @__PURE__ */ __name((ts) => ts === void 0 ? void 0 : getTiming(ts), "maybeGetTiming");
        const timings = {
          timeOrigin: 0,
          firstPaint: maybeGetTiming(timestamps.firstPaint),
          firstContentfulPaint: getTiming(timestamps.firstContentfulPaint),
          largestContentfulPaint: maybeGetTiming(timestamps.largestContentfulPaint),
          load: maybeGetTiming(timestamps.load),
          domContentLoaded: maybeGetTiming(timestamps.domContentLoaded)
        };
        return {
          timings,
          timestamps,
          timeOriginEvt,
          firstPaintEvt: firstPaint,
          firstContentfulPaintEvt: firstContentfulPaint,
          largestContentfulPaintEvt: lcpResult.lcp,
          loadEvt: load,
          domContentLoadedEvt: domContentLoaded,
          lcpInvalidated: lcpResult.invalidated
        };
      }
    };
  }
});

// core/gather/gatherers/trace.js
var trace_exports = {};
__export(trace_exports, {
  default: () => trace_default
});
var Trace, trace_default;
var init_trace = __esm({
  "core/gather/gatherers/trace.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    init_trace_processor();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    Trace = class _Trace extends base_gatherer_default {
      static {
        __name(this, "Trace");
      }
      /** @type {LH.Trace} */
      _trace = { traceEvents: [] };
      static getDefaultTraceCategories() {
        return [
          // Exclude default categories. We'll be selective to minimize trace size
          "-*",
          // Used instead of 'toplevel' in Chrome 71+
          "disabled-by-default-lighthouse",
          // Used for Cumulative Layout Shift metric
          "loading",
          // All compile/execute events are captured by parent events in devtools.timeline..
          // But the v8 category provides some nice context for only <0.5% of the trace size
          "v8",
          // Same situation here. This category is there for RunMicrotasks only, but with other teams
          // accidentally excluding microtasks, we don't want to assume a parent event will always exist
          "v8.execute",
          // For extracting UserTiming marks/measures
          "blink.user_timing",
          // Not mandatory but not used much
          "blink.console",
          // Most of the events we need are from these two categories
          "devtools.timeline",
          "disabled-by-default-devtools.timeline",
          // Up to 450 (https://goo.gl/rBfhn4) JPGs added to the trace
          "disabled-by-default-devtools.screenshot",
          // This doesn't add its own events, but adds a `stackTrace` property to devtools.timeline events
          "disabled-by-default-devtools.timeline.stack",
          // Additional categories used by devtools. Not used by Lighthouse, but included to facilitate
          // loading traces from Lighthouse into the Performance panel.
          "disabled-by-default-devtools.timeline.frame",
          "latencyInfo",
          // Enhanced traces.
          "disabled-by-default-devtools.target-rundown",
          "disabled-by-default-devtools.v8-source-rundown-sources",
          "disabled-by-default-devtools.v8-source-rundown",
          // Required for Baseline Audit to detect feature usage.
          "blink.webdx_feature_usage"
          // Not used by Lighthouse (yet) but included for users that want JS samples when looking at
          // a trace collected by Lighthouse (e.g. "View Trace" workflow in DevTools)
          // TODO: Re-enable after investigating b/325659693
          // 'disabled-by-default-v8.cpu_profiler',
        ];
      }
      /**
       * @param {LH.Gatherer.ProtocolSession} session
       * @return {Promise<LH.Trace>}
       */
      static async endTraceAndCollectEvents(session) {
        const traceEvents = [];
        const dataListener = /* @__PURE__ */ __name(function(data31) {
          traceEvents.push(...data31.value);
        }, "dataListener");
        session.on("Tracing.dataCollected", dataListener);
        return new Promise((resolve, reject) => {
          session.once("Tracing.tracingComplete", (_) => {
            session.off("Tracing.dataCollected", dataListener);
            resolve({ traceEvents });
          });
          session.sendCommand("Tracing.end").catch(reject);
        });
      }
      static symbol = /* @__PURE__ */ Symbol("Trace");
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        symbol: _Trace.symbol,
        supportedModes: ["timespan", "navigation"]
      };
      /**
       * @param {LH.Gatherer.Context} passContext
       */
      async startSensitiveInstrumentation({ driver, gatherMode, settings }) {
        const traceCategories2 = _Trace.getDefaultTraceCategories().concat(settings.additionalTraceCategories || []);
        await driver.defaultSession.sendCommand("Page.enable");
        await driver.defaultSession.sendCommand("Tracing.start", {
          categories: traceCategories2.join(","),
          options: "sampling-frequency=10000"
          // 1000 is default and too slow.
        });
        if (gatherMode === "timespan") {
          await driver.defaultSession.sendCommand(
            "Tracing.recordClockSyncMarker",
            { syncId: TraceProcessor.TIMESPAN_MARKER_ID }
          );
        }
      }
      /**
       * @param {LH.Gatherer.Context} passContext
       */
      async stopSensitiveInstrumentation({ driver }) {
        this._trace = await _Trace.endTraceAndCollectEvents(driver.defaultSession);
      }
      getDebugData() {
        return this._trace;
      }
      getArtifact() {
        return this._trace;
      }
    };
    trace_default = Trace;
  }
});

// node_modules/lodash-es/_freeGlobal.js
var freeGlobal, freeGlobal_default;
var init_freeGlobal = __esm({
  "node_modules/lodash-es/_freeGlobal.js"() {
    init_process_global();
    freeGlobal = typeof global == "object" && global && global.Object === Object && global;
    freeGlobal_default = freeGlobal;
  }
});

// node_modules/lodash-es/_root.js
var freeSelf, root, root_default;
var init_root = __esm({
  "node_modules/lodash-es/_root.js"() {
    init_process_global();
    init_freeGlobal();
    freeSelf = typeof self == "object" && self && self.Object === Object && self;
    root = freeGlobal_default || freeSelf || Function("return this")();
    root_default = root;
  }
});

// node_modules/lodash-es/_Symbol.js
var Symbol2, Symbol_default;
var init_Symbol = __esm({
  "node_modules/lodash-es/_Symbol.js"() {
    init_process_global();
    init_root();
    Symbol2 = root_default.Symbol;
    Symbol_default = Symbol2;
  }
});

// node_modules/lodash-es/_getRawTag.js
function getRawTag(value) {
  var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
  try {
    value[symToStringTag] = void 0;
    var unmasked = true;
  } catch (e) {
  }
  var result = nativeObjectToString.call(value);
  if (unmasked) {
    if (isOwn) {
      value[symToStringTag] = tag;
    } else {
      delete value[symToStringTag];
    }
  }
  return result;
}
var objectProto, hasOwnProperty, nativeObjectToString, symToStringTag, getRawTag_default;
var init_getRawTag = __esm({
  "node_modules/lodash-es/_getRawTag.js"() {
    init_process_global();
    init_Symbol();
    objectProto = Object.prototype;
    hasOwnProperty = objectProto.hasOwnProperty;
    nativeObjectToString = objectProto.toString;
    symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
    __name(getRawTag, "getRawTag");
    getRawTag_default = getRawTag;
  }
});

// node_modules/lodash-es/_objectToString.js
function objectToString(value) {
  return nativeObjectToString2.call(value);
}
var objectProto2, nativeObjectToString2, objectToString_default;
var init_objectToString = __esm({
  "node_modules/lodash-es/_objectToString.js"() {
    init_process_global();
    objectProto2 = Object.prototype;
    nativeObjectToString2 = objectProto2.toString;
    __name(objectToString, "objectToString");
    objectToString_default = objectToString;
  }
});

// node_modules/lodash-es/_baseGetTag.js
function baseGetTag(value) {
  if (value == null) {
    return value === void 0 ? undefinedTag : nullTag;
  }
  return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
}
var nullTag, undefinedTag, symToStringTag2, baseGetTag_default;
var init_baseGetTag = __esm({
  "node_modules/lodash-es/_baseGetTag.js"() {
    init_process_global();
    init_Symbol();
    init_getRawTag();
    init_objectToString();
    nullTag = "[object Null]";
    undefinedTag = "[object Undefined]";
    symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
    __name(baseGetTag, "baseGetTag");
    baseGetTag_default = baseGetTag;
  }
});

// node_modules/lodash-es/isObjectLike.js
function isObjectLike(value) {
  return value != null && typeof value == "object";
}
var isObjectLike_default;
var init_isObjectLike = __esm({
  "node_modules/lodash-es/isObjectLike.js"() {
    init_process_global();
    __name(isObjectLike, "isObjectLike");
    isObjectLike_default = isObjectLike;
  }
});

// node_modules/lodash-es/isArray.js
var isArray, isArray_default;
var init_isArray = __esm({
  "node_modules/lodash-es/isArray.js"() {
    init_process_global();
    isArray = Array.isArray;
    isArray_default = isArray;
  }
});

// node_modules/lodash-es/isObject.js
function isObject(value) {
  var type = typeof value;
  return value != null && (type == "object" || type == "function");
}
var isObject_default;
var init_isObject = __esm({
  "node_modules/lodash-es/isObject.js"() {
    init_process_global();
    __name(isObject, "isObject");
    isObject_default = isObject;
  }
});

// node_modules/lodash-es/isFunction.js
function isFunction(value) {
  if (!isObject_default(value)) {
    return false;
  }
  var tag = baseGetTag_default(value);
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}
var asyncTag, funcTag, genTag, proxyTag, isFunction_default;
var init_isFunction = __esm({
  "node_modules/lodash-es/isFunction.js"() {
    init_process_global();
    init_baseGetTag();
    init_isObject();
    asyncTag = "[object AsyncFunction]";
    funcTag = "[object Function]";
    genTag = "[object GeneratorFunction]";
    proxyTag = "[object Proxy]";
    __name(isFunction, "isFunction");
    isFunction_default = isFunction;
  }
});

// node_modules/lodash-es/_coreJsData.js
var coreJsData, coreJsData_default;
var init_coreJsData = __esm({
  "node_modules/lodash-es/_coreJsData.js"() {
    init_process_global();
    init_root();
    coreJsData = root_default["__core-js_shared__"];
    coreJsData_default = coreJsData;
  }
});

// node_modules/lodash-es/_isMasked.js
function isMasked(func) {
  return !!maskSrcKey && maskSrcKey in func;
}
var maskSrcKey, isMasked_default;
var init_isMasked = __esm({
  "node_modules/lodash-es/_isMasked.js"() {
    init_process_global();
    init_coreJsData();
    maskSrcKey = (function() {
      var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
      return uid ? "Symbol(src)_1." + uid : "";
    })();
    __name(isMasked, "isMasked");
    isMasked_default = isMasked;
  }
});

// node_modules/lodash-es/_toSource.js
function toSource(func) {
  if (func != null) {
    try {
      return funcToString.call(func);
    } catch (e) {
    }
    try {
      return func + "";
    } catch (e) {
    }
  }
  return "";
}
var funcProto, funcToString, toSource_default;
var init_toSource = __esm({
  "node_modules/lodash-es/_toSource.js"() {
    init_process_global();
    funcProto = Function.prototype;
    funcToString = funcProto.toString;
    __name(toSource, "toSource");
    toSource_default = toSource;
  }
});

// node_modules/lodash-es/_baseIsNative.js
function baseIsNative(value) {
  if (!isObject_default(value) || isMasked_default(value)) {
    return false;
  }
  var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
  return pattern.test(toSource_default(value));
}
var reRegExpChar, reIsHostCtor, funcProto2, objectProto3, funcToString2, hasOwnProperty2, reIsNative, baseIsNative_default;
var init_baseIsNative = __esm({
  "node_modules/lodash-es/_baseIsNative.js"() {
    init_process_global();
    init_isFunction();
    init_isMasked();
    init_isObject();
    init_toSource();
    reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
    reIsHostCtor = /^\[object .+?Constructor\]$/;
    funcProto2 = Function.prototype;
    objectProto3 = Object.prototype;
    funcToString2 = funcProto2.toString;
    hasOwnProperty2 = objectProto3.hasOwnProperty;
    reIsNative = RegExp(
      "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
    );
    __name(baseIsNative, "baseIsNative");
    baseIsNative_default = baseIsNative;
  }
});

// node_modules/lodash-es/_getValue.js
function getValue(object, key) {
  return object == null ? void 0 : object[key];
}
var getValue_default;
var init_getValue = __esm({
  "node_modules/lodash-es/_getValue.js"() {
    init_process_global();
    __name(getValue, "getValue");
    getValue_default = getValue;
  }
});

// node_modules/lodash-es/_getNative.js
function getNative(object, key) {
  var value = getValue_default(object, key);
  return baseIsNative_default(value) ? value : void 0;
}
var getNative_default;
var init_getNative = __esm({
  "node_modules/lodash-es/_getNative.js"() {
    init_process_global();
    init_baseIsNative();
    init_getValue();
    __name(getNative, "getNative");
    getNative_default = getNative;
  }
});

// node_modules/lodash-es/_WeakMap.js
var WeakMap2, WeakMap_default;
var init_WeakMap = __esm({
  "node_modules/lodash-es/_WeakMap.js"() {
    init_process_global();
    init_getNative();
    init_root();
    WeakMap2 = getNative_default(root_default, "WeakMap");
    WeakMap_default = WeakMap2;
  }
});

// node_modules/lodash-es/_isIndex.js
function isIndex(value, length) {
  var type = typeof value;
  length = length == null ? MAX_SAFE_INTEGER : length;
  return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
}
var MAX_SAFE_INTEGER, reIsUint, isIndex_default;
var init_isIndex = __esm({
  "node_modules/lodash-es/_isIndex.js"() {
    init_process_global();
    MAX_SAFE_INTEGER = 9007199254740991;
    reIsUint = /^(?:0|[1-9]\d*)$/;
    __name(isIndex, "isIndex");
    isIndex_default = isIndex;
  }
});

// node_modules/lodash-es/eq.js
function eq(value, other) {
  return value === other || value !== value && other !== other;
}
var eq_default;
var init_eq = __esm({
  "node_modules/lodash-es/eq.js"() {
    init_process_global();
    __name(eq, "eq");
    eq_default = eq;
  }
});

// node_modules/lodash-es/isLength.js
function isLength(value) {
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
}
var MAX_SAFE_INTEGER2, isLength_default;
var init_isLength = __esm({
  "node_modules/lodash-es/isLength.js"() {
    init_process_global();
    MAX_SAFE_INTEGER2 = 9007199254740991;
    __name(isLength, "isLength");
    isLength_default = isLength;
  }
});

// node_modules/lodash-es/isArrayLike.js
function isArrayLike(value) {
  return value != null && isLength_default(value.length) && !isFunction_default(value);
}
var isArrayLike_default;
var init_isArrayLike = __esm({
  "node_modules/lodash-es/isArrayLike.js"() {
    init_process_global();
    init_isFunction();
    init_isLength();
    __name(isArrayLike, "isArrayLike");
    isArrayLike_default = isArrayLike;
  }
});

// node_modules/lodash-es/_isPrototype.js
function isPrototype(value) {
  var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto4;
  return value === proto;
}
var objectProto4, isPrototype_default;
var init_isPrototype = __esm({
  "node_modules/lodash-es/_isPrototype.js"() {
    init_process_global();
    objectProto4 = Object.prototype;
    __name(isPrototype, "isPrototype");
    isPrototype_default = isPrototype;
  }
});

// node_modules/lodash-es/_baseTimes.js
function baseTimes(n, iteratee) {
  var index = -1, result = Array(n);
  while (++index < n) {
    result[index] = iteratee(index);
  }
  return result;
}
var baseTimes_default;
var init_baseTimes = __esm({
  "node_modules/lodash-es/_baseTimes.js"() {
    init_process_global();
    __name(baseTimes, "baseTimes");
    baseTimes_default = baseTimes;
  }
});

// node_modules/lodash-es/_baseIsArguments.js
function baseIsArguments(value) {
  return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
}
var argsTag, baseIsArguments_default;
var init_baseIsArguments = __esm({
  "node_modules/lodash-es/_baseIsArguments.js"() {
    init_process_global();
    init_baseGetTag();
    init_isObjectLike();
    argsTag = "[object Arguments]";
    __name(baseIsArguments, "baseIsArguments");
    baseIsArguments_default = baseIsArguments;
  }
});

// node_modules/lodash-es/isArguments.js
var objectProto5, hasOwnProperty3, propertyIsEnumerable, isArguments, isArguments_default;
var init_isArguments = __esm({
  "node_modules/lodash-es/isArguments.js"() {
    init_process_global();
    init_baseIsArguments();
    init_isObjectLike();
    objectProto5 = Object.prototype;
    hasOwnProperty3 = objectProto5.hasOwnProperty;
    propertyIsEnumerable = objectProto5.propertyIsEnumerable;
    isArguments = baseIsArguments_default(/* @__PURE__ */ (function() {
      return arguments;
    })()) ? baseIsArguments_default : function(value) {
      return isObjectLike_default(value) && hasOwnProperty3.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
    };
    isArguments_default = isArguments;
  }
});

// node_modules/lodash-es/stubFalse.js
function stubFalse() {
  return false;
}
var stubFalse_default;
var init_stubFalse = __esm({
  "node_modules/lodash-es/stubFalse.js"() {
    init_process_global();
    __name(stubFalse, "stubFalse");
    stubFalse_default = stubFalse;
  }
});

// node_modules/lodash-es/isBuffer.js
var freeExports, freeModule, moduleExports, Buffer2, nativeIsBuffer, isBuffer, isBuffer_default;
var init_isBuffer = __esm({
  "node_modules/lodash-es/isBuffer.js"() {
    init_process_global();
    init_root();
    init_stubFalse();
    freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
    freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
    moduleExports = freeModule && freeModule.exports === freeExports;
    Buffer2 = moduleExports ? root_default.Buffer : void 0;
    nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
    isBuffer = nativeIsBuffer || stubFalse_default;
    isBuffer_default = isBuffer;
  }
});

// node_modules/lodash-es/_baseIsTypedArray.js
function baseIsTypedArray(value) {
  return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
}
var argsTag2, arrayTag, boolTag, dateTag, errorTag, funcTag2, mapTag, numberTag, objectTag, regexpTag, setTag, stringTag, weakMapTag, arrayBufferTag, dataViewTag, float32Tag, float64Tag, int8Tag, int16Tag, int32Tag, uint8Tag, uint8ClampedTag, uint16Tag, uint32Tag, typedArrayTags, baseIsTypedArray_default;
var init_baseIsTypedArray = __esm({
  "node_modules/lodash-es/_baseIsTypedArray.js"() {
    init_process_global();
    init_baseGetTag();
    init_isLength();
    init_isObjectLike();
    argsTag2 = "[object Arguments]";
    arrayTag = "[object Array]";
    boolTag = "[object Boolean]";
    dateTag = "[object Date]";
    errorTag = "[object Error]";
    funcTag2 = "[object Function]";
    mapTag = "[object Map]";
    numberTag = "[object Number]";
    objectTag = "[object Object]";
    regexpTag = "[object RegExp]";
    setTag = "[object Set]";
    stringTag = "[object String]";
    weakMapTag = "[object WeakMap]";
    arrayBufferTag = "[object ArrayBuffer]";
    dataViewTag = "[object DataView]";
    float32Tag = "[object Float32Array]";
    float64Tag = "[object Float64Array]";
    int8Tag = "[object Int8Array]";
    int16Tag = "[object Int16Array]";
    int32Tag = "[object Int32Array]";
    uint8Tag = "[object Uint8Array]";
    uint8ClampedTag = "[object Uint8ClampedArray]";
    uint16Tag = "[object Uint16Array]";
    uint32Tag = "[object Uint32Array]";
    typedArrayTags = {};
    typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
    typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
    __name(baseIsTypedArray, "baseIsTypedArray");
    baseIsTypedArray_default = baseIsTypedArray;
  }
});

// node_modules/lodash-es/_baseUnary.js
function baseUnary(func) {
  return function(value) {
    return func(value);
  };
}
var baseUnary_default;
var init_baseUnary = __esm({
  "node_modules/lodash-es/_baseUnary.js"() {
    init_process_global();
    __name(baseUnary, "baseUnary");
    baseUnary_default = baseUnary;
  }
});

// node_modules/lodash-es/_nodeUtil.js
var freeExports2, freeModule2, moduleExports2, freeProcess, nodeUtil, nodeUtil_default;
var init_nodeUtil = __esm({
  "node_modules/lodash-es/_nodeUtil.js"() {
    init_process_global();
    init_freeGlobal();
    freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
    freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
    moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
    freeProcess = moduleExports2 && freeGlobal_default.process;
    nodeUtil = (function() {
      try {
        var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
        if (types) {
          return types;
        }
        return freeProcess && freeProcess.binding && freeProcess.binding("util");
      } catch (e) {
      }
    })();
    nodeUtil_default = nodeUtil;
  }
});

// node_modules/lodash-es/isTypedArray.js
var nodeIsTypedArray, isTypedArray, isTypedArray_default;
var init_isTypedArray = __esm({
  "node_modules/lodash-es/isTypedArray.js"() {
    init_process_global();
    init_baseIsTypedArray();
    init_baseUnary();
    init_nodeUtil();
    nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
    isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
    isTypedArray_default = isTypedArray;
  }
});

// node_modules/lodash-es/_arrayLikeKeys.js
function arrayLikeKeys(value, inherited) {
  var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
  for (var key in value) {
    if ((inherited || hasOwnProperty4.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
    (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
    isIndex_default(key, length)))) {
      result.push(key);
    }
  }
  return result;
}
var objectProto6, hasOwnProperty4, arrayLikeKeys_default;
var init_arrayLikeKeys = __esm({
  "node_modules/lodash-es/_arrayLikeKeys.js"() {
    init_process_global();
    init_baseTimes();
    init_isArguments();
    init_isArray();
    init_isBuffer();
    init_isIndex();
    init_isTypedArray();
    objectProto6 = Object.prototype;
    hasOwnProperty4 = objectProto6.hasOwnProperty;
    __name(arrayLikeKeys, "arrayLikeKeys");
    arrayLikeKeys_default = arrayLikeKeys;
  }
});

// node_modules/lodash-es/_overArg.js
function overArg(func, transform) {
  return function(arg) {
    return func(transform(arg));
  };
}
var overArg_default;
var init_overArg = __esm({
  "node_modules/lodash-es/_overArg.js"() {
    init_process_global();
    __name(overArg, "overArg");
    overArg_default = overArg;
  }
});

// node_modules/lodash-es/_nativeKeys.js
var nativeKeys, nativeKeys_default;
var init_nativeKeys = __esm({
  "node_modules/lodash-es/_nativeKeys.js"() {
    init_process_global();
    init_overArg();
    nativeKeys = overArg_default(Object.keys, Object);
    nativeKeys_default = nativeKeys;
  }
});

// node_modules/lodash-es/_baseKeys.js
function baseKeys(object) {
  if (!isPrototype_default(object)) {
    return nativeKeys_default(object);
  }
  var result = [];
  for (var key in Object(object)) {
    if (hasOwnProperty5.call(object, key) && key != "constructor") {
      result.push(key);
    }
  }
  return result;
}
var objectProto7, hasOwnProperty5, baseKeys_default;
var init_baseKeys = __esm({
  "node_modules/lodash-es/_baseKeys.js"() {
    init_process_global();
    init_isPrototype();
    init_nativeKeys();
    objectProto7 = Object.prototype;
    hasOwnProperty5 = objectProto7.hasOwnProperty;
    __name(baseKeys, "baseKeys");
    baseKeys_default = baseKeys;
  }
});

// node_modules/lodash-es/keys.js
function keys(object) {
  return isArrayLike_default(object) ? arrayLikeKeys_default(object) : baseKeys_default(object);
}
var keys_default;
var init_keys = __esm({
  "node_modules/lodash-es/keys.js"() {
    init_process_global();
    init_arrayLikeKeys();
    init_baseKeys();
    init_isArrayLike();
    __name(keys, "keys");
    keys_default = keys;
  }
});

// node_modules/lodash-es/_nativeCreate.js
var nativeCreate, nativeCreate_default;
var init_nativeCreate = __esm({
  "node_modules/lodash-es/_nativeCreate.js"() {
    init_process_global();
    init_getNative();
    nativeCreate = getNative_default(Object, "create");
    nativeCreate_default = nativeCreate;
  }
});

// node_modules/lodash-es/_hashClear.js
function hashClear() {
  this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
  this.size = 0;
}
var hashClear_default;
var init_hashClear = __esm({
  "node_modules/lodash-es/_hashClear.js"() {
    init_process_global();
    init_nativeCreate();
    __name(hashClear, "hashClear");
    hashClear_default = hashClear;
  }
});

// node_modules/lodash-es/_hashDelete.js
function hashDelete(key) {
  var result = this.has(key) && delete this.__data__[key];
  this.size -= result ? 1 : 0;
  return result;
}
var hashDelete_default;
var init_hashDelete = __esm({
  "node_modules/lodash-es/_hashDelete.js"() {
    init_process_global();
    __name(hashDelete, "hashDelete");
    hashDelete_default = hashDelete;
  }
});

// node_modules/lodash-es/_hashGet.js
function hashGet(key) {
  var data31 = this.__data__;
  if (nativeCreate_default) {
    var result = data31[key];
    return result === HASH_UNDEFINED ? void 0 : result;
  }
  return hasOwnProperty6.call(data31, key) ? data31[key] : void 0;
}
var HASH_UNDEFINED, objectProto8, hasOwnProperty6, hashGet_default;
var init_hashGet = __esm({
  "node_modules/lodash-es/_hashGet.js"() {
    init_process_global();
    init_nativeCreate();
    HASH_UNDEFINED = "__lodash_hash_undefined__";
    objectProto8 = Object.prototype;
    hasOwnProperty6 = objectProto8.hasOwnProperty;
    __name(hashGet, "hashGet");
    hashGet_default = hashGet;
  }
});

// node_modules/lodash-es/_hashHas.js
function hashHas(key) {
  var data31 = this.__data__;
  return nativeCreate_default ? data31[key] !== void 0 : hasOwnProperty7.call(data31, key);
}
var objectProto9, hasOwnProperty7, hashHas_default;
var init_hashHas = __esm({
  "node_modules/lodash-es/_hashHas.js"() {
    init_process_global();
    init_nativeCreate();
    objectProto9 = Object.prototype;
    hasOwnProperty7 = objectProto9.hasOwnProperty;
    __name(hashHas, "hashHas");
    hashHas_default = hashHas;
  }
});

// node_modules/lodash-es/_hashSet.js
function hashSet(key, value) {
  var data31 = this.__data__;
  this.size += this.has(key) ? 0 : 1;
  data31[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
  return this;
}
var HASH_UNDEFINED2, hashSet_default;
var init_hashSet = __esm({
  "node_modules/lodash-es/_hashSet.js"() {
    init_process_global();
    init_nativeCreate();
    HASH_UNDEFINED2 = "__lodash_hash_undefined__";
    __name(hashSet, "hashSet");
    hashSet_default = hashSet;
  }
});

// node_modules/lodash-es/_Hash.js
function Hash(entries) {
  var index = -1, length = entries == null ? 0 : entries.length;
  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}
var Hash_default;
var init_Hash = __esm({
  "node_modules/lodash-es/_Hash.js"() {
    init_process_global();
    init_hashClear();
    init_hashDelete();
    init_hashGet();
    init_hashHas();
    init_hashSet();
    __name(Hash, "Hash");
    Hash.prototype.clear = hashClear_default;
    Hash.prototype["delete"] = hashDelete_default;
    Hash.prototype.get = hashGet_default;
    Hash.prototype.has = hashHas_default;
    Hash.prototype.set = hashSet_default;
    Hash_default = Hash;
  }
});

// node_modules/lodash-es/_listCacheClear.js
function listCacheClear() {
  this.__data__ = [];
  this.size = 0;
}
var listCacheClear_default;
var init_listCacheClear = __esm({
  "node_modules/lodash-es/_listCacheClear.js"() {
    init_process_global();
    __name(listCacheClear, "listCacheClear");
    listCacheClear_default = listCacheClear;
  }
});

// node_modules/lodash-es/_assocIndexOf.js
function assocIndexOf(array, key) {
  var length = array.length;
  while (length--) {
    if (eq_default(array[length][0], key)) {
      return length;
    }
  }
  return -1;
}
var assocIndexOf_default;
var init_assocIndexOf = __esm({
  "node_modules/lodash-es/_assocIndexOf.js"() {
    init_process_global();
    init_eq();
    __name(assocIndexOf, "assocIndexOf");
    assocIndexOf_default = assocIndexOf;
  }
});

// node_modules/lodash-es/_listCacheDelete.js
function listCacheDelete(key) {
  var data31 = this.__data__, index = assocIndexOf_default(data31, key);
  if (index < 0) {
    return false;
  }
  var lastIndex = data31.length - 1;
  if (index == lastIndex) {
    data31.pop();
  } else {
    splice.call(data31, index, 1);
  }
  --this.size;
  return true;
}
var arrayProto, splice, listCacheDelete_default;
var init_listCacheDelete = __esm({
  "node_modules/lodash-es/_listCacheDelete.js"() {
    init_process_global();
    init_assocIndexOf();
    arrayProto = Array.prototype;
    splice = arrayProto.splice;
    __name(listCacheDelete, "listCacheDelete");
    listCacheDelete_default = listCacheDelete;
  }
});

// node_modules/lodash-es/_listCacheGet.js
function listCacheGet(key) {
  var data31 = this.__data__, index = assocIndexOf_default(data31, key);
  return index < 0 ? void 0 : data31[index][1];
}
var listCacheGet_default;
var init_listCacheGet = __esm({
  "node_modules/lodash-es/_listCacheGet.js"() {
    init_process_global();
    init_assocIndexOf();
    __name(listCacheGet, "listCacheGet");
    listCacheGet_default = listCacheGet;
  }
});

// node_modules/lodash-es/_listCacheHas.js
function listCacheHas(key) {
  return assocIndexOf_default(this.__data__, key) > -1;
}
var listCacheHas_default;
var init_listCacheHas = __esm({
  "node_modules/lodash-es/_listCacheHas.js"() {
    init_process_global();
    init_assocIndexOf();
    __name(listCacheHas, "listCacheHas");
    listCacheHas_default = listCacheHas;
  }
});

// node_modules/lodash-es/_listCacheSet.js
function listCacheSet(key, value) {
  var data31 = this.__data__, index = assocIndexOf_default(data31, key);
  if (index < 0) {
    ++this.size;
    data31.push([key, value]);
  } else {
    data31[index][1] = value;
  }
  return this;
}
var listCacheSet_default;
var init_listCacheSet = __esm({
  "node_modules/lodash-es/_listCacheSet.js"() {
    init_process_global();
    init_assocIndexOf();
    __name(listCacheSet, "listCacheSet");
    listCacheSet_default = listCacheSet;
  }
});

// node_modules/lodash-es/_ListCache.js
function ListCache(entries) {
  var index = -1, length = entries == null ? 0 : entries.length;
  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}
var ListCache_default;
var init_ListCache = __esm({
  "node_modules/lodash-es/_ListCache.js"() {
    init_process_global();
    init_listCacheClear();
    init_listCacheDelete();
    init_listCacheGet();
    init_listCacheHas();
    init_listCacheSet();
    __name(ListCache, "ListCache");
    ListCache.prototype.clear = listCacheClear_default;
    ListCache.prototype["delete"] = listCacheDelete_default;
    ListCache.prototype.get = listCacheGet_default;
    ListCache.prototype.has = listCacheHas_default;
    ListCache.prototype.set = listCacheSet_default;
    ListCache_default = ListCache;
  }
});

// node_modules/lodash-es/_Map.js
var Map2, Map_default;
var init_Map = __esm({
  "node_modules/lodash-es/_Map.js"() {
    init_process_global();
    init_getNative();
    init_root();
    Map2 = getNative_default(root_default, "Map");
    Map_default = Map2;
  }
});

// node_modules/lodash-es/_mapCacheClear.js
function mapCacheClear() {
  this.size = 0;
  this.__data__ = {
    "hash": new Hash_default(),
    "map": new (Map_default || ListCache_default)(),
    "string": new Hash_default()
  };
}
var mapCacheClear_default;
var init_mapCacheClear = __esm({
  "node_modules/lodash-es/_mapCacheClear.js"() {
    init_process_global();
    init_Hash();
    init_ListCache();
    init_Map();
    __name(mapCacheClear, "mapCacheClear");
    mapCacheClear_default = mapCacheClear;
  }
});

// node_modules/lodash-es/_isKeyable.js
function isKeyable(value) {
  var type = typeof value;
  return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
}
var isKeyable_default;
var init_isKeyable = __esm({
  "node_modules/lodash-es/_isKeyable.js"() {
    init_process_global();
    __name(isKeyable, "isKeyable");
    isKeyable_default = isKeyable;
  }
});

// node_modules/lodash-es/_getMapData.js
function getMapData(map, key) {
  var data31 = map.__data__;
  return isKeyable_default(key) ? data31[typeof key == "string" ? "string" : "hash"] : data31.map;
}
var getMapData_default;
var init_getMapData = __esm({
  "node_modules/lodash-es/_getMapData.js"() {
    init_process_global();
    init_isKeyable();
    __name(getMapData, "getMapData");
    getMapData_default = getMapData;
  }
});

// node_modules/lodash-es/_mapCacheDelete.js
function mapCacheDelete(key) {
  var result = getMapData_default(this, key)["delete"](key);
  this.size -= result ? 1 : 0;
  return result;
}
var mapCacheDelete_default;
var init_mapCacheDelete = __esm({
  "node_modules/lodash-es/_mapCacheDelete.js"() {
    init_process_global();
    init_getMapData();
    __name(mapCacheDelete, "mapCacheDelete");
    mapCacheDelete_default = mapCacheDelete;
  }
});

// node_modules/lodash-es/_mapCacheGet.js
function mapCacheGet(key) {
  return getMapData_default(this, key).get(key);
}
var mapCacheGet_default;
var init_mapCacheGet = __esm({
  "node_modules/lodash-es/_mapCacheGet.js"() {
    init_process_global();
    init_getMapData();
    __name(mapCacheGet, "mapCacheGet");
    mapCacheGet_default = mapCacheGet;
  }
});

// node_modules/lodash-es/_mapCacheHas.js
function mapCacheHas(key) {
  return getMapData_default(this, key).has(key);
}
var mapCacheHas_default;
var init_mapCacheHas = __esm({
  "node_modules/lodash-es/_mapCacheHas.js"() {
    init_process_global();
    init_getMapData();
    __name(mapCacheHas, "mapCacheHas");
    mapCacheHas_default = mapCacheHas;
  }
});

// node_modules/lodash-es/_mapCacheSet.js
function mapCacheSet(key, value) {
  var data31 = getMapData_default(this, key), size = data31.size;
  data31.set(key, value);
  this.size += data31.size == size ? 0 : 1;
  return this;
}
var mapCacheSet_default;
var init_mapCacheSet = __esm({
  "node_modules/lodash-es/_mapCacheSet.js"() {
    init_process_global();
    init_getMapData();
    __name(mapCacheSet, "mapCacheSet");
    mapCacheSet_default = mapCacheSet;
  }
});

// node_modules/lodash-es/_MapCache.js
function MapCache(entries) {
  var index = -1, length = entries == null ? 0 : entries.length;
  this.clear();
  while (++index < length) {
    var entry = entries[index];
    this.set(entry[0], entry[1]);
  }
}
var MapCache_default;
var init_MapCache = __esm({
  "node_modules/lodash-es/_MapCache.js"() {
    init_process_global();
    init_mapCacheClear();
    init_mapCacheDelete();
    init_mapCacheGet();
    init_mapCacheHas();
    init_mapCacheSet();
    __name(MapCache, "MapCache");
    MapCache.prototype.clear = mapCacheClear_default;
    MapCache.prototype["delete"] = mapCacheDelete_default;
    MapCache.prototype.get = mapCacheGet_default;
    MapCache.prototype.has = mapCacheHas_default;
    MapCache.prototype.set = mapCacheSet_default;
    MapCache_default = MapCache;
  }
});

// node_modules/lodash-es/_arrayPush.js
function arrayPush(array, values) {
  var index = -1, length = values.length, offset = array.length;
  while (++index < length) {
    array[offset + index] = values[index];
  }
  return array;
}
var arrayPush_default;
var init_arrayPush = __esm({
  "node_modules/lodash-es/_arrayPush.js"() {
    init_process_global();
    __name(arrayPush, "arrayPush");
    arrayPush_default = arrayPush;
  }
});

// node_modules/lodash-es/_stackClear.js
function stackClear() {
  this.__data__ = new ListCache_default();
  this.size = 0;
}
var stackClear_default;
var init_stackClear = __esm({
  "node_modules/lodash-es/_stackClear.js"() {
    init_process_global();
    init_ListCache();
    __name(stackClear, "stackClear");
    stackClear_default = stackClear;
  }
});

// node_modules/lodash-es/_stackDelete.js
function stackDelete(key) {
  var data31 = this.__data__, result = data31["delete"](key);
  this.size = data31.size;
  return result;
}
var stackDelete_default;
var init_stackDelete = __esm({
  "node_modules/lodash-es/_stackDelete.js"() {
    init_process_global();
    __name(stackDelete, "stackDelete");
    stackDelete_default = stackDelete;
  }
});

// node_modules/lodash-es/_stackGet.js
function stackGet(key) {
  return this.__data__.get(key);
}
var stackGet_default;
var init_stackGet = __esm({
  "node_modules/lodash-es/_stackGet.js"() {
    init_process_global();
    __name(stackGet, "stackGet");
    stackGet_default = stackGet;
  }
});

// node_modules/lodash-es/_stackHas.js
function stackHas(key) {
  return this.__data__.has(key);
}
var stackHas_default;
var init_stackHas = __esm({
  "node_modules/lodash-es/_stackHas.js"() {
    init_process_global();
    __name(stackHas, "stackHas");
    stackHas_default = stackHas;
  }
});

// node_modules/lodash-es/_stackSet.js
function stackSet(key, value) {
  var data31 = this.__data__;
  if (data31 instanceof ListCache_default) {
    var pairs = data31.__data__;
    if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
      pairs.push([key, value]);
      this.size = ++data31.size;
      return this;
    }
    data31 = this.__data__ = new MapCache_default(pairs);
  }
  data31.set(key, value);
  this.size = data31.size;
  return this;
}
var LARGE_ARRAY_SIZE, stackSet_default;
var init_stackSet = __esm({
  "node_modules/lodash-es/_stackSet.js"() {
    init_process_global();
    init_ListCache();
    init_Map();
    init_MapCache();
    LARGE_ARRAY_SIZE = 200;
    __name(stackSet, "stackSet");
    stackSet_default = stackSet;
  }
});

// node_modules/lodash-es/_Stack.js
function Stack(entries) {
  var data31 = this.__data__ = new ListCache_default(entries);
  this.size = data31.size;
}
var Stack_default;
var init_Stack = __esm({
  "node_modules/lodash-es/_Stack.js"() {
    init_process_global();
    init_ListCache();
    init_stackClear();
    init_stackDelete();
    init_stackGet();
    init_stackHas();
    init_stackSet();
    __name(Stack, "Stack");
    Stack.prototype.clear = stackClear_default;
    Stack.prototype["delete"] = stackDelete_default;
    Stack.prototype.get = stackGet_default;
    Stack.prototype.has = stackHas_default;
    Stack.prototype.set = stackSet_default;
    Stack_default = Stack;
  }
});

// node_modules/lodash-es/_arrayFilter.js
function arrayFilter(array, predicate) {
  var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
  while (++index < length) {
    var value = array[index];
    if (predicate(value, index, array)) {
      result[resIndex++] = value;
    }
  }
  return result;
}
var arrayFilter_default;
var init_arrayFilter = __esm({
  "node_modules/lodash-es/_arrayFilter.js"() {
    init_process_global();
    __name(arrayFilter, "arrayFilter");
    arrayFilter_default = arrayFilter;
  }
});

// node_modules/lodash-es/stubArray.js
function stubArray() {
  return [];
}
var stubArray_default;
var init_stubArray = __esm({
  "node_modules/lodash-es/stubArray.js"() {
    init_process_global();
    __name(stubArray, "stubArray");
    stubArray_default = stubArray;
  }
});

// node_modules/lodash-es/_getSymbols.js
var objectProto10, propertyIsEnumerable2, nativeGetSymbols, getSymbols, getSymbols_default;
var init_getSymbols = __esm({
  "node_modules/lodash-es/_getSymbols.js"() {
    init_process_global();
    init_arrayFilter();
    init_stubArray();
    objectProto10 = Object.prototype;
    propertyIsEnumerable2 = objectProto10.propertyIsEnumerable;
    nativeGetSymbols = Object.getOwnPropertySymbols;
    getSymbols = !nativeGetSymbols ? stubArray_default : function(object) {
      if (object == null) {
        return [];
      }
      object = Object(object);
      return arrayFilter_default(nativeGetSymbols(object), function(symbol) {
        return propertyIsEnumerable2.call(object, symbol);
      });
    };
    getSymbols_default = getSymbols;
  }
});

// node_modules/lodash-es/_baseGetAllKeys.js
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  var result = keysFunc(object);
  return isArray_default(object) ? result : arrayPush_default(result, symbolsFunc(object));
}
var baseGetAllKeys_default;
var init_baseGetAllKeys = __esm({
  "node_modules/lodash-es/_baseGetAllKeys.js"() {
    init_process_global();
    init_arrayPush();
    init_isArray();
    __name(baseGetAllKeys, "baseGetAllKeys");
    baseGetAllKeys_default = baseGetAllKeys;
  }
});

// node_modules/lodash-es/_getAllKeys.js
function getAllKeys(object) {
  return baseGetAllKeys_default(object, keys_default, getSymbols_default);
}
var getAllKeys_default;
var init_getAllKeys = __esm({
  "node_modules/lodash-es/_getAllKeys.js"() {
    init_process_global();
    init_baseGetAllKeys();
    init_getSymbols();
    init_keys();
    __name(getAllKeys, "getAllKeys");
    getAllKeys_default = getAllKeys;
  }
});

// node_modules/lodash-es/_DataView.js
var DataView, DataView_default;
var init_DataView = __esm({
  "node_modules/lodash-es/_DataView.js"() {
    init_process_global();
    init_getNative();
    init_root();
    DataView = getNative_default(root_default, "DataView");
    DataView_default = DataView;
  }
});

// node_modules/lodash-es/_Promise.js
var Promise2, Promise_default;
var init_Promise = __esm({
  "node_modules/lodash-es/_Promise.js"() {
    init_process_global();
    init_getNative();
    init_root();
    Promise2 = getNative_default(root_default, "Promise");
    Promise_default = Promise2;
  }
});

// node_modules/lodash-es/_Set.js
var Set2, Set_default;
var init_Set = __esm({
  "node_modules/lodash-es/_Set.js"() {
    init_process_global();
    init_getNative();
    init_root();
    Set2 = getNative_default(root_default, "Set");
    Set_default = Set2;
  }
});

// node_modules/lodash-es/_getTag.js
var mapTag2, objectTag2, promiseTag, setTag2, weakMapTag2, dataViewTag2, dataViewCtorString, mapCtorString, promiseCtorString, setCtorString, weakMapCtorString, getTag, getTag_default;
var init_getTag = __esm({
  "node_modules/lodash-es/_getTag.js"() {
    init_process_global();
    init_DataView();
    init_Map();
    init_Promise();
    init_Set();
    init_WeakMap();
    init_baseGetTag();
    init_toSource();
    mapTag2 = "[object Map]";
    objectTag2 = "[object Object]";
    promiseTag = "[object Promise]";
    setTag2 = "[object Set]";
    weakMapTag2 = "[object WeakMap]";
    dataViewTag2 = "[object DataView]";
    dataViewCtorString = toSource_default(DataView_default);
    mapCtorString = toSource_default(Map_default);
    promiseCtorString = toSource_default(Promise_default);
    setCtorString = toSource_default(Set_default);
    weakMapCtorString = toSource_default(WeakMap_default);
    getTag = baseGetTag_default;
    if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag2 || Map_default && getTag(new Map_default()) != mapTag2 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag2 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) {
      getTag = /* @__PURE__ */ __name(function(value) {
        var result = baseGetTag_default(value), Ctor = result == objectTag2 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : "";
        if (ctorString) {
          switch (ctorString) {
            case dataViewCtorString:
              return dataViewTag2;
            case mapCtorString:
              return mapTag2;
            case promiseCtorString:
              return promiseTag;
            case setCtorString:
              return setTag2;
            case weakMapCtorString:
              return weakMapTag2;
          }
        }
        return result;
      }, "getTag");
    }
    getTag_default = getTag;
  }
});

// node_modules/lodash-es/_Uint8Array.js
var Uint8Array2, Uint8Array_default;
var init_Uint8Array = __esm({
  "node_modules/lodash-es/_Uint8Array.js"() {
    init_process_global();
    init_root();
    Uint8Array2 = root_default.Uint8Array;
    Uint8Array_default = Uint8Array2;
  }
});

// node_modules/lodash-es/_setCacheAdd.js
function setCacheAdd(value) {
  this.__data__.set(value, HASH_UNDEFINED3);
  return this;
}
var HASH_UNDEFINED3, setCacheAdd_default;
var init_setCacheAdd = __esm({
  "node_modules/lodash-es/_setCacheAdd.js"() {
    init_process_global();
    HASH_UNDEFINED3 = "__lodash_hash_undefined__";
    __name(setCacheAdd, "setCacheAdd");
    setCacheAdd_default = setCacheAdd;
  }
});

// node_modules/lodash-es/_setCacheHas.js
function setCacheHas(value) {
  return this.__data__.has(value);
}
var setCacheHas_default;
var init_setCacheHas = __esm({
  "node_modules/lodash-es/_setCacheHas.js"() {
    init_process_global();
    __name(setCacheHas, "setCacheHas");
    setCacheHas_default = setCacheHas;
  }
});

// node_modules/lodash-es/_SetCache.js
function SetCache(values) {
  var index = -1, length = values == null ? 0 : values.length;
  this.__data__ = new MapCache_default();
  while (++index < length) {
    this.add(values[index]);
  }
}
var SetCache_default;
var init_SetCache = __esm({
  "node_modules/lodash-es/_SetCache.js"() {
    init_process_global();
    init_MapCache();
    init_setCacheAdd();
    init_setCacheHas();
    __name(SetCache, "SetCache");
    SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default;
    SetCache.prototype.has = setCacheHas_default;
    SetCache_default = SetCache;
  }
});

// node_modules/lodash-es/_arraySome.js
function arraySome(array, predicate) {
  var index = -1, length = array == null ? 0 : array.length;
  while (++index < length) {
    if (predicate(array[index], index, array)) {
      return true;
    }
  }
  return false;
}
var arraySome_default;
var init_arraySome = __esm({
  "node_modules/lodash-es/_arraySome.js"() {
    init_process_global();
    __name(arraySome, "arraySome");
    arraySome_default = arraySome;
  }
});

// node_modules/lodash-es/_cacheHas.js
function cacheHas(cache, key) {
  return cache.has(key);
}
var cacheHas_default;
var init_cacheHas = __esm({
  "node_modules/lodash-es/_cacheHas.js"() {
    init_process_global();
    __name(cacheHas, "cacheHas");
    cacheHas_default = cacheHas;
  }
});

// node_modules/lodash-es/_equalArrays.js
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
    return false;
  }
  var arrStacked = stack.get(array);
  var othStacked = stack.get(other);
  if (arrStacked && othStacked) {
    return arrStacked == other && othStacked == array;
  }
  var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0;
  stack.set(array, other);
  stack.set(other, array);
  while (++index < arrLength) {
    var arrValue = array[index], othValue = other[index];
    if (customizer) {
      var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
    }
    if (compared !== void 0) {
      if (compared) {
        continue;
      }
      result = false;
      break;
    }
    if (seen) {
      if (!arraySome_default(other, function(othValue2, othIndex) {
        if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
          return seen.push(othIndex);
        }
      })) {
        result = false;
        break;
      }
    } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
      result = false;
      break;
    }
  }
  stack["delete"](array);
  stack["delete"](other);
  return result;
}
var COMPARE_PARTIAL_FLAG, COMPARE_UNORDERED_FLAG, equalArrays_default;
var init_equalArrays = __esm({
  "node_modules/lodash-es/_equalArrays.js"() {
    init_process_global();
    init_SetCache();
    init_arraySome();
    init_cacheHas();
    COMPARE_PARTIAL_FLAG = 1;
    COMPARE_UNORDERED_FLAG = 2;
    __name(equalArrays, "equalArrays");
    equalArrays_default = equalArrays;
  }
});

// node_modules/lodash-es/_mapToArray.js
function mapToArray(map) {
  var index = -1, result = Array(map.size);
  map.forEach(function(value, key) {
    result[++index] = [key, value];
  });
  return result;
}
var mapToArray_default;
var init_mapToArray = __esm({
  "node_modules/lodash-es/_mapToArray.js"() {
    init_process_global();
    __name(mapToArray, "mapToArray");
    mapToArray_default = mapToArray;
  }
});

// node_modules/lodash-es/_setToArray.js
function setToArray(set) {
  var index = -1, result = Array(set.size);
  set.forEach(function(value) {
    result[++index] = value;
  });
  return result;
}
var setToArray_default;
var init_setToArray = __esm({
  "node_modules/lodash-es/_setToArray.js"() {
    init_process_global();
    __name(setToArray, "setToArray");
    setToArray_default = setToArray;
  }
});

// node_modules/lodash-es/_equalByTag.js
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  switch (tag) {
    case dataViewTag3:
      if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
        return false;
      }
      object = object.buffer;
      other = other.buffer;
    case arrayBufferTag2:
      if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object), new Uint8Array_default(other))) {
        return false;
      }
      return true;
    case boolTag2:
    case dateTag2:
    case numberTag2:
      return eq_default(+object, +other);
    case errorTag2:
      return object.name == other.name && object.message == other.message;
    case regexpTag2:
    case stringTag2:
      return object == other + "";
    case mapTag3:
      var convert = mapToArray_default;
    case setTag3:
      var isPartial = bitmask & COMPARE_PARTIAL_FLAG2;
      convert || (convert = setToArray_default);
      if (object.size != other.size && !isPartial) {
        return false;
      }
      var stacked = stack.get(object);
      if (stacked) {
        return stacked == other;
      }
      bitmask |= COMPARE_UNORDERED_FLAG2;
      stack.set(object, other);
      var result = equalArrays_default(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
      stack["delete"](object);
      return result;
    case symbolTag:
      if (symbolValueOf) {
        return symbolValueOf.call(object) == symbolValueOf.call(other);
      }
  }
  return false;
}
var COMPARE_PARTIAL_FLAG2, COMPARE_UNORDERED_FLAG2, boolTag2, dateTag2, errorTag2, mapTag3, numberTag2, regexpTag2, setTag3, stringTag2, symbolTag, arrayBufferTag2, dataViewTag3, symbolProto, symbolValueOf, equalByTag_default;
var init_equalByTag = __esm({
  "node_modules/lodash-es/_equalByTag.js"() {
    init_process_global();
    init_Symbol();
    init_Uint8Array();
    init_eq();
    init_equalArrays();
    init_mapToArray();
    init_setToArray();
    COMPARE_PARTIAL_FLAG2 = 1;
    COMPARE_UNORDERED_FLAG2 = 2;
    boolTag2 = "[object Boolean]";
    dateTag2 = "[object Date]";
    errorTag2 = "[object Error]";
    mapTag3 = "[object Map]";
    numberTag2 = "[object Number]";
    regexpTag2 = "[object RegExp]";
    setTag3 = "[object Set]";
    stringTag2 = "[object String]";
    symbolTag = "[object Symbol]";
    arrayBufferTag2 = "[object ArrayBuffer]";
    dataViewTag3 = "[object DataView]";
    symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
    symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
    __name(equalByTag, "equalByTag");
    equalByTag_default = equalByTag;
  }
});

// node_modules/lodash-es/_equalObjects.js
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length;
  if (objLength != othLength && !isPartial) {
    return false;
  }
  var index = objLength;
  while (index--) {
    var key = objProps[index];
    if (!(isPartial ? key in other : hasOwnProperty8.call(other, key))) {
      return false;
    }
  }
  var objStacked = stack.get(object);
  var othStacked = stack.get(other);
  if (objStacked && othStacked) {
    return objStacked == other && othStacked == object;
  }
  var result = true;
  stack.set(object, other);
  stack.set(other, object);
  var skipCtor = isPartial;
  while (++index < objLength) {
    key = objProps[index];
    var objValue = object[key], othValue = other[key];
    if (customizer) {
      var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
    }
    if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
      result = false;
      break;
    }
    skipCtor || (skipCtor = key == "constructor");
  }
  if (result && !skipCtor) {
    var objCtor = object.constructor, othCtor = other.constructor;
    if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
      result = false;
    }
  }
  stack["delete"](object);
  stack["delete"](other);
  return result;
}
var COMPARE_PARTIAL_FLAG3, objectProto11, hasOwnProperty8, equalObjects_default;
var init_equalObjects = __esm({
  "node_modules/lodash-es/_equalObjects.js"() {
    init_process_global();
    init_getAllKeys();
    COMPARE_PARTIAL_FLAG3 = 1;
    objectProto11 = Object.prototype;
    hasOwnProperty8 = objectProto11.hasOwnProperty;
    __name(equalObjects, "equalObjects");
    equalObjects_default = equalObjects;
  }
});

// node_modules/lodash-es/_baseIsEqualDeep.js
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  var objIsArr = isArray_default(object), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag2 : getTag_default(object), othTag = othIsArr ? arrayTag2 : getTag_default(other);
  objTag = objTag == argsTag3 ? objectTag3 : objTag;
  othTag = othTag == argsTag3 ? objectTag3 : othTag;
  var objIsObj = objTag == objectTag3, othIsObj = othTag == objectTag3, isSameTag = objTag == othTag;
  if (isSameTag && isBuffer_default(object)) {
    if (!isBuffer_default(other)) {
      return false;
    }
    objIsArr = true;
    objIsObj = false;
  }
  if (isSameTag && !objIsObj) {
    stack || (stack = new Stack_default());
    return objIsArr || isTypedArray_default(object) ? equalArrays_default(object, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object, other, objTag, bitmask, customizer, equalFunc, stack);
  }
  if (!(bitmask & COMPARE_PARTIAL_FLAG4)) {
    var objIsWrapped = objIsObj && hasOwnProperty9.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty9.call(other, "__wrapped__");
    if (objIsWrapped || othIsWrapped) {
      var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
      stack || (stack = new Stack_default());
      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
    }
  }
  if (!isSameTag) {
    return false;
  }
  stack || (stack = new Stack_default());
  return equalObjects_default(object, other, bitmask, customizer, equalFunc, stack);
}
var COMPARE_PARTIAL_FLAG4, argsTag3, arrayTag2, objectTag3, objectProto12, hasOwnProperty9, baseIsEqualDeep_default;
var init_baseIsEqualDeep = __esm({
  "node_modules/lodash-es/_baseIsEqualDeep.js"() {
    init_process_global();
    init_Stack();
    init_equalArrays();
    init_equalByTag();
    init_equalObjects();
    init_getTag();
    init_isArray();
    init_isBuffer();
    init_isTypedArray();
    COMPARE_PARTIAL_FLAG4 = 1;
    argsTag3 = "[object Arguments]";
    arrayTag2 = "[object Array]";
    objectTag3 = "[object Object]";
    objectProto12 = Object.prototype;
    hasOwnProperty9 = objectProto12.hasOwnProperty;
    __name(baseIsEqualDeep, "baseIsEqualDeep");
    baseIsEqualDeep_default = baseIsEqualDeep;
  }
});

// node_modules/lodash-es/_baseIsEqual.js
function baseIsEqual(value, other, bitmask, customizer, stack) {
  if (value === other) {
    return true;
  }
  if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) {
    return value !== value && other !== other;
  }
  return baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
}
var baseIsEqual_default;
var init_baseIsEqual = __esm({
  "node_modules/lodash-es/_baseIsEqual.js"() {
    init_process_global();
    init_baseIsEqualDeep();
    init_isObjectLike();
    __name(baseIsEqual, "baseIsEqual");
    baseIsEqual_default = baseIsEqual;
  }
});

// node_modules/lodash-es/isEqual.js
function isEqual(value, other) {
  return baseIsEqual_default(value, other);
}
var isEqual_default;
var init_isEqual = __esm({
  "node_modules/lodash-es/isEqual.js"() {
    init_process_global();
    init_baseIsEqual();
    __name(isEqual, "isEqual");
    isEqual_default = isEqual;
  }
});

// node_modules/lodash-es/lodash.js
var init_lodash = __esm({
  "node_modules/lodash-es/lodash.js"() {
    init_process_global();
    init_isEqual();
    /**
     * @license
     * Lodash (Custom Build) <https://lodash.com/>
     * Build: `lodash modularize exports="es" -o ./`
     * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
     * Released under MIT license <https://lodash.com/license>
     * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
     * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
     */
  }
});

// core/lib/lh-env.js
import process4 from "process";
var isUnderTest;
var init_lh_env = __esm({
  "core/lib/lh-env.js"() {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    isUnderTest = !!process4.env.CI || process4.env.NODE_ENV === "test";
  }
});

// shared/statistics.js
function erf(x) {
  const sign = Math.sign(x);
  x = Math.abs(x);
  const a1 = 0.254829592;
  const a2 = -0.284496736;
  const a3 = 1.421413741;
  const a4 = -1.453152027;
  const a5 = 1.061405429;
  const p = 0.3275911;
  const t = 1 / (1 + p * x);
  const y = t * (a1 + t * (a2 + t * (a3 + t * (a4 + t * a5))));
  return sign * (1 - y * Math.exp(-x * x));
}
function getLogNormalScore({ median, p10 }, value) {
  if (median <= 0) throw new Error("median must be greater than zero");
  if (p10 <= 0) throw new Error("p10 must be greater than zero");
  if (p10 >= median) throw new Error("p10 must be less than the median");
  if (value <= 0) return 1;
  const INVERSE_ERFC_ONE_FIFTH = 0.9061938024368232;
  const xRatio = Math.max(Number.MIN_VALUE, value / median);
  const xLogRatio = Math.log(xRatio);
  const p10Ratio = Math.max(Number.MIN_VALUE, p10 / median);
  const p10LogRatio = -Math.log(p10Ratio);
  const standardizedX = xLogRatio * INVERSE_ERFC_ONE_FIFTH / p10LogRatio;
  const complementaryPercentile = (1 - erf(standardizedX)) / 2;
  let score;
  if (value <= p10) {
    score = Math.max(MIN_PASSING_SCORE, Math.min(1, complementaryPercentile));
  } else if (value <= median) {
    score = Math.max(MIN_AVERAGE_SCORE, Math.min(MAX_AVERAGE_SCORE, complementaryPercentile));
  } else {
    score = Math.max(0, Math.min(MAX_FAILING_SCORE, complementaryPercentile));
  }
  return score;
}
var MIN_PASSING_SCORE, MAX_AVERAGE_SCORE, MIN_AVERAGE_SCORE, MAX_FAILING_SCORE;
var init_statistics = __esm({
  "shared/statistics.js"() {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    MIN_PASSING_SCORE = 0.9;
    MAX_AVERAGE_SCORE = 0.8999999999999999;
    MIN_AVERAGE_SCORE = 0.5;
    MAX_FAILING_SCORE = 0.49999999999999994;
    __name(erf, "erf");
    __name(getLogNormalScore, "getLogNormalScore");
  }
});

// shared/util.js
var ELLIPSIS, NBSP, PASS_THRESHOLD, RATINGS, listOfTlds, Util;
var init_util = __esm({
  "shared/util.js"() {
    "use strict";
    init_process_global();
    init_statistics();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    ELLIPSIS = "…";
    NBSP = " ";
    PASS_THRESHOLD = 0.9;
    RATINGS = {
      PASS: { label: "pass", minScore: PASS_THRESHOLD },
      AVERAGE: { label: "average", minScore: 0.5 },
      FAIL: { label: "fail" },
      ERROR: { label: "error" }
    };
    listOfTlds = [
      "com",
      "co",
      "gov",
      "edu",
      "ac",
      "org",
      "go",
      "gob",
      "or",
      "net",
      "in",
      "ne",
      "nic",
      "gouv",
      "web",
      "spb",
      "blog",
      "jus",
      "kiev",
      "mil",
      "wi",
      "qc",
      "ca",
      "bel",
      "on"
    ];
    Util = class _Util {
      static {
        __name(this, "Util");
      }
      static get RATINGS() {
        return RATINGS;
      }
      static get PASS_THRESHOLD() {
        return PASS_THRESHOLD;
      }
      static get MS_DISPLAY_VALUE() {
        return `%10d${NBSP}ms`;
      }
      /**
       * If LHR is older than 10.0 it will not have the `finalDisplayedUrl` property.
       * Old LHRs should have the `finalUrl` property which will work fine for the report.
       *
       * @param {LH.Result} lhr
       */
      static getFinalDisplayedUrl(lhr) {
        if (lhr.finalDisplayedUrl) return lhr.finalDisplayedUrl;
        if (lhr.finalUrl) return lhr.finalUrl;
        throw new Error("Could not determine final displayed URL");
      }
      /**
       * If LHR is older than 10.0 it will not have the `mainDocumentUrl` property.
       * Old LHRs should have the `finalUrl` property which is the same as `mainDocumentUrl`.
       *
       * @param {LH.Result} lhr
       */
      static getMainDocumentUrl(lhr) {
        return lhr.mainDocumentUrl || lhr.finalUrl;
      }
      /**
       * @param {LH.Result} lhr
       * @return {LH.Result.FullPageScreenshot=}
       */
      static getFullPageScreenshot(lhr) {
        if (lhr.fullPageScreenshot) {
          return lhr.fullPageScreenshot;
        }
        const details = (
          /** @type {LH.Result.FullPageScreenshot=} */
          lhr.audits["full-page-screenshot"]?.details
        );
        return details;
      }
      /**
       * Given the entity classification dataset and a URL, identify the entity.
       * @param {string} url
       * @param {LH.Result.Entities=} entities
       * @return {LH.Result.LhrEntity|string}
       */
      static getEntityFromUrl(url, entities) {
        if (!entities) {
          return _Util.getPseudoRootDomain(url);
        }
        const entity = entities.find((e) => e.origins.find((origin) => url.startsWith(origin)));
        return entity || _Util.getPseudoRootDomain(url);
      }
      /**
       * Split a string by markdown code spans (enclosed in `backticks`), splitting
       * into segments that were enclosed in backticks (marked as `isCode === true`)
       * and those that outside the backticks (`isCode === false`).
       * @param {string} text
       * @return {Array<{isCode: true, text: string}|{isCode: false, text: string}>}
       */
      static splitMarkdownCodeSpans(text) {
        const segments = [];
        const parts = text.split(/`(.*?)`/g);
        for (let i = 0; i < parts.length; i++) {
          const text2 = parts[i];
          if (!text2) continue;
          const isCode = i % 2 !== 0;
          segments.push({
            isCode,
            text: text2
          });
        }
        return segments;
      }
      /**
       * Split a string on markdown links (e.g. [some link](https://...)) into
       * segments of plain text that weren't part of a link (marked as
       * `isLink === false`), and segments with text content and a URL that did make
       * up a link (marked as `isLink === true`).
       * @param {string} text
       * @return {Array<{isLink: true, text: string, linkHref: string}|{isLink: false, text: string}>}
       */
      static splitMarkdownLink(text) {
        const segments = [];
        const parts = text.split(/\[([^\]]+?)\]\((https?:\/\/.*?)\)/g);
        while (parts.length) {
          const [preambleText, linkText, linkHref] = parts.splice(0, 3);
          if (preambleText) {
            segments.push({
              isLink: false,
              text: preambleText
            });
          }
          if (linkText && linkHref) {
            segments.push({
              isLink: true,
              text: linkText,
              linkHref
            });
          }
        }
        return segments;
      }
      /**
       * @param {string} string
       * @param {number} characterLimit
       * @param {string} ellipseSuffix
       */
      static truncate(string, characterLimit, ellipseSuffix = "…") {
        if (string.length <= characterLimit) {
          return string;
        }
        const segmenter = new Intl.Segmenter(void 0, { granularity: "grapheme" });
        const iterator = segmenter.segment(string)[Symbol.iterator]();
        let lastSegmentIndex = 0;
        for (let i = 0; i <= characterLimit - ellipseSuffix.length; i++) {
          const result = iterator.next();
          if (result.done) {
            return string;
          }
          lastSegmentIndex = result.value.index;
        }
        for (let i = 0; i < ellipseSuffix.length; i++) {
          if (iterator.next().done) {
            return string;
          }
        }
        return string.slice(0, lastSegmentIndex) + ellipseSuffix;
      }
      /**
       * @param {URL} parsedUrl
       * @param {{numPathParts?: number, preserveQuery?: boolean, preserveHost?: boolean}=} options
       * @return {string}
       */
      static getURLDisplayName(parsedUrl, options) {
        options = options || {
          numPathParts: void 0,
          preserveQuery: void 0,
          preserveHost: void 0
        };
        const numPathParts = options.numPathParts !== void 0 ? options.numPathParts : 2;
        const preserveQuery = options.preserveQuery !== void 0 ? options.preserveQuery : true;
        const preserveHost = options.preserveHost || false;
        let name;
        if (parsedUrl.protocol === "about:" || parsedUrl.protocol === "data:") {
          name = parsedUrl.href;
        } else {
          name = parsedUrl.pathname;
          const parts = name.split("/").filter((part) => part.length);
          if (numPathParts && parts.length > numPathParts) {
            name = ELLIPSIS + parts.slice(-1 * numPathParts).join("/");
          }
          if (preserveHost) {
            name = `${parsedUrl.host}/${name.replace(/^\//, "")}`;
          }
          if (preserveQuery) {
            name = `${name}${parsedUrl.search}`;
          }
        }
        const MAX_LENGTH = 64;
        if (parsedUrl.protocol !== "data:") {
          name = name.slice(0, 200);
          name = name.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g, `$1${ELLIPSIS}`);
          name = name.replace(
            /([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,
            `$1${ELLIPSIS}`
          );
          name = name.replace(/(\d{3})\d{6,}/g, `$1${ELLIPSIS}`);
          name = name.replace(/\u2026+/g, ELLIPSIS);
          if (name.length > MAX_LENGTH && name.includes("?")) {
            name = name.replace(/\?([^=]*)(=)?.*/, `?$1$2${ELLIPSIS}`);
            if (name.length > MAX_LENGTH) {
              name = name.replace(/\?.*/, `?${ELLIPSIS}`);
            }
          }
        }
        if (name.length > MAX_LENGTH) {
          const dotIndex = name.lastIndexOf(".");
          if (dotIndex >= 0) {
            name = name.slice(0, MAX_LENGTH - 1 - (name.length - dotIndex)) + // Show file extension
            `${ELLIPSIS}${name.slice(dotIndex)}`;
          } else {
            name = name.slice(0, MAX_LENGTH - 1) + ELLIPSIS;
          }
        }
        return name;
      }
      /**
       * Returns the origin portion of a Chrome extension URL.
       * @param {string} url
       * @return {string}
       */
      static getChromeExtensionOrigin(url) {
        const parsedUrl = new URL(url);
        return parsedUrl.protocol + "//" + parsedUrl.host;
      }
      /**
       * Split a URL into a file, hostname and origin for easy display.
       * @param {string} url
       * @return {{file: string, hostname: string, origin: string}}
       */
      static parseURL(url) {
        const parsedUrl = new URL(url);
        return {
          file: _Util.getURLDisplayName(parsedUrl),
          hostname: parsedUrl.hostname,
          // Node's URL parsing behavior is different than Chrome and returns 'null'
          // for chrome-extension:// URLs. See https://github.com/nodejs/node/issues/21955.
          origin: parsedUrl.protocol === "chrome-extension:" ? _Util.getChromeExtensionOrigin(url) : parsedUrl.origin
        };
      }
      /**
       * @param {string|URL} value
       * @return {!URL}
       */
      static createOrReturnURL(value) {
        if (value instanceof URL) {
          return value;
        }
        return new URL(value);
      }
      /**
       * Gets the tld of a domain
       * This function is used only while rendering pre-10.0 LHRs.
       *
       * @param {string} hostname
       * @return {string} tld
       */
      static getPseudoTld(hostname) {
        const tlds = hostname.split(".").slice(-2);
        if (!listOfTlds.includes(tlds[0])) {
          return `.${tlds[tlds.length - 1]}`;
        }
        return `.${tlds.join(".")}`;
      }
      /**
       * Returns a primary domain for provided hostname (e.g. www.example.com -> example.com).
       * As it doesn't consult the Public Suffix List, it can sometimes lose detail.
       * See the `listOfTlds` comment above for more.
       * This function is used only while rendering pre-10.0 LHRs. See UrlUtils.getRootDomain
       * for the current method that makes use of PSL.
       * @param {string|URL} url hostname or URL object
       * @return {string}
       */
      static getPseudoRootDomain(url) {
        const hostname = _Util.createOrReturnURL(url).hostname;
        const tld = _Util.getPseudoTld(hostname);
        const splitTld = tld.split(".");
        return hostname.split(".").slice(-splitTld.length).join(".");
      }
      /**
       * Returns only lines that are near a message, or the first few lines if there are
       * no line messages.
       * @param {SnippetValue['lines']} lines
       * @param {SnippetValue['lineMessages']} lineMessages
       * @param {number} surroundingLineCount Number of lines to include before and after
       * the message. If this is e.g. 2 this function might return 5 lines.
       */
      static filterRelevantLines(lines, lineMessages, surroundingLineCount) {
        if (lineMessages.length === 0) {
          return lines.slice(0, surroundingLineCount * 2 + 1);
        }
        const minGapSize = 3;
        const lineNumbersToKeep = /* @__PURE__ */ new Set();
        lineMessages = lineMessages.sort((a, b) => (a.lineNumber || 0) - (b.lineNumber || 0));
        lineMessages.forEach(({ lineNumber }) => {
          let firstSurroundingLineNumber = lineNumber - surroundingLineCount;
          let lastSurroundingLineNumber = lineNumber + surroundingLineCount;
          while (firstSurroundingLineNumber < 1) {
            firstSurroundingLineNumber++;
            lastSurroundingLineNumber++;
          }
          if (lineNumbersToKeep.has(firstSurroundingLineNumber - minGapSize - 1)) {
            firstSurroundingLineNumber -= minGapSize;
          }
          for (let i = firstSurroundingLineNumber; i <= lastSurroundingLineNumber; i++) {
            const surroundingLineNumber = i;
            lineNumbersToKeep.add(surroundingLineNumber);
          }
        });
        return lines.filter((line) => lineNumbersToKeep.has(line.lineNumber));
      }
      /**
       * Computes a score between 0 and 1 based on the measured `value`. Score is determined by
       * considering a log-normal distribution governed by two control points (the 10th
       * percentile value and the median value) and represents the percentage of sites that are
       * greater than `value`.
       *
       * Score characteristics:
       * - within [0, 1]
       * - rounded to two digits
       * - value must meet or beat a controlPoint value to meet or exceed its percentile score:
       *   - value > median will give a score < 0.5; value ≤ median will give a score ≥ 0.5.
       *   - value > p10 will give a score < 0.9; value ≤ p10 will give a score ≥ 0.9.
       * - values < p10 will get a slight boost so a score of 1 is achievable by a
       *   `value` other than those close to 0. Scores of > ~0.99524 end up rounded to 1.
       * @param {{median: number, p10: number}} controlPoints
       * @param {number} value
       * @return {number}
       */
      static computeLogNormalScore(controlPoints, value) {
        let percentile = getLogNormalScore(controlPoints, value);
        if (percentile > 0.9) {
          percentile += 0.05 * (percentile - 0.9);
        }
        return Math.floor(percentile * 100) / 100;
      }
    };
  }
});

// core/audits/audit.js
var METRIC_SAVINGS_PRECISION, clampTo2Decimals, Audit;
var init_audit = __esm({
  "core/audits/audit.js"() {
    "use strict";
    init_process_global();
    init_lh();
    init_lh_env();
    init_util();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    METRIC_SAVINGS_PRECISION = {
      FCP: 50,
      LCP: 50,
      INP: 50,
      TBT: 50,
      CLS: 1e-3
    };
    clampTo2Decimals = /* @__PURE__ */ __name((val) => Math.round(val * 100) / 100, "clampTo2Decimals");
    Audit = class _Audit {
      static {
        __name(this, "Audit");
      }
      /**
       * @return {LH.Audit.ScoreDisplayModes}
       */
      static get SCORING_MODES() {
        return {
          NUMERIC: "numeric",
          METRIC_SAVINGS: "metricSavings",
          BINARY: "binary",
          MANUAL: "manual",
          INFORMATIVE: "informative",
          NOT_APPLICABLE: "notApplicable",
          ERROR: "error"
        };
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        throw new Error("Audit meta information must be overridden.");
      }
      /**
       * @return {Object}
       */
      static get defaultOptions() {
        return {};
      }
      /* eslint-disable no-unused-vars */
      /**
       *
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {LH.Audit.Product|Promise<LH.Audit.Product>}
       */
      static audit(artifacts, context) {
        throw new Error("audit() method must be overridden");
      }
      /* eslint-enable no-unused-vars */
      /**
       * Computes a score between 0 and 1 based on the measured `value`. Score is determined by
       * considering a log-normal distribution governed by two control points (the 10th
       * percentile value and the median value) and represents the percentage of sites that are
       * greater than `value`.
       *
       * Score characteristics:
       * - within [0, 1]
       * - rounded to two digits
       * - value must meet or beat a controlPoint value to meet or exceed its percentile score:
       *   - value > median will give a score < 0.5; value ≤ median will give a score ≥ 0.5.
       *   - value > p10 will give a score < 0.9; value ≤ p10 will give a score ≥ 0.9.
       * - values < p10 will get a slight boost so a score of 1 is achievable by a
       *   `value` other than those close to 0. Scores of > ~0.99524 end up rounded to 1.
       * @param {{median: number, p10: number}} controlPoints
       * @param {number} value
       * @return {number}
       */
      static computeLogNormalScore(controlPoints, value) {
        return Util.computeLogNormalScore(controlPoints, value);
      }
      /**
       * This catches typos in the `key` property of a heading definition of table/opportunity details.
       * Throws an error if any of keys referenced by headings don't exist in at least one of the items.
       *
       * @param {LH.Audit.Details.Table['headings']|LH.Audit.Details.Opportunity['headings']} headings
       * @param {LH.Audit.Details.Opportunity['items']|LH.Audit.Details.Table['items']} items
       */
      static assertHeadingKeysExist(headings, items) {
        if (!items.length) return;
        if (!isUnderTest) return;
        for (const heading of headings) {
          if (heading.key === null) continue;
          const key = heading.key;
          if (items.some((item) => key in item)) continue;
          throw new Error(`"${heading.key}" is missing from items`);
        }
      }
      /**
       * @param {LH.Audit.Details.Checklist['items']} items
       * @return {LH.Audit.Details.Checklist}
       */
      static makeChecklistDetails(items) {
        return {
          type: "checklist",
          items
        };
      }
      /**
       * @param {LH.Audit.Details.Table['headings']} headings
       * @param {LH.Audit.Details.Table['items']} results
       * @param {TableOptions=} options
       * @return {LH.Audit.Details.Table}
       */
      static makeTableDetails(headings, results, options = {}) {
        const { wastedBytes, wastedMs, sortedBy, skipSumming, isEntityGrouped } = options;
        const summary = wastedBytes || wastedMs ? { wastedBytes, wastedMs } : void 0;
        if (results.length === 0) {
          return {
            type: "table",
            headings,
            items: [],
            summary
          };
        }
        _Audit.assertHeadingKeysExist(headings, results);
        return {
          type: "table",
          headings,
          items: results,
          summary,
          sortedBy,
          skipSumming,
          isEntityGrouped
        };
      }
      /**
       * @param {LH.Audit.Details.List['items']} items
       * @return {LH.Audit.Details.List}
       */
      static makeListDetails(items) {
        return {
          type: "list",
          items
        };
      }
      /**
       * @param {LH.IcuMessage | string=} title
       * @param {LH.IcuMessage | string=} description
       * @param {LH.Audit.Details.ListableDetail} value
       * @return {LH.Audit.Details.ListSectionItem}
       */
      static makeListDetailSectionItem(value, title, description) {
        return {
          type: "list-section",
          title,
          description,
          value
        };
      }
      /** @typedef {{
       * content: string;
       * title: string;
       * lineMessages: LH.Audit.Details.SnippetValue['lineMessages'];
       * generalMessages: LH.Audit.Details.SnippetValue['generalMessages'];
       * node?: LH.Audit.Details.NodeValue;
       * maxLineLength?: number;
       * maxLinesAroundMessage?: number;
       * }} SnippetInfo */
      /**
       * @param {SnippetInfo} snippetInfo
       * @return {LH.Audit.Details.SnippetValue}
       */
      static makeSnippetDetails({
        content,
        title,
        lineMessages,
        generalMessages,
        node,
        maxLineLength = 200,
        maxLinesAroundMessage = 20
      }) {
        const allLines = _Audit._makeSnippetLinesArray(content, maxLineLength);
        const lines = Util.filterRelevantLines(allLines, lineMessages, maxLinesAroundMessage);
        return {
          type: "snippet",
          lines,
          title,
          lineMessages,
          generalMessages,
          lineCount: allLines.length,
          node
        };
      }
      /**
       * @param {string} content
       * @param {number} maxLineLength
       * @return {LH.Audit.Details.SnippetValue['lines']}
       */
      static _makeSnippetLinesArray(content, maxLineLength) {
        return content.split("\n").map((line, lineIndex) => {
          const lineNumber = lineIndex + 1;
          const lineDetail = {
            content: Util.truncate(line, maxLineLength),
            lineNumber
          };
          if (line.length > maxLineLength) {
            lineDetail.truncated = true;
          }
          return lineDetail;
        });
      }
      /**
       * @param {LH.Audit.Details.Opportunity['headings']} headings
       * @param {LH.Audit.Details.Opportunity['items']} items
       * @param {OpportunityOptions} options
       * @return {LH.Audit.Details.Opportunity}
       */
      static makeOpportunityDetails(headings, items, options) {
        _Audit.assertHeadingKeysExist(headings, items);
        const { overallSavingsMs, overallSavingsBytes, sortedBy, skipSumming, isEntityGrouped } = options;
        return {
          type: "opportunity",
          headings: items.length === 0 ? [] : headings,
          items,
          overallSavingsMs,
          overallSavingsBytes,
          sortedBy,
          skipSumming,
          isEntityGrouped
        };
      }
      /**
       * @param {LH.Artifacts.NodeDetails} node
       * @return {LH.Audit.Details.NodeValue}
       */
      static makeNodeItem(node) {
        return {
          type: "node",
          lhId: node.lhId,
          path: node.devtoolsNodePath,
          selector: node.selector,
          boundingRect: node.boundingRect,
          snippet: node.snippet,
          nodeLabel: node.nodeLabel
        };
      }
      /**
       * @param {LH.Artifacts.Bundle} bundle
       * @param {number} generatedLine
       * @param {number} generatedColumn
       * @return {LH.Audit.Details.SourceLocationValue['original']}
       */
      static _findOriginalLocation(bundle, generatedLine, generatedColumn) {
        const entry = bundle?.map.findEntry(generatedLine, generatedColumn);
        if (!entry) return;
        return {
          file: entry.sourceURL || "",
          line: entry.sourceLineNumber || 0,
          column: entry.sourceColumnNumber || 0
        };
      }
      /**
       * @param {string} url
       * @param {number} line 0-indexed
       * @param {number} column 0-indexed
       * @param {LH.Artifacts.Bundle=} bundle
       * @return {LH.Audit.Details.SourceLocationValue}
       */
      static makeSourceLocation(url, line, column, bundle) {
        return {
          type: "source-location",
          url,
          urlProvider: "network",
          line,
          column,
          original: bundle && this._findOriginalLocation(bundle, line, column)
        };
      }
      /**
       * @param {LH.Artifacts.ConsoleMessage} entry
       * @param {LH.Artifacts.Bundle=} bundle
       * @return {LH.Audit.Details.SourceLocationValue | undefined}
       */
      static makeSourceLocationFromConsoleMessage(entry, bundle) {
        if (!entry.url) return;
        const line = entry.lineNumber || 0;
        const column = entry.columnNumber || 0;
        return this.makeSourceLocation(entry.url, line, column, bundle);
      }
      /**
       * @param {number|null} score
       * @param {LH.Audit.ScoreDisplayMode} scoreDisplayMode
       * @param {string} auditId
       * @return {number|null}
       */
      static _normalizeAuditScore(score, scoreDisplayMode, auditId) {
        if (scoreDisplayMode === _Audit.SCORING_MODES.INFORMATIVE) {
          return 1;
        }
        if (scoreDisplayMode !== _Audit.SCORING_MODES.BINARY && scoreDisplayMode !== _Audit.SCORING_MODES.NUMERIC && scoreDisplayMode !== _Audit.SCORING_MODES.METRIC_SAVINGS) {
          return null;
        }
        if (score === null || !Number.isFinite(score)) {
          throw new Error(`Invalid score for ${auditId}: ${score}`);
        }
        if (score > 1) throw new Error(`Audit score for ${auditId} is > 1`);
        if (score < 0) throw new Error(`Audit score for ${auditId} is < 0`);
        score = clampTo2Decimals(score);
        return score;
      }
      /**
       * @param {LH.Audit.ProductMetricSavings|undefined} metricSavings
       * @return {LH.Audit.ProductMetricSavings|undefined}
       */
      static _quantizeMetricSavings(metricSavings) {
        if (!metricSavings) return;
        const normalizedMetricSavings = { ...metricSavings };
        for (
          const key of
          /** @type {Array<keyof LH.Audit.ProductMetricSavings>} */
          Object.keys(metricSavings)
        ) {
          let value = metricSavings[key];
          if (value === void 0) continue;
          value = Math.max(value, 0);
          const precision = METRIC_SAVINGS_PRECISION[key];
          if (precision !== void 0) {
            value = Math.round(value / precision) * precision;
          }
          normalizedMetricSavings[key] = value;
        }
        return normalizedMetricSavings;
      }
      /**
       * @param {typeof Audit} audit
       * @param {string | LH.IcuMessage} errorMessage
       * @param {string=} errorStack
       * @return {LH.RawIcu<LH.Audit.Result>}
       */
      static generateErrorAuditResult(audit, errorMessage, errorStack) {
        return _Audit.generateAuditResult(audit, {
          score: null,
          errorMessage,
          errorStack
        });
      }
      /**
       * @param {typeof Audit} audit
       * @param {LH.Audit.Product} product
       * @return {LH.RawIcu<LH.Audit.Result>}
       */
      static generateAuditResult(audit, product) {
        if (product.score === void 0) {
          throw new Error("generateAuditResult requires a score");
        }
        let scoreDisplayMode = audit.meta.scoreDisplayMode || _Audit.SCORING_MODES.BINARY;
        let score = product.score;
        if (product.errorMessage !== void 0) {
          scoreDisplayMode = _Audit.SCORING_MODES.ERROR;
        } else if (product.notApplicable) {
          scoreDisplayMode = _Audit.SCORING_MODES.NOT_APPLICABLE;
        } else if (product.scoreDisplayMode) {
          scoreDisplayMode = product.scoreDisplayMode;
        }
        const metricSavings = _Audit._quantizeMetricSavings(product.metricSavings);
        const hasSomeSavings = Object.values(metricSavings || {}).some((v) => v);
        if (scoreDisplayMode === _Audit.SCORING_MODES.METRIC_SAVINGS) {
          if (score && score >= Util.PASS_THRESHOLD) {
            score = 1;
          } else if (hasSomeSavings) {
            score = 0;
          } else {
            score = 0.5;
          }
        }
        score = _Audit._normalizeAuditScore(score, scoreDisplayMode, audit.meta.id);
        let auditTitle = audit.meta.title;
        if (audit.meta.failureTitle) {
          if (score !== null && score < Util.PASS_THRESHOLD) {
            auditTitle = audit.meta.failureTitle;
          }
        }
        const numericProduct = "numericUnit" in product ? product : void 0;
        return {
          id: audit.meta.id,
          title: auditTitle,
          description: audit.meta.description,
          score,
          scoreDisplayMode,
          numericValue: numericProduct?.numericValue,
          numericUnit: numericProduct?.numericUnit,
          displayValue: product.displayValue,
          explanation: product.explanation,
          errorMessage: product.errorMessage,
          errorStack: product.errorStack,
          warnings: product.warnings,
          scoringOptions: product.scoringOptions,
          metricSavings,
          details: product.details,
          guidanceLevel: audit.meta.guidanceLevel
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @returns {LH.Artifacts.MetricComputationDataInput}
       */
      static makeMetricComputationDataInput(artifacts, context) {
        const trace = artifacts.Trace;
        const devtoolsLog = artifacts.DevtoolsLog;
        const gatherContext = artifacts.GatherContext;
        const { URL: URL3, HostDPR, SourceMaps: SourceMaps2 } = artifacts;
        return { trace, devtoolsLog, gatherContext, settings: context.settings, URL: URL3, SourceMaps: SourceMaps2, HostDPR, simulator: null };
      }
    };
  }
});

// core/scoring.js
var clampTo2Decimals2, ReportScoring;
var init_scoring = __esm({
  "core/scoring.js"() {
    "use strict";
    init_process_global();
    init_audit();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    clampTo2Decimals2 = /* @__PURE__ */ __name((val) => Math.round(val * 100) / 100, "clampTo2Decimals");
    ReportScoring = class _ReportScoring {
      static {
        __name(this, "ReportScoring");
      }
      /**
       * Computes the weighted-average of the score of the list of items.
       * @param {Array<{score: number|null, weight: number}>} items
       * @return {number|null}
       */
      static arithmeticMean(items) {
        items = items.filter((item) => item.weight > 0);
        if (items.some((item) => item.score === null)) return null;
        const results = items.reduce(
          (result, item) => {
            const score = item.score;
            const weight = item.weight;
            return {
              weight: result.weight + weight,
              sum: result.sum + /** @type {number} */
              score * weight
            };
          },
          { weight: 0, sum: 0 }
        );
        return clampTo2Decimals2(results.sum / results.weight || 0);
      }
      /**
       * Returns the report JSON object with computed scores.
       * @param {Object<string, LH.Config.Category>} configCategories
       * @param {Object<string, LH.RawIcu<LH.Audit.Result>>} resultsByAuditId
       * @return {Object<string, LH.RawIcu<LH.Result.Category>>}
       */
      static scoreAllCategories(configCategories, resultsByAuditId) {
        const scoredCategories = {};
        for (const [categoryId, configCategory] of Object.entries(configCategories)) {
          const auditRefs = configCategory.auditRefs.map((configMember) => {
            const member = { ...configMember };
            const result = resultsByAuditId[member.id];
            if (result.scoreDisplayMode === Audit.SCORING_MODES.NOT_APPLICABLE || result.scoreDisplayMode === Audit.SCORING_MODES.INFORMATIVE || result.scoreDisplayMode === Audit.SCORING_MODES.MANUAL) {
              member.weight = 0;
            }
            return member;
          });
          const scores = auditRefs.map((auditRef) => ({
            score: resultsByAuditId[auditRef.id].score,
            weight: auditRef.weight
          }));
          const score = _ReportScoring.arithmeticMean(scores);
          scoredCategories[categoryId] = {
            ...configCategory,
            auditRefs,
            id: categoryId,
            score
          };
        }
        return scoredCategories;
      }
    };
  }
});

// node_modules/intl-messageformat/node_modules/tslib/tslib.es6.mjs
var tslib_es6_exports = {};
__export(tslib_es6_exports, {
  __addDisposableResource: () => __addDisposableResource,
  __assign: () => __assign,
  __asyncDelegator: () => __asyncDelegator,
  __asyncGenerator: () => __asyncGenerator,
  __asyncValues: () => __asyncValues,
  __await: () => __await,
  __awaiter: () => __awaiter,
  __classPrivateFieldGet: () => __classPrivateFieldGet,
  __classPrivateFieldIn: () => __classPrivateFieldIn,
  __classPrivateFieldSet: () => __classPrivateFieldSet,
  __createBinding: () => __createBinding,
  __decorate: () => __decorate,
  __disposeResources: () => __disposeResources,
  __esDecorate: () => __esDecorate,
  __exportStar: () => __exportStar,
  __extends: () => __extends,
  __generator: () => __generator,
  __importDefault: () => __importDefault,
  __importStar: () => __importStar,
  __makeTemplateObject: () => __makeTemplateObject,
  __metadata: () => __metadata,
  __param: () => __param,
  __propKey: () => __propKey,
  __read: () => __read,
  __rest: () => __rest,
  __runInitializers: () => __runInitializers,
  __setFunctionName: () => __setFunctionName,
  __spread: () => __spread,
  __spreadArray: () => __spreadArray,
  __spreadArrays: () => __spreadArrays,
  __values: () => __values,
  default: () => tslib_es6_default
});
function __extends(d, b) {
  if (typeof b !== "function" && b !== null)
    throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  extendStatics(d, b);
  function __() {
    this.constructor = d;
  }
  __name(__, "__");
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __rest(s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
    t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
      if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
        t[p[i]] = s[p[i]];
    }
  return t;
}
function __decorate(decorators, target, key, desc) {
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
  return function(target, key) {
    decorator(target, key, paramIndex);
  };
}
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
  function accept(f) {
    if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
    return f;
  }
  __name(accept, "accept");
  var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
  var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
  var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
  var _, done = false;
  for (var i = decorators.length - 1; i >= 0; i--) {
    var context = {};
    for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
    for (var p in contextIn.access) context.access[p] = contextIn.access[p];
    context.addInitializer = function(f) {
      if (done) throw new TypeError("Cannot add initializers after decoration has completed");
      extraInitializers.push(accept(f || null));
    };
    var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
    if (kind === "accessor") {
      if (result === void 0) continue;
      if (result === null || typeof result !== "object") throw new TypeError("Object expected");
      if (_ = accept(result.get)) descriptor.get = _;
      if (_ = accept(result.set)) descriptor.set = _;
      if (_ = accept(result.init)) initializers.unshift(_);
    } else if (_ = accept(result)) {
      if (kind === "field") initializers.unshift(_);
      else descriptor[key] = _;
    }
  }
  if (target) Object.defineProperty(target, contextIn.name, descriptor);
  done = true;
}
function __runInitializers(thisArg, initializers, value) {
  var useValue = arguments.length > 2;
  for (var i = 0; i < initializers.length; i++) {
    value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
  }
  return useValue ? value : void 0;
}
function __propKey(x) {
  return typeof x === "symbol" ? x : "".concat(x);
}
function __setFunctionName(f, name, prefix) {
  if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
  return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
}
function __metadata(metadataKey, metadataValue) {
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
  function adopt(value) {
    return value instanceof P ? value : new P(function(resolve) {
      resolve(value);
    });
  }
  __name(adopt, "adopt");
  return new (P || (P = Promise))(function(resolve, reject) {
    function fulfilled(value) {
      try {
        step(generator.next(value));
      } catch (e) {
        reject(e);
      }
    }
    __name(fulfilled, "fulfilled");
    function rejected(value) {
      try {
        step(generator["throw"](value));
      } catch (e) {
        reject(e);
      }
    }
    __name(rejected, "rejected");
    function step(result) {
      result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
    }
    __name(step, "step");
    step((generator = generator.apply(thisArg, _arguments || [])).next());
  });
}
function __generator(thisArg, body) {
  var _ = { label: 0, sent: /* @__PURE__ */ __name(function() {
    if (t[0] & 1) throw t[1];
    return t[1];
  }, "sent"), trys: [], ops: [] }, f, y, t, g;
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
    return this;
  }), g;
  function verb(n) {
    return function(v) {
      return step([n, v]);
    };
  }
  __name(verb, "verb");
  function step(op) {
    if (f) throw new TypeError("Generator is already executing.");
    while (g && (g = 0, op[0] && (_ = 0)), _) try {
      if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
      if (y = 0, t) op = [op[0] & 2, t.value];
      switch (op[0]) {
        case 0:
        case 1:
          t = op;
          break;
        case 4:
          _.label++;
          return { value: op[1], done: false };
        case 5:
          _.label++;
          y = op[1];
          op = [0];
          continue;
        case 7:
          op = _.ops.pop();
          _.trys.pop();
          continue;
        default:
          if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
            _ = 0;
            continue;
          }
          if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
            _.label = op[1];
            break;
          }
          if (op[0] === 6 && _.label < t[1]) {
            _.label = t[1];
            t = op;
            break;
          }
          if (t && _.label < t[2]) {
            _.label = t[2];
            _.ops.push(op);
            break;
          }
          if (t[2]) _.ops.pop();
          _.trys.pop();
          continue;
      }
      op = body.call(thisArg, _);
    } catch (e) {
      op = [6, e];
      y = 0;
    } finally {
      f = t = 0;
    }
    if (op[0] & 5) throw op[1];
    return { value: op[0] ? op[1] : void 0, done: true };
  }
  __name(step, "step");
}
function __exportStar(m, o) {
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
}
function __values(o) {
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  if (m) return m.call(o);
  if (o && typeof o.length === "number") return {
    next: /* @__PURE__ */ __name(function() {
      if (o && i >= o.length) o = void 0;
      return { value: o && o[i++], done: !o };
    }, "next")
  };
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read(o, n) {
  var m = typeof Symbol === "function" && o[Symbol.iterator];
  if (!m) return o;
  var i = m.call(o), r, ar = [], e;
  try {
    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  } catch (error) {
    e = { error };
  } finally {
    try {
      if (r && !r.done && (m = i["return"])) m.call(i);
    } finally {
      if (e) throw e.error;
    }
  }
  return ar;
}
function __spread() {
  for (var ar = [], i = 0; i < arguments.length; i++)
    ar = ar.concat(__read(arguments[i]));
  return ar;
}
function __spreadArrays() {
  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  for (var r = Array(s), k = 0, i = 0; i < il; i++)
    for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
      r[k] = a[j];
  return r;
}
function __spreadArray(to, from, pack) {
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
    if (ar || !(i in from)) {
      if (!ar) ar = Array.prototype.slice.call(from, 0, i);
      ar[i] = from[i];
    }
  }
  return to.concat(ar || Array.prototype.slice.call(from));
}
function __await(v) {
  return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
  return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
    return this;
  }, i;
  function verb(n) {
    if (g[n]) i[n] = function(v) {
      return new Promise(function(a, b) {
        q.push([n, v, a, b]) > 1 || resume(n, v);
      });
    };
  }
  __name(verb, "verb");
  function resume(n, v) {
    try {
      step(g[n](v));
    } catch (e) {
      settle(q[0][3], e);
    }
  }
  __name(resume, "resume");
  function step(r) {
    r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
  }
  __name(step, "step");
  function fulfill(value) {
    resume("next", value);
  }
  __name(fulfill, "fulfill");
  function reject(value) {
    resume("throw", value);
  }
  __name(reject, "reject");
  function settle(f, v) {
    if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
  }
  __name(settle, "settle");
}
function __asyncDelegator(o) {
  var i, p;
  return i = {}, verb("next"), verb("throw", function(e) {
    throw e;
  }), verb("return"), i[Symbol.iterator] = function() {
    return this;
  }, i;
  function verb(n, f) {
    i[n] = o[n] ? function(v) {
      return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v;
    } : f;
  }
  __name(verb, "verb");
}
function __asyncValues(o) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var m = o[Symbol.asyncIterator], i;
  return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
    return this;
  }, i);
  function verb(n) {
    i[n] = o[n] && function(v) {
      return new Promise(function(resolve, reject) {
        v = o[n](v), settle(resolve, reject, v.done, v.value);
      });
    };
  }
  __name(verb, "verb");
  function settle(resolve, reject, d, v) {
    Promise.resolve(v).then(function(v2) {
      resolve({ value: v2, done: d });
    }, reject);
  }
  __name(settle, "settle");
}
function __makeTemplateObject(cooked, raw) {
  if (Object.defineProperty) {
    Object.defineProperty(cooked, "raw", { value: raw });
  } else {
    cooked.raw = raw;
  }
  return cooked;
}
function __importStar(mod2) {
  if (mod2 && mod2.__esModule) return mod2;
  var result = {};
  if (mod2 != null) {
    for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding(result, mod2, k);
  }
  __setModuleDefault(result, mod2);
  return result;
}
function __importDefault(mod2) {
  return mod2 && mod2.__esModule ? mod2 : { default: mod2 };
}
function __classPrivateFieldGet(receiver, state, kind, f) {
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}
function __classPrivateFieldSet(receiver, state, value, kind, f) {
  if (kind === "m") throw new TypeError("Private method is not writable");
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
  return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
}
function __classPrivateFieldIn(state, receiver) {
  if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
  return typeof state === "function" ? receiver === state : state.has(receiver);
}
function __addDisposableResource(env, value, async) {
  if (value !== null && value !== void 0) {
    if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
    var dispose;
    if (async) {
      if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
      dispose = value[Symbol.asyncDispose];
    }
    if (dispose === void 0) {
      if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
      dispose = value[Symbol.dispose];
    }
    if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
    env.stack.push({ value, dispose, async });
  } else if (async) {
    env.stack.push({ async: true });
  }
  return value;
}
function __disposeResources(env) {
  function fail(e) {
    env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
    env.hasError = true;
  }
  __name(fail, "fail");
  function next() {
    while (env.stack.length) {
      var rec = env.stack.pop();
      try {
        var result = rec.dispose && rec.dispose.call(rec.value);
        if (rec.async) return Promise.resolve(result).then(next, function(e) {
          fail(e);
          return next();
        });
      } catch (e) {
        fail(e);
      }
    }
    if (env.hasError) throw env.error;
  }
  __name(next, "next");
  return next();
}
var extendStatics, __assign, __createBinding, __setModuleDefault, _SuppressedError, tslib_es6_default;
var init_tslib_es6 = __esm({
  "node_modules/intl-messageformat/node_modules/tslib/tslib.es6.mjs"() {
    init_process_global();
    extendStatics = /* @__PURE__ */ __name(function(d, b) {
      extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
        d2.__proto__ = b2;
      } || function(d2, b2) {
        for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
      };
      return extendStatics(d, b);
    }, "extendStatics");
    __name(__extends, "__extends");
    __assign = /* @__PURE__ */ __name(function() {
      __assign = Object.assign || /* @__PURE__ */ __name(function __assign4(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
          s = arguments[i];
          for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
      }, "__assign");
      return __assign.apply(this, arguments);
    }, "__assign");
    __name(__rest, "__rest");
    __name(__decorate, "__decorate");
    __name(__param, "__param");
    __name(__esDecorate, "__esDecorate");
    __name(__runInitializers, "__runInitializers");
    __name(__propKey, "__propKey");
    __name(__setFunctionName, "__setFunctionName");
    __name(__metadata, "__metadata");
    __name(__awaiter, "__awaiter");
    __name(__generator, "__generator");
    __createBinding = Object.create ? (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m, k);
      if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m[k];
        }, "get") };
      }
      Object.defineProperty(o, k2, desc);
    }) : (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      o[k2] = m[k];
    });
    __name(__exportStar, "__exportStar");
    __name(__values, "__values");
    __name(__read, "__read");
    __name(__spread, "__spread");
    __name(__spreadArrays, "__spreadArrays");
    __name(__spreadArray, "__spreadArray");
    __name(__await, "__await");
    __name(__asyncGenerator, "__asyncGenerator");
    __name(__asyncDelegator, "__asyncDelegator");
    __name(__asyncValues, "__asyncValues");
    __name(__makeTemplateObject, "__makeTemplateObject");
    __setModuleDefault = Object.create ? (function(o, v) {
      Object.defineProperty(o, "default", { enumerable: true, value: v });
    }) : function(o, v) {
      o["default"] = v;
    };
    __name(__importStar, "__importStar");
    __name(__importDefault, "__importDefault");
    __name(__classPrivateFieldGet, "__classPrivateFieldGet");
    __name(__classPrivateFieldSet, "__classPrivateFieldSet");
    __name(__classPrivateFieldIn, "__classPrivateFieldIn");
    __name(__addDisposableResource, "__addDisposableResource");
    _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
      var e = new Error(message);
      return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
    };
    __name(__disposeResources, "__disposeResources");
    tslib_es6_default = {
      __extends,
      __assign,
      __rest,
      __decorate,
      __param,
      __metadata,
      __awaiter,
      __generator,
      __createBinding,
      __exportStar,
      __values,
      __read,
      __spread,
      __spreadArrays,
      __spreadArray,
      __await,
      __asyncGenerator,
      __asyncDelegator,
      __asyncValues,
      __makeTemplateObject,
      __importStar,
      __importDefault,
      __classPrivateFieldGet,
      __classPrivateFieldSet,
      __classPrivateFieldIn,
      __addDisposableResource,
      __disposeResources
    };
  }
});

// node_modules/@formatjs/icu-messageformat-parser/node_modules/tslib/tslib.es6.mjs
var tslib_es6_exports2 = {};
__export(tslib_es6_exports2, {
  __addDisposableResource: () => __addDisposableResource2,
  __assign: () => __assign2,
  __asyncDelegator: () => __asyncDelegator2,
  __asyncGenerator: () => __asyncGenerator2,
  __asyncValues: () => __asyncValues2,
  __await: () => __await2,
  __awaiter: () => __awaiter2,
  __classPrivateFieldGet: () => __classPrivateFieldGet2,
  __classPrivateFieldIn: () => __classPrivateFieldIn2,
  __classPrivateFieldSet: () => __classPrivateFieldSet2,
  __createBinding: () => __createBinding2,
  __decorate: () => __decorate2,
  __disposeResources: () => __disposeResources2,
  __esDecorate: () => __esDecorate2,
  __exportStar: () => __exportStar2,
  __extends: () => __extends2,
  __generator: () => __generator2,
  __importDefault: () => __importDefault2,
  __importStar: () => __importStar2,
  __makeTemplateObject: () => __makeTemplateObject2,
  __metadata: () => __metadata2,
  __param: () => __param2,
  __propKey: () => __propKey2,
  __read: () => __read2,
  __rest: () => __rest2,
  __runInitializers: () => __runInitializers2,
  __setFunctionName: () => __setFunctionName2,
  __spread: () => __spread2,
  __spreadArray: () => __spreadArray2,
  __spreadArrays: () => __spreadArrays2,
  __values: () => __values2,
  default: () => tslib_es6_default2
});
function __extends2(d, b) {
  if (typeof b !== "function" && b !== null)
    throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  extendStatics2(d, b);
  function __() {
    this.constructor = d;
  }
  __name(__, "__");
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __rest2(s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
    t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
      if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
        t[p[i]] = s[p[i]];
    }
  return t;
}
function __decorate2(decorators, target, key, desc) {
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param2(paramIndex, decorator) {
  return function(target, key) {
    decorator(target, key, paramIndex);
  };
}
function __esDecorate2(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
  function accept(f) {
    if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
    return f;
  }
  __name(accept, "accept");
  var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
  var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
  var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
  var _, done = false;
  for (var i = decorators.length - 1; i >= 0; i--) {
    var context = {};
    for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
    for (var p in contextIn.access) context.access[p] = contextIn.access[p];
    context.addInitializer = function(f) {
      if (done) throw new TypeError("Cannot add initializers after decoration has completed");
      extraInitializers.push(accept(f || null));
    };
    var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
    if (kind === "accessor") {
      if (result === void 0) continue;
      if (result === null || typeof result !== "object") throw new TypeError("Object expected");
      if (_ = accept(result.get)) descriptor.get = _;
      if (_ = accept(result.set)) descriptor.set = _;
      if (_ = accept(result.init)) initializers.unshift(_);
    } else if (_ = accept(result)) {
      if (kind === "field") initializers.unshift(_);
      else descriptor[key] = _;
    }
  }
  if (target) Object.defineProperty(target, contextIn.name, descriptor);
  done = true;
}
function __runInitializers2(thisArg, initializers, value) {
  var useValue = arguments.length > 2;
  for (var i = 0; i < initializers.length; i++) {
    value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
  }
  return useValue ? value : void 0;
}
function __propKey2(x) {
  return typeof x === "symbol" ? x : "".concat(x);
}
function __setFunctionName2(f, name, prefix) {
  if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
  return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
}
function __metadata2(metadataKey, metadataValue) {
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter2(thisArg, _arguments, P, generator) {
  function adopt(value) {
    return value instanceof P ? value : new P(function(resolve) {
      resolve(value);
    });
  }
  __name(adopt, "adopt");
  return new (P || (P = Promise))(function(resolve, reject) {
    function fulfilled(value) {
      try {
        step(generator.next(value));
      } catch (e) {
        reject(e);
      }
    }
    __name(fulfilled, "fulfilled");
    function rejected(value) {
      try {
        step(generator["throw"](value));
      } catch (e) {
        reject(e);
      }
    }
    __name(rejected, "rejected");
    function step(result) {
      result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
    }
    __name(step, "step");
    step((generator = generator.apply(thisArg, _arguments || [])).next());
  });
}
function __generator2(thisArg, body) {
  var _ = { label: 0, sent: /* @__PURE__ */ __name(function() {
    if (t[0] & 1) throw t[1];
    return t[1];
  }, "sent"), trys: [], ops: [] }, f, y, t, g;
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
    return this;
  }), g;
  function verb(n) {
    return function(v) {
      return step([n, v]);
    };
  }
  __name(verb, "verb");
  function step(op) {
    if (f) throw new TypeError("Generator is already executing.");
    while (g && (g = 0, op[0] && (_ = 0)), _) try {
      if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
      if (y = 0, t) op = [op[0] & 2, t.value];
      switch (op[0]) {
        case 0:
        case 1:
          t = op;
          break;
        case 4:
          _.label++;
          return { value: op[1], done: false };
        case 5:
          _.label++;
          y = op[1];
          op = [0];
          continue;
        case 7:
          op = _.ops.pop();
          _.trys.pop();
          continue;
        default:
          if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
            _ = 0;
            continue;
          }
          if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
            _.label = op[1];
            break;
          }
          if (op[0] === 6 && _.label < t[1]) {
            _.label = t[1];
            t = op;
            break;
          }
          if (t && _.label < t[2]) {
            _.label = t[2];
            _.ops.push(op);
            break;
          }
          if (t[2]) _.ops.pop();
          _.trys.pop();
          continue;
      }
      op = body.call(thisArg, _);
    } catch (e) {
      op = [6, e];
      y = 0;
    } finally {
      f = t = 0;
    }
    if (op[0] & 5) throw op[1];
    return { value: op[0] ? op[1] : void 0, done: true };
  }
  __name(step, "step");
}
function __exportStar2(m, o) {
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding2(o, m, p);
}
function __values2(o) {
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  if (m) return m.call(o);
  if (o && typeof o.length === "number") return {
    next: /* @__PURE__ */ __name(function() {
      if (o && i >= o.length) o = void 0;
      return { value: o && o[i++], done: !o };
    }, "next")
  };
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read2(o, n) {
  var m = typeof Symbol === "function" && o[Symbol.iterator];
  if (!m) return o;
  var i = m.call(o), r, ar = [], e;
  try {
    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  } catch (error) {
    e = { error };
  } finally {
    try {
      if (r && !r.done && (m = i["return"])) m.call(i);
    } finally {
      if (e) throw e.error;
    }
  }
  return ar;
}
function __spread2() {
  for (var ar = [], i = 0; i < arguments.length; i++)
    ar = ar.concat(__read2(arguments[i]));
  return ar;
}
function __spreadArrays2() {
  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  for (var r = Array(s), k = 0, i = 0; i < il; i++)
    for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
      r[k] = a[j];
  return r;
}
function __spreadArray2(to, from, pack) {
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
    if (ar || !(i in from)) {
      if (!ar) ar = Array.prototype.slice.call(from, 0, i);
      ar[i] = from[i];
    }
  }
  return to.concat(ar || Array.prototype.slice.call(from));
}
function __await2(v) {
  return this instanceof __await2 ? (this.v = v, this) : new __await2(v);
}
function __asyncGenerator2(thisArg, _arguments, generator) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
  return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
    return this;
  }, i;
  function verb(n) {
    if (g[n]) i[n] = function(v) {
      return new Promise(function(a, b) {
        q.push([n, v, a, b]) > 1 || resume(n, v);
      });
    };
  }
  __name(verb, "verb");
  function resume(n, v) {
    try {
      step(g[n](v));
    } catch (e) {
      settle(q[0][3], e);
    }
  }
  __name(resume, "resume");
  function step(r) {
    r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
  }
  __name(step, "step");
  function fulfill(value) {
    resume("next", value);
  }
  __name(fulfill, "fulfill");
  function reject(value) {
    resume("throw", value);
  }
  __name(reject, "reject");
  function settle(f, v) {
    if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
  }
  __name(settle, "settle");
}
function __asyncDelegator2(o) {
  var i, p;
  return i = {}, verb("next"), verb("throw", function(e) {
    throw e;
  }), verb("return"), i[Symbol.iterator] = function() {
    return this;
  }, i;
  function verb(n, f) {
    i[n] = o[n] ? function(v) {
      return (p = !p) ? { value: __await2(o[n](v)), done: false } : f ? f(v) : v;
    } : f;
  }
  __name(verb, "verb");
}
function __asyncValues2(o) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var m = o[Symbol.asyncIterator], i;
  return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
    return this;
  }, i);
  function verb(n) {
    i[n] = o[n] && function(v) {
      return new Promise(function(resolve, reject) {
        v = o[n](v), settle(resolve, reject, v.done, v.value);
      });
    };
  }
  __name(verb, "verb");
  function settle(resolve, reject, d, v) {
    Promise.resolve(v).then(function(v2) {
      resolve({ value: v2, done: d });
    }, reject);
  }
  __name(settle, "settle");
}
function __makeTemplateObject2(cooked, raw) {
  if (Object.defineProperty) {
    Object.defineProperty(cooked, "raw", { value: raw });
  } else {
    cooked.raw = raw;
  }
  return cooked;
}
function __importStar2(mod2) {
  if (mod2 && mod2.__esModule) return mod2;
  var result = {};
  if (mod2 != null) {
    for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding2(result, mod2, k);
  }
  __setModuleDefault2(result, mod2);
  return result;
}
function __importDefault2(mod2) {
  return mod2 && mod2.__esModule ? mod2 : { default: mod2 };
}
function __classPrivateFieldGet2(receiver, state, kind, f) {
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}
function __classPrivateFieldSet2(receiver, state, value, kind, f) {
  if (kind === "m") throw new TypeError("Private method is not writable");
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
  return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
}
function __classPrivateFieldIn2(state, receiver) {
  if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
  return typeof state === "function" ? receiver === state : state.has(receiver);
}
function __addDisposableResource2(env, value, async) {
  if (value !== null && value !== void 0) {
    if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
    var dispose;
    if (async) {
      if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
      dispose = value[Symbol.asyncDispose];
    }
    if (dispose === void 0) {
      if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
      dispose = value[Symbol.dispose];
    }
    if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
    env.stack.push({ value, dispose, async });
  } else if (async) {
    env.stack.push({ async: true });
  }
  return value;
}
function __disposeResources2(env) {
  function fail(e) {
    env.error = env.hasError ? new _SuppressedError2(e, env.error, "An error was suppressed during disposal.") : e;
    env.hasError = true;
  }
  __name(fail, "fail");
  function next() {
    while (env.stack.length) {
      var rec = env.stack.pop();
      try {
        var result = rec.dispose && rec.dispose.call(rec.value);
        if (rec.async) return Promise.resolve(result).then(next, function(e) {
          fail(e);
          return next();
        });
      } catch (e) {
        fail(e);
      }
    }
    if (env.hasError) throw env.error;
  }
  __name(next, "next");
  return next();
}
var extendStatics2, __assign2, __createBinding2, __setModuleDefault2, _SuppressedError2, tslib_es6_default2;
var init_tslib_es62 = __esm({
  "node_modules/@formatjs/icu-messageformat-parser/node_modules/tslib/tslib.es6.mjs"() {
    init_process_global();
    extendStatics2 = /* @__PURE__ */ __name(function(d, b) {
      extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
        d2.__proto__ = b2;
      } || function(d2, b2) {
        for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
      };
      return extendStatics2(d, b);
    }, "extendStatics");
    __name(__extends2, "__extends");
    __assign2 = /* @__PURE__ */ __name(function() {
      __assign2 = Object.assign || /* @__PURE__ */ __name(function __assign4(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
          s = arguments[i];
          for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
      }, "__assign");
      return __assign2.apply(this, arguments);
    }, "__assign");
    __name(__rest2, "__rest");
    __name(__decorate2, "__decorate");
    __name(__param2, "__param");
    __name(__esDecorate2, "__esDecorate");
    __name(__runInitializers2, "__runInitializers");
    __name(__propKey2, "__propKey");
    __name(__setFunctionName2, "__setFunctionName");
    __name(__metadata2, "__metadata");
    __name(__awaiter2, "__awaiter");
    __name(__generator2, "__generator");
    __createBinding2 = Object.create ? (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m, k);
      if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m[k];
        }, "get") };
      }
      Object.defineProperty(o, k2, desc);
    }) : (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      o[k2] = m[k];
    });
    __name(__exportStar2, "__exportStar");
    __name(__values2, "__values");
    __name(__read2, "__read");
    __name(__spread2, "__spread");
    __name(__spreadArrays2, "__spreadArrays");
    __name(__spreadArray2, "__spreadArray");
    __name(__await2, "__await");
    __name(__asyncGenerator2, "__asyncGenerator");
    __name(__asyncDelegator2, "__asyncDelegator");
    __name(__asyncValues2, "__asyncValues");
    __name(__makeTemplateObject2, "__makeTemplateObject");
    __setModuleDefault2 = Object.create ? (function(o, v) {
      Object.defineProperty(o, "default", { enumerable: true, value: v });
    }) : function(o, v) {
      o["default"] = v;
    };
    __name(__importStar2, "__importStar");
    __name(__importDefault2, "__importDefault");
    __name(__classPrivateFieldGet2, "__classPrivateFieldGet");
    __name(__classPrivateFieldSet2, "__classPrivateFieldSet");
    __name(__classPrivateFieldIn2, "__classPrivateFieldIn");
    __name(__addDisposableResource2, "__addDisposableResource");
    _SuppressedError2 = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
      var e = new Error(message);
      return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
    };
    __name(__disposeResources2, "__disposeResources");
    tslib_es6_default2 = {
      __extends: __extends2,
      __assign: __assign2,
      __rest: __rest2,
      __decorate: __decorate2,
      __param: __param2,
      __metadata: __metadata2,
      __awaiter: __awaiter2,
      __generator: __generator2,
      __createBinding: __createBinding2,
      __exportStar: __exportStar2,
      __values: __values2,
      __read: __read2,
      __spread: __spread2,
      __spreadArrays: __spreadArrays2,
      __spreadArray: __spreadArray2,
      __await: __await2,
      __asyncGenerator: __asyncGenerator2,
      __asyncDelegator: __asyncDelegator2,
      __asyncValues: __asyncValues2,
      __makeTemplateObject: __makeTemplateObject2,
      __importStar: __importStar2,
      __importDefault: __importDefault2,
      __classPrivateFieldGet: __classPrivateFieldGet2,
      __classPrivateFieldSet: __classPrivateFieldSet2,
      __classPrivateFieldIn: __classPrivateFieldIn2,
      __addDisposableResource: __addDisposableResource2,
      __disposeResources: __disposeResources2
    };
  }
});

// node_modules/@formatjs/icu-messageformat-parser/error.js
var require_error = __commonJS({
  "node_modules/@formatjs/icu-messageformat-parser/error.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ErrorKind = void 0;
    var ErrorKind;
    (function(ErrorKind2) {
      ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
      ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
      ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
      ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
      ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
      ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
      ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
      ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
      ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
      ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
      ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
      ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
      ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
      ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
      ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
      ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
      ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
      ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
      ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
      ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
      ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
      ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
      ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
      ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
      ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
      ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
    })(ErrorKind = exports2.ErrorKind || (exports2.ErrorKind = {}));
  }
});

// node_modules/@formatjs/icu-messageformat-parser/types.js
var require_types = __commonJS({
  "node_modules/@formatjs/icu-messageformat-parser/types.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.createNumberElement = exports2.createLiteralElement = exports2.isDateTimeSkeleton = exports2.isNumberSkeleton = exports2.isTagElement = exports2.isPoundElement = exports2.isPluralElement = exports2.isSelectElement = exports2.isTimeElement = exports2.isDateElement = exports2.isNumberElement = exports2.isArgumentElement = exports2.isLiteralElement = exports2.SKELETON_TYPE = exports2.TYPE = void 0;
    var TYPE2;
    (function(TYPE3) {
      TYPE3[TYPE3["literal"] = 0] = "literal";
      TYPE3[TYPE3["argument"] = 1] = "argument";
      TYPE3[TYPE3["number"] = 2] = "number";
      TYPE3[TYPE3["date"] = 3] = "date";
      TYPE3[TYPE3["time"] = 4] = "time";
      TYPE3[TYPE3["select"] = 5] = "select";
      TYPE3[TYPE3["plural"] = 6] = "plural";
      TYPE3[TYPE3["pound"] = 7] = "pound";
      TYPE3[TYPE3["tag"] = 8] = "tag";
    })(TYPE2 = exports2.TYPE || (exports2.TYPE = {}));
    var SKELETON_TYPE;
    (function(SKELETON_TYPE2) {
      SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
      SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
    })(SKELETON_TYPE = exports2.SKELETON_TYPE || (exports2.SKELETON_TYPE = {}));
    function isLiteralElement(el) {
      return el.type === TYPE2.literal;
    }
    __name(isLiteralElement, "isLiteralElement");
    exports2.isLiteralElement = isLiteralElement;
    function isArgumentElement(el) {
      return el.type === TYPE2.argument;
    }
    __name(isArgumentElement, "isArgumentElement");
    exports2.isArgumentElement = isArgumentElement;
    function isNumberElement(el) {
      return el.type === TYPE2.number;
    }
    __name(isNumberElement, "isNumberElement");
    exports2.isNumberElement = isNumberElement;
    function isDateElement(el) {
      return el.type === TYPE2.date;
    }
    __name(isDateElement, "isDateElement");
    exports2.isDateElement = isDateElement;
    function isTimeElement(el) {
      return el.type === TYPE2.time;
    }
    __name(isTimeElement, "isTimeElement");
    exports2.isTimeElement = isTimeElement;
    function isSelectElement(el) {
      return el.type === TYPE2.select;
    }
    __name(isSelectElement, "isSelectElement");
    exports2.isSelectElement = isSelectElement;
    function isPluralElement(el) {
      return el.type === TYPE2.plural;
    }
    __name(isPluralElement, "isPluralElement");
    exports2.isPluralElement = isPluralElement;
    function isPoundElement(el) {
      return el.type === TYPE2.pound;
    }
    __name(isPoundElement, "isPoundElement");
    exports2.isPoundElement = isPoundElement;
    function isTagElement(el) {
      return el.type === TYPE2.tag;
    }
    __name(isTagElement, "isTagElement");
    exports2.isTagElement = isTagElement;
    function isNumberSkeleton(el) {
      return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.number);
    }
    __name(isNumberSkeleton, "isNumberSkeleton");
    exports2.isNumberSkeleton = isNumberSkeleton;
    function isDateTimeSkeleton(el) {
      return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
    }
    __name(isDateTimeSkeleton, "isDateTimeSkeleton");
    exports2.isDateTimeSkeleton = isDateTimeSkeleton;
    function createLiteralElement(value) {
      return {
        type: TYPE2.literal,
        value
      };
    }
    __name(createLiteralElement, "createLiteralElement");
    exports2.createLiteralElement = createLiteralElement;
    function createNumberElement(value, style) {
      return {
        type: TYPE2.number,
        value,
        style
      };
    }
    __name(createNumberElement, "createNumberElement");
    exports2.createNumberElement = createNumberElement;
  }
});

// node_modules/@formatjs/icu-messageformat-parser/regex.generated.js
var require_regex_generated = __commonJS({
  "node_modules/@formatjs/icu-messageformat-parser/regex.generated.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.WHITE_SPACE_REGEX = exports2.SPACE_SEPARATOR_REGEX = void 0;
    exports2.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
    exports2.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
  }
});

// node_modules/@formatjs/icu-skeleton-parser/node_modules/tslib/tslib.es6.mjs
var tslib_es6_exports3 = {};
__export(tslib_es6_exports3, {
  __addDisposableResource: () => __addDisposableResource3,
  __assign: () => __assign3,
  __asyncDelegator: () => __asyncDelegator3,
  __asyncGenerator: () => __asyncGenerator3,
  __asyncValues: () => __asyncValues3,
  __await: () => __await3,
  __awaiter: () => __awaiter3,
  __classPrivateFieldGet: () => __classPrivateFieldGet3,
  __classPrivateFieldIn: () => __classPrivateFieldIn3,
  __classPrivateFieldSet: () => __classPrivateFieldSet3,
  __createBinding: () => __createBinding3,
  __decorate: () => __decorate3,
  __disposeResources: () => __disposeResources3,
  __esDecorate: () => __esDecorate3,
  __exportStar: () => __exportStar3,
  __extends: () => __extends3,
  __generator: () => __generator3,
  __importDefault: () => __importDefault3,
  __importStar: () => __importStar3,
  __makeTemplateObject: () => __makeTemplateObject3,
  __metadata: () => __metadata3,
  __param: () => __param3,
  __propKey: () => __propKey3,
  __read: () => __read3,
  __rest: () => __rest3,
  __runInitializers: () => __runInitializers3,
  __setFunctionName: () => __setFunctionName3,
  __spread: () => __spread3,
  __spreadArray: () => __spreadArray3,
  __spreadArrays: () => __spreadArrays3,
  __values: () => __values3,
  default: () => tslib_es6_default3
});
function __extends3(d, b) {
  if (typeof b !== "function" && b !== null)
    throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  extendStatics3(d, b);
  function __() {
    this.constructor = d;
  }
  __name(__, "__");
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
function __rest3(s, e) {
  var t = {};
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
    t[p] = s[p];
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
      if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
        t[p[i]] = s[p[i]];
    }
  return t;
}
function __decorate3(decorators, target, key, desc) {
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param3(paramIndex, decorator) {
  return function(target, key) {
    decorator(target, key, paramIndex);
  };
}
function __esDecorate3(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
  function accept(f) {
    if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
    return f;
  }
  __name(accept, "accept");
  var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
  var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
  var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
  var _, done = false;
  for (var i = decorators.length - 1; i >= 0; i--) {
    var context = {};
    for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
    for (var p in contextIn.access) context.access[p] = contextIn.access[p];
    context.addInitializer = function(f) {
      if (done) throw new TypeError("Cannot add initializers after decoration has completed");
      extraInitializers.push(accept(f || null));
    };
    var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
    if (kind === "accessor") {
      if (result === void 0) continue;
      if (result === null || typeof result !== "object") throw new TypeError("Object expected");
      if (_ = accept(result.get)) descriptor.get = _;
      if (_ = accept(result.set)) descriptor.set = _;
      if (_ = accept(result.init)) initializers.unshift(_);
    } else if (_ = accept(result)) {
      if (kind === "field") initializers.unshift(_);
      else descriptor[key] = _;
    }
  }
  if (target) Object.defineProperty(target, contextIn.name, descriptor);
  done = true;
}
function __runInitializers3(thisArg, initializers, value) {
  var useValue = arguments.length > 2;
  for (var i = 0; i < initializers.length; i++) {
    value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
  }
  return useValue ? value : void 0;
}
function __propKey3(x) {
  return typeof x === "symbol" ? x : "".concat(x);
}
function __setFunctionName3(f, name, prefix) {
  if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
  return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
}
function __metadata3(metadataKey, metadataValue) {
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter3(thisArg, _arguments, P, generator) {
  function adopt(value) {
    return value instanceof P ? value : new P(function(resolve) {
      resolve(value);
    });
  }
  __name(adopt, "adopt");
  return new (P || (P = Promise))(function(resolve, reject) {
    function fulfilled(value) {
      try {
        step(generator.next(value));
      } catch (e) {
        reject(e);
      }
    }
    __name(fulfilled, "fulfilled");
    function rejected(value) {
      try {
        step(generator["throw"](value));
      } catch (e) {
        reject(e);
      }
    }
    __name(rejected, "rejected");
    function step(result) {
      result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
    }
    __name(step, "step");
    step((generator = generator.apply(thisArg, _arguments || [])).next());
  });
}
function __generator3(thisArg, body) {
  var _ = { label: 0, sent: /* @__PURE__ */ __name(function() {
    if (t[0] & 1) throw t[1];
    return t[1];
  }, "sent"), trys: [], ops: [] }, f, y, t, g;
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
    return this;
  }), g;
  function verb(n) {
    return function(v) {
      return step([n, v]);
    };
  }
  __name(verb, "verb");
  function step(op) {
    if (f) throw new TypeError("Generator is already executing.");
    while (g && (g = 0, op[0] && (_ = 0)), _) try {
      if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
      if (y = 0, t) op = [op[0] & 2, t.value];
      switch (op[0]) {
        case 0:
        case 1:
          t = op;
          break;
        case 4:
          _.label++;
          return { value: op[1], done: false };
        case 5:
          _.label++;
          y = op[1];
          op = [0];
          continue;
        case 7:
          op = _.ops.pop();
          _.trys.pop();
          continue;
        default:
          if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
            _ = 0;
            continue;
          }
          if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
            _.label = op[1];
            break;
          }
          if (op[0] === 6 && _.label < t[1]) {
            _.label = t[1];
            t = op;
            break;
          }
          if (t && _.label < t[2]) {
            _.label = t[2];
            _.ops.push(op);
            break;
          }
          if (t[2]) _.ops.pop();
          _.trys.pop();
          continue;
      }
      op = body.call(thisArg, _);
    } catch (e) {
      op = [6, e];
      y = 0;
    } finally {
      f = t = 0;
    }
    if (op[0] & 5) throw op[1];
    return { value: op[0] ? op[1] : void 0, done: true };
  }
  __name(step, "step");
}
function __exportStar3(m, o) {
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding3(o, m, p);
}
function __values3(o) {
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  if (m) return m.call(o);
  if (o && typeof o.length === "number") return {
    next: /* @__PURE__ */ __name(function() {
      if (o && i >= o.length) o = void 0;
      return { value: o && o[i++], done: !o };
    }, "next")
  };
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read3(o, n) {
  var m = typeof Symbol === "function" && o[Symbol.iterator];
  if (!m) return o;
  var i = m.call(o), r, ar = [], e;
  try {
    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  } catch (error) {
    e = { error };
  } finally {
    try {
      if (r && !r.done && (m = i["return"])) m.call(i);
    } finally {
      if (e) throw e.error;
    }
  }
  return ar;
}
function __spread3() {
  for (var ar = [], i = 0; i < arguments.length; i++)
    ar = ar.concat(__read3(arguments[i]));
  return ar;
}
function __spreadArrays3() {
  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  for (var r = Array(s), k = 0, i = 0; i < il; i++)
    for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
      r[k] = a[j];
  return r;
}
function __spreadArray3(to, from, pack) {
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
    if (ar || !(i in from)) {
      if (!ar) ar = Array.prototype.slice.call(from, 0, i);
      ar[i] = from[i];
    }
  }
  return to.concat(ar || Array.prototype.slice.call(from));
}
function __await3(v) {
  return this instanceof __await3 ? (this.v = v, this) : new __await3(v);
}
function __asyncGenerator3(thisArg, _arguments, generator) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
  return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
    return this;
  }, i;
  function verb(n) {
    if (g[n]) i[n] = function(v) {
      return new Promise(function(a, b) {
        q.push([n, v, a, b]) > 1 || resume(n, v);
      });
    };
  }
  __name(verb, "verb");
  function resume(n, v) {
    try {
      step(g[n](v));
    } catch (e) {
      settle(q[0][3], e);
    }
  }
  __name(resume, "resume");
  function step(r) {
    r.value instanceof __await3 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
  }
  __name(step, "step");
  function fulfill(value) {
    resume("next", value);
  }
  __name(fulfill, "fulfill");
  function reject(value) {
    resume("throw", value);
  }
  __name(reject, "reject");
  function settle(f, v) {
    if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
  }
  __name(settle, "settle");
}
function __asyncDelegator3(o) {
  var i, p;
  return i = {}, verb("next"), verb("throw", function(e) {
    throw e;
  }), verb("return"), i[Symbol.iterator] = function() {
    return this;
  }, i;
  function verb(n, f) {
    i[n] = o[n] ? function(v) {
      return (p = !p) ? { value: __await3(o[n](v)), done: false } : f ? f(v) : v;
    } : f;
  }
  __name(verb, "verb");
}
function __asyncValues3(o) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var m = o[Symbol.asyncIterator], i;
  return m ? m.call(o) : (o = typeof __values3 === "function" ? __values3(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
    return this;
  }, i);
  function verb(n) {
    i[n] = o[n] && function(v) {
      return new Promise(function(resolve, reject) {
        v = o[n](v), settle(resolve, reject, v.done, v.value);
      });
    };
  }
  __name(verb, "verb");
  function settle(resolve, reject, d, v) {
    Promise.resolve(v).then(function(v2) {
      resolve({ value: v2, done: d });
    }, reject);
  }
  __name(settle, "settle");
}
function __makeTemplateObject3(cooked, raw) {
  if (Object.defineProperty) {
    Object.defineProperty(cooked, "raw", { value: raw });
  } else {
    cooked.raw = raw;
  }
  return cooked;
}
function __importStar3(mod2) {
  if (mod2 && mod2.__esModule) return mod2;
  var result = {};
  if (mod2 != null) {
    for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding3(result, mod2, k);
  }
  __setModuleDefault3(result, mod2);
  return result;
}
function __importDefault3(mod2) {
  return mod2 && mod2.__esModule ? mod2 : { default: mod2 };
}
function __classPrivateFieldGet3(receiver, state, kind, f) {
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}
function __classPrivateFieldSet3(receiver, state, value, kind, f) {
  if (kind === "m") throw new TypeError("Private method is not writable");
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
  return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
}
function __classPrivateFieldIn3(state, receiver) {
  if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
  return typeof state === "function" ? receiver === state : state.has(receiver);
}
function __addDisposableResource3(env, value, async) {
  if (value !== null && value !== void 0) {
    if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
    var dispose;
    if (async) {
      if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
      dispose = value[Symbol.asyncDispose];
    }
    if (dispose === void 0) {
      if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
      dispose = value[Symbol.dispose];
    }
    if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
    env.stack.push({ value, dispose, async });
  } else if (async) {
    env.stack.push({ async: true });
  }
  return value;
}
function __disposeResources3(env) {
  function fail(e) {
    env.error = env.hasError ? new _SuppressedError3(e, env.error, "An error was suppressed during disposal.") : e;
    env.hasError = true;
  }
  __name(fail, "fail");
  function next() {
    while (env.stack.length) {
      var rec = env.stack.pop();
      try {
        var result = rec.dispose && rec.dispose.call(rec.value);
        if (rec.async) return Promise.resolve(result).then(next, function(e) {
          fail(e);
          return next();
        });
      } catch (e) {
        fail(e);
      }
    }
    if (env.hasError) throw env.error;
  }
  __name(next, "next");
  return next();
}
var extendStatics3, __assign3, __createBinding3, __setModuleDefault3, _SuppressedError3, tslib_es6_default3;
var init_tslib_es63 = __esm({
  "node_modules/@formatjs/icu-skeleton-parser/node_modules/tslib/tslib.es6.mjs"() {
    init_process_global();
    extendStatics3 = /* @__PURE__ */ __name(function(d, b) {
      extendStatics3 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
        d2.__proto__ = b2;
      } || function(d2, b2) {
        for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
      };
      return extendStatics3(d, b);
    }, "extendStatics");
    __name(__extends3, "__extends");
    __assign3 = /* @__PURE__ */ __name(function() {
      __assign3 = Object.assign || /* @__PURE__ */ __name(function __assign4(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
          s = arguments[i];
          for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
        }
        return t;
      }, "__assign");
      return __assign3.apply(this, arguments);
    }, "__assign");
    __name(__rest3, "__rest");
    __name(__decorate3, "__decorate");
    __name(__param3, "__param");
    __name(__esDecorate3, "__esDecorate");
    __name(__runInitializers3, "__runInitializers");
    __name(__propKey3, "__propKey");
    __name(__setFunctionName3, "__setFunctionName");
    __name(__metadata3, "__metadata");
    __name(__awaiter3, "__awaiter");
    __name(__generator3, "__generator");
    __createBinding3 = Object.create ? (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      var desc = Object.getOwnPropertyDescriptor(m, k);
      if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
        desc = { enumerable: true, get: /* @__PURE__ */ __name(function() {
          return m[k];
        }, "get") };
      }
      Object.defineProperty(o, k2, desc);
    }) : (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      o[k2] = m[k];
    });
    __name(__exportStar3, "__exportStar");
    __name(__values3, "__values");
    __name(__read3, "__read");
    __name(__spread3, "__spread");
    __name(__spreadArrays3, "__spreadArrays");
    __name(__spreadArray3, "__spreadArray");
    __name(__await3, "__await");
    __name(__asyncGenerator3, "__asyncGenerator");
    __name(__asyncDelegator3, "__asyncDelegator");
    __name(__asyncValues3, "__asyncValues");
    __name(__makeTemplateObject3, "__makeTemplateObject");
    __setModuleDefault3 = Object.create ? (function(o, v) {
      Object.defineProperty(o, "default", { enumerable: true, value: v });
    }) : function(o, v) {
      o["default"] = v;
    };
    __name(__importStar3, "__importStar");
    __name(__importDefault3, "__importDefault");
    __name(__classPrivateFieldGet3, "__classPrivateFieldGet");
    __name(__classPrivateFieldSet3, "__classPrivateFieldSet");
    __name(__classPrivateFieldIn3, "__classPrivateFieldIn");
    __name(__addDisposableResource3, "__addDisposableResource");
    _SuppressedError3 = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
      var e = new Error(message);
      return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
    };
    __name(__disposeResources3, "__disposeResources");
    tslib_es6_default3 = {
      __extends: __extends3,
      __assign: __assign3,
      __rest: __rest3,
      __decorate: __decorate3,
      __param: __param3,
      __metadata: __metadata3,
      __awaiter: __awaiter3,
      __generator: __generator3,
      __createBinding: __createBinding3,
      __exportStar: __exportStar3,
      __values: __values3,
      __read: __read3,
      __spread: __spread3,
      __spreadArrays: __spreadArrays3,
      __spreadArray: __spreadArray3,
      __await: __await3,
      __asyncGenerator: __asyncGenerator3,
      __asyncDelegator: __asyncDelegator3,
      __asyncValues: __asyncValues3,
      __makeTemplateObject: __makeTemplateObject3,
      __importStar: __importStar3,
      __importDefault: __importDefault3,
      __classPrivateFieldGet: __classPrivateFieldGet3,
      __classPrivateFieldSet: __classPrivateFieldSet3,
      __classPrivateFieldIn: __classPrivateFieldIn3,
      __addDisposableResource: __addDisposableResource3,
      __disposeResources: __disposeResources3
    };
  }
});

// node_modules/@formatjs/icu-skeleton-parser/date-time.js
var require_date_time = __commonJS({
  "node_modules/@formatjs/icu-skeleton-parser/date-time.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.parseDateTimeSkeleton = void 0;
    var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
    function parseDateTimeSkeleton(skeleton) {
      var result = {};
      skeleton.replace(DATE_TIME_REGEX, function(match) {
        var len = match.length;
        switch (match[0]) {
          // Era
          case "G":
            result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
            break;
          // Year
          case "y":
            result.year = len === 2 ? "2-digit" : "numeric";
            break;
          case "Y":
          case "u":
          case "U":
          case "r":
            throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
          // Quarter
          case "q":
          case "Q":
            throw new RangeError("`q/Q` (quarter) patterns are not supported");
          // Month
          case "M":
          case "L":
            result.month = ["numeric", "2-digit", "short", "long", "narrow"][len - 1];
            break;
          // Week
          case "w":
          case "W":
            throw new RangeError("`w/W` (week) patterns are not supported");
          case "d":
            result.day = ["numeric", "2-digit"][len - 1];
            break;
          case "D":
          case "F":
          case "g":
            throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
          // Weekday
          case "E":
            result.weekday = len === 4 ? "short" : len === 5 ? "narrow" : "short";
            break;
          case "e":
            if (len < 4) {
              throw new RangeError("`e..eee` (weekday) patterns are not supported");
            }
            result.weekday = ["short", "long", "narrow", "short"][len - 4];
            break;
          case "c":
            if (len < 4) {
              throw new RangeError("`c..ccc` (weekday) patterns are not supported");
            }
            result.weekday = ["short", "long", "narrow", "short"][len - 4];
            break;
          // Period
          case "a":
            result.hour12 = true;
            break;
          case "b":
          // am, pm, noon, midnight
          case "B":
            throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
          // Hour
          case "h":
            result.hourCycle = "h12";
            result.hour = ["numeric", "2-digit"][len - 1];
            break;
          case "H":
            result.hourCycle = "h23";
            result.hour = ["numeric", "2-digit"][len - 1];
            break;
          case "K":
            result.hourCycle = "h11";
            result.hour = ["numeric", "2-digit"][len - 1];
            break;
          case "k":
            result.hourCycle = "h24";
            result.hour = ["numeric", "2-digit"][len - 1];
            break;
          case "j":
          case "J":
          case "C":
            throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
          // Minute
          case "m":
            result.minute = ["numeric", "2-digit"][len - 1];
            break;
          // Second
          case "s":
            result.second = ["numeric", "2-digit"][len - 1];
            break;
          case "S":
          case "A":
            throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
          // Zone
          case "z":
            result.timeZoneName = len < 4 ? "short" : "long";
            break;
          case "Z":
          // 1..3, 4, 5: The ISO8601 varios formats
          case "O":
          // 1, 4: miliseconds in day short, long
          case "v":
          // 1, 4: generic non-location format
          case "V":
          // 1, 2, 3, 4: time zone ID or city
          case "X":
          // 1, 2, 3, 4: The ISO8601 varios formats
          case "x":
            throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
        }
        return "";
      });
      return result;
    }
    __name(parseDateTimeSkeleton, "parseDateTimeSkeleton");
    exports2.parseDateTimeSkeleton = parseDateTimeSkeleton;
  }
});

// node_modules/@formatjs/icu-skeleton-parser/regex.generated.js
var require_regex_generated2 = __commonJS({
  "node_modules/@formatjs/icu-skeleton-parser/regex.generated.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.WHITE_SPACE_REGEX = void 0;
    exports2.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
  }
});

// node_modules/@formatjs/icu-skeleton-parser/number.js
var require_number = __commonJS({
  "node_modules/@formatjs/icu-skeleton-parser/number.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.parseNumberSkeleton = exports2.parseNumberSkeletonFromString = void 0;
    var tslib_1 = (init_tslib_es63(), __toCommonJS(tslib_es6_exports3));
    var regex_generated_1 = require_regex_generated2();
    function parseNumberSkeletonFromString(skeleton) {
      if (skeleton.length === 0) {
        throw new Error("Number skeleton cannot be empty");
      }
      var stringTokens = skeleton.split(regex_generated_1.WHITE_SPACE_REGEX).filter(function(x) {
        return x.length > 0;
      });
      var tokens = [];
      for (var _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {
        var stringToken = stringTokens_1[_i];
        var stemAndOptions = stringToken.split("/");
        if (stemAndOptions.length === 0) {
          throw new Error("Invalid number skeleton");
        }
        var stem = stemAndOptions[0], options = stemAndOptions.slice(1);
        for (var _a3 = 0, options_1 = options; _a3 < options_1.length; _a3++) {
          var option = options_1[_a3];
          if (option.length === 0) {
            throw new Error("Invalid number skeleton");
          }
        }
        tokens.push({ stem, options });
      }
      return tokens;
    }
    __name(parseNumberSkeletonFromString, "parseNumberSkeletonFromString");
    exports2.parseNumberSkeletonFromString = parseNumberSkeletonFromString;
    function icuUnitToEcma(unit) {
      return unit.replace(/^(.*?)-/, "");
    }
    __name(icuUnitToEcma, "icuUnitToEcma");
    var FRACTION_PRECISION_REGEX = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
    var SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\+|#+)?[rs]?$/g;
    var INTEGER_WIDTH_REGEX = /(\*)(0+)|(#+)(0+)|(0+)/g;
    var CONCISE_INTEGER_WIDTH_REGEX = /^(0+)$/;
    function parseSignificantPrecision(str) {
      var result = {};
      if (str[str.length - 1] === "r") {
        result.roundingPriority = "morePrecision";
      } else if (str[str.length - 1] === "s") {
        result.roundingPriority = "lessPrecision";
      }
      str.replace(SIGNIFICANT_PRECISION_REGEX, function(_, g1, g2) {
        if (typeof g2 !== "string") {
          result.minimumSignificantDigits = g1.length;
          result.maximumSignificantDigits = g1.length;
        } else if (g2 === "+") {
          result.minimumSignificantDigits = g1.length;
        } else if (g1[0] === "#") {
          result.maximumSignificantDigits = g1.length;
        } else {
          result.minimumSignificantDigits = g1.length;
          result.maximumSignificantDigits = g1.length + (typeof g2 === "string" ? g2.length : 0);
        }
        return "";
      });
      return result;
    }
    __name(parseSignificantPrecision, "parseSignificantPrecision");
    function parseSign(str) {
      switch (str) {
        case "sign-auto":
          return {
            signDisplay: "auto"
          };
        case "sign-accounting":
        case "()":
          return {
            currencySign: "accounting"
          };
        case "sign-always":
        case "+!":
          return {
            signDisplay: "always"
          };
        case "sign-accounting-always":
        case "()!":
          return {
            signDisplay: "always",
            currencySign: "accounting"
          };
        case "sign-except-zero":
        case "+?":
          return {
            signDisplay: "exceptZero"
          };
        case "sign-accounting-except-zero":
        case "()?":
          return {
            signDisplay: "exceptZero",
            currencySign: "accounting"
          };
        case "sign-never":
        case "+_":
          return {
            signDisplay: "never"
          };
      }
    }
    __name(parseSign, "parseSign");
    function parseConciseScientificAndEngineeringStem(stem) {
      var result;
      if (stem[0] === "E" && stem[1] === "E") {
        result = {
          notation: "engineering"
        };
        stem = stem.slice(2);
      } else if (stem[0] === "E") {
        result = {
          notation: "scientific"
        };
        stem = stem.slice(1);
      }
      if (result) {
        var signDisplay = stem.slice(0, 2);
        if (signDisplay === "+!") {
          result.signDisplay = "always";
          stem = stem.slice(2);
        } else if (signDisplay === "+?") {
          result.signDisplay = "exceptZero";
          stem = stem.slice(2);
        }
        if (!CONCISE_INTEGER_WIDTH_REGEX.test(stem)) {
          throw new Error("Malformed concise eng/scientific notation");
        }
        result.minimumIntegerDigits = stem.length;
      }
      return result;
    }
    __name(parseConciseScientificAndEngineeringStem, "parseConciseScientificAndEngineeringStem");
    function parseNotationOptions(opt) {
      var result = {};
      var signOpts = parseSign(opt);
      if (signOpts) {
        return signOpts;
      }
      return result;
    }
    __name(parseNotationOptions, "parseNotationOptions");
    function parseNumberSkeleton(tokens) {
      var result = {};
      for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
        var token = tokens_1[_i];
        switch (token.stem) {
          case "percent":
          case "%":
            result.style = "percent";
            continue;
          case "%x100":
            result.style = "percent";
            result.scale = 100;
            continue;
          case "currency":
            result.style = "currency";
            result.currency = token.options[0];
            continue;
          case "group-off":
          case ",_":
            result.useGrouping = false;
            continue;
          case "precision-integer":
          case ".":
            result.maximumFractionDigits = 0;
            continue;
          case "measure-unit":
          case "unit":
            result.style = "unit";
            result.unit = icuUnitToEcma(token.options[0]);
            continue;
          case "compact-short":
          case "K":
            result.notation = "compact";
            result.compactDisplay = "short";
            continue;
          case "compact-long":
          case "KK":
            result.notation = "compact";
            result.compactDisplay = "long";
            continue;
          case "scientific":
            result = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, result), { notation: "scientific" }), token.options.reduce(function(all, opt2) {
              return tslib_1.__assign(tslib_1.__assign({}, all), parseNotationOptions(opt2));
            }, {}));
            continue;
          case "engineering":
            result = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, result), { notation: "engineering" }), token.options.reduce(function(all, opt2) {
              return tslib_1.__assign(tslib_1.__assign({}, all), parseNotationOptions(opt2));
            }, {}));
            continue;
          case "notation-simple":
            result.notation = "standard";
            continue;
          // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h
          case "unit-width-narrow":
            result.currencyDisplay = "narrowSymbol";
            result.unitDisplay = "narrow";
            continue;
          case "unit-width-short":
            result.currencyDisplay = "code";
            result.unitDisplay = "short";
            continue;
          case "unit-width-full-name":
            result.currencyDisplay = "name";
            result.unitDisplay = "long";
            continue;
          case "unit-width-iso-code":
            result.currencyDisplay = "symbol";
            continue;
          case "scale":
            result.scale = parseFloat(token.options[0]);
            continue;
          // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width
          case "integer-width":
            if (token.options.length > 1) {
              throw new RangeError("integer-width stems only accept a single optional option");
            }
            token.options[0].replace(INTEGER_WIDTH_REGEX, function(_, g1, g2, g3, g4, g5) {
              if (g1) {
                result.minimumIntegerDigits = g2.length;
              } else if (g3 && g4) {
                throw new Error("We currently do not support maximum integer digits");
              } else if (g5) {
                throw new Error("We currently do not support exact integer digits");
              }
              return "";
            });
            continue;
        }
        if (CONCISE_INTEGER_WIDTH_REGEX.test(token.stem)) {
          result.minimumIntegerDigits = token.stem.length;
          continue;
        }
        if (FRACTION_PRECISION_REGEX.test(token.stem)) {
          if (token.options.length > 1) {
            throw new RangeError("Fraction-precision stems only accept a single optional option");
          }
          token.stem.replace(FRACTION_PRECISION_REGEX, function(_, g1, g2, g3, g4, g5) {
            if (g2 === "*") {
              result.minimumFractionDigits = g1.length;
            } else if (g3 && g3[0] === "#") {
              result.maximumFractionDigits = g3.length;
            } else if (g4 && g5) {
              result.minimumFractionDigits = g4.length;
              result.maximumFractionDigits = g4.length + g5.length;
            } else {
              result.minimumFractionDigits = g1.length;
              result.maximumFractionDigits = g1.length;
            }
            return "";
          });
          var opt = token.options[0];
          if (opt === "w") {
            result = tslib_1.__assign(tslib_1.__assign({}, result), { trailingZeroDisplay: "stripIfInteger" });
          } else if (opt) {
            result = tslib_1.__assign(tslib_1.__assign({}, result), parseSignificantPrecision(opt));
          }
          continue;
        }
        if (SIGNIFICANT_PRECISION_REGEX.test(token.stem)) {
          result = tslib_1.__assign(tslib_1.__assign({}, result), parseSignificantPrecision(token.stem));
          continue;
        }
        var signOpts = parseSign(token.stem);
        if (signOpts) {
          result = tslib_1.__assign(tslib_1.__assign({}, result), signOpts);
        }
        var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token.stem);
        if (conciseScientificAndEngineeringOpts) {
          result = tslib_1.__assign(tslib_1.__assign({}, result), conciseScientificAndEngineeringOpts);
        }
      }
      return result;
    }
    __name(parseNumberSkeleton, "parseNumberSkeleton");
    exports2.parseNumberSkeleton = parseNumberSkeleton;
  }
});

// node_modules/@formatjs/icu-skeleton-parser/index.js
var require_icu_skeleton_parser = __commonJS({
  "node_modules/@formatjs/icu-skeleton-parser/index.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es63(), __toCommonJS(tslib_es6_exports3));
    tslib_1.__exportStar(require_date_time(), exports2);
    tslib_1.__exportStar(require_number(), exports2);
  }
});

// node_modules/@formatjs/icu-messageformat-parser/time-data.generated.js
var require_time_data_generated = __commonJS({
  "node_modules/@formatjs/icu-messageformat-parser/time-data.generated.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.timeData = void 0;
    exports2.timeData = {
      "001": [
        "H",
        "h"
      ],
      "AC": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "AD": [
        "H",
        "hB"
      ],
      "AE": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "AF": [
        "H",
        "hb",
        "hB",
        "h"
      ],
      "AG": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "AI": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "AL": [
        "h",
        "H",
        "hB"
      ],
      "AM": [
        "H",
        "hB"
      ],
      "AO": [
        "H",
        "hB"
      ],
      "AR": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "AS": [
        "h",
        "H"
      ],
      "AT": [
        "H",
        "hB"
      ],
      "AU": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "AW": [
        "H",
        "hB"
      ],
      "AX": [
        "H"
      ],
      "AZ": [
        "H",
        "hB",
        "h"
      ],
      "BA": [
        "H",
        "hB",
        "h"
      ],
      "BB": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "BD": [
        "h",
        "hB",
        "H"
      ],
      "BE": [
        "H",
        "hB"
      ],
      "BF": [
        "H",
        "hB"
      ],
      "BG": [
        "H",
        "hB",
        "h"
      ],
      "BH": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "BJ": [
        "H",
        "hB"
      ],
      "BL": [
        "H",
        "hB"
      ],
      "BM": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "BN": [
        "hb",
        "hB",
        "h",
        "H"
      ],
      "BO": [
        "H",
        "hB",
        "h",
        "hb"
      ],
      "BQ": [
        "H"
      ],
      "BR": [
        "H",
        "hB"
      ],
      "BS": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "BT": [
        "h",
        "H"
      ],
      "BW": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "BZ": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "CA": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "CC": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "CD": [
        "hB",
        "H"
      ],
      "CF": [
        "H",
        "h",
        "hB"
      ],
      "CG": [
        "H",
        "hB"
      ],
      "CH": [
        "H",
        "hB",
        "h"
      ],
      "CI": [
        "H",
        "hB"
      ],
      "CK": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "CL": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "CM": [
        "H",
        "h",
        "hB"
      ],
      "CN": [
        "H",
        "hB",
        "hb",
        "h"
      ],
      "CO": [
        "h",
        "H",
        "hB",
        "hb"
      ],
      "CP": [
        "H"
      ],
      "CR": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "CU": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "CV": [
        "H",
        "hB"
      ],
      "CX": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "CY": [
        "h",
        "H",
        "hb",
        "hB"
      ],
      "CZ": [
        "H"
      ],
      "DE": [
        "H",
        "hB"
      ],
      "DG": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "DJ": [
        "h",
        "H"
      ],
      "DK": [
        "H"
      ],
      "DM": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "DO": [
        "h",
        "H",
        "hB",
        "hb"
      ],
      "DZ": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "EA": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "EC": [
        "H",
        "hB",
        "h",
        "hb"
      ],
      "EE": [
        "H",
        "hB"
      ],
      "EG": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "EH": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "ER": [
        "h",
        "H"
      ],
      "ES": [
        "H",
        "hB",
        "h",
        "hb"
      ],
      "ET": [
        "hB",
        "hb",
        "h",
        "H"
      ],
      "FI": [
        "H"
      ],
      "FJ": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "FK": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "FM": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "FR": [
        "H",
        "hB"
      ],
      "GA": [
        "H",
        "hB"
      ],
      "GB": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "GD": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "GE": [
        "H",
        "hB",
        "h"
      ],
      "GF": [
        "H",
        "hB"
      ],
      "GG": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "GH": [
        "h",
        "H"
      ],
      "GI": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "GM": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "GN": [
        "H",
        "hB"
      ],
      "GP": [
        "H",
        "hB"
      ],
      "GQ": [
        "H",
        "hB",
        "h",
        "hb"
      ],
      "GR": [
        "h",
        "H",
        "hb",
        "hB"
      ],
      "GT": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "GU": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "GW": [
        "H",
        "hB"
      ],
      "GY": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "HK": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "HN": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "HR": [
        "H",
        "hB"
      ],
      "IC": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "ID": [
        "H"
      ],
      "IE": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "IL": [
        "H",
        "hB"
      ],
      "IM": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "IN": [
        "h",
        "H"
      ],
      "IO": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "IQ": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "IR": [
        "hB",
        "H"
      ],
      "IS": [
        "H"
      ],
      "IT": [
        "H",
        "hB"
      ],
      "JE": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "JM": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "JO": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "JP": [
        "H",
        "h",
        "K"
      ],
      "KE": [
        "hB",
        "hb",
        "H",
        "h"
      ],
      "KG": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "KH": [
        "hB",
        "h",
        "H",
        "hb"
      ],
      "KI": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "KM": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "KN": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "KP": [
        "h",
        "H",
        "hB",
        "hb"
      ],
      "KR": [
        "h",
        "H",
        "hB",
        "hb"
      ],
      "KW": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "KY": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "KZ": [
        "H",
        "hB"
      ],
      "LA": [
        "H",
        "hb",
        "hB",
        "h"
      ],
      "LB": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "LC": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "LI": [
        "H",
        "hB",
        "h"
      ],
      "LK": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "LR": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "LS": [
        "h",
        "H"
      ],
      "LT": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "LU": [
        "H",
        "h",
        "hB"
      ],
      "LV": [
        "H",
        "hB",
        "hb",
        "h"
      ],
      "LY": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "MA": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "MC": [
        "H",
        "hB"
      ],
      "MD": [
        "H",
        "hB"
      ],
      "ME": [
        "H",
        "hB",
        "h"
      ],
      "MF": [
        "H",
        "hB"
      ],
      "MH": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "MK": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "ML": [
        "H"
      ],
      "MM": [
        "hB",
        "hb",
        "H",
        "h"
      ],
      "MN": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "MO": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "MP": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "MQ": [
        "H",
        "hB"
      ],
      "MR": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "MS": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "MW": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "MX": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "MY": [
        "hb",
        "hB",
        "h",
        "H"
      ],
      "MZ": [
        "H",
        "hB"
      ],
      "NA": [
        "h",
        "H",
        "hB",
        "hb"
      ],
      "NC": [
        "H",
        "hB"
      ],
      "NE": [
        "H"
      ],
      "NF": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "NG": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "NI": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "NL": [
        "H",
        "hB"
      ],
      "NP": [
        "H",
        "h",
        "hB"
      ],
      "NR": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "NU": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "NZ": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "OM": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "PA": [
        "h",
        "H",
        "hB",
        "hb"
      ],
      "PE": [
        "H",
        "hB",
        "h",
        "hb"
      ],
      "PF": [
        "H",
        "h",
        "hB"
      ],
      "PG": [
        "h",
        "H"
      ],
      "PH": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "PK": [
        "h",
        "hB",
        "H"
      ],
      "PM": [
        "H",
        "hB"
      ],
      "PN": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "PR": [
        "h",
        "H",
        "hB",
        "hb"
      ],
      "PS": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "PT": [
        "H",
        "hB"
      ],
      "PW": [
        "h",
        "H"
      ],
      "PY": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "QA": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "RE": [
        "H",
        "hB"
      ],
      "RO": [
        "H",
        "hB"
      ],
      "RS": [
        "H",
        "hB",
        "h"
      ],
      "RU": [
        "H"
      ],
      "SA": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "SB": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "SC": [
        "H",
        "h",
        "hB"
      ],
      "SD": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "SE": [
        "H"
      ],
      "SG": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "SH": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "SI": [
        "H",
        "hB"
      ],
      "SJ": [
        "H"
      ],
      "SK": [
        "H"
      ],
      "SL": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "SM": [
        "H",
        "h",
        "hB"
      ],
      "SN": [
        "H",
        "h",
        "hB"
      ],
      "SO": [
        "h",
        "H"
      ],
      "SR": [
        "H",
        "hB"
      ],
      "SS": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "ST": [
        "H",
        "hB"
      ],
      "SV": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "SX": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "SY": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "SZ": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "TA": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "TC": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "TD": [
        "h",
        "H",
        "hB"
      ],
      "TF": [
        "H",
        "h",
        "hB"
      ],
      "TG": [
        "H",
        "hB"
      ],
      "TL": [
        "H",
        "hB",
        "hb",
        "h"
      ],
      "TN": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "TO": [
        "h",
        "H"
      ],
      "TR": [
        "H",
        "hB"
      ],
      "TT": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "TW": [
        "hB",
        "hb",
        "h",
        "H"
      ],
      "TZ": [
        "hB",
        "hb",
        "H",
        "h"
      ],
      "UA": [
        "H",
        "hB",
        "h"
      ],
      "UG": [
        "hB",
        "hb",
        "H",
        "h"
      ],
      "UM": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "US": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "UY": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "UZ": [
        "H",
        "hB",
        "h"
      ],
      "VA": [
        "H",
        "h",
        "hB"
      ],
      "VC": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "VE": [
        "h",
        "H",
        "hB",
        "hb"
      ],
      "VG": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "VI": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "VU": [
        "h",
        "H"
      ],
      "WF": [
        "H",
        "hB"
      ],
      "WS": [
        "h",
        "H"
      ],
      "XK": [
        "H",
        "hB",
        "h"
      ],
      "YE": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "YT": [
        "H",
        "hB"
      ],
      "ZA": [
        "H",
        "h",
        "hb",
        "hB"
      ],
      "ZM": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "af-ZA": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "ar-001": [
        "h",
        "hB",
        "hb",
        "H"
      ],
      "ca-ES": [
        "H",
        "h",
        "hB"
      ],
      "en-001": [
        "h",
        "hb",
        "H",
        "hB"
      ],
      "es-BO": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "es-BR": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "es-EC": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "es-ES": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "es-GQ": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "es-PE": [
        "H",
        "h",
        "hB",
        "hb"
      ],
      "fr-CA": [
        "H",
        "h",
        "hB"
      ],
      "gl-ES": [
        "H",
        "h",
        "hB"
      ],
      "gu-IN": [
        "hB",
        "hb",
        "h",
        "H"
      ],
      "hi-IN": [
        "hB",
        "h",
        "H"
      ],
      "it-CH": [
        "H",
        "h",
        "hB"
      ],
      "it-IT": [
        "H",
        "h",
        "hB"
      ],
      "kn-IN": [
        "hB",
        "h",
        "H"
      ],
      "ml-IN": [
        "hB",
        "h",
        "H"
      ],
      "mr-IN": [
        "hB",
        "hb",
        "h",
        "H"
      ],
      "pa-IN": [
        "hB",
        "hb",
        "h",
        "H"
      ],
      "ta-IN": [
        "hB",
        "h",
        "hb",
        "H"
      ],
      "te-IN": [
        "hB",
        "h",
        "H"
      ],
      "zu-ZA": [
        "H",
        "hB",
        "hb",
        "h"
      ]
    };
  }
});

// node_modules/@formatjs/icu-messageformat-parser/date-time-pattern-generator.js
var require_date_time_pattern_generator = __commonJS({
  "node_modules/@formatjs/icu-messageformat-parser/date-time-pattern-generator.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.getBestPattern = void 0;
    var time_data_generated_1 = require_time_data_generated();
    function getBestPattern(skeleton, locale) {
      var skeletonCopy = "";
      for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {
        var patternChar = skeleton.charAt(patternPos);
        if (patternChar === "j") {
          var extraLength = 0;
          while (patternPos + 1 < skeleton.length && skeleton.charAt(patternPos + 1) === patternChar) {
            extraLength++;
            patternPos++;
          }
          var hourLen = 1 + (extraLength & 1);
          var dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1);
          var dayPeriodChar = "a";
          var hourChar = getDefaultHourSymbolFromLocale(locale);
          if (hourChar == "H" || hourChar == "k") {
            dayPeriodLen = 0;
          }
          while (dayPeriodLen-- > 0) {
            skeletonCopy += dayPeriodChar;
          }
          while (hourLen-- > 0) {
            skeletonCopy = hourChar + skeletonCopy;
          }
        } else if (patternChar === "J") {
          skeletonCopy += "H";
        } else {
          skeletonCopy += patternChar;
        }
      }
      return skeletonCopy;
    }
    __name(getBestPattern, "getBestPattern");
    exports2.getBestPattern = getBestPattern;
    function getDefaultHourSymbolFromLocale(locale) {
      var hourCycle = locale.hourCycle;
      if (hourCycle === void 0 && // @ts-ignore hourCycle(s) is not identified yet
      locale.hourCycles && // @ts-ignore
      locale.hourCycles.length) {
        hourCycle = locale.hourCycles[0];
      }
      if (hourCycle) {
        switch (hourCycle) {
          case "h24":
            return "k";
          case "h23":
            return "H";
          case "h12":
            return "h";
          case "h11":
            return "K";
          default:
            throw new Error("Invalid hourCycle");
        }
      }
      var languageTag = locale.language;
      var regionTag;
      if (languageTag !== "root") {
        regionTag = locale.maximize().region;
      }
      var hourCycles = time_data_generated_1.timeData[regionTag || ""] || time_data_generated_1.timeData[languageTag || ""] || time_data_generated_1.timeData["".concat(languageTag, "-001")] || time_data_generated_1.timeData["001"];
      return hourCycles[0];
    }
    __name(getDefaultHourSymbolFromLocale, "getDefaultHourSymbolFromLocale");
  }
});

// node_modules/@formatjs/icu-messageformat-parser/parser.js
var require_parser = __commonJS({
  "node_modules/@formatjs/icu-messageformat-parser/parser.js"(exports2) {
    "use strict";
    init_process_global();
    var _a3;
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Parser = void 0;
    var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2));
    var error_1 = require_error();
    var types_1 = require_types();
    var regex_generated_1 = require_regex_generated();
    var icu_skeleton_parser_1 = require_icu_skeleton_parser();
    var date_time_pattern_generator_1 = require_date_time_pattern_generator();
    var SPACE_SEPARATOR_START_REGEX = new RegExp("^".concat(regex_generated_1.SPACE_SEPARATOR_REGEX.source, "*"));
    var SPACE_SEPARATOR_END_REGEX = new RegExp("".concat(regex_generated_1.SPACE_SEPARATOR_REGEX.source, "*$"));
    function createLocation(start, end) {
      return { start, end };
    }
    __name(createLocation, "createLocation");
    var hasNativeStartsWith = !!String.prototype.startsWith && "_a".startsWith("a", 1);
    var hasNativeFromCodePoint = !!String.fromCodePoint;
    var hasNativeFromEntries = !!Object.fromEntries;
    var hasNativeCodePointAt = !!String.prototype.codePointAt;
    var hasTrimStart = !!String.prototype.trimStart;
    var hasTrimEnd = !!String.prototype.trimEnd;
    var hasNativeIsSafeInteger = !!Number.isSafeInteger;
    var isSafeInteger = hasNativeIsSafeInteger ? Number.isSafeInteger : function(n) {
      return typeof n === "number" && isFinite(n) && Math.floor(n) === n && Math.abs(n) <= 9007199254740991;
    };
    var REGEX_SUPPORTS_U_AND_Y = true;
    try {
      re = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
      REGEX_SUPPORTS_U_AND_Y = ((_a3 = re.exec("a")) === null || _a3 === void 0 ? void 0 : _a3[0]) === "a";
    } catch (_) {
      REGEX_SUPPORTS_U_AND_Y = false;
    }
    var re;
    var startsWith = hasNativeStartsWith ? (
      // Native
      /* @__PURE__ */ __name(function startsWith2(s, search, position) {
        return s.startsWith(search, position);
      }, "startsWith")
    ) : (
      // For IE11
      /* @__PURE__ */ __name(function startsWith2(s, search, position) {
        return s.slice(position, position + search.length) === search;
      }, "startsWith")
    );
    var fromCodePoint = hasNativeFromCodePoint ? String.fromCodePoint : (
      // IE11
      /* @__PURE__ */ __name(function fromCodePoint2() {
        var codePoints = [];
        for (var _i = 0; _i < arguments.length; _i++) {
          codePoints[_i] = arguments[_i];
        }
        var elements = "";
        var length = codePoints.length;
        var i = 0;
        var code;
        while (length > i) {
          code = codePoints[i++];
          if (code > 1114111)
            throw RangeError(code + " is not a valid code point");
          elements += code < 65536 ? String.fromCharCode(code) : String.fromCharCode(((code -= 65536) >> 10) + 55296, code % 1024 + 56320);
        }
        return elements;
      }, "fromCodePoint")
    );
    var fromEntries = (
      // native
      hasNativeFromEntries ? Object.fromEntries : (
        // Ponyfill
        /* @__PURE__ */ __name(function fromEntries2(entries) {
          var obj = {};
          for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
            var _a4 = entries_1[_i], k = _a4[0], v = _a4[1];
            obj[k] = v;
          }
          return obj;
        }, "fromEntries")
      )
    );
    var codePointAt = hasNativeCodePointAt ? (
      // Native
      /* @__PURE__ */ __name(function codePointAt2(s, index) {
        return s.codePointAt(index);
      }, "codePointAt")
    ) : (
      // IE 11
      /* @__PURE__ */ __name(function codePointAt2(s, index) {
        var size = s.length;
        if (index < 0 || index >= size) {
          return void 0;
        }
        var first = s.charCodeAt(index);
        var second;
        return first < 55296 || first > 56319 || index + 1 === size || (second = s.charCodeAt(index + 1)) < 56320 || second > 57343 ? first : (first - 55296 << 10) + (second - 56320) + 65536;
      }, "codePointAt")
    );
    var trimStart = hasTrimStart ? (
      // Native
      /* @__PURE__ */ __name(function trimStart2(s) {
        return s.trimStart();
      }, "trimStart")
    ) : (
      // Ponyfill
      /* @__PURE__ */ __name(function trimStart2(s) {
        return s.replace(SPACE_SEPARATOR_START_REGEX, "");
      }, "trimStart")
    );
    var trimEnd = hasTrimEnd ? (
      // Native
      /* @__PURE__ */ __name(function trimEnd2(s) {
        return s.trimEnd();
      }, "trimEnd")
    ) : (
      // Ponyfill
      /* @__PURE__ */ __name(function trimEnd2(s) {
        return s.replace(SPACE_SEPARATOR_END_REGEX, "");
      }, "trimEnd")
    );
    function RE(s, flag) {
      return new RegExp(s, flag);
    }
    __name(RE, "RE");
    var matchIdentifierAtIndex;
    if (REGEX_SUPPORTS_U_AND_Y) {
      IDENTIFIER_PREFIX_RE_1 = RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
      matchIdentifierAtIndex = /* @__PURE__ */ __name(function matchIdentifierAtIndex2(s, index) {
        var _a4;
        IDENTIFIER_PREFIX_RE_1.lastIndex = index;
        var match = IDENTIFIER_PREFIX_RE_1.exec(s);
        return (_a4 = match[1]) !== null && _a4 !== void 0 ? _a4 : "";
      }, "matchIdentifierAtIndex");
    } else {
      matchIdentifierAtIndex = /* @__PURE__ */ __name(function matchIdentifierAtIndex2(s, index) {
        var match = [];
        while (true) {
          var c = codePointAt(s, index);
          if (c === void 0 || _isWhiteSpace(c) || _isPatternSyntax(c)) {
            break;
          }
          match.push(c);
          index += c >= 65536 ? 2 : 1;
        }
        return fromCodePoint.apply(void 0, match);
      }, "matchIdentifierAtIndex");
    }
    var IDENTIFIER_PREFIX_RE_1;
    var Parser = (
      /** @class */
      (function() {
        function Parser2(message, options) {
          if (options === void 0) {
            options = {};
          }
          this.message = message;
          this.position = { offset: 0, line: 1, column: 1 };
          this.ignoreTag = !!options.ignoreTag;
          this.locale = options.locale;
          this.requiresOtherClause = !!options.requiresOtherClause;
          this.shouldParseSkeletons = !!options.shouldParseSkeletons;
        }
        __name(Parser2, "Parser");
        Parser2.prototype.parse = function() {
          if (this.offset() !== 0) {
            throw Error("parser can only be used once");
          }
          return this.parseMessage(0, "", false);
        };
        Parser2.prototype.parseMessage = function(nestingLevel, parentArgType, expectingCloseTag) {
          var elements = [];
          while (!this.isEOF()) {
            var char = this.char();
            if (char === 123) {
              var result = this.parseArgument(nestingLevel, expectingCloseTag);
              if (result.err) {
                return result;
              }
              elements.push(result.val);
            } else if (char === 125 && nestingLevel > 0) {
              break;
            } else if (char === 35 && (parentArgType === "plural" || parentArgType === "selectordinal")) {
              var position = this.clonePosition();
              this.bump();
              elements.push({
                type: types_1.TYPE.pound,
                location: createLocation(position, this.clonePosition())
              });
            } else if (char === 60 && !this.ignoreTag && this.peek() === 47) {
              if (expectingCloseTag) {
                break;
              } else {
                return this.error(error_1.ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));
              }
            } else if (char === 60 && !this.ignoreTag && _isAlpha(this.peek() || 0)) {
              var result = this.parseTag(nestingLevel, parentArgType);
              if (result.err) {
                return result;
              }
              elements.push(result.val);
            } else {
              var result = this.parseLiteral(nestingLevel, parentArgType);
              if (result.err) {
                return result;
              }
              elements.push(result.val);
            }
          }
          return { val: elements, err: null };
        };
        Parser2.prototype.parseTag = function(nestingLevel, parentArgType) {
          var startPosition = this.clonePosition();
          this.bump();
          var tagName = this.parseTagName();
          this.bumpSpace();
          if (this.bumpIf("/>")) {
            return {
              val: {
                type: types_1.TYPE.literal,
                value: "<".concat(tagName, "/>"),
                location: createLocation(startPosition, this.clonePosition())
              },
              err: null
            };
          } else if (this.bumpIf(">")) {
            var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, true);
            if (childrenResult.err) {
              return childrenResult;
            }
            var children = childrenResult.val;
            var endTagStartPosition = this.clonePosition();
            if (this.bumpIf("</")) {
              if (this.isEOF() || !_isAlpha(this.char())) {
                return this.error(error_1.ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
              }
              var closingTagNameStartPosition = this.clonePosition();
              var closingTagName = this.parseTagName();
              if (tagName !== closingTagName) {
                return this.error(error_1.ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(closingTagNameStartPosition, this.clonePosition()));
              }
              this.bumpSpace();
              if (!this.bumpIf(">")) {
                return this.error(error_1.ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));
              }
              return {
                val: {
                  type: types_1.TYPE.tag,
                  value: tagName,
                  children,
                  location: createLocation(startPosition, this.clonePosition())
                },
                err: null
              };
            } else {
              return this.error(error_1.ErrorKind.UNCLOSED_TAG, createLocation(startPosition, this.clonePosition()));
            }
          } else {
            return this.error(error_1.ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));
          }
        };
        Parser2.prototype.parseTagName = function() {
          var startOffset = this.offset();
          this.bump();
          while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {
            this.bump();
          }
          return this.message.slice(startOffset, this.offset());
        };
        Parser2.prototype.parseLiteral = function(nestingLevel, parentArgType) {
          var start = this.clonePosition();
          var value = "";
          while (true) {
            var parseQuoteResult = this.tryParseQuote(parentArgType);
            if (parseQuoteResult) {
              value += parseQuoteResult;
              continue;
            }
            var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);
            if (parseUnquotedResult) {
              value += parseUnquotedResult;
              continue;
            }
            var parseLeftAngleResult = this.tryParseLeftAngleBracket();
            if (parseLeftAngleResult) {
              value += parseLeftAngleResult;
              continue;
            }
            break;
          }
          var location = createLocation(start, this.clonePosition());
          return {
            val: { type: types_1.TYPE.literal, value, location },
            err: null
          };
        };
        Parser2.prototype.tryParseLeftAngleBracket = function() {
          if (!this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
          !_isAlphaOrSlash(this.peek() || 0))) {
            this.bump();
            return "<";
          }
          return null;
        };
        Parser2.prototype.tryParseQuote = function(parentArgType) {
          if (this.isEOF() || this.char() !== 39) {
            return null;
          }
          switch (this.peek()) {
            case 39:
              this.bump();
              this.bump();
              return "'";
            // '{', '<', '>', '}'
            case 123:
            case 60:
            case 62:
            case 125:
              break;
            case 35:
              if (parentArgType === "plural" || parentArgType === "selectordinal") {
                break;
              }
              return null;
            default:
              return null;
          }
          this.bump();
          var codePoints = [this.char()];
          this.bump();
          while (!this.isEOF()) {
            var ch = this.char();
            if (ch === 39) {
              if (this.peek() === 39) {
                codePoints.push(39);
                this.bump();
              } else {
                this.bump();
                break;
              }
            } else {
              codePoints.push(ch);
            }
            this.bump();
          }
          return fromCodePoint.apply(void 0, codePoints);
        };
        Parser2.prototype.tryParseUnquoted = function(nestingLevel, parentArgType) {
          if (this.isEOF()) {
            return null;
          }
          var ch = this.char();
          if (ch === 60 || ch === 123 || ch === 35 && (parentArgType === "plural" || parentArgType === "selectordinal") || ch === 125 && nestingLevel > 0) {
            return null;
          } else {
            this.bump();
            return fromCodePoint(ch);
          }
        };
        Parser2.prototype.parseArgument = function(nestingLevel, expectingCloseTag) {
          var openingBracePosition = this.clonePosition();
          this.bump();
          this.bumpSpace();
          if (this.isEOF()) {
            return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
          }
          if (this.char() === 125) {
            this.bump();
            return this.error(error_1.ErrorKind.EMPTY_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
          }
          var value = this.parseIdentifierIfPossible().value;
          if (!value) {
            return this.error(error_1.ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
          }
          this.bumpSpace();
          if (this.isEOF()) {
            return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
          }
          switch (this.char()) {
            // Simple argument: `{name}`
            case 125: {
              this.bump();
              return {
                val: {
                  type: types_1.TYPE.argument,
                  // value does not include the opening and closing braces.
                  value,
                  location: createLocation(openingBracePosition, this.clonePosition())
                },
                err: null
              };
            }
            // Argument with options: `{name, format, ...}`
            case 44: {
              this.bump();
              this.bumpSpace();
              if (this.isEOF()) {
                return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
              }
              return this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);
            }
            default:
              return this.error(error_1.ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));
          }
        };
        Parser2.prototype.parseIdentifierIfPossible = function() {
          var startingPosition = this.clonePosition();
          var startOffset = this.offset();
          var value = matchIdentifierAtIndex(this.message, startOffset);
          var endOffset = startOffset + value.length;
          this.bumpTo(endOffset);
          var endPosition = this.clonePosition();
          var location = createLocation(startingPosition, endPosition);
          return { value, location };
        };
        Parser2.prototype.parseArgumentOptions = function(nestingLevel, expectingCloseTag, value, openingBracePosition) {
          var _a4;
          var typeStartPosition = this.clonePosition();
          var argType = this.parseIdentifierIfPossible().value;
          var typeEndPosition = this.clonePosition();
          switch (argType) {
            case "":
              return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
            case "number":
            case "date":
            case "time": {
              this.bumpSpace();
              var styleAndLocation = null;
              if (this.bumpIf(",")) {
                this.bumpSpace();
                var styleStartPosition = this.clonePosition();
                var result = this.parseSimpleArgStyleIfPossible();
                if (result.err) {
                  return result;
                }
                var style = trimEnd(result.val);
                if (style.length === 0) {
                  return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation(this.clonePosition(), this.clonePosition()));
                }
                var styleLocation = createLocation(styleStartPosition, this.clonePosition());
                styleAndLocation = { style, styleLocation };
              }
              var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
              if (argCloseResult.err) {
                return argCloseResult;
              }
              var location_1 = createLocation(openingBracePosition, this.clonePosition());
              if (styleAndLocation && startsWith(styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style, "::", 0)) {
                var skeleton = trimStart(styleAndLocation.style.slice(2));
                if (argType === "number") {
                  var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);
                  if (result.err) {
                    return result;
                  }
                  return {
                    val: { type: types_1.TYPE.number, value, location: location_1, style: result.val },
                    err: null
                  };
                } else {
                  if (skeleton.length === 0) {
                    return this.error(error_1.ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);
                  }
                  var dateTimePattern = skeleton;
                  if (this.locale) {
                    dateTimePattern = (0, date_time_pattern_generator_1.getBestPattern)(skeleton, this.locale);
                  }
                  var style = {
                    type: types_1.SKELETON_TYPE.dateTime,
                    pattern: dateTimePattern,
                    location: styleAndLocation.styleLocation,
                    parsedOptions: this.shouldParseSkeletons ? (0, icu_skeleton_parser_1.parseDateTimeSkeleton)(dateTimePattern) : {}
                  };
                  var type = argType === "date" ? types_1.TYPE.date : types_1.TYPE.time;
                  return {
                    val: { type, value, location: location_1, style },
                    err: null
                  };
                }
              }
              return {
                val: {
                  type: argType === "number" ? types_1.TYPE.number : argType === "date" ? types_1.TYPE.date : types_1.TYPE.time,
                  value,
                  location: location_1,
                  style: (_a4 = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a4 !== void 0 ? _a4 : null
                },
                err: null
              };
            }
            case "plural":
            case "selectordinal":
            case "select": {
              var typeEndPosition_1 = this.clonePosition();
              this.bumpSpace();
              if (!this.bumpIf(",")) {
                return this.error(error_1.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, tslib_1.__assign({}, typeEndPosition_1)));
              }
              this.bumpSpace();
              var identifierAndLocation = this.parseIdentifierIfPossible();
              var pluralOffset = 0;
              if (argType !== "select" && identifierAndLocation.value === "offset") {
                if (!this.bumpIf(":")) {
                  return this.error(error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation(this.clonePosition(), this.clonePosition()));
                }
                this.bumpSpace();
                var result = this.tryParseDecimalInteger(error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, error_1.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
                if (result.err) {
                  return result;
                }
                this.bumpSpace();
                identifierAndLocation = this.parseIdentifierIfPossible();
                pluralOffset = result.val;
              }
              var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);
              if (optionsResult.err) {
                return optionsResult;
              }
              var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
              if (argCloseResult.err) {
                return argCloseResult;
              }
              var location_2 = createLocation(openingBracePosition, this.clonePosition());
              if (argType === "select") {
                return {
                  val: {
                    type: types_1.TYPE.select,
                    value,
                    options: fromEntries(optionsResult.val),
                    location: location_2
                  },
                  err: null
                };
              } else {
                return {
                  val: {
                    type: types_1.TYPE.plural,
                    value,
                    options: fromEntries(optionsResult.val),
                    offset: pluralOffset,
                    pluralType: argType === "plural" ? "cardinal" : "ordinal",
                    location: location_2
                  },
                  err: null
                };
              }
            }
            default:
              return this.error(error_1.ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));
          }
        };
        Parser2.prototype.tryParseArgumentClose = function(openingBracePosition) {
          if (this.isEOF() || this.char() !== 125) {
            return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));
          }
          this.bump();
          return { val: true, err: null };
        };
        Parser2.prototype.parseSimpleArgStyleIfPossible = function() {
          var nestedBraces = 0;
          var startPosition = this.clonePosition();
          while (!this.isEOF()) {
            var ch = this.char();
            switch (ch) {
              case 39: {
                this.bump();
                var apostrophePosition = this.clonePosition();
                if (!this.bumpUntil("'")) {
                  return this.error(error_1.ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation(apostrophePosition, this.clonePosition()));
                }
                this.bump();
                break;
              }
              case 123: {
                nestedBraces += 1;
                this.bump();
                break;
              }
              case 125: {
                if (nestedBraces > 0) {
                  nestedBraces -= 1;
                } else {
                  return {
                    val: this.message.slice(startPosition.offset, this.offset()),
                    err: null
                  };
                }
                break;
              }
              default:
                this.bump();
                break;
            }
          }
          return {
            val: this.message.slice(startPosition.offset, this.offset()),
            err: null
          };
        };
        Parser2.prototype.parseNumberSkeletonFromString = function(skeleton, location) {
          var tokens = [];
          try {
            tokens = (0, icu_skeleton_parser_1.parseNumberSkeletonFromString)(skeleton);
          } catch (e) {
            return this.error(error_1.ErrorKind.INVALID_NUMBER_SKELETON, location);
          }
          return {
            val: {
              type: types_1.SKELETON_TYPE.number,
              tokens,
              location,
              parsedOptions: this.shouldParseSkeletons ? (0, icu_skeleton_parser_1.parseNumberSkeleton)(tokens) : {}
            },
            err: null
          };
        };
        Parser2.prototype.tryParsePluralOrSelectOptions = function(nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {
          var _a4;
          var hasOtherClause = false;
          var options = [];
          var parsedSelectors = /* @__PURE__ */ new Set();
          var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;
          while (true) {
            if (selector.length === 0) {
              var startPosition = this.clonePosition();
              if (parentArgType !== "select" && this.bumpIf("=")) {
                var result = this.tryParseDecimalInteger(error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, error_1.ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);
                if (result.err) {
                  return result;
                }
                selectorLocation = createLocation(startPosition, this.clonePosition());
                selector = this.message.slice(startPosition.offset, this.offset());
              } else {
                break;
              }
            }
            if (parsedSelectors.has(selector)) {
              return this.error(parentArgType === "select" ? error_1.ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : error_1.ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);
            }
            if (selector === "other") {
              hasOtherClause = true;
            }
            this.bumpSpace();
            var openingBracePosition = this.clonePosition();
            if (!this.bumpIf("{")) {
              return this.error(parentArgType === "select" ? error_1.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation(this.clonePosition(), this.clonePosition()));
            }
            var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);
            if (fragmentResult.err) {
              return fragmentResult;
            }
            var argCloseResult = this.tryParseArgumentClose(openingBracePosition);
            if (argCloseResult.err) {
              return argCloseResult;
            }
            options.push([
              selector,
              {
                value: fragmentResult.val,
                location: createLocation(openingBracePosition, this.clonePosition())
              }
            ]);
            parsedSelectors.add(selector);
            this.bumpSpace();
            _a4 = this.parseIdentifierIfPossible(), selector = _a4.value, selectorLocation = _a4.location;
          }
          if (options.length === 0) {
            return this.error(parentArgType === "select" ? error_1.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));
          }
          if (this.requiresOtherClause && !hasOtherClause) {
            return this.error(error_1.ErrorKind.MISSING_OTHER_CLAUSE, createLocation(this.clonePosition(), this.clonePosition()));
          }
          return { val: options, err: null };
        };
        Parser2.prototype.tryParseDecimalInteger = function(expectNumberError, invalidNumberError) {
          var sign = 1;
          var startingPosition = this.clonePosition();
          if (this.bumpIf("+")) {
          } else if (this.bumpIf("-")) {
            sign = -1;
          }
          var hasDigits = false;
          var decimal = 0;
          while (!this.isEOF()) {
            var ch = this.char();
            if (ch >= 48 && ch <= 57) {
              hasDigits = true;
              decimal = decimal * 10 + (ch - 48);
              this.bump();
            } else {
              break;
            }
          }
          var location = createLocation(startingPosition, this.clonePosition());
          if (!hasDigits) {
            return this.error(expectNumberError, location);
          }
          decimal *= sign;
          if (!isSafeInteger(decimal)) {
            return this.error(invalidNumberError, location);
          }
          return { val: decimal, err: null };
        };
        Parser2.prototype.offset = function() {
          return this.position.offset;
        };
        Parser2.prototype.isEOF = function() {
          return this.offset() === this.message.length;
        };
        Parser2.prototype.clonePosition = function() {
          return {
            offset: this.position.offset,
            line: this.position.line,
            column: this.position.column
          };
        };
        Parser2.prototype.char = function() {
          var offset = this.position.offset;
          if (offset >= this.message.length) {
            throw Error("out of bound");
          }
          var code = codePointAt(this.message, offset);
          if (code === void 0) {
            throw Error("Offset ".concat(offset, " is at invalid UTF-16 code unit boundary"));
          }
          return code;
        };
        Parser2.prototype.error = function(kind, location) {
          return {
            val: null,
            err: {
              kind,
              message: this.message,
              location
            }
          };
        };
        Parser2.prototype.bump = function() {
          if (this.isEOF()) {
            return;
          }
          var code = this.char();
          if (code === 10) {
            this.position.line += 1;
            this.position.column = 1;
            this.position.offset += 1;
          } else {
            this.position.column += 1;
            this.position.offset += code < 65536 ? 1 : 2;
          }
        };
        Parser2.prototype.bumpIf = function(prefix) {
          if (startsWith(this.message, prefix, this.offset())) {
            for (var i = 0; i < prefix.length; i++) {
              this.bump();
            }
            return true;
          }
          return false;
        };
        Parser2.prototype.bumpUntil = function(pattern) {
          var currentOffset = this.offset();
          var index = this.message.indexOf(pattern, currentOffset);
          if (index >= 0) {
            this.bumpTo(index);
            return true;
          } else {
            this.bumpTo(this.message.length);
            return false;
          }
        };
        Parser2.prototype.bumpTo = function(targetOffset) {
          if (this.offset() > targetOffset) {
            throw Error("targetOffset ".concat(targetOffset, " must be greater than or equal to the current offset ").concat(this.offset()));
          }
          targetOffset = Math.min(targetOffset, this.message.length);
          while (true) {
            var offset = this.offset();
            if (offset === targetOffset) {
              break;
            }
            if (offset > targetOffset) {
              throw Error("targetOffset ".concat(targetOffset, " is at invalid UTF-16 code unit boundary"));
            }
            this.bump();
            if (this.isEOF()) {
              break;
            }
          }
        };
        Parser2.prototype.bumpSpace = function() {
          while (!this.isEOF() && _isWhiteSpace(this.char())) {
            this.bump();
          }
        };
        Parser2.prototype.peek = function() {
          if (this.isEOF()) {
            return null;
          }
          var code = this.char();
          var offset = this.offset();
          var nextCode = this.message.charCodeAt(offset + (code >= 65536 ? 2 : 1));
          return nextCode !== null && nextCode !== void 0 ? nextCode : null;
        };
        return Parser2;
      })()
    );
    exports2.Parser = Parser;
    function _isAlpha(codepoint) {
      return codepoint >= 97 && codepoint <= 122 || codepoint >= 65 && codepoint <= 90;
    }
    __name(_isAlpha, "_isAlpha");
    function _isAlphaOrSlash(codepoint) {
      return _isAlpha(codepoint) || codepoint === 47;
    }
    __name(_isAlphaOrSlash, "_isAlphaOrSlash");
    function _isPotentialElementNameChar(c) {
      return c === 45 || c === 46 || c >= 48 && c <= 57 || c === 95 || c >= 97 && c <= 122 || c >= 65 && c <= 90 || c == 183 || c >= 192 && c <= 214 || c >= 216 && c <= 246 || c >= 248 && c <= 893 || c >= 895 && c <= 8191 || c >= 8204 && c <= 8205 || c >= 8255 && c <= 8256 || c >= 8304 && c <= 8591 || c >= 11264 && c <= 12271 || c >= 12289 && c <= 55295 || c >= 63744 && c <= 64975 || c >= 65008 && c <= 65533 || c >= 65536 && c <= 983039;
    }
    __name(_isPotentialElementNameChar, "_isPotentialElementNameChar");
    function _isWhiteSpace(c) {
      return c >= 9 && c <= 13 || c === 32 || c === 133 || c >= 8206 && c <= 8207 || c === 8232 || c === 8233;
    }
    __name(_isWhiteSpace, "_isWhiteSpace");
    function _isPatternSyntax(c) {
      return c >= 33 && c <= 35 || c === 36 || c >= 37 && c <= 39 || c === 40 || c === 41 || c === 42 || c === 43 || c === 44 || c === 45 || c >= 46 && c <= 47 || c >= 58 && c <= 59 || c >= 60 && c <= 62 || c >= 63 && c <= 64 || c === 91 || c === 92 || c === 93 || c === 94 || c === 96 || c === 123 || c === 124 || c === 125 || c === 126 || c === 161 || c >= 162 && c <= 165 || c === 166 || c === 167 || c === 169 || c === 171 || c === 172 || c === 174 || c === 176 || c === 177 || c === 182 || c === 187 || c === 191 || c === 215 || c === 247 || c >= 8208 && c <= 8213 || c >= 8214 && c <= 8215 || c === 8216 || c === 8217 || c === 8218 || c >= 8219 && c <= 8220 || c === 8221 || c === 8222 || c === 8223 || c >= 8224 && c <= 8231 || c >= 8240 && c <= 8248 || c === 8249 || c === 8250 || c >= 8251 && c <= 8254 || c >= 8257 && c <= 8259 || c === 8260 || c === 8261 || c === 8262 || c >= 8263 && c <= 8273 || c === 8274 || c === 8275 || c >= 8277 && c <= 8286 || c >= 8592 && c <= 8596 || c >= 8597 &&
      c <= 8601 || c >= 8602 && c <= 8603 || c >= 8604 && c <= 8607 || c === 8608 || c >= 8609 && c <= 8610 || c === 8611 || c >= 8612 && c <= 8613 || c === 8614 || c >= 8615 && c <= 8621 || c === 8622 || c >= 8623 && c <= 8653 || c >= 8654 && c <= 8655 || c >= 8656 && c <= 8657 || c === 8658 || c === 8659 || c === 8660 || c >= 8661 && c <= 8691 || c >= 8692 && c <= 8959 || c >= 8960 && c <= 8967 || c === 8968 || c === 8969 || c === 8970 || c === 8971 || c >= 8972 && c <= 8991 || c >= 8992 && c <= 8993 || c >= 8994 && c <= 9e3 || c === 9001 || c === 9002 || c >= 9003 && c <= 9083 || c === 9084 || c >= 9085 && c <= 9114 || c >= 9115 && c <= 9139 || c >= 9140 && c <= 9179 || c >= 9180 && c <= 9185 || c >= 9186 && c <= 9254 || c >= 9255 && c <= 9279 || c >= 9280 && c <= 9290 || c >= 9291 && c <= 9311 || c >= 9472 && c <= 9654 || c === 9655 || c >= 9656 && c <= 9664 || c === 9665 || c >= 9666 && c <= 9719 || c >= 9720 && c <= 9727 || c >= 9728 && c <= 9838 || c === 9839 || c >= 9840 && c <=
      10087 || c === 10088 || c === 10089 || c === 10090 || c === 10091 || c === 10092 || c === 10093 || c === 10094 || c === 10095 || c === 10096 || c === 10097 || c === 10098 || c === 10099 || c === 10100 || c === 10101 || c >= 10132 && c <= 10175 || c >= 10176 && c <= 10180 || c === 10181 || c === 10182 || c >= 10183 && c <= 10213 || c === 10214 || c === 10215 || c === 10216 || c === 10217 || c === 10218 || c === 10219 || c === 10220 || c === 10221 || c === 10222 || c === 10223 || c >= 10224 && c <= 10239 || c >= 10240 && c <= 10495 || c >= 10496 && c <= 10626 || c === 10627 || c === 10628 || c === 10629 || c === 10630 || c === 10631 || c === 10632 || c === 10633 || c === 10634 || c === 10635 || c === 10636 || c === 10637 || c === 10638 || c === 10639 || c === 10640 || c === 10641 || c === 10642 || c === 10643 || c === 10644 || c === 10645 || c === 10646 || c === 10647 || c === 10648 || c >= 10649 && c <= 10711 || c === 10712 || c === 10713 || c === 10714 || c === 10715 || c >= 10716 &&
      c <= 10747 || c === 10748 || c === 10749 || c >= 10750 && c <= 11007 || c >= 11008 && c <= 11055 || c >= 11056 && c <= 11076 || c >= 11077 && c <= 11078 || c >= 11079 && c <= 11084 || c >= 11085 && c <= 11123 || c >= 11124 && c <= 11125 || c >= 11126 && c <= 11157 || c === 11158 || c >= 11159 && c <= 11263 || c >= 11776 && c <= 11777 || c === 11778 || c === 11779 || c === 11780 || c === 11781 || c >= 11782 && c <= 11784 || c === 11785 || c === 11786 || c === 11787 || c === 11788 || c === 11789 || c >= 11790 && c <= 11798 || c === 11799 || c >= 11800 && c <= 11801 || c === 11802 || c === 11803 || c === 11804 || c === 11805 || c >= 11806 && c <= 11807 || c === 11808 || c === 11809 || c === 11810 || c === 11811 || c === 11812 || c === 11813 || c === 11814 || c === 11815 || c === 11816 || c === 11817 || c >= 11818 && c <= 11822 || c === 11823 || c >= 11824 && c <= 11833 || c >= 11834 && c <= 11835 || c >= 11836 && c <= 11839 || c === 11840 || c === 11841 || c === 11842 || c >= 11843 &&
      c <= 11855 || c >= 11856 && c <= 11857 || c === 11858 || c >= 11859 && c <= 11903 || c >= 12289 && c <= 12291 || c === 12296 || c === 12297 || c === 12298 || c === 12299 || c === 12300 || c === 12301 || c === 12302 || c === 12303 || c === 12304 || c === 12305 || c >= 12306 && c <= 12307 || c === 12308 || c === 12309 || c === 12310 || c === 12311 || c === 12312 || c === 12313 || c === 12314 || c === 12315 || c === 12316 || c === 12317 || c >= 12318 && c <= 12319 || c === 12320 || c === 12336 || c === 64830 || c === 64831 || c >= 65093 && c <= 65094;
    }
    __name(_isPatternSyntax, "_isPatternSyntax");
  }
});

// node_modules/@formatjs/icu-messageformat-parser/index.js
var require_icu_messageformat_parser = __commonJS({
  "node_modules/@formatjs/icu-messageformat-parser/index.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2._Parser = exports2.parse = void 0;
    var tslib_1 = (init_tslib_es62(), __toCommonJS(tslib_es6_exports2));
    var error_1 = require_error();
    var parser_1 = require_parser();
    var types_1 = require_types();
    function pruneLocation(els) {
      els.forEach(function(el) {
        delete el.location;
        if ((0, types_1.isSelectElement)(el) || (0, types_1.isPluralElement)(el)) {
          for (var k in el.options) {
            delete el.options[k].location;
            pruneLocation(el.options[k].value);
          }
        } else if ((0, types_1.isNumberElement)(el) && (0, types_1.isNumberSkeleton)(el.style)) {
          delete el.style.location;
        } else if (((0, types_1.isDateElement)(el) || (0, types_1.isTimeElement)(el)) && (0, types_1.isDateTimeSkeleton)(el.style)) {
          delete el.style.location;
        } else if ((0, types_1.isTagElement)(el)) {
          pruneLocation(el.children);
        }
      });
    }
    __name(pruneLocation, "pruneLocation");
    function parse(message, opts) {
      if (opts === void 0) {
        opts = {};
      }
      opts = tslib_1.__assign({ shouldParseSkeletons: true, requiresOtherClause: true }, opts);
      var result = new parser_1.Parser(message, opts).parse();
      if (result.err) {
        var error = SyntaxError(error_1.ErrorKind[result.err.kind]);
        error.location = result.err.location;
        error.originalMessage = result.err.message;
        throw error;
      }
      if (!(opts === null || opts === void 0 ? void 0 : opts.captureLocation)) {
        pruneLocation(result.val);
      }
      return result.val;
    }
    __name(parse, "parse");
    exports2.parse = parse;
    tslib_1.__exportStar(require_types(), exports2);
    exports2._Parser = parser_1.Parser;
  }
});

// node_modules/@formatjs/fast-memoize/index.js
var require_fast_memoize = __commonJS({
  "node_modules/@formatjs/fast-memoize/index.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.strategies = exports2.memoize = void 0;
    function memoize(fn, options) {
      var cache = options && options.cache ? options.cache : cacheDefault;
      var serializer = options && options.serializer ? options.serializer : serializerDefault;
      var strategy = options && options.strategy ? options.strategy : strategyDefault;
      return strategy(fn, {
        cache,
        serializer
      });
    }
    __name(memoize, "memoize");
    exports2.memoize = memoize;
    function isPrimitive(value) {
      return value == null || typeof value === "number" || typeof value === "boolean";
    }
    __name(isPrimitive, "isPrimitive");
    function monadic(fn, cache, serializer, arg) {
      var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
      var computedValue = cache.get(cacheKey);
      if (typeof computedValue === "undefined") {
        computedValue = fn.call(this, arg);
        cache.set(cacheKey, computedValue);
      }
      return computedValue;
    }
    __name(monadic, "monadic");
    function variadic(fn, cache, serializer) {
      var args = Array.prototype.slice.call(arguments, 3);
      var cacheKey = serializer(args);
      var computedValue = cache.get(cacheKey);
      if (typeof computedValue === "undefined") {
        computedValue = fn.apply(this, args);
        cache.set(cacheKey, computedValue);
      }
      return computedValue;
    }
    __name(variadic, "variadic");
    function assemble(fn, context, strategy, cache, serialize) {
      return strategy.bind(context, fn, cache, serialize);
    }
    __name(assemble, "assemble");
    function strategyDefault(fn, options) {
      var strategy = fn.length === 1 ? monadic : variadic;
      return assemble(fn, this, strategy, options.cache.create(), options.serializer);
    }
    __name(strategyDefault, "strategyDefault");
    function strategyVariadic(fn, options) {
      return assemble(fn, this, variadic, options.cache.create(), options.serializer);
    }
    __name(strategyVariadic, "strategyVariadic");
    function strategyMonadic(fn, options) {
      return assemble(fn, this, monadic, options.cache.create(), options.serializer);
    }
    __name(strategyMonadic, "strategyMonadic");
    var serializerDefault = /* @__PURE__ */ __name(function() {
      return JSON.stringify(arguments);
    }, "serializerDefault");
    function ObjectWithoutPrototypeCache() {
      this.cache = /* @__PURE__ */ Object.create(null);
    }
    __name(ObjectWithoutPrototypeCache, "ObjectWithoutPrototypeCache");
    ObjectWithoutPrototypeCache.prototype.get = function(key) {
      return this.cache[key];
    };
    ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
      this.cache[key] = value;
    };
    var cacheDefault = {
      create: /* @__PURE__ */ __name(function create() {
        return new ObjectWithoutPrototypeCache();
      }, "create")
    };
    exports2.strategies = {
      variadic: strategyVariadic,
      monadic: strategyMonadic
    };
  }
});

// node_modules/intl-messageformat/src/error.js
var require_error2 = __commonJS({
  "node_modules/intl-messageformat/src/error.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.MissingValueError = exports2.InvalidValueTypeError = exports2.InvalidValueError = exports2.FormatError = exports2.ErrorCode = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var ErrorCode;
    (function(ErrorCode2) {
      ErrorCode2["MISSING_VALUE"] = "MISSING_VALUE";
      ErrorCode2["INVALID_VALUE"] = "INVALID_VALUE";
      ErrorCode2["MISSING_INTL_API"] = "MISSING_INTL_API";
    })(ErrorCode = exports2.ErrorCode || (exports2.ErrorCode = {}));
    var FormatError = (
      /** @class */
      (function(_super) {
        tslib_1.__extends(FormatError2, _super);
        function FormatError2(msg, code, originalMessage) {
          var _this = _super.call(this, msg) || this;
          _this.code = code;
          _this.originalMessage = originalMessage;
          return _this;
        }
        __name(FormatError2, "FormatError");
        FormatError2.prototype.toString = function() {
          return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
        };
        return FormatError2;
      })(Error)
    );
    exports2.FormatError = FormatError;
    var InvalidValueError = (
      /** @class */
      (function(_super) {
        tslib_1.__extends(InvalidValueError2, _super);
        function InvalidValueError2(variableId, value, options, originalMessage) {
          return _super.call(this, 'Invalid values for "'.concat(variableId, '": "').concat(value, '". Options are "').concat(Object.keys(options).join('", "'), '"'), ErrorCode.INVALID_VALUE, originalMessage) || this;
        }
        __name(InvalidValueError2, "InvalidValueError");
        return InvalidValueError2;
      })(FormatError)
    );
    exports2.InvalidValueError = InvalidValueError;
    var InvalidValueTypeError = (
      /** @class */
      (function(_super) {
        tslib_1.__extends(InvalidValueTypeError2, _super);
        function InvalidValueTypeError2(value, type, originalMessage) {
          return _super.call(this, 'Value for "'.concat(value, '" must be of type ').concat(type), ErrorCode.INVALID_VALUE, originalMessage) || this;
        }
        __name(InvalidValueTypeError2, "InvalidValueTypeError");
        return InvalidValueTypeError2;
      })(FormatError)
    );
    exports2.InvalidValueTypeError = InvalidValueTypeError;
    var MissingValueError = (
      /** @class */
      (function(_super) {
        tslib_1.__extends(MissingValueError2, _super);
        function MissingValueError2(variableId, originalMessage) {
          return _super.call(this, 'The intl string context variable "'.concat(variableId, '" was not provided to the string "').concat(originalMessage, '"'), ErrorCode.MISSING_VALUE, originalMessage) || this;
        }
        __name(MissingValueError2, "MissingValueError");
        return MissingValueError2;
      })(FormatError)
    );
    exports2.MissingValueError = MissingValueError;
  }
});

// node_modules/intl-messageformat/src/formatters.js
var require_formatters = __commonJS({
  "node_modules/intl-messageformat/src/formatters.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.formatToParts = exports2.isFormatXMLElementFn = exports2.PART_TYPE = void 0;
    var icu_messageformat_parser_1 = require_icu_messageformat_parser();
    var error_1 = require_error2();
    var PART_TYPE;
    (function(PART_TYPE2) {
      PART_TYPE2[PART_TYPE2["literal"] = 0] = "literal";
      PART_TYPE2[PART_TYPE2["object"] = 1] = "object";
    })(PART_TYPE = exports2.PART_TYPE || (exports2.PART_TYPE = {}));
    function mergeLiteral(parts) {
      if (parts.length < 2) {
        return parts;
      }
      return parts.reduce(function(all, part) {
        var lastPart = all[all.length - 1];
        if (!lastPart || lastPart.type !== PART_TYPE.literal || part.type !== PART_TYPE.literal) {
          all.push(part);
        } else {
          lastPart.value += part.value;
        }
        return all;
      }, []);
    }
    __name(mergeLiteral, "mergeLiteral");
    function isFormatXMLElementFn(el) {
      return typeof el === "function";
    }
    __name(isFormatXMLElementFn, "isFormatXMLElementFn");
    exports2.isFormatXMLElementFn = isFormatXMLElementFn;
    function formatToParts(els, locales2, formatters, formats2, values, currentPluralValue, originalMessage) {
      if (els.length === 1 && (0, icu_messageformat_parser_1.isLiteralElement)(els[0])) {
        return [
          {
            type: PART_TYPE.literal,
            value: els[0].value
          }
        ];
      }
      var result = [];
      for (var _i = 0, els_1 = els; _i < els_1.length; _i++) {
        var el = els_1[_i];
        if ((0, icu_messageformat_parser_1.isLiteralElement)(el)) {
          result.push({
            type: PART_TYPE.literal,
            value: el.value
          });
          continue;
        }
        if ((0, icu_messageformat_parser_1.isPoundElement)(el)) {
          if (typeof currentPluralValue === "number") {
            result.push({
              type: PART_TYPE.literal,
              value: formatters.getNumberFormat(locales2).format(currentPluralValue)
            });
          }
          continue;
        }
        var varName = el.value;
        if (!(values && varName in values)) {
          throw new error_1.MissingValueError(varName, originalMessage);
        }
        var value = values[varName];
        if ((0, icu_messageformat_parser_1.isArgumentElement)(el)) {
          if (!value || typeof value === "string" || typeof value === "number") {
            value = typeof value === "string" || typeof value === "number" ? String(value) : "";
          }
          result.push({
            type: typeof value === "string" ? PART_TYPE.literal : PART_TYPE.object,
            value
          });
          continue;
        }
        if ((0, icu_messageformat_parser_1.isDateElement)(el)) {
          var style = typeof el.style === "string" ? formats2.date[el.style] : (0, icu_messageformat_parser_1.isDateTimeSkeleton)(el.style) ? el.style.parsedOptions : void 0;
          result.push({
            type: PART_TYPE.literal,
            value: formatters.getDateTimeFormat(locales2, style).format(value)
          });
          continue;
        }
        if ((0, icu_messageformat_parser_1.isTimeElement)(el)) {
          var style = typeof el.style === "string" ? formats2.time[el.style] : (0, icu_messageformat_parser_1.isDateTimeSkeleton)(el.style) ? el.style.parsedOptions : formats2.time.medium;
          result.push({
            type: PART_TYPE.literal,
            value: formatters.getDateTimeFormat(locales2, style).format(value)
          });
          continue;
        }
        if ((0, icu_messageformat_parser_1.isNumberElement)(el)) {
          var style = typeof el.style === "string" ? formats2.number[el.style] : (0, icu_messageformat_parser_1.isNumberSkeleton)(el.style) ? el.style.parsedOptions : void 0;
          if (style && style.scale) {
            value = value * (style.scale || 1);
          }
          result.push({
            type: PART_TYPE.literal,
            value: formatters.getNumberFormat(locales2, style).format(value)
          });
          continue;
        }
        if ((0, icu_messageformat_parser_1.isTagElement)(el)) {
          var children = el.children, value_1 = el.value;
          var formatFn = values[value_1];
          if (!isFormatXMLElementFn(formatFn)) {
            throw new error_1.InvalidValueTypeError(value_1, "function", originalMessage);
          }
          var parts = formatToParts(children, locales2, formatters, formats2, values, currentPluralValue);
          var chunks = formatFn(parts.map(function(p) {
            return p.value;
          }));
          if (!Array.isArray(chunks)) {
            chunks = [chunks];
          }
          result.push.apply(result, chunks.map(function(c) {
            return {
              type: typeof c === "string" ? PART_TYPE.literal : PART_TYPE.object,
              value: c
            };
          }));
        }
        if ((0, icu_messageformat_parser_1.isSelectElement)(el)) {
          var opt = el.options[value] || el.options.other;
          if (!opt) {
            throw new error_1.InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);
          }
          result.push.apply(result, formatToParts(opt.value, locales2, formatters, formats2, values));
          continue;
        }
        if ((0, icu_messageformat_parser_1.isPluralElement)(el)) {
          var opt = el.options["=".concat(value)];
          if (!opt) {
            if (!Intl.PluralRules) {
              throw new error_1.FormatError('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n', error_1.ErrorCode.MISSING_INTL_API, originalMessage);
            }
            var rule = formatters.getPluralRules(locales2, { type: el.pluralType }).select(value - (el.offset || 0));
            opt = el.options[rule] || el.options.other;
          }
          if (!opt) {
            throw new error_1.InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);
          }
          result.push.apply(result, formatToParts(opt.value, locales2, formatters, formats2, values, value - (el.offset || 0)));
          continue;
        }
      }
      return mergeLiteral(result);
    }
    __name(formatToParts, "formatToParts");
    exports2.formatToParts = formatToParts;
  }
});

// node_modules/intl-messageformat/src/core.js
var require_core = __commonJS({
  "node_modules/intl-messageformat/src/core.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.IntlMessageFormat = void 0;
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var icu_messageformat_parser_1 = require_icu_messageformat_parser();
    var fast_memoize_1 = require_fast_memoize();
    var formatters_1 = require_formatters();
    function mergeConfig(c1, c2) {
      if (!c2) {
        return c1;
      }
      return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, c1 || {}), c2 || {}), Object.keys(c1).reduce(function(all, k) {
        all[k] = tslib_1.__assign(tslib_1.__assign({}, c1[k]), c2[k] || {});
        return all;
      }, {}));
    }
    __name(mergeConfig, "mergeConfig");
    function mergeConfigs(defaultConfig2, configs) {
      if (!configs) {
        return defaultConfig2;
      }
      return Object.keys(defaultConfig2).reduce(function(all, k) {
        all[k] = mergeConfig(defaultConfig2[k], configs[k]);
        return all;
      }, tslib_1.__assign({}, defaultConfig2));
    }
    __name(mergeConfigs, "mergeConfigs");
    function createFastMemoizeCache(store) {
      return {
        create: /* @__PURE__ */ __name(function() {
          return {
            get: /* @__PURE__ */ __name(function(key) {
              return store[key];
            }, "get"),
            set: /* @__PURE__ */ __name(function(key, value) {
              store[key] = value;
            }, "set")
          };
        }, "create")
      };
    }
    __name(createFastMemoizeCache, "createFastMemoizeCache");
    function createDefaultFormatters(cache) {
      if (cache === void 0) {
        cache = {
          number: {},
          dateTime: {},
          pluralRules: {}
        };
      }
      return {
        getNumberFormat: (0, fast_memoize_1.memoize)(function() {
          var _a3;
          var args = [];
          for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
          }
          return new ((_a3 = Intl.NumberFormat).bind.apply(_a3, tslib_1.__spreadArray([void 0], args, false)))();
        }, {
          cache: createFastMemoizeCache(cache.number),
          strategy: fast_memoize_1.strategies.variadic
        }),
        getDateTimeFormat: (0, fast_memoize_1.memoize)(function() {
          var _a3;
          var args = [];
          for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
          }
          return new ((_a3 = Intl.DateTimeFormat).bind.apply(_a3, tslib_1.__spreadArray([void 0], args, false)))();
        }, {
          cache: createFastMemoizeCache(cache.dateTime),
          strategy: fast_memoize_1.strategies.variadic
        }),
        getPluralRules: (0, fast_memoize_1.memoize)(function() {
          var _a3;
          var args = [];
          for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
          }
          return new ((_a3 = Intl.PluralRules).bind.apply(_a3, tslib_1.__spreadArray([void 0], args, false)))();
        }, {
          cache: createFastMemoizeCache(cache.pluralRules),
          strategy: fast_memoize_1.strategies.variadic
        })
      };
    }
    __name(createDefaultFormatters, "createDefaultFormatters");
    var IntlMessageFormat2 = exports2.IntlMessageFormat = /** @class */
    (function() {
      function IntlMessageFormat3(message, locales2, overrideFormats, opts) {
        if (locales2 === void 0) {
          locales2 = IntlMessageFormat3.defaultLocale;
        }
        var _this = this;
        this.formatterCache = {
          number: {},
          dateTime: {},
          pluralRules: {}
        };
        this.format = function(values) {
          var parts = _this.formatToParts(values);
          if (parts.length === 1) {
            return parts[0].value;
          }
          var result = parts.reduce(function(all, part) {
            if (!all.length || part.type !== formatters_1.PART_TYPE.literal || typeof all[all.length - 1] !== "string") {
              all.push(part.value);
            } else {
              all[all.length - 1] += part.value;
            }
            return all;
          }, []);
          if (result.length <= 1) {
            return result[0] || "";
          }
          return result;
        };
        this.formatToParts = function(values) {
          return (0, formatters_1.formatToParts)(_this.ast, _this.locales, _this.formatters, _this.formats, values, void 0, _this.message);
        };
        this.resolvedOptions = function() {
          var _a4;
          return {
            locale: ((_a4 = _this.resolvedLocale) === null || _a4 === void 0 ? void 0 : _a4.toString()) || Intl.NumberFormat.supportedLocalesOf(_this.locales)[0]
          };
        };
        this.getAst = function() {
          return _this.ast;
        };
        this.locales = locales2;
        this.resolvedLocale = IntlMessageFormat3.resolveLocale(locales2);
        if (typeof message === "string") {
          this.message = message;
          if (!IntlMessageFormat3.__parse) {
            throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
          }
          var _a3 = opts || {}, formatters = _a3.formatters, parseOpts = tslib_1.__rest(_a3, ["formatters"]);
          this.ast = IntlMessageFormat3.__parse(message, tslib_1.__assign(tslib_1.__assign({}, parseOpts), { locale: this.resolvedLocale }));
        } else {
          this.ast = message;
        }
        if (!Array.isArray(this.ast)) {
          throw new TypeError("A message must be provided as a String or AST.");
        }
        this.formats = mergeConfigs(IntlMessageFormat3.formats, overrideFormats);
        this.formatters = opts && opts.formatters || createDefaultFormatters(this.formatterCache);
      }
      __name(IntlMessageFormat3, "IntlMessageFormat");
      Object.defineProperty(IntlMessageFormat3, "defaultLocale", {
        get: /* @__PURE__ */ __name(function() {
          if (!IntlMessageFormat3.memoizedDefaultLocale) {
            IntlMessageFormat3.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale;
          }
          return IntlMessageFormat3.memoizedDefaultLocale;
        }, "get"),
        enumerable: false,
        configurable: true
      });
      IntlMessageFormat3.memoizedDefaultLocale = null;
      IntlMessageFormat3.resolveLocale = function(locales2) {
        if (typeof Intl.Locale === "undefined") {
          return;
        }
        var supportedLocales = Intl.NumberFormat.supportedLocalesOf(locales2);
        if (supportedLocales.length > 0) {
          return new Intl.Locale(supportedLocales[0]);
        }
        return new Intl.Locale(typeof locales2 === "string" ? locales2 : locales2[0]);
      };
      IntlMessageFormat3.__parse = icu_messageformat_parser_1.parse;
      IntlMessageFormat3.formats = {
        number: {
          integer: {
            maximumFractionDigits: 0
          },
          currency: {
            style: "currency"
          },
          percent: {
            style: "percent"
          }
        },
        date: {
          short: {
            month: "numeric",
            day: "numeric",
            year: "2-digit"
          },
          medium: {
            month: "short",
            day: "numeric",
            year: "numeric"
          },
          long: {
            month: "long",
            day: "numeric",
            year: "numeric"
          },
          full: {
            weekday: "long",
            month: "long",
            day: "numeric",
            year: "numeric"
          }
        },
        time: {
          short: {
            hour: "numeric",
            minute: "numeric"
          },
          medium: {
            hour: "numeric",
            minute: "numeric",
            second: "numeric"
          },
          long: {
            hour: "numeric",
            minute: "numeric",
            second: "numeric",
            timeZoneName: "short"
          },
          full: {
            hour: "numeric",
            minute: "numeric",
            second: "numeric",
            timeZoneName: "short"
          }
        }
      };
      return IntlMessageFormat3;
    })();
  }
});

// node_modules/intl-messageformat/index.js
var require_intl_messageformat = __commonJS({
  "node_modules/intl-messageformat/index.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
    var core_1 = require_core();
    tslib_1.__exportStar(require_formatters(), exports2);
    tslib_1.__exportStar(require_core(), exports2);
    tslib_1.__exportStar(require_error2(), exports2);
    exports2.default = core_1.IntlMessageFormat;
  }
});

// replace-modules:module
var createRequire;
var init_module = __esm({
  "replace-modules:module"() {
    init_process_global();
    createRequire = /* @__PURE__ */ __name(() => ({
      resolve() {
        throw new Error("createRequire.resolve is not supported");
      }
    }), "createRequire");
  }
});

// replace-modules:url
var URL2, fileURLToPath, url_default;
var init_url = __esm({
  "replace-modules:url"() {
    init_process_global();
    URL2 = globalThis.URL;
    fileURLToPath = /* @__PURE__ */ __name((url) => url, "fileURLToPath");
    url_default = { URL: URL2, fileURLToPath };
  }
});

// shared/esm-utils.js
function getModulePath(importMeta) {
  return url_default.fileURLToPath(importMeta.url);
}
var init_esm_utils = __esm({
  "shared/esm-utils.js"() {
    "use strict";
    init_process_global();
    init_module();
    init_url();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(getModulePath, "getModulePath");
  }
});

// shared/type-verifiers.js
function isObjectOfUnknownValues(val) {
  return typeof val === "object" && val !== null && !Array.isArray(val);
}
function isObjectOrArrayOfUnknownValues(val) {
  return typeof val === "object" && val !== null;
}
var init_type_verifiers = __esm({
  "shared/type-verifiers.js"() {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(isObjectOfUnknownValues, "isObjectOfUnknownValues");
    __name(isObjectOrArrayOfUnknownValues, "isObjectOrArrayOfUnknownValues");
  }
});

// replace-modules:/Users/alexrudenko/src/lighthouse/shared/localization/locales.js
var locales;
var init_locales = __esm({
  "replace-modules:/Users/alexrudenko/src/lighthouse/shared/localization/locales.js"() {
    init_process_global();
    locales = {};
  }
});

// shared/localization/format.js
function collectAllCustomElementsFromICU(icuElements, customElements = /* @__PURE__ */ new Map()) {
  for (const el of icuElements) {
    if (el.type === TYPE.literal || el.type === TYPE.pound) continue;
    customElements.set(el.value, el);
    if (el.type === TYPE.plural) {
      for (const option of Object.values(el.options)) {
        collectAllCustomElementsFromICU(option.value, customElements);
      }
    }
  }
  return customElements;
}
function _preformatValues(messageFormatter, values = {}, lhlMessage) {
  const customElements = collectAllCustomElementsFromICU(messageFormatter.getAst());
  const formattedValues = {};
  for (const [id, element] of customElements) {
    if (!(id in values)) {
      throw new Error(`ICU Message "${lhlMessage}" contains a value reference ("${id}") that wasn't provided`);
    }
    const value = values[id];
    if (element.type !== TYPE.number) {
      formattedValues[id] = value;
      continue;
    }
    if (typeof value !== "number") {
      throw new Error(`ICU Message "${lhlMessage}" contains a numeric reference ("${id}") but provided value was not a number`);
    }
    if (element.style === "milliseconds") {
      formattedValues[id] = Math.round(value / 10) * 10;
    } else if (element.style === "seconds" && id === "timeInMs") {
      formattedValues[id] = Math.round(value / 100) / 10;
    } else if (element.style === "bytes") {
      formattedValues[id] = value / 1024;
    } else {
      formattedValues[id] = value;
    }
  }
  for (const valueId of Object.keys(values)) {
    if (valueId in formattedValues) continue;
    if (valueId === "errorCode") {
      formattedValues.errorCode = values.errorCode;
      continue;
    }
    throw new Error(`Provided value "${valueId}" does not match any placeholder in ICU message "${lhlMessage}"`);
  }
  return formattedValues;
}
function escapeIcuMessage(message) {
  return message.replace(/'/g, `''`).replace(/\\{/g, `'{`).replace(/\\}/g, `'}`);
}
function formatMessage(message, values, locale) {
  message = escapeIcuMessage(message);
  const localeForMessageFormat = locale === "en-XA" || locale === "en-XL" ? "de-DE" : locale;
  const IntlMessageFormatCtor = import_intl_messageformat.default.IntlMessageFormat || import_intl_messageformat.default;
  const formatter = new IntlMessageFormatCtor(message, localeForMessageFormat, formats, {
    ignoreTag: true
  });
  const valuesForMessageFormat = _preformatValues(formatter, values, message);
  const formattedResult = formatter.format(valuesForMessageFormat);
  if (typeof formattedResult !== "string") {
    throw new Error("unexpected formatted result");
  }
  return formattedResult;
}
function _localizeIcuMessage(icuMessage, locale) {
  const localeMessages = _getLocaleMessages(locale);
  const localeMessage = localeMessages[icuMessage.i18nId];
  if (!localeMessage) {
    return icuMessage.formattedDefault;
  }
  return formatMessage(localeMessage.message, icuMessage.values, locale);
}
function getRendererFormattedStrings(locale) {
  const localeMessages = _getLocaleMessages(locale);
  const icuMessageIds = Object.keys(localeMessages).filter((f) => f.startsWith("report/renderer/report-utils.js"));
  const strings = {};
  for (const icuMessageId of icuMessageIds) {
    const { filename, key } = getIcuMessageIdParts(icuMessageId);
    if (!filename.endsWith("report-utils.js")) {
      throw new Error(`Unexpected message: ${icuMessageId}`);
    }
    strings[key] = localeMessages[icuMessageId].message;
  }
  return strings;
}
function isIcuMessage(icuMessageOrNot) {
  if (!isObjectOfUnknownValues(icuMessageOrNot)) {
    return false;
  }
  const { i18nId, values, formattedDefault } = icuMessageOrNot;
  if (typeof i18nId !== "string") {
    return false;
  }
  if (typeof formattedDefault !== "string") {
    return false;
  }
  if (values !== void 0) {
    if (!isObjectOfUnknownValues(values)) {
      return false;
    }
    for (const value of Object.values(values)) {
      if (typeof value !== "string" && typeof value !== "number") {
        return false;
      }
    }
  }
  return MESSAGE_I18N_ID_REGEX.test(i18nId);
}
function getFormatted(icuMessageOrRawString, locale) {
  if (isIcuMessage(icuMessageOrRawString)) {
    return _localizeIcuMessage(icuMessageOrRawString, locale);
  }
  if (typeof icuMessageOrRawString === "string") {
    return icuMessageOrRawString;
  }
  throw new Error("Attempted to format invalid icuMessage type");
}
function _formatPathAsString(pathInLHR) {
  let pathAsString = "";
  for (const property of pathInLHR) {
    if (/^[a-z]+$/i.test(property)) {
      if (pathAsString.length) pathAsString += ".";
      pathAsString += property;
    } else {
      if (/]|"|'|\s/.test(property)) throw new Error(`Cannot handle "${property}" in i18n`);
      pathAsString += `[${property}]`;
    }
  }
  return pathAsString;
}
function replaceIcuMessages(inputObject, locale) {
  function replaceInObject(subObject, icuMessagePaths2, pathInLHR = []) {
    if (!isObjectOrArrayOfUnknownValues(subObject)) return;
    for (const [property, possibleIcuMessage] of Object.entries(subObject)) {
      const currentPathInLHR = pathInLHR.concat([property]);
      if (isIcuMessage(possibleIcuMessage)) {
        const formattedString = getFormatted(possibleIcuMessage, locale);
        const messageInstancesInLHR = icuMessagePaths2[possibleIcuMessage.i18nId] || [];
        const currentPathAsString = _formatPathAsString(currentPathInLHR);
        messageInstancesInLHR.push(
          possibleIcuMessage.values ? { values: possibleIcuMessage.values, path: currentPathAsString } : currentPathAsString
        );
        subObject[property] = formattedString;
        icuMessagePaths2[possibleIcuMessage.i18nId] = messageInstancesInLHR;
      } else {
        replaceInObject(possibleIcuMessage, icuMessagePaths2, currentPathInLHR);
      }
    }
  }
  __name(replaceInObject, "replaceInObject");
  const icuMessagePaths = {};
  replaceInObject(inputObject, icuMessagePaths);
  return icuMessagePaths;
}
function _getLocaleMessages(locale) {
  const localeMessages = LOCALE_MESSAGES[locale];
  if (!localeMessages) {
    if (locale === DEFAULT_LOCALE) {
      return {};
    }
    throw new Error(`Unsupported locale '${locale}'`);
  }
  return localeMessages;
}
function getAvailableLocales() {
  const localesWithMessages = /* @__PURE__ */ new Set([...Object.keys(LOCALE_MESSAGES), DEFAULT_LOCALE]);
  return (
    /** @type {Array<LH.Locale>} */
    [...localesWithMessages].sort()
  );
}
function getIcuMessageIdParts(i18nMessageId) {
  if (!MESSAGE_I18N_ID_REGEX.test(i18nMessageId)) {
    throw Error(`"${i18nMessageId}" does not appear to be a valid ICU message id`);
  }
  const [filename, key] = i18nMessageId.split(" | ");
  return { filename, key };
}
var import_intl_messageformat, TYPE, LOCALE_MESSAGES, DEFAULT_LOCALE, CANONICAL_LOCALES, MESSAGE_I18N_ID_REGEX, formats;
var init_format = __esm({
  "shared/localization/format.js"() {
    "use strict";
    init_process_global();
    import_intl_messageformat = __toESM(require_intl_messageformat(), 1);
    init_esm_utils();
    init_type_verifiers();
    init_locales();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    TYPE = /** @type {const} */
    {
      literal: 0,
      argument: 1,
      number: 2,
      date: 3,
      time: 4,
      select: 5,
      plural: 6,
      pound: 7,
      tag: 8
    };
    LOCALE_MESSAGES = locales;
    DEFAULT_LOCALE = "en-US";
    CANONICAL_LOCALES = ["ar-XB.json", "ar.json", "bg.json", "ca.json", "cs.json", "da.json", "de.json", "el.json", "en-GB.json", "en-US.json", "en-XA.json", "en-XL.json", "es-419.json", "es.json", "fi.json", "fil.json", "fr.json", "he.json", "hi.json", "hr.json", "hu.json", "id.json", "it.json", "ja.json", "ko.json", "lt.json", "lv.json", "nl.json", "no.json", "pl.json", "pt-PT.json", "pt.json", "ro.json", "ru.json", "sk.json", "sl.json", "sr-Latn.json", "sr.json", "sv.json", "ta.json", "te.json", "th.json", "tr.json", "uk.json", "vi.json", "zh-HK.json", "zh-TW.json", "zh.json"].filter((basename) => basename.endsWith(".json") && !basename.endsWith(".ctc.json")).map((locale) => locale.replace(".json", "")).sort();
    MESSAGE_I18N_ID_REGEX = / | [^\s]+$/;
    formats = {
      number: {
        bytes: {
          maximumFractionDigits: 0
        },
        milliseconds: {
          maximumFractionDigits: 0
        },
        seconds: {
          // Force the seconds to the tenths place for limited output and ease of scanning
          minimumFractionDigits: 1,
          maximumFractionDigits: 1
        },
        extendedPercent: {
          // Force allow up to two digits after decimal place in percentages. (Intl.NumberFormat options)
          maximumFractionDigits: 2,
          style: "percent"
        }
      }
    };
    __name(collectAllCustomElementsFromICU, "collectAllCustomElementsFromICU");
    __name(_preformatValues, "_preformatValues");
    __name(escapeIcuMessage, "escapeIcuMessage");
    __name(formatMessage, "formatMessage");
    __name(_localizeIcuMessage, "_localizeIcuMessage");
    __name(getRendererFormattedStrings, "getRendererFormattedStrings");
    __name(isIcuMessage, "isIcuMessage");
    __name(getFormatted, "getFormatted");
    __name(_formatPathAsString, "_formatPathAsString");
    __name(replaceIcuMessages, "replaceIcuMessages");
    __name(_getLocaleMessages, "_getLocaleMessages");
    __name(getAvailableLocales, "getAvailableLocales");
    __name(getIcuMessageIdParts, "getIcuMessageIdParts");
  }
});

// node_modules/lighthouse-stack-packs/packs/amp.js
var require_amp = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/amp.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path fill="%230379c4" fill-rule="evenodd" d="m171.887 116.28-53.696 89.36h-9.728l9.617-58.227-30.2.047a4.852 4.852 0 0 1-4.855-4.855c0-1.152 1.07-3.102 1.07-3.102l53.52-89.254 9.9.043-9.86 58.317 30.413-.043a4.852 4.852 0 0 1 4.855 4.855c0 1.088-.427 2.044-1.033 2.854l.004.004zM128 0C57.306 0 0 57.3 0 128s57.306 128 128 128 128-57.306 128-128S198.7 0 128 0z"/></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can improve image loading by using WebP in the context of AMP. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "modern-image-formats": "Consider displaying all [`amp-img`](https://amp.dev/documentation/components/amp-img/?format=websites) components in WebP formats while specifying an appropriate fallback for other browsers. [Learn more](https://amp.dev/documentation/components/amp-img/#example:-specifying-a-fallback-image).",
      /** Additional description of a Lighthouse audit that tells the user how images are automatically lazy loaded for the AMP framewok. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "offscreen-images": "Ensure that you are using [`amp-img`](https://amp.dev/documentation/components/amp-img/?format=websites) for images to automatically lazy-load. [Learn more](https://amp.dev/documentation/guides-and-tutorials/develop/media_iframes_3p/?format=websites#images).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by reducing the amount of render blocking resources present on their page in the context of the AMP framework. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "render-blocking-resources": "Use tools such as [AMP Optimizer](https://github.com/ampproject/amp-toolbox/tree/master/packages/optimizer) to [server-side render AMP layouts](https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/server-side-rendering/).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by ensuring all the CSS written is supported by the AMP framework. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-css": "Refer to the [AMP documentation](https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/style_pages/) to ensure all styles are supported.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by using a runtime-managed animated image in the context of the AMP framework. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "efficient-animated-content": "For animated content, use [`amp-anim`](https://amp.dev/documentation/components/amp-anim/) to minimize CPU usage when the content is offscreen.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by using responsive images in the context of the AMP framework. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-responsive-images": "The [`amp-img`](https://amp.dev/documentation/components/amp-img/?format=websites) component supports the [`srcset`](https://web.dev/use-srcset-to-automatically-choose-the-right-image/) attribute to specify which image assets to use based on the screen size. [Learn more](https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/art_direction/)."
    };
    module2.exports = {
      id: "amp",
      title: "AMP",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/angular.js
var require_angular = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/angular.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250"><path fill="%23dd0031" d="M125 30 31.9 63.2l14.2 123.1L125 230l78.9-43.7 14.2-123.1z"/><path fill="%23c3002f" d="M125 30v22.2-.1V230l78.9-43.7 14.2-123.1L125 30z"/><path fill="%23fff" d="M125 52.1 66.8 182.6h21.7l11.7-29.2h49.4l11.7 29.2H183L125 52.1zm17 83.3h-34l17-40.9 17 40.9z"/></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can improve site loading performance by reducing the total bytes delivered by their page in the context of the Angular framework. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "total-byte-weight": "Apply [route-level code splitting](https://web.dev/route-level-code-splitting-in-angular/) to minimize the size of your JavaScript bundles. Also, consider precaching assets with the [Angular service worker](https://web.dev/precaching-with-the-angular-service-worker/).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their CSS and JS files in the context of the Angular framework. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-warning": "If you are using Angular CLI, ensure that builds are generated in production mode. [Learn more](https://angular.io/guide/deployment#enable-runtime-production-mode).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused Javascript files in the context of the Angular framework. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-javascript": "If you are using Angular CLI, include source maps in your production build to inspect your bundles. [Learn more](https://angular.io/guide/deployment#inspect-the-bundles).",
      /** Additional description of a Lighthouse audit that tells the user how they can use responsive images in the context of the Angular framework. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-responsive-images": "Consider using the `BreakpointObserver` utility in the Component Dev Kit (CDK) to manage image breakpoints. [Learn more](https://material.angular.io/cdk/layout/overview).",
      /** Additional description of a Lighthouse audit that tells the user how they can use preload to improve performance in the context of the Angular framework. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-rel-preload": "Preload routes ahead of time to speed up navigation. [Learn more](https://web.dev/route-preloading-in-angular/).",
      /** Additional description of a Lighthouse audit that tells the user and *how* they should reduce the size of the web page's DOM in the context of the Angular framework. 'Learn More' becomes link text to additional documentation. */
      "dom-size": "Consider virtual scrolling with the Component Dev Kit (CDK) if very large lists are being rendered. [Learn more](https://web.dev/virtualize-lists-with-angular-cdk/)."
    };
    module2.exports = {
      id: "angular",
      title: "Angular",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/drupal.js
var require_drupal = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/drupal.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 186.525 243.713"><path fill="%23009cde" d="M131.64 51.91C114.491 34.769 98.13 18.429 93.26 0c-4.87 18.429-21.234 34.769-38.38 51.91C29.16 77.613 0 106.743 0 150.434a93.263 93.263 0 1 0 186.525 0c0-43.688-29.158-72.821-54.885-98.524m-92 120.256c-5.719-.194-26.824-36.571 12.329-75.303l25.909 28.3a2.215 2.215 0 0 1-.173 3.306c-6.183 6.34-32.534 32.765-35.81 41.902-.675 1.886-1.663 1.815-2.256 1.795m53.624 47.943a32.075 32.075 0 0 1-32.076-32.075 33.423 33.423 0 0 1 7.995-21.187c5.784-7.072 24.077-26.963 24.077-26.963s18.012 20.183 24.033 26.896a31.368 31.368 0 0 1 8.046 21.254 32.076 32.076 0 0 1-32.075 32.075m61.392-52.015c-.691 1.512-2.26 4.036-4.376 4.113-3.773.138-4.176-1.796-6.965-5.923-6.122-9.06-59.551-64.9-69.545-75.699-8.79-9.498-1.238-16.195 2.266-19.704 4.395-4.403 17.224-17.225 17.224-17.225s38.255 36.296 54.19 61.096 10.444 46.26 7.206 53.342"/></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused CSS, in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-css-rules": "Consider removing unused CSS rules and only attach the needed `Drupal` libraries to the relevant page or component in a page. See the [`Drupal` documentation](https://www.drupal.org/docs/develop/theming-drupal/adding-assets-css-js-to-a-drupal-theme-via-librariesyml#define) for details. To identify attached libraries that are adding extraneous CSS, try running [code coverage](https://developer.chrome.com/docs/devtools/coverage) in Chrome DevTools. You can identify the theme/module responsible from the URL of the stylesheet when CSS aggregation is disabled in your `Drupal` site. Look out for themes/modules that have many stylesheets in the list which have a lot of red in code coverage. A theme/module should only attach a stylesheet library if it is actually used on the page.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve image loading by using webp in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "modern-image-formats": "Consider configuring [WebP image formats with a Convert image style](https://www.drupal.org/docs/core-modules-and-themes/core-modules/image-module/working-with-images#styles) on your site.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by lazy loading images that are initially offscreen in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "offscreen-images": "Consider configuring lazy load images in `Drupal`. The field formatters for images support `lazy` or `eager`.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve site loading performance by reducing the total bytes delivered by their page in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "total-byte-weight": "Consider using [Responsive Image Styles](https://www.drupal.org/documentation/modules/responsive_image) to reduce the size of images loaded on your page. If you are using `Views` to show multiple content items on a page, consider implementing pagination to limit the number of content items shown on a given page.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by reducing the amount of render blocking resources present on their page, in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "render-blocking-resources": "Consider using [a module](https://www.drupal.org/project/critical_css) to inline critical CSS and JavaScript, and use the defer attribute for non-critical CSS or JavaScript.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their CSS files in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-css": 'Ensure you have enabled "Aggregate CSS files" in the "Administration » Configuration » Development" page.',
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their Javascript files in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-javascript": 'Ensure you have enabled "Aggregate JavaScript files" in the "Administration » Configuration » Development" page.',
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by encoding animated images as video, in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "efficient-animated-content": "Consider uploading your `GIF` to a service which will make it available to embed as an HTML5 video.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused Javascript files in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-javascript": "Consider removing unused JavaScript assets and only attach the needed `Drupal` libraries to the relevant page or component in a page. See the [Drupal documentation](https://www.drupal.org/docs/develop/theming-drupal/adding-assets-css-js-to-a-drupal-theme-via-librariesyml#define) for details. To identify attached libraries that are adding extraneous JavaScript, try running [code coverage](https://developer.chrome.com/docs/devtools/coverage) in Chrome DevTools. You can identify the theme/module responsible from the URL of the script when JavaScript aggregation is disabled in your `Drupal` site. Look out for themes/modules that have many scripts in the list which have a lot of red in code coverage. A theme/module should only attach a script library if it is actually used on the page.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve their site by enabling long caching in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-long-cache-ttl": 'Set the "Browser and proxy cache maximum age" in the "Administration » Configuration » Development" page. Read about [`Drupal` cache and optimizing for performance](https://www.drupal.org/docs/8/api/cache-api/cache-api).',
      /** Additional description of a Lighthouse audit that tells the user how they can improve site performance by optimizing images, in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-optimized-images": "Consider using [a module](https://www.drupal.org/project/project_module?f%5B0%5D=&f%5B1%5D=&f%5B2%5D=im_vid_3%3A123&f%5B3%5D=&f%5B4%5D=sm_field_project_type%3Afull&f%5B5%5D=&f%5B6%5D=&text=image&solrsort=iss_project_release_usage+desc&op=Search) that automatically optimizes and reduces the size of images uploaded through the site while retaining quality. Also, ensure you are using the native [Responsive Image Styles](https://www.drupal.org/documentation/modules/responsive_image) provided from `Drupal` for all images rendered on the site.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Drupal`. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-text-compression": "Text-based resources should be served with compression (gzip, deflate or brotli) to minimize total network bytes. Consider using a CDN that natively supports this, or configure the web server to perform this operation. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/text-compression).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by using responsive images in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-responsive-images": "Ensure that you are using the native [Responsive Image Styles](https://www.drupal.org/documentation/modules/responsive_image) provided from `Drupal`. Use the Responsive Image Styles when rendering image fields through view modes, views, or images uploaded through the WYSIWYG editor.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Drupal`. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "prioritize-lcp-image": "If the LCP element is dynamically added to the page, you should optimize the image in order to improve LCP. [Learn more](https://www.smashingmagazine.com/2023/08/methods-improving-drupal-largest-contentful-paint-core-web-vital/).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve the time to first byte speed metric, in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "server-response-time": "Offload traffic with one or more `Drupal` caching modules such as `Internal Page Cache`, `Internal Dynamic Page Cache`, and `BigPipe`. Couple these with a CDN to further improve response time. Your hosting servers should make use of PHP OPcache. Consider using memory-caching such as Redis or Memcached to reduce database query times. Lastly use performant themes, modules, and faster servers to lower server response time.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Drupal`. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "redirects": "Redirects introduce additional delays before the page can be loaded. If the [Redirect](https://www.drupal.org/project/redirect) module is installed, review if unnecessary redirects can be removed. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/redirects).",
      /** Additional description of a Lighthouse audit that tells the user how they can add preconnect or dns-prefetch resource hints, in the context of the `Drupal` CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-rel-preconnect": "`Preconnect` or `dns-prefetch` resource hints can be added by installing and configuring [a module](https://www.drupal.org/project/project_module?f%5B0%5D=&f%5B1%5D=&f%5B2%5D=&f%5B3%5D=&f%5B4%5D=sm_field_project_type%3Afull&f%5B5%5D=&f%5B6%5D=&text=Preconnect&solrsort=score+desc&op=Search) that provides facilities for user agent resource hints."
    };
    module2.exports = {
      id: "drupal",
      title: "Drupal",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/ezoic.js
var require_ezoic = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/ezoic.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 82 82"><path fill="%235FA624" fill-rule="evenodd" d="M81.37 48.117C85.301 25.821 70.413 4.56 48.117.63 25.821-3.3 4.56 11.586.63 33.883-3.3 56.178 11.586 77.44 33.883 81.37 56.18 85.301 77.44 70.412 81.37 48.117Zm-8.935-14.17c2.77 12.357-1.942 25.721-12.96 33.436-14.57 10.203-34.656 6.662-44.859-7.909a32.434 32.434 0 0 1-2.869-4.98l28.7-20.097a6.53 6.53 0 1 0-3.744-5.347L9.564 48.054c-2.768-12.359 1.943-25.724 12.96-33.439 14.572-10.203 34.656-6.662 44.86 7.91a32.349 32.349 0 0 1 2.868 4.98L41.554 47.6a6.53 6.53 0 1 0 3.746 5.35l27.136-19.003Z"/></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Remove Unused CSS is a setting name. */
      "unused-css-rules": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Remove Unused CSS` to help with this issue. It will identify the CSS classes that are actually used on each page of your site, and remove any others to keep the file size small.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Next-Gen Formats is a setting name.*/
      "modern-image-formats": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Next-Gen Formats` to convert images to WebP.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Lazy Load Images is a setting name.*/
      "offscreen-images": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Lazy Load Images` to defer loading off-screen images until they are needed.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Script Delay is a setting name.*/
      "render-blocking-resources": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Script Delay` to defer non-critical JS.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Minify CSS is a setting name.*/
      "unminified-css": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Minify CSS` to automatically minify your CSS to reduce network payload sizes.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Minify Javascript is a setting name.*/
      "unminified-javascript": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Minify Javascript` to automatically minify your JS to reduce network payload sizes.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Efficient Static Cache Policy is a setting name.*/
      "uses-long-cache-ttl": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Efficient Static Cache Policy` to set recommended values in the caching header for static assests.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Next-Gen Formats is a setting name.*/
      "uses-optimized-images": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Next-Gen Formats` to convert images to WebP.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Resize Images is a setting name.*/
      "uses-responsive-images": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Resize Images` to resize images to a device appropriate size, reducing network payload sizes.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Cloud Caching is Ezoic's CDN.*/
      "server-response-time": "Use [Ezoic Cloud Caching](https://pubdash.ezoic.com/leap/caching) to cache your content across our world wide network, improving time to first byte.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Pre-Connect Origins is a setting name.*/
      "uses-rel-preconnect": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Pre-Connect Origins` to automatically add `preconnect` resource hints to establish early connections to important third-party origins.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Preload Fonts and Preload Background Images are setting names.*/
      "uses-rel-preload": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Preload Fonts` and `Preload Background Images` to add `preload` links to prioritize fetching resources that are currently requested later in page load.",
      /** Additional description of a Lighthouse audit for a third-party framework called `Ezoic`. This is displayed after a user expands the section to see more. No character length limits. Ezoic Leap is Ezoic's site speed improvement toolset. Optimize Fonts is a setting name.*/
      "font-display": "Use [Ezoic Leap](https://pubdash.ezoic.com/leap) and enable `Optimize Fonts` to automatically leverage the `font-display` CSS feature to ensure text is user-visible while webfonts are loading."
    };
    module2.exports = {
      id: "ezoic",
      title: "Ezoic",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/gatsby.js
var require_gatsby = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/gatsby.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28"><circle cx="14" cy="14" r="14" fill="%23639"/><path fill="%23fff" d="M6.2 21.8C4.1 19.7 3 16.9 3 14.2L13.9 25c-2.8-.1-5.6-1.1-7.7-3.2zm10.2 2.9L3.3 11.6C4.4 6.7 8.8 3 14 3c3.7 0 6.9 1.8 8.9 4.5l-1.5 1.3C19.7 6.5 17 5 14 5c-3.9 0-7.2 2.5-8.5 6L17 22.5c2.9-1 5.1-3.5 5.8-6.5H18v-2h7c0 5.2-3.7 9.6-8.6 10.7z"/></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can remove unused CSS rules by configuring the Gatsby plugin `gatsby-plugin-purgecss` which sets up PurgeCSS */
      "unused-css-rules": "Use the `PurgeCSS` `Gatsby` plugin to remove unused rules from stylesheets. [Learn more](https://purgecss.com/plugins/gatsby.html).",
      /** Additional description of a Lighthouse audit that tells the user to use the gatsby-plugin-image component to automatically optimize image format */
      "modern-image-formats": "Use the `gatsby-plugin-image` component instead of `<img>` to automatically optimize image format. [Learn more](https://www.gatsbyjs.com/docs/how-to/images-and-media/using-gatsby-plugin-image).",
      /** Additional description of a Lighthouse audit that tells the user to defer loading images which are not shown on screen using the gatsby-plugin-image component */
      "offscreen-images": "Use the `gatsby-plugin-image` component instead of `<img>` to automatically lazy-load images. [Learn more](https://www.gatsbyjs.com/docs/how-to/images-and-media/using-gatsby-plugin-image).",
      /** Additional description of a Lighthouse audit that tells the user to use gatsby-script to defer loading of non-critical third-party libraries */
      "render-blocking-resources": "Use the `Gatsby Script API` to defer loading of non-critical third-party scripts. [Learn more](https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-script/).",
      /** Additional description of a Lighthouse audit that tells the user to use Webpack Bundle Analyzer to discover JavaScript code that is not used */
      "unused-javascript": "Use `Webpack Bundle Analyzer` to detect unused JavaScript code. [Learn more](https://www.gatsbyjs.com/plugins/gatsby-plugin-webpack-bundle-analyser-v2/)",
      /** Additional description of a Lighthouse audit that tells the user to enable caching for assets (e.g. images) and artifacts that don't change between deployments */
      "uses-long-cache-ttl": "Configure caching for immutable assets. [Learn more](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/caching/).",
      /** Additional description of a Lighthouse audit that tells the user to use the gatsby-plugin-image component to adjust image quality */
      "uses-optimized-images": "Use the `gatsby-plugin-image` component instead of `<img>` to adjust image quality. [Learn more](https://www.gatsbyjs.com/docs/how-to/images-and-media/using-gatsby-plugin-image).",
      /** Additional description of a Lighthouse audit that tells the user to serve responsive images using the gatsby-plugin-image component with appropriate `sizes` set */
      "uses-responsive-images": "Use the `gatsby-plugin-image` component to set appropriate `sizes`. [Learn more](https://www.gatsbyjs.com/docs/how-to/images-and-media/using-gatsby-plugin-image).",
      /** Additional description of a Lighthouse audit that tells the user to use the gatsby-plugin-image component to automatically preload LCP images. "prop" is short for "property" */
      "prioritize-lcp-image": "Use the `gatsby-plugin-image` component and set the `loading` prop to `eager`. [Learn more](https://www.gatsbyjs.com/docs/reference/built-in-components/gatsby-plugin-image#shared-props)."
    };
    module2.exports = {
      id: "gatsby",
      title: "Gatsby",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/joomla.js
var require_joomla = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/joomla.js"(exports2, module2) {
    "use strict";
    init_process_global();
    /**
     * @license Copyright 2020 The Lighthouse Authors. All Rights Reserved.
     * Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
     * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
     */
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" viewBox="0 0 256 258"><path fill="%23F9AE41" d="M255.7 35.6a33.7 33.7 0 0 0-67-4.8l-.4-.2c-27.6-12.4-50.8 9.6-50.8 9.6l-61.4 61.7 24.3 23.4 49.4-48.6c23-23 35.6-7.4 35.6-7.4 17.4 14.6.6 32 .6 32l24.9 24c20.3-22 21.5-41.1 15.3-56.3a33.7 33.7 0 0 0 29.5-33.4"/><path fill="%23EE4035" d="m226.5 190.5.2-.3c12.4-27.6-9.6-50.8-9.6-50.8L155.4 78l-23.3 24.3 48.5 49.4c23 23 7.5 35.6 7.5 35.6-14.7 17.4-32 .6-32 .6l-24 24.9c21.9 20.3 41 21.5 56.2 15.3a33.7 33.7 0 1 0 38.2-37.6"/><path fill="%234F91CD" d="m156 133-49.5 48.6c-23 23-35.6 7.4-35.6 7.4-17.4-14.6-.6-32-.6-32l-24.9-24c-20.3 22-21.4 41.1-15.3 56.3a33.7 33.7 0 1 0 37.6 38.2l.3.2c27.6 12.4 50.8-9.6 50.8-9.6l61.4-61.7-24.3-23.4"/><path fill="%237AC043" d="M75.7 106.6c-23-23-7.4-35.6-7.4-35.6 14.6-17.4 32-.6 32-.6l24-24.9c-22-20.3-41-21.5-56.3-15.3a33.7 33.7 0 1 0-38.2 37.6l-.2.3C17.2 95.7 39.2 119 39.2 119l61.7 61.4 23.4-24.3-48.6-49.4"/\
></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused CSS, in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-css-rules": "Consider reducing, or switching, the number of [Joomla extensions](https://extensions.joomla.org/) loading unused CSS in your page. To identify extensions that are adding extraneous CSS, try running [code coverage](https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage) in Chrome DevTools. You can identify the theme/plugin responsible from the URL of the stylesheet. Look out for plugins that have many stylesheets in the list which have a lot of red in code coverage. A plugin should only enqueue a stylesheet if it is actually used on the page.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve image loading by using webp in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "modern-image-formats": "Consider using a [plugin](https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=webp) or service that will automatically convert your uploaded images to the optimal formats.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by lazy loading images that are initially offscreen in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "offscreen-images": "Install a [lazy-load Joomla plugin](https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=lazy%20loading) that provides the ability to defer any offscreen images, or switch to a template that provides that functionality. Starting with Joomla 4.0, all new images will [automatically](https://github.com/joomla/joomla-cms/pull/30748) get the `loading` attribute from the core.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve site loading performance by reducing the total bytes delivered by their page in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "total-byte-weight": "Consider showing excerpts in your article categories (e.g. via the read more link), reducing the number of articles shown on a given page, breaking your long posts into multiple pages, or using a plugin to lazy-load comments.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by reducing the amount of render blocking resources present on their page, in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "render-blocking-resources": "There are a number of Joomla plugins that can help you [inline critical assets](https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=performance) or [defer less important resources](https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=performance). Beware that optimizations provided by these plugins may break features of your templates or plugins, so you will need to test these thoroughly.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their CSS files in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-css": "A number of [Joomla extensions](https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=performance) can speed up your site by concatenating, minifying, and compressing your css styles. There are also templates that provide this functionality.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their Javascript files in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-javascript": "A number of [Joomla extensions](https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=performance) can speed up your site by concatenating, minifying, and compressing your scripts. There are also templates that provide this functionality.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by encoding animated images as video, in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "efficient-animated-content": "Consider uploading your GIF to a service which will make it available to embed as an HTML5 video.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused Javascript files in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-javascript": "Consider reducing, or switching, the number of [Joomla extensions](https://extensions.joomla.org/) loading unused JavaScript in your page. To identify plugins that are adding extraneous JS, try running [code coverage](https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage) in Chrome DevTools. You can identify the extension responsible from the URL of the script. Look out for extensions that have many scripts in the list which have a lot of red in code coverage. An extension should only enqueue a script if it is actually used on the page.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve their site by enabling long caching in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-long-cache-ttl": "Read about [Browser Caching in Joomla](https://docs.joomla.org/Cache).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve site performance by optimizing images, in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-optimized-images": "Consider using an [image optimization plugin](https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=performance) that compresses your images while retaining quality.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance via enabling text compression in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-text-compression": "You can enable text compression by enabling Gzip Page Compression in Joomla (System > Global configuration > Server).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by using responsive images in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-responsive-images": "Consider using a [responsive images plugin](https://extensions.joomla.org/instant-search/?jed_live%5Bquery%5D=responsive%20images) to use responsive images in your content.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve the server-response-time speed metric, in the context of the Joomla CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "server-response-time": "Templates, extensions, and server specifications all contribute to server response time. Consider finding a more optimized template, carefully selecting an optimization extension, and/or upgrading your server."
    };
    module2.exports = {
      id: "joomla",
      title: "Joomla",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/magento.js
var require_magento = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/magento.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23f26322" viewBox="0 0 1000 1000"><path d="M916.9 267.4v465.3l-111.3 67.4V331.4l-1.5-.9-303.9-189-304.6 189.2-1.2.8V799L83.1 732.6V267.4l.7-.4L500.3 10l416 257 .6.4zM560.7 468.5v383.3L500.3 890l-61-38.2V306.7l-136 84.3v476.6l197 122.5 196.4-122.5V391l-136-84.3v161.8z"/></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can improve image loading by using webp in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "modern-image-formats": "Consider searching the [Magento Marketplace](https://marketplace.magento.com/catalogsearch/result/?q=webp) for a variety of third-party extensions to leverage newer image formats.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by lazy loading images that are initially offscreen in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "offscreen-images": "Consider modifying your product and catalog templates to make use of the web platform's [lazy loading](https://web.dev/native-lazy-loading) feature.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve site loading performance by disabling JS bundling in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "disable-bundling": "Disable Magento's built-in [JavaScript bundling and minification](https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/js-bundling.html), and consider using [baler](https://github.com/magento/baler/) instead.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their CSS files in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-css": `Enable the "Minify CSS Files" option in your store's Developer settings. [Learn more](https://devdocs.magento.com/guides/v2.3/performance-best-practices/configuration.html?itm_source=devdocs&itm_medium=search_page&itm_campaign=federated_search&itm_term=minify%20css%20files).`,
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their Javascript files in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-javascript": "Use [Terser](https://www.npmjs.com/package/terser) to minify all JavaScript assets from static content deployment, and disable the built-in minification feature.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused Javascript files in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-javascript": "Disable Magento's built-in [JavaScript bundling](https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/js-bundling.html).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve site performance by optimizing images, in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-optimized-images": "Consider searching the [Magento Marketplace](https://marketplace.magento.com/catalogsearch/result/?q=optimize%20image) for a variety of third party extensions to optimize images.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve the time to first byte speed metric, in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "server-response-time": "Use Magento's [Varnish integration](https://devdocs.magento.com/guides/v2.3/config-guide/varnish/config-varnish.html).",
      /** Additional description of a Lighthouse audit that tells the user how they can add preconnect or dns-prefetch resource hints, in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-rel-preconnect": "Preconnect or dns-prefetch resource hints can be added by [modifying a themes's layout](https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/xml-manage.html).",
      /** Additional description of a Lighthouse audit that tells the user how they can add preload tags, in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-rel-preload": "`<link rel=preload>` tags can be added by [modifying a themes's layout](https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/xml-manage.html).",
      /** Additional description of a Lighthouse audit that tells the user how they can minimize critical request chains, in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "critical-request-chains": "If you are not bundling your JavaScript assets, consider using [baler](https://github.com/magento/baler).",
      /** Additional description of a Lighthouse audit that tells the user how they can specify font-display, in the context of the Magento platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "font-display": "Specify `@font-display` when [defining custom fonts](https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/css-topics/using-fonts.html)."
    };
    module2.exports = {
      id: "magento",
      title: "Magento",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/next.js
var require_next = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/next.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 207 124"><path fill="%23000" d="M48.942 32.632h38.96v3.082h-35.39v23.193H85.79v3.082H52.513v25.464h35.794v3.081H48.942V32.632Zm42.45 0h4.139l18.343 25.464 18.749-25.464L158.124.287l-41.896 60.485 21.59 29.762h-4.302l-19.642-27.086L94.15 90.534h-4.22l21.751-29.762-20.29-28.14Zm47.967 3.082v-3.082h44.397v3.082h-20.453v54.82h-3.571v-54.82h-20.373ZM.203 32.632h4.464l61.557 91.671-25.439-33.769L3.936 37.011l-.162 53.523H.203zm183.194 53.891c.738 0 1.276-.563 1.276-1.29 0-.727-.538-1.29-1.276-1.29-.73 0-1.277.563-1.277 1.29 0 .727.547 1.29 1.277 1.29Zm3.509-3.393c0 2.146 1.555 3.549 3.822 3.549 2.414 0 3.874-1.446 3.874-3.956v-8.837h-1.946v8.828c0 1.394-.704 2.138-1.946 2.138-1.112 0-1.867-.692-1.893-1.722h-1.911Zm10.24-.113c.14 2.233 2.007 3.662 4.787 3.662 2.97 0 4.83-1.498 4.83-3.887 0-1.878-1.06-2.917-3.632-3.514l-1.38-.338c-1.634-.38-2.294-.891-2.294-1.783 0-1.125 1.025-1.86 2.563-1.86 1.459 0 2.466.\
718 2.649 1.869h1.893c-.113-2.103-1.971-3.583-4.516-3.583-2.737 0-4.56 1.48-4.56 3.704 0 1.835 1.033 2.926 3.3 3.454l1.616.39c1.659.389 2.388.96 2.388 1.912 0 1.108-1.146 1.913-2.71 1.913-1.676 0-2.84-.753-3.005-1.939h-1.928Z"/></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can remove unusused CSS rules by configuring a plugin named PurgeCSS. */
      "unused-css-rules": "Consider setting up `PurgeCSS` in `Next.js` configuration to remove unused rules from stylesheets. [Learn more](https://purgecss.com/guides/next.html).",
      /** Additional description of a Lighthouse audit that tells the user to use the next/image component to automatically optimize image format. */
      "modern-image-formats": "Use the `next/image` component instead of `<img>` to automatically optimize image format. [Learn more](https://nextjs.org/docs/app/getting-started/images).",
      /** Additional description of a Lighthouse audit that tells the user to defer loading images which are not shown on screen using the next/image component. */
      "offscreen-images": "Use the `next/image` component instead of `<img>` to automatically lazy-load images. [Learn more](https://nextjs.org/docs/app/getting-started/images).",
      /** Additional description of a Lighthouse audit that tells the user to use next/script to defer loading of non-critical third-party libraries. */
      "render-blocking-resources": "Use the `next/script` component to defer loading of non-critical third-party scripts. [Learn more](https://nextjs.org/docs/app/guides/scripts).",
      /** Additional description of a Lighthouse audit that tells the user to use Webpack Bundle Analyzer to discover JavaScript code that is not used. */
      "unused-javascript": "Use `Webpack Bundle Analyzer` to detect unused JavaScript code. [Learn more](https://github.com/vercel/next.js/tree/canary/packages/next-bundle-analyzer)",
      /** Additional description of a Lighthouse audit that tells the user to enable caching for assets (e.g. images) and server-side rendered (SSR) pages that don't change between deployments. */
      "uses-long-cache-ttl": "Configure caching for immutable assets and `Server-side Rendered` (SSR) pages. [Learn more](https://nextjs.org/docs/13/pages/building-your-application/deploying/production-checklist#caching).",
      /** Additional description of a Lighthouse audit that tells the user to use the next/image component to adjust image quality. */
      "uses-optimized-images": "Use the `next/image` component instead of `<img>` to adjust image quality. [Learn more](https://nextjs.org/docs/app/getting-started/images).",
      /** Additional description of a Lighthouse audit that tells the user to enable compression (gzip, brotli) on their servers. */
      "uses-text-compression": "Enable compression on your Next.js server. [Learn more](https://nextjs.org/docs/api-reference/next.config.js/compression).",
      /** Additional description of a Lighthouse audit that tells the user to serve responsive images using the next/image component with appropriate `sizes` set. */
      "uses-responsive-images": "Use the `next/image` component to set the appropriate `sizes`. [Learn more](https://nextjs.org/docs/api-reference/next/image#sizes).",
      /** Additional description of a Lighthouse audit that tells the user to analyze the performance of their applications using Next.js Analytics. */
      "user-timings": "Consider using `Next.js Analytics` to measure your app's real-world performance. [Learn more](https://nextjs.org/docs/pages/guides/analytics).",
      /** Additional description of a Lighthouse audit that tells the user to use the next/image component to automatically preload LCP images. */
      "prioritize-lcp-image": 'Use the `next/image` component and set "priority" to true to preload LCP image. [Learn more](https://nextjs.org/docs/api-reference/next/image#priority).',
      /** Additional description of a Lighthouse audit that tells the user to use the next/image component to make sure `width` and `height` of image elements are always specified. */
      "unsized-images": "Use the `next/image` component to make sure images are always sized appropriately. [Learn more](https://nextjs.org/docs/api-reference/next/image#width)."
    };
    module2.exports = {
      id: "next.js",
      title: "Next.js",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/nitropack.js
var require_nitropack = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/nitropack.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="142" height="54"><g fill="none" fill-rule="evenodd"><g fill="%231B004E"><path d="M19.486 53.24h-3.891L4.682 39.247v13.936H0V32.946h5.444l9.475 12.398V32.946h4.567zM21.346 32.94h4.647v3.57h-4.647v-3.57Zm0 5.477h4.647V53.18h-4.647V38.417ZM40.569 53.183H36c-3.408 0-4.991-1.625-4.991-4.697v-6.22h-3.777V38.42h3.777v-5.474h4.598v5.474h4.958v3.846h-4.958v4.588c0 1.597.477 2.252 2.197 2.252h2.764v4.077ZM46.688 53.183h-4.57V38.42h4.57v2.308c.31-.686 1.351-2.336 4.425-2.336h3.13v4.56h-4.004c-2.593 0-3.55.967-3.55 3.019v7.212ZM70.612 45.802c0 4.56-3.409 7.75-8.01 7.75s-8.006-3.19-8.006-7.75c0-4.56 3.408-7.755 8.006-7.755 4.598 0 8.01 3.195 8.01 7.755Zm-4.599 0c0-2.14-1.35-3.733-3.408-3.733-2.057 0-3.44 1.594-3.44 3.733 0 2.139 1.41 3.733 3.44 3.733 2.03 0 3.408-1.598 3.408-3.733ZM72.47 32.946h11.7c4.543 0 7.192 2.28 7.192 6.526 0 4.247-2.649 6.577-7.191 6.577h-6.935v7.125h-4.765V32.946Zm4.766 4.218v4.676h6.485c1.832\
 0 2.736-.883 2.736-2.34 0-1.565-.904-2.336-2.736-2.336h-6.485ZM102.662 51.016c-.254.485-1.636 2.48-4.71 2.48-3.665 0-6.627-2.906-6.627-7.694 0-4.789 2.962-7.667 6.656-7.667 2.962 0 4.372 1.851 4.626 2.336v-2.05h4.567v14.762h-4.512v-2.167Zm-3.327-8.932c-2.03 0-3.384 1.594-3.384 3.733 0 2.14 1.354 3.733 3.384 3.733s3.327-1.597 3.327-3.733-1.298-3.733-3.327-3.733ZM119.184 43.578a2.98 2.98 0 0 0-2.749-1.494c-1.918 0-3.13 1.594-3.13 3.733 0 2.14 1.24 3.758 3.158 3.758 1.807 0 2.625-1.168 2.764-1.51h4.4c-.143 2.052-2.116 5.5-7.275 5.5-4.286 0-7.641-3.078-7.641-7.75 0-4.673 3.328-7.755 7.585-7.755 5.159 0 7.105 3.392 7.33 5.53l-4.442-.012ZM129.712 46.6v6.577h-4.567V32.194h4.567v11.998l5.838-5.784h5.751l-6.994 6.811 7.362 7.952h-5.921z"/></g><g fill="%2325F5CE"><path d="M49.159 4.65c12.832 0 23.235 10.41 23.235 23.251h4.648C77.042 12.491 64.558 0 49.159 0c-15.4 0-27.883 12.492-27.883 27.901h4.647c0-12.841 10.403-23.25 23.236-23.25Z"/><path d="M44.852 25.793a3.632 3.632 0 0 1 2.6-5.097L63.8 16\
.951 50.426 27.09a3.626 3.626 0 0 1-5.574-1.296Z"/></g></g></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Reduce Unused CSS` is the name of a feature and becomes link text to additional documentation.*/
      "unused-css-rules": "Enable [`Reduce Unused CSS`](https://support.nitropack.io/hc/en-us/articles/360020418457-Reduce-Unused-CSS) to remove CSS rules that are not applicable to this page.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Image Optimization` is the name of a feature and becomes link text to additional documentation. `WebP` is the name of a standardized image format for the web.*/
      "modern-image-formats": "Use [`Image Optimization`](https://support.nitropack.io/hc/en-us/articles/16547237162513) to automatically convert your images to WebP.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Automatic Image Lazy Loading` is the name of a feature and becomes link text to additional documentation.*/
      "offscreen-images": "Defer offscreen images by enabling [`Automatic Image Lazy Loading`](https://support.nitropack.io/hc/en-us/articles/12457493524369-NitroPack-Lazy-Loading-Feature-for-Images).",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Remove render-blocking resources` is the name of a feature and becomes link text to additional documentation.*/
      "render-blocking-resources": "Enable [`Remove render-blocking resources`](https://support.nitropack.io/hc/en-us/articles/13820893500049-How-to-Deal-with-Render-Blocking-Resources-in-NitroPack) in NitroPack for faster initial load times.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Minify resources` is the name of a feature and becomes link text to additional documentation.*/
      "unminified-css": "Enable [`Minify resources`](https://support.nitropack.io/hc/en-us/articles/360061059394-Minify-Resources) in your Caching settings to reduce the size of your CSS, HTML, and JavaScript files for faster load times.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Minify resources` is the name of a feature and becomes link text to additional documentation.*/
      "unminified-javascript": "Enable [`Minify resources`](https://support.nitropack.io/hc/en-us/articles/360061059394-Minify-Resources) in your Caching settings to reduce the size of your JS, HTML, and CSS files for faster load times.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Delayed Scripts` is the name of a feature and becomes link text to additional documentation.*/
      "unused-javascript": "Configure [`Delayed Scripts`](https://support.nitropack.io/hc/en-us/articles/1500002600942-Delayed-Scripts) in NitroPack to delay loading of scripts until they are needed.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Improve Server Response Time` is the name of a feature and becomes link text to additional documentation.*/
      "uses-long-cache-ttl": "Go to the [`Improve Server Response Time`](https://support.nitropack.io/hc/en-us/articles/1500002321821-Improve-Server-Response-Time) feature in the `Caching` menu and adjust your page cache expiration time to improve loading times and user experience.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Image Optimization` is the name of a feature and becomes link text to additional documentation.*/
      "uses-optimized-images": "Automatically compress, optimize, and convert your images into WebP by enabling the [`Image Optimization`](https://support.nitropack.io/hc/en-us/articles/14177271695121-How-to-serve-images-in-next-gen-formats-using-NitroPack) setting.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Adaptive Image Sizing` is the name of a feature and becomes link text to additional documentation.*/
      "uses-responsive-images": "Enable [`Adaptive Image Sizing`](https://support.nitropack.io/hc/en-us/articles/10123833029905-How-to-Enable-Adaptive-Image-Sizing-For-Your-Site) to preemptively optimize your images and make them match the dimensions of the containers they’re displayed in across all devices.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `HTML Lazy Load` is the name of a feature.*/
      "dom-size": "Contact your account manager to enable [`HTML Lazy Load`](https://support.nitropack.io/hc/en-us/articles/17144942904337). Configuring it will prioritize and optimize your page rendering performance.",
      /** Additional description of a Lighthouse audit for a third-party framework called `NitroPack`. This is displayed after a user expands the section to see more. No character length limits. `Override Font Rendering Behavior` is the name of a feature and becomes link text to additional documentation.*/
      "font-display": "Use the [`Override Font Rendering Behavior`](https://support.nitropack.io/hc/en-us/articles/16547358865041) option in NitroPack to set a desired value for the CSS font-display rule."
    };
    module2.exports = {
      id: "nitropack",
      title: "NitroPack",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/nuxt.js
var require_nuxt = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/nuxt.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 512 512"><path fill="%2300DC82" d="M281.44 397.667h156.88c5.006 0 9.798-1.759 14.133-4.244.336-2.481 8.805-5.596 11.307-9.894 2.502-4.297 4.242-9.173 4.24-14.134-.002-4.962-1.734-9.836-4.24-14.131l-106-182.321c-2.502-4.297-5.559-7.413-9.893-9.894-4.335-2.48-10.542-4.24-15.547-4.24-5.005 0-9.799 1.76-14.133 4.24-4.335 2.481-7.392 5.597-9.894 9.894l-26.853 46.64-53.707-90.457c-2.504-4.296-5.557-8.823-9.893-11.303-4.336-2.481-9.127-2.827-14.133-2.827-5.006 0-9.798.346-14.134 2.827-4.335 2.48-8.802 7.007-11.306 11.303L46.827 355.268c-2.506 4.295-2.8259.169-2.827 14.131-.002 4.961.325 9.836 2.827 14.134 2.502 4.297 6.97 7.413 11.306 9.894 4.336 2.481 9.127 4.24 14.134 4.24H171.2c39.201 0 67.734-17.585 87.627-50.88L306.88 263.4l25.44-43.813 77.733 132.853H306.88l-25.44 45.227ZM169.787 352.44h-69.254l103.174-178.08L256 263.4l-34.639 60.384c-13.21 21.603-28.272 28.656-51.574 28.656Z"/></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to serve modern formats like WebP. */
      "modern-image-formats": 'Use the `nuxt/image` component and set `format="webp"`. [Learn more](https://image.nuxt.com/usage/nuxt-img#format).',
      /** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to defer loading images which are not shown on screen. */
      "offscreen-images": 'Use the `nuxt/image` component and set `loading="lazy"` for offscreen images. [Learn more](https://image.nuxt.com/usage/nuxt-img#loading).',
      /** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to automatically compress their images. */
      "uses-optimized-images": "Use the `nuxt/image` component and set the appropriate `quality`. [Learn more](https://image.nuxt.com/usage/nuxt-img#quality).",
      /** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to serve appropriately sized images to different devices. */
      "uses-responsive-images": "Use the `nuxt/image` component and set the appropriate `sizes`. [Learn more](https://image.nuxt.com/usage/nuxt-img#sizes).",
      /** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to prioritize the loading of the image that is part of the Largest Contentful Paint (LCP). */
      "prioritize-lcp-image": "Use the `nuxt/image` component and specify `preload` for LCP image. [Learn more](https://image.nuxt.com/usage/nuxt-img#preload).",
      /** Additional description of a Lighthouse audit that tells the user to use the nuxt/image component to provide explicit `width` and `height` for images to prevent layout shift. */
      "unsized-images": "Use the `nuxt/image` component and specify explicit `width` and `height`. [Learn more](https://image.nuxt.com/usage/nuxt-img#width-height)."
    };
    module2.exports = {
      id: "nuxt",
      title: "Nuxt",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/octobercms.js
var require_octobercms = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/octobercms.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 310 310"><path fill="none" d="M-1-1h802v602H-1z"/><path fill="%23de6c26" d="M135 6.9c-14.2 4.4-34.9 21.8-49.9 42C55.8 88.5 39.6 135.8 41.4 177c.8 20.2 4.9 35.5 14.4 54.5 13.6 27.4 40.8 55.1 65.5 66.9 14.1 6.7 13.4 6.9 14.1-2.8.3-4.4 1-32.4 1.6-62.1 2.7-137.3 4.4-176 8.2-191.3.6-2.3 1.4-4.2 1.9-4.2 1.2 0 3.6 9.1 4.9 18.3.5 4.3 1 17.7 1 29.8 0 12 .3 21.9.7 21.9.3 0 5.7-5 11.9-11 6.9-6.8 12-11 13.3-11 1.8 0 1.9.3 1 2.7-1.2 3.1-7.9 13.2-19.1 28.5L153 128l.1 31.2c.1 17.2.4 37.4.8 44.9l.6 13.7 11-12.6c14-16 35.1-37.1 39.5-39.6l3.3-1.9-.6 3.2c-2 9.8-9.5 20.7-37.4 54.3L154 240.8v31.1c0 18.3.4 31.1.9 31.1 2.8 0 19.3-6.4 26.8-10.5 13.8-7.3 23.8-15 38.3-29.5 15.7-15.7 24.4-27.4 33.4-45.2 20.5-40 21-80.3 1.6-119-17.8-35.6-54.6-72.1-87.8-86.9-11.7-5.3-24.6-7.3-32.2-5z"/></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused CSS, in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-css-rules": "Consider reviewing the [plugins](https://octobercms.com/plugins) loading unused CSS on the website. To identify plugins that add unnecessary CSS, run [code coverage](https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage) in Chrome DevTools. Identify the theme/plugin responsible from the stylesheet URL. Look for plugins with many stylesheets with lots of red in code coverage. A plugin should only add a stylesheet if it is actually used on the web page.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve image loading by using webp in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "modern-image-formats": "Consider using a [plugin](https://octobercms.com/plugins?search=image) or service that will automatically convert the uploaded images to the optimal formats. [WebP lossless images](https://developers.google.com/speed/webp) are 26% smaller in size compared to PNGs and 25-34% smaller than comparable JPEG images at the equivalent SSIM quality index. Another next-gen image format to consider is [AVIF](https://jakearchibald.com/2020/avif-has-landed/).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by lazy loading images that are initially offscreen in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "offscreen-images": "Consider installing an [image lazy loading plugin](https://octobercms.com/plugins?search=lazy) that provides the ability to defer any offscreen images, or switch to a theme that provides that functionality. Also consider using [the AMP plugin](https://octobercms.com/plugins?search=Accelerated+Mobile+Pages).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve site loading performance by reducing the total bytes delivered by their page in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "total-byte-weight": "Consider showing excerpts in the post lists (e.g. using a `show more` button), reducing the number of posts shown on a given web page, breaking long posts into multiple web pages, or using a plugin to lazy-load comments.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by reducing the amount of render blocking resources present on their page, in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "render-blocking-resources": "There are many plugins that help [inline critical assets](https://octobercms.com/plugins?search=css). These plugins may break other plugins, so you should test thoroughly.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their CSS files in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-css": "There are many [plugins](https://octobercms.com/plugins?search=css) that can speed up a website by concatenating, minifying and compressing the styles. Using a build process to do this minification up-front can speed up development.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their Javascript files in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-javascript": "There are many [plugins](https://octobercms.com/plugins?search=javascript) that can speed up a website by concatenating, minifying and compressing the scripts. Using a build process to do this minification up-front can speed up development.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by encoding animated images as video, in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "efficient-animated-content": "[Replace animated GIFs with video](https://web.dev/replace-gifs-with-videos/) for faster web page loads and consider using modern file formats such as [WebM](https://web.dev/replace-gifs-with-videos/#create-webm-videos) or [AV1](https://developers.google.com/web/updates/2018/09/chrome-70-media-updates#av1-decoder) to improve compression efficiency by greater than 30% over the current state-of-the-art video codec, VP9.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused Javascript files in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-javascript": "Consider reviewing the [plugins](https://octobercms.com/plugins?search=javascript) that load unused JavaScript in the web page. To identify plugins that add unnecessary JavaScript, run [code coverage](https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage) in Chrome DevTools. Identify the theme/plugin responsible from the URL of the script. Look for plugins with many scripts with lots of red in code coverage. A plugin should only add a script if it is actually used on the web page.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve their site by enabling long caching in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-long-cache-ttl": "Read about [preventing unnecessary network requests with the HTTP Cache](https://web.dev/http-cache/#caching-checklist). There are many [plugins](https://octobercms.com/plugins?search=Caching) that can be used to speed up caching.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve site performance by optimizing images, in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-optimized-images": "Consider using an [image optimization plugin](https://octobercms.com/plugins?search=image) to compresses images while retaining the quality.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance via enabling text compression in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-text-compression": "Enable text compression in the web server configuration.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by using responsive images in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-responsive-images": "Upload images directly in the media manager to ensure the required image sizes are available. Consider using the [resize filter](https://octobercms.com/docs/markup/filter-resize) or an [image resizing plugin](https://octobercms.com/plugins?search=image) to ensure the optimal image sizes are used.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve the time to first byte speed metric, in the context of the October CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "server-response-time": "Themes, plugins and server specifications all contribute to the server response time. Consider finding a more optimized theme, carefully selecting an optimization plugin and/or upgrade the server. October CMS also allows developers to use [`Queues`](https://octobercms.com/docs/services/queues) to defer the processing of a time consuming task, such as sending an e-mail. This drastically speeds up web requests."
    };
    module2.exports = {
      id: "octobercms",
      title: "October CMS",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/react.js
var require_react = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/react.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="%2361DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-2\
3.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 \
13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their CSS files in the context of the React library. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-css": "If your build system minifies CSS files automatically, ensure that you are deploying the production build of your application. You can check this with the React Developer Tools extension. [Learn more](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their Javascript files in the context of the React library. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-javascript": "If your build system minifies JS files automatically, ensure that you are deploying the production build of your application. You can check this with the React Developer Tools extension. [Learn more](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused Javascript files in the context of the React library. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-javascript": "If you are not server-side rendering, [split your JavaScript bundles](https://web.dev/code-splitting-suspense/) with `React.lazy()`. Otherwise, code-split using a third-party library such as [loadable-components](https://loadable-components.com/).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve the time to first byte speed metric, in the context of the React library. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "server-response-time": "If you are server-side rendering any React components, consider using `renderToPipeableStream()` or `renderToStaticNodeStream()` to allow the client to receive and hydrate different parts of the markup instead of all at once. [Learn more](https://reactjs.org/docs/react-dom-server.html#renderToPipeableStream).",
      /** Additional description of a Lighthouse audit that tells the user how they can minimize redirects, in the context of the React library. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "redirects": "If you are using React Router, minimize usage of the `<Redirect>` component for [route navigations](https://reacttraining.com/react-router/web/api/Redirect).",
      /** Additional description of a Lighthouse audit that tells the user how they can use the Profiler to help measure performance. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "user-timings": "Use the React DevTools Profiler, which makes use of the Profiler API, to measure the rendering performance of your components. [Learn more.](https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html)",
      /** Additional description of a Lighthouse audit that tells the user *why* and *how* they should reduce the size of the web page"s DOM, in the context of the React library, as well as how to maximize component performance when many DOM nodes are present. 'Learn More' becomes link text to additional documentation. */
      "dom-size": 'Consider using a "windowing" library like `react-window` to minimize the number of DOM nodes created if you are rendering many repeated elements on the page. [Learn more](https://web.dev/virtualize-long-lists-react-window/). Also, minimize unnecessary re-renders using [`shouldComponentUpdate`](https://reactjs.org/docs/optimizing-performance.html#shouldcomponentupdate-in-action), [`PureComponent`](https://reactjs.org/docs/react-api.html#reactpurecomponent), or [`React.memo`](https://reactjs.org/docs/react-api.html#reactmemo) and [skip effects](https://reactjs.org/docs/hooks-effect.html#tip-optimizing-performance-by-skipping-effects) only until certain dependencies have changed if you are using the `Effect` hook to improve runtime performance.'
    };
    module2.exports = {
      id: "react",
      title: "React",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/wix.js
var require_wix = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/wix.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71 28"><path fill-rule="evenodd" d="M0 .032s2.796-.356 4.66 1.31C5.81 2.37 6.145 4.008 6.145 4.008L9.952 18.96l3.165-12.239c.309-1.301.864-2.909 1.743-3.997 1.121-1.385 3.398-1.472 3.641-1.472.242 0 2.519.087 3.639 1.472.88 1.088 1.435 2.696 1.744 3.997l3.165 12.239 3.806-14.953s.336-1.638 1.486-2.666C34.205-.324 37 .032 37 .032l-7.289 27.945s-2.404.176-3.607-.446c-1.58-.816-2.332-1.447-3.289-5.249l-.099-.395c-.349-1.399-.883-3.59-1.424-5.813l-.162-.667-.162-.664c-.779-3.198-1.497-6.143-1.612-6.517-.108-.351-.236-1.187-.855-1.187-.607 0-.746.837-.857 1.187-.13.412-.99 3.955-1.856 7.514l-.162.667c-.512 2.107-1.01 4.151-1.341 5.48l-.1.395c-.956 3.802-1.708 4.433-3.288 5.249-1.204.622-3.608.446-3.608.446zM43.998 5v.995L44 5.994v16.628c-.014 3.413-.373 4.17-1.933 4.956-1.213.61-3.067.379-3.067.379V9.332c0-.935.315-1.548 1.477-2.098.693-.329 1.34-.58 2.012-.953C43.54 5.703 43.998 5 43.998 5zM46 .125s3.87\
7-.673 5.797 1.107c1.228 1.14 2.602 3.19 2.602 3.19l3.38 4.965c.164.258.378.54.72.54.343 0 .558-.282.722-.54l3.38-4.965s1.374-2.05 2.602-3.19C67.123-.548 71 .125 71 .125l-9.186 13.923 9.161 13.881-.032.004c-.38.045-4.036.423-5.855-1.266-1.229-1.138-2.487-2.992-2.487-2.992l-3.38-4.964c-.164-.26-.379-.54-.721-.54-.343 0-.557.28-.721.54l-3.38 4.964s-1.19 1.854-2.418 2.992c-1.92 1.783-5.957 1.262-5.957 1.262l9.161-13.88zM43.96 0H44c0 1.91-.186 3.042-1.387 3.923-.384.28-1.048.71-1.826.992C39.719 5.304 39 6 39 6c0-3.476.53-4.734 1.95-5.48.865-.452 2.272-.514 2.82-.52z"></path></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user to optimize image formats, in the context of the Wix CMS platform. */
      "modern-image-formats": "Upload images using `Wix Media Manager` to ensure they are automatically served as WebP. Find [more ways to optimize](https://support.wix.com/en/article/site-performance-optimizing-your-media) your site's media.",
      /** Additional description of a Lighthouse audit that tells the user to defer loading of non-critical third-party libraries, in the context of the Wix CMS platform. */
      "render-blocking-resources": "When [adding third-party code](https://support.wix.com/en/article/site-performance-using-third-party-code-on-your-site) in the `Custom Code` tab of your site's dashboard, make sure it's deferred or loaded at the end of the code body. Where possible, use Wix’s [integrations](https://support.wix.com/en/article/about-marketing-integrations) to embed marketing tools on your site. ",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by avoiding animated images and using videos where possible, in the context of the Wix CMS platform. */
      "efficient-animated-content": "Place videos inside `VideoBoxes`, customize them using `Video Masks` or add `Transparent Videos`. [Learn more](https://support.wix.com/en/article/wix-video-about-wix-video).",
      /** Additional description of a Lighthouse audit that tells the user to be aware of JavaScript code that is not used, particularly from third-parties, in the context of the Wix CMS platform. */
      "unused-javascript": "Review any third-party code you've added to your site in the `Custom Code` tab of your site's dashboard and only keep the services that are necessary to your site. [Find out more](https://support.wix.com/en/article/site-performance-removing-unused-javascript).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve the server response time, in the context of the Wix CMS platform. */
      "server-response-time": "Wix utilizes CDNs and caching to serve responses as fast as possible for most visitors. Consider [manually enabling caching](https://support.wix.com/en/article/site-performance-caching-pages-to-optimize-loading-speed) for your site, especially if using `Velo`."
    };
    module2.exports = {
      id: "wix",
      title: "Wix",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/wordpress.js
var require_wordpress = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/wordpress.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.5 122.5"><g fill="%232f3439"><path d="M8.7 61.3c0 20.8 12.1 38.7 29.6 47.3l-25-68.7c-3 6.5-4.6 13.7-4.6 21.4zm88-2.7c0-6.5-2.3-11-4.3-14.5-2.7-4.3-5.2-8-5.2-12.3 0-4.8 3.7-9.3 8.9-9.3h.7a52.4 52.4 0 0 0-79.4 9.9h3.3c5.5 0 14-.6 14-.6 2.9-.2 3.2 4 .4 4.3 0 0-2.9.4-6 .5l19.1 57L59.7 59l-8.2-22.5c-2.8-.1-5.5-.5-5.5-.5-2.8-.1-2.5-4.5.3-4.3 0 0 8.7.7 13.9.7 5.5 0 14-.7 14-.7 2.8-.2 3.2 4 .3 4.3 0 0-2.8.4-6 .5l19 56.5 5.2-17.5c2.3-7.3 4-12.5 4-17z"/><path d="m62.2 65.9-15.8 45.8a52.6 52.6 0 0 0 32.3-.9l-.4-.7zM107.4 36a49.6 49.6 0 0 1-3.6 24.2l-16.1 46.5A52.5 52.5 0 0 0 107.4 36z"/><path d="M61.3 0a61.3 61.3 0 1 0 .1 122.7A61.3 61.3 0 0 0 61.3 0zm0 119.7a58.5 58.5 0 1 1 .1-117 58.5 58.5 0 0 1-.1 117z"/></g></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused CSS, in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-css-rules": "Consider reducing, or switching, the number of [WordPress plugins](https://wordpress.org/plugins/) loading unused CSS in your page. To identify plugins that are adding extraneous CSS, try running [code coverage](https://developer.chrome.com/docs/devtools/coverage/) in Chrome DevTools. You can identify the theme/plugin responsible from the URL of the stylesheet. Look out for plugins that have many stylesheets in the list which have a lot of red in code coverage. A plugin should only enqueue a stylesheet if it is actually used on the page.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve image loading by using webp in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. */
      "modern-image-formats": "Consider using the [Performance Lab](https://wordpress.org/plugins/performance-lab/) plugin to automatically convert your uploaded JPEG images into WebP, wherever supported.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by lazy loading images that are initially offscreen in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "offscreen-images": "Install a [lazy-load WordPress plugin](https://wordpress.org/plugins/search/lazy+load/) that provides the ability to defer any offscreen images, or switch to a theme that provides that functionality. Also consider using [the AMP plugin](https://wordpress.org/plugins/amp/).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve site loading performance by reducing the total bytes delivered by their page in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "total-byte-weight": "Consider showing excerpts in your post lists (e.g. via the more tag), reducing the number of posts shown on a given page, breaking your long posts into multiple pages, or using a plugin to lazy-load comments.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by reducing the amount of render blocking resources present on their page, in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "render-blocking-resources": "There are a number of WordPress plugins that can help you [inline critical assets](https://wordpress.org/plugins/search/critical+css/) or [defer less important resources](https://wordpress.org/plugins/search/defer+css+javascript/). Beware that optimizations provided by these plugins may break features of your theme or plugins, so you will likely need to make code changes.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their CSS files in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-css": "A number of [WordPress plugins](https://wordpress.org/plugins/search/minify+css/) can speed up your site by concatenating, minifying, and compressing your styles. You may also want to use a build process to do this minification up-front if possible.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by minifying their Javascript files in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unminified-javascript": "A number of [WordPress plugins](https://wordpress.org/plugins/search/minify+javascript/) can speed up your site by concatenating, minifying, and compressing your scripts. You may also want to use a build process to do this minification up front if possible.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by encoding animated images as video, in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "efficient-animated-content": "Consider uploading your GIF to a service which will make it available to embed as an HTML5 video.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by removing unused Javascript files in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "unused-javascript": "Consider reducing, or switching, the number of [WordPress plugins](https://wordpress.org/plugins/) loading unused JavaScript in your page. To identify plugins that are adding extraneous JS, try running [code coverage](https://developer.chrome.com/docs/devtools/coverage/) in Chrome DevTools. You can identify the theme/plugin responsible from the URL of the script. Look out for plugins that have many scripts in the list which have a lot of red in code coverage. A plugin should only enqueue a script if it is actually used on the page.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve their site by enabling long caching in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-long-cache-ttl": "Read about [Browser Caching in WordPress](https://wordpress.org/support/article/optimization/#browser-caching).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve site performance by optimizing images, in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-optimized-images": "Consider using an [image optimization WordPress plugin](https://wordpress.org/plugins/search/optimize+images/) that compresses your images while retaining quality.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance via enabling text compression in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-text-compression": "You can enable text compression in your web server configuration.",
      /** Additional description of a Lighthouse audit that tells the user how they can improve performance by using responsive images in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "uses-responsive-images": "Upload images directly through the [media library](https://wordpress.org/support/article/media-library-screen/) to ensure that the required image sizes are available, and then insert them from the media library or use the image widget to ensure the optimal image sizes are used (including those for the responsive breakpoints). Avoid using `Full Size` images unless the dimensions are adequate for their usage. [Learn More](https://wordpress.org/support/article/inserting-images-into-posts-and-pages/).",
      /** Additional description of a Lighthouse audit that tells the user how they can improve the time to first byte speed metric, in the context of the Wordpress CMS platform. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      "server-response-time": "Choose a lightweight theme (ideally a block theme) and implement full-page caching or a static site solution. Disable unnecessary plugins to minimize server overhead. Consider upgrading your hosting to managed or dedicated service."
    };
    module2.exports = {
      id: "wordpress",
      title: "WordPress",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/packs/wp-rocket.js
var require_wp_rocket = __commonJS({
  "node_modules/lighthouse-stack-packs/packs/wp-rocket.js"(exports2, module2) {
    init_process_global();
    var icon = `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 294 524"><defs><linearGradient id="a" x1="36.742%" x2="37.116%" y1="100.518%" y2="-.001%"><stop offset="0%" stop-color="%23DD5F29"/><stop offset="26.042%" stop-color="%23F26B32"/><stop offset="100%" stop-color="%23FAC932"/></linearGradient><linearGradient id="b" x1="28.046%" x2="28.421%" y1="100.518%" y2="-.003%"><stop offset="0%" stop-color="%23DD5F29"/><stop offset="26.042%" stop-color="%23F26B32"/><stop offset="100%" stop-color="%23FAC932"/></linearGradient><linearGradient id="c" x1="38.215%" x2="38.589%" y1="100.518%" y2="0%"><stop offset="0%" stop-color="%23DD5F29"/><stop offset="26.042%" stop-color="%23F26B32"/><stop offset="100%" stop-color="%23FAC932"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="url(%23a)" d="M218.617 270.615c-9.752 0-18.896-5.689-23.366-14.63l-7.72-17.27h-76.6l-7.722 17.27c-4.47 8.941-13.613 14.63-23.366 14.63H75.78l32.712 249.306c1.625 4.671 4.67\
3 4.671 6.502 0l32.51-79.648 28.242 79.442c1.625 4.676 4.673 4.676 6.501 0L220.04 270.82l-1.423-.204Z" transform="translate(-1.58 -.2)"/><path fill="url(%23b)" d="M184.47 231.784h-70.3l-10.77 24.179c-3.657 7.314-10.768 12.597-18.489 14.02L109.7 423.791c1.625 2.844 4.673 2.844 6.501 0l31.697-48.155 29.055 47.951c1.829 2.845 4.673 2.845 6.502 0l28.039-154.012c-6.908-2.032-13.004-6.908-16.255-13.613l-10.768-24.18Z" transform="translate(-1.58 -.2)"/><path fill="url(%23c)" d="m195.259 255.988-46.123-103.014-45.92 103.014c-1.625 3.048-3.656 5.69-6.095 7.925l19.1 102.2c1.015 1.423 3.657 1.83 5.485 0l25.601-33.931 25.602 33.728c1.625 2.032 4.47 1.626 5.485 0l21.131-103.42c-1.625-2.032-3.047-4.064-4.266-6.502Z" transform="translate(-1.58 -.2)"/><path fill="%23F56F46" d="M.439 12.559c-1.422-4.877 1.422-8.33 6.299-8.33H47.17c2.845 0 5.486 2.437 6.299 4.876l29.665 116.83h1.422l53.437-121.3c1.016-2.032 3.048-3.86 5.892-3.86h6.299c3.047 0 5.08 1.625 5.892 3.86l53.437 121.3h1.423L240.6 9.105c.61-2.43\
9 3.454-4.877 6.299-4.877h40.433c4.877 0 7.518 3.454 6.299 8.33l-65.221 231.63c-.61 2.845-3.454 4.876-6.298 4.876h-5.487c-2.438 0-4.876-1.625-5.892-3.86l-63.19-141.009h-1.015L83.744 245.203c-1.016 2.032-3.454 3.86-5.892 3.86h-5.486c-2.845 0-5.486-2.031-6.299-4.876L.44 12.559Z"/></g></svg>`;
    var UIStrings136 = {
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. Remove Unused CSS is a name of the feature */
      "unused-css-rules": `Enable [Remove Unused CSS](https://docs.wp-rocket.me/article/1529-remove-unused-css) in 'WP Rocket' to fix this issue. It reduces page size by removing all CSS and stylesheets that are not used while keeping only the used CSS for each page.`,
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. `Imagify` is an image optimization add-on */
      "modern-image-formats": `Enable 'Imagify' from the Image Optimization tab in 'WP Rocket' to convert your images to WebP.`,
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. Delay JavaScript, LazyLoad for iframes and videos and Replace YouTube iframe with preview image are names of the features */
      "unused-javascript": `Enable [Delay JavaScript execution](https://docs.wp-rocket.me/article/1349-delay-javascript-execution) in 'WP Rocket' to fix this problem. It will improve the loading of your page by delaying the execution of scripts until user interaction. If your site has iframes, you can use WP Rocket's [LazyLoad for iframes and videos](https://docs.wp-rocket.me/article/1674-lazyload-for-iframes-and-videos) and [Replace YouTube iframe with preview image](https://docs.wp-rocket.me/article/1488-replace-youtube-iframe-with-preview-image) as well.`,
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. Remove Unused CSS, Load JavaScript deferred are names of the features */
      "render-blocking-resources": `Enable [Remove Unused CSS](https://docs.wp-rocket.me/article/1529-remove-unused-css) and [Load JavaScript deferred](https://docs.wp-rocket.me/article/1265-load-javascript-deferred) in 'WP Rocket' to address this recommendation. These features will respectively optimize the CSS and JavaScript files so that they don't block the rendering of your page.`,
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. Minify CSS Files is a name of the feature */
      "unminified-css": `Enable [Minify CSS files](https://docs.wp-rocket.me/article/1350-css-minify-combine) in 'WP Rocket' to fix this issue. Any spaces and comments in your site's CSS files will be removed to make the file size smaller and faster to download.`,
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. Minify JavaScript Files is a name of the feature */
      "unminified-javascript": `Enable [Minify JavaScript files](https://docs.wp-rocket.me/article/1351-javascript-minify-combine) in 'WP Rocket' to fix this issue. Empty spaces and comments will be removed from JavaScript files to make their size smaller and faster to download.`,
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. `Imagify` is an image optimization add-on */
      "uses-optimized-images": `Enable 'Imagify' from the Image Optimization tab in 'WP Rocket' and run Bulk Optimization to compress your images.`,
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. Prefetch DNS Requests, Enable CDN are names of the features */
      "uses-rel-preconnect": `Use [Prefetch DNS Requests](https://docs.wp-rocket.me/article/1302-prefetch-dns-requests) in 'WP Rocket' to add "dns-prefetch" and speed up the connection with external domains. Also, 'WP Rocket' automatically adds "preconnect" to [Google Fonts domain](https://docs.wp-rocket.me/article/1312-optimize-google-fonts) and any CNAME(S) added via the [Enable CDN](https://docs.wp-rocket.me/article/42-using-wp-rocket-with-a-cdn) feature.`,
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. Remove Unused CSS is a name of the feature*/
      "uses-rel-preload": `To fix this issue for fonts, enable [Remove Unused CSS](https://docs.wp-rocket.me/article/1529-remove-unused-css) in 'WP Rocket'. Your site's critical fonts will be preloaded with priority.`,
      /** Additional description of a Lighthouse audit for a third-party framework called 'WP Rocket'. This is displayed after a user expands the section to see more. No character length limits. LazyLoad for images is a name of the feature*/
      "offscreen-images": `Enable [LazyLoad](https://docs.wp-rocket.me/article/1141-lazyload-for-images) in WP Rocket to fix this recommendation. This feature delays the loading of the images until the visitor scrolls down the page and actually needs to see them.`
    };
    module2.exports = {
      id: "wp-rocket",
      title: "WP Rocket",
      icon,
      UIStrings: UIStrings136
    };
  }
});

// node_modules/lighthouse-stack-packs/index.js
var require_lighthouse_stack_packs = __commonJS({
  "node_modules/lighthouse-stack-packs/index.js"(exports2, module2) {
    init_process_global();
    var stackPacks2 = [
      require_amp(),
      require_angular(),
      require_drupal(),
      require_ezoic(),
      require_gatsby(),
      require_joomla(),
      require_magento(),
      require_next(),
      require_nitropack(),
      require_nuxt(),
      require_octobercms(),
      require_react(),
      require_wix(),
      require_wordpress(),
      require_wp_rocket()
    ];
    module2.exports = stackPacks2;
  }
});

// node_modules/lookup-closest-locale/index.js
var require_lookup_closest_locale = __commonJS({
  "node_modules/lookup-closest-locale/index.js"(exports2, module2) {
    init_process_global();
    module2.exports = /* @__PURE__ */ __name(function lookupClosestLocale2(locale, available) {
      if (typeof locale === "string" && available[locale]) return locale;
      var locales2 = [].concat(locale || []);
      for (var l = 0, ll = locales2.length; l < ll; ++l) {
        var current = locales2[l].split("-");
        while (current.length) {
          var candidate = current.join("-");
          if (available[candidate]) return candidate;
          current.pop();
        }
      }
    }, "lookupClosestLocale");
  }
});

// shared/root.js
import path from "path";
var LH_ROOT, pkg, lighthouseVersion;
var init_root2 = __esm({
  "shared/root.js"() {
    "use strict";
    init_process_global();
    init_esm_utils();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    LH_ROOT = path.dirname("");
    pkg = JSON.parse(`{
  "name": "lighthouse",
  "type": "module",
  "version": "13.4.0",
  "description": "Automated auditing, performance metrics, and best practices for the web.",
  "main": "./core/index.js",
  "bin": {
    "lighthouse": "./cli/index.js",
    "chrome-debug": "./core/scripts/manual-chrome-launcher.js",
    "smokehouse": "./cli/test/smokehouse/frontends/smokehouse-bin.js"
  },
  "engines": {
    "node": ">=22.19"
  },
  "scripts": {
    "prepack": "yarn build-report --standalone --flow --esm && yarn build-types",
    "postpack": "yarn clean-types",
    "build-all": "yarn build-report && yarn build-baseline-data && yarn build-cdt-strings && yarn build-devtools && concurrently 'yarn build-extension' 'yarn build-lr' 'yarn build-viewer' 'yarn build-treemap' 'yarn build-smokehouse-bundle' 'yarn build-legacy-javascript' 'yarn build-devtools-mcp' && yarn build-pack",
    "build-baseline-data": "node ./build/build-baseline-data.js",
    "build-cdt-lib": "node ./build/build-cdt-lib.js",
    "build-cdt-strings": "node ./build/build-cdt-strings.js",
    "build-extension": "yarn build-extension-chrome && yarn build-extension-firefox",
    "build-extension-chrome": "node ./build/build-extension.js chrome",
    "build-extension-firefox": "node ./build/build-extension.js firefox",
    "build-devtools": "yarn reset-link && node ./build/build-bundle.js clients/devtools/devtools-entry.js dist/lighthouse-dt-bundle.js && node ./build/build-dt-report-resources.js",
    "build-legacy-javascript": "node ./build/build-legacy-javascript.js",
    "build-devtools-mcp": "node ./build/build-bundle-mcp.js clients/devtools-mcp/devtools-mcp-entry.js dist/lighthouse-devtools-mcp-bundle.js",
    "build-smokehouse-bundle": "node ./build/build-smokehouse-bundle.js",
    "build-lr": "yarn reset-link && node --max-old-space-size=4096 ./build/build-lightrider-bundles.js",
    "build-pack": "bash build/build-pack.sh",
    "build-report": "node build/build-report-components.js && node build/build-report.js",
    "build-sample-reports": "yarn build-report && node build/build-sample-reports.js",
    "build-treemap": "node ./build/build-treemap.js",
    "build-viewer": "node ./build/build-viewer.js",
    "build-types": "yarn type-check && rsync -a .tmp/tsbuildinfo/ ./ --include='*.d.ts' --include='*.d.cts' --exclude='*.map' --exclude='*.tsbuildinfo'",
    "reset-link": "(yarn unlink || true) && yarn link && yarn link lighthouse",
    "clean": "rm -r dist proto/scripts/*.json proto/scripts/*_pb2.* proto/scripts/*_pb.* proto/scripts/__pycache__ proto/scripts/*.pyc *.report.html *.report.dom.html *.report.json *.devtoolslog.json *.trace.json shared/localization/locales/*.ctc.json || true",
    "clean-types": "git clean -xfq '*.d.ts' '*.d.cts' -e 'node_modules/' -e 'dist/' -e '.tmp/' -e '**/types/'",
    "lint": "[ \\"$CI\\" = true ] && eslint --quiet -f codeframe . || eslint .",
    "smoke": "node -r source-map-support/register cli/test/smokehouse/frontends/smokehouse-bin.js",
    "debug": "node --inspect-brk ./cli/index.js",
    "start": "yarn build-report --standalone && node ./cli/index.js",
    "mocha": "node core/test/scripts/run-mocha-tests.js",
    "test": "yarn diff:sample-json && yarn lint --quiet && yarn unit && yarn type-check",
    "test-bundle": "yarn smoke --runner bundle",
    "test-clients": "yarn mocha --testMatch clients/**/*-test.js && yarn mocha --testMatch clients/**/*-test-pptr.js",
    "test-viewer": "yarn unit-viewer && yarn mocha --testMatch viewer/**/*-test-pptr.js --timeout 35000",
    "test-treemap": "yarn unit-treemap && yarn mocha --testMatch treemap/**/*-test-pptr.js --timeout 35000",
    "test-lantern": "bash core/scripts/test-lantern.sh",
    "test-legacy-javascript": "bash core/scripts/test-legacy-javascript.sh",
    "test-docs": "yarn --cwd docs/recipes/ test",
    "test-proto": "yarn compile-proto && yarn build-proto-roundtrip",
    "unit-core": "yarn mocha core",
    "unit-cli": "yarn mocha --testMatch cli/**/*-test.js",
    "unit-lantern-trace": "INTERNAL_LANTERN_USE_TRACE=1 yarn mocha core/test/computed/metrics core/test/audits",
    "unit-report": "yarn mocha --testMatch report/**/*-test.js",
    "unit-treemap": "yarn mocha --testMatch treemap/**/*-test.js",
    "unit-viewer": "yarn mocha --testMatch viewer/**/*-test.js",
    "unit-flow": "bash flow-report/test/run-flow-report-tests.sh",
    "unit": "yarn unit-flow && yarn mocha && yarn unit-lantern-trace",
    "unit:ci": "NODE_OPTIONS=--max-old-space-size=8192 npm run unit",
    "unit-lantern-trace:ci": "NODE_OPTIONS=--max-old-space-size=8192 npm run unit-lantern-trace",
    "core-unit": "yarn unit-core",
    "cli-unit": "yarn unit-cli",
    "viewer-unit": "yarn unit-viewer",
    "watch": "yarn unit-core --watch",
    "devtools": "bash core/scripts/roll-to-devtools.sh",
    "chrome": "node core/scripts/manual-chrome-launcher.js",
    "fast": "node ./cli/index.js --preset=desktop --throttlingMethod=provided",
    "deploy-treemap": "yarn build-treemap --deploy",
    "deploy-viewer": "yarn build-viewer --deploy",
    "vercel-build": "yarn build-sample-reports && yarn build-viewer && yarn build-treemap",
    "dogfood-lhci": "./core/scripts/dogfood-lhci.sh",
    "timing-trace": "node core/scripts/generate-timing-trace.js",
    "changelog": "conventional-changelog --config ./build/changelog-generator/index.cjs --infile changelog.md --same-file",
    "type-check": "tsc --build ./tsconfig-all.json",
    "i18n:checks": "./core/scripts/i18n/assert-strings-collected.sh",
    "i18n:collect-strings": "node core/scripts/i18n/collect-strings.js",
    "update:lantern-baseline": "node core/scripts/lantern/update-baseline-lantern-values.js",
    "update:sample-artifacts": "node core/scripts/update-report-fixtures.js",
    "update:sample-json": "yarn i18n:collect-strings && node ./cli -A=./core/test/results/artifacts --config-path=./core/test/results/sample-config.js --output=json --output-path=./core/test/results/sample_v2.json && node core/scripts/cleanup-LHR-for-diff.js ./core/test/results/sample_v2.json --only-remove-timing && node ./core/scripts/update-flow-fixtures.js",
    "update:flow-sample-json": "yarn i18n:collect-strings && node ./core/scripts/update-flow-fixtures.js",
    "test-devtools": "bash core/test/devtools-tests/test-locally.sh",
    "open-devtools": "bash core/scripts/open-devtools.sh",
    "run-devtools": "node core/scripts/pptr-run-devtools.js",
    "diff:sample-json": "yarn i18n:checks && bash core/scripts/assert-golden-lhr-unchanged.sh",
    "diff:flow-sample-json": "yarn i18n:collect-strings && bash core/scripts/assert-baseline-flow-result-unchanged.sh",
    "computeBenchmarkIndex": "./core/scripts/benchmark.js",
    "save-latest-run": "./core/scripts/save-latest-run.sh",
    "compile-proto": "protoc --python_out=./ ./proto/lighthouse-result.proto && mv ./proto/*_pb2.py ./proto/scripts || (echo \\"❌ Install protobuf = 3.20.x to compile the proto file.\\" && false)",
    "build-proto-roundtrip": "mkdir -p .tmp && python3 proto/scripts/json_roundtrip_via_proto.py",
    "static-server": "node cli/test/fixtures/static-server.js",
    "serve-dist": "cd dist && python3 -m http.server 7878",
    "serve-gh-pages": "cd dist/gh-pages && python3 -m http.server 7333",
    "serve-treemap": "yarn serve-gh-pages",
    "serve-viewer": "yarn serve-gh-pages",
    "flow-report": "yarn build-report --flow && node ./core/scripts/build-test-flow-report.js",
    "generate-insight-audits": "node core/scripts/generate-insight-audits.js"
  },
  "devDependencies": {
    "@build-tracker/cli": "^1.0.0-beta.15",
    "@esbuild-kit/esm-loader": "^2.6.5",
    "@esbuild-plugins/node-modules-polyfill": "^0.1.4",
    "@eslint/compat": "^1.3.0",
    "@eslint/eslintrc": "^3.3.1",
    "@eslint/js": "^9.28.0",
    "@formatjs/icu-messageformat-parser": "^2.6.2",
    "@jest/fake-timers": "^29.7.0",
    "@testing-library/preact": "^3.1.1",
    "@testing-library/preact-hooks": "^1.1.0",
    "@types/archiver": "^2.1.2",
    "@types/chrome": "^0.1.42",
    "@types/configstore": "^6.0.2",
    "@types/cpy": "^5.1.0",
    "@types/debug": "^4.1.7",
    "@types/eslint": "^9.6.1",
    "@types/estree": "^0.0.50",
    "@types/gh-pages": "^2.0.0",
    "@types/google.analytics": "0.0.39",
    "@types/gtag.js": "0.0.20",
    "@types/jpeg-js": "^0.3.7",
    "@types/jsdom": "^16.2.13",
    "@types/lodash-es": "^4.17.12",
    "@types/mocha": "^9.0.0",
    "@types/node": "*",
    "@types/pako": "^1.0.1",
    "@types/pg": "^8.20.0",
    "@types/resize-observer-browser": "^0.1.1",
    "@types/resolve": "^1.20.2",
    "@types/semver": "^5.5.0",
    "@types/ws": "^7.0.0",
    "@types/yargs": "^17.0.8",
    "@types/yargs-parser": "^20.2.1",
    "@typescript-eslint/eslint-plugin": "^8.60.1",
    "@typescript-eslint/parser": "^8.60.1",
    "acorn": "^8.5.0",
    "angular": "^1.7.4",
    "archiver": "^7.0.1",
    "builtin-modules": "^3.3.0",
    "chalk": "^2.4.1",
    "chrome-devtools-frontend": "1.0.1642845",
    "colors": "^1.4.0",
    "concurrently": "^9.2.1",
    "conventional-changelog-cli": "^2.1.1",
    "core-js-compat": "^3.44.0",
    "cpy": "^8.1.2",
    "csv-validator": "^0.0.3",
    "esbuild": "0.28.0",
    "eslint": "^9.28.0",
    "eslint-config-google": "^0.14.0",
    "eslint-formatter-codeframe": "^7.32.1",
    "eslint-plugin-import": "^2.25.3",
    "eslint-plugin-local-rules": "1.1.0",
    "expect": "^28.1.0",
    "firebase": "^12.14.0",
    "gh-pages": "^2.0.1",
    "glob": "^7.1.3",
    "globals": "^15.14.0",
    "idb-keyval": "2.2.0",
    "jest-mock": "^29.7.0",
    "jest-snapshot": "^29.7.0",
    "jsdom": "^12.2.0",
    "lighthouse-plugin-soft-navigation": "^1.1.0",
    "magic-string": "^0.25.7",
    "mime-types": "^2.1.30",
    "mocha": "^10.0.0",
    "pako": "^2.1.0",
    "preact": "^10.7.2",
    "pretty-json-stringify": "^0.0.2",
    "puppeteer": "^25.0.2",
    "resolve": "^1.22.10",
    "rollup-plugin-polyfill-node": "^0.12.0",
    "source-map-support": "^0.5.21",
    "terser": "^5.48.0",
    "testdouble": "^3.20.2",
    "typed-query-selector": "^2.12.0",
    "typescript": "6.0.3",
    "wait-for-expect": "^3.0.2",
    "webtreemap-cdt": "^3.2.1"
  },
  "dependencies": {
    "@paulirish/trace_engine": "0.0.65",
    "@sentry/node": "^9.28.1",
    "axe-core": "^4.12.0",
    "chrome-launcher": "^1.2.1",
    "configstore": "^7.0.0",
    "csp_evaluator": "1.1.8",
    "devtools-protocol": "0.0.1625959",
    "enquirer": "^2.3.6",
    "http-link-header": "^1.1.1",
    "intl-messageformat": "^10.5.3",
    "jpeg-js": "^0.4.4",
    "js-library-detector": "^6.7.0",
    "lighthouse-logger": "^2.0.2",
    "lighthouse-stack-packs": "1.12.3",
    "lodash-es": "^4.17.21",
    "lookup-closest-locale": "6.2.0",
    "open": "^8.4.0",
    "puppeteer-core": "^25.0.2",
    "robots-parser": "^3.0.1",
    "speedline-core": "^1.4.3",
    "third-party-web": "^0.29.2",
    "tldts-icann": "^7.4.2",
    "web-features": "^3.30.0",
    "ws": "^7.0.0",
    "yargs": "^17.3.1",
    "yargs-parser": "^21.0.0"
  },
  "resolutions": {
    "puppeteer/**/devtools-protocol": "0.0.1625959",
    "puppeteer-core/**/devtools-protocol": "0.0.1625959"
  },
  "repository": "GoogleChrome/lighthouse",
  "keywords": [
    "google",
    "chrome",
    "devtools"
  ],
  "author": "Google LLC",
  "license": "Apache-2.0",
  "bugs": {
    "url": "https://github.com/GoogleChrome/lighthouse/issues"
  },
  "homepage": "https://github.com/GoogleChrome/lighthouse#readme",
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
`);
    lighthouseVersion = pkg.version;
  }
});

// core/lib/i18n/i18n.js
import path2 from "path";
function lookupLocale(locales2, possibleLocales) {
  if (typeof Intl !== "object") {
    throw new Error("Lighthouse must be run in Node with `Intl` support. See https://nodejs.org/api/intl.html for help");
  }
  const canonicalLocales = Intl.getCanonicalLocales(locales2);
  const availableLocales = Intl.NumberFormat.supportedLocalesOf(canonicalLocales);
  const localesWithMessages = possibleLocales || getAvailableLocales();
  const localesWithmessagesObj = (
    /** @type {Record<LH.Locale, LhlMessages>} */
    Object.fromEntries(localesWithMessages.map((l) => [l, {}]))
  );
  const closestLocale = (0, import_lookup_closest_locale.default)(availableLocales, localesWithmessagesObj);
  if (!closestLocale) {
    if (Intl.NumberFormat.supportedLocalesOf("es").length === 0) {
      lighthouse_logger_default.warn("i18n", "Requested locale not available in this version of node. The `full-icu` npm module can provide additional locales. For help, see https://github.com/GoogleChrome/lighthouse/blob/main/readme.md#how-do-i-get-localized-lighthouse-results-via-the-cli");
    }
    lighthouse_logger_default.warn("i18n", `locale(s) '${locales2}' not available. Falling back to default '${DEFAULT_LOCALE}'`);
  }
  return closestLocale || DEFAULT_LOCALE;
}
function createIcuMessageFn(filename, fileStrings = {}) {
  if (filename.startsWith("file://")) filename = url_default.fileURLToPath(filename);
  if (path2.isAbsolute(filename)) filename = path2.relative(LH_ROOT, filename);
  const mergedStrings = { ...UIStrings, ...fileStrings };
  const getIcuMessageFn = /* @__PURE__ */ __name((message, values) => {
    const keyname = Object.keys(mergedStrings).find((key) => mergedStrings[key] === message);
    if (!keyname) throw new Error(`Could not locate: ${message}`);
    const filenameToLookup = keyname in fileStrings ? filename : path2.relative(LH_ROOT, getModulePath({ url: "core/lib/i18n/i18n.js" }));
    const unixStyleFilename = filenameToLookup.replace(/\\/g, "/");
    const i18nId = `${unixStyleFilename} | ${keyname}`;
    return {
      i18nId,
      values,
      formattedDefault: formatMessage(message, values, DEFAULT_LOCALE)
    };
  }, "getIcuMessageFn");
  return getIcuMessageFn;
}
function isStringOrIcuMessage(value) {
  return typeof value === "string" || isIcuMessage(value);
}
var import_lookup_closest_locale, UIStrings;
var init_i18n = __esm({
  "core/lib/i18n/i18n.js"() {
    "use strict";
    init_process_global();
    init_url();
    import_lookup_closest_locale = __toESM(require_lookup_closest_locale(), 1);
    init_lighthouse_logger();
    init_format();
    init_root2();
    init_format();
    init_esm_utils();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings = {
      /** Used to show the duration in milliseconds that something lasted. The `{timeInMs}` placeholder will be replaced with the time duration, shown in milliseconds (e.g. 63 ms) */
      ms: "{timeInMs, number, milliseconds} ms",
      /** Used to show the duration in seconds that something lasted. The {timeInMs} placeholder will be replaced with the time duration, shown in seconds (e.g. 5.2 s) */
      seconds: "{timeInMs, number, seconds} s",
      /** Label shown per-audit to show how many bytes smaller the page could be if the user implemented the suggestions. The `{wastedBytes}` placeholder will be replaced with the number of bytes, shown in kibibytes (e.g. 148 KiB) */
      displayValueByteSavings: "Est savings of {wastedBytes, number, bytes} KiB",
      /** Label shown per-audit to show how many milliseconds faster the page load could be if the user implemented the suggestions. The `{wastedMs}` placeholder will be replaced with the time duration, shown in milliseconds (e.g. 140 ms) */
      displayValueMsSavings: "Est savings of {wastedMs, number, milliseconds} ms",
      /** Label shown per-audit to show how many HTML elements did not pass the audit. The `{# elements found}` placeholder will be replaced with the number of failing HTML elements. */
      displayValueElementsFound: `{nodeCount, plural, =1 {1 element found} other {# elements found}}`,
      /** Label for a column in a data table; entries will be the URL of a web resource */
      columnURL: "URL",
      /** Label for a column in a data table; entries will be the size or quantity of some resource, e.g. the width and height dimensions of an image or the number of images in a web page. */
      columnSize: "Size",
      /** Label for a column in a data table; entries will be the file size of a web resource in kilobytes. */
      columnResourceSize: "Resource Size",
      /** Label for a column in a data table; entries will be the download size of a web resource in kilobytes. */
      columnTransferSize: "Transfer Size",
      /** Label for a column in a data table; entries will be the time to live value of the cache header on a web resource. */
      columnCacheTTL: "Cache TTL",
      /** Label for a column in a data table; entries will be the number of kilobytes the user could reduce their page by if they implemented the suggestions. */
      columnWastedBytes: "Est Savings",
      /** Label for a column in a data table; entries will be the number of milliseconds the user could reduce page load by if they implemented the suggestions. */
      columnWastedMs: "Est Savings",
      /** Label for a table column that displays how much time each row spent blocking other work on the main thread, entries will be the number of milliseconds spent. */
      columnBlockingTime: "Main-Thread Blocking Time",
      /** Label for a column in a data table; entries will be the number of milliseconds spent during a particular activity. */
      columnTimeSpent: "Time Spent",
      /** Label for a column in a data table; entries will be the location of a specific line of code in a file, in the format "line: 102". */
      columnLocation: "Location",
      /** Label for a column in a data table; entries will be types of resources loaded over the network, e.g. "Scripts", "Third-Party", "Stylesheet". */
      columnResourceType: "Resource Type",
      /** Label for a column in a data table; entries will be the number of network requests done by a webpage. */
      columnRequests: "Requests",
      /** Label for a column in a data table; entries will be the names of arbitrary objects, e.g. the name of a Javascript library, or the name of a user defined timing event. */
      columnName: "Name",
      /** Label for a column in a data table; entries will be the locations of JavaScript or CSS code, e.g. the name of a Javascript package or module. */
      columnSource: "Source",
      /** Label for a column in a data table; entries will be a representation of a DOM element. */
      columnElement: "Element",
      /** Label for a column in a data table; entries will be the number of milliseconds since the page started loading. */
      columnStartTime: "Start Time",
      /** Label for a column in a data table; entries will be the total number of milliseconds from the start time until the end time. */
      columnDuration: "Duration",
      /** Label for a column in a data table; entries will be a representation of a DOM element that did not meet certain suggestions. */
      columnFailingElem: "Failing Elements",
      /** Label for a column in a data table; entries will be a description of the table item. */
      columnDescription: "Description",
      /** Label for a row in a data table; the row represents the total number of something. */
      total: "Total",
      /** Label for a row in a data table; entries will be the total number and byte size of all resources loaded by a web page. */
      totalResourceType: "Total",
      /** Label for a row in a data table; entries will be the total number and byte size of all 'Document' resources loaded by a web page. */
      documentResourceType: "Document",
      /** Label for a row in a data table; entries will be the total number and byte size of all 'Script' resources loaded by a web page. 'Script' refers to JavaScript or other files that are executable by a browser. */
      scriptResourceType: "Script",
      /** Label for a row in a data table; entries will be the total number and byte size of all 'Stylesheet' resources loaded by a web page. 'Stylesheet' refers to CSS stylesheets. */
      stylesheetResourceType: "Stylesheet",
      /** Label for a row in a data table; entries will be the total number and byte size of all 'Image' resources loaded by a web page. */
      imageResourceType: "Image",
      /** Label for a row in a data table; entries will be the total number and byte size of all 'Media' resources loaded by a web page. 'Media' refers to audio and video files. */
      mediaResourceType: "Media",
      /** Label for a row in a data table; entries will be the total number and byte size of all 'Font' resources loaded by a web page. */
      fontResourceType: "Font",
      /** Label for a row in a data table; entries will be the total number and byte size of all resources loaded by a web page that don't fit into the categories of Document, Script, Stylesheet, Image, Media, & Font.*/
      otherResourceType: "Other",
      /** Label for a row in a data table; entries will be the total number and byte size of all third-party resources loaded by a web page. 'Third-party resources are items loaded from URLs that aren't controlled by the owner of the web page. */
      thirdPartyResourceType: "Third-party",
      /** Label used to identify a value in a table where many individual values are aggregated to a single value, for brevity. "Other resources" could also be read as "the rest of the resources". Resource refers to network resources requested by the browser. */
      otherResourcesLabel: "Other resources",
      /** The name of the metric that marks the time at which the first text or image is painted by the browser. Shown to users as the label for the numeric metric value. Ideally fits within a ~40 character limit. */
      firstContentfulPaintMetric: "First Contentful Paint",
      /** The name of the metric that marks the time at which the page is fully loaded and is able to quickly respond to user input (clicks, taps, and keypresses feel responsive). Shown to users as the label for the numeric metric value. Ideally fits within a ~40 character limit. */
      interactiveMetric: "Time to Interactive",
      /** The name of the metric that marks the time at which a majority of the content has been painted by the browser. Shown to users as the label for the numeric metric value. Ideally fits within a ~40 character limit. */
      firstMeaningfulPaintMetric: "First Meaningful Paint",
      /** The name of a metric that calculates the total duration of blocking time for a web page. Blocking times are time periods when the page would be blocked (prevented) from responding to user input (clicks, taps, and keypresses will feel slow to respond). Shown to users as the label for the numeric metric value. Ideally fits within a ~40 character limit. */
      totalBlockingTimeMetric: "Total Blocking Time",
      /** The name of the metric "Maximum Potential First Input Delay" that marks the maximum estimated time between the page receiving input (a user clicking, tapping, or typing) and the page responding. Shown to users as the label for the numeric metric value. Ideally fits within a ~40 character limit. */
      maxPotentialFIDMetric: "Max Potential First Input Delay",
      /** The name of the metric that summarizes how quickly the page looked visually complete. The name of this metric is largely abstract and can be loosely translated. Shown to users as the label for the numeric metric value. Ideally fits within a ~40 character limit. */
      speedIndexMetric: "Speed Index",
      /** The name of the metric that marks the time at which the largest text or image is painted by the browser. Shown to users as the label for the numeric metric value. Ideally fits within a ~40 character limit. */
      largestContentfulPaintMetric: "Largest Contentful Paint",
      /** The name of the metric "Cumulative Layout Shift" that indicates how much the page changes its layout while it loads. If big segments of the page shift their location during load, the Cumulative Layout Shift will be higher. Shown to users as the label for the numeric metric value. Ideally fits within a ~40 character limit. */
      cumulativeLayoutShiftMetric: "Cumulative Layout Shift",
      /** The name of the "Interaction to Next Paint" metric that measures the time between a user interaction and when the browser displays a response on screen. Shown to users as the label for the numeric metric value. Ideally fits within a ~40 character limit. */
      interactionToNextPaint: "Interaction to Next Paint",
      /** Table item value for the severity of a small, or low impact vulnerability. Part of a ranking scale in the form: low, medium, high. */
      itemSeverityLow: "Low",
      /** Table item value for the severity of a vulnerability. Part of a ranking scale in the form: low, medium, high. */
      itemSeverityMedium: "Medium",
      /** Table item value for the severity of a high impact, or dangerous vulnerability. Part of a ranking scale in the form: low, medium, high. */
      itemSeverityHigh: "High"
    };
    __name(lookupLocale, "lookupLocale");
    __name(createIcuMessageFn, "createIcuMessageFn");
    __name(isStringOrIcuMessage, "isStringOrIcuMessage");
  }
});

// core/lib/stack-packs.js
function getStackPacks(pageStacks) {
  if (!pageStacks) return [];
  const packs = [];
  for (const pageStack of pageStacks) {
    const stackPackToIncl = stackPacksToInclude.find((stackPackToIncl2) => stackPackToIncl2.requiredStacks.includes(`${pageStack.detector}:${pageStack.id}`));
    if (!stackPackToIncl) {
      continue;
    }
    const matchedPack = import_lighthouse_stack_packs.default.find((pack) => pack.id === stackPackToIncl.packId);
    if (!matchedPack) {
      lighthouse_logger_default.warn(
        "StackPacks",
        `'${stackPackToIncl.packId}' stack pack was matched but is not found in stack-packs lib`
      );
      continue;
    }
    const str_115 = createIcuMessageFn(
      `node_modules/lighthouse-stack-packs/packs/${matchedPack.id}.js`,
      matchedPack.UIStrings
    );
    const descriptions = {};
    const UIStrings136 = matchedPack.UIStrings;
    for (const key in UIStrings136) {
      if (UIStrings136[key]) {
        descriptions[key] = str_115(UIStrings136[key]);
      }
    }
    packs.push({
      id: matchedPack.id,
      title: matchedPack.title,
      iconDataURL: matchedPack.icon,
      descriptions
    });
  }
  return packs.sort((a, b) => {
    const aVal = stackPacksToInclude.findIndex((p) => p.packId === a.id);
    const bVal = stackPacksToInclude.findIndex((p) => p.packId === b.id);
    return aVal - bVal;
  });
}
var import_lighthouse_stack_packs, stackPacksToInclude;
var init_stack_packs = __esm({
  "core/lib/stack-packs.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    import_lighthouse_stack_packs = __toESM(require_lighthouse_stack_packs(), 1);
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    stackPacksToInclude = [
      {
        packId: "gatsby",
        requiredStacks: ["js:gatsby"]
      },
      {
        packId: "wordpress",
        requiredStacks: ["js:wordpress"]
      },
      {
        packId: "wix",
        requiredStacks: ["js:wix"]
      },
      {
        packId: "wp-rocket",
        requiredStacks: ["js:wp-rocket"]
      },
      {
        packId: "ezoic",
        requiredStacks: ["js:ezoic"]
      },
      {
        packId: "drupal",
        requiredStacks: ["js:drupal"]
      },
      {
        packId: "nitropack",
        requiredStacks: ["js:nitropack"]
      },
      {
        packId: "amp",
        requiredStacks: ["js:amp"]
      },
      {
        packId: "magento",
        requiredStacks: ["js:magento"]
      },
      {
        packId: "octobercms",
        requiredStacks: ["js:octobercms"]
      },
      {
        packId: "joomla",
        requiredStacks: ["js:joomla"]
      },
      {
        packId: "next.js",
        requiredStacks: ["js:next"]
      },
      {
        packId: "nuxt",
        requiredStacks: ["js:nuxt"]
      },
      {
        packId: "angular",
        requiredStacks: ["js:angular"]
      },
      {
        packId: "react",
        requiredStacks: ["js:react"]
      }
    ];
    __name(getStackPacks, "getStackPacks");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/core/LanternError.js
var LanternError;
var init_LanternError = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/core/LanternError.js"() {
    init_process_global();
    LanternError = class extends Error {
      static {
        __name(this, "LanternError");
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/core/NetworkAnalyzer.js
var UrlUtils, INITIAL_CWD, DEFAULT_SERVER_RESPONSE_PERCENTAGE, SERVER_RESPONSE_PERCENTAGE_OF_TTFB, NetworkAnalyzer;
var init_NetworkAnalyzer = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/core/NetworkAnalyzer.js"() {
    init_process_global();
    UrlUtils = class {
      static {
        __name(this, "UrlUtils");
      }
      /**
       * There is fancy URL rewriting logic for the chrome://settings page that we need to work around.
       * Why? Special handling was added by Chrome team to allow a pushState transition between chrome:// pages.
       * As a result, the network URL (chrome://chrome/settings/) doesn't match the final document URL (chrome://settings/).
       */
      static rewriteChromeInternalUrl(url) {
        if (!url?.startsWith("chrome://")) {
          return url;
        }
        if (url.endsWith("/")) {
          url = url.replace(/\/$/, "");
        }
        return url.replace(/^chrome:\/\/chrome\//, "chrome://");
      }
      /**
       * Determine if url1 equals url2, ignoring URL fragments.
       */
      static equalWithExcludedFragments(url1, url2) {
        [url1, url2] = [url1, url2].map(this.rewriteChromeInternalUrl);
        try {
          const urla = new URL(url1);
          urla.hash = "";
          const urlb = new URL(url2);
          urlb.hash = "";
          return urla.href === urlb.href;
        } catch {
          return false;
        }
      }
    };
    INITIAL_CWD = 14 * 1024;
    DEFAULT_SERVER_RESPONSE_PERCENTAGE = 0.4;
    SERVER_RESPONSE_PERCENTAGE_OF_TTFB = {
      Document: 0.9,
      XHR: 0.9,
      Fetch: 0.9
    };
    NetworkAnalyzer = class _NetworkAnalyzer {
      static {
        __name(this, "NetworkAnalyzer");
      }
      static get summary() {
        return "__SUMMARY__";
      }
      static groupByOrigin(records) {
        const grouped = /* @__PURE__ */ new Map();
        records.forEach((item) => {
          const key = item.parsedURL.securityOrigin;
          if (key.startsWith("chrome-extension:")) {
            return;
          }
          const group = grouped.get(key) || [];
          group.push(item);
          grouped.set(key, group);
        });
        return grouped;
      }
      static getSummary(values) {
        values.sort((a, b) => a - b);
        let median;
        if (values.length === 0) {
          median = values[0];
        } else if (values.length % 2 === 0) {
          const a = values[Math.floor((values.length - 1) / 2)];
          const b = values[Math.floor((values.length - 1) / 2) + 1];
          median = (a + b) / 2;
        } else {
          median = values[Math.floor((values.length - 1) / 2)];
        }
        return {
          min: values[0],
          max: values[values.length - 1],
          avg: values.reduce((a, b) => a + b, 0) / values.length,
          median
        };
      }
      static summarize(values) {
        const summaryByKey = /* @__PURE__ */ new Map();
        const allEstimates = [];
        for (const [key, estimates] of values) {
          summaryByKey.set(key, _NetworkAnalyzer.getSummary(estimates));
          allEstimates.push(...estimates);
        }
        summaryByKey.set(_NetworkAnalyzer.summary, _NetworkAnalyzer.getSummary(allEstimates));
        return summaryByKey;
      }
      static estimateValueByOrigin(requests, iteratee) {
        const connectionWasReused = _NetworkAnalyzer.estimateIfConnectionWasReused(requests);
        const groupedByOrigin = _NetworkAnalyzer.groupByOrigin(requests);
        const estimates = /* @__PURE__ */ new Map();
        for (const [origin, originRequests] of groupedByOrigin.entries()) {
          let originEstimates = [];
          for (const request of originRequests) {
            const timing = request.timing;
            if (!timing) {
              continue;
            }
            const value = iteratee({
              request,
              timing,
              connectionReused: connectionWasReused.get(request.requestId)
            });
            if (typeof value !== "undefined") {
              originEstimates = originEstimates.concat(value);
            }
          }
          if (!originEstimates.length) {
            continue;
          }
          estimates.set(origin, originEstimates);
        }
        return estimates;
      }
      /**
       * Estimates the observed RTT to each origin based on how long the connection setup.
       * For h1 and h2, this could includes two estimates - one for the TCP handshake, another for
       * SSL negotiation.
       * For h3, we get only one estimate since QUIC establishes a secure connection in a
       * single handshake.
       * This is the most accurate and preferred method of measurement when the data is available.
       */
      static estimateRTTViaConnectionTiming(info) {
        const { timing, connectionReused, request } = info;
        if (connectionReused) {
          return;
        }
        const { connectStart, sslStart, sslEnd, connectEnd } = timing;
        if (connectEnd >= 0 && connectStart >= 0 && request.protocol.startsWith("h3")) {
          return connectEnd - connectStart;
        }
        if (sslStart >= 0 && sslEnd >= 0 && sslStart !== connectStart) {
          return [connectEnd - sslStart, sslStart - connectStart];
        }
        if (connectStart >= 0 && connectEnd >= 0) {
          return connectEnd - connectStart;
        }
        return;
      }
      /**
       * Estimates the observed RTT to each origin based on how long a download took on a fresh connection.
       * NOTE: this will tend to overestimate the actual RTT quite significantly as the download can be
       * slow for other reasons as well such as bandwidth constraints.
       */
      static estimateRTTViaDownloadTiming(info) {
        const { timing, connectionReused, request } = info;
        if (connectionReused) {
          return;
        }
        if (request.transferSize <= INITIAL_CWD) {
          return;
        }
        if (!Number.isFinite(timing.receiveHeadersEnd) || timing.receiveHeadersEnd < 0) {
          return;
        }
        const totalTime = request.networkEndTime - request.networkRequestTime;
        const downloadTimeAfterFirstByte = totalTime - timing.receiveHeadersEnd;
        const numberOfRoundTrips = Math.log2(request.transferSize / INITIAL_CWD);
        if (numberOfRoundTrips > 5) {
          return;
        }
        return downloadTimeAfterFirstByte / numberOfRoundTrips;
      }
      /**
       * Estimates the observed RTT to each origin based on how long it took until Chrome could
       * start sending the actual request when a new connection was required.
       * NOTE: this will tend to overestimate the actual RTT as the request can be delayed for other
       * reasons as well such as more SSL handshakes if TLS False Start is not enabled.
       */
      static estimateRTTViaSendStartTiming(info) {
        const { timing, connectionReused, request } = info;
        if (connectionReused) {
          return;
        }
        if (!Number.isFinite(timing.sendStart) || timing.sendStart < 0) {
          return;
        }
        let roundTrips = 1;
        if (!request.protocol.startsWith("h3")) {
          roundTrips += 1;
        }
        if (request.parsedURL.scheme === "https") {
          roundTrips += 1;
        }
        return timing.sendStart / roundTrips;
      }
      /**
       * Estimates the observed RTT to each origin based on how long it took until Chrome received the
       * headers of the response (~TTFB).
       * NOTE: this is the most inaccurate way to estimate the RTT, but in some environments it's all
       * we have access to :(
       */
      static estimateRTTViaHeadersEndTiming(info) {
        const { timing, connectionReused, request } = info;
        if (!Number.isFinite(timing.receiveHeadersEnd) || timing.receiveHeadersEnd < 0) {
          return;
        }
        if (!request.resourceType) {
          return;
        }
        const serverResponseTimePercentage = SERVER_RESPONSE_PERCENTAGE_OF_TTFB[request.resourceType] || DEFAULT_SERVER_RESPONSE_PERCENTAGE;
        const estimatedServerResponseTime = timing.receiveHeadersEnd * serverResponseTimePercentage;
        let roundTrips = 1;
        if (!connectionReused) {
          roundTrips += 1;
          if (!request.protocol.startsWith("h3")) {
            roundTrips += 1;
          }
          if (request.parsedURL.scheme === "https") {
            roundTrips += 1;
          }
        }
        return Math.max((timing.receiveHeadersEnd - estimatedServerResponseTime) / roundTrips, 3);
      }
      /**
       * Given the RTT to each origin, estimates the observed server response times.
       */
      static estimateResponseTimeByOrigin(records, rttByOrigin) {
        return _NetworkAnalyzer.estimateValueByOrigin(records, ({ request, timing }) => {
          if (request.serverResponseTime !== void 0) {
            return request.serverResponseTime;
          }
          if (!Number.isFinite(timing.receiveHeadersEnd) || timing.receiveHeadersEnd < 0) {
            return;
          }
          if (!Number.isFinite(timing.sendEnd) || timing.sendEnd < 0) {
            return;
          }
          const ttfb = timing.receiveHeadersEnd - timing.sendEnd;
          const origin = request.parsedURL.securityOrigin;
          const rtt = rttByOrigin.get(origin) || rttByOrigin.get(_NetworkAnalyzer.summary) || 0;
          return Math.max(ttfb - rtt, 0);
        });
      }
      static canTrustConnectionInformation(requests) {
        const connectionIdWasStarted = /* @__PURE__ */ new Map();
        for (const request of requests) {
          const started = connectionIdWasStarted.get(request.connectionId) || !request.connectionReused;
          connectionIdWasStarted.set(request.connectionId, started);
        }
        if (connectionIdWasStarted.size <= 1) {
          return false;
        }
        return Array.from(connectionIdWasStarted.values()).every((started) => started);
      }
      /**
       * Returns a map of requestId -> connectionReused, estimating the information if the information
       * available in the records themselves appears untrustworthy.
       */
      static estimateIfConnectionWasReused(records, options) {
        const { forceCoarseEstimates = false } = options || {};
        if (!forceCoarseEstimates && _NetworkAnalyzer.canTrustConnectionInformation(records)) {
          return new Map(records.map((request) => [request.requestId, Boolean(request.connectionReused)]));
        }
        const connectionWasReused = /* @__PURE__ */ new Map();
        const groupedByOrigin = _NetworkAnalyzer.groupByOrigin(records);
        for (const originRecords of groupedByOrigin.values()) {
          const earliestReusePossible = originRecords.map((request) => request.networkEndTime).reduce((a, b) => Math.min(a, b), Infinity);
          for (const request of originRecords) {
            connectionWasReused.set(request.requestId, request.networkRequestTime >= earliestReusePossible || request.protocol === "h2");
          }
          const firstRecord = originRecords.reduce((a, b) => {
            return a.networkRequestTime > b.networkRequestTime ? b : a;
          });
          connectionWasReused.set(firstRecord.requestId, false);
        }
        return connectionWasReused;
      }
      /**
       * Estimates the RTT to each origin by examining observed network timing information.
       * Attempts to use the most accurate information first and falls back to coarser estimates when it
       * is unavailable.
       */
      static estimateRTTByOrigin(records, options) {
        const {
          forceCoarseEstimates = false,
          // coarse estimates include lots of extra time and noise
          // multiply by some factor to deflate the estimates a bit.
          coarseEstimateMultiplier = 0.3,
          useDownloadEstimates = true,
          useSendStartEstimates = true,
          useHeadersEndEstimates = true
        } = options || {};
        const connectionWasReused = _NetworkAnalyzer.estimateIfConnectionWasReused(records);
        const groupedByOrigin = _NetworkAnalyzer.groupByOrigin(records);
        const estimatesByOrigin = /* @__PURE__ */ new Map();
        for (const [origin, originRequests] of groupedByOrigin.entries()) {
          let collectEstimates = function(estimator, multiplier = 1) {
            for (const request of originRequests) {
              const timing = request.timing;
              if (!timing || !request.transferSize) {
                continue;
              }
              const estimates = estimator({
                request,
                timing,
                connectionReused: connectionWasReused.get(request.requestId)
              });
              if (estimates === void 0) {
                continue;
              }
              if (!Array.isArray(estimates)) {
                originEstimates.push(estimates * multiplier);
              } else {
                originEstimates.push(...estimates.map((e) => e * multiplier));
              }
            }
          };
          __name(collectEstimates, "collectEstimates");
          const originEstimates = [];
          if (!forceCoarseEstimates) {
            collectEstimates(this.estimateRTTViaConnectionTiming);
          }
          if (!originEstimates.length) {
            if (useDownloadEstimates) {
              collectEstimates(this.estimateRTTViaDownloadTiming, coarseEstimateMultiplier);
            }
            if (useSendStartEstimates) {
              collectEstimates(this.estimateRTTViaSendStartTiming, coarseEstimateMultiplier);
            }
            if (useHeadersEndEstimates) {
              collectEstimates(this.estimateRTTViaHeadersEndTiming, coarseEstimateMultiplier);
            }
          }
          if (originEstimates.length) {
            estimatesByOrigin.set(origin, originEstimates);
          }
        }
        return _NetworkAnalyzer.summarize(estimatesByOrigin);
      }
      static estimateMinimumRTTByOrigin(records, options) {
        const rttByOrigin = /* @__PURE__ */ new Map();
        for (const [origin, summary] of _NetworkAnalyzer.estimateRTTByOrigin(records, options).entries()) {
          rttByOrigin.set(origin, summary.min);
        }
        return rttByOrigin;
      }
      /**
       * Estimates the server response time of each origin. RTT times must be passed in.
       */
      static estimateServerResponseTimeByOrigin(records, options) {
        const estimatesByOrigin = _NetworkAnalyzer.estimateResponseTimeByOrigin(records, options.rttByOrigin);
        return _NetworkAnalyzer.summarize(estimatesByOrigin);
      }
      /**
       * Computes the average throughput for the given requests in bits/second.
       * Excludes data URI, failed or otherwise incomplete, and cached requests.
       * Returns null if there were no analyzable network requests.
       */
      static estimateThroughput(records) {
        let totalBytes = 0;
        const timeBoundaries = records.reduce((boundaries, request) => {
          const scheme = request.parsedURL?.scheme;
          if (scheme === "data" || request.failed || !request.finished || request.statusCode > 300 || !request.transferSize) {
            return boundaries;
          }
          totalBytes += request.transferSize;
          boundaries.push({ time: request.responseHeadersEndTime / 1e3, isStart: true });
          boundaries.push({ time: request.networkEndTime / 1e3, isStart: false });
          return boundaries;
        }, []).sort((a, b) => a.time - b.time);
        if (!timeBoundaries.length) {
          return null;
        }
        let inflight = 0;
        let currentStart = 0;
        let totalDuration = 0;
        timeBoundaries.forEach((boundary) => {
          if (boundary.isStart) {
            if (inflight === 0) {
              currentStart = boundary.time;
            }
            inflight++;
          } else {
            inflight--;
            if (inflight === 0) {
              totalDuration += boundary.time - currentStart;
            }
          }
        });
        return totalBytes * 8 / totalDuration;
      }
      static computeRTTAndServerResponseTime(records) {
        const rttByOrigin = _NetworkAnalyzer.estimateMinimumRTTByOrigin(records);
        const minimumRtt = rttByOrigin.size ? Math.min(...Array.from(rttByOrigin.values())) : 0;
        const responseTimeSummaries = _NetworkAnalyzer.estimateServerResponseTimeByOrigin(records, {
          rttByOrigin
        });
        const additionalRttByOrigin = /* @__PURE__ */ new Map();
        const serverResponseTimeByOrigin = /* @__PURE__ */ new Map();
        for (const [origin, summary] of responseTimeSummaries.entries()) {
          const rttForOrigin = rttByOrigin.get(origin) || minimumRtt;
          additionalRttByOrigin.set(origin, rttForOrigin - minimumRtt);
          serverResponseTimeByOrigin.set(origin, summary.median);
        }
        return {
          rtt: minimumRtt,
          additionalRttByOrigin,
          serverResponseTimeByOrigin
        };
      }
      static analyze(records) {
        const throughput = _NetworkAnalyzer.estimateThroughput(records);
        if (throughput === null) {
          return null;
        }
        return {
          throughput,
          ..._NetworkAnalyzer.computeRTTAndServerResponseTime(records)
        };
      }
      static findResourceForUrl(records, resourceUrl) {
        return records.find((request) => resourceUrl.startsWith(request.url) && UrlUtils.equalWithExcludedFragments(request.url, resourceUrl));
      }
      static findLastDocumentForUrl(records, resourceUrl) {
        const matchingRequests = records.filter((request) => request.resourceType === "Document" && !request.failed && // Note: `request.url` should never have a fragment, else this optimization gives wrong results.
        resourceUrl.startsWith(request.url) && UrlUtils.equalWithExcludedFragments(request.url, resourceUrl));
        return matchingRequests[matchingRequests.length - 1];
      }
      /**
       * Resolves redirect chain given a main document.
       * See: {@link NetworkAnalyzer.findLastDocumentForUrl} for how to retrieve main document.
       */
      static resolveRedirects(request) {
        while (request.redirectDestination) {
          request = request.redirectDestination;
        }
        return request;
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/core/core.js
var core_exports = {};
__export(core_exports, {
  LanternError: () => LanternError,
  NetworkAnalyzer: () => NetworkAnalyzer
});
var init_core = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/core/core.js"() {
    init_process_global();
    init_LanternError();
    init_NetworkAnalyzer();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/graph/BaseNode.js
var BaseNode;
var init_BaseNode = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/graph/BaseNode.js"() {
    init_process_global();
    init_core();
    BaseNode = class _BaseNode {
      static {
        __name(this, "BaseNode");
      }
      static types = {
        NETWORK: "network",
        CPU: "cpu"
      };
      _id;
      _isMainDocument;
      dependents;
      dependencies;
      constructor(id) {
        this._id = id;
        this._isMainDocument = false;
        this.dependents = [];
        this.dependencies = [];
      }
      get id() {
        return this._id;
      }
      get type() {
        throw new LanternError("Unimplemented");
      }
      /**
       * In microseconds
       */
      get startTime() {
        throw new LanternError("Unimplemented");
      }
      /**
       * In microseconds
       */
      get endTime() {
        throw new LanternError("Unimplemented");
      }
      setIsMainDocument(value) {
        this._isMainDocument = value;
      }
      isMainDocument() {
        return this._isMainDocument;
      }
      getDependents() {
        return this.dependents.slice();
      }
      getNumberOfDependents() {
        return this.dependents.length;
      }
      getDependencies() {
        return this.dependencies.slice();
      }
      getNumberOfDependencies() {
        return this.dependencies.length;
      }
      getRootNode() {
        let rootNode = this;
        while (rootNode.dependencies.length) {
          rootNode = rootNode.dependencies[0];
        }
        return rootNode;
      }
      addDependent(node) {
        node.addDependency(this);
      }
      addDependency(node) {
        if (node === this) {
          throw new LanternError("Cannot add dependency on itself");
        }
        if (this.dependencies.includes(node)) {
          return;
        }
        node.dependents.push(this);
        this.dependencies.push(node);
      }
      removeDependent(node) {
        node.removeDependency(this);
      }
      removeDependency(node) {
        if (!this.dependencies.includes(node)) {
          return;
        }
        const thisIndex = node.dependents.indexOf(this);
        node.dependents.splice(thisIndex, 1);
        this.dependencies.splice(this.dependencies.indexOf(node), 1);
      }
      // Unused in devtools, but used in LH.
      removeAllDependencies() {
        for (const node of this.dependencies.slice()) {
          this.removeDependency(node);
        }
      }
      /**
       * Computes whether the given node is anywhere in the dependency graph of this node.
       * While this method can prevent cycles, it walks the graph and should be used sparingly.
       * Nodes are always considered dependent on themselves for the purposes of cycle detection.
       */
      isDependentOn(node) {
        let isDependentOnNode = false;
        this.traverse((currentNode) => {
          if (isDependentOnNode) {
            return;
          }
          isDependentOnNode = currentNode === node;
        }, (currentNode) => {
          if (isDependentOnNode) {
            return [];
          }
          return currentNode.getDependencies();
        });
        return isDependentOnNode;
      }
      /**
       * Clones the node's information without adding any dependencies/dependents.
       */
      cloneWithoutRelationships() {
        const node = new _BaseNode(this.id);
        node.setIsMainDocument(this._isMainDocument);
        return node;
      }
      /**
       * Clones the entire graph connected to this node filtered by the optional predicate. If a node is
       * included by the predicate, all nodes along the paths between the node and the root will be included. If the
       * node this was called on is not included in the resulting filtered graph, the method will throw.
       *
       * This does not clone NetworkNode's `record` or `rawRecord` fields. It may be reasonable to clone the former,
       * to assist in graph construction, but the latter should never be cloned as one constraint of Lantern is that
       * the underlying data records are accessible for plain object reference equality checks.
       */
      cloneWithRelationships(predicate) {
        const rootNode = this.getRootNode();
        const idsToIncludedClones = /* @__PURE__ */ new Map();
        rootNode.traverse((node) => {
          if (idsToIncludedClones.has(node.id)) {
            return;
          }
          if (predicate === void 0) {
            idsToIncludedClones.set(node.id, node.cloneWithoutRelationships());
            return;
          }
          if (predicate(node)) {
            node.traverse(
              (node2) => idsToIncludedClones.set(node2.id, node2.cloneWithoutRelationships()),
              // Dependencies already cloned have already cloned ancestors, so no need to visit again.
              (node2) => node2.dependencies.filter((parent) => !idsToIncludedClones.has(parent.id))
            );
          }
        });
        rootNode.traverse((originalNode) => {
          const clonedNode = idsToIncludedClones.get(originalNode.id);
          if (!clonedNode) {
            return;
          }
          for (const dependency of originalNode.dependencies) {
            const clonedDependency = idsToIncludedClones.get(dependency.id);
            if (!clonedDependency) {
              throw new LanternError("Dependency somehow not cloned");
            }
            clonedNode.addDependency(clonedDependency);
          }
        });
        const clonedThisNode = idsToIncludedClones.get(this.id);
        if (!clonedThisNode) {
          throw new LanternError("Cloned graph missing node");
        }
        return clonedThisNode;
      }
      /**
       * Traverses all connected nodes in BFS order, calling `callback` exactly once
       * on each. `traversalPath` is the shortest (though not necessarily unique)
       * path from `node` to the root of the iteration.
       *
       * The `getNextNodes` function takes a visited node and returns which nodes to
       * visit next. It defaults to returning the node's dependents.
       */
      traverse(callback, getNextNodes) {
        for (const { node, traversalPath } of this.traverseGenerator(getNextNodes)) {
          callback(node, traversalPath);
        }
      }
      /**
       * @see BaseNode.traverse
       */
      // clang-format off
      *traverseGenerator(getNextNodes) {
        if (!getNextNodes) {
          getNextNodes = /* @__PURE__ */ __name((node) => node.getDependents(), "getNextNodes");
        }
        const queue = [[this]];
        const visited = /* @__PURE__ */ new Set([this.id]);
        while (queue.length) {
          const traversalPath = queue.shift();
          const node = traversalPath[0];
          yield { node, traversalPath };
          for (const nextNode of getNextNodes(node)) {
            if (visited.has(nextNode.id)) {
              continue;
            }
            visited.add(nextNode.id);
            queue.push([nextNode, ...traversalPath]);
          }
        }
      }
      /**
       * If the given node has a cycle, returns a path representing that cycle.
       * Else returns null.
       *
       * Does a DFS on in its dependent graph.
       */
      static findCycle(node, direction = "both") {
        if (direction === "both") {
          return _BaseNode.findCycle(node, "dependents") || _BaseNode.findCycle(node, "dependencies");
        }
        const visited = /* @__PURE__ */ new Set();
        const currentPath = [];
        const toVisit = [node];
        const depthAdded = /* @__PURE__ */ new Map([[node, 0]]);
        while (toVisit.length) {
          const currentNode = toVisit.pop();
          if (currentPath.includes(currentNode)) {
            return currentPath;
          }
          if (visited.has(currentNode)) {
            continue;
          }
          while (currentPath.length > depthAdded.get(currentNode)) {
            currentPath.pop();
          }
          visited.add(currentNode);
          currentPath.push(currentNode);
          const nodesToExplore = direction === "dependents" ? currentNode.dependents : currentNode.dependencies;
          for (const nextNode of nodesToExplore) {
            if (toVisit.includes(nextNode)) {
              continue;
            }
            toVisit.push(nextNode);
            depthAdded.set(nextNode, currentPath.length);
          }
        }
        return null;
      }
      canDependOn(node) {
        return node.startTime <= this.startTime;
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/graph/CPUNode.js
var CPUNode;
var init_CPUNode = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/graph/CPUNode.js"() {
    init_process_global();
    init_BaseNode();
    CPUNode = class _CPUNode extends BaseNode {
      static {
        __name(this, "CPUNode");
      }
      _event;
      _childEvents;
      correctedEndTs;
      constructor(parentEvent, childEvents = [], correctedEndTs) {
        const nodeId = `${parentEvent.tid}.${parentEvent.ts}`;
        super(nodeId);
        this._event = parentEvent;
        this._childEvents = childEvents;
        this.correctedEndTs = correctedEndTs;
      }
      get type() {
        return BaseNode.types.CPU;
      }
      get startTime() {
        return this._event.ts;
      }
      get endTime() {
        if (this.correctedEndTs) {
          return this.correctedEndTs;
        }
        return this._event.ts + this._event.dur;
      }
      get duration() {
        return this.endTime - this.startTime;
      }
      get event() {
        return this._event;
      }
      get childEvents() {
        return this._childEvents;
      }
      /**
       * Returns true if this node contains a Layout task.
       */
      didPerformLayout() {
        return this._childEvents.some((evt) => evt.name === "Layout");
      }
      /**
       * Returns the script URLs that had their EvaluateScript events occur in this task.
       */
      getEvaluateScriptURLs() {
        const urls = /* @__PURE__ */ new Set();
        for (const event of this._childEvents) {
          if (event.name !== "EvaluateScript") {
            continue;
          }
          if (!event.args.data?.url) {
            continue;
          }
          urls.add(event.args.data.url);
        }
        return urls;
      }
      cloneWithoutRelationships() {
        return new _CPUNode(this._event, this._childEvents, this.correctedEndTs);
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/graph/NetworkNode.js
function isNonNetworkProtocol(protocol) {
  const urlScheme = protocol.includes(":") ? protocol.slice(0, protocol.indexOf(":")) : protocol;
  return NON_NETWORK_SCHEMES.includes(urlScheme);
}
var NON_NETWORK_SCHEMES, NetworkNode;
var init_NetworkNode = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/graph/NetworkNode.js"() {
    init_process_global();
    init_BaseNode();
    NON_NETWORK_SCHEMES = [
      "blob",
      // @see https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
      "data",
      // @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
      "intent",
      // @see https://developer.chrome.com/docs/multidevice/android/intents/
      "file",
      // @see https://en.wikipedia.org/wiki/File_URI_scheme
      "filesystem",
      // @see https://developer.mozilla.org/en-US/docs/Web/API/FileSystem
      "chrome-extension"
    ];
    __name(isNonNetworkProtocol, "isNonNetworkProtocol");
    NetworkNode = class _NetworkNode extends BaseNode {
      static {
        __name(this, "NetworkNode");
      }
      _request;
      constructor(networkRequest) {
        super(networkRequest.requestId);
        this._request = networkRequest;
      }
      get type() {
        return BaseNode.types.NETWORK;
      }
      get startTime() {
        return this._request.rendererStartTime * 1e3;
      }
      get endTime() {
        return this._request.networkEndTime * 1e3;
      }
      get rawRequest() {
        return this._request.rawRequest;
      }
      get request() {
        return this._request;
      }
      get initiatorType() {
        return this._request.initiator.type;
      }
      get fromDiskCache() {
        return Boolean(this._request.fromDiskCache);
      }
      get isNonNetworkProtocol() {
        return isNonNetworkProtocol(this.request.protocol) || // But `protocol` can fail to be populated if the request fails, so fallback to scheme.
        isNonNetworkProtocol(this.request.parsedURL.scheme);
      }
      /**
       * Returns whether this network request can be downloaded without a TCP connection.
       * During simulation we treat data coming in over a network connection separately from on-device data.
       */
      get isConnectionless() {
        return this.fromDiskCache || this.isNonNetworkProtocol;
      }
      hasRenderBlockingPriority() {
        const priority = this._request.priority;
        const isScript = this._request.resourceType === "Script";
        const isDocument = this._request.resourceType === "Document";
        const isBlockingScript = priority === "High" && isScript;
        const isBlockingHtmlImport = priority === "High" && isDocument;
        return priority === "VeryHigh" || isBlockingScript || isBlockingHtmlImport;
      }
      cloneWithoutRelationships() {
        const node = new _NetworkNode(this._request);
        node.setIsMainDocument(this._isMainDocument);
        return node;
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/graph/PageDependencyGraph.js
var SCHEDULABLE_TASK_TITLE_LH2, SCHEDULABLE_TASK_TITLE_ALT12, SCHEDULABLE_TASK_TITLE_ALT22, SCHEDULABLE_TASK_TITLE_ALT32, SIGNIFICANT_DUR_THRESHOLD_MS, IGNORED_MIME_TYPES_REGEX, PageDependencyGraph;
var init_PageDependencyGraph = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/graph/PageDependencyGraph.js"() {
    init_process_global();
    init_core();
    init_CPUNode();
    init_NetworkNode();
    SCHEDULABLE_TASK_TITLE_LH2 = "RunTask";
    SCHEDULABLE_TASK_TITLE_ALT12 = "ThreadControllerImpl::RunTask";
    SCHEDULABLE_TASK_TITLE_ALT22 = "ThreadControllerImpl::DoWork";
    SCHEDULABLE_TASK_TITLE_ALT32 = "TaskQueueManager::ProcessTaskFromWorkQueue";
    SIGNIFICANT_DUR_THRESHOLD_MS = 10;
    IGNORED_MIME_TYPES_REGEX = /^video/;
    PageDependencyGraph = class _PageDependencyGraph {
      static {
        __name(this, "PageDependencyGraph");
      }
      static getNetworkInitiators(request) {
        if (!request.initiator) {
          return [];
        }
        if (request.initiator.url) {
          return [request.initiator.url];
        }
        if (request.initiator.type === "script") {
          const scriptURLs = /* @__PURE__ */ new Set();
          let stack = request.initiator.stack;
          while (stack) {
            const callFrames = stack.callFrames || [];
            for (const frame of callFrames) {
              if (frame.url) {
                scriptURLs.add(frame.url);
              }
            }
            stack = stack.parent;
          }
          return Array.from(scriptURLs);
        }
        return [];
      }
      static getNetworkNodeOutput(networkRequests) {
        const nodes = [];
        const idToNodeMap = /* @__PURE__ */ new Map();
        const urlToNodeMap = /* @__PURE__ */ new Map();
        const frameIdToNodeMap = /* @__PURE__ */ new Map();
        networkRequests.forEach((request) => {
          if (IGNORED_MIME_TYPES_REGEX.test(request.mimeType)) {
            return;
          }
          if (request.fromWorker) {
            return;
          }
          while (idToNodeMap.has(request.requestId)) {
            request.requestId += ":duplicate";
          }
          const node = new NetworkNode(request);
          nodes.push(node);
          const urlList = urlToNodeMap.get(request.url) || [];
          urlList.push(node);
          idToNodeMap.set(request.requestId, node);
          urlToNodeMap.set(request.url, urlList);
          if (request.frameId && request.resourceType === "Document" && request.documentURL === request.url) {
            const value = frameIdToNodeMap.has(request.frameId) ? null : node;
            frameIdToNodeMap.set(request.frameId, value);
          }
        });
        return { nodes, idToNodeMap, urlToNodeMap, frameIdToNodeMap };
      }
      static isScheduleableTask(evt) {
        return evt.name === SCHEDULABLE_TASK_TITLE_LH2 || evt.name === SCHEDULABLE_TASK_TITLE_ALT12 || evt.name === SCHEDULABLE_TASK_TITLE_ALT22 || evt.name === SCHEDULABLE_TASK_TITLE_ALT32;
      }
      /**
       * There should *always* be at least one top level event, having 0 typically means something is
       * drastically wrong with the trace and we should just give up early and loudly.
       */
      static assertHasToplevelEvents(events) {
        const hasToplevelTask = events.some(this.isScheduleableTask);
        if (!hasToplevelTask) {
          throw new LanternError("Could not find any top level events");
        }
      }
      static getCPUNodes(mainThreadEvents) {
        const nodes = [];
        let i = 0;
        _PageDependencyGraph.assertHasToplevelEvents(mainThreadEvents);
        while (i < mainThreadEvents.length) {
          const evt = mainThreadEvents[i];
          i++;
          if (!_PageDependencyGraph.isScheduleableTask(evt) || !evt.dur) {
            continue;
          }
          let correctedEndTs = void 0;
          const children = [];
          for (const endTime = evt.ts + evt.dur; i < mainThreadEvents.length && mainThreadEvents[i].ts < endTime; i++) {
            const event = mainThreadEvents[i];
            if (_PageDependencyGraph.isScheduleableTask(event) && event.dur) {
              correctedEndTs = event.ts - 1;
              break;
            }
            children.push(event);
          }
          nodes.push(new CPUNode(evt, children, correctedEndTs));
        }
        return nodes;
      }
      static linkNetworkNodes(rootNode, networkNodeOutput) {
        networkNodeOutput.nodes.forEach((node) => {
          const directInitiatorRequest = node.request.initiatorRequest || rootNode.request;
          const directInitiatorNode = networkNodeOutput.idToNodeMap.get(directInitiatorRequest.requestId) || rootNode;
          const canDependOnInitiator = !directInitiatorNode.isDependentOn(node) && node.canDependOn(directInitiatorNode);
          const initiators = _PageDependencyGraph.getNetworkInitiators(node.request);
          if (initiators.length) {
            initiators.forEach((initiator) => {
              const parentCandidates = networkNodeOutput.urlToNodeMap.get(initiator) || [];
              if (parentCandidates.length === 1 && parentCandidates[0].startTime <= node.startTime && !parentCandidates[0].isDependentOn(node)) {
                node.addDependency(parentCandidates[0]);
              } else if (canDependOnInitiator) {
                directInitiatorNode.addDependent(node);
              }
            });
          } else if (canDependOnInitiator) {
            directInitiatorNode.addDependent(node);
          }
          if (node !== rootNode && node.getDependencies().length === 0 && node.canDependOn(rootNode)) {
            node.addDependency(rootNode);
          }
          if (!node.request.redirects) {
            return;
          }
          const redirects = [...node.request.redirects, node.request];
          for (let i = 1; i < redirects.length; i++) {
            const redirectNode = networkNodeOutput.idToNodeMap.get(redirects[i - 1].requestId);
            const actualNode = networkNodeOutput.idToNodeMap.get(redirects[i].requestId);
            if (actualNode && redirectNode) {
              actualNode.addDependency(redirectNode);
            }
          }
        });
      }
      static linkCPUNodes(rootNode, networkNodeOutput, cpuNodes) {
        const linkableResourceTypes = /* @__PURE__ */ new Set([
          "XHR",
          "Fetch",
          "Script"
        ]);
        function addDependentNetworkRequest(cpuNode, reqId) {
          const networkNode = networkNodeOutput.idToNodeMap.get(reqId);
          if (!networkNode || // Ignore all network nodes that started before this CPU task started
          // A network request that started earlier could not possibly have been started by this task
          networkNode.startTime <= cpuNode.startTime) {
            return;
          }
          const { request } = networkNode;
          const resourceType = request.resourceType || request.redirectDestination?.resourceType;
          if (!linkableResourceTypes.has(resourceType)) {
            return;
          }
          cpuNode.addDependent(networkNode);
        }
        __name(addDependentNetworkRequest, "addDependentNetworkRequest");
        function addDependencyOnFrame(cpuNode, frameId) {
          if (!frameId) {
            return;
          }
          const networkNode = networkNodeOutput.frameIdToNodeMap.get(frameId);
          if (!networkNode) {
            return;
          }
          if (networkNode.startTime >= cpuNode.startTime) {
            return;
          }
          cpuNode.addDependency(networkNode);
        }
        __name(addDependencyOnFrame, "addDependencyOnFrame");
        function addDependencyOnUrl(cpuNode, url) {
          if (!url) {
            return;
          }
          const minimumAllowableTimeSinceNetworkNodeEnd = -100 * 1e3;
          const candidates = networkNodeOutput.urlToNodeMap.get(url) || [];
          let minCandidate = null;
          let minDistance = Infinity;
          for (const candidate of candidates) {
            if (cpuNode.startTime <= candidate.startTime) {
              return;
            }
            const distance = cpuNode.startTime - candidate.endTime;
            if (distance >= minimumAllowableTimeSinceNetworkNodeEnd && distance < minDistance) {
              minCandidate = candidate;
              minDistance = distance;
            }
          }
          if (!minCandidate) {
            return;
          }
          cpuNode.addDependency(minCandidate);
        }
        __name(addDependencyOnUrl, "addDependencyOnUrl");
        const timers = /* @__PURE__ */ new Map();
        for (const node of cpuNodes) {
          for (const evt of node.childEvents) {
            if (!evt.args.data) {
              continue;
            }
            const argsUrl = evt.args.data.url;
            const stackTraceUrls = (evt.args.data.stackTrace || []).map((l) => l.url).filter(Boolean);
            switch (evt.name) {
              case "TimerInstall":
                timers.set(evt.args.data.timerId, node);
                stackTraceUrls.forEach((url) => addDependencyOnUrl(node, url));
                break;
              case "TimerFire": {
                const installer = timers.get(evt.args.data.timerId);
                if (!installer || installer.endTime > node.startTime) {
                  break;
                }
                installer.addDependent(node);
                break;
              }
              case "InvalidateLayout":
              case "ScheduleStyleRecalculation":
                addDependencyOnFrame(node, evt.args.data.frame);
                stackTraceUrls.forEach((url) => addDependencyOnUrl(node, url));
                break;
              case "EvaluateScript":
                addDependencyOnFrame(node, evt.args.data.frame);
                addDependencyOnUrl(node, argsUrl);
                stackTraceUrls.forEach((url) => addDependencyOnUrl(node, url));
                break;
              case "XHRReadyStateChange":
                if (evt.args.data.readyState !== 4) {
                  break;
                }
                addDependencyOnUrl(node, argsUrl);
                stackTraceUrls.forEach((url) => addDependencyOnUrl(node, url));
                break;
              case "FunctionCall":
              case "v8.compile":
                addDependencyOnFrame(node, evt.args.data.frame);
                addDependencyOnUrl(node, argsUrl);
                break;
              case "ParseAuthorStyleSheet":
                addDependencyOnFrame(node, evt.args.data.frame);
                addDependencyOnUrl(node, evt.args.data.styleSheetUrl);
                break;
              case "ResourceSendRequest":
                addDependencyOnFrame(node, evt.args.data.frame);
                addDependentNetworkRequest(node, evt.args.data.requestId);
                stackTraceUrls.forEach((url) => addDependencyOnUrl(node, url));
                break;
            }
          }
          if (node.getNumberOfDependencies() === 0 && node.canDependOn(rootNode)) {
            node.addDependency(rootNode);
          }
        }
        const minimumEvtDur = SIGNIFICANT_DUR_THRESHOLD_MS * 1e3;
        let foundFirstLayout = false;
        let foundFirstPaint = false;
        let foundFirstParse = false;
        for (const node of cpuNodes) {
          let isFirst = false;
          if (!foundFirstLayout && node.childEvents.some((evt) => evt.name === "Layout")) {
            isFirst = foundFirstLayout = true;
          }
          if (!foundFirstPaint && node.childEvents.some((evt) => evt.name === "Paint")) {
            isFirst = foundFirstPaint = true;
          }
          if (!foundFirstParse && node.childEvents.some((evt) => evt.name === "ParseHTML")) {
            isFirst = foundFirstParse = true;
          }
          if (isFirst || node.duration >= minimumEvtDur) {
            continue;
          }
          if (node.getNumberOfDependencies() === 1 || node.getNumberOfDependents() <= 1) {
            _PageDependencyGraph.pruneNode(node);
          }
        }
      }
      /**
       * Removes the given node from the graph, but retains all paths between its dependencies and
       * dependents.
       */
      static pruneNode(node) {
        const dependencies = node.getDependencies();
        const dependents = node.getDependents();
        for (const dependency of dependencies) {
          node.removeDependency(dependency);
          for (const dependent of dependents) {
            dependency.addDependent(dependent);
          }
        }
        for (const dependent of dependents) {
          node.removeDependent(dependent);
        }
      }
      /**
       * TODO: remove when CDT backend in Lighthouse is gone. Until then, this is a useful debugging tool
       * to find delta between using CDP or the trace to create the network requests.
       *
       * When a test fails using the trace backend, I enabled this debug method and copied the network
       * requests when CDP was used, then when trace is used, and diff'd them. This method helped
       * remove non-logical differences from the comparison (order of properties, slight rounding
       * discrepancies, removing object cycles, etc).
       *
       * When using for a unit test, make sure to do `.only` so you are getting what you expect.
       */
      static debugNormalizeRequests(lanternRequests) {
        for (const request of lanternRequests) {
          request.rendererStartTime = Math.round(request.rendererStartTime * 1e3) / 1e3;
          request.networkRequestTime = Math.round(request.networkRequestTime * 1e3) / 1e3;
          request.responseHeadersEndTime = Math.round(request.responseHeadersEndTime * 1e3) / 1e3;
          request.networkEndTime = Math.round(request.networkEndTime * 1e3) / 1e3;
        }
        for (const r of lanternRequests) {
          delete r.rawRequest;
          if (r.initiatorRequest) {
            r.initiatorRequest = { id: r.initiatorRequest.requestId };
          }
          if (r.redirectDestination) {
            r.redirectDestination = { id: r.redirectDestination.requestId };
          }
          if (r.redirectSource) {
            r.redirectSource = { id: r.redirectSource.requestId };
          }
          if (r.redirects) {
            r.redirects = r.redirects.map((r2) => r2.requestId);
          }
        }
        const requests = lanternRequests.map((r) => ({
          requestId: r.requestId,
          connectionId: r.connectionId,
          connectionReused: r.connectionReused,
          url: r.url,
          protocol: r.protocol,
          parsedURL: r.parsedURL,
          documentURL: r.documentURL,
          rendererStartTime: r.rendererStartTime,
          networkRequestTime: r.networkRequestTime,
          responseHeadersEndTime: r.responseHeadersEndTime,
          networkEndTime: r.networkEndTime,
          transferSize: r.transferSize,
          resourceSize: r.resourceSize,
          fromDiskCache: r.fromDiskCache,
          fromMemoryCache: r.fromMemoryCache,
          finished: r.finished,
          statusCode: r.statusCode,
          redirectSource: r.redirectSource,
          redirectDestination: r.redirectDestination,
          redirects: r.redirects,
          failed: r.failed,
          initiator: r.initiator,
          timing: r.timing ? {
            requestTime: r.timing.requestTime,
            proxyStart: r.timing.proxyStart,
            proxyEnd: r.timing.proxyEnd,
            dnsStart: r.timing.dnsStart,
            dnsEnd: r.timing.dnsEnd,
            connectStart: r.timing.connectStart,
            connectEnd: r.timing.connectEnd,
            sslStart: r.timing.sslStart,
            sslEnd: r.timing.sslEnd,
            workerStart: r.timing.workerStart,
            workerReady: r.timing.workerReady,
            workerFetchStart: r.timing.workerFetchStart,
            workerRespondWithSettled: r.timing.workerRespondWithSettled,
            sendStart: r.timing.sendStart,
            sendEnd: r.timing.sendEnd,
            pushStart: r.timing.pushStart,
            pushEnd: r.timing.pushEnd,
            receiveHeadersStart: r.timing.receiveHeadersStart,
            receiveHeadersEnd: r.timing.receiveHeadersEnd
          } : r.timing,
          resourceType: r.resourceType,
          mimeType: r.mimeType,
          priority: r.priority,
          initiatorRequest: r.initiatorRequest,
          frameId: r.frameId,
          fromWorker: r.fromWorker,
          isLinkPreload: r.isLinkPreload,
          serverResponseTime: r.serverResponseTime
        })).filter((r) => !r.fromWorker);
        const debug2 = requests;
        console.log(debug2);
      }
      static createGraph(mainThreadEvents, networkRequests, url) {
        const networkNodeOutput = _PageDependencyGraph.getNetworkNodeOutput(networkRequests);
        const cpuNodes = _PageDependencyGraph.getCPUNodes(mainThreadEvents);
        const { requestedUrl, mainDocumentUrl } = url;
        if (!requestedUrl) {
          throw new LanternError("requestedUrl is required to get the root request");
        }
        if (!mainDocumentUrl) {
          throw new LanternError("mainDocumentUrl is required to get the main resource");
        }
        const rootRequest = NetworkAnalyzer.findResourceForUrl(networkRequests, requestedUrl);
        if (!rootRequest) {
          throw new LanternError("rootRequest not found");
        }
        const rootNode = networkNodeOutput.idToNodeMap.get(rootRequest.requestId);
        if (!rootNode) {
          throw new LanternError("rootNode not found");
        }
        const mainDocumentRequest = NetworkAnalyzer.findLastDocumentForUrl(networkRequests, mainDocumentUrl);
        if (!mainDocumentRequest) {
          throw new LanternError("mainDocumentRequest not found");
        }
        const mainDocumentNode = networkNodeOutput.idToNodeMap.get(mainDocumentRequest.requestId);
        if (!mainDocumentNode) {
          throw new LanternError("mainDocumentNode not found");
        }
        _PageDependencyGraph.linkNetworkNodes(rootNode, networkNodeOutput);
        _PageDependencyGraph.linkCPUNodes(rootNode, networkNodeOutput, cpuNodes);
        mainDocumentNode.setIsMainDocument(true);
        if (NetworkNode.findCycle(rootNode)) {
          throw new LanternError("Invalid dependency graph created, cycle detected");
        }
        return rootNode;
      }
      // Unused, but useful for debugging.
      static printGraph(rootNode, widthInCharacters = 80) {
        function padRight(str, target, padChar = " ") {
          return str + padChar.repeat(Math.max(target - str.length, 0));
        }
        __name(padRight, "padRight");
        const nodes = [];
        rootNode.traverse((node) => nodes.push(node));
        nodes.sort((a, b) => a.startTime - b.startTime);
        const nodeToLabel = /* @__PURE__ */ new Map();
        rootNode.traverse((node) => {
          const ascii = 65 + nodeToLabel.size;
          let label;
          if (ascii > 90) {
            label = `Z${ascii - 90}`;
          } else {
            label = String.fromCharCode(ascii);
          }
          nodeToLabel.set(node, label);
        });
        const min = nodes[0].startTime;
        const max = nodes.reduce((max2, node) => Math.max(max2, node.endTime), 0);
        const totalTime = max - min;
        const timePerCharacter = totalTime / widthInCharacters;
        nodes.forEach((node) => {
          const offset = Math.round((node.startTime - min) / timePerCharacter);
          const length = Math.ceil((node.endTime - node.startTime) / timePerCharacter);
          const bar = padRight("", offset) + padRight("", length, "=");
          const displayName = node.request ? node.request.url : node.type;
          console.log(padRight(bar, widthInCharacters), `| ${displayName.slice(0, 50)}`);
        });
        console.log();
        nodes.forEach((node) => {
          const displayName = node.request ? node.request.url : node.type;
          console.log(nodeToLabel.get(node), displayName.slice(0, widthInCharacters - 5));
          for (const child of node.dependents) {
            const displayName2 = child.request ? child.request.url : child.type;
            console.log("  ->", nodeToLabel.get(child), displayName2.slice(0, widthInCharacters - 10));
          }
          console.log();
        });
        const cyclePath = NetworkNode.findCycle(rootNode);
        console.log("Cycle?", cyclePath ? "yes" : "no");
        if (cyclePath) {
          const path7 = [...cyclePath];
          path7.push(path7[0]);
          console.log(path7.map((node) => nodeToLabel.get(node)).join(" -> "));
        }
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/graph/graph.js
var graph_exports = {};
__export(graph_exports, {
  BaseNode: () => BaseNode,
  CPUNode: () => CPUNode,
  NetworkNode: () => NetworkNode,
  PageDependencyGraph: () => PageDependencyGraph
});
var init_graph = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/graph/graph.js"() {
    init_process_global();
    init_BaseNode();
    init_CPUNode();
    init_NetworkNode();
    init_PageDependencyGraph();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/Metric.js
var Metric;
var init_Metric = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/Metric.js"() {
    init_process_global();
    init_core();
    init_graph();
    Metric = class {
      static {
        __name(this, "Metric");
      }
      static getScriptUrls(dependencyGraph, treatNodeAsRenderBlocking) {
        const scriptUrls = /* @__PURE__ */ new Set();
        dependencyGraph.traverse((node) => {
          if (node.type !== BaseNode.types.NETWORK) {
            return;
          }
          if (node.request.resourceType !== "Script") {
            return;
          }
          if (treatNodeAsRenderBlocking?.(node)) {
            scriptUrls.add(node.request.url);
          }
        });
        return scriptUrls;
      }
      static get coefficients() {
        throw new LanternError("coefficients unimplemented!");
      }
      /**
       * Returns the coefficients, scaled by the throttling settings if needed by the metric.
       * Some lantern metrics (speed-index) use components in their estimate that are not
       * from the simulator. In this case, we need to adjust the coefficients as the target throttling
       * settings change.
       */
      static getScaledCoefficients(_rttMs) {
        return this.coefficients;
      }
      static getOptimisticGraph(_dependencyGraph, _processedNavigation) {
        throw new LanternError("Optimistic graph unimplemented!");
      }
      static getPessimisticGraph(_dependencyGraph, _processedNavigation) {
        throw new LanternError("Pessmistic graph unimplemented!");
      }
      static getEstimateFromSimulation(simulationResult, _extras) {
        return simulationResult;
      }
      static compute(data31, extras) {
        const { simulator, graph: graph2, processedNavigation } = data31;
        const metricName = this.name.replace("Lantern", "");
        const optimisticGraph = this.getOptimisticGraph(graph2, processedNavigation);
        const pessimisticGraph = this.getPessimisticGraph(graph2, processedNavigation);
        let simulateOptions = { label: `optimistic${metricName}` };
        const optimisticSimulation = simulator.simulate(optimisticGraph, simulateOptions);
        simulateOptions = { label: `pessimistic${metricName}` };
        const pessimisticSimulation = simulator.simulate(pessimisticGraph, simulateOptions);
        const optimisticEstimate = this.getEstimateFromSimulation(optimisticSimulation, { ...extras, optimistic: true });
        const pessimisticEstimate = this.getEstimateFromSimulation(pessimisticSimulation, { ...extras, optimistic: false });
        const coefficients = this.getScaledCoefficients(simulator.rtt);
        const interceptMultiplier = coefficients.intercept > 0 ? Math.min(1, optimisticEstimate.timeInMs / 1e3) : 1;
        const timing = coefficients.intercept * interceptMultiplier + coefficients.optimistic * optimisticEstimate.timeInMs + coefficients.pessimistic * pessimisticEstimate.timeInMs;
        return {
          timing,
          optimisticEstimate,
          pessimisticEstimate,
          optimisticGraph,
          pessimisticGraph
        };
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/FirstContentfulPaint.js
var FirstContentfulPaint;
var init_FirstContentfulPaint = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/FirstContentfulPaint.js"() {
    init_process_global();
    init_graph();
    init_Metric();
    FirstContentfulPaint = class extends Metric {
      static {
        __name(this, "FirstContentfulPaint");
      }
      static get coefficients() {
        return {
          intercept: 0,
          optimistic: 0.5,
          pessimistic: 0.5
        };
      }
      /**
       * Computes the set of URLs that *appeared* to be render-blocking based on our filter,
       * *but definitely were not* render-blocking based on the timing of their EvaluateScript task.
       * It also computes the set of corresponding CPU node ids that were needed for the paint at the
       * given timestamp.
       */
      static getRenderBlockingNodeData(graph2, { cutoffTimestamp, treatNodeAsRenderBlocking, additionalCpuNodesToTreatAsRenderBlocking }) {
        const scriptUrlToNodeMap = /* @__PURE__ */ new Map();
        const cpuNodes = [];
        graph2.traverse((node) => {
          if (node.type === BaseNode.types.CPU) {
            if (node.startTime <= cutoffTimestamp) {
              cpuNodes.push(node);
            }
            const scriptUrls = node.getEvaluateScriptURLs();
            for (const url of scriptUrls) {
              const existing = scriptUrlToNodeMap.get(url) || node;
              scriptUrlToNodeMap.set(url, node.startTime < existing.startTime ? node : existing);
            }
          }
        });
        cpuNodes.sort((a, b) => a.startTime - b.startTime);
        const possiblyRenderBlockingScriptUrls = Metric.getScriptUrls(graph2, (node) => {
          return node.endTime <= cutoffTimestamp && treatNodeAsRenderBlocking(node);
        });
        const definitelyNotRenderBlockingScriptUrls = /* @__PURE__ */ new Set();
        const renderBlockingCpuNodeIds = /* @__PURE__ */ new Set();
        for (const url of possiblyRenderBlockingScriptUrls) {
          const cpuNodeForUrl = scriptUrlToNodeMap.get(url);
          if (!cpuNodeForUrl) {
            continue;
          }
          if (cpuNodes.includes(cpuNodeForUrl)) {
            renderBlockingCpuNodeIds.add(cpuNodeForUrl.id);
            continue;
          }
          definitelyNotRenderBlockingScriptUrls.add(url);
        }
        const firstLayout = cpuNodes.find((node) => node.didPerformLayout());
        if (firstLayout) {
          renderBlockingCpuNodeIds.add(firstLayout.id);
        }
        const firstPaint = cpuNodes.find((node) => node.childEvents.some((e) => e.name === "Paint"));
        if (firstPaint) {
          renderBlockingCpuNodeIds.add(firstPaint.id);
        }
        const firstParse = cpuNodes.find((node) => node.childEvents.some((e) => e.name === "ParseHTML"));
        if (firstParse) {
          renderBlockingCpuNodeIds.add(firstParse.id);
        }
        if (additionalCpuNodesToTreatAsRenderBlocking) {
          cpuNodes.filter(additionalCpuNodesToTreatAsRenderBlocking).forEach((node) => renderBlockingCpuNodeIds.add(node.id));
        }
        return {
          definitelyNotRenderBlockingScriptUrls,
          renderBlockingCpuNodeIds
        };
      }
      /**
       * Computes the graph required for the first paint of interest.
       */
      static getFirstPaintBasedGraph(dependencyGraph, { cutoffTimestamp, treatNodeAsRenderBlocking, additionalCpuNodesToTreatAsRenderBlocking }) {
        const rbData = this.getRenderBlockingNodeData(dependencyGraph, {
          cutoffTimestamp,
          treatNodeAsRenderBlocking,
          additionalCpuNodesToTreatAsRenderBlocking
        });
        const { definitelyNotRenderBlockingScriptUrls, renderBlockingCpuNodeIds } = rbData;
        return dependencyGraph.cloneWithRelationships((node) => {
          if (node.type === BaseNode.types.NETWORK) {
            const endedAfterPaint = node.endTime > cutoffTimestamp || node.startTime > cutoffTimestamp;
            if (endedAfterPaint && !node.isMainDocument()) {
              return false;
            }
            const url = node.request.url;
            if (definitelyNotRenderBlockingScriptUrls.has(url)) {
              return false;
            }
            return treatNodeAsRenderBlocking(node);
          }
          return renderBlockingCpuNodeIds.has(node.id);
        });
      }
      static getOptimisticGraph(dependencyGraph, processedNavigation) {
        return this.getFirstPaintBasedGraph(dependencyGraph, {
          cutoffTimestamp: processedNavigation.timestamps.firstContentfulPaint,
          // In the optimistic graph we exclude resources that appeared to be render-blocking but were
          // initiated by a script. While they typically have a very high importance and tend to have a
          // significant impact on the page's content, these resources don't technically block rendering.
          treatNodeAsRenderBlocking: /* @__PURE__ */ __name((node) => node.hasRenderBlockingPriority() && node.initiatorType !== "script", "treatNodeAsRenderBlocking")
        });
      }
      static getPessimisticGraph(dependencyGraph, processedNavigation) {
        return this.getFirstPaintBasedGraph(dependencyGraph, {
          cutoffTimestamp: processedNavigation.timestamps.firstContentfulPaint,
          treatNodeAsRenderBlocking: /* @__PURE__ */ __name((node) => node.hasRenderBlockingPriority(), "treatNodeAsRenderBlocking")
        });
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/Interactive.js
var CRITICAL_LONG_TASK_THRESHOLD, Interactive;
var init_Interactive = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/Interactive.js"() {
    init_process_global();
    init_core();
    init_graph();
    init_Metric();
    CRITICAL_LONG_TASK_THRESHOLD = 20;
    Interactive = class _Interactive extends Metric {
      static {
        __name(this, "Interactive");
      }
      static get coefficients() {
        return {
          intercept: 0,
          optimistic: 0.45,
          pessimistic: 0.55
        };
      }
      static getOptimisticGraph(dependencyGraph) {
        const minimumCpuTaskDuration = CRITICAL_LONG_TASK_THRESHOLD * 1e3;
        return dependencyGraph.cloneWithRelationships((node) => {
          if (node.type === BaseNode.types.CPU) {
            return node.duration > minimumCpuTaskDuration;
          }
          const isImage = node.request.resourceType === "Image";
          const isScript = node.request.resourceType === "Script";
          return !isImage && (isScript || node.request.priority === "High" || node.request.priority === "VeryHigh");
        });
      }
      static getPessimisticGraph(dependencyGraph) {
        return dependencyGraph;
      }
      static getEstimateFromSimulation(simulationResult, extras) {
        if (!extras.lcpResult) {
          throw new LanternError("missing lcpResult");
        }
        const lastTaskAt = _Interactive.getLastLongTaskEndTime(simulationResult.nodeTimings);
        const minimumTime = extras.optimistic ? extras.lcpResult.optimisticEstimate.timeInMs : extras.lcpResult.pessimisticEstimate.timeInMs;
        return {
          timeInMs: Math.max(minimumTime, lastTaskAt),
          nodeTimings: simulationResult.nodeTimings
        };
      }
      static compute(data31, extras) {
        const lcpResult = extras?.lcpResult;
        if (!lcpResult) {
          throw new LanternError("LCP is required to calculate the Interactive metric");
        }
        const metricResult = super.compute(data31, extras);
        metricResult.timing = Math.max(metricResult.timing, lcpResult.timing);
        return metricResult;
      }
      static getLastLongTaskEndTime(nodeTimings, duration = 50) {
        return Array.from(nodeTimings.entries()).filter(([node, timing]) => {
          if (node.type !== BaseNode.types.CPU) {
            return false;
          }
          return timing.duration > duration;
        }).map(([_, timing]) => timing.endTime).reduce((max, x) => Math.max(max || 0, x || 0), 0);
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/LargestContentfulPaint.js
var LargestContentfulPaint;
var init_LargestContentfulPaint = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/LargestContentfulPaint.js"() {
    init_process_global();
    init_core();
    init_FirstContentfulPaint();
    init_Metric();
    LargestContentfulPaint = class _LargestContentfulPaint extends Metric {
      static {
        __name(this, "LargestContentfulPaint");
      }
      static get coefficients() {
        return {
          intercept: 0,
          optimistic: 0.5,
          pessimistic: 0.5
        };
      }
      /**
       * Low priority image nodes are usually offscreen and very unlikely to be the
       * resource that is required for LCP. Our LCP graphs include everything except for these images.
       */
      static isNotLowPriorityImageNode(node) {
        if (node.type !== "network") {
          return true;
        }
        const isImage = node.request.resourceType === "Image";
        const isLowPriority = node.request.priority === "Low" || node.request.priority === "VeryLow";
        return !isImage || !isLowPriority;
      }
      static getOptimisticGraph(dependencyGraph, processedNavigation) {
        const lcp = processedNavigation.timestamps.largestContentfulPaint;
        if (!lcp) {
          throw new LanternError("NO_LCP");
        }
        return FirstContentfulPaint.getFirstPaintBasedGraph(dependencyGraph, {
          cutoffTimestamp: lcp,
          treatNodeAsRenderBlocking: _LargestContentfulPaint.isNotLowPriorityImageNode
        });
      }
      static getPessimisticGraph(dependencyGraph, processedNavigation) {
        const lcp = processedNavigation.timestamps.largestContentfulPaint;
        if (!lcp) {
          throw new LanternError("NO_LCP");
        }
        return FirstContentfulPaint.getFirstPaintBasedGraph(dependencyGraph, {
          cutoffTimestamp: lcp,
          treatNodeAsRenderBlocking: /* @__PURE__ */ __name((_) => true, "treatNodeAsRenderBlocking"),
          // For pessimistic LCP we'll include *all* layout nodes
          additionalCpuNodesToTreatAsRenderBlocking: /* @__PURE__ */ __name((node) => node.didPerformLayout(), "additionalCpuNodesToTreatAsRenderBlocking")
        });
      }
      static getEstimateFromSimulation(simulationResult) {
        const nodeTimesNotOffscreenImages = Array.from(simulationResult.nodeTimings.entries()).filter((entry) => _LargestContentfulPaint.isNotLowPriorityImageNode(entry[0])).map((entry) => entry[1].endTime);
        return {
          timeInMs: Math.max(...nodeTimesNotOffscreenImages),
          nodeTimings: simulationResult.nodeTimings
        };
      }
      static compute(data31, extras) {
        const fcpResult = extras?.fcpResult;
        if (!fcpResult) {
          throw new LanternError("FCP is required to calculate the LCP metric");
        }
        const metricResult = super.compute(data31, extras);
        metricResult.timing = Math.max(metricResult.timing, fcpResult.timing);
        return metricResult;
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/MaxPotentialFID.js
var MaxPotentialFID;
var init_MaxPotentialFID = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/MaxPotentialFID.js"() {
    init_process_global();
    init_core();
    init_graph();
    init_Metric();
    MaxPotentialFID = class _MaxPotentialFID extends Metric {
      static {
        __name(this, "MaxPotentialFID");
      }
      static get coefficients() {
        return {
          intercept: 0,
          optimistic: 0.5,
          pessimistic: 0.5
        };
      }
      static getOptimisticGraph(dependencyGraph) {
        return dependencyGraph;
      }
      static getPessimisticGraph(dependencyGraph) {
        return dependencyGraph;
      }
      static getEstimateFromSimulation(simulation, extras) {
        if (!extras.fcpResult) {
          throw new LanternError("missing fcpResult");
        }
        const fcpTimeInMs = extras.optimistic ? extras.fcpResult.pessimisticEstimate.timeInMs : extras.fcpResult.optimisticEstimate.timeInMs;
        const timings = _MaxPotentialFID.getTimingsAfterFCP(simulation.nodeTimings, fcpTimeInMs);
        return {
          timeInMs: Math.max(...timings.map((timing) => timing.duration), 16),
          nodeTimings: simulation.nodeTimings
        };
      }
      static compute(data31, extras) {
        const fcpResult = extras?.fcpResult;
        if (!fcpResult) {
          throw new LanternError("FCP is required to calculate the Max Potential FID metric");
        }
        return super.compute(data31, extras);
      }
      static getTimingsAfterFCP(nodeTimings, fcpTimeInMs) {
        return Array.from(nodeTimings.entries()).filter(([node, timing]) => node.type === BaseNode.types.CPU && timing.endTime > fcpTimeInMs).map(([_, timing]) => timing);
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/SpeedIndex.js
var mobileSlow4GRtt, SpeedIndex;
var init_SpeedIndex = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/SpeedIndex.js"() {
    init_process_global();
    init_core();
    init_graph();
    init_Metric();
    mobileSlow4GRtt = 150;
    SpeedIndex = class _SpeedIndex extends Metric {
      static {
        __name(this, "SpeedIndex");
      }
      static get coefficients() {
        return {
          // Note that the optimistic estimate is based on the real observed speed index rather than a
          // real lantern graph (and the final estimate will be Math.max(FCP, Speed Index)).
          intercept: 0,
          optimistic: 1.4,
          pessimistic: 0.4
        };
      }
      static getScaledCoefficients(rttMs) {
        const defaultCoefficients = this.coefficients;
        const defaultRttExcess = mobileSlow4GRtt - 30;
        const multiplier = Math.max((rttMs - 30) / defaultRttExcess, 0);
        return {
          intercept: defaultCoefficients.intercept * multiplier,
          optimistic: 0.5 + (defaultCoefficients.optimistic - 0.5) * multiplier,
          pessimistic: 0.5 + (defaultCoefficients.pessimistic - 0.5) * multiplier
        };
      }
      static getOptimisticGraph(dependencyGraph) {
        return dependencyGraph;
      }
      static getPessimisticGraph(dependencyGraph) {
        return dependencyGraph;
      }
      static getEstimateFromSimulation(simulationResult, extras) {
        if (!extras.fcpResult) {
          throw new LanternError("missing fcpResult");
        }
        if (extras.observedSpeedIndex === void 0) {
          throw new LanternError("missing observedSpeedIndex");
        }
        const fcpTimeInMs = extras.fcpResult.pessimisticEstimate.timeInMs;
        const estimate = extras.optimistic ? extras.observedSpeedIndex : _SpeedIndex.computeLayoutBasedSpeedIndex(simulationResult.nodeTimings, fcpTimeInMs);
        return {
          timeInMs: estimate,
          nodeTimings: simulationResult.nodeTimings
        };
      }
      static compute(data31, extras) {
        const fcpResult = extras?.fcpResult;
        if (!fcpResult) {
          throw new LanternError("FCP is required to calculate the SpeedIndex metric");
        }
        const metricResult = super.compute(data31, extras);
        metricResult.timing = Math.max(metricResult.timing, fcpResult.timing);
        return metricResult;
      }
      /**
       * Approximate speed index using layout events from the simulated node timings.
       * The layout-based speed index is the weighted average of the endTime of CPU nodes that contained
       * a 'Layout' task. log(duration) is used as the weight to stand for "significance" to the page.
       *
       * If no layout events can be found or the endTime of a CPU task is too early, FCP is used instead.
       *
       * This approach was determined after evaluating the accuracy/complexity tradeoff of many
       * different methods. Read more in the evaluation doc.
       *
       * @see https://docs.google.com/document/d/1qJWXwxoyVLVadezIp_Tgdk867G3tDNkkVRvUJSH3K1E/edit#
       */
      static computeLayoutBasedSpeedIndex(nodeTimings, fcpTimeInMs) {
        const layoutWeights = [];
        for (const [node, timing] of nodeTimings.entries()) {
          if (node.type !== BaseNode.types.CPU) {
            continue;
          }
          if (node.childEvents.some((x) => x.name === "Layout")) {
            const timingWeight = Math.max(Math.log2(timing.endTime - timing.startTime), 0);
            layoutWeights.push({ time: timing.endTime, weight: timingWeight });
          }
        }
        const totalWeightedTime = layoutWeights.map((evt) => evt.weight * Math.max(evt.time, fcpTimeInMs)).reduce((a, b) => a + b, 0);
        const totalWeight = layoutWeights.map((evt) => evt.weight).reduce((a, b) => a + b, 0);
        if (!totalWeight) {
          return fcpTimeInMs;
        }
        return totalWeightedTime / totalWeight;
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/TBTUtils.js
var TBTUtils_exports = {};
__export(TBTUtils_exports, {
  BLOCKING_TIME_THRESHOLD: () => BLOCKING_TIME_THRESHOLD,
  calculateSumOfBlockingTime: () => calculateSumOfBlockingTime,
  calculateTbtImpactForEvent: () => calculateTbtImpactForEvent
});
function calculateTbtImpactForEvent(event, startTimeMs, endTimeMs, topLevelEvent) {
  let threshold = BLOCKING_TIME_THRESHOLD;
  if (topLevelEvent) {
    threshold *= event.duration / topLevelEvent.duration;
  }
  if (event.duration < threshold) {
    return 0;
  }
  if (event.end < startTimeMs) {
    return 0;
  }
  if (event.start > endTimeMs) {
    return 0;
  }
  const clippedStart = Math.max(event.start, startTimeMs);
  const clippedEnd = Math.min(event.end, endTimeMs);
  const clippedDuration = clippedEnd - clippedStart;
  if (clippedDuration < threshold) {
    return 0;
  }
  return clippedDuration - threshold;
}
function calculateSumOfBlockingTime(topLevelEvents, startTimeMs, endTimeMs) {
  if (endTimeMs <= startTimeMs) {
    return 0;
  }
  let sumBlockingTime = 0;
  for (const event of topLevelEvents) {
    sumBlockingTime += calculateTbtImpactForEvent(event, startTimeMs, endTimeMs);
  }
  return sumBlockingTime;
}
var BLOCKING_TIME_THRESHOLD;
var init_TBTUtils = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/TBTUtils.js"() {
    init_process_global();
    BLOCKING_TIME_THRESHOLD = 50;
    __name(calculateTbtImpactForEvent, "calculateTbtImpactForEvent");
    __name(calculateSumOfBlockingTime, "calculateSumOfBlockingTime");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/TotalBlockingTime.js
var TotalBlockingTime;
var init_TotalBlockingTime = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/TotalBlockingTime.js"() {
    init_process_global();
    init_core();
    init_graph();
    init_Metric();
    init_TBTUtils();
    TotalBlockingTime = class _TotalBlockingTime extends Metric {
      static {
        __name(this, "TotalBlockingTime");
      }
      static get coefficients() {
        return {
          intercept: 0,
          optimistic: 0.5,
          pessimistic: 0.5
        };
      }
      static getOptimisticGraph(dependencyGraph) {
        return dependencyGraph;
      }
      static getPessimisticGraph(dependencyGraph) {
        return dependencyGraph;
      }
      static getEstimateFromSimulation(simulation, extras) {
        if (!extras.fcpResult) {
          throw new LanternError("missing fcpResult");
        }
        if (!extras.interactiveResult) {
          throw new LanternError("missing interactiveResult");
        }
        const fcpTimeInMs = extras.optimistic ? extras.fcpResult.pessimisticEstimate.timeInMs : extras.fcpResult.optimisticEstimate.timeInMs;
        const interactiveTimeMs = extras.optimistic ? extras.interactiveResult.optimisticEstimate.timeInMs : extras.interactiveResult.pessimisticEstimate.timeInMs;
        const minDurationMs = BLOCKING_TIME_THRESHOLD;
        const events = _TotalBlockingTime.getTopLevelEvents(simulation.nodeTimings, minDurationMs);
        return {
          timeInMs: calculateSumOfBlockingTime(events, fcpTimeInMs, interactiveTimeMs),
          nodeTimings: simulation.nodeTimings
        };
      }
      static compute(data31, extras) {
        const fcpResult = extras?.fcpResult;
        if (!fcpResult) {
          throw new LanternError("FCP is required to calculate the TBT metric");
        }
        const interactiveResult = extras?.fcpResult;
        if (!interactiveResult) {
          throw new LanternError("Interactive is required to calculate the TBT metric");
        }
        return super.compute(data31, extras);
      }
      static getTopLevelEvents(nodeTimings, minDurationMs) {
        const events = [];
        for (const [node, timing] of nodeTimings.entries()) {
          if (node.type !== BaseNode.types.CPU) {
            continue;
          }
          if (timing.duration < minDurationMs) {
            continue;
          }
          events.push({
            start: timing.startTime,
            end: timing.endTime,
            duration: timing.duration
          });
        }
        return events;
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/metrics.js
var metrics_exports = {};
__export(metrics_exports, {
  FirstContentfulPaint: () => FirstContentfulPaint,
  Interactive: () => Interactive,
  LargestContentfulPaint: () => LargestContentfulPaint,
  MaxPotentialFID: () => MaxPotentialFID,
  Metric: () => Metric,
  SpeedIndex: () => SpeedIndex,
  TBTUtils: () => TBTUtils_exports,
  TotalBlockingTime: () => TotalBlockingTime
});
var init_metrics = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/metrics/metrics.js"() {
    init_process_global();
    init_FirstContentfulPaint();
    init_Interactive();
    init_LargestContentfulPaint();
    init_MaxPotentialFID();
    init_Metric();
    init_SpeedIndex();
    init_TotalBlockingTime();
    init_TBTUtils();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/TCPConnection.js
var INITIAL_CONGESTION_WINDOW, TCP_SEGMENT_SIZE, TCPConnection;
var init_TCPConnection = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/TCPConnection.js"() {
    init_process_global();
    INITIAL_CONGESTION_WINDOW = 10;
    TCP_SEGMENT_SIZE = 1460;
    TCPConnection = class _TCPConnection {
      static {
        __name(this, "TCPConnection");
      }
      warmed;
      ssl;
      h2;
      rtt;
      throughput;
      serverLatency;
      _congestionWindow;
      h2OverflowBytesDownloaded;
      constructor(rtt, throughput, serverLatency = 0, ssl = true, h2 = false) {
        this.warmed = false;
        this.ssl = ssl;
        this.h2 = h2;
        this.rtt = rtt;
        this.throughput = throughput;
        this.serverLatency = serverLatency;
        this._congestionWindow = INITIAL_CONGESTION_WINDOW;
        this.h2OverflowBytesDownloaded = 0;
      }
      static maximumSaturatedConnections(rtt, availableThroughput) {
        const roundTripsPerSecond = 1e3 / rtt;
        const bytesPerRoundTrip = TCP_SEGMENT_SIZE;
        const bytesPerSecond = roundTripsPerSecond * bytesPerRoundTrip;
        const minimumThroughputRequiredPerRequest = bytesPerSecond * 8;
        return Math.floor(availableThroughput / minimumThroughputRequiredPerRequest);
      }
      computeMaximumCongestionWindowInSegments() {
        const bytesPerSecond = this.throughput / 8;
        const secondsPerRoundTrip = this.rtt / 1e3;
        const bytesPerRoundTrip = bytesPerSecond * secondsPerRoundTrip;
        return Math.floor(bytesPerRoundTrip / TCP_SEGMENT_SIZE);
      }
      setThroughput(throughput) {
        this.throughput = throughput;
      }
      setCongestionWindow(congestion) {
        this._congestionWindow = congestion;
      }
      setWarmed(warmed) {
        this.warmed = warmed;
      }
      isH2() {
        return this.h2;
      }
      get congestionWindow() {
        return this._congestionWindow;
      }
      /**
       * Sets the number of excess bytes that are available to this connection on future downloads, only
       * applies to H2 connections.
       */
      setH2OverflowBytesDownloaded(bytes) {
        if (!this.h2) {
          return;
        }
        this.h2OverflowBytesDownloaded = bytes;
      }
      clone() {
        return Object.assign(new _TCPConnection(this.rtt, this.throughput), this);
      }
      /**
       * Simulates a network download of a particular number of bytes over an optional maximum amount of time
       * and returns information about the ending state.
       *
       * See https://hpbn.co/building-blocks-of-tcp/#three-way-handshake and
       *  https://hpbn.co/transport-layer-security-tls/#tls-handshake for details.
       */
      simulateDownloadUntil(bytesToDownload, options) {
        const { timeAlreadyElapsed = 0, maximumTimeToElapse = Infinity, dnsResolutionTime = 0 } = options || {};
        if (this.warmed && this.h2) {
          bytesToDownload -= this.h2OverflowBytesDownloaded;
        }
        const twoWayLatency = this.rtt;
        const oneWayLatency = twoWayLatency / 2;
        const maximumCongestionWindow = this.computeMaximumCongestionWindowInSegments();
        let handshakeAndRequest = oneWayLatency;
        if (!this.warmed) {
          handshakeAndRequest = // DNS lookup
          dnsResolutionTime + // SYN
          oneWayLatency + // SYN ACK
          oneWayLatency + // ACK + initial request
          oneWayLatency + // ClientHello/ServerHello assuming TLS False Start is enabled (https://istlsfastyet.com/#server-performance).
          (this.ssl ? twoWayLatency : 0);
        }
        let roundTrips = Math.ceil(handshakeAndRequest / twoWayLatency);
        let timeToFirstByte = handshakeAndRequest + this.serverLatency + oneWayLatency;
        if (this.warmed && this.h2) {
          timeToFirstByte = 0;
        }
        const timeElapsedForTTFB = Math.max(timeToFirstByte - timeAlreadyElapsed, 0);
        const maximumDownloadTimeToElapse = maximumTimeToElapse - timeElapsedForTTFB;
        let congestionWindow = Math.min(this._congestionWindow, maximumCongestionWindow);
        let totalBytesDownloaded = 0;
        if (timeElapsedForTTFB > 0) {
          totalBytesDownloaded = congestionWindow * TCP_SEGMENT_SIZE;
        } else {
          roundTrips = 0;
        }
        let downloadTimeElapsed = 0;
        let bytesRemaining = bytesToDownload - totalBytesDownloaded;
        while (bytesRemaining > 0 && downloadTimeElapsed <= maximumDownloadTimeToElapse) {
          roundTrips++;
          downloadTimeElapsed += twoWayLatency;
          congestionWindow = Math.max(Math.min(maximumCongestionWindow, congestionWindow * 2), 1);
          const bytesDownloadedInWindow = congestionWindow * TCP_SEGMENT_SIZE;
          totalBytesDownloaded += bytesDownloadedInWindow;
          bytesRemaining -= bytesDownloadedInWindow;
        }
        const timeElapsed = timeElapsedForTTFB + downloadTimeElapsed;
        const extraBytesDownloaded = this.h2 ? Math.max(totalBytesDownloaded - bytesToDownload, 0) : 0;
        const bytesDownloaded = Math.max(Math.min(totalBytesDownloaded, bytesToDownload), 0);
        let connectionTiming;
        if (!this.warmed) {
          connectionTiming = {
            dnsResolutionTime,
            connectionTime: handshakeAndRequest - dnsResolutionTime,
            sslTime: this.ssl ? twoWayLatency : void 0,
            timeToFirstByte
          };
        } else if (this.h2) {
          connectionTiming = {
            timeToFirstByte
          };
        } else {
          connectionTiming = {
            connectionTime: handshakeAndRequest,
            timeToFirstByte
          };
        }
        return {
          roundTrips,
          timeElapsed,
          bytesDownloaded,
          extraBytesDownloaded,
          congestionWindow,
          connectionTiming
        };
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/ConnectionPool.js
var DEFAULT_SERVER_RESPONSE_TIME, TLS_SCHEMES, CONNECTIONS_PER_ORIGIN, ConnectionPool;
var init_ConnectionPool = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/ConnectionPool.js"() {
    init_process_global();
    init_core();
    init_TCPConnection();
    DEFAULT_SERVER_RESPONSE_TIME = 30;
    TLS_SCHEMES = ["https", "wss"];
    CONNECTIONS_PER_ORIGIN = 6;
    ConnectionPool = class {
      static {
        __name(this, "ConnectionPool");
      }
      options;
      records;
      connectionsByOrigin;
      connectionsByRequest;
      _connectionsInUse;
      connectionReusedByRequestId;
      constructor(records, options) {
        this.options = options;
        this.records = records;
        this.connectionsByOrigin = /* @__PURE__ */ new Map();
        this.connectionsByRequest = /* @__PURE__ */ new Map();
        this._connectionsInUse = /* @__PURE__ */ new Set();
        this.connectionReusedByRequestId = NetworkAnalyzer.estimateIfConnectionWasReused(records, {
          forceCoarseEstimates: true
        });
        this.initializeConnections();
      }
      connectionsInUse() {
        return Array.from(this._connectionsInUse);
      }
      initializeConnections() {
        const connectionReused = this.connectionReusedByRequestId;
        const additionalRttByOrigin = this.options.additionalRttByOrigin;
        const serverResponseTimeByOrigin = this.options.serverResponseTimeByOrigin;
        const recordsByOrigin = NetworkAnalyzer.groupByOrigin(this.records);
        for (const [origin, requests] of recordsByOrigin.entries()) {
          const connections = [];
          const additionalRtt = additionalRttByOrigin.get(origin) || 0;
          const responseTime = serverResponseTimeByOrigin.get(origin) || DEFAULT_SERVER_RESPONSE_TIME;
          for (const request of requests) {
            if (connectionReused.get(request.requestId)) {
              continue;
            }
            const isTLS = TLS_SCHEMES.includes(request.parsedURL.scheme);
            const isH2 = request.protocol === "h2";
            const connection = new TCPConnection(this.options.rtt + additionalRtt, this.options.throughput, responseTime, isTLS, isH2);
            connections.push(connection);
          }
          if (!connections.length) {
            throw new LanternError(`Could not find a connection for origin: ${origin}`);
          }
          const minConnections = connections[0].isH2() ? 1 : CONNECTIONS_PER_ORIGIN;
          while (connections.length < minConnections) {
            connections.push(connections[0].clone());
          }
          this.connectionsByOrigin.set(origin, connections);
        }
      }
      findAvailableConnectionWithLargestCongestionWindow(connections) {
        let maxConnection = null;
        for (let i = 0; i < connections.length; i++) {
          const connection = connections[i];
          if (this._connectionsInUse.has(connection)) {
            continue;
          }
          const currentMax = maxConnection?.congestionWindow || -Infinity;
          if (connection.congestionWindow > currentMax) {
            maxConnection = connection;
          }
        }
        return maxConnection;
      }
      /**
       * This method finds an available connection to the origin specified by the network request or null
       * if no connection was available. If returned, connection will not be available for other network
       * records until release is called.
       */
      acquire(request) {
        if (this.connectionsByRequest.has(request)) {
          throw new LanternError("Record already has a connection");
        }
        const origin = request.parsedURL.securityOrigin;
        const connections = this.connectionsByOrigin.get(origin) || [];
        const connectionToUse = this.findAvailableConnectionWithLargestCongestionWindow(connections);
        if (!connectionToUse) {
          return null;
        }
        this._connectionsInUse.add(connectionToUse);
        this.connectionsByRequest.set(request, connectionToUse);
        return connectionToUse;
      }
      /**
       * Return the connection currently being used to fetch a request. If no connection
       * currently being used for this request, an error will be thrown.
       */
      acquireActiveConnectionFromRequest(request) {
        const activeConnection = this.connectionsByRequest.get(request);
        if (!activeConnection) {
          throw new LanternError("Could not find an active connection for request");
        }
        return activeConnection;
      }
      release(request) {
        const connection = this.connectionsByRequest.get(request);
        this.connectionsByRequest.delete(request);
        if (connection) {
          this._connectionsInUse.delete(connection);
        }
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/Constants.js
var DEVTOOLS_RTT_ADJUSTMENT_FACTOR, DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR, throttling, Constants;
var init_Constants = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/Constants.js"() {
    init_process_global();
    DEVTOOLS_RTT_ADJUSTMENT_FACTOR = 3.75;
    DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR = 0.9;
    throttling = {
      DEVTOOLS_RTT_ADJUSTMENT_FACTOR,
      DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
      // These values align with WebPageTest's definition of "Fast 3G"
      // But offer similar characteristics to roughly the 75th percentile of 4G connections.
      mobileSlow4G: {
        rttMs: 150,
        throughputKbps: 1.6 * 1024,
        requestLatencyMs: 150 * DEVTOOLS_RTT_ADJUSTMENT_FACTOR,
        downloadThroughputKbps: 1.6 * 1024 * DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
        uploadThroughputKbps: 750 * DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
        cpuSlowdownMultiplier: 4
      },
      // These values partially align with WebPageTest's definition of "Regular 3G".
      // These values are meant to roughly align with Chrome UX report's 3G definition which are based
      // on HTTP RTT of 300-1400ms and downlink throughput of <700kbps.
      mobileRegular3G: {
        rttMs: 300,
        throughputKbps: 700,
        requestLatencyMs: 300 * DEVTOOLS_RTT_ADJUSTMENT_FACTOR,
        downloadThroughputKbps: 700 * DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
        uploadThroughputKbps: 700 * DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR,
        cpuSlowdownMultiplier: 4
      },
      // Using a "broadband" connection type
      // Corresponds to "Dense 4G 25th percentile" in https://docs.google.com/document/d/1Ft1Bnq9-t4jK5egLSOc28IL4TvR-Tt0se_1faTA4KTY/edit#heading=h.bb7nfy2x9e5v
      desktopDense4G: {
        rttMs: 40,
        throughputKbps: 10 * 1024,
        cpuSlowdownMultiplier: 1,
        requestLatencyMs: 0,
        // 0 means unset
        downloadThroughputKbps: 0,
        uploadThroughputKbps: 0
      }
    };
    Constants = { throttling };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/DNSCache.js
var DNS_RESOLUTION_RTT_MULTIPLIER, DNSCache;
var init_DNSCache = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/DNSCache.js"() {
    init_process_global();
    DNS_RESOLUTION_RTT_MULTIPLIER = 2;
    DNSCache = class _DNSCache {
      static {
        __name(this, "DNSCache");
      }
      static rttMultiplier = DNS_RESOLUTION_RTT_MULTIPLIER;
      rtt;
      resolvedDomainNames;
      constructor({ rtt }) {
        this.rtt = rtt;
        this.resolvedDomainNames = /* @__PURE__ */ new Map();
      }
      getTimeUntilResolution(request, options) {
        const { requestedAt = 0, shouldUpdateCache = false } = options || {};
        const domain = request.parsedURL.host;
        const cacheEntry = this.resolvedDomainNames.get(domain);
        let timeUntilResolved = this.rtt * _DNSCache.rttMultiplier;
        if (cacheEntry) {
          const timeUntilCachedIsResolved = Math.max(cacheEntry.resolvedAt - requestedAt, 0);
          timeUntilResolved = Math.min(timeUntilCachedIsResolved, timeUntilResolved);
        }
        const resolvedAt = requestedAt + timeUntilResolved;
        if (shouldUpdateCache) {
          this.updateCacheResolvedAtIfNeeded(request, resolvedAt);
        }
        return timeUntilResolved;
      }
      updateCacheResolvedAtIfNeeded(request, resolvedAt) {
        const domain = request.parsedURL.host;
        const cacheEntry = this.resolvedDomainNames.get(domain) || { resolvedAt };
        cacheEntry.resolvedAt = Math.min(cacheEntry.resolvedAt, resolvedAt);
        this.resolvedDomainNames.set(domain, cacheEntry);
      }
      /**
       * Forcefully sets the DNS resolution time for a request.
       * Useful for testing and alternate execution simulations.
       */
      setResolvedAt(domain, resolvedAt) {
        this.resolvedDomainNames.set(domain, { resolvedAt });
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/SimulationTimingMap.js
var SimulatorTimingMap;
var init_SimulationTimingMap = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/SimulationTimingMap.js"() {
    init_process_global();
    init_core();
    init_graph();
    SimulatorTimingMap = class {
      static {
        __name(this, "SimulatorTimingMap");
      }
      nodeTimings;
      constructor() {
        this.nodeTimings = /* @__PURE__ */ new Map();
      }
      getNodes() {
        return Array.from(this.nodeTimings.keys());
      }
      setReadyToStart(node, values) {
        this.nodeTimings.set(node, values);
      }
      setInProgress(node, values) {
        const nodeTiming = {
          ...this.getQueued(node),
          startTime: values.startTime,
          timeElapsed: 0
        };
        this.nodeTimings.set(node, node.type === BaseNode.types.NETWORK ? { ...nodeTiming, timeElapsedOvershoot: 0, bytesDownloaded: 0 } : nodeTiming);
      }
      setCompleted(node, values) {
        const nodeTiming = {
          ...this.getInProgress(node),
          endTime: values.endTime,
          connectionTiming: values.connectionTiming
        };
        this.nodeTimings.set(node, nodeTiming);
      }
      setCpu(node, values) {
        const nodeTiming = {
          ...this.getCpuStarted(node),
          timeElapsed: values.timeElapsed
        };
        this.nodeTimings.set(node, nodeTiming);
      }
      setCpuEstimated(node, values) {
        const nodeTiming = {
          ...this.getCpuStarted(node),
          estimatedTimeElapsed: values.estimatedTimeElapsed
        };
        this.nodeTimings.set(node, nodeTiming);
      }
      setNetwork(node, values) {
        const nodeTiming = {
          ...this.getNetworkStarted(node),
          timeElapsed: values.timeElapsed,
          timeElapsedOvershoot: values.timeElapsedOvershoot,
          bytesDownloaded: values.bytesDownloaded
        };
        this.nodeTimings.set(node, nodeTiming);
      }
      setNetworkEstimated(node, values) {
        const nodeTiming = {
          ...this.getNetworkStarted(node),
          estimatedTimeElapsed: values.estimatedTimeElapsed
        };
        this.nodeTimings.set(node, nodeTiming);
      }
      getQueued(node) {
        const timing = this.nodeTimings.get(node);
        if (!timing) {
          throw new LanternError(`Node ${node.id} not yet queued`);
        }
        return timing;
      }
      getCpuStarted(node) {
        const timing = this.nodeTimings.get(node);
        if (!timing) {
          throw new LanternError(`Node ${node.id} not yet queued`);
        }
        if (!("startTime" in timing)) {
          throw new LanternError(`Node ${node.id} not yet started`);
        }
        if ("bytesDownloaded" in timing) {
          throw new LanternError(`Node ${node.id} timing not valid`);
        }
        return timing;
      }
      getNetworkStarted(node) {
        const timing = this.nodeTimings.get(node);
        if (!timing) {
          throw new LanternError(`Node ${node.id} not yet queued`);
        }
        if (!("startTime" in timing)) {
          throw new LanternError(`Node ${node.id} not yet started`);
        }
        if (!("bytesDownloaded" in timing)) {
          throw new LanternError(`Node ${node.id} timing not valid`);
        }
        return timing;
      }
      getInProgress(node) {
        const timing = this.nodeTimings.get(node);
        if (!timing) {
          throw new LanternError(`Node ${node.id} not yet queued`);
        }
        if (!("startTime" in timing)) {
          throw new LanternError(`Node ${node.id} not yet started`);
        }
        if (!("estimatedTimeElapsed" in timing)) {
          throw new LanternError(`Node ${node.id} not yet in progress`);
        }
        return timing;
      }
      getCompleted(node) {
        const timing = this.nodeTimings.get(node);
        if (!timing) {
          throw new LanternError(`Node ${node.id} not yet queued`);
        }
        if (!("startTime" in timing)) {
          throw new LanternError(`Node ${node.id} not yet started`);
        }
        if (!("estimatedTimeElapsed" in timing)) {
          throw new LanternError(`Node ${node.id} not yet in progress`);
        }
        if (!("endTime" in timing)) {
          throw new LanternError(`Node ${node.id} not yet completed`);
        }
        return timing;
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/Simulator.js
var defaultThrottling, DEFAULT_MAXIMUM_CONCURRENT_REQUESTS, DEFAULT_LAYOUT_TASK_MULTIPLIER, DEFAULT_MAXIMUM_CPU_TASK_DURATION, NodeState, PriorityStartTimePenalty, ALL_SIMULATION_NODE_TIMINGS, Simulator;
var init_Simulator = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/Simulator.js"() {
    init_process_global();
    init_core();
    init_graph();
    init_ConnectionPool();
    init_Constants();
    init_DNSCache();
    init_SimulationTimingMap();
    init_TCPConnection();
    defaultThrottling = Constants.throttling.mobileSlow4G;
    DEFAULT_MAXIMUM_CONCURRENT_REQUESTS = 10;
    DEFAULT_LAYOUT_TASK_MULTIPLIER = 0.5;
    DEFAULT_MAXIMUM_CPU_TASK_DURATION = 1e4;
    NodeState = {
      NotReadyToStart: 0,
      ReadyToStart: 1,
      InProgress: 2,
      Complete: 3
    };
    PriorityStartTimePenalty = {
      VeryHigh: 0,
      High: 0.25,
      Medium: 0.5,
      Low: 1,
      VeryLow: 2
    };
    ALL_SIMULATION_NODE_TIMINGS = /* @__PURE__ */ new Map();
    Simulator = class _Simulator {
      static {
        __name(this, "Simulator");
      }
      static createSimulator(settings) {
        const { throttlingMethod, throttling: throttling3, precomputedLanternData, networkAnalysis } = settings;
        const options = {
          additionalRttByOrigin: networkAnalysis.additionalRttByOrigin,
          serverResponseTimeByOrigin: networkAnalysis.serverResponseTimeByOrigin,
          observedThroughput: networkAnalysis.throughput
        };
        if (precomputedLanternData) {
          options.additionalRttByOrigin = new Map(Object.entries(precomputedLanternData.additionalRttByOrigin));
          options.serverResponseTimeByOrigin = new Map(Object.entries(precomputedLanternData.serverResponseTimeByOrigin));
        }
        switch (throttlingMethod) {
          case "provided":
            options.rtt = networkAnalysis.rtt;
            options.throughput = networkAnalysis.throughput;
            options.cpuSlowdownMultiplier = 1;
            options.layoutTaskMultiplier = 1;
            break;
          case "devtools":
            if (throttling3) {
              options.rtt = throttling3.requestLatencyMs / Constants.throttling.DEVTOOLS_RTT_ADJUSTMENT_FACTOR;
              options.throughput = throttling3.downloadThroughputKbps * 1024 / Constants.throttling.DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR;
            }
            options.cpuSlowdownMultiplier = 1;
            options.layoutTaskMultiplier = 1;
            break;
          case "simulate":
            if (throttling3) {
              options.rtt = throttling3.rttMs;
              options.throughput = throttling3.throughputKbps * 1024;
              options.cpuSlowdownMultiplier = throttling3.cpuSlowdownMultiplier;
            }
            break;
          default:
            break;
        }
        return new _Simulator(options);
      }
      options;
      _rtt;
      throughput;
      maximumConcurrentRequests;
      cpuSlowdownMultiplier;
      layoutTaskMultiplier;
      cachedNodeListByStartPosition;
      nodeTimings;
      numberInProgressByType;
      nodes;
      dns;
      connectionPool;
      constructor(options) {
        this.options = Object.assign({
          rtt: defaultThrottling.rttMs,
          throughput: defaultThrottling.throughputKbps * 1024,
          maximumConcurrentRequests: DEFAULT_MAXIMUM_CONCURRENT_REQUESTS,
          cpuSlowdownMultiplier: defaultThrottling.cpuSlowdownMultiplier,
          layoutTaskMultiplier: DEFAULT_LAYOUT_TASK_MULTIPLIER,
          additionalRttByOrigin: /* @__PURE__ */ new Map(),
          serverResponseTimeByOrigin: /* @__PURE__ */ new Map()
        }, options);
        this._rtt = this.options.rtt;
        this.throughput = this.options.throughput;
        this.maximumConcurrentRequests = Math.max(Math.min(TCPConnection.maximumSaturatedConnections(this._rtt, this.throughput), this.options.maximumConcurrentRequests), 1);
        this.cpuSlowdownMultiplier = this.options.cpuSlowdownMultiplier;
        this.layoutTaskMultiplier = this.cpuSlowdownMultiplier * this.options.layoutTaskMultiplier;
        this.cachedNodeListByStartPosition = [];
        this.nodeTimings = new SimulatorTimingMap();
        this.numberInProgressByType = /* @__PURE__ */ new Map();
        this.nodes = {};
        this.dns = new DNSCache({ rtt: this._rtt });
        this.connectionPool = null;
        if (!Number.isFinite(this._rtt)) {
          throw new LanternError(`Invalid rtt ${this._rtt}`);
        }
        if (!Number.isFinite(this.throughput)) {
          throw new LanternError(`Invalid throughput ${this.throughput}`);
        }
      }
      get rtt() {
        return this._rtt;
      }
      initializeConnectionPool(graph2) {
        const records = [];
        graph2.getRootNode().traverse((node) => {
          if (node.type === BaseNode.types.NETWORK) {
            records.push(node.request);
          }
        });
        this.connectionPool = new ConnectionPool(records, this.options);
      }
      /**
       * Initializes the various state data structures such _nodeTimings and the _node Sets by state.
       */
      initializeAuxiliaryData() {
        this.nodeTimings = new SimulatorTimingMap();
        this.numberInProgressByType = /* @__PURE__ */ new Map();
        this.nodes = {};
        this.cachedNodeListByStartPosition = [];
        for (const state of Object.values(NodeState)) {
          this.nodes[state] = /* @__PURE__ */ new Set();
        }
      }
      numberInProgress(type) {
        return this.numberInProgressByType.get(type) || 0;
      }
      markNodeAsReadyToStart(node, queuedTime) {
        const nodeStartPosition = _Simulator.computeNodeStartPosition(node);
        const firstNodeIndexWithGreaterStartPosition = this.cachedNodeListByStartPosition.findIndex((candidate) => _Simulator.computeNodeStartPosition(candidate) > nodeStartPosition);
        const insertionIndex = firstNodeIndexWithGreaterStartPosition === -1 ? this.cachedNodeListByStartPosition.length : firstNodeIndexWithGreaterStartPosition;
        this.cachedNodeListByStartPosition.splice(insertionIndex, 0, node);
        this.nodes[NodeState.ReadyToStart].add(node);
        this.nodes[NodeState.NotReadyToStart].delete(node);
        this.nodeTimings.setReadyToStart(node, { queuedTime });
      }
      markNodeAsInProgress(node, startTime) {
        const indexOfNodeToStart = this.cachedNodeListByStartPosition.indexOf(node);
        this.cachedNodeListByStartPosition.splice(indexOfNodeToStart, 1);
        this.nodes[NodeState.InProgress].add(node);
        this.nodes[NodeState.ReadyToStart].delete(node);
        this.numberInProgressByType.set(node.type, this.numberInProgress(node.type) + 1);
        this.nodeTimings.setInProgress(node, { startTime });
      }
      markNodeAsComplete(node, endTime, connectionTiming) {
        this.nodes[NodeState.Complete].add(node);
        this.nodes[NodeState.InProgress].delete(node);
        this.numberInProgressByType.set(node.type, this.numberInProgress(node.type) - 1);
        this.nodeTimings.setCompleted(node, { endTime, connectionTiming });
        for (const dependent of node.getDependents()) {
          const dependencies = dependent.getDependencies();
          if (dependencies.some((dep) => !this.nodes[NodeState.Complete].has(dep))) {
            continue;
          }
          this.markNodeAsReadyToStart(dependent, endTime);
        }
      }
      acquireConnection(request) {
        return this.connectionPool.acquire(request);
      }
      getNodesSortedByStartPosition() {
        return Array.from(this.cachedNodeListByStartPosition);
      }
      startNodeIfPossible(node, totalElapsedTime) {
        if (node.type === BaseNode.types.CPU) {
          if (this.numberInProgress(node.type) === 0) {
            this.markNodeAsInProgress(node, totalElapsedTime);
          }
          return;
        }
        if (node.type !== BaseNode.types.NETWORK) {
          throw new LanternError("Unsupported");
        }
        if (!node.isConnectionless) {
          const numberOfActiveRequests = this.numberInProgress(node.type);
          if (numberOfActiveRequests >= this.maximumConcurrentRequests) {
            return;
          }
          const connection = this.acquireConnection(node.request);
          if (!connection) {
            return;
          }
        }
        this.markNodeAsInProgress(node, totalElapsedTime);
      }
      /**
       * Updates each connection in use with the available throughput based on the number of network requests
       * currently in flight.
       */
      updateNetworkCapacity() {
        const inFlight = this.numberInProgress(BaseNode.types.NETWORK);
        if (inFlight === 0) {
          return;
        }
        for (const connection of this.connectionPool.connectionsInUse()) {
          connection.setThroughput(this.throughput / inFlight);
        }
      }
      /**
       * Estimates the number of milliseconds remaining given current conditions before the node is complete.
       */
      estimateTimeRemaining(node) {
        if (node.type === BaseNode.types.CPU) {
          return this.estimateCPUTimeRemaining(node);
        }
        if (node.type === BaseNode.types.NETWORK) {
          return this.estimateNetworkTimeRemaining(node);
        }
        throw new LanternError("Unsupported");
      }
      estimateCPUTimeRemaining(cpuNode) {
        const timingData = this.nodeTimings.getCpuStarted(cpuNode);
        const multiplier = cpuNode.didPerformLayout() ? this.layoutTaskMultiplier : this.cpuSlowdownMultiplier;
        const totalDuration = Math.min(Math.round(cpuNode.duration / 1e3 * multiplier), DEFAULT_MAXIMUM_CPU_TASK_DURATION);
        const estimatedTimeElapsed = totalDuration - timingData.timeElapsed;
        this.nodeTimings.setCpuEstimated(cpuNode, { estimatedTimeElapsed });
        return estimatedTimeElapsed;
      }
      estimateNetworkTimeRemaining(networkNode) {
        const request = networkNode.request;
        const timingData = this.nodeTimings.getNetworkStarted(networkNode);
        let timeElapsed = 0;
        if (networkNode.fromDiskCache) {
          const sizeInMb = (request.resourceSize || 0) / 1024 / 1024;
          timeElapsed = 8 + 20 * sizeInMb - timingData.timeElapsed;
        } else if (networkNode.isNonNetworkProtocol) {
          const sizeInMb = (request.resourceSize || 0) / 1024 / 1024;
          timeElapsed = 2 + 10 * sizeInMb - timingData.timeElapsed;
        } else {
          const connection = this.connectionPool.acquireActiveConnectionFromRequest(request);
          const dnsResolutionTime = this.dns.getTimeUntilResolution(request, {
            requestedAt: timingData.startTime,
            shouldUpdateCache: true
          });
          const timeAlreadyElapsed = timingData.timeElapsed;
          const calculation = connection.simulateDownloadUntil(request.transferSize - timingData.bytesDownloaded, { timeAlreadyElapsed, dnsResolutionTime, maximumTimeToElapse: Infinity });
          timeElapsed = calculation.timeElapsed;
        }
        const estimatedTimeElapsed = timeElapsed + timingData.timeElapsedOvershoot;
        this.nodeTimings.setNetworkEstimated(networkNode, { estimatedTimeElapsed });
        return estimatedTimeElapsed;
      }
      /**
       * Computes and returns the minimum estimated completion time of the nodes currently in progress.
       */
      findNextNodeCompletionTime() {
        let minimumTime = Infinity;
        for (const node of this.nodes[NodeState.InProgress]) {
          minimumTime = Math.min(minimumTime, this.estimateTimeRemaining(node));
        }
        return minimumTime;
      }
      /**
       * Given a time period, computes the progress toward completion that the node made during that time.
       */
      updateProgressMadeInTimePeriod(node, timePeriodLength, totalElapsedTime) {
        const timingData = this.nodeTimings.getInProgress(node);
        const isFinished = timingData.estimatedTimeElapsed === timePeriodLength;
        if (node.type === BaseNode.types.CPU || node.isConnectionless) {
          if (isFinished) {
            this.markNodeAsComplete(node, totalElapsedTime);
          } else {
            timingData.timeElapsed += timePeriodLength;
          }
          return;
        }
        if (node.type !== BaseNode.types.NETWORK) {
          throw new LanternError("Unsupported");
        }
        if (!("bytesDownloaded" in timingData)) {
          throw new LanternError("Invalid timing data");
        }
        const request = node.request;
        const connection = this.connectionPool.acquireActiveConnectionFromRequest(request);
        const dnsResolutionTime = this.dns.getTimeUntilResolution(request, {
          requestedAt: timingData.startTime,
          shouldUpdateCache: true
        });
        const calculation = connection.simulateDownloadUntil(request.transferSize - timingData.bytesDownloaded, {
          dnsResolutionTime,
          timeAlreadyElapsed: timingData.timeElapsed,
          maximumTimeToElapse: timePeriodLength - timingData.timeElapsedOvershoot
        });
        connection.setCongestionWindow(calculation.congestionWindow);
        connection.setH2OverflowBytesDownloaded(calculation.extraBytesDownloaded);
        if (isFinished) {
          connection.setWarmed(true);
          this.connectionPool.release(request);
          this.markNodeAsComplete(node, totalElapsedTime, calculation.connectionTiming);
        } else {
          timingData.timeElapsed += calculation.timeElapsed;
          timingData.timeElapsedOvershoot += calculation.timeElapsed - timePeriodLength;
          timingData.bytesDownloaded += calculation.bytesDownloaded;
        }
      }
      computeFinalNodeTimings() {
        const completeNodeTimingEntries = this.nodeTimings.getNodes().map((node) => {
          return [node, this.nodeTimings.getCompleted(node)];
        });
        completeNodeTimingEntries.sort((a, b) => a[1].startTime - b[1].startTime);
        const nodeTimingEntries = completeNodeTimingEntries.map(([node, timing]) => {
          return [
            node,
            {
              startTime: timing.startTime,
              endTime: timing.endTime,
              duration: timing.endTime - timing.startTime
            }
          ];
        });
        return {
          nodeTimings: new Map(nodeTimingEntries),
          completeNodeTimings: new Map(completeNodeTimingEntries)
        };
      }
      getOptions() {
        return this.options;
      }
      /**
       * Estimates the time taken to process all of the graph's nodes, returns the overall time along with
       * each node annotated by start/end times.
       *
       * Simulator/connection pool are allowed to deviate from what was
       * observed in the trace/devtoolsLog and start requests as soon as they are queued (i.e. do not
       * wait around for a warm connection to be available if the original request was fetched on a warm
       * connection).
       */
      simulate(graph2, options) {
        if (BaseNode.findCycle(graph2)) {
          throw new LanternError("Cannot simulate graph with cycle");
        }
        options = Object.assign({
          label: void 0
        }, options);
        this.dns = new DNSCache({ rtt: this._rtt });
        this.initializeConnectionPool(graph2);
        this.initializeAuxiliaryData();
        const nodesNotReadyToStart = this.nodes[NodeState.NotReadyToStart];
        const nodesReadyToStart = this.nodes[NodeState.ReadyToStart];
        const nodesInProgress = this.nodes[NodeState.InProgress];
        const rootNode = graph2.getRootNode();
        rootNode.traverse((node) => nodesNotReadyToStart.add(node));
        let totalElapsedTime = 0;
        let iteration = 0;
        this.markNodeAsReadyToStart(rootNode, totalElapsedTime);
        while (nodesReadyToStart.size || nodesInProgress.size) {
          for (const node of this.getNodesSortedByStartPosition()) {
            this.startNodeIfPossible(node, totalElapsedTime);
          }
          if (!nodesInProgress.size) {
            throw new LanternError("Failed to start a node");
          }
          this.updateNetworkCapacity();
          const minimumTime = this.findNextNodeCompletionTime();
          totalElapsedTime += minimumTime;
          if (!Number.isFinite(minimumTime) || iteration > 1e5) {
            throw new LanternError("Simulation failed, depth exceeded");
          }
          iteration++;
          for (const node of nodesInProgress) {
            this.updateProgressMadeInTimePeriod(node, minimumTime, totalElapsedTime);
          }
        }
        const { nodeTimings, completeNodeTimings } = this.computeFinalNodeTimings();
        ALL_SIMULATION_NODE_TIMINGS.set(options.label || "unlabeled", completeNodeTimings);
        return {
          timeInMs: totalElapsedTime,
          nodeTimings
        };
      }
      computeWastedMsFromWastedBytes(wastedBytes) {
        const { throughput, observedThroughput } = this.options;
        const bitsPerSecond = throughput === 0 ? observedThroughput : throughput;
        if (bitsPerSecond === 0) {
          return 0;
        }
        const wastedBits = wastedBytes * 8;
        const wastedMs = wastedBits / bitsPerSecond * 1e3;
        return Math.round(wastedMs / 10) * 10;
      }
      // Used by Lighthouse asset-saver
      static get allNodeTimings() {
        return ALL_SIMULATION_NODE_TIMINGS;
      }
      /**
       * We attempt to start nodes by their observed start time using the request priority as a tie breaker.
       * When simulating, just because a low priority image started 5ms before a high priority image doesn't mean
       * it would have happened like that when the network was slower.
       */
      static computeNodeStartPosition(node) {
        if (node.type === "cpu") {
          return node.startTime;
        }
        return node.startTime + (PriorityStartTimePenalty[node.request.priority] * 1e3 * 1e3 || 0);
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/simulation.js
var simulation_exports = {};
__export(simulation_exports, {
  ConnectionPool: () => ConnectionPool,
  Constants: () => Constants,
  DNSCache: () => DNSCache,
  Simulator: () => Simulator,
  SimulatorTimingMap: () => SimulatorTimingMap,
  TCPConnection: () => TCPConnection
});
var init_simulation = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/simulation/simulation.js"() {
    init_process_global();
    init_ConnectionPool();
    init_Constants();
    init_DNSCache();
    init_SimulationTimingMap();
    init_Simulator();
    init_TCPConnection();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/types/Lantern.js
var NetworkRequestTypes;
var init_Lantern = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/types/Lantern.js"() {
    init_process_global();
    NetworkRequestTypes = {
      XHR: "XHR",
      Fetch: "Fetch",
      EventSource: "EventSource",
      Script: "Script",
      Stylesheet: "Stylesheet",
      Image: "Image",
      Media: "Media",
      Font: "Font",
      Document: "Document",
      TextTrack: "TextTrack",
      WebSocket: "WebSocket",
      Other: "Other",
      Manifest: "Manifest",
      SignedExchange: "SignedExchange",
      Ping: "Ping",
      Preflight: "Preflight",
      CSPViolationReport: "CSPViolationReport",
      Prefetch: "Prefetch",
      FedCM: "FedCM"
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/types/types.js
var types_exports = {};
__export(types_exports, {
  NetworkRequestTypes: () => NetworkRequestTypes
});
var init_types = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/types/types.js"() {
    init_process_global();
    init_Lantern();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/lantern/lantern.js
var init_lantern = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/lantern/lantern.js"() {
    init_process_global();
    init_core();
    init_graph();
    init_metrics();
    init_simulation();
    init_types();
  }
});

// node_modules/@paulirish/trace_engine/node_modules/third-party-web/lib/create-entity-finder-api.js
var require_create_entity_finder_api = __commonJS({
  "node_modules/@paulirish/trace_engine/node_modules/third-party-web/lib/create-entity-finder-api.js"(exports2, module2) {
    init_process_global();
    var DOMAIN_IN_URL_REGEX = /:\/\/(\S*?)(:\d+)?(\/|$)/;
    var DOMAIN_CHARACTERS = /([a-z0-9.-]+\.[a-z0-9]+|localhost)/i;
    var IP_REGEX = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;
    var ROOT_DOMAIN_REGEX = /[^.]+\.([^.]+|(gov|com|co|ne)\.\w{2})$/i;
    function getDomainFromOriginOrURL(originOrURL) {
      if (typeof originOrURL !== "string") return null;
      if (originOrURL.length > 1e4 || originOrURL.startsWith("data:")) return null;
      if (DOMAIN_IN_URL_REGEX.test(originOrURL)) return originOrURL.match(DOMAIN_IN_URL_REGEX)[1];
      if (DOMAIN_CHARACTERS.test(originOrURL)) return originOrURL.match(DOMAIN_CHARACTERS)[0];
      return null;
    }
    __name(getDomainFromOriginOrURL, "getDomainFromOriginOrURL");
    function getRootDomain(originOrURL) {
      const domain = getDomainFromOriginOrURL(originOrURL);
      if (!domain) return null;
      if (IP_REGEX.test(domain)) return domain;
      const match = domain.match(ROOT_DOMAIN_REGEX);
      return match && match[0] || domain;
    }
    __name(getRootDomain, "getRootDomain");
    function sliceSubdomainFromDomain(domain, rootDomain) {
      if (domain.length <= rootDomain.length) return domain;
      return domain.split(".").slice(1).join(".");
    }
    __name(sliceSubdomainFromDomain, "sliceSubdomainFromDomain");
    function getEntityInDataset(entityByDomain, entityBySubDomain, entityByRootDomain, originOrURL) {
      const domain = getDomainFromOriginOrURL(originOrURL);
      const rootDomain = getRootDomain(domain);
      if (!domain || !rootDomain) return void 0;
      if (entityByDomain.has(domain)) return entityByDomain.get(domain);
      for (let subdomain = domain; subdomain.length > rootDomain.length; subdomain = sliceSubdomainFromDomain(subdomain, rootDomain)) {
        if (entityBySubDomain.has(subdomain)) return entityBySubDomain.get(subdomain);
      }
      if (entityByRootDomain.has(rootDomain)) return entityByRootDomain.get(rootDomain);
      return void 0;
    }
    __name(getEntityInDataset, "getEntityInDataset");
    function getProductInDataset(entityByDomain, entityBySubDomain, entityByRootDomain, originOrURL) {
      const entity = getEntityInDataset(
        entityByDomain,
        entityBySubDomain,
        entityByRootDomain,
        originOrURL
      );
      const products = entity && entity.products;
      if (!products) return void 0;
      if (typeof originOrURL !== "string") return void 0;
      for (const product of products) {
        for (const pattern of product.urlPatterns) {
          if (pattern instanceof RegExp && pattern.test(originOrURL)) return product;
          if (typeof pattern === "string" && originOrURL.includes(pattern)) return product;
        }
      }
      return void 0;
    }
    __name(getProductInDataset, "getProductInDataset");
    function cloneEntities(entities) {
      return entities.map((entity_) => {
        const entity = {
          company: entity_.name,
          categories: [entity_.category],
          ...entity_
        };
        const products = (entity_.products || []).map((product) => ({
          company: entity.company,
          category: entity.category,
          categories: [entity.category],
          facades: [],
          ...product,
          urlPatterns: (product.urlPatterns || []).map(
            (s) => s.startsWith("REGEXP:") ? new RegExp(s.slice("REGEXP:".length)) : s
          )
        }));
        entity.products = products;
        return entity;
      });
    }
    __name(cloneEntities, "cloneEntities");
    function createAPIFromDataset(entities_) {
      const entities = cloneEntities(entities_);
      const entityByDomain = /* @__PURE__ */ new Map();
      const entityByRootDomain = /* @__PURE__ */ new Map();
      const entityBySubDomain = /* @__PURE__ */ new Map();
      for (const entity of entities) {
        entity.totalExecutionTime = Number(entity.totalExecutionTime) || 0;
        entity.totalOccurrences = Number(entity.totalOccurrences) || 0;
        entity.averageExecutionTime = entity.totalExecutionTime / entity.totalOccurrences;
        for (const domain of entity.domains) {
          if (entityByDomain.has(domain)) {
            const duplicate = entityByDomain.get(domain);
            throw new Error(`Duplicate domain ${domain} (${entity.name} and ${duplicate.name})`);
          }
          entityByDomain.set(domain, entity);
          const rootDomain = getRootDomain(domain);
          if (domain.startsWith("*.")) {
            const wildcardDomain = domain.slice(2);
            if (wildcardDomain === rootDomain) entityByRootDomain.set(rootDomain, entity);
            else entityBySubDomain.set(wildcardDomain, entity);
          }
        }
      }
      for (const [rootDomain, entity] of entityByRootDomain.entries()) {
        if (!entity) entityByRootDomain.delete(rootDomain);
      }
      const getEntity = getEntityInDataset.bind(
        null,
        entityByDomain,
        entityBySubDomain,
        entityByRootDomain
      );
      const getProduct = getProductInDataset.bind(
        null,
        entityByDomain,
        entityBySubDomain,
        entityByRootDomain
      );
      return { getEntity, getProduct, getRootDomain, entities };
    }
    __name(createAPIFromDataset, "createAPIFromDataset");
    module2.exports = { createAPIFromDataset };
  }
});

// node_modules/@paulirish/trace_engine/node_modules/third-party-web/dist/entities.json
var require_entities = __commonJS({
  "node_modules/@paulirish/trace_engine/node_modules/third-party-web/dist/entities.json"(exports2, module2) {
    module2.exports = [{ name: "Google/Doubleclick Ads", company: "Google", homepage: "https://marketingplatform.google.com/about/enterprise/", category: "ad", domains: ["adservice.google.com", "adservice.google.com.au", "adservice.google.com.sg", "adservice.google.com.br", "adservice.google.com.ua", "adservice.google.co.uk", "adservice.google.co.jp", "adservice.google.co.in", "adservice.google.co.kr", "adservice.google.co.id", "adservice.google.co.nz", "adservice.google.ie", "adservice.google.se", "adservice.google.de", "adservice.google.ca", "adservice.google.be", "adservice.google.es", "adservice.google.ch", "adservice.google.fr", "adservice.google.nl", "*.googleadservices.com", "*.googlesyndication.com", "*.googletagservices.com", "*.2mdn.net", "*.doubleclick.net"], examples: ["pagead2.googlesyndication.com", "tpc.googlesyndication.com", "ade.googlesyndication.com", "googleads.g.doubleclick.net", "googleads4.g.doubleclick.net", "securepubads.g.doubleclick.net", "pubads.g.doubleclic\
k.net", "static.doubleclick.net", "cm.g.doubleclick.net", "bid.g.doubleclick.net", "s0.2mdn.net", "stats.g.doubleclick.net", "survey.g.doubleclick.net", "fls.doubleclick.net", "ad.doubleclick.net", "www.googleadservices.com", "https://www.googletagservices.com/tag/js/gpt.js"], totalExecutionTime: 3224311743, totalOccurrences: 1232210 }, { name: "Facebook", homepage: "https://www.facebook.com", category: "social", domains: ["*.facebook.com", "*.atlassbx.com", "*.fbsbx.com", "fbcdn-photos-e-a.akamaihd.net", "*.facebook.net", "*.fbcdn.net"], examples: ["www.facebook.com", "connect.facebook.net", "staticxx.facebook.com", "static.xx.fbcdn.net", "m.facebook.com", "an.facebook.com", "platform-lookaside.fbsbx.com"], products: [{ name: "Facebook Messenger Customer Chat", urlPatterns: ["REGEXP:connect\\.facebook\\.net\\/.*\\/sdk\\/xfbml\\.customerchat\\.js"], facades: [{ name: "React Live Chat Loader", repo: "https://github.com/calibreapp/react-live-chat-loader" }] }], totalExecutionTime: 1097107210,
    totalOccurrences: 3157799 }, { name: "Instagram", homepage: "https://www.instagram.com", category: "social", domains: ["*.cdninstagram.com", "*.instagram.com"], examples: ["scontent.cdninstagram.com"], totalExecutionTime: 31988464, totalOccurrences: 20376 }, { name: "Google CDN", company: "Google", homepage: "https://developers.google.com/speed/libraries/", category: "cdn", domains: ["ajax.googleapis.com", "commondatastorage.googleapis.com", "www.gstatic.com", "ssl.gstatic.com"], totalExecutionTime: 4805631169, totalOccurrences: 3192326 }, { name: "Google Maps", company: "Google", homepage: "https://www.google.com/maps", category: "utility", domains: ["maps.google.com", "maps-api-ssl.google.com", "maps.googleapis.com", "mts.googleapis.com", "mt.googleapis.com", "mt0.googleapis.com", "mt1.googleapis.com", "mt2.googleapis.com", "mt3.googleapis.com", "khm0.googleapis.com", "khm1.googleapis.com", "khms.googleapis.com", "khms1.googleapis.com", "khms2.googleapis.com", "maps.gstatic.com"],
    totalExecutionTime: 904392768, totalOccurrences: 1195850 }, { name: "Other Google APIs/SDKs", company: "Google", homepage: "https://developers.google.com/apis-explorer/#p/", category: "utility", domains: ["accounts.google.com", "apis.google.com", "calendar.google.com", "clients2.google.com", "cse.google.com", "news.google.com", "pay.google.com", "payments.google.com", "play.google.com", "smartlock.google.com", "www.google.com", "www.google.de", "www.google.co.jp", "www.google.com.au", "www.google.co.uk", "www.google.ie", "www.google.com.sg", "www.google.co.in", "www.google.com.br", "www.google.ca", "www.google.co.kr", "www.google.co.nz", "www.google.co.id", "www.google.fr", "www.google.be", "www.google.com.ua", "www.google.nl", "www.google.ru", "www.google.se", "www.googleapis.com", "imasdk.googleapis.com", "storage.googleapis.com", "translate.googleapis.com", "translate.google.com", "translate-pa.googleapis.com", "lh3.googleusercontent.com", "jnn-pa.googleapis.com", "csi.gstatic.c\
om"], totalExecutionTime: 1158368443, totalOccurrences: 2638940 }, { name: "Firebase", homepage: "https://developers.google.com/apis-explorer/#p/", category: "utility", domains: ["firebasestorage.googleapis.com", "firestore.googleapis.com", "firebaseinstallations.googleapis.com", "firebase.googleapis.com", "firebaseremoteconfig.googleapis.com"], totalExecutionTime: 201194, totalOccurrences: 493 }, { name: "Google Analytics", company: "Google", homepage: "https://marketingplatform.google.com/about/analytics/", category: "analytics", domains: ["*.google-analytics.com", "*.urchin.com", "analytics.google.com"], examples: ["www.google-analytics.com", "ssl.google-analytics.com", "analytics.google.com/g/collect"], totalExecutionTime: 495649535, totalOccurrences: 4231882 }, { name: "Google Optimize", company: "Google", homepage: "https://marketingplatform.google.com/about/optimize/", category: "analytics", domains: ["www.googleoptimize.com"], examples: ["https://www.googleoptimize.com/optimize\
.js?id="], totalExecutionTime: 9330261, totalOccurrences: 38797 }, { name: "Google AMP", company: "Google", homepage: "https://github.com/google/amp-client-id-library", category: "analytics", domains: ["ampcid.google.com"] }, { name: "Google Tag Manager", company: "Google", homepage: "https://marketingplatform.google.com/about/tag-manager/", category: "tag-manager", domains: ["*.googletagmanager.com"], examples: ["www.googletagmanager.com"], totalExecutionTime: 6770912735, totalOccurrences: 8124119 }, { name: "Google Fonts", company: "Google", homepage: "https://fonts.google.com/", category: "cdn", domains: ["fonts.googleapis.com", "fonts.gstatic.com"], totalExecutionTime: 53081, totalOccurrences: 220864 }, { name: "Adobe TypeKit", company: "Adobe", homepage: "https://fonts.adobe.com/", category: "cdn", domains: ["*.typekit.com", "*.typekit.net"], examples: ["use.typekit.net", "p.typekit.net"], totalExecutionTime: 78981507, totalOccurrences: 119621 }, { name: "YouTube", homepage: "http\
s://youtube.com", category: "video", domains: ["*.youtube.com", "*.ggpht.com", "*.youtube-nocookie.com", "*.ytimg.com"], examples: ["www.youtube.com", "s.ytimg.com", "yt3.ggpht.com", "img.youtube.com", "fcmatch.youtube.com"], products: [{ name: "YouTube Embedded Player", urlPatterns: ["youtube.com/embed/"], facades: [{ name: "Lite YouTube", repo: "https://github.com/paulirish/lite-youtube-embed" }, { name: "Ngx Lite Video", repo: "https://github.com/karim-mamdouh/ngx-lite-video" }] }], totalExecutionTime: 6277579675, totalOccurrences: 977311 }, { name: "Twitter", homepage: "https://twitter.com", category: "social", domains: ["*.vine.co", "*.twimg.com", "*.twitpic.com", "platform.twitter.com", "syndication.twitter.com"], examples: ["cdn.syndication.twimg.com", "abs.twimg.com", "pbs.twimg.com"], totalExecutionTime: 804233203, totalOccurrences: 319957 }, { name: "AddThis", homepage: "https://www.addthis.com/", category: "social", domains: ["*.addthis.com", "*.addthiscdn.com", "*.addthised\
ge.com"], examples: ["s7.addthis.com", "r.dlx.addthis.com", "su.addthis.com", "x.dlx.addthis.com"], totalExecutionTime: 23, totalOccurrences: 42 }, { name: "AddToAny", homepage: "https://www.addtoany.com/", category: "social", domains: ["*.addtoany.com"], examples: ["static.addtoany.com"], totalExecutionTime: 10606113, totalOccurrences: 66065 }, { name: "Akamai", homepage: "https://www.akamai.com/", category: "cdn", domains: ["23.62.3.183", "*.akamaitechnologies.com", "*.akamaitechnologies.fr", "*.akamai.net", "*.akamaiedge.net", "*.akamaihd.net", "*.akamaized.net", "*.edgefcs.net", "*.edgekey.net", "edgesuite.net", "*.srip.net"], totalExecutionTime: 4795669, totalOccurrences: 9820 }, { name: "Blogger", homepage: "https://www.blogger.com/", category: "hosting", domains: ["*.blogblog.com", "*.blogger.com", "*.blogspot.com", "images-blogger-opensocial.googleusercontent.com"], examples: ["1.bp.blogspot.com", "www.blogger.com"], totalExecutionTime: 58390438, totalOccurrences: 213326 }, { name: "\
Gravatar", homepage: "https://en.gravatar.com/", category: "social", domains: ["*.gravatar.com"], examples: ["secure.gravatar.com", "www.gravatar.com"], totalExecutionTime: 9235, totalOccurrences: 43 }, { name: "Yandex Metrica", company: "Yandex", homepage: "https://metrica.yandex.com/about?", category: "analytics", domains: ["mc.yandex.ru", "mc.yandex.com", "d31j93rd8oukbv.cloudfront.net"], totalExecutionTime: 1438544698, totalOccurrences: 602136 }, { name: "Hotjar", homepage: "https://www.hotjar.com/", category: "analytics", domains: ["*.hotjar.com", "*.hotjar.io"], examples: ["script.hotjar.com", "static.hotjar.com", "in.hotjar.com", "vc.hotjar.io", "vars.hotjar.com"], totalExecutionTime: 241418055, totalOccurrences: 333356 }, { name: "Baidu Analytics", homepage: "https://tongji.baidu.com/web/welcome/login", category: "analytics", domains: ["hm.baidu.com", "hmcdn.baidu.com"], examples: ["hm.baidu.com", "hmcdn.baidu.com"], totalExecutionTime: 7739347, totalOccurrences: 32612 }, { name: "\
Insider", homepage: "", category: "analytics", domains: ["*.useinsider.com"], examples: ["hit.api.useinsider.com"], totalExecutionTime: 2214966, totalOccurrences: 1861 }, { name: "Adobe Experience Cloud", company: "Adobe", homepage: "", category: "analytics", domains: ["*.2o7.net", "du8783wkf05yr.cloudfront.net", "*.hitbox.com", "*.imageg.net", "*.nedstat.com", "*.omtrdc.net"], examples: ["audiag.112.2o7.net", "du8783wkf05yr.cloudfront.net/NS_mbox.js"], totalExecutionTime: 2369, totalOccurrences: 38 }, { name: "Adobe Tag Manager", company: "Adobe", homepage: "https://www.adobe.com/experience-platform/", category: "tag-manager", domains: ["*.adobedtm.com", "*.demdex.net", "*.everesttech.net", "sstats.adobe.com", "hbrt.adobe.com"], examples: ["assets.adobedtm.com", "sync-tm.everesttech.net", "cm.everesttech.net"], totalExecutionTime: 34937564, totalOccurrences: 200160 }, { name: "jQuery CDN", homepage: "https://code.jquery.com/", category: "cdn", domains: ["*.jquery.com"], examples: ["co\
de.jquery.com"], totalExecutionTime: 302334055, totalOccurrences: 724477 }, { name: "Cloudflare CDN", homepage: "https://cdnjs.com/", category: "cdn", domains: ["cdnjs.cloudflare.com", "amp.cloudflare.com"], totalExecutionTime: 337711119, totalOccurrences: 666628 }, { name: "Cloudflare", homepage: "https://www.cloudflare.com/website-optimization/", category: "utility", domains: ["ajax.cloudflare.com", "*.nel.cloudflare.com", "static.cloudflareinsights.com"], totalExecutionTime: 58723052, totalOccurrences: 467719 }, { name: "WordPress", company: "Automattic", homepage: "https://wp.com/", category: "hosting", domains: ["*.wordpress.com", "s0.wp.com", "s2.wp.com", "*.w.org", "c0.wp.com", "s1.wp.com", "i0.wp.com", "i1.wp.com", "i2.wp.com", "widgets.wp.com"], examples: ["s.w.org"], totalExecutionTime: 220910650, totalOccurrences: 308694 }, { name: "WordPress Site Stats", company: "Automattic", homepage: "https://wp.com/", category: "analytics", domains: ["pixel.wp.com", "stats.wp.com"], totalExecutionTime: 8573549,
    totalOccurrences: 128931 }, { name: "Hatena Blog", homepage: "https://hatenablog.com/", category: "hosting", domains: ["*.st-hatena.com", "*.hatena.ne.jp"], examples: ["cdn.blog.st-hatena.com", "cdn.pool.st-hatena.com", "cdn7.www.st-hatena.com", "s.hatena.ne.jp", "b.st-hatena.com"], totalExecutionTime: 106337940, totalOccurrences: 43183 }, { name: "Shopify", homepage: "https://www.shopify.com/", category: "hosting", domains: ["*.shopify.com", "*.shopifyapps.com", "*.shopifycdn.com", "*.shopifysvc.com"], examples: ["cdn.shopify.com", "productreviews.shopifycdn.com", "monorail-edge.shopifysvc.com"], totalExecutionTime: 287428893, totalOccurrences: 338668 }, { name: "Dealer", homepage: "https://www.dealer.com/", category: "hosting", domains: ["*.dealer.com"], examples: ["static.dealer.com"], totalExecutionTime: 871324, totalOccurrences: 2620 }, { name: "PIXNET", homepage: "https://www.pixnet.net/", category: "social", domains: ["*.pixfs.net", "*.pixnet.net"], examples: ["front.pixfs.n\
et", "falcon-asset.pixfs.net", "pixgame-asset.pixfs.net"], totalExecutionTime: 18541448, totalOccurrences: 13718 }, { name: "Moat", homepage: "https://moat.com/", category: "ad", domains: ["*.moatads.com", "*.moatpixel.com"], examples: ["z.moatads.com", "px.moatads.com", "geo.moatads.com", "sejs.moatads.com", "mb.moatads.com", "v4.moatads.com"] }, { name: "33 Across", homepage: "https://33across.com/", category: "ad", domains: ["*.33across.com"], examples: ["sic.33across.com", "cdn-sic.33across.com"], totalExecutionTime: 10002146, totalOccurrences: 192648 }, { name: "OpenX", homepage: "https://www.openx.com/", category: "ad", domains: ["*.deliverimp.com", "*.openxadexchange.com", "*.servedbyopenx.com", "*.jump-time.net", "*.openx.net", "*.openxcdn.net"], examples: ["uk-ads.openx.net", "us-ads.openx.net", "33across-d.openx.net", "rtb.openx.net", "us-u.openx.net", "eu-u.openx.net", "u.openx.net"], totalExecutionTime: 6274934, totalOccurrences: 76561 }, { name: "Amazon Ads", homepage: "ht\
tps://ad.amazon.com/", category: "ad", domains: ["*.amazon-adsystem.com"], examples: ["s.amazon-adsystem.com", "c.amazon-adsystem.com", "aax.amazon-adsystem.com", "z-na.amazon-adsystem.com", "fls-na.amazon-adsystem.com", "aax-us-east.amazon-adsystem.com", "ir-na.amazon-adsystem.com"], totalExecutionTime: 98703856, totalOccurrences: 240331 }, { name: "Rubicon Project", homepage: "https://rubiconproject.com/", category: "ad", domains: ["*.rubiconproject.com", "*.chango.com", "*.fimserve.com"], examples: ["pixel.rubiconproject.com", "fastlane.rubiconproject.com", "secure-assets.rubiconproject.com", "eus.rubiconproject.com", "pixel-us-east.rubiconproject.com", "token.rubiconproject.com", "ads.rubiconproject.com"], totalExecutionTime: 287111007, totalOccurrences: 270271 }, { name: "The Trade Desk", homepage: "https://www.thetradedesk.com/", category: "ad", domains: ["*.adsrvr.org", "d1eoo1tco6rr5e.cloudfront.net"], examples: ["js.adsrvr.org", "match.adsrvr.org", "insight.adsrvr.org", "usw-l\
ax.adsrvr.org", "data.adsrvr.org", "snap.adsrvr.org"], totalExecutionTime: 2197325, totalOccurrences: 25346 }, { name: "Bidswitch", homepage: "https://www.bidswitch.com/", category: "ad", domains: ["*.bidswitch.net"], examples: ["x.bidswitch.net"], totalExecutionTime: 25660, totalOccurrences: 68217 }, { name: "LiveRamp IdentityLink", homepage: "https://liveramp.com/discover-identitylink/", category: "analytics", domains: ["*.circulate.com", "*.rlcdn.com"], examples: ["idsync.rlcdn.com", "id.rlcdn.com", "api.rlcdn.com", "cdn.rlcdn.com"], totalExecutionTime: 141414, totalOccurrences: 1461 }, { name: "Drawbridge", homepage: "https://www.drawbridge.com/", category: "ad", domains: ["*.adsymptotic.com"] }, { name: "AOL / Oath / Verizon Media", homepage: "https://www.oath.com/", category: "ad", domains: ["*.advertising.com", "*.aol.com", "*.aolcdn.com", "*.blogsmithmedia.com", "*.oath.com", "*.aol.net", "*.tacoda.net", "*.aol.co.uk"], examples: ["pixel.advertising.com", "dtm.advertising.com",
    "tag.sp.advertising.com", "service.sp.advertising.com", "adtech.advertising.com", "adaptv.advertising.com", "mighty.aol.net", "consent.cmp.oath.com"], totalExecutionTime: 165968, totalOccurrences: 278 }, { name: "Xaxis", homepage: "https://www.xaxis.com/", category: "ad", domains: ["*.247realmedia.com", "*.mookie1.com", "*.gmads.net"], examples: ["t.mookie1.com", "odr.mookie1.com"], totalExecutionTime: 28343, totalOccurrences: 209 }, { name: "Freshdesk", company: "Freshworks", homepage: "https://freshdesk.com/", category: "customer-success", domains: ["d36mpcpuzc4ztk.cloudfront.net"], totalExecutionTime: 64296, totalOccurrences: 225 }, { name: "Help Scout", homepage: "https://www.helpscout.net/", category: "customer-success", domains: ["djtflbt20bdde.cloudfront.net", "*.helpscout.net"], examples: ["beacon-v2.helpscout.net"], products: [{ name: "Help Scout Beacon", urlPatterns: ["beacon-v2.helpscout.net"], facades: [{ name: "React Live Chat Loader", repo: "https://github.com/calibre\
app/react-live-chat-loader" }] }], totalExecutionTime: 2186050, totalOccurrences: 4906 }, { name: "Alexa", homepage: "https://www.alexa.com/", category: "analytics", domains: ["*.alexametrics.com", "d31qbv1cthcecs.cloudfront.net"], examples: ["certify.alexametrics.com"] }, { name: "OneSignal", homepage: "https://onesignal.com/", category: "utility", domains: ["*.onesignal.com"], examples: ["cdn.onesignal.com", "https://onesignal.com/api/v1/sync/"], totalExecutionTime: 17761218, totalOccurrences: 68282 }, { name: "Lucky Orange", homepage: "https://www.luckyorange.com/", category: "analytics", domains: ["*.luckyorange.com", "d10lpsik1i8c69.cloudfront.net", "*.luckyorange.net"], totalExecutionTime: 12779009, totalOccurrences: 16442 }, { name: "Crazy Egg", homepage: "https://www.crazyegg.com/", category: "analytics", domains: ["*.cetrk.com", "*.crazyegg.com", "dnn506yrbagrg.cloudfront.net"], totalExecutionTime: 27593244, totalOccurrences: 43822 }, { name: "Hello Bar", homepage: "https://ww\
w.hellobar.com/", category: "marketing", domains: ["*.hellobar.com"], totalExecutionTime: 1533955, totalOccurrences: 4502 }, { name: "Yandex Ads", company: "Yandex", homepage: "https://yandex.com/adv/", category: "ad", domains: ["an.yandex.ru"], totalExecutionTime: 5171537, totalOccurrences: 8488 }, { name: "Salesforce", homepage: "https://www.salesforce.com/products/marketing-cloud/", category: "analytics", domains: ["*.krxd.net"], examples: ["cdn.krxd.net", "beacon.krxd.net", "consumer.krxd.net", "usermatch.krxd.net"] }, { name: "Salesforce Commerce Cloud", homepage: "https://www.salesforce.com/products/commerce-cloud/overview/", category: "hosting", domains: ["*.cquotient.com", "*.demandware.net", "demandware.edgesuite.net"], totalExecutionTime: 2045309, totalOccurrences: 4127 }, { name: "Optimizely", homepage: "https://www.optimizely.com/", category: "analytics", domains: ["*.optimizely.com"], examples: ["cdn.optimizely.com", "cdn-pci.optimizely.com", "logx.optimizely.com", "cdn3.o\
ptimizely.com"], totalExecutionTime: 12599739, totalOccurrences: 15998 }, { name: "LiveChat", homepage: "https://www.livechat.com/", category: "customer-success", domains: ["*.livechatinc.com", "*.livechat.com", "*.livechat-static.com"], examples: ["cdn.livechatinc.com", "secure.livechatinc.com"], totalExecutionTime: 49171416, totalOccurrences: 39034 }, { name: "VK", homepage: "https://vk.com/", category: "social", domains: ["*.vk.com"], totalExecutionTime: 91334176, totalOccurrences: 22377 }, { name: "Tumblr", homepage: "https://tumblr.com/", category: "social", domains: ["*.tumblr.com"], examples: ["assets.tumblr.com", "static.tumblr.com"], totalExecutionTime: 45570825, totalOccurrences: 18114 }, { name: "Wistia", homepage: "https://wistia.com/", category: "video", domains: ["*.wistia.com", "embedwistia-a.akamaihd.net", "*.wistia.net"], examples: ["fast.wistia.com", "fast.wistia.net", "distillery.wistia.com", "pipedream.wistia.com"], totalExecutionTime: 115722112, totalOccurrences: 27059 },
    { name: "Brightcove", homepage: "https://www.brightcove.com/en/", category: "video", domains: ["*.brightcove.com", "*.brightcove.net", "*.zencdn.net"], examples: ["vjs.zencdn.net", "players.brightcove.net"], totalExecutionTime: 15099708, totalOccurrences: 13745 }, { name: "JSDelivr CDN", homepage: "https://www.jsdelivr.com/", category: "cdn", domains: ["*.jsdelivr.net"], examples: ["cdn.jsdelivr.net"], totalExecutionTime: 260364458, totalOccurrences: 399959 }, { name: "Sumo", homepage: "https://sumo.com/", category: "marketing", domains: ["*.sumo.com", "*.sumome.com", "sumo.b-cdn.net"], examples: ["sumo.b-cdn.net", "load.sumo.com", "load.sumome.com"], totalExecutionTime: 16489977, totalOccurrences: 10901 }, { name: "Vimeo", homepage: "https://vimeo.com/", category: "video", domains: ["*.vimeo.com", "*.vimeocdn.com"], examples: ["f.vimeocdn.com", "player.vimeo.com", "i.vimeocdn.com"], products: [{ name: "Vimeo Embedded Player", urlPatterns: ["player.vimeo.com/video/"], facades: [{ name: "\
Lite Vimeo", repo: "https://github.com/slightlyoff/lite-vimeo" }, { name: "Lite Vimeo Embed", repo: "https://github.com/luwes/lite-vimeo-embed" }, { name: "Ngx Lite Video", repo: "https://github.com/karim-mamdouh/ngx-lite-video" }] }], totalExecutionTime: 263943622, totalOccurrences: 120397 }, { name: "Disqus", homepage: "https://disqus.com/", category: "social", domains: ["*.disqus.com", "*.disquscdn.com"], examples: ["c.disquscdn.com"], totalExecutionTime: 3697272, totalOccurrences: 1775 }, { name: "Yandex APIs", company: "Yandex", homepage: "https://yandex.ru/", category: "utility", domains: ["api-maps.yandex.ru", "money.yandex.ru"], totalExecutionTime: 40765111, totalOccurrences: 51601 }, { name: "Yandex CDN", company: "Yandex", homepage: "https://yandex.ru/", category: "cdn", domains: ["*.yandex.st", "*.yastatic.net"], examples: ["https://yastatic.net/share2/share.js", "https://yastatic.net/jquery/2.1.4/jquery.min.js"] }, { name: "Integral Ad Science", homepage: "https://integrala\
ds.com/uk/", category: "ad", domains: ["*.adsafeprotected.com", "*.iasds01.com"], examples: ["pixel.adsafeprotected.com", "static.adsafeprotected.com", "fw.adsafeprotected.com", "cdn.adsafeprotected.com", "dt.adsafeprotected.com"], totalExecutionTime: 88554254, totalOccurrences: 21660 }, { name: "Tealium", homepage: "https://tealium.com/", category: "tag-manager", domains: ["*.aniview.com", "*.delvenetworks.com", "*.limelight.com", "*.tiqcdn.com", "*.llnwd.net", "*.tealiumiq.com"], examples: ["tags.tiqcdn.com", "tealium.hs.llnwd.net", "link.videoplatform.limelight.com", "datacloud.tealiumiq.com"], totalExecutionTime: 20176561, totalOccurrences: 75434 }, { name: "Pubmatic", homepage: "https://pubmatic.com/", category: "ad", domains: ["*.pubmatic.com"], examples: ["image6.pubmatic.com", "ads.pubmatic.com", "image2.pubmatic.com", "simage2.pubmatic.com", "image4.pubmatic.com", "simage4.pubmatic.com", "image5.pubmatic.com", "hbopenbid.pubmatic.com"], totalExecutionTime: 417694368, totalOccurrences: 279418 },
    { name: "Olark", homepage: "https://www.olark.com/", category: "customer-success", domains: ["*.olark.com"], examples: ["static.olark.com"], totalExecutionTime: 9840846, totalOccurrences: 6534 }, { name: "Tawk.to", homepage: "https://www.tawk.to/", category: "customer-success", domains: ["*.tawk.to"], examples: ["embed.tawk.to"], totalExecutionTime: 43074965, totalOccurrences: 111088 }, { name: "OptinMonster", homepage: "https://optinmonster.com/", category: "marketing", domains: ["*.opmnstr.com", "*.optmnstr.com", "*.optmstr.com"], examples: ["a.optmstr.com", "api.opmnstr.com", "a.optmnstr.com"], totalExecutionTime: 1035991, totalOccurrences: 2346 }, { name: "ZenDesk", homepage: "https://zendesk.com/", category: "customer-success", domains: ["*.zdassets.com", "*.zendesk.com", "*.zopim.com"], examples: ["assets.zendesk.com", "static.zdassets.com", "v2.zopim.com"], totalExecutionTime: 106701440, totalOccurrences: 72537 }, { name: "Pusher", homepage: "https://pusher.com/", category: "\
utility", domains: ["*.pusher.com", "*.pusherapp.com"], examples: ["stats.pusher.com"], totalExecutionTime: 152727, totalOccurrences: 1698 }, { name: "Drift", homepage: "https://www.drift.com/", category: "marketing", domains: ["*.drift.com", "*.driftt.com"], examples: ["js.driftt.com", "api.drift.com"], products: [{ name: "Drift Live Chat", urlPatterns: ["REGEXP:js\\.driftt\\.com\\/include\\/.*\\/.*\\.js"], facades: [{ name: "React Live Chat Loader", repo: "https://github.com/calibreapp/react-live-chat-loader" }] }], totalExecutionTime: 30179596, totalOccurrences: 5515 }, { name: "Sentry", homepage: "https://sentry.io/", category: "utility", domains: ["*.getsentry.com", "*.ravenjs.com", "*.sentry-cdn.com", "*.sentry.io"], examples: ["cdn.ravenjs.com", "browser.sentry-cdn.com"], totalExecutionTime: 47937360, totalOccurrences: 85598 }, { name: "Amazon Web Services", homepage: "https://aws.amazon.com/s3/", category: "other", domains: ["*.amazon.com", "*.amazonaws.com", "*.amazonwebapps.c\
om", "*.amazonwebservices.com", "*.elasticbeanstalk.com", "*.images-amazon.com", "*.amazon.co.uk"], examples: ["s3.amazonaws.com", "us-east-1.amazonaws.com", "api-cdn.amazon.com", "ecx.images-amazon.com", "ws.amazon.co.uk"], totalExecutionTime: 51892201, totalOccurrences: 119152 }, { name: "Amazon Pay", homepage: "https://pay.amazon.com", category: "utility", domains: ["payments.amazon.com", "*.payments-amazon.com"], totalExecutionTime: 1234650, totalOccurrences: 6833 }, { name: "Media.net", homepage: "https://www.media.net/", category: "ad", domains: ["*.media.net", "*.mnet-ad.net"], examples: ["contextual.media.net", "cdnwest-xch.media.net", "hbx.media.net", "cs.media.net", "hblg.media.net"], totalExecutionTime: 24973689, totalOccurrences: 97679 }, { name: "Yahoo!", homepage: "https://www.yahoo.com/", category: "ad", domains: ["*.bluelithium.com", "*.hostingprod.com", "*.lexity.com", "*.yahoo.com", "*.yahooapis.com", "*.yimg.com", "*.zenfs.com", "*.yahoo.net"], examples: ["ads.yahoo.\
com", "analytics.yahoo.com", "geo.yahoo.com", "udc.yahoo.com", "ganon.yahoo.com", "ads.yap.yahoo.com"], totalExecutionTime: 2617276, totalOccurrences: 24800 }, { name: "Adroll", homepage: "https://www.adroll.com/", category: "ad", domains: ["*.adroll.com"], examples: ["d.adroll.com", "s.adroll.com"], totalExecutionTime: 11884188, totalOccurrences: 30782 }, { name: "Twitch", homepage: "https://twitch.tv/", category: "video", domains: ["*.twitch.tv"], examples: ["player.twitch.tv"], totalExecutionTime: 18452667, totalOccurrences: 1255 }, { name: "Taboola", homepage: "https://www.taboola.com/", category: "ad", domains: ["*.taboola.com", "*.taboolasyndication.com"], examples: ["cdn.taboola.com", "trc.taboola.com", "vidstat.taboola.com", "images.taboola.com"], totalExecutionTime: 32631891, totalOccurrences: 49191 }, { name: "Sizmek", homepage: "https://www.sizmek.com/", category: "ad", domains: ["*.serving-sys.com", "*.peer39.net"], examples: ["secure-ds.serving-sys.com", "ds.serving-sys.co\
m", "bs.serving-sys.com"], totalExecutionTime: 6679849, totalOccurrences: 4307 }, { name: "Scorecard Research", homepage: "https://www.scorecardresearch.com/", category: "ad", domains: ["*.scorecardresearch.com"], examples: ["sb.scorecardresearch.com", "sa.scorecardresearch.com", "b.scorecardresearch.com"], totalExecutionTime: 4399371, totalOccurrences: 54577 }, { name: "Criteo", homepage: "https://www.criteo.com/", category: "ad", domains: ["*.criteo.com", "*.emailretargeting.com", "*.criteo.net"], examples: ["static.criteo.net", "bidder.criteo.com", "dis.criteo.com", "gum.criteo.com", "sslwidget.criteo.com", "dis.us.criteo.com"], totalExecutionTime: 25625451, totalOccurrences: 213880 }, { name: "Segment", homepage: "https://segment.com/", category: "analytics", domains: ["*.segment.com", "*.segment.io"], examples: ["cdn.segment.com", "api.segment.io"], totalExecutionTime: 11055141, totalOccurrences: 27036 }, { name: "ShareThis", homepage: "https://www.sharethis.com/", category: "soci\
al", domains: ["*.sharethis.com"], examples: ["w.sharethis.com", "ws.sharethis.com", "t.sharethis.com"], totalExecutionTime: 30807804, totalOccurrences: 88829 }, { name: "Distil Networks", homepage: "https://www.distilnetworks.com/", category: "utility", domains: ["*.areyouahuman.com"], examples: ["n-cdn.areyouahuman.com"] }, { name: "Connexity", homepage: "https://connexity.com/", category: "analytics", domains: ["*.connexity.net"] }, { name: "Popads", homepage: "https://www.popads.net/", category: "ad", domains: ["*.popads.net"], examples: ["serve.popads.net", "c1.popads.net"], totalExecutionTime: 756593, totalOccurrences: 427 }, { name: "CreateJS CDN", homepage: "https://code.createjs.com/", category: "cdn", domains: ["*.createjs.com"], examples: ["code.createjs.com"], totalExecutionTime: 13654049, totalOccurrences: 3880 }, { name: "Squarespace", homepage: "https://www.squarespace.com/", category: "hosting", domains: ["*.squarespace.com"], examples: ["static.squarespace.com", "stati\
c1.squarespace.com"], totalExecutionTime: 1106480464, totalOccurrences: 243154 }, { name: "Media Math", homepage: "https://www.mediamath.com/", category: "ad", domains: ["*.mathads.com", "*.mathtag.com"], examples: ["mathid.mathtag.com", "sync.mathtag.com", "pixel.mathtag.com"], totalExecutionTime: 20783, totalOccurrences: 305 }, { name: "Mixpanel", homepage: "https://mixpanel.com/", category: "analytics", domains: ["*.mixpanel.com", "*.mxpnl.com"], examples: ["cdn.mxpnl.com"], totalExecutionTime: 3250547, totalOccurrences: 18817 }, { name: "FontAwesome CDN", homepage: "https://fontawesome.com/", category: "cdn", domains: ["*.fontawesome.com"], examples: ["use.fontawesome.com"], totalExecutionTime: 73007333, totalOccurrences: 291586 }, { name: "Hubspot", homepage: "https://hubspot.com/", category: "marketing", domains: ["*.hs-scripts.com", "*.hubspot.com", "*.leadin.com", "*.hs-analytics.net", "*.hscollectedforms.net", "*.hscta.net", "*.hsforms.net", "*.hsleadflows.net", "*.hsstatic.ne\
t", "*.hubspot.net", "*.hsforms.com", "*.hs-banner.com", "*.hs-embed-reporting.com", "*.hs-growth-metrics.com", "*.hs-data.com", "*.hsadspixel.net", "*.hubapi.com"], examples: ["forms.hubspot.com", "js.hsforms.net", "js.hs-analytics.net", "js.leadin.com"], totalExecutionTime: 92224372, totalOccurrences: 154415 }, { name: "Mailchimp", homepage: "https://mailchimp.com/", category: "marketing", domains: ["*.chimpstatic.com", "*.list-manage.com", "*.mailchimp.com"], examples: ["downloads.mailchimp.com"], totalExecutionTime: 21592375, totalOccurrences: 45506 }, { name: "MGID", homepage: "https://www.mgid.com/", category: "ad", domains: ["*.mgid.com", "*.dt07.net"], examples: ["servicer.mgid.com"], totalExecutionTime: 22074076, totalOccurrences: 10437 }, { name: "Stripe", homepage: "https://stripe.com", category: "utility", domains: ["*.stripe.com", "*.stripecdn.com", "*.stripe.network"], examples: ["m.stripe.network", "js.stripe.com"], totalExecutionTime: 166354648, totalOccurrences: 136440 },
    { name: "PayPal", homepage: "https://paypal.com", category: "utility", domains: ["*.paypal.com", "*.paypalobjects.com"], examples: ["www.paypalobjects.com"], totalExecutionTime: 64408205, totalOccurrences: 62800 }, { name: "Market GID", homepage: "https://www.marketgid.com/", category: "ad", domains: ["*.marketgid.com"], examples: ["jsc.marketgid.com"] }, { name: "Pinterest", homepage: "https://pinterest.com/", category: "social", domains: ["*.pinimg.com", "*.pinterest.com"], examples: ["assets.pinterest.com", "ct.pinterest.com", "log.pinterest.com"], totalExecutionTime: 17602311, totalOccurrences: 131448 }, { name: "New Relic", homepage: "https://newrelic.com/", category: "utility", domains: ["*.newrelic.com", "*.nr-data.net"], examples: ["js-agent.newrelic.com", "bam.nr-data.net"], totalExecutionTime: 64592740, totalOccurrences: 227672 }, { name: "AppDynamics", homepage: "https://www.appdynamics.com/", category: "utility", domains: ["*.appdynamics.com", "*.eum-appdynamics.com", "\
d3tjaysgumg9lf.cloudfront.net"], examples: ["cdn.appdynamics.com"], totalExecutionTime: 2509158, totalOccurrences: 2920 }, { name: "Parking Crew", homepage: "https://parkingcrew.net/", category: "other", domains: ["d1lxhc4jvstzrp.cloudfront.net", "*.parkingcrew.net"], totalExecutionTime: 9, totalOccurrences: 1 }, { name: "WordAds", company: "Automattic", homepage: "https://wordads.co/", category: "ad", domains: ["*.pubmine.com"], examples: ["s.pubmine.com"], totalExecutionTime: 74286347, totalOccurrences: 100449 }, { name: "AppNexus", homepage: "https://www.appnexus.com/", category: "ad", domains: ["*.adnxs.com", "*.ctasnet.com", "*.adrdgt.com"], examples: ["acdn.adnxs.com", "secure.adnxs.com", "ib.adnxs.com", "sharethrough.adnxs.com", "cdn.adnxs.com", "vcdn.adnxs.com"], totalExecutionTime: 5948505, totalOccurrences: 234133 }, { name: "Histats", homepage: "https://www.histats.com/", category: "analytics", domains: ["*.histats.com"], examples: ["s10.histats.com"], totalExecutionTime: 5601,
    totalOccurrences: 92 }, { name: "DoubleVerify", homepage: "https://www.doubleverify.com/", category: "ad", domains: ["*.doubleverify.com", "*.dvtps.com", "*.iqfp1.com"], examples: ["cdn.doubleverify.com", "cdn3.doubleverify.com", "tps.doubleverify.com", "tps712.doubleverify.com", "tps714.doubleverify.com", "tps706.doubleverify.com", "tps700.doubleverify.com", "tps707.doubleverify.com", "rtb2.doubleverify.com", "rtb0.doubleverify.com", "rtbcdn.doubleverify.com", "tps11020.doubleverify.com", "tm.iqfp1.com"], totalExecutionTime: 46891028, totalOccurrences: 19453 }, { name: "Mediavine", homepage: "https://www.mediavine.com/", category: "ad", domains: ["*.mediavine.com"], examples: ["scripts.mediavine.com", "video.mediavine.com"], totalExecutionTime: 59009373, totalOccurrences: 12963 }, { name: "Wix", homepage: "https://www.wix.com/", category: "hosting", domains: ["*.parastorage.com", "*.wix.com", "*.wixstatic.com", "*.wixapps.net"], examples: ["static.parastorage.com", "static.wixstat\
ic.com", "www.wix.com", "instagram.codev.wixapps.net"], totalExecutionTime: 2112268981, totalOccurrences: 458273 }, { name: "Webflow", homepage: "https://webflow.com/", category: "hosting", domains: ["*.uploads-ssl.webflow.com", "*.assets-global.website-files.com", "*.assets.website-files.com"], examples: ["uploads-ssl.webflow.com", "assets-global.website-files.com", "assets.website-files.com"] }, { name: "Weebly", homepage: "https://www.weebly.com/", category: "hosting", domains: ["*.editmysite.com"], totalExecutionTime: 413019e3, totalOccurrences: 67864 }, { name: "LinkedIn", homepage: "https://www.linkedin.com/", category: "social", domains: ["*.bizographics.com", "platform.linkedin.com", "*.slideshare.com", "*.slidesharecdn.com", "*.oribi.io"], totalExecutionTime: 5776577, totalOccurrences: 16507 }, { name: "LinkedIn Ads", category: "ad", domains: ["*.licdn.com", "*.ads.linkedin.com", "ads.linkedin.com", "www.linkedin.com"], examples: ["snap.licdn.com"], totalExecutionTime: 22805542,
    totalOccurrences: 199088 }, { name: "Vox Media", homepage: "https://www.voxmedia.com/", category: "content", domains: ["*.vox-cdn.com", "*.voxmedia.com"], examples: ["cdn.vox-cdn.com"], totalExecutionTime: 910366, totalOccurrences: 320 }, { name: "Hotmart", homepage: "https://www.hotmart.com/", category: "content", domains: ["*.hotmart.com"], examples: ["launchermodule.hotmart.com"], totalExecutionTime: 15363016, totalOccurrences: 4554 }, { name: "SoundCloud", homepage: "https://www.soundcloud.com/", category: "content", domains: ["*.sndcdn.com", "*.soundcloud.com", "*.stratus.sc"], examples: ["widget.sndcdn.com"], totalExecutionTime: 15888610, totalOccurrences: 5859 }, { name: "Spotify", homepage: "https://www.spotify.com/", category: "content", domains: ["*.scdn.co", "*.spotify.com"], examples: ["open.spotify.com", "open.scdn.co", "i.scdn.co"], totalExecutionTime: 99924, totalOccurrences: 10992 }, { name: "AMP", homepage: "https://amp.dev/", category: "content", domains: ["*.ampp\
roject.org"], examples: ["cdn.ampproject.org"], totalExecutionTime: 79590738, totalOccurrences: 66265 }, { name: "Beeketing", homepage: "https://beeketing.com/", category: "marketing", domains: ["*.beeketing.com"], examples: ["sdk-cdn.beeketing.com", "sdk.beeketing.com"], totalExecutionTime: 2163106, totalOccurrences: 1971 }, { name: "Albacross", homepage: "https://albacross.com/", category: "marketing", domains: ["*.albacross.com"], examples: ["serve.albacross.com"], totalExecutionTime: 100459, totalOccurrences: 1503 }, { name: "TrafficJunky", homepage: "https://www.trafficjunky.com/", category: "ad", domains: ["*.contentabc.com", "*.trafficjunky.net"], examples: ["ads2.contentabc.com", "hw-cdn.contentabc.com", "media.trafficjunky.net", "ads.trafficjunky.net", "hw-cdn.trafficjunky.net"], totalExecutionTime: 2936, totalOccurrences: 62 }, { name: "Bootstrap CDN", homepage: "https://www.bootstrapcdn.com/", category: "cdn", domains: ["*.bootstrapcdn.com"], examples: ["maxcdn.bootstrapcdn.\
com", "stackpath.bootstrapcdn.com"], totalExecutionTime: 2075388, totalOccurrences: 38731 }, { name: "Shareaholic", homepage: "https://www.shareaholic.com/", category: "social", domains: ["*.shareaholic.com", "dsms0mj1bbhn4.cloudfront.net"], totalExecutionTime: 122180, totalOccurrences: 1429 }, { name: "Snowplow", homepage: "https://snowplowanalytics.com/", category: "analytics", domains: ["d32hwlnfiv2gyn.cloudfront.net"], totalExecutionTime: 7099041, totalOccurrences: 58566 }, { name: "RD Station", homepage: "https://www.rdstation.com/en/", category: "marketing", domains: ["d335luupugsy2.cloudfront.net"], totalExecutionTime: 7693701, totalOccurrences: 21846 }, { name: "Jivochat", homepage: "https://www.jivochat.com/", category: "customer-success", domains: ["*.jivosite.com"], examples: ["cdn-ca.jivosite.com", "code.jivosite.com"], totalExecutionTime: 36663932, totalOccurrences: 57540 }, { name: "Listrak", homepage: "https://www.listrak.com/", category: "marketing", domains: ["*.listra\
k.com", "*.listrakbi.com"], examples: ["cdn.listrakbi.com", "s1.listrakbi.com"], totalExecutionTime: 458776, totalOccurrences: 1045 }, { name: "Ontame", homepage: "https://www.ontame.io", category: "analytics", domains: ["*.ontame.io"], examples: ["cdn.ontame.io", "collector.ontame.io"], totalExecutionTime: 23620, totalOccurrences: 101 }, { name: "Ipify", homepage: "https://www.ipify.org", category: "utility", domains: ["*.ipify.org"], examples: ["api.ipify.org", "geo.ipify.org"], totalExecutionTime: 365905, totalOccurrences: 2753 }, { name: "Ensighten", homepage: "https://www.ensighten.com/", category: "tag-manager", domains: ["*.ensighten.com"], examples: ["nexus.ensighten.com"], totalExecutionTime: 1774287, totalOccurrences: 3199 }, { name: "EpiServer", homepage: "https://www.episerver.com", category: "content", domains: ["*.episerver.net"], examples: ["dl.episerver.net"], totalExecutionTime: 9010, totalOccurrences: 80 }, { name: "mPulse", homepage: "https://developer.akamai.com/aka\
mai-mpulse", category: "analytics", domains: ["*.akstat.io", "*.go-mpulse.net", "*.mpulse.net", "*.mpstat.us"], examples: ["c.go-mpulse.net", "0211c83c.akstat.io"], totalExecutionTime: 3089821, totalOccurrences: 30624 }, { name: "Pingdom RUM", homepage: "https://www.pingdom.com/product/performance-monitoring/", category: "analytics", domains: ["*.pingdom.net"], examples: ["rum-static.pingdom.net", "rum-collector-2.pingdom.net"], totalExecutionTime: 106679, totalOccurrences: 1825 }, { name: "SpeedCurve RUM", company: "SpeedCurve", homepage: "https://www.speedcurve.com/features/performance-monitoring/", category: "analytics", domains: ["*.speedcurve.com"], examples: ["cdn.speedcurve.com", "lux.speedcurve.com"], totalExecutionTime: 323903, totalOccurrences: 5358 }, { name: "Radar", company: "Cedexis", homepage: "https://www.cedexis.com/radar/", category: "analytics", domains: ["*.cedexis-test.com", "*.cedexis.com", "*.cmdolb.com", "cedexis.leasewebcdn.com", "*.cedexis-radar.net", "*.cedex\
is.net", "cedexis-test01.insnw.net", "cedexisakamaitest.azureedge.net", "cedexispub.cdnetworks.net", "cs600.wac.alphacdn.net", "cs600.wpc.edgecastdns.net", "global2.cmdolb.com", "img-cedexis.mncdn.com", "a-cedexis.msedge.net", "zn3vgszfh.fastestcdn.net"], examples: ["radar.cedexis.com", "rpt.cedexis.com", "2-01-49cd-0002.cdx.cedexis.net", "bench.cedexis-test.com"], totalExecutionTime: 290925, totalOccurrences: 1133 }, { name: "Byside", homepage: "https://byside.com", category: "analytics", domains: ["*.byside.com"], examples: ["byce2.byside.com", "wce2.byside.com"], totalExecutionTime: 45270, totalOccurrences: 87 }, { name: "VWO", homepage: "https://vwo.com", category: "analytics", domains: ["*.vwo.com", "*.visualwebsiteoptimizer.com", "d5phz18u4wuww.cloudfront.net", "*.wingify.com"], examples: ["dev.visualwebsiteoptimizer.com"], totalExecutionTime: 6485310, totalOccurrences: 7903 }, { name: "Bing Ads", homepage: "https://bingads.microsoft.com", category: "ad", domains: ["*.bing.com", "\
*.microsoft.com", "*.msn.com", "*.s-msft.com", "*.s-msn.com", "*.msads.net", "*.msecnd.net"], examples: ["bat.bing.com", "c.bing.com", "bat.r.msn.com", "ajax.microsoft.com"], totalExecutionTime: 14227177, totalOccurrences: 117720 }, { name: "GoSquared", homepage: "https://www.gosquared.com", category: "analytics", domains: ["*.gosquared.com", "d1l6p2sc9645hc.cloudfront.net"], examples: ["data.gosquared.com", "data2.gosquared.com"], totalExecutionTime: 56152, totalOccurrences: 613 }, { name: "Usabilla", homepage: "https://usabilla.com", category: "analytics", domains: ["*.usabilla.com", "d6tizftlrpuof.cloudfront.net"], examples: ["w.usabilla.com"], totalExecutionTime: 240166, totalOccurrences: 1354 }, { name: "Fastly Insights", homepage: "https://insights.fastlylabs.com", category: "analytics", domains: ["*.fastly-insights.com"], examples: ["www.fastly-insights.com"], totalExecutionTime: 541189, totalOccurrences: 4449 }, { name: "Visual IQ", homepage: "https://www.visualiq.com", category: "\
analytics", domains: ["*.myvisualiq.net"], examples: ["t.myvisualiq.net"] }, { name: "Snapchat", homepage: "https://www.snapchat.com", category: "analytics", domains: ["*.snapchat.com", "*.sc-static.net"], examples: ["tr.snapchat.com"], totalExecutionTime: 177890, totalOccurrences: 1978 }, { name: "Atlas Solutions", homepage: "https://atlassolutions.com", category: "analytics", domains: ["*.atdmt.com"], examples: ["ad.atdmt.com", "cx.atdmt.com"] }, { name: "Quantcast", homepage: "https://www.quantcast.com", category: "analytics", domains: ["*.brtstats.com", "*.quantcount.com", "*.quantserve.com", "*.semantictec.com", "*.ntv.io"], examples: ["pixel.quantserve.com", "secure.quantserve.com", "cms.quantserve.com", "rules.quantcount.com"], totalExecutionTime: 12419392, totalOccurrences: 77646 }, { name: "Spiceworks", homepage: "https://www.spiceworks.com", category: "analytics", domains: ["*.spiceworks.com"], examples: ["px.spiceworks.com"] }, { name: "Marketo", homepage: "https://www.marke\
to.com", category: "analytics", domains: ["*.marketo.com", "*.mktoresp.com", "*.marketo.net"], examples: ["munchkin.marketo.net"], totalExecutionTime: 724464, totalOccurrences: 1798 }, { name: "Intercom", homepage: "https://www.intercom.com", category: "customer-success", domains: ["*.intercomcdn.com", "*.intercom.io"], examples: ["js.intercomcdn.com", "api-iam.intercom.io", "widget.intercom.io", "nexus-websocket-a.intercom.io"], products: [{ name: "Intercom Widget", urlPatterns: ["widget.intercom.io", "js.intercomcdn.com/shim.latest.js"], facades: [{ name: "React Live Chat Loader", repo: "https://github.com/calibreapp/react-live-chat-loader" }, { name: "Intercom Facade", repo: "https://github.com/danielbachhuber/intercom-facade/" }] }], totalExecutionTime: 44601345, totalOccurrences: 35197 }, { name: "Unpkg", homepage: "https://unpkg.com", category: "cdn", domains: ["*.unpkg.com", "*.npmcdn.com"], totalExecutionTime: 74666, totalOccurrences: 227 }, { name: "ReadSpeaker", homepage: "ht\
tps://www.readspeaker.com", category: "other", domains: ["*.readspeaker.com"], examples: ["sf1-eu.readspeaker.com"], totalExecutionTime: 727525, totalOccurrences: 6265 }, { name: "Browsealoud", homepage: "https://www.texthelp.com/en-gb/products/browsealoud/", category: "other", domains: ["*.browsealoud.com", "*.texthelp.com"], examples: ["www.browsealoud.com"], totalExecutionTime: 665425, totalOccurrences: 1951 }, { name: "15gifts", category: "customer-success", domains: ["*.15gifts.com", "*.primefuse.com"], examples: ["www.primefuse.com"] }, { name: "1xRUN", category: "utility", domains: ["*.1xrun.com"] }, { name: "2AdPro Media Solutions", category: "ad", domains: ["*.2adpro.com"] }, { name: "301 Digital Media", category: "content", domains: ["*.301ads.com", "*.301network.com"] }, { name: "360 picnic platform", company: "MediaV", category: "ad", domains: ["*.mediav.com"], totalExecutionTime: 4893, totalOccurrences: 78 }, { name: "365 Media Group", category: "content", domains: ["*.365\
dm.com"] }, { name: "365 Tech Services", category: "hosting", domains: ["*.365webservices.co.uk"] }, { name: "3D Issue", category: "utility", domains: ["*.3dissue.com", "*.pressjack.com"], totalExecutionTime: 53823, totalOccurrences: 30 }, { name: "47Line Technologies", category: "other", domains: ["*.pejs.net"] }, { name: "4finance", category: "utility", domains: ["*.4finance.com"] }, { name: "5miles", category: "content", domains: ["*.5milesapp.com"] }, { name: "77Tool", company: "77Agency", category: "analytics", domains: ["*.77tracking.com"] }, { name: "9xb", category: "ad", domains: ["*.9xb.com"] }, { name: "@UK", category: "hosting", domains: ["*.uk-plc.net"] }, { name: "A Perfect Pocket", category: "hosting", domains: ["*.aperfectpocketdata.com"] }, { name: "A-FIS PTE", category: "analytics", domains: ["*.websta.me"] }, { name: "AB Tasty", homepage: "https://www.abtasty.com/", category: "analytics", domains: ["*.abtasty.com", "d1447tq2m68ekg.cloudfront.net"], examples: ["try.abt\
asty.com"], totalExecutionTime: 1720461, totalOccurrences: 3363 }, { name: "ABA RESEARCH", category: "analytics", domains: ["*.abaresearch.uk", "qmodal.azurewebsites.net"] }, { name: "ADMIZED", category: "ad", domains: ["*.admized.com"] }, { name: "ADNOLOGIES", category: "ad", domains: ["*.heias.com"] }, { name: "ADventori", category: "ad", domains: ["*.adventori.com"], totalExecutionTime: 5790, totalOccurrences: 21 }, { name: "AI Media Group", category: "ad", domains: ["*.aimediagroup.com"] }, { name: "AIR.TV", category: "ad", domains: ["*.air.tv"] }, { name: "AKQA", category: "ad", domains: ["*.srtk.net"] }, { name: "AOL ad", company: "AOL", category: "ad", domains: ["*.atwola.com"] }, { name: "AOL On", company: "AOL", category: "content", domains: ["*.5min.com"] }, { name: "AOL Sponsored Listiings", company: "AOL", category: "ad", domains: ["*.adsonar.com"] }, { name: "APSIS Lead", company: "APSIS International AB", category: "ad", domains: ["*.prospecteye.com"] }, { name: "APSIS Pr\
ofile Cloud", company: "APSIS", category: "analytics", domains: ["*.innomdc.com"] }, { name: "APSIS Forms", company: "APSIS", category: "other", domains: ["*.apsisforms.com"], examples: ["forms.apsisforms.com"] }, { name: "ARENA", company: "Altitude", category: "ad", domains: ["*.altitude-arena.com"], totalExecutionTime: 1, totalOccurrences: 1 }, { name: "ARM", category: "analytics", domains: ["*.tag4arm.com"], totalExecutionTime: 5847, totalOccurrences: 83 }, { name: "ASAPP", category: "other", domains: ["*.asapp.com"], totalExecutionTime: 37052, totalOccurrences: 31 }, { name: "ASP", category: "hosting", domains: ["*.goshowoff.com"] }, { name: "AT Internet", category: "analytics", domains: ["*.ati-host.net"] }, { name: "ATTRAQT", category: "utility", domains: ["*.attraqt.com", "*.locayta.com"] }, { name: "AVANSER", category: "analytics", domains: ["*.avanser.com.au"] }, { name: "AVG", company: "AVG Technologies", category: "utility", domains: ["*.avg.com"], examples: ["omni.avg.com"] },
    { name: "AWeber", category: "ad", domains: ["*.aweber.com"], totalExecutionTime: 40945, totalOccurrences: 280 }, { name: "AXS", category: "content", domains: ["*.axs.com"], totalExecutionTime: 49218, totalOccurrences: 8 }, { name: "Accentuate", company: "Accentuate Digital", category: "utility", homepage: "https://www.accentuate.io/", domains: ["*.accentuate.io"], examples: ["cdn.accentuate.io", "original.accentuate.io"], totalExecutionTime: 1772, totalOccurrences: 17 }, { name: "Accenture", category: "analytics", domains: ["*.tmvtp.com"] }, { name: "Accord Holdings", category: "ad", domains: ["*.agcdn.com"] }, { name: "Accordant Media", category: "ad", domains: ["*.a3cloud.net"], examples: ["segment.a3cloud.net"] }, { name: "Account Kit", category: "other", domains: ["*.accountkit.com"] }, { name: "Accuen Media (Omnicom Media Group)", category: "content", domains: ["*.p-td.com"] }, { name: "Accuweather", category: "content", domains: ["*.accuweather.com"], totalExecutionTime: 291762,
    totalOccurrences: 1477 }, { name: "Acquisio", category: "ad", domains: ["*.acq.io"], totalExecutionTime: 1692, totalOccurrences: 32 }, { name: "Act-On Software", category: "marketing", domains: ["*.actonsoftware.com"], totalExecutionTime: 98, totalOccurrences: 2 }, { name: "ActBlue", category: "other", domains: ["*.actblue.com"], totalExecutionTime: 62800, totalOccurrences: 73 }, { name: "Active Agent", category: "ad", domains: ["*.active-agent.com"] }, { name: "ActiveCampaign", category: "ad", domains: ["*.trackcmp.net", "app-us1.com", "*.app-us1.com"], examples: ["trackcmp.net", "prism.app-us1.com", "diffuser-cdn.app-us1.com"], totalExecutionTime: 1605217, totalOccurrences: 19100 }, { name: "AcuityAds", category: "ad", domains: ["*.acuityplatform.com"], totalExecutionTime: 2492, totalOccurrences: 693 }, { name: "Acxiom", category: "ad", domains: ["*.acxiom-online.com", "*.acxiomapac.com", "*.delivery.net"] }, { name: "Ad4Screen", category: "ad", domains: ["*.a4.tl"] }, { name: "A\
d6Media", category: "ad", domains: ["*.ad6media.fr"], totalExecutionTime: 821770, totalOccurrences: 654 }, { name: "AdCurve", category: "ad", domains: ["*.shop2market.com"] }, { name: "AdEasy", category: "ad", domains: ["*.adeasy.ru"] }, { name: "AdExtent", category: "ad", domains: ["*.adextent.com"] }, { name: "AdForge Edge", company: "AdForge", category: "ad", domains: ["*.adforgeinc.com"] }, { name: "AdGear", company: "Samsung Electronics", category: "ad", domains: ["*.adgear.com", "*.adgrx.com"], totalExecutionTime: 19948, totalOccurrences: 42920 }, { name: "AdInMedia", category: "ad", domains: ["*.fastapi.net"] }, { name: "AdJug", category: "ad", domains: ["*.adjug.com"], examples: ["tracking.adjug.com", "uk.view.adjug.com"] }, { name: "AdMatic", category: "ad", domains: ["*.admatic.com.tr"], totalExecutionTime: 1274496, totalOccurrences: 467 }, { name: "AdMedia", category: "ad", domains: ["*.admedia.com"], examples: ["pixel.admedia.com"], totalExecutionTime: 2027, totalOccurrences: 7 },
    { name: "AdRecover", category: "ad", domains: ["*.adrecover.com"], totalExecutionTime: 5117, totalOccurrences: 46 }, { name: "AdRiver", category: "ad", domains: ["*.adriver.ru"], totalExecutionTime: 1374767, totalOccurrences: 4740 }, { name: "AdSniper", category: "ad", domains: ["*.adsniper.ru", "*.sniperlog.ru"], totalExecutionTime: 2366, totalOccurrences: 22 }, { name: "AdSpeed", category: "ad", domains: ["*.adspeed.net"], totalExecutionTime: 4642, totalOccurrences: 16 }, { name: "AdSpruce", category: "ad", domains: ["*.adspruce.com"] }, { name: "AdSupply", category: "ad", domains: ["*.doublepimp.com"], totalExecutionTime: 1436, totalOccurrences: 13 }, { name: "AdTheorent", category: "ad", domains: ["*.adentifi.com"], totalExecutionTime: 108, totalOccurrences: 1 }, { name: "AdThink AudienceInsights", company: "AdThink Media", category: "analytics", domains: ["*.audienceinsights.net"] }, { name: "AdTrue", company: "FPT AdTrue", category: "ad", domains: ["*.adtrue.com"] }, { name: "\
AdYapper", category: "ad", domains: ["*.adyapper.com"] }, { name: "Adacado", category: "ad", domains: ["*.adacado.com"], totalExecutionTime: 1777, totalOccurrences: 18 }, { name: "Adap.tv", category: "ad", domains: ["*.adap.tv"] }, { name: "Adapt Services", category: "hosting", domains: ["*.adcmps.com"] }, { name: "Adaptive Web", category: "hosting", domains: ["*.adaptive.co.uk"] }, { name: "Adara Media", category: "ad", domains: ["*.yieldoptimizer.com"], totalExecutionTime: 1324, totalOccurrences: 23 }, { name: "Adblade", category: "ad", domains: ["*.adblade.com"], totalExecutionTime: 704, totalOccurrences: 7 }, { name: "Adbrain", category: "ad", domains: ["*.adbrn.com"] }, { name: "AddEvent", category: "utility", domains: ["*.addevent.com"], examples: ["www.addevent.com"], totalExecutionTime: 73230, totalOccurrences: 203 }, { name: "AddShoppers", category: "social", domains: ["*.addshoppers.com", "d3rr3d0n31t48m.cloudfront.net", "*.shop.pe"], totalExecutionTime: 31574, totalOccurrences: 451 },
    { name: "AddThisEvent", category: "hosting", domains: ["*.addthisevent.com"] }, { name: "Addoox MetaNetwork", company: "Addoox", category: "ad", domains: ["*.metanetwork.net"] }, { name: "Addvantage Media", category: "ad", domains: ["*.addvantagemedia.com", "*.simplytechnology.net"] }, { name: "AD EBis", category: "analytics", homepage: "https://www.ebis.ne.jp/", domains: ["*.ebis.ne.jp"], examples: ["taj1.ebis.ne.jp"], totalExecutionTime: 55086, totalOccurrences: 608 }, { name: "Adecs", category: "customer-success", domains: ["*.adecs.co.uk"], examples: ["www.adecs.co.uk"] }, { name: "Adelphic", category: "ad", domains: ["*.ipredictive.com"], totalExecutionTime: 8196, totalOccurrences: 112 }, { name: "Adestra", category: "ad", domains: ["*.adestra.com", "*.msgfocus.com"] }, { name: "Adform", category: "ad", domains: ["*.adform.net", "*.adformdsp.net"], totalExecutionTime: 1798751, totalOccurrences: 140125 }, { name: "Adkontekst", category: "ad", domains: ["*.adkontekst.pl"] }, { name: "\
Adlead", category: "ad", domains: ["*.webelapp.com"] }, { name: "Adledge", category: "utility", domains: ["*.adledge.com"] }, { name: "Adloox", category: "ad", domains: ["*.adlooxtracking.com"], totalExecutionTime: 103507, totalOccurrences: 112 }, { name: "Adlux", category: "ad", domains: ["*.adlux.com"] }, { name: "Admedo", category: "ad", domains: ["*.a8723.com", "*.adizio.com", "*.admedo.com"], examples: ["pool.a8723.com"], totalExecutionTime: 9586, totalOccurrences: 695 }, { name: "Admeta", company: "Wideorbit", category: "ad", domains: ["*.atemda.com"] }, { name: "Admetrics", company: "Next Tuesday", category: "analytics", domains: ["*.nt.vc"], examples: ["metrics.nt.vc"] }, { name: "Admiral", category: "ad", domains: ["*.unknowntray.com"] }, { name: "Admitad", category: "ad", domains: ["*.lenmit.com"], totalExecutionTime: 2335, totalOccurrences: 31 }, { name: "Admixer for Publishers", company: "Admixer", category: "ad", domains: ["*.admixer.net"], totalExecutionTime: 1542643, totalOccurrences: 878 },
    { name: "Adnium", category: "ad", domains: ["*.adnium.com"] }, { name: "Adnostic", company: "Dennis Publishing", category: "ad", domains: ["*.adnostic.co.uk"] }, { name: "Adobe Marketing Cloud", company: "Adobe Systems", category: "ad", domains: ["*.adobetag.com"] }, { name: "Adobe Scene7", company: "Adobe Systems", category: "content", domains: ["wwwimages.adobe.com", "*.scene7.com", "*.everestads.net", "*.everestjs.net"], totalExecutionTime: 808424, totalOccurrences: 702 }, { name: "Adobe Systems", category: "content", domains: ["adobe.com", "www.adobe.com"], totalExecutionTime: 38836, totalOccurrences: 179 }, { name: "Adobe Business Catalyst", homepage: "https://www.businesscatalyst.com/", category: "hosting", domains: ["*.businesscatalyst.com"] }, { name: "Adocean", company: "Gemius", category: "ad", domains: ["*.adocean.pl"], totalExecutionTime: 1658274, totalOccurrences: 2151 }, { name: "Adometry", company: "Google", category: "ad", domains: ["*.dmtry.com"] }, { name: "Adomik",
    category: "analytics", domains: ["*.adomik.com"] }, { name: "Adotmob", category: "ad", domains: ["*.adotmob.com"] }, { name: "Adrian Quevedo", category: "hosting", domains: ["*.adrianquevedo.com"] }, { name: "Adroit Digital Solutions", category: "ad", domains: ["*.imiclk.com", "*.abmr.net"] }, { name: "AdsNative", category: "ad", domains: ["*.adsnative.com"] }, { name: "AdsWizz", category: "ad", domains: ["*.adswizz.com"], totalExecutionTime: 479514, totalOccurrences: 1901 }, { name: "Adscale", category: "ad", domains: ["*.adscale.de"], totalExecutionTime: 106237, totalOccurrences: 960 }, { name: "Adschoom", company: "JSWeb Production", category: "ad", domains: ["*.adschoom.com"], totalExecutionTime: 491, totalOccurrences: 2 }, { name: "Adscience", category: "ad", domains: ["*.adscience.nl"] }, { name: "Adsiduous", category: "ad", domains: ["*.adsiduous.com"] }, { name: "Adsty", category: "ad", domains: ["*.adx1.com"], totalExecutionTime: 698, totalOccurrences: 5 }, { name: "Adtech\
 (AOL)", category: "ad", domains: ["*.adtechus.com"], totalExecutionTime: 176, totalOccurrences: 2 }, { name: "Adtegrity", category: "ad", domains: ["*.adtpix.com"], totalExecutionTime: 1735, totalOccurrences: 20 }, { name: "Adthink", company: "Adthink Media", category: "ad", domains: ["*.adxcore.com", "*.dcoengine.com"], examples: ["d.adxcore.com"] }, { name: "AdultWebmasterEmpire.Com", category: "ad", domains: ["*.awempire.com"], totalExecutionTime: 65091, totalOccurrences: 38 }, { name: "Adunity", category: "ad", domains: ["*.adunity.com"] }, { name: "Advance Magazine Group", category: "content", domains: ["*.condenastdigital.com", "*.condenet.com", "*.condenast.co.uk"], totalExecutionTime: 2531, totalOccurrences: 8 }, { name: "Adverline Board", company: "Adverline", category: "ad", domains: ["*.adverline.com", "*.adnext.fr"] }, { name: "AdvertServe", category: "ad", domains: ["*.advertserve.com"], totalExecutionTime: 112685, totalOccurrences: 437 }, { name: "Advolution", category: "\
utility", domains: ["*.advolution.de"] }, { name: "Adwise", category: "ad", domains: ["*.adwise.bg"], totalExecutionTime: 144, totalOccurrences: 2 }, { name: "Adyen", category: "utility", domains: ["*.adyen.com"], totalExecutionTime: 6335144, totalOccurrences: 2363 }, { name: "Adyoulike", category: "ad", domains: ["*.adyoulike.com", "*.omnitagjs.com", "*.adyoulike.net"], totalExecutionTime: 147862, totalOccurrences: 53190 }, { name: "Adzerk", category: "ad", domains: ["*.adzerk.net"], totalExecutionTime: 35184, totalOccurrences: 117 }, { name: "Adzip", company: "Adbox Digital", category: "ad", domains: ["*.adzip.co"] }, { name: "AerServ", category: "ad", domains: ["*.aerserv.com"] }, { name: "Affectv", category: "ad", domains: ["*.affectv.com", "*.affec.tv"], totalExecutionTime: 1187, totalOccurrences: 12 }, { name: "Affiliate Window", company: "Digital Window", category: "ad", domains: ["*.dwin1.com"], totalExecutionTime: 561168, totalOccurrences: 5414 }, { name: "Affiliatly", category: "\
ad", domains: ["*.affiliatly.com"], examples: ["www.affiliatly.com"], totalExecutionTime: 32020, totalOccurrences: 132 }, { name: "Affino", category: "ad", domains: ["affino.com"] }, { name: "Affirm", category: "utility", domains: ["*.affirm.com"], totalExecutionTime: 3997184, totalOccurrences: 6665 }, { name: "Afterpay", company: "Block", category: "utility", homepage: "https://www.afterpay.com/", domains: ["*.afterpay.com"], examples: ["static-us.afterpay.com"], totalExecutionTime: 1270109, totalOccurrences: 8269 }, { name: "Agenda Media", category: "ad", domains: ["*.agendamedia.co.uk"] }, { name: "Aggregate Knowledge", company: "Neustar", category: "ad", domains: ["*.agkn.com"], totalExecutionTime: 14828, totalOccurrences: 344 }, { name: "AgilOne", category: "marketing", domains: ["*.agilone.com"], totalExecutionTime: 4190, totalOccurrences: 53 }, { name: "Agility", category: "hosting", domains: ["*.agilitycms.com"], totalExecutionTime: 3079, totalOccurrences: 4 }, { name: "Ahalogy",
    category: "social", domains: ["*.ahalogy.com"] }, { name: "Aheadworks", category: "utility", domains: ["*.aheadworks.com"] }, { name: "AirPR", category: "analytics", domains: ["*.airpr.com"], totalExecutionTime: 416, totalOccurrences: 5 }, { name: "Aira", category: "ad", domains: ["*.aira.net"], examples: ["www.aira.net"] }, { name: "Airport Parking and Hotels", category: "content", domains: ["*.aph.com"], totalExecutionTime: 277, totalOccurrences: 3 }, { name: "Akanoo", category: "analytics", domains: ["*.akanoo.com"] }, { name: "Alchemy", company: "AndBeyond.Media", category: "ad", domains: ["*.andbeyond.media"], totalExecutionTime: 456340, totalOccurrences: 164 }, { name: "AlephD", company: "AOL", category: "ad", domains: ["*.alephd.com"] }, { name: "AliveChat", company: "AYU Technology Solutions", category: "customer-success", domains: ["*.websitealive.com", "*.websitealive7.com"] }, { name: "All Access", category: "other", domains: ["*.allaccess.com.ph"] }, { name: "Alliance f\
or Audited Media", category: "ad", domains: ["*.aamsitecertifier.com"] }, { name: "Allyde", category: "marketing", domains: ["*.mautic.com"] }, { name: "AlphaSSL", category: "utility", domains: ["*.alphassl.com"], totalExecutionTime: 1146, totalOccurrences: 10 }, { name: "Altitude", category: "ad", domains: ["*.altitudeplatform.com"] }, { name: "Altocloud", category: "analytics", domains: ["*.altocloud.com"] }, { name: "Amadeus", category: "content", domains: ["*.e-travel.com"] }, { name: "Amazon CloudFront", company: "Amazon", category: "utility", domains: ["cloudfront.net"] }, { name: "Ambassador", category: "ad", domains: ["*.getambassador.com"], totalExecutionTime: 21042, totalOccurrences: 89 }, { name: "Ambient", company: "Ericcson", category: "other", domains: ["*.adnetwork.vn", "*.ambientplatform.vn"] }, { name: "Amelia Communication", category: "hosting", domains: ["*.sara.media"] }, { name: "Amobee", category: "marketing", domains: ["*.amgdgt.com", "*.kontera.com"] }, { name: "\
Amplience", category: "marketing", domains: ["*.10cms.com", "*.amplience.com", "*.amplience.net", "*.bigcontent.io", "*.adis.ws"], totalExecutionTime: 4093, totalOccurrences: 17 }, { name: "Amplitude Mobile Analytics", company: "Amplitude", category: "analytics", domains: ["*.amplitude.com", "d24n15hnbwhuhn.cloudfront.net"], totalExecutionTime: 8703641, totalOccurrences: 46524 }, { name: "Anametrix", company: "Ensighten", category: "analytics", domains: ["*.anametrix.com"] }, { name: "Ancora Platform", company: "Ancora Media Solutions", category: "ad", domains: ["*.ancoraplatform.com"] }, { name: "Anedot", category: "other", domains: ["*.anedot.com"], totalExecutionTime: 84655, totalOccurrences: 21 }, { name: "AnimateJS", category: "utility", domains: ["*.animatedjs.com"] }, { name: "AnswerDash", category: "customer-success", domains: ["*.answerdash.com"], examples: ["p1.answerdash.com"] }, { name: "Answers", category: "analytics", domains: ["*.answcdn.com", "*.answers.com", "*.dsply.c\
om"] }, { name: "Apester", category: "analytics", domains: ["*.apester.com", "*.qmerce.com"], totalExecutionTime: 25294, totalOccurrences: 166 }, { name: "Apligraf SmartWeb", company: "Apligraf", category: "utility", domains: ["*.apligraf.com.br"] }, { name: "Appier", category: "ad", domains: ["*.appier.net"], totalExecutionTime: 124524, totalOccurrences: 826 }, { name: "Appsolute", category: "utility", homepage: "https://appsolute.us/", domains: ["dropahint.love"], examples: ["dropahint.love"], totalExecutionTime: 16362, totalOccurrences: 144 }, { name: "Apptus eSales", company: "Apptus", category: "analytics", domains: ["*.apptus.com"] }, { name: "Arbor", company: "LiveRamp", category: "other", domains: ["*.pippio.com"] }, { name: "Ardent Creative", category: "hosting", domains: ["*.ardentcreative.co.uk"] }, { name: "Arnold Clark Automobiles", category: "content", domains: ["*.arnoldclark.com"] }, { name: "Atom Content Marketing", category: "content", domains: ["*.atomvault.net"], examples: [
    "danu.atomvault.net"] }, { name: "Atom Data", category: "other", domains: ["*.atomdata.io"] }, { name: "Attribution", category: "ad", domains: ["*.attributionapp.com"], totalExecutionTime: 44124, totalOccurrences: 124 }, { name: "Audience 360", company: "Datapoint Media", category: "ad", domains: ["*.dpmsrv.com"], totalExecutionTime: 578723, totalOccurrences: 371 }, { name: "Audience Science", category: "ad", domains: ["*.revsci.net"] }, { name: "AudienceSearch", company: "Intimate Merger", category: "ad", domains: ["*.im-apps.net"], totalExecutionTime: 9114981, totalOccurrences: 46726 }, { name: "Auditorius", category: "ad", domains: ["*.audtd.com"] }, { name: "Augur", category: "analytics", domains: ["*.augur.io"] }, { name: "Auto Link Maker", company: "Apple", category: "ad", domains: ["*.apple.com"], examples: ["autolinkmaker.itunes.apple.com"], totalExecutionTime: 657122, totalOccurrences: 2479 }, { name: "Autopilot", category: "ad", domains: ["*.autopilothq.com"], totalExecutionTime: 15490,
    totalOccurrences: 74 }, { name: "Avail", company: "RichRelevance", category: "ad", domains: ["*.avail.net"] }, { name: "AvantLink", category: "ad", domains: ["*.avmws.com"], totalExecutionTime: 417, totalOccurrences: 8 }, { name: "Avco Systems", category: "utility", domains: ["*.avcosystems.com"] }, { name: "Avid Media", category: "customer-success", domains: ["*.adspdbl.com", "*.metadsp.co.uk"], totalExecutionTime: 58, totalOccurrences: 1 }, { name: "Avocet Systems", category: "ad", domains: ["*.avocet.io", "ads.avct.cloud"] }, { name: "Avora", category: "analytics", domains: ["*.truedash.com"], examples: ["truetag.truedash.com"] }, { name: "Azure Traffic Manager", company: "Microsoft", category: "other", domains: ["*.gateway.net", "*.trafficmanager.net"], examples: ["analytics.gateway.net"], totalExecutionTime: 51660, totalOccurrences: 148 }, { name: "Azure Web Services", company: "Microsoft", category: "cdn", domains: ["*.azurewebsites.net", "*.azureedge.net", "*.msedge.net", "*\
.windows.net"], totalExecutionTime: 35665078, totalOccurrences: 51378 }, { name: "BAM", category: "analytics", domains: ["*.bam-x.com"] }, { name: "Baifendian Technology", category: "marketing", domains: ["*.baifendian.com"] }, { name: "Bankrate", category: "utility", domains: ["*.bankrate.com"] }, { name: "BannerFlow", company: "Nordic Factory Solutions", category: "ad", domains: ["*.bannerflow.com"], totalExecutionTime: 50455, totalOccurrences: 42 }, { name: "Barclaycard SmartPay", company: "Barclaycard", category: "utility", domains: ["*.barclaycardsmartpay.com"] }, { name: "Barilliance", category: "analytics", domains: ["*.barilliance.net", "dn3y71tq7jf07.cloudfront.net"], totalExecutionTime: 7250, totalOccurrences: 26 }, { name: "Barnebys", category: "other", domains: ["*.barnebys.com"], totalExecutionTime: 59682, totalOccurrences: 57 }, { name: "Basis", company: "Basis Technologies", category: "ad", homepage: "https://basis.net/", domains: ["*.basis.net"], examples: ["cdn01.basis\
.net"], totalExecutionTime: 215661, totalOccurrences: 2623 }, { name: "Batch Media", category: "ad", domains: ["*.t4ft.de"] }, { name: "Bauer Consumer Media", category: "content", domains: ["*.bauercdn.com", "*.greatmagazines.co.uk"], examples: ["www.greatmagazines.co.uk"] }, { name: "Baynote", category: "analytics", domains: ["*.baynote.net"] }, { name: "Bazaarvoice", category: "analytics", domains: ["*.bazaarvoice.com", "*.feedmagnet.com"], totalExecutionTime: 1664795, totalOccurrences: 3375 }, { name: "Beachfront Media", category: "ad", domains: ["*.bfmio.com"], totalExecutionTime: 7782, totalOccurrences: 771 }, { name: "BeamPulse", category: "analytics", domains: ["*.beampulse.com"] }, { name: "Beeswax", category: "ad", domains: ["*.bidr.io"], totalExecutionTime: 5298, totalOccurrences: 12735 }, { name: "Beetailer", category: "social", domains: ["*.beetailer.com"], examples: ["www.beetailer.com"] }, { name: "Best Of Media S.A.", category: "content", domains: ["*.servebom.com"], totalExecutionTime: 29,
    totalOccurrences: 67 }, { name: "Bet365", category: "ad", domains: ["*.bet365affiliates.com"] }, { name: "Betfair", category: "other", domains: ["*.cdnbf.net"] }, { name: "Betgenius", company: "Genius Sports", category: "content", domains: ["*.connextra.com"], totalExecutionTime: 84739, totalOccurrences: 287 }, { name: "Better Banners", category: "ad", domains: ["*.betterbannerscloud.com"] }, { name: "Better Business Bureau", category: "analytics", domains: ["*.bbb.org"], totalExecutionTime: 10819, totalOccurrences: 78 }, { name: "Between Digital", category: "ad", domains: ["*.betweendigital.com"], totalExecutionTime: 88306, totalOccurrences: 787 }, { name: "BidTheatre", category: "ad", domains: ["*.bidtheatre.com"], totalExecutionTime: 23106, totalOccurrences: 252 }, { name: "Bidtellect", category: "ad", domains: ["*.bttrack.com"], totalExecutionTime: 2834, totalOccurrences: 19 }, { name: "Bigcommerce", category: "marketing", domains: ["*.bigcommerce.com"], totalExecutionTime: 45747978,
    totalOccurrences: 19595 }, { name: "BitGravity", company: "Tata Communications", category: "content", domains: ["*.bitgravity.com"] }, { name: "Bitly", category: "utility", domains: ["*.bitly.com", "*.lemde.fr", "*.bit.ly"], totalExecutionTime: 2977, totalOccurrences: 8 }, { name: "Bizible", category: "ad", domains: ["*.bizible.com", "*.bizibly.com"], totalExecutionTime: 435247, totalOccurrences: 1186 }, { name: "Bizrate", category: "analytics", domains: ["*.bizrate.com"], totalExecutionTime: 11197, totalOccurrences: 57 }, { name: "BlastCasta", category: "social", domains: ["*.poweringnews.com"], examples: ["www.poweringnews.com"] }, { name: "Blindado", category: "utility", domains: ["*.siteblindado.com"], totalExecutionTime: 41, totalOccurrences: 1 }, { name: "Blis", category: "ad", domains: ["*.blismedia.com"] }, { name: "Blogg.se", category: "hosting", domains: ["*.cdnme.se", "*.publishme.se"] }, { name: "BloomReach", category: "ad", domains: ["*.brcdn.com", "*.brsrvr.com", "*.b\
rsvr.com"], totalExecutionTime: 2695, totalOccurrences: 47 }, { name: "Bloomberg", category: "content", domains: ["*.gotraffic.net"] }, { name: "Shop Logic", company: "BloomReach", category: "marketing", domains: ["*.goshoplogic.com"] }, { name: "Blue State Digital", category: "ad", domains: ["*.bsd.net"] }, { name: "Blue Triangle Technologies", category: "analytics", domains: ["*.btttag.com"], totalExecutionTime: 102966, totalOccurrences: 182 }, { name: "BlueCava", category: "ad", domains: ["*.bluecava.com"], totalExecutionTime: 466075, totalOccurrences: 5165 }, { name: "BlueKai", company: "Oracle", category: "ad", domains: ["*.bkrtx.com", "*.bluekai.com"], totalExecutionTime: 4, totalOccurrences: 6 }, { name: "Bluecore", category: "analytics", domains: ["*.bluecore.com"], examples: ["www.bluecore.com"], totalExecutionTime: 83612, totalOccurrences: 225 }, { name: "Bluegg", category: "hosting", domains: ["d1va5oqn59yrvt.cloudfront.net"] }, { name: "Bold Commerce", category: "utility", domains: [
    "*.shappify-cdn.com", "*.shappify.com", "*.boldapps.net"], totalExecutionTime: 5072681, totalOccurrences: 9886 }, { name: "BoldChat", company: "LogMeIn", category: "customer-success", domains: ["*.boldchat.com"] }, { name: "Bombora", category: "ad", domains: ["*.mlno6.com"] }, { name: "Bonnier", category: "content", domains: ["*.bonniercorp.com"] }, { name: "Bookatable", category: "content", domains: ["*.bookatable.com", "*.livebookings.com"] }, { name: "Booking.com", category: "content", domains: ["*.bstatic.com"], totalExecutionTime: 1652677, totalOccurrences: 2448 }, { name: "Boomtrain", category: "ad", domains: ["*.boomtrain.com", "*.boomtrain.net"], totalExecutionTime: 360072, totalOccurrences: 2169 }, { name: "BoostSuite", category: "ad", domains: ["*.poweredbyeden.com"] }, { name: "Boostable", category: "ad", domains: ["*.boostable.com"] }, { name: "Bootstrap Chinese network", category: "cdn", domains: ["*.bootcss.com"], totalExecutionTime: 427117, totalOccurrences: 881 }, {
    name: "Booxscale", category: "ad", domains: ["*.booxscale.com"] }, { name: "Borderfree", company: "pitney bowes", category: "utility", domains: ["*.borderfree.com", "*.fiftyone.com"] }, { name: "BowNow", category: "analytics", homepage: "https://bow-now.jp/", domains: ["*.bownow.jp"], examples: ["contents.bownow.jp"], totalExecutionTime: 1298132, totalOccurrences: 2410 }, { name: "Box", category: "hosting", domains: ["*.box.com"], totalExecutionTime: 15191, totalOccurrences: 223 }, { name: "Boxever", category: "analytics", domains: ["*.boxever.com"] }, { name: "Braintree Payments", company: "Paypal", category: "utility", domains: ["*.braintreegateway.com"], totalExecutionTime: 171291, totalOccurrences: 1141 }, { name: "Branch Metrics", category: "ad", domains: ["*.branch.io", "*.app.link"], totalExecutionTime: 441792, totalOccurrences: 8288 }, { name: "Brand Finance", category: "other", domains: ["*.brandirectory.com"] }, { name: "Brand View", category: "analytics", domains: ["*.br\
andview.com"] }, { name: "Brandscreen", category: "ad", domains: ["*.rtbidder.net"], examples: ["match.rtbidder.net"] }, { name: "BridgeTrack", company: "Sapient", category: "ad", domains: ["*.bridgetrack.com"] }, { name: "BrightRoll", company: "Yahoo!", category: "ad", domains: ["*.btrll.com"] }, { name: "BrightTag / Signal", company: "Signal", homepage: "https://www.signal.co", category: "tag-manager", domains: ["*.btstatic.com", "*.thebrighttag.com"] }, { name: "Brightcove ZenCoder", company: "Brightcove", category: "other", domains: ["*.zencoder.net"] }, { name: "Bronto Software", category: "marketing", domains: ["*.bm23.com", "*.bronto.com", "*.brontops.com"] }, { name: "Browser-Update.org", category: "other", domains: ["*.browser-update.org"] }, { name: "Buffer", category: "social", domains: ["*.bufferapp.com"], totalExecutionTime: 535, totalOccurrences: 7 }, { name: "Bugsnag", category: "utility", domains: ["*.bugsnag.com", "d2wy8f7a9ursnm.cloudfront.net"], examples: ["notify.bu\
gsnag.com"], totalExecutionTime: 6197502, totalOccurrences: 15069 }, { name: "Burst Media", category: "ad", domains: ["*.burstnet.com", "*.1rx.io"], examples: ["usermatch.burstnet.com"], totalExecutionTime: 1618, totalOccurrences: 52 }, { name: "Burt", category: "analytics", domains: ["*.richmetrics.com", "*.burt.io"] }, { name: "Business Message", category: "ad", domains: ["*.message-business.com"], totalExecutionTime: 7310, totalOccurrences: 21 }, { name: "Business Week", company: "Bloomberg", category: "social", domains: ["*.bwbx.io"], totalExecutionTime: 67737, totalOccurrences: 9 }, { name: "Buto", company: "Big Button", category: "ad", domains: ["*.buto.tv"] }, { name: "Button", category: "ad", domains: ["*.btncdn.com"] }, { name: "BuySellAds", category: "ad", domains: ["*.buysellads.com", "*.buysellads.net"], totalExecutionTime: 179225, totalOccurrences: 170 }, { name: "BuySight (AOL)", category: "ad", domains: ["*.pulsemgr.com"] }, { name: "Buyapowa", category: "ad", domains: [
    "*.co-buying.com"], totalExecutionTime: 3038, totalOccurrences: 37 }, { name: "BuzzFeed", category: "social", domains: ["*.buzzfed.com", "*.buzzfeed.com"], totalExecutionTime: 14608, totalOccurrences: 2 }, { name: "C1X", category: "ad", domains: ["*.c1exchange.com"] }, { name: "C3 Metrics", category: "analytics", domains: ["*.c3tag.com"], totalExecutionTime: 18122, totalOccurrences: 153 }, { name: "CANDDi", company: "Campaign and Digital Intelligence", category: "ad", domains: ["*.canddi.com"], totalExecutionTime: 84756, totalOccurrences: 150 }, { name: "CCM benchmark Group", category: "social", domains: ["*.ccm2.net"] }, { name: "CD Networks", category: "utility", domains: ["*.gccdn.net"] }, { name: "CDN Planet", category: "analytics", domains: ["*.cdnplanet.com"] }, { name: "InAuth", category: "utility", homepage: "https://www.inauth.com/", domains: ["*.cdn-net.com"], examples: ["uk.cdn-net.com"], totalExecutionTime: 306346, totalOccurrences: 298 }, { name: "CJ Affiliate", company: "\
Conversant", category: "ad", domains: ["*.cj.com", "*.dpbolvw.net"], totalExecutionTime: 7725, totalOccurrences: 17 }, { name: "CJ Affiliate by Conversant", company: "Conversant", category: "ad", domains: ["*.ftjcfx.com"], totalExecutionTime: 8, totalOccurrences: 4 }, { name: "CNBC", category: "content", domains: ["*.cnbc.com"], totalExecutionTime: 11468, totalOccurrences: 12 }, { name: "CNET Content Solutions", company: "CBS Interactive", category: "content", domains: ["*.cnetcontent.com"], examples: ["cdn.cnetcontent.com", "ws.cnetcontent.com"] }, { name: "CPEx", category: "content", domains: ["*.cpex.cz"], totalExecutionTime: 763356, totalOccurrences: 1104 }, { name: "CPXi", category: "ad", domains: ["*.cpxinteractive.com"] }, { name: "CUBED Attribution", company: "CUBED", category: "ad", domains: ["*.withcubed.com"], examples: ["data.withcubed.com"] }, { name: "Cachefly", category: "utility", domains: ["*.cachefly.net"], totalExecutionTime: 128046, totalOccurrences: 258 }, { name: "\
Calendly", category: "other", domains: ["*.calendly.com"], totalExecutionTime: 8622733, totalOccurrences: 4604 }, { name: "CallRail", category: "analytics", domains: ["*.callrail.com"], totalExecutionTime: 8080185, totalOccurrences: 29537 }, { name: "CallTrackingMetrics", category: "analytics", domains: ["*.tctm.co"], totalExecutionTime: 1981698, totalOccurrences: 7503 }, { name: "Canned Banners", category: "ad", domains: ["*.cannedbanners.com"] }, { name: "Canopy Labs", category: "analytics", domains: ["*.canopylabs.com"] }, { name: "Capita", category: "utility", domains: ["*.crcom.co.uk"], examples: ["emmsrep.crcom.co.uk"] }, { name: "Captify Media", category: "ad", domains: ["*.cpx.to"], totalExecutionTime: 1519, totalOccurrences: 31 }, { name: "Captiify", category: "ad", domains: ["*.captifymedia.com"] }, { name: "Captivate Ai", category: "ad", domains: ["*.captivate.ai"] }, { name: "Captora", category: "marketing", domains: ["*.captora.com"] }, { name: "Carcloud", category: "other",
    domains: ["*.carcloud.co.uk"] }, { name: "Cardlytics", category: "ad", domains: ["*.cardlytics.com"] }, { name: "Cardosa Enterprises", category: "analytics", domains: ["*.y-track.com"], totalExecutionTime: 778, totalOccurrences: 17 }, { name: "Caspian Media", category: "ad", domains: ["*.caspianmedia.com"] }, { name: "Cast", category: "utility", domains: ["*.cast.rocks"] }, { name: "Catch", category: "other", domains: ["*.getcatch.com"], examples: ["app.getcatch.com", "assets.getcatch.com", "js.getcatch.com"], totalExecutionTime: 18282, totalOccurrences: 40 }, { name: "Cavisson", category: "analytics", domains: ["*.cavisson.com"] }, { name: "Cedato", category: "ad", domains: ["*.algovid.com", "*.vdoserv.com"] }, { name: "Celebrus Technologies", category: "analytics", domains: ["*.celebrus.com"] }, { name: "Celtra", category: "ad", domains: ["*.celtra.com"], totalExecutionTime: 369517, totalOccurrences: 427 }, { name: "Centro", category: "ad", domains: ["*.brand-server.com"] }, { name: "\
Ceros", category: "other", domains: ["ceros.com", "view.ceros.com"], totalExecutionTime: 64139, totalOccurrences: 149 }, { name: "Ceros Analytics", company: "Ceros", category: "analytics", domains: ["api.ceros.com"] }, { name: "Certona", category: "analytics", domains: ["*.certona.net"], totalExecutionTime: 376, totalOccurrences: 4 }, { name: "Certum", category: "utility", domains: ["*.ocsp-certum.com", "*.certum.pl"], totalExecutionTime: 8544, totalOccurrences: 3 }, { name: "Cgrdirect", category: "other", domains: ["*.cgrdirect.co.uk"] }, { name: "Channel 5 Media", category: "ad", domains: ["*.five.tv"] }, { name: "Channel.me", category: "customer-success", domains: ["*.channel.me"] }, { name: "ChannelAdvisor", category: "ad", domains: ["*.channeladvisor.com", "*.searchmarketing.com"], totalExecutionTime: 3385, totalOccurrences: 25 }, { name: "ChannelApe", company: "ChannelApe", category: "other", homepage: "https://www.channelape.com/", domains: ["*.channelape.com"], examples: ["call\
backs.channelape.com"] }, { name: "Chargeads Oscar", company: "Chargeads", category: "ad", domains: ["*.chargeads.com"] }, { name: "Charities Aid Foundation", category: "utility", domains: ["*.cafonline.org"], totalExecutionTime: 4368, totalOccurrences: 7 }, { name: "Chartbeat", category: "analytics", domains: ["*.chartbeat.com", "*.chartbeat.net"], totalExecutionTime: 1270560, totalOccurrences: 6246 }, { name: "Cheapflights Media", company: "Momondo", category: "content", domains: ["*.momondo.net"] }, { name: "CheckM8", category: "ad", domains: ["*.checkm8.com"] }, { name: "CheckRate", company: "FreeStart", category: "utility", domains: ["*.checkrate.co.uk"] }, { name: "Checkfront", category: "other", domains: ["*.checkfront.com", "dcg3jth5savst.cloudfront.net"], totalExecutionTime: 279282, totalOccurrences: 152 }, { name: "CheetahMail", company: "Experian", category: "ad", domains: ["*.chtah.com"] }, { name: "Chitika", category: "ad", domains: ["*.chitika.net"] }, { name: "ChoiceStre\
am", category: "ad", domains: ["*.choicestream.com"] }, { name: "Cint", category: "social", domains: ["*.cint.com"], totalExecutionTime: 111659, totalOccurrences: 33 }, { name: "Civic", category: "hosting", domains: ["*.civiccomputing.com"], totalExecutionTime: 2815742, totalOccurrences: 7253 }, { name: "ClearRise", category: "customer-success", domains: ["*.clearrise.com"] }, { name: "Clearstream", category: "ad", domains: ["*.clrstm.com"] }, { name: "Clerk.io ApS", category: "analytics", domains: ["*.clerk.io"], totalExecutionTime: 1196778, totalOccurrences: 1915 }, { name: "CleverDATA", category: "ad", domains: ["*.1dmp.io"] }, { name: "CleverTap", category: "analytics", domains: ["d2r1yp2w7bby2u.cloudfront.net"], totalExecutionTime: 163519, totalOccurrences: 1321 }, { name: "Click Density", category: "analytics", domains: ["*.clickdensity.com"] }, { name: "Click4Assistance", category: "customer-success", domains: ["*.click4assistance.co.uk"], totalExecutionTime: 22710, totalOccurrences: 178 },
    { name: "ClickDesk", category: "customer-success", domains: ["*.clickdesk.com", "d1gwclp1pmzk26.cloudfront.net"], totalExecutionTime: 74975, totalOccurrences: 595 }, { name: "ClickDimensions", category: "ad", domains: ["*.clickdimensions.com"], totalExecutionTime: 125295, totalOccurrences: 262 }, { name: "Clickadu (Winner Solutions)", category: "ad", domains: ["*.clickadu.com"], totalExecutionTime: 10740, totalOccurrences: 4 }, { name: "Clickagy Audience Lab", company: "Clickagy", category: "ad", domains: ["*.clickagy.com"], examples: ["aorta.clickagy.com"], totalExecutionTime: 44558, totalOccurrences: 667 }, { name: "Clickio", category: "ad", domains: [] }, { name: "Clicktale", category: "analytics", domains: ["*.cdngc.net", "*.clicktale.net"], examples: ["clicktalecdn.sslcs.cdngc.net"], totalExecutionTime: 288716, totalOccurrences: 256 }, { name: "Clicktripz", category: "content", domains: ["*.clicktripz.com"], examples: ["static.clicktripz.com", "www.clicktripz.com"], totalExecutionTime: 502041,
    totalOccurrences: 354 }, { name: "Clik.com Websites", category: "content", domains: ["*.clikpic.com"] }, { name: "Cloud Technologies", category: "ad", domains: ["*.behavioralengine.com", "*.behavioralmailing.com"] }, { name: "Cloud-A", category: "other", domains: ["*.bulkstorage.ca"] }, { name: "Cloud.typography", company: "Hoefler &amp; Co", category: "cdn", domains: ["*.typography.com"], totalExecutionTime: 3308, totalOccurrences: 364 }, { name: "CloudSponge", category: "ad", domains: ["*.cloudsponge.com"] }, { name: "CloudVPS", category: "other", domains: ["*.adoftheyear.com", "*.objectstore.eu"] }, { name: "Cloudinary", category: "content", domains: ["*.cloudinary.com"], totalExecutionTime: 1188126, totalOccurrences: 2129 }, { name: "Cloudqp", company: "Cloudwp", category: "other", domains: ["*.cloudwp.io"] }, { name: "Cludo", category: "utility", domains: ["*.cludo.com"], totalExecutionTime: 25376, totalOccurrences: 249 }, { name: "Cognesia", category: "marketing", domains: ["\
*.intelli-direct.com"] }, { name: "CogoCast", company: "Cogo Labs", category: "ad", domains: ["*.cogocast.net"] }, { name: "Colbenson", category: "utility", domains: ["*.colbenson.com"] }, { name: "Collective", category: "ad", domains: ["*.collective-media.net"] }, { name: "Com Laude", category: "other", domains: ["*.gdimg.net"] }, { name: "Comm100", category: "customer-success", domains: ["*.comm100.com"], totalExecutionTime: 469389, totalOccurrences: 1045 }, { name: "CommerceHub", category: "marketing", domains: ["*.mercent.com"] }, { name: "Commission Factory", category: "ad", domains: ["*.cfjump.com"], totalExecutionTime: 961, totalOccurrences: 12 }, { name: "Communicator", category: "ad", domains: ["*.communicatorcorp.com", "*.communicatoremail.com"] }, { name: "Comodo", category: "utility", domains: ["*.comodo.com", "*.trust-provider.com", "*.trustlogo.com", "*.usertrust.com", "*.comodo.net"], examples: ["ocsp.trust-provider.com"], totalExecutionTime: 41752, totalOccurrences: 34 },
    { name: "Comodo Certificate Authority", company: "Comodo", category: "utility", domains: ["crt.comodoca.com", "*.comodoca4.com", "ocsp.comodoca.com", "ocsp.usertrust.com", "crt.usertrust.com"], examples: ["ocsp.comodoca4.com"] }, { name: "Compete", company: "Millwood Brown Digital", category: "analytics", domains: ["*.c-col.com", "*.compete.com"] }, { name: "Compuware", category: "analytics", domains: ["*.axf8.net"] }, { name: "Conductrics", category: "analytics", domains: ["*.conductrics.com"], examples: ["cdn-v3.conductrics.com"], totalExecutionTime: 12705, totalOccurrences: 61 }, { name: "Confirmit", category: "analytics", domains: ["*.confirmit.com"], totalExecutionTime: 32100, totalOccurrences: 195 }, { name: "Connatix", category: "ad", domains: ["*.connatix.com"], totalExecutionTime: 6751327, totalOccurrences: 1195 }, { name: "Connect Events", category: "hosting", domains: ["*.connectevents.com.au"] }, { name: "Constant Contact", category: "ad", domains: ["*.ctctcdn.com"], totalExecutionTime: 604932,
    totalOccurrences: 17528 }, { name: "Constructor.io", category: "utility", domains: ["*.cnstrc.com"] }, { name: "Contabo", category: "hosting", domains: ["185.2.100.179"] }, { name: "Content Media Corporation", category: "content", domains: ["*.contentmedia.eu"] }, { name: "ContentSquare", category: "analytics", domains: ["d1m6l9dfulcyw7.cloudfront.net", "*.content-square.net", "*.contentsquare.net"], totalExecutionTime: 3626830, totalOccurrences: 2948 }, { name: "ContextWeb", category: "ad", domains: ["*.contextweb.com"], totalExecutionTime: 32437, totalOccurrences: 1909 }, { name: "Continental Exchange Solutions", category: "utility", domains: ["*.hifx.com"] }, { name: "Converge-Digital", category: "ad", domains: ["*.converge-digital.com"], examples: ["ads.converge-digital.com"] }, { name: "Conversant", category: "analytics", domains: ["*.dotomi.com", "*.dtmpub.com", "*.emjcd.com", "mediaplex.com", "*.tqlkg.com", "*.fastclick.net"], examples: ["www.tqlkg.com"], totalExecutionTime: 6531550,
    totalOccurrences: 54802 }, { name: "Conversant Ad Server", company: "Conversant", category: "ad", domains: ["adfarm.mediaplex.com", "*.mediaplex.com"] }, { name: "Conversant Tag Manager", company: "Conversant", category: "tag-manager", domains: ["*.mplxtms.com"], totalExecutionTime: 14146, totalOccurrences: 58 }, { name: "Conversio", category: "ad", domains: ["*.conversio.com"] }, { name: "Conversion Labs", category: "ad", domains: ["*.net.pl"], examples: ["conversionlabs.net.pl"], totalExecutionTime: 3243395, totalOccurrences: 1898 }, { name: "Conversion Logic", category: "ad", domains: ["*.conversionlogic.net"] }, { name: "Convert Insights", category: "analytics", domains: ["*.convertexperiments.com"], totalExecutionTime: 2575826, totalOccurrences: 4385 }, { name: "ConvertMedia", category: "ad", domains: ["*.admailtiser.com", "*.basebanner.com", "*.cmbestsrv.com", "*.vidfuture.com", "*.zorosrv.com"], examples: ["www.cmbestsrv.com"] }, { name: "Convertro", category: "ad", domains: [
    "*.convertro.com"] }, { name: "Conviva", category: "content", domains: ["*.conviva.com"], totalExecutionTime: 2955, totalOccurrences: 2 }, { name: "Cookie Reports", category: "utility", domains: ["*.cookiereports.com"], totalExecutionTime: 280810, totalOccurrences: 671 }, { name: "Cookie-Script.com", category: "utility", domains: ["*.cookie-script.com"], totalExecutionTime: 15051619, totalOccurrences: 58095 }, { name: "CookieQ", company: "Baycloud Systems", category: "utility", domains: ["*.cookieq.com"] }, { name: "CoolaData", category: "analytics", domains: ["*.cooladata.com"], totalExecutionTime: 1165, totalOccurrences: 15 }, { name: "CopperEgg", category: "analytics", domains: ["*.copperegg.com", "d2vig74li2resi.cloudfront.net"] }, { name: "Council ad Network", category: "ad", domains: ["*.counciladvertising.net"], totalExecutionTime: 18621, totalOccurrences: 94 }, { name: "Covert Pics", category: "content", domains: ["*.covet.pics"], totalExecutionTime: 4496, totalOccurrences: 55 },
    { name: "Cox Digital Solutions", category: "ad", domains: ["*.afy11.net"] }, { name: "Creafi Online Media", category: "ad", domains: ["*.creafi-online-media.com"] }, { name: "Creators", category: "content", domains: ["*.creators.co"] }, { name: "Crimson Hexagon Analytics", company: "Crimson Hexagon", category: "analytics", domains: ["*.hexagon-analytics.com"] }, { name: "Crimtan", category: "ad", domains: ["*.ctnsnet.com"], totalExecutionTime: 59150, totalOccurrences: 74818 }, { name: "Cross Pixel Media", category: "ad", domains: ["*.crsspxl.com"], totalExecutionTime: 493, totalOccurrences: 8 }, { name: "Crosswise", category: "ad", domains: ["*.univide.com"], examples: ["p.univide.com"] }, { name: "Crowd Control", company: "Lotame", category: "ad", domains: ["*.crwdcntrl.net"], totalExecutionTime: 16298725, totalOccurrences: 101196 }, { name: "Crowd Ignite", category: "ad", domains: ["*.crowdignite.com"] }, { name: "CrowdTwist", category: "ad", domains: ["*.crowdtwist.com"] }, { name: "\
Crowdskout", category: "ad", domains: ["*.crowdskout.com"] }, { name: "Crowdynews", category: "social", domains: ["*.breakingburner.com"] }, { name: "Curalate", category: "marketing", domains: ["*.curalate.com", "d116tqlcqfmz3v.cloudfront.net"], totalExecutionTime: 628884, totalOccurrences: 683 }, { name: "Customer Acquisition Cloud", company: "[24]7", category: "ad", domains: ["*.campanja.com"] }, { name: "Customer.io", category: "ad", domains: ["*.customer.io"], totalExecutionTime: 210609, totalOccurrences: 1268 }, { name: "Custora", category: "analytics", domains: ["*.custora.com"] }, { name: "Cxense", category: "ad", domains: ["*.cxense.com", "*.cxpublic.com", "*.emediate.dk", "*.emediate.eu"], totalExecutionTime: 2218364, totalOccurrences: 3708 }, { name: "CyberKnight", company: "Namogoo", category: "utility", domains: ["*.namogoo.com"] }, { name: "CyberSource (Visa)", category: "utility", domains: ["*.authorize.net"], totalExecutionTime: 339030, totalOccurrences: 2682 }, { name: "\
Cybernet Quest", category: "analytics", domains: ["*.cqcounter.com"] }, { name: "D.A. Consortium", category: "ad", domains: ["*.eff1.net"] }, { name: "D4t4 Solutions", category: "analytics", domains: ["*.u5e.com"] }, { name: "DCSL Software", category: "hosting", domains: ["*.dcslsoftware.com"] }, { name: "DMG Media", category: "content", domains: ["*.mol.im", "*.and.co.uk", "*.anm.co.uk", "*.dailymail.co.uk"], totalExecutionTime: 37855, totalOccurrences: 15 }, { name: "DTSCOUT", category: "ad", domains: ["*.dtscout.com"], totalExecutionTime: 645362, totalOccurrences: 8311 }, { name: "Dailykarma", category: "utility", homepage: "https://www.dailykarma.com/", domains: ["*.dailykarma.io"], examples: ["assets.dailykarma.io"], totalExecutionTime: 122378, totalOccurrences: 477 }, { name: "Dailymotion", category: "content", domains: ["*.dailymotion.com", "*.dmxleo.com", "*.dm.gg", "*.pxlad.io", "*.dmcdn.net", "*.sublimevideo.net"], examples: ["ad.pxlad.io", "www.dailymotion.com"], totalExecutionTime: 56076026,
    totalOccurrences: 5142 }, { name: "Dash Hudson", company: "Dash Hudson", category: "content", domains: ["*.dashhudson.com"], examples: ["cdn.dashhudson.com"], totalExecutionTime: 154963, totalOccurrences: 91 }, { name: "Datacamp", category: "utility", domains: ["*.cdn77.org"], totalExecutionTime: 3303608, totalOccurrences: 1181 }, { name: "Datalicious", category: "tag-manager", domains: ["*.supert.ag", "*.optimahub.com"] }, { name: "Datalogix", category: "ad", domains: ["*.nexac.com"] }, { name: "Datawrapper", category: "utility", domains: ["*.datawrapper.de", "*.dwcdn.net"], examples: ["www.datawrapper.de"], totalExecutionTime: 951486, totalOccurrences: 249 }, { name: "Dataxu", category: "marketing", domains: ["*.w55c.net"], totalExecutionTime: 10, totalOccurrences: 5 }, { name: "DatoCMS", homepage: "https://www.datocms.com/", category: "content", domains: ["*.datocms-assets.com"], examples: ["www.datocms-assets.com"] }, { name: "Datonics", category: "ad", domains: ["*.pro-market.\
net"], examples: ["pbid.pro-market.net"], totalExecutionTime: 16955, totalOccurrences: 254 }, { name: "Dealtime", category: "content", domains: ["*.dealtime.com"] }, { name: "Debenhams Geo Location", company: "Debenhams", category: "utility", domains: ["176.74.183.134"] }, { name: "Decibel Insight", category: "analytics", domains: ["*.decibelinsight.net"], totalExecutionTime: 995190, totalOccurrences: 691 }, { name: "Deep Forest Media", company: "Rakuten", category: "ad", domains: ["*.dpclk.com"] }, { name: "DeepIntent", category: "ad", domains: ["*.deepintent.com"], totalExecutionTime: 3875, totalOccurrences: 206 }, { name: "Delicious Media", category: "social", domains: ["*.delicious.com"] }, { name: "Delineo", category: "ad", domains: ["*.delineo.com"], examples: ["www.delineo.com"] }, { name: "Delta Projects AB", category: "ad", domains: ["*.de17a.com"], totalExecutionTime: 90548, totalOccurrences: 382 }, { name: "Demand Media", category: "content", domains: ["*.dmtracker.com"] }, {
    name: "DemandBase", category: "marketing", domains: ["*.demandbase.com"], totalExecutionTime: 393206, totalOccurrences: 2552 }, { name: "DemandJump", category: "analytics", domains: ["*.demandjump.com"] }, { name: "Dennis Publishing", category: "content", domains: ["*.alphr.com"] }, { name: "Devatics", category: "analytics", domains: ["*.devatics.com", "*.devatics.io"] }, { name: "Developer Media", category: "ad", domains: ["*.developermedia.com"], totalExecutionTime: 4416, totalOccurrences: 17 }, { name: "DialogTech", category: "ad", domains: ["*.dialogtech.com"] }, { name: "DialogTech SourceTrak", company: "DialogTech", category: "ad", domains: ["d31y97ze264gaa.cloudfront.net"] }, { name: "DigiCert", category: "utility", domains: ["*.digicert.com"], examples: ["ocsp.digicert.com"], totalExecutionTime: 26560, totalOccurrences: 83 }, { name: "Digioh", category: "ad", domains: ["*.lightboxcdn.com"], totalExecutionTime: 1347082, totalOccurrences: 1303 }, { name: "Digital Look", category: "\
content", domains: ["*.digitallook.com"] }, { name: "Digital Media Exchange", company: "NDN", category: "content", domains: ["*.newsinc.com"] }, { name: "Digital Millennium Copyright Act Services", category: "utility", domains: ["*.dmca.com"], totalExecutionTime: 8820, totalOccurrences: 70 }, { name: "Digital Ocean", category: "other", domains: ["95.85.62.56"] }, { name: "Digital Remedy", category: "ad", domains: ["*.consumedmedia.com"] }, { name: "Digital Window", category: "ad", domains: ["*.awin1.com", "*.zenaps.com"], totalExecutionTime: 195, totalOccurrences: 4 }, { name: "DigitalScirocco", category: "analytics", domains: ["*.digitalscirocco.net"] }, { name: "Digitial Point", category: "utility", domains: ["*.dpstatic.com"] }, { name: "Diligent (Adnetik)", category: "ad", domains: ["*.wtp101.com"] }, { name: "Directed Edge", category: "social", domains: ["*.directededge.com"], examples: ["shopify.directededge.com"], totalExecutionTime: 8371, totalOccurrences: 81 }, { name: "Distri\
bute Travel", category: "ad", domains: ["*.dtrck.net"] }, { name: "District M", category: "ad", domains: ["*.districtm.io"] }, { name: "DistroScale", category: "ad", domains: ["*.jsrdn.com"], totalExecutionTime: 186009, totalOccurrences: 198 }, { name: "Divido", category: "utility", domains: ["*.divido.com"] }, { name: "Dow Jones", category: "content", domains: ["*.dowjones.com", "*.dowjoneson.com"] }, { name: "Drifty Co", category: "utility", domains: ["*.onicframework.com"] }, { name: "Drip", company: "The Numa Group", category: "ad", domains: ["*.getdrip.com"], totalExecutionTime: 120918, totalOccurrences: 1350 }, { name: "Dropbox", category: "utility", domains: ["*.dropboxusercontent.com"], totalExecutionTime: 142552, totalOccurrences: 145 }, { name: "Dyn Real User Monitoring", company: "Dyn", category: "analytics", domains: ["*.jisusaiche.biz", "*.dynapis.com", "*.jisusaiche.com", "*.dynapis.info"], examples: ["beacon.rum.dynapis.com"] }, { name: "DynAdmic", category: "ad", domains: [
    "*.dyntrk.com"] }, { name: "Dynamic Converter", category: "utility", domains: ["*.dynamicconverter.com"], totalExecutionTime: 58723, totalOccurrences: 96 }, { name: "Dynamic Dummy Image Generator", company: "Open Source", category: "utility", domains: ["*.dummyimage.com"] }, { name: "Dynamic Logic", category: "ad", domains: ["*.dl-rms.com", "*.questionmarket.com"] }, { name: "Dynamic Yield", category: "customer-success", domains: ["*.dynamicyield.com"], totalExecutionTime: 3580074, totalOccurrences: 1843 }, { name: "Dynatrace", category: "analytics", domains: ["*.ruxit.com", "js-cdn.dynatrace.com"], totalExecutionTime: 4106731, totalOccurrences: 3221 }, { name: "ec-concier", homepage: "https://ec-concier.com/", category: "marketing", domains: ["*.ec-concier.com"], examples: ["s.ec-concier.com", "gsync.ec-concier.com"] }, { name: "ECT News Network", category: "content", domains: ["*.ectnews.com"] }, { name: "ELITechGroup", category: "analytics", domains: ["*.elitechnology.com"] }, {
    name: "EMAP", category: "content", domains: ["*.emap.com"] }, { name: "EMedia Solutions", category: "ad", domains: ["*.e-shots.eu"], examples: ["www.e-shots.eu"] }, { name: "EQ works", category: "ad", domains: ["*.eqads.com"] }, { name: "ESV Digital", category: "analytics", domains: ["*.esearchvision.com"] }, { name: "Ebiquity", category: "analytics", domains: ["*.ebiquitymedia.com"] }, { name: "Eco Rebates", category: "ad", domains: ["*.ecorebates.com"] }, { name: "Ecwid", category: "hosting", domains: ["*.ecwid.com", "*.shopsettings.com", "d3fi9i0jj23cau.cloudfront.net", "d3j0zfs7paavns.cloudfront.net"], totalExecutionTime: 3757012, totalOccurrences: 4362 }, { name: "Edge Web Fonts", company: "Adobe Systems", category: "cdn", domains: ["*.edgefonts.net"], examples: ["use.edgefonts.net"] }, { name: "Edition Digital", category: "ad", domains: ["*.editiondigital.com"] }, { name: "Edot Web Technologies", category: "hosting", domains: ["*.edot.co.za"] }, { name: "Effective Measure", category: "\
ad", domains: ["*.effectivemeasure.net"], totalExecutionTime: 17, totalOccurrences: 1 }, { name: "Effiliation sa", category: "ad", domains: ["*.effiliation.com"], totalExecutionTime: 108, totalOccurrences: 3 }, { name: "Ekm Systems", category: "analytics", domains: ["*.ekmsecure.com", "*.ekmpinpoint.co.uk"], examples: ["globalstats.ekmsecure.com"], totalExecutionTime: 67875, totalOccurrences: 789 }, { name: "Elastera", category: "hosting", domains: ["*.elastera.net"] }, { name: "Elastic Ad", category: "ad", domains: ["*.elasticad.net"], totalExecutionTime: 30225, totalOccurrences: 137 }, { name: "Elastic Load Balancing", company: "Amazon Web Services", category: "hosting", domains: ["*.105app.com"], examples: ["rhpury.105app.com", "rhxtd.105app.com"] }, { name: "Elecard StreamEye", company: "Elecard", category: "other", domains: ["*.streameye.net"] }, { name: "Elevate", company: "Elevate Technology Solutions", category: "utility", domains: ["*.elevaate.technology"] }, { name: "Elicit",
    category: "utility", domains: ["*.elicitapp.com"] }, { name: "Elogia", category: "ad", domains: ["*.elogia.net"] }, { name: "Email Attitude", company: "1000mercis", category: "ad", domains: ["*.email-attitude.com"] }, { name: "EmailCenter", category: "ad", domains: ["*.emailcenteruk.com"] }, { name: "Embedly", category: "content", domains: ["*.embedly.com", "*.embed.ly"], totalExecutionTime: 5014487, totalOccurrences: 10836 }, { name: "EmpathyBroker Site Search", company: "EmpathyBroker", category: "utility", domains: ["*.empathybroker.com"] }, { name: "Enfusen", category: "analytics", domains: ["*.enfusen.com"] }, { name: "Engadget", company: "Engadget (AOL)", category: "content", domains: ["*.gdgt.com"], examples: ["media.gdgt.com"] }, { name: "Engagio", category: "marketing", domains: ["*.engagio.com"] }, { name: "Ensighten Manage", company: "Ensighten", category: "tag-manager", domains: ["*.levexis.com"] }, { name: "EntityLink", category: "other", domains: ["*.entitytag.co.uk"] },
    { name: "Entrust Datacard", category: "utility", domains: ["*.entrust.com", "*.entrust.net"], examples: ["ocsp.entrust.com", "ocsp.entrust.net"], totalExecutionTime: 14041, totalOccurrences: 3 }, { name: "Equiniti", category: "utility", domains: ["*.equiniti.com"] }, { name: "Errorception", category: "utility", domains: ["*.errorception.com"] }, { name: "Esri ArcGIS", company: "Esri", category: "utility", domains: ["*.arcgis.com", "*.arcgisonline.com"], totalExecutionTime: 21967746, totalOccurrences: 3432 }, { name: "Ethnio", category: "analytics", domains: ["*.ethn.io"] }, { name: "Eulerian Technologies", category: "ad", domains: ["*.eolcdn.com"] }, { name: "Euroland", category: "utility", domains: ["*.euroland.com"], totalExecutionTime: 1, totalOccurrences: 3 }, { name: "European Interactive Digital ad Alli", category: "utility", domains: ["*.edaa.eu"] }, { name: "Eventbrite", category: "hosting", domains: ["*.evbuc.com", "*.eventbrite.co.uk"], totalExecutionTime: 4667, totalOccurrences: 33 },
    { name: "Everflow", category: "analytics", domains: ["*.tp88trk.com"], examples: ["www.tp88trk.com"], totalExecutionTime: 110842, totalOccurrences: 185 }, { name: "Evergage", category: "analytics", domains: ["*.evergage.com", "*.evgnet.com"], examples: ["cdn.evgnet.com"], totalExecutionTime: 1095634, totalOccurrences: 2491 }, { name: "Everquote", category: "content", domains: ["*.evq1.com"] }, { name: "Everyday Health", category: "ad", domains: ["*.agoramedia.com"] }, { name: "Evidon", category: "analytics", domains: ["*.evidon.com"], totalExecutionTime: 1260409, totalOccurrences: 2482 }, { name: "Evolve Media", category: "content", domains: ["*.evolvemediallc.com"] }, { name: "Exactag", category: "ad", domains: ["*.exactag.com"], totalExecutionTime: 662, totalOccurrences: 6 }, { name: "ExoClick", category: "ad", domains: ["*.exoclick.com"], totalExecutionTime: 69348, totalOccurrences: 568 }, { name: "Expedia", category: "content", domains: ["*.travel-assets.com", "*.trvl-media.com",
    "*.trvl-px.com", "*.uciservice.com"], examples: ["www.trvl-px.com", "www.uciservice.com"], totalExecutionTime: 15443, totalOccurrences: 15 }, { name: "Expedia Australia", company: "Expedia", category: "content", domains: ["*.expedia.com.au"], examples: ["www.expedia.com.au"] }, { name: "Expedia Canada", company: "Expedia", category: "content", domains: ["*.expedia.ca"], examples: ["www.expedia.ca"] }, { name: "Expedia France", company: "Expedia", category: "content", domains: ["*.expedia.fr"], examples: ["www.expedia.fr"] }, { name: "Expedia Germany", company: "Expedia", category: "content", domains: ["*.expedia.de"], examples: ["www.expedia.de"] }, { name: "Expedia Italy", company: "Expedia", category: "content", domains: ["*.expedia.it"], examples: ["www.expedia.it"] }, { name: "Expedia Japan", company: "Expedia", category: "content", domains: ["*.expedia.co.jp"], examples: ["www.expedia.co.jp"] }, { name: "Expedia USA", company: "Expedia", category: "content", domains: ["*.exped\
ia.com"], examples: ["www.expedia.com"], totalExecutionTime: 40062, totalOccurrences: 19 }, { name: "Expedia United Kingdom", company: "Expedia", category: "content", domains: ["*.expedia.co.uk"], examples: ["www.expedia.co.uk"] }, { name: "Experian", category: "utility", domains: ["*.audienceiq.com", "*.experian.com", "*.experianmarketingservices.digital"] }, { name: "Experian Cross-Channel Marketing Platform", company: "Experian", category: "marketing", domains: ["*.eccmp.com", "*.ccmp.eu"], totalExecutionTime: 1268, totalOccurrences: 24 }, { name: "Exponea", category: "analytics", domains: ["*.exponea.com"], totalExecutionTime: 154832, totalOccurrences: 1303 }, { name: "Exponential Interactive", category: "ad", domains: ["*.exponential.com"], totalExecutionTime: 5179, totalOccurrences: 120 }, { name: "Extensis WebInk", category: "cdn", domains: ["*.webink.com"] }, { name: "Extole", category: "ad", domains: ["*.extole.com", "*.extole.io"], examples: ["origin.extole.io"], totalExecutionTime: 21067,
    totalOccurrences: 44 }, { name: "Ey-Seren", category: "analytics", domains: ["*.webabacus.com"] }, { name: "EyeView", category: "ad", domains: ["*.eyeviewads.com"] }, { name: "Eyeota", category: "ad", domains: ["*.eyeota.net"], totalExecutionTime: 152570, totalOccurrences: 1827 }, { name: "Ezakus Pretargeting", company: "Ezakus", category: "ad", domains: ["*.ezakus.net"] }, { name: "Ezoic", category: "analytics", domains: ["*.ezoic.net"], totalExecutionTime: 93024, totalOccurrences: 173 }, { name: "FLXone", company: "Teradata", category: "ad", domains: ["*.pangolin.blue", "*.flx1.com", "d2hlpp31teaww3.cloudfront.net", "*.flxpxl.com"], totalExecutionTime: 25037, totalOccurrences: 67 }, { name: "Fairfax Media", category: "content", domains: ["ads.fairfax.com.au", "resources.fairfax.com.au"] }, { name: "Fairfax Media Analtics", company: "Fairfax Media", category: "analytics", domains: ["analytics.fairfax.com.au"] }, { name: "Falk Technologies", category: "ad", domains: ["*.angsrvr.com"] },
    { name: "Fanplayr", category: "analytics", domains: ["*.fanplayr.com", "d38nbbai6u794i.cloudfront.net"], totalExecutionTime: 69669, totalOccurrences: 154 }, { name: "Fast Thinking", company: "NE Marketing", category: "marketing", domains: ["*.fast-thinking.co.uk"] }, { name: "Fastest Forward", category: "analytics", domains: ["*.gaug.es"], totalExecutionTime: 13583, totalOccurrences: 261 }, { name: "Fastly", category: "utility", domains: ["*.fastly.net"], totalExecutionTime: 21362072, totalOccurrences: 9582 }, { name: "Feedbackify", company: "InsideMetrics", category: "analytics", domains: ["*.feedbackify.com"], totalExecutionTime: 42808, totalOccurrences: 173 }, { name: "Feefo.com", company: "Feefo", category: "analytics", domains: ["*.feefo.com"], totalExecutionTime: 1362284, totalOccurrences: 2025 }, { name: "Fidelity Media", category: "ad", domains: ["*.fidelity-media.com"], examples: ["x.fidelity-media.com"] }, { name: "Filestack", category: "content", domains: ["*.filepicker.\
io"], examples: ["api.filepicker.io", "dialog.filepicker.io", "www.filepicker.io"], totalExecutionTime: 27297, totalOccurrences: 200 }, { name: "Finsbury Media", category: "ad", domains: ["*.finsburymedia.com"], totalExecutionTime: 3470, totalOccurrences: 12 }, { name: "Firepush", category: "utility", domains: ["*.firepush.io"] }, { name: "FirstImpression", category: "ad", domains: ["*.firstimpression.io"], totalExecutionTime: 141056, totalOccurrences: 107 }, { name: "Fit Analytics", category: "other", domains: ["*.fitanalytics.com"], examples: ["integrations.fitanalytics.com", "widget.fitanalytics.com", "metrics.fitanalytics.com"] }, { name: "Fits Me", category: "analytics", domains: ["*.fits.me"] }, { name: "Fivetran", category: "analytics", domains: ["*.fivetran.com"], totalExecutionTime: 2922, totalOccurrences: 3 }, { name: "FlexShopper", category: "utility", domains: ["*.flexshopper.com"] }, { name: "Flickr", category: "content", domains: ["*.flickr.com", "*.staticflickr.com"], totalExecutionTime: 262262,
    totalOccurrences: 524 }, { name: "Flipboard", category: "social", domains: ["*.flipboard.com"], totalExecutionTime: 50049, totalOccurrences: 41 }, { name: "Flipdesk", category: "customer-success", homepage: "https://flipdesk.jp/", domains: ["*.flipdesk.jp"], examples: ["api.flipdesk.jp"], totalExecutionTime: 322297, totalOccurrences: 411 }, { name: "Flipp", category: "analytics", domains: ["*.wishabi.com", "d2e0sxz09bo7k2.cloudfront.net", "*.wishabi.net"] }, { name: "Flite", category: "ad", domains: ["*.flite.com"] }, { name: "Flixmedia", category: "analytics", domains: ["*.flix360.com", "*.flixcar.com", "*.flixfacts.com", "*.flixsyndication.net", "*.flixfacts.co.uk"], totalExecutionTime: 32827, totalOccurrences: 19 }, { name: "Flockler", category: "ad", domains: ["*.flockler.com"], totalExecutionTime: 504051, totalOccurrences: 1297 }, { name: "Flowplayer", category: "content", domains: ["*.flowplayer.org"], totalExecutionTime: 218859, totalOccurrences: 862 }, { name: "Flowzymes Ky",
    category: "cdn", domains: ["*.jquerytools.org"] }, { name: "Fomo", category: "ad", domains: ["*.notifyapp.io"] }, { name: "Fonecall", category: "analytics", domains: ["*.web-call-analytics.com"] }, { name: "Fontdeck", category: "cdn", domains: ["*.fontdeck.com"] }, { name: "Foodity Technologies", category: "ad", domains: ["*.foodity.com"] }, { name: "Force24", category: "ad", domains: ["*.force24.co.uk"], totalExecutionTime: 10225, totalOccurrences: 112 }, { name: "ForeSee", company: "Answers", category: "analytics", domains: ["*.4seeresults.com", "*.answerscloud.com", "*.foresee.com", "*.foreseeresults.com"], totalExecutionTime: 179704, totalOccurrences: 266 }, { name: "Forensiq", category: "utility", domains: ["*.fqtag.com"], totalExecutionTime: 21937, totalOccurrences: 171 }, { name: "Fort Awesome", category: "cdn", domains: ["*.fortawesome.com"], totalExecutionTime: 652365, totalOccurrences: 3635 }, { name: "Forter", category: "utility", domains: ["*.forter.com"], totalExecutionTime: 6578955,
    totalOccurrences: 6930 }, { name: "Forward Internet Group", category: "hosting", domains: ["*.f3d.io"] }, { name: "Forward3D", category: "ad", domains: ["*.forward3d.com"] }, { name: "Fospha", category: "analytics", domains: ["*.fospha.com"], examples: ["router.fospha.com"] }, { name: "Foursixty", category: "customer-success", domains: ["*.foursixty.com"] }, { name: "FoxyCart", category: "utility", domains: ["*.foxycart.com"], totalExecutionTime: 361777, totalOccurrences: 669 }, { name: "Fraudlogix", category: "utility", domains: ["*.yabidos.com"], totalExecutionTime: 47637, totalOccurrences: 357 }, { name: "FreakOut", category: "ad", domains: ["*.fout.jp"], totalExecutionTime: 114328, totalOccurrences: 2036 }, { name: "Freespee", category: "customer-success", domains: ["*.freespee.com"], examples: ["analytics.freespee.com"], totalExecutionTime: 67626, totalOccurrences: 484 }, { name: "Freetobook", category: "content", domains: ["*.freetobook.com"], examples: ["www.freetobook.com"],
    totalExecutionTime: 297146, totalOccurrences: 649 }, { name: "Fresh 8 Gaming", category: "ad", domains: ["*.fresh8.co"], totalExecutionTime: 319849, totalOccurrences: 76 }, { name: "Fresh Relevance", category: "analytics", domains: ["*.freshrelevance.com", "*.cloudfront.ne", "d1y9qtn9cuc3xw.cloudfront.net", "d81mfvml8p5ml.cloudfront.net", "dkpklk99llpj0.cloudfront.net"], examples: ["d1y9qtn9cuc3xw.cloudfront.ne"], totalExecutionTime: 91181, totalOccurrences: 300 }, { name: "Friendbuy", category: "ad", domains: ["*.friendbuy.com", "djnf6e5yyirys.cloudfront.net"], totalExecutionTime: 17783, totalOccurrences: 150 }, { name: "Frienefit", category: "ad", domains: ["*.frienefit.com"] }, { name: "FuelX", category: "ad", domains: ["*.fuelx.com"] }, { name: "Full Circle Studies", category: "analytics", domains: ["*.securestudies.com"] }, { name: "FullStory", category: "analytics", domains: ["*.fullstory.com"], examples: ["rs.fullstory.com"], totalExecutionTime: 11575233, totalOccurrences: 14687 },
    { name: "Fyber", category: "ad", domains: ["*.fyber.com"] }, { name: "G-Forces Web Management", category: "hosting", domains: ["*.gforcesinternal.co.uk"] }, { name: "G4 Native", company: "Gravity4", category: "ad", domains: ["*.triggit.com"] }, { name: "GET ME IN!  (TicketMaster)", category: "content", domains: ["*.getmein.com"] }, { name: "GIPHY", category: "content", domains: ["*.giphy.com"], totalExecutionTime: 4831, totalOccurrences: 6 }, { name: "GainCloud", company: "GainCloud Systems", category: "other", domains: ["*.egaincloud.net"] }, { name: "Gath Adams", category: "content", domains: ["*.iwantthatflight.com.au"] }, { name: "Gecko Tribe", category: "social", domains: ["*.geckotribe.com"] }, { name: "Gemius", category: "ad", domains: ["*.gemius.pl"], totalExecutionTime: 2964756, totalOccurrences: 15596 }, { name: "Genesis Media", category: "ad", domains: ["*.bzgint.com", "*.genesismedia.com", "*.genesismediaus.com"] }, { name: "Genie Ventures", category: "ad", domains: ["*\
.genieventures.co.uk"] }, { name: "Geniee", category: "ad", domains: ["*.href.asia", "*.genieessp.jp", "*.genieesspv.jp", "*.gssprt.jp"], examples: ["cs.gssprt.jp"], totalExecutionTime: 16956055, totalOccurrences: 16354 }, { name: "Geniuslink", category: "analytics", domains: ["*.geni.us"], totalExecutionTime: 897, totalOccurrences: 3 }, { name: "GeoRiot", category: "other", domains: ["*.georiot.com"] }, { name: "GeoTrust", category: "utility", domains: ["*.geotrust.com"], totalExecutionTime: 3300, totalOccurrences: 2 }, { name: "Geoplugin", category: "utility", domains: ["*.geoplugin.com", "*.geoplugin.net"], totalExecutionTime: 119, totalOccurrences: 3 }, { name: "Georeferencer", company: "Klokan Technologies", category: "utility", domains: ["*.georeferencer.com"] }, { name: "GetIntent RTBSuite", company: "GetIntent", category: "ad", domains: ["*.adhigh.net"], totalExecutionTime: 2768, totalOccurrences: 356 }, { name: "GetResponse", category: "ad", domains: ["*.getresponse.com"], totalExecutionTime: 209076,
    totalOccurrences: 1019 }, { name: "GetSiteControl", company: "GetWebCraft", category: "utility", domains: ["*.getsitecontrol.com"], totalExecutionTime: 1739288, totalOccurrences: 3146 }, { name: "GetSocial", category: "social", domains: ["*.getsocial.io"], totalExecutionTime: 1204, totalOccurrences: 11 }, { name: "Getty Images", category: "content", domains: ["*.gettyimages.com", "*.gettyimages.co.uk"], examples: ["www.gettyimages.com"], totalExecutionTime: 17939, totalOccurrences: 65 }, { name: "Gfycat", company: "Gycat", category: "utility", domains: ["*.gfycat.com"] }, { name: "Ghostery Enterprise", company: "Ghostery", category: "marketing", domains: ["*.betrad.com"], totalExecutionTime: 1129, totalOccurrences: 26 }, { name: "Giant Media", category: "ad", domains: ["*.videostat.com"] }, { name: "Gigya", category: "analytics", domains: ["*.gigya.com"], totalExecutionTime: 2692493, totalOccurrences: 1995 }, { name: "GitHub", category: "utility", domains: ["*.github.com", "*.githu\
busercontent.com", "*.github.io", "*.rawgit.com"], examples: ["raw.githubusercontent.com", "cdn.rawgit.com"], totalExecutionTime: 7126491, totalOccurrences: 14675 }, { name: "Gladly", company: "Gladly", homepage: "https://www.gladly.com/", category: "customer-success", domains: ["*.gladly.com"], examples: ["cdn.gladly.com"], totalExecutionTime: 240417, totalOccurrences: 381 }, { name: "Glassdoor", category: "content", domains: ["*.glassdoor.com"], totalExecutionTime: 68877, totalOccurrences: 19 }, { name: "Gleam", category: "marketing", domains: ["*.gleam.io"], totalExecutionTime: 43249, totalOccurrences: 221 }, { name: "Global Digital Markets", category: "ad", domains: ["*.gdmdigital.com"] }, { name: "Global-e", category: "hosting", domains: ["*.global-e.com"], totalExecutionTime: 706185, totalOccurrences: 1314 }, { name: "GlobalSign", category: "utility", domains: ["*.globalsign.com", "*.globalsign.net"], totalExecutionTime: 11228, totalOccurrences: 48 }, { name: "GlobalWebIndex", category: "\
analytics", domains: ["*.globalwebindex.net"] }, { name: "Globase International", category: "ad", domains: ["*.globase.com"] }, { name: "GoDataFeed", category: "other", domains: ["*.godatafeed.com"] }, { name: "Google APIs", company: "Google", category: "utility", domains: ["googleapis.com"] }, { name: "Google Ad Block Detection", company: "Google", category: "ad", domains: ["*.0emn.com", "*.0fmm.com"] }, { name: "Google Analytics Experiments", company: "Google", category: "analytics", domains: ["*.gexperiments1.com"] }, { name: "Google DoubleClick Ad Exchange", company: "Google", category: "ad", domains: ["*.admeld.com"] }, { name: "Google IPV6 Metrics", company: "Google", category: "analytics", domains: ["*.ipv6test.net"] }, { name: "Google Plus", company: "Google", category: "social", domains: ["plus.google.com"], totalExecutionTime: 49945, totalOccurrences: 442 }, { name: "Google Trusted Stores", company: "Google", category: "utility", domains: ["*.googlecommerce.com"], totalExecutionTime: 218,
    totalOccurrences: 5 }, { name: "Google Video", company: "Google", category: "content", domains: ["*.googlevideo.com"], totalExecutionTime: 4, totalOccurrences: 3 }, { name: "Google reCAPTCHA", company: "Google", category: "utility", domains: ["*.recaptcha.net"], examples: ["api.recaptcha.net"], totalExecutionTime: 8694396, totalOccurrences: 25662 }, { name: "GovMetric", company: "ROL Solutions", category: "analytics", domains: ["*.govmetric.com"], totalExecutionTime: 233, totalOccurrences: 6 }, { name: "Granify", category: "analytics", domains: ["*.granify.com"], totalExecutionTime: 19211, totalOccurrences: 24 }, { name: "Grapeshot", category: "ad", domains: ["*.gscontxt.net", "*.grapeshot.co.uk"], totalExecutionTime: 4945, totalOccurrences: 4 }, { name: "Gravity (AOL)", category: "analytics", domains: ["*.grvcdn.com"] }, { name: "Groovy Gecko", category: "content", domains: ["*.ggwebcast.com", "*.groovygecko.net"] }, { name: "GroupM", category: "ad", domains: ["*.qservz.com"] }, {
    name: "Guardian Media", category: "ad", domains: ["*.theguardian.com", "*.guardian.co.uk"], examples: ["oas.theguardian.com"] }, { name: "GumGum", category: "ad", domains: ["*.gumgum.com"], totalExecutionTime: 3440651, totalOccurrences: 167535 }, { name: "Gumtree", category: "content", domains: ["*.gumtree.com"] }, { name: "H264 Codec", company: "Cisco", category: "other", domains: ["*.openh264.org"] }, { name: "HERE", category: "analytics", domains: ["*.medio.com"] }, { name: "HP Optimost", company: "Hewlett-Packard Development Company", category: "marketing", domains: ["*.hp.com", "d2uncb19xzxhzx.cloudfront.net"], examples: ["by.marketinghub.hp.com", "marketinghub.hp.com"], totalExecutionTime: 420577, totalOccurrences: 100 }, { name: "Has Offers", company: "TUNE", category: "ad", domains: ["*.go2cloud.org"], totalExecutionTime: 0, totalOccurrences: 3 }, { name: "Hawk Search", category: "utility", domains: ["*.hawksearch.com"], totalExecutionTime: 15097, totalOccurrences: 132 }, {
    name: "Haymarket Media Group", category: "content", domains: ["*.brandrepublic.com", "*.hbpl.co.uk"] }, { name: "Heap", category: "analytics", domains: ["*.heapanalytics.com"], totalExecutionTime: 5187800, totalOccurrences: 12078 }, { name: "Hearst Communications", category: "content", domains: ["*.h-cdn.co", "*.hearstdigital.com", "*.hearstlabs.com", "*.hearst.io", "*.cdnds.net"] }, { name: "Heatmap", category: "analytics", domains: ["*.heatmap.it"], totalExecutionTime: 7337, totalOccurrences: 141 }, { name: "Heroku", category: "other", domains: ["*.herokuapp.com"], totalExecutionTime: 12602535, totalOccurrences: 14119 }, { name: "Hexton", category: "utility", domains: ["*.hextom.com"], totalExecutionTime: 10806589, totalOccurrences: 24738 }, { name: "Hibernia Networks", category: "utility", domains: ["*.hiberniacdn.com"] }, { name: "High Impact Media", category: "ad", domains: ["*.reactx.com"] }, { name: "Highcharts", category: "utility", domains: ["*.highcharts.com"], totalExecutionTime: 746540,
    totalOccurrences: 3181 }, { name: "Highwinds", category: "utility", domains: ["*.hwcdn.net"] }, { name: "HitsLink", category: "analytics", domains: ["*.hitslink.com"], totalExecutionTime: 1452, totalOccurrences: 29 }, { name: "Hola Networks", category: "other", domains: ["*.h-cdn.com"], totalExecutionTime: 83024, totalOccurrences: 42 }, { name: "Hootsuite", category: "analytics", domains: ["*.hootsuite.com"] }, { name: "HotUKDeals", category: "analytics", domains: ["*.hotukdeals.com"] }, { name: "HotWords", company: "Media Response Group", category: "ad", domains: ["*.hotwords.com.br"] }, { name: "HotelsCombined", category: "content", domains: ["*.datahc.com"], totalExecutionTime: 81, totalOccurrences: 2 }, { name: "Hoverr", category: "ad", domains: ["*.hoverr.media"] }, { name: "Hull.js", category: "utility", domains: ["*.hull.io", "*.hullapp.io"] }, { name: "Hupso Website Analyzer", company: "Hupso", category: "analytics", domains: ["*.hupso.com"], totalExecutionTime: 20892, totalOccurrences: 248 },
    { name: "I-Behavior", company: "WPP", category: "ad", domains: ["*.ib-ibi.com"], totalExecutionTime: 23, totalOccurrences: 35 }, { name: "i-mobile", company: "i-mobile", category: "ad", domains: ["*.i-mobile.co.jp"], examples: ["ssp-sync.i-mobile.co.jp"], totalExecutionTime: 3701005, totalOccurrences: 16595 }, { name: "IBM Digital Analytics", company: "IBM", category: "analytics", domains: ["*.cmcore.com", "coremetrics.com", "data.coremetrics.com", "data.de.coremetrics.com", "libs.de.coremetrics.com", "tmscdn.de.coremetrics.com", "iocdn.coremetrics.com", "libs.coremetrics.com", "tmscdn.coremetrics.com", "*.s81c.com", "*.unica.com", "*.coremetrics.eu"], examples: ["data.coremetrics.eu"], totalExecutionTime: 126790, totalOccurrences: 169 }, { name: "IBM Digital Data Exchange", company: "IBM", category: "tag-manager", domains: ["tagmanager.coremetrics.com"] }, { name: "IBM Tealeaf", company: "IBM", category: "analytics", domains: ["*.ibmcloud.com"], examples: ["uscollector.tealeaf.ibm\
cloud.com"] }, { name: "IBM Acoustic Campaign", company: "IBM", category: "analytics", domains: ["www.sc.pages01.net", "www.sc.pages02.net", "www.sc.pages03.net", "www.sc.pages04.net", "www.sc.pages05.net", "www.sc.pages06.net", "www.sc.pages07.net", "www.sc.pages08.net", "www.sc.pages09.net", "www.sc.pagesA.net"], examples: ["https://www.sc.pages01.net/lp/static/js/iMAWebCookie.js"], totalExecutionTime: 51361, totalOccurrences: 417 }, { name: "ICF Technology", category: "content", domains: ["*.camads.net"] }, { name: "IFDNRG", category: "hosting", domains: ["*.ifdnrg.com"] }, { name: "IMRG", category: "analytics", domains: ["*.peermap.com", "*.imrg.org"], examples: ["benchmarking.imrg.org"] }, { name: "IPONWEB", category: "ad", domains: ["*.company-target.com", "*.liadm.com", "*.iponweb.net", "*.p161.net"], examples: ["pool.udsp.iponweb.net"], totalExecutionTime: 8924906, totalOccurrences: 39154 }, { name: "IQ Mobile", category: "utility", domains: ["*.iqm.cc"] }, { name: "IS Group", category: "\
hosting", domains: ["*.creative-serving.com"], totalExecutionTime: 2127, totalOccurrences: 29 }, { name: "IT Dienstleistungen Tim Prinzkosky", category: "utility", domains: ["*.flaticons.net"] }, { name: "IXI Digital", company: "Equifax", category: "ad", domains: ["*.ixiaa.com"] }, { name: "IcoMoon", category: "cdn", domains: ["d19ayerf5ehaab.cloudfront.net", "d1azc1qln24ryf.cloudfront.net"], totalExecutionTime: 54286, totalOccurrences: 180 }, { name: "IdenTrust", category: "utility", domains: ["*.identrust.com"], totalExecutionTime: 2334, totalOccurrences: 1 }, { name: "Ido", category: "customer-success", domains: ["*.idio.co"], totalExecutionTime: 2222, totalOccurrences: 12 }, { name: "Ignition One", category: "marketing", domains: ["*.searchignite.com"] }, { name: "ImageShack", category: "content", domains: ["*.yfrog.com"] }, { name: "Imagen Studio", category: "utility", domains: ["*.telephonesky.com"] }, { name: "Imagini Holdings", category: "ad", domains: ["*.vdna-assets.com"] }, {
    name: "Img Safe", category: "content", domains: ["*.imgsafe.org"] }, { name: "Imgur", category: "utility", domains: ["*.imgur.com"], totalExecutionTime: 3538, totalOccurrences: 30 }, { name: "Impact Radius", category: "ad", domains: ["*.impactradius-event.com", "*.impactradius-go.com", "*.7eer.net", "d3cxv97fi8q177.cloudfront.net", "*.evyy.net", "*.ojrq.net", "utt.impactcdn.com", "*.sjv.io"], examples: ["a.impactradius-go.com", "microsoft-uk.evyy.net"], totalExecutionTime: 612310, totalOccurrences: 4274 }, { name: "Improve Digital", category: "ad", domains: ["*.360yield.com"], totalExecutionTime: 28784, totalOccurrences: 732 }, { name: "Improvely", category: "analytics", domains: ["*.iljmp.com"], totalExecutionTime: 129, totalOccurrences: 3 }, { name: "InMobi", category: "ad", domains: ["*.inmobi.com"], totalExecutionTime: 24607375, totalOccurrences: 126087 }, { name: "InSkin Media", category: "ad", domains: ["*.inskinad.com", "*.inskinmedia.com"] }, { name: "Inbenta", category: "c\
ustomer-success", domains: ["*.inbenta.com"], totalExecutionTime: 3923, totalOccurrences: 7 }, { name: "Incisive Media", category: "content", domains: ["*.incisivemedia.com"] }, { name: "Indeed", category: "content", domains: ["*.indeed.com"], totalExecutionTime: 81347, totalOccurrences: 55 }, { name: "Index Exchange", company: "WPP", category: "ad", domains: ["*.casalemedia.com", "*.indexww.com"], totalExecutionTime: 892351, totalOccurrences: 32324 }, { name: "Indoona", category: "other", domains: ["*.indoona.com"] }, { name: "Infectious Media", category: "ad", domains: ["*.impdesk.com", "*.impressiondesk.com", "*.inmz.net"] }, { name: "Inference Mobile", category: "ad", domains: ["*.inferencemobile.com"] }, { name: "Infinity Tracking", category: "analytics", domains: ["*.infinity-tracking.net"], totalExecutionTime: 24308, totalOccurrences: 250 }, { name: "Infoline", category: "analytics", domains: ["*.ioam.de"], totalExecutionTime: 8983, totalOccurrences: 95 }, { name: "Infolinks", category: "\
ad", domains: ["*.infolinks.com"], totalExecutionTime: 7995389, totalOccurrences: 5950 }, { name: "Infopark", category: "hosting", domains: ["*.scrvt.com"] }, { name: "Infusionsoft", category: "ad", domains: ["*.infusionsoft.com"], totalExecutionTime: 345182, totalOccurrences: 723 }, { name: "Ink", category: "ad", domains: ["*.inktad.com"] }, { name: "Inktel Contact Center Solutions", company: "Inktel", category: "customer-success", domains: ["*.inktel.com"] }, { name: "Inneractive", category: "ad", domains: ["*.inner-active.mobi"] }, { name: "Innovid", category: "ad", homepage: "https://www.innovid.com/", domains: ["*.innovid.com"], examples: ["ag.innovid.com", "rtr.innovid.com"], totalExecutionTime: 115267, totalOccurrences: 1363 }, { name: "Insight Express", category: "analytics", domains: ["*.insightexpressai.com"], totalExecutionTime: 1, totalOccurrences: 2 }, { name: "Insipio", category: "other", domains: ["*.insipio.com"] }, { name: "Inspectlet", category: "analytics", domains: [
    "*.inspectlet.com"], totalExecutionTime: 7622183, totalOccurrences: 5346 }, { name: "Instansive", category: "utility", domains: ["*.instansive.com"] }, { name: "Instart", homepage: "https://www.instart.com/", category: "utility", domains: ["*.insnw.net"] }, { name: "Instembedder", category: "content", domains: ["*.instaembedder.com"] }, { name: "Instinctive", category: "ad", domains: ["*.instinctiveads.com"] }, { name: "Intelligent Reach", category: "ad", domains: ["*.ist-track.com"] }, { name: "Intent HQ", category: "analytics", domains: ["*.intenthq.com"] }, { name: "Intent IQ", category: "ad", domains: ["*.intentiq.com"], totalExecutionTime: 48447, totalOccurrences: 1146 }, { name: "Intercept Interactive", category: "ad", domains: ["*.undertone.com"], totalExecutionTime: 2293921, totalOccurrences: 21012 }, { name: "Interest Graph", company: "AOL", category: "ad", domains: ["*.gravity.com"] }, { name: "Internet Brands", category: "content", domains: ["*.ibpxl.com"] }, { name: "In\
terpublic Group", category: "ad", domains: ["*.mbww.com"] }, { name: "Interstate", category: "analytics", domains: ["*.interstateanalytics.com"] }, { name: "Interview", category: "analytics", domains: ["*.efm.me"] }, { name: "Intilery", category: "customer-success", domains: ["*.intilery-analytics.com"] }, { name: "Investis", category: "utility", domains: ["*.investis.com"], totalExecutionTime: 244162, totalOccurrences: 282 }, { name: "Investis Flife", category: "hosting", domains: ["*.quartalflife.com"] }, { name: "Invodo", category: "ad", domains: ["*.invodo.com"], examples: ["e.invodo.com"] }, { name: "iSite", category: "analytics", domains: ["*.isitetv.com"], examples: ["static.isitetv.com", "events.isitetv.com"] }, { name: "Issue", category: "content", domains: ["*.issue.by"] }, { name: "J.D. Williams & Co", category: "content", domains: ["*.drct2u.com"] }, { name: "Janrain", category: "analytics", domains: ["*.janrain.com", "*.janrainbackplane.com", "*.rpxnow.com", "d3hmp0045zy3c\
s.cloudfront.net"], totalExecutionTime: 4006, totalOccurrences: 21 }, { name: "Jellyfish", category: "ad", domains: ["*.jellyfish.net"] }, { name: "JetStream", category: "content", domains: ["*.xlcdn.com"] }, { name: "JingDong", category: "content", domains: ["*.3.com", "*.jd.com"], totalExecutionTime: 119043, totalOccurrences: 84 }, { name: "Jivox", category: "ad", domains: ["*.jivox.com"], totalExecutionTime: 31166, totalOccurrences: 65 }, { name: "Jobvite", category: "content", domains: ["*.jobvite.com"], totalExecutionTime: 6667, totalOccurrences: 4 }, { name: "Johnston Press", category: "content", domains: ["*.johnstonpress.co.uk", "*.jpress.co.uk"] }, { name: "Join the Dots (Research)", category: "social", domains: ["*.jtdiscuss.com"] }, { name: "JotForm", category: "utility", domains: ["*.jotformpro.com"] }, { name: "JuicyAds", category: "ad", domains: ["*.juicyads.com"], totalExecutionTime: 543292, totalOccurrences: 2092 }, { name: "JustPremium", category: "ad", domains: ["*.ne\
t.net"], examples: ["d2nvliyzbo36lk.cloudfrontd2nvliyzbo36lk.cloudfront.net.net"] }, { name: "JustPremium Ads", company: "JustPremium", category: "ad", domains: ["*.justpremium.com"], totalExecutionTime: 1061, totalOccurrences: 35 }, { name: "JustUno", category: "ad", domains: ["*.justuno.com", "d2j3qa5nc37287.cloudfront.net"], totalExecutionTime: 773949, totalOccurrences: 1448 }, { name: "KINX (Korea Internet Neutral eXchange)", category: "other", domains: ["*.kinxcdn.com"], totalExecutionTime: 1433, totalOccurrences: 4 }, { name: "KISSmetrics", category: "analytics", domains: ["*.kissmetrics.com", "doug1izaerwt3.cloudfront.net", "dsyszv14g9ymi.cloudfront.net"], totalExecutionTime: 3896, totalOccurrences: 46 }, { name: "Kaizen Platform", category: "analytics", domains: ["*.kaizenplatform.net"], examples: ["cdn.kaizenplatform.net", "log-v4.kaizenplatform.net"], totalExecutionTime: 85284, totalOccurrences: 183 }, { name: "Kakao", category: "social", domains: ["*.daum.net", "*.daumcdn.ne\
t"], totalExecutionTime: 38351047, totalOccurrences: 62730 }, { name: "Kaltura Video Platform", company: "Kaltura", category: "content", domains: ["*.kaltura.com"], examples: ["cdnsecakmi.kaltura.com"], totalExecutionTime: 2164237, totalOccurrences: 1017 }, { name: "Kameleoon", homepage: "https://www.kameleoon.com/", category: "analytics", domains: ["*.kameleoon.com", "*.kameleoon.eu", "*.kameleoon.io"], examples: ["data.kameleoon.io", "kdm3fpv6il.kameleoon.eu"], totalExecutionTime: 2217218, totalOccurrences: 2337 }, { name: "Kampyle", category: "analytics", domains: ["*.kampyle.com"], totalExecutionTime: 413304, totalOccurrences: 702 }, { name: "Kantar", category: "analytics", domains: ["*.sesamestats.com"] }, { name: "Kargo", category: "marketing", domains: ["*.kargo.com"], totalExecutionTime: 48285, totalOccurrences: 1135 }, { name: "KARTE", company: "Plaid", homepage: "https://karte.io/", category: "marketing", domains: ["*.karte.io"], examples: ["static.karte.io", "t.karte.io"], totalExecutionTime: 1712123,
    totalOccurrences: 1729 }, { name: "Kauli", category: "ad", domains: ["*.kau.li"] }, { name: "Keen", company: "Keen", homepage: "https://keen.io/", category: "analytics", domains: ["*.keen.io", "d26b395fwzu5fz.cloudfront.net"], totalExecutionTime: 24210, totalOccurrences: 416 }, { name: "Kelkoo", category: "hosting", domains: ["*.kelkoo.com"] }, { name: "Kenshoo", category: "marketing", domains: ["*.xg4ken.com"], totalExecutionTime: 710, totalOccurrences: 18 }, { name: "Key CDN", category: "utility", domains: ["*.kxcdn.com"], totalExecutionTime: 4814875, totalOccurrences: 10025 }, { name: "Keynote", company: "Dynatrace", category: "analytics", domains: ["*.keynote.com"] }, { name: "Keywee", category: "ad", domains: ["*.keywee.co"], totalExecutionTime: 44984, totalOccurrences: 259 }, { name: "Kiosked", category: "ad", domains: ["*.kiosked.com"], totalExecutionTime: 343355, totalOccurrences: 173 }, { name: "Klarna", category: "utility", domains: ["*.klarna.com"], totalExecutionTime: 1374032,
    totalOccurrences: 10759 }, { name: "Klaviyo", category: "ad", domains: ["*.klaviyo.com"], totalExecutionTime: 113130218, totalOccurrences: 161289 }, { name: "Klevu Search", company: "Klevu", category: "utility", domains: ["*.klevu.com"], totalExecutionTime: 1124647, totalOccurrences: 1463 }, { name: "Klick2Contact", category: "customer-success", domains: ["*.klick2contact.com"] }, { name: "Knight Lab", company: "Northwestern University", category: "utility", domains: ["*.knightlab.com"], totalExecutionTime: 350550, totalOccurrences: 448 }, { name: "Kodajo", category: "other", domains: ["*.kodajo.com"] }, { name: "Komoona", category: "ad", domains: ["*.komoona.com"] }, { name: "Korrelate", company: "JD Power", category: "analytics", domains: ["*.korrelate.net"] }, { name: "LKQD", category: "ad", domains: ["*.lkqd.net"] }, { name: "Layer0", category: "cdn", domains: ["*.layer0.co"], examples: ["rum.layer0.co"] }, { name: "Layershift", category: "hosting", domains: ["109.109.138.174"] },
    { name: "Lead Forensics", category: "ad", domains: ["*.200summit.com", "*.baw5tracker.com", "*.business-path-55.com", "*.bux1le001.com", "*.central-core-7.com", "*.direct-azr-78.com", "*.explore-123.com", "*.forensics1000.com", "*.gldsta-02-or.com", "*.green-bloc9.com", "*.lansrv040.com", "*.lead-123.com", "*.leadforensics.com", "*.mavic852.com", "*.mon-com-net.com", "*.peak-ip-54.com", "*.snta0034.com", "*.svr-prc-01.com", "*.syntace-094.com", "*.tghbn12.com", "*.trail-web.com", "*.web-01-gbl.com", "*.web-cntr-07.com", "*.trackdiscovery.net"], examples: ["www.baw5tracker.com", "www.lansrv040.com", "www.mon-com-net.com", "www.peak-ip-54.com", "www.tghbn12.com", "www.web-01-gbl.com"], totalExecutionTime: 45938, totalOccurrences: 307 }, { name: "Lead Intelligence", company: "Magnetise Solutions", category: "ad", domains: ["*.leadintelligence.co.uk"] }, { name: "LeadLander", category: "analytics", domains: ["*.formalyzer.com", "*.trackalyzer.com"] }, { name: "Leaflet", category: "util\
ity", domains: ["*.leafletjs.com"], totalExecutionTime: 3668, totalOccurrences: 69 }, { name: "LeasdBoxer", company: "LeadBoxer", category: "ad", domains: ["*.leadboxer.com"], totalExecutionTime: 15328, totalOccurrences: 118 }, { name: "LeaseWeb", homepage: "https://www.leaseweb.com/", category: "cdn", domains: ["*.lswcdn.net", "*.leasewebcdn.com"] }, { name: "Leboncoin", category: "content", domains: ["*.leboncoin.fr"] }, { name: "Lengow", category: "hosting", domains: ["*.lengow.com"] }, { name: "Lessbuttons", category: "social", domains: ["*.lessbuttons.com"] }, { name: "Letter Press", category: "ad", domains: ["*.getletterpress.com"] }, { name: "Level 3 Communications", category: "utility", domains: ["footprint.net"] }, { name: "Level3", category: "other", domains: ["secure.footprint.net"] }, { name: "Lifestreet Media", category: "social", domains: ["*.lfstmedia.com"] }, { name: "LiftSuggest", category: "analytics", domains: ["d2blwevgjs7yom.cloudfront.net"] }, { name: "Ligatus", category: "\
ad", domains: ["*.ligadx.com"] }, { name: "LightStep", category: "analytics", domains: ["*.lightstep.com"] }, { name: "LightWidget", category: "utility", domains: ["*.lightwidget.com"], totalExecutionTime: 1825559, totalOccurrences: 9383 }, { name: "Likelihood", company: "LIkeihood", category: "hosting", domains: ["*.likelihood.com"], examples: ["client.likelihood.com"] }, { name: "LikeShop", company: "Dash Hudson", category: "content", domains: ["likeshop.me"], examples: ["likeshop.me"] }, { name: "LINE Corporation", category: "ad", domains: ["*.line-scdn.net", "*.line.me"], examples: ["d.line-scdn.net", "tr.line.me"], totalExecutionTime: 3858282, totalOccurrences: 26881 }, { name: "Linkcious", category: "analytics", domains: ["*.linkcious.com"] }, { name: "Linking Mobile", category: "ad", domains: ["*.linkingmobile.com"] }, { name: "LittleData", category: "analytics", homepage: "https://www.littledata.io/", domains: ["*.littledata.io"], examples: ["transactions.littledata.io"], totalExecutionTime: 832,
    totalOccurrences: 1 }, { name: "LiveBurst", category: "ad", domains: ["*.liveburst.com"] }, { name: "LiveClicker", category: "ad", domains: ["*.liveclicker.net"] }, { name: "LiveHelpNow", category: "customer-success", domains: ["*.livehelpnow.net"], totalExecutionTime: 284671, totalOccurrences: 819 }, { name: "LiveInternet", category: "analytics", domains: ["*.yadro.ru"] }, { name: "LiveJournal", category: "social", domains: ["*.livejournal.com", "*.livejournal.net"], totalExecutionTime: 63532309, totalOccurrences: 9109 }, { name: "LivePerson", category: "customer-success", homepage: "https://www.liveperson.com/", domains: ["*.liveperson.com", "*.look.io", "*.liveperson.net", "*.lpsnmedia.net"], totalExecutionTime: 1930619, totalOccurrences: 2544 }, { name: "LiveRail", company: "Facebook", category: "ad", domains: ["*.liverail.com", "*.lrcdn.net"], examples: ["scontent.lrcdn.net"] }, { name: "LiveTex", category: "customer-success", domains: ["*.livetex.ru"], totalExecutionTime: 476954,
    totalOccurrences: 1911 }, { name: "Livefyre", category: "content", domains: ["*.fyre.co", "*.livefyre.com"] }, { name: "Living Map Company", category: "utility", domains: ["*.livingmap.com"] }, { name: "Local World", category: "content", domains: ["*.thelocalpeople.co.uk"] }, { name: "LockerDome", category: "analytics", domains: ["*.lockerdome.com"], totalExecutionTime: 244, totalOccurrences: 3 }, { name: "Logentries", company: "Rapid", category: "utility", domains: ["*.logentries.com"], examples: ["js.logentries.com"] }, { name: "Logicalis", category: "analytics", domains: ["*.trovus.co.uk"] }, { name: "LoginRadius", company: "LoginRadius", homepage: "https://www.loginradius.com/", category: "ad", domains: ["*.loginradius.com", "*.lrcontent.com"], examples: ["config.lrcontent.com"], totalExecutionTime: 15746, totalOccurrences: 131 }, { name: "LongTail Ad Solutions", category: "ad", domains: ["*.jwpcdn.com", "*.jwplatform.com", "*.jwplayer.com", "*.jwpltx.com", "*.jwpsrv.com", "*.l\
ongtailvideo.com"], totalExecutionTime: 4531393, totalOccurrences: 5572 }, { name: "Loop Commerce", category: "other", domains: ["*.loopassets.net"] }, { name: "Loop11", category: "analytics", domains: ["*.loop11.com"], totalExecutionTime: 22278, totalOccurrences: 28 }, { name: "LoopMe", category: "ad", domains: ["*.loopme.biz", "*.loopme.com", "*.vntsm.com", "*.loopme.me"], totalExecutionTime: 2112781, totalOccurrences: 11752 }, { name: "Looper", category: "content", domains: ["*.looper.com"] }, { name: "Loyalty Point", category: "ad", domains: ["*.loyaltypoint.pl"] }, { name: "LoyaltyLion", category: "ad", domains: ["*.loyaltylion.com", "*.loyaltylion.net", "dg1f2pfrgjxdq.cloudfront.net"], totalExecutionTime: 2971522, totalOccurrences: 4114 }, { name: "Luma Tag", category: "analytics", domains: ["*.lumatag.co.uk"] }, { name: "Lumesse", category: "content", domains: ["*.recruitmentplatform.com"] }, { name: "Luminate", category: "ad", domains: ["*.luminate.com"] }, { name: "Lynchpin An\
alytics", category: "analytics", domains: ["*.lypn.net"] }, { name: "Lyris", category: "ad", domains: ["*.clicktracks.com"] }, { name: "Lytics", category: "ad", domains: ["*.lytics.io"], totalExecutionTime: 272463, totalOccurrences: 857 }, { name: "MEC WebTrack", company: "MEC", category: "ad", domains: ["*.e-webtrack.net"] }, { name: "MECLABS Institute", category: "analytics", domains: ["*.meclabs.com", "*.meclabsdata.com"] }, { name: "MLveda", category: "utility", domains: ["*.mlveda.com"], examples: ["www.mlveda.com"], totalExecutionTime: 109345, totalOccurrences: 229 }, { name: "Macromill", company: "Macromill", category: "analytics", homepage: "https://group.macromill.com/", domains: ["*.macromill.com"], examples: ["img.macromill.com/js/us000131vfg/4000000570-56/lognos.js"], totalExecutionTime: 5731, totalOccurrences: 9 }, { name: "Macropod BugHerd", company: "Macropod", category: "utility", domains: ["*.bugherd.com"], examples: ["www.bugherd.com"], totalExecutionTime: 512091, totalOccurrences: 3523 },
    { name: "Madison Logic", category: "marketing", domains: ["*.ml314.com"], totalExecutionTime: 101, totalOccurrences: 3 }, { name: "Madmetrics", company: "Keyade", category: "analytics", domains: ["*.keyade.com"] }, { name: "Magnetic", category: "ad", domains: ["*.domdex.com", "d3ezl4ajpp2zy8.cloudfront.net"] }, { name: "Magnetic Platform", company: "Magnetic", category: "ad", domains: ["*.magnetic.is"] }, { name: "MailMunch", category: "ad", domains: ["*.mailmunch.co"], totalExecutionTime: 1414543, totalOccurrences: 19969 }, { name: "MailPlus", category: "ad", domains: ["*.mailplus.nl"], totalExecutionTime: 83524, totalOccurrences: 304 }, { name: "Mapbox", category: "utility", domains: ["*.mapbox.com"], totalExecutionTime: 13815633, totalOccurrences: 19555 }, { name: "Maptive", category: "utility", domains: ["*.maptive.com"] }, { name: "Marcaria.com", category: "other", domains: ["*.gooo.al"] }, { name: "Marchex", category: "analytics", domains: ["*.voicestar.com", "*.marchex.io"],
    totalExecutionTime: 1378181, totalOccurrences: 7390 }, { name: "Mark and Mini", category: "ad", domains: ["*.markandmini.com"], examples: ["www.markandmini.com"] }, { name: "Marker", category: "utility", domains: ["*.marker.io"], examples: ["edge.marker.io"], totalExecutionTime: 2331726, totalOccurrences: 1722 }, { name: "Marketing Dashboards", company: "GroupM", category: "analytics", domains: ["*.m-decision.com"] }, { name: "Marketizator", category: "analytics", domains: ["*.marketizator.com"] }, { name: "Marketplace Web Service", company: "Amazon", category: "other", domains: ["*.ssl-images-amazon.com"], totalExecutionTime: 234709, totalOccurrences: 451 }, { name: "Mashable", category: "social", domains: ["*.mshcdn.com"] }, { name: "MatchWork", category: "utility", domains: ["*.matchwork.com"] }, { name: "MathJax", category: "utility", domains: ["*.mathjax.org"], totalExecutionTime: 84751, totalOccurrences: 743 }, { name: "Mather Economics", category: "analytics", domains: ["*.m\
atheranalytics.com"], totalExecutionTime: 262501, totalOccurrences: 507 }, { name: "MaxCDN Enterprise", company: "MaxCDN", category: "utility", domains: ["*.netdna-cdn.com", "*.netdna-ssl.com"] }, { name: "MaxMind", category: "utility", domains: ["*.maxmind.com"], totalExecutionTime: 855332, totalOccurrences: 831 }, { name: "MaxPoint Interactive", category: "ad", domains: ["*.mxptint.net"], totalExecutionTime: 20140, totalOccurrences: 23834 }, { name: "Maxsi", category: "analytics", domains: ["*.evisitanalyst.com"] }, { name: "Maxymiser", category: "analytics", domains: ["*.maxymiser.net, maxymiser.hs.llnwd.net"] }, { name: "McAffee", category: "utility", domains: ["*.mcafeesecure.com", "*.scanalert.com"] }, { name: "Measured", category: "analytics", domains: ["*.measured.com"], examples: ["tag.measured.com"], homepage: "https://www.measured.com/" }, { name: "Media IQ", category: "analytics", domains: ["*.mediaiqdigital.com"] }, { name: "Media Management Technologies", category: "ad", domains: [
    "*.speedshiftmedia.com"], totalExecutionTime: 27147, totalOccurrences: 161 }, { name: "Media Temple", category: "hosting", domains: ["*.goodlayers2.com"] }, { name: "Mediabong", category: "ad", domains: ["*.mediabong.net"] }, { name: "Mediahawk", category: "analytics", domains: ["*.mediahawk.co.uk"], totalExecutionTime: 51393, totalOccurrences: 239 }, { name: "Mediahub", category: "ad", domains: ["*.hubverifyandoptimize.com", "*.projectwatchtower.com"] }, { name: "Mediasyndicator", category: "ad", domains: ["*.creativesyndicator.com"] }, { name: "Medium", category: "content", domains: ["*.medium.com"], totalExecutionTime: 216923262, totalOccurrences: 17027 }, { name: "Meetrics", category: "ad", domains: ["*.de.com", "*.meetrics.net", "*.mxcdn.net"], examples: ["research.de.com"], totalExecutionTime: 102809, totalOccurrences: 63 }, { name: "Mega", company: "Mega Information Technology", category: "other", domains: ["*.mgcdn.com"] }, { name: "Melt", category: "ad", domains: ["*.meltd\
sp.com", "*.mesp.com"] }, { name: "Meltwater Group", category: "customer-success", domains: ["*.meltwaternews.com"] }, { name: "Meme", category: "ad", domains: ["*.viewwonder.com"] }, { name: "MentAd", category: "ad", domains: ["*.mentad.com"] }, { name: "Mention Me", category: "ad", domains: ["*.mention-me.com"], examples: ["tag.mention-me.com"], totalExecutionTime: 15233, totalOccurrences: 44 }, { name: "Merchant Equipment Store", category: "utility", domains: ["*.merchantequip.com"], totalExecutionTime: 268, totalOccurrences: 1 }, { name: "Merchenta", category: "customer-success", domains: ["*.merchenta.com"] }, { name: "Merkle Digital Data Exchange", company: "Merkle", category: "ad", domains: ["*.brilig.com"] }, { name: "Merkle Paid Search", company: "Merkle", category: "ad", domains: ["*.rkdms.com"], totalExecutionTime: 69291, totalOccurrences: 407 }, { name: "Met Office", category: "content", domains: ["*.metoffice.gov.uk"], totalExecutionTime: 15029, totalOccurrences: 19 }, { name: "\
Meta Broadcast", category: "social", domains: ["*.metabroadcast.com"], examples: ["voila.metabroadcast.com"] }, { name: "Michael Associates", category: "ad", domains: ["*.checktestsite.com"], examples: ["www.checktestsite.com"] }, { name: "Michelin", category: "content", domains: ["*.viamichelin.com"], totalExecutionTime: 8087, totalOccurrences: 7 }, { name: "Microad", category: "ad", domains: ["*.microad.jp"], totalExecutionTime: 14626755, totalOccurrences: 23909 }, { name: "Microsoft Certificate Services", company: "Microsoft", category: "utility", domains: ["*.msocsp.com"] }, { name: "Microsoft Hosted Libs", company: "Microsoft", category: "cdn", domains: ["*.aspnetcdn.com"], examples: ["ajax.aspnetcdn.com"], totalExecutionTime: 4562478, totalOccurrences: 20042 }, { name: "Microsoft XBox Live", company: "Microsoft", category: "marketing", domains: ["*.xboxlive.com"] }, { name: "Mightypop", category: "ad", domains: ["*.mightypop.ca"] }, { name: "Mika Tuupola", category: "utility", domains: [
    "*.appelsiini.net"] }, { name: "Millennial Media", category: "ad", domains: ["*.jumptap.com"] }, { name: "Mirror Image Internet", category: "utility", domains: ["*.miisolutions.net"] }, { name: "Mobify", category: "utility", domains: ["*.mobify.com", "*.mobify.net"] }, { name: "Mobile Nations", category: "social", domains: ["*.mobilenations.com"] }, { name: "Mobivate", category: "ad", domains: ["*.mobivatebulksms.com"] }, { name: "Momondo", category: "content", domains: ["*.momondo.dk"] }, { name: "Momondo Group", category: "content", domains: ["*.momondogrouo.com", "*.momondogroup.com"] }, { name: "Monarch Ads", category: "ad", domains: ["*.monarchads.com"] }, { name: "Monetate", category: "analytics", domains: ["*.monetate.net"], totalExecutionTime: 260345, totalOccurrences: 599 }, { name: "MonetizeMore", category: "ad", domains: ["*.m2.ai"], totalExecutionTime: 8896, totalOccurrences: 47 }, { name: "Monitor", company: "Econda", category: "analytics", domains: ["*.econda-monitor.\
de"], examples: ["www.econda-monitor.de"] }, { name: "Monkey Frog Media", category: "content", domains: ["*.monkeyfrogmedia.com"] }, { name: "Monotype", category: "cdn", domains: ["*.fonts.com", "*.fonts.net"], totalExecutionTime: 729465, totalOccurrences: 3185 }, { name: "Moore-Wilson", category: "ad", domains: ["*.mwdev.co.uk"] }, { name: "Moovweb", category: "utility", domains: ["*.moovweb.net"] }, { name: "Mopinion", category: "analytics", domains: ["*.mopinion.com"], totalExecutionTime: 171681, totalOccurrences: 177 }, { name: "MotionPoint", category: "other", domains: ["*.convertlanguage.com"], totalExecutionTime: 1843, totalOccurrences: 35 }, { name: "Mouse3K", category: "analytics", domains: ["*.mouse3k.com"] }, { name: "MouseStats", category: "analytics", domains: ["*.mousestats.com"] }, { name: "Mouseflow", homepage: "https://mouseflow.com/", category: "analytics", domains: ["*.mouseflow.com"], totalExecutionTime: 331345, totalOccurrences: 6786 }, { name: "Movable Ink", category: "\
analytics", domains: ["*.micpn.com"], totalExecutionTime: 439979, totalOccurrences: 4949 }, { name: "MovingIMAGE24", category: "content", domains: ["*.edge-cdn.net"] }, { name: "Moxielinks", category: "ad", domains: ["*.moxielinks.com"] }, { name: "Moz Recommended Companies", company: "Moz", category: "analytics", domains: ["d2eeipcrcdle6.cloudfront.net"] }, { name: "Mozilla", category: "utility", domains: ["*.mozilla.org"], examples: ["aus5.mozilla.org"], totalExecutionTime: 21085, totalOccurrences: 32 }, { name: "Multiview", category: "content", domains: ["*.multiview.com", "*.track-mv.com"], totalExecutionTime: 8831, totalOccurrences: 58 }, { name: "Mux", category: "analytics", domains: ["*.litix.io"], totalExecutionTime: 91580, totalOccurrences: 249 }, { name: "MyAds", company: "MyBuys", category: "analytics", domains: ["*.veruta.com"] }, { name: "MyBuys", category: "analytics", domains: ["*.mybuys.com"] }, { name: "MyFonts", category: "cdn", domains: ["*.myfonts.net"], totalExecutionTime: 78,
    totalOccurrences: 4 }, { name: "MyRegistry", category: "other", domains: ["*.myregistry.com"], totalExecutionTime: 164086, totalOccurrences: 621 }, { name: "MySpace", company: "Specific Media", category: "social", domains: ["*.myspace.com"] }, { name: "Mynewsdesk", category: "utility", domains: ["*.mynewsdesk.com"], totalExecutionTime: 564, totalOccurrences: 31 }, { name: "NAVIS", category: "content", domains: ["*.navistechnologies.info"] }, { name: "NCC Group Real User Monitoring", company: "NCC Group", category: "analytics", domains: ["*.nccgroup-webperf.com"], examples: ["beacon-rumlive.rum.nccgroup-webperf.com", "config-rumlive.rum.nccgroup-webperf.com", "script-rumlive.rum.nccgroup-webperf.com"] }, { name: "NEORY Marketing Cloud", company: "NEORY", category: "marketing", domains: ["*.ad-srv.net"], totalExecutionTime: 10976, totalOccurrences: 240 }, { name: "Nanigans", category: "ad", domains: ["*.nanigans.com"] }, { name: "Nano Interactive", category: "ad", domains: ["*.audien\
cemanager.de"], totalExecutionTime: 780, totalOccurrences: 10 }, { name: "Nanorep", company: "Nanorep Technologies", category: "customer-success", domains: ["*.nanorep.com"] }, { name: "Narrative", category: "ad", domains: ["*.narrative.io"], totalExecutionTime: 1228, totalOccurrences: 2 }, { name: "Native Ads", category: "ad", domains: ["*.nativeads.com"] }, { name: "Nativo", category: "ad", domains: ["*.postrelease.com"], totalExecutionTime: 28260, totalOccurrences: 35852 }, { name: "Navegg", category: "ad", domains: ["*.navdmp.com"], totalExecutionTime: 51915, totalOccurrences: 805 }, { name: "NaviStone", category: "ad", domains: ["*.murdoog.com"] }, { name: "Naytev", category: "analytics", domains: ["*.naytev.com"] }, { name: "Needle", category: "analytics", domains: ["*.needle.com"] }, { name: "Neiman Marcus", category: "content", domains: ["*.ctscdn.com"] }, { name: "Nend", category: "ad", domains: ["*.nend.net"] }, { name: "Neodata", category: "ad", domains: ["*.neodatagroup.com"],
    totalExecutionTime: 12827, totalOccurrences: 86 }, { name: "Net Applications", category: "analytics", domains: ["*.hitsprocessor.com"] }, { name: "Net Reviews", category: "analytics", domains: ["*.avis-verifies.com"], examples: ["www.avis-verifies.com"], totalExecutionTime: 1143140, totalOccurrences: 2442 }, { name: "NetAffiliation", company: "Kwanco", category: "ad", domains: ["*.metaffiliation.com"], totalExecutionTime: 18519, totalOccurrences: 127 }, { name: "NetDirector", company: "G-Forces Web Management", category: "other", domains: ["*.netdirector.co.uk"], totalExecutionTime: 3931, totalOccurrences: 1 }, { name: "NetFlix", category: "content", domains: ["*.nflxext.com", "*.nflximg.net"], totalExecutionTime: 4364, totalOccurrences: 5 }, { name: "Nielsen NetRatings SiteCensus", company: "The Nielsen Company", homepage: "http://www.nielsen-online.com/intlpage.html", category: "analytics", domains: ["*.imrworldwide.com"], totalExecutionTime: 6840006, totalOccurrences: 19525 }, {
    name: "NetSeer", category: "ad", domains: ["*.netseer.com", "*.ns-cdn.com"] }, { name: "NetShelter", company: "Ziff Davis Tech", category: "ad", domains: ["*.netshelter.net"] }, { name: "Netmining", company: "Ignition One", category: "ad", domains: ["*.netmng.com"], totalExecutionTime: 7746, totalOccurrences: 92 }, { name: "Netop", category: "customer-success", domains: ["*.netop.com"] }, { name: "Network Solutions", category: "utility", domains: ["*.netsolssl.com", "*.networksolutions.com"], examples: ["ocsp.netsolssl.com"], totalExecutionTime: 2415, totalOccurrences: 2 }, { name: "Neustar AdAdvisor", company: "Neustar", category: "ad", domains: ["*.adadvisor.net"] }, { name: "New Approach Media", category: "ad", domains: ["*.newapproachmedia.co.uk"] }, { name: "NewShareCounts", category: "social", domains: ["*.newsharecounts.com"] }, { name: "News", category: "social", domains: ["*.news.com.au", "*.newsanalytics.com.au", "*.newsapi.com.au", "*.newscdn.com.au", "*.newsdata.com.au",
    "*.newsdiscover.com.au", "*.news-static.com"], totalExecutionTime: 69261, totalOccurrences: 46 }, { name: "Newsquest", category: "content", domains: ["*.newsquestdigital.co.uk"] }, { name: "Newzulu", category: "content", domains: ["*.filemobile.com", "*.projects.fm"] }, { name: "Nexcess.Net", category: "hosting", domains: ["*.nexcesscdn.net"] }, { name: "Nexstar Media Group", category: "ad", domains: ["*.yashi.com"] }, { name: "NextPerf", company: "Rakuten Marketing", category: "ad", domains: ["*.nxtck.com"] }, { name: "Nine.com.au", company: "Nine Digital", category: "content", domains: ["*.9msn.com.au"] }, { name: "NitroSell", category: "hosting", domains: ["*.nitrosell.com"] }, { name: "Nochex", category: "utility", domains: ["*.nochex.com"] }, { name: "Northern &amp; Shell Media Group", category: "content", domains: ["*.northernandshell.co.uk"] }, { name: "Nosto", category: "analytics", domains: ["*.nosto.com"], totalExecutionTime: 703736, totalOccurrences: 1189 }, { name: "Now\
 Interact", category: "analytics", domains: ["*.nowinteract.com"] }, { name: "Numberly", company: "1000mercis", category: "ad", domains: ["*.mmtro.com", "*.nzaza.com"], totalExecutionTime: 1827, totalOccurrences: 19 }, { name: "NyaConcepts", category: "analytics", domains: ["*.xclusive.ly"] }, { name: "O2", category: "other", domains: ["*.o2.co.uk"], examples: ["servedby.o2.co.uk"] }, { name: "GoDaddy", homepage: "https://www.godaddy.com/", category: "utility", domains: ["*.godaddy.com", "*.wsimg.com"], examples: ["ocsp.godaddy.com", "seal.godaddy.com"], totalExecutionTime: 94698135, totalOccurrences: 110342 }, { name: "ObjectPlanet", category: "analytics", domains: ["*.easypolls.net"], totalExecutionTime: 28470, totalOccurrences: 70 }, { name: "OhMyAd", category: "ad", domains: ["*.ohmyad.co"], examples: ["pr.ohmyad.co"] }, { name: "Okas Concepts", category: "utility", domains: ["*.okasconcepts.com"], totalExecutionTime: 1483515, totalOccurrences: 661 }, { name: "Okta", category: "ana\
lytics", domains: ["*.okta.com"], totalExecutionTime: 1464920, totalOccurrences: 3542 }, { name: "Olapic", category: "content", domains: ["*.photorank.me"], totalExecutionTime: 115, totalOccurrences: 2 }, { name: "Ometria", category: "analytics", domains: ["*.ometria.com"], totalExecutionTime: 16630, totalOccurrences: 204 }, { name: "Omniconvert", category: "analytics", domains: ["*.omniconvert.com", "d2tgfbvjf3q6hn.cloudfront.net", "d3vbj265bmdenw.cloudfront.net"], totalExecutionTime: 85855, totalOccurrences: 381 }, { name: "Omniroot", company: "Verizon", category: "utility", domains: ["*.omniroot.com"], examples: ["ocsp.omniroot.com", "vassg142.ocsp.omniroot.com"] }, { name: "OnAudience", company: "Cloud Technologies", category: "ad", domains: ["*.onaudience.com"] }, { name: "OnScroll", category: "ad", domains: ["*.onscroll.com"] }, { name: "OnState", category: "ad", domains: ["*.onstate.co.uk"] }, { name: "OnYourMap", category: "utility", domains: ["*.onyourmap.com"] }, { name: "One\
 by AOL", company: "AOL", category: "ad", domains: ["*.adtechjp.com", "*.adtech.de"], totalExecutionTime: 1140, totalOccurrences: 17 }, { name: "One by AOL:Mobile", company: "AOL", category: "ad", domains: ["*.nexage.com"], examples: ["ads.nexage.com", "hb.nexage.com"] }, { name: "OneAll", category: "analytics", domains: ["*.oneall.com"], totalExecutionTime: 104501, totalOccurrences: 623 }, { name: "OneSoon", category: "analytics", domains: ["*.adalyser.com"], totalExecutionTime: 33037, totalOccurrences: 437 }, { name: "OneTag", category: "ad", domains: ["*.onetag-sys.com"] }, { name: "Onet", category: "ad", domains: ["*.onet.pl"], totalExecutionTime: 531334, totalOccurrences: 760 }, { name: "Online Rewards", company: "Mastercard", category: "ad", domains: ["*.loyaltygateway.com"] }, { name: "Online republic", category: "content", domains: ["*.imallcdn.net"], totalExecutionTime: 67122, totalOccurrences: 58 }, { name: "Ooyala", category: "ad", domains: ["*.ooyala.com"] }, { name: "OpenT\
able", company: "Priceline Group", category: "content", domains: ["*.opentable.com", "*.opentable.co.uk", "*.toptable.co.uk"], examples: ["www.toptable.co.uk"], totalExecutionTime: 412090, totalOccurrences: 4314 }, { name: "OpenX Ad Exchange", company: "OpenX Technologies", category: "ad", domains: ["*.liftdna.com"] }, { name: "Opinion Stage", category: "analytics", domains: ["*.opinionstage.com"], examples: ["www.opinionstage.com"], totalExecutionTime: 113206, totalOccurrences: 145 }, { name: "OpinionBar", category: "analytics", domains: ["*.opinionbar.com"] }, { name: "Opta", company: "Perform Group", category: "content", domains: ["*.opta.net"], totalExecutionTime: 302785, totalOccurrences: 272 }, { name: "OptiMonk", category: "ad", domains: ["*.optimonk.com"], totalExecutionTime: 10318415, totalOccurrences: 10615 }, { name: "Optilead", category: "analytics", domains: ["*.dyn-img.com", "*.leadcall.co.uk", "*.optilead.co.uk"] }, { name: "Optimatic", category: "ad", domains: ["*.optim\
atic.com"], examples: ["synch.optimatic.com"] }, { name: "Optimise Media Group", category: "utility", domains: ["*.omguk.com"], totalExecutionTime: 6691, totalOccurrences: 41 }, { name: "Optimost", company: "OpenText", category: "ad", domains: ["*.optimost.com"] }, { name: "Optimove", company: "Mobius Solutions", category: "analytics", domains: ["*.optimove.net"], totalExecutionTime: 22679, totalOccurrences: 293 }, { name: "Optorb", category: "ad", domains: ["*.optorb.com"] }, { name: "Oracle", category: "marketing", domains: ["*.custhelp.com", "*.eloqua.com", "*.en25.com", "*.estara.com", "*.instantservice.com"], totalExecutionTime: 684920, totalOccurrences: 569 }, { name: "Oracle Recommendations On Demand", company: "Oracle", category: "analytics", domains: ["*.atgsvcs.com"], totalExecutionTime: 8696, totalOccurrences: 96 }, { name: "Oracle Responsys", company: "Oracle", category: "marketing", domains: ["*.adrsp.net", "*.responsys.net"] }, { name: "Order Security-VOID", company: "Ord\
er Security", category: "analytics", domains: ["*.order-security.com"] }, { name: "Oriel", category: "ad", domains: ["*.oriel.io"] }, { name: "Outbrain", homepage: "https://www.outbrain.com/", category: "ad", domains: ["*.outbrain.com", "*.outbrainimg.com", "*.visualrevenue.com"], totalExecutionTime: 3373858, totalOccurrences: 13287 }, { name: "OverStream", company: "Coull", category: "ad", domains: ["*.coull.com"], examples: ["ex1.coull.com"] }, { name: "Overdrive", category: "content", domains: ["*.contentreserve.com"] }, { name: "Overstock", category: "utility", domains: ["*.ostkcdn.com"] }, { name: "OwnerIQ", category: "ad", domains: ["*.owneriq.net"], totalExecutionTime: 305561, totalOccurrences: 2173 }, { name: "OzCart", category: "utility", domains: ["*.ozcart.com.au"] }, { name: "Ozone Media", category: "ad", domains: ["*.adadyn.com"] }, { name: "Loqate", company: "Loqate", category: "other", domains: ["*.pcapredict.com", "*.postcodeanywhere.co.uk"], totalExecutionTime: 136866,
    totalOccurrences: 777 }, { name: "PEER 1 Hosting", category: "hosting", domains: ["*.peer1.com"] }, { name: "PERFORM", category: "content", domains: ["*.performgroup.com"] }, { name: "PICnet", category: "hosting", domains: ["*.nonprofitsoapbox.com"] }, { name: "Pacnet", company: "Telstra", category: "other", domains: ["*.cdndelivery.net"], examples: ["682968324.r.cdndelivery.net"] }, { name: "Pagefair", category: "ad", domains: ["*.pagefair.com", "*.pagefair.net"] }, { name: "Pagely", category: "other", domains: ["*.optnmstr.com"], totalExecutionTime: 99314, totalOccurrences: 487 }, { name: "Pagesuite", category: "ad", domains: ["*.pagesuite-professional.co.uk"], totalExecutionTime: 12, totalOccurrences: 1 }, { name: "Pardot", category: "marketing", domains: ["*.pardot.com"], totalExecutionTime: 73880, totalOccurrences: 550 }, { name: "Parse.ly", category: "analytics", domains: ["*.parsely.com", "d1z2jf7jlzjs58.cloudfront.net"], totalExecutionTime: 1122662, totalOccurrences: 5204 },
    { name: "Pay per Click", company: "Eysys", category: "ad", domains: ["*.eysys.com"], examples: ["pla27.eysys.com"] }, { name: "PayPal Ads", category: "ad", domains: ["*.where.com"] }, { name: "Peaks & Pies", category: "analytics", domains: ["*.bunchbox.co"] }, { name: "PebblePost", category: "ad", domains: ["*.pbbl.co"], totalExecutionTime: 147945, totalOccurrences: 725 }, { name: "Peerius", category: "analytics", domains: ["*.peerius.com"] }, { name: "Peermap", company: "IMRG", category: "analytics", domains: ["peermapcontent.affino.com"] }, { name: "Penske Media", category: "content", domains: ["*.pmc.com"] }, { name: "Penton", category: "utility", domains: ["*.pisces-penton.com"] }, { name: "Pepper", category: "ad", domains: ["*.peppercorp.com"] }, { name: "Perfect Audience", company: "Marin Software", category: "ad", domains: ["*.prfct.co", "*.marinsm.com", "*.perfectaudience.com"], totalExecutionTime: 405, totalOccurrences: 7 }, { name: "Perfect Market", category: "ad", domains: [
    "*.perfectmarket.com"] }, { name: "Perfect Privacy", category: "other", domains: ["*.suitesmart.com"] }, { name: "Perform Group", category: "content", domains: ["*.performfeeds.com", "*.premiumtv.co.uk"] }, { name: "Performio", category: "ad", domains: ["*.performax.cz"], examples: ["ut.performax.cz"], totalExecutionTime: 117591, totalOccurrences: 337 }, { name: "PerimeterX Bot Defender", company: "PerimeterX", category: "utility", domains: ["*.perimeterx.net", "*.pxi.pub"], totalExecutionTime: 172605, totalOccurrences: 68 }, { name: "Periscope", category: "content", domains: ["*.periscope.tv"] }, { name: "Permutive", category: "ad", domains: ["*.permutive.com", "d3alqb8vzo7fun.cloudfront.net"], totalExecutionTime: 1406714, totalOccurrences: 1124 }, { name: "Petametrics", category: "analytics", domains: ["*.petametrics.com"] }, { name: "PhotoBucket", category: "content", domains: ["*.photobucket.com"], totalExecutionTime: 2383529, totalOccurrences: 338 }, { name: "Picreel", category: "\
analytics", domains: ["*.pcrl.co", "*.picreel.com"], totalExecutionTime: 45437, totalOccurrences: 300 }, { name: "Pictela (AOL)", category: "analytics", domains: ["*.pictela.net"] }, { name: "PistonHeads", category: "social", domains: ["*.pistonheads.com"] }, { name: "Piwik", category: "analytics", domains: ["*.drtvtracker.com", "*.piwikpro.com", "*.raac33.net"], totalExecutionTime: 2813, totalOccurrences: 32 }, { name: "Pixalate", category: "utility", domains: ["*.adrta.com"], totalExecutionTime: 4187, totalOccurrences: 13 }, { name: "Pixlee", category: "social", domains: ["*.pixlee.com"], totalExecutionTime: 137281, totalOccurrences: 341 }, { name: "Placed", category: "analytics", domains: ["*.placed.com"], totalExecutionTime: 691, totalOccurrences: 1 }, { name: "Planning-inc", category: "analytics", domains: ["*.planning-inc.co.uk"] }, { name: "PlayAd Media Group", category: "ad", domains: ["*.youplay.se"] }, { name: "Playbuzz", category: "hosting", domains: ["*.playbuzz.com"], totalExecutionTime: 58184,
    totalOccurrences: 89 }, { name: "Pleenq", category: "ad", domains: ["*.pleenq.com"] }, { name: "Plentific", category: "content", domains: ["*.plentific.com"] }, { name: "PluginDetect", category: "other", domains: ["dtlilztwypawv.cloudfront.net"] }, { name: "Po.st", company: "RadiumOne", category: "utility", domains: ["*.po.st"], totalExecutionTime: 178, totalOccurrences: 3 }, { name: "Pointpin", category: "utility", domains: ["*.pointp.in"] }, { name: "Pointroll (Garnett)", category: "ad", domains: ["*.pointroll.com"] }, { name: "Polar", homepage: "https://polar.me/", category: "ad", domains: ["*.polarmobile.ca", "*.mediaeverywhere.com", "*.mediavoice.com", "*.plrsrvcs.com", "*.polarcdn-engine.com", "*.polarcdn-meraxes.com", "*.polarcdn-pentos.com", "*.polarcdn-static.com", "*.polarcdn-terrax.com", "*.polarcdn.com", "*.polarmobile.com", "*.poweredbypolar.com", "*.mediaconductor.me", "*.polaracademy.me"], totalExecutionTime: 66280, totalOccurrences: 223 }, { name: "PollDaddy (Automa\
ttic)", category: "ad", domains: ["static.polldaddy.com", "*.poll.fm"], totalExecutionTime: 4752, totalOccurrences: 37 }, { name: "Polldaddy", company: "Automattic", category: "analytics", domains: ["polldaddy.com", "*.polldaddy.com"], totalExecutionTime: 294207, totalOccurrences: 2715 }, { name: "Polyfill service", company: "Polyfill.io", category: "other", domains: ["*.polyfill.io"] }, { name: "MegaPopAds", category: "ad", domains: ["*.megapopads.com"] }, { name: "Populis", category: "ad", domains: ["*.populisengage.com"] }, { name: "Postimage.org", category: "content", domains: ["*.postimg.org"] }, { name: "PowerFront", category: "hosting", domains: ["*.inside-graph.com"], totalExecutionTime: 220331, totalOccurrences: 370 }, { name: "PowerReviews", category: "analytics", domains: ["*.powerreviews.com"], totalExecutionTime: 1208993, totalOccurrences: 1324 }, { name: "Powerlinks.com", category: "ad", domains: ["*.powerlinks.com"] }, { name: "Press+", category: "ad", domains: ["*.pipol\
.com", "*.ppjol.com", "*.ppjol.net"] }, { name: "PressArea", category: "utility", domains: ["*.pressarea.com"], examples: ["www.pressarea.com"] }, { name: "Pretio Interactive", category: "ad", domains: ["*.pretio.in"] }, { name: "Prezi", category: "utility", domains: ["*.prezi.com"], totalExecutionTime: 72394, totalOccurrences: 79 }, { name: "PriceGrabber", category: "content", domains: ["*.pgcdn.com", "*.pricegrabber.com"] }, { name: "PriceRunner", category: "content", domains: ["*.pricerunner.com"], totalExecutionTime: 200, totalOccurrences: 6 }, { name: "PrintFriendly", category: "utility", domains: ["*.printfriendly.com"], totalExecutionTime: 39464, totalOccurrences: 381 }, { name: "Privy", category: "ad", domains: ["*.privy.com", "*.privymktg.com"], totalExecutionTime: 14992809, totalOccurrences: 18961 }, { name: "Proclivity Media", category: "analytics", domains: ["*.pswec.com"] }, { name: "Profitshare", category: "ad", domains: ["*.profitshare.ro"], totalExecutionTime: 60087, totalOccurrences: 194 },
    { name: "Programattik", category: "ad", domains: ["*.programattik.com"], totalExecutionTime: 95, totalOccurrences: 9 }, { name: "Proper Media", category: "content", domains: ["*.proper.io"], totalExecutionTime: 253672, totalOccurrences: 109 }, { name: "Property Week", category: "content", domains: ["*.propertyweek.com"], examples: ["www.propertyweek.com"] }, { name: "Provide Support", category: "customer-success", domains: ["*.providesupport.com"], totalExecutionTime: 79281, totalOccurrences: 989 }, { name: "Proweb Uk", category: "hosting", domains: ["*.proweb.net"] }, { name: "Proximic (ComScore)", category: "ad", domains: ["*.proximic.com"] }, { name: "Psyma", category: "ad", domains: ["*.psyma.com"], totalExecutionTime: 2496, totalOccurrences: 5 }, { name: "PubFactory", company: "Safari Books Online", category: "content", domains: ["*.pubfactory.com"] }, { name: "PubNation", category: "ad", domains: ["*.pubnation.com"], totalExecutionTime: 625439, totalOccurrences: 132 }, { name: "\
Publicidad.net", category: "ad", domains: ["*.publicidad.tv"] }, { name: "PublishThis", company: "Ultra Unlimited", category: "ad", domains: ["*.publishthis.com"] }, { name: "Pulse Insights", category: "analytics", domains: ["*.pulseinsights.com"], totalExecutionTime: 5757, totalOccurrences: 53 }, { name: "Pulsepoint", category: "marketing", domains: ["*.displaymarketplace.com"] }, { name: "Purch", category: "ad", domains: ["*.bestofmedia.com", "*.purch.com"], examples: ["ramp.purch.com"] }, { name: "Pure Chat", category: "customer-success", domains: ["*.purechat.com"], totalExecutionTime: 1129392, totalOccurrences: 3105 }, { name: "PushCrew", category: "ad", domains: ["*.pushcrew.com"], totalExecutionTime: 170011, totalOccurrences: 823 }, { name: "Q1Media", category: "ad", domains: ["*.q1media.com", "*.q1mediahydraplatform.com"] }, { name: "Qbase Software Development", category: "hosting", domains: ["*.smartwebportal.co.uk"] }, { name: "Qeryz", category: "analytics", domains: ["*.qery\
z.com"] }, { name: "Qode Interactive", category: "hosting", domains: ["*.qodeinteractive.com"], totalExecutionTime: 2503828, totalOccurrences: 147 }, { name: "Qrius", category: "social", domains: ["*.qrius.me"] }, { name: "Qualaroo", category: "analytics", domains: ["*.qualaroo.com"], totalExecutionTime: 54960, totalOccurrences: 347 }, { name: "Qualtrics", category: "analytics", domains: ["*.qualtrics.com"], totalExecutionTime: 4907219, totalOccurrences: 7134 }, { name: "Qubit", company: "Qubit", category: "analytics", domains: ["*.qubit.com", "*.qutics.com", "d3c3cq33003psk.cloudfront.net", "*.goqubit.com", "*.qubitproducts.com"], totalExecutionTime: 50060, totalOccurrences: 43 }, { name: "Qubit Deliver", company: "Qubit", category: "analytics", domains: ["d1m54pdnjzjnhe.cloudfront.net", "d22rutvoghj3db.cloudfront.net", "dd6zx4ibq538k.cloudfront.net"] }, { name: "QuestionPro", category: "analytics", domains: ["*.questionpro.com"], totalExecutionTime: 60868, totalOccurrences: 152 }, { name: "\
Queue-it", category: "other", domains: ["*.queue-it.net"], totalExecutionTime: 60031, totalOccurrences: 143 }, { name: "QuinStreet", category: "ad", domains: ["*.Quinstreet.com", "*.b2btechleadform.com", "*.qnsr.com", "*.qsstats.com"], examples: ["www.qsstats.com"] }, { name: "QuoVadis", category: "utility", domains: ["*.quovadisglobal.com"] }, { name: "Qzzr", category: "analytics", domains: ["*.movementventures.com", "*.qzzr.com"], examples: ["www.qzzr.com"] }, { name: "RapidAPI", category: "utility", domains: ["*.rapidapi.com"], examples: ["telize-v1.p.rapidapi.com"], totalExecutionTime: 4218, totalOccurrences: 2 }, { name: "RCS Media Group", category: "ad", domains: ["*.rcsadv.it"] }, { name: "REVIVVE", category: "ad", domains: ["*.revivve.com"] }, { name: "RSSinclude", category: "social", domains: ["*.rssinclude.com"] }, { name: "RTB House AdPilot", company: "RTB House", category: "ad", domains: ["*.erne.co", "*.creativecdn.com"], totalExecutionTime: 1677125, totalOccurrences: 13287 },
    { name: "RTB Media", category: "ad", domains: ["*.rtb-media.me"] }, { name: "RUN", category: "ad", domains: ["*.runadtag.com", "*.rundsp.com"] }, { name: "Rackspace", category: "hosting", domains: ["*.rackcdn.com", "*.rackspacecloud.com", "*.raxcdn.com", "*.websitetestlink.com"], totalExecutionTime: 3573460, totalOccurrences: 2624 }, { name: "RadiumOne", category: "ad", domains: ["*.gwallet.com", "*.r1-cdn.net"] }, { name: "Rakuten DC Storm", company: "Rakuten", category: "analytics", domains: ["*.dc-storm.com", "*.h4k5.com", "*.stormiq.com"] }, { name: "Rakuten LinkShare", company: "Rakuten", category: "ad", domains: ["*.linksynergy.com"], totalExecutionTime: 23285, totalOccurrences: 151 }, { name: "Rakuten Marketing", company: "Rakuten", category: "ad", domains: ["*.rakuten-static.com", "*.rmtag.com", "tag.rmp.rakuten.com"], totalExecutionTime: 462276, totalOccurrences: 3399 }, { name: "Rakuten MediaForge", company: "Rakuten", category: "ad", domains: ["*.mediaforge.com"], totalExecutionTime: 1650,
    totalOccurrences: 20 }, { name: "Rambler", company: "Rambler & Co", category: "utility", domains: ["*.rambler.ru"], totalExecutionTime: 54521084, totalOccurrences: 15831 }, { name: "Ranker", category: "content", domains: ["*.ranker.com", "*.rnkr-static.com"] }, { name: "Ravelin", category: "utility", domains: ["*.ravelin.com"] }, { name: "Raygun", category: "utility", domains: ["*.raygun.io", "*.rapidzebra.io"], totalExecutionTime: 245714, totalOccurrences: 2539 }, { name: "ReCollect", category: "utility", domains: ["*.recollect.net"], totalExecutionTime: 229879, totalOccurrences: 135 }, { name: "ReSRC", category: "utility", domains: ["*.resrc.it"] }, { name: "ReTargeter", category: "ad", domains: ["*.retargeter.com"] }, { name: "Reach Group", category: "ad", domains: ["*.redintelligence.net"], totalExecutionTime: 1449, totalOccurrences: 199 }, { name: "ReachDynamics", category: "ad", domains: ["*.rdcdn.com"] }, { name: "ReachForce", category: "ad", domains: ["*.reachforce.com"] },
    { name: "ReachLocal", category: "ad", domains: ["*.rtrk.co.nz"], examples: ["rtsys.rtrk.co.nz"] }, { name: "ReachMee", category: "content", domains: ["*.reachmee.com"], totalExecutionTime: 133135, totalOccurrences: 40 }, { name: "Reactful", category: "analytics", domains: ["*.reactful.com"], totalExecutionTime: 12497, totalOccurrences: 42 }, { name: "Realtime", company: "internet business technologies", category: "utility", domains: ["*.realtime.co"] }, { name: "Realtime Media (Brian Communications)", category: "ad", domains: ["*.rtm.com"] }, { name: "Realtime Targeting", category: "ad", domains: ["*.idtargeting.com"] }, { name: "Realytics", category: "analytics", domains: ["dcniko1cv0rz.cloudfront.net", "*.realytics.net"], totalExecutionTime: 38343, totalOccurrences: 276 }, { name: "RebelMouse", category: "ad", domains: ["*.rebelmouse.com", "*.rbl.ms"], examples: ["www.rebelmouse.com"], totalExecutionTime: 3876, totalOccurrences: 22 }, { name: "Receiptful", category: "utility", domains: [
    "*.receiptful.com"], totalExecutionTime: 58254, totalOccurrences: 361 }, { name: "Recite Me", category: "other", domains: ["*.reciteme.com"], totalExecutionTime: 22320, totalOccurrences: 142 }, { name: "RecoBell", category: "analytics", domains: ["*.recobell.io"] }, { name: "Recommend", category: "analytics", domains: ["*.recommend.pro"] }, { name: "Red Eye International", category: "ad", domains: ["*.pajmc.com"] }, { name: "Redfish Group", category: "ad", domains: ["*.wmps.com"] }, { name: "Reevoo", category: "analytics", domains: ["*.reevoo.com"], totalExecutionTime: 87323, totalOccurrences: 133 }, { name: "Refersion", category: "ad", domains: ["*.refersion.com"], totalExecutionTime: 564360, totalOccurrences: 2170 }, { name: "Refined Ads", category: "ad", domains: ["*.refinedads.com"] }, { name: "Reflektion", category: "analytics", domains: ["*.reflektion.com", "d26opx5dl8t69i.cloudfront.net"] }, { name: "Reflow", company: "Scenestealer", category: "ad", domains: ["*.reflow.tv"] },
    { name: "Reklama", category: "ad", domains: ["*.o2.pl", "*.wp.pl"], examples: ["dot.wp.pl", "px.o2.pl", "px.wp.pl"], totalExecutionTime: 846563, totalOccurrences: 1054 }, { name: "Relevad ReleStar", company: "Relevad", category: "ad", domains: ["*.relestar.com"] }, { name: "Remarketing Pixel", company: "Adsterra Network", category: "ad", domains: ["*.datadbs.com", "*.remarketingpixel.com"] }, { name: "Remintrex", company: "SmartUp Venture", category: "ad", domains: ["*.remintrex.com"] }, { name: "Republer", category: "ad", domains: ["*.republer.com"], examples: ["sync.republer.com"] }, { name: "Research Now", category: "analytics", domains: ["*.researchgnow.com", "*.researchnow.com"], examples: ["tag.researchgnow.com"] }, { name: "Research Online", company: "Skills Development Scotland", category: "content", domains: ["*.researchonline.org.uk"], examples: ["www.researchonline.org.uk"] }, { name: "Resonance Insights", category: "analytics", domains: ["*.res-x.com"], totalExecutionTime: 2277,
    totalOccurrences: 20 }, { name: "Resonate Networks", category: "analytics", domains: ["*.reson8.com"], totalExecutionTime: 1739, totalOccurrences: 1 }, { name: "Response Team", category: "ad", domains: ["*.i-transactads.com"] }, { name: "ResponseTap", category: "analytics", domains: ["*.adinsight.com", "*.responsetap.com"], totalExecutionTime: 84074, totalOccurrences: 274 }, { name: "ResponsiveVoice", category: "other", domains: ["*.responsivevoice.org"], totalExecutionTime: 851397, totalOccurrences: 6863 }, { name: "Retention Science", category: "ad", domains: ["*.retentionscience.com", "d1stxfv94hrhia.cloudfront.net"], totalExecutionTime: 17276, totalOccurrences: 209 }, { name: "Revcontent", category: "content", domains: ["*.revcontent.com"], totalExecutionTime: 1153469, totalOccurrences: 1251 }, { name: "Revee", category: "ad", domains: ["*.revee.com"] }, { name: "Revenue Conduit", category: "utility", domains: ["*.revenueconduit.com"] }, { name: "RevenueMantra", category: "ad",
    domains: ["*.revenuemantra.com"] }, { name: "Reviews.co.uk", category: "analytics", domains: ["*.reviews.co.uk"], totalExecutionTime: 425151, totalOccurrences: 1883 }, { name: "Reviews.io", category: "analytics", domains: ["*.reviews.io"], totalExecutionTime: 1713955, totalOccurrences: 4516 }, { name: "Revolver Maps", category: "analytics", domains: ["*.revolvermaps.com"], totalExecutionTime: 2132297, totalOccurrences: 2305 }, { name: "Revv", category: "utility", domains: ["*.revv.co"], totalExecutionTime: 26667, totalOccurrences: 11 }, { name: "RichRelevance", category: "analytics", domains: ["*.richrelevance.com"], totalExecutionTime: 3496, totalOccurrences: 19 }, { name: "RightNow Service Cloud", company: "Oracle", category: "customer-success", domains: ["*.rightnowtech.com", "*.rnengage.com"], totalExecutionTime: 8970, totalOccurrences: 122 }, { name: "Rightster", category: "ad", domains: ["*.ads-creativesyndicator.com"] }, { name: "Riskified", category: "utility", domains: ["*\
.riskified.com"], totalExecutionTime: 373865, totalOccurrences: 1643 }, { name: "Rockerbox", category: "analytics", homepage: "https://www.rockerbox.com/", domains: ["getrockerbox.com"], examples: ["getrockerbox.com"], totalExecutionTime: 19742, totalOccurrences: 162 }, { name: "Rocket Fuel", category: "ad", domains: ["*.rfihub.com", "*.ru4.com", "*.rfihub.net", "*.ad1x.com"], totalExecutionTime: 356189, totalOccurrences: 3247 }, { name: "Rollbar", category: "utility", domains: ["*.rollbar.com", "d37gvrvc0wt4s1.cloudfront.net"], examples: ["api.rollbar.com"], totalExecutionTime: 190180, totalOccurrences: 2349 }, { name: "RomanCart", category: "utility", domains: ["*.romancart.com"], totalExecutionTime: 510, totalOccurrences: 5 }, { name: "Rondavu", category: "ad", domains: ["*.rondavu.com"] }, { name: "Roomkey", category: "content", domains: ["*.roomkey.com"], examples: ["www.roomkey.com"] }, { name: "Roost", category: "utility", domains: ["*.goroost.com"] }, { name: "Roxot", category: "\
ad", domains: ["*.rxthdr.com"] }, { name: "Roxr Software", category: "analytics", domains: ["*.getclicky.com"], totalExecutionTime: 851573, totalOccurrences: 12877 }, { name: "Rtoaster", company: "Brainpad", homepage: "https://www.brainpad.co.jp/rtoaster/", category: "marketing", domains: ["*.rtoaster.jp"], examples: ["rt.rtoaster.jp"], totalExecutionTime: 15065, totalOccurrences: 91 }, { name: "Rubikloud.com", category: "analytics", domains: ["*.rubikloud.com"] }, { name: "Ruler Analytics", company: "Ruler", category: "analytics", domains: ["*.nyltx.com", "*.ruleranalytics.com"], examples: ["www.ruleranalytics.com"], totalExecutionTime: 41074, totalOccurrences: 436 }, { name: "Runner", company: "Rambler & Co", category: "content", domains: ["*.begun.ru"], totalExecutionTime: 26, totalOccurrences: 1 }, { name: "S4M", category: "ad", domains: ["*.sam4m.com"] }, { name: "SAP Hybris Marketing Convert", company: "SAP", category: "ad", domains: ["*.seewhy.com"] }, { name: "SAS Institute", category: "\
ad", domains: ["*.aimatch.com", "*.sas.com"], totalExecutionTime: 59419, totalOccurrences: 29 }, { name: "SATORI", homepage: "https://satori.marketing/", category: "marketing", domains: ["satori.segs.jp"], examples: ["satori.segs.jp/s.js"], totalExecutionTime: 62202, totalOccurrences: 816 }, { name: "SC ShopMania Net SRL", category: "content", domains: ["*.shopmania.com"] }, { name: "SDL Media Manager", company: "SDL", category: "other", domains: ["*.sdlmedia.com"] }, { name: "SFR", category: "other", domains: ["*.sfr.fr"], examples: ["elr.sfr.fr"], totalExecutionTime: 22751, totalOccurrences: 22 }, { name: "SLI Systems", category: "utility", domains: ["*.resultslist.com", "*.resultspage.com", "*.sli-spark.com"], totalExecutionTime: 2909, totalOccurrences: 33 }, { name: "SMARTASSISTANT", company: "Smart Information Systems", category: "customer-success", domains: ["*.smartassistant.com"] }, { name: "SMARTSTREAM.TV", category: "ad", domains: ["*.smartstream.tv"] }, { name: "SPX", company: "\
Smaato", category: "ad", domains: ["*.smaato.net"], totalExecutionTime: 519, totalOccurrences: 13 }, { name: "Sabio", category: "customer-success", domains: ["*.sabio.co.uk"], examples: ["www.sabio.co.uk"] }, { name: "Sailthru", category: "analytics", domains: ["*.sail-horizon.com", "*.sail-personalize.com", "*.sail-track.com"], totalExecutionTime: 59245, totalOccurrences: 678 }, { name: "Sailthru Sightlines", company: "Sailthru", category: "marketing", domains: ["*.sailthru.com"], totalExecutionTime: 6772, totalOccurrences: 18 }, { name: "Sajari Pty", category: "utility", domains: ["*.sajari.com"], totalExecutionTime: 70019, totalOccurrences: 197 }, { name: "SaleCycle", category: "ad", domains: ["*.salecycle.com", "d16fk4ms6rqz1v.cloudfront.net", "d22j4fzzszoii2.cloudfront.net", "d30ke5tqu2tkyx.cloudfront.net", "dn1i8v75r669j.cloudfront.net"], totalExecutionTime: 146399, totalOccurrences: 641 }, { name: "Salesforce Live Agent", company: "Salesforce.com", category: "customer-success", domains: [
    "*.salesforceliveagent.com"], totalExecutionTime: 100033, totalOccurrences: 675 }, { name: "Salesforce.com", category: "ad", domains: ["*.force.com", "*.salesforce.com"], examples: ["secure.force.com"], totalExecutionTime: 1614051, totalOccurrences: 4970 }, { name: "Samba TV", company: "Samba", category: "content", domains: ["*.samba.tv"], totalExecutionTime: 1690, totalOccurrences: 7 }, { name: "Samplicio.us", category: "analytics", domains: ["*.samplicio.us"], totalExecutionTime: 1727, totalOccurrences: 5 }, { name: "Say Media", category: "ad", domains: ["*.saymedia.com"] }, { name: "Scenario", category: "analytics", domains: ["*.getscenario.com"] }, { name: "Schuh (image shard)", company: "Schuh", category: "other", domains: ["d2ob0iztsaxy5v.cloudfront.net"] }, { name: "Science Rockstars", category: "analytics", domains: ["*.persuasionapi.com"] }, { name: "ScientiaMobile", category: "analytics", domains: ["*.wurflcloud.com", "*.wurfl.io"], totalExecutionTime: 627, totalOccurrences: 3 },
    { name: "Scoota", category: "ad", domains: ["*.rockabox.co", "*.scoota.co", "d31i2625d5nv27.cloudfront.net", "dyjnzf8evxrp2.cloudfront.net"] }, { name: "ScribbleLive", category: "ad", domains: ["*.scribblelive.com"] }, { name: "SearchForce", category: "ad", domains: ["*.searchforce.net"], totalExecutionTime: 118, totalOccurrences: 3 }, { name: "SearchSpring", category: "utility", domains: ["*.searchspring.net"], totalExecutionTime: 1175588, totalOccurrences: 309 }, { name: "Searchanise", category: "analytics", domains: ["*.searchanise.com"], examples: ["www.searchanise.com"], totalExecutionTime: 63519, totalOccurrences: 420 }, { name: "Sears Holdings", category: "content", domains: ["*.shld.net"] }, { name: "Secomapp", category: "utility", domains: ["*.secomapp.com"], totalExecutionTime: 2151952, totalOccurrences: 2137 }, { name: "SecuredVisit", company: "4Cite Marketing", category: "ad", domains: ["*.securedvisit.com"], totalExecutionTime: 41054, totalOccurrences: 369 }, { name: "\
SecurityMetrics", category: "utility", domains: ["*.securitymetrics.com"], totalExecutionTime: 8413, totalOccurrences: 2 }, { name: "Segmento", category: "ad", domains: ["*.rutarget.ru"], totalExecutionTime: 17111, totalOccurrences: 226 }, { name: "Segmint", category: "analytics", domains: ["*.segmint.net"], totalExecutionTime: 14122, totalOccurrences: 109 }, { name: "Sekindo", category: "content", domains: ["*.sekindo.com"], totalExecutionTime: 376, totalOccurrences: 4 }, { name: "Seldon", category: "analytics", domains: ["*.rummblelabs.com"] }, { name: "SelectMedia International", category: "content", domains: ["*.selectmedia.asia"], totalExecutionTime: 186574, totalOccurrences: 68 }, { name: "Selligent", category: "ad", domains: ["*.emsecure.net", "*.slgnt.eu", "targetemsecure.blob.core.windows.net"], totalExecutionTime: 163886, totalOccurrences: 506 }, { name: "Sellpoints", category: "analytics", domains: ["*.sellpoints.com"] }, { name: "Semantics3", category: "analytics", domains: [
    "*.hits.io"] }, { name: "Semasio", category: "analytics", domains: ["*.semasio.net"] }, { name: "Semcasting Site Visitor Attribution", company: "Semcasting", category: "ad", domains: ["*.smartzonessva.com"] }, { name: "Sentifi", category: "social", domains: ["*.sentifi.com"] }, { name: "ServMetric", category: "analytics", domains: ["*.servmetric.com"] }, { name: "ServiceSource International", category: "marketing", domains: ["*.scoutanalytics.net"], examples: ["scout.scoutanalytics.net"] }, { name: "ServiceTick", category: "analytics", domains: ["*.servicetick.com"] }, { name: "Servo", company: "Xervo", category: "hosting", domains: ["*.onmodulus.net"] }, { name: "SessionCam", company: "ServiceTick", category: "analytics", domains: ["*.sessioncam.com", "d2oh4tlt9mrke9.cloudfront.net"] }, { name: "Seznam", category: "utility", domains: ["*.imedia.cz"], totalExecutionTime: 1323711, totalOccurrences: 6863 }, { name: "Sharethrough", category: "ad", domains: ["*.sharethrough.com"], totalExecutionTime: 46730,
    totalOccurrences: 833 }, { name: "SharpSpring", category: "marketing", domains: ["*.sharpspring.com", "*.marketingautomation.services"], totalExecutionTime: 632191, totalOccurrences: 2080 }, { name: "ShopRunner", category: "content", domains: ["*.shoprunner.com", "*.s-9.us"], totalExecutionTime: 35573, totalOccurrences: 32 }, { name: "ShopStorm", category: "utility", domains: ["*.shopstorm.com"] }, { name: "Shopatron", category: "hosting", domains: ["*.shopatron.com"] }, { name: "Shopgate", category: "utility", domains: ["*.shopgate.com"], totalExecutionTime: 15293, totalOccurrences: 25 }, { name: "ShopiMind", company: "ShopIMind", category: "ad", domains: ["*.shopimind.com"] }, { name: "Shopkeeper Tools", category: "utility", domains: ["*.shopkeepertools.com"], totalExecutionTime: 500, totalOccurrences: 6 }, { name: "Sidecar", category: "other", domains: ["*.getsidecar.com", "d3v27wwd40f0xu.cloudfront.net"] }, { name: "Sidereel", category: "analytics", domains: ["*.sidereel.com"] },
    { name: "Sift Science", category: "utility", domains: ["*.siftscience.com"], totalExecutionTime: 90167, totalOccurrences: 355 }, { name: "Signal", category: "tag-manager", domains: ["*.sitetagger.co.uk"] }, { name: "Signyfyd", category: "utility", domains: ["*.signifyd.com"], totalExecutionTime: 4752892, totalOccurrences: 2608 }, { name: "Silktide", category: "hosting", domains: ["*.silktide.com"], totalExecutionTime: 132707, totalOccurrences: 390 }, { name: "Silverpop", company: "IBM", category: "ad", domains: ["*.mkt912.com", "*.mkt922.com", "*.mkt932.com", "*.mkt941.com", "*.mkt51.net", "*.mkt61.net", "*.pages01.net", "*.pages02.net", "*.pages03.net", "*.pages04.net", "*.pages05.net"], totalExecutionTime: 4144, totalOccurrences: 58 }, { name: "Simplaex", category: "marketing", domains: ["*.simplaex.net"] }, { name: "SimpleReach", category: "analytics", domains: ["*.simplereach.com", "d8rk54i4mohrb.cloudfront.net"] }, { name: "Simplestream", category: "content", domains: ["*.simp\
lestream.com"], examples: ["player.simplestream.com"] }, { name: "Simpli.fi", category: "ad", domains: ["*.simpli.fi"], totalExecutionTime: 974218, totalOccurrences: 16378 }, { name: "Simplicity Marketing", category: "ad", domains: ["*.flashtalking.com"], totalExecutionTime: 579126, totalOccurrences: 2927 }, { name: "SinnerSchrader Deutschland", category: "ad", domains: ["*.s2Betrieb.de"] }, { name: "Sirv", category: "other", domains: ["*.sirv.com"], totalExecutionTime: 604262, totalOccurrences: 1034 }, { name: "Site Meter", category: "analytics", domains: ["*.sitemeter.com"] }, { name: "Site24x7 Real User Monitoring", company: "Site24x7", category: "analytics", domains: ["*.site24x7rum.com"], totalExecutionTime: 124283, totalOccurrences: 1007 }, { name: "SiteGainer", category: "analytics", domains: ["*.sitegainer.com", "d191y0yd6d0jy4.cloudfront.net"] }, { name: "SiteScout", company: "Centro", category: "ad", domains: ["*.pixel.ad", "*.sitescout.com"], totalExecutionTime: 256082, totalOccurrences: 3401 },
    { name: "Siteimprove", category: "utility", domains: ["*.siteimprove.com", "*.siteimproveanalytics.com"], totalExecutionTime: 28494, totalOccurrences: 361 }, { name: "Six Degrees Group", category: "hosting", domains: ["*.fstech.co.uk"] }, { name: "Skimbit", category: "ad", domains: ["*.redirectingat.com", "*.skimresources.com", "*.skimresources.net"], totalExecutionTime: 32940093, totalOccurrences: 86270 }, { name: "Skimlinks", category: "ad", domains: ["*.skimlinks.com"] }, { name: "SkyGlue Technology", category: "analytics", domains: ["*.skyglue.com"], totalExecutionTime: 2567, totalOccurrences: 24 }, { name: "SkyScanner", category: "content", domains: ["*.skyscanner.net"], examples: ["api.skyscanner.net"], totalExecutionTime: 98147, totalOccurrences: 370 }, { name: "Skybet", company: "Bonne Terre t/a Sky Vegas (Sky)", category: "other", domains: ["*.skybet.com"] }, { name: "Skype", category: "other", domains: ["*.skype.com"], totalExecutionTime: 121901, totalOccurrences: 625 }, {
    name: "Slate Group", category: "content", domains: ["*.cdnslate.com"] }, { name: "SlimCut Media Outstream", company: "SlimCut Media", category: "ad", domains: ["*.freeskreen.com"] }, { name: "Smart Insight Tracking", company: "Emarsys", category: "analytics", domains: ["*.scarabresearch.com"], totalExecutionTime: 361811, totalOccurrences: 1779 }, { name: "Smart AdServer", category: "ad", domains: ["*.01net.com", "*.sascdn.com", "*.sasqos.com", "*.smartadserver.com"], examples: ["securite.01net.com"], totalExecutionTime: 22356737, totalOccurrences: 107812 }, { name: "SmartFocus", category: "analytics", domains: ["*.emv2.com", "*.emv3.com", "*.predictiveintent.com", "*.smartfocus.com", "*.themessagecloud.com"] }, { name: "Smarter Click", category: "ad", domains: ["*.smct.co", "*.smarterclick.co.uk"], totalExecutionTime: 761, totalOccurrences: 11 }, { name: "SmarterHQ", category: "analytics", domains: ["*.smarterhq.io", "d1n00d49gkbray.cloudfront.net", "*.smarterremarketer.net"], totalExecutionTime: 2636,
    totalOccurrences: 28 }, { name: "Smarttools", category: "customer-success", domains: ["*.smartertrack.com"] }, { name: "Smartzer", category: "ad", domains: ["*.smartzer.com"] }, { name: "Snack Media", category: "content", domains: ["*.snack-media.com"], totalExecutionTime: 575613, totalOccurrences: 423 }, { name: "Snacktools", category: "ad", domains: ["*.bannersnack.com"], totalExecutionTime: 162327, totalOccurrences: 303 }, { name: "SnapEngage", category: "customer-success", domains: ["*.snapengage.com"], totalExecutionTime: 147012, totalOccurrences: 1038 }, { name: "SnapWidget", category: "content", domains: ["*.snapwidget.com"] }, { name: "Soasta", category: "analytics", domains: ["*.lognormal.net"] }, { name: "SociableLabs", category: "ad", domains: ["*.sociablelabs.net", "*.sociablelabs.com"] }, { name: "Social Annex", category: "customer-success", domains: ["*.socialannex.com"] }, { name: "SocialShopWave", category: "social", domains: ["*.socialshopwave.com"], totalExecutionTime: 4962079,
    totalOccurrences: 3720 }, { name: "Socialphotos", category: "social", domains: ["*.slpht.com"], totalExecutionTime: 12590, totalOccurrences: 120 }, { name: "Sociomantic Labs", company: "DunnHumby", category: "ad", domains: ["*.sociomantic.com"] }, { name: "SodaHead", category: "analytics", domains: ["*.sodahead.com"], examples: ["pollware-cdn.sodahead.com"] }, { name: "Softwebzone", category: "hosting", domains: ["*.softwebzone.com"], examples: ["www.softwebzone.com"] }, { name: "Sojern", category: "marketing", domains: ["*.sojern.com"], totalExecutionTime: 2086952, totalOccurrences: 4422 }, { name: "Sokrati", category: "marketing", domains: ["*.sokrati.com"] }, { name: "Sonobi", category: "ad", domains: ["*.sonobi.com"], totalExecutionTime: 4682222, totalOccurrences: 81682 }, { name: "Sooqr Search", company: "Sooqr", category: "utility", domains: ["*.sooqr.com"], totalExecutionTime: 176199, totalOccurrences: 396 }, { name: "Sophus3", category: "analytics", domains: ["*.s3ae.com", "\
*.sophus3.com"], totalExecutionTime: 5605, totalOccurrences: 11 }, { name: "Sorenson Media", category: "content", domains: ["*.sorensonmedia.com"] }, { name: "Sortable", category: "ad", domains: ["*.deployads.com"] }, { name: "Sotic", category: "hosting", domains: ["*.sotic.net", "*.soticservers.net"] }, { name: "Soundest", category: "ad", domains: ["*.soundestlink.com", "*.soundest.net"], totalExecutionTime: 835, totalOccurrences: 102 }, { name: "Sourcepoint", category: "ad", domains: ["*.decenthat.com", "*.fallingfalcon.com", "*.summerhamster.com", "d2lv4zbk7v5f93.cloudfront.net", "d3qxwzhswv93jk.cloudfront.net"], examples: ["www.decenthat.com", "www.fallingfalcon.com", "www.summerhamster.com"] }, { name: "SourceKnowledge", homepage: "https://www.sourceknowledge.com", category: "ad", domains: ["*.provenpixel.com"], totalExecutionTime: 505, totalOccurrences: 8 }, { name: "SpaceNet", category: "hosting", domains: ["*.nmm.de"] }, { name: "Sparkflow", company: "Intercept Interactive", category: "\
ad", domains: ["*.sparkflow.net"] }, { name: "Specific Media", category: "ad", domains: ["*.specificmedia.com", "*.adviva.net", "*.specificclick.net"] }, { name: "Spicy", company: "Data-Centric Alliance", category: "ad", domains: ["*.sspicy.ru"] }, { name: "Spoke", category: "customer-success", domains: ["*.121d8.com"] }, { name: "Spongecell", category: "ad", domains: ["*.spongecell.com"] }, { name: "Spot.IM", category: "social", domains: ["*.spot.im", "*.spotim.market"], totalExecutionTime: 192547, totalOccurrences: 342 }, { name: "SpotXchange", category: "ad", domains: ["*.spotxcdn.com", "*.spotxchange.com", "*.spotx.tv"] }, { name: "SpringServer", category: "ad", domains: ["*.springserve.com"], totalExecutionTime: 1192823, totalOccurrences: 1432 }, { name: "Spylight", category: "other", domains: ["*.spylight.com"] }, { name: "SreamAMG", company: "StreamAMG", category: "other", domains: ["*.streamamg.com"], totalExecutionTime: 85506, totalOccurrences: 62 }, { name: "StackAdapt", category: "\
ad", domains: ["*.stackadapt.com"], totalExecutionTime: 1338506, totalOccurrences: 14912 }, { name: "StackExchange", category: "social", domains: ["*.sstatic.net"], totalExecutionTime: 187262, totalOccurrences: 217 }, { name: "Stackla PTY", category: "social", domains: ["*.stackla.com"], totalExecutionTime: 271026, totalOccurrences: 175 }, { name: "Stailamedia", category: "ad", domains: ["*.stailamedia.com"] }, { name: "Stamped.io", category: "analytics", domains: ["*.stamped.io"], totalExecutionTime: 1665115, totalOccurrences: 12460 }, { name: "Starfield Services Root Certificate Authority", company: "Starfield Technologies", category: "utility", domains: ["*.starfieldtech.com", "ss2.us", "*.ss2.us"], examples: ["ocsp.starfieldtech.com"], totalExecutionTime: 18156, totalOccurrences: 39 }, { name: "Starfield Technologies", category: "utility", domains: ["*.websiteprotection.com"], examples: ["seals.websiteprotection.com"] }, { name: "StatCounter", category: "analytics", domains: ["*.st\
atcounter.com"], totalExecutionTime: 5427381, totalOccurrences: 50769 }, { name: "Statful", category: "analytics", domains: ["*.statful.com"] }, { name: "Steelhouse", category: "ad", domains: ["*.steelhousemedia.com"], totalExecutionTime: 66172, totalOccurrences: 452 }, { name: "Steepto", category: "ad", domains: ["*.steepto.com"], totalExecutionTime: 170, totalOccurrences: 1 }, { name: "StellaService", category: "analytics", domains: ["*.stellaservice.com"] }, { name: "StickyADS.tv", category: "ad", domains: ["*.stickyadstv.com"], totalExecutionTime: 2198555, totalOccurrences: 1462 }, { name: "STINGRAY", company: "FlexOne", category: "ad", domains: ["*.impact-ad.jp"], examples: ["y.one.impact-ad.jp"], totalExecutionTime: 1261721, totalOccurrences: 9742 }, { name: "Storify", company: "Adobe Systems", category: "social", domains: ["*.storify.com"] }, { name: "Storm Tag Manager", company: "Rakuten", category: "tag-manager", domains: ["*.stormcontainertag.com"] }, { name: "Storygize", category: "\
ad", domains: ["*.storygize.net"], examples: ["www.storygize.net"], totalExecutionTime: 60468, totalOccurrences: 154 }, { name: "Strands", category: "utility", domains: ["*.strands.com"] }, { name: "StreamRail", category: "ad", domains: ["*.streamrail.com", "*.streamrail.net"] }, { name: "StrikeAd", category: "ad", domains: ["*.strikead.com"] }, { name: "Struq", company: "Quantcast", category: "ad", domains: ["*.struq.com"] }, { name: "StrÃ¶er Digital Media", category: "ad", domains: ["*.stroeerdigitalmedia.de"] }, { name: "StumbleUpon", category: "content", domains: ["*.stumble-upon.com", "*.stumbleupon.com"], totalExecutionTime: 18653, totalOccurrences: 17 }, { name: "Sub2 Technologies", category: "analytics", domains: ["*.sub2tech.com"], totalExecutionTime: 6667, totalOccurrences: 31 }, { name: "SublimeSkinz", category: "ad", domains: ["*.ayads.co"], totalExecutionTime: 339456, totalOccurrences: 772 }, { name: "Sumo Logic", category: "utility", domains: ["*.sumologic.com"], totalExecutionTime: 19322,
    totalOccurrences: 9 }, { name: "Sunday Times Driving", category: "content", domains: ["*.driving.co.uk"] }, { name: "SundaySky", category: "ad", domains: ["*.sundaysky.com", "dds6m601du5ji.cloudfront.net"], totalExecutionTime: 7435, totalOccurrences: 10 }, { name: "Sunrise Integration", category: "utility", domains: ["*.sunriseintegration.com"] }, { name: "Supertool Network Technology", category: "analytics", domains: ["*.miaozhen.com"], totalExecutionTime: 6166, totalOccurrences: 49 }, { name: "Survata", category: "analytics", domains: ["*.survata.com"] }, { name: "SurveyGizmo", category: "analytics", domains: ["*.surveygizmo.eu"], examples: ["www.surveygizmo.eu"] }, { name: "SurveyMonkey", category: "analytics", domains: ["*.surveymonkey.com"], totalExecutionTime: 28632, totalOccurrences: 250 }, { name: "Survicate", category: "analytics", domains: ["*.survicate.com"], totalExecutionTime: 933283, totalOccurrences: 3008 }, { name: "Sweet Tooth", category: "ad", domains: ["*.sweetto\
oth.io"], totalExecutionTime: 2673, totalOccurrences: 41 }, { name: "Swiftype", category: "utility", domains: ["*.swiftype.com", "*.swiftypecdn.com"], totalExecutionTime: 383638, totalOccurrences: 982 }, { name: "Switch Concepts", category: "ad", domains: ["*.switchadhub.com"] }, { name: "SwitchAds", company: "Switch Concepts", category: "ad", domains: ["*.switchads.com"] }, { name: "Swogo", category: "analytics", domains: ["*.xsellapp.com"] }, { name: "Swoop", category: "ad", domains: ["*.swoop.com"], totalExecutionTime: 13511, totalOccurrences: 75 }, { name: "Symantec", category: "utility", domains: ["*.norton.com", "*.symantec.com", "*.symcb.com", "*.symcd.com"], examples: ["extended-validation-ssl.websecurity.symantec.com"], totalExecutionTime: 184600, totalOccurrences: 363 }, { name: "Syncapse", category: "social", domains: ["*.clickable.net"] }, { name: "Synergetic", category: "ad", domains: ["*.synergetic.ag"] }, { name: "Synthetix", category: "customer-success", domains: ["*.sy\
n-finity.com", "*.synthetix-ec1.com", "*.synthetix.com"], examples: ["www.synthetix-ec1.com"], totalExecutionTime: 6284, totalOccurrences: 27 }, { name: "Syte", category: "other", domains: ["*.syteapi.com"], examples: ["cdn.syteapi.com"], totalExecutionTime: 109749, totalOccurrences: 106 }, { name: "TINT", category: "content", domains: ["*.71n7.com", "d33w9bm0n1egwm.cloudfront.net", "d36hc0p18k1aoc.cloudfront.net", "d3l7tj34e9fc43.cloudfront.net"], examples: ["www.71n7.com"] }, { name: "TNS (Kantar Group)", category: "analytics", domains: ["*.tns-counter.ru"] }, { name: "TRUSTe", category: "utility", domains: ["*.truste.com"], totalExecutionTime: 123425, totalOccurrences: 613 }, { name: "TV Genius", company: "Ericcson Media Services", category: "content", domains: ["*.tvgenius.net"] }, { name: "TVSquared", category: "ad", domains: ["*.tvsquared.com"], totalExecutionTime: 548667, totalOccurrences: 4082 }, { name: "TVTY", category: "ad", domains: ["*.distribeo.com", "*.ogigl.com"] }, { name: "\
Tactics bvba", category: "hosting", domains: ["*.influid.co"] }, { name: "Tag Inspector", company: "InfoTrust", category: "analytics", domains: ["d22xmn10vbouk4.cloudfront.net"], totalExecutionTime: 51386, totalOccurrences: 171 }, { name: "TagCommander", category: "tag-manager", domains: ["*.commander1.com", "*.tagcommander.com"], totalExecutionTime: 448164, totalOccurrences: 1509 }, { name: "Tagboard", category: "social", domains: ["*.tagboard.com"], totalExecutionTime: 106499, totalOccurrences: 49 }, { name: "Taggstar", company: "Taggstar UK", category: "ad", domains: ["*.taggstar.com"], totalExecutionTime: 16168, totalOccurrences: 68 }, { name: "Tail Target", company: "Tail", category: "ad", domains: ["*.tailtarget.com"], totalExecutionTime: 176612, totalOccurrences: 873 }, { name: "Tailored", category: "other", domains: ["d24qm7bu56swjs.cloudfront.net", "dw3vahmen1rfy.cloudfront.net", "*.tailored.to"] }, { name: "Taleo Enterprise Cloud Service", company: "Oracle", category: "conten\
t", domains: ["*.taleo.net"], totalExecutionTime: 4178, totalOccurrences: 68 }, { name: "Talkable", category: "ad", domains: ["*.talkable.com", "d2jjzw81hqbuqv.cloudfront.net"], examples: ["www.talkable.com"], totalExecutionTime: 154019, totalOccurrences: 601 }, { name: "TapSense", category: "ad", domains: ["*.tapsense.com"] }, { name: "Tapad", category: "ad", domains: ["*.tapad.com"], totalExecutionTime: 976, totalOccurrences: 54 }, { name: "Teads", category: "ad", domains: ["*.teads.tv"], totalExecutionTime: 2295585, totalOccurrences: 7565 }, { name: "Team Internet Tonic", company: "Team Internet", category: "ad", domains: ["*.dntrax.com"] }, { name: "TechTarget", category: "content", domains: ["*.techtarget.com", "*.ttgtmedia.com"], totalExecutionTime: 11857, totalOccurrences: 24 }, { name: "Technorati", company: "Synacor", category: "ad", domains: ["*.technoratimedia.com"], totalExecutionTime: 5382653, totalOccurrences: 27186 }, { name: "Teedhaze", category: "content", domains: ["*\
.fuel451.com"] }, { name: "Tell Apart", category: "analytics", domains: ["*.tellapart.com", "*.tellaparts.com"] }, { name: "Tencent", category: "content", domains: ["*.qq.com", "*.ywxi.net"], totalExecutionTime: 2265040, totalOccurrences: 8726 }, { name: "Thanx Media", category: "utility", domains: ["*.hawksearch.info"] }, { name: "Thawte", category: "utility", domains: ["*.thawte.com"], examples: ["ocsp.thawte.com", "seal.thawte.com"], totalExecutionTime: 307, totalOccurrences: 1 }, { name: "Thesis", category: "analytics", homepage: "https://www.thesistesting.com/", domains: ["*.ttsep.com"], examples: ["thix.ttsep.com"] }, { name: "The AA", category: "ad", domains: ["*.adstheaa.com"] }, { name: "The ADEX", category: "ad", domains: ["*.theadex.com"], totalExecutionTime: 13554, totalOccurrences: 129 }, { name: "The Best Day", category: "social", domains: ["*.thebestday.com"] }, { name: "The Filter", company: "Exabre", category: "analytics", domains: ["*.thefilter.com"] }, { name: "The G\
uardian", category: "analytics", domains: ["*.ophan.co.uk"] }, { name: "The Hut Group", category: "content", domains: ["*.thcdn.com"], totalExecutionTime: 497181, totalOccurrences: 281 }, { name: "The Numa Group", category: "other", domains: ["*.hittail.com"] }, { name: "The Publisher Desk", category: "ad", domains: ["*.206ads.com", "*.publisherdesk.com"] }, { name: "The Sydney Morning Herald", company: "Fairfax Media", category: "content", domains: ["*.smh.com.au"] }, { name: "The Wall Street Jounal", category: "content", domains: ["*.wsj.net"], totalExecutionTime: 3036, totalOccurrences: 5 }, { name: "The Wall Street Journal", category: "content", domains: ["*.marketwatch.com"] }, { name: "TheFind", category: "content", domains: ["*.thefind.com"] }, { name: "Thinglink", category: "utility", domains: ["*.thinglink.com"], totalExecutionTime: 2987, totalOccurrences: 53 }, { name: "Thirdpresence", category: "ad", domains: ["*.thirdpresence.com"] }, { name: "ThreatMetrix", category: "util\
ity", domains: ["*.online-metrix.net"], totalExecutionTime: 1901757, totalOccurrences: 3530 }, { name: "Throtle", homepage: "https://throtle.io/", category: "analytics", domains: ["*.thrtle.com", "*.v12group.com"] }, { name: "TicketMaster", category: "content", domains: ["*.t-x.io", "*.tmcs.net"] }, { name: "TikTok", company: "ByteDance Ltd", homepage: "https://www.tiktok.com/en/", category: "social", domains: ["*.tiktok.com", "*.ipstatp.com"], examples: ["analytics.tiktok.com", "https://s0.ipstatp.com/ad/business/track-log.js"], totalExecutionTime: 111182189, totalOccurrences: 256224 }, { name: "Tidio Live Chat", company: "Tidio", homepage: "https://www.tidiochat.com/en/", category: "customer-success", domains: ["*.tidiochat.com"], totalExecutionTime: 26584634, totalOccurrences: 24598 }, { name: "Tiledesk Live Chat", company: "Tiledesk SRL", homepage: "https://www.tiledesk.com/", category: "customer-success", domains: ["*.tiledesk.com"], examples: ["widget.tiledesk.com"], totalExecutionTime: 253744,
    totalOccurrences: 103 }, { name: "Time", category: "content", domains: ["*.timeinc.net"] }, { name: "Time2Perf", category: "ad", domains: ["*.time2perf.com"] }, { name: "TinyURL", category: "utility", domains: ["*.tinyurl.com"] }, { name: "Tivo", category: "analytics", domains: ["*.rovicorp.com"] }, { name: "Tom&Co", category: "hosting", domains: ["*.tomandco.uk"] }, { name: "Toms Native Ads", company: "Purch", category: "ad", domains: ["*.natoms.com"] }, { name: "ToneMedia", category: "ad", domains: ["*.clickfuse.com"] }, { name: "Tonic", company: "Team Internet", category: "ad", domains: ["*.dntx.com"] }, { name: "Touch Commerce", category: "customer-success", domains: ["*.inq.com", "*.touchcommerce.com"], totalExecutionTime: 12673, totalOccurrences: 74 }, { name: "ToutApp", category: "ad", domains: ["*.toutapp.com"] }, { name: "TraceView", company: "Solarwinds", category: "analytics", domains: ["*.tracelytics.com", "d2gfdmu30u15x7.cloudfront.net"] }, { name: "TrackJS", category: "\
analytics", domains: ["*.trackjs.com", "d2zah9y47r7bi2.cloudfront.net"], examples: ["usage.trackjs.com"], totalExecutionTime: 2112335, totalOccurrences: 2268 }, { name: "Tradedoubler", category: "ad", domains: ["*.pvnsolutions.com", "*.tradedoubler.com"], totalExecutionTime: 31870, totalOccurrences: 165 }, { name: "Tradelab", category: "ad", domains: ["*.tradelab.fr"], totalExecutionTime: 5013, totalOccurrences: 44 }, { name: "TrafficFactory", category: "ad", domains: ["*.trafficfactory.biz"] }, { name: "TrafficHunt", category: "ad", domains: ["*.traffichunt.com"] }, { name: "TrafficStars", category: "ad", domains: ["*.trafficstars.com", "*.tsyndicate.com"], totalExecutionTime: 3435101, totalOccurrences: 7430 }, { name: "Transifex", category: "utility", domains: ["*.transifex.com"], totalExecutionTime: 193259, totalOccurrences: 546 }, { name: "Travelex", category: "utility", domains: ["*.travelex.net", "*.travelex.co.uk"], examples: ["api.travelex.net", "travelmoney.travelex.co.uk"] },
    { name: "Travelocity Canada", company: "Travelocity", category: "content", domains: ["*.travelocity.ca"], examples: ["www.travelocity.ca"] }, { name: "Travelocity USA", company: "Travelocity", category: "content", domains: ["*.travelocity.com"], examples: ["www.travelocity.com"] }, { name: "Travelzoo", category: "content", domains: ["*.travelzoo.com"] }, { name: "Treasure Data", category: "analytics", domains: ["*.treasuredata.com"], totalExecutionTime: 1404314, totalOccurrences: 14403 }, { name: "Tremor Video", category: "ad", domains: ["*.tremorhub.com", "*.videohub.tv"] }, { name: "Trialfire", category: "analytics", domains: ["*.trialfire.com"], totalExecutionTime: 44579, totalOccurrences: 198 }, { name: "Tribal Fusion", company: "Exponential Interactive", category: "ad", domains: ["*.tribalfusion.com"], totalExecutionTime: 96569, totalOccurrences: 158016 }, { name: "Triblio", category: "marketing", domains: ["*.tribl.io"] }, { name: "Triggered Messaging", company: "Fresh Releva\
nce", category: "ad", domains: ["*.triggeredmessaging.com"] }, { name: "Trinity Mirror", category: "content", domains: ["*.mirror.co.uk"], totalExecutionTime: 13841, totalOccurrences: 41 }, { name: "Trinity Mirror Digital Media", category: "social", domains: ["*.tm-aws.com", "*.icnetwork.co.uk"] }, { name: "TripAdvisor", category: "content", domains: ["*.jscache.com", "*.tacdn.com", "*.tamgrt.com", "*.tripadvisor.com", "*.viator.com", "*.tripadvisor.co.uk"], examples: ["www.jscache.com", "www.tamgrt.com"], totalExecutionTime: 749303, totalOccurrences: 2354 }, { name: "TripleLift", category: "ad", domains: ["*.3lift.com"], totalExecutionTime: 8396, totalOccurrences: 4812 }, { name: "Tru Optik", category: "ad", domains: ["*.truoptik.com"] }, { name: "TruConversion", category: "analytics", domains: ["*.truconversion.com"], totalExecutionTime: 487670, totalOccurrences: 1008 }, { name: "Trueffect", category: "marketing", domains: ["*.adlegend.com"] }, { name: "Truefit", category: "analytics",
    domains: ["*.truefitcorp.com"], examples: ["cdn.truefitcorp.com", "fitrec.truefitcorp.com", "sch-cdn.truefitcorp.com"], totalExecutionTime: 4647, totalOccurrences: 20 }, { name: "Trust Guard", category: "utility", domains: ["*.trust-guard.com"], totalExecutionTime: 3346, totalOccurrences: 35 }, { name: "Trust Pilot", category: "analytics", domains: ["*.trustpilot.com"], totalExecutionTime: 14795265, totalOccurrences: 54942 }, { name: "Amazon Trust Services", company: "Amazon", category: "utility", domains: ["*.amazontrust.com", "o.ss2.us"], examples: ["ocsp.rootca1.amazontrust.com"], totalExecutionTime: 107, totalOccurrences: 1 }, { name: "Google Trust Services", company: "Google", category: "utility", domains: ["*.pki.goog"], examples: ["ocsp.pki.goog"], totalExecutionTime: 18, totalOccurrences: 1 }, { name: "Let's Encrypt", homepage: "https://letsencrypt.org/", category: "utility", domains: ["*.letsencrypt.org"], examples: ["ocsp.int-x3.letsencrypt.org"], totalExecutionTime: 76, totalOccurrences: 3 },
    { name: "TrustX", category: "ad", domains: ["*.trustx.org"] }, { name: "Trusted Shops", category: "utility", domains: ["*.trustedshops.com"], totalExecutionTime: 7373870, totalOccurrences: 17267 }, { name: "Trustev", company: "TransUnion", category: "utility", domains: ["*.trustev.com"], totalExecutionTime: 3272, totalOccurrences: 22 }, { name: "Trustwave", category: "utility", domains: ["*.trustwave.com"], totalExecutionTime: 4600, totalOccurrences: 7 }, { name: "Tryzens TradeState", company: "Tryzens", category: "analytics", domains: ["*.tryzens-analytics.com"], totalExecutionTime: 969, totalOccurrences: 9 }, { name: "TubeMogul", category: "ad", domains: ["*.tubemogul.com"], totalExecutionTime: 24151, totalOccurrences: 51 }, { name: "Turn", category: "ad", domains: ["*.turn.com"], totalExecutionTime: 4802, totalOccurrences: 72 }, { name: "Tutorialize", category: "customer-success", domains: ["*.tutorialize.me"] }, { name: "Twenga", category: "content", domains: ["*.twenga.fr", "*\
.c4tw.net", "*.twenga.co.uk"], examples: ["tracker.twenga.co.uk"] }, { name: "Twitframe", company: "Superblock", category: "utility", domains: ["*.twitframe.com"] }, { name: "Twitter Online Conversion Tracking", company: "Twitter", category: "ad", domains: ["*.ads-twitter.com", "analytics.twitter.com"], examples: ["static.ads-twitter.com"], totalExecutionTime: 6170585, totalOccurrences: 73452 }, { name: "Twitter Short URL", company: "Twitter", category: "social", domains: ["*.t.co"] }, { name: "Twyn Group", category: "ad", domains: ["*.twyn.com"] }, { name: "Tynt", company: "33 Across", category: "ad", domains: ["*.tynt.com"], totalExecutionTime: 41643525, totalOccurrences: 212415 }, { name: "Typepad", category: "hosting", domains: ["*.typepad.com"], totalExecutionTime: 834082, totalOccurrences: 813 }, { name: "TyrbooBytes", category: "utility", domains: ["*.turbobytes.net"] }, { name: "UPS i-parcel", company: "UPS", category: "other", domains: ["*.i-parcel.com"] }, { name: "US Media C\
onsulting", category: "ad", domains: ["*.mediade.sk"] }, { name: "Ubertags", category: "tag-manager", domains: ["*.ubertags.com"] }, { name: "Umbel", category: "analytics", domains: ["*.umbel.com"] }, { name: "Unanimis", company: "Switch", category: "ad", domains: ["*.unanimis.co.uk"] }, { name: "Unbounce", category: "ad", domains: ["*.ubembed.com", "*.unbounce.com", "d2xxq4ijfwetlm.cloudfront.net", "d9hhrg4mnvzow.cloudfront.net"], totalExecutionTime: 2902422, totalOccurrences: 8808 }, { name: "Underdog Media", category: "ad", domains: ["*.underdog.media", "*.udmserve.net"], totalExecutionTime: 524141, totalOccurrences: 289 }, { name: "Understand Digital", category: "ad", domains: ["*.redirecting2.net"] }, { name: "Undertone", company: "Perion", category: "ad", domains: ["*.legolas-media.com"], examples: ["rt.legolas-media.com"] }, { name: "Unidays", category: "ad", domains: ["*.myunidays.com", "*.unidays.world"] }, { name: "Uniqodo", category: "ad", domains: ["*.uniqodo.com"] }, { name: "\
Unite", category: "ad", domains: ["*.uadx.com"] }, { name: "United Card Services", category: "utility", domains: ["*.ucs.su"] }, { name: "United Internet", category: "hosting", domains: ["*.uicdn.com"], totalExecutionTime: 14225, totalOccurrences: 75 }, { name: "United Internet Media", category: "ad", domains: ["*.ui-portal.de"], totalExecutionTime: 20307, totalOccurrences: 59 }, { name: "United Internet Media AG", category: "hosting", domains: ["*.tifbs.net", "*.uicdn.net", "*.uimserv.net"], totalExecutionTime: 1737, totalOccurrences: 48 }, { name: "Unknown", category: "other", domains: [] }, { name: "Unruly Media", category: "ad", domains: ["*.unrulymedia.com"], totalExecutionTime: 679, totalOccurrences: 1789 }, { name: "UpBuild", category: "ad", domains: ["*.upbuild.io"], examples: ["www.upbuild.io"] }, { name: "UpSellit", category: "analytics", domains: ["*.upsellit.com"], examples: ["www.upsellit.com"], totalExecutionTime: 289920, totalOccurrences: 1013 }, { name: "Upland Software",
    category: "hosting", domains: ["*.clickability.com"] }, { name: "Airship", category: "marketing", domains: ["*.urbanairship.com", "*.aswpsdkus.com"], totalExecutionTime: 4666, totalOccurrences: 37 }, { name: "UsabilityTools", category: "analytics", domains: ["*.usabilitytools.com"] }, { name: "Usablenet.net", category: "utility", domains: ["*.usablenet.net"] }, { name: "Use It Better", category: "analytics", domains: ["*.useitbetter.com"] }, { name: "User Replay", category: "analytics", domains: ["*.userreplay.net"] }, { name: "UserReport", category: "analytics", domains: ["*.userreport.com"], totalExecutionTime: 133479, totalOccurrences: 476 }, { name: "Userneeds", category: "analytics", domains: ["*.userneeds.dk"] }, { name: "Userzoom", category: "analytics", domains: ["*.userzoom.com"], totalExecutionTime: 5093, totalOccurrences: 4 }, { name: "V12 Retail Finance", category: "utility", domains: ["*.v12finance.com"] }, { name: "Vacaciones eDreams", category: "content", domains: ["\
*.odistatic.net"] }, { name: "Varick Media Management", category: "ad", domains: ["*.vmmpxl.com"] }, { name: "Vdopia Chocolate", company: "Vdopia", category: "ad", domains: ["*.vdopia.com"] }, { name: "Ve", company: "Ve", homepage: "https://www.ve.com/", category: "marketing", domains: ["*.veinteractive.com", "*.ve.com"] }, { name: "Ve Interactive", company: "Ve", category: "ad", domains: ["*.vepxl1.net", "*.adgenie.co.uk"] }, { name: "Vee24", category: "customer-success", domains: ["*.vee24.com"], totalExecutionTime: 20941, totalOccurrences: 38 }, { name: "Veeseo", category: "content", domains: ["*.veeseo.com"] }, { name: "Venatus Media", category: "marketing", domains: ["*.alcvid.com", "*.venatusmedia.com"] }, { name: "Veoxa", category: "ad", domains: ["*.veoxa.com"] }, { name: "Vergic AB", category: "customer-success", domains: ["*.psplugin.com"], totalExecutionTime: 48232, totalOccurrences: 71 }, { name: "Vergic Engage Platform", company: "Vergic", category: "customer-success", domains: [
    "*.vergic.com"], totalExecutionTime: 41524, totalOccurrences: 57 }, { name: "Verisign (Symantec)", category: "utility", domains: ["*.verisign.com"] }, { name: "Verizon", category: "utility", domains: ["*.public-trust.com"], examples: ["www.public-trust.com"] }, { name: "Verizon Digital Media CDN", homepage: "https://www.verizondigitalmedia.com/", category: "cdn", domains: ["*.edgecastcdn.net", "*.edgecastdns.net"], totalExecutionTime: 98698, totalOccurrences: 108 }, { name: "Verizon Uplynk", company: "Verizon", category: "content", domains: ["*.uplynk.com"], totalExecutionTime: 572, totalOccurrences: 4 }, { name: "Vero", company: "Semblance", category: "ad", domains: ["*.getvero.com", "d3qxef4rp70elm.cloudfront.net"], totalExecutionTime: 613, totalOccurrences: 10 }, { name: "VertaMedia", category: "ad", domains: ["*.vertamedia.com"] }, { name: "Vertical Mass", category: "ad", domains: ["*.vmweb.net"] }, { name: "Vestorly", category: "ad", domains: ["*.oodalab.com"] }, { name: "Vext\
ras", category: "other", domains: ["*.vextras.com"], totalExecutionTime: 4484, totalOccurrences: 42 }, { name: "Viacom", category: "content", domains: ["*.mtvnservices.com"], totalExecutionTime: 15501, totalOccurrences: 44 }, { name: "Vibrant Media", category: "ad", domains: ["*.intellitxt.com", "*.picadmedia.com"] }, { name: "VidPulse", category: "analytics", domains: ["*.vidpulse.com"] }, { name: "Video Media Groep", category: "ad", domains: ["*.vmg.host", "*.inpagevideo.nl"] }, { name: "VideoHub", company: "Tremor Video", category: "ad", domains: ["*.scanscout.com"], examples: ["dt.scanscout.com"] }, { name: "Videology", category: "ad", domains: ["*.tidaltv.com"] }, { name: "Vidible", category: "ad", domains: ["*.vidible.tv"] }, { name: "VigLink", category: "ad", domains: ["*.viglink.com"], totalExecutionTime: 3670311, totalOccurrences: 6219 }, { name: "Vindico", company: "Viant", category: "ad", domains: ["*.vindicosuite.com"] }, { name: "Viocorp International", category: "content",
    domains: ["*.vioapi.com"] }, { name: "ViralNinjas", category: "ad", domains: ["*.viralninjas.com"] }, { name: "Virool", category: "ad", domains: ["*.virool.com"] }, { name: "Virtual Earth", company: "Microsoft", category: "utility", domains: ["*.virtualearth.net"], totalExecutionTime: 54315, totalOccurrences: 312 }, { name: "Visely", company: "Visely", category: "other", homepage: "https://visely.io/", domains: ["*.visely.io"] }, { name: "VisScore", category: "analytics", domains: ["*.visscore.com", "d2hkbi3gan6yg6.cloudfront.net"] }, { name: "Visible Measures", category: "ad", domains: ["*.visiblemeasures.com"], totalExecutionTime: 11, totalOccurrences: 13 }, { name: "Visual Studio", company: "Microsoft", category: "utility", domains: ["*.visualstudio.com"], totalExecutionTime: 3464, totalOccurrences: 3 }, { name: "VisualDNA", category: "ad", domains: ["*.visualdna.com"] }, { name: "VisualVisitor", category: "ad", domains: ["*.id-visitors.com"], examples: ["frontend.id-visitors.co\
m"], totalExecutionTime: 871, totalOccurrences: 14 }, { name: "Vivocha S.p.A", category: "customer-success", domains: ["*.vivocha.com"], totalExecutionTime: 65471, totalOccurrences: 38 }, { name: "Vizu (Nielsen)", category: "analytics", domains: ["*.vizu.com"] }, { name: "Vizury", category: "ad", domains: ["*.vizury.com"], totalExecutionTime: 1296, totalOccurrences: 20 }, { name: "VoiceFive", category: "analytics", domains: ["*.voicefive.com"] }, { name: "Volvelle", company: "Optomaton", category: "ad", domains: ["*.volvelle.tech"] }, { name: "VouchedFor", category: "analytics", domains: ["*.vouchedfor.co.uk"], totalExecutionTime: 30557, totalOccurrences: 18 }, { name: "WARPCACHE", category: "utility", domains: ["*.warpcache.net"] }, { name: "WISHLIST", company: "Shopapps", category: "social", domains: ["*.shopapps.in"] }, { name: "WP Engine", category: "hosting", domains: ["*.wpengine.com"], totalExecutionTime: 651034, totalOccurrences: 341 }, { name: "WalkMe", category: "customer-suc\
cess", domains: ["*.walkme.com"], totalExecutionTime: 636459, totalOccurrences: 495 }, { name: "Watching That", category: "other", domains: ["*.watchingthat.com"] }, { name: "Wayfair", category: "analytics", domains: ["*.wayfair.com"], examples: ["t.wayfair.com"] }, { name: "Web CEO", category: "other", domains: ["*.websiteceo.com"], examples: ["www.websiteceo.com"] }, { name: "Web Dissector", company: "Beijing Gridsum Technologies", category: "analytics", domains: ["*.gridsumdissector.com", "*.webdissector.com"], examples: ["www.webdissector.com"] }, { name: "Web Forensics", category: "analytics", domains: ["*.webforensics.co.uk"] }, { name: "Web Security and Performance", company: "NCC Group", category: "utility", domains: ["*.nccgroup.trust"] }, { name: "WebEngage", category: "customer-success", domains: ["*.webengage.co", "*.webengage.com", "d23nd6ymopvz52.cloudfront.net", "d3701cc9l7v9a6.cloudfront.net"], totalExecutionTime: 789975, totalOccurrences: 2283 }, { name: "WebInsight", company: "\
dotMailer", category: "analytics", domains: ["*.trackedlink.net", "*.trackedweb.net"], totalExecutionTime: 21241, totalOccurrences: 277 }, { name: "WebPageOne Solutions", category: "other", domains: ["*.webpageone.com"] }, { name: "WebSpectator", category: "ad", domains: ["*.webspectator.com"] }, { name: "WebTuna", company: "Application Performance", category: "analytics", domains: ["*.webtuna.com"] }, { name: "WebVideoCore", company: "StreamingVideoProvider", category: "content", domains: ["*.webvideocore.net"], totalExecutionTime: 74152, totalOccurrences: 38 }, { name: "WebWombat", category: "utility", domains: ["*.ic.com.au"] }, { name: "Webcollage", category: "customer-success", domains: ["*.webcollage.net"] }, { name: "Webcore", category: "ad", domains: ["*.onefeed.co.uk"] }, { name: "Webkul", company: "Webkul Software", category: "utility", domains: ["*.webkul.com"], totalExecutionTime: 172788, totalOccurrences: 490 }, { name: "Webmarked", category: "utility", domains: ["*.webmar\
ked.net"], totalExecutionTime: 72467, totalOccurrences: 1077 }, { name: "Weborama", category: "ad", domains: ["*.weborama.com", "*.weborama.fr"], totalExecutionTime: 45883, totalOccurrences: 372 }, { name: "WebpageFX", category: "ad", domains: ["*.leadmanagerfx.com"], totalExecutionTime: 241118, totalOccurrences: 946 }, { name: "Webphone", company: "IP WEB SERVICES", category: "customer-success", domains: ["*.webphone.net"], totalExecutionTime: 4605, totalOccurrences: 20 }, { name: "Webselect selectcommerce", company: "Webselect Internet", category: "hosting", domains: ["*.webselect.net"] }, { name: "Webthinking", category: "hosting", domains: ["*.webthinking.co.uk"] }, { name: "Webtrekk", category: "analytics", domains: ["*.wbtrk.net", "*.webtrekk-asia.net", "*.webtrekk.net", "*.wt-eu02.net", "*.wt-safetag.com"], totalExecutionTime: 85572, totalOccurrences: 428 }, { name: "Webtrends", category: "analytics", domains: ["*.webtrends.com", "*.webtrendslive.com", "d1q62gfb8siqnm.cloudfront\
.net"], totalExecutionTime: 1437, totalOccurrences: 6 }, { name: "Webtype", category: "cdn", domains: ["*.webtype.com"], totalExecutionTime: 0, totalOccurrences: 1 }, { name: "White Ops", category: "utility", domains: ["*.acexedge.com", "*.tagsrvcs.com"] }, { name: "Whitespace", category: "ad", domains: ["*.whitespacers.com"] }, { name: "WhosOn Live Chat Software", category: "customer-success", domains: ["*.whoson.com"], totalExecutionTime: 20753, totalOccurrences: 112 }, { name: "Wibbitz", category: "other", domains: ["*.wibbitz.com"] }, { name: "Wide Area Communications", category: "hosting", domains: ["*.widearea.co.uk"] }, { name: "WideOrbit", category: "marketing", domains: ["*.admaym.com"] }, { name: "William Reed", category: "content", domains: ["*.wrbm.com"], totalExecutionTime: 50, totalOccurrences: 1 }, { name: "WillyFogg.com", category: "content", domains: ["*.willyfogg.com"] }, { name: "Windows", company: "Microsoft", category: "utility", domains: ["*.windowsupdate.com"], examples: [
    "ctldl.windowsupdate.com"] }, { name: "WisePops", category: "utility", domains: ["*.wisepops.com"], totalExecutionTime: 2631328, totalOccurrences: 1950 }, { name: "Wishlist King", company: "Appmate", category: "other", homepage: "https://appmate.io/", domains: ["*.appmate.io"], examples: ["api.appmate.io"], totalExecutionTime: 130543, totalOccurrences: 235 }, { name: "Wishpond Technologies", category: "marketing", domains: ["*.wishpond.com", "*.wishpond.net"], totalExecutionTime: 771888, totalOccurrences: 1691 }, { name: "WizRocket Technologies", category: "analytics", domains: ["*.wzrkt.com"], totalExecutionTime: 138, totalOccurrences: 2 }, { name: "Woopra", category: "analytics", domains: ["*.woopra.com"], totalExecutionTime: 120767, totalOccurrences: 1366 }, { name: "Woosmap", category: "utility", domains: ["*.woosmap.com"], totalExecutionTime: 58710, totalOccurrences: 139 }, { name: "WorkCast", category: "hosting", domains: ["*.workcast.net"] }, { name: "World News Media", category: "\
content", domains: ["*.wnmedia.co.uk"] }, { name: "Worldpay", category: "utility", domains: ["*.worldpay.com"], totalExecutionTime: 25852, totalOccurrences: 18 }, { name: "Wow Analytics", category: "analytics", domains: ["*.wowanalytics.co.uk"], totalExecutionTime: 11162, totalOccurrences: 73 }, { name: "Wowcher", category: "ad", domains: ["*.wowcher.co.uk"] }, { name: "Wufoo", category: "utility", domains: ["*.wufoo.com"], totalExecutionTime: 381206, totalOccurrences: 1507 }, { name: "Wunderkind", category: "marketing", homepage: "https://www.wunderkind.co/", domains: ["*.bounceexchange.com", "*.bouncex.net", "*.wknd.ai", "*.cdnbasket.net", "*.cdnwidget.com"], examples: ["events.bouncex.net", "tag.wknd.ai", "data.cdnbasket.net", "pix.cdnwidget.com"], totalExecutionTime: 2016506, totalOccurrences: 1278 }, { name: "Wyng", category: "ad", domains: ["*.offerpop.com"] }, { name: "XMLSHOP", category: "hosting", domains: ["*.xmlshop.biz"] }, { name: "XiTi", company: "AT Internet", category: "\
analytics", domains: ["*.xiti.com", "*.aticdn.net"], homepage: "https://www.atinternet.com/en/", examples: ["tag.aticdn.net/123456789/smarttag.js"], totalExecutionTime: 918257, totalOccurrences: 8483 }, { name: "YUDU", category: "content", domains: ["*.yudu.com"] }, { name: "Yahoo! Ad Exchange", company: "Yahoo!", category: "ad", domains: ["*.yieldmanager.com", "*.browsiprod.com"], examples: ["yield-manager.browsiprod.com"], totalExecutionTime: 12720569, totalOccurrences: 4994 }, { name: "Yahoo! JAPAN Ads", company: "Yahoo! JAPAN", category: "ad", homepage: "https://marketing.yahoo.co.jp/service/yahooads/", domains: ["yads.c.yimg.jp", "s.yimg.jp", "b92.yahoo.co.jp"], examples: ["yads.c.yimg.jp/js/yads-async.js", "s.yimg.jp/images/listing/tool/yads/ydn/creative/video/ytop_video_timeline_sp.min.js", "b92.yahoo.co.jp/js/s_retargeting.js"], totalExecutionTime: 6236624, totalOccurrences: 37464 }, { name: "Yahoo! Tag Manager", company: "Yahoo! JAPAN", category: "tag-manager", homepage: "http\
s://marketing.yahoo.co.jp/service/tagmanager/", domains: ["*.yjtag.jp"], examples: ["s.yjtag.jp/tag.js"] }, { name: "Yahoo! Small Business", company: "Yahoo!", category: "hosting", domains: ["*.aabacosmallbusiness.com"] }, { name: "Yellow Robot", category: "ad", domains: ["*.backinstock.org"], totalExecutionTime: 15268, totalOccurrences: 508 }, { name: "YieldPartners", category: "ad", domains: ["*.yieldpartners.com"] }, { name: "Yieldbot", category: "ad", domains: ["*.yldbt.com"] }, { name: "Yieldify", category: "ad", domains: ["*.yieldify.com", "*.yieldifylabs.com", "d33wq5gej88ld6.cloudfront.net", "dwmvwp56lzq5t.cloudfront.net"], examples: ["geo.yieldifylabs.com"], totalExecutionTime: 513761, totalOccurrences: 168 }, { name: "Yieldlab", category: "ad", domains: ["*.yieldlab.net"], totalExecutionTime: 54, totalOccurrences: 8 }, { name: "Yieldmo", category: "ad", domains: ["*.yieldmo.com"], totalExecutionTime: 51128, totalOccurrences: 2375 }, { name: "Yieldr", category: "ad", domains: [
    "*.254a.com"] }, { name: "Yo", category: "utility", domains: ["*.yopify.com"] }, { name: "YoYo", category: "utility", domains: ["*.goadservices.com"] }, { name: "Yotpo", homepage: "https://www.yotpo.com/", category: "marketing", domains: ["*.yotpo.com", "*.swellrewards.com"], totalExecutionTime: 16919447, totalOccurrences: 26094 }, { name: "Yottaa", category: "hosting", domains: ["*.yottaa.com", "*.yottaa.net"], totalExecutionTime: 798791, totalOccurrences: 753 }, { name: "YourAmigo", category: "utility", domains: ["*.youramigo.com"] }, { name: "YuMe", category: "ad", domains: ["*.yume.com", "*.yumenetworks.com"], examples: ["cks.yumenetworks.com"] }, { name: "Yummley", category: "other", domains: ["*.yummly.com"], totalExecutionTime: 14163, totalOccurrences: 6 }, { name: "ZEDO", category: "ad", domains: ["*.zedo.com"] }, { name: "Zafu", category: "analytics", domains: ["*.zafu.com"] }, { name: "Zaius", category: "ad", domains: ["*.zaius.com"] }, { name: "Zamplus ad", category: "ad",
    domains: ["*.zampda.net"] }, { name: "Zanox", category: "ad", domains: ["*.zanox.com", "*.zanox.ws"] }, { name: "Zapper", category: "utility", domains: ["*.zapper.com"] }, { name: "Zarget", category: "analytics", domains: ["*.zarget.com"] }, { name: "Zemanta", category: "ad", domains: ["*.zemanta.com"], totalExecutionTime: 2735, totalOccurrences: 28 }, { name: "Zen Internet", category: "other", domains: ["*.zyen.com"] }, { name: "Zenovia Digital Exchange", category: "ad", domains: ["*.rhythmxchange.com", "*.zenoviaexchange.com"] }, { name: "ZergNet", category: "content", domains: ["*.zergnet.com"], totalExecutionTime: 186, totalOccurrences: 4 }, { name: "Zerogrey", category: "hosting", domains: ["*.zerogrey.com"] }, { name: "Ziff Davis Tech", category: "ad", domains: ["*.adziff.com", "*.zdbb.net"], totalExecutionTime: 30706, totalOccurrences: 93 }, { name: "Zmags", category: "marketing", domains: ["*.zmags.com"], totalExecutionTime: 262514, totalOccurrences: 119 }, { name: "Zolando",
    category: "content", domains: ["*.ztat.net"], totalExecutionTime: 229623, totalOccurrences: 48 }, { name: "Zoover", category: "analytics", domains: ["*.zoover.nl", "*.zoover.co.uk"], totalExecutionTime: 9173, totalOccurrences: 2 }, { name: "Zopim", category: "customer-success", domains: ["*.zopim.io"] }, { name: "[24]7", category: "customer-success", domains: ["*.247-inc.net", "*.247inc.net", "d1af033869koo7.cloudfront.net"], totalExecutionTime: 24965, totalOccurrences: 20 }, { name: "adKernel", category: "ad", domains: ["*.adkernel.com"], totalExecutionTime: 19140, totalOccurrences: 9621 }, { name: "adMarketplace", company: "AMPexchange", category: "ad", domains: ["*.ampxchange.com", "*.admarketplace.net"] }, { name: "addtocalendar", category: "utility", domains: ["*.addtocalendar.com"] }, { name: "adnanny", category: "ad", domains: ["*.adserver01.de"], totalExecutionTime: 2, totalOccurrences: 6 }, { name: "affilinet", category: "ad", domains: ["*.reussissonsensemble.fr", "*.succe\
ssfultogether.co.uk"] }, { name: "audioBoom", category: "social", domains: ["*.audioboom.com", "*.audioboo.fm"], totalExecutionTime: 136729, totalOccurrences: 57 }, { name: "bPay by Barclaycard", company: "Barclays Bank", category: "utility", domains: ["*.bpay.co.uk"] }, { name: "bRealTime", category: "ad", domains: ["*.brealtime.com"], totalExecutionTime: 4479, totalOccurrences: 76 }, { name: "bd4travel", category: "analytics", domains: ["*.bd4travel.com"] }, { name: "bizinformation-VOID", company: "bizinformation", category: "analytics", domains: ["*.bizinformation.org"] }, { name: "carrot", category: "social", domains: ["*.sharebutton.co"] }, { name: "cloudIQ", category: "analytics", domains: ["*.cloud-iq.com"] }, { name: "comScore", category: "analytics", domains: ["*.adxpose.com", "*.comscore.com", "*.sitestat.com", "*.zqtk.net"], totalExecutionTime: 4938, totalOccurrences: 3 }, { name: "content.ad", category: "ad", domains: ["*.content.ad"] }, { name: "d3 Media", company: "d3 Tec\
hnologies", category: "other", domains: ["*.d3sv.net"] }, { name: "dexiMEDIA", category: "ad", domains: ["*.deximedia.com"] }, { name: "dianomi", category: "ad", domains: ["*.dianomi.com", "*.dianomioffers.co.uk"], totalExecutionTime: 52461, totalOccurrences: 86 }, { name: "donReach", category: "social", domains: ["*.donreach.com"] }, { name: "dotMailer", category: "ad", domains: ["*.dmtrk.com", "*.dotmailer.com", "*.emlfiles.com"] }, { name: "dotMailer Surveys", company: "dotMailer", category: "analytics", domains: ["*.dotmailer-surveys.com"] }, { name: "dstillery", category: "ad", domains: ["*.dstillery.com", "*.media6degrees.com"], totalExecutionTime: 1160, totalOccurrences: 12 }, { name: "eBay", category: "ad", domains: ["*.ebay.com", "*.ebayimg.com", "*.fetchback.com"], totalExecutionTime: 600826, totalOccurrences: 1026 }, { name: "eBay Enterprise", category: "hosting", domains: ["*.csdata1.com", "*.gsipartners.com"] }, { name: "eBuzzing", company: "Teads Managed Services", category: "\
ad", domains: ["*.ebz.io"] }, { name: "eDigital Research", category: "customer-success", domains: ["*.edigitalresearch.com", "*.edigitalsurvey.com", "*.edrcdn.com", "*.ecustomeropinions.com"] }, { name: "eGain", category: "analytics", domains: ["*.analytics-egain.com", "*.egain.com"], totalExecutionTime: 8418, totalOccurrences: 74 }, { name: "eHost", category: "hosting", domains: ["*.ehosts.net"] }, { name: "eKomi", category: "analytics", domains: ["*.ekomi.com", "*.ekomi.de"], totalExecutionTime: 51192, totalOccurrences: 17 }, { name: "eWAY", company: "Web Active Pty", category: "utility", domains: ["*.eway.com.au"], examples: ["www.eway.com.au"], totalExecutionTime: 11094, totalOccurrences: 1 }, { name: "eXTReMe digital", category: "analytics", domains: ["*.extreme-dm.com"], totalExecutionTime: 3491, totalOccurrences: 78 }, { name: "eXelate", category: "ad", domains: ["*.exelator.com"], totalExecutionTime: 17905, totalOccurrences: 246 }, { name: "ecommercefeed.net", category: "market\
ing", domains: ["*.ecommercefeed.net"] }, { name: "engage:BDR", category: "ad", domains: ["*.bnmla.com", "*.ebdr3.com"] }, { name: "epago", category: "ad", domains: ["*.adaos-ads.net"] }, { name: "epoq internet services", category: "analytics", domains: ["*.epoq.de"], totalExecutionTime: 84260, totalOccurrences: 122 }, { name: "etouches", category: "hosting", domains: ["*.etouches.com"], examples: ["www.etouches.com"] }, { name: "etracker", category: "analytics", domains: ["*.etracker.com", "*.etracker.de"], examples: ["www.etracker.com"], totalExecutionTime: 2076262, totalOccurrences: 5626 }, { name: "everestads.com", category: "content", domains: ["*.verestads.net"] }, { name: "exebid.DCA", company: "Data-Centric Alliance", category: "ad", domains: ["*.exe.bid"] }, { name: "eyeReturn Marketing", category: "marketing", domains: ["*.eyereturn.com"] }, { name: "feedoptimise", category: "hosting", domains: ["*.feedoptimise.com", "d1w78njrm56n7g.cloudfront.net"], totalExecutionTime: 126, totalOccurrences: 2 },
    { name: "fifty-five", category: "ad", domains: ["*.55labs.com"] }, { name: "fluct", category: "ad", domains: ["*.adingo.jp"], totalExecutionTime: 5114249, totalOccurrences: 12890 }, { name: "freegeoip.net", company: "(community-funded)", category: "utility", domains: ["*.freegeoip.net"] }, { name: "freewheel.tv", category: "content", domains: ["*.fwmrm.net"], totalExecutionTime: 3847, totalOccurrences: 42 }, { name: "gnatta", category: "customer-success", domains: ["*.gnatta.com"] }, { name: "home.pl", category: "hosting", domains: ["*.nscontext.eu"] }, { name: "hyfn", category: "ad", domains: ["*.hyfn.com"] }, { name: "iAdvize SAS", category: "customer-success", domains: ["*.iadvize.com"], totalExecutionTime: 286995, totalOccurrences: 844 }, { name: "iBillboard", category: "ad", domains: ["*.ibillboard.com"], totalExecutionTime: 303, totalOccurrences: 2 }, { name: "iCrossing", category: "ad", domains: ["*.ic-live.com"] }, { name: "iFactory", company: "RDW Group", category: "hostin\
g", domains: ["*.ifactory.com"] }, { name: "iGoDigital", category: "analytics", domains: ["*.igodigital.com"], totalExecutionTime: 1800, totalOccurrences: 21 }, { name: "iJento", company: "Fopsha", category: "ad", domains: ["*.ijento.com"] }, { name: "iPage", category: "hosting", domains: ["*.ipage.com"], examples: ["www.ipage.com"], totalExecutionTime: 490, totalOccurrences: 6 }, { name: "iPerceptions", category: "customer-success", domains: ["*.iperceptions.com"], totalExecutionTime: 626044, totalOccurrences: 4662 }, { name: "iTunes", company: "Apple", category: "content", domains: ["*.mzstatic.com"] }, { name: "imgix", company: "Zebrafish Labs", category: "utility", domains: ["*.imgix.net"], totalExecutionTime: 40073, totalOccurrences: 98 }, { name: "infogr.am", category: "utility", domains: ["*.infogr.am", "*.jifo.co"], totalExecutionTime: 2008949, totalOccurrences: 233 }, { name: "iotec", category: "analytics", domains: ["*.dsp.io"] }, { name: "iovation", category: "utility", domains: [
    "*.iesnare.com"], totalExecutionTime: 270232, totalOccurrences: 2159 }, { name: "ipinfo.io", category: "utility", domains: ["*.ipinfo.io"] }, { name: "issuu", category: "content", domains: ["*.issuu.com", "*.isu.pub"], totalExecutionTime: 5607951, totalOccurrences: 2714 }, { name: "iubenda", category: "utility", domains: ["*.iubenda.com"], examples: ["www.iubenda.com"], totalExecutionTime: 69911073, totalOccurrences: 97074 }, { name: "j2 Cloud Services", category: "ad", domains: ["*.campaigner.com"], totalExecutionTime: 12708, totalOccurrences: 28 }, { name: "jsonip.com", category: "analytics", domains: ["*.jsonip.com"] }, { name: "linkpulse", category: "analytics", domains: ["*.lp4.io"] }, { name: "loGo_net", category: "analytics", domains: ["*.logo-net.co.uk"] }, { name: "mainADV", category: "ad", domains: ["*.httptrack.com", "*.solocpm.com"] }, { name: "mbr targeting", category: "ad", domains: ["*.m6r.eu"], totalExecutionTime: 17, totalOccurrences: 1 }, { name: "media.ventive", category: "\
ad", domains: ["*.contentspread.net"] }, { name: "metrigo", category: "ad", domains: ["*.metrigo.com"] }, { name: "minicabit.com", category: "content", domains: ["*.minicabit.com"] }, { name: "mobiManage", category: "hosting", domains: ["*.mobimanage.com"] }, { name: "moving-pictures", category: "other", domains: ["*.moving-pictures.biz", "*.v6-moving-pictures.com", "*.vtstat.com", "*.moving-pictures.de"] }, { name: "my6sense", category: "ad", domains: ["*.mynativeplatform.com"] }, { name: "myThings", category: "ad", domains: ["*.mythings.com", "*.mythingsmedia.net"] }, { name: "mymovies", category: "content", domains: ["*.mymovies.net"] }, { name: "nRelate-VOID", company: "nRelate", category: "content", domains: ["*.nrelate.com"] }, { name: "nToklo", category: "analytics", domains: ["*.ntoklo.com"] }, { name: "neXeps", category: "ad", domains: ["*.nexeps.com"] }, { name: "ninemsn Pty.", category: "utility", domains: ["*.ninemsn.com.au"] }, { name: "nugg.ad", category: "ad", domains: [
    "*.nuggad.net"] }, { name: "numero interactive", company: "numero", category: "ad", domains: ["*.numerointeractive.com"] }, { name: "optMD", company: "Optimax Media Delivery", category: "ad", domains: ["*.optmd.com"] }, { name: "otracking.com", category: "analytics", domains: ["*.otracking.com"] }, { name: "paysafecard", company: "Paysafe Group", category: "utility", domains: ["*.paysafecard.com"] }, { name: "piano", category: "ad", domains: ["*.npttech.com", "*.tinypass.com"], examples: ["www.npttech.com"], totalExecutionTime: 1016108, totalOccurrences: 1146 }, { name: "piclike", category: "ad", domains: ["*.piclike.us"] }, { name: "placehold.it", category: "utility", domains: ["*.placehold.it"] }, { name: "plista", category: "ad", domains: ["*.plista.com"] }, { name: "prebid.org", category: "utility", domains: ["*.prebid.org"], totalExecutionTime: 462, totalOccurrences: 1 }, { name: "reEmbed", category: "other", domains: ["*.reembed.com"] }, { name: "reddit", category: "social", domains: [
    "*.reddit.com", "*.redditstatic.com"], examples: ["www.redditstatic.com"], totalExecutionTime: 4113522, totalOccurrences: 18483 }, { name: "rewardStyle.com", category: "ad", domains: ["*.rewardstyle.com"], totalExecutionTime: 280999, totalOccurrences: 1491 }, { name: "rss2json", category: "utility", domains: ["*.rss2json.com"], totalExecutionTime: 1380, totalOccurrences: 18 }, { name: "sage Pay", company: "Sage Pay Europe", category: "utility", domains: ["*.sagepay.com"], totalExecutionTime: 4481, totalOccurrences: 40 }, { name: "section.io", category: "utility", domains: ["*.squixa.net"], examples: ["beacon.squixa.net", "s.squixa.net"] }, { name: "smartclip", category: "ad", domains: ["*.smartclip.net"], totalExecutionTime: 41051, totalOccurrences: 21 }, { name: "sovrn", category: "ad", domains: ["*.lijit.com"], totalExecutionTime: 2389059, totalOccurrences: 27306 }, { name: "stackpile.io", company: "StackPile", category: "tag-manager", domains: ["*.stackpile.io"] }, { name: "temp\
late-help.com", category: "hosting", domains: ["*.template-help.com"], totalExecutionTime: 16016, totalOccurrences: 13 }, { name: "test", company: "test only", category: "other", domains: ["*.testtesttest.com"] }, { name: "trueAnthem", category: "social", domains: ["*.tru.am"] }, { name: "tweetmeme-VOID", company: "tweetmeme", category: "analytics", domains: ["*.tweetmeme.com"] }, { name: "uLogin", category: "other", domains: ["*.ulogin.ru"] }, { name: "uLogix", category: "ad", domains: ["*.ulogix.ru"] }, { name: "ucfunnel ucX", company: "ucfunnel", category: "ad", domains: ["*.aralego.com"], totalExecutionTime: 1469345, totalOccurrences: 7945 }, { name: "up-value", category: "ad", domains: ["*.up-value.de"] }, { name: "wywy", category: "ad", domains: ["*.wywy.com", "*.wywyuserservice.com"] }, { name: "CDK Dealer Management", company: "CDK Global", homepage: "https://www.cdkglobal.com/us", category: "hosting", domains: ["*.assets-cdk.com"], examples: ["media-cf.assets-cdk.com"], totalExecutionTime: 1052,
    totalOccurrences: 4 }, { name: "fam", company: "Fing Co Ltd.", homepage: "http://admin.fam-ad.com/report/", category: "ad", domains: ["*.fam-ad.com"], examples: ["img.fam-ad.com"], totalExecutionTime: 1816, totalOccurrences: 10 }, { name: "zypmedia", category: "ad", domains: ["*.extend.tv"] }, { name: "codigo", homepage: "https://www.codigo.se", category: "analytics", domains: ["*.codigo.se"], examples: ["analytics.codigo.se"], totalExecutionTime: 469, totalOccurrences: 10 }, { name: "Playground", homepage: "https://playground.xyz", category: "ad", domains: ["*.playground.xyz"], examples: ["ads.playground.xyz"], totalExecutionTime: 2767, totalOccurrences: 26 }, { name: "RAM", homepage: "https://www2.rampanel.com/", category: "analytics", domains: ["*.rampanel.com"], examples: ["inviso.rampanel.com"], totalExecutionTime: 15413, totalOccurrences: 1 }, { name: "Adition", homepage: "https://www.adition.com", category: "ad", domains: ["*.adition.com"], examples: ["dsp.adfarm1.adition.co\
m"], totalExecutionTime: 74399, totalOccurrences: 491 }, { name: "Widespace", homepage: "https://www.widespace.com", category: "ad", domains: ["*.widespace.com"], examples: ["sync.widespace.com"] }, { name: "Colpirio", homepage: "https://www.widespace.com", category: "analytics", domains: ["*.colpirio.com"], examples: ["proxy-tracker.colpirio.com"] }, { name: "Brandmetrics", homepage: "https://www.brandmetrics.com", category: "analytics", domains: ["*.brandmetrics.com"], examples: ["collector.brandmetrics.com", "cdn.brandmetrics.com"], totalExecutionTime: 3689914, totalOccurrences: 30850 }, { name: "EasyAd", homepage: "https://web.easy-ads.com/", category: "ad", domains: ["*.easy-ads.com"], examples: ["ads.easy-ads.com"] }, { name: "Glimr", homepage: "https://glimr.io/", category: "analytics", domains: ["*.glimr.io"], examples: ["pixel.glimr.io"] }, { name: "Webtreck", homepage: "https://www.webtrekk.com/en/home/", category: "analytics", domains: ["*.wcfbc.net"], examples: ["fbc.wcfbc.\
net"] }, { name: "DigiTrust", homepage: "http://www.digitru.st/", category: "analytics", domains: ["*.digitru.st"], examples: ["cdn.digitru.st"] }, { name: "Kantar Sifo", homepage: "https://www.kantarsifo.se", category: "analytics", domains: ["*.research-int.se"], examples: ["trafficgateway.research-int.se"], totalExecutionTime: 375, totalOccurrences: 1 }, { name: "Concert", homepage: "https://concert.io/", category: "ad", domains: ["*.concert.io"], examples: ["cdn.concert.io"], totalExecutionTime: 317481, totalOccurrences: 336 }, { name: "Emerse", homepage: "https://www.emerse.com/", category: "ad", domains: ["*.emerse.com"], examples: ["tracking.emerse.com"], totalExecutionTime: 2872, totalOccurrences: 13 }, { name: "Iterate", homepage: "https://iteratehq.com/", category: "analytics", domains: ["*.iteratehq.com"], totalExecutionTime: 8751, totalOccurrences: 72 }, { name: "Cookiebot", homepage: "https://www.cookiebot.com/", category: "utility", domains: ["*.cookiebot.com"], examples: [
    "consent.cookiebot.com"], totalExecutionTime: 64865019, totalOccurrences: 187732 }, { name: "Netlify", homepage: "https://www.netlify.com/", category: "utility", domains: ["*.netlify.com", "*.netlifyusercontent.com"], examples: ["cloud.netlifyusercontent.com"], totalExecutionTime: 299527, totalOccurrences: 1323 }, { name: "Scroll", homepage: "https://scroll.com/", category: "utility", domains: ["*.scroll.com"], examples: ["static.scroll.com", "connect.scroll.com"] }, { name: "Consumable", homepage: "https://consumable.com/", category: "ad", domains: ["*.serverbid.com"], totalExecutionTime: 15203, totalOccurrences: 266 }, { name: "DMD Marketing", homepage: "https://www.dmdconnects.com/", category: "ad", domains: ["*.medtargetsystem.com"], totalExecutionTime: 257224, totalOccurrences: 846 }, { name: "Catchpoint", homepage: "https://www.catchpoint.com/", category: "analytics", domains: ["*.3gl.net", "*.3genlabs.net"], totalExecutionTime: 14822, totalOccurrences: 160 }, { name: "Termin\
us", homepage: "https://terminus.com/", category: "ad", domains: ["*.terminus.services"], totalExecutionTime: 28077, totalOccurrences: 207 }, { name: "Acceptable Ads", homepage: "https://acceptableads.com/", category: "ad", domains: ["*.aaxads.com", "*.aaxdetect.com"], totalExecutionTime: 2200, totalOccurrences: 34 }, { name: "ClearBrain", homepage: "https://www.clearbrain.com/", category: "analytics", domains: ["*.clearbrain.com"], examples: ["api.clearbrain.com"] }, { name: "Optanon", homepage: "https://www.cookielaw.org/", category: "consent-provider", domains: ["*.onetrust.com", "*.cookielaw.org"], examples: ["cdn.cookielaw.org", "geolocation.onetrust.com"], totalExecutionTime: 55293468, totalOccurrences: 113700 }, { name: "TrustArc", homepage: "https://www.trustarc.com/", category: "utility", domains: ["*.trustarc.com"], examples: ["choices.trustarc.com", "consent.trustarc.com"], totalExecutionTime: 2429376, totalOccurrences: 5941 }, { name: "iSpot.tv", homepage: "https://www.ispo\
t.tv/", category: "ad", domains: ["*.ispot.tv"], examples: ["pt.ispot.tv"], totalExecutionTime: 2947, totalOccurrences: 10 }, { name: "RevJet", homepage: "https://www.revjet.com/", category: "ad", domains: ["*.revjet.com"], examples: ["pix.revjet.com", "ads.revjet.com"], totalExecutionTime: 54608, totalOccurrences: 36 }, { name: "atlasRTX", homepage: "https://www.atlasrtx.com/", category: "customer-success", domains: ["*.atlasrtx.com"], examples: ["app.atlasrtx.com", "cdn.atlasrtx.com", "dev.atlasrtx.com"], totalExecutionTime: 52386, totalOccurrences: 46 }, { name: "ContactAtOnce", homepage: "https://www.contactatonce.com/", category: "customer-success", domains: ["*.contactatonce.com"], examples: ["tag.contactatonce.com", "agentpresence.contactatonce.com"] }, { name: "Algolia", homepage: "https://www.algolia.com/", category: "utility", domains: ["*.algolianet.com", "*.algolia.net", "*.algolia.io"], totalExecutionTime: 5603, totalOccurrences: 20 }, { name: "EMX Digital", homepage: "htt\
ps://emxdigital.com", category: "ad", domains: ["*.emxdgt.com"], totalExecutionTime: 9160, totalOccurrences: 166 }, { name: "Moxie", homepage: "https://www.gomoxie.com/", category: "utility", domains: ["*.gomoxie.solutions"], totalExecutionTime: 24183, totalOccurrences: 28 }, { name: "Scripps Network Digital", homepage: "https://www.scrippsnetworksdigital.com/", category: "ad", domains: ["*.snidigital.com"] }, { name: "TurnTo", homepage: "https://www.turntonetworks.com/", category: "utility", domains: ["*.turnto.com"], totalExecutionTime: 4666, totalOccurrences: 32 }, { name: "Quantum Metric", homepage: "https://www.quantummetric.com/", category: "analytics", domains: ["*.quantummetric.com"], totalExecutionTime: 1699724, totalOccurrences: 1140 }, { name: "Carbon Ads", homepage: "https://www.carbonads.net/", category: "ad", domains: ["*.carbonads.net", "*.carbonads.com"], totalExecutionTime: 12059, totalOccurrences: 224 }, { name: "Ably", homepage: "https://www.ably.io/", category: "uti\
lity", domains: ["*.ably.io"], totalExecutionTime: 17031, totalOccurrences: 125 }, { name: "Sectigo", homepage: "https://sectigo.com/", category: "utility", domains: ["*.sectigo.com"], totalExecutionTime: 4576, totalOccurrences: 3 }, { name: "Specless", homepage: "https://gospecless.com/", category: "ad", domains: ["*.specless.tech"] }, { name: "Loggly", homepage: "https://www.loggly.com/", category: "analytics", domains: ["*.loggly.com", "d9jmv9u00p0mv.cloudfront.net"], examples: ["logs-01.loggly.com"], totalExecutionTime: 943, totalOccurrences: 5 }, { name: "Intent Media", homepage: "https://intent.com/", category: "ad", domains: ["*.intentmedia.net"] }, { name: "Supership", homepage: "https://supership.jp/", category: "ad", domains: ["*.socdm.com"], totalExecutionTime: 10809246, totalOccurrences: 17934 }, { name: "F@N Communications", homepage: "https://www.fancs.com/", category: "ad", domains: ["*.ladsp.com"], examples: ["px.ladsp.com"], totalExecutionTime: 258835, totalOccurrences: 1768 },
    { name: "Vidyard", homepage: "https://www.vidyard.com/", category: "utility", domains: ["*.vidyard.com"], totalExecutionTime: 1165600, totalOccurrences: 1097 }, { name: "RapidSSL", homepage: "https://www.rapidssl.com/", category: "utility", domains: ["*.rapidssl.com"], totalExecutionTime: 845, totalOccurrences: 2 }, { name: "Coherent Path", homepage: "https://coherentpath.com/", category: "utility", domains: ["*.coherentpath.com"] }, { name: "Attentive", homepage: "https://attentivemobile.com/", category: "ad", domains: ["*.attn.tv", "*.attentivemobile.com"], totalExecutionTime: 5554871, totalOccurrences: 9099 }, { name: "emetriq", homepage: "https://www.emetriq.com/", category: "ad", domains: ["*.emetriq.de", "*.xplosion.de"], totalExecutionTime: 1917, totalOccurrences: 24 }, { name: "Bonzai", homepage: "https://www.bonzai.co/", category: "ad", domains: ["*.bonzai.co"] }, { name: "Freshchat", homepage: "https://www.freshworks.com/live-chat-software/", category: "customer-success",
    domains: ["*.freshchat.com", "*.freshworksapi.com"], products: [{ name: "Freshdesk Messaging", urlPatterns: ["wchat.freshchat.com"], facades: [{ name: "Freshdesk Messaging (formerly Freshchat) Facade", repo: "https://github.com/coliff/freshdesk-messaging-facade/" }] }], totalExecutionTime: 23350324, totalOccurrences: 7081 }, { name: "Contentful", homepage: "https://www.contentful.com/", category: "utility", domains: ["*.contentful.com"], examples: ["cdn.contentful.com"], totalExecutionTime: 4826, totalOccurrences: 2 }, { name: "PureCars", homepage: "https://www.purecars.com/", category: "marketing", domains: ["*.purecars.com"], examples: ["cdn.purecars.com"], totalExecutionTime: 969442, totalOccurrences: 1292 }, { name: "Tray Commerce", homepage: "https://www.tray.com.br/", category: "marketing", domains: ["*.tcdn.com.br"], examples: ["images.tcdn.com.br"], totalExecutionTime: 68362173, totalOccurrences: 14071 }, { name: "AdScore", homepage: "https://www.adscore.com/", category: "a\
d", domains: ["*.adsco.re"], examples: ["c.adsco.re"], totalExecutionTime: 2812771, totalOccurrences: 4394 }, { name: "WebsiteBuilder.com", homepage: "https://www.websitebuilder.com", category: "hosting", domains: ["*.mywebsitebuilder.com"], totalExecutionTime: 19568135, totalOccurrences: 4688 }, { name: "mParticle", homepage: "https://www.mparticle.com/", category: "utility", domains: ["*.mparticle.com"], examples: ["jssdks.mparticle.com", "identity.mparticle.com"], totalExecutionTime: 403503, totalOccurrences: 1029 }, { name: "Ada", homepage: "https://www.ada.support/", category: "customer-success", domains: ["*.ada.support"], examples: ["static.ada.support"], totalExecutionTime: 695777, totalOccurrences: 985 }, { name: "Quora Ads", homepage: "https://www.quora.com/business/", category: "ad", domains: ["*.quora.com"], examples: ["q.quora.com"], totalExecutionTime: 1338719, totalOccurrences: 10614 }, { name: "Auth0", homepage: "https://auth0.com/", category: "utility", domains: ["*.au\
th0.com"], examples: ["cdn.auth0.com"], totalExecutionTime: 245638, totalOccurrences: 816 }, { name: "Bridgewell DSP", homepage: "https://www.bridgewell.com/", category: "ad", domains: ["*.scupio.com"], examples: ["img.scupio.com"], totalExecutionTime: 63728, totalOccurrences: 354 }, { name: "Wicked Reports", homepage: "https://www.wickedreports.com/", category: "marketing", domains: ["*.wickedreports.com"], examples: ["widget.wickedreports.com"], totalExecutionTime: 148754, totalOccurrences: 483 }, { name: "Jaywing", homepage: "https://jaywing.com/", category: "marketing", domains: ["*.jaywing.com"], examples: ["amazon.almanac.jaywing.com"] }, { name: "Holimetrix", homepage: "https://u360.d-bi.fr/", category: "marketing", domains: ["*.d-bi.fr"], examples: ["u360.d-bi.fr"] }, { name: "iZooto", homepage: "https://www.izooto.com", category: "marketing", domains: ["*.izooto.com"], examples: ["cdn.izooto.com"], totalExecutionTime: 1111125, totalOccurrences: 2022 }, { name: "Ordergroove", homepage: "\
https://www.ordergroove.com/", category: "marketing", domains: ["*.ordergroove.com"], examples: ["static.ordergroove.com"], totalExecutionTime: 99990, totalOccurrences: 274 }, { name: "PageSense", homepage: "https://www.zoho.com/pagesense/", category: "analytics", domains: ["*.pagesense.io"], examples: ["cdn.pagesense.io"], totalExecutionTime: 1996537, totalOccurrences: 6219 }, { name: "Vizzit", homepage: "https://www.vizzit.se", category: "analytics", domains: ["*.vizzit.se"], examples: ["www.vizzit.se", "tag.vizzit.se"], totalExecutionTime: 739, totalOccurrences: 7 }, { name: "Click Guardian", homepage: "https://www.clickguardian.co.uk/", category: "ad", domains: ["*.clickguardian.app", "*.clickguardian.co.uk"], examples: ["v2.clickguardian.app", "protection.clickguardian.co.uk"], totalExecutionTime: 202620, totalOccurrences: 1101 }, { name: "Smartsupp", company: "Smartsupp.com", homepage: "https://www.smartsupp.com", category: "customer-success", domains: ["*.smartsuppchat.com", "*.\
smartsupp.com", "smartsupp-widget-161959.c.cdn77.org", "*.smartsuppcdn.com"], examples: ["widget-v1.smartsuppcdn.com"], totalExecutionTime: 9998165, totalOccurrences: 21505 }, { name: "Smartlook", company: "Smartsupp.com", homepage: "https://www.smartlook.com/", category: "analytics", domains: ["*.smartlook.com"], totalExecutionTime: 1386251, totalOccurrences: 16221 }, { name: "Luigis Box", company: "Luigis Box", homepage: "https://www.luigisbox.com/", category: "utility", domains: ["*.luigisbox.com"], totalExecutionTime: 2975273, totalOccurrences: 2356 }, { name: "Targito", company: "VIVmail.cz", homepage: "https://www.targito.com", category: "marketing", domains: ["*.targito.com"], totalExecutionTime: 3145, totalOccurrences: 29 }, { name: "Foxentry", company: "AVANTRO", homepage: "https://foxentry.cz/", category: "utility", domains: ["*.foxentry.cz"], totalExecutionTime: 758854, totalOccurrences: 2313 }, { name: "Pendo", homepage: "https://www.pendo.io", category: "analytics", domains: [
    "*.pendo.io"], examples: ["app.pendo.io"], totalExecutionTime: 4935190, totalOccurrences: 12203 }, { name: "Braze", homepage: "https://www.braze.com", category: "analytics", domains: ["*.appboycdn.com"], examples: ["js.appboycdn.com"], totalExecutionTime: 399216, totalOccurrences: 2014 }, { name: "Usersnap", homepage: "https://usersnap.com", category: "customer-success", domains: ["*.usersnap.com"], examples: ["api.usersnap.com", "cdn.usersnap.com"], totalExecutionTime: 334324, totalOccurrences: 437 }, { name: "Rewardful", homepage: "https://www.getrewardful.com", category: "analytics", domains: ["*.wdfl.co"], examples: ["r.wdfl.co"], totalExecutionTime: 9094, totalOccurrences: 161 }, { name: "Launch Darkly", homepage: "https://launchdarkly.com", category: "utility", domains: ["*.launchdarkly.com"], examples: ["app.launchdarkly.com", "events.launchdarkly.com"], totalExecutionTime: 10547, totalOccurrences: 6 }, { name: "Statuspage", company: "Atlassian", homepage: "https://www.statu\
spage.io", category: "utility", domains: ["*.statuspage.io"], examples: ["1k6wzpspjf99.statuspage.io"], totalExecutionTime: 43124, totalOccurrences: 1212 }, { name: "HyperInzerce", homepage: "https://hyperinzerce.cz", category: "ad", domains: ["*.hyperinzerce.cz"], examples: ["motorky.hyperinzerce.cz"], totalExecutionTime: 1035, totalOccurrences: 39 }, { name: "POWr", homepage: "https://www.powr.io", category: "utility", domains: ["*.powr.io"], examples: ["www.powr.io"], totalExecutionTime: 191534674, totalOccurrences: 39716 }, { name: "Coral", company: "Coral", homepage: "https://coralproject.net", category: "content", domains: ["*.coral.coralproject.net"], examples: ["company.coral.coralproject.net"], totalExecutionTime: 61135, totalOccurrences: 250 }, { name: "Bolt", homepage: "https://www.bolt.com/", category: "utility", domains: ["*.bolt.com"], examples: ["connect.bolt.com"], totalExecutionTime: 513689, totalOccurrences: 217 }, { name: "Judge.me", homepage: "https://judge.me/", category: "\
marketing", domains: ["*.judge.me"], examples: ["cdn.judge.me"], totalExecutionTime: 31886982, totalOccurrences: 27483 }, { name: "Tilda", homepage: "https://tilda.cc/", category: "hosting", domains: ["*.tildacdn.com"], examples: ["stat.tildacdn.com", "static.tildacdn.com", "upwidget.tildacdn.com"], totalExecutionTime: 94734169, totalOccurrences: 70321 }, { name: "SalesLoft", homepage: "https://salesloft.com/", category: "marketing", domains: ["*.salesloft.com"], examples: ["scout-cdn.salesloft.com"], totalExecutionTime: 42987, totalOccurrences: 705 }, { name: "Accessibe Accessibility Overlay", company: "Accessibe", homepage: "https://accessibe.com/", category: "utility", domains: ["*.accessibe.com", "*.acsbapp.com", "*.acsbap.com"], examples: ["accessibe.com", "acsbapp.com"], totalExecutionTime: 285765, totalOccurrences: 808 }, { name: "Builder", homepage: "https://www.builder.io/", category: "hosting", domains: ["*.builder.io"], examples: ["cdn.builder.io"], totalExecutionTime: 412358,
    totalOccurrences: 261 }, { name: "Pepperjam", homepage: "https://www.pepperjam.com/", category: "marketing", domains: ["*.pepperjam.com", "*.affiliatetechnology.com"], examples: ["container.pepperjam.com"], totalExecutionTime: 2308, totalOccurrences: 35 }, { name: "Reach", homepage: "https://withreach.com/", category: "utility", domains: ["*.gointerpay.net"], examples: ["checkout.gointerpay.net"] }, { name: "Chameleon", homepage: "https://www.trychameleon.com/", category: "marketing", domains: ["*.trychameleon.com"], examples: ["fast.trychameleon.com"], totalExecutionTime: 24218, totalOccurrences: 8 }, { name: "Matomo", company: "InnoCraft", homepage: "https://matomo.org/", category: "analytics", domains: ["*.matomo.cloud"], totalExecutionTime: 3115176, totalOccurrences: 14345 }, { name: "Segmanta", homepage: "https://segmanta.com/", category: "marketing", domains: ["*.segmanta.com"], examples: ["clientName.segmanta.com"] }, { name: "Podsights", homepage: "https://podsights.com/", category: "\
marketing", domains: ["*.pdst.fm", "us-central1-adaptive-growth.cloudfunctions.net"], examples: ["cdn.pdst.fm", "sink.pdst.fm"], totalExecutionTime: 71990, totalOccurrences: 1140 }, { name: "Chatwoot", homepage: "https://www.chatwoot.com/", category: "customer-success", domains: ["*.chatwoot.com"], examples: ["cdn.chatwoot.com", "app.chatwoot.com"], totalExecutionTime: 31973, totalOccurrences: 444 }, { name: "Crisp", homepage: "https://crisp.chat/", category: "customer-success", domains: ["*.crisp.chat"], examples: ["client.crisp.chat", "client.relay.crisp.chat"], totalExecutionTime: 33757, totalOccurrences: 1052 }, { name: "Admiral CMP", homepage: "https://www.getadmiral.com", category: "consent-provider", domains: ["admiral.mgr.consensu.org", "*.admiral.mgr.consensu.org"] }, { name: "Adnuntius CMP", homepage: "https://adnuntius.com", category: "consent-provider", domains: ["adnuntiusconsent.mgr.consensu.org", "*.adnuntiusconsent.mgr.consensu.org"] }, { name: "Clickio CMP", homepage: "\
https://clickio.com", category: "consent-provider", domains: ["clickio.mgr.consensu.org", "*.clickio.mgr.consensu.org"] }, { name: "AppConsent CMP", homepage: "https://appconsent.io/en", category: "consent-provider", domains: ["appconsent.mgr.consensu.org", "*.appconsent.mgr.consensu.org"] }, { name: "DMG Media CMP", homepage: "https://www.dmgmedia.co.uk", category: "consent-provider", domains: ["dmgmedia.mgr.consensu.org", "*.dmgmedia.mgr.consensu.org"] }, { name: "Axel Springer CMP", homepage: "https://www.axelspringer.com", category: "consent-provider", domains: ["axelspringer.mgr.consensu.org", "*.axelspringer.mgr.consensu.org"] }, { name: "Bedrock CMP", homepage: "https://www.bedrockstreaming.com", category: "consent-provider", domains: ["bedrock.mgr.consensu.org", "*.bedrock.mgr.consensu.org"] }, { name: "BMIND CMP", homepage: "https://www.bmind.es", category: "consent-provider", domains: ["bmind.mgr.consensu.org", "*.bmind.mgr.consensu.org"] }, { name: "Borlabs CMP", homepage: "\
https://borlabs.io", category: "consent-provider", domains: ["borlabs.mgr.consensu.org", "*.borlabs.mgr.consensu.org"] }, { name: "Civic CMP", homepage: "https://www.civicuk.com", category: "consent-provider", domains: ["cookiecontrol.mgr.consensu.org", "*.cookiecontrol.mgr.consensu.org"] }, { name: "Commanders Act CMP", homepage: "https://www.commandersact.com", category: "consent-provider", domains: ["commandersact.mgr.consensu.org", "*.commandersact.mgr.consensu.org"] }, { name: "Complianz CMP", homepage: "https://complianz.io/", category: "consent-provider", domains: ["complianz.mgr.consensu.org", "*.complianz.mgr.consensu.org"] }, { name: "Consent Desk CMP", homepage: "https://www.consentdesk.com/", category: "consent-provider", domains: ["consentdesk.mgr.consensu.org", "*.consentdesk.mgr.consensu.org"] }, { name: "Consent Manager CMP", homepage: "https://consentmanager.net", category: "consent-provider", domains: ["consentmanager.mgr.consensu.org", "*.consentmanager.mgr.consensu.\
org"] }, { name: "Conversant CMP", homepage: "https://www.conversantmedia.eu/", category: "consent-provider", domains: ["conversant.mgr.consensu.org", "*.conversant.mgr.consensu.org"] }, { name: "Cookie Information CMP", homepage: "https://www.cookieinformation.com/", category: "consent-provider", domains: ["cookieinformation.mgr.consensu.org", "*.cookieinformation.mgr.consensu.org"] }, { name: "Cookiebot CMP", homepage: "https://www.cookiebot.com", category: "consent-provider", domains: ["cookiebot.mgr.consensu.org", "*.cookiebot.mgr.consensu.org"] }, { name: "Truendo CMP", homepage: "https://truendo.com/", category: "consent-provider", domains: ["truendo.mgr.consensu.org", "*.truendo.mgr.consensu.org"] }, { name: "Dentsu CMP", homepage: "https://www.dentsuaegisnetwork.de/", category: "consent-provider", domains: ["dan.mgr.consensu.org", "*.dan.mgr.consensu.org"] }, { name: "Didomi CMP", homepage: "https://www.didomi.io/en/", category: "consent-provider", domains: ["didomi.mgr.consens\
u.org", "*.didomi.mgr.consensu.org"] }, { name: "Ensighten CMP", homepage: "https://www.ensighten.com/", category: "consent-provider", domains: ["ensighten.mgr.consensu.org", "*.ensighten.mgr.consensu.org"] }, { name: "Evidon CMP", homepage: "https://evidon.com", category: "consent-provider", domains: ["evidon.mgr.consensu.org", "*.evidon.mgr.consensu.org"] }, { name: "Ezoic CMP", homepage: "https://www.ezoic.com/", category: "consent-provider", domains: ["ezoic.mgr.consensu.org", "*.ezoic.mgr.consensu.org"] }, { name: "Gemius CMP", homepage: "https://www.gemius.com", category: "consent-provider", domains: ["gemius.mgr.consensu.org", "*.gemius.mgr.consensu.org"] }, { name: "NitroPay CMP", homepage: "https://nitropay.com/", category: "consent-provider", domains: ["nitropay.mgr.consensu.org", "*.nitropay.mgr.consensu.org"] }, { name: "Google FundingChoices", homepage: "https://fundingchoices.google.com/start/", category: "consent-provider", domains: ["fundingchoices.mgr.consensu.org", "*\
.fundingchoices.mgr.consensu.org", "fundingchoicesmessages.google.com", "*.fundingchoicesmessages.google.com"], totalExecutionTime: 257806056, totalOccurrences: 400016 }, { name: "Gravito CMP", homepage: "https://www.gravito.net/", category: "consent-provider", domains: ["gravito.mgr.consensu.org", "*.gravito.mgr.consensu.org"] }, { name: "ID Ward CMP", homepage: "https://id-ward.com/enterprise", category: "consent-provider", domains: ["idward.mgr.consensu.org", "*.idward.mgr.consensu.org"] }, { name: "iubenda CMP", homepage: "https://www.iubenda.com", category: "consent-provider", domains: ["iubenda.mgr.consensu.org", "*.iubenda.mgr.consensu.org"] }, { name: "Jump CMP", homepage: "https://jumpgroup.it/", category: "consent-provider", domains: ["avacy.mgr.consensu.org", "*.avacy.mgr.consensu.org"] }, { name: "LiveRamp CMP", homepage: "https://liveramp.com/", category: "consent-provider", domains: ["faktor.mgr.consensu.org", "*.faktor.mgr.consensu.org"] }, { name: "Madvertise CMP", homepage: "\
https://madvertise.com/en/", category: "consent-provider", domains: ["madvertise.mgr.consensu.org", "*.madvertise.mgr.consensu.org"] }, { name: "Mairdumont Netletic CMP", homepage: "https://www.mairdumont-netletix.com/", category: "consent-provider", domains: ["mdnxmp.mgr.consensu.org", "*.mdnxmp.mgr.consensu.org"] }, { name: "Marfeel CMP", homepage: "https://www.marfeel.com/", category: "consent-provider", domains: ["marfeel.mgr.consensu.org", "*.marfeel.mgr.consensu.org"] }, { name: "Mediavine CMP", homepage: "https://www.mediavine.com/", category: "consent-provider", domains: ["mediavine.mgr.consensu.org", "*.mediavine.mgr.consensu.org"] }, { name: "ConsentServe CMP", homepage: "https://www.consentserve.com/", category: "consent-provider", domains: ["consentserve.mgr.consensu.org", "*.consentserve.mgr.consensu.org"] }, { name: "Next14 CMP", homepage: "https://www.next14.com/", category: "consent-provider", domains: ["next14.mgr.consensu.org", "*.next14.mgr.consensu.org"] }, { name: "\
AdRoll CMP", homepage: "https://www.adroll.com/", category: "consent-provider", domains: ["adroll.mgr.consensu.org", "*.adroll.mgr.consensu.org"] }, { name: "Ogury CMP", homepage: "https://www.ogury.com/", category: "consent-provider", domains: ["ogury.mgr.consensu.org", "*.ogury.mgr.consensu.org"] }, { name: "OneTag CMP", homepage: "https://onetag.net", category: "consent-provider", domains: ["onetag.mgr.consensu.org", "*.onetag.mgr.consensu.org"] }, { name: "OneTrust CMP", homepage: "https://onetrust.com", category: "consent-provider", domains: ["onetrust.mgr.consensu.org", "*.onetrust.mgr.consensu.org"] }, { name: "optAd360 CMP", homepage: "https://www.optad360.com/", category: "consent-provider", domains: ["optad360.mgr.consensu.org", "*.optad360.mgr.consensu.org"] }, { name: "Osano CMP", homepage: "https://www.osano.com", category: "consent-provider", domains: ["osano.mgr.consensu.org", "*.osano.mgr.consensu.org"] }, { name: "Playwire CMP", homepage: "https://www.playwire.com", category: "\
consent-provider", domains: ["playwire.mgr.consensu.org", "*.playwire.mgr.consensu.org"] }, { name: "Pulselive CMP", homepage: "https://www.pulselive.com", category: "consent-provider", domains: ["pulselive.mgr.consensu.org", "*.pulselive.mgr.consensu.org"] }, { name: "Quantcast Choice", homepage: "https://quantcast.com", category: "consent-provider", domains: ["quantcast.mgr.consensu.org", "*.quantcast.mgr.consensu.org"] }, { name: "RCS Pubblicita CMP", homepage: "http://www.rcspubblicita.it/site/home.html", category: "consent-provider", domains: ["rcsmediagroup.mgr.consensu.org", "*.rcsmediagroup.mgr.consensu.org"] }, { name: "Rich Audience CMP", homepage: "https://richaudience.com", category: "consent-provider", domains: ["richaudience.mgr.consensu.org", "*.richaudience.mgr.consensu.org"] }, { name: "Ringier Axel Springer CMP", homepage: "https://www.ringieraxelspringer.pl/en/home/", category: "consent-provider", domains: ["rasp.mgr.consensu.org", "*.rasp.mgr.consensu.org"] }, { name: "\
Secure Privacy CMP", homepage: "https://secureprivacy.ai/", category: "consent-provider", domains: ["secureprivacy.mgr.consensu.org", "*.secureprivacy.mgr.consensu.org"] }, { name: "Securiti CMP", homepage: "https://securiti.ai/", category: "consent-provider", domains: ["securiti.mgr.consensu.org", "*.securiti.mgr.consensu.org"] }, { name: "Seznam.cz CMP", homepage: "https://www.seznam.cz/", category: "consent-provider", domains: ["seznam.mgr.consensu.org", "*.seznam.mgr.consensu.org"] }, { name: "ShareThis CMP", homepage: "https://sharethis.com", category: "consent-provider", domains: ["sharethis.mgr.consensu.org", "*.sharethis.mgr.consensu.org"] }, { name: "ShinyStat CMP", homepage: "https://www.shinystat.com", category: "consent-provider", domains: ["shinystat.mgr.consensu.org", "*.shinystat.mgr.consensu.org"] }, { name: "Sibbo CMP", homepage: "https://sibboventures.com/en/", category: "consent-provider", domains: ["sibboventures.mgr.consensu.org", "*.sibboventures.mgr.consensu.org"] },
    { name: "Singlespot CMP", homepage: "https://www.singlespot.com/en", category: "consent-provider", domains: ["singlespot.mgr.consensu.org", "*.singlespot.mgr.consensu.org"] }, { name: "Sirdata CMP", homepage: "https://www.sirdata.com", category: "consent-provider", domains: ["sddan.mgr.consensu.org", "*.sddan.mgr.consensu.org"] }, { name: "Snigel CMP", homepage: "https://snigel.com", category: "consent-provider", domains: ["snigelweb.mgr.consensu.org", "*.snigelweb.mgr.consensu.org"] }, { name: "Sourcepoint CMP", homepage: "https://sourcepoint.com", category: "consent-provider", domains: ["sourcepoint.mgr.consensu.org", "*.sourcepoint.mgr.consensu.org"] }, { name: "Pubtech CMP", homepage: "https://www.pubtech.ai/", category: "consent-provider", domains: ["pubtech.mgr.consensu.org", "*.pubtech.mgr.consensu.org"] }, { name: "AdMetrics Pro CMP", homepage: "https://admetricspro.com", category: "consent-provider", domains: ["cmp.mgr.consensu.org", "*.cmp.mgr.consensu.org"] }, { name: "T\
raffective CMP", homepage: "https://traffective.com", category: "consent-provider", domains: ["traffective.mgr.consensu.org", "*.traffective.mgr.consensu.org"] }, { name: "UniConsent CMP", homepage: "https://www.uniconsent.com", category: "consent-provider", domains: ["uniconsent.mgr.consensu.org", "*.uniconsent.mgr.consensu.org", "cmp.uniconsent.com", "*.uniconsent.com"], totalExecutionTime: 829870, totalOccurrences: 1336 }, { name: "TrustArc CMP", homepage: "https://trustarc.com/", category: "consent-provider", domains: ["trustarc.mgr.consensu.org", "*.trustarc.mgr.consensu.org"] }, { name: "Usercentrics CMP", homepage: "https://usercentrics.com", category: "consent-provider", domains: ["usercentrics.mgr.consensu.org", "*.usercentrics.mgr.consensu.org", "*.usercentrics.eu", "*.services.usercentrics.eu"], totalExecutionTime: 53008518, totalOccurrences: 49602 }, { name: "WebAds CMP", homepage: "https://www.webads.nl/", category: "consent-provider", domains: ["webads.mgr.consensu.org", "\
*.webads.mgr.consensu.org"] }, { name: "Trustcommander", company: "Commandersact", homepage: "https://www.commandersact.com", category: "consent-provider", domains: ["*.trustcommander.net"], examples: ["cdn.trustcommander.net", "privacy.trustcommander.net"], totalExecutionTime: 324770, totalOccurrences: 1713 }, { name: "Hubvisor", homepage: "https://www.hubvisor.io", category: "ad", domains: ["*.hubvisor.io"], examples: ["cdn.hubvisor.io", "stream.hubvisor.io"], totalExecutionTime: 404737, totalOccurrences: 492 }, { name: "Castle", homepage: "https://castle.io", category: "utility", domains: ["*.castle.io", "d2t77mnxyo7adj.cloudfront.net"], examples: ["t.castle.io"] }, { name: "Wigzo", homepage: "https://www.wigzo.com/", category: "marketing", domains: ["*.wigzo.com", "*.wigzopush.com"], examples: ["app.wigzo.com", "tracker.wigzopush.com"], totalExecutionTime: 215280, totalOccurrences: 762 }, { name: "Convertful", homepage: "https://convertful.com/", category: "marketing", domains: ["*\
.convertful.com"], examples: ["app.convertful.com"], totalExecutionTime: 215317, totalOccurrences: 1534 }, { name: "OpenLink", company: "MediaWallah", homepage: "https://www.mediawallah.com/", category: "ad", domains: ["*.mediawallahscript.com"], examples: ["partner.mediawallahscript.com"] }, { name: "TPMN", company: "TPMN", homepage: "http://tpmn.io/", category: "ad", domains: ["*.tpmn.co.kr"], examples: ["ad.tpmn.co.kr"], totalExecutionTime: 354, totalOccurrences: 10 }, { name: "HERO", company: "Klarna", homepage: "https://www.usehero.com/", category: "customer-success", domains: ["*.usehero.com"], examples: ["api.usehero.com", "cdn.usehero.com"], totalExecutionTime: 32092, totalOccurrences: 42 }, { name: "Zync", company: "Zeta Global", homepage: "https://zetaglobal.com/", category: "marketing", domains: ["*.rezync.com"], examples: ["live.rezync.com"], totalExecutionTime: 25978, totalOccurrences: 246 }, { name: "AdFuel Video", company: "AdFuel", homepage: "https://goadfuel.com/", category: "\
ad", domains: ["*.videoplayerhub.com"], examples: ["customer.videoplayerhub.com"], totalExecutionTime: 82951, totalOccurrences: 1407 }, { name: "Prefix Box AI Search", company: "Prefix Box", homepage: "https://www.prefixbox.com/", category: "utility", domains: ["*.prefixbox.com"], examples: ["cdn.prefixbox.com"], totalExecutionTime: 51608, totalOccurrences: 58 }, { name: "SpeedSize Service Worker", company: "SpeedSize", homepage: "https://speedsize.com/", category: "utility", domains: ["di6367dava8ow.cloudfront.net", "d2d22nphq0yz8t.cloudfront.net"], examples: ["di6367dava8ow.cloudfront.net"] }, { name: "Vonage Video API", company: "Vonage", homepage: "https://www.vonage.com/communications-apis/video/", category: "video", domains: ["*.opentok.com"], examples: ["static.opentok.com"], totalExecutionTime: 220760, totalOccurrences: 304 }, { name: "Checkout.com", company: "Checkout.com", homepage: "https://www.checkout.com", category: "utility", domains: ["*.checkout.com"], examples: ["cdn.\
checkout.com"], totalExecutionTime: 184372, totalOccurrences: 1367 }, { name: "Noibu", company: "Noibu", homepage: "https://www.noibu.com", category: "utility", domains: ["*.noibu.com"], examples: ["input.noibu.com"], totalExecutionTime: 1453903, totalOccurrences: 613 }, { name: "Clarity", company: "Microsoft", homepage: "https://clarity.microsoft.com/", category: "utility", domains: ["*.clarity.ms"], examples: ["c.clarity.ms"], totalExecutionTime: 208824616, totalOccurrences: 456309 }, { name: "goinstore", company: "Emplifi", homepage: "https://goinstore.com/", category: "customer-success", domains: ["*.goinstore.com"], examples: ["gis.goinstore.com"] }, { name: "SegmentStream", company: "SegmentStream", homepage: "https://segmentstream.com/", category: "marketing", domains: ["*.segmentstream.com"], examples: ["track.segmentstream.com"], totalExecutionTime: 8628, totalOccurrences: 13 }, { name: "Amazon Associates", company: "Amazon", homepage: "https://affiliate-program.amazon.co.uk/",
    category: "marketing", domains: ["*.associates-amazon.com"], examples: ["assoc-na.associates-amazon.com"], totalExecutionTime: 50, totalOccurrences: 1 }, { name: "DotMetrics", company: "Ipsos", homepage: "https://www.dotmetrics.net/", category: "analytics", domains: ["*.dotmetrics.net"], examples: ["uk-script.dotmetrics.net"], totalExecutionTime: 159255, totalOccurrences: 817 }, { name: "Truffle Bid", company: "Truffle", homepage: "https://truffle.bid/", category: "ad", domains: ["*.truffle.bid"], examples: ["matching.truffle.bid"], totalExecutionTime: 24026, totalOccurrences: 39 }, { name: "Hybrid", company: "Hybrid", homepage: "https://hybrid.ai/", category: "ad", domains: ["*.hybrid.ai"], examples: ["dm-eu.hybrid.ai"], totalExecutionTime: 219740, totalOccurrences: 2326 }, { name: "AdMan Media", company: "AdMan", homepage: "https://admanmedia.com/", category: "video", domains: ["*.admanmedia.com"], examples: ["cs.admanmedia.com"], totalExecutionTime: 1924, totalOccurrences: 202 },
    { name: "ID5 Identity Cloud", company: "ID5", homepage: "https://id5.io/", category: "ad", domains: ["id5-sync.com", "*.id5-sync.com"], examples: ["id5-sync.com"], totalExecutionTime: 26134069, totalOccurrences: 119336 }, { name: "Audience Rate", company: "Audience Rate Limited", homepage: "https://www.audiencerate.com/", category: "ad", domains: ["*.audrte.com"], examples: ["a.audrte.com"] }, { name: "Seedtag", company: "Seedtag Advertising", homepage: "https://www.seedtag.com/", category: "ad", domains: ["*.seedtag.com"], examples: ["s.seedtag.com"], totalExecutionTime: 3342567, totalOccurrences: 1503 }, { name: "IVI", company: "IVI Technologies", homepage: "http://ivitechnologies.com/", category: "ad", domains: ["*.ivitrack.com"], examples: ["matching.ivitrack.com"], totalExecutionTime: 3746, totalOccurrences: 34 }, { name: "Sportradar", company: "Sportradar", homepage: "https://www.sportradar.com/", category: "ad", domains: ["*.sportradarserving.com"], examples: ["a.sportradars\
erving.com"], totalExecutionTime: 520, totalOccurrences: 11 }, { name: "ZEOTAP", company: "ZEOTAP", homepage: "https://zeotap.com/", category: "ad", domains: ["*.zeotap.com"], examples: ["spl.zeotap.com"], totalExecutionTime: 14368, totalOccurrences: 96 }, { name: "Web Content Assessor", company: "TMT Digital", homepage: "https://mediatrust.com/", category: "ad", domains: ["*.webcontentassessor.com"], examples: ["scripts.webcontentassessor.com"], totalExecutionTime: 314249, totalOccurrences: 633 }, { name: "Genie", company: "Media Force", homepage: "https://hellogenie.com/", category: "ad", domains: ["*.mfadsrvr.com"], examples: ["rtb.mfadsrvr.com"], totalExecutionTime: 37, totalOccurrences: 2 }, { name: "mediarithmics", company: "mediarithmics", homepage: "https://www.mediarithmics.com/", category: "ad", domains: ["*.mediarithmics.com"], examples: ["cookie-matching.mediarithmics.com"], totalExecutionTime: 25799, totalOccurrences: 144 }, { name: "Ozone Project", company: "The Ozone Pro\
ject", homepage: "https://www.ozoneproject.com/", category: "ad", domains: ["*.the-ozone-project.com"], examples: ["elb.the-ozone-project.com"], totalExecutionTime: 152768, totalOccurrences: 910 }, { name: "FiftyAurora", company: "Fifty", homepage: "https://fifty.io/", category: "ad", domains: ["*.fiftyt.com"], examples: ["visitor.fiftyt.com"] }, { name: "smadex", company: "entravision", homepage: "https://smadex.com/", category: "ad", domains: ["*.smadex.com"], examples: ["cm.smadex.com"], totalExecutionTime: 5, totalOccurrences: 1 }, { name: "AWX", company: "Trinity Mirror", category: "ad", domains: ["*.tm-awx.com"], examples: ["felix.data.tm-awx.com"], totalExecutionTime: 68744, totalOccurrences: 54 }, { name: "XPO", company: "Knorex", category: "ad", homepage: "https://www.knorex.com/", domains: ["*.brand-display.com"], examples: ["dmp.brand-display.com"], totalExecutionTime: 388629, totalOccurrences: 477 }, { name: "Viafoura", company: "Viafoura", category: "ad", homepage: "https:\
//viafoura.com/", domains: ["*.viafoura.co", "*.viafoura.net"], examples: ["api.viafoura.co", "cdn.viafoura.net"], totalExecutionTime: 307404, totalOccurrences: 446 }, { name: "Adnami", company: "Adnami", category: "ad", homepage: "https://www.adnami.io/", domains: ["*.adnami.io"], examples: ["macro.adnami.io"], totalExecutionTime: 272668, totalOccurrences: 1639 }, { name: "LiveRamp Privacy Manager", company: "LiveRamp", category: "ad", homepage: "https://liveramp.com/privacy-legal-compliance/", domains: ["*.privacymanager.io"], examples: ["geo.privacymanager.io"], totalExecutionTime: 6546055, totalOccurrences: 22295 }, { name: "Onfocus", company: "Onfocus SAS", category: "ad", domains: ["*.4dex.io"], examples: ["script.4dex.io"], totalExecutionTime: 4240761, totalOccurrences: 8836 }, { name: "viewTag", company: "Advanced Store", category: "ad", domains: ["*.ad4m.at"], examples: ["ad4m.at", "as.ad4m.at"], totalExecutionTime: 458, totalOccurrences: 21 }, { name: "MRP Prelytics", company: "\
Market Resource Partners", category: "ad", homepage: "https://www.mrpfd.com/", domains: ["*.mrpdata.net"], examples: ["j.mrpdata.net"] }, { name: "iPROM", company: "iPROM", category: "ad", homepage: "https://iprom.eu/", domains: ["*.iprom.net"], examples: ["core.iprom.net"], totalExecutionTime: 114801, totalOccurrences: 72099 }, { name: "Plausible", company: "Plausible", homepage: "https://plausible.io/", category: "analytics", domains: ["*.plausible.io"] }, { name: "Micro Analytics", company: "Micro Analytics", homepage: "https://microanalytics.io/", category: "analytics", domains: ["padmin.microanalytics.io", "www.microanalytics.io", "dev.microanalytics.io", "status.microanalytics.io"] }, { name: "Scale8", company: "Scale8", homepage: "https://scale8.com/", category: "analytics", domains: ["www.scale8.com", "api-dev.scale8.com", "cdn.scale8.com", "ui.scale8.com"] }, { name: "Cabin", company: "Cabin", homepage: "https://withcabin.com/", category: "analytics", domains: ["*.withcabin.co\
m"], totalExecutionTime: 3843, totalOccurrences: 100 }, { name: "Appcues", company: "Appcues", homepage: "https://www.appcues.com/", category: "analytics", domains: ["*.appcues.com"], totalExecutionTime: 2154145, totalOccurrences: 2831 }, { name: "Fathom Analytics", company: "Fathom", homepage: "https://usefathom.com/", category: "analytics", domains: ["*.usefathom.com"], totalExecutionTime: 145389, totalOccurrences: 1141 }, { name: "Clearbit", company: "Clearbit", homepage: "https://clearbit.com/", category: "analytics", domains: ["*.clearbitjs.com", "*.clearbitscripts.com", "*.clearbit.com"], totalExecutionTime: 967253, totalOccurrences: 4171 }, { name: "G2", company: "G2", homepage: "https://www.g2.com/", category: "utility", domains: ["*.g2.com", "*.g2crowd.com"], totalExecutionTime: 195752, totalOccurrences: 406 }, { name: "Navu", company: "Navu", homepage: "https://navu.co/", category: "ad", domains: ["*.navu.co"] }, { name: "InZynk", company: "InZynk", homepage: "https://inzynk.\
com/", category: "ad", domains: ["*.inzynk.com", "*.inzynk.io"], totalExecutionTime: 541, totalOccurrences: 8 }, { name: "Integrate", company: "Integrate", homepage: "https://www.integrate.com/", category: "ad", domains: ["*.integrate.com", "*.listenloop.com"], totalExecutionTime: 14260, totalOccurrences: 39 }, { name: "Ad Lightning", company: "Boltive", homepage: "https://www.adlightning.com/", category: "ad", domains: ["*.adlightning.com"], totalExecutionTime: 6879067, totalOccurrences: 3795 }, { name: "GeoEdge", company: "GeoEdge", homepage: "https://www.geoedge.com/", category: "ad", domains: ["*.geoedge.com", "*.geoedge.be"], totalExecutionTime: 1039615, totalOccurrences: 1796 }, { name: "Doofinder", company: "Doofinder", homepage: "https://www.doofinder.com/", category: "utility", domains: ["cdn.doofinder.com"], totalExecutionTime: 1750777, totalOccurrences: 12550 }, { name: "Revlifter", company: "Revlifter", homepage: "https://www.revlifter.com/", category: "utility", domains: [
    "assets.revlifter.com"] }, { name: "Didomi", company: "Didomi", homepage: "https://www.didomi.io/", category: "consent-provider", domains: ["sdk.privacy-center.org", "api.privacy-center.org"], totalExecutionTime: 85132161, totalOccurrences: 84206 }, { name: "Pubperf Analytics", company: "Pubperf", homepage: "https://www.pubperf.com/", category: "analytics", domains: ["*.pubperf.com"], totalExecutionTime: 51392, totalOccurrences: 400 }];
  }
});

// node_modules/@paulirish/trace_engine/node_modules/third-party-web/lib/index.js
var require_lib = __commonJS({
  "node_modules/@paulirish/trace_engine/node_modules/third-party-web/lib/index.js"(exports2, module2) {
    init_process_global();
    var { createAPIFromDataset } = require_create_entity_finder_api();
    var entities = require_entities();
    module2.exports = createAPIFromDataset(entities);
  }
});

// node_modules/@paulirish/trace_engine/third_party/third-party-web/third-party-web.js
var import_third_party_web;
var init_third_party_web = __esm({
  "node_modules/@paulirish/trace_engine/third_party/third-party-web/third-party-web.js"() {
    init_process_global();
    import_third_party_web = __toESM(require_lib(), 1);
  }
});

// node_modules/@paulirish/trace_engine/models/trace/types/Configuration.js
var Configuration_exports = {};
__export(Configuration_exports, {
  configToCacheKey: () => configToCacheKey,
  defaults: () => defaults
});
function configToCacheKey(config4) {
  return JSON.stringify(config4);
}
var defaults;
var init_Configuration = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/types/Configuration.js"() {
    init_process_global();
    defaults = /* @__PURE__ */ __name(() => ({
      showAllEvents: false,
      debugMode: false,
      maxInvalidationEventsPerEvent: 20,
      enableAnimationsFrameHandler: false
    }), "defaults");
    __name(configToCacheKey, "configToCacheKey");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/types/Extensions.js
var Extensions_exports = {};
__export(Extensions_exports, {
  extensionPalette: () => extensionPalette,
  isConsoleTimestampPayloadTrackEntry: () => isConsoleTimestampPayloadTrackEntry,
  isExtensionEntryObj: () => isExtensionEntryObj,
  isExtensionPayloadMarker: () => isExtensionPayloadMarker,
  isSyntheticExtensionEntry: () => isSyntheticExtensionEntry,
  isValidExtensionPayload: () => isValidExtensionPayload
});
function isExtensionPayloadMarker(payload) {
  return payload.dataType === "marker";
}
function isExtensionEntryObj(payload) {
  const hasTrack = "track" in payload && Boolean(payload.track);
  const validEntryType = payload.dataType === "track-entry" || payload.dataType === void 0;
  return validEntryType && hasTrack;
}
function isConsoleTimestampPayloadTrackEntry(payload) {
  return payload.url !== void 0 && payload.description !== void 0;
}
function isValidExtensionPayload(payload) {
  return isExtensionPayloadMarker(payload) || isExtensionEntryObj(payload) || isConsoleTimestampPayloadTrackEntry(payload);
}
function isSyntheticExtensionEntry(entry) {
  return entry.cat === "devtools.extension";
}
var extensionPalette;
var init_Extensions = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/types/Extensions.js"() {
    init_process_global();
    extensionPalette = [
      "primary",
      "primary-light",
      "primary-dark",
      "secondary",
      "secondary-light",
      "secondary-dark",
      "tertiary",
      "tertiary-light",
      "tertiary-dark",
      "error",
      "warning"
    ];
    __name(isExtensionPayloadMarker, "isExtensionPayloadMarker");
    __name(isExtensionEntryObj, "isExtensionEntryObj");
    __name(isConsoleTimestampPayloadTrackEntry, "isConsoleTimestampPayloadTrackEntry");
    __name(isValidExtensionPayload, "isValidExtensionPayload");
    __name(isSyntheticExtensionEntry, "isSyntheticExtensionEntry");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/types/File.js
var File_exports = {};
__export(File_exports, {
  DataOrigin: () => DataOrigin,
  EntriesLinkState: () => EntriesLinkState,
  EventKeyType: () => EventKeyType,
  isEntriesLinkAnnotation: () => isEntriesLinkAnnotation,
  isEntryLabelAnnotation: () => isEntryLabelAnnotation,
  isTimeRangeAnnotation: () => isTimeRangeAnnotation,
  traceEventKeyToValues: () => traceEventKeyToValues
});
function isTimeRangeAnnotation(annotation) {
  return annotation.type === "TIME_RANGE";
}
function isEntryLabelAnnotation(annotation) {
  return annotation.type === "ENTRY_LABEL";
}
function isEntriesLinkAnnotation(annotation) {
  return annotation.type === "ENTRIES_LINK";
}
function traceEventKeyToValues(key) {
  const parts = key.split("-");
  const type = parts[0];
  switch (type) {
    case EventKeyType.PROFILE_CALL:
      if (parts.length !== 5 || !parts.every((part, i) => i === 0 || typeof part === "number" || !isNaN(parseInt(part, 10)))) {
        throw new Error(`Invalid ProfileCallKey: ${key}`);
      }
      return {
        type: parts[0],
        processID: parseInt(parts[1], 10),
        threadID: parseInt(parts[2], 10),
        sampleIndex: parseInt(parts[3], 10),
        protocol: parseInt(parts[4], 10)
      };
    case EventKeyType.RAW_EVENT:
      if (parts.length !== 2 || !(typeof parts[1] === "number" || !isNaN(parseInt(parts[1], 10)))) {
        throw new Error(`Invalid RawEvent Key: ${key}`);
      }
      return {
        type: parts[0],
        rawIndex: parseInt(parts[1], 10)
      };
    case EventKeyType.SYNTHETIC_EVENT:
      if (parts.length !== 2 || !(typeof parts[1] === "number" || !isNaN(parseInt(parts[1], 10)))) {
        throw new Error(`Invalid SyntheticEvent Key: ${key}`);
      }
      return {
        type: parts[0],
        rawIndex: parseInt(parts[1], 10)
      };
    case EventKeyType.LEGACY_TIMELINE_FRAME: {
      if (parts.length !== 2 || Number.isNaN(parseInt(parts[1], 10))) {
        throw new Error(`Invalid LegacyTimelineFrame Key: ${key}`);
      }
      return {
        type,
        rawIndex: parseInt(parts[1], 10)
      };
    }
    default:
      throw new Error(`Unknown trace event key: ${key}`);
  }
}
var DataOrigin, EntriesLinkState, EventKeyType;
var init_File = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/types/File.js"() {
    init_process_global();
    (function(DataOrigin2) {
      DataOrigin2["CPU_PROFILE"] = "CPUProfile";
      DataOrigin2["TRACE_EVENTS"] = "TraceEvents";
    })(DataOrigin || (DataOrigin = {}));
    (function(EntriesLinkState2) {
      EntriesLinkState2["CREATION_NOT_STARTED"] = "creation_not_started";
      EntriesLinkState2["PENDING_TO_EVENT"] = "pending_to_event";
      EntriesLinkState2["CONNECTED"] = "connected";
    })(EntriesLinkState || (EntriesLinkState = {}));
    (function(EventKeyType2) {
      EventKeyType2["RAW_EVENT"] = "r";
      EventKeyType2["SYNTHETIC_EVENT"] = "s";
      EventKeyType2["PROFILE_CALL"] = "p";
      EventKeyType2["LEGACY_TIMELINE_FRAME"] = "l";
    })(EventKeyType || (EventKeyType = {}));
    __name(isTimeRangeAnnotation, "isTimeRangeAnnotation");
    __name(isEntryLabelAnnotation, "isEntryLabelAnnotation");
    __name(isEntriesLinkAnnotation, "isEntriesLinkAnnotation");
    __name(traceEventKeyToValues, "traceEventKeyToValues");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/types/Overlays.js
var init_Overlays = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/types/Overlays.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/types/Timing.js
var Timing_exports = {};
__export(Timing_exports, {
  Micro: () => Micro,
  Milli: () => Milli,
  Seconds: () => Seconds
});
function Micro(value) {
  return value;
}
function Milli(value) {
  return value;
}
function Seconds(value) {
  return value;
}
var init_Timing = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/types/Timing.js"() {
    init_process_global();
    __name(Micro, "Micro");
    __name(Milli, "Milli");
    __name(Seconds, "Seconds");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/types/TraceEvents.js
var TraceEvents_exports = {};
__export(TraceEvents_exports, {
  AuctionWorkletType: () => AuctionWorkletType,
  CallFrameID: () => CallFrameID,
  Categories: () => Categories,
  InvalidationEventType: () => InvalidationEventType,
  LayoutInvalidationReason: () => LayoutInvalidationReason,
  MarkerName: () => MarkerName,
  NO_NAVIGATION: () => NO_NAVIGATION,
  Name: () => Name,
  Phase: () => Phase,
  ProcessID: () => ProcessID,
  ProfileID: () => ProfileID,
  SampleIndex: () => SampleIndex,
  Scope: () => Scope,
  SelectorTimingsKey: () => SelectorTimingsKey,
  StyleRecalcInvalidationReason: () => StyleRecalcInvalidationReason,
  ThreadID: () => ThreadID,
  VALID_PROFILE_SOURCES: () => VALID_PROFILE_SOURCES,
  WorkerId: () => WorkerId,
  eventIsPageLoadEvent: () => eventIsPageLoadEvent,
  isAbortPostTaskCallback: () => isAbortPostTaskCallback,
  isActivateLayerTree: () => isActivateLayerTree,
  isAnimation: () => isAnimation,
  isAnimationFrameAsyncEnd: () => isAnimationFrameAsyncEnd,
  isAnimationFrameAsyncStart: () => isAnimationFrameAsyncStart,
  isAnimationFramePresentation: () => isAnimationFramePresentation,
  isAnyLargestContentfulPaintCandidate: () => isAnyLargestContentfulPaintCandidate,
  isAnyScriptSourceEvent: () => isAnyScriptSourceEvent,
  isAuctionWorkletDoneWithProcess: () => isAuctionWorkletDoneWithProcess,
  isAuctionWorkletRunningInProcess: () => isAuctionWorkletRunningInProcess,
  isBegin: () => isBegin,
  isBeginCommitCompositorFrame: () => isBeginCommitCompositorFrame,
  isBeginFrame: () => isBeginFrame,
  isBeginMainThreadFrame: () => isBeginMainThreadFrame,
  isBeginRemoteFontLoad: () => isBeginRemoteFontLoad,
  isCommit: () => isCommit,
  isCommitLoad: () => isCommitLoad,
  isComplete: () => isComplete,
  isCompositeLayers: () => isCompositeLayers,
  isConsoleRunTask: () => isConsoleRunTask,
  isConsoleTime: () => isConsoleTime,
  isConsoleTimeStamp: () => isConsoleTimeStamp,
  isDOMStats: () => isDOMStats,
  isDebuggerAsyncTaskRun: () => isDebuggerAsyncTaskRun,
  isDebuggerAsyncTaskScheduled: () => isDebuggerAsyncTaskScheduled,
  isDecodeImage: () => isDecodeImage,
  isDecodeLazyPixelRef: () => isDecodeLazyPixelRef,
  isDidCommitSameDocumentNavigation: () => isDidCommitSameDocumentNavigation,
  isDispatch: () => isDispatch,
  isDisplayListItemListSnapshot: () => isDisplayListItemListSnapshot,
  isDomLoading: () => isDomLoading,
  isDrawFrame: () => isDrawFrame,
  isDrawLazyPixelRef: () => isDrawLazyPixelRef,
  isDroppedFrame: () => isDroppedFrame,
  isEnd: () => isEnd,
  isEventTiming: () => isEventTiming,
  isEventTimingEnd: () => isEventTimingEnd,
  isEventTimingStart: () => isEventTimingStart,
  isFireAnimationFrame: () => isFireAnimationFrame,
  isFireIdleCallback: () => isFireIdleCallback,
  isFirstContentfulPaint: () => isFirstContentfulPaint,
  isFirstPaint: () => isFirstPaint,
  isFlowPhase: () => isFlowPhase,
  isFlowPhaseEvent: () => isFlowPhaseEvent,
  isFrameCommittedInBrowser: () => isFrameCommittedInBrowser,
  isFunctionCall: () => isFunctionCall,
  isGPUTask: () => isGPUTask,
  isHandlePostMessage: () => isHandlePostMessage,
  isInstant: () => isInstant,
  isInteractiveTime: () => isInteractiveTime,
  isInvalidateLayout: () => isInvalidateLayout,
  isInvalidationTracking: () => isInvalidationTracking,
  isJSInvocationEvent: () => isJSInvocationEvent,
  isJSSample: () => isJSSample,
  isLargestImagePaintCandidate: () => isLargestImagePaintCandidate,
  isLargestTextPaintCandidate: () => isLargestTextPaintCandidate,
  isLayerTreeHostImplSnapshot: () => isLayerTreeHostImplSnapshot,
  isLayout: () => isLayout,
  isLayoutImageUnsized: () => isLayoutImageUnsized,
  isLayoutInvalidationTracking: () => isLayoutInvalidationTracking,
  isLayoutShift: () => isLayoutShift,
  isLegacyScreenshot: () => isLegacyScreenshot,
  isLegacySyntheticScreenshot: () => isLegacySyntheticScreenshot,
  isLegacyTimelineFrame: () => isLegacyTimelineFrame,
  isLinkPreconnect: () => isLinkPreconnect,
  isMainFrameViewport: () => isMainFrameViewport,
  isMarkDOMContent: () => isMarkDOMContent,
  isMarkLoad: () => isMarkLoad,
  isMarkerEvent: () => isMarkerEvent,
  isMetaCharsetCheck: () => isMetaCharsetCheck,
  isNavigationStart: () => isNavigationStart,
  isNeedsBeginFrameChanged: () => isNeedsBeginFrameChanged,
  isNestableAsyncPhase: () => isNestableAsyncPhase,
  isNetworkTrackEntry: () => isNetworkTrackEntry,
  isPaint: () => isPaint,
  isPaintImage: () => isPaintImage,
  isPairableAsyncBegin: () => isPairableAsyncBegin,
  isPairableAsyncEnd: () => isPairableAsyncEnd,
  isPairableAsyncInstant: () => isPairableAsyncInstant,
  isParseAuthorStyleSheetEvent: () => isParseAuthorStyleSheetEvent,
  isParseHTML: () => isParseHTML,
  isParseMetaViewport: () => isParseMetaViewport,
  isPerformanceMark: () => isPerformanceMark,
  isPerformanceMeasure: () => isPerformanceMeasure,
  isPerformanceMeasureBegin: () => isPerformanceMeasureBegin,
  isPhaseAsync: () => isPhaseAsync,
  isPipelineReporter: () => isPipelineReporter,
  isPrePaint: () => isPrePaint,
  isPreloadRenderBlockingStatusChangeEvent: () => isPreloadRenderBlockingStatusChangeEvent,
  isProcessName: () => isProcessName,
  isProfile: () => isProfile,
  isProfileCall: () => isProfileCall,
  isProfileChunk: () => isProfileChunk,
  isRasterTask: () => isRasterTask,
  isRecalcStyle: () => isRecalcStyle,
  isReceivedDataEvent: () => isReceivedDataEvent,
  isRemoteFontLoaded: () => isRemoteFontLoaded,
  isRenderFrameImplCreateChildFrame: () => isRenderFrameImplCreateChildFrame,
  isRendererEvent: () => isRendererEvent,
  isRequestIdleCallback: () => isRequestIdleCallback,
  isRequestMainThreadFrame: () => isRequestMainThreadFrame,
  isResourceChangePriority: () => isResourceChangePriority,
  isResourceFinish: () => isResourceFinish,
  isResourceMarkAsCached: () => isResourceMarkAsCached,
  isResourceReceiveResponse: () => isResourceReceiveResponse,
  isResourceReceivedData: () => isResourceReceivedData,
  isResourceSendRequest: () => isResourceSendRequest,
  isResourceWillSendRequest: () => isResourceWillSendRequest,
  isRunPostTaskCallback: () => isRunPostTaskCallback,
  isRunTask: () => isRunTask,
  isRundownScript: () => isRundownScript,
  isRundownScriptCompiled: () => isRundownScriptCompiled,
  isRundownScriptSource: () => isRundownScriptSource,
  isRundownScriptSourceLarge: () => isRundownScriptSourceLarge,
  isSchedulePostMessage: () => isSchedulePostMessage,
  isSchedulePostTaskCallback: () => isSchedulePostTaskCallback,
  isScheduleStyleInvalidationTracking: () => isScheduleStyleInvalidationTracking,
  isScheduleStyleRecalculation: () => isScheduleStyleRecalculation,
  isScreenshot: () => isScreenshot,
  isScrollLayer: () => isScrollLayer,
  isSelectorStats: () => isSelectorStats,
  isSetLayerId: () => isSetLayerId,
  isSoftLargestContentfulPaintCandidate: () => isSoftLargestContentfulPaintCandidate,
  isSoftNavigationStart: () => isSoftNavigationStart,
  isStyleInvalidatorInvalidationTracking: () => isStyleInvalidatorInvalidationTracking,
  isStyleRecalcInvalidationTracking: () => isStyleRecalcInvalidationTracking,
  isSyntheticAnimation: () => isSyntheticAnimation,
  isSyntheticBased: () => isSyntheticBased,
  isSyntheticConsoleTiming: () => isSyntheticConsoleTiming,
  isSyntheticCpuProfile: () => isSyntheticCpuProfile,
  isSyntheticInteraction: () => isSyntheticInteraction,
  isSyntheticLayoutShift: () => isSyntheticLayoutShift,
  isSyntheticLayoutShiftCluster: () => isSyntheticLayoutShiftCluster,
  isSyntheticNetworkRequest: () => isSyntheticNetworkRequest,
  isSyntheticUserTiming: () => isSyntheticUserTiming,
  isSyntheticWebSocketConnection: () => isSyntheticWebSocketConnection,
  isThreadName: () => isThreadName,
  isTimerFire: () => isTimerFire,
  isTimerInstall: () => isTimerInstall,
  isTracingSessionIdForWorker: () => isTracingSessionIdForWorker,
  isTracingStartedInBrowser: () => isTracingStartedInBrowser,
  isUpdateCounters: () => isUpdateCounters,
  isUpdateLayer: () => isUpdateLayer,
  isUserTiming: () => isUserTiming,
  isUserTimingMeasure: () => isUserTimingMeasure,
  isV8Compile: () => isV8Compile,
  isWebSocketCreate: () => isWebSocketCreate,
  isWebSocketDestroy: () => isWebSocketDestroy,
  isWebSocketEvent: () => isWebSocketEvent,
  isWebSocketInfo: () => isWebSocketInfo,
  isWebSocketReceiveHandshakeResponse: () => isWebSocketReceiveHandshakeResponse,
  isWebSocketSendHandshakeRequest: () => isWebSocketSendHandshakeRequest,
  isWebSocketTraceEvent: () => isWebSocketTraceEvent,
  isWebSocketTransfer: () => isWebSocketTransfer,
  objectIsCallFrame: () => objectIsCallFrame,
  objectIsEvent: () => objectIsEvent
});
function isNestableAsyncPhase(phase) {
  return phase === Phase.ASYNC_NESTABLE_START || phase === Phase.ASYNC_NESTABLE_END || phase === Phase.ASYNC_NESTABLE_INSTANT;
}
function isPhaseAsync(phase) {
  return isNestableAsyncPhase(phase) || phase === Phase.ASYNC_BEGIN || phase === Phase.ASYNC_STEP_INTO || phase === Phase.ASYNC_END || phase === Phase.ASYNC_STEP_PAST;
}
function isFlowPhase(phase) {
  return phase === Phase.FLOW_START || phase === Phase.FLOW_STEP || phase === Phase.FLOW_END;
}
function objectIsEvent(obj) {
  return "cat" in obj && "name" in obj && "ts" in obj;
}
function objectIsCallFrame(object) {
  return "functionName" in object && typeof object.functionName === "string" && ("scriptId" in object && (typeof object.scriptId === "string" || typeof object.scriptId === "number")) && ("columnNumber" in object && typeof object.columnNumber === "number") && ("lineNumber" in object && typeof object.lineNumber === "number") && ("url" in object && typeof object.url === "string");
}
function isRunTask(event) {
  return event.name === Name.RUN_TASK && event.ph === Phase.COMPLETE;
}
function isAuctionWorkletRunningInProcess(event) {
  return event.name === "AuctionWorkletRunningInProcess";
}
function isAuctionWorkletDoneWithProcess(event) {
  return event.name === "AuctionWorkletDoneWithProcess";
}
function isLegacyScreenshot(event) {
  return event.name === Name.SCREENSHOT && "id" in event;
}
function isLegacySyntheticScreenshot(event) {
  return event.name === Name.SCREENSHOT && "dataUri" in (event.args ?? {});
}
function isScreenshot(event) {
  return event.name === Name.SCREENSHOT && "source_id" in (event.args ?? {});
}
function isSoftNavigationStart(event) {
  return event.name === Name.SOFT_NAVIGATION_START;
}
function isMarkerEvent(event) {
  if (event.ph === Phase.INSTANT || Phase.ASYNC_NESTABLE_INSTANT || event.ph === Phase.MARK) {
    return markerTypeGuards.some((fn) => fn(event));
  }
  return false;
}
function eventIsPageLoadEvent(event) {
  if (event.ph === Phase.INSTANT || Phase.ASYNC_NESTABLE_INSTANT || event.ph === Phase.MARK) {
    return pageLoadEventTypeGuards.some((fn) => fn(event));
  }
  return false;
}
function isTracingSessionIdForWorker(event) {
  return event.name === "TracingSessionIdForWorker";
}
function isScheduleStyleInvalidationTracking(event) {
  return event.name === Name.SCHEDULE_STYLE_INVALIDATION_TRACKING;
}
function isStyleRecalcInvalidationTracking(event) {
  return event.name === Name.STYLE_RECALC_INVALIDATION_TRACKING;
}
function isStyleInvalidatorInvalidationTracking(event) {
  return event.name === Name.STYLE_INVALIDATOR_INVALIDATION_TRACKING;
}
function isBeginCommitCompositorFrame(event) {
  return event.name === Name.BEGIN_COMMIT_COMPOSITOR_FRAME;
}
function isParseMetaViewport(event) {
  return event.name === Name.PARSE_META_VIEWPORT;
}
function isMetaCharsetCheck(event) {
  return event.name === Name.META_CHARSET_CHECK;
}
function isLinkPreconnect(event) {
  return event.name === Name.LINK_PRECONNECT;
}
function isScheduleStyleRecalculation(event) {
  return event.name === Name.SCHEDULE_STYLE_RECALCULATION;
}
function isRenderFrameImplCreateChildFrame(event) {
  return event.name === Name.RENDER_FRAME_IMPL_CREATE_CHILD_FRAME;
}
function isLayoutImageUnsized(event) {
  return event.name === Name.LAYOUT_IMAGE_UNSIZED;
}
function isPairableAsyncBegin(e) {
  return e.ph === Phase.ASYNC_NESTABLE_START;
}
function isPairableAsyncEnd(e) {
  return e.ph === Phase.ASYNC_NESTABLE_END;
}
function isPairableAsyncInstant(e) {
  return e.ph === Phase.ASYNC_NESTABLE_INSTANT;
}
function isAnimationFrameAsyncStart(data31) {
  return data31.name === Name.ANIMATION_FRAME && data31.ph === Phase.ASYNC_NESTABLE_START;
}
function isAnimationFrameAsyncEnd(data31) {
  return data31.name === Name.ANIMATION_FRAME && data31.ph === Phase.ASYNC_NESTABLE_END;
}
function isAnimationFramePresentation(data31) {
  return data31.name === Name.ANIMATION_FRAME_PRESENTATION;
}
function isPipelineReporter(event) {
  return event.name === Name.PIPELINE_REPORTER;
}
function isSyntheticBased(event) {
  return "rawSourceEvent" in event;
}
function isJSSample(event) {
  return event.name === Name.JS_SAMPLE;
}
function isSyntheticInteraction(event) {
  return Boolean("interactionId" in event && event.args?.data && "beginEvent" in event.args.data && "endEvent" in event.args.data);
}
function isDrawFrame(event) {
  return event.name === Name.DRAW_FRAME && event.ph === Phase.INSTANT;
}
function isBeginFrame(event) {
  return Boolean(event.name === Name.BEGIN_FRAME && event.args && "frameSeqId" in event.args);
}
function isDroppedFrame(event) {
  return Boolean(event.name === Name.DROPPED_FRAME && event.args && "frameSeqId" in event.args);
}
function isRequestMainThreadFrame(event) {
  return event.name === Name.REQUEST_MAIN_THREAD_FRAME;
}
function isBeginMainThreadFrame(event) {
  return event.name === Name.BEGIN_MAIN_THREAD_FRAME;
}
function isNeedsBeginFrameChanged(event) {
  return event.name === Name.NEEDS_BEGIN_FRAME_CHANGED;
}
function isCommit(event) {
  return Boolean(event.name === Name.COMMIT && event.args && "frameSeqId" in event.args);
}
function isRasterTask(event) {
  return event.name === Name.RASTER_TASK;
}
function isCompositeLayers(event) {
  return event.name === Name.COMPOSITE_LAYERS;
}
function isActivateLayerTree(event) {
  return event.name === Name.ACTIVATE_LAYER_TREE;
}
function isInvalidationTracking(event) {
  return isScheduleStyleInvalidationTracking(event) || isStyleRecalcInvalidationTracking(event) || isStyleInvalidatorInvalidationTracking(event) || isLayoutInvalidationTracking(event);
}
function isDrawLazyPixelRef(event) {
  return event.name === Name.DRAW_LAZY_PIXEL_REF;
}
function isDecodeLazyPixelRef(event) {
  return event.name === Name.DECODE_LAZY_PIXEL_REF;
}
function isDecodeImage(event) {
  return event.name === Name.DECODE_IMAGE;
}
function isSelectorStats(event) {
  return event.name === Name.SELECTOR_STATS;
}
function isRecalcStyle(event) {
  return event.name === Name.RECALC_STYLE;
}
function isLayout(event) {
  return event.name === Name.LAYOUT && Boolean(event.args && "beginData" in event.args);
}
function isInvalidateLayout(event) {
  return event.name === Name.INVALIDATE_LAYOUT;
}
function isDebuggerAsyncTaskScheduled(event) {
  return event.name === Name.DEBUGGER_ASYNC_TASK_SCHEDULED;
}
function isDebuggerAsyncTaskRun(event) {
  return event.name === Name.DEBUGGER_ASYNC_TASK_RUN;
}
function ProfileID(value) {
  return value;
}
function CallFrameID(value) {
  return value;
}
function SampleIndex(value) {
  return value;
}
function ProcessID(value) {
  return value;
}
function ThreadID(value) {
  return value;
}
function WorkerId(value) {
  return value;
}
function isComplete(event) {
  return event.ph === Phase.COMPLETE;
}
function isBegin(event) {
  return event.ph === Phase.BEGIN;
}
function isEnd(event) {
  return event.ph === Phase.END;
}
function isDispatch(event) {
  return event.name === "EventDispatch" && event.ph === Phase.COMPLETE;
}
function isInstant(event) {
  return event.ph === Phase.INSTANT;
}
function isRendererEvent(event) {
  return isInstant(event) || isComplete(event);
}
function isFireIdleCallback(event) {
  return event.name === "FireIdleCallback" && event.ph === Phase.COMPLETE;
}
function isSchedulePostMessage(event) {
  return event.name === Name.SCHEDULE_POST_MESSAGE;
}
function isHandlePostMessage(event) {
  return event.name === Name.HANDLE_POST_MESSAGE && event.ph === Phase.COMPLETE;
}
function isUpdateCounters(event) {
  return event.name === "UpdateCounters";
}
function isDOMStats(event) {
  return event.name === "DOMStats";
}
function isThreadName(event) {
  return event.name === Name.THREAD_NAME;
}
function isProcessName(event) {
  return event.name === "process_name";
}
function isTracingStartedInBrowser(event) {
  return event.name === Name.TRACING_STARTED_IN_BROWSER;
}
function isFrameCommittedInBrowser(event) {
  return event.name === "FrameCommittedInBrowser";
}
function isCommitLoad(event) {
  return event.name === "CommitLoad";
}
function isAnimation(event) {
  return event.name === "Animation" && event.cat.includes("devtools.timeline");
}
function isSyntheticAnimation(event) {
  if (event.name !== "Animation" || !event.cat.includes("devtools.timeline")) {
    return false;
  }
  const data31 = event.args?.data;
  if (!data31) {
    return false;
  }
  return "beginEvent" in data31 && "endEvent" in data31;
}
function isLayoutShift(event) {
  return event.name === Name.LAYOUT_SHIFT;
}
function isLayoutInvalidationTracking(event) {
  return event.name === Name.LAYOUT_INVALIDATION_TRACKING;
}
function isFirstContentfulPaint(event) {
  return event.name === Name.MARK_FCP;
}
function isAnyLargestContentfulPaintCandidate(event) {
  return event.name === Name.MARK_LCP_CANDIDATE || event.name === Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION;
}
function isSoftLargestContentfulPaintCandidate(event) {
  return event.name === Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION;
}
function isLargestImagePaintCandidate(event) {
  return event.name === "LargestImagePaint::Candidate";
}
function isLargestTextPaintCandidate(event) {
  return event.name === "LargestTextPaint::Candidate";
}
function isMarkLoad(event) {
  return event.name === Name.MARK_LOAD;
}
function isFirstPaint(event) {
  return event.name === Name.MARK_FIRST_PAINT;
}
function isMarkDOMContent(event) {
  return event.name === Name.MARK_DOM_CONTENT;
}
function isInteractiveTime(event) {
  return event.name === "InteractiveTime";
}
function isEventTiming(event) {
  return event.name === Name.EVENT_TIMING;
}
function isEventTimingEnd(event) {
  return isEventTiming(event) && event.ph === Phase.ASYNC_NESTABLE_END;
}
function isEventTimingStart(event) {
  return isEventTiming(event) && event.ph === Phase.ASYNC_NESTABLE_START;
}
function isGPUTask(event) {
  return event.name === "GPUTask";
}
function isProfile(event) {
  return event.name === Name.PROFILE;
}
function isSyntheticCpuProfile(event) {
  return event.name === Name.CPU_PROFILE && event.ph === Phase.COMPLETE;
}
function isProfileChunk(event) {
  return event.name === Name.PROFILE_CHUNK;
}
function isResourceChangePriority(event) {
  return event.name === "ResourceChangePriority";
}
function isResourceSendRequest(event) {
  return event.name === "ResourceSendRequest";
}
function isResourceReceiveResponse(event) {
  return event.name === "ResourceReceiveResponse";
}
function isResourceMarkAsCached(event) {
  return event.name === "ResourceMarkAsCached";
}
function isResourceFinish(event) {
  return event.name === "ResourceFinish";
}
function isResourceWillSendRequest(event) {
  return event.name === "ResourceWillSendRequest";
}
function isResourceReceivedData(event) {
  return event.name === "ResourceReceivedData";
}
function isReceivedDataEvent(event) {
  return event.name === "ResourceReceivedData" || event.name === "ResourceFinish" || event.name === "ResourceReceiveResponse";
}
function isSyntheticNetworkRequest(event) {
  return event.name === Name.SYNTHETIC_NETWORK_REQUEST;
}
function isSyntheticWebSocketConnection(event) {
  return event.name === "SyntheticWebSocketConnection";
}
function isNetworkTrackEntry(event) {
  return isSyntheticNetworkRequest(event) || isSyntheticWebSocketConnection(event) || isWebSocketTraceEvent(event);
}
function isPrePaint(event) {
  return event.name === "PrePaint";
}
function isNavigationStart(event) {
  return event.name === Name.NAVIGATION_START && event.args?.data?.documentLoaderURL !== "";
}
function isDidCommitSameDocumentNavigation(event) {
  return event.name === "RenderFrameHostImpl::DidCommitSameDocumentNavigation" && event.ph === Phase.COMPLETE;
}
function isMainFrameViewport(event) {
  return event.name === "PaintTimingVisualizer::Viewport";
}
function isSyntheticUserTiming(event) {
  if (event.cat !== "blink.user_timing") {
    return false;
  }
  const data31 = event.args?.data;
  if (!data31) {
    return false;
  }
  return "beginEvent" in data31 && "endEvent" in data31;
}
function isSyntheticConsoleTiming(event) {
  if (event.cat !== "blink.console") {
    return false;
  }
  const data31 = event.args?.data;
  if (!data31) {
    return false;
  }
  return "beginEvent" in data31 && "endEvent" in data31;
}
function isUserTiming(event) {
  return event.cat === "blink.user_timing";
}
function isDomLoading(event) {
  return event.name === Name.DOM_LOADING;
}
function isBeginRemoteFontLoad(event) {
  return event.name === Name.BEGIN_REMOTE_FONT_LOAD;
}
function isRemoteFontLoaded(event) {
  return event.name === Name.REMOTE_FONT_LOADED;
}
function isPerformanceMeasure(event) {
  return isUserTiming(event) && isPhaseAsync(event.ph);
}
function isPerformanceMeasureBegin(event) {
  return isPerformanceMeasure(event) && event.ph === Phase.ASYNC_NESTABLE_START;
}
function isPerformanceMark(event) {
  return isUserTiming(event) && (event.ph === Phase.MARK || event.ph === Phase.INSTANT);
}
function isConsoleTime(event) {
  return event.cat === "blink.console" && isPhaseAsync(event.ph);
}
function isConsoleTimeStamp(event) {
  return event.ph === Phase.INSTANT && event.name === Name.TIME_STAMP;
}
function isUserTimingMeasure(event) {
  return event.name === Name.USER_TIMING_MEASURE;
}
function isParseHTML(event) {
  return event.name === "ParseHTML";
}
function isSyntheticLayoutShift(event) {
  return event.name === Name.SYNTHETIC_LAYOUT_SHIFT;
}
function isSyntheticLayoutShiftCluster(event) {
  return event.name === Name.SYNTHETIC_LAYOUT_SHIFT_CLUSTER;
}
function isProfileCall(event) {
  return "callFrame" in event;
}
function isPaint(event) {
  return event.name === Name.PAINT;
}
function isPaintImage(event) {
  return event.name === Name.PAINT_IMAGE && event.ph === Phase.COMPLETE;
}
function isScrollLayer(event) {
  return event.name === Name.SCROLL_LAYER && event.ph === Phase.COMPLETE;
}
function isSetLayerId(event) {
  return event.name === Name.SET_LAYER_TREE_ID;
}
function isUpdateLayer(event) {
  return event.name === Name.UPDATE_LAYER;
}
function isDisplayListItemListSnapshot(event) {
  return event.name === Name.DISPLAY_ITEM_LIST_SNAPSHOT;
}
function isLayerTreeHostImplSnapshot(event) {
  return event.name === Name.LAYER_TREE_HOST_IMPL_SNAPSHOT;
}
function isFireAnimationFrame(event) {
  return event.name === Name.FIRE_ANIMATION_FRAME && event.ph === Phase.COMPLETE;
}
function isTimerInstall(event) {
  return event.name === Name.TIMER_INSTALL;
}
function isTimerFire(event) {
  return event.name === Name.TIMER_FIRE && event.ph === Phase.COMPLETE;
}
function isRequestIdleCallback(event) {
  return event.name === Name.REQUEST_IDLE_CALLBACK;
}
function isWebSocketCreate(event) {
  return event.name === Name.WEB_SOCKET_CREATE;
}
function isWebSocketInfo(event) {
  return event.name === Name.WEB_SOCKET_SEND_HANDSHAKE_REQUEST || event.name === Name.WEB_SOCKET_RECEIVE_HANDSHAKE_REQUEST || event.name === Name.WEB_SOCKET_DESTROY;
}
function isWebSocketTransfer(event) {
  return event.name === Name.WEB_SOCKET_SEND || event.name === Name.WEB_SOCKET_RECEIVE;
}
function isWebSocketSendHandshakeRequest(event) {
  return event.name === Name.WEB_SOCKET_SEND_HANDSHAKE_REQUEST;
}
function isWebSocketReceiveHandshakeResponse(event) {
  return event.name === Name.WEB_SOCKET_RECEIVE_HANDSHAKE_REQUEST;
}
function isWebSocketDestroy(event) {
  return event.name === Name.WEB_SOCKET_DESTROY;
}
function isWebSocketTraceEvent(event) {
  return isWebSocketCreate(event) || isWebSocketInfo(event) || isWebSocketTransfer(event);
}
function isWebSocketEvent(event) {
  return isWebSocketTraceEvent(event) || isSyntheticWebSocketConnection(event);
}
function isV8Compile(event) {
  return event.name === Name.COMPILE && event.ph === Phase.COMPLETE;
}
function isFunctionCall(event) {
  return event.name === Name.FUNCTION_CALL && event.ph === Phase.COMPLETE;
}
function isSchedulePostTaskCallback(event) {
  return event.name === Name.SCHEDULE_POST_TASK_CALLBACK;
}
function isRunPostTaskCallback(event) {
  return event.name === Name.RUN_POST_TASK_CALLBACK && event.ph === Phase.COMPLETE;
}
function isAbortPostTaskCallback(event) {
  return event.name === Name.ABORT_POST_TASK_CALLBACK && event.ph === Phase.COMPLETE;
}
function isJSInvocationEvent(event) {
  switch (event.name) {
    case Name.RUN_MICROTASKS:
    case Name.FUNCTION_CALL:
    // TODO(paulirish): Define types for these Evaluate* events
    case Name.EVALUATE_SCRIPT:
    case Name.EVALUATE_MODULE:
    case Name.EVENT_DISPATCH:
    case Name.V8_EXECUTE:
    case Name.V8_CONSOLE_RUN_TASK:
      return true;
  }
  if (event.name.startsWith("v8") || event.name.startsWith("V8")) {
    return true;
  }
  if (isConsoleRunTask(event)) {
    return true;
  }
  return false;
}
function isConsoleRunTask(event) {
  return event.name === Name.V8_CONSOLE_RUN_TASK;
}
function isFlowPhaseEvent(event) {
  return event.ph === Phase.FLOW_START || event.ph === Phase.FLOW_STEP || event.ph === Phase.FLOW_END;
}
function isParseAuthorStyleSheetEvent(event) {
  return event.name === Name.PARSE_AUTHOR_STYLE_SHEET && event.ph === Phase.COMPLETE;
}
function isLegacyTimelineFrame(data31) {
  return "idle" in data31 && typeof data31.idle === "boolean";
}
function isRundownScriptCompiled(event) {
  return event.cat === "disabled-by-default-devtools.target-rundown";
}
function isRundownScript(event) {
  return event.cat === "disabled-by-default-devtools.v8-source-rundown" && event.name === "ScriptCatchup";
}
function isRundownScriptSource(event) {
  return event.cat === "disabled-by-default-devtools.v8-source-rundown-sources" && event.name === "ScriptCatchup";
}
function isRundownScriptSourceLarge(event) {
  return event.cat === "disabled-by-default-devtools.v8-source-rundown-sources" && event.name === "LargeScriptCatchup";
}
function isAnyScriptSourceEvent(event) {
  return event.cat === "disabled-by-default-devtools.v8-source-rundown-sources";
}
function isPreloadRenderBlockingStatusChangeEvent(event) {
  return event.name === Name.PRELOAD_RENDER_BLOCKING_STATUS_CHANGE;
}
var Phase, Scope, VALID_PROFILE_SOURCES, AuctionWorkletType, markerTypeGuards, pageLoadEventTypeGuards, NO_NAVIGATION, LayoutInvalidationReason, StyleRecalcInvalidationReason, InvalidationEventType, SelectorTimingsKey, Name, MarkerName, Categories;
var init_TraceEvents = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/types/TraceEvents.js"() {
    init_process_global();
    (function(Phase2) {
      Phase2["BEGIN"] = "B";
      Phase2["END"] = "E";
      Phase2["COMPLETE"] = "X";
      Phase2["INSTANT"] = "I";
      Phase2["COUNTER"] = "C";
      Phase2["ASYNC_NESTABLE_START"] = "b";
      Phase2["ASYNC_NESTABLE_INSTANT"] = "n";
      Phase2["ASYNC_NESTABLE_END"] = "e";
      Phase2["ASYNC_STEP_INTO"] = "T";
      Phase2["ASYNC_BEGIN"] = "S";
      Phase2["ASYNC_END"] = "F";
      Phase2["ASYNC_STEP_PAST"] = "p";
      Phase2["FLOW_START"] = "s";
      Phase2["FLOW_STEP"] = "t";
      Phase2["FLOW_END"] = "f";
      Phase2["SAMPLE"] = "P";
      Phase2["OBJECT_CREATED"] = "N";
      Phase2["OBJECT_SNAPSHOT"] = "O";
      Phase2["OBJECT_DESTROYED"] = "D";
      Phase2["METADATA"] = "M";
      Phase2["MEMORY_DUMP_GLOBAL"] = "V";
      Phase2["MEMORY_DUMP_PROCESS"] = "v";
      Phase2["MARK"] = "R";
      Phase2["CLOCK_SYNC"] = "c";
    })(Phase || (Phase = {}));
    __name(isNestableAsyncPhase, "isNestableAsyncPhase");
    __name(isPhaseAsync, "isPhaseAsync");
    __name(isFlowPhase, "isFlowPhase");
    (function(Scope2) {
      Scope2["THREAD"] = "t";
      Scope2["PROCESS"] = "p";
      Scope2["GLOBAL"] = "g";
    })(Scope || (Scope = {}));
    __name(objectIsEvent, "objectIsEvent");
    __name(objectIsCallFrame, "objectIsCallFrame");
    VALID_PROFILE_SOURCES = ["Inspector", "SelfProfiling", "Internal"];
    __name(isRunTask, "isRunTask");
    (function(AuctionWorkletType2) {
      AuctionWorkletType2["BIDDER"] = "bidder";
      AuctionWorkletType2["SELLER"] = "seller";
      AuctionWorkletType2["UNKNOWN"] = "unknown";
    })(AuctionWorkletType || (AuctionWorkletType = {}));
    __name(isAuctionWorkletRunningInProcess, "isAuctionWorkletRunningInProcess");
    __name(isAuctionWorkletDoneWithProcess, "isAuctionWorkletDoneWithProcess");
    __name(isLegacyScreenshot, "isLegacyScreenshot");
    __name(isLegacySyntheticScreenshot, "isLegacySyntheticScreenshot");
    __name(isScreenshot, "isScreenshot");
    __name(isSoftNavigationStart, "isSoftNavigationStart");
    markerTypeGuards = [
      isMarkDOMContent,
      isMarkLoad,
      isFirstPaint,
      isFirstContentfulPaint,
      isAnyLargestContentfulPaintCandidate,
      isNavigationStart,
      isSoftNavigationStart
    ];
    __name(isMarkerEvent, "isMarkerEvent");
    pageLoadEventTypeGuards = [
      ...markerTypeGuards,
      isInteractiveTime
    ];
    __name(eventIsPageLoadEvent, "eventIsPageLoadEvent");
    __name(isTracingSessionIdForWorker, "isTracingSessionIdForWorker");
    NO_NAVIGATION = "NO_NAVIGATION";
    (function(LayoutInvalidationReason2) {
      LayoutInvalidationReason2["SIZE_CHANGED"] = "Size changed";
      LayoutInvalidationReason2["ATTRIBUTE"] = "Attribute";
      LayoutInvalidationReason2["ADDED_TO_LAYOUT"] = "Added to layout";
      LayoutInvalidationReason2["SCROLLBAR_CHANGED"] = "Scrollbar changed";
      LayoutInvalidationReason2["REMOVED_FROM_LAYOUT"] = "Removed from layout";
      LayoutInvalidationReason2["STYLE_CHANGED"] = "Style changed";
      LayoutInvalidationReason2["FONTS_CHANGED"] = "Fonts changed";
      LayoutInvalidationReason2["UNKNOWN"] = "Unknown";
    })(LayoutInvalidationReason || (LayoutInvalidationReason = {}));
    __name(isScheduleStyleInvalidationTracking, "isScheduleStyleInvalidationTracking");
    (function(StyleRecalcInvalidationReason2) {
      StyleRecalcInvalidationReason2["ANIMATION"] = "Animation";
      StyleRecalcInvalidationReason2["RELATED_STYLE_RULE"] = "Related style rule";
    })(StyleRecalcInvalidationReason || (StyleRecalcInvalidationReason = {}));
    __name(isStyleRecalcInvalidationTracking, "isStyleRecalcInvalidationTracking");
    __name(isStyleInvalidatorInvalidationTracking, "isStyleInvalidatorInvalidationTracking");
    __name(isBeginCommitCompositorFrame, "isBeginCommitCompositorFrame");
    __name(isParseMetaViewport, "isParseMetaViewport");
    __name(isMetaCharsetCheck, "isMetaCharsetCheck");
    __name(isLinkPreconnect, "isLinkPreconnect");
    __name(isScheduleStyleRecalculation, "isScheduleStyleRecalculation");
    __name(isRenderFrameImplCreateChildFrame, "isRenderFrameImplCreateChildFrame");
    __name(isLayoutImageUnsized, "isLayoutImageUnsized");
    __name(isPairableAsyncBegin, "isPairableAsyncBegin");
    __name(isPairableAsyncEnd, "isPairableAsyncEnd");
    __name(isPairableAsyncInstant, "isPairableAsyncInstant");
    __name(isAnimationFrameAsyncStart, "isAnimationFrameAsyncStart");
    __name(isAnimationFrameAsyncEnd, "isAnimationFrameAsyncEnd");
    __name(isAnimationFramePresentation, "isAnimationFramePresentation");
    __name(isPipelineReporter, "isPipelineReporter");
    __name(isSyntheticBased, "isSyntheticBased");
    __name(isJSSample, "isJSSample");
    __name(isSyntheticInteraction, "isSyntheticInteraction");
    __name(isDrawFrame, "isDrawFrame");
    __name(isBeginFrame, "isBeginFrame");
    __name(isDroppedFrame, "isDroppedFrame");
    __name(isRequestMainThreadFrame, "isRequestMainThreadFrame");
    __name(isBeginMainThreadFrame, "isBeginMainThreadFrame");
    __name(isNeedsBeginFrameChanged, "isNeedsBeginFrameChanged");
    __name(isCommit, "isCommit");
    __name(isRasterTask, "isRasterTask");
    __name(isCompositeLayers, "isCompositeLayers");
    __name(isActivateLayerTree, "isActivateLayerTree");
    __name(isInvalidationTracking, "isInvalidationTracking");
    __name(isDrawLazyPixelRef, "isDrawLazyPixelRef");
    __name(isDecodeLazyPixelRef, "isDecodeLazyPixelRef");
    __name(isDecodeImage, "isDecodeImage");
    (function(InvalidationEventType2) {
      InvalidationEventType2["StyleInvalidatorInvalidationTracking"] = "StyleInvalidatorInvalidationTracking";
      InvalidationEventType2["StyleRecalcInvalidationTracking"] = "StyleRecalcInvalidationTracking";
    })(InvalidationEventType || (InvalidationEventType = {}));
    (function(SelectorTimingsKey2) {
      SelectorTimingsKey2["Elapsed"] = "elapsed (us)";
      SelectorTimingsKey2["RejectPercentage"] = "reject_percentage";
      SelectorTimingsKey2["FastRejectCount"] = "fast_reject_count";
      SelectorTimingsKey2["MatchAttempts"] = "match_attempts";
      SelectorTimingsKey2["MatchCount"] = "match_count";
      SelectorTimingsKey2["Selector"] = "selector";
      SelectorTimingsKey2["StyleSheetId"] = "style_sheet_id";
      SelectorTimingsKey2["InvalidationCount"] = "invalidation_count";
    })(SelectorTimingsKey || (SelectorTimingsKey = {}));
    __name(isSelectorStats, "isSelectorStats");
    __name(isRecalcStyle, "isRecalcStyle");
    __name(isLayout, "isLayout");
    __name(isInvalidateLayout, "isInvalidateLayout");
    __name(isDebuggerAsyncTaskScheduled, "isDebuggerAsyncTaskScheduled");
    __name(isDebuggerAsyncTaskRun, "isDebuggerAsyncTaskRun");
    __name(ProfileID, "ProfileID");
    __name(CallFrameID, "CallFrameID");
    __name(SampleIndex, "SampleIndex");
    __name(ProcessID, "ProcessID");
    __name(ThreadID, "ThreadID");
    __name(WorkerId, "WorkerId");
    __name(isComplete, "isComplete");
    __name(isBegin, "isBegin");
    __name(isEnd, "isEnd");
    __name(isDispatch, "isDispatch");
    __name(isInstant, "isInstant");
    __name(isRendererEvent, "isRendererEvent");
    __name(isFireIdleCallback, "isFireIdleCallback");
    __name(isSchedulePostMessage, "isSchedulePostMessage");
    __name(isHandlePostMessage, "isHandlePostMessage");
    __name(isUpdateCounters, "isUpdateCounters");
    __name(isDOMStats, "isDOMStats");
    __name(isThreadName, "isThreadName");
    __name(isProcessName, "isProcessName");
    __name(isTracingStartedInBrowser, "isTracingStartedInBrowser");
    __name(isFrameCommittedInBrowser, "isFrameCommittedInBrowser");
    __name(isCommitLoad, "isCommitLoad");
    __name(isAnimation, "isAnimation");
    __name(isSyntheticAnimation, "isSyntheticAnimation");
    __name(isLayoutShift, "isLayoutShift");
    __name(isLayoutInvalidationTracking, "isLayoutInvalidationTracking");
    __name(isFirstContentfulPaint, "isFirstContentfulPaint");
    __name(isAnyLargestContentfulPaintCandidate, "isAnyLargestContentfulPaintCandidate");
    __name(isSoftLargestContentfulPaintCandidate, "isSoftLargestContentfulPaintCandidate");
    __name(isLargestImagePaintCandidate, "isLargestImagePaintCandidate");
    __name(isLargestTextPaintCandidate, "isLargestTextPaintCandidate");
    __name(isMarkLoad, "isMarkLoad");
    __name(isFirstPaint, "isFirstPaint");
    __name(isMarkDOMContent, "isMarkDOMContent");
    __name(isInteractiveTime, "isInteractiveTime");
    __name(isEventTiming, "isEventTiming");
    __name(isEventTimingEnd, "isEventTimingEnd");
    __name(isEventTimingStart, "isEventTimingStart");
    __name(isGPUTask, "isGPUTask");
    __name(isProfile, "isProfile");
    __name(isSyntheticCpuProfile, "isSyntheticCpuProfile");
    __name(isProfileChunk, "isProfileChunk");
    __name(isResourceChangePriority, "isResourceChangePriority");
    __name(isResourceSendRequest, "isResourceSendRequest");
    __name(isResourceReceiveResponse, "isResourceReceiveResponse");
    __name(isResourceMarkAsCached, "isResourceMarkAsCached");
    __name(isResourceFinish, "isResourceFinish");
    __name(isResourceWillSendRequest, "isResourceWillSendRequest");
    __name(isResourceReceivedData, "isResourceReceivedData");
    __name(isReceivedDataEvent, "isReceivedDataEvent");
    __name(isSyntheticNetworkRequest, "isSyntheticNetworkRequest");
    __name(isSyntheticWebSocketConnection, "isSyntheticWebSocketConnection");
    __name(isNetworkTrackEntry, "isNetworkTrackEntry");
    __name(isPrePaint, "isPrePaint");
    __name(isNavigationStart, "isNavigationStart");
    __name(isDidCommitSameDocumentNavigation, "isDidCommitSameDocumentNavigation");
    __name(isMainFrameViewport, "isMainFrameViewport");
    __name(isSyntheticUserTiming, "isSyntheticUserTiming");
    __name(isSyntheticConsoleTiming, "isSyntheticConsoleTiming");
    __name(isUserTiming, "isUserTiming");
    __name(isDomLoading, "isDomLoading");
    __name(isBeginRemoteFontLoad, "isBeginRemoteFontLoad");
    __name(isRemoteFontLoaded, "isRemoteFontLoaded");
    __name(isPerformanceMeasure, "isPerformanceMeasure");
    __name(isPerformanceMeasureBegin, "isPerformanceMeasureBegin");
    __name(isPerformanceMark, "isPerformanceMark");
    __name(isConsoleTime, "isConsoleTime");
    __name(isConsoleTimeStamp, "isConsoleTimeStamp");
    __name(isUserTimingMeasure, "isUserTimingMeasure");
    __name(isParseHTML, "isParseHTML");
    __name(isSyntheticLayoutShift, "isSyntheticLayoutShift");
    __name(isSyntheticLayoutShiftCluster, "isSyntheticLayoutShiftCluster");
    __name(isProfileCall, "isProfileCall");
    __name(isPaint, "isPaint");
    __name(isPaintImage, "isPaintImage");
    __name(isScrollLayer, "isScrollLayer");
    __name(isSetLayerId, "isSetLayerId");
    __name(isUpdateLayer, "isUpdateLayer");
    __name(isDisplayListItemListSnapshot, "isDisplayListItemListSnapshot");
    __name(isLayerTreeHostImplSnapshot, "isLayerTreeHostImplSnapshot");
    __name(isFireAnimationFrame, "isFireAnimationFrame");
    __name(isTimerInstall, "isTimerInstall");
    __name(isTimerFire, "isTimerFire");
    __name(isRequestIdleCallback, "isRequestIdleCallback");
    __name(isWebSocketCreate, "isWebSocketCreate");
    __name(isWebSocketInfo, "isWebSocketInfo");
    __name(isWebSocketTransfer, "isWebSocketTransfer");
    __name(isWebSocketSendHandshakeRequest, "isWebSocketSendHandshakeRequest");
    __name(isWebSocketReceiveHandshakeResponse, "isWebSocketReceiveHandshakeResponse");
    __name(isWebSocketDestroy, "isWebSocketDestroy");
    __name(isWebSocketTraceEvent, "isWebSocketTraceEvent");
    __name(isWebSocketEvent, "isWebSocketEvent");
    __name(isV8Compile, "isV8Compile");
    __name(isFunctionCall, "isFunctionCall");
    __name(isSchedulePostTaskCallback, "isSchedulePostTaskCallback");
    __name(isRunPostTaskCallback, "isRunPostTaskCallback");
    __name(isAbortPostTaskCallback, "isAbortPostTaskCallback");
    __name(isJSInvocationEvent, "isJSInvocationEvent");
    __name(isConsoleRunTask, "isConsoleRunTask");
    __name(isFlowPhaseEvent, "isFlowPhaseEvent");
    __name(isParseAuthorStyleSheetEvent, "isParseAuthorStyleSheetEvent");
    (function(Name2) {
      Name2["THREAD_NAME"] = "thread_name";
      Name2["PROGRAM"] = "Program";
      Name2["RUN_TASK"] = "RunTask";
      Name2["ASYNC_TASK"] = "AsyncTask";
      Name2["RUN_MICROTASKS"] = "RunMicrotasks";
      Name2["XHR_LOAD"] = "XHRLoad";
      Name2["XHR_READY_STATE_CHANGED"] = "XHRReadyStateChange";
      Name2["PARSE_HTML"] = "ParseHTML";
      Name2["PARSE_CSS"] = "ParseAuthorStyleSheet";
      Name2["COMPILE_CODE"] = "V8.CompileCode";
      Name2["COMPILE_MODULE"] = "V8.CompileModule";
      Name2["COMPILE"] = "v8.compile";
      Name2["COMPILE_SCRIPT"] = "V8.CompileScript";
      Name2["OPTIMIZE"] = "V8.OptimizeCode";
      Name2["WASM_STREAM_FROM_RESPONSE_CALLBACK"] = "v8.wasm.streamFromResponseCallback";
      Name2["WASM_COMPILED_MODULE"] = "v8.wasm.compiledModule";
      Name2["WASM_CACHED_MODULE"] = "v8.wasm.cachedModule";
      Name2["WASM_MODULE_CACHE_HIT"] = "v8.wasm.moduleCacheHit";
      Name2["WASM_MODULE_CACHE_INVALID"] = "v8.wasm.moduleCacheInvalid";
      Name2["PROFILE_CALL"] = "ProfileCall";
      Name2["EVALUATE_SCRIPT"] = "EvaluateScript";
      Name2["FUNCTION_CALL"] = "FunctionCall";
      Name2["EVENT_DISPATCH"] = "EventDispatch";
      Name2["EVALUATE_MODULE"] = "v8.evaluateModule";
      Name2["REQUEST_MAIN_THREAD_FRAME"] = "RequestMainThreadFrame";
      Name2["REQUEST_ANIMATION_FRAME"] = "RequestAnimationFrame";
      Name2["CANCEL_ANIMATION_FRAME"] = "CancelAnimationFrame";
      Name2["FIRE_ANIMATION_FRAME"] = "FireAnimationFrame";
      Name2["REQUEST_IDLE_CALLBACK"] = "RequestIdleCallback";
      Name2["CANCEL_IDLE_CALLBACK"] = "CancelIdleCallback";
      Name2["FIRE_IDLE_CALLBACK"] = "FireIdleCallback";
      Name2["TIMER_INSTALL"] = "TimerInstall";
      Name2["TIMER_REMOVE"] = "TimerRemove";
      Name2["TIMER_FIRE"] = "TimerFire";
      Name2["WEB_SOCKET_CREATE"] = "WebSocketCreate";
      Name2["WEB_SOCKET_SEND_HANDSHAKE"] = "WebSocketSendHandshakeRequest";
      Name2["WEB_SOCKET_RECEIVE_HANDSHAKE"] = "WebSocketReceiveHandshakeResponse";
      Name2["WEB_SOCKET_DESTROY"] = "WebSocketDestroy";
      Name2["WEB_SOCKET_SEND"] = "WebSocketSend";
      Name2["WEB_SOCKET_RECEIVE"] = "WebSocketReceive";
      Name2["CRYPTO_DO_ENCRYPT"] = "DoEncrypt";
      Name2["CRYPTO_DO_ENCRYPT_REPLY"] = "DoEncryptReply";
      Name2["CRYPTO_DO_DECRYPT"] = "DoDecrypt";
      Name2["CRYPTO_DO_DECRYPT_REPLY"] = "DoDecryptReply";
      Name2["CRYPTO_DO_DIGEST"] = "DoDigest";
      Name2["CRYPTO_DO_DIGEST_REPLY"] = "DoDigestReply";
      Name2["CRYPTO_DO_SIGN"] = "DoSign";
      Name2["CRYPTO_DO_SIGN_REPLY"] = "DoSignReply";
      Name2["CRYPTO_DO_VERIFY"] = "DoVerify";
      Name2["CRYPTO_DO_VERIFY_REPLY"] = "DoVerifyReply";
      Name2["V8_EXECUTE"] = "V8.Execute";
      Name2["V8_CONSOLE_RUN_TASK"] = "V8Console::runTask";
      Name2["SCHEDULE_POST_TASK_CALLBACK"] = "SchedulePostTaskCallback";
      Name2["RUN_POST_TASK_CALLBACK"] = "RunPostTaskCallback";
      Name2["ABORT_POST_TASK_CALLBACK"] = "AbortPostTaskCallback";
      Name2["DEBUGGER_ASYNC_TASK_RUN"] = "v8::Debugger::AsyncTaskRun";
      Name2["DEBUGGER_ASYNC_TASK_SCHEDULED"] = "v8::Debugger::AsyncTaskScheduled";
      Name2["GC"] = "GCEvent";
      Name2["DOMGC"] = "BlinkGC.AtomicPhase";
      Name2["MAJOR_GC"] = "MajorGC";
      Name2["MINOR_GC"] = "MinorGC";
      Name2["GC_COLLECT_GARBARGE"] = "BlinkGC.AtomicPhase";
      Name2["CPPGC_SWEEP"] = "CppGC.IncrementalSweep";
      Name2["SCHEDULE_STYLE_RECALCULATION"] = "ScheduleStyleRecalculation";
      Name2["LAYOUT"] = "Layout";
      Name2["RECALC_STYLE"] = "UpdateLayoutTree";
      Name2["INVALIDATE_LAYOUT"] = "InvalidateLayout";
      Name2["LAYOUT_INVALIDATION_TRACKING"] = "LayoutInvalidationTracking";
      Name2["COMPUTE_INTERSECTION"] = "ComputeIntersections";
      Name2["HIT_TEST"] = "HitTest";
      Name2["PRE_PAINT"] = "PrePaint";
      Name2["LAYERIZE"] = "Layerize";
      Name2["LAYOUT_SHIFT"] = "LayoutShift";
      Name2["SYNTHETIC_LAYOUT_SHIFT"] = "SyntheticLayoutShift";
      Name2["SYNTHETIC_LAYOUT_SHIFT_CLUSTER"] = "SyntheticLayoutShiftCluster";
      Name2["UPDATE_LAYER_TREE"] = "UpdateLayerTree";
      Name2["SCHEDULE_STYLE_INVALIDATION_TRACKING"] = "ScheduleStyleInvalidationTracking";
      Name2["STYLE_RECALC_INVALIDATION_TRACKING"] = "StyleRecalcInvalidationTracking";
      Name2["STYLE_INVALIDATOR_INVALIDATION_TRACKING"] = "StyleInvalidatorInvalidationTracking";
      Name2["SELECTOR_STATS"] = "SelectorStats";
      Name2["BEGIN_COMMIT_COMPOSITOR_FRAME"] = "BeginCommitCompositorFrame";
      Name2["PARSE_META_VIEWPORT"] = "ParseMetaViewport";
      Name2["META_CHARSET_CHECK"] = "MetaCharsetCheck";
      Name2["SCROLL_LAYER"] = "ScrollLayer";
      Name2["UPDATE_LAYER"] = "UpdateLayer";
      Name2["PAINT_SETUP"] = "PaintSetup";
      Name2["PAINT"] = "Paint";
      Name2["PAINT_IMAGE"] = "PaintImage";
      Name2["COMMIT"] = "Commit";
      Name2["COMPOSITE_LAYERS"] = "CompositeLayers";
      Name2["RASTER_TASK"] = "RasterTask";
      Name2["IMAGE_DECODE_TASK"] = "ImageDecodeTask";
      Name2["IMAGE_UPLOAD_TASK"] = "ImageUploadTask";
      Name2["DECODE_IMAGE"] = "Decode Image";
      Name2["DRAW_LAZY_PIXEL_REF"] = "Draw LazyPixelRef";
      Name2["DECODE_LAZY_PIXEL_REF"] = "Decode LazyPixelRef";
      Name2["GPU_TASK"] = "GPUTask";
      Name2["RASTERIZE"] = "Rasterize";
      Name2["EVENT_TIMING"] = "EventTiming";
      Name2["OPTIMIZE_CODE"] = "V8.OptimizeCode";
      Name2["CACHE_SCRIPT"] = "v8.produceCache";
      Name2["CACHE_MODULE"] = "v8.produceModuleCache";
      Name2["V8_SAMPLE"] = "V8Sample";
      Name2["JIT_CODE_ADDED"] = "JitCodeAdded";
      Name2["JIT_CODE_MOVED"] = "JitCodeMoved";
      Name2["STREAMING_COMPILE_SCRIPT"] = "v8.parseOnBackground";
      Name2["STREAMING_COMPILE_SCRIPT_WAITING"] = "v8.parseOnBackgroundWaiting";
      Name2["STREAMING_COMPILE_SCRIPT_PARSING"] = "v8.parseOnBackgroundParsing";
      Name2["BACKGROUND_DESERIALIZE"] = "v8.deserializeOnBackground";
      Name2["FINALIZE_DESERIALIZATION"] = "V8.FinalizeDeserialization";
      Name2["COMMIT_LOAD"] = "CommitLoad";
      Name2["MARK_LOAD"] = "MarkLoad";
      Name2["MARK_DOM_CONTENT"] = "MarkDOMContent";
      Name2["MARK_FIRST_PAINT"] = "firstPaint";
      Name2["MARK_FCP"] = "firstContentfulPaint";
      Name2["MARK_LCP_CANDIDATE"] = "largestContentfulPaint::Candidate";
      Name2["MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION"] = "largestContentfulPaint::CandidateForSoftNavigation";
      Name2["MARK_LCP_INVALIDATE"] = "largestContentfulPaint::Invalidate";
      Name2["NAVIGATION_START"] = "navigationStart";
      Name2["SOFT_NAVIGATION_START"] = "SoftNavigationStart";
      Name2["CONSOLE_TIME"] = "ConsoleTime";
      Name2["USER_TIMING"] = "UserTiming";
      Name2["INTERACTIVE_TIME"] = "InteractiveTime";
      Name2["TIME_STAMP"] = "TimeStamp";
      Name2["BEGIN_FRAME"] = "BeginFrame";
      Name2["NEEDS_BEGIN_FRAME_CHANGED"] = "NeedsBeginFrameChanged";
      Name2["BEGIN_MAIN_THREAD_FRAME"] = "BeginMainThreadFrame";
      Name2["ACTIVATE_LAYER_TREE"] = "ActivateLayerTree";
      Name2["DRAW_FRAME"] = "DrawFrame";
      Name2["DROPPED_FRAME"] = "DroppedFrame";
      Name2["FRAME_STARTED_LOADING"] = "FrameStartedLoading";
      Name2["PIPELINE_REPORTER"] = "PipelineReporter";
      Name2["SCREENSHOT"] = "Screenshot";
      Name2["RESOURCE_WILL_SEND_REQUEST"] = "ResourceWillSendRequest";
      Name2["RESOURCE_SEND_REQUEST"] = "ResourceSendRequest";
      Name2["RESOURCE_RECEIVE_RESPONSE"] = "ResourceReceiveResponse";
      Name2["RESOURCE_RECEIVE_DATA"] = "ResourceReceivedData";
      Name2["RESOURCE_FINISH"] = "ResourceFinish";
      Name2["RESOURCE_MARK_AS_CACHED"] = "ResourceMarkAsCached";
      Name2["WEB_SOCKET_SEND_HANDSHAKE_REQUEST"] = "WebSocketSendHandshakeRequest";
      Name2["WEB_SOCKET_RECEIVE_HANDSHAKE_REQUEST"] = "WebSocketReceiveHandshakeResponse";
      Name2["CPU_PROFILE"] = "CpuProfile";
      Name2["PROFILE"] = "Profile";
      Name2["START_PROFILING"] = "CpuProfiler::StartProfiling";
      Name2["PROFILE_CHUNK"] = "ProfileChunk";
      Name2["UPDATE_COUNTERS"] = "UpdateCounters";
      Name2["JS_SAMPLE"] = "JSSample";
      Name2["ANIMATION"] = "Animation";
      Name2["PARSE_AUTHOR_STYLE_SHEET"] = "ParseAuthorStyleSheet";
      Name2["EMBEDDER_CALLBACK"] = "EmbedderCallback";
      Name2["SET_LAYER_TREE_ID"] = "SetLayerTreeId";
      Name2["TRACING_STARTED_IN_PAGE"] = "TracingStartedInPage";
      Name2["TRACING_STARTED_IN_BROWSER"] = "TracingStartedInBrowser";
      Name2["TRACING_SESSION_ID_FOR_WORKER"] = "TracingSessionIdForWorker";
      Name2["LAZY_PIXEL_REF"] = "LazyPixelRef";
      Name2["LAYER_TREE_HOST_IMPL_SNAPSHOT"] = "cc::LayerTreeHostImpl";
      Name2["PICTURE_SNAPSHOT"] = "cc::Picture";
      Name2["DISPLAY_ITEM_LIST_SNAPSHOT"] = "cc::DisplayItemList";
      Name2["INPUT_LATENCY_MOUSE_MOVE"] = "InputLatency::MouseMove";
      Name2["INPUT_LATENCY_MOUSE_WHEEL"] = "InputLatency::MouseWheel";
      Name2["IMPL_SIDE_FLING"] = "InputHandlerProxy::HandleGestureFling::started";
      Name2["SCHEDULE_POST_MESSAGE"] = "SchedulePostMessage";
      Name2["HANDLE_POST_MESSAGE"] = "HandlePostMessage";
      Name2["RENDER_FRAME_IMPL_CREATE_CHILD_FRAME"] = "RenderFrameImpl::createChildFrame";
      Name2["LAYOUT_IMAGE_UNSIZED"] = "LayoutImageUnsized";
      Name2["DOM_LOADING"] = "domLoading";
      Name2["BEGIN_REMOTE_FONT_LOAD"] = "BeginRemoteFontLoad";
      Name2["REMOTE_FONT_LOADED"] = "RemoteFontLoaded";
      Name2["ANIMATION_FRAME"] = "AnimationFrame";
      Name2["ANIMATION_FRAME_PRESENTATION"] = "AnimationFrame::Presentation";
      Name2["SYNTHETIC_NETWORK_REQUEST"] = "SyntheticNetworkRequest";
      Name2["USER_TIMING_MEASURE"] = "UserTiming::Measure";
      Name2["LINK_PRECONNECT"] = "LinkPreconnect";
      Name2["PRELOAD_RENDER_BLOCKING_STATUS_CHANGE"] = "PreloadRenderBlockingStatusChange";
    })(Name || (Name = {}));
    MarkerName = [
      Name.MARK_DOM_CONTENT,
      Name.MARK_LOAD,
      Name.MARK_FIRST_PAINT,
      Name.MARK_FCP,
      Name.MARK_LCP_CANDIDATE,
      Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION,
      Name.NAVIGATION_START,
      Name.SOFT_NAVIGATION_START
    ];
    Categories = {
      Console: "blink.console",
      UserTiming: "blink.user_timing",
      Loading: "loading"
    };
    __name(isLegacyTimelineFrame, "isLegacyTimelineFrame");
    __name(isRundownScriptCompiled, "isRundownScriptCompiled");
    __name(isRundownScript, "isRundownScript");
    __name(isRundownScriptSource, "isRundownScriptSource");
    __name(isRundownScriptSourceLarge, "isRundownScriptSourceLarge");
    __name(isAnyScriptSourceEvent, "isAnyScriptSourceEvent");
    __name(isPreloadRenderBlockingStatusChangeEvent, "isPreloadRenderBlockingStatusChangeEvent");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/types/types.js
var init_types2 = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/types/types.js"() {
    init_process_global();
    init_Configuration();
    init_Extensions();
    init_File();
    init_Overlays();
    init_Timing();
    init_TraceEvents();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/helpers.js
var helpers_exports = {};
__export(helpers_exports, {
  addEventToEntityMapping: () => addEventToEntityMapping,
  addNetworkRequestToEntityMapping: () => addNetworkRequestToEntityMapping,
  getEntityForEvent: () => getEntityForEvent,
  getEntityForUrl: () => getEntityForUrl,
  getNonResolvedURL: () => getNonResolvedURL,
  makeUpEntity: () => makeUpEntity
});
function getEntityForEvent(event, entityMappings3) {
  const url = getNonResolvedURL(event);
  if (!url) {
    return;
  }
  return getEntityForUrl(url, entityMappings3);
}
function getEntityForUrl(url, entityMappings3) {
  const cachedByUrl = entityMappings3.entityByUrlCache.get(url);
  if (cachedByUrl) {
    return cachedByUrl;
  }
  const entity = import_third_party_web.default.getEntity(url) ?? makeUpEntity(entityMappings3.createdEntityCache, url);
  if (entity) {
    entityMappings3.entityByUrlCache.set(url, entity);
  }
  return entity;
}
function getNonResolvedURL(entry, handlerData) {
  if (TraceEvents_exports.isProfileCall(entry)) {
    return entry.callFrame.url;
  }
  if (TraceEvents_exports.isSyntheticNetworkRequest(entry)) {
    return entry.args.data.url;
  }
  if (TraceEvents_exports.isParseAuthorStyleSheetEvent(entry) && entry.args) {
    return entry.args.data.stylesheetUrl;
  }
  if (entry.args?.data?.stackTrace && entry.args.data.stackTrace.length > 0) {
    return entry.args.data.stackTrace[0].url;
  }
  if (TraceEvents_exports.isParseHTML(entry)) {
    return entry.args.beginData.url;
  }
  if (handlerData) {
    if (TraceEvents_exports.isDecodeImage(entry)) {
      const paintEvent = handlerData.ImagePainting.paintImageForEvent.get(entry);
      return paintEvent ? getNonResolvedURL(paintEvent, handlerData) : null;
    }
    if (TraceEvents_exports.isDrawLazyPixelRef(entry) && entry.args?.LazyPixelRef) {
      const paintEvent = handlerData.ImagePainting.paintImageByDrawLazyPixelRef.get(entry.args.LazyPixelRef);
      return paintEvent ? getNonResolvedURL(paintEvent, handlerData) : null;
    }
  }
  if (entry.args?.data?.url) {
    return entry.args.data.url;
  }
  const requestId = entry.args?.data?.requestId;
  if (handlerData && requestId) {
    const url = handlerData.NetworkRequests.byId.get(requestId)?.args.data.url;
    if (url) {
      return url;
    }
  }
  return null;
}
function makeUpEntity(entityCache, url) {
  if (url.startsWith("chrome-extension:")) {
    return makeUpChromeExtensionEntity(entityCache, url);
  }
  if (!url.startsWith("http")) {
    return;
  }
  const rootDomain = import_third_party_web.default.getRootDomain(url);
  if (!rootDomain) {
    return;
  }
  if (entityCache.has(rootDomain)) {
    return entityCache.get(rootDomain);
  }
  const unrecognizedEntity = {
    name: rootDomain,
    company: rootDomain,
    category: "",
    categories: [],
    domains: [rootDomain],
    averageExecutionTime: 0,
    totalExecutionTime: 0,
    totalOccurrences: 0,
    isUnrecognized: true
  };
  entityCache.set(rootDomain, unrecognizedEntity);
  return unrecognizedEntity;
}
function getChromeExtensionOrigin(url) {
  return url.protocol + "//" + url.host;
}
function makeUpChromeExtensionEntity(entityCache, url, extensionName) {
  const parsedUrl = new URL(url);
  const origin = getChromeExtensionOrigin(parsedUrl);
  const host = new URL(origin).host;
  const name = extensionName || host;
  const cachedEntity = entityCache.get(origin);
  if (cachedEntity) {
    return cachedEntity;
  }
  const chromeExtensionEntity = {
    name,
    company: name,
    category: "Chrome Extension",
    homepage: "https://chromewebstore.google.com/detail/" + host,
    categories: [],
    domains: [origin],
    averageExecutionTime: 0,
    totalExecutionTime: 0,
    totalOccurrences: 0
  };
  entityCache.set(origin, chromeExtensionEntity);
  return chromeExtensionEntity;
}
function addEventToEntityMapping(event, entityMappings3) {
  if (entityMappings3.entityByEvent.has(event)) {
    return;
  }
  const entity = getEntityForEvent(event, entityMappings3);
  if (!entity) {
    return;
  }
  const mappedEvents = entityMappings3.eventsByEntity.get(entity);
  if (mappedEvents) {
    mappedEvents.push(event);
  } else {
    entityMappings3.eventsByEntity.set(entity, [event]);
  }
  entityMappings3.entityByEvent.set(event, entity);
}
function addNetworkRequestToEntityMapping(networkRequest, entityMappings3, requestTraceEvents) {
  const entity = getEntityForEvent(networkRequest, entityMappings3);
  if (!entity) {
    return;
  }
  const eventsToMap = [networkRequest, ...Object.values(requestTraceEvents).flat()];
  const mappedEvents = entityMappings3.eventsByEntity.get(entity);
  if (mappedEvents) {
    mappedEvents.push(...eventsToMap);
  } else {
    entityMappings3.eventsByEntity.set(entity, eventsToMap);
  }
  for (const evt of eventsToMap) {
    entityMappings3.entityByEvent.set(evt, entity);
  }
}
var init_helpers = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/helpers.js"() {
    init_process_global();
    init_third_party_web();
    init_types2();
    __name(getEntityForEvent, "getEntityForEvent");
    __name(getEntityForUrl, "getEntityForUrl");
    __name(getNonResolvedURL, "getNonResolvedURL");
    __name(makeUpEntity, "makeUpEntity");
    __name(getChromeExtensionOrigin, "getChromeExtensionOrigin");
    __name(makeUpChromeExtensionEntity, "makeUpChromeExtensionEntity");
    __name(addEventToEntityMapping, "addEventToEntityMapping");
    __name(addNetworkRequestToEntityMapping, "addNetworkRequestToEntityMapping");
  }
});

// node_modules/@paulirish/trace_engine/core/platform/ArrayUtilities.js
var ArrayUtilities_exports = {};
__export(ArrayUtilities_exports, {
  DEFAULT_COMPARATOR: () => DEFAULT_COMPARATOR,
  arrayDoesNotContainNullOrUndefined: () => arrayDoesNotContainNullOrUndefined,
  assertArrayIsSorted: () => assertArrayIsSorted,
  binaryIndexOf: () => binaryIndexOf,
  intersectOrdered: () => intersectOrdered,
  lowerBound: () => lowerBound,
  mergeOrdered: () => mergeOrdered,
  nearestIndexFromBeginning: () => nearestIndexFromBeginning,
  nearestIndexFromEnd: () => nearestIndexFromEnd,
  removeElement: () => removeElement,
  sortRange: () => sortRange,
  swap: () => swap,
  upperBound: () => upperBound
});
function swap(array, i1, i2) {
  const temp = array[i1];
  array[i1] = array[i2];
  array[i2] = temp;
}
function partition(array, comparator, left, right, pivotIndex) {
  const pivotValue = array[pivotIndex];
  swap(array, right, pivotIndex);
  let storeIndex = left;
  for (let i = left; i < right; ++i) {
    if (comparator(array[i], pivotValue) < 0) {
      swap(array, storeIndex, i);
      ++storeIndex;
    }
  }
  swap(array, right, storeIndex);
  return storeIndex;
}
function quickSortRange(array, comparator, left, right, sortWindowLeft, sortWindowRight) {
  if (right <= left) {
    return;
  }
  const pivotIndex = Math.floor(Math.random() * (right - left)) + left;
  const pivotNewIndex = partition(array, comparator, left, right, pivotIndex);
  if (sortWindowLeft < pivotNewIndex) {
    quickSortRange(array, comparator, left, pivotNewIndex - 1, sortWindowLeft, sortWindowRight);
  }
  if (pivotNewIndex < sortWindowRight) {
    quickSortRange(array, comparator, pivotNewIndex + 1, right, sortWindowLeft, sortWindowRight);
  }
}
function sortRange(array, comparator, leftBound, rightBound, sortWindowLeft, sortWindowRight) {
  if (leftBound === 0 && rightBound === array.length - 1 && sortWindowLeft === 0 && sortWindowRight >= rightBound) {
    array.sort(comparator);
  } else {
    quickSortRange(array, comparator, leftBound, rightBound, sortWindowLeft, sortWindowRight);
  }
  return array;
}
function mergeOrIntersect(array1, array2, comparator, mergeNotIntersect) {
  const result = [];
  let i = 0;
  let j = 0;
  while (i < array1.length && j < array2.length) {
    const compareValue = comparator(array1[i], array2[j]);
    if (mergeNotIntersect || !compareValue) {
      result.push(compareValue <= 0 ? array1[i] : array2[j]);
    }
    if (compareValue <= 0) {
      i++;
    }
    if (compareValue >= 0) {
      j++;
    }
  }
  if (mergeNotIntersect) {
    while (i < array1.length) {
      result.push(array1[i++]);
    }
    while (j < array2.length) {
      result.push(array2[j++]);
    }
  }
  return result;
}
function lowerBound(array, needle, comparator, left, right) {
  let l = left || 0;
  let r = right !== void 0 ? right : array.length;
  while (l < r) {
    const m = l + r >> 1;
    if (comparator(needle, array[m]) > 0) {
      l = m + 1;
    } else {
      r = m;
    }
  }
  return r;
}
function upperBound(array, needle, comparator, left, right) {
  let l = left || 0;
  let r = right !== void 0 ? right : array.length;
  while (l < r) {
    const m = l + r >> 1;
    if (comparator(needle, array[m]) >= 0) {
      l = m + 1;
    } else {
      r = m;
    }
  }
  return r;
}
function nearestIndex(arr, predicate, searchStart) {
  const searchFromEnd = searchStart === "END";
  if (arr.length === 0) {
    return null;
  }
  let left = 0;
  let right = arr.length - 1;
  let pivot = 0;
  let matchesPredicate = false;
  let moveToTheRight = false;
  let middle = 0;
  do {
    middle = left + (right - left) / 2;
    pivot = searchFromEnd ? Math.ceil(middle) : Math.floor(middle);
    matchesPredicate = predicate(arr[pivot]);
    moveToTheRight = matchesPredicate === searchFromEnd;
    if (moveToTheRight) {
      left = Math.min(right, pivot + (left === pivot ? 1 : 0));
    } else {
      right = Math.max(left, pivot + (right === pivot ? -1 : 0));
    }
  } while (right !== left);
  if (!predicate(arr[left])) {
    return null;
  }
  return left;
}
function nearestIndexFromBeginning(arr, predicate) {
  return nearestIndex(
    arr,
    predicate,
    "BEGINNING"
    /* NearestSearchStart.BEGINNING */
  );
}
function nearestIndexFromEnd(arr, predicate) {
  return nearestIndex(
    arr,
    predicate,
    "END"
    /* NearestSearchStart.END */
  );
}
function arrayDoesNotContainNullOrUndefined(arr) {
  return !arr.includes(null) && !arr.includes(void 0);
}
function assertArrayIsSorted(arr, compareFn) {
  const comparator = compareFn || DEFAULT_COMPARATOR;
  for (let i = 0; i < arr.length - 1; i++) {
    const current = arr[i];
    const next = arr[i + 1];
    if (comparator(current, next) > 0) {
      throw new Error(`Array is not sorted at index ${i}: ${JSON.stringify(current)} > ${JSON.stringify(next)}`);
    }
  }
}
var removeElement, binaryIndexOf, intersectOrdered, mergeOrdered, DEFAULT_COMPARATOR;
var init_ArrayUtilities = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/ArrayUtilities.js"() {
    init_process_global();
    removeElement = /* @__PURE__ */ __name((array, element, firstOnly) => {
      let index = array.indexOf(element);
      if (index === -1) {
        return false;
      }
      if (firstOnly) {
        array.splice(index, 1);
        return true;
      }
      for (let i = index + 1, n = array.length; i < n; ++i) {
        if (array[i] !== element) {
          array[index++] = array[i];
        }
      }
      array.length = index;
      return true;
    }, "removeElement");
    __name(swap, "swap");
    __name(partition, "partition");
    __name(quickSortRange, "quickSortRange");
    __name(sortRange, "sortRange");
    binaryIndexOf = /* @__PURE__ */ __name((array, value, comparator) => {
      const index = lowerBound(array, value, comparator);
      return index < array.length && comparator(value, array[index]) === 0 ? index : -1;
    }, "binaryIndexOf");
    __name(mergeOrIntersect, "mergeOrIntersect");
    intersectOrdered = /* @__PURE__ */ __name((array1, array2, comparator) => {
      return mergeOrIntersect(array1, array2, comparator, false);
    }, "intersectOrdered");
    mergeOrdered = /* @__PURE__ */ __name((array1, array2, comparator) => {
      return mergeOrIntersect(array1, array2, comparator, true);
    }, "mergeOrdered");
    DEFAULT_COMPARATOR = /* @__PURE__ */ __name((a, b) => {
      return a < b ? -1 : a > b ? 1 : 0;
    }, "DEFAULT_COMPARATOR");
    __name(lowerBound, "lowerBound");
    __name(upperBound, "upperBound");
    __name(nearestIndex, "nearestIndex");
    __name(nearestIndexFromBeginning, "nearestIndexFromBeginning");
    __name(nearestIndexFromEnd, "nearestIndexFromEnd");
    __name(arrayDoesNotContainNullOrUndefined, "arrayDoesNotContainNullOrUndefined");
    __name(assertArrayIsSorted, "assertArrayIsSorted");
  }
});

// node_modules/@paulirish/trace_engine/core/platform/Brand.js
var init_Brand = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/Brand.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/Constructor.js
var init_Constructor = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/Constructor.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/DateUtilities.js
var init_DateUtilities = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/DateUtilities.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/DevToolsPath.js
var init_DevToolsPath = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/DevToolsPath.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/HostRuntime.js
var IS_NODE, IS_BROWSER;
var init_HostRuntime = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/HostRuntime.js"() {
    init_process_global();
    IS_NODE = typeof process !== "undefined" && process.versions?.node !== null;
    IS_BROWSER = // eslint-disable-next-line @typescript-eslint/ban-ts-comment
    // @ts-ignore 'window' is not available when type-checking against node.js types.
    typeof window !== "undefined" || typeof self !== "undefined" && typeof self.postMessage === "function";
  }
});

// node_modules/@paulirish/trace_engine/core/platform/KeyboardUtilities.js
var init_KeyboardUtilities = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/KeyboardUtilities.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/MapUtilities.js
var MapUtilities_exports = {};
__export(MapUtilities_exports, {
  Multimap: () => Multimap,
  getWithDefault: () => getWithDefault,
  inverse: () => inverse
});
function getWithDefault(map, key, defaultValueFactory) {
  let value = map.get(key);
  if (value === void 0 || value === null) {
    value = defaultValueFactory(key);
    map.set(key, value);
  }
  return value;
}
var inverse, Multimap;
var init_MapUtilities = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/MapUtilities.js"() {
    init_process_global();
    inverse = /* @__PURE__ */ __name(function(map) {
      const result = new Multimap();
      for (const [key, value] of map.entries()) {
        result.set(value, key);
      }
      return result;
    }, "inverse");
    Multimap = class {
      static {
        __name(this, "Multimap");
      }
      map = /* @__PURE__ */ new Map();
      set(key, value) {
        let set = this.map.get(key);
        if (!set) {
          set = /* @__PURE__ */ new Set();
          this.map.set(key, set);
        }
        set.add(value);
      }
      get(key) {
        return this.map.get(key) || /* @__PURE__ */ new Set();
      }
      has(key) {
        return this.map.has(key);
      }
      hasValue(key, value) {
        const set = this.map.get(key);
        if (!set) {
          return false;
        }
        return set.has(value);
      }
      get size() {
        return this.map.size;
      }
      delete(key, value) {
        const values = this.get(key);
        if (!values) {
          return false;
        }
        const result = values.delete(value);
        if (!values.size) {
          this.map.delete(key);
        }
        return result;
      }
      deleteAll(key) {
        this.map.delete(key);
      }
      keysArray() {
        return [...this.map.keys()];
      }
      keys() {
        return this.map.keys();
      }
      valuesArray() {
        const result = [];
        for (const set of this.map.values()) {
          result.push(...set.values());
        }
        return result;
      }
      clear() {
        this.map.clear();
      }
    };
    __name(getWithDefault, "getWithDefault");
  }
});

// node_modules/@paulirish/trace_engine/core/platform/MimeType.js
var init_MimeType = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/MimeType.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/NumberUtilities.js
var NumberUtilities_exports = {};
__export(NumberUtilities_exports, {
  aspectRatio: () => aspectRatio,
  clamp: () => clamp,
  floor: () => floor,
  greatestCommonDivisor: () => greatestCommonDivisor,
  mod: () => mod,
  toFixedIfFloating: () => toFixedIfFloating,
  withThousandsSeparator: () => withThousandsSeparator
});
var clamp, mod, toFixedIfFloating, floor, greatestCommonDivisor, commonRatios, aspectRatio, withThousandsSeparator;
var init_NumberUtilities = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/NumberUtilities.js"() {
    init_process_global();
    clamp = /* @__PURE__ */ __name((num, min, max) => {
      let clampedNumber = num;
      if (num < min) {
        clampedNumber = min;
      } else if (num > max) {
        clampedNumber = max;
      }
      return clampedNumber;
    }, "clamp");
    mod = /* @__PURE__ */ __name((m, n) => {
      return (m % n + n) % n;
    }, "mod");
    toFixedIfFloating = /* @__PURE__ */ __name((value) => {
      if (!value || Number.isNaN(Number(value))) {
        return value;
      }
      const number = Number(value);
      return number % 1 ? number.toFixed(3) : String(number);
    }, "toFixedIfFloating");
    floor = /* @__PURE__ */ __name((value, precision = 0) => {
      if (precision > 0 && precision < 1) {
        precision = 1 / precision;
        return Math.floor(value / precision) * precision;
      }
      const mult = Math.pow(10, precision);
      return Math.floor(value * mult) / mult;
    }, "floor");
    greatestCommonDivisor = /* @__PURE__ */ __name((a, b) => {
      a = Math.round(a);
      b = Math.round(b);
      while (b !== 0) {
        const t = b;
        b = a % b;
        a = t;
      }
      return a;
    }, "greatestCommonDivisor");
    commonRatios = /* @__PURE__ */ new Map([
      ["8∶5", "16∶10"]
    ]);
    aspectRatio = /* @__PURE__ */ __name((width, height) => {
      const divisor = greatestCommonDivisor(width, height);
      if (divisor !== 0) {
        width /= divisor;
        height /= divisor;
      }
      const result = `${width}∶${height}`;
      return commonRatios.get(result) || result;
    }, "aspectRatio");
    withThousandsSeparator = /* @__PURE__ */ __name(function(num) {
      let str = String(num);
      const re = /(\d+)(\d{3})/;
      while (str.match(re)) {
        str = str.replace(re, "$1 $2");
      }
      return str;
    }, "withThousandsSeparator");
  }
});

// node_modules/@paulirish/trace_engine/core/platform/StringUtilities.js
var init_StringUtilities = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/StringUtilities.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/Timing.js
var init_Timing2 = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/Timing.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/TypedArrayUtilities.js
var init_TypedArrayUtilities = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/TypedArrayUtilities.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/TypescriptUtilities.js
var TypescriptUtilities_exports = {};
__export(TypescriptUtilities_exports, {
  assertNever: () => assertNever,
  assertNotNullOrUndefined: () => assertNotNullOrUndefined,
  assertUnhandled: () => assertUnhandled
});
function assertNotNullOrUndefined(val, message) {
  if (val === null || val === void 0) {
    throw new Error(`Expected given value to not be null/undefined but it was: ${val}${message ? `
${message}` : ""}`);
  }
}
function assertNever(_type, message) {
  throw new Error(message);
}
function assertUnhandled(_caseVariable) {
  return _caseVariable;
}
var init_TypescriptUtilities = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/TypescriptUtilities.js"() {
    init_process_global();
    __name(assertNotNullOrUndefined, "assertNotNullOrUndefined");
    __name(assertNever, "assertNever");
    __name(assertUnhandled, "assertUnhandled");
  }
});

// node_modules/@paulirish/trace_engine/core/platform/UIString.js
var init_UIString = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/UIString.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/UserVisibleError.js
var init_UserVisibleError = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/UserVisibleError.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/core/platform/platform.js
var init_platform = __esm({
  "node_modules/@paulirish/trace_engine/core/platform/platform.js"() {
    init_process_global();
    init_ArrayUtilities();
    init_Brand();
    init_Constructor();
    init_DateUtilities();
    init_DevToolsPath();
    init_HostRuntime();
    init_KeyboardUtilities();
    init_MapUtilities();
    init_MimeType();
    init_NumberUtilities();
    init_StringUtilities();
    init_Timing2();
    init_TypedArrayUtilities();
    init_TypescriptUtilities();
    init_UIString();
    init_UserVisibleError();
    init_TypescriptUtilities();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/helpers/SyntheticEvents.js
var SyntheticEvents_exports = {};
__export(SyntheticEvents_exports, {
  SyntheticEventsManager: () => SyntheticEventsManager
});
var activeManager, SyntheticEventsManager;
var init_SyntheticEvents = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/helpers/SyntheticEvents.js"() {
    init_process_global();
    activeManager = null;
    SyntheticEventsManager = class _SyntheticEventsManager {
      static {
        __name(this, "SyntheticEventsManager");
      }
      /**
       * All synthetic entries created in a trace from a corresponding trace events.
       * (ProfileCalls are excluded because they are not based on a real trace event)
       */
      #syntheticTraces = [];
      /**
       * All raw entries from a trace.
       */
      #rawTraceEvents = [];
      static activate(manager) {
        activeManager = manager;
      }
      static createAndActivate(rawEvents) {
        const manager = new _SyntheticEventsManager(rawEvents);
        _SyntheticEventsManager.activate(manager);
        return manager;
      }
      static getActiveManager() {
        if (!activeManager) {
          throw new Error("Attempted to get a SyntheticEventsManager without initializing");
        }
        return activeManager;
      }
      static reset() {
        activeManager = null;
      }
      static registerSyntheticEvent(syntheticEvent) {
        try {
          return _SyntheticEventsManager.getActiveManager().#registerSyntheticEvent(syntheticEvent);
        } catch {
          return syntheticEvent;
        }
      }
      constructor(rawEvents) {
        this.#rawTraceEvents = rawEvents;
      }
      /**
       * Registers and returns a branded synthetic event. Synthetic events need to
       * be created with this method to ensure they are registered and made
       * available to load events using serialized keys.
       */
      #registerSyntheticEvent(syntheticEvent) {
        const rawIndex = this.#rawTraceEvents.indexOf(syntheticEvent.rawSourceEvent);
        if (rawIndex < 0) {
          throw new Error("Attempted to register a synthetic event paired to an unknown raw event.");
        }
        const eventAsSynthetic = syntheticEvent;
        this.#syntheticTraces[rawIndex] = eventAsSynthetic;
        return eventAsSynthetic;
      }
      syntheticEventForRawEventIndex(rawEventIndex) {
        const syntheticEvent = this.#syntheticTraces.at(rawEventIndex);
        if (!syntheticEvent) {
          throw new Error(`Attempted to get a synthetic event from an unknown raw event index: ${rawEventIndex}`);
        }
        return syntheticEvent;
      }
      getSyntheticTraces() {
        return this.#syntheticTraces;
      }
      getRawTraceEvents() {
        return this.#rawTraceEvents;
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/helpers/Timing.js
var Timing_exports3 = {};
__export(Timing_exports3, {
  boundsIncludeTimeRange: () => boundsIncludeTimeRange,
  combineTraceWindowsMicro: () => combineTraceWindowsMicro,
  eventIsInBounds: () => eventIsInBounds,
  eventTimingsMicroSeconds: () => eventTimingsMicroSeconds,
  eventTimingsMilliSeconds: () => eventTimingsMilliSeconds,
  expandWindowByPercentOrToOneMillisecond: () => expandWindowByPercentOrToOneMillisecond,
  microToMilli: () => microToMilli,
  microToSeconds: () => microToSeconds,
  milliToMicro: () => milliToMicro,
  secondsToMicro: () => secondsToMicro,
  secondsToMilli: () => secondsToMilli,
  timeStampForEventAdjustedByClosestNavigation: () => timeStampForEventAdjustedByClosestNavigation,
  timestampIsInBounds: () => timestampIsInBounds,
  traceWindowFromEvent: () => traceWindowFromEvent,
  traceWindowFromMicroSeconds: () => traceWindowFromMicroSeconds,
  traceWindowFromMilliSeconds: () => traceWindowFromMilliSeconds,
  traceWindowFromOverlay: () => traceWindowFromOverlay,
  traceWindowMicroSecondsToMilliSeconds: () => traceWindowMicroSecondsToMilliSeconds,
  traceWindowMilliSeconds: () => traceWindowMilliSeconds,
  windowFitsInsideBounds: () => windowFitsInsideBounds,
  windowsEqual: () => windowsEqual
});
function timeStampForEventAdjustedByClosestNavigation(event, traceBounds2, navigationsByNavigationId2, softNavigationsById2, navigationsByFrameId2) {
  let eventTimeStamp = event.ts - traceBounds2.min;
  if (event.name === TraceEvents_exports.Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION && event.args?.data?.performanceTimelineNavigationId) {
    const navigationForEvent = softNavigationsById2.get(event.args.data.performanceTimelineNavigationId);
    if (navigationForEvent) {
      eventTimeStamp = event.ts - navigationForEvent.ts;
    }
  } else if (event.args?.data?.navigationId) {
    const navigationForEvent = navigationsByNavigationId2.get(event.args.data.navigationId);
    if (navigationForEvent) {
      eventTimeStamp = event.ts - navigationForEvent.ts;
    }
  } else if (event.args?.data?.frame) {
    const navigationForEvent = getNavigationForTraceEvent(event, event.args.data.frame, navigationsByFrameId2);
    if (navigationForEvent) {
      eventTimeStamp = event.ts - navigationForEvent.ts;
    }
  }
  return Timing_exports.Micro(eventTimeStamp);
}
function expandWindowByPercentOrToOneMillisecond(annotationWindow, maxTraceWindow, percentage) {
  let newMin = annotationWindow.min - annotationWindow.range * (percentage / 100) / 2;
  let newMax = annotationWindow.max + annotationWindow.range * (percentage / 100) / 2;
  if (newMax - newMin < 1e3) {
    const rangeMiddle = (annotationWindow.min + annotationWindow.max) / 2;
    newMin = rangeMiddle - 500;
    newMax = rangeMiddle + 500;
  }
  newMin = Math.max(newMin, maxTraceWindow.min);
  newMax = Math.min(newMax, maxTraceWindow.max);
  const expandedWindow = {
    min: Timing_exports.Micro(newMin),
    max: Timing_exports.Micro(newMax),
    range: Timing_exports.Micro(newMax - newMin)
  };
  return expandedWindow;
}
function eventTimingsMicroSeconds(event) {
  return {
    startTime: event.ts,
    endTime: event.ts + (event.dur ?? 0),
    duration: event.dur || 0
  };
}
function eventTimingsMilliSeconds(event) {
  return {
    startTime: event.ts / 1e3,
    endTime: (event.ts + (event.dur ?? 0)) / 1e3,
    duration: (event.dur || 0) / 1e3
  };
}
function traceWindowMilliSeconds(bounds) {
  return {
    min: microToMilli(bounds.min),
    max: microToMilli(bounds.max),
    range: microToMilli(bounds.range)
  };
}
function traceWindowMicroSecondsToMilliSeconds(bounds) {
  return {
    min: microToMilli(bounds.min),
    max: microToMilli(bounds.max),
    range: microToMilli(bounds.range)
  };
}
function traceWindowFromMilliSeconds(min, max) {
  const traceWindow = {
    min: milliToMicro(min),
    max: milliToMicro(max),
    range: Timing_exports.Micro(milliToMicro(max) - milliToMicro(min))
  };
  return traceWindow;
}
function traceWindowFromMicroSeconds(min, max) {
  const traceWindow = {
    min,
    max,
    range: max - min
  };
  return traceWindow;
}
function traceWindowFromEvent(event) {
  return {
    min: event.ts,
    max: event.ts + (event.dur ?? 0),
    range: event.dur ?? 0
  };
}
function traceWindowFromOverlay(overlay) {
  switch (overlay.type) {
    case "ENTRY_LABEL":
    case "ENTRY_OUTLINE":
    case "ENTRY_SELECTED": {
      return traceWindowFromEvent(overlay.entry);
    }
    case "TIMESPAN_BREAKDOWN": {
      const windows = overlay.sections.map((s) => s.bounds);
      if (overlay.entry) {
        windows.push(traceWindowFromEvent(overlay.entry));
      }
      return combineTraceWindowsMicro(windows);
    }
    case "CANDY_STRIPED_TIME_RANGE":
    case "TIME_RANGE": {
      return structuredClone(overlay.bounds);
    }
    case "ENTRIES_LINK": {
      const from = traceWindowFromEvent(overlay.entryFrom);
      if (!overlay.entryTo) {
        return from;
      }
      const to = traceWindowFromEvent(overlay.entryTo);
      return combineTraceWindowsMicro([from, to]);
    }
    case "TIMESTAMP_MARKER":
      return traceWindowFromMicroSeconds(overlay.timestamp, overlay.timestamp);
    case "TIMINGS_MARKER":
      return traceWindowFromMicroSeconds(overlay.adjustedTimestamp, overlay.adjustedTimestamp);
    case "BOTTOM_INFO_BAR":
      return null;
    default:
      TypescriptUtilities_exports.assertNever(overlay, `Unexpected overlay ${overlay}`);
  }
}
function combineTraceWindowsMicro(windows) {
  if (!windows.length) {
    return null;
  }
  const result = structuredClone(windows[0]);
  for (const bounds of windows.slice(1)) {
    result.min = Math.min(result.min, bounds.min);
    result.max = Math.max(result.max, bounds.max);
  }
  result.range = result.max - result.min;
  return result;
}
function boundsIncludeTimeRange(data31) {
  const { min: visibleMin, max: visibleMax } = data31.bounds;
  const { min: rangeMin, max: rangeMax } = data31.timeRange;
  return visibleMin <= rangeMax && visibleMax >= rangeMin;
}
function eventIsInBounds(event, bounds) {
  const startTime = event.ts;
  return startTime <= bounds.max && bounds.min < startTime + (event.dur ?? 0);
}
function timestampIsInBounds(bounds, timestamp) {
  return timestamp >= bounds.min && timestamp <= bounds.max;
}
function windowFitsInsideBounds(data31) {
  return data31.window.min >= data31.bounds.min && data31.window.max <= data31.bounds.max;
}
function windowsEqual(w1, w2) {
  return w1.min === w2.min && w1.max === w2.max;
}
var milliToMicro, secondsToMilli, secondsToMicro, microToMilli, microToSeconds;
var init_Timing3 = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/helpers/Timing.js"() {
    init_process_global();
    init_platform();
    init_types2();
    init_Trace();
    milliToMicro = /* @__PURE__ */ __name((value) => Timing_exports.Micro(value * 1e3), "milliToMicro");
    secondsToMilli = /* @__PURE__ */ __name((value) => Timing_exports.Milli(value * 1e3), "secondsToMilli");
    secondsToMicro = /* @__PURE__ */ __name((value) => milliToMicro(secondsToMilli(value)), "secondsToMicro");
    microToMilli = /* @__PURE__ */ __name((value) => Timing_exports.Milli(value / 1e3), "microToMilli");
    microToSeconds = /* @__PURE__ */ __name((value) => Timing_exports.Seconds(value / 1e3 / 1e3), "microToSeconds");
    __name(timeStampForEventAdjustedByClosestNavigation, "timeStampForEventAdjustedByClosestNavigation");
    __name(expandWindowByPercentOrToOneMillisecond, "expandWindowByPercentOrToOneMillisecond");
    __name(eventTimingsMicroSeconds, "eventTimingsMicroSeconds");
    __name(eventTimingsMilliSeconds, "eventTimingsMilliSeconds");
    __name(traceWindowMilliSeconds, "traceWindowMilliSeconds");
    __name(traceWindowMicroSecondsToMilliSeconds, "traceWindowMicroSecondsToMilliSeconds");
    __name(traceWindowFromMilliSeconds, "traceWindowFromMilliSeconds");
    __name(traceWindowFromMicroSeconds, "traceWindowFromMicroSeconds");
    __name(traceWindowFromEvent, "traceWindowFromEvent");
    __name(traceWindowFromOverlay, "traceWindowFromOverlay");
    __name(combineTraceWindowsMicro, "combineTraceWindowsMicro");
    __name(boundsIncludeTimeRange, "boundsIncludeTimeRange");
    __name(eventIsInBounds, "eventIsInBounds");
    __name(timestampIsInBounds, "timestampIsInBounds");
    __name(windowFitsInsideBounds, "windowFitsInsideBounds");
    __name(windowsEqual, "windowsEqual");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/helpers/Trace.js
var Trace_exports = {};
__export(Trace_exports, {
  VISIBLE_TRACE_EVENT_TYPES: () => VISIBLE_TRACE_EVENT_TYPES,
  activeURLForFrameAtTime: () => activeURLForFrameAtTime,
  addEventToProcessThread: () => addEventToProcessThread,
  compareBeginAndEnd: () => compareBeginAndEnd,
  createMatchedSortedSyntheticEvents: () => createMatchedSortedSyntheticEvents,
  eventContainsTimestamp: () => eventContainsTimestamp,
  eventHasCategory: () => eventHasCategory,
  eventTimeComparator: () => eventTimeComparator,
  extractId: () => extractId,
  extractOriginFromTrace: () => extractOriginFromTrace,
  extractSampleTraceId: () => extractSampleTraceId,
  findNextEventAfterTimestamp: () => findNextEventAfterTimestamp,
  findPreviousEventBeforeTimestamp: () => findPreviousEventBeforeTimestamp,
  findRecalcStyleEvents: () => findRecalcStyleEvents,
  forEachEvent: () => forEachEvent,
  frameIDForEvent: () => frameIDForEvent,
  getNavigationForTraceEvent: () => getNavigationForTraceEvent,
  getStackTraceTopCallFrameInEventPayload: () => getStackTraceTopCallFrameInEventPayload,
  getSyntheticId: () => getSyntheticId,
  getZeroIndexedLineAndColumnForEvent: () => getZeroIndexedLineAndColumnForEvent,
  getZeroIndexedStackTraceInEventPayload: () => getZeroIndexedStackTraceInEventPayload,
  isExtensionUrl: () => isExtensionUrl,
  isMatchingCallFrame: () => isMatchingCallFrame,
  isTopLevelEvent: () => isTopLevelEvent,
  makeProfileCall: () => makeProfileCall,
  makeZeroBasedCallFrame: () => makeZeroBasedCallFrame,
  mergeEventsInOrder: () => mergeEventsInOrder,
  parseDevtoolsDetails: () => parseDevtoolsDetails,
  rawCallFrameForEntry: () => rawCallFrameForEntry,
  sortTraceEventsInPlace: () => sortTraceEventsInPlace,
  stackTraceInEvent: () => stackTraceInEvent
});
function stackTraceInEvent(event) {
  if (event.args?.data?.stackTrace) {
    return event.args.data.stackTrace;
  }
  if (event.args?.stackTrace) {
    return event.args.stackTrace;
  }
  if (TraceEvents_exports.isRecalcStyle(event)) {
    return event.args.beginData?.stackTrace || null;
  }
  if (TraceEvents_exports.isLayout(event)) {
    return event.args.beginData.stackTrace ?? null;
  }
  if (TraceEvents_exports.isFunctionCall(event)) {
    const data31 = event.args.data;
    if (!data31) {
      return null;
    }
    const { columnNumber, lineNumber, url, scriptId, functionName } = data31;
    if (lineNumber === void 0 || functionName === void 0 || columnNumber === void 0 || scriptId === void 0 || url === void 0) {
      return null;
    }
    return [{ columnNumber, lineNumber, url, scriptId, functionName }];
  }
  if (TraceEvents_exports.isProfileCall(event)) {
    const callFrame = event.callFrame;
    if (!callFrame) {
      return null;
    }
    const { columnNumber, lineNumber, url, scriptId, functionName } = callFrame;
    if (lineNumber === void 0 || functionName === void 0 || columnNumber === void 0 || scriptId === void 0 || url === void 0) {
      return null;
    }
    return [{ columnNumber, lineNumber, url, scriptId, functionName }];
  }
  return null;
}
function extractOriginFromTrace(firstNavigationURL) {
  const url = URL.parse(firstNavigationURL);
  if (url) {
    if (url.host.startsWith("www.")) {
      return url.host.slice(4);
    }
    return url.host;
  }
  return null;
}
function addEventToProcessThread(event, eventsInProcessThread2) {
  const { tid, pid } = event;
  let eventsInThread = eventsInProcessThread2.get(pid);
  if (!eventsInThread) {
    eventsInThread = /* @__PURE__ */ new Map();
  }
  let events = eventsInThread.get(tid);
  if (!events) {
    events = [];
  }
  events.push(event);
  eventsInThread.set(event.tid, events);
  eventsInProcessThread2.set(event.pid, eventsInThread);
}
function compareBeginAndEnd(aBeginTime, bBeginTime, aEndTime, bEndTime) {
  if (aBeginTime < bBeginTime) {
    return -1;
  }
  if (aBeginTime > bBeginTime) {
    return 1;
  }
  if (aEndTime > bEndTime) {
    return -1;
  }
  if (aEndTime < bEndTime) {
    return 1;
  }
  return 0;
}
function eventTimeComparator(a, b) {
  const aBeginTime = a.ts;
  const bBeginTime = b.ts;
  const aDuration = a.dur ?? 0;
  const bDuration = b.dur ?? 0;
  const aEndTime = aBeginTime + aDuration;
  const bEndTime = bBeginTime + bDuration;
  const timeDifference = compareBeginAndEnd(aBeginTime, bBeginTime, aEndTime, bEndTime);
  if (timeDifference) {
    return timeDifference;
  }
  if (TraceEvents_exports.isProfileCall(a) && !TraceEvents_exports.isProfileCall(b)) {
    return -1;
  }
  if (TraceEvents_exports.isProfileCall(b) && !TraceEvents_exports.isProfileCall(a)) {
    return 1;
  }
  return 0;
}
function sortTraceEventsInPlace(events) {
  events.sort(eventTimeComparator);
}
function mergeEventsInOrder(eventsArray1, eventsArray2) {
  const result = [];
  let i = 0;
  let j = 0;
  while (i < eventsArray1.length && j < eventsArray2.length) {
    const event1 = eventsArray1[i];
    const event2 = eventsArray2[j];
    const compareValue = eventTimeComparator(event1, event2);
    if (compareValue <= 0) {
      result.push(event1);
      i++;
    }
    if (compareValue === 1) {
      result.push(event2);
      j++;
    }
  }
  while (i < eventsArray1.length) {
    result.push(eventsArray1[i++]);
  }
  while (j < eventsArray2.length) {
    result.push(eventsArray2[j++]);
  }
  return result;
}
function parseDevtoolsDetails(timingDetail, key) {
  try {
    const detailObj = JSON.parse(timingDetail);
    if (!(key in detailObj)) {
      return null;
    }
    if (!Extensions_exports.isValidExtensionPayload(detailObj[key])) {
      return null;
    }
    return detailObj[key];
  } catch {
    return null;
  }
}
function getNavigationForTraceEvent(event, eventFrameId, navigationsByFrameId2) {
  const navigations = navigationsByFrameId2.get(eventFrameId);
  if (!navigations || eventFrameId === "") {
    return null;
  }
  const eventNavigationIndex = ArrayUtilities_exports.nearestIndexFromEnd(navigations, (navigation2) => navigation2.ts <= event.ts);
  if (eventNavigationIndex === null) {
    return null;
  }
  return navigations[eventNavigationIndex];
}
function extractId(event) {
  return event.id ?? event.id2?.global ?? event.id2?.local;
}
function activeURLForFrameAtTime(frameId, time, rendererProcessesByFrame) {
  const processData = rendererProcessesByFrame.get(frameId);
  if (!processData) {
    return null;
  }
  for (const processes2 of processData.values()) {
    for (const processInfo of processes2) {
      if (processInfo.window.min > time || processInfo.window.max < time) {
        continue;
      }
      return processInfo.frame.url;
    }
  }
  return null;
}
function makeProfileCall(node, profileId, sampleIndex, ts, pid, tid) {
  return {
    cat: "",
    name: "ProfileCall",
    nodeId: node.id,
    args: {},
    ph: TraceEvents_exports.Phase.COMPLETE,
    pid,
    tid,
    ts,
    dur: Timing_exports.Micro(0),
    callFrame: node.callFrame,
    sampleIndex,
    profileId
  };
}
function matchEvents(unpairedEvents) {
  sortTraceEventsInPlace(unpairedEvents);
  const matches = [];
  const beginEventsById = /* @__PURE__ */ new Map();
  const instantEventsById = /* @__PURE__ */ new Map();
  for (const event of unpairedEvents) {
    const id = getSyntheticId(event);
    if (id === void 0) {
      continue;
    }
    if (TraceEvents_exports.isPairableAsyncBegin(event)) {
      const existingEvents = beginEventsById.get(id) ?? [];
      existingEvents.push(event);
      beginEventsById.set(id, existingEvents);
    } else if (TraceEvents_exports.isPairableAsyncInstant(event)) {
      const existingEvents = instantEventsById.get(id) ?? [];
      existingEvents.push(event);
      instantEventsById.set(id, existingEvents);
    } else if (TraceEvents_exports.isPairableAsyncEnd(event)) {
      const beginEventsWithMatchingId = beginEventsById.get(id) ?? [];
      const beginEvent = beginEventsWithMatchingId.pop();
      if (!beginEvent) {
        continue;
      }
      const instantEventsWithMatchingId = instantEventsById.get(id) ?? [];
      const instantEventsForThisGroup = [];
      while (instantEventsWithMatchingId.length > 0) {
        if (instantEventsWithMatchingId[0].ts >= beginEvent.ts) {
          const event2 = instantEventsWithMatchingId.pop();
          if (event2) {
            instantEventsForThisGroup.push(event2);
          }
        } else {
          break;
        }
      }
      const matchingGroup = {
        begin: beginEvent,
        end: event,
        instant: instantEventsForThisGroup,
        syntheticId: id
      };
      matches.push(matchingGroup);
    }
  }
  for (const [id, beginEvents] of beginEventsById) {
    const beginEvent = beginEvents.pop();
    if (!beginEvent) {
      continue;
    }
    const matchingInstantEvents = instantEventsById.get(id);
    if (matchingInstantEvents?.length) {
      matches.push({
        syntheticId: id,
        begin: beginEvent,
        end: null,
        instant: matchingInstantEvents
      });
    }
  }
  return matches;
}
function getSyntheticId(event) {
  const id = extractId(event);
  return id && `${event.cat}:${id}:${event.name}`;
}
function createSortedSyntheticEvents(matchedPairs) {
  const syntheticEvents2 = [];
  for (const eventsTriplet of matchedPairs) {
    let eventsArePairable = function(data31) {
      const instantEventsMatch = data31.instantEvents ? data31.instantEvents.some((e) => id === getSyntheticId(e)) : false;
      const endEventMatch = data31.endEvent ? id === getSyntheticId(data31.endEvent) : false;
      return Boolean(id) && (instantEventsMatch || endEventMatch);
    };
    __name(eventsArePairable, "eventsArePairable");
    const id = eventsTriplet.syntheticId;
    const beginEvent = eventsTriplet.begin;
    const endEvent = eventsTriplet.end;
    const instantEvents = eventsTriplet.instant;
    if (!beginEvent || !(endEvent || instantEvents)) {
      continue;
    }
    const triplet = { beginEvent, endEvent, instantEvents };
    if (!eventsArePairable(triplet)) {
      continue;
    }
    const targetEvent = endEvent || beginEvent;
    const event = SyntheticEventsManager.registerSyntheticEvent({
      rawSourceEvent: triplet.beginEvent,
      cat: targetEvent.cat,
      ph: targetEvent.ph,
      pid: targetEvent.pid,
      tid: targetEvent.tid,
      id,
      // Both events have the same name, so it doesn't matter which we pick to
      // use as the description
      name: beginEvent.name,
      dur: Timing_exports.Micro(targetEvent.ts - beginEvent.ts),
      ts: beginEvent.ts,
      args: {
        data: triplet
      }
    });
    if (event.dur < 0) {
      continue;
    }
    syntheticEvents2.push(event);
  }
  sortTraceEventsInPlace(syntheticEvents2);
  return syntheticEvents2;
}
function createMatchedSortedSyntheticEvents(unpairedAsyncEvents2) {
  const matchedPairs = matchEvents(unpairedAsyncEvents2);
  const syntheticEvents2 = createSortedSyntheticEvents(matchedPairs);
  return syntheticEvents2;
}
function getZeroIndexedLineAndColumnForEvent(event) {
  const numbers = getRawLineAndColumnNumbersForEvent(event);
  const { lineNumber, columnNumber } = numbers;
  switch (event.name) {
    // All these events have line/column numbers which are 1 indexed; so we
    // subtract to make them 0 indexed.
    case TraceEvents_exports.Name.FUNCTION_CALL:
    case TraceEvents_exports.Name.EVALUATE_SCRIPT:
    case TraceEvents_exports.Name.COMPILE:
    case TraceEvents_exports.Name.CACHE_SCRIPT: {
      return {
        lineNumber: typeof lineNumber === "number" ? lineNumber - 1 : void 0,
        columnNumber: typeof columnNumber === "number" ? columnNumber - 1 : void 0
      };
    }
    case TraceEvents_exports.Name.PROFILE_CALL: {
      const callFrame = event.callFrame;
      return {
        lineNumber: typeof lineNumber === "number" ? callFrame.lineNumber - 1 : void 0,
        columnNumber: typeof columnNumber === "number" ? callFrame.columnNumber - 1 : void 0
      };
    }
    default: {
      return numbers;
    }
  }
}
function getZeroIndexedStackTraceInEventPayload(event) {
  const stack = stackTraceInEvent(event);
  if (!stack) {
    return null;
  }
  switch (event.name) {
    case TraceEvents_exports.Name.SCHEDULE_STYLE_RECALCULATION:
    case TraceEvents_exports.Name.INVALIDATE_LAYOUT:
    case TraceEvents_exports.Name.FUNCTION_CALL:
    case TraceEvents_exports.Name.LAYOUT:
    case TraceEvents_exports.Name.RECALC_STYLE: {
      return stack.map(makeZeroBasedCallFrame);
    }
    default: {
      if (TraceEvents_exports.isUserTiming(event) || Extensions_exports.isSyntheticExtensionEntry(event)) {
        return stack.map(makeZeroBasedCallFrame);
      }
      return stack;
    }
  }
}
function getStackTraceTopCallFrameInEventPayload(event) {
  const stack = stackTraceInEvent(event);
  if (!stack || stack.length === 0) {
    return null;
  }
  switch (event.name) {
    case TraceEvents_exports.Name.SCHEDULE_STYLE_RECALCULATION:
    case TraceEvents_exports.Name.INVALIDATE_LAYOUT:
    case TraceEvents_exports.Name.FUNCTION_CALL:
    case TraceEvents_exports.Name.LAYOUT:
    case TraceEvents_exports.Name.RECALC_STYLE: {
      return makeZeroBasedCallFrame(stack[0]);
    }
    default: {
      if (TraceEvents_exports.isUserTiming(event) || Extensions_exports.isSyntheticExtensionEntry(event)) {
        return makeZeroBasedCallFrame(stack[0]);
      }
      return stack[0];
    }
  }
}
function rawCallFrameForEntry(entry) {
  if (TraceEvents_exports.isProfileCall(entry)) {
    return entry.callFrame;
  }
  const topCallFrame = getStackTraceTopCallFrameInEventPayload(entry);
  if (topCallFrame) {
    return topCallFrame;
  }
  return null;
}
function makeZeroBasedCallFrame(callFrame) {
  const normalizedCallFrame = { ...callFrame };
  normalizedCallFrame.lineNumber = callFrame.lineNumber && callFrame.lineNumber - 1;
  normalizedCallFrame.columnNumber = callFrame.columnNumber && callFrame.columnNumber - 1;
  return normalizedCallFrame;
}
function getRawLineAndColumnNumbersForEvent(event) {
  if (!event.args?.data) {
    return {};
  }
  let lineNumber = void 0;
  let columnNumber = void 0;
  if ("lineNumber" in event.args.data && typeof event.args.data.lineNumber === "number") {
    lineNumber = event.args.data.lineNumber;
  }
  if ("columnNumber" in event.args.data && typeof event.args.data.columnNumber === "number") {
    columnNumber = event.args.data.columnNumber;
  }
  return { lineNumber, columnNumber };
}
function frameIDForEvent(event) {
  if (event.args && "beginData" in event.args && typeof event.args.beginData === "object" && event.args.beginData !== null && "frame" in event.args.beginData && typeof event.args.beginData.frame === "string") {
    return event.args.beginData.frame;
  }
  if (event.args?.data?.frame) {
    return event.args.data.frame;
  }
  return null;
}
function isTopLevelEvent(event) {
  return event.cat.includes(DevToolsTimelineEventCategory) && event.name === TraceEvents_exports.Name.RUN_TASK;
}
function isExtensionUrl(url) {
  return url.startsWith("extensions:") || url.startsWith("chrome-extension:");
}
function topLevelEventIndexEndingAfter(events, time) {
  let index = ArrayUtilities_exports.upperBound(events, time, (time2, event) => time2 - event.ts) - 1;
  while (index > 0 && !isTopLevelEvent(events[index])) {
    index--;
  }
  return Math.max(index, 0);
}
function findRecalcStyleEvents(events, startTime, endTime) {
  const foundEvents = [];
  const startEventIndex = topLevelEventIndexEndingAfter(events, startTime);
  for (let i = startEventIndex; i < events.length; i++) {
    const event = events[i];
    if (!TraceEvents_exports.isRecalcStyle(event)) {
      continue;
    }
    if (event.ts >= (endTime || Infinity)) {
      continue;
    }
    foundEvents.push(event);
  }
  return foundEvents;
}
function findNextEventAfterTimestamp(candidates, ts) {
  const index = ArrayUtilities_exports.nearestIndexFromBeginning(candidates, (candidate) => ts < candidate.ts);
  return index === null ? null : candidates[index];
}
function findPreviousEventBeforeTimestamp(candidates, ts) {
  const index = ArrayUtilities_exports.nearestIndexFromEnd(candidates, (candidate) => candidate.ts < ts);
  return index === null ? null : candidates[index];
}
function forEachEvent(events, config4) {
  const globalStartTime = config4.startTime ?? Timing_exports.Micro(0);
  const globalEndTime = config4.endTime || Timing_exports.Micro(Infinity);
  const ignoreAsyncEvents = config4.ignoreAsyncEvents === false ? false : true;
  const stack = [];
  const startEventIndex = topLevelEventIndexEndingAfter(events, globalStartTime);
  for (let i = startEventIndex; i < events.length; i++) {
    const currentEvent = events[i];
    const currentEventTimings = eventTimingsMicroSeconds(currentEvent);
    if (currentEventTimings.endTime < globalStartTime) {
      continue;
    }
    if (currentEventTimings.startTime > globalEndTime) {
      break;
    }
    const isIgnoredAsyncEvent = ignoreAsyncEvents && TraceEvents_exports.isPhaseAsync(currentEvent.ph);
    if (isIgnoredAsyncEvent || TraceEvents_exports.isFlowPhase(currentEvent.ph)) {
      continue;
    }
    let lastEventOnStack = stack.at(-1);
    let lastEventEndTime = lastEventOnStack ? eventTimingsMicroSeconds(lastEventOnStack).endTime : null;
    while (lastEventOnStack && lastEventEndTime && lastEventEndTime <= currentEventTimings.startTime) {
      stack.pop();
      config4.onEndEvent(lastEventOnStack);
      lastEventOnStack = stack.at(-1);
      lastEventEndTime = lastEventOnStack ? eventTimingsMicroSeconds(lastEventOnStack).endTime : null;
    }
    if (config4.eventFilter && !config4.eventFilter(currentEvent)) {
      continue;
    }
    if (currentEventTimings.duration) {
      config4.onStartEvent(currentEvent);
      stack.push(currentEvent);
    } else if (config4.onInstantEvent) {
      config4.onInstantEvent(currentEvent);
    }
  }
  while (stack.length) {
    const last = stack.pop();
    if (last) {
      config4.onEndEvent(last);
    }
  }
}
function eventHasCategory(event, category) {
  let parsedCategoriesForEvent = parsedCategories.get(event.cat);
  if (!parsedCategoriesForEvent) {
    parsedCategoriesForEvent = new Set(event.cat.split(",") || []);
  }
  return parsedCategoriesForEvent.has(category);
}
function isMatchingCallFrame(eventFrame, nodeFrame) {
  return eventFrame.columnNumber === nodeFrame.columnNumber && eventFrame.lineNumber === nodeFrame.lineNumber && String(eventFrame.scriptId) === nodeFrame.scriptId && eventFrame.url === nodeFrame.url && eventFrame.functionName === nodeFrame.functionName;
}
function eventContainsTimestamp(event, ts) {
  return event.ts <= ts && event.ts + (event.dur || 0) >= ts;
}
function extractSampleTraceId(event) {
  if (!event.args) {
    return null;
  }
  if ("beginData" in event.args) {
    const beginData = event.args["beginData"];
    return beginData.sampleTraceId ?? null;
  }
  return event.args?.sampleTraceId ?? event.args?.data?.sampleTraceId ?? null;
}
var DevToolsTimelineEventCategory, parsedCategories, VISIBLE_TRACE_EVENT_TYPES;
var init_Trace = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/helpers/Trace.js"() {
    init_process_global();
    init_platform();
    init_types2();
    init_SyntheticEvents();
    init_Timing3();
    __name(stackTraceInEvent, "stackTraceInEvent");
    __name(extractOriginFromTrace, "extractOriginFromTrace");
    __name(addEventToProcessThread, "addEventToProcessThread");
    __name(compareBeginAndEnd, "compareBeginAndEnd");
    __name(eventTimeComparator, "eventTimeComparator");
    __name(sortTraceEventsInPlace, "sortTraceEventsInPlace");
    __name(mergeEventsInOrder, "mergeEventsInOrder");
    __name(parseDevtoolsDetails, "parseDevtoolsDetails");
    __name(getNavigationForTraceEvent, "getNavigationForTraceEvent");
    __name(extractId, "extractId");
    __name(activeURLForFrameAtTime, "activeURLForFrameAtTime");
    __name(makeProfileCall, "makeProfileCall");
    __name(matchEvents, "matchEvents");
    __name(getSyntheticId, "getSyntheticId");
    __name(createSortedSyntheticEvents, "createSortedSyntheticEvents");
    __name(createMatchedSortedSyntheticEvents, "createMatchedSortedSyntheticEvents");
    __name(getZeroIndexedLineAndColumnForEvent, "getZeroIndexedLineAndColumnForEvent");
    __name(getZeroIndexedStackTraceInEventPayload, "getZeroIndexedStackTraceInEventPayload");
    __name(getStackTraceTopCallFrameInEventPayload, "getStackTraceTopCallFrameInEventPayload");
    __name(rawCallFrameForEntry, "rawCallFrameForEntry");
    __name(makeZeroBasedCallFrame, "makeZeroBasedCallFrame");
    __name(getRawLineAndColumnNumbersForEvent, "getRawLineAndColumnNumbersForEvent");
    __name(frameIDForEvent, "frameIDForEvent");
    DevToolsTimelineEventCategory = "disabled-by-default-devtools.timeline";
    __name(isTopLevelEvent, "isTopLevelEvent");
    __name(isExtensionUrl, "isExtensionUrl");
    __name(topLevelEventIndexEndingAfter, "topLevelEventIndexEndingAfter");
    __name(findRecalcStyleEvents, "findRecalcStyleEvents");
    __name(findNextEventAfterTimestamp, "findNextEventAfterTimestamp");
    __name(findPreviousEventBeforeTimestamp, "findPreviousEventBeforeTimestamp");
    __name(forEachEvent, "forEachEvent");
    parsedCategories = /* @__PURE__ */ new Map();
    __name(eventHasCategory, "eventHasCategory");
    __name(isMatchingCallFrame, "isMatchingCallFrame");
    __name(eventContainsTimestamp, "eventContainsTimestamp");
    __name(extractSampleTraceId, "extractSampleTraceId");
    VISIBLE_TRACE_EVENT_TYPES = /* @__PURE__ */ new Set([
      TraceEvents_exports.Name.ABORT_POST_TASK_CALLBACK,
      TraceEvents_exports.Name.ANIMATION,
      TraceEvents_exports.Name.ASYNC_TASK,
      TraceEvents_exports.Name.BACKGROUND_DESERIALIZE,
      TraceEvents_exports.Name.CACHE_MODULE,
      TraceEvents_exports.Name.CACHE_SCRIPT,
      TraceEvents_exports.Name.CANCEL_ANIMATION_FRAME,
      TraceEvents_exports.Name.CANCEL_IDLE_CALLBACK,
      TraceEvents_exports.Name.COMMIT,
      TraceEvents_exports.Name.COMPILE_CODE,
      TraceEvents_exports.Name.COMPILE_MODULE,
      TraceEvents_exports.Name.COMPILE,
      TraceEvents_exports.Name.COMPOSITE_LAYERS,
      TraceEvents_exports.Name.COMPUTE_INTERSECTION,
      TraceEvents_exports.Name.CONSOLE_TIME,
      TraceEvents_exports.Name.CPPGC_SWEEP,
      TraceEvents_exports.Name.CRYPTO_DO_DECRYPT_REPLY,
      TraceEvents_exports.Name.CRYPTO_DO_DECRYPT,
      TraceEvents_exports.Name.CRYPTO_DO_DIGEST_REPLY,
      TraceEvents_exports.Name.CRYPTO_DO_DIGEST,
      TraceEvents_exports.Name.CRYPTO_DO_ENCRYPT_REPLY,
      TraceEvents_exports.Name.CRYPTO_DO_ENCRYPT,
      TraceEvents_exports.Name.CRYPTO_DO_SIGN_REPLY,
      TraceEvents_exports.Name.CRYPTO_DO_SIGN,
      TraceEvents_exports.Name.CRYPTO_DO_VERIFY_REPLY,
      TraceEvents_exports.Name.CRYPTO_DO_VERIFY,
      TraceEvents_exports.Name.DECODE_IMAGE,
      TraceEvents_exports.Name.EMBEDDER_CALLBACK,
      TraceEvents_exports.Name.EVALUATE_MODULE,
      TraceEvents_exports.Name.EVALUATE_SCRIPT,
      TraceEvents_exports.Name.EVENT_DISPATCH,
      TraceEvents_exports.Name.EVENT_TIMING,
      TraceEvents_exports.Name.FINALIZE_DESERIALIZATION,
      TraceEvents_exports.Name.FIRE_ANIMATION_FRAME,
      TraceEvents_exports.Name.FIRE_IDLE_CALLBACK,
      TraceEvents_exports.Name.FUNCTION_CALL,
      TraceEvents_exports.Name.GC_COLLECT_GARBARGE,
      TraceEvents_exports.Name.GC,
      TraceEvents_exports.Name.GPU_TASK,
      TraceEvents_exports.Name.HANDLE_POST_MESSAGE,
      TraceEvents_exports.Name.HIT_TEST,
      TraceEvents_exports.Name.JS_SAMPLE,
      TraceEvents_exports.Name.LAYERIZE,
      TraceEvents_exports.Name.LAYOUT,
      TraceEvents_exports.Name.MAJOR_GC,
      TraceEvents_exports.Name.MINOR_GC,
      TraceEvents_exports.Name.OPTIMIZE_CODE,
      TraceEvents_exports.Name.PAINT_SETUP,
      TraceEvents_exports.Name.PAINT,
      TraceEvents_exports.Name.PARSE_AUTHOR_STYLE_SHEET,
      TraceEvents_exports.Name.PARSE_HTML,
      TraceEvents_exports.Name.PRE_PAINT,
      TraceEvents_exports.Name.PROFILE_CALL,
      TraceEvents_exports.Name.PROGRAM,
      TraceEvents_exports.Name.RASTER_TASK,
      TraceEvents_exports.Name.REQUEST_ANIMATION_FRAME,
      TraceEvents_exports.Name.REQUEST_IDLE_CALLBACK,
      TraceEvents_exports.Name.RESOURCE_FINISH,
      TraceEvents_exports.Name.RESOURCE_RECEIVE_DATA,
      TraceEvents_exports.Name.RESOURCE_RECEIVE_RESPONSE,
      TraceEvents_exports.Name.RESOURCE_SEND_REQUEST,
      TraceEvents_exports.Name.RESOURCE_WILL_SEND_REQUEST,
      TraceEvents_exports.Name.RUN_MICROTASKS,
      TraceEvents_exports.Name.RUN_POST_TASK_CALLBACK,
      TraceEvents_exports.Name.RUN_TASK,
      TraceEvents_exports.Name.SCHEDULE_POST_MESSAGE,
      TraceEvents_exports.Name.SCHEDULE_POST_TASK_CALLBACK,
      TraceEvents_exports.Name.SCHEDULE_STYLE_RECALCULATION,
      TraceEvents_exports.Name.SCROLL_LAYER,
      TraceEvents_exports.Name.START_PROFILING,
      TraceEvents_exports.Name.STREAMING_COMPILE_SCRIPT_PARSING,
      TraceEvents_exports.Name.STREAMING_COMPILE_SCRIPT_WAITING,
      TraceEvents_exports.Name.STREAMING_COMPILE_SCRIPT,
      TraceEvents_exports.Name.SYNTHETIC_LAYOUT_SHIFT_CLUSTER,
      TraceEvents_exports.Name.SYNTHETIC_LAYOUT_SHIFT,
      TraceEvents_exports.Name.TIME_STAMP,
      TraceEvents_exports.Name.TIMER_FIRE,
      TraceEvents_exports.Name.TIMER_INSTALL,
      TraceEvents_exports.Name.TIMER_REMOVE,
      TraceEvents_exports.Name.UPDATE_LAYER_TREE,
      TraceEvents_exports.Name.RECALC_STYLE,
      TraceEvents_exports.Name.USER_TIMING,
      TraceEvents_exports.Name.V8_CONSOLE_RUN_TASK,
      TraceEvents_exports.Name.WASM_CACHED_MODULE,
      TraceEvents_exports.Name.WASM_COMPILED_MODULE,
      TraceEvents_exports.Name.WASM_MODULE_CACHE_HIT,
      TraceEvents_exports.Name.WASM_MODULE_CACHE_INVALID,
      TraceEvents_exports.Name.WASM_STREAM_FROM_RESPONSE_CALLBACK,
      TraceEvents_exports.Name.WEB_SOCKET_CREATE,
      TraceEvents_exports.Name.WEB_SOCKET_DESTROY,
      TraceEvents_exports.Name.WEB_SOCKET_RECEIVE_HANDSHAKE_REQUEST,
      TraceEvents_exports.Name.WEB_SOCKET_RECEIVE,
      TraceEvents_exports.Name.WEB_SOCKET_SEND_HANDSHAKE_REQUEST,
      TraceEvents_exports.Name.WEB_SOCKET_SEND,
      TraceEvents_exports.Name.XHR_LOAD,
      TraceEvents_exports.Name.XHR_READY_STATE_CHANGED
    ]);
  }
});

// node_modules/@paulirish/trace_engine/models/trace/helpers/TreeHelpers.js
var TreeHelpers_exports = {};
__export(TreeHelpers_exports, {
  canBuildTreesFromEvents: () => canBuildTreesFromEvents,
  makeEmptyTraceEntryNode: () => makeEmptyTraceEntryNode,
  makeEmptyTraceEntryTree: () => makeEmptyTraceEntryTree,
  makeTraceEntryNodeId: () => makeTraceEntryNodeId,
  treify: () => treify,
  walkEntireTree: () => walkEntireTree,
  walkTreeFromEntry: () => walkTreeFromEntry
});
function treify(entries, options) {
  const entryToNode4 = /* @__PURE__ */ new Map();
  const stack = [];
  nodeIdCount = -1;
  const tree = makeEmptyTraceEntryTree();
  for (let i = 0; i < entries.length; i++) {
    const event = entries[i];
    if (options && !options.filter.has(event.name)) {
      continue;
    }
    const duration = event.dur || 0;
    const nodeId = makeTraceEntryNodeId();
    const node = makeEmptyTraceEntryNode(event, nodeId);
    if (stack.length === 0) {
      tree.roots.add(node);
      node.selfTime = Timing_exports.Micro(duration);
      stack.push(node);
      tree.maxDepth = Math.max(tree.maxDepth, stack.length);
      entryToNode4.set(event, node);
      continue;
    }
    const parentNode = stack.at(-1);
    if (parentNode === void 0) {
      throw new Error("Impossible: no parent node found in the stack");
    }
    const parentEvent = parentNode.entry;
    const begin = event.ts;
    const parentBegin = parentEvent.ts;
    const parentDuration = parentEvent.dur || 0;
    const end = begin + duration;
    const parentEnd = parentBegin + parentDuration;
    const startsBeforeParent = begin < parentBegin;
    if (startsBeforeParent) {
      throw new Error("Impossible: current event starts before the parent event");
    }
    const startsAfterParent = begin >= parentEnd;
    if (startsAfterParent) {
      stack.pop();
      i--;
      nodeIdCount--;
      continue;
    }
    const endsAfterParent = end > parentEnd;
    if (endsAfterParent) {
      continue;
    }
    node.depth = stack.length;
    node.parent = parentNode;
    parentNode.children.push(node);
    node.selfTime = Timing_exports.Micro(duration);
    if (parentNode.selfTime !== void 0) {
      parentNode.selfTime = Timing_exports.Micro(parentNode.selfTime - (event.dur || 0));
    }
    stack.push(node);
    tree.maxDepth = Math.max(tree.maxDepth, stack.length);
    entryToNode4.set(event, node);
  }
  return { tree, entryToNode: entryToNode4 };
}
function walkTreeFromEntry(entryToNode4, rootEntry, onEntryStart, onEntryEnd) {
  const startNode = entryToNode4.get(rootEntry);
  if (!startNode) {
    return;
  }
  walkTreeByNode(entryToNode4, startNode, onEntryStart, onEntryEnd);
}
function walkEntireTree(entryToNode4, tree, onEntryStart, onEntryEnd, traceWindowToInclude, minDuration) {
  for (const rootNode of tree.roots) {
    walkTreeByNode(entryToNode4, rootNode, onEntryStart, onEntryEnd, traceWindowToInclude, minDuration);
  }
}
function walkTreeByNode(entryToNode4, rootNode, onEntryStart, onEntryEnd, traceWindowToInclude, minDuration) {
  if (traceWindowToInclude && !treeNodeIsInWindow(rootNode, traceWindowToInclude)) {
    return;
  }
  if (typeof minDuration !== "undefined") {
    const duration = Timing_exports.Micro(rootNode.entry.ts + Timing_exports.Micro(rootNode.entry.dur ?? 0));
    if (duration < minDuration) {
      return;
    }
  }
  onEntryStart(rootNode.entry);
  for (const child of rootNode.children) {
    walkTreeByNode(entryToNode4, child, onEntryStart, onEntryEnd, traceWindowToInclude, minDuration);
  }
  onEntryEnd(rootNode.entry);
}
function treeNodeIsInWindow(node, traceWindow) {
  return eventIsInBounds(node.entry, traceWindow);
}
function canBuildTreesFromEvents(events) {
  const stack = [];
  for (const event of events) {
    const startTime = event.ts;
    const endTime = event.ts + (event.dur ?? 0);
    let parent = stack.at(-1);
    if (parent === void 0) {
      stack.push(event);
      continue;
    }
    let parentEndTime = parent.ts + (parent.dur ?? 0);
    while (stack.length && startTime >= parentEndTime) {
      stack.pop();
      parent = stack.at(-1);
      if (parent === void 0) {
        break;
      }
      parentEndTime = parent.ts + (parent.dur ?? 0);
    }
    if (stack.length && endTime > parentEndTime) {
      return false;
    }
    stack.push(event);
  }
  return true;
}
var nodeIdCount, makeTraceEntryNodeId, makeEmptyTraceEntryTree, makeEmptyTraceEntryNode;
var init_TreeHelpers = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/helpers/TreeHelpers.js"() {
    init_process_global();
    init_types2();
    init_Timing3();
    nodeIdCount = 0;
    makeTraceEntryNodeId = /* @__PURE__ */ __name(() => ++nodeIdCount, "makeTraceEntryNodeId");
    makeEmptyTraceEntryTree = /* @__PURE__ */ __name(() => ({
      roots: /* @__PURE__ */ new Set(),
      maxDepth: 0
    }), "makeEmptyTraceEntryTree");
    makeEmptyTraceEntryNode = /* @__PURE__ */ __name((entry, id) => ({
      entry,
      id,
      parent: null,
      children: [],
      depth: 0
    }), "makeEmptyTraceEntryNode");
    __name(treify, "treify");
    __name(walkTreeFromEntry, "walkTreeFromEntry");
    __name(walkEntireTree, "walkEntireTree");
    __name(walkTreeByNode, "walkTreeByNode");
    __name(treeNodeIsInWindow, "treeNodeIsInWindow");
    __name(canBuildTreesFromEvents, "canBuildTreesFromEvents");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/helpers/Extensions.js
var Extensions_exports2 = {};
__export(Extensions_exports2, {
  buildTrackDataFromExtensionEntries: () => buildTrackDataFromExtensionEntries
});
function buildTrackDataFromExtensionEntries(extensionEntries, extensionTrackData2, entryToNode4) {
  const dataByTrack = /* @__PURE__ */ new Map();
  for (const entry of extensionEntries) {
    const key = entry.devtoolsObj.trackGroup || `track-name-${entry.devtoolsObj.track}`;
    const batchedData = MapUtilities_exports.getWithDefault(dataByTrack, key, () => ({
      name: entry.devtoolsObj.trackGroup || entry.devtoolsObj.track,
      isTrackGroup: Boolean(entry.devtoolsObj.trackGroup),
      entriesByTrack: { [entry.devtoolsObj.track]: [] }
    }));
    if (!batchedData.entriesByTrack[entry.devtoolsObj.track]) {
      batchedData.entriesByTrack[entry.devtoolsObj.track] = [];
    }
    const entriesInTrack = batchedData.entriesByTrack[entry.devtoolsObj.track];
    entriesInTrack.push(entry);
  }
  for (const trackData of dataByTrack.values()) {
    for (const entries of Object.values(trackData.entriesByTrack)) {
      sortTraceEventsInPlace(entries);
      if (canBuildTreesFromEvents(entries)) {
        for (const [entry, node] of treify(entries).entryToNode) {
          entryToNode4.set(entry, node);
        }
      }
    }
    extensionTrackData2.push(trackData);
  }
  return { extensionTrackData: extensionTrackData2, entryToNode: entryToNode4 };
}
var init_Extensions2 = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/helpers/Extensions.js"() {
    init_process_global();
    init_platform();
    init_Trace();
    init_TreeHelpers();
    __name(buildTrackDataFromExtensionEntries, "buildTrackDataFromExtensionEntries");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/helpers/Network.js
var Network_exports = {};
__export(Network_exports, {
  CACHEABLE_STATUS_CODES: () => CACHEABLE_STATUS_CODES,
  NON_NETWORK_SCHEMES: () => NON_NETWORK_SCHEMES2,
  STATIC_RESOURCE_TYPES: () => STATIC_RESOURCE_TYPES,
  isSyntheticNetworkRequestEventRenderBlocking: () => isSyntheticNetworkRequestEventRenderBlocking,
  isSyntheticNetworkRequestHighPriority: () => isSyntheticNetworkRequestHighPriority,
  isSyntheticNetworkRequestLocalhost: () => isSyntheticNetworkRequestLocalhost,
  parseCacheControl: () => parseCacheControl
});
function isSyntheticNetworkRequestEventRenderBlocking(event) {
  return !NON_RENDER_BLOCKING_VALUES.has(event.args.data.renderBlocking);
}
function isSyntheticNetworkRequestHighPriority(event) {
  return HIGH_NETWORK_PRIORITIES.has(event.args.data.priority);
}
function parseCacheControl(header) {
  if (!header) {
    return null;
  }
  const directives = header.split(",").map((directive) => directive.trim());
  const cacheControlOptions = {};
  for (const directive of directives) {
    const [key, value] = directive.split("=").map((part) => part.trim());
    switch (key) {
      case "max-age": {
        const maxAge = parseInt(value, 10);
        if (!isNaN(maxAge)) {
          cacheControlOptions["max-age"] = maxAge;
        }
        break;
      }
      case "no-cache":
        cacheControlOptions["no-cache"] = true;
        break;
      case "no-store":
        cacheControlOptions["no-store"] = true;
        break;
      case "must-revalidate":
        cacheControlOptions["must-revalidate"] = true;
        break;
      case "private":
        cacheControlOptions["private"] = true;
        break;
      default:
        break;
    }
  }
  return cacheControlOptions;
}
function isSyntheticNetworkRequestLocalhost(event) {
  try {
    const hostname = new URL(event.args.data.url).hostname;
    return SECURE_LOCALHOST_DOMAINS.includes(hostname) || hostname.endsWith(".localhost");
  } catch {
    return false;
  }
}
var NON_RENDER_BLOCKING_VALUES, HIGH_NETWORK_PRIORITIES, CACHEABLE_STATUS_CODES, STATIC_RESOURCE_TYPES, NON_NETWORK_SCHEMES2, SECURE_LOCALHOST_DOMAINS;
var init_Network = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/helpers/Network.js"() {
    init_process_global();
    NON_RENDER_BLOCKING_VALUES = /* @__PURE__ */ new Set([
      "non_blocking",
      "dynamically_injected_non_blocking",
      "potentially_blocking"
    ]);
    __name(isSyntheticNetworkRequestEventRenderBlocking, "isSyntheticNetworkRequestEventRenderBlocking");
    HIGH_NETWORK_PRIORITIES = /* @__PURE__ */ new Set([
      "VeryHigh",
      "High",
      "Medium"
    ]);
    __name(isSyntheticNetworkRequestHighPriority, "isSyntheticNetworkRequestHighPriority");
    CACHEABLE_STATUS_CODES = /* @__PURE__ */ new Set([200, 203, 206]);
    STATIC_RESOURCE_TYPES = /* @__PURE__ */ new Set([
      "Font",
      "Image",
      "Media",
      "Script",
      "Stylesheet"
    ]);
    NON_NETWORK_SCHEMES2 = [
      "blob",
      // @see https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
      "data",
      // @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
      "intent",
      // @see https://developer.chrome.com/docs/multidevice/android/intents/
      "file",
      // @see https://en.wikipedia.org/wiki/File_URI_scheme
      "filesystem",
      // @see https://developer.mozilla.org/en-US/docs/Web/API/FileSystem
      "chrome-extension"
    ];
    __name(parseCacheControl, "parseCacheControl");
    SECURE_LOCALHOST_DOMAINS = ["localhost", "127.0.0.1"];
    __name(isSyntheticNetworkRequestLocalhost, "isSyntheticNetworkRequestLocalhost");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/helpers/SamplesIntegrator.js
var SamplesIntegrator_exports = {};
__export(SamplesIntegrator_exports, {
  SamplesIntegrator: () => SamplesIntegrator
});
var _a, SamplesIntegrator;
var init_SamplesIntegrator = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/helpers/SamplesIntegrator.js"() {
    init_process_global();
    init_types2();
    init_Timing3();
    init_Trace();
    SamplesIntegrator = class {
      static {
        __name(this, "SamplesIntegrator");
      }
      /**
       * The result of running the samples integrator. Holds the JS calls
       * with their approximated duration after integrating samples into the
       * trace event tree.
       */
      #constructedProfileCalls = [];
      /**
       * tracks the state of the JS stack at each point in time to update
       * the profile call durations as new events arrive. This doesn't only
       * happen with new profile calls (in which case we would compare the
       * stack in them) but also with trace events (in which case we would
       * update the duration of the events we are tracking at the moment).
       */
      #currentJSStack = [];
      /**
       * Process holding the CPU profile and trace events.
       */
      #processId;
      /**
       * Thread holding the CPU profile and trace events.
       */
      #threadId;
      /**
       * Tracks the depth of the JS stack at the moment a trace event starts
       * or ends. It is assumed that for the duration of a trace event, the
       * JS stack's depth cannot decrease, since JS calls that started
       * before a trace event cannot end during the trace event. So as trace
       * events arrive, we store the "locked" amount of JS frames that were
       * in the stack before the event came.
       */
      #lockedJsStackDepth = [];
      /**
       * Used to keep track when samples should be integrated even if they
       * are not children of invocation trace events. This is useful in
       * cases where we can be missing the start of JS invocation events if
       * we start tracing half-way through.
       */
      #fakeJSInvocation = false;
      /**
       * The parsed CPU profile, holding the tree hierarchy of JS frames and
       * the sample data.
       */
      #profileModel;
      /**
       * Because GC nodes don't have a stack, we artificially add a stack to
       * them which corresponds to that of the previous sample. This map
       * tracks which node is used for the stack of a GC call.
       * Note that GC samples are not shown in the flamechart, however they
       * are used during the construction of for profile calls, as we can
       * infer information about the duration of the executed code when a
       * GC node is sampled.
       */
      #nodeForGC = /* @__PURE__ */ new Map();
      #engineConfig;
      #profileId;
      /**
       * Keeps track of the individual samples from the CPU Profile.
       * Only used with Debug Mode experiment enabled.
       */
      jsSampleEvents = [];
      constructor(profileModel, profileId, pid, tid, configuration) {
        this.#profileModel = profileModel;
        this.#threadId = tid;
        this.#processId = pid;
        this.#engineConfig = configuration || Configuration_exports.defaults();
        this.#profileId = profileId;
      }
      buildProfileCalls(traceEvents) {
        const mergedEvents = mergeEventsInOrder(traceEvents, this.callsFromProfileSamples());
        const stack = [];
        for (let i = 0; i < mergedEvents.length; i++) {
          const event = mergedEvents[i];
          if (event.ph === TraceEvents_exports.Phase.INSTANT && !extractSampleTraceId(event)) {
            continue;
          }
          if (stack.length === 0) {
            if (TraceEvents_exports.isProfileCall(event)) {
              this.#onProfileCall(event);
              continue;
            }
            stack.push(event);
            this.#onTraceEventStart(event);
            continue;
          }
          const parentEvent = stack.at(-1);
          if (parentEvent === void 0) {
            continue;
          }
          const begin = event.ts;
          const parentBegin = parentEvent.ts;
          const parentDuration = parentEvent.dur || 0;
          const parentEnd = parentBegin + parentDuration;
          const startsAfterParent = begin >= parentEnd;
          if (startsAfterParent) {
            this.#onTraceEventEnd(parentEvent);
            stack.pop();
            i--;
            continue;
          }
          if (TraceEvents_exports.isProfileCall(event)) {
            this.#onProfileCall(event, parentEvent);
            continue;
          }
          this.#onTraceEventStart(event);
          stack.push(event);
        }
        while (stack.length) {
          const last = stack.pop();
          if (last) {
            this.#onTraceEventEnd(last);
          }
        }
        sortTraceEventsInPlace(this.jsSampleEvents);
        return this.#constructedProfileCalls;
      }
      #onTraceEventStart(event) {
        if (event.name === TraceEvents_exports.Name.RUN_MICROTASKS || event.name === TraceEvents_exports.Name.RUN_TASK) {
          this.#lockedJsStackDepth = [];
          this.#truncateJSStack(0, event.ts);
          this.#fakeJSInvocation = false;
        }
        if (this.#fakeJSInvocation) {
          this.#truncateJSStack(this.#lockedJsStackDepth.pop() || 0, event.ts);
          this.#fakeJSInvocation = false;
        }
        this.#extractStackTrace(event);
        this.#lockedJsStackDepth.push(this.#currentJSStack.length);
      }
      #onProfileCall(event, parent) {
        if (parent && TraceEvents_exports.isJSInvocationEvent(parent) || this.#fakeJSInvocation) {
          this.#extractStackTrace(event);
        } else if (TraceEvents_exports.isProfileCall(event) && this.#currentJSStack.length === 0) {
          this.#fakeJSInvocation = true;
          const stackDepthBefore = this.#currentJSStack.length;
          this.#extractStackTrace(event);
          this.#lockedJsStackDepth.push(stackDepthBefore);
        }
      }
      #onTraceEventEnd(event) {
        const endTime = Timing_exports.Micro(event.ts + (event.dur ?? 0));
        this.#truncateJSStack(this.#lockedJsStackDepth.pop() || 0, endTime);
      }
      /**
       * Builds the initial calls with no duration from samples. Their
       * purpose is to be merged with the trace event array being parsed so
       * that they can be traversed in order with them and their duration
       * can be updated as the SampleIntegrator callbacks are invoked.
       */
      callsFromProfileSamples() {
        const samples = this.#profileModel.samples;
        const timestamps = this.#profileModel.timestamps;
        if (!samples) {
          return [];
        }
        const calls = [];
        let prevNode;
        for (let i = 0; i < samples.length; i++) {
          const node = this.#profileModel.nodeByIndex(i);
          const timestamp = milliToMicro(Timing_exports.Milli(timestamps[i]));
          if (!node) {
            continue;
          }
          const call = makeProfileCall(node, this.#profileId, i, timestamp, this.#processId, this.#threadId);
          calls.push(call);
          if (this.#engineConfig.debugMode) {
            const traceId = this.#profileModel.traceIds?.[i];
            this.jsSampleEvents.push(this.#makeJSSampleEvent(call, timestamp, traceId));
          }
          if (node.id === this.#profileModel.gcNode?.id && prevNode) {
            this.#nodeForGC.set(call, prevNode);
            continue;
          }
          prevNode = node;
        }
        return calls;
      }
      /**
       * Given a synthetic profile call, returns an array of profile calls
       * representing the stack trace that profile call belongs to based on
       * its nodeId. The input profile call will be at the top of the
       * returned stack (last position), meaning that any other frames that
       * were effectively above it are omitted.
       * @param profileCall
       * @param overrideTimeStamp a custom timestamp to use for the returned
       * profile calls. If not defined, the timestamp of the input
       * profileCall is used instead. This param is useful for example when
       * creating the profile calls for a sample with a trace id, since the
       * timestamp of the corresponding trace event should be used instead
       * of the sample's.
       */
      #makeProfileCallsForStack(profileCall, overrideTimeStamp) {
        let node = this.#profileModel.nodeById(profileCall.nodeId);
        const isGarbageCollection = node?.id === this.#profileModel.gcNode?.id;
        if (isGarbageCollection) {
          node = this.#nodeForGC.get(profileCall) || null;
        }
        if (!node) {
          return [];
        }
        const callFrames = new Array(node.depth + 1 + Number(isGarbageCollection));
        let i = callFrames.length - 1;
        if (isGarbageCollection) {
          callFrames[i--] = profileCall;
        }
        while (node) {
          callFrames[i--] = makeProfileCall(node, profileCall.profileId, profileCall.sampleIndex, overrideTimeStamp ?? profileCall.ts, this.#processId, this.#threadId);
          node = node.parent;
        }
        return callFrames;
      }
      #getStackForSampleTraceId(traceId, timestamp) {
        const nodeId = this.#profileModel.traceIds?.[traceId];
        const node = nodeId && this.#profileModel.nodeById(nodeId);
        const maybeCallForTraceId = node && makeProfileCall(node, this.#profileId, -1, timestamp, this.#processId, this.#threadId);
        if (!maybeCallForTraceId) {
          return null;
        }
        if (this.#engineConfig.debugMode) {
          this.jsSampleEvents.push(this.#makeJSSampleEvent(maybeCallForTraceId, timestamp, traceId));
        }
        return this.#makeProfileCallsForStack(maybeCallForTraceId);
      }
      /**
       * Update tracked stack using this event's call stack.
       */
      #extractStackTrace(event) {
        let stackTrace = this.#currentJSStack;
        if (TraceEvents_exports.isProfileCall(event)) {
          stackTrace = this.#makeProfileCallsForStack(event);
        }
        const traceId = extractSampleTraceId(event);
        const maybeCallForTraceId = traceId && this.#getStackForSampleTraceId(traceId, event.ts);
        if (maybeCallForTraceId) {
          stackTrace = maybeCallForTraceId;
        }
        _a.filterStackFrames(stackTrace, this.#engineConfig);
        const endTime = event.ts + (event.dur || 0);
        const minFrames = Math.min(stackTrace.length, this.#currentJSStack.length);
        let i;
        for (i = this.#lockedJsStackDepth.at(-1) || 0; i < minFrames; ++i) {
          const newFrame = stackTrace[i].callFrame;
          const oldFrame = this.#currentJSStack[i].callFrame;
          if (!_a.framesAreEqual(newFrame, oldFrame)) {
            break;
          }
          this.#currentJSStack[i].dur = Timing_exports.Micro(Math.max(this.#currentJSStack[i].dur || 0, endTime - this.#currentJSStack[i].ts));
        }
        this.#truncateJSStack(i, event.ts);
        for (; i < stackTrace.length; ++i) {
          const call = stackTrace[i];
          if (call.nodeId === this.#profileModel.programNode?.id || call.nodeId === this.#profileModel.root?.id || call.nodeId === this.#profileModel.idleNode?.id || call.nodeId === this.#profileModel.gcNode?.id) {
            continue;
          }
          this.#currentJSStack.push(call);
          this.#constructedProfileCalls.push(call);
        }
      }
      /**
       * When a call stack that differs from the one we are tracking has
       * been detected in the samples, the latter is "truncated" by
       * setting the ending time of its call frames and removing the top
       * call frames that aren't shared with the new call stack. This way,
       * we can update the tracked stack with the new call frames on top.
       * @param depth the amount of call frames from bottom to top that
       * should be kept in the tracking stack trace. AKA amount of shared
       * call frames between two stacks.
       * @param time the new end of the call frames in the stack.
       */
      #truncateJSStack(depth, time) {
        if (this.#lockedJsStackDepth.length) {
          const lockedDepth = this.#lockedJsStackDepth.at(-1);
          if (lockedDepth && depth < lockedDepth) {
            console.error(`Child stack is shallower (${depth}) than the parent stack (${lockedDepth}) at ${time}`);
            depth = lockedDepth;
          }
        }
        if (this.#currentJSStack.length < depth) {
          console.error(`Trying to truncate higher than the current stack size at ${time}`);
          depth = this.#currentJSStack.length;
        }
        for (let k = 0; k < this.#currentJSStack.length; ++k) {
          this.#currentJSStack[k].dur = Timing_exports.Micro(Math.max(time - this.#currentJSStack[k].ts, 0));
        }
        this.#currentJSStack.length = depth;
      }
      #makeJSSampleEvent(call, timestamp, traceId) {
        const JSSampleEvent = {
          name: TraceEvents_exports.Name.JS_SAMPLE,
          cat: "devtools.timeline",
          args: {
            data: { traceId, stackTrace: this.#makeProfileCallsForStack(call).map((e) => e.callFrame) }
          },
          ph: TraceEvents_exports.Phase.INSTANT,
          ts: timestamp,
          dur: Timing_exports.Micro(0),
          pid: this.#processId,
          tid: this.#threadId
        };
        return JSSampleEvent;
      }
      static framesAreEqual(frame1, frame2) {
        return frame1.scriptId === frame2.scriptId && frame1.functionName === frame2.functionName && frame1.lineNumber === frame2.lineNumber;
      }
      static showNativeName(name, runtimeCallStatsEnabled) {
        return runtimeCallStatsEnabled && Boolean(_a.nativeGroup(name));
      }
      static nativeGroup(nativeName) {
        if (nativeName.startsWith("Parse")) {
          return _a.NativeGroups.PARSE;
        }
        if (nativeName.startsWith("Compile") || nativeName.startsWith("Recompile")) {
          return _a.NativeGroups.COMPILE;
        }
        return null;
      }
      static isNativeRuntimeFrame(frame) {
        return frame.url === "native V8Runtime";
      }
      static filterStackFrames(stack, engineConfig) {
        const showAllEvents = engineConfig.showAllEvents;
        if (showAllEvents) {
          return;
        }
        let j = 0;
        for (let i = 0; i < stack.length; ++i) {
          const frame = stack[i].callFrame;
          const nativeRuntimeFrame = _a.isNativeRuntimeFrame(frame);
          if (nativeRuntimeFrame) {
            continue;
          }
          stack[j++] = stack[i];
        }
        stack.length = j;
      }
      static createFakeTraceFromCpuProfile(profile, tid) {
        if (!profile) {
          return { traceEvents: [], metadata: {} };
        }
        const cpuProfileEvent = {
          cat: "disabled-by-default-devtools.timeline",
          name: TraceEvents_exports.Name.CPU_PROFILE,
          ph: TraceEvents_exports.Phase.COMPLETE,
          pid: TraceEvents_exports.ProcessID(1),
          tid,
          ts: Timing_exports.Micro(profile.startTime),
          dur: Timing_exports.Micro(profile.endTime - profile.startTime),
          args: { data: { cpuProfile: profile } },
          // Create an arbitrary profile id.
          id: "0x1"
        };
        return {
          traceEvents: [cpuProfileEvent],
          metadata: {
            dataOrigin: File_exports.DataOrigin.CPU_PROFILE
          }
        };
      }
      static extractCpuProfileFromFakeTrace(traceEvents) {
        const profileEvent = traceEvents.find((e) => TraceEvents_exports.isSyntheticCpuProfile(e));
        const profile = profileEvent?.args.data.cpuProfile;
        if (!profile) {
          throw new Error("Missing cpuProfile data");
        }
        return profile;
      }
    };
    _a = SamplesIntegrator;
    (function(SamplesIntegrator2) {
      let NativeGroups;
      (function(NativeGroups2) {
        NativeGroups2["COMPILE"] = "Compile";
        NativeGroups2["PARSE"] = "Parse";
      })(NativeGroups = SamplesIntegrator2.NativeGroups || (SamplesIntegrator2.NativeGroups = {}));
    })(SamplesIntegrator || (SamplesIntegrator = {}));
  }
});

// node_modules/@paulirish/trace_engine/models/trace/helpers/helpers.js
var init_helpers2 = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/helpers/helpers.js"() {
    init_process_global();
    init_Extensions2();
    init_Network();
    init_SamplesIntegrator();
    init_SyntheticEvents();
    init_Timing3();
    init_Trace();
    init_TreeHelpers();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/AnimationFramesHandler.js
var AnimationFramesHandler_exports = {};
__export(AnimationFramesHandler_exports, {
  data: () => data,
  deps: () => deps,
  finalize: () => finalize,
  handleEvent: () => handleEvent,
  handleUserConfig: () => handleUserConfig,
  reset: () => reset
});
function threadKey(data31) {
  return `${data31.pid}-${data31.tid}`;
}
function reset() {
  animationFrameStarts = /* @__PURE__ */ new Map();
  animationFrameEnds = /* @__PURE__ */ new Map();
  animationFrames = [];
  presentationForFrame = /* @__PURE__ */ new Map();
  animationFramePresentations = /* @__PURE__ */ new Map();
  isEnabled = false;
}
function handleUserConfig(config4) {
  isEnabled = config4.enableAnimationsFrameHandler;
}
function handleEvent(event) {
  if (!isEnabled) {
    return;
  }
  if (TraceEvents_exports.isAnimationFrameAsyncStart(event)) {
    const key = threadKey(event);
    const existing = animationFrameStarts.get(key) ?? [];
    existing.push(event);
    animationFrameStarts.set(key, existing);
  } else if (TraceEvents_exports.isAnimationFrameAsyncEnd(event)) {
    const key = threadKey(event);
    const existing = animationFrameEnds.get(key) ?? [];
    existing.push(event);
    animationFrameEnds.set(key, existing);
  } else if (TraceEvents_exports.isAnimationFramePresentation(event) && event.args?.id) {
    animationFramePresentations.set(event.args.id, event);
  }
}
async function finalize() {
  for (const [key, startEvents] of animationFrameStarts.entries()) {
    const endEvents = animationFrameEnds.get(key);
    if (!endEvents) {
      continue;
    }
    Trace_exports.sortTraceEventsInPlace(startEvents);
    Trace_exports.sortTraceEventsInPlace(endEvents);
    for (let i = 0; i < startEvents.length; i++) {
      const endEvent = endEvents.at(i);
      if (!endEvent) {
        break;
      }
      const startEvent = startEvents[i];
      const syntheticEvent = SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent({
        rawSourceEvent: startEvent,
        ...startEvent,
        dur: Timing_exports.Micro(endEvent.ts - startEvent.ts),
        args: {
          data: {
            beginEvent: startEvent,
            endEvent
          }
        }
      });
      animationFrames.push(syntheticEvent);
      const id = startEvent.args?.id;
      if (id) {
        const presentationEvent = animationFramePresentations.get(id);
        if (presentationEvent) {
          presentationForFrame.set(syntheticEvent, presentationEvent);
        }
      }
    }
  }
}
function data() {
  return {
    animationFrames,
    presentationForFrame
  };
}
function deps() {
  return ["Meta"];
}
var animationFrameStarts, animationFrameEnds, animationFramePresentations, animationFrames, presentationForFrame, isEnabled;
var init_AnimationFramesHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/AnimationFramesHandler.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    __name(threadKey, "threadKey");
    animationFrameStarts = /* @__PURE__ */ new Map();
    animationFrameEnds = /* @__PURE__ */ new Map();
    animationFramePresentations = /* @__PURE__ */ new Map();
    animationFrames = [];
    presentationForFrame = /* @__PURE__ */ new Map();
    __name(reset, "reset");
    isEnabled = false;
    __name(handleUserConfig, "handleUserConfig");
    __name(handleEvent, "handleEvent");
    __name(finalize, "finalize");
    __name(data, "data");
    __name(deps, "deps");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/AnimationHandler.js
var AnimationHandler_exports = {};
__export(AnimationHandler_exports, {
  data: () => data2,
  finalize: () => finalize2,
  handleEvent: () => handleEvent2,
  reset: () => reset2
});
function reset2() {
  animations = [];
  animationsSyntheticEvents = [];
}
function handleEvent2(event) {
  if (TraceEvents_exports.isAnimation(event)) {
    animations.push(event);
    return;
  }
}
async function finalize2() {
  const syntheticEvents2 = Trace_exports.createMatchedSortedSyntheticEvents(animations);
  animationsSyntheticEvents.push(...syntheticEvents2);
}
function data2() {
  return {
    animations: animationsSyntheticEvents
  };
}
var animations, animationsSyntheticEvents;
var init_AnimationHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/AnimationHandler.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    animations = [];
    animationsSyntheticEvents = [];
    __name(reset2, "reset");
    __name(handleEvent2, "handleEvent");
    __name(finalize2, "finalize");
    __name(data2, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/FlowsHandler.js
var FlowsHandler_exports = {};
__export(FlowsHandler_exports, {
  data: () => data3,
  finalize: () => finalize3,
  handleEvent: () => handleEvent3,
  reset: () => reset3
});
function reset3() {
  flows = [];
  flowEvents = [];
  nonFlowEvents = [];
  flowDataByGroupToken = /* @__PURE__ */ new Map();
  boundFlowData = /* @__PURE__ */ new Map();
  flowsById = /* @__PURE__ */ new Map();
}
function handleEvent3(event) {
  if (TraceEvents_exports.isFlowPhaseEvent(event)) {
    flowEvents.push(event);
    return;
  }
  nonFlowEvents.push(event);
}
function processNonFlowEvent(event) {
  const flowDataForEvent = boundFlowData.get(event.ts)?.get(event.pid)?.get(event.tid)?.get(event.cat);
  if (!flowDataForEvent) {
    return;
  }
  const { flows: flows2, bindingParsed } = flowDataForEvent;
  if (bindingParsed) {
    return;
  }
  for (const flowId of flows2) {
    const flow = MapUtilities_exports.getWithDefault(flowsById, flowId, () => /* @__PURE__ */ new Map());
    flow.set(event.ts, event);
  }
  flowDataForEvent.bindingParsed = true;
}
function processFlowEvent(flowPhaseEvent) {
  const flowGroup = flowGroupTokenForFlowPhaseEvent(flowPhaseEvent);
  switch (flowPhaseEvent.ph) {
    case TraceEvents_exports.Phase.FLOW_START: {
      const flowMetadata = { flowId: flowPhaseEvent.id, times: /* @__PURE__ */ new Map([[flowPhaseEvent.ts, void 0]]) };
      flowDataByGroupToken.set(flowGroup, flowPhaseEvent.id);
      addFlowIdToEventBinding(flowPhaseEvent, flowMetadata.flowId);
      return;
    }
    case TraceEvents_exports.Phase.FLOW_STEP: {
      const flowId = flowDataByGroupToken.get(flowGroup);
      if (flowId === void 0) {
        return;
      }
      addFlowIdToEventBinding(flowPhaseEvent, flowId);
      return;
    }
    case TraceEvents_exports.Phase.FLOW_END: {
      const flowId = flowDataByGroupToken.get(flowGroup);
      if (flowId === void 0) {
        return;
      }
      addFlowIdToEventBinding(flowPhaseEvent, flowId);
      flowDataByGroupToken.delete(flowGroup);
    }
  }
}
function addFlowIdToEventBinding(event, flowId) {
  const flowsByPid = MapUtilities_exports.getWithDefault(boundFlowData, event.ts, () => /* @__PURE__ */ new Map());
  const flowsByTid = MapUtilities_exports.getWithDefault(flowsByPid, event.pid, () => /* @__PURE__ */ new Map());
  const flowsByCat = MapUtilities_exports.getWithDefault(flowsByTid, event.tid, () => /* @__PURE__ */ new Map());
  const flowData = MapUtilities_exports.getWithDefault(flowsByCat, event.cat, () => ({ flows: /* @__PURE__ */ new Set(), bindingParsed: false }));
  flowData.flows.add(flowId);
}
function flowGroupTokenForFlowPhaseEvent(event) {
  return `${event.cat}${ID_COMPONENT_SEPARATOR}${event.name}${ID_COMPONENT_SEPARATOR}${event.id}`;
}
async function finalize3() {
  flowEvents.forEach(processFlowEvent);
  nonFlowEvents.forEach(processNonFlowEvent);
  flows = [...flowsById.values()].map((flowMapping) => [...flowMapping.values()]).map((flow) => flow.filter((event) => event !== void 0)).filter((flow) => flow.length > 1);
}
function data3() {
  return {
    flows
  };
}
var flowDataByGroupToken, boundFlowData, flowsById, flowEvents, nonFlowEvents, flows, ID_COMPONENT_SEPARATOR;
var init_FlowsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/FlowsHandler.js"() {
    init_process_global();
    init_platform();
    init_types2();
    flowDataByGroupToken = /* @__PURE__ */ new Map();
    boundFlowData = /* @__PURE__ */ new Map();
    flowsById = /* @__PURE__ */ new Map();
    flowEvents = [];
    nonFlowEvents = [];
    flows = [];
    ID_COMPONENT_SEPARATOR = "-$-";
    __name(reset3, "reset");
    __name(handleEvent3, "handleEvent");
    __name(processNonFlowEvent, "processNonFlowEvent");
    __name(processFlowEvent, "processFlowEvent");
    __name(addFlowIdToEventBinding, "addFlowIdToEventBinding");
    __name(flowGroupTokenForFlowPhaseEvent, "flowGroupTokenForFlowPhaseEvent");
    __name(finalize3, "finalize");
    __name(data3, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/AuctionWorkletsHandler.js
var AuctionWorkletsHandler_exports = {};
__export(AuctionWorkletsHandler_exports, {
  data: () => data4,
  finalize: () => finalize4,
  handleEvent: () => handleEvent4,
  reset: () => reset4
});
function reset4() {
  runningInProcessEvents = /* @__PURE__ */ new Map();
  doneWithProcessEvents = /* @__PURE__ */ new Map();
  createdSyntheticEvents = /* @__PURE__ */ new Map();
  utilityThreads = /* @__PURE__ */ new Map();
  v8HelperThreads = /* @__PURE__ */ new Map();
}
function handleEvent4(event) {
  if (TraceEvents_exports.isAuctionWorkletRunningInProcess(event)) {
    runningInProcessEvents.set(event.args.data.pid, event);
    return;
  }
  if (TraceEvents_exports.isAuctionWorkletDoneWithProcess(event)) {
    doneWithProcessEvents.set(event.args.data.pid, event);
    return;
  }
  if (TraceEvents_exports.isThreadName(event)) {
    if (event.args.name === "auction_worklet.CrUtilityMain") {
      utilityThreads.set(event.pid, event);
      return;
    }
    if (event.args.name === "AuctionV8HelperThread") {
      v8HelperThreads.set(event.pid, event);
    }
  }
}
function workletType(input) {
  switch (input) {
    case "seller":
      return TraceEvents_exports.AuctionWorkletType.SELLER;
    case "bidder":
      return TraceEvents_exports.AuctionWorkletType.BIDDER;
    default:
      return TraceEvents_exports.AuctionWorkletType.UNKNOWN;
  }
}
function makeSyntheticEventBase(event) {
  return SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent({
    rawSourceEvent: event,
    name: "SyntheticAuctionWorklet",
    s: TraceEvents_exports.Scope.THREAD,
    cat: event.cat,
    tid: event.tid,
    ts: event.ts,
    ph: TraceEvents_exports.Phase.INSTANT,
    pid: event.args.data.pid,
    host: event.args.data.host,
    target: event.args.data.target,
    type: workletType(event.args.data.type)
  });
}
async function finalize4() {
  for (const [pid, utilityThreadNameEvent] of utilityThreads) {
    const v8HelperEvent = v8HelperThreads.get(pid);
    if (!v8HelperEvent) {
      continue;
    }
    const runningEvent = runningInProcessEvents.get(pid);
    const doneWithEvent = doneWithProcessEvents.get(pid);
    let syntheticEvent = null;
    if (runningEvent) {
      syntheticEvent = {
        ...makeSyntheticEventBase(runningEvent),
        args: {
          data: {
            runningInProcessEvent: runningEvent,
            utilityThread: utilityThreadNameEvent,
            v8HelperThread: v8HelperEvent
          }
        }
      };
      if (doneWithEvent) {
        syntheticEvent.args.data.doneWithProcessEvent = doneWithEvent;
      }
    } else if (doneWithEvent) {
      syntheticEvent = {
        ...makeSyntheticEventBase(doneWithEvent),
        args: {
          data: {
            doneWithProcessEvent: doneWithEvent,
            utilityThread: utilityThreadNameEvent,
            v8HelperThread: v8HelperEvent
          }
        }
      };
      if (runningEvent) {
        syntheticEvent.args.data.runningInProcessEvent = runningEvent;
      }
    }
    if (syntheticEvent === null) {
      continue;
    }
    createdSyntheticEvents.set(pid, syntheticEvent);
  }
}
function data4() {
  return {
    worklets: createdSyntheticEvents
  };
}
var runningInProcessEvents, doneWithProcessEvents, createdSyntheticEvents, utilityThreads, v8HelperThreads;
var init_AuctionWorkletsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/AuctionWorkletsHandler.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    runningInProcessEvents = /* @__PURE__ */ new Map();
    doneWithProcessEvents = /* @__PURE__ */ new Map();
    createdSyntheticEvents = /* @__PURE__ */ new Map();
    utilityThreads = /* @__PURE__ */ new Map();
    v8HelperThreads = /* @__PURE__ */ new Map();
    __name(reset4, "reset");
    __name(handleEvent4, "handleEvent");
    __name(workletType, "workletType");
    __name(makeSyntheticEventBase, "makeSyntheticEventBase");
    __name(finalize4, "finalize");
    __name(data4, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/MetaHandler.js
var MetaHandler_exports = {};
__export(MetaHandler_exports, {
  data: () => data5,
  finalize: () => finalize5,
  handleEvent: () => handleEvent5,
  reset: () => reset5
});
function makeNewTraceBounds() {
  return {
    min: Timing_exports.Micro(Number.POSITIVE_INFINITY),
    max: Timing_exports.Micro(Number.NEGATIVE_INFINITY),
    range: Timing_exports.Micro(Number.POSITIVE_INFINITY)
  };
}
function reset5() {
  navigationsByFrameId = /* @__PURE__ */ new Map();
  navigationsByNavigationId = /* @__PURE__ */ new Map();
  softNavigationsById = /* @__PURE__ */ new Map();
  finalDisplayUrlByNavigationId = /* @__PURE__ */ new Map();
  processNames = /* @__PURE__ */ new Map();
  mainFrameNavigations = [];
  browserProcessId = TraceEvents_exports.ProcessID(-1);
  browserThreadId = TraceEvents_exports.ThreadID(-1);
  gpuProcessId = TraceEvents_exports.ProcessID(-1);
  gpuThreadId = TraceEvents_exports.ThreadID(-1);
  viewportRect = null;
  topLevelRendererIds = /* @__PURE__ */ new Set();
  threadsInProcess = /* @__PURE__ */ new Map();
  rendererProcessesByFrameId = /* @__PURE__ */ new Map();
  framesByProcessId = /* @__PURE__ */ new Map();
  traceBounds = makeNewTraceBounds();
  traceStartedTimeFromTracingStartedEvent = Timing_exports.Micro(-1);
  traceIsGeneric = true;
}
function updateRendererProcessByFrame(event, frame) {
  const framesInProcessById = MapUtilities_exports.getWithDefault(framesByProcessId, frame.processId, () => /* @__PURE__ */ new Map());
  framesInProcessById.set(frame.frame, frame);
  const rendererProcessInFrame = MapUtilities_exports.getWithDefault(rendererProcessesByFrameId, frame.frame, () => /* @__PURE__ */ new Map());
  const rendererProcessInfo = MapUtilities_exports.getWithDefault(rendererProcessInFrame, frame.processId, () => {
    return [];
  });
  const lastProcessData = rendererProcessInfo.at(-1);
  if (lastProcessData && lastProcessData.frame.url === frame.url) {
    return;
  }
  rendererProcessInfo.push({
    frame,
    window: {
      min: event.ts,
      max: Timing_exports.Micro(0),
      range: Timing_exports.Micro(0)
    }
  });
}
function handleEvent5(event) {
  if (traceIsGeneric && CHROME_WEB_TRACE_EVENTS.has(event.name)) {
    traceIsGeneric = false;
  }
  if (TraceEvents_exports.isProcessName(event)) {
    processNames.set(event.pid, event);
  }
  if (event.ts !== 0 && !event.name.endsWith("::UMA") && eventPhasesOfInterestForTraceBounds.has(event.ph)) {
    traceBounds.min = Timing_exports.Micro(Math.min(event.ts, traceBounds.min));
    const eventDuration = event.dur ?? Timing_exports.Micro(0);
    traceBounds.max = Timing_exports.Micro(Math.max(event.ts + eventDuration, traceBounds.max));
  }
  if (TraceEvents_exports.isProcessName(event) && (event.args.name === "Browser" || event.args.name === "HeadlessBrowser")) {
    browserProcessId = event.pid;
    return;
  }
  if (TraceEvents_exports.isProcessName(event) && (event.args.name === "Gpu" || event.args.name === "GPU Process")) {
    gpuProcessId = event.pid;
    return;
  }
  if (TraceEvents_exports.isThreadName(event) && event.args.name === "CrGpuMain") {
    gpuThreadId = event.tid;
    return;
  }
  if (TraceEvents_exports.isThreadName(event) && event.args.name === "CrBrowserMain") {
    browserThreadId = event.tid;
  }
  if (TraceEvents_exports.isMainFrameViewport(event) && viewportRect === null) {
    const rectAsArray = event.args.data.viewport_rect;
    const viewportX = rectAsArray[0];
    const viewportY = rectAsArray[1];
    const viewportWidth = rectAsArray[2];
    const viewportHeight = rectAsArray[5];
    viewportRect = { x: viewportX, y: viewportY, width: viewportWidth, height: viewportHeight };
    devicePixelRatio2 = event.args.data.dpr;
  }
  if (TraceEvents_exports.isTracingStartedInBrowser(event)) {
    traceStartedTimeFromTracingStartedEvent = event.ts;
    if (!event.args.data) {
      throw new Error("No frames found in trace data");
    }
    for (const frame of event.args.data.frames ?? []) {
      updateRendererProcessByFrame(event, frame);
      if (!frame.parent) {
        topLevelRendererIds.add(frame.processId);
      }
      const traceHasPrimaryMainFrameFlag = "isInPrimaryMainFrame" in frame;
      const traceHasOutermostMainFrameFlag = "isOutermostMainFrame" in frame;
      if (traceHasPrimaryMainFrameFlag && traceHasOutermostMainFrameFlag) {
        if (frame.isInPrimaryMainFrame && frame.isOutermostMainFrame) {
          mainFrameId = frame.frame;
          mainFrameURL = frame.url;
        }
      } else if (traceHasOutermostMainFrameFlag) {
        if (frame.isOutermostMainFrame) {
          mainFrameId = frame.frame;
          mainFrameURL = frame.url;
        }
      } else if (!frame.parent && frame.url) {
        mainFrameId = frame.frame;
        mainFrameURL = frame.url;
      }
    }
    return;
  }
  if (TraceEvents_exports.isFrameCommittedInBrowser(event)) {
    const frame = event.args.data;
    if (!frame) {
      return;
    }
    updateRendererProcessByFrame(event, frame);
    if (frame.parent) {
      return;
    }
    topLevelRendererIds.add(frame.processId);
    return;
  }
  if (TraceEvents_exports.isCommitLoad(event)) {
    const frameData = event.args.data;
    if (!frameData) {
      return;
    }
    const { frame, name, url } = frameData;
    updateRendererProcessByFrame(event, { processId: event.pid, frame, name, url });
    return;
  }
  if (TraceEvents_exports.isThreadName(event)) {
    const threads = MapUtilities_exports.getWithDefault(threadsInProcess, event.pid, () => /* @__PURE__ */ new Map());
    threads.set(event.tid, event);
    return;
  }
  if (TraceEvents_exports.isNavigationStart(event) && event.args.data) {
    const navigationId = event.args.data.navigationId;
    if (navigationsByNavigationId.has(navigationId)) {
      return;
    }
    navigationsByNavigationId.set(navigationId, event);
    finalDisplayUrlByNavigationId.set(navigationId, event.args.data.documentLoaderURL);
    const frameId = event.args.frame;
    const existingFrameNavigations = navigationsByFrameId.get(frameId) || [];
    existingFrameNavigations.push(event);
    navigationsByFrameId.set(frameId, existingFrameNavigations);
    if (frameId === mainFrameId) {
      mainFrameNavigations.push(event);
    }
    return;
  }
  if (TraceEvents_exports.isSoftNavigationStart(event)) {
    softNavigationsById.set(event.args.context.performanceTimelineNavigationId, event);
  }
  if (TraceEvents_exports.isResourceSendRequest(event)) {
    if (event.args.data.resourceType !== "Document") {
      return;
    }
    const maybeNavigationId = event.args.data.requestId;
    const navigation2 = navigationsByNavigationId.get(maybeNavigationId);
    if (!navigation2) {
      return;
    }
    finalDisplayUrlByNavigationId.set(maybeNavigationId, event.args.data.url);
    return;
  }
  if (TraceEvents_exports.isDidCommitSameDocumentNavigation(event)) {
    if (event.args.render_frame_host.frame_type !== "PRIMARY_MAIN_FRAME") {
      return;
    }
    const navigation2 = mainFrameNavigations.at(-1);
    const key = navigation2?.args.data?.navigationId ?? "";
    finalDisplayUrlByNavigationId.set(key, event.args.url);
    return;
  }
}
async function finalize5(options) {
  config = { showAllEvents: Boolean(options?.showAllEvents) };
  if (traceStartedTimeFromTracingStartedEvent >= 0) {
    traceBounds.min = traceStartedTimeFromTracingStartedEvent;
  }
  traceBounds.range = Timing_exports.Micro(traceBounds.max - traceBounds.min);
  for (const [, processWindows] of rendererProcessesByFrameId) {
    const processWindowValues = [...processWindows.values()].flat().sort((a, b) => {
      return a.window.min - b.window.min;
    });
    for (let i = 0; i < processWindowValues.length; i++) {
      const currentWindow = processWindowValues[i];
      const nextWindow = processWindowValues[i + 1];
      if (!nextWindow) {
        currentWindow.window.max = Timing_exports.Micro(traceBounds.max);
        currentWindow.window.range = Timing_exports.Micro(traceBounds.max - currentWindow.window.min);
      } else {
        currentWindow.window.max = Timing_exports.Micro(nextWindow.window.min - 1);
        currentWindow.window.range = Timing_exports.Micro(currentWindow.window.max - currentWindow.window.min);
      }
    }
  }
  for (const [frameId, navigations] of navigationsByFrameId) {
    if (rendererProcessesByFrameId.has(frameId)) {
      continue;
    }
    navigationsByFrameId.delete(frameId);
    for (const navigation2 of navigations) {
      if (!navigation2.args.data) {
        continue;
      }
      navigationsByNavigationId.delete(navigation2.args.data.navigationId);
    }
  }
  const firstMainFrameNav = mainFrameNavigations.at(0);
  const firstNavTimeThreshold = Timing_exports3.secondsToMicro(Timing_exports.Seconds(0.5));
  if (firstMainFrameNav) {
    const navigationIsWithinThreshold = firstMainFrameNav.ts - traceBounds.min < firstNavTimeThreshold;
    if (firstMainFrameNav.args.data?.isOutermostMainFrame && firstMainFrameNav.args.data?.documentLoaderURL && navigationIsWithinThreshold) {
      mainFrameURL = firstMainFrameNav.args.data.documentLoaderURL;
    }
  }
}
function data5() {
  return {
    config,
    traceBounds,
    browserProcessId,
    browserThreadId,
    processNames,
    gpuProcessId,
    gpuThreadId: gpuThreadId === TraceEvents_exports.ThreadID(-1) ? void 0 : gpuThreadId,
    viewportRect: viewportRect || void 0,
    devicePixelRatio: devicePixelRatio2 ?? void 0,
    mainFrameId,
    mainFrameURL,
    navigationsByFrameId,
    navigationsByNavigationId,
    softNavigationsById,
    finalDisplayUrlByNavigationId,
    threadsInProcess,
    rendererProcessesByFrame: rendererProcessesByFrameId,
    topLevelRendererIds,
    frameByProcessId: framesByProcessId,
    mainFrameNavigations,
    traceIsGeneric
  };
}
var config, rendererProcessesByFrameId, mainFrameId, mainFrameURL, framesByProcessId, browserProcessId, browserThreadId, gpuProcessId, gpuThreadId, viewportRect, devicePixelRatio2, processNames, topLevelRendererIds, traceBounds, navigationsByFrameId, navigationsByNavigationId, softNavigationsById, finalDisplayUrlByNavigationId, mainFrameNavigations, threadsInProcess, traceStartedTimeFromTracingStartedEvent, eventPhasesOfInterestForTraceBounds, traceIsGeneric, CHROME_WEB_TRACE_EVENTS;
var init_MetaHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/MetaHandler.js"() {
    init_process_global();
    init_platform();
    init_helpers2();
    init_types2();
    rendererProcessesByFrameId = /* @__PURE__ */ new Map();
    mainFrameId = "";
    mainFrameURL = "";
    framesByProcessId = /* @__PURE__ */ new Map();
    browserProcessId = TraceEvents_exports.ProcessID(-1);
    browserThreadId = TraceEvents_exports.ThreadID(-1);
    gpuProcessId = TraceEvents_exports.ProcessID(-1);
    gpuThreadId = TraceEvents_exports.ThreadID(-1);
    viewportRect = null;
    devicePixelRatio2 = null;
    processNames = /* @__PURE__ */ new Map();
    topLevelRendererIds = /* @__PURE__ */ new Set();
    __name(makeNewTraceBounds, "makeNewTraceBounds");
    traceBounds = makeNewTraceBounds();
    navigationsByFrameId = /* @__PURE__ */ new Map();
    navigationsByNavigationId = /* @__PURE__ */ new Map();
    softNavigationsById = /* @__PURE__ */ new Map();
    finalDisplayUrlByNavigationId = /* @__PURE__ */ new Map();
    mainFrameNavigations = [];
    threadsInProcess = /* @__PURE__ */ new Map();
    traceStartedTimeFromTracingStartedEvent = Timing_exports.Micro(-1);
    eventPhasesOfInterestForTraceBounds = /* @__PURE__ */ new Set([
      TraceEvents_exports.Phase.BEGIN,
      TraceEvents_exports.Phase.END,
      TraceEvents_exports.Phase.COMPLETE,
      TraceEvents_exports.Phase.INSTANT
    ]);
    traceIsGeneric = true;
    CHROME_WEB_TRACE_EVENTS = /* @__PURE__ */ new Set([
      TraceEvents_exports.Name.TRACING_STARTED_IN_PAGE,
      TraceEvents_exports.Name.TRACING_SESSION_ID_FOR_WORKER,
      TraceEvents_exports.Name.TRACING_STARTED_IN_BROWSER,
      TraceEvents_exports.Name.CPU_PROFILE
    ]);
    __name(reset5, "reset");
    __name(updateRendererProcessByFrame, "updateRendererProcessByFrame");
    __name(handleEvent5, "handleEvent");
    __name(finalize5, "finalize");
    __name(data5, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/NetworkRequestsHandler.js
var NetworkRequestsHandler_exports = {};
__export(NetworkRequestsHandler_exports, {
  data: () => data6,
  deps: () => deps2,
  finalize: () => finalize6,
  handleEvent: () => handleEvent6,
  reset: () => reset6
});
function storeTraceEventWithRequestId(requestId, key, value) {
  if (!requestMap.has(requestId)) {
    requestMap.set(requestId, {});
  }
  const traceEvents = requestMap.get(requestId);
  if (!traceEvents) {
    throw new Error(`Unable to locate trace events for request ID ${requestId}`);
  }
  if (Array.isArray(traceEvents[key])) {
    const target = traceEvents[key];
    const values = value;
    target.push(...values);
  } else {
    traceEvents[key] = value;
  }
}
function firstPositiveValueInList(entries) {
  for (const entry of entries) {
    if (entry && entry > 0) {
      return entry;
    }
  }
  return 0;
}
function reset6() {
  requestsById = /* @__PURE__ */ new Map();
  requestMap = /* @__PURE__ */ new Map();
  requestsByTime = [];
  networkRequestEventByInitiatorUrl = /* @__PURE__ */ new Map();
  eventToInitiatorMap = /* @__PURE__ */ new Map();
  webSocketData = /* @__PURE__ */ new Map();
  requestIdsByURL = /* @__PURE__ */ new Map();
  entityMappings = {
    eventsByEntity: /* @__PURE__ */ new Map(),
    entityByEvent: /* @__PURE__ */ new Map(),
    createdEntityCache: /* @__PURE__ */ new Map(),
    entityByUrlCache: /* @__PURE__ */ new Map()
  };
  linkPreconnectEvents = [];
}
function handleEvent6(event) {
  if (TraceEvents_exports.isResourceChangePriority(event)) {
    storeTraceEventWithRequestId(event.args.data.requestId, "changePriority", event);
    return;
  }
  if (TraceEvents_exports.isResourceWillSendRequest(event)) {
    storeTraceEventWithRequestId(event.args.data.requestId, "willSendRequests", [event]);
    return;
  }
  if (TraceEvents_exports.isResourceSendRequest(event)) {
    storeTraceEventWithRequestId(event.args.data.requestId, "sendRequests", [event]);
    return;
  }
  if (TraceEvents_exports.isResourceReceiveResponse(event)) {
    storeTraceEventWithRequestId(event.args.data.requestId, "receiveResponse", event);
    return;
  }
  if (TraceEvents_exports.isResourceReceivedData(event)) {
    storeTraceEventWithRequestId(event.args.data.requestId, "receivedData", [event]);
    return;
  }
  if (TraceEvents_exports.isResourceFinish(event)) {
    storeTraceEventWithRequestId(event.args.data.requestId, "resourceFinish", event);
    return;
  }
  if (TraceEvents_exports.isResourceMarkAsCached(event)) {
    storeTraceEventWithRequestId(event.args.data.requestId, "resourceMarkAsCached", event);
    return;
  }
  if (TraceEvents_exports.isPreloadRenderBlockingStatusChangeEvent(event)) {
    storeTraceEventWithRequestId(event.args.data.requestId, "preloadRenderBlockingStatusChange", [event]);
  }
  if (TraceEvents_exports.isWebSocketCreate(event) || TraceEvents_exports.isWebSocketInfo(event) || TraceEvents_exports.isWebSocketTransfer(event)) {
    const identifier = event.args.data.identifier;
    if (!webSocketData.has(identifier)) {
      if (event.args.data.frame) {
        webSocketData.set(identifier, {
          frame: event.args.data.frame,
          webSocketIdentifier: identifier,
          events: [],
          syntheticConnection: null
        });
      } else if (event.args.data.workerId) {
        webSocketData.set(identifier, {
          workerId: event.args.data.workerId,
          webSocketIdentifier: identifier,
          events: [],
          syntheticConnection: null
        });
      }
    }
    webSocketData.get(identifier)?.events.push(event);
  }
  if (TraceEvents_exports.isLinkPreconnect(event)) {
    linkPreconnectEvents.push(event);
    return;
  }
}
async function finalize6() {
  const { rendererProcessesByFrame } = data5();
  for (const [requestId, request] of requestMap.entries()) {
    if (!request.sendRequests) {
      continue;
    }
    const redirects = [];
    for (let i = 0; i < request.sendRequests.length - 1; i++) {
      const sendRequest = request.sendRequests[i];
      const nextSendRequest = request.sendRequests[i + 1];
      let ts = sendRequest.ts;
      let dur = Timing_exports.Micro(nextSendRequest.ts - sendRequest.ts);
      if (request.willSendRequests?.[i] && request.willSendRequests[i + 1]) {
        const willSendRequest = request.willSendRequests[i];
        const nextWillSendRequest = request.willSendRequests[i + 1];
        ts = willSendRequest.ts;
        dur = Timing_exports.Micro(nextWillSendRequest.ts - willSendRequest.ts);
      }
      redirects.push({
        url: sendRequest.args.data.url,
        priority: sendRequest.args.data.priority,
        requestMethod: sendRequest.args.data.requestMethod,
        ts,
        dur
      });
    }
    const firstSendRequest = request.sendRequests[0];
    const finalSendRequest = request.sendRequests[request.sendRequests.length - 1];
    if (finalSendRequest.args.data.url.startsWith("data:")) {
      continue;
    }
    const isLightrider = globalThis.isLightrider;
    if (isLightrider && request.resourceFinish && request.receiveResponse?.args.data.headers) {
      const lrSizeHeader = request.receiveResponse.args.data.headers.find((h) => h.name === "X-TotalFetchedSize");
      if (lrSizeHeader) {
        const size = parseFloat(lrSizeHeader.value);
        if (!isNaN(size)) {
          request.resourceFinish.args.data.encodedDataLength = size;
        }
      }
    }
    const isPushedResource = request.resourceFinish?.args.data.encodedDataLength !== 0;
    const isDiskCached = !!request.receiveResponse && request.receiveResponse.args.data.fromCache && !request.receiveResponse.args.data.fromServiceWorker && !isPushedResource;
    const isMemoryCached = request.resourceMarkAsCached !== void 0;
    let timing = isMemoryCached ? void 0 : request.receiveResponse?.args.data.timing;
    let lrServerResponseTime;
    if (isLightrider && request.receiveResponse?.args.data.headers) {
      timing = {
        requestTime: Timing_exports3.microToSeconds(request.sendRequests.at(0)?.ts ?? 0),
        connectEnd: 0,
        connectStart: 0,
        dnsEnd: 0,
        dnsStart: 0,
        proxyEnd: 0,
        proxyStart: 0,
        pushEnd: 0,
        pushStart: 0,
        receiveHeadersEnd: 0,
        receiveHeadersStart: 0,
        sendEnd: 0,
        sendStart: 0,
        sslEnd: 0,
        sslStart: 0,
        workerReady: 0,
        workerStart: 0,
        ...timing
      };
      const TCPMsHeader = request.receiveResponse.args.data.headers.find((h) => h.name === "X-TCPMs");
      const TCPMs = TCPMsHeader ? Math.max(0, parseInt(TCPMsHeader.value, 10)) : 0;
      if (request.receiveResponse.args.data.protocol.startsWith("h3")) {
        timing.connectStart = 0;
        timing.connectEnd = TCPMs;
      } else {
        timing.connectStart = 0;
        timing.sslStart = TCPMs / 2;
        timing.connectEnd = TCPMs;
        timing.sslEnd = TCPMs;
      }
      const ResponseMsHeader = request.receiveResponse.args.data.headers.find((h) => h.name === "X-ResponseMs");
      if (ResponseMsHeader) {
        lrServerResponseTime = Math.max(0, parseInt(ResponseMsHeader.value, 10));
      }
    }
    const allowedProtocols2 = [
      "blob:",
      "file:",
      "filesystem:",
      "http:",
      "https:"
    ];
    if (!allowedProtocols2.some((p) => firstSendRequest.args.data.url.startsWith(p))) {
      continue;
    }
    const initialPriority = finalSendRequest.args.data.priority;
    let finalPriority = initialPriority;
    if (request.changePriority) {
      finalPriority = request.changePriority.args.data.priority;
    }
    const startTime = request.willSendRequests?.length ? Timing_exports.Micro(request.willSendRequests[0].ts) : Timing_exports.Micro(firstSendRequest.ts);
    const endRedirectTime = request.willSendRequests?.length ? Timing_exports.Micro(request.willSendRequests[request.willSendRequests.length - 1].ts) : Timing_exports.Micro(finalSendRequest.ts);
    const endTime = request.resourceFinish ? request.resourceFinish.ts : endRedirectTime;
    const finishTime = request.resourceFinish?.args.data.finishTime ? Timing_exports.Micro(request.resourceFinish.args.data.finishTime * SECONDS_TO_MICROSECONDS) : Timing_exports.Micro(endTime);
    const networkDuration = Timing_exports.Micro(timing ? (finishTime || endRedirectTime) - endRedirectTime : 0);
    const processingDuration = Timing_exports.Micro(endTime - (finishTime || endTime));
    const redirectionDuration = Timing_exports.Micro(endRedirectTime - startTime);
    const queueingFromTraceData = timing ? timing.requestTime * SECONDS_TO_MICROSECONDS - endRedirectTime : 0;
    const queueing = Timing_exports.Micro(NumberUtilities_exports.clamp(queueingFromTraceData, 0, Number.MAX_VALUE));
    const stalled = timing ? Timing_exports.Micro(firstPositiveValueInList([
      timing.dnsStart * MILLISECONDS_TO_MICROSECONDS,
      timing.connectStart * MILLISECONDS_TO_MICROSECONDS,
      timing.sendStart * MILLISECONDS_TO_MICROSECONDS,
      request.receiveResponse ? request.receiveResponse.ts - endRedirectTime : null
    ])) : request.receiveResponse ? Timing_exports.Micro(request.receiveResponse.ts - startTime) : Timing_exports.Micro(0);
    const sendStartTime = timing ? Timing_exports.Micro(timing.requestTime * SECONDS_TO_MICROSECONDS + timing.sendStart * MILLISECONDS_TO_MICROSECONDS) : startTime;
    const waiting = timing ? Timing_exports.Micro((timing.receiveHeadersEnd - timing.sendEnd) * MILLISECONDS_TO_MICROSECONDS) : Timing_exports.Micro(0);
    const serverResponseTime = timing ? Timing_exports.Micro(((timing.receiveHeadersStart ?? timing.receiveHeadersEnd) - timing.sendEnd) * MILLISECONDS_TO_MICROSECONDS) : Timing_exports.Micro(0);
    const downloadStart = timing ? Timing_exports.Micro(timing.requestTime * SECONDS_TO_MICROSECONDS + timing.receiveHeadersEnd * MILLISECONDS_TO_MICROSECONDS) : startTime;
    const download = timing ? Timing_exports.Micro((finishTime || downloadStart) - downloadStart) : request.receiveResponse ? Timing_exports.Micro(endTime - request.receiveResponse.ts) : Timing_exports.Micro(0);
    const totalTime = Timing_exports.Micro(networkDuration + processingDuration);
    const dnsLookup = timing ? Timing_exports.Micro((timing.dnsEnd - timing.dnsStart) * MILLISECONDS_TO_MICROSECONDS) : Timing_exports.Micro(0);
    const ssl = timing ? Timing_exports.Micro((timing.sslEnd - timing.sslStart) * MILLISECONDS_TO_MICROSECONDS) : Timing_exports.Micro(0);
    const proxyNegotiation = timing ? Timing_exports.Micro((timing.proxyEnd - timing.proxyStart) * MILLISECONDS_TO_MICROSECONDS) : Timing_exports.Micro(0);
    const requestSent = timing ? Timing_exports.Micro((timing.sendEnd - timing.sendStart) * MILLISECONDS_TO_MICROSECONDS) : Timing_exports.Micro(0);
    const initialConnection = timing ? Timing_exports.Micro((timing.connectEnd - timing.connectStart) * MILLISECONDS_TO_MICROSECONDS) : Timing_exports.Micro(0);
    const { frame, url, renderBlocking: sendRequestIsRenderBlocking } = finalSendRequest.args.data;
    const { encodedDataLength, decodedBodyLength } = request.resourceFinish ? request.resourceFinish.args.data : { encodedDataLength: 0, decodedBodyLength: 0 };
    const parsedUrl = new URL(url);
    const isHttps = parsedUrl.protocol === "https:";
    const requestingFrameUrl = Trace_exports.activeURLForFrameAtTime(frame, finalSendRequest.ts, rendererProcessesByFrame) || "";
    const preloadRenderBlockingStatusChange = request.preloadRenderBlockingStatusChange?.at(-1)?.args.data.renderBlocking;
    const isRenderBlocking = preloadRenderBlockingStatusChange ?? sendRequestIsRenderBlocking ?? "non_blocking";
    const networkEvent = SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent({
      rawSourceEvent: finalSendRequest,
      args: {
        data: {
          // All data we create from trace events should be added to |syntheticData|.
          syntheticData: {
            dnsLookup,
            download,
            downloadStart,
            finishTime,
            initialConnection,
            isDiskCached,
            isHttps,
            isMemoryCached,
            isPushedResource,
            networkDuration,
            processingDuration,
            proxyNegotiation,
            queueing,
            redirectionDuration,
            requestSent,
            sendStartTime,
            ssl,
            stalled,
            totalTime,
            waiting,
            serverResponseTime
          },
          // All fields below are from TraceEventsForNetworkRequest.
          decodedBodyLength,
          encodedDataLength,
          frame,
          fromServiceWorker: request.receiveResponse?.args.data.fromServiceWorker,
          isLinkPreload: finalSendRequest.args.data.isLinkPreload || false,
          mimeType: request.receiveResponse?.args.data.mimeType ?? "",
          priority: finalPriority,
          initialPriority,
          protocol: request.receiveResponse?.args.data.protocol ?? "unknown",
          redirects,
          renderBlocking: isRenderBlocking,
          requestId,
          requestingFrameUrl,
          requestMethod: finalSendRequest.args.data.requestMethod,
          resourceType: finalSendRequest.args.data.resourceType ?? "Other",
          statusCode: request.receiveResponse?.args.data.statusCode ?? 0,
          responseHeaders: request.receiveResponse?.args.data.headers ?? null,
          fetchPriorityHint: finalSendRequest.args.data.fetchPriorityHint ?? "auto",
          initiator: finalSendRequest.args.data.initiator,
          stackTrace: finalSendRequest.args.data.stackTrace,
          timing,
          lrServerResponseTime,
          url,
          failed: request.resourceFinish?.args.data.didFail ?? false,
          finished: Boolean(request.resourceFinish),
          hasResponse: Boolean(request.receiveResponse),
          connectionId: request.receiveResponse?.args.data.connectionId,
          connectionReused: request.receiveResponse?.args.data.connectionReused
        }
      },
      cat: "loading",
      name: TraceEvents_exports.Name.SYNTHETIC_NETWORK_REQUEST,
      ph: TraceEvents_exports.Phase.COMPLETE,
      dur: Timing_exports.Micro(endTime - startTime),
      tdur: Timing_exports.Micro(endTime - startTime),
      ts: Timing_exports.Micro(startTime),
      tts: Timing_exports.Micro(startTime),
      pid: finalSendRequest.pid,
      tid: finalSendRequest.tid
    });
    requestsByTime.push(networkEvent);
    requestsById.set(networkEvent.args.data.requestId, networkEvent);
    const requestsForUrl = requestIdsByURL.get(networkEvent.args.data.url) ?? [];
    requestsForUrl.push(networkEvent.args.data.requestId);
    requestIdsByURL.set(networkEvent.args.data.url, requestsForUrl);
    addNetworkRequestToEntityMapping(networkEvent, entityMappings, request);
    const initiatorUrl = networkEvent.args.data.initiator?.url || Trace_exports.getStackTraceTopCallFrameInEventPayload(networkEvent)?.url;
    if (initiatorUrl) {
      const events = networkRequestEventByInitiatorUrl.get(initiatorUrl) ?? [];
      events.push(networkEvent);
      networkRequestEventByInitiatorUrl.set(initiatorUrl, events);
    }
  }
  for (const request of requestsByTime) {
    const initiatedEvents = networkRequestEventByInitiatorUrl.get(request.args.data.url);
    if (initiatedEvents) {
      for (const initiatedEvent of initiatedEvents) {
        eventToInitiatorMap.set(initiatedEvent, request);
      }
    }
  }
  finalizeWebSocketData();
}
function data6() {
  return {
    byId: requestsById,
    byTime: requestsByTime,
    requestIdsByURL,
    incompleteInitiator: eventToInitiatorMap,
    webSocket: [...webSocketData.values()],
    entityMappings: {
      entityByEvent: entityMappings.entityByEvent,
      eventsByEntity: entityMappings.eventsByEntity,
      createdEntityCache: entityMappings.createdEntityCache,
      entityByUrlCache: entityMappings.entityByUrlCache
    },
    linkPreconnectEvents
  };
}
function deps2() {
  return ["Meta"];
}
function finalizeWebSocketData() {
  webSocketData.forEach((data31) => {
    let startEvent = null;
    let endEvent = null;
    for (const event of data31.events) {
      if (TraceEvents_exports.isWebSocketCreate(event)) {
        startEvent = event;
      }
      if (TraceEvents_exports.isWebSocketDestroy(event)) {
        endEvent = event;
      }
    }
    data31.syntheticConnection = createSyntheticWebSocketConnection(startEvent, endEvent, data31.events[0]);
  });
}
function createSyntheticWebSocketConnection(startEvent, endEvent, firstRecordedEvent) {
  const { traceBounds: traceBounds2 } = data5();
  const startTs = startEvent ? startEvent.ts : traceBounds2.min;
  const endTs = endEvent ? endEvent.ts : traceBounds2.max;
  const duration = endTs - startTs;
  const mainEvent = startEvent || endEvent || firstRecordedEvent;
  return {
    name: "SyntheticWebSocketConnection",
    cat: mainEvent.cat,
    ph: TraceEvents_exports.Phase.COMPLETE,
    ts: startTs,
    dur: duration,
    pid: mainEvent.pid,
    tid: mainEvent.tid,
    s: mainEvent.s,
    rawSourceEvent: mainEvent,
    _tag: "SyntheticEntryTag",
    args: {
      data: {
        identifier: mainEvent.args.data.identifier,
        priority: "Low",
        url: mainEvent.args.data.url || ""
      }
    }
  };
}
var MILLISECONDS_TO_MICROSECONDS, SECONDS_TO_MICROSECONDS, webSocketData, linkPreconnectEvents, requestMap, requestsById, requestsByTime, requestIdsByURL, networkRequestEventByInitiatorUrl, eventToInitiatorMap, entityMappings;
var init_NetworkRequestsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/NetworkRequestsHandler.js"() {
    init_process_global();
    init_platform();
    init_helpers2();
    init_types2();
    init_helpers();
    init_MetaHandler();
    MILLISECONDS_TO_MICROSECONDS = 1e3;
    SECONDS_TO_MICROSECONDS = 1e6;
    webSocketData = /* @__PURE__ */ new Map();
    linkPreconnectEvents = [];
    requestMap = /* @__PURE__ */ new Map();
    requestsById = /* @__PURE__ */ new Map();
    requestsByTime = [];
    requestIdsByURL = /* @__PURE__ */ new Map();
    networkRequestEventByInitiatorUrl = /* @__PURE__ */ new Map();
    eventToInitiatorMap = /* @__PURE__ */ new Map();
    entityMappings = {
      eventsByEntity: /* @__PURE__ */ new Map(),
      entityByEvent: /* @__PURE__ */ new Map(),
      createdEntityCache: /* @__PURE__ */ new Map(),
      entityByUrlCache: /* @__PURE__ */ new Map()
    };
    __name(storeTraceEventWithRequestId, "storeTraceEventWithRequestId");
    __name(firstPositiveValueInList, "firstPositiveValueInList");
    __name(reset6, "reset");
    __name(handleEvent6, "handleEvent");
    __name(finalize6, "finalize");
    __name(data6, "data");
    __name(deps2, "deps");
    __name(finalizeWebSocketData, "finalizeWebSocketData");
    __name(createSyntheticWebSocketConnection, "createSyntheticWebSocketConnection");
  }
});

// node_modules/@paulirish/trace_engine/models/cpu_profile/ProfileTreeModel.js
var ProfileNode, ProfileTreeModel;
var init_ProfileTreeModel = __esm({
  "node_modules/@paulirish/trace_engine/models/cpu_profile/ProfileTreeModel.js"() {
    init_process_global();
    ProfileNode = class {
      static {
        __name(this, "ProfileNode");
      }
      callFrame;
      callUID;
      self;
      total;
      id;
      parent;
      children;
      originalFunctionName = null;
      depth;
      deoptReason;
      constructor(callFrame) {
        this.callFrame = callFrame;
        this.callUID = `${callFrame.functionName}@${callFrame.scriptId}:${callFrame.lineNumber}:${callFrame.columnNumber}`;
        this.self = 0;
        this.total = 0;
        this.id = 0;
        this.parent = null;
        this.children = [];
      }
      get scriptId() {
        return String(this.callFrame.scriptId);
      }
      get url() {
        return this.callFrame.url;
      }
      get lineNumber() {
        return this.callFrame.lineNumber;
      }
      get columnNumber() {
        return this.callFrame.columnNumber;
      }
      get functionName() {
        return this.originalFunctionName ?? this.callFrame.functionName;
      }
      setOriginalFunctionName(name) {
        this.originalFunctionName = name;
      }
    };
    ProfileTreeModel = class {
      static {
        __name(this, "ProfileTreeModel");
      }
      root;
      total;
      maxDepth;
      initialize(root2) {
        this.root = root2;
        this.assignDepthsAndParents();
        this.total = this.calculateTotals(this.root);
      }
      assignDepthsAndParents() {
        const root2 = this.root;
        root2.depth = -1;
        root2.parent = null;
        this.maxDepth = 0;
        const nodesToTraverse = [root2];
        while (nodesToTraverse.length) {
          const parent = nodesToTraverse.pop();
          const depth = parent.depth + 1;
          if (depth > this.maxDepth) {
            this.maxDepth = depth;
          }
          const children = parent.children;
          for (const child of children) {
            child.depth = depth;
            child.parent = parent;
            nodesToTraverse.push(child);
          }
        }
      }
      calculateTotals(root2) {
        const nodesToTraverse = [root2];
        const dfsList = [];
        while (nodesToTraverse.length) {
          const node = nodesToTraverse.pop();
          node.total = node.self;
          dfsList.push(node);
          nodesToTraverse.push(...node.children);
        }
        while (dfsList.length > 1) {
          const node = dfsList.pop();
          if (node.parent) {
            node.parent.total += node.total;
          }
        }
        return root2.total;
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/cpu_profile/CPUProfileDataModel.js
var CPUProfileDataModel_exports = {};
__export(CPUProfileDataModel_exports, {
  CPUProfileDataModel: () => CPUProfileDataModel,
  CPUProfileNode: () => CPUProfileNode
});
var CPUProfileNode, CPUProfileDataModel;
var init_CPUProfileDataModel = __esm({
  "node_modules/@paulirish/trace_engine/models/cpu_profile/CPUProfileDataModel.js"() {
    init_process_global();
    init_platform();
    init_ProfileTreeModel();
    CPUProfileNode = class extends ProfileNode {
      static {
        __name(this, "CPUProfileNode");
      }
      id;
      self;
      // Position ticks are available in profile nodes coming from CDP
      // profiles and not in those coming from tracing. They are used to
      // calculate the line level execution time shown in the Sources panel
      // after recording a profile. For trace CPU profiles we use the
      // `lines` array instead.
      positionTicks;
      deoptReason;
      constructor(node, samplingInterval) {
        const callFrame = node.callFrame || {
          // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
          // @ts-expect-error
          functionName: node["functionName"],
          // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
          // @ts-expect-error
          scriptId: node["scriptId"],
          // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
          // @ts-expect-error
          url: node["url"],
          // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
          // @ts-expect-error
          lineNumber: node["lineNumber"] - 1,
          // TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
          // @ts-expect-error
          columnNumber: node["columnNumber"] - 1
        };
        super(callFrame);
        this.id = node.id;
        this.self = (node.hitCount || 0) * samplingInterval;
        this.positionTicks = node.positionTicks;
        this.deoptReason = node.deoptReason && node.deoptReason !== "no reason" ? node.deoptReason : null;
      }
    };
    CPUProfileDataModel = class extends ProfileTreeModel {
      static {
        __name(this, "CPUProfileDataModel");
      }
      profileStartTime;
      profileEndTime;
      timestamps;
      samples;
      /**
       * Contains trace ids assigned to samples, if any. Trace ids are
       * keyed by the sample index in the profile. These are only created
       * for CPU profiles coming from traces.
       */
      traceIds;
      /**
       * Each item in the `lines` array contains the script line executing
       * when the sample in that array position was taken.
       */
      lines;
      /**
       * Same as `lines` above, but with the script column.
       */
      columns;
      totalHitCount;
      profileHead;
      /**
       * A cache for the nodes we have parsed.
       * Note: "Parsed" nodes are different from the "Protocol" nodes, the
       * latter being the raw data we receive from the backend.
       */
      #idToParsedNode;
      gcNode;
      programNode;
      idleNode;
      #stackStartTimes;
      #stackChildrenDuration;
      constructor(profile) {
        super();
        const isLegacyFormat = Boolean(profile["head"]);
        if (isLegacyFormat) {
          this.profileStartTime = profile.startTime * 1e3;
          this.profileEndTime = profile.endTime * 1e3;
          this.timestamps = profile.timestamps;
          this.compatibilityConversionHeadToNodes(profile);
        } else {
          this.profileStartTime = profile.startTime / 1e3;
          this.profileEndTime = profile.endTime / 1e3;
          this.timestamps = this.convertTimeDeltas(profile);
        }
        this.traceIds = profile.traceIds;
        this.samples = profile.samples;
        this.lines = profile.lines;
        this.columns = profile.columns;
        this.totalHitCount = 0;
        this.profileHead = this.translateProfileTree(profile.nodes);
        this.initialize(this.profileHead);
        this.extractMetaNodes();
        if (this.samples?.length) {
          this.sortSamples();
          this.normalizeTimestamps();
          this.fixMissingSamples();
        }
      }
      compatibilityConversionHeadToNodes(profile) {
        if (!profile.head || profile.nodes) {
          return;
        }
        const nodes = [];
        convertNodesTree(profile.head);
        profile.nodes = nodes;
        delete profile.head;
        function convertNodesTree(node) {
          nodes.push(node);
          node.children = node.children.map(convertNodesTree);
          return node.id;
        }
        __name(convertNodesTree, "convertNodesTree");
      }
      /**
       * Calculate timestamps using timeDeltas. Some CPU profile formats,
       * like the ones contained in traces have timeDeltas instead of
       * timestamps.
       */
      convertTimeDeltas(profile) {
        if (!profile.timeDeltas) {
          return [];
        }
        let lastTimeMicroSec = profile.startTime;
        const timestamps = new Array(profile.timeDeltas.length);
        for (let i = 0; i < profile.timeDeltas.length; ++i) {
          lastTimeMicroSec += profile.timeDeltas[i];
          timestamps[i] = lastTimeMicroSec;
        }
        return timestamps;
      }
      /**
       * Creates a Tree of CPUProfileNodes using the Protocol.Profiler.ProfileNodes.
       * As the tree is built, samples of native code (prefixed with "native ") are
       * filtered out. Samples of filtered nodes are replaced with the parent of the
       * node being filtered.
       *
       * This function supports legacy and new definitions of the CDP Profiler.Profile
       * type.
       */
      translateProfileTree(nodes) {
        function buildChildrenFromParents(nodes2) {
          if (nodes2[0].children) {
            return;
          }
          nodes2[0].children = [];
          for (let i = 1; i < nodes2.length; ++i) {
            const node = nodes2[i];
            const parentNode = protocolNodeById.get(node.parent);
            if (!parentNode) {
              continue;
            }
            if (parentNode.children) {
              parentNode.children.push(node.id);
            } else {
              parentNode.children = [node.id];
            }
          }
        }
        __name(buildChildrenFromParents, "buildChildrenFromParents");
        function buildHitCountFromSamples(nodes2, samples) {
          if (typeof nodes2[0].hitCount === "number") {
            return;
          }
          if (!samples) {
            throw new Error("Error: Neither hitCount nor samples are present in profile.");
          }
          for (let i = 0; i < nodes2.length; ++i) {
            nodes2[i].hitCount = 0;
          }
          for (let i = 0; i < samples.length; ++i) {
            const node = protocolNodeById.get(samples[i]);
            if (node?.hitCount === void 0) {
              continue;
            }
            node.hitCount++;
          }
        }
        __name(buildHitCountFromSamples, "buildHitCountFromSamples");
        const protocolNodeById = /* @__PURE__ */ new Map();
        for (let i = 0; i < nodes.length; ++i) {
          const node = nodes[i];
          protocolNodeById.set(node.id, node);
        }
        buildHitCountFromSamples(nodes, this.samples);
        buildChildrenFromParents(nodes);
        this.totalHitCount = nodes.reduce((acc, node) => acc + (node.hitCount || 0), 0);
        const sampleTime = (this.profileEndTime - this.profileStartTime) / this.totalHitCount;
        const root2 = nodes[0];
        const idToUseForRemovedNode = /* @__PURE__ */ new Map([[root2.id, root2.id]]);
        this.#idToParsedNode = /* @__PURE__ */ new Map();
        const resultRoot = new CPUProfileNode(root2, sampleTime);
        this.#idToParsedNode.set(root2.id, resultRoot);
        if (!root2.children) {
          throw new Error("Missing children for root");
        }
        const parentNodeStack = root2.children.map(() => resultRoot);
        const sourceNodeStack = root2.children.map((id) => protocolNodeById.get(id));
        while (sourceNodeStack.length) {
          let parentNode = parentNodeStack.pop();
          const sourceNode = sourceNodeStack.pop();
          if (!sourceNode || !parentNode) {
            continue;
          }
          if (!sourceNode.children) {
            sourceNode.children = [];
          }
          const targetNode = new CPUProfileNode(sourceNode, sampleTime);
          parentNode.children.push(targetNode);
          parentNode = targetNode;
          idToUseForRemovedNode.set(sourceNode.id, parentNode.id);
          parentNodeStack.push.apply(parentNodeStack, sourceNode.children.map(() => parentNode));
          sourceNodeStack.push.apply(sourceNodeStack, sourceNode.children.map((id) => protocolNodeById.get(id)));
          this.#idToParsedNode.set(sourceNode.id, targetNode);
        }
        if (this.samples) {
          this.samples = this.samples.map((id) => idToUseForRemovedNode.get(id));
        }
        return resultRoot;
      }
      /**
       * Sorts the samples array using the timestamps array (there is a one
       * to one matching by index between the two).
       */
      sortSamples() {
        if (!this.timestamps || !this.samples) {
          return;
        }
        const timestamps = this.timestamps;
        const samples = this.samples;
        const orderedIndices = timestamps.map((_x, index) => index);
        orderedIndices.sort((a, b) => timestamps[a] - timestamps[b]);
        this.timestamps = [];
        this.samples = [];
        for (let i = 0; i < orderedIndices.length; i++) {
          const orderedIndex = orderedIndices[i];
          this.timestamps.push(timestamps[orderedIndex]);
          this.samples.push(samples[orderedIndex]);
        }
      }
      /**
       * Fills in timestamps and/or time deltas from legacy profiles where
       * they could be missing.
       */
      normalizeTimestamps() {
        if (!this.samples) {
          return;
        }
        let timestamps = this.timestamps;
        if (!timestamps) {
          const profileStartTime = this.profileStartTime;
          const interval = (this.profileEndTime - profileStartTime) / this.samples.length;
          timestamps = new Array(this.samples.length + 1);
          for (let i = 0; i < timestamps.length; ++i) {
            timestamps[i] = profileStartTime + i * interval;
          }
          this.timestamps = timestamps;
          return;
        }
        for (let i = 0; i < timestamps.length; ++i) {
          timestamps[i] /= 1e3;
        }
        if (this.samples.length === timestamps.length) {
          const lastTimestamp = timestamps.at(-1) || 0;
          const averageIntervalTime = (lastTimestamp - timestamps[0]) / (timestamps.length - 1);
          this.timestamps.push(lastTimestamp + averageIntervalTime);
        }
        this.profileStartTime = timestamps.at(0) || this.profileStartTime;
        this.profileEndTime = timestamps.at(-1) || this.profileEndTime;
      }
      /**
       * Some nodes do not refer to JS samples but to V8 system tasks, AKA
       * "meta" nodes. This function extracts those nodes from the profile.
       */
      extractMetaNodes() {
        const topLevelNodes = this.profileHead.children;
        for (let i = 0; i < topLevelNodes.length && !(this.gcNode && this.programNode && this.idleNode); i++) {
          const node = topLevelNodes[i];
          if (node.functionName === "(garbage collector)") {
            this.gcNode = node;
          } else if (node.functionName === "(program)") {
            this.programNode = node;
          } else if (node.functionName === "(idle)") {
            this.idleNode = node;
          }
        }
      }
      fixMissingSamples() {
        const samples = this.samples;
        if (!samples) {
          return;
        }
        const samplesCount = samples.length;
        if (!this.programNode || samplesCount < 3) {
          return;
        }
        const idToNode = this.#idToParsedNode;
        const programNodeId = this.programNode.id;
        const gcNodeId = this.gcNode ? this.gcNode.id : -1;
        const idleNodeId = this.idleNode ? this.idleNode.id : -1;
        let prevNodeId = samples[0];
        let nodeId = samples[1];
        for (let sampleIndex = 1; sampleIndex < samplesCount - 1; sampleIndex++) {
          const nextNodeId = samples[sampleIndex + 1];
          const prevNode = idToNode.get(prevNodeId);
          const nextNode = idToNode.get(nextNodeId);
          if (prevNodeId === void 0 || nextNodeId === void 0 || !prevNode || !nextNode) {
            console.error(`Unexpectedly found undefined nodes: ${prevNodeId} ${nextNodeId}`);
            continue;
          }
          if (nodeId === programNodeId && !isSystemNode(prevNodeId) && !isSystemNode(nextNodeId) && bottomNode(prevNode) === bottomNode(nextNode)) {
            samples[sampleIndex] = prevNodeId;
          }
          prevNodeId = nodeId;
          nodeId = nextNodeId;
        }
        function bottomNode(node) {
          while (node.parent?.parent) {
            node = node.parent;
          }
          return node;
        }
        __name(bottomNode, "bottomNode");
        function isSystemNode(nodeId2) {
          return nodeId2 === programNodeId || nodeId2 === gcNodeId || nodeId2 === idleNodeId;
        }
        __name(isSystemNode, "isSystemNode");
      }
      /**
       * Traverses the call tree derived from the samples calling back when a call is opened
       * and when it's closed
       */
      forEachFrame(openFrameCallback, closeFrameCallback, startTime, stopTime) {
        if (!this.profileHead || !this.samples) {
          return;
        }
        startTime = startTime || 0;
        stopTime = stopTime || Infinity;
        const samples = this.samples;
        const timestamps = this.timestamps;
        const idToNode = this.#idToParsedNode;
        const gcNode = this.gcNode;
        const samplesCount = samples.length;
        const startIndex = ArrayUtilities_exports.lowerBound(timestamps, startTime, ArrayUtilities_exports.DEFAULT_COMPARATOR);
        let stackTop = 0;
        const stackNodes = [];
        let prevId = this.profileHead.id;
        let sampleTime;
        let gcParentNode = null;
        const stackDepth = this.maxDepth + 3;
        if (!this.#stackStartTimes) {
          this.#stackStartTimes = new Array(stackDepth);
        }
        const stackStartTimes = this.#stackStartTimes;
        if (!this.#stackChildrenDuration) {
          this.#stackChildrenDuration = new Array(stackDepth);
        }
        const stackChildrenDuration = this.#stackChildrenDuration;
        let node;
        let sampleIndex;
        for (sampleIndex = startIndex; sampleIndex < samplesCount; sampleIndex++) {
          sampleTime = timestamps[sampleIndex];
          if (sampleTime >= stopTime) {
            break;
          }
          const id = samples[sampleIndex];
          if (id === prevId) {
            continue;
          }
          node = idToNode.get(id);
          let prevNode = idToNode.get(prevId) || null;
          if (!prevNode) {
            continue;
          }
          if (gcNode && node === gcNode) {
            gcParentNode = prevNode;
            openFrameCallback(gcParentNode.depth + 1, gcNode, sampleIndex, sampleTime);
            stackStartTimes[++stackTop] = sampleTime;
            stackChildrenDuration[stackTop] = 0;
            prevId = id;
            continue;
          }
          if (gcNode && prevNode === gcNode && gcParentNode) {
            const start = stackStartTimes[stackTop];
            const duration = sampleTime - start;
            stackChildrenDuration[stackTop - 1] += duration;
            closeFrameCallback(gcParentNode.depth + 1, gcNode, sampleIndex, start, duration, duration - stackChildrenDuration[stackTop]);
            --stackTop;
            prevNode = gcParentNode;
            prevId = prevNode.id;
            gcParentNode = null;
          }
          while (node && node.depth > prevNode.depth) {
            stackNodes.push(node);
            node = node.parent;
          }
          while (prevNode && prevNode !== node) {
            const start = stackStartTimes[stackTop];
            const duration = sampleTime - start;
            stackChildrenDuration[stackTop - 1] += duration;
            closeFrameCallback(prevNode.depth, prevNode, sampleIndex, start, duration, duration - stackChildrenDuration[stackTop]);
            --stackTop;
            if (node && node.depth === prevNode.depth) {
              stackNodes.push(node);
              node = node.parent;
            }
            prevNode = prevNode.parent;
          }
          while (stackNodes.length) {
            const currentNode = stackNodes.pop();
            if (!currentNode) {
              break;
            }
            node = currentNode;
            openFrameCallback(currentNode.depth, currentNode, sampleIndex, sampleTime);
            stackStartTimes[++stackTop] = sampleTime;
            stackChildrenDuration[stackTop] = 0;
          }
          prevId = id;
        }
        sampleTime = timestamps[sampleIndex] || this.profileEndTime;
        if (node && gcParentNode && idToNode.get(prevId) === gcNode) {
          const start = stackStartTimes[stackTop];
          const duration = sampleTime - start;
          stackChildrenDuration[stackTop - 1] += duration;
          closeFrameCallback(gcParentNode.depth + 1, node, sampleIndex, start, duration, duration - stackChildrenDuration[stackTop]);
          --stackTop;
          prevId = gcParentNode.id;
        }
        for (let node2 = idToNode.get(prevId); node2?.parent; node2 = node2.parent) {
          const start = stackStartTimes[stackTop];
          const duration = sampleTime - start;
          stackChildrenDuration[stackTop - 1] += duration;
          closeFrameCallback(node2.depth, node2, sampleIndex, start, duration, duration - stackChildrenDuration[stackTop]);
          --stackTop;
        }
      }
      /**
       * Returns the node that corresponds to a given index of a sample.
       */
      nodeByIndex(index) {
        return this.samples && this.#idToParsedNode.get(this.samples[index]) || null;
      }
      /**
       * Returns the node that corresponds to a given node id.
       */
      nodeById(nodeId) {
        return this.#idToParsedNode.get(nodeId) || null;
      }
      nodes() {
        if (!this.#idToParsedNode) {
          return null;
        }
        return [...this.#idToParsedNode.values()];
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/cpu_profile/cpu_profile.js
var init_cpu_profile = __esm({
  "node_modules/@paulirish/trace_engine/models/cpu_profile/cpu_profile.js"() {
    init_process_global();
    init_CPUProfileDataModel();
    init_ProfileTreeModel();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/SamplesHandler.js
var SamplesHandler_exports = {};
__export(SamplesHandler_exports, {
  data: () => data7,
  finalize: () => finalize7,
  getProfileCallFunctionName: () => getProfileCallFunctionName,
  handleEvent: () => handleEvent7,
  reset: () => reset7
});
function parseCPUProfileData(parseOptions) {
  const priorityList = parseOptions.isCPUProfile ? PROFILE_SOURCES_BY_PRIORITY.cpuProfile : PROFILE_SOURCES_BY_PRIORITY.performanceTrace;
  for (const [processId, profiles] of preprocessedData) {
    const profilesByThread = /* @__PURE__ */ new Map();
    for (const [profileId, preProcessedData] of profiles) {
      const threadId = preProcessedData.threadId;
      if (threadId === void 0) {
        continue;
      }
      const listForThread = MapUtilities_exports.getWithDefault(profilesByThread, threadId, () => []);
      listForThread.push({ id: profileId, data: preProcessedData });
    }
    for (const [threadId, candidates] of profilesByThread) {
      let buildProfileCallsForCPUProfile = function() {
        profileModel.forEachFrame(openFrameCallback, closeFrameCallback);
        function openFrameCallback(depth, node, sampleIndex, timeStampMilliseconds) {
          if (threadId === void 0) {
            return;
          }
          const ts = Timing_exports3.milliToMicro(Timing_exports.Milli(timeStampMilliseconds));
          const nodeId = node.id;
          const profileCall = Trace_exports.makeProfileCall(node, selectedProfileId, sampleIndex, ts, processId, threadId);
          finalizedData.profileCalls.push(profileCall);
          indexStack.push(finalizedData.profileCalls.length - 1);
          const traceEntryNode = TreeHelpers_exports.makeEmptyTraceEntryNode(profileCall, nodeId);
          entryToNode.set(profileCall, traceEntryNode);
          traceEntryNode.depth = depth;
          if (indexStack.length === 1) {
            finalizedData.profileTree?.roots.add(traceEntryNode);
          }
        }
        __name(openFrameCallback, "openFrameCallback");
        function closeFrameCallback(_depth, _node, _sampleIndex, _timeStampMillis, durMs, selfTimeMs) {
          const profileCallIndex = indexStack.pop();
          const profileCall = profileCallIndex !== void 0 && finalizedData.profileCalls[profileCallIndex];
          if (!profileCall) {
            return;
          }
          const { callFrame, ts, pid, tid } = profileCall;
          const traceEntryNode = entryToNode.get(profileCall);
          if (callFrame === void 0 || ts === void 0 || pid === void 0 || selectedProfileId === void 0 || tid === void 0 || traceEntryNode === void 0) {
            return;
          }
          const dur = Timing_exports3.milliToMicro(Timing_exports.Milli(durMs));
          const selfTime = Timing_exports3.milliToMicro(Timing_exports.Milli(selfTimeMs));
          profileCall.dur = dur;
          traceEntryNode.selfTime = selfTime;
          const parentIndex = indexStack.at(-1);
          const parent = parentIndex !== void 0 && finalizedData.profileCalls.at(parentIndex);
          const parentNode = parent && entryToNode.get(parent);
          if (!parentNode) {
            return;
          }
          traceEntryNode.parent = parentNode;
          parentNode.children.push(traceEntryNode);
        }
        __name(closeFrameCallback, "closeFrameCallback");
      };
      __name(buildProfileCallsForCPUProfile, "buildProfileCallsForCPUProfile");
      if (!candidates.length) {
        continue;
      }
      let chosen = candidates[0];
      for (const source of priorityList) {
        const match = candidates.find((p) => p.data.source === source);
        if (match) {
          chosen = match;
          break;
        }
      }
      const chosenData = chosen.data;
      if (!chosenData.rawProfile.nodes.length) {
        continue;
      }
      const indexStack = [];
      const profileModel = new CPUProfileDataModel_exports.CPUProfileDataModel(chosenData.rawProfile);
      const profileTree = TreeHelpers_exports.makeEmptyTraceEntryTree();
      profileTree.maxDepth = profileModel.maxDepth;
      const selectedProfileId = chosen.id;
      const finalizedData = {
        rawProfile: chosenData.rawProfile,
        parsedProfile: profileModel,
        profileCalls: [],
        profileTree,
        profileId: selectedProfileId
      };
      const dataByThread = MapUtilities_exports.getWithDefault(profilesInProcess, processId, () => /* @__PURE__ */ new Map());
      dataByThread.set(threadId, finalizedData);
      if (parseOptions.isCPUProfile) {
        buildProfileCallsForCPUProfile();
      }
    }
  }
}
function reset7() {
  preprocessedData = /* @__PURE__ */ new Map();
  profilesInProcess = /* @__PURE__ */ new Map();
  entryToNode = /* @__PURE__ */ new Map();
}
function handleEvent7(event) {
  if (TraceEvents_exports.isSyntheticCpuProfile(event)) {
    const profileData = getOrCreatePreProcessedData(event.pid, event.id);
    profileData.rawProfile = event.args.data.cpuProfile;
    profileData.threadId = event.tid;
    return;
  }
  if (TraceEvents_exports.isProfile(event)) {
    const profileData = getOrCreatePreProcessedData(event.pid, event.id);
    profileData.rawProfile.startTime = event.ts;
    profileData.threadId = event.tid;
    assignProfileSourceIfKnown(profileData, event.args?.data?.source);
    return;
  }
  if (TraceEvents_exports.isProfileChunk(event)) {
    const profileData = getOrCreatePreProcessedData(event.pid, event.id);
    const cdpProfile = profileData.rawProfile;
    const nodesAndSamples = event.args?.data?.cpuProfile || { samples: [] };
    const samples = nodesAndSamples?.samples || [];
    const traceIds = event.args?.data?.cpuProfile?.trace_ids;
    for (const n of nodesAndSamples?.nodes || []) {
      const lineNumber = typeof n.callFrame.lineNumber === "undefined" ? -1 : n.callFrame.lineNumber;
      const columnNumber = typeof n.callFrame.columnNumber === "undefined" ? -1 : n.callFrame.columnNumber;
      const scriptId = String(n.callFrame.scriptId);
      const url = n.callFrame.url || "";
      const node = {
        ...n,
        callFrame: {
          ...n.callFrame,
          url,
          lineNumber,
          columnNumber,
          scriptId
        }
      };
      cdpProfile.nodes.push(node);
    }
    const timeDeltas = event.args.data?.timeDeltas || [];
    const lines = event.args.data?.lines || Array(samples.length).fill(0);
    const columns = event.args.data?.columns || Array(samples.length).fill(0);
    cdpProfile.samples?.push(...samples);
    cdpProfile.timeDeltas?.push(...timeDeltas);
    cdpProfile.lines?.push(...lines);
    cdpProfile.columns?.push(...columns);
    if (traceIds) {
      cdpProfile.traceIds ??= {};
      for (const key in traceIds) {
        cdpProfile.traceIds[key] = traceIds[key];
      }
    }
    if (cdpProfile.samples && cdpProfile.timeDeltas && cdpProfile.samples.length !== cdpProfile.timeDeltas.length) {
      console.error("Failed to parse CPU profile.");
      return;
    }
    if (!cdpProfile.endTime && cdpProfile.timeDeltas) {
      const timeDeltas2 = cdpProfile.timeDeltas;
      cdpProfile.endTime = timeDeltas2.reduce((x, y) => x + y, cdpProfile.startTime);
    }
    assignProfileSourceIfKnown(profileData, event.args?.data?.source);
    return;
  }
}
async function finalize7(parseOptions = {}) {
  parseCPUProfileData(parseOptions);
}
function assignProfileSourceIfKnown(profileData, source) {
  if (TraceEvents_exports.VALID_PROFILE_SOURCES.includes(source)) {
    profileData.source = source;
  }
}
function data7() {
  return {
    profilesInProcess,
    entryToNode
  };
}
function getOrCreatePreProcessedData(processId, profileId) {
  const profileById = MapUtilities_exports.getWithDefault(preprocessedData, processId, () => /* @__PURE__ */ new Map());
  return MapUtilities_exports.getWithDefault(profileById, profileId, () => ({
    rawProfile: {
      startTime: 0,
      endTime: 0,
      nodes: [],
      samples: [],
      timeDeltas: [],
      lines: [],
      columns: []
    },
    profileId
  }));
}
function getProfileCallFunctionName(data31, entry) {
  const profile = data31.profilesInProcess.get(entry.pid)?.get(entry.tid);
  const node = profile?.parsedProfile.nodeById(entry.nodeId);
  if (node?.functionName) {
    return node.functionName;
  }
  return entry.callFrame.functionName;
}
var profilesInProcess, entryToNode, preprocessedData, PROFILE_SOURCES_BY_PRIORITY;
var init_SamplesHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/SamplesHandler.js"() {
    init_process_global();
    init_platform();
    init_cpu_profile();
    init_helpers2();
    init_types2();
    profilesInProcess = /* @__PURE__ */ new Map();
    entryToNode = /* @__PURE__ */ new Map();
    preprocessedData = /* @__PURE__ */ new Map();
    PROFILE_SOURCES_BY_PRIORITY = {
      cpuProfile: ["Inspector"],
      performanceTrace: ["Internal", "Inspector"]
    };
    __name(parseCPUProfileData, "parseCPUProfileData");
    __name(reset7, "reset");
    __name(handleEvent7, "handleEvent");
    __name(finalize7, "finalize");
    __name(assignProfileSourceIfKnown, "assignProfileSourceIfKnown");
    __name(data7, "data");
    __name(getOrCreatePreProcessedData, "getOrCreatePreProcessedData");
    __name(getProfileCallFunctionName, "getProfileCallFunctionName");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/RendererHandler.js
var RendererHandler_exports = {};
__export(RendererHandler_exports, {
  assignIsMainFrame: () => assignIsMainFrame,
  assignMeta: () => assignMeta,
  assignOrigin: () => assignOrigin,
  assignThreadName: () => assignThreadName,
  buildHierarchy: () => buildHierarchy,
  data: () => data8,
  deps: () => deps3,
  finalize: () => finalize8,
  handleEvent: () => handleEvent8,
  handleUserConfig: () => handleUserConfig2,
  makeCompleteEvent: () => makeCompleteEvent,
  reset: () => reset8,
  sanitizeProcesses: () => sanitizeProcesses,
  sanitizeThreads: () => sanitizeThreads
});
function handleUserConfig2(userConfig) {
  config2 = userConfig;
}
function reset8() {
  processes = /* @__PURE__ */ new Map();
  entryToNode2 = /* @__PURE__ */ new Map();
  entityMappings2 = {
    eventsByEntity: /* @__PURE__ */ new Map(),
    entityByEvent: /* @__PURE__ */ new Map(),
    createdEntityCache: /* @__PURE__ */ new Map(),
    entityByUrlCache: /* @__PURE__ */ new Map()
  };
  completeEventStack = [];
  compositorTileWorkers = [];
}
function handleEvent8(event) {
  if (TraceEvents_exports.isThreadName(event) && event.args.name?.startsWith("CompositorTileWorker")) {
    compositorTileWorkers.push({
      pid: event.pid,
      tid: event.tid
    });
  }
  if (TraceEvents_exports.isBegin(event) || TraceEvents_exports.isEnd(event)) {
    const process5 = getOrCreateRendererProcess(processes, event.pid);
    const thread = getOrCreateRendererThread(process5, event.tid);
    const completeEvent = makeCompleteEvent(event);
    if (!completeEvent) {
      return;
    }
    thread.entries.push(completeEvent);
    return;
  }
  if (TraceEvents_exports.isInstant(event) || TraceEvents_exports.isComplete(event)) {
    const process5 = getOrCreateRendererProcess(processes, event.pid);
    const thread = getOrCreateRendererThread(process5, event.tid);
    thread.entries.push(event);
  }
  if (TraceEvents_exports.isLayout(event)) {
    const process5 = getOrCreateRendererProcess(processes, event.pid);
    const thread = getOrCreateRendererThread(process5, event.tid);
    thread.layoutEvents.push(event);
  }
  if (TraceEvents_exports.isRecalcStyle(event)) {
    const process5 = getOrCreateRendererProcess(processes, event.pid);
    const thread = getOrCreateRendererThread(process5, event.tid);
    thread.recalcStyleEvents.push(event);
  }
}
async function finalize8() {
  const { mainFrameId: mainFrameId2, rendererProcessesByFrame, threadsInProcess: threadsInProcess2 } = data5();
  entityMappings2 = data6().entityMappings;
  assignMeta(processes, mainFrameId2, rendererProcessesByFrame, threadsInProcess2);
  sanitizeProcesses(processes);
  buildHierarchy(processes);
  sanitizeThreads(processes);
}
function data8() {
  return {
    processes,
    compositorTileWorkers: gatherCompositorThreads(),
    entryToNode: entryToNode2,
    entityMappings: {
      entityByEvent: entityMappings2.entityByEvent,
      eventsByEntity: entityMappings2.eventsByEntity,
      createdEntityCache: entityMappings2.createdEntityCache,
      entityByUrlCache: entityMappings2.entityByUrlCache
    }
  };
}
function gatherCompositorThreads() {
  const threadsByProcess = /* @__PURE__ */ new Map();
  for (const worker of compositorTileWorkers) {
    const byProcess = threadsByProcess.get(worker.pid) || [];
    byProcess.push(worker.tid);
    threadsByProcess.set(worker.pid, byProcess);
  }
  return threadsByProcess;
}
function assignMeta(processes2, mainFrameId2, rendererProcessesByFrame, threadsInProcess2) {
  assignOrigin(processes2, rendererProcessesByFrame);
  assignIsMainFrame(processes2, mainFrameId2, rendererProcessesByFrame);
  assignThreadName(processes2, threadsInProcess2);
}
function assignOrigin(processes2, rendererProcessesByFrame) {
  for (const renderProcessesByPid of rendererProcessesByFrame.values()) {
    for (const [pid, processWindows] of renderProcessesByPid) {
      for (const processInfo of processWindows.flat()) {
        const process5 = getOrCreateRendererProcess(processes2, pid);
        if (process5.url === null || process5.url === "about:blank") {
          try {
            new URL(processInfo.frame.url);
            process5.url = processInfo.frame.url;
          } catch {
            process5.url = null;
          }
        }
      }
    }
  }
}
function assignIsMainFrame(processes2, mainFrameId2, rendererProcessesByFrame) {
  for (const [frameId, renderProcessesByPid] of rendererProcessesByFrame) {
    for (const [pid] of renderProcessesByPid) {
      const process5 = getOrCreateRendererProcess(processes2, pid);
      if (frameId === mainFrameId2) {
        process5.isOnMainFrame = true;
      }
    }
  }
}
function assignThreadName(processes2, threadsInProcess2) {
  for (const [pid, process5] of processes2) {
    for (const [tid, threadInfo] of threadsInProcess2.get(pid) ?? []) {
      const thread = getOrCreateRendererThread(process5, tid);
      thread.name = threadInfo?.args.name ?? `${tid}`;
    }
  }
}
function sanitizeProcesses(processes2) {
  const auctionWorklets = data4().worklets;
  const metaData = data5();
  if (metaData.traceIsGeneric) {
    return;
  }
  for (const [pid, process5] of processes2) {
    if (process5.url === null) {
      const maybeWorklet = auctionWorklets.get(pid);
      if (maybeWorklet) {
        process5.url = maybeWorklet.host;
      } else {
        processes2.delete(pid);
      }
      continue;
    }
  }
}
function sanitizeThreads(processes2) {
  for (const [, process5] of processes2) {
    for (const [tid, thread] of process5.threads) {
      if (!thread.tree?.roots.size) {
        process5.threads.delete(tid);
      }
    }
  }
}
function buildHierarchy(processes2, options) {
  const samplesData = data7();
  for (const [pid, process5] of processes2) {
    for (const [tid, thread] of process5.threads) {
      if (!thread.entries.length) {
        thread.tree = TreeHelpers_exports.makeEmptyTraceEntryTree();
        continue;
      }
      Trace_exports.sortTraceEventsInPlace(thread.entries);
      const samplesDataForThread = samplesData.profilesInProcess.get(pid)?.get(tid);
      if (samplesDataForThread) {
        const cpuProfile = samplesDataForThread.parsedProfile;
        const samplesIntegrator = cpuProfile && new SamplesIntegrator_exports.SamplesIntegrator(cpuProfile, samplesDataForThread.profileId, pid, tid, config2);
        const profileCalls = samplesIntegrator?.buildProfileCalls(thread.entries);
        if (samplesIntegrator && profileCalls) {
          thread.entries = Trace_exports.mergeEventsInOrder(thread.entries, profileCalls);
          thread.profileCalls = profileCalls;
          const jsSamples = samplesIntegrator.jsSampleEvents;
          if (jsSamples.length) {
            thread.entries = Trace_exports.mergeEventsInOrder(thread.entries, jsSamples);
          }
        }
      }
      const treeData = TreeHelpers_exports.treify(thread.entries, options);
      thread.tree = treeData.tree;
      for (const [entry, node] of treeData.entryToNode) {
        entryToNode2.set(entry, node);
        addEventToEntityMapping(entry, entityMappings2);
      }
    }
  }
}
function makeCompleteEvent(event) {
  if (TraceEvents_exports.isEnd(event)) {
    const beginEvent = completeEventStack.pop();
    if (!beginEvent) {
      return null;
    }
    if (beginEvent.name !== event.name || beginEvent.cat !== event.cat) {
      console.error("Begin/End events mismatch at " + beginEvent.ts + " (" + beginEvent.name + ") vs. " + event.ts + " (" + event.name + ")");
      return null;
    }
    beginEvent.dur = Timing_exports.Micro(event.ts - beginEvent.ts);
    return null;
  }
  const syntheticComplete = {
    ...event,
    ph: TraceEvents_exports.Phase.COMPLETE,
    dur: Timing_exports.Micro(0)
  };
  completeEventStack.push(syntheticComplete);
  return syntheticComplete;
}
function deps3() {
  return ["Meta", "Samples", "AuctionWorklets", "NetworkRequests"];
}
var processes, entityMappings2, compositorTileWorkers, entryToNode2, completeEventStack, config2, makeRendererProcess, makeRendererThread, getOrCreateRendererProcess, getOrCreateRendererThread;
var init_RendererHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/RendererHandler.js"() {
    init_process_global();
    init_platform();
    init_helpers2();
    init_types2();
    init_AuctionWorkletsHandler();
    init_helpers();
    init_MetaHandler();
    init_NetworkRequestsHandler();
    init_SamplesHandler();
    processes = /* @__PURE__ */ new Map();
    entityMappings2 = {
      eventsByEntity: /* @__PURE__ */ new Map(),
      entityByEvent: /* @__PURE__ */ new Map(),
      createdEntityCache: /* @__PURE__ */ new Map(),
      entityByUrlCache: /* @__PURE__ */ new Map()
    };
    compositorTileWorkers = Array();
    entryToNode2 = /* @__PURE__ */ new Map();
    completeEventStack = [];
    config2 = Configuration_exports.defaults();
    makeRendererProcess = /* @__PURE__ */ __name(() => ({
      url: null,
      isOnMainFrame: false,
      threads: /* @__PURE__ */ new Map()
    }), "makeRendererProcess");
    makeRendererThread = /* @__PURE__ */ __name(() => ({
      name: null,
      entries: [],
      profileCalls: [],
      layoutEvents: [],
      recalcStyleEvents: []
    }), "makeRendererThread");
    getOrCreateRendererProcess = /* @__PURE__ */ __name((processes2, pid) => {
      return MapUtilities_exports.getWithDefault(processes2, pid, makeRendererProcess);
    }, "getOrCreateRendererProcess");
    getOrCreateRendererThread = /* @__PURE__ */ __name((process5, tid) => {
      return MapUtilities_exports.getWithDefault(process5.threads, tid, makeRendererThread);
    }, "getOrCreateRendererThread");
    __name(handleUserConfig2, "handleUserConfig");
    __name(reset8, "reset");
    __name(handleEvent8, "handleEvent");
    __name(finalize8, "finalize");
    __name(data8, "data");
    __name(gatherCompositorThreads, "gatherCompositorThreads");
    __name(assignMeta, "assignMeta");
    __name(assignOrigin, "assignOrigin");
    __name(assignIsMainFrame, "assignIsMainFrame");
    __name(assignThreadName, "assignThreadName");
    __name(sanitizeProcesses, "sanitizeProcesses");
    __name(sanitizeThreads, "sanitizeThreads");
    __name(buildHierarchy, "buildHierarchy");
    __name(makeCompleteEvent, "makeCompleteEvent");
    __name(deps3, "deps");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/AsyncJSCallsHandler.js
var AsyncJSCallsHandler_exports = {};
__export(AsyncJSCallsHandler_exports, {
  data: () => data9,
  deps: () => deps4,
  finalize: () => finalize9,
  handleEvent: () => handleEvent9,
  reset: () => reset9
});
function reset9() {
  schedulerToRunEntryPoints = /* @__PURE__ */ new Map();
  asyncCallToScheduler = /* @__PURE__ */ new Map();
  taskScheduleForTaskRunEvent = /* @__PURE__ */ new Map();
  runEntryPointToScheduler = /* @__PURE__ */ new Map();
}
function handleEvent9(_) {
}
async function finalize9() {
  const { flows: flows2 } = data3();
  const { entryToNode: entryToNode4 } = data8();
  for (const flow of flows2) {
    let maybeAsyncTaskScheduled = flow.at(0);
    if (!maybeAsyncTaskScheduled) {
      continue;
    }
    if (TraceEvents_exports.isDebuggerAsyncTaskRun(maybeAsyncTaskScheduled)) {
      maybeAsyncTaskScheduled = taskScheduleForTaskRunEvent.get(maybeAsyncTaskScheduled);
    }
    if (!maybeAsyncTaskScheduled || !TraceEvents_exports.isDebuggerAsyncTaskScheduled(maybeAsyncTaskScheduled)) {
      continue;
    }
    const taskName = maybeAsyncTaskScheduled.args.taskName;
    const asyncTaskRun = flow.at(1);
    if (!asyncTaskRun || !TraceEvents_exports.isDebuggerAsyncTaskRun(asyncTaskRun)) {
      continue;
    }
    taskScheduleForTaskRunEvent.set(asyncTaskRun, maybeAsyncTaskScheduled);
    const asyncCaller = findNearestJSAncestor(maybeAsyncTaskScheduled, entryToNode4);
    const asyncEntryPoint = findFirstJsInvocationForAsyncTaskRun(asyncTaskRun, entryToNode4);
    runEntryPointToScheduler.set(asyncEntryPoint || asyncTaskRun, { taskName, scheduler: asyncCaller || maybeAsyncTaskScheduled });
    if (!asyncCaller || !asyncEntryPoint) {
      continue;
    }
    const entryPoints = MapUtilities_exports.getWithDefault(schedulerToRunEntryPoints, asyncCaller, () => []);
    entryPoints.push(asyncEntryPoint);
    const scheduledProfileCalls = findFirstJSCallsForAsyncTaskRun(asyncTaskRun, entryToNode4);
    for (const call of scheduledProfileCalls) {
      asyncCallToScheduler.set(call, { taskName, scheduler: asyncCaller });
    }
  }
}
function findNearestJSAncestor(asyncTaskScheduled, entryToNode4) {
  let node = entryToNode4.get(asyncTaskScheduled)?.parent;
  while (node) {
    if (TraceEvents_exports.isProfileCall(node.entry) || acceptJSInvocationsPredicate(node.entry)) {
      return node.entry;
    }
    node = node.parent;
  }
  return null;
}
function acceptJSInvocationsPredicate(event) {
  const eventIsConsoleRunTask = TraceEvents_exports.isConsoleRunTask(event);
  const eventIsV8EntryPoint = event.name.startsWith("v8") || event.name.startsWith("V8");
  return TraceEvents_exports.isJSInvocationEvent(event) && (eventIsConsoleRunTask || !eventIsV8EntryPoint);
}
function findFirstJsInvocationForAsyncTaskRun(asyncTaskRun, entryToNode4) {
  return findFirstDescendantsOfType(asyncTaskRun, entryToNode4, acceptJSInvocationsPredicate, TraceEvents_exports.isDebuggerAsyncTaskRun).at(0);
}
function findFirstJSCallsForAsyncTaskRun(asyncTaskRun, entryToNode4) {
  return findFirstDescendantsOfType(asyncTaskRun, entryToNode4, TraceEvents_exports.isProfileCall, TraceEvents_exports.isDebuggerAsyncTaskRun);
}
function findFirstDescendantsOfType(root2, entryToNode4, predicateAccept, predicateIgnore) {
  const node = entryToNode4.get(root2);
  if (!node) {
    return [];
  }
  const childrenGroups = [[...node.children]];
  const firstDescendants = [];
  for (let i = 0; i < childrenGroups.length; i++) {
    const siblings = childrenGroups[i];
    for (let j = 0; j < siblings.length; j++) {
      const node2 = siblings[j];
      if (predicateAccept(node2.entry)) {
        firstDescendants.push(node2.entry);
      } else if (!predicateIgnore(node2.entry)) {
        childrenGroups.push([...node2.children]);
      }
    }
  }
  return firstDescendants;
}
function data9() {
  return {
    schedulerToRunEntryPoints,
    asyncCallToScheduler,
    runEntryPointToScheduler
  };
}
function deps4() {
  return ["Renderer", "Flows"];
}
var schedulerToRunEntryPoints, taskScheduleForTaskRunEvent, asyncCallToScheduler, runEntryPointToScheduler;
var init_AsyncJSCallsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/AsyncJSCallsHandler.js"() {
    init_process_global();
    init_platform();
    init_types2();
    init_FlowsHandler();
    init_RendererHandler();
    schedulerToRunEntryPoints = /* @__PURE__ */ new Map();
    taskScheduleForTaskRunEvent = /* @__PURE__ */ new Map();
    asyncCallToScheduler = /* @__PURE__ */ new Map();
    runEntryPointToScheduler = /* @__PURE__ */ new Map();
    __name(reset9, "reset");
    __name(handleEvent9, "handleEvent");
    __name(finalize9, "finalize");
    __name(findNearestJSAncestor, "findNearestJSAncestor");
    __name(acceptJSInvocationsPredicate, "acceptJSInvocationsPredicate");
    __name(findFirstJsInvocationForAsyncTaskRun, "findFirstJsInvocationForAsyncTaskRun");
    __name(findFirstJSCallsForAsyncTaskRun, "findFirstJSCallsForAsyncTaskRun");
    __name(findFirstDescendantsOfType, "findFirstDescendantsOfType");
    __name(data9, "data");
    __name(deps4, "deps");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/DOMStatsHandler.js
var DOMStatsHandler_exports = {};
__export(DOMStatsHandler_exports, {
  data: () => data10,
  finalize: () => finalize10,
  handleEvent: () => handleEvent10,
  reset: () => reset10
});
function reset10() {
  domStatsByFrameId = /* @__PURE__ */ new Map();
}
function handleEvent10(event) {
  if (!TraceEvents_exports.isDOMStats(event)) {
    return;
  }
  const domStatEvents = MapUtilities_exports.getWithDefault(domStatsByFrameId, event.args.data.frame, () => []);
  domStatEvents.push(event);
}
async function finalize10() {
}
function data10() {
  return { domStatsByFrameId };
}
var domStatsByFrameId;
var init_DOMStatsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/DOMStatsHandler.js"() {
    init_process_global();
    init_platform();
    init_types2();
    domStatsByFrameId = /* @__PURE__ */ new Map();
    __name(reset10, "reset");
    __name(handleEvent10, "handleEvent");
    __name(finalize10, "finalize");
    __name(data10, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/UserTimingsHandler.js
var UserTimingsHandler_exports = {};
__export(UserTimingsHandler_exports, {
  data: () => data11,
  finalize: () => finalize11,
  handleEvent: () => handleEvent11,
  reset: () => reset11,
  userTimingComparator: () => userTimingComparator
});
function reset11() {
  syntheticEvents = [];
  performanceMeasureEvents = [];
  performanceMarkEvents = [];
  consoleTimings = [];
  timestampEvents = [];
  measureTraceByTraceId = /* @__PURE__ */ new Map();
}
function getEventTimings(event) {
  if ("dur" in event) {
    return { start: event.ts, end: Timing_exports.Micro(event.ts + (event.dur ?? 0)) };
  }
  if (TraceEvents_exports.isConsoleTimeStamp(event)) {
    const { start, end } = event.args.data || {};
    if (typeof start === "number" && typeof end === "number") {
      return { start: Timing_exports.Micro(start), end: Timing_exports.Micro(end) };
    }
  }
  return { start: event.ts, end: event.ts };
}
function getEventTrack(event) {
  if (event.cat === "blink.user_timing") {
    const detailString = event.args.data.beginEvent.args?.detail;
    if (detailString) {
      const details = Trace_exports.parseDevtoolsDetails(detailString, "devtools");
      if (details && "track" in details) {
        return details.track;
      }
    }
  } else if (TraceEvents_exports.isConsoleTimeStamp(event)) {
    const track = event.args.data?.track;
    return typeof track === "string" ? track : void 0;
  }
  return void 0;
}
function userTimingComparator(a, b, originalArray) {
  const { start: aStart, end: aEnd } = getEventTimings(a);
  const { start: bStart, end: bEnd } = getEventTimings(b);
  const timeDifference = Trace_exports.compareBeginAndEnd(aStart, bStart, aEnd, bEnd);
  if (timeDifference) {
    return timeDifference;
  }
  const aTrack = getEventTrack(a);
  const bTrack = getEventTrack(b);
  if (aTrack !== bTrack) {
    return 0;
  }
  const aIndex = originalArray.indexOf(a);
  const bIndex = originalArray.indexOf(b);
  return bIndex - aIndex;
}
function handleEvent11(event) {
  if (ignoredNames.includes(event.name)) {
    return;
  }
  if (TraceEvents_exports.isUserTimingMeasure(event)) {
    measureTraceByTraceId.set(event.args.traceId, event);
  }
  if (TraceEvents_exports.isPerformanceMeasure(event)) {
    performanceMeasureEvents.push(event);
    return;
  }
  if (TraceEvents_exports.isPerformanceMark(event)) {
    performanceMarkEvents.push(event);
  }
  if (TraceEvents_exports.isConsoleTime(event)) {
    consoleTimings.push(event);
  }
  if (TraceEvents_exports.isConsoleTimeStamp(event)) {
    timestampEvents.push(event);
  }
}
async function finalize11() {
  const asyncEvents = [...performanceMeasureEvents, ...consoleTimings];
  syntheticEvents = Trace_exports.createMatchedSortedSyntheticEvents(asyncEvents);
  syntheticEvents = syntheticEvents.sort((a, b) => userTimingComparator(a, b, [...syntheticEvents]));
  timestampEvents = timestampEvents.sort((a, b) => userTimingComparator(a, b, [...timestampEvents]));
}
function data11() {
  return {
    consoleTimings: syntheticEvents.filter((e) => e.cat === "blink.console"),
    performanceMeasures: syntheticEvents.filter((e) => e.cat === "blink.user_timing"),
    performanceMarks: performanceMarkEvents,
    timestampEvents,
    measureTraceByTraceId
  };
}
var syntheticEvents, measureTraceByTraceId, performanceMeasureEvents, performanceMarkEvents, consoleTimings, timestampEvents, resourceTimingNames, navTimingNames, ignoredNames;
var init_UserTimingsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/UserTimingsHandler.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    syntheticEvents = [];
    measureTraceByTraceId = /* @__PURE__ */ new Map();
    performanceMeasureEvents = [];
    performanceMarkEvents = [];
    consoleTimings = [];
    timestampEvents = [];
    __name(reset11, "reset");
    resourceTimingNames = [
      "workerStart",
      "redirectStart",
      "redirectEnd",
      "fetchStart",
      "domainLookupStart",
      "domainLookupEnd",
      "connectStart",
      "connectEnd",
      "secureConnectionStart",
      "requestStart",
      "responseStart",
      "responseEnd"
    ];
    navTimingNames = [
      "navigationStart",
      "unloadEventStart",
      "unloadEventEnd",
      "redirectStart",
      "redirectEnd",
      "fetchStart",
      "commitNavigationEnd",
      "domainLookupStart",
      "domainLookupEnd",
      "connectStart",
      "connectEnd",
      "secureConnectionStart",
      "requestStart",
      "responseStart",
      "responseEnd",
      "domLoading",
      "domInteractive",
      "domContentLoadedEventStart",
      "domContentLoadedEventEnd",
      "domComplete",
      "loadEventStart",
      "loadEventEnd"
    ];
    ignoredNames = [...resourceTimingNames, ...navTimingNames];
    __name(getEventTimings, "getEventTimings");
    __name(getEventTrack, "getEventTrack");
    __name(userTimingComparator, "userTimingComparator");
    __name(handleEvent11, "handleEvent");
    __name(finalize11, "finalize");
    __name(data11, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/ExtensionTraceDataHandler.js
var ExtensionTraceDataHandler_exports = {};
__export(ExtensionTraceDataHandler_exports, {
  data: () => data12,
  deps: () => deps5,
  extensionDataInConsoleTimeStamp: () => extensionDataInConsoleTimeStamp,
  extensionDataInPerformanceTiming: () => extensionDataInPerformanceTiming,
  extractConsoleAPIExtensionEntries: () => extractConsoleAPIExtensionEntries,
  extractPerformanceAPIExtensionEntries: () => extractPerformanceAPIExtensionEntries,
  finalize: () => finalize12,
  handleEvent: () => handleEvent12,
  reset: () => reset12
});
function handleEvent12(_event) {
}
function reset12() {
  extensionTrackEntries = [];
  syntheticConsoleEntriesForTimingsTrack = [];
  extensionTrackData = [];
  extensionMarkers = [];
  entryToNode3 = /* @__PURE__ */ new Map();
  timeStampByName = /* @__PURE__ */ new Map();
}
async function finalize12() {
  createExtensionFlameChartEntries();
}
function createExtensionFlameChartEntries() {
  const pairedMeasures = data11().performanceMeasures;
  const marks = data11().performanceMarks;
  const mergedRawExtensionEvents = Trace_exports.mergeEventsInOrder(pairedMeasures, marks);
  extractPerformanceAPIExtensionEntries(mergedRawExtensionEvents);
  extractConsoleAPIExtensionEntries();
  Trace_exports.sortTraceEventsInPlace(extensionTrackEntries);
  Extensions_exports2.buildTrackDataFromExtensionEntries(extensionTrackEntries, extensionTrackData, entryToNode3);
}
function extractConsoleAPIExtensionEntries() {
  const consoleTimeStamps = data11().timestampEvents;
  for (const currentTimeStamp of consoleTimeStamps) {
    if (!currentTimeStamp.args.data) {
      continue;
    }
    const timeStampName = String(currentTimeStamp.args.data.name ?? currentTimeStamp.args.data.message);
    timeStampByName.set(timeStampName, currentTimeStamp);
    const { devtoolsObj: extensionData, userDetail } = extensionDataInConsoleTimeStamp(currentTimeStamp);
    const start = currentTimeStamp.args.data.start;
    const end = currentTimeStamp.args.data.end;
    if (!extensionData && !start && !end) {
      continue;
    }
    const startTimeStamp = typeof start === "number" ? Timing_exports.Micro(start) : timeStampByName.get(String(start))?.ts;
    const endTimeStamp = typeof end === "number" ? Timing_exports.Micro(end) : timeStampByName.get(String(end))?.ts;
    if (endTimeStamp !== void 0 && startTimeStamp === void 0) {
      continue;
    }
    const entryStartTime = startTimeStamp ?? currentTimeStamp.ts;
    const entryEndTime = endTimeStamp ?? currentTimeStamp.ts;
    if (extensionData) {
      const unregisteredExtensionEntry = {
        ...currentTimeStamp,
        name: timeStampName,
        cat: "devtools.extension",
        devtoolsObj: extensionData,
        userDetail,
        rawSourceEvent: currentTimeStamp,
        dur: Timing_exports.Micro(entryEndTime - entryStartTime),
        ts: entryStartTime,
        ph: TraceEvents_exports.Phase.COMPLETE
      };
      const extensionEntry = SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent(unregisteredExtensionEntry);
      extensionTrackEntries.push(extensionEntry);
      continue;
    }
    const unregisteredSyntheticTimeStamp = {
      ...currentTimeStamp,
      name: timeStampName,
      cat: "disabled-by-default-v8.inspector",
      ph: TraceEvents_exports.Phase.COMPLETE,
      ts: entryStartTime,
      dur: Timing_exports.Micro(entryEndTime - entryStartTime),
      rawSourceEvent: currentTimeStamp
    };
    const syntheticTimeStamp = SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent(unregisteredSyntheticTimeStamp);
    syntheticConsoleEntriesForTimingsTrack.push(syntheticTimeStamp);
  }
}
function extractPerformanceAPIExtensionEntries(timings) {
  for (const timing of timings) {
    const { devtoolsObj, userDetail } = extensionDataInPerformanceTiming(timing);
    if (!devtoolsObj) {
      continue;
    }
    const extensionSyntheticEntry = {
      name: timing.name,
      ph: Extensions_exports.isExtensionPayloadMarker(devtoolsObj) ? TraceEvents_exports.Phase.INSTANT : TraceEvents_exports.Phase.COMPLETE,
      pid: timing.pid,
      tid: timing.tid,
      ts: timing.ts,
      dur: timing.dur,
      cat: "devtools.extension",
      devtoolsObj,
      userDetail,
      rawSourceEvent: TraceEvents_exports.isSyntheticUserTiming(timing) ? timing.rawSourceEvent : timing
    };
    if (Extensions_exports.isExtensionPayloadMarker(devtoolsObj)) {
      const extensionMarker = SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent(extensionSyntheticEntry);
      extensionMarkers.push(extensionMarker);
      continue;
    }
    if (Extensions_exports.isExtensionEntryObj(extensionSyntheticEntry.devtoolsObj)) {
      const extensionTrackEntry = SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent(extensionSyntheticEntry);
      extensionTrackEntries.push(extensionTrackEntry);
      continue;
    }
  }
}
function extensionDataInPerformanceTiming(timing) {
  const timingDetail = TraceEvents_exports.isPerformanceMark(timing) ? timing.args.data?.detail : timing.args.data.beginEvent.args.detail;
  if (!timingDetail) {
    return { devtoolsObj: null, userDetail: null };
  }
  const devtoolsObj = Trace_exports.parseDevtoolsDetails(timingDetail, "devtools");
  let userDetail = null;
  try {
    userDetail = JSON.parse(timingDetail);
    delete userDetail.devtools;
  } catch {
  }
  return { devtoolsObj, userDetail };
}
function extensionDataInConsoleTimeStamp(timeStamp) {
  if (!timeStamp.args.data || !timeStamp.args.data.track) {
    return { devtoolsObj: null, userDetail: null };
  }
  let userDetail = null;
  try {
    userDetail = JSON.parse(timeStamp.args.data?.devtools || '""');
  } catch {
  }
  const devtoolsObj = {
    // the color is defaulted to primary if it's value isn't one from
    // the defined palette (see ExtensionUI::extensionEntryColor) so
    // we don't need to check the value is valid here.
    color: String(timeStamp.args.data.color),
    track: String(timeStamp.args.data.track),
    dataType: "track-entry",
    trackGroup: timeStamp.args.data.trackGroup !== void 0 ? String(timeStamp.args.data.trackGroup) : void 0
  };
  return { devtoolsObj, userDetail };
}
function data12() {
  return {
    entryToNode: entryToNode3,
    extensionTrackData,
    extensionMarkers,
    syntheticConsoleEntriesForTimingsTrack
  };
}
function deps5() {
  return ["UserTimings"];
}
var extensionTrackEntries, extensionTrackData, extensionMarkers, entryToNode3, timeStampByName, syntheticConsoleEntriesForTimingsTrack;
var init_ExtensionTraceDataHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/ExtensionTraceDataHandler.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    init_UserTimingsHandler();
    extensionTrackEntries = [];
    extensionTrackData = [];
    extensionMarkers = [];
    entryToNode3 = /* @__PURE__ */ new Map();
    timeStampByName = /* @__PURE__ */ new Map();
    syntheticConsoleEntriesForTimingsTrack = [];
    __name(handleEvent12, "handleEvent");
    __name(reset12, "reset");
    __name(finalize12, "finalize");
    __name(createExtensionFlameChartEntries, "createExtensionFlameChartEntries");
    __name(extractConsoleAPIExtensionEntries, "extractConsoleAPIExtensionEntries");
    __name(extractPerformanceAPIExtensionEntries, "extractPerformanceAPIExtensionEntries");
    __name(extensionDataInPerformanceTiming, "extensionDataInPerformanceTiming");
    __name(extensionDataInConsoleTimeStamp, "extensionDataInConsoleTimeStamp");
    __name(data12, "data");
    __name(deps5, "deps");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/LayerTreeHandler.js
var LayerTreeHandler_exports = {};
__export(LayerTreeHandler_exports, {
  data: () => data13,
  deps: () => deps6,
  finalize: () => finalize13,
  handleEvent: () => handleEvent13,
  reset: () => reset13
});
function reset13() {
  paintEvents = [];
  snapshotEvents = [];
  paintToSnapshotMap = /* @__PURE__ */ new Map();
  lastPaintForLayerId = {};
  currentMainFrameLayerTreeId = null;
  updateLayerEvents = [];
  relevantEvents = [];
}
function handleEvent13(event) {
  if (TraceEvents_exports.isPaint(event) || TraceEvents_exports.isDisplayListItemListSnapshot(event) || TraceEvents_exports.isUpdateLayer(event) || TraceEvents_exports.isSetLayerId(event)) {
    relevantEvents.push(event);
  }
}
async function finalize13() {
  const metaData = data5();
  Trace_exports.sortTraceEventsInPlace(relevantEvents);
  for (const event of relevantEvents) {
    if (TraceEvents_exports.isSetLayerId(event)) {
      if (metaData.mainFrameId !== event.args.data.frame) {
        continue;
      }
      currentMainFrameLayerTreeId = event.args.data.layerTreeId;
    } else if (TraceEvents_exports.isUpdateLayer(event)) {
      updateLayerEvents.push(event);
    } else if (TraceEvents_exports.isPaint(event)) {
      if (!event.args.data.layerId) {
        continue;
      }
      paintEvents.push(event);
      lastPaintForLayerId[event.args.data.layerId] = event;
      continue;
    } else if (TraceEvents_exports.isDisplayListItemListSnapshot(event)) {
      let lastUpdateLayerEventForThread = null;
      for (let i = updateLayerEvents.length - 1; i > -1; i--) {
        const updateEvent = updateLayerEvents[i];
        if (updateEvent.pid === event.pid && updateEvent.tid === event.tid) {
          lastUpdateLayerEventForThread = updateEvent;
          break;
        }
      }
      if (!lastUpdateLayerEventForThread) {
        continue;
      }
      if (lastUpdateLayerEventForThread.args.layerTreeId !== currentMainFrameLayerTreeId) {
        continue;
      }
      const paintEvent = lastPaintForLayerId[lastUpdateLayerEventForThread.args.layerId];
      if (!paintEvent) {
        continue;
      }
      snapshotEvents.push(event);
      paintToSnapshotMap.set(paintEvent, event);
    }
  }
}
function data13() {
  return {
    paints: paintEvents,
    snapshots: snapshotEvents,
    paintsToSnapshots: paintToSnapshotMap
  };
}
function deps6() {
  return ["Meta"];
}
var paintEvents, snapshotEvents, paintToSnapshotMap, lastPaintForLayerId, currentMainFrameLayerTreeId, updateLayerEvents, relevantEvents;
var init_LayerTreeHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/LayerTreeHandler.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    init_MetaHandler();
    paintEvents = [];
    snapshotEvents = [];
    paintToSnapshotMap = /* @__PURE__ */ new Map();
    lastPaintForLayerId = {};
    currentMainFrameLayerTreeId = null;
    updateLayerEvents = [];
    relevantEvents = [];
    __name(reset13, "reset");
    __name(handleEvent13, "handleEvent");
    __name(finalize13, "finalize");
    __name(data13, "data");
    __name(deps6, "deps");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/Threads.js
var Threads_exports = {};
__export(Threads_exports, {
  ThreadType: () => ThreadType,
  threadsInRenderer: () => threadsInRenderer,
  threadsInTrace: () => threadsInTrace
});
function getThreadTypeForRendererThread(pid, thread, auctionWorkletsData) {
  let threadType = ThreadType.OTHER;
  if (thread.name === "CrRendererMain") {
    threadType = ThreadType.MAIN_THREAD;
  } else if (thread.name === "DedicatedWorker thread") {
    threadType = ThreadType.WORKER;
  } else if (thread.name?.startsWith("CompositorTileWorker")) {
    threadType = ThreadType.RASTERIZER;
  } else if (auctionWorkletsData.worklets.has(pid)) {
    threadType = ThreadType.AUCTION_WORKLET;
  } else if (thread.name?.startsWith("ThreadPool")) {
    threadType = ThreadType.THREAD_POOL;
  }
  return threadType;
}
function threadsInRenderer(rendererData, auctionWorkletsData) {
  const foundThreads = [];
  if (rendererData.processes.size) {
    for (const [pid, process5] of rendererData.processes) {
      for (const [tid, thread] of process5.threads) {
        if (!thread.tree) {
          continue;
        }
        const threadType = getThreadTypeForRendererThread(pid, thread, auctionWorkletsData);
        foundThreads.push({
          name: thread.name,
          pid,
          tid,
          processIsOnMainFrame: process5.isOnMainFrame,
          entries: thread.entries,
          tree: thread.tree,
          type: threadType,
          entryToNode: rendererData.entryToNode
        });
      }
    }
  }
  return foundThreads;
}
function threadsInTrace(handlerData) {
  const cached = threadsInHandlerDataCache.get(handlerData);
  if (cached) {
    return cached;
  }
  const threadsFromRenderer = threadsInRenderer(handlerData.Renderer, handlerData.AuctionWorklets);
  if (threadsFromRenderer.length) {
    threadsInHandlerDataCache.set(handlerData, threadsFromRenderer);
    return threadsFromRenderer;
  }
  const foundThreads = [];
  if (handlerData.Samples.profilesInProcess.size) {
    for (const [pid, process5] of handlerData.Samples.profilesInProcess) {
      for (const [tid, thread] of process5) {
        if (!thread.profileTree) {
          continue;
        }
        foundThreads.push({
          pid,
          tid,
          // CPU Profile threads do not have a name.
          name: null,
          entries: thread.profileCalls,
          // There is no concept of a "Main Frame" in a CPU profile.
          processIsOnMainFrame: false,
          tree: thread.profileTree,
          type: ThreadType.CPU_PROFILE,
          entryToNode: handlerData.Samples.entryToNode
        });
      }
    }
  }
  threadsInHandlerDataCache.set(handlerData, foundThreads);
  return foundThreads;
}
var ThreadType, threadsInHandlerDataCache;
var init_Threads = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/Threads.js"() {
    init_process_global();
    (function(ThreadType2) {
      ThreadType2["MAIN_THREAD"] = "MAIN_THREAD";
      ThreadType2["WORKER"] = "WORKER";
      ThreadType2["RASTERIZER"] = "RASTERIZER";
      ThreadType2["AUCTION_WORKLET"] = "AUCTION_WORKLET";
      ThreadType2["OTHER"] = "OTHER";
      ThreadType2["CPU_PROFILE"] = "CPU_PROFILE";
      ThreadType2["THREAD_POOL"] = "THREAD_POOL";
    })(ThreadType || (ThreadType = {}));
    __name(getThreadTypeForRendererThread, "getThreadTypeForRendererThread");
    __name(threadsInRenderer, "threadsInRenderer");
    threadsInHandlerDataCache = /* @__PURE__ */ new WeakMap();
    __name(threadsInTrace, "threadsInTrace");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/FramesHandler.js
var FramesHandler_exports = {};
__export(FramesHandler_exports, {
  LayerPaintEvent: () => LayerPaintEvent,
  PendingFrame: () => PendingFrame,
  TimelineFrameBeginFrameQueue: () => TimelineFrameBeginFrameQueue,
  TimelineFrameModel: () => TimelineFrameModel,
  data: () => data14,
  deps: () => deps7,
  finalize: () => finalize14,
  framesWithinWindow: () => framesWithinWindow,
  handleEvent: () => handleEvent14,
  reset: () => reset14
});
function isFrameEvent(event) {
  return TraceEvents_exports.isSetLayerId(event) || TraceEvents_exports.isBeginFrame(event) || TraceEvents_exports.isDroppedFrame(event) || TraceEvents_exports.isRequestMainThreadFrame(event) || TraceEvents_exports.isBeginMainThreadFrame(event) || TraceEvents_exports.isNeedsBeginFrameChanged(event) || // Note that "Commit" is the replacement for "CompositeLayers" so in a trace
  // we wouldn't expect to see a combination of these. All "new" trace
  // recordings use "Commit", but we can easily support "CompositeLayers" too
  // to not break older traces being imported.
  TraceEvents_exports.isCommit(event) || TraceEvents_exports.isCompositeLayers(event) || TraceEvents_exports.isActivateLayerTree(event) || TraceEvents_exports.isDrawFrame(event);
}
function entryIsTopLevel(entry) {
  const devtoolsTimelineCategory = "disabled-by-default-devtools.timeline";
  return entry.name === TraceEvents_exports.Name.RUN_TASK && entry.cat.includes(devtoolsTimelineCategory);
}
function reset14() {
  model = null;
  relevantFrameEvents = [];
}
function handleEvent14(event) {
  if (isFrameEvent(event) || TraceEvents_exports.isLayerTreeHostImplSnapshot(event) || entryIsTopLevel(event) || MAIN_FRAME_MARKERS.has(event.name) || TraceEvents_exports.isPaint(event)) {
    relevantFrameEvents.push(event);
  }
}
async function finalize14() {
  Trace_exports.sortTraceEventsInPlace(relevantFrameEvents);
  const modelForTrace = new TimelineFrameModel(relevantFrameEvents, data8(), data4(), data5(), data13());
  model = modelForTrace;
}
function data14() {
  return {
    frames: model?.frames() ?? [],
    framesById: model?.framesById() ?? {}
  };
}
function deps7() {
  return ["Meta", "Renderer", "AuctionWorklets", "LayerTree"];
}
function framesWithinWindow(frames2, startTime, endTime) {
  const firstFrame = ArrayUtilities_exports.lowerBound(frames2, startTime || 0, (time, frame) => time - frame.endTime);
  const lastFrame = ArrayUtilities_exports.lowerBound(frames2, endTime || Infinity, (time, frame) => time - frame.startTime);
  return frames2.slice(firstFrame, lastFrame);
}
var model, relevantFrameEvents, MAIN_FRAME_MARKERS, TimelineFrameModel, TimelineFrame, LayerPaintEvent, PendingFrame, BeginFrameInfo, TimelineFrameBeginFrameQueue;
var init_FramesHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/FramesHandler.js"() {
    init_process_global();
    init_platform();
    init_helpers2();
    init_types2();
    init_AuctionWorkletsHandler();
    init_LayerTreeHandler();
    init_MetaHandler();
    init_RendererHandler();
    init_Threads();
    model = null;
    relevantFrameEvents = [];
    __name(isFrameEvent, "isFrameEvent");
    __name(entryIsTopLevel, "entryIsTopLevel");
    MAIN_FRAME_MARKERS = /* @__PURE__ */ new Set([
      TraceEvents_exports.Name.SCHEDULE_STYLE_RECALCULATION,
      TraceEvents_exports.Name.INVALIDATE_LAYOUT,
      TraceEvents_exports.Name.BEGIN_MAIN_THREAD_FRAME,
      TraceEvents_exports.Name.SCROLL_LAYER
    ]);
    __name(reset14, "reset");
    __name(handleEvent14, "handleEvent");
    __name(finalize14, "finalize");
    __name(data14, "data");
    __name(deps7, "deps");
    TimelineFrameModel = class {
      static {
        __name(this, "TimelineFrameModel");
      }
      #frames = [];
      #frameById = {};
      #beginFrameQueue = new TimelineFrameBeginFrameQueue();
      #lastFrame = null;
      #mainFrameCommitted = false;
      #mainFrameRequested = false;
      #lastLayerTree = null;
      #framePendingActivation = null;
      #framePendingCommit = null;
      #lastBeginFrame = null;
      #lastNeedsBeginFrame = null;
      #lastTaskBeginTime = null;
      #layerTreeId = null;
      #activeProcessId = null;
      #activeThreadId = null;
      #layerTreeData;
      constructor(allEvents, rendererData, auctionWorkletsData, metaData, layerTreeData) {
        const mainThreads = threadsInRenderer(rendererData, auctionWorkletsData).filter((thread) => {
          return thread.type === ThreadType.MAIN_THREAD && thread.processIsOnMainFrame;
        });
        const threadData = mainThreads.map((thread) => {
          return {
            tid: thread.tid,
            pid: thread.pid,
            startTime: thread.entries[0].ts
          };
        });
        this.#layerTreeData = layerTreeData;
        this.#addTraceEvents(allEvents, threadData, metaData.mainFrameId);
      }
      framesById() {
        return this.#frameById;
      }
      frames() {
        return this.#frames;
      }
      #handleBeginFrame(startTime, seqId) {
        if (!this.#lastFrame) {
          this.#startFrame(startTime, seqId);
        }
        this.#lastBeginFrame = startTime;
        this.#beginFrameQueue.addFrameIfNotExists(seqId, startTime, false, false);
      }
      #handleDroppedFrame(startTime, seqId, isPartial) {
        if (!this.#lastFrame) {
          this.#startFrame(startTime, seqId);
        }
        this.#beginFrameQueue.addFrameIfNotExists(seqId, startTime, true, isPartial);
        this.#beginFrameQueue.setDropped(seqId, true);
        this.#beginFrameQueue.setPartial(seqId, isPartial);
      }
      #handleDrawFrame(startTime, seqId) {
        if (!this.#lastFrame) {
          this.#startFrame(startTime, seqId);
          return;
        }
        if (this.#mainFrameCommitted || !this.#mainFrameRequested) {
          if (this.#lastNeedsBeginFrame) {
            const idleTimeEnd = this.#framePendingActivation ? this.#framePendingActivation.triggerTime : this.#lastBeginFrame || this.#lastNeedsBeginFrame;
            if (idleTimeEnd > this.#lastFrame.startTime) {
              this.#lastFrame.idle = true;
              this.#lastBeginFrame = null;
            }
            this.#lastNeedsBeginFrame = null;
          }
          const framesToVisualize = this.#beginFrameQueue.processPendingBeginFramesOnDrawFrame(seqId);
          for (const frame of framesToVisualize) {
            const isLastFrameIdle = this.#lastFrame.idle;
            this.#startFrame(frame.startTime, seqId);
            if (isLastFrameIdle && this.#framePendingActivation) {
              this.#commitPendingFrame();
            }
            if (frame.isDropped) {
              this.#lastFrame.dropped = true;
            }
            if (frame.isPartial) {
              this.#lastFrame.isPartial = true;
            }
          }
        }
        this.#mainFrameCommitted = false;
      }
      #handleActivateLayerTree() {
        if (!this.#lastFrame) {
          return;
        }
        if (this.#framePendingActivation && !this.#lastNeedsBeginFrame) {
          this.#commitPendingFrame();
        }
      }
      #handleRequestMainThreadFrame() {
        if (!this.#lastFrame) {
          return;
        }
        this.#mainFrameRequested = true;
      }
      #handleCommit() {
        if (!this.#framePendingCommit) {
          return;
        }
        this.#framePendingActivation = this.#framePendingCommit;
        this.#framePendingCommit = null;
        this.#mainFrameRequested = false;
        this.#mainFrameCommitted = true;
      }
      #handleLayerTreeSnapshot(layerTree) {
        this.#lastLayerTree = layerTree;
      }
      #handleNeedFrameChanged(startTime, needsBeginFrame) {
        if (needsBeginFrame) {
          this.#lastNeedsBeginFrame = startTime;
        }
      }
      #startFrame(startTime, seqId) {
        if (this.#lastFrame) {
          this.#flushFrame(this.#lastFrame, startTime);
        }
        this.#lastFrame = new TimelineFrame(seqId, startTime, Timing_exports.Micro(startTime - data5().traceBounds.min));
      }
      #flushFrame(frame, endTime) {
        frame.setLayerTree(this.#lastLayerTree);
        frame.setEndTime(endTime);
        if (this.#lastLayerTree) {
          this.#lastLayerTree.paints = frame.paints;
        }
        const lastFrame = this.#frames[this.#frames.length - 1];
        if (this.#frames.length && lastFrame && (frame.startTime !== lastFrame.endTime || frame.startTime > frame.endTime)) {
          console.assert(false, `Inconsistent frame time for frame ${this.#frames.length} (${frame.startTime} - ${frame.endTime})`);
        }
        const newFramesLength = this.#frames.push(frame);
        frame.setIndex(newFramesLength - 1);
        if (typeof frame.mainFrameId === "number") {
          this.#frameById[frame.mainFrameId] = frame;
        }
      }
      #commitPendingFrame() {
        if (!this.#framePendingActivation || !this.#lastFrame) {
          return;
        }
        this.#lastFrame.paints = this.#framePendingActivation.paints;
        this.#lastFrame.mainFrameId = this.#framePendingActivation.mainFrameId;
        this.#framePendingActivation = null;
      }
      #addTraceEvents(events, threadData, mainFrameId2) {
        let j = 0;
        this.#activeThreadId = threadData.length && threadData[0].tid || null;
        this.#activeProcessId = threadData.length && threadData[0].pid || null;
        for (let i = 0; i < events.length; ++i) {
          while (j + 1 < threadData.length && threadData[j + 1].startTime <= events[i].ts) {
            this.#activeThreadId = threadData[++j].tid;
            this.#activeProcessId = threadData[j].pid;
          }
          this.#addTraceEvent(events[i], mainFrameId2);
        }
        this.#activeThreadId = null;
        this.#activeProcessId = null;
      }
      #addTraceEvent(event, mainFrameId2) {
        if (TraceEvents_exports.isSetLayerId(event) && event.args.data.frame === mainFrameId2) {
          this.#layerTreeId = event.args.data.layerTreeId;
        } else if (TraceEvents_exports.isLayerTreeHostImplSnapshot(event) && Number(event.id) === this.#layerTreeId) {
          this.#handleLayerTreeSnapshot({
            entry: event,
            paints: []
          });
        } else {
          if (isFrameEvent(event)) {
            this.#processCompositorEvents(event);
          }
          if (event.tid === this.#activeThreadId && event.pid === this.#activeProcessId) {
            this.#addMainThreadTraceEvent(event);
          }
        }
      }
      #processCompositorEvents(entry) {
        if (entry.args["layerTreeId"] !== this.#layerTreeId) {
          return;
        }
        if (TraceEvents_exports.isBeginFrame(entry)) {
          this.#handleBeginFrame(entry.ts, entry.args["frameSeqId"]);
        } else if (TraceEvents_exports.isDrawFrame(entry)) {
          this.#handleDrawFrame(entry.ts, entry.args["frameSeqId"]);
        } else if (TraceEvents_exports.isActivateLayerTree(entry)) {
          this.#handleActivateLayerTree();
        } else if (TraceEvents_exports.isRequestMainThreadFrame(entry)) {
          this.#handleRequestMainThreadFrame();
        } else if (TraceEvents_exports.isNeedsBeginFrameChanged(entry)) {
          this.#handleNeedFrameChanged(entry.ts, entry.args["data"] && Boolean(entry.args["data"]["needsBeginFrame"]));
        } else if (TraceEvents_exports.isDroppedFrame(entry)) {
          this.#handleDroppedFrame(entry.ts, entry.args["frameSeqId"], Boolean(entry.args["hasPartialUpdate"]));
        }
      }
      #addMainThreadTraceEvent(entry) {
        if (entryIsTopLevel(entry)) {
          this.#lastTaskBeginTime = entry.ts;
        }
        if (!this.#framePendingCommit && MAIN_FRAME_MARKERS.has(entry.name)) {
          this.#framePendingCommit = new PendingFrame(this.#lastTaskBeginTime || entry.ts);
        }
        if (!this.#framePendingCommit) {
          return;
        }
        if (TraceEvents_exports.isBeginMainThreadFrame(entry) && entry.args.data.frameId) {
          this.#framePendingCommit.mainFrameId = entry.args.data.frameId;
        }
        if (TraceEvents_exports.isPaint(entry)) {
          const snapshot2 = this.#layerTreeData.paintsToSnapshots.get(entry);
          if (snapshot2) {
            this.#framePendingCommit.paints.push(new LayerPaintEvent(entry, snapshot2));
          }
        }
        if ((TraceEvents_exports.isCompositeLayers(entry) || TraceEvents_exports.isCommit(entry)) && entry.args["layerTreeId"] === this.#layerTreeId) {
          this.#handleCommit();
        }
      }
    };
    TimelineFrame = class {
      static {
        __name(this, "TimelineFrame");
      }
      // These fields exist to satisfy the base Event type which all
      // "trace events" must implement. They aren't used, but doing this means we
      // can pass `TimelineFrame` instances into places that expect
      // Types.Events.Event.
      cat = "devtools.legacy_frame";
      name = "frame";
      ph = TraceEvents_exports.Phase.COMPLETE;
      ts;
      pid = TraceEvents_exports.ProcessID(-1);
      tid = TraceEvents_exports.ThreadID(-1);
      index = -1;
      startTime;
      startTimeOffset;
      endTime;
      duration;
      idle;
      dropped;
      isPartial;
      layerTree;
      paints;
      mainFrameId;
      seqId;
      constructor(seqId, startTime, startTimeOffset) {
        this.seqId = seqId;
        this.startTime = startTime;
        this.ts = startTime;
        this.startTimeOffset = startTimeOffset;
        this.endTime = this.startTime;
        this.duration = Timing_exports.Micro(0);
        this.idle = false;
        this.dropped = false;
        this.isPartial = false;
        this.layerTree = null;
        this.paints = [];
        this.mainFrameId = void 0;
      }
      setIndex(i) {
        this.index = i;
      }
      setEndTime(endTime) {
        this.endTime = endTime;
        this.duration = Timing_exports.Micro(this.endTime - this.startTime);
      }
      setLayerTree(layerTree) {
        this.layerTree = layerTree;
      }
      /**
       * Fake the `dur` field to meet the expected value given that we pretend
       * these TimelineFrame classes are trace events across the codebase.
       */
      get dur() {
        return this.duration;
      }
    };
    LayerPaintEvent = class {
      static {
        __name(this, "LayerPaintEvent");
      }
      #event;
      #snapshot;
      constructor(event, snapshot2) {
        this.#event = event;
        this.#snapshot = snapshot2;
      }
      layerId() {
        return this.#event.args.data.layerId;
      }
      event() {
        return this.#event;
      }
      picture() {
        const rect = this.#snapshot.args.snapshot.params?.layer_rect;
        const pictureData = this.#snapshot.args.snapshot.skp64;
        return rect && pictureData ? { rect, serializedPicture: pictureData } : null;
      }
    };
    PendingFrame = class {
      static {
        __name(this, "PendingFrame");
      }
      paints;
      mainFrameId;
      triggerTime;
      constructor(triggerTime) {
        this.paints = [];
        this.mainFrameId = void 0;
        this.triggerTime = triggerTime;
      }
    };
    BeginFrameInfo = class {
      static {
        __name(this, "BeginFrameInfo");
      }
      seqId;
      startTime;
      isDropped;
      isPartial;
      constructor(seqId, startTime, isDropped, isPartial) {
        this.seqId = seqId;
        this.startTime = startTime;
        this.isDropped = isDropped;
        this.isPartial = isPartial;
      }
    };
    TimelineFrameBeginFrameQueue = class {
      static {
        __name(this, "TimelineFrameBeginFrameQueue");
      }
      queueFrames = [];
      // Maps frameSeqId to BeginFrameInfo.
      mapFrames = /* @__PURE__ */ new Map();
      // Add a BeginFrame to the queue, if it does not already exit.
      addFrameIfNotExists(seqId, startTime, isDropped, isPartial) {
        if (!this.mapFrames.has(seqId)) {
          this.mapFrames.set(seqId, new BeginFrameInfo(seqId, startTime, isDropped, isPartial));
          this.queueFrames.push(seqId);
        }
      }
      // Set a BeginFrame in queue as dropped.
      setDropped(seqId, isDropped) {
        const frame = this.mapFrames.get(seqId);
        if (frame) {
          frame.isDropped = isDropped;
        }
      }
      setPartial(seqId, isPartial) {
        const frame = this.mapFrames.get(seqId);
        if (frame) {
          frame.isPartial = isPartial;
        }
      }
      processPendingBeginFramesOnDrawFrame(seqId) {
        const framesToVisualize = [];
        if (this.mapFrames.has(seqId)) {
          while (this.queueFrames[0] !== seqId) {
            const currentSeqId = this.queueFrames[0];
            const currentFrame = this.mapFrames.get(currentSeqId);
            if (currentFrame && currentFrame.isDropped) {
              framesToVisualize.push(currentFrame);
            }
            this.mapFrames.delete(currentSeqId);
            this.queueFrames.shift();
          }
          const frame = this.mapFrames.get(seqId);
          if (frame) {
            framesToVisualize.push(frame);
          }
          this.mapFrames.delete(seqId);
          this.queueFrames.shift();
        }
        return framesToVisualize;
      }
    };
    __name(framesWithinWindow, "framesWithinWindow");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/GPUHandler.js
var GPUHandler_exports = {};
__export(GPUHandler_exports, {
  data: () => data15,
  deps: () => deps8,
  finalize: () => finalize15,
  handleEvent: () => handleEvent15,
  reset: () => reset15
});
function reset15() {
  eventsInProcessThread = /* @__PURE__ */ new Map();
  mainGPUThreadTasks = [];
}
function handleEvent15(event) {
  if (!TraceEvents_exports.isGPUTask(event)) {
    return;
  }
  Trace_exports.addEventToProcessThread(event, eventsInProcessThread);
}
async function finalize15() {
  const { gpuProcessId: gpuProcessId2, gpuThreadId: gpuThreadId2 } = data5();
  const gpuThreadsForProcess = eventsInProcessThread.get(gpuProcessId2);
  if (gpuThreadsForProcess && gpuThreadId2) {
    mainGPUThreadTasks = gpuThreadsForProcess.get(gpuThreadId2) || [];
  }
}
function data15() {
  return {
    mainGPUThreadTasks
  };
}
function deps8() {
  return ["Meta"];
}
var eventsInProcessThread, mainGPUThreadTasks;
var init_GPUHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/GPUHandler.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    init_MetaHandler();
    eventsInProcessThread = /* @__PURE__ */ new Map();
    mainGPUThreadTasks = [];
    __name(reset15, "reset");
    __name(handleEvent15, "handleEvent");
    __name(finalize15, "finalize");
    __name(data15, "data");
    __name(deps8, "deps");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/ImagePaintingHandler.js
var ImagePaintingHandler_exports = {};
__export(ImagePaintingHandler_exports, {
  data: () => data16,
  finalize: () => finalize16,
  handleEvent: () => handleEvent16,
  reset: () => reset16
});
function reset16() {
  paintImageEvents = /* @__PURE__ */ new Map();
  decodeLazyPixelRefEvents = /* @__PURE__ */ new Map();
  paintImageByLazyPixelRef = /* @__PURE__ */ new Map();
  eventToPaintImage = /* @__PURE__ */ new Map();
  urlToPaintImage = /* @__PURE__ */ new Map();
  paintEventToCorrectedDisplaySize = /* @__PURE__ */ new Map();
  didCorrectForHostDpr = false;
}
function handleEvent16(event) {
  if (TraceEvents_exports.isPaintImage(event)) {
    const forProcess = paintImageEvents.get(event.pid) || /* @__PURE__ */ new Map();
    const forThread = forProcess.get(event.tid) || [];
    forThread.push(event);
    forProcess.set(event.tid, forThread);
    paintImageEvents.set(event.pid, forProcess);
    if (event.args.data.url) {
      const paintsForUrl = MapUtilities_exports.getWithDefault(urlToPaintImage, event.args.data.url, () => []);
      paintsForUrl.push(event);
    }
    return;
  }
  if (TraceEvents_exports.isDecodeLazyPixelRef(event) && typeof event.args?.LazyPixelRef !== "undefined") {
    const forProcess = decodeLazyPixelRefEvents.get(event.pid) || /* @__PURE__ */ new Map();
    const forThread = forProcess.get(event.tid) || [];
    forThread.push(event);
    forProcess.set(event.tid, forThread);
    decodeLazyPixelRefEvents.set(event.pid, forProcess);
  }
  if (TraceEvents_exports.isDrawLazyPixelRef(event) && typeof event.args?.LazyPixelRef !== "undefined") {
    const lastPaintEvent = paintImageEvents.get(event.pid)?.get(event.tid)?.at(-1);
    if (!lastPaintEvent) {
      return;
    }
    paintImageByLazyPixelRef.set(event.args.LazyPixelRef, lastPaintEvent);
    return;
  }
  if (TraceEvents_exports.isDecodeImage(event)) {
    const lastPaintImageEventOnThread = paintImageEvents.get(event.pid)?.get(event.tid)?.at(-1);
    if (lastPaintImageEventOnThread) {
      eventToPaintImage.set(event, lastPaintImageEventOnThread);
      return;
    }
    const lastDecodeLazyPixelRef = decodeLazyPixelRefEvents.get(event.pid)?.get(event.tid)?.at(-1);
    if (typeof lastDecodeLazyPixelRef?.args?.LazyPixelRef === "undefined") {
      return;
    }
    const paintEvent = paintImageByLazyPixelRef.get(lastDecodeLazyPixelRef.args.LazyPixelRef);
    if (!paintEvent) {
      return;
    }
    eventToPaintImage.set(event, paintEvent);
  }
}
async function finalize16(options) {
  if (!options.metadata?.hostDPR) {
    return;
  }
  const { devicePixelRatio: emulatedDpr } = data5();
  if (!emulatedDpr) {
    return;
  }
  for (const byThread of paintImageEvents.values()) {
    for (const paintEvents2 of byThread.values()) {
      for (const paintEvent of paintEvents2) {
        const cssPixelsWidth = paintEvent.args.data.width / options.metadata.hostDPR;
        const cssPixelsHeight = paintEvent.args.data.height / options.metadata.hostDPR;
        const width = cssPixelsWidth * emulatedDpr;
        const height = cssPixelsHeight * emulatedDpr;
        paintEventToCorrectedDisplaySize.set(paintEvent, { width, height });
      }
    }
  }
  didCorrectForHostDpr = true;
}
function data16() {
  return {
    paintImageByDrawLazyPixelRef: paintImageByLazyPixelRef,
    paintImageForEvent: eventToPaintImage,
    paintImageEventForUrl: urlToPaintImage,
    paintEventToCorrectedDisplaySize,
    didCorrectForHostDpr
  };
}
var paintImageEvents, decodeLazyPixelRefEvents, paintImageByLazyPixelRef, eventToPaintImage, urlToPaintImage, paintEventToCorrectedDisplaySize, didCorrectForHostDpr;
var init_ImagePaintingHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/ImagePaintingHandler.js"() {
    init_process_global();
    init_platform();
    init_types2();
    init_MetaHandler();
    paintImageEvents = /* @__PURE__ */ new Map();
    decodeLazyPixelRefEvents = /* @__PURE__ */ new Map();
    paintImageByLazyPixelRef = /* @__PURE__ */ new Map();
    eventToPaintImage = /* @__PURE__ */ new Map();
    urlToPaintImage = /* @__PURE__ */ new Map();
    paintEventToCorrectedDisplaySize = /* @__PURE__ */ new Map();
    didCorrectForHostDpr = false;
    __name(reset16, "reset");
    __name(handleEvent16, "handleEvent");
    __name(finalize16, "finalize");
    __name(data16, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/InitiatorsHandler.js
var InitiatorsHandler_exports = {};
__export(InitiatorsHandler_exports, {
  data: () => data17,
  deps: () => deps9,
  finalize: () => finalize17,
  handleEvent: () => handleEvent17,
  reset: () => reset17
});
function reset17() {
  lastScheduleStyleRecalcByFrame = /* @__PURE__ */ new Map();
  lastInvalidationEventForFrame = /* @__PURE__ */ new Map();
  lastRecalcByFrame = /* @__PURE__ */ new Map();
  timerInstallEventsById = /* @__PURE__ */ new Map();
  eventToInitiatorMap2 = /* @__PURE__ */ new Map();
  initiatorToEventsMap = /* @__PURE__ */ new Map();
  requestIdleCallbackEventsById = /* @__PURE__ */ new Map();
  webSocketCreateEventsById = /* @__PURE__ */ new Map();
  schedulePostTaskCallbackEventsById = /* @__PURE__ */ new Map();
}
function storeInitiator(data31) {
  eventToInitiatorMap2.set(data31.event, data31.initiator);
  const eventsForInitiator = initiatorToEventsMap.get(data31.initiator) || [];
  eventsForInitiator.push(data31.event);
  initiatorToEventsMap.set(data31.initiator, eventsForInitiator);
}
function handleEvent17(event) {
  if (TraceEvents_exports.isScheduleStyleRecalculation(event)) {
    lastScheduleStyleRecalcByFrame.set(event.args.data.frame, event);
  } else if (TraceEvents_exports.isRecalcStyle(event)) {
    if (event.args.beginData) {
      lastRecalcByFrame.set(event.args.beginData.frame, event);
      const scheduledStyleForFrame = lastScheduleStyleRecalcByFrame.get(event.args.beginData.frame);
      if (scheduledStyleForFrame) {
        storeInitiator({
          event,
          initiator: scheduledStyleForFrame
        });
      }
    }
  } else if (TraceEvents_exports.isInvalidateLayout(event)) {
    let invalidationInitiator = event;
    if (!lastInvalidationEventForFrame.has(event.args.data.frame)) {
      const lastRecalcStyleForFrame = lastRecalcByFrame.get(event.args.data.frame);
      if (lastRecalcStyleForFrame) {
        const { endTime } = Timing_exports3.eventTimingsMicroSeconds(lastRecalcStyleForFrame);
        const initiatorOfRecalcStyle = eventToInitiatorMap2.get(lastRecalcStyleForFrame);
        if (initiatorOfRecalcStyle && endTime && endTime > event.ts) {
          invalidationInitiator = initiatorOfRecalcStyle;
        }
      }
    }
    lastInvalidationEventForFrame.set(event.args.data.frame, invalidationInitiator);
  } else if (TraceEvents_exports.isLayout(event)) {
    const lastInvalidation = lastInvalidationEventForFrame.get(event.args.beginData.frame);
    if (lastInvalidation) {
      storeInitiator({
        event,
        initiator: lastInvalidation
      });
    }
    lastInvalidationEventForFrame.delete(event.args.beginData.frame);
  } else if (TraceEvents_exports.isTimerInstall(event)) {
    timerInstallEventsById.set(event.args.data.timerId, event);
  } else if (TraceEvents_exports.isTimerFire(event)) {
    const matchingInstall = timerInstallEventsById.get(event.args.data.timerId);
    if (matchingInstall) {
      storeInitiator({ event, initiator: matchingInstall });
    }
  } else if (TraceEvents_exports.isRequestIdleCallback(event)) {
    requestIdleCallbackEventsById.set(event.args.data.id, event);
  } else if (TraceEvents_exports.isFireIdleCallback(event)) {
    const matchingRequestEvent = requestIdleCallbackEventsById.get(event.args.data.id);
    if (matchingRequestEvent) {
      storeInitiator({
        event,
        initiator: matchingRequestEvent
      });
    }
  } else if (TraceEvents_exports.isWebSocketCreate(event)) {
    webSocketCreateEventsById.set(event.args.data.identifier, event);
  } else if (TraceEvents_exports.isWebSocketInfo(event) || TraceEvents_exports.isWebSocketTransfer(event)) {
    const matchingCreateEvent = webSocketCreateEventsById.get(event.args.data.identifier);
    if (matchingCreateEvent) {
      storeInitiator({
        event,
        initiator: matchingCreateEvent
      });
    }
  } else if (TraceEvents_exports.isSchedulePostTaskCallback(event)) {
    schedulePostTaskCallbackEventsById.set(event.args.data.taskId, event);
  } else if (TraceEvents_exports.isRunPostTaskCallback(event) || TraceEvents_exports.isAbortPostTaskCallback(event)) {
    const matchingSchedule = schedulePostTaskCallbackEventsById.get(event.args.data.taskId);
    if (matchingSchedule) {
      storeInitiator({ event, initiator: matchingSchedule });
    }
  }
}
function createRelationshipsFromFlows() {
  const flows2 = data3().flows;
  for (let i = 0; i < flows2.length; i++) {
    const flow = flows2[i];
    for (let j = 0; j < flow.length - 1; j++) {
      storeInitiator({ event: flow[j + 1], initiator: flow[j] });
    }
  }
}
function createRelationshipsFromAsyncJSCalls() {
  const asyncCallEntries = data9().schedulerToRunEntryPoints.entries();
  for (const [asyncCaller, asyncCallees] of asyncCallEntries) {
    for (const asyncCallee of asyncCallees) {
      storeInitiator({ event: asyncCallee, initiator: asyncCaller });
    }
  }
}
async function finalize17() {
  createRelationshipsFromFlows();
  createRelationshipsFromAsyncJSCalls();
}
function data17() {
  return {
    eventToInitiator: eventToInitiatorMap2,
    initiatorToEvents: initiatorToEventsMap
  };
}
function deps9() {
  return ["Flows", "AsyncJSCalls"];
}
var lastScheduleStyleRecalcByFrame, lastInvalidationEventForFrame, lastRecalcByFrame, eventToInitiatorMap2, initiatorToEventsMap, timerInstallEventsById, requestIdleCallbackEventsById, webSocketCreateEventsById, schedulePostTaskCallbackEventsById;
var init_InitiatorsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/InitiatorsHandler.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    init_AsyncJSCallsHandler();
    init_FlowsHandler();
    lastScheduleStyleRecalcByFrame = /* @__PURE__ */ new Map();
    lastInvalidationEventForFrame = /* @__PURE__ */ new Map();
    lastRecalcByFrame = /* @__PURE__ */ new Map();
    eventToInitiatorMap2 = /* @__PURE__ */ new Map();
    initiatorToEventsMap = /* @__PURE__ */ new Map();
    timerInstallEventsById = /* @__PURE__ */ new Map();
    requestIdleCallbackEventsById = /* @__PURE__ */ new Map();
    webSocketCreateEventsById = /* @__PURE__ */ new Map();
    schedulePostTaskCallbackEventsById = /* @__PURE__ */ new Map();
    __name(reset17, "reset");
    __name(storeInitiator, "storeInitiator");
    __name(handleEvent17, "handleEvent");
    __name(createRelationshipsFromFlows, "createRelationshipsFromFlows");
    __name(createRelationshipsFromAsyncJSCalls, "createRelationshipsFromAsyncJSCalls");
    __name(finalize17, "finalize");
    __name(data17, "data");
    __name(deps9, "deps");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/InvalidationsHandler.js
var InvalidationsHandler_exports = {};
__export(InvalidationsHandler_exports, {
  data: () => data18,
  finalize: () => finalize18,
  handleEvent: () => handleEvent18,
  handleUserConfig: () => handleUserConfig3,
  reset: () => reset18
});
function reset18() {
  frameStateByFrame.clear();
  maxInvalidationsPerEvent = null;
}
function handleUserConfig3(userConfig) {
  maxInvalidationsPerEvent = userConfig.maxInvalidationEventsPerEvent;
}
function getState(frameId) {
  let frameState = frameStateByFrame.get(frameId);
  if (!frameState) {
    frameState = {
      invalidationsForEvent: /* @__PURE__ */ new Map(),
      invalidationCountForEvent: /* @__PURE__ */ new Map(),
      lastRecalcStyleEvent: null,
      pendingInvalidations: [],
      hasPainted: false
    };
    frameStateByFrame.set(frameId, frameState);
  }
  return frameState;
}
function getFrameId(event) {
  if (TraceEvents_exports.isRecalcStyle(event) || TraceEvents_exports.isLayout(event)) {
    return event.args.beginData?.frame ?? null;
  }
  return event.args?.data?.frame ?? null;
}
function addInvalidationToEvent(frameState, event, invalidation) {
  const existingInvalidations = frameState.invalidationsForEvent.get(event) || [];
  existingInvalidations.push(invalidation);
  if (maxInvalidationsPerEvent !== null && existingInvalidations.length > maxInvalidationsPerEvent) {
    existingInvalidations.shift();
  }
  frameState.invalidationsForEvent.set(event, existingInvalidations);
  const count = frameState.invalidationCountForEvent.get(event) ?? 0;
  frameState.invalidationCountForEvent.set(event, count + 1);
}
function handleEvent18(event) {
  if (maxInvalidationsPerEvent === 0) {
    return;
  }
  const frameId = getFrameId(event);
  if (!frameId) {
    return;
  }
  const thisFrame = getState(frameId);
  if (TraceEvents_exports.isRecalcStyle(event)) {
    thisFrame.lastRecalcStyleEvent = event;
    for (const invalidation of thisFrame.pendingInvalidations) {
      if (TraceEvents_exports.isLayoutInvalidationTracking(invalidation)) {
        continue;
      }
      addInvalidationToEvent(thisFrame, event, invalidation);
    }
    return;
  }
  if (TraceEvents_exports.isInvalidationTracking(event)) {
    if (thisFrame.hasPainted) {
      thisFrame.pendingInvalidations.length = 0;
      thisFrame.lastRecalcStyleEvent = null;
      thisFrame.hasPainted = false;
    }
    if (thisFrame.lastRecalcStyleEvent && (TraceEvents_exports.isScheduleStyleInvalidationTracking(event) || TraceEvents_exports.isStyleRecalcInvalidationTracking(event) || TraceEvents_exports.isStyleInvalidatorInvalidationTracking(event))) {
      const recalcLastRecalc = thisFrame.lastRecalcStyleEvent;
      const recalcEndTime = recalcLastRecalc.ts + (recalcLastRecalc.dur || 0);
      if (event.ts >= recalcLastRecalc.ts && event.ts <= recalcEndTime) {
        addInvalidationToEvent(thisFrame, recalcLastRecalc, event);
      }
    }
    thisFrame.pendingInvalidations.push(event);
    return;
  }
  if (TraceEvents_exports.isPaint(event)) {
    thisFrame.hasPainted = true;
    return;
  }
  if (TraceEvents_exports.isLayout(event)) {
    for (const invalidation of thisFrame.pendingInvalidations) {
      if (!TraceEvents_exports.isLayoutInvalidationTracking(invalidation)) {
        continue;
      }
      addInvalidationToEvent(thisFrame, event, invalidation);
    }
  }
}
async function finalize18() {
}
function data18() {
  const invalidationsForEvent = /* @__PURE__ */ new Map();
  const invalidationCountForEvent = /* @__PURE__ */ new Map();
  for (const frame of frameStateByFrame.values()) {
    for (const [event, invalidations] of frame.invalidationsForEvent.entries()) {
      invalidationsForEvent.set(event, invalidations);
    }
    for (const [event, count] of frame.invalidationCountForEvent.entries()) {
      invalidationCountForEvent.set(event, count);
    }
  }
  return {
    invalidationsForEvent,
    invalidationCountForEvent
  };
}
var frameStateByFrame, maxInvalidationsPerEvent;
var init_InvalidationsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/InvalidationsHandler.js"() {
    init_process_global();
    init_types2();
    frameStateByFrame = /* @__PURE__ */ new Map();
    maxInvalidationsPerEvent = null;
    __name(reset18, "reset");
    __name(handleUserConfig3, "handleUserConfig");
    __name(getState, "getState");
    __name(getFrameId, "getFrameId");
    __name(addInvalidationToEvent, "addInvalidationToEvent");
    __name(handleEvent18, "handleEvent");
    __name(finalize18, "finalize");
    __name(data18, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/PageLoadMetricsHandler.js
var PageLoadMetricsHandler_exports = {};
__export(PageLoadMetricsHandler_exports, {
  MetricName: () => MetricName,
  ScoreClassification: () => ScoreClassification,
  data: () => data19,
  deps: () => deps10,
  finalize: () => finalize19,
  getFrameIdForPageLoadEvent: () => getFrameIdForPageLoadEvent,
  handleEvent: () => handleEvent19,
  metricIsLCP: () => metricIsLCP,
  reset: () => reset19,
  scoreClassificationForDOMContentLoaded: () => scoreClassificationForDOMContentLoaded,
  scoreClassificationForFirstContentfulPaint: () => scoreClassificationForFirstContentfulPaint,
  scoreClassificationForLargestContentfulPaint: () => scoreClassificationForLargestContentfulPaint,
  scoreClassificationForTimeToInteractive: () => scoreClassificationForTimeToInteractive,
  scoreClassificationForTotalBlockingTime: () => scoreClassificationForTotalBlockingTime
});
function reset19() {
  metricScoresByFrameId = /* @__PURE__ */ new Map();
  pageLoadEventsArray = [];
  allMarkerEvents = [];
  selectedLCPCandidateEvents = /* @__PURE__ */ new Set();
  metaCharsetCheckEventsByNavigation = /* @__PURE__ */ new Map();
  metaCharsetCheckEventsArray = [];
}
function handleEvent19(event) {
  if (TraceEvents_exports.isMetaCharsetCheck(event)) {
    metaCharsetCheckEventsArray.push(event);
    return;
  }
  if (!TraceEvents_exports.eventIsPageLoadEvent(event)) {
    return;
  }
  pageLoadEventsArray.push(event);
}
function storePageLoadMetricAgainstNavigationId(navigation2, event) {
  const frameId = getFrameIdForPageLoadEvent(event);
  const { rendererProcessesByFrame } = data5();
  const rendererProcessesInFrame = rendererProcessesByFrame.get(frameId);
  if (!rendererProcessesInFrame) {
    return;
  }
  const processData = rendererProcessesInFrame.get(event.pid);
  if (!processData) {
    return;
  }
  if (TraceEvents_exports.isNavigationStart(event)) {
    return;
  }
  if (TraceEvents_exports.isFirstContentfulPaint(event)) {
    const fcpTime = Timing_exports.Micro(event.ts - navigation2.ts);
    const classification = scoreClassificationForFirstContentfulPaint(fcpTime);
    const metricScore = { event, metricName: MetricName.FCP, classification, navigation: navigation2, timing: fcpTime };
    storeMetricScore(frameId, navigation2, metricScore);
    return;
  }
  if (TraceEvents_exports.isFirstPaint(event)) {
    const paintTime = Timing_exports.Micro(event.ts - navigation2.ts);
    const classification = ScoreClassification.UNCLASSIFIED;
    const metricScore = { event, metricName: MetricName.FP, classification, navigation: navigation2, timing: paintTime };
    storeMetricScore(frameId, navigation2, metricScore);
    return;
  }
  if (TraceEvents_exports.isMarkDOMContent(event)) {
    const dclTime = Timing_exports.Micro(event.ts - navigation2.ts);
    const metricScore = {
      event,
      metricName: MetricName.DCL,
      classification: scoreClassificationForDOMContentLoaded(dclTime),
      navigation: navigation2,
      timing: dclTime
    };
    storeMetricScore(frameId, navigation2, metricScore);
    return;
  }
  if (TraceEvents_exports.isInteractiveTime(event)) {
    const ttiValue = Timing_exports.Micro(event.ts - navigation2.ts);
    const tti = {
      event,
      metricName: MetricName.TTI,
      classification: scoreClassificationForTimeToInteractive(ttiValue),
      navigation: navigation2,
      timing: ttiValue
    };
    storeMetricScore(frameId, navigation2, tti);
    const tbtValue = Timing_exports3.milliToMicro(Timing_exports.Milli(event.args.args.total_blocking_time_ms));
    const tbt = {
      event,
      metricName: MetricName.TBT,
      classification: scoreClassificationForTotalBlockingTime(tbtValue),
      navigation: navigation2,
      timing: tbtValue
    };
    storeMetricScore(frameId, navigation2, tbt);
    return;
  }
  if (TraceEvents_exports.isMarkLoad(event)) {
    const loadTime = Timing_exports.Micro(event.ts - navigation2.ts);
    const metricScore = {
      event,
      metricName: MetricName.L,
      classification: ScoreClassification.UNCLASSIFIED,
      navigation: navigation2,
      timing: loadTime
    };
    storeMetricScore(frameId, navigation2, metricScore);
    return;
  }
  if (TraceEvents_exports.isAnyLargestContentfulPaintCandidate(event)) {
    const candidateIndex = event.args.data?.candidateIndex;
    if (!candidateIndex) {
      throw new Error("Largest Contentful Paint unexpectedly had no candidateIndex.");
    }
    const lcpTime = Timing_exports.Micro(event.ts - navigation2.ts);
    const lcp = {
      event,
      metricName: MetricName.LCP,
      classification: scoreClassificationForLargestContentfulPaint(lcpTime),
      navigation: navigation2,
      timing: lcpTime
    };
    const metricsByNavigation = MapUtilities_exports.getWithDefault(metricScoresByFrameId, frameId, () => /* @__PURE__ */ new Map());
    const metrics = MapUtilities_exports.getWithDefault(metricsByNavigation, navigation2, () => /* @__PURE__ */ new Map());
    const lastLCPCandidate = metrics.get(MetricName.LCP);
    if (lastLCPCandidate === void 0) {
      selectedLCPCandidateEvents.add(lcp.event);
      storeMetricScore(frameId, navigation2, lcp);
      return;
    }
    const lastLCPCandidateEvent = lastLCPCandidate.event;
    if (!TraceEvents_exports.isAnyLargestContentfulPaintCandidate(lastLCPCandidateEvent)) {
      return;
    }
    const lastCandidateIndex = lastLCPCandidateEvent.args.data?.candidateIndex;
    if (!lastCandidateIndex) {
      return;
    }
    if (lastCandidateIndex < candidateIndex) {
      selectedLCPCandidateEvents.delete(lastLCPCandidateEvent);
      selectedLCPCandidateEvents.add(lcp.event);
      storeMetricScore(frameId, navigation2, lcp);
    }
    return;
  }
  if (TraceEvents_exports.isLayoutShift(event)) {
    return;
  }
  if (TraceEvents_exports.isSoftNavigationStart(event)) {
    return;
  }
  return assertNever(event, `Unexpected event type: ${event}`);
}
function storeMetricScore(frameId, navigation2, metricScore) {
  const metricsByNavigation = MapUtilities_exports.getWithDefault(metricScoresByFrameId, frameId, () => /* @__PURE__ */ new Map());
  const metrics = MapUtilities_exports.getWithDefault(metricsByNavigation, navigation2, () => /* @__PURE__ */ new Map());
  metrics.delete(metricScore.metricName);
  metrics.set(metricScore.metricName, metricScore);
}
function getFrameIdForPageLoadEvent(event) {
  if (TraceEvents_exports.isFirstContentfulPaint(event) || TraceEvents_exports.isInteractiveTime(event) || TraceEvents_exports.isAnyLargestContentfulPaintCandidate(event) || TraceEvents_exports.isNavigationStart(event) || TraceEvents_exports.isSoftNavigationStart(event) || TraceEvents_exports.isLayoutShift(event) || TraceEvents_exports.isFirstPaint(event)) {
    return event.args.frame;
  }
  if (TraceEvents_exports.isMarkDOMContent(event) || TraceEvents_exports.isMarkLoad(event)) {
    const frameId = event.args.data?.frame;
    if (!frameId) {
      throw new Error("MarkDOMContent unexpectedly had no frame ID.");
    }
    return frameId;
  }
  assertNever(event, `Unexpected event type: ${event}`);
}
function getNavigationForPageLoadEvent(event) {
  if (TraceEvents_exports.isFirstContentfulPaint(event) || TraceEvents_exports.isAnyLargestContentfulPaintCandidate(event) || TraceEvents_exports.isFirstPaint(event)) {
    const { navigationsByNavigationId: navigationsByNavigationId2, softNavigationsById: softNavigationsById2 } = data5();
    let navigation2;
    if (event.name === TraceEvents_exports.Name.MARK_LCP_CANDIDATE_FOR_SOFT_NAVIGATION && event.args.data?.performanceTimelineNavigationId) {
      navigation2 = softNavigationsById2.get(event.args.data.performanceTimelineNavigationId);
      if (!navigation2) {
        return null;
      }
    } else {
      const navigationId = event.args.data?.navigationId;
      if (!navigationId) {
        throw new Error(`Trace event unexpectedly had no navigation ID: ${JSON.stringify(event, null, 2)}`);
      }
      navigation2 = navigationsByNavigationId2.get(navigationId);
    }
    if (!navigation2) {
      return null;
    }
    return navigation2;
  }
  if (TraceEvents_exports.isSoftNavigationStart(event)) {
    const { softNavigationsById: softNavigationsById2 } = data5();
    return softNavigationsById2.get(event.args.context.performanceTimelineNavigationId) ?? null;
  }
  if (TraceEvents_exports.isMarkDOMContent(event) || TraceEvents_exports.isInteractiveTime(event) || TraceEvents_exports.isLayoutShift(event) || TraceEvents_exports.isMarkLoad(event)) {
    const frameId = getFrameIdForPageLoadEvent(event);
    const { navigationsByFrameId: navigationsByFrameId2 } = data5();
    return Trace_exports.getNavigationForTraceEvent(event, frameId, navigationsByFrameId2);
  }
  if (TraceEvents_exports.isNavigationStart(event)) {
    return null;
  }
  return assertNever(event, `Unexpected event type: ${event}`);
}
function scoreClassificationForFirstContentfulPaint(fcpScoreInMicroseconds) {
  const FCP_GOOD_TIMING = Timing_exports3.secondsToMicro(Timing_exports.Seconds(1.8));
  const FCP_MEDIUM_TIMING = Timing_exports3.secondsToMicro(Timing_exports.Seconds(3));
  let scoreClassification = ScoreClassification.BAD;
  if (fcpScoreInMicroseconds <= FCP_MEDIUM_TIMING) {
    scoreClassification = ScoreClassification.OK;
  }
  if (fcpScoreInMicroseconds <= FCP_GOOD_TIMING) {
    scoreClassification = ScoreClassification.GOOD;
  }
  return scoreClassification;
}
function scoreClassificationForTimeToInteractive(ttiTimeInMicroseconds) {
  const TTI_GOOD_TIMING = Timing_exports3.secondsToMicro(Timing_exports.Seconds(3.8));
  const TTI_MEDIUM_TIMING = Timing_exports3.secondsToMicro(Timing_exports.Seconds(7.3));
  let scoreClassification = ScoreClassification.BAD;
  if (ttiTimeInMicroseconds <= TTI_MEDIUM_TIMING) {
    scoreClassification = ScoreClassification.OK;
  }
  if (ttiTimeInMicroseconds <= TTI_GOOD_TIMING) {
    scoreClassification = ScoreClassification.GOOD;
  }
  return scoreClassification;
}
function scoreClassificationForLargestContentfulPaint(lcpTimeInMicroseconds) {
  const LCP_GOOD_TIMING = Timing_exports3.secondsToMicro(Timing_exports.Seconds(2.5));
  const LCP_MEDIUM_TIMING = Timing_exports3.secondsToMicro(Timing_exports.Seconds(4));
  let scoreClassification = ScoreClassification.BAD;
  if (lcpTimeInMicroseconds <= LCP_MEDIUM_TIMING) {
    scoreClassification = ScoreClassification.OK;
  }
  if (lcpTimeInMicroseconds <= LCP_GOOD_TIMING) {
    scoreClassification = ScoreClassification.GOOD;
  }
  return scoreClassification;
}
function scoreClassificationForDOMContentLoaded(_dclTimeInMicroseconds) {
  return ScoreClassification.UNCLASSIFIED;
}
function scoreClassificationForTotalBlockingTime(tbtTimeInMicroseconds) {
  const TBT_GOOD_TIMING = Timing_exports3.milliToMicro(Timing_exports.Milli(200));
  const TBT_MEDIUM_TIMING = Timing_exports3.milliToMicro(Timing_exports.Milli(600));
  let scoreClassification = ScoreClassification.BAD;
  if (tbtTimeInMicroseconds <= TBT_MEDIUM_TIMING) {
    scoreClassification = ScoreClassification.OK;
  }
  if (tbtTimeInMicroseconds <= TBT_GOOD_TIMING) {
    scoreClassification = ScoreClassification.GOOD;
  }
  return scoreClassification;
}
function gatherFinalLCPEvents() {
  const allFinalLCPEvents = [];
  const dataForAllFrames = [...metricScoresByFrameId.values()];
  const dataForAllNavigations = dataForAllFrames.flatMap((frameData) => [...frameData.values()]);
  for (let i = 0; i < dataForAllNavigations.length; i++) {
    const navigationData = dataForAllNavigations[i];
    const lcpInNavigation = navigationData.get(MetricName.LCP);
    if (!lcpInNavigation?.event) {
      continue;
    }
    allFinalLCPEvents.push(lcpInNavigation.event);
  }
  return allFinalLCPEvents;
}
async function finalize19() {
  pageLoadEventsArray.sort((a, b) => a.ts - b.ts);
  for (const pageLoadEvent of pageLoadEventsArray) {
    const navigation2 = getNavigationForPageLoadEvent(pageLoadEvent);
    if (navigation2) {
      storePageLoadMetricAgainstNavigationId(navigation2, pageLoadEvent);
    }
  }
  const { navigationsByFrameId: navigationsByFrameId2 } = data5();
  metaCharsetCheckEventsArray.sort((a, b) => a.ts - b.ts);
  for (const metaCharsetCheckEvent of metaCharsetCheckEventsArray) {
    const frameId = metaCharsetCheckEvent.args.data?.frame;
    if (!frameId) {
      continue;
    }
    const navigation2 = Trace_exports.getNavigationForTraceEvent(metaCharsetCheckEvent, frameId, navigationsByFrameId2);
    if (!navigation2) {
      continue;
    }
    const eventsForNavigation = MapUtilities_exports.getWithDefault(metaCharsetCheckEventsByNavigation, navigation2, () => []);
    eventsForNavigation.push(metaCharsetCheckEvent);
  }
  const allFinalLCPEvents = gatherFinalLCPEvents();
  const mainFrame = data5().mainFrameId;
  const allEventsButLCP = pageLoadEventsArray.filter((event) => !TraceEvents_exports.isAnyLargestContentfulPaintCandidate(event));
  const markerEvents = [...allFinalLCPEvents, ...allEventsButLCP].filter(TraceEvents_exports.isMarkerEvent);
  allMarkerEvents = markerEvents.filter((event) => getFrameIdForPageLoadEvent(event) === mainFrame).sort((a, b) => a.ts - b.ts);
}
function data19() {
  return {
    metricScoresByFrameId,
    allMarkerEvents,
    metaCharsetCheckEventsByNavigation
  };
}
function deps10() {
  return ["Meta"];
}
function metricIsLCP(metric) {
  return metric.metricName === MetricName.LCP;
}
var metricScoresByFrameId, allMarkerEvents, metaCharsetCheckEventsByNavigation, metaCharsetCheckEventsArray, pageLoadEventsArray, selectedLCPCandidateEvents, ScoreClassification, MetricName;
var init_PageLoadMetricsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/PageLoadMetricsHandler.js"() {
    init_process_global();
    init_platform();
    init_helpers2();
    init_types2();
    init_MetaHandler();
    metricScoresByFrameId = /* @__PURE__ */ new Map();
    allMarkerEvents = [];
    metaCharsetCheckEventsByNavigation = /* @__PURE__ */ new Map();
    metaCharsetCheckEventsArray = [];
    __name(reset19, "reset");
    pageLoadEventsArray = [];
    selectedLCPCandidateEvents = /* @__PURE__ */ new Set();
    __name(handleEvent19, "handleEvent");
    __name(storePageLoadMetricAgainstNavigationId, "storePageLoadMetricAgainstNavigationId");
    __name(storeMetricScore, "storeMetricScore");
    __name(getFrameIdForPageLoadEvent, "getFrameIdForPageLoadEvent");
    __name(getNavigationForPageLoadEvent, "getNavigationForPageLoadEvent");
    __name(scoreClassificationForFirstContentfulPaint, "scoreClassificationForFirstContentfulPaint");
    __name(scoreClassificationForTimeToInteractive, "scoreClassificationForTimeToInteractive");
    __name(scoreClassificationForLargestContentfulPaint, "scoreClassificationForLargestContentfulPaint");
    __name(scoreClassificationForDOMContentLoaded, "scoreClassificationForDOMContentLoaded");
    __name(scoreClassificationForTotalBlockingTime, "scoreClassificationForTotalBlockingTime");
    __name(gatherFinalLCPEvents, "gatherFinalLCPEvents");
    __name(finalize19, "finalize");
    __name(data19, "data");
    __name(deps10, "deps");
    (function(ScoreClassification2) {
      ScoreClassification2["GOOD"] = "good";
      ScoreClassification2["OK"] = "ok";
      ScoreClassification2["BAD"] = "bad";
      ScoreClassification2["UNCLASSIFIED"] = "unclassified";
    })(ScoreClassification || (ScoreClassification = {}));
    (function(MetricName2) {
      MetricName2["FCP"] = "FCP";
      MetricName2["FP"] = "FP";
      MetricName2["L"] = "L";
      MetricName2["LCP"] = "LCP";
      MetricName2["DCL"] = "DCL";
      MetricName2["TTI"] = "TTI";
      MetricName2["TBT"] = "TBT";
      MetricName2["CLS"] = "CLS";
      MetricName2["NAV"] = "Nav";
      MetricName2["SOFT_NAV"] = "Nav*";
      MetricName2["SOFT_LCP"] = "LCP*";
    })(MetricName || (MetricName = {}));
    __name(metricIsLCP, "metricIsLCP");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/LargestImagePaintHandler.js
var LargestImagePaintHandler_exports = {};
__export(LargestImagePaintHandler_exports, {
  data: () => data20,
  deps: () => deps11,
  finalize: () => finalize20,
  handleEvent: () => handleEvent20,
  reset: () => reset20
});
function reset20() {
  imagePaintsByNodeIdAndProcess = /* @__PURE__ */ new Map();
  lcpRequestByNavigationId = /* @__PURE__ */ new Map();
}
function handleEvent20(event) {
  if (!TraceEvents_exports.isLargestImagePaintCandidate(event) || !event.args.data) {
    return;
  }
  const imagePaintsByNodeId = MapUtilities_exports.getWithDefault(imagePaintsByNodeIdAndProcess, event.pid, () => /* @__PURE__ */ new Map());
  imagePaintsByNodeId.set(event.args.data.DOMNodeId, event);
}
async function finalize20() {
  const requests = data6().byTime;
  const { traceBounds: traceBounds2, navigationsByNavigationId: navigationsByNavigationId2 } = data5();
  const metricScoresByFrameId2 = data19().metricScoresByFrameId;
  for (const [navigationId, navigation2] of navigationsByNavigationId2) {
    const lcpMetric = metricScoresByFrameId2.get(navigation2.args.frame)?.get(navigation2)?.get(MetricName.LCP);
    const lcpEvent = lcpMetric?.event;
    if (!lcpEvent || !TraceEvents_exports.isAnyLargestContentfulPaintCandidate(lcpEvent)) {
      continue;
    }
    const nodeId = lcpEvent.args.data?.nodeId;
    if (!nodeId) {
      continue;
    }
    const lcpImagePaintEvent = imagePaintsByNodeIdAndProcess.get(lcpEvent.pid)?.get(nodeId);
    const lcpUrl = lcpImagePaintEvent?.args.data?.imageUrl;
    if (!lcpUrl) {
      continue;
    }
    const startTime = navigation2?.ts ?? traceBounds2.min;
    const endTime = lcpImagePaintEvent.ts;
    let lcpRequest;
    for (const request of requests) {
      if (request.ts < startTime) {
        continue;
      }
      if (request.ts >= endTime) {
        break;
      }
      if (request.args.data.url === lcpUrl || request.args.data.redirects.some((r) => r.url === lcpUrl)) {
        lcpRequest = request;
        break;
      }
    }
    if (lcpRequest) {
      lcpRequestByNavigationId.set(navigationId, lcpRequest);
    }
  }
}
function data20() {
  return { lcpRequestByNavigationId };
}
function deps11() {
  return ["Meta", "NetworkRequests", "PageLoadMetrics"];
}
var imagePaintsByNodeIdAndProcess, lcpRequestByNavigationId;
var init_LargestImagePaintHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/LargestImagePaintHandler.js"() {
    init_process_global();
    init_platform();
    init_types2();
    init_MetaHandler();
    init_NetworkRequestsHandler();
    init_PageLoadMetricsHandler();
    imagePaintsByNodeIdAndProcess = /* @__PURE__ */ new Map();
    lcpRequestByNavigationId = /* @__PURE__ */ new Map();
    __name(reset20, "reset");
    __name(handleEvent20, "handleEvent");
    __name(finalize20, "finalize");
    __name(data20, "data");
    __name(deps11, "deps");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/LargestTextPaintHandler.js
var LargestTextPaintHandler_exports = {};
__export(LargestTextPaintHandler_exports, {
  data: () => data21,
  finalize: () => finalize21,
  handleEvent: () => handleEvent21,
  reset: () => reset21
});
function reset21() {
  textPaintByDOMNodeId = /* @__PURE__ */ new Map();
}
function handleEvent21(event) {
  if (!TraceEvents_exports.isLargestTextPaintCandidate(event)) {
    return;
  }
  if (!event.args.data) {
    return;
  }
  textPaintByDOMNodeId.set(event.args.data.DOMNodeId, event);
}
async function finalize21() {
}
function data21() {
  return textPaintByDOMNodeId;
}
var textPaintByDOMNodeId;
var init_LargestTextPaintHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/LargestTextPaintHandler.js"() {
    init_process_global();
    init_types2();
    textPaintByDOMNodeId = /* @__PURE__ */ new Map();
    __name(reset21, "reset");
    __name(handleEvent21, "handleEvent");
    __name(finalize21, "finalize");
    __name(data21, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/ScreenshotsHandler.js
var ScreenshotsHandler_exports = {};
__export(ScreenshotsHandler_exports, {
  data: () => data22,
  deps: () => deps12,
  finalize: () => finalize22,
  handleEvent: () => handleEvent22,
  reset: () => reset22,
  screenshotImageDataUri: () => screenshotImageDataUri
});
function reset22() {
  unpairedAsyncEvents = [];
  legacyScreenshotEvents = [];
  syntheticScreenshots = [];
  modernScreenshotEvents = [];
  frameSequenceToTs = {};
}
function handleEvent22(event) {
  if (TraceEvents_exports.isLegacyScreenshot(event)) {
    legacyScreenshotEvents.push(event);
  } else if (TraceEvents_exports.isScreenshot(event)) {
    modernScreenshotEvents.push(event);
  } else if (TraceEvents_exports.isPipelineReporter(event)) {
    unpairedAsyncEvents.push(event);
  }
}
async function finalize22() {
  const pipelineReporterEvents = Trace_exports.createMatchedSortedSyntheticEvents(unpairedAsyncEvents);
  frameSequenceToTs = Object.fromEntries(pipelineReporterEvents.map((evt) => {
    const args = evt.args.data.beginEvent.args;
    const frameReporter = "frame_reporter" in args ? args.frame_reporter : args.chrome_frame_reporter;
    const frameSequenceId = frameReporter.frame_sequence;
    const presentationTs = Timing_exports.Micro(evt.ts + evt.dur);
    return [frameSequenceId, presentationTs];
  }));
  for (const snapshotEvent of legacyScreenshotEvents) {
    const { cat, name, ph, pid, tid } = snapshotEvent;
    const syntheticEvent = SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent({
      rawSourceEvent: snapshotEvent,
      cat,
      name,
      ph,
      pid,
      tid,
      // TODO(paulirish, crbug.com/41363012): investigate why getPresentationTimestamp(snapshotEvent) seems less accurate. Resolve screenshot timing inaccuracy.
      // `getPresentationTimestamp(snapshotEvent) - snapshotEvent.ts` is how many microsec the screenshot should be adjusted to the right/later
      ts: snapshotEvent.ts,
      args: {
        dataUri: `data:image/jpg;base64,${snapshotEvent.args.snapshot}`
      }
    });
    syntheticScreenshots.push(syntheticEvent);
  }
}
function screenshotImageDataUri(event) {
  if (TraceEvents_exports.isLegacySyntheticScreenshot(event)) {
    return event.args.dataUri;
  }
  return `data:image/jpg;base64,${event.args.snapshot}`;
}
function data22() {
  return {
    legacySyntheticScreenshots: syntheticScreenshots.length ? syntheticScreenshots : null,
    screenshots: modernScreenshotEvents.length ? modernScreenshotEvents : null
  };
}
function deps12() {
  return ["Meta"];
}
var unpairedAsyncEvents, legacyScreenshotEvents, modernScreenshotEvents, syntheticScreenshots, frameSequenceToTs;
var init_ScreenshotsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/ScreenshotsHandler.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    unpairedAsyncEvents = [];
    legacyScreenshotEvents = [];
    modernScreenshotEvents = [];
    syntheticScreenshots = [];
    frameSequenceToTs = {};
    __name(reset22, "reset");
    __name(handleEvent22, "handleEvent");
    __name(finalize22, "finalize");
    __name(screenshotImageDataUri, "screenshotImageDataUri");
    __name(data22, "data");
    __name(deps12, "deps");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/LayoutShiftsHandler.js
var LayoutShiftsHandler_exports = {};
__export(LayoutShiftsHandler_exports, {
  LayoutShiftsThreshold: () => LayoutShiftsThreshold,
  MAX_CLUSTER_DURATION: () => MAX_CLUSTER_DURATION,
  MAX_SHIFT_TIME_DELTA: () => MAX_SHIFT_TIME_DELTA,
  data: () => data23,
  deps: () => deps13,
  finalize: () => finalize23,
  handleEvent: () => handleEvent23,
  reset: () => reset23,
  scoreClassificationForLayoutShift: () => scoreClassificationForLayoutShift
});
function reset23() {
  layoutShiftEvents = [];
  layoutInvalidationEvents = [];
  scheduleStyleInvalidationEvents = [];
  styleRecalcInvalidationEvents = [];
  prePaintEvents = [];
  paintImageEvents2 = [];
  renderFrameImplCreateChildFrameEvents = [];
  layoutImageUnsizedEvents = [];
  domLoadingEvents = [];
  remoteFonts = [];
  backendNodeIds = /* @__PURE__ */ new Set();
  clusters = [];
  sessionMaxScore = 0;
  scoreRecords = [];
  clsWindowID = -1;
  clustersByNavigationId = /* @__PURE__ */ new Map();
}
function handleEvent23(event) {
  if (TraceEvents_exports.isLayoutShift(event) && !event.args.data?.had_recent_input) {
    layoutShiftEvents.push(event);
    return;
  }
  if (TraceEvents_exports.isLayoutInvalidationTracking(event)) {
    layoutInvalidationEvents.push(event);
    return;
  }
  if (TraceEvents_exports.isScheduleStyleInvalidationTracking(event)) {
    scheduleStyleInvalidationEvents.push(event);
  }
  if (TraceEvents_exports.isStyleRecalcInvalidationTracking(event)) {
    styleRecalcInvalidationEvents.push(event);
  }
  if (TraceEvents_exports.isPrePaint(event)) {
    prePaintEvents.push(event);
    return;
  }
  if (TraceEvents_exports.isRenderFrameImplCreateChildFrame(event)) {
    renderFrameImplCreateChildFrameEvents.push(event);
  }
  if (TraceEvents_exports.isDomLoading(event)) {
    domLoadingEvents.push(event);
  }
  if (TraceEvents_exports.isLayoutImageUnsized(event)) {
    layoutImageUnsizedEvents.push(event);
  }
  if (TraceEvents_exports.isBeginRemoteFontLoad(event)) {
    remoteFonts.push({
      display: event.args.display,
      url: event.args.url,
      beginRemoteFontLoadEvent: event
    });
  }
  if (TraceEvents_exports.isRemoteFontLoaded(event)) {
    for (const remoteFont of remoteFonts) {
      if (remoteFont.url === event.args.url) {
        remoteFont.name = event.args.name;
      }
    }
  }
  if (TraceEvents_exports.isPaintImage(event)) {
    paintImageEvents2.push(event);
  }
}
function traceWindowFromTime(time) {
  return {
    min: time,
    max: time,
    range: Timing_exports.Micro(0)
  };
}
function updateTraceWindowMax(traceWindow, newMax) {
  traceWindow.max = newMax;
  traceWindow.range = Timing_exports.Micro(traceWindow.max - traceWindow.min);
}
function findScreenshots(timestamp) {
  const data31 = data22();
  if (data31.screenshots) {
    const before = Trace_exports.findPreviousEventBeforeTimestamp(data31.screenshots, timestamp);
    const after = before ? data31.screenshots[data31.screenshots.indexOf(before) + 1] : null;
    return { before, after };
  }
  if (data31.legacySyntheticScreenshots) {
    const before = Trace_exports.findPreviousEventBeforeTimestamp(data31.legacySyntheticScreenshots, timestamp);
    const after = before ? data31.legacySyntheticScreenshots[data31.legacySyntheticScreenshots.indexOf(before) + 1] : null;
    return { before, after };
  }
  return { before: null, after: null };
}
function buildScoreRecords() {
  const { traceBounds: traceBounds2 } = data5();
  scoreRecords.push({ ts: traceBounds2.min, score: 0 });
  for (const cluster of clusters) {
    let clusterScore = 0;
    if (cluster.events[0].args.data) {
      scoreRecords.push({ ts: cluster.clusterWindow.min, score: cluster.events[0].args.data.weighted_score_delta });
    }
    for (let i = 0; i < cluster.events.length; i++) {
      const event = cluster.events[i];
      if (!event.args.data) {
        continue;
      }
      clusterScore += event.args.data.weighted_score_delta;
      scoreRecords.push({ ts: event.ts, score: clusterScore });
    }
    scoreRecords.push({ ts: cluster.clusterWindow.max, score: 0 });
  }
}
function collectNodes() {
  backendNodeIds.clear();
  for (const layoutShift of layoutShiftEvents) {
    if (!layoutShift.args.data?.impacted_nodes) {
      continue;
    }
    for (const node of layoutShift.args.data.impacted_nodes) {
      backendNodeIds.add(node.node_id);
    }
  }
  for (const layoutInvalidation of layoutInvalidationEvents) {
    if (!layoutInvalidation.args.data?.nodeId) {
      continue;
    }
    backendNodeIds.add(layoutInvalidation.args.data.nodeId);
  }
  for (const scheduleStyleInvalidation of scheduleStyleInvalidationEvents) {
    if (!scheduleStyleInvalidation.args.data?.nodeId) {
      continue;
    }
    backendNodeIds.add(scheduleStyleInvalidation.args.data.nodeId);
  }
}
async function finalize23() {
  layoutShiftEvents.sort((a, b) => a.ts - b.ts);
  prePaintEvents.sort((a, b) => a.ts - b.ts);
  layoutInvalidationEvents.sort((a, b) => a.ts - b.ts);
  renderFrameImplCreateChildFrameEvents.sort((a, b) => a.ts - b.ts);
  domLoadingEvents.sort((a, b) => a.ts - b.ts);
  layoutImageUnsizedEvents.sort((a, b) => a.ts - b.ts);
  remoteFonts.sort((a, b) => a.beginRemoteFontLoadEvent.ts - b.beginRemoteFontLoadEvent.ts);
  paintImageEvents2.sort((a, b) => a.ts - b.ts);
  await buildLayoutShiftsClusters();
  buildScoreRecords();
  collectNodes();
}
async function buildLayoutShiftsClusters() {
  const { navigationsByFrameId: navigationsByFrameId2, mainFrameId: mainFrameId2, traceBounds: traceBounds2 } = data5();
  const navigations = navigationsByFrameId2.get(mainFrameId2) || [];
  if (layoutShiftEvents.length === 0) {
    return;
  }
  let firstShiftTime = layoutShiftEvents[0].ts;
  let lastShiftTime = layoutShiftEvents[0].ts;
  let lastShiftNavigation = null;
  for (const event of layoutShiftEvents) {
    const clusterDurationExceeded = event.ts - firstShiftTime > MAX_CLUSTER_DURATION;
    const maxTimeDeltaSinceLastShiftExceeded = event.ts - lastShiftTime > MAX_SHIFT_TIME_DELTA;
    const currentShiftNavigation = ArrayUtilities_exports.nearestIndexFromEnd(navigations, (nav) => nav.ts < event.ts);
    const hasNavigated = lastShiftNavigation !== currentShiftNavigation && currentShiftNavigation !== null;
    if (clusterDurationExceeded || maxTimeDeltaSinceLastShiftExceeded || hasNavigated || !clusters.length) {
      const clusterStartTime = event.ts;
      const endTimeByMaxSessionDuration = clusterDurationExceeded ? firstShiftTime + MAX_CLUSTER_DURATION : Infinity;
      const endTimeByMaxShiftGap = maxTimeDeltaSinceLastShiftExceeded ? lastShiftTime + MAX_SHIFT_TIME_DELTA : Infinity;
      const endTimeByNavigation = hasNavigated ? navigations[currentShiftNavigation].ts : Infinity;
      const previousClusterEndTime = Math.min(endTimeByMaxSessionDuration, endTimeByMaxShiftGap, endTimeByNavigation);
      if (clusters.length > 0) {
        const currentCluster2 = clusters[clusters.length - 1];
        updateTraceWindowMax(currentCluster2.clusterWindow, Timing_exports.Micro(previousClusterEndTime));
      }
      const navigationId = currentShiftNavigation === null ? TraceEvents_exports.NO_NAVIGATION : navigations[currentShiftNavigation].args.data?.navigationId;
      clusters.push(SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent({
        name: "SyntheticLayoutShiftCluster",
        // Will be replaced by the worst layout shift in the next for loop.
        rawSourceEvent: event,
        events: [],
        clusterWindow: traceWindowFromTime(clusterStartTime),
        clusterCumulativeScore: 0,
        scoreWindows: {
          good: traceWindowFromTime(clusterStartTime)
        },
        navigationId,
        // Set default Event so that this event is treated accordingly for the track appender.
        ts: event.ts,
        pid: event.pid,
        tid: event.tid,
        ph: TraceEvents_exports.Phase.COMPLETE,
        cat: "",
        dur: Timing_exports.Micro(-1)
        // This `cluster.dur` is updated below.
      }));
      firstShiftTime = clusterStartTime;
    }
    const currentCluster = clusters[clusters.length - 1];
    const timeFromNavigation = currentShiftNavigation !== null ? Timing_exports.Micro(event.ts - navigations[currentShiftNavigation].ts) : void 0;
    currentCluster.clusterCumulativeScore += event.args.data ? event.args.data.weighted_score_delta : 0;
    if (!event.args.data) {
      continue;
    }
    const shift = SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent({
      rawSourceEvent: event,
      ...event,
      name: TraceEvents_exports.Name.SYNTHETIC_LAYOUT_SHIFT,
      args: {
        frame: event.args.frame,
        data: {
          ...event.args.data,
          rawEvent: event,
          navigationId: currentCluster.navigationId ?? void 0
        }
      },
      parsedData: {
        timeFromNavigation,
        screenshots: findScreenshots(event.ts),
        cumulativeWeightedScoreInWindow: currentCluster.clusterCumulativeScore,
        // The score of the session window is temporarily set to 0 just
        // to initialize it. Since we need to get the score of all shifts
        // in the session window to determine its value, its definite
        // value is set when stepping through the built clusters.
        sessionWindowData: { cumulativeWindowScore: 0, id: clusters.length }
      }
    });
    currentCluster.events.push(shift);
    updateTraceWindowMax(currentCluster.clusterWindow, event.ts);
    lastShiftTime = event.ts;
    lastShiftNavigation = currentShiftNavigation;
  }
  for (const cluster of clusters) {
    let weightedScore = 0;
    let windowID = -1;
    if (cluster === clusters[clusters.length - 1]) {
      const clusterEndByMaxDuration = MAX_CLUSTER_DURATION + cluster.clusterWindow.min;
      const clusterEndByMaxGap = cluster.clusterWindow.max + MAX_SHIFT_TIME_DELTA;
      const nextNavigationIndex = ArrayUtilities_exports.nearestIndexFromBeginning(navigations, (nav) => nav.ts > cluster.clusterWindow.max);
      const nextNavigationTime = nextNavigationIndex ? navigations[nextNavigationIndex].ts : Infinity;
      const clusterEnd = Math.min(clusterEndByMaxDuration, clusterEndByMaxGap, traceBounds2.max, nextNavigationTime);
      updateTraceWindowMax(cluster.clusterWindow, Timing_exports.Micro(clusterEnd));
    }
    let largestScore = 0;
    let worstShiftEvent = null;
    for (const shift of cluster.events) {
      weightedScore += shift.args.data ? shift.args.data.weighted_score_delta : 0;
      windowID = shift.parsedData.sessionWindowData.id;
      const ts = shift.ts;
      shift.parsedData.sessionWindowData.cumulativeWindowScore = cluster.clusterCumulativeScore;
      if (weightedScore < LayoutShiftsThreshold.NEEDS_IMPROVEMENT) {
        updateTraceWindowMax(cluster.scoreWindows.good, ts);
      } else if (weightedScore >= LayoutShiftsThreshold.NEEDS_IMPROVEMENT && weightedScore < LayoutShiftsThreshold.BAD) {
        if (!cluster.scoreWindows.needsImprovement) {
          updateTraceWindowMax(cluster.scoreWindows.good, Timing_exports.Micro(ts - 1));
          cluster.scoreWindows.needsImprovement = traceWindowFromTime(ts);
        }
        updateTraceWindowMax(cluster.scoreWindows.needsImprovement, ts);
      } else if (weightedScore >= LayoutShiftsThreshold.BAD) {
        if (!cluster.scoreWindows.bad) {
          if (cluster.scoreWindows.needsImprovement) {
            updateTraceWindowMax(cluster.scoreWindows.needsImprovement, Timing_exports.Micro(ts - 1));
          } else {
            updateTraceWindowMax(cluster.scoreWindows.good, Timing_exports.Micro(ts - 1));
          }
          cluster.scoreWindows.bad = traceWindowFromTime(shift.ts);
        }
        updateTraceWindowMax(cluster.scoreWindows.bad, ts);
      }
      if (cluster.scoreWindows.bad) {
        updateTraceWindowMax(cluster.scoreWindows.bad, cluster.clusterWindow.max);
      } else if (cluster.scoreWindows.needsImprovement) {
        updateTraceWindowMax(cluster.scoreWindows.needsImprovement, cluster.clusterWindow.max);
      } else {
        updateTraceWindowMax(cluster.scoreWindows.good, cluster.clusterWindow.max);
      }
      const score = shift.args.data?.weighted_score_delta;
      if (score !== void 0 && score > largestScore) {
        largestScore = score;
        worstShiftEvent = shift;
      }
    }
    if (worstShiftEvent) {
      cluster.worstShiftEvent = worstShiftEvent;
      cluster.rawSourceEvent = worstShiftEvent.rawSourceEvent;
    }
    cluster.ts = cluster.events[0].ts;
    const lastShiftTimings = Timing_exports3.eventTimingsMicroSeconds(cluster.events[cluster.events.length - 1]);
    cluster.dur = Timing_exports.Micro(lastShiftTimings.endTime - cluster.events[0].ts + MAX_SHIFT_TIME_DELTA);
    if (weightedScore > sessionMaxScore) {
      clsWindowID = windowID;
      sessionMaxScore = weightedScore;
    }
    if (cluster.navigationId) {
      const clustersForId = MapUtilities_exports.getWithDefault(clustersByNavigationId, cluster.navigationId, () => {
        return [];
      });
      clustersForId.push(cluster);
    }
  }
}
function data23() {
  return {
    clusters,
    sessionMaxScore,
    clsWindowID,
    prePaintEvents,
    layoutInvalidationEvents,
    scheduleStyleInvalidationEvents,
    styleRecalcInvalidationEvents,
    renderFrameImplCreateChildFrameEvents,
    domLoadingEvents,
    layoutImageUnsizedEvents,
    remoteFonts,
    scoreRecords,
    backendNodeIds,
    clustersByNavigationId,
    paintImageEvents: paintImageEvents2
  };
}
function deps13() {
  return ["Screenshots", "Meta"];
}
function scoreClassificationForLayoutShift(score) {
  let state = ScoreClassification.GOOD;
  if (score >= LayoutShiftsThreshold.NEEDS_IMPROVEMENT) {
    state = ScoreClassification.OK;
  }
  if (score >= LayoutShiftsThreshold.BAD) {
    state = ScoreClassification.BAD;
  }
  return state;
}
var MAX_CLUSTER_DURATION, MAX_SHIFT_TIME_DELTA, layoutShiftEvents, layoutInvalidationEvents, scheduleStyleInvalidationEvents, styleRecalcInvalidationEvents, renderFrameImplCreateChildFrameEvents, domLoadingEvents, layoutImageUnsizedEvents, remoteFonts, backendNodeIds, prePaintEvents, paintImageEvents2, sessionMaxScore, clsWindowID, clusters, clustersByNavigationId, scoreRecords, LayoutShiftsThreshold;
var init_LayoutShiftsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/LayoutShiftsHandler.js"() {
    init_process_global();
    init_platform();
    init_helpers2();
    init_types2();
    init_MetaHandler();
    init_PageLoadMetricsHandler();
    init_ScreenshotsHandler();
    MAX_CLUSTER_DURATION = Timing_exports3.milliToMicro(Timing_exports.Milli(5e3));
    MAX_SHIFT_TIME_DELTA = Timing_exports3.milliToMicro(Timing_exports.Milli(1e3));
    layoutShiftEvents = [];
    layoutInvalidationEvents = [];
    scheduleStyleInvalidationEvents = [];
    styleRecalcInvalidationEvents = [];
    renderFrameImplCreateChildFrameEvents = [];
    domLoadingEvents = [];
    layoutImageUnsizedEvents = [];
    remoteFonts = [];
    backendNodeIds = /* @__PURE__ */ new Set();
    prePaintEvents = [];
    paintImageEvents2 = [];
    sessionMaxScore = 0;
    clsWindowID = -1;
    clusters = [];
    clustersByNavigationId = /* @__PURE__ */ new Map();
    scoreRecords = [];
    __name(reset23, "reset");
    __name(handleEvent23, "handleEvent");
    __name(traceWindowFromTime, "traceWindowFromTime");
    __name(updateTraceWindowMax, "updateTraceWindowMax");
    __name(findScreenshots, "findScreenshots");
    __name(buildScoreRecords, "buildScoreRecords");
    __name(collectNodes, "collectNodes");
    __name(finalize23, "finalize");
    __name(buildLayoutShiftsClusters, "buildLayoutShiftsClusters");
    __name(data23, "data");
    __name(deps13, "deps");
    __name(scoreClassificationForLayoutShift, "scoreClassificationForLayoutShift");
    (function(LayoutShiftsThreshold2) {
      LayoutShiftsThreshold2[LayoutShiftsThreshold2["GOOD"] = 0] = "GOOD";
      LayoutShiftsThreshold2[LayoutShiftsThreshold2["NEEDS_IMPROVEMENT"] = 0.1] = "NEEDS_IMPROVEMENT";
      LayoutShiftsThreshold2[LayoutShiftsThreshold2["BAD"] = 0.25] = "BAD";
    })(LayoutShiftsThreshold || (LayoutShiftsThreshold = {}));
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/MemoryHandler.js
var MemoryHandler_exports = {};
__export(MemoryHandler_exports, {
  data: () => data24,
  finalize: () => finalize24,
  handleEvent: () => handleEvent24,
  reset: () => reset24
});
function reset24() {
  updateCountersByProcess = /* @__PURE__ */ new Map();
}
function handleEvent24(event) {
  if (TraceEvents_exports.isUpdateCounters(event)) {
    const countersForProcess = MapUtilities_exports.getWithDefault(updateCountersByProcess, event.pid, () => []);
    countersForProcess.push(event);
    updateCountersByProcess.set(event.pid, countersForProcess);
  }
}
async function finalize24() {
}
function data24() {
  return { updateCountersByProcess };
}
var updateCountersByProcess;
var init_MemoryHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/MemoryHandler.js"() {
    init_process_global();
    init_platform();
    init_types2();
    updateCountersByProcess = /* @__PURE__ */ new Map();
    __name(reset24, "reset");
    __name(handleEvent24, "handleEvent");
    __name(finalize24, "finalize");
    __name(data24, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/PageFramesHandler.js
var PageFramesHandler_exports = {};
__export(PageFramesHandler_exports, {
  data: () => data25,
  finalize: () => finalize25,
  handleEvent: () => handleEvent25,
  reset: () => reset25
});
function reset25() {
  frames = /* @__PURE__ */ new Map();
}
function handleEvent25(event) {
  if (TraceEvents_exports.isTracingStartedInBrowser(event)) {
    for (const frame of event.args.data?.frames ?? []) {
      frames.set(frame.frame, frame);
    }
    return;
  }
  if (TraceEvents_exports.isCommitLoad(event)) {
    const frameData = event.args.data;
    if (!frameData) {
      return;
    }
    const frame = frames.get(frameData.frame);
    if (!frame) {
      return;
    }
    frames.set(frameData.frame, {
      ...frame,
      url: frameData.url || frame.url,
      name: frameData.name || frameData.name
    });
  }
}
async function finalize25() {
}
function data25() {
  return {
    frames
  };
}
var frames;
var init_PageFramesHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/PageFramesHandler.js"() {
    init_process_global();
    init_types2();
    frames = /* @__PURE__ */ new Map();
    __name(reset25, "reset");
    __name(handleEvent25, "handleEvent");
    __name(finalize25, "finalize");
    __name(data25, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/ScriptsHandler.js
var ScriptsHandler_exports = {};
__export(ScriptsHandler_exports, {
  data: () => data26,
  deps: () => deps14,
  finalize: () => finalize26,
  getScriptGeneratedSizes: () => getScriptGeneratedSizes,
  handleEvent: () => handleEvent26,
  reset: () => reset26
});
function completeURL(base, url) {
  if (url.startsWith("data:") || url.startsWith("blob:") || url.startsWith("javascript:") || url.startsWith("mailto:")) {
    return url;
  }
  try {
    return new URL(url, base).href;
  } catch {
  }
  return null;
}
function deps14() {
  return ["Meta", "NetworkRequests"];
}
function reset26() {
  scriptById = /* @__PURE__ */ new Map();
  frameIdByIsolate = /* @__PURE__ */ new Map();
}
function handleEvent26(event) {
  const getOrMakeScript = /* @__PURE__ */ __name((isolate, scriptIdAsNumber) => {
    const scriptId = String(scriptIdAsNumber);
    const key = `${isolate}.${scriptId}`;
    return MapUtilities_exports.getWithDefault(scriptById, key, () => ({ isolate, scriptId, frame: "", ts: event.ts }));
  }, "getOrMakeScript");
  if (TraceEvents_exports.isRundownScriptCompiled(event) && event.args.data) {
    const { isolate, scriptId, frame } = event.args.data;
    const script = getOrMakeScript(isolate, scriptId);
    script.frame = frame;
    script.ts = event.ts;
    return;
  }
  if (TraceEvents_exports.isRundownScript(event)) {
    const { isolate, scriptId, url, sourceUrl, sourceMapUrl, sourceMapUrlElided } = event.args.data;
    const script = getOrMakeScript(isolate, scriptId);
    if (!script.frame) {
      script.frame = frameIdByIsolate.get(String(isolate)) ?? "";
    }
    script.url = url;
    script.ts = event.ts;
    if (sourceUrl) {
      script.sourceUrl = sourceUrl;
    }
    if (sourceMapUrlElided) {
      script.sourceMapUrlElided = true;
    } else if (sourceMapUrl) {
      script.sourceMapUrl = sourceMapUrl;
    }
    return;
  }
  if (TraceEvents_exports.isRundownScriptSource(event)) {
    const { isolate, scriptId, sourceText } = event.args.data;
    const script = getOrMakeScript(isolate, scriptId);
    script.content = sourceText;
    return;
  }
  if (TraceEvents_exports.isRundownScriptSourceLarge(event)) {
    const { isolate, scriptId, sourceText } = event.args.data;
    const script = getOrMakeScript(isolate, scriptId);
    script.content = (script.content ?? "") + sourceText;
    return;
  }
  if (TraceEvents_exports.isFunctionCall(event) && event.args.data?.isolate && event.args.data.frame) {
    const { isolate, frame } = event.args.data;
    const existingValue = frameIdByIsolate.get(isolate);
    if (existingValue !== frame) {
      frameIdByIsolate.set(isolate, frame);
      for (const script of scriptById.values()) {
        if (!script.frame && script.isolate === isolate) {
          script.frame = frame;
        }
      }
    }
  }
}
function findFrame(meta, frameId) {
  for (const frames2 of meta.frameByProcessId?.values()) {
    const frame = frames2.get(frameId);
    if (frame) {
      return frame;
    }
  }
  return null;
}
function findNetworkRequest(networkRequests, script) {
  if (!script.url) {
    return null;
  }
  return networkRequests.find((request) => request.args.data.url === script.url) ?? null;
}
function computeMappingEndColumns(map) {
  const result = /* @__PURE__ */ new Map();
  const mappings = map.mappings();
  for (let i = 0; i < mappings.length - 1; i++) {
    const mapping = mappings[i];
    const nextMapping = mappings[i + 1];
    if (mapping.lineNumber === nextMapping.lineNumber) {
      result.set(mapping, nextMapping.columnNumber);
    }
  }
  return result;
}
function computeGeneratedFileSizes(script) {
  if (!script.sourceMap) {
    throw new Error("expected source map");
  }
  const map = script.sourceMap;
  const content = script.content ?? "";
  const contentLength = content.length;
  const lines = content.split("\n");
  const files = {};
  const totalBytes = contentLength;
  let unmappedBytes = totalBytes;
  const mappingEndCols = computeMappingEndColumns(script.sourceMap);
  for (const mapping of map.mappings()) {
    const source = mapping.sourceURL;
    const lineNum = mapping.lineNumber;
    const colNum = mapping.columnNumber;
    const lastColNum = mappingEndCols.get(mapping);
    if (!source) {
      continue;
    }
    const line = lines[lineNum];
    if (line === null || line === void 0) {
      const errorMessage = `${map.url()} mapping for line out of bounds: ${lineNum + 1}`;
      return { errorMessage };
    }
    if (colNum > line.length) {
      const errorMessage = `${map.url()} mapping for column out of bounds: ${lineNum + 1}:${colNum}`;
      return { errorMessage };
    }
    let mappingLength = 0;
    if (lastColNum !== void 0) {
      if (lastColNum > line.length) {
        const errorMessage = `${map.url()} mapping for last column out of bounds: ${lineNum + 1}:${lastColNum}`;
        return { errorMessage };
      }
      mappingLength = lastColNum - colNum;
    } else {
      mappingLength = line.length - colNum + 1;
    }
    files[source] = (files[source] || 0) + mappingLength;
    unmappedBytes -= mappingLength;
  }
  return {
    files,
    unmappedBytes,
    totalBytes
  };
}
function getScriptGeneratedSizes(script) {
  if (script.sourceMap && !script.sizes) {
    script.sizes = computeGeneratedFileSizes(script);
  }
  return script.sizes ?? null;
}
function findCachedRawSourceMap(script, options) {
  if (options.isFreshRecording || !options.metadata?.sourceMaps) {
    return;
  }
  if (script.sourceMapUrlElided) {
    if (!script.url) {
      return;
    }
    const cachedSourceMap = options.metadata.sourceMaps.find((m) => m.url === script.url);
    if (cachedSourceMap) {
      return cachedSourceMap.sourceMap;
    }
    return;
  }
  if (!script.sourceMapUrl) {
    return;
  }
  const isDataUrl = script.sourceMapUrl.startsWith("data:");
  if (!isDataUrl) {
    const cachedSourceMap = options.metadata.sourceMaps.find((m) => m.sourceMapUrl === script.sourceMapUrl);
    if (cachedSourceMap) {
      return cachedSourceMap.sourceMap;
    }
  }
  return;
}
async function finalize26(options) {
  const meta = data5();
  const networkRequests = [...data6().byId.values()];
  const documentUrls = /* @__PURE__ */ new Set();
  for (const frames2 of meta.frameByProcessId.values()) {
    for (const frame of frames2.values()) {
      documentUrls.add(frame.url);
    }
  }
  for (const script of scriptById.values()) {
    script.request = findNetworkRequest(networkRequests, script) ?? void 0;
    script.inline = !!script.url && documentUrls.has(script.url);
  }
  if (!options.resolveSourceMap) {
    return;
  }
  const promises = [];
  for (const script of scriptById.values()) {
    if (!script.frame || !script.url || !script.sourceMapUrl && !script.sourceMapUrlElided) {
      continue;
    }
    const frameUrl = findFrame(meta, script.frame)?.url;
    if (!frameUrl) {
      continue;
    }
    let sourceUrl = script.url;
    if (script.sourceUrl) {
      sourceUrl = completeURL(frameUrl, script.sourceUrl) ?? script.sourceUrl;
    }
    let sourceMapUrl;
    if (script.sourceMapUrl) {
      sourceMapUrl = completeURL(sourceUrl, script.sourceMapUrl);
      if (!sourceMapUrl) {
        continue;
      }
      script.sourceMapUrl = sourceMapUrl;
    }
    const params = {
      scriptId: script.scriptId,
      scriptUrl: script.url,
      sourceUrl,
      sourceMapUrl: sourceMapUrl ?? "",
      frame: script.frame,
      cachedRawSourceMap: findCachedRawSourceMap(script, options)
    };
    const promise = options.resolveSourceMap(params).then((sourceMap) => {
      if (sourceMap) {
        script.sourceMap = sourceMap;
      }
    });
    promises.push(promise.catch((e) => {
      console.error("Uncaught error when resolving source map", params, e);
    }));
  }
  await Promise.all(promises);
}
function data26() {
  return {
    scripts: [...scriptById.values()]
  };
}
var scriptById, frameIdByIsolate;
var init_ScriptsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/ScriptsHandler.js"() {
    init_process_global();
    init_platform();
    init_types2();
    init_MetaHandler();
    init_NetworkRequestsHandler();
    __name(completeURL, "completeURL");
    scriptById = /* @__PURE__ */ new Map();
    frameIdByIsolate = /* @__PURE__ */ new Map();
    __name(deps14, "deps");
    __name(reset26, "reset");
    __name(handleEvent26, "handleEvent");
    __name(findFrame, "findFrame");
    __name(findNetworkRequest, "findNetworkRequest");
    __name(computeMappingEndColumns, "computeMappingEndColumns");
    __name(computeGeneratedFileSizes, "computeGeneratedFileSizes");
    __name(getScriptGeneratedSizes, "getScriptGeneratedSizes");
    __name(findCachedRawSourceMap, "findCachedRawSourceMap");
    __name(finalize26, "finalize");
    __name(data26, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/SelectorStatsHandler.js
var SelectorStatsHandler_exports = {};
__export(SelectorStatsHandler_exports, {
  data: () => data27,
  finalize: () => finalize27,
  handleEvent: () => handleEvent27,
  reset: () => reset27
});
function reset27() {
  lastRecalcStyleEvent = null;
  lastInvalidatedNode = null;
  selectorDataForRecalcStyle = /* @__PURE__ */ new Map();
  invalidatedNodeList = [];
}
function handleEvent27(event) {
  if (TraceEvents_exports.isStyleRecalcInvalidationTracking(event)) {
    if (event.args.data.subtree && event.args.data.reason === TraceEvents_exports.StyleRecalcInvalidationReason.RELATED_STYLE_RULE && lastInvalidatedNode && event.args.data.nodeId === lastInvalidatedNode.backendNodeId) {
      lastInvalidatedNode.subtree = true;
      return;
    }
  }
  if (TraceEvents_exports.isSelectorStats(event) && lastRecalcStyleEvent && event.args.selector_stats) {
    selectorDataForRecalcStyle.set(lastRecalcStyleEvent, {
      timings: event.args.selector_stats.selector_timings
    });
    return;
  }
  if (TraceEvents_exports.isStyleInvalidatorInvalidationTracking(event)) {
    const selectorList = new Array();
    event.args.data.selectors?.forEach((selector) => {
      selectorList.push({
        selector: selector.selector,
        styleSheetId: selector.style_sheet_id
      });
    });
    if (selectorList.length > 0) {
      lastInvalidatedNode = {
        frame: event.args.data.frame,
        backendNodeId: event.args.data.nodeId,
        type: TraceEvents_exports.InvalidationEventType.StyleInvalidatorInvalidationTracking,
        selectorList,
        ts: event.ts,
        tts: event.tts,
        subtree: false,
        lastRecalcStyleEventTs: lastRecalcStyleEvent ? lastRecalcStyleEvent.ts : Timing_exports.Micro(0)
      };
      invalidatedNodeList.push(lastInvalidatedNode);
    }
  }
  if (TraceEvents_exports.isRecalcStyle(event)) {
    lastRecalcStyleEvent = event;
    return;
  }
}
async function finalize27() {
}
function data27() {
  return {
    dataForRecalcStyleEvent: selectorDataForRecalcStyle,
    invalidatedNodeList
  };
}
var lastRecalcStyleEvent, lastInvalidatedNode, selectorDataForRecalcStyle, invalidatedNodeList;
var init_SelectorStatsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/SelectorStatsHandler.js"() {
    init_process_global();
    init_types2();
    lastRecalcStyleEvent = null;
    lastInvalidatedNode = null;
    selectorDataForRecalcStyle = /* @__PURE__ */ new Map();
    invalidatedNodeList = new Array();
    __name(reset27, "reset");
    __name(handleEvent27, "handleEvent");
    __name(finalize27, "finalize");
    __name(data27, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/UserInteractionsHandler.js
var UserInteractionsHandler_exports = {};
__export(UserInteractionsHandler_exports, {
  LONG_INTERACTION_THRESHOLD: () => LONG_INTERACTION_THRESHOLD,
  categoryOfInteraction: () => categoryOfInteraction,
  data: () => data28,
  deps: () => deps15,
  finalize: () => finalize28,
  handleEvent: () => handleEvent28,
  removeNestedInteractionsAndSetProcessingTime: () => removeNestedInteractionsAndSetProcessingTime,
  reset: () => reset28,
  scoreClassificationForInteractionToNextPaint: () => scoreClassificationForInteractionToNextPaint
});
function reset28() {
  beginCommitCompositorFrameEvents = [];
  parseMetaViewportEvents = [];
  interactionEvents = [];
  eventTimingStartEventsForInteractions = [];
  eventTimingEndEventsForInteractions = [];
  interactionEventsWithNoNesting = [];
  longestInteractionEvent = null;
}
function handleEvent28(event) {
  if (TraceEvents_exports.isBeginCommitCompositorFrame(event)) {
    beginCommitCompositorFrameEvents.push(event);
    return;
  }
  if (TraceEvents_exports.isParseMetaViewport(event)) {
    parseMetaViewportEvents.push(event);
    return;
  }
  if (!TraceEvents_exports.isEventTiming(event)) {
    return;
  }
  if (TraceEvents_exports.isEventTimingEnd(event)) {
    eventTimingEndEventsForInteractions.push(event);
  }
  if (!event.args.data || !TraceEvents_exports.isEventTimingStart(event)) {
    return;
  }
  const { duration, interactionId } = event.args.data;
  if (duration < 1 || interactionId === void 0 || interactionId === 0) {
    return;
  }
  eventTimingStartEventsForInteractions.push(event);
}
function categoryOfInteraction(interaction) {
  if (pointerEventTypes.has(interaction.type)) {
    return "POINTER";
  }
  if (keyboardEventTypes.has(interaction.type)) {
    return "KEYBOARD";
  }
  return "OTHER";
}
function removeNestedInteractionsAndSetProcessingTime(interactions) {
  const earliestEventForEndTimePerCategory = {
    POINTER: /* @__PURE__ */ new Map(),
    KEYBOARD: /* @__PURE__ */ new Map(),
    OTHER: /* @__PURE__ */ new Map()
  };
  function storeEventIfEarliestForCategoryAndEndTime(interaction) {
    const category = categoryOfInteraction(interaction);
    const earliestEventForEndTime = earliestEventForEndTimePerCategory[category];
    const endTime = Timing_exports.Micro(interaction.ts + interaction.dur);
    const earliestCurrentEvent = earliestEventForEndTime.get(endTime);
    if (!earliestCurrentEvent) {
      earliestEventForEndTime.set(endTime, interaction);
      return;
    }
    if (interaction.ts < earliestCurrentEvent.ts) {
      earliestEventForEndTime.set(endTime, interaction);
    } else if (interaction.ts === earliestCurrentEvent.ts && interaction.interactionId === earliestCurrentEvent.interactionId) {
      const currentProcessingDuration = earliestCurrentEvent.processingEnd - earliestCurrentEvent.processingStart;
      const newProcessingDuration = interaction.processingEnd - interaction.processingStart;
      if (newProcessingDuration > currentProcessingDuration) {
        earliestEventForEndTime.set(endTime, interaction);
      }
    }
    if (interaction.processingStart < earliestCurrentEvent.processingStart) {
      earliestCurrentEvent.processingStart = interaction.processingStart;
      writeSyntheticTimespans(earliestCurrentEvent);
    }
    if (interaction.processingEnd > earliestCurrentEvent.processingEnd) {
      earliestCurrentEvent.processingEnd = interaction.processingEnd;
      writeSyntheticTimespans(earliestCurrentEvent);
    }
  }
  __name(storeEventIfEarliestForCategoryAndEndTime, "storeEventIfEarliestForCategoryAndEndTime");
  for (const interaction of interactions) {
    storeEventIfEarliestForCategoryAndEndTime(interaction);
  }
  const keptEvents = Object.values(earliestEventForEndTimePerCategory).flatMap((eventsByEndTime) => Array.from(eventsByEndTime.values()));
  keptEvents.sort((eventA, eventB) => {
    return eventA.ts - eventB.ts;
  });
  return keptEvents;
}
function writeSyntheticTimespans(event) {
  const startEvent = event.args.data.beginEvent;
  const endEvent = event.args.data.endEvent;
  event.inputDelay = Timing_exports.Micro(event.processingStart - startEvent.ts);
  event.mainThreadHandling = Timing_exports.Micro(event.processingEnd - event.processingStart);
  event.presentationDelay = Timing_exports.Micro(endEvent.ts - event.processingEnd);
}
async function finalize28() {
  const { navigationsByFrameId: navigationsByFrameId2 } = data5();
  const beginAndEndEvents = ArrayUtilities_exports.mergeOrdered(eventTimingStartEventsForInteractions, eventTimingEndEventsForInteractions, Trace_exports.eventTimeComparator);
  const beginEventById = /* @__PURE__ */ new Map();
  for (const event of beginAndEndEvents) {
    if (TraceEvents_exports.isEventTimingStart(event)) {
      const forId = beginEventById.get(event.id) ?? [];
      forId.push(event);
      beginEventById.set(event.id, forId);
    } else if (TraceEvents_exports.isEventTimingEnd(event)) {
      const beginEvents = beginEventById.get(event.id) ?? [];
      const beginEvent = beginEvents.pop();
      if (!beginEvent) {
        continue;
      }
      const { type, interactionId, timeStamp, processingStart, processingEnd } = beginEvent.args.data;
      if (!type || !interactionId || !timeStamp || !processingStart || !processingEnd) {
        continue;
      }
      const processingStartRelativeToTraceTime = Timing_exports.Micro(Timing_exports3.milliToMicro(processingStart) - Timing_exports3.milliToMicro(timeStamp) + beginEvent.ts);
      const processingEndRelativeToTraceTime = Timing_exports.Micro(Timing_exports3.milliToMicro(processingEnd) - Timing_exports3.milliToMicro(timeStamp) + beginEvent.ts);
      const frameId = beginEvent.args.frame ?? beginEvent.args.data.frame ?? "";
      const navigation2 = Trace_exports.getNavigationForTraceEvent(beginEvent, frameId, navigationsByFrameId2);
      const navigationId = navigation2?.args.data?.navigationId;
      const interactionEvent = SyntheticEvents_exports.SyntheticEventsManager.registerSyntheticEvent({
        // Use the start event to define the common fields.
        rawSourceEvent: beginEvent,
        cat: beginEvent.cat,
        name: beginEvent.name,
        pid: beginEvent.pid,
        tid: beginEvent.tid,
        ph: beginEvent.ph,
        processingStart: processingStartRelativeToTraceTime,
        processingEnd: processingEndRelativeToTraceTime,
        // These will be set in writeSyntheticTimespans()
        inputDelay: Timing_exports.Micro(-1),
        mainThreadHandling: Timing_exports.Micro(-1),
        presentationDelay: Timing_exports.Micro(-1),
        args: {
          data: {
            beginEvent,
            endEvent: event,
            frame: frameId,
            navigationId
          }
        },
        ts: beginEvent.ts,
        dur: Timing_exports.Micro(event.ts - beginEvent.ts),
        type: beginEvent.args.data.type,
        interactionId: beginEvent.args.data.interactionId
      });
      writeSyntheticTimespans(interactionEvent);
      interactionEvents.push(interactionEvent);
    }
  }
  Trace_exports.sortTraceEventsInPlace(interactionEvents);
  interactionEventsWithNoNesting.push(...removeNestedInteractionsAndSetProcessingTime(interactionEvents));
  for (const interactionEvent of interactionEventsWithNoNesting) {
    if (!longestInteractionEvent || longestInteractionEvent.dur < interactionEvent.dur) {
      longestInteractionEvent = interactionEvent;
    }
  }
}
function data28() {
  return {
    beginCommitCompositorFrameEvents,
    parseMetaViewportEvents,
    interactionEvents,
    interactionEventsWithNoNesting,
    longestInteractionEvent,
    interactionsOverThreshold: new Set(interactionEvents.filter((event) => {
      return event.dur > LONG_INTERACTION_THRESHOLD;
    }))
  };
}
function deps15() {
  return ["Meta"];
}
function scoreClassificationForInteractionToNextPaint(timing) {
  if (timing <= INP_GOOD_TIMING) {
    return ScoreClassification.GOOD;
  }
  if (timing <= INP_MEDIUM_TIMING) {
    return ScoreClassification.OK;
  }
  return ScoreClassification.BAD;
}
var beginCommitCompositorFrameEvents, parseMetaViewportEvents, LONG_INTERACTION_THRESHOLD, INP_GOOD_TIMING, INP_MEDIUM_TIMING, longestInteractionEvent, interactionEvents, interactionEventsWithNoNesting, eventTimingStartEventsForInteractions, eventTimingEndEventsForInteractions, pointerEventTypes, keyboardEventTypes;
var init_UserInteractionsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/UserInteractionsHandler.js"() {
    init_process_global();
    init_platform();
    init_helpers2();
    init_types2();
    init_MetaHandler();
    init_PageLoadMetricsHandler();
    beginCommitCompositorFrameEvents = [];
    parseMetaViewportEvents = [];
    LONG_INTERACTION_THRESHOLD = Timing_exports3.milliToMicro(Timing_exports.Milli(200));
    INP_GOOD_TIMING = LONG_INTERACTION_THRESHOLD;
    INP_MEDIUM_TIMING = Timing_exports3.milliToMicro(Timing_exports.Milli(500));
    longestInteractionEvent = null;
    interactionEvents = [];
    interactionEventsWithNoNesting = [];
    eventTimingStartEventsForInteractions = [];
    eventTimingEndEventsForInteractions = [];
    __name(reset28, "reset");
    __name(handleEvent28, "handleEvent");
    pointerEventTypes = /* @__PURE__ */ new Set([
      "pointerdown",
      "touchstart",
      "pointerup",
      "touchend",
      "mousedown",
      "mouseup",
      "click"
    ]);
    keyboardEventTypes = /* @__PURE__ */ new Set([
      "keydown",
      "keypress",
      "keyup"
    ]);
    __name(categoryOfInteraction, "categoryOfInteraction");
    __name(removeNestedInteractionsAndSetProcessingTime, "removeNestedInteractionsAndSetProcessingTime");
    __name(writeSyntheticTimespans, "writeSyntheticTimespans");
    __name(finalize28, "finalize");
    __name(data28, "data");
    __name(deps15, "deps");
    __name(scoreClassificationForInteractionToNextPaint, "scoreClassificationForInteractionToNextPaint");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/WorkersHandler.js
var WorkersHandler_exports = {};
__export(WorkersHandler_exports, {
  data: () => data29,
  finalize: () => finalize29,
  handleEvent: () => handleEvent29,
  reset: () => reset29
});
function reset29() {
  sessionIdEvents = [];
  workerIdByThread = /* @__PURE__ */ new Map();
  workerURLById = /* @__PURE__ */ new Map();
}
function handleEvent29(event) {
  if (TraceEvents_exports.isTracingSessionIdForWorker(event)) {
    sessionIdEvents.push(event);
  }
}
async function finalize29() {
  for (const sessionIdEvent of sessionIdEvents) {
    if (!sessionIdEvent.args.data) {
      continue;
    }
    workerIdByThread.set(sessionIdEvent.args.data.workerThreadId, sessionIdEvent.args.data.workerId);
    workerURLById.set(sessionIdEvent.args.data.workerId, sessionIdEvent.args.data.url);
  }
}
function data29() {
  return {
    workerSessionIdEvents: sessionIdEvents,
    workerIdByThread,
    workerURLById
  };
}
var sessionIdEvents, workerIdByThread, workerURLById;
var init_WorkersHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/WorkersHandler.js"() {
    init_process_global();
    init_types2();
    sessionIdEvents = [];
    workerIdByThread = /* @__PURE__ */ new Map();
    workerURLById = /* @__PURE__ */ new Map();
    __name(reset29, "reset");
    __name(handleEvent29, "handleEvent");
    __name(finalize29, "finalize");
    __name(data29, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/WarningsHandler.js
var WarningsHandler_exports = {};
__export(WarningsHandler_exports, {
  FORCED_REFLOW_THRESHOLD: () => FORCED_REFLOW_THRESHOLD,
  LONG_MAIN_THREAD_TASK_THRESHOLD: () => LONG_MAIN_THREAD_TASK_THRESHOLD,
  data: () => data30,
  deps: () => deps16,
  finalize: () => finalize30,
  handleEvent: () => handleEvent30,
  reset: () => reset30
});
function reset30() {
  warningsPerEvent = /* @__PURE__ */ new Map();
  eventsPerWarning = /* @__PURE__ */ new Map();
  allEventsStack = [];
  jsInvokeStack = [];
  taskReflowEvents = [];
  longTaskEvents = [];
}
function storeWarning(event, warning) {
  const existingWarnings = MapUtilities_exports.getWithDefault(warningsPerEvent, event, () => []);
  existingWarnings.push(warning);
  warningsPerEvent.set(event, existingWarnings);
  const existingEvents = MapUtilities_exports.getWithDefault(eventsPerWarning, warning, () => []);
  existingEvents.push(event);
  eventsPerWarning.set(warning, existingEvents);
}
function handleEvent30(event) {
  processForcedReflowWarning(event);
  if (event.name === TraceEvents_exports.Name.RUN_TASK) {
    const { duration } = Timing_exports3.eventTimingsMicroSeconds(event);
    if (duration > LONG_MAIN_THREAD_TASK_THRESHOLD) {
      longTaskEvents.push(event);
    }
    return;
  }
  if (TraceEvents_exports.isFireIdleCallback(event)) {
    const { duration } = Timing_exports3.eventTimingsMilliSeconds(event);
    if (duration > event.args.data.allottedMilliseconds) {
      storeWarning(event, "IDLE_CALLBACK_OVER_TIME");
    }
    return;
  }
}
function processForcedReflowWarning(event) {
  accomodateEventInStack(event, allEventsStack);
  accomodateEventInStack(
    event,
    jsInvokeStack,
    /* pushEventToStack */
    TraceEvents_exports.isJSInvocationEvent(event)
  );
  if (jsInvokeStack.length) {
    if (event.name === TraceEvents_exports.Name.LAYOUT || event.name === TraceEvents_exports.Name.RECALC_STYLE) {
      taskReflowEvents.push(event);
      return;
    }
  }
  if (allEventsStack.length === 1) {
    const totalTime = taskReflowEvents.reduce((time, event2) => time + (event2.dur || 0), 0);
    if (totalTime >= FORCED_REFLOW_THRESHOLD) {
      taskReflowEvents.forEach((reflowEvent) => storeWarning(reflowEvent, "FORCED_REFLOW"));
    }
    taskReflowEvents.length = 0;
  }
}
function accomodateEventInStack(event, stack, pushEventToStack = true) {
  let nextItem = stack.at(-1);
  while (nextItem && event.ts > nextItem.ts + (nextItem.dur || 0)) {
    stack.pop();
    nextItem = stack.at(-1);
  }
  if (!pushEventToStack) {
    return;
  }
  stack.push(event);
}
function deps16() {
  return ["UserInteractions", "Workers"];
}
async function finalize30() {
  const longInteractions = data28().interactionsOverThreshold;
  for (const interaction of longInteractions) {
    storeWarning(interaction, "LONG_INTERACTION");
  }
  for (const event of longTaskEvents) {
    if (!(event.tid, data29().workerIdByThread.has(event.tid))) {
      storeWarning(event, "LONG_TASK");
    }
  }
  longTaskEvents.length = 0;
}
function data30() {
  return {
    perEvent: warningsPerEvent,
    perWarning: eventsPerWarning
  };
}
var warningsPerEvent, eventsPerWarning, allEventsStack, jsInvokeStack, taskReflowEvents, longTaskEvents, FORCED_REFLOW_THRESHOLD, LONG_MAIN_THREAD_TASK_THRESHOLD;
var init_WarningsHandler = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/WarningsHandler.js"() {
    init_process_global();
    init_platform();
    init_helpers2();
    init_types2();
    init_UserInteractionsHandler();
    init_WorkersHandler();
    warningsPerEvent = /* @__PURE__ */ new Map();
    eventsPerWarning = /* @__PURE__ */ new Map();
    allEventsStack = [];
    jsInvokeStack = [];
    taskReflowEvents = [];
    longTaskEvents = [];
    FORCED_REFLOW_THRESHOLD = Timing_exports3.milliToMicro(Timing_exports.Milli(30));
    LONG_MAIN_THREAD_TASK_THRESHOLD = Timing_exports3.milliToMicro(Timing_exports.Milli(50));
    __name(reset30, "reset");
    __name(storeWarning, "storeWarning");
    __name(handleEvent30, "handleEvent");
    __name(processForcedReflowWarning, "processForcedReflowWarning");
    __name(accomodateEventInStack, "accomodateEventInStack");
    __name(deps16, "deps");
    __name(finalize30, "finalize");
    __name(data30, "data");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/ModelHandlers.js
var ModelHandlers_exports = {};
__export(ModelHandlers_exports, {
  AnimationFrames: () => AnimationFramesHandler_exports,
  Animations: () => AnimationHandler_exports,
  AsyncJSCalls: () => AsyncJSCallsHandler_exports,
  AuctionWorklets: () => AuctionWorkletsHandler_exports,
  DOMStats: () => DOMStatsHandler_exports,
  ExtensionTraceData: () => ExtensionTraceDataHandler_exports,
  Flows: () => FlowsHandler_exports,
  Frames: () => FramesHandler_exports,
  GPU: () => GPUHandler_exports,
  ImagePainting: () => ImagePaintingHandler_exports,
  Initiators: () => InitiatorsHandler_exports,
  Invalidations: () => InvalidationsHandler_exports,
  LargestImagePaint: () => LargestImagePaintHandler_exports,
  LargestTextPaint: () => LargestTextPaintHandler_exports,
  LayerTree: () => LayerTreeHandler_exports,
  LayoutShifts: () => LayoutShiftsHandler_exports,
  Memory: () => MemoryHandler_exports,
  Meta: () => MetaHandler_exports,
  NetworkRequests: () => NetworkRequestsHandler_exports,
  PageFrames: () => PageFramesHandler_exports,
  PageLoadMetrics: () => PageLoadMetricsHandler_exports,
  Renderer: () => RendererHandler_exports,
  Samples: () => SamplesHandler_exports,
  Screenshots: () => ScreenshotsHandler_exports,
  Scripts: () => ScriptsHandler_exports,
  SelectorStats: () => SelectorStatsHandler_exports,
  UserInteractions: () => UserInteractionsHandler_exports,
  UserTimings: () => UserTimingsHandler_exports,
  Warnings: () => WarningsHandler_exports,
  Workers: () => WorkersHandler_exports
});
var init_ModelHandlers = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/ModelHandlers.js"() {
    init_process_global();
    init_AnimationFramesHandler();
    init_AnimationHandler();
    init_AsyncJSCallsHandler();
    init_AuctionWorkletsHandler();
    init_DOMStatsHandler();
    init_ExtensionTraceDataHandler();
    init_FlowsHandler();
    init_FramesHandler();
    init_GPUHandler();
    init_ImagePaintingHandler();
    init_InitiatorsHandler();
    init_InvalidationsHandler();
    init_LargestImagePaintHandler();
    init_LargestTextPaintHandler();
    init_LayerTreeHandler();
    init_LayoutShiftsHandler();
    init_MemoryHandler();
    init_MetaHandler();
    init_NetworkRequestsHandler();
    init_PageFramesHandler();
    init_PageLoadMetricsHandler();
    init_RendererHandler();
    init_SamplesHandler();
    init_ScreenshotsHandler();
    init_ScriptsHandler();
    init_SelectorStatsHandler();
    init_UserInteractionsHandler();
    init_UserTimingsHandler();
    init_WarningsHandler();
    init_WorkersHandler();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/types.js
var types_exports3 = {};
var init_types3 = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/types.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/handlers/handlers.js
var handlers_exports = {};
__export(handlers_exports, {
  Helpers: () => helpers_exports,
  ModelHandlers: () => ModelHandlers_exports,
  Threads: () => Threads_exports,
  Types: () => types_exports3
});
var init_handlers = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/handlers/handlers.js"() {
    init_process_global();
    init_helpers();
    init_ModelHandlers();
    init_Threads();
    init_types3();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/EntityMapper.js
var init_EntityMapper = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/EntityMapper.js"() {
    init_process_global();
    init_handlers();
    init_helpers2();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/EventsSerializer.js
var init_EventsSerializer = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/EventsSerializer.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/extras/StackTraceForEvent.js
var StackTraceForEvent_exports = {};
__export(StackTraceForEvent_exports, {
  clearCacheForTrace: () => clearCacheForTrace,
  get: () => get,
  stackTraceForEventInTrace: () => stackTraceForEventInTrace
});
function clearCacheForTrace(data31) {
  stackTraceForEventInTrace.delete(data31);
}
function get(event, data31) {
  let cacheForTrace = stackTraceForEventInTrace.get(data31);
  if (!cacheForTrace) {
    cacheForTrace = /* @__PURE__ */ new Map();
    stackTraceForEventInTrace.set(data31, cacheForTrace);
  }
  const resultFromCache = cacheForTrace.get(event);
  if (resultFromCache) {
    return resultFromCache;
  }
  let result = null;
  if (Extensions_exports.isSyntheticExtensionEntry(event)) {
    result = getForExtensionEntry(event, data31);
  } else if (TraceEvents_exports.isPerformanceMeasureBegin(event)) {
    result = getForPerformanceMeasure(event, data31);
  } else {
    result = getForEvent(event, data31);
    const payloadCallFrames = getTraceEventPayloadStackAsProtocolCallFrame(event).filter((callFrame) => !isNativeJSFunction(callFrame));
    if (!result.callFrames.length) {
      result.callFrames = payloadCallFrames;
    } else {
      for (let i = 0; i < payloadCallFrames.length && i < result.callFrames.length; i++) {
        result.callFrames[i] = payloadCallFrames[i];
      }
    }
  }
  if (result) {
    cacheForTrace.set(event, result);
  }
  return result;
}
function getForEvent(event, data31) {
  const entryToNode4 = data31.Renderer.entryToNode.size > 0 ? data31.Renderer.entryToNode : data31.Samples.entryToNode;
  const topStackTrace = { callFrames: [] };
  let stackTrace = topStackTrace;
  let currentEntry;
  let node = entryToNode4.get(event);
  const traceCache = stackTraceForEventInTrace.get(data31) || /* @__PURE__ */ new Map();
  stackTraceForEventInTrace.set(data31, traceCache);
  while (node) {
    if (!TraceEvents_exports.isProfileCall(node.entry)) {
      const maybeAsyncParent = data31.AsyncJSCalls.runEntryPointToScheduler.get(node.entry);
      if (!maybeAsyncParent) {
        node = node.parent;
        continue;
      }
      const maybeAsyncParentNode2 = maybeAsyncParent && entryToNode4.get(maybeAsyncParent.scheduler);
      if (maybeAsyncParentNode2) {
        stackTrace = addAsyncParentToStack(stackTrace, maybeAsyncParent.taskName);
        node = maybeAsyncParentNode2;
      }
      continue;
    }
    currentEntry = node.entry;
    const stackTraceFromCache = traceCache.get(node.entry);
    if (stackTraceFromCache) {
      stackTrace.callFrames.push(...stackTraceFromCache.callFrames.filter((callFrame) => !isNativeJSFunction(callFrame)));
      stackTrace.parent = stackTraceFromCache.parent;
      stackTrace.description = stackTrace.description || stackTraceFromCache.description;
      break;
    }
    if (!isNativeJSFunction(currentEntry.callFrame)) {
      stackTrace.callFrames.push(currentEntry.callFrame);
    }
    const maybeAsyncParentEvent = data31.AsyncJSCalls.asyncCallToScheduler.get(currentEntry);
    const maybeAsyncParentNode = maybeAsyncParentEvent && entryToNode4.get(maybeAsyncParentEvent.scheduler);
    if (maybeAsyncParentNode) {
      stackTrace = addAsyncParentToStack(stackTrace, maybeAsyncParentEvent.taskName);
      node = maybeAsyncParentNode;
      continue;
    }
    node = node.parent;
  }
  return topStackTrace;
}
function addAsyncParentToStack(stackTrace, taskName) {
  const parent = { callFrames: [] };
  stackTrace.parent = parent;
  parent.description = taskName;
  return parent;
}
function getForExtensionEntry(event, data31) {
  const rawEvent = event.rawSourceEvent;
  if (TraceEvents_exports.isPerformanceMeasureBegin(rawEvent)) {
    return getForPerformanceMeasure(rawEvent, data31);
  }
  if (!rawEvent) {
    return null;
  }
  return get(rawEvent, data31);
}
function getForPerformanceMeasure(event, data31) {
  let rawEvent = event;
  if (event.args.traceId === void 0) {
    return null;
  }
  rawEvent = data31.UserTimings.measureTraceByTraceId.get(event.args.traceId);
  if (!rawEvent) {
    return null;
  }
  return get(rawEvent, data31);
}
function isNativeJSFunction({ columnNumber, lineNumber, url, scriptId }) {
  return lineNumber === -1 && columnNumber === -1 && url === "" && scriptId === "0";
}
function getTraceEventPayloadStackAsProtocolCallFrame(event) {
  const payloadCallStack = Trace_exports.getZeroIndexedStackTraceInEventPayload(event) || [];
  const callFrames = [];
  for (const frame of payloadCallStack) {
    callFrames.push({ ...frame, scriptId: String(frame.scriptId) });
  }
  return callFrames;
}
var stackTraceForEventInTrace;
var init_StackTraceForEvent = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/extras/StackTraceForEvent.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    stackTraceForEventInTrace = /* @__PURE__ */ new Map();
    __name(clearCacheForTrace, "clearCacheForTrace");
    __name(get, "get");
    __name(getForEvent, "getForEvent");
    __name(addAsyncParentToStack, "addAsyncParentToStack");
    __name(getForExtensionEntry, "getForExtensionEntry");
    __name(getForPerformanceMeasure, "getForPerformanceMeasure");
    __name(isNativeJSFunction, "isNativeJSFunction");
    __name(getTraceEventPayloadStackAsProtocolCallFrame, "getTraceEventPayloadStackAsProtocolCallFrame");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/extras/Initiators.js
var Initiators_exports = {};
__export(Initiators_exports, {
  getNetworkInitiator: () => getNetworkInitiator
});
function getNetworkInitiator(data31, event) {
  const networkHandlerInitiator = data31.NetworkRequests.incompleteInitiator.get(event);
  if (networkHandlerInitiator?.args.data.mimeType === "text/css") {
    return networkHandlerInitiator;
  }
  const stack = get(event.rawSourceEvent, data31);
  const initiatorCallFrame = stack?.parent?.callFrames.at(0);
  if (!initiatorCallFrame) {
    return networkHandlerInitiator;
  }
  const matchingRequestIds = data31.NetworkRequests.requestIdsByURL.get(initiatorCallFrame.url) ?? [];
  const matchingRequests = matchingRequestIds.map((id) => data31.NetworkRequests.byId.get(id)).filter((req) => req !== void 0).filter((req) => req.ts < event.ts);
  return matchingRequests.at(-1);
}
var init_Initiators = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/extras/Initiators.js"() {
    init_process_global();
    init_StackTraceForEvent();
    __name(getNetworkInitiator, "getNetworkInitiator");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/extras/ScriptDuplication.js
var ScriptDuplication_exports = {};
__export(ScriptDuplication_exports, {
  computeScriptDuplication: () => computeScriptDuplication,
  getNodeModuleName: () => getNodeModuleName,
  normalizeDuplication: () => normalizeDuplication,
  normalizeSource: () => normalizeSource
});
function normalizeSource(source) {
  source = source.replace(/\?$/, "");
  const lastNodeModulesIndex = source.lastIndexOf("node_modules");
  if (lastNodeModulesIndex !== -1) {
    source = source.substring(lastNodeModulesIndex);
  }
  return source;
}
function shouldIgnoreSource(source) {
  if (source.includes("webpack/bootstrap")) {
    return true;
  }
  if (source.includes("(webpack)/buildin")) {
    return true;
  }
  if (source.includes("external ")) {
    return true;
  }
  return false;
}
function normalizeDuplication(duplication) {
  for (const [key, data31] of duplication) {
    data31.duplicates.sort((a, b) => b.attributedSize - a.attributedSize);
    if (data31.duplicates.length > 1) {
      const largestResourceSize = data31.duplicates[0].attributedSize;
      data31.duplicates = data31.duplicates.filter((duplicate) => {
        const percentSize = duplicate.attributedSize / largestResourceSize;
        return percentSize >= RELATIVE_SIZE_THRESHOLD;
      });
    }
    data31.duplicates = data31.duplicates.filter((duplicate) => duplicate.attributedSize >= ABSOLUTE_SIZE_THRESHOLD_BYTES);
    if (data31.duplicates.length <= 1) {
      duplication.delete(key);
      continue;
    }
    data31.estimatedDuplicateBytes = data31.duplicates.slice(1).reduce((acc, cur) => acc + cur.attributedSize, 0);
  }
}
function indexOfOrLength(haystack, needle, startPosition = 0) {
  const index = haystack.indexOf(needle, startPosition);
  return index === -1 ? haystack.length : index;
}
function getNodeModuleName(source) {
  const sourceSplit = source.split("node_modules/");
  source = sourceSplit[sourceSplit.length - 1];
  const indexFirstSlash = indexOfOrLength(source, "/");
  if (source[0] === "@") {
    return source.slice(0, indexOfOrLength(source, "/", indexFirstSlash + 1));
  }
  return source.slice(0, indexFirstSlash);
}
function groupByNodeModules(duplication) {
  const groupedDuplication = /* @__PURE__ */ new Map();
  for (const [source, data31] of duplication) {
    if (!source.includes("node_modules")) {
      groupedDuplication.set(source, data31);
      continue;
    }
    const nodeModuleKey = "node_modules/" + getNodeModuleName(source);
    const aggregatedData = groupedDuplication.get(nodeModuleKey) ?? {
      duplicates: [],
      // This is calculated in normalizeDuplication.
      estimatedDuplicateBytes: 0
    };
    groupedDuplication.set(nodeModuleKey, aggregatedData);
    for (const { script, attributedSize } of data31.duplicates) {
      let duplicate = aggregatedData.duplicates.find((d) => d.script === script);
      if (!duplicate) {
        duplicate = { script, attributedSize: 0 };
        aggregatedData.duplicates.push(duplicate);
      }
      duplicate.attributedSize += attributedSize;
    }
  }
  return groupedDuplication;
}
function sorted(duplication) {
  return new Map([...duplication].sort((a, b) => b[1].estimatedDuplicateBytes - a[1].estimatedDuplicateBytes));
}
function computeScriptDuplication(scriptsData, compressionRatios) {
  const sourceDatasMap = /* @__PURE__ */ new Map();
  for (const script of scriptsData.scripts) {
    if (!script.content || !script.sourceMap) {
      continue;
    }
    const sizes = ModelHandlers_exports.Scripts.getScriptGeneratedSizes(script);
    if (!sizes) {
      continue;
    }
    if ("errorMessage" in sizes) {
      console.error(sizes.errorMessage);
      continue;
    }
    const sourceDataArray = [];
    sourceDatasMap.set(script, sourceDataArray);
    const sources = script.sourceMap.sourceURLs();
    for (let i = 0; i < sources.length; i++) {
      if (shouldIgnoreSource(sources[i])) {
        continue;
      }
      const sourceSize = sizes.files[sources[i]];
      sourceDataArray.push({
        source: normalizeSource(sources[i]),
        resourceSize: sourceSize
      });
    }
  }
  const duplication = /* @__PURE__ */ new Map();
  for (const [script, sourceDataArray] of sourceDatasMap) {
    for (const sourceData of sourceDataArray) {
      let data31 = duplication.get(sourceData.source);
      if (!data31) {
        data31 = { estimatedDuplicateBytes: 0, duplicates: [] };
        duplication.set(sourceData.source, data31);
      }
      const compressionRatio = script.request ? compressionRatios.get(script.request?.args.data.requestId) ?? 1 : 1;
      const transferSize = Math.round(sourceData.resourceSize * compressionRatio);
      data31.duplicates.push({
        script,
        attributedSize: transferSize
      });
    }
  }
  const duplicationGroupedByNodeModules = groupByNodeModules(duplication);
  normalizeDuplication(duplication);
  normalizeDuplication(duplicationGroupedByNodeModules);
  return {
    duplication: sorted(duplication),
    duplicationGroupedByNodeModules: sorted(duplicationGroupedByNodeModules)
  };
}
var ABSOLUTE_SIZE_THRESHOLD_BYTES, RELATIVE_SIZE_THRESHOLD;
var init_ScriptDuplication = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/extras/ScriptDuplication.js"() {
    init_process_global();
    init_handlers();
    ABSOLUTE_SIZE_THRESHOLD_BYTES = 1024 * 0.5;
    RELATIVE_SIZE_THRESHOLD = 0.1;
    __name(normalizeSource, "normalizeSource");
    __name(shouldIgnoreSource, "shouldIgnoreSource");
    __name(normalizeDuplication, "normalizeDuplication");
    __name(indexOfOrLength, "indexOfOrLength");
    __name(getNodeModuleName, "getNodeModuleName");
    __name(groupByNodeModules, "groupByNodeModules");
    __name(sorted, "sorted");
    __name(computeScriptDuplication, "computeScriptDuplication");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/extras/TraceFilter.js
var TraceFilter, VisibleEventsFilter, ExclusiveNameFilter;
var init_TraceFilter = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/extras/TraceFilter.js"() {
    init_process_global();
    init_types2();
    TraceFilter = class {
      static {
        __name(this, "TraceFilter");
      }
    };
    VisibleEventsFilter = class _VisibleEventsFilter extends TraceFilter {
      static {
        __name(this, "VisibleEventsFilter");
      }
      visibleTypes;
      constructor(visibleTypes) {
        super();
        this.visibleTypes = new Set(visibleTypes);
      }
      accept(event) {
        if (Extensions_exports.isSyntheticExtensionEntry(event)) {
          return true;
        }
        return this.visibleTypes.has(_VisibleEventsFilter.eventType(event));
      }
      static eventType(event) {
        if (event.cat.includes("blink.console")) {
          return TraceEvents_exports.Name.CONSOLE_TIME;
        }
        if (event.cat.includes("blink.user_timing")) {
          return TraceEvents_exports.Name.USER_TIMING;
        }
        return event.name;
      }
    };
    ExclusiveNameFilter = class extends TraceFilter {
      static {
        __name(this, "ExclusiveNameFilter");
      }
      #excludeNames;
      constructor(excludeNames) {
        super();
        this.#excludeNames = new Set(excludeNames);
      }
      accept(event) {
        return !this.#excludeNames.has(event.name);
      }
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/extras/TraceTree.js
function generateEventID(event) {
  if (TraceEvents_exports.isProfileCall(event)) {
    const name = SamplesIntegrator.isNativeRuntimeFrame(event.callFrame) ? SamplesIntegrator.nativeGroup(event.callFrame.functionName) : event.callFrame.functionName;
    const location = event.callFrame.scriptId || event.callFrame.url || "";
    return `f:${name}@${location}:${event.callFrame.lineNumber}:${event.callFrame.columnNumber}`;
  }
  if (TraceEvents_exports.isConsoleTimeStamp(event) && event.args.data) {
    return `${event.name}:${event.args.data.name}`;
  }
  if (TraceEvents_exports.isSyntheticNetworkRequest(event) || TraceEvents_exports.isReceivedDataEvent(event)) {
    return `req:${event.args.data.requestId}`;
  }
  return event.name;
}
var Node2, BottomUpRootNode, GroupNode, BottomUpNode;
var init_TraceTree = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/extras/TraceTree.js"() {
    init_process_global();
    init_helpers2();
    init_SamplesIntegrator();
    init_types2();
    Node2 = class {
      static {
        __name(this, "Node");
      }
      /** ms */
      totalTime;
      /** ms */
      selfTime;
      transferSize;
      id;
      /** The first trace event encountered that necessitated the creation of this tree node. */
      event;
      /**
       * All of the trace events associated with this aggregate node.
       * Minor: In the case of Event Log (EventsTimelineTreeView), the node is not aggregate and this will only hold 1 event, the same that's in this.event
       */
      events;
      parent;
      groupId;
      isGroupNodeInternal;
      depth;
      constructor(id, event) {
        this.totalTime = 0;
        this.selfTime = 0;
        this.transferSize = 0;
        this.id = id;
        this.event = event;
        this.events = [event];
        this.groupId = "";
        this.isGroupNodeInternal = false;
        this.depth = 0;
      }
      isGroupNode() {
        return this.isGroupNodeInternal;
      }
      hasChildren() {
        throw new Error("Not implemented");
      }
      setHasChildren(_value) {
        throw new Error("Not implemented");
      }
      /**
       * Returns the direct descendants of this node.
       * @returns a map with ordered <nodeId, Node> tuples.
       */
      children() {
        throw new Error("Not implemented");
      }
      searchTree(matchFunction, results) {
        results = results || [];
        if (this.event && matchFunction(this.event)) {
          results.push(this);
        }
        for (const child of this.children().values()) {
          child.searchTree(matchFunction, results);
        }
        return results;
      }
    };
    BottomUpRootNode = class extends Node2 {
      static {
        __name(this, "BottomUpRootNode");
      }
      childrenInternal;
      textFilter;
      filter;
      startTime;
      endTime;
      totalTime;
      eventGroupIdCallback;
      calculateTransferSize;
      forceGroupIdCallback;
      constructor(events, { textFilter, filters, startTime, endTime, eventGroupIdCallback, calculateTransferSize, forceGroupIdCallback }) {
        super("", events[0]);
        this.childrenInternal = null;
        this.events = events;
        this.textFilter = textFilter;
        this.filter = (e) => filters.every((f) => f.accept(e));
        this.startTime = startTime;
        this.endTime = endTime;
        this.eventGroupIdCallback = eventGroupIdCallback;
        this.totalTime = endTime - startTime;
        this.calculateTransferSize = calculateTransferSize;
        this.forceGroupIdCallback = forceGroupIdCallback;
      }
      hasChildren() {
        return true;
      }
      filterChildren(children) {
        for (const [id, child] of children) {
          if (child.event && child.depth <= 1 && !this.textFilter.accept(child.event)) {
            children.delete(id);
          }
        }
        return children;
      }
      children() {
        if (!this.childrenInternal) {
          this.childrenInternal = this.filterChildren(this.grouppedTopNodes());
        }
        return this.childrenInternal;
      }
      // If no grouping is applied, the nodes returned here are what's initially shown in the bottom-up view.
      // "No grouping" == no grouping in UI dropdown == no groupingFunction…
      // … HOWEVER, nodes are still aggregated via `generateEventID`, which is ~= the event name.
      ungroupedTopNodes() {
        const root2 = this;
        const startTime = this.startTime;
        const endTime = this.endTime;
        const idStack = [];
        const nodeById = /* @__PURE__ */ new Map();
        const selfTimeStack = [endTime - startTime];
        const firstNodeStack = [];
        const totalTimeById = /* @__PURE__ */ new Map();
        const eventGroupIdCallback = this.eventGroupIdCallback;
        const forceGroupIdCallback = this.forceGroupIdCallback;
        const idToIsCacheHit = /* @__PURE__ */ new Map();
        for (const e of this.events) {
          if (TraceEvents_exports.isReceivedDataEvent(e) && e.name === "ResourceReceiveResponse") {
            let id = generateEventID(e);
            if (this.forceGroupIdCallback && this.eventGroupIdCallback) {
              id = `${id}-${this.eventGroupIdCallback(e)}`;
            }
            idToIsCacheHit.set(id, e.args.data.fromCache || false);
          }
        }
        const sumTransferSizeOfInstantEvent = /* @__PURE__ */ __name((e) => {
          if (TraceEvents_exports.isReceivedDataEvent(e)) {
            let id = generateEventID(e);
            if (this.forceGroupIdCallback && this.eventGroupIdCallback) {
              id = `${id}-${this.eventGroupIdCallback(e)}`;
            }
            let node = nodeById.get(id);
            if (!node) {
              node = new BottomUpNode(root2, id, e, false, root2);
              nodeById.set(id, node);
            } else {
              node.events.push(e);
            }
            if (e.name === "ResourceReceivedData") {
              if (idToIsCacheHit.get(id)) {
                node.transferSize = 0;
              } else {
                node.transferSize += e.args.data.encodedDataLength;
              }
            } else if (e.name === "ResourceFinish" && e.args.data.encodedDataLength === 0 && idToIsCacheHit.get(id)) {
              node.transferSize = 0;
            } else if (e.args.data.encodedDataLength > 0) {
              node.transferSize = e.args.data.encodedDataLength;
            }
          }
        }, "sumTransferSizeOfInstantEvent");
        Trace_exports.forEachEvent(this.events, {
          onStartEvent,
          onEndEvent,
          onInstantEvent: this.calculateTransferSize ? sumTransferSizeOfInstantEvent : void 0,
          startTime: Timing_exports3.milliToMicro(this.startTime),
          endTime: Timing_exports3.milliToMicro(this.endTime),
          eventFilter: this.filter,
          ignoreAsyncEvents: false
        });
        function onStartEvent(e) {
          const { startTime: currentStartTime, endTime: currentEndTime } = Timing_exports3.eventTimingsMilliSeconds(e);
          const actualEndTime = currentEndTime !== void 0 ? Math.min(currentEndTime, endTime) : endTime;
          const duration = actualEndTime - Math.max(currentStartTime, startTime);
          selfTimeStack[selfTimeStack.length - 1] -= duration;
          selfTimeStack.push(duration);
          let id = generateEventID(e);
          if (forceGroupIdCallback && eventGroupIdCallback) {
            id = `${id}-${eventGroupIdCallback(e)}`;
          }
          idStack.push(id);
          const noNodeOnStack = !totalTimeById.has(id);
          if (noNodeOnStack) {
            totalTimeById.set(id, duration);
          }
          firstNodeStack.push(noNodeOnStack);
        }
        __name(onStartEvent, "onStartEvent");
        function onEndEvent(event) {
          const id = idStack.pop();
          if (!id) {
            return;
          }
          let node = nodeById.get(id);
          if (!node) {
            node = new BottomUpNode(root2, id, event, false, root2);
            nodeById.set(id, node);
          } else {
            node.events.push(event);
          }
          node.selfTime += selfTimeStack.pop() || 0;
          if (firstNodeStack.pop()) {
            node.totalTime += totalTimeById.get(id) || 0;
            totalTimeById.delete(id);
          }
          if (idStack.length > 0) {
            node.setHasChildren(true);
          }
        }
        __name(onEndEvent, "onEndEvent");
        this.selfTime = selfTimeStack.pop() || 0;
        for (const pair of nodeById) {
          if (pair[1].selfTime <= 0 && (!this.calculateTransferSize || pair[1].transferSize <= 0)) {
            nodeById.delete(pair[0]);
          }
        }
        return nodeById;
      }
      grouppedTopNodes() {
        const flatNodes = this.ungroupedTopNodes();
        if (!this.eventGroupIdCallback) {
          return flatNodes;
        }
        const groupNodes = /* @__PURE__ */ new Map();
        for (const node of flatNodes.values()) {
          const groupId = this.eventGroupIdCallback(node.event);
          let groupNode = groupNodes.get(groupId);
          if (!groupNode) {
            groupNode = new GroupNode(groupId, this, node.events);
            groupNodes.set(groupId, groupNode);
          } else {
            for (const e of node.events) {
              groupNode.events.push(e);
            }
          }
          groupNode.addChild(node, node.selfTime, node.selfTime, node.transferSize);
        }
        return groupNodes;
      }
    };
    GroupNode = class extends Node2 {
      static {
        __name(this, "GroupNode");
      }
      childrenInternal;
      isGroupNodeInternal;
      events;
      constructor(id, parent, events) {
        super(id, events[0]);
        this.events = events;
        this.childrenInternal = /* @__PURE__ */ new Map();
        this.parent = parent;
        this.isGroupNodeInternal = true;
      }
      addChild(child, selfTime, totalTime, transferSize) {
        this.childrenInternal.set(child.id, child);
        this.selfTime += selfTime;
        this.totalTime += totalTime;
        this.transferSize += transferSize;
        child.parent = this;
      }
      hasChildren() {
        return true;
      }
      children() {
        return this.childrenInternal;
      }
    };
    BottomUpNode = class _BottomUpNode extends Node2 {
      static {
        __name(this, "BottomUpNode");
      }
      parent;
      root;
      depth;
      cachedChildren;
      hasChildrenInternal;
      constructor(root2, id, event, hasChildren, parent) {
        super(id, event);
        this.parent = parent;
        this.root = root2;
        this.depth = (parent.depth || 0) + 1;
        this.cachedChildren = null;
        this.hasChildrenInternal = hasChildren;
      }
      hasChildren() {
        return this.hasChildrenInternal;
      }
      setHasChildren(value) {
        this.hasChildrenInternal = value;
      }
      children() {
        if (this.cachedChildren) {
          return this.cachedChildren;
        }
        const selfTimeStack = [0];
        const eventIdStack = [];
        const eventStack = [];
        const nodeById = /* @__PURE__ */ new Map();
        const startTime = this.root.startTime;
        const endTime = this.root.endTime;
        let lastTimeMarker = startTime;
        const self2 = this;
        Trace_exports.forEachEvent(this.root.events, {
          onStartEvent,
          onEndEvent,
          startTime: Timing_exports3.milliToMicro(startTime),
          endTime: Timing_exports3.milliToMicro(endTime),
          eventFilter: this.root.filter,
          ignoreAsyncEvents: false
        });
        function onStartEvent(e) {
          const { startTime: currentStartTime, endTime: currentEndTime } = Timing_exports3.eventTimingsMilliSeconds(e);
          const actualEndTime = currentEndTime !== void 0 ? Math.min(currentEndTime, endTime) : endTime;
          const duration = actualEndTime - Math.max(currentStartTime, startTime);
          if (duration < 0) {
            console.assert(false, "Negative duration of an event");
          }
          selfTimeStack[selfTimeStack.length - 1] -= duration;
          selfTimeStack.push(duration);
          const id = generateEventID(e);
          eventIdStack.push(id);
          eventStack.push(e);
        }
        __name(onStartEvent, "onStartEvent");
        function onEndEvent(e) {
          const { startTime: currentStartTime, endTime: currentEndTime } = Timing_exports3.eventTimingsMilliSeconds(e);
          const selfTime = selfTimeStack.pop();
          const id = eventIdStack.pop();
          eventStack.pop();
          let node;
          for (node = self2; node.depth > 1; node = node.parent) {
            if (node.id !== eventIdStack[eventIdStack.length + 1 - node.depth]) {
              return;
            }
          }
          if (node.id !== id || eventIdStack.length < self2.depth) {
            return;
          }
          const childId = eventIdStack[eventIdStack.length - self2.depth];
          node = nodeById.get(childId);
          if (!node) {
            const event = eventStack[eventStack.length - self2.depth];
            const hasChildren = eventStack.length > self2.depth;
            node = new _BottomUpNode(self2.root, childId, event, hasChildren, self2);
            nodeById.set(childId, node);
          } else {
            node.events.push(e);
          }
          const actualEndTime = currentEndTime !== void 0 ? Math.min(currentEndTime, endTime) : endTime;
          const totalTime = actualEndTime - Math.max(currentStartTime, lastTimeMarker);
          node.selfTime += selfTime || 0;
          node.totalTime += totalTime;
          lastTimeMarker = actualEndTime;
        }
        __name(onEndEvent, "onEndEvent");
        this.cachedChildren = this.root.filterChildren(nodeById);
        return this.cachedChildren;
      }
      searchTree(matchFunction, results) {
        results = results || [];
        if (this.event && matchFunction(this.event)) {
          results.push(this);
        }
        return results;
      }
    };
    __name(generateEventID, "generateEventID");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/extras/ThirdParties.js
var ThirdParties_exports = {};
__export(ThirdParties_exports, {
  summarizeByThirdParty: () => summarizeByThirdParty,
  summarizeByURL: () => summarizeByURL
});
function collectMainThreadActivity(data31) {
  const mainFrameMainThread = data31.Renderer.processes.values().find((p) => {
    const url = p.url ?? "";
    return p.isOnMainFrame && !url.startsWith("about:") && !url.startsWith("chrome:");
  })?.threads.values().find((t) => t.name === "CrRendererMain");
  if (!mainFrameMainThread) {
    return [];
  }
  return mainFrameMainThread.entries;
}
function summarizeByThirdParty(data31, traceBounds2) {
  const mainThreadEvents = collectMainThreadActivity(data31).sort(Trace_exports.eventTimeComparator);
  const groupingFunction = /* @__PURE__ */ __name((event) => {
    const entity = data31.Renderer.entityMappings.entityByEvent.get(event);
    return entity?.name ?? "";
  }, "groupingFunction");
  const node = getBottomUpTree(mainThreadEvents, traceBounds2, groupingFunction);
  const summaries = summarizeBottomUpByEntity(node, data31);
  return summaries;
}
function summarizeByURL(data31, traceBounds2) {
  const mainThreadEvents = collectMainThreadActivity(data31).sort(Trace_exports.eventTimeComparator);
  const groupingFunction = /* @__PURE__ */ __name((event) => {
    return helpers_exports.getNonResolvedURL(event, data31) ?? "";
  }, "groupingFunction");
  const node = getBottomUpTree(mainThreadEvents, traceBounds2, groupingFunction);
  const summaries = summarizeBottomUpByURL(node, data31);
  return summaries;
}
function summarizeBottomUpByEntity(root2, data31) {
  const summaries = [];
  const topNodes = [...root2.children().values()].flat();
  for (const node of topNodes) {
    if (node.id === "") {
      continue;
    }
    const entity = data31.Renderer.entityMappings.entityByEvent.get(node.event);
    if (!entity) {
      continue;
    }
    const summary = {
      transferSize: node.transferSize,
      mainThreadTime: Timing_exports.Milli(node.selfTime),
      entity,
      relatedEvents: data31.Renderer.entityMappings.eventsByEntity.get(entity) ?? []
    };
    summaries.push(summary);
  }
  return summaries;
}
function summarizeBottomUpByURL(root2, data31) {
  const summaries = [];
  const allRequests = data31.NetworkRequests.byTime;
  const topNodes = [...root2.children().values()].flat();
  for (const node of topNodes) {
    if (node.id === "" || typeof node.id !== "string") {
      continue;
    }
    const entity = data31.Renderer.entityMappings.entityByEvent.get(node.event);
    if (!entity) {
      continue;
    }
    const url = node.id;
    const request = allRequests.find((r) => r.args.data.url === url);
    const summary = {
      request,
      url,
      entity,
      transferSize: node.transferSize,
      mainThreadTime: Timing_exports.Milli(node.selfTime)
    };
    summaries.push(summary);
  }
  return summaries;
}
function getBottomUpTree(mainThreadEvents, tracebounds, groupingFunction) {
  const visibleEvents = Trace_exports.VISIBLE_TRACE_EVENT_TYPES.values().toArray();
  const filter = new VisibleEventsFilter(visibleEvents.concat([TraceEvents_exports.Name.SYNTHETIC_NETWORK_REQUEST]));
  const startTime = Timing_exports3.microToMilli(tracebounds.min);
  const endTime = Timing_exports3.microToMilli(tracebounds.max);
  return new BottomUpRootNode(mainThreadEvents, {
    textFilter: new ExclusiveNameFilter([]),
    filters: [filter],
    startTime,
    endTime,
    eventGroupIdCallback: groupingFunction,
    calculateTransferSize: true,
    // Ensure we group by 3P alongside eventID for correct 3P grouping.
    forceGroupIdCallback: true
  });
}
var init_ThirdParties = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/extras/ThirdParties.js"() {
    init_process_global();
    init_handlers();
    init_helpers2();
    init_types2();
    init_TraceFilter();
    init_TraceTree();
    __name(collectMainThreadActivity, "collectMainThreadActivity");
    __name(summarizeByThirdParty, "summarizeByThirdParty");
    __name(summarizeByURL, "summarizeByURL");
    __name(summarizeBottomUpByEntity, "summarizeBottomUpByEntity");
    __name(summarizeBottomUpByURL, "summarizeBottomUpByURL");
    __name(getBottomUpTree, "getBottomUpTree");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/extras/extras.js
var init_extras = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/extras/extras.js"() {
    init_process_global();
    init_Initiators();
    init_ScriptDuplication();
    init_StackTraceForEvent();
    init_ThirdParties();
    init_TraceFilter();
    init_TraceTree();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/Statistics.js
function erf2(x) {
  const sign = Math.sign(x);
  x = Math.abs(x);
  const a1 = 0.254829592;
  const a2 = -0.284496736;
  const a3 = 1.421413741;
  const a4 = -1.453152027;
  const a5 = 1.061405429;
  const p = 0.3275911;
  const t = 1 / (1 + p * x);
  const y = t * (a1 + t * (a2 + t * (a3 + t * (a4 + t * a5))));
  return sign * (1 - y * Math.exp(-x * x));
}
function getLogNormalScore2({ median, p10 }, value) {
  if (median <= 0) {
    throw new Error("median must be greater than zero");
  }
  if (p10 <= 0) {
    throw new Error("p10 must be greater than zero");
  }
  if (p10 >= median) {
    throw new Error("p10 must be less than the median");
  }
  if (value <= 0) {
    return 1;
  }
  const INVERSE_ERFC_ONE_FIFTH = 0.9061938024368232;
  const xRatio = Math.max(Number.MIN_VALUE, value / median);
  const xLogRatio = Math.log(xRatio);
  const p10Ratio = Math.max(Number.MIN_VALUE, p10 / median);
  const p10LogRatio = -Math.log(p10Ratio);
  const standardizedX = xLogRatio * INVERSE_ERFC_ONE_FIFTH / p10LogRatio;
  const complementaryPercentile = (1 - erf2(standardizedX)) / 2;
  let score;
  if (value <= p10) {
    score = Math.max(MIN_PASSING_SCORE2, Math.min(1, complementaryPercentile));
  } else if (value <= median) {
    score = Math.max(MIN_AVERAGE_SCORE2, Math.min(MAX_AVERAGE_SCORE2, complementaryPercentile));
  } else {
    score = Math.max(0, Math.min(MAX_FAILING_SCORE2, complementaryPercentile));
  }
  return score;
}
function linearInterpolation(x0, y0, x1, y1, x) {
  const slope = (y1 - y0) / (x1 - x0);
  return y0 + (x - x0) * slope;
}
var MIN_PASSING_SCORE2, MAX_AVERAGE_SCORE2, MIN_AVERAGE_SCORE2, MAX_FAILING_SCORE2;
var init_Statistics = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/Statistics.js"() {
    init_process_global();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    MIN_PASSING_SCORE2 = 0.9;
    MAX_AVERAGE_SCORE2 = 0.8999999999999999;
    MIN_AVERAGE_SCORE2 = 0.5;
    MAX_FAILING_SCORE2 = 0.49999999999999994;
    __name(erf2, "erf");
    __name(getLogNormalScore2, "getLogNormalScore");
    __name(linearInterpolation, "linearInterpolation");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/types.js
var InsightWarning, InsightCategory, InsightKeys;
var init_types4 = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/types.js"() {
    init_process_global();
    (function(InsightWarning2) {
      InsightWarning2["NO_FP"] = "NO_FP";
      InsightWarning2["NO_LCP"] = "NO_LCP";
      InsightWarning2["NO_DOCUMENT_REQUEST"] = "NO_DOCUMENT_REQUEST";
      InsightWarning2["NO_LAYOUT"] = "NO_LAYOUT";
    })(InsightWarning || (InsightWarning = {}));
    (function(InsightCategory2) {
      InsightCategory2["ALL"] = "All";
      InsightCategory2["INP"] = "INP";
      InsightCategory2["LCP"] = "LCP";
      InsightCategory2["CLS"] = "CLS";
    })(InsightCategory || (InsightCategory = {}));
    (function(InsightKeys2) {
      InsightKeys2["LCP_BREAKDOWN"] = "LCPBreakdown";
      InsightKeys2["INP_BREAKDOWN"] = "INPBreakdown";
      InsightKeys2["CLS_CULPRITS"] = "CLSCulprits";
      InsightKeys2["THIRD_PARTIES"] = "ThirdParties";
      InsightKeys2["DOCUMENT_LATENCY"] = "DocumentLatency";
      InsightKeys2["DOM_SIZE"] = "DOMSize";
      InsightKeys2["DUPLICATE_JAVASCRIPT"] = "DuplicatedJavaScript";
      InsightKeys2["FONT_DISPLAY"] = "FontDisplay";
      InsightKeys2["FORCED_REFLOW"] = "ForcedReflow";
      InsightKeys2["IMAGE_DELIVERY"] = "ImageDelivery";
      InsightKeys2["LCP_DISCOVERY"] = "LCPDiscovery";
      InsightKeys2["LEGACY_JAVASCRIPT"] = "LegacyJavaScript";
      InsightKeys2["NETWORK_DEPENDENCY_TREE"] = "NetworkDependencyTree";
      InsightKeys2["RENDER_BLOCKING"] = "RenderBlocking";
      InsightKeys2["SLOW_CSS_SELECTOR"] = "SlowCSSSelector";
      InsightKeys2["VIEWPORT"] = "Viewport";
      InsightKeys2["MODERN_HTTP"] = "ModernHTTP";
      InsightKeys2["CACHE"] = "Cache";
      InsightKeys2["CHARACTER_SET"] = "CharacterSet";
    })(InsightKeys || (InsightKeys = {}));
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/Common.js
var Common_exports = {};
__export(Common_exports, {
  calculateDocFirstByteTs: () => calculateDocFirstByteTs,
  calculateMetricWeightsForSorting: () => calculateMetricWeightsForSorting,
  estimateCompressedContentSize: () => estimateCompressedContentSize,
  estimateCompressionRatioForScript: () => estimateCompressionRatioForScript,
  evaluateCLSMetricScore: () => evaluateCLSMetricScore,
  evaluateINPMetricScore: () => evaluateINPMetricScore,
  evaluateLCPMetricScore: () => evaluateLCPMetricScore,
  getCLS: () => getCLS,
  getFieldMetricsForInsightSet: () => getFieldMetricsForInsightSet,
  getINP: () => getINP,
  getInsight: () => getInsight,
  getLCP: () => getLCP,
  insightBounds: () => insightBounds,
  isInsightKey: () => isInsightKey,
  isRequestCompressed: () => isRequestCompressed,
  isRequestServedFromBrowserCache: () => isRequestServedFromBrowserCache,
  metricSavingsForWastedBytes: () => metricSavingsForWastedBytes
});
function getInsight(insightName, insightSet) {
  return insightSet.model[insightName];
}
function isInsightKey(key) {
  return Object.values(InsightKeys).includes(key);
}
function getLCP(insightSet) {
  const insight = getInsight(InsightKeys.LCP_BREAKDOWN, insightSet);
  if (!insight || !insight.lcpMs || !insight.lcpEvent) {
    return null;
  }
  const value = Timing_exports3.milliToMicro(insight.lcpMs);
  return { value, event: insight.lcpEvent };
}
function getINP(insightSet) {
  const insight = getInsight(InsightKeys.INP_BREAKDOWN, insightSet);
  if (!insight?.longestInteractionEvent?.dur) {
    return null;
  }
  const value = insight.longestInteractionEvent.dur;
  return { value, event: insight.longestInteractionEvent };
}
function getCLS(insightSet) {
  const insight = getInsight(InsightKeys.CLS_CULPRITS, insightSet);
  if (!insight) {
    return { value: 0, worstClusterEvent: null };
  }
  let maxScore = 0;
  let worstCluster;
  for (const cluster of insight.clusters) {
    if (cluster.clusterCumulativeScore > maxScore) {
      maxScore = cluster.clusterCumulativeScore;
      worstCluster = cluster;
    }
  }
  return { value: maxScore, worstClusterEvent: worstCluster ?? null };
}
function evaluateLCPMetricScore(value) {
  return getLogNormalScore2({ p10: 2500, median: 4e3 }, value);
}
function evaluateINPMetricScore(value) {
  return getLogNormalScore2({ p10: 200, median: 500 }, value);
}
function evaluateCLSMetricScore(value) {
  return getLogNormalScore2({ p10: 0.1, median: 0.25 }, value);
}
function getPageResult(cruxFieldData, url, origin, scope = null) {
  return cruxFieldData.find((result) => {
    const key = scope ? result[`${scope.pageScope}-${scope.deviceScope}`]?.record.key : (result["url-ALL"] || result["origin-ALL"])?.record.key;
    return key?.url && key.url === url || key?.origin && key.origin === origin;
  });
}
function getMetricResult(pageResult, name, scope = null) {
  const scopes = [];
  if (scope) {
    scopes.push(scope);
  } else {
    scopes.push({ pageScope: "url", deviceScope: "ALL" });
    scopes.push({ pageScope: "origin", deviceScope: "ALL" });
  }
  for (const scope2 of scopes) {
    const key = `${scope2.pageScope}-${scope2.deviceScope}`;
    let value = pageResult[key]?.record.metrics[name]?.percentiles?.p75;
    if (typeof value === "string") {
      value = Number(value);
    }
    if (typeof value === "number" && Number.isFinite(value)) {
      return { value, pageScope: scope2.pageScope };
    }
  }
  return null;
}
function getMetricTimingResult(pageResult, name, scope = null) {
  const result = getMetricResult(pageResult, name, scope);
  if (result) {
    const valueMs = result.value;
    return { value: Timing_exports3.milliToMicro(valueMs), pageScope: result.pageScope };
  }
  return null;
}
function getFieldMetricsForInsightSet(insightSet, metadata, scope = null) {
  const cruxFieldData = metadata?.cruxFieldData;
  if (!cruxFieldData) {
    return null;
  }
  const pageResult = getPageResult(cruxFieldData, insightSet.url.href, insightSet.url.origin, scope);
  if (!pageResult) {
    return null;
  }
  return {
    fcp: getMetricTimingResult(pageResult, "first_contentful_paint", scope),
    lcp: getMetricTimingResult(pageResult, "largest_contentful_paint", scope),
    inp: getMetricTimingResult(pageResult, "interaction_to_next_paint", scope),
    cls: getMetricResult(pageResult, "cumulative_layout_shift", scope),
    lcpBreakdown: {
      ttfb: getMetricTimingResult(pageResult, "largest_contentful_paint_image_time_to_first_byte", scope),
      loadDelay: getMetricTimingResult(pageResult, "largest_contentful_paint_image_resource_load_delay", scope),
      loadDuration: getMetricTimingResult(pageResult, "largest_contentful_paint_image_resource_load_duration", scope),
      renderDelay: getMetricTimingResult(pageResult, "largest_contentful_paint_image_element_render_delay", scope)
    }
  };
}
function calculateMetricWeightsForSorting(insightSet, metadata) {
  const weights = {
    lcp: 1 / 3,
    inp: 1 / 3,
    cls: 1 / 3
  };
  const cruxFieldData = metadata?.cruxFieldData;
  if (!cruxFieldData) {
    return weights;
  }
  const fieldMetrics = getFieldMetricsForInsightSet(insightSet, metadata);
  if (!fieldMetrics) {
    return weights;
  }
  const fieldLcp = fieldMetrics.lcp?.value ?? null;
  const fieldInp = fieldMetrics.inp?.value ?? null;
  const fieldCls = fieldMetrics.cls?.value ?? null;
  const fieldLcpScore = fieldLcp !== null ? evaluateLCPMetricScore(Timing_exports3.microToMilli(fieldLcp)) : 0;
  const fieldInpScore = fieldInp !== null ? evaluateINPMetricScore(Timing_exports3.microToMilli(fieldInp)) : 0;
  const fieldClsScore = fieldCls !== null ? evaluateCLSMetricScore(fieldCls) : 0;
  const fieldLcpScoreInverted = 1 - fieldLcpScore;
  const fieldInpScoreInverted = 1 - fieldInpScore;
  const fieldClsScoreInverted = 1 - fieldClsScore;
  const invertedSum = fieldLcpScoreInverted + fieldInpScoreInverted + fieldClsScoreInverted;
  if (!invertedSum) {
    return weights;
  }
  weights.lcp = fieldLcpScoreInverted / invertedSum;
  weights.inp = fieldInpScoreInverted / invertedSum;
  weights.cls = fieldClsScoreInverted / invertedSum;
  return weights;
}
function estimateSavingsWithGraphs(wastedBytesByRequestId, simulator, graph2) {
  const simulationBeforeChanges = simulator.simulate(graph2);
  const originalTransferSizes = /* @__PURE__ */ new Map();
  graph2.traverse((node) => {
    if (node.type !== "network") {
      return;
    }
    const wastedBytes = wastedBytesByRequestId.get(node.request.requestId);
    if (!wastedBytes) {
      return;
    }
    const original = node.request.transferSize;
    originalTransferSizes.set(node.request.requestId, original);
    node.request.transferSize = Math.max(original - wastedBytes, 0);
  });
  const simulationAfterChanges = simulator.simulate(graph2);
  graph2.traverse((node) => {
    if (node.type !== "network") {
      return;
    }
    const originalTransferSize = originalTransferSizes.get(node.request.requestId);
    if (originalTransferSize === void 0) {
      return;
    }
    node.request.transferSize = originalTransferSize;
  });
  let savings = simulationBeforeChanges.timeInMs - simulationAfterChanges.timeInMs;
  savings = Math.round(savings / GRAPH_SAVINGS_PRECISION) * GRAPH_SAVINGS_PRECISION;
  return Timing_exports.Milli(savings);
}
function metricSavingsForWastedBytes(wastedBytesByRequestId, context) {
  if (!context.navigation || !context.lantern) {
    return;
  }
  if (!wastedBytesByRequestId.size) {
    return { FCP: Timing_exports.Milli(0), LCP: Timing_exports.Milli(0) };
  }
  const simulator = context.lantern.simulator;
  const fcpGraph = context.lantern.metrics.firstContentfulPaint.optimisticGraph;
  const lcpGraph = context.lantern.metrics.largestContentfulPaint.optimisticGraph;
  return {
    FCP: estimateSavingsWithGraphs(wastedBytesByRequestId, simulator, fcpGraph),
    LCP: estimateSavingsWithGraphs(wastedBytesByRequestId, simulator, lcpGraph)
  };
}
function isRequestCompressed(request) {
  if (!request.args.data.responseHeaders) {
    return false;
  }
  const patterns = [
    /^content-encoding$/i,
    /^x-content-encoding-over-network$/i,
    /^x-original-content-encoding$/i
    // Lightrider.
  ];
  const compressionTypes = ["gzip", "br", "deflate", "zstd"];
  return request.args.data.responseHeaders.some((header) => patterns.some((p) => header.name.match(p)) && compressionTypes.includes(header.value));
}
function isRequestServedFromBrowserCache(request) {
  if (!request.args.data.responseHeaders || request.args.data.failed) {
    return false;
  }
  if (request.args.data.statusCode === 304) {
    return true;
  }
  const { transferSize, resourceSize } = getRequestSizes(request);
  const ratio = resourceSize ? transferSize / resourceSize : 0;
  if (ratio < 0.01) {
    return true;
  }
  return false;
}
function getRequestSizes(request) {
  const resourceSize = request.args.data.decodedBodyLength;
  const transferSize = request.args.data.encodedDataLength;
  return { resourceSize, transferSize };
}
function estimateCompressedContentSize(request, totalBytes, resourceType) {
  if (!request || isRequestServedFromBrowserCache(request)) {
    switch (resourceType) {
      case "Stylesheet":
        return Math.round(totalBytes * 0.2);
      case "Script":
      case "Document":
        return Math.round(totalBytes * 0.33);
      default:
        return Math.round(totalBytes * 0.5);
    }
  }
  const { transferSize, resourceSize } = getRequestSizes(request);
  let contentTransferSize = transferSize;
  if (!isRequestCompressed(request)) {
    contentTransferSize = resourceSize;
  }
  if (request.args.data.resourceType === resourceType) {
    return contentTransferSize;
  }
  const compressionRatio = Number.isFinite(resourceSize) && resourceSize > 0 ? contentTransferSize / resourceSize : 1;
  return Math.round(totalBytes * compressionRatio);
}
function estimateCompressionRatioForScript(script) {
  if (!script.request) {
    return 1;
  }
  const request = script.request;
  const contentLength = request.args.data.decodedBodyLength ?? script.content?.length ?? 0;
  const compressedSize = estimateCompressedContentSize(
    request,
    contentLength,
    "Script"
    /* Protocol.Network.ResourceType.Script */
  );
  if (contentLength === 0 || compressedSize === 0) {
    return 1;
  }
  const compressionRatio = compressedSize / contentLength;
  return compressionRatio;
}
function calculateDocFirstByteTs(docRequest) {
  if (docRequest.args.data.protocol === "file") {
    return docRequest.ts;
  }
  const isLightrider = globalThis.isLightrider;
  if (isLightrider) {
    const lrServerResponseTime = docRequest.args.data.lrServerResponseTime;
    if (lrServerResponseTime !== void 0) {
      return Timing_exports.Micro(docRequest.ts + Timing_exports3.milliToMicro(lrServerResponseTime));
    }
  }
  const timing = docRequest.args.data.timing;
  if (!timing) {
    return null;
  }
  return Timing_exports.Micro(Timing_exports3.secondsToMicro(timing.requestTime) + Timing_exports3.milliToMicro(timing.receiveHeadersStart ?? timing.receiveHeadersEnd));
}
function insightBounds(insight, insightSetBounds) {
  const overlays = insight.createOverlays?.() ?? [];
  const windows = overlays.map(Timing_exports3.traceWindowFromOverlay).filter((bounds) => !!bounds);
  const overlaysBounds = Timing_exports3.combineTraceWindowsMicro(windows);
  if (overlaysBounds) {
    return overlaysBounds;
  }
  return insightSetBounds;
}
var GRAPH_SAVINGS_PRECISION;
var init_Common = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/Common.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    init_Statistics();
    init_types4();
    GRAPH_SAVINGS_PRECISION = 50;
    __name(getInsight, "getInsight");
    __name(isInsightKey, "isInsightKey");
    __name(getLCP, "getLCP");
    __name(getINP, "getINP");
    __name(getCLS, "getCLS");
    __name(evaluateLCPMetricScore, "evaluateLCPMetricScore");
    __name(evaluateINPMetricScore, "evaluateINPMetricScore");
    __name(evaluateCLSMetricScore, "evaluateCLSMetricScore");
    __name(getPageResult, "getPageResult");
    __name(getMetricResult, "getMetricResult");
    __name(getMetricTimingResult, "getMetricTimingResult");
    __name(getFieldMetricsForInsightSet, "getFieldMetricsForInsightSet");
    __name(calculateMetricWeightsForSorting, "calculateMetricWeightsForSorting");
    __name(estimateSavingsWithGraphs, "estimateSavingsWithGraphs");
    __name(metricSavingsForWastedBytes, "metricSavingsForWastedBytes");
    __name(isRequestCompressed, "isRequestCompressed");
    __name(isRequestServedFromBrowserCache, "isRequestServedFromBrowserCache");
    __name(getRequestSizes, "getRequestSizes");
    __name(estimateCompressedContentSize, "estimateCompressedContentSize");
    __name(estimateCompressionRatioForScript, "estimateCompressionRatioForScript");
    __name(calculateDocFirstByteTs, "calculateDocFirstByteTs");
    __name(insightBounds, "insightBounds");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/Cache.js
var Cache_exports = {};
__export(Cache_exports, {
  UIStrings: () => UIStrings2,
  cachingDisabled: () => cachingDisabled,
  computeCacheLifetimeInSeconds: () => computeCacheLifetimeInSeconds,
  createOverlayForRequest: () => createOverlayForRequest,
  createOverlays: () => createOverlays,
  generateInsight: () => generateInsight,
  getCombinedHeaders: () => getCombinedHeaders,
  i18nString: () => i18nString,
  isCacheInsight: () => isCacheInsight,
  isCacheable: () => isCacheable
});
function finalize31(partialModel) {
  return {
    insightKey: InsightKeys.CACHE,
    strings: UIStrings2,
    title: i18nString(UIStrings2.title),
    description: i18nString(UIStrings2.description),
    docs: "https://developer.chrome.com/docs/performance/insights/cache",
    category: InsightCategory.ALL,
    state: partialModel.requests.length > 0 ? "fail" : "pass",
    ...partialModel
  };
}
function isCacheable(request) {
  if (Network_exports.NON_NETWORK_SCHEMES.includes(request.args.data.protocol)) {
    return false;
  }
  return Boolean(Network_exports.CACHEABLE_STATUS_CODES.has(request.args.data.statusCode) && Network_exports.STATIC_RESOURCE_TYPES.has(
    request.args.data.resourceType || "Other"
    /* Protocol.Network.ResourceType.Other */
  ));
}
function computeCacheLifetimeInSeconds(headers, cacheControl) {
  if (cacheControl?.["max-age"] !== void 0) {
    return cacheControl["max-age"];
  }
  const expiresHeaders = headers.find((h) => h.name === "expires")?.value ?? null;
  if (expiresHeaders) {
    const expires = new Date(expiresHeaders).getTime();
    if (!expires) {
      return 0;
    }
    return Math.ceil((expires - Date.now()) / 1e3);
  }
  return null;
}
function getCacheHitProbability(maxAgeInSeconds) {
  const RESOURCE_AGE_IN_HOURS_DECILES = [0, 0.2, 1, 3, 8, 12, 24, 48, 72, 168, 8760, Infinity];
  const maxAgeInHours = maxAgeInSeconds / 3600;
  const upperDecileIndex = RESOURCE_AGE_IN_HOURS_DECILES.findIndex((decile) => decile >= maxAgeInHours);
  if (upperDecileIndex === RESOURCE_AGE_IN_HOURS_DECILES.length - 1) {
    return 1;
  }
  if (upperDecileIndex === 0) {
    return 0;
  }
  const upperDecileValue = RESOURCE_AGE_IN_HOURS_DECILES[upperDecileIndex];
  const lowerDecileValue = RESOURCE_AGE_IN_HOURS_DECILES[upperDecileIndex - 1];
  const upperDecile = upperDecileIndex / 10;
  const lowerDecile = (upperDecileIndex - 1) / 10;
  return linearInterpolation(lowerDecileValue, lowerDecile, upperDecileValue, upperDecile, maxAgeInHours);
}
function getCombinedHeaders(responseHeaders) {
  const headers = /* @__PURE__ */ new Map();
  for (const header of responseHeaders) {
    const name = header.name.toLowerCase();
    if (headers.get(name)) {
      headers.set(name, `${headers.get(name)}, ${header.value}`);
    } else {
      headers.set(name, header.value);
    }
  }
  return headers;
}
function cachingDisabled(headers, parsedCacheControl) {
  const cacheControl = headers?.get("cache-control") ?? null;
  const pragma = headers?.get("pragma") ?? null;
  if (!cacheControl && pragma?.includes("no-cache")) {
    return true;
  }
  if (parsedCacheControl && (parsedCacheControl["must-revalidate"] || parsedCacheControl["no-cache"] || parsedCacheControl["no-store"] || parsedCacheControl["private"])) {
    return true;
  }
  return false;
}
function isCacheInsight(model2) {
  return model2.insightKey === InsightKeys.CACHE;
}
function generateInsight(data31, context) {
  const isWithinContext = /* @__PURE__ */ __name((event) => Timing_exports3.eventIsInBounds(event, context.bounds), "isWithinContext");
  const contextRequests = data31.NetworkRequests.byTime.filter(isWithinContext);
  const results = [];
  let totalWastedBytes = 0;
  const wastedBytesByRequestId = /* @__PURE__ */ new Map();
  for (const req of contextRequests) {
    if (!req.args.data.responseHeaders || !isCacheable(req)) {
      continue;
    }
    const headers = getCombinedHeaders(req.args.data.responseHeaders);
    const cacheControl = headers.get("cache-control") ?? null;
    const parsedDirectives = Network_exports.parseCacheControl(cacheControl);
    if (cachingDisabled(headers, parsedDirectives)) {
      continue;
    }
    let ttl = computeCacheLifetimeInSeconds(req.args.data.responseHeaders, parsedDirectives);
    if (ttl !== null && (!Number.isFinite(ttl) || ttl <= 0)) {
      continue;
    }
    ttl = ttl || 0;
    const ttlDays = ttl / 86400;
    if (ttlDays >= 30) {
      continue;
    }
    const cacheHitProbability = getCacheHitProbability(ttl);
    if (cacheHitProbability > IGNORE_THRESHOLD_IN_PERCENT) {
      continue;
    }
    const transferSize = req.args.data.encodedDataLength || 0;
    const wastedBytes = (1 - cacheHitProbability) * transferSize;
    wastedBytesByRequestId.set(req.args.data.requestId, wastedBytes);
    totalWastedBytes += wastedBytes;
    results.push({ request: req, ttl, wastedBytes });
  }
  results.sort((a, b) => {
    return b.request.args.data.decodedBodyLength - a.request.args.data.decodedBodyLength || a.ttl - b.ttl;
  });
  return finalize31({
    relatedEvents: results.map((r) => r.request),
    requests: results,
    metricSavings: metricSavingsForWastedBytes(wastedBytesByRequestId, context),
    wastedBytes: totalWastedBytes
  });
}
function createOverlayForRequest(request) {
  return {
    type: "ENTRY_OUTLINE",
    entry: request,
    outlineReason: "ERROR"
  };
}
function createOverlays(model2) {
  return model2.requests.map((req) => createOverlayForRequest(req.request));
}
var UIStrings2, i18nString, IGNORE_THRESHOLD_IN_PERCENT;
var init_Cache = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/Cache.js"() {
    init_process_global();
    init_helpers2();
    init_Common();
    init_Statistics();
    init_types4();
    UIStrings2 = {
      /**
       * @description Title of an insight that provides information and suggestions of resources that could improve their caching.
       */
      title: "Use efficient cache lifetimes",
      /**
       * @description Text to tell the user about how caching can help improve performance.
       */
      description: "A long cache lifetime can speed up repeat visits to your page. [Learn more about caching](https://developer.chrome.com/docs/performance/insights/cache).",
      /**
       * @description Column for a font loaded by the page to render text.
       */
      requestColumn: "Request",
      /**
       * @description Column for a resource cache's Time To Live.
       */
      cacheTTL: "Cache TTL",
      /**
       * @description Text describing that there were no requests found that need caching.
       */
      noRequestsToCache: "No requests with inefficient cache policies",
      /**
       * @description Table row value representing the remaining items not shown in the table due to size constraints. This row will always represent at least 2 items.
       * @example {5} PH1
       */
      others: "{PH1} others"
    };
    i18nString = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    IGNORE_THRESHOLD_IN_PERCENT = 0.925;
    __name(finalize31, "finalize");
    __name(isCacheable, "isCacheable");
    __name(computeCacheLifetimeInSeconds, "computeCacheLifetimeInSeconds");
    __name(getCacheHitProbability, "getCacheHitProbability");
    __name(getCombinedHeaders, "getCombinedHeaders");
    __name(cachingDisabled, "cachingDisabled");
    __name(isCacheInsight, "isCacheInsight");
    __name(generateInsight, "generateInsight");
    __name(createOverlayForRequest, "createOverlayForRequest");
    __name(createOverlays, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/CharacterSet.js
var CharacterSet_exports = {};
__export(CharacterSet_exports, {
  UIStrings: () => UIStrings3,
  createOverlays: () => createOverlays2,
  generateInsight: () => generateInsight2,
  i18nString: () => i18nString2,
  isCharacterSetInsight: () => isCharacterSetInsight
});
function isCharacterSetInsight(model2) {
  return model2.insightKey === InsightKeys.CHARACTER_SET;
}
function finalize32(partialModel) {
  let hasFailure = false;
  if (partialModel.data) {
    hasFailure = !partialModel.data.checklist.httpCharset.value && !partialModel.data.checklist.metaCharset.value;
  }
  return {
    insightKey: InsightKeys.CHARACTER_SET,
    strings: UIStrings3,
    title: i18nString2(UIStrings3.title),
    description: i18nString2(UIStrings3.description),
    docs: "https://developer.chrome.com/docs/insights/charset/",
    category: InsightCategory.ALL,
    state: hasFailure ? "fail" : "pass",
    ...partialModel
  };
}
function hasCharsetInContentType(request) {
  if (!request.args.data.responseHeaders) {
    return false;
  }
  for (const header of request.args.data.responseHeaders) {
    if (header.name.toLowerCase() === "content-type") {
      return CHARSET_HTTP_REGEX.test(header.value);
    }
  }
  return false;
}
function findMetaCharsetDisposition(data31, context) {
  if (!context.navigation) {
    return void 0;
  }
  return data31.PageLoadMetrics.metaCharsetCheckEventsByNavigation.get(context.navigation)?.at(-1)?.args.data?.disposition;
}
function metaCharsetLabel(disposition) {
  switch (disposition) {
    case "found-in-first-1024-bytes":
      return i18nString2(UIStrings3.passingMetaCharsetEarly);
    case "found-after-first-1024-bytes":
      return i18nString2(UIStrings3.failedMetaCharsetLate);
    case "not-found":
      return i18nString2(UIStrings3.failedMetaCharsetMissing);
    default:
      return i18nString2(UIStrings3.failedMetaCharsetUnknown);
  }
}
function generateInsight2(data31, context) {
  if (!context.navigation) {
    return finalize32({});
  }
  const documentRequest = data31.NetworkRequests.byId.get(context.navigationId);
  if (!documentRequest) {
    return finalize32({ warnings: [InsightWarning.NO_DOCUMENT_REQUEST] });
  }
  const hasHttpCharset = hasCharsetInContentType(documentRequest);
  const metaCharsetDisposition = findMetaCharsetDisposition(data31, context);
  const hasMetaCharsetInFirst1024Bytes = metaCharsetDisposition === "found-in-first-1024-bytes";
  return finalize32({
    relatedEvents: [documentRequest],
    data: {
      hasHttpCharset,
      metaCharsetDisposition,
      documentRequest,
      checklist: {
        httpCharset: {
          label: hasHttpCharset ? i18nString2(UIStrings3.passingHttpHeader) : i18nString2(UIStrings3.failedHttpHeader),
          value: hasHttpCharset
        },
        metaCharset: {
          label: metaCharsetLabel(metaCharsetDisposition),
          value: hasMetaCharsetInFirst1024Bytes
        }
      }
    }
  });
}
function createOverlays2(model2) {
  if (!model2.data?.documentRequest) {
    return [];
  }
  return [{
    type: "ENTRY_SELECTED",
    entry: model2.data.documentRequest
  }];
}
var UIStrings3, i18nString2, CHARSET_HTTP_REGEX;
var init_CharacterSet = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/CharacterSet.js"() {
    init_process_global();
    init_types4();
    UIStrings3 = {
      /**
       * @description Title of an insight that checks whether the page declares a character encoding early enough.
       */
      title: "Declare a character encoding",
      /**
       * @description Description of an insight that checks whether the page has a proper character encoding declaration via HTTP header or early meta tag.
       */
      description: "A character encoding declaration is required. It can be done with a meta charset tag in the first 1024 bytes of the HTML or in the Content-Type HTTP response header. [Learn more about declaring the character encoding](https://developer.chrome.com/docs/insights/charset/).",
      /**
       * @description Text to tell the user that the charset is declared in the Content-Type HTTP response header.
       */
      passingHttpHeader: "Declares charset in HTTP header",
      /**
       * @description Text to tell the user that the charset is NOT declared in the Content-Type HTTP response header.
       */
      failedHttpHeader: "Does not declare charset in HTTP header",
      /**
       * @description Text to tell the user that a meta charset tag was found in the first 1024 bytes of the HTML.
       */
      passingMetaCharsetEarly: "Declares charset using a meta tag in the first 1024 bytes",
      /**
       * @description Text to tell the user that a meta charset tag was found, but too late in the HTML.
       */
      failedMetaCharsetLate: "Declares charset using a meta tag after the first 1024 bytes",
      /**
       * @description Text to tell the user that no meta charset tag was found in the HTML.
       */
      failedMetaCharsetMissing: "Does not declare charset using a meta tag",
      /**
       * @description Text to tell the user that trace data did not include the Blink signal for meta charset.
       */
      failedMetaCharsetUnknown: "Could not determine meta charset declaration from trace"
    };
    i18nString2 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    CHARSET_HTTP_REGEX = /charset\s*=\s*[a-zA-Z0-9\-_:.()]{2,}/i;
    __name(isCharacterSetInsight, "isCharacterSetInsight");
    __name(finalize32, "finalize");
    __name(hasCharsetInContentType, "hasCharsetInContentType");
    __name(findMetaCharsetDisposition, "findMetaCharsetDisposition");
    __name(metaCharsetLabel, "metaCharsetLabel");
    __name(generateInsight2, "generateInsight");
    __name(createOverlays2, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/CLSCulprits.js
var CLSCulprits_exports = {};
__export(CLSCulprits_exports, {
  AnimationFailureReasons: () => AnimationFailureReasons,
  LayoutShiftType: () => LayoutShiftType,
  UIStrings: () => UIStrings4,
  createOverlays: () => createOverlays3,
  generateInsight: () => generateInsight3,
  getNonCompositedFailure: () => getNonCompositedFailure,
  i18nString: () => i18nString3,
  isCLSCulpritsInsight: () => isCLSCulpritsInsight
});
function isInRootCauseWindow(event, targetEvent) {
  const eventEnd = event.dur ? event.ts + event.dur : event.ts;
  return eventEnd < targetEvent.ts && eventEnd >= targetEvent.ts - ROOT_CAUSE_WINDOW;
}
function getNonCompositedFailure(animationEvent) {
  const failures = [];
  const beginEvent = animationEvent.args.data.beginEvent;
  const instantEvents = animationEvent.args.data.instantEvents || [];
  for (const event of instantEvents) {
    const failureMask = event.args.data.compositeFailed;
    const unsupportedProperties = event.args.data.unsupportedProperties;
    if (!failureMask) {
      continue;
    }
    const failureReasons = ACTIONABLE_FAILURE_REASONS.filter((reason) => failureMask & reason.flag).map((reason) => reason.failure);
    const failure = {
      name: beginEvent.args.data.displayName,
      failureReasons,
      unsupportedProperties,
      animation: animationEvent
    };
    failures.push(failure);
  }
  return failures;
}
function getNonCompositedFailureRootCauses(animationEvents, prePaintEvents2, shiftsByPrePaint, rootCausesByShift) {
  const allAnimationFailures = [];
  for (const animation of animationEvents) {
    const failures = getNonCompositedFailure(animation);
    if (!failures) {
      continue;
    }
    allAnimationFailures.push(...failures);
    const nextPrePaint = getNextEvent(prePaintEvents2, animation);
    if (!nextPrePaint) {
      continue;
    }
    if (!isInRootCauseWindow(animation, nextPrePaint)) {
      continue;
    }
    const shifts = shiftsByPrePaint.get(nextPrePaint);
    if (!shifts) {
      continue;
    }
    for (const shift of shifts) {
      const rootCausesForShift = rootCausesByShift.get(shift);
      if (!rootCausesForShift) {
        throw new Error("Unaccounted shift");
      }
      rootCausesForShift.nonCompositedAnimations.push(...failures);
    }
  }
  return allAnimationFailures;
}
function getShiftsByPrePaintEvents(layoutShifts, prePaintEvents2) {
  const shiftsByPrePaint = /* @__PURE__ */ new Map();
  for (const prePaintEvent of prePaintEvents2) {
    const firstShiftIndex = ArrayUtilities_exports.nearestIndexFromBeginning(layoutShifts, (shift) => shift.ts >= prePaintEvent.ts);
    if (firstShiftIndex === null) {
      continue;
    }
    for (let i = firstShiftIndex; i < layoutShifts.length; i++) {
      const shift = layoutShifts[i];
      if (shift.ts >= prePaintEvent.ts && shift.ts <= prePaintEvent.ts + prePaintEvent.dur) {
        const shiftsInPrePaint = MapUtilities_exports.getWithDefault(shiftsByPrePaint, prePaintEvent, () => []);
        shiftsInPrePaint.push(shift);
      }
      if (shift.ts > prePaintEvent.ts + prePaintEvent.dur) {
        break;
      }
    }
  }
  return shiftsByPrePaint;
}
function getNextEvent(sourceEvents, targetEvent) {
  const index = ArrayUtilities_exports.nearestIndexFromBeginning(sourceEvents, (source) => source.ts > targetEvent.ts + (targetEvent.dur || 0));
  if (index === null) {
    return void 0;
  }
  return sourceEvents[index];
}
function getIframeRootCauses(data31, iframeCreatedEvents, prePaintEvents2, shiftsByPrePaint, rootCausesByShift, domLoadingEvents2) {
  for (const iframeEvent of iframeCreatedEvents) {
    const nextPrePaint = getNextEvent(prePaintEvents2, iframeEvent);
    if (!nextPrePaint) {
      continue;
    }
    const shifts = shiftsByPrePaint.get(nextPrePaint);
    if (!shifts) {
      continue;
    }
    for (const shift of shifts) {
      const rootCausesForShift = rootCausesByShift.get(shift);
      if (!rootCausesForShift) {
        throw new Error("Unaccounted shift");
      }
      const domEvent = domLoadingEvents2.find((e) => {
        const maxIframe = Timing_exports.Micro(iframeEvent.ts + (iframeEvent.dur ?? 0));
        return e.ts >= iframeEvent.ts && e.ts <= maxIframe;
      });
      if (domEvent?.args.frame) {
        const frame = domEvent.args.frame;
        let url;
        const processes2 = data31.Meta.rendererProcessesByFrame.get(frame);
        if (processes2 && processes2.size > 0) {
          url = [...processes2.values()][0]?.[0].frame.url;
        }
        rootCausesForShift.iframes.push({ frame, url });
      }
    }
  }
  return rootCausesByShift;
}
function getUnsizedImageRootCauses(unsizedImageEvents, paintImageEvents3, shiftsByPrePaint, rootCausesByShift) {
  shiftsByPrePaint.forEach((shifts, prePaint) => {
    const paintImage = getNextEvent(paintImageEvents3, prePaint);
    if (!paintImage) {
      return;
    }
    const matchingNode = unsizedImageEvents.find((unsizedImage) => unsizedImage.args.data.nodeId === paintImage.args.data.nodeId);
    if (!matchingNode) {
      return;
    }
    for (const shift of shifts) {
      const rootCausesForShift = rootCausesByShift.get(shift);
      if (!rootCausesForShift) {
        throw new Error("Unaccounted shift");
      }
      rootCausesForShift.unsizedImages.push({
        backendNodeId: matchingNode.args.data.nodeId,
        paintImageEvent: paintImage
      });
    }
  });
  return rootCausesByShift;
}
function isCLSCulpritsInsight(insight) {
  return insight.insightKey === InsightKeys.CLS_CULPRITS;
}
function getFontRootCauses(networkRequests, prePaintEvents2, shiftsByPrePaint, rootCausesByShift) {
  const fontRequests = networkRequests.filter((req) => req.args.data.resourceType === "Font" && req.args.data.mimeType.startsWith("font"));
  for (const req of fontRequests) {
    const nextPrePaint = getNextEvent(prePaintEvents2, req);
    if (!nextPrePaint) {
      continue;
    }
    if (!isInRootCauseWindow(req, nextPrePaint)) {
      continue;
    }
    const shifts = shiftsByPrePaint.get(nextPrePaint);
    if (!shifts) {
      continue;
    }
    for (const shift of shifts) {
      const rootCausesForShift = rootCausesByShift.get(shift);
      if (!rootCausesForShift) {
        throw new Error("Unaccounted shift");
      }
      rootCausesForShift.webFonts.push(req);
    }
  }
  return rootCausesByShift;
}
function getTopCulprits(cluster, culpritsByShift) {
  const MAX_TOP_CULPRITS = 3;
  const causes = [];
  const shifts = cluster.events;
  for (const shift of shifts) {
    const culprits = culpritsByShift.get(shift);
    if (!culprits) {
      continue;
    }
    const fontReq = culprits.webFonts;
    const iframes = culprits.iframes;
    const animations2 = culprits.nonCompositedAnimations;
    const unsizedImages = culprits.unsizedImages;
    for (let i = 0; i < fontReq.length && causes.length < MAX_TOP_CULPRITS; i++) {
      causes.push({ type: LayoutShiftType.WEB_FONT, description: i18nString3(UIStrings4.webFont) });
    }
    for (let i = 0; i < iframes.length && causes.length < MAX_TOP_CULPRITS; i++) {
      causes.push({ type: LayoutShiftType.IFRAMES, description: i18nString3(UIStrings4.injectedIframe) });
    }
    for (let i = 0; i < animations2.length && causes.length < MAX_TOP_CULPRITS; i++) {
      causes.push({ type: LayoutShiftType.ANIMATIONS, description: i18nString3(UIStrings4.animation) });
    }
    for (let i = 0; i < unsizedImages.length && causes.length < MAX_TOP_CULPRITS; i++) {
      causes.push({
        type: LayoutShiftType.UNSIZED_IMAGE,
        description: i18nString3(UIStrings4.unsizedImage),
        url: unsizedImages[i].paintImageEvent.args.data.url || "",
        backendNodeId: unsizedImages[i].backendNodeId,
        frame: unsizedImages[i].paintImageEvent.args.data.frame || ""
      });
    }
    if (causes.length >= MAX_TOP_CULPRITS) {
      break;
    }
  }
  return causes.slice(0, MAX_TOP_CULPRITS);
}
function finalize33(partialModel) {
  let state = "pass";
  if (partialModel.worstCluster) {
    const classification = ModelHandlers_exports.LayoutShifts.scoreClassificationForLayoutShift(partialModel.worstCluster.clusterCumulativeScore);
    if (classification === ModelHandlers_exports.PageLoadMetrics.ScoreClassification.GOOD) {
      state = "informative";
    } else {
      state = "fail";
    }
  }
  return {
    insightKey: InsightKeys.CLS_CULPRITS,
    strings: UIStrings4,
    title: i18nString3(UIStrings4.title),
    description: i18nString3(UIStrings4.description),
    docs: "https://developer.chrome.com/docs/performance/insights/cls-culprit",
    category: InsightCategory.CLS,
    state,
    ...partialModel
  };
}
function generateInsight3(data31, context) {
  const isWithinContext = /* @__PURE__ */ __name((event) => Timing_exports3.eventIsInBounds(event, context.bounds), "isWithinContext");
  const compositeAnimationEvents = data31.Animations.animations.filter(isWithinContext);
  const iframeEvents = data31.LayoutShifts.renderFrameImplCreateChildFrameEvents.filter(isWithinContext);
  const networkRequests = data31.NetworkRequests.byTime.filter(isWithinContext);
  const domLoadingEvents2 = data31.LayoutShifts.domLoadingEvents.filter(isWithinContext);
  const unsizedImageEvents = data31.LayoutShifts.layoutImageUnsizedEvents.filter(isWithinContext);
  const clusterKey = context.navigation ? context.navigationId : TraceEvents_exports.NO_NAVIGATION;
  const clusters2 = data31.LayoutShifts.clustersByNavigationId.get(clusterKey) ?? [];
  const clustersByScore = [...clusters2].sort((a, b) => b.clusterCumulativeScore - a.clusterCumulativeScore);
  const worstCluster = clustersByScore.at(0);
  const layoutShifts = clusters2.flatMap((cluster) => cluster.events);
  const prePaintEvents2 = data31.LayoutShifts.prePaintEvents.filter(isWithinContext);
  const paintImageEvents3 = data31.LayoutShifts.paintImageEvents.filter(isWithinContext);
  const rootCausesByShift = /* @__PURE__ */ new Map();
  const shiftsByPrePaint = getShiftsByPrePaintEvents(layoutShifts, prePaintEvents2);
  for (const shift of layoutShifts) {
    rootCausesByShift.set(shift, { iframes: [], webFonts: [], nonCompositedAnimations: [], unsizedImages: [] });
  }
  getIframeRootCauses(data31, iframeEvents, prePaintEvents2, shiftsByPrePaint, rootCausesByShift, domLoadingEvents2);
  getFontRootCauses(networkRequests, prePaintEvents2, shiftsByPrePaint, rootCausesByShift);
  getUnsizedImageRootCauses(unsizedImageEvents, paintImageEvents3, shiftsByPrePaint, rootCausesByShift);
  const animationFailures = getNonCompositedFailureRootCauses(compositeAnimationEvents, prePaintEvents2, shiftsByPrePaint, rootCausesByShift);
  const relatedEvents = [...layoutShifts];
  if (worstCluster) {
    relatedEvents.push(worstCluster);
  }
  const topCulpritsByCluster = /* @__PURE__ */ new Map();
  for (const cluster of clusters2) {
    topCulpritsByCluster.set(cluster, getTopCulprits(cluster, rootCausesByShift));
  }
  return finalize33({
    relatedEvents,
    animationFailures,
    shifts: rootCausesByShift,
    clusters: clusters2,
    worstCluster,
    topCulpritsByCluster
  });
}
function createOverlays3(model2) {
  const clustersByScore = model2.clusters.toSorted((a, b) => b.clusterCumulativeScore - a.clusterCumulativeScore) ?? [];
  const worstCluster = clustersByScore[0];
  if (!worstCluster) {
    return [];
  }
  const range = Timing_exports.Micro(worstCluster.dur ?? 0);
  const max = Timing_exports.Micro(worstCluster.ts + range);
  return [{
    type: "TIMESPAN_BREAKDOWN",
    sections: [
      {
        bounds: { min: worstCluster.ts, range, max },
        label: i18nString3(UIStrings4.worstLayoutShiftCluster),
        showDuration: false
      }
    ],
    // This allows for the overlay to sit over the layout shift.
    entry: worstCluster.events[0],
    renderLocation: "ABOVE_EVENT"
  }];
}
var UIStrings4, i18nString3, AnimationFailureReasons, LayoutShiftType, ACTIONABLE_FAILURE_REASONS, ROOT_CAUSE_WINDOW;
var init_CLSCulprits = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/CLSCulprits.js"() {
    init_process_global();
    init_platform();
    init_handlers();
    init_helpers2();
    init_types2();
    init_types4();
    UIStrings4 = {
      /** Title of an insight that provides details about why elements shift/move on the page. The causes for these shifts are referred to as culprits ("reasons"). */
      title: "Layout shift culprits",
      /**
       * @description Description of a DevTools insight that identifies the reasons that elements shift on the page.
       * This is displayed after a user expands the section to see more. No character length limits.
       */
      description: "Layout shifts occur when elements move absent any user interaction. [Investigate the causes of layout shifts](https://developer.chrome.com/docs/performance/insights/cls-culprit), such as elements being added, removed, or their fonts changing as the page loads.",
      /**
       * @description Text indicating the worst layout shift cluster.
       */
      worstLayoutShiftCluster: "Worst layout shift cluster",
      /**
       * @description Text indicating the worst layout shift cluster.
       */
      worstCluster: "Worst cluster",
      /**
       * @description Text indicating a layout shift cluster and its start time.
       * @example {32 ms} PH1
       */
      layoutShiftCluster: "Layout shift cluster @ {PH1}",
      /**
       * @description Text indicating the biggest reasons for the layout shifts.
       */
      topCulprits: "Top layout shift culprits",
      /**
       * @description Text for a culprit type of Injected iframe.
       */
      injectedIframe: "Injected iframe",
      /**
       * @description Text for a culprit type of web font request.
       */
      webFont: "Web font",
      /**
       * @description Text for a culprit type of Animation.
       */
      animation: "Animation",
      /**
       * @description Text for a culprit type of Unsized image.
       */
      unsizedImage: "Unsized image element",
      /**
       * @description Text status when there were no layout shifts detected.
       */
      noLayoutShifts: "No layout shifts",
      /**
       * @description Text status when there no layout shifts culprits/root causes were found.
       */
      noCulprits: "Could not detect any layout shift culprits"
    };
    i18nString3 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    (function(AnimationFailureReasons2) {
      AnimationFailureReasons2["ACCELERATED_ANIMATIONS_DISABLED"] = "ACCELERATED_ANIMATIONS_DISABLED";
      AnimationFailureReasons2["EFFECT_SUPPRESSED_BY_DEVTOOLS"] = "EFFECT_SUPPRESSED_BY_DEVTOOLS";
      AnimationFailureReasons2["INVALID_ANIMATION_OR_EFFECT"] = "INVALID_ANIMATION_OR_EFFECT";
      AnimationFailureReasons2["EFFECT_HAS_UNSUPPORTED_TIMING_PARAMS"] = "EFFECT_HAS_UNSUPPORTED_TIMING_PARAMS";
      AnimationFailureReasons2["EFFECT_HAS_NON_REPLACE_COMPOSITE_MODE"] = "EFFECT_HAS_NON_REPLACE_COMPOSITE_MODE";
      AnimationFailureReasons2["TARGET_HAS_INVALID_COMPOSITING_STATE"] = "TARGET_HAS_INVALID_COMPOSITING_STATE";
      AnimationFailureReasons2["TARGET_HAS_INCOMPATIBLE_ANIMATIONS"] = "TARGET_HAS_INCOMPATIBLE_ANIMATIONS";
      AnimationFailureReasons2["TARGET_HAS_CSS_OFFSET"] = "TARGET_HAS_CSS_OFFSET";
      AnimationFailureReasons2["ANIMATION_AFFECTS_NON_CSS_PROPERTIES"] = "ANIMATION_AFFECTS_NON_CSS_PROPERTIES";
      AnimationFailureReasons2["TRANSFORM_RELATED_PROPERTY_CANNOT_BE_ACCELERATED_ON_TARGET"] = "TRANSFORM_RELATED_PROPERTY_CANNOT_BE_ACCELERATED_ON_TARGET";
      AnimationFailureReasons2["TRANSFROM_BOX_SIZE_DEPENDENT"] = "TRANSFROM_BOX_SIZE_DEPENDENT";
      AnimationFailureReasons2["FILTER_RELATED_PROPERTY_MAY_MOVE_PIXELS"] = "FILTER_RELATED_PROPERTY_MAY_MOVE_PIXELS";
      AnimationFailureReasons2["UNSUPPORTED_CSS_PROPERTY"] = "UNSUPPORTED_CSS_PROPERTY";
      AnimationFailureReasons2["MIXED_KEYFRAME_VALUE_TYPES"] = "MIXED_KEYFRAME_VALUE_TYPES";
      AnimationFailureReasons2["TIMELINE_SOURCE_HAS_INVALID_COMPOSITING_STATE"] = "TIMELINE_SOURCE_HAS_INVALID_COMPOSITING_STATE";
      AnimationFailureReasons2["ANIMATION_HAS_NO_VISIBLE_CHANGE"] = "ANIMATION_HAS_NO_VISIBLE_CHANGE";
      AnimationFailureReasons2["AFFECTS_IMPORTANT_PROPERTY"] = "AFFECTS_IMPORTANT_PROPERTY";
      AnimationFailureReasons2["SVG_TARGET_HAS_INDEPENDENT_TRANSFORM_PROPERTY"] = "SVG_TARGET_HAS_INDEPENDENT_TRANSFORM_PROPERTY";
    })(AnimationFailureReasons || (AnimationFailureReasons = {}));
    (function(LayoutShiftType2) {
      LayoutShiftType2[LayoutShiftType2["WEB_FONT"] = 0] = "WEB_FONT";
      LayoutShiftType2[LayoutShiftType2["IFRAMES"] = 1] = "IFRAMES";
      LayoutShiftType2[LayoutShiftType2["ANIMATIONS"] = 2] = "ANIMATIONS";
      LayoutShiftType2[LayoutShiftType2["UNSIZED_IMAGE"] = 3] = "UNSIZED_IMAGE";
    })(LayoutShiftType || (LayoutShiftType = {}));
    ACTIONABLE_FAILURE_REASONS = [
      {
        flag: 1 << 0,
        failure: AnimationFailureReasons.ACCELERATED_ANIMATIONS_DISABLED
      },
      {
        flag: 1 << 1,
        failure: AnimationFailureReasons.EFFECT_SUPPRESSED_BY_DEVTOOLS
      },
      {
        flag: 1 << 2,
        failure: AnimationFailureReasons.INVALID_ANIMATION_OR_EFFECT
      },
      {
        flag: 1 << 3,
        failure: AnimationFailureReasons.EFFECT_HAS_UNSUPPORTED_TIMING_PARAMS
      },
      {
        flag: 1 << 4,
        failure: AnimationFailureReasons.EFFECT_HAS_NON_REPLACE_COMPOSITE_MODE
      },
      {
        flag: 1 << 5,
        failure: AnimationFailureReasons.TARGET_HAS_INVALID_COMPOSITING_STATE
      },
      {
        flag: 1 << 6,
        failure: AnimationFailureReasons.TARGET_HAS_INCOMPATIBLE_ANIMATIONS
      },
      {
        flag: 1 << 7,
        failure: AnimationFailureReasons.TARGET_HAS_CSS_OFFSET
      },
      // The failure 1 << 8 is marked as obsolete in Blink
      {
        flag: 1 << 9,
        failure: AnimationFailureReasons.ANIMATION_AFFECTS_NON_CSS_PROPERTIES
      },
      {
        flag: 1 << 10,
        failure: AnimationFailureReasons.TRANSFORM_RELATED_PROPERTY_CANNOT_BE_ACCELERATED_ON_TARGET
      },
      {
        flag: 1 << 11,
        failure: AnimationFailureReasons.TRANSFROM_BOX_SIZE_DEPENDENT
      },
      {
        flag: 1 << 12,
        failure: AnimationFailureReasons.FILTER_RELATED_PROPERTY_MAY_MOVE_PIXELS
      },
      {
        flag: 1 << 13,
        failure: AnimationFailureReasons.UNSUPPORTED_CSS_PROPERTY
      },
      // The failure 1 << 14 is marked as obsolete in Blink
      {
        flag: 1 << 15,
        failure: AnimationFailureReasons.MIXED_KEYFRAME_VALUE_TYPES
      },
      {
        flag: 1 << 16,
        failure: AnimationFailureReasons.TIMELINE_SOURCE_HAS_INVALID_COMPOSITING_STATE
      },
      {
        flag: 1 << 17,
        failure: AnimationFailureReasons.ANIMATION_HAS_NO_VISIBLE_CHANGE
      },
      {
        flag: 1 << 18,
        failure: AnimationFailureReasons.AFFECTS_IMPORTANT_PROPERTY
      },
      {
        flag: 1 << 19,
        failure: AnimationFailureReasons.SVG_TARGET_HAS_INDEPENDENT_TRANSFORM_PROPERTY
      }
    ];
    ROOT_CAUSE_WINDOW = Timing_exports3.secondsToMicro(Timing_exports.Seconds(0.5));
    __name(isInRootCauseWindow, "isInRootCauseWindow");
    __name(getNonCompositedFailure, "getNonCompositedFailure");
    __name(getNonCompositedFailureRootCauses, "getNonCompositedFailureRootCauses");
    __name(getShiftsByPrePaintEvents, "getShiftsByPrePaintEvents");
    __name(getNextEvent, "getNextEvent");
    __name(getIframeRootCauses, "getIframeRootCauses");
    __name(getUnsizedImageRootCauses, "getUnsizedImageRootCauses");
    __name(isCLSCulpritsInsight, "isCLSCulpritsInsight");
    __name(getFontRootCauses, "getFontRootCauses");
    __name(getTopCulprits, "getTopCulprits");
    __name(finalize33, "finalize");
    __name(generateInsight3, "generateInsight");
    __name(createOverlays3, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/DocumentLatency.js
var DocumentLatency_exports = {};
__export(DocumentLatency_exports, {
  UIStrings: () => UIStrings5,
  createOverlays: () => createOverlays4,
  generateInsight: () => generateInsight4,
  i18nString: () => i18nString4,
  isDocumentLatencyInsight: () => isDocumentLatencyInsight
});
function isDocumentLatencyInsight(x) {
  return x.insightKey === "DocumentLatency";
}
function getServerResponseTime(request) {
  const isLightrider = globalThis.isLightrider;
  if (isLightrider) {
    return request.args.data.lrServerResponseTime ?? null;
  }
  const timing = request.args.data.timing;
  if (!timing) {
    return null;
  }
  const ms = Timing_exports3.microToMilli(request.args.data.syntheticData.serverResponseTime);
  return Math.round(ms);
}
function getCompressionSavings(request) {
  const isCompressed = isRequestCompressed(request);
  if (isCompressed) {
    return 0;
  }
  const originalSize = request.args.data.decodedBodyLength;
  let estimatedSavings = 0;
  switch (request.args.data.mimeType) {
    case "text/css":
      estimatedSavings = Math.round(originalSize * 0.8);
      break;
    case "text/html":
    case "text/javascript":
      estimatedSavings = Math.round(originalSize * 0.67);
      break;
    case "text/plain":
    case "text/xml":
    case "text/x-component":
    case "application/javascript":
    case "application/json":
    case "application/manifest+json":
    case "application/vnd.api+json":
    case "application/xml":
    case "application/xhtml+xml":
    case "application/rss+xml":
    case "application/atom+xml":
    case "application/vnd.ms-fontobject":
    case "application/x-font-ttf":
    case "application/x-font-opentype":
    case "application/x-font-truetype":
    case "image/svg+xml":
    case "image/x-icon":
    case "image/vnd.microsoft.icon":
    case "font/ttf":
    case "font/eot":
    case "font/otf":
    case "font/opentype":
      estimatedSavings = Math.round(originalSize * 0.5);
      break;
    default:
  }
  return estimatedSavings < IGNORE_THRESHOLD_IN_BYTES ? 0 : estimatedSavings;
}
function finalize34(partialModel) {
  let hasFailure = false;
  if (partialModel.data) {
    hasFailure = !partialModel.data.checklist.usesCompression.value || !partialModel.data.checklist.serverResponseIsFast.value || !partialModel.data.checklist.noRedirects.value;
  }
  return {
    insightKey: InsightKeys.DOCUMENT_LATENCY,
    strings: UIStrings5,
    title: i18nString4(UIStrings5.title),
    description: i18nString4(UIStrings5.description),
    docs: "https://developer.chrome.com/docs/performance/insights/document-latency",
    category: InsightCategory.ALL,
    state: hasFailure ? "fail" : "pass",
    ...partialModel
  };
}
function generateInsight4(data31, context) {
  if (!context.navigation) {
    return finalize34({});
  }
  const millisToString = context.options.insightTimeFormatters?.milli ?? ((bytes) => ({ __i18nMillis: bytes }));
  const documentRequest = data31.NetworkRequests.byId.get(context.navigationId);
  if (!documentRequest) {
    return finalize34({ warnings: [InsightWarning.NO_DOCUMENT_REQUEST] });
  }
  const serverResponseTime = getServerResponseTime(documentRequest);
  if (serverResponseTime === null) {
    throw new Error("missing document request timing");
  }
  const serverResponseTooSlow = serverResponseTime > TOO_SLOW_THRESHOLD_MS;
  let overallSavingsMs = 0;
  if (serverResponseTime > TOO_SLOW_THRESHOLD_MS) {
    overallSavingsMs = Math.max(serverResponseTime - TARGET_MS, 0);
  }
  const redirectDuration = Math.round(documentRequest.args.data.syntheticData.redirectionDuration / 1e3);
  overallSavingsMs += redirectDuration;
  const metricSavings = {
    FCP: overallSavingsMs,
    LCP: overallSavingsMs
  };
  const uncompressedResponseBytes = getCompressionSavings(documentRequest);
  const noRedirects = redirectDuration === 0;
  const serverResponseIsFast = !serverResponseTooSlow;
  const usesCompression = uncompressedResponseBytes === 0;
  return finalize34({
    relatedEvents: [documentRequest],
    data: {
      serverResponseTime,
      redirectDuration: Timing_exports.Milli(redirectDuration),
      uncompressedResponseBytes,
      documentRequest,
      checklist: {
        noRedirects: {
          label: noRedirects ? i18nString4(UIStrings5.passingRedirects) : i18nString4(UIStrings5.failedRedirects, {
            PH1: documentRequest.args.data.redirects.length,
            PH2: millisToString(redirectDuration)
          }),
          value: noRedirects
        },
        serverResponseIsFast: {
          label: serverResponseIsFast ? i18nString4(UIStrings5.passingServerResponseTime, { PH1: millisToString(serverResponseTime) }) : i18nString4(UIStrings5.failedServerResponseTime, { PH1: millisToString(serverResponseTime) }),
          value: serverResponseIsFast
        },
        usesCompression: {
          label: usesCompression ? i18nString4(UIStrings5.passingTextCompression) : i18nString4(UIStrings5.failedTextCompression),
          value: usesCompression
        }
      }
    },
    metricSavings,
    wastedBytes: uncompressedResponseBytes
  });
}
function createOverlays4(model2) {
  if (!model2.data?.documentRequest) {
    return [];
  }
  const overlays = [];
  const event = model2.data.documentRequest;
  const redirectDurationMicro = Timing_exports3.milliToMicro(model2.data.redirectDuration);
  const sections = [];
  if (model2.data.redirectDuration) {
    const bounds = Timing_exports3.traceWindowFromMicroSeconds(event.ts, event.ts + redirectDurationMicro);
    sections.push({ bounds, label: i18nString4(UIStrings5.redirectsLabel), showDuration: true });
    overlays.push({ type: "CANDY_STRIPED_TIME_RANGE", bounds, entry: event });
  }
  if (!model2.data.checklist.serverResponseIsFast.value) {
    const serverResponseTimeMicro = Timing_exports3.milliToMicro(model2.data.serverResponseTime);
    const sendEnd = event.args.data.timing?.sendEnd ?? Timing_exports.Milli(0);
    const sendEndMicro = Timing_exports3.milliToMicro(sendEnd);
    const bounds = Timing_exports3.traceWindowFromMicroSeconds(sendEndMicro, sendEndMicro + serverResponseTimeMicro);
    sections.push({ bounds, label: i18nString4(UIStrings5.serverResponseTimeLabel), showDuration: true });
  }
  if (model2.data.uncompressedResponseBytes) {
    const bounds = Timing_exports3.traceWindowFromMicroSeconds(event.args.data.syntheticData.downloadStart, event.args.data.syntheticData.downloadStart + event.args.data.syntheticData.download);
    sections.push({ bounds, label: i18nString4(UIStrings5.uncompressedDownload), showDuration: true });
    overlays.push({ type: "CANDY_STRIPED_TIME_RANGE", bounds, entry: event });
  }
  if (sections.length) {
    overlays.push({
      type: "TIMESPAN_BREAKDOWN",
      sections,
      entry: model2.data.documentRequest,
      // Always render below because the document request is guaranteed to be
      // the first request in the network track.
      renderLocation: "BELOW_EVENT"
    });
  }
  overlays.push({
    type: "ENTRY_SELECTED",
    entry: model2.data.documentRequest
  });
  return overlays;
}
var UIStrings5, i18nString4, TOO_SLOW_THRESHOLD_MS, TARGET_MS, IGNORE_THRESHOLD_IN_BYTES;
var init_DocumentLatency = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/DocumentLatency.js"() {
    init_process_global();
    init_helpers2();
    init_types2();
    init_Common();
    init_types4();
    UIStrings5 = {
      /**
       * @description Title of an insight that provides a breakdown for how long it took to download the main document.
       */
      title: "Document request latency",
      /**
       * @description Description of an insight that provides a breakdown for how long it took to download the main document.
       */
      description: "Your first network request is the most important. [Reduce its latency](https://developer.chrome.com/docs/performance/insights/document-latency) by avoiding redirects, ensuring a fast server response, and enabling text compression.",
      /**
       * @description Text to tell the user that the document request does not have redirects.
       */
      passingRedirects: "Avoids redirects",
      /**
       * @description Text to tell the user that the document request had redirects.
       * @example {3} PH1
       * @example {1000 ms} PH2
       */
      failedRedirects: "Had redirects ({PH1} redirects, +{PH2})",
      /**
       * @description Text to tell the user that the time starting the document request to when the server started responding is acceptable.
       * @example {600 ms} PH1
       */
      passingServerResponseTime: "Server responds quickly (observed {PH1})",
      /**
       * @description Text to tell the user that the time starting the document request to when the server started responding is not acceptable.
       * @example {601 ms} PH1
       */
      failedServerResponseTime: "Server responded slowly (observed {PH1})",
      /**
       * @description Text to tell the user that text compression (like gzip) was applied.
       */
      passingTextCompression: "Applies text compression",
      /**
       * @description Text to tell the user that text compression (like gzip) was not applied.
       */
      failedTextCompression: "No compression applied",
      /**
       * @description Text for a label describing a network request event as having redirects.
       */
      redirectsLabel: "Redirects",
      /**
       * @description Text for a label describing a network request event as taking too long to start delivery by the server.
       */
      serverResponseTimeLabel: "Server response time",
      /**
       * @description Text for a label describing a network request event as taking longer to download because it wasn't compressed.
       */
      uncompressedDownload: "Uncompressed download"
    };
    i18nString4 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    TOO_SLOW_THRESHOLD_MS = 600;
    TARGET_MS = 100;
    IGNORE_THRESHOLD_IN_BYTES = 1400;
    __name(isDocumentLatencyInsight, "isDocumentLatencyInsight");
    __name(getServerResponseTime, "getServerResponseTime");
    __name(getCompressionSavings, "getCompressionSavings");
    __name(finalize34, "finalize");
    __name(generateInsight4, "generateInsight");
    __name(createOverlays4, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/DOMSize.js
var DOMSize_exports = {};
__export(DOMSize_exports, {
  UIStrings: () => UIStrings6,
  createOverlays: () => createOverlays5,
  generateInsight: () => generateInsight5,
  i18nString: () => i18nString5,
  isDomSizeInsight: () => isDomSizeInsight
});
function finalize35(partialModel) {
  const relatedEvents = [...partialModel.largeLayoutUpdates, ...partialModel.largeStyleRecalcs];
  return {
    insightKey: InsightKeys.DOM_SIZE,
    strings: UIStrings6,
    title: i18nString5(UIStrings6.title),
    description: i18nString5(UIStrings6.description),
    docs: "https://developer.chrome.com/docs/performance/insights/dom-size",
    category: InsightCategory.INP,
    state: relatedEvents.length > 0 ? "informative" : "pass",
    ...partialModel,
    relatedEvents
  };
}
function isDomSizeInsight(model2) {
  return model2.insightKey === InsightKeys.DOM_SIZE;
}
function generateInsight5(data31, context) {
  const isWithinContext = /* @__PURE__ */ __name((event) => Timing_exports3.eventIsInBounds(event, context.bounds), "isWithinContext");
  const mainTid = context.navigation?.tid;
  const largeLayoutUpdates = [];
  const largeStyleRecalcs = [];
  const threads = Threads_exports.threadsInRenderer(data31.Renderer, data31.AuctionWorklets);
  for (const thread of threads) {
    if (thread.type !== Threads_exports.ThreadType.MAIN_THREAD) {
      continue;
    }
    if (mainTid === void 0) {
      if (!thread.processIsOnMainFrame) {
        continue;
      }
    } else if (thread.tid !== mainTid) {
      continue;
    }
    const rendererThread = data31.Renderer.processes.get(thread.pid)?.threads.get(thread.tid);
    if (!rendererThread) {
      continue;
    }
    const { entries, layoutEvents, recalcStyleEvents } = rendererThread;
    if (!entries.length) {
      continue;
    }
    const first = entries[0];
    const last = entries[entries.length - 1];
    const timeRange = Timing_exports3.traceWindowFromMicroSeconds(first.ts, Timing_exports.Micro(last.ts + (last.dur ?? 0)));
    if (!Timing_exports3.boundsIncludeTimeRange({ timeRange, bounds: context.bounds })) {
      continue;
    }
    for (const event of layoutEvents) {
      if (event.dur < DOM_SIZE_DURATION_THRESHOLD || !isWithinContext(event)) {
        continue;
      }
      const { dirtyObjects } = event.args.beginData;
      if (dirtyObjects > LAYOUT_OBJECTS_THRESHOLD) {
        largeLayoutUpdates.push(event);
      }
    }
    for (const event of recalcStyleEvents) {
      if (event.dur < DOM_SIZE_DURATION_THRESHOLD || !isWithinContext(event)) {
        continue;
      }
      const { elementCount } = event.args;
      if (elementCount > STYLE_RECALC_ELEMENTS_THRESHOLD) {
        largeStyleRecalcs.push(event);
      }
    }
  }
  const largeUpdates = [
    ...largeLayoutUpdates.map((event) => {
      const duration = event.dur / 1e3;
      const size = event.args.beginData.dirtyObjects;
      const label = i18nString5(UIStrings6.largeLayout, { PH1: size });
      return { label, duration, size, event };
    }),
    ...largeStyleRecalcs.map((event) => {
      const duration = event.dur / 1e3;
      const size = event.args.elementCount;
      const label = i18nString5(UIStrings6.largeStyleRecalc, { PH1: size });
      return { label, duration, size, event };
    })
  ].sort((a, b) => b.duration - a.duration).slice(0, 5);
  const domStatsEvents = data31.DOMStats.domStatsByFrameId.get(context.frameId)?.filter(isWithinContext) ?? [];
  let maxDOMStats;
  for (const domStats of domStatsEvents) {
    const navigationPid = context.navigation?.pid;
    if (navigationPid && domStats.pid !== navigationPid) {
      continue;
    }
    if (!maxDOMStats || domStats.args.data.totalElements > maxDOMStats.args.data.totalElements) {
      maxDOMStats = domStats;
    }
  }
  return finalize35({
    largeLayoutUpdates,
    largeStyleRecalcs,
    largeUpdates,
    maxDOMStats
  });
}
function createOverlays5(model2) {
  const entries = [...model2.largeStyleRecalcs, ...model2.largeLayoutUpdates];
  return entries.map((entry) => ({
    type: "ENTRY_OUTLINE",
    entry,
    outlineReason: "ERROR"
  }));
}
var UIStrings6, i18nString5, DOM_SIZE_DURATION_THRESHOLD, LAYOUT_OBJECTS_THRESHOLD, STYLE_RECALC_ELEMENTS_THRESHOLD;
var init_DOMSize = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/DOMSize.js"() {
    init_process_global();
    init_handlers();
    init_helpers2();
    init_types2();
    init_types4();
    UIStrings6 = {
      /**
       * @description Title of an insight that recommends reducing the size of the DOM tree as a means to improve page responsiveness. "DOM" is an acronym and should not be translated.
       */
      title: "Optimize DOM size",
      /**
       * @description Description of an insight that recommends reducing the size of the DOM tree as a means to improve page responsiveness. "DOM" is an acronym and should not be translated. "layout reflows" are when the browser will recompute the layout of content on the page.
       */
      description: "A large DOM can increase the duration of style calculations and layout reflows, impacting page responsiveness. A large DOM will also increase memory usage. [Learn how to avoid an excessive DOM size](https://developer.chrome.com/docs/performance/insights/dom-size).",
      /**
       * @description Header for a column containing the names of statistics as opposed to the actual statistic values.
       */
      statistic: "Statistic",
      /**
       * @description Header for a column containing the value of a statistic.
       */
      value: "Value",
      /**
       * @description Header for a column containing the page element related to a statistic.
       */
      element: "Element",
      /**
       * @description Label for a value representing the total number of elements on the page.
       */
      totalElements: "Total elements",
      /**
       * @description Label for a value representing the maximum depth of the Document Object Model (DOM). "DOM" is a acronym and should not be translated.
       */
      maxDOMDepth: "DOM depth",
      /**
       * @description Label for a value representing the maximum number of child elements of any parent element on the page.
       */
      maxChildren: "Most children",
      /**
       * @description Text for a section.
       */
      topUpdatesDescription: "These are the largest layout and style recalculation events. Their performance impact may be reduced by making the DOM simpler.",
      /**
       * @description Label used for a time duration.
       */
      duration: "Duration",
      /**
       * @description Message displayed in a table detailing how big a layout (rendering) is.
       * @example {134} PH1
       */
      largeLayout: "Layout ({PH1} objects)",
      /**
       * @description Message displayed in a table detailing how big a style recalculation (rendering) is.
       * @example {134} PH1
       */
      largeStyleRecalc: "Style recalculation ({PH1} elements)"
    };
    i18nString5 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    DOM_SIZE_DURATION_THRESHOLD = Timing_exports3.milliToMicro(Timing_exports.Milli(40));
    LAYOUT_OBJECTS_THRESHOLD = 100;
    STYLE_RECALC_ELEMENTS_THRESHOLD = 300;
    __name(finalize35, "finalize");
    __name(isDomSizeInsight, "isDomSizeInsight");
    __name(generateInsight5, "generateInsight");
    __name(createOverlays5, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/DuplicatedJavaScript.js
var DuplicatedJavaScript_exports = {};
__export(DuplicatedJavaScript_exports, {
  UIStrings: () => UIStrings7,
  createOverlays: () => createOverlays6,
  generateInsight: () => generateInsight6,
  i18nString: () => i18nString6,
  isDuplicatedJavaScriptInsight: () => isDuplicatedJavaScriptInsight
});
function finalize36(partialModel) {
  const requests = partialModel.scriptsWithDuplication.map((script) => script.request).filter((e) => !!e);
  return {
    insightKey: InsightKeys.DUPLICATE_JAVASCRIPT,
    strings: UIStrings7,
    title: i18nString6(UIStrings7.title),
    description: i18nString6(UIStrings7.description),
    docs: "https://developer.chrome.com/docs/performance/insights/duplicated-javascript",
    category: InsightCategory.LCP,
    state: Boolean(partialModel.duplication.values().next().value) ? "fail" : "pass",
    relatedEvents: [...new Set(requests)],
    ...partialModel
  };
}
function isDuplicatedJavaScriptInsight(model2) {
  return model2.insightKey === InsightKeys.DUPLICATE_JAVASCRIPT;
}
function generateInsight6(data31, context) {
  const scripts = data31.Scripts.scripts.filter((script) => {
    if (script.frame !== context.frameId) {
      return false;
    }
    if (script.url?.startsWith("chrome-extension://")) {
      return false;
    }
    return Timing_exports3.timestampIsInBounds(context.bounds, script.ts);
  });
  const compressionRatios = /* @__PURE__ */ new Map();
  for (const script of scripts) {
    if (script.request) {
      compressionRatios.set(script.request.args.data.requestId, estimateCompressionRatioForScript(script));
    }
  }
  const { duplication, duplicationGroupedByNodeModules } = ScriptDuplication_exports.computeScriptDuplication({ scripts }, compressionRatios);
  const scriptsWithDuplication = [...duplication.values().flatMap((data32) => data32.duplicates.map((d) => d.script))];
  const wastedBytesByRequestId = /* @__PURE__ */ new Map();
  for (const { duplicates } of duplication.values()) {
    for (let i = 1; i < duplicates.length; i++) {
      const sourceData = duplicates[i];
      if (!sourceData.script.request) {
        continue;
      }
      const transferSize = sourceData.attributedSize;
      const requestId = sourceData.script.request.args.data.requestId;
      wastedBytesByRequestId.set(requestId, (wastedBytesByRequestId.get(requestId) || 0) + transferSize);
    }
  }
  return finalize36({
    duplication,
    duplicationGroupedByNodeModules,
    scriptsWithDuplication: [...new Set(scriptsWithDuplication)],
    scripts,
    mainDocumentUrl: context.navigation?.args.data?.url ?? data31.Meta.mainFrameURL,
    metricSavings: metricSavingsForWastedBytes(wastedBytesByRequestId, context),
    wastedBytes: wastedBytesByRequestId.values().reduce((acc, cur) => acc + cur, 0)
  });
}
function createOverlays6(model2) {
  return model2.scriptsWithDuplication.map((script) => script.request).filter((e) => !!e).map((request) => {
    return {
      type: "ENTRY_OUTLINE",
      entry: request,
      outlineReason: "ERROR"
    };
  });
}
var UIStrings7, i18nString6;
var init_DuplicatedJavaScript = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/DuplicatedJavaScript.js"() {
    init_process_global();
    init_extras();
    init_helpers2();
    init_Common();
    init_types4();
    UIStrings7 = {
      /**
       * @description Title of an insight that identifies multiple copies of the same JavaScript sources, and recommends removing the duplication.
       */
      title: "Duplicated JavaScript",
      /**
       * @description Description of an insight that identifies multiple copies of the same JavaScript sources, and recommends removing the duplication.
       */
      description: "Remove large, [duplicate JavaScript modules](https://developer.chrome.com/docs/performance/insights/duplicated-javascript) from bundles to reduce unnecessary bytes consumed by network activity.",
      /** Label for a column in a data table; entries will be the locations of JavaScript or CSS code, e.g. the name of a Javascript package or module. */
      columnSource: "Source",
      /** Label for a column in a data table; entries will be the number of wasted bytes due to duplication of a web resource. */
      columnDuplicatedBytes: "Duplicated bytes",
      /**
       * @description Message shown when no duplicated JavaScript is found.
       */
      noDuplicatedJavaScript: "No duplicated JavaScript found"
    };
    i18nString6 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(finalize36, "finalize");
    __name(isDuplicatedJavaScriptInsight, "isDuplicatedJavaScriptInsight");
    __name(generateInsight6, "generateInsight");
    __name(createOverlays6, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/FontDisplay.js
var FontDisplay_exports = {};
__export(FontDisplay_exports, {
  UIStrings: () => UIStrings8,
  createOverlays: () => createOverlays7,
  generateInsight: () => generateInsight7,
  i18nString: () => i18nString7,
  isFontDisplayInsight: () => isFontDisplayInsight
});
function finalize37(partialModel) {
  return {
    insightKey: InsightKeys.FONT_DISPLAY,
    strings: UIStrings8,
    title: i18nString7(UIStrings8.title),
    description: i18nString7(UIStrings8.description),
    docs: "https://developer.chrome.com/docs/performance/insights/font-display",
    category: InsightCategory.INP,
    state: partialModel.fonts.find((font) => font.wastedTime > 0) ? "fail" : "pass",
    ...partialModel
  };
}
function isFontDisplayInsight(model2) {
  return model2.insightKey === InsightKeys.FONT_DISPLAY;
}
function generateInsight7(data31, context) {
  const fonts = [];
  for (const remoteFont of data31.LayoutShifts.remoteFonts) {
    const event = remoteFont.beginRemoteFontLoadEvent;
    if (!Timing_exports3.eventIsInBounds(event, context.bounds)) {
      continue;
    }
    const requestId = `${event.pid}.${event.args.id}`;
    const request = data31.NetworkRequests.byId.get(requestId);
    if (!request) {
      continue;
    }
    if (!/^(block|fallback|auto)$/.test(remoteFont.display)) {
      continue;
    }
    const wastedTimeMicro = Timing_exports.Micro(request.args.data.syntheticData.finishTime - request.args.data.syntheticData.sendStartTime);
    let wastedTime = NumberUtilities_exports.floor(Timing_exports3.microToMilli(wastedTimeMicro), 1 / 5);
    if (wastedTime === 0) {
      continue;
    }
    wastedTime = Math.min(wastedTime, 3e3);
    fonts.push({
      name: remoteFont.name,
      request,
      display: remoteFont.display,
      wastedTime
    });
  }
  fonts.sort((a, b) => b.wastedTime - a.wastedTime);
  const savings = Math.max(...fonts.map((f) => f.wastedTime));
  return finalize37({
    relatedEvents: fonts.map((f) => f.request),
    fonts,
    metricSavings: { FCP: savings }
  });
}
function createOverlays7(model2) {
  return model2.fonts.map((font) => ({
    type: "ENTRY_OUTLINE",
    entry: font.request,
    outlineReason: font.wastedTime ? "ERROR" : "INFO"
  }));
}
var UIStrings8, i18nString7;
var init_FontDisplay = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/FontDisplay.js"() {
    init_process_global();
    init_platform();
    init_helpers2();
    init_types2();
    init_types4();
    UIStrings8 = {
      /** Title of an insight that provides details about the fonts used on the page, and the value of their `font-display` properties. */
      title: "Font display",
      /**
       * @description Text to tell the user about the font-display CSS feature to help improve a the UX of a page.
       */
      description: "Consider setting [`font-display`](https://developer.chrome.com/docs/performance/insights/font-display) to `swap` or `optional` to ensure text is consistently visible. `swap` can be further optimized to mitigate layout shifts with [font metric overrides](https://developer.chrome.com/blog/font-fallbacks).",
      /** Column for a font loaded by the page to render text. */
      fontColumn: "Font",
      /** Column for the amount of time wasted. */
      wastedTimeColumn: "Wasted time",
      /**
       * @description Message shown when no fonts with suboptimal font-display are found.
       */
      noFonts: "No fonts with suboptimal font-display found"
    };
    i18nString7 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(finalize37, "finalize");
    __name(isFontDisplayInsight, "isFontDisplayInsight");
    __name(generateInsight7, "generateInsight");
    __name(createOverlays7, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/ForcedReflow.js
var ForcedReflow_exports = {};
__export(ForcedReflow_exports, {
  UIStrings: () => UIStrings9,
  createOverlayForEvents: () => createOverlayForEvents,
  createOverlays: () => createOverlays8,
  generateInsight: () => generateInsight8,
  i18nString: () => i18nString8,
  isForcedReflowInsight: () => isForcedReflowInsight
});
function getCallFrameId(callFrame) {
  return callFrame.scriptId + ":" + callFrame.lineNumber + ":" + callFrame.columnNumber;
}
function getLargestTopLevelFunctionData(forcedReflowEvents, traceParsedData) {
  const entryToNodeMap = traceParsedData.Renderer.entryToNode;
  const dataByTopLevelFunction = /* @__PURE__ */ new Map();
  if (forcedReflowEvents.length === 0) {
    return;
  }
  for (const event of forcedReflowEvents) {
    const traceNode = entryToNodeMap.get(event);
    if (!traceNode) {
      continue;
    }
    let node = traceNode.parent;
    let topLevelFunctionCall;
    let topLevelFunctionCallEvent;
    while (node) {
      const eventData = node.entry;
      if (TraceEvents_exports.isProfileCall(eventData)) {
        topLevelFunctionCall = eventData.callFrame;
        topLevelFunctionCallEvent = eventData;
      } else {
        if (TraceEvents_exports.isFunctionCall(eventData) && eventData.args.data && TraceEvents_exports.objectIsCallFrame(eventData.args.data)) {
          topLevelFunctionCall = eventData.args.data;
          topLevelFunctionCallEvent = eventData;
        }
        break;
      }
      node = node.parent;
    }
    if (!topLevelFunctionCall || !topLevelFunctionCallEvent) {
      continue;
    }
    const aggregatedDataId = getCallFrameId(topLevelFunctionCall);
    const aggregatedData = MapUtilities_exports.getWithDefault(dataByTopLevelFunction, aggregatedDataId, () => ({
      topLevelFunctionCall,
      totalReflowTime: 0,
      topLevelFunctionCallEvents: []
    }));
    aggregatedData.totalReflowTime += event.dur ?? 0;
    aggregatedData.topLevelFunctionCallEvents.push(topLevelFunctionCallEvent);
  }
  let topTimeConsumingData = void 0;
  dataByTopLevelFunction.forEach((data31) => {
    if (!topTimeConsumingData || data31.totalReflowTime > topTimeConsumingData.totalReflowTime) {
      topTimeConsumingData = data31;
    }
  });
  return topTimeConsumingData;
}
function finalize38(partialModel) {
  return {
    insightKey: InsightKeys.FORCED_REFLOW,
    strings: UIStrings9,
    title: i18nString8(UIStrings9.title),
    description: i18nString8(UIStrings9.description),
    docs: "https://developer.chrome.com/docs/performance/insights/forced-reflow",
    category: InsightCategory.ALL,
    state: partialModel.aggregatedBottomUpData.length !== 0 ? "fail" : "pass",
    ...partialModel
  };
}
function getBottomCallFrameForEvent(event, traceParsedData) {
  const profileStackTrace = StackTraceForEvent_exports.get(event, traceParsedData);
  const eventTopCallFrame = Trace_exports.getStackTraceTopCallFrameInEventPayload(event);
  return profileStackTrace?.callFrames[0] ?? eventTopCallFrame ?? null;
}
function isForcedReflowInsight(model2) {
  return model2.insightKey === InsightKeys.FORCED_REFLOW;
}
function generateInsight8(traceParsedData, context) {
  const isWithinContext = /* @__PURE__ */ __name((event) => {
    const frameId = Trace_exports.frameIDForEvent(event);
    if (frameId !== context.frameId) {
      return false;
    }
    return Timing_exports3.eventIsInBounds(event, context.bounds);
  }, "isWithinContext");
  const bottomUpDataMap = /* @__PURE__ */ new Map();
  const events = traceParsedData.Warnings.perWarning.get("FORCED_REFLOW")?.filter(isWithinContext) ?? [];
  for (const event of events) {
    const bottomCallFrame = getBottomCallFrameForEvent(event, traceParsedData);
    const bottomCallId = bottomCallFrame ? getCallFrameId(bottomCallFrame) : "UNATTRIBUTED";
    const bottomUpData = MapUtilities_exports.getWithDefault(bottomUpDataMap, bottomCallId, () => ({
      bottomUpData: bottomCallFrame,
      totalTime: 0,
      relatedEvents: []
    }));
    bottomUpData.totalTime += event.dur ?? 0;
    bottomUpData.relatedEvents.push(event);
  }
  const topLevelFunctionCallData = getLargestTopLevelFunctionData(events, traceParsedData);
  return finalize38({
    relatedEvents: events,
    topLevelFunctionCallData,
    aggregatedBottomUpData: [...bottomUpDataMap.values()]
  });
}
function createOverlays8(model2) {
  if (!model2.topLevelFunctionCallData) {
    return [];
  }
  const allBottomUpEvents = [...model2.aggregatedBottomUpData.values().flatMap((data31) => data31.relatedEvents)];
  return [
    ...createOverlayForEvents(model2.topLevelFunctionCallData.topLevelFunctionCallEvents, "INFO"),
    ...createOverlayForEvents(allBottomUpEvents)
  ];
}
function createOverlayForEvents(events, outlineReason = "ERROR") {
  return events.map((e) => ({
    type: "ENTRY_OUTLINE",
    entry: e,
    outlineReason
  }));
}
var UIStrings9, i18nString8;
var init_ForcedReflow = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/ForcedReflow.js"() {
    init_process_global();
    init_platform();
    init_extras();
    init_helpers2();
    init_types2();
    init_types4();
    UIStrings9 = {
      /**
       * @description Title of an insight that provides details about Forced reflow.
       */
      title: "Forced reflow",
      /**
       * @description Text to describe the forced reflow.
       */
      description: "A forced reflow occurs when JavaScript queries geometric properties (such as `offsetWidth`) after styles have been invalidated by a change to the DOM state. This can result in poor performance. Learn more about [forced reflows](https://developer.chrome.com/docs/performance/insights/forced-reflow) and possible mitigations.",
      /**
       * @description Title of a list to provide related stack trace data
       */
      reflowCallFrames: "Call frames that trigger reflow",
      /**
       * @description Text to describe the top time-consuming function call
       */
      topTimeConsumingFunctionCall: "Top function call",
      /**
       * @description Text to describe the total reflow time
       */
      totalReflowTime: "Total reflow time",
      /**
       * @description Text to describe CPU processor tasks that could not be attributed to any specific source code.
       */
      unattributed: "[unattributed]",
      /**
       * @description Text for the name of anonymous functions
       */
      anonymous: "(anonymous)"
    };
    i18nString8 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(getCallFrameId, "getCallFrameId");
    __name(getLargestTopLevelFunctionData, "getLargestTopLevelFunctionData");
    __name(finalize38, "finalize");
    __name(getBottomCallFrameForEvent, "getBottomCallFrameForEvent");
    __name(isForcedReflowInsight, "isForcedReflowInsight");
    __name(generateInsight8, "generateInsight");
    __name(createOverlays8, "createOverlays");
    __name(createOverlayForEvents, "createOverlayForEvents");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js
var ImageDelivery_exports = {};
__export(ImageDelivery_exports, {
  ImageOptimizationType: () => ImageOptimizationType,
  UIStrings: () => UIStrings10,
  createOverlayForRequest: () => createOverlayForRequest2,
  createOverlays: () => createOverlays9,
  generateInsight: () => generateInsight9,
  getOptimizationMessage: () => getOptimizationMessage,
  getOptimizationMessageWithBytes: () => getOptimizationMessageWithBytes,
  i18nString: () => i18nString9,
  isImageDeliveryInsight: () => isImageDeliveryInsight
});
function isImageDeliveryInsight(model2) {
  return model2.insightKey === "ImageDelivery";
}
function getOptimizationMessage(optimization) {
  switch (optimization.type) {
    case ImageOptimizationType.ADJUST_COMPRESSION:
      return i18nString9(UIStrings10.useCompression);
    case ImageOptimizationType.MODERN_FORMAT_OR_COMPRESSION:
      return i18nString9(UIStrings10.useModernFormat);
    case ImageOptimizationType.VIDEO_FORMAT:
      return i18nString9(UIStrings10.useVideoFormat);
    case ImageOptimizationType.RESPONSIVE_SIZE:
      return i18nString9(UIStrings10.useResponsiveSize, {
        PH1: `${optimization.fileDimensions.width}x${optimization.fileDimensions.height}`,
        PH2: `${optimization.displayDimensions.width}x${optimization.displayDimensions.height}`
      });
  }
}
function getOptimizationMessageWithBytes(optimization) {
  const byteSavingsText = /* @__PURE__ */ ((bytes) => ({ __i18nBytes: bytes }))(optimization.byteSavings);
  const optimizationMessage = getOptimizationMessage(optimization);
  return i18nString9(UIStrings10.estimatedSavings, { PH1: optimizationMessage, PH2: byteSavingsText });
}
function finalize39(partialModel) {
  return {
    insightKey: InsightKeys.IMAGE_DELIVERY,
    strings: UIStrings10,
    title: i18nString9(UIStrings10.title),
    description: i18nString9(UIStrings10.description),
    docs: "https://developer.chrome.com/docs/performance/insights/image-delivery",
    category: InsightCategory.LCP,
    state: partialModel.optimizableImages.length > 0 ? "fail" : "pass",
    ...partialModel,
    relatedEvents: new Map(partialModel.optimizableImages.map((image) => [image.request, image.optimizations.map(getOptimizationMessageWithBytes)]))
  };
}
function estimateGIFPercentSavings(request) {
  return Math.round(29.1 * Math.log10(request.args.data.decodedBodyLength) - 100.7) / 100;
}
function getDisplayedSize(data31, paintImage) {
  return data31.ImagePainting.paintEventToCorrectedDisplaySize.get(paintImage) ?? {
    width: paintImage.args.data.width,
    height: paintImage.args.data.height
  };
}
function getPixelCounts(data31, paintImage) {
  const { width, height } = getDisplayedSize(data31, paintImage);
  return {
    filePixels: paintImage.args.data.srcWidth * paintImage.args.data.srcHeight,
    displayedPixels: width * height
  };
}
function generateInsight9(data31, context) {
  const isWithinContext = /* @__PURE__ */ __name((event) => Timing_exports3.eventIsInBounds(event, context.bounds), "isWithinContext");
  const contextRequests = data31.NetworkRequests.byTime.filter(isWithinContext);
  const optimizableImages = [];
  for (const request of contextRequests) {
    if (request.args.data.resourceType !== "Image") {
      continue;
    }
    if (request.args.data.mimeType === "image/svg+xml") {
      continue;
    }
    const url = request.args.data.redirects[0]?.url ?? request.args.data.url;
    const imagePaints = data31.ImagePainting.paintImageEventForUrl.get(url)?.filter(isWithinContext);
    if (!imagePaints?.length) {
      continue;
    }
    const largestImagePaint = imagePaints.reduce((prev, curr) => {
      const prevPixels = getPixelCounts(data31, prev).displayedPixels;
      const currPixels = getPixelCounts(data31, curr).displayedPixels;
      return prevPixels > currPixels ? prev : curr;
    });
    const { filePixels: imageFilePixels, displayedPixels: largestImageDisplayPixels } = getPixelCounts(data31, largestImagePaint);
    const imageBytes = Math.min(request.args.data.decodedBodyLength, request.args.data.encodedDataLength);
    const bytesPerPixel = imageBytes / imageFilePixels;
    let optimizations = [];
    if (request.args.data.mimeType === "image/gif") {
      if (imageBytes > GIF_SIZE_THRESHOLD) {
        const percentSavings = estimateGIFPercentSavings(request);
        const byteSavings = Math.round(imageBytes * percentSavings);
        optimizations.push({ type: ImageOptimizationType.VIDEO_FORMAT, byteSavings });
      }
    } else if (bytesPerPixel > TARGET_BYTES_PER_PIXEL_AVIF) {
      const idealAvifImageSize = Math.round(TARGET_BYTES_PER_PIXEL_AVIF * imageFilePixels);
      const byteSavings = imageBytes - idealAvifImageSize;
      if (request.args.data.mimeType !== "image/webp" && request.args.data.mimeType !== "image/avif") {
        optimizations.push({ type: ImageOptimizationType.MODERN_FORMAT_OR_COMPRESSION, byteSavings });
      } else {
        optimizations.push({ type: ImageOptimizationType.ADJUST_COMPRESSION, byteSavings });
      }
    }
    const imageByteSavingsFromFormat = Math.max(0, ...optimizations.map((o) => o.byteSavings));
    let imageByteSavings = imageByteSavingsFromFormat;
    const wastedPixelRatio = 1 - largestImageDisplayPixels / imageFilePixels;
    if (wastedPixelRatio > 0 && !largestImagePaint.args.data.isCSS) {
      const byteSavings = Math.round(wastedPixelRatio * imageBytes);
      const hadBreakpoints = largestImagePaint.args.data.isPicture || largestImagePaint.args.data.srcsetAttribute;
      if (!hadBreakpoints || byteSavings > BYTE_SAVINGS_THRESHOLD_RESPONSIVE_BREAKPOINTS) {
        imageByteSavings += Math.round(wastedPixelRatio * (imageBytes - imageByteSavingsFromFormat));
        const { width, height } = getDisplayedSize(data31, largestImagePaint);
        optimizations.push({
          type: ImageOptimizationType.RESPONSIVE_SIZE,
          byteSavings,
          fileDimensions: {
            width: Math.round(largestImagePaint.args.data.srcWidth),
            height: Math.round(largestImagePaint.args.data.srcHeight)
          },
          displayDimensions: {
            width: Math.round(width),
            height: Math.round(height)
          }
        });
      }
    }
    optimizations = optimizations.filter((optimization) => optimization.byteSavings > BYTE_SAVINGS_THRESHOLD);
    if (optimizations.length > 0) {
      optimizableImages.push({
        request,
        largestImagePaint,
        optimizations,
        byteSavings: imageByteSavings
      });
    }
  }
  const wastedBytesByRequestId = /* @__PURE__ */ new Map();
  for (const image of optimizableImages) {
    wastedBytesByRequestId.set(image.request.args.data.requestId, image.byteSavings);
  }
  optimizableImages.sort((a, b) => {
    if (b.byteSavings !== a.byteSavings) {
      return b.byteSavings - a.byteSavings;
    }
    return b.request.args.data.decodedBodyLength - a.request.args.data.decodedBodyLength;
  });
  return finalize39({
    optimizableImages,
    metricSavings: metricSavingsForWastedBytes(wastedBytesByRequestId, context),
    wastedBytes: optimizableImages.reduce((total, img) => total + img.byteSavings, 0)
  });
}
function createOverlayForRequest2(request) {
  return {
    type: "ENTRY_OUTLINE",
    entry: request,
    outlineReason: "ERROR"
  };
}
function createOverlays9(model2) {
  return model2.optimizableImages.map((image) => createOverlayForRequest2(image.request));
}
var UIStrings10, i18nString9, TARGET_BYTES_PER_PIXEL_AVIF, GIF_SIZE_THRESHOLD, BYTE_SAVINGS_THRESHOLD, BYTE_SAVINGS_THRESHOLD_RESPONSIVE_BREAKPOINTS, ImageOptimizationType;
var init_ImageDelivery = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js"() {
    init_process_global();
    init_helpers2();
    init_Common();
    init_types4();
    UIStrings10 = {
      /**
       * @description Title of an insight that recommends ways to reduce the size of images downloaded and used on the page.
       */
      title: "Improve image delivery",
      /**
       * @description Description of an insight that recommends ways to reduce the size of images downloaded and used on the page.
       */
      description: "Reducing the download time of images can improve the perceived load time of the page and LCP. [Learn more about optimizing image size](https://developer.chrome.com/docs/performance/insights/image-delivery)",
      /**
       * @description Message displayed in a chip explaining that an image file size is large for the # of pixels it has and recommends possible adjustments to improve the image size.
       */
      useCompression: "Increasing the image compression factor could improve this image's download size.",
      /**
       * @description Message displayed in a chip explaining that an image file size is large for the # of pixels it has and recommends possible adjustments to improve the image size.
       */
      useModernFormat: "Using a modern image format (WebP, AVIF) or increasing the image compression could improve this image's download size.",
      /**
       * @description Message displayed in a chip advising the user to use video formats instead of GIFs because videos generally have smaller file sizes.
       */
      useVideoFormat: "Using video formats instead of GIFs can improve the download size of animated content.",
      /**
       * @description Message displayed in a chip explaining that an image was displayed on the page with dimensions much smaller than the image file dimensions.
       * @example {1000x500} PH1
       * @example {100x50} PH2
       */
      useResponsiveSize: "This image file is larger than it needs to be ({PH1}) for its displayed dimensions ({PH2}). Use responsive images to reduce the image download size.",
      /**
       * @description Column header for a table column containing network requests for images which can improve their file size (e.g. use a different format, increase compression, etc).
       */
      optimizeFile: "Optimize file size",
      /**
       * @description Table row value representing the remaining items not shown in the table due to size constraints. This row will always represent at least 2 items.
       * @example {5} PH1
       */
      others: "{PH1} others",
      /**
       * @description Text status indicating that no potential optimizations were found for any image file
       */
      noOptimizableImages: "No optimizable images",
      /**
       * @description Text describing the estimated number of bytes that an image file optimization can save. This text is appended to another block of text describing the image optimization in more detail. "Est" means "Estimated".
       * @example {Use the correct image dimensions to reduce the image file size.} PH1
       * @example {50 MB} PH2
       */
      estimatedSavings: "{PH1} (Est {PH2})"
    };
    i18nString9 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    TARGET_BYTES_PER_PIXEL_AVIF = 2 * 1 / 12;
    GIF_SIZE_THRESHOLD = 100 * 1024;
    BYTE_SAVINGS_THRESHOLD = 4096;
    BYTE_SAVINGS_THRESHOLD_RESPONSIVE_BREAKPOINTS = 12288;
    (function(ImageOptimizationType2) {
      ImageOptimizationType2["ADJUST_COMPRESSION"] = "ADJUST_COMPRESSION";
      ImageOptimizationType2["MODERN_FORMAT_OR_COMPRESSION"] = "MODERN_FORMAT_OR_COMPRESSION";
      ImageOptimizationType2["VIDEO_FORMAT"] = "VIDEO_FORMAT";
      ImageOptimizationType2["RESPONSIVE_SIZE"] = "RESPONSIVE_SIZE";
    })(ImageOptimizationType || (ImageOptimizationType = {}));
    __name(isImageDeliveryInsight, "isImageDeliveryInsight");
    __name(getOptimizationMessage, "getOptimizationMessage");
    __name(getOptimizationMessageWithBytes, "getOptimizationMessageWithBytes");
    __name(finalize39, "finalize");
    __name(estimateGIFPercentSavings, "estimateGIFPercentSavings");
    __name(getDisplayedSize, "getDisplayedSize");
    __name(getPixelCounts, "getPixelCounts");
    __name(generateInsight9, "generateInsight");
    __name(createOverlayForRequest2, "createOverlayForRequest");
    __name(createOverlays9, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/INPBreakdown.js
var INPBreakdown_exports = {};
__export(INPBreakdown_exports, {
  UIStrings: () => UIStrings11,
  createOverlays: () => createOverlays10,
  createOverlaysForSubpart: () => createOverlaysForSubpart,
  generateInsight: () => generateInsight10,
  i18nString: () => i18nString10,
  isINPBreakdownInsight: () => isINPBreakdownInsight
});
function isINPBreakdownInsight(insight) {
  return insight.insightKey === InsightKeys.INP_BREAKDOWN;
}
function finalize40(partialModel) {
  let state = "pass";
  if (partialModel.longestInteractionEvent) {
    const classification = ModelHandlers_exports.UserInteractions.scoreClassificationForInteractionToNextPaint(partialModel.longestInteractionEvent.dur);
    if (classification === ModelHandlers_exports.PageLoadMetrics.ScoreClassification.GOOD) {
      state = "informative";
    } else {
      state = "fail";
    }
  }
  return {
    insightKey: InsightKeys.INP_BREAKDOWN,
    strings: UIStrings11,
    title: i18nString10(UIStrings11.title),
    description: i18nString10(UIStrings11.description),
    docs: "https://developer.chrome.com/docs/performance/insights/inp-breakdown",
    category: InsightCategory.INP,
    state,
    ...partialModel
  };
}
function generateInsight10(data31, context) {
  const interactionEvents2 = data31.UserInteractions.interactionEventsWithNoNesting.filter((event) => {
    return Timing_exports3.eventIsInBounds(event, context.bounds);
  });
  if (!interactionEvents2.length) {
    return finalize40({});
  }
  const longestByInteractionId = /* @__PURE__ */ new Map();
  for (const event of interactionEvents2) {
    const key = event.interactionId;
    const longest = longestByInteractionId.get(key);
    if (!longest || event.dur > longest.dur) {
      longestByInteractionId.set(key, event);
    }
  }
  const normalizedInteractionEvents = [...longestByInteractionId.values()];
  normalizedInteractionEvents.sort((a, b) => b.dur - a.dur);
  const highPercentileIndex = Math.min(9, Math.floor(normalizedInteractionEvents.length / 50));
  return finalize40({
    relatedEvents: [normalizedInteractionEvents[0]],
    longestInteractionEvent: normalizedInteractionEvents[0],
    highPercentileInteractionEvent: normalizedInteractionEvents[highPercentileIndex]
  });
}
function createOverlaysForSubpart(event, subpartIndex = -1) {
  const p1 = Timing_exports3.traceWindowFromMicroSeconds(event.ts, event.ts + event.inputDelay);
  const p2 = Timing_exports3.traceWindowFromMicroSeconds(p1.max, p1.max + event.mainThreadHandling);
  const p3 = Timing_exports3.traceWindowFromMicroSeconds(p2.max, p2.max + event.presentationDelay);
  let sections = [
    { bounds: p1, label: i18nString10(UIStrings11.inputDelay), showDuration: true },
    { bounds: p2, label: i18nString10(UIStrings11.processingDuration), showDuration: true },
    { bounds: p3, label: i18nString10(UIStrings11.presentationDelay), showDuration: true }
  ];
  if (subpartIndex !== -1) {
    sections = [sections[subpartIndex]];
  }
  return [
    {
      type: "TIMESPAN_BREAKDOWN",
      sections,
      renderLocation: "BELOW_EVENT",
      entry: event
    }
  ];
}
function createOverlays10(model2) {
  const event = model2.longestInteractionEvent;
  if (!event) {
    return [];
  }
  return createOverlaysForSubpart(event);
}
var UIStrings11, i18nString10;
var init_INPBreakdown = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/INPBreakdown.js"() {
    init_process_global();
    init_handlers();
    init_helpers2();
    init_types4();
    UIStrings11 = {
      /**
       * @description Text to tell the user about the longest user interaction.
       */
      description: "Start investigating [how to improve INP](https://developer.chrome.com/docs/performance/insights/inp-breakdown) by looking at the longest subpart.",
      /**
       * @description Title for the performance insight "INP breakdown", which shows a breakdown of INP by subparts / sections.
       */
      title: "INP breakdown",
      /**
       * @description Label used for the subpart/component/stage/section of a larger duration.
       */
      subpart: "Subpart",
      /**
       * @description Label used for a time duration.
       */
      duration: "Duration",
      // TODO: these are repeated in InteractionBreakdown. Add a place for common strings?
      /**
       * @description Text shown next to the interaction event's input delay time in the detail view.
       */
      inputDelay: "Input delay",
      /**
       * @description Text shown next to the interaction event's thread processing duration in the detail view.
       */
      processingDuration: "Processing duration",
      /**
       * @description Text shown next to the interaction event's presentation delay time in the detail view.
       */
      presentationDelay: "Presentation delay",
      /**
       * @description Text status indicating that no user interactions were detected.
       */
      noInteractions: "No interactions detected"
    };
    i18nString10 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(isINPBreakdownInsight, "isINPBreakdownInsight");
    __name(finalize40, "finalize");
    __name(generateInsight10, "generateInsight");
    __name(createOverlaysForSubpart, "createOverlaysForSubpart");
    __name(createOverlays10, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/LCPBreakdown.js
var LCPBreakdown_exports = {};
__export(LCPBreakdown_exports, {
  UIStrings: () => UIStrings12,
  createOverlays: () => createOverlays11,
  generateInsight: () => generateInsight11,
  i18nString: () => i18nString11,
  isLCPBreakdownInsight: () => isLCPBreakdownInsight
});
function isLCPBreakdownInsight(model2) {
  return model2.insightKey === "LCPBreakdown";
}
function anyValuesNaN(...values) {
  return values.some((v) => Number.isNaN(v));
}
function determineSubparts(nav, docRequest, lcpEvent, lcpRequest) {
  const firstDocByteTs = calculateDocFirstByteTs(docRequest);
  if (firstDocByteTs === null) {
    return null;
  }
  const ttfb = Timing_exports3.traceWindowFromMicroSeconds(nav.ts, firstDocByteTs);
  ttfb.label = i18nString11(UIStrings12.timeToFirstByte);
  let renderDelay = Timing_exports3.traceWindowFromMicroSeconds(ttfb.max, lcpEvent.ts);
  renderDelay.label = i18nString11(UIStrings12.elementRenderDelay);
  if (!lcpRequest) {
    if (anyValuesNaN(ttfb.range, renderDelay.range)) {
      return null;
    }
    return { ttfb, renderDelay };
  }
  const lcpStartTs = lcpRequest.ts;
  const lcpReqEndTs = lcpRequest.args.data.syntheticData.finishTime;
  const loadDelay = Timing_exports3.traceWindowFromMicroSeconds(ttfb.max, lcpStartTs);
  const loadDuration = Timing_exports3.traceWindowFromMicroSeconds(lcpStartTs, lcpReqEndTs);
  renderDelay = Timing_exports3.traceWindowFromMicroSeconds(lcpReqEndTs, lcpEvent.ts);
  loadDelay.label = i18nString11(UIStrings12.resourceLoadDelay);
  loadDuration.label = i18nString11(UIStrings12.resourceLoadDuration);
  renderDelay.label = i18nString11(UIStrings12.elementRenderDelay);
  if (anyValuesNaN(ttfb.range, loadDelay.range, loadDuration.range, renderDelay.range)) {
    return null;
  }
  return {
    ttfb,
    loadDelay,
    loadDuration,
    renderDelay
  };
}
function finalize41(partialModel) {
  const relatedEvents = [];
  if (partialModel.lcpEvent) {
    relatedEvents.push(partialModel.lcpEvent);
  }
  if (partialModel.lcpRequest) {
    relatedEvents.push(partialModel.lcpRequest);
  }
  let state = "pass";
  if (partialModel.lcpMs !== void 0) {
    const classification = ModelHandlers_exports.PageLoadMetrics.scoreClassificationForLargestContentfulPaint(Timing_exports3.milliToMicro(partialModel.lcpMs));
    if (classification === ModelHandlers_exports.PageLoadMetrics.ScoreClassification.GOOD) {
      state = "informative";
    } else {
      state = "fail";
    }
  }
  return {
    insightKey: InsightKeys.LCP_BREAKDOWN,
    strings: UIStrings12,
    title: i18nString11(UIStrings12.title),
    description: i18nString11(UIStrings12.description),
    docs: "https://developer.chrome.com/docs/performance/insights/lcp-breakdown",
    category: InsightCategory.LCP,
    state,
    ...partialModel,
    relatedEvents
  };
}
function generateInsight11(data31, context) {
  if (!context.navigation) {
    return finalize41({});
  }
  const networkRequests = data31.NetworkRequests;
  const frameMetrics = data31.PageLoadMetrics.metricScoresByFrameId.get(context.frameId);
  if (!frameMetrics) {
    throw new Error("no frame metrics");
  }
  const navMetrics = frameMetrics.get(context.navigation);
  if (!navMetrics) {
    throw new Error("no navigation metrics");
  }
  const metricScore = navMetrics.get(ModelHandlers_exports.PageLoadMetrics.MetricName.LCP);
  const lcpEvent = metricScore?.event;
  if (!lcpEvent || !TraceEvents_exports.isAnyLargestContentfulPaintCandidate(lcpEvent)) {
    return finalize41({ warnings: [InsightWarning.NO_LCP] });
  }
  const lcpMs = Timing_exports3.microToMilli(metricScore.timing);
  const lcpTs = metricScore.event?.ts ? Timing_exports3.microToMilli(metricScore.event?.ts) : void 0;
  const lcpRequest = data31.LargestImagePaint.lcpRequestByNavigationId.get(context.navigationId);
  const docRequest = networkRequests.byId.get(context.navigationId);
  if (!docRequest) {
    return finalize41({ lcpMs, lcpTs, lcpEvent, lcpRequest, warnings: [InsightWarning.NO_DOCUMENT_REQUEST] });
  }
  return finalize41({
    lcpMs,
    lcpTs,
    lcpEvent,
    lcpRequest,
    subparts: determineSubparts(context.navigation, docRequest, lcpEvent, lcpRequest) ?? void 0
  });
}
function createOverlays11(model2) {
  if (!model2.subparts || !model2.lcpTs) {
    return [];
  }
  const overlays = [
    {
      type: "TIMESPAN_BREAKDOWN",
      sections: Object.values(model2.subparts).map((subpart) => ({ bounds: subpart, label: subpart.label, showDuration: true }))
    }
  ];
  if (model2.lcpRequest) {
    overlays.push({ type: "ENTRY_OUTLINE", entry: model2.lcpRequest, outlineReason: "INFO" });
  }
  return overlays;
}
var UIStrings12, i18nString11;
var init_LCPBreakdown = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/LCPBreakdown.js"() {
    init_process_global();
    init_handlers();
    init_helpers2();
    init_types2();
    init_Common();
    init_types4();
    UIStrings12 = {
      /**
       * @description Title of an insight that provides details about the LCP metric, broken down by parts.
       */
      title: "LCP breakdown",
      /**
       * @description Description of a DevTools insight that presents a breakdown for the LCP metric by subparts.
       * This is displayed after a user expands the section to see more. No character length limits.
       */
      description: "Each [subpart has specific improvement strategies](https://developer.chrome.com/docs/performance/insights/lcp-breakdown). Ideally, most of the LCP time should be spent on loading the resources, not within delays.",
      /**
       * @description Time to first byte title for the Largest Contentful Paint's subparts timespan breakdown.
       */
      timeToFirstByte: "Time to first byte",
      /**
       * @description Resource load delay title for the Largest Contentful Paint subparts timespan breakdown.
       */
      resourceLoadDelay: "Resource load delay",
      /**
       * @description Resource load duration title for the Largest Contentful Paint subparts timespan breakdown.
       */
      resourceLoadDuration: "Resource load duration",
      /**
       * @description Element render delay title for the Largest Contentful Paint subparts timespan breakdown.
       */
      elementRenderDelay: "Element render delay",
      /**
       * @description Label used for the subpart (section) of a larger duration.
       */
      subpart: "Subpart",
      /**
       * @description Label used for the duration a single subpart (section) takes up of a larger duration.
       */
      duration: "Duration",
      /**
       * @description Label used for the duration a single subpart (section) takes up of a larger duration. The value will be the 75th percentile of aggregate data. "Field" means that the data was collected from real users in the field as opposed to the developers local environment. "Field" is synonymous with "Real user data".
       */
      fieldDuration: "Field p75",
      /**
       * @description Text status indicating that the the Largest Contentful Paint (LCP) metric timing was not found. "LCP" is an acronym and should not be translated.
       */
      noLcp: "No LCP detected"
    };
    i18nString11 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(isLCPBreakdownInsight, "isLCPBreakdownInsight");
    __name(anyValuesNaN, "anyValuesNaN");
    __name(determineSubparts, "determineSubparts");
    __name(finalize41, "finalize");
    __name(generateInsight11, "generateInsight");
    __name(createOverlays11, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/LCPDiscovery.js
var LCPDiscovery_exports = {};
__export(LCPDiscovery_exports, {
  UIStrings: () => UIStrings13,
  createOverlays: () => createOverlays12,
  generateInsight: () => generateInsight12,
  getImageData: () => getImageData,
  i18nString: () => i18nString12,
  isLCPDiscoveryInsight: () => isLCPDiscoveryInsight
});
function isLCPDiscoveryInsight(model2) {
  return model2.insightKey === "LCPDiscovery";
}
function finalize42(partialModel) {
  const relatedEvents = partialModel.lcpEvent && partialModel.lcpRequest ? (
    // TODO: add entire request initiator chain?
    [partialModel.lcpEvent, partialModel.lcpRequest]
  ) : [];
  return {
    insightKey: InsightKeys.LCP_DISCOVERY,
    strings: UIStrings13,
    title: i18nString12(UIStrings13.title),
    description: i18nString12(UIStrings13.description),
    docs: "https://developer.chrome.com/docs/performance/insights/lcp-discovery",
    category: InsightCategory.LCP,
    state: partialModel.lcpRequest && partialModel.checklist && (!partialModel.checklist.eagerlyLoaded.value || !partialModel.checklist.requestDiscoverable.value || !partialModel.checklist.priorityHinted.value) ? "fail" : "pass",
    ...partialModel,
    relatedEvents
  };
}
function generateInsight12(data31, context) {
  if (!context.navigation) {
    return finalize42({});
  }
  const networkRequests = data31.NetworkRequests;
  const frameMetrics = data31.PageLoadMetrics.metricScoresByFrameId.get(context.frameId);
  if (!frameMetrics) {
    throw new Error("no frame metrics");
  }
  const navMetrics = frameMetrics.get(context.navigation);
  if (!navMetrics) {
    throw new Error("no navigation metrics");
  }
  const metricScore = navMetrics.get(ModelHandlers_exports.PageLoadMetrics.MetricName.LCP);
  const lcpEvent = metricScore?.event;
  if (!lcpEvent || !TraceEvents_exports.isAnyLargestContentfulPaintCandidate(lcpEvent)) {
    return finalize42({ warnings: [InsightWarning.NO_LCP] });
  }
  const docRequest = networkRequests.byId.get(context.navigationId);
  if (!docRequest) {
    return finalize42({ warnings: [InsightWarning.NO_DOCUMENT_REQUEST] });
  }
  const lcpRequest = data31.LargestImagePaint.lcpRequestByNavigationId.get(context.navigationId);
  if (!lcpRequest) {
    return finalize42({ lcpEvent });
  }
  const initiatorUrl = lcpRequest.args.data.initiator?.url;
  const initiatedByMainDoc = lcpRequest?.args.data.initiator?.type === "parser" && docRequest.args.data.url === initiatorUrl;
  const imgPreloadedOrFoundInHTML = lcpRequest?.args.data.isLinkPreload || initiatedByMainDoc;
  const imageFetchPriorityHint = lcpRequest?.args.data.fetchPriorityHint;
  const earliestDiscoveryTime = calculateDocFirstByteTs(docRequest);
  const priorityHintFound = imageFetchPriorityHint === "high";
  const missingPriorityHintLabel = lcpRequest.args.data.isLinkPreload ? i18nString12(UIStrings13.fetchPriorityShouldBeAppliedToImagePreload) : i18nString12(UIStrings13.fetchPriorityShouldBeApplied);
  const lcpNotLazyLoaded = lcpEvent.args.data?.loadingAttr !== "lazy" || lcpRequest.args.data.isLinkPreload;
  return finalize42({
    lcpEvent,
    lcpRequest,
    earliestDiscoveryTimeTs: earliestDiscoveryTime ? Timing_exports.Micro(earliestDiscoveryTime) : void 0,
    checklist: {
      priorityHinted: {
        label: priorityHintFound ? i18nString12(UIStrings13.fetchPriorityApplied) : missingPriorityHintLabel,
        value: priorityHintFound
      },
      requestDiscoverable: { label: i18nString12(UIStrings13.requestDiscoverable), value: imgPreloadedOrFoundInHTML },
      eagerlyLoaded: { label: i18nString12(UIStrings13.lazyLoadNotApplied), value: lcpNotLazyLoaded }
    }
  });
}
function getImageData(model2) {
  if (!model2.lcpRequest || !model2.checklist) {
    return null;
  }
  const shouldIncreasePriorityHint = !model2.checklist.priorityHinted.value;
  const shouldPreloadImage = !model2.checklist.requestDiscoverable.value;
  const shouldRemoveLazyLoading = !model2.checklist.eagerlyLoaded.value;
  const imageLCP = shouldIncreasePriorityHint !== void 0 && shouldPreloadImage !== void 0 && shouldRemoveLazyLoading !== void 0;
  if (!imageLCP) {
    return null;
  }
  const data31 = {
    checklist: model2.checklist,
    request: model2.lcpRequest,
    discoveryDelay: null,
    estimatedSavings: model2.metricSavings?.LCP ?? null
  };
  if (model2.earliestDiscoveryTimeTs && model2.lcpRequest) {
    const discoveryDelay = model2.lcpRequest.ts - model2.earliestDiscoveryTimeTs;
    data31.discoveryDelay = Timing_exports.Micro(discoveryDelay);
  }
  return data31;
}
function createOverlays12(model2) {
  const imageResults = getImageData(model2);
  if (!imageResults?.discoveryDelay) {
    return [];
  }
  const delay = Timing_exports3.traceWindowFromMicroSeconds(Timing_exports.Micro(imageResults.request.ts - imageResults.discoveryDelay), imageResults.request.ts);
  return [
    {
      type: "ENTRY_OUTLINE",
      entry: imageResults.request,
      outlineReason: "ERROR"
    },
    {
      type: "CANDY_STRIPED_TIME_RANGE",
      bounds: delay,
      entry: imageResults.request
    },
    {
      type: "TIMESPAN_BREAKDOWN",
      sections: [{
        bounds: delay,
        // This is overridden in the component.
        label: `${imageResults.discoveryDelay} microseconds`,
        showDuration: false
      }],
      entry: imageResults.request,
      renderLocation: "ABOVE_EVENT"
    }
  ];
}
var UIStrings13, i18nString12;
var init_LCPDiscovery = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/LCPDiscovery.js"() {
    init_process_global();
    init_handlers();
    init_helpers2();
    init_types2();
    init_Common();
    init_types4();
    UIStrings13 = {
      /**
       * @description Title of an insight that provides details about the LCP metric, and the network requests necessary to load it. Details how the LCP request was discoverable - in other words, the path necessary to load it (ex: network requests, JavaScript)
       */
      title: "LCP request discovery",
      /**
       * @description Description of an insight that provides details about the LCP metric, and the network requests necessary to load it.
       */
      description: "[Optimize LCP](https://developer.chrome.com/docs/performance/insights/lcp-discovery) by making the LCP image discoverable from the HTML immediately, and avoiding lazy-loading",
      /**
       * @description Text to tell the user how long after the earliest discovery time their LCP element loaded.
       * @example {401ms} PH1
       */
      lcpLoadDelay: "LCP image loaded {PH1} after earliest start point.",
      /**
       * @description Text to tell the user that a fetchpriority property value of "high" is applied to the LCP request.
       */
      fetchPriorityApplied: "fetchpriority=high applied",
      /**
       * @description Text to tell the user that a fetchpriority property value of "high" should be applied to the LCP request.
       */
      fetchPriorityShouldBeApplied: "fetchpriority=high should be applied",
      /**
       * @description Text to tell the user that a fetchpriority property value of "high" should be applied to the preload request that loads the LCP image.
       */
      fetchPriorityShouldBeAppliedToImagePreload: "fetchpriority=high should be applied to the image preload request",
      /**
       * @description Text to tell the user that the LCP request is discoverable in the initial document.
       */
      requestDiscoverable: "Request is discoverable in initial document",
      /**
       * @description Text to tell the user that LCP resources should avoid using loading=lazy.
       */
      lazyLoadNotApplied: "LCP resources should not use loading=lazy",
      /**
       * @description Text status indicating that the the Largest Contentful Paint (LCP) metric timing was not found. "LCP" is an acronym and should not be translated.
       */
      noLcp: "No LCP detected",
      /**
       * @description Text status indicating that the Largest Contentful Paint (LCP) metric was text rather than an image. "LCP" is an acronym and should not be translated.
       */
      noLcpResource: "No LCP resource detected because the LCP is not an image"
    };
    i18nString12 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(isLCPDiscoveryInsight, "isLCPDiscoveryInsight");
    __name(finalize42, "finalize");
    __name(generateInsight12, "generateInsight");
    __name(getImageData, "getImageData");
    __name(createOverlays12, "createOverlays");
  }
});

// node_modules/legacy-javascript/legacy-javascript.js
var legacy_javascript_exports = {};
__export(legacy_javascript_exports, {
  detectLegacyJavaScript: () => detectLegacyJavaScript,
  getCoreJsPolyfillData: () => getCoreJsPolyfillData,
  getTransformPatterns: () => getTransformPatterns
});
function buildPolyfillExpression(object, property, coreJs3Module) {
  const qt = /* @__PURE__ */ __name((token) => `['"]${token}['"]`, "qt");
  let expression = "";
  if (object) {
    expression += `${object}\\.${property}\\s?=[^=]`;
  } else {
    expression += `(?:window\\.|[\\s;]+)${property}\\s?=[^=]`;
  }
  if (object) {
    expression += `|${object}\\[${qt(property)}\\]\\s?=[^=]`;
  }
  expression += `|defineProperty\\(${object || "window"},\\s?${qt(property)}`;
  if (object) {
    expression += `|\\(${object},\\s*{${property}:.*},\\s*{${property}`;
  }
  if (object) {
    const objectWithoutPrototype = object.replace(".prototype", "");
    expression += `|{target:${qt(objectWithoutPrototype)}[^;]*},{${property}:`;
  } else {
  }
  expression += `|${coreJs3Module.replaceAll(".", "\\.")}(?:\\.js)?"`;
  return expression;
}
function getCoreJsPolyfillData() {
  return polyfillModuleData.filter((d) => d.corejs).map((d) => {
    return {
      name: d.name,
      coreJs3Module: d.modules[0]
    };
  });
}
function getPolyfillPatterns() {
  const patterns = [];
  for (const { name, coreJs3Module } of getCoreJsPolyfillData()) {
    const parts = name.split(".");
    const object = parts.length > 1 ? parts.slice(0, parts.length - 1).join(".") : null;
    const property = parts[parts.length - 1];
    patterns.push({
      name,
      expression: buildPolyfillExpression(object, property, coreJs3Module)
    });
  }
  return patterns;
}
function getTransformPatterns() {
  const count = /* @__PURE__ */ __name((content, pattern) => {
    if (typeof pattern === "string") {
      return content.split(pattern).length - 1;
    }
    return (content.match(pattern) ?? []).length;
  }, "count");
  return [
    // @babel/plugin-transform-classes
    //
    // input:
    //
    // class MyTestClass {
    //   log() {
    //     console.log(1);
    //   }
    // };
    //
    // output:
    //
    // function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
    // function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
    // function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
    // function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
    // function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
    // let MyTestClass = function () {
    //   function MyTestClass() {
    //     _classCallCheck(this, MyTestClass);
    //   }
    //   return _createClass(MyTestClass, [{
    //     key: "log",
    //     value: function log() {
    //       console.log(1);
    //     }
    //   }]);
    // }();
    {
      name: "@babel/plugin-transform-classes",
      expression: "Cannot call a class as a function",
      estimateBytes: /* @__PURE__ */ __name((content) => {
        return 1e3 + (count(content, "_classCallCheck") - 1) * "_classCallCheck()".length;
      }, "estimateBytes")
    },
    {
      name: "@babel/plugin-transform-regenerator",
      expression: "Generator is already running|regeneratorRuntime",
      // Example of this transform: https://gist.github.com/connorjclark/af8bccfff377ac44efc104a79bc75da2
      // `regeneratorRuntime.awrap` is generated for every usage of `await`, and adds ~80 bytes each.
      estimateBytes: /* @__PURE__ */ __name((content) => {
        return count(content, /regeneratorRuntime\(?\)?\.a?wrap/g) * 80;
      }, "estimateBytes")
    },
    {
      name: "@babel/plugin-transform-spread",
      expression: "Invalid attempt to spread non-iterable instance",
      estimateBytes: /* @__PURE__ */ __name((content) => {
        const per = "_toConsumableArray()".length;
        return 1169 + count(content, /\.apply\(void 0,\s?_toConsumableArray/g) * per;
      }, "estimateBytes")
    }
  ];
}
function estimateWastedBytes(content, matches) {
  const polyfillResults = matches.filter((m) => !m.name.startsWith("@"));
  const transformResults = matches.filter((m) => m.name.startsWith("@"));
  let estimatedWastedBytesFromPolyfills = 0;
  const modulesSeen = /* @__PURE__ */ new Set();
  for (const result of polyfillResults) {
    const modules = graph.dependencies[result.name];
    if (!modules)
      continue;
    for (const module2 of modules) {
      modulesSeen.add(module2);
    }
  }
  estimatedWastedBytesFromPolyfills += [...modulesSeen].reduce((acc, moduleIndex) => {
    return acc + graph.moduleSizes[moduleIndex];
  }, 0);
  estimatedWastedBytesFromPolyfills = Math.min(estimatedWastedBytesFromPolyfills, graph.maxSize);
  let estimatedWastedBytesFromTransforms = 0;
  for (const result of transformResults) {
    const pattern = getTransformPatterns().find((p) => p.name === result.name);
    if (!pattern || !pattern.estimateBytes || !content)
      continue;
    estimatedWastedBytesFromTransforms += pattern.estimateBytes(content);
  }
  const estimatedWastedBytes = estimatedWastedBytesFromPolyfills + estimatedWastedBytesFromTransforms;
  return estimatedWastedBytes;
}
function detectLegacyJavaScript(content, map) {
  if (!content)
    return { matches: [], estimatedByteSavings: 0 };
  let matches = matcher.match(content);
  if (map) {
    for (const { name, modules } of polyfillModuleData) {
      if (matches.some((m) => m.name === name))
        continue;
      const source = map.sourceURLs().find((source2) => modules.some((module2) => {
        return source2.endsWith(`/${module2}.js`) || source2.includes(`node_modules/${module2}/`);
      }));
      if (!source)
        continue;
      const mapping = map.mappings().find((m) => m.sourceURL === source);
      if (mapping) {
        matches.push({ name, line: mapping.lineNumber, column: mapping.columnNumber });
      } else {
        matches.push({ name, line: 0, column: 0 });
      }
    }
  }
  matches = matches.sort((a, b) => a.name > b.name ? 1 : a.name === b.name ? 0 : -1);
  return {
    matches,
    estimatedByteSavings: estimateWastedBytes(content, matches)
  };
}
var polyfill_module_data_default, polyfill_graph_data_default, polyfillModuleData, graph, CodePatternMatcher, matcher;
var init_legacy_javascript = __esm({
  "node_modules/legacy-javascript/legacy-javascript.js"() {
    init_process_global();
    polyfill_module_data_default = [
      {
        name: "focus-visible",
        modules: [
          "focus-visible"
        ]
      },
      {
        name: "Error.prototype.cause",
        modules: [
          "es.error.cause"
        ]
      },
      {
        name: "Array.prototype.at",
        modules: [
          "es.array.at",
          "esnext.array.at"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.concat",
        modules: [
          "es.array.concat"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.copyWithin",
        modules: [
          "es.array.copy-within"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.every",
        modules: [
          "es.array.every"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.fill",
        modules: [
          "es.array.fill"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.filter",
        modules: [
          "es.array.filter"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.find",
        modules: [
          "es.array.find"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.findIndex",
        modules: [
          "es.array.find-index"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.findLast",
        modules: [
          "es.array.find-last",
          "esnext.array.find-last"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.findLastIndex",
        modules: [
          "es.array.find-last-index",
          "esnext.array.find-last-index"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.flat",
        modules: [
          "es.array.flat"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.flatMap",
        modules: [
          "es.array.flat-map"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.forEach",
        modules: [
          "es.array.for-each"
        ],
        corejs: true
      },
      {
        name: "Array.from",
        modules: [
          "es.array.from"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.includes",
        modules: [
          "es.array.includes"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.indexOf",
        modules: [
          "es.array.index-of"
        ],
        corejs: true
      },
      {
        name: "Array.isArray",
        modules: [
          "es.array.is-array"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.join",
        modules: [
          "es.array.join"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.map",
        modules: [
          "es.array.map"
        ],
        corejs: true
      },
      {
        name: "Array.of",
        modules: [
          "es.array.of"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.slice",
        modules: [
          "es.array.slice"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.some",
        modules: [
          "es.array.some"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.sort",
        modules: [
          "es.array.sort"
        ],
        corejs: true
      },
      {
        name: "Array.prototype.unshift",
        modules: [
          "es.array.unshift"
        ],
        corejs: true
      },
      {
        name: "Math.acosh",
        modules: [
          "es.math.acosh"
        ],
        corejs: true
      },
      {
        name: "Math.asinh",
        modules: [
          "es.math.asinh"
        ],
        corejs: true
      },
      {
        name: "Math.atanh",
        modules: [
          "es.math.atanh"
        ],
        corejs: true
      },
      {
        name: "Math.cbrt",
        modules: [
          "es.math.cbrt"
        ],
        corejs: true
      },
      {
        name: "Math.clz32",
        modules: [
          "es.math.clz32"
        ],
        corejs: true
      },
      {
        name: "Math.cosh",
        modules: [
          "es.math.cosh"
        ],
        corejs: true
      },
      {
        name: "Math.expm1",
        modules: [
          "es.math.expm1"
        ],
        corejs: true
      },
      {
        name: "Math.fround",
        modules: [
          "es.math.fround"
        ],
        corejs: true
      },
      {
        name: "Math.hypot",
        modules: [
          "es.math.hypot"
        ],
        corejs: true
      },
      {
        name: "Math.imul",
        modules: [
          "es.math.imul"
        ],
        corejs: true
      },
      {
        name: "Math.log10",
        modules: [
          "es.math.log10"
        ],
        corejs: true
      },
      {
        name: "Math.log1p",
        modules: [
          "es.math.log1p"
        ],
        corejs: true
      },
      {
        name: "Math.log2",
        modules: [
          "es.math.log2"
        ],
        corejs: true
      },
      {
        name: "Math.sign",
        modules: [
          "es.math.sign"
        ],
        corejs: true
      },
      {
        name: "Math.sinh",
        modules: [
          "es.math.sinh"
        ],
        corejs: true
      },
      {
        name: "Math.tanh",
        modules: [
          "es.math.tanh"
        ],
        corejs: true
      },
      {
        name: "Math.trunc",
        modules: [
          "es.math.trunc"
        ],
        corejs: true
      },
      {
        name: "Object.assign",
        modules: [
          "es.object.assign"
        ],
        corejs: true
      },
      {
        name: "Object.create",
        modules: [
          "es.object.create"
        ],
        corejs: true
      },
      {
        name: "Object.entries",
        modules: [
          "es.object.entries"
        ],
        corejs: true
      },
      {
        name: "Object.freeze",
        modules: [
          "es.object.freeze"
        ],
        corejs: true
      },
      {
        name: "Object.fromEntries",
        modules: [
          "es.object.from-entries"
        ],
        corejs: true
      },
      {
        name: "Object.getOwnPropertyDescriptor",
        modules: [
          "es.object.get-own-property-descriptor"
        ],
        corejs: true
      },
      {
        name: "Object.getOwnPropertyDescriptors",
        modules: [
          "es.object.get-own-property-descriptors"
        ],
        corejs: true
      },
      {
        name: "Object.getPrototypeOf",
        modules: [
          "es.object.get-prototype-of"
        ],
        corejs: true
      },
      {
        name: "Object.hasOwn",
        modules: [
          "es.object.has-own",
          "esnext.object.has-own"
        ],
        corejs: true
      },
      {
        name: "Object.is",
        modules: [
          "es.object.is"
        ],
        corejs: true
      },
      {
        name: "Object.isExtensible",
        modules: [
          "es.object.is-extensible"
        ],
        corejs: true
      },
      {
        name: "Object.isFrozen",
        modules: [
          "es.object.is-frozen"
        ],
        corejs: true
      },
      {
        name: "Object.isSealed",
        modules: [
          "es.object.is-sealed"
        ],
        corejs: true
      },
      {
        name: "Object.keys",
        modules: [
          "es.object.keys"
        ],
        corejs: true
      },
      {
        name: "Object.preventExtensions",
        modules: [
          "es.object.prevent-extensions"
        ],
        corejs: true
      },
      {
        name: "Object.seal",
        modules: [
          "es.object.seal"
        ],
        corejs: true
      },
      {
        name: "Object.setPrototypeOf",
        modules: [
          "es.object.set-prototype-of"
        ],
        corejs: true
      },
      {
        name: "Object.values",
        modules: [
          "es.object.values"
        ],
        corejs: true
      },
      {
        name: "Promise.any",
        modules: [
          "es.promise.any",
          "esnext.promise.any"
        ],
        corejs: true
      },
      {
        name: "Reflect.apply",
        modules: [
          "es.reflect.apply"
        ],
        corejs: true
      },
      {
        name: "Reflect.construct",
        modules: [
          "es.reflect.construct"
        ],
        corejs: true
      },
      {
        name: "Reflect.deleteProperty",
        modules: [
          "es.reflect.delete-property"
        ],
        corejs: true
      },
      {
        name: "Reflect.get",
        modules: [
          "es.reflect.get"
        ],
        corejs: true
      },
      {
        name: "Reflect.getOwnPropertyDescriptor",
        modules: [
          "es.reflect.get-own-property-descriptor"
        ],
        corejs: true
      },
      {
        name: "Reflect.getPrototypeOf",
        modules: [
          "es.reflect.get-prototype-of"
        ],
        corejs: true
      },
      {
        name: "Reflect.has",
        modules: [
          "es.reflect.has"
        ],
        corejs: true
      },
      {
        name: "Reflect.isExtensible",
        modules: [
          "es.reflect.is-extensible"
        ],
        corejs: true
      },
      {
        name: "Reflect.ownKeys",
        modules: [
          "es.reflect.own-keys"
        ],
        corejs: true
      },
      {
        name: "Reflect.preventExtensions",
        modules: [
          "es.reflect.prevent-extensions"
        ],
        corejs: true
      },
      {
        name: "Reflect.setPrototypeOf",
        modules: [
          "es.reflect.set-prototype-of"
        ],
        corejs: true
      },
      {
        name: "String.prototype.codePointAt",
        modules: [
          "es.string.code-point-at"
        ],
        corejs: true
      },
      {
        name: "String.prototype.endsWith",
        modules: [
          "es.string.ends-with"
        ],
        corejs: true
      },
      {
        name: "String.fromCodePoint",
        modules: [
          "es.string.from-code-point"
        ],
        corejs: true
      },
      {
        name: "String.prototype.includes",
        modules: [
          "es.string.includes"
        ],
        corejs: true
      },
      {
        name: "String.prototype.matchAll",
        modules: [
          "es.string.match-all",
          "esnext.string.match-all"
        ],
        corejs: true
      },
      {
        name: "String.raw",
        modules: [
          "es.string.raw"
        ],
        corejs: true
      },
      {
        name: "String.prototype.repeat",
        modules: [
          "es.string.repeat"
        ],
        corejs: true
      },
      {
        name: "String.prototype.replaceAll",
        modules: [
          "es.string.replace-all",
          "esnext.string.replace-all"
        ],
        corejs: true
      },
      {
        name: "String.prototype.startsWith",
        modules: [
          "es.string.starts-with"
        ],
        corejs: true
      },
      {
        name: "String.prototype.substr",
        modules: [
          "es.string.substr"
        ],
        corejs: true
      },
      {
        name: "String.prototype.trim",
        modules: [
          "es.string.trim"
        ],
        corejs: true
      },
      {
        name: "String.prototype.trimEnd",
        modules: [
          "es.string.trim-end"
        ],
        corejs: true
      },
      {
        name: "String.prototype.trimStart",
        modules: [
          "es.string.trim-start"
        ],
        corejs: true
      },
      {
        name: "String.prototype.link",
        modules: [
          "es.string.link"
        ],
        corejs: true
      },
      {
        name: "Promise.allSettled",
        modules: [
          "esnext.promise.all-settled"
        ],
        corejs: true
      }
    ];
    polyfill_graph_data_default = {
      moduleSizes: [26070, 498, 282, 294, 281, 467, 161, 236, 229, 765, 546, 339, 1608, 723, 729, 1545, 438, 214, 657, 111, 759, 537, 209, 281, 685, 217, 757, 631, 293, 182, 475, 79, 407, 140, 366, 792, 269, 222, 158, 280, 188, 137, 158, 105, 189, 543, 160, 742, 1436, 88, 904, 146, 314, 375, 183, 1083, 195, 503, 269, 208, 334, 350, 460, 568, 229, 1155, 334, 266, 30, 120, 309, 370, 358, 1952, 1638, 304, 153, 274, 1288, 192, 543, 74, 144, 137, 33, 336, 457, 2122, 535, 711, 1323, 117, 1961, 244, 557, 318, 119, 124, 108, 144, 96, 133, 441, 210, 1627, 1956, 693, 1426, 863, 637, 301, 51, 708, 583, 119, 600, 221, 370, 728, 1085, 552, 629, 125, 1746, 97, 441, 543, 2756, 371, 447, 548, 243, 266, 217, 99, 440, 183, 546, 137, 464, 207, 983, 503, 237, 382, 249, 675, 402, 254, 223, 164, 214, 191, 831, 218, 202, 232, 124, 249, 160, 251, 217, 717, 78, 561, 1627, 256, 386, 225, 432, 499, 394, 364, 445, 634, 667, 177, 346, 470, 663, 142, 588, 414, 617, 1559, 380, 2520, 1040, 417, 289, 238, 220, 214, 303,
      163, 141, 510, 397, 137, 137, 133, 133, 390, 266, 137, 183, 215, 191, 485, 328, 575, 799, 533, 148, 215, 589, 589, 130, 362, 562, 471, 179, 186, 1266, 1456, 521, 1536, 427, 444, 406, 912, 150, 283, 144, 485, 470, 205, 1268, 796, 658, 306, 3751, 814, 146, 2328, 1226, 922, 237, 206, 198, 250, 283, 60, 3e3],
      dependencies: {
        "Array.prototype.at": [0, 5, 69, 105, 106, 116, 164],
        "Array.prototype.concat": [0, 16, 21, 22, 26, 34, 40, 76, 78, 155, 165],
        "Array.prototype.copyWithin": [0, 5, 9, 37, 69, 105, 106, 116, 166],
        "Array.prototype.every": [0, 15, 17, 21, 22, 26, 53, 59, 76, 78, 155, 167],
        "Array.prototype.fill": [0, 5, 10, 69, 105, 106, 116, 168],
        "Array.prototype.filter": [0, 15, 16, 21, 22, 26, 53, 59, 76, 78, 155, 169],
        "Array.prototype.find": [0, 5, 15, 21, 22, 26, 53, 59, 69, 76, 78, 105, 106, 116, 155, 173],
        "Array.prototype.findIndex": [0, 5, 15, 21, 22, 26, 53, 59, 69, 76, 78, 105, 106, 116, 155, 170],
        "Array.prototype.findLast": [0, 5, 14, 53, 59, 69, 105, 106, 116, 172],
        "Array.prototype.findLastIndex": [0, 5, 14, 53, 59, 69, 105, 106, 116, 171],
        "Array.prototype.flat": [0, 21, 22, 26, 40, 50, 53, 59, 76, 78, 155, 175],
        "Array.prototype.flatMap": [0, 21, 22, 26, 40, 50, 53, 59, 76, 78, 155, 174],
        "Array.prototype.forEach": [0, 11, 15, 17, 21, 22, 26, 53, 59, 76, 78, 155, 176],
        "Array.from": [0, 12, 23, 24, 26, 34, 53, 59, 62, 63, 75, 78, 88, 155, 177],
        "Array.prototype.includes": [0, 5, 69, 105, 106, 116, 178],
        "Array.prototype.indexOf": [0, 17, 59, 179],
        "Array.isArray": [0, 76, 180],
        "Array.prototype.join": [0, 17, 181],
        "Array.prototype.map": [0, 15, 16, 21, 22, 26, 53, 59, 76, 78, 155, 182],
        "Array.of": [0, 26, 34, 78, 155, 183],
        "Array.prototype.slice": [0, 16, 19, 26, 34, 76, 78, 155, 184],
        "Array.prototype.some": [0, 15, 17, 21, 22, 26, 53, 59, 76, 78, 155, 185],
        "Array.prototype.sort": [0, 17, 19, 20, 26, 37, 42, 43, 46, 155, 156, 186],
        "Array.prototype.unshift": [0, 18, 37, 40, 76, 187],
        "Math.acosh": [0, 97, 188],
        "Math.asinh": [0, 189],
        "Math.atanh": [0, 190],
        "Math.cbrt": [0, 100, 191],
        "Math.clz32": [0, 192],
        "Math.cosh": [0, 93, 193],
        "Math.expm1": [0, 93, 194],
        "Math.fround": [0, 94, 95, 99, 100, 195],
        "Math.hypot": [0, 196],
        "Math.imul": [0, 197],
        "Math.log10": [0, 96, 198],
        "Math.log1p": [0, 97, 199],
        "Math.log2": [0, 98, 200],
        "Math.sign": [0, 100, 201],
        "Math.sinh": [0, 93, 202],
        "Math.tanh": [0, 93, 203],
        "Math.trunc": [0, 204],
        "Object.assign": [0, 104, 116, 205],
        "Object.create": [0, 69, 105, 106, 116, 206],
        "Object.entries": [0, 29, 112, 116, 119, 207],
        "Object.freeze": [0, 8, 19, 51, 73, 109, 113, 208],
        "Object.fromEntries": [0, 26, 34, 53, 59, 62, 63, 75, 87, 88, 155, 209],
        "Object.getOwnPropertyDescriptor": [0, 210],
        "Object.getOwnPropertyDescriptors": [0, 34, 211],
        "Object.getPrototypeOf": [0, 29, 112, 212],
        "Object.hasOwn": [0, 213],
        "Object.is": [0, 134, 217],
        "Object.isExtensible": [0, 8, 113, 214],
        "Object.isFrozen": [0, 8, 215],
        "Object.isSealed": [0, 8, 216],
        "Object.keys": [0, 116, 218],
        "Object.preventExtensions": [0, 8, 19, 51, 73, 109, 113, 219],
        "Object.seal": [0, 8, 19, 51, 73, 109, 113, 220],
        "Object.setPrototypeOf": [0, 4, 58, 83, 118, 221],
        "Object.values": [0, 29, 112, 116, 119, 222],
        "Promise.any": [0, 24, 26, 47, 53, 59, 62, 63, 75, 87, 88, 102, 122, 123, 124, 125, 155, 224],
        "Reflect.apply": [0, 52, 225],
        "Reflect.construct": [0, 3, 19, 26, 52, 55, 69, 78, 105, 106, 116, 155, 226],
        "Reflect.deleteProperty": [0, 227],
        "Reflect.get": [0, 29, 79, 112, 230],
        "Reflect.getOwnPropertyDescriptor": [0, 228],
        "Reflect.getPrototypeOf": [0, 29, 112, 229],
        "Reflect.has": [0, 231],
        "Reflect.isExtensible": [0, 8, 113, 232],
        "Reflect.ownKeys": [0, 233],
        "Reflect.preventExtensions": [0, 51, 234],
        "Reflect.setPrototypeOf": [0, 4, 58, 83, 118, 235],
        "String.prototype.codePointAt": [0, 26, 141, 155, 156, 236],
        "String.prototype.endsWith": [0, 26, 28, 59, 85, 103, 155, 156, 237],
        "String.fromCodePoint": [0, 238],
        "String.prototype.includes": [0, 26, 28, 85, 103, 155, 156, 239],
        "String.prototype.matchAll": [0, 3, 6, 26, 29, 31, 59, 69, 78, 85, 89, 90, 105, 106, 112, 116, 126, 127, 128, 129, 130, 131, 132, 135, 139, 141, 155, 156, 241],
        "String.raw": [0, 26, 155, 156, 242],
        "String.prototype.repeat": [0, 26, 142, 155, 156, 243],
        "String.prototype.replaceAll": [0, 26, 65, 85, 128, 129, 155, 156, 244],
        "String.prototype.startsWith": [0, 26, 28, 59, 85, 103, 155, 156, 245],
        "String.prototype.substr": [0, 26, 155, 156, 246],
        "String.prototype.trim": [0, 26, 144, 146, 155, 156, 163, 251],
        "String.prototype.trimEnd": [0, 26, 143, 144, 146, 155, 156, 163, 247, 249],
        "String.prototype.trimStart": [0, 26, 144, 145, 146, 155, 156, 163, 248, 250],
        "String.prototype.link": [0, 26, 30, 140, 155, 156, 240],
        "Promise.allSettled": [0, 24, 26, 47, 53, 59, 62, 63, 75, 87, 88, 102, 122, 123, 124, 125, 155, 223, 252],
        "focus-visible": [253]
      },
      maxSize: 155835
    };
    polyfillModuleData = polyfill_module_data_default;
    graph = polyfill_graph_data_default;
    CodePatternMatcher = class {
      static {
        __name(this, "CodePatternMatcher");
      }
      /**
       * @param {Pattern[]} patterns
       */
      constructor(patterns) {
        this.patterns = patterns;
      }
      /**
       * @param {string} code
       * @return {PatternMatchResult[]}
       */
      match(code) {
        if (!this.re) {
          const patternsExpression = this.patterns.map((pattern) => `(${pattern.expression})`).join("|");
          this.re = new RegExp(`(^\r
|\r|
)|${patternsExpression}`, "g");
        }
        this.re.lastIndex = 0;
        const seen = /* @__PURE__ */ new Set();
        const matches = [];
        let result;
        let line = 0;
        let lineBeginsAtIndex = 0;
        while ((result = this.re.exec(code)) !== null) {
          const captureGroups = result.slice(1);
          const [isNewline, ...patternExpressionMatches] = captureGroups;
          if (isNewline) {
            line++;
            lineBeginsAtIndex = result.index + 1;
            continue;
          }
          const pattern = this.patterns[patternExpressionMatches.findIndex(Boolean)];
          if (seen.has(pattern)) {
            continue;
          }
          seen.add(pattern);
          matches.push({
            name: pattern.name,
            line,
            column: result.index - lineBeginsAtIndex
          });
        }
        return matches;
      }
    };
    __name(buildPolyfillExpression, "buildPolyfillExpression");
    __name(getCoreJsPolyfillData, "getCoreJsPolyfillData");
    __name(getPolyfillPatterns, "getPolyfillPatterns");
    __name(getTransformPatterns, "getTransformPatterns");
    __name(estimateWastedBytes, "estimateWastedBytes");
    matcher = new CodePatternMatcher([
      ...getPolyfillPatterns(),
      ...getTransformPatterns()
    ]);
    __name(detectLegacyJavaScript, "detectLegacyJavaScript");
    /**
     * @license
     * Copyright 2025 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
  }
});

// node_modules/@paulirish/trace_engine/third_party/legacy-javascript/legacy-javascript.js
var init_legacy_javascript2 = __esm({
  "node_modules/@paulirish/trace_engine/third_party/legacy-javascript/legacy-javascript.js"() {
    init_process_global();
    init_legacy_javascript();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/LegacyJavaScript.js
var LegacyJavaScript_exports = {};
__export(LegacyJavaScript_exports, {
  UIStrings: () => UIStrings14,
  createOverlays: () => createOverlays13,
  generateInsight: () => generateInsight13,
  i18nString: () => i18nString13,
  isLegacyJavaScript: () => isLegacyJavaScript
});
function finalize43(partialModel) {
  const requests = [...partialModel.legacyJavaScriptResults.keys()].map((script) => script.request).filter((e) => !!e);
  return {
    insightKey: InsightKeys.LEGACY_JAVASCRIPT,
    strings: UIStrings14,
    title: i18nString13(UIStrings14.title),
    description: i18nString13(UIStrings14.description),
    docs: "https://developer.chrome.com/docs/performance/insights/legacy-javascript",
    category: InsightCategory.ALL,
    state: requests.length ? "fail" : "pass",
    relatedEvents: [...new Set(requests)],
    ...partialModel
  };
}
function isLegacyJavaScript(model2) {
  return model2.insightKey === InsightKeys.LEGACY_JAVASCRIPT;
}
function generateInsight13(data31, context) {
  const scripts = data31.Scripts.scripts.filter((script) => {
    if (script.frame !== context.frameId) {
      return false;
    }
    if (script.url?.startsWith("chrome-extension://")) {
      return false;
    }
    return Timing_exports3.timestampIsInBounds(context.bounds, script.ts) || script.request && Timing_exports3.eventIsInBounds(script.request, context.bounds);
  });
  const legacyJavaScriptResults = /* @__PURE__ */ new Map();
  const wastedBytesByRequestId = /* @__PURE__ */ new Map();
  for (const script of scripts) {
    if (!script.content || script.content.length < BYTE_THRESHOLD) {
      continue;
    }
    const result = detectLegacyJavaScript2(script.content, script.sourceMap);
    if (result.estimatedByteSavings < BYTE_THRESHOLD) {
      continue;
    }
    const compressionRatio = estimateCompressionRatioForScript(script);
    const transferSize = Math.round(result.estimatedByteSavings * compressionRatio);
    result.estimatedByteSavings = transferSize;
    legacyJavaScriptResults.set(script, result);
    if (script.request) {
      const requestId = script.request.args.data.requestId;
      wastedBytesByRequestId.set(requestId, transferSize);
    }
  }
  const sorted2 = new Map([...legacyJavaScriptResults].sort((a, b) => b[1].estimatedByteSavings - a[1].estimatedByteSavings));
  return finalize43({
    legacyJavaScriptResults: sorted2,
    metricSavings: metricSavingsForWastedBytes(wastedBytesByRequestId, context),
    wastedBytes: wastedBytesByRequestId.values().reduce((acc, cur) => acc + cur, 0)
  });
}
function createOverlays13(model2) {
  return [...model2.legacyJavaScriptResults.keys()].map((script) => script.request).filter((e) => !!e).map((request) => {
    return {
      type: "ENTRY_OUTLINE",
      entry: request,
      outlineReason: "ERROR"
    };
  });
}
var detectLegacyJavaScript2, UIStrings14, i18nString13, BYTE_THRESHOLD;
var init_LegacyJavaScript = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/LegacyJavaScript.js"() {
    init_process_global();
    init_legacy_javascript2();
    init_helpers2();
    init_Common();
    init_types4();
    ({ detectLegacyJavaScript: detectLegacyJavaScript2 } = legacy_javascript_exports);
    UIStrings14 = {
      /**
       * @description Title of an insight that identifies polyfills for modern JavaScript features, and recommends their removal.
       */
      title: "Legacy JavaScript",
      /**
       * @description Description of an insight that identifies polyfills for modern JavaScript features, and recommends their removal.
       */
      description: "Polyfills and transforms enable older browsers to use new JavaScript features. However, many aren't necessary for modern browsers. Consider modifying your JavaScript build process to not transpile [Baseline](https://web.dev/articles/baseline-and-polyfills) features, unless you know you must support older browsers. [Learn why most sites can deploy ES6+ code without transpiling](https://developer.chrome.com/docs/performance/insights/legacy-javascript)",
      /** Label for a column in a data table; entries will be the individual JavaScript scripts. */
      columnScript: "Script",
      /** Label for a column in a data table; entries will be the number of wasted bytes (aka the estimated savings in terms of bytes). */
      columnWastedBytes: "Wasted bytes",
      /**
       * @description Message shown when no legacy JavaScript is found.
       */
      noLegacyJavaScript: "No legacy JavaScript found"
    };
    i18nString13 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    BYTE_THRESHOLD = 5e3;
    __name(finalize43, "finalize");
    __name(isLegacyJavaScript, "isLegacyJavaScript");
    __name(generateInsight13, "generateInsight");
    __name(createOverlays13, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/ModernHTTP.js
var ModernHTTP_exports = {};
__export(ModernHTTP_exports, {
  UIStrings: () => UIStrings15,
  createOverlayForRequest: () => createOverlayForRequest3,
  createOverlays: () => createOverlays14,
  determineHttp1Requests: () => determineHttp1Requests,
  generateInsight: () => generateInsight14,
  i18nString: () => i18nString14,
  isModernHTTPInsight: () => isModernHTTPInsight
});
function isModernHTTPInsight(model2) {
  return model2.insightKey === InsightKeys.MODERN_HTTP;
}
function isMultiplexableStaticAsset(request, entityMappings3, firstPartyEntity) {
  if (!Network_exports.STATIC_RESOURCE_TYPES.has(request.args.data.resourceType)) {
    return false;
  }
  if (request.args.data.decodedBodyLength < 100) {
    const entity = entityMappings3.entityByEvent.get(request);
    if (entity) {
      if (firstPartyEntity?.name === entity.name) {
        return true;
      }
      if (!entity.isUnrecognized) {
        return false;
      }
    }
  }
  return true;
}
function determineHttp1Requests(requests, entityMappings3, firstPartyEntity) {
  const http1Requests = [];
  const groupedByOrigin = /* @__PURE__ */ new Map();
  for (const record of requests) {
    const url = new URL(record.args.data.url);
    if (!isMultiplexableStaticAsset(record, entityMappings3, firstPartyEntity)) {
      continue;
    }
    if (Network_exports.isSyntheticNetworkRequestLocalhost(record)) {
      continue;
    }
    const originRequests = MapUtilities_exports.getWithDefault(groupedByOrigin, url.origin, () => []);
    originRequests.push(record);
  }
  const seenURLs = /* @__PURE__ */ new Set();
  for (const request of requests) {
    if (seenURLs.has(request.args.data.url)) {
      continue;
    }
    if (request.args.data.fromServiceWorker) {
      continue;
    }
    const isOldHttp = /HTTP\/[01][.\d]?/i.test(request.args.data.protocol);
    if (!isOldHttp) {
      continue;
    }
    const url = new URL(request.args.data.url);
    const group = groupedByOrigin.get(url.origin) || [];
    if (group.length < 6) {
      continue;
    }
    seenURLs.add(request.args.data.url);
    http1Requests.push(request);
  }
  return http1Requests;
}
function computeWasteWithGraph(urlsToChange, graph2, simulator) {
  const simulationBefore = simulator.simulate(graph2);
  const originalProtocols = /* @__PURE__ */ new Map();
  graph2.traverse((node) => {
    if (node.type !== "network") {
      return;
    }
    if (!urlsToChange.has(node.request.url)) {
      return;
    }
    originalProtocols.set(node.request.requestId, node.request.protocol);
    node.request.protocol = "h2";
  });
  const simulationAfter = simulator.simulate(graph2);
  graph2.traverse((node) => {
    if (node.type !== "network") {
      return;
    }
    const originalProtocol = originalProtocols.get(node.request.requestId);
    if (originalProtocol === void 0) {
      return;
    }
    node.request.protocol = originalProtocol;
  });
  const savings = simulationBefore.timeInMs - simulationAfter.timeInMs;
  return NumberUtilities_exports.floor(savings, 1 / 10);
}
function computeMetricSavings(http1Requests, context) {
  if (!context.navigation || !context.lantern) {
    return;
  }
  const urlsToChange = new Set(http1Requests.map((r) => r.args.data.url));
  const fcpGraph = context.lantern.metrics.firstContentfulPaint.optimisticGraph;
  const lcpGraph = context.lantern.metrics.largestContentfulPaint.optimisticGraph;
  return {
    FCP: computeWasteWithGraph(urlsToChange, fcpGraph, context.lantern.simulator),
    LCP: computeWasteWithGraph(urlsToChange, lcpGraph, context.lantern.simulator)
  };
}
function finalize44(partialModel) {
  return {
    insightKey: InsightKeys.MODERN_HTTP,
    strings: UIStrings15,
    title: i18nString14(UIStrings15.title),
    description: i18nString14(UIStrings15.description),
    docs: "https://developer.chrome.com/docs/performance/insights/modern-http",
    category: InsightCategory.LCP,
    state: partialModel.http1Requests.length > 0 ? "fail" : "pass",
    ...partialModel,
    relatedEvents: partialModel.http1Requests
  };
}
function generateInsight14(data31, context) {
  const isWithinContext = /* @__PURE__ */ __name((event) => Timing_exports3.eventIsInBounds(event, context.bounds), "isWithinContext");
  const contextRequests = data31.NetworkRequests.byTime.filter(isWithinContext);
  const entityMappings3 = data31.NetworkRequests.entityMappings;
  const firstPartyUrl = context.navigation?.args.data?.documentLoaderURL ?? data31.Meta.mainFrameURL;
  const firstPartyEntity = helpers_exports.getEntityForUrl(firstPartyUrl, entityMappings3);
  const http1Requests = determineHttp1Requests(contextRequests, entityMappings3, firstPartyEntity ?? null);
  return finalize44({
    http1Requests,
    metricSavings: computeMetricSavings(http1Requests, context)
  });
}
function createOverlayForRequest3(request) {
  return {
    type: "ENTRY_OUTLINE",
    entry: request,
    outlineReason: "ERROR"
  };
}
function createOverlays14(model2) {
  return model2.http1Requests.map((req) => createOverlayForRequest3(req)) ?? [];
}
var UIStrings15, i18nString14;
var init_ModernHTTP = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/ModernHTTP.js"() {
    init_process_global();
    init_platform();
    init_handlers();
    init_helpers2();
    init_types4();
    UIStrings15 = {
      /**
       * @description Title of an insight that recommends using HTTP/2 over HTTP/1.1 because of the performance benefits. "HTTP" should not be translated.
       */
      title: "Modern HTTP",
      /**
       * @description Description of an insight that recommends recommends using HTTP/2 over HTTP/1.1 because of the performance benefits. "HTTP" should not be translated.
       */
      description: "HTTP/2 and HTTP/3 offer many benefits over HTTP/1.1, such as multiplexing. [Learn more about using modern HTTP](https://developer.chrome.com/docs/performance/insights/modern-http).",
      /**
       * @description Column header for a table where each cell represents a network request.
       */
      request: "Request",
      /**
       * @description Column header for a table where each cell represents the protocol of a network request.
       */
      protocol: "Protocol",
      /**
       * @description Text explaining that there were not requests that were slowed down by using HTTP/1.1. "HTTP/1.1" should not be translated.
       */
      noOldProtocolRequests: "No requests used HTTP/1.1, or its current use of HTTP/1.1 does not present a significant optimization opportunity. HTTP/1.1 requests are only flagged if six or more static assets originate from the same origin, and they are not served from a local development environment or a third-party source."
    };
    i18nString14 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(isModernHTTPInsight, "isModernHTTPInsight");
    __name(isMultiplexableStaticAsset, "isMultiplexableStaticAsset");
    __name(determineHttp1Requests, "determineHttp1Requests");
    __name(computeWasteWithGraph, "computeWasteWithGraph");
    __name(computeMetricSavings, "computeMetricSavings");
    __name(finalize44, "finalize");
    __name(generateInsight14, "generateInsight");
    __name(createOverlayForRequest3, "createOverlayForRequest");
    __name(createOverlays14, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/NetworkDependencyTree.js
var NetworkDependencyTree_exports = {};
__export(NetworkDependencyTree_exports, {
  ParsedURL: () => ParsedURL,
  TOO_MANY_PRECONNECTS_THRESHOLD: () => TOO_MANY_PRECONNECTS_THRESHOLD,
  UIStrings: () => UIStrings16,
  createOverlays: () => createOverlays15,
  generateInsight: () => generateInsight15,
  generatePreconnectCandidates: () => generatePreconnectCandidates,
  generatePreconnectedOrigins: () => generatePreconnectedOrigins,
  handleLinkResponseHeader: () => handleLinkResponseHeader,
  i18nString: () => i18nString15,
  isNetworkDependencyTreeInsight: () => isNetworkDependencyTreeInsight,
  normalizePath: () => normalizePath,
  schemeIs: () => schemeIs
});
function finalize45(partialModel) {
  return {
    insightKey: InsightKeys.NETWORK_DEPENDENCY_TREE,
    strings: UIStrings16,
    title: i18nString15(UIStrings16.title),
    description: i18nString15(UIStrings16.description),
    docs: "https://developer.chrome.com/docs/performance/insights/network-dependency-tree",
    category: InsightCategory.LCP,
    state: partialModel.fail ? "fail" : "pass",
    ...partialModel
  };
}
function isCritical(request, context) {
  if (request.args.data.requestId === context.navigationId) {
    return true;
  }
  if (request.args.data.isLinkPreload) {
    return false;
  }
  const isIframe = request.args.data.resourceType === "Document" && request.args.data.frame !== context.frameId;
  if (nonCriticalResourceTypes.has(request.args.data.resourceType) || isIframe || // Treat any missed images, primarily favicons, as non-critical resources
  request.args.data.mimeType.startsWith("image/")) {
    return false;
  }
  const initiatorUrl = request.args.data.initiator?.url || Trace_exports.getStackTraceTopCallFrameInEventPayload(request)?.url;
  if (!initiatorUrl) {
    return false;
  }
  const isBlocking = Network_exports.isSyntheticNetworkRequestEventRenderBlocking(request);
  const isHighPriority = Network_exports.isSyntheticNetworkRequestHighPriority(request);
  return isHighPriority || isBlocking;
}
function findMaxLeafNode(node) {
  if (node.children.length === 0) {
    return node;
  }
  let maxLeaf = node.children[0];
  for (const child of node.children) {
    const leaf = findMaxLeafNode(child);
    if (leaf.timeFromInitialRequest > maxLeaf.timeFromInitialRequest) {
      maxLeaf = leaf;
    }
  }
  return maxLeaf;
}
function sortRecursively(nodes) {
  for (const node of nodes) {
    if (node.children.length > 0) {
      node.children.sort((nodeA, nodeB) => {
        const leafA = findMaxLeafNode(nodeA);
        const leafB = findMaxLeafNode(nodeB);
        return leafB.timeFromInitialRequest - leafA.timeFromInitialRequest;
      });
      sortRecursively(node.children);
    }
  }
}
function generateNetworkDependencyTree(context) {
  const rootNodes = [];
  const relatedEvents = /* @__PURE__ */ new Map();
  let maxTime = Timing_exports.Micro(0);
  let fail = false;
  let longestChain = [];
  function addChain(path7) {
    if (path7.length === 0) {
      return;
    }
    if (path7.length >= 2) {
      fail = true;
    }
    const initialRequest = path7[0];
    const lastRequest = path7[path7.length - 1];
    const totalChainTime = Timing_exports.Micro(lastRequest.ts + lastRequest.dur - initialRequest.ts);
    if (totalChainTime > maxTime) {
      maxTime = totalChainTime;
      longestChain = path7;
    }
    let currentNodes = rootNodes;
    for (let depth = 0; depth < path7.length; ++depth) {
      const request = path7[depth];
      let found = currentNodes.find((node) => node.request === request);
      if (!found) {
        const timeFromInitialRequest = Timing_exports.Micro(request.ts + request.dur - initialRequest.ts);
        found = {
          request,
          timeFromInitialRequest,
          children: [],
          relatedRequests: /* @__PURE__ */ new Set()
        };
        currentNodes.push(found);
      }
      path7.forEach((request2) => found?.relatedRequests.add(request2));
      relatedEvents.set(request, depth < 2 ? [] : [i18nString15(UIStrings16.warningDescription)]);
      currentNodes = found.children;
    }
  }
  __name(addChain, "addChain");
  const seenNodes = /* @__PURE__ */ new Set();
  function getNextNodes(node) {
    return node.getDependents().filter((n) => n.getDependencies().every((d) => seenNodes.has(d)));
  }
  __name(getNextNodes, "getNextNodes");
  context.lantern?.graph.traverse((node, traversalPath) => {
    seenNodes.add(node);
    if (node.type !== "network") {
      return;
    }
    const networkNode = node;
    if (!isCritical(networkNode.rawRequest, context)) {
      return;
    }
    const networkPath = traversalPath.filter((node2) => node2.type === "network").reverse().map((node2) => node2.rawRequest);
    if (networkPath.some((request) => !isCritical(request, context))) {
      return;
    }
    if (node.isNonNetworkProtocol) {
      return;
    }
    addChain(networkPath);
  }, getNextNodes);
  if (longestChain.length > 0) {
    let currentNodes = rootNodes;
    for (const request of longestChain) {
      const found = currentNodes.find((node) => node.request === request);
      if (found) {
        found.isLongest = true;
        currentNodes = found.children;
      } else {
        console.error("Some request in the longest chain is not found");
      }
    }
  }
  sortRecursively(rootNodes);
  return {
    rootNodes,
    maxTime,
    fail,
    relatedEvents
  };
}
function getSecurityOrigin(url) {
  const parsedURL = new ParsedURL(url);
  return parsedURL.securityOrigin();
}
function handleLinkResponseHeaderPart(trimmedPart) {
  if (!trimmedPart) {
    return null;
  }
  const urlStart = trimmedPart.indexOf("<");
  const urlEnd = trimmedPart.indexOf(">");
  if (urlStart !== 0 || urlEnd === -1 || urlEnd <= urlStart) {
    return null;
  }
  const url = trimmedPart.substring(urlStart + 1, urlEnd).trim();
  if (!url) {
    return null;
  }
  const paramsString = trimmedPart.substring(urlEnd + 1).trim();
  if (paramsString) {
    const params = paramsString.split(";");
    for (const param of params) {
      const trimmedParam = param.trim();
      if (!trimmedParam) {
        continue;
      }
      const eqIndex = trimmedParam.indexOf("=");
      if (eqIndex === -1) {
        continue;
      }
      const paramName = trimmedParam.substring(0, eqIndex).trim().toLowerCase();
      let paramValue = trimmedParam.substring(eqIndex + 1).trim();
      if (paramValue.startsWith('"') && paramValue.endsWith('"')) {
        paramValue = paramValue.substring(1, paramValue.length - 1);
      }
      if (paramName === "rel" && paramValue === "preconnect") {
        return { url, headerText: trimmedPart };
      }
    }
  }
  return null;
}
function handleLinkResponseHeader(linkHeaderValue) {
  if (!linkHeaderValue) {
    return [];
  }
  const preconnectedOrigins = [];
  for (let i = 0; i < linkHeaderValue.length; ) {
    const firstUrlEnd = linkHeaderValue.indexOf(">", i);
    if (firstUrlEnd === -1) {
      break;
    }
    const commaIndex = linkHeaderValue.indexOf(",", firstUrlEnd);
    const partEnd = commaIndex !== -1 ? commaIndex : linkHeaderValue.length;
    const part = linkHeaderValue.substring(i, partEnd);
    if (partEnd + 1 <= i) {
      console.warn("unexpected infinite loop, bailing");
      break;
    }
    i = partEnd + 1;
    const preconnectedOrigin = handleLinkResponseHeaderPart(part.trim());
    if (preconnectedOrigin) {
      preconnectedOrigins.push(preconnectedOrigin);
    }
  }
  return preconnectedOrigins;
}
function generatePreconnectedOrigins(data31, context, contextRequests, preconnectCandidates) {
  const preconnectedOrigins = [];
  for (const event of data31.NetworkRequests.linkPreconnectEvents) {
    preconnectedOrigins.push({
      node_id: event.args.data.node_id,
      frame: event.args.data.frame,
      url: event.args.data.url,
      // For each origin the page wanted to preconnect to:
      // - if we found no network requests to that origin at all then we issue a unused warning
      unused: !contextRequests.some((request) => getSecurityOrigin(event.args.data.url) === getSecurityOrigin(request.args.data.url)),
      // - else (we found network requests to the same origin) and if some of those network requests is too slow (if
      //   they are preconnect candidates), then we issue a unused warning with crossorigin hint
      crossorigin: preconnectCandidates.some((candidate) => candidate.origin === getSecurityOrigin(event.args.data.url)),
      source: "DOM"
    });
  }
  const documentRequest = data31.NetworkRequests.byId.get(context.navigationId);
  documentRequest?.args.data.responseHeaders?.forEach((header) => {
    if (header.name.toLowerCase() === "link") {
      const preconnectedOriginsFromResponseHeader = handleLinkResponseHeader(header.value);
      preconnectedOriginsFromResponseHeader?.forEach((origin) => preconnectedOrigins.push({
        url: origin.url,
        headerText: origin.headerText,
        request: documentRequest,
        // For each origin the page wanted to preconnect to:
        // - if we found no network requests to that origin at all then we issue a unused warning
        unused: !contextRequests.some((request) => getSecurityOrigin(origin.url) === getSecurityOrigin(request.args.data.url)),
        // - else (we found network requests to the same origin) and if some of those network requests is too slow (if
        //   they are preconnect candidates), then we issue a unused warning with crossorigin hint
        crossorigin: preconnectCandidates.some((candidate) => candidate.origin === getSecurityOrigin(origin.url)),
        source: "ResponseHeader"
      }));
    }
  });
  return preconnectedOrigins;
}
function hasValidTiming(request) {
  return !!request.args.data.timing && request.args.data.timing.connectEnd >= 0 && request.args.data.timing.connectStart >= 0;
}
function hasAlreadyConnectedToOrigin(request) {
  const { timing } = request.args.data;
  if (!timing) {
    return false;
  }
  if (timing.dnsStart === -1 && timing.dnsEnd === -1 && timing.connectStart === -1 && timing.connectEnd === -1) {
    return true;
  }
  if (timing.dnsEnd - timing.dnsStart === 0 && timing.connectEnd - timing.connectStart === 0) {
    return true;
  }
  return false;
}
function socketStartTimeIsBelowThreshold(request, mainResource) {
  const timeSinceMainEnd = Math.max(0, request.args.data.syntheticData.sendStartTime - mainResource.args.data.syntheticData.finishTime);
  return Timing_exports3.microToMilli(timeSinceMainEnd) < PRECONNECT_SOCKET_MAX_IDLE_IN_MS;
}
function candidateRequestsByOrigin(data31, mainResource, contextRequests, lcpGraphURLs) {
  const origins = /* @__PURE__ */ new Map();
  contextRequests.forEach((request) => {
    if (!hasValidTiming(request)) {
      return;
    }
    const initiator = Initiators_exports.getNetworkInitiator(data31, request);
    if (initiator === mainResource) {
      return;
    }
    const url = new URL(request.args.data.url);
    if (url.origin === "null") {
      return;
    }
    const mainOrigin = new URL(mainResource.args.data.url).origin;
    if (url.origin === mainOrigin) {
      return;
    }
    if (!lcpGraphURLs.has(request.args.data.url)) {
      return;
    }
    if (hasAlreadyConnectedToOrigin(request)) {
      return;
    }
    if (!socketStartTimeIsBelowThreshold(request, mainResource)) {
      return;
    }
    const originRequests = MapUtilities_exports.getWithDefault(origins, url.origin, () => []);
    originRequests.push(request);
  });
  return origins;
}
function generatePreconnectCandidates(data31, context, contextRequests) {
  if (!context.lantern) {
    return [];
  }
  const documentRequest = data31.NetworkRequests.byId.get(context.navigationId);
  if (!documentRequest) {
    return [];
  }
  const { rtt, additionalRttByOrigin } = context.lantern.simulator.getOptions();
  const lcpGraph = context.lantern.metrics.largestContentfulPaint.pessimisticGraph;
  const fcpGraph = context.lantern.metrics.firstContentfulPaint.pessimisticGraph;
  const lcpGraphURLs = /* @__PURE__ */ new Set();
  lcpGraph.traverse((node) => {
    if (node.type === "network") {
      lcpGraphURLs.add(node.request.url);
    }
  });
  const fcpGraphURLs = /* @__PURE__ */ new Set();
  fcpGraph.traverse((node) => {
    if (node.type === "network") {
      fcpGraphURLs.add(node.request.url);
    }
  });
  const groupedOrigins = candidateRequestsByOrigin(data31, documentRequest, contextRequests, lcpGraphURLs);
  let maxWastedLcp = Timing_exports.Milli(0);
  let maxWastedFcp = Timing_exports.Milli(0);
  let preconnectCandidates = [];
  groupedOrigins.forEach((requests) => {
    const firstRequestOfOrigin = requests[0];
    if (!firstRequestOfOrigin.args.data.timing) {
      return;
    }
    const firstRequestOfOriginParsedURL = new ParsedURL(firstRequestOfOrigin.args.data.url);
    const origin = firstRequestOfOriginParsedURL.securityOrigin();
    const additionalRtt = additionalRttByOrigin.get(origin) ?? 0;
    let connectionTime = Timing_exports.Milli(rtt + additionalRtt);
    if (firstRequestOfOriginParsedURL.scheme === "https") {
      connectionTime = Timing_exports.Milli(connectionTime * 2);
    }
    const timeBetweenMainResourceAndDnsStart = Timing_exports.Micro(firstRequestOfOrigin.args.data.syntheticData.sendStartTime - documentRequest.args.data.syntheticData.finishTime + Timing_exports3.milliToMicro(firstRequestOfOrigin.args.data.timing.dnsStart));
    const wastedMs = Math.min(connectionTime, Timing_exports3.microToMilli(timeBetweenMainResourceAndDnsStart));
    if (wastedMs < IGNORE_THRESHOLD_IN_MILLISECONDS) {
      return;
    }
    maxWastedLcp = Math.max(wastedMs, maxWastedLcp);
    if (fcpGraphURLs.has(firstRequestOfOrigin.args.data.url)) {
      maxWastedFcp = Math.max(wastedMs, maxWastedFcp);
    }
    preconnectCandidates.push({
      origin,
      wastedMs
    });
  });
  preconnectCandidates = preconnectCandidates.sort((a, b) => b.wastedMs - a.wastedMs);
  return preconnectCandidates.slice(0, TOO_MANY_PRECONNECTS_THRESHOLD);
}
function isNetworkDependencyTreeInsight(model2) {
  return model2.insightKey === InsightKeys.NETWORK_DEPENDENCY_TREE;
}
function generateInsight15(data31, context) {
  if (!context.navigation) {
    return finalize45({
      rootNodes: [],
      maxTime: 0,
      fail: false,
      preconnectedOrigins: [],
      preconnectCandidates: []
    });
  }
  const { rootNodes, maxTime, fail, relatedEvents } = generateNetworkDependencyTree(context);
  const isWithinContext = /* @__PURE__ */ __name((event) => Timing_exports3.eventIsInBounds(event, context.bounds), "isWithinContext");
  const contextRequests = data31.NetworkRequests.byTime.filter(isWithinContext);
  const preconnectCandidates = generatePreconnectCandidates(data31, context, contextRequests);
  const preconnectedOrigins = generatePreconnectedOrigins(data31, context, contextRequests, preconnectCandidates);
  return finalize45({
    rootNodes,
    maxTime,
    fail,
    relatedEvents,
    preconnectedOrigins,
    preconnectCandidates
  });
}
function createOverlays15(model2) {
  function walk(nodes, overlays2) {
    nodes.forEach((node) => {
      overlays2.push({
        type: "ENTRY_OUTLINE",
        entry: node.request,
        outlineReason: "ERROR"
      });
      walk(node.children, overlays2);
    });
  }
  __name(walk, "walk");
  const overlays = [];
  walk(model2.rootNodes, overlays);
  return overlays;
}
function normalizePath(path7) {
  if (path7.indexOf("..") === -1 && path7.indexOf(".") === -1) {
    return path7;
  }
  const segments = (path7[0] === "/" ? path7.substring(1) : path7).split("/");
  const normalizedSegments = [];
  for (const segment of segments) {
    if (segment === ".") {
      continue;
    } else if (segment === "..") {
      normalizedSegments.pop();
    } else {
      normalizedSegments.push(segment);
    }
  }
  let normalizedPath = normalizedSegments.join("/");
  if (path7[0] === "/" && normalizedPath) {
    normalizedPath = "/" + normalizedPath;
  }
  if (normalizedPath[normalizedPath.length - 1] !== "/" && (path7[path7.length - 1] === "/" || segments[segments.length - 1] === "." || segments[segments.length - 1] === "..")) {
    normalizedPath = normalizedPath + "/";
  }
  return normalizedPath;
}
function schemeIs(url, scheme) {
  try {
    return new URL(url).protocol === scheme;
  } catch {
    return false;
  }
}
var UIStrings16, i18nString15, nonCriticalResourceTypes, PRECONNECT_SOCKET_MAX_IDLE_IN_MS, IGNORE_THRESHOLD_IN_MILLISECONDS, TOO_MANY_PRECONNECTS_THRESHOLD, ParsedURL;
var init_NetworkDependencyTree = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/NetworkDependencyTree.js"() {
    init_process_global();
    init_platform();
    init_extras();
    init_helpers2();
    init_types2();
    init_types4();
    UIStrings16 = {
      /**
       * @description Title of an insight that recommends avoiding chaining critical requests.
       */
      title: "Network dependency tree",
      /**
       * @description Description of an insight that recommends avoiding chaining critical requests.
       */
      description: "[Avoid chaining critical requests](https://developer.chrome.com/docs/performance/insights/network-dependency-tree) by reducing the length of chains, reducing the download size of resources, or deferring the download of unnecessary resources to improve page load.",
      /**
       * @description Description of the warning that recommends avoiding chaining critical requests.
       */
      warningDescription: "Avoid chaining critical requests by reducing the length of chains, reducing the download size of resources, or deferring the download of unnecessary resources to improve page load.",
      /**
       * @description Text status indicating that there isn't long chaining critical network requests.
       */
      noNetworkDependencyTree: "No rendering tasks impacted by network dependencies",
      /**
       * @description Text for the maximum critical path latency. This refers to the longest chain of network requests that
       * the browser must download before it can render the page.
       */
      maxCriticalPathLatency: "Max critical path latency:",
      /** Label for a column in a data table; entries will be the network request */
      columnRequest: "Request",
      /** Label for a column in a data table; entries will be the time from main document till current network request. */
      columnTime: "Time",
      /**
       * @description Title of the table of the detected preconnect origins.
       */
      preconnectOriginsTableTitle: "Preconnected origins",
      /**
       * @description Description of the table of the detected preconnect origins.
       */
      preconnectOriginsTableDescription: "[preconnect](https://developer.chrome.com/docs/lighthouse/performance/uses-rel-preconnect/) hints help the browser establish a connection earlier in the page load, saving time when the first request for that origin is made. The following are the origins that the page preconnected to.",
      /**
       * @description Text status indicating that there isn't any preconnected origins.
       */
      noPreconnectOrigins: "no origins were preconnected",
      /**
       * @description A warning message that is shown when found more than 4 preconnected links. "preconnect" should not be translated.
       */
      tooManyPreconnectLinksWarning: "More than 4 `preconnect` connections were found. These should be used sparingly and only to the most important origins.",
      /**
       * @description A warning message that is shown when the user added preconnect for some unnecessary origins. "preconnect" should not be translated.
       */
      unusedWarning: "Unused preconnect. Only use `preconnect` for origins that the page is likely to request.",
      /**
       * @description A warning message that is shown when the user forget to set the `crossorigin` HTML attribute, or setting it to an incorrect value, on the link is a common mistake when adding preconnect links. "preconnect" should not be translated.
       * */
      crossoriginWarning: "Unused preconnect. Check that the `crossorigin` attribute is used properly.",
      /**
       * @description Label for a column in a data table; entries will be the source of the origin.
       */
      columnSource: "Source",
      /**
       * @description Text status indicating that there isn't preconnect candidates.
       */
      noPreconnectCandidates: "No additional origins are good candidates for preconnecting",
      /**
       * @description Title of the table that shows the origins that the page should have preconnected to.
       */
      estSavingTableTitle: "Preconnect candidates",
      /**
       * @description Description of the table that recommends preconnecting to the origins to save time. "preconnect" should not be translated.
       */
      estSavingTableDescription: "Add [preconnect](https://developer.chrome.com/docs/lighthouse/performance/uses-rel-preconnect/) hints to your most important origins, but try to use no more than 4.",
      /**
       * @description Label for a column in a data table; entries will be the origin of a web resource
       */
      columnOrigin: "Origin",
      /**
       * @description Label for a column in a data table; entries will be the number of milliseconds the user could reduce page load by if they implemented the suggestions.
       */
      columnWastedMs: "Est LCP savings"
    };
    i18nString15 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    nonCriticalResourceTypes = /* @__PURE__ */ new Set([
      "Image",
      "XHR",
      "Fetch",
      "EventSource"
    ]);
    PRECONNECT_SOCKET_MAX_IDLE_IN_MS = Timing_exports.Milli(15e3);
    IGNORE_THRESHOLD_IN_MILLISECONDS = Timing_exports.Milli(50);
    TOO_MANY_PRECONNECTS_THRESHOLD = 4;
    __name(finalize45, "finalize");
    __name(isCritical, "isCritical");
    __name(findMaxLeafNode, "findMaxLeafNode");
    __name(sortRecursively, "sortRecursively");
    __name(generateNetworkDependencyTree, "generateNetworkDependencyTree");
    __name(getSecurityOrigin, "getSecurityOrigin");
    __name(handleLinkResponseHeaderPart, "handleLinkResponseHeaderPart");
    __name(handleLinkResponseHeader, "handleLinkResponseHeader");
    __name(generatePreconnectedOrigins, "generatePreconnectedOrigins");
    __name(hasValidTiming, "hasValidTiming");
    __name(hasAlreadyConnectedToOrigin, "hasAlreadyConnectedToOrigin");
    __name(socketStartTimeIsBelowThreshold, "socketStartTimeIsBelowThreshold");
    __name(candidateRequestsByOrigin, "candidateRequestsByOrigin");
    __name(generatePreconnectCandidates, "generatePreconnectCandidates");
    __name(isNetworkDependencyTreeInsight, "isNetworkDependencyTreeInsight");
    __name(generateInsight15, "generateInsight");
    __name(createOverlays15, "createOverlays");
    __name(normalizePath, "normalizePath");
    __name(schemeIs, "schemeIs");
    ParsedURL = class _ParsedURL {
      static {
        __name(this, "ParsedURL");
      }
      isValid;
      url;
      scheme;
      user;
      host;
      port;
      path;
      queryParams;
      fragment;
      folderPathComponents;
      lastPathComponent;
      blobInnerScheme;
      constructor(url) {
        this.isValid = false;
        this.url = url;
        this.scheme = "";
        this.user = "";
        this.host = "";
        this.port = "";
        this.path = "";
        this.queryParams = "";
        this.fragment = "";
        this.folderPathComponents = "";
        this.lastPathComponent = "";
        const isBlobUrl = this.url.startsWith("blob:");
        const urlToMatch = isBlobUrl ? url.substring(5) : url;
        const match = urlToMatch.match(_ParsedURL.urlRegex());
        if (match) {
          this.isValid = true;
          if (isBlobUrl) {
            this.blobInnerScheme = match[2].toLowerCase();
            this.scheme = "blob";
          } else {
            this.scheme = match[2].toLowerCase();
          }
          this.user = match[3] ?? "";
          this.host = match[4] ?? "";
          this.port = match[5] ?? "";
          this.path = match[6] ?? "/";
          this.queryParams = match[7] ?? "";
          this.fragment = match[8] ?? "";
        } else {
          if (this.url.startsWith("data:")) {
            this.scheme = "data";
            return;
          }
          if (this.url.startsWith("blob:")) {
            this.scheme = "blob";
            return;
          }
          if (this.url === "about:blank") {
            this.scheme = "about";
            return;
          }
          this.path = this.url;
        }
        const lastSlashExceptTrailingIndex = this.path.lastIndexOf("/", this.path.length - 2);
        if (lastSlashExceptTrailingIndex !== -1) {
          this.lastPathComponent = this.path.substring(lastSlashExceptTrailingIndex + 1);
        } else {
          this.lastPathComponent = this.path;
        }
        const lastSlashIndex = this.path.lastIndexOf("/");
        if (lastSlashIndex !== -1) {
          this.folderPathComponents = this.path.substring(0, lastSlashIndex);
        }
      }
      static fromString(string) {
        const parsedURL = new _ParsedURL(string.toString());
        if (parsedURL.isValid) {
          return parsedURL;
        }
        return null;
      }
      static preEncodeSpecialCharactersInPath(path7) {
        for (const specialChar of ["%", ";", "#", "?", " "]) {
          path7 = path7.replaceAll(specialChar, encodeURIComponent(specialChar));
        }
        return path7;
      }
      static rawPathToEncodedPathString(path7) {
        const partiallyEncoded = _ParsedURL.preEncodeSpecialCharactersInPath(path7);
        if (path7.startsWith("/")) {
          return new URL(partiallyEncoded, "file:///").pathname;
        }
        return new URL("/" + partiallyEncoded, "file:///").pathname.substr(1);
      }
      /**
       * @param name Must not be encoded
       */
      static encodedFromParentPathAndName(parentPath, name) {
        return _ParsedURL.concatenate(parentPath, "/", _ParsedURL.preEncodeSpecialCharactersInPath(name));
      }
      /**
       * @param name Must not be encoded
       */
      static urlFromParentUrlAndName(parentUrl, name) {
        return _ParsedURL.concatenate(parentUrl, "/", _ParsedURL.preEncodeSpecialCharactersInPath(name));
      }
      static encodedPathToRawPathString(encPath) {
        return decodeURIComponent(encPath);
      }
      static rawPathToUrlString(fileSystemPath) {
        let preEncodedPath = _ParsedURL.preEncodeSpecialCharactersInPath(fileSystemPath.replace(/\\/g, "/"));
        preEncodedPath = preEncodedPath.replace(/\\/g, "/");
        if (!preEncodedPath.startsWith("file://")) {
          if (preEncodedPath.startsWith("/")) {
            preEncodedPath = "file://" + preEncodedPath;
          } else {
            preEncodedPath = "file:///" + preEncodedPath;
          }
        }
        return new URL(preEncodedPath).toString();
      }
      static relativePathToUrlString(relativePath, baseURL) {
        const preEncodedPath = _ParsedURL.preEncodeSpecialCharactersInPath(relativePath.replace(/\\/g, "/"));
        return new URL(preEncodedPath, baseURL).toString();
      }
      static urlToRawPathString(fileURL, isWindows2) {
        console.assert(fileURL.startsWith("file://"), "This must be a file URL.");
        const decodedFileURL = decodeURIComponent(fileURL);
        if (isWindows2) {
          return decodedFileURL.substr("file:///".length).replace(/\//g, "\\");
        }
        return decodedFileURL.substr("file://".length);
      }
      static sliceUrlToEncodedPathString(url, start) {
        return url.substring(start);
      }
      static substr(devToolsPath, from, length) {
        return devToolsPath.substr(from, length);
      }
      static substring(devToolsPath, start, end) {
        return devToolsPath.substring(start, end);
      }
      static prepend(prefix, devToolsPath) {
        return prefix + devToolsPath;
      }
      static concatenate(devToolsPath, ...appendage) {
        return devToolsPath.concat(...appendage);
      }
      static trim(devToolsPath) {
        return devToolsPath.trim();
      }
      static slice(devToolsPath, start, end) {
        return devToolsPath.slice(start, end);
      }
      static join(devToolsPaths, separator) {
        return devToolsPaths.join(separator);
      }
      static split(devToolsPath, separator, limit) {
        return devToolsPath.split(separator, limit);
      }
      static toLowerCase(devToolsPath) {
        return devToolsPath.toLowerCase();
      }
      static isValidUrlString(str) {
        return new _ParsedURL(str).isValid;
      }
      static urlWithoutHash(url) {
        const hashIndex = url.indexOf("#");
        if (hashIndex !== -1) {
          return url.substr(0, hashIndex);
        }
        return url;
      }
      static urlRegex() {
        if (_ParsedURL.urlRegexInstance) {
          return _ParsedURL.urlRegexInstance;
        }
        const schemeRegex = /([A-Za-z][A-Za-z0-9+.-]*):\/\//;
        const userRegex = /(?:([A-Za-z0-9\-._~%!$&'()*+,;=:]*)@)?/;
        const hostRegex = /((?:\[::\d?\])|(?:[^\s\/:]*))/;
        const portRegex = /(?::([\d]+))?/;
        const pathRegex = /(\/[^#?]*)?/;
        const queryRegex = /(?:\?([^#]*))?/;
        const fragmentRegex = /(?:#(.*))?/;
        _ParsedURL.urlRegexInstance = new RegExp("^(" + schemeRegex.source + userRegex.source + hostRegex.source + portRegex.source + ")" + pathRegex.source + queryRegex.source + fragmentRegex.source + "$");
        return _ParsedURL.urlRegexInstance;
      }
      static extractPath(url) {
        const parsedURL = this.fromString(url);
        return parsedURL ? parsedURL.path : "";
      }
      static extractOrigin(url) {
        const parsedURL = this.fromString(url);
        return parsedURL ? parsedURL.securityOrigin() : "";
      }
      static extractExtension(url) {
        url = _ParsedURL.urlWithoutHash(url);
        const indexOfQuestionMark = url.indexOf("?");
        if (indexOfQuestionMark !== -1) {
          url = url.substr(0, indexOfQuestionMark);
        }
        const lastIndexOfSlash = url.lastIndexOf("/");
        if (lastIndexOfSlash !== -1) {
          url = url.substr(lastIndexOfSlash + 1);
        }
        const lastIndexOfDot = url.lastIndexOf(".");
        if (lastIndexOfDot !== -1) {
          url = url.substr(lastIndexOfDot + 1);
          const lastIndexOfPercent = url.indexOf("%");
          if (lastIndexOfPercent !== -1) {
            return url.substr(0, lastIndexOfPercent);
          }
          return url;
        }
        return "";
      }
      static extractName(url) {
        let index = url.lastIndexOf("/");
        const pathAndQuery = index !== -1 ? url.substr(index + 1) : url;
        index = pathAndQuery.indexOf("?");
        return index < 0 ? pathAndQuery : pathAndQuery.substr(0, index);
      }
      static completeURL(baseURL, href) {
        if (href.startsWith("data:") || href.startsWith("blob:") || href.startsWith("javascript:") || href.startsWith("mailto:")) {
          return href;
        }
        const trimmedHref = href.trim();
        const parsedHref = this.fromString(trimmedHref);
        if (parsedHref?.scheme) {
          const securityOrigin2 = parsedHref.securityOrigin();
          const pathText2 = normalizePath(parsedHref.path);
          const queryText2 = parsedHref.queryParams && `?${parsedHref.queryParams}`;
          const fragmentText = parsedHref.fragment && `#${parsedHref.fragment}`;
          return securityOrigin2 + pathText2 + queryText2 + fragmentText;
        }
        const parsedURL = this.fromString(baseURL);
        if (!parsedURL) {
          return null;
        }
        if (parsedURL.isDataURL()) {
          return href;
        }
        if (href.length > 1 && href.charAt(0) === "/" && href.charAt(1) === "/") {
          return parsedURL.scheme + ":" + href;
        }
        const securityOrigin = parsedURL.securityOrigin();
        const pathText = parsedURL.path;
        const queryText = parsedURL.queryParams ? "?" + parsedURL.queryParams : "";
        if (!href.length) {
          return securityOrigin + pathText + queryText;
        }
        if (href.charAt(0) === "#") {
          return securityOrigin + pathText + queryText + href;
        }
        if (href.charAt(0) === "?") {
          return securityOrigin + pathText + href;
        }
        const hrefMatches = href.match(/^[^#?]*/);
        if (!hrefMatches || !href.length) {
          throw new Error("Invalid href");
        }
        let hrefPath = hrefMatches[0];
        const hrefSuffix = href.substring(hrefPath.length);
        if (hrefPath.charAt(0) !== "/") {
          hrefPath = parsedURL.folderPathComponents + "/" + hrefPath;
        }
        return securityOrigin + normalizePath(hrefPath) + hrefSuffix;
      }
      static splitLineAndColumn(string) {
        const beforePathMatch = string.match(_ParsedURL.urlRegex());
        let beforePath = "";
        let pathAndAfter = string;
        if (beforePathMatch) {
          beforePath = beforePathMatch[1];
          pathAndAfter = string.substring(beforePathMatch[1].length);
        }
        const lineColumnRegEx = /(?::(\d+))?(?::(\d+))?$/;
        const lineColumnMatch = lineColumnRegEx.exec(pathAndAfter);
        let lineNumber;
        let columnNumber;
        console.assert(Boolean(lineColumnMatch));
        if (!lineColumnMatch) {
          return { url: string, lineNumber: 0, columnNumber: 0 };
        }
        if (typeof lineColumnMatch[1] === "string") {
          lineNumber = parseInt(lineColumnMatch[1], 10);
          lineNumber = isNaN(lineNumber) ? void 0 : lineNumber - 1;
        }
        if (typeof lineColumnMatch[2] === "string") {
          columnNumber = parseInt(lineColumnMatch[2], 10);
          columnNumber = isNaN(columnNumber) ? void 0 : columnNumber - 1;
        }
        let url = beforePath + pathAndAfter.substring(0, pathAndAfter.length - lineColumnMatch[0].length);
        if (lineColumnMatch[1] === void 0 && lineColumnMatch[2] === void 0) {
          const wasmCodeOffsetRegex = /wasm-function\[\d+\]:0x([a-z0-9]+)$/g;
          const wasmCodeOffsetMatch = wasmCodeOffsetRegex.exec(pathAndAfter);
          if (wasmCodeOffsetMatch && typeof wasmCodeOffsetMatch[1] === "string") {
            url = _ParsedURL.removeWasmFunctionInfoFromURL(url);
            columnNumber = parseInt(wasmCodeOffsetMatch[1], 16);
            columnNumber = isNaN(columnNumber) ? void 0 : columnNumber;
          }
        }
        return { url, lineNumber, columnNumber };
      }
      static removeWasmFunctionInfoFromURL(url) {
        const wasmFunctionRegEx = /:wasm-function\[\d+\]/;
        const wasmFunctionIndex = url.search(wasmFunctionRegEx);
        if (wasmFunctionIndex === -1) {
          return url;
        }
        return _ParsedURL.substring(url, 0, wasmFunctionIndex);
      }
      static beginsWithWindowsDriveLetter(url) {
        return /^[A-Za-z]:/.test(url);
      }
      static beginsWithScheme(url) {
        return /^[A-Za-z][A-Za-z0-9+.-]*:/.test(url);
      }
      static isRelativeURL(url) {
        return !this.beginsWithScheme(url) || this.beginsWithWindowsDriveLetter(url);
      }
      isAboutBlank() {
        return this.url === "about:blank";
      }
      isDataURL() {
        return this.scheme === "data";
      }
      extractDataUrlMimeType() {
        const regexp = /^data:((?<type>\w+)\/(?<subtype>\w+))?(;base64)?,/;
        const match = this.url.match(regexp);
        return {
          type: match?.groups?.type,
          subtype: match?.groups?.subtype
        };
      }
      isBlobURL() {
        return this.url.startsWith("blob:");
      }
      lastPathComponentWithFragment() {
        return this.lastPathComponent + (this.fragment ? "#" + this.fragment : "");
      }
      domain() {
        if (this.isDataURL()) {
          return "data:";
        }
        return this.host + (this.port ? ":" + this.port : "");
      }
      securityOrigin() {
        if (this.isDataURL()) {
          return "data:";
        }
        const scheme = this.isBlobURL() ? this.blobInnerScheme : this.scheme;
        return scheme + "://" + this.domain();
      }
      urlWithoutScheme() {
        if (this.scheme && this.url.startsWith(this.scheme + "://")) {
          return this.url.substring(this.scheme.length + 3);
        }
        return this.url;
      }
      static urlRegexInstance = null;
    };
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/RenderBlocking.js
var RenderBlocking_exports = {};
__export(RenderBlocking_exports, {
  UIStrings: () => UIStrings17,
  createOverlayForRequest: () => createOverlayForRequest4,
  createOverlays: () => createOverlays16,
  generateInsight: () => generateInsight16,
  i18nString: () => i18nString16,
  isRenderBlockingInsight: () => isRenderBlockingInsight
});
function isRenderBlockingInsight(insight) {
  return insight.insightKey === "RenderBlocking";
}
function getNodesAndTimingByRequestId(nodeTimings) {
  const requestIdToNode = /* @__PURE__ */ new Map();
  for (const [node, nodeTiming] of nodeTimings) {
    if (node.type !== "network") {
      continue;
    }
    requestIdToNode.set(node.request.requestId, { node, nodeTiming });
  }
  return requestIdToNode;
}
function estimateSavingsWithGraphs2(deferredIds, lanternContext) {
  const simulator = lanternContext.simulator;
  const fcpGraph = lanternContext.metrics.firstContentfulPaint.optimisticGraph;
  const { nodeTimings } = lanternContext.simulator.simulate(fcpGraph);
  const adjustedNodeTimings = new Map(nodeTimings);
  const totalChildNetworkBytes = 0;
  const minimalFCPGraph = fcpGraph.cloneWithRelationships((node) => {
    const canDeferRequest = deferredIds.has(node.id);
    return !canDeferRequest;
  });
  if (minimalFCPGraph.type !== "network") {
    throw new Error("minimalFCPGraph not a NetworkNode");
  }
  const estimateBeforeInline = Math.max(...Array.from(Array.from(adjustedNodeTimings).map((timing) => timing[1].endTime)));
  const originalTransferSize = minimalFCPGraph.request.transferSize;
  const safeTransferSize = originalTransferSize || 0;
  minimalFCPGraph.request.transferSize = safeTransferSize + totalChildNetworkBytes;
  const estimateAfterInline = simulator.simulate(minimalFCPGraph).timeInMs;
  minimalFCPGraph.request.transferSize = originalTransferSize;
  return Math.round(Math.max(estimateBeforeInline - estimateAfterInline, 0));
}
function hasImageLCP(data31, context) {
  return data31.LargestImagePaint.lcpRequestByNavigationId.has(context.navigationId);
}
function computeSavings(data31, context, renderBlockingRequests) {
  if (!context.lantern) {
    return;
  }
  const nodesAndTimingsByRequestId = getNodesAndTimingByRequestId(context.lantern.metrics.firstContentfulPaint.optimisticEstimate.nodeTimings);
  const metricSavings = { FCP: 0, LCP: 0 };
  const requestIdToWastedMs = /* @__PURE__ */ new Map();
  const deferredNodeIds = /* @__PURE__ */ new Set();
  for (const request of renderBlockingRequests) {
    const nodeAndTiming = nodesAndTimingsByRequestId.get(request.args.data.requestId);
    if (!nodeAndTiming) {
      continue;
    }
    const { node, nodeTiming } = nodeAndTiming;
    node.traverse((node2) => deferredNodeIds.add(node2.id));
    const wastedMs = Math.round(nodeTiming.duration);
    if (wastedMs < MINIMUM_WASTED_MS) {
      continue;
    }
    requestIdToWastedMs.set(node.id, wastedMs);
  }
  if (requestIdToWastedMs.size) {
    metricSavings.FCP = estimateSavingsWithGraphs2(deferredNodeIds, context.lantern);
    if (!hasImageLCP(data31, context)) {
      metricSavings.LCP = metricSavings.FCP;
    }
  }
  return { metricSavings, requestIdToWastedMs };
}
function finalize46(partialModel) {
  return {
    insightKey: InsightKeys.RENDER_BLOCKING,
    strings: UIStrings17,
    title: i18nString16(UIStrings17.title),
    description: i18nString16(UIStrings17.description),
    docs: "https://developer.chrome.com/docs/performance/insights/render-blocking",
    category: InsightCategory.LCP,
    state: partialModel.renderBlockingRequests.length > 0 ? "fail" : "pass",
    ...partialModel
  };
}
function generateInsight16(data31, context) {
  if (!context.navigation) {
    return finalize46({
      renderBlockingRequests: []
    });
  }
  const firstPaintTs = data31.PageLoadMetrics.metricScoresByFrameId.get(context.frameId)?.get(context.navigation)?.get(ModelHandlers_exports.PageLoadMetrics.MetricName.FP)?.event?.ts;
  if (!firstPaintTs) {
    return finalize46({
      renderBlockingRequests: [],
      warnings: [InsightWarning.NO_FP]
    });
  }
  let renderBlockingRequests = [];
  for (const req of data31.NetworkRequests.byTime) {
    if (req.args.data.frame !== context.frameId) {
      continue;
    }
    if (!Network_exports.isSyntheticNetworkRequestEventRenderBlocking(req)) {
      continue;
    }
    if (req.args.data.syntheticData.finishTime > firstPaintTs) {
      continue;
    }
    if (req.args.data.renderBlocking === "in_body_parser_blocking") {
      const priority = req.args.data.priority;
      const isScript = req.args.data.resourceType === "Script";
      const isBlockingScript = isScript && priority === "High";
      if (priority !== "VeryHigh" && !isBlockingScript) {
        continue;
      }
    }
    const navigation2 = Trace_exports.getNavigationForTraceEvent(req, context.frameId, data31.Meta.navigationsByFrameId);
    if (navigation2 === context.navigation) {
      renderBlockingRequests.push(req);
    }
  }
  const savings = computeSavings(data31, context, renderBlockingRequests);
  renderBlockingRequests = renderBlockingRequests.sort((a, b) => {
    return b.dur - a.dur;
  });
  return finalize46({
    relatedEvents: renderBlockingRequests,
    renderBlockingRequests,
    ...savings
  });
}
function createOverlayForRequest4(request) {
  return {
    type: "ENTRY_OUTLINE",
    entry: request,
    outlineReason: "ERROR"
  };
}
function createOverlays16(model2) {
  return model2.renderBlockingRequests.map((request) => createOverlayForRequest4(request));
}
var UIStrings17, i18nString16, MINIMUM_WASTED_MS;
var init_RenderBlocking = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/RenderBlocking.js"() {
    init_process_global();
    init_handlers();
    init_helpers2();
    init_types4();
    UIStrings17 = {
      /**
       * @description Title of an insight that provides the user with the list of network requests that blocked and therefore slowed down the page rendering and becoming visible to the user.
       */
      title: "Render-blocking requests",
      /**
       * @description Text to describe that there are requests blocking rendering, which may affect LCP.
       */
      description: "Requests are blocking the page's initial render, which may delay LCP. [Deferring or inlining](https://developer.chrome.com/docs/performance/insights/render-blocking) can move these network requests out of the critical path.",
      /**
       * @description Label to describe a network request (that happens to be render-blocking).
       */
      renderBlockingRequest: "Request",
      /**
       * @description Label used for a time duration.
       */
      duration: "Duration",
      /**
       * @description Text status indicating that no requests blocked the initial render of a navigation
       */
      noRenderBlocking: "No render-blocking requests for this navigation"
    };
    i18nString16 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(isRenderBlockingInsight, "isRenderBlockingInsight");
    MINIMUM_WASTED_MS = 50;
    __name(getNodesAndTimingByRequestId, "getNodesAndTimingByRequestId");
    __name(estimateSavingsWithGraphs2, "estimateSavingsWithGraphs");
    __name(hasImageLCP, "hasImageLCP");
    __name(computeSavings, "computeSavings");
    __name(finalize46, "finalize");
    __name(generateInsight16, "generateInsight");
    __name(createOverlayForRequest4, "createOverlayForRequest");
    __name(createOverlays16, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/SlowCSSSelector.js
var SlowCSSSelector_exports = {};
__export(SlowCSSSelector_exports, {
  UIStrings: () => UIStrings18,
  createOverlays: () => createOverlays17,
  generateInsight: () => generateInsight17,
  i18nString: () => i18nString17,
  isSlowCSSSelectorInsight: () => isSlowCSSSelectorInsight
});
function aggregateSelectorStats(data31, context) {
  const selectorMap = /* @__PURE__ */ new Map();
  for (const [event, value] of data31.dataForRecalcStyleEvent) {
    if (event.args.beginData?.frame !== context.frameId) {
      continue;
    }
    if (!Timing_exports3.eventIsInBounds(event, context.bounds)) {
      continue;
    }
    for (const timing of value.timings) {
      const key = timing[SelectorTimingsKey.Selector] + "_" + timing[SelectorTimingsKey.StyleSheetId];
      const findTiming = selectorMap.get(key);
      if (findTiming !== void 0) {
        findTiming[SelectorTimingsKey.Elapsed] += timing[SelectorTimingsKey.Elapsed];
        findTiming[SelectorTimingsKey.FastRejectCount] += timing[SelectorTimingsKey.FastRejectCount];
        findTiming[SelectorTimingsKey.MatchAttempts] += timing[SelectorTimingsKey.MatchAttempts];
        findTiming[SelectorTimingsKey.MatchCount] += timing[SelectorTimingsKey.MatchCount];
      } else {
        selectorMap.set(key, { ...timing });
      }
    }
  }
  return [...selectorMap.values()];
}
function finalize47(partialModel) {
  return {
    insightKey: InsightKeys.SLOW_CSS_SELECTOR,
    strings: UIStrings18,
    title: i18nString17(UIStrings18.title),
    description: i18nString17(UIStrings18.description),
    docs: "https://developer.chrome.com/docs/performance/insights/slow-css-selector",
    category: InsightCategory.ALL,
    state: partialModel.topSelectorElapsedMs && partialModel.topSelectorMatchAttempts ? "informative" : "pass",
    ...partialModel
  };
}
function isSlowCSSSelectorInsight(model2) {
  return model2.insightKey === InsightKeys.SLOW_CSS_SELECTOR;
}
function generateInsight17(data31, context) {
  const selectorStatsData = data31.SelectorStats;
  if (!selectorStatsData) {
    throw new Error("no selector stats data");
  }
  const selectorTimings = aggregateSelectorStats(selectorStatsData, context);
  let totalElapsedUs = 0;
  let totalMatchAttempts = 0;
  let totalMatchCount = 0;
  selectorTimings.map((timing) => {
    totalElapsedUs += timing[SelectorTimingsKey.Elapsed];
    totalMatchAttempts += timing[SelectorTimingsKey.MatchAttempts];
    totalMatchCount += timing[SelectorTimingsKey.MatchCount];
  });
  let topSelectorElapsedMs = null;
  let topSelectorMatchAttempts = null;
  if (selectorTimings.length > 0) {
    topSelectorElapsedMs = selectorTimings.reduce((a, b) => {
      return a[SelectorTimingsKey.Elapsed] > b[SelectorTimingsKey.Elapsed] ? a : b;
    });
    if (topSelectorElapsedMs && topSelectorElapsedMs[SelectorTimingsKey.Elapsed] < slowCSSSelectorThreshold) {
      topSelectorElapsedMs = null;
    }
    topSelectorMatchAttempts = selectorTimings.reduce((a, b) => {
      return a[SelectorTimingsKey.MatchAttempts] > b[SelectorTimingsKey.MatchAttempts] ? a : b;
    });
  }
  return finalize47({
    // TODO: should we identify RecalcStyle events as linked to this insight?
    relatedEvents: [],
    totalElapsedMs: Timing_exports.Milli(totalElapsedUs / 1e3),
    totalMatchAttempts,
    totalMatchCount,
    topSelectorElapsedMs,
    topSelectorMatchAttempts
  });
}
function createOverlays17(_) {
  return [];
}
var UIStrings18, i18nString17, slowCSSSelectorThreshold;
var init_SlowCSSSelector = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/SlowCSSSelector.js"() {
    init_process_global();
    init_helpers2();
    init_TraceEvents();
    init_types2();
    init_types4();
    UIStrings18 = {
      /**
       * @description Title of an insight that provides details about slow CSS selectors.
       */
      title: "CSS Selector costs",
      /**
       * @description Text to describe how to improve the performance of CSS selectors.
       */
      description: "If Recalculate Style costs remain high, selector optimization can reduce them. [Optimize the selectors](https://developer.chrome.com/docs/performance/insights/slow-css-selector) with both high elapsed time and high slow-path %. Simpler selectors, fewer selectors, a smaller DOM, and a shallower DOM will all reduce matching costs.",
      /**
       * @description Column name for count of elements that the engine attempted to match against a style rule
       */
      matchAttempts: "Match attempts",
      /**
       * @description Column name for count of elements that matched a style rule
       */
      matchCount: "Match count",
      /**
       * @description Column name for elapsed time spent computing a style rule
       */
      elapsed: "Elapsed time",
      /**
       * @description Column name for the selectors that took the longest amount of time/effort.
       */
      topSelectors: "Top selectors",
      /**
       * @description Column name for a total sum.
       */
      total: "Total",
      /**
       * @description Text status indicating that no CSS selector data was found.
       */
      enableSelectorData: "No CSS selector data was found. CSS selector stats need to be enabled in the performance panel settings.",
      /**
       * @description top CSS selector when ranked by elapsed time in ms
       */
      topSelectorElapsedTime: "Top selector elapsed time",
      /**
       * @description top CSS selector when ranked by match attempt
       */
      topSelectorMatchAttempt: "Top selector match attempt"
    };
    i18nString17 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    slowCSSSelectorThreshold = 500;
    __name(aggregateSelectorStats, "aggregateSelectorStats");
    __name(finalize47, "finalize");
    __name(isSlowCSSSelectorInsight, "isSlowCSSSelectorInsight");
    __name(generateInsight17, "generateInsight");
    __name(createOverlays17, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/ThirdParties.js
var ThirdParties_exports2 = {};
__export(ThirdParties_exports2, {
  UIStrings: () => UIStrings19,
  createOverlays: () => createOverlays18,
  createOverlaysForSummary: () => createOverlaysForSummary,
  generateInsight: () => generateInsight18,
  i18nString: () => i18nString18,
  isThirdPartyInsight: () => isThirdPartyInsight
});
function getRelatedEvents(summaries, firstPartyEntity) {
  const relatedEvents = [];
  for (const summary of summaries) {
    if (summary.entity !== firstPartyEntity) {
      relatedEvents.push(...summary.relatedEvents);
    }
  }
  return relatedEvents;
}
function finalize48(partialModel) {
  return {
    insightKey: InsightKeys.THIRD_PARTIES,
    strings: UIStrings19,
    title: i18nString18(UIStrings19.title),
    description: i18nString18(UIStrings19.description),
    docs: "https://developer.chrome.com/docs/performance/insights/third-parties",
    category: InsightCategory.ALL,
    state: partialModel.entitySummaries.find((summary) => summary.entity !== partialModel.firstPartyEntity) ? "informative" : "pass",
    ...partialModel
  };
}
function isThirdPartyInsight(model2) {
  return model2.insightKey === InsightKeys.THIRD_PARTIES;
}
function generateInsight18(data31, context) {
  const entitySummaries = ThirdParties_exports.summarizeByThirdParty(data31, context.bounds);
  const firstPartyUrl = context.navigation?.args.data?.documentLoaderURL ?? data31.Meta.mainFrameURL;
  const firstPartyEntity = import_third_party_web.default.getEntity(firstPartyUrl) || helpers_exports.makeUpEntity(data31.Renderer.entityMappings.createdEntityCache, firstPartyUrl);
  return finalize48({
    relatedEvents: getRelatedEvents(entitySummaries, firstPartyEntity),
    firstPartyEntity,
    entitySummaries
  });
}
function createOverlaysForSummary(summary) {
  const overlays = [];
  for (const event of summary.relatedEvents) {
    if (event.dur === void 0 || event.dur < 1e3) {
      continue;
    }
    const overlay = {
      type: "ENTRY_OUTLINE",
      entry: event,
      outlineReason: "INFO"
    };
    overlays.push(overlay);
  }
  return overlays;
}
function createOverlays18(model2) {
  const overlays = [];
  const summaries = model2.entitySummaries ?? [];
  for (const summary of summaries) {
    if (summary.entity === model2.firstPartyEntity) {
      continue;
    }
    const summaryOverlays = createOverlaysForSummary(summary);
    overlays.push(...summaryOverlays);
  }
  return overlays;
}
var UIStrings19, i18nString18;
var init_ThirdParties2 = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/ThirdParties.js"() {
    init_process_global();
    init_third_party_web();
    init_extras();
    init_handlers();
    init_types4();
    UIStrings19 = {
      /** Title of an insight that provides details about the code on a web page that the user doesn't control (referred to as "third-party code"). */
      title: "3rd parties",
      /**
       * @description Description of a DevTools insight that identifies the code on the page that the user doesn't control.
       * This is displayed after a user expands the section to see more. No character length limits.
       */
      description: "3rd party code can significantly impact load performance. [Reduce and defer loading of 3rd party code](https://developer.chrome.com/docs/performance/insights/third-parties) to prioritize your page's content.",
      /** Label for a table column that displays the name of a third-party provider. */
      columnThirdParty: "3rd party",
      /** Label for a column in a data table; entries will be the download size of a web resource in kilobytes. */
      columnTransferSize: "Transfer size",
      /** Label for a table column that displays how much time each row spent running on the main thread, entries will be the number of milliseconds spent. */
      columnMainThreadTime: "Main thread time",
      /**
       * @description Text block indicating that no third party content was detected on the page
       */
      noThirdParties: "No third parties found"
    };
    i18nString18 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(getRelatedEvents, "getRelatedEvents");
    __name(finalize48, "finalize");
    __name(isThirdPartyInsight, "isThirdPartyInsight");
    __name(generateInsight18, "generateInsight");
    __name(createOverlaysForSummary, "createOverlaysForSummary");
    __name(createOverlays18, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js
var Viewport_exports = {};
__export(Viewport_exports, {
  UIStrings: () => UIStrings20,
  createOverlays: () => createOverlays19,
  generateInsight: () => generateInsight19,
  i18nString: () => i18nString19,
  isViewportInsight: () => isViewportInsight
});
function finalize49(partialModel) {
  return {
    insightKey: InsightKeys.VIEWPORT,
    strings: UIStrings20,
    title: i18nString19(UIStrings20.title),
    description: i18nString19(UIStrings20.description),
    docs: "https://developer.chrome.com/docs/performance/insights/viewport",
    category: InsightCategory.INP,
    state: partialModel.mobileOptimized === false ? "fail" : "pass",
    ...partialModel
  };
}
function isViewportInsight(model2) {
  return model2.insightKey === InsightKeys.VIEWPORT;
}
function generateInsight19(data31, context) {
  const viewportEvent = data31.UserInteractions.parseMetaViewportEvents.find((event) => {
    if (event.args.data.frame !== context.frameId) {
      return false;
    }
    return Timing_exports3.eventIsInBounds(event, context.bounds);
  });
  const compositorEvents = data31.UserInteractions.beginCommitCompositorFrameEvents.filter((event) => {
    if (event.args.frame !== context.frameId) {
      return false;
    }
    if (viewportEvent && event.ts < viewportEvent.ts) {
      return false;
    }
    return Timing_exports3.eventIsInBounds(event, context.bounds);
  });
  if (!compositorEvents.length) {
    return finalize49({
      mobileOptimized: null,
      warnings: [InsightWarning.NO_LAYOUT]
    });
  }
  for (const event of compositorEvents) {
    if (!event.args.is_mobile_optimized) {
      const longPointerInteractions = [...data31.UserInteractions.interactionsOverThreshold.values()].filter((interaction) => ModelHandlers_exports.UserInteractions.categoryOfInteraction(interaction) === "POINTER" && interaction.inputDelay >= 5e4);
      const inputDelay = Math.max(0, ...longPointerInteractions.map((interaction) => interaction.inputDelay)) / 1e3;
      const inpMetricSavings = NumberUtilities_exports.clamp(inputDelay, 0, 300);
      return finalize49({
        mobileOptimized: false,
        viewportEvent,
        longPointerInteractions,
        metricSavings: { INP: inpMetricSavings }
      });
    }
  }
  return finalize49({
    mobileOptimized: true,
    viewportEvent
  });
}
function createOverlays19(model2) {
  if (!model2.longPointerInteractions) {
    return [];
  }
  return model2.longPointerInteractions.map((interaction) => {
    const delay = Math.min(interaction.inputDelay, 300 * 1e3);
    const bounds = Timing_exports3.traceWindowFromMicroSeconds(Timing_exports.Micro(interaction.ts), Timing_exports.Micro(interaction.ts + delay));
    return {
      type: "TIMESPAN_BREAKDOWN",
      entry: interaction,
      sections: [{ bounds, label: i18nString19(UIStrings20.mobileTapDelayLabel), showDuration: true }],
      renderLocation: "ABOVE_EVENT"
    };
  });
}
var UIStrings20, i18nString19;
var init_Viewport = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js"() {
    init_process_global();
    init_platform();
    init_handlers();
    init_helpers2();
    init_types2();
    init_types4();
    UIStrings20 = {
      /** Title of an insight that provides details about if the page's viewport is optimized for mobile viewing. */
      title: "Optimize viewport for mobile",
      /**
       * @description Text to tell the user how a viewport meta element can improve performance. \xa0 is a non-breaking space
       */
      description: "Tap interactions may be [delayed by up to 300 ms](https://developer.chrome.com/docs/performance/insights/viewport) if the viewport is not optimized for mobile.",
      /**
       * @description Text for a label describing the portion of an interaction event that was delayed due to a bad mobile viewport.
       */
      mobileTapDelayLabel: "Mobile tap delay"
    };
    i18nString19 = /* @__PURE__ */ __name((i18nId, values) => ({ i18nId, values }), "i18nString");
    __name(finalize49, "finalize");
    __name(isViewportInsight, "isViewportInsight");
    __name(generateInsight19, "generateInsight");
    __name(createOverlays19, "createOverlays");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/Models.js
var Models_exports = {};
__export(Models_exports, {
  CLSCulprits: () => CLSCulprits_exports,
  Cache: () => Cache_exports,
  CharacterSet: () => CharacterSet_exports,
  DOMSize: () => DOMSize_exports,
  DocumentLatency: () => DocumentLatency_exports,
  DuplicatedJavaScript: () => DuplicatedJavaScript_exports,
  FontDisplay: () => FontDisplay_exports,
  ForcedReflow: () => ForcedReflow_exports,
  INPBreakdown: () => INPBreakdown_exports,
  ImageDelivery: () => ImageDelivery_exports,
  LCPBreakdown: () => LCPBreakdown_exports,
  LCPDiscovery: () => LCPDiscovery_exports,
  LegacyJavaScript: () => LegacyJavaScript_exports,
  ModernHTTP: () => ModernHTTP_exports,
  NetworkDependencyTree: () => NetworkDependencyTree_exports,
  RenderBlocking: () => RenderBlocking_exports,
  SlowCSSSelector: () => SlowCSSSelector_exports,
  ThirdParties: () => ThirdParties_exports2,
  Viewport: () => Viewport_exports
});
var init_Models = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/Models.js"() {
    init_process_global();
    init_Cache();
    init_CharacterSet();
    init_CLSCulprits();
    init_DocumentLatency();
    init_DOMSize();
    init_DuplicatedJavaScript();
    init_FontDisplay();
    init_ForcedReflow();
    init_ImageDelivery();
    init_INPBreakdown();
    init_LCPBreakdown();
    init_LCPDiscovery();
    init_LegacyJavaScript();
    init_ModernHTTP();
    init_NetworkDependencyTree();
    init_RenderBlocking();
    init_SlowCSSSelector();
    init_ThirdParties2();
    init_Viewport();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/insights/insights.js
var init_insights = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/insights/insights.js"() {
    init_process_global();
    init_Cache();
    init_Common();
    init_Models();
    init_ModernHTTP();
    init_Statistics();
    init_types4();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/LanternComputationData.js
function createProcessedNavigation(data31, frameId, navigation2) {
  const scoresByNav = data31.PageLoadMetrics.metricScoresByFrameId.get(frameId);
  if (!scoresByNav) {
    throw new core_exports.LanternError("missing metric scores for frame");
  }
  const scores = scoresByNav.get(navigation2);
  if (!scores) {
    throw new core_exports.LanternError("missing metric scores for specified navigation");
  }
  const getTimestampOrUndefined = /* @__PURE__ */ __name((metric) => {
    const metricScore = scores.get(metric);
    if (!metricScore?.event) {
      return;
    }
    return metricScore.event.ts;
  }, "getTimestampOrUndefined");
  const getTimestamp = /* @__PURE__ */ __name((metric) => {
    const metricScore = scores.get(metric);
    if (!metricScore?.event) {
      throw new core_exports.LanternError(`missing metric: ${metric}`);
    }
    return metricScore.event.ts;
  }, "getTimestamp");
  return {
    timestamps: {
      firstContentfulPaint: getTimestamp(ModelHandlers_exports.PageLoadMetrics.MetricName.FCP),
      largestContentfulPaint: getTimestampOrUndefined(ModelHandlers_exports.PageLoadMetrics.MetricName.LCP)
    }
  };
}
function createParsedUrl(url) {
  if (typeof url === "string") {
    url = new URL(url);
  }
  return {
    scheme: url.protocol.split(":")[0],
    // Intentional, DevTools uses different terminology
    host: url.hostname,
    securityOrigin: url.origin
  };
}
function findWorkerThreads(trace) {
  const workerThreads = /* @__PURE__ */ new Map();
  const workerCreationEvents = ["ServiceWorker thread", "DedicatedWorker thread"];
  for (const event of trace.traceEvents) {
    if (event.name !== "thread_name" || !event.args.name) {
      continue;
    }
    if (!workerCreationEvents.includes(event.args.name)) {
      continue;
    }
    const tids = workerThreads.get(event.pid);
    if (tids) {
      tids.push(event.tid);
    } else {
      workerThreads.set(event.pid, [event.tid]);
    }
  }
  return workerThreads;
}
function createLanternRequest(parsedTrace, workerThreads, request) {
  if (request.args.data.hasResponse && request.args.data.connectionId === void 0) {
    throw new core_exports.LanternError("Trace is too old");
  }
  let url;
  try {
    url = new URL(request.args.data.url);
  } catch {
    return;
  }
  const timing = request.args.data.timing ? {
    // These two timings are not included in the trace.
    workerFetchStart: -1,
    workerRespondWithSettled: -1,
    receiveHeadersStart: -1,
    ...request.args.data.timing
  } : void 0;
  const networkRequestTime = timing ? timing.requestTime * 1e3 : request.args.data.syntheticData.downloadStart / 1e3;
  let fromWorker = false;
  const tids = workerThreads.get(request.pid);
  if (tids?.includes(request.tid)) {
    fromWorker = true;
  }
  if (parsedTrace.Workers.workerIdByThread.has(request.tid)) {
    fromWorker = true;
  }
  const initiator = request.args.data.initiator ?? {
    type: "other"
    /* Protocol.Network.InitiatorType.Other */
  };
  if (request.args.data.stackTrace) {
    const callFrames = request.args.data.stackTrace.map((f) => {
      return {
        scriptId: String(f.scriptId),
        url: f.url,
        lineNumber: f.lineNumber - 1,
        columnNumber: f.columnNumber - 1,
        functionName: f.functionName
      };
    });
    initiator.stack = { callFrames };
  }
  let resourceType = request.args.data.resourceType;
  if (request.args.data.initiator?.fetchType === "xmlhttprequest") {
    resourceType = "XHR";
  } else if (request.args.data.initiator?.fetchType === "fetch") {
    resourceType = "Fetch";
  }
  let resourceSize = request.args.data.decodedBodyLength ?? 0;
  if (url.protocol === "data:" && resourceSize === 0) {
    const commaIndex = url.pathname.indexOf(",");
    if (url.pathname.substring(0, commaIndex).includes(";base64")) {
      resourceSize = atob(url.pathname.substring(commaIndex + 1)).length;
    } else {
      resourceSize = url.pathname.length - commaIndex - 1;
    }
  }
  return {
    rawRequest: request,
    requestId: request.args.data.requestId,
    connectionId: request.args.data.connectionId ?? 0,
    connectionReused: request.args.data.connectionReused ?? false,
    url: request.args.data.url,
    protocol: request.args.data.protocol,
    parsedURL: createParsedUrl(url),
    documentURL: request.args.data.requestingFrameUrl,
    rendererStartTime: request.ts / 1e3,
    networkRequestTime,
    responseHeadersEndTime: request.args.data.syntheticData.downloadStart / 1e3,
    networkEndTime: request.args.data.syntheticData.finishTime / 1e3,
    transferSize: request.args.data.encodedDataLength,
    resourceSize,
    fromDiskCache: request.args.data.syntheticData.isDiskCached,
    fromMemoryCache: request.args.data.syntheticData.isMemoryCached,
    isLinkPreload: request.args.data.isLinkPreload,
    finished: request.args.data.finished,
    failed: request.args.data.failed,
    statusCode: request.args.data.statusCode,
    initiator,
    timing,
    resourceType,
    mimeType: request.args.data.mimeType,
    priority: request.args.data.priority,
    frameId: request.args.data.frame,
    fromWorker,
    serverResponseTime: request.args.data.lrServerResponseTime
  };
}
function chooseInitiatorRequest(request, requestsByURL) {
  if (request.redirectSource) {
    return request.redirectSource;
  }
  const initiatorURL = graph_exports.PageDependencyGraph.getNetworkInitiators(request)[0];
  let candidates = requestsByURL.get(initiatorURL) || [];
  candidates = candidates.filter((c) => {
    return c.responseHeadersEndTime <= request.rendererStartTime && c.finished && !c.failed;
  });
  if (candidates.length > 1) {
    const nonPrefetchCandidates = candidates.filter((cand) => cand.resourceType !== types_exports.NetworkRequestTypes.Other);
    if (nonPrefetchCandidates.length) {
      candidates = nonPrefetchCandidates;
    }
  }
  if (candidates.length > 1) {
    const sameFrameCandidates = candidates.filter((cand) => cand.frameId === request.frameId);
    if (sameFrameCandidates.length) {
      candidates = sameFrameCandidates;
    }
  }
  if (candidates.length > 1 && request.initiator.type === "parser") {
    const documentCandidates = candidates.filter((cand) => cand.resourceType === types_exports.NetworkRequestTypes.Document);
    if (documentCandidates.length) {
      candidates = documentCandidates;
    }
  }
  if (candidates.length > 1) {
    const linkPreloadCandidates = candidates.filter((c) => c.isLinkPreload);
    if (linkPreloadCandidates.length) {
      const nonPreloadCandidates = candidates.filter((c) => !c.isLinkPreload);
      const allPreloaded = nonPreloadCandidates.every((c) => c.fromDiskCache || c.fromMemoryCache);
      if (nonPreloadCandidates.length && allPreloaded) {
        candidates = linkPreloadCandidates;
      }
    }
  }
  return candidates.length === 1 ? candidates[0] : null;
}
function linkInitiators(lanternRequests) {
  const requestsByURL = /* @__PURE__ */ new Map();
  for (const request of lanternRequests) {
    const requests = requestsByURL.get(request.url) || [];
    requests.push(request);
    requestsByURL.set(request.url, requests);
  }
  for (const request of lanternRequests) {
    const initiatorRequest = chooseInitiatorRequest(request, requestsByURL);
    if (initiatorRequest) {
      request.initiatorRequest = initiatorRequest;
    }
  }
}
function createNetworkRequests(trace, data31, startTime = 0, endTime = Number.POSITIVE_INFINITY) {
  const workerThreads = findWorkerThreads(trace);
  const lanternRequestsNoRedirects = [];
  for (const request of data31.NetworkRequests.byTime) {
    if (request.ts >= startTime && request.ts < endTime) {
      const lanternRequest = createLanternRequest(data31, workerThreads, request);
      if (lanternRequest) {
        lanternRequestsNoRedirects.push(lanternRequest);
      }
    }
  }
  const lanternRequests = [];
  for (const request of [...lanternRequestsNoRedirects]) {
    if (!request.rawRequest) {
      continue;
    }
    const redirects = request.rawRequest.args.data.redirects;
    if (!redirects.length) {
      lanternRequests.push(request);
      continue;
    }
    const requestChain = [];
    for (const redirect of redirects) {
      const redirectedRequest = structuredClone(request);
      redirectedRequest.networkRequestTime = redirect.ts / 1e3;
      redirectedRequest.rendererStartTime = redirectedRequest.networkRequestTime;
      redirectedRequest.networkEndTime = (redirect.ts + redirect.dur) / 1e3;
      redirectedRequest.responseHeadersEndTime = redirectedRequest.networkEndTime;
      redirectedRequest.timing = {
        requestTime: redirectedRequest.networkRequestTime / 1e3,
        receiveHeadersStart: redirectedRequest.responseHeadersEndTime,
        receiveHeadersEnd: redirectedRequest.responseHeadersEndTime,
        proxyStart: -1,
        proxyEnd: -1,
        dnsStart: -1,
        dnsEnd: -1,
        connectStart: -1,
        connectEnd: -1,
        sslStart: -1,
        sslEnd: -1,
        sendStart: -1,
        sendEnd: -1,
        workerStart: -1,
        workerReady: -1,
        workerFetchStart: -1,
        workerRespondWithSettled: -1,
        pushStart: -1,
        pushEnd: -1
      };
      redirectedRequest.url = redirect.url;
      redirectedRequest.parsedURL = createParsedUrl(redirect.url);
      redirectedRequest.statusCode = 302;
      redirectedRequest.resourceType = void 0;
      redirectedRequest.transferSize = 400;
      requestChain.push(redirectedRequest);
      lanternRequests.push(redirectedRequest);
    }
    requestChain.push(request);
    lanternRequests.push(request);
    for (let i = 0; i < requestChain.length; i++) {
      const request2 = requestChain[i];
      if (i > 0) {
        request2.redirectSource = requestChain[i - 1];
        request2.redirects = requestChain.slice(0, i);
      }
      if (i !== requestChain.length - 1) {
        request2.redirectDestination = requestChain[i + 1];
      }
    }
    for (let i = 1; i < requestChain.length; i++) {
      requestChain[i].requestId = `${requestChain[i - 1].requestId}:redirect`;
    }
  }
  linkInitiators(lanternRequests);
  return lanternRequests;
}
function collectMainThreadEvents(trace, data31) {
  const Meta = data31.Meta;
  const mainFramePids = Meta.mainFrameNavigations.length ? new Set(Meta.mainFrameNavigations.map((nav) => nav.pid)) : Meta.topLevelRendererIds;
  const rendererPidToTid = /* @__PURE__ */ new Map();
  for (const pid of mainFramePids) {
    const threads = Meta.threadsInProcess.get(pid) ?? [];
    let found = false;
    for (const [tid, thread] of threads) {
      if (thread.args.name === "CrRendererMain") {
        rendererPidToTid.set(pid, tid);
        found = true;
        break;
      }
    }
    if (found) {
      continue;
    }
    for (const [tid, thread] of threads) {
      if (thread.args.name === "CrBrowserMain") {
        rendererPidToTid.set(pid, tid);
        found = true;
        break;
      }
    }
  }
  return trace.traceEvents.filter((e) => rendererPidToTid.get(e.pid) === e.tid);
}
function createGraph(requests, trace, data31, url) {
  const mainThreadEvents = collectMainThreadEvents(trace, data31);
  if (!url) {
    url = {
      requestedUrl: requests[0].url,
      mainDocumentUrl: ""
    };
    let request = requests[0];
    while (request.redirectDestination) {
      request = request.redirectDestination;
    }
    url.mainDocumentUrl = request.url;
  }
  return graph_exports.PageDependencyGraph.createGraph(mainThreadEvents, requests, url);
}
var init_LanternComputationData = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/LanternComputationData.js"() {
    init_process_global();
    init_handlers();
    init_lantern();
    __name(createProcessedNavigation, "createProcessedNavigation");
    __name(createParsedUrl, "createParsedUrl");
    __name(findWorkerThreads, "findWorkerThreads");
    __name(createLanternRequest, "createLanternRequest");
    __name(chooseInitiatorRequest, "chooseInitiatorRequest");
    __name(linkInitiators, "linkInitiators");
    __name(createNetworkRequests, "createNetworkRequests");
    __name(collectMainThreadEvents, "collectMainThreadEvents");
    __name(createGraph, "createGraph");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/Processor.js
var Processor_exports = {};
__export(Processor_exports, {
  TraceParseProgressEvent: () => TraceParseProgressEvent,
  TraceProcessor: () => TraceProcessor2,
  sortHandlers: () => sortHandlers
});
function calculateProgress(value, phase) {
  if (phase === 0.8) {
    return value * (0.8 - 0.2) + 0.2;
  }
  return value * phase;
}
function sortHandlers(traceHandlers) {
  const sortedMap = /* @__PURE__ */ new Map();
  const visited = /* @__PURE__ */ new Set();
  const visitHandler = /* @__PURE__ */ __name((handlerName) => {
    if (sortedMap.has(handlerName)) {
      return;
    }
    if (visited.has(handlerName)) {
      let stackPath = "";
      for (const handler2 of visited) {
        if (stackPath || handler2 === handlerName) {
          stackPath += `${handler2}->`;
        }
      }
      stackPath += handlerName;
      throw new Error(`Found dependency cycle in trace event handlers: ${stackPath}`);
    }
    visited.add(handlerName);
    const handler = traceHandlers[handlerName];
    if (!handler) {
      return;
    }
    const deps17 = handler.deps?.();
    if (deps17) {
      deps17.forEach(visitHandler);
    }
    sortedMap.set(handlerName, handler);
  }, "visitHandler");
  for (const handlerName of Object.keys(traceHandlers)) {
    visitHandler(handlerName);
  }
  return sortedMap;
}
var _a2, TraceParseProgressEvent, TraceProcessor2;
var init_Processor = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/Processor.js"() {
    init_process_global();
    init_handlers();
    init_helpers2();
    init_insights();
    init_lantern();
    init_LanternComputationData();
    init_types2();
    TraceParseProgressEvent = class _TraceParseProgressEvent extends Event {
      static {
        __name(this, "TraceParseProgressEvent");
      }
      data;
      static eventName = "traceparseprogress";
      constructor(data31, init2 = { bubbles: true }) {
        super(_TraceParseProgressEvent.eventName, init2);
        this.data = data31;
      }
    };
    __name(calculateProgress, "calculateProgress");
    TraceProcessor2 = class extends EventTarget {
      static {
        __name(this, "TraceProcessor");
      }
      // We force the Meta handler to be enabled, so the TraceHandlers type here is
      // the model handlers the user passes in and the Meta handler.
      #traceHandlers;
      #status = "IDLE";
      #modelConfiguration = Configuration_exports.defaults();
      #data = null;
      #insights = null;
      static createWithAllHandlers() {
        return new _a2(ModelHandlers_exports, Configuration_exports.defaults());
      }
      /**
       * This function is kept for testing with `stub`.
       */
      static getInsightRunners() {
        return { ...Models_exports };
      }
      constructor(traceHandlers, modelConfiguration) {
        super();
        this.#verifyHandlers(traceHandlers);
        this.#traceHandlers = {
          Meta: ModelHandlers_exports.Meta,
          ...traceHandlers
        };
        if (modelConfiguration) {
          this.#modelConfiguration = modelConfiguration;
        }
        this.#passConfigToHandlers();
      }
      #passConfigToHandlers() {
        for (const handler of Object.values(this.#traceHandlers)) {
          if ("handleUserConfig" in handler && handler.handleUserConfig) {
            handler.handleUserConfig(this.#modelConfiguration);
          }
        }
      }
      /**
       * When the user passes in a set of handlers, we want to ensure that we have all
       * the required handlers. Handlers can depend on other handlers, so if the user
       * passes in FooHandler which depends on BarHandler, they must also pass in
       * BarHandler too. This method verifies that all dependencies are met, and
       * throws if not.
       **/
      #verifyHandlers(providedHandlers) {
        if (Object.keys(providedHandlers).length === Object.keys(ModelHandlers_exports).length) {
          return;
        }
        const requiredHandlerKeys = /* @__PURE__ */ new Set();
        for (const [handlerName, handler] of Object.entries(providedHandlers)) {
          requiredHandlerKeys.add(handlerName);
          const deps17 = "deps" in handler ? handler.deps() : [];
          for (const depName of deps17) {
            requiredHandlerKeys.add(depName);
          }
        }
        const providedHandlerKeys = new Set(Object.keys(providedHandlers));
        requiredHandlerKeys.delete("Meta");
        for (const requiredKey of requiredHandlerKeys) {
          if (!providedHandlerKeys.has(requiredKey)) {
            throw new Error(`Required handler ${requiredKey} not provided.`);
          }
        }
      }
      reset() {
        if (this.#status === "PARSING") {
          throw new Error("Trace processor can't reset while parsing.");
        }
        const handlers = Object.values(this.#traceHandlers);
        for (const handler of handlers) {
          handler.reset();
        }
        this.#data = null;
        this.#insights = null;
        this.#status = "IDLE";
      }
      async parse(traceEvents, options) {
        if (this.#status !== "IDLE") {
          throw new Error(`Trace processor can't start parsing when not idle. Current state: ${this.#status}`);
        }
        if (typeof options.isCPUProfile === "undefined" && options.metadata) {
          options.isCPUProfile = options.metadata.dataOrigin === File_exports.DataOrigin.CPU_PROFILE;
        }
        options.logger?.start("total");
        try {
          this.#status = "PARSING";
          options.logger?.start("parse");
          await this.#computeParsedTrace(traceEvents, options);
          options.logger?.end("parse");
          if (this.#data && !options.isCPUProfile) {
            options.logger?.start("insights");
            this.#computeInsights(this.#data, traceEvents, options);
            options.logger?.end("insights");
          }
          this.#status = "FINISHED_PARSING";
        } catch (e) {
          this.#status = "ERRORED_WHILE_PARSING";
          throw e;
        } finally {
          options.logger?.end("total");
        }
      }
      /**
       * Run all the handlers and set the result to `#data`.
       */
      async #computeParsedTrace(traceEvents, options) {
        const eventsPerChunk = 5e4;
        const sortedHandlers = [...sortHandlers(this.#traceHandlers).entries()];
        for (const [, handler] of sortedHandlers) {
          handler.reset();
        }
        options.logger?.start("parse:handleEvent");
        for (let i = 0; i < traceEvents.length; ++i) {
          if (i % eventsPerChunk === 0 && i) {
            const percent = calculateProgress(
              i / traceEvents.length,
              0.2
              /* ProgressPhase.HANDLE_EVENT */
            );
            this.dispatchEvent(new TraceParseProgressEvent({ percent }));
            await new Promise((resolve) => setTimeout(resolve, 0));
          }
          const event = traceEvents[i];
          for (let j = 0; j < sortedHandlers.length; ++j) {
            const [, handler] = sortedHandlers[j];
            handler.handleEvent(event);
          }
        }
        options.logger?.end("parse:handleEvent");
        const finalizeOptions = {
          ...options,
          allTraceEvents: traceEvents
        };
        for (let i = 0; i < sortedHandlers.length; i++) {
          const [name, handler] = sortedHandlers[i];
          if (handler.finalize) {
            options.logger?.start(`parse:${name}:finalize`);
            await new Promise((resolve) => setTimeout(resolve, 0));
            await handler.finalize(finalizeOptions);
            options.logger?.end(`parse:${name}:finalize`);
          }
          const percent = calculateProgress(
            i / sortedHandlers.length,
            0.8
            /* ProgressPhase.FINALIZE */
          );
          this.dispatchEvent(new TraceParseProgressEvent({ percent }));
        }
        options.logger?.start("parse:handler.data()");
        const parsedTrace = {};
        for (const [name, handler] of Object.entries(this.#traceHandlers)) {
          Object.assign(parsedTrace, { [name]: handler.data() });
        }
        options.logger?.end("parse:handler.data()");
        this.dispatchEvent(new TraceParseProgressEvent({
          percent: 1
          /* ProgressPhase.CLONE */
        }));
        this.#data = parsedTrace;
      }
      get data() {
        if (this.#status !== "FINISHED_PARSING") {
          return null;
        }
        return this.#data;
      }
      get insights() {
        if (this.#status !== "FINISHED_PARSING") {
          return null;
        }
        return this.#insights;
      }
      #createLanternContext(data31, traceEvents, frameId, navigation2, options) {
        if (!data31.NetworkRequests || !data31.Workers || !data31.PageLoadMetrics) {
          return;
        }
        if (!data31.NetworkRequests.byTime.length) {
          throw new core_exports.LanternError("No network requests found in trace");
        }
        const navStarts = data31.Meta.navigationsByFrameId.get(frameId);
        const navStartIndex = navStarts?.findIndex((n) => n === navigation2);
        if (!navStarts || navStartIndex === void 0 || navStartIndex === -1) {
          throw new core_exports.LanternError("Could not find navigation start");
        }
        const startTime = navStarts[navStartIndex].ts;
        const endTime = navStartIndex + 1 < navStarts.length ? navStarts[navStartIndex + 1].ts : Number.POSITIVE_INFINITY;
        const boundedTraceEvents = traceEvents.filter((e) => e.ts >= startTime && e.ts < endTime);
        const trace = {
          traceEvents: boundedTraceEvents
        };
        const requests = createNetworkRequests(trace, data31, startTime, endTime);
        const graph2 = createGraph(requests, trace, data31);
        const processedNavigation = createProcessedNavigation(data31, frameId, navigation2);
        const networkAnalysis = core_exports.NetworkAnalyzer.analyze(requests);
        if (!networkAnalysis) {
          return;
        }
        const lanternSettings = {
          // TODO(crbug.com/372674229): if devtools throttling was on, does this network analysis capture
          // that? Do we need to set 'devtools' throttlingMethod?
          networkAnalysis,
          throttlingMethod: "provided",
          ...options.lanternSettings
        };
        const simulator = simulation_exports.Simulator.createSimulator(lanternSettings);
        const computeData = { graph: graph2, simulator, processedNavigation };
        const fcpResult = metrics_exports.FirstContentfulPaint.compute(computeData);
        const lcpResult = metrics_exports.LargestContentfulPaint.compute(computeData, { fcpResult });
        const interactiveResult = metrics_exports.Interactive.compute(computeData, { lcpResult });
        const tbtResult = metrics_exports.TotalBlockingTime.compute(computeData, { fcpResult, interactiveResult });
        const metrics = {
          firstContentfulPaint: fcpResult,
          interactive: interactiveResult,
          largestContentfulPaint: lcpResult,
          totalBlockingTime: tbtResult
        };
        return { requests, graph: graph2, simulator, metrics };
      }
      /**
       * Sort the insight models based on the impact of each insight's estimated savings, additionally weighted by the
       * worst metrics according to field data (if present).
       */
      sortInsightSet(insightSet, metadata) {
        const baselineOrder = {
          INPBreakdown: null,
          LCPBreakdown: null,
          LCPDiscovery: null,
          CLSCulprits: null,
          RenderBlocking: null,
          NetworkDependencyTree: null,
          ImageDelivery: null,
          DocumentLatency: null,
          FontDisplay: null,
          Viewport: null,
          DOMSize: null,
          ThirdParties: null,
          DuplicatedJavaScript: null,
          SlowCSSSelector: null,
          ForcedReflow: null,
          Cache: null,
          CharacterSet: null,
          ModernHTTP: null,
          LegacyJavaScript: null
        };
        const weights = Common_exports.calculateMetricWeightsForSorting(insightSet, metadata);
        const observedLcpMicro = Common_exports.getLCP(insightSet)?.value;
        const observedLcp = observedLcpMicro ? Timing_exports3.microToMilli(observedLcpMicro) : Timing_exports.Milli(0);
        const observedCls = Common_exports.getCLS(insightSet).value;
        const observedInpMicro = Common_exports.getINP(insightSet)?.value;
        const observedInp = observedInpMicro ? Timing_exports3.microToMilli(observedInpMicro) : Timing_exports.Milli(200);
        const observedLcpScore = observedLcp !== void 0 ? Common_exports.evaluateLCPMetricScore(observedLcp) : void 0;
        const observedInpScore = Common_exports.evaluateINPMetricScore(observedInp);
        const observedClsScore = Common_exports.evaluateCLSMetricScore(observedCls);
        const insightToSortingRank = /* @__PURE__ */ new Map();
        for (const [name, insight] of Object.entries(insightSet.model)) {
          const lcp = insight.metricSavings?.LCP ?? 0;
          const inp = insight.metricSavings?.INP ?? 0;
          const cls = insight.metricSavings?.CLS ?? 0;
          const lcpPostSavings = observedLcp !== void 0 ? Math.max(0, observedLcp - lcp) : void 0;
          const inpPostSavings = Math.max(0, observedInp - inp);
          const clsPostSavings = Math.max(0, observedCls - cls);
          let score = 0;
          if (weights.lcp && lcp && observedLcpScore !== void 0 && lcpPostSavings !== void 0) {
            score += weights.lcp * (Common_exports.evaluateLCPMetricScore(lcpPostSavings) - observedLcpScore);
          }
          if (weights.inp && inp && observedInpScore !== void 0) {
            score += weights.inp * (Common_exports.evaluateINPMetricScore(inpPostSavings) - observedInpScore);
          }
          if (weights.cls && cls && observedClsScore !== void 0) {
            score += weights.cls * (Common_exports.evaluateCLSMetricScore(clsPostSavings) - observedClsScore);
          }
          insightToSortingRank.set(name, score);
        }
        const baselineOrderKeys = Object.keys(baselineOrder);
        const orderedKeys = Object.keys(insightSet.model);
        orderedKeys.sort((a, b) => {
          const a1 = baselineOrderKeys.indexOf(a);
          const b1 = baselineOrderKeys.indexOf(b);
          if (a1 >= 0 && b1 >= 0) {
            return a1 - b1;
          }
          if (a1 >= 0) {
            return -1;
          }
          if (b1 >= 0) {
            return 1;
          }
          return 0;
        });
        orderedKeys.sort((a, b) => (insightToSortingRank.get(b) ?? 0) - (insightToSortingRank.get(a) ?? 0));
        const newModel = {};
        for (const key of orderedKeys) {
          const model2 = insightSet.model[key];
          newModel[key] = model2;
        }
        insightSet.model = newModel;
      }
      #computeInsightSet(data31, context) {
        const logger = context.options.logger;
        if (!this.#insights) {
          this.#insights = /* @__PURE__ */ new Map();
        }
        let id, urlString, navigation2;
        if (context.navigation) {
          id = `NAVIGATION_${this.#insights.size}`;
          urlString = data31.Meta.finalDisplayUrlByNavigationId.get(context.navigationId) ?? data31.Meta.mainFrameURL;
          navigation2 = context.navigation;
        } else {
          id = TraceEvents_exports.NO_NAVIGATION;
          urlString = data31.Meta.finalDisplayUrlByNavigationId.get("") ?? data31.Meta.mainFrameURL;
        }
        const insightSetModel = {};
        const insightSetModelErrors = {};
        for (const [name, insight] of Object.entries(_a2.getInsightRunners())) {
          try {
            logger?.start(`insights:${name}`);
            const model2 = insight.generateInsight(data31, context);
            model2.frameId = context.frameId;
            const navId = context.navigation?.args.data?.navigationId;
            if (navId) {
              model2.navigation = context.navigation;
            }
            model2.createOverlays = () => {
              return insight.createOverlays(model2);
            };
            Object.assign(insightSetModel, { [name]: model2 });
          } catch (err) {
            Object.assign(insightSetModelErrors, { [name]: err });
          } finally {
            logger?.end(`insights:${name}`);
          }
        }
        const isNavigation = id === TraceEvents_exports.NO_NAVIGATION;
        const trivialThreshold = Timing_exports3.milliToMicro(Timing_exports.Milli(5e3));
        const everyInsightPasses = Object.values(insightSetModel).every((model2) => model2 && model2.state === "pass");
        const noLcp = !insightSetModel.LCPBreakdown?.lcpEvent;
        const noInp = !insightSetModel.INPBreakdown?.longestInteractionEvent;
        const noLayoutShifts = insightSetModel.CLSCulprits?.shifts?.size === 0;
        const shouldExclude = isNavigation && context.bounds.range < trivialThreshold && everyInsightPasses && noLcp && noInp && noLayoutShifts;
        if (shouldExclude) {
          return;
        }
        let url;
        try {
          url = new URL(urlString);
        } catch {
          return;
        }
        const insightSet = {
          id,
          url,
          navigation: navigation2,
          frameId: context.frameId,
          bounds: context.bounds,
          model: insightSetModel,
          modelErrors: insightSetModelErrors
        };
        this.#insights.set(insightSet.id, insightSet);
        this.sortInsightSet(insightSet, context.options.metadata ?? null);
      }
      /**
       * Run all the insights and set the result to `#insights`.
       */
      #computeInsights(data31, traceEvents, options) {
        this.#insights = /* @__PURE__ */ new Map();
        const navigations = data31.Meta.mainFrameNavigations.filter((navigation2) => navigation2.args.frame && navigation2.args.data?.navigationId);
        this.#computeInsightsForInitialTracePeriod(data31, navigations, options);
        for (const [index, navigation2] of navigations.entries()) {
          const min = navigation2.ts;
          const max = index + 1 < navigations.length ? navigations[index + 1].ts : data31.Meta.traceBounds.max;
          const bounds = Timing_exports3.traceWindowFromMicroSeconds(min, max);
          this.#computeInsightsForNavigation(navigation2, bounds, data31, traceEvents, options);
        }
      }
      /**
       * Computes insights for the period before the first navigation, or for the entire trace if no navigations exist.
       */
      #computeInsightsForInitialTracePeriod(data31, navigations, options) {
        const bounds = navigations.length > 0 ? Timing_exports3.traceWindowFromMicroSeconds(data31.Meta.traceBounds.min, navigations[0].ts) : data31.Meta.traceBounds;
        const context = {
          options,
          bounds,
          frameId: data31.Meta.mainFrameId
          // No navigation or lantern context applies to this initial/no-navigation period.
        };
        this.#computeInsightSet(data31, context);
      }
      /**
       * Computes insights for a specific navigation event.
       */
      #computeInsightsForNavigation(navigation2, bounds, data31, traceEvents, options) {
        const frameId = navigation2.args.frame;
        const navigationId = navigation2.args.data?.navigationId;
        let lantern;
        try {
          options.logger?.start("insights:createLanternContext");
          lantern = this.#createLanternContext(data31, traceEvents, frameId, navigation2, options);
        } catch (e) {
          const expectedErrors = [
            "mainDocumentRequest not found",
            "missing metric scores for main frame",
            "missing metric: FCP",
            "missing metric: LCP",
            "No network requests found in trace",
            "Trace is too old"
          ];
          if (!(e instanceof core_exports.LanternError)) {
            console.error(e);
          } else if (!expectedErrors.some((err) => e.message === err)) {
            console.error(e);
          }
        } finally {
          options.logger?.end("insights:createLanternContext");
        }
        const context = {
          options,
          bounds,
          frameId,
          navigation: navigation2,
          navigationId,
          lantern
        };
        this.#computeInsightSet(data31, context);
      }
    };
    _a2 = TraceProcessor2;
    __name(sortHandlers, "sortHandlers");
  }
});

// node_modules/@paulirish/trace_engine/models/trace/ModelImpl.js
var init_ModelImpl = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/ModelImpl.js"() {
    init_process_global();
    init_platform();
    init_handlers();
    init_helpers2();
    init_Processor();
    init_types2();
  }
});

// node_modules/@paulirish/trace_engine/core/common/common.js
var init_common = __esm({
  "node_modules/@paulirish/trace_engine/core/common/common.js"() {
    init_process_global();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/Styles.js
var EventCategory;
var init_Styles = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/Styles.js"() {
    init_process_global();
    init_handlers();
    init_helpers2();
    init_types2();
    (function(EventCategory2) {
      EventCategory2["DRAWING"] = "drawing";
      EventCategory2["RASTERIZING"] = "rasterizing";
      EventCategory2["LAYOUT"] = "layout";
      EventCategory2["LOADING"] = "loading";
      EventCategory2["EXPERIENCE"] = "experience";
      EventCategory2["SCRIPTING"] = "scripting";
      EventCategory2["MESSAGING"] = "messaging";
      EventCategory2["RENDERING"] = "rendering";
      EventCategory2["PAINTING"] = "painting";
      EventCategory2["GPU"] = "gpu";
      EventCategory2["ASYNC"] = "async";
      EventCategory2["OTHER"] = "other";
      EventCategory2["IDLE"] = "idle";
    })(EventCategory || (EventCategory = {}));
  }
});

// node_modules/@paulirish/trace_engine/models/trace/Name.js
var init_Name = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/Name.js"() {
    init_process_global();
    init_common();
    init_handlers();
    init_Styles();
    init_types2();
  }
});

// node_modules/@paulirish/trace_engine/models/trace/trace.js
var init_trace2 = __esm({
  "node_modules/@paulirish/trace_engine/models/trace/trace.js"() {
    init_process_global();
    init_EntityMapper();
    init_EventsSerializer();
    init_extras();
    init_handlers();
    init_helpers2();
    init_insights();
    init_lantern();
    init_LanternComputationData();
    init_ModelImpl();
    init_Name();
    init_Processor();
    init_Styles();
    init_types2();
  }
});

// core/lib/lantern/lantern.js
var init_lantern2 = __esm({
  "core/lib/lantern/lantern.js"() {
    "use strict";
    init_process_global();
    init_lantern();
    init_trace2();
    /**
     * @license
     * Copyright 2024 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
  }
});

// core/lib/lantern-trace-saver.js
var init_lantern_trace_saver = __esm({
  "core/lib/lantern-trace-saver.js"() {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
  }
});

// core/lib/traces/metric-trace-events.js
var init_metric_trace_events = __esm({
  "core/lib/traces/metric-trace-events.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_trace_processor();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
  }
});

// core/lib/arbitrary-equality-map.js
var ArbitraryEqualityMap;
var init_arbitrary_equality_map = __esm({
  "core/lib/arbitrary-equality-map.js"() {
    "use strict";
    init_process_global();
    init_lodash();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    ArbitraryEqualityMap = class _ArbitraryEqualityMap {
      static {
        __name(this, "ArbitraryEqualityMap");
      }
      constructor() {
        this._equalsFn = _ArbitraryEqualityMap.deepEquals;
        this._entries = [];
      }
      /**
       * @param {function(*,*):boolean} equalsFn
       */
      setEqualityFn(equalsFn) {
        this._equalsFn = equalsFn;
      }
      /**
       * @param {*} key
       * @return {boolean}
       */
      has(key) {
        return this._findIndexOf(key) !== -1;
      }
      /**
       * @param {*} key
       * @return {*}
       */
      get(key) {
        const entry = this._entries[this._findIndexOf(key)];
        return entry?.value;
      }
      /**
       * @param {*} key
       * @param {*} value
       */
      set(key, value) {
        let index = this._findIndexOf(key);
        if (index === -1) index = this._entries.length;
        this._entries[index] = { key, value };
      }
      /**
       * @param {*} key
       * @return {number}
       */
      _findIndexOf(key) {
        for (let i = 0; i < this._entries.length; i++) {
          if (this._equalsFn(key, this._entries[i].key)) return i;
        }
        return -1;
      }
      /**
       * Determines whether two objects are deeply equal. Defers to lodash isEqual, but is kept here for
       * easy usage by consumers.
       * See https://lodash.com/docs/4.17.5#isEqual.
       * @param {*} objA
       * @param {*} objB
       * @return {boolean}
       */
      static deepEquals(objA, objB) {
        return isEqual_default(objA, objB);
      }
    };
  }
});

// core/computed/computed-artifact.js
function makeComputedArtifact(computableArtifact, keys2) {
  const request = /* @__PURE__ */ __name((dependencies, context) => {
    const computedName = computableArtifact.name;
    for (const key of keys2 || []) {
      if (dependencies && typeof dependencies === "object" && dependencies[key] === void 0) {
        const err = new Error(`missing required key "${String(key)}" for computed artifact ${computableArtifact.name}`);
        if (isUnderTest) {
          throw err;
        } else {
          lighthouse_logger_default.error(`lh:computed:${computedName}`, err);
        }
      }
    }
    const pickedDependencies = keys2 ? Object.fromEntries(keys2.map((key) => [key, dependencies[key]])) : dependencies;
    const computedCache = (
      /** @type {Map<string, ArbitraryEqualityMap>} */
      context.computedCache
    );
    const cache = computedCache.get(computedName) || new ArbitraryEqualityMap();
    computedCache.set(computedName, cache);
    const computed = cache.get(pickedDependencies);
    if (computed) {
      return computed;
    }
    const status = { msg: `Computing artifact: ${computedName}`, id: `lh:computed:${computedName}` };
    lighthouse_logger_default.time(status, "verbose");
    const artifactPromise = (
      /** @type {ReturnType<C['compute_']>} */
      computableArtifact.compute_(pickedDependencies, context)
    );
    cache.set(pickedDependencies, artifactPromise);
    artifactPromise.then(() => lighthouse_logger_default.timeEnd(status)).catch(() => lighthouse_logger_default.timeEnd(status));
    return artifactPromise;
  }, "request");
  return Object.assign(computableArtifact, { request });
}
var init_computed_artifact = __esm({
  "core/computed/computed-artifact.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_arbitrary_equality_map();
    init_lh_env();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(makeComputedArtifact, "makeComputedArtifact");
  }
});

// node_modules/tldts-icann/dist/cjs/index.js
var require_cjs = __commonJS({
  "node_modules/tldts-icann/dist/cjs/index.js"(exports2) {
    "use strict";
    init_process_global();
    function shareSameDomainSuffix(hostname, vhost) {
      if (hostname.endsWith(vhost)) {
        return hostname.length === vhost.length || hostname[hostname.length - vhost.length - 1] === ".";
      }
      return false;
    }
    __name(shareSameDomainSuffix, "shareSameDomainSuffix");
    function extractDomainWithSuffix(hostname, publicSuffix) {
      const publicSuffixIndex = hostname.length - publicSuffix.length - 2;
      const lastDotBeforeSuffixIndex = hostname.lastIndexOf(".", publicSuffixIndex);
      if (lastDotBeforeSuffixIndex === -1) {
        return hostname;
      }
      return hostname.slice(lastDotBeforeSuffixIndex + 1);
    }
    __name(extractDomainWithSuffix, "extractDomainWithSuffix");
    function getDomain$1(suffix, hostname, options) {
      if (options.validHosts !== null) {
        const validHosts = options.validHosts;
        for (const vhost of validHosts) {
          if (
            /*@__INLINE__*/
            shareSameDomainSuffix(hostname, vhost)
          ) {
            return vhost;
          }
        }
      }
      let numberOfLeadingDots = 0;
      if (hostname.startsWith(".")) {
        while (numberOfLeadingDots < hostname.length && hostname[numberOfLeadingDots] === ".") {
          numberOfLeadingDots += 1;
        }
      }
      if (suffix.length === hostname.length - numberOfLeadingDots) {
        return null;
      }
      return (
        /*@__INLINE__*/
        extractDomainWithSuffix(hostname, suffix)
      );
    }
    __name(getDomain$1, "getDomain$1");
    function getDomainWithoutSuffix$1(domain, suffix) {
      return domain.slice(0, -suffix.length - 1);
    }
    __name(getDomainWithoutSuffix$1, "getDomainWithoutSuffix$1");
    var CONTROL_CHARS = /[\t\n\r]/g;
    var extractedHostnameValidated = false;
    function isValidHostnameChar(code) {
      return code >= 97 && code <= 122 || // a-z
      code >= 48 && code <= 57 || // 0-9
      code > 127 || // non-ASCII (accepted, not punycode-checked)
      code >= 65 && code <= 90 || // A-Z (becomes valid once lowercased)
      code === 45 || // '-'
      code === 95;
    }
    __name(isValidHostnameChar, "isValidHostnameChar");
    function getSpecialScheme(url, schemeStart, colonIndex) {
      const length = colonIndex - schemeStart;
      const c0 = url.charCodeAt(schemeStart) | 32;
      if (length === 2) {
        return c0 === 119 && (url.charCodeAt(schemeStart + 1) | 32) === 115 ? 1 : 0;
      } else if (length === 3) {
        const c1 = url.charCodeAt(schemeStart + 1) | 32;
        const c2 = url.charCodeAt(schemeStart + 2) | 32;
        if (c0 === 119 && c1 === 115 && c2 === 115)
          return 1;
        if (c0 === 102 && c1 === 116 && c2 === 112)
          return 1;
        return 0;
      } else if (length === 4) {
        const c1 = url.charCodeAt(schemeStart + 1) | 32;
        const c2 = url.charCodeAt(schemeStart + 2) | 32;
        const c3 = url.charCodeAt(schemeStart + 3) | 32;
        if (c0 === 104 && c1 === 116 && c2 === 116 && c3 === 112)
          return 1;
        if (c0 === 102 && c1 === 105 && c2 === 108 && c3 === 101)
          return 2;
        return 0;
      } else if (length === 5) {
        return c0 === 104 && (url.charCodeAt(schemeStart + 1) | 32) === 116 && (url.charCodeAt(schemeStart + 2) | 32) === 116 && (url.charCodeAt(schemeStart + 3) | 32) === 112 && (url.charCodeAt(schemeStart + 4) | 32) === 115 ? 1 : 0;
      }
      return 0;
    }
    __name(getSpecialScheme, "getSpecialScheme");
    function extractHostname(url, urlIsValidHostname, validate = false) {
      let start = 0;
      let end = url.length;
      let hasUpper = false;
      let isSpecial = false;
      extractedHostnameValidated = false;
      if (!urlIsValidHostname) {
        if (url.startsWith("data:")) {
          return null;
        }
        while (start < url.length && url.charCodeAt(start) <= 32) {
          start += 1;
        }
        while (end > start + 1 && url.charCodeAt(end - 1) <= 32) {
          end -= 1;
        }
        if (url.charCodeAt(start) === 47 && url.charCodeAt(start + 1) === 47) {
          start += 2;
        } else {
          const indexOfProtocol = url.indexOf(":/", start);
          if (indexOfProtocol !== -1) {
            const special = getSpecialScheme(url, start, indexOfProtocol);
            if (special === 1) {
              isSpecial = true;
              start = indexOfProtocol + 2;
              while (url.charCodeAt(start) === 47 || url.charCodeAt(start) === 92) {
                start += 1;
              }
            } else if (special === 2) {
              isSpecial = true;
              start = indexOfProtocol + 1;
              let slashes = 0;
              while ((url.charCodeAt(start) === 47 || url.charCodeAt(start) === 92) && slashes < 2) {
                start += 1;
                slashes += 1;
              }
              if (slashes < 2) {
                return null;
              }
            } else {
              for (let i = start; i < indexOfProtocol; i += 1) {
                const code = url.charCodeAt(i) | 32;
                if (!(code >= 97 && code <= 122 || // [a, z]
                code >= 48 && code <= 57 || // [0, 9]
                code === 46 || // '.'
                code === 45 || // '-'
                code === 43)) {
                  const raw = url.charCodeAt(i);
                  if (raw === 9 || raw === 10 || raw === 13) {
                    return extractHostname(url.replace(CONTROL_CHARS, ""), urlIsValidHostname, validate);
                  }
                  return null;
                }
              }
              if (url.charCodeAt(indexOfProtocol + 2) === 47) {
                start = indexOfProtocol + 3;
              } else {
                return null;
              }
            }
          } else if (url.charCodeAt(start) !== 91) {
            let indexOfColon = -1;
            for (let i = start; i < end; i += 1) {
              const code = url.charCodeAt(i);
              if (code === 9 || code === 10 || code === 13) {
                return extractHostname(url.replace(CONTROL_CHARS, ""), urlIsValidHostname, validate);
              }
              if (code === 58) {
                indexOfColon = i;
                break;
              }
              if (code === 47 || code === 92 || code === 63 || code === 35) {
                break;
              }
            }
            if (indexOfColon !== -1) {
              let hasIdentifier = false;
              for (let i = indexOfColon + 1; i < end; i += 1) {
                const code = url.charCodeAt(i);
                if (code === 47 || code === 92 || code === 63 || code === 35) {
                  break;
                }
                if (code === 64) {
                  hasIdentifier = true;
                  break;
                }
              }
              if (!hasIdentifier) {
                let allDigits = true;
                let i = indexOfColon + 1;
                for (; i < end; i += 1) {
                  const code = url.charCodeAt(i);
                  if (code === 47 || code === 92 || code === 63 || code === 35) {
                    break;
                  }
                  if (code < 48 || code > 57) {
                    allDigits = false;
                    break;
                  }
                }
                if (i === indexOfColon + 1) {
                  allDigits = false;
                }
                if (!allDigits) {
                  const special = getSpecialScheme(url, start, indexOfColon);
                  if (special === 0) {
                    let isBareIpv6 = false;
                    for (let j = indexOfColon + 1; j < end; j += 1) {
                      const code = url.charCodeAt(j);
                      if (code === 47 || code === 92 || code === 63 || code === 35) {
                        break;
                      }
                      if (code === 58) {
                        isBareIpv6 = true;
                        break;
                      }
                    }
                    if (!isBareIpv6) {
                      return null;
                    }
                  } else {
                    isSpecial = true;
                    start = indexOfColon + 1;
                    if (special === 2) {
                      let slashes = 0;
                      while ((url.charCodeAt(start) === 47 || url.charCodeAt(start) === 92) && slashes < 2) {
                        start += 1;
                        slashes += 1;
                      }
                      if (slashes < 2) {
                        return null;
                      }
                    } else {
                      while (url.charCodeAt(start) === 47 || url.charCodeAt(start) === 92) {
                        start += 1;
                      }
                    }
                  }
                }
              }
            }
          }
        }
        let indexOfIdentifier = -1;
        let indexOfClosingBracket = -1;
        let indexOfPort = -1;
        let indexOfFirstColon = -1;
        let hasControl = false;
        let vValid = validate;
        let vLastDot = start - 1;
        let vLastCode = -1;
        if (validate && start < end) {
          const c0 = url.charCodeAt(start);
          if (!/*@__INLINE__*/
          (isValidHostnameChar(c0) || c0 === 46 || c0 === 95) || c0 === 45) {
            vValid = false;
          }
        }
        for (let i = start; i < end; i += 1) {
          const code = url.charCodeAt(i);
          if (code < 64) {
            if (code === 47 || code === 35 || code === 63) {
              end = i;
              break;
            } else if (code === 58) {
              if (indexOfFirstColon === -1) {
                indexOfFirstColon = i;
              }
              indexOfPort = i;
            } else if (code === 9 || code === 10 || code === 13) {
              hasControl = true;
            } else if (validate) {
              if (code === 46) {
                if (i - vLastDot > 64 || vLastCode === 46 || vLastCode === 45) {
                  vValid = false;
                }
                vLastDot = i;
              } else if (code < 48 || code > 57) {
                if (code !== 45 || vLastCode === 46) {
                  vValid = false;
                }
              }
            }
          } else if (isSpecial && code === 92) {
            end = i;
            break;
          } else if (code === 64) {
            indexOfIdentifier = i;
            indexOfFirstColon = -1;
          } else if (code === 93) {
            indexOfClosingBracket = i;
          } else if (code >= 65 && code <= 90) {
            hasUpper = true;
          } else if (validate && !/*@__INLINE__*/
          isValidHostnameChar(code)) {
            vValid = false;
          }
          if (validate) {
            vLastCode = code;
          }
        }
        if (hasControl) {
          return extractHostname(url.replace(CONTROL_CHARS, ""), urlIsValidHostname, validate);
        }
        if (indexOfIdentifier !== -1 && indexOfIdentifier >= start && indexOfIdentifier < end) {
          start = indexOfIdentifier + 1;
        }
        if (url.charCodeAt(start) === 91) {
          if (indexOfClosingBracket !== -1) {
            return url.slice(start + 1, indexOfClosingBracket).toLowerCase();
          }
          return null;
        } else if (indexOfPort !== -1 && indexOfPort > start && indexOfPort < end && // A host:port has exactly one ':' in the host (so its first ':' is its
        // last); a bare, unbracketed IPv6 literal ("2a01:e35::1") has >= 2, so
        // its first ':' precedes the last. Only the former has a ':port' to trim.
        indexOfFirstColon === indexOfPort) {
          end = indexOfPort;
        }
        if (start >= end) {
          return null;
        }
        if (validate && vValid && indexOfIdentifier === -1 && indexOfPort === -1 && indexOfClosingBracket === -1 && url.charCodeAt(end - 1) !== 46 && end - start <= 255 && // total length
        end - vLastDot - 1 <= 63 && // last label length
        vLastCode !== 45) {
          extractedHostnameValidated = true;
        }
      }
      while (end > start + 1 && url.charCodeAt(end - 1) === 46) {
        end -= 1;
      }
      const hostname = start !== 0 || end !== url.length ? url.slice(start, end) : url;
      if (hasUpper) {
        return hostname.toLowerCase();
      }
      return hostname;
    }
    __name(extractHostname, "extractHostname");
    function isProbablyIpv4(hostname) {
      if (hostname.length < 7) {
        return false;
      }
      if (hostname.length > 15) {
        return false;
      }
      let numberOfDots = 0;
      for (let i = 0; i < hostname.length; i += 1) {
        const code = hostname.charCodeAt(i);
        if (code === 46) {
          numberOfDots += 1;
        } else if (code < 48 || code > 57) {
          return false;
        }
      }
      return numberOfDots === 3 && hostname.charCodeAt(0) !== 46 && hostname.charCodeAt(hostname.length - 1) !== 46;
    }
    __name(isProbablyIpv4, "isProbablyIpv4");
    function isProbablyIpv6(hostname) {
      if (hostname.length < 3) {
        return false;
      }
      let start = hostname.startsWith("[") ? 1 : 0;
      let end = hostname.length;
      if (hostname[end - 1] === "]") {
        end -= 1;
      }
      if (end - start > 39) {
        return false;
      }
      let hasColon = false;
      for (; start < end; start += 1) {
        const code = hostname.charCodeAt(start);
        if (code === 58) {
          hasColon = true;
        } else if (!(code >= 48 && code <= 57 || // 0-9
        code >= 97 && code <= 102 || // a-f
        code >= 65 && code <= 70)) {
          return false;
        }
      }
      return hasColon;
    }
    __name(isProbablyIpv6, "isProbablyIpv6");
    function isIp(hostname) {
      return isProbablyIpv6(hostname) || isProbablyIpv4(hostname);
    }
    __name(isIp, "isIp");
    var SPECIAL_USE_DOMAINS = [
      "test",
      // RFC 6761
      "localhost",
      // RFC 6761
      "invalid",
      // RFC 6761
      "example",
      // RFC 6761
      "example.com",
      // RFC 6761
      "example.net",
      // RFC 6761
      "example.org",
      // RFC 6761
      "local",
      // RFC 6762 (mDNS)
      "onion",
      // RFC 7686 (Tor)
      "alt",
      // RFC 9476
      "home.arpa",
      // RFC 8375
      "ipv4only.arpa",
      // RFC 8880
      "resolver.arpa",
      // RFC 9462
      "service.arpa",
      // RFC 9665
      "6tisch.arpa",
      // RFC 9031
      "eap.arpa"
      // RFC 9965
    ];
    function isSpecialUse(hostname) {
      for (const name of SPECIAL_USE_DOMAINS) {
        if (hostname.endsWith(name) && (hostname.length === name.length || hostname.charCodeAt(hostname.length - name.length - 1) === 46)) {
          return true;
        }
      }
      return false;
    }
    __name(isSpecialUse, "isSpecialUse");
    function isValidAscii(code) {
      return code >= 97 && code <= 122 || code >= 48 && code <= 57 || code > 127;
    }
    __name(isValidAscii, "isValidAscii");
    function isValidHostname(hostname) {
      if (hostname.length > 255) {
        return false;
      }
      if (hostname.length === 0) {
        return false;
      }
      if (
        /*@__INLINE__*/
        !isValidAscii(hostname.charCodeAt(0)) && hostname.charCodeAt(0) !== 46 && // '.' (dot)
        hostname.charCodeAt(0) !== 95
      ) {
        return false;
      }
      let lastDotIndex = -1;
      let lastCharCode = -1;
      const len = hostname.length;
      for (let i = 0; i < len; i += 1) {
        const code = hostname.charCodeAt(i);
        if (code === 46) {
          if (
            // Check that previous label is < 63 bytes long (64 = 63 + '.')
            i - lastDotIndex > 64 || // Check that previous character was not already a '.'
            lastCharCode === 46 || // Check that the previous label does not end with '-' (RFC 1035 §2.3.1 LDH).
            // '_' is intentionally NOT restricted: DNS allows any octet (RFC 2181 §11) and
            // WHATWG URL does not treat '_' as a forbidden host code point.
            lastCharCode === 45
          ) {
            return false;
          }
          lastDotIndex = i;
        } else if (
          // A forbidden character in the label...
          !/*@__INLINE__*/
          (isValidAscii(code) || code === 45 || code === 95) || // ...or a '-' starting a label (the byte right after a '.'). A label must
          // not begin with a hyphen (RFC 1034 §3.5 / RFC 1035 §2.3.1 LDH, as amended
          // by RFC 1123 §2.1; cf. UTS #46 CheckHyphens). The first label is covered by
          // the leading-character guard above; mirrors the trailing-'-' rule below.
          code === 45 && lastCharCode === 46
        ) {
          return false;
        }
        lastCharCode = code;
      }
      return (
        // Check that last label is shorter than 63 chars
        len - lastDotIndex - 1 <= 63 && // Check that the last character is an allowed trailing label character.
        // Since we already checked that the char is a valid hostname character,
        // we only need to check that it's different from '-'.
        lastCharCode !== 45
      );
    }
    __name(isValidHostname, "isValidHostname");
    function setDefaultsImpl({ allowIcannDomains = true, allowPrivateDomains = false, detectIp = true, detectSpecialUse = false, extractHostname: extractHostname2 = true, mixedInputs = true, validHosts = null, validateHostname = true }) {
      return {
        allowIcannDomains,
        allowPrivateDomains,
        detectIp,
        detectSpecialUse,
        extractHostname: extractHostname2,
        mixedInputs,
        validHosts,
        validateHostname
      };
    }
    __name(setDefaultsImpl, "setDefaultsImpl");
    var DEFAULT_OPTIONS = (
      /*@__INLINE__*/
      setDefaultsImpl({})
    );
    function setDefaults(options) {
      if (options === void 0) {
        return DEFAULT_OPTIONS;
      }
      return (
        /*@__INLINE__*/
        setDefaultsImpl(options)
      );
    }
    __name(setDefaults, "setDefaults");
    function getSubdomain$1(hostname, domain) {
      if (domain.length === hostname.length) {
        return "";
      }
      return hostname.slice(0, -domain.length - 1);
    }
    __name(getSubdomain$1, "getSubdomain$1");
    function getEmptyResult() {
      return {
        domain: null,
        domainWithoutSuffix: null,
        hostname: null,
        isIcann: null,
        isIp: null,
        isPrivate: null,
        isSpecialUse: null,
        publicSuffix: null,
        subdomain: null
      };
    }
    __name(getEmptyResult, "getEmptyResult");
    function resetResult(result) {
      result.domain = null;
      result.domainWithoutSuffix = null;
      result.hostname = null;
      result.isIcann = null;
      result.isIp = null;
      result.isPrivate = null;
      result.isSpecialUse = null;
      result.publicSuffix = null;
      result.subdomain = null;
    }
    __name(resetResult, "resetResult");
    function parseImpl(url, step, suffixLookup2, partialOptions, result) {
      const options = (
        /*@__INLINE__*/
        setDefaults(partialOptions)
      );
      if (typeof url !== "string") {
        return result;
      }
      let urlIsValid = false;
      if (!options.extractHostname) {
        result.hostname = url;
      } else if (options.mixedInputs) {
        urlIsValid = isValidHostname(url);
        result.hostname = extractHostname(url, urlIsValid, options.validateHostname);
      } else {
        result.hostname = extractHostname(url, false, options.validateHostname);
      }
      if (options.detectIp && result.hostname !== null) {
        result.isIp = isIp(result.hostname);
        if (result.isIp) {
          return result;
        }
      }
      if (options.validateHostname && options.extractHostname && result.hostname !== null && // Skip the re-scan when `url` was already validated and extractHostname
      // returned it unchanged (same reference => identical string, still valid).
      !(urlIsValid && result.hostname === url) && // Skip the re-scan when extractHostname already validated the host inline
      // (a confirmed-valid simple authority — see extract-hostname.ts).
      !extractedHostnameValidated && !isValidHostname(result.hostname)) {
        result.hostname = null;
        return result;
      }
      if (step === 0 || result.hostname === null) {
        return result;
      }
      if (step === 5 && options.detectSpecialUse) {
        result.isSpecialUse = isSpecialUse(result.hostname);
      }
      suffixLookup2(result.hostname, options, result);
      if (step === 2 || result.publicSuffix === null) {
        return result;
      }
      result.domain = getDomain$1(result.publicSuffix, result.hostname, options);
      if (step === 3 || result.domain === null) {
        return result;
      }
      result.subdomain = getSubdomain$1(result.hostname, result.domain);
      if (step === 4) {
        return result;
      }
      result.domainWithoutSuffix = getDomainWithoutSuffix$1(result.domain, result.publicSuffix);
      return result;
    }
    __name(parseImpl, "parseImpl");
    function fastPathLookup(hostname, options, out) {
      if (!options.allowPrivateDomains && hostname.length > 3) {
        const last = hostname.length - 1;
        const c3 = hostname.charCodeAt(last);
        const c2 = hostname.charCodeAt(last - 1);
        const c1 = hostname.charCodeAt(last - 2);
        const c0 = hostname.charCodeAt(last - 3);
        if (c3 === 109 && c2 === 111 && c1 === 99 && c0 === 46) {
          out.isIcann = true;
          out.isPrivate = false;
          out.publicSuffix = "com";
          return true;
        } else if (c3 === 103 && c2 === 114 && c1 === 111 && c0 === 46) {
          out.isIcann = true;
          out.isPrivate = false;
          out.publicSuffix = "org";
          return true;
        } else if (c3 === 117 && c2 === 100 && c1 === 101 && c0 === 46) {
          out.isIcann = true;
          out.isPrivate = false;
          out.publicSuffix = "edu";
          return true;
        } else if (c3 === 118 && c2 === 111 && c1 === 103 && c0 === 46) {
          out.isIcann = true;
          out.isPrivate = false;
          out.publicSuffix = "gov";
          return true;
        } else if (c3 === 116 && c2 === 101 && c1 === 110 && c0 === 46) {
          out.isIcann = true;
          out.isPrivate = false;
          out.publicSuffix = "net";
          return true;
        } else if (c3 === 101 && c2 === 100 && c1 === 46) {
          out.isIcann = true;
          out.isPrivate = false;
          out.publicSuffix = "de";
          return true;
        }
      }
      return false;
    }
    __name(fastPathLookup, "fastPathLookup");
    var nodeFlags = /* @__PURE__ */ new Uint8Array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]);
    var edgeStart = /* @__PURE__ */ new Uint16Array([0, 0, 6, 13, 101, 106, 111, 115, 120, 129, 144, 151, 152, 153, 157, 166, 171, 188, 189, 202, 212, 226, 227, 263, 268, 288, 329, 356, 357, 504, 509, 513, 519, 534, 548, 552, 556, 603, 610, 617, 624, 632, 636, 648, 658, 668, 719, 729, 743, 748, 756, 757, 769, 779, 781, 788, 791, 798, 804, 809, 815, 821, 828, 836, 872, 878, 882, 899, 930, 946, 954, 956, 963, 1006, 1007, 1015, 1026, 1452, 1466, 1518, 1546, 1568, 1626, 1648, 1663, 1726, 1777, 1815, 1851, 1876, 2018, 2064, 2115, 2134, 2168, 2183, 2203, 2233, 2264, 2287, 2318, 2348, 2380, 2407, 2482, 2504, 2542, 2576, 2595, 2621, 2663, 2713, 2739, 2808, 2831, 2854, 2890, 2921, 2938, 2995, 3008, 3032, 3061, 3095, 3111, 3139, 3296, 3305, 3312, 3329, 3333, 3339, 3372, 3379, 3387, 3402, 3411, 3420, 3429, 3435, 3437, 3445, 3453, 3460, 3473, 3476, 3483, 3497, 3507, 3512, 3520, 3528, 3534, 3536, 3546, 3556, 3570, 3571, 3572, 3576, 3577, 3579, 3581, 3587, 3588, 3591, 3592, 3594, 3595, 3596, 4484, 4501,
    4510, 4521, 4528, 4531, 4539, 4554, 4609, 4762, 4767, 4780, 4791, 4798, 4806, 4813, 4821, 4823, 4834, 4840, 4847, 4855, 4863, 4902, 4907, 4908, 4914, 4920, 4929, 4940, 4945, 4948, 4955, 4970, 4983, 5005, 5016, 5026, 5038, 5117, 5129, 5140, 5143, 5144, 5146, 5149, 5152, 5163, 5165, 5223, 5229, 5233, 5255, 5256, 5261, 5340, 5344, 5350, 5356, 5362, 5380, 5391, 5396, 5402, 5406, 5412, 5418, 7026, 7027, 7028, 7035, 7037]);
    var edgeLength = /* @__PURE__ */ new Uint8Array([3, 3, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 8, 5, 5, 5, 5, 5, 3, 3, 5, 5, 9, 12, 19, 8, 19, 8, 11, 9, 9, 8, 7, 7, 6, 8, 9, 16, 10, 7, 7, 11, 8, 6, 6, 9, 7, 11, 7, 14, 4, 4, 4, 4, 4, 4, 10, 7, 6, 6, 6, 6, 10, 10, 6, 10, 10, 22, 11, 9, 10, 10, 10, 9, 10, 8, 7, 7, 7, 8, 21, 13, 11, 11, 9, 10, 9, 13, 10, 8, 8, 9, 12, 9, 7, 10, 7, 7, 13, 7, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 7, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 4, 3, 3, 3, 7, 4, 4, 4, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 8, 2, 2, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 2, 2, 5, 3, 3, 3, 3, 3, 3, 4, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 2, 5, 5, 3, 3, 3, 3, 3, 3, 5, 5, 6, 11, 10, 7, 7, 7, 4, 4, 4, 2, 7, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 7, 7, 7, 11, 7,
    6, 9, 6, 6, 8, 10, 8, 6, 8, 13, 4, 4, 4, 4, 4, 10, 8, 11, 8, 8, 8, 10, 10, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 10, 13, 7, 8, 7, 11, 8, 8, 6, 9, 8, 8, 6, 6, 6, 8, 8, 6, 6, 6, 6, 6, 9, 7, 6, 4, 4, 4, 4, 4, 4, 6, 6, 6, 9, 7, 8, 10, 8, 8, 2, 2, 3, 3, 3, 2, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 8, 15, 4, 4, 2, 3, 3, 3, 2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 10, 10, 10, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 4, 4, 3,
    3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 5, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 2, 2, 5, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 2, 5, 3, 3, 3, 3, 16, 4, 4, 6, 3, 3, 3, 3, 3, 3, 3, 3, 6, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 11, 10, 10, 10, 10, 10, 11, 10, 11, 10, 11, 10, 9, 9, 11, 3, 3, 3, 3, 3, 3, 2, 3, 4, 4, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 2, 2, 5, 5, 5, 5, 5, 3, 3, 5, 5, 5, 7, 7, 6, 6, 6, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 6, 8, 8, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 6, 9, 2, 2, 3, 3, 3, 3, 3, 4, 3, 3, 2, 2, 2, 2, 3,
    3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 8, 8, 6, 7, 4, 4, 4, 4, 4, 2, 2, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 15, 14, 5, 5, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 15, 22, 19, 17, 18, 18, 19, 21, 7, 16, 16, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 9, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 16, 11, 11, 7, 7, 7, 7, 17, 7, 8, 12, 15, 9, 19, 7, 19, 16, 21, 11, 12, 19, 14, 22, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 16, 16, 19, 24, 12, 7, 14, 7, 12, 7, 8, 10, 10, 13, 7, 12, 12, 7, 7, 10, 18, 15, 12, 16, 7, 14, 12, 17, 10, 16, 17, 12, 17, 25, 7, 7, 7, 13, 6, 9, 6, 9, 18, 6, 6,
    11, 20, 10, 6, 6, 6, 6, 6, 6, 6, 17, 6, 6, 6, 15, 6, 6, 6, 6, 6, 8, 14, 11, 12, 15, 13, 19, 17, 21, 7, 18, 8, 13, 13, 8, 12, 8, 6, 6, 13, 6, 15, 15, 16, 6, 6, 16, 6, 6, 6, 14, 6, 18, 6, 6, 6, 17, 18, 9, 13, 15, 8, 19, 8, 15, 15, 18, 14, 16, 4, 4, 4, 4, 4, 4, 4, 4, 6, 11, 11, 6, 21, 23, 12, 17, 12, 11, 14, 13, 22, 15, 15, 11, 12, 14, 12, 7, 12, 8, 14, 12, 18, 10, 8, 16, 19, 17, 12, 14, 15, 8, 9, 19, 17, 12, 13, 13, 15, 18, 13, 23, 24, 23, 21, 17, 24, 8, 21, 8, 14, 14, 16, 14, 8, 8, 15, 20, 8, 19, 21, 9, 8, 13, 12, 13, 15, 8, 11, 9, 9, 8, 11, 8, 21, 14, 21, 15, 15, 13, 7, 19, 7, 7, 7, 7, 7, 16, 12, 17, 18, 7, 7, 11, 11, 7, 9, 9, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 10, 10, 7, 9, 7, 7, 7, 6, 8, 6, 6, 6, 6, 6, 6, 6, 7, 6, 8, 6, 6, 9, 7, 7, 7, 4, 4, 4, 4, 4, 4, 4, 4, 8, 9, 8, 7, 8, 7, 8, 10, 7, 5, 5, 5, 5, 5, 5, 3, 9, 7, 7, 8, 6, 6, 6, 6, 6, 6, 6, 6, 9, 6, 6, 9, 11, 13, 7, 8, 9, 9, 5, 5, 5, 7, 8, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 7, 10, 9, 10, 7, 8, 5, 5, 5,
    5, 5, 5, 7, 7, 9, 8, 7, 7, 6, 6, 6, 6, 6, 6, 10, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 9, 10, 4, 4, 4, 4, 8, 7, 7, 10, 10, 9, 8, 8, 15, 9, 8, 8, 8, 8, 8, 9, 10, 9, 10, 7, 8, 13, 5, 5, 5, 5, 5, 3, 3, 7, 7, 8, 6, 6, 6, 4, 4, 11, 9, 7, 8, 9, 10, 7, 5, 5, 5, 5, 5, 3, 3, 7, 6, 6, 13, 7, 9, 8, 7, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 7, 8, 7, 8, 13, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 6, 6, 6, 6, 7, 6, 7, 6, 6, 9, 7, 4, 4, 4, 4, 4, 4, 4, 7, 8, 7, 8, 9, 8, 8, 8, 7, 10, 7, 8, 5, 5, 5, 5, 5, 5, 5, 5, 3, 7, 7, 7, 7, 9, 7, 10, 9, 6, 6, 6, 6, 6, 8, 8, 6, 6, 6, 7, 6, 6, 6, 9, 9, 4, 4, 13, 7, 10, 9, 9, 12, 7, 8, 8, 10, 8, 8, 8, 8, 8, 8, 5, 5, 5, 5, 3, 7, 7, 11, 7, 9, 8, 8, 6, 6, 10, 6, 8, 8, 8, 6, 7, 6, 6, 12, 4, 4, 4, 4, 4, 4, 4, 4, 4, 9, 8, 8, 16, 8, 9, 8, 7, 5, 5, 5, 5, 5, 3, 3, 7, 7, 7, 10, 15, 8, 9, 8, 9, 9, 6, 6, 6, 6, 6, 6, 7, 4, 8, 7, 8, 8, 7, 8, 11, 8, 5, 5, 5, 5, 5, 3, 7, 7, 6, 11, 16, 7, 6, 4, 4, 4, 4, 9, 9, 8, 8, 8, 13, 12, 8, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
    11, 7, 8, 8, 9, 13, 7, 7, 7, 9, 8, 8, 9, 12, 7, 12, 7, 12, 8, 7, 10, 12, 9, 9, 6, 6, 8, 8, 6, 6, 6, 6, 6, 6, 6, 9, 8, 9, 11, 8, 6, 6, 6, 6, 6, 12, 7, 6, 6, 6, 9, 7, 7, 6, 6, 6, 6, 6, 11, 9, 6, 6, 6, 6, 6, 7, 9, 4, 4, 4, 4, 4, 4, 4, 4, 9, 9, 9, 9, 7, 7, 7, 7, 7, 11, 7, 7, 8, 8, 8, 8, 8, 8, 9, 8, 9, 9, 7, 7, 11, 11, 7, 12, 8, 8, 8, 8, 8, 7, 8, 8, 8, 8, 8, 13, 12, 8, 8, 8, 8, 7, 7, 7, 9, 5, 5, 5, 5, 5, 5, 5, 3, 3, 7, 7, 11, 7, 8, 8, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 10, 11, 6, 7, 9, 4, 4, 4, 4, 4, 4, 9, 9, 8, 9, 8, 8, 8, 7, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 11, 7, 7, 7, 9, 6, 6, 11, 8, 10, 6, 6, 6, 12, 8, 8, 7, 6, 6, 8, 7, 4, 4, 4, 4, 4, 4, 4, 4, 9, 10, 9, 9, 8, 10, 9, 11, 8, 5, 5, 5, 7, 6, 6, 8, 7, 4, 4, 4, 4, 8, 7, 7, 8, 7, 8, 8, 5, 5, 5, 5, 7, 7, 8, 8, 8, 6, 6, 6, 6, 6, 10, 8, 9, 13, 6, 7, 6, 6, 8, 7, 8, 4, 4, 4, 4, 11, 8, 8, 8, 10, 5, 5, 8, 7, 8, 13, 8, 7, 6, 8, 6, 9, 7, 8, 7, 5, 5, 5, 5, 5, 5, 3, 3, 7, 8, 9, 6, 4, 8, 10, 10, 8, 12, 9, 13, 2, 7, 5, 5, 5, 5, 5, 7, 7, 10, 6, 6,
    6, 6, 6, 6, 6, 8, 4, 4, 9, 8, 8, 8, 14, 8, 8, 8, 9, 8, 5, 5, 5, 5, 5, 3, 3, 9, 6, 6, 6, 6, 10, 12, 6, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 11, 8, 7, 8, 8, 8, 5, 5, 3, 3, 3, 3, 7, 7, 6, 8, 6, 8, 11, 7, 6, 6, 6, 7, 4, 8, 11, 9, 10, 5, 5, 5, 3, 3, 3, 7, 7, 8, 9, 8, 15, 9, 6, 6, 6, 6, 6, 6, 11, 11, 4, 4, 4, 4, 4, 7, 9, 9, 10, 8, 7, 5, 5, 5, 5, 5, 5, 3, 3, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 9, 7, 4, 4, 4, 4, 4, 9, 9, 8, 8, 10, 13, 5, 5, 5, 3, 17, 7, 7, 7, 7, 7, 8, 6, 8, 13, 6, 6, 6, 6, 6, 6, 6, 6, 4, 4, 4, 9, 10, 8, 8, 8, 5, 5, 5, 5, 3, 7, 7, 7, 8, 8, 6, 6, 6, 8, 8, 8, 9, 10, 8, 4, 8, 10, 9, 8, 8, 8, 9, 13, 10, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 7, 8, 9, 9, 7, 7, 7, 10, 9, 9, 8, 9, 8, 8, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 12, 6, 6, 6, 6, 6, 6, 6, 6, 6, 12, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 11, 8, 8, 9, 9, 10, 8, 9, 7, 7, 5, 5, 5, 5, 5, 5, 3, 7, 8, 7, 6, 6, 8, 6, 6, 10, 4, 7, 8, 9, 12, 8, 7, 7, 5, 5, 5, 5, 5, 5, 3, 3, 7, 14, 7, 9, 8, 8, 6, 6, 8, 12, 12, 6, 6, 7, 7, 10, 4, 4, 4, 4, 4, 9, 9,
    14, 9, 13, 8, 7, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 7, 7, 7, 8, 6, 6, 6, 6, 6, 6, 12, 6, 6, 6, 6, 4, 4, 9, 9, 8, 8, 11, 7, 7, 7, 5, 5, 5, 3, 9, 8, 6, 6, 7, 4, 4, 4, 4, 4, 4, 8, 8, 11, 5, 5, 5, 7, 7, 7, 9, 6, 6, 6, 6, 6, 6, 9, 8, 4, 4, 4, 4, 7, 12, 9, 8, 8, 8, 7, 10, 10, 5, 5, 5, 5, 5, 5, 5, 3, 11, 14, 8, 7, 8, 8, 6, 6, 6, 6, 6, 8, 7, 6, 6, 6, 7, 6, 8, 9, 4, 4, 4, 7, 8, 9, 7, 9, 7, 7, 9, 8, 5, 5, 5, 5, 5, 5, 5, 5, 5, 11, 3, 9, 7, 7, 12, 14, 8, 6, 6, 12, 11, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 15, 7, 4, 4, 4, 16, 9, 9, 9, 8, 9, 9, 9, 9, 9, 8, 8, 8, 13, 11, 8, 5, 5, 5, 5, 3, 7, 6, 6, 8, 8, 8, 6, 6, 7, 10, 7, 4, 4, 4, 4, 9, 7, 8, 7, 7, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 7, 7, 7, 9, 6, 6, 6, 6, 6, 8, 8, 7, 7, 9, 6, 6, 6, 7, 6, 6, 6, 6, 6, 15, 4, 4, 4, 4, 4, 8, 8, 7, 8, 12, 9, 8, 8, 8, 8, 8, 9, 8, 8, 10, 8, 8, 8, 8, 16, 9, 10, 5, 5, 5, 5, 5, 9, 7, 6, 8, 9, 4, 4, 4, 4, 4, 7, 8, 8, 8, 9, 8, 11, 10, 5, 5, 5, 5, 3, 7, 8, 6, 6, 6, 6, 6, 8, 6, 6, 6, 6, 4, 12, 10, 12, 7, 7, 7, 7, 7, 7, 7, 5,
    5, 5, 5, 3, 3, 7, 7, 10, 8, 9, 7, 6, 10, 7, 6, 6, 4, 4, 8, 9, 7, 9, 9, 9, 9, 8, 8, 8, 8, 10, 5, 5, 5, 5, 5, 5, 8, 7, 6, 6, 6, 10, 6, 7, 10, 7, 4, 4, 4, 4, 4, 4, 4, 12, 9, 10, 7, 7, 10, 8, 10, 5, 12, 9, 6, 6, 6, 6, 6, 7, 6, 4, 4, 4, 10, 9, 9, 8, 7, 7, 5, 5, 5, 5, 5, 5, 3, 3, 13, 7, 7, 9, 7, 7, 7, 8, 9, 9, 7, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 13, 9, 15, 15, 4, 4, 4, 4, 4, 10, 10, 9, 8, 9, 8, 8, 9, 7, 8, 7, 8, 5, 5, 7, 6, 6, 6, 4, 4, 4, 7, 8, 11, 8, 5, 5, 5, 5, 5, 5, 5, 7, 6, 6, 6, 6, 6, 6, 9, 11, 10, 7, 4, 4, 4, 9, 8, 8, 5, 5, 5, 5, 5, 9, 9, 6, 6, 6, 6, 6, 6, 6, 9, 9, 4, 4, 4, 4, 8, 8, 8, 9, 9, 8, 8, 8, 13, 2, 7, 5, 5, 5, 5, 5, 5, 9, 9, 6, 6, 6, 6, 10, 8, 8, 8, 6, 6, 6, 4, 4, 9, 8, 10, 8, 9, 8, 8, 8, 9, 8, 8, 5, 3, 3, 3, 11, 6, 6, 6, 7, 6, 6, 6, 4, 4, 9, 8, 5, 5, 5, 5, 5, 3, 11, 8, 6, 6, 6, 6, 6, 9, 7, 4, 4, 14, 10, 9, 8, 12, 8, 8, 8, 11, 15, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 11, 11, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 11, 7, 7, 11, 11, 7, 10, 7, 7, 9, 9, 9, 9, 7, 10, 13, 8, 8, 8, 11, 10, 10, 11, 14, 14, 6, 6, 6, 11, 8, 11, 11, 6, 6, 10, 6, 10, 6, 11, 11, 9, 7, 11, 10, 11, 7, 11, 4, 4, 4, 4, 4, 8, 9, 10, 10, 11, 10, 7, 11, 14, 10, 9, 9, 8, 11, 8, 8, 11, 11, 10, 10, 9, 11, 10, 11, 12, 8, 10, 8, 11, 11, 11, 8, 7, 2, 2, 2, 2, 2, 2, 2, 4, 4, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 3, 3, 3, 3, 3, 8, 6, 4, 4, 4, 11, 7, 11, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 3, 8, 7, 7, 8, 4, 7, 7, 7, 9, 7, 8, 9, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 2, 2, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 3, 3, 3, 5, 2, 4, 2, 2, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 2, 3, 3, 3, 3, 3, 3, 6, 4, 4, 4, 4, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 6, 4, 4, 4, 4, 2, 2, 3,
    3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 2, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 4, 5, 3, 3, 3, 3, 3, 5, 4, 4, 4, 1, 3, 3, 3, 3, 3, 3, 3, 4, 4, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 2, 5, 5, 12, 2, 5, 5, 5, 5, 2, 2, 5, 5, 12, 9, 5, 2, 2, 9, 5, 5, 12, 12, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 9, 5, 8, 8, 9, 5, 5, 5, 8, 19, 7, 16, 15, 14, 9, 9, 9, 9, 7, 11, 11, 11, 14, 10, 10, 5, 5, 5, 5, 5, 5, 5, 5, 5, 15, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 9, 9, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 14, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 15, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 12, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 9, 9, 12, 9, 9, 12, 12, 12, 15, 7, 11, 7, 11, 18, 8, 18, 15, 18, 12, 14, 12, 8, 8, 8, 8, 9, 9, 9, 12, 7, 10,
    10, 8, 8, 12, 12, 12, 7, 12, 12, 9, 7, 7, 7, 7, 7, 8, 15, 12, 9, 10, 10, 7, 10, 10, 13, 11, 10, 9, 22, 11, 9, 8, 8, 8, 8, 8, 13, 18, 13, 9, 15, 19, 9, 7, 7, 10, 7, 7, 7, 11, 8, 13, 17, 7, 7, 10, 10, 10, 7, 20, 16, 7, 7, 7, 7, 11, 21, 12, 12, 13, 11, 14, 16, 8, 8, 13, 11, 9, 7, 7, 13, 7, 7, 14, 15, 15, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 13, 10, 18, 6, 6, 6, 6, 6, 6, 6, 6, 6, 11, 8, 8, 12, 12, 11, 11, 8, 12, 9, 9, 9, 13, 13, 9, 9, 9, 9, 9, 9, 10, 12, 6, 6, 6, 6, 17, 11, 7, 7, 7, 7, 14, 14, 12, 6, 7, 7, 6, 6, 15, 10, 13, 10, 6, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 13, 9, 9, 15, 13, 6, 12, 12, 6, 19, 11, 10, 7, 7, 16, 8, 19, 17, 9, 9, 9, 9, 9, 6, 6, 6, 10, 8, 16, 8, 6, 6, 9, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 8, 6, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 14, 6, 6, 6, 6, 20, 6, 9, 6, 9, 9, 9, 6, 9, 8, 8, 12, 9, 8, 8, 8, 7, 8, 12, 7, 8, 8, 8, 6, 8, 6, 6, 6, 6, 6, 6, 6, 9, 8, 8, 6, 6, 13, 9, 12, 13, 12, 14, 13, 12, 11, 11, 6, 8, 8, 8, 6, 13, 12, 11, 11, 12, 6, 11, 12, 11, 13, 4,
    4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 15, 6, 6, 6, 6, 6, 6, 6, 13, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 6, 18, 6, 12, 13, 13, 13, 9, 10, 15, 9, 12, 6, 6, 6, 6, 6, 6, 6, 6, 9, 15, 10, 9, 10, 13, 9, 19, 8, 18, 17, 10, 10, 8, 8, 6, 6, 6, 6, 6, 6, 10, 14, 8, 16, 16, 9, 8, 15, 8, 8, 10, 12, 14, 7, 7, 8, 8, 7, 7, 7, 7, 8, 13, 13, 11, 9, 9, 9, 12, 10, 17, 8, 11, 9, 7, 7, 14, 8, 14, 14, 7, 7, 7, 7, 7, 7, 14, 7, 7, 7, 7, 7, 10, 10, 8, 14, 7, 7, 7, 7, 8, 8, 8, 8, 8, 17, 9, 15, 7, 8, 12, 7, 9, 14, 7, 7, 7, 9, 13, 8, 14, 7, 16, 18, 13, 15, 14, 12, 13, 10, 15, 9, 7, 7, 7, 10, 13, 15, 15, 9, 9, 9, 9, 19, 11, 11, 11, 13, 8, 8, 8, 8, 7, 12, 19, 17, 9, 9, 13, 7, 7, 7, 9, 7, 7, 7, 12, 13, 15, 10, 8, 8, 14, 15, 12, 13, 13, 8, 12, 14, 7, 11, 7, 14, 15, 13, 12, 8, 8, 8, 8, 11, 13, 15, 15, 8, 13, 12, 8, 8, 8, 13, 10, 16, 14, 11, 8, 8, 12, 12, 9, 15, 15, 12, 12, 13, 8, 8, 9, 12, 13, 9, 8, 8,
    8, 8, 8, 8, 8, 8, 8, 8, 8, 11, 12, 11, 14, 7, 13, 13, 13, 12, 18, 16, 7, 12, 11, 10, 10, 15, 9, 9, 9, 21, 7, 7, 7, 11, 16, 8, 8, 11, 11, 7, 7, 7, 7, 7, 19, 7, 7, 7, 7, 7, 7, 7, 7, 7, 12, 8, 9, 12, 14, 11, 9, 9, 9, 22, 12, 2, 2, 5, 5, 3, 3, 3, 3, 3, 3, 6, 6, 4, 4, 4, 12, 10, 2, 3, 3, 3, 3, 3, 3, 3, 6, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 6, 6, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 9, 8, 2, 2, 8, 7, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 8, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 7, 11, 7, 8, 9, 9, 7, 7, 7, 10, 7, 7, 10, 9, 10, 6, 6, 6, 15, 7, 8, 9, 9, 8, 6, 6, 9, 6, 8, 13, 9, 7, 6, 6, 6, 6, 12, 6, 7, 6, 7, 6, 6, 10, 10, 7, 6, 6, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 6, 7, 7, 9, 6, 6, 6, 9, 9, 8, 9, 10, 9, 8, 12, 7, 7, 8, 7,
    10, 11, 9, 10, 7, 7, 7, 9, 10, 10, 8, 12, 9, 7, 8, 8, 10, 7, 7, 8, 9, 7, 7, 8, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 3, 3, 3, 3, 3, 3, 3, 3, 6, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 3, 4, 3, 4, 2, 2, 5, 3, 3, 3, 3, 3, 4, 4, 4, 2, 2, 2, 3, 3, 3, 2, 2, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 5, 5, 3, 3, 5, 6, 15, 4, 6, 7, 14, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 2, 3, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 2, 5, 3, 3, 3, 3, 3, 9, 9, 8, 7, 3, 3, 3, 3, 3, 2, 2, 3, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 5, 3, 3, 3, 3, 3, 3, 3, 3, 6, 7, 4, 4, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 5, 3, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 5,
    5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 7, 8, 8, 7, 13, 12, 10, 10, 8, 8, 7, 7, 9, 12, 11, 6, 6, 8, 8, 9, 7, 7, 7, 10, 15, 10, 4, 4, 4, 4, 4, 11, 8, 8, 9, 7, 9, 14, 14, 12, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 6, 2, 3, 3, 2, 2, 3, 3, 6, 4, 2, 3, 3, 2, 5, 3, 3, 3, 3, 3, 3, 3, 9, 9, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3, 2, 2, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 4, 4, 4, 3, 2, 3, 3, 3, 3, 2, 2, 2, 2, 5, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 12, 9, 8, 8, 9, 8, 6, 17, 6, 6, 6, 8, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 4, 4, 8, 8, 9, 9, 9, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 7, 8, 8, 8, 10, 7, 13, 10, 8, 9, 10, 13, 11, 11, 8, 8, 9, 8, 9, 9, 10, 10, 10, 11, 10, 10, 13, 13, 16, 15, 11, 12, 2, 2, 2, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 6, 7, 2, 2, 3, 3, 3, 3, 3, 3,
    3, 3, 4, 2, 2, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 4, 4, 6, 6, 6, 6, 5, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 9, 11, 6, 10, 9, 12, 7, 7, 11, 14, 9, 7, 12, 3, 3, 7, 12, 11, 12, 7, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 9, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 11, 5, 5, 5, 5, 5, 5, 5, 5, 11, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 3, 10, 3, 3, 3, 11, 3, 5, 9, 11, 8, 12, 14, 9, 7, 8, 7, 7, 11, 11, 7, 7, 10, 9, 8, 10, 9, 7, 7, 7, 7, 7, 7, 8, 8, 7, 11, 8, 8, 8, 7, 7, 10, 8, 7, 13, 12, 7, 17, 10, 8, 8, 11, 7, 11, 11, 14, 7, 11, 7, 8, 6, 9, 20, 8, 7, 9, 16, 7, 10, 6, 11, 10, 8, 9, 7, 16, 11, 11, 9, 8, 9, 8, 8, 8, 11, 8, 15, 8, 8, 9, 7, 8, 8, 11, 10, 7, 5, 7, 10, 10, 15, 7, 7, 7, 8, 7, 8, 8, 10, 11, 10, 10, 10, 11, 11, 7, 8, 6, 8, 8, 8, 10, 6, 8, 6, 6, 7, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 16, 6, 15, 6, 7, 11, 11, 7, 9, 10, 11, 13, 10, 6, 16, 8, 10, 12, 11, 6, 6, 6, 6, 6, 6, 6, 10, 6, 10, 7, 7, 7, 7, 11, 7, 11, 6, 6, 6, 6, 6, 6, 17, 7, 7, 6, 6, 12, 22, 6, 6, 6, 6, 6, 8, 6, 6, 6, 6, 7, 6, 6, 5, 6, 6, 8, 11, 6, 9, 14,
    11, 9, 11, 7, 7, 8, 6, 6, 6, 8, 10, 9, 6, 6, 6, 6, 9, 7, 6, 6, 6, 6, 6, 15, 6, 4, 4, 4, 6, 4, 17, 8, 11, 6, 6, 9, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 6, 6, 6, 6, 10, 6, 10, 6, 6, 6, 6, 12, 8, 6, 6, 6, 6, 6, 6, 6, 6, 6, 9, 6, 6, 6, 6, 18, 6, 6, 6, 8, 9, 10, 7, 8, 9, 10, 11, 7, 13, 6, 8, 8, 6, 6, 14, 7, 7, 7, 7, 10, 7, 14, 9, 6, 6, 9, 15, 9, 7, 14, 6, 11, 14, 13, 7, 12, 8, 7, 7, 7, 7, 7, 12, 7, 10, 9, 16, 6, 8, 6, 5, 17, 6, 8, 10, 4, 6, 4, 10, 15, 17, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
    4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 8, 4, 4, 11, 7, 4, 4, 7, 7, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 19, 17, 6, 10, 11, 6, 6, 6, 6, 18, 6, 6, 11, 4, 4, 4, 5, 6, 6, 6, 9, 5, 6, 4, 6, 6, 4, 6, 6, 6, 6, 10, 6, 6, 4, 6, 6, 10, 6, 10, 6, 6, 6, 6, 11, 6, 6, 10, 6, 6, 8, 6, 6, 6, 8, 6, 11, 4, 11, 9, 10, 9, 11, 4, 8, 4, 11, 12, 7, 9, 8, 6, 7, 7, 8, 12, 12, 11, 13, 10, 11, 7, 7, 7, 9, 7, 11, 10, 7, 7, 7, 16, 11, 10, 11, 17, 9, 9, 8, 8, 7, 7, 7, 9, 7, 7, 7, 14, 7, 13, 9, 11, 10, 14, 10, 10, 12, 11, 10, 7, 10, 5, 14, 8, 8, 8, 9, 7, 8, 7, 7, 9, 8, 7, 8, 7, 7, 7, 7, 7, 7, 7, 11, 8, 10, 8, 7, 8, 14, 11, 8, 9, 9, 9, 8, 24, 10, 10, 12, 7, 7, 15, 11, 8, 8, 12, 11, 8, 9, 9, 7, 8, 9, 10, 11, 10, 11, 7, 12, 7, 7, 11, 9, 8, 14, 13, 12, 8, 11, 10, 8, 8, 7, 7, 14, 9, 10, 8, 9, 11, 7, 14, 8, 8, 13, 8, 8, 12, 7, 10, 14, 14, 11, 9, 10, 9, 9, 7, 7, 11, 11, 13, 9, 13, 5, 5, 5, 7, 9, 5, 11, 12, 14, 8, 7, 7, 11, 10, 9, 7, 8, 8, 7, 10, 11, 11, 5, 5,
    7, 5, 5, 5, 7, 7, 15, 7, 7, 8, 7, 15, 12, 12, 10, 7, 8, 7, 11, 7, 7, 7, 23, 11, 8, 8, 11, 10, 7, 8, 11, 7, 19, 7, 7, 6, 9, 9, 9, 11, 3, 4, 7, 8, 6, 6, 4, 10, 8, 2, 2]);
    var edgeChild = /* @__PURE__ */ new Uint16Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 82, 93, 81, 113, 87, 79, 110, 97, 78, 83, 90, 118, 99, 100, 0, 0, 0, 0, 108, 112, 0, 0, 27, 0, 106, 84, 117, 85, 88, 95, 109, 0, 0, 27, 104, 102, 0, 0, 0, 0, 0, 0, 120, 94, 27, 0, 122, 0, 0, 27, 101, 0, 80, 0, 103, 0, 0, 124, 91, 0, 0, 0, 116, 0, 27, 111, 107, 105, 86, 115, 0, 27, 0, 0, 0, 119, 0, 0, 0, 0, 0, 98, 0, 27, 121, 0, 0, 0, 0, 123, 0,
    0, 0, 0, 96, 0, 92, 0, 0, 0, 89, 114, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 0, 156, 156, 156, 156, 156, 156, 156, 0, 156, 156,
    156, 156, 156, 156, 156, 156, 0, 156, 156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 161, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 165, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 164, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 0, 0, 168, 163, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 162, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 166, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 211, 0, 213, 212, 211, 211, 211, 211, 211, 215, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 216, 213, 211, 211, 213, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 211, 212, 211, 211, 211, 211, 211, 217, 211, 211, 211, 211, 211, 211,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 20, 53, 68, 0, 191, 0, 2, 21, 0, 46, 54, 11, 55, 126, 140, 0, 173, 186, 192, 221, 1, 0, 1, 32, 133, 138, 151, 208, 0, 172, 185, 190, 229, 0, 11, 4, 0, 153, 174, 0, 0, 22, 0, 5, 55, 47, 1, 154, 141, 4, 27, 222, 0, 209, 69, 143, 0, 1, 34, 58, 178, 4, 11, 0, 71, 27, 128, 27, 171, 7, 4, 35, 31, 41, 0, 230, 0, 0, 74, 0, 19, 4, 4, 45, 0, 1, 152, 31,
    139, 1, 0, 4, 0, 4, 56, 0, 4, 201, 175, 193, 0, 155, 127, 50, 57, 6, 23, 33, 223, 0, 129, 72, 64, 144, 36, 4, 59, 195, 179, 224, 203, 77, 74, 169, 4, 25, 37, 8, 0, 43, 187, 196, 1, 183, 198, 205, 0, 13, 4, 49, 61, 76, 66, 41, 11, 0, 0, 41, 16, 39, 0, 62, 67, 0, 145, 0, 51, 0, 24, 202, 0, 134, 142, 63, 27, 0, 27, 0, 210, 194, 176, 60, 0, 27, 130, 125, 0, 0, 0, 1, 199, 0, 40, 0, 146, 136, 189, 11, 206, 231, 29, 41, 17, 0, 132, 147, 204, 0, 180, 4, 52, 27, 38, 28, 9, 127, 11, 4, 131, 75, 65, 4, 218, 188, 197, 182, 0, 48, 4, 11, 135, 4, 0, 11, 148, 0, 11, 219, 184, 1, 137, 149, 41, 31, 30, 42, 220, 207, 200, 170, 150, 1, 44, 11, 31, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 235, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 232, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 234, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 228, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 238, 238, 238, 238, 238, 238, 238, 237, 239]);
    var labelText = "orgmilcomnetedugovaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetofforgcomnetcoorgcomnetcommuneedogpbcoitgvorgedugovsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovsthaccogvorwasan\
tqldvicactnswtascatholicwasaqldvictasidwasantozqldorgcomvicasnactnetedugovnswtasconfcomcopporgmilcompronetintedugovbiznameinfocotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfoac5476103298edgfacbmlonihkjutwvqpsryxzcoororgcomeducoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalcepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantama\
riacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacublogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoaccoorgnetgovofmilcomgovcoorgcomnetedugovpenfnlabnbmbgcbcqconntnuyksknsedaccogoororgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcocomnetgovgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dxn--io0a7ixn--od0algorgmilcomnomnetedugovedsaacficogoorinforgcomgobnatneteduidorgcomnetintedunomepublorgcomnetedutmacltdorgmilcompronetgovbizpresseklogessldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxchefprofmktgpsictechinfoarqtcontdentrrpppsiqmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfoorgcomnomgobeduo\
rgcomnetedugovbiznameinfoalandidacorgmilcompronetedugovbiznameinfotmgretaprdcomnomccihuissier-justiceassogouvavouesedugovorgcompvtnetedugovschoolcoorgnetorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduacorgcomnetedugovorgcomnetedumobiassoindorgmilcomgobneteduorgcomwebnetedugovguaminfo教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人orgcomneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduizcomnamefrompersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlanacaicogoormyᬩᬮᬶmilwebschnetkopbizdesaponpesxn--9tfkyaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamacaicniocoukuptverdruscsdelhiindorgmilcomnicfingenpronetintedugovresbizbiharinternetbusinesstravelgujaratfirminfopostbankcoopeucoorgmilcomnomnetedugovidaccoo\
rgschnetgovxn--mgba3a4f16axn--mgba3a4fraايرانایرانlaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettatrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaper\
ugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbal\
san-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisalodiastibaricomonaplesforlicesenaalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-\
andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-mediosiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriotrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentofmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikat\
suhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechiz\
eneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsut\
akayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohab\
oroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegata\
yamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinon\
ishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamim\
atashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashih\
arashimokitayamanosegawayoshinoyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihan\
nansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawaryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakag\
iunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashi\
murayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuuraoeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisa\
toyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dxn--vgu402c北海道ehimeiwatechibashigagunmaakitaosakakochiaichifukuihyogotokyokyotomie神奈川鹿児島和歌山xn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimaokinawaxn--8pvr4uxn--0trq7p7nnkawasakinagasakimiyazakixn--8ltr62kxn--klty5xxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamakagawanagoyaxn--2m4a15eyamagataxn--elqq16hxn--pssu33lsendaimiyagixn--rht27zaomorixn--djty4knaganoxn--f6qx53axn--5js045dyamanashiibarakixn--1lqs71dxn--c3s14mxn--qqqt11mtochigixn--5rtq34kkobesagaoitanaragifushizuokaxn--rht3dkitakyushuxn--rht61exn--klt787dxn--kltx9atottorixn--5rtp49cxn--d5qv7z876cxn--kbrq7oxn--4pvxsxn--1ctwokumamotoxn--tor131oyokohamawakayamaxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchixn--4it797kxn--uisz3gxn--zbx025dxn--7t0a26\
4ckanagawaxn--6orx2rishikawaxn--ntsq17gxn--mkru45ixn--32vp30hhokkaidoshimanemeneacsccogoormobiinfoorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaegumilchungnamjeonnamjeonbukgyeonggijejuincheondaejeongangwongyeongbukgwangjuchungbukgyeongnamindorgcomembnetedugovorgcomnetintedugovperinfoachotelltdorgcomwebsocschngonetintedugrpgovassnacsccoorgnetedugovbizinfoidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoaccoorgnetedugovitsprivcoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgedugovaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovnomassostorecomwebrecnetperotherfirminfoartsiorgmilcomschnetedugovnamemobiacincoorgmilcomnomwebgobnetintedubizinfogsnesosvalervålerxn--\
vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåålaahavaofsfvfhlolnlalrlhmfmtmahstntbuåstrmreigersundgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landxn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskife\
tvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgadavvenjargaxn--bearalvhki-y4agjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjá\
rgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátosterøyinderøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znaaudnedalnlebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangerkarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljon\
dalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduhordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikenittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold\
-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlifreibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--\
vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfea\
sta-s4acvossevangenxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikaxn--srfold-byaaskvollxn--rs\
kog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-graaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsaparliamentcomedorgcompronetedugovmuseumacmedsldingorgcomnomgobaboneteduorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpcpruszkowostrodakartuzyopolegminamediaustkazgoraj\
goraolawailawalomzawloclradombytomjaworznotargilubinkoninzagankutnokepnonakloczestsanokturekslasksklepzarowlukowaidorgmilrelcomnomatmgsmneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawieclegnicarawa-mazbydgoszczwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinszkolawarmiamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelzachpomormielecszczecinnieruchomosciwalbrzychlezajskbedzinwielunmielnooleckostarachowicepowiatwroclawrybniksuwalkileborkslupskostrowwlkptarnobrzegtourismwegrowglogowpilanysamailinfoagroautoshopprivlapypiszmazurypulawyskoczowrzeszowpomorskiekaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicejelenia-gorawolominkarpacznowarudaczeladzkonskowolaswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicelimanowaaugustowkobierzyceopocznognieznoszczytnokolobrzegpodhaleklodzkostargardcoorgnetedugovacorgcomproestnetedugovbiznameisla\
profinforechtmedaaaacacpaenglawjurbaravocatacctorgcomsecplonetedugovorgcomnetintedugovnomepublorgmilcomnetedugovcooporgmilcomschnetedugovnamecomassotmntstoreorgcomnomrecwwwfirminfoartsacincoorgedugovaccoorgmilnetgovcoopmedorgcompubschnetedugovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppbrandpartiorgfhvpresslanbibkommunalforbundfhskkomvuxkomforbnaturbruksgymnorgmilcomnetgovorgorgcomartedugouvunivmeorgcomnetedugovmecoorgcomschnetedugovbizcostoreorgmilcomneteduembaixadaconsuladoprincipesaotomeredorgcomgobeduaccoorgacmiincogoornetaccogoorgmilcomwebnicnetintedugovbiznametestpersoindorgcomfinnatnetgovensmincomtourismintlinfonctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfoorgmilcomneteduidvgovgameclubebizmeneacsccogotvorhotelmilmobiinfoodteiflgplkmsmsbkhincndnvnztltmkckzpdprvcvkvlvcrkrksuzchernovtsyrivneyaltaodesavolynrovnolutskorgcomnetedugovvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhor\
odkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovmeaccoltdorgplcschnetgovnhspolicecck12libcccclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12idmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnorgmilcomgubneteducoorgcomnetiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnetidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangqua\
ngngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3atmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoaccoorgmilgovакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwp\
wtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбел\
мкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063\
axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4g\
brimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionboston\
nortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenike\
likecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1\
aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3\
hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمرا\
هpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp";
    var rulesRoot = 236;
    var exceptionsRoot = 240;
    var ICANN = 1;
    var numberOfNodes = nodeFlags.length;
    var numberOfEdges = edgeLength.length;
    var edgeOffset = new Uint32Array(numberOfEdges);
    var edgeHash = new Uint32Array(numberOfEdges);
    var wildcardEdge = new Int32Array(numberOfNodes).fill(-1);
    for (let node = 0, offset = 0; node < numberOfNodes; node += 1) {
      for (let edge = edgeStart[node]; edge < edgeStart[node + 1]; edge += 1) {
        edgeOffset[edge] = offset;
        const end = offset + edgeLength[edge];
        let hash = 5381;
        for (let i = end - 1; i >= offset; i -= 1) {
          hash = hash * 33 ^ labelText.charCodeAt(i);
        }
        edgeHash[edge] = hash >>> 0;
        if (edgeLength[edge] === 1 && labelText.charCodeAt(offset) === 42) {
          wildcardEdge[node] = edge;
        }
        offset = end;
      }
    }
    var matchStart = 0;
    var matchEnd = 0;
    var matched = false;
    function labelEquals(edge, hostname, start, length) {
      if (edgeLength[edge] !== length) {
        return false;
      }
      const offset = edgeOffset[edge];
      for (let i = 0; i < length; i += 1) {
        if (labelText.charCodeAt(offset + i) !== hostname.charCodeAt(start + i)) {
          return false;
        }
      }
      return true;
    }
    __name(labelEquals, "labelEquals");
    function findEdge(node, hash, hostname, start, length) {
      let lo = edgeStart[node];
      let hi = edgeStart[node + 1];
      while (lo < hi) {
        const mid = lo + hi >>> 1;
        const value = edgeHash[mid];
        if (value < hash) {
          lo = mid + 1;
        } else if (value > hash) {
          hi = mid;
        } else {
          for (let e = mid; e >= lo && edgeHash[e] === hash; e -= 1) {
            if (labelEquals(e, hostname, start, length))
              return e;
          }
          for (let e = mid + 1; e < hi && edgeHash[e] === hash; e += 1) {
            if (labelEquals(e, hostname, start, length))
              return e;
          }
          return -1;
        }
      }
      return -1;
    }
    __name(findEdge, "findEdge");
    function walk(hostname, root2) {
      let node = root2;
      let end = hostname.length;
      let hash = 5381;
      matched = false;
      for (let i = hostname.length - 1; i >= 0; i -= 1) {
        const code = hostname.charCodeAt(i);
        if (code === 46) {
          const start = i + 1;
          let edge2 = findEdge(node, hash >>> 0, hostname, start, end - start);
          if (edge2 === -1) {
            edge2 = wildcardEdge[node];
          }
          if (edge2 === -1) {
            return matched;
          }
          node = edgeChild[edge2];
          if ((nodeFlags[node] & ICANN) !== 0) {
            matched = true;
            matchStart = start;
            matchEnd = end;
          }
          end = i;
          hash = 5381;
        } else {
          hash = hash * 33 ^ code;
        }
      }
      let edge = findEdge(node, hash >>> 0, hostname, 0, end);
      if (edge === -1) {
        edge = wildcardEdge[node];
      }
      if (edge !== -1) {
        node = edgeChild[edge];
        if ((nodeFlags[node] & ICANN) !== 0) {
          matched = true;
          matchStart = 0;
          matchEnd = end;
        }
      }
      return matched;
    }
    __name(walk, "walk");
    function suffixLookup(hostname, options, out) {
      if (fastPathLookup(hostname, options, out)) {
        return;
      }
      if (walk(hostname, exceptionsRoot)) {
        out.publicSuffix = hostname.slice(matchEnd + 1);
        return;
      }
      if (walk(hostname, rulesRoot)) {
        out.publicSuffix = hostname.slice(matchStart);
        return;
      }
      const lastDot = hostname.lastIndexOf(".");
      out.publicSuffix = lastDot === -1 ? hostname : hostname.slice(lastDot + 1);
    }
    __name(suffixLookup, "suffixLookup");
    var RESULT = getEmptyResult();
    function parse(url, options) {
      return parseImpl(url, 5, suffixLookup, options, getEmptyResult());
    }
    __name(parse, "parse");
    function getHostname(url, options) {
      resetResult(RESULT);
      return parseImpl(url, 0, suffixLookup, options, RESULT).hostname;
    }
    __name(getHostname, "getHostname");
    function getPublicSuffix(url, options) {
      resetResult(RESULT);
      return parseImpl(url, 2, suffixLookup, options, RESULT).publicSuffix;
    }
    __name(getPublicSuffix, "getPublicSuffix");
    function getDomain2(url, options) {
      resetResult(RESULT);
      return parseImpl(url, 3, suffixLookup, options, RESULT).domain;
    }
    __name(getDomain2, "getDomain");
    function getFullDomain(url, options) {
      resetResult(RESULT);
      const result = parseImpl(url, 3, suffixLookup, options, RESULT);
      return result.domain === null ? null : result.hostname;
    }
    __name(getFullDomain, "getFullDomain");
    function getSubdomain(url, options) {
      resetResult(RESULT);
      return parseImpl(url, 4, suffixLookup, options, RESULT).subdomain;
    }
    __name(getSubdomain, "getSubdomain");
    function getDomainWithoutSuffix(url, options) {
      resetResult(RESULT);
      return parseImpl(url, 5, suffixLookup, options, RESULT).domainWithoutSuffix;
    }
    __name(getDomainWithoutSuffix, "getDomainWithoutSuffix");
    exports2.getDomain = getDomain2;
    exports2.getDomainWithoutSuffix = getDomainWithoutSuffix;
    exports2.getFullDomain = getFullDomain;
    exports2.getHostname = getHostname;
    exports2.getPublicSuffix = getPublicSuffix;
    exports2.getSubdomain = getSubdomain;
    exports2.parse = parse;
  }
});

// core/lib/lh-error.js
var UIStrings21, str_, LHERROR_SENTINEL, ERROR_SENTINEL, LighthouseError, ERRORS;
var init_lh_error = __esm({
  "core/lib/lh-error.js"() {
    "use strict";
    init_process_global();
    init_i18n();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings21 = {
      /**
       * @description Error message explaining that the Lighthouse run was not able to collect screenshots through Chrome.
       * @example {NO_SPEEDLINE_FRAMES} errorCode
       * */
      didntCollectScreenshots: `Chrome didn't collect any screenshots during the page load. Please make sure there is content visible on the page, and then try re-running Lighthouse. ({errorCode})`,
      /**
       * @description Error message explaining that the performance trace was not able to be recorded for the Lighthouse run.
       * @example {NO_TRACING_STARTED} errorCode
       * */
      badTraceRecording: "Something went wrong with recording the trace over your page load. Please run Lighthouse again. ({errorCode})",
      /**
       * @description Error message explaining that the First Contentful Paint metric was not seen during the page load.
       * @example {NO_FCP} errorCode
       * */
      noFcp: "The page did not paint any content. Please ensure you keep the browser window in the foreground during the load and try again. ({errorCode})",
      /**
       * @description Error message explaining that the Largest Contentful Paint metric was not seen during the page load.
       * @example {NO_LCP} errorCode
       * */
      noLcp: "The page did not display content that qualifies as a Largest Contentful Paint (LCP). Ensure the page has a valid LCP element and then try again. ({errorCode})",
      /**
       * @description Error message explaining that the page loaded too slowly to perform a Lighthouse run.
       * @example {NO_TTI_CPU_IDLE_PERIOD} errorCode
       * */
      pageLoadTookTooLong: "Your page took too long to load. Please follow the opportunities in the report to reduce your page load time, and then try re-running Lighthouse. ({errorCode})",
      /** Error message explaining that Lighthouse could not load the requested URL and the steps that might be taken to fix the unreliability. */
      pageLoadFailed: "Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests.",
      /**
       * @description Error message explaining that Lighthouse could not load the requested URL and the steps that might be taken to fix the unreliability.
       * @example {404} statusCode
       * */
      pageLoadFailedWithStatusCode: "Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: {statusCode})",
      /**
       * @description Error message explaining that Lighthouse could not load the requested URL and the steps that might be taken to fix the unreliability.
       * @example {FAILED_DOCUMENT_REQUEST} errorDetails
       * */
      pageLoadFailedWithDetails: "Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Details: {errorDetails})",
      /**
       * @description Error message explaining that the security certificate of the page Lighthouse observed was invalid, so the URL cannot be accessed. securityMessages will be replaced with one or more strings from the browser explaining what was insecure about the page load.
       * @example {net::ERR_CERT_DATE_INVALID} securityMessages
       * */
      pageLoadFailedInsecure: "The URL you have provided does not have a valid security certificate. {securityMessages}",
      /** Error message explaining that Chrome prevented the page from loading and displayed an interstitial screen instead, so the URL cannot be accessed. */
      pageLoadFailedInterstitial: "Chrome prevented page load with an interstitial. Make sure you are testing the correct URL and that the server is properly responding to all requests.",
      /** Error message explaining that Chrome has encountered an error during the Lighthouse run, and that Chrome should be restarted. */
      internalChromeError: "An internal Chrome error occurred. Please restart Chrome and try re-running Lighthouse.",
      /** Error message explaining that fetching the resources of the webpage has taken longer than the maximum time. */
      requestContentTimeout: "Fetching resource content has exceeded the allotted time",
      /**
       * @description Error message explaining that the webpage is non-HTML, so audits are ill-defined.
       * @example {application/xml} mimeType
       * */
      notHtml: "The page provided is not HTML (served as MIME type {mimeType}).",
      /** Error message explaining that the provided URL Lighthouse points to is not valid, and cannot be loaded. */
      urlInvalid: "The URL you have provided appears to be invalid.",
      /**
       * @description Error message explaining that the Chrome Devtools protocol has exceeded the maximum timeout allowed.
       * @example {Network.enable} protocolMethod
       * */
      protocolTimeout: "Waiting for DevTools protocol response has exceeded the allotted time. (Method: {protocolMethod})",
      /** Error message explaining that the requested page could not be resolved by the DNS server. */
      dnsFailure: "DNS servers could not resolve the provided domain.",
      /** Error message explaining that Lighthouse couldn't complete because the page has stopped responding to its instructions. */
      pageLoadFailedHung: "Lighthouse was unable to reliably load the URL you requested because the page stopped responding.",
      /** Error message explaining that Lighthouse timed out while waiting for the initial connection to the Chrome Devtools protocol. */
      criTimeout: "Timeout waiting for initial Debugger Protocol connection.",
      /**
       * @description Error message explaining that a resource that was required for testing was never collected. "artifactName" will be replaced with the name of the resource that wasn't collected.
       * @example {MainDocumentContent} artifactName
       * */
      missingRequiredArtifact: "Required {artifactName} gatherer did not run.",
      /**
       * @description Error message explaining that there was an error while trying to collect a resource that was required for testing. "artifactName" will be replaced with the name of the resource that wasn't collected; "errorMessage" will be replaced with a string description of the error that occurred.
       * @example {MainDocumentContent} artifactName
       * @example {Could not find main document} errorMessage
       * */
      erroredRequiredArtifact: "Required {artifactName} gatherer encountered an error: {errorMessage}",
      /**
       * @description Error message explaining that a feature is unavailable due to an old version of Chrome. "featureName" will be replaced by the name of the feature which is not supported.
       * @example {Largest Contentful Paint} featureName
       * */
      oldChromeDoesNotSupportFeature: "This version of Chrome is too old to support '{featureName}'. Use a newer version to see full results.",
      /** Error message explaining that the browser tab that Lighthouse is inspecting has crashed. */
      targetCrashed: "Browser tab has unexpectedly crashed."
    };
    str_ = createIcuMessageFn({ url: "core/lib/lh-error.js" }.url, UIStrings21);
    LHERROR_SENTINEL = "__LighthouseErrorSentinel";
    ERROR_SENTINEL = "__ErrorSentinel";
    LighthouseError = class _LighthouseError extends Error {
      static {
        __name(this, "LighthouseError");
      }
      /**
       * @param {LighthouseErrorDefinition} errorDefinition
       * @param {Record<string, string|undefined>=} properties
       * @param {LHErrorOptions=} options
       */
      constructor(errorDefinition, properties, options) {
        super(errorDefinition.code, options);
        this.name = "LighthouseError";
        this.code = errorDefinition.code;
        this.friendlyMessage = str_(errorDefinition.message, { errorCode: this.code, ...properties });
        this.lhrRuntimeError = !!errorDefinition.lhrRuntimeError;
        if (properties) Object.assign(this, properties);
        Error.captureStackTrace(this, _LighthouseError);
      }
      /**
       * @param {string} method
       * @param {{message: string, data?: string|undefined}} protocolError
       * @return {Error|LighthouseError}
       */
      static fromProtocolMessage(method, protocolError) {
        const matchedErrorDefinition = Object.values(_LighthouseError.errors).filter((e) => e.pattern).find((e) => e.pattern && e.pattern.test(protocolError.message));
        if (matchedErrorDefinition) {
          return new _LighthouseError(matchedErrorDefinition);
        }
        let errMsg = `(${method}): ${protocolError.message}`;
        if (protocolError.data) errMsg += ` (${protocolError.data})`;
        const error = new Error(`Protocol error ${errMsg}`);
        return Object.assign(error, { protocolMethod: method, protocolError: protocolError.message });
      }
      /**
       * A JSON.stringify replacer to serialize LighthouseErrors and (as a fallback) Errors.
       * Returns a simplified version of the error object that can be reconstituted
       * as a copy of the original error at parse time.
       * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter
       * @param {Error|LighthouseError} err
       * @return {SerializedBaseError|SerializedLighthouseError}
       */
      static stringifyReplacer(err) {
        if (err instanceof _LighthouseError) {
          const { name, code, message, friendlyMessage, lhrRuntimeError, stack, cause, ...properties } = err;
          return {
            sentinel: LHERROR_SENTINEL,
            code,
            stack,
            cause,
            properties: (
              /** @type {{ [p: string]: string | undefined }} */
              properties
            )
          };
        }
        if (err instanceof Error) {
          const { message, stack, cause } = err;
          const code = err.code;
          return {
            sentinel: ERROR_SENTINEL,
            message,
            code,
            stack,
            cause
          };
        }
        throw new Error("Invalid value for LighthouseError stringification");
      }
      /**
       * A JSON.parse reviver. If any value passed in is a serialized Error or
       * LighthouseError, the error is recreated as the original object. Otherwise, the
       * value is passed through unchanged.
       * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter
       * @param {string} key
       * @param {any} possibleError
       * @return {any}
       */
      static parseReviver(key, possibleError) {
        if (typeof possibleError === "object" && possibleError !== null) {
          if (possibleError.sentinel === LHERROR_SENTINEL) {
            const { code, stack, cause, properties } = (
              /** @type {SerializedLighthouseError} */
              possibleError
            );
            const errorDefinition = _LighthouseError.errors[
              /** @type {keyof typeof ERRORS} */
              code
            ];
            const lhError = new _LighthouseError(errorDefinition, properties, { cause });
            lhError.stack = stack;
            return lhError;
          }
          if (possibleError.sentinel === ERROR_SENTINEL) {
            const { message, code, stack, cause } = (
              /** @type {SerializedBaseError} */
              possibleError
            );
            const opts = cause ? { cause } : void 0;
            const error = new Error(message, opts);
            Object.assign(error, { code, stack });
            return error;
          }
        }
        return possibleError;
      }
    };
    ERRORS = {
      // Screenshot/speedline errors
      NO_SPEEDLINE_FRAMES: {
        code: "NO_SPEEDLINE_FRAMES",
        message: UIStrings21.didntCollectScreenshots,
        lhrRuntimeError: true
      },
      SPEEDINDEX_OF_ZERO: {
        code: "SPEEDINDEX_OF_ZERO",
        message: UIStrings21.didntCollectScreenshots,
        lhrRuntimeError: true
      },
      NO_SCREENSHOTS: {
        code: "NO_SCREENSHOTS",
        message: UIStrings21.didntCollectScreenshots,
        lhrRuntimeError: true
      },
      INVALID_SPEEDLINE: {
        code: "INVALID_SPEEDLINE",
        message: UIStrings21.didntCollectScreenshots,
        lhrRuntimeError: true
      },
      // Trace parsing errors
      NO_TRACING_STARTED: {
        code: "NO_TRACING_STARTED",
        message: UIStrings21.badTraceRecording,
        lhrRuntimeError: true
      },
      NO_RESOURCE_REQUEST: {
        code: "NO_RESOURCE_REQUEST",
        message: UIStrings21.badTraceRecording,
        lhrRuntimeError: true
      },
      NO_NAVSTART: {
        code: "NO_NAVSTART",
        message: UIStrings21.badTraceRecording,
        lhrRuntimeError: true
      },
      NO_FCP: {
        code: "NO_FCP",
        message: UIStrings21.noFcp,
        lhrRuntimeError: true
      },
      NO_DCL: {
        code: "NO_DCL",
        message: UIStrings21.badTraceRecording,
        lhrRuntimeError: true
      },
      NO_FMP: {
        code: "NO_FMP",
        message: UIStrings21.badTraceRecording
      },
      NO_LCP: {
        code: "NO_LCP",
        message: UIStrings21.noLcp
      },
      NO_LCP_ALL_FRAMES: {
        code: "NO_LCP_ALL_FRAMES",
        message: UIStrings21.noLcp
      },
      UNSUPPORTED_OLD_CHROME: {
        code: "UNSUPPORTED_OLD_CHROME",
        message: UIStrings21.oldChromeDoesNotSupportFeature
      },
      // TTI calculation failures
      NO_TTI_CPU_IDLE_PERIOD: { code: "NO_TTI_CPU_IDLE_PERIOD", message: UIStrings21.pageLoadTookTooLong },
      NO_TTI_NETWORK_IDLE_PERIOD: {
        code: "NO_TTI_NETWORK_IDLE_PERIOD",
        message: UIStrings21.pageLoadTookTooLong
      },
      // Page load failures
      NO_DOCUMENT_REQUEST: {
        code: "NO_DOCUMENT_REQUEST",
        message: UIStrings21.pageLoadFailed,
        lhrRuntimeError: true
      },
      /* Used when DevTools reports loading failed. Usually an internal (Chrome) issue.
       * Requries an additional `errorDetails` field for translation.
       */
      FAILED_DOCUMENT_REQUEST: {
        code: "FAILED_DOCUMENT_REQUEST",
        message: UIStrings21.pageLoadFailedWithDetails,
        lhrRuntimeError: true
      },
      /* Used when status code is 4xx or 5xx.
       * Requires an additional `statusCode` field for translation.
       */
      ERRORED_DOCUMENT_REQUEST: {
        code: "ERRORED_DOCUMENT_REQUEST",
        message: UIStrings21.pageLoadFailedWithStatusCode,
        lhrRuntimeError: true
      },
      /* Used when security error prevents page load.
       * Requires an additional `securityMessages` field for translation.
       */
      INSECURE_DOCUMENT_REQUEST: {
        code: "INSECURE_DOCUMENT_REQUEST",
        message: UIStrings21.pageLoadFailedInsecure,
        lhrRuntimeError: true
      },
      /* Used when any Chrome interstitial error prevents page load.
       */
      CHROME_INTERSTITIAL_ERROR: {
        code: "CHROME_INTERSTITIAL_ERROR",
        message: UIStrings21.pageLoadFailedInterstitial,
        lhrRuntimeError: true
      },
      /* Used when the page stopped responding and did not finish loading. */
      PAGE_HUNG: {
        code: "PAGE_HUNG",
        message: UIStrings21.pageLoadFailedHung,
        lhrRuntimeError: true
      },
      /* Used when the page is non-HTML. */
      NOT_HTML: {
        code: "NOT_HTML",
        message: UIStrings21.notHtml,
        lhrRuntimeError: true
      },
      // Protocol internal failures
      TRACING_ALREADY_STARTED: {
        code: "TRACING_ALREADY_STARTED",
        message: UIStrings21.internalChromeError,
        pattern: /Tracing.*started/,
        lhrRuntimeError: true
      },
      PARSING_PROBLEM: {
        code: "PARSING_PROBLEM",
        message: UIStrings21.internalChromeError,
        pattern: /Parsing problem/,
        lhrRuntimeError: true
      },
      READ_FAILED: {
        code: "READ_FAILED",
        message: UIStrings21.internalChromeError,
        pattern: /Read failed/,
        lhrRuntimeError: true
      },
      // URL parsing failures
      INVALID_URL: {
        code: "INVALID_URL",
        message: UIStrings21.urlInvalid
      },
      /* Protocol timeout failures
       * Requires an additional `protocolMethod` field for translation.
       */
      PROTOCOL_TIMEOUT: {
        code: "PROTOCOL_TIMEOUT",
        message: UIStrings21.protocolTimeout,
        lhrRuntimeError: true
      },
      // DNS failure on main document (no resolution, timed out, etc)
      DNS_FAILURE: {
        code: "DNS_FAILURE",
        message: UIStrings21.dnsFailure,
        lhrRuntimeError: true
      },
      /** A timeout in the initial connection to the debugger protocol. */
      CRI_TIMEOUT: {
        code: "CRI_TIMEOUT",
        message: UIStrings21.criTimeout,
        lhrRuntimeError: true
      },
      /**
       * Error internal to Runner used when an artifact required for an audit is missing.
       * Requires an additional `artifactName` field for translation.
      */
      MISSING_REQUIRED_ARTIFACT: {
        code: "MISSING_REQUIRED_ARTIFACT",
        message: UIStrings21.missingRequiredArtifact
      },
      /**
       * Error internal to Runner used when an artifact required for an audit was an error.
       * Requires additional `artifactName` and `errorMessage` fields for translation.
      */
      ERRORED_REQUIRED_ARTIFACT: {
        code: "ERRORED_REQUIRED_ARTIFACT",
        message: UIStrings21.erroredRequiredArtifact
      },
      /** The page has crashed and will no longer respond to 99% of CDP commmands. */
      TARGET_CRASHED: {
        code: "TARGET_CRASHED",
        message: UIStrings21.targetCrashed,
        lhrRuntimeError: true
      }
      // Hey! When adding a new error type, update lighthouse-result.proto too.
      // Only necessary for runtime errors, which come from artifacts or pageLoadErrors.
    };
    LighthouseError.errors = ERRORS;
    LighthouseError.NO_ERROR = "NO_ERROR";
    LighthouseError.UNKNOWN_ERROR = "UNKNOWN_ERROR";
  }
});

// core/lib/url-utils.js
function rewriteChromeInternalUrl(url) {
  if (!url || !url.startsWith("chrome://")) return url;
  if (url.endsWith("/")) url = url.replace(/\/$/, "");
  return url.replace(/^chrome:\/\/chrome\//, "chrome://");
}
var import_tldts_icann, allowedProtocols, SECURE_SCHEMES, SECURE_LOCALHOST_DOMAINS2, NON_NETWORK_SCHEMES3, UrlUtils2, url_utils_default;
var init_url_utils = __esm({
  "core/lib/url-utils.js"() {
    "use strict";
    init_process_global();
    import_tldts_icann = __toESM(require_cjs(), 1);
    init_util();
    init_lh_error();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    allowedProtocols = [
      "https:",
      "http:",
      "chrome:",
      "chrome-extension:"
    ];
    SECURE_SCHEMES = [
      "data",
      "https",
      "wss",
      "blob",
      "chrome",
      "chrome-extension",
      "about",
      "filesystem"
    ];
    SECURE_LOCALHOST_DOMAINS2 = ["localhost", "127.0.0.1"];
    NON_NETWORK_SCHEMES3 = [
      "blob",
      // @see https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
      "data",
      // @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
      "intent",
      // @see https://developer.chrome.com/docs/multidevice/android/intents/
      "file",
      // @see https://en.wikipedia.org/wiki/File_URI_scheme
      "filesystem",
      // @see https://developer.mozilla.org/en-US/docs/Web/API/FileSystem
      "chrome-extension"
    ];
    __name(rewriteChromeInternalUrl, "rewriteChromeInternalUrl");
    UrlUtils2 = class _UrlUtils {
      static {
        __name(this, "UrlUtils");
      }
      /**
       * @param {string} url
       * @return {boolean}
       */
      static isValid(url) {
        try {
          new URL(url);
          return true;
        } catch (e) {
          return false;
        }
      }
      /**
       * @param {string} urlA
       * @param {string} urlB
       * @return {boolean}
       */
      static hostsMatch(urlA, urlB) {
        try {
          return new URL(urlA).host === new URL(urlB).host;
        } catch (e) {
          return false;
        }
      }
      /**
       * @param {string} urlA
       * @param {string} urlB
       * @return {boolean}
       */
      static originsMatch(urlA, urlB) {
        try {
          return new URL(urlA).origin === new URL(urlB).origin;
        } catch (e) {
          return false;
        }
      }
      /**
       * @param {string} url
       * @return {?string}
       */
      static getOrigin(url) {
        try {
          const urlInfo = new URL(url);
          if (urlInfo.protocol === "chrome-extension:") {
            return Util.getChromeExtensionOrigin(url);
          }
          return urlInfo.host && urlInfo.origin || null;
        } catch (e) {
          return null;
        }
      }
      /**
       * Returns a primary domain for provided hostname (e.g. www.example.com -> example.com).
       * @param {string|URL} url hostname or URL object
       * @return {string}
       */
      static getRootDomain(url) {
        const parsedUrl = Util.createOrReturnURL(url);
        return (0, import_tldts_icann.getDomain)(parsedUrl.href) || parsedUrl.hostname;
      }
      /**
       * Check if rootDomains matches
       *
       * @param {string|URL} urlA
       * @param {string|URL} urlB
       */
      static rootDomainsMatch(urlA, urlB) {
        let urlAInfo;
        let urlBInfo;
        try {
          urlAInfo = Util.createOrReturnURL(urlA);
          urlBInfo = Util.createOrReturnURL(urlB);
        } catch (err) {
          return false;
        }
        if (!urlAInfo.hostname || !urlBInfo.hostname) {
          return false;
        }
        const urlARootDomain = _UrlUtils.getRootDomain(urlAInfo);
        const urlBRootDomain = _UrlUtils.getRootDomain(urlBInfo);
        return urlARootDomain === urlBRootDomain;
      }
      /**
       * @param {string} url
       * @param {{numPathParts: number, preserveQuery: boolean, preserveHost: boolean}=} options
       * @return {string}
       */
      static getURLDisplayName(url, options) {
        return Util.getURLDisplayName(new URL(url), options);
      }
      /**
       * Limits data URIs to 100 characters, returns all other strings untouched.
       * @param {string} url
       * @return {string}
       */
      static elideDataURI(url) {
        try {
          const parsed = new URL(url);
          return parsed.protocol === "data:" ? Util.truncate(url, 100) : url;
        } catch (e) {
          return url;
        }
      }
      /**
       * Determine if url1 equals url2, ignoring URL fragments.
       * @param {string} url1
       * @param {string} url2
       * @return {boolean}
       */
      static equalWithExcludedFragments(url1, url2) {
        [url1, url2] = [url1, url2].map(rewriteChromeInternalUrl);
        try {
          const urla = new URL(url1);
          urla.hash = "";
          const urlb = new URL(url2);
          urlb.hash = "";
          return urla.href === urlb.href;
        } catch (e) {
          return false;
        }
      }
      /**
       * Determine if the url has a protocol that we're able to test
       * @param {string} url
       * @return {boolean}
       */
      static isProtocolAllowed(url) {
        try {
          const parsed = new URL(url);
          return allowedProtocols.includes(parsed.protocol);
        } catch (e) {
          return false;
        }
      }
      /**
       * Is the host localhost-enough to satisfy the "secure context" definition
       * https://github.com/GoogleChrome/lighthouse/pull/11766#discussion_r582340683
       * @param {string} hostname Either a `new URL(url).hostname` or a `networkRequest.parsedUrl.host`
       * @return {boolean}
       */
      static isLikeLocalhost(hostname) {
        return SECURE_LOCALHOST_DOMAINS2.includes(hostname) || hostname.endsWith(".localhost");
      }
      /**
       * @param {NetworkRequest['parsedURL']['scheme']} scheme
       * @return {boolean}
       */
      static isSecureScheme(scheme) {
        return SECURE_SCHEMES.includes(scheme);
      }
      /**
       * Use `NetworkRequest.isNonNetworkRequest(req)` if working with a request.
       * Note: the `protocol` field from CDP can be 'h2', 'http', (not 'https'!) or it'll be url's scheme.
       *   https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/network_handler.cc;l=598-611;drc=56d4a9a9deb30be73adcee8737c73bcb2a5ab64f
       * However, a `new URL(href).protocol` has a colon suffix.
       *   https://url.spec.whatwg.org/#dom-url-protocol
       * A URL's `scheme` is specced as the `protocol` sans-colon, but isn't exposed on a URL object.
       * This method can take all 3 of these string types as a parameter.
       * @param {NetworkRequest['protocol'] | URL['protocol']} protocol Either a networkRequest's `protocol` per CDP or a `new URL(href).protocol`
       * @return {boolean}
       */
      static isNonNetworkProtocol(protocol) {
        const urlScheme = protocol.includes(":") ? protocol.slice(0, protocol.indexOf(":")) : protocol;
        return NON_NETWORK_SCHEMES3.includes(urlScheme);
      }
      /**
       * @param {string} src
       * @return {string|undefined}
       */
      static guessMimeType(src) {
        let url;
        try {
          url = new URL(src);
        } catch {
          return void 0;
        }
        if (url.protocol === "data:") {
          const match2 = url.pathname.match(/^(image\/(png|jpeg|svg\+xml|webp|gif|avif))[;,]/);
          if (!match2) return void 0;
          return match2[1];
        }
        const match = url.pathname.toLowerCase().match(/\.(png|jpeg|jpg|svg|webp|gif|avif)$/);
        if (!match) return void 0;
        const ext = match[1];
        if (ext === "svg") return "image/svg+xml";
        if (ext === "jpg") return "image/jpeg";
        return `image/${ext}`;
      }
      /**
       * @param {string|undefined} url
       * @return {string}
       */
      static normalizeUrl(url) {
        if (url && this.isValid(url) && this.isProtocolAllowed(url)) {
          return new URL(url).href;
        } else {
          throw new LighthouseError(LighthouseError.errors.INVALID_URL);
        }
      }
    };
    UrlUtils2.INVALID_URL_DEBUG_STRING = "Lighthouse was unable to determine the URL of some script executions. It's possible a Chrome extension or other eval'd code is the source.";
    url_utils_default = UrlUtils2;
  }
});

// core/lib/network-request.js
var HEADER_TCP, HEADER_SSL, HEADER_REQ, HEADER_RES, HEADER_TOTAL, HEADER_FETCHED_SIZE, HEADER_PROTOCOL_IS_H2, RESOURCE_TYPES, NetworkRequest;
var init_network_request = __esm({
  "core/lib/network-request.js"() {
    "use strict";
    init_process_global();
    init_lh();
    init_lantern2();
    init_url_utils();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    HEADER_TCP = "X-TCPMs";
    HEADER_SSL = "X-SSLMs";
    HEADER_REQ = "X-RequestMs";
    HEADER_RES = "X-ResponseMs";
    HEADER_TOTAL = "X-TotalMs";
    HEADER_FETCHED_SIZE = "X-TotalFetchedSize";
    HEADER_PROTOCOL_IS_H2 = "X-ProtocolIsH2";
    RESOURCE_TYPES = {
      XHR: "XHR",
      Fetch: "Fetch",
      EventSource: "EventSource",
      Script: "Script",
      Stylesheet: "Stylesheet",
      Image: "Image",
      Media: "Media",
      Font: "Font",
      Document: "Document",
      TextTrack: "TextTrack",
      WebSocket: "WebSocket",
      Other: "Other",
      Manifest: "Manifest",
      SignedExchange: "SignedExchange",
      Ping: "Ping",
      Preflight: "Preflight",
      CSPViolationReport: "CSPViolationReport",
      Prefetch: "Prefetch",
      FedCM: "FedCM"
    };
    NetworkRequest = class _NetworkRequest {
      static {
        __name(this, "NetworkRequest");
      }
      constructor() {
        this.requestId = "";
        this.connectionId = 0;
        this.connectionReused = false;
        this.url = "";
        this.protocol = "";
        this.isSecure = false;
        this.isValid = false;
        this.parsedURL = /** @type {ParsedURL} */
        { scheme: "" };
        this.documentURL = "";
        this.rendererStartTime = -1;
        this.networkRequestTime = -1;
        this.responseHeadersEndTime = -1;
        this.networkEndTime = -1;
        this.transferSize = 0;
        this.responseHeadersTransferSize = 0;
        this.resourceSize = 0;
        this.fromDiskCache = false;
        this.fromMemoryCache = false;
        this.fromPrefetchCache = false;
        this.lrStatistics = void 0;
        this.finished = false;
        this.requestMethod = "";
        this.statusCode = -1;
        this.redirectSource = void 0;
        this.redirectDestination = void 0;
        this.redirects = void 0;
        this.failed = false;
        this.localizedFailDescription = "";
        this.initiator = { type: "other" };
        this.timing = void 0;
        this.resourceType = void 0;
        this.mimeType = "";
        this.priority = "Low";
        this.initiatorRequest = void 0;
        this.responseHeaders = [];
        this.responseHeadersText = "";
        this.fetchedViaServiceWorker = false;
        this.frameId = "";
        this.sessionId = void 0;
        this.sessionTargetType = void 0;
        this.fromWorker = false;
        this.isLinkPreload = false;
      }
      /**
       * @return {boolean}
       */
      hasErrorStatusCode() {
        return this.statusCode >= 400;
      }
      /**
       * @param {NetworkRequest} initiatorRequest
       */
      setInitiatorRequest(initiatorRequest) {
        this.initiatorRequest = initiatorRequest;
      }
      /**
       * @param {LH.Crdp.Network.RequestWillBeSentEvent} data
       */
      onRequestWillBeSent(data31) {
        this.requestId = data31.requestId;
        let url;
        try {
          url = new URL(data31.request.url);
        } catch (e) {
          return;
        }
        this.url = data31.request.url;
        this.documentURL = data31.documentURL;
        this.parsedURL = {
          scheme: url.protocol.split(":")[0],
          // Intentional, DevTools uses different terminology
          host: url.hostname,
          securityOrigin: url.origin
        };
        this.isSecure = url_utils_default.isSecureScheme(this.parsedURL.scheme);
        this.rendererStartTime = data31.timestamp * 1e3;
        this.networkRequestTime = this.rendererStartTime;
        this.responseHeadersEndTime = this.rendererStartTime;
        this.requestMethod = data31.request.method;
        this.initiator = data31.initiator;
        this.resourceType = data31.type && RESOURCE_TYPES[data31.type];
        this.priority = data31.request.initialPriority;
        this.frameId = data31.frameId;
        this.isLinkPreload = data31.initiator.type === "preload" || !!data31.request.isLinkPreload;
        this.isValid = true;
      }
      onRequestServedFromCache() {
        this.fromMemoryCache = true;
      }
      /**
       * @param {LH.Crdp.Network.ResponseReceivedEvent} data
       */
      onResponseReceived(data31) {
        this._onResponse(data31.response, data31.timestamp, data31.type);
        this._updateProtocolForLightrider();
        this.frameId = data31.frameId;
      }
      /**
       * @param {LH.Crdp.Network.ResponseReceivedExtraInfoEvent} data
       */
      onResponseReceivedExtraInfo(data31) {
        this.responseHeadersText = data31.headersText || "";
      }
      /**
       * @param {LH.Crdp.Network.DataReceivedEvent} data
       */
      onDataReceived(data31) {
        this.resourceSize += data31.dataLength;
        if (data31.encodedDataLength !== -1) {
          this.transferSize += data31.encodedDataLength;
        }
      }
      /**
       * @param {LH.Crdp.Network.LoadingFinishedEvent} data
       */
      onLoadingFinished(data31) {
        if (this.finished) return;
        this.finished = true;
        this.networkEndTime = data31.timestamp * 1e3;
        if (data31.encodedDataLength >= 0) {
          this.transferSize = data31.encodedDataLength;
        }
        this._updateResponseHeadersEndTimeIfNecessary();
        this._updateTransferSizeForLightrider();
        this._updateTimingsForLightrider();
      }
      /**
       * @param {LH.Crdp.Network.LoadingFailedEvent} data
       */
      onLoadingFailed(data31) {
        if (this.finished) return;
        this.finished = true;
        this.networkEndTime = data31.timestamp * 1e3;
        this.failed = true;
        this.resourceType = data31.type && RESOURCE_TYPES[data31.type];
        this.localizedFailDescription = data31.errorText;
        this._updateResponseHeadersEndTimeIfNecessary();
        this._updateTransferSizeForLightrider();
        this._updateTimingsForLightrider();
      }
      /**
       * @param {LH.Crdp.Network.ResourceChangedPriorityEvent} data
       */
      onResourceChangedPriority(data31) {
        this.priority = data31.newPriority;
      }
      /**
       * @param {LH.Crdp.Network.RequestWillBeSentEvent} data
       */
      onRedirectResponse(data31) {
        if (!data31.redirectResponse) throw new Error("Missing redirectResponse data");
        this._onResponse(data31.redirectResponse, data31.timestamp, data31.type);
        this.resourceType = void 0;
        this.finished = true;
        this.networkEndTime = data31.timestamp * 1e3;
        this._updateResponseHeadersEndTimeIfNecessary();
      }
      /**
       * @param {string|undefined} sessionId
       */
      setSession(sessionId) {
        this.sessionId = sessionId;
      }
      get isOutOfProcessIframe() {
        return this.sessionTargetType === "iframe";
      }
      /**
       * @param {LH.Crdp.Network.Response} response
       * @param {number} timestamp in seconds
       * @param {LH.Crdp.Network.ResponseReceivedEvent['type']=} resourceType
       */
      _onResponse(response, timestamp, resourceType) {
        this.url = response.url;
        this.connectionId = response.connectionId;
        this.connectionReused = response.connectionReused;
        if (response.protocol) this.protocol = response.protocol;
        this.responseTimestamp = timestamp * 1e3;
        this.transferSize = response.encodedDataLength;
        this.responseHeadersTransferSize = response.encodedDataLength;
        if (typeof response.fromDiskCache === "boolean") this.fromDiskCache = response.fromDiskCache;
        if (typeof response.fromPrefetchCache === "boolean") {
          this.fromPrefetchCache = response.fromPrefetchCache;
        }
        this.statusCode = response.status;
        this.timing = response.timing;
        if (resourceType) this.resourceType = RESOURCE_TYPES[resourceType];
        this.mimeType = response.mimeType;
        this.responseHeaders = _NetworkRequest._headersDictToHeadersArray(response.headers);
        this.fetchedViaServiceWorker = !!response.fromServiceWorker;
        if (this.fromMemoryCache) this.timing = void 0;
        if (this.timing) this._recomputeTimesWithResourceTiming(this.timing);
      }
      /**
       * Resolve differences between conflicting timing signals. Based on the property setters in DevTools.
       * @see https://github.com/ChromeDevTools/devtools-frontend/blob/56a99365197b85c24b732ac92b0ac70feed80179/front_end/sdk/NetworkRequest.js#L485-L502
       * @param {LH.Crdp.Network.ResourceTiming} timing
       */
      _recomputeTimesWithResourceTiming(timing) {
        if (timing.requestTime === -1 || timing.receiveHeadersEnd === -1) return;
        this.networkRequestTime = timing.requestTime * 1e3;
        const headersReceivedTime = this.networkRequestTime + timing.receiveHeadersEnd;
        this.responseHeadersEndTime = headersReceivedTime;
        if (this.responseTimestamp !== void 0) {
          this.responseHeadersEndTime = Math.min(this.responseHeadersEndTime, this.responseTimestamp);
        }
        this.responseHeadersEndTime = Math.max(this.responseHeadersEndTime, this.networkRequestTime);
        this.networkEndTime = Math.max(this.networkEndTime, this.responseHeadersEndTime);
      }
      /**
       * Update responseHeadersEndTime to the networkEndTime if networkEndTime is earlier.
       * A response can't be received after the entire request finished.
       */
      _updateResponseHeadersEndTimeIfNecessary() {
        this.responseHeadersEndTime = Math.min(this.networkEndTime, this.responseHeadersEndTime);
      }
      /**
       * LR loses transfer size information, but passes it in the 'X-TotalFetchedSize' header.
       * 'X-TotalFetchedSize' is the canonical transfer size in LR. Nothing should supersede it.
       *
       * The total length of the encoded data is spread out among multiple events. The sum of the
       * values in onResponseReceived and all the onDataReceived events typically equals the value
       * seen on the onLoadingFinished event. In <1% of cases we see the values differ. As we process
       * onResponseReceived and onDataReceived we accumulate the total encodedDataLength. When we
       * process onLoadingFinished, we override the accumulated total. We do this so that if the
       * request is aborted or fails, we still get a value via the accumulation.
       *
       * In Lightrider, due to instrumentation limitations, our values for encodedDataLength are bogus
       * and not valid. However the resource's true encodedDataLength/transferSize is shared via a
       * special response header, X-TotalFetchedSize. In this situation, we read this value from
       * responseReceived, use it for the transferSize and ignore the encodedDataLength values in
       * both dataReceived and loadingFinished.
       */
      _updateTransferSizeForLightrider() {
        if (!global.isLightrider) return;
        const totalFetchedSize = this.responseHeaders.find((item) => item.name === HEADER_FETCHED_SIZE);
        if (!totalFetchedSize) return;
        const floatValue = parseFloat(totalFetchedSize.value);
        if (isNaN(floatValue)) return;
        this.transferSize = floatValue;
      }
      /**
       * LR loses protocol information.
       */
      _updateProtocolForLightrider() {
        if (!global.isLightrider) return;
        if (this.responseHeaders.some((item) => item.name === HEADER_PROTOCOL_IS_H2)) {
          this.protocol = "h2";
        }
      }
      /**
       * LR gets additional, accurate timing information from its underlying fetch infrastructure.  This
       * is passed in via X-Headers similar to 'X-TotalFetchedSize'.
       */
      _updateTimingsForLightrider() {
        if (!global.isLightrider) return;
        const totalHeader = this.responseHeaders.find((item) => item.name === HEADER_TOTAL);
        if (!totalHeader) return;
        let totalMs = parseInt(totalHeader.value);
        const TCPMsHeader = this.responseHeaders.find((item) => item.name === HEADER_TCP);
        const SSLMsHeader = this.responseHeaders.find((item) => item.name === HEADER_SSL);
        const requestMsHeader = this.responseHeaders.find((item) => item.name === HEADER_REQ);
        const responseMsHeader = this.responseHeaders.find((item) => item.name === HEADER_RES);
        const TCPMs = TCPMsHeader ? Math.max(0, parseInt(TCPMsHeader.value)) : 0;
        const SSLMs = SSLMsHeader ? Math.max(0, parseInt(SSLMsHeader.value)) : 0;
        const requestMs = requestMsHeader ? Math.max(0, parseInt(requestMsHeader.value)) : 0;
        const responseMs = responseMsHeader ? Math.max(0, parseInt(responseMsHeader.value)) : 0;
        if (Number.isNaN(TCPMs + requestMs + responseMs + totalMs)) {
          return;
        }
        if (TCPMs + requestMs + responseMs !== totalMs) {
          const delta = Math.abs(TCPMs + requestMs + responseMs - totalMs);
          if (delta >= 25) return;
          totalMs = TCPMs + requestMs + responseMs;
        }
        if (SSLMs > TCPMs) {
          return;
        }
        this.lrStatistics = {
          endTimeDeltaMs: this.networkEndTime - (this.networkRequestTime + totalMs),
          TCPMs,
          requestMs,
          responseMs
        };
        this.serverResponseTime = responseMs;
      }
      /**
       * Convert the requestId to backend-version by removing the `:redirect` portion
       *
       * @param {string} requestId
       * @return {string}
       */
      static getRequestIdForBackend(requestId) {
        return requestId.replace(/(:redirect)+$/, "");
      }
      /**
       * Based on DevTools NetworkManager.
       * @see https://github.com/ChromeDevTools/devtools-frontend/blob/3415ee28e86a3f4bcc2e15b652d22069938df3a6/front_end/sdk/NetworkManager.js#L285-L297
       * @param {LH.Crdp.Network.Headers} headersDict
       * @return {Array<HeaderEntry>}
       */
      static _headersDictToHeadersArray(headersDict) {
        const result = [];
        for (const name of Object.keys(headersDict)) {
          const values = headersDict[name].split("\n");
          for (let i = 0; i < values.length; ++i) {
            result.push({ name, value: values[i] });
          }
        }
        return result;
      }
      static get TYPES() {
        return RESOURCE_TYPES;
      }
      /**
       * @param {NetworkRequest} record
       * @return {Lantern.Types.NetworkRequest<NetworkRequest>}
       */
      static asLanternNetworkRequest(record) {
        let timing = record.timing;
        let serverResponseTime;
        if (global.isLightrider && record.lrStatistics) {
          if (record.protocol.startsWith("h3")) {
            timing = {
              connectStart: 0,
              connectEnd: record.lrStatistics.TCPMs
            };
          } else {
            timing = {
              connectStart: 0,
              sslStart: record.lrStatistics.TCPMs / 2,
              connectEnd: record.lrStatistics.TCPMs,
              sslEnd: record.lrStatistics.TCPMs
            };
            serverResponseTime = record.lrStatistics.requestMs;
          }
        }
        record.fromWorker = record.sessionTargetType === "worker";
        return {
          rawRequest: record,
          ...record,
          timing,
          serverResponseTime
        };
      }
      /**
       * @param {Pick<NetworkRequest, 'protocol'|'parsedURL'>} record
       * @return {boolean}
       */
      static isNonNetworkRequest(record) {
        return url_utils_default.isNonNetworkProtocol(record.protocol) || // But `protocol` can fail to be populated if the request fails, so fallback to scheme.
        url_utils_default.isNonNetworkProtocol(record.parsedURL.scheme);
      }
      /**
       * Technically there's not alignment on URLs that create "secure connections" vs "secure contexts"
       * https://github.com/GoogleChrome/lighthouse/pull/11766#discussion_r582340683
       * But for our purposes, we don't need to worry too much.
       * @param {NetworkRequest} record
       * @return {boolean}
       */
      static isSecureRequest(record) {
        return url_utils_default.isSecureScheme(record.parsedURL.scheme) || url_utils_default.isSecureScheme(record.protocol) || url_utils_default.isLikeLocalhost(record.parsedURL.host) || _NetworkRequest.isHstsRequest(record);
      }
      /**
       * Returns whether the network request was an HSTS redirect request.
       * @param {NetworkRequest} record
       * @return {boolean}
       */
      static isHstsRequest(record) {
        const destination = record.redirectDestination;
        if (!destination) return false;
        const reasonHeader = record.responseHeaders.find((header) => header.name === "Non-Authoritative-Reason");
        const reason = reasonHeader?.value;
        return reason === "HSTS" && _NetworkRequest.isSecureRequest(destination);
      }
      /**
       * Returns whether the network request was sent encoded.
       * @param {NetworkRequest} record
       * @return {boolean}
       */
      static isContentEncoded(record) {
        const patterns = global.isLightrider ? [
          /^x-original-content-encoding$/i
        ] : [
          /^content-encoding$/i,
          /^x-content-encoding-over-network$/i
        ];
        const compressionTypes = ["gzip", "br", "deflate", "zstd"];
        return record.responseHeaders.some(
          (header) => patterns.some((p) => header.name.match(p)) && compressionTypes.includes(header.value)
        );
      }
      /**
       * Resource size is almost always the right one to be using because of the below:
       *     `transferSize = resourceSize + headers.length`.
       * HOWEVER, there are some cases where an image is compressed again over the network and transfer size
       * is smaller (see https://github.com/GoogleChrome/lighthouse/pull/4968).
       * Use the min of the two numbers to be safe.
       * `tranferSize` of cached records is 0
       * @param {NetworkRequest} networkRecord
       * @return {number}
       */
      static getResourceSizeOnNetwork(networkRecord) {
        return Math.min(networkRecord.resourceSize || 0, networkRecord.transferSize || Infinity);
      }
    };
    NetworkRequest.HEADER_TCP = HEADER_TCP;
    NetworkRequest.HEADER_SSL = HEADER_SSL;
    NetworkRequest.HEADER_REQ = HEADER_REQ;
    NetworkRequest.HEADER_RES = HEADER_RES;
    NetworkRequest.HEADER_TOTAL = HEADER_TOTAL;
    NetworkRequest.HEADER_FETCHED_SIZE = HEADER_FETCHED_SIZE;
    NetworkRequest.HEADER_PROTOCOL_IS_H2 = HEADER_PROTOCOL_IS_H2;
  }
});

// core/lib/network-recorder.js
import { EventEmitter as EventEmitter2 } from "events";
var RequestEventEmitter, NetworkRecorder;
var init_network_recorder = __esm({
  "core/lib/network-recorder.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_lh();
    init_lantern2();
    init_network_request();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    RequestEventEmitter = /** @type {RequestEmitter} */
    EventEmitter2;
    NetworkRecorder = class _NetworkRecorder extends RequestEventEmitter {
      static {
        __name(this, "NetworkRecorder");
      }
      /**
       * Creates an instance of NetworkRecorder.
       */
      constructor() {
        super();
        this._records = [];
        this._recordsById = /* @__PURE__ */ new Map();
      }
      /**
       * Returns the array of raw network request data without finalizing the initiator and
       * redirect chain.
       * @return {Array<NetworkRequest>}
       */
      getRawRecords() {
        return Array.from(this._records);
      }
      /**
       * Listener for the DevTools SDK NetworkManager's RequestStarted event, which includes both
       * web socket and normal request creation.
       * @param {NetworkRequest} request
       * @private
       */
      onRequestStarted(request) {
        this._records.push(request);
        this._recordsById.set(request.requestId, request);
        this.emit("requeststarted", request);
      }
      /**
       * Listener for the DevTools SDK NetworkManager's RequestFinished event, which includes
       * request finish, failure, and redirect, as well as the closing of web sockets.
       * @param {NetworkRequest} request
       * @private
       */
      onRequestFinished(request) {
        this.emit("requestfinished", request);
      }
      // The below methods proxy network data into the NetworkRequest object which mimics the
      // DevTools SDK network layer.
      /**
       * @param {{params: LH.Crdp.Network.RequestWillBeSentEvent, targetType: LH.Protocol.TargetType, sessionId?: string}} event
       */
      onRequestWillBeSent(event) {
        const data31 = event.params;
        const originalRequest = this._findRealRequestAndSetSession(
          data31.requestId,
          event.targetType,
          event.sessionId
        );
        if (!originalRequest) {
          const request = new NetworkRequest();
          request.onRequestWillBeSent(data31);
          request.sessionId = event.sessionId;
          request.sessionTargetType = event.targetType;
          this.onRequestStarted(request);
          lighthouse_logger_default.verbose("network", `request will be sent to ${request.url}`);
          return;
        }
        if (!data31.redirectResponse) {
          return;
        }
        const modifiedData = {
          ...data31,
          // Copy over the initiator as well to match DevTools behavior
          initiator: originalRequest.initiator,
          requestId: `${originalRequest.requestId}:redirect`
        };
        const redirectedRequest = new NetworkRequest();
        redirectedRequest.onRequestWillBeSent(modifiedData);
        originalRequest.onRedirectResponse(data31);
        lighthouse_logger_default.verbose("network", `${originalRequest.url} redirected to ${redirectedRequest.url}`);
        originalRequest.redirectDestination = redirectedRequest;
        redirectedRequest.redirectSource = originalRequest;
        this.onRequestStarted(redirectedRequest);
        this.onRequestFinished(originalRequest);
      }
      /**
       * @param {{params: LH.Crdp.Network.RequestServedFromCacheEvent, targetType: LH.Protocol.TargetType, sessionId?: string}} event
       */
      onRequestServedFromCache(event) {
        const data31 = event.params;
        const request = this._findRealRequestAndSetSession(
          data31.requestId,
          event.targetType,
          event.sessionId
        );
        if (!request) return;
        lighthouse_logger_default.verbose("network", `${request.url} served from cache`);
        request.onRequestServedFromCache();
      }
      /**
       * @param {{params: LH.Crdp.Network.ResponseReceivedEvent, targetType: LH.Protocol.TargetType, sessionId?: string}} event
       */
      onResponseReceived(event) {
        const data31 = event.params;
        const request = this._findRealRequestAndSetSession(
          data31.requestId,
          event.targetType,
          event.sessionId
        );
        if (!request) return;
        lighthouse_logger_default.verbose("network", `${request.url} response received`);
        request.onResponseReceived(data31);
      }
      /**
       * @param {{params: LH.Crdp.Network.ResponseReceivedExtraInfoEvent, targetType: LH.Protocol.TargetType, sessionId?: string}} event
       */
      onResponseReceivedExtraInfo(event) {
        const data31 = event.params;
        const request = this._findRealRequestAndSetSession(
          data31.requestId,
          event.targetType,
          event.sessionId
        );
        if (!request) return;
        lighthouse_logger_default.verbose("network", `${request.url} response received extra info`);
        request.onResponseReceivedExtraInfo(data31);
      }
      /**
       * @param {{params: LH.Crdp.Network.DataReceivedEvent, targetType: LH.Protocol.TargetType, sessionId?: string}} event
       */
      onDataReceived(event) {
        const data31 = event.params;
        const request = this._findRealRequestAndSetSession(
          data31.requestId,
          event.targetType,
          event.sessionId
        );
        if (!request) return;
        lighthouse_logger_default.verbose("network", `${request.url} data received`);
        request.onDataReceived(data31);
      }
      /**
       * @param {{params: LH.Crdp.Network.LoadingFinishedEvent, targetType: LH.Protocol.TargetType, sessionId?: string}} event
       */
      onLoadingFinished(event) {
        const data31 = event.params;
        const request = this._findRealRequestAndSetSession(
          data31.requestId,
          event.targetType,
          event.sessionId
        );
        if (!request) return;
        lighthouse_logger_default.verbose("network", `${request.url} loading finished`);
        request.onLoadingFinished(data31);
        this.onRequestFinished(request);
      }
      /**
       * @param {{params: LH.Crdp.Network.LoadingFailedEvent, targetType: LH.Protocol.TargetType, sessionId?: string}} event
       */
      onLoadingFailed(event) {
        const data31 = event.params;
        const request = this._findRealRequestAndSetSession(
          data31.requestId,
          event.targetType,
          event.sessionId
        );
        if (!request) return;
        lighthouse_logger_default.verbose("network", `${request.url} loading failed`);
        request.onLoadingFailed(data31);
        this.onRequestFinished(request);
      }
      /**
       * @param {{params: LH.Crdp.Network.ResourceChangedPriorityEvent, targetType: LH.Protocol.TargetType, sessionId?: string}} event
       */
      onResourceChangedPriority(event) {
        const data31 = event.params;
        const request = this._findRealRequestAndSetSession(
          data31.requestId,
          event.targetType,
          event.sessionId
        );
        if (!request) return;
        request.onResourceChangedPriority(data31);
      }
      /**
       * Routes network events to their handlers, so we can construct networkRecords
       * @param {LH.Protocol.RawEventMessage} event
       */
      dispatch(event) {
        switch (event.method) {
          case "Network.requestWillBeSent":
            return this.onRequestWillBeSent(event);
          case "Network.requestServedFromCache":
            return this.onRequestServedFromCache(event);
          case "Network.responseReceived":
            return this.onResponseReceived(event);
          case "Network.responseReceivedExtraInfo":
            return this.onResponseReceivedExtraInfo(event);
          case "Network.dataReceived":
            return this.onDataReceived(event);
          case "Network.loadingFinished":
            return this.onLoadingFinished(event);
          case "Network.loadingFailed":
            return this.onLoadingFailed(event);
          case "Network.resourceChangedPriority":
            return this.onResourceChangedPriority(event);
          default:
            return;
        }
      }
      /**
       * Redirected requests all have identical requestIds over the protocol. Once a request has been
       * redirected all future messages referrencing that requestId are about the new destination, not
       * the original. This method is a helper for finding the real request object to which the current
       * message is referring.
       *
       * @param {string} requestId
       * @param {LH.Protocol.TargetType} targetType
       * @param {string|undefined} sessionId
       * @return {NetworkRequest|undefined}
       */
      _findRealRequestAndSetSession(requestId, targetType, sessionId) {
        let request = this._recordsById.get(requestId);
        if (!request || !request.isValid) return void 0;
        while (request.redirectDestination) {
          request = request.redirectDestination;
        }
        request.setSession(sessionId);
        request.sessionTargetType = targetType;
        return request;
      }
      /**
       * @param {NetworkRequest} record The record to find the initiator of
       * @param {Map<string, NetworkRequest[]>} recordsByURL
       * @return {NetworkRequest|null}
       * @private
       */
      static _chooseInitiatorRequest(record, recordsByURL) {
        if (record.redirectSource) {
          return record.redirectSource;
        }
        const lanternReq = NetworkRequest.asLanternNetworkRequest(record);
        const initiatorURL = graph_exports.PageDependencyGraph.getNetworkInitiators(lanternReq)[0];
        let candidates = recordsByURL.get(initiatorURL) || [];
        candidates = candidates.filter((c) => {
          return c.responseHeadersEndTime <= record.rendererStartTime && c.finished && !c.failed;
        });
        if (candidates.length > 1) {
          const nonPrefetchCandidates = candidates.filter(
            (cand) => cand.resourceType !== NetworkRequest.TYPES.Other
          );
          if (nonPrefetchCandidates.length) {
            candidates = nonPrefetchCandidates;
          }
        }
        if (candidates.length > 1) {
          const sameFrameCandidates = candidates.filter((cand) => cand.frameId === record.frameId);
          if (sameFrameCandidates.length) {
            candidates = sameFrameCandidates;
          }
        }
        if (candidates.length > 1 && record.initiator.type === "parser") {
          const documentCandidates = candidates.filter((cand) => cand.resourceType === NetworkRequest.TYPES.Document);
          if (documentCandidates.length) {
            candidates = documentCandidates;
          }
        }
        if (candidates.length > 1) {
          const linkPreloadCandidates = candidates.filter((c) => c.isLinkPreload);
          if (linkPreloadCandidates.length) {
            const nonPreloadCandidates = candidates.filter((c) => !c.isLinkPreload);
            const allPreloaded = nonPreloadCandidates.every((c) => c.fromDiskCache || c.fromMemoryCache);
            if (nonPreloadCandidates.length && allPreloaded) {
              candidates = linkPreloadCandidates;
            }
          }
        }
        return candidates.length === 1 ? candidates[0] : null;
      }
      /**
       * Construct network records from a log of devtools protocol messages.
       * @param {LH.DevtoolsLog} devtoolsLog
       * @return {Array<LH.Artifacts.NetworkRequest>}
       */
      static recordsFromLogs(devtoolsLog) {
        const networkRecorder = new _NetworkRecorder();
        devtoolsLog.forEach((message) => networkRecorder.dispatch(message));
        const records = networkRecorder.getRawRecords().filter((record) => record.isValid);
        const recordsByURL = /* @__PURE__ */ new Map();
        for (const record of records) {
          const records2 = recordsByURL.get(record.url) || [];
          records2.push(record);
          recordsByURL.set(record.url, records2);
        }
        for (const record of records) {
          const initiatorRequest = _NetworkRecorder._chooseInitiatorRequest(record, recordsByURL);
          if (initiatorRequest) {
            record.setInitiatorRequest(initiatorRequest);
          }
          let finalRecord = record;
          while (finalRecord.redirectDestination) finalRecord = finalRecord.redirectDestination;
          if (finalRecord === record || finalRecord.redirects) continue;
          const redirects = [];
          for (let redirect = finalRecord.redirectSource; redirect; redirect = redirect.redirectSource) {
            redirects.unshift(redirect);
          }
          finalRecord.redirects = redirects;
        }
        return records;
      }
    };
  }
});

// core/computed/network-records.js
var NetworkRecords, NetworkRecordsComputed;
var init_network_records = __esm({
  "core/computed/network-records.js"() {
    "use strict";
    init_process_global();
    init_lh();
    init_computed_artifact();
    init_network_recorder();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    NetworkRecords = class {
      static {
        __name(this, "NetworkRecords");
      }
      /**
       * @param {LH.DevtoolsLog} devtoolsLog
       * @return {Promise<Array<LH.Artifacts.NetworkRequest>>} networkRecords
       */
      static async compute_(devtoolsLog) {
        return NetworkRecorder.recordsFromLogs(devtoolsLog);
      }
    };
    NetworkRecordsComputed = makeComputedArtifact(NetworkRecords, null);
  }
});

// core/computed/network-analysis.js
var NetworkAnalysis, NetworkAnalysisComputed;
var init_network_analysis = __esm({
  "core/computed/network-analysis.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_lantern2();
    init_computed_artifact();
    init_network_records();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    NetworkAnalysis = class {
      static {
        __name(this, "NetworkAnalysis");
      }
      /**
       * @param {LH.DevtoolsLog} devtoolsLog
       * @param {LH.Artifacts.ComputedContext} context
       * @return {Promise<LH.Artifacts.NetworkAnalysis>}
       */
      static async compute_(devtoolsLog, context) {
        const records = await NetworkRecordsComputed.request(devtoolsLog, context);
        const analysis = core_exports.NetworkAnalyzer.analyze(
          records
        );
        if (!analysis) {
          lighthouse_logger_default.error("NetworkAnalysis", "Network analysis failed due to lack of transfer data");
          return {
            throughput: 0,
            rtt: Number.POSITIVE_INFINITY,
            additionalRttByOrigin: /* @__PURE__ */ new Map(),
            serverResponseTimeByOrigin: /* @__PURE__ */ new Map()
          };
        }
        return analysis;
      }
    };
    NetworkAnalysisComputed = makeComputedArtifact(NetworkAnalysis, null);
  }
});

// core/computed/load-simulator.js
var LoadSimulator, LoadSimulatorComputed;
var init_load_simulator = __esm({
  "core/computed/load-simulator.js"() {
    "use strict";
    init_process_global();
    init_computed_artifact();
    init_lantern2();
    init_network_analysis();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    LoadSimulator = class {
      static {
        __name(this, "LoadSimulator");
      }
      /**
       * @param {{devtoolsLog: LH.DevtoolsLog, settings: LH.Audit.Context['settings']}} data
       * @param {LH.Artifacts.ComputedContext} context
       * @return {Promise<LH.Gatherer.Simulation.Simulator>}
       */
      static async compute_(data31, context) {
        const networkAnalysis = await NetworkAnalysisComputed.request(data31.devtoolsLog, context);
        return simulation_exports.Simulator.createSimulator({ ...data31.settings, networkAnalysis });
      }
      /**
       * @param {LH.Artifacts.NetworkAnalysis} networkAnalysis
       * @return {LH.PrecomputedLanternData}
       */
      static convertAnalysisToSaveableLanternData(networkAnalysis) {
        const lanternData = { additionalRttByOrigin: {}, serverResponseTimeByOrigin: {} };
        for (const [origin, value] of networkAnalysis.additionalRttByOrigin.entries()) {
          if (origin.startsWith("http")) lanternData.additionalRttByOrigin[origin] = value;
        }
        for (const [origin, value] of networkAnalysis.serverResponseTimeByOrigin.entries()) {
          if (origin.startsWith("http")) lanternData.serverResponseTimeByOrigin[origin] = value;
        }
        return lanternData;
      }
    };
    LoadSimulatorComputed = makeComputedArtifact(LoadSimulator, ["devtoolsLog", "settings"]);
  }
});

// core/lib/asset-saver.js
import fs from "fs";
import path3 from "path";
import stream from "stream";
import { createGzip, gunzipSync } from "zlib";
async function writeJson(contents, path7, gzip) {
  const writeStream = fs.createWriteStream(gzip ? path7 + ".gz" : path7);
  if (gzip) {
    await stream.promises.pipeline(contents, createGzip(), writeStream);
  } else {
    await stream.promises.pipeline(contents, writeStream);
  }
}
function readJson(filename, reviver) {
  if (fs.existsSync(filename + ".gz")) {
    filename = filename + ".gz";
  }
  if (!filename.endsWith(".json.gz")) {
    return JSON.parse(fs.readFileSync(filename, "utf8"), reviver);
  }
  const buffer = gunzipSync(fs.readFileSync(filename));
  return JSON.parse(buffer.toString("utf8"), reviver);
}
function endsWithSuffix(filename, suffix) {
  return filename.endsWith(suffix) || filename.endsWith(suffix + ".gz");
}
function loadArtifacts(basePath) {
  lighthouse_logger_default.log("Reading artifacts from disk:", basePath);
  if (!fs.existsSync(basePath)) {
    throw new Error("No saved artifacts found at " + basePath);
  }
  const artifacts = readJson(path3.join(basePath, artifactsFilename), LighthouseError.parseReviver);
  const filenames = fs.readdirSync(basePath);
  filenames.filter((f) => endsWithSuffix(f, devtoolsFilename)).forEach((filename) => {
    const devtoolsLog = readJson(path3.join(basePath, filename));
    if (filename.startsWith(devtoolsFilename)) {
      artifacts.DevtoolsLog = devtoolsLog;
    } else if (filename.startsWith(errorPrefix)) {
      artifacts.DevtoolsLogError = devtoolsLog;
    }
  });
  filenames.filter((f) => endsWithSuffix(f, traceFilename)).forEach((filename) => {
    let trace = readJson(path3.join(basePath, filename));
    if (Array.isArray(trace)) {
      trace = { traceEvents: trace };
    }
    if (filename.startsWith(traceFilename)) {
      artifacts.Trace = trace;
    } else if (filename.startsWith(errorPrefix)) {
      artifacts.TraceError = trace;
    }
  });
  if (Array.isArray(artifacts.Timing)) {
    artifacts.Timing.forEach((entry) => entry.gather = true);
  }
  return artifacts;
}
function stringifyReplacer(key, value) {
  if (value instanceof Error) {
    return LighthouseError.stringifyReplacer(value);
  }
  return value;
}
async function saveArtifacts(artifacts, basePath, options = {}) {
  const status = { msg: "Saving artifacts", id: "lh:assetSaver:saveArtifacts" };
  lighthouse_logger_default.time(status);
  fs.mkdirSync(basePath, { recursive: true });
  const filenames = fs.readdirSync(basePath);
  for (const filename of filenames) {
    const isPreviousFile = filename.endsWith(traceFilename) || filename.endsWith(devtoolsFilename) || filename.endsWith(traceFilename + ".gz") || filename.endsWith(devtoolsFilename + ".gz") || filename === artifactsFilename || filename === artifactsFilename + ".gz";
    if (isPreviousFile) {
      fs.unlinkSync(`${basePath}/${filename}`);
    }
  }
  const {
    DevtoolsLog: DevtoolsLog2,
    Trace: Trace2,
    DevtoolsLogError,
    TraceError,
    ...restArtifacts
  } = artifacts;
  if (Trace2) {
    await saveTrace(Trace2, `${basePath}/${traceFilename}`, options);
  }
  if (TraceError) {
    await saveTrace(TraceError, `${basePath}/${errorPrefix}${traceFilename}`, options);
  }
  if (DevtoolsLog2) {
    await saveDevtoolsLog(
      DevtoolsLog2,
      `${basePath}/${devtoolsFilename}`,
      options
    );
  }
  if (DevtoolsLogError) {
    await saveDevtoolsLog(
      DevtoolsLogError,
      `${basePath}/${errorPrefix}${devtoolsFilename}`,
      options
    );
  }
  const restArtifactsString = JSON.stringify(restArtifacts, stringifyReplacer, 2);
  await writeJson(function* () {
    yield restArtifactsString;
    yield "\n";
  }, `${basePath}/${artifactsFilename}`, !!options.gzip);
  lighthouse_logger_default.log("Artifacts saved to disk in folder:", basePath);
  lighthouse_logger_default.timeEnd(status);
}
function saveLhr(lhr, basePath) {
  fs.writeFileSync(`${basePath}/lhr.report.json`, JSON.stringify(lhr, null, 2));
}
function* arrayOfObjectsJsonGenerator(arrayOfObjects) {
  const ITEMS_PER_ITERATION = 500;
  yield "[\n";
  if (arrayOfObjects.length > 0) {
    const itemsIterator = arrayOfObjects[Symbol.iterator]();
    const firstItem = itemsIterator.next().value;
    yield `  ${JSON.stringify(firstItem)}`;
    let itemsRemaining = ITEMS_PER_ITERATION;
    let itemsJSON = "";
    for (const item of itemsIterator) {
      itemsJSON += `,
  ${JSON.stringify(item)}`;
      itemsRemaining--;
      if (itemsRemaining === 0) {
        yield itemsJSON;
        itemsRemaining = ITEMS_PER_ITERATION;
        itemsJSON = "";
      }
    }
    yield itemsJSON;
  }
  yield "\n]";
}
function* traceJsonGenerator(traceData) {
  const { traceEvents, ...rest } = traceData;
  yield "{\n";
  yield '"traceEvents": ';
  yield* arrayOfObjectsJsonGenerator(traceEvents);
  for (const [key, value] of Object.entries(rest)) {
    yield `,
"${key}": ${JSON.stringify(value, null, 2)}`;
  }
  yield "}\n";
}
function saveTrace(traceData, traceFilename2, options = {}) {
  const traceIter = traceJsonGenerator(traceData);
  return writeJson(traceIter, traceFilename2, !!options.gzip);
}
function saveDevtoolsLog(devtoolsLog, devtoolLogFilename, options = {}) {
  return writeJson(function* () {
    yield* arrayOfObjectsJsonGenerator(devtoolsLog);
    yield "\n";
  }, devtoolLogFilename, !!options.gzip);
}
var artifactsFilename, traceFilename, devtoolsFilename, errorPrefix;
var init_asset_saver = __esm({
  "core/lib/asset-saver.js"() {
    "use strict";
    init_process_global();
    init_url();
    init_lighthouse_logger();
    init_lantern2();
    init_lantern_trace_saver();
    init_metric_trace_events();
    init_network_analysis();
    init_load_simulator();
    init_lh_error();
    init_root2();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    artifactsFilename = "artifacts.json";
    traceFilename = "trace.json";
    devtoolsFilename = "devtoolslog.json";
    errorPrefix = "pageLoadError.";
    __name(writeJson, "writeJson");
    __name(readJson, "readJson");
    __name(endsWithSuffix, "endsWithSuffix");
    __name(loadArtifacts, "loadArtifacts");
    __name(stringifyReplacer, "stringifyReplacer");
    __name(saveArtifacts, "saveArtifacts");
    __name(saveLhr, "saveLhr");
    __name(arrayOfObjectsJsonGenerator, "arrayOfObjectsJsonGenerator");
    __name(traceJsonGenerator, "traceJsonGenerator");
    __name(saveTrace, "saveTrace");
    __name(saveDevtoolsLog, "saveDevtoolsLog");
  }
});

// core/config/constants.js
var constants_exports = {};
__export(constants_exports, {
  defaultSettings: () => defaultSettings,
  nonSimulatedSettingsOverrides: () => nonSimulatedSettingsOverrides,
  screenEmulationMetrics: () => screenEmulationMetrics,
  throttling: () => throttling2,
  userAgents: () => userAgents
});
var throttling2, MOTOGPOWER_EMULATION_METRICS, DESKTOP_EMULATION_METRICS, screenEmulationMetrics, MOTOG4_USERAGENT, DESKTOP_USERAGENT, userAgents, defaultSettings, nonSimulatedSettingsOverrides;
var init_constants = __esm({
  "core/config/constants.js"() {
    "use strict";
    init_process_global();
    init_lh();
    init_lantern2();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    throttling2 = simulation_exports.Constants.throttling;
    MOTOGPOWER_EMULATION_METRICS = {
      mobile: true,
      width: 412,
      height: 823,
      // This value has some interesting ramifications for image-size-responsive, see:
      // https://github.com/GoogleChrome/lighthouse/issues/10741#issuecomment-626903508
      deviceScaleFactor: 1.75,
      disabled: false
    };
    DESKTOP_EMULATION_METRICS = {
      mobile: false,
      width: 1350,
      height: 940,
      deviceScaleFactor: 1,
      disabled: false
    };
    screenEmulationMetrics = {
      mobile: MOTOGPOWER_EMULATION_METRICS,
      desktop: DESKTOP_EMULATION_METRICS
    };
    MOTOG4_USERAGENT = "Mozilla/5.0 (Linux; Android 11; moto g power (2022)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Mobile Safari/537.36";
    DESKTOP_USERAGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36";
    userAgents = {
      mobile: MOTOG4_USERAGENT,
      desktop: DESKTOP_USERAGENT
    };
    defaultSettings = {
      output: "json",
      maxWaitForFcp: 30 * 1e3,
      maxWaitForLoad: 45 * 1e3,
      pauseAfterFcpMs: 1e3,
      pauseAfterLoadMs: 1e3,
      networkQuietThresholdMs: 1e3,
      cpuQuietThresholdMs: 1e3,
      formFactor: "mobile",
      throttling: throttling2.mobileSlow4G,
      throttlingMethod: "simulate",
      screenEmulation: screenEmulationMetrics.mobile,
      emulatedUserAgent: userAgents.mobile,
      auditMode: false,
      gatherMode: false,
      clearStorageTypes: ["file_systems", "shader_cache", "service_workers", "cache_storage"],
      disableStorageReset: false,
      debugNavigation: false,
      channel: "node",
      usePassiveGathering: false,
      disableFullPageScreenshot: false,
      skipAboutBlank: false,
      blankPage: "about:blank",
      ignoreStatusCode: false,
      // the following settings have no defaults but we still want ensure that `key in settings`
      // in config will work in a typechecked way
      locale: "en-US",
      // actual default determined by Config using lib/i18n
      blockedUrlPatterns: null,
      additionalTraceCategories: null,
      extraHeaders: null,
      precomputedLanternData: null,
      onlyAudits: null,
      onlyCategories: null,
      skipAudits: null
    };
    nonSimulatedSettingsOverrides = {
      pauseAfterFcpMs: 5250,
      pauseAfterLoadMs: 5250,
      networkQuietThresholdMs: 5250,
      cpuQuietThresholdMs: 5250
    };
  }
});

// core/config/default-config.js
var UIStrings22, str_2, defaultConfig, default_config_default;
var init_default_config = __esm({
  "core/config/default-config.js"() {
    "use strict";
    init_process_global();
    init_lh();
    init_constants();
    init_i18n();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings22 = {
      /** Title of the Performance category of audits. Equivalent to 'Web performance', this term is inclusive of all web page speed and loading optimization topics. Also used as a label of a score gauge; try to limit to 20 characters. */
      performanceCategoryTitle: "Performance",
      /** Title of the speed metrics section of the Performance category. Within this section are various speed metrics which quantify the pageload performance into values presented in seconds and milliseconds. */
      metricGroupTitle: "Metrics",
      /** Title of the insights section of the Performance category. Within this section are various insights to give developers tips on how to improve the performance of their page. */
      insightsGroupTitle: "Insights",
      /** Description of the insights section of the Performance category. Within this section are various insights to give developers tips on how to improve the performance of their page. */
      insightsGroupDescription: "These insights are also available in the Chrome DevTools Performance Panel - [record a trace](https://developer.chrome.com/docs/devtools/performance/reference) to view more detailed information.",
      /** Title of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the time of the first initial render of the webpage. */
      firstPaintImprovementsGroupTitle: "First Paint Improvements",
      /** Description of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the time of the first initial render of the webpage. */
      firstPaintImprovementsGroupDescription: "The most critical aspect of performance is how quickly pixels are rendered onscreen. Key metrics: First Contentful Paint, First Meaningful Paint",
      /** Title of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the overall loading performance of their web page. */
      overallImprovementsGroupTitle: "Overall Improvements",
      /** Description of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the overall loading performance of their web page. */
      overallImprovementsGroupDescription: "Enhance the overall loading experience, so the page is responsive and ready to use as soon as possible. Key metrics: Time to Interactive, Speed Index",
      /** Title of the diagnostics section of the Performance category. Within this section are audits with non-imperative titles that provide more detail on the page's page load performance characteristics. Whereas the 'Opportunities' suggest an action along with expected time savings, diagnostics do not. Within this section, the user may read the details and deduce additional actions they could take. */
      diagnosticsGroupTitle: "Diagnostics",
      /** Description of the diagnostics section of the Performance category. Within this section are audits with non-imperative titles that provide more detail on a web page's load performance characteristics. Within this section, the user may read the details and deduce additional actions they could take to improve performance. */
      diagnosticsGroupDescription: "More information about the performance of your application. These numbers don't [directly affect](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/) the Performance score.",
      /** Title of the Accessibility category of audits. This section contains audits focused on making web content accessible to all users. Also used as a label of a score gauge; try to limit to 20 characters. */
      a11yCategoryTitle: "Accessibility",
      /** Description of the Accessibility category. This is displayed at the top of a list of audits focused on making web content accessible to all users. No character length limits. 'improve the accessibility of your web app' and 'manual testing' become link texts to additional documentation. */
      a11yCategoryDescription: "These checks highlight opportunities to [improve the accessibility of your web app](https://developer.chrome.com/docs/lighthouse/accessibility/). Automatic detection can only detect a subset of issues and does not guarantee the accessibility of your web app, so [manual testing](https://web.dev/articles/how-to-review) is also encouraged.",
      /** Description of the Accessibility manual checks category. This description is displayed above a list of accessibility audits that currently have no automated test and so must be verified manually by the user. No character length limits. 'conducting an accessibility review' becomes link text to additional documentation. */
      a11yCategoryManualDescription: "These items address areas which an automated testing tool cannot cover. Learn more in our guide on [conducting an accessibility review](https://web.dev/articles/how-to-review).",
      /** Title of the best practices section of the Accessibility category. Within this section are audits with descriptive titles that highlight common accessibility best practices. */
      a11yBestPracticesGroupTitle: "Best practices",
      /** Description of the best practices section within the Accessibility category. Within this section are audits with descriptive titles that highlight common accessibility best practices. */
      a11yBestPracticesGroupDescription: "These items highlight common accessibility best practices.",
      /** Title of the color contrast section within the Accessibility category. Within this section are audits with descriptive titles that highlight the color and vision aspects of the page's accessibility that are passing or failing. */
      a11yColorContrastGroupTitle: "Contrast",
      /** Description of the color contrast section within the Accessibility category. Within this section are audits with descriptive titles that highlight the color and vision aspects of the page's accessibility that are passing or failing. */
      a11yColorContrastGroupDescription: "These are opportunities to improve the legibility of your content.",
      /** Title of the HTML element naming section within the Accessibility category. Within this section are audits with descriptive titles that highlight if the non-textual HTML elements on the page have names discernible by a screen reader. */
      a11yNamesLabelsGroupTitle: "Names and labels",
      /** Description of the HTML element naming section within the Accessibility category. Within this section are audits with descriptive titles that highlight if the non-textual HTML elements on the page have names discernible by a screen reader. */
      a11yNamesLabelsGroupDescription: "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.",
      /** Title of the navigation section within the Accessibility category. Within this section are audits with descriptive titles that highlight opportunities to improve keyboard navigation. */
      a11yNavigationGroupTitle: "Navigation",
      /** Description of the navigation section within the Accessibility category. Within this section are audits with descriptive titles that highlight opportunities to improve keyboard navigation. */
      a11yNavigationGroupDescription: "These are opportunities to improve keyboard navigation in your application.",
      /** Title of the ARIA validity section within the Accessibility category. Within this section are audits with descriptive titles that highlight if whether all the aria-* HTML attributes have been used properly. */
      a11yAriaGroupTitle: "ARIA",
      /** Description of the ARIA validity section within the Accessibility category. Within this section are audits with descriptive titles that highlight if whether all the aria-* HTML attributes have been used properly. */
      a11yAriaGroupDescription: "These are opportunities to improve the usage of ARIA in your application which may enhance the experience for users of assistive technology, like a screen reader.",
      /** Title of the language section within the Accessibility category. Within this section are audits with descriptive titles that highlight if the language has been annotated in the correct HTML attributes on the page. */
      a11yLanguageGroupTitle: "Internationalization and localization",
      /** Description of the language section within the Accessibility category. Within this section are audits with descriptive titles that highlight if the language has been annotated in the correct HTML attributes on the page. */
      a11yLanguageGroupDescription: "These are opportunities to improve the interpretation of your content by users in different locales.",
      /** Title of the navigation section within the Accessibility category. Within this section are audits with descriptive titles that highlight opportunities to provide alternative content for audio and video. */
      a11yAudioVideoGroupTitle: "Audio and video",
      /** Description of the navigation section within the Accessibility category. Within this section are audits with descriptive titles that highlight opportunities to provide alternative content for audio and video. */
      a11yAudioVideoGroupDescription: "These are opportunities to provide alternative content for audio and video. This may improve the experience for users with hearing or vision impairments.",
      /** Title of the navigation section within the Accessibility category. Within this section are audits with descriptive titles that highlight opportunities to improve the experience of reading tabular or list data using assistive technology. */
      a11yTablesListsVideoGroupTitle: "Tables and lists",
      /** Description of the navigation section within the Accessibility category. Within this section are audits with descriptive titles that highlight opportunities to improve the experience of reading tabular or list data using assistive technology. */
      a11yTablesListsVideoGroupDescription: "These are opportunities to improve the experience of reading tabular or list data using assistive technology, like a screen reader.",
      /** Title of the Search Engine Optimization (SEO) category of audits. This is displayed at the top of a list of audits focused on topics related to optimizing a website for indexing by search engines. Also used as a label of a score gauge; try to limit to 20 characters. */
      seoCategoryTitle: "SEO",
      /** Description of the Search Engine Optimization (SEO) category. This is displayed at the top of a list of audits focused on optimizing a website for indexing by search engines. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      seoCategoryDescription: "These checks ensure that your page is following basic search engine optimization advice. There are many additional factors Lighthouse does not score here that may affect your search ranking, including performance on [Core Web Vitals](https://web.dev/explore/vitals). [Learn more about Google Search Essentials](https://support.google.com/webmasters/answer/35769).",
      /** Description of the Search Engine Optimization (SEO) manual checks category, the additional validators must be run by hand in order to check all SEO best practices. This is displayed at the top of a list of manually run audits focused on optimizing a website for indexing by search engines. No character length limits. */
      seoCategoryManualDescription: "Run these additional validators on your site to check additional SEO best practices.",
      /** Title of the navigation section within the Search Engine Optimization (SEO) category. Within this section are audits with descriptive titles that highlight opportunities to make a page more usable on mobile devices. */
      seoMobileGroupTitle: "Mobile Friendly",
      /** Description of the navigation section within the Search Engine Optimization (SEO) category. Within this section are audits with descriptive titles that highlight opportunities to make a page more usable on mobile devices. */
      seoMobileGroupDescription: "Make sure your pages are mobile friendly so users don’t have to pinch or zoom in order to read the content pages. [Learn how to make pages mobile-friendly](https://developers.google.com/search/mobile-sites/).",
      /** Title of the navigation section within the Search Engine Optimization (SEO) category. Within this section are audits with descriptive titles that highlight ways to make a website content more easily understood by search engine crawler bots. */
      seoContentGroupTitle: "Content Best Practices",
      /** Description of the navigation section within the Search Engine Optimization (SEO) category. Within this section are audits with descriptive titles that highlight ways to make a website content more easily understood by search engine crawler bots. */
      seoContentGroupDescription: "Format your HTML in a way that enables crawlers to better understand your app’s content.",
      /** Title of the navigation section within the Search Engine Optimization (SEO) category. Within this section are audits with descriptive titles that highlight ways to make a website accessible to search engine crawlers. */
      seoCrawlingGroupTitle: "Crawling and Indexing",
      /** Description of the navigation section within the Search Engine Optimization (SEO) category. Within this section are audits with descriptive titles that highlight ways to make a website accessible to search engine crawlers. */
      seoCrawlingGroupDescription: "To appear in search results, crawlers need access to your app.",
      /** Title of the Best Practices category of audits. This is displayed at the top of a list of audits focused on topics related to following web development best practices and accepted guidelines. Also used as a label of a score gauge; try to limit to 20 characters. */
      bestPracticesCategoryTitle: "Best Practices",
      /** Title of the Trust & Safety group of audits. This is displayed at the top of a list of audits focused on maintaining user trust and protecting security in web development. */
      bestPracticesTrustSafetyGroupTitle: "Trust and Safety",
      /** Title of the User Experience group of the Best Practices category. Within this section are the audits related to the end user's experience of the webpage. */
      bestPracticesUXGroupTitle: "User Experience",
      /** Title of the Browser Compatibility group of the Best Practices category. Within this section are the audits related to whether the page is interpreted consistently by browsers. */
      bestPracticesBrowserCompatGroupTitle: "Browser Compatibility",
      /** Title of the General group of the Best Practices category. Within this section are the audits that don't belong to a specific group but are of general interest. */
      bestPracticesGeneralGroupTitle: "General",
      /** Title of the Agentic Browsing category of audits. */
      agenticBrowsingCategoryTitle: "Agentic Browsing",
      /** Description of the Agentic Browsing category. */
      agenticBrowsingCategoryDescription: "These checks ensure high-quality, [browsable websites for AI agents](https://goo.gle/lighthouse-agentic-web) and validate the correctness of WebMCP integrations. This category is still under development and subject to change.",
      /** Title of the WebMCP group of audits. */
      webmcpGroupTitle: "WebMCP",
      /** Description of the WebMCP group. */
      webmcpGroupDescription: "Audits validating WebMCP integration.",
      /** Title of the Agent Accessibility group of audits. */
      agentAccessibilityGroupTitle: "Agent Accessibility",
      /** Description of the Agent Accessibility group of audits. */
      agentAccessibilityGroupDescription: "These audits highlight best practices for improving the accessibility of the website for AI agents."
    };
    str_2 = createIcuMessageFn({ url: "core/config/default-config.js" }.url, UIStrings22);
    defaultConfig = {
      settings: defaultSettings,
      artifacts: [
        { id: "WebMCP", gatherer: "webmcp" },
        { id: "WebMcpSchemaIssues", gatherer: "webmcp-schema" },
        { id: "LlmsTxt", gatherer: "agentic/llms-txt" },
        // Artifacts which can be depended on come first.
        { id: "DevtoolsLog", gatherer: "devtools-log" },
        { id: "Trace", gatherer: "trace" },
        { id: "Accessibility", gatherer: "accessibility" },
        { id: "AnchorElements", gatherer: "anchor-elements" },
        { id: "ConsoleMessages", gatherer: "console-messages" },
        { id: "CSSUsage", gatherer: "css-usage" },
        { id: "Doctype", gatherer: "dobetterweb/doctype" },
        { id: "Inputs", gatherer: "inputs" },
        { id: "IFrameElements", gatherer: "iframe-elements" },
        { id: "ImageElements", gatherer: "image-elements" },
        { id: "InspectorIssues", gatherer: "inspector-issues" },
        { id: "JsUsage", gatherer: "js-usage" },
        { id: "LinkElements", gatherer: "link-elements" },
        { id: "MainDocumentContent", gatherer: "main-document-content" },
        { id: "MetaElements", gatherer: "meta-elements" },
        { id: "NetworkUserAgent", gatherer: "network-user-agent" },
        { id: "RobotsTxt", gatherer: "seo/robots-txt" },
        { id: "Scripts", gatherer: "scripts" },
        { id: "SourceMaps", gatherer: "source-maps" },
        { id: "Stacks", gatherer: "stacks" },
        { id: "Stylesheets", gatherer: "stylesheets" },
        { id: "TraceElements", gatherer: "trace-elements" },
        { id: "ViewportDimensions", gatherer: "viewport-dimensions" },
        // FullPageScreenshot comes at the end so all other node analysis is captured.
        { id: "FullPageScreenshot", gatherer: "full-page-screenshot" },
        // BFCacheFailures comes at the very end because it can perform a page navigation.
        { id: "BFCacheFailures", gatherer: "bf-cache-failures" }
      ],
      audits: [
        "is-on-https",
        "redirects-http",
        "metrics/first-contentful-paint",
        "metrics/largest-contentful-paint",
        "metrics/speed-index",
        "screenshot-thumbnails",
        "final-screenshot",
        "metrics/total-blocking-time",
        "metrics/max-potential-fid",
        "metrics/cumulative-layout-shift",
        "metrics/interaction-to-next-paint",
        "errors-in-console",
        "server-response-time",
        "metrics/interactive",
        "user-timings",
        "redirects",
        "image-aspect-ratio",
        "image-size-responsive",
        "deprecations",
        "third-party-cookies",
        "mainthread-work-breakdown",
        "bootup-time",
        "diagnostics",
        "network-requests",
        "network-rtt",
        "network-server-latency",
        "main-thread-tasks",
        "metrics",
        "resource-summary",
        "layout-shifts",
        "long-tasks",
        "non-composited-animations",
        "unsized-images",
        "valid-source-maps",
        "csp-xss",
        "has-hsts",
        "origin-isolation",
        "clickjacking-mitigation",
        "trusted-types-xss",
        "script-treemap-data",
        "accessibility/accesskeys",
        "accessibility/aria-allowed-attr",
        "accessibility/aria-allowed-role",
        "accessibility/aria-command-name",
        "accessibility/aria-conditional-attr",
        "accessibility/aria-deprecated-role",
        "accessibility/aria-dialog-name",
        "accessibility/aria-hidden-body",
        "accessibility/aria-hidden-focus",
        "accessibility/aria-input-field-name",
        "accessibility/aria-meter-name",
        "accessibility/aria-progressbar-name",
        "accessibility/aria-prohibited-attr",
        "accessibility/aria-required-attr",
        "accessibility/aria-required-children",
        "accessibility/aria-required-parent",
        "accessibility/aria-roles",
        "accessibility/aria-text",
        "accessibility/aria-toggle-field-name",
        "accessibility/aria-tooltip-name",
        "accessibility/aria-treeitem-name",
        "accessibility/aria-valid-attr-value",
        "accessibility/aria-valid-attr",
        "accessibility/button-name",
        "accessibility/bypass",
        "accessibility/color-contrast",
        "accessibility/definition-list",
        "accessibility/dlitem",
        "accessibility/document-title",
        "accessibility/duplicate-id-aria",
        "accessibility/empty-heading",
        "accessibility/form-field-multiple-labels",
        "accessibility/frame-title",
        "accessibility/heading-order",
        "accessibility/html-has-lang",
        "accessibility/html-lang-valid",
        "accessibility/html-xml-lang-mismatch",
        "accessibility/identical-links-same-purpose",
        "accessibility/image-alt",
        "accessibility/image-redundant-alt",
        "accessibility/input-button-name",
        "accessibility/input-image-alt",
        "accessibility/label-content-name-mismatch",
        "accessibility/label",
        "accessibility/landmark-one-main",
        "accessibility/link-name",
        "accessibility/link-in-text-block",
        "accessibility/list",
        "accessibility/listitem",
        "accessibility/meta-refresh",
        "accessibility/meta-viewport",
        "accessibility/object-alt",
        "accessibility/select-name",
        "accessibility/skip-link",
        "accessibility/tabindex",
        "accessibility/table-duplicate-name",
        "accessibility/table-fake-caption",
        "accessibility/target-size",
        "accessibility/td-has-header",
        "accessibility/td-headers-attr",
        "accessibility/th-has-data-cells",
        "accessibility/valid-lang",
        "accessibility/video-caption",
        "accessibility/manual/custom-controls-labels",
        "accessibility/manual/custom-controls-roles",
        "accessibility/manual/focus-traps",
        "accessibility/manual/focusable-controls",
        "accessibility/manual/interactive-element-affordance",
        "accessibility/manual/logical-tab-order",
        "accessibility/manual/managed-focus",
        "accessibility/manual/offscreen-content-hidden",
        "accessibility/manual/use-landmarks",
        "accessibility/manual/visual-order-follows-dom",
        "accessibility/autocomplete-valid",
        "accessibility/presentation-role-conflict",
        "accessibility/svg-img-alt",
        "byte-efficiency/total-byte-weight",
        "byte-efficiency/unminified-css",
        "byte-efficiency/unminified-javascript",
        "byte-efficiency/unused-css-rules",
        "byte-efficiency/unused-javascript",
        "dobetterweb/doctype",
        "dobetterweb/charset",
        "dobetterweb/geolocation-on-start",
        "dobetterweb/inspector-issues",
        "dobetterweb/js-libraries",
        "dobetterweb/notification-on-start",
        "dobetterweb/paste-preventing-inputs",
        "baseline",
        "seo/meta-description",
        "seo/http-status-code",
        "seo/link-text",
        "seo/crawlable-anchors",
        "seo/is-crawlable",
        "seo/robots-txt",
        "seo/hreflang",
        "seo/canonical",
        "seo/manual/structured-data",
        "agentic/agent-accessibility-tree",
        "webmcp-registered-tools",
        "webmcp-form-coverage",
        "webmcp-schema-validity",
        "agentic/llms-txt",
        "bf-cache",
        "insights/cache-insight",
        "insights/cls-culprits-insight",
        "insights/document-latency-insight",
        "insights/dom-size-insight",
        "insights/duplicated-javascript-insight",
        "insights/font-display-insight",
        "insights/forced-reflow-insight",
        "insights/image-delivery-insight",
        "insights/inp-breakdown-insight",
        "insights/lcp-breakdown-insight",
        "insights/lcp-discovery-insight",
        "insights/legacy-javascript-insight",
        "insights/modern-http-insight",
        "insights/network-dependency-tree-insight",
        "insights/render-blocking-insight",
        "insights/third-parties-insight",
        "insights/viewport-insight"
      ],
      groups: {
        "metrics": {
          title: str_2(UIStrings22.metricGroupTitle)
        },
        "insights": {
          title: str_2(UIStrings22.insightsGroupTitle),
          description: str_2(UIStrings22.insightsGroupDescription)
        },
        "diagnostics": {
          title: str_2(UIStrings22.diagnosticsGroupTitle),
          description: str_2(UIStrings22.diagnosticsGroupDescription)
        },
        "a11y-best-practices": {
          title: str_2(UIStrings22.a11yBestPracticesGroupTitle),
          description: str_2(UIStrings22.a11yBestPracticesGroupDescription)
        },
        "a11y-color-contrast": {
          title: str_2(UIStrings22.a11yColorContrastGroupTitle),
          description: str_2(UIStrings22.a11yColorContrastGroupDescription)
        },
        "a11y-names-labels": {
          title: str_2(UIStrings22.a11yNamesLabelsGroupTitle),
          description: str_2(UIStrings22.a11yNamesLabelsGroupDescription)
        },
        "a11y-navigation": {
          title: str_2(UIStrings22.a11yNavigationGroupTitle),
          description: str_2(UIStrings22.a11yNavigationGroupDescription)
        },
        "a11y-aria": {
          title: str_2(UIStrings22.a11yAriaGroupTitle),
          description: str_2(UIStrings22.a11yAriaGroupDescription)
        },
        "a11y-language": {
          title: str_2(UIStrings22.a11yLanguageGroupTitle),
          description: str_2(UIStrings22.a11yLanguageGroupDescription)
        },
        "a11y-audio-video": {
          title: str_2(UIStrings22.a11yAudioVideoGroupTitle),
          description: str_2(UIStrings22.a11yAudioVideoGroupDescription)
        },
        "a11y-tables-lists": {
          title: str_2(UIStrings22.a11yTablesListsVideoGroupTitle),
          description: str_2(UIStrings22.a11yTablesListsVideoGroupDescription)
        },
        "seo-mobile": {
          title: str_2(UIStrings22.seoMobileGroupTitle),
          description: str_2(UIStrings22.seoMobileGroupDescription)
        },
        "seo-content": {
          title: str_2(UIStrings22.seoContentGroupTitle),
          description: str_2(UIStrings22.seoContentGroupDescription)
        },
        "seo-crawl": {
          title: str_2(UIStrings22.seoCrawlingGroupTitle),
          description: str_2(UIStrings22.seoCrawlingGroupDescription)
        },
        "best-practices-trust-safety": {
          title: str_2(UIStrings22.bestPracticesTrustSafetyGroupTitle)
        },
        "best-practices-ux": {
          title: str_2(UIStrings22.bestPracticesUXGroupTitle)
        },
        "best-practices-browser-compat": {
          title: str_2(UIStrings22.bestPracticesBrowserCompatGroupTitle)
        },
        "best-practices-general": {
          title: str_2(UIStrings22.bestPracticesGeneralGroupTitle)
        },
        "webmcp": {
          title: str_2(UIStrings22.webmcpGroupTitle),
          description: str_2(UIStrings22.webmcpGroupDescription)
        },
        "agent-accessibility": {
          title: str_2(UIStrings22.agentAccessibilityGroupTitle),
          description: str_2(UIStrings22.agentAccessibilityGroupDescription)
        },
        // Group for audits that should not be displayed.
        "hidden": { title: "" }
      },
      categories: {
        "performance": {
          title: str_2(UIStrings22.performanceCategoryTitle),
          supportedModes: ["navigation", "timespan", "snapshot"],
          auditRefs: [
            { id: "first-contentful-paint", weight: 10, group: "metrics", acronym: "FCP" },
            { id: "largest-contentful-paint", weight: 25, group: "metrics", acronym: "LCP" },
            { id: "total-blocking-time", weight: 30, group: "metrics", acronym: "TBT" },
            { id: "cumulative-layout-shift", weight: 25, group: "metrics", acronym: "CLS" },
            { id: "speed-index", weight: 10, group: "metrics", acronym: "SI" },
            { id: "interaction-to-next-paint", weight: 0, group: "metrics", acronym: "INP" },
            // Insight audits.
            { id: "cache-insight", weight: 0, group: "insights" },
            { id: "cls-culprits-insight", weight: 0, group: "insights" },
            { id: "document-latency-insight", weight: 0, group: "insights" },
            { id: "dom-size-insight", weight: 0, group: "insights" },
            { id: "duplicated-javascript-insight", weight: 0, group: "insights" },
            { id: "font-display-insight", weight: 0, group: "insights" },
            { id: "forced-reflow-insight", weight: 0, group: "insights" },
            { id: "image-delivery-insight", weight: 0, group: "insights" },
            { id: "inp-breakdown-insight", weight: 0, group: "insights" },
            { id: "lcp-breakdown-insight", weight: 0, group: "insights" },
            { id: "lcp-discovery-insight", weight: 0, group: "insights" },
            { id: "legacy-javascript-insight", weight: 0, group: "insights" },
            { id: "modern-http-insight", weight: 0, group: "insights" },
            { id: "network-dependency-tree-insight", weight: 0, group: "insights" },
            { id: "render-blocking-insight", weight: 0, group: "insights" },
            { id: "third-parties-insight", weight: 0, group: "insights" },
            { id: "viewport-insight", weight: 0, group: "insights" },
            // These are our "invisible" metrics. Not displayed, but still in the LHR.
            { id: "interactive", weight: 0, group: "hidden", acronym: "TTI" },
            { id: "max-potential-fid", weight: 0, group: "hidden" },
            { id: "unminified-css", weight: 0, group: "diagnostics" },
            { id: "unminified-javascript", weight: 0, group: "diagnostics" },
            { id: "unused-css-rules", weight: 0, group: "diagnostics" },
            { id: "unused-javascript", weight: 0, group: "diagnostics" },
            { id: "total-byte-weight", weight: 0, group: "diagnostics" },
            { id: "user-timings", weight: 0, group: "diagnostics" },
            { id: "bootup-time", weight: 0, group: "diagnostics" },
            { id: "mainthread-work-breakdown", weight: 0, group: "diagnostics" },
            { id: "long-tasks", weight: 0, group: "diagnostics" },
            { id: "non-composited-animations", weight: 0, group: "diagnostics" },
            { id: "unsized-images", weight: 0, group: "diagnostics" },
            { id: "bf-cache", weight: 0, group: "diagnostics" },
            // Audits past this point contain useful data but are not displayed with other audits.
            { id: "network-requests", weight: 0, group: "hidden" },
            { id: "network-rtt", weight: 0, group: "hidden" },
            { id: "network-server-latency", weight: 0, group: "hidden" },
            { id: "main-thread-tasks", weight: 0, group: "hidden" },
            { id: "diagnostics", weight: 0, group: "hidden" },
            { id: "metrics", weight: 0, group: "hidden" },
            { id: "screenshot-thumbnails", weight: 0, group: "hidden" },
            { id: "final-screenshot", weight: 0, group: "hidden" },
            { id: "script-treemap-data", weight: 0, group: "hidden" },
            { id: "resource-summary", weight: 0, group: "hidden" },
            { id: "redirects", weight: 0, group: "hidden" },
            { id: "server-response-time", weight: 0, group: "hidden" },
            { id: "layout-shifts", weight: 0, group: "hidden" }
          ]
        },
        "accessibility": {
          title: str_2(UIStrings22.a11yCategoryTitle),
          description: str_2(UIStrings22.a11yCategoryDescription),
          manualDescription: str_2(UIStrings22.a11yCategoryManualDescription),
          supportedModes: ["navigation", "snapshot"],
          // Audit weights weights are derived from the axe-core "Impact",
          // with adjustments based on axe-core "Tags":
          //
          // ┌────────────┬───────────────────────────────────────────────┐
          // │ Impact     │ Weight Based on Tags                          │
          // │            ├──────────────┬─────────────────┬──────────────┤
          // │            │  wcag A+AA   │  best-practice  │ experimental │
          // │            │ (ex: wcag2aa)│ (w/o wcag tag)  │              │
          // ├────────────┼──────────────┼─────────────────┼──────────────┤
          // │ Minor      │       1      │        0        │      0       │
          // │ Moderate   │       3      │        3        │      0       │
          // │ Serious    │       7      │        7        │      0       │
          // │ Critical   │      10      │       10        │      0       │
          // └────────────┴──────────────┴─────────────────┴──────────────┘
          //
          // Notes:
          //  • Experimental rules always have weight 0
          //  • Best practice rules only affect scores when tagged with wcagA+AA
          //    and are moderate, serious, or critical.
          //
          // To find the latest axe-core Impact and Tag values:
          //   1. Browse to https://dequeuniversity.com/rules/axe/html.
          //   2. Click on the latest rule set (ex: https://dequeuniversity.com/rules/axe/html/4.10)
          //   3. Review the tables
          auditRefs: [
            { id: "accesskeys", weight: 7, group: "a11y-navigation" },
            // Serious, best-practice
            { id: "aria-allowed-attr", weight: 10, group: "a11y-aria" },
            // Critical, wcag2a
            { id: "aria-command-name", weight: 7, group: "a11y-aria" },
            // Serious, wcag2a
            { id: "aria-conditional-attr", weight: 7, group: "a11y-aria" },
            // Serious, wcag2a
            { id: "aria-deprecated-role", weight: 1, group: "a11y-aria" },
            // Minor, wcag2a
            { id: "aria-dialog-name", weight: 7, group: "a11y-aria" },
            // Serious, best-practice
            { id: "aria-hidden-body", weight: 10, group: "a11y-aria" },
            // Critical, wcag2a
            { id: "aria-hidden-focus", weight: 7, group: "a11y-aria" },
            // Serious, wcag2a
            { id: "aria-input-field-name", weight: 7, group: "a11y-aria" },
            // Serious, wcag2a
            { id: "aria-meter-name", weight: 7, group: "a11y-aria" },
            // Serious, wcag2a
            { id: "aria-progressbar-name", weight: 7, group: "a11y-aria" },
            // Serious, wcag2a
            { id: "aria-prohibited-attr", weight: 7, group: "a11y-aria" },
            // Serious, wcag2a
            { id: "aria-required-attr", weight: 10, group: "a11y-aria" },
            // Critical, wcag2a
            { id: "aria-required-children", weight: 10, group: "a11y-aria" },
            // Critical, wcag2a
            { id: "aria-required-parent", weight: 10, group: "a11y-aria" },
            // Critical, wcag2a
            { id: "aria-roles", weight: 10, group: "a11y-aria" },
            // Critical, wcag2a
            { id: "aria-text", weight: 7, group: "a11y-aria" },
            // Serious, best-practice
            { id: "aria-toggle-field-name", weight: 7, group: "a11y-aria" },
            // Serious, wcag2a
            { id: "aria-tooltip-name", weight: 7, group: "a11y-aria" },
            // Serious, wcag2a
            { id: "aria-treeitem-name", weight: 7, group: "a11y-aria" },
            // Serious, best-practice
            { id: "aria-valid-attr-value", weight: 10, group: "a11y-aria" },
            // Critical, wcag2a
            { id: "aria-valid-attr", weight: 10, group: "a11y-aria" },
            // Critical, wcag2a
            { id: "button-name", weight: 10, group: "a11y-names-labels" },
            // Critical, wcag2a
            { id: "bypass", weight: 7, group: "a11y-navigation" },
            // Serious, wcag2a
            { id: "color-contrast", weight: 7, group: "a11y-color-contrast" },
            // Serious, wcag2aa
            { id: "definition-list", weight: 7, group: "a11y-tables-lists" },
            // Serious, wcag2a
            { id: "dlitem", weight: 7, group: "a11y-tables-lists" },
            // Serious, wcag2a
            { id: "document-title", weight: 7, group: "a11y-names-labels" },
            // Serious, wcag2a
            { id: "duplicate-id-aria", weight: 10, group: "a11y-aria" },
            // Critical, wcag2a
            { id: "form-field-multiple-labels", weight: 3, group: "a11y-names-labels" },
            // Moderate, wcag2a
            { id: "frame-title", weight: 7, group: "a11y-names-labels" },
            // Serious, wcag2a
            { id: "heading-order", weight: 3, group: "a11y-navigation" },
            // Moderate, best-practice
            { id: "html-has-lang", weight: 7, group: "a11y-language" },
            // Serious, wcag2a
            { id: "html-lang-valid", weight: 7, group: "a11y-language" },
            // Serious, wcag2a
            { id: "html-xml-lang-mismatch", weight: 3, group: "a11y-language" },
            // Moderate, wcag2a
            { id: "image-alt", weight: 10, group: "a11y-names-labels" },
            // Critical, wcag2a
            { id: "input-button-name", weight: 10, group: "a11y-names-labels" },
            // Critical, wcag2a
            { id: "input-image-alt", weight: 10, group: "a11y-names-labels" },
            // Critical, wcag2a
            { id: "label", weight: 10, group: "a11y-names-labels" },
            // Critical, wcag2a
            { id: "link-in-text-block", weight: 7, group: "a11y-color-contrast" },
            // Serious, wcag2a
            { id: "link-name", weight: 7, group: "a11y-names-labels" },
            // Serious, wcag2a
            { id: "list", weight: 7, group: "a11y-tables-lists" },
            // Serious, wcag2a
            { id: "listitem", weight: 7, group: "a11y-tables-lists" },
            // Serious, wcag2a
            { id: "meta-refresh", weight: 10, group: "a11y-best-practices" },
            // Critical, wcag2a
            { id: "meta-viewport", weight: 10, group: "a11y-best-practices" },
            // Critical, wcag2aa
            { id: "object-alt", weight: 7, group: "a11y-names-labels" },
            // Serious, wcag2a
            { id: "select-name", weight: 10, group: "a11y-names-labels" },
            // Critical, wcag2a
            { id: "skip-link", weight: 3, group: "a11y-names-labels" },
            // Moderate, best-practice
            { id: "tabindex", weight: 7, group: "a11y-navigation" },
            // Serious, best-practice
            { id: "target-size", weight: 7, group: "a11y-best-practices" },
            // Serious, wcag22aa
            { id: "td-headers-attr", weight: 7, group: "a11y-tables-lists" },
            // Serious, wcag2a
            { id: "th-has-data-cells", weight: 7, group: "a11y-tables-lists" },
            // Serious, wcag2a
            { id: "valid-lang", weight: 7, group: "a11y-language" },
            // Serious, wcag2aa
            { id: "video-caption", weight: 10, group: "a11y-audio-video" },
            // Critical, wcag2a
            { id: "landmark-one-main", weight: 3, group: "a11y-best-practices" },
            // Moderate, best-practice
            { id: "autocomplete-valid", weight: 1, group: "a11y-best-practices" },
            // Informational
            { id: "presentation-role-conflict", weight: 1, group: "a11y-best-practices" },
            // Informational
            { id: "svg-img-alt", weight: 1, group: "a11y-best-practices" },
            // Informational
            // Manual audits
            { id: "focusable-controls", weight: 0 },
            { id: "interactive-element-affordance", weight: 0 },
            { id: "logical-tab-order", weight: 0 },
            { id: "visual-order-follows-dom", weight: 0 },
            { id: "focus-traps", weight: 0 },
            { id: "managed-focus", weight: 0 },
            { id: "use-landmarks", weight: 0 },
            { id: "offscreen-content-hidden", weight: 0 },
            { id: "custom-controls-labels", weight: 0 },
            { id: "custom-controls-roles", weight: 0 },
            // Low-impact best-practices
            { id: "table-duplicate-name", weight: 0, group: "a11y-best-practices" },
            // Minor, best-practice
            { id: "empty-heading", weight: 0, group: "a11y-best-practices" },
            // Minor, best-practice
            { id: "aria-allowed-role", weight: 0, group: "a11y-best-practices" },
            // Minor, best-practice
            { id: "image-redundant-alt", weight: 0, group: "a11y-names-labels" },
            // Minor, best-practice
            // WCAG AAA
            { id: "identical-links-same-purpose", weight: 0, group: "a11y-best-practices" },
            // Minor, wcag2aaa
            // Hidden audits (ie. experimental)
            { id: "label-content-name-mismatch", weight: 0, group: "hidden" },
            // Serious, experimental
            { id: "table-fake-caption", weight: 0, group: "hidden" },
            // Serious, experimental
            { id: "td-has-header", weight: 0, group: "hidden" }
            // Critical, experimental
          ]
        },
        "best-practices": {
          title: str_2(UIStrings22.bestPracticesCategoryTitle),
          supportedModes: ["navigation", "timespan", "snapshot"],
          auditRefs: [
            // Trust & Safety
            { id: "is-on-https", weight: 5, group: "best-practices-trust-safety" },
            { id: "redirects-http", weight: 1, group: "best-practices-trust-safety" },
            { id: "geolocation-on-start", weight: 1, group: "best-practices-trust-safety" },
            { id: "notification-on-start", weight: 1, group: "best-practices-trust-safety" },
            { id: "csp-xss", weight: 0, group: "best-practices-trust-safety" },
            { id: "has-hsts", weight: 0, group: "best-practices-trust-safety" },
            { id: "origin-isolation", weight: 0, group: "best-practices-trust-safety" },
            { id: "clickjacking-mitigation", weight: 0, group: "best-practices-trust-safety" },
            { id: "trusted-types-xss", weight: 0, group: "best-practices-trust-safety" },
            // User Experience
            { id: "paste-preventing-inputs", weight: 3, group: "best-practices-ux" },
            { id: "image-aspect-ratio", weight: 1, group: "best-practices-ux" },
            { id: "image-size-responsive", weight: 1, group: "best-practices-ux" },
            // Browser Compatibility
            { id: "doctype", weight: 1, group: "best-practices-browser-compat" },
            { id: "charset", weight: 1, group: "best-practices-browser-compat" },
            { id: "baseline", weight: 0, group: "best-practices-browser-compat" },
            // General Group
            { id: "js-libraries", weight: 0, group: "best-practices-general" },
            { id: "deprecations", weight: 5, group: "best-practices-general" },
            { id: "third-party-cookies", weight: 5, group: "best-practices-general" },
            { id: "errors-in-console", weight: 1, group: "best-practices-general" },
            { id: "valid-source-maps", weight: 0, group: "best-practices-general" },
            { id: "inspector-issues", weight: 1, group: "best-practices-general" }
          ]
        },
        "seo": {
          title: str_2(UIStrings22.seoCategoryTitle),
          description: str_2(UIStrings22.seoCategoryDescription),
          manualDescription: str_2(UIStrings22.seoCategoryManualDescription),
          supportedModes: ["navigation", "snapshot"],
          auditRefs: [
            // Should be at least 31% of the score, such that this audit failing
            // results in the SEO category failing.
            // Solve for w:
            //    w / (w + T) >= 0.31
            // where T is the sum of all the other weights.
            { id: "is-crawlable", weight: 93 / 23, group: "seo-crawl" },
            { id: "document-title", weight: 1, group: "seo-content" },
            { id: "meta-description", weight: 1, group: "seo-content" },
            { id: "http-status-code", weight: 1, group: "seo-crawl" },
            { id: "link-text", weight: 1, group: "seo-content" },
            { id: "crawlable-anchors", weight: 1, group: "seo-crawl" },
            { id: "robots-txt", weight: 1, group: "seo-crawl" },
            { id: "image-alt", weight: 1, group: "seo-content" },
            { id: "hreflang", weight: 1, group: "seo-content" },
            { id: "canonical", weight: 1, group: "seo-content" },
            // Manual audits
            { id: "structured-data", weight: 0 }
          ]
        },
        "agentic-browsing": {
          title: str_2(UIStrings22.agenticBrowsingCategoryTitle),
          description: str_2(UIStrings22.agenticBrowsingCategoryDescription),
          supportedModes: ["navigation", "snapshot"],
          categoryScoreDisplayMode: "fraction",
          auditRefs: [
            { id: "agent-accessibility-tree", weight: 1, group: "agent-accessibility" },
            { id: "webmcp-form-coverage", weight: 1, group: "webmcp" },
            { id: "webmcp-registered-tools", weight: 1, group: "webmcp" },
            { id: "webmcp-schema-validity", weight: 1, group: "webmcp" },
            { id: "cumulative-layout-shift", weight: 1, acronym: "CLS" },
            { id: "llms-txt", weight: 1, group: "agent-accessibility" }
          ]
        }
      }
    };
    Object.defineProperty(defaultConfig, "UIStrings", {
      enumerable: false,
      get: /* @__PURE__ */ __name(() => UIStrings22, "get")
    });
    default_config_default = defaultConfig;
  }
});

// core/config/validation.js
function isValidArtifactDependency(dependent, dependency) {
  const levels = { timespan: 0, snapshot: 1, navigation: 2 };
  const dependentLevel = Math.min(...dependent.instance.meta.supportedModes.map((l) => levels[l]));
  const dependencyLevel = Math.min(...dependency.instance.meta.supportedModes.map((l) => levels[l]));
  if (dependentLevel === levels.timespan) return dependencyLevel === levels.timespan;
  if (dependentLevel === levels.snapshot) return dependencyLevel === levels.snapshot;
  return true;
}
function assertValidPluginName(config4, pluginName) {
  const parts = pluginName.split("/");
  if (parts.length === 2) {
    pluginName = parts[1];
  }
  if (!pluginName.startsWith("lighthouse-plugin-")) {
    throw new Error(`plugin name '${pluginName}' does not start with 'lighthouse-plugin-'`);
  }
  if (config4.categories?.[pluginName]) {
    throw new Error(`plugin name '${pluginName}' not allowed because it is the id of a category already found in config`);
  }
}
function assertValidArtifact(artifactDefn) {
  const gatherer = artifactDefn.gatherer.instance;
  if (typeof gatherer.meta !== "object") {
    throw new Error(`Gatherer for ${artifactDefn.id} did not provide a meta object.`);
  }
  if (gatherer.meta.supportedModes.length === 0) {
    throw new Error(`Gatherer for ${artifactDefn.id} did not support any gather modes.`);
  }
  if (typeof gatherer.getArtifact !== "function" || gatherer.getArtifact === base_gatherer_default.prototype.getArtifact) {
    throw new Error(`Gatherer for ${artifactDefn.id} did not define a "getArtifact" method.`);
  }
}
function assertValidAudit(auditDefinition) {
  const { implementation, path: auditPath } = auditDefinition;
  const auditName = auditPath || implementation?.meta?.id || "Unknown audit";
  if (typeof implementation.audit !== "function" || implementation.audit === Audit.audit) {
    throw new Error(`${auditName} has no audit() method.`);
  }
  if (typeof implementation.meta.id !== "string") {
    throw new Error(`${auditName} has no meta.id property, or the property is not a string.`);
  }
  if (!isStringOrIcuMessage(implementation.meta.title)) {
    throw new Error(`${auditName} has no meta.title property, or the property is not a string.`);
  }
  const scoreDisplayMode = implementation.meta.scoreDisplayMode || Audit.SCORING_MODES.BINARY;
  if (!isStringOrIcuMessage(implementation.meta.failureTitle) && scoreDisplayMode === Audit.SCORING_MODES.BINARY) {
    throw new Error(`${auditName} has no meta.failureTitle and should.`);
  }
  if (!isStringOrIcuMessage(implementation.meta.description)) {
    throw new Error(
      `${auditName} has no meta.description property, or the property is not a string.`
    );
  } else if (implementation.meta.description === "") {
    throw new Error(
      `${auditName} has an empty meta.description string. Please add a description for the UI.`
    );
  }
  if (!Array.isArray(implementation.meta.requiredArtifacts)) {
    throw new Error(
      `${auditName} has no meta.requiredArtifacts property, or the property is not an array.`
    );
  }
}
function assertValidCategories(categories, audits, groups) {
  if (!categories) {
    return;
  }
  const auditsKeyedById = new Map((audits || []).map((audit) => {
    return [audit.implementation.meta.id, audit];
  }));
  Object.keys(categories).forEach((categoryId) => {
    categories[categoryId].auditRefs.forEach((auditRef, index) => {
      if (!auditRef.id) {
        throw new Error(`missing an audit id at ${categoryId}[${index}]`);
      }
      const audit = auditsKeyedById.get(auditRef.id);
      if (!audit) {
        throw new Error(`could not find ${auditRef.id} audit for category ${categoryId}`);
      }
      const auditImpl = audit.implementation;
      const isManual = auditImpl.meta.scoreDisplayMode === "manual";
      if (categoryId === "accessibility" && !auditRef.group && !isManual) {
        throw new Error(`${auditRef.id} accessibility audit does not have a group`);
      }
      if (auditRef.weight > 0 && isManual) {
        throw new Error(`${auditRef.id} is manual but has a positive weight`);
      }
      if (auditRef.group && (!groups || !groups[auditRef.group])) {
        throw new Error(`${auditRef.id} references unknown group ${auditRef.group}`);
      }
    });
  });
}
function assertValidSettings(settings) {
  if (!settings.formFactor) {
    throw new Error(`\`settings.formFactor\` must be defined as 'mobile' or 'desktop'. See https://github.com/GoogleChrome/lighthouse/blob/main/docs/emulation.md`);
  }
  if (!settings.screenEmulation.disabled) {
    if (settings.screenEmulation.mobile !== (settings.formFactor === "mobile")) {
      throw new Error(`Screen emulation mobile setting (${settings.screenEmulation.mobile}) does not match formFactor setting (${settings.formFactor}). See https://github.com/GoogleChrome/lighthouse/blob/main/docs/emulation.md`);
    }
  }
  const skippedAndOnlyAuditId = settings.skipAudits?.find((auditId) => settings.onlyAudits?.includes(auditId));
  if (skippedAndOnlyAuditId) {
    throw new Error(`${skippedAndOnlyAuditId} appears in both skipAudits and onlyAudits`);
  }
}
function assertValidArtifacts(artifactDefns) {
  const availableArtifacts = /* @__PURE__ */ new Set();
  for (const artifact of artifactDefns) {
    assertValidArtifact(artifact);
    if (availableArtifacts.has(artifact.id)) {
      throw new Error(`Config defined multiple artifacts with id '${artifact.id}'`);
    }
    availableArtifacts.add(artifact.id);
    if (!artifact.dependencies) continue;
    for (const [dependencyKey, { id: dependencyId }] of Object.entries(artifact.dependencies)) {
      if (availableArtifacts.has(dependencyId)) continue;
      throwInvalidDependencyOrder(artifact.id, dependencyKey);
    }
  }
}
function assertValidConfig(resolvedConfig) {
  assertValidArtifacts(resolvedConfig.artifacts || []);
  for (const auditDefn of resolvedConfig.audits || []) {
    assertValidAudit(auditDefn);
  }
  assertValidCategories(resolvedConfig.categories, resolvedConfig.audits, resolvedConfig.groups);
  assertValidSettings(resolvedConfig.settings);
}
function throwInvalidDependencyOrder(artifactId, dependencyKey) {
  throw new Error(
    [
      `Failed to find dependency "${dependencyKey}" for "${artifactId}" artifact`,
      `Check that...`,
      `  1. A gatherer exposes a matching Symbol that satisfies "${dependencyKey}".`,
      `  2. "${dependencyKey}" is configured to run before "${artifactId}"`
    ].join("\n")
  );
}
function throwInvalidArtifactDependency(artifactId, dependencyKey) {
  throw new Error(
    [
      `Dependency "${dependencyKey}" for "${artifactId}" artifact is invalid.`,
      `The dependency must be collected before the dependent.`
    ].join("\n")
  );
}
var init_validation = __esm({
  "core/config/validation.js"() {
    "use strict";
    init_process_global();
    init_lh();
    init_audit();
    init_base_gatherer();
    init_i18n();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(isValidArtifactDependency, "isValidArtifactDependency");
    __name(assertValidPluginName, "assertValidPluginName");
    __name(assertValidArtifact, "assertValidArtifact");
    __name(assertValidAudit, "assertValidAudit");
    __name(assertValidCategories, "assertValidCategories");
    __name(assertValidSettings, "assertValidSettings");
    __name(assertValidArtifacts, "assertValidArtifacts");
    __name(assertValidConfig, "assertValidConfig");
    __name(throwInvalidDependencyOrder, "throwInvalidDependencyOrder");
    __name(throwInvalidArtifactDependency, "throwInvalidArtifactDependency");
  }
});

// core/config/filters.js
function getAuditIdsInCategories(allCategories, onlyCategories) {
  if (!allCategories) return /* @__PURE__ */ new Set();
  onlyCategories = onlyCategories || Object.keys(allCategories);
  const categories = onlyCategories.map((categoryId) => allCategories[categoryId]);
  const auditRefs = categories.flatMap((category) => category?.auditRefs || []);
  return new Set(auditRefs.map((auditRef) => auditRef.id));
}
function filterArtifactsByAvailableAudits(artifacts, audits) {
  if (!artifacts) return null;
  if (!audits) return artifacts;
  const artifactsById = new Map(artifacts.map((artifact) => [artifact.id, artifact]));
  const artifactIdsToKeep = /* @__PURE__ */ new Set([
    ...filterResistantArtifactIds,
    ...audits.flatMap((audit) => audit.implementation.meta.requiredArtifacts)
  ]);
  let previousSize = 0;
  while (previousSize !== artifactIdsToKeep.size) {
    previousSize = artifactIdsToKeep.size;
    for (const artifactId of artifactIdsToKeep) {
      const artifact = artifactsById.get(artifactId);
      if (!artifact) continue;
      if (!artifact.dependencies) continue;
      for (const dep of Object.values(artifact.dependencies)) {
        artifactIdsToKeep.add(dep.id);
      }
    }
  }
  return artifacts.filter((artifact) => artifactIdsToKeep.has(artifact.id));
}
function filterArtifactsByGatherMode(artifacts, mode) {
  if (!artifacts) return null;
  return artifacts.filter((artifact) => {
    return artifact.gatherer.instance.meta.supportedModes.includes(mode);
  });
}
function filterAuditsByAvailableArtifacts(audits, availableArtifacts) {
  if (!audits) return null;
  const availableArtifactIds = new Set(
    availableArtifacts.map((artifact) => artifact.id).concat(baseArtifactKeys)
  );
  return audits.filter((audit) => {
    const meta = audit.implementation.meta;
    return meta.requiredArtifacts.every((id) => availableArtifactIds.has(id));
  });
}
function filterAuditsByGatherMode(audits, mode) {
  if (!audits) return null;
  return audits.filter((audit) => {
    const meta = audit.implementation.meta;
    return !meta.supportedModes || meta.supportedModes.includes(mode);
  });
}
function filterCategoriesByGatherMode(categories, mode) {
  if (!categories) return null;
  const categoriesToKeep = Object.entries(categories).filter(([_, category]) => {
    return !category.supportedModes || category.supportedModes.includes(mode);
  });
  return Object.fromEntries(categoriesToKeep);
}
function filterCategoriesByExplicitFilters(categories, onlyCategories) {
  if (!categories || !onlyCategories) return categories;
  const categoriesToKeep = Object.entries(categories).filter(([categoryId]) => onlyCategories.includes(categoryId));
  return Object.fromEntries(categoriesToKeep);
}
function errorOnUnknownOnlyCategories(allCategories, onlyCategories) {
  if (!onlyCategories) return;
  const unknown = onlyCategories.filter((c) => !allCategories?.[c]);
  if (unknown.length) {
    throw new Error(`unrecognized category in 'onlyCategories': ${unknown.join(", ")}`);
  }
}
function filterCategoriesByAvailableAudits(categories, availableAudits) {
  if (!categories) return categories;
  const availableAuditIdToMeta = new Map(
    availableAudits.map((audit) => [audit.implementation.meta.id, audit.implementation.meta])
  );
  const categoryEntries = Object.entries(categories).map(([categoryId, category]) => {
    const filteredCategory = {
      ...category,
      auditRefs: category.auditRefs.filter((ref) => availableAuditIdToMeta.has(ref.id))
    };
    const didFilter = filteredCategory.auditRefs.length < category.auditRefs.length;
    const hasOnlyManualAudits = filteredCategory.auditRefs.every((ref) => {
      const meta = availableAuditIdToMeta.get(ref.id);
      if (!meta) return false;
      return meta.scoreDisplayMode === Audit.SCORING_MODES.MANUAL;
    });
    if (didFilter && hasOnlyManualAudits) filteredCategory.auditRefs = [];
    return [categoryId, filteredCategory];
  }).filter((entry) => typeof entry[1] === "object" && entry[1].auditRefs.length);
  return Object.fromEntries(categoryEntries);
}
function filterConfigByGatherMode(resolvedConfig, mode) {
  const artifacts = filterArtifactsByGatherMode(resolvedConfig.artifacts, mode);
  const supportedAudits = filterAuditsByGatherMode(resolvedConfig.audits, mode);
  const audits = filterAuditsByAvailableArtifacts(supportedAudits, artifacts || []);
  const supportedCategories = filterCategoriesByGatherMode(resolvedConfig.categories, mode);
  const categories = filterCategoriesByAvailableAudits(supportedCategories, audits || []);
  return {
    ...resolvedConfig,
    artifacts,
    audits,
    categories
  };
}
function filterConfigByExplicitFilters(resolvedConfig, filters) {
  const { onlyAudits, onlyCategories, skipAudits } = filters;
  if (onlyAudits && !onlyAudits.length) {
    throw new Error(`onlyAudits cannot be an empty array.`);
  }
  if (onlyCategories && !onlyCategories.length) {
    throw new Error(`onlyCategories cannot be an empty array.`);
  }
  errorOnUnknownOnlyCategories(resolvedConfig.categories, onlyCategories);
  let baseAuditIds = getAuditIdsInCategories(resolvedConfig.categories, void 0);
  if (onlyCategories) {
    baseAuditIds = getAuditIdsInCategories(resolvedConfig.categories, onlyCategories);
  } else if (onlyAudits) {
    baseAuditIds = /* @__PURE__ */ new Set();
  } else if (!resolvedConfig.categories || !Object.keys(resolvedConfig.categories).length) {
    baseAuditIds = new Set(resolvedConfig.audits?.map((audit) => audit.implementation.meta.id));
  }
  const auditIdsToKeep = new Set(
    [
      ...baseAuditIds,
      // Start with our base audits.
      ...onlyAudits || [],
      // Additionally include the opt-in audits from `onlyAudits`.
      ...filterResistantAuditIds
      // Always include any filter-resistant audits.
    ].filter((auditId) => !skipAudits || !skipAudits.includes(auditId))
  );
  const audits = auditIdsToKeep.size && resolvedConfig.audits ? resolvedConfig.audits.filter((audit) => auditIdsToKeep.has(audit.implementation.meta.id)) : resolvedConfig.audits;
  const availableCategories = filterCategoriesByAvailableAudits(resolvedConfig.categories, audits || []);
  const categories = filterCategoriesByExplicitFilters(availableCategories, onlyCategories);
  let artifacts = filterArtifactsByAvailableAudits(resolvedConfig.artifacts, audits);
  if (artifacts && resolvedConfig.settings.disableFullPageScreenshot) {
    artifacts = artifacts.filter(({ id }) => id !== "FullPageScreenshot");
  }
  return {
    ...resolvedConfig,
    artifacts,
    audits,
    categories
  };
}
var baseArtifactKeySource, baseArtifactKeys, filterResistantAuditIds, filterResistantArtifactIds;
var init_filters = __esm({
  "core/config/filters.js"() {
    "use strict";
    init_process_global();
    init_lh();
    init_audit();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    baseArtifactKeySource = {
      fetchTime: "",
      LighthouseRunWarnings: "",
      BenchmarkIndex: "",
      HostDPR: "",
      settings: "",
      Timing: "",
      URL: "",
      PageLoadError: "",
      HostFormFactor: "",
      HostUserAgent: "",
      HostProduct: "",
      GatherContext: ""
    };
    baseArtifactKeys = Object.keys(baseArtifactKeySource);
    filterResistantAuditIds = [];
    filterResistantArtifactIds = ["Stacks", "NetworkUserAgent", "FullPageScreenshot"];
    __name(getAuditIdsInCategories, "getAuditIdsInCategories");
    __name(filterArtifactsByAvailableAudits, "filterArtifactsByAvailableAudits");
    __name(filterArtifactsByGatherMode, "filterArtifactsByGatherMode");
    __name(filterAuditsByAvailableArtifacts, "filterAuditsByAvailableArtifacts");
    __name(filterAuditsByGatherMode, "filterAuditsByGatherMode");
    __name(filterCategoriesByGatherMode, "filterCategoriesByGatherMode");
    __name(filterCategoriesByExplicitFilters, "filterCategoriesByExplicitFilters");
    __name(errorOnUnknownOnlyCategories, "errorOnUnknownOnlyCategories");
    __name(filterCategoriesByAvailableAudits, "filterCategoriesByAvailableAudits");
    __name(filterConfigByGatherMode, "filterConfigByGatherMode");
    __name(filterConfigByExplicitFilters, "filterConfigByExplicitFilters");
  }
});

// core/config/config-plugin.js
function isArrayOfUnknownObjects(arr) {
  return Array.isArray(arr) && arr.every(isObjectOfUnknownProperties);
}
function isObjectOfUnknownProperties(val) {
  return typeof val === "object" && val !== null && !Array.isArray(val);
}
function objectIsGatherMode(str) {
  if (typeof str !== "string") return false;
  return str === "navigation" || str === "timespan" || str === "snapshot";
}
function isArrayOfGatherModes(arr) {
  if (!Array.isArray(arr)) return false;
  return arr.every(objectIsGatherMode);
}
function assertNoExcessProperties(obj, pluginName, objectName = "") {
  if (objectName) {
    objectName += " ";
  }
  const invalidKeys = Object.keys(obj);
  if (invalidKeys.length > 0) {
    const keys2 = invalidKeys.join(", ");
    throw new Error(`${pluginName} has unrecognized ${objectName}properties: [${keys2}]`);
  }
}
var ConfigPlugin, config_plugin_default;
var init_config_plugin = __esm({
  "core/config/config-plugin.js"() {
    "use strict";
    init_process_global();
    init_lh();
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(isArrayOfUnknownObjects, "isArrayOfUnknownObjects");
    __name(isObjectOfUnknownProperties, "isObjectOfUnknownProperties");
    __name(objectIsGatherMode, "objectIsGatherMode");
    __name(isArrayOfGatherModes, "isArrayOfGatherModes");
    __name(assertNoExcessProperties, "assertNoExcessProperties");
    ConfigPlugin = class _ConfigPlugin {
      static {
        __name(this, "ConfigPlugin");
      }
      /**
       * Extract and validate the list of AuditDefns added by the plugin (or undefined
       * if no additional audits are being added by the plugin).
       * @param {unknown} auditsJson
       * @param {string} pluginName
       * @return {Array<{path: string}>|undefined}
       */
      static _parseAuditsList(auditsJson, pluginName) {
        if (auditsJson === void 0) {
          return void 0;
        } else if (!isArrayOfUnknownObjects(auditsJson)) {
          throw new Error(`${pluginName} has an invalid audits array.`);
        }
        return auditsJson.map((auditDefnJson) => {
          const { path: path7, ...invalidRest } = auditDefnJson;
          assertNoExcessProperties(invalidRest, pluginName, "audit");
          if (typeof path7 !== "string") {
            throw new Error(`${pluginName} has a missing audit path.`);
          }
          return {
            path: path7
          };
        });
      }
      /**
       * Extract and validate the list of category AuditRefs added by the plugin.
       * @param {unknown} auditRefsJson
       * @param {string} pluginName
       * @return {Array<LH.Config.AuditRefJson>}
       */
      static _parseAuditRefsList(auditRefsJson, pluginName) {
        if (!isArrayOfUnknownObjects(auditRefsJson)) {
          throw new Error(`${pluginName} has no valid auditsRefs.`);
        }
        return auditRefsJson.map((auditRefJson) => {
          const { id, weight, group, ...invalidRest } = auditRefJson;
          assertNoExcessProperties(invalidRest, pluginName, "auditRef");
          if (typeof id !== "string") {
            throw new Error(`${pluginName} has an invalid auditRef id.`);
          }
          if (typeof weight !== "number") {
            throw new Error(`${pluginName} has an invalid auditRef weight.`);
          }
          if (typeof group !== "string" && typeof group !== "undefined") {
            throw new Error(`${pluginName} has an invalid auditRef group.`);
          }
          const prependedGroup = group ? `${pluginName}-${group}` : group;
          return {
            id,
            weight,
            group: prependedGroup
          };
        });
      }
      /**
       * Extract and validate the category added by the plugin.
       * @param {unknown} categoryJson
       * @param {string} pluginName
       * @return {LH.Config.CategoryJson}
       */
      static _parseCategory(categoryJson, pluginName) {
        if (!isObjectOfUnknownProperties(categoryJson)) {
          throw new Error(`${pluginName} has no valid category.`);
        }
        const {
          title,
          description,
          manualDescription,
          auditRefs: auditRefsJson,
          supportedModes,
          ...invalidRest
        } = categoryJson;
        assertNoExcessProperties(invalidRest, pluginName, "category");
        if (!isStringOrIcuMessage(title)) {
          throw new Error(`${pluginName} has an invalid category tile.`);
        }
        if (!isStringOrIcuMessage(description) && description !== void 0) {
          throw new Error(`${pluginName} has an invalid category description.`);
        }
        if (!isStringOrIcuMessage(manualDescription) && manualDescription !== void 0) {
          throw new Error(`${pluginName} has an invalid category manualDescription.`);
        }
        if (!isArrayOfGatherModes(supportedModes) && supportedModes !== void 0) {
          throw new Error(
            `${pluginName} supportedModes must be an array, valid array values are "navigation", "timespan", and "snapshot".`
          );
        }
        const auditRefs = _ConfigPlugin._parseAuditRefsList(auditRefsJson, pluginName);
        return {
          title,
          auditRefs,
          description,
          manualDescription,
          supportedModes
        };
      }
      /**
       * Extract and validate groups JSON added by the plugin.
       * @param {unknown} groupsJson
       * @param {string} pluginName
       * @return {Record<string, LH.Config.GroupJson>|undefined}
       */
      static _parseGroups(groupsJson, pluginName) {
        if (groupsJson === void 0) {
          return void 0;
        }
        if (!isObjectOfUnknownProperties(groupsJson)) {
          throw new Error(`${pluginName} groups json is not defined as an object.`);
        }
        const groups = Object.entries(groupsJson);
        const parsedGroupsJson = {};
        groups.forEach(([groupId, groupJson]) => {
          if (!isObjectOfUnknownProperties(groupJson)) {
            throw new Error(`${pluginName} has a group not defined as an object.`);
          }
          const { title, description, ...invalidRest } = groupJson;
          assertNoExcessProperties(invalidRest, pluginName, "group");
          if (!isStringOrIcuMessage(title)) {
            throw new Error(`${pluginName} has an invalid group title.`);
          }
          if (!isStringOrIcuMessage(description) && description !== void 0) {
            throw new Error(`${pluginName} has an invalid group description.`);
          }
          parsedGroupsJson[`${pluginName}-${groupId}`] = {
            title,
            description
          };
        });
        return parsedGroupsJson;
      }
      /**
       * Extracts and validates a config from the provided plugin input, throwing
       * if it deviates from the expected object shape.
       * @param {unknown} pluginJson
       * @param {string} pluginName
       * @return {LH.Config}
       */
      static parsePlugin(pluginJson, pluginName) {
        pluginJson = JSON.parse(JSON.stringify(pluginJson));
        if (!isObjectOfUnknownProperties(pluginJson)) {
          throw new Error(`${pluginName} is not defined as an object.`);
        }
        const {
          audits: pluginAuditsJson,
          category: pluginCategoryJson,
          groups: pluginGroupsJson,
          ...invalidRest
        } = pluginJson;
        assertNoExcessProperties(invalidRest, pluginName);
        return {
          audits: _ConfigPlugin._parseAuditsList(pluginAuditsJson, pluginName),
          categories: {
            [pluginName]: _ConfigPlugin._parseCategory(pluginCategoryJson, pluginName)
          },
          groups: _ConfigPlugin._parseGroups(pluginGroupsJson, pluginName)
        };
      }
    };
    config_plugin_default = ConfigPlugin;
  }
});

// core/lib/axe.js
var require2, axeSource;
var init_axe = __esm({
  "core/lib/axe.js"() {
    "use strict";
    init_process_global();
    init_module();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    require2 = /* @__PURE__ */ createRequire({ url: "core/lib/axe.js" }.url);
    axeSource = `/*! axe v4.12.0
 * Copyright (c) 2015 - 2026 Deque Systems, Inc.
 *
 * Your use of this Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This entire copyright notice must appear in every copy of this file you
 * distribute or in any file that contains substantial portions of this source
 * code.
 */
!function e(t){var n=t,r=t.document;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=o||{},i=(o.version="4.12.0","function"==typeof define&&define.amd&&define("axe-core",[],function(){return o}),"object"===("undefined"==typeof module?"undefined":a(module))&&module.exports&&"function"==typeof e.toString&&(o.source="("+e.toString()+')(typeof window === "object" ? window : this);',module.exports=o),"function"==typeof t.getComputedStyle&&(t.axe=o),["precision","format","inGamut"]),l=["space"],u=["algorithm"],s=["method"],c=["maxDeltaE","deltaEMethod","steps","maxSteps"],d=["node"],p=["relatedNodes"],f=["node"],m=["variant"],h=["matches"],g=["chromium"],v=["noImplicit"],b=["noPresentational"],y=["node"],w=["environmentData"],D=["environmentData"],x=["environmentData"],E=["environmentData"],A=["environmentDat\
a"];function F(){var e,t=(s="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",n=s.toStringTag||"@@toStringTag";function r(t,n,r,i){var l,s,c,d,p,f,m,h,g;n=n&&n.prototype instanceof o?n:o;return C(n=Object.create(n.prototype),"_invoke",(l=t,s=r,m=i||[],h=!1,g={p:f=0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return c=t,d=0,p=e,g.n=n,a}},function(t,n,r){if(1<f)throw TypeError("Generator is already running");for(h&&1===n&&v(n,r),d=n,p=r;(u=d<2?e:p)||!h;){c||(d?d<3?(1<d&&(g.n=-1),v(d,p)):g.n=p:g.v=p);try{if(f=2,c){if(u=c[t=d?t:"next"]){if(!(u=u.call(c,p)))throw TypeError("iterator result is not an object");if(!u.done)return u;p=u.value,d<2&&(d=0)}else 1===d&&(u=c.return)&&u.call(c),d<2&&(p=TypeError("The iterator does not provide a '"+t+"' method"),d=1);c=e}else if((u=(h=g.n<0)?p:l.call(s,g))!==a)break}catch(t){c=e,d=1,p=t}finally{f=1}}return{value:u,done:h}}),!0),n;function v(t,n){for(d=t,p=n,u=0;!h&&f&&!r&&u<m.length;u++){var r,o=m[u],i=g.p,l=o[2];3<t?(r=l===n)&&(p=o[(d=o[4])?5:\
d=3],o[4]=o[5]=e):o[0]<=i&&((r=t<2&&i<o[1])?(d=0,g.v=n,g.n=o[1]):i<l&&(r=t<3||o[0]>n||l<n)&&(o[4]=t,o[5]=n,g.n=l,d=0))}if(r||1<t)return a;throw h=!0,n}}var a={};function o(){}function i(){}function l(){}var u=Object.getPrototypeOf,s=[][t]?u(u([][t]())):(C(u={},t,function(){return this}),u),c=l.prototype=o.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,C(e,n,"GeneratorFunction")),e.prototype=Object.create(c),e}return C(c,"constructor",i.prototype=l),C(l,"constructor",i),C(l,n,i.displayName="GeneratorFunction"),C(c),C(c,n,"Generator"),C(c,t,function(){return this}),C(c,"toString",function(){return"[object Generator]"}),(F=function(){return{w:r,m:d}})()}function C(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}(C=function(e,t,n,r){function o(t,n){C(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,\
t,n,r)}function k(e,t,n,r,a,o,i){try{var l=e[o](i),u=l.value}catch(e){return n(e)}l.done?t(u):Promise.resolve(u).then(r,a)}function R(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){k(o,r,a,i,l,"next",e)}function l(e){k(o,r,a,i,l,"throw",e)}i(void 0)})}}function N(e,t,n){return(t=J(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t,n){var r;return _()?Reflect.construct.apply(null,arguments):((r=[null]).push.apply(r,t),t=new(e.bind.apply(e,r)),n&&I(t,n.prototype),t)}function O(e,t){if(null==e)return{};var n,r=((e,t)=>{if(null==e)return{};var n,r={};for(n in e)!{}.hasOwnProperty.call(e,n)||-1!==t.indexOf(n)||(r[n]=e[n]);return r})(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function S(e,t,n){t=M(t);var r=e;if((t=_()?Reflect.construct(\
t,n||[],M(e).constructor):t.apply(e,n))&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==(t=r))return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}function I(e,t){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function B(){return(B=Obje\
ct.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)!{}.hasOwnProperty.call(r,n)||(e[n]=r[n])}return e}).apply(null,arguments)}function j(e){return(e=>{if(Array.isArray(e))return te(e)})(e)||L(e)||ee(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function L(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function q(e,t,n){V(e,t),t.set(e,n)}function z(e,t){V(e,t),t.add(e)}function V(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function G(e,t){return e.get(H(e,t))}function $(e,t,n){e.set(H(e,t),n)}function H(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function U(e,t){return Y(e)||((e,t)=>{var n=null\
==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}})(e,t)||ee(e,t)||W()}function W(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Y(e){if(Array.isArray(e))return e}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J(r.key),r)}}function Z(e,t,n){return t&&X(e.prototype,t),n&&X(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function J(e){return \
e=(e=>{if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if(t=t.call(e,"string"),"object"==a(t))throw new TypeError("@@toPrimitive must return a primitive value.");return t})(e),"symbol"==a(e)?e:e+""}function Q(e,t){var n,r,a,o,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return a=!(r=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){a=!0,n=e},f:function(){try{r||null==i.return||i.return()}finally{if(a)throw n}}};if(Array.isArray(e)||(i=ee(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ee(e,t){var n;if(e)return"string"==typeof e?te(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.\
constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ne,re,ae,oe,ie,le,ue,se,ce,de,pe=void 0;function fe(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}}function me(e,t){for(var n in t)be(e,n,{get:t[n],enumerable:!0})}function he(e){return function(e,t,n){if(t&&"object"===a(t)||"function"==typeof t){var r,o=Q(De(t));try{for(o.s();!(r=o.n()).done;)(()=>{var a=r.value;we.call(e,a)||"default"===a||be(e,a,{get:function(){return t[a]},enumerable:!(n=xe(t,a))||n.enumerable})})()}catch(e){o.e(e)}finally{o.f()}}return e}((t=be(null!=e?ve(ye(e)):{},"de\
fault",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0}),be(t,"__esModule",{value:!0})),e);var t}function ge(e,t,n){(t="symbol"!==a(t)?t+"":t)in e?be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}var ve=Object.create,be=Object.defineProperty,ye=Object.getPrototypeOf,we=Object.prototype.hasOwnProperty,De=Object.getOwnPropertyNames,xe=Object.getOwnPropertyDescriptor,Ee=fe(function(e,o){var i;i=function(){function e(e){return"function"==typeof e}var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,l=void 0,u=void 0,s=function(e,t){h[i]=e,h[i+1]=t,2===(i+=2)&&(u?u(g):w())},c=void 0!==t?t:void 0,d=(d=c||{}).MutationObserver||d.WebKitMutationObserver,p="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function m(){va\
r e=setTimeout;return function(){return e(g,1)}}var h=new Array(1e3);function g(){for(var e=0;e<i;e+=2)(0,h[e])(h[e+1]),h[e]=void 0,h[e+1]=void 0;i=0}var v,b,y,w=void 0;function D(e,t){var n,r=this,a=new this.constructor(A),o=(void 0===a[E]&&B(a),r._state);return o?(n=arguments[o-1],s(function(){return P(o,a,n,r._result)})):_(r,a,e,t),a}function x(e){var t;return e&&"object"===a(e)&&e.constructor===this?e:(N(t=new this(A),e),t)}w=p?function(){return process.nextTick(g)}:d?(b=0,p=new d(g),y=r.createTextNode(""),p.observe(y,{characterData:!0}),function(){y.data=b=++b%2}):f?((v=new MessageChannel).port1.onmessage=g,function(){return v.port2.postMessage(0)}):(void 0===c?function(){try{var e=Function("return this")().require("vertx");return void 0!==(l=e.runOnLoop||e.runOnContext)?function(){l(g)}:m()}catch(e){return m()}}:m)();var E=Math.random().toString(36).substring(2);function A(){}var F=void 0,C=1,k=2;function R(t,n,r){var a,o;n.constructor===t.constructor&&r===D&&n.constructor.resolv\
e===x?(a=t,(o=n)._state===C?O(a,o._result):o._state===k?S(a,o._result):_(o,void 0,function(e){return N(a,e)},function(e){return S(a,e)})):void 0!==r&&e(r)?function(e,t,n){s(function(e){var r=!1,a=((e,t,n,r)=>{try{e.call(t,n,r)}catch(e){return e}})(n,t,function(n){r||(r=!0,(t!==n?N:O)(e,n))},function(t){r||(r=!0,S(e,t))},e._label);!r&&a&&(r=!0,S(e,a))},e)}(t,n,r):O(t,n)}function N(e,t){if(e===t)S(e,new TypeError("You cannot resolve a promise with itself"));else if(r=a(n=t),null===n||"object"!==r&&"function"!==r)O(e,t);else{n=void 0;try{n=t.then}catch(t){return void S(e,t)}R(e,t,n)}var n,r}function T(e){e._onerror&&e._onerror(e._result),M(e)}function O(e,t){e._state===F&&(e._result=t,e._state=C,0!==e._subscribers.length)&&s(M,e)}function S(e,t){e._state===F&&(e._state=k,e._result=t,s(T,e))}function _(e,t,n,r){var a=e._subscribers,o=a.length;e._onerror=null,a[o]=t,a[o+C]=n,a[o+k]=r,0===o&&e._state&&s(M,e)}function M(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r,a=void 0,o=\
e._result,i=0;i<t.length;i+=3)r=t[i],a=t[i+n],r?P(n,r,a,o):a(o);e._subscribers.length=0}}function P(t,n,r,a){var o=e(r),i=void 0,l=void 0,u=!0;if(o){try{i=r(a)}catch(t){u=!1,l=t}if(n===i)return void S(n,new TypeError("A promises callback cannot return that same promise."))}else i=a;n._state===F&&(o&&u?N(n,i):!1===u?S(n,l):t===C?O(n,i):t===k&&S(n,i))}var I=0;function B(e){e[E]=I++,e._state=void 0,e._result=void 0,e._subscribers=[]}L.prototype._enumerate=function(e){for(var t=0;this._state===F&&t<e.length;t++)this._eachEntry(e[t],t)},L.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===x){var a,o=void 0,i=void 0,l=!1;try{o=e.then}catch(t){l=!0,i=t}o===D&&e._state!==F?this._settledAt(e._state,t,e._result):"function"!=typeof o?(this._remaining--,this._result[t]=e):n===q?(a=new n(A),l?S(a,i):R(a,e,o),this._willSettleAt(a,t)):this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},L.prototype._settledAt=function(e,t,n){var r=t\
his.promise;r._state===F&&(this._remaining--,e===k?S(r,n):this._result[t]=n),0===this._remaining&&O(r,this._result)},L.prototype._willSettleAt=function(e,t){var n=this;_(e,void 0,function(e){return n._settledAt(C,t,e)},function(e){return n._settledAt(k,t,e)})};var j=L;function L(e,t){this._instanceConstructor=e,this.promise=new e(A),this.promise[E]||B(this.promise),o(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0!==this.length&&(this.length=this.length||0,this._enumerate(t),0!==this._remaining)||O(this.promise,this._result)):S(this.promise,new Error("Array Methods must be provided an Array"))}z.prototype.catch=function(e){return this.then(null,e)},z.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}):this.then(t,t)};var q=z;function z(e){if(this[E]=I++,this._result=this._state=void 0,this._subscribers\
=[],A!==e){if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof z))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");var t=this;try{e(function(e){N(t,e)},function(e){S(t,e)})}catch(e){S(t,e)}}}return q.prototype.then=D,q.all=function(e){return new j(this,e).promise},q.race=function(e){var t=this;return o(e)?new t(function(n,r){for(var a=e.length,o=0;o<a;o++)t.resolve(e[o]).then(n,r)}):new t(function(e,t){return t(new TypeError("You must pass an array to race."))})},q.resolve=x,q.reject=function(e){var t=new this(A);return S(t,e),t},q._setScheduler=function(e){u=e},q._setAsap=function(e){s=e},q._asap=s,q.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unava\
ilable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=q},q.Promise=q},"object"===a(e)&&void 0!==o?o.exports=i():"function"==typeof define&&define.amd?define(i):e.ES6Promise=i()}),Ae=fe(function(e){var t,n,r=(t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,{Class:function(e){return t.call(e).replace(/^\\[object *|\\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return n.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return e|0},ToUint32:function(e){return e>>>0}}),o=Math.LN2,i=Math.abs,l=Math.floor,u=Math.log,s=Math.min,c=Math.pow,d=Math.round;function p(e,t,n){return e<t?t:n<e?n:e}var f,m,h,g,v,b,y,w,D,x,E,A=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)r.HasOwnProperty(e,t)&&n.push(t);r\
eturn n};function F(e){if(A&&f)for(var t=A(e),n=0;n<t.length;n+=1)f(e,t[n],{value:e[t[n]],writable:!1,enumerable:!1,configurable:!1})}function C(e){if(f){if(e.length>1e5)throw new RangeError("Array too large for polyfill");for(var t=0;t<e.length;t+=1)(t=>{f(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})})(t)}}function k(e,t){return e<<(t=32-t)>>t}function R(e,t){return e<<(t=32-t)>>>t}function N(e){return R(e[0],8)}function T(e,t,n){var r,a,d,p,f,m,h,g=(1<<t-1)-1;function v(e){var t=l(e);return(e=e-t)<.5||!(.5<e||t%2)?t:t+1}for(e!=e?(a=(1<<t)-1,d=c(2,n-1),r=0):e===1/0||e===-1/0?(a=(1<<t)-1,r=e<(d=0)?1:0):0===e?r=1/e==-1/(d=a=0)?1:0:(r=e<0,(e=i(e))>=c(2,1-g)?(a=s(l(u(e)/o),1023),2<=(d=v(e/c(2,a)*c(2,n)))/c(2,n)&&(a+=1,d=1),g<a?(a=(1<<t)-1,d=0):(a+=g,d-=c(2,n))):(a=0,d=v(e/c(2,1-g-n)))),f=[],p=n;p;--p)f.push(d%2?1:0),d=l(d/2);for(p=t;p;--p)f.push(a%2?1:0),a=l(a/2);for(f.push(r?1:0),f.reverse(),m=f.join(""),h=[];m.length;)h.push(pa\
rseInt(m.substring(0,8),2)),m=m.substring(8);return h}function O(e,t,n){for(var r,a,o,i,l,u,s=[],d=e.length;d;--d)for(a=e[d-1],r=8;r;--r)s.push(a%2?1:0),a>>=1;return s.reverse(),u=s.join(""),o=(1<<t-1)-1,i=parseInt(u.substring(0,1),2)?-1:1,l=parseInt(u.substring(1,1+t),2),u=parseInt(u.substring(1+t),2),l===(1<<t)-1?0===u?1/0*i:NaN:0<l?i*c(2,l-o)*(1+u/c(2,n)):0!==u?i*c(2,-(o-1))*(u/c(2,n)):i<0?-0:0}function S(e){if((e=r.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;F(this)}function _(){}function M(e,t,n){var o=function(e,t,n){var i,l,u,s;if(arguments.length&&"number"!=typeof e)if("object"===a(e)&&e.constructor===o)for(this.length=(i=e).length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new S(this.byteLength),u=this.byteOffset=0;u<this.length;u+=1)this._setter(u,i._getter(u));else if("object"!==a(e)||e instanceof S|\
|"ArrayBuffer"===r.Class(e)){if("object"!==a(e)||!(e instanceof S||"ArrayBuffer"===r.Class(e)))throw new TypeError("Unexpected argument type(s)");if(this.buffer=e,this.byteOffset=r.ToUint32(t),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=r.ToUint32(n),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(this.length=r.ToUint32((l=e).length),this.byteLength=this.length*this\
.BYTES_PER_ELEMENT,this.buffer=new S(this.byteLength),u=this.byteOffset=0;u<this.length;u+=1)s=l[u],this._setter(u,Number(s));else{if(this.length=r.ToInt32(e),n<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new S(this.byteLength),this.byteOffset=0}this.constructor=o,F(this),C(this)};return(o.prototype=new _).BYTES_PER_ELEMENT=e,o.prototype._pack=t,o.prototype._unpack=n,o.BYTES_PER_ELEMENT=e,o.prototype.get=o.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(!((e=r.ToUint32(e))>=this.length)){for(var t=[],n=0,a=this.byteOffset+e*this.BYTES_PER_ELEMENT;n<this.BYTES_PER_ELEMENT;n+=1,a+=1)t.push(this.buffer._bytes[a]);return this._unpack(t)}},o.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=r.ToUint32(e))<this.length)for(var n=this._pack(t),a=0,o=this.byteOffset+e*this.BYTES_PER_E\
LEMENT;a<this.BYTES_PER_ELEMENT;a+=1,o+=1)this.buffer._bytes[o]=n[a]},o.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var n,o,i,l,u,s,c,d,p,f;if("object"===a(e)&&e.constructor===this.constructor){if(n=e,(i=r.ToUint32(t))+n.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(d=this.byteOffset+i*this.BYTES_PER_ELEMENT,p=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(f=[],u=0,s=n.byteOffset;u<p;u+=1,s+=1)f[u]=n.buffer._bytes[s];for(u=0,c=d;u<p;u+=1,c+=1)this.buffer._bytes[c]=f[u]}else for(u=0,s=n.byteOffset,c=d;u<p;u+=1,s+=1,c+=1)this.buffer._bytes[c]=n.buffer._bytes[s]}else{if("object"!==a(e)||void 0===e.length)throw new TypeError("Unexpected argument type(s)");if(l=r.ToUint32((o=e).length),(i=r.ToUint32(t))+l>this.length)throw new RangeError("Offset plus length of array is out of range");for(u=0;u<l;u+=1)s=o[u],this._setter(i+u,Number(s))}},o.prototype.subarray=function(e,t){return e=r.T\
oInt32(e),t=r.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=p(e,0,this.length),t=(t=p(t,0,this.length))-e,new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,t=t<0?0:t)},o}function P(e,t){return r.IsCallable(e.get)?e.get(t):e[t]}function I(t,n,a){if(0===arguments.length)t=new e.ArrayBuffer(0);else if(!(t instanceof e.ArrayBuffer||"ArrayBuffer"===r.Class(t)))throw new TypeError("TypeError");if(this.buffer=t||new e.ArrayBuffer(0),this.byteOffset=r.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:r.ToUint32(a),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");F(this)}function B(t){return function(n,a){if((n=r.ToUint32(n))+t.BYTES_PER_ELEMENT>this.byteLength)throw new Range\
Error("Array index out of range");n+=this.byteOffset;for(var o=new e.Uint8Array(this.buffer,n,t.BYTES_PER_ELEMENT),i=[],l=0;l<t.BYTES_PER_ELEMENT;l+=1)i.push(P(o,l));return Boolean(a)===Boolean(E)&&i.reverse(),P(new t(new e.Uint8Array(i).buffer),0)}}function j(t){return function(n,a,o){if((n=r.ToUint32(n))+t.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");a=new t([a]);for(var i=new e.Uint8Array(a.buffer),l=[],u=0;u<t.BYTES_PER_ELEMENT;u+=1)l.push(P(i,u));Boolean(o)===Boolean(E)&&l.reverse(),new e.Uint8Array(this.buffer,n,t.BYTES_PER_ELEMENT).set(l)}}f=Object.defineProperty&&(()=>{try{return Object.defineProperty({},"x",{}),1}catch(e){}})()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return r.HasProperty(n,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),r.HasProperty(n,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__d\
efineSetter__.call(e,t,n.set),r.HasProperty(n,"value")&&(e[t]=n.value),e},e.ArrayBuffer=e.ArrayBuffer||S,x=M(1,function(e){return[255&e]},function(e){return k(e[0],8)}),m=M(1,function(e){return[255&e]},N),h=M(1,function(e){return[(e=d(Number(e)))<0?0:255<e?255:255&e]},N),g=M(2,function(e){return[e>>8&255,255&e]},function(e){return k(e[0]<<8|e[1],16)}),v=M(2,function(e){return[e>>8&255,255&e]},function(e){return R(e[0]<<8|e[1],16)}),b=M(4,function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},function(e){return k(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}),y=M(4,function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},function(e){return R(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}),w=M(4,function(e){return T(e,8,23)},function(e){return O(e,8,23)}),D=M(8,function(e){return T(e,11,52)},function(e){return O(e,11,52)}),e.Int8Array=e.Int8Array||x,e.Uint8Array=e.Uint8Array||m,e.Uint8ClampedArray=e.Uint8ClampedArray||h,e.Int16Array=e.Int16Array||g,e.Uint16Array=e.Uint16Array||v,e.Int32Array=e.Int32Array||b,\
e.Uint32Array=e.Uint32Array||y,e.Float32Array=e.Float32Array||w,e.Float64Array=e.Float64Array||D,x=new e.Uint16Array([4660]),E=18===P(new e.Uint8Array(x.buffer),0),I.prototype.getUint8=B(e.Uint8Array),I.prototype.getInt8=B(e.Int8Array),I.prototype.getUint16=B(e.Uint16Array),I.prototype.getInt16=B(e.Int16Array),I.prototype.getUint32=B(e.Uint32Array),I.prototype.getInt32=B(e.Int32Array),I.prototype.getFloat32=B(e.Float32Array),I.prototype.getFloat64=B(e.Float64Array),I.prototype.setUint8=j(e.Uint8Array),I.prototype.setInt8=j(e.Int8Array),I.prototype.setUint16=j(e.Uint16Array),I.prototype.setInt16=j(e.Int16Array),I.prototype.setUint32=j(e.Uint32Array),I.prototype.setInt32=j(e.Int32Array),I.prototype.setFloat32=j(e.Float32Array),I.prototype.setFloat64=j(e.Float64Array),e.DataView=e.DataView||I}),Fe=fe(function(e){function r(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(c(this,"_id","_WeakMap_"+i()+"."+i()),0<arguments.length)throw new TypeError("WeakMap it\
erable is not supported")}function o(e,t){if(!l(e)||!u.call(e,"_id"))throw new TypeError(t+" method called on incompatible receiver "+a(e))}function i(){return Math.random().toString().substring(2)}function l(e){return Object(e)===e}var u,s,c;(e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==t?t:void 0!==n?n:e).WeakMap||(u=Object.prototype.hasOwnProperty,s=Object.defineProperty&&(()=>{try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}})(),e.WeakMap=((c=function(e,t,n){s?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}):e[t]=n})(r.prototype,"delete",function(e){var t;return o(this,"delete"),!!l(e)&&!(!(t=e[this._id])||t[0]!==e||(delete e[this._id],0))}),c(r.prototype,"get",function(e){var t;return o(this,"get"),l(e)&&(t=e[this._id])&&t[0]===e?t[1]:void 0}),c(r.prototype,"has",function(e){var t;return o(this,"has"),!!l(e)&&!(!(t=e[this._id])||t[0]!==e)}),c(r.prototype,"set",function(e,t){var n;if(o(this,"set"),l(e))return(\
n=e[this._id])&&n[0]===e?n[1]=t:c(e,this._id,[e,t]),this;throw new TypeError("Invalid value used as weak map key")}),c(r,"_polyfill",!0),r))}),Ce=fe(function(e,r){function o(e){return e&&e.Math===Math&&e}r.exports=o("object"==("undefined"==typeof globalThis?"undefined":a(globalThis))&&globalThis)||o("object"==(void 0===t?"undefined":a(t))&&t)||o("object"==("undefined"==typeof self?"undefined":a(self))&&self)||o("object"==(void 0===n?"undefined":a(n))&&n)||o("object"==a(e)&&e)||function(){return this}()||Function("return this")()}),ke=fe(function(e,t){t.exports=function(e){try{return!!e()}catch(e){return!0}}}),Re=fe(function(e,t){var n=ke();t.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}),Ne=fe(function(e,t){var n=Re(),r=Function.prototype,o=r.apply,i=r.call;t.exports="object"==("undefined"==typeof Reflect?"undefined":a(Reflect))&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})}),Te=fe(function(e,t){var \
n=Re(),r=(a=Function.prototype).call,a=n&&a.bind.bind(r,r);t.exports=n?a:function(e){return function(){return r.apply(e,arguments)}}}),Oe=fe(function(e,t){var n=Te(),r=n({}.toString),a=n("".slice);t.exports=function(e){return a(r(e),8,-1)}}),Se=fe(function(e,t){var n=Oe(),r=Te();t.exports=function(e){if("Function"===n(e))return r(e)}}),_e=fe(function(e,t){var n="object"==(void 0===r?"undefined":a(r))&&r.all;t.exports=void 0===n&&void 0!==n?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}}),Me=fe(function(e,t){var n=ke();t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),Pe=fe(function(e,t){var n=Re(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}}),Ie=fe(function(e){var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);e.f=r?function(e){return!!(e=n(this,e))&&e.enumerable}:t}),Be=fe(function(e,t){t.exports=function(e,t){return{enum\
erable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),je=fe(function(e,t){var n=Te(),r=ke(),a=Oe(),o=Object,i=n("".split);t.exports=r(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===a(e)?i(e,""):o(e)}:o}),Le=fe(function(e,t){t.exports=function(e){return null==e}}),qe=fe(function(e,t){var n=Le(),r=TypeError;t.exports=function(e){if(n(e))throw new r("Can't call method on "+e);return e}}),ze=fe(function(e,t){var n=je(),r=qe();t.exports=function(e){return n(r(e))}}),Ve=fe(function(e,t){var n=_e();t.exports=function(e){return"object"==a(e)?null!==e:n(e)}}),Ge=fe(function(e,t){t.exports={}}),$e=fe(function(e,t){function n(e){return o(e)?e:void 0}var r=Ge(),a=Ce(),o=_e();t.exports=function(e,t){return arguments.length<2?n(r[e])||n(a[e]):r[e]&&r[e][t]||a[e]&&a[e][t]}}),He=fe(function(e,t){var n=Te();t.exports=n({}.isPrototypeOf)}),Ue=fe(function(e,t){var n=(n=Ce().navigator)&&n.userAgent;t.exports=n?String(n):""}),We=fe(function(e,t){var n,r,a=Ce(),o=Ue(\
),i=a.process;a=a.Deno;!(r=(a=(i=i&&i.versions||a&&a.version)&&i.v8)?0<(n=a.split("."))[0]&&n[0]<4?1:+(n[0]+n[1]):r)&&o&&(!(n=o.match(/Edge\\/(\\d+)/))||74<=n[1])&&(n=o.match(/Chrome\\/(\\d+)/))&&(r=+n[1]),t.exports=r}),Ye=fe(function(e,t){var n=We(),r=ke(),a=Ce().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})}),Ke=fe(function(e,t){var n=Ye();t.exports=n&&!Symbol.sham&&"symbol"==a(Symbol.iterator)}),Xe=fe(function(e,t){var n=$e(),r=_e(),o=He(),i=Ke(),l=Object;t.exports=i?function(e){return"symbol"==a(e)}:function(e){var t=n("Symbol");return r(t)&&o(t.prototype,l(e))}}),Ze=fe(function(e,t){var n=String;t.exports=function(e){try{return n(e)}catch(e){return"Object"}}}),Je=fe(function(e,t){var n=_e(),r=Ze(),a=TypeError;t.exports=function(e){if(n(e))return e;throw new a(r(e)+" is not a function")}}),Qe=fe(function(e,t){var n=Je(),r=Le();t.exports=function(e,t){return e=e[t],r(e)?\
void 0:n(e)}}),et=fe(function(e,t){var n=Pe(),r=_e(),a=Ve(),o=TypeError;t.exports=function(e,t){var i,l;if("string"===t&&r(i=e.toString)&&!a(l=n(i,e)))return l;if(r(i=e.valueOf)&&!a(l=n(i,e)))return l;if("string"!==t&&r(i=e.toString)&&!a(l=n(i,e)))return l;throw new o("Can't convert object to primitive value")}}),tt=fe(function(e,t){t.exports=!0}),nt=fe(function(e,t){var n=Ce(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}}),rt=fe(function(e,t){var n=tt(),r=Ce(),a=nt(),o="__core-js_shared__";((t=t.exports=r[o]||a(o,{})).versions||(t.versions=[])).push({version:"3.48.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),at=fe(function(e,t){var n=rt();t.exports=function(e,t){return n[e]||(n[e]=t||{})}}),ot=fe(fun\
ction(e,t){var n=qe(),r=Object;t.exports=function(e){return r(n(e))}}),it=fe(function(e,t){var n=Te(),r=ot(),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return a(r(e),t)}}),lt=fe(function(e,t){var n=Te(),r=0,a=Math.random(),o=n(1.1.toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++r+a,36)}}),ut=fe(function(e,t){var n=Ce(),r=at(),a=it(),o=lt(),i=Ye(),l=Ke(),u=n.Symbol,s=r("wks"),c=l?u.for||u:u&&u.withoutSetter||o;t.exports=function(e){return a(s,e)||(s[e]=i&&a(u,e)?u[e]:c("Symbol."+e)),s[e]}}),st=fe(function(e,t){var n=Pe(),r=Ve(),a=Xe(),o=Qe(),i=et(),l=ut(),u=TypeError,s=l("toPrimitive");t.exports=function(e,t){if(!r(e)||a(e))return e;var l=o(e,s);if(l){if(l=n(l,e,t=void 0===t?"default":t),!r(l)||a(l))return l;throw new u("Can't convert object to primitive value")}return i(e,t=void 0===t?"number":t)}}),ct=fe(function(e,t){var n=st(),r=Xe();t.exports=function(e){return e=n(e,"string"),r(e)?e:e+""}}),dt=fe(function(e,t){var n=Ce(),r=Ve(),a=n.doc\
ument,o=r(a)&&r(a.createElement);t.exports=function(e){return o?a.createElement(e):{}}}),pt=fe(function(e,t){var n=Me(),r=ke(),a=dt();t.exports=!n&&!r(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})}),ft=fe(function(e){var t=Me(),n=Pe(),r=Ie(),a=Be(),o=ze(),i=ct(),l=it(),u=pt(),s=Object.getOwnPropertyDescriptor;e.f=t?s:function(e,t){if(e=o(e),t=i(t),u)try{return s(e,t)}catch(e){}if(l(e,t))return a(!n(r.f,e,t),e[t])}}),mt=fe(function(e,t){function n(e,t){return(e=l[i(e)])===s||e!==u&&(a(t)?r(t):!!t)}var r=ke(),a=_e(),o=/#|\\.prototype\\./,i=n.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=n.data={},u=n.NATIVE="N",s=n.POLYFILL="P";t.exports=n}),ht=fe(function(e,t){var n=Se(),r=Je(),a=Re(),o=n(n.bind);t.exports=function(e,t){return r(e),void 0===t?e:a?o(e,t):function(){return e.apply(t,arguments)}}}),gt=fe(function(e,t){var n=Me(),r=ke();t.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{valu\
e:42,writable:!1}).prototype})}),vt=fe(function(e,t){var n=Ve(),r=String,a=TypeError;t.exports=function(e){if(n(e))return e;throw new a(r(e)+" is not an object")}}),bt=fe(function(e){var t=Me(),n=pt(),r=gt(),a=vt(),o=ct(),i=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s="enumerable",c="configurable",d="writable";e.f=t?r?function(e,t,n){var r;return a(e),t=o(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n[d]&&(r=u(e,t))&&r[d]&&(e[t]=n.value,n={configurable:(c in n?n:r)[c],enumerable:(s in n?n:r)[s],writable:!1}),l(e,t,n)}:l:function(e,t,r){if(a(e),t=o(t),a(r),n)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new i("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}),yt=fe(function(e,t){var n=Me(),r=bt(),a=Be();t.exports=n?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}}),wt=fe(function(e,t){function n(e){function t(n,r,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case\
 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,a)}return o(e,this,arguments)}return t.prototype=e.prototype,t}var r=Ce(),o=Ne(),i=Se(),l=_e(),u=ft().f,s=mt(),c=Ge(),d=ht(),p=yt(),f=it();rt(),t.exports=function(e,t){var o,m,h,g,v,b,y=e.target,w=e.global,D=e.stat,x=e.proto,E=w?r:D?r[y]:r[y]&&r[y].prototype,A=w?c:c[y]||p(c,y,{})[y],F=A.prototype;for(m in t)v=!(o=s(w?m:y+(D?".":"#")+m,e.forced))&&E&&f(E,m),g=A[m],v&&(b=e.dontCallGetSet?(b=u(E,m))&&b.value:E[m]),h=v&&b?b:t[m],(o||x||a(g)!=a(h))&&(v=e.bind&&v?d(h,r):e.wrap&&v?n(h):x&&l(h)?i(h):h,(e.sham||h&&h.sham||g&&g.sham)&&p(v,"sham",!0),p(A,m,v),x)&&(f(c,g=y+"Prototype")||p(c,g,{}),p(c[g],m,h),e.real)&&F&&(o||!F[m])&&p(F,m,h)}}),Dt=fe(function(){wt()({target:"Object",stat:!0},{hasOwn:it()})}),xt=fe(function(e,t){Dt();var n=Ge();t.exports=n.Object.hasOwn}),Et=fe(function(e,t){var n=xt();t.exports=n}),At=fe(function(e,t){var n=Et();t.exports=n}),Ft=fe(function(e,t){var n=at(),r=lt(),a=n("keys");t.exports=function(e){return a\
[e]||(a[e]=r(e))}}),Ct=fe(function(e,t){var n=ke();t.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),kt=fe(function(e,t){var n=it(),r=_e(),a=ot(),o=Ft(),i=Ct(),l=o("IE_PROTO"),u=Object,s=u.prototype;t.exports=i?u.getPrototypeOf:function(e){var t;e=a(e);return n(e,l)?e[l]:(t=e.constructor,r(t)&&e instanceof t?t.prototype:e instanceof u?s:null)}}),Rt=fe(function(e,t){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){return(0<(e=+e)?r:n)(e)}}),Nt=fe(function(e,t){var n=Rt();t.exports=function(e){return(e=+e)!=e||0==e?0:n(e)}}),Tt=fe(function(e,t){var n=Nt(),r=Math.max,a=Math.min;t.exports=function(e,t){return(e=n(e))<0?r(e+t,0):a(e,t)}}),Ot=fe(function(e,t){var n=Nt(),r=Math.min;t.exports=function(e){return 0<(e=n(e))?r(e,9007199254740991):0}}),St=fe(function(e,t){var n=Ot();t.exports=function(e){return n(e.length)}}),_t=fe(function(e,t){function n(e){return function(t,n,i){var l=r(t),u=o(l);if(0!==u){var \
s,c=a(i,u);if(e&&n!=n){for(;c<u;)if((s=l[c++])!=s)return!0}else for(;c<u;c++)if((e||c in l)&&l[c]===n)return e||c||0}return!e&&-1}}var r=ze(),a=Tt(),o=St();t.exports={includes:n(!0),indexOf:n(!1)}}),Mt=fe(function(e,t){t.exports={}}),Pt=fe(function(e,t){var n=Te(),r=it(),a=ze(),o=_t().indexOf,i=Mt(),l=n([].push);t.exports=function(e,t){var n,u=a(e),s=0,c=[];for(n in u)!r(i,n)&&r(u,n)&&l(c,n);for(;t.length>s;)!r(u,n=t[s++])||~o(c,n)||l(c,n);return c}}),It=fe(function(e,t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),Bt=fe(function(e,t){var n=Pt(),r=It();t.exports=Object.keys||function(e){return n(e,r)}}),jt=fe(function(e,t){function n(e){return function(t){for(var n,a=u(t),o=l(a),p=d&&null===i(a),f=o.length,m=0,h=[];m<f;)n=o[m++],r&&!(p?n in a:s(a,n))||c(h,e?[n,a[n]]:a[n]);return h}}var r=Me(),a=ke(),o=Te(),i=kt(),l=Bt(),u=ze(),s=o(Ie().f),c=o([].push),d=r&&a(function(){var e=Object.create(null);return e[2]=2,!\
s(e,2)});t.exports={entries:n(!0),values:n(!1)}}),Lt=fe(function(){var e=wt(),t=jt().values;e({target:"Object",stat:!0},{values:function(e){return t(e)}})}),qt=fe(function(e,t){Lt();var n=Ge();t.exports=n.Object.values}),zt=fe(function(e,t){var n=qt();t.exports=n}),Vt=fe(function(e,t){var n=zt();t.exports=n}),Gt=fe(function(e,t){var n={};n[ut()("toStringTag")]="z",t.exports="[object z]"===String(n)}),$t=fe(function(e,t){var n=Gt(),r=_e(),a=Oe(),o=ut()("toStringTag"),i=Object,l="Arguments"===a(function(){return arguments}());t.exports=n?a:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=((e,t)=>{try{return e[t]}catch(e){}})(e=i(e),o))?t:l?a(e):"Object"===(t=a(e))&&r(e.callee)?"Arguments":t}}),Ht=fe(function(e,t){var n=$t(),r=String;t.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return r(e)}}),Ut=fe(function(e,t){function n(e){return function(t,n){t=o(i(t)),n=a(n);var r,c=t.length;return n<0||c<=\
n?e?"":void 0:(r=u(t,n))<55296||56319<r||n+1===c||(c=u(t,n+1))<56320||57343<c?e?l(t,n):r:e?s(t,n,n+2):c-56320+(r-55296<<10)+65536}}var r=Te(),a=Nt(),o=Ht(),i=qe(),l=r("".charAt),u=r("".charCodeAt),s=r("".slice);t.exports={codeAt:n(!1),charAt:n(!0)}}),Wt=fe(function(e,t){var n=Ce(),r=_e();n=n.WeakMap;t.exports=r(n)&&/native code/.test(String(n))}),Yt=fe(function(e,t){var n,r,a,o,i=Wt(),l=Ce(),u=Ve(),s=yt(),c=it(),d=rt(),p=Ft(),f=Mt(),m="Object already initialized",h=l.TypeError,g=(l=l.WeakMap,i||d.state?((a=d.state||(d.state=new l)).get=a.get,a.has=a.has,a.set=a.set,n=function(e,t){if(a.has(e))throw new h(m);return t.facade=e,a.set(e,t),t},r=function(e){return a.get(e)||{}},function(e){return a.has(e)}):(f[o=p("state")]=!0,n=function(e,t){if(c(e,o))throw new h(m);return t.facade=e,s(e,o,t),t},r=function(e){return c(e,o)?e[o]:{}},function(e){return c(e,o)}));t.exports={set:n,get:r,has:g,enforce:function(e){return g(e)?r(e):n(e,{})},getterFor:function(e){return function(t){if(u(t)&&(t=r(t\
)).type===e)return t;throw new h("Incompatible receiver, "+e+" required")}}}}),Kt=fe(function(e,t){var n=Me(),r=it(),a=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,i=(r=r(a,"name"))&&"something"===function(){}.name;n=r&&(!n||o(a,"name").configurable);t.exports={EXISTS:r,PROPER:i,CONFIGURABLE:n}}),Xt=fe(function(e){var t=Me(),n=gt(),r=bt(),a=vt(),o=ze(),i=Bt();e.f=t&&!n?Object.defineProperties:function(e,t){a(e);for(var n,l=o(t),u=i(t),s=u.length,c=0;c<s;)r.f(e,n=u[c++],l[n]);return e}}),Zt=fe(function(e,t){var n=$e();t.exports=n("document","documentElement")}),Jt=fe(function(e,t){function n(){}var a,o=vt(),i=Xt(),l=It(),u=Mt(),s=Zt(),c=dt(),d=Ft(),p="prototype",f="script",m=d("IE_PROTO"),h=function(e){return"<"+f+">"+e+"</"+f+">"},g=function(){try{a=new ActiveXObject("htmlfile")}catch(e){}g=void 0===r||r.domain&&a?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(a):(e=c("iframe"),t="java"+f+":",e.style.display="none",s.appendChild(e),e.src=St\
ring(t),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F);for(var e,t,n=l.length;n--;)delete g[p][l[n]];return g()};u[m]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(n[p]=o(e),r=new n,n[p]=null,r[m]=e):r=g(),void 0===t?r:i.f(r,t)}}),Qt=fe(function(e,t){var n=yt();t.exports=function(e,t,r,a){return a&&a.enumerable?e[t]=r:n(e,t,r),e}}),en=fe(function(e,t){var n,r,a=ke(),o=_e(),i=Ve(),l=Jt(),u=kt(),s=Qt(),c=ut(),d=tt(),p=c("iterator");c=!1;[].keys&&("next"in(r=[].keys())?(u=u(u(r)))!==Object.prototype&&(n=u):c=!0),!i(n)||a(function(){var e={};return n[p].call(e)!==e})?n={}:d&&(n=l(n)),o(n[p])||s(n,p,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:c}}),tn=fe(function(e,t){var n=Gt(),r=$t();t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}}),nn=fe(function(e,t){var n=Gt(),r=bt().f,a=yt(),o=it(),i=tn(),l=ut()("toStringTag");t.exports=function(e,t,u,s){(u=u?e:e&&e.prototype)&&(o(u,l)||r(u,l,{con\
figurable:!0,value:t}),s)&&!n&&a(u,"toString",i)}}),rn=fe(function(e,t){t.exports={}}),an=fe(function(e,t){function n(){return this}var r=en().IteratorPrototype,a=Jt(),o=Be(),i=nn(),l=rn();t.exports=function(e,t,u,s){return t+=" Iterator",e.prototype=a(r,{next:o(+!s,u)}),i(e,t,!1,!0),l[t]=n,e}}),on=fe(function(e,t){var n=Te(),r=Je();t.exports=function(e,t,a){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[a]))}catch(e){}}}),ln=fe(function(e,t){var n=Ve();t.exports=function(e){return n(e)||null===e}}),un=fe(function(e,t){var n=ln(),r=String,a=TypeError;t.exports=function(e){if(n(e))return e;throw new a("Can't set "+r(e)+" as a prototype")}}),sn=fe(function(e,t){var n=on(),r=Ve(),a=qe(),o=un();t.exports=Object.setPrototypeOf||("__proto__"in{}?(()=>{var e,t=!1,i={};try{(e=n(Object.prototype,"__proto__","set"))(i,[]),t=i instanceof Array}catch(i){}return function(n,i){return a(n),o(i),r(n)&&(t?e(n,i):n.__proto__=i),n}})():void 0)}),cn=fe(function(e,t){function n(){return this}var r=wt(\
),a=Pe(),o=tt(),i=Kt(),l=_e(),u=an(),s=kt(),c=sn(),d=nn(),p=yt(),f=Qt(),m=ut(),h=rn(),g=en(),v=i.PROPER,b=i.CONFIGURABLE,y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,D=m("iterator"),x="values",E="entries";t.exports=function(e,t,i,m,g,A,F){function C(e){if(e===g&&S)return S;if(!w&&e&&e in T)return T[e];switch(e){case"keys":case x:case E:return function(){return new i(this,e)}}return function(){return new i(this)}}u(i,t,m);m=t+" Iterator";var k,R,N=!1,T=e.prototype,O=T[D]||T["@@iterator"]||g&&T[g],S=!w&&O||C(g),_="Array"===t&&T.entries||O;if(_&&(_=s(_.call(new e)))!==Object.prototype&&_.next&&(o||s(_)===y||(c?c(_,y):l(_[D])||f(_,D,n)),d(_,m,!0,!0),o)&&(h[m]=n),v&&g===x&&O&&O.name!==x&&(!o&&b?p(T,"name",x):(N=!0,S=function(){return a(O,this)})),g)if(k={values:C(x),keys:A?S:C("keys"),entries:C(E)},F)for(R in k)!w&&!N&&R in T||f(T,R,k[R]);else r({target:t,proto:!0,forced:w||N},k);return o&&!F||T[D]===S||f(T,D,S,{name:g}),h[t]=S,k}}),dn=fe(function(e,t){t.exports=function(e,t){return{val\
ue:e,done:t}}}),pn=fe(function(){var e=Ut().charAt,t=Ht(),n=Yt(),r=cn(),a=dn(),o="String Iterator",i=n.set,l=n.getterFor(o);r(String,"String",function(e){i(this,{type:o,string:t(e),index:0})},function(){var t=l(this),n=t.string,r=t.index;return r>=n.length?a(void 0,!0):(n=e(n,r),t.index+=n.length,a(n,!1))})}),fn=fe(function(e,t){var n=Pe(),r=vt(),a=Qe();t.exports=function(e,t,o){var i,l;r(e);try{if(!(i=a(e,"return"))){if("throw"===t)throw o;return o}i=n(i,e)}catch(e){l=!0,i=e}if("throw"===t)throw o;if(l)throw i;return r(i),o}}),mn=fe(function(e,t){var n=vt(),r=fn();t.exports=function(e,t,a,o){try{return o?t(n(a)[0],a[1]):t(a)}catch(t){r(e,"throw",t)}}}),hn=fe(function(e,t){var n=ut(),r=rn(),a=n("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(r.Array===e||o[a]===e)}}),gn=fe(function(e,t){var n=Te(),r=_e(),a=rt(),o=n(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),t.exports=a.inspectSource}),vn=fe(function(e,t){function n(){}funct\
ion r(e){if(!l(e))return!1;try{return d(n,[],e),!0}catch(e){return!1}}function a(e){if(!l(e))return!1;switch(u(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!f(p,c(e))}catch(e){return!0}}var o=Te(),i=ke(),l=_e(),u=$t(),s=$e(),c=gn(),d=s("Reflect","construct"),p=/^\\s*(?:class|function)\\b/,f=o(p.exec),m=!p.test(n);a.sham=!0,t.exports=!d||i(function(){var e;return r(r.call)||!r(Object)||!r(function(){e=!0})||e})?a:r}),bn=fe(function(e,t){var n=Me(),r=bt(),a=Be();t.exports=function(e,t,o){n?r.f(e,t,a(0,o)):e[t]=o}}),yn=fe(function(e,t){var n=Oe();t.exports=Array.isArray||function(e){return"Array"===n(e)}}),wn=fe(function(e,t){var n=Me(),r=yn(),a=TypeError,o=Object.getOwnPropertyDescriptor;n=n&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();t.exports=n?function(e,t){if(r(e)&&!o(e,"length").writable)throw new a("Cannot set read only .length");\
return e.length=t}:function(e,t){return e.length=t}}),Dn=fe(function(e,t){var n=$t(),r=Qe(),a=Le(),o=rn(),i=ut()("iterator");t.exports=function(e){if(!a(e))return r(e,i)||r(e,"@@iterator")||o[n(e)]}}),xn=fe(function(e,t){var n=Pe(),r=Je(),a=vt(),o=Ze(),i=Dn(),l=TypeError;t.exports=function(e,t){if(t=arguments.length<2?i(e):t,r(t))return a(n(t,e));throw new l(o(e)+" is not iterable")}}),En=fe(function(e,t){var n=ht(),r=Pe(),a=ot(),o=mn(),i=hn(),l=vn(),u=St(),s=bn(),c=wn(),d=xn(),p=Dn(),f=Array;t.exports=function(e){var t,m,h,g,v,b,y,w=a(e),D=(e=l(this),1<(y=arguments.length)?arguments[1]:void 0),x=void 0!==D,E=0;if(!(y=(x&&(D=n(D,2<y?arguments[2]:void 0)),p(w)))||this===f&&i(y))for(t=u(w),m=e?new this(t):f(t);E<t;E++)b=x?D(w[E],E):w[E],s(m,E,b);else for(m=e?new this:[],v=(g=d(w,y)).next;!(h=r(v,g)).done;E++)b=x?o(g,D,[h.value,E],!0):h.value,s(m,E,b);return c(m,E),m}}),An=fe(function(e,t){var n,r,a=ut()("iterator"),o=!1;try{n=0,(r={next:function(){return{done:!!n++}},return:function(){o=\
!0}})[a]=function(){return this},Array.from(r,function(){throw 2})}catch(e){}t.exports=function(e,t){try{if(!t&&!o)return!1}catch(e){return!1}var n=!1;try{var r={};r[a]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}}),Fn=fe(function(){var e=wt(),t=En();e({target:"Array",stat:!0,forced:!An()(function(e){Array.from(e)})},{from:t})}),Cn=fe(function(e,t){pn(),Fn();var n=Ge();t.exports=n.Array.from}),kn=fe(function(e,t){var n=Cn();t.exports=n}),Rn=fe(function(e,t){var n=kn();t.exports=n}),Nn=fe(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentStart=function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"-"===e||"_"===e},e.isIdent=function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"0"<=e&&e<="9"||"-"===e||"_"===e},e.isHex=function(e){return"a"<=e&&e<="f"||"A"<=e&&e<="F"||"0"<=e&&e<="9"},e.escapeIdentifier=function(t){for(var n=t.length,r="",a=0;a<n;){var o=t.charAt(a);if(e.identSpecialChars[o])r+="\\\\"+o;else if("_"===o||"-"===o||"A"<=o&&o<="Z"|\
|"a"<=o&&o<="z"||0!==a&&"0"<=o&&o<="9")r+=o;else{if(55296==(63488&(o=o.charCodeAt(0)))){var i=t.charCodeAt(a++);if(55296!=(64512&o)||56320!=(64512&i))throw Error("UCS-2(decode): illegal sequence");o=((1023&o)<<10)+(1023&i)+65536}r+="\\\\"+o.toString(16)+" "}a++}return r},e.escapeStr=function(t){for(var n,r=t.length,a="",o=0;o<r;){var i=t.charAt(o);'"'===i?i='\\\\"':"\\\\"===i?i="\\\\\\\\":void 0!==(n=e.strReplacementsRev[i])&&(i=n),a+=i,o++}return'"'+a+'"'},e.identSpecialChars={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\\\":!0,"]":!0,"^":!0,"\`":!0,"{":!0,"|":!0,"}":!0,"~":!0},e.strReplacementsRev={"\\n":"\\\\n","\\r":"\\\\r","\\t":"\\\\t","\\f":"\\\\f","\\v":"\\\\v"},e.singleQuoteEscapeChars={n:"\\n",r:"\\r",t:"\\t",f:"\\f","\\\\":"\\\\","'":"'"},e.doubleQuotesEscapeChars={n:"\\n",r:"\\r",t:"\\t",f:"\\f","\\\\":"\\\\",'"':'"'}}),Tn=fe(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Nn();e.parseCssSelector=\
function(e,n,r,a,o,i){var l=e.length,u="";function s(r,a){var o="";for(n++,u=e.charAt(n);n<l;){if(u===r)return n++,o;var i;if("\\\\"===u)if(n++,(u=e.charAt(n))===r)o+=r;else if(void 0!==(i=a[u]))o+=i;else{if(t.isHex(u)){var s=u;for(n++,u=e.charAt(n);t.isHex(u);)s+=u,n++,u=e.charAt(n);" "===u&&(n++,u=e.charAt(n)),o+=String.fromCharCode(parseInt(s,16));continue}o+=u}else o+=u;n++,u=e.charAt(n)}return o}function c(){var r="";for(u=e.charAt(n);n<l;){if(!t.isIdent(u)){if("\\\\"!==u)return r;if(l<=++n)throw Error("Expected symbol but end of file reached.");if(u=e.charAt(n),!t.identSpecialChars[u]&&t.isHex(u)){var a=u;for(n++,u=e.charAt(n);t.isHex(u);)a+=u,n++,u=e.charAt(n);" "===u&&(n++,u=e.charAt(n)),r+=String.fromCharCode(parseInt(a,16));continue}}r+=u,n++,u=e.charAt(n)}return r}function d(){for(u=e.charAt(n);" "===u||"\\t"===u||"\\n"===u||"\\r"===u||"\\f"===u;)n++,u=e.charAt(n)}function p(){var t=f();if(!t)return null;var r=t;for(u=e.charAt(n);","===u;){if(n++,d(),"selectors"!==r.type&&(r={type:"\
selectors",selectors:[t]}),!(t=f()))throw Error('Rule expected after ",".');r.selectors.push(t)}return r}function f(){d();var t={type:"ruleSet"},r=m();if(!r)return null;for(var a=t;r&&(r.type="rule",a.rule=r,a=r,d(),u=e.charAt(n),!(l<=n||","===u||")"===u));)if(o[u]){var i=u;if(n++,d(),!(r=m()))throw Error('Rule expected after "'+i+'".');r.nestingOperator=i}else(r=m())&&(r.nestingOperator=null);return t}function m(){for(var o=null;n<l;)if("*"===(u=e.charAt(n)))n++,(o=o||{}).tagName="*";else if(t.isIdentStart(u)||"\\\\"===u)(o=o||{}).tagName=c();else if("."===u)n++,((o=o||{}).classNames=o.classNames||[]).push(c());else if("#"===u)n++,(o=o||{}).id=c();else if("["===u){n++,d();var f={name:c()};if(d(),"]"===u)n++;else{var m="";if(a[u]&&(m=u,n++,u=e.charAt(n)),l<=n)throw Error('Expected "=" but end of file reached.');if("="!==u)throw Error('Expected "=" but "'+u+'" found.');f.operator=m+"=",n++,d();var h="";if(f.valueType="string",'"'===u)h=s('"',t.doubleQuotesEscapeChars);else if("'"===u)h=s(\
"'",t.singleQuoteEscapeChars);else if(i&&"$"===u)n++,h=c(),f.valueType="substitute";else{for(;n<l&&"]"!==u;)h+=u,n++,u=e.charAt(n);h=h.trim()}if(d(),l<=n)throw Error('Expected "]" but end of file reached.');if("]"!==u)throw Error('Expected "]" but "'+u+'" found.');n++,f.value=h}((o=o||{}).attrs=o.attrs||[]).push(f)}else{if(":"!==u)break;if(n++,f={name:m=c()},"("===u){n++;var g="";if(d(),"selector"===r[m])f.valueType="selector",g=p();else{if(f.valueType=r[m]||"string",'"'===u)g=s('"',t.doubleQuotesEscapeChars);else if("'"===u)g=s("'",t.singleQuoteEscapeChars);else if(i&&"$"===u)n++,g=c(),f.valueType="substitute";else{for(;n<l&&")"!==u;)g+=u,n++,u=e.charAt(n);g=g.trim()}d()}if(l<=n)throw Error('Expected ")" but end of file reached.');if(")"!==u)throw Error('Expected ")" but "'+u+'" found.');n++,f.value=g}((o=o||{}).pseudos=o.pseudos||[]).push(f)}return o}var h=p();if(n<l)throw Error('Rule expected but "'+e.charAt(n)+'" found.');return h}}),On=fe(function(e){Object.defineProperty(e,"__esM\
odule",{value:!0});var t=Nn();e.renderEntity=function e(n){var r="";switch(n.type){case"ruleSet":for(var a=n.rule,o=[];a;)a.nestingOperator&&o.push(a.nestingOperator),o.push(e(a)),a=a.rule;r=o.join(" ");break;case"selectors":r=n.selectors.map(e).join(", ");break;case"rule":n.tagName&&(r="*"===n.tagName?"*":t.escapeIdentifier(n.tagName)),n.id&&(r+="#"+t.escapeIdentifier(n.id)),n.classNames&&(r+=n.classNames.map(function(e){return"."+t.escapeIdentifier(e)}).join("")),n.attrs&&(r+=n.attrs.map(function(e){return"operator"in e?"substitute"===e.valueType?"["+t.escapeIdentifier(e.name)+e.operator+"$"+e.value+"]":"["+t.escapeIdentifier(e.name)+e.operator+t.escapeStr(e.value)+"]":"["+t.escapeIdentifier(e.name)+"]"}).join("")),n.pseudos&&(r+=n.pseudos.map(function(n){return n.valueType?"selector"===n.valueType?":"+t.escapeIdentifier(n.name)+"("+e(n.value)+")":"substitute"===n.valueType?":"+t.escapeIdentifier(n.name)+"($"+n.value+")":"numeric"===n.valueType?":"+t.escapeIdentifier(n.name)+"("+n.va\
lue+")":":"+t.escapeIdentifier(n.name)+"("+t.escapeIdentifier(n.value)+")":":"+t.escapeIdentifier(n.name)}).join(""));break;default:throw Error('Unknown entity type: "'+n.type+'".')}return r}}),Sn=fe(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Tn(),n=On();function r(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}r.prototype.registerSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)this.pseudos[r[n]]="selector";return this},r.prototype.unregisterSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)delete this.pseudos[r[n]];return this},r.prototype.registerNumericPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)this.pseudos[r[n]]="numeric";return this},r.prototype.unregisterNumericPseudos=function(){for(var e=[],t=0;t<arguments.l\
ength;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)delete this.pseudos[r[n]];return this},r.prototype.registerNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)this.ruleNestingOperators[r[n]]=!0;return this},r.prototype.unregisterNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)delete this.ruleNestingOperators[r[n]];return this},r.prototype.registerAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)this.attrEqualityMods[r[n]]=!0;return this},r.prototype.unregisterAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)delete this.attrEqualityMods[r[n]];return this},r.prototype.enableSubstitutes=function(){return this.substitutesEnabled=!0,this},r.prototype.disableSubstitutes=function(){return this.substitutesEnabled=!1,t\
his},r.prototype.parse=function(e){return t.parseCssSelector(e,0,this.pseudos,this.attrEqualityMods,this.ruleNestingOperators,this.substitutesEnabled)},r.prototype.render=function(e){return n.renderEntity(e).trim()},e.CssSelectorParser=r}),_n=fe(function(e,r){var o={name:"doT",version:"1.1.1",templateSettings:{evaluate:/\\{\\{([\\s\\S]+?(\\}?)+)\\}\\}/g,interpolate:/\\{\\{=([\\s\\S]+?)\\}\\}/g,encode:/\\{\\{!([\\s\\S]+?)\\}\\}/g,use:/\\{\\{#([\\s\\S]+?)\\}\\}/g,useParams:/(^|[^\\w$])def(?:\\.|\\[[\\'\\"])([\\w$\\.]+)(?:[\\'\\"]\\])?\\s*\\:\\s*([\\w$\\.]+|\\"[^\\"]+\\"|\\'[^\\']+\\'|\\{[^\\}]+\\})/g,define:/\\{\\{##\\s*([\\w\\.$]+)\\s*(\\:|=)([\\s\\S]+?)#\\}\\}/g,defineParams:/^\\s*([\\w$]+):([\\s\\S]+)/,conditional:/\\{\\{\\?(\\?)?\\s*([\\s\\S]*?)\\s*\\}\\}/g,iterate:/\\{\\{~\\s*(?:\\}\\}|([\\s\\S]+?)\\s*\\:\\s*([\\w$]+)\\s*(?:\\:\\s*([\\w$]+))?\\s*\\}\\})/g,varname:"it",strip:!0,append:!0,selfcontained:!1,doNotSkipEncoded:!1},template:void 0,compile:void 0,log:!0};if("object"!==("undefined"==typeof globalThis?"undefined":a(globalThis)))try{Object.defineProperty(Object.protot\
ype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(e){t.globalThis=function(){if("undefined"!=typeof self)return self;if(void 0!==t)return t;if(void 0!==n)return n;if(void 0!==this)return this;throw new Error("Unable to locate global \`this\`")}()}o.encodeHTMLSource=function(e){var t={"&":"&#38;","<":"&#60;",">":"&#62;",'"':"&#34;","'":"&#39;","/":"&#47;"},n=e?/[&<>"'\\/]/g:/&(?!#?\\w+;)|<|>|"|'|\\//g;return function(e){return e?e.toString().replace(n,function(e){return t[e]||e}):""}},void 0!==r&&r.exports?r.exports=o:"function"==typeof define&&define.amd?define(function(){return o}):globalThis.doT=o;var i={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},l=/$^/;function u(e){return e.replace(/\\\\('|\\\\)/g,"$1").replace(/[\\r\\t\\n]/g," ")}o.template=function(e,t,n){var r,a,s=(t=t||o.templateSettings).append?i.append:i.split,c=0;n=\
t.use||t.define?function e(t,n,r){return("string"==typeof n?n:n.toString()).replace(t.define||l,function(e,n,a,o){return(n=0===n.indexOf("def.")?n.substring(4):n)in r||(":"===a?(t.defineParams&&o.replace(t.defineParams,function(e,t,a){r[n]={arg:t,text:a}}),n in r||(r[n]=o)):new Function("def","def['"+n+"']="+o)(r)),""}).replace(t.use||l,function(n,a){return t.useParams&&(a=a.replace(t.useParams,function(e,t,n,a){var o;if(r[n]&&r[n].arg&&a)return o=(n+":"+a).replace(/'|\\\\/g,"_"),r.__exp=r.__exp||{},r.__exp[o]=r[n].text.replace(new RegExp("(^|[^\\\\w$])"+r[n].arg+"([^\\\\w$])","g"),"$1"+a+"$2"),t+"def.__exp['"+o+"']"})),(a=new Function("def","return "+a)(r))&&e(t,a,r)})}(t,e,n||{}):e,n=("var out='"+(t.strip?n.replace(/(^|\\r|\\n)\\t* +| +\\t*(\\r|\\n|$)/g," ").replace(/\\r|\\n|\\t|\\/\\*[\\s\\S]*?\\*\\//g,""):n).replace(/'|\\\\/g,"\\\\$&").replace(t.interpolate||l,function(e,t){return s.start+u(t)+s.end}).replace(t.encode||l,function(e,t){return r=!0,s.startencode+u(t)+s.end}).replace(t.conditional||l,function\
(e,t,n){return t?n?"';}else if("+u(n)+"){out+='":"';}else{out+='":n?"';if("+u(n)+"){out+='":"';}out+='"}).replace(t.iterate||l,function(e,t,n,r){return t?(c+=1,a=r||"i"+c,t=u(t),"';var arr"+c+"="+t+";if(arr"+c+"){var "+n+","+a+"=-1,l"+c+"=arr"+c+".length-1;while("+a+"<l"+c+"){"+n+"=arr"+c+"["+a+"+=1];out+='"):"';} } out+='"}).replace(t.evaluate||l,function(e,t){return"';"+u(t)+"out+='"})+"';return out;").replace(/\\n/g,"\\\\n").replace(/\\t/g,"\\\\t").replace(/\\r/g,"\\\\r").replace(/(\\s|;|\\}|^|\\{)out\\+='';/g,"$1").replace(/\\+''/g,"");r&&(t.selfcontained||!globalThis||globalThis._encodeHTML||(globalThis._encodeHTML=o.encodeHTMLSource(t.doNotSkipEncoded)),n="var encodeHTML = typeof _encodeHTML !== 'undefined' ? _encodeHTML : ("+o.encodeHTMLSource.toString()+"("+(t.doNotSkipEncoded||"")+"));"+n);try{return new Function(t.varname,n)}catch(e){throw"undefined"!=typeof console&&console.log("Could not create a template function: "+n),e}},o.compile=function(e,t){return o.template(e,null,t)}}),Mn=fe(fun\
ction(e,t){t.exports=function(){}}),Pn=fe(function(e,t){var n=Mn()();t.exports=function(e){return e!==n&&null!==e}}),In=fe(function(e,t){var n=Pn(),r=Array.prototype.forEach,a=Object.create;t.exports=function(e){var t=a(null);return r.call(arguments,function(e){if(n(e)){var r,a=Object(e),o=t;for(r in a)o[r]=a[r]}}),t}}),Bn=fe(function(e,t){t.exports=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}}),jn=fe(function(e,t){t.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:0<e?1:-1}}),Ln=fe(function(e,t){t.exports=Bn()()?Math.sign:jn()}),qn=fe(function(e,t){var n=Ln(),r=Math.abs,a=Math.floor;t.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?n(e)*a(r(e)):e}}),zn=fe(function(e,t){var n=qn(),r=Math.max;t.exports=function(e){return r(0,n(e))}}),Vn=fe(function(e,t){var n=zn();t.exports=function(e,t,r){return isNaN(e)?0<=t?r&&t?t-1:t:1:!1!==e&&n(e)}}),Gn=fe(function(e,t){t.exports=function(e){if("function"!=typeof e)throw new TypeError(e\
+" is not a function");return e}}),$n=fe(function(e,t){var n=Pn();t.exports=function(e){if(n(e))return e;throw new TypeError("Cannot use null or undefined")}}),Hn=fe(function(e,t){var n=Gn(),r=$n(),a=Function.prototype.bind,o=Function.prototype.call,i=Object.keys,l=Object.prototype.propertyIsEnumerable;t.exports=function(e,t){return function(u,s){var c,d=arguments[2],p=arguments[3];return u=Object(r(u)),n(s),c=i(u),p&&c.sort("function"==typeof p?a.call(p,u):void 0),"function"!=typeof e&&(e=c[e]),o.call(e,c,function(e,n){return l.call(u,e)?o.call(s,d,u[e],e,u,n):t})}}}),Un=fe(function(e,t){t.exports=Hn()("forEach")}),Wn=fe(function(){}),Yn=fe(function(e,t){t.exports=function(){var e=Object.assign;return"function"==typeof e&&(e(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}}),Kn=fe(function(e,t){t.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}}),Xn=fe(function(e,t){var n=Pn(),r=Object.keys;t.exports=function(e){return r(n(e)?Ob\
ject(e):e)}}),Zn=fe(function(e,t){t.exports=Kn()()?Object.keys:Xn()}),Jn=fe(function(e,t){var n=Zn(),r=$n(),a=Math.max;t.exports=function(e,t){var o,i,l,u=a(arguments.length,2);for(e=Object(r(e)),l=function(n){try{e[n]=t[n]}catch(n){o=o||n}},i=1;i<u;++i)n(t=arguments[i]).forEach(l);if(void 0!==o)throw o;return e}}),Qn=fe(function(e,t){t.exports=Yn()()?Object.assign:Jn()}),er=fe(function(e,t){var n=Pn(),r={function:!0,object:!0};t.exports=function(e){return n(e)&&r[a(e)]||!1}}),tr=fe(function(e,t){var n=Qn(),r=er(),a=Pn(),o=Error.captureStackTrace;t.exports=function(e){e=new Error(e);var i=arguments[1],l=arguments[2];return a(l)||r(i)&&(l=i,i=null),a(l)&&n(e,l),a(i)&&(e.code=i),o&&o(e,t.exports),e}}),nr=fe(function(e,t){var n=$n(),r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;t.exports=function(e,t){var l,u=Object(n(t));if(e=Object(n(e)),o(u).forEach(function(n){try{r(e,n,a(t,n))}catch(n){l=n}}),"function"==typeof i\
&&i(u).forEach(function(n){try{r(e,n,a(t,n))}catch(n){l=n}}),void 0!==l)throw l;return e}}),rr=fe(function(e,t){function n(e,t){return t}var r,a,o,i,l,u=zn();try{Object.defineProperty(n,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(e){}1===n.length?(r={configurable:!0,writable:!1,enumerable:!1},a=Object.defineProperty,t.exports=function(e,t){return t=u(t),e.length===t?e:(r.value=t,a(e,"length",r))}):(i=nr(),l=[],o=function(e){var t,n=0;if(l[e])return l[e];for(t=[];e--;)t.push("a"+(++n).toString(36));return new Function("fn","return function ("+t.join(", ")+") { return fn.apply(this, arguments); };")},t.exports=function(e,t){if(t=u(t),e.length===t)return e;t=o(t)(e);try{i(t,e)}catch(e){}return t})}),ar=fe(function(e,t){t.exports=function(e){return null!=e}}),or=fe(function(e,t){var n=ar(),r={object:!0,function:!0,undefined:!0};t.exports=function(e){return!!n(e)&&hasOwnProperty.call(r,a(e))}}),ir=fe(function(e,t){var n=or();t.exports=function(e){if(!n(e))return!1;tr\
y{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}}),lr=fe(function(e,t){var n=ir();t.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!n(e)}}),ur=fe(function(e,t){var n=lr(),r=/^\\s*class[\\s{/}]/,a=Function.prototype.toString;t.exports=function(e){return!!n(e)&&!r.test(a.call(e))}}),sr=fe(function(e,t){var n="razdwatrzy";t.exports=function(){return"function"==typeof n.contains&&!0===n.contains("dwa")&&!1===n.contains("foo")}}),cr=fe(function(e,t){var n=String.prototype.indexOf;t.exports=function(e){return-1<n.call(this,e,arguments[1])}}),dr=fe(function(e,t){t.exports=sr()()?String.prototype.contains:cr()}),pr=fe(function(e,t){var n=ar(),r=ur(),a=Qn(),o=In(),i=dr();(t.exports=function(e,t){var r,l,u,s;return arguments.length<2||"string"!=typeof e?(s=t,t=e,e=null):s=arguments[2\
],n(e)?(r=i.call(e,"c"),l=i.call(e,"e"),u=i.call(e,"w")):l=!(r=u=!0),e={value:t,configurable:r,enumerable:l,writable:u},s?a(o(s),e):e}).gs=function(e,t,l){var u,s;return"string"!=typeof e?(s=l,l=t,t=e,e=null):s=arguments[3],n(t)?r(t)?n(l)?r(l)||(s=l,l=void 0):l=void 0:(s=t,t=l=void 0):t=void 0,e=n(e)?(u=i.call(e,"c"),i.call(e,"e")):!(u=!0),t={get:t,set:l,configurable:u,enumerable:e},s?a(o(s),t):t}}),fr=fe(function(e,t){var n=pr(),r=Gn(),o=Function.prototype.apply,i=Function.prototype.call,l=Object.create,u=Object.defineProperty,s=Object.defineProperties,c=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},p=function(e,t){var n;return r(t),c.call(this,"__ee__")?n=this.__ee__:(n=d.value=l(null),u(this,"__ee__",d),d.value=null),n[e]?"object"===a(n[e])?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},f=function(e,t){var n,a;return r(t),a=this,p.call(this,e,n=function(){m.call(a,e,n),o.call(t,this,arguments)}),n.__eeOnceListener__=t,this},m=function(e,t){var n,o,i,l;if(r(t\
),c.call(this,"__ee__")&&(n=this.__ee__)[e])if("object"===a(o=n[e]))for(l=0;i=o[l];++l)i!==t&&i.__eeOnceListener__!==t||(2===o.length?n[e]=o[l?0:1]:o.splice(l,1));else o!==t&&o.__eeOnceListener__!==t||delete n[e];return this},h=function(e){var t,n,r,l,u;if(c.call(this,"__ee__")&&(l=this.__ee__[e]))if("object"===a(l)){for(n=arguments.length,u=new Array(n-1),t=1;t<n;++t)u[t-1]=arguments[t];for(l=l.slice(),t=0;r=l[t];++t)o.call(r,this,u)}else switch(arguments.length){case 1:i.call(l,this);break;case 2:i.call(l,this,arguments[1]);break;case 3:i.call(l,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,u=new Array(n-1),t=1;t<n;++t)u[t-1]=arguments[t];o.call(l,this,u)}},g={on:p,once:f,off:m,emit:h},v={on:n(p),once:n(f),off:n(m),emit:n(h)},b=s({},v);t.exports=e=function(e){return null==e?l(b):s(Object(e),v)},e.methods=g}),mr=fe(function(e,t){t.exports=function(){var e,t=Array.from;return"function"==typeof t&&(e=t(t=["raz","dwa"]),Boolean(e&&e!==t&&"dwa"===e[1]))}}),hr=fe(fun\
ction(e,t){t.exports=function(){return"object"===("undefined"==typeof globalThis?"undefined":a(globalThis))&&!!globalThis&&globalThis.Array===Array}}),gr=fe(function(e,n){function r(){if("object"===("undefined"==typeof self?"undefined":a(self))&&self)return self;if("object"===(void 0===t?"undefined":a(t))&&t)return t;throw new Error("Unable to resolve global \`this\`")}n.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return r()}try{return __global__||r()}finally{delete Object.prototype.__global__}}()}),vr=fe(function(e,t){t.exports=hr()()?globalThis:gr()}),br=fe(function(e,t){var n=vr(),r={object:!0,symbol:!0};t.exports=function(){var e,t=n.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(e){return!1}return!!r[a(t.iterator)]&&!!r[a(t.toPrimitive)]&&!!r[a(t.toStringTag)]}}),yr=fe(function(e,t){t.exports=function(e){return!!e&&("symbol"===a(e)||!!e.construct\
or&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}}),wr=fe(function(e,t){var n=yr();t.exports=function(e){if(n(e))return e;throw new TypeError(e+" is not a symbol")}}),Dr=fe(function(e,t){var n=pr(),r=Object.create,a=Object.defineProperty,o=Object.prototype,i=r(null);t.exports=function(e){for(var t,r,l=0;i[e+(l||"")];)++l;return i[e+=l||""]=!0,a(o,t="@@"+e,n.gs(null,function(e){r||(r=!0,a(this,t,n(e)),r=!1)})),t}}),xr=fe(function(e,t){var n=pr(),r=vr().Symbol;t.exports=function(e){return Object.defineProperties(e,{hasInstance:n("",r&&r.hasInstance||e("hasInstance")),isConcatSpreadable:n("",r&&r.isConcatSpreadable||e("isConcatSpreadable")),iterator:n("",r&&r.iterator||e("iterator")),match:n("",r&&r.match||e("match")),replace:n("",r&&r.replace||e("replace")),search:n("",r&&r.search||e("search")),species:n("",r&&r.species||e("species")),split:n("",r&&r.split||e("split")),toPrimitive:n("",r&&r.toPrimitive||e("toPrimitive")),toStringTag:n("",r&&r.toStringTag||e("to\
StringTag")),unscopables:n("",r&&r.unscopables||e("unscopables"))})}}),Er=fe(function(e,t){var n=pr(),r=wr(),a=Object.create(null);t.exports=function(e){return Object.defineProperties(e,{for:n(function(t){return a[t]||(a[t]=e(String(t)))}),keyFor:n(function(e){for(var t in r(e),a)if(a[t]===e)return t})})}}),Ar=fe(function(e,t){var n,r,o,i=pr(),l=wr(),u=vr().Symbol,s=Dr(),c=xr(),d=Er(),p=Object.create,f=Object.defineProperties,m=Object.defineProperty;if("function"==typeof u)try{String(u()),o=!0}catch(e){}else u=null;r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return n(e)},t.exports=n=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return o?u(t):(n=p(r.prototype),t=void 0===t?"":String(t),f(n,{__description__:i("",t),__name__:i("",s(t))}))},c(n),d(n),f(r.prototype,{constructor:i(n),toString:i("",function(){return this.__name__})}),f(n.prototype,{toString:i(function(){return"Symbol ("+l(this).__descripti\
on__+")"}),valueOf:i(function(){return l(this)})}),m(n.prototype,n.toPrimitive,i("",function(){var e=l(this);return"symbol"===a(e)?e:e.toString()})),m(n.prototype,n.toStringTag,i("c","Symbol")),m(r.prototype,n.toStringTag,i("c",n.prototype[n.toStringTag])),m(r.prototype,n.toPrimitive,i("c",n.prototype[n.toPrimitive]))}),Fr=fe(function(e,t){t.exports=br()()?vr().Symbol:Ar()}),Cr=fe(function(e,t){var n=Object.prototype.toString,r=n.call(function(){return arguments}());t.exports=function(e){return n.call(e)===r}}),kr=fe(function(e,t){var n=Object.prototype.toString,r=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);t.exports=function(e){return"function"==typeof e&&r(n.call(e))}}),Rr=fe(function(e,t){var n=Object.prototype.toString,r=n.call("");t.exports=function(e){return"string"==typeof e||e&&"object"===a(e)&&(e instanceof String||n.call(e)===r)||!1}}),Nr=fe(function(e,t){var n=Fr().iterator,r=Cr(),a=kr(),o=zn(),i=Gn(),l=$n(),u=Pn(),s=Rr(),c=Array.isArray,d=Function.prototyp\
e.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},f=Object.defineProperty;t.exports=function(e){var t,m,h,g,v,b,y,w,D,x,E=arguments[1],A=arguments[2];if(e=Object(l(e)),u(E)&&i(E),this&&this!==Array&&a(this))t=this;else{if(!E){if(r(e))return 1!==(v=e.length)?Array.apply(null,e):((g=new Array(1))[0]=e[0],g);if(c(e)){for(g=new Array(v=e.length),m=0;m<v;++m)g[m]=e[m];return g}}g=[]}if(!c(e))if(void 0!==(D=e[n])){for(y=i(D).call(e),t&&(g=new t),w=y.next(),m=0;!w.done;)x=E?d.call(E,A,w.value,m):w.value,t?(p.value=x,f(g,m,p)):g[m]=x,w=y.next(),++m;v=m}else if(s(e)){for(v=e.length,t&&(g=new t),h=m=0;m<v;++m)x=e[m],m+1<v&&55296<=(b=x.charCodeAt(0))&&b<=56319&&(x+=e[++m]),x=E?d.call(E,A,x,h):x,t?(p.value=x,f(g,h,p)):g[h]=x,++h;v=h}if(void 0===v)for(v=o(e.length),t&&(g=new t(v)),m=0;m<v;++m)x=E?d.call(E,A,e[m],m):e[m],t?(p.value=x,f(g,m,p)):g[m]=x;return t&&(p.value=null,g.length=v),g}}),Tr=fe(function(e,t){t.exports=mr()()?Array.from:Nr()}),Or=fe(function(e,t){var n=Tr(),r=Array.is\
Array;t.exports=function(e){return r(e)?e:n(e)}}),Sr=fe(function(e,t){var n=Or(),r=Pn(),a=Gn(),o=Array.prototype.slice,i=function(e){return this.map(function(t,n){return t?t(e[n]):e[n]}).concat(o.call(e,this.length))};t.exports=function(e){return(e=n(e)).forEach(function(e){r(e)&&a(e)}),i.bind(e)}}),_r=fe(function(e,t){var n=Gn();t.exports=function(e){var t;return"function"==typeof e?{set:e,get:e}:(t={get:n(e.get)},void 0!==e.set?(t.set=n(e.set),e.delete&&(t.delete=n(e.delete)),e.clear&&(t.clear=n(e.clear))):t.set=t.get,t)}}),Mr=fe(function(e,t){var n=tr(),r=rr(),a=pr(),o=fr().methods,i=Sr(),l=_r(),u=Function.prototype.apply,s=Function.prototype.call,c=Object.create,d=Object.defineProperties,p=o.on,f=o.emit;t.exports=function(e,t,o){var m,h,g,v,b,y,w,D,x,E,A,F=c(null),C=!1!==t?t:isNaN(e.length)?1:e.length;return o.normalizer&&(E=l(o.normalizer),h=E.get,g=E.set,v=E.delete,b=E.clear),null!=o.resolvers&&(A=i(o.resolvers)),E=h?r(function(t){var r,a,o=arguments;if(A&&(o=A(o)),null!==(r=h(o)\
)&&hasOwnProperty.call(F,r))return w&&m.emit("get",r,o,this),F[r];if(a=1===o.length?s.call(e,this,o[0]):u.call(e,this,o),null===r){if(null!==(r=h(o)))throw n("Circular invocation","CIRCULAR_INVOCATION");r=g(o)}else if(hasOwnProperty.call(F,r))throw n("Circular invocation","CIRCULAR_INVOCATION");return F[r]=a,D&&m.emit("set",r,null,a),a},C):0===t?function(){var t;if(hasOwnProperty.call(F,"data"))return w&&m.emit("get","data",arguments,this),F.data;if(t=arguments.length?u.call(e,this,arguments):s.call(e,this),hasOwnProperty.call(F,"data"))throw n("Circular invocation","CIRCULAR_INVOCATION");return F.data=t,D&&m.emit("set","data",null,t),t}:function(t){var r,a=arguments;if(A&&(a=A(arguments)),r=String(a[0]),hasOwnProperty.call(F,r))return w&&m.emit("get",r,a,this),F[r];if(a=1===a.length?s.call(e,this,a[0]):u.call(e,this,a),hasOwnProperty.call(F,r))throw n("Circular invocation","CIRCULAR_INVOCATION");return F[r]=a,D&&m.emit("set",r,null,a),a},m={original:e,memoized:E,profileName:o.profileN\
ame,get:function(e){return A&&(e=A(e)),h?h(e):String(e[0])},has:function(e){return hasOwnProperty.call(F,e)},delete:function(e){var t;hasOwnProperty.call(F,e)&&(v&&v(e),t=F[e],delete F[e],x)&&m.emit("delete",e,t)},clear:function(){var e=F;b&&b(),F=c(null),m.emit("clear",e)},on:function(e,t){return"get"===e?w=!0:"set"===e?D=!0:"delete"===e&&(x=!0),p.call(this,e,t)},emit:f,updateEnv:function(){e=m.original}},o=h?r(function(e){var t=arguments;A&&(t=A(t)),null!==(t=h(t))&&m.delete(t)},C):0===t?function(){return m.delete("data")}:function(e){return A&&(e=A(arguments)[0]),m.delete(e)},C=r(function(){var e=arguments;return 0===t?F.data:(A&&(e=A(e)),e=h?h(e):String(e[0]),F[e])}),y=r(function(){var e=arguments;return 0===t?m.has("data"):(A&&(e=A(e)),null!==(e=h?h(e):String(e[0]))&&m.has(e))}),d(E,{__memoized__:a(!0),delete:a(o),clear:a(m.clear),_get:a(C),_has:a(y)}),m}}),Pr=fe(function(e,t){var n=Gn(),r=Un(),a=Wn(),o=Mr(),i=Vn();t.exports=function e(t){var l,u,s;if(n(t),(l=Object(arguments[1]))\
.async&&l.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!l.force?t:(u=i(l.length,t.length,l.async&&a.async),s=o(t,u,l),r(a,function(e,t){l[t]&&e(l[t],s,l)}),e.__profiler__&&e.__profiler__(s),s.updateEnv(),s.memoized)}}),Ir=fe(function(e,t){t.exports=function(e){var t,n,r=e.length;if(!r)return"";for(t=String(e[n=0]);--r;)t+=""+e[++n];return t}}),Br=fe(function(e,t){t.exports=function(e){return e?function(t){for(var n=String(t[0]),r=0,a=e;--a;)n+=""+t[++r];return n}:function(){return""}}}),jr=fe(function(e,t){t.exports=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}}),Lr=fe(function(e,t){t.exports=function(e){return e!=e}}),qr=fe(function(e,t){t.exports=jr()()?Number.isNaN:Lr()}),zr=fe(function(e,t){var n=qr(),r=zn(),a=$n(),o=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,l=Math.abs,u=Math.floor;t.exports=function(e){var t,s,c;if(!n(e))return o.apply(this,argum\
ents);for(s=r(a(this).length),e=arguments[1],t=e=isNaN(e)?0:0<=e?u(e):r(this.length)-u(l(e));t<s;++t)if(i.call(this,t)&&(c=this[t],n(c)))return t;return-1}}),Vr=fe(function(e,t){var n=zr(),r=Object.create;t.exports=function(){var e=0,t=[],a=r(null);return{get:function(e){var r,a=0,o=t,i=e.length;if(0===i)return o[i]||null;if(o=o[i]){for(;a<i-1;){if(-1===(r=n.call(o[0],e[a])))return null;o=o[1][r],++a}return-1===(r=n.call(o[0],e[a]))?null:o[1][r]||null}return null},set:function(r){var o,i=0,l=t,u=r.length;if(0===u)l[u]=++e;else{for(l[u]||(l[u]=[[],[]]),l=l[u];i<u-1;)-1===(o=n.call(l[0],r[i]))&&(o=l[0].push(r[i])-1,l[1].push([[],[]])),l=l[1][o],++i;-1===(o=n.call(l[0],r[i]))&&(o=l[0].push(r[i])-1),l[1][o]=++e}return a[e]=r,e},delete:function(e){var r,o=0,i=t,l=a[e],u=l.length,s=[];if(0===u)delete i[u];else if(i=i[u]){for(;o<u-1;){if(-1===(r=n.call(i[0],l[o])))return;s.push(i,r),i=i[1][r],++o}if(-1===(r=n.call(i[0],l[o])))return;for(e=i[1][r],i[0].splice(r,1),i[1].splice(r,1);!i[0].length\
&&s.length;)r=s.pop(),(i=s.pop())[0].splice(r,1),i[1].splice(r,1)}delete a[e]},clear:function(){t=[],a=r(null)}}}}),Gr=fe(function(e,t){var n=zr();t.exports=function(){var e=0,t=[],r=[];return{get:function(e){return-1===(e=n.call(t,e[0]))?null:r[e]},set:function(n){return t.push(n[0]),r.push(++e),e},delete:function(e){-1!==(e=n.call(r,e))&&(t.splice(e,1),r.splice(e,1))},clear:function(){t=[],r=[]}}}}),$r=fe(function(e,t){var n=zr(),r=Object.create;t.exports=function(e){var t=0,a=[[],[]],o=r(null);return{get:function(t){for(var r,o=0,i=a;o<e-1;){if(-1===(r=n.call(i[0],t[o])))return null;i=i[1][r],++o}return-1!==(r=n.call(i[0],t[o]))&&i[1][r]||null},set:function(r){for(var i,l=0,u=a;l<e-1;)-1===(i=n.call(u[0],r[l]))&&(i=u[0].push(r[l])-1,u[1].push([[],[]])),u=u[1][i],++l;return-1===(i=n.call(u[0],r[l]))&&(i=u[0].push(r[l])-1),u[1][i]=++t,o[t]=r,t},delete:function(t){for(var r,i=0,l=a,u=[],s=o[t];i<e-1;){if(-1===(r=n.call(l[0],s[i])))return;u.push(l,r),l=l[1][r],++i}if(-1!==(r=n.call(l[0]\
,s[i]))){for(t=l[1][r],l[0].splice(r,1),l[1].splice(r,1);!l[0].length&&u.length;)r=u.pop(),(l=u.pop())[0].splice(r,1),l[1].splice(r,1);delete o[t]}},clear:function(){a=[[],[]],o=r(null)}}}}),Hr=fe(function(e,t){var n=Gn(),r=Un(),a=Function.prototype.call;t.exports=function(e,t){var o={},i=arguments[2];return n(t),r(e,function(e,n,r,l){o[n]=a.call(t,i,e,n,r,l)}),o}}),Ur=fe(function(e,t){function n(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}function o(e){var t,a,o=r.createTextNode(""),i=0;return new e(function(){var e;if(t)a&&(t=a.concat(t));else{if(!a)return;t=a}if(a=t,t=null,"function"==typeof a)e=a,a=null,e();else for(o.data=i=++i%2;a;)e=a.shift(),a.length||(a=null),e()}).observe(o,{characterData:!0}),function(e){n(e),t?"function"==typeof t?t=[t,e]:t.push(e):(t=e,o.data=i=++i%2)}}t.exports=(()=>{if("object"===("undefined"==typeof process?"undefined":a(process))&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typ\
eof queueMicrotask)return function(e){queueMicrotask(n(e))};if("object"===(void 0===r?"undefined":a(r))&&r){if("function"==typeof MutationObserver)return o(MutationObserver);if("function"==typeof WebKitMutationObserver)return o(WebKitMutationObserver)}return"function"==typeof setImmediate?function(e){setImmediate(n(e))}:"function"==typeof setTimeout||"object"===("undefined"==typeof setTimeout?"undefined":a(setTimeout))?function(e){setTimeout(n(e),0)}:null})()}),Wr=fe(function(){var e=Tr(),t=Hr(),n=nr(),r=rr(),a=Ur(),o=Array.prototype.slice,i=Function.prototype.apply,l=Object.create;Wn().async=function(u,s){var c,d,p,f=l(null),m=l(null),h=s.memoized,g=s.original;s.memoized=r(function(e){var t=arguments,n=t[t.length-1];return"function"==typeof n&&(c=n,t=o.call(t,0,-1)),h.apply(d=this,p=t)},h);try{n(s.memoized,h)}catch(u){}s.on("get",function(e){var t,n,r;c&&(f[e]?("function"==typeof f[e]?f[e]=[f[e],c]:f[e].push(c),c=null):(t=c,n=d,r=p,c=d=p=null,a(function(){var a;hasOwnProperty.call(m,e\
)?(a=m[e],s.emit("getasync",e,r,n),i.call(t,a.context,a.args)):(c=t,d=n,p=r,h.apply(n,r))})))}),s.original=function(){var t,n,r,o;return c?(t=e(arguments),r=c,c=d=p=null,t.push(n=function t(n){var r,l,u=t.id;if(null==u)a(i.bind(t,this,arguments));else if(delete t.id,r=f[u],delete f[u],r)return l=e(arguments),s.has(u)&&(n?s.delete(u):(m[u]={context:this,args:l},s.emit("setasync",u,"function"==typeof r?1:r.length))),"function"==typeof r?o=i.call(r,this,l):r.forEach(function(e){o=i.call(e,this,l)},this),o}),o=i.call(g,this,t),n.cb=r,c=n,o):i.call(g,this,arguments)},s.on("set",function(e){c?(f[e]?"function"==typeof f[e]?f[e]=[f[e],c.cb]:f[e].push(c.cb):f[e]=c.cb,delete c.cb,c.id=e,c=null):s.delete(e)}),s.on("delete",function(e){var t;hasOwnProperty.call(f,e)||m[e]&&(t=m[e],delete m[e],s.emit("deleteasync",e,o.call(t.args,1)))}),s.on("clear",function(){var e=m;m=l(null),s.emit("clearasync",t(e,function(e){return o.call(e.args,1)}))})}}),Yr=fe(function(e,t){var n=Array.prototype.forEach,r=Ob\
ject.create;t.exports=function(e){var t=r(null);return n.call(arguments,function(e){t[e]=!0}),t}}),Kr=fe(function(e,t){t.exports=function(e){return"function"==typeof e}}),Xr=fe(function(e,t){var n=Kr();t.exports=function(e){try{return e&&n(e.toString)?e.toString():String(e)}catch(e){throw new TypeError("Passed argument cannot be stringifed")}}}),Zr=fe(function(e,t){var n=$n(),r=Xr();t.exports=function(e){return r(n(e))}}),Jr=fe(function(e,t){var n=Kr();t.exports=function(e){try{return e&&n(e.toString)?e.toString():String(e)}catch(e){return"<Non-coercible to string value>"}}}),Qr=fe(function(e,t){var n=Jr(),r=/[\\n\\r\\u2028\\u2029]/g;t.exports=function(e){return(e=100<(e=n(e)).length?e.slice(0,99)+"…":e).replace(r,function(e){return JSON.stringify(e).slice(1,-1)})}}),ea=fe(function(e,t){function n(e){return!!e&&("object"===a(e)||"function"==typeof e)&&"function"==typeof e.then}t.exports=n,t.exports.default=n}),ta=fe(function(){var e=Hr(),t=Yr(),n=Zr(),r=Qr(),a=ea(),o=Ur(),i=Object.create,l\
=t("then","then:finally","done","done:finally");Wn().promise=function(t,u){var s=i(null),c=i(null),d=i(null);if(!0===t)t=null;else if(t=n(t),!l[t])throw new TypeError("'"+r(t)+"' is not valid promise mode");u.on("set",function(e,n,r){var i=!1;if(a(r)){s[e]=1,d[e]=r;var l=function(t){var n=s[e];if(i)throw new Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\\nConsider to rely on 'then' or 'done' mode instead.");n&&(delete s[e],c[e]=t,u.emit("setasync",e,n))},p=function(){i=!0,s[e]&&(delete s[e],delete d[e],u.delete(e))},f=t;if("then"===(f=f||"then")){var m=function(){o(p)};"function"==typeof(r=r.then(function(e){o(l.bind(this,e))},m)).finally&&r.finally(m)}else if("done"===f){if("function"!=typeof r.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");r.done(l,p)}else if("done:finally"===f){if("function"!=typeof r.done)thr\
ow new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof r.finally)throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");r.done(l),r.finally(p)}}else c[e]=r,u.emit("setasync",e,1)}),u.on("get",function(e,t,n){var r,i;s[e]?++s[e]:(r=d[e],i=function(){u.emit("getasync",e,t,n)},a(r)?"function"==typeof r.done?r.done(i):r.then(function(){o(i)}):i())}),u.on("delete",function(e){var t;delete d[e],s[e]?delete s[e]:hasOwnProperty.call(c,e)&&(t=c[e],delete c[e],u.emit("deleteasync",e,[t]))}),u.on("clear",function(){var t=c;c=i(null),s=i(null),d=i(null),u.emit("clearasync",e(t,function(e){return[e]}))})}}),na=fe(function(){var e=Gn(),t=Un(),n=Wn(),r=Function.prototype.apply;n.dispose=function(a,o,i){var l;e(a),i.async&&n.async||i.promise&&n.promise?(o.on("deleteasync",l=function(e,t){r.call(a,null,t)}),o.on("clearasync",function(e){t(e,function(e,t){l(t,e)})})):(o.on("delete",l=funct\
ion(e,t){a(t)}),o.on("clear",function(e){t(e,function(e,t){l(t,e)})}))}}),ra=fe(function(e,t){t.exports=2147483647}),aa=fe(function(e,t){var n=zn(),r=ra();t.exports=function(e){if(e=n(e),r<e)throw new TypeError(e+" exceeds maximum possible timeout");return e}}),oa=fe(function(){var e=Tr(),t=Un(),n=Ur(),r=ea(),a=aa(),o=Wn(),i=Function.prototype,l=Math.max,u=Math.min,s=Object.create;o.maxAge=function(c,d,p){var f,m,h,g;(c=a(c))&&(f=s(null),m=p.async&&o.async||p.promise&&o.promise?"async":"",d.on("set"+m,function(e){f[e]=setTimeout(function(){d.delete(e)},c),"function"==typeof f[e].unref&&f[e].unref(),g&&(g[e]&&"nextTick"!==g[e]&&clearTimeout(g[e]),g[e]=setTimeout(function(){delete g[e]},h),"function"==typeof g[e].unref)&&g[e].unref()}),d.on("delete"+m,function(e){clearTimeout(f[e]),delete f[e],g&&("nextTick"!==g[e]&&clearTimeout(g[e]),delete g[e])}),p.preFetch&&(h=!0===p.preFetch||isNaN(p.preFetch)?.333:l(u(Number(p.preFetch),1),0))&&(g={},h=(1-h)*c,d.on("get"+m,function(t,a,o){g[t]||(g[\
t]="nextTick",n(function(){var n;"nextTick"===g[t]&&(delete g[t],d.delete(t),p.async&&(a=e(a)).push(i),n=d.memoized.apply(o,a),p.promise)&&r(n)&&("function"==typeof n.done?n.done(i,i):n.then(i,i))}))})),d.on("clear"+m,function(){t(f,function(e){clearTimeout(e)}),f={},g&&(t(g,function(e){"nextTick"!==e&&clearTimeout(e)}),g={})}))}}),ia=fe(function(e,t){var n=zn(),r=Object.create,a=Object.prototype.hasOwnProperty;t.exports=function(e){var t,o=0,i=1,l=r(null),u=r(null),s=0;return e=n(e),{hit:function(n){var r=u[n],c=++s;if(l[c]=n,u[n]=c,!r)return++o<=e?void 0:(n=l[i],t(n),n);if(delete l[r],i===r)for(;!a.call(l,++i););},delete:t=function(e){var t=u[e];if(t&&(delete l[t],delete u[e],--o,i===t))if(o)for(;!a.call(l,++i););else s=0,i=1},clear:function(){o=0,i=1,l=r(null),u=r(null),s=0}}}}),la=fe(function(){var e=zn(),t=ia(),n=Wn();n.max=function(r,a,o){var i;(r=e(r))&&(i=t(r),r=o.async&&n.async||o.promise&&n.promise?"async":"",a.on("set"+r,o=function(e){void 0!==(e=i.hit(e))&&a.delete(e)}),a.o\
n("get"+r,o),a.on("delete"+r,i.delete),a.on("clear"+r,i.clear))}}),ua=fe(function(){var e=pr(),t=Wn(),n=Object.create,r=Object.defineProperties;t.refCounter=function(a,o,i){var l=n(null);i=i.async&&t.async||i.promise&&t.promise?"async":"";o.on("set"+i,function(e,t){l[e]=t||1}),o.on("get"+i,function(e){++l[e]}),o.on("delete"+i,function(e){delete l[e]}),o.on("clear"+i,function(){l={}}),r(o.memoized,{deleteRef:e(function(){var e=o.get(arguments);return null!==e&&l[e]?! --l[e]&&(o.delete(e),!0):null}),getRefCount:e(function(){var e=o.get(arguments);return null!==e&&l[e]||0})})}}),sa=fe(function(e,t){var n=In(),r=Vn(),a=Pr();t.exports=function(e){var t,o=n(arguments[1]);return o.normalizer||0!==(t=o.length=r(o.length,e.length,o.async))&&(o.primitive?!1===t?o.normalizer=Ir():1<t&&(o.normalizer=Br()(t)):o.normalizer=!1===t?Vr()():1===t?Gr()():$r()(t)),o.async&&Wr(),o.promise&&ta(),o.dispose&&na(),o.maxAge&&oa(),o.max&&la(),o.refCounter&&ua(),a(e,o)}}),ca={helpUrlBase:"https://dequeuniversity.\
com/rules/",gridSize:200,selectorSimilarFilterLimit:700,results:[],resultGroups:[],resultGroupMap:{},impact:Object.freeze(["minor","moderate","serious","critical"]),preload:Object.freeze({assets:["cssom","media"],timeout:1e4}),allOrigins:"<unsafe_all_origins>",sameOrigin:"<same_origin>",serializableErrorProps:Object.freeze(["message","stack","name","code","ruleId","method"])},da=([{name:"NA",value:"inapplicable",priority:0,group:"inapplicable"},{name:"PASS",value:"passed",priority:1,group:"passes"},{name:"CANTTELL",value:"cantTell",priority:2,group:"incomplete"},{name:"FAIL",value:"failed",priority:3,group:"violations"}].forEach(function(e){var t=e.name,n=e.value,r=e.priority;e=e.group;ca[t]=n,ca[t+"_PRIO"]=r,ca[t+"_GROUP"]=e,ca.results[r]=n,ca.resultGroups[r]=e,ca.resultGroupMap[n]=e}),Object.freeze(ca.results),Object.freeze(ca.resultGroups),Object.freeze(ca.resultGroupMap),Object.freeze(ca),ca),pa=function(){"object"===("undefined"==typeof console?"undefined":a(console))&&console.log\
&&Function.prototype.apply.call(console.log,console,arguments)},fa=/[\\t\\r\\n\\f]/g,ma=Z(function e(){K(this,e),this.parent=void 0},[{key:"props",get:function(){throw new Error('VirtualNode class must have a "props" object consisting of "nodeType" and "nodeName" properties')}},{key:"attrNames",get:function(){throw new Error('VirtualNode class must have an "attrNames" property')}},{key:"attr",value:function(){throw new Error('VirtualNode class must have an "attr" function')}},{key:"hasAttr",value:function(){throw new Error('VirtualNode class must have a "hasAttr" function')}},{key:"hasClass",value:function(e){var t=this.attr("class");return!!t&&(e=" "+e+" ",0<=(" "+t+" ").replace(fa," ").indexOf(e))}}]),ha={},ga=(me(ha,{DqElement:function(){return Vl},RuleError:function(){return jm},aggregate:function(){return ga},aggregateChecks:function(){return xa},aggregateNodeResults:function(){return Aa},aggregateResult:function(){return Ca},areStylesSet:function(){return ka},assert:function(){return\
 Ra},checkHelper:function(){return Gl},clone:function(){return $l},closest:function(){return eu},collectResultsFromFrames:function(){return Yu},contains:function(){return Ku},convertSelector:function(){return Jl},cssParser:function(){return Hl},deepMerge:function(){return Xu},escapeSelector:function(){return Ta},extendMetaData:function(){return Zu},filterHtmlAttrs:function(){return _m},finalizeRuleResult:function(){return Ea},findBy:function(){return Hu},getAllChecks:function(){return $u},getAncestry:function(){return _l},getBaseLang:function(){return wf},getCheckMessage:function(){return Nf},getCheckOption:function(){return Tf},getElementInternals:function(){return Wf},getElementSource:function(){return jl},getEnvironmentData:function(){return Of},getFlattenedTree:function(){return gf},getFrameContexts:function(){return Bf},getFriendlyUriEnd:function(){return Ma},getNodeAttributes:function(){return Pa},getNodeFromTree:function(){return Bl},getPreloadConfig:function(){return km},getRoo\
tNode:function(){return is},getRule:function(){return jf},getScroll:function(){return qf},getScrollState:function(){return zf},getSelector:function(){return Tl},getSelectorData:function(){return Cl},getShadowSelector:function(){return vl},getStandards:function(){return Vf},getStyleSheetFactory:function(){return $f},getXpath:function(){return Ml},injectStyle:function(){return Yf},isArrayLike:function(){return Kf},isContextObject:function(){return Jf},isContextProp:function(){return Qf},isContextSpec:function(){return Zf},isHidden:function(){return nm},isHtmlElement:function(){return rm},isLabelledFramesSelector:function(){return em},isLabelledShadowDomSelector:function(){return tm},isNodeInContext:function(){return am},isShadowRoot:function(){return as},isValidCustomElementName:function(){return ns},isValidLang:function(){return Hm},isXHTML:function(){return gl},matchAncestry:function(){return im},matches:function(){return Ul},matchesExpression:function(){return Ql},matchesSelector:func\
tion(){return Ia},memoize:function(){return hl},mergeResults:function(){return Wu},nodeLookup:function(){return um},nodeSerializer:function(){return Gu},nodeSorter:function(){return lm},normalizeRunOptions:function(){return Um},objectHasOwn:function(){return Xf},parseCrossOriginStylesheet:function(){return fm},parseSameOriginStylesheet:function(){return dm},parseStylesheet:function(){return pm},parseTabindex:function(){return mm},performanceTimer:function(){return gm},pollyfillElementsFromPoint:function(){return vm},preload:function(){return Fm},preloadCssom:function(){return Dm},preloadMedia:function(){return Am},processMessage:function(){return Rf},publishMetaData:function(){return Rm},querySelectorAll:function(){return Tm},querySelectorAllFilter:function(){return wm},queue:function(){return iu},respondable:function(){return Iu},ruleShouldRun:function(){return Sm},select:function(){return Pm},sendCommandToFrame:function(){return ju},serializeError:function(){return Im},setScrollState\
:function(){return Lm},shadowSelect:function(){return qm},shadowSelectAll:function(){return zm},shouldPreload:function(){return Cm},toArray:function(){return Na},tokenList:function(){return sf},uniqueArray:function(){return bm},uuid:function(){return yu},validInputTypes:function(){return Vm},validLangs:function(){return $m}}),function(e,t,n){return t=t.slice(),n&&t.push(n),n=t.map(function(t){return e.indexOf(t)}).sort(),e[n.pop()]}),va=da.CANTTELL_PRIO,ba=da.FAIL_PRIO,ya=[],wa=(ya[da.PASS_PRIO]=!0,ya[da.CANTTELL_PRIO]=null,ya[da.FAIL_PRIO]=!1,["any","all","none"]);function Da(e,t){wa.reduce(function(n,r){return n[r]=(e[r]||[]).map(function(e){return t(e,r)}),n},{})}var xa=function(e){var t=Object.assign({},e),n=(Da(t,function(e,t){var n=void 0===e.result?-1:ya.indexOf(e.result);e.priority=-1!==n?n:da.CANTTELL_PRIO,"none"===t&&(e.priority===da.PASS_PRIO?e.priority=da.FAIL_PRIO:e.priority===da.FAIL_PRIO&&(e.priority=da.PASS_PRIO))}),{all:t.all.reduce(function(e,t){return Math.max(e,t.pr\
iority)},0),none:t.none.reduce(function(e,t){return Math.max(e,t.priority)},0),any:t.any.reduce(function(e,t){return Math.min(e,t.priority)},4)%4}),r=(t.priority=Math.max(n.all,n.none,n.any),[]);return wa.forEach(function(e){t[e]=t[e].filter(function(r){return r.priority===t.priority&&r.priority===n[e]}),t[e].forEach(function(e){return r.push(e.impact)})}),[va,ba].includes(t.priority)?t.impact=ga(da.impact,r):t.impact=null,Da(t,function(e){delete e.result,delete e.priority}),t.result=da.results[t.priority],delete t.priority,t};function Ea(e){var t=o._audit.rules.find(function(t){return t.id===e.id});return t&&t.impact&&e.nodes.forEach(function(e){["any","all","none"].forEach(function(n){(e[n]||[]).forEach(function(e){e.impact=t.impact})})}),Object.assign(e,Aa(e.nodes)),delete e.nodes,e}var Aa=function(e){var t={},n=((e=e.map(function(e){if(e.any&&e.all&&e.none)return xa(e);if(Array.isArray(e.node))return Ea(e);throw new TypeError("Invalid Result type")}))&&e.length?(n=e.map(function(e)\
{return e.result}),t.result=ga(da.results,n,t.result)):t.result="inapplicable",da.resultGroups.forEach(function(e){return t[e]=[]}),e.forEach(function(e){var n=da.resultGroupMap[e.result];t[n].push(e)}),da.FAIL_GROUP);return 0===t[n].length&&(n=da.CANTTELL_GROUP),0<t[n].length?(e=t[n].map(function(e){return e.impact}),t.impact=ga(da.impact,e)||null):t.impact=null,t};function Fa(e,t,n){var r=Object.assign({},t);r.nodes=(r[n]||[]).concat(),da.resultGroups.forEach(function(e){delete r[e]}),e[n].push(r)}var Ca=function(e){var t={};return da.resultGroups.forEach(function(e){return t[e]=[]}),e.forEach(function(e){e.error?Fa(t,e,da.CANTTELL_GROUP):e.result===da.NA?Fa(t,e,da.NA_GROUP):da.resultGroups.forEach(function(n){Array.isArray(e[n])&&0<e[n].length&&Fa(t,e,n)})}),t},ka=function e(n,r,a){var o=t.getComputedStyle(n,null);if(!o)return!1;for(var i=0;i<r.length;++i){var l=r[i];if(o.getPropertyValue(l.property)===l.value)return!0}return!(!n.parentNode||n.nodeName.toUpperCase()===a.toUpperCase(\
))&&e(n.parentNode,r,a)},Ra=function(e,t){if(!e)throw new Error(t)},Na=function(e){return Array.prototype.slice.call(e)},Ta=function(e){for(var t,n=String(e),r=n.length,a=-1,o="",i=n.charCodeAt(0);++a<r;)0==(t=n.charCodeAt(a))?o+="�":o+=1<=t&&t<=31||127==t||0==a&&48<=t&&t<=57||1==a&&48<=t&&t<=57&&45==i?"\\\\"+t.toString(16)+" ":0==a&&1==r&&45==t||!(128<=t||45==t||95==t||48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122)?"\\\\"+n.charAt(a):n.charAt(a);return o};function Oa(e,t){return[e.substring(0,t),e.substring(t)]}function Sa(e){return e.replace(/\\s+$/,"")}var _a,Ma=function(){var e,t,n,r,a,o,i,l,u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(u.length<=1||"data:"===u.substr(0,5)||"javascript:"===u.substr(0,11)||u.includes("?")))return e=s.currentDomain,s=void 0===(s=s.maxLength)?25:s,i=o=l=a=r="",(n=u).includes("#")&&(u=(t=U(Oa(u,u.indexOf("#")),2))[0],i=t[1]),u.includes("?")&&(u=(t=U(Oa(u,u.indexOf("?")),2))[0],o=t[1]\
),u.includes("://")?(r=(t=U(u.split("://"),2))[0],a=(t=U(Oa(u=t[1],u.indexOf("/")),2))[0],u=t[1]):"//"===u.substr(0,2)&&(a=(t=U(Oa(u=u.substr(2),u.indexOf("/")),2))[0],u=t[1]),(a="www."===a.substr(0,4)?a.substr(4):a)&&a.includes(":")&&(a=(t=U(Oa(a,a.indexOf(":")),2))[0],l=t[1]),n=(t={original:n,protocol:r,domain:a,port:l,path:u,query:o,hash:i}).domain,r=t.hash,l=(a=t.path).substr(a.substr(0,a.length-2).lastIndexOf("/")+1),r?l&&(l+r).length<=s?Sa(l+r):l.length<2&&2<r.length&&r.length<=s?Sa(r):void 0:n&&n.length<s&&a.length<=1||a==="/"+l&&n&&e&&n!==e&&(n+a).length<=s?Sa(n+a):(-1===(u=l.lastIndexOf("."))||1<u)&&(-1!==u||2<l.length)&&l.length<=s&&!l.match(/index(\\.[a-zA-Z]{2-4})?/)&&!function(e){return 0!==(e=0<arguments.length&&void 0!==e?e:"").length&&(e.match(/[0-9]/g)||"").length>=e.length/2}(l)?Sa(l):void 0},Pa=function(e){return(e.attributes instanceof t.NamedNodeMap?e:e.cloneNode(!1)).attributes},Ia=function(e,t){return!!e[_a=_a&&e[_a]?_a:(e=>{for(var t,n=["matches","matchesSelector\
","mozMatchesSelector","webkitMatchesSelector","msMatchesSelector"],r=n.length,a=0;a<r;a++)if(e[t=n[a]])return t})(e)]&&e[_a](t)},Ba={},ja=(Ee=(me(Ba,{ArrayFrom:function(){return ml.default},Colorjs:function(){return ul},CssSelectorParser:function(){return ja.CssSelectorParser},doT:function(){return La.default},emojiRegexText:function(){return qa},memoize:function(){return za.default}}),he(Ee())),Ae=he(Ae()),Fe=(he(Fe()),he(At())),At=he(Vt()),Vt=he(Rn()),"hasOwn"in Object||(Object.hasOwn=Fe.default),"values"in Object||(Object.values=At.default),"Promise"in t||Ee.default.polyfill(),"Uint32Array"in t||(t.Uint32Array=Ae.Uint32Array),t.Uint32Array&&("some"in t.Uint32Array.prototype||Object.defineProperty(t.Uint32Array.prototype,"some",{value:Array.prototype.some}),"reduce"in t.Uint32Array.prototype||Object.defineProperty(t.Uint32Array.prototype,"reduce",{value:Array.prototype.reduce})),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot conve\
rt undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a])}return t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,a=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(a,t,o,n))return t}}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e,t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var n,r=Object(this),a=r.length>>>0,o=0;o<a;o++)if(n=r[o],e.call(t,n,o,r))return o;return-1}}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e){var t=Object(this),n=p\
arseInt(t.length,10)||0;if(0!==n){var r,a,o=parseInt(arguments[1],10)||0;for(0<=o?r=o:(r=n+o)<0&&(r=0);r<n;){if(e===(a=t[r])||e!=e&&a!=a)return!0;r++}}return!1}}),Array.prototype.some||Object.defineProperty(Array.prototype,"some",{value:function(e){if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var t=Object(this),n=t.length>>>0,r=2<=arguments.length?arguments[1]:void 0,a=0;a<n;a++)if(a in t&&e.call(r,t[a],a,t))return!0;return!1}}),Array.from||(Array.from=Vt.default),String.prototype.includes||(String.prototype.includes=function(e,t){return!((t="number"!=typeof t?0:t)+e.length>this.length)&&-1!==this.indexOf(e,t)}),Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,value:function e(){var t=isNaN(arguments[0])?1:Number(arguments[0]);return t?Array.prototype.reduce.call(this,function(n,r){return Array.isArray(r)?n.push.apply(n,e.call(r,t-1)):n.push(r),n},[]):Array.protot\
ype.slice.call(this)},writable:!0}),!t.Node||"isConnected"in t.Node.prototype||Object.defineProperty(t.Node.prototype,"isConnected",{get:function(){return!(this.ownerDocument&&this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}}),he(Sn())),La=he(_n()),qa=function(){return/[#*0-9]\\uFE0F?\\u20E3|[\\xA9\\xAE\\u203C\\u2049\\u2122\\u2139\\u2194-\\u2199\\u21A9\\u21AA\\u231A\\u231B\\u2328\\u23CF\\u23ED-\\u23EF\\u23F1\\u23F2\\u23F8-\\u23FA\\u24C2\\u25AA\\u25AB\\u25B6\\u25C0\\u25FB\\u25FC\\u25FE\\u2600-\\u2604\\u260E\\u2611\\u2614\\u2615\\u2618\\u2620\\u2622\\u2623\\u2626\\u262A\\u262E\\u262F\\u2638-\\u263A\\u2640\\u2642\\u2648-\\u2653\\u265F\\u2660\\u2663\\u2665\\u2666\\u2668\\u267B\\u267E\\u267F\\u2692\\u2694-\\u2697\\u2699\\u269B\\u269C\\u26A0\\u26A7\\u26AA\\u26B0\\u26B1\\u26BD\\u26BE\\u26C4\\u26C8\\u26CF\\u26D1\\u26E9\\u26F0-\\u26F5\\u26F7\\u26F8\\u26FA\\u2702\\u2708\\u2709\\u270F\\u2712\\u2714\\u2716\\u271D\\u2721\\u2733\\u2734\\u2744\\u2747\\u2757\\u2763\\u27A1\\u2934\\u2935\\u2B05-\\u2B07\\u2B1B\\u2B1C\\u2B55\\u3030\\u303D\\u3297\\u3299]\\uFE0F?|[\\u261D\\u270C\\\
u270D](?:\\uD83C[\\uDFFB-\\uDFFF]|\\uFE0F)?|[\\u270A\\u270B](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\u23E9-\\u23EC\\u23F0\\u23F3\\u25FD\\u2693\\u26A1\\u26AB\\u26C5\\u26CE\\u26D4\\u26EA\\u26FD\\u2705\\u2728\\u274C\\u274E\\u2753-\\u2755\\u2795-\\u2797\\u27B0\\u27BF\\u2B50]|\\u26D3\\uFE0F?(?:\\u200D\\uD83D\\uDCA5)?|\\u26F9(?:\\uD83C[\\uDFFB-\\uDFFF]|\\uFE0F)?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\u2764\\uFE0F?(?:\\u200D(?:\\uD83D\\uDD25|\\uD83E\\uDE79))?|\\uD83C(?:[\\uDC04\\uDD70\\uDD71\\uDD7E\\uDD7F\\uDE02\\uDE37\\uDF21\\uDF24-\\uDF2C\\uDF36\\uDF7D\\uDF96\\uDF97\\uDF99-\\uDF9B\\uDF9E\\uDF9F\\uDFCD\\uDFCE\\uDFD4-\\uDFDF\\uDFF5\\uDFF7]\\uFE0F?|[\\uDF85\\uDFC2\\uDFC7](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDFC4\\uDFCA](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDFCB\\uDFCC](?:\\uD83C[\\uDFFB-\\uDFFF]|\\uFE0F)?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDCCF\\uDD8E\\uDD91-\\uDD9A\\uDE01\\uDE1A\\uDE2F\\uDE32-\\uDE36\\uDE38-\\uDE3A\\uDE50\\uDE51\\uDF00-\\uDF20\\uDF2D-\\uDF35\\uDF37-\\uDF43\\uDF45-\\uDF4A\\uDF4C-\\uDF7C\\uDF7E-\\uDF84\\uDF86-\\uDF93\\uDFA0-\\uDFC1\\uDFC5\\uDFC6\\uDFC8\\uDFC9\\uDFCF-\\uDFD3\\uDFE0-\\uDFF0\\uDF\
F8-\\uDFFF]|\\uDDE6\\uD83C[\\uDDE8-\\uDDEC\\uDDEE\\uDDF1\\uDDF2\\uDDF4\\uDDF6-\\uDDFA\\uDDFC\\uDDFD\\uDDFF]|\\uDDE7\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEF\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9\\uDDFB\\uDDFC\\uDDFE\\uDDFF]|\\uDDE8\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDEE\\uDDF0-\\uDDF7\\uDDFA-\\uDDFF]|\\uDDE9\\uD83C[\\uDDEA\\uDDEC\\uDDEF\\uDDF0\\uDDF2\\uDDF4\\uDDFF]|\\uDDEA\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDED\\uDDF7-\\uDDFA]|\\uDDEB\\uD83C[\\uDDEE-\\uDDF0\\uDDF2\\uDDF4\\uDDF7]|\\uDDEC\\uD83C[\\uDDE6\\uDDE7\\uDDE9-\\uDDEE\\uDDF1-\\uDDF3\\uDDF5-\\uDDFA\\uDDFC\\uDDFE]|\\uDDED\\uD83C[\\uDDF0\\uDDF2\\uDDF3\\uDDF7\\uDDF9\\uDDFA]|\\uDDEE\\uD83C[\\uDDE8-\\uDDEA\\uDDF1-\\uDDF4\\uDDF6-\\uDDF9]|\\uDDEF\\uD83C[\\uDDEA\\uDDF2\\uDDF4\\uDDF5]|\\uDDF0\\uD83C[\\uDDEA\\uDDEC-\\uDDEE\\uDDF2\\uDDF3\\uDDF5\\uDDF7\\uDDFC\\uDDFE\\uDDFF]|\\uDDF1\\uD83C[\\uDDE6-\\uDDE8\\uDDEE\\uDDF0\\uDDF7-\\uDDFB\\uDDFE]|\\uDDF2\\uD83C[\\uDDE6\\uDDE8-\\uDDED\\uDDF0-\\uDDFF]|\\uDDF3\\uD83C[\\uDDE6\\uDDE8\\uDDEA-\\uDDEC\\uDDEE\\uDDF1\\uDDF4\\uDDF5\\uDDF7\\uDDFA\\uDDFF]|\\uDDF4\\uD83C\\uDDF2|\\uDDF5\\uD83C[\\uDDE6\\uDDEA-\\uDDED\\uDDF0-\\uDDF3\\uDDF7-\\uDDF9\\uDDFC\\uDDFE]|\\uDDF6\
\\uD83C\\uDDE6|\\uDDF7\\uD83C[\\uDDEA\\uDDF4\\uDDF8\\uDDFA\\uDDFC]|\\uDDF8\\uD83C[\\uDDE6-\\uDDEA\\uDDEC-\\uDDF4\\uDDF7-\\uDDF9\\uDDFB\\uDDFD-\\uDDFF]|\\uDDF9\\uD83C[\\uDDE6\\uDDE8\\uDDE9\\uDDEB-\\uDDED\\uDDEF-\\uDDF4\\uDDF7\\uDDF9\\uDDFB\\uDDFC\\uDDFF]|\\uDDFA\\uD83C[\\uDDE6\\uDDEC\\uDDF2\\uDDF3\\uDDF8\\uDDFE\\uDDFF]|\\uDDFB\\uD83C[\\uDDE6\\uDDE8\\uDDEA\\uDDEC\\uDDEE\\uDDF3\\uDDFA]|\\uDDFC\\uD83C[\\uDDEB\\uDDF8]|\\uDDFD\\uD83C\\uDDF0|\\uDDFE\\uD83C[\\uDDEA\\uDDF9]|\\uDDFF\\uD83C[\\uDDE6\\uDDF2\\uDDFC]|\\uDF44(?:\\u200D\\uD83D\\uDFEB)?|\\uDF4B(?:\\u200D\\uD83D\\uDFE9)?|\\uDFC3(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDFF3\\uFE0F?(?:\\u200D(?:\\u26A7\\uFE0F?|\\uD83C\\uDF08))?|\\uDFF4(?:\\u200D\\u2620\\uFE0F?|\\uDB40\\uDC67\\uDB40\\uDC62\\uDB40(?:\\uDC65\\uDB40\\uDC6E\\uDB40\\uDC67|\\uDC73\\uDB40\\uDC63\\uDB40\\uDC74|\\uDC77\\uDB40\\uDC6C\\uDB40\\uDC73)\\uDB40\\uDC7F)?)|\\uD83D(?:[\\uDC3F\\uDCFD\\uDD49\\uDD4A\\uDD6F\\uDD70\\uDD73\\uDD76-\\uDD79\\uDD87\\uDD8A-\\uDD8D\\uDDA5\\uDDA8\\uDDB1\\uDDB2\\uDDBC\\uDDC2-\\uDDC4\\uDDD1-\\uDDD3\\uDDDC-\\uDDDE\\uDDE1\\uDDE3\\u\
DDE8\\uDDEF\\uDDF3\\uDDFA\\uDECB\\uDECD-\\uDECF\\uDEE0-\\uDEE5\\uDEE9\\uDEF0\\uDEF3]\\uFE0F?|[\\uDC42\\uDC43\\uDC46-\\uDC50\\uDC66\\uDC67\\uDC6B-\\uDC6D\\uDC72\\uDC74-\\uDC76\\uDC78\\uDC7C\\uDC83\\uDC85\\uDC8F\\uDC91\\uDCAA\\uDD7A\\uDD95\\uDD96\\uDE4C\\uDE4F\\uDEC0\\uDECC](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDC6E-\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4\\uDEB5](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD74\\uDD90](?:\\uD83C[\\uDFFB-\\uDFFF]|\\uFE0F)?|[\\uDC00-\\uDC07\\uDC09-\\uDC14\\uDC16-\\uDC25\\uDC27-\\uDC3A\\uDC3C-\\uDC3E\\uDC40\\uDC44\\uDC45\\uDC51-\\uDC65\\uDC6A\\uDC79-\\uDC7B\\uDC7D-\\uDC80\\uDC84\\uDC88-\\uDC8E\\uDC90\\uDC92-\\uDCA9\\uDCAB-\\uDCFC\\uDCFF-\\uDD3D\\uDD4B-\\uDD4E\\uDD50-\\uDD67\\uDDA4\\uDDFB-\\uDE2D\\uDE2F-\\uDE34\\uDE37-\\uDE41\\uDE43\\uDE44\\uDE48-\\uDE4A\\uDE80-\\uDEA2\\uDEA4-\\uDEB3\\uDEB7-\\uDEBF\\uDEC1-\\uDEC5\\uDED0-\\uDED2\\uDED5-\\uDED8\\uDEDC-\\uDEDF\\uDEEB\\uDEEC\\uDEF4-\\uDEFC\\uDFE0-\\uDFEB\\uDFF0]|\\uDC08(?:\\u200D\\u2B1B)?|\\uDC15(?:\\u200D\\uD83E\\uDDBA)?|\\uDC26(?:\\u200D(?:\\u2B1B|\\uD83D\\uDD25))?|\\uDC3B(?:\
\\u200D\\u2744\\uFE0F?)?|\\uDC41\\uFE0F?(?:\\u200D\\uD83D\\uDDE8\\uFE0F?)?|\\uDC68(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDC68\\uDC69]\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFC-\\uDFFF])|\\uD83E(?:[\\uDD1D\\uDEEF]\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFC-\\uDFFF]|[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC\
8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])|\\uD83E(?:[\\uDD1D\\uDEEF]\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFD-\\uDFFF]|[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])|\\uD83E(?:[\\uDD1D\\uDEEF]\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF]|[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\\
uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])|\\uD83E(?:[\\uDD1D\\uDEEF]\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFD\\uDFFF]|[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFE])|\\uD83E(?:[\\uDD1D\\uDEEF]\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFE]|[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3])))?))?|\\uDC69(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?[\\uDC68\\uDC69]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?|\\uDC69\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?))|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE\
0F?)?|[\\uDDB0-\\uDDB3]))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFC-\\uDFFF])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFC-\\uDFFF]|\\uDEEF\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFD-\\uDFFF]|\\uDEEF\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\
\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF]|\\uDEEF\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFD\\uDFFF]|\\uDEEF\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:\
[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFB-\\uDFFE])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFE]|\\uDEEF\\u200D\\uD83D\\uDC69\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDD75(?:\\uD83C[\\uDFFB-\\uDFFF]|\\uFE0F)?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDE2E(?:\\u200D\\uD83D\\uDCA8)?|\\uDE35(?:\\u200D\\uD83D\\uDCAB)?|\\uDE36(?:\\u200D\\uD83C\\uDF2B\\uFE0F?)?|\\uDE42(?:\\u200D[\\u2194\\u2195]\\uFE0F?)?|\\uDEB6(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?)|\\uD83E(?:[\\uDD0C\\uDD0F\\uDD18-\\uDD1F\\uDD30-\\uDD34\\uDD36\\uDD77\\uDDB5\\uDDB6\\uDDBB\\uDDD2\\uDDD3\\uDDD5\\uDEC3-\\uDEC5\\uDEF0\\uDEF2-\\uDEF8](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\uDD26\\uDD35\\uDD37-\\uDD39\\uDD3C-\\uDD3E\\uDDB8\\uDDB9\\uDDCD\\uDDCF\\uDDD4\\uDD\
D6-\\uDDDD](?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDDDE\\uDDDF](?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|[\\uDD0D\\uDD0E\\uDD10-\\uDD17\\uDD20-\\uDD25\\uDD27-\\uDD2F\\uDD3A\\uDD3F-\\uDD45\\uDD47-\\uDD76\\uDD78-\\uDDB4\\uDDB7\\uDDBA\\uDDBC-\\uDDCC\\uDDD0\\uDDE0-\\uDDFF\\uDE70-\\uDE7C\\uDE80-\\uDE8A\\uDE8E-\\uDEC2\\uDEC6\\uDEC8\\uDECD-\\uDEDC\\uDEDF-\\uDEEA\\uDEEF]|\\uDDCE(?:\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D(?:[\\u2640\\u2642]\\uFE0F?(?:\\u200D\\u27A1\\uFE0F?)?|\\u27A1\\uFE0F?))?|\\uDDD1(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3\\uDE70]|\\uDD1D\\u200D\\uD83E\\uDDD1|\\uDDD1\\u200D\\uD83E\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?|\\uDDD2(?:\\u200D\\uD83E\\uDDD2)?))|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFC-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\
\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFC-\\uDFFF])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3\\uDE70]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF]|\\uDEEF\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFD-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3\\uDE70]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF]|\\uDEEF\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDF\
FC\\uDFFE\\uDFFF])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3\\uDE70]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF]|\\uDEEF\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFD\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F?)?|[\\uDDB0-\\uDDB3\\uDE70]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF]|\\uDEEF\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFE]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC30\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFE])|\\uD83E(?:[\\uDDAF\\uDDBC\\uDDBD](?:\\u200D\\u27A1\\uFE0F\
?)?|[\\uDDB0-\\uDDB3\\uDE70]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF]|\\uDEEF\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDEF1(?:\\uD83C(?:\\uDFFB(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFC-\\uDFFF])?|\\uDFFC(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])?|\\uDFFD(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])?|\\uDFFE(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])?|\\uDFFF(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFE])?))?)/g},za=he(sa());function Va(e,t){var n=e.length,r=(Array.isArray(e[0])||(e=[e]),(t=Array.isArray(t[0])?t:t.map(function(e){return[e]}))[0].length),a=t[0].map(function(e,n){return t.map(function(e){return e[n]})});e=e.map(function(e){return a.map(function(t){var n=0;if(Array.isArray(e))for(var r=0;r<e.length;r++)n+=e[r]*(t[r]||0);else{var a,o=Q(t);try{for(o.s();!(a=o.n()).done;)n+=e*a.value}catch(t){o.e(t)}finally{o.f()}}return n})});return 1===n&&(e=e[0]),1===r?e.map(function(e){return e[0]}):e}function Ga(e){return"string"===$a(e)}function $a(e){return(Object.prototype\
.toString.call(e).match(/^\\[object\\s+(.*?)\\]$/)[1]||"").toLowerCase()}function Ha(e,t){e=+e,t=+t;var n=(Math.floor(e)+"").length;return n<t?+e.toFixed(t-n):(n=Math.pow(10,n-t),Math.round(e/n)*n)}function Ua(e){var t,n;if(e)return e=e.trim(),t=/^-?[\\d.]+$/,(e=e.match(/^([a-z]+)\\((.+?)\\)$/i))?(n=[],e[2].replace(/\\/?\\s*([-\\w.]+(?:%|deg)?)/g,function(e,r){/%$/.test(r)?(r=new Number(r.slice(0,-1)/100)).type="<percentage>":/deg$/.test(r)?((r=new Number(+r.slice(0,-3))).type="<angle>",r.unit="deg"):t.test(r)&&((r=new Number(r)).type="<number>"),e.startsWith("/")&&((r=r instanceof Number?r:new Number(r)).alpha=!0),n.push(r)}),{name:e[1].toLowerCase(),rawName:e[1],rawArgs:e[2],args:n}):void 0}function Wa(e){return e[e.length-1]}function Ya(e,t,n){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*n}function Ka(e,t,n){return(n-e)/(t-e)}function Xa(e,t,n){return Ya(t[0],t[1],Ka(e[0],e[1],n))}function Za(e){return e.map(function(e){return e.split("|").map(function(e){var t,n=(e=e.trim()).match(/^(<[a-z]+>)\\[(-?\
[.\\d]+),\\s*(-?[.\\d]+)\\]?$/);return n?((t=new String(n[1])).range=[+n[2],+n[3]],t):e})})}Fe=Object.freeze({__proto__:null,isString:Ga,type:$a,toPrecision:Ha,parseFunction:Ua,last:Wa,interpolate:Ya,interpolateInv:Ka,mapRange:Xa,parseCoordGrammar:Za,multiplyMatrices:Va});var Ja=new(Z(function e(){K(this,e)},[{key:"add",value:function(e,t,n){if("string"!=typeof arguments[0])for(var e in arguments[0])this.add(e,arguments[0][e],t);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this)}},{key:"run",value:function(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}}])),Qa={gamut_mapping:"lch.c",precision:5,deltaE:"76"},eo={D50:[.3457/.3585,1,.2958/.3585],D65:[.3127/.329,1,.3583/.329]};function to(e){return Array.isArray(e)?e:eo[e]}function no(e,t,n,r){if(r=3<arguments.length&&void 0!==r?r:{},e=to(e),t=to(t),!e||!t)throw new TypeError("Missing white point to convert ".concat(e?"":"from").concat(e||t?""\
:"/").concat(t?"":"to"));if(e===t)return n;if(e={W1:e,W2:t,XYZ:n,options:r},Ja.run("chromatic-adaptation-start",e),e.M||(e.W1===eo.D65&&e.W2===eo.D50?e.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:e.W1===eo.D50&&e.W2===eo.D65&&(e.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),Ja.run("chromatic-adaptation-end",e),e.M)return Va(e.M,e.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}ne=new WeakSet,re=new WeakMap;var ro=Z(function e(t){K(this,e),z(this,ne),q(this,re,void 0),this.id=t.id,this.name=t.name,this.base=t.base?ro.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);var n,r=null!=(r=t.coords)?r:this.base.coords;th\
is.coords=r,r=null!=(r=null!=(r=t.white)?r:this.base.white)?r:"D65";for(n in this.white=to(r),this.formats=null!=(r=t.formats)?r:{},this.formats){var a=this.formats[n];a.type||(a.type="function"),a.name||(a.name=n)}!t.cssId||null!=(r=this.formats.functions)&&r.color?null==(r=this.formats)||!r.color||null!=(r=this.formats)&&r.color.id||(this.formats.color.id=this.id):(this.formats.color={id:t.cssId},Object.defineProperty(this,"cssId",{value:t.cssId})),this.referred=t.referred,$(re,this,H(ne,this,oo).call(this).reverse()),Ja.run("colorspace-init-end",this)},[{key:"inGamut",value:function(e){var t,n=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).epsilon,r=void 0===n?75e-6:n;return this.isPolar?(e=this.toBase(e),this.base.inGamut(e,{epsilon:r})):(t=Object.values(this.coords),e.every(function(e,n){var a;return"angle"===(n=t[n]).type||!n.range||!!Number.isNaN(e)||(a=(n=U(n.range,2))[0],n=n[1],(void 0===a||a-r<=e)&&(void 0===n||e<=n+r))}))}},{key:"cssId",get:function(){var e;retu\
rn(null==(e=this.formats.functions)||null==(e=e.color)?void 0:e.id)||this.id}},{key:"isPolar",get:function(){for(var e in this.coords)if("angle"===this.coords[e].type)return!0;return!1}},{key:"getFormat",value:function(e){return"object"===a(e)||(e="default"===e?Object.values(this.formats)[0]:this.formats[e])?H(ne,this,ao).call(this,e):null}},{key:"to",value:function(e,t){var n;if(1===arguments.length&&(e=(n=[e.space,e.coords])[0],t=n[1]),this!==(e=ro.get(e))){t=t.map(function(e){return Number.isNaN(e)?0:e});for(var r,a,o=G(re,this),i=G(re,e),l=0;l<o.length&&o[l]===i[l];l++)r=o[l],a=l;if(!r)throw new Error("Cannot convert between color spaces ".concat(this," and ").concat(e,": no connection space was found"));for(var u=o.length-1;a<u;u--)t=o[u].toBase(t);for(var s=a+1;s<i.length;s++)t=i[s].fromBase(t)}return t}},{key:"from",value:function(e,t){var n;return 1===arguments.length&&(e=(n=[e.space,e.coords])[0],t=n[1]),(e=ro.get(e)).to(this,t)}},{key:"toString",value:function(){return"".conc\
at(this.name," (").concat(this.id,")")}},{key:"getMinCoords",value:function(){var e,t=[];for(e in this.coords){var n=(n=this.coords[e]).range||n.refRange;t.push(null!=(n=null==n?void 0:n.min)?n:0)}return t}}],[{key:"all",get:function(){return j(new Set(Object.values(ro.registry)))}},{key:"register",value:function(e,t){if(1===arguments.length&&(e=(t=arguments[0]).id),t=this.get(t),this.registry[e]&&this.registry[e]!==t)throw new Error("Duplicate color space registration: '".concat(e,"'"));if(this.registry[e]=t,1===arguments.length&&t.aliases){var n,r=Q(t.aliases);try{for(r.s();!(n=r.n()).done;){var a=n.value;this.register(a,t)}}catch(e){r.e(e)}finally{r.f()}}return t}},{key:"get",value:function(e){if(!e||e instanceof ro)return e;if("string"===$a(e)){var t=ro.registry[e.toLowerCase()];if(t)return t;throw new TypeError('No color space found with id = "'.concat(e,'"'))}for(var n=arguments.length,r=new Array(1<n?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];if(r.length)return ro.get.apply(ro,r);th\
row new TypeError("".concat(e," is not a valid color space"))}},{key:"resolveCoord",value:function(e,t){var n,r;if(r="string"===$a(e)?e.includes(".")?(n=(r=U(e.split("."),2))[0],r[1]):(n=void 0,e):Array.isArray(e)?(n=(r=U(e,2))[0],r[1]):(n=e.space,e.coordId),!(n=(n=ro.get(n))||t))throw new TypeError("Cannot resolve coordinate reference ".concat(e,": No color space specified and relative references are not allowed here"));if(("number"===(t=$a(r))||"string"===t&&0<=r)&&(e=Object.entries(n.coords)[r]))return B({space:n,id:e[0],index:r},e[1]);n=ro.get(n);var a,o=r.toLowerCase(),i=0;for(a in n.coords){var l,u=n.coords[a];if(a.toLowerCase()===o||(null==(l=u.name)?void 0:l.toLowerCase())===o)return B({space:n,id:a,index:i},u);i++}throw new TypeError('No "'.concat(r,'" coordinate found in ').concat(n.name,". Its coordinates are: ").concat(Object.keys(n.coords).join(", ")))}}]);function ao(e){var t;return e.coords&&!e.coordGrammar&&(e.type||(e.type="function"),e.name||(e.name="color"),e.coordGr\
ammar=Za(e.coords),t=Object.entries(this.coords).map(function(t,n){(t=U(t,2))[0],t=t[1],n=e.coordGrammar[n][0],t=t.range||t.refRange;var r=n.range,a="";return"<percentage>"==n?(r=[0,100],a="%"):"<angle>"==n&&(a="deg"),{fromRange:t,toRange:r,suffix:a}}),e.serializeCoords=function(e,n){return e.map(function(e,r){var a=(r=t[r]).fromRange,o=r.toRange;r=r.suffix;return e=Ha(e=a&&o?Xa(a,o,e):e,n),r&&(e+=r),e})}),e}function oo(){for(var e=[this],t=this;t=t.base;)e.push(t);return e}var io=ro,lo=(ge(io,"registry",{}),ge(io,"DEFAULT_FORMAT",{type:"functions",name:"color"}),new io({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]}));P(uo,io),At=Z(uo);function uo(e){var t;return K(this,uo),e.coords||(e.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),e.base||(e.base=lo),e.toXYZ_M&&e.fromXYZ_M&&(null==e.toBase&&(e.toBase=function(n){return n=Va(e.toXYZ_M,n),t.w\
hite!==t.base.white?no(t.white,t.base.white,n):n}),null==e.fromBase)&&(e.fromBase=function(n){return n=no(t.base.white,t.white,n),Va(e.fromXYZ_M,n)}),null==e.referred&&(e.referred="display"),t=S(this,uo,[e])}function so(e){var t={str:null==(s=String(e))?void 0:s.trim()};if(Ja.run("parse-start",t),t.color)return t.color;if(t.parsed=Ua(t.str),t.parsed){var n=t.parsed.name;if("color"===n){var r,a=t.parsed.args.shift(),o=0<t.parsed.rawArgs.indexOf("/")?t.parsed.args.pop():1,i=Q(io.all);try{var l;for(i.s();!(r=i.n()).done;)if(l=(()=>{var e,n=r.value,i=n.getFormat("color");if(i&&(a===i.id||null!=(i=i.ids)&&i.includes(a)))return i=Object.keys(n.coords).length,(e=Array(i).fill(0)).forEach(function(n,r){return e[r]=t.parsed.args[r]||0}),{v:{spaceId:n.id,coords:e,alpha:o}}})())return l.v}catch(e){i.e(e)}finally{i.f()}var u,s="";throw a in io.registry&&(u=null==(u=io.registry[a].formats)||null==(u=u.functions)||null==(u=u.color)?void 0:u.id)&&(s="Did you mean color(".concat(u,")?")),new TypeError\
("Cannot parse color(".concat(a,"). ")+(s||"Missing a plugin?"))}var c,d=Q(io.all);try{var p;for(d.s();!(c=d.n()).done;)if(p=(()=>{var e,r,a=c.value,o=a.getFormat(n);if(o&&"function"===o.type)return e=1,(o.lastAlpha||Wa(t.parsed.args).alpha)&&(e=t.parsed.args.pop()),r=t.parsed.args,o.coordGrammar&&Object.entries(a.coords).forEach(function(e,t){var a=(e=U(e,2))[0],i=(e=e[1],o.coordGrammar[t]),l=null==(u=r[t])?void 0:u.type;if(!(i=i.find(function(e){return e==l})))throw u=e.name||a,new TypeError("".concat(l," not allowed for ").concat(u," in ").concat(n,"()"));a=i.range;var u=e.range||e.refRange;(a="<percentage>"===l?a||[0,1]:a)&&u&&(r[t]=Xa(a,u,r[t]))}),{v:{spaceId:a.id,coords:r,alpha:e}}})())return p.v}catch(e){d.e(e)}finally{d.f()}}else{var f,m=Q(io.all);try{for(m.s();!(f=m.n()).done;){var h,g=f.value;for(h in g.formats){var v=g.formats[h];if("custom"===v.type&&(!v.test||v.test(t.str))){var b=v.parse(t.str);if(b)return null==b.alpha&&(b.alpha=1),b}}}}catch(e){m.e(e)}finally{m.f()}}thr\
ow new TypeError("Could not parse ".concat(e," as a color. Missing a plugin?"))}function co(e){var t;if(e)return(t=(e=Ga(e)?so(e):e).space||e.spaceId)instanceof io||(e.space=io.get(t)),void 0===e.alpha&&(e.alpha=1),e;throw new TypeError("Empty color reference")}function po(e,t){return(t=io.get(t)).from(e)}function fo(e,t){var n=(t=io.resolveCoord(t,e.space)).space;t=t.index;return po(e,n)[t]}function mo(e,t,n){return t=io.get(t),e.coords=t.to(e.space,n),e}function ho(e,t,n){if(e=co(e),2===arguments.length&&"object"===$a(t)){var r,a=t;for(r in a)ho(e,r,a[r])}else{"function"==typeof n&&(n=n(fo(e,t)));var o=(t=io.resolveCoord(t,e.space)).space,i=(t=t.index,po(e,o));i[t]=n,mo(e,o,i)}return e}Ee=new io({id:"xyz-d50",name:"XYZ D50",white:"D50",base:lo,fromBase:function(e){return no(lo.white,"D50",e)},toBase:function(e){return no("D50",lo.white,e)},formats:{color:{}}});var go=24389/27,vo=eo.D50,bo=new io({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{ref\
Range:[-125,125]}},white:vo,base:Ee,fromBase:function(e){return e=e.map(function(e,t){return e/vo[t]}).map(function(e){return 216/24389<e?Math.cbrt(e):(go*e+16)/116}),[116*e[1]-16,500*(e[0]-e[1]),200*(e[1]-e[2])]},toBase:function(e){var t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[24/116<t[0]?Math.pow(t[0],3):(116*t[0]-16)/go,8<e[0]?Math.pow((e[0]+16)/116,3):e[0]/go,24/116<t[2]?Math.pow(t[2],3):(116*t[2]-16)/go].map(function(e,t){return e*vo[t]})},formats:{lab:{coords:["<number> | <percentage>","<number>","<number>"]}}});function yo(e){return(e%360+360)%360}var wo=new io({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:bo,fromBase:function(e){var t=(e=U(e,3))[0],n=e[1],r=(e=e[2],Math.abs(n)<.02&&Math.abs(e)<.02?NaN:180*Math.atan2(e,n)/Math.PI);return[t,Math.sqrt(Math.pow(n,2)+Math.pow(e,2)),yo(r)]},toBase:function(e){var t=(e=U(e,3))[0],n=e[1];e=e[2];return n\
<0&&(n=0),isNaN(e)&&(e=0),[t,n*Math.cos(e*Math.PI/180),n*Math.sin(e*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number>","<number> | <angle>"]}}}),Do=Math.pow(25,7),xo=Math.PI,Eo=180/xo,Ao=xo/180;function Fo(e,t){var n=void 0===(n=(a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).kL)?1:n,r=void 0===(r=a.kC)?1:r,a=void 0===(a=a.kH)?1:a,o=(e=U(bo.from(e),3))[0],i=e[1],l=(e=e[2],wo.from(bo,[o,i,e])[1]),u=(t=U(bo.from(t),3))[0],s=t[1],c=(t=t[2],l=((l=l<0?0:l)+(c=(c=wo.from(bo,[u,s,t])[1])<0?0:c))/2,Math.pow(l,7)),d=(c=(1+(l=.5*(1-Math.sqrt(c/(c+Do)))))*i,i=(1+l)*s,l=Math.sqrt(Math.pow(c,2)+Math.pow(e,2)),s=Math.sqrt(Math.pow(i,2)+Math.pow(t,2)),e=0==c&&0===e?0:Math.atan2(e,c),c=0==i&&0===t?0:Math.atan2(t,i),t=(e<0&&(e+=2*xo),c<0&&(c+=2*xo),u-o),i=s-l,(c*=Eo)-(e*=Eo)),p=(e=e+c,c=Math.abs(d),d=(l*s==0?p=0:c<=180?p=d:180<d?p=d-360:d<-180?p=360+d:console.log("the unthinkable has happened"),2*Math.sqrt(s*l)*Math.sin(p*Ao/2)),(o+u)/2);o=(l+s)/2,u=Math.pow(o,7),l=\
l*s==0?e:c<=180?e/2:e<360?(e+360)/2:(e-360)/2,c=1+.015*(s=Math.pow(p-50,2))/Math.sqrt(20+s),e=1+.045*o,p=1,s=1+.015*o*((p-=.17*Math.cos((l-30)*Ao))+.24*Math.cos(2*l*Ao)+.32*Math.cos((3*l+6)*Ao)-.2*Math.cos((4*l-63)*Ao)),o=30*Math.exp(-1*Math.pow((l-275)/25,2)),p=2*Math.sqrt(u/(u+Do)),l=-1*Math.sin(2*o*Ao)*p,u=Math.pow(t/(n*c),2),u=(u+=Math.pow(i/(r*e),2))+Math.pow(d/(a*s),2)+i/(r*e)*l*(d/(a*s));return Math.sqrt(u)}function Co(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e.space,n=void 0===(n=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).epsilon)?75e-6:n,r=(e=co(e),t=io.get(t),e.coords);return t!==e.space&&(r=t.from(e)),t.inGamut(r,{epsilon:n})}function ko(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function Ro(e){var t=void 0===(t=(a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).method)?Qa.gamut_mapping:t,n=void 0===(a=a.space)?e.space:a;if(Ga(arguments[1])&&(n=arguments[1]),!Co(e,n=io.get(n),{epsilon:0})){var r,a=No(e,n)\
;if("clip"!==t&&!Co(e,n)){var o=Ro(ko(a),{method:"clip",space:n});if(2<Fo(e,o)){for(var i=io.resolveCoord(t),l=i.space,u=i.id,s=No(a,l),c=(i.range||i.refRange)[0],d=fo(s,u);.01<d-c;)Fo(s,Ro(ko(s),{space:n,method:"clip"}))-2<.01?c=fo(s,u):d=fo(s,u),ho(s,u,(c+d)/2);a=No(s,n)}else a=o}"clip"!==t&&Co(a,n,{epsilon:0})||(r=Object.values(n.coords).map(function(e){return e.range||[]}),a.coords=a.coords.map(function(e,t){var n=(t=U(r[t],2))[0];t=t[1];return void 0!==n&&(e=Math.max(n,e)),void 0!==t?Math.min(e,t):e})),n!==e.space&&(a=No(a,e.space)),e.coords=a.coords}return e}function No(e,t){var n=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).inGamut,r=(e=co(e),(t=io.get(t)).from(e));t={space:t,coords:r,alpha:e.alpha};return n?Ro(t):t}function To(e){var t=void 0===(n=(a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).precision)?Qa.precision:n,n=void 0===(n=a.format)?"default":n,r=void 0===(r=a.inGamut)||r,a=O(a,i),o=n,l=(n=null!=(l=null!=(l=(e=co(e)).space.getFormat(n))?l\
:e.space.getFormat("default"))?l:io.DEFAULT_FORMAT,r=r||n.toGamut,(l=e.coords).map(function(e){return e||0}));if(r&&!Co(e)&&(l=Ro(ko(e),!0===r?void 0:r).coords),"custom"===n.type){if(a.precision=t,!n.serialize)throw new TypeError("format ".concat(o," can only be used to parse colors, not for serialization"));u=n.serialize(l,e.alpha,a)}else{r=n.name||"color",o=(n.serializeCoords?l=n.serializeCoords(l,t):null!==t&&(l=l.map(function(e){return Ha(e,t)})),j(l)),a=("color"===r&&(l=n.id||(null==(a=n.ids)?void 0:a[0])||e.space.id,o.unshift(l)),e.alpha),l=(null!==t&&(a=Ha(a,t)),e.alpha<1&&!n.noAlpha?"".concat(n.commas?",":" /"," ").concat(a):"");var u="".concat(r,"(").concat(o.join(n.commas?", ":" ")).concat(l,")")}return u}No.returns=Ro.returns="color";Ae=new At({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],fromXYZ_M:[[1\
.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]],formats:{color:{}}});var Oo=1.09929682680944,So=.018053968510807,_o=(Vt=new At({id:"rec2020",name:"REC.2020",base:Ae,toBase:function(e){return e.map(function(e){return e<4.5*So?e/4.5:Math.pow((e+Oo-1)/Oo,1/.45)})},fromBase:function(e){return e.map(function(e){return So<=e?Oo*Math.pow(e,.45)-(Oo-1):4.5*e})},formats:{color:{}}}),Sn=new At({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],fromXYZ_M:[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]]}),_n=new At({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:[[.41239079926595934,.35758433\
9383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],fromXYZ_M:[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]],formats:{color:{}}}),{aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],da\
rkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[.6,50/255,.8],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/2\
55,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,.6],lightslategrey:[119/255,136/255,.6],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maro\
on:[128/255,0,0],mediumaquamarine:[.4,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,.8],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221\
/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[.4,.2,.6],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]}),Mo=(sa=new At({id:"srgb",name:"sRGB",base:_n,\
fromBase:function(e){return e.map(function(e){var t=e<0?-1:1,n=e*t;return.0031308<n?t*(1.055*Math.pow(n,1/2.4)-.055):12.92*e})},toBase:function(e){return e.map(function(e){var t=e<0?-1:1,n=e*t;return n<.04045?e/12.92:t*Math.pow((.055+n)/1.055,2.4)})},formats:{rgb:{coords:sa=Array(3).fill("<percentage> | <number>[0, 255]")},rgb_number:{name:"rgb",commas:!0,coords:Mo=Array(3).fill("<number>[0, 255]"),noAlpha:!0},color:{},rgba:{coords:sa,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:Mo},hex:{type:"custom",toGamut:!0,test:function(e){return/^#([a-f0-9]{3,4}){1,2}$/i.test(e)},parse:function(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,"$&$&"));var t=[];return e.replace(/[a-f0-9]{2}/gi,function(e){t.push(parseInt(e,16)/255)}),{spaceId:"srgb",coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:function(e,t){var n=void 0===(n=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).collapse)||n,r=(t<1&&e.push(t),e=e.map(function(e){return Math.round(255*e)}),n&&e.every(func\
tion(e){return e%17==0}));return"#"+e.map(function(e){return r?(e/17).toString(16):e.toString(16).padStart(2,"0")}).join("")}},keyword:{type:"custom",test:function(e){return/^[a-z]+$/i.test(e)},parse:function(e){var t={spaceId:"srgb",coords:null,alpha:1};if("transparent"===(e=e.toLowerCase())?(t.coords=_o.black,t.alpha=0):t.coords=_o[e],t.coords)return t}}}}),new At({id:"p3",name:"P3",base:Sn,fromBase:sa.fromBase,toBase:sa.toBase,formats:{color:{id:"display-p3"}}}));if(Qa.display_space=sa,"undefined"!=typeof CSS&&null!=(pe=CSS)&&pe.supports)for(var Po=0,Io=[bo,Vt,Mo];Po<Io.length;Po++){var Bo=Io[Po],jo=Bo.getMinCoords();jo=To({space:Bo,coords:jo,alpha:1});if(CSS.supports("color",jo)){Qa.display_space=Bo;break}}function Lo(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"lab",r=(e=(n=io.get(n)).from(e),n.from(t));return Math.sqrt(e.reduce(function(e,t,n){return n=r[n],isNaN(t)||isNaN(n)?e:e+Math.pow(n-t,2)},0))}function qo(e){return fo(e,[lo,"y"])}function zo(e,t){ho(e\
,[lo,"y"],t)}pe=Object.freeze({__proto__:null,getLuminance:qo,setLuminance:zo,register:function(e){Object.defineProperty(e.prototype,"luminance",{get:function(){return qo(this)},set:function(e){zo(this,e)}})}});function Vo(e){return.022<=e?e:e+Math.pow(.022-e,1.414)}function Go(e){var t=e<0?-1:1;e=Math.abs(e);return t*Math.pow(e,2.4)}var $o=24389/27,Ho=eo.D65,Uo=new io({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:Ho,base:lo,fromBase:function(e){return e=e.map(function(e,t){return e/Ho[t]}).map(function(e){return 216/24389<e?Math.cbrt(e):($o*e+16)/116}),[116*e[1]-16,500*(e[0]-e[1]),200*(e[1]-e[2])]},toBase:function(e){var t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[24/116<t[0]?Math.pow(t[0],3):(116*t[0]-16)/$o,8<e[0]?Math.pow((e[0]+16)/116,3):e[0]/$o,24/116<t[2]?Math.pow(t[2],3):(116*t[2]-16)/$o].map(function(e,t){return e*Ho[t]})},formats:{"lab-d65":{coords:["<number> | <percentage>",\
"<number>","<number>"]}}}),Wo=.5*Math.pow(5,.5)+.5,Yo=Object.freeze({__proto__:null,contrastWCAG21:function(e,t){var n;return e=co(e),t=co(t),(e=Math.max(qo(e),0))<(t=Math.max(qo(t),0))&&(e=(n=[t,e])[0],t=n[1]),(e+.05)/(t+.05)},contrastAPCA:function(e,t){t=co(t),e=co(e);var n=(t=U((t=No(t,"srgb")).coords,3))[0],r=t[1],a=(t=t[2],.2126729*Go(n)+.7151522*Go(r)+.072175*Go(t));n=(e=U((e=No(e,"srgb")).coords,3))[0],r=e[1],t=e[2],e=.2126729*Go(n)+.7151522*Go(r)+.072175*Go(t),t=(n=Vo(a))<(r=Vo(e)),a=Math.abs(r-n)<5e-4?0:t?1.14*(Math.pow(r,.56)-Math.pow(n,.57)):1.14*(Math.pow(r,.65)-Math.pow(n,.62));return 100*(Math.abs(a)<.1?0:0<a?a-.027:a+.027)},contrastMichelson:function(e,t){e=co(e),t=co(t);var n=((e=Math.max(qo(e),0))<(t=Math.max(qo(t),0))&&(e=(n=[t,e])[0],t=n[1]),e+t);return 0===n?0:(e-t)/n},contrastWeber:function(e,t){var n;return e=co(e),t=co(t),(e=Math.max(qo(e),0))<(t=Math.max(qo(t),0))&&(e=(n=[t,e])[0],t=n[1]),0===t?5e4:(e-t)/t},contrastLstar:function(e,t){return e=co(e),t=co(t),e=fo\
(e,[bo,"l"]),t=fo(t,[bo,"l"]),Math.abs(e-t)},contrastDeltaPhi:function(e,t){return e=co(e),t=co(t),e=fo(e,[Uo,"l"]),t=fo(t,[Uo,"l"]),e=Math.abs(Math.pow(e,Wo)-Math.pow(t,Wo)),(t=Math.pow(e,1/Wo)*Math.SQRT2-40)<7.5?0:t}});function Ko(e){var t=(e=U(po(e,lo),3))[0],n=e[1];return[4*t/(e=t+15*n+3*e[2]),9*n/e]}function Xo(e){var t=(e=U(po(e,lo),3))[0],n=e[1];return[t/(e=t+n+e[2]),n/e]}var Zo=Object.freeze({__proto__:null,uv:Ko,xy:Xo,register:function(e){Object.defineProperty(e.prototype,"uv",{get:function(){return Ko(this)}}),Object.defineProperty(e.prototype,"xy",{get:function(){return Xo(this)}})}}),Jo=Math.PI/180,Qo=new io({id:"xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:lo,fromBase:function(e){return e.map(function(e){return Math.max(203*e,0)})},toBase:function(e){return e.map(function(e){return Math.max(e/203,0)})}}),ei=2610/Math.pow(2,14),ti=Math.pow(2,14)/2610,ni=3424/Math.pow(2,\
12),ri=2413/Math.pow(2,7),ai=2392/Math.pow(2,7),oi=1.7*2523/Math.pow(2,5),ii=Math.pow(2,5)/(1.7*2523),li=16295499532821565e-27,ui=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],si=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],ci=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],di=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]],pi=new io({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Qo,fromBase:function(e){var t=(e=U(e,3))[0],n=e[2];e=Va(ui,[1.15*t-(1.15-1)*n,.66*e[1]-(.66-1)*t,n]).map(function(e){var t=ni+ri*Math.pow(e/1e4,ei);e=1+ai*Math.pow(e/1e4,ei);return Math.pow(t/e,oi)});return[(1-.56)*(n=(t=U(Va(ci,e),3))[0])/(1\
+-.56*n)-li,t[1],t[2]]},toBase:function(e){var t=(e=U(e,3))[0],n=(t=Va(di,[(t+li)/(1-.56- -.56*(t+li)),e[1],e[2]]).map(function(e){var t=ni-Math.pow(e,ii);e=ai*Math.pow(e,ii)-ri;return 1e4*Math.pow(t/e,ti)}),t=(e=U(Va(si,t),3))[0],e[2]);return[t=(t+(1.15-1)*n)/1.15,(e[1]+(.66-1)*t)/.66,n]},formats:{color:{}}}),fi=new io({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:pi,fromBase:function(e){var t=(e=U(e,3))[0],n=e[1],r=(e=e[2],Math.abs(n)<2e-4&&Math.abs(e)<2e-4?NaN:180*Math.atan2(e,n)/Math.PI);return[t,Math.sqrt(Math.pow(n,2)+Math.pow(e,2)),yo(r)]},toBase:function(e){return[e[0],e[1]*Math.cos(e[2]*Math.PI/180),e[1]*Math.sin(e[2]*Math.PI/180)]},formats:{color:{}}}),mi=2610/16384,hi=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],gi=[[.5,.5,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],vi=[[.9999888965628402,.008605050147287059,.111034371598616\
48],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],bi=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]],yi=new io({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Qo,fromBase:function(e){var t=e=Va(hi,e);return t=e.map(function(e){var t=.8359375+2413/128*Math.pow(e/1e4,mi);e=1+18.6875*Math.pow(e/1e4,mi);return Math.pow(t/e,2523/32)}),Va(gi,t)},toBase:function(e){return e=Va(vi,e).map(function(e){var t=Math.max(Math.pow(e,32/2523)-.8359375,0);e=2413/128-18.6875*Math.pow(e,32/2523);return 1e4*Math.pow(t/e,16384/2610)}),Va(bi,e)},formats:{color:{}}}),wi=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.63\
35478258136937]],Di=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],xi=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],Ei=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]],Ai=new io({id:"oklab",name:"OKLab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:lo,fromBase:function(e){return e=Va(wi,e).map(function(e){return Math.cbrt(e)}),Va(xi,e)},toBase:function(e){return e=Va(Ei,e).map(function(e){return Math.pow(e,3)}),Va(Di,e)},formats:{oklab:{coords:["<number> | <percentage>","<number>","<number>"]}}}),Fi=Object.freeze({__proto__:null,deltaE76:function(e,t){return Lo(e,t,"lab")},deltaECMC:function(e,t){var n\
=void 0===(n=(r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).l)?2:n,r=void 0===(r=r.c)?1:r,a=(e=U(bo.from(e),3))[0],o=e[1],i=(e=e[2],(l=U(wo.from(bo,[a,o,e]),3))[1]),l=l[2],u=(t=U(bo.from(t),3))[0],s=t[1],c=(t=t[2],wo.from(bo,[u,s,t])[1]);u=a-u,c=(i=i<0?0:i)-(c=c<0?0:c),e-=t,t=Math.pow(o-s,2)+Math.pow(e,2)-Math.pow(c,2),o=.511,16<=a&&(o=.040975*a/(1+.01765*a)),s=.0638*i/(1+.0131*i)+.638,e=164<=(l=Number.isNaN(l)?0:l)&&l<=345?.56+Math.abs(.2*Math.cos((l+168)*Jo)):.36+Math.abs(.4*Math.cos((l+35)*Jo)),a=Math.pow(i,4),i=s*((l=Math.sqrt(a/(a+1900)))*e+1-l),a=Math.pow(u/(n*o),2),a=(a+=Math.pow(c/(r*s),2))+t/Math.pow(i,2);return Math.sqrt(a)},deltaE2000:Fo,deltaEJz:function(e,t){var n=(e=U(fi.from(e),3))[0],r=e[1],a=(e=e[2],(t=U(fi.from(t),3))[0]),o=t[1];t=t[2],n-=a,a=r-o,Number.isNaN(e)&&Number.isNaN(t)?t=e=0:Number.isNaN(e)?e=t:Number.isNaN(t)&&(t=e),e-=t,t=2*Math.sqrt(r*o)*Math.sin(e/2*(Math.PI/180));return Math.sqrt(Math.pow(n,2)+Math.pow(a,2)+Math.pow(t,2))},deltaEITP:funct\
ion(e,t){var n=(e=U(yi.from(e),3))[0],r=e[1],a=(e=e[2],(t=U(yi.from(t),3))[0]),o=t[1];t=t[2];return 720*Math.sqrt(Math.pow(n-a,2)+.25*Math.pow(r-o,2)+Math.pow(e-t,2))},deltaEOK:function(e,t){var n=(e=U(Ai.from(e),3))[0],r=e[1],a=(e=e[2],(t=U(Ai.from(t),3))[0]);r-=t[1],e-=t[2];return Math.sqrt(Math.pow(n-a,2)+Math.pow(r,2)+Math.pow(e,2))}});function Ci(e,t){var n,r,a=(r=r=Ga(r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{})?{method:r}:r).method,o=void 0===a?Qa.deltaE:a,i=O(r,s);for(n in e=co(e),t=co(t),Fi)if("deltae"+o.toLowerCase()===n.toLowerCase())return Fi[n](e,t,i);throw new TypeError("Unknown deltaE method: ".concat(o))}var ki=Object.freeze({__proto__:null,lighten:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.25;return ho(e,[io.get("oklch","lch"),"l"],function(e){return e*(1+t)})},darken:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.25;return ho(e,[io.get("oklch","lch"),"l"],function(e){return e*(1-t)})}});function\
 Ri(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:.5,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},a=(e=(a=[co(e),co(t)])[0],t=a[1],"object"===$a(n)&&(n=(a=[.5,n])[0],r=a[1]),r);return Ti(e,t,{space:a.space,outputSpace:a.outputSpace,premultiplied:a.premultiplied})(n)}function Ni(e,t){var n,r,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},o=(s=(Oi(e)&&(a=t,e=(s=U((n=e).rangeArgs.colors,2))[0],t=s[1]),a)).maxDeltaE,i=s.deltaEMethod,l=(a=void 0===(a=s.steps)?2:a,void 0===(u=s.maxSteps)?1e3:u),u=O(s,c),s=(n||(s=[co(e),co(t)],n=Ti(e=s[0],t=s[1],u)),Ci(e,t)),d=(u=0<o?Math.max(a,Math.ceil(s/o)+1):a,[]);if(void 0!==l&&(u=Math.min(u,l)),d=1===u?[{p:.5,color:n(.5)}]:(r=1/(u-1),Array.from({length:u},function(e,t){return{p:t*=r,color:n(t)}})),0<o)for(var p=d.reduce(function(e,t,n){return 0===n?0:(t=Ci(t.color,d[n-1].color,i),Math.max(e,t))},0);o<p;){p=0;for(var f=1;f<d.length&&d.length<l;f++){var m=d[f-1],h=d[f],g=(h.p+m.p)/2,v=n(g);p=Math.max(p,Ci(v,\
m.color),Ci(v,h.color));d.splice(f,0,{p:g,color:n(g)}),f++}}return d=d.map(function(e){return e.color})}function Ti(e,t){var n,r,a,o,i,l,u,s,c,d,p,f,m=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Oi(e)?(a=e,o=t,Ti.apply(void 0,j(a.rangeArgs.colors).concat([B({},a.rangeArgs.options,o)]))):(p=m.space,f=m.outputSpace,n=m.progression,r=m.premultiplied,e=co(e),t=co(t),e=ko(e),t=ko(t),a={colors:[e,t],options:m},p=p?io.get(p):io.registry[Qa.interpolationSpace]||e.space,f=f?io.get(f):p,e=No(e,p),t=No(t,p),e=Ro(e),t=Ro(t),p.coords.h&&"angle"===p.coords.h.type&&(o=m.hue=m.hue||"shorter",s=[(l=[fo(e,m=[p,"h"]),fo(t,m)])[0],l=l[1]],u="raw"===(u=o)?s:(c=(s=U(s.map(yo),2))[0],d=(s=s[1])-c,"increasing"===u?d<0&&(s+=360):"decreasing"===u?0<d&&(c+=360):"longer"===u?-180<d&&d<180&&(0<d?s+=360:c+=360):"shorter"===u&&(180<d?c+=360:d<-180&&(s+=360)),[c,s]),i=(d=U(u,2))[0],l=d[1],ho(e,m,i),ho(t,m,l)),r&&(e.coords=e.coords.map(function(t){return t*e.alpha}),t.coords=t.coords.map(function(\
e){return e*t.alpha})),Object.assign(function(a){a=n?n(a):a;var o=e.coords.map(function(e,n){return Ya(e,t.coords[n],a)}),i=Ya(e.alpha,t.alpha,a);o={space:p,coords:o,alpha:i};return r&&(o.coords=o.coords.map(function(e){return e/i})),f!==p?No(o,f):o},{rangeArgs:a}))}function Oi(e){return"function"===$a(e)&&!!e.rangeArgs}Qa.interpolationSpace="lab";var Si=Object.freeze({__proto__:null,mix:Ri,steps:Ni,range:Ti,isRange:Oi,register:function(e){e.defineFunction("mix",Ri,{returns:"color"}),e.defineFunction("range",Ti,{returns:"function<color>"}),e.defineFunction("steps",Ni,{returns:"array<color>"})}}),_i=new io({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:sa,fromBase:function(e){var t=Math.max.apply(Math,j(e)),n=Math.min.apply(Math,j(e)),r=(e=U(e,3))[0],a=e[1],o=e[2],i=NaN,l=(e=0,(n+t)/2),u=t-n;if(0!=u){switch(e=0==l||1==l?0:(t-l)/Math.min(l,1-l),t){case r:i=(a-o)/u+(a<o?6:0);break;case \
a:i=(o-r)/u+2;break;case o:i=(r-a)/u+4}i*=60}return[i,100*e,100*l]},toBase:function(e){var t=(e=U(e,3))[0],n=e[1],r=e[2];function a(e){e=(e+t/30)%12;var a=n*Math.min(r,1-r);return r-a*Math.max(-1,Math.min(e-3,9-e,1))}return(t%=360)<0&&(t+=360),n/=100,r/=100,[a(0),a(8),a(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),Mi=new io({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:_i,fromBase:function(e){var t=(e=U(e,3))[0],n=e[1];e=e[2];return[t,0==(n=(e/=100)+(n/=100)*Math.min(e,1-e))?0:200*(1-e/n),100*n]},toBase:function(e){var t=(e=U(e,3))[0],n=e[1];e=e[2];return[t,0==(n=(e/=100)*(1-(n/=100)/2))||1==n?0:(e-n)/Math.min(n,1-n)*100,100*n]},formats:{color:{toGamut:!0}}}),Pi=new io({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range\
:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:Mi,fromBase:function(e){var t=(e=U(e,3))[0],n=e[2];return[t,n*(100-e[1])/100,100-n]},toBase:function(e){var t=(e=U(e,3))[0],n=e[1],r=(e=e[2],(n/=100)+(e/=100));return 1<=r?[t,0,n/r*100]:[t,100*(0==(r=1-e)?0:1-n/r),100*r]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}}),Ii=new At({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],fromXYZ_M:[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]]}),Bi=new At({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:Ii,toBase:function(e){return e.map(function(e){return Math.pow(Math.abs(e),563/256)*Math.sign(e)})},from\
Base:function(e){return e.map(function(e){return Math.pow(Math.abs(e),256/563)*Math.sign(e)})},formats:{color:{id:"a98-rgb"}}}),ji=new At({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:Ee,toXYZ_M:[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],fromXYZ_M:[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]]}),Li=new At({id:"prophoto",name:"ProPhoto",base:ji,toBase:function(e){return e.map(function(e){return e<.03125?e/16:Math.pow(e,1.8)})},fromBase:function(e){return e.map(function(e){return 1/512<=e?Math.pow(e,1/1.8):16*e})},formats:{color:{id:"prophoto-rgb"}}}),qi=new io({id:"oklch",name:"OKLCh",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:Ai,fromBase:function(e){var t=(e=U(e,3))[0],n=e[1],r=\
(e=e[2],Math.abs(n)<2e-4&&Math.abs(e)<2e-4?NaN:180*Math.atan2(e,n)/Math.PI);return[t,Math.sqrt(Math.pow(n,2)+Math.pow(e,2)),yo(r)]},toBase:function(e){var t,n=(e=U(e,3))[0],r=e[1];e=e[2],r=isNaN(e)?t=0:(t=r*Math.cos(e*Math.PI/180),r*Math.sin(e*Math.PI/180));return[n,t,r]},formats:{oklch:{coords:["<number> | <percentage>","<number>","<number> | <angle>"]}}}),zi=2610/Math.pow(2,14),Vi=Math.pow(2,14)/2610,Gi=2523/Math.pow(2,5),$i=Math.pow(2,5)/2523,Hi=3424/Math.pow(2,12),Ui=2413/Math.pow(2,7),Wi=2392/Math.pow(2,7),Yi=new At({id:"rec2100pq",name:"REC.2100-PQ",base:Ae,toBase:function(e){return e.map(function(e){return 1e4*Math.pow(Math.max(Math.pow(e,$i)-Hi,0)/(Ui-Wi*Math.pow(e,$i)),Vi)/203})},fromBase:function(e){return e.map(function(e){e=Math.max(203*e/1e4,0);var t=Hi+Ui*Math.pow(e,zi);e=1+Wi*Math.pow(e,zi);return Math.pow(t/e,Gi)})},formats:{color:{id:"rec2100-pq"}}}),Ki=.17883277,Xi=.28466892,Zi=.55991073,Ji=3.7743,Qi=new At({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",refe\
rred:"scene",base:Ae,toBase:function(e){return e.map(function(e){return e<=.5?Math.pow(e,2)/3*Ji:Math.exp((e-Zi)/Ki+Xi)/12*Ji})},fromBase:function(e){return e.map(function(e){return(e/=Ji)<=1/12?Math.sqrt(3*e):Ki*Math.log(12*e-Xi)+Zi})},formats:{color:{id:"rec2100-hlg"}}}),el={};function tl(e){var t=e.id;el[t]=e}function nl(e,t,n){var r=(e=U(Va((n=el[2<arguments.length&&void 0!==n?n:"Bradford"]).toCone_M,e),3))[0],a=e[1];e=e[2],t=U(Va(n.toCone_M,t),3),r=Va([[t[0]/r,0,0],[0,t[1]/a,0],[0,0,t[2]/e]],n.toCone_M);return Va(n.fromCone_M,r)}Ja.add("chromatic-adaptation-start",function(e){e.options.method&&(e.M=nl(e.W1,e.W2,e.options.method))}),Ja.add("chromatic-adaptation-end",function(e){e.M||(e.M=nl(e.W1,e.W2,e.options.method))}),tl({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599364,-1.1293816,.2198974],[.3611914,.6388125,-64e-7],[0,0,1.0890636]]}),tl({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1\
.0296]],fromCone_M:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]]}),tl({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238,-.278869,.1827452],[.454369,.4735332,.0720978],[-.0096276,-.005698,1.0153256]]}),tl({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.011254630531685,.1491867754444518],[.3875265432361372,.6214474419314753,-.008973985167612518],[-.01584149884933386,-.03412293802851557,1.04996443687785]]}),Object.assign(eo,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]}),eo.ACES=[.32168/.33767,1,.34065/.33767];var rl=new At({id:"acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:eo.ACES,\
toXYZ_M:[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],fromXYZ_M:[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]],formats:{color:{}}}),al=Math.pow(2,-16),ol=-.35828683,il=(Math.log2(65504)+9.72)/17.52,ll=(At=new At({id:"acescc",name:"ACEScc",coords:{r:{range:[ol,il],name:"Red"},g:{range:[ol,il],name:"Green"},b:{range:[ol,il],name:"Blue"}},referred:"scene",base:rl,toBase:function(e){return e.map(function(e){return e<=(9.72-15)/17.52?2*(Math.pow(2,17.52*e-9.72)-al):e<il?Math.pow(2,17.52*e-9.72):65504})},fromBase:function(e){return e.map(function(e){return e<=0?(Math.log2(al)+9.72)/17.52:e<al?(Math.log2(al+.5*e)+9.72)/17.52:(Math.log2(e)+9.72)/17.52})},formats:{color:{}}}),Object.freeze({__proto__:null,XYZ_D65:lo,XYZ_D50:Ee,XYZ_A\
BS_D65:Qo,Lab_D65:Uo,Lab:bo,LCH:wo,sRGB_Linear:_n,sRGB:sa,HSL:_i,HWB:Pi,HSV:Mi,P3_Linear:Sn,P3:Mo,A98RGB_Linear:Ii,A98RGB:Bi,ProPhoto_Linear:ji,ProPhoto:Li,REC_2020_Linear:Ae,REC_2020:Vt,OKLab:Ai,OKLCH:qi,Jzazbz:pi,JzCzHz:fi,ICTCP:yi,REC_2100_PQ:Yi,REC_2100_HLG:Qi,ACEScg:rl,ACEScc:At})),ul=(ae=new WeakMap,Z(function e(){var t=this;K(this,e),q(this,ae,void 0);for(var n,r,a,o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];a=(a=1===i.length?co(i[0]):a)?(n=a.space||a.spaceId,r=a.coords,a.alpha):(n=i[0],r=i[1],i[2]),$(ae,this,io.get(n)),this.coords=r?r.slice():[0,0,0],this.alpha=a<1?a:1;for(var u=0;u<this.coords.length;u++)"NaN"===this.coords[u]&&(this.coords[u]=NaN);for(var s in G(ae,this).coords)(e=>{Object.defineProperty(t,e,{get:function(){return t.get(e)},set:function(n){return t.set(e,n)}})})(s)},[{key:"space",get:function(){return G(ae,this)}},{key:"spaceId",get:function(){return G(ae,this).id}},{key:"clone",value:function(){return new ul(this.space,this.coords,this.al\
pha)}},{key:"toJSON",value:function(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}},{key:"display",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){var t,n=void 0===(n=(r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).space)?Qa.display_space:n,r=O(r,l),a=To(e,r);return"undefined"==typeof CSS||null!=(t=CSS)&&t.supports("color",a)||!Qa.display_space?(a=new String(a)).color=e:(t=No(e,n),(a=new String(To(t,r))).color=t),a}.apply(void 0,[this].concat(t));return r.color=new ul(r.color),r}}],[{key:"get",value:function(e){if(e instanceof ul)return e;for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T(ul,[e].concat(n))}},{key:"defineFunction",value:function(e,t){function n(){var e,n=t.apply(void 0,arguments);return"color"===o?n=ul.get(n):"function<color>"===o?(e=n,n=function(){var t=e.apply(void 0,arguments);return ul.get(t)},Object.assign(n,e)):"array<color>"===o&&(\
n=n.map(function(e){return ul.get(e)})),n}var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:t,a=void 0===(a=r.instance)||a,o=r.returns;e in ul||(ul[e]=n),a&&(ul.prototype[e]=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(void 0,[this].concat(t))})}},{key:"defineFunctions",value:function(e){for(var t in e)ul.defineFunction(t,e[t],e[t])}},{key:"extend",value:function(e){if(e.register)e.register(ul);else for(var t in e)ul.defineFunction(t,e[t])}}]));ul.defineFunctions({get:fo,getAll:po,set:ho,setAll:mo,to:No,equals:function(e,t){return e=co(e),t=co(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every(function(e,n){return e===t.coords[n]})},inGamut:Co,toGamut:Ro,distance:Lo,toString:To}),Object.assign(ul,{util:Fe,hooks:Ja,WHITES:eo,Space:io,spaces:io.registry,parse:so,defaults:Qa});for(var sl,cl=0,dl=Object.keys(ll);cl<dl.length;cl++){var pl=dl[cl];io.register(ll[pl])}for(sl in io.registry)fl(sl,io.registry[sl]);function fl(e\
,t){Object.keys(t.coords),Object.values(t.coords).map(function(e){return e.name});var n=e.replace(/-/g,"_");Object.defineProperty(ul.prototype,n,{get:function(){var n=this,r=this.getAll(e);return"undefined"==typeof Proxy?r:new Proxy(r,{has:function(e,n){try{return io.resolveCoord([t,n]),!0}catch(e){}return Reflect.has(e,n)},get:function(e,n,r){if(n&&"symbol"!==a(n)&&!(n in e)){var o=io.resolveCoord([t,n]).index;if(0<=o)return e[o]}return Reflect.get(e,n,r)},set:function(r,o,i,l){if(o&&"symbol"!==a(o)&&!(o in r)||0<=o){var u=io.resolveCoord([t,o]).index;if(0<=u)return r[u]=i,n.setAll(e,r),!0}return Reflect.set(r,o,i,l)}})},set:function(t){this.setAll(e,t)},configurable:!0,enumerable:!0})}Ja.add("colorspace-init-end",function(e){var t;fl(e.id,e),null!=(t=e.aliases)&&t.forEach(function(t){fl(t,e)})}),ul.extend(Fi),ul.extend({deltaE:Ci}),ul.extend(ki),ul.extend({contrast:function(e,t){var n,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},a=(r=r=Ga(r)?{algorithm:r}:r).algorithm,\
o=O(r,u);if(!a)throw r=Object.keys(Yo).map(function(e){return e.replace(/^contrast/,"")}).join(", "),new TypeError("contrast() function needs a contrast algorithm. Please specify one of: ".concat(r));for(n in e=co(e),t=co(t),Yo)if("contrast"+a.toLowerCase()===n.toLowerCase())return Yo[n](e,t,o);throw new TypeError("Unknown contrast algorithm: ".concat(a))}}),ul.extend(Zo),ul.extend(pe),ul.extend(Si),ul.extend(Yo);var ml=he(Rn()),hl=(La.default.templateSettings.strip=!1,o._memoizedFns=[],function(e){return e=(0,za.default)(e),o._memoizedFns.push(e),e}),gl=hl(function(e){return!(null==e||!e.createElement)&&"A"===e.createElement("A").localName});function vl(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};if(!t)return"";var a=t.getRootNode&&t.getRootNode()||r;if(11!==a.nodeType)return e(t,n,a);for(var o=[];11===a.nodeType;){if(!a.host)return"";o.unshift({elm:t,doc:a}),a=(t=a.host).getRootNode()}return o.unshift({elm:t,doc:a}),o.map(function(t){return e(t.elm,n,t.doc)})\
}var bl=["class","style","id","selected","checked","disabled","tabindex","aria-checked","aria-selected","aria-invalid","aria-activedescendant","aria-busy","aria-disabled","aria-expanded","aria-grabbed","aria-pressed","aria-valuenow","xmlns"],yl=31,wl=/([\\\\"])/g,Dl=/(\\r\\n|\\r|\\n)/g;function xl(e){return e.replace(wl,"\\\\$1").replace(Dl,"\\\\a ")}function El(e,t){var n,r=t.name;return-1!==r.indexOf("href")||-1!==r.indexOf("src")?(n=Ma(e.getAttribute(r)))?Ta(t.name)+'$="'+xl(n)+'"':Ta(t.name)+'="'+xl(e.getAttribute(r))+'"':Ta(r)+'="'+xl(t.value)+'"'}function Al(e,t){return e.count<t.count?-1:e.count===t.count?0:1}function Fl(e){return!bl.includes(e.name)&&-1===e.name.indexOf(":")&&(!e.value||e.value.length<yl)}function Cl(e){for(var t={classes:{},tags:{},attributes:{}},n=(e=Array.isArray(e)?e:[e]).slice(),r=[];n.length;)(()=>{var e,a=n.pop(),o=a.actualNode;for(o.querySelectorAll&&(e=o.nodeName,t.tags[e]?t.tags[e]++:t.tags[e]=1,o.classList&&Array.from(o.classList).forEach(function(e){e=Ta(e),t\
.classes[e]?t.classes[e]++:t.classes[e]=1}),o.hasAttributes())&&Array.from(Pa(o)).filter(Fl).forEach(function(e){(e=El(o,e))&&(t.attributes[e]?t.attributes[e]++:t.attributes[e]=1)}),a.children.length&&(r.push(n),n=a.children.slice());!n.length&&r.length;)n=r.pop()})();return t}function kl(e){var t=gl(r);return Ta(t?e.localName:e.nodeName.toLowerCase())}function Rl(e,t){var n,r,a,o,i,l,u,s,c,d="",p=(r=e,a=[],o=t.classes,i=t.tags,r.classList&&Array.from(r.classList).forEach(function(e){e=Ta(e),o[e]<i[r.nodeName]&&a.push({name:e,count:o[e],species:"class"})}),a.sort(Al));l=e,u=[],s=t.attributes,c=t.tags,l.hasAttributes()&&Array.from(Pa(l)).filter(Fl).forEach(function(e){(e=El(l,e))&&s[e]<c[l.nodeName]&&u.push({name:e,count:s[e],species:"attribute"})}),t=u.sort(Al);return p.length&&1===p[0].count?n=[p[0]]:t.length&&1===t[0].count?(n=[t[0]],d=kl(e)):((n=p.concat(t)).sort(Al),(n=n.slice(0,3)).some(function(e){return"class"===e.species})?n.sort(function(e,t){return e.species!==t.species&&"cla\
ss"===e.species?-1:e.species===t.species?0:1}):d=kl(e)),d+n.reduce(function(e,t){switch(t.species){case"class":return e+"."+t.name;case"attribute":return e+"["+t.name+"]"}return e},"")}function Nl(e,t,n){if(!o._selectorData)throw new Error("Expect axe._selectorData to be set up");var a,i,l=void 0!==(t=t.toRoot)&&t;do{var u=(e=>{var t;if(e.getAttribute("id"))return t=e.getRootNode&&e.getRootNode()||r,(e="#"+Ta(e.getAttribute("id")||"")).match(/player_uid_/)||1!==t.querySelectorAll(e).length?void 0:e})(e);u||(u=Rl(e,o._selectorData),u+=((e,t)=>{var n=e.parentNode&&Array.from(e.parentNode.children||"")||[];return n.find(function(n){return n!==e&&Ia(n,t)})?":nth-child("+(1+n.indexOf(e))+")":""})(e,u)),a=a?u+" > "+a:u,i=!i||i.length>da.selectorSimilarFilterLimit?Ol(n,a):i.filter(function(e){return Ia(e,a)}),e=e.parentElement}while((1<i.length||l)&&e&&11!==e.nodeType);return 1===i.length?a:-1!==a.indexOf(" > ")?":root"+a.substring(a.indexOf(" > ")):":root"}var Tl=hl(function(e,t){return vl(N\
l,e,t)}),Ol=hl(function(e,t){return Array.from(e.querySelectorAll(t))});function Sl(e){var t=Ta(e.nodeName.toLowerCase()),n=e.parentElement,r=e.parentNode,a="";return"head"!==t&&"body"!==t&&1<(null==r?void 0:r.children.length)&&(r=Array.prototype.indexOf.call(r.children,e)+1,a=":nth-child(".concat(r,")")),n?Sl(n)+" > "+t+a:t+a}function _l(e,t){return vl(Sl,e,t)}var Ml=function(e){return function e(t,n){var r,a,o,i;if(!t)return[];if(!n&&9===t.nodeType)return[{str:"html"}];if(n=n||[],t.parentNode&&t.parentNode!==t&&(n=e(t.parentNode,n)),t.previousSibling){for(a=1,r=t.previousSibling;1===r.nodeType&&r.nodeName===t.nodeName&&a++,r=r.previousSibling;);1===a&&(a=null)}else if(t.nextSibling)for(r=t.nextSibling;r=1===r.nodeType&&r.nodeName===t.nodeName?(a=1,null):(a=null,r.previousSibling););return 1===t.nodeType&&((o={}).str=t.nodeName.toLowerCase(),(i=t.getAttribute&&Ta(t.getAttribute("id")))&&1===t.ownerDocument.querySelectorAll("#"+i).length&&(o.id=t.getAttribute("id")),1<a&&(o.count=a),n.\
push(o)),n}(e).reduce(function(e,t){return t.id?"//".concat(t.str,"[@id='").concat(t.id,"']"):e+"/".concat(t.str)+(0<t.count?"[".concat(t.count,"]"):"")},"")},Pl={},Il={set:function(e,t){var n;Ra("string"==typeof(n=e),"key must be a string, "+a(n)+" given"),Ra(""!==n,"key must not be empty"),Pl[e]=t},get:function(e,t){var n;return Ra("function"==typeof(n=t)||void 0===n,"creator must be a function or undefined, "+a(n)+" given"),e in Pl?Pl[e]:"function"==typeof t?(n=t(),Ra(void 0!==n,"Cache creator function should not return undefined"),this.set(e,n),Pl[e]):void 0},clear:function(){Pl={}}},Bl=function(e,t){return t=t||e,Il.get("nodeMap")?Il.get("nodeMap").get(t):null};function jl(e){var n=void 0===(n=(a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).maxLength)?300:n,a=void 0===(a=a.attrLimit)?20:a;if(!e)return"";if(1!==e.nodeType)return Ll(null!=(o=e.nodeValue)?o:"",n);var o=(e=>{var n=e.outerHTML;return(n=n||"function"!=typeof t.XMLSerializer?n:(new t.XMLSerializer).serializ\
eToString(e))||""})(e);if(o.length>n){var i=(n={maxLength:n,attrLimit:a}).maxLength,l=n.attrLimit;n=gl(e.ownerDocument||r)?e.nodeName:e.nodeName.toLowerCase(),a=(e=Array.from(Pa(e)).map(function(e){return{name:e.name,value:e.value}})).reduce(function(e,t){return e+t.name.length+t.value.length+4},0);2+n.length+a>i&&e.forEach(function(e){e.name=Ll(e.name,l),e.value=Ll(e.value,l)});var u,s="<".concat(n),c=">",d=Q(e);try{for(d.s();!(u=d.n()).done;){var p=u.value,f=" ".concat(p.name,'="').concat(p.value,'"');s.length+f.length>i-5?c=" ...>":s+=f}}catch(e){d.e(e)}finally{d.f()}return s+c}return o}function Ll(e,t){return e.length<=t?e:e.substring(0,t)+"..."}var ql="DqElm.RunOptions",zl=hl(function(e,t,n){var r;return null==n&&(n={}),t=(t=null==t?null:t)||(null!=(r=Il.get(ql))?r:{}),this.spec=n,e instanceof ma?(this._virtualNode=e,this._element=e.actualNode):(this._element=e,this._virtualNode=Bl(e)),this.fromFrame=1<(null==(r=this.spec.selector)?void 0:r.length),this._includeElementInJson=t.ele\
mentRef,t.absolutePaths&&(this._options={toRoot:!0}),this.nodeIndexes=[],Array.isArray(this.spec.nodeIndexes)?this.nodeIndexes=this.spec.nodeIndexes:"number"==typeof(null==(n=this._virtualNode)?void 0:n.nodeIndex)&&(this.nodeIndexes=[this._virtualNode.nodeIndex]),this.source=null,o._audit.noHtml||(this.source=null!=(e=this.spec.source)?e:jl(this._element)),this}),Vl=(zl.prototype={get selector(){return this.spec.selector||[Tl(this.element,this._options)]},get ancestry(){return this.spec.ancestry||[_l(this.element)]},get xpath(){return this.spec.xpath||[Ml(this.element)]},get element(){return this._element},toJSON:function(){var e={selector:this.selector,source:this.source,xpath:this.xpath,ancestry:this.ancestry,nodeIndexes:this.nodeIndexes,fromFrame:this.fromFrame};return this._includeElementInJson&&(e.element=this._element),e}},zl.fromFrame=function(e,t,n){return e=zl.mergeSpecs(e,n),new zl(n.element,t,e)},zl.mergeSpecs=function(e,t){return B({},e,{selector:[].concat(j(t.selector),j(e\
.selector)),ancestry:[].concat(j(t.ancestry),j(e.ancestry)),xpath:[].concat(j(t.xpath),j(e.xpath)),nodeIndexes:[].concat(j(t.nodeIndexes),j(e.nodeIndexes)),fromFrame:!0})},zl.setRunOptions=function(e){var t=e.elementRef;Il.set(ql,{elementRef:t,absolutePaths:e.absolutePaths})},zl),Gl=function(e,n,r,a){return{isAsync:!1,async:function(){return this.isAsync=!0,function(t){t instanceof Error==0?(e.result=t,r(e)):a(t)}},data:function(t){e.data=t},relatedNodes:function(n){t.Node&&(n=n instanceof t.Node||n instanceof ma?[n]:Na(n),e.relatedNodes=[],n.forEach(function(n){(n=n instanceof ma?n.actualNode:n)instanceof t.Node&&(n=new Vl(n),e.relatedNodes.push(n))}))}}};function $l(e){return function e(n,r){var o,i;if(null===n||"object"!==a(n))return n;if(null!=(o=t)&&o.Node&&n instanceof t.Node||null!=(o=t)&&o.HTMLCollection&&n instanceof t.HTMLCollection||"nodeName"in n&&"nodeType"in n&&"ownerDocument"in n)return n;if(r.has(n))return r.get(n);if(Array.isArray(n))return i=[],r.set(n,i),n.forEach(fu\
nction(t){i.push(e(t,r))}),i;var l={};for(var u in r.set(n,l),n)l[u]=e(n[u],r);return l}(e,new Map)}(ol=new ja.CssSelectorParser).registerSelectorPseudos("not"),ol.registerSelectorPseudos("is"),ol.registerNestingOperators(">"),ol.registerAttrEqualityMods("^","$","*","~");var Hl=ol;function Ul(e,t){return Jl(t).some(function(t){return Ql(e,t)})}function Wl(e,t){return i=t,1===(o=e).props.nodeType&&("*"===i.tag||o.props.nodeName===i.tag)&&(a=e,!(o=t).classes||o.classes.every(function(e){return a.hasClass(e.value)}))&&(r=e,!(i=t).attributes||i.attributes.every(function(e){var t=r.attr(e.key);return null!==t&&e.test(t)}))&&(o=e,!(i=t).id||o.props.id===i.id)&&(n=e,!((o=t).pseudos&&!o.pseudos.every(function(e){if("not"===e.name)return!e.expressions.some(function(e){return Ql(n,e)});if("is"===e.name)return e.expressions.some(function(e){return Ql(n,e)});throw new Error("the pseudo selector "+e.name+" has not yet been implemented")})));var n,r,a,o,i}Yl=/(?=[\\-\\[\\]{}()*+?.\\\\\\^$|,#\\s])/g;var Yl,\
Kl=function(e){return e.replace(Yl,"\\\\")},Xl=/\\\\/g;function Zl(e){return e.map(function(e){for(var t=[],n=e.rule;n;)t.push({tag:n.tagName?n.tagName.toLowerCase():"*",combinator:n.nestingOperator||" ",id:n.id,attributes:(e=>{if(e)return e.map(function(e){var t,n,r=e.name.replace(Xl,""),a=(e.value||"").replace(Xl,"");switch(e.operator){case"^=":n=new RegExp("^"+Kl(a));break;case"$=":n=new RegExp(Kl(a)+"$");break;case"~=":n=new RegExp("(^|\\\\s)"+Kl(a)+"(\\\\s|$)");break;case"|=":n=new RegExp("^"+Kl(a)+"(-|$)");break;case"=":t=function(e){return a===e};break;case"*=":t=function(e){return e&&e.includes(a)};break;case"!=":t=function(e){return a!==e};break;default:t=function(e){return null!==e}}return""===a&&/^[*$^]=$/.test(e.operator)&&(t=function(){return!1}),{key:r,value:a,type:void 0===e.value?"attrExist":"attrValue",test:t=t||function(e){return e&&n.test(e)}}})})(n.attrs),classes:(e=>{if(e)return e.map(function(e){return{value:e=e.replace(Xl,""),regexp:new RegExp("(^|\\\\s)"+Kl(e)+"(\\\\s|$)")}\
})})(n.classNames),pseudos:(e=>{if(e)return e.map(function(e){var t;return["is","not"].includes(e.name)&&(t=Zl(t=(t=e.value).selectors||[t])),{name:e.name,expressions:t,value:e.value}})})(n.pseudos)}),n=n.rule;return t})}function Jl(e){return Zl((e=Hl.parse(e)).selectors||[e])}function Ql(e,t,n){return function e(t,n,r,a){if(!t)return!1;for(var o=Array.isArray(n)?n[r]:n,i=Wl(t,o);!i&&a&&t.parent;)i=Wl(t=t.parent,o);if(0<r){if(!1===[" ",">"].includes(o.combinator))throw new Error("axe.utils.matchesExpression does not support the combinator: "+o.combinator);i=i&&e(t.parent,n,r-1," "===o.combinator)}return i}(e,t,t.length-1,n)}var eu=function(e,t){for(;e;){if(Ul(e,t))return e;if(void 0===e.parent)throw new TypeError("Cannot resolve parent for non-DOM nodes");e=e.parent}return null};function tu(){}function nu(e){if("function"!=typeof e)throw new TypeError("Queue methods require functions as arguments")}for(var ru,au,ou,iu=function(){function e(e){t=e,setTimeout(function(){null!=t&&pa("Unca\
ught error (of queue)",t)},1)}var t,n=[],r=0,o=0,i=tu,l=!1,u=e;function s(e){return i=tu,u(e),n}function c(){for(var e=n.length;r<e;r++){var t=n[r];try{t.call(null,(e=>function(t){n[e]=t,--o||i===tu||(l=!0,i(n))})(r),s)}catch(e){s(e)}}}var d={defer:function(e){var r;if("object"===a(e)&&e.then&&e.catch&&(r=e,e=function(e,t){r.then(e).catch(t)}),nu(e),void 0===t){if(l)throw new Error("Queue already completed");return n.push(e),++o,c(),d}},then:function(e){if(nu(e),i!==tu)throw new Error("queue \`then\` already set");return t||(i=e,o)||(l=!0,i(n)),d},catch:function(n){if(nu(n),u!==e)throw new Error("queue \`catch\` already set");return t?(n(t),t=null):u=n,d},abort:s};return d},lu=t.crypto||t.msCrypto,uu=(!au&&lu&&lu.getRandomValues&&(ru=new Uint8Array(16),au=function(){return lu.getRandomValues(ru),ru}),au||(ou=new Array(16),au=function(){for(var e,t=0;t<16;t++)!(3&t)&&(e=4294967296*Math.random()),ou[t]=e>>>((3&t)<<3)&255;return ou}),"function"==typeof t.Buffer?t.Buffer:Array),su=[],cu={},du=\
0;du<256;du++)su[du]=(du+256).toString(16).substr(1),cu[su[du]]=du;function pu(e,t){return t=t||0,su[e[t++]]+su[e[t++]]+su[e[t++]]+su[e[t++]]+"-"+su[e[t++]]+su[e[t++]]+"-"+su[e[t++]]+su[e[t++]]+"-"+su[e[t++]]+su[e[t++]]+"-"+su[e[t++]]+su[e[t++]]+su[e[t++]]+su[e[t++]]+su[e[t++]]+su[e[+t]]}var fu=[1|(Ee=au())[0],Ee[1],Ee[2],Ee[3],Ee[4],Ee[5]],mu=16383&(Ee[6]<<8|Ee[7]),hu=0,gu=0;function vu(e,t,n){var r=t&&n||0,a=t||[],o=(n=null!=(e=e||{}).clockseq?e.clockseq:mu,null!=e.msecs?e.msecs:(new Date).getTime()),i=null!=e.nsecs?e.nsecs:gu+1;if((l=o-hu+(i-gu)/1e4)<0&&null==e.clockseq&&(n=n+1&16383),1e4<=(i=(l<0||hu<o)&&null==e.nsecs?0:i))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");hu=o,mu=n;for(var l=(1e4*(268435455&(o+=122192928e5))+(gu=i))%4294967296,u=(i=(a[r++]=l>>>24&255,a[r++]=l>>>16&255,a[r++]=l>>>8&255,a[r++]=255&l,o/4294967296*1e4&268435455),a[r++]=i>>>8&255,a[r++]=255&i,a[r++]=i>>>24&15|16,a[r++]=i>>>16&255,a[r++]=n>>>8|128,a[r++]=255&n,e.node||fu),s=0;s<6;s++)a[r\
+s]=u[s];return t||pu(a)}function bu(e,t,n){var r=t&&n||0,a=("string"==typeof e&&(t="binary"==e?new uu(16):null,e=null),(e=e||{}).random||(e.rng||au)());if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var o=0;o<16;o++)t[r+o]=a[o];return t||pu(a)}(Qo=bu).v1=vu,Qo.v4=bu,Qo.parse=function(e,t,n){var r=t&&n||0,a=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){a<16&&(t[r+a++]=cu[e])});a<16;)t[r+a++]=0;return t},Qo.unparse=pu,Qo.BufferClass=uu,o._uuid=vu();var yu=bu,wu=Object.freeze(["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function Du(){var e="axeAPI",t="";return(e=void 0!==o&&o._audit&&o._audit.application?o._audit.application:e)+"."+(void 0!==o?o.version:t)}function xu(e){Au(e),Ra(t.parent===e,"Source of the response must be the parent window.")}function Eu(e){Au(e),Ra(e.parent===t,"Respondable target must be a frame in the current window")}function Au(e){Ra(t!==e,"Messages can not be sent to the same window.")}var Fu={},Cu=[];function ku\
(){var e="".concat(bu(),":").concat(bu());return Cu.includes(e)?ku():(Cu.push(e),e)}function Ru(e,t,n,r){var a,i,l,u;return(n?xu:Eu)(e),t.message instanceof Error&&!n?(o.log(t.message),!1):(i=(u=B({messageId:ku()},t)).topic,l=u.message,i={channelId:u.channelId,topic:i,messageId:u.messageId,keepalive:!!u.keepalive,source:Du()},l instanceof Error?i.error={name:l.name,message:l.message,stack:l.stack}:i.payload=l,a=JSON.stringify(i),!(!(u=o._audit.allowedOrigins)||!u.length||("function"==typeof r&&function(e,t,n){n=!(2<arguments.length&&void 0!==n)||n,Ra(!Object.prototype.hasOwnProperty.call(Fu,e),"A replyHandler already exists for this message channel."),Fu[e]={replyHandler:t,sendToParent:n}}(t.channelId,r,n),u.forEach(function(t){try{e.postMessage(a,t)}catch(n){if(n instanceof e.DOMException)throw new Error('allowedOrigins value "'.concat(t,'" is not a valid origin'));throw n}}),0)))}function Nu(e,t,n){var r=!(2<arguments.length&&void 0!==n)||n;return function(n,a,o){Ru(e,{channelId:t,me\
ssage:n,keepalive:a},r,o)}}function Tu(e,n){var r,i,l,u=e.origin,s=e.data;e=e.source;try{var c=function(e){var n,r,o,i;try{n=JSON.parse(e)}catch(e){return}if(null!==(e=n)&&"object"===a(e)&&"string"==typeof e.channelId&&e.source===Du())return r=(e=n).topic,o=e.channelId,i=e.messageId,e=e.keepalive,{topic:r,message:"object"===a(n.error)?(e=>{var n=e.message||"Unknown error occurred",r=wu.includes(e.name)?e.name:"Error";return r=t[r]||Error,e.stack&&(n+="\\n"+e.stack.replace(e.message,"")),new r(n)})(n.error):n.payload,messageId:i,channelId:o,keepalive:!!e}}(s)||{},d=c.channelId,p=c.message,f=c.messageId;if(i=u,((l=o._audit.allowedOrigins)&&l.includes("*")||l.includes(i))&&(r=f,!Cu.includes(r))&&(Cu.push(r),1))if(p instanceof Error&&e.parent!==t)o.log(p);else try{if(c.topic){var m=Nu(e,d);xu(e),n(c,m)}else{var h=e,g=(b=c).channelId,v=b.message,b=b.keepalive,y=(w=(e=>Object.prototype.hasOwnProperty.call(Fu,e)?Fu[e]:void 0)(g)||{}).replyHandler,w=w.sendToParent;if(y){(w?xu:Eu)(h),h=Nu(h,g,w)\
,!b&&g&&(e=>{delete Fu[e]})(g);try{y(v,b,h)}catch(n){o.log(n),h(n,b)}}}}catch(n){var D=e,x=n,E=d;if(!D.parent!==t)o.log(x);else try{Ru(D,{topic:null,channelId:E,message:x,messageId:ku(),keepalive:!0},!0)}catch(n){return void o.log(n)}}}catch(n){o.log(n)}}var Ou,Su,_u={open:function(e){var n;if("function"==typeof t.addEventListener)return t.addEventListener("message",n=function(t){Tu(t,e)},!1),function(){t.removeEventListener("message",n,!1)}},post:function(e,n,r){return"function"==typeof t.addEventListener&&Ru(e,n,!1,r)}};function Mu(e){e.updateMessenger(_u)}var Pu={};function Iu(e,t,n,r,a){return t={topic:t,message:n,channelId:"".concat(bu(),":").concat(bu()),keepalive:r},Su(e,t,a)}function Bu(e,t){var n=e.topic,r=e.message;e=e.keepalive;if(n=Object.prototype.hasOwnProperty.call(Pu,n)?Pu[n]:void 0)try{n(r,e,t)}catch(n){o.log(n),t(n,e)}}function ju(e,t,n,r){var a,o=e.contentWindow,i=null!=(i=null==(i=t.options)?void 0:i.pingWaitTime)?i:500;o?0===i?Lu(e,t,n,r):(a=setTimeout(function(){a\
=setTimeout(function(){t.debug?r(qu("No response from frame",e)):n(null)},0)},i),Iu(o,"axe.ping",null,void 0,function(){clearTimeout(a),Lu(e,t,n,r)})):(pa("Frame does not have a content window",e),n(null))}function Lu(e,t,n,r){var a=null!=(a=null==(a=t.options)?void 0:a.frameWaitTime)?a:6e4,o=e.contentWindow,i=setTimeout(function(){r(qu("Axe in frame timed out",e))},a);Iu(o,"axe.start",t,void 0,function(e){clearTimeout(i),(e instanceof Error==0?n:r)(e)})}function qu(e,t){var n;return o._tree&&(n=Tl(t)),new Error(e+": "+(n||t))}Iu.updateMessenger=function(e){var t=e.open;e=e.post,Ra("function"==typeof t,"open callback must be a function"),Ra("function"==typeof e,"post callback must be a function"),Ou&&Ou(),t=t(Bu);Ou=t?(Ra("function"==typeof t,"open callback must return a cleanup function"),t):null,Su=e},Iu.subscribe=function(e,t){Ra("function"==typeof t,"Subscriber callback must be a function"),Ra(!Object.prototype.hasOwnProperty.call(Pu,e),"Topic ".concat(e," is already registered to.\
")),Pu[e]=t},Iu.isInFrame=function(){return!!(0<arguments.length&&void 0!==arguments[0]?arguments[0]:t).frameElement},Mu(Iu);var zu=null,Vu={update:function(e){Ra("object"===a(e),"serializer must be an object"),zu=e},toSpec:function(e){return Vu.dqElmToSpec(new Vl(e))},dqElmToSpec:function(e,t){var n,r,a,o,i;return e instanceof Vl==0?e:(t&&(r=(n=e).fromFrame,a=t.ancestry,o=t.xpath,i=!1!==t.selectors||r,(n=new Vl(n.element,t,{source:n.source,nodeIndexes:n.nodeIndexes,selector:i?n.selector:[":root"],ancestry:a?n.ancestry:[":root"],xpath:o?n.xpath:"/"})).fromFrame=r,e=n),"function"==typeof(null==(t=zu)?void 0:t.toSpec)?zu.toSpec(e):e.toJSON())},mergeSpecs:function(e,t){var n;return("function"==typeof(null==(n=zu)?void 0:n.mergeSpecs)?zu:Vl).mergeSpecs(e,t)},mapRawResults:function(e){return e.map(function(e){return B({},e,{nodes:Vu.mapRawNodeResults(e.nodes)})})},mapRawNodeResults:function(e){return null==e?void 0:e.map(function(e){var t=e.node,n=O(e,d);n.node=Vu.dqElmToSpec(t);for(var r=0\
,a=["any","all","none"];r<a.length;r++){var o=a[r];n[o]=n[o].map(function(e){var t=e.relatedNodes;return(e=O(e,p)).relatedNodes=t.map(Vu.dqElmToSpec),e})}return n})}},Gu=Vu,$u=function(e){return[].concat(e.any||[]).concat(e.all||[]).concat(e.none||[])},Hu=function(e,t,n){if(Array.isArray(e))return e.find(function(e){return null!==e&&"object"===a(e)&&Object.hasOwn(e,t)&&e[t]===n})};function Uu(e,t){for(var n=0<arguments.length&&void 0!==e?e:[],r=1<arguments.length&&void 0!==t?t:[],a=Math.max(null==n?void 0:n.length,null==r?void 0:r.length),o=0;o<a;o++){var i=null==n?void 0:n[o],l=null==r?void 0:r[o];if("number"!=typeof i||isNaN(i))return 0===o?1:-1;if("number"!=typeof l||isNaN(l))return 0===o?-1:1;if(i!==l)return i-l}return 0}var Wu=function(e,t){var n=[];return e.forEach(function(e){var t,r=(r=e)&&r.results?Array.isArray(r.results)?r.results.length?r.results:null:[r.results]:null;r&&r.length&&(t=(e=>e.frameElement?Gu.toSpec(e.frameElement):e.frameSpec||null)(e),r.forEach(function(e){e.\
nodes&&t&&(a=e.nodes,r=t,a.forEach(function(e){e.node=Gu.mergeSpecs(e.node,r),$u(e).forEach(function(e){e.relatedNodes=e.relatedNodes.map(function(e){return Gu.mergeSpecs(e,r)})})}));var r,a=Hu(n,"id",e.id);a?(e.nodes.length&&((e,t)=>{for(var n=t[0].node,r=0;r<e.length;r++){var a,o=Uu((a=e[r].node).nodeIndexes,n.nodeIndexes);if(0<o||0===o&&n.selector.length<a.selector.length)return e.splice.apply(e,[r,0].concat(j(t)))}e.push.apply(e,j(t))})(a.nodes,e.nodes),e.error&&null==a.error&&(a.error=e.error)):n.push(e)}))}),n.forEach(function(e){e.nodes&&e.nodes.sort(function(e,t){return Uu(e.node.nodeIndexes,t.node.nodeIndexes)})}),n};function Yu(e,t,n,r,a,o){t=B({},t,{elementRef:!1});var i=iu();e.frames.forEach(function(e){var a=e.node,o=O(e,f);i.defer(function(e,i){ju(a,{options:t,command:n,parameter:r,context:o},function(t){return e(t?{results:t,frameElement:a}:null)},i)})}),i.then(function(e){a(Wu(e,t))}).catch(o)}function Ku(e,t){if(!e.shadowId&&!t.shadowId&&e.actualNode&&"function"==typeo\
f e.actualNode.contains)return e.actualNode.contains(t.actualNode);do{if(e===t)return!0;if(t.nodeIndex<e.nodeIndex)return!1}while(t=t.parent);return!1}var Xu=function e(){for(var t={},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.forEach(function(n){if(n&&"object"===a(n)&&!Array.isArray(n))for(var r=0,o=Object.keys(n);r<o.length;r++){var i=o[r];!t.hasOwnProperty(i)||"object"!==a(n[i])||Array.isArray(t[i])?t[i]=n[i]:t[i]=e(t[i],n[i])}}),t},Zu=function(e,t){Object.assign(e,t),Object.keys(t).filter(function(e){return"function"==typeof t[e]}).forEach(function(n){e[n]=null;try{e[n]=t[n](e)}catch(n){}})},Ju=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],Qu=/^(?:[A-Za-z](?:[\\x01-\\x08\\x0B\\x0E-\\x1F!-\\.0-=\\?-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*|(?:[:_\\x80-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])(?:[\
\\x2D\\.0-:A-Z_a-z\\x80-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF])*)$/,es=/[a-z]/,ts=/[A-Z]/;function ns(e){return!Ju.includes(e)&&Qu.test(e)&&es.test(e[0])&&!ts.test(e)&&e.includes("-")}var rs=["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"],as=function(e){return!!(e.shadowRoot&&(e=e.nodeName.toLowerCase(),rs.includes(e)||ns(e)))},os={},is=(me(os,{createGrid:function(){return ic},findElmsInContext:function(){return us},findNearbyElms:function(){return mc},findUp:function(){return cs},findUpVirtual:function(){return ss},focusDisabled:function(){return wc},getComposedParent:function(){return Os},getElementByReference:function(){return Ac},getElementCoordinates:function(){return _s},getElementStack:function(){return Rc},getModalDialog:function(){return hc},getNodeGrid:function(){return fc},getOverflowHiddenAncestors:function(){return fs},getRootNode:function(){return ls},getScrollOffset:function(){return Ss},getTabb\
ableElements:function(){return Nc},getTargetRects:function(){return _c},getTargetSize:function(){return Mc},getTextElementStack:function(){return hp},getViewportSize:function(){return Ms},getVisibleChildTextRects:function(){return fp},hasContent:function(){return Dp},hasContentVirtual:function(){return wp},hasLangText:function(){return xp},idrefs:function(){return Ic},insertedIntoFocusOrder:function(){return Ep},isCurrentPageLink:function(){return Ec},isFixedPosition:function(){return Ps},isFocusable:function(){return Oc},isHTML5:function(){return kp},isHiddenForEveryone:function(){return Rs},isHiddenWithCSS:function(){return Cp},isInTabOrder:function(){return Sc},isInTextBlock:function(){return Op},isInert:function(){return gc},isModalOpen:function(){return _p},isMultiline:function(){return Mp},isNativelyFocusable:function(){return Tc},isNode:function(){return Pp},isOffscreen:function(){return js},isOpaque:function(){return Up},isSkipLink:function(){return Wp},isVisible:function(){ret\
urn Zp},isVisibleOnScreen:function(){return qs},isVisibleToScreenReaders:function(){return Td},isVisualContent:function(){return vp},reduceToElementsBelowFloating:function(){return Jp},shadowElementsFromPoint:function(){return tf},urlPropsFromAttribute:function(){return nf},visuallyContains:function(){return Qp},visuallyOverlaps:function(){return rf},visuallySort:function(){return Fc}}),function(e){var t=e.getRootNode&&e.getRootNode()||r;return t===e?r:t}),ls=is,us=function(e){var t=e.context,n=e.attr,r=void 0===(r=e.elm)?"":r;e=Ta(e.value),t=9===t.nodeType||11===t.nodeType?t:ls(t);return Array.from(t.querySelectorAll(r+"["+n+"="+e+"]"))},ss=function(e,t){var n=e.actualNode;if(!e.shadowId&&"function"==typeof e.actualNode.closest)return e.actualNode.closest(t)||null;for(;(n=(n=n.assignedSlot||n.parentNode)&&11===n.nodeType?n.host:n)&&!Ia(n,t)&&n!==r.documentElement;);return n&&Ia(n,t)?n:null},cs=function(e,t){return ss(Bl(e),t)};function ds(e,t){return(0|e.left)<(0|t.right)&&(0|e.right)\
>(0|t.left)&&(0|e.top)<(0|t.bottom)&&(0|e.bottom)>(0|t.top)}var ps=hl(function(e){var t=[];return e?("hidden"===e.getComputedStylePropertyValue("overflow")&&t.push(e),t.concat(ps(e.parent))):t}),fs=ps,ms=/rect\\s*\\(([0-9]+)px,?\\s*([0-9]+)px,?\\s*([0-9]+)px,?\\s*([0-9]+)px\\s*\\)/,hs=/(\\w+)\\((\\d+)/;function gs(e){return["style","script","noscript","template"].includes(e.props.nodeName)}function vs(e){return"area"!==e.props.nodeName&&"none"===e.getComputedStylePropertyValue("display")}function bs(e){return!(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isAncestor&&["hidden","collapse"].includes(e.getComputedStylePropertyValue("visibility"))}function ys(e){return!!(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isAncestor&&"hidden"===e.getComputedStylePropertyValue("content-visibility")}function ws(e){return"true"===e.attr("aria-hidden")}function Ds(e){return"0"===e.getComputedStylePropertyValue("opacity")}function xs(e){var t=qf(e.actualNode),n=parseInt(e.getComputedS\
tylePropertyValue("height"));e=parseInt(e.getComputedStylePropertyValue("width"));return!!t&&(0===n||0===e)}function Es(e){var t,n,r;return!(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isAncestor&&"fixed"!==(t=e.getComputedStylePropertyValue("position"))&&!!(n=fs(e)).length&&(r=e.boundingClientRect,n.some(function(n){return!("absolute"===t&&!((e,t)=>{for(var n=e.parent;n&&n!==t;){if(["relative","sticky"].includes(n.getComputedStylePropertyValue("position")))return 1;n=n.parent}})(e,n)&&"static"===n.getComputedStylePropertyValue("position"))&&((n=n.boundingClientRect).width<2||n.height<2||!ds(r,n))}))}function As(e){var t=e.getComputedStylePropertyValue("clip").match(ms),n=e.getComputedStylePropertyValue("clip-path").match(hs);if(t&&5===t.length&&(e=e.getComputedStylePropertyValue("position"),["fixed","absolute"].includes(e)))return t[3]-t[1]<=0&&t[2]-t[4]<=0;if(n){e=n[1];var r=parseInt(n[2],10);switch(e){case"inset":return 50<=r;case"circle":return 0===r}}return!1}functi\
on Fs(e,t){var n,r=eu(e,"map");return!r||!((r=r.attr("name"))&&(e=is(e.actualNode))&&9===e.nodeType&&(n=Tm(o._tree,'img[usemap="#'.concat(Ta(r),'"]')))&&n.length)||n.some(function(e){return!t(e)})}function Cs(e){var t;return"details"===(null==(t=e.parent)?void 0:t.props.nodeName)&&(("summary"!==e.props.nodeName||e.parent.children.find(function(e){return"summary"===e.props.nodeName})!==e)&&!e.parent.hasAttr("open"))}var ks=[vs,bs,ys,Cs];function Rs(e){var t=(n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).skipAncestors,n=void 0!==(n=n.isAncestor)&&n;return e=um(e).vNode,(t?Ns:Ts)(e,n)}var Ns=hl(function(e,t){return!!gs(e)||!(!e.actualNode||!ks.some(function(n){return n(e,{isAncestor:t})})&&e.actualNode.isConnected)}),Ts=hl(function(e,t){return!!Ns(e,t)||!!e.parent&&Ts(e.parent,!0)}),Os=function e(t){if(t.assignedSlot)return e(t.assignedSlot);if(t.parentNode){if(1===(t=t.parentNode).nodeType)return t;if(t.host)return t.host}return null},Ss=function(e){var t,n;return 9===(e=!\
e.nodeType&&e.document?e.document:e).nodeType?(t=e.documentElement,n=e.body,{left:t&&t.scrollLeft||n&&n.scrollLeft||0,top:t&&t.scrollTop||n&&n.scrollTop||0}):{left:e.scrollLeft,top:e.scrollTop}},_s=function(e){var t=(n=Ss(r)).left,n=n.top;return{top:(e=e.getBoundingClientRect()).top+n,right:e.right+t,bottom:e.bottom+n,left:e.left+t,width:e.right-e.left,height:e.bottom-e.top}},Ms=function(e){var t=e.document,n=t.documentElement;return e.innerWidth?{width:e.innerWidth,height:e.innerHeight}:n?{width:n.clientWidth,height:n.clientHeight}:{width:(e=t.body).clientWidth,height:e.clientHeight}};function Ps(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).skipAncestors;return!!(e=um(e).vNode)&&(t?Is:Bs)(e)}var Is=hl(function(e){return"fixed"===e.getComputedStylePropertyValue("position")}),Bs=hl(function(e){return!!Is(e)||!!e.parent&&Bs(e.parent)}),js=function(e){var n,a,o,i,l;return!(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isAncestor&&((e=um(e).domNode)?(n=\
r.documentElement,l=t.getComputedStyle(e),a=t.getComputedStyle(r.body||n).getPropertyValue("direction"),(0!==(i=(o=Ps(e))?e.getBoundingClientRect():_s(e)).top||0!==i.bottom)&&!(0===i.left&&0===i.right||!(i.bottom<=0&&(((e,t)=>{for(e=Os(e);e&&"html"!==e.nodeName.toLowerCase();){if(e.scrollTop&&0<=(t+=e.scrollTop))return;e=Os(e)}return 1})(e,i.bottom)||"absolute"===l.position)||(e=Ms(t),o&&i.top>=e.height)||(l=Math.max(n.scrollWidth,e.width),(o||"rtl"===a)&&i.left>=l)||(o||"ltr"===a)&&i.right<=0))):void 0)},Ls=[Ds,xs,Es,As,js];function qs(e){return e=um(e).vNode,zs(e)}var zs=hl(function(e,t){return e.actualNode&&"area"===e.props.nodeName?!Fs(e,zs):!(Rs(e,{skipAncestors:!0,isAncestor:t})||e.actualNode&&Ls.some(function(n){return n(e,{isAncestor:t})}))&&(!e.parent||zs(e.parent,!0))});function Vs(e,n){var r=Math.min(e.top,n.top),a=Math.max(e.right,n.right),o=Math.max(e.bottom,n.bottom);e=Math.min(e.left,n.left);return new t.DOMRect(e,r,a-e,o-r)}function Gs(e,t){var n=e.x;e=e.y;return t.top<\
=e&&n<=t.right&&e<=t.bottom&&t.left<=n}var $s={};function Hs(e,n){var r=Math.max(e.left,n.left),a=Math.min(e.right,n.right),o=Math.max(e.top,n.top);e=Math.min(e.bottom,n.bottom);return a<=r||e<=o?null:new t.DOMRect(r,o,a-r,e-o)}function Us(e){var n=e.left;return new t.DOMPoint(n+e.width/2,e.top+e.height/2)}me($s,{getBoundingRect:function(){return Vs},getIntersectionRect:function(){return Hs},getOffset:function(){return Ks},getRectCenter:function(){return Us},hasVisualOverlap:function(){return Zs},isPointInRect:function(){return Gs},rectHasMinimumSize:function(){return Ys},rectsOverlap:function(){return ds},splitRects:function(){return Js}});var Ws=.05;function Ys(e,t){return e<=t.width+Ws&&e<=t.height+Ws}function Ks(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:12,r=(e=_c(e),_c(t));return e.length&&r.length?e.reduce(function(e,a){var o,i=Us(a),l=Q(r);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(Gs(i,u))return 0;var s=Xs(i,((e,t)=>({x:e.x<t.left?t.left:e.x>t.righ\
t?t.right:e.x,y:t=e.y<t.top?t.top:e.y>t.bottom?t.bottom:e.y}))(i,u));e=Math.min(e,s)}}catch(e){l.e(e)}finally{l.f()}a=Mc(t);return Ys(2*n,a)?e:(a=Xs(i,Us(r.reduce(Vs)))-n,Math.max(0,Math.min(e,a)))},1/0):null}function Xs(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}function Zs(e,t){var n=e.boundingClientRect,r=t.boundingClientRect;return!(n.left>=r.right||n.right<=r.left||n.top>=r.bottom||n.bottom<=r.top)&&0<Fc(e,t)}function Js(e,t){var n,r=Array.isArray(e)?e:[e],a=Q(t);try{var o=function(){var e=n.value;if(4e3<(r=r.reduce(function(t,n){return t.concat(((e,t)=>{var n=e.top,r=e.left,a=e.bottom,o=e.right,i=n<t.bottom&&a>t.top,l=r<t.right&&o>t.left,u=[];if(Qs(t.top,n,a)&&l&&u.push({top:n,left:r,bottom:t.top,right:o}),Qs(t.right,r,o)&&i&&u.push({top:n,left:t.right,bottom:a,right:o}),Qs(t.bottom,n,a)&&l&&u.push({top:t.bottom,right:o,bottom:a,left:r}),Qs(t.left,r,o)&&i&&u.push({top:n,left:r,bottom:a,right:t.left}),0===u.length){if(((e,t)=>e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<\
=t.right)(e,t))return[];u.push(e)}return u.map(ec)})(n,e))},[])).length)throw new Error("splitRects: Too many rects")};for(a.s();!(n=a.n()).done;)o()}catch(e){a.e(e)}finally{a.f()}return r}var Qs=function(e,t,n){return t<e&&e<n};function ec(e){return new t.DOMRect(e.left,e.top,e.right-e.left,e.bottom-e.top)}var tc=0,nc=.1,rc=.2,ac=.3,oc=0;function ic(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:r.body,n=1<arguments.length?arguments[1]:void 0,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Il.get("gridCreated")||a){Il.set("gridCreated",!0),a||(l=(l=Bl(r.documentElement))||new uf(r.documentElement),oc=0,l._stackingOrder=[sc(tc,oc++,null)],cc(n=null!=n?n:new dc,l),qf(l.actualNode)&&(i=new dc(l),l._subGrid=i));for(var i,l,u=r.createTreeWalker(e,t.NodeFilter.SHOW_ELEMENT,null,!1),s=a?u.nextNode():u.currentNode;s;){var c=Bl(s),d=(c&&c.parent?a=c.parent:s.assignedSlot?a=Bl(s.assignedSlot):s.parentElement?a=Bl(s.parentElement):s.parentNode&&Bl(s.parentNode)&\
&(a=Bl(s.parentNode)),(c=c||new o.VirtualNode(s,a))._stackingOrder=((e,t,n)=>{var r=t._stackingOrder.slice(),a=(lc(e,t)&&-1!==(a=r.findIndex(function(e){return e=e.stackLevel,[tc,rc,ac].includes(e)}))&&r.splice(a,r.length-a),((e,t)=>{var n=((e,t)=>"static"!==e.getComputedStylePropertyValue("position")||uc(t)?e.getComputedStylePropertyValue("z-index"):"auto")(e,t);return["auto","0"].includes(n)?"static"!==e.getComputedStylePropertyValue("position")?ac:"none"!==e.getComputedStylePropertyValue("float")?rc:lc(e,t)?nc:null:parseInt(n)})(e,t));return null!==a&&r.push(sc(a,n,e)),r})(c,a,oc++),((e,t)=>{for(var n=null,r=[e];t;){if(qf(t.actualNode)){n=t;break}if(t._scrollRegionParent){n=t._scrollRegionParent;break}r.push(t),t=Bl(t.actualNode.parentElement||t.actualNode.parentNode)}return r.forEach(function(e){return e._scrollRegionParent=n}),n})(c,a)),p=(d=d?d._subGrid:n,qf(c.actualNode)&&(p=new dc(c),c._subGrid=p),c.boundingClientRect);0!==p.width&&0!==p.height&&qs(s)&&cc(d,c),as(s)&&ic(s.shado\
wRoot,d,c),s=u.nextNode()}}return da.gridSize}function lc(e,t){var n=e.getComputedStylePropertyValue("position"),r=e.getComputedStylePropertyValue("z-index");return"fixed"===n||"sticky"===n||"auto"!==r&&"static"!==n||"1"!==e.getComputedStylePropertyValue("opacity")||"none"!==(e.getComputedStylePropertyValue("-webkit-transform")||e.getComputedStylePropertyValue("-ms-transform")||e.getComputedStylePropertyValue("transform")||"none")||(n=e.getComputedStylePropertyValue("mix-blend-mode"))&&"normal"!==n||(n=e.getComputedStylePropertyValue("filter"))&&"none"!==n||(n=e.getComputedStylePropertyValue("perspective"))&&"none"!==n||(n=e.getComputedStylePropertyValue("clip-path"))&&"none"!==n||"none"!==(e.getComputedStylePropertyValue("-webkit-mask")||e.getComputedStylePropertyValue("mask")||"none")||"none"!==(e.getComputedStylePropertyValue("-webkit-mask-image")||e.getComputedStylePropertyValue("mask-image")||"none")||"none"!==(e.getComputedStylePropertyValue("-webkit-mask-border")||e.getComputedS\
tylePropertyValue("mask-border")||"none")||"isolate"===e.getComputedStylePropertyValue("isolation")||"transform"===(n=e.getComputedStylePropertyValue("will-change"))||"opacity"===n||"touch"===e.getComputedStylePropertyValue("-webkit-overflow-scrolling")||(n=e.getComputedStylePropertyValue("contain"),["layout","paint","strict","content"].includes(n))||!("auto"===r||!uc(t))}function uc(e){if(e)return e=e.getComputedStylePropertyValue("display"),["flex","inline-flex","grid","inline-grid"].includes(e)}function sc(e,t,n){return{stackLevel:e,treeOrder:t,vNode:n}}function cc(e,t){var n=fs(t);t.clientRects.forEach(function(r){r=n.reduce(function(e,t){return e&&Hs(e,t.boundingClientRect)},r);r&&(null==t._grid&&(t._grid=e),r=e.getGridPositionOfRect(r),e.loopGridPosition(r,function(e){e.includes(t)||e.push(t)}))})}var dc=Z(function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;K(this,e),this.container=t,this.cells=[]},[{key:"toGridIndex",value:function(e){return Math.floor\
(e/da.gridSize)}},{key:"getCellFromPoint",value:function(e){var t=e.x;e=e.y,Ra(this.boundaries,"Grid does not have cells added"),e=this.toGridIndex(e),t=this.toGridIndex(t);return null!=(t=(e=(Ra(Gs({y:e,x:t},this.boundaries),"Element midpoint exceeds the grid bounds"),null!=(e=this.cells[e-this.cells._negativeIndex])?e:[]))[t-e._negativeIndex])?t:[]}},{key:"loopGridPosition",value:function(e,t){var n=(o=e).left,r=o.right,a=o.top,o=o.bottom;this.boundaries&&(e=Vs(this.boundaries,e)),this.boundaries=e,pc(this.cells,a,o,function(e,a){pc(e,n,r,function(e,n){t(e,{row:a,col:n})})})}},{key:"getGridPositionOfRect",value:function(e){var n=e.top,r=e.right,a=e.bottom,o=(e=e.left,1<arguments.length&&void 0!==arguments[1]?arguments[1]:0);n=this.toGridIndex(n-o),r=this.toGridIndex(r+o-1),a=this.toGridIndex(a+o-1),e=this.toGridIndex(e-o);return new t.DOMRect(e,n,r-e,a-n)}}]);function pc(e,t,n,r){if(null!=e._negativeIndex||(e._negativeIndex=0),t<e._negativeIndex){for(var a=0;a<e._negativeIndex-t;a++)\
e.splice(0,0,[]);e._negativeIndex=t}for(var o,i=n-e._negativeIndex,l=t-e._negativeIndex;l<=i;l++)null==e[o=l]&&(e[o]=[]),r(e[l],l+e._negativeIndex)}function fc(e){return ic(),um(e).vNode._grid}function mc(e){var t,n,r,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,o=fc(e);return null!=o&&null!=(n=o.cells)&&n.length?(n=e.boundingClientRect,t=Ps(e),n=o.getGridPositionOfRect(n,a),r=[],o.loopGridPosition(n,function(n){var a,o=Q(n);try{for(o.s();!(a=o.n()).done;){var i=a.value;i&&i!==e&&!r.includes(i)&&t===Ps(i)&&r.push(i)}}catch(n){o.e(n)}finally{o.f()}}),r):[]}var hc=hl(function(){var e;return o._tree&&(e=wm(o._tree[0],"dialog[open]",function(e){var t=e.boundingClientRect;return r.elementsFromPoint(t.left+1,t.top+1).includes(e.actualNode)&&qs(e)})).length?e.find(function(e){var t=e.boundingClientRect;return r.elementsFromPoint(t.left-10,t.top-10).includes(e.actualNode)})||(null!=(e=e.find(function(e){e=null!=(e=(e=>{ic();var n=o._tree[0]._grid,r=new t.DOMRect(0,0,t.innerWidth,\
t.innerHeight);if(n)for(var a=0;a<n.cells.length;a++){var i=n.cells[a];if(i)for(var l=0;l<i.length;l++){var u=i[l];if(u)for(var s=0;s<u.length;s++){var c=u[s],d=Hs(c.boundingClientRect,r);if("html"!==c.props.nodeName&&c!==e&&"none"!==c.getComputedStylePropertyValue("pointer-events")&&d)return{vNode:c,rect:d}}}}})(e))?e:{};var n=e.vNode;e=e.rect;return!!n&&!r.elementsFromPoint(e.left+1,e.top+1).includes(n.actualNode)}))?e:null):null});function gc(e){var t=(n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).skipAncestors,n=n.isAncestor;return(t?vc:bc)(e,n)}var vc=hl(function(e,t){return!!e.hasAttr("inert")||!(t||!e.actualNode||!(t=hc())||Ku(t,e))}),bc=hl(function(e,t){return!!vc(e,t)||!!e.parent&&bc(e.parent,!0)}),yc=["button","command","fieldset","keygen","optgroup","option","select","textarea","input"],wc=function(e){var t=um(e).vNode;if(e=t.props.nodeName,yc.includes(e)&&t.hasAttr("disabled")||gc(t))return!0;for(var n=t.parent,r=[],a=!1;n&&n.shadowId===t.shadowId&&!a&&(r.pus\
h(n),"legend"!==n.props.nodeName);){if(void 0!==n._inDisabledFieldset){a=n._inDisabledFieldset;break}"fieldset"===n.props.nodeName&&n.hasAttr("disabled")&&(a=!0),n=n.parent}return r.forEach(function(e){return e._inDisabledFieldset=a}),!!a||"area"!==t.props.nodeName&&!!t.actualNode&&Rs(t)},Dc=/^\\/\\#/,xc=/^#[!/]/;function Ec(e){var n,r,a,o,i=e.getAttribute("href");return!(!i||"#"===i)&&(!!Dc.test(i)||(o=e.hash,n=e.protocol,r=e.hostname,a=e.port,e=e.pathname,!xc.test(o)&&("#"===i.charAt(0)||("string"!=typeof(null==(o=t.location)?void 0:o.origin)||-1===t.location.origin.indexOf("://")?null:(i=t.location.origin+t.location.pathname,o=r?"".concat(n,"//").concat(r).concat(a?":".concat(a):""):t.location.origin,(o+=e?("/"!==e[0]?"/":"")+e:t.location.pathname)===i)))))}var Ac=function(e,t){var n=e.getAttribute(t);return n&&("href"!==t||Ec(e))?(-1!==n.indexOf("#")&&(n=decodeURIComponent(n.substr(n.indexOf("#")+1))),(t=r.getElementById(n))||((t=r.getElementsByName(n)).length?t[0]:null)):null};funct\
ion Fc(e,n){ic();for(var r=Math.max(e._stackingOrder.length,n._stackingOrder.length),a=0;a<r;a++){if(void 0===n._stackingOrder[a])return-1;if(void 0===e._stackingOrder[a])return 1;if(n._stackingOrder[a].stackLevel>e._stackingOrder[a].stackLevel)return 1;if(n._stackingOrder[a].stackLevel<e._stackingOrder[a].stackLevel)return-1;if(n._stackingOrder[a].treeOrder!==e._stackingOrder[a].treeOrder)return n._stackingOrder[a].treeOrder-e._stackingOrder[a].treeOrder}var o=e.actualNode,i=n.actualNode;if(o.getRootNode&&o.getRootNode()!==i.getRootNode()){for(var l=[];o;)l.push({root:o.getRootNode(),node:o}),o=o.getRootNode().host;for(;i&&!l.find(function(e){return e.root===i.getRootNode()});)i=i.getRootNode().host;if((o=l.find(function(e){return e.root===i.getRootNode()}).node)===i)return e.actualNode.getRootNode()!==o.getRootNode()?-1:1}var u,s=(d=t.Node).DOCUMENT_POSITION_FOLLOWING,c=d.DOCUMENT_POSITION_CONTAINS,d=d.DOCUMENT_POSITION_CONTAINED_BY;s=(u=o.compareDocumentPosition(i))&s?1:-1,c=u&c||u&\
d;return(u=Cc(e))===(d=Cc(n))||c?s:d-u}function Cc(e){return-1!==e.getComputedStylePropertyValue("display").indexOf("inline")?2:function e(t){if(!t)return!1;if(void 0!==t._isFloated)return t._isFloated;var n=t.getComputedStylePropertyValue("float");return"none"!==n?t._isFloated=!0:(n=e(t.parent),t._isFloated=n,n)}(e)?1:0}function kc(e,t,n){n=2<arguments.length&&void 0!==n&&n,t=Us(t);var a=e.getCellFromPoint(t)||[],o=Math.floor(t.x),i=Math.floor(t.y);t=a.filter(function(e){return e.clientRects.some(function(e){var t=e.left,n=e.top;return o<Math.floor(t+e.width)&&o>=Math.floor(t)&&i<Math.floor(n+e.height)&&i>=Math.floor(n)})});return(a=e.container)&&(t=kc(a._grid,a.boundingClientRect,!0).concat(t)),n?t:t.sort(Fc).map(function(e){return e.actualNode}).concat(r.documentElement).filter(function(e,t,n){return n.indexOf(e)===t})}var Rc=function(e){var t=fc(e);return t?kc(t,Bl(e).boundingClientRect):[]},Nc=function(e){return Tm(e,"*").filter(function(e){var t=e.isFocusable;return null!==(e=mm(\
e.actualNode.getAttribute("tabindex")))?t&&0<=e:t})},Tc=function(e){var t=um(e).vNode;if(t&&!wc(t))switch(t.props.nodeName){case"a":case"area":if(t.hasAttr("href"))return!0;break;case"input":return"hidden"!==t.props.type;case"textarea":case"select":case"summary":case"button":return!0;case"details":return!Tm(t,"summary").length}return!1};function Oc(e){return 1===(e=um(e).vNode).props.nodeType&&!(wc(e)||!Tc(e)&&null===mm(e.attr("tabindex")))}function Sc(e){return 1===(e=um(e).vNode).props.nodeType&&!(mm(e.attr("tabindex"))<=-1)&&Oc(e)}var _c=hl(function(e){var t="inline"===e.getComputedStylePropertyValue("display")?e.clientRects:[e.boundingClientRect],n=mc(e).filter(function(t){return Zs(e,t)&&"none"!==t.getComputedStylePropertyValue("pointer-events")&&!(Ku(e,t)&&!Sc(t))});return n.length?(n=n.map(function(e){return"inline"===e.getComputedStylePropertyValue("display")?e.clientRects:e.boundingClientRect}).flat(1/0),Js(t,n)):t}),Mc=hl(function(e,t){return((e,t)=>e.reduce(function(e,n){var\
 r=Ys(t,e);return r!==Ys(t,n)?r?e:n:(r=e.width*e.height,n.width*n.height<r?e:n)}))(_c(e),t)}),Pc={},Ic=(me(Pc,{accessibleText:function(){return Bc},accessibleTextVirtual:function(){return tp},autocomplete:function(){return op},formControlValue:function(){return Ud},formControlValueMethods:function(){return $d},hasUnicode:function(){return Sd},isHumanInterpretable:function(){return ap},isIconLigature:function(){return _d},isValidAutocomplete:function(){return ip},label:function(){return cp},labelText:function(){return Kd},labelVirtual:function(){return sp},nativeElementType:function(){return dp},nativeTextAlternative:function(){return ep},nativeTextMethods:function(){return Qd},removeUnicode:function(){return rp},sanitize:function(){return rd},subtreeText:function(){return Yd},titleText:function(){return Cd},unsupported:function(){return Nd},visible:function(){return up},visibleTextNodes:function(){return pp},visibleVirtual:function(){return Md}}),function(e,t){e=e.actualNode||e;try{var\
 n=ls(e),r=[];if(a=e.getAttribute(t))for(var a=sf(a),o=0;o<a.length;o++)r.push(n.getElementById(a[o]));return r}catch(e){throw new TypeError("Cannot resolve id references for non-DOM nodes")}}),Bc=function(e,t){return tp(Bl(e),t)},jc=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=um(e).vNode;return 1!==(null==n?void 0:n.props.nodeType)||1!==n.props.nodeType||t.inLabelledByContext||t.inControlContext||!n.attr("aria-labelledby")?"":Ic(n,"aria-labelledby").filter(function(e){return e}).reduce(function(e,r){return r=Bc(r,B({inLabelledByContext:!0,startNode:t.startNode||n},t)),e?"".concat(e," ").concat(r):r},"")};function Lc(e){return 1===(null==(e=um(e).vNode)?void 0:e.props.nodeType)&&e.attr("aria-label")||""}var qc={"aria-activedescendant":{type:"idref",allowEmpty:!0},"aria-atomic":{type:"boolean",global:!0},"aria-autocomplete":{type:"nmtoken",values:["inline","list","both","none"]},"aria-braillelabel":{type:"string",allowEmpty:!0,global:!0},"aria-braillero\
ledescription":{type:"string",allowEmpty:!0,global:!0},"aria-busy":{type:"boolean",global:!0},"aria-checked":{type:"nmtoken",values:["false","mixed","true","undefined"]},"aria-colcount":{type:"int",minValue:-1},"aria-colindex":{type:"int",minValue:1},"aria-colspan":{type:"int",minValue:1},"aria-controls":{type:"idrefs",allowEmpty:!0,global:!0},"aria-current":{type:"nmtoken",allowEmpty:!0,values:["page","step","location","date","time","true","false"],global:!0},"aria-describedby":{type:"idrefs",allowEmpty:!0,global:!0},"aria-description":{type:"string",allowEmpty:!0,global:!0},"aria-details":{type:"idref",allowEmpty:!0,global:!0},"aria-disabled":{type:"boolean",global:!0},"aria-dropeffect":{type:"nmtokens",values:["copy","execute","link","move","none","popup"],global:!0},"aria-errormessage":{type:"idref",allowEmpty:!0,global:!0},"aria-expanded":{type:"nmtoken",values:["true","false","undefined"]},"aria-flowto":{type:"idrefs",allowEmpty:!0,global:!0},"aria-grabbed":{type:"nmtoken",values\
:["true","false","undefined"],global:!0},"aria-haspopup":{type:"nmtoken",allowEmpty:!0,values:["true","false","menu","listbox","tree","grid","dialog"],global:!0},"aria-hidden":{type:"nmtoken",values:["true","false","undefined"],global:!0},"aria-invalid":{type:"nmtoken",values:["grammar","false","spelling","true"],global:!0},"aria-keyshortcuts":{type:"string",allowEmpty:!0,global:!0},"aria-label":{type:"string",allowEmpty:!0,global:!0},"aria-labelledby":{type:"idrefs",allowEmpty:!0,global:!0},"aria-level":{type:"int",minValue:1},"aria-live":{type:"nmtoken",values:["assertive","off","polite"],global:!0},"aria-modal":{type:"boolean"},"aria-multiline":{type:"boolean"},"aria-multiselectable":{type:"boolean"},"aria-orientation":{type:"nmtoken",values:["horizontal","undefined","vertical"]},"aria-owns":{type:"idrefs",allowEmpty:!0,global:!0},"aria-placeholder":{type:"string",allowEmpty:!0},"aria-posinset":{type:"int",minValue:1},"aria-pressed":{type:"nmtoken",values:["false","mixed","true","un\
defined"]},"aria-readonly":{type:"boolean"},"aria-relevant":{type:"nmtokens",values:["additions","all","removals","text"],global:!0},"aria-required":{type:"boolean"},"aria-roledescription":{type:"string",allowEmpty:!0,global:!0},"aria-rowcount":{type:"int",minValue:-1},"aria-rowindex":{type:"int",minValue:1},"aria-rowspan":{type:"int",minValue:0},"aria-selected":{type:"nmtoken",values:["false","true","undefined"]},"aria-setsize":{type:"int",minValue:-1},"aria-sort":{type:"nmtoken",values:["ascending","descending","none","other"]},"aria-valuemax":{type:"decimal"},"aria-valuemin":{type:"decimal"},"aria-valuenow":{type:"decimal"},"aria-valuetext":{type:"string",allowEmpty:!0}},zc={alert:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},alertdialog:{type:"window",allowedAttrs:["aria-expanded","aria-modal"],superclassRole:["alert","dialog"],accessibleNameRequired:!0},application:{type:"landmark",allowedAttrs:["aria-activedescendant","aria-expanded"],superclassRole\
:["structure"],accessibleNameRequired:!0},article:{type:"structure",allowedAttrs:["aria-posinset","aria-setsize","aria-expanded"],superclassRole:["document"]},banner:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},blockquote:{type:"structure",superclassRole:["section"]},button:{type:"widget",allowedAttrs:["aria-expanded","aria-pressed"],superclassRole:["command"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},caption:{type:"structure",requiredContext:["figure","table","grid","treegrid"],superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},cell:{type:"structure",requiredContext:["row"],allowedAttrs:["aria-colindex","aria-colspan","aria-rowindex","aria-rowspan","aria-expanded"],superclassRole:["section"],nameFromContent:!0},checkbox:{type:"widget",requiredAttrs:["aria-checked"],allowedAttrs:["aria-readonly","aria-expanded","aria-required"],superclassRole:["input"],accessibleNameRequired:!0,nameFromContent:!0,ch\
ildrenPresentational:!0},code:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},columnheader:{type:"structure",requiredContext:["row"],allowedAttrs:["aria-sort","aria-colindex","aria-colspan","aria-expanded","aria-readonly","aria-required","aria-rowindex","aria-rowspan","aria-selected"],superclassRole:["cell","gridcell","sectionhead"],accessibleNameRequired:!1,nameFromContent:!0},combobox:{type:"widget",requiredAttrs:["aria-expanded","aria-controls"],allowedAttrs:["aria-owns","aria-autocomplete","aria-readonly","aria-required","aria-activedescendant","aria-orientation"],superclassRole:["select"],accessibleNameRequired:!0},command:{type:"abstract",superclassRole:["widget"]},complementary:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},composite:{type:"abstract",superclassRole:["widget"]},contentinfo:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},comment:{type:"structure",allowedAttrs:\
["aria-level","aria-posinset","aria-setsize"],superclassRole:["article"]},definition:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},deletion:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},dialog:{type:"window",allowedAttrs:["aria-expanded","aria-modal"],superclassRole:["window"],accessibleNameRequired:!0},directory:{type:"structure",deprecated:!0,allowedAttrs:["aria-expanded"],superclassRole:["list"],nameFromContent:!0},document:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["structure"]},emphasis:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},feed:{type:"structure",requiredOwned:["article"],allowedAttrs:["aria-expanded"],superclassRole:["list"]},figure:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],nameFromContent:!0},form:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},grid:{type:"comp\
osite",requiredOwned:["rowgroup","row"],allowedAttrs:["aria-level","aria-multiselectable","aria-readonly","aria-activedescendant","aria-colcount","aria-expanded","aria-rowcount"],superclassRole:["composite","table"],accessibleNameRequired:!1},gridcell:{type:"widget",requiredContext:["row"],allowedAttrs:["aria-readonly","aria-required","aria-selected","aria-colindex","aria-colspan","aria-expanded","aria-rowindex","aria-rowspan"],superclassRole:["cell","widget"],nameFromContent:!0},group:{type:"structure",allowedAttrs:["aria-activedescendant","aria-expanded"],superclassRole:["section"]},heading:{type:"structure",requiredAttrs:["aria-level"],allowedAttrs:["aria-expanded"],superclassRole:["sectionhead"],accessibleNameRequired:!1,nameFromContent:!0},img:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],accessibleNameRequired:!0,childrenPresentational:!0},input:{type:"abstract",superclassRole:["widget"]},insertion:{type:"structure",superclassRole:["section"],prohibi\
tedAttrs:["aria-label","aria-labelledby"]},landmark:{type:"abstract",superclassRole:["section"]},link:{type:"widget",allowedAttrs:["aria-expanded"],superclassRole:["command"],accessibleNameRequired:!0,nameFromContent:!0},list:{type:"structure",requiredOwned:["listitem"],allowedAttrs:["aria-expanded"],superclassRole:["section"]},listbox:{type:"widget",requiredOwned:["group","option"],allowedAttrs:["aria-multiselectable","aria-readonly","aria-required","aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["select"],accessibleNameRequired:!0},listitem:{type:"structure",requiredContext:["list"],allowedAttrs:["aria-level","aria-posinset","aria-setsize","aria-expanded"],superclassRole:["section"],nameFromContent:!0},log:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},main:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},marquee:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},math:{type\
:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],childrenPresentational:!0},menu:{type:"composite",requiredOwned:["group","menuitemradio","menuitem","menuitemcheckbox","menu","separator"],allowedAttrs:["aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["select"]},menubar:{type:"composite",requiredOwned:["group","menuitemradio","menuitem","menuitemcheckbox","menu","separator"],allowedAttrs:["aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["menu"]},menuitem:{type:"widget",requiredContext:["menu","menubar","group"],allowedAttrs:["aria-posinset","aria-setsize","aria-expanded"],superclassRole:["command"],accessibleNameRequired:!0,nameFromContent:!0},menuitemcheckbox:{type:"widget",requiredContext:["menu","menubar","group"],requiredAttrs:["aria-checked"],allowedAttrs:["aria-expanded","aria-posinset","aria-readonly","aria-setsize"],superclassRole:["checkbox","menuitem"],accessibleNameRequired:!0,nameFromContent:!0,child\
renPresentational:!0},menuitemradio:{type:"widget",requiredContext:["menu","menubar","group"],requiredAttrs:["aria-checked"],allowedAttrs:["aria-expanded","aria-posinset","aria-readonly","aria-setsize"],superclassRole:["menuitemcheckbox","radio"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},meter:{type:"structure",requiredAttrs:["aria-valuenow"],allowedAttrs:["aria-valuemax","aria-valuemin","aria-valuetext"],superclassRole:["range"],accessibleNameRequired:!0,childrenPresentational:!0},mark:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},navigation:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},none:{type:"structure",superclassRole:["structure"],prohibitedAttrs:["aria-label","aria-labelledby"]},note:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},option:{type:"widget",requiredContext:["group","listbox"],allowedAttrs:["aria-selected","aria-checked","aria-po\
sinset","aria-setsize"],superclassRole:["input"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},paragraph:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},presentation:{type:"structure",superclassRole:["structure"],prohibitedAttrs:["aria-label","aria-labelledby"]},progressbar:{type:"widget",allowedAttrs:["aria-expanded","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],superclassRole:["range"],accessibleNameRequired:!0,childrenPresentational:!0},radio:{type:"widget",requiredAttrs:["aria-checked"],allowedAttrs:["aria-posinset","aria-setsize","aria-required"],superclassRole:["input"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0},radiogroup:{type:"composite",allowedAttrs:["aria-readonly","aria-required","aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["select"],accessibleNameRequired:!1},range:{type:"abstract",superclassRole:["widget"]},region:{type:"\
landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"],accessibleNameRequired:!1},roletype:{type:"abstract",superclassRole:[]},row:{type:"structure",requiredContext:["grid","rowgroup","table","treegrid"],requiredOwned:["cell","columnheader","gridcell","rowheader"],allowedAttrs:["aria-colindex","aria-level","aria-rowindex","aria-selected","aria-activedescendant","aria-expanded","aria-posinset","aria-setsize"],superclassRole:["group","widget"],nameFromContent:!0},rowgroup:{type:"structure",requiredContext:["grid","table","treegrid"],requiredOwned:["row"],superclassRole:["structure"],nameFromContent:!0},rowheader:{type:"structure",requiredContext:["row"],allowedAttrs:["aria-sort","aria-colindex","aria-colspan","aria-expanded","aria-readonly","aria-required","aria-rowindex","aria-rowspan","aria-selected"],superclassRole:["cell","gridcell","sectionhead"],accessibleNameRequired:!1,nameFromContent:!0},scrollbar:{type:"widget",requiredAttrs:["aria-valuenow"],allowedAttrs:["aria-c\
ontrols","aria-orientation","aria-valuemax","aria-valuemin","aria-valuetext"],superclassRole:["range"],childrenPresentational:!0},search:{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},searchbox:{type:"widget",allowedAttrs:["aria-activedescendant","aria-autocomplete","aria-multiline","aria-placeholder","aria-readonly","aria-required"],superclassRole:["textbox"],accessibleNameRequired:!0},section:{type:"abstract",superclassRole:["structure"],nameFromContent:!0},sectionhead:{type:"abstract",superclassRole:["structure"],nameFromContent:!0},select:{type:"abstract",superclassRole:["composite","group"]},separator:{type:"structure",requiredAttrs:["aria-valuenow"],allowedAttrs:["aria-valuemax","aria-valuemin","aria-orientation","aria-valuetext"],superclassRole:["structure","widget"],childrenPresentational:!0},slider:{type:"widget",requiredAttrs:["aria-valuenow"],allowedAttrs:["aria-valuemax","aria-valuemin","aria-orientation","aria-readonly","aria-required","aria-v\
aluetext"],superclassRole:["input","range"],accessibleNameRequired:!0,childrenPresentational:!0},spinbutton:{type:"widget",allowedAttrs:["aria-valuemax","aria-valuemin","aria-readonly","aria-required","aria-activedescendant","aria-valuetext","aria-valuenow"],superclassRole:["composite","input","range"],accessibleNameRequired:!0},status:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"]},strong:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},structure:{type:"abstract",superclassRole:["roletype"]},subscript:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},superscript:{type:"structure",superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},switch:{type:"widget",requiredAttrs:["aria-checked"],allowedAttrs:["aria-expanded","aria-readonly","aria-required"],superclassRole:["checkbox"],accessibleNameRequired:!0,nameFromContent:!0,childrenPresentational:!0}\
,suggestion:{type:"structure",requiredOwned:["insertion","deletion"],superclassRole:["section"],prohibitedAttrs:["aria-label","aria-labelledby"]},tab:{type:"widget",requiredContext:["tablist"],allowedAttrs:["aria-posinset","aria-selected","aria-setsize","aria-expanded"],superclassRole:["sectionhead","widget"],nameFromContent:!0,childrenPresentational:!0},table:{type:"structure",requiredOwned:["rowgroup","row"],allowedAttrs:["aria-colcount","aria-rowcount","aria-expanded"],superclassRole:["section"],accessibleNameRequired:!1,nameFromContent:!0},tablist:{type:"composite",requiredOwned:["tab"],allowedAttrs:["aria-level","aria-multiselectable","aria-orientation","aria-activedescendant","aria-expanded"],superclassRole:["composite"]},tabpanel:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],accessibleNameRequired:!1},term:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],nameFromContent:!0},text:{type:"structure",superclassRole:["section"]\
,nameFromContent:!0},textbox:{type:"widget",allowedAttrs:["aria-activedescendant","aria-autocomplete","aria-multiline","aria-placeholder","aria-readonly","aria-required"],superclassRole:["input"],accessibleNameRequired:!0},time:{type:"structure",superclassRole:["section"]},timer:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["status"]},toolbar:{type:"structure",allowedAttrs:["aria-orientation","aria-activedescendant","aria-expanded"],superclassRole:["group"],accessibleNameRequired:!0},tooltip:{type:"structure",allowedAttrs:["aria-expanded"],superclassRole:["section"],nameFromContent:!0},tree:{type:"composite",requiredOwned:["group","treeitem"],allowedAttrs:["aria-multiselectable","aria-required","aria-activedescendant","aria-expanded","aria-orientation"],superclassRole:["select"],accessibleNameRequired:!1},treegrid:{type:"composite",requiredOwned:["rowgroup","row"],allowedAttrs:["aria-activedescendant","aria-colcount","aria-expanded","aria-level","aria-multiselectable\
","aria-orientation","aria-readonly","aria-required","aria-rowcount"],superclassRole:["grid","tree"],accessibleNameRequired:!1},treeitem:{type:"widget",requiredContext:["group","tree"],allowedAttrs:["aria-checked","aria-expanded","aria-level","aria-posinset","aria-selected","aria-setsize"],superclassRole:["listitem","option"],accessibleNameRequired:!0,nameFromContent:!0},widget:{type:"abstract",superclassRole:["roletype"]},window:{type:"abstract",superclassRole:["roletype"]}},Vc=(_n={a:{variant:{href:{matches:"[href]",contentTypes:["interactive","phrasing","flow"],allowedRoles:["button","checkbox","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab","treeitem","doc-backlink","doc-biblioref","doc-glossref","doc-noteref"],namingMethods:["subtreeText"]},default:{contentTypes:["phrasing","flow"],allowedRoles:!0}}},abbr:{contentTypes:["phrasing","flow"],allowedRoles:!0},address:{contentTypes:["flow"],allowedRoles:!0},area:{variant:{href:{matches:"[href]",allowedRole\
s:!1},default:{allowedRoles:["button","link"]}},contentTypes:["phrasing","flow"],namingMethods:["altText"]},article:{contentTypes:["sectioning","flow"],allowedRoles:["feed","presentation","none","document","application","main","region"],shadowRoot:!0},aside:{contentTypes:["sectioning","flow"],allowedRoles:["feed","note","presentation","none","region","search","doc-dedication","doc-example","doc-footnote","doc-glossary","doc-pullquote","doc-tip"]},audio:{variant:{controls:{matches:"[controls]",contentTypes:["interactive","embedded","phrasing","flow"]},default:{contentTypes:["embedded","phrasing","flow"]}},allowedRoles:["application"],chromiumRole:"Audio"},b:{contentTypes:["phrasing","flow"],allowedRoles:!0},base:{allowedRoles:!1,noAriaAttrs:!0},bdi:{contentTypes:["phrasing","flow"],allowedRoles:!0},bdo:{contentTypes:["phrasing","flow"],allowedRoles:!0},blockquote:{contentTypes:["flow"],allowedRoles:!0,shadowRoot:!0},body:{allowedRoles:!1,shadowRoot:!0},br:{contentTypes:["phrasing","flow\
"],allowedRoles:["presentation","none"],namingMethods:["titleText","singleSpace"],allowedAriaAttrs:["aria-hidden"]},button:{contentTypes:["interactive","phrasing","flow"],allowedRoles:["checkbox","combobox","gridcell","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","separator","slider","switch","tab","treeitem"],namingMethods:["subtreeText"]},canvas:{allowedRoles:!0,contentTypes:["embedded","phrasing","flow"],chromiumRole:"Canvas"},caption:{allowedRoles:!1},cite:{contentTypes:["phrasing","flow"],allowedRoles:!0},code:{contentTypes:["phrasing","flow"],allowedRoles:!0},col:{allowedRoles:!1,noAriaAttrs:!0},colgroup:{allowedRoles:!1,noAriaAttrs:!0},data:{contentTypes:["phrasing","flow"],allowedRoles:!0},datalist:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0,implicitAttrs:{"aria-multiselectable":"false"}},dd:{allowedRoles:!1},del:{contentTypes:["phrasing","flow"],allowedRoles:!0},dfn:{contentTypes:["phrasing","flow"],allowedRoles:!0},details:{content\
Types:["interactive","flow"],allowedRoles:!1},dialog:{contentTypes:["flow"],allowedRoles:["alertdialog"]},div:{contentTypes:["flow"],allowedRoles:!0,shadowRoot:!0},dl:{contentTypes:["flow"],allowedRoles:["group","list","presentation","none"],chromiumRole:"DescriptionList"},dt:{allowedRoles:["listitem"]},em:{contentTypes:["phrasing","flow"],allowedRoles:!0},embed:{contentTypes:["interactive","embedded","phrasing","flow"],allowedRoles:["application","document","img","presentation","none"],chromiumRole:"EmbeddedObject"},fieldset:{contentTypes:["flow"],allowedRoles:["none","presentation","radiogroup"],namingMethods:["fieldsetLegendText"]},figcaption:{allowedRoles:["group","none","presentation"]},figure:{contentTypes:["flow"],allowedRoles:!0,namingMethods:["figureText","titleText"]},footer:{contentTypes:["flow"],allowedRoles:["group","none","presentation","doc-footnote"],shadowRoot:!0},form:{contentTypes:["flow"],allowedRoles:["form","search","none","presentation"]},h1:{contentTypes:["headi\
ng","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"1"}},h2:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"2"}},h3:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"3"}},h4:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"4"}},h5:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"5"}},h6:{contentTypes:["heading","flow"],allowedRoles:["none","presentation","tab","doc-subtitle"],shadowRoot:!0,implicitAttrs:{"aria-level":"6"}},head:{allowedRoles:!1,noAriaAttrs:!0},header:{contentTypes:["flow"],allowedRoles:["group","none","presentation","doc-footnote"],shadowRoot:!0},hgroup:{contentTypes:["headin\
g","flow"],allowedRoles:!0},hr:{contentTypes:["flow"],allowedRoles:["none","presentation","doc-pagebreak"],namingMethods:["titleText","singleSpace"]},html:{allowedRoles:!1,noAriaAttrs:!0},i:{contentTypes:["phrasing","flow"],allowedRoles:!0},iframe:{contentTypes:["interactive","embedded","phrasing","flow"],allowedRoles:["application","document","img","none","presentation"],chromiumRole:"Iframe"},img:{variant:{nonEmptyAlt:{matches:[{attributes:{alt:"/.+/"}},{hasAccessibleName:!0}],allowedRoles:["button","checkbox","link","math","menuitem","menuitemcheckbox","menuitemradio","meter","option","progressbar","radio","scrollbar","separator","slider","switch","tab","treeitem","doc-cover"]},usemap:{matches:"[usemap]",contentTypes:["interactive","embedded","flow"]},default:{allowedRoles:["presentation","none"],contentTypes:["embedded","flow"]}},namingMethods:["altText"]},input:{variant:{button:{matches:{properties:{type:"button"}},allowedRoles:["checkbox","combobox","link","menuitem","menuitemche\
ckbox","menuitemradio","option","radio","switch","tab"]},buttonType:{matches:{properties:{type:["button","submit","reset"]}},namingMethods:["valueText","titleText","buttonDefaultText"]},checkboxPressed:{matches:{properties:{type:"checkbox"},attributes:{"aria-pressed":"/.*/"}},allowedRoles:["button","menuitemcheckbox","option","switch"],implicitAttrs:{"aria-checked":"false"}},checkbox:{matches:{properties:{type:"checkbox"},attributes:{"aria-pressed":null}},allowedRoles:["menuitemcheckbox","option","switch"],implicitAttrs:{"aria-checked":"false"}},noRoles:{matches:{properties:{type:["color","date","datetime-local","file","month","number","password","range","reset","submit","time","week"]}},allowedRoles:!1},hidden:{matches:{properties:{type:"hidden"}},contentTypes:["flow"],allowedRoles:!1,noAriaAttrs:!0},image:{matches:{properties:{type:"image"}},allowedRoles:["link","menuitem","menuitemcheckbox","menuitemradio","radio","switch"],namingMethods:["altText","valueText","labelText","titleText\
","buttonDefaultText"]},radio:{matches:{properties:{type:"radio"}},allowedRoles:["menuitemradio"],implicitAttrs:{"aria-checked":"false"}},textWithList:{matches:{properties:{type:"text"},attributes:{list:"/.*/"}},allowedRoles:!1},default:{contentTypes:["interactive","flow"],allowedRoles:["combobox","searchbox","spinbutton"],implicitAttrs:{"aria-valuenow":""},namingMethods:["labelText","placeholderText"]}}},ins:{contentTypes:["phrasing","flow"],allowedRoles:!0},kbd:{contentTypes:["phrasing","flow"],allowedRoles:!0},label:{contentTypes:["interactive","phrasing","flow"],allowedRoles:!1,chromiumRole:"Label"},legend:{allowedRoles:!1},li:{allowedRoles:["menuitem","menuitemcheckbox","menuitemradio","option","none","presentation","radio","separator","tab","treeitem","doc-biblioentry","doc-endnote"],implicitAttrs:{"aria-setsize":"1","aria-posinset":"1"}},link:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},main:{contentTypes:["flow"],allowedRoles:!1,shadowRoot:!0},map:{contentT\
ypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},math:{contentTypes:["embedded","phrasing","flow"],allowedRoles:!1},mark:{contentTypes:["phrasing","flow"],allowedRoles:!0},menu:{contentTypes:["flow"],allowedRoles:["directory","group","listbox","menu","menubar","none","presentation","radiogroup","tablist","toolbar","tree"]},meta:{variant:{itemprop:{matches:"[itemprop]",contentTypes:["phrasing","flow"]}},allowedRoles:!1,noAriaAttrs:!0},meter:{contentTypes:["phrasing","flow"],allowedRoles:!1,chromiumRole:"progressbar"},nav:{contentTypes:["sectioning","flow"],allowedRoles:["doc-index","doc-pagelist","doc-toc","menu","menubar","none","presentation","tablist"],shadowRoot:!0},noscript:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},object:{variant:{usemap:{matches:"[usemap]",contentTypes:["interactive","embedded","phrasing","flow"]},default:{contentTypes:["embedded","phrasing","flow"]}},allowedRoles:["application","document","img"],chromiumRole:"PluginObject"},ol:{co\
ntentTypes:["flow"],allowedRoles:["directory","group","listbox","menu","menubar","none","presentation","radiogroup","tablist","toolbar","tree"]},optgroup:{allowedRoles:!1},option:{allowedRoles:!1,implicitAttrs:{"aria-selected":"false"}},output:{contentTypes:["phrasing","flow"],allowedRoles:!0,namingMethods:["subtreeText"]},p:{contentTypes:["flow"],allowedRoles:!0,shadowRoot:!0},param:{allowedRoles:!1,noAriaAttrs:!0},picture:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},pre:{contentTypes:["flow"],allowedRoles:!0},progress:{contentTypes:["phrasing","flow"],allowedRoles:!1,implicitAttrs:{"aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":"0"}},q:{contentTypes:["phrasing","flow"],allowedRoles:!0},rp:{allowedRoles:!0},rt:{allowedRoles:!0},ruby:{contentTypes:["phrasing","flow"],allowedRoles:!0},s:{contentTypes:["phrasing","flow"],allowedRoles:!0},samp:{contentTypes:["phrasing","flow"],allowedRoles:!0},script:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaA\
ttrs:!0},search:{contentTypes:["flow"],allowedRoles:["form","group","none","presentation","region","search"]},section:{contentTypes:["sectioning","flow"],allowedRoles:["alert","alertdialog","application","banner","complementary","contentinfo","dialog","document","feed","group","log","main","marquee","navigation","none","note","presentation","search","status","tabpanel","doc-abstract","doc-acknowledgments","doc-afterword","doc-appendix","doc-bibliography","doc-chapter","doc-colophon","doc-conclusion","doc-credit","doc-credits","doc-dedication","doc-endnotes","doc-epigraph","doc-epilogue","doc-errata","doc-example","doc-foreword","doc-glossary","doc-index","doc-introduction","doc-notice","doc-pagelist","doc-part","doc-preface","doc-prologue","doc-pullquote","doc-qna","doc-toc"],shadowRoot:!0},select:{variant:{combobox:{matches:{attributes:{multiple:null,size:[null,"1"]}},allowedRoles:["menu"]},default:{allowedRoles:!1}},contentTypes:["interactive","phrasing","flow"],implicitAttrs:{"aria-\
valuenow":""},namingMethods:["labelText"]},slot:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},small:{contentTypes:["phrasing","flow"],allowedRoles:!0},source:{allowedRoles:!1,noAriaAttrs:!0},span:{contentTypes:["phrasing","flow"],allowedRoles:!0,shadowRoot:!0},strong:{contentTypes:["phrasing","flow"],allowedRoles:!0},style:{allowedRoles:!1,noAriaAttrs:!0},svg:{contentTypes:["embedded","phrasing","flow"],allowedRoles:!0,chromiumRole:"SVGRoot",namingMethods:["svgTitleText"]},sub:{contentTypes:["phrasing","flow"],allowedRoles:!0},summary:{allowedRoles:!1,namingMethods:["subtreeText"]},sup:{contentTypes:["phrasing","flow"],allowedRoles:!0},table:{contentTypes:["flow"],allowedRoles:!0,namingMethods:["tableCaptionText","tableSummaryText"]},tbody:{allowedRoles:!0},template:{contentTypes:["phrasing","flow"],allowedRoles:!1,noAriaAttrs:!0},textarea:{contentTypes:["interactive","phrasing","flow"],allowedRoles:!1,implicitAttrs:{"aria-valuenow":"","aria-multiline":"true"},namin\
gMethods:["labelText","placeholderText"]},tfoot:{allowedRoles:!0},thead:{allowedRoles:!0},time:{contentTypes:["phrasing","flow"],allowedRoles:!0},title:{allowedRoles:!1,noAriaAttrs:!0},td:{allowedRoles:!0},th:{allowedRoles:!0},tr:{allowedRoles:!0},track:{allowedRoles:!1,noAriaAttrs:!0},u:{contentTypes:["phrasing","flow"],allowedRoles:!0},ul:{contentTypes:["flow"],allowedRoles:["directory","group","listbox","menu","menubar","none","presentation","radiogroup","tablist","toolbar","tree"]},var:{contentTypes:["phrasing","flow"],allowedRoles:!0},video:{variant:{controls:{matches:"[controls]",contentTypes:["interactive","embedded","phrasing","flow"]},default:{contentTypes:["embedded","phrasing","flow"]}},allowedRoles:["application"],chromiumRole:"video"},wbr:{contentTypes:["phrasing","flow"],allowedRoles:["presentation","none"],allowedAriaAttrs:["aria-hidden"]}},sa={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,\
220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,22\
0,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113]\
,mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgree\
n:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},{ariaAttrs:qc,ariaRoles:B({},zc,{"doc-abstract":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-acknowledgments":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-afterword":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-appendix":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-backlink":{type:"link",allowedAttrs:["aria-expanded"],nameFromContent:!0,superclassRole:["link"]},"doc-biblioentry":{type:"listitem",allowedAttrs:["aria-expanded","aria-level","aria-posinset","aria-setsize"],superclassRole:["listitem"],deprecated:!0},"doc-bibliography":{type:"landmark",allowedAttrs:["aria-expanded"],sup\
erclassRole:["landmark"]},"doc-biblioref":{type:"link",allowedAttrs:["aria-expanded"],nameFromContent:!0,superclassRole:["link"]},"doc-chapter":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-colophon":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-conclusion":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-cover":{type:"img",allowedAttrs:["aria-expanded"],superclassRole:["img"]},"doc-credit":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-credits":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-dedication":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-endnote":{type:"listitem",allowedAttrs:["aria-expanded","aria-level","aria-posinset","aria-setsize"],superclassRole:["listitem"],deprecated:!0},"doc-endnotes":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc\
-epigraph":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-epilogue":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-errata":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-example":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-footnote":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-foreword":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-glossary":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-glossref":{type:"link",allowedAttrs:["aria-expanded"],nameFromContent:!0,superclassRole:["link"]},"doc-index":{type:"navigation",allowedAttrs:["aria-expanded"],superclassRole:["navigation"]},"doc-introduction":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-noteref":{type:"link",allowedAttrs:["aria-expanded"],nameFromContent:!0,\
superclassRole:["link"]},"doc-notice":{type:"note",allowedAttrs:["aria-expanded"],superclassRole:["note"]},"doc-pagebreak":{type:"separator",allowedAttrs:["aria-expanded","aria-orientation"],superclassRole:["separator"],childrenPresentational:!0},"doc-pagelist":{type:"navigation",allowedAttrs:["aria-expanded"],superclassRole:["navigation"]},"doc-part":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-preface":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-prologue":{type:"landmark",allowedAttrs:["aria-expanded"],superclassRole:["landmark"]},"doc-pullquote":{type:"none",superclassRole:["none"]},"doc-qna":{type:"section",allowedAttrs:["aria-expanded"],superclassRole:["section"]},"doc-subtitle":{type:"sectionhead",allowedAttrs:["aria-expanded"],superclassRole:["sectionhead"]},"doc-tip":{type:"note",allowedAttrs:["aria-expanded"],superclassRole:["note"]},"doc-toc":{type:"navigation",allowedAttrs:["aria-expanded"],superclass\
Role:["navigation"]}},{"graphics-document":{type:"structure",superclassRole:["document"],accessibleNameRequired:!0},"graphics-object":{type:"structure",superclassRole:["group"],nameFromContent:!0},"graphics-symbol":{type:"structure",superclassRole:["img"],accessibleNameRequired:!0,childrenPresentational:!0}}),htmlElms:_n,cssColors:sa}),Gc=B({},Vc),$c=Gc,Hc=function(e){return!!(e=$c.ariaRoles[e])&&!!e.unsupported},Uc=function(e){var t=(n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).allowAbstract,n=void 0!==(n=n.flagUnsupported)&&n,r=$c.ariaRoles[e];e=Hc(e);return!(!r||n&&e||!t&&"abstract"===r.type)},Wc=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.fallback,r=t.abstracts,a=t.dpub;return 1===(e=e instanceof ma?e:Bl(e)).props.nodeType&&(t=(e.attr("role")||"").trim().toLowerCase(),(n?sf(t):[t]).find(function(e){return!(!a&&"doc-"===e.substr(0,4))&&Uc(e,{allowAbstract:r})}))||null},Yc=function(e){return Object.keys($c.htmlElms).filter(function(\
t){return(t=$c.htmlElms[t]).contentTypes?t.contentTypes.includes(e):!!t.variant&&!(!t.variant.default||!t.variant.default.contentTypes)&&t.variant.default.contentTypes.includes(e)})},Kc=function(){return Il.get("globalAriaAttrs",function(){return Object.keys($c.ariaAttrs).filter(function(e){return $c.ariaAttrs[e].global})})},Xc=hl(function(e){for(var t=[],n=e.rows,r=0,a=n.length;r<a;r++)for(var o=n[r].cells,i=(t[r]=t[r]||[],0),l=0,u=o.length;l<u;l++)for(var s=0;s<o[l].colSpan;s++){for(var c=o[l].getAttribute("rowspan"),d=0===parseInt(c)||0===o[l].rowspan?n.length:o[l].rowSpan,p=0;p<d;p++){for(t[r+p]=t[r+p]||[];t[r+p][i];)i++;t[r+p][i]=o[l]}i++}return t}),Zc=hl(function(e,t){var n,r;for(t=t||Xc(cs(e,"table")),n=0;n<t.length;n++)if(t[n]&&-1!==(r=t[n].indexOf(e)))return{x:r,y:n}});function Jc(e){var t,n=(e=um(e)).vNode,r=(e=e.domNode,n.attr("scope")),a=Wc(n);if(["td","th"].includes(n.props.nodeName))return"columnheader"===a?"col":"rowheader"===a?"row":"col"===r||"row"===r?r:"th"===n.props\
.nodeName&&(n.actualNode?(a=Xc(cs(e,"table")))[(t=Zc(e,a)).y].every(function(e){return"TH"===e.nodeName.toUpperCase()})?"col":a.map(function(e){return e[t.x]}).every(function(e){return e&&"TH"===e.nodeName.toUpperCase()})?"row":"auto":"auto");throw new TypeError("Expected TD or TH element")}var Qc=function(e){return-1!==["col","auto"].indexOf(Jc(e))},ed=function(e){return["row","auto"].includes(Jc(e))};function td(){return Il.get("sectioningContentSelector",function(){return Yc("sectioning").map(function(e){return"".concat(e,":not([role])")}).join(", ")+" , [role=article], [role=complementary], [role=navigation], [role=region]"})}function nd(){return Il.get("sectioningContentPlusMainSelector",function(){return td()+" , main:not([role]), [role=main]"})}var rd=function(e){return e?e.replace(/\\r\\n/g,"\\n").replace(/\\u00A0/g," ").replace(/[\\s]{2,}/g," ").trim():""};function ad(e,t){return t=void 0!==(t=(1<arguments.length&&void 0!==t?t:{}).checkTitle)&&t,rd(jc(e))||rd(Lc(e))||t&&1===(null==\
e?void 0:e.props.nodeType)&&rd(e.attr("title"))}var od={a:function(e){return e.hasAttr("href")?"link":null},area:function(e){return e.hasAttr("href")?"link":null},article:"article",aside:function(e){return eu(e.parent,td())&&!ad(e,{checkTitle:!0})?null:"complementary"},body:"document",button:"button",datalist:"listbox",dd:"definition",dfn:"term",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",footer:function(e){return eu(e,nd())?null:"contentinfo"},form:function(e){return ad(e)?"form":null},h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:function(e){return eu(e,nd())?null:"banner"},hr:"separator",img:function(e){var t=e.hasAttr("alt")&&!e.attr("alt"),n=Kc().find(function(t){return e.hasAttr(t)});return!t||n||Oc(e)?"img":"presentation"},input:function(e){var t,n;switch(e.hasAttr("list")&&(n=(t=Ic(e.actualNode,"list").filter(function(e){return!!e})[0])&&"datalist"===t.nodeName.toLowerCase()),e.props.type){case"checkbox":retu\
rn"checkbox";case"number":return"spinbutton";case"radio":return"radio";case"range":return"slider";case"search":return n?"combobox":"searchbox";case"button":case"image":case"reset":case"submit":return"button";case"text":case"tel":case"url":case"email":case"":return n?"combobox":"textbox";default:return"textbox"}},li:"listitem",main:"main",math:"math",menu:"list",meter:"meter",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",search:"search",section:function(e){return ad(e)?"region":null},select:function(e){return e.hasAttr("multiple")||1<parseInt(e.attr("size"))?"listbox":"combobox"},summary:"button",table:"table",tbody:"rowgroup",td:function(e){return e=eu(e,"table"),e=Wc(e),["grid","treegrid"].includes(e)?"gridcell":"cell"},textarea:"textbox",tfoot:"rowgroup",th:function(e){return Qc(e)?"columnheader":ed(e)?"rowheader":void 0},thead:"rowgroup",tr:"row",ul:"list"},id=function(e,t){var n=a(t);if(Array.isArray(t)&&void 0!==e)return t.inclu\
des(e);if("function"===n)return!!t(e);if(null!=e){if(t instanceof RegExp)return t.test(e);if(/^\\/.*\\/$/.test(t))return n=t.substring(1,t.length-1),new RegExp(n).test(e)}return t===e};function ld(e,t){return id(!!tp(e),t)}var ud=function(e,t){if("object"!==a(t)||Array.isArray(t)||t instanceof RegExp)throw new Error("Expect matcher to be an object");return Object.keys(t).every(function(n){return id(e(n),t[n])})};function sd(e,t){return e=um(e).vNode,ud(function(t){return e.attr(t)},t)}function cd(e,t){return!!t(e)}function dd(e,t){return id(Wc(e),t)}function pd(e,t){return id(Dd(e),t)}function fd(e,t){return e=um(e).vNode,id(e.props.nodeName,t)}function md(e,t){return e=um(e).vNode,ud(function(t){return e.props[t]},t)}function hd(e,t){return id(Ad(e),t)}var gd={hasAccessibleName:ld,attributes:sd,condition:cd,explicitRole:dd,implicitRole:pd,nodeName:fd,properties:md,semanticRole:hd},vd=function e(t,n){return t=um(t).vNode,Array.isArray(n)?n.some(function(n){return e(t,n)}):"string"==typeo\
f n?Ul(t,n):Object.keys(n).every(function(e){var r;if(gd[e])return r=n[e],(0,gd[e])(t,r);throw new Error('Unknown matcher type "'.concat(e,'"'))})},bd=function(e,t){return vd(e,t)},yd=(bd.hasAccessibleName=ld,bd.attributes=sd,bd.condition=cd,bd.explicitRole=dd,bd.fromDefinition=vd,bd.fromFunction=ud,bd.fromPrimative=id,bd.implicitRole=pd,bd.nodeName=fd,bd.properties=md,bd.semanticRole=hd,bd),wd=function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).noMatchAccessibleName,n=void 0!==t&&t,r=$c.htmlElms[e.props.nodeName];if(!r)return{};if(!r.variant)return r;var a,o,i=r.variant,l=O(r,m);for(a in i)if(i.hasOwnProperty(a)&&"default"!==a){for(var u=i[a],s=u.matches,c=O(u,h),d=Array.isArray(s)?s:[s],p=0;p<d.length&&n;p++)if(d[p].hasOwnProperty("hasAccessibleName"))return r;if(yd(e,s))for(var f in c)c.hasOwnProperty(f)&&(l[f]=c[f])}for(o in i.default)i.default.hasOwnProperty(o)&&void 0===l[o]&&(l[o]=i.default[o]);return l},Dd=function(e){var t,n=(1<arguments.length&&void \
0!==arguments[1]?arguments[1]:{}).chromium;if(e=um(e).vNode)return null!=(t=e.elementInternals)&&t.role?e.elementInternals.role:(t=e.props.nodeName,!(t=od[t])&&n?wd(e).chromiumRole||null:"function"==typeof t?t(e):t||null);throw new ReferenceError("Cannot get implicit role of a node outside the current scope.")},xd={td:["tr"],th:["tr"],tr:["thead","tbody","tfoot","table"],thead:["table"],tbody:["table"],tfoot:["table"],li:["ol","ul"],dt:["dl","div"],dd:["dl","div"],div:["dl"]};function Ed(e){return Kc().some(function(t){return e.hasAttr(t)})||Oc(e)}var Ad=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.noPresentational;e=function(e,t){var n,r=(t=1<arguments.length&&void 0!==t?t:{}).noImplicit;t=O(t,v);return 1!==(e=um(e).vNode).props.nodeType?null:!(n=Wc(e,t))||["presentation","none"].includes(n)&&Ed(e)?r?null:function(e,t){var n=t.chromium;return t=O(t,g),(n=Dd(e,{chromium:n}))?function e(t,n){var r=xd[t.props.nodeName];if(r){if(t.parent)return r.include\
s(t.parent.props.nodeName)?(r=Wc(t.parent,n),["none","presentation"].includes(r)&&!Ed(t.parent)?r:r?null:e(t.parent,n)):null;if(t.actualNode)throw new ReferenceError("Cannot determine role presentational inheritance of a required parent outside the current scope.")}return null}(e,t)||n:null}(e,t):n}(e,O(t,b));return n&&["presentation","none"].includes(e)?null:e},Fd=["iframe"],Cd=function(e){var t=um(e).vNode;return 1!==t.props.nodeType||!e.hasAttr("title")||!bd(t,Fd)&&["none","presentation"].includes(Ad(t))?"":t.attr("title")},kd=function(e){var t,n=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).strict;return 1===(e=e instanceof ma?e:Bl(e)).props.nodeType&&(e=Ad(e),!(!(t=$c.ariaRoles[e])||!t.nameFromContent)||!n&&(!t||["presentation","none"].includes(e)))},Rd=function(e){var t,n,r=e.actualNode,a=e.children;if(a)return e.hasAttr("aria-owns")?(t=Ic(r,"aria-owns").filter(function(e){return!!e}).map(function(e){return o.utils.getNodeFromTree(e)}),n=t.filter(function(e,n){retur\
n t.indexOf(e)===n}),e=a.filter(function(e){return!n.includes(e)}),[].concat(j(e),j(n))):j(a);throw new Error("getOwnedVirtual requires a virtual node")},Nd={accessibleNameFromFieldValue:["progressbar"]};function Td(e){return e=um(e).vNode,Od(e)}var Od=hl(function(e,t){return!ws(e)&&!gc(e,{skipAncestors:!0,isAncestor:t})&&(e.actualNode&&"area"===e.props.nodeName?!Fs(e,Od):!Rs(e,{skipAncestors:!0,isAncestor:t})&&(!e.parent||Od(e.parent,!0)))});var Sd=function(e,t){var n=t.emoji,r=t.nonBmp,a=(t=t.punctuations,!1);return n&&(a=a||qa().test(e)),r&&(a=a||/[\\u1D00-\\u1D7F\\u1D80-\\u1DBF\\u1DC0-\\u1DFF\\u20A0-\\u20CF\\u20D0-\\u20FF\\u2100-\\u214F\\u2150-\\u218F\\u2190-\\u21FF\\u2200-\\u22FF\\u2300-\\u23FF\\u2400-\\u243F\\u2440-\\u245F\\u2460-\\u24FF\\u2500-\\u257F\\u2580-\\u259F\\u25A0-\\u25FF\\u2600-\\u26FF\\u2700-\\u27BF\\uE000-\\uF8FF]/g.test(e)||/[\\uDB80-\\uDBBF][\\uDC00-\\uDFFF]/g.test(e)||/[\\xAD\\u0600-\\u0605\\u061C\\u06DD\\u070F\\u08E2\\u180E\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u206F\\uFEFF\\uFFF9-\\uFFFB]|\\uD804[\\uDCBD\\uDC\
CD]|\\uD80D[\\uDC30-\\uDC38]|\\uD82F[\\uDCA0-\\uDCA3]|\\uD834[\\uDD73-\\uDD7A]|\\uDB40[\\uDC01\\uDC20-\\uDC7F]/g.test(e)),t?a||/[\\u2000-\\u206F\\u2E00-\\u2E7F\\\\'!"#$%&\\xa3\\xa2\\xa5\\xa7\\u20ac()*+,\\-.\\/:;<=>?@\\[\\]^_\`{|}~\\xb1]/g.test(e):a};function _d(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.15,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:3,o=e.actualNode.nodeValue.trim();if(!rd(o)||Sd(o,{emoji:!0,nonBmp:!0}))return!1;var i,l=Il.get("canvasContext",function(){return r.createElement("canvas").getContext("2d",{willReadFrequently:!0})}),u=l.canvas;if((i=((i=Il.get("fonts",function(){return{}}))[e=t.getComputedStyle(e.parent.actualNode).getPropertyValue("font-family")]||(i[e]={occurrences:0,numLigatures:0}),i[e])).occurrences>=a){if(i.numLigatures/i.occurrences==1)return!0;if(0===i.numLigatures)return!1}i.occurrences++;var s="".concat(a=30,"px ").concat(e),c=(l.font=s,o.charAt(0)),d=l.measureText(c).width;if(0===d)return i.numLigatures++,!0;d<30&&(d*=p=30/d,s="".concat(a*=p\
,"px ").concat(e)),u.width=d,u.height=a,l.font=s,l.textAlign="left",l.textBaseline="top",l.fillText(c,0,0);var p=new Uint32Array(l.getImageData(0,0,d,a).data.buffer);if(!p.some(function(e){return e}))return i.numLigatures++,!0;l.clearRect(0,0,d,a),l.fillText(o,0,0);var f=new Uint32Array(l.getImageData(0,0,d,a).data.buffer);e=p.reduce(function(e,t,n){return 0===t&&0===f[n]||0!==t&&0!==f[n]?e:++e},0),u=o.split("").reduce(function(e,t){return e+l.measureText(t).width},0),s=l.measureText(o).width;return n<=e/p.length&&n<=1-s/u&&(i.numLigatures++,!0)}var Md=function e(t,n,r){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=um(t).vNode,i=n?Td:qs,l=!t.actualNode||(t.actualNode,i(t)),u=a.ignoreIconLigature,s=a.pixelThreshold,c=a.occurrenceThreshold;i=o.children.map(function(t){var o=(d=t.props).nodeType,i=d.nodeValue,d=d.nodeName;return 3===o?!i||!l||u&&_d(t,s,c)?"":i:"br"===d?" ":r?void 0:e(t,n,!1,a)}).join("");return rd(i)},Pd=["button","checkbox","color","file","hidden","im\
age","password","radio","reset","submit"],Id=function(e){var t=(e=e instanceof ma?e:Bl(e)).props.nodeName;return"textarea"===t||"input"===t&&!Pd.includes((e.attr("type")||"").toLowerCase())},Bd=function(e){return"select"===(e=e instanceof ma?e:Bl(e)).props.nodeName},jd=function(e){return"textbox"===Wc(e)},Ld=function(e){return"listbox"===Wc(e)},qd=function(e){return"combobox"===Wc(e)},zd=["progressbar","scrollbar","slider","spinbutton"],Vd=function(e){return e=Wc(e),zd.includes(e)},Gd=["textbox","progressbar","scrollbar","slider","spinbutton","combobox","listbox"],$d={nativeTextboxValue:function(e){return e=um(e).vNode,Id(e)&&e.props.value||""},nativeSelectValue:function(e){if(e=um(e).vNode,!Bd(e))return"";var t=(e=Tm(e,"option")).filter(function(e){return e.props.selected});return t.length||t.push(e[0]),t.map(function(e){return Md(e)}).join(" ")||""},ariaTextboxValue:function(e){var t=(e=um(e)).vNode;e=e.domNode;return jd(t)?e&&Rs(e)?e.textContent:Md(t,!0):""},ariaListboxValue:Hd,aria\
ComboboxValue:function(e,t){e=um(e).vNode;return qd(e)&&(e=Rd(e).filter(function(e){return"listbox"===Ad(e)})[0])?Hd(e,t):""},ariaRangeValue:function(e){e=um(e).vNode;return Vd(e)&&e.hasAttr("aria-valuenow")?(e=+e.attr("aria-valuenow"),isNaN(e)?"0":String(e)):""}};function Hd(e,t){e=um(e).vNode;return Ld(e)&&0!==(e=Rd(e).filter(function(e){return"option"===Ad(e)&&"true"===e.attr("aria-selected")})).length?tp(e[0],t):""}var Ud=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.actualNode,r=Nd.accessibleNameFromFieldValue||[],a=Ad(e);return t.startNode===e||!Gd.includes(a)||r.includes(a)?"":(r=Object.keys($d).map(function(e){return $d[e]}).reduce(function(n,r){return n||r(e,t)},""),t.debug&&pa(r||"{empty-value}",n,t),r)},Wd=Yc("phrasing").concat(["#text"]),Yd=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=tp.alreadyProcessed;t.startNode=t.startNode||e;var r=(o=t).strict,a=o.inControlContext,o=o.inLabelledByContext,i=Ad(e),l=wd(e\
,{noMatchAccessibleName:!0}).contentTypes;return n(e,t)||1!==e.props.nodeType||null!=l&&l.includes("embedded")||Gd.includes(i)||!(t.subtreeDescendant||t.inLabelledByContext||kd(e,{strict:r}))?"":(r||(t=B({subtreeDescendant:!a&&!o},t)),Rd(e).reduce(function(e,n){var r=t,a=n.props.nodeName;return(n=tp(n,r))?(Wd.includes(a)||(" "!==n[0]&&(n+=" "),e&&" "!==e[e.length-1]&&(n=" "+n)),e+n):e},""))},Kd=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=tp.alreadyProcessed;if(t.inControlContext||t.inLabelledByContext||n(e,t))return"";t.startNode||(t.startNode=e);var r,a=B({inControlContext:!0},t);n=(e=>{if(!e.attr("id"))return[];if(e.actualNode)return us({elm:"label",attr:"for",value:e.attr("id"),context:e.actualNode});throw new TypeError("Cannot resolve explicit label reference for non-DOM nodes")})(e);return(t=eu(e,"label"))?(r=[].concat(j(n),[t.actualNode])).sort(lm):r=n,r.map(function(e){return Bc(e,a)}).filter(function(e){return""!==e}).join(" ")},Xd={submit:"Sub\
mit",image:"Submit",reset:"Reset",button:""};function Zd(e,t){return t.attr(e)||""}function Jd(e,t,n){t=t.actualNode;var r=[e=e.toLowerCase(),t.nodeName.toLowerCase()].join(",");return(t=t.querySelector(r))&&t.nodeName.toLowerCase()===e?Bc(t,n):""}var Qd={valueText:function(e){return e.props.value||""},buttonDefaultText:function(e){return Xd[e.props.type]||""},tableCaptionText:Jd.bind(null,"caption"),figureText:Jd.bind(null,"figcaption"),svgTitleText:Jd.bind(null,"title"),fieldsetLegendText:Jd.bind(null,"legend"),altText:Zd.bind(null,"alt"),tableSummaryText:Zd.bind(null,"summary"),titleText:Cd,subtreeText:Yd,labelText:Kd,singleSpace:function(){return" "},placeholderText:Zd.bind(null,"placeholder")};function ep(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.actualNode;return 1!==e.props.nodeType||["presentation","none"].includes(Ad(e))?"":(t=(wd(e,{noMatchAccessibleName:!0}).namingMethods||[]).map(function(e){return Qd[e]}).reduce(function(t,r){return t||r(e,n)\
},""),n.debug&&o.log(t||"{empty-value}",r,n),t)}function tp(e){var t,n,r,a,i,l=((e,t)=>(t.startNode||(t=B({startNode:e},t)),1===e.props.nodeType&&t.inLabelledByContext&&void 0===t.includeHidden?B({includeHidden:!Td(e)},t):t))(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{});return t=l,(i=e)&&!(t.includeHidden&&!gs(i)||1!==i.props.nodeType||Td(i))||(t=e,n=(i=l).ignoreIconLigature,r=i.pixelThreshold,a=null!=(a=i.occurrenceThreshold)?a:i.occuranceThreshold,3===t.props.nodeType&&n&&_d(t,r,a))?"":(i=[jc,Lc,ep,Ud,Yd,np,Cd].reduce(function(t,n){return""!==(t=l.startNode===e?rd(t):t)?t:n(e,l)},""),l.debug&&o.log(i||"{empty-value}",e.actualNode,l),i)}function np(e){return 3!==e.props.nodeType?"":e.props.nodeValue}tp.alreadyProcessed=function(e,t){return t.processed=t.processed||[],!!t.processed.includes(e)||(t.processed.push(e),!1)};var rp=function(e,t){var n=t.emoji,r=t.nonBmp;t=t.punctuations;return n&&(e=e.replace(qa(),"")),r&&(e=e.replace(/[\\u1D00-\\u1D7F\\u1D80-\\u1DBF\\u1DC0-\\u1DF\
F\\u20A0-\\u20CF\\u20D0-\\u20FF\\u2100-\\u214F\\u2150-\\u218F\\u2190-\\u21FF\\u2200-\\u22FF\\u2300-\\u23FF\\u2400-\\u243F\\u2440-\\u245F\\u2460-\\u24FF\\u2500-\\u257F\\u2580-\\u259F\\u25A0-\\u25FF\\u2600-\\u26FF\\u2700-\\u27BF\\uE000-\\uF8FF]/g,"").replace(/[\\uDB80-\\uDBBF][\\uDC00-\\uDFFF]/g,"").replace(/[\\xAD\\u0600-\\u0605\\u061C\\u06DD\\u070F\\u08E2\\u180E\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u206F\\uFEFF\\uFFF9-\\uFFFB]|\\uD804[\\uDCBD\\uDCCD]|\\uD80D[\\uDC30-\\uDC38]|\\uD82F[\\uDCA0-\\uDCA3]|\\uD834[\\uDD73-\\uDD7A]|\\uDB40[\\uDC01\\uDC20-\\uDC7F]/g,"")),t?e.replace(/[\\u2000-\\u206F\\u2E00-\\u2E7F\\\\'!"#$%&\\xa3\\xa2\\xa5\\xa7\\u20ac()*+,\\-.\\/:;<=>?@\\[\\]^_\`{|}~\\xb1]/g,""):e},ap=function(e){var t;return 0===rd(e).length||1===(t=e).length&&t.match(/\\D/)||["aa","abc"].includes(e.toLowerCase())||(e=>(e=rp(e,{emoji:!0,nonBmp:!0,punctuations:!0}),!rd(e)))(e)?0:1},op={stateTerms:["on","off"],standaloneTerms:["name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","username","new-password","current-pass\
word","organization-title","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","one-time-code"],qualifiers:["home","work","mobile","fax","pager"],qualifiedTerms:["tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"],locations:["billing","shipping"]},ip=function(e){var t=void 0!==(t=(l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).looseTyped)&&t,n=void 0===(n=l.stateTerms)?[]:n,r=void 0===(r=l.locations)?[]:r,a=void 0===(a=l.qualifiers)?[]:a,o=void 0===(o=l.standaloneTerms)?[]:o,i=void 0===(i=l.qualifiedTerms)?[]\
:i,l=void 0===(l=l.ignoredValues)?[]:l;return e=e.toLowerCase().trim(),!(!(n=n.concat(op.stateTerms)).includes(e)&&""!==e)||(a=a.concat(op.qualifiers),r=r.concat(op.locations),o=o.concat(op.standaloneTerms),i=i.concat(op.qualifiedTerms),!("webauthn"===(n=e.split(/\\s+/g))[n.length-1]&&(n.pop(),0===n.length)||!t&&(8<n[0].length&&"section-"===n[0].substr(0,8)&&n.shift(),r.includes(n[0])&&n.shift(),a.includes(n[0])&&(n.shift(),o=[]),1!==n.length))&&(l.includes(e=n[n.length-1])?void 0:o.includes(e)||i.includes(e)))},lp=function(e){var t;return e.attr("aria-labelledby")&&(t=Ic(e.actualNode,"aria-labelledby").map(function(e){return(e=Bl(e))?Md(e):""}).join(" ").trim())?t:(t=(t=e.attr("aria-label"))&&rd(t))||null},up=function(e,t,n){return e=Bl(e),Md(e,t,n)},sp=function(e){if(t=lp(e))return t;if(e.attr("id")){if(!e.actualNode)throw new TypeError("Cannot resolve explicit label reference for non-DOM nodes");var t,n=Ta(e.attr("id"));if(t=(n=ls(e.actualNode).querySelector('label[for="'+n+'"]'))&&u\
p(n,!0))return t}return(t=(n=eu(e,"label"))&&Md(n,!0))||null},cp=function(e){return e=Bl(e),sp(e)},dp=[{matches:[{nodeName:"textarea"},{nodeName:"input",properties:{type:["text","password","search","tel","email","url"]}}],namingMethods:"labelText"},{matches:{nodeName:"input",properties:{type:["button","submit","reset"]}},namingMethods:["valueText","titleText","buttonDefaultText"]},{matches:{nodeName:"input",properties:{type:"image"}},namingMethods:["altText","valueText","labelText","titleText","buttonDefaultText"]},{matches:"button",namingMethods:"subtreeText"},{matches:"fieldset",namingMethods:"fieldsetLegendText"},{matches:"OUTPUT",namingMethods:"subtreeText"},{matches:[{nodeName:"select"},{nodeName:"input",properties:{type:/^(?!text|password|search|tel|email|url|button|submit|reset)/}}],namingMethods:"labelText"},{matches:"summary",namingMethods:"subtreeText"},{matches:"figure",namingMethods:["figureText","titleText"]},{matches:"img",namingMethods:"altText"},{matches:"table",namingM\
ethods:["tableCaptionText","tableSummaryText"]},{matches:["hr","br"],namingMethods:["titleText","singleSpace"]}],pp=function e(t){var n=qs(t),r=[];return t.children.forEach(function(t){3===t.actualNode.nodeType?n&&r.push(t):r=r.concat(e(t))}),r},fp=hl(function(e){var t=Bl(e),n=t.boundingClientRect,a=[],o=fs(t);return e.childNodes.forEach(function(e){var t,i;3!==e.nodeType||""===rd(e.nodeValue)||((t=r.createRange()).selectNodeContents(e),e=Array.from(t.getClientRects()),i=n,e.some(function(e){return!Gs(Us(e),i)}))||a.push.apply(a,j(mp(e,o)))}),a.length?a:mp([n],o)});function mp(e,t){var n=[];return e.forEach(function(e){e.width<1||e.height<1||(e=t.reduce(function(e,t){return e&&Hs(e,t.boundingClientRect)},e))&&n.push(e)}),n}var hp=function(e){var t=fc(e);return t?fp(e).map(function(e){return kc(t,e)}):[]},gp=["checkbox","img","meter","progressbar","scrollbar","radio","slider","spinbutton","textbox"],vp=function(e){var t=um(e).vNode;if(e=o.commons.aria.getExplicitRole(t))return-1!==gp.in\
dexOf(e);switch(t.props.nodeName){case"img":case"iframe":case"object":case"video":case"audio":case"canvas":case"svg":case"math":case"button":case"select":case"textarea":case"keygen":case"progress":case"meter":return!0;case"input":return"hidden"!==t.props.type;default:return!1}},bp=["head","title","template","script","style","iframe","object","video","audio","noscript"];function yp(e){return!bp.includes(e.props.nodeName)&&e.children.some(function(e){return 3===(e=e.props).nodeType&&e.nodeValue.trim()})}var wp=function e(t,n,r){return yp(t)||vp(t.actualNode)||!r&&!!lp(t)||!n&&t.children.some(function(t){return 1===t.actualNode.nodeType&&e(t)})},Dp=function(e,t,n){return e=Bl(e),wp(e,t,n)};function xp(e){return!(void 0!==e.children&&!yp(e))||(1===e.props.nodeType&&vp(e)?!!o.commons.text.accessibleTextVirtual(e):e.children.some(function(e){return!e.attr("lang")&&xp(e)&&!Rs(e)}))}var Ep=function(e){return-1<mm(e.getAttribute("tabindex"))&&Oc(e)&&!Tc(e)};function Ap(e,t){var n=(e=um(e)).vNod\
e;e=e.domNode;return n?(void 0===n._isHiddenWithCSS&&(n._isHiddenWithCSS=Fp(e,t)),n._isHiddenWithCSS):Fp(e,t)}function Fp(e,n){if(9===e.nodeType)return!1;if(11===e.nodeType&&(e=e.host),["STYLE","SCRIPT"].includes(e.nodeName.toUpperCase()))return!1;var r,a=t.getComputedStyle(e,null);if(a)return"none"===a.getPropertyValue("display")||(r=["hidden","collapse"],a=a.getPropertyValue("visibility"),!(!r.includes(a)||n))||!!(r.includes(a)&&n&&r.includes(n))||!(!(n=Os(e))||r.includes(a))&&Ap(n,a);throw new Error("Style does not exist for the given element.")}var Cp=Ap,kp=function(e){return null!==(e=e.doctype)&&"html"===e.name&&!e.publicId&&!e.systemId},Rp=function(e){(e instanceof ma||null!=(n=t)&&n.Node&&e instanceof t.Node)&&(e=o.commons.aria.getRole(e));var n=$c.ariaRoles[e];return(null==n?void 0:n.type)||null},Np=["block","list-item","table","flex","grid"],Tp=["inline-block","inline-flex","inline-grid"],Op=function(e){var t,n,r,a,o=(i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{\
}).noLengthCompare,i=void 0!==(i=i.includeInlineBlock)&&i,l=(e=um(e)).vNode,u=e.domNode;return!(Sp(u)||!i&&(e=>(e=e.getComputedStylePropertyValue("display"),Tp.includes(e)))(l))&&(t=(e=>{for(var t=Os(e);t&&!Sp(t);)t=Os(t);return Bl(t)})(u),r=n="",a=0,function e(t,n){!1!==n(t.actualNode)&&t.children.forEach(function(t){return e(t,n)})}(t,function(e){var o,i;return e===t.actualNode||2!==a&&(3===e.nodeType&&(n+=e.nodeValue),1===e.nodeType?(o=(e.nodeName||"").toUpperCase(),e===u&&(a=1),((i=Sp(e))||["BR","HR"].includes(o))&&(0===a?r=n="":a=2),!(i||"none"===e.style.display||"hidden"===e.style.overflow||!["",null,"none"].includes(e.style.float)||!["",null,"relative"].includes(e.style.position))&&("widget"===Rp(e)?(r+=e.textContent,!1):void 0)):void 0)}),n=rd(n),o?0!==n.length:(r=rd(r),n.length>r.length))};function Sp(e){return e=um(e).vNode.getComputedStylePropertyValue("display"),Np.includes(e)||"table-"===e.substr(0,6)}var _p=function(e){if(e=(e=e||{}).modalPercent||.75,Il.get("isModalOpen"\
))return Il.get("isModalOpen");if(wm(o._tree[0],"dialog, [role=dialog], [aria-modal=true]",qs).length)return Il.set("isModalOpen",!0),!0;for(var n,a=Ms(t),i=a.width*e,l=a.height*e,u=(e=(a.width-i)/2,(a.height-l)/2),s=[{x:e,y:u},{x:a.width-e,y:u},{x:a.width/2,y:a.height/2},{x:e,y:a.height-u},{x:a.width-e,y:a.height-u}].map(function(e){return Array.from(r.elementsFromPoint(e.x,e.y))}),c=0;c<s.length;c++)if(n=(()=>{var e=s[c].find(function(e){return e=t.getComputedStyle(e),parseInt(e.width,10)>=i&&parseInt(e.height,10)>=l&&"none"!==e.getPropertyValue("pointer-events")&&("absolute"===e.position||"fixed"===e.position)});if(e&&s.every(function(t){return t.includes(e)}))return Il.set("isModalOpen",!0),{v:!0}})())return n.v;Il.set("isModalOpen",void 0)};function Mp(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:2,r=e.ownerDocument.createRange(),a=(r.setStart(e,0),r.setEnd(e,e.childNodes.length),0),o=0,i=Q(r.getClientRects());try{for(i.s();!(t=i.n()).done;){var l=t.value;if(!\
(l.height<=n))if(l.top+n<a)a=Math.max(a,l.bottom);else{if(0!==o)return!0;a=l.bottom,o++}}}catch(e){i.e(e)}finally{i.f()}return!1}var Pp=function(e){return e instanceof t.Node},Ip="color.incompleteData",Bp={set:function(e,t){if("string"!=typeof e)throw new Error("Incomplete data: key must be a string");var n=Il.get(Ip,function(){return{}});return t&&(n[e]=t),n[e]},get:function(e){var t=Il.get(Ip);return null==t?void 0:t[e]},clear:function(){Il.set(Ip,{})}},jp=function(e,n){var r=e.nodeName.toUpperCase();return["IMG","CANVAS","OBJECT","IFRAME","VIDEO","SVG"].includes(r)?(Bp.set("bgColor","imgNode"),!0):((e="none"!==(r=(n=n||t.getComputedStyle(e)).getPropertyValue("background-image")))&&(n=/gradient/.test(r),Bp.set("bgColor",n?"bgGradient":"bgImage")),e)},Lp=/^#[0-9a-f]{3,8}$/i,qp=/hsl\\(\\s*([-\\d.]+)(rad|turn)/,zp=(oe=new WeakMap,ie=new WeakMap,le=new WeakMap,ue=new WeakMap,se=new WeakMap,ce=new WeakMap,de=new WeakSet,Z(function e(t,n,r){var a,o,i,l=3<arguments.length&&void 0!==arguments[3\
]?arguments[3]:1;K(this,e),z(this,de),q(this,oe,void 0),q(this,ie,void 0),q(this,le,void 0),q(this,ue,void 0),q(this,se,void 0),q(this,ce,void 0),t instanceof zp?(a=t.r,o=t.g,i=t.b,this.r=a,this.g=o,this.b=i,this.alpha=t.alpha):(this.red=t,this.green=n,this.blue=r,this.alpha=l)},[{key:"r",get:function(){return G(oe,this)},set:function(e){$(oe,this,e),$(ue,this,Math.round(255*$p(e,0,1)))}},{key:"g",get:function(){return G(ie,this)},set:function(e){$(ie,this,e),$(se,this,Math.round(255*$p(e,0,1)))}},{key:"b",get:function(){return G(le,this)},set:function(e){$(le,this,e),$(ce,this,Math.round(255*$p(e,0,1)))}},{key:"red",get:function(){return G(ue,this)},set:function(e){$(oe,this,e/255),$(ue,this,$p(e,0,255))}},{key:"green",get:function(){return G(se,this)},set:function(e){$(ie,this,e/255),$(se,this,$p(e,0,255))}},{key:"blue",get:function(){return G(ce,this)},set:function(e){$(le,this,e/255),$(ce,this,$p(e,0,255))}},{key:"toHexString",value:function(){var e=Math.round(this.red).toString(16\
),t=Math.round(this.green).toString(16),n=Math.round(this.blue).toString(16);return"#"+(15.5<this.red?e:"0"+e)+(15.5<this.green?t:"0"+t)+(15.5<this.blue?n:"0"+n)}},{key:"toJSON",value:function(){return{red:this.red,green:this.green,blue:this.blue,alpha:this.alpha}}},{key:"parseString",value:function(e){e=e.replace(qp,function(e,t,n){var r=t+n;switch(n){case"rad":return e.replace(r,180*t/Math.PI);case"turn":return e.replace(r,360*t)}});try{"Prototype"in t&&"Version"in t.Prototype&&(n=Array.from,Array.from=ml.default);var n,r=new ul(e).toGamut({space:"srgb",method:"clip"}).to("srgb");n&&(Array.from=n,n=null),this.r=r.r,this.g=r.g,this.b=r.b,this.alpha=+r.alpha}catch(n){throw Bp.set("colorParse",e),new Error('Unable to parse color "'.concat(e,'"'))}return this}},{key:"parseRgbString",value:function(e){this.parseString(e)}},{key:"parseHexString",value:function(e){e.match(Lp)&&![6,8].includes(e.length)&&this.parseString(e)}},{key:"parseColorFnString",value:function(e){this.parseString(e)}},\
{key:"getRelativeLuminance",value:function(){var e=this.r,t=this.g,n=this.b;return.2126*(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4))}},{key:"getLuminosity",value:function(){return.3*this.r+.59*this.g+.11*this.b}},{key:"setLuminosity",value:function(e){return e-=this.getLuminosity(),H(de,this,Vp).call(this,e).clip()}},{key:"getSaturation",value:function(){return Math.max(this.r,this.g,this.b)-Math.min(this.r,this.g,this.b)}},{key:"setSaturation",value:function(e){var t=new zp(this),n=U([{name:"r",value:t.r},{name:"g",value:t.g},{name:"b",value:t.b}].sort(function(e,t){return e.value-t.value}),3),r=n[0],a=n[1];return(n=n[2]).value>r.value?(a.value=(a.value-r.value)*e/(n.value-r.value),n.value=e):a.value=n.value=0,r.value=0,t[n.name]=n.value,t[r.name]=r.value,t[a.name]=a.value,t}},{key:"clip",value:function(){var e=new zp(this),t=e.getLuminosity(),n=Math.min(e.r,e.g,e.b),r=Mat\
h.max(e.r,e.g,e.b);return n<0&&(e.r=t+(e.r-t)*t/(t-n),e.g=t+(e.g-t)*t/(t-n),e.b=t+(e.b-t)*t/(t-n)),1<r&&(e.r=t+(e.r-t)*(1-t)/(r-t),e.g=t+(e.g-t)*(1-t)/(r-t),e.b=t+(e.b-t)*(1-t)/(r-t)),e}}]));function Vp(e){var t=new zp(this);return t.r+=e,t.g+=e,t.b+=e,t}var Gp=zp;function $p(e,t,n){return Math.min(Math.max(t,e),n)}var Hp=function(e){var t=new Gp;return t.parseString(e.getPropertyValue("background-color")),0!==t.alpha&&(e=e.getPropertyValue("opacity"),t.alpha=t.alpha*e),t},Up=function(e){var n=t.getComputedStyle(e);return jp(e,n)||1===Hp(n).alpha};function Wp(e){var t;return!(!e.href||(t=Il.get("firstPageLink",Yp))&&e.compareDocumentPosition(t.actualNode)!==e.DOCUMENT_POSITION_FOLLOWING)}function Yp(){return(t.location.origin?Tm(o._tree,'a[href]:not([href^="javascript:"])').find(function(e){return!Ec(e.actualNode)}):Tm(o._tree,'a:not([href^="#"]):not([href^="/#"]):not([href^="javascript:"])')[0])||null}var Kp=/rect\\s*\\(([0-9]+)px,?\\s*([0-9]+)px,?\\s*([0-9]+)px,?\\s*([0-9]+)px\\s*\\)/,Xp=/(\
\\w+)\\((\\d+)/;var Zp=function e(n,r,a){if(!n)throw new TypeError("Cannot determine if element is visible for non-DOM nodes");var i,l,u,s=n instanceof ma?n:Bl(n),c=(n=s?s.actualNode:n,"_isVisible"+(r?"ScreenReader":"")),d=(p=null!=(p=t.Node)?p:{}).DOCUMENT_NODE,p=p.DOCUMENT_FRAGMENT_NODE,f=(s?s.props:n).nodeType,m=s?s.props.nodeName:n.nodeName.toLowerCase();return s&&void 0!==s[c]?s[c]:f===d||!["style","script","noscript","template"].includes(m)&&(n&&f===p&&(n=n.host),(!r||"true"!==(s?s.attr("aria-hidden"):n.getAttribute("aria-hidden")))&&(n?null!==(d=t.getComputedStyle(n,null))&&("area"===m?(i=r,l=a,!!(p=cs(f=n,"map"))&&!!(p=p.getAttribute("name"))&&!(!(f=ls(f))||9!==f.nodeType||!(u=Tm(o._tree,'img[usemap="#'.concat(Ta(p),'"]')))||!u.length)&&u.some(function(t){return e(t.actualNode,i,l)})):"none"!==d.getPropertyValue("display")&&(m=parseInt(d.getPropertyValue("height")),f=parseInt(d.getPropertyValue("width")),u=(p=qf(n))&&0===m,p=p&&0===f,m="absolute"===d.getPropertyValue("position")&&\
(m<2||f<2)&&"hidden"===d.getPropertyValue("overflow"),!(!r&&((e=>{var t=e.getPropertyValue("clip").match(Kp),n=e.getPropertyValue("clip-path").match(Xp);if(t&&5===t.length&&(e=e.getPropertyValue("position"),["fixed","absolute"].includes(e)))return t[3]-t[1]<=0&&t[2]-t[4]<=0;if(n){e=n[1];var r=parseInt(n[2],10);switch(e){case"inset":return 50<=r;case"circle":return 0===r}}})(d)||"0"===d.getPropertyValue("opacity")||u||p||m)||!a&&("hidden"===d.getPropertyValue("visibility")||!r&&js(n))))&&(f=!1,(p=n.assignedSlot||n.parentNode)&&(f=e(p,r,!0)),s&&(s[c]=f),f)):(m=!0,(a=s.parent)&&(m=e(a,r,!0)),s&&(s[c]=m),m)))},Jp=function(e,n){for(var r=["fixed","sticky"],a=[],o=!1,i=0;i<e.length;++i){var l=e[i],u=(l===n&&(o=!0),t.getComputedStyle(l));o||-1===r.indexOf(u.position)?a.push(l):a=[]}return a};function Qp(e,n){var r=ef(n);do{var a,o,i,l,u,s,c=ef(e);if(c===r||c===n)return a=e,o=n,s=(u=t.getComputedStyle(o)).getPropertyValue("overflow"),"inline"===u.getPropertyValue("display")||(a=Array.from(a.ge\
tClientRects()),i=o.getBoundingClientRect(),l={left:i.left,top:i.top,width:i.width,height:i.height},(["scroll","auto"].includes(s)||o instanceof t.HTMLHtmlElement)&&(l.width=o.scrollWidth,l.height=o.scrollHeight),1===a.length&&"hidden"===s&&"nowrap"===u.getPropertyValue("white-space")&&(a[0]=l),a.some(function(e){return!(Math.ceil(e.left)<Math.floor(l.left)||Math.ceil(e.top)<Math.floor(l.top)||Math.floor(e.left+e.width)>Math.ceil(l.left+l.width)||Math.floor(e.top+e.height)>Math.ceil(l.top+l.height))}))}while(e=c);return!1}function ef(e){for(var t=Bl(e).parent;t;){if(qf(t.actualNode))return t.actualNode;t=t.parent}}var tf=function e(t,n){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:r,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;if(999<o)throw new Error("Infinite loop detected");return Array.from(a.elementsFromPoint(t,n)||[]).filter(function(e){return ls(e)===a}).reduce(function(r,a){var i;return as(a)&&(i=e(t,n,a.shadowRoot,o+1),!(r=r.concat(i)).length||!Qp\
(r[0],a))||r.push(a),r},[])},nf=function(e,t){var n,a;if(e.hasAttribute(t))return a=e.nodeName.toUpperCase(),n=e,["A","AREA"].includes(a)&&!e.ownerSVGElement||((n=r.createElement("a")).href=e.getAttribute(t)),a=["https:","ftps:"].includes(n.protocol)?n.protocol.replace(/s:$/,":"):n.protocol,t=(e=(e=(t=e=/^\\//.test(n.pathname)?n.pathname:"/".concat(n.pathname)).split("/").pop())&&-1!==e.indexOf(".")?{pathname:t.replace(e,""),filename:/index./.test(e)?"":e}:{pathname:t,filename:""}).pathname,e=e.filename,{protocol:a,hostname:n.hostname,port:(a=n.port,["443","80"].includes(a)?"":a),pathname:/\\/$/.test(t)?t:"".concat(t,"/"),search:(e=>{var t={};if(e&&e.length){var n=e.substring(1).split("&");if(n&&n.length)for(var r=0;r<n.length;r++){var a=(o=U(n[r].split("="),2))[0],o=void 0===(o=o[1])?"":o;t[decodeURIComponent(a)]=decodeURIComponent(o)}}return t})(n.search),hash:(a=n.hash)&&(t=a.match(/#!?\\/?/g))&&"#"!==U(t,1)[0]?a:"",filename:e}},rf=function(e,n){var r=n.getBoundingClientRect(),a=r.top,\
o=r.left,i=a-n.scrollTop,l=(a=a-n.scrollTop+n.scrollHeight,o-n.scrollLeft);o=o-n.scrollLeft+n.scrollWidth;return!(e.left>o&&e.left>r.right||e.top>a&&e.top>r.bottom||e.right<l&&e.right<r.left||e.bottom<i&&e.bottom<r.top)&&(o=t.getComputedStyle(n),!(e.left>r.right||e.top>r.bottom)||"scroll"===o.overflow||"auto"===o.overflow||n instanceof t.HTMLBodyElement||n instanceof t.HTMLHtmlElement)},af=0;function of(e,t,n){var r;return K(this,of),(r=S(this,of)).shadowId=n,r.children=[],r.actualNode=e,(r.parent=t)||(af=0),r.nodeIndex=af++,r._isHidden=null,r._cache={},r._isXHTML=gl(e.ownerDocument),"input"===e.nodeName.toLowerCase()&&(n=e.getAttribute("type"),n=r._isXHTML?n:(n||"").toLowerCase(),Vm().includes(n)||(n="text"),r._type=n),Il.get("nodeMap")&&Il.get("nodeMap").set(e,r),r}P(of,ma);var lf,uf=Z(of,[{key:"props",get:function(){var e,t,n,r;return this._cache.hasOwnProperty("props")||(e=(r=this.actualNode).nodeType,t=r.nodeName,n=r.id,r=r.nodeValue,this._cache.props={nodeType:e,nodeName:this._is\
XHTML?t:t.toLowerCase(),id:n,type:this._type,nodeValue:r},1===e&&(this._cache.props.multiple=this.actualNode.multiple,this._cache.props.value=this.actualNode.value,this._cache.props.selected=this.actualNode.selected,this._cache.props.checked=this.actualNode.checked,this._cache.props.indeterminate=this.actualNode.indeterminate)),this._cache.props}},{key:"attr",value:function(e){return"function"!=typeof this.actualNode.getAttribute?null:this.actualNode.getAttribute(e)}},{key:"hasAttr",value:function(e){return"function"==typeof this.actualNode.hasAttribute&&this.actualNode.hasAttribute(e)}},{key:"attrNames",get:function(){var e;return this._cache.hasOwnProperty("attrNames")||(e=(this.actualNode.attributes instanceof t.NamedNodeMap?this.actualNode:this.actualNode.cloneNode(!1)).attributes,this._cache.attrNames=Array.from(e).map(function(e){return e.name})),this._cache.attrNames}},{key:"getComputedStylePropertyValue",value:function(e){var n="computedStyle_"+e;return this._cache.hasOwnProper\
ty(n)||(this._cache.hasOwnProperty("computedStyle")||(this._cache.computedStyle=t.getComputedStyle(this.actualNode)),this._cache[n]=this._cache.computedStyle.getPropertyValue(e)),this._cache[n]}},{key:"isFocusable",get:function(){return this._cache.hasOwnProperty("isFocusable")||(this._cache.isFocusable=Oc(this.actualNode)),this._cache.isFocusable}},{key:"tabbableElements",get:function(){return this._cache.hasOwnProperty("tabbableElements")||(this._cache.tabbableElements=Nc(this)),this._cache.tabbableElements}},{key:"clientRects",get:function(){return this._cache.hasOwnProperty("clientRects")||(this._cache.clientRects=Array.from(this.actualNode.getClientRects()).filter(function(e){return 0<e.width})),this._cache.clientRects}},{key:"boundingClientRect",get:function(){return this._cache.hasOwnProperty("boundingClientRect")||(this._cache.boundingClientRect=this.actualNode.getBoundingClientRect()),this._cache.boundingClientRect}},{key:"elementInternals",get:function(){if(o._enableElementIn\
ternals)return this._cache.hasOwnProperty("elementInternals")||(this._cache.elementInternals=Wf(this.actualNode)),this._cache.elementInternals},set:function(e){this._cache.elementInternals=e}}]),sf=function(e){return(e||"").trim().replace(/\\s{2,}/g," ").split(" ")},cf=" [idsMap]";function df(e,t,n){var r=e[0]._selectorMap;if(r){for(var a=e[0].shadowId,o=0;o<t.length;o++)if(1<t[o].length&&t[o].some(pf))return;var i=new Set,l=(t.forEach(function(e){var t,n=((e,t,n)=>{var r=e[e.length-1],a=null,o=1<e.length||!!r.pseudos||!!r.classes;if(pf(r))a=t["*"];else{if(r.id){if(!t[cf]||!Object.hasOwn(t[cf],r.id)||null==(e=t[cf][r.id])||!e.length)return;a=t[cf][r.id].filter(function(e){return e.shadowId===n})}if(r.tag&&"*"!==r.tag){if(null==(e=t[r.tag])||!e.length)return;e=t[r.tag];a=a?ff(e,a):e}if(r.classes){if(null==(e=t["[class]"])||!e.length)return;e=t["[class]"],a=a?ff(e,a):e}if(r.attributes)for(var i=0;i<r.attributes.length;i++){var l=r.attributes[i];if("attrValue"===l.type&&(o=!0),null==(u=t["\
[".concat(l.key,"]")])||!u.length)return;var u=t["[".concat(l.key,"]")];a=a?ff(u,a):u}}return{nodes:a,isComplexSelector:o}})(e,r,a);null!=n&&null!=(t=n.nodes)&&t.forEach(function(t){n.isComplexSelector&&!Ql(t,e)||i.add(t)})}),[]);return i.forEach(function(e){return l.push(e)}),(l=n?l.filter(n):l).sort(function(e,t){return e.nodeIndex-t.nodeIndex})}}function pf(e){return"*"===e.tag&&!e.attributes&&!e.id&&!e.classes}function ff(e,t){return e.filter(function(e){return t.includes(e)})}function mf(e,t,n){Object.hasOwn(n,e)||(n[e]=[]),n[e].push(t)}function hf(e,t){1===e.props.nodeType&&(mf(e.props.nodeName,e,t),mf("*",e,t),e.attrNames.forEach(function(n){"id"===n&&(t[cf]=t[cf]||{},sf(e.attr(n)).forEach(function(n){mf(n,e,t[cf])})),mf("[".concat(n,"]"),e,t)}))}function gf(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:r.documentElement,t=1<arguments.length?arguments[1]:void 0,n=(lf=!1,{});return(e=(Il.set("nodeMap",new WeakMap),Il.set("selectorMap",n),yf(e,t,null)))[0]._select\
orMap=n,e[0]._hasShadowRoot=lf,e}function vf(e,t,n){return hf(e=new uf(e,t,n),Il.get("selectorMap")),e}function bf(e,t,n){var r=[];return e.forEach(function(e){(e=yf(e,n,t))&&r.push.apply(r,j(e))}),r}function yf(e,n,a){var o,i,l=(e=e.documentElement?e.documentElement:e).nodeName.toLowerCase();return as(e)?(lf=!0,o=vf(e,a,n),n="a"+Math.random().toString().substring(2),i=Array.from(e.shadowRoot.childNodes),o.children=bf(i,o,n),[o]):"content"===l&&"function"==typeof e.getDistributedNodes?bf(i=Array.from(e.getDistributedNodes()),a,n):"slot"===l&&"function"==typeof e.assignedNodes?((i=Array.from(e.assignedNodes())).length||(i=(e=>{var t=[];for(e=e.firstChild;e;)t.push(e),e=e.nextSibling;return t})(e)),t.getComputedStyle(e),bf(i,a,n)):e.nodeType===r.ELEMENT_NODE?(o=vf(e,a,n),i=Array.from(e.childNodes),o.children=bf(i,o,n),[o]):e.nodeType===r.TEXT_NODE?[vf(e,a)]:void 0}var wf=function(e){return e?e.trim().split("-")[0].toLowerCase():""},Df=function(e){var t={};return t.none=e.none.concat(e.al\
l),t.any=e.any,Object.keys(t).map(function(e){var n;return t[e].length&&(n=o._audit.data.failureSummaries[e])&&"function"==typeof n.failureMessage?n.failureMessage(t[e].map(function(e){return e.message||""})):void 0}).filter(function(e){return void 0!==e}).join("\\n\\n")};function xf(){var e=o._audit.data.incompleteFallbackMessage;return"string"!=typeof(e="function"==typeof e?e():e)?"":e}var Ef=da.resultGroups;function Af(e,t){var n=o.utils.aggregateResult(e);return Ef.forEach(function(e){t.resultTypes&&!t.resultTypes.includes(e)&&(n[e]||[]).forEach(function(e){Array.isArray(e.nodes)&&0<e.nodes.length&&(e.nodes=[e.nodes[0]])}),n[e]=(n[e]||[]).map(function(e){return e=Object.assign({},e),Array.isArray(e.nodes)&&0<e.nodes.length&&(e.nodes=e.nodes.map(function(e){var n,r,o;return"object"===a(e.node)&&(n=Ff(e.node,t),Object.assign(e,n)),delete e.result,delete e.node,r=e,o=t,["any","all","none"].forEach(function(e){Array.isArray(r[e])&&r[e].filter(function(e){return Array.isArray(e.relatedNod\
es)}).forEach(function(e){e.relatedNodes=e.relatedNodes.map(function(e){return Ff(e,o)})})}),e})),Ef.forEach(function(t){return delete e[t]}),delete e.pageLevel,delete e.result,e})}),n}function Ff(e,t){e=0<arguments.length&&void 0!==e?e:{},t=1<arguments.length?t:void 0,e=Gu.dqElmToSpec(e,t);var n,r={};return o._audit.noHtml?r.html=null:r.html=null!=(n=e.source)?n:"Undefined",t.elementRef&&!e.fromFrame&&(r.element=null!=(n=e.element)?n:null),!1===t.selectors&&!e.fromFrame||(r.target=null!=(n=e.selector)?n:[":root"]),t.ancestry&&(r.ancestry=null!=(n=e.ancestry)?n:[":root"]),t.xpath&&(r.xpath=null!=(n=e.xpath)?n:["/"]),r}var Cf=/\\$\\{\\s?data\\s?\\}/g;function kf(e,t){if("string"==typeof t)return e.replace(Cf,t);for(var n in t){var r;t.hasOwnProperty(n)&&(r=new RegExp("\\\\\${\\\\s?data\\\\."+n+"\\\\s?}","g"),n=void 0===t[n]?"":String(t[n]),e=e.replace(r,n))}return e}var Rf=function e(t,n){var r;if(t)return Array.isArray(n)?(n.values=n.join(", "),"string"==typeof t.singular&&"string"==typeof t.plural?\
kf(1===n.length?t.singular:t.plural,n):kf(t,n)):"string"==typeof t?kf(t,n):"string"==typeof n?kf(t[n],n):(r=t.default||xf(),e(r=n&&n.messageKey&&t[n.messageKey]?t[n.messageKey]:r,n))},Nf=function(e,t,n){var r=o._audit.data.checks[e];if(!r)throw new Error("Cannot get message for unknown check: ".concat(e,"."));if(r.messages[t])return Rf(r.messages[t],n);throw new Error('Check "'.concat(e,'"" does not have a "').concat(t,'" message.'))},Tf=function(e,t,n){t=((n.rules&&n.rules[t]||{}).checks||{})[e.id];var r=(n.checks||{})[e.id],a=e.enabled;e=e.options;return r&&(r.hasOwnProperty("enabled")&&(a=r.enabled),r.hasOwnProperty("options"))&&(e=r.options),t&&(t.hasOwnProperty("enabled")&&(a=t.enabled),t.hasOwnProperty("options"))&&(e=t.options),{enabled:a,options:e,absolutePaths:n.absolutePaths}};function Of(){var e,n,r,i,l=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,u=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t;return l&&"object"===a(l)?l:"object"!==a(u)?{}:{testEng\
ine:{name:"axe-core",version:o.version},testRunner:{name:o._audit.brand},testEnvironment:(l=u).navigator&&"object"===a(l.navigator)?(e=l.navigator,n=l.innerHeight,r=l.innerWidth,l=(e=>(e=e.screen).orientation||e.msOrientation||e.mozOrientation)(l)||{},i=l.angle,l=l.type,{userAgent:e.userAgent,windowWidth:r,windowHeight:n,orientationAngle:i,orientationType:l}):{},timestamp:(new Date).toISOString(),url:null==(e=u.location)?void 0:e.href}}function Sf(e,t){var n=t.focusable;t=t.page;return{node:e,include:[],exclude:[],initiator:!1,focusable:n&&(e=>null===(e=mm(e.getAttribute("tabindex")))||0<=e)(e),size:(e=>{var t=parseInt(e.getAttribute("width"),10),n=parseInt(e.getAttribute("height"),10);return(isNaN(t)||isNaN(n))&&(e=e.getBoundingClientRect(),t=isNaN(t)?e.width:t,n=isNaN(n)?e.height:n),{width:t,height:n}})(e),page:t}}function _f(e){var n=0<arguments.length&&void 0!==e?e:[],r=[];Kf(n)||(n=[n]);for(var a=0;a<n.length;a++){var o=(e=>{if(e instanceof t.Node)return e;if("string"==typeof e)re\
turn[e];var n;if(em(e)?(n=e,Mf(Array.isArray(n.fromFrames),"fromFrames property must be an array"),Mf(n.fromFrames.every(function(e){return!Xf(e,"fromFrames")}),"Invalid context; fromFrames selector must be appended, rather than nested"),Mf(!Xf(n,"fromShadowDom"),"fromFrames and fromShadowDom cannot be used on the same object"),e=e.fromFrames):tm(e)&&(e=[e]),Array.isArray(e)){var r,a=[],o=Q(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(tm(i)&&((e=>{Mf(Array.isArray(e.fromShadowDom),"fromShadowDom property must be an array"),Mf(e.fromShadowDom.every(function(e){return!Xf(e,"fromFrames")}),"shadow selector must be inside fromFrame instead"),Mf(e.fromShadowDom.every(function(e){return!Xf(e,"fromShadowDom")}),"fromShadowDom selector must be appended, rather than nested")})(i),i=i.fromShadowDom),"string"!=typeof i&&!(e=>Array.isArray(e)&&e.every(function(e){return"string"==typeof e}))(i))return;a.push(i)}}catch(e){o.e(e)}finally{o.f()}return a}})(n[a]);o&&r.push(o)}return r}function M\
f(e,t){Ra(e,"Invalid context; ".concat(t,"\\nSee: https://github.com/dequelabs/axe-core/blob/master/doc/context.md"))}function Pf(e,n){for(var r=[],a=0,o=e[n].length;a<o;a++){var i,l=e[n][a];l instanceof t.Node?l.documentElement instanceof t.Node?r.push(e.flatTree[0]):l.host instanceof t.Node?(i=Array.from(l.children).map(function(e){return Bl(e)}),r.push.apply(r,j(i))):r.push(Bl(l)):l&&l.length&&(1<l.length?((e,t,n)=>{e.frames=e.frames||[],zm(n.shift()).forEach(function(r){var a=e.frames.find(function(e){return e.node===r});a||(a=Sf(r,e),e.frames.push(a)),a[t].push(n)})})(e,n,l):(i=zm(l[0]),r.push.apply(r,j(i.map(function(e){return Bl(e)})))))}return r.filter(function(e){return e})}function If(e,n){var o=this,i=(e=$l(e),this.frames=[],this.page="boolean"==typeof(null==(i=e)?void 0:i.page)?e.page:void 0,this.initiator="boolean"!=typeof(null==(i=e)?void 0:i.initiator)||e.initiator,this.focusable="boolean"!=typeof(null==(i=e)?void 0:i.focusable)||e.focusable,this.size="object"===a(null==(\
i=e)?void 0:i.size)?e.size:{},e=(e=>{if(Jf(e)){var t=" must be used inside include or exclude. It should not be on the same object.";Mf(!Xf(e,"fromFrames"),"fromFrames"+t),Mf(!Xf(e,"fromShadowDom"),"fromShadowDom"+t)}else{if(!Qf(e))return{include:[r],exclude:[]};e={include:e,exclude:[]}}return 0===(t=_f(e.include)).length&&t.push(r),{include:t,exclude:e=_f(e.exclude)}})(e),this.flatTree=null!=n?n:gf((e=>{for(var n=e.include,a=(e=e.exclude,Array.from(n).concat(Array.from(e))),o=0;o<a.length;o++){var i=a[o];if(i instanceof t.Element)return i.ownerDocument.documentElement;if(i instanceof t.Document)return i.documentElement}return r.documentElement})(e)),this.exclude=e.exclude,this.include=e.include,this.include=Pf(this,"include"),this.exclude=Pf(this,"exclude"),Pm("frame, iframe",this).forEach(function(e){var t;am(e,o)&&(t=o,Td(e=e.actualNode))&&!Hu(t.frames,"node",e)&&t.frames.push(Sf(e,t))}),void 0===this.page&&(this.page=(e=>1===(e=e.include).length&&e[0].actualNode===r.documentElement\
)(this),this.frames.forEach(function(e){e.page=o.page})),this);if(0===i.include.length&&0===i.frames.length)throw i=Iu.isInFrame()?"frame":"page",new Error("No elements found for include in "+i+" Context");Array.isArray(this.include)||(this.include=Array.from(this.include)),this.include.sort(lm)}function Bf(e){return!1===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).iframes?[]:new If(e).frames.map(function(e){var t=e.node;return(e=O(e,y)).initiator=!1,{frameSelector:_l(t),frameContext:e}})}function jf(e){var t=o._audit.rules.find(function(t){return t.id===e});if(t)return t;throw new Error("Cannot find rule by id: ".concat(e))}function Lf(e,t){return e=e.getPropertyValue(t),["scroll","auto"].includes(e)}var qf=hl(function(e){var n,r,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,o=e.scrollWidth>e.clientWidth+a;a=e.clientHeight+a<e.scrollHeight;if(o||a)return n=Lf(r=t.getComputedStyle(e),"overflow-x"),r=Lf(r,"overflow-y"),o&&n||a&&r?{elm:e,top:e.scrollTop,left:e\
.scrollLeft}:void 0}),zf=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:t,n=e.document.documentElement;return[void 0!==e.pageXOffset?{elm:e,top:e.pageYOffset,left:e.pageXOffset}:{elm:n,top:n.scrollTop,left:n.scrollLeft}].concat(function e(t){return Array.from(t.children||t.childNodes||[]).reduce(function(t,n){var r=qf(n);return r&&t.push(r),t.concat(e(n))},[])}(r.body))};function Vf(){return $l($c)}var Gf,$f=function(e){if(e)return function(t){var n=t.data,r=void 0!==(r=t.isCrossOrigin)&&r,a=t.shadowId,o=t.root,i=t.priority,l=(t=void 0!==(t=t.isLink)&&t,e.createElement("style"));return t?(t=e.createTextNode('@import "'.concat(n.href,'"')),l.appendChild(t)):l.appendChild(e.createTextNode(n)),e.head.appendChild(l),{sheet:l.sheet,isCrossOrigin:r,shadowId:a,root:o,priority:i}};throw new Error("axe.utils.getStyleSheetFactory should be invoked with an argument")},Hf=["_internals","internals","internals_"],Uf=["internals","privateInternals"];function Wf(e){if(ns(e.nod\
eName.toLowerCase())){var n=null==(n=globalThis._elementInternals)?void 0:n.get(e);if(n)return n;if("ElementInternals"in t){var r,a=Q(Hf);try{for(a.s();!(r=a.n()).done;){var o,i=r.value;if((null==(o=Object.getOwnPropertyDescriptor(e,i))||!o.get)&&e[i]instanceof t.ElementInternals)return e[i]}}catch(n){a.e(n)}finally{a.f()}var l=Object.getOwnPropertySymbols(e);if(l.length){var u,s=Q(Uf);try{var c;for(s.s();!(u=s.n()).done;)if(0!==(c=(()=>{var n,r=u.value,a=l.find(function(e){return e.description===r});if(a)return null!=(n=Object.getOwnPropertyDescriptor(e,a))&&n.get?0:e[a]instanceof t.ElementInternals?{v:e[a]}:void 0})())&&c)return c.v}catch(n){s.e(n)}finally{s.f()}}}}}var Yf=function(e){var t;return Gf&&Gf.parentNode?(void 0===Gf.styleSheet?Gf.appendChild(r.createTextNode(e)):Gf.styleSheet.cssText+=e,Gf):e?(t=r.head||r.getElementsByTagName("head")[0],(Gf=r.createElement("style")).type="text/css",void 0===Gf.styleSheet?Gf.appendChild(r.createTextNode(e)):Gf.styleSheet.cssText=e,t.append\
Child(Gf),Gf):void 0};function Kf(e){return!!e&&"object"===a(e)&&"number"==typeof e.length&&e instanceof t.Node==0}function Xf(e,t){return!(!e||"object"!==a(e))&&Object.prototype.hasOwnProperty.call(e,t)}function Zf(e){return Jf(e)||Qf(e)}function Jf(e){return["include","exclude"].some(function(t){return Xf(e,t)&&Qf(e[t])})}function Qf(e){return"string"==typeof e||e instanceof t.Node||em(e)||tm(e)||Kf(e)}function em(e){return Xf(e,"fromFrames")}function tm(e){return Xf(e,"fromShadowDom")}var nm=function e(n,r){var a,o=Bl(n);return 9!==n.nodeType&&(11===n.nodeType&&(n=n.host),o&&null!==o._isHidden?o._isHidden:!(a=t.getComputedStyle(n,null))||!n.parentNode||"none"===a.getPropertyValue("display")||!r&&"hidden"===a.getPropertyValue("visibility")||"true"===n.getAttribute("aria-hidden")||(r=e(n.assignedSlot||n.parentNode,!0),o&&(o._isHidden=r),r))};function rm(e){var t=null!=(t=null==(t=e.props)?void 0:t.nodeName)?t:e.nodeName.toLowerCase();return"http://www.w3.org/2000/svg"!==e.namespaceURI\
&&!!$c.htmlElms[t]}function am(e,t){var n=void 0===(n=t.include)?[]:n;t=void 0===(t=t.exclude)?[]:t,n=n.filter(function(t){return Ku(t,e)});return 0!==n.length&&(0===(t=t.filter(function(t){return Ku(t,e)})).length||(n=om(n),Ku(om(t),n)))}function om(e){var t,n,r=Q(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;t&&Ku(a,t)||(t=a)}}catch(e){r.e(e)}finally{r.f()}return t}function im(e,t){return e.length===t.length&&e.every(function(e,n){var r=t[n];return Array.isArray(e)?e.length===r.length&&e.every(function(e,t){return r[t]===e}):e===r})}var lm=function(e,t){return(e=e.actualNode||e)===(t=t.actualNode||t)?0:4&e.compareDocumentPosition(t)?-1:1};function um(e){return e instanceof ma?{vNode:e,domNode:e.actualNode}:{vNode:Bl(e),domNode:e}}var sm,cm,dm=function(e,t,n,r){var a,o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],i=Array.from(e.cssRules);return i?(a=i.filter(function(e){return 3===e.type})).length?(a=a.filter(function(e){return e.href}).map(function(e){return e.href}).fi\
lter(function(e){return!r.includes(e)}).map(function(e,a){a=[].concat(j(n),[a]);var o=/^https?:\\/\\/|^\\/\\//i.test(e);return fm(e,t,a,r,o)}),(i=i.filter(function(e){return 3!==e.type})).length&&a.push(Promise.resolve(t.convertDataToStylesheet({data:i.map(function(e){return e.cssText}).join(),isCrossOrigin:o,priority:n,root:t.rootNode,shadowId:t.shadowId}))),Promise.all(a)):Promise.resolve({isCrossOrigin:o,priority:n,root:t.rootNode,shadowId:t.shadowId,sheet:e}):Promise.resolve()},pm=function(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]&&arguments[4];return(e=>{try{return!(!e.cssRules&&e.href)}catch(e){return!1}})(e)?dm(e,t,n,r,a):fm(e.href,t,n,r,!0)},fm=function(e,n,r,a,o){return null==e?Promise.resolve():(a.push(e),new Promise(function(n,r){var a=new t.XMLHttpRequest;a.open("GET",e),a.timeout=da.preload.timeout,a.addEventListener("error",r),a.addEventListener("timeout",r),a.addEventListener("loadend",function(e){if(e.loaded&&a.responseText)return n(a.responseText);r(a.respon\
seText)}),a.send()}).then(function(e){return e=n.convertDataToStylesheet({data:e,isCrossOrigin:o,priority:r,root:n.rootNode,shadowId:n.shadowId}),pm(e.sheet,n,r,a,e.isCrossOrigin)}))},mm=function(e){return"string"==typeof e&&(e=e.trim().match(/^([-+]?\\d+)/))?Number(e[1]):null};function hm(){if(t.performance)return t.performance.now()}sm=hm(),cm=!1;var gm={start:function(){this.reset(),cm=!0,this.mark("mark_axe_start")},end:function(){this.mark("mark_axe_end"),this.measure("axe","mark_axe_start","mark_axe_end",!0),this.logMeasures("axe"),this.clearMark("mark_axe_start","mark_axe_end"),cm=!1},auditStart:function(){cm||this.reset(),this.mark("mark_audit_start")},auditEnd:function(){this.mark("mark_audit_end"),this.measure("audit_start_to_end","mark_audit_start","mark_audit_end",!0),this.logMeasures(),this.clearMark("mark_audit_start","mark_audit_end")},mark:function(e){var n;null!=(n=t.performance)&&n.mark&&t.performance.mark(e)},measure:function(e,n,r){var a,o=3<arguments.length&&void 0!\
==arguments[3]&&arguments[3];if(null!=(a=t.performance)&&a.measure){try{t.performance.measure(e,n,r)}catch(e){this._log(e)}o||this.clearMark(n,r)}},logMeasures:function(e){function n(e){return Array.isArray(e)?e[e.length-1]:e}function r(e){o._log("Measure "+e.name+" took "+e.duration+"ms")}var a,o=this;if(null!=(a=t.performance)&&a.getEntriesByType&&null!=(a=t.performance)&&a.getEntriesByName){var i=n(t.performance.getEntriesByName("mark_axe_start"))||n(t.performance.getEntriesByName("mark_audit_start"));if(i)for(var l=t.performance.getEntriesByType("measure").filter(function(e){return e.startTime>=i.startTime}),u=0;u<l.length;++u){var s=l[u];if(s.name===e)return void r(s);e||r(s)}else this._log("Axe must be started before using performanceTimer")}},timeElapsed:function(){return hm()-sm},clearMark:function(){var e;if(null!=(e=t.performance)&&e.clearMarks){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];for(var o=0,i=r;o<i.length;o++){var l=i[o];t.performance.cle\
arMarks(l)}}},reset:function(){sm=hm()},_log:function(e){pa(e)}};function vm(){var e,t,n,a;return r.elementsFromPoint||r.msElementsFromPoint||((e=r.createElement("x")).style.cssText="pointer-events:auto",e="auto"===e.style.pointerEvents,t=e?"pointer-events":"visibility",n=e?"none":"hidden",(a=r.createElement("style")).innerHTML=e?"* { pointer-events: all }":"* { visibility: visible }",function(e,o){var i,l,u,s=[],c=[];for(r.head.appendChild(a);(i=r.elementFromPoint(e,o))&&-1===s.indexOf(i);)s.push(i),c.push({value:i.style.getPropertyValue(t),priority:i.style.getPropertyPriority(t)}),i.style.setProperty(t,n,"important");for(s.indexOf(r.documentElement)<s.length-1&&(s.splice(s.indexOf(r.documentElement),1),s.push(r.documentElement)),l=c.length;u=c[--l];)s[l].style.setProperty(t,u.value||"",u.priority);return r.head.removeChild(a),s})}"function"==typeof t.addEventListener&&(r.elementsFromPoint=vm());var bm=function(e,t){return e.concat(t).filter(function(e,t,n){return n.indexOf(e)===t})};\
function ym(e,t,n,r,a){return(a=a||{}).vNodes=e,a.vNodesIndex=0,a.anyLevel=t,a.thisLevel=n,a.parentShadowId=r,a}var wm=function(e,t,n){if(r=df(e=Array.isArray(e)?e:[e],t=Jl(t),n))return r;for(var r=e,a=(e=t,n),o=Il.get("qsa.recycledLocalVariables",function(){return[]}),i=[],l=ym(Array.isArray(r)?r:[r],e,null,r[0].shadowId,o.pop()),u=[];l.vNodesIndex<l.vNodes.length;){for(var s,c=l.vNodes[l.vNodesIndex++],d=null,p=null,f=((null==(s=l.anyLevel)?void 0:s.length)||0)+((null==(s=l.thisLevel)?void 0:s.length)||0),m=!1,h=0;h<f;h++){var g=h<((null==(g=l.anyLevel)?void 0:g.length)||0)?l.anyLevel[h]:l.thisLevel[h-((null==(g=l.anyLevel)?void 0:g.length)||0)];if((!g[0].id||c.shadowId===l.parentShadowId)&&Ql(c,g[0]))if(1===g.length)m||a&&!a(c)||(u.push(c),m=!0);else{var v=g.slice(1);if(!1===[" ",">"].includes(v[0].combinator))throw new Error("axe.utils.querySelectorAll does not support the combinator: "+g[1].combinator);(">"===v[0].combinator?d=d||[]:p=p||[]).push(v)}g[0].id&&c.shadowId!==l.parentS\
hadowId||null==(v=l.anyLevel)||!v.includes(g)||(p=p||[]).push(g)}for(c.children&&c.children.length&&(i.push(l),l=ym(c.children,p,d,c.shadowId,o.pop()));l.vNodesIndex===l.vNodes.length&&i.length;)o.push(l),l=i.pop()}return u},Dm=function(e){var t,n,a,i;e=void 0===(e=e.treeRoot)?o._tree[0]:e;return t=[],e=wm(e,"*",function(e){return!t.includes(e.shadowId)&&(t.push(e.shadowId),!0)}).map(function(e){return{shadowId:e.shadowId,rootNode:is(e.actualNode)}}),(e=bm(e,[])).length?(n=r.implementation.createHTMLDocument("Dynamic document for loading cssom"),n=$f(n),a=n,i=[],e.forEach(function(e,t){var n=e.rootNode,r=((e,t,n)=>{t=11===e.nodeType&&t?((e,t)=>Array.from(e.children).filter(xm).reduce(function(n,r){var a=r.nodeName.toUpperCase();r="STYLE"===a?r.textContent:r;return(r=t({data:r,isLink:"LINK"===a,root:e})).sheet&&n.push(r.sheet),n},[]))(e,n):(e=>Array.from(e.styleSheets).filter(function(e){return!!e.media&&Em(e.media.mediaText)}))(e);var r=[];return t.filter(function(e){if(e.href){if(r.in\
cludes(e.href))return!1;r.push(e.href)}return!0})})(n,e=e.shadowId,a);if(!r)return Promise.all(i);var o=t+1,l={rootNode:n,shadowId:e,convertDataToStylesheet:a,rootIndex:o},u=[];t=Promise.all(r.map(function(e,t){return pm(e,l,[o,t],u)}));i.push(t)}),Promise.all(i).then(function e(t){return t.reduce(function(t,n){return Array.isArray(n)?t.concat(e(n)):t.concat(n)},[])})):Promise.resolve()};function xm(e){var t=e.nodeName.toUpperCase(),n=e.getAttribute("href"),r=e.getAttribute("rel");n="LINK"===t&&n&&r&&e.rel.toUpperCase().includes("STYLESHEET");return"STYLE"===t||n&&Em(e.media)}function Em(e){return!e||!e.toUpperCase().includes("PRINT")}var Am=function(e){return e=void 0===(e=e.treeRoot)?o._tree[0]:e,e=wm(e,"video[autoplay], audio[autoplay]",function(e){return("none"!==(e=e.actualNode).preload||0!==e.readyState||e.networkState===e.NETWORK_LOADING)&&!(e.hasAttribute("paused")||e.hasAttribute("muted")||(e.hasAttribute("src")?!e.getAttribute("src"):Array.from(e.getElementsByTagName("source"\
)).filter(function(e){return!!e.getAttribute("src")}).length<=0))}),Promise.all(e.map(function(e){var t;e=e.actualNode;return t=e,new Promise(function(e){0<t.readyState&&e(t),t.addEventListener("loadedmetadata",function n(){t.removeEventListener("loadedmetadata",n),e(t)})})}))};function Fm(e){var t={cssom:Dm,media:Am};return Cm(e)?new Promise(function(n,r){var a=km(e),o=a.assets,i=setTimeout(function(){return r(new Error("Preload assets timed out."))},a.timeout);Promise.all(o.map(function(n){return t[n](e).then(function(e){return N({},n,e)})})).then(function(e){e=e.reduce(function(e,t){return B({},e,t)},{}),clearTimeout(i),n(e)}).catch(function(e){clearTimeout(i),r(e)})}):Promise.resolve()}function Cm(e){return!e||null==e.preload||("boolean"==typeof e.preload?e.preload:"object"===a(e=e.preload)&&Array.isArray(e.assets))}function km(e){var t=(n=da.preload).assets,n={assets:t,timeout:n.timeout};if(e.preload&&"boolean"!=typeof e.preload){if(!e.preload.assets.every(function(e){return t.inc\
ludes(e.toLowerCase())}))throw new Error("Requested assets, not supported. Supported assets are: ".concat(t.join(", "),"."));n.assets=bm(e.preload.assets.map(function(e){return e.toLowerCase()}),[]),e.preload.timeout&&"number"==typeof e.preload.timeout&&!isNaN(e.preload.timeout)&&(n.timeout=e.preload.timeout)}return n}function Rm(e){var t=o._audit.data.checks||{},n=o._audit.data.rules||{},r=Hu(o._audit.rules,"id",e.id)||{},a=(e.tags=$l(r.tags||[]),Nm(t,!0,r)),i=Nm(t,!1,r);e.nodes.forEach(function(e){e.any.forEach(a),e.all.forEach(a),e.none.forEach(i)}),Zu(e,$l(n[e.id]||{}))}function Nm(e,t,n){return function(r){var o,i=(o=e[r.id]||{}).messages||{};delete(o=Object.assign({},o)).messages,n.reviewOnFail||void 0!==r.result?o.message=r.result===t?i.pass:i.fail:("object"!==a(i.incomplete)||Array.isArray(r.data)||(o.message=((e,t)=>{function n(e){return e.incomplete&&e.incomplete.default?e.incomplete.default:xf()}if(!e||!e.missingData)return e&&e.messageKey?t.incomplete[e.messageKey]:n(t);try\
{var r=t.incomplete[e.missingData[0].reason];if(r)return r;throw new Error}catch(r){return"string"==typeof e.missingData?t.incomplete[e.missingData]:n(t)}})(r.data,i)),o.message||(o.message=i.incomplete)),"function"!=typeof o.message&&(o.message=Rf(o.message,r.data)),Zu(r,o)}}var Tm=function(e,t){return wm(e,t)};function Om(e,t){var n,r=o._audit&&o._audit.tagExclude?o._audit.tagExclude:[],a=t.hasOwnProperty("include")||t.hasOwnProperty("exclude")?(n=t.include||[],n=Array.isArray(n)?n:[n],a=t.exclude||[],(a=Array.isArray(a)?a:[a]).concat(r.filter(function(e){return-1===n.indexOf(e)}))):(n=Array.isArray(t)?t:[t],r.filter(function(e){return-1===n.indexOf(e)}));return!!(n.some(function(t){return-1!==e.tags.indexOf(t)})||0===n.length&&!1!==e.enabled)&&a.every(function(t){return-1===e.tags.indexOf(t)})}var Sm=function(e,t,n){var r=n.runOnly||{};n=(n.rules||{})[e.id];return!(e.pageLevel&&!t.page)&&("rule"===r.type?-1!==r.values.indexOf(e.id):n&&"boolean"==typeof n.enabled?n.enabled:"tag"===r.\
type&&r.values?Om(e,r.values):Om(e,[]))};function _m(e,t){var n,r,a;return t?(a=e.cloneNode(!1),n=Pa(a),a=1===a.nodeType?(r=a.outerHTML,Il.get(r,function(){return Mm(a,n,e,t)})):Mm(a,n,e,t),Array.from(e.childNodes).forEach(function(e){a.appendChild(_m(e,t))}),a):e}function Mm(e,t,n,a){return t&&(e=r.createElement(e.nodeName),Array.from(t).forEach(function(t){var r,o,i;r=n,o=t.name,void 0!==(i=a)[o]&&(!0===i[o]||Ia(r,i[o]))||e.setAttribute(t.name,t.value)})),e}function Pm(e,t){var n=[];if(o._selectCache)for(var r=0,a=o._selectCache.length;r<a;r++){var i=o._selectCache[r];if(i.selector===e)return i.result}for(var l,u=t.include.reduce(function(e,t){return e.length&&Ku(e[e.length-1],t)||e.push(t),e},[]),s=(l=t).exclude&&0!==l.exclude.length?function(e){return am(e,l)}:null,c=0;c<u.length;c++){var d=u[c];n=((e,t)=>{if(0===e.length)return t;var n;e.length<t.length&&(n=e,e=t,t=n);for(var r=0,a=t.length;r<a;r++)e.includes(t[r])||e.push(t[r]);return e})(n,wm(d,e,s))}return o._selectCache&&o._se\
lectCache.push({selector:e,result:n}),n}function Im(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if("object"!==a(e)||null===e)return{message:String(e)};var n,r={},o=Q(da.serializableErrorProps);try{for(o.s();!(n=o.n()).done;){var i=n.value;["string","number","boolean"].includes(a(e[i]))&&(r[i]=e[i])}}catch(e){o.e(e)}finally{o.f()}return e.cause&&(r.cause=t<10?Im(e.cause,t+1):"..."),r}function Bm(e){var t,n,r=e.error,a=e.ruleId,o=e.method;e=e.errorNode;return K(this,Bm),(n=S(this,Bm)).name=null!=(t=r.name)?t:"RuleError",n.message=r.message,n.stack=r.stack,r.cause&&(n.cause=Im(r.cause)),a&&(n.ruleId=a,n.message+=" Skipping ".concat(n.ruleId," rule.")),o&&(n.method=o),e&&(n.errorNode=e),n}P(Bm,function(e){var t="function"==typeof Map?new Map:void 0;return function(e){if(null===e||!(e=>{try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}})(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must e\
ither be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return T(e,arguments,M(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),I(n,e)}(e)}(Error));var jm=Z(Bm),Lm=function(e){e.forEach(function(e){var n=e.elm,r=e.top;e=e.left;if(n===t)return n.scroll(e,r);n.scrollTop=r,n.scrollLeft=e})};function qm(e){return function e(t,n){var r=t.shift();return n=r?n.querySelector(r):null,0===t.length?n:null!=n&&n.shadowRoot?e(t,n.shadowRoot):null}(Array.isArray(e)?j(e):[e],r)}function zm(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r,n=Array.isArray(e)?j(e):[e];return 0===e.length?[]:function e(t,n){t=function(e){return Y(e)||L(e)||ee(e)||W()}(t);var r=t[0],a=te(t).slice(1);if(t=n.querySelectorAll(r),0===a.length)return Array.from(t);var o,i=[],l=Q(t);try{for(l.s();!(o=l.n()).done;){var u=o.value;null!=u&&u.shadowRoot&&i.push.apply(i,j(e(a,u.shadowRoot)))}}ca\
tch(e){l.e(e)}finally{l.f()}return i}(n,t)}var Vm=function(){return["hidden","text","search","tel","url","email","password","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]},Gm=[,[,[1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,,1,1,1,1,1,1,,1],[1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,,1,1,1,,1,1,,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1],[,1,1,,1,1,1,1,1,1,1,,1,,1,1,1,1,1,1,1,1,,1,1,1,1],[1,1,1,1,1,1,,,,,,1,1,1,1,,,1,1,1,,1,,1,,1,1],[1,1,1,,1,1,,1,1,1,,1,,,1,1,1,,,1,1,1,,,,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,,,,,1,1,1,,1,1,1,1,1,1,,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,,1,1,1],[,1,,,,,,1,,1,,,,,1,,1,,,1,1,1,,1,,,1],[1,,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,,,1,\
1,1,1,,,1,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,1,1,,,1,,,,1,1,1,1,,1,,1,,1,,,,,,1],[1,,1,1,1,1,,,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1],[1,,1,,1,,,,,1,,1,1,1,1,1,,,,1,1,1,1],[,1,1,1,1,1,,1,1,1,,1,,1,1,1,,,1,1,1,1,1,1,1,1],[,,1,,,1,,1,,,,1,1,1,,,,,,,,,,,1],[1,1,1,1,1,1,,1,1,1,,1,1,,1,1,1,1,1,1,1,1,,,1,1,1],[1,1,1,1,1,,,1,,,1,,,1,1,1,,,,,1,,,,,,1]],[,[1,1,1,1,1,1,1,1,1,1,1,,1,,1,1,1,,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,,1,,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1],[1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,,,1,1,1\
,1,1,1,1,1,1,,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1],[,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]],[,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1\
,1,1,1],[,1,1,1,1,1,,1,1,1,1,1,1,,1,1,,1,1,1,1,1,1,1,,1],[,1,,1,1,1,,1,1,,1,,1,1,1,1,1,1,1,1],[,1,,1,1,1,1,1,1,1,1,,,1,1,1,,,1,1,,,,,,1,1],[1,1,1,,,,,1,,,,1,1,,1,,,,,,1,,,,,1],[,1,,,1,,,1,,,,,,1],[,1,,1,,,,1,,,,1],[1,,1,1,1,,1,1,1,,1,1,1,1,1,1,1,1,1,,1,,,1,1,1,1],[,1,1,1,1,1,,,1,,,1,,1,1,,1,,1,,,,,1,,1],[,1,,,,1,,,1,1,,1,,1,1,1,1,,1,1,,,1,,,1],[,1,1,,,,,,1,,,,1,1,1,1,,1,1,1,1,1,1,,1,1,1],[,1,,1,1,1,,,1,1,1,1,1,1,,1,,,,1,1,1,,1,,1],[,1,,1,,1,,1,,1,,1,1,1,1,1,,,1,1,1],[,1,1,1,,,,1,1,1,,1,1,,,1,1,1,1,1,1,1,,1,1],[1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,,,1,1,1,1,1,1,1],[,1,1,1,,1,1,1,,1,,,,,1,1,1,,,1,,1,,,1,1],[,,,,1,,,,,,,,,,,,,,,,,1],[1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,1,1,1,,1,1,,,,1,1,1,1,1,,,1,1,1,,,,1,1],[1,1,1,1,,,,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1],[1,,,,,,,1,,,,,,,1],[,1,1,,1,1,,1,,,,,,,,,,,,,1],[,,,,,,,,1],[1,1,1,,,,,,,,,,,,,1],[,,,,,,,,1,,,1,,,1,1,,,,,1]],[,[1,1,,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,,1,1,1\
,1,1,1],[,1,1,,1,1,1,1,,1,1,,1,1,1,1,1,1,1,,1,1,1,1,,1],[,,,1,,,,,,,,,,,,,,,1],[,1,,,1,1,,1,,1,1,,,,1,1,,,1,1,,,,1],[1,,,1,1,1,1,1,1,1,,1,1,1,1,,1,1,1,1,,,1,,,,1],,[,1,1,1,1,1,,1,1,1,,1,1,,1,1,,,1,1,1,1,,1,1,,1],[,1,,,1,,,1,,1,,,1,1,1,1,,,1,1,,1,1,1,1],[,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1],[,1,1,1,1,1,1,,,1,1,1,1,1,1,1,,,1,,,1,,1],[,1,,,,,,1,,,,1,1,,,,,,1,1,,,,,1],[,,,,,,,1,,,,1,,1,1],[,1,1,1,1,1,1,1,,,,1,1,1,1,1,,,1,1,,1,1,1,1,1],[,1,,,1,1,,1,,1,1,1,,,1,1,,,1,,1,1,1,1,,1],[,1,1,1,,1,1,,1,1,,1,1,,1,1,1,1,1,1,1,,1,1,1,1,1],[,,,,,,,,,,,,,,,,1],,[,1,1,1,1,1,,1,1,1,,,1,,1,1,,1,1,1,1,1,,1,,1],[,,1,,,1,,,1,1,,1,1,,1,1,,1,,,,,,,,,1],[,1,1,,1,,,,1,1,,1,,1,1,1,1,,1,1,1,1,,,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1],[1,1],[,1,,,,,,,,,,1,1,,,,,,1,1,,1,,1,,1,1],,[,1,1,,1,,,1,,1,,,,1,1,1,,,1,,,1,,,,1],[1,1,,,1,1,,1,,,,,1,,1]],[,[,1],[,,,1,,,,1,,,,1,,,,1,,,1,,,1],[,,,,,,,,,,,,,,,,,,1,1,,,,,,1],,[1,,,,,1],[,1,,,,1,,,,1],[,1,,,,,,,,,,,1,1,,1,,,,,,,,,1,1],[,,,,,,,,,,,,,,,,\
,,,1,,1],[,,,,,,,,,,,,,,,,1,,,,1,,1],[,1],[,1,,1,,1,,1,,1,,1,1,1,,1,1,,1,,,,,,,1],[1,,,,,1,,,1,1,,1,,1,,1,1,,,,,1,,,1],[,1,1,,,1,,1,,1,,1,,1,1,1,1,1,,1,,1,,1,1,1,1],[1,1,1,1,1,,1,,1,,,,1,1,1,1,,1,1,,,1,1,1,1],[1,,,,,,,,,,,,,,,,,,,,1],[,,,,,,,,,1],,[,1,,,,,,1,1,1,,1,,,,1,,,1,1,1,,,1],[1,,,,,1,,1,1,1,,1,1,1,1,1,,1,,1,,1,,,1,1],[1,,1,1,,,,,1,,,,,,1,1,,,1,1,1,1,,,1,,1],[1,,,,1,,,,,,,,,,,,,1],[,,,,,1,,,1,,,,,,1],[,,,,,,,,,,,,,,,1],[,,,,,,,,,,,,,,,,,,,,1],[,1,,,,,,,,,,,,,,1],[,1,,,,1]],[,[1,1,1,,1,,1,1,1,1,1,1,1,1,1,,1,,1,,1,1,,,1,1,1],[,,,,,,,,,,,,1],[,,,,,,,,,,,,,,,,,,,1],,[,,,,,,,,,,,,,,,,,,1],[1,,,,,,,,,1,,,,1],[,,,,,,,,,,,,,,,,,,1],,[1,1,,,,1,1,,,,,,1,,,,1,,1,,1,1,,1],[1],[,,,,,,,,,,,1,,,,,,,,,,,1],[,1,,,,,,,1,1,,,1,,1,,,,1,,,,,,,1],[,,,,,,,,,,,,,,,,1,,,,,1],[,,1,,,,,1,,1],[1,,,,1,,,,,1,,,,1,1,,,,1,1,,,,,1],[,,,,,1],[,,,,,,,,,,,,,,,,,,,1],[1,,,1,1,,,,,,,1,,1,,1,1,1,1,1,1],[,,,,,1,,,,,,,1,,,,,,,1],,[,,1,1,1,1,1,,1,1,1,,,1,1,,,1,1,,1,1,1,,,1],[,,,,,,,,,,,,,,,,,,1],[,1,,,,1],,[1]],[,[1,1,1\
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1],[,,,1,1,1,1,,,,,,1,,1,,,,1,,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,,,1],[,1,1,1,1,,1,1,1,1,1,1,1,1,,,,1,,1,,,1,1,1,1,1],[,,,,,,,,,,,1,,,,,,,,,1,,,,1],[,1,1,,1,1,,1,,,,1,1,,1,1,,,1,,1,1,,1],[,1,,1,,1,,,1,,,1,1,,1,1,,,1,1,1],[,1,1,1,1,1,,1,1,1,,,1,1,1,1,1,1,1,1,1,1,,1,1,1,1],[,,,,,,,,,1,,1,,1,1,,,,1,,,1],[,1,,,1,1,,,,,,,,,1,1,1,,,,,1],[1,,1,1,1,,,,1,1,1,1,1,,,1,,,1,,,1,,1,,1],[,1,1,,1,1,,1,1,,,,1,1,1,,,1,1,,,1,1,1,1,1,1],[1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,,1,1,,1,1,,1,,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,,,1,,,,,,,,,1],[,1,,,,,,,,1,,,,,1,,,,1,,,1],[,1,1,1,1,,,1,1,1,1,1,,1,,1,,1,1,1,1,1,1,1,1,1,1],[,,,,,1,,1,,,,,1,1,1,1,1,,,1,,,,1],[,1,,,,,,,,1,,,,,,,,,,,,1],[1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1],[1,1,,1,,1,1,,,,1,,1,1,1,1,1,,1,1,,,,,,1],[,1,1,1,1,1,1,1,,1,1,,,1,1,,,,1,,1,1,,1,1],[,,,,,,,,,,,,,,,,,,,,,,,,1],[,1,1,,1,1,1,1,,1,,,1,1,1,1,,,1,\
,,,,,,1,1],[,1,,,,,,,,1,,,,,1]],[,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,,1,1,1,1,1],[,1,1,,,,,,,,,,,,1,1,,,,,,1],[,1,,,,,,,1],[,,,,,,,,,,,,,,1,,,,,1,,,,,,1],[1,1,,,1,,,1,1,1,,,,1],,[,,,,,,,,,,,,,1,,,,,,,,,,1],[,,,,,,,,,1,,,,,,,,,1,,,,,,,1],[1,1,1,,1,,1,1,1,1,1,1,1,1,,1,,,1,,1,,,1,1],[,,,,,,,,,1],[,1,,,,1,,,1,,,1,,,1,,,,,1],[,1,1,,1,1,,,,,,,,,,,,,,,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1],[,1,,,1,1,,1,1,1,1,,,1,1,1,,,,1,,1],[1,1,1,1,1,1,,,1,1,1,1,1,1,,1,1,,1,1,1,,1,1,,1,1],[,,,,,,,,,,,,,,,1,,,,1],,[1,1,,1,,1,,,,,,1,,1,,1,1,,1,,1,1,,1,1,,1],[,,1,,,,,,1,,,,1,,1,,,,,1],[1,,,,,,,,,1,,,,,,1,,,,1,,1,,,1],[1,,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1],[,,,1,,1,,,,,,1,,,1,,,,,,,,1],[,1,,1,,,,,,,,,,,,1],,[1,1,,,,,,,,,,,,,,,,,,,,,,1,1],[1]],[,[1,,,,,,,,,1,,,,,1,,1,,1],[,1,1,,1,1,,1,1,1,,,1,1,1,,,,1,,,1,,,,1],[,1,,,,,,,1,,,,1,,,,,,1],[1,1,1,1,1,1,,,,1,,,,,,,,,1,1,1,1],[1],[,1,1,,,1,1,,,,,1,,1,,,,,,,,1,,,,1],[1,,1,,,1,,1,,,,,1,1,1,1,,,,1,,,,1],[,,1,,,,,,,1,,,,,,,1,,,,,,\
,1],[1,,,,,,,,,,,,,,1,,,,1],[,,,1,,1,,,,,1,,,,1,1,,,,1],[1,,,,,1,,,1,1,,1,1,,,1,1,,1,1,1,,1,1,1,,1],[,1,1,,,,,1,,1,,1,1,1,,1,1,,,1,,1,1,1],[,1,,,,1,,,,1,,,1,,1,1,,,1,1,1,,,,,1],[1,,1,1,,1,,1,1,,1,,1,1,1,1,1,,,1,1,,,,,,1],[1,,,,,,,,,,,,,,,,,,1,,,1,,1],[,,,,,,,,,1,,,,,,1],[,,,,,,,,,,,,,,,,,,,,,1,,1],[,1,,,,1,,,1,1,,1,,,1,1,,,1,,,1,,,1,1],[1,1,,1,1,1,,1,1,1,,1,,1,1,1,,,1,,1,1,1],[1,,1,1,1,1,,,,1,,1,1,1,,1,,,1,1,1,,1,1,1,1,1],[1,,,,,,,,,,,,,1],[,,1,,,,,,,,,,,,,,,,,,,,1],[1,,,,,,,,,,,1,,1,,1,,,,1],[,,,1,,,,,,,,,1],[,1,,,,,,,,,,,,,,1,,,,,,,,,1],[,,,,,,,,1,1,,,,1,,,,,1,,,,,,,,1]],[,[1,1,1,1,1,1,1,,1,,1,1,1,1,1,1,,1,1,1,1,1,,,1,1,1],[,,,,,1,,,,1,1,1,,1,1,1,,,1,,1,1,,1],[,,,,,,,,,,,,,,,,,,,1,1],[,1,,,,,,1,,,,,,,,,,,,,1],[,,1,,,1,,1,1,1,,1,1,,1,,,,1,,1,1],,[,,1,,,1,,,,,,1,,,,1],[,,,,,,,,,1,,,,,,,,,,1],[1,1,1,1,1,1,,1,1,1,,,1,1,,1,,1,,,1,1,1,,,1],[,,,,,1,,,,,,,,,,,,,1],[,1,,,,,,,,,,,,1,,1,1,,1,1,,1],[,,,,,1,,,,,,,,,,,,,,1],[,1,1,1,1,,,,,1,,,1,,1,,,,1,1,,,,1,1],[,1,,,1,,,1,,1,1,,1,,,,,,,1],[,,1,,1\
,,,1,,,,,,,,,,,1,1,,,,1],[,1,,,,,,,,,,,,,,,,,1,,,,,,1],[,,,,,,,,,,,,,,,,,,1],[,1,1,,,,,,,,,,,,,,,,1,,1,1],[,,,,,,,,,,,,1],,[,1,1,1,1,,,,1,1,,1,1,1,1,1,1,,1,1,1,1,,1,,1],[1,,,,1,,,,,,,,,,1],[1,,,,,,,,,1],,[,1,,,,1,,,,,,,,,,,,,,,,,,,,1]],[,[1,1,1,1,1,1,1,1,1,1,1,1,,1,,1,1,1,1,,,,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,,1,1,,1,1,1,,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[\
1,1,,1,1,1,1,1,1,1,1,1,1,,,1,1,1,,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]],[,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,,1,,1,1,1,1],[1,1,1,1,,1,1,1,,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1],[,,,1,1,1,1,,1,,,,1,1,,,1,1,,1],[,1,1,,1,,,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,,,,,,,,,,,,1],[1,1,1,,,,,1,1,1,,1,1,1,1,1,,1,1,1,1,1,,,,,1],[,1,,,,,,,1,1,,,1,1,1,,1,,,1,1,1],[1,1,1,1,1,1,1\
,1,1,1,1,1,1,,,1,1,1,1,1,,1,1,1,1,1,1],[,1,,,,1,,,,1,,,1,,,,1,,,,,,,1,1],[,1,1,1,1,1,,,1,1,1,,1,1,1,1,,,1,1,1,1,,,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,,1,,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,,1,1,1,1,1,1],[1,1,1,,1,,,1,1,1,1,,1,1,1,1,,,,1,,1,,1,,,1],[1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,,,1,,,,,,,,,1,1,,,,,,,,,1],[,,,,,,,,,,,,,,,,,,1],[,1,,1,,1,,1,,1,,1,1,1,1,1,,,1,,1,,1,,,,1],[,1,1,1,1,1,,1,1,1,,,1,1,1,1,1,,1,1,1,,1,1,,1],[1,,,1,,,,1,1,1,,,,,1,1,,,,1,,1],[1,1,,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1],[1,1,,,,,,,,1,,1,1,,,,,,,1,,1],[,1,,,,1,,1,1,,,,1,1,,1,,,,1,1,1,,1],[,,,,,,,,,,,,,1],[,1,,,,,,1,,,,,,,1],[,,,,,,,,1,,,,1,,1,,,,,,,,,,,,1]],[,[,1,1,,1,1,1,1,,1,1,1,,1,1,,1,1,,1,1,1,1,1,1,,1],[,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1\
,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1],[,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,,1,1,1,1,1,1,1,1,1,,1,,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1],[,1,1,,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,,1,1,1,1\
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]],[,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,,1,,1],[1,1,1,1,1,,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,,1,1,1,1,1,1,1,1,1,1],[,1,,,1,,,,,,,,1,,,,,,1,,,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,,1,,1,1,1,1,1,1,,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1],[,1,1,,1,,,,1,1,1,,1,1,1,1,,,1,1,1,1,,,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,,1],[1,1,,1,,1,,1,,1,1,1,1,1,1,1,,1,1,,,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1],[1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,,1,1],[,1,1,,,,,1,1,1,,,1,,1,1,,,,1,,1,,,1,1],[,,,,,,,1,,,,1,1,1,1,1,,1,,,1,,,,,1],[1,1,1,1,,1,1,1,,1,,1,1,1,1,,1,,1,,1,1,,,1,,1],[,1,1,\
1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,,,,1,1,,1,,1,1,1,,1,,1,1,,1,1,,1,,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,,,,,,,,1,,,,,1,,1],[,1,1,1,,1,,1,,1,,,,1,,1,,,1,,,,,1,1,1],[,1,,,1,1,,1,,1,,1,1,1,1,1,,1,1,,,1,,,1],[1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,,1,,,,,1,,1,,1,,,,,1,1,,1,,,,1,1]],[,[,1,,1,,,,,,,,1,,,,,,,1,,,,1],[,,,,,,,,,1,,1,1,1,,1,,,1,,1,1],[1,1,,,,,,,1,,,,,1,,1,,,,,,1],[,1,,,,,,,,,,1,,,,,,,,,1,1],,[,,,,,,,,,,,,,,,1,,,,1,,1],[,,1,1,,1,,1,,,,,,,,1,,,,,,1],[,,,,,,,,,,,,,,,,,,,,1,1],[,1,,,,1,,,,,,,,,1],[1,,1,1,,,,1,,,,,,,,,1,,,1,,,1,1],[,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,,,1,1,,1,1,,1,,1],[,1,,,1,1,,,,,,1,,1,,1,,,1,,1,1],[1,1,1,1,,1,,1,,1,,1,1,,1,1,1,1,1,,1,1,1,1,1,1],[,1,1,,,1,,1,,1,1,1,,,1,1,1,,1,1,1,1,,1,1],[,,,,1,,,1,,,,,,,1,,,,1,1],[,1,,,,,,,,,,1,,1,,1,,,,,1,,,,,1],,[1,1,,1,,1,,1,1,,,,,,1,1,,,1,1,1,1,1,1,1,1,1],[1,1,,1,,,,,,1,,,,,1,1,1,,,,1,1,,,1],[,1,1,,1,1,,,,1,,1,1,1,1,1,,1,1,1,1,1,,1,1,1,1],[,1,1,,,1,,,,1,,,,1,1],[,,,,1\
],[,,,,,,,,,1,,,1],,[,,1,,1,,,,,,,,,1,,,,,,,,,,,,1],[,,,,,,,,,,,,,1]],[,[1,1,1,1,1,1,1,1,1,1,,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1],[,,1,1,,1,1,1,1,1,,,1,1,1,1,1,,1,1,1,1,1,,,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,,1,,,,,1],[,1,,1,,,,,,1,,,,,1,1,,,,,1,1],[,1,1,,1,1,1,1,1,1,1,1,1,1,,1,1,1,,1,,,1,,1,1,1],[,1,,,,1,,,,,,,1],[,1,,,1,,,1,,1,,1,1,,1,,,,,1,,1,,,,1,1],[,1,,,1,,,1,1,1,1,1,1,1,1,1,,1,1,,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,,1,1,1,1,1,1,1,1,1],[,,,,,,,,,,,,,,,,,,,,1],[,1,1,1,,,,1,1,,,,,,1,1,1,,1,1,1,1],[1,1,1,1,1,1,1,1,1,,1,1,1,,1,1,1,1,1,1,1,1,1,1,,1,1],[,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,,1,1,1,1,1,,1,1,1,1],[,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,,,1,1,1,1,1,1,1,,1,,1,1,1,1,1,,1,1,,1,1,1,1,1],[,1,,,,1,,,,1,,1,1,1,1,1,1,1,1,1,1,1],[,1,,,,1,,,,,,,,1,,,,,,,,,,1],[,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1],[1,1,,1,1,1,,1,1,1,,,1,1,1,1,1,1,1,1,1,1,,1,,1],[1,1,,,,,,,1,1,,,,,1,1,1,1,1,,1,1,1,1,,1],[,1,1,1,1,1,1,1,,1,1,1,,1,,1,1,1,1,,1,1,,1,1,1,1],,[,1,1,,,,,1,,1,,,,\
1,1,1,,,1,,,,,1],[,,,,,,,,,,,,,1],[,,,,,1,,,,,,,,1,1,,,,,1,,1,,,1,1],[,,,,,1,,,1,,,,,,1]],[,[,1],,,,,,,,,,,,,,,,,,,,[1,1,1,1,1,,1,1,1,1,,1,1,1,1,,1,1,1,1,,,1,1,1,1,1],[,1,,1,,1,,,1,1,1,,1,1,1,1,1,,,1,,,,1,,1,1],[,1,,1,,1,,,1,,,,,1,,,,,,1,1],[,1,,1,,,,,1,,,,1,,1,1,1,1,1,1,1,1,,1],[,1,,,,,,,,,,,,,,,1]],[,[,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,,1,,,,,,,,,1,1,,,,1],[,,,,,,1],[,,1],[,1,1,,,1,,1,,1,1,,1,1,1,,,,1,1,1,,,,,1],,[,1,,,,1,,,,,,1,,,1,,,,1,1,,1],[,,,,,,,1,,,,,,,,,1],[,1,1,,,1,1,,,,,,1,1,1,,,,1,,1,1],[,,,,,,,1,,1,,,,,,,,,,1],[,1,1,,,,,,1,1,,,,1,,,,,,,1,,,1],,[1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,,1,,,1,,,,,1,,1,,1,,1,,,,,1],[1,1,1,1,1,1,1,1,,,,,1,1,,1,1,,1,,,1,,1],[,,,,,,,,,,,,,,1,,,,,,1],,[,,,,,,,,,1,,,,1,,1,,,,,1],[,,1,,,,,,,1,,1,1,1,1,,,,,,,,,1],[,,,1,,,,,1,,,,,1,,,,,,1,,,,1],[1,,1,1,,1,1,1,1,1,,1,,,,1,1,1,,,1,1,,,,1,1],,[1,1,,,,,,,,,,1,1,1,,1,,,1],[,,,,1,,,,,,,,,,,,,,,,,,,1],[,,,,,,,,,,,,,,1,,,,,1,,1],[,,,,,,,,1]],[,[1,1,1,1,1,1,1,,1,1,1,1\
,1,1,,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,,,1,1,1,1,1,,1,1,,1,1,1,1,,1,1,1,1,1,1],[1,1,1,1,,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1],[,,1,,,1,,,,,,,,1,,,,,,1,,,,1],[1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,,1,1,1,1],[1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,,1,,,,1,1,1,1,1,1,,1,1,1,1,,1],[1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,,1,1,1,1,1,1,1,1,,1,1,1,,1,1,1,1,1,1,,1,1,1,1],[1,1,1,1,1,,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1],[1,,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1],[1,1,1,1,1,1,,1,1,1,1,1,1,,1,1,1,1,1,1,,1,1,1,1,1,1],[,,1,1,1,1,,1,,1,,1,1,1,1,1,1,1,1,1,1,1,1,,1,1],[1,1,,,,,,,1,,1,1,,1,1,1,,1,1,1,1,1,,,1],[1,1,1,1,,1,1,1,1,1,,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1],[1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1],[1,1,1,1\
,,1,,1,,1,1,1,1,1,,1,,1,1,1,1,,1,1,1,1,1],[1,1,1,1,,1,,,,,,1,,1,,,,,1,1,,,,,1],[1,,1,1,,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,,1,1,,1,,1,,,,1,1,1,1,1,,,1,1,,1,,1],[,1,1,1,1,,,,,1,,1,1,1,1,1,,,1,1,,,,1,1,1],[,1,1,1,1,1,,1,,,,,1,,1,,1,,,1,,,1,1,,1]],[,[1,1,1,1,1,1,1,1,,1,1,1,1,,1,1,1,1,1,1,,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,,1,1,1,,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,,1,1],[1,1,1,1,1,1,1,1,1,1,,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,,,,,,,,,1,,,,,1,1,,,1,,1],[1,1,1,1,1,1,1,1,1,1,1,,,,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,,,1,1,1,1,,1,1,,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1],[1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1],[,1,,,,,,1,,1,1,,1,1,1,1,1,,,1,,1,,1],[1,1,1,,1,1,1,1,,,,1,1,1,1,,1,1,1,1,1,1,1,1,1,,1],[1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1],[1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,,1,1\
,1,1,1,1],[,1,,1,,1,1,1,,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1],[,,1,,,,,,,,,,1,1,1,1,1,1,1,,1,1,,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,,,1,1,1,1,1,1,1,1,1,1,1],[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1],[,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,,1,1,1,1,1,1,1,1],[,1,,,1,1,,,,1,,1,1,1,1,1,,,,1,1,1,,1,1,1],[1,1,1,1,1,1,1,1,1,,,,1,1,1,1,1,1,1,,1,1,,1,1,1],[,1,1,1,,1,,1,1,1,1,,,1,1,1,,1,1,1,1,1,,,1,1],[1,1,,,,1,,,1,1,1,,1,,1,,1,,1,1,1,1,1,,1,1,1],[,1,,,,,,,1,,1,,1,1,1,1,,,,,,,,,1]],[,[,,,,,,,,,,,,,1,1,,,,1],[,1,,,,,,,,1,,,1,,,,,,1,,,1,,,,1],,[,1,,,,1,,1,,1,1,,1,1,,,,,,,,1],[,,,,,,,,,,,,,,,,,,,1],[,,,,,,,,,1],[1,1,1,,,1,,,1,,,,,,1,1,,,,,,,,,,1],[,1,,,,,,,,,,,,,1],[,,,,,,,,,,,,,,,,,,,1,,,1],[,,,,,,,,,1],[1,1,,,,,,1,1,1,,1,1,,,,1,1,,1,,1,1,1,,1],[,1,1,1,,1,1,,,1,,1,1,1,1,,,,,,,1,,1,,1],[,1,1,1,1,,,1,,1,,,,1,1,1,1,,1,1,,1],[,1,,,1,1,,1,,1,,1,,1,1,,1,,1,,,1,,,1,,1],[,,,,,,,,,,,1,,,1],[,,,,,,,,,1,,,,,,,,,,,,,1],,[1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1\
,1,,1,,1,1,1,1,1,1,1],[,1,,,,,,,1,1,,1,,,,,1,,,1,,1],[,1,,,,1,,,1,,,,,,,,1,,1,,,1],[,,,,,,,,,,,,,1,1,,,,1,,,1],[,,,,,1,,,1,,,,1],[,1],,[,1],[1,,,,,,,,,,,,,,1,,,,,1]],[,[,1,,,,1,1,1,1,1,1,,1,1,1,1,1,,1,1,,1,1,,,1],[,,1,,,,,,,,,1],,,[1,,,1,1,,,,,,,,1,1,,1,1,,1],,[,,,,,,,,,,,,,,,,,,1,,1],,[1,,,1,1,,1,1,,,,,1,,1,,,,,1,1,,1],[,,,,,,,,,,,1],[,1,,,,,,,,1,1,1,1,1,1,1,1,,,,1,1,,,,,1],[,,,,,,,,,,,,,,,,1,,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,,,1,1,1,1,,1,1,1,1,1,1],[,,,,,,,,,,,1,,1,,,1],[1,,,,,,,,,,,,,,,,,,1,,1],,,[,1,,,,,,,,,,,,,,1,,,,1,1],[,,,,,,,,,1,,,1,,1,,,,,,,,1],[,,,,,,,,,,,,,,,1],[,,,,,,,,,,,,,1,1,,,,,,1],,[,1]],[,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,,,1,1,,1,1,1,1,1,1,,,1,1,1,1,1,,1,1],[,1,,,,,,,,1],[,,,,1,,,1,,,1,1,,,,,,,,,1,1,,,,1],[,1,,1,1,,,1,1,1,,,,1,1,1,1,,1,1,1,1,,1],[,,,,,,,1],[,1,1,,,,,1,,1,,,,,,1,,,,,,1,,1,,1],[,1,,,,,,1,,,,1,,,,,,,,,,1],[,,1,1,,1,1,1,1,1,1,1,1,1,1,,,,1,,1,1,1,1,,1],[,1,,,,,,,,1],[,1,1,,1,,,,,,,,1,,,,,,1,,,1,,1,,1],[,1,,1,,1,,1,1,1,,1,1,1,,1\
,,,1,1,,1,1,1,1,1],[,1,1,1,1,1,,1,1,1,,,,1,1,1,,,,1,1,,,1,1],[,,1,1,1,1,,1,,1,,1,,1,1,1,1,,,,,1,,1,,1],[1,1,1,1,1,1,1,1,,1,,1,,1,1,1,,,1,1,,,,1,,1],[,,,1],,[,1,1,,1,,,1,1,1,,1,1,1,1,1,1,,1,1,,1,1,1,1,1,1],[,1,,,,,,1,,1,,1,,,,,,,1,1,,1,1],[,,1,,,,1,,1,1,,1,,1,,,,,,,,,,1],[,1,1,,1,,,,1,,,,1,1,1,,,,1,,1,1,1,,1,1],,[,1,1,,,,,,,,,,,,,1,,,1,,,,,1],[,1,,,,,,,,,,,,,,,,,,,,,,1],[,1,1,,,,,,,1,,,,1,1,,,,1,,,,,,,1]],[,[,1,1,1,1,1,,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1],[,1,1,1,1,1,,1,,1,1,,,1,1,1,1,,1,,,,,1,1,1],[,,1,1,,1,,1,1,,,,1,1,1,1,,,1,,1,1,1,1,,1],[,1,,1,,,,,,,,1,,1,,1,,1,,,,,,,,1],[,,1,,1,,,1,,,,,1,1,,,1,,1,1,1,1],[,1],[,1,1,,1,,1,1,,1,,,1,1,1,,,,1,,,1,,1],[1,1,,1,1,1,,,,,,,,1,,,,,1,,1,1,1],[,1,1,,,,,,,1,,,1,,1,,1,,1,1,,,1,,,1],[,,1,,,,,,,,,,,,,,,,,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,1,1,1,,1,,1,,,,,1,1,1,,,1,,1,,,,1],[,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,,1,,,1,1,1,1,1,,1,1,1,,1,1,1,1,1,,,,1,1],[,,,1,1,,,1,,1,,1,,1,1,1,1,,1,,,,,1],[,1,1,1,1,\
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,,,,,,,,,,,,,,,,,,1],[,1,1,,1,1,,1,,1,,,,1,1,,,1,1,,1,1,,1],[,1,1,1,1,1,,,1,1,1,,1,1,1,1,1,1,1,1,,1,1,,,1],[,1,1,1,1,1,,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1,,1,1],[,1,1,,1,,,1,,,1,,1,1,1,1,1,,1,,1,1],[,,,,,1,,,,1,,,,,1,1,,,,1],[,1,,1,1,1,,1,,,1,1,1,,,1,,,1,,1,,,1],[,,1,,,,,,,,,1,,1,,,,,1,,1],[,1,1,,,,,,,,1,1,1,,,,,,,,1,,,,,1],[,,,,,,,,1,,,,,1,,,1]],[,[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,1,,1,1,,,1,1,1,1,1,1,1,1,,,,,,,,,1,1],[,,,,,,,,1,,,,1,,1,,1,,1],[,1,,,1,1,,1,,,,1,,,,,,,,1],[,1,,1,,1,,,,1,1,,1,,1,,,,1,1,1,1,1,,,1],,[,1,,,,,,,,1,,,1,1,,,1,,1,1,,1,,1],[,1,,,1,,,,,,,,1,,,,,,,1],[1,1,,,,,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,,1,1,1],,[,1,,,,,,1,1,1,,1,1,1,1,1,,,1,,1,1,,,,1],[,1,1,,,1,,1,,1,,,1,1,1,1,,,1,,,1,,,,1],[,1,1,1,1,1,,1,1,1,,1,1,1,1,1,1,1,1,1,1,,,,1,,1],[,1,1,,1,1,,1,1,,,1,1,,1,1,,1,,1,,1],[1,,1,,,,,1,,1,,1,1,1,1,,,,,1,1,,,,1,1],[,1,1,,,,,1,1,,,1,,1,1,1,1,,,,,,,,,,1],,[,1,1,,,1,,,,1,,1,1,1,1,1,,,,1,,,,1,,1],[,,,1,1,,,\
1,,,,,1,1,1,1,1,,1,1,,,,,,1],[,1,,,,,,,,,,,1,,,,1,,,,,,,1,,1],[,1,1,1,1,1,1,1,,1,1,1,1,1,1,,1,1,1,,1,1,,1,1,1,1],[,1,,,,,,,,,,,,,,,,,,,1],[,1,,,,,,1,,,,,1,,1,,,1,1,,1,1,,1],[,1,,,,,,1,,,,,1,1,,,,,,,,1,,,,1],[,,,,,,,,,,,,,,,,,,1,,,1,,,,,1],[,,,,,,,1,,,,1]],[,[1,1,1,1,1,1,1,1,1,1,1,1,1,1,,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,1,,1,,,,,,,1,,,,,,,,1,1,,1],[,1,,,1,,,,1],[,,,,,,,,,,1],[,1,,,,,,1,1,,,,,1,1],,[,1,1,,,,,,1,,,,,1,1,,,,1],[1,,1,,1,,,,,1,,,,,1,,,,,,,,,1,1],[,1,1,,,,,,,,,1,1,1,1,,,,1,,,,,1,,,1],,[,1,1,,1,,,1,1,,,1,,,1,1,1,,1,,1,1,1,,,,1],[,1,,,,1,,,,,1,,,1,1,,,1,,1,,1,,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,1,,,1,1,,1,,,,1,,,,,,,,1],[,,,1,,,,,1,,,,,1,,1,,1,1,1],[,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],[,,,,,1],[,1,,,,,,1,,,,,,,1,1,1,,,1],[,1,,,,,,,,,,1,1,1,,,,,1,,,1],[,,,,,1,,1,,,,,1,1,1,,1,1,,1,1,1,,,1,1],[1,1,,,,,,,1,,,,,1,1,,,,,,,,,,,1],,[,1],[,,,,,,,,,,,,,,,,,,,,,,,,1],[,,1,,,,,1,,,1,,,,1,,1],[,1,,,,,,,,,1]]];function $m(e){e=Array.isArray(e)?e:Gm;var\
 t=[];return e.forEach(function(e,n){var r=String.fromCharCode(n+96).replace("\`","");Array.isArray(e)?t=t.concat($m(e).map(function(e){return r+e})):t.push(r)}),t}var Hm=function(e){for(var t=Gm;e.length<3;)e+="\`";for(var n=0;n<=e.length-1;n++)if(!(t=t[e.charCodeAt(n)-96]))return!1;return!0};function Um(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=[],n=[];if(o._audit.rules.forEach(function(e){n.push(e.id),e.tags.forEach(function(e){t.includes(e)||t.push(e)})}),["object","string"].includes(a(e.runOnly))){if("string"==typeof e.runOnly&&(e.runOnly=[e.runOnly]),Array.isArray(e.runOnly)){var r=e.runOnly.find(function(e){return t.includes(e)}),i=e.runOnly.find(function(e){return n.includes(e)});if(r&&i)throw new Error("runOnly cannot be both rules and tags");e.runOnly=i?{type:"rule",values:e.runOnly}:{type:"tag",values:e.runOnly}}if((r=e.runOnly).value&&!r.values&&(r.values=r.value,delete r.value),!Array.isArray(r.values)||0===r.values.length)throw new Error("runOnly.v\
alues must be a non-empty array");if(["rule","rules"].includes(r.type))r.type="rule",r.values.forEach(function(e){if(!n.includes(e))throw new Error("unknown rule \`"+e+"\` in options.runOnly")});else{if(!["tag","tags",void 0].includes(r.type))throw new Error("Unknown runOnly type '".concat(r.type,"'"));r.type="tag",i=r.values.filter(function(e){return!t.includes(e)&&!/wcag2[1-3]a{1,3}/.test(e)}),0!==i.length&&o.log("Could not find tags \`"+i.join("\`, \`")+"\`")}}return"object"===a(e.rules)&&Object.keys(e.rules).forEach(function(e){if(!n.includes(e))throw new Error("unknown rule \`"+e+"\` in options.rules")}),e}function Wm(e){var t,n,r;return K(this,Wm),(t=S(this,Wm))._props=(e=>{var t=null!=(t=e.nodeName)?t:Jm[e.nodeType],n=null!=(n=null!=(n=e.nodeType)?n:Zm[e.nodeName])?n:1,r=(Ra("number"==typeof n,"nodeType has to be a number, got '".concat(n,"'")),Ra("string"==typeof t,"nodeName has to be a string, got '".concat(t,"'")),t=t.toLowerCase(),null);return"input"===t&&(r=(e.type||e.attributes&&e\
.attributes.type||"").toLowerCase(),Vm().includes(r)||(r="text")),e=B({},e,{nodeType:n,nodeName:t}),r&&(e.type=r),delete e.attributes,Object.freeze(e)})(e),t._attrs=(e=e.attributes,n=void 0===e?{}:e,r={htmlFor:"for",className:"class"},Object.keys(n).reduce(function(e,t){var o=n[t];return Ra("object"!==a(o)||null===o,"expects attributes not to be an object, '".concat(t,"' was")),void 0!==o&&(e[r[t]||t]=null!==o?String(o):null),e},{})),t}P(Wm,ma),_i=Z(Wm,[{key:"props",get:function(){return this._props}},{key:"attr",value:function(e){return null!=(e=this._attrs[e])?e:null}},{key:"hasAttr",value:function(e){return void 0!==this._attrs[e]}},{key:"attrNames",get:function(){return Object.keys(this._attrs)}}]);var Ym,Km,Xm,Zm={"#cdata-section":2,"#text":3,"#comment":8,"#document":9,"#document-fragment":11},Jm={},Qm=(Object.keys(Zm).forEach(function(e){Jm[Zm[e]]=e}),_i),eh=function(e,t){if(e=e||function(){},t=t||o.log,!o._audit)throw new Error("No audit configured");var n=o.utils.queue(),a=[],i\
=(Object.keys(o.plugins).forEach(function(e){n.defer(function(t){function n(e){a.push(e),t()}try{o.plugins[e].cleanup(t,n)}catch(e){n(e)}})}),o.utils.getFlattenedTree(r.body));o.utils.querySelectorAll(i,"iframe, frame").forEach(function(e){n.defer(function(t,n){return o.utils.sendCommandToFrame(e.actualNode,{command:"cleanup-plugin"},t,n)})}),n.then(function(n){0===a.length?e(n):t(a)}).catch(t)},th={};function nh(e){return th.hasOwnProperty(e)}function rh(e){return"string"==typeof e&&th[e]?th[e]:"function"==typeof e?e:Ym}function ah(e){return null!=e}function oh(){return(oh=R(F().m(function e(t){return F().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(e){return setTimeout(e,t,"timeout")}))},e)}))).apply(this,arguments)}function ih(){return(ih=R(F().m(function e(){var t,n,r,o,i,l,u,s,c,d,p,f,m=arguments;return F().w(function(e){for(;;)switch(e.n){case 0:if(t=0<m.length&&void 0!==m[0]?m[0]:pa,Km){e.n=1;break}return e.a(2);case 1:return e.n=2,Promise.race([function(){r\
eturn oh.apply(this,arguments)}(Xm),Km()]);case 2:if(n=e.v,Ra("timeout"!==n,"Timeout called for elementInternals"),(n=$l(n))&&Array.isArray(n)){e.n=3;break}return t("externalAPIs.getElementInternals() did not return an array"),e.a(2);case 3:r=0;case 4:if(!(r<n.length)){e.n=14;break}if(n[r]&&"object"===a(n[r])){e.n=5;break}return t("externalAPIs.getElementInternals()[".concat(r,"] is not an object")),e.a(3,13);case 5:if(i=n[r],o=i.internals,i=i.ancestry,o&&"object"===a(o)){e.n=6;break}return t("externalAPIs.getElementInternals()[".concat(r,"].internals is not an object")),e.a(3,13);case 6:if(!i||!Array.isArray(i)&&"string"!=typeof i)return t("externalAPIs.getElementInternals()[".concat(r,"].ancestry is not a string or an array of strings")),e.a(3,13);e.n=7;break;case 7:if(l=qm(i),l=Bl(l)){e.n=8;break}return t("Unable to locate node using selector ".concat(i," from externalAPIs.getElementInternals()[").concat(r,"]")),e.a(3,13);case 8:u=0,s=Object.entries(o);case 9:if(u<s.length){if(d=U(s\
[u],2),c=d[0],"string"==typeof(d=d[1]))return e.a(3,11);e.n=10}else e.n=12;break;case 10:p=d.type,f=d.value,p||t("externalAPIs.getElementInternals()[".concat(r,"].internals.").concat(c,' is an object but has no "type" property')),f||t("externalAPIs.getElementInternals()[".concat(r,"].internals.").concat(c,' is an object but has no "value" property')),"HTMLElement"===p?((e,t,n)=>{var r=qm(n);r?e[t]=r:Object.defineProperty(e,t,{get:function(){throw new Error("Unable to locate node using selector: ".concat(n))}})})(o,c,f):"NodeList"===p&&((e,t,n)=>{var r,a=[],o=[],i=Q(n);try{for(i.s();!(r=i.n()).done;){var l=r.value,u=qm(l);u?a.push(u):o.push(l)}}catch(e){i.e(e)}finally{i.f()}0===o.length?e[t]=a:Object.defineProperty(e,t,{get:function(){throw new Error("Unable to locate nodes using selectors: ".concat(o.join(",")))}})})(o,c,f);case 11:u++,e.n=9;break;case 12:l.elementInternals=o;case 13:r++,e.n=4;break;case 14:return e.a(2)}},e)}))).apply(this,arguments)}var lh={loadElementInternals:funct\
ion(){return ih.apply(this,arguments)}};var uh={},sh=(me(uh,{getAllCells:function(){return sh},getCellPosition:function(){return Zc},getHeaders:function(){return dh},getScope:function(){return Jc},isColumnHeader:function(){return Qc},isDataCell:function(){return ph},isDataTable:function(){return fh},isHeader:function(){return mh},isRowHeader:function(){return ed},toArray:function(){return Xc},toGrid:function(){return Xc},traverse:function(){return hh}}),function(e){for(var t,n,r=[],a=0,o=e.rows.length;a<o;a++)for(t=0,n=e.rows[a].cells.length;t<n;t++)r.push(e.rows[a].cells[t]);return r});function ch(e,t,n){for(var r,a="row"===e?"_rowHeaders":"_colHeaders",i="row"===e?ed:Qc,l=(s=n[t.y][t.x]).colSpan-1,u=s.getAttribute("rowspan"),s=(u=0===parseInt(u)||0===s.rowspan?n.length:s.rowSpan,t.y+(u-1)),c=t.x+l,d="row"===e?t.y:0,p="row"===e?0:t.x,f=[],m=s;d<=m&&!r;m--)for(var h=c;p<=h;h--){var g=n[m]?n[m][h]:void 0;if(g){var v=o.utils.getNodeFromTree(g);if(v[a]){r=v[a];break}f.push(g)}}return r=(r\
||[]).concat(f.filter(i)),f.forEach(function(e){o.utils.getNodeFromTree(e)[a]=r}),r}var dh=function(e,t){if(e.getAttribute("headers")){var n=Ic(e,"headers");if(n.filter(function(e){return e}).length)return n}return t=t||Xc(cs(e,"table")),e=ch("row",n=Zc(e,t),t),n=ch("col",n,t),[].concat(e,n).reverse()},ph=function(e){var t;return!(!e.children.length&&!e.textContent.trim())&&((t=Wc(e))?["cell","gridcell"].includes(t):"TD"===e.nodeName.toUpperCase())},fh=function(e){var n=Wc(e);if(("presentation"===n||"none"===n)&&!Oc(e))return!1;if("true"===e.getAttribute("contenteditable")||cs(e,'[contenteditable="true"]'))return!0;if("grid"===n||"treegrid"===n||"table"===n)return!0;if("landmark"===Rp(n))return!0;if("0"===e.getAttribute("datatable"))return!1;if(e.getAttribute("summary"))return!0;if(e.tHead||e.tFoot||e.caption)return!0;for(var r=0,a=e.children.length;r<a;r++)if("COLGROUP"===e.children[r].nodeName.toUpperCase())return!0;for(var o,i,l,u=0,s=e.rows.length,c=!1,d=0;d<s;d++)for(var p,f=0,m=(\
p=e.rows[d]).cells.length;f<m;f++){if("TH"===(o=p.cells[f]).nodeName.toUpperCase())return!0;if(c||o.offsetWidth===o.clientWidth&&o.offsetHeight===o.clientHeight||(c=!0),o.getAttribute("scope")||o.getAttribute("headers")||o.getAttribute("abbr"))return!0;if(["columnheader","rowheader"].includes(Wc(o)))return!0;if(1===o.children.length&&"ABBR"===o.children[0].nodeName.toUpperCase())return!0;u++}if(e.getElementsByTagName("table").length)return!1;if(s<2)return!1;if(1===(n=e.rows[Math.ceil(s/2)]).cells.length&&1===n.cells[0].colSpan)return!1;if(5<=n.cells.length)return!0;if(c)return!0;for(var h=0;h<s;h++){if(p=e.rows[h],i&&i!==t.getComputedStyle(p).getPropertyValue("background-color"))return!0;if(i=t.getComputedStyle(p).getPropertyValue("background-color"),l&&l!==t.getComputedStyle(p).getPropertyValue("background-image"))return!0;l=t.getComputedStyle(p).getPropertyValue("background-image")}return 20<=s||!(_s(e).width>.95*Ms(t).width||u<10||e.querySelector("object, embed, iframe, applet"))},m\
h=function(e){return!(!Qc(e)&&!ed(e))||!!e.getAttribute("id")&&(e=Ta(e.getAttribute("id")),!!r.querySelector('[headers~="'.concat(e,'"]')))},hh=function(e,t,n,r){if(Array.isArray(t)&&(r=n,n=t,t={x:0,y:0}),"string"==typeof e)switch(e){case"left":e={x:-1,y:0};break;case"up":e={x:0,y:-1};break;case"right":e={x:1,y:0};break;case"down":e={x:0,y:1}}return function e(t,n,r,a){var o,i=r[n.y]?r[n.y][n.x]:void 0;return i?"function"==typeof a&&!0===(o=a(i,n,r))?[i]:((o=e(t,{x:n.x+t.x,y:n.y+t.y},r,a)).unshift(i),o):[]}(e,{x:t.x+e.x,y:t.y+e.y},n,r)},gh={},vh=(me(gh,{allowedAttr:function(){return vh},arialabelText:function(){return Lc},arialabelledbyText:function(){return jc},getAccessibleRefs:function(){return yh},getElementUnallowedRoles:function(){return Eh},getExplicitRole:function(){return Wc},getImplicitRole:function(){return Dd},getOwnedVirtual:function(){return Rd},getRole:function(){return Ad},getRoleType:function(){return Rp},getRolesByType:function(){return Fh},getRolesWithNameFromContent\
s:function(){return Nh},implicitNodes:function(){return Oh},implicitRole:function(){return Dd},isAccessibleRef:function(){return Sh},isAriaRoleAllowedOnElement:function(){return wh},isComboboxPopup:function(){return _h},isUnsupportedRole:function(){return Hc},isValidRole:function(){return Uc},label:function(){return Ph},labelVirtual:function(){return lp},lookupTable:function(){return Th},namedFromContents:function(){return kd},requiredAttr:function(){return Ih},requiredContext:function(){return Bh},requiredOwned:function(){return jh},validateAttr:function(){return qh},validateAttrValue:function(){return Lh}}),function(e){e=$c.ariaRoles[e];var t=j(Kc());return e&&(e.allowedAttrs&&t.push.apply(t,j(e.allowedAttrs)),e.requiredAttrs)&&t.push.apply(t,j(e.requiredAttrs)),t}),bh=/^idrefs?$/,yh=function(e){e=e.actualNode||e;var t=(t=ls(e)).documentElement||t,n=Il.get("idRefsByRoot",function(){return new Map}),r=n.get(t);return r||(r=new Map,n.set(t,r),function e(t,n,r){if(t.hasAttribute){var a;\
"LABEL"===t.nodeName.toUpperCase()&&t.hasAttribute("for")&&(a=t.getAttribute("for"),n.has(a)?n.get(a).push(t):n.set(a,[t]));for(var o=0;o<r.length;++o){var i=rd(t.getAttribute(r[o])||"");if(i){var l,u=Q(sf(i));try{for(u.s();!(l=u.n()).done;){var s=l.value;n.has(s)?n.get(s).push(t):n.set(s,[t])}}catch(e){u.e(e)}finally{u.f()}}}}for(var c=0;c<t.childNodes.length;c++)1===t.childNodes[c].nodeType&&e(t.childNodes[c],n,r)}(t,r,Object.keys($c.ariaAttrs).filter(function(e){return e=$c.ariaAttrs[e].type,bh.test(e)}))),null!=(n=r.get(e.id))?n:[]},wh=function(e,t){e=e instanceof ma?e:Bl(e);var n=Dd(e);e=wd(e);return Array.isArray(e.allowedRoles)?e.allowedRoles.includes(t):t!==n&&!!e.allowedRoles},Dh=["doc-backlink","doc-biblioentry","doc-biblioref","doc-cover","doc-endnote","doc-glossref","doc-noteref"],xh={header:"banner",footer:"contentinfo"},Eh=function(e){var t,n,r=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],a=um(e).vNode;return rm(a)?(e=a.props.nodeName,t=Dd(a)||xh[e],e=[],((n\
=a)?(n.hasAttr("role")&&(n=sf(n.attr("role").toLowerCase()),e=e.concat(n)),e.filter(function(e){return Uc(e)})):e).filter(function(e){var n=a,o=t;return!(r&&e===o||(!Dh.includes(e)||Rp(e)===o)&&wh(n,e))})):[]},Ah=function(e){return Object.keys($c.ariaRoles).filter(function(t){return $c.ariaRoles[t].type===e})},Fh=function(e){return Ah(e)},Ch=function(){return Il.get("ariaRolesNameFromContent",function(){return Object.keys($c.ariaRoles).filter(function(e){return $c.ariaRoles[e].nameFromContent})})};function kh(e){return null===e}function Rh(e){return null!==e}var Nh=function(){return Ch()},Th=((Pi={attributes:{"aria-activedescendant":{type:"idref",allowEmpty:!0,unsupported:!1},"aria-atomic":{type:"boolean",values:["true","false"],unsupported:!1},"aria-autocomplete":{type:"nmtoken",values:["inline","list","both","none"],unsupported:!1},"aria-busy":{type:"boolean",values:["true","false"],unsupported:!1},"aria-checked":{type:"nmtoken",values:["true","false","mixed","undefined"],unsupported\
:!1},"aria-colcount":{type:"int",unsupported:!1},"aria-colindex":{type:"int",unsupported:!1},"aria-colspan":{type:"int",unsupported:!1},"aria-controls":{type:"idrefs",allowEmpty:!0,unsupported:!1},"aria-current":{type:"nmtoken",allowEmpty:!0,values:["page","step","location","date","time","true","false"],unsupported:!1},"aria-describedby":{type:"idrefs",allowEmpty:!0,unsupported:!1},"aria-describedat":{unsupported:!0,unstandardized:!0},"aria-details":{type:"idref",allowEmpty:!0,unsupported:!1},"aria-disabled":{type:"boolean",values:["true","false"],unsupported:!1},"aria-dropeffect":{type:"nmtokens",values:["copy","move","reference","execute","popup","none"],unsupported:!1},"aria-errormessage":{type:"idref",allowEmpty:!0,unsupported:!1},"aria-expanded":{type:"nmtoken",values:["true","false","undefined"],unsupported:!1},"aria-flowto":{type:"idrefs",allowEmpty:!0,unsupported:!1},"aria-grabbed":{type:"nmtoken",values:["true","false","undefined"],unsupported:!1},"aria-haspopup":{type:"nmtoke\
n",allowEmpty:!0,values:["true","false","menu","listbox","tree","grid","dialog"],unsupported:!1},"aria-hidden":{type:"boolean",values:["true","false"],unsupported:!1},"aria-invalid":{type:"nmtoken",allowEmpty:!0,values:["true","false","spelling","grammar"],unsupported:!1},"aria-keyshortcuts":{type:"string",allowEmpty:!0,unsupported:!1},"aria-label":{type:"string",allowEmpty:!0,unsupported:!1},"aria-labelledby":{type:"idrefs",allowEmpty:!0,unsupported:!1},"aria-level":{type:"int",unsupported:!1},"aria-live":{type:"nmtoken",values:["off","polite","assertive"],unsupported:!1},"aria-modal":{type:"boolean",values:["true","false"],unsupported:!1},"aria-multiline":{type:"boolean",values:["true","false"],unsupported:!1},"aria-multiselectable":{type:"boolean",values:["true","false"],unsupported:!1},"aria-orientation":{type:"nmtoken",values:["horizontal","vertical"],unsupported:!1},"aria-owns":{type:"idrefs",allowEmpty:!0,unsupported:!1},"aria-placeholder":{type:"string",allowEmpty:!0,unsupporte\
d:!1},"aria-posinset":{type:"int",unsupported:!1},"aria-pressed":{type:"nmtoken",values:["true","false","mixed","undefined"],unsupported:!1},"aria-readonly":{type:"boolean",values:["true","false"],unsupported:!1},"aria-relevant":{type:"nmtokens",values:["additions","removals","text","all"],unsupported:!1},"aria-required":{type:"boolean",values:["true","false"],unsupported:!1},"aria-roledescription":{type:"string",allowEmpty:!0,unsupported:!1},"aria-rowcount":{type:"int",unsupported:!1},"aria-rowindex":{type:"int",unsupported:!1},"aria-rowspan":{type:"int",unsupported:!1},"aria-selected":{type:"nmtoken",values:["true","false","undefined"],unsupported:!1},"aria-setsize":{type:"int",unsupported:!1},"aria-sort":{type:"nmtoken",values:["ascending","descending","other","none"],unsupported:!1},"aria-valuemax":{type:"decimal",unsupported:!1},"aria-valuemin":{type:"decimal",unsupported:!1},"aria-valuenow":{type:"decimal",unsupported:!1},"aria-valuetext":{type:"string",unsupported:!1}},globalAtt\
ributes:["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dropeffect","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"]}).role={alert:{type:"widget",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},alertdialog:{type:"widget",attributes:{allowed:["aria-expanded","aria-modal","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["dialog","section"]},application:{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage","aria-activedescendant"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["article","audio","embed","iframe","object","section","svg","video"]},article:{type:"structure",attributes:{allowed:[\
"aria-expanded","aria-posinset","aria-setsize","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["article"],unsupported:!1},banner:{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["header"],unsupported:!1,allowedElements:["section"]},button:{type:"widget",attributes:{allowed:["aria-expanded","aria-pressed","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:null,implicit:["button",'input[type="button"]','input[type="image"]','input[type="reset"]','input[type="submit"]',"summary"],unsupported:!1,allowedElements:[{nodeName:"a",attributes:{href:Rh}}]},cell:{type:"structure",attributes:{allowed:["aria-colindex","aria-colspan","aria-rowindex","aria-rowspan","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["row"],implicit:["td","th"],unsupported:!1},checkbox:{type:"widget",attributes:{allowed:["aria-checked","aria-required","aria-readonly","ar\
ia-errormessage"]},owned:null,nameFrom:["author","contents"],context:null,implicit:['input[type="checkbox"]'],unsupported:!1,allowedElements:["button"]},columnheader:{type:"structure",attributes:{allowed:["aria-colindex","aria-colspan","aria-expanded","aria-rowindex","aria-rowspan","aria-required","aria-readonly","aria-selected","aria-sort","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["row"],implicit:["th"],unsupported:!1},combobox:{type:"composite",attributes:{allowed:["aria-autocomplete","aria-required","aria-activedescendant","aria-orientation","aria-errormessage"],required:["aria-expanded"]},owned:{all:["listbox","tree","grid","dialog","textbox"]},nameFrom:["author"],context:null,unsupported:!1,allowedElements:[{nodeName:"input",properties:{type:["text","search","tel","url","email"]}}]},command:{nameFrom:["author"],type:"abstract",unsupported:!1},complementary:{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom\
:["author"],context:null,implicit:["aside"],unsupported:!1,allowedElements:["section"]},composite:{nameFrom:["author"],type:"abstract",unsupported:!1},contentinfo:{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["footer"],unsupported:!1,allowedElements:["section"]},definition:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["dd","dfn"],unsupported:!1},dialog:{type:"widget",attributes:{allowed:["aria-expanded","aria-modal","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["dialog"],unsupported:!1,allowedElements:["section"]},directory:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:null,unsupported:!1,allowedElements:["ol","ul"]},document:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:nul\
l,nameFrom:["author"],context:null,implicit:["body"],unsupported:!1,allowedElements:["article","embed","iframe","object","section","svg"]},"doc-abstract":{type:"section",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-acknowledgments":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-afterword":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-appendix":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-backlink":{type:"link",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:n\
ull,unsupported:!1,allowedElements:[{nodeName:"a",attributes:{href:Rh}}]},"doc-biblioentry":{type:"listitem",attributes:{allowed:["aria-expanded","aria-level","aria-posinset","aria-setsize","aria-errormessage"]},owned:null,nameFrom:["author"],context:["doc-bibliography"],unsupported:!1,allowedElements:["li"]},"doc-bibliography":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:{one:["doc-biblioentry"]},nameFrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-biblioref":{type:"link",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:null,unsupported:!1,allowedElements:[{nodeName:"a",attributes:{href:Rh}}]},"doc-chapter":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-colophon":{type:"section",attributes:{allowed:["aria-expanded","aria-errormessage"]},owne\
d:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-conclusion":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-cover":{type:"img",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1},"doc-credit":{type:"section",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-credits":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-dedication":{type:"section",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-endnote":{type:"listitem",attributes:{allowed:["aria-\
expanded","aria-level","aria-posinset","aria-setsize","aria-errormessage"]},owned:null,namefrom:["author"],context:["doc-endnotes"],unsupported:!1,allowedElements:["li"]},"doc-endnotes":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:{one:["doc-endnote"]},namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-epigraph":{type:"section",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1},"doc-epilogue":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-errata":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-example":{type:"section",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context\
:null,unsupported:!1,allowedElements:["aside","section"]},"doc-footnote":{type:"section",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["aside","footer","header"]},"doc-foreword":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-glossary":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:["term","definition"],namefrom:["author"],context:null,unsupported:!1,allowedElements:["dl"]},"doc-glossref":{type:"link",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author","contents"],context:null,unsupported:!1,allowedElements:[{nodeName:"a",attributes:{href:Rh}}]},"doc-index":{type:"navigation",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:[\
"nav","section"]},"doc-introduction":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-noteref":{type:"link",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author","contents"],context:null,unsupported:!1,allowedElements:[{nodeName:"a",attributes:{href:Rh}}]},"doc-notice":{type:"note",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-pagebreak":{type:"separator",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["hr"]},"doc-pagelist":{type:"navigation",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["nav","section"]},"doc-part":{type:"landmark",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowe\
dElements:["section"]},"doc-preface":{type:"landmark",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-prologue":{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-pullquote":{type:"none",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["aside","section"]},"doc-qna":{type:"section",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},"doc-subtitle":{type:"sectionhead",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:{nodeName:["h1","h2","h3","h4","h5","h6"]}},"doc-tip":{type:"note",attributes:{allowed:["aria-expanded"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedEl\
ements:["aside"]},"doc-toc":{type:"navigation",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,namefrom:["author"],context:null,unsupported:!1,allowedElements:["nav","section"]},feed:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:{one:["article"]},nameFrom:["author"],context:null,unsupported:!1,allowedElements:["article","aside","section"]},figure:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:null,implicit:["figure"],unsupported:!1},form:{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["form"],unsupported:!1},grid:{type:"composite",attributes:{allowed:["aria-activedescendant","aria-expanded","aria-colcount","aria-level","aria-multiselectable","aria-readonly","aria-rowcount","aria-errormessage"]},owned:{one:["rowgroup","row"]},nameFrom:["author"],context:null,implicit:["\
table"],unsupported:!1},gridcell:{type:"widget",attributes:{allowed:["aria-colindex","aria-colspan","aria-expanded","aria-rowindex","aria-rowspan","aria-selected","aria-readonly","aria-required","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["row"],implicit:["td","th"],unsupported:!1},group:{type:"structure",attributes:{allowed:["aria-activedescendant","aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["details","optgroup"],unsupported:!1,allowedElements:["dl","figcaption","fieldset","figure","footer","header","ol","ul"]},heading:{type:"structure",attributes:{required:["aria-level"],allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:null,implicit:["h1","h2","h3","h4","h5","h6"],unsupported:!1},img:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["img"],unsupported:!1,allowedElements:["embed","i\
frame","object","svg"]},input:{nameFrom:["author"],type:"abstract",unsupported:!1},landmark:{nameFrom:["author"],type:"abstract",unsupported:!1},link:{type:"widget",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:null,implicit:["a[href]","area[href]"],unsupported:!1,allowedElements:["button",{nodeName:"input",properties:{type:["image","button"]}}]},list:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:{all:["listitem"]},nameFrom:["author"],context:null,implicit:["ol","ul","dl"],unsupported:!1},listbox:{type:"composite",attributes:{allowed:["aria-activedescendant","aria-multiselectable","aria-readonly","aria-required","aria-expanded","aria-orientation","aria-errormessage"]},owned:{all:["option"]},nameFrom:["author"],context:null,implicit:["select"],unsupported:!1,allowedElements:["ol","ul"]},listitem:{type:"structure",attributes:{allowed:["aria-level","aria-posinset","aria-setsize","aria-expan\
ded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["list"],implicit:["li","dt"],unsupported:!1},log:{type:"widget",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},main:{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["main"],unsupported:!1,allowedElements:["article","section"]},marquee:{type:"widget",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},math:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["math"],unsupported:!1},menu:{type:"composite",attributes:{allowed:["aria-activedescendant","aria-expanded","aria-orientation","aria-errormessage"]},owned:{one:["menuitem","menuitemradio","menuitemcheckbox"]}\
,nameFrom:["author"],context:null,implicit:['menu[type="context"]'],unsupported:!1,allowedElements:["ol","ul"]},menubar:{type:"composite",attributes:{allowed:["aria-activedescendant","aria-expanded","aria-orientation","aria-errormessage"]},owned:{one:["menuitem","menuitemradio","menuitemcheckbox"]},nameFrom:["author"],context:null,unsupported:!1,allowedElements:["ol","ul"]},menuitem:{type:"widget",attributes:{allowed:["aria-posinset","aria-setsize","aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["menu","menubar"],implicit:['menuitem[type="command"]'],unsupported:!1,allowedElements:["button","li",{nodeName:"iput",properties:{type:["image","button"]}},{nodeName:"a",attributes:{href:Rh}}]},menuitemcheckbox:{type:"widget",attributes:{allowed:["aria-checked","aria-posinset","aria-setsize","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["menu","menubar"],implicit:['menuitem[type="checkbox"]'],unsupported:!1,allowedElements:[{n\
odeName:["button","li"]},{nodeName:"input",properties:{type:["checkbox","image","button"]}},{nodeName:"a",attributes:{href:Rh}}]},menuitemradio:{type:"widget",attributes:{allowed:["aria-checked","aria-selected","aria-posinset","aria-setsize","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["menu","menubar"],implicit:['menuitem[type="radio"]'],unsupported:!1,allowedElements:[{nodeName:["button","li"]},{nodeName:"input",properties:{type:["image","button","radio"]}},{nodeName:"a",attributes:{href:Rh}}]},navigation:{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["nav"],unsupported:!1,allowedElements:["section"]},none:{type:"structure",attributes:null,owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:[{nodeName:["article","aside","dl","embed","figcaption","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","iframe","li","ol","section"\
,"ul"]},{nodeName:"img",attributes:{alt:Rh}}]},note:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["aside"]},option:{type:"widget",attributes:{allowed:["aria-selected","aria-posinset","aria-setsize","aria-checked","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["listbox"],implicit:["option"],unsupported:!1,allowedElements:[{nodeName:["button","li"]},{nodeName:"input",properties:{type:["checkbox","button"]}},{nodeName:"a",attributes:{href:Rh}}]},presentation:{type:"structure",attributes:null,owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:[{nodeName:["article","aside","dl","embed","figcaption","fieldset","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","iframe","li","ol","section","ul"]},{nodeName:"img",attributes:{alt:Rh}}]},progressbar:{type:"widget",attributes:{allowed:["aria-valuetext","aria-valuenow","aria-\
valuemax","aria-valuemin","aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["progress"],unsupported:!1},radio:{type:"widget",attributes:{allowed:["aria-selected","aria-posinset","aria-setsize","aria-required","aria-errormessage","aria-checked"]},owned:null,nameFrom:["author","contents"],context:null,implicit:['input[type="radio"]'],unsupported:!1,allowedElements:[{nodeName:["button","li"]},{nodeName:"input",properties:{type:["image","button"]}}]},radiogroup:{type:"composite",attributes:{allowed:["aria-activedescendant","aria-required","aria-expanded","aria-readonly","aria-errormessage","aria-orientation"]},owned:{all:["radio"]},nameFrom:["author"],context:null,unsupported:!1,allowedElements:{nodeName:["ol","ul","fieldset"]}},range:{nameFrom:["author"],type:"abstract",unsupported:!1},region:{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["section[aria-label]","sect\
ion[aria-labelledby]","section[title]"],unsupported:!1,allowedElements:{nodeName:["article","aside"]}},roletype:{type:"abstract",unsupported:!1},row:{type:"structure",attributes:{allowed:["aria-activedescendant","aria-colindex","aria-expanded","aria-level","aria-selected","aria-rowindex","aria-errormessage"]},owned:{one:["cell","columnheader","rowheader","gridcell"]},nameFrom:["author","contents"],context:["rowgroup","grid","treegrid","table"],implicit:["tr"],unsupported:!1},rowgroup:{type:"structure",attributes:{allowed:["aria-activedescendant","aria-expanded","aria-errormessage"]},owned:{all:["row"]},nameFrom:["author","contents"],context:["grid","table","treegrid"],implicit:["tbody","thead","tfoot"],unsupported:!1},rowheader:{type:"structure",attributes:{allowed:["aria-colindex","aria-colspan","aria-expanded","aria-rowindex","aria-rowspan","aria-required","aria-readonly","aria-selected","aria-sort","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["row"],impli\
cit:["th"],unsupported:!1},scrollbar:{type:"widget",attributes:{required:["aria-controls","aria-valuenow"],allowed:["aria-valuetext","aria-orientation","aria-errormessage","aria-valuemax","aria-valuemin"]},owned:null,nameFrom:["author"],context:null,unsupported:!1},search:{type:"landmark",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:{nodeName:["aside","form","section"]}},searchbox:{type:"widget",attributes:{allowed:["aria-activedescendant","aria-autocomplete","aria-multiline","aria-readonly","aria-required","aria-placeholder","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:['input[type="search"]'],unsupported:!1,allowedElements:{nodeName:"input",properties:{type:"text"}}},section:{nameFrom:["author","contents"],type:"abstract",unsupported:!1},sectionhead:{nameFrom:["author","contents"],type:"abstract",unsupported:!1},select:{nameFrom:["author"],type:"abstract",unsupported\
:!1},separator:{type:"structure",attributes:{allowed:["aria-expanded","aria-orientation","aria-valuenow","aria-valuemax","aria-valuemin","aria-valuetext","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:["hr"],unsupported:!1,allowedElements:["li"]},slider:{type:"widget",attributes:{allowed:["aria-valuetext","aria-orientation","aria-readonly","aria-errormessage","aria-valuemax","aria-valuemin"],required:["aria-valuenow"]},owned:null,nameFrom:["author"],context:null,implicit:['input[type="range"]'],unsupported:!1},spinbutton:{type:"widget",attributes:{allowed:["aria-valuetext","aria-required","aria-readonly","aria-errormessage","aria-valuemax","aria-valuemin"],required:["aria-valuenow"]},owned:null,nameFrom:["author"],context:null,implicit:['input[type="number"]'],unsupported:!1,allowedElements:{nodeName:"input",properties:{type:["text","tel"]}}},status:{type:"widget",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],conte\
xt:null,implicit:["output"],unsupported:!1,allowedElements:["section"]},structure:{type:"abstract",unsupported:!1},switch:{type:"widget",attributes:{allowed:["aria-errormessage"],required:["aria-checked"]},owned:null,nameFrom:["author","contents"],context:null,unsupported:!1,allowedElements:["button",{nodeName:"input",properties:{type:["checkbox","image","button"]}},{nodeName:"a",attributes:{href:Rh}}]},tab:{type:"widget",attributes:{allowed:["aria-selected","aria-expanded","aria-setsize","aria-posinset","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["tablist"],unsupported:!1,allowedElements:[{nodeName:["button","h1","h2","h3","h4","h5","h6","li"]},{nodeName:"input",properties:{type:"button"}},{nodeName:"a",attributes:{href:Rh}}]},table:{type:"structure",attributes:{allowed:["aria-colcount","aria-rowcount","aria-errormessage"]},owned:{one:["rowgroup","row"]},nameFrom:["author","contents"],context:null,implicit:["table"],unsupported:!1},tablist:{type:"composite\
",attributes:{allowed:["aria-activedescendant","aria-expanded","aria-level","aria-multiselectable","aria-orientation","aria-errormessage"]},owned:{all:["tab"]},nameFrom:["author"],context:null,unsupported:!1,allowedElements:["ol","ul"]},tabpanel:{type:"widget",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1,allowedElements:["section"]},term:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:null,implicit:["dt"],unsupported:!1},textbox:{type:"widget",attributes:{allowed:["aria-activedescendant","aria-autocomplete","aria-multiline","aria-readonly","aria-required","aria-placeholder","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:['input[type="text"]','input[type="email"]','input[type="password"]','input[type="tel"]','input[type="url"]',"input:not([type])","textarea"],unsupported:!1},timer:{type:"widget",attributes:{al\
lowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,unsupported:!1},toolbar:{type:"structure",attributes:{allowed:["aria-activedescendant","aria-expanded","aria-orientation","aria-errormessage"]},owned:null,nameFrom:["author"],context:null,implicit:['menu[type="toolbar"]'],unsupported:!1,allowedElements:["ol","ul"]},tooltip:{type:"structure",attributes:{allowed:["aria-expanded","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:null,unsupported:!1},tree:{type:"composite",attributes:{allowed:["aria-activedescendant","aria-multiselectable","aria-required","aria-expanded","aria-orientation","aria-errormessage"]},owned:{all:["treeitem"]},nameFrom:["author"],context:null,unsupported:!1,allowedElements:["ol","ul"]},treegrid:{type:"composite",attributes:{allowed:["aria-activedescendant","aria-colcount","aria-expanded","aria-level","aria-multiselectable","aria-readonly","aria-required","aria-rowcount","aria-orientation","aria-errormessa\
ge"]},owned:{one:["rowgroup","row"]},nameFrom:["author"],context:null,unsupported:!1},treeitem:{type:"widget",attributes:{allowed:["aria-checked","aria-selected","aria-expanded","aria-level","aria-posinset","aria-setsize","aria-errormessage"]},owned:null,nameFrom:["author","contents"],context:["group","tree"],unsupported:!1,allowedElements:["li",{nodeName:"a",attributes:{href:Rh}}]},widget:{type:"abstract",unsupported:!1},window:{nameFrom:["author"],type:"abstract",unsupported:!1}},Pi.implicitHtmlRole=od,Pi.elementsAllowedNoRole=[{nodeName:["base","body","caption","col","colgroup","datalist","dd","details","dt","head","html","keygen","label","legend","main","map","math","meta","meter","noscript","optgroup","param","picture","progress","script","source","style","template","textarea","title","track"]},{nodeName:"area",attributes:{href:Rh}},{nodeName:"input",properties:{type:["color","data","datatime","file","hidden","month","number","password","range","reset","submit","time","week"]}},{n\
odeName:"link",attributes:{href:Rh}},{nodeName:"menu",attributes:{type:"context"}},{nodeName:"menuitem",attributes:{type:["command","checkbox","radio"]}},{nodeName:"select",condition:function(e){return e instanceof o.AbstractVirtualNode||(e=o.utils.getNodeFromTree(e)),1<Number(e.attr("size"))},properties:{multiple:!0}},{nodeName:["clippath","cursor","defs","desc","feblend","fecolormatrix","fecomponenttransfer","fecomposite","feconvolvematrix","fediffuselighting","fedisplacementmap","fedistantlight","fedropshadow","feflood","fefunca","fefuncb","fefuncg","fefuncr","fegaussianblur","feimage","femerge","femergenode","femorphology","feoffset","fepointlight","fespecularlighting","fespotlight","fetile","feturbulence","filter","hatch","hatchpath","lineargradient","marker","mask","meshgradient","meshpatch","meshrow","metadata","mpath","pattern","radialgradient","solidcolor","stop","switch","view"]}],Pi.elementsAllowedAnyRole=[{nodeName:"a",attributes:{href:kh}},{nodeName:"img",attributes:{alt:k\
h}},{nodeName:["abbr","address","canvas","div","p","pre","blockquote","ins","del","output","span","table","tbody","thead","tfoot","td","em","strong","small","s","cite","q","dfn","abbr","time","code","var","samp","kbd","sub","sup","i","b","u","mark","ruby","rt","rp","bdi","bdo","br","wbr","th","tr"]}],Pi.evaluateRoleForElement={A:function(e){var t=e.node;return"http://www.w3.org/2000/svg"===t.namespaceURI||!t.href.length||e.out},AREA:function(e){return!e.node.href},BUTTON:function(e){var t=e.node,n=e.role;e=e.out;return"menu"===t.getAttribute("type")?"menuitem"===n:e},IMG:function(e){var t=e.node,n=e.role,r=e.out;switch(t.alt){case null:return r;case"":return"presentation"===n||"none"===n;default:return"presentation"!==n&&"none"!==n}},INPUT:function(e){var t=e.node,n=e.role,r=e.out;switch(t.type){case"button":case"image":return r;case"checkbox":return!("button"!==n||!t.hasAttribute("aria-pressed"))||r;case"radio":return"menuitemradio"===n;case"text":return"combobox"===n||"searchbox"===n\
||"spinbutton"===n;case"tel":return"combobox"===n||"spinbutton"===n;case"url":case"search":case"email":return"combobox"===n;default:return!1}},LI:function(e){var t=e.node;e=e.out;return!o.utils.matchesSelector(t,"ol li, ul li")||e},MENU:function(e){return"context"!==e.node.getAttribute("type")},OPTION:function(e){return e=e.node,!o.utils.matchesSelector(e,"select > option, datalist > option, optgroup > option")},SELECT:function(e){var t=e.node;return!t.multiple&&t.size<=1&&"menu"===e.role},SVG:function(e){var t=e.node;return!(!t.parentNode||"http://www.w3.org/2000/svg"!==t.parentNode.namespaceURI)||e.out}},Pi.rolesOfType={widget:["button","checkbox","dialog","gridcell","link","log","marquee","menuitem","menuitemcheckbox","menuitemradio","option","progressbar","radio","scrollbar","searchbox","slider","spinbutton","status","switch","tab","tabpanel","textbox","timer","tooltip","tree","treeitem"]},Pi),Oh=function(e){var t=null;return(e=Th.role[e])&&e.implicit?$l(e.implicit):t},Sh=function(\
e){return!!yh(e).length};function _h(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).popupRoles,n=Ad(e);if(!(t=null!=t?t:qc["aria-haspopup"].values).includes(n))return!1;if(t=(e=>{for(;e=e.parent;)if(null!==Ad(e,{noPresentational:!0}))return e;return null})(e),Mh(t))return!0;if(!(n=e.props.id))return!1;if(e.actualNode)return t=is(e.actualNode).querySelectorAll('[aria-owns~="'.concat(n,'"][role~="combobox"]:not(select),\\n     [aria-controls~="').concat(n,'"][role~="combobox"]:not(select)')),Array.from(t).some(Mh);throw new Error("Unable to determine combobox popup without an actualNode")}var Mh=function(e){return e&&"combobox"===Ad(e)},Ph=function(e){return e=Bl(e),lp(e)},Ih=function(e){return(e=$c.ariaRoles[e])&&Array.isArray(e.requiredAttrs)?j(e.requiredAttrs):[]},Bh=function(e){return(e=$c.ariaRoles[e])&&Array.isArray(e.requiredContext)?j(e.requiredContext):null},jh=function(e){return(e=$c.ariaRoles[e])&&Array.isArray(e.requiredOwned)?j(e.requiredOwned):null},Lh=\
function(e,t){var n,r=(e=e instanceof ma?e:Bl(e)).attr(t),a=$c.ariaAttrs[t];if(!a)return!0;if(a.allowEmpty&&(!r||""===r.trim()))return!0;switch(a.type){case"boolean":return["true","false"].includes(r.toLowerCase());case"nmtoken":return"string"==typeof r&&a.values.includes(r.toLowerCase());case"nmtokens":return(n=sf(r)).reduce(function(e,t){return e&&a.values.includes(t)},0!==n.length);case"idref":try{var o=ls(e.actualNode);return!(!r||!o.getElementById(r))}catch(e){throw new TypeError("Cannot resolve id references for partial DOM")}case"idrefs":return Ic(e,t).some(function(e){return!!e});case"string":return""!==r.trim();case"decimal":return!(!(n=r.match(/^[-+]?([0-9]*)\\.?([0-9]*)$/))||!n[1]&&!n[2]);case"int":return o=void 0!==a.minValue?a.minValue:-1/0,/^[-+]?[0-9]+$/.test(r)&&parseInt(r)>=o}},qh=function(e){return!!$c.ariaAttrs[e]};var zh=["cell-header-not-in-table","cell-header-not-th","header-refs-self","empty-hdrs"],Vh=zh[0],Gh=zh[1],$h=zh[2],Hh=zh[3];function Uh(e){return"caption"\
===e.props.nodeName}var Wh={};me(Wh,{getAriaRolesByType:function(){return Ah},getAriaRolesSupportingNameFromContent:function(){return Ch},getElementSpec:function(){return wd},getElementsByContentType:function(){return Yc},getGlobalAriaAttrs:function(){return Kc},implicitHtmlRoles:function(){return od}}),Mi=qs;var Yh=["alert","log","status"];function Kh(e){return e=t.getComputedStyle((e=>{for(var t=e,n=e.textContent.trim(),r=n;r===n&&void 0!==t;){var a=-1;if(0===(e=t).children.length)return e;for(;a++,""===(r=e.children[a].textContent.trim())&&a+1<e.children.length;);t=e.children[a]}return e})(e)),{fontWeight:(e=>{switch(e){case"lighter":return 100;case"normal":return 400;case"bold":return 700;case"bolder":return 900}return e=parseInt(e),isNaN(e)?400:e})(e.getPropertyValue("font-weight")),fontSize:parseInt(e.getPropertyValue("font-size")),isItalic:"italic"===e.getPropertyValue("font-style")}}function Xh(e,t,n){return n.reduce(function(n,r){return n||(!r.size||e.fontSize/r.size>t.fontSiz\
e)&&(!r.weight||e.fontWeight-r.weight>t.fontWeight)&&(!r.italic||e.isItalic&&!t.isItalic)},!1)}var Zh=/[;,\\s]/,Jh=/^[0-9.]+$/;me(Sn={},{aria:function(){return gh},color:function(){return Qh},dom:function(){return os},forms:function(){return Tg},matches:function(){return yd},math:function(){return $s},standards:function(){return Wh},table:function(){return uh},text:function(){return Pc},utils:function(){return ha}});var Qh={},eg=(me(Qh,{Color:function(){return Gp},centerPointOfRect:function(){return eg},elementHasImage:function(){return jp},elementIsDistinct:function(){return ng},filteredRectStack:function(){return ag},flattenColors:function(){return lg},flattenShadowColors:function(){return sg},getBackgroundColor:function(){return Ag},getBackgroundStack:function(){return cg},getContrast:function(){return kg},getForegroundColor:function(){return Rg},getOwnBackgroundColor:function(){return Hp},getRectStack:function(){return rg},getStackingContext:function(){return yg},getStrokeColorsFrom\
Shadows:function(){return hg},getTextShadowColors:function(){return bg},hasValidContrastRatio:function(){return Ng},incompleteData:function(){return Bp},parseTextShadows:function(){return vg},stackingContextToColor:function(){return wg}}),function(e){if(!(e.left>t.innerWidth||t.innerHeight<e.top))return{x:Math.min(Math.ceil(e.left+e.width/2),t.innerWidth-1),y:Math.min(Math.ceil(e.top+e.height/2),t.innerHeight-1)}});function tg(e){return e.getPropertyValue("font-family").split(/[,;]/g).map(function(e){return e.trim().toLowerCase()})}var ng=function(e,n){var r,a=t.getComputedStyle(e);return"none"!==a.getPropertyValue("background-image")||!!["border-bottom","border-top","outline"].reduce(function(e,t){var n=new Gp;return n.parseString(a.getPropertyValue(t+"-color")),e||"none"!==a.getPropertyValue(t+"-style")&&0<parseFloat(a.getPropertyValue(t+"-width"))&&0!==n.alpha},!1)||(r=t.getComputedStyle(n),tg(a)[0]!==tg(r)[0])||(e=["text-decoration-line","text-decoration-style","font-weight","font-\
style","font-size"].reduce(function(e,t){return e||a.getPropertyValue(t)!==r.getPropertyValue(t)},!1),(n=a.getPropertyValue("text-decoration")).split(" ").length<3?e||n!==r.getPropertyValue("text-decoration"):e)},rg=function(e){var t=Rc(e);return!(e=hp(e))||e.length<=1?[t]:e.some(function(e){return void 0===e})?null:(e.splice(0,0,t),e)},ag=function(e){var t,n,r=rg(e);return r&&1===r.length?r[0]:r&&1<r.length?(t=r.shift(),r.forEach(function(a,o){var i,l;0!==o&&(i=r[o-1],l=r[o],n=i.every(function(e,t){return e===l[t]})||t.includes(e))}),n?r[0]:(Bp.set("bgColor","elmPartiallyObscuring"),null)):(Bp.set("bgColor","outsideViewport"),null)},og=["hue","saturation","color","luminosity"],ig={normal:function(e,t){return t},multiply:function(e,t){return t*e},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return this["hard-light"](t,e)},darken:function(e,t){return Math.min(e,t)},lighten:function(e,t){return Math.max(e,t)},"color-dodge":function(e,t){return 0===e?0:1===t?1:Math.min(1,e/(\
1-t))},"color-burn":function(e,t){return 1===e?1:0===t?0:1-Math.min(1,(1-e)/t)},"hard-light":function(e,t){return t<=.5?this.multiply(e,2*t):this.screen(e,2*t-1)},"soft-light":function(e,t){return t<=.5?e-(1-2*t)*e*(1-e):e+(2*t-1)*((e<=.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},hue:function(e,t){return t.setSaturation(e.getSaturation()).setLuminosity(e.getLuminosity())},saturation:function(e,t){return e.setSaturation(t.getSaturation()).setLuminosity(e.getLuminosity())},color:function(e,t){return t.setLuminosity(e.getLuminosity())},luminosity:function(e,t){return e.setLuminosity(t.getLuminosity())}};function lg(e,t){var n,r=((e,t,n)=>{var r;return og.includes(n)?ig[n](e,t):(r=new Gp,["r","g","b"].forEach(function(a){r[a]=ig[n](e[a],t[a])}),r)})(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:"normal"),a=ug(e.red,e.alpha,t.red,t.alpha,255*r.r),o=ug(e.green,e.alpha,t.green,t.alpha,255*r.g);r=u\
g(e.blue,e.alpha,t.blue,t.alpha,255*r.b);return 0===(e=(t=e.alpha+t.alpha*(1-e.alpha),e=0,n=1,Math.min(Math.max(e,t),n)))?new Gp(a,o,r,e):(t=Math.round(a/e),n=Math.round(o/e),a=Math.round(r/e),new Gp(t,n,a,e))}function ug(e,t,n,r,a){return t*(1-r)*e+t*r*a+(1-t)*r*n}function sg(e,t){var n=e.alpha,r=(1-n)*t.red+n*e.red;return new Gp(r,(1-n)*t.green+n*e.green,(1-n)*t.blue+n*e.blue,e.alpha+t.alpha*(1-e.alpha))}function cg(e){for(var n=hp(e).map(function(n){return(e=>{var n=e.indexOf(r.body),a=Hp(t.getComputedStyle(r.documentElement));return 1<n&&0===a.alpha&&!jp(r.documentElement)&&(1<n&&(e.splice(n,1),e.push(r.body)),0<(a=e.indexOf(r.documentElement)))&&(e.splice(a,1),e.push(r.documentElement)),e})(n=Jp(n,e))}),a=0;a<n.length;a++){var o=n[a];if(o[0]!==e)return Bp.set("bgColor","bgOverlap"),null;if(0!==a&&!((e,t)=>{if(e!==t){if(null===e||null===t)return;if(e.length!==t.length)return;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return}return 1})(o,n[0]))return Bp.set("bgColor","elmPartiallyObs\
curing"),null}return n[0]||null}var dg=.54,pg=.5,fg=1.5,mg=["top","right","bottom","left"];function hg(e){var t=void 0!==(t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).ignoreEdgeCount)&&t;e=(e=>{var t,n={},r=Q(e);try{for(r.s();!(t=r.n()).done;){var a=t.value,o=a.colorStr,i=a.pixels,l=(null!=n[o]||(n[o]={top:[],right:[],bottom:[],left:[]}),n[o]),u=U(i,2),s=u[0],c=u[1];pg<s?l.right.push(s):pg<-s&&l.left.push(-s),pg<c?l.bottom.push(c):pg<-c&&l.top.push(-c)}}catch(e){r.e(e)}finally{r.f()}return n})(e),e=Object.entries(e).map(function(e){var t=(e=U(e,2))[0],n=e[1];e=mg.filter(function(e){return 0!==n[e].length}).length;return{colorStr:t,sides:n,edgeCount:e}});return!t&&e.some(function(e){return 1<(e=e.edgeCount)&&e<4})?null:e.map(gg).filter(function(e){return null!==e})}function gg(e){var t,n,r=e.colorStr,a=e.sides;return 4!==e.edgeCount?null:((e=new Gp).parseString(r),n=!(t=0),mg.forEach(function(e){t+=a[e].length/4,n=n&&a[e].every(function(e){return fg<e})}),n||(e.alpha=1-\
Math.pow(dg,t)),e)}function vg(e){var t={pixels:[]},n=[t];if(!(o=e.trim()))return[];for(;o;){var r=o.match(/^[a-z]+(\\([^)]+\\))?/i)||o.match(/^#[0-9a-f]+/i),a=o.match(/^([0-9.-]+)px/i)||o.match(/^(0)/);if(r)Ra(!t.colorStr,"Multiple colors identified in text-shadow: ".concat(e)),o=o.replace(r[0],"").trim(),t.colorStr=r[0];else if(a){Ra(t.pixels.length<3,"Too many pixel units in text-shadow: ".concat(e));var o=o.replace(a[0],"").trim();r=parseFloat(("."===a[1][0]?"0":"")+a[1]);t.pixels.push(r)}else{if(","!==o[0])throw new Error("Unable to process text-shadows: ".concat(o));Ra(2<=t.pixels.length,"Missing pixel value in text-shadow: ".concat(e)),n.push(t={pixels:[]}),o=o.substr(1).trim()}}return n.forEach(function(e){2===(e=e.pixels).length&&e.push(0)}),n}function bg(e){var n,r=(n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).minRatio,a=n.maxRatio,o=n.ignoreEdgeCount,i=[],l=t.getComputedStyle(e);if("none"!==(n=l.getPropertyValue("text-shadow"))){e=l.getPropertyValue("font-size"\
);var u,s=parseInt(e),c=(Ra(!1===isNaN(s),"Unable to determine font-size value ".concat(e)),[]),d=Q(vg(n));try{for(d.s();!(u=d.n()).done;){var p=u.value,f=p.colorStr||l.getPropertyValue("color"),m=U(p.pixels,3),h=m[0],g=m[1],v=m[2],b=void 0===v?0:v;if(!(a&&s*a<=b))if(r&&b<s*r)c.push({colorStr:f,pixels:p.pixels});else{if(0<c.length){var y=hg(c,{ignoreEdgeCount:o});if(null===y)return null;i.push.apply(i,j(y)),c.splice(0,c.length)}var w=(e=>{var t=e.colorStr,n=e.offsetY,r=e.blurRadius,a=e.fontSize;return e.offsetX>r||r<n?new Gp(0,0,0,0):((e=new Gp).parseString(t),e.alpha*=((e,t)=>0===e?1:.185/(e/t+.4))(r,a),e)})({colorStr:f,offsetX:h,offsetY:g,blurRadius:b,fontSize:s});i.push(w)}}}catch(e){d.e(e)}finally{d.f()}if(0<c.length){if(null===(e=hg(c,{ignoreEdgeCount:o})))return null;i.push.apply(i,j(e))}}return i}function yg(e,t){var n,r,a=Bl(e);return a._stackingContext||(n=[],r=new Map,(t=null!=t?t:cg(e)).forEach(function(e){var t=(t=e=Bl(e),(o=new Gp).parseString(t.getComputedStylePropertyVal\
ue("background-color")),o),a=e._stackingOrder.filter(function(e){return!!e.vNode}),o=(a.forEach(function(e,t){e=e.vNode;var o=null==(o=a[t-1])?void 0:o.vNode;o=Eg(r,e,o);0!==t||r.get(e)||n.unshift(o),r.set(e,o)}),null==(o=a[a.length-1])?void 0:o.vNode);e=Eg(r,e,o);a.length||n.unshift(e),e.bgColor=t}),a._stackingContext=n)}function wg(e){var t;return null!=(t=e.descendants)&&t.length?(t=lg(e.descendants.reduce(Dg,xg()),e.bgColor,e.descendants[0].blendMode)).alpha*=e.opacity:(t=e.bgColor).alpha*=e.opacity,{color:t,blendMode:e.blendMode}}function Dg(e,t){return e=e instanceof Gp?e:wg(e).color,lg(wg(t).color,e,t.blendMode)}function xg(e,t){return{vNode:e,ancestor:t,opacity:parseFloat(null!=(t=null==e?void 0:e.getComputedStylePropertyValue("opacity"))?t:1),bgColor:new Gp(0,0,0,0),blendMode:(null==e?void 0:e.getComputedStylePropertyValue("mix-blend-mode"))||void 0,descendants:[]}}function Eg(e,t,n){var r=e.get(n);e=null!=(e=e.get(t))?e:xg(t,r);return r&&n!==t&&!r.descendants.includes(e)&&r.d\
escendants.unshift(e),e}function Ag(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:.1,o=Bl(e),i=o._cache.getBackgroundColor;return i?(n.push.apply(n,j(i.bgElms)),Bp.set("bgColor",i.incompleteData),i.bgColor):(i=((e,n,a)=>{var o=cg(e);if(!o)return null;var i=fp(e);(a=null!=(a=bg(e,{minRatio:a,ignoreEdgeCount:!0}))?a:[]).length&&(a=[{color:a.reduce(sg)}]);for(var l=0;l<o.length;l++){var u=o[l],s=t.getComputedStyle(u);if(jp(u,s))return n.push(u),null;var c=void 0;try{if(0===(c=Hp(s)).alpha)continue}catch(e){if(e&&Bp.get("colorParse"))return null;throw e}if("inline"!==s.getPropertyValue("display")&&!Fg(u,i))return n.push(u),Bp.set("bgColor","elmPartiallyObscured"),null;if(n.push(u),1===c.alpha)break}var d=(a=(d=yg(e,o)).map(wg).concat(a),((e,n)=>{var a,o,i,l,u=[];return n||(n=r.documentElement,l=r.body,n=t.getComputedStyle(n),a=t.getComputedStyle(l),o=Hp(n),l=0!==(i=Hp(a)).alpha&&Fg(l,e.getBoundingClientRect()),(0\
!==i.alpha&&0===o.alpha||l&&1!==i.alpha)&&u.unshift({color:i,blendMode:Cg(a.getPropertyValue("mix-blend-mode"))}),0===o.alpha)||l&&1===i.alpha||u.unshift({color:o,blendMode:Cg(n.getPropertyValue("mix-blend-mode"))}),u})(e,o.includes(r.body)));return a.unshift.apply(a,j(d)),0===a.length?new Gp(255,255,255,1):(e=a.reduce(function(e,t){return lg(t.color,e.color instanceof Gp?e.color:e,t.blendMode)}),lg(e.color instanceof Gp?e.color:e,new Gp(255,255,255,1)))})(e,n,a),o._cache.getBackgroundColor={bgColor:i,bgElms:n,incompleteData:Bp.get("bgColor")},i)}function Fg(e,n){n=Array.isArray(n)?n:[n];var r=e.getBoundingClientRect(),a=r.right,o=r.bottom,i=(c=t.getComputedStyle(e)).getPropertyValue("overflow"),l=parseInt(c.getPropertyValue("padding-left"),10),u=parseInt(c.getPropertyValue("padding-right"),10),s=parseInt(c.getPropertyValue("padding-top"),10),c=parseInt(c.getPropertyValue("padding-bottom"),10);return(["scroll","auto"].includes(i)||e instanceof t.HTMLHtmlElement)&&(a=r.left+e.scrollWidt\
h+l+u,o=r.top+e.scrollHeight+s+c),n.every(function(e){return e.top>=r.top&&e.bottom<=o&&e.left>=r.left&&e.right<=a})}function Cg(e){return e||void 0}var kg=function(e,t){return t&&e?(t.alpha<1&&(t=lg(t,e)),e=e.getRelativeLuminance(),t=t.getRelativeLuminance(),(Math.max(t,e)+.05)/(Math.min(t,e)+.05)):null};function Rg(e,n,r){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=t.getComputedStyle(e),i=[function(){var e,t,n=o,r=void 0===(r=(r=a).textStrokeEmMin)?0:r;return 0===(t=parseFloat(n.getPropertyValue("-webkit-text-stroke-width")))||(e=n.getPropertyValue("font-size"),t/=parseFloat(e),isNaN(t))||t<r?null:(e=n.getPropertyValue("-webkit-text-stroke-color"),(new Gp).parseString(e))},function(){return e=o,(new Gp).parseString(e.getPropertyValue("-webkit-text-fill-color")||e.getPropertyValue("color"));var e},function(){return bg(e,{minRatio:0})}],l=[];try{for(var u=0,s=i;u<s.length;u++){var c=(0,s[u])();if(c&&(l=l.concat(c),1===c.alpha))break}}catch(e){if(e&&Bp.get("colorPa\
rse"))return null;throw e}return i=l.reduce(function(e,t){return lg(e,t)}),null===(r=null==r?Ag(e,[]):r)?(r=Bp.get("bgColor"),Bp.set("fgColor",r),null):lg(((e,t,n)=>{for(;t;){var r;1===t.opacity&&t.ancestor||(e.alpha*=t.opacity,r=(null==(r=t.ancestor)?void 0:r.descendants)||n,(r=(r=1!==t.opacity?r.slice(0,r.indexOf(t)):r).map(wg)).length&&(r=r.reduce(function(e,t){return lg(t.color,e.color instanceof Gp?e.color:e)},{color:new Gp(0,0,0,0),blendMode:"normal"}),e=lg(e,r))),t=t.ancestor}return e})(i,function e(t,n){var r,a=Q(t);try{for(a.s();!(r=a.n()).done;){var o,i=r.value;if((null==(o=i.vNode)?void 0:o.actualNode)===n)return i;var l=e(i.descendants,n);if(l)return l}}catch(e){a.e(e)}finally{a.f()}}(r=yg(e),e),r),new Gp(255,255,255,1))}var Ng=function(e,t,n,r){return e=kg(e,t),{isValid:(t=r&&Math.ceil(72*n)/96<14||!r&&Math.ceil(72*n)/96<18?4.5:3)<e,contrastRatio:e,expectedContrastRatio:t}},Tg={},Og=(me(Tg,{isAriaCombobox:function(){return qd},isAriaListbox:function(){return Ld},isAriaRang\
e:function(){return Vd},isAriaTextbox:function(){return jd},isDisabled:function(){return Sg},isNativeSelect:function(){return Bd},isNativeTextbox:function(){return Id}}),["fieldset","button","select","input","textarea"]),Sg=function e(t){var n,r,a=t._isDisabled;return"boolean"!=typeof a&&(n=t.props.nodeName,r=t.attr("aria-disabled"),a=!(!Og.includes(n)||!t.hasAttr("disabled"))||(r?"true"===r.toLowerCase():!!t.parent&&e(t.parent)),t._isDisabled=a),a};function _g(e,t){var n=null==(n=t.data)?void 0:n.headingOrder,r=Pg(t.node.ancestry,1);return n&&(t=n.map(function(e){return B({},e,{ancestry:r.concat(e.ancestry)})}),-1===(n=((e,t)=>{for(;t.length;){var n=Mg(e,t);if(-1!==n)return n;t=Pg(t,1)}return-1})(e,r))?e.push.apply(e,j(t)):e.splice.apply(e,[n,0].concat(j(t)))),e}function Mg(e,t){return e.findIndex(function(e){return im(e.ancestry,t)})}function Pg(e,t){return e.slice(0,e.length-t)}function Ig(e,t){return e=e.boundingClientRect,t=t.boundingClientRect,e.top>=t.top&&e.left>=t.left&&e.bott\
om<=t.bottom&&e.right<=t.right}function Bg(e){return{width:Math.round(10*e.width)/10,height:Math.round(10*e.height)/10}}function jg(e,t){return Ku(e,t)&&!Sc(t)}function Lg(e){return e.map(function(e){return e.actualNode})}function qg(e,t){var n=1<arguments.length&&void 0!==t&&t;return e.map(function(e){return{vChild:e,nested:n}})}function zg(e){return""!==(e||"").trim()}function Vg(e){return e=rp(e,{emoji:!0,nonBmp:!0,punctuations:!0}),rd(e)}function Gg(e){return null!==(e=mm(e.attr("tabindex")))&&e<0}var $g=["block","list-item","table","flex","grid","inline-block"];function Hg(e){return e=t.getComputedStyle(e).getPropertyValue("display"),-1!==$g.indexOf(e)||"table-"===e.substr(0,6)}function Ug(e,t){return e=e.getRelativeLuminance(),t=t.getRelativeLuminance(),(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}var Wg=["block","list-item","table","flex","grid","inline-block"];function Yg(e){return e=t.getComputedStyle(e).getPropertyValue("display"),-1!==Wg.indexOf(e)||"table-"===e.substr(0,6)}var K\
g=hl(function(e,n){function r(e,t){return a.getPropertyValue(e)===t}var a=t.getComputedStyle(e,n);return r("content","none")||r("display","none")||r("visibility","hidden")||!1===r("position","absolute")||0===Hp(a).alpha&&r("background-image","none")?0:(e=Xg(a.getPropertyValue("width")),n=Xg(a.getPropertyValue("height")),"px"!==e.unit||"px"!==n.unit?0===e.value||0===n.value?0:1/0:e.value*n.value)});function Xg(e){var t=(e=U(e.match(/^([0-9.]+)([a-z]+)$/i)||[],3))[1];e=void 0===(e=e[2])?"":e;return{value:parseFloat(void 0===t?"":t),unit:e.toLowerCase()}}var Zg={ARTICLE:!0,ASIDE:!0,NAV:!0,SECTION:!0},Jg={alert:!0,alertdialog:!0,application:!0,article:!0,banner:!1,complementary:!0,contentinfo:!0,dialog:!0,form:!0,log:!0,main:!0,navigation:!0,region:!0,search:!1,status:!0,tabpanel:!0};function Qg(e,t,n,r){var a=Wc(e);if(!(n=n||Bh(a)))return null;for(var o=n.includes("group"),i=r?e:e.parent;i;){var l=Ad(i,{noPresentational:!0});if(l){if("group"!==l||!o)return n.includes(l)?null:n;t.includes(\
a)&&n.push(a),n=n.filter(function(e){return"group"!==e})}i=i.parent}return n}function ev(e){return 3===(e=e.vNode).props.nodeType?0<e.props.nodeValue.trim().length:wp(e,!1,!0)}var tv=hl(function(e){var t;if(e)return(t=Ad(e,{noPresentational:!0,chromium:!0}))?Rp(t):tv(e.parent)});function nv(e){var t,n,r=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).invalidTableRowAttrs,a=2<arguments.length?arguments[2]:void 0;r=null!=(t=null==r||null==(t=r.filter)?void 0:t.call(r,function(e){return a.hasAttr(e)}))?t:[];return 0===r.length||!(t=(t=(e=>{if(e.parent)return eu(e,'table:not([role]), [role~="treegrid"], [role~="table"], [role~="grid"]')})(a))&&Ad(t))||"treegrid"===t||(n="row".concat(1<r.length?"Plural":"Singular"),this.data({messageKey:n,invalidAttrs:r,ownerRole:t}),!1)}function rv(e,t,n){var r=(a=n.props).nodeName,a=a.type,o=(o=n.attr("aria-checked"))?"true"!==(o=o.toLowerCase())?"false":o:"";return"input"!==r||"radio"!==a||!o||o===(r=n.props.checked?"true":"false")||(this.dat\
a({messageKey:"radio",checkState:r}),!1)}function av(e,t,n){var r=(a=n.props).nodeName,a=a.type,o=(e=>e?(e=e.toLowerCase(),["mixed","true"].includes(e)?e:"false"):"")(n.attr("aria-checked"));return"input"!==r||"checkbox"!==a||!o||o===(r=(e=>e.props.indeterminate?"mixed":e.props.checked?"true":"false")(n))||(this.data({messageKey:"checkbox",checkState:r}),!1)}var ov={row:nv,checkbox:av,radio:rv};var iv=function(e,t){try{return"svg"===t.props.nodeName||!!eu(t,"svg")}catch(e){return!1}},lv=[function(e,t){return uv(t)},function(e,t){return"area"!==t.props.nodeName},function(e,t){return!iv(0,t)},function(e,t){return Oc(t)},function(e,t){return Sc(t)||!sv(t)},function(e){return!Op(e,{noLengthCompare:!0,includeInlineBlock:!0})}];function uv(e){return"widget"===Rp(e)}var sv=hl(function e(t){return!(null==t||!t.parent)&&(!(!uv(t.parent)||!Sc(t.parent))||e(t.parent))}),cv=function(e,t){var n=Wc(t);return!(n&&!["none","presentation"].includes(n)&&!(zc[n]||{}).accessibleNameRequired&&!Oc(t))},dv=f\
unction(e,t,n){return n.initiator},pv={emoji:!0,nonBmp:!1,punctuations:!0},fv={"abstractrole-evaluate":function(e,t,n){return 0<(n=sf(n.attr("role")).filter(function(e){return"abstract"===Rp(e)})).length&&(this.data(n),!0)},"accesskeys-after":function(e){var t={};return e.filter(function(e){if(e.data){var n=e.data.toUpperCase();if(!t[n])return(t[n]=e).relatedNodes=[],!0;t[n].relatedNodes.push(e.relatedNodes[0])}return!1}).map(function(e){return e.result=!!e.relatedNodes.length,e})},"accesskeys-evaluate":function(e,t,n){return Rs(n)||(this.data(n.attr("accesskey")),this.relatedNodes([e])),!0},"alt-space-value-evaluate":function(e,t,n){return"string"==typeof(n=n.attr("alt"))&&/^\\s+$/.test(n)},"aria-allowed-attr-elm-evaluate":function(e,t,n){var r=wd(n);if(!r.allowedAriaAttrs)return!0;if(Wc(n))return!0;var a,o=r.allowedAriaAttrs,i=Kc(),l=[],u=Q(n.attrNames);try{for(u.s();!(a=u.n()).done;){var s=a.value;i.includes(s)&&!o.includes(s)&&l.push(s)}}catch(e){u.e(e)}finally{u.f()}return!l.length\
||(this.data({messageKey:1<l.length?"plural":"singular",nodeName:n.props.nodeName,values:l.map(function(e){return e+'="'+n.attr(e)+'"'}).join(", ")}),!1)},"aria-allowed-attr-evaluate":function(e,t,n){var r,a=[],o=Ad(n),i=vh(o),l=(Array.isArray(t[o])&&(i=bm(t[o].concat(i))),Q(n.attrNames));try{for(l.s();!(r=l.n()).done;){var u=r.value;!qh(u)||i.includes(u)||((e,t,n)=>"aria-required"===e&&"false"===t||!("aria-multiline"!==e||"false"!==t||!n.hasAttr("contenteditable")))(u,n.attr(u),n)||a.push(u)}}catch(e){l.e(e)}finally{l.f()}return!a.length||(this.data(a.map(function(e){return e+'="'+n.attr(e)+'"'})),!(o||rm(n)||Oc(n))&&void 0)},"aria-allowed-attr-matches":function(e,t){var n=/^aria-/,r=t.attrNames;if(r.length)for(var a=0,o=r.length;a<o;a++)if(n.test(r[a]))return!0;return!1},"aria-allowed-role-evaluate":function(e){var t=2<arguments.length?arguments[2]:void 0,n=void 0===(n=(r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).allowImplicit)||n,r=void 0===(r=r.ignoredTags)?[]:r,a=\
t.props.nodeName;return!!r.map(function(e){return e.toLowerCase()}).includes(a)||!(r=Eh(t,n)).length||(this.data(r),!Td(t)&&void 0)},"aria-allowed-role-matches":function(e,t){return null!==Wc(t,{dpub:!0,fallback:!0})},"aria-busy-evaluate":function(e,t,n){return"true"===n.attr("aria-busy")},"aria-conditional-attr-evaluate":function(e,t,n){var r=Ad(n);return!ov[r]||ov[r].call(this,e,t,n)},"aria-conditional-checkbox-attr-evaluate":av,"aria-conditional-radio-attr-evaluate":rv,"aria-conditional-row-attr-evaluate":nv,"aria-errormessage-evaluate":function(e,t,n){t=Array.isArray(t)?t:[];var r=n.attr("aria-errormessage"),a=n.hasAttr("aria-errormessage"),o=n.attr("aria-invalid");return!n.hasAttr("aria-invalid")||"false"===o||-1!==t.indexOf(r)||!a||(this.data(sf(r)),function(e){if(""===e.trim())return $c.ariaAttrs["aria-errormessage"].allowEmpty;var t,r,a=sf(e);if(1<a.length)return this.data({messageKey:"unsupported",values:a}),!1;try{t=e&&Ic(n,"aria-errormessage")[0]}catch(e){return void this.da\
ta({messageKey:"idrefs",values:a})}return t?Td(t)?(r=sf(n.attr("aria-describedby")),"alert"===Wc(t)||"assertive"===t.getAttribute("aria-live")||"polite"===t.getAttribute("aria-live")||a.some(function(e){return r.includes(e)})):(this.data({messageKey:"hidden",values:a}),!1):void 0}.call(this,r))},"aria-has-attr-matches":function(e,t){var n=/^aria-/;return t.attrNames.some(function(e){return n.test(e)})},"aria-hidden-body-evaluate":function(e,t,n){return"true"!==n.attr("aria-hidden")},"aria-hidden-focus-matches":function(e){return function e(t){return!t||"true"!==t.getAttribute("aria-hidden")&&e(Os(t))}(Os(e))},"aria-label-evaluate":function(e,t,n){return!!rd(Lc(n))},"aria-labelledby-evaluate":function(e,t,n){try{return!!rd(jc(n))}catch(e){}},"aria-level-evaluate":function(e,t,n){if(n=n.attr("aria-level"),!(6<(n=parseInt(n,10))))return!0},"aria-prohibited-attr-evaluate":function(e){var t,n=2<arguments.length?arguments[2]:void 0,r=(null==(r=1<arguments.length&&void 0!==arguments[1]?argume\
nts[1]:{})?void 0:r.elementsAllowedAriaLabel)||[],a=n.props.nodeName,o=Ad(n,{chromium:!0,fallback:!0});return 0!==(r=((e,t,n,r)=>{var a=$c.ariaRoles[t];return a?a.prohibitedAttrs||[]:t||r.includes(n)||"widget"===tv(e)?[]:["aria-label","aria-labelledby"]})(n,o,a,r).filter(function(e){return!!n.attrNames.includes(e)&&""!==rd(n.attr(e))})).length&&(t=null!==o?"hasRole":"noRole",this.data({role:o,nodeName:a,messageKey:t+=1<r.length?"Plural":"Singular",prohibited:r}),o=Yd(n,{subtreeDescendant:!0}),""===rd(o)||void 0)},"aria-required-attr-evaluate":function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=2<arguments.length?arguments[2]:void 0,a=Wc(r),o=r.attrNames,i=Ih(a);return Array.isArray(n[a])&&(i=bm(n[a],i)),!(a&&o.length&&i.length&&(n=r,"separator"!==a||Oc(n))&&(o=r,"combobox"!==a||"false"!==o.attr("aria-expanded"))&&("slider"!==a||null==(n=r.attr("aria-valuetext"))||!n.trim())&&(t=wd(r),(o=i.filter(function(e){return!(r.attr(e)||void 0!==(null==(n=(n=t).implici\
tAttrs)?void 0:n[e]));var n})).length)&&(this.data(o),1))},"aria-required-children-evaluate":function(e,t,n){t=t&&Array.isArray(t.reviewEmpty)?t.reviewEmpty:[];var r,a,o,i,l=Wc(n,{dpub:!0}),u=jh(l);return null===u||((a=(r=((e,t)=>{function n(){if(3===r.props.nodeType&&a.push({vNode:r,role:null}),1!==r.props.nodeType||!Td(r))return 1;var e,n=Ad(r,{noPresentational:!0}),i=(e=r,Kc().find(function(t){return e.hasAttr(t)})),l=!!i||Oc(r);!n&&!l||["group","rowgroup"].includes(n)&&t.some(function(e){return e===n})?o.push.apply(o,j(r.children)):(n||l)&&(l=i||(r.hasAttr("tabindex")?"tabindex":void 0),a.push({role:n,attr:l,vNode:r}))}for(var r,a=[],o=Rd(e);r=o.shift();)n();return a})(n,u)).filter(function(e){var t=e.role;return 1===e.vNode.props.nodeType&&!u.includes(t)})).length?(this.relatedNodes(a.map(function(e){return e.vNode})),o="true"===n.attr("aria-busy")?"aria-busy-fail":"unallowed",this.data({messageKey:o,values:a.map(function(e){var t=e.vNode,n=(e=e.attr,t.props),r=n.nodeName;return 3\
===n.nodeType?"#text":(n=Wc(t,{dpub:!0}))?"[role=".concat(n,"]"):e?r+"[".concat(e,"]"):r}).filter(function(e,t,n){return n.indexOf(e)===t}).join(", ")}),!1):(i=u,!!r.some(function(e){return(e=e.role)&&i.includes(e)})||("true"===n.attr("aria-busy")?(this.data({messageKey:"aria-busy"}),!0):(this.data(u),!(!t.includes(l)||r.some(ev))&&void 0))))},"aria-required-children-matches":function(e,t){return t=Wc(t,{dpub:!0}),!!jh(t)},"aria-required-parent-evaluate":function(e,t,n){var r=t&&Array.isArray(t.ownGroupRoles)?t.ownGroupRoles:[],a=Qg(n,r);if(!a)return!0;var o=(e=>{for(var t,n=[];e;)e.getAttribute("id")&&(t=Ta(e.getAttribute("id")),t=ls(e).querySelector("[aria-owns~=".concat(t,"]")))&&n.push(t),e=e.parentElement;return n.length?n:null})(e);if(o)for(var i=0,l=o.length;i<l;i++)if(!(a=Qg(Bl(o[i]),r,a,!0)))return!0;return this.data(a),!1},"aria-required-parent-matches":function(e,t){return t=Wc(t),!!Bh(t)},"aria-roledescription-evaluate":function(e){var t=1<arguments.length&&void 0!==argumen\
ts[1]?arguments[1]:{},n=Ad(2<arguments.length?arguments[2]:void 0);return!!(t.supportedRoles||[]).includes(n)||!(!n||"presentation"===n||"none"===n)&&void 0},"aria-unsupported-attr-evaluate":function(e,t,n){return!!(n=n.attrNames.filter(function(t){var n=$c.ariaAttrs[t];return!!qh(t)&&(t=n.unsupported,"object"!==a(t)?!!t:!yd(e,t.exceptions))})).length&&(this.data(n),!0)},"aria-valid-attr-evaluate":function(e,t,n){t=Array.isArray(t.value)?t.value:[];var r=[],a=/^aria-/;return n.attrNames.forEach(function(e){-1===t.indexOf(e)&&a.test(e)&&!qh(e)&&r.push(e)}),!r.length||(this.data(r),!1)},"aria-valid-attr-value-evaluate":function(e,t,n){t=Array.isArray(t.value)?t.value:[];var r="",a="",i=[],l=/^aria-/,u=["aria-errormessage"],s={"aria-controls":function(){var e=!1===["false",null].includes(n.attr("aria-haspopup"));return e&&(r='aria-controls="'.concat(n.attr("aria-controls"),'"'),a="controlsWithinPopup"),"false"!==n.attr("aria-expanded")&&"false"!==n.attr("aria-selected")&&0==e},"aria-curre\
nt":function(e){e||(r='aria-current="'.concat(n.attr("aria-current"),'"'),a="ariaCurrent")},"aria-owns":function(){return"false"!==n.attr("aria-expanded")},"aria-describedby":function(e){e||(r='aria-describedby="'.concat(n.attr("aria-describedby"),'"'),a=o._tree&&o._tree[0]._hasShadowRoot?"noIdShadow":"noId")},"aria-labelledby":function(e){e||(r='aria-labelledby="'.concat(n.attr("aria-labelledby"),'"'),a=o._tree&&o._tree[0]._hasShadowRoot?"noIdShadow":"noId")}};return n.attrNames.forEach(function(e){if(!u.includes(e)&&!t.includes(e)&&l.test(e)){var o,c=n.attr(e);try{o=Lh(n,e)}catch(o){return r="".concat(e,'="').concat(c,'"'),void(a="idrefs")}s[e]&&!s[e](o)||o||(""===c&&(o=e,"string"!==(null==(o=$c.ariaAttrs[e])?void 0:o.type))?(r=e,a="empty"):i.push("".concat(e,'="').concat(c,'"')))}}),i.length?(this.data(i),!1):!r||void this.data({messageKey:a,needsReview:r})},"attr-non-space-content-evaluate":function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.le\
ngth?arguments[2]:void 0;if(t.attribute&&"string"==typeof t.attribute)return n.hasAttr(t.attribute)?(n=n.attr(t.attribute),!!rd(n)||(this.data({messageKey:"emptyAttr"}),!1)):(this.data({messageKey:"noAttr"}),!1);throw new TypeError("attr-non-space-content requires options.attribute to be a string")},"autocomplete-appropriate-evaluate":function(e,t,n){var r,o,i;return"input"!==n.props.nodeName||(o={bday:["text","search","date"],email:["text","search","email"],username:["text","search","email"],"street-address":["text"],tel:["text","search","tel"],"tel-country-code":["text","search","tel"],"tel-national":["text","search","tel"],"tel-area-code":["text","search","tel"],"tel-local":["text","search","tel"],"tel-local-prefix":["text","search","tel"],"tel-local-suffix":["text","search","tel"],"tel-extension":["text","search","tel"],"cc-number":r=["text","search","number","tel"],"cc-exp":["text","search","month","tel"],"cc-exp-month":r,"cc-exp-year":r,"cc-csc":r,"transaction-amount":r,"bday-day\
":r,"bday-month":r,"bday-year":r,"new-password":["text","search","password"],"current-password":["text","search","password"],url:i=["text","search","url"],photo:i,impp:i},"object"===a(t)&&Object.keys(t).forEach(function(e){o[e]||(o[e]=[]),o[e]=o[e].concat(t[e])}),i=(r=n.attr("autocomplete").split(/\\s+/g).map(function(e){return e.toLowerCase()}))[r.length-1],!!op.stateTerms.includes(i))||(r=o[i],i=n.hasAttr("type")?rd(n.attr("type")).toLowerCase():"text",i=Vm().includes(i)?i:"text",void 0===r?"text"===i:r.includes(i))},"autocomplete-matches":function(e,t){var n=t.attr("autocomplete");if(!n||""===rd(n))return!1;if(n=t.props.nodeName,!1===["textarea","input","select"].includes(n))return!1;var r=t.attr("aria-readonly")||"false";return!t.hasAttr("readonly")&&"true"!==r.toLowerCase()&&(("input"!==n||!["submit","reset","button","hidden"].includes(t.props.type))&&(r=t.attr("aria-disabled")||"false",!t.hasAttr("disabled")&&"true"!==r.toLowerCase()&&(n=Wc(t),(!((r=mm(t.attr("tabindex")))<0&&t.ha\
sAttr("role"))||void 0!==(n=$c.ariaRoles[n])&&"widget"===n.type)&&!(r<0&&t.actualNode&&!qs(t)&&!Td(t)))))},"autocomplete-valid-evaluate":function(e,t,n){return n=n.attr("autocomplete")||"",ip(n,t)},"avoid-inline-spacing-evaluate":function(e,t){return!(0<(t=t.cssProperties.filter(function(t){if("important"===e.style.getPropertyPriority(t))return t})).length&&(this.data(t),1))},"braille-label-equivalent-evaluate":function(e,t,n){var r;if(!(null!=(r=n.attr("aria-braillelabel"))?r:"").trim())return!0;try{return""!==rd(tp(n))}catch(e){}},"braille-roledescription-equivalent-evaluate":function(e,t,n){var r=null!=(r=n.attr("aria-brailleroledescription"))?r:"";return""===rd(r)||("string"!=typeof(r=n.attr("aria-roledescription"))?(this.data({messageKey:"noRoleDescription"}),!1):""!==rd(r)||(this.data({messageKey:"emptyRoleDescription"}),!1))},"bypass-matches":function(e,t,n){return!dv(0,0,n)||!!e.querySelector("a[href]")},"caption-evaluate":function(e,t,n){return!Tm(n,"track").some(function(e){r\
eturn"captions"===(e.attr("kind")||"").toLowerCase()})&&void 0},"caption-faked-evaluate":function(e){var t=Xc(e),n=t[0];return t.length<=1||n.length<=1||e.rows.length<=1||n.reduce(function(e,t,r){return e||t!==n[r+1]&&void 0!==n[r+1]},!1)},"color-contrast-evaluate":function(e,n,r){var a=n.ignoreUnicode,o=n.ignoreLength,i=n.ignorePseudo,l=n.boldValue,u=n.boldTextPt,s=n.largeTextPt,c=n.contrastRatio,d=n.shadowOutlineEmMax,p=n.pseudoSizeThreshold;if(!qs(e))return this.data({messageKey:"hidden"}),!0;var f=Md(r,!1,!0);if(a&&(h=Sd(a=f,m={nonBmp:!0}),a=""===rd(rp(a,m)),h)&&a)this.data({messageKey:"nonBmp"});else{var m=t.getComputedStyle(e),h=parseFloat(m.getPropertyValue("font-size"));a=m.getPropertyValue("font-weight"),l=parseFloat(a)>=l||"bold"===a,a=Math.ceil(72*h)/96,a=(u=l&&a<u||!l&&a<s?c.normal:c.large).expected,s=u.minThreshold,c=u.maxThreshold,u=((e,t)=>{var n=void 0===(n=t.pseudoSizeThreshold)?.25:n;if(!(t=void 0!==(t=t.ignorePseudo)&&t)){var r=(t=e.boundingClientRect).width*t.height\
*n;do{if(r<Kg(e.actualNode,":before")+Kg(e.actualNode,":after"))return e}while(e=e.parent)}})(r,{ignorePseudo:i,pseudoSizeThreshold:p});if(u)this.data({fontSize:"".concat((72*h/96).toFixed(1),"pt (").concat(h,"px)"),fontWeight:l?"bold":"normal",messageKey:"pseudoContent",expectedContrastRatio:a+":1"}),this.relatedNodes(u.actualNode);else{var g,v,b,y;if(null!==(r=bg(e,{minRatio:.001,maxRatio:d})))return u=Rg(e,!(i=[]),p=Ag(e,i,d),n),n=d=e=null,0===r.length?e=kg(p,u):u&&p&&(n=[].concat(j(r),[p]).reduce(sg),r=kg(p,u),y=kg(p,n),g=kg(n,u),(e=Math.max(r,y,g))!==r)&&(d=g<y?"shadowOnBgColor":"fgOnShadowColor"),r=a<e,"number"==typeof s&&("number"!=typeof e||e<s)||"number"==typeof c&&("number"!=typeof e||c<e)?(this.data({contrastRatio:e}),!0):(g=Math.floor(100*e)/100,null===p?Bp.get("colorParse")?b=Bp.get(v="colorParse"):v=Bp.get("bgColor"):r||(v=d),null===u&&Bp.get("colorParse")&&(b=Bp.get(v="colorParse")),y=1===f.length,(s=1==g)?v=Bp.set("bgColor","equalRatio"):r||!y||o||(v="shortTextContent")\
,this.data({fgColor:u?u.toHexString():void 0,bgColor:p?p.toHexString():void 0,contrastRatio:g,fontSize:"".concat((72*h/96).toFixed(1),"pt (").concat(h,"px)"),fontWeight:l?"bold":"normal",messageKey:v,expectedContrastRatio:a+":1",shadowColor:n?n.toHexString():void 0,colorParse:b}),null===u||null===p||s||y&&!o&&!r?(v=null,Bp.clear(),void this.relatedNodes(i)):(r||this.relatedNodes(i),r));this.data({messageKey:"complexTextShadows"})}}},"color-contrast-matches":function(e,n){var a=(f=n.props).nodeName;if("option"===a)return!1;if("select"===a&&!e.options.length)return!1;if("input"===a&&["hidden","range","color","checkbox","radio","image"].includes(f.type))return!1;if(Sg(n)||gc(n))return!1;if(["input","select","textarea"].includes(a)){if(f=t.getComputedStyle(e),f=parseInt(f.getPropertyValue("text-indent"),10)){var o={top:(o=e.getBoundingClientRect()).top,bottom:o.bottom,left:o.left+f,right:o.right+f};if(!rf(o,e))return!1}return!0}if(f=ss(n,"label"),"label"===a||f){if(o=f||e,a=f?Bl(f):n,o.htm\
lFor&&(o=(f=ls(o).getElementById(o.htmlFor))&&Bl(f))&&Sg(o))return!1;if((f=Tm(a,'input:not([type="hidden"],[type="image"],[type="button"],[type="submit"],[type="reset"]), select, textarea')[0])&&Sg(f))return!1}for(var i,l=[],u=n;u;)u.props.id&&(i=yh(u).filter(function(e){return sf(e.getAttribute("aria-labelledby")||"").includes(u.props.id)}).map(function(e){return Bl(e)}),l.push.apply(l,j(i))),u=u.parent;if(0<l.length&&l.every(Sg))return!1;if(""===(a=Md(o=n,!1,!0))||""===rp(a,pv)||!o.children.some(function(e){return"#text"===e.props.nodeName&&!_d(e)}))return!1;if(!parseFloat(n.getComputedStylePropertyValue("font-size")))return!1;for(var s=r.createRange(),c=n.children,d=0;d<c.length;d++){var p=c[d];3===p.actualNode.nodeType&&""!==rd(p.actualNode.nodeValue)&&s.selectNodeContents(p.actualNode)}var f=Array.from(s.getClientRects()),m=fs(n);return f.some(function(t){var n,r=rf(t,e);return m.length?(n=m.some(function(e){return ds(t,e.boundingClientRect)}),r&&n):r})},"css-orientation-lock-eval\
uate":function(e,t,n,r){r=void 0===(r=(r||{}).cssom)?void 0:r;var a=void 0===(t=(t||{}).degreeThreshold)?0:t;if(r&&r.length){for(var o=!1,i=[],l=r.reduce(function(e,t){var n,r=t.sheet;return e[n=(n=t.shadowId)||"topDocument"]||(e[n]={root:t.root,rules:[]}),r&&r.cssRules&&(t=Array.from(r.cssRules),e[n].rules=e[n].rules.concat(t)),e},{}),u=function(){var e=c[s],t=(e=l[e]).root;if(!(e=e.rules.filter(d)).length)return 1;e.forEach(function(e){e=e.cssRules,Array.from(e).forEach(function(e){var n=(e=>{var t=e.selectorText;e=e.style;return!(!t||e.length<=0||!(t=e.transform||e.webkitTransform||e.msTransform||!1)&&!e.rotate||(t=(e=>e&&(e=e.match(/(rotate|rotateZ|rotate3d|matrix|matrix3d)\\(([^)]+)\\)(?!.*(rotate|rotateZ|rotate3d|matrix|matrix3d))/))?p((e=U(e,3))[1],e[2]):0)(t),e=p("rotate",e.rotate),!(t+=e))||(t=Math.abs(t),Math.abs(t-180)%180<=a))&&Math.abs(t-90)%90<=a})(e);n&&"HTML"!==e.selectorText.toUpperCase()&&(e=Array.from(t.querySelectorAll(e.selectorText))||[],i=i.concat(e)),o=o||n})})},s\
=0,c=Object.keys(l);s<c.length;s++)u();return!o||(i.length&&this.relatedNodes(i),!1)}function d(e){var t=e.type;e=e.cssText;return 4===t&&(/orientation:\\s*landscape/i.test(e)||/orientation:\\s*portrait/i.test(e))}function p(e,t){switch(e){case"rotate":case"rotateZ":return f(t);case"rotate3d":var n=U(t.split(",").map(function(e){return e.trim()}),4),r=n[2];n=n[3];return 0===parseInt(r)?void 0:f(n);case"matrix":case"matrix3d":var a,o;return(r=(r=t).split(",")).length<=6?(a=(o=U(r,2))[0],o=o[1],m(Math.atan2(parseFloat(o),parseFloat(a)))):(o=parseFloat(r[8]),a=Math.asin(o),o=Math.cos(a),m(Math.acos(parseFloat(r[0])/o)));default:return 0}}function f(e){var t=U(e.match(/(deg|grad|rad|turn)/)||[],1)[0];if(!t)return 0;var n=parseFloat(e.replace(t,""));switch(t){case"rad":return m(n);case"grad":var r=n;return(r%=400)<0&&(r+=400),Math.round(r/400*360);case"turn":return Math.round(360/(1/n));default:return parseInt(n)}}function m(e){return Math.round(e*(180/Math.PI))}},"data-table-large-matches":f\
unction(e){return!!fh(e)&&3<=(e=Xc(e)).length&&3<=e[0].length&&3<=e[1].length&&3<=e[2].length},"data-table-matches":function(e){return fh(e)},"deprecatedrole-evaluate":function(e,t,n){n=Ad(n,{dpub:!0,fallback:!0});var r=$c.ariaRoles[n];return!(null==r||!r.deprecated||(this.data(n),0))},"dlitem-evaluate":function(e){var t=(e=Os(e)).nodeName.toUpperCase(),n=Wc(e);return"DIV"===t&&["presentation","none",null].includes(n)&&(t=(e=Os(e)).nodeName.toUpperCase(),n=Wc(e)),"DL"===t&&!(n&&!["presentation","none","list"].includes(n))},"doc-has-title-evaluate":function(){var e=r.title;return!!rd(e)},"duplicate-id-active-matches":function(e){var t=e.getAttribute("id").trim();t='*[id="'.concat(Ta(t),'"]'),t=Array.from(ls(e).querySelectorAll(t));return!Sh(e)&&t.some(Oc)},"duplicate-id-after":function(e){var t=[];return e.filter(function(e){return-1===t.indexOf(e.data)&&(t.push(e.data),!0)})},"duplicate-id-aria-matches":function(e){return Sh(e)},"duplicate-id-evaluate":function(e){var t,n=e.getAttribut\
e("id").trim();return!n||(t=ls(e),(t=Array.from(t.querySelectorAll('[id="'.concat(Ta(n),'"]'))).filter(function(t){return t!==e})).length&&this.relatedNodes(t),this.data(n),0===t.length)},"duplicate-id-misc-matches":function(e){var t=e.getAttribute("id").trim();t='*[id="'.concat(Ta(t),'"]'),t=Array.from(ls(e).querySelectorAll(t));return!Sh(e)&&t.every(function(e){return!Oc(e)})},"duplicate-img-label-evaluate":function(e,t,n){return!["none","presentation"].includes(Ad(n))&&!!(t=eu(n,t.parentSelector))&&""!==(t=Md(t,!0).toLowerCase())&&t===tp(n).toLowerCase()},"exists-evaluate":function(){},"explicit-evaluate":function(e,t,n){var r=this;if(!n.attr("id"))return!1;if(n.actualNode){var a=ls(n.actualNode),o=Ta(n.attr("id"));a=Array.from(a.querySelectorAll('label[for="'.concat(o,'"]')));if(this.relatedNodes(a),!a.length)return!1;try{return a.some(function(e){return!qs(e)||(e=rd(Bc(e,{inControlContext:!0,startNode:n})),r.data({explicitLabel:e}),!!e)})}catch(e){}}},"fallbackrole-evaluate":funct\
ion(e,t,n){var r=sf(n.attr("role"));return!(r.length<=1)&&(!(!Dd(n)&&2===r.length&&r.includes("none")&&r.includes("presentation"))||void 0)},"focusable-content-evaluate":function(e,t,n){var r=n.tabbableElements;return!!r&&0<r.filter(function(e){return e!==n}).length},"focusable-disabled-evaluate":function(e,t,n){var r=["button","fieldset","input","select","textarea"];return!((n=n.tabbableElements)&&n.length&&(n=n.filter(function(e){return r.includes(e.props.nodeName)}),this.relatedNodes(n.map(function(e){return e.actualNode})),0!==n.length)&&!_p())||!!n.every(function(e){var t=e.getComputedStylePropertyValue("pointer-events"),n=parseInt(e.getComputedStylePropertyValue("width")),r=parseInt(e.getComputedStylePropertyValue("height"));return e.actualNode.onfocus||(0===n||0===r)&&"none"===t})&&void 0},"focusable-element-evaluate":function(e,t,n){return!(!n.hasAttr("contenteditable")||!function e(t){return"true"===(t=t.attr("contenteditable"))||""===t||"false"!==t&&(!!(t=eu(n.parent,"[conten\
teditable]"))&&e(t))}(n))||Sc(n)},"focusable-modal-open-evaluate":function(e,t,n){return!(n=n.tabbableElements.map(function(e){return e.actualNode}))||!n.length||!_p()||void this.relatedNodes(n)},"focusable-no-name-evaluate":function(e,t,n){if(!Sc(n))return!1;try{return!tp(n)}catch(e){}},"focusable-not-tabbable-evaluate":function(e,t,n){var r=["button","fieldset","input","select","textarea"];return!((n=n.tabbableElements)&&n.length&&(n=n.filter(function(e){return!r.includes(e.props.nodeName)}),this.relatedNodes(n.map(function(e){return e.actualNode})),0!==n.length)&&!_p())||!!n.every(function(e){var t=e.getComputedStylePropertyValue("pointer-events"),n=parseInt(e.getComputedStylePropertyValue("width")),r=parseInt(e.getComputedStylePropertyValue("height"));return e.actualNode.onfocus||(0===n||0===r)&&"none"===t})&&void 0},"frame-focusable-content-evaluate":function(e,t,n){if(n.children)try{return!n.children.some(function e(t){if(Sc(t))return!0;if(!t.children){if(1===t.props.nodeType)thr\
ow new Error("Cannot determine children");return!1}return t.children.some(function(t){return e(t)})})}catch(e){}},"frame-focusable-content-matches":function(e,t,n){var r;return!n.initiator&&!n.focusable&&1<(null==(r=n.size)?void 0:r.width)*(null==(r=n.size)?void 0:r.height)},"frame-tested-after":function(e){var t={};return e.filter(function(e){var n;return"html"!==e.node.ancestry[e.node.ancestry.length-1]?(n=e.node.ancestry.flat(1/0).join(" > "),t[n]=e,!0):(n=e.node.ancestry.slice(0,e.node.ancestry.length-1).flat(1/0).join(" > "),t[n]&&(t[n].result=!0),!1)})},"frame-tested-evaluate":function(e,t){return!t.isViolation&&void 0},"frame-title-has-text-matches":function(e){return e=e.getAttribute("title"),!!rd(e)},"has-alt-evaluate":function(e,t,n){var r=n.props.nodeName;return!!["img","input","area"].includes(r)&&n.hasAttr("alt")},"has-descendant-after":function(e){return e.some(function(e){return!0===e.result})&&e.forEach(function(e){e.result=!0}),e},"has-descendant-evaluate":function(e,t\
,n){if(t&&t.selector&&"string"==typeof t.selector)return!(!t.passForModal||!_p())||(n=wm(n,t.selector,Td),this.relatedNodes(n.map(function(e){return e.actualNode})),0<n.length);throw new TypeError("has-descendant requires options.selector to be a string")},"has-global-aria-attribute-evaluate":function(e,t,n){var r=Kc().filter(function(e){return n.hasAttr(e)});return this.data(r),0<r.length},"has-implicit-chromium-role-matches":function(e,t){return null!==Dd(t,{chromium:!0})},"has-lang-evaluate":function(e,t,n){var a=void 0!==r&&gl(r);return t.attributes.includes("xml:lang")&&t.attributes.includes("lang")&&zg(n.attr("xml:lang"))&&!zg(n.attr("lang"))&&!a?(this.data({messageKey:"noXHTML"}),!1):!!t.attributes.some(function(e){return zg(n.attr(e))})||(this.data({messageKey:"noLang"}),!1)},"has-text-content-evaluate":function(e,t,n){try{return""!==rd(Yd(n))}catch(e){}},"has-widget-role-evaluate":function(e,t,n){return null!==(n=Wc(n))&&("widget"===(n=Rp(n))||"composite"===n)},"heading-matche\
s":function(e,t){return"heading"===Ad(t)},"heading-order-after":function(e){(t=j(t=e)).sort(function(e,t){return e=e.node,t=t.node,e.ancestry.length-t.ancestry.length});var t,n=t.reduce(_g,[]).filter(function(e){return-1!==e.level});return e.forEach(function(e){e.result=((e,t)=>{var n=null!=(n=null==(n=t[e=Mg(t,e.node.ancestry)])?void 0:n.level)?n:-1;t=null!=(t=null==(t=t[e-1])?void 0:t.level)?t:-1;return 0===e||(-1!==n?n-t<=1:void 0)})(e,n)}),e},"heading-order-evaluate":function(){var e,t=Il.get("headingOrder");return t||(t=(e=wm(o._tree[0],"h1, h2, h3, h4, h5, h6, [role=heading], iframe, frame",Td)).map(function(e){return{ancestry:[_l(e.actualNode)],level:(t=(t=Ad(e))&&t.includes("heading"),n=e.attr("aria-level"),r=parseInt(n,10),e=U(e.props.nodeName.match(/h(\\d)/)||[],2)[1],t?e&&!n?parseInt(e,10):isNaN(r)||r<1?e?parseInt(e,10):2:r||-1:-1)};var t,n,r}),this.data({headingOrder:t}),Il.set("headingOrder",e)),!0},"help-same-as-label-evaluate":function(e,t,n){n=sp(n);var r=e.getAttribute(\
"title");return!!n&&(r||(r="",e.getAttribute("aria-describedby")&&(r=Ic(e,"aria-describedby").map(function(e){return e?Bc(e):""}).join(""))),rd(r)===rd(n))},"hidden-content-evaluate":function(e,n,r){if(!["SCRIPT","HEAD","TITLE","NOSCRIPT","STYLE","TEMPLATE"].includes(e.nodeName.toUpperCase())&&wp(r)){if("none"===(r=t.getComputedStyle(e)).getPropertyValue("display"))return;if("hidden"===r.getPropertyValue("visibility")&&(!(e=(r=Os(e))&&t.getComputedStyle(r))||"hidden"!==e.getPropertyValue("visibility")))return}return!0},"hidden-explicit-label-evaluate":function(e,t,n){if(n.hasAttr("id")){if(!n.actualNode)return;var r,a=ls(e);e=Ta(e.getAttribute("id"));if((a=a.querySelector('label[for="'.concat(e,'"]')))&&!Td(a)){try{r=tp(n).trim()}catch(e){return}return""===r}}return!1},"html-namespace-matches":function(e,t){return!iv(0,t)},"html5-scope-evaluate":function(e){return!kp(r)||"TH"===e.nodeName.toUpperCase()},"identical-links-same-purpose-after":function(e){if(e.length<2)return e;for(var t=e\
.filter(function(e){return void 0!==e.result}),n=[],r={},o=function(e){var o=t[e],i=(u=o.data).name,l=u.urlProps;if(r[i])return 1;var u=t.filter(function(t,n){return t.data.name===i&&n!==e}),s=u.every(function(e){return function e(t,n){var r,o;return!(!t||!n)&&(r=Object.getOwnPropertyNames(t),o=Object.getOwnPropertyNames(n),r.length===o.length)&&r.every(function(r){var o=t[r];r=n[r];return a(o)===a(r)&&("object"===a(o)||"object"===a(r)?e(o,r):o===r)})}(e.data.urlProps,l)});u.length&&!s&&(o.result=void 0),o.relatedNodes=[],(s=o.relatedNodes).push.apply(s,j(u.map(function(e){return e.relatedNodes[0]}))),r[i]=u,n.push(o)},i=0;i<t.length;i++)o(i);return n},"identical-links-same-purpose-evaluate":function(e,t,n){if(n=Pc.accessibleTextVirtual(n),n=Pc.sanitize(Pc.removeUnicode(n,{emoji:!0,nonBmp:!0,punctuations:!0})).toLowerCase())return n={name:n,urlProps:os.urlPropsFromAttribute(e,"href")},this.data(n),this.relatedNodes([e]),!0},"identical-links-same-purpose-matches":function(e,t){return!(!\
tp(t)||(t=Ad(e))&&"link"!==t)},"implicit-evaluate":function(e,t,n){try{var r,a=eu(n,"label");return!!a&&(r=rd(tp(a,{inControlContext:!0,startNode:n})),a.actualNode&&this.relatedNodes([a.actualNode]),this.data({implicitLabel:r}),!!r)}catch(e){}},"inline-style-property-evaluate":function(e,n){var r=n.cssProperty,a=n.absoluteValues,o=n.minValue,i=n.maxValue,l=void 0===(l=n.normalValue)?0:l,u=n.multiLineOnly;return!!(!n.noImportant&&"important"!==e.style.getPropertyPriority(r)||u&&!Mp(e))||(n={},"number"==typeof o&&(n.minValue=o),"number"==typeof i&&(n.maxValue=i),u=e.style.getPropertyValue(r),["inherit","unset","revert","revert-layer"].includes(u)?(this.data(B({value:u},n)),!0):(u=((e,n)=>{var r=n.cssProperty,a=n.absoluteValues;n=n.normalValue;return"normal"===(r=(e=t.getComputedStyle(e)).getPropertyValue(r))||(n=parseFloat(r),a)?n:(a=parseFloat(e.getPropertyValue("font-size")),e=Math.round(n/a*100)/100,isNaN(e)?r:e)})(e,{absoluteValues:a,cssProperty:r,normalValue:l}),this.data(B({value:u\
},n)),"number"==typeof u?("number"!=typeof o||o<=u)&&("number"!=typeof i||u<=i):void 0))},"inserted-into-focus-order-matches":function(e){return Ep(e)},"internal-link-present-evaluate":function(e,t,n){return Tm(n,"a[href]").some(function(e){return/^#[^/!]/.test(e.attr("href"))})},"invalid-children-evaluate":function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0,r=[],a=[];if(n.children){for(var o=qg(n.children);o.length;){var i=(l=o.shift()).vChild,l=l.nested;if(t.divGroups&&!l&&"div"===(u=i).props.nodeName&&null===Wc(u)){if(!i.children)return;var u=qg(i.children,!0);o.push.apply(o,j(u))}else u=((e,t,n)=>{var r=void 0===(r=n.validRoles)?[]:r,a=(n=void 0===(n=n.validNodeNames)?[]:n,(i=e.props).nodeName),o=i.nodeType,i=i.nodeValue;t=t?"div > ":"";return 3===o&&""!==i.trim()?t+"#text":!(1!==o||!Td(e))&&(i=Wc(e),o=Ad(e),i?!r.includes(i)&&t+"[role=".concat(o,"]"):!n.includes(a)&&!r.includes(o)&&t+a)})(i,l,t),u&&(a.includes(u)||a.p\
ush(u),1===(null==i||null==(l=i.actualNode)?void 0:l.nodeType))&&r.push(i.actualNode)}return 0!==a.length&&(this.data({values:a.join(", ")}),this.relatedNodes(r),!0)}},"invalidrole-evaluate":function(e,t,n){return!!(n=sf(n.attr("role"))).every(function(e){return!Uc(e.toLowerCase(),{allowAbstract:!0})})&&(this.data(n),!0)},"is-element-focusable-evaluate":function(e,t,n){return Oc(n)},"is-initiator-matches":dv,"is-on-screen-evaluate":Mi,"is-visible-matches":qs,"is-visible-on-screen-matches":function(e,t){return qs(t)},"label-content-name-mismatch-evaluate":function(e,t,n){var r=null==t?void 0:t.pixelThreshold,a=null!=(a=null==t?void 0:t.occurrenceThreshold)?a:null==t?void 0:t.occuranceThreshold;return t=Bc(e).toLowerCase(),!(e=Md(n,!1,!1,{ignoreIconLigature:!0,pixelThreshold:r,occurrenceThreshold:a}).toLowerCase())||(ap(t)<1||ap(e)<1?void 0:(n=e,r=Vg(r=t),n=Vg(n),!(!r||!n)&&r.includes(n)))},"label-content-name-mismatch-matches":function(e,t){var n=Ad(e);return!!(n&&Ah("widget").includes(\
n)&&Ch().includes(n)&&(rd(Lc(t))||rd(jc(e)))&&rd(Md(t)))},"label-matches":function(e,t){return"input"!==t.props.nodeName||!1===t.hasAttr("type")||(t=t.attr("type").toLowerCase(),!1===["hidden","image","button","submit","reset"].includes(t))},"landmark-has-body-context-matches":function(e,t){return e.hasAttribute("role")||!ss(t,"article, aside, main, nav, section")},"landmark-is-top-level-evaluate":function(e){var t=Ah("landmark"),n=Os(e),r=Ad(e);for(this.data({role:r});n;){var a=Wc(n);if((a=a||"FORM"===n.nodeName.toUpperCase()?a:Dd(n))&&t.includes(a)&&("main"!==a||"complementary"!==r))return!1;n=Os(n)}return!0},"landmark-is-unique-after":function(e){var t=[];return e.filter(function(e){var n=t.find(function(t){return e.data.role===t.data.role&&e.data.accessibleText===t.data.accessibleText});return n?(n.result=!1,n.relatedNodes.push(e.relatedNodes[0]),!1):(t.push(e),e.relatedNodes=[],!0)})},"landmark-is-unique-evaluate":function(e,t,n){var r=Ad(e);return n=(n=tp(n))?n.toLowerCase():null\
,this.data({role:r,accessibleText:n}),this.relatedNodes([e]),!0},"landmark-unique-matches":function(e,t){return n=t,a=Ah("landmark"),!!(o=Ad(n))&&("section"!==(r=n.props.nodeName)&&"form"!==r?0<=a.indexOf(o)||"region"===o:!!tp(n))&&Td(t);var n,r,a,o},"layout-table-matches":function(e){return!fh(e)&&!Oc(e)},"link-in-text-block-evaluate":function(e,t){var n=t.requiredContrastRatio;if(t=t.allowSameColor,Yg(e))return!1;for(var r=Os(e);r&&1===r.nodeType&&!Yg(r);)r=Os(r);if(r){this.relatedNodes([r]);var a=Rg(e),o=Rg(r),i=(e=Ag(e),Ag(r)),l=a&&o?Ug(a,o):void 0;if((l=l&&Math.floor(100*l)/100)&&n<=l)return!0;var u=e&&i?Ug(e,i):void 0;if((u=u&&Math.floor(100*u)/100)&&n<=u)return!0;if(u){if(l)return!(!t||1!==l||1!==u)||(1===l&&1<u?this.data({messageKey:"bgContrast",contrastRatio:u,requiredContrastRatio:n,nodeBackgroundColor:e?e.toHexString():void 0,parentBackgroundColor:i?i.toHexString():void 0}):this.data({messageKey:"fgContrast",contrastRatio:l,requiredContrastRatio:n,nodeColor:a?a.toHexString()\
:void 0,parentColor:o?o.toHexString():void 0}),!1)}else u=null!=(t=Bp.get("bgColor"))?t:"bgContrast",this.data({messageKey:u}),Bp.clear()}},"link-in-text-block-matches":function(e){var t=rd(e.innerText),n=Wc(e);return!(n&&"link"!==n||!t||!qs(e))&&Op(e)},"link-in-text-block-style-evaluate":function(e){if(Hg(e))return!1;for(var n=Os(e);n&&1===n.nodeType&&!Hg(n);)n=Os(n);return n?(this.relatedNodes([n]),!!ng(e,n)||!!(e=>{for(var n=0,r=["before","after"];n<r.length;n++){var a=r[n];if("none"!==t.getComputedStyle(e,":".concat(a)).getPropertyValue("content"))return 1}})(e)&&void this.data({messageKey:"pseudoContent"})):void 0},"listitem-evaluate":function(e,t,n){var r;if(n=n.parent)return r=Wc(n),n=Ad(n),!!["presentation","none","list"].includes(n)||(r&&Uc(r)&&this.data({messageKey:"roleNotValid"}),!1)},"matches-definition-evaluate":function(e,t,n){return yd(n,t.matcher)},"meta-refresh-evaluate":function(e,t,n){var r=(a=t||{}).minDelay,a=a.maxDelay;return!(n=U((n.attr("content")||"").trim().s\
plit(Zh),1)[0]).match(Jh)||(n=parseFloat(n),this.data({redirectDelay:n}),"number"==typeof r&&n<=t.minDelay)||"number"==typeof a&&n>t.maxDelay},"meta-viewport-scale-evaluate":function(e,t,n){var r,a=void 0===(a=(t=t||{}).scaleMinimum)?2:a;return t=void 0!==(t=t.lowerBound)&&t,!((n=n.attr("content")||"")&&(n=n.split(/[;,]/).reduce(function(e,t){var n;return(t=t.trim())&&(n=(t=U(t.split("="),2))[0],t=t[1],n)&&t&&(n=n.toLowerCase().trim(),t=t.toLowerCase().trim(),"maximum-scale"===n&&"yes"===t&&(t=1),"maximum-scale"===n&&parseFloat(t)<0||(e[n]=t)),e},{}),!(t&&n["maximum-scale"]&&parseFloat(n["maximum-scale"])<t))&&(t||"no"!==n["user-scalable"]?(r=parseFloat(n["user-scalable"]),!t&&n["user-scalable"]&&(r||0===r)&&-1<r&&r<1?(this.data("user-scalable"),1):n["maximum-scale"]&&parseFloat(n["maximum-scale"])<a&&(this.data("maximum-scale"),1)):(this.data("user-scalable=no"),1)))},"multiple-label-evaluate":function(e){var t=Ta(e.getAttribute("id")),n=e.parentNode,r=(r=ls(e)).documentElement||r,a=A\
rray.from(r.querySelectorAll('label[for="'.concat(t,'"]')));for(a.length&&(a=a.filter(function(e){return!Rs(e)}));n;)"LABEL"===n.nodeName.toUpperCase()&&-1===a.indexOf(n)&&a.push(n),n=n.parentNode;return this.relatedNodes(a),1<a.length&&(1<(r=a.filter(Td)).length||!Ic(e,"aria-labelledby").includes(r[0]))&&void 0},"nested-interactive-matches":function(e,t){return!!(t=Ad(t))&&!!$c.ariaRoles[t].childrenPresentational},"no-autoplay-audio-evaluate":function(e,t){var n,r=e.hasAttribute("controls");return e.hasAttribute("loop")?r:e.duration?(t=void 0===(t=t.allowedDuration)?3:t,(e.currentSrc?(n=(e=>{if(e=e.match(/#t=(.*)/))return U(e,2)[1].split(",").map(function(e){if(/:/.test(e)){for(var t=e.split(":"),n=0,r=1;0<t.length;)n+=r*parseInt(t.pop(),10),r*=60;return parseFloat(n)}return parseFloat(e)})})(e.currentSrc))?1!==n.length?Math.abs(n[1]-n[0]):Math.abs(e.duration-n[0]):Math.abs(e.duration-(e.currentTime||0)):0)<=t||!!r):void console.warn("axe.utils.preloadMedia did not load metadata")},"n\
o-autoplay-audio-matches":function(e){return!!e.currentSrc&&!e.hasAttribute("paused")&&!e.hasAttribute("muted")},"no-empty-role-matches":function(e,t){return!!t.hasAttr("role")&&!!t.attr("role").trim()},"no-explicit-name-required-matches":cv,"no-focusable-content-evaluate":function(e,t,n){if(n.children)try{var r,a=function e(t){if(!t.children){if(1===t.props.nodeType)throw new Error("Cannot determine children");return[]}var n=[];return t.children.forEach(function(t){"widget"===Rp(t)&&Oc(t)?n.push(t):n.push.apply(n,j(e(t)))}),n}(n);return!a.length||(0<(r=a.filter(Gg)).length?(this.data({messageKey:"notHidden"}),this.relatedNodes(r)):this.relatedNodes(a),!1)}catch(e){}},"no-implicit-explicit-label-evaluate":function(e,t,n){var r,a,o=Ad(n,{noImplicit:!0});this.data(o);try{r=rd(Kd(n)).toLowerCase(),a=rd(tp(n)).toLowerCase()}catch(e){return}return!(!a&&!r||(a||!r)&&a.includes(r))&&void 0},"no-naming-method-matches":function(e,t){var n=wd(t).namingMethods;return!(n&&0!==n.length||"combobox"=\
==Wc(t)&&Tm(t,'input:not([type="hidden"])').length||_h(t,{popupRoles:["listbox"]}))},"no-negative-tabindex-matches":function(e,t){return null===(t=mm(t.attr("tabindex")))||0<=t},"no-role-matches":function(e,t){return!t.attr("role")},"non-empty-if-present-evaluate":function(e,t,n){var r=n.props.nodeName,a=(n.attr("type")||"").toLowerCase();return(n=n.attr("value"))&&this.data({messageKey:"has-label"}),!("input"!==r||!["submit","reset"].includes(a))&&null===n},"not-html-matches":function(e,t){return"html"!==t.props.nodeName},"object-is-loaded-matches":function(e,t){return[cv,function(e){var t;return null==e||null==(t=e.ownerDocument)||!t.createRange||((t=e.ownerDocument.createRange()).setStart(e,0),t.setEnd(e,e.childNodes.length),0===t.getClientRects().length)}].every(function(n){return n(e,t)})},"only-dlitems-evaluate":function(e,t,n){var r=["definition","term","list"];return(n=n.children.reduce(function(e,t){var n=t.actualNode;return"DIV"===n.nodeName.toUpperCase()&&null===Ad(n)?e.conc\
at(t.children):e.concat(t)},[]).reduce(function(e,t){var n,a=(t=t.actualNode).nodeName.toUpperCase();return 1===t.nodeType&&Td(t)?(n=Wc(t),("DT"!==a&&"DD"!==a||n)&&!r.includes(n)&&e.badNodes.push(t)):3===t.nodeType&&""!==t.nodeValue.trim()&&(e.hasNonEmptyTextNode=!0),e},{badNodes:[],hasNonEmptyTextNode:!1})).badNodes.length&&this.relatedNodes(n.badNodes),!!n.badNodes.length||n.hasNonEmptyTextNode},"only-listitems-evaluate":function(e,t,n){var r=!1,a=!1,o=!0,i=[],l=[],u=[];if(n.children.forEach(function(e){var t,n,s=e.actualNode;3===s.nodeType&&""!==s.nodeValue.trim()?r=!0:1===s.nodeType&&Td(s)&&(o=!1,t="LI"===s.nodeName.toUpperCase(),n="listitem"===(e=Ad(e)),t||n||i.push(s),t&&!n&&(l.push(s),u.includes(e)||u.push(e)),n)&&(a=!0)}),r||i.length)this.relatedNodes(i);else{if(o||a)return!1;this.relatedNodes(l),this.data({messageKey:"roleNotValid",roles:u.join(", ")})}return!0},"p-as-heading-evaluate":function(e,t,n){var r=(i=Array.from(e.parentNode.children)).indexOf(e),a=(t=t||{}).margins||\
[],o=i.slice(r+1).find(function(e){return"P"===e.nodeName.toUpperCase()}),i=i.slice(0,r).reverse().find(function(e){return"P"===e.nodeName.toUpperCase()}),l=(r=Kh(e),o?Kh(o):null),u=(i=i?Kh(i):null,t.passLength);return t=t.failLength,e=e.textContent.trim().length,(o=null==o?void 0:o.textContent.trim().length)*u<e||!l||!Xh(r,l,a)||!!((u=ss(n,"blockquote"))&&"BLOCKQUOTE"===u.nodeName.toUpperCase()||i&&!Xh(r,i,a)||o*t<e)&&void 0},"p-as-heading-matches":function(e){var t=Array.from(e.parentNode.childNodes),n=e.textContent.trim();return!(0===n.length||2<=(n.match(/[.!?:;](?![.!?:;])/g)||[]).length)&&0!==t.slice(t.indexOf(e)+1).filter(function(e){return"P"===e.nodeName.toUpperCase()&&""!==e.textContent.trim()}).length},"page-no-duplicate-after":function(e){return e.filter(function(e){return"ignored"!==e.data})},"page-no-duplicate-evaluate":function(e,t,n){if(!t||!t.selector||"string"!=typeof t.selector)throw new TypeError("page-no-duplicate requires options.selector to be a string");var r="p\
age-no-duplicate;"+t.selector;if(!Il.get(r))return Il.set(r,!0),r=wm(o._tree[0],t.selector,Td),"string"==typeof t.nativeScopeFilter&&(r=r.filter(function(e){return e.actualNode.hasAttribute("role")||!ss(e,t.nativeScopeFilter)})),"string"==typeof t.role&&(r=r.filter(function(e){return Ad(e)===t.role})),this.relatedNodes(r.filter(function(e){return e!==n}).map(function(e){return e.actualNode})),r.length<=1;this.data("ignored")},"presentation-role-conflict-matches":function(e,t){return null!==Dd(t,{chromiumRoles:!0})},"presentational-role-evaluate":function(e,t,n){var r=Wc(n);if(["presentation","none"].includes(r)&&["iframe","frame"].includes(n.props.nodeName)&&n.hasAttr("title"))this.data({messageKey:"iframe",nodeName:n.props.nodeName});else{var a,o=Ad(n);if(["presentation","none"].includes(o))return this.data({role:o}),!0;["presentation","none"].includes(r)&&(r=Kc().some(function(e){return n.hasAttr(e)}),a=Oc(n),this.data({messageKey:r&&!a?"globalAria":!r&&a?"focusable":"both",role:o}))\
}return!1},"region-after":function(e){var t=e.filter(function(e){return e.data.isIframe});return e.forEach(function(e){if(!e.result&&1!==e.node.ancestry.length){var n,r=e.node.ancestry.slice(0,-1),a=Q(t);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(im(r,o.node.ancestry)){e.result=o.result;break}}}catch(e){a.e(e)}finally{a.f()}}}),t.forEach(function(e){e.result||(e.result=!0)}),e},"region-evaluate":function(e,t,n){return this.data({isIframe:["iframe","frame"].includes(n.props.nodeName)}),!Il.get("regionlessNodes",function(){return function e(t,n){var a=t.actualNode;if("button"===Ad(t)||function(e,t){var n=e.actualNode,r=Ad(e),a=(n=(n.getAttribute("aria-live")||"").toLowerCase().trim(),Ah("landmark"));return!!(["assertive","polite"].includes(n)||Yh.includes(r)||a.includes(r)||t.regionMatcher&&yd(e,t.regionMatcher))}(t,n)||["iframe","frame"].includes(t.props.nodeName)||Wp(t.actualNode)&&Ac(t.actualNode,"href")||!Td(a)){for(var o=t;o;)o._hasRegionDescendant=!0,o=o.parent;return["iframe\
","frame"].includes(t.props.nodeName)?[t]:[]}return a!==r.body&&Dp(a,!0)&&!function(e){return["none","presentation"].includes(Ad(e))&&!yp(e)}(t)?[t]:t.children.filter(function(e){return 1===(e=e.actualNode).nodeType}).map(function(t){return e(t,n)}).reduce(function(e,t){return e.concat(t)},[])}(o._tree[0],t).map(function(e){for(;e.parent&&!e.parent._hasRegionDescendant&&e.parent.actualNode!==r.body;)e=e.parent;return e}).filter(function(e,t,n){return n.indexOf(e)===t})}).includes(n)},"same-caption-summary-evaluate":function(e,t,n){var r;if(void 0!==n.children)return r=n.attr("summary"),!(!(n=!!(n=n.children.find(Uh))&&rd(Yd(n)))||!r)&&rd(r).toLowerCase()===rd(n).toLowerCase()},"scope-value-evaluate":function(e,t){return e=e.getAttribute("scope").toLowerCase(),-1!==t.values.indexOf(e)},"scrollable-region-focusable-matches":function(e,t){return void 0!==qf(e,13)&&!1===_h(t)&&(n=t.boundingClientRect,Tm(t,"*").some(function(e){var t,a,o;return!!wp(e,!0,!0)&&(t=[],yp(e)?t.push.apply(t,j((a=\
e,(o=r.createRange()).selectNodeContents(a.actualNode),Array.from(o.getClientRects())))):t=[e.boundingClientRect],t.some(function(e){return e.left<n.left||e.right>n.right||e.top<n.top||e.bottom>n.bottom}))}));var n},"skip-link-evaluate":function(e){return!!(e=Ac(e,"href"))&&(Td(e)||void 0)},"skip-link-matches":function(e){return Wp(e)&&js(e)},"structured-dlitems-evaluate":function(e,t,n){var r=n.children;if(!r||!r.length)return!1;for(var a,o=!1,i=!1,l=0;l<r.length;l++){if((o="DT"===(a=r[l].props.nodeName.toUpperCase())||o)&&"DD"===a)return!1;"DD"===a&&(i=!0)}return o||i},"summary-interactive-matches":function(e,t){var n,r,a=t.parent;return!("details"!==a.props.nodeName||(r=null==(r=(n=t).actualNode)?void 0:r.parentElement)&&r!==n.parent.actualNode)&&a.children.find(function(e){return"summary"===e.props.nodeName})===t},"svg-namespace-matches":iv,"svg-non-empty-title-evaluate":function(e,t,n){if(n.children){if(n=n.children.find(function(e){return"title"===e.props.nodeName}),!n)return thi\
s.data({messageKey:"noTitle"}),!1;try{if(""===Yd(n,{includeHidden:!0}).trim())return this.data({messageKey:"emptyTitle"}),!1}catch(e){return}return!0}},"tabindex-evaluate":function(e,t,n){return null===(n=mm(n.attr("tabindex")))||n<=0},"table-or-grid-role-matches":function(e,t){return t=Ad(t),["treegrid","grid","table"].includes(t)},"target-offset-evaluate":function(e,t,n){var r=(null==t?void 0:t.minOffset)||24;if(Ys(10*r,n.boundingClientRect))return this.data({messageKey:"large",minOffset:r}),!0;var a,o,i=[],l=r,u=Q(mc(n,r));try{for(u.s();!(a=u.n()).done;){var s=a.value;if("widget"===Rp(s)&&Oc(s)){var c=null;try{c=Ks(n,s,r/2)}catch(e){if(e.message.startsWith("splitRects"))return void this.data({messageKey:"tooManyRects",closestOffset:0,minOffset:r});throw e}null===c||r<=.05+(c=2*(o=c,Math.round(10*o)/10))||(l=Math.min(l,c),i.push(s))}}}catch(e){u.e(e)}finally{u.f()}return 0===i.length?(this.data({closestOffset:l,minOffset:r}),!0):(this.relatedNodes(i.map(function(e){return e.actualNod\
e})),i.some(Sc)?(this.data({closestOffset:l,minOffset:r}),!Sc(n)&&void 0):void this.data({messageKey:"nonTabbableNeighbor",closestOffset:l,minOffset:r}))},"target-size-evaluate":function(e,t,n){t=(null==t?void 0:t.minSize)||24;var r,a,o,i,l,u,s=n.boundingClientRect;return Ys(10*t,s)?(this.data({messageKey:"large",minSize:t}),!0):(l=Ys.bind(null,t),i=mc(n),a=n,r=i.filter(function(e){return!Ig(e,a)&&jg(a,e)}),o=(i=((e,t)=>{var n,r=[],a=[],o=Q(t);try{for(o.s();!(n=o.n()).done;){var i=n.value;!jg(e,i)&&Zs(e,i)&&"none"!==i.getComputedStylePropertyValue("pointer-events")&&(Ig(e,i)?r:a).push(i)}}catch(e){o.e(e)}finally{o.f()}return{fullyObscuringElms:r,partialObscuringElms:a}})(n,i)).fullyObscuringElms,i=i.partialObscuringElms,!r.length||!o.length&&l(s)?o.length?(this.relatedNodes(Lg(o)),this.data({messageKey:"obscured"}),!0):(o=!Sc(n)&&void 0,l(s)?(i=i.filter(function(e){return"widget"===Rp(e)&&Oc(e)})).length?(n=((e,t,n)=>{var r;e=e.boundingClientRect,t=t.map(function(e){return"inline"===e.\
getComputedStylePropertyValue("display")?e.clientRects:e.boundingClientRect}).flat(1/0);try{r=Js(e,t)}catch(e){return null}var a=n;return r.reduce(function(e,t){var n=Ys(a,e);return n!==Ys(a,t)?n?e:t:(n=e.width*e.height,t.width*t.height<n?e:t)})})(n,i,t))?l(n)?(this.data(B({minSize:t},Bg(n||s))),this.relatedNodes(Lg(i)),!0):r.length?(this.data({minSize:t,messageKey:"contentOverflow"}),void this.relatedNodes(Lg(r))):(l=i.every(Sc),u="partiallyObscured".concat(l?"":"NonTabbable"),this.data(B({messageKey:u,minSize:t},Bg(n))),this.relatedNodes(Lg(i)),l?o:void 0):void this.data({minSize:t,messageKey:"tooManyRects"}):(this.data(B({minSize:t},Bg(s))),!0):(this.data(B({minSize:t},Bg(s))),o)):(this.data({minSize:t,messageKey:"contentOverflow"}),void this.relatedNodes(Lg(r))))},"td-has-header-evaluate":function(e){var t=[],n=sh(e),r=Xc(e);return n.forEach(function(e){Dp(e)&&ph(e)&&!Ph(e)&&!dh(e,r).some(function(e){return null!==e&&!!Dp(e)})&&t.push(e)}),!t.length||(this.relatedNodes(t),!1)},"td-\
headers-attr-evaluate":function(e){for(var t=[],n={},r=0;r<e.rows.length;r++)for(var a=e.rows[r],o=0;o<a.cells.length;o++){var i=a.cells[o],l=(t.push(i),i.getAttribute("id"));l&&(n[l]=Ad(i))}var u,s=N(N(N(N({},$h,new Set),Vh,new Set),Gh,new Set),Hh,new Set),c=(t.forEach(function(e){var t,r;e.hasAttribute("headers")&&Td(e)&&((t=e.getAttribute("headers").trim())?(r=e.getAttribute("id"),sf(t).forEach(function(t){r&&t===r?s[$h].add(e):n[t]?["columnheader","rowheader"].includes(n[t])||s[Gh].add(e):s[Vh].add(e)})):s[Hh].add(e))}),Q(zh));try{for(c.s();!(u=c.n()).done;){var d=u.value;if(0<s[d].size)return this.relatedNodes(j(s[d])),d===Hh?void 0:(this.data({messageKey:d}),!1)}}catch(e){c.e(e)}finally{c.f()}return!0},"th-has-data-cells-evaluate":function(e){var t=sh(e),n=this,r=[],a=(t=(t.forEach(function(e){var t;(t=((t=e.getAttribute("headers"))&&(r=r.concat(t.split(/\\s+/))),e.getAttribute("aria-labelledby")))&&(r=r.concat(t.split(/\\s+/)))}),t.filter(function(e){return""!==rd(e.textContent)&&\
("TH"===e.nodeName.toUpperCase()||-1!==["rowheader","columnheader"].indexOf(Wc(e)))})),Xc(e)),o=!0;return t.forEach(function(e){var t,i;e.getAttribute("id")&&r.includes(e.getAttribute("id"))||(t=Zc(e,a),i=!1,(i=!(i=Qc(e)?hh("down",t,a).find(function(t){return!Qc(t)&&dh(t,a).includes(e)}):i)&&ed(e)?hh("right",t,a).find(function(t){return!ed(t)&&dh(t,a).includes(e)}):i)||n.relatedNodes(e),o=o&&i)}),!!o||void 0},"title-only-evaluate":function(e,t,n){var r=sp(n),a=Cd(n);return n=n.attr("aria-describedby"),!(r||!a&&!n)},"unique-frame-title-after":function(e){var t={};return e.forEach(function(e){t[e.data]=void 0!==t[e.data]?++t[e.data]:0}),e.forEach(function(e){e.result=!!t[e.data]}),e},"unique-frame-title-evaluate":function(e,t,n){return n=rd(n.attr("title")).toLowerCase(),this.data(n),!0},"unsupportedrole-evaluate":function(e,t,n){n=Ad(n,{dpub:!0,fallback:!0});var r=Hc(n);return r&&this.data(n),r},"valid-lang-evaluate":function(e,t,n){var r=[];return t.attributes.forEach(function(e){var a\
,o,i=n.attr(e);"string"==typeof i&&(a=wf(i),o=t.value?!t.value.map(wf).includes(a):!Hm(a),""!==a&&o||""!==i&&!rd(i))&&r.push(e+'="'+n.attr(e)+'"')}),!!r.length&&!("html"!==n.props.nodeName&&!xp(n)||(this.data(r),0))},"valid-scrollable-semantics-evaluate":function(e,t){return(n=Wc(n=e))&&(Jg[n]||t.roles.includes(n))||(t=(t=e).nodeName.toUpperCase(),Zg[t])||!1;var n},"widget-not-inline-matches":function(e,t){return lv.every(function(n){return n(e,t)})},"window-is-top-matches":function(e){return e.ownerDocument.defaultView.self===e.ownerDocument.defaultView.top},"xml-lang-mismatch-evaluate":function(e,t,n){return wf(n.attr("lang"))===wf(n.attr("xml:lang"))},"xml-lang-mismatch-matches":function(e){var t=wf(e.getAttribute("lang"));return e=wf(e.getAttribute("xml:lang")),Hm(t)&&Hm(e)}},mv=function(e){this.id=e.id,this.data=null,this.relatedNodes=[],this.result=null};function hv(e){if("string"!=typeof e)return e;if(fv[e])return fv[e];if(/^\\s*function[\\s\\w]*\\(/.test(e))return new Function("ret\
urn "+e+";")();throw new ReferenceError("Function ID does not exist in the metadata-function-map: ".concat(e))}function gv(e){return e=0<arguments.length&&void 0!==e?e:{},Array.isArray(e)||"object"!==a(e)?{value:e}:e}function vv(e){e&&(this.id=e.id,this.configure(e))}vv.prototype.enabled=!0,vv.prototype.run=function(e,t,n,r,a){var o=((t=t||{}).hasOwnProperty("enabled")?t:this).enabled,i=this.getOptions(t.options);if(o){var l;o=new mv(this),t=Gl(o,t,r,a);try{l=this.evaluate.call(t,e.actualNode,i,e,n)}catch(t){return e&&e.actualNode&&(t.errorNode=Gu.toSpec(e)),void a(t)}t.isAsync||(o.result=l,r(o))}else r(null)},vv.prototype.runSync=function(e,t,n){if(!(void 0===(a=(t=t||{}).enabled)?this.enabled:a))return null;var r,a=this.getOptions(t.options),o=new mv(this);(t=Gl(o,t)).async=function(){throw new Error("Cannot run async check while in a synchronous run")};try{r=this.evaluate.call(t,e.actualNode,a,e,n)}catch(t){throw e&&e.actualNode&&(t.errorNode=Gu.toSpec(e)),t}return o.result=r,o},vv.\
prototype.configure=function(e){var t=this;e.evaluate&&!fv[e.evaluate]||(this._internalCheck=!0),e.hasOwnProperty("enabled")&&(this.enabled=e.enabled),e.hasOwnProperty("options")&&(this._internalCheck?this.options=gv(e.options):this.options=e.options),["evaluate","after"].filter(function(t){return e.hasOwnProperty(t)}).forEach(function(n){return t[n]=hv(e[n])})},vv.prototype.getOptions=function(e){return this._internalCheck?Xu(this.options,gv(e||{})):e||this.options};var bv=vv,yv=function(e){this.id=e.id,this.result=da.NA,this.pageLevel=e.pageLevel,this.impact=null,this.nodes=[]};function wv(e,t){this._audit=t,this.id=e.id,this.selector=e.selector||"*",e.impact&&(Ra(da.impact.includes(e.impact),"Impact ".concat(e.impact," is not a valid impact")),this.impact=e.impact),this.excludeHidden="boolean"!=typeof e.excludeHidden||e.excludeHidden,this.enabled="boolean"!=typeof e.enabled||e.enabled,this.pageLevel="boolean"==typeof e.pageLevel&&e.pageLevel,this.reviewOnFail="boolean"==typeof e.rev\
iewOnFail&&e.reviewOnFail,this.any=e.any||[],this.all=e.all||[],this.none=e.none||[],this.tags=e.tags||[],this.preload=!!e.preload,this.actIds=e.actIds,e.matches&&(this.matches=hv(e.matches))}function Dv(e){var t,n;if(e.length)return t=!1,n={},e.forEach(function(e){var r=e.results.filter(function(e){return e});(n[e.type]=r).length&&(t=!0)}),t?n:null}wv.prototype.matches=function(){return!0},wv.prototype.gather=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n="mark_gather_start_"+this.id,r="mark_gather_end_"+this.id,a="mark_isVisibleToScreenReaders_start_"+this.id,o="mark_isVisibleToScreenReaders_end_"+this.id;t.performanceTimer&&gm.mark(n),e=Pm(this.selector,e);return this.excludeHidden&&(t.performanceTimer&&gm.mark(a),e=e.filter(Td),t.performanceTimer)&&(gm.mark(o),gm.measure("rule_"+this.id+"#gather_axe.utils.isVisibleToScreenReaders",a,o)),t.performanceTimer&&(gm.mark(r),gm.measure("rule_"+this.id+"#gather",n,r)),e},wv.prototype.runChecks=function(e,t,n,\
r,a,o){var i=this,l=iu();this[e].forEach(function(e){var a=i._audit.checks[e.id||e],o=Tf(a,i.id,n);l.defer(function(e,n){a.run(t,o,r,e,function(e){n(new jm({ruleId:i.id,method:"".concat(a.id,"#evaluate"),errorNode:new Vl(t),error:e}))})})}),l.then(function(t){t=t.filter(function(e){return e}),a({type:e,results:t})}).catch(o)},wv.prototype.runChecksSync=function(e,t,n,r){var a=this,o=[];return this[e].forEach(function(e){e=a._audit.checks[e.id||e];var i=Tf(e,a.id,n);o.push(e.runSync(t,i,r))}),{type:e,results:o=o.filter(function(e){return e})}},wv.prototype.run=function(e){var t,n=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=2<arguments.length?arguments[2]:void 0,o=3<arguments.length?arguments[3]:void 0,i=(r.performanceTimer&&this._trackPerformance(),iu()),l=new yv(this);try{t=this.gatherAndMatchNodes(e,r)}catch(t){return void o(t)}r.performanceTimer&&this._logGatherPerformance(t),t.forEach(function(t){i.defer(function(a,o){var i=iu();["any","all","none"].forEach(fu\
nction(a){i.defer(function(o,i){n.runChecks(a,t,r,e,o,i)})}),i.then(function(e){var r=Dv(e);r&&(r.node=new Vl(t),l.nodes.push(r),n.reviewOnFail)&&(["any","all"].forEach(function(e){r[e].forEach(function(e){!1===e.result&&(e.result=void 0)})}),r.none.forEach(function(e){!0===e.result&&(e.result=void 0)})),a()}).catch(function(e){return o(e)})})}),i.then(function(){r.performanceTimer&&n._logRulePerformance(),setTimeout(function(){a(l)},0)}).catch(function(e){r.performanceTimer&&n._logRulePerformance(),o(e)})},wv.prototype.runSync=function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=(n.performanceTimer&&this._trackPerformance(),new yv(this)),a=this.gatherAndMatchNodes(e,n);return n.performanceTimer&&this._logGatherPerformance(a),a.forEach(function(a){var o=[],i=(["any","all","none"].forEach(function(r){o.push(t.runChecksSync(r,a,n,e))}),Dv(o));i&&(i.node=a.actualNode?new Vl(a):null,r.nodes.push(i),t.reviewOnFail)&&(["any","all"].forEach(function(e){i[e].for\
Each(function(e){!1===e.result&&(e.result=void 0)})}),i.none.forEach(function(e){!0===e.result&&(e.result=void 0)}))}),n.performanceTimer&&this._logRulePerformance(),r},wv.prototype._trackPerformance=function(){this._markStart="mark_rule_start_"+this.id,this._markEnd="mark_rule_end_"+this.id,this._markChecksStart="mark_runchecks_start_"+this.id,this._markChecksEnd="mark_runchecks_end_"+this.id},wv.prototype._logGatherPerformance=function(e){pa("gather for ".concat(this.id," (").concat(e.length," nodes): ").concat(gm.timeElapsed(),"ms")),gm.mark(this._markChecksStart)},wv.prototype._logRulePerformance=function(){gm.mark(this._markChecksEnd),gm.mark(this._markEnd),gm.measure("runchecks_"+this.id,this._markChecksStart,this._markChecksEnd),gm.measure("rule_"+this.id,this._markStart,this._markEnd)},wv.prototype.gatherAndMatchNodes=function(e,t){var n=this,r="mark_matches_start_"+this.id,a="mark_matches_end_"+this.id,o=this.gather(e,t);return t.performanceTimer&&gm.mark(r),o=o.filter(functio\
n(t){try{return n.matches(t.actualNode,t,e)}catch(e){throw new jm({ruleId:n.id,method:"#matches",errorNode:new Vl(t),error:e})}}),t.performanceTimer&&(gm.mark(a),gm.measure("rule_"+this.id+"#matches",r,a)),o},wv.prototype.after=function(e,t){var n,r,a,o,i=this;return $u(n=this).map(function(e){return(e=n._audit.checks[e.id||e])&&"function"==typeof e.after?e:null}).filter(Boolean).forEach(function(n){l=e.nodes,r=n.id,a=[],l.forEach(function(e){$u(e).forEach(function(t){t.id===r&&(t.node=e.node,a.push(t))})});var r,a,o,l=a,u=Tf(n,i.id,t);try{o=n.after(l,u.options)}catch(l){throw new jm({ruleId:i.id,method:"".concat(n.id,"#after"),errorNode:null==(u=e.nodes)||null==(u=u[0])?void 0:u.node,error:l})}i.reviewOnFail&&o.forEach(function(e){var t=(i.any.includes(e.id)||i.all.includes(e.id))&&!1===e.result,n=i.none.includes(e.id)&&!0===e.result;(t||n)&&(e.result=void 0)}),l.forEach(function(e){delete e.node,-1===o.indexOf(e)&&(e.filtered=!0)})}),e.nodes=(a=["any","all","none"],o=(r=e).nodes.filt\
er(function(e){var t=0;return a.forEach(function(n){e[n]=e[n].filter(function(e){return!0!==e.filtered}),t+=e[n].length}),0<t}),o=r.pageLevel&&o.length?[o.reduce(function(e,t){if(e)return a.forEach(function(n){e[n].push.apply(e[n],t[n])}),e})]:o),e},wv.prototype.configure=function(e){e.hasOwnProperty("selector")&&(this.selector=e.selector),e.hasOwnProperty("excludeHidden")&&(this.excludeHidden="boolean"!=typeof e.excludeHidden||e.excludeHidden),e.hasOwnProperty("enabled")&&(this.enabled="boolean"!=typeof e.enabled||e.enabled),e.hasOwnProperty("pageLevel")&&(this.pageLevel="boolean"==typeof e.pageLevel&&e.pageLevel),e.hasOwnProperty("reviewOnFail")&&(this.reviewOnFail="boolean"==typeof e.reviewOnFail&&e.reviewOnFail),e.hasOwnProperty("any")&&(this.any=e.any),e.hasOwnProperty("all")&&(this.all=e.all),e.hasOwnProperty("none")&&(this.none=e.none),e.hasOwnProperty("tags")&&(this.tags=e.tags),e.hasOwnProperty("actIds")&&(this.actIds=e.actIds),e.hasOwnProperty("matches")&&(this.matches=hv(e.m\
atches)),e.impact&&(Ra(da.impact.includes(e.impact),"Impact ".concat(e.impact," is not a valid impact")),this.impact=e.impact)};var xv=/\\{\\{.+?\\}\\}/g,Ev=Z(function e(t){K(this,e),this.lang="en",this.defaultConfig=t,this.standards=$c,this._init(),this._defaultLocale=null},[{key:"_setDefaultLocale",value:function(){if(!this._defaultLocale){for(var e={checks:{},rules:{},failureSummaries:{},incompleteFallbackMessage:"",lang:this.lang},t=Object.keys(this.data.checks),n=0;n<t.length;n++){var r=t[n],a=this.data.checks[r].messages,o=a.pass;e.checks[r]={pass:o,fail:a.fail,incomplete:a.incomplete}}for(var i=Object.keys(this.data.rules),l=0;l<i.length;l++){var u=i[l],s=this.data.rules[u],c=s.description;e.rules[u]={description:c,help:s.help}}for(var d=Object.keys(this.data.failureSummaries),p=0;p<d.length;p++){var f=d[p],m=this.data.failureSummaries[f].failureMessage;e.failureSummaries[f]={failureMessage:m}}e.incompleteFallbackMessage=this.data.incompleteFallbackMessage,this._defaultLocale=e}}},{\
key:"_resetLocale",value:function(){var e=this._defaultLocale;e&&this.applyLocale(e)}},{key:"_applyCheckLocale",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];if(!this.data.checks[r])throw new Error('Locale provided for unknown check: "'.concat(r,'"'));this.data.checks[r]=Cv(this.data.checks[r],e[r])}}},{key:"_applyRuleLocale",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];if(!this.data.rules[r])throw new Error('Locale provided for unknown rule: "'.concat(r,'"'));this.data.rules[r]=kv(this.data.rules[r],e[r])}}},{key:"_applyFailureSummaries",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];if(!this.data.failureSummaries[r])throw new Error('Locale provided for unknown failureMessage: "'.concat(r,'"'));this.data.failureSummaries[r]=Rv(this.data.failureSummaries[r],e[r])}}},{key:"applyLocale",value:function(e){this._setDefaultLocale(),e.checks&&this._applyCheckLocale(e.checks),e.rules&&this._applyRuleLocale(e.r\
ules),e.failureSummaries&&this._applyFailureSummaries(e.failureSummaries,"failureSummaries"),e.incompleteFallbackMessage&&(this.data.incompleteFallbackMessage=Nv(this.data.incompleteFallbackMessage,e.incompleteFallbackMessage)),e.lang&&(this.lang=e.lang)}},{key:"setAllowedOrigins",value:function(e){var t,n=Av(),r=(this.allowedOrigins=[],Q(e));try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===da.allOrigins)return void(this.allowedOrigins=["*"]);a!==da.sameOrigin?this.allowedOrigins.push(a):n&&this.allowedOrigins.push(n)}}catch(e){r.e(e)}finally{r.f()}}},{key:"_init",value:function(){var e=(e=>{var t;return e?(t=$l(e)).commons=e.commons:t={},t.reporter=t.reporter||null,t.noHtml=t.noHtml||!1,t.allowedOrigins||(e=Av(),t.allowedOrigins=e?[e]:[]),t.rules=t.rules||[],t.checks=t.checks||[],t.data=B({checks:{},rules:{}},t.data),t})(this.defaultConfig);this.lang=e.lang||"en",this.reporter=e.reporter,this.commands={},this.rules=[],this.checks={},this.brand="axe",this.application="axeAPI",this.\
tagExclude=["experimental","deprecated"],this.noHtml=e.noHtml,this.allowedOrigins=e.allowedOrigins,Fv(e.rules,this,"addRule"),Fv(e.checks,this,"addCheck"),this.data={},this.data.checks=e.data&&e.data.checks||{},this.data.rules=e.data&&e.data.rules||{},this.data.failureSummaries=e.data&&e.data.failureSummaries||{},this.data.incompleteFallbackMessage=e.data&&e.data.incompleteFallbackMessage||"",this._constructHelpUrls()}},{key:"registerCommand",value:function(e){this.commands[e.id]=e.callback}},{key:"addRule",value:function(e){e.metadata&&(this.data.rules[e.id]=e.metadata);var t=this.getRule(e.id);t?t.configure(e):this.rules.push(new wv(e,this))}},{key:"addCheck",value:function(e){var t=e.metadata;"object"===a(t)&&(this.data.checks[e.id]=t,"object"===a(t.messages))&&Object.keys(t.messages).filter(function(e){return t.messages.hasOwnProperty(e)&&"string"==typeof t.messages[e]}).forEach(function(e){0===t.messages[e].indexOf("function")&&(t.messages[e]=new Function("return "+t.messages[e]+"\
;")())}),this.checks[e.id]?this.checks[e.id].configure(e):this.checks[e.id]=new bv(e)}},{key:"run",value:function(e,t,n,r){var a=this,i=(Um(t),Vl.setRunOptions(t),iu());i.defer(lh.loadElementInternals()),i.then(function(){o._selectCache=[],u=a.rules,i=e,l=t;var i,l,u=u.reduce(function(e,t){return Sm(t,i,l)&&(t.preload?e.later:e.now).push(t),e},{now:[],later:[]}),s=u.now,c=u.later,d=iu();s.forEach(function(n){d.defer(Tv(n,e,t))}),u=iu();(s=(c.length&&u.defer(function(e){Fm(t).then(function(t){return e(t)}).catch(function(t){console.warn("Couldn't load preload assets: ",t),e(void 0)})}),iu())).defer(d),s.defer(u),s.then(function(a){var i,l=a.pop(),u=(l&&l.length&&(l=l[0])&&(e=B({},e,l)),a[0]);c.length?(i=iu(),c.forEach(function(n){n=Tv(n,e,t),i.defer(n)}),i.then(function(e){o._selectCache=void 0,n(u.concat(e).filter(function(e){return!!e}))}).catch(r)):(o._selectCache=void 0,n(u.filter(function(e){return!!e})))}).catch(r)}).catch(r)}},{key:"after",value:function(e,t){var n=this.rules;ret\
urn e.map(function(e){if(e.error)return e;var r=Hu(n,"id",e.id);if(!r)throw new Error("Result for unknown rule. You may be running mismatch axe-core versions");try{return r.after(e,t)}catch(e){if(t.debug)throw e;return Ov(r,e)}})}},{key:"getRule",value:function(e){return this.rules.find(function(t){return t.id===e})}},{key:"setBranding",value:function(e){"string"==typeof e&&(this.application=e),e&&e.hasOwnProperty("brand")&&e.brand&&"string"==typeof e.brand&&(this.brand=e.brand),e&&e.hasOwnProperty("application")&&e.application&&"string"==typeof e.application&&(this.application=e.application)}},{key:"_constructHelpUrls",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,n=(o.version.match(/^[1-9][0-9]*\\.[0-9]+/)||["x.y"])[0];this.rules.forEach(function(r){e.data.rules[r.id]||(e.data.rules[r.id]={});var a=e.data.rules[r.id];("string"!=typeof a.helpUrl||t&&a.helpUrl===Sv(t,r.id,n))&&(a.helpUrl=Sv(e,r.id,n))})}},{key:"resetRulesAndChecks",value:funct\
ion(){this._init(),this._resetLocale()}}]);function Av(){return t.origin&&"null"!==t.origin?t.origin:t.location&&t.location.origin&&"null"!==t.location.origin?t.location.origin:void 0}function Fv(e,t,n){for(var r=0,a=e.length;r<a;r++)t[n](e[r])}var Cv=function(e,t){var n=t.pass,r=t.fail;return"string"==typeof n&&xv.test(n)&&(n=La.default.compile(n)),"string"==typeof r&&xv.test(r)&&(r=La.default.compile(r)),B({},e,{messages:{pass:n||e.messages.pass,fail:r||e.messages.fail,incomplete:"object"===a(e.messages.incomplete)?B({},e.messages.incomplete,t.incomplete):t.incomplete}})},kv=function(e,t){var n=t.help;t=t.description;return"string"==typeof n&&xv.test(n)&&(n=La.default.compile(n)),"string"==typeof t&&xv.test(t)&&(t=La.default.compile(t)),B({},e,{help:n||e.help,description:t||e.description})},Rv=function(e,t){return B({},e,{failureMessage:(t="string"==typeof(t=t.failureMessage)&&xv.test(t)?La.default.compile(t):t)||e.failureMessage})},Nv=function(e,t){return(t="string"==typeof t&&xv.te\
st(t)?La.default.compile(t):t)||e};function Tv(e,t,n){return n.performanceTimer&&gm.mark("mark_rule_start_"+e.id),function(r,a){e.run(t,n,function(e){return r(e)},function(t){n.debug?a(t):r(Ov(e,t))})}}function Ov(e,t){var n=t.errorNode,a=[{id:"error-occurred",result:void 0,data:t=Im(t),relatedNodes:[]}];n=n||new Vl(r.documentElement);return Object.assign(new yv(e),{error:t,result:da.CANTTELL,nodes:[{any:[],all:[],none:a,node:n}]})}function Sv(e,t,n){var r=e.brand,a=e.application;e=e.lang;return da.helpUrlBase+r+"/"+(n||o.version.substring(0,o.version.lastIndexOf(".")))+"/"+t+"?application="+encodeURIComponent(a)+(e&&"en"!==e?"&lang="+encodeURIComponent(e):"")}function _v(e){var n=t&&"Node"in t&&"NodeList"in t,a=!!r;if(!n||!a){if(!e||!e.ownerDocument)throw new Error('Required "window" or "document" globals not defined and cannot be deduced from the context. Either set the globals before running or pass in a valid Element.');a||(Il.set("globalDocumentSet",!0),r=e.ownerDocument),n||(Il.s\
et("globalWindowSet",!0),t=r.defaultView)}}var Mv=function(){Il.get("globalDocumentSet")&&(Il.set("globalDocumentSet",!1),r=null),Il.get("globalWindowSet")&&(Il.set("globalWindowSet",!1),t=null),o._memoizedFns.forEach(function(e){return e.clear()}),Il.clear(),o._tree=void 0,o._selectorData=void 0,o._selectCache=void 0};function Pv(e,t,n,r){try{e=new If(e),o._tree=e.flatTree,o._selectorData=Cl(e.flatTree)}catch(a){return Mv(),r(a)}var a=iu(),i=o._audit;t.performanceTimer&&gm.auditStart(),e.frames.length&&!1!==t.iframes&&a.defer(function(n,r){Yu(e,t,"rules",null,n,r)}),a.defer(function(n,r){i.run(e,t,n,r)}),a.then(function(a){try{t.performanceTimer&&gm.auditEnd();var o=Wu(a.map(function(e){return{results:e}}));e.initiator&&(t.performanceTimer&&gm.mark("auditAfterStart"),o=i.after(o,t),t.performanceTimer&&(gm.mark("auditAfterEnd"),gm.measure("audit.after","auditAfterStart","auditAfterEnd"),gm.logMeasures("audit.after")),o.forEach(Rm),o=o.map(Ea));try{n(o,Mv)}catch(a){Mv(),pa(a)}}catch(a){\
Mv(),r(a)}}).catch(function(e){Mv(),r(e)})}function Iv(e){this._run=e.run,this._collect=e.collect,this._registry={},e.commands.forEach(function(e){o._audit.registerCommand(e)})}function Bv(e){var t=(e=U(e,3))[0],n=e[1],i=(e=e[2],new TypeError("axe.run arguments are invalid"));if(!Zf(t)){if(void 0!==e)throw i;e=n,n=t,t=r}if("object"!==a(n)){if(void 0!==e)throw i;e=n,n={}}if("function"!=typeof e&&void 0!==e)throw i;return(n=$l(n)).reporter=null!=(i=null!=(i=n.reporter)?i:null==(i=o._audit)?void 0:i.reporter)?i:"v1",{context:t,options:n,callback:e}}t.top!==t&&(Iu.subscribe("axe.start",function(e,t,n){function a(e){e instanceof Error==0&&(e=new Error(e)),n(e)}var i=n,l=e&&e.context||{},u=(l.hasOwnProperty("include")&&!l.include.length&&(l.include=[r]),e&&e.options||{});switch(e.command){case"rules":return Pv(l,u,function(e,t){e=Gu.mapRawResults(e),i(e),t()},a);case"cleanup-plugin":return eh(i,a);default:if(o._audit&&o._audit.commands&&o._audit.commands[e.command])return o._audit.commands[e\
.command](e,n)}}),Iu.subscribe("axe.ping",function(e,t,n){n({axe:!0})})),Iv.prototype.run=function(){return this._run.apply(this,arguments)},Iv.prototype.collect=function(){return this._collect.apply(this,arguments)},Iv.prototype.cleanup=function(e){var t=o.utils.queue(),n=this;Object.keys(this._registry).forEach(function(e){t.defer(function(t){n._registry[e].cleanup(t)})}),t.then(e)},Iv.prototype.add=function(e){this._registry[e.id]=e};var jv=function(){};var Lv=function(e,t,n){if("function"==typeof t&&(n=t,t={}),!e||!Array.isArray(e))return n(e);n(e.map(function(e){for(var t=B({},e),n=0,r=["passes","violations","incomplete","inapplicable"];n<r.length;n++){var a=r[n];t[a]=Gu.mapRawNodeResults(t[a])}return t}))};Mo={base:{Audit:Ev,CheckResult:mv,Check:bv,Context:If,RuleResult:yv,Rule:wv,metadataFunctionMap:fv},public:{reporters:th,external:lh},helpers:{failureSummary:Df,incompleteFallbackMessage:xf,processAggregate:Af},utils:{setDefaultFrameMessenger:Mu,cacheNodeSelectors:hf,getNodesMa\
tchingExpression:df,convertSelector:Jl},commons:{dom:{nativelyHidden:gs,displayHidden:vs,visibilityHidden:bs,contentVisibiltyHidden:ys,ariaHidden:ws,opacityHidden:Ds,scrollHidden:xs,overflowHidden:Es,clipHidden:As,areaHidden:Fs,detailsHidden:Cs}}};o._thisWillBeDeletedDoNotUse=Mo,o.constants=da,o.log=pa,o.AbstractVirtualNode=ma,o.SerialVirtualNode=Qm,o.VirtualNode=uf,o._cache=Il,o.imports=Ba,o.cleanup=eh,o.configure=function(e){var t=o._audit;if(!t)throw new Error("No audit configured");if(e.axeVersion||e.ver){var n=e.axeVersion||e.ver;if(!/^\\d+\\.\\d+\\.\\d+(-canary)?/.test(n))throw new Error("Invalid configured version ".concat(n));var r=(a=U(n.split("-"),2))[0],a=a[1],i=(r=U(r.split(".").map(Number),3))[0],l=r[1],u=(r=r[2],(s=U(o.version.split("-"),2))[0]),s=s[1],c=(u=U(u.split(".").map(Number),3))[0],d=u[1];u=u[2];if(i!==c||d<l||d===l&&u<r||i===c&&l===d&&r===u&&a&&a!==s)throw new Error("Configured version ".concat(n," is not compatible with current axe version ").concat(o.version))}if(e\
.reporter&&("function"==typeof e.reporter||nh(e.reporter))&&(t.reporter=e.reporter),e.checks){if(!Array.isArray(e.checks))throw new TypeError("Checks property must be an array");e.checks.forEach(function(e){if(!e.id)throw new TypeError("Configured check ".concat(JSON.stringify(e)," is invalid. Checks must be an object with at least an id property"));t.addCheck(e)})}var p,f=[];if(e.rules){if(!Array.isArray(e.rules))throw new TypeError("Rules property must be an array");e.rules.forEach(function(e){if(!e.id)throw new TypeError("Configured rule ".concat(JSON.stringify(e)," is invalid. Rules must be an object with at least an id property"));f.push(e.id),t.addRule(e)})}if(e.disableOtherRules&&t.rules.forEach(function(e){!1===f.includes(e.id)&&(e.enabled=!1)}),i={brand:t.brand,application:t.application,lang:t.lang},void 0!==e.branding&&t.setBranding(e.branding),e.tagExclude&&(t.tagExclude=e.tagExclude),e.locale&&t.applyLocale(e.locale),t._constructHelpUrls(i),e.standards&&(p=e.standards,Objec\
t.keys(Gc).forEach(function(e){p[e]&&(Gc[e]=Xu(Gc[e],p[e]))})),e.noHtml&&(t.noHtml=!0),e.allowedOrigins){if(!Array.isArray(e.allowedOrigins))throw new TypeError("Allowed origins property must be an array");if(e.allowedOrigins.includes("*"))throw new Error('"*" is not allowed. Use "'.concat(da.allOrigins,'" instead'));t.setAllowedOrigins(e.allowedOrigins)}},o.externalAPIs=function(){var e=(t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).elementInternalsTimeout,t=t.getElementInternals;ah(e)?(Ra("number"==typeof e,"elementInternalsTimeout must be a number"),Xm=e):null===e&&(Xm=1e3),ah(t)?(Ra("function"==typeof t,"getElementInternals must be a function that returns a Promise"),Km=t):null===t&&(Km=null)},o.frameMessenger=function(e){Iu.updateMessenger(e)},o.getRules=function(e){var t=(e=e||[]).length?o._audit.rules.filter(function(t){return!!e.filter(function(e){return-1!==t.tags.indexOf(e)}).length}):o._audit.rules,n=o._audit.data.rules||{};return t.map(function(e){var t=n[e.i\
d]||{};return{ruleId:e.id,description:t.description,help:t.help,helpUrl:t.helpUrl,tags:e.tags,actIds:e.actIds,enabled:e.enabled}})},o._load=function(e){o._audit=new Ev(e)},o.plugins={},o.registerPlugin=function(e){o.plugins[e.id]=new Iv(e)},o.hasReporter=nh,o.getReporter=rh,o.addReporter=function(e,t,n){th[e]=t,n&&(Ym=t)},o.reset=function(){var e=o._audit;if(!e)throw new Error("No audit configured");e.resetRulesAndChecks(),Object.keys(Gc).forEach(function(e){Gc[e]=Vc[e]})},o.resetLocale=function(){var e=o._audit;if(!e)throw new Error("No audit configured");e._resetLocale()},o._runRules=Pv,o.runVirtualRule=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=(n.reporter=n.reporter||o._audit.reporter||"v1",o._selectorData={},t instanceof ma||(t=new Qm(t)),jf(e));if(r)return Rm(r=(r=Object.create(r,{excludeHidden:{value:!1}})).runSync({initiator:!0,include:[t],exclude:[],frames:[],page:!1,focusable:!0,size:{},flatTree:[]},n)),Ea(r),(t=Ca([r])).violations.forEach\
(function(e){return e.nodes.forEach(function(e){e.failureSummary=Df(e)})}),B({},Of(),t,{toolOptions:n});throw new Error("unknown rule \`"+e+"\`")},o.run=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_v(t[0]);var r=(c=Bv(t)).context,a=c.options,i=void 0===(c=c.callback)?jv:c,l=(c=(e=>{var t,n,r;return"function"==typeof Promise&&e===jv?t=new Promise(function(e,t){n=t,r=e}):(r=function(t){return e(null,t)},n=function(t){return e(t)}),{thenable:t,reject:n,resolve:r}})(i)).thenable,u=c.resolve,s=c.reject;try{Ra(o._audit,"No audit configured"),Ra(!o._running,"Axe is already running. Use \`await axe.run()\` to wait for the previous run to finish before starting a new run.")}catch(e){var c=e;if("function"!=typeof i||i===jv)throw c;return void i(c.message)}return o._running=!0,a.performanceTimer&&gm.start(),o._runRules(r,a,function(e,t){function n(e){o._running=!1,t();try{s(e)}catch(e){o.log(e)}}try{a.performanceTimer&&gm.mark("reporterStart");var r=e,i=a,l=func\
tion(e){a.performanceTimer&&(gm.mark("reporterEnd"),gm.measure("reporter","reporterStart","reporterEnd"),gm.logMeasures("reporter"),gm.end()),o._running=!1,t();try{u(e)}catch(e){o.log(e)}},c=n;void 0!==(r=rh(i.reporter)(r,i,l,c))&&l(r)}catch(e){n(e)}},function(e){a.performanceTimer&&gm.end(),o._running=!1,i(e),s(e)}),l},o.setup=function(e){if(o._tree)throw new Error("Axe is already setup. Call \`axe.teardown()\` before calling \`axe.setup\` again.");return _v(e=e&&"object"===a(e.documentElement)&&"object"===a(e.defaultView)?e.documentElement:e),o._tree=gf(e),o._selectorData=Cl(o._tree),o._tree[0]},o.teardown=Mv,o.runPartial=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=(a=Bv(t)).options,a=a.context,i=(Ra(o._audit,"Axe is not configured. Audit is missing."),Ra(!o._running,"Axe is already running. Use \`await axe.run()\` to wait for the previous run to finish before starting a new run."),new If(a,o._tree));return o._tree=i.flatTree,o._selectorData=Cl(\
i.flatTree),o._running=!0,r.elementRef=!1,new Promise(function(e,t){r.performanceTimer&&gm.auditStart(),o._audit.run(i,r,e,t)}).then(function(e){r.performanceTimer&&gm.auditEnd(),e=Gu.mapRawResults(e);var t,n=i.frames.map(function(e){return e=e.node,Gu.toSpec(e)});return i.initiator&&(t=Of()),o._running=!1,Mv(),{results:e,frames:n,environmentData:t}}).catch(function(e){return o._running=!1,Mv(),Promise.reject(e)})},o.finishRun=function(e){var t,n=$l(n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),r=(e.find(function(e){return e.environmentData})||{}).environmentData;Um(n),n.reporter=null!=(p=null!=(p=n.reporter)?p:null==(p=o._audit)?void 0:p.reporter)?p:"v1";var a=[],i=Q(p=e);try{for(i.s();!(t=i.n()).done;){var l,u=t.value,s=a.shift();u&&(u.frameSpec=null!=s?s:null,l=(e=>{var t=e.frames,n=e.frameSpec;return n?t.map(function(e){return Gu.mergeSpecs(e,n)}):t})(u),a.unshift.apply(a,j(l)))}}catch(e){i.e(e)}finally{i.f()}var c,d,p=Wu(e);return(p=o._audit.after(p,n)).forEach(Rm),\
p=p.map(Ea),c=p,d=B({environmentData:r},n),new Promise(function(e,t){rh(d.reporter)(c,d,e,t)})},o.commons=Sn,o.utils=ha,o.addReporter("na",function(e,t,n){console.warn('"na" reporter will be deprecated in axe v4.0. Use the "v2" reporter instead.'),"function"==typeof t&&(n=t,t={});var r=t.environmentData,a=O(a=t,w);n(B({},Of(r),{toolOptions:a},Af(e,t)))}),o.addReporter("no-passes",function(e,t,n){"function"==typeof t&&(n=t,t={});var r=t.environmentData,a=O(a=t,D);t.resultTypes=["violations"],e=Af(e,t).violations,n(B({},Of(r),{toolOptions:a,violations:e}))}),o.addReporter("rawEnv",function(e,t,n){"function"==typeof t&&(n=t,t={});var r=t.environmentData;t=O(t,x),Lv(e,t,function(e){var t=Of(r);n({raw:e,env:t})})}),o.addReporter("raw",Lv),o.addReporter("v1",function(e,t,n){function r(e){e.nodes.forEach(function(e){e.failureSummary=Df(e)})}"function"==typeof t&&(n=t,t={});var a=t.environmentData,o=O(o=t,E);(e=Af(e,t)).incomplete.forEach(r),e.violations.forEach(r),n(B({},Of(a),{toolOptions:o}\
,e))}),o.addReporter("v2",function(e,t,n){"function"==typeof t&&(n=t,t={});var r=t.environmentData,a=O(a=t,A);e=Af(e,t),n(B({},Of(r),{toolOptions:a},e))},!0),o._load({lang:"en",data:{rules:{accesskeys:{description:"Ensure every accesskey attribute value is unique",help:"accesskey attribute value should be unique"},"area-alt":{description:"Ensure <area> elements of image maps have alternative text",help:"Active <area> elements must have alternative text"},"aria-allowed-attr":{description:"Ensure an element's role supports its ARIA attributes",help:"Elements must only use supported ARIA attributes"},"aria-allowed-role":{description:"Ensure role attribute has an appropriate value for the element",help:"ARIA role should be appropriate for the element"},"aria-braille-equivalent":{description:"Ensure aria-braillelabel and aria-brailleroledescription have a non-braille equivalent",help:"aria-braille attributes must have a non-braille equivalent"},"aria-command-name":{description:"Ensure every\
 ARIA button, link and menuitem has an accessible name",help:"ARIA commands must have an accessible name"},"aria-conditional-attr":{description:"Ensure ARIA attributes are used as described in the specification of the element's role",help:"ARIA attributes must be used as specified for the element's role"},"aria-deprecated-role":{description:"Ensure elements do not use deprecated roles",help:"Deprecated ARIA roles must not be used"},"aria-dialog-name":{description:"Ensure every ARIA dialog and alertdialog node has an accessible name",help:"ARIA dialog and alertdialog nodes should have an accessible name"},"aria-hidden-body":{description:'Ensure aria-hidden="true" is not present on the document body.',help:'aria-hidden="true" must not be present on the document body'},"aria-hidden-focus":{description:"Ensure aria-hidden elements are not focusable nor contain focusable elements",help:"ARIA hidden element must not be focusable or contain focusable elements"},"aria-input-field-name":{descri\
ption:"Ensure every ARIA input field has an accessible name",help:"ARIA input fields must have an accessible name"},"aria-meter-name":{description:"Ensure every ARIA meter node has an accessible name",help:"ARIA meter nodes must have an accessible name"},"aria-progressbar-name":{description:"Ensure every ARIA progressbar node has an accessible name",help:"ARIA progressbar nodes must have an accessible name"},"aria-prohibited-attr":{description:"Ensure ARIA attributes are not prohibited for an element's role",help:"Elements must only use permitted ARIA attributes"},"aria-required-attr":{description:"Ensure elements with ARIA roles have all required ARIA attributes",help:"Required ARIA attributes must be provided"},"aria-required-children":{description:"Ensure elements with an ARIA role that require child roles contain them",help:"Certain ARIA roles must contain particular children"},"aria-required-parent":{description:"Ensure elements with an ARIA role that require parent roles are cont\
ained by them",help:"Certain ARIA roles must be contained by particular parents"},"aria-roledescription":{description:"Ensure aria-roledescription is only used on elements with an implicit or explicit role",help:"aria-roledescription must be on elements with a semantic role"},"aria-roles":{description:"Ensure all elements with a role attribute use a valid value",help:"ARIA roles used must conform to valid values"},"aria-tab-name":{description:"Ensure every ARIA tab node has an accessible name",help:"ARIA tab nodes must have an accessible name"},"aria-text":{description:'Ensure role="text" is used on elements with no focusable descendants',help:'"role=text" should have no focusable descendants'},"aria-toggle-field-name":{description:"Ensure every ARIA toggle field has an accessible name",help:"ARIA toggle fields must have an accessible name"},"aria-tooltip-name":{description:"Ensure every ARIA tooltip node has an accessible name",help:"ARIA tooltip nodes must have an accessible name"},"\
aria-treeitem-name":{description:"Ensure every ARIA treeitem node has an accessible name",help:"ARIA treeitem nodes should have an accessible name"},"aria-valid-attr-value":{description:"Ensure all ARIA attributes have valid values",help:"ARIA attributes must conform to valid values"},"aria-valid-attr":{description:"Ensure attributes that begin with aria- are valid ARIA attributes",help:"ARIA attributes must conform to valid names"},"audio-caption":{description:"Ensure <audio> elements have captions",help:"<audio> elements must have a captions track"},"autocomplete-valid":{description:"Ensure the autocomplete attribute is correct and suitable for the form field",help:"autocomplete attribute must be used correctly"},"avoid-inline-spacing":{description:"Ensure that text spacing set through style attributes can be adjusted with custom stylesheets",help:"Inline text spacing must be adjustable with custom stylesheets"},blink:{description:"Ensure <blink> elements are not used",help:"<blink> \
elements are deprecated and must not be used"},"button-name":{description:"Ensure buttons have discernible text",help:"Buttons must have discernible text"},bypass:{description:"Ensure each page has at least one mechanism for a user to bypass navigation and jump straight to the content",help:"Page must have means to bypass repeated blocks"},"color-contrast-enhanced":{description:"Ensure the contrast between foreground and background colors meets WCAG 2 AAA enhanced contrast ratio thresholds",help:"Elements must meet enhanced color contrast ratio thresholds"},"color-contrast":{description:"Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds",help:"Elements must meet minimum color contrast ratio thresholds"},"css-orientation-lock":{description:"Ensure content is not locked to any specific display orientation, and the content is operable in all display orientations",help:"CSS Media queries must not lock display orientation"},"defin\
ition-list":{description:"Ensure <dl> elements are structured correctly",help:"<dl> elements must only directly contain properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements"},dlitem:{description:"Ensure <dt> and <dd> elements are contained by a <dl>",help:"<dt> and <dd> elements must be contained by a <dl>"},"document-title":{description:"Ensure each HTML document contains a non-empty <title> element",help:"Documents must have <title> element to aid in navigation"},"duplicate-id-active":{description:"Ensure every id attribute value of active elements is unique",help:"IDs of active elements must be unique"},"duplicate-id-aria":{description:"Ensure every id attribute value used in ARIA and in labels is unique",help:"IDs used in ARIA and labels must be unique"},"duplicate-id":{description:"Ensure every id attribute value is unique",help:"id attribute value must be unique"},"empty-heading":{description:"Ensure headings have discernible text",help:"Headings should n\
ot be empty"},"empty-table-header":{description:"Ensure table headers have discernible text",help:"Table header text should not be empty"},"focus-order-semantics":{description:"Ensure elements in the focus order have a role appropriate for interactive content",help:"Elements in the focus order should have an appropriate role"},"form-field-multiple-labels":{description:"Ensure form field does not have multiple label elements",help:"Form field must not have multiple label elements"},"frame-focusable-content":{description:"Ensure <frame> and <iframe> elements with focusable content do not have tabindex=-1",help:"Frames with focusable content must not have tabindex=-1"},"frame-tested":{description:"Ensure <iframe> and <frame> elements contain the axe-core script",help:"Frames should be tested with axe-core"},"frame-title-unique":{description:"Ensure <iframe> and <frame> elements contain a unique title attribute",help:"Frames must have a unique title attribute"},"frame-title":{description:"\
Ensure <iframe> and <frame> elements have an accessible name",help:"Frames must have an accessible name"},"heading-order":{description:"Ensure the order of headings is semantically correct",help:"Heading levels should only increase by one"},"hidden-content":{description:"Inform users about hidden content.",help:"Hidden content on the page should be analyzed"},"html-has-lang":{description:"Ensure every HTML document has a lang attribute",help:"<html> element must have a lang attribute"},"html-lang-valid":{description:"Ensure the lang attribute of the <html> element has a valid value",help:"<html> element must have a valid value for the lang attribute"},"html-xml-lang-mismatch":{description:"Ensure that HTML elements with both valid lang and xml:lang attributes agree on the base language of the page",help:"HTML elements with lang and xml:lang must have the same base language"},"identical-links-same-purpose":{description:"Ensure that links with the same accessible name serve a similar pur\
pose",help:"Links with the same name must have a similar purpose"},"image-alt":{description:"Ensure <img> elements have alternative text or a role of none or presentation",help:"Images must have alternative text"},"image-redundant-alt":{description:"Ensure image alternative is not repeated as text",help:"Alternative text of images should not be repeated as text"},"input-button-name":{description:"Ensure input buttons have discernible text",help:"Input buttons must have discernible text"},"input-image-alt":{description:'Ensure <input type="image"> elements have alternative text',help:"Image buttons must have alternative text"},"label-content-name-mismatch":{description:"Ensure that elements labelled through their content must have their visible text as part of their accessible name",help:"Elements must have their visible text as part of their accessible name"},"label-title-only":{description:"Ensure that every form element has a visible label and is not solely labeled using hidden label\
s, or the title or aria-describedby attributes",help:"Form elements should have a visible label"},label:{description:"Ensure every form element has a label",help:"Form elements must have labels"},"landmark-banner-is-top-level":{description:"Ensure the banner landmark is at top level",help:"Banner landmark should not be contained in another landmark"},"landmark-complementary-is-top-level":{description:"Ensure the complementary landmark or aside is at top level",help:"Aside should not be contained in another landmark"},"landmark-contentinfo-is-top-level":{description:"Ensure the contentinfo landmark is at top level",help:"Contentinfo landmark should not be contained in another landmark"},"landmark-main-is-top-level":{description:"Ensure the main landmark is at top level",help:"Main landmark should not be contained in another landmark"},"landmark-no-duplicate-banner":{description:"Ensure the document has at most one banner landmark",help:"Document should not have more than one banner land\
mark"},"landmark-no-duplicate-contentinfo":{description:"Ensure the document has at most one contentinfo landmark",help:"Document should not have more than one contentinfo landmark"},"landmark-no-duplicate-main":{description:"Ensure the document has at most one main landmark",help:"Document should not have more than one main landmark"},"landmark-one-main":{description:"Ensure the document has a main landmark",help:"Document should have one main landmark"},"landmark-unique":{description:"Ensure landmarks are unique",help:"Landmarks should have a unique role or role/label/title (i.e. accessible name) combination"},"link-in-text-block":{description:"Ensure links are distinguished from surrounding text in a way that does not rely on color",help:"Links must be distinguishable without relying on color"},"link-name":{description:"Ensure links have discernible text",help:"Links must have discernible text"},list:{description:"Ensure that lists are structured correctly",help:"<ul> and <ol> must \
only directly contain <li>, <script> or <template> elements"},listitem:{description:"Ensure <li> elements are used semantically",help:"<li> elements must be contained in a <ul> or <ol>"},marquee:{description:"Ensure <marquee> elements are not used",help:"<marquee> elements are deprecated and must not be used"},"meta-refresh-no-exceptions":{description:'Ensure <meta http-equiv="refresh"> is not used for delayed refresh',help:"Delayed refresh must not be used"},"meta-refresh":{description:'Ensure <meta http-equiv="refresh"> is not used for delayed refresh',help:"Delayed refresh under 20 hours must not be used"},"meta-viewport-large":{description:'Ensure <meta name="viewport"> can scale a significant amount',help:"Users should be able to zoom and scale the text up to 500%"},"meta-viewport":{description:'Ensure <meta name="viewport"> does not disable text scaling and zooming',help:"Zooming and scaling must not be disabled"},"nested-interactive":{description:"Ensure interactive controls are\
 not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies",help:"Interactive controls must not be nested"},"no-autoplay-audio":{description:"Ensure <video> or <audio> elements do not autoplay audio for more than 3 seconds without a control mechanism to stop or mute the audio",help:"<video> or <audio> elements must not play automatically"},"object-alt":{description:"Ensure <object> elements have alternative text",help:"<object> elements must have alternative text"},"p-as-heading":{description:"Ensure bold, italic text and font-size is not used to style <p> elements as a heading",help:"Styled <p> elements must not be used as headings"},"page-has-heading-one":{description:"Ensure that the page, or at least one of its frames contains a level-one heading",help:"Page should contain a level-one heading"},"presentation-role-conflict":{description:"Ensure elements marked as presentational do not have global ARIA or tabindex so that all\
 screen readers ignore them",help:"Elements marked as presentational should be consistently ignored"},region:{description:"Ensure all page content is contained by landmarks",help:"All page content should be contained by landmarks"},"role-img-alt":{description:'Ensure [role="img"] elements have alternative text',help:'[role="img"] elements must have alternative text'},"scope-attr-valid":{description:"Ensure the scope attribute is used correctly on tables",help:"scope attribute should be used correctly"},"scrollable-region-focusable":{description:"Ensure elements that have scrollable content are accessible by keyboard in Safari",help:"Scrollable region must have keyboard access"},"select-name":{description:"Ensure select element has an accessible name",help:"Select element must have an accessible name"},"server-side-image-map":{description:"Ensure that server-side image maps are not used",help:"Server-side image maps must not be used"},"skip-link":{description:"Ensure all skip links have\
 a focusable target",help:"The skip-link target should exist and be focusable"},"summary-name":{description:"Ensure summary elements have discernible text",help:"Summary elements must have discernible text"},"svg-img-alt":{description:"Ensure <svg> elements with an img, graphics-document or graphics-symbol role have accessible text",help:"<svg> elements with an img role must have alternative text"},tabindex:{description:"Ensure tabindex attribute values are not greater than 0",help:"Elements should not have tabindex greater than zero"},"table-duplicate-name":{description:"Ensure the <caption> element does not contain the same text as the summary attribute",help:"Tables should not have the same summary and caption"},"table-fake-caption":{description:"Ensure that tables with a caption use the <caption> element.",help:"Data or header cells must not be used to give caption to a data table."},"target-size":{description:"Ensure touch targets have sufficient size and space",help:"All touch ta\
rgets must be 24px large, or leave sufficient space"},"td-has-header":{description:"Ensure that each non-empty data cell in a <table> larger than 3 by 3  has one or more table headers",help:"Non-empty <td> elements in larger <table> must have an associated table header"},"td-headers-attr":{description:"Ensure that each cell in a table that uses the headers attribute refers only to other <th> elements in that table",help:"Table cell headers attributes must refer to other <th> elements in the same table"},"th-has-data-cells":{description:"Ensure that <th> elements and elements with role=columnheader/rowheader have data cells they describe",help:"Table headers in a data table must refer to data cells"},"valid-lang":{description:"Ensure lang attributes have valid values",help:"lang attribute must have a valid value"},"video-caption":{description:"Ensure <video> elements have captions",help:"<video> elements must have captions"}},checks:{abstractrole:{impact:"serious",messages:{pass:"Abstra\
ct roles are not used",fail:{singular:"Abstract role cannot be directly used: \${data.values}",plural:"Abstract roles cannot be directly used: \${data.values}"}}},"aria-allowed-attr-elm":{messages:{pass:"ARIA attributes are allowed for this element",fail:{singular:"ARIA attribute is not allowed on \${data.nodeName} elements: \${data.values}",plural:"ARIA attributes are not allowed on \${data.nodeName} elements: \${data.values}"}}},"aria-allowed-attr":{impact:"critical",messages:{pass:"ARIA attributes are used correctly for the defined role",fail:{singular:"ARIA attribute is not allowed: \${data.values}",plural:"ARIA attributes are not allowed: \${data.values}"},incomplete:"Check that there is no problem if the ARIA attribute is ignored on this element: \${data.values}"}},"aria-allowed-role":{impact:"minor",messages:{pass:"ARIA role is allowed for given element",fail:{singular:"ARIA role \${data.values} is not allowed for given element",plural:"ARIA roles \${data.values} are not allowed for given \
element"},incomplete:{singular:"ARIA role \${data.values} must be removed when the element is made visible, as it is not allowed for the element",plural:"ARIA roles \${data.values} must be removed when the element is made visible, as they are not allowed for the element"}}},"aria-busy":{impact:"serious",messages:{pass:"Element has an aria-busy attribute",fail:'Element uses aria-busy="true" while showing a loader'}},"aria-conditional-attr":{impact:"serious",messages:{pass:"ARIA attribute is allowed",fail:{checkbox:'Remove aria-checked, or set it to "\${data.checkState}" to match the real checkbox state',radio:'Remove aria-checked, or set it to "\${data.checkState}" to match the real radio state',rowSingular:"This attribute is supported with treegrid rows, but not \${data.ownerRole}: \${data.invalidAttrs}",rowPlural:"These attributes are supported with treegrid rows, but not \${data.ownerRole}: \${data.invalidAttrs}"}}},"aria-errormessage":{impact:"critical",messages:{pass:"aria-errormessage exi\
sts and references elements visible to screen readers that use a supported aria-errormessage technique",fail:{singular:"aria-errormessage value \`\${data.values}\` must use a technique to announce the message (e.g., aria-live, aria-describedby, role=alert, etc.)",plural:"aria-errormessage values \`\${data.values}\` must use a technique to announce the message (e.g., aria-live, aria-describedby, role=alert, etc.)",unsupported:"Multiple IDs in aria-errormessage is not widely supported in assistive technologies",hidden:"aria-errormessage value \`\${data.values}\` cannot reference a hidden element"},incomplete:{singular:"Ensure aria-errormessage value \`\${data.values}\` references an existing element",plural:"Ensure aria-errormessage values \`\${data.values}\` reference existing elements",idrefs:"Unable to determine if aria-errormessage element exists on the page: \${data.values}"}}},"aria-hidden-body":{impact:"critical",messages:{pass:"No aria-hidden attribute is present on document body",fail:"aria-hid\
den=true should not be present on the document body"}},"aria-level":{impact:"serious",messages:{pass:"aria-level values are valid",incomplete:"aria-level values greater than 6 are not supported in all screenreader and browser combinations"}},"aria-prohibited-attr":{impact:"serious",messages:{pass:"ARIA attribute is allowed",fail:{hasRolePlural:'\${data.prohibited} attributes cannot be used with role "\${data.role}".',hasRoleSingular:'\${data.prohibited} attribute cannot be used with role "\${data.role}".',noRolePlural:"\${data.prohibited} attributes cannot be used on a \${data.nodeName} with no valid role attribute.",noRoleSingular:"\${data.prohibited} attribute cannot be used on a \${data.nodeName} with no valid role attribute."},incomplete:{hasRoleSingular:'\${data.prohibited} attribute is not well supported with role "\${data.role}".',hasRolePlural:'\${data.prohibited} attributes are not well supported with role "\${data.role}".',noRoleSingular:"\${data.prohibited} attribute is not well supporte\
d on a \${data.nodeName} with no valid role attribute.",noRolePlural:"\${data.prohibited} attributes are not well supported on a \${data.nodeName} with no valid role attribute."}}},"aria-required-attr":{impact:"critical",messages:{pass:"All required ARIA attributes are present",fail:{singular:"Required ARIA attribute not present: \${data.values}",plural:"Required ARIA attributes not present: \${data.values}"}}},"aria-required-children":{impact:"critical",messages:{pass:{default:"Required ARIA children are present","aria-busy":"Element has an aria-busy attribute, so it is allowed to omit required children"},fail:{singular:"Required ARIA child role not present: \${data.values}",plural:"Required ARIA children role not present: \${data.values}",unallowed:"Element has children which are not allowed: \${data.values}","aria-busy-fail":'Element has children which are not allowed: \${data.values}; Having aria-busy="true" does not allow children with roles that are not allowed'},incomplete:{singular:"Exp\
ecting ARIA child role to be added: \${data.values}",plural:"Expecting ARIA children role to be added: \${data.values}"}}},"aria-required-parent":{impact:"critical",messages:{pass:"Required ARIA parent role present",fail:{singular:"Required ARIA parent role not present: \${data.values}",plural:"Required ARIA parents role not present: \${data.values}"}}},"aria-roledescription":{impact:"serious",messages:{pass:"aria-roledescription used on a supported semantic role",incomplete:"Check that the aria-roledescription is announced by supported screen readers",fail:"Give the element a role that supports aria-roledescription"}},"aria-unsupported-attr":{impact:"critical",messages:{pass:"ARIA attribute is supported",fail:"ARIA attribute is not widely supported in screen readers and assistive technologies: \${data.values}"}},"aria-valid-attr-value":{impact:"critical",messages:{pass:"ARIA attribute values are valid",fail:{singular:"Invalid ARIA attribute value: \${data.values}",plural:"Invalid ARIA attri\
bute values: \${data.values}"},incomplete:{noId:"ARIA attribute element ID does not exist on the page: \${data.needsReview}",noIdShadow:"ARIA attribute element ID does not exist on the page or is a descendant of a different shadow DOM tree: \${data.needsReview}",ariaCurrent:'ARIA attribute value is invalid and will be treated as "aria-current=true": \${data.needsReview}',idrefs:"Unable to determine if ARIA attribute element ID exists on the page: \${data.needsReview}",empty:"ARIA attribute value is ignored while empty: \${data.needsReview}",controlsWithinPopup:"Unable to determine if aria-controls referenced ID exists on the page while using aria-haspopup: \${data.needsReview}"}}},"aria-valid-attr":{impact:"critical",messages:{pass:"ARIA attribute name is valid",fail:{singular:"Invalid ARIA attribute name: \${data.values}",plural:"Invalid ARIA attribute names: \${data.values}"}}},"braille-label-equivalent":{impact:"serious",messages:{pass:"aria-braillelabel is used on an element with accessible\
 text",fail:"aria-braillelabel is used on an element with no accessible text",incomplete:"Unable to compute accessible text"}},"braille-roledescription-equivalent":{impact:"serious",messages:{pass:"aria-brailleroledescription is used on an element with aria-roledescription",fail:{noRoleDescription:"aria-brailleroledescription is used on an element with no aria-roledescription",emptyRoleDescription:"aria-brailleroledescription is used on an element with an empty aria-roledescription"}}},deprecatedrole:{impact:"minor",messages:{pass:"ARIA role is not deprecated",fail:"The role used is deprecated: \${data}"}},fallbackrole:{impact:"serious",messages:{pass:"Only one role value used",fail:"Use only one role value, since fallback roles are not supported in older browsers",incomplete:"Use only role 'presentation' or 'none' since they are synonymous."}},"has-global-aria-attribute":{impact:"minor",messages:{pass:{singular:"Element has global ARIA attribute: \${data.values}",plural:"Element has glo\
bal ARIA attributes: \${data.values}"},fail:"Element does not have global ARIA attribute"}},"has-widget-role":{impact:"minor",messages:{pass:"Element has a widget role.",fail:"Element does not have a widget role."}},invalidrole:{impact:"critical",messages:{pass:"ARIA role is valid",fail:{singular:"Role must be one of the valid ARIA roles: \${data.values}",plural:"Roles must be one of the valid ARIA roles: \${data.values}"}}},"is-element-focusable":{impact:"minor",messages:{pass:"Element is focusable.",fail:"Element is not focusable."}},"no-implicit-explicit-label":{impact:"serious",messages:{pass:"There is no mismatch between a <label> and accessible name",incomplete:"Check that the <label> does not need be part of the ARIA \${data} field's name"}},unsupportedrole:{impact:"critical",messages:{pass:"ARIA role is supported",fail:"The role used is not widely supported in screen readers and assistive technologies: \${data}"}},"valid-scrollable-semantics":{impact:"minor",messages:{pass:"Element \
has valid semantics for an element in the focus order.",fail:"Element has invalid semantics for an element in the focus order."}},"color-contrast-enhanced":{impact:"serious",messages:{pass:"Element has sufficient color contrast of \${data.contrastRatio}",fail:{default:"Element has insufficient color contrast of \${data.contrastRatio} (foreground color: \${data.fgColor}, background color: \${data.bgColor}, font size: \${data.fontSize}, font weight: \${data.fontWeight}). Expected contrast ratio of \${data.expectedContrastRatio}",fgOnShadowColor:"Element has insufficient color contrast of \${data.contrastRatio} between the foreground and shadow color (foreground color: \${data.fgColor}, text-shadow color: \${data.shadowColor}, font size: \${data.fontSize}, font weight: \${data.fontWeight}). Expected contrast ratio of \${data.expectedContrastRatio}",shadowOnBgColor:"Element has insufficient color contrast of \${data.contrastRatio} between the shadow color and background color (text-shadow color: \${data.\
shadowColor}, background color: \${data.bgColor}, font size: \${data.fontSize}, font weight: \${data.fontWeight}). Expected contrast ratio of \${data.expectedContrastRatio}"},incomplete:{default:"Unable to determine contrast ratio",bgImage:"Element's background color could not be determined due to a background image",bgGradient:"Element's background color could not be determined due to a background gradient",imgNode:"Element's background color could not be determined because element contains an image node",bgOverlap:"Element's background color could not be determined because it is overlapped by another element",fgAlpha:"Element's foreground color could not be determined because of alpha transparency",elmPartiallyObscured:"Element's background color could not be determined because it's partially obscured by another element",elmPartiallyObscuring:"Element's background color could not be determined because it partially overlaps other elements",outsideViewport:"Element's background color could\
 not be determined because it's outside the viewport",equalRatio:"Element has a 1:1 contrast ratio with the background",shortTextContent:"Element content is too short to determine if it is actual text content",nonBmp:"Element content contains only non-text characters",pseudoContent:"Element's background color could not be determined due to a pseudo element",colorParse:"Could not parse color string \${data.colorParse}"}}},"color-contrast":{impact:"serious",messages:{pass:{default:"Element has sufficient color contrast of \${data.contrastRatio}",hidden:"Element is hidden"},fail:{default:"Element has insufficient color contrast of \${data.contrastRatio} (foreground color: \${data.fgColor}, background color: \${data.bgColor}, font size: \${data.fontSize}, font weight: \${data.fontWeight}). Expected contrast ratio of \${data.expectedContrastRatio}",fgOnShadowColor:"Element has insufficient color contrast of \${data.contrastRatio} between the foreground and shadow color (foreground color: \${data.fgCo\
lor}, text-shadow color: \${data.shadowColor}, font size: \${data.fontSize}, font weight: \${data.fontWeight}). Expected contrast ratio of \${data.expectedContrastRatio}",shadowOnBgColor:"Element has insufficient color contrast of \${data.contrastRatio} between the shadow color and background color (text-shadow color: \${data.shadowColor}, background color: \${data.bgColor}, font size: \${data.fontSize}, font weight: \${data.fontWeight}). Expected contrast ratio of \${data.expectedContrastRatio}"},incomplete:{default:"Unable to determine contrast ratio",bgImage:"Element's background color could not be determined due to a background image",bgGradient:"Element's background color could not be determined due to a background gradient",imgNode:"Element's background color could not be determined because element contains an image node",bgOverlap:"Element's background color could not be determined because it is overlapped by another element",complexTextShadows:"Element's contrast could not be determined \
because it uses complex text shadows",fgAlpha:"Element's foreground color could not be determined because of alpha transparency",elmPartiallyObscured:"Element's background color could not be determined because it's partially obscured by another element",elmPartiallyObscuring:"Element's background color could not be determined because it partially overlaps other elements",outsideViewport:"Element's background color could not be determined because it's outside the viewport",equalRatio:"Element has a 1:1 contrast ratio with the background",shortTextContent:"Element content is too short to determine if it is actual text content",nonBmp:"Element content contains only non-text characters",pseudoContent:"Element's background color could not be determined due to a pseudo element",colorParse:"Could not parse color string \${data.colorParse}"}}},"link-in-text-block-style":{impact:"serious",messages:{pass:"Links can be distinguished from surrounding text by visual styling",incomplete:{default:"Che\
ck if the link needs styling to distinguish it from nearby text",pseudoContent:"Check if the link's pseudo style is sufficient to distinguish it from the surrounding text"},fail:"The link has no styling (such as underline) to distinguish it from the surrounding text"}},"link-in-text-block":{impact:"serious",messages:{pass:"Links can be distinguished from surrounding text in some way other than by color",fail:{fgContrast:"The link has insufficient color contrast of \${data.contrastRatio}:1 with the surrounding text. (Minimum contrast is \${data.requiredContrastRatio}:1, link text: \${data.nodeColor}, surrounding text: \${data.parentColor})",bgContrast:"The link background has insufficient color contrast of \${data.contrastRatio} (Minimum contrast is \${data.requiredContrastRatio}:1, link background color: \${data.nodeBackgroundColor}, surrounding background color: \${data.parentBackgroundColor})"},incomplete:{default:"Element's foreground contrast ratio could not be determined",bgContrast:"Elem\
ent's background contrast ratio could not be determined",bgImage:"Element's contrast ratio could not be determined due to a background image",bgGradient:"Element's contrast ratio could not be determined due to a background gradient",imgNode:"Element's contrast ratio could not be determined because element contains an image node",bgOverlap:"Element's contrast ratio could not be determined because of element overlap"}}},"autocomplete-appropriate":{impact:"serious",messages:{pass:"The autocomplete value is on an appropriate element",fail:"The autocomplete value is inappropriate for this type of input"}},"autocomplete-valid":{impact:"serious",messages:{pass:"the autocomplete attribute is correctly formatted",fail:"the autocomplete attribute is incorrectly formatted",incomplete:"the autocomplete attribute has a non-standard value. Check whether any standard value could be used instead."}},accesskeys:{impact:"serious",messages:{pass:"Accesskey attribute value is unique",fail:"Document has mu\
ltiple elements with the same accesskey"}},"focusable-content":{impact:"serious",messages:{pass:"Element contains focusable elements",fail:"Element should have focusable content"}},"focusable-disabled":{impact:"serious",messages:{pass:"No focusable elements contained within element",incomplete:"Check if the focusable elements immediately move the focus indicator",fail:"Focusable content should be disabled or be removed from the DOM"}},"focusable-element":{impact:"serious",messages:{pass:"Element is focusable",fail:"Element should be focusable"}},"focusable-modal-open":{impact:"serious",messages:{pass:"No focusable elements while a modal is open",incomplete:"Check that focusable elements are not tabbable in the current state"}},"focusable-no-name":{impact:"serious",messages:{pass:"Element is not in tab order or has accessible text",fail:"Element is in tab order and does not have accessible text",incomplete:"Unable to determine if element has an accessible name"}},"focusable-not-tabbable\
":{impact:"serious",messages:{pass:"No focusable elements contained within element",incomplete:"Check if the focusable elements immediately move the focus indicator",fail:'Focusable content should have tabindex="-1" or be removed from the DOM'}},"frame-focusable-content":{impact:"serious",messages:{pass:"Element does not have focusable descendants",fail:"Element has focusable descendants",incomplete:"Could not determine if element has descendants"}},"landmark-is-top-level":{impact:"moderate",messages:{pass:"The \${data.role} landmark is at the top level.",fail:"The \${data.role} landmark is contained in another landmark."}},"no-focusable-content":{impact:"serious",messages:{pass:"Element does not have focusable descendants",fail:{default:"Element has focusable descendants",notHidden:'Using a negative tabindex on an element inside an interactive control does not prevent assistive technologies from focusing the element (even with aria-hidden="true")'},incomplete:"Could not determine if ele\
ment has descendants"}},"page-has-heading-one":{impact:"moderate",messages:{pass:"Page has at least one level-one heading",fail:"Page must have a level-one heading"}},"page-has-main":{impact:"moderate",messages:{pass:"Document has at least one main landmark",fail:"Document does not have a main landmark"}},"page-no-duplicate-banner":{impact:"moderate",messages:{pass:"Document does not have more than one banner landmark",fail:"Document has more than one banner landmark"}},"page-no-duplicate-contentinfo":{impact:"moderate",messages:{pass:"Document does not have more than one contentinfo landmark",fail:"Document has more than one contentinfo landmark"}},"page-no-duplicate-main":{impact:"moderate",messages:{pass:"Document does not have more than one main landmark",fail:"Document has more than one main landmark"}},tabindex:{impact:"serious",messages:{pass:"Element does not have a tabindex greater than 0",fail:"Element has a tabindex greater than 0"}},"alt-space-value":{impact:"critical",mess\
ages:{pass:"Element has a valid alt attribute value",fail:"Element has an alt attribute containing only a space character, which is not ignored by all screen readers"}},"duplicate-img-label":{impact:"minor",messages:{pass:"Element does not duplicate existing text in <img> alt text",fail:"Element contains <img> element with alt text that duplicates existing text"}},"explicit-label":{impact:"critical",messages:{pass:"Element has an explicit <label>",fail:"Element does not have an explicit <label>",incomplete:"Unable to determine if form element has an explicit <label>"}},"help-same-as-label":{impact:"minor",messages:{pass:"Help text (title or aria-describedby) does not duplicate label text",fail:"Help text (title or aria-describedby) text is the same as the label text"}},"hidden-explicit-label":{impact:"critical",messages:{pass:"Form element has a visible explicit <label>",fail:"Form element has explicit <label> that is hidden",incomplete:"Unable to determine if form element has explicit\
 <label> that is hidden"}},"implicit-label":{impact:"critical",messages:{pass:"Element has an implicit (wrapped) <label>",fail:"Element does not have an implicit (wrapped) <label>",incomplete:"Unable to determine if form element has an implicit (wrapped) <label>"}},"label-content-name-mismatch":{impact:"serious",messages:{pass:"Element contains visible text as part of it's accessible name",fail:"Text inside the element is not included in the accessible name"}},"multiple-label":{impact:"moderate",messages:{pass:"Form field does not have multiple label elements",incomplete:"Multiple label elements is not widely supported in assistive technologies. Ensure the first label contains all necessary information."}},"title-only":{impact:"serious",messages:{pass:"Form element does not solely use title attribute for its label",fail:"Only title used to generate label for form element"}},"landmark-is-unique":{impact:"moderate",messages:{pass:"Landmarks must have a unique role or role/label/title (i.\
e. accessible name) combination",fail:"The landmark must have a unique aria-label, aria-labelledby, or title to make landmarks distinguishable"}},"has-lang":{impact:"serious",messages:{pass:"The <html> element has a lang attribute",fail:{noXHTML:"The xml:lang attribute is not valid on HTML pages, use the lang attribute.",noLang:"The <html> element does not have a lang attribute"}}},"valid-lang":{impact:"serious",messages:{pass:"Value of lang attribute is included in the list of valid languages",fail:"Value of lang attribute not included in the list of valid languages"}},"xml-lang-mismatch":{impact:"moderate",messages:{pass:"Lang and xml:lang attributes have the same base language",fail:"Lang and xml:lang attributes do not have the same base language"}},dlitem:{impact:"serious",messages:{pass:"Description list item has a <dl> parent element",fail:"Description list item does not have a <dl> parent element"}},listitem:{impact:"serious",messages:{pass:'List item has a <ul>, <ol> or role="l\
ist" parent element',fail:{default:"List item does not have a <ul>, <ol> parent element",roleNotValid:'List item parent element has a role that is not role="list"'}}},"only-dlitems":{impact:"serious",messages:{pass:"dl element only has direct children that are allowed inside; <dt>, <dd>, or <div> elements",fail:"dl element has direct children that are not allowed: \${data.values}"}},"only-listitems":{impact:"serious",messages:{pass:"List element only has direct children that are allowed inside <li> elements",fail:"List element has direct children that are not allowed: \${data.values}"}},"structured-dlitems":{impact:"serious",messages:{pass:"When not empty, element has both <dt> and <dd> elements",fail:"When not empty, element does not have at least one <dt> element followed by at least one <dd> element"}},caption:{impact:"critical",messages:{pass:"The multimedia element has a captions track",incomplete:"Check that captions are available for the element"}},"frame-tested":{impact:"critical\
",messages:{pass:"The iframe was tested with axe-core",fail:"The iframe could not be tested with axe-core",incomplete:"The iframe still has to be tested with axe-core"}},"no-autoplay-audio":{impact:"moderate",messages:{pass:"<video> or <audio> does not output audio for more than allowed duration or has controls mechanism",fail:"<video> or <audio> outputs audio for more than allowed duration and does not have a controls mechanism",incomplete:"Check that the <video> or <audio> does not output audio for more than allowed duration or provides a controls mechanism"}},"css-orientation-lock":{impact:"serious",messages:{pass:"Display is operable, and orientation lock does not exist",fail:"CSS Orientation lock is applied, and makes display inoperable",incomplete:"CSS Orientation lock cannot be determined"}},"meta-viewport-large":{impact:"minor",messages:{pass:"<meta> tag does not prevent significant zooming on mobile devices",fail:"<meta> tag limits zooming on mobile devices"}},"meta-viewport":\
{impact:"critical",messages:{pass:"<meta> tag does not disable zooming on mobile devices",fail:"\${data} on <meta> tag disables zooming on mobile devices"}},"target-offset":{impact:"serious",messages:{pass:{default:"Target has sufficient space from its closest neighbors. Safe clickable space has a diameter of \${data.closestOffset}px which is at least \${data.minOffset}px.",large:"Target far exceeds the minimum size of \${data.minOffset}px."},fail:"Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of \${data.closestOffset}px instead of at least \${data.minOffset}px.",incomplete:{default:"Element with negative tabindex has insufficient space to its closest neighbors. Safe clickable space has a diameter of \${data.closestOffset}px instead of at least \${data.minOffset}px. Is this a target?",nonTabbableNeighbor:"Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of \${data.closestOffset}px instead of at least \${data\
.minOffset}px. Is the neighbor a target?",tooManyRects:"Could not get the target size because there are too many overlapping elements"}}},"target-size":{impact:"serious",messages:{pass:{default:"Control has sufficient size (\${data.width}px by \${data.height}px, should be at least \${data.minSize}px by \${data.minSize}px)",obscured:"Control is ignored because it is fully obscured and thus not clickable",large:"Target far exceeds the minimum size of \${data.minSize}px."},fail:{default:"Target has insufficient size (\${data.width}px by \${data.height}px, should be at least \${data.minSize}px by \${data.minSize}px)",partiallyObscured:"Target has insufficient size because it is partially obscured (smallest space is \${data.width}px by \${data.height}px, should be at least \${data.minSize}px by \${data.minSize}px)"},incomplete:{default:"Element with negative tabindex has insufficient size (\${data.width}px by \${data.height}px, should be at least \${data.minSize}px by \${data.minSize}px). Is this a target?"\
,contentOverflow:"Element size could not be accurately determined due to overflow content",partiallyObscured:"Element with negative tabindex has insufficient size because it is partially obscured (smallest space is \${data.width}px by \${data.height}px, should be at least \${data.minSize}px by \${data.minSize}px). Is this a target?",partiallyObscuredNonTabbable:"Target has insufficient size because it is partially obscured by a neighbor with negative tabindex (smallest space is \${data.width}px by \${data.height}px, should be at least \${data.minSize}px by \${data.minSize}px). Is the neighbor a target?",tooManyRects:"Could not get the target size because there are too many overlapping elements"}}},"header-present":{impact:"serious",messages:{pass:"Page has a heading",fail:"Page does not have a heading"}},"heading-order":{impact:"moderate",messages:{pass:"Heading order valid",fail:"Heading order invalid",incomplete:"Unable to determine previous heading"}},"identical-links-same-purpose":{impact:\
"minor",messages:{pass:"There are no other links with the same name, that go to a different URL",incomplete:"Check that links have the same purpose, or are intentionally ambiguous."}},"internal-link-present":{impact:"serious",messages:{pass:"Valid skip link found",fail:"No valid skip link found"}},landmark:{impact:"serious",messages:{pass:"Page has a landmark region",fail:"Page does not have a landmark region"}},"meta-refresh-no-exceptions":{impact:"minor",messages:{pass:"<meta> tag does not immediately refresh the page",fail:"<meta> tag forces timed refresh of page"}},"meta-refresh":{impact:"critical",messages:{pass:"<meta> tag does not immediately refresh the page",fail:"<meta> tag forces timed refresh of page (less than 20 hours)"}},"p-as-heading":{impact:"serious",messages:{pass:"<p> elements are not styled as headings",fail:"Heading elements should be used instead of styled <p> elements",incomplete:"Unable to determine if <p> elements are styled as headings"}},region:{impact:"mode\
rate",messages:{pass:"All page content is contained by landmarks",fail:"Some page content is not contained by landmarks"}},"skip-link":{impact:"moderate",messages:{pass:"Skip link target exists",incomplete:"Skip link target should become visible on activation",fail:"No skip link target"}},"unique-frame-title":{impact:"serious",messages:{pass:"Element's title attribute is unique",fail:"Element's title attribute is not unique"}},"duplicate-id-active":{impact:"serious",messages:{pass:"Document has no active elements that share the same id attribute",fail:"Document has active elements with the same id attribute: \${data}"}},"duplicate-id-aria":{impact:"critical",messages:{pass:"Document has no elements referenced with ARIA or labels that share the same id attribute",fail:"Document has multiple elements referenced with ARIA with the same id attribute: \${data}"}},"duplicate-id":{impact:"minor",messages:{pass:"Document has no static elements that share the same id attribute",fail:"Document has\
 multiple static elements with the same id attribute: \${data}"}},"aria-label":{impact:"serious",messages:{pass:"aria-label attribute exists and is not empty",fail:"aria-label attribute does not exist or is empty"}},"aria-labelledby":{impact:"serious",messages:{pass:"aria-labelledby attribute exists and references elements that are visible to screen readers",fail:"aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty",incomplete:"Ensure aria-labelledby references an existing element"}},"avoid-inline-spacing":{impact:"serious",messages:{pass:"No inline styles with '!important' that affect text spacing has been specified",fail:{singular:"Remove '!important' from inline style \${data.values}, as overriding this is not supported by most browsers",plural:"Remove '!important' from inline styles \${data.values}, as overriding this is not supported by most browsers"}}},"button-has-visible-text":{impact:"critical",messages:{pass:"Elem\
ent has inner text that is visible to screen readers",fail:"Element does not have inner text that is visible to screen readers",incomplete:"Unable to determine if element has children"}},"doc-has-title":{impact:"serious",messages:{pass:"Document has a non-empty <title> element",fail:"Document does not have a non-empty <title> element"}},"error-occurred":{messages:{pass:"",incomplete:"Axe encountered an error; test the page for this type of problem manually"}},exists:{impact:"minor",messages:{pass:"Element does not exist",incomplete:"Element exists"}},"has-alt":{impact:"critical",messages:{pass:"Element has an alt attribute",fail:"Element does not have an alt attribute"}},"has-visible-text":{impact:"minor",messages:{pass:"Element has text that is visible to screen readers",fail:"Element does not have text that is visible to screen readers",incomplete:"Unable to determine if element has children"}},"important-letter-spacing":{impact:"serious",messages:{pass:"Letter-spacing in the style a\
ttribute is not set to !important, or meets the minimum",fail:"letter-spacing in the style attribute must not use !important, or be at \${data.minValue}em (current \${data.value}em)"}},"important-line-height":{impact:"serious",messages:{pass:"line-height in the style attribute is not set to !important, or meets the minimum",fail:"line-height in the style attribute must not use !important, or be at \${data.minValue}em (current \${data.value}em)"}},"important-word-spacing":{impact:"serious",messages:{pass:"word-spacing in the style attribute is not set to !important, or meets the minimum",fail:"word-spacing in the style attribute must not use !important, or be at \${data.minValue}em (current \${data.value}em)"}},"is-on-screen":{impact:"serious",messages:{pass:"Element is not visible",fail:"Element is visible"}},"non-empty-alt":{impact:"critical",messages:{pass:"Element has a non-empty alt attribute",fail:{noAttr:"Element has no alt attribute",emptyAttr:"Element has an empty alt attribute"}}},"\
non-empty-if-present":{impact:"critical",messages:{pass:{default:"Element does not have a value attribute","has-label":"Element has a non-empty value attribute"},fail:"Element has a value attribute and the value attribute is empty"}},"non-empty-placeholder":{impact:"serious",messages:{pass:"Element has a placeholder attribute",fail:{noAttr:"Element has no placeholder attribute",emptyAttr:"Element has an empty placeholder attribute"}}},"non-empty-title":{impact:"serious",messages:{pass:"Element has a title attribute",fail:{noAttr:"Element has no title attribute",emptyAttr:"Element has an empty title attribute"}}},"non-empty-value":{impact:"critical",messages:{pass:"Element has a non-empty value attribute",fail:{noAttr:"Element has no value attribute",emptyAttr:"Element has an empty value attribute"}}},"presentational-role":{impact:"minor",messages:{pass:'Element\\'s default semantics were overridden with role="\${data.role}"',fail:{default:'Element\\'s default semantics were not overridden\
 with role="none" or role="presentation"',globalAria:"Element's role is not presentational because it has a global ARIA attribute",focusable:"Element's role is not presentational because it is focusable",both:"Element's role is not presentational because it has a global ARIA attribute and is focusable",iframe:'Using the "title" attribute on an \${data.nodeName} element with a presentational role behaves inconsistently between screen readers'}}},"role-none":{impact:"minor",messages:{pass:'Element\\'s default semantics were overridden with role="none"',fail:'Element\\'s default semantics were not overridden with role="none"'}},"role-presentation":{impact:"minor",messages:{pass:'Element\\'s default semantics were overridden with role="presentation"',fail:'Element\\'s default semantics were not overridden with role="presentation"'}},"svg-non-empty-title":{impact:"serious",messages:{pass:"Element has a child that is a title",fail:{noTitle:"Element has no child that is a title",emptyTitle:"Elemen\
t child title is empty"},incomplete:"Unable to determine element has a child that is a title"}},"caption-faked":{impact:"serious",messages:{pass:"The first row of a table is not used as a caption",fail:"The first child of the table should be a caption instead of a table cell"}},"html5-scope":{impact:"moderate",messages:{pass:"Scope attribute is only used on table header elements (<th>)",fail:"In HTML 5, scope attributes may only be used on table header elements (<th>)"}},"same-caption-summary":{impact:"minor",messages:{pass:"Content of summary attribute and <caption> are not duplicated",fail:"Content of summary attribute and <caption> element are identical",incomplete:"Unable to determine if <table> element has a caption"}},"scope-value":{impact:"critical",messages:{pass:"Scope attribute is used correctly",fail:"The value of the scope attribute may only be 'row' or 'col'"}},"td-has-header":{impact:"critical",messages:{pass:"All non-empty data cells have table headers",fail:"Some non-em\
pty data cells do not have table headers"}},"td-headers-attr":{impact:"serious",messages:{pass:"The headers attribute is exclusively used to refer to other header cells in the table",incomplete:"The headers attribute is empty",fail:{"cell-header-not-in-table":"The headers attribute is not exclusively used to refer to other header cells in the table","cell-header-not-th":"The headers attribute must refer to header cells, not data cells","header-refs-self":"The element with headers attribute refers to itself"}}},"th-has-data-cells":{impact:"serious",messages:{pass:"All table header cells refer to data cells",fail:"Not all table header cells refer to data cells",incomplete:"Table data cells are missing or empty"}},"hidden-content":{impact:"minor",messages:{pass:"All content on the page has been analyzed.",fail:"There were problems analyzing the content on this page.",incomplete:"There is hidden content on the page that was not analyzed. You will need to trigger the display of this content\
 in order to analyze it."}}},failureSummaries:{any:{failureMessage:function(e){var t="Fix any of the following:",n=e;if(n)for(var r=-1,a=n.length-1;r<a;)t+="\\n  "+n[r+=1].split("\\n").join("\\n  ");return t}},none:{failureMessage:function(e){var t="Fix all of the following:",n=e;if(n)for(var r=-1,a=n.length-1;r<a;)t+="\\n  "+n[r+=1].split("\\n").join("\\n  ");return t}}},incompleteFallbackMessage:"axe couldn't tell the reason. Time to break out the element inspector!"},rules:[{id:"accesskeys",impact:"serious",selector:"[accesskey]",excludeHidden:!1,tags:["cat.keyboard","best-practice"],all:[],any:[],none:["accesskeys"]},{id:"area-alt",impact:"critical",selector:"map area[href]",excludeHidden:!1,tags:["cat.text-alternatives","wcag2a","wcag244","wcag412","section508","section508.22.a","TTv5","TT6.a","EN-301-549","EN-9.2.4.4","EN-9.4.1.2","ACT","RGAAv4","RGAA-1.1.2"],actIds:["c487ae"],all:[],any:[{options:{attribute:"alt"},id:"non-empty-alt"},"aria-label","aria-labelledby",{options:{attribute:\
"title"},id:"non-empty-title"}],none:[]},{id:"aria-allowed-attr",impact:"critical",matches:"aria-allowed-attr-matches",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-7.1.1"],actIds:["5c01ea"],all:[{options:{validTreeRowAttrs:["aria-posinset","aria-setsize","aria-expanded","aria-level"]},id:"aria-allowed-attr"},"aria-allowed-attr-elm"],any:[],none:["aria-unsupported-attr"]},{id:"aria-allowed-role",impact:"minor",excludeHidden:!1,selector:"[role]",matches:"aria-allowed-role-matches",tags:["cat.aria","best-practice"],all:[],any:[{options:{allowImplicit:!0,ignoredTags:[]},id:"aria-allowed-role"}],none:[]},{id:"aria-braille-equivalent",reviewOnFail:!0,impact:"serious",selector:"[aria-brailleroledescription], [aria-braillelabel]",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2"],all:["braille-roledescription-equivalent","braille-label-equivalent"],any:[],none:[]},{id:"aria-command-name",impact:"serious",selector:'[role="link"], [role="button"], [rol\
e="menuitem"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag412","TTv5","TT6.a","EN-301-549","EN-9.4.1.2","ACT","RGAAv4","RGAA-11.9.1"],actIds:["97a4e1"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-conditional-attr",impact:"serious",matches:"aria-allowed-attr-matches",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-7.1.1"],actIds:["5c01ea"],all:[{options:{invalidTableRowAttrs:["aria-posinset","aria-setsize","aria-expanded","aria-level"]},id:"aria-conditional-attr"}],any:[],none:[]},{id:"aria-deprecated-role",impact:"minor",selector:"[role]",matches:"no-empty-role-matches",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-7.1.1"],actIds:["674b10"],all:[],any:[],none:["deprecatedrole"]},{id:"aria-dialog-name",impact:"serious",selector:'[role="dialog"], [role="alertdialog"]',matches:"no-naming-method-matches",tags:["cat.aria"\
,"best-practice"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-hidden-body",impact:"critical",selector:"body",excludeHidden:!1,matches:"is-initiator-matches",tags:["cat.aria","wcag2a","wcag131","wcag412","EN-301-549","EN-9.1.3.1","EN-9.4.1.2","RGAAv4","RGAA-10.8.1"],all:[],any:["aria-hidden-body"],none:[]},{id:"aria-hidden-focus",impact:"serious",selector:'[aria-hidden="true"]',matches:"aria-hidden-focus-matches",excludeHidden:!1,tags:["cat.name-role-value","wcag2a","wcag412","TTv5","TT6.a","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-10.8.1"],actIds:["6cfa84"],all:["focusable-modal-open","focusable-disabled","focusable-not-tabbable"],any:[],none:[]},{id:"aria-input-field-name",impact:"serious",selector:'[role="combobox"], [role="listbox"], [role="searchbox"], [role="slider"], [role="spinbutton"], [role="textbox"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag412","TTv5","TT5.c","EN-301-549","EN-9.4.1\
.2","ACT","RGAAv4","RGAA-11.1.1"],actIds:["e086e5"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:["no-implicit-explicit-label"]},{id:"aria-meter-name",impact:"serious",selector:'[role="meter"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag111","EN-301-549","EN-9.1.1.1","RGAAv4","RGAA-11.1.1"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-progressbar-name",impact:"serious",selector:'[role="progressbar"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag111","EN-301-549","EN-9.1.1.1","RGAAv4","RGAA-11.1.1"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-prohibited-attr",impact:"serious",matches:"aria-allowed-attr-matches",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-7.1.1"],actIds:["5c01ea"],all:[],any:[],none:[{options:{elementsAll\
owedAriaLabel:["applet","input"]},id:"aria-prohibited-attr"}]},{id:"aria-required-attr",impact:"critical",selector:"[role]",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-7.1.1"],actIds:["4e8ab6"],all:[],any:["aria-required-attr"],none:[]},{id:"aria-required-children",impact:"critical",selector:"[role]",matches:"aria-required-children-matches",tags:["cat.aria","wcag2a","wcag131","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-9.3.1"],actIds:["bc4a75","ff89c9"],all:[],any:[{options:{reviewEmpty:["doc-bibliography","doc-endnotes","grid","list","listbox","menu","menubar","table","tablist","tree","treegrid","rowgroup"]},id:"aria-required-children"}],none:[]},{id:"aria-required-parent",impact:"critical",selector:"[role]",matches:"aria-required-parent-matches",tags:["cat.aria","wcag2a","wcag131","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-9.3.1"],actIds:["ff89c9"],all:[],any:[{options:{ownGroupRoles:["listitem","treeitem"]},id:"aria-required-parent"}],none:[]},{id:"aria-r\
oledescription",impact:"serious",selector:"[aria-roledescription]",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","deprecated"],enabled:!1,all:[],any:[{options:{supportedRoles:["button","img","checkbox","radio","combobox","menuitemcheckbox","menuitemradio"]},id:"aria-roledescription"}],none:[]},{id:"aria-roles",impact:"critical",selector:"[role]",matches:"no-empty-role-matches",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-7.1.1"],actIds:["674b10"],all:[],any:[],none:["invalidrole","abstractrole","unsupportedrole"]},{id:"aria-tab-name",impact:"serious",selector:'[role="tab"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag412","TTv5","TT5.c","EN-301-549","EN-9.4.1.2","ACT","RGAAv4","RGAA-7.1.1"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-text",impact:"serious",selector:"[role=text]",tags:["cat.aria","best-practice"],all:[],any:["no-f\
ocusable-content"],none:[]},{id:"aria-toggle-field-name",impact:"serious",selector:'[role="checkbox"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="radio"], [role="switch"], [role="option"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag412","TTv5","TT5.c","EN-301-549","EN-9.4.1.2","ACT","RGAAv4","RGAA-7.1.1"],actIds:["e086e5"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:["no-implicit-explicit-label"]},{id:"aria-tooltip-name",impact:"serious",selector:'[role="tooltip"]',matches:"no-naming-method-matches",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-treeitem-name",impact:"serious",selector:'[role="treeitem"]',matches:"no-naming-method-matches",tags:["cat.aria","best-practice"],all:[],any:["has-visible-text","aria-label","aria-labell\
edby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"aria-valid-attr-value",impact:"critical",matches:"aria-has-attr-matches",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-7.1.1"],actIds:["6a7281"],all:[{options:[],id:"aria-valid-attr-value"},"aria-errormessage","aria-level"],any:[],none:[]},{id:"aria-valid-attr",impact:"critical",matches:"aria-has-attr-matches",tags:["cat.aria","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-7.1.1"],actIds:["5f99a7"],all:[],any:[{options:[],id:"aria-valid-attr"}],none:[]},{id:"audio-caption",impact:"critical",selector:"audio",enabled:!1,excludeHidden:!1,tags:["cat.time-and-media","wcag2a","wcag121","EN-301-549","EN-9.1.2.1","section508","section508.22.a","deprecated"],actIds:["2eb176","afb423"],all:[],any:[],none:["caption"]},{id:"autocomplete-valid",impact:"serious",matches:"autocomplete-matches",tags:["cat.forms","wcag21aa","wcag135","EN-301-549","EN-9.1.3.5","ACT","RGAAv4","RGAA-11.13.1"\
],actIds:["73f2c2"],all:[{options:{stateTerms:["none","false","true","disabled","enabled","undefined","null","xoff","xon"],ignoredValues:["text","pronouns","gender","message","content"]},id:"autocomplete-valid"}],any:[],none:[]},{id:"avoid-inline-spacing",impact:"serious",selector:"[style]",matches:"is-visible-on-screen-matches",tags:["cat.structure","wcag21aa","wcag1412","EN-301-549","EN-9.1.4.12","ACT"],actIds:["24afc2","9e45ec","78fd32"],all:[{options:{cssProperty:"letter-spacing",minValue:.12},id:"important-letter-spacing"},{options:{cssProperty:"word-spacing",minValue:.16},id:"important-word-spacing"},{options:{multiLineOnly:!0,cssProperty:"line-height",minValue:1.5,normalValue:1},id:"important-line-height"}],any:[],none:[]},{id:"blink",impact:"serious",selector:"blink",excludeHidden:!1,tags:["cat.time-and-media","wcag2a","wcag222","section508","section508.22.j","TTv5","TT2.b","EN-301-549","EN-9.2.2.2","RGAAv4","RGAA-13.8.1"],all:[],any:[],none:["is-on-screen"]},{id:"button-name",\
impact:"critical",selector:"button",matches:"no-explicit-name-required-matches",tags:["cat.name-role-value","wcag2a","wcag412","section508","section508.22.a","TTv5","TT6.a","EN-301-549","EN-9.4.1.2","ACT","RGAAv4","RGAA-11.9.1"],actIds:["97a4e1","m6b1q3"],all:[],any:["button-has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"implicit-label","explicit-label","presentational-role"],none:[]},{id:"bypass",impact:"serious",selector:"html:not(html *)",pageLevel:!0,matches:"bypass-matches",reviewOnFail:!0,tags:["cat.keyboard","wcag2a","wcag241","section508","section508.22.o","TTv5","TT9.a","EN-301-549","EN-9.2.4.1","RGAAv4","RGAA-12.7.1"],actIds:["cf77f2","047fe0","b40fd1","3e12e1","ye5d6e"],all:[],any:["internal-link-present",{options:{selector:":is(h1, h2, h3, h4, h5, h6):not([role]), [role=heading]"},id:"header-present"},{options:{selector:"main, [role=main]"},id:"landmark"}],none:[]},{id:"color-contrast-enhanced",impact:"serious",matches:"\
color-contrast-matches",excludeHidden:!1,enabled:!1,tags:["cat.color","wcag2aaa","wcag146","ACT"],actIds:["09o5cg"],all:[],any:[{options:{ignoreUnicode:!0,ignoreLength:!1,ignorePseudo:!1,boldValue:700,boldTextPt:14,largeTextPt:18,contrastRatio:{normal:{expected:7,minThreshold:4.5},large:{expected:4.5,minThreshold:3}},pseudoSizeThreshold:.25,shadowOutlineEmMax:.1,textStrokeEmMin:.03},id:"color-contrast-enhanced"}],none:[]},{id:"color-contrast",impact:"serious",matches:"color-contrast-matches",excludeHidden:!1,tags:["cat.color","wcag2aa","wcag143","TTv5","TT13.c","EN-301-549","EN-9.1.4.3","ACT","RGAAv4","RGAA-3.2.1"],actIds:["afw4f7","09o5cg"],all:[],any:[{options:{ignoreUnicode:!0,ignoreLength:!1,ignorePseudo:!1,boldValue:700,boldTextPt:14,largeTextPt:18,contrastRatio:{normal:{expected:4.5},large:{expected:3}},pseudoSizeThreshold:.25,shadowOutlineEmMax:.2,textStrokeEmMin:.03},id:"color-contrast"}],none:[]},{id:"css-orientation-lock",impact:"serious",selector:"html:not(html *)",tags:["ca\
t.structure","wcag134","wcag21aa","EN-301-549","EN-9.1.3.4","RGAAv4","RGAA-13.9.1","experimental"],actIds:["b33eff"],all:[{options:{degreeThreshold:2},id:"css-orientation-lock"}],any:[],none:[],preload:!0},{id:"definition-list",impact:"serious",selector:"dl",matches:"no-role-matches",tags:["cat.structure","wcag2a","wcag131","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-9.3.3"],all:[],any:[],none:["structured-dlitems",{options:{validRoles:["definition","term","listitem"],validNodeNames:["dt","dd"],divGroups:!0},id:"only-dlitems"}]},{id:"dlitem",impact:"serious",selector:"dd, dt",matches:"no-role-matches",tags:["cat.structure","wcag2a","wcag131","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-9.3.3"],all:[],any:["dlitem"],none:[]},{id:"document-title",impact:"serious",selector:"html:not(html *)",matches:"is-initiator-matches",tags:["cat.text-alternatives","wcag2a","wcag242","TTv5","TT12.a","EN-301-549","EN-9.2.4.2","ACT","RGAAv4","RGAA-8.5.1"],actIds:["2779a5"],all:[],any:["doc-has-title"],none:[]},\
{id:"duplicate-id-active",impact:"serious",selector:"[id]",matches:"duplicate-id-active-matches",excludeHidden:!1,tags:["cat.parsing","wcag2a-obsolete","wcag411","deprecated"],enabled:!1,actIds:["3ea0c8"],all:[],any:["duplicate-id-active"],none:[]},{id:"duplicate-id-aria",impact:"critical",selector:"[id]",matches:"duplicate-id-aria-matches",excludeHidden:!1,tags:["cat.parsing","wcag2a","wcag412","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-8.2.1"],reviewOnFail:!0,actIds:["3ea0c8"],all:[],any:["duplicate-id-aria"],none:[]},{id:"duplicate-id",impact:"minor",selector:"[id]",matches:"duplicate-id-misc-matches",excludeHidden:!1,tags:["cat.parsing","wcag2a-obsolete","wcag411","deprecated"],enabled:!1,actIds:["3ea0c8"],all:[],any:["duplicate-id"],none:[]},{id:"empty-heading",impact:"minor",selector:'h1, h2, h3, h4, h5, h6, [role="heading"]',matches:"heading-matches",tags:["cat.name-role-value","best-practice"],actIds:["ffd0e9"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{option\
s:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"empty-table-header",impact:"minor",selector:'th:not([role]), [role="rowheader"], [role="columnheader"]',tags:["cat.name-role-value","best-practice"],all:[],any:["has-visible-text"],none:[]},{id:"focus-order-semantics",impact:"minor",selector:"div, h1, h2, h3, h4, h5, h6, [role=heading], p, span",matches:"inserted-into-focus-order-matches",tags:["cat.keyboard","best-practice","RGAAv4","RGAA-12.8.1","experimental"],all:[],any:[{options:[],id:"has-widget-role"},{options:{roles:["tooltip"]},id:"valid-scrollable-semantics"}],none:[]},{id:"form-field-multiple-labels",impact:"moderate",selector:"input, select, textarea",matches:"label-matches",tags:["cat.forms","wcag2a","wcag332","TTv5","TT5.c","EN-301-549","EN-9.3.3.2","RGAAv4","RGAA-11.2.1"],all:[],any:[],none:["multiple-label"]},{id:"frame-focusable-content",impact:"serious",selector:"html:not(html *)",matches:"frame-focusable-content-matches",tags:["cat.keyboard","wcag2a","wcag211\
","TTv5","TT4.a","EN-301-549","EN-9.2.1.1","RGAAv4","RGAA-7.3.2"],actIds:["akn7bn"],all:[],any:["frame-focusable-content"],none:[]},{id:"frame-tested",impact:"critical",selector:"html:not(html *), frame, iframe",tags:["cat.structure","best-practice","review-item"],all:[{options:{isViolation:!1},id:"frame-tested"}],any:[],none:[]},{id:"frame-title-unique",impact:"serious",selector:"frame[title], iframe[title]",matches:"frame-title-has-text-matches",tags:["cat.text-alternatives","wcag2a","wcag412","TTv5","TT12.d","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-2.2.1"],actIds:["4b1c6c"],all:[],any:[],none:["unique-frame-title"],reviewOnFail:!0},{id:"frame-title",impact:"serious",selector:"frame, iframe",matches:"no-negative-tabindex-matches",tags:["cat.text-alternatives","wcag2a","wcag412","section508","section508.22.i","TTv5","TT12.d","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-2.1.1"],actIds:["cae760"],all:[],any:[{options:{attribute:"title"},id:"non-empty-title"},"aria-label","aria-labelledby","\
presentational-role"],none:[]},{id:"heading-order",impact:"moderate",selector:"h1, h2, h3, h4, h5, h6, [role=heading]",matches:"heading-matches",tags:["cat.semantics","best-practice"],all:[],any:["heading-order"],none:[]},{id:"hidden-content",impact:"minor",selector:"*",excludeHidden:!1,tags:["cat.structure","best-practice","experimental","review-item"],all:[],any:["hidden-content"],none:[]},{id:"html-has-lang",impact:"serious",selector:"html:not(html *)",matches:"is-initiator-matches",tags:["cat.language","wcag2a","wcag311","TTv5","TT11.a","EN-301-549","EN-9.3.1.1","ACT","RGAAv4","RGAA-8.3.1"],actIds:["b5c3f8"],all:[],any:[{options:{attributes:["lang","xml:lang"]},id:"has-lang"}],none:[]},{id:"html-lang-valid",impact:"serious",selector:'html[lang]:not([lang=""]):not(html *), html[xml\\\\:lang]:not([xml\\\\:lang=""]):not(html *)',tags:["cat.language","wcag2a","wcag311","TTv5","TT11.a","EN-301-549","EN-9.3.1.1","ACT","RGAAv4","RGAA-8.4.1"],actIds:["bf051a"],all:[],any:[],none:[{options:{att\
ributes:["lang","xml:lang"]},id:"valid-lang"}]},{id:"html-xml-lang-mismatch",impact:"moderate",selector:"html[lang][xml\\\\:lang]:not(html *)",matches:"xml-lang-mismatch-matches",tags:["cat.language","wcag2a","wcag311","EN-301-549","EN-9.3.1.1","ACT","RGAAv4","RGAA-8.3.1"],actIds:["5b7ae0"],all:["xml-lang-mismatch"],any:[],none:[]},{id:"identical-links-same-purpose",impact:"minor",selector:'a[href], area[href], [role="link"]',excludeHidden:!1,enabled:!1,matches:"identical-links-same-purpose-matches",tags:["cat.semantics","wcag2aaa","wcag249"],actIds:["b20e66"],all:["identical-links-same-purpose"],any:[],none:[]},{id:"image-alt",impact:"critical",selector:"img",matches:"no-explicit-name-required-matches",tags:["cat.text-alternatives","wcag2a","wcag111","section508","section508.22.a","TTv5","TT7.a","TT7.b","EN-301-549","EN-9.1.1.1","ACT","RGAAv4","RGAA-1.1.1"],actIds:["23a2a8"],all:[],any:["has-alt","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"presenta\
tional-role"],none:["alt-space-value"]},{id:"image-redundant-alt",impact:"minor",selector:"img",tags:["cat.text-alternatives","best-practice"],all:[],any:[],none:[{options:{parentSelector:"button, [role=button], a[href], p, li, td, th"},id:"duplicate-img-label"}]},{id:"input-button-name",impact:"critical",selector:'input[type="button"], input[type="submit"], input[type="reset"]',matches:"no-explicit-name-required-matches",tags:["cat.name-role-value","wcag2a","wcag412","section508","section508.22.a","TTv5","TT5.c","EN-301-549","EN-9.4.1.2","ACT","RGAAv4","RGAA-11.9.1"],actIds:["97a4e1"],all:[],any:["non-empty-if-present",{options:{attribute:"value"},id:"non-empty-value"},"aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"implicit-label","explicit-label","presentational-role"],none:[]},{id:"input-image-alt",impact:"critical",selector:'input[type="image"]',matches:"no-explicit-name-required-matches",tags:["cat.text-alternatives","wcag2a","wcag111","wcag412"\
,"section508","section508.22.a","TTv5","TT7.a","EN-301-549","EN-9.1.1.1","EN-9.4.1.2","ACT","RGAAv4","RGAA-1.1.3"],actIds:["59796f"],all:[],any:[{options:{attribute:"alt"},id:"non-empty-alt"},"aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"implicit-label","explicit-label"],none:[]},{id:"label-content-name-mismatch",impact:"serious",matches:"label-content-name-mismatch-matches",tags:["cat.semantics","wcag21a","wcag253","EN-301-549","EN-9.2.5.3","RGAAv4","RGAA-6.1.5","experimental"],actIds:["2ee8b8"],all:[],any:[{options:{pixelThreshold:.1,occurrenceThreshold:3},id:"label-content-name-mismatch"}],none:[]},{id:"label-title-only",impact:"serious",selector:"input, select, textarea",matches:"label-matches",tags:["cat.forms","best-practice"],all:[],any:[],none:["title-only"]},{id:"label",impact:"critical",selector:"input, textarea",matches:"label-matches",tags:["cat.forms","wcag2a","wcag412","section508","section508.22.n","TTv5","TT5.c","EN-301-549","EN-9.4.\
1.2","ACT","RGAAv4","RGAA-11.1.1"],actIds:["e086e5"],all:[],any:["implicit-label","explicit-label","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},{options:{attribute:"placeholder"},id:"non-empty-placeholder"},"presentational-role"],none:["hidden-explicit-label"]},{id:"landmark-banner-is-top-level",impact:"moderate",selector:"header:not([role]), [role=banner]",matches:"landmark-has-body-context-matches",tags:["cat.semantics","best-practice"],all:[],any:["landmark-is-top-level"],none:[]},{id:"landmark-complementary-is-top-level",impact:"moderate",selector:"aside:not([role]), [role=complementary]",tags:["cat.semantics","best-practice","deprecated"],enabled:!1,all:[],any:["landmark-is-top-level"],none:[]},{id:"landmark-contentinfo-is-top-level",impact:"moderate",selector:"footer:not([role]), [role=contentinfo]",matches:"landmark-has-body-context-matches",tags:["cat.semantics","best-practice"],all:[],any:["landmark-is-top-level"],none:[]},{id:"landmark-mai\
n-is-top-level",impact:"moderate",selector:"main:not([role]), [role=main]",tags:["cat.semantics","best-practice"],all:[],any:["landmark-is-top-level"],none:[]},{id:"landmark-no-duplicate-banner",impact:"moderate",selector:"header:not([role]), [role=banner]",tags:["cat.semantics","best-practice"],all:[],any:[{options:{selector:"header:not([role]), [role=banner]",role:"banner"},id:"page-no-duplicate-banner"}],none:[]},{id:"landmark-no-duplicate-contentinfo",impact:"moderate",selector:"footer:not([role]), [role=contentinfo]",tags:["cat.semantics","best-practice"],all:[],any:[{options:{selector:"footer:not([role]), [role=contentinfo]",role:"contentinfo"},id:"page-no-duplicate-contentinfo"}],none:[]},{id:"landmark-no-duplicate-main",impact:"moderate",selector:"main:not([role]), [role=main]",tags:["cat.semantics","best-practice"],all:[],any:[{options:{selector:"main:not([role]), [role='main']"},id:"page-no-duplicate-main"}],none:[]},{id:"landmark-one-main",impact:"moderate",selector:"html:no\
t(html *)",tags:["cat.semantics","best-practice"],all:[{options:{selector:"main:not([role]), [role='main']",passForModal:!0},id:"page-has-main"}],any:[],none:[]},{id:"landmark-unique",impact:"moderate",selector:"[role=banner], [role=complementary], [role=contentinfo], [role=main], [role=navigation], [role=region], [role=search], [role=form], form, footer, header, aside, main, nav, section",tags:["cat.semantics","best-practice"],matches:"landmark-unique-matches",all:[],any:["landmark-is-unique"],none:[]},{id:"link-in-text-block",impact:"serious",selector:"a[href], [role=link]",matches:"link-in-text-block-matches",excludeHidden:!1,tags:["cat.color","wcag2a","wcag141","TTv5","TT13.a","EN-301-549","EN-9.1.4.1","RGAAv4","RGAA-10.6.1"],all:[],any:[{options:{requiredContrastRatio:3,allowSameColor:!0},id:"link-in-text-block"},"link-in-text-block-style"],none:[]},{id:"link-name",impact:"serious",selector:"a[href]",tags:["cat.name-role-value","wcag2a","wcag244","wcag412","section508","section508\
.22.a","TTv5","TT6.a","EN-301-549","EN-9.2.4.4","EN-9.4.1.2","ACT","RGAAv4","RGAA-6.2.1"],actIds:["c487ae"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:["focusable-no-name"]},{id:"list",impact:"serious",selector:"ul, ol",matches:"no-role-matches",tags:["cat.structure","wcag2a","wcag131","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-9.3.1"],all:[],any:[],none:[{options:{validRoles:["listitem"],validNodeNames:["li"]},id:"only-listitems"}]},{id:"listitem",impact:"serious",selector:"li",matches:"no-role-matches",tags:["cat.structure","wcag2a","wcag131","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-9.3.1"],all:[],any:["listitem"],none:[]},{id:"marquee",impact:"serious",selector:"marquee",excludeHidden:!1,tags:["cat.parsing","wcag2a","wcag222","TTv5","TT2.b","EN-301-549","EN-9.2.2.2","RGAAv4","RGAA-13.8.1"],all:[],any:[],none:["is-on-screen"]},{id:"meta-refresh-no-exceptions",impact:"minor",selector:'meta[http-equiv="refresh"][\
content]',excludeHidden:!1,enabled:!1,tags:["cat.time-and-media","wcag2aaa","wcag224","wcag325"],actIds:["bisz58"],all:[],any:[{options:{minDelay:72e3,maxDelay:!1},id:"meta-refresh-no-exceptions"}],none:[]},{id:"meta-refresh",impact:"critical",selector:'meta[http-equiv="refresh"][content]',excludeHidden:!1,tags:["cat.time-and-media","wcag2a","wcag221","TTv5","TT8.a","EN-301-549","EN-9.2.2.1","RGAAv4","RGAA-13.1.2"],actIds:["bc659a","bisz58"],all:[],any:[{options:{minDelay:0,maxDelay:72e3},id:"meta-refresh"}],none:[]},{id:"meta-viewport-large",impact:"minor",selector:'meta[name="viewport"]',matches:"is-initiator-matches",excludeHidden:!1,tags:["cat.sensory-and-visual-cues","best-practice"],all:[],any:[{options:{scaleMinimum:5,lowerBound:2},id:"meta-viewport-large"}],none:[]},{id:"meta-viewport",impact:"moderate",selector:'meta[name="viewport"]',matches:"is-initiator-matches",excludeHidden:!1,tags:["cat.sensory-and-visual-cues","wcag2aa","wcag144","EN-301-549","EN-9.1.4.4","ACT","RGAAv4"\
,"RGAA-10.4.2"],actIds:["b4f0c3"],all:[],any:[{options:{scaleMinimum:2},id:"meta-viewport"}],none:[]},{id:"nested-interactive",impact:"serious",matches:"nested-interactive-matches",tags:["cat.keyboard","wcag2a","wcag412","TTv5","TT6.a","EN-301-549","EN-9.4.1.2","RGAAv4","RGAA-7.1.1"],actIds:["307n5z"],all:[],any:["no-focusable-content"],none:[]},{id:"no-autoplay-audio",impact:"moderate",excludeHidden:!1,selector:"audio[autoplay], video[autoplay]",matches:"no-autoplay-audio-matches",reviewOnFail:!0,tags:["cat.time-and-media","wcag2a","wcag142","TTv5","TT2.a","EN-301-549","EN-9.1.4.2","ACT","RGAAv4","RGAA-4.10.1"],actIds:["80f0bf"],preload:!0,all:[{options:{allowedDuration:3},id:"no-autoplay-audio"}],any:[],none:[]},{id:"object-alt",impact:"serious",selector:"object[data]",matches:"object-is-loaded-matches",tags:["cat.text-alternatives","wcag2a","wcag111","section508","section508.22.a","EN-301-549","EN-9.1.1.1","RGAAv4","RGAA-1.1.6"],actIds:["8fc3b6"],all:[],any:["aria-label","aria-label\
ledby",{options:{attribute:"title"},id:"non-empty-title"},"presentational-role"],none:[]},{id:"p-as-heading",impact:"serious",selector:"p",matches:"p-as-heading-matches",tags:["cat.semantics","wcag2a","wcag131","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-9.1.3","experimental"],all:[{options:{margins:[{weight:150,italic:!0},{weight:150,size:1.15},{italic:!0,size:1.15},{size:1.4}],passLength:1,failLength:.5},id:"p-as-heading"}],any:[],none:[]},{id:"page-has-heading-one",impact:"moderate",selector:"html:not(html *)",tags:["cat.semantics","best-practice"],all:[{options:{selector:"h1:not([role], [aria-level]), :is(h1, h2, h3, h4, h5, h6):not([role])[aria-level=1], [role=heading][aria-level=1]",passForModal:!0},id:"page-has-heading-one"}],any:[],none:[]},{id:"presentation-role-conflict",impact:"minor",selector:'img[alt=\\'\\'], [role="none"], [role="presentation"]',matches:"has-implicit-chromium-role-matches",tags:["cat.aria","best-practice","ACT"],actIds:["46ca7f"],all:[],any:[],none:["is-elemen\
t-focusable","has-global-aria-attribute"]},{id:"region",impact:"moderate",selector:"body *",tags:["cat.keyboard","best-practice","RGAAv4","RGAA-9.2.1"],all:[],any:[{options:{regionMatcher:"dialog, [role=dialog], [role=alertdialog], svg"},id:"region"}],none:[]},{id:"role-img-alt",impact:"serious",selector:"[role='img']:not(img, area, input, object)",matches:"html-namespace-matches",tags:["cat.text-alternatives","wcag2a","wcag111","section508","section508.22.a","TTv5","TT7.a","EN-301-549","EN-9.1.1.1","ACT","RGAAv4","RGAA-1.1.1"],actIds:["23a2a8"],all:[],any:["aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"scope-attr-valid",impact:"moderate",selector:"td[scope], th[scope]",tags:["cat.tables","best-practice"],all:["html5-scope",{options:{values:["row","col","rowgroup","colgroup"]},id:"scope-value"}],any:[],none:[]},{id:"scrollable-region-focusable",impact:"serious",selector:"*:not(select,textarea)",matches:"scrollable-region-focusable-match\
es",tags:["cat.keyboard","wcag2a","wcag211","wcag213","TTv5","TT4.a","EN-301-549","EN-9.2.1.1","EN-9.2.1.3","RGAAv4","RGAA-7.3.2"],actIds:["0ssw9k"],all:[],any:["focusable-content","focusable-element"],none:[]},{id:"select-name",impact:"critical",selector:"select",tags:["cat.forms","wcag2a","wcag412","section508","section508.22.n","TTv5","TT5.c","EN-301-549","EN-9.4.1.2","ACT","RGAAv4","RGAA-11.1.1"],actIds:["e086e5"],all:[],any:["implicit-label","explicit-label","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"},"presentational-role"],none:["hidden-explicit-label"]},{id:"server-side-image-map",impact:"minor",selector:"img[ismap]",tags:["cat.text-alternatives","wcag2a","wcag211","section508","section508.22.f","TTv5","TT4.a","EN-301-549","EN-9.2.1.1","RGAAv4","RGAA-1.1.4"],all:[],any:[],none:["exists"]},{id:"skip-link",impact:"moderate",selector:'a[href^="#"], a[href^="/#"]',matches:"skip-link-matches",tags:["cat.keyboard","best-practice","RGAAv4","RGAA-12\
.7.1"],all:[],any:["skip-link"],none:[]},{id:"summary-name",impact:"serious",selector:"summary",matches:"summary-interactive-matches",tags:["cat.name-role-value","wcag2a","wcag412","section508","section508.22.a","TTv5","TT6.a","EN-301-549","EN-9.4.1.2"],all:[],any:["has-visible-text","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"svg-img-alt",impact:"serious",selector:'[role="img"], [role="graphics-symbol"], svg[role="graphics-document"]',matches:"svg-namespace-matches",tags:["cat.text-alternatives","wcag2a","wcag111","section508","section508.22.a","TTv5","TT7.a","EN-301-549","EN-9.1.1.1","ACT","RGAAv4","RGAA-1.1.5"],actIds:["7d6734"],all:[],any:["svg-non-empty-title","aria-label","aria-labelledby",{options:{attribute:"title"},id:"non-empty-title"}],none:[]},{id:"tabindex",impact:"serious",selector:"[tabindex]",tags:["cat.keyboard","best-practice"],all:[],any:["tabindex"],none:[]},{id:"table-duplicate-name",impact:"minor",selector:"tabl\
e",tags:["cat.tables","best-practice","RGAAv4","RGAA-5.2.1"],all:[],any:[],none:["same-caption-summary"]},{id:"table-fake-caption",impact:"serious",selector:"table",matches:"data-table-matches",tags:["cat.tables","experimental","wcag2a","wcag131","section508","section508.22.g","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-5.4.1"],all:["caption-faked"],any:[],none:[]},{id:"target-size",impact:"serious",selector:"*",enabled:!1,matches:"widget-not-inline-matches",tags:["cat.sensory-and-visual-cues","wcag22aa","wcag258"],all:[],any:[{options:{minSize:24},id:"target-size"},{options:{minOffset:24},id:"target-offset"}],none:[]},{id:"td-has-header",impact:"critical",selector:"table",matches:"data-table-large-matches",tags:["cat.tables","experimental","wcag2a","wcag131","section508","section508.22.g","TTv5","TT14.b","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-5.7.4"],all:["td-has-header"],any:[],none:[]},{id:"td-headers-attr",impact:"serious",selector:"table",matches:"table-or-grid-role-matches",tags:[\
"cat.tables","wcag2a","wcag131","section508","section508.22.g","TTv5","TT14.b","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-5.7.4"],actIds:["a25f45"],all:["td-headers-attr"],any:[],none:[]},{id:"th-has-data-cells",impact:"serious",selector:"table",matches:"data-table-matches",tags:["cat.tables","wcag2a","wcag131","section508","section508.22.g","TTv5","TT14.b","EN-301-549","EN-9.1.3.1","RGAAv4","RGAA-5.7.1"],actIds:["d0f69e"],all:["th-has-data-cells"],any:[],none:[]},{id:"valid-lang",impact:"serious",selector:"[lang]:not(html), [xml\\\\:lang]:not(html)",tags:["cat.language","wcag2aa","wcag312","TTv5","TT11.b","EN-301-549","EN-9.3.1.2","ACT","RGAAv4","RGAA-8.8.1"],actIds:["de46e4"],all:[],any:[],none:[{options:{attributes:["lang","xml:lang"]},id:"valid-lang"}]},{id:"video-caption",impact:"critical",selector:"video",tags:["cat.text-alternatives","wcag2a","wcag122","section508","section508.22.a","TTv5","TT17.a","EN-301-549","EN-9.1.2.2","RGAAv4","RGAA-4.3.1"],actIds:["eac66b"],all:[],any:[],none\
:["caption"]}],checks:[{id:"abstractrole",evaluate:"abstractrole-evaluate"},{id:"aria-allowed-attr-elm",evaluate:"aria-allowed-attr-elm-evaluate"},{id:"aria-allowed-attr",evaluate:"aria-allowed-attr-evaluate",options:{validTreeRowAttrs:["aria-posinset","aria-setsize","aria-expanded","aria-level"]}},{id:"aria-allowed-role",evaluate:"aria-allowed-role-evaluate",options:{allowImplicit:!0,ignoredTags:[]}},{id:"aria-busy",evaluate:"aria-busy-evaluate",deprecated:!0},{id:"aria-conditional-attr",evaluate:"aria-conditional-attr-evaluate",options:{invalidTableRowAttrs:["aria-posinset","aria-setsize","aria-expanded","aria-level"]}},{id:"aria-errormessage",evaluate:"aria-errormessage-evaluate"},{id:"aria-hidden-body",evaluate:"aria-hidden-body-evaluate"},{id:"aria-level",evaluate:"aria-level-evaluate"},{id:"aria-prohibited-attr",evaluate:"aria-prohibited-attr-evaluate",options:{elementsAllowedAriaLabel:["applet","input"]}},{id:"aria-required-attr",evaluate:"aria-required-attr-evaluate"},{id:"aria\
-required-children",evaluate:"aria-required-children-evaluate",options:{reviewEmpty:["doc-bibliography","doc-endnotes","grid","list","listbox","menu","menubar","table","tablist","tree","treegrid","rowgroup"]}},{id:"aria-required-parent",evaluate:"aria-required-parent-evaluate",options:{ownGroupRoles:["listitem","treeitem"]}},{id:"aria-roledescription",evaluate:"aria-roledescription-evaluate",options:{supportedRoles:["button","img","checkbox","radio","combobox","menuitemcheckbox","menuitemradio"]}},{id:"aria-unsupported-attr",evaluate:"aria-unsupported-attr-evaluate"},{id:"aria-valid-attr-value",evaluate:"aria-valid-attr-value-evaluate",options:[]},{id:"aria-valid-attr",evaluate:"aria-valid-attr-evaluate",options:[]},{id:"braille-label-equivalent",evaluate:"braille-label-equivalent-evaluate"},{id:"braille-roledescription-equivalent",evaluate:"braille-roledescription-equivalent-evaluate"},{id:"deprecatedrole",evaluate:"deprecatedrole-evaluate"},{id:"fallbackrole",evaluate:"fallbackrole-e\
valuate"},{id:"has-global-aria-attribute",evaluate:"has-global-aria-attribute-evaluate"},{id:"has-widget-role",evaluate:"has-widget-role-evaluate",options:[]},{id:"invalidrole",evaluate:"invalidrole-evaluate"},{id:"is-element-focusable",evaluate:"is-element-focusable-evaluate"},{id:"no-implicit-explicit-label",evaluate:"no-implicit-explicit-label-evaluate"},{id:"unsupportedrole",evaluate:"unsupportedrole-evaluate"},{id:"valid-scrollable-semantics",evaluate:"valid-scrollable-semantics-evaluate",options:{roles:["tooltip"]}},{id:"color-contrast-enhanced",evaluate:"color-contrast-evaluate",options:{ignoreUnicode:!0,ignoreLength:!1,ignorePseudo:!1,boldValue:700,boldTextPt:14,largeTextPt:18,contrastRatio:{normal:{expected:7,minThreshold:4.5},large:{expected:4.5,minThreshold:3}},pseudoSizeThreshold:.25,shadowOutlineEmMax:.1,textStrokeEmMin:.03}},{id:"color-contrast",evaluate:"color-contrast-evaluate",options:{ignoreUnicode:!0,ignoreLength:!1,ignorePseudo:!1,boldValue:700,boldTextPt:14,largeTe\
xtPt:18,contrastRatio:{normal:{expected:4.5},large:{expected:3}},pseudoSizeThreshold:.25,shadowOutlineEmMax:.2,textStrokeEmMin:.03}},{id:"link-in-text-block-style",evaluate:"link-in-text-block-style-evaluate"},{id:"link-in-text-block",evaluate:"link-in-text-block-evaluate",options:{requiredContrastRatio:3,allowSameColor:!0}},{id:"autocomplete-appropriate",evaluate:"autocomplete-appropriate-evaluate",deprecated:!0},{id:"autocomplete-valid",evaluate:"autocomplete-valid-evaluate",options:{stateTerms:["none","false","true","disabled","enabled","undefined","null","xoff","xon"],ignoredValues:["text","pronouns","gender","message","content"]}},{id:"accesskeys",evaluate:"accesskeys-evaluate",after:"accesskeys-after"},{id:"focusable-content",evaluate:"focusable-content-evaluate"},{id:"focusable-disabled",evaluate:"focusable-disabled-evaluate"},{id:"focusable-element",evaluate:"focusable-element-evaluate"},{id:"focusable-modal-open",evaluate:"focusable-modal-open-evaluate"},{id:"focusable-no-name\
",evaluate:"focusable-no-name-evaluate"},{id:"focusable-not-tabbable",evaluate:"focusable-not-tabbable-evaluate"},{id:"frame-focusable-content",evaluate:"frame-focusable-content-evaluate"},{id:"landmark-is-top-level",evaluate:"landmark-is-top-level-evaluate"},{id:"no-focusable-content",evaluate:"no-focusable-content-evaluate"},{id:"page-has-heading-one",evaluate:"has-descendant-evaluate",after:"has-descendant-after",options:{selector:"h1:not([role], [aria-level]), :is(h1, h2, h3, h4, h5, h6):not([role])[aria-level=1], [role=heading][aria-level=1]",passForModal:!0}},{id:"page-has-main",evaluate:"has-descendant-evaluate",after:"has-descendant-after",options:{selector:"main:not([role]), [role='main']",passForModal:!0}},{id:"page-no-duplicate-banner",evaluate:"page-no-duplicate-evaluate",after:"page-no-duplicate-after",options:{selector:"header:not([role]), [role=banner]",role:"banner"}},{id:"page-no-duplicate-contentinfo",evaluate:"page-no-duplicate-evaluate",after:"page-no-duplicate-afte\
r",options:{selector:"footer:not([role]), [role=contentinfo]",role:"contentinfo"}},{id:"page-no-duplicate-main",evaluate:"page-no-duplicate-evaluate",after:"page-no-duplicate-after",options:{selector:"main:not([role]), [role='main']"}},{id:"tabindex",evaluate:"tabindex-evaluate"},{id:"alt-space-value",evaluate:"alt-space-value-evaluate"},{id:"duplicate-img-label",evaluate:"duplicate-img-label-evaluate",options:{parentSelector:"button, [role=button], a[href], p, li, td, th"}},{id:"explicit-label",evaluate:"explicit-evaluate"},{id:"help-same-as-label",evaluate:"help-same-as-label-evaluate"},{id:"hidden-explicit-label",evaluate:"hidden-explicit-label-evaluate"},{id:"implicit-label",evaluate:"implicit-evaluate"},{id:"label-content-name-mismatch",evaluate:"label-content-name-mismatch-evaluate",options:{pixelThreshold:.1,occurrenceThreshold:3}},{id:"multiple-label",evaluate:"multiple-label-evaluate"},{id:"title-only",evaluate:"title-only-evaluate"},{id:"landmark-is-unique",evaluate:"landmark\
-is-unique-evaluate",after:"landmark-is-unique-after"},{id:"has-lang",evaluate:"has-lang-evaluate",options:{attributes:["lang","xml:lang"]}},{id:"valid-lang",evaluate:"valid-lang-evaluate",options:{attributes:["lang","xml:lang"]}},{id:"xml-lang-mismatch",evaluate:"xml-lang-mismatch-evaluate"},{id:"dlitem",evaluate:"dlitem-evaluate"},{id:"listitem",evaluate:"listitem-evaluate"},{id:"only-dlitems",evaluate:"invalid-children-evaluate",options:{validRoles:["definition","term","listitem"],validNodeNames:["dt","dd"],divGroups:!0}},{id:"only-listitems",evaluate:"invalid-children-evaluate",options:{validRoles:["listitem"],validNodeNames:["li"]}},{id:"structured-dlitems",evaluate:"structured-dlitems-evaluate"},{id:"caption",evaluate:"caption-evaluate"},{id:"frame-tested",evaluate:"frame-tested-evaluate",after:"frame-tested-after",options:{isViolation:!1}},{id:"no-autoplay-audio",evaluate:"no-autoplay-audio-evaluate",options:{allowedDuration:3}},{id:"css-orientation-lock",evaluate:"css-orientati\
on-lock-evaluate",options:{degreeThreshold:2}},{id:"meta-viewport-large",evaluate:"meta-viewport-scale-evaluate",options:{scaleMinimum:5,lowerBound:2}},{id:"meta-viewport",evaluate:"meta-viewport-scale-evaluate",options:{scaleMinimum:2}},{id:"target-offset",evaluate:"target-offset-evaluate",options:{minOffset:24}},{id:"target-size",evaluate:"target-size-evaluate",options:{minSize:24}},{id:"header-present",evaluate:"has-descendant-evaluate",after:"has-descendant-after",options:{selector:":is(h1, h2, h3, h4, h5, h6):not([role]), [role=heading]"}},{id:"heading-order",evaluate:"heading-order-evaluate",after:"heading-order-after"},{id:"identical-links-same-purpose",evaluate:"identical-links-same-purpose-evaluate",after:"identical-links-same-purpose-after"},{id:"internal-link-present",evaluate:"internal-link-present-evaluate"},{id:"landmark",evaluate:"has-descendant-evaluate",options:{selector:"main, [role=main]"}},{id:"meta-refresh-no-exceptions",evaluate:"meta-refresh-evaluate",options:{mi\
nDelay:72e3,maxDelay:!1}},{id:"meta-refresh",evaluate:"meta-refresh-evaluate",options:{minDelay:0,maxDelay:72e3}},{id:"p-as-heading",evaluate:"p-as-heading-evaluate",options:{margins:[{weight:150,italic:!0},{weight:150,size:1.15},{italic:!0,size:1.15},{size:1.4}],passLength:1,failLength:.5}},{id:"region",evaluate:"region-evaluate",after:"region-after",options:{regionMatcher:"dialog, [role=dialog], [role=alertdialog], svg"}},{id:"skip-link",evaluate:"skip-link-evaluate"},{id:"unique-frame-title",evaluate:"unique-frame-title-evaluate",after:"unique-frame-title-after"},{id:"duplicate-id-active",evaluate:"duplicate-id-evaluate",after:"duplicate-id-after"},{id:"duplicate-id-aria",evaluate:"duplicate-id-evaluate",after:"duplicate-id-after"},{id:"duplicate-id",evaluate:"duplicate-id-evaluate",after:"duplicate-id-after"},{id:"aria-label",evaluate:"aria-label-evaluate"},{id:"aria-labelledby",evaluate:"aria-labelledby-evaluate"},{id:"avoid-inline-spacing",evaluate:"avoid-inline-spacing-evaluate"\
,options:{cssProperties:["line-height","letter-spacing","word-spacing"]}},{id:"button-has-visible-text",evaluate:"has-text-content-evaluate"},{id:"doc-has-title",evaluate:"doc-has-title-evaluate"},{id:"error-occurred",evaluate:"exists-evaluate"},{id:"exists",evaluate:"exists-evaluate"},{id:"has-alt",evaluate:"has-alt-evaluate"},{id:"has-visible-text",evaluate:"has-text-content-evaluate"},{id:"important-letter-spacing",evaluate:"inline-style-property-evaluate",options:{cssProperty:"letter-spacing",minValue:.12}},{id:"important-line-height",evaluate:"inline-style-property-evaluate",options:{multiLineOnly:!0,cssProperty:"line-height",minValue:1.5,normalValue:1}},{id:"important-word-spacing",evaluate:"inline-style-property-evaluate",options:{cssProperty:"word-spacing",minValue:.16}},{id:"is-on-screen",evaluate:"is-on-screen-evaluate"},{id:"non-empty-alt",evaluate:"attr-non-space-content-evaluate",options:{attribute:"alt"}},{id:"non-empty-if-present",evaluate:"non-empty-if-present-evaluate"\
},{id:"non-empty-placeholder",evaluate:"attr-non-space-content-evaluate",options:{attribute:"placeholder"}},{id:"non-empty-title",evaluate:"attr-non-space-content-evaluate",options:{attribute:"title"}},{id:"non-empty-value",evaluate:"attr-non-space-content-evaluate",options:{attribute:"value"}},{id:"presentational-role",evaluate:"presentational-role-evaluate"},{id:"role-none",evaluate:"matches-definition-evaluate",deprecated:!0,options:{matcher:{attributes:{role:"none"}}}},{id:"role-presentation",evaluate:"matches-definition-evaluate",deprecated:!0,options:{matcher:{attributes:{role:"presentation"}}}},{id:"svg-non-empty-title",evaluate:"svg-non-empty-title-evaluate"},{id:"caption-faked",evaluate:"caption-faked-evaluate"},{id:"html5-scope",evaluate:"html5-scope-evaluate"},{id:"same-caption-summary",evaluate:"same-caption-summary-evaluate"},{id:"scope-value",evaluate:"scope-value-evaluate",options:{values:["row","col","rowgroup","colgroup"]}},{id:"td-has-header",evaluate:"td-has-header-e\
valuate"},{id:"td-headers-attr",evaluate:"td-headers-attr-evaluate"},{id:"th-has-data-cells",evaluate:"th-has-data-cells-evaluate"},{id:"hidden-content",evaluate:"hidden-content-evaluate"}]})}("object"==typeof window?window:this);`;
  }
});

// core/lib/page-functions.js
function wrapRuntimeEvalErrorInBrowser(err) {
  if (!err || typeof err === "string") {
    err = new Error(err);
  }
  return {
    __failedInBrowser: true,
    name: err.name || "Error",
    message: err.message || "unknown error",
    stack: err.stack
  };
}
function getElementsInDocument2(selector) {
  const realMatchesFn = window.__ElementMatches || window.Element.prototype.matches;
  const results = [];
  const _findAllElements = /* @__PURE__ */ __name((nodes) => {
    for (const el of nodes) {
      if (!selector || realMatchesFn.call(el, selector)) {
        const matchedEl = el;
        results.push(matchedEl);
      }
      if (el.shadowRoot) {
        _findAllElements(el.shadowRoot.querySelectorAll("*"));
      }
    }
  }, "_findAllElements");
  _findAllElements(document.querySelectorAll("*"));
  return results;
}
function getOuterHTMLSnippet(element, ignoreAttrs = [], snippetCharacterLimit = 500) {
  const ATTRIBUTE_CHAR_LIMIT = 75;
  const autoFillIgnoreAttrs = ["autofill-information", "autofill-prediction", "title"];
  if (element instanceof ShadowRoot) {
    element = element.host;
  }
  try {
    const clone = element.cloneNode();
    const template = element.ownerDocument.createElement("template");
    template.content.append(clone);
    ignoreAttrs.concat(autoFillIgnoreAttrs).forEach((attribute) => {
      clone.removeAttribute(attribute);
    });
    let charCount = 0;
    for (const attributeName of clone.getAttributeNames()) {
      if (charCount > snippetCharacterLimit) {
        clone.removeAttribute(attributeName);
        continue;
      }
      let attributeValue = clone.getAttribute(attributeName);
      if (attributeValue === null) continue;
      let dirty = false;
      if (attributeName === "src" && "currentSrc" in element) {
        const elementWithSrc = (
          /** @type {HTMLImageElement|HTMLMediaElement} */
          element
        );
        const currentSrc = elementWithSrc.currentSrc;
        const documentHref = elementWithSrc.ownerDocument.location.href;
        if (new URL(attributeValue, documentHref).toString() !== currentSrc) {
          attributeValue = currentSrc;
          dirty = true;
        }
      }
      const truncatedString = truncate(attributeValue, ATTRIBUTE_CHAR_LIMIT);
      if (truncatedString !== attributeValue) dirty = true;
      attributeValue = truncatedString;
      if (dirty) {
        if (attributeName === "style") {
          const elementWithStyle = (
            /** @type {HTMLElement} */
            clone
          );
          elementWithStyle.style.cssText = attributeValue;
        } else {
          clone.setAttribute(attributeName, attributeValue);
        }
      }
      charCount += attributeName.length + attributeValue.length;
    }
    const reOpeningTag = /^[\s\S]*?>/;
    const [match] = clone.outerHTML.match(reOpeningTag) || [];
    if (match && charCount > snippetCharacterLimit) {
      return match.slice(0, match.length - 1) + " …>";
    }
    return match || "";
  } catch (_) {
    return `<${element.localName}>`;
  }
}
function computeBenchmarkIndex() {
  function benchmarkIndexGC() {
    const start = Date.now();
    let iterations = 0;
    while (Date.now() - start < 500) {
      let s = "";
      for (let j = 0; j < 1e4; j++) s += "a";
      if (s.length === 1) throw new Error("will never happen, but prevents compiler optimizations");
      iterations++;
    }
    const durationInSeconds = (Date.now() - start) / 1e3;
    return Math.round(iterations / 10 / durationInSeconds);
  }
  __name(benchmarkIndexGC, "benchmarkIndexGC");
  function benchmarkIndexNoGC() {
    const arrA = [];
    const arrB = [];
    for (let i = 0; i < 1e5; i++) arrA[i] = arrB[i] = i;
    const start = Date.now();
    let iterations = 0;
    while (iterations % 10 !== 0 || Date.now() - start < 500) {
      const src = iterations % 2 === 0 ? arrA : arrB;
      const tgt = iterations % 2 === 0 ? arrB : arrA;
      for (let j = 0; j < src.length; j++) tgt[j] = src[j];
      iterations++;
    }
    const durationInSeconds = (Date.now() - start) / 1e3;
    return Math.round(iterations / 10 / durationInSeconds);
  }
  __name(benchmarkIndexNoGC, "benchmarkIndexNoGC");
  return (benchmarkIndexGC() + benchmarkIndexNoGC()) / 2;
}
function getNodePath(node) {
  const isShadowRoot = /* @__PURE__ */ __name((node2) => node2.nodeType === Node.DOCUMENT_FRAGMENT_NODE, "isShadowRoot");
  const getNodeParent = /* @__PURE__ */ __name((node2) => isShadowRoot(node2) ? node2.host : node2.parentNode, "getNodeParent");
  function getNodeIndex(node2) {
    if (isShadowRoot(node2)) {
      return "a";
    }
    let index = 0;
    let prevNode;
    while (prevNode = node2.previousSibling) {
      node2 = prevNode;
      if (node2.nodeType === Node.TEXT_NODE && (node2.nodeValue || "").trim().length === 0) continue;
      index++;
    }
    return index;
  }
  __name(getNodeIndex, "getNodeIndex");
  let currentNode = node;
  const path7 = [];
  while (currentNode && getNodeParent(currentNode)) {
    const index = getNodeIndex(currentNode);
    path7.push([index, currentNode.nodeName]);
    currentNode = getNodeParent(currentNode);
  }
  path7.reverse();
  return path7.join(",");
}
function getNodeSelector(element) {
  function getSelectorPart(element2) {
    let part = element2.tagName.toLowerCase();
    if (element2.id) {
      part += "#" + element2.id;
    } else if (element2.classList.length > 0) {
      part += "." + element2.classList[0];
    }
    return part;
  }
  __name(getSelectorPart, "getSelectorPart");
  const parts = [];
  while (parts.length < 4) {
    parts.unshift(getSelectorPart(element));
    if (!element.parentElement) {
      break;
    }
    element = element.parentElement;
    if (element.tagName === "HTML") {
      break;
    }
  }
  return parts.join(" > ");
}
function isPositionFixed(element) {
  function getStyleAttrValue(element2, attr) {
    return element2.style[attr] || window.getComputedStyle(element2)[attr];
  }
  __name(getStyleAttrValue, "getStyleAttrValue");
  const htmlEl = document.querySelector("html");
  if (!htmlEl) throw new Error("html element not found in document");
  if (htmlEl.scrollHeight <= htmlEl.clientHeight || !["scroll", "auto", "visible"].includes(getStyleAttrValue(htmlEl, "overflowY"))) {
    return false;
  }
  let currentEl = element;
  while (currentEl) {
    const position = getStyleAttrValue(currentEl, "position");
    if (position === "fixed" || position === "sticky") {
      return true;
    }
    currentEl = currentEl.parentElement;
  }
  return false;
}
function getNodeLabel(element) {
  const tagName = element.tagName.toLowerCase();
  if (tagName !== "html" && tagName !== "body") {
    const nodeLabel = element instanceof HTMLElement && element.innerText || element.getAttribute("alt") || element.getAttribute("aria-label");
    if (nodeLabel) {
      return truncate(nodeLabel, 80);
    } else {
      const nodeToUseForLabel = element.querySelector("[alt], [aria-label]");
      if (nodeToUseForLabel) {
        return getNodeLabel(nodeToUseForLabel);
      }
    }
  }
  return null;
}
function getBoundingClientRect(element) {
  const realBoundingClientRect = window.__HTMLElementBoundingClientRect || window.HTMLElement.prototype.getBoundingClientRect;
  const rect = realBoundingClientRect.call(element);
  return {
    top: Math.round(rect.top),
    bottom: Math.round(rect.bottom),
    left: Math.round(rect.left),
    right: Math.round(rect.right),
    width: Math.round(rect.width),
    height: Math.round(rect.height)
  };
}
function wrapRequestIdleCallback(cpuSlowdownMultiplier) {
  const safetyAllowanceMs = 10;
  const maxExecutionTimeMs = Math.floor((50 - safetyAllowanceMs) / cpuSlowdownMultiplier);
  const nativeRequestIdleCallback = window.requestIdleCallback;
  window.requestIdleCallback = (cb, options) => {
    const cbWrap = /* @__PURE__ */ __name((deadline) => {
      const start = Date.now();
      deadline.__timeRemaining = deadline.timeRemaining;
      deadline.timeRemaining = () => {
        const timeRemaining = deadline.__timeRemaining();
        return Math.min(
          timeRemaining,
          Math.max(0, maxExecutionTimeMs - (Date.now() - start))
        );
      };
      deadline.timeRemaining.toString = () => {
        return "function timeRemaining() { [native code] }";
      };
      cb(deadline);
    }, "cbWrap");
    return nativeRequestIdleCallback(cbWrap, options);
  };
  window.requestIdleCallback.toString = () => {
    return "function requestIdleCallback() { [native code] }";
  };
}
function getNodeDetails2(node) {
  if (!window.__lighthouseNodesDontTouchOrAllVarianceGoesAway) {
    window.__lighthouseNodesDontTouchOrAllVarianceGoesAway = /* @__PURE__ */ new Map();
  }
  let elem = node.nodeType === Node.ELEMENT_NODE ? node : node.parentElement;
  if (!elem && node instanceof ShadowRoot) {
    elem = node.host;
  }
  if (!elem) return null;
  const element = (
    /** @type {Element} */
    elem
  );
  const selector = getNodeSelector(element);
  let lhId = window.__lighthouseNodesDontTouchOrAllVarianceGoesAway.get(element);
  if (!lhId) {
    lhId = [
      window.__lighthouseExecutionContextUniqueIdentifier === void 0 ? "page" : window.__lighthouseExecutionContextUniqueIdentifier,
      window.__lighthouseNodesDontTouchOrAllVarianceGoesAway.size,
      element.tagName
    ].join("-");
    window.__lighthouseNodesDontTouchOrAllVarianceGoesAway.set(element, lhId);
  }
  const details = {
    lhId,
    devtoolsNodePath: getNodePath(element),
    selector,
    boundingRect: getBoundingClientRect(element),
    snippet: getOuterHTMLSnippet(element),
    nodeLabel: getNodeLabel(element) || selector
  };
  return details;
}
function truncate(string, characterLimit) {
  return Util.truncate(string, characterLimit);
}
function isBundledEnvironment() {
  if (global.isDevtools || global.isLightrider) return true;
  const require5 = createRequire({ url: "core/lib/page-functions.js" }.url);
  try {
    require5.resolve("lighthouse-logger");
    return false;
  } catch (err) {
    return true;
  }
}
function createEsbuildFunctionWrapper() {
  if (!isBundledEnvironment()) {
    return "";
  }
  const functionAsString = (() => {
    const a = /* @__PURE__ */ __name(() => {
    }, "a");
  }).toString().replace("/* @__PURE__ */", "");
  const functionStringMatch = functionAsString.match(/=\s*([\w_]+)\(/);
  if (!functionStringMatch) {
    throw new Error("Could not determine esbuild function wrapper name");
  }
  const esbuildFunctionWrapper = /* @__PURE__ */ __name((fn, value) => Object.defineProperty(fn, "name", { value, configurable: true }), "esbuildFunctionWrapper");
  const wrapperFnName = functionStringMatch[1];
  return `let ${wrapperFnName}=${esbuildFunctionWrapper}`;
}
function getRuntimeFunctionName(fn) {
  const match = fn.toString().match(/function ([\w$]+)/);
  if (!match) throw new Error(`could not find function name for: ${fn}`);
  return match[1];
}
var esbuildFunctionWrapperString, names, getNodeLabelRawString, getOuterHTMLSnippetRawString, getNodeDetailsRawString, pageFunctions;
var init_page_functions = __esm({
  "core/lib/page-functions.js"() {
    "use strict";
    init_process_global();
    init_module();
    init_util();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(wrapRuntimeEvalErrorInBrowser, "wrapRuntimeEvalErrorInBrowser");
    __name(getElementsInDocument2, "getElementsInDocument");
    __name(getOuterHTMLSnippet, "getOuterHTMLSnippet");
    __name(computeBenchmarkIndex, "computeBenchmarkIndex");
    __name(getNodePath, "getNodePath");
    __name(getNodeSelector, "getNodeSelector");
    __name(isPositionFixed, "isPositionFixed");
    __name(getNodeLabel, "getNodeLabel");
    __name(getBoundingClientRect, "getBoundingClientRect");
    __name(wrapRequestIdleCallback, "wrapRequestIdleCallback");
    __name(getNodeDetails2, "getNodeDetails");
    __name(truncate, "truncate");
    __name(isBundledEnvironment, "isBundledEnvironment");
    esbuildFunctionWrapperString = createEsbuildFunctionWrapper();
    __name(createEsbuildFunctionWrapper, "createEsbuildFunctionWrapper");
    __name(getRuntimeFunctionName, "getRuntimeFunctionName");
    names = {
      truncate: getRuntimeFunctionName(truncate),
      getNodeLabel: getRuntimeFunctionName(getNodeLabel),
      getOuterHTMLSnippet: getRuntimeFunctionName(getOuterHTMLSnippet),
      getNodeDetails: getRuntimeFunctionName(getNodeDetails2)
    };
    truncate.toString = () => `function ${names.truncate}(string, characterLimit) {
  const Util = { ${Util.truncate} };
  return Util.truncate(string, characterLimit);
}`;
    getNodeLabelRawString = getNodeLabel.toString();
    getNodeLabel.toString = () => `function ${names.getNodeLabel}(element) {
  ${truncate};
  return (${getNodeLabelRawString})(element);
}`;
    getOuterHTMLSnippetRawString = getOuterHTMLSnippet.toString();
    getOuterHTMLSnippet.toString = () => `function ${names.getOuterHTMLSnippet}(element, ignoreAttrs = [], snippetCharacterLimit = 500) {
  ${truncate};
  return (${getOuterHTMLSnippetRawString})(element, ignoreAttrs, snippetCharacterLimit);
}`;
    getNodeDetailsRawString = getNodeDetails2.toString();
    getNodeDetails2.toString = () => `function ${names.getNodeDetails}(element) {
  ${truncate};
  ${getNodePath};
  ${getNodeSelector};
  ${getBoundingClientRect};
  ${getOuterHTMLSnippetRawString};
  ${getNodeLabelRawString};
  return (${getNodeDetailsRawString})(element);
}`;
    pageFunctions = {
      wrapRuntimeEvalErrorInBrowser,
      getElementsInDocument: getElementsInDocument2,
      getOuterHTMLSnippet,
      computeBenchmarkIndex,
      getNodeDetails: getNodeDetails2,
      getNodePath,
      getNodeSelector,
      getNodeLabel,
      isPositionFixed,
      wrapRequestIdleCallback,
      getBoundingClientRect,
      truncate,
      esbuildFunctionWrapperString,
      getRuntimeFunctionName
    };
  }
});

// core/gather/gatherers/accessibility.js
var accessibility_exports = {};
__export(accessibility_exports, {
  default: () => accessibility_default
});
async function runA11yChecks() {
  const axe = window.axe;
  const application = `lighthouse-${Math.random()}`;
  axe.configure({
    branding: {
      application
    },
    noHtml: true
  });
  const axeResults = await axe.run(document, {
    elementRef: true,
    runOnly: {
      type: "tag",
      values: [
        "wcag2a",
        "wcag2aa"
      ]
    },
    // resultTypes doesn't limit the output of the axeResults object. Instead, if it's defined,
    // some expensive element identification is done only for the respective types. https://github.com/dequelabs/axe-core/blob/f62f0cf18f7b69b247b0b6362cf1ae71ffbf3a1b/lib/core/reporters/helpers/process-aggregate.js#L61-L97
    resultTypes: ["violations", "inapplicable"],
    rules: {
      // Consider http://go/prcpg for expert review of the aXe rules.
      "accesskeys": { enabled: true },
      "area-alt": { enabled: false },
      "aria-allowed-role": { enabled: true },
      "aria-braille-equivalent": { enabled: false },
      "aria-conditional-attr": { enabled: true },
      "aria-deprecated-role": { enabled: true },
      "aria-dialog-name": { enabled: true },
      "aria-prohibited-attr": { enabled: true },
      "aria-roledescription": { enabled: false },
      "aria-treeitem-name": { enabled: true },
      "aria-text": { enabled: true },
      "autocomplete-valid": { enabled: true },
      "audio-caption": { enabled: false },
      "blink": { enabled: false },
      "duplicate-id": { enabled: false },
      "empty-heading": { enabled: true },
      "frame-focusable-content": { enabled: false },
      "frame-title-unique": { enabled: false },
      "heading-order": { enabled: true },
      "html-xml-lang-mismatch": { enabled: true },
      "identical-links-same-purpose": { enabled: true },
      "image-redundant-alt": { enabled: true },
      "input-button-name": { enabled: true },
      "label-content-name-mismatch": { enabled: true },
      "landmark-one-main": { enabled: true },
      "link-in-text-block": { enabled: true },
      "marquee": { enabled: false },
      "meta-viewport": { enabled: true },
      // https://github.com/dequelabs/axe-core/issues/2958
      "nested-interactive": { enabled: false },
      "no-autoplay-audio": { enabled: false },
      "presentation-role-conflict": { enabled: true },
      "role-img-alt": { enabled: false },
      "scrollable-region-focusable": { enabled: false },
      "select-name": { enabled: true },
      "server-side-image-map": { enabled: false },
      "skip-link": { enabled: true },
      // https://github.com/GoogleChrome/lighthouse/issues/16163
      "summary-name": { enabled: false },
      "svg-img-alt": { enabled: true },
      "tabindex": { enabled: true },
      "table-duplicate-name": { enabled: true },
      "table-fake-caption": { enabled: true },
      "target-size": { enabled: true },
      "td-has-header": { enabled: true },
      "aria-tab-name": { enabled: false }
      // TODO: consider adding.
    }
  });
  document.documentElement.scrollTop = 0;
  return {
    violations: axeResults.violations.map(createAxeRuleResultArtifact),
    incomplete: axeResults.incomplete.map(createAxeRuleResultArtifact),
    notApplicable: axeResults.inapplicable.map((result) => ({ id: result.id })),
    // FYI: inapplicable => notApplicable!
    passes: axeResults.passes.map((result) => ({ id: result.id })),
    version: axeResults.testEngine.version
  };
}
async function runA11yChecksAndResetScroll() {
  const originalScrollPosition = {
    x: window.scrollX,
    y: window.scrollY
  };
  try {
    return await runA11yChecks();
  } finally {
    window.scrollTo(originalScrollPosition.x, originalScrollPosition.y);
  }
}
function createAxeRuleResultArtifact(result) {
  const nodes = result.nodes.map((node) => {
    const { target, failureSummary, element } = node;
    const nodeDetails = getNodeDetails(
      /** @type {HTMLElement} */
      element
    );
    const relatedNodeElements = /* @__PURE__ */ new Set();
    const impactToNumber = /* @__PURE__ */ __name((impact) => [null, "minor", "moderate", "serious", "critical"].indexOf(impact), "impactToNumber");
    const checkResults = [...node.any, ...node.all, ...node.none].sort((a, b) => impactToNumber(b.impact) - impactToNumber(a.impact));
    for (const checkResult of checkResults) {
      for (const relatedNode of checkResult.relatedNodes || []) {
        const relatedElement = relatedNode.element;
        if (relatedNodeElements.size >= 3) break;
        if (!relatedElement) continue;
        if (element === relatedElement) continue;
        relatedNodeElements.add(relatedElement);
      }
    }
    const relatedNodeDetails = [...relatedNodeElements].map(getNodeDetails);
    return {
      target,
      failureSummary,
      node: nodeDetails,
      relatedNodes: relatedNodeDetails
    };
  });
  const resultError = result.error;
  let error;
  if (resultError instanceof Error) {
    error = {
      name: resultError.name,
      message: resultError.message
    };
  }
  return {
    id: result.id,
    impact: result.impact || void 0,
    tags: result.tags,
    nodes,
    error,
    help: result.help,
    description: result.description
  };
}
var Accessibility, accessibility_default;
var init_accessibility = __esm({
  "core/gather/gatherers/accessibility.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    init_axe();
    init_page_functions();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(runA11yChecks, "runA11yChecks");
    __name(runA11yChecksAndResetScroll, "runA11yChecksAndResetScroll");
    __name(createAxeRuleResultArtifact, "createAxeRuleResultArtifact");
    Accessibility = class extends base_gatherer_default {
      static {
        __name(this, "Accessibility");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["snapshot", "navigation"]
      };
      static pageFns = {
        runA11yChecks,
        createAxeRuleResultArtifact
      };
      /**
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<LH.Artifacts.Accessibility>}
       */
      getArtifact(passContext) {
        const driver = passContext.driver;
        return driver.executionContext.evaluate(runA11yChecksAndResetScroll, {
          args: [],
          useIsolation: true,
          deps: [
            axeSource,
            pageFunctions.getNodeDetails,
            createAxeRuleResultArtifact,
            runA11yChecks
          ]
        });
      }
    };
    accessibility_default = Accessibility;
  }
});

// core/gather/gatherers/agentic/llms-txt.js
var llms_txt_exports = {};
__export(llms_txt_exports, {
  default: () => llms_txt_default
});
var LlmsTxt, llms_txt_default;
var init_llms_txt = __esm({
  "core/gather/gatherers/agentic/llms-txt.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    LlmsTxt = class extends base_gatherer_default {
      static {
        __name(this, "LlmsTxt");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["snapshot", "navigation"]
      };
      /**
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<LH.Artifacts['LlmsTxt']>}
       */
      async getArtifact(passContext) {
        const { finalDisplayedUrl } = passContext.baseArtifacts.URL;
        const llmUrl = new URL("/llms.txt", finalDisplayedUrl).href;
        return passContext.driver.fetcher.fetchResource(llmUrl).catch((err) => ({ status: null, content: null, errorMessage: err.message }));
      }
    };
    llms_txt_default = LlmsTxt;
  }
});

// core/gather/driver/dom.js
function handlePotentialMissingNodeError(err) {
  if (/No node.*found/.test(err.message) || /Node.*does not belong to the document/.test(err.message)) {
    return void 0;
  }
  throw err;
}
async function resolveNodeIdToObjectId(session, backendNodeId) {
  try {
    const resolveNodeResponse = await session.sendCommand("DOM.resolveNode", { backendNodeId });
    return resolveNodeResponse.object.objectId;
  } catch (err) {
    return handlePotentialMissingNodeError(err);
  }
}
async function resolveDevtoolsNodePathToObjectId(session, path7) {
  try {
    const { nodeId } = await session.sendCommand("DOM.pushNodeByPathToFrontend", { path: path7 });
    const { object: { objectId } } = await session.sendCommand("DOM.resolveNode", { nodeId });
    return objectId;
  } catch (err) {
    return handlePotentialMissingNodeError(err);
  }
}
var init_dom = __esm({
  "core/gather/driver/dom.js"() {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(handlePotentialMissingNodeError, "handlePotentialMissingNodeError");
    __name(resolveNodeIdToObjectId, "resolveNodeIdToObjectId");
    __name(resolveDevtoolsNodePathToObjectId, "resolveDevtoolsNodePathToObjectId");
  }
});

// core/gather/gatherers/anchor-elements.js
var anchor_elements_exports = {};
__export(anchor_elements_exports, {
  default: () => anchor_elements_default
});
function collectAnchorElements() {
  const resolveURLOrEmpty = /* @__PURE__ */ __name((url) => {
    try {
      return new URL(url, window.location.href).href;
    } catch (_) {
      return "";
    }
  }, "resolveURLOrEmpty");
  function getTruncatedOnclick(node) {
    const onclick = node.getAttribute("onclick") || "";
    return onclick.slice(0, 1024);
  }
  __name(getTruncatedOnclick, "getTruncatedOnclick");
  function getLangOfInnerText(node) {
    let curNodeLang = null;
    for (const child of node.querySelectorAll("*")) {
      if (!child.textContent) continue;
      const childLang = child.closest("[lang]")?.getAttribute("lang");
      if (!childLang) continue;
      if (!curNodeLang) {
        curNodeLang = childLang;
        continue;
      }
      if (curNodeLang.split("-")[0] !== childLang.split("-")[0]) {
        return null;
      }
    }
    return curNodeLang ?? node.closest("[lang]")?.getAttribute("lang") ?? null;
  }
  __name(getLangOfInnerText, "getLangOfInnerText");
  const anchorElements = getElementsInDocument("a");
  const langElements = getElementsInDocument("[lang]");
  const documentHasSingleLang = langElements.length === 1 && (langElements[0].nodeName === "BODY" || langElements[0].nodeName === "HTML");
  const singleLang = documentHasSingleLang ? langElements[0].getAttribute("lang") : null;
  return anchorElements.map((node) => {
    if (node instanceof HTMLAnchorElement) {
      return {
        href: node.href,
        rawHref: node.getAttribute("href") || "",
        onclick: getTruncatedOnclick(node),
        role: node.getAttribute("role") || "",
        name: node.name,
        text: node.innerText,
        // we don't want to return hidden text, so use innerText
        textLang: singleLang ?? getLangOfInnerText(node) ?? void 0,
        rel: node.rel,
        target: node.target,
        id: node.getAttribute("id") || "",
        attributeNames: node.getAttributeNames(),
        // @ts-expect-error - getNodeDetails put into scope via stringification
        node: getNodeDetails(node)
      };
    }
    return {
      href: resolveURLOrEmpty(node.href.baseVal),
      rawHref: node.getAttribute("href") || "",
      onclick: getTruncatedOnclick(node),
      role: node.getAttribute("role") || "",
      text: node.textContent || "",
      textLang: singleLang ?? getLangOfInnerText(node) ?? void 0,
      rel: "",
      target: node.target.baseVal || "",
      id: node.getAttribute("id") || "",
      attributeNames: node.getAttributeNames(),
      // @ts-expect-error - getNodeDetails put into scope via stringification
      node: getNodeDetails(node)
    };
  });
}
async function getEventListeners(session, devtoolsNodePath) {
  const objectId = await resolveDevtoolsNodePathToObjectId(session, devtoolsNodePath);
  if (!objectId) return [];
  const response = await session.sendCommand("DOMDebugger.getEventListeners", {
    objectId
  });
  return response.listeners.map(({ type }) => ({ type }));
}
var AnchorElements, anchor_elements_default;
var init_anchor_elements = __esm({
  "core/gather/gatherers/anchor-elements.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    init_page_functions();
    init_dom();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(collectAnchorElements, "collectAnchorElements");
    __name(getEventListeners, "getEventListeners");
    AnchorElements = class extends base_gatherer_default {
      static {
        __name(this, "AnchorElements");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["snapshot", "navigation"]
      };
      /**
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<LH.Artifacts['AnchorElements']>}
       */
      async getArtifact(passContext) {
        const session = passContext.driver.defaultSession;
        const anchors = await passContext.driver.executionContext.evaluate(collectAnchorElements, {
          args: [],
          useIsolation: true,
          deps: [
            pageFunctions.getElementsInDocument,
            pageFunctions.getNodeDetails
          ]
        });
        await session.sendCommand("DOM.enable");
        await session.sendCommand("DOM.getDocument", { depth: -1, pierce: true });
        const anchorsWithEventListeners = anchors.map((anchor) => {
          return getEventListeners(session, anchor.node.devtoolsNodePath).then((listeners) => {
            return {
              ...anchor,
              listeners
            };
          });
        });
        const result = await Promise.all(anchorsWithEventListeners);
        await session.sendCommand("DOM.disable");
        return result;
      }
    };
    anchor_elements_default = AnchorElements;
  }
});

// core/gather/gatherers/console-messages.js
var console_messages_exports = {};
__export(console_messages_exports, {
  default: () => console_messages_default
});
function remoteObjectToString(obj) {
  if (typeof obj.value !== "undefined" || obj.type === "undefined") {
    return String(obj.value);
  }
  if (typeof obj.description === "string" && obj.description !== obj.className) {
    return obj.description;
  }
  const type = obj.subtype || obj.type;
  const className = obj.className || "Object";
  return `[${type} ${className}]`;
}
var ConsoleMessages, console_messages_default;
var init_console_messages = __esm({
  "core/gather/gatherers/console-messages.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(remoteObjectToString, "remoteObjectToString");
    ConsoleMessages = class extends base_gatherer_default {
      static {
        __name(this, "ConsoleMessages");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["timespan", "navigation"]
      };
      constructor() {
        super();
        this._logEntries = [];
        this._onConsoleAPICalled = this.onConsoleAPICalled.bind(this);
        this._onExceptionThrown = this.onExceptionThrown.bind(this);
        this._onLogEntryAdded = this.onLogEntry.bind(this);
      }
      /**
       * Handles events for when a script invokes a console API.
       * @param {LH.Crdp.Runtime.ConsoleAPICalledEvent} event
       */
      onConsoleAPICalled(event) {
        const { type } = event;
        if (type !== "warning" && type !== "error") {
          return;
        }
        const args = event.args || [];
        const text = args.map(remoteObjectToString).join(" ");
        if (!text && !event.stackTrace) {
          return;
        }
        const { url, lineNumber, columnNumber } = event.stackTrace?.callFrames[0] || {};
        const consoleMessage = {
          eventType: "consoleAPI",
          source: type === "warning" ? "console.warn" : "console.error",
          level: type,
          text,
          stackTrace: event.stackTrace,
          timestamp: event.timestamp,
          url,
          lineNumber,
          columnNumber
        };
        this._logEntries.push(consoleMessage);
      }
      /**
       * Handles exception thrown events.
       * @param {LH.Crdp.Runtime.ExceptionThrownEvent} event
       */
      onExceptionThrown(event) {
        const text = event.exceptionDetails.exception ? event.exceptionDetails.exception.description : event.exceptionDetails.text;
        if (!text) {
          return;
        }
        const consoleMessage = {
          eventType: "exception",
          source: "exception",
          level: "error",
          text,
          stackTrace: event.exceptionDetails.stackTrace,
          timestamp: event.timestamp,
          url: event.exceptionDetails.url,
          scriptId: event.exceptionDetails.scriptId,
          lineNumber: event.exceptionDetails.lineNumber,
          columnNumber: event.exceptionDetails.columnNumber
        };
        this._logEntries.push(consoleMessage);
      }
      /**
       * Handles browser reports logged to the console, including interventions,
       * deprecations, violations, and more.
       * @param {LH.Crdp.Log.EntryAddedEvent} event
       */
      onLogEntry(event) {
        const { source, level, text, stackTrace, timestamp, url, lineNumber } = event.entry;
        const firstStackFrame = event.entry.stackTrace?.callFrames[0];
        this._logEntries.push({
          eventType: "protocolLog",
          source,
          level,
          text,
          stackTrace,
          timestamp,
          url,
          scriptId: firstStackFrame?.scriptId,
          lineNumber,
          columnNumber: firstStackFrame?.columnNumber
        });
      }
      /**
       * @param {LH.Gatherer.Context} passContext
       */
      async startInstrumentation(passContext) {
        const session = passContext.driver.defaultSession;
        session.on("Log.entryAdded", this._onLogEntryAdded);
        await session.sendCommand("Log.enable");
        await session.sendCommand("Log.startViolationsReport", {
          config: [{ name: "discouragedAPIUse", threshold: -1 }]
        });
        session.on("Runtime.consoleAPICalled", this._onConsoleAPICalled);
        session.on("Runtime.exceptionThrown", this._onExceptionThrown);
        await session.sendCommand("Runtime.enable");
      }
      /**
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<void>}
       */
      async stopInstrumentation({ driver }) {
        await driver.defaultSession.sendCommand("Log.stopViolationsReport");
        await driver.defaultSession.off("Log.entryAdded", this._onLogEntryAdded);
        await driver.defaultSession.sendCommand("Log.disable");
        await driver.defaultSession.off("Runtime.consoleAPICalled", this._onConsoleAPICalled);
        await driver.defaultSession.off("Runtime.exceptionThrown", this._onExceptionThrown);
        await driver.defaultSession.sendCommand("Runtime.disable");
      }
      /**
       * @return {Promise<LH.Artifacts['ConsoleMessages']>}
       */
      async getArtifact() {
        return this._logEntries;
      }
    };
    console_messages_default = ConsoleMessages;
  }
});

// core/gather/gatherers/devtools-log.js
var devtools_log_exports = {};
__export(devtools_log_exports, {
  DevtoolsMessageLog: () => DevtoolsMessageLog,
  default: () => devtools_log_default
});
var DevtoolsLog, DevtoolsMessageLog, devtools_log_default;
var init_devtools_log = __esm({
  "core/gather/gatherers/devtools-log.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    DevtoolsLog = class _DevtoolsLog extends base_gatherer_default {
      static {
        __name(this, "DevtoolsLog");
      }
      static symbol = /* @__PURE__ */ Symbol("DevtoolsLog");
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        symbol: _DevtoolsLog.symbol,
        supportedModes: ["timespan", "navigation"]
      };
      constructor() {
        super();
        this._messageLog = new DevtoolsMessageLog(/^(Page|Network|Target|Runtime)\./);
        this._onProtocolMessage = (e) => this._messageLog.record(e);
      }
      /**
       * @param {LH.Gatherer.Context} passContext
       */
      async startSensitiveInstrumentation({ driver }) {
        this._messageLog.reset();
        this._messageLog.beginRecording();
        driver.targetManager.on("protocolevent", this._onProtocolMessage);
        await driver.defaultSession.sendCommand("Page.enable");
      }
      /**
       * @param {LH.Gatherer.Context} passContext
       */
      async stopSensitiveInstrumentation({ driver }) {
        this._messageLog.endRecording();
        driver.targetManager.off("protocolevent", this._onProtocolMessage);
      }
      /**
       * @return {LH.Artifacts['DevtoolsLog']}
       */
      getDebugData() {
        return this._messageLog.messages;
      }
      /**
       * @return {Promise<LH.Artifacts['DevtoolsLog']>}
       */
      async getArtifact() {
        return this._messageLog.messages;
      }
    };
    DevtoolsMessageLog = class {
      static {
        __name(this, "DevtoolsMessageLog");
      }
      /**
       * @param {RegExp=} regexFilter
       */
      constructor(regexFilter) {
        this._filter = regexFilter;
        this._messages = [];
        this._isRecording = false;
      }
      /**
       * @return {LH.DevtoolsLog}
       */
      get messages() {
        return this._messages;
      }
      reset() {
        this._messages = [];
      }
      beginRecording() {
        this._isRecording = true;
      }
      endRecording() {
        this._isRecording = false;
      }
      /**
       * Records a message if method matches filter and recording has been started.
       * @param {LH.Protocol.RawEventMessage} message
       */
      record(message) {
        if (!this._isRecording) return;
        if (typeof message.method !== "string") return;
        if (this._filter && !this._filter.test(message.method)) return;
        this._messages.push(message);
      }
    };
    devtools_log_default = DevtoolsLog;
  }
});

// core/gather/gatherers/dobetterweb/doctype.js
var doctype_exports = {};
__export(doctype_exports, {
  default: () => doctype_default
});
function getDoctype() {
  if (!document.doctype) {
    return null;
  }
  const documentCompatMode = document.compatMode;
  const { name, publicId, systemId } = document.doctype;
  return { name, publicId, systemId, documentCompatMode };
}
var Doctype, doctype_default;
var init_doctype = __esm({
  "core/gather/gatherers/dobetterweb/doctype.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(getDoctype, "getDoctype");
    Doctype = class extends base_gatherer_default {
      static {
        __name(this, "Doctype");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["snapshot", "navigation"]
      };
      /**
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<LH.Artifacts['Doctype']>}
       */
      getArtifact(passContext) {
        const driver = passContext.driver;
        return driver.executionContext.evaluate(getDoctype, {
          args: [],
          useIsolation: true
        });
      }
    };
    doctype_default = Doctype;
  }
});

// core/gather/gatherers/image-elements.js
var image_elements_exports = {};
__export(image_elements_exports, {
  default: () => image_elements_default
});
function getClientRect(element) {
  const clientRect = element.getBoundingClientRect();
  return {
    // Just grab the DOMRect properties we want, excluding x/y/width/height
    top: clientRect.top,
    bottom: clientRect.bottom,
    left: clientRect.left,
    right: clientRect.right
  };
}
function getPosition(element, computedStyle) {
  if (element.parentElement && element.parentElement.tagName === "PICTURE") {
    const parentStyle = window.getComputedStyle(element.parentElement);
    return parentStyle.getPropertyValue("position");
  }
  return computedStyle.getPropertyValue("position");
}
function getHTMLImages(allElements) {
  const allImageElements = (
    /** @type {Array<HTMLImageElement>} */
    allElements.filter((element) => {
      return element.localName === "img";
    })
  );
  return allImageElements.map((element) => {
    const computedStyle = window.getComputedStyle(element);
    const isPicture = !!element.parentElement && element.parentElement.tagName === "PICTURE";
    const canTrustNaturalDimensions = !isPicture && !element.srcset;
    return {
      // currentSrc used over src to get the url as determined by the browser
      // after taking into account srcset/media/sizes/etc.
      src: element.currentSrc,
      srcset: element.srcset,
      displayedWidth: element.width,
      displayedHeight: element.height,
      clientRect: getClientRect(element),
      attributeWidth: element.getAttribute("width"),
      attributeHeight: element.getAttribute("height"),
      naturalDimensions: canTrustNaturalDimensions ? { width: element.naturalWidth, height: element.naturalHeight } : void 0,
      cssRules: void 0,
      // this will get overwritten below
      computedStyles: {
        position: getPosition(element, computedStyle),
        objectFit: computedStyle.getPropertyValue("object-fit"),
        imageRendering: computedStyle.getPropertyValue("image-rendering")
      },
      isCss: false,
      isPicture,
      loading: element.loading,
      isInShadowDOM: element.getRootNode() instanceof ShadowRoot,
      fetchPriority: element.fetchPriority,
      // @ts-expect-error - getNodeDetails put into scope via stringification
      node: getNodeDetails(element)
    };
  });
}
function getCSSImages(allElements) {
  const CSS_URL_REGEX = /^url\("([^"]+)"\)$/;
  const images = [];
  for (const element of allElements) {
    const style = window.getComputedStyle(element);
    if (!style.backgroundImage || !CSS_URL_REGEX.test(style.backgroundImage)) continue;
    const imageMatch = style.backgroundImage.match(CSS_URL_REGEX);
    const url = imageMatch[1];
    images.push({
      src: url,
      srcset: "",
      displayedWidth: element.clientWidth,
      displayedHeight: element.clientHeight,
      clientRect: getClientRect(element),
      attributeWidth: null,
      attributeHeight: null,
      naturalDimensions: void 0,
      cssEffectiveRules: void 0,
      computedStyles: {
        position: getPosition(element, style),
        objectFit: "",
        imageRendering: style.getPropertyValue("image-rendering")
      },
      isCss: true,
      isPicture: false,
      isInShadowDOM: element.getRootNode() instanceof ShadowRoot,
      // @ts-expect-error - getNodeDetails put into scope via stringification
      node: getNodeDetails(element)
    });
  }
  return images;
}
function collectImageElementInfo() {
  const allElements = getElementsInDocument();
  return getHTMLImages(allElements).concat(getCSSImages(allElements));
}
function determineNaturalSize(url) {
  return new Promise((resolve, reject) => {
    const img = new Image();
    img.addEventListener("error", (_) => reject(new Error("determineNaturalSize failed img load")));
    img.addEventListener("load", () => {
      resolve({
        naturalWidth: img.naturalWidth,
        naturalHeight: img.naturalHeight
      });
    });
    img.src = url;
  });
}
function findSizeDeclaration(rule, property) {
  if (!rule || !rule.cssProperties) return;
  const definedProp = rule.cssProperties.find(({ name }) => name === property);
  if (!definedProp) return;
  return definedProp.value;
}
function findMostSpecificMatchedCSSRule(matchedCSSRules = [], isDeclarationOfInterest) {
  let mostSpecificRule;
  for (let i = matchedCSSRules.length - 1; i >= 0; i--) {
    if (isDeclarationOfInterest(matchedCSSRules[i].rule.style)) {
      mostSpecificRule = matchedCSSRules[i].rule;
      break;
    }
  }
  if (mostSpecificRule) {
    return {
      type: "Regular",
      ...mostSpecificRule.style,
      parentRule: {
        origin: mostSpecificRule.origin,
        selectors: mostSpecificRule.selectorList.selectors
      }
    };
  }
}
function findMostSpecificCSSRule(matchedCSSRules, property) {
  const isDeclarationofInterest = /* @__PURE__ */ __name((declaration) => findSizeDeclaration(declaration, property), "isDeclarationofInterest");
  const rule = findMostSpecificMatchedCSSRule(matchedCSSRules, isDeclarationofInterest);
  if (!rule) return;
  return findSizeDeclaration(rule, property);
}
function getEffectiveSizingRule({ attributesStyle, inlineStyle, matchedCSSRules }, property) {
  const inlineRule = findSizeDeclaration(inlineStyle, property);
  if (inlineRule) return inlineRule;
  const attributeRule = findSizeDeclaration(attributesStyle, property);
  if (attributeRule) return attributeRule;
  const matchedRule = findMostSpecificCSSRule(matchedCSSRules, property);
  if (matchedRule) return matchedRule;
  return null;
}
function getPixelArea(element) {
  if (element.naturalDimensions) {
    return element.naturalDimensions.height * element.naturalDimensions.width;
  }
  return element.displayedHeight * element.displayedWidth;
}
var ImageElements, image_elements_default;
var init_image_elements = __esm({
  "core/gather/gatherers/image-elements.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_base_gatherer();
    init_page_functions();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(getClientRect, "getClientRect");
    __name(getPosition, "getPosition");
    __name(getHTMLImages, "getHTMLImages");
    __name(getCSSImages, "getCSSImages");
    __name(collectImageElementInfo, "collectImageElementInfo");
    __name(determineNaturalSize, "determineNaturalSize");
    __name(findSizeDeclaration, "findSizeDeclaration");
    __name(findMostSpecificMatchedCSSRule, "findMostSpecificMatchedCSSRule");
    __name(findMostSpecificCSSRule, "findMostSpecificCSSRule");
    __name(getEffectiveSizingRule, "getEffectiveSizingRule");
    __name(getPixelArea, "getPixelArea");
    ImageElements = class extends base_gatherer_default {
      static {
        __name(this, "ImageElements");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["snapshot", "timespan", "navigation"]
      };
      constructor() {
        super();
        this._naturalSizeCache = /* @__PURE__ */ new Map();
      }
      /**
       * @param {LH.Gatherer.Driver} driver
       * @param {LH.Artifacts.ImageElement} element
       */
      async fetchElementWithSizeInformation(driver, element) {
        const url = element.src;
        let size = this._naturalSizeCache.get(url);
        if (!size) {
          try {
            driver.defaultSession.setNextProtocolTimeout(250);
            size = await driver.executionContext.evaluate(determineNaturalSize, {
              args: [url],
              useIsolation: true
            });
            this._naturalSizeCache.set(url, size);
          } catch (_) {
          }
        }
        if (!size) return;
        element.naturalDimensions = { width: size.naturalWidth, height: size.naturalHeight };
      }
      /**
       * Images might be sized via CSS. In order to compute unsized-images failures, we need to collect
       * matched CSS rules to see if this is the case.
       * @url http://go/dwoqq (googlers only)
       * @param {LH.Gatherer.ProtocolSession} session
       * @param {string} devtoolsNodePath
       * @param {LH.Artifacts.ImageElement} element
       */
      async fetchSourceRules(session, devtoolsNodePath, element) {
        try {
          const { nodeId } = await session.sendCommand("DOM.pushNodeByPathToFrontend", {
            path: devtoolsNodePath
          });
          if (!nodeId) return;
          const matchedRules = await session.sendCommand("CSS.getMatchedStylesForNode", {
            nodeId
          });
          const width = getEffectiveSizingRule(matchedRules, "width");
          const height = getEffectiveSizingRule(matchedRules, "height");
          const aspectRatio2 = getEffectiveSizingRule(matchedRules, "aspect-ratio");
          element.cssEffectiveRules = { width, height, aspectRatio: aspectRatio2 };
        } catch (err) {
          if (/No node.*found/.test(err.message)) return;
          throw err;
        }
      }
      /**
       *
       * @param {LH.Gatherer.Driver} driver
       * @param {LH.Artifacts.ImageElement[]} elements
       */
      async collectExtraDetails(driver, elements) {
        let reachedGatheringBudget = false;
        setTimeout((_) => reachedGatheringBudget = true, 5e3);
        let skippedCount = 0;
        for (const element of elements) {
          if (reachedGatheringBudget) {
            skippedCount++;
            continue;
          }
          if (!element.isInShadowDOM && !element.isCss) {
            await this.fetchSourceRules(driver.defaultSession, element.node.devtoolsNodePath, element);
          }
          if (element.isPicture || element.isCss || element.srcset) {
            await this.fetchElementWithSizeInformation(driver, element);
          }
        }
        if (reachedGatheringBudget) {
          lighthouse_logger_default.warn("ImageElements", `Reached gathering budget of 5s. Skipped extra details for ${skippedCount}/${elements.length}`);
        }
      }
      /**
       * @param {LH.Gatherer.Context} context
       * @return {Promise<LH.Artifacts['ImageElements']>}
       */
      async getArtifact(context) {
        const session = context.driver.defaultSession;
        const executionContext = context.driver.executionContext;
        const elements = await executionContext.evaluate(collectImageElementInfo, {
          args: [],
          useIsolation: true,
          deps: [
            pageFunctions.getElementsInDocument,
            pageFunctions.getBoundingClientRect,
            pageFunctions.getNodeDetails,
            getClientRect,
            getPosition,
            getHTMLImages,
            getCSSImages
          ]
        });
        await Promise.all([
          session.sendCommand("DOM.enable"),
          session.sendCommand("CSS.enable"),
          session.sendCommand("DOM.getDocument", { depth: -1, pierce: true })
        ]);
        elements.sort((a, b) => getPixelArea(b) - getPixelArea(a));
        await this.collectExtraDetails(context.driver, elements);
        await Promise.all([
          session.sendCommand("DOM.disable"),
          session.sendCommand("CSS.disable")
        ]);
        return elements;
      }
    };
    image_elements_default = ImageElements;
  }
});

// core/gather/gatherers/inputs.js
var inputs_exports = {};
__export(inputs_exports, {
  default: () => inputs_default
});
function collectElements() {
  const inputArtifacts = [];
  const formElToArtifact = /* @__PURE__ */ new Map();
  const labelElToArtifact = /* @__PURE__ */ new Map();
  const formEls = getElementsInDocument("form");
  for (const formEl of formEls) {
    formElToArtifact.set(formEl, {
      id: formEl.id,
      name: formEl.name,
      autocomplete: formEl.autocomplete,
      // @ts-expect-error - getNodeDetails put into scope via stringification
      node: getNodeDetails(formEl),
      webMcpToolname: formEl.getAttribute("toolname"),
      webMcpTooldescription: formEl.getAttribute("tooldescription")
    });
  }
  const labelEls = getElementsInDocument("label");
  for (const labelEl of labelEls) {
    labelElToArtifact.set(labelEl, {
      for: labelEl.htmlFor,
      // @ts-expect-error - getNodeDetails put into scope via stringification
      node: getNodeDetails(labelEl)
    });
  }
  const inputEls = getElementsInDocument("textarea, input, select");
  for (const inputEl of inputEls) {
    const parentFormEl = inputEl.form;
    const parentFormIndex = parentFormEl ? [...formElToArtifact.keys()].indexOf(parentFormEl) : void 0;
    const labelIndices = [...inputEl.labels || []].map((labelEl) => {
      return [...labelElToArtifact.keys()].indexOf(labelEl);
    });
    let preventsPaste;
    if (!inputEl.readOnly) {
      preventsPaste = !inputEl.dispatchEvent(new ClipboardEvent("paste", { cancelable: true }));
    }
    inputArtifacts.push({
      parentFormIndex,
      labelIndices,
      id: inputEl.id,
      name: inputEl.name,
      type: inputEl.type,
      placeholder: inputEl instanceof HTMLSelectElement ? void 0 : inputEl.placeholder,
      autocomplete: {
        property: inputEl.autocomplete,
        attribute: inputEl.getAttribute("autocomplete"),
        // Requires `--enable-features=AutofillShowTypePredictions`.
        prediction: inputEl.getAttribute("autofill-prediction")
      },
      preventsPaste,
      // @ts-expect-error - getNodeDetails put into scope via stringification
      node: getNodeDetails(inputEl)
    });
  }
  return {
    inputs: inputArtifacts,
    forms: [...formElToArtifact.values()],
    labels: [...labelElToArtifact.values()]
  };
}
var Inputs, inputs_default;
var init_inputs = __esm({
  "core/gather/gatherers/inputs.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    init_page_functions();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(collectElements, "collectElements");
    Inputs = class extends base_gatherer_default {
      static {
        __name(this, "Inputs");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["snapshot", "navigation"]
      };
      /**
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<LH.Artifacts['Inputs']>}
       */
      async getArtifact(passContext) {
        return passContext.driver.executionContext.evaluate(collectElements, {
          args: [],
          useIsolation: true,
          deps: [
            pageFunctions.getElementsInDocument,
            pageFunctions.getNodeDetails
          ]
        });
      }
    };
    inputs_default = Inputs;
  }
});

// core/gather/gatherers/inspector-issues.js
var inspector_issues_exports = {};
__export(inspector_issues_exports, {
  default: () => inspector_issues_default
});
var InspectorIssues, inspector_issues_default;
var init_inspector_issues = __esm({
  "core/gather/gatherers/inspector-issues.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    init_network_records();
    init_devtools_log();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    InspectorIssues = class extends base_gatherer_default {
      static {
        __name(this, "InspectorIssues");
      }
      /** @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} */
      meta = {
        supportedModes: ["timespan", "navigation"],
        dependencies: { DevtoolsLog: devtools_log_default.symbol }
      };
      constructor() {
        super();
        this._issues = [];
        this._onIssueAdded = this.onIssueAdded.bind(this);
      }
      /**
       * @param {LH.Crdp.Audits.IssueAddedEvent} entry
       */
      onIssueAdded(entry) {
        this._issues.push(entry.issue);
      }
      /**
       * @param {LH.Gatherer.Context} context
       */
      async startInstrumentation(context) {
        const session = context.driver.defaultSession;
        session.on("Audits.issueAdded", this._onIssueAdded);
        await session.sendCommand("Audits.enable");
      }
      /**
       * @param {LH.Gatherer.Context} context
       */
      async stopInstrumentation(context) {
        const session = context.driver.defaultSession;
        session.off("Audits.issueAdded", this._onIssueAdded);
        await session.sendCommand("Audits.disable");
      }
      /**
       * @param {LH.Gatherer.Context<'DevtoolsLog'>} context
       * @return {Promise<LH.Artifacts.InspectorIssues>}
       */
      async getArtifact(context) {
        const devtoolsLog = context.dependencies.DevtoolsLog;
        const networkRecords = await NetworkRecordsComputed.request(devtoolsLog, context);
        const artifact = {};
        for (const issue of this._issues) {
          const detailsKey = (
            /** @type {keyof LH.Crdp.Audits.InspectorIssueDetails} */
            Object.keys(issue.details)[0]
          );
          const details = issue.details[detailsKey];
          if (!details) {
            continue;
          }
          const artifactKey = (
            /** @type {LH.Artifacts.InspectorIssuesKeyToArtifactKey<typeof detailsKey>} */
            detailsKey.replace("Details", "")
          );
          const requestId = "request" in details && details.request && details.request.requestId;
          if (requestId) {
            if (networkRecords.find((req) => req.requestId === requestId)) {
              if (!artifact[artifactKey]) {
                artifact[artifactKey] = [];
              }
              artifact[artifactKey].push(details);
            }
          } else {
            if (!artifact[artifactKey]) {
              artifact[artifactKey] = [];
            }
            artifact[artifactKey].push(details);
          }
        }
        return artifact;
      }
    };
    inspector_issues_default = InspectorIssues;
  }
});

// node_modules/http-link-header/lib/link.js
var require_link = __commonJS({
  "node_modules/http-link-header/lib/link.js"(exports2, module2) {
    "use strict";
    init_process_global();
    var COMPATIBLE_ENCODING_PATTERN = /^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i;
    var WS_TRIM_PATTERN = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
    var WS_CHAR_PATTERN = /\s|\uFEFF|\xA0/;
    var WS_FOLD_PATTERN = /\r?\n[\x20\x09]+/g;
    var DELIMITER_PATTERN = /[;,"]/;
    var WS_DELIMITER_PATTERN = /[;,"]|\s/;
    var TOKEN_PATTERN = /^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/;
    var STATE = {
      IDLE: 1 << 0,
      URI: 1 << 1,
      ATTR: 1 << 2
    };
    function trim(value) {
      return value.replace(WS_TRIM_PATTERN, "");
    }
    __name(trim, "trim");
    function hasWhitespace(value) {
      return WS_CHAR_PATTERN.test(value);
    }
    __name(hasWhitespace, "hasWhitespace");
    function skipWhitespace(value, offset) {
      while (hasWhitespace(value[offset])) {
        offset++;
      }
      return offset;
    }
    __name(skipWhitespace, "skipWhitespace");
    function needsQuotes(value) {
      return WS_DELIMITER_PATTERN.test(value) || !TOKEN_PATTERN.test(value);
    }
    __name(needsQuotes, "needsQuotes");
    function shallowCompareObjects(object1, object2) {
      return Object.keys(object1).length === Object.keys(object2).length && Object.keys(object1).every(
        (key) => key in object2 && object1[key] === object2[key]
      );
    }
    __name(shallowCompareObjects, "shallowCompareObjects");
    var Link = class _Link {
      static {
        __name(this, "Link");
      }
      /**
       * Link
       * @constructor
       * @param {String} [value]
       * @returns {Link}
       */
      constructor(value) {
        this.refs = [];
        if (value) {
          this.parse(value);
        }
      }
      /**
       * Get refs with given relation type
       * @param {String} value
       * @returns {Array<Object>}
       */
      rel(value) {
        var links = [];
        var type = value.toLowerCase();
        for (var i = 0; i < this.refs.length; i++) {
          if (this.refs[i].rel.toLowerCase() === type) {
            links.push(this.refs[i]);
          }
        }
        return links;
      }
      /**
       * Get refs where given attribute has a given value
       * @param {String} attr
       * @param {String} value
       * @returns {Array<Object>}
       */
      get(attr, value) {
        attr = attr.toLowerCase();
        var links = [];
        for (var i = 0; i < this.refs.length; i++) {
          if (this.refs[i][attr] === value) {
            links.push(this.refs[i]);
          }
        }
        return links;
      }
      /** Sets a reference. */
      set(link) {
        this.refs.push(link);
        return this;
      }
      /**
       * Sets a reference if a reference with similar properties isn’t already set.
       */
      setUnique(link) {
        if (!this.refs.some((ref) => shallowCompareObjects(ref, link))) {
          this.refs.push(link);
        }
        return this;
      }
      has(attr, value) {
        attr = attr.toLowerCase();
        for (var i = 0; i < this.refs.length; i++) {
          if (this.refs[i][attr] === value) {
            return true;
          }
        }
        return false;
      }
      parse(value, offset) {
        offset = offset || 0;
        value = offset ? value.slice(offset) : value;
        value = trim(value).replace(WS_FOLD_PATTERN, "");
        var state = STATE.IDLE;
        var length = value.length;
        var offset = 0;
        var ref = null;
        while (offset < length) {
          if (state === STATE.IDLE) {
            if (hasWhitespace(value[offset])) {
              offset++;
              continue;
            } else if (value[offset] === "<") {
              if (ref != null) {
                ref.rel != null ? this.refs.push(..._Link.expandRelations(ref)) : this.refs.push(ref);
              }
              var end = value.indexOf(">", offset);
              if (end === -1) throw new Error("Expected end of URI delimiter at offset " + offset);
              ref = { uri: value.slice(offset + 1, end) };
              offset = end;
              state = STATE.URI;
            } else {
              throw new Error('Unexpected character "' + value[offset] + '" at offset ' + offset);
            }
            offset++;
          } else if (state === STATE.URI) {
            if (hasWhitespace(value[offset])) {
              offset++;
              continue;
            } else if (value[offset] === ";") {
              state = STATE.ATTR;
              offset++;
            } else if (value[offset] === ",") {
              state = STATE.IDLE;
              offset++;
            } else {
              throw new Error('Unexpected character "' + value[offset] + '" at offset ' + offset);
            }
          } else if (state === STATE.ATTR) {
            if (value[offset] === ";" || hasWhitespace(value[offset])) {
              offset++;
              continue;
            }
            var end = value.indexOf("=", offset);
            if (end === -1) end = value.indexOf(";", offset);
            if (end === -1) end = value.length;
            var attr = trim(value.slice(offset, end)).toLowerCase();
            var attrValue = "";
            offset = end + 1;
            offset = skipWhitespace(value, offset);
            if (value[offset] === '"') {
              offset++;
              while (offset < length) {
                if (value[offset] === '"') {
                  offset++;
                  break;
                }
                if (value[offset] === "\\") {
                  offset++;
                }
                attrValue += value[offset];
                offset++;
              }
            } else {
              var end = offset + 1;
              while (!DELIMITER_PATTERN.test(value[end]) && end < length) {
                end++;
              }
              attrValue = value.slice(offset, end);
              offset = end;
            }
            if (ref[attr] && _Link.isSingleOccurenceAttr(attr)) {
            } else if (attr[attr.length - 1] === "*") {
              ref[attr] = _Link.parseExtendedValue(attrValue);
            } else {
              attrValue = attr === "type" ? attrValue.toLowerCase() : attrValue;
              if (ref[attr] != null) {
                if (Array.isArray(ref[attr])) {
                  ref[attr].push(attrValue);
                } else {
                  ref[attr] = [ref[attr], attrValue];
                }
              } else {
                ref[attr] = attrValue;
              }
            }
            switch (value[offset]) {
              case ",":
                state = STATE.IDLE;
                break;
              case ";":
                state = STATE.ATTR;
                break;
            }
            offset++;
          } else {
            throw new Error('Unknown parser state "' + state + '"');
          }
        }
        if (ref != null) {
          ref.rel != null ? this.refs.push(..._Link.expandRelations(ref)) : this.refs.push(ref);
        }
        ref = null;
        return this;
      }
      toString() {
        var refs = [];
        var link = "";
        var ref = null;
        for (var i = 0; i < this.refs.length; i++) {
          ref = this.refs[i];
          link = Object.keys(this.refs[i]).reduce(function(link2, attr) {
            if (attr === "uri") return link2;
            return link2 + "; " + _Link.formatAttribute(attr, ref[attr]);
          }, "<" + ref.uri + ">");
          refs.push(link);
        }
        return refs.join(", ");
      }
    };
    Link.isCompatibleEncoding = function(value) {
      return COMPATIBLE_ENCODING_PATTERN.test(value);
    };
    Link.parse = function(value, offset) {
      return new Link().parse(value, offset);
    };
    Link.isSingleOccurenceAttr = function(attr) {
      return attr === "rel" || attr === "type" || attr === "media" || attr === "title" || attr === "title*";
    };
    Link.isTokenAttr = function(attr) {
      return attr === "rel" || attr === "type" || attr === "anchor";
    };
    Link.escapeQuotes = function(value) {
      return value.replace(/"/g, '\\"');
    };
    Link.expandRelations = function(ref) {
      var rels = ref.rel.split(" ");
      return rels.map(function(rel) {
        var value = Object.assign({}, ref);
        value.rel = rel;
        return value;
      });
    };
    Link.parseExtendedValue = function(value) {
      var parts = /([^']+)?(?:'([^']*)')?(.+)/.exec(value);
      return {
        language: parts[2].toLowerCase(),
        encoding: Link.isCompatibleEncoding(parts[1]) ? null : parts[1].toLowerCase(),
        value: Link.isCompatibleEncoding(parts[1]) ? decodeURIComponent(parts[3]) : parts[3]
      };
    };
    Link.formatExtendedAttribute = function(attr, data31) {
      var encoding = (data31.encoding || "utf-8").toUpperCase();
      var language = data31.language || "en";
      var encodedValue = "";
      if (Buffer.isBuffer(data31.value) && Link.isCompatibleEncoding(encoding)) {
        encodedValue = data31.value.toString(encoding);
      } else if (Buffer.isBuffer(data31.value)) {
        encodedValue = data31.value.toString("hex").replace(/[0-9a-f]{2}/gi, "%$1");
      } else {
        encodedValue = encodeURIComponent(data31.value);
      }
      return attr + "=" + encoding + "'" + language + "'" + encodedValue;
    };
    Link.formatAttribute = function(attr, value) {
      if (Array.isArray(value)) {
        return value.map((item) => {
          return Link.formatAttribute(attr, item);
        }).join("; ");
      }
      if (attr[attr.length - 1] === "*" || typeof value !== "string") {
        return Link.formatExtendedAttribute(attr, value);
      }
      if (Link.isTokenAttr(attr)) {
        value = needsQuotes(value) ? '"' + Link.escapeQuotes(value) + '"' : Link.escapeQuotes(value);
      } else if (needsQuotes(value)) {
        value = encodeURIComponent(value);
        value = value.replace(/%20/g, " ").replace(/%2C/g, ",").replace(/%3B/g, ";");
        value = '"' + value + '"';
      }
      return attr + "=" + value;
    };
    module2.exports = Link;
  }
});

// core/computed/main-resource.js
var MainResource, MainResourceComputed;
var init_main_resource = __esm({
  "core/computed/main-resource.js"() {
    "use strict";
    init_process_global();
    init_lantern2();
    init_computed_artifact();
    init_network_records();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    MainResource = class {
      static {
        __name(this, "MainResource");
      }
      /**
       * @param {{URL: LH.Artifacts['URL'], devtoolsLog: LH.DevtoolsLog}} data
       * @param {LH.Artifacts.ComputedContext} context
       * @return {Promise<LH.Artifacts.NetworkRequest>}
       */
      static async compute_(data31, context) {
        const { mainDocumentUrl } = data31.URL;
        if (!mainDocumentUrl) throw new Error("mainDocumentUrl must exist to get the main resource");
        const records = await NetworkRecordsComputed.request(data31.devtoolsLog, context);
        const mainResource = core_exports.NetworkAnalyzer.findLastDocumentForUrl(
          records,
          mainDocumentUrl
        );
        if (!mainResource) {
          throw new Error("Unable to identify the main resource");
        }
        return mainResource;
      }
    };
    MainResourceComputed = makeComputedArtifact(MainResource, ["URL", "devtoolsLog"]);
  }
});

// core/gather/gatherers/link-elements.js
var link_elements_exports = {};
__export(link_elements_exports, {
  UIStrings: () => UIStrings23,
  default: () => link_elements_default
});
function normalizeUrlOrNull(url, finalDisplayedUrl) {
  try {
    return new URL(url, finalDisplayedUrl).href;
  } catch (_) {
    return null;
  }
}
function getCrossoriginFromHeader(value) {
  if (value === "anonymous") return "anonymous";
  if (value === "use-credentials") return "use-credentials";
  return null;
}
function getLinkElementsInDOM() {
  const browserElements = getElementsInDocument("link");
  const linkElements = [];
  for (const link of browserElements) {
    if (!(link instanceof HTMLLinkElement)) continue;
    const hrefRaw = link.getAttribute("href") || "";
    const source = link.closest("head") ? "head" : "body";
    linkElements.push({
      rel: link.rel,
      href: link.href,
      hreflang: link.hreflang,
      as: link.as,
      crossOrigin: link.crossOrigin,
      hrefRaw,
      source,
      fetchPriority: link.fetchPriority,
      // @ts-expect-error - put into scope via stringification
      node: getNodeDetails(link)
    });
  }
  return linkElements;
}
var import_http_link_header, UIStrings23, str_3, LinkElements, link_elements_default;
var init_link_elements = __esm({
  "core/gather/gatherers/link-elements.js"() {
    "use strict";
    init_process_global();
    import_http_link_header = __toESM(require_link(), 1);
    init_base_gatherer();
    init_page_functions();
    init_devtools_log();
    init_main_resource();
    init_util();
    init_i18n();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings23 = {
      /**
       * @description Warning message explaining that there was an error parsing a link header in an HTTP response. `error` will be an english string with more details on the error. `header` will be the value of the header that caused the error. `link` is a type of HTTP header and should not be translated.
       * @example {Expected attribute delimiter at offset 94} error
       * @example {<https://assets.calendly.com/assets/booking/css/booking-d0ac32b1.css>; rel=preload; as=style; nopush} error
       */
      headerParseWarning: "Error parsing `link` header ({error}): `{header}`"
    };
    str_3 = createIcuMessageFn({ url: "core/gather/gatherers/link-elements.js" }.url, UIStrings23);
    __name(normalizeUrlOrNull, "normalizeUrlOrNull");
    __name(getCrossoriginFromHeader, "getCrossoriginFromHeader");
    __name(getLinkElementsInDOM, "getLinkElementsInDOM");
    LinkElements = class _LinkElements extends base_gatherer_default {
      static {
        __name(this, "LinkElements");
      }
      /** @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} */
      meta = {
        supportedModes: ["timespan", "navigation"],
        dependencies: { DevtoolsLog: devtools_log_default.symbol }
      };
      /**
       * @param {LH.Gatherer.Context} context
       * @return {Promise<LH.Artifacts['LinkElements']>}
       */
      static getLinkElementsInDOM(context) {
        return context.driver.executionContext.evaluate(getLinkElementsInDOM, {
          args: [],
          useIsolation: true,
          deps: [
            pageFunctions.getNodeDetails,
            pageFunctions.getElementsInDocument
          ]
        });
      }
      /**
       * @param {LH.Gatherer.Context} context
       * @param {LH.Artifacts['DevtoolsLog']} devtoolsLog
       * @return {Promise<LH.Artifacts['LinkElements']>}
       */
      static async getLinkElementsInHeaders(context, devtoolsLog) {
        const mainDocument = await MainResourceComputed.request({ devtoolsLog, URL: context.baseArtifacts.URL }, context);
        const linkElements = [];
        for (const header of mainDocument.responseHeaders) {
          if (header.name.toLowerCase() !== "link") continue;
          let parsedRefs = [];
          try {
            parsedRefs = import_http_link_header.default.parse(header.value).refs;
          } catch (err) {
            const truncatedHeader = Util.truncate(header.value, 100);
            const warning = str_3(UIStrings23.headerParseWarning, {
              error: err.message,
              header: truncatedHeader
            });
            context.baseArtifacts.LighthouseRunWarnings.push(warning);
          }
          for (const link of parsedRefs) {
            linkElements.push({
              rel: link.rel || "",
              href: normalizeUrlOrNull(link.uri, context.baseArtifacts.URL.finalDisplayedUrl),
              hrefRaw: link.uri || "",
              hreflang: link.hreflang || "",
              as: link.as || "",
              crossOrigin: getCrossoriginFromHeader(link.crossorigin),
              source: "headers",
              fetchPriority: link.fetchpriority,
              node: null
            });
          }
        }
        return linkElements;
      }
      /**
       * @param {LH.Gatherer.Context<'DevtoolsLog'>} context
       * @return {Promise<LH.Artifacts['LinkElements']>}
       */
      async getArtifact(context) {
        const devtoolsLog = context.dependencies.DevtoolsLog;
        const fromDOM = await _LinkElements.getLinkElementsInDOM(context);
        const fromHeaders = await _LinkElements.getLinkElementsInHeaders(context, devtoolsLog);
        const linkElements = fromDOM.concat(fromHeaders);
        for (const link of linkElements) {
          link.rel = link.rel.toLowerCase();
        }
        return linkElements;
      }
    };
    link_elements_default = LinkElements;
  }
});

// core/gather/driver/network.js
async function fetchResponseBodyFromCache(session, requestId, timeout = 1e3) {
  requestId = NetworkRequest.getRequestIdForBackend(requestId);
  session.setNextProtocolTimeout(timeout);
  const result = await session.sendCommand("Network.getResponseBody", { requestId });
  return result.body;
}
var init_network = __esm({
  "core/gather/driver/network.js"() {
    "use strict";
    init_process_global();
    init_network_request();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(fetchResponseBodyFromCache, "fetchResponseBodyFromCache");
  }
});

// core/gather/gatherers/main-document-content.js
var main_document_content_exports = {};
__export(main_document_content_exports, {
  default: () => main_document_content_default
});
var MainDocumentContent, main_document_content_default;
var init_main_document_content = __esm({
  "core/gather/gatherers/main-document-content.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    init_devtools_log();
    init_network();
    init_main_resource();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    MainDocumentContent = class extends base_gatherer_default {
      static {
        __name(this, "MainDocumentContent");
      }
      /** @type {LH.Gatherer.GathererMeta<'DevtoolsLog'>} */
      meta = {
        supportedModes: ["navigation"],
        dependencies: { DevtoolsLog: devtools_log_default.symbol }
      };
      /**
       * @param {LH.Gatherer.Context<'DevtoolsLog'>} context
       * @return {Promise<LH.Artifacts['MainDocumentContent']>}
       */
      async getArtifact(context) {
        const devtoolsLog = context.dependencies.DevtoolsLog;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: context.baseArtifacts.URL }, context);
        const session = context.driver.defaultSession;
        return fetchResponseBodyFromCache(session, mainResource.requestId);
      }
    };
    main_document_content_default = MainDocumentContent;
  }
});

// core/gather/gatherers/meta-elements.js
var meta_elements_exports = {};
__export(meta_elements_exports, {
  default: () => meta_elements_default
});
function collectMetaElements() {
  const functions = (
    /** @type {typeof pageFunctions} */
    {
      // @ts-expect-error - getElementsInDocument put into scope via stringification
      getElementsInDocument,
      // @ts-expect-error - getNodeDetails put into scope via stringification
      getNodeDetails
    }
  );
  const metas = functions.getElementsInDocument("head meta");
  return metas.map((meta) => {
    const getAttribute = /* @__PURE__ */ __name((name) => {
      const attr = meta.attributes.getNamedItem(name);
      if (!attr) return;
      return attr.value;
    }, "getAttribute");
    return {
      name: meta.name.toLowerCase(),
      content: meta.content,
      property: getAttribute("property"),
      httpEquiv: meta.httpEquiv ? meta.httpEquiv.toLowerCase() : void 0,
      charset: getAttribute("charset"),
      node: (
        /** @type {LH.Artifacts.NodeDetails} */
        functions.getNodeDetails(meta)
      )
    };
  });
}
var MetaElements, meta_elements_default;
var init_meta_elements = __esm({
  "core/gather/gatherers/meta-elements.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    init_page_functions();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(collectMetaElements, "collectMetaElements");
    MetaElements = class extends base_gatherer_default {
      static {
        __name(this, "MetaElements");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["snapshot", "navigation"]
      };
      /**
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<LH.Artifacts['MetaElements']>}
       */
      getArtifact(passContext) {
        const driver = passContext.driver;
        return driver.executionContext.evaluate(collectMetaElements, {
          args: [],
          useIsolation: true,
          deps: [
            pageFunctions.getElementsInDocument,
            pageFunctions.getNodeDetails
          ]
        });
      }
    };
    meta_elements_default = MetaElements;
  }
});

// core/gather/gatherers/scripts.js
var scripts_exports = {};
__export(scripts_exports, {
  default: () => scripts_default
});
async function runInSeriesOrParallel(values, promiseMapper, runInSeries) {
  if (runInSeries) {
    const results = [];
    for (const value of values) {
      const result = await promiseMapper(value);
      results.push(result);
    }
    return results;
  } else {
    const promises = values.map(promiseMapper);
    return await Promise.all(promises);
  }
}
function isLighthouseRuntimeEvaluateScript(script) {
  if (!script.embedderName) return true;
  return script.hasSourceURL && script.url === "_lighthouse-eval.js";
}
var Scripts, scripts_default;
var init_scripts = __esm({
  "core/gather/gatherers/scripts.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    /**
     * @license
     * Copyright 2022 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(runInSeriesOrParallel, "runInSeriesOrParallel");
    __name(isLighthouseRuntimeEvaluateScript, "isLighthouseRuntimeEvaluateScript");
    Scripts = class _Scripts extends base_gatherer_default {
      static {
        __name(this, "Scripts");
      }
      static symbol = /* @__PURE__ */ Symbol("Scripts");
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        symbol: _Scripts.symbol,
        supportedModes: ["timespan", "navigation"]
      };
      /** @type {LH.Crdp.Debugger.ScriptParsedEvent[]} */
      _scriptParsedEvents = [];
      /** @type {Array<string | undefined>} */
      _scriptContents = [];
      constructor() {
        super();
        this.onScriptParsed = this.onScriptParsed.bind(this);
      }
      /**
       * @param {LH.Crdp.Debugger.ScriptParsedEvent} params
       */
      onScriptParsed(params) {
        if (!isLighthouseRuntimeEvaluateScript(params)) {
          this._scriptParsedEvents.push(params);
        }
      }
      /**
       * @param {LH.Gatherer.Context} context
       */
      async startInstrumentation(context) {
        const session = context.driver.defaultSession;
        session.on("Debugger.scriptParsed", this.onScriptParsed);
        await session.sendCommand("Debugger.enable");
      }
      /**
       * @param {LH.Gatherer.Context} context
       */
      async stopInstrumentation(context) {
        const session = context.driver.defaultSession;
        const formFactor = context.baseArtifacts.HostFormFactor;
        session.off("Debugger.scriptParsed", this.onScriptParsed);
        this._scriptContents = await runInSeriesOrParallel(
          this._scriptParsedEvents,
          ({ scriptId }) => {
            return session.sendCommand("Debugger.getScriptSource", { scriptId }).then((resp) => resp.scriptSource).catch(() => void 0);
          },
          formFactor === "mobile"
          /* runInSeries */
        );
        await session.sendCommand("Debugger.disable");
      }
      async getArtifact() {
        const scripts = this._scriptParsedEvents.map((event, i) => {
          return {
            name: event.url,
            ...event,
            // embedderName is optional on the protocol because backends like Node may not set it.
            // For our purposes, it is always set. But just in case it isn't... fallback to the url.
            url: event.embedderName || event.url,
            content: this._scriptContents[i]
          };
        });
        return scripts;
      }
    };
    scripts_default = Scripts;
  }
});

// core/gather/gatherers/seo/robots-txt.js
var robots_txt_exports = {};
__export(robots_txt_exports, {
  default: () => robots_txt_default
});
var RobotsTxt, robots_txt_default;
var init_robots_txt = __esm({
  "core/gather/gatherers/seo/robots-txt.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    RobotsTxt = class extends base_gatherer_default {
      static {
        __name(this, "RobotsTxt");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["snapshot", "navigation"]
      };
      /**
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<LH.Artifacts['RobotsTxt']>}
       */
      async getArtifact(passContext) {
        const { finalDisplayedUrl } = passContext.baseArtifacts.URL;
        const robotsUrl = new URL("/robots.txt", finalDisplayedUrl).href;
        return passContext.driver.fetcher.fetchResource(robotsUrl).catch((err) => ({ status: null, content: null, errorMessage: err.message }));
      }
    };
    robots_txt_default = RobotsTxt;
  }
});

// core/lib/cdt/generated/ParsedURL.js
var require_ParsedURL = __commonJS({
  "core/lib/cdt/generated/ParsedURL.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.ParsedURL = void 0;
    exports2.normalizePath = normalizePath2;
    exports2.schemeIs = schemeIs2;
    function normalizePath2(path7) {
      if (path7.indexOf("..") === -1 && path7.indexOf(".") === -1) {
        return path7;
      }
      const segments = (path7[0] === "/" ? path7.substring(1) : path7).split("/");
      const normalizedSegments = [];
      for (const segment of segments) {
        if (segment === ".") {
          continue;
        } else if (segment === "..") {
          normalizedSegments.pop();
        } else {
          normalizedSegments.push(segment);
        }
      }
      let normalizedPath = normalizedSegments.join("/");
      if (path7[0] === "/" && normalizedPath) {
        normalizedPath = "/" + normalizedPath;
      }
      if (normalizedPath[normalizedPath.length - 1] !== "/" && (path7[path7.length - 1] === "/" || segments[segments.length - 1] === "." || segments[segments.length - 1] === "..")) {
        normalizedPath = normalizedPath + "/";
      }
      return normalizedPath;
    }
    __name(normalizePath2, "normalizePath");
    function schemeIs2(url, scheme) {
      try {
        return new URL(url).protocol === scheme;
      } catch {
        return false;
      }
    }
    __name(schemeIs2, "schemeIs");
    var ParsedURL3 = class _ParsedURL {
      static {
        __name(this, "ParsedURL");
      }
      isValid;
      url;
      scheme;
      user;
      host;
      port;
      path;
      queryParams;
      fragment;
      folderPathComponents;
      lastPathComponent;
      blobInnerScheme;
      #displayNameInternal;
      #dataURLDisplayNameInternal;
      constructor(url) {
        this.isValid = false;
        this.url = url;
        this.scheme = "";
        this.user = "";
        this.host = "";
        this.port = "";
        this.path = "";
        this.queryParams = "";
        this.fragment = "";
        this.folderPathComponents = "";
        this.lastPathComponent = "";
        const isBlobUrl = this.url.startsWith("blob:");
        const urlToMatch = isBlobUrl ? url.substring(5) : url;
        const match = urlToMatch.match(_ParsedURL.urlRegex());
        if (match) {
          this.isValid = true;
          if (isBlobUrl) {
            this.blobInnerScheme = match[2].toLowerCase();
            this.scheme = "blob";
          } else {
            this.scheme = match[2].toLowerCase();
          }
          this.user = match[3] ?? "";
          this.host = match[4] ?? "";
          this.port = match[5] ?? "";
          this.path = match[6] ?? "/";
          this.queryParams = match[7] ?? "";
          this.fragment = match[8] ?? "";
        } else {
          if (this.url.startsWith("data:")) {
            this.scheme = "data";
            return;
          }
          if (this.url.startsWith("blob:")) {
            this.scheme = "blob";
            return;
          }
          if (this.url === "about:blank") {
            this.scheme = "about";
            return;
          }
          this.path = this.url;
        }
        const lastSlashExceptTrailingIndex = this.path.lastIndexOf("/", this.path.length - 2);
        if (lastSlashExceptTrailingIndex !== -1) {
          this.lastPathComponent = this.path.substring(lastSlashExceptTrailingIndex + 1);
        } else {
          this.lastPathComponent = this.path;
        }
        const lastSlashIndex = this.path.lastIndexOf("/");
        if (lastSlashIndex !== -1) {
          this.folderPathComponents = this.path.substring(0, lastSlashIndex);
        }
      }
      static concatenate(devToolsPath, ...appendage) {
        return devToolsPath.concat(...appendage);
      }
      static beginsWithWindowsDriveLetter(url) {
        return /^[A-Za-z]:/.test(url);
      }
      static beginsWithScheme(url) {
        return /^[A-Za-z][A-Za-z0-9+.-]*:/.test(url);
      }
      static isRelativeURL(url) {
        return !this.beginsWithScheme(url) || this.beginsWithWindowsDriveLetter(url);
      }
      get displayName() {
        if (this.#displayNameInternal) {
          return this.#displayNameInternal;
        }
        if (this.isDataURL()) {
          return this.dataURLDisplayName();
        }
        if (this.isBlobURL()) {
          return this.url;
        }
        if (this.isAboutBlank()) {
          return this.url;
        }
        this.#displayNameInternal = this.lastPathComponent;
        if (!this.#displayNameInternal) {
          this.#displayNameInternal = (this.host || "") + "/";
        }
        if (this.#displayNameInternal === "/") {
          this.#displayNameInternal = this.url;
        }
        return this.#displayNameInternal;
      }
      static urlRegexInstance = null;
    };
    exports2.ParsedURL = ParsedURL3;
  }
});

// core/lib/cdt/Common.js
var require_Common = __commonJS({
  "core/lib/cdt/Common.js"(exports2, module2) {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2022 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    var ParsedURL3 = require_ParsedURL();
    module2.exports = {
      ParsedURL: ParsedURL3
    };
  }
});

// core/lib/cdt/Platform.js
var require_Platform = __commonJS({
  "core/lib/cdt/Platform.js"(exports2, module2) {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    function lowerBound2(array, needle, comparator, left, right) {
      let l = left || 0;
      let r = right !== void 0 ? right : array.length;
      while (l < r) {
        const m = l + r >> 1;
        if (comparator(needle, array[m]) > 0) {
          l = m + 1;
        } else {
          r = m;
        }
      }
      return r;
    }
    __name(lowerBound2, "lowerBound");
    function upperBound2(array, needle, comparator, left, right) {
      let l = left || 0;
      let r = right !== void 0 ? right : array.length;
      while (l < r) {
        const m = l + r >> 1;
        if (comparator(needle, array[m]) >= 0) {
          l = m + 1;
        } else {
          r = m;
        }
      }
      return r;
    }
    __name(upperBound2, "upperBound");
    module2.exports = {
      ArrayUtilities: {
        lowerBound: lowerBound2,
        upperBound: upperBound2
      },
      DevToolsPath: {
        EmptyUrlString: ""
      }
    };
  }
});

// core/lib/cdt/generated/SourceMap.js
var require_SourceMap = __commonJS({
  "core/lib/cdt/generated/SourceMap.js"(exports2, module2) {
    "use strict";
    init_process_global();
    var Common = require_Common();
    var Platform = require_Platform();
    var BASE64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    var BASE64_CODES = new Uint8Array(123);
    for (let index = 0; index < BASE64_CHARS.length; ++index) {
      BASE64_CODES[BASE64_CHARS.charCodeAt(index)] = index;
    }
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.TokenIterator = exports2.SourceMap = exports2.SourceMapEntry = void 0;
    exports2.parseSourceMap = parseSourceMap;
    function parseSourceMap(content) {
      if (content.startsWith(")]}")) {
        content = content.substring(content.indexOf("\n"));
      }
      if (content.charCodeAt(0) === 65279) {
        content = content.slice(1);
      }
      return JSON.parse(content);
    }
    __name(parseSourceMap, "parseSourceMap");
    var SourceMapEntry = class {
      static {
        __name(this, "SourceMapEntry");
      }
      lineNumber;
      columnNumber;
      sourceIndex;
      sourceURL;
      sourceLineNumber;
      sourceColumnNumber;
      name;
      constructor(lineNumber, columnNumber, sourceIndex, sourceURL, sourceLineNumber, sourceColumnNumber, name) {
        this.lineNumber = lineNumber;
        this.columnNumber = columnNumber;
        this.sourceIndex = sourceIndex;
        this.sourceURL = sourceURL;
        this.sourceLineNumber = sourceLineNumber;
        this.sourceColumnNumber = sourceColumnNumber;
        this.name = name;
      }
      static compare(entry1, entry2) {
        if (entry1.lineNumber !== entry2.lineNumber) {
          return entry1.lineNumber - entry2.lineNumber;
        }
        return entry1.columnNumber - entry2.columnNumber;
      }
    };
    exports2.SourceMapEntry = SourceMapEntry;
    var SourceMap = class {
      static {
        __name(this, "SourceMap");
      }
      #json;
      #compiledURLInternal;
      #sourceMappingURL;
      #baseURL;
      #mappingsInternal;
      #sourceInfos = [];
      #sourceInfoByURL = /* @__PURE__ */ new Map();
      #scopesInfo = null;
      /**
       * @param {string} compiledURL
       * @param {string} sourceMappingURL
       * @param {object} payload
       * Implements Source Map V3 model. See https://github.com/google/closure-compiler/wiki/Source-Maps
       * for format description.
       */
      constructor(compiledURL, sourceMappingURL, payload) {
        this.#json = payload;
        this.#compiledURLInternal = compiledURL;
        this.#sourceMappingURL = sourceMappingURL;
        this.#baseURL = Common.ParsedURL.schemeIs(sourceMappingURL, "data:") ? compiledURL : sourceMappingURL;
        this.#mappingsInternal = null;
        if ("sections" in this.#json) {
          if (this.#json.sections.find((section) => "url" in section)) {
            console.warn(`SourceMap "${sourceMappingURL}" contains unsupported "URL" field in one of its sections.`);
          }
        }
        this.eachSection(this.parseSources.bind(this));
      }
      #sourceIndex(sourceURL) {
        return this.#sourceInfos.findIndex((info) => info.sourceURL === sourceURL);
      }
      compiledURL() {
        return this.#compiledURLInternal;
      }
      url() {
        return this.#sourceMappingURL;
      }
      sourceURLs() {
        return [...this.#sourceInfoByURL.keys()];
      }
      embeddedContentByURL(sourceURL) {
        const entry = this.#sourceInfoByURL.get(sourceURL);
        if (!entry) {
          return null;
        }
        return entry.content;
      }
      hasScopeInfo() {
        this.#ensureMappingsProcessed();
        return this.#scopesInfo !== null;
      }
      findEntry(lineNumber, columnNumber, inlineFrameIndex) {
        this.#ensureMappingsProcessed();
        if (inlineFrameIndex && this.#scopesInfo !== null) {
          const { inlinedFunctions } = this.#scopesInfo.findInlinedFunctions(lineNumber, columnNumber);
          const { callsite } = inlinedFunctions[inlineFrameIndex - 1];
          if (!callsite) {
            console.error("Malformed source map. Expected to have a callsite info for index", inlineFrameIndex);
            return null;
          }
          return {
            lineNumber,
            columnNumber,
            sourceIndex: callsite.sourceIndex,
            sourceURL: this.sourceURLs()[callsite.sourceIndex],
            sourceLineNumber: callsite.line,
            sourceColumnNumber: callsite.column,
            name: void 0
          };
        }
        const mappings = this.mappings();
        const index = Platform.ArrayUtilities.upperBound(mappings, void 0, (unused, entry) => lineNumber - entry.lineNumber || columnNumber - entry.columnNumber);
        return index ? mappings[index - 1] : null;
      }
      findEntryRanges(lineNumber, columnNumber) {
        const mappings = this.mappings();
        const endIndex = Platform.ArrayUtilities.upperBound(mappings, void 0, (unused, entry) => lineNumber - entry.lineNumber || columnNumber - entry.columnNumber);
        if (!endIndex) {
          return null;
        }
        const startIndex = endIndex - 1;
        const sourceURL = mappings[startIndex].sourceURL;
        if (!sourceURL) {
          return null;
        }
        const endLine = endIndex < mappings.length ? mappings[endIndex].lineNumber : 2 ** 31 - 1;
        const endColumn = endIndex < mappings.length ? mappings[endIndex].columnNumber : 2 ** 31 - 1;
        const range = new TextUtils.TextRange.TextRange(mappings[startIndex].lineNumber, mappings[startIndex].columnNumber, endLine, endColumn);
        const reverseMappings = this.reversedMappings(sourceURL);
        const startSourceLine = mappings[startIndex].sourceLineNumber;
        const startSourceColumn = mappings[startIndex].sourceColumnNumber;
        const endReverseIndex = Platform.ArrayUtilities.upperBound(reverseMappings, void 0, (unused, i) => startSourceLine - mappings[i].sourceLineNumber || startSourceColumn - mappings[i].sourceColumnNumber);
        if (!endReverseIndex) {
          return null;
        }
        const endSourceLine = endReverseIndex < reverseMappings.length ? mappings[reverseMappings[endReverseIndex]].sourceLineNumber : 2 ** 31 - 1;
        const endSourceColumn = endReverseIndex < reverseMappings.length ? mappings[reverseMappings[endReverseIndex]].sourceColumnNumber : 2 ** 31 - 1;
        const sourceRange = new TextUtils.TextRange.TextRange(startSourceLine, startSourceColumn, endSourceLine, endSourceColumn);
        return { range, sourceRange, sourceURL };
      }
      sourceLineMapping(sourceURL, lineNumber, columnNumber) {
        const mappings = this.mappings();
        const reverseMappings = this.reversedMappings(sourceURL);
        const first = Platform.ArrayUtilities.lowerBound(reverseMappings, lineNumber, lineComparator);
        const last = Platform.ArrayUtilities.upperBound(reverseMappings, lineNumber, lineComparator);
        if (first >= reverseMappings.length || mappings[reverseMappings[first]].sourceLineNumber !== lineNumber) {
          return null;
        }
        const columnMappings = reverseMappings.slice(first, last);
        if (!columnMappings.length) {
          return null;
        }
        const index = Platform.ArrayUtilities.lowerBound(columnMappings, columnNumber, (columnNumber2, i) => columnNumber2 - mappings[i].sourceColumnNumber);
        return index >= columnMappings.length ? mappings[columnMappings[columnMappings.length - 1]] : mappings[columnMappings[index]];
        function lineComparator(lineNumber2, i) {
          return lineNumber2 - mappings[i].sourceLineNumber;
        }
        __name(lineComparator, "lineComparator");
      }
      findReverseIndices(sourceURL, lineNumber, columnNumber) {
        const mappings = this.mappings();
        const reverseMappings = this.reversedMappings(sourceURL);
        const endIndex = Platform.ArrayUtilities.upperBound(reverseMappings, void 0, (unused, i) => lineNumber - mappings[i].sourceLineNumber || columnNumber - mappings[i].sourceColumnNumber);
        let startIndex = endIndex;
        while (startIndex > 0 && mappings[reverseMappings[startIndex - 1]].sourceLineNumber === mappings[reverseMappings[endIndex - 1]].sourceLineNumber && mappings[reverseMappings[startIndex - 1]].sourceColumnNumber === mappings[reverseMappings[endIndex - 1]].sourceColumnNumber) {
          --startIndex;
        }
        return reverseMappings.slice(startIndex, endIndex);
      }
      findReverseEntries(sourceURL, lineNumber, columnNumber) {
        const mappings = this.mappings();
        return this.findReverseIndices(sourceURL, lineNumber, columnNumber).map((i) => mappings[i]);
      }
      findReverseRanges(sourceURL, lineNumber, columnNumber) {
        const mappings = this.mappings();
        const indices = this.findReverseIndices(sourceURL, lineNumber, columnNumber);
        const ranges = [];
        for (let i = 0; i < indices.length; ++i) {
          const startIndex = indices[i];
          let endIndex = startIndex + 1;
          while (i + 1 < indices.length && endIndex === indices[i + 1]) {
            ++endIndex;
            ++i;
          }
          const startLine = mappings[startIndex].lineNumber;
          const startColumn = mappings[startIndex].columnNumber;
          const endLine = endIndex < mappings.length ? mappings[endIndex].lineNumber : 2 ** 31 - 1;
          const endColumn = endIndex < mappings.length ? mappings[endIndex].columnNumber : 2 ** 31 - 1;
          ranges.push(new TextUtils.TextRange.TextRange(startLine, startColumn, endLine, endColumn));
        }
        return ranges;
      }
      /** @return {Array<{lineNumber: number, columnNumber: number, sourceURL?: string, sourceLineNumber: number, sourceColumnNumber: number, name?: string, lastColumnNumber?: number}>} */
      mappings() {
        this.#ensureMappingsProcessed();
        return this.#mappingsInternal ?? [];
      }
      reversedMappings(sourceURL) {
        this.#ensureMappingsProcessed();
        return this.#sourceInfoByURL.get(sourceURL)?.reverseMappings ?? [];
      }
      #ensureMappingsProcessed() {
        if (this.#mappingsInternal === null) {
          this.#mappingsInternal = [];
          try {
            this.eachSection(this.parseMap.bind(this));
          } catch (e) {
            console.error("Failed to parse source map", e);
            this.#mappingsInternal = [];
          }
          this.mappings().sort(SourceMapEntry.compare);
          this.#computeReverseMappings(this.#mappingsInternal);
          this.#json = null;
        }
      }
      #computeReverseMappings(mappings) {
        const reverseMappingsPerUrl = /* @__PURE__ */ new Map();
        for (let i = 0; i < mappings.length; i++) {
          const entryUrl = mappings[i].sourceURL;
          if (!entryUrl) {
            continue;
          }
          let reverseMap = reverseMappingsPerUrl.get(entryUrl);
          if (!reverseMap) {
            reverseMap = [];
            reverseMappingsPerUrl.set(entryUrl, reverseMap);
          }
          reverseMap.push(i);
        }
        for (const [url, reverseMap] of reverseMappingsPerUrl.entries()) {
          const info = this.#sourceInfoByURL.get(url);
          if (!info) {
            continue;
          }
          reverseMap.sort(sourceMappingComparator);
          info.reverseMappings = reverseMap;
        }
        function sourceMappingComparator(indexA, indexB) {
          const a = mappings[indexA];
          const b = mappings[indexB];
          return a.sourceLineNumber - b.sourceLineNumber || a.sourceColumnNumber - b.sourceColumnNumber || a.lineNumber - b.lineNumber || a.columnNumber - b.columnNumber;
        }
        __name(sourceMappingComparator, "sourceMappingComparator");
      }
      eachSection(callback) {
        if (!this.#json) {
          return;
        }
        if ("sections" in this.#json) {
          let sourcesIndex = 0;
          for (const section of this.#json.sections) {
            if ("map" in section) {
              callback(section.map, sourcesIndex, section.offset.line, section.offset.column);
              sourcesIndex += section.map.sources.length;
            }
          }
        } else {
          callback(this.#json, 0, 0, 0);
        }
      }
      parseSources(sourceMap) {
        const sourceRoot = sourceMap.sourceRoot ?? "";
        const ignoreList = new Set(sourceMap.ignoreList ?? sourceMap.x_google_ignoreList);
        for (let i = 0; i < sourceMap.sources.length; ++i) {
          let href = sourceMap.sources[i];
          if (Common.ParsedURL.ParsedURL.isRelativeURL(href)) {
            if (sourceRoot && !sourceRoot.endsWith("/") && href && !href.startsWith("/")) {
              href = sourceRoot.concat("/", href);
            } else {
              href = sourceRoot.concat(href);
            }
          }
          const url = href;
          const source = sourceMap.sourcesContent && sourceMap.sourcesContent[i];
          const sourceInfo = {
            sourceURL: url,
            content: source ?? null,
            ignoreListHint: ignoreList.has(i),
            reverseMappings: null
          };
          this.#sourceInfos.push(sourceInfo);
          if (!this.#sourceInfoByURL.has(url)) {
            this.#sourceInfoByURL.set(url, sourceInfo);
          }
        }
      }
      parseMap(map, baseSourceIndex, baseLineNumber, baseColumnNumber) {
        let sourceIndex = baseSourceIndex;
        let lineNumber = baseLineNumber;
        let columnNumber = baseColumnNumber;
        let sourceLineNumber = 0;
        let sourceColumnNumber = 0;
        let nameIndex = 0;
        const names2 = map.names ?? [];
        const tokenIter = new TokenIterator(map.mappings);
        let sourceURL = this.#sourceInfos[sourceIndex]?.sourceURL;
        while (true) {
          if (tokenIter.peek() === ",") {
            tokenIter.next();
          } else {
            while (tokenIter.peek() === ";") {
              lineNumber += 1;
              columnNumber = 0;
              tokenIter.next();
            }
            if (!tokenIter.hasNext()) {
              break;
            }
          }
          columnNumber += tokenIter.nextVLQ();
          if (!tokenIter.hasNext() || this.isSeparator(tokenIter.peek())) {
            this.mappings().push(new SourceMapEntry(lineNumber, columnNumber));
            continue;
          }
          const sourceIndexDelta = tokenIter.nextVLQ();
          if (sourceIndexDelta) {
            sourceIndex += sourceIndexDelta;
            sourceURL = this.#sourceInfos[sourceIndex]?.sourceURL;
          }
          sourceLineNumber += tokenIter.nextVLQ();
          sourceColumnNumber += tokenIter.nextVLQ();
          if (!tokenIter.hasNext() || this.isSeparator(tokenIter.peek())) {
            this.mappings().push(new SourceMapEntry(lineNumber, columnNumber, sourceIndex, sourceURL, sourceLineNumber, sourceColumnNumber));
            continue;
          }
          nameIndex += tokenIter.nextVLQ();
          this.mappings().push(new SourceMapEntry(lineNumber, columnNumber, sourceIndex, sourceURL, sourceLineNumber, sourceColumnNumber, names2[nameIndex]));
        }
        if (false) {
          if (!this.#scopesInfo) {
            this.#scopesInfo = new SourceMapScopesInfo_js_1.SourceMapScopesInfo(this, [], []);
          }
          if (map.originalScopes && map.generatedRanges) {
            const { originalScopes, generatedRanges } = (0, SourceMapScopes_js_1.decodeScopes)(map, { line: baseLineNumber, column: baseColumnNumber });
            this.#scopesInfo.addOriginalScopes(originalScopes);
            this.#scopesInfo.addGeneratedRanges(generatedRanges);
          } else if (map.x_com_bloomberg_sourcesFunctionMappings) {
            const originalScopes = this.parseBloombergScopes(map);
            this.#scopesInfo.addOriginalScopes(originalScopes);
          } else {
            this.#scopesInfo.addOriginalScopes(new Array(map.sources.length));
          }
        }
      }
      isSeparator(char) {
        return char === "," || char === ";";
      }
      mapsOrigin() {
        const mappings = this.mappings();
        if (mappings.length > 0) {
          const firstEntry = mappings[0];
          return firstEntry?.lineNumber === 0 || firstEntry.columnNumber === 0;
        }
        return false;
      }
      hasIgnoreListHint(sourceURL) {
        return this.#sourceInfoByURL.get(sourceURL)?.ignoreListHint ?? false;
      }
      /**
       * Returns a list of ranges in the generated script for original sources that
       * match a predicate. Each range is a [begin, end) pair, meaning that code at
       * the beginning location, up to but not including the end location, matches
       * the predicate.
       */
      findRanges(predicate, options) {
        const mappings = this.mappings();
        const ranges = [];
        if (!mappings.length) {
          return [];
        }
        let current = null;
        if ((mappings[0].lineNumber !== 0 || mappings[0].columnNumber !== 0) && options?.isStartMatching) {
          current = TextUtils.TextRange.TextRange.createUnboundedFromLocation(0, 0);
          ranges.push(current);
        }
        for (const { sourceURL, lineNumber, columnNumber } of mappings) {
          const ignoreListHint = sourceURL && predicate(sourceURL);
          if (!current && ignoreListHint) {
            current = TextUtils.TextRange.TextRange.createUnboundedFromLocation(lineNumber, columnNumber);
            ranges.push(current);
            continue;
          }
          if (current && !ignoreListHint) {
            current.endLine = lineNumber;
            current.endColumn = columnNumber;
            current = null;
          }
        }
        return ranges;
      }
      expandCallFrame(frame) {
        this.#ensureMappingsProcessed();
        if (this.#scopesInfo === null) {
          return [frame];
        }
        return this.#scopesInfo.expandCallFrame(frame);
      }
      resolveScopeChain(frame) {
        this.#ensureMappingsProcessed();
        if (this.#scopesInfo === null) {
          return null;
        }
        return this.#scopesInfo.resolveMappedScopeChain(frame);
      }
      findOriginalFunctionName(position) {
        this.#ensureMappingsProcessed();
        return this.#scopesInfo?.findOriginalFunctionName(position) ?? null;
      }
    };
    exports2.SourceMap = SourceMap;
    var VLQ_BASE_SHIFT = 5;
    var VLQ_BASE_MASK = (1 << 5) - 1;
    var VLQ_CONTINUATION_MASK = 1 << 5;
    var TokenIterator = class {
      static {
        __name(this, "TokenIterator");
      }
      #string;
      #position;
      constructor(string) {
        this.#string = string;
        this.#position = 0;
      }
      next() {
        return this.#string.charAt(this.#position++);
      }
      /** Returns the unicode value of the next character and advances the iterator  */
      nextCharCode() {
        return this.#string.charCodeAt(this.#position++);
      }
      peek() {
        return this.#string.charAt(this.#position);
      }
      hasNext() {
        return this.#position < this.#string.length;
      }
      nextVLQ() {
        let result = 0;
        let shift = 0;
        let digit = VLQ_CONTINUATION_MASK;
        while (digit & VLQ_CONTINUATION_MASK) {
          if (!this.hasNext()) {
            throw new Error("Unexpected end of input while decodling VLQ number!");
          }
          const charCode = this.nextCharCode();
          digit = BASE64_CODES[charCode];
          if (charCode !== 65 && digit === 0) {
            throw new Error(`Unexpected char '${String.fromCharCode(charCode)}' encountered while decoding`);
          }
          result += (digit & VLQ_BASE_MASK) << shift;
          shift += VLQ_BASE_SHIFT;
        }
        const negative = result & 1;
        result >>= 1;
        return negative ? -result : result;
      }
      /**
       * @returns the next VLQ number without iterating further. Or returns null if
       * the iterator is at the end or it's not a valid number.
       */
      peekVLQ() {
        const pos = this.#position;
        try {
          return this.nextVLQ();
        } catch {
          return null;
        } finally {
          this.#position = pos;
        }
      }
    };
    exports2.TokenIterator = TokenIterator;
    module2.exports = SourceMap;
    SourceMap.parseSourceMap = parseSourceMap;
  }
});

// core/lib/cdt/SDK.js
var require_SDK = __commonJS({
  "core/lib/cdt/SDK.js"(exports2, module2) {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    var SDK3 = {
      SourceMap: require_SourceMap()
    };
    SDK3.SourceMap.prototype.computeLastGeneratedColumns = function() {
      const mappings = this.mappings();
      if (mappings.length && mappings[0].lastColumnNumber !== void 0) return;
      for (let i = 0; i < mappings.length - 1; i++) {
        const mapping = mappings[i];
        const nextMapping = mappings[i + 1];
        if (mapping.lineNumber === nextMapping.lineNumber) {
          mapping.lastColumnNumber = nextMapping.columnNumber;
        }
      }
    };
    module2.exports = SDK3;
  }
});

// core/gather/gatherers/source-maps.js
var source_maps_exports = {};
__export(source_maps_exports, {
  default: () => source_maps_default
});
var import_SDK, SourceMaps, source_maps_default;
var init_source_maps = __esm({
  "core/gather/gatherers/source-maps.js"() {
    "use strict";
    init_process_global();
    import_SDK = __toESM(require_SDK(), 1);
    init_base_gatherer();
    init_scripts();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    SourceMaps = class _SourceMaps extends base_gatherer_default {
      static {
        __name(this, "SourceMaps");
      }
      static symbol = /* @__PURE__ */ Symbol("SourceMaps");
      /** @type {LH.Gatherer.GathererMeta<'Scripts'>} */
      meta = {
        symbol: _SourceMaps.symbol,
        supportedModes: ["timespan", "navigation"],
        dependencies: { Scripts: scripts_default.symbol }
      };
      /**
       * @param {LH.Gatherer.Driver} driver
       * @param {string} sourceMapUrl
       * @return {Promise<LH.Artifacts.RawSourceMap>}
       */
      async fetchSourceMap(driver, sourceMapUrl) {
        const response = await driver.fetcher.fetchResource(sourceMapUrl, { timeout: 1500 });
        if (response.content === null) {
          throw new Error(`Failed fetching source map (${response.status})`);
        }
        return import_SDK.default.SourceMap.parseSourceMap(response.content);
      }
      /**
       * @param {string} sourceMapURL
       * @return {LH.Artifacts.RawSourceMap}
       */
      parseSourceMapFromDataUrl(sourceMapURL) {
        const buffer = Buffer.from(sourceMapURL.split(",")[1], "base64");
        return import_SDK.default.SourceMap.parseSourceMap(buffer.toString());
      }
      /**
       * @param {string} url
       * @param {string} base
       * @return {string|undefined}
       */
      _resolveUrl(url, base) {
        try {
          return new URL(url, base).href;
        } catch (e) {
          return;
        }
      }
      /**
       * @param {LH.Gatherer.Driver} driver
       * @param {LH.Artifacts.Script} script
       * @return {Promise<LH.Artifacts.SourceMap>}
       */
      async _retrieveMapFromScript(driver, script) {
        if (!script.sourceMapURL) {
          throw new Error("precondition failed: event.sourceMapURL should exist");
        }
        const isSourceMapADataUri = script.sourceMapURL.startsWith("data:");
        const scriptUrl = script.name;
        const rawSourceMapUrl = isSourceMapADataUri ? script.sourceMapURL : this._resolveUrl(script.sourceMapURL, script.name);
        if (!rawSourceMapUrl) {
          return {
            scriptId: script.scriptId,
            scriptUrl,
            errorMessage: `Could not resolve map url: ${script.sourceMapURL}`
          };
        }
        const sourceMapUrl = isSourceMapADataUri ? void 0 : rawSourceMapUrl;
        try {
          const map = isSourceMapADataUri ? this.parseSourceMapFromDataUrl(rawSourceMapUrl) : await this.fetchSourceMap(driver, rawSourceMapUrl);
          if (typeof map.version !== "number") throw new Error("Map has no numeric `version` field");
          if (!Array.isArray(map.sources)) throw new Error("Map has no `sources` list");
          if (typeof map.mappings !== "string") throw new Error("Map has no `mappings` field");
          if (map.sections) {
            map.sections = map.sections.filter((section) => section.map);
          }
          return {
            scriptId: script.scriptId,
            scriptUrl,
            sourceMapUrl,
            map
          };
        } catch (err) {
          return {
            scriptId: script.scriptId,
            scriptUrl,
            sourceMapUrl,
            errorMessage: err.toString()
          };
        }
      }
      /**
       * @param {LH.Gatherer.Context<'Scripts'>} context
       * @return {Promise<LH.Artifacts['SourceMaps']>}
       */
      async getArtifact(context) {
        const eventProcessPromises = context.dependencies.Scripts.filter((script) => script.sourceMapURL).map((script) => this._retrieveMapFromScript(context.driver, script));
        return Promise.all(eventProcessPromises);
      }
    };
    source_maps_default = SourceMaps;
  }
});

// core/gather/gatherers/stacks.js
var stacks_exports = {};
__export(stacks_exports, {
  default: () => stacks_default
});
async function detectLibraries() {
  const libraries = [];
  const libraryDetectorTests = d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests;
  for (const [name, lib] of Object.entries(libraryDetectorTests)) {
    try {
      let timeout;
      const timeoutPromise = new Promise((r) => timeout = setTimeout(() => r(false), 1e3));
      const result = await Promise.race([lib.test(window), timeoutPromise]);
      if (timeout) clearTimeout(timeout);
      if (result) {
        libraries.push({
          id: lib.id,
          name,
          version: result.version,
          npm: lib.npm
        });
      }
    } catch (e) {
    }
  }
  return libraries;
}
var require3, libDetectorSource, Stacks, stacks_default;
var init_stacks = __esm({
  "core/gather/gatherers/stacks.js"() {
    "use strict";
    init_process_global();
    init_module();
    init_lighthouse_logger();
    init_base_gatherer();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    require3 = /* @__PURE__ */ createRequire({ url: "core/gather/gatherers/stacks.js" }.url);
    libDetectorSource = `function _createTimeoutHelper(){let e;return{timeoutPromise:new Promise((t,o)=>{e=setTimeout(()=>o(new Error("Timed out")),5e3)}),clearTimeout:()=>clearTimeout(e)}}var UNKNOWN_VERSION=null,d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests={GWT:{id:"gwt",icon:"gwt",url:"http://www.gwtproject.org/",test:function(e){var t=e.document,o=t.getElementById("__gwt_historyFrame"),n=t.gwt_uid,r=t.body.__listener,i=t.body.__eventBits,s=e.__gwt_activeModules,c=e.__gwt_jsonp__,u=e.__gwt_scriptsLoaded||e.__gwt_stylesLoaded||e.__gwt_activeModules;if(o||n||r||i||s||c||u){for(var a=t.getElementsByTagName("iframe"),l=UNKNOWN_VERSION,N=0;N<a.length;N++)try{if(a[N].tabIndex<0&&a[N].contentWindow&&a[N].contentWindow.$gwt_version){l=a[N].contentWindow.$gwt_version;break}}catch(e){}return"0.0.999"==l&&(l="Google Internal"),{version:l}}return!1}},Ink:{id:"ink",icon:"ink",url:"http://ink.sapo.pt/",test:function(e){return!(!e.Ink||!e.Ink.createModule)&&{version:UNKNOWN_VERSION}}},Vaa\
din:{id:"vaadin",icon:"vaadin",url:"https://vaadin.com/",test:function(e){return!(!e.vaadin||!e.vaadin.registerWidgetset)&&{version:UNKNOWN_VERSION}}},Bootstrap:{id:"bootstrap",icon:"bootstrap",url:"http://getbootstrap.com/",npm:"bootstrap",test:function(e){var t,o=e.$&&e.$.fn;if(o&&(["affix","alert","button","carousel","collapse","dropdown","modal","popover","scrollspy","tab","tooltip"].some(function(o){if(e.$.fn[o]){if(e.$.fn[o].Constructor&&e.$.fn[o].Constructor.VERSION)return t=e.$.fn[o].Constructor.VERSION,!0;if(new RegExp("\\\\$this\\\\.data\\\\((?:'|\\")(?:bs\\\\.){1}"+o).test(e.$.fn[o].toString()))return t=">= 3.0.0 & <= 3.1.1",!0;if(new RegExp("\\\\$this\\\\.data\\\\((?:'|\\")"+o).test(e.$.fn[o].toString()))return t=">= 2.0.0 & <= 2.3.2",!0}return!1}),t))return{version:t};return!1}},Zurb:{id:"zurb",icon:"zurb",url:"https://foundation.zurb.com/",npm:"foundation-sites",test:function(e){return!(!e.Foundation||!e.Foundation.Toggler)&&{version:e.Foundation.version||UNKNOWN_VERSION}}},Polymer:{id:"\
polymer",icon:"polymer",url:"https://www.polymer-project.org/",npm:"@polymer/polymer",test:function(e){return!(!e.Polymer||!e.Polymer.dom)&&{version:e.Polymer.version||UNKNOWN_VERSION}}},LitElement:{id:"litelement",icon:"polymer",url:"https://lit-element.polymer-project.org/",npm:"lit-element",test:function(e){if(e.litElementVersions&&e.litElementVersions.length){var t=[...e.litElementVersions].sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0}));return{version:t[t.length-1]}}return!1}},"lit-html":{id:"lit-html",icon:"polymer",url:"https://lit-html.polymer-project.org/",npm:"lit-element",test:function(e){if(e.litHtmlVersions&&e.litHtmlVersions.length){var t=[...e.litHtmlVersions].sort((e,t)=>e.localeCompare(t,void 0,{numeric:!0}));return{version:t[t.length-1]}}return!1}},Highcharts:{id:"highcharts",icon:"highcharts",url:"http://www.highcharts.com",npm:"highcharts",test:function(e){return!(!e.Highcharts||!e.Highcharts.Point)&&{version:e.Highcharts.version||UNKNOWN_VERSION}}},InfoVis:{id:\
"jit",icon:"jit",url:"http://philogb.github.com/jit/",test:function(e){return!(!e.$jit||!e.$jit.PieChart)&&{version:e.$jit.version||UNKNOWN_VERSION}}},FlotCharts:{id:"flotcharts",icon:"flotcharts",url:"http://www.flotcharts.org/",npm:"flot",test:function(e){return!(!e.$||!e.$.plot)&&{version:e.$.plot.version||UNKNOWN_VERSION}}},CreateJS:{id:"createjs",icon:"createjs",url:"https://createjs.com/",npm:"createjs",test:function(e){return!(!e.createjs||!e.createjs.promote)&&{version:UNKNOWN_VERSION}}},"Google Maps":{id:"gmaps",icon:"gmaps",url:"https://developers.google.com/maps/",test:function(e){return!(!e.google||!e.google.maps)&&{version:e.google.maps.version||UNKNOWN_VERSION}}},jQuery:{id:"jquery",icon:"jquery",url:"http://jquery.com",npm:"jquery",test:function(e){var t=e.jQuery||e.$;return!!(t&&t.fn&&t.fn.jquery)&&{version:t.fn.jquery.replace(/[^\\d+\\.+]/g,"")||UNKNOWN_VERSION}}},"jQuery (Fast path)":{id:"jquery-fast",icon:"jquery",url:"http://jquery.com",npm:"jquery",test:function(e){v\
ar t=e.jQuery||e.$;return!(!t||!t.fn)&&{version:UNKNOWN_VERSION}}},"jQuery UI":{id:"jquery_ui",icon:"jquery_ui",url:"http://jqueryui.com",npm:"jquery-ui",test:function(e){var t=e.jQuery||e.$||e.$jq||e.$j;if(t&&t.fn&&t.fn.jquery&&t.ui){for(var o="accordion,datepicker,dialog,draggable,droppable,progressbar,resizable,selectable,slider,menu,grid,tabs".split(","),n=[],r=0;r<o.length;r++)t.ui[o[r]]&&n.push(o[r].substr(0,1).toUpperCase()+o[r].substr(1));return{version:t.ui.version||UNKNOWN_VERSION,details:n.length?"Plugins used: "+n.join(","):""}}return!1}},Dojo:{id:"dojo",icon:"dojo",url:"http://dojotoolkit.org",npm:"dojo",test:function(e){return!(!e.dojo||!e.dojo.delegate)&&{version:e.dojo.version?e.dojo.version.toString():UNKNOWN_VERSION,details:"Details: "+(e.dijit?"Uses Dijit":"none")}}},Prototype:{id:"prototype",icon:"prototype",url:"http://prototypejs.org",test:function(e){return!(!e.Prototype||!e.Prototype.BrowserFeatures)&&{version:e.Prototype.Version||UNKNOWN_VERSION}}},Scriptaculou\
s:{id:"scriptaculous",icon:"scriptaculous",url:"http://script.aculo.us",test:function(e){return!(!e.Scriptaculous||!e.Scriptaculous.load)&&{version:e.Scriptaculous.Version||UNKNOWN_VERSION}}},MooTools:{id:"mootools",icon:"mootools",url:"https://mootools.net/",test:function(e){return!(!e.MooTools||!e.MooTools.build)&&{version:e.MooTools.version||UNKNOWN_VERSION}}},Spry:{id:"spry",icon:"spry",url:"http://labs.adobe.com/technologies/spry",test:function(e){return!(!e.Spry||!e.Spry.Data)&&{version:UNKNOWN_VERSION}}},"YUI 2":{id:"yui",icon:"yui",url:"http://developer.yahoo.com/yui/2/",test:function(e){return!(!e.YAHOO||!e.YAHOO.util)&&{version:e.YAHOO.VERSION||UNKNOWN_VERSION}}},"YUI 3":{id:"yui3",icon:"yui3",url:"https://yuilibrary.com/",npm:"yui",test:function(e){return!(!e.YUI||!e.YUI.Env)&&{version:e.YUI.version||UNKNOWN_VERSION}}},Qooxdoo:{id:"qooxdoo",icon:"qooxdoo",url:"http://www.qooxdoo.org/",npm:"qooxdoo",test:function(e){return!(!e.qx||!e.qx.Bootstrap)&&{version:UNKNOWN_VERSION}}}\
,"Ext JS":{id:"extjs",icon:"extjs",url:"https://www.sencha.com/products/extjs/",test:function(e){return e.Ext&&e.Ext.versions?{version:e.Ext.versions.core.version}:!!e.Ext&&{version:e.Ext.version||UNKNOWN_VERSION}}},Ezoic:{id:"ezoic",icon:"ezoic",url:"https://www.ezoic.com/",test:function(e){return!(!e.__ez||!e.__ez.template)&&{version:UNKNOWN_VERSION}}},base2:{id:"base2",icon:"base2",url:"http://code.google.com/p/base2",test:function(e){return!(!e.base2||!e.base2.dom)&&{version:e.base2.version||UNKNOWN_VERSION}}},"Closure Library":{id:"closure",icon:"closure",url:"https://developers.google.com/closure/library/",npm:"google-closure-library",test:function(e){return!(!e.goog||!e.goog.provide)&&{version:UNKNOWN_VERSION}}},"Rapha&euml;l":{id:"raphael",icon:"raphael",url:"http://dmitrybaranovskiy.github.io/raphael/",test:function(e){return!(!e.Raphael||!e.Raphael.circle)&&{version:e.Raphael.version||UNKNOWN_VERSION}}},React:{id:"react",icon:"react",url:"https://reactjs.org/",npm:"react",tes\
t:function(e){function t(e){return null!=e&&null!=e._reactRootContainer}var o=document.getElementById("react-root"),n=document.querySelector("*[data-reactroot]");return!!(t(document.body)||t(document.body.firstElementChild)||null!=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,function(e){return t(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}).nextNode()||o&&o.innerText.length>0||n||e.React&&e.React.Component)&&{version:e.React&&e.React.version||UNKNOWN_VERSION}}},"React (Fast path)":{id:"react-fast",icon:"react",url:"https://reactjs.org/",npm:"react",test:function(e){function t(e){return null!=e&&null!=e._reactRootContainer}var o=document.getElementById("react-root"),n=document.querySelector("*[data-reactroot]");return!!(t(document.body)||t(document.body.firstElementChild)||o||n||e.React)&&{version:e.React&&e.React.version||UNKNOWN_VERSION}}},"Next.js":{id:"next",icon:"next",url:"https://nextjs.org/",npm:"next",test:function(e){return!(!e.__NEXT_DATA__||!e.__NEX\
T_DATA__.buildId)&&{version:window.next&&window.next.version||UNKNOWN_VERSION}}},"Next.js (Fast path)":{id:"next-fast",icon:"next",url:"https://nextjs.org/",npm:"next",test:function(e){return!!e.__NEXT_DATA__&&{version:UNKNOWN_VERSION}}},Preact:{id:"preact",icon:"preact",url:"https://preactjs.com/",npm:"preact",test:function(e){var t="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("preactattr");function o(e){return"__k"in e&&"props"in e.__k&&"type"in e.__k||("_component"in e||"__preactattr_"in e||t&&null!=e[t])}function n(e){return null!=e&&o(e)&&e}var r=n(document.body)||n(document.body.firstElementChild);if(r||(r=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,function(e){return o(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}).nextNode()),r||e.preact){var i=UNKNOWN_VERSION;return r&&("__k"in r&&(i="10"),"__preactattr_"in r&&(i="8"),t&&null!=r[t]&&(i="7")),{version:i}}return!1}},"Preact (Fast path)":{id:"preact-fast",icon:"preact",url:"https://preactjs.com/",n\
pm:"preact",test:function(e){var t=UNKNOWN_VERSION;function o(e){return null!=e&&function(e){return null!=e.__k?(t="10",!0):null!=e._component||null!=e.__preactattr_}(e)}return!(!o(document.body)&&!o(document.body.firstElementChild)&&!e.preact)&&{version:t}}},Modernizr:{id:"modernizr",icon:"modernizr",url:"https://modernizr.com/",npm:"modernizr",test:function(e){return!(!e.Modernizr||!e.Modernizr.addTest)&&{version:e.Modernizr._version||UNKNOWN_VERSION}}},"Processing.js":{id:"processingjs",icon:"processingjs",url:"http://processingjs.org",npm:"processing-js",test:function(e){return!(!e.Processing||!e.Processing.box)&&{version:Processing.version||UNKNOWN_VERSION}}},Backbone:{id:"backbone",icon:"backbone",url:"http://backbonejs.org/",npm:"backbone",test:function(e){return!(!e.Backbone||!e.Backbone.Model.extend)&&{version:e.Backbone.VERSION||UNKNOWN_VERSION}}},Leaflet:{id:"leaflet",icon:"leaflet",url:"http://leafletjs.com",npm:"leaflet",test:function(e){return!(!e.L||!e.L.GeoJSON||!e.L.ma\
rker&&!e.L.Marker)&&{version:e.L.version||e.L.VERSION||UNKNOWN_VERSION}}},Mapbox:{id:"mapbox",icon:"mapbox",url:"https://www.mapbox.com/",npm:"mapbox-gl",test:function(e){return!!(e.L&&e.L.mapbox&&e.L.mapbox.geocoder)&&{version:e.L.mapbox.VERSION||UNKNOWN_VERSION}}},"Lo-Dash":{id:"lodash",icon:"lodash",url:"https://lodash.com/",npm:"lodash",test:function(e){var t="function"==typeof(t=e._)&&t,o="function"==typeof(o=t&&t.chain)&&o,n=(o||t||function(){return{}})(1);return!(!t||!n.__wrapped__)&&{version:t.VERSION||UNKNOWN_VERSION}}},Underscore:{id:"underscore",icon:"underscore",url:"http://underscorejs.org/",npm:"underscore",test:function(e){return!(!e._||"function"!=typeof e._.tap||d41d8cd98f00b204e9800998ecf8427e_LibraryDetectorTests["Lo-Dash"].test(e))&&{version:e._.VERSION||UNKNOWN_VERSION}}},Sammy:{id:"sammy",icon:"sammy",url:"http://sammyjs.org",test:function(e){return!(!e.Sammy||!e.Sammy.Application.curry)&&{version:e.Sammy.VERSION||UNKNOWN_VERSION}}},Rico:{id:"rico",icon:"rico",url\
:"http://openrico.sourceforge.net/examples/index.html",test:function(e){return!(!e.Rico||!window.Rico.checkIfComplete)&&{version:e.Rico.Version||UNKNOWN_VERSION}}},MochiKit:{id:"mochikit",icon:"mochikit",url:"https://mochi.github.io/mochikit/",test:function(e){return!(!e.MochiKit||!e.MochiKit.Base.module)&&{version:MochiKit.VERSION||UNKNOWN_VERSION}}},"gRapha&euml;l":{id:"graphael",icon:"graphael",url:"https://github.com/DmitryBaranovskiy/g.raphael",test:function(e){return!(!e.Raphael||!e.Raphael.fn.g)&&{version:UNKNOWN_VERSION}}},Glow:{id:"glow",icon:"glow",url:"http://www.bbc.co.uk/glow/",test:function(e){return e.gloader&&e.gloader.getRequests?{version:UNKNOWN_VERSION}:e.glow&&e.glow.dom?{version:e.glow.VERSION||UNKNOWN_VERSION}:!!e.Glow&&{version:e.Glow.version||UNKNOWN_VERSION}}},"Socket.IO":{id:"socketio",icon:"socketio",url:"https://socket.io/",npm:"socket.io",test:function(e){return!(!e.io||!e.io.sockets&&!e.io.Socket)&&{version:e.io.version||UNKNOWN_VERSION}}},Mustache:{id:"mu\
stache",icon:"mustache",url:"http://mustache.github.io/",npm:"mustache",test:function(e){return!(!e.Mustache||!e.Mustache.to_html)&&{version:e.Mustache.version||UNKNOWN_VERSION}}},"Fabric.js":{id:"fabricjs",icon:"icon38",url:"http://fabricjs.com/",npm:"fabric",test:function(e){return!(!e.fabric||!e.fabric.util)&&{version:e.fabric.version||UNKNOWN_VERSION}}},FuseJS:{id:"fusejs",icon:"fusejs",url:"http://fusejs.io/",npm:"fuse.js",test:function(e){return!!e.Fuse&&{version:UNKNOWN_VERSION}}},"Tween.js":{id:"tweenjs",icon:"icon38",url:"https://github.com/tweenjs/tween.js",npm:"tween.js",test:function(e){return!(!e.TWEEN||!e.TWEEN.Easing)&&{version:UNKNOWN_VERSION}}},SproutCore:{id:"sproutcore",icon:"sproutcore",url:"http://sproutcore.com/",test:function(e){return!(!e.SC||!e.SC.Application)&&{version:UNKNOWN_VERSION}}},"Zepto.js":{id:"zepto",icon:"zepto",url:"http://zeptojs.com",npm:"zepto",test:function(e){return!(!e.Zepto||!e.Zepto.fn)&&{version:UNKNOWN_VERSION}}},"three.js":{id:"threejs",\
icon:"icon38",url:"https://threejs.org/",npm:"three",test:function(e){return e.THREE&&e.THREE.REVISION?{version:"r"+e.THREE.REVISION}:!!e.THREE&&{version:UNKNOWN_VERSION}}},PhiloGL:{id:"philogl",icon:"philogl",url:"http://www.senchalabs.org/philogl/",npm:"philogl",test:function(e){return!(!e.PhiloGL||!e.PhiloGL.Camera)&&{version:e.PhiloGL.version||UNKNOWN_VERSION}}},CamanJS:{id:"camanjs",icon:"camanjs",url:"http://camanjs.com/",npm:"caman",test:function(e){return e.Caman&&e.Caman.version?{version:e.Caman.version.release}:!!e.Caman&&{version:UNKNOWN_VERSION}}},yepnope:{id:"yepnope",icon:"yepnope",url:"http://yepnopejs.com/",test:function(e){return!(!e.yepnope||!e.yepnope.injectJs)&&{version:UNKNOWN_VERSION}}},LABjs:{id:"labjs",icon:"icon38",url:"https://github.com/getify/LABjs",test:function(e){return!(!e.$LAB||!e.$LAB.setOptions)&&{version:UNKNOWN_VERSION}}},"Head JS":{id:"headjs",icon:"headjs",url:"http://headjs.com/",npm:"headjs",test:function(e){return!(!e.head||!e.head.js)&&{versio\
n:UNKNOWN_VERSION}}},ControlJS:{id:"controljs",icon:"icon38",url:"http://stevesouders.com/controljs/",test:function(e){return!(!e.CJS||!e.CJS.start)&&{version:UNKNOWN_VERSION}}},RequireJS:{id:"requirejs",icon:"requirejs",url:"http://requirejs.org/",npm:"requirejs",test:function(e){var t=e.require||e.requirejs;return!(!t||!(t.load||t.s&&t.s.contexts&&t.s.contexts._&&(t.s.contexts._.loaded||t.s.contexts._.load)))&&{version:t.version||UNKNOWN_VERSION}}},RightJS:{id:"rightjs",icon:"rightjs",url:"http://rightjs.org/",test:function(e){return!(!e.RightJS||!e.RightJS.isNode)&&{version:e.RightJS.version||UNKNOWN_VERSION}}},"jQuery Tools":{id:"jquerytools",icon:"jquerytools",url:"http://jquerytools.github.io/",test:function(e){var t=e.jQuery||e.$;return!(!t||!t.tools)&&{version:t.tools.version||UNKNOWN_VERSION}}},Pusher:{id:"pusher",icon:"pusher",url:"https://pusher.com/docs/",npm:"pusher-js",test:function(e){return!(!e.Pusher||!e.Pusher.Channel)&&{version:e.Pusher.VERSION||UNKNOWN_VERSION}}},"P\
aper.js":{id:"paperjs",icon:"paperjs",url:"http://paperjs.org/",npm:"paper",test:function(e){return!(!e.paper||!e.paper.Point)&&{version:e.paper.version||UNKNOWN_VERSION}}},Swiffy:{id:"swiffy",icon:"icon38",url:"https://developers.google.com/swiffy/",test:function(e){return!(!e.swiffy||!e.swiffy.Stage)&&{version:UNKNOWN_VERSION}}},Move:{id:"move",icon:"move",url:"https://github.com/rsms/move",npm:"move",test:function(e){return!(!e.move||!e.move.compile)&&{version:e.move.version()||UNKNOWN_VERSION}}},AmplifyJS:{id:"amplifyjs",icon:"amplifyjs",url:"http://amplifyjs.com/",npm:"amplifyjs",test:function(e){return!(!e.amplify||!e.amplify.publish)&&{version:UNKNOWN_VERSION}}},"Popcorn.js":{id:"popcornjs",icon:"popcornjs",url:"https://github.com/mozilla/popcorn-js/",test:function(e){return!(!e.Popcorn||!e.Popcorn.Events)&&{version:e.Popcorn.version||UNKNOWN_VERSION}}},D3:{id:"d3",icon:"d3",url:"https://d3js.org/",npm:"d3",test:function(e){return!(!e.d3||!e.d3.select)&&{version:e.d3.version||UN\
KNOWN_VERSION}}},Handlebars:{id:"handlebars",icon:"handlebars",url:"http://handlebarsjs.com/",npm:"handlebars",test:function(e){return!(!e.Handlebars||!e.Handlebars.compile)&&{version:e.Handlebars.VERSION||UNKNOWN_VERSION}}},Handsontable:{id:"handsontable",icon:"handsontable",url:"https://handsontable.com/",npm:"handsontable",test:function(e){return!(!e.Handsontable||!e.Handsontable.Core)&&{version:e.Handsontable.version||UNKNOWN_VERSION}}},Knockout:{id:"knockout",icon:"knockout",url:"http://knockoutjs.com/",npm:"knockout",test:function(e){return!(!e.ko||!e.ko.applyBindings)&&{version:e.ko.version||UNKNOWN_VERSION}}},Spine:{id:"spine",icon:"icon38",url:"http://spine.github.io/",test:function(e){return!(!e.Spine||!e.Spine.Controller)&&{version:e.Spine.version||UNKNOWN_VERSION}}},"jQuery Mobile":{id:"jquery-mobile",icon:"jquery_mobile",url:"http://jquerymobile.com/",npm:"jquery-mobile",test:function(e){var t=e.jQuery||e.$||e.$jq||e.$j;return!!(t&&t.fn&&t.fn.jquery&&t.mobile)&&{version:t.\
mobile.version||UNKNOWN_VERSION}}},"WebFont Loader":{id:"webfontloader",icon:"icon38",url:"https://github.com/typekit/webfontloader",npm:"webfontloader",test:function(e){return!(!e.WebFont||!e.WebFont.load)&&{version:UNKNOWN_VERSION}}},Angular:{id:"angular",icon:"angular",url:"https://angular.io/",npm:"@angular/core",test:function(e){var t=e.document.querySelector("[ng-version]");return t?{version:t.getAttribute("ng-version")||UNKNOWN_VERSION}:!!(e.ng&&e.ng.probe instanceof Function)&&{version:UNKNOWN_VERSION}}},AngularJS:{id:"angularjs",icon:"angularjs",url:"https://angularjs.org/",npm:"angular",test:function(e){var t=e.angular;return!!(t&&t.version&&t.version.full)&&{version:t.version.full}}},Ionic:{id:"ionic",icon:"ionic",url:"https://ionicframework.com/",npm:"@ionic/cli",test:function(e){var t=e.document.querySelector("ion-app");return!(!t||"ION-APP"!==t.nodeName)&&{version:UNKNOWN_VERSION}}},"Ember.js":{id:"emberjs",icon:"emberjs",url:"https://emberjs.com/",npm:"ember-source",test\
:function(e){var t=e.Ember||e.Em;return!(!t||!t.GUID_KEY)&&{version:t.VERSION||UNKNOWN_VERSION}}},"Hammer.js":{id:"hammerjs",icon:"hammerjs",url:"http://eightmedia.github.io/hammer.js/",npm:"hammerjs",test:function(e){return!(!e.Hammer||!e.Hammer.Pinch)&&{version:e.Hammer.VERSION||"&lt; 1.0.10"}}},"Visibility.js":{id:"visibilityjs",icon:"icon38",url:"https://github.com/ai/visibilityjs",npm:"visibilityjs",test:function(e){return!(!e.Visibility||!e.Visibility.every)&&{version:UNKNOWN_VERSION}}},"Velocity.js":{id:"velocityjs",icon:"icon38",url:"http://velocityjs.org/",npm:"velocity-animate",test:function(e){var t=e.jQuery||e.$,o=t?t.Velocity:e.Velocity;return o&&o.RegisterEffect&&o.version?{version:o.version.major+"."+o.version.minor+"."+o.version.patch}:!(!o||!o.RegisterEffect)&&{version:UNKNOWN_VERSION}}},"IfVisible.js":{id:"ifvisiblejs",icon:"icon38",url:"http://serkanyersen.github.io/ifvisible.js/",npm:"ifvisible.js",test:function(e){var t=e.ifvisible;return!(!t||"ifvisible.object.eve\
nt.identifier"!==t.__ceGUID)&&{version:UNKNOWN_VERSION}}},"Pixi.js":{id:"pixi",icon:"pixi",url:"http://www.pixijs.com/",npm:"pixi.js",test:function(e){var t=e.PIXI;return!!(t&&t.WebGLRenderer&&t.VERSION)&&{version:t.VERSION.replace("v","")||UNKNOWN_VERSION}}},"DC.js":{id:"dcjs",icon:"dcjs",url:"http://dc-js.github.io/dc.js/",npm:"dc",test:function(e){var t=e.dc;return!(!t||!t.registerChart)&&{version:t.version||UNKNOWN_VERSION}}},"GreenSock JS":{id:"greensock",icon:"greensock",url:"https://greensock.com/gsap",npm:"gsap",test:function(e){return!(!e.TweenMax||!e.TweenMax.pauseAll)&&{version:e.TweenMax.version||UNKNOWN_VERSION}}},FastClick:{id:"fastclick",icon:"fastclick",url:"https://github.com/ftlabs/fastclick",npm:"fastclick",test:function(e){return!(!e.FastClick||!e.FastClick.notNeeded)&&{version:UNKNOWN_VERSION}}},Isotope:{id:"isotope",icon:"isotope",url:"https://isotope.metafizzy.co/",npm:"isotope-layout",test:function(e){return!!(e.Isotope||null!=e.$&&e.$.Isotope)&&{version:UNKNOWN\
_VERSION}}},Marionette:{id:"marionette",icon:"marionette",url:"https://marionettejs.com/",npm:"backbone.marionette",test:function(e){return!(!e.Marionette||!e.Marionette.Application)&&{version:e.Marionette.VERSION||UNKNOWN_VERSION}}},Can:{id:"canjs",icon:"canjs",url:"https://canjs.com/",npm:"can",test:function(e){return!(!e.can||!e.can.Construct)&&{version:e.can.VERSION||UNKNOWN_VERSION}}},Vue:{id:"vue",icon:"vue",url:"https://vuejs.org/",npm:"vue",test:function(e){return!(null===document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,function(e){return null!=e.__vue__?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}).nextNode()&&!e.Vue)&&{version:e.Vue&&e.Vue.version||UNKNOWN_VERSION}}},"Vue (Fast path)":{id:"vue-fast",icon:"vue",url:"https://vuejs.org/",npm:"vue",test:function(e){return!!e.Vue&&{version:e.Vue&&e.Vue.version||UNKNOWN_VERSION}}},"Nuxt.js":{id:"nuxt",icon:"nuxt",url:"https://nuxtjs.org/",npm:"nuxt",test:function(e){return!!(e.__NUXT__||e.$nuxt||[...e.document.qu\
erySelectorAll("*")].some(e=>e.__vue__?.nuxt))&&{version:UNKNOWN_VERSION}}},"Nuxt.js (Fast path)":{id:"nuxt-fast",icon:"nuxt",url:"https://nuxtjs.org/",npm:"nuxt",test:function(e){return!(!e.__NUXT__&&!e.$nuxt)&&{version:UNKNOWN_VERSION}}},Two:{id:"two",icon:"two",url:"https://two.js.org/",npm:"two.js",test:function(e){return!(!e.Two||!e.Two.Utils)&&{version:e.Two.Version||UNKNOWN_VERSION}}},Brewser:{id:"brewser",icon:"brewser",url:"https://robertpataki.github.io/brewser/",npm:"brewser",test:function(e){return!(!e.BREWSER||!e.BREWSER.ua)&&{version:BREWSER.VERSION||UNKNOWN_VERSION}}},"Material Design Lite":{id:"materialdesignlite",icon:"mdl",url:"https://getmdl.io/",npm:"material-design-lite",test:function(e){return!(!e.componentHandler||!e.componentHandler.upgradeElement)&&{version:UNKNOWN_VERSION}}},"Kendo UI":{id:"kendoui",icon:"kendoui",url:"https://github.com/telerik/kendo-ui-core",npm:"kendo-ui-core",test:function(e){return!!(e.kendo&&e.kendo.View&&e.kendo.View.extend)&&{version:e\
.kendo.version||UNKNOWN_VERSION}}},"Matter.js":{id:"matterjs",icon:"matter-js",url:"http://brm.io/matter-js/",npm:"matter-js",test:function(e){return!(!e.Matter||!e.Matter.Engine)&&{version:UNKNOWN_VERSION}}},Riot:{id:"riot",icon:"riot",url:"http://riotjs.com/",npm:"riot",test:function(e){return!(!e.riot||!e.riot.mixin)&&{version:e.riot.version||UNKNOWN_VERSION}}},"Sea.js":{id:"seajs",icon:"icon38",url:"https://seajs.github.io/seajs/docs/",npm:"seajs",test:function(e){return!(!e.seajs||!e.seajs.use)&&{version:e.seajs.version||UNKNOWN_VERSION}}},"Moment.js":{id:"momentjs",icon:"momentjs",url:"http://momentjs.com/",npm:"moment",test:function(e){return!(!e.moment||!e.moment.isMoment&&!e.moment.lang)&&{version:e.moment.version||UNKNOWN_VERSION}}},"Moment Timezone":{id:"moment-timezone",icon:"momentjs",url:"http://momentjs.com/timezone/",npm:"moment-timezone",test:function(e){return!(!e.moment||!e.moment.tz)&&{version:e.moment.tz.version||UNKNOWN_VERSION}}},ScrollMagic:{id:"scrollmagic",ico\
n:"scrollmagic",url:"http://scrollmagic.io/",npm:"scrollmagic",test:function(e){return!(!e.ScrollMagic||!e.ScrollMagic.Controller)&&{version:ScrollMagic.version||UNKNOWN_VERSION}}},SWFObject:{id:"swfobject",icon:"icon38",url:"https://github.com/swfobject/swfobject",test:function(e){return e.swfobject&&e.swfobject.embedSWF?{version:e.swfobject.version||UNKNOWN_VERSION}:!(!e.deconcept||!e.deconcept.SWFObject)&&{version:UNKNOWN_VERSION}}},FlexSlider:{id:"flexslider",icon:"icon38",url:"https://woocommerce.com/flexslider/",npm:"flexslider",test:function(e){var t=e.jQuery||e.$||e.$jq||e.$j;return!!(t&&t.fn&&t.fn.jquery&&t.flexslider)&&{version:UNKNOWN_VERSION}}},SPF:{id:"spf",icon:"icon38",url:"https://youtube.github.io/spfjs/",npm:"spf",test:function(e){return!(!e.spf||!e.spf.init)&&{version:UNKNOWN_VERSION}}},"Numeral.js":{id:"numeraljs",icon:"icon38",url:"http://numeraljs.com/",npm:"numeraljs",test:function(e){return!(!e.numeral||!e.isNumeral)&&{version:e.numeral.version||UNKNOWN_VERSION}\
}},"boomerang.js":{id:"boomerangjs",icon:"icon38",url:"https://soasta.github.io/boomerang/",npm:"boomerangjs",test:function(e){return!!(e.BOOMR&&e.BOOMR.utils&&e.BOOMR.init)&&{version:e.BOOMR.version||UNKNOWN_VERSION}}},Framer:{id:"framer",icon:"framer",url:"https://framer.com/",npm:"framerjs",test:function(e){return!(!e.Framer||!e.Framer.Layer)&&{version:e.Framer.Version.build||UNKNOWN_VERSION}}},Marko:{id:"marko",icon:"marko",url:"https://markojs.com/",npm:"marko",test:function(e){return!!document.querySelector("[data-marko-key], [data-marko]")&&{version:UNKNOWN_VERSION}}},AMP:{id:"amp",icon:"amp",url:"https://amp.dev/",npm:"https://www.npmjs.com/org/ampproject",test:function(e){var t=e.document.documentElement.getAttribute("amp-version");return!!t&&{version:t}}},Gatsby:{id:"gatsby",icon:"gatsby",url:"https://www.gatsbyjs.org/",npm:"gatsby",test:function(e){return!!document.getElementById("___gatsby")&&{version:UNKNOWN_VERSION}}},Shopify:{id:"shopify",icon:"shopify",url:"https://www.\
shopify.com/",npm:null,test:function(e){return!(!e.Shopify||!e.Shopify.shop)&&{version:UNKNOWN_VERSION}}},Magento:{id:"magento",icon:"magento",url:"https://magento.com/",npm:null,test:function(e){const t=/\\/static(?:\\/version\\d+)?\\/frontend\\/.+\\/.+\\/requirejs\\/require(?:\\.min)?\\.js/;return!!Array.from(document.querySelectorAll("script[src]")||[]).some(e=>t.test(e.src))&&{version:2}}},WordPress:{id:"wordpress",icon:"wordpress",url:"https://wordpress.org/",npm:null,test:function(e){const t=!!document.querySelector('link[rel="https://api.w.org/"]'),o=!!document.querySelectorAll('link[href*="wp-includes"], script[src*="wp-includes"]').length;if(!t&&!o)return!1;const n=document.querySelector('meta[name=generator][content^="WordPress"]');return{version:n?n.getAttribute("content").replace(/^\\w+\\s/,""):UNKNOWN_VERSION}}},Wix:{id:"wix",icon:"wix",url:"https://www.wix.com/",npm:null,test:function(e){return(e.wixPerformanceMeasurements&&e.wixPerformanceMeasurements.info||!(!e.wixBiSession||!e.wix\
BiSession.info))&&{version:UNKNOWN_VERSION}}},Workbox:{id:"workbox",icon:"workbox",url:"https://developers.google.com/web/tools/workbox/",npm:"workbox-sw",test:async function(e){var t=e.navigator;if(!("serviceWorker"in t))return!1;const{timeoutPromise:o,clearTimeout:n}=_createTimeoutHelper(),r=t.serviceWorker.getRegistration().then(function(e){var o=t.serviceWorker.controller?t.serviceWorker.controller.scriptURL:e.active.scriptURL;return fetch(o,{credentials:"include",headers:{"service-worker":"script"}}).then(function(e){return e.text()}).then(function(e){if(/new Workbox|new workbox|workbox\\.precaching\\.|workbox\\.strategies/gm.test(e)){var t=/workbox.*?\\b((0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\\+[0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*)?)\\b/gim.exec(e),o=UNKNOWN_VERSION;return Array.isArray(t)&&t.length>1&&t[1]&&(o=t[1]),{version:o}}return!1})}).catch(function(e){return!1});return Promise.race([r,o]).catch(f\
unction(e){return!1}).finally(e=>(n(),e))}},Boq:{id:"boq",icon:"icon38",url:"https://github.com/johnmichel/Library-Detector-for-Chrome/pull/143",npm:null,test:function(e){return!!e.WIZ_global_data&&{version:UNKNOWN_VERSION}}},Wiz:{id:"wiz",icon:"icon38",url:"https://github.com/johnmichel/Library-Detector-for-Chrome/pull/147",npm:null,test:function(e){return!!document.__wizdispatcher&&{version:UNKNOWN_VERSION}}},"core-js":{id:"corejs",icon:"icon38",url:"https://github.com/zloirock/core-js",npm:"core-js",test:function(e){const t=e["__core-js_shared__"],o=e.core;if(t){const e=t.versions;return{version:Array.isArray(e)?e.map(e=>\`core-js-\${e.mode}@\${e.version}\`).join("; "):UNKNOWN_VERSION}}return!!o&&{version:o.version||UNKNOWN_VERSION}}},Drupal:{id:"drupal",icon:"drupal",url:"https://www.drupal.org/",npm:null,test:function(e){const t=document.querySelector('meta[name="generator"][content^="Drupal"]'),o=t?t.getAttribute("content").replace(/\\D+/gi,""):UNKNOWN_VERSION,n=/\\/sites\\/(?:default|a\
ll)\\/(?:themes|modules|files)/,r=Array.from(document.querySelectorAll("link,style,script")||[]);return!!(r.some(e=>n.test(e.src))||r.some(e=>n.test(e.href))||t||e.Drupal&&e.Drupal.behaviors)&&{version:o}}},TYPO3:{id:"typo3",icon:"typo3",url:"https://typo3.org/",npm:null,test:function(e){const t=document.querySelector('meta[name="generator"][content^="TYPO3"]'),o=/\\/(typo3conf|typo3temp|fileadmin)/,n=Array.from(document.querySelectorAll("link,style,script")||[]);return!!(t||n.some(e=>o.test(e.src))||n.some(e=>o.test(e.href)))&&{version:UNKNOWN_VERSION}}},"Create React App":{id:"create-react-app",icon:"cra",url:"https://create-react-app.dev/",npm:"react-scripts",test:function(e){let t,o,n=e.document.body.firstElementChild;do{"noscript"===n.localName?t=n:"root"===n.id&&(o=n)}while(n=n.nextElementSibling);return!!(o&&t&&/You need to enable JavaScript to run this app/.test(t.textContent))&&{version:UNKNOWN_VERSION}}},"Guess.js":{id:"guessjs",icon:"guessjs",url:"https://guess-js.github.io/",\
test:function(e){return!(!e.__GUESS__||!e.__GUESS__.guess)&&{version:UNKNOWN_VERSION}}},"October CMS":{id:"octobercms",icon:"october",url:"https://octobercms.com/",npm:null,test:function(e){const t=document.querySelector('meta[name="generator"][content^="OctoberCMS"]'),o=document.querySelector('meta[name="generator"][content^="October CMS"]'),n=/\\/modules\\/system\\/assets\\/(css|js)\\/framework(\\.extras|\\.combined)?(-min)?/,r=Array.from(document.querySelectorAll("link,style,script")||[]);return!!(t||o||r.some(e=>n.test(e.src||e.href)))&&{version:UNKNOWN_VERSION}}},Joomla:{id:"joomla",icon:"joomla",url:"https://www.joomla.org/",npm:null,test:function(e){const t=document.querySelector('meta[name=generator][content^="Joomla"]'),o=!!document.querySelectorAll('script[src*="/media/jui/js/bootstrap.min.js"]').length;return t?{version:t.getAttribute("content").replace(/^\\w+\\s/,"")}:!(!e.Joomla&&!o)&&{version:UNKNOWN_VERSION}}},Sugar:{id:"sugar",icon:"sugar",url:"https://sugarjs.com",npm:"sugar",t\
est:function(e){return e.Sugar?{version:e.Sugar.VERSION||UNKNOWN_VERSION}:!!e.Array.SugarMethods&&{version:UNKNOWN_VERSION}}},Bento:{id:"bentojs",icon:"bentojs",url:"https://bentojs.dev",npm:"https://www.npmjs.com/org/bentoproject",test:function(e){return!(!e.BENTO||!e.BENTO.push)&&{version:UNKNOWN_VERSION}}},"WP Rocket":{id:"wp-rocket",icon:"wp-rocket",url:"https://wp-rocket.me/",npm:null,test:async function(e){const t="undefined"!=typeof RocketLazyLoadScripts||"undefined"!=typeof RocketPreloadLinksConfig||"undefined"!=typeof rocket_lazy,o=!!document.querySelector("style#wpr-usedcss"),n=document.lastChild.nodeType===Node.COMMENT_NODE&&document.lastChild.textContent.includes("WP Rocket");return!!(o||t||n)&&{version:UNKNOWN_VERSION}}},NitroPack:{id:"nitropack",icon:"nitropack",url:"https://nitropack.io/",npm:null,test:async function(e){return!!document.querySelector('meta[name="generator"][content="NitroPack"]')&&{version:UNKNOWN_VERSION}}},Remix:{id:"remix",icon:"remix",url:"https://re\
mix.run/",npm:"remix",test:function(e){return!!e.__remixContext&&{version:UNKNOWN_VERSION}}}};`;
    __name(detectLibraries, "detectLibraries");
    Stacks = class _Stacks extends base_gatherer_default {
      static {
        __name(this, "Stacks");
      }
      constructor() {
        super();
        this.meta = {
          supportedModes: ["snapshot", "navigation"]
        };
      }
      /**
       * @param {LH.Gatherer.Driver['executionContext']} executionContext
       * @return {Promise<LH.Artifacts['Stacks']>}
       */
      static async collectStacks(executionContext) {
        const status = { msg: "Collect stacks", id: "lh:gather:collectStacks" };
        lighthouse_logger_default.time(status);
        const jsLibraries = await executionContext.evaluate(detectLibraries, {
          args: [],
          deps: [libDetectorSource]
        });
        const stacks = jsLibraries.map((lib) => ({
          detector: "js",
          id: lib.id,
          name: lib.name,
          version: typeof lib.version === "number" ? String(lib.version) : lib.version || void 0,
          npm: lib.npm || void 0
        }));
        lighthouse_logger_default.timeEnd(status);
        return stacks;
      }
      /**
       * @param {LH.Gatherer.Context} context
       * @return {Promise<LH.Artifacts['Stacks']>}
       */
      async getArtifact(context) {
        try {
          return await _Stacks.collectStacks(context.driver.executionContext);
        } catch {
          return [];
        }
      }
    };
    stacks_default = Stacks;
  }
});

// core/gather/gatherers/viewport-dimensions.js
var viewport_dimensions_exports = {};
__export(viewport_dimensions_exports, {
  default: () => viewport_dimensions_default
});
function getViewportDimensions() {
  return {
    innerWidth: window.innerWidth,
    innerHeight: window.innerHeight,
    outerWidth: window.outerWidth,
    outerHeight: window.outerHeight,
    devicePixelRatio: window.devicePixelRatio
  };
}
var ViewportDimensions, viewport_dimensions_default;
var init_viewport_dimensions = __esm({
  "core/gather/gatherers/viewport-dimensions.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(getViewportDimensions, "getViewportDimensions");
    ViewportDimensions = class extends base_gatherer_default {
      static {
        __name(this, "ViewportDimensions");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["snapshot", "timespan", "navigation"]
      };
      /**
       * @param {LH.Gatherer.Context} passContext
       * @return {Promise<LH.Artifacts.ViewportDimensions>}
       */
      async getArtifact(passContext) {
        const driver = passContext.driver;
        const dimensions = await driver.executionContext.evaluate(getViewportDimensions, {
          args: [],
          useIsolation: true
        });
        const allNumeric = Object.values(dimensions).every(Number.isFinite);
        if (!allNumeric) {
          const results = JSON.stringify(dimensions);
          throw new Error(`ViewportDimensions results were not numeric: ${results}`);
        }
        return dimensions;
      }
    };
    viewport_dimensions_default = ViewportDimensions;
  }
});

// core/gather/gatherers/webmcp-schema.js
var webmcp_schema_exports = {};
__export(webmcp_schema_exports, {
  default: () => webmcp_schema_default
});
var WebMcpSchemaIssues, webmcp_schema_default;
var init_webmcp_schema = __esm({
  "core/gather/gatherers/webmcp-schema.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    init_dom();
    init_page_functions();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    WebMcpSchemaIssues = class extends base_gatherer_default {
      static {
        __name(this, "WebMcpSchemaIssues");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["navigation", "snapshot"]
      };
      constructor() {
        super();
        this._issues = [];
        this._onIssueAdded = this.onIssueAdded.bind(this);
      }
      /**
       * @param {Record<string, any>} event
       */
      onIssueAdded(event) {
        const issue = event.issue;
        if (!issue || issue.code !== "GenericIssue") return;
        const details = issue.details?.genericIssueDetails;
        if (!details) return;
        const errorType = details.errorType;
        if (errorType && (errorType === "FormModelContextMissingToolName" || errorType === "FormModelContextMissingToolDescription" || errorType === "FormModelContextRequiredParameterMissingName" || errorType === "FormModelContextParameterMissingTitleAndDescription" || errorType === "FormModelContextParameterMissingName")) {
          this._issues.push(details);
        }
      }
      /**
       * @param {LH.Gatherer.Context} passContext
       */
      async startInstrumentation(passContext) {
        const session = passContext.driver.defaultSession;
        session.on("Audits.issueAdded", this._onIssueAdded);
        await session.sendCommand("Audits.enable");
      }
      /**
       * @param {LH.Gatherer.Context} passContext
       */
      async stopInstrumentation(passContext) {
        const session = passContext.driver.defaultSession;
        session.off("Audits.issueAdded", this._onIssueAdded);
      }
      /**
       * @param {LH.Gatherer.Context} context
       * @return {Promise<LH.Artifacts.WebMcpSchemaIssue[]>}
       */
      async getArtifact(context) {
        const session = context.driver.defaultSession;
        const promises = this._issues.map(async (issue) => {
          const processedIssue = { ...issue };
          if (issue.violatingNodeId) {
            try {
              const objectId = await resolveNodeIdToObjectId(session, issue.violatingNodeId);
              if (objectId) {
                const nodeDetails = await context.driver.executionContext.evaluateOnObject(
                  pageFunctions.getNodeDetails,
                  {
                    objectId,
                    args: []
                  }
                );
                if (nodeDetails) {
                  processedIssue.nodeDetails = nodeDetails;
                }
              }
            } catch (err) {
            }
          }
          return processedIssue;
        });
        return Promise.all(promises);
      }
    };
    webmcp_schema_default = WebMcpSchemaIssues;
  }
});

// core/gather/gatherers/webmcp.js
var webmcp_exports = {};
__export(webmcp_exports, {
  default: () => webmcp_default
});
var WebMCP, webmcp_default;
var init_webmcp = __esm({
  "core/gather/gatherers/webmcp.js"() {
    "use strict";
    init_process_global();
    init_base_gatherer();
    init_dom();
    init_page_functions();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    WebMCP = class extends base_gatherer_default {
      static {
        __name(this, "WebMCP");
      }
      /** @type {LH.Gatherer.GathererMeta} */
      meta = {
        supportedModes: ["navigation", "snapshot"]
      };
      constructor() {
        super();
        this._tools = [];
        this._isSupported = true;
        this._onToolsAdded = this.onToolsAdded.bind(this);
        this._onToolsRemoved = this.onToolsRemoved.bind(this);
      }
      /**
       * @param {{tools: WebMCPTool[]}} event
       */
      // TODO: Handle WebMCP tools per frame.
      onToolsAdded(event) {
        if (event.tools) {
          this._tools.push(...event.tools);
        }
      }
      /**
       * @param {{tools: WebMCPTool[]}} event
       */
      onToolsRemoved(event) {
        if (event.tools) {
          const removedNames = new Set(event.tools.map((t) => t.name));
          this._tools = this._tools.filter((t) => !removedNames.has(t.name));
        }
      }
      /**
       * @param {LH.Gatherer.Context} passContext
       */
      async startInstrumentation(passContext) {
        const session = passContext.driver.defaultSession;
        session.on("WebMCP.toolsAdded", this._onToolsAdded);
        session.on("WebMCP.toolsRemoved", this._onToolsRemoved);
        try {
          await session.sendCommand("WebMCP.enable");
        } catch (err) {
          if (err.message.includes("'WebMCP.enable' wasn't found")) {
            this._isSupported = false;
            return;
          }
          throw err;
        }
      }
      /**
       * @param {LH.Gatherer.Context} passContext
       */
      async stopInstrumentation(passContext) {
        const session = passContext.driver.defaultSession;
        session.off("WebMCP.toolsAdded", this._onToolsAdded);
        session.off("WebMCP.toolsRemoved", this._onToolsRemoved);
        try {
          await session.sendCommand("WebMCP.disable");
        } catch (err) {
        }
      }
      /**
       * @param {LH.Gatherer.Context} context
       * @param {WebMCPTool} tool
       */
      async _tryResolveToolNodeDetails(context, tool) {
        if (!tool.backendNodeId) {
          return;
        }
        const session = context.driver.defaultSession;
        try {
          const objectId = await resolveNodeIdToObjectId(session, tool.backendNodeId);
          if (!objectId) {
            return;
          }
          const nodeDetails = await context.driver.executionContext.evaluateOnObject(
            pageFunctions.getNodeDetails,
            {
              objectId,
              args: []
            }
          );
          if (nodeDetails) {
            tool.nodeDetails = nodeDetails;
          }
        } catch (err) {
        }
      }
      /**
       * @param {LH.Gatherer.Context} context
       * @return {Promise<LH.Artifacts['WebMCP']>}
       */
      async getArtifact(context) {
        const isSupported = await context.driver.executionContext.evaluate(
          // @ts-expect-error - modelContext is not in types
          () => typeof navigator.modelContext !== "undefined",
          { args: [], useIsolation: true }
        );
        if (!isSupported || !this._isSupported) {
          return { isSupported: false, tools: [] };
        }
        const toolMap = /* @__PURE__ */ new Map();
        for (const tool of this._tools) {
          toolMap.set(tool.name, tool);
        }
        const resolvedTools = [];
        for (const tool of toolMap.values()) {
          await this._tryResolveToolNodeDetails(context, tool);
          resolvedTools.push(tool);
        }
        return {
          isSupported: true,
          tools: resolvedTools
        };
      }
    };
    webmcp_default = WebMCP;
  }
});

// core/audits/accessibility/axe-audit.js
var UIStrings24, str_4, AxeAudit, axe_audit_default;
var init_axe_audit = __esm({
  "core/audits/accessibility/axe-audit.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings24 = {
      /** Label of a table column that identifies HTML elements that have failed an audit. */
      failingElementsHeader: "Failing Elements"
    };
    str_4 = createIcuMessageFn({ url: "core/audits/accessibility/axe-audit.js" }.url, UIStrings24);
    AxeAudit = class extends Audit {
      static {
        __name(this, "AxeAudit");
      }
      /**
       * Base class for audit rules which reflect assessment performed by the aXe accessibility library
       * See https://github.com/dequelabs/axe-core/blob/6b444546cff492a62a70a74a8fc3c62bd4729400/doc/API.md#results-object for result type and format details
       *
       * @param {LH.Artifacts} artifacts Accessibility gatherer artifacts. Note that AxeAudit
       * expects the meta name for the class to match the rule id from aXe.
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const notApplicables = artifacts.Accessibility.notApplicable || [];
        const isNotApplicable = notApplicables.find((result) => result.id === this.meta.id);
        if (isNotApplicable) {
          return {
            score: null,
            notApplicable: true
          };
        }
        const incomplete = artifacts.Accessibility.incomplete || [];
        const incompleteResult = incomplete.find((result) => result.id === this.meta.id);
        if (incompleteResult?.error) {
          return {
            score: null,
            errorMessage: `axe-core Error: ${incompleteResult.error.message || "Unknown error"}`
          };
        }
        const isInformative = this.meta.scoreDisplayMode === Audit.SCORING_MODES.INFORMATIVE;
        const violations = artifacts.Accessibility.violations || [];
        const failureCases = isInformative ? violations.concat(incomplete) : violations;
        const rule = failureCases.find((result) => result.id === this.meta.id);
        const impact = rule?.impact;
        const tags = rule?.tags;
        if (isInformative && !rule) {
          return {
            score: null,
            notApplicable: true
          };
        }
        let items = [];
        if (rule?.nodes) {
          items = rule.nodes.map((axeNode) => ({
            node: {
              ...Audit.makeNodeItem(axeNode.node),
              explanation: axeNode.failureSummary
            },
            subItems: axeNode.relatedNodes.length ? {
              type: "subitems",
              items: axeNode.relatedNodes.map((node) => ({ relatedNode: Audit.makeNodeItem(node) }))
            } : void 0
          }));
        }
        const headings = [
          /* eslint-disable max-len */
          { key: "node", valueType: "node", subItemsHeading: { key: "relatedNode", valueType: "node" }, label: str_4(UIStrings24.failingElementsHeader) }
          /* eslint-enable max-len */
        ];
        let debugData;
        if (impact || tags) {
          debugData = {
            type: "debugdata",
            impact,
            tags
          };
        }
        return {
          score: Number(rule === void 0),
          details: { ...Audit.makeTableDetails(headings, items), debugData }
        };
      }
    };
    axe_audit_default = AxeAudit;
  }
});

// core/audits/accessibility/accesskeys.js
var accesskeys_exports = {};
__export(accesskeys_exports, {
  UIStrings: () => UIStrings25,
  default: () => accesskeys_default
});
var UIStrings25, str_5, Accesskeys, accesskeys_default;
var init_accesskeys = __esm({
  "core/audits/accessibility/accesskeys.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings25 = {
      /** Title of an accessibility audit that evaluates if the accesskey HTML attribute values are unique across all elements. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`[accesskey]` values are unique",
      /** Title of an accessibility audit that evaluates if the ARIA HTML attributes are misaligned with the aria-role HTML attribute specificed on the element, such mismatches are invalid. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`[accesskey]` values are not unique",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Access keys let users quickly focus a part of the page. For proper navigation, each access key must be unique. [Learn more about access keys](https://dequeuniversity.com/rules/axe/4.12/accesskeys)."
    };
    str_5 = createIcuMessageFn({ url: "core/audits/accessibility/accesskeys.js" }.url, UIStrings25);
    Accesskeys = class extends axe_audit_default {
      static {
        __name(this, "Accesskeys");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "accesskeys",
          title: str_5(UIStrings25.title),
          failureTitle: str_5(UIStrings25.failureTitle),
          description: str_5(UIStrings25.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    accesskeys_default = Accesskeys;
  }
});

// core/audits/accessibility/aria-allowed-attr.js
var aria_allowed_attr_exports = {};
__export(aria_allowed_attr_exports, {
  UIStrings: () => UIStrings26,
  default: () => aria_allowed_attr_default
});
var UIStrings26, str_6, ARIAAllowedAttr, aria_allowed_attr_default;
var init_aria_allowed_attr = __esm({
  "core/audits/accessibility/aria-allowed-attr.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings26 = {
      /** Title of an accessibility audit that evaluates if the ARIA HTML attributes are misaligned with the aria-role HTML attribute specificed on the element, such mismatches are invalid. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`[aria-*]` attributes match their roles",
      /** Title of an accessibility audit that evaluates if the ARIA HTML attributes are misaligned with the aria-role HTML attribute specificed on the element, such mismatches are invalid. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`[aria-*]` attributes do not match their roles",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Each ARIA `role` supports a specific subset of `aria-*` attributes. Mismatching these invalidates the `aria-*` attributes. [Learn how to match ARIA attributes to their roles](https://dequeuniversity.com/rules/axe/4.12/aria-allowed-attr)."
    };
    str_6 = createIcuMessageFn({ url: "core/audits/accessibility/aria-allowed-attr.js" }.url, UIStrings26);
    ARIAAllowedAttr = class extends axe_audit_default {
      static {
        __name(this, "ARIAAllowedAttr");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-allowed-attr",
          title: str_6(UIStrings26.title),
          failureTitle: str_6(UIStrings26.failureTitle),
          description: str_6(UIStrings26.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_allowed_attr_default = ARIAAllowedAttr;
  }
});

// core/audits/accessibility/aria-allowed-role.js
var aria_allowed_role_exports = {};
__export(aria_allowed_role_exports, {
  UIStrings: () => UIStrings27,
  default: () => aria_allowed_role_default
});
var UIStrings27, str_7, ARIAAllowedRole, aria_allowed_role_default;
var init_aria_allowed_role = __esm({
  "core/audits/accessibility/aria-allowed-role.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings27 = {
      /** Title of an accessibility audit that evaluates if the ARIA role attributes are valid for the HTML element. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Uses ARIA roles only on compatible elements",
      /** Title of an accessibility audit that evaluates if the ARIA role attributes are valid for the HTML element. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Uses ARIA roles on incompatible elements",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Many HTML elements can only be assigned certain ARIA roles. Using ARIA roles where they are not allowed can interfere with the accessibility of the web page. [Learn more about ARIA roles](https://dequeuniversity.com/rules/axe/4.12/aria-allowed-role)."
    };
    str_7 = createIcuMessageFn({ url: "core/audits/accessibility/aria-allowed-role.js" }.url, UIStrings27);
    ARIAAllowedRole = class extends axe_audit_default {
      static {
        __name(this, "ARIAAllowedRole");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-allowed-role",
          title: str_7(UIStrings27.title),
          failureTitle: str_7(UIStrings27.failureTitle),
          description: str_7(UIStrings27.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_allowed_role_default = ARIAAllowedRole;
  }
});

// core/audits/accessibility/aria-command-name.js
var aria_command_name_exports = {};
__export(aria_command_name_exports, {
  UIStrings: () => UIStrings28,
  default: () => aria_command_name_default
});
var UIStrings28, str_8, AriaCommandName, aria_command_name_default;
var init_aria_command_name = __esm({
  "core/audits/accessibility/aria-command-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings28 = {
      /** Title of an accessibility audit that evaluates if important HTML elements have an accessible name. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`button`, `link`, and `menuitem` elements have accessible names",
      /** Title of an accessibility audit that evaluates if important HTML elements do not have accessible names. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`button`, `link`, and `menuitem` elements do not have accessible names.",
      /** Description of a Lighthouse audit that tells the user *why* they should have accessible names for HTML elements. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "When an element doesn't have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn how to make command elements more accessible](https://dequeuniversity.com/rules/axe/4.12/aria-command-name)."
    };
    str_8 = createIcuMessageFn({ url: "core/audits/accessibility/aria-command-name.js" }.url, UIStrings28);
    AriaCommandName = class extends axe_audit_default {
      static {
        __name(this, "AriaCommandName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-command-name",
          title: str_8(UIStrings28.title),
          failureTitle: str_8(UIStrings28.failureTitle),
          description: str_8(UIStrings28.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_command_name_default = AriaCommandName;
  }
});

// core/audits/accessibility/aria-conditional-attr.js
var aria_conditional_attr_exports = {};
__export(aria_conditional_attr_exports, {
  UIStrings: () => UIStrings29,
  default: () => aria_conditional_attr_default
});
var UIStrings29, str_9, AriaConditionalAttr, aria_conditional_attr_default;
var init_aria_conditional_attr = __esm({
  "core/audits/accessibility/aria-conditional-attr.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2024 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings29 = {
      /** Title of an accessibility audit that checks if ARIA attributes are used as specified for element roles. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "ARIA attributes are used as specified for the element's role",
      /** Title of an accessibility audit that checks if ARIA attributes are used as specified for element roles. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "ARIA attributes are not used as specified for the element's role",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Some ARIA attributes are only allowed on an element under certain conditions. [Learn more about conditional ARIA attributes](https://dequeuniversity.com/rules/axe/4.12/aria-conditional-attr)."
    };
    str_9 = createIcuMessageFn({ url: "core/audits/accessibility/aria-conditional-attr.js" }.url, UIStrings29);
    AriaConditionalAttr = class extends axe_audit_default {
      static {
        __name(this, "AriaConditionalAttr");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-conditional-attr",
          title: str_9(UIStrings29.title),
          failureTitle: str_9(UIStrings29.failureTitle),
          description: str_9(UIStrings29.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_conditional_attr_default = AriaConditionalAttr;
  }
});

// core/audits/accessibility/aria-deprecated-role.js
var aria_deprecated_role_exports = {};
__export(aria_deprecated_role_exports, {
  UIStrings: () => UIStrings30,
  default: () => aria_deprecated_role_default
});
var UIStrings30, str_10, AriaDeprecatedRole, aria_deprecated_role_default;
var init_aria_deprecated_role = __esm({
  "core/audits/accessibility/aria-deprecated-role.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2024 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings30 = {
      /** Title of an accessibility audit that checks if deprecated ARIA roles are used. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Deprecated ARIA roles were not used",
      /** Title of an accessibility audit that checks if deprecated ARIA roles are used. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Deprecated ARIA roles were used",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Deprecated ARIA roles may not be processed correctly by assistive technology. [Learn more about deprecated ARIA roles](https://dequeuniversity.com/rules/axe/4.12/aria-deprecated-role)."
    };
    str_10 = createIcuMessageFn({ url: "core/audits/accessibility/aria-deprecated-role.js" }.url, UIStrings30);
    AriaDeprecatedRole = class extends axe_audit_default {
      static {
        __name(this, "AriaDeprecatedRole");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-deprecated-role",
          title: str_10(UIStrings30.title),
          failureTitle: str_10(UIStrings30.failureTitle),
          description: str_10(UIStrings30.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_deprecated_role_default = AriaDeprecatedRole;
  }
});

// core/audits/accessibility/aria-dialog-name.js
var aria_dialog_name_exports = {};
__export(aria_dialog_name_exports, {
  UIStrings: () => UIStrings31,
  default: () => aria_dialog_name_default
});
var UIStrings31, str_11, AriaDialogName, aria_dialog_name_default;
var init_aria_dialog_name = __esm({
  "core/audits/accessibility/aria-dialog-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings31 = {
      /** Title of an accessibility audit that evaluates if ARIA dialog elements have an accessible name. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: 'Elements with `role="dialog"` or `role="alertdialog"` have accessible names.',
      /** Title of an accessibility audit that evaluates if ARIA dialog elements do not have accessible names. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: 'Elements with `role="dialog"` or `role="alertdialog"` do not have accessible names.',
      /** Description of a Lighthouse audit that tells the user *why* they should have accessible names for ARIA dialog elements. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "ARIA dialog elements without accessible names may prevent screen readers users from discerning the purpose of these elements. [Learn how to make ARIA dialog elements more accessible](https://dequeuniversity.com/rules/axe/4.12/aria-dialog-name)."
    };
    str_11 = createIcuMessageFn({ url: "core/audits/accessibility/aria-dialog-name.js" }.url, UIStrings31);
    AriaDialogName = class extends axe_audit_default {
      static {
        __name(this, "AriaDialogName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-dialog-name",
          title: str_11(UIStrings31.title),
          failureTitle: str_11(UIStrings31.failureTitle),
          description: str_11(UIStrings31.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_dialog_name_default = AriaDialogName;
  }
});

// core/audits/accessibility/aria-hidden-body.js
var aria_hidden_body_exports = {};
__export(aria_hidden_body_exports, {
  UIStrings: () => UIStrings32,
  default: () => aria_hidden_body_default
});
var UIStrings32, str_12, AriaHiddenBody, aria_hidden_body_default;
var init_aria_hidden_body = __esm({
  "core/audits/accessibility/aria-hidden-body.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings32 = {
      /** Title of an accessibility audit that checks if the html <body> element does not have an aria-hidden attribute set on it. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: '`[aria-hidden="true"]` is not present on the document `<body>`',
      /** Title of an accessibility audit that checks if the html <body> element does not have an aria-hidden attribute set on it. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: '`[aria-hidden="true"]` is present on the document `<body>`',
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: 'Assistive technologies, like screen readers, work inconsistently when `aria-hidden="true"` is set on the document `<body>`. [Learn how `aria-hidden` affects the document body](https://dequeuniversity.com/rules/axe/4.12/aria-hidden-body).'
    };
    str_12 = createIcuMessageFn({ url: "core/audits/accessibility/aria-hidden-body.js" }.url, UIStrings32);
    AriaHiddenBody = class extends axe_audit_default {
      static {
        __name(this, "AriaHiddenBody");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-hidden-body",
          title: str_12(UIStrings32.title),
          failureTitle: str_12(UIStrings32.failureTitle),
          description: str_12(UIStrings32.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_hidden_body_default = AriaHiddenBody;
  }
});

// core/audits/accessibility/aria-hidden-focus.js
var aria_hidden_focus_exports = {};
__export(aria_hidden_focus_exports, {
  UIStrings: () => UIStrings33,
  default: () => aria_hidden_focus_default
});
var UIStrings33, str_13, AriaHiddenFocus, aria_hidden_focus_default;
var init_aria_hidden_focus = __esm({
  "core/audits/accessibility/aria-hidden-focus.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings33 = {
      /** Title of an accessibility audit that checks if all elements that have an aria-hidden attribute do not contain focusable descendent elements. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: '`[aria-hidden="true"]` elements do not contain focusable descendents',
      /** Title of an accessibility audit that checks if all elements that have an aria-hidden attribute do not contain focusable descendent elements. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: '`[aria-hidden="true"]` elements contain focusable descendents',
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: 'Focusable descendents within an `[aria-hidden="true"]` element prevent those interactive elements from being available to users of assistive technologies like screen readers. [Learn how `aria-hidden` affects focusable elements](https://dequeuniversity.com/rules/axe/4.12/aria-hidden-focus).'
    };
    str_13 = createIcuMessageFn({ url: "core/audits/accessibility/aria-hidden-focus.js" }.url, UIStrings33);
    AriaHiddenFocus = class extends axe_audit_default {
      static {
        __name(this, "AriaHiddenFocus");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-hidden-focus",
          title: str_13(UIStrings33.title),
          failureTitle: str_13(UIStrings33.failureTitle),
          description: str_13(UIStrings33.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_hidden_focus_default = AriaHiddenFocus;
  }
});

// core/audits/accessibility/aria-input-field-name.js
var aria_input_field_name_exports = {};
__export(aria_input_field_name_exports, {
  UIStrings: () => UIStrings34,
  default: () => aria_input_field_name_default
});
var UIStrings34, str_14, AriaInputFieldName, aria_input_field_name_default;
var init_aria_input_field_name = __esm({
  "core/audits/accessibility/aria-input-field-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings34 = {
      /** Title of an accessibility audit that checks that all ARIA input fields have an accessible name. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "ARIA input fields have accessible names",
      /** Title of an accessibility audit that checks that all ARIA input fields have an accessible name. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "ARIA input fields do not have accessible names",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "When an input field doesn't have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn more about input field labels](https://dequeuniversity.com/rules/axe/4.12/aria-input-field-name)."
    };
    str_14 = createIcuMessageFn({ url: "core/audits/accessibility/aria-input-field-name.js" }.url, UIStrings34);
    AriaInputFieldName = class extends axe_audit_default {
      static {
        __name(this, "AriaInputFieldName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-input-field-name",
          title: str_14(UIStrings34.title),
          failureTitle: str_14(UIStrings34.failureTitle),
          description: str_14(UIStrings34.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_input_field_name_default = AriaInputFieldName;
  }
});

// core/audits/accessibility/aria-meter-name.js
var aria_meter_name_exports = {};
__export(aria_meter_name_exports, {
  UIStrings: () => UIStrings35,
  default: () => aria_meter_name_default
});
var UIStrings35, str_15, AriaMeterName, aria_meter_name_default;
var init_aria_meter_name = __esm({
  "core/audits/accessibility/aria-meter-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings35 = {
      /** Title of an accessibility audit that evaluates if meter HTML elements have an accessible name. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "ARIA `meter` elements have accessible names",
      /** Title of an accessibility audit that evaluates if meter HTML elements do not have accessible names. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "ARIA `meter` elements do not have accessible names.",
      /** Description of a Lighthouse audit that tells the user *why* they should have accessible names for HTML 'meter' elements. This is displayed after a user expands the section to see more. No character length limits. 'Learn how...' becomes link text to additional documentation. */
      description: "When a meter element doesn't have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn how to name `meter` elements](https://dequeuniversity.com/rules/axe/4.12/aria-meter-name)."
    };
    str_15 = createIcuMessageFn({ url: "core/audits/accessibility/aria-meter-name.js" }.url, UIStrings35);
    AriaMeterName = class extends axe_audit_default {
      static {
        __name(this, "AriaMeterName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-meter-name",
          title: str_15(UIStrings35.title),
          failureTitle: str_15(UIStrings35.failureTitle),
          description: str_15(UIStrings35.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_meter_name_default = AriaMeterName;
  }
});

// core/audits/accessibility/aria-progressbar-name.js
var aria_progressbar_name_exports = {};
__export(aria_progressbar_name_exports, {
  UIStrings: () => UIStrings36,
  default: () => aria_progressbar_name_default
});
var UIStrings36, str_16, AriaProgressbarName, aria_progressbar_name_default;
var init_aria_progressbar_name = __esm({
  "core/audits/accessibility/aria-progressbar-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings36 = {
      /** Title of an accessibility audit that evaluates if progressbar HTML elements have an accessible name. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "ARIA `progressbar` elements have accessible names",
      /** Title of an accessibility audit that evaluates if progressbar HTML elements do not have accessible names. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "ARIA `progressbar` elements do not have accessible names.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "When a `progressbar` element doesn't have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn how to label `progressbar` elements](https://dequeuniversity.com/rules/axe/4.12/aria-progressbar-name)."
    };
    str_16 = createIcuMessageFn({ url: "core/audits/accessibility/aria-progressbar-name.js" }.url, UIStrings36);
    AriaProgressbarName = class extends axe_audit_default {
      static {
        __name(this, "AriaProgressbarName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-progressbar-name",
          title: str_16(UIStrings36.title),
          failureTitle: str_16(UIStrings36.failureTitle),
          description: str_16(UIStrings36.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_progressbar_name_default = AriaProgressbarName;
  }
});

// core/audits/accessibility/aria-prohibited-attr.js
var aria_prohibited_attr_exports = {};
__export(aria_prohibited_attr_exports, {
  UIStrings: () => UIStrings37,
  default: () => aria_prohibited_attr_default
});
var UIStrings37, str_17, AriaProhibitedAttr, aria_prohibited_attr_default;
var init_aria_prohibited_attr = __esm({
  "core/audits/accessibility/aria-prohibited-attr.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2024 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings37 = {
      /** Title of an accessibility audit that checks if elements use prohibited ARIA attributes. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Elements use only permitted ARIA attributes",
      /** Title of an accessibility audit that checks if elements use prohibited ARIA attributes. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Elements use prohibited ARIA attributes",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Using ARIA attributes in roles where they are prohibited can mean that important information is not communicated to users of assistive technologies. [Learn more about prohibited ARIA roles](https://dequeuniversity.com/rules/axe/4.12/aria-prohibited-attr)."
    };
    str_17 = createIcuMessageFn({ url: "core/audits/accessibility/aria-prohibited-attr.js" }.url, UIStrings37);
    AriaProhibitedAttr = class extends axe_audit_default {
      static {
        __name(this, "AriaProhibitedAttr");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-prohibited-attr",
          title: str_17(UIStrings37.title),
          failureTitle: str_17(UIStrings37.failureTitle),
          description: str_17(UIStrings37.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_prohibited_attr_default = AriaProhibitedAttr;
  }
});

// core/audits/accessibility/aria-required-attr.js
var aria_required_attr_exports = {};
__export(aria_required_attr_exports, {
  UIStrings: () => UIStrings38,
  default: () => aria_required_attr_default
});
var UIStrings38, str_18, ARIARequiredAttr, aria_required_attr_default;
var init_aria_required_attr = __esm({
  "core/audits/accessibility/aria-required-attr.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings38 = {
      /** Title of an accessibility audit that evaluates if all elements with the aria-role attribute have the other corresponding ARIA attributes set as well. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`[role]`s have all required `[aria-*]` attributes",
      /** Title of an accessibility audit that evaluates if all elements with the aria-role attribute have the other corresponding ARIA attributes set as well. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`[role]`s do not have all required `[aria-*]` attributes",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Some ARIA roles have required attributes that describe the state of the element to screen readers. [Learn more about roles and required attributes](https://dequeuniversity.com/rules/axe/4.12/aria-required-attr)."
    };
    str_18 = createIcuMessageFn({ url: "core/audits/accessibility/aria-required-attr.js" }.url, UIStrings38);
    ARIARequiredAttr = class extends axe_audit_default {
      static {
        __name(this, "ARIARequiredAttr");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-required-attr",
          title: str_18(UIStrings38.title),
          failureTitle: str_18(UIStrings38.failureTitle),
          description: str_18(UIStrings38.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_required_attr_default = ARIARequiredAttr;
  }
});

// core/audits/accessibility/aria-required-children.js
var aria_required_children_exports = {};
__export(aria_required_children_exports, {
  UIStrings: () => UIStrings39,
  default: () => aria_required_children_default
});
var UIStrings39, str_19, AriaRequiredChildren, aria_required_children_default;
var init_aria_required_children = __esm({
  "core/audits/accessibility/aria-required-children.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings39 = {
      /** Title of an accessibility audit that evaluates if the elements with an aria-role that require child elements have the required children. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Elements with an ARIA `[role]` that require children to contain a specific `[role]` have all required children.",
      /** Title of an accessibility audit that evaluates if the elements with an aria-role that require child elements have the required children. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Elements with an ARIA `[role]` that require children to contain a specific `[role]` are missing some or all of those required children.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Some ARIA parent roles must contain specific child roles to perform their intended accessibility functions. [Learn more about roles and required children elements](https://dequeuniversity.com/rules/axe/4.12/aria-required-children)."
    };
    str_19 = createIcuMessageFn({ url: "core/audits/accessibility/aria-required-children.js" }.url, UIStrings39);
    AriaRequiredChildren = class extends axe_audit_default {
      static {
        __name(this, "AriaRequiredChildren");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-required-children",
          title: str_19(UIStrings39.title),
          failureTitle: str_19(UIStrings39.failureTitle),
          description: str_19(UIStrings39.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_required_children_default = AriaRequiredChildren;
  }
});

// core/audits/accessibility/aria-required-parent.js
var aria_required_parent_exports = {};
__export(aria_required_parent_exports, {
  UIStrings: () => UIStrings40,
  default: () => aria_required_parent_default
});
var UIStrings40, str_20, AriaRequiredParent, aria_required_parent_default;
var init_aria_required_parent = __esm({
  "core/audits/accessibility/aria-required-parent.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings40 = {
      /** Title of an accessibility audit that evaluates valid aria-role usage. Some ARIA roles require that elements must be a child of specific parent element. This audit checks that when those roles are used, the element with the role is in fact a child of the required parent. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`[role]`s are contained by their required parent element",
      /** Title of an accessibility audit that evaluates valid aria-role usage. Some ARIA roles require that elements must be a child of specific parent element. This audit checks that when those roles are used, the element with the role is in fact a child of the required parent. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`[role]`s are not contained by their required parent element",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Some ARIA child roles must be contained by specific parent roles to properly perform their intended accessibility functions. [Learn more about ARIA roles and required parent element](https://dequeuniversity.com/rules/axe/4.12/aria-required-parent)."
    };
    str_20 = createIcuMessageFn({ url: "core/audits/accessibility/aria-required-parent.js" }.url, UIStrings40);
    AriaRequiredParent = class extends axe_audit_default {
      static {
        __name(this, "AriaRequiredParent");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-required-parent",
          title: str_20(UIStrings40.title),
          failureTitle: str_20(UIStrings40.failureTitle),
          description: str_20(UIStrings40.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_required_parent_default = AriaRequiredParent;
  }
});

// core/audits/accessibility/aria-roles.js
var aria_roles_exports = {};
__export(aria_roles_exports, {
  UIStrings: () => UIStrings41,
  default: () => aria_roles_default
});
var UIStrings41, str_21, AriaRoles, aria_roles_default;
var init_aria_roles = __esm({
  "core/audits/accessibility/aria-roles.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings41 = {
      /** Title of an accessibility audit that evaluates if all elements have valid aria-role HTML attributes. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`[role]` values are valid",
      /** Title of an accessibility audit that evaluates if all elements have valid aria-role HTML attributes. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`[role]` values are not valid",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "ARIA roles must have valid values in order to perform their intended accessibility functions. [Learn more about valid ARIA roles](https://dequeuniversity.com/rules/axe/4.12/aria-roles)."
    };
    str_21 = createIcuMessageFn({ url: "core/audits/accessibility/aria-roles.js" }.url, UIStrings41);
    AriaRoles = class extends axe_audit_default {
      static {
        __name(this, "AriaRoles");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-roles",
          title: str_21(UIStrings41.title),
          failureTitle: str_21(UIStrings41.failureTitle),
          description: str_21(UIStrings41.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_roles_default = AriaRoles;
  }
});

// core/audits/accessibility/aria-text.js
var aria_text_exports = {};
__export(aria_text_exports, {
  UIStrings: () => UIStrings42,
  default: () => aria_text_default
});
var UIStrings42, str_22, AriaText, aria_text_default;
var init_aria_text = __esm({
  "core/audits/accessibility/aria-text.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings42 = {
      /** Title of an accessibility audit that evaluates if elements with `role=text` have no focusable descendents. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Elements with the `role=text` attribute do not have focusable descendents.",
      /** Title of an accessibility audit that evaluates if elements with `role=text` have focusable descendents. This title is descriptive of the successful state and is shown to users when no user action is required. */
      failureTitle: "Elements with the `role=text` attribute do have focusable descendents.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Adding `role=text` around a text node split by markup enables VoiceOver to treat it as one phrase, but the element's focusable descendents will not be announced. [Learn more about the `role=text` attribute](https://dequeuniversity.com/rules/axe/4.12/aria-text)."
    };
    str_22 = createIcuMessageFn({ url: "core/audits/accessibility/aria-text.js" }.url, UIStrings42);
    AriaText = class extends axe_audit_default {
      static {
        __name(this, "AriaText");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-text",
          title: str_22(UIStrings42.title),
          failureTitle: str_22(UIStrings42.failureTitle),
          description: str_22(UIStrings42.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_text_default = AriaText;
  }
});

// core/audits/accessibility/aria-toggle-field-name.js
var aria_toggle_field_name_exports = {};
__export(aria_toggle_field_name_exports, {
  UIStrings: () => UIStrings43,
  default: () => aria_toggle_field_name_default
});
var UIStrings43, str_23, AriaToggleFieldName, aria_toggle_field_name_default;
var init_aria_toggle_field_name = __esm({
  "core/audits/accessibility/aria-toggle-field-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings43 = {
      /** Title of an accessibility audit that checks that all ARIA toggle fields have an accessible name. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "ARIA toggle fields have accessible names",
      /** Title of an accessibility audit that checks that all ARIA toggle fields have an accessible name. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "ARIA toggle fields do not have accessible names",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "When a toggle field doesn't have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn more about toggle fields](https://dequeuniversity.com/rules/axe/4.12/aria-toggle-field-name)."
    };
    str_23 = createIcuMessageFn({ url: "core/audits/accessibility/aria-toggle-field-name.js" }.url, UIStrings43);
    AriaToggleFieldName = class extends axe_audit_default {
      static {
        __name(this, "AriaToggleFieldName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-toggle-field-name",
          title: str_23(UIStrings43.title),
          failureTitle: str_23(UIStrings43.failureTitle),
          description: str_23(UIStrings43.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_toggle_field_name_default = AriaToggleFieldName;
  }
});

// core/audits/accessibility/aria-tooltip-name.js
var aria_tooltip_name_exports = {};
__export(aria_tooltip_name_exports, {
  UIStrings: () => UIStrings44,
  default: () => aria_tooltip_name_default
});
var UIStrings44, str_24, AriaTooltipName, aria_tooltip_name_default;
var init_aria_tooltip_name = __esm({
  "core/audits/accessibility/aria-tooltip-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings44 = {
      /** Title of an accessibility audit that evaluates if tooltip HTML elements have an accessible name. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "ARIA `tooltip` elements have accessible names",
      /** Title of an accessibility audit that evaluates if tooltip HTML elements do not have accessible names. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "ARIA `tooltip` elements do not have accessible names.",
      /** Description of a Lighthouse audit that tells the user *why* they should have accessible names for HTML 'tooltip' elements. This is displayed after a user expands the section to see more. No character length limits. 'Learn how...' becomes link text to additional documentation. */
      description: "When a tooltip element doesn't have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn how to name `tooltip` elements](https://dequeuniversity.com/rules/axe/4.12/aria-tooltip-name)."
    };
    str_24 = createIcuMessageFn({ url: "core/audits/accessibility/aria-tooltip-name.js" }.url, UIStrings44);
    AriaTooltipName = class extends axe_audit_default {
      static {
        __name(this, "AriaTooltipName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-tooltip-name",
          title: str_24(UIStrings44.title),
          failureTitle: str_24(UIStrings44.failureTitle),
          description: str_24(UIStrings44.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_tooltip_name_default = AriaTooltipName;
  }
});

// core/audits/accessibility/aria-treeitem-name.js
var aria_treeitem_name_exports = {};
__export(aria_treeitem_name_exports, {
  UIStrings: () => UIStrings45,
  default: () => aria_treeitem_name_default
});
var UIStrings45, str_25, AriaTreeitemName, aria_treeitem_name_default;
var init_aria_treeitem_name = __esm({
  "core/audits/accessibility/aria-treeitem-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings45 = {
      /** Title of an accessibility audit that evaluates if treeitem HTML elements have an accessible name. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "ARIA `treeitem` elements have accessible names",
      /** Title of an accessibility audit that evaluates if treeitem HTML elements do not have accessible names. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "ARIA `treeitem` elements do not have accessible names.",
      /** Description of a Lighthouse audit that tells the user *why* they should have accessible names for HTML elements. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "When a `treeitem` element doesn't have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn more about labeling `treeitem` elements](https://dequeuniversity.com/rules/axe/4.12/aria-treeitem-name)."
    };
    str_25 = createIcuMessageFn({ url: "core/audits/accessibility/aria-treeitem-name.js" }.url, UIStrings45);
    AriaTreeitemName = class extends axe_audit_default {
      static {
        __name(this, "AriaTreeitemName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-treeitem-name",
          title: str_25(UIStrings45.title),
          failureTitle: str_25(UIStrings45.failureTitle),
          description: str_25(UIStrings45.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_treeitem_name_default = AriaTreeitemName;
  }
});

// core/audits/accessibility/aria-valid-attr-value.js
var aria_valid_attr_value_exports = {};
__export(aria_valid_attr_value_exports, {
  UIStrings: () => UIStrings46,
  default: () => aria_valid_attr_value_default
});
var UIStrings46, str_26, ARIAValidAttr, aria_valid_attr_value_default;
var init_aria_valid_attr_value = __esm({
  "core/audits/accessibility/aria-valid-attr-value.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings46 = {
      /** Title of an accessibility audit that evaluates if all elements that have an ARIA HTML attribute have a valid value for that attribute. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`[aria-*]` attributes have valid values",
      /** Title of an accessibility audit that evaluates if all elements that have an ARIA HTML attribute have a valid value for that attribute. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`[aria-*]` attributes do not have valid values",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Assistive technologies, like screen readers, can't interpret ARIA attributes with invalid values. [Learn more about valid values for ARIA attributes](https://dequeuniversity.com/rules/axe/4.12/aria-valid-attr-value)."
    };
    str_26 = createIcuMessageFn({ url: "core/audits/accessibility/aria-valid-attr-value.js" }.url, UIStrings46);
    ARIAValidAttr = class extends axe_audit_default {
      static {
        __name(this, "ARIAValidAttr");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-valid-attr-value",
          title: str_26(UIStrings46.title),
          failureTitle: str_26(UIStrings46.failureTitle),
          description: str_26(UIStrings46.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_valid_attr_value_default = ARIAValidAttr;
  }
});

// core/audits/accessibility/aria-valid-attr.js
var aria_valid_attr_exports = {};
__export(aria_valid_attr_exports, {
  UIStrings: () => UIStrings47,
  default: () => aria_valid_attr_default
});
var UIStrings47, str_27, ARIAValidAttr2, aria_valid_attr_default;
var init_aria_valid_attr = __esm({
  "core/audits/accessibility/aria-valid-attr.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings47 = {
      /** Title of an accessibility audit that evaluates if all elements with ARIA HTML attributes have spelled the name of attribute correctly. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`[aria-*]` attributes are valid and not misspelled",
      /** Title of an accessibility audit that evaluates if all elements with ARIA HTML attributes have spelled the name of attribute correctly. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`[aria-*]` attributes are not valid or misspelled",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Assistive technologies, like screen readers, can't interpret ARIA attributes with invalid names. [Learn more about valid ARIA attributes](https://dequeuniversity.com/rules/axe/4.12/aria-valid-attr)."
    };
    str_27 = createIcuMessageFn({ url: "core/audits/accessibility/aria-valid-attr.js" }.url, UIStrings47);
    ARIAValidAttr2 = class extends axe_audit_default {
      static {
        __name(this, "ARIAValidAttr");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "aria-valid-attr",
          title: str_27(UIStrings47.title),
          failureTitle: str_27(UIStrings47.failureTitle),
          description: str_27(UIStrings47.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    aria_valid_attr_default = ARIAValidAttr2;
  }
});

// core/audits/accessibility/autocomplete-valid.js
var autocomplete_valid_exports = {};
__export(autocomplete_valid_exports, {
  UIStrings: () => UIStrings48,
  default: () => autocomplete_valid_default
});
var UIStrings48, str_28, AutocompleteValid, autocomplete_valid_default;
var init_autocomplete_valid = __esm({
  "core/audits/accessibility/autocomplete-valid.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings48 = {
      /** Title of an accessibility audit that evaluates if all form fields have valid autocomplete attributes. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`autocomplete` attributes are used correctly",
      /** Title of an accessibility audit that evaluates if all form fields have valid autocomplete attributes. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`autocomplete` attributes are not used correctly",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "The `autocomplete` attribute values must be valid and correctly applied for screen readers to function correctly. [Learn more about valid autocomplete values](https://dequeuniversity.com/rules/axe/4.12/autocomplete-valid)."
    };
    str_28 = createIcuMessageFn({ url: "core/audits/accessibility/autocomplete-valid.js" }.url, UIStrings48);
    AutocompleteValid = class extends axe_audit_default {
      static {
        __name(this, "AutocompleteValid");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "autocomplete-valid",
          title: str_28(UIStrings48.title),
          failureTitle: str_28(UIStrings48.failureTitle),
          description: str_28(UIStrings48.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    autocomplete_valid_default = AutocompleteValid;
  }
});

// core/audits/accessibility/button-name.js
var button_name_exports = {};
__export(button_name_exports, {
  UIStrings: () => UIStrings49,
  default: () => button_name_default
});
var UIStrings49, str_29, ButtonName, button_name_default;
var init_button_name = __esm({
  "core/audits/accessibility/button-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings49 = {
      /** Title of an accessibility audit that evaluates if all button elements have names accessible to screen readers. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Buttons have an accessible name",
      /** Title of an accessibility audit that evaluates if all button elements have names accessible to screen readers. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Buttons do not have an accessible name",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: `When a button doesn't have an accessible name, screen readers announce it as "button", making it unusable for users who rely on screen readers. [Learn how to make buttons more accessible](https://dequeuniversity.com/rules/axe/4.12/button-name).`
    };
    str_29 = createIcuMessageFn({ url: "core/audits/accessibility/button-name.js" }.url, UIStrings49);
    ButtonName = class extends axe_audit_default {
      static {
        __name(this, "ButtonName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "button-name",
          title: str_29(UIStrings49.title),
          failureTitle: str_29(UIStrings49.failureTitle),
          description: str_29(UIStrings49.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    button_name_default = ButtonName;
  }
});

// core/audits/accessibility/bypass.js
var bypass_exports = {};
__export(bypass_exports, {
  UIStrings: () => UIStrings50,
  default: () => bypass_default
});
var UIStrings50, str_30, Bypass, bypass_default;
var init_bypass = __esm({
  "core/audits/accessibility/bypass.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings50 = {
      /** Title of an accessibility audit that evaluates if the page has elements that let screen reader users skip over repetitive content. `heading`, `skip link`, and `landmark region` are technical terms for the elements that enable quick page navigation. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "The page contains a heading, skip link, or landmark region",
      /** Title of an accessibility audit that evaluates if the page has elements that let screen reader users skip over repetitive content. `heading`, `skip link`, and `landmark region` are technical terms for the elements that enable quick page navigation. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "The page does not contain a heading, skip link, or landmark region",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Adding ways to bypass repetitive content lets keyboard users navigate the page more efficiently. [Learn more about bypass blocks](https://dequeuniversity.com/rules/axe/4.12/bypass)."
    };
    str_30 = createIcuMessageFn({ url: "core/audits/accessibility/bypass.js" }.url, UIStrings50);
    Bypass = class extends axe_audit_default {
      static {
        __name(this, "Bypass");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "bypass",
          title: str_30(UIStrings50.title),
          failureTitle: str_30(UIStrings50.failureTitle),
          description: str_30(UIStrings50.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    bypass_default = Bypass;
  }
});

// core/audits/accessibility/color-contrast.js
var color_contrast_exports = {};
__export(color_contrast_exports, {
  UIStrings: () => UIStrings51,
  default: () => color_contrast_default
});
var UIStrings51, str_31, ColorContrast, color_contrast_default;
var init_color_contrast = __esm({
  "core/audits/accessibility/color-contrast.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings51 = {
      /** Title of an accessibility audit that evaluates if all foreground colors are distinct enough from their background colors to be legible for users. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Background and foreground colors have a sufficient contrast ratio",
      /** Title of an accessibility audit that evaluates if all foreground colors are distinct enough from their background colors to be legible for users. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Background and foreground colors do not have a sufficient contrast ratio.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Low-contrast text is difficult or impossible for many users to read. [Learn how to provide sufficient color contrast](https://dequeuniversity.com/rules/axe/4.12/color-contrast)."
    };
    str_31 = createIcuMessageFn({ url: "core/audits/accessibility/color-contrast.js" }.url, UIStrings51);
    ColorContrast = class extends axe_audit_default {
      static {
        __name(this, "ColorContrast");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "color-contrast",
          title: str_31(UIStrings51.title),
          failureTitle: str_31(UIStrings51.failureTitle),
          description: str_31(UIStrings51.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    color_contrast_default = ColorContrast;
  }
});

// core/audits/accessibility/definition-list.js
var definition_list_exports = {};
__export(definition_list_exports, {
  UIStrings: () => UIStrings52,
  default: () => definition_list_default
});
var UIStrings52, str_32, DefinitionList, definition_list_default;
var init_definition_list = __esm({
  "core/audits/accessibility/definition-list.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings52 = {
      /** Title of an accessibility audit that evaluates if all the definition list elements have valid markup for screen readers. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`<dl>`'s contain only properly-ordered `<dt>` and `<dd>` groups, `<script>`, `<template>` or `<div>` elements.",
      /** Title of an accessibility audit that evaluates if all the definition list elements have valid markup for screen readers. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`<dl>`'s do not contain only properly-ordered `<dt>` and `<dd>` groups, `<script>`, `<template>` or `<div>` elements.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "When definition lists are not properly marked up, screen readers may produce confusing or inaccurate output. [Learn how to structure definition lists correctly](https://dequeuniversity.com/rules/axe/4.12/definition-list)."
    };
    str_32 = createIcuMessageFn({ url: "core/audits/accessibility/definition-list.js" }.url, UIStrings52);
    DefinitionList = class extends axe_audit_default {
      static {
        __name(this, "DefinitionList");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "definition-list",
          title: str_32(UIStrings52.title),
          failureTitle: str_32(UIStrings52.failureTitle),
          description: str_32(UIStrings52.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    definition_list_default = DefinitionList;
  }
});

// core/audits/accessibility/dlitem.js
var dlitem_exports = {};
__export(dlitem_exports, {
  UIStrings: () => UIStrings53,
  default: () => dlitem_default
});
var UIStrings53, str_33, DLItem, dlitem_default;
var init_dlitem = __esm({
  "core/audits/accessibility/dlitem.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings53 = {
      /** Title of an accessibility audit that evaluates if all definition list item elements (`<dt>`/`<dd>`) have a definition list parent element (`<dl>`). This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Definition list items are wrapped in `<dl>` elements",
      /** Title of an accessibility audit that evaluates if all definition list item elements (`<dt>`/`<dd>`) have a definition list parent element (`<dl>`). This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Definition list items are not wrapped in `<dl>` elements",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Definition list items (`<dt>` and `<dd>`) must be wrapped in a parent `<dl>` element to ensure that screen readers can properly announce them. [Learn how to structure definition lists correctly](https://dequeuniversity.com/rules/axe/4.12/dlitem)."
    };
    str_33 = createIcuMessageFn({ url: "core/audits/accessibility/dlitem.js" }.url, UIStrings53);
    DLItem = class extends axe_audit_default {
      static {
        __name(this, "DLItem");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "dlitem",
          title: str_33(UIStrings53.title),
          failureTitle: str_33(UIStrings53.failureTitle),
          description: str_33(UIStrings53.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    dlitem_default = DLItem;
  }
});

// core/audits/accessibility/document-title.js
var document_title_exports = {};
__export(document_title_exports, {
  UIStrings: () => UIStrings54,
  default: () => document_title_default
});
var UIStrings54, str_34, DocumentTitle, document_title_default;
var init_document_title = __esm({
  "core/audits/accessibility/document-title.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings54 = {
      /** Title of an accessibility audit that evaluates if the page has a <title> element that describes the page. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Document has a `<title>` element",
      /** Title of an accessibility audit that evaluates if the page has a <title> element that describes the page. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Document doesn't have a `<title>` element",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "The title gives screen reader users an overview of the page, and search engine users rely on it heavily to determine if a page is relevant to their search. [Learn more about document titles](https://dequeuniversity.com/rules/axe/4.12/document-title)."
    };
    str_34 = createIcuMessageFn({ url: "core/audits/accessibility/document-title.js" }.url, UIStrings54);
    DocumentTitle = class extends axe_audit_default {
      static {
        __name(this, "DocumentTitle");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "document-title",
          title: str_34(UIStrings54.title),
          failureTitle: str_34(UIStrings54.failureTitle),
          description: str_34(UIStrings54.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    document_title_default = DocumentTitle;
  }
});

// core/audits/accessibility/duplicate-id-aria.js
var duplicate_id_aria_exports = {};
__export(duplicate_id_aria_exports, {
  UIStrings: () => UIStrings55,
  default: () => duplicate_id_aria_default
});
var UIStrings55, str_35, DuplicateIdAria, duplicate_id_aria_default;
var init_duplicate_id_aria = __esm({
  "core/audits/accessibility/duplicate-id-aria.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings55 = {
      /** Title of an accessibility audit that checks if there are any duplicate ARIA IDs on the page. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "ARIA IDs are unique",
      /** Title of an accessibility audit that checks if there are any duplicate ARIA IDs on the page. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "ARIA IDs are not unique",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "The value of an ARIA ID must be unique to prevent other instances from being overlooked by assistive technologies. [Learn how to fix duplicate ARIA IDs](https://dequeuniversity.com/rules/axe/4.12/duplicate-id-aria)."
    };
    str_35 = createIcuMessageFn({ url: "core/audits/accessibility/duplicate-id-aria.js" }.url, UIStrings55);
    DuplicateIdAria = class extends axe_audit_default {
      static {
        __name(this, "DuplicateIdAria");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "duplicate-id-aria",
          title: str_35(UIStrings55.title),
          failureTitle: str_35(UIStrings55.failureTitle),
          description: str_35(UIStrings55.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    duplicate_id_aria_default = DuplicateIdAria;
  }
});

// core/audits/accessibility/empty-heading.js
var empty_heading_exports = {};
__export(empty_heading_exports, {
  UIStrings: () => UIStrings56,
  default: () => empty_heading_default
});
var UIStrings56, str_36, EmptyHeading, empty_heading_default;
var init_empty_heading = __esm({
  "core/audits/accessibility/empty-heading.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings56 = {
      /** Title of an accessibility audit that checks if all heading elements have content. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "All heading elements contain content.",
      /** Title of an accessibility audit that checks if all heading elements have content. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Heading elements do not contain content.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "A heading with no content or inaccessible text prevent screen reader users from accessing information on the page's structure. [Learn more about headings](https://dequeuniversity.com/rules/axe/4.12/empty-heading)."
    };
    str_36 = createIcuMessageFn({ url: "core/audits/accessibility/empty-heading.js" }.url, UIStrings56);
    EmptyHeading = class extends axe_audit_default {
      static {
        __name(this, "EmptyHeading");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "empty-heading",
          title: str_36(UIStrings56.title),
          failureTitle: str_36(UIStrings56.failureTitle),
          description: str_36(UIStrings56.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    empty_heading_default = EmptyHeading;
  }
});

// core/audits/accessibility/form-field-multiple-labels.js
var form_field_multiple_labels_exports = {};
__export(form_field_multiple_labels_exports, {
  UIStrings: () => UIStrings57,
  default: () => form_field_multiple_labels_default
});
var UIStrings57, str_37, FormFieldMultipleLabels, form_field_multiple_labels_default;
var init_form_field_multiple_labels = __esm({
  "core/audits/accessibility/form-field-multiple-labels.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings57 = {
      /** Title of an accessibility audit that checks if any form fields have multiple label elements. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "No form fields have multiple labels",
      /** Title of an accessibility audit that checks if any form fields have multiple label elements. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Form fields have multiple labels",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Form fields with multiple labels can be confusingly announced by assistive technologies like screen readers which use either the first, the last, or all of the labels. [Learn how to use form labels](https://dequeuniversity.com/rules/axe/4.12/form-field-multiple-labels)."
    };
    str_37 = createIcuMessageFn({ url: "core/audits/accessibility/form-field-multiple-labels.js" }.url, UIStrings57);
    FormFieldMultipleLabels = class extends axe_audit_default {
      static {
        __name(this, "FormFieldMultipleLabels");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "form-field-multiple-labels",
          title: str_37(UIStrings57.title),
          failureTitle: str_37(UIStrings57.failureTitle),
          description: str_37(UIStrings57.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    form_field_multiple_labels_default = FormFieldMultipleLabels;
  }
});

// core/audits/accessibility/frame-title.js
var frame_title_exports = {};
__export(frame_title_exports, {
  UIStrings: () => UIStrings58,
  default: () => frame_title_default
});
var UIStrings58, str_38, FrameTitle, frame_title_default;
var init_frame_title = __esm({
  "core/audits/accessibility/frame-title.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings58 = {
      /** Title of an accessibility audit that evaluates if all `<frame>` and `<iframe>` elements on the page have a title HTML attribute to describe their contents. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`<frame>` or `<iframe>` elements have a title",
      /** Title of an accessibility audit that evaluates if all `<frame>` and `<iframe>` elements on the page have a title HTML attribute to describe their contents. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`<frame>` or `<iframe>` elements do not have a title",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Screen reader users rely on frame titles to describe the contents of frames. [Learn more about frame titles](https://dequeuniversity.com/rules/axe/4.12/frame-title)."
    };
    str_38 = createIcuMessageFn({ url: "core/audits/accessibility/frame-title.js" }.url, UIStrings58);
    FrameTitle = class extends axe_audit_default {
      static {
        __name(this, "FrameTitle");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "frame-title",
          title: str_38(UIStrings58.title),
          failureTitle: str_38(UIStrings58.failureTitle),
          description: str_38(UIStrings58.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    frame_title_default = FrameTitle;
  }
});

// core/audits/accessibility/heading-order.js
var heading_order_exports = {};
__export(heading_order_exports, {
  UIStrings: () => UIStrings59,
  default: () => heading_order_default
});
var UIStrings59, str_39, HeadingOrder, heading_order_default;
var init_heading_order = __esm({
  "core/audits/accessibility/heading-order.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings59 = {
      /** Title of an accessibility audit that checks if heading elements (<h1>, <h2>, etc) appear in numeric order and only ever increase in steps of 1. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Heading elements appear in a sequentially-descending order",
      /** Title of an accessibility audit that checks if heading elements (<h1>, <h2>, etc) appear in numeric order and only ever increase in steps of 1. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Heading elements are not in a sequentially-descending order",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Properly ordered headings that do not skip levels convey the semantic structure of the page, making it easier to navigate and understand when using assistive technologies. [Learn more about heading order](https://dequeuniversity.com/rules/axe/4.12/heading-order)."
    };
    str_39 = createIcuMessageFn({ url: "core/audits/accessibility/heading-order.js" }.url, UIStrings59);
    HeadingOrder = class extends axe_audit_default {
      static {
        __name(this, "HeadingOrder");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "heading-order",
          title: str_39(UIStrings59.title),
          failureTitle: str_39(UIStrings59.failureTitle),
          description: str_39(UIStrings59.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    heading_order_default = HeadingOrder;
  }
});

// core/audits/accessibility/html-has-lang.js
var html_has_lang_exports = {};
__export(html_has_lang_exports, {
  UIStrings: () => UIStrings60,
  default: () => html_has_lang_default
});
var UIStrings60, str_40, HTMLHasLang, html_has_lang_default;
var init_html_has_lang = __esm({
  "core/audits/accessibility/html-has-lang.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings60 = {
      /** Title of an accessibility audit that evaluates if the root HTML tag has a lang attribute identifying the page's language. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`<html>` element has a `[lang]` attribute",
      /** Title of an accessibility audit that evaluates if the root HTML tag has a lang attribute identifying the page's language. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`<html>` element does not have a `[lang]` attribute",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "If a page doesn't specify a `lang` attribute, a screen reader assumes that the page is in the default language that the user chose when setting up the screen reader. If the page isn't actually in the default language, then the screen reader might not announce the page's text correctly. [Learn more about the `lang` attribute](https://dequeuniversity.com/rules/axe/4.12/html-has-lang)."
    };
    str_40 = createIcuMessageFn({ url: "core/audits/accessibility/html-has-lang.js" }.url, UIStrings60);
    HTMLHasLang = class extends axe_audit_default {
      static {
        __name(this, "HTMLHasLang");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "html-has-lang",
          title: str_40(UIStrings60.title),
          failureTitle: str_40(UIStrings60.failureTitle),
          description: str_40(UIStrings60.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    html_has_lang_default = HTMLHasLang;
  }
});

// core/audits/accessibility/html-lang-valid.js
var html_lang_valid_exports = {};
__export(html_lang_valid_exports, {
  UIStrings: () => UIStrings61,
  default: () => html_lang_valid_default
});
var UIStrings61, str_41, HTMLLangValid, html_lang_valid_default;
var init_html_lang_valid = __esm({
  "core/audits/accessibility/html-lang-valid.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings61 = {
      /** Title of an accessibility audit that evaluates if the value for root HTML tag's lang attribute is a valid BCP 47 language. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`<html>` element has a valid value for its `[lang]` attribute",
      /** Title of an accessibility audit that evaluates if the value for root HTML tag's lang attribute is a valid BCP 47 language. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`<html>` element does not have a valid value for its `[lang]` attribute.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Specifying a valid [BCP 47 language](https://www.w3.org/International/questions/qa-choosing-language-tags#question) helps screen readers announce text properly. [Learn how to use the `lang` attribute](https://dequeuniversity.com/rules/axe/4.12/html-lang-valid)."
    };
    str_41 = createIcuMessageFn({ url: "core/audits/accessibility/html-lang-valid.js" }.url, UIStrings61);
    HTMLLangValid = class extends axe_audit_default {
      static {
        __name(this, "HTMLLangValid");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "html-lang-valid",
          title: str_41(UIStrings61.title),
          failureTitle: str_41(UIStrings61.failureTitle),
          description: str_41(UIStrings61.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    html_lang_valid_default = HTMLLangValid;
  }
});

// core/audits/accessibility/html-xml-lang-mismatch.js
var html_xml_lang_mismatch_exports = {};
__export(html_xml_lang_mismatch_exports, {
  UIStrings: () => UIStrings62,
  default: () => html_xml_lang_mismatch_default
});
var UIStrings62, str_42, HTMLXMLLangMismatch, html_xml_lang_mismatch_default;
var init_html_xml_lang_mismatch = __esm({
  "core/audits/accessibility/html-xml-lang-mismatch.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings62 = {
      /** Title of an accessibility audit that evaluates if the xml:lang attribute, if present, has the same base language as the `lang` attribute. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`<html>` element has an `[xml:lang]` attribute with the same base language as the `[lang]` attribute.",
      /** Title of an accessibility audit that evaluates if the xml:lang attribute, if present, has the same base language as the `lang` attribute. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`<html>` element does not have an `[xml:lang]` attribute with the same base language as the `[lang]` attribute.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "If the webpage does not specify a consistent language, then the screen reader might not announce the page's text correctly. [Learn more about the `lang` attribute](https://dequeuniversity.com/rules/axe/4.12/html-xml-lang-mismatch)."
    };
    str_42 = createIcuMessageFn({ url: "core/audits/accessibility/html-xml-lang-mismatch.js" }.url, UIStrings62);
    HTMLXMLLangMismatch = class extends axe_audit_default {
      static {
        __name(this, "HTMLXMLLangMismatch");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "html-xml-lang-mismatch",
          title: str_42(UIStrings62.title),
          failureTitle: str_42(UIStrings62.failureTitle),
          description: str_42(UIStrings62.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    html_xml_lang_mismatch_default = HTMLXMLLangMismatch;
  }
});

// core/audits/accessibility/identical-links-same-purpose.js
var identical_links_same_purpose_exports = {};
__export(identical_links_same_purpose_exports, {
  UIStrings: () => UIStrings63,
  default: () => identical_links_same_purpose_default
});
var UIStrings63, str_43, IdenticalLinksSamePurpose, identical_links_same_purpose_default;
var init_identical_links_same_purpose = __esm({
  "core/audits/accessibility/identical-links-same-purpose.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings63 = {
      /** Title of an accessibility audit that checks if identical links have the same purpose. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Identical links have the same purpose.",
      /** Title of an accessibility audit that checks if identical links have the same purpose. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Identical links do not have the same purpose.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Links with the same destination should have the same description, to help users understand the link's purpose and decide whether to follow it. [Learn more about identical links](https://dequeuniversity.com/rules/axe/4.12/identical-links-same-purpose)."
    };
    str_43 = createIcuMessageFn({ url: "core/audits/accessibility/identical-links-same-purpose.js" }.url, UIStrings63);
    IdenticalLinksSamePurpose = class extends axe_audit_default {
      static {
        __name(this, "IdenticalLinksSamePurpose");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "identical-links-same-purpose",
          title: str_43(UIStrings63.title),
          failureTitle: str_43(UIStrings63.failureTitle),
          description: str_43(UIStrings63.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    identical_links_same_purpose_default = IdenticalLinksSamePurpose;
  }
});

// core/audits/accessibility/image-alt.js
var image_alt_exports = {};
__export(image_alt_exports, {
  UIStrings: () => UIStrings64,
  default: () => image_alt_default
});
var UIStrings64, str_44, ImageAlt, image_alt_default;
var init_image_alt = __esm({
  "core/audits/accessibility/image-alt.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings64 = {
      /** Title of an accessibility audit that evaluates if all image elements have the alt HTML attribute to describe their contents. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Image elements have `[alt]` attributes",
      /** Title of an accessibility audit that evaluates if all image elements have the alt HTML attribute to describe their contents. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Image elements do not have `[alt]` attributes",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Informative elements should aim for short, descriptive alternate text. Decorative elements can be ignored with an empty alt attribute. [Learn more about the `alt` attribute](https://dequeuniversity.com/rules/axe/4.12/image-alt)."
    };
    str_44 = createIcuMessageFn({ url: "core/audits/accessibility/image-alt.js" }.url, UIStrings64);
    ImageAlt = class extends axe_audit_default {
      static {
        __name(this, "ImageAlt");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "image-alt",
          title: str_44(UIStrings64.title),
          failureTitle: str_44(UIStrings64.failureTitle),
          description: str_44(UIStrings64.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    image_alt_default = ImageAlt;
  }
});

// core/audits/accessibility/image-redundant-alt.js
var image_redundant_alt_exports = {};
__export(image_redundant_alt_exports, {
  UIStrings: () => UIStrings65,
  default: () => image_redundant_alt_default
});
var UIStrings65, str_45, ImageRedundantAlt, image_redundant_alt_default;
var init_image_redundant_alt = __esm({
  "core/audits/accessibility/image-redundant-alt.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings65 = {
      /** Title of an accessibility audit that evaluates if all image elements have the alt HTML attribute that is not redundant. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Image elements do not have `[alt]` attributes that are redundant text.",
      /** Title of an accessibility audit that evaluates if all image elements have the alt HTML attribute that is not redundant. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Image elements have `[alt]` attributes that are redundant text.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Informative elements should aim for short, descriptive alternative text. Alternative text that is exactly the same as the text adjacent to the link or image is potentially confusing for screen reader users, because the text will be read twice. [Learn more about the `alt` attribute](https://dequeuniversity.com/rules/axe/4.12/image-redundant-alt)."
    };
    str_45 = createIcuMessageFn({ url: "core/audits/accessibility/image-redundant-alt.js" }.url, UIStrings65);
    ImageRedundantAlt = class extends axe_audit_default {
      static {
        __name(this, "ImageRedundantAlt");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "image-redundant-alt",
          title: str_45(UIStrings65.title),
          failureTitle: str_45(UIStrings65.failureTitle),
          description: str_45(UIStrings65.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    image_redundant_alt_default = ImageRedundantAlt;
  }
});

// core/audits/accessibility/input-button-name.js
var input_button_name_exports = {};
__export(input_button_name_exports, {
  UIStrings: () => UIStrings66,
  default: () => input_button_name_default
});
var UIStrings66, str_46, InputButtonName, input_button_name_default;
var init_input_button_name = __esm({
  "core/audits/accessibility/input-button-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings66 = {
      /** Title of an accessibility audit that evaluates if all input buttons have discernible text. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Input buttons have discernible text.",
      /** Title of an accessibility audit that evaluates if all input buttons have discernible text. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Input buttons do not have discernible text.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Adding discernable and accessible text to input buttons may help screen reader users understand the purpose of the input button. [Learn more about input buttons](https://dequeuniversity.com/rules/axe/4.12/input-button-name)."
    };
    str_46 = createIcuMessageFn({ url: "core/audits/accessibility/input-button-name.js" }.url, UIStrings66);
    InputButtonName = class extends axe_audit_default {
      static {
        __name(this, "InputButtonName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "input-button-name",
          title: str_46(UIStrings66.title),
          failureTitle: str_46(UIStrings66.failureTitle),
          description: str_46(UIStrings66.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    input_button_name_default = InputButtonName;
  }
});

// core/audits/accessibility/input-image-alt.js
var input_image_alt_exports = {};
__export(input_image_alt_exports, {
  UIStrings: () => UIStrings67,
  default: () => input_image_alt_default
});
var UIStrings67, str_47, InputImageAlt, input_image_alt_default;
var init_input_image_alt = __esm({
  "core/audits/accessibility/input-image-alt.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings67 = {
      /** Title of an accessibility audit that evaluates if all input elements of type image have an alt HTML attribute to describe their contents. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: '`<input type="image">` elements have `[alt]` text',
      /** Title of an accessibility audit that evaluates if all input elements of type image have an alt HTML attribute to describe their contents. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: '`<input type="image">` elements do not have `[alt]` text',
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "When an image is being used as an `<input>` button, providing alternative text can help screen reader users understand the purpose of the button. [Learn about input image alt text](https://dequeuniversity.com/rules/axe/4.12/input-image-alt)."
    };
    str_47 = createIcuMessageFn({ url: "core/audits/accessibility/input-image-alt.js" }.url, UIStrings67);
    InputImageAlt = class extends axe_audit_default {
      static {
        __name(this, "InputImageAlt");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "input-image-alt",
          title: str_47(UIStrings67.title),
          failureTitle: str_47(UIStrings67.failureTitle),
          description: str_47(UIStrings67.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    input_image_alt_default = InputImageAlt;
  }
});

// core/audits/accessibility/label-content-name-mismatch.js
var label_content_name_mismatch_exports = {};
__export(label_content_name_mismatch_exports, {
  UIStrings: () => UIStrings68,
  default: () => label_content_name_mismatch_default
});
var UIStrings68, str_48, LabelContentNameMismatch, label_content_name_mismatch_default;
var init_label_content_name_mismatch = __esm({
  "core/audits/accessibility/label-content-name-mismatch.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings68 = {
      /** Title of an accessibility audit that evaluates if elements labeled through their content have their visible text as part of their accessible name. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Elements with visible text labels have matching accessible names.",
      /** Title of an accessibility audit that evaluates if elements labeled through their content have their visible text as part of their accessible name. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Elements with visible text labels do not have matching accessible names.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Visible text labels that do not match the accessible name can result in a confusing experience for screen reader users. [Learn more about accessible names](https://dequeuniversity.com/rules/axe/4.12/label-content-name-mismatch)."
    };
    str_48 = createIcuMessageFn({ url: "core/audits/accessibility/label-content-name-mismatch.js" }.url, UIStrings68);
    LabelContentNameMismatch = class extends axe_audit_default {
      static {
        __name(this, "LabelContentNameMismatch");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "label-content-name-mismatch",
          title: str_48(UIStrings68.title),
          failureTitle: str_48(UIStrings68.failureTitle),
          description: str_48(UIStrings68.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    label_content_name_mismatch_default = LabelContentNameMismatch;
  }
});

// core/audits/accessibility/label.js
var label_exports = {};
__export(label_exports, {
  UIStrings: () => UIStrings69,
  default: () => label_default
});
var UIStrings69, str_49, Label, label_default;
var init_label = __esm({
  "core/audits/accessibility/label.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings69 = {
      /** Title of an accessibility audit that evaluates if all form elements have corresponding label elements. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Form elements have associated labels",
      /** Title of an accessibility audit that evaluates if all form elements have corresponding label elements. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Form elements do not have associated labels",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Labels ensure that form controls are announced properly by assistive technologies, like screen readers. [Learn more about form element labels](https://dequeuniversity.com/rules/axe/4.12/label)."
    };
    str_49 = createIcuMessageFn({ url: "core/audits/accessibility/label.js" }.url, UIStrings69);
    Label = class extends axe_audit_default {
      static {
        __name(this, "Label");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "label",
          title: str_49(UIStrings69.title),
          failureTitle: str_49(UIStrings69.failureTitle),
          description: str_49(UIStrings69.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    label_default = Label;
  }
});

// core/audits/accessibility/landmark-one-main.js
var landmark_one_main_exports = {};
__export(landmark_one_main_exports, {
  UIStrings: () => UIStrings70,
  default: () => landmark_one_main_default
});
var UIStrings70, str_50, LandmarkOneMain, landmark_one_main_default;
var init_landmark_one_main = __esm({
  "core/audits/accessibility/landmark-one-main.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings70 = {
      /** Title of an accessibility audit that checks if the document has a main landmark. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Document has a main landmark.",
      /** Title of an accessibility audit that checks if the document has a main landmark. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Document does not have a main landmark.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "One main landmark helps screen reader users navigate a web page. [Learn more about landmarks](https://dequeuniversity.com/rules/axe/4.12/landmark-one-main)."
    };
    str_50 = createIcuMessageFn({ url: "core/audits/accessibility/landmark-one-main.js" }.url, UIStrings70);
    LandmarkOneMain = class extends axe_audit_default {
      static {
        __name(this, "LandmarkOneMain");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "landmark-one-main",
          title: str_50(UIStrings70.title),
          failureTitle: str_50(UIStrings70.failureTitle),
          description: str_50(UIStrings70.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    landmark_one_main_default = LandmarkOneMain;
  }
});

// core/audits/accessibility/link-in-text-block.js
var link_in_text_block_exports = {};
__export(link_in_text_block_exports, {
  UIStrings: () => UIStrings71,
  default: () => link_in_text_block_default
});
var UIStrings71, str_51, LinkInTextBlock, link_in_text_block_default;
var init_link_in_text_block = __esm({
  "core/audits/accessibility/link-in-text-block.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings71 = {
      /** Title of an accessibility audit that evaluates if all link elements can be distinguished without relying on color. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Links are distinguishable without relying on color.",
      /** Title of an accessibility audit that evaluates if all link elements can be distinguished without relying on color. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Links rely on color to be distinguishable.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Low-contrast text is difficult or impossible for many users to read. Link text that is discernible improves the experience for users with low vision. [Learn how to make links distinguishable](https://dequeuniversity.com/rules/axe/4.12/link-in-text-block)."
    };
    str_51 = createIcuMessageFn({ url: "core/audits/accessibility/link-in-text-block.js" }.url, UIStrings71);
    LinkInTextBlock = class extends axe_audit_default {
      static {
        __name(this, "LinkInTextBlock");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "link-in-text-block",
          title: str_51(UIStrings71.title),
          failureTitle: str_51(UIStrings71.failureTitle),
          description: str_51(UIStrings71.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    link_in_text_block_default = LinkInTextBlock;
  }
});

// core/audits/accessibility/link-name.js
var link_name_exports = {};
__export(link_name_exports, {
  UIStrings: () => UIStrings72,
  default: () => link_name_default
});
var UIStrings72, str_52, LinkName, link_name_default;
var init_link_name = __esm({
  "core/audits/accessibility/link-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings72 = {
      /** Title of an accessibility audit that evaluates if all link elements have a non-generic name to screen readers. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Links have a discernible name",
      /** Title of an accessibility audit that evaluates if all link elements have a non-generic name to screen readers. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Links do not have a discernible name",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Link text (and alternate text for images, when used as links) that is discernible, unique, and focusable improves the navigation experience for screen reader users. [Learn how to make links accessible](https://dequeuniversity.com/rules/axe/4.12/link-name)."
    };
    str_52 = createIcuMessageFn({ url: "core/audits/accessibility/link-name.js" }.url, UIStrings72);
    LinkName = class extends axe_audit_default {
      static {
        __name(this, "LinkName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "link-name",
          title: str_52(UIStrings72.title),
          failureTitle: str_52(UIStrings72.failureTitle),
          description: str_52(UIStrings72.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    link_name_default = LinkName;
  }
});

// core/audits/accessibility/list.js
var list_exports = {};
__export(list_exports, {
  UIStrings: () => UIStrings73,
  default: () => list_default
});
var UIStrings73, str_53, List, list_default;
var init_list = __esm({
  "core/audits/accessibility/list.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings73 = {
      /** Title of an accessibility audit that evaluates if all list elements have a valid structure containing only list items. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Lists contain only `<li>` elements and script supporting elements (`<script>` and `<template>`).",
      /** Title of an accessibility audit that evaluates if all list elements have a valid structure containing only list items. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Lists do not contain only `<li>` elements and script supporting elements (`<script>` and `<template>`).",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Screen readers have a specific way of announcing lists. Ensuring proper list structure aids screen reader output. [Learn more about proper list structure](https://dequeuniversity.com/rules/axe/4.12/list)."
    };
    str_53 = createIcuMessageFn({ url: "core/audits/accessibility/list.js" }.url, UIStrings73);
    List = class extends axe_audit_default {
      static {
        __name(this, "List");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "list",
          title: str_53(UIStrings73.title),
          failureTitle: str_53(UIStrings73.failureTitle),
          description: str_53(UIStrings73.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    list_default = List;
  }
});

// core/audits/accessibility/listitem.js
var listitem_exports = {};
__export(listitem_exports, {
  UIStrings: () => UIStrings74,
  default: () => listitem_default
});
var UIStrings74, str_54, ListItem, listitem_default;
var init_listitem = __esm({
  "core/audits/accessibility/listitem.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings74 = {
      /** Title of an accessibility audit that evaluates if any list item elements do not have list parent elements. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "List items (`<li>`) are contained within `<ul>`, `<ol>` or `<menu>` parent elements",
      /** Title of an accessibility audit that evaluates if any list item elements do not have list parent elements. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "List items (`<li>`) are not contained within `<ul>`, `<ol>` or `<menu>` parent elements.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Screen readers require list items (`<li>`) to be contained within a parent `<ul>`, `<ol>` or `<menu>` to be announced properly. [Learn more about proper list structure](https://dequeuniversity.com/rules/axe/4.12/listitem)."
    };
    str_54 = createIcuMessageFn({ url: "core/audits/accessibility/listitem.js" }.url, UIStrings74);
    ListItem = class extends axe_audit_default {
      static {
        __name(this, "ListItem");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "listitem",
          title: str_54(UIStrings74.title),
          failureTitle: str_54(UIStrings74.failureTitle),
          description: str_54(UIStrings74.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    listitem_default = ListItem;
  }
});

// core/audits/manual/manual-audit.js
var ManualAudit, manual_audit_default;
var init_manual_audit = __esm({
  "core/audits/manual/manual-audit.js"() {
    "use strict";
    init_process_global();
    init_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    ManualAudit = class extends Audit {
      static {
        __name(this, "ManualAudit");
      }
      /**
       * @return {Pick<LH.Audit.Meta, 'scoreDisplayMode'|'requiredArtifacts'>}
       */
      static get partialMeta() {
        return {
          scoreDisplayMode: Audit.SCORING_MODES.MANUAL,
          requiredArtifacts: []
        };
      }
      /**
       * @return {LH.Audit.Product}
       */
      static audit() {
        return {
          score: 0
          // displayValue: '(needs manual verification)'
        };
      }
    };
    manual_audit_default = ManualAudit;
  }
});

// core/audits/accessibility/manual/custom-controls-labels.js
var custom_controls_labels_exports = {};
__export(custom_controls_labels_exports, {
  default: () => custom_controls_labels_default
});
var CustomControlsLabels, custom_controls_labels_default;
var init_custom_controls_labels = __esm({
  "core/audits/accessibility/manual/custom-controls-labels.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    CustomControlsLabels = class extends manual_audit_default {
      static {
        __name(this, "CustomControlsLabels");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "custom-controls-labels",
          description: "Custom interactive controls have associated labels, provided by aria-label or aria-labelledby. [Learn more about custom controls and labels](https://developer.chrome.com/docs/lighthouse/accessibility/custom-controls-labels/).",
          title: "Custom controls have associated labels"
        }, super.partialMeta);
      }
    };
    custom_controls_labels_default = CustomControlsLabels;
  }
});

// core/audits/accessibility/manual/custom-controls-roles.js
var custom_controls_roles_exports = {};
__export(custom_controls_roles_exports, {
  default: () => custom_controls_roles_default
});
var CustomControlsRoles, custom_controls_roles_default;
var init_custom_controls_roles = __esm({
  "core/audits/accessibility/manual/custom-controls-roles.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    CustomControlsRoles = class extends manual_audit_default {
      static {
        __name(this, "CustomControlsRoles");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "custom-controls-roles",
          description: "Custom interactive controls have appropriate ARIA roles. [Learn how to add roles to custom controls](https://developer.chrome.com/docs/lighthouse/accessibility/custom-control-roles/).",
          title: "Custom controls have ARIA roles"
        }, super.partialMeta);
      }
    };
    custom_controls_roles_default = CustomControlsRoles;
  }
});

// core/audits/accessibility/manual/focus-traps.js
var focus_traps_exports = {};
__export(focus_traps_exports, {
  default: () => focus_traps_default
});
var FocusTraps, focus_traps_default;
var init_focus_traps = __esm({
  "core/audits/accessibility/manual/focus-traps.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    FocusTraps = class extends manual_audit_default {
      static {
        __name(this, "FocusTraps");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "focus-traps",
          description: "A user can tab into and out of any control or region without accidentally trapping their focus. [Learn how to avoid focus traps](https://developer.chrome.com/docs/lighthouse/accessibility/focus-traps/).",
          title: "User focus is not accidentally trapped in a region"
        }, super.partialMeta);
      }
    };
    focus_traps_default = FocusTraps;
  }
});

// core/audits/accessibility/manual/focusable-controls.js
var focusable_controls_exports = {};
__export(focusable_controls_exports, {
  default: () => focusable_controls_default
});
var FocusableControls, focusable_controls_default;
var init_focusable_controls = __esm({
  "core/audits/accessibility/manual/focusable-controls.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    FocusableControls = class extends manual_audit_default {
      static {
        __name(this, "FocusableControls");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "focusable-controls",
          description: "Custom interactive controls are keyboard focusable and display a focus indicator. [Learn how to make custom controls focusable](https://developer.chrome.com/docs/lighthouse/accessibility/focusable-controls/).",
          title: "Interactive controls are keyboard focusable"
        }, super.partialMeta);
      }
    };
    focusable_controls_default = FocusableControls;
  }
});

// core/audits/accessibility/manual/interactive-element-affordance.js
var interactive_element_affordance_exports = {};
__export(interactive_element_affordance_exports, {
  default: () => interactive_element_affordance_default
});
var InteractiveElementAffordance, interactive_element_affordance_default;
var init_interactive_element_affordance = __esm({
  "core/audits/accessibility/manual/interactive-element-affordance.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    InteractiveElementAffordance = class extends manual_audit_default {
      static {
        __name(this, "InteractiveElementAffordance");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "interactive-element-affordance",
          description: "Interactive elements, such as links and buttons, should indicate their state and be distinguishable from non-interactive elements. [Learn how to decorate interactive elements with affordance hints](https://developer.chrome.com/docs/lighthouse/accessibility/interactive-element-affordance/).",
          title: "Interactive elements indicate their purpose and state"
        }, super.partialMeta);
      }
    };
    interactive_element_affordance_default = InteractiveElementAffordance;
  }
});

// core/audits/accessibility/manual/logical-tab-order.js
var logical_tab_order_exports = {};
__export(logical_tab_order_exports, {
  default: () => logical_tab_order_default
});
var LogicalTabOrder, logical_tab_order_default;
var init_logical_tab_order = __esm({
  "core/audits/accessibility/manual/logical-tab-order.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    LogicalTabOrder = class extends manual_audit_default {
      static {
        __name(this, "LogicalTabOrder");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "logical-tab-order",
          description: "Tabbing through the page follows the visual layout. Users cannot focus elements that are offscreen. [Learn more about logical tab ordering](https://developer.chrome.com/docs/lighthouse/accessibility/logical-tab-order/).",
          title: "The page has a logical tab order"
        }, super.partialMeta);
      }
    };
    logical_tab_order_default = LogicalTabOrder;
  }
});

// core/audits/accessibility/manual/managed-focus.js
var managed_focus_exports = {};
__export(managed_focus_exports, {
  default: () => managed_focus_default
});
var ManagedFocus, managed_focus_default;
var init_managed_focus = __esm({
  "core/audits/accessibility/manual/managed-focus.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    ManagedFocus = class extends manual_audit_default {
      static {
        __name(this, "ManagedFocus");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "managed-focus",
          description: "If new content, such as a dialog, is added to the page, the user's focus is directed to it. [Learn how to direct focus to new content](https://developer.chrome.com/docs/lighthouse/accessibility/managed-focus/).",
          title: "The user's focus is directed to new content added to the page"
        }, super.partialMeta);
      }
    };
    managed_focus_default = ManagedFocus;
  }
});

// core/audits/accessibility/manual/offscreen-content-hidden.js
var offscreen_content_hidden_exports = {};
__export(offscreen_content_hidden_exports, {
  default: () => offscreen_content_hidden_default
});
var OffscreenContentHidden, offscreen_content_hidden_default;
var init_offscreen_content_hidden = __esm({
  "core/audits/accessibility/manual/offscreen-content-hidden.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    OffscreenContentHidden = class extends manual_audit_default {
      static {
        __name(this, "OffscreenContentHidden");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "offscreen-content-hidden",
          description: "Offscreen content is hidden with display: none or aria-hidden=true. [Learn how to properly hide offscreen content](https://developer.chrome.com/docs/lighthouse/accessibility/offscreen-content-hidden/).",
          title: "Offscreen content is hidden from assistive technology"
        }, super.partialMeta);
      }
    };
    offscreen_content_hidden_default = OffscreenContentHidden;
  }
});

// core/audits/accessibility/manual/use-landmarks.js
var use_landmarks_exports = {};
__export(use_landmarks_exports, {
  default: () => use_landmarks_default
});
var UseLandmarks, use_landmarks_default;
var init_use_landmarks = __esm({
  "core/audits/accessibility/manual/use-landmarks.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UseLandmarks = class extends manual_audit_default {
      static {
        __name(this, "UseLandmarks");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "use-landmarks",
          description: "Landmark elements (`<main>`, `<nav>`, etc.) are used to improve the keyboard navigation of the page for assistive technology. [Learn more about landmark elements](https://developer.chrome.com/docs/lighthouse/accessibility/use-landmarks/).",
          title: "HTML5 landmark elements are used to improve navigation"
        }, super.partialMeta);
      }
    };
    use_landmarks_default = UseLandmarks;
  }
});

// core/audits/accessibility/manual/visual-order-follows-dom.js
var visual_order_follows_dom_exports = {};
__export(visual_order_follows_dom_exports, {
  default: () => visual_order_follows_dom_default
});
var VisualOrderFollowsDOM, visual_order_follows_dom_default;
var init_visual_order_follows_dom = __esm({
  "core/audits/accessibility/manual/visual-order-follows-dom.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    VisualOrderFollowsDOM = class extends manual_audit_default {
      static {
        __name(this, "VisualOrderFollowsDOM");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "visual-order-follows-dom",
          description: "DOM order matches the visual order, improving navigation for assistive technology. [Learn more about DOM and visual ordering](https://developer.chrome.com/docs/lighthouse/accessibility/visual-order-follows-dom/).",
          title: "Visual order on the page follows DOM order"
        }, super.partialMeta);
      }
    };
    visual_order_follows_dom_default = VisualOrderFollowsDOM;
  }
});

// core/audits/accessibility/meta-refresh.js
var meta_refresh_exports = {};
__export(meta_refresh_exports, {
  UIStrings: () => UIStrings75,
  default: () => meta_refresh_default
});
var UIStrings75, str_55, MetaRefresh, meta_refresh_default;
var init_meta_refresh = __esm({
  "core/audits/accessibility/meta-refresh.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings75 = {
      /** Title of an accessibility audit that evaluates if the page uses a meta tag that refreshes the page automatically. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: 'The document does not use `<meta http-equiv="refresh">`',
      /** Title of an accessibility audit that evaluates if the page uses a meta tag that refreshes the page automatically. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: 'The document uses `<meta http-equiv="refresh">`',
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Users do not expect a page to refresh automatically, and doing so will move focus back to the top of the page. This may create a frustrating or confusing experience. [Learn more about the refresh meta tag](https://dequeuniversity.com/rules/axe/4.12/meta-refresh)."
    };
    str_55 = createIcuMessageFn({ url: "core/audits/accessibility/meta-refresh.js" }.url, UIStrings75);
    MetaRefresh = class extends axe_audit_default {
      static {
        __name(this, "MetaRefresh");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "meta-refresh",
          title: str_55(UIStrings75.title),
          failureTitle: str_55(UIStrings75.failureTitle),
          description: str_55(UIStrings75.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    meta_refresh_default = MetaRefresh;
  }
});

// core/audits/accessibility/meta-viewport.js
var meta_viewport_exports = {};
__export(meta_viewport_exports, {
  UIStrings: () => UIStrings76,
  default: () => meta_viewport_default
});
var UIStrings76, str_56, MetaViewport, meta_viewport_default;
var init_meta_viewport = __esm({
  "core/audits/accessibility/meta-viewport.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings76 = {
      /** Title of an accessibility audit that evaluates if the page has limited the scaling properties of the page in a way that harms users with low vision. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: '`[user-scalable="no"]` is not used in the `<meta name="viewport">` element and the `[maximum-scale]` attribute is not less than 5.',
      /** Title of an accessibility audit that evaluates if the page has limited the scaling properties of the page in a way that harms users with low vision. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: '`[user-scalable="no"]` is used in the `<meta name="viewport">` element or the `[maximum-scale]` attribute is less than 5.',
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Disabling zooming is problematic for users with low vision who rely on screen magnification to properly see the contents of a web page. [Learn more about the viewport meta tag](https://dequeuniversity.com/rules/axe/4.12/meta-viewport)."
    };
    str_56 = createIcuMessageFn({ url: "core/audits/accessibility/meta-viewport.js" }.url, UIStrings76);
    MetaViewport = class extends axe_audit_default {
      static {
        __name(this, "MetaViewport");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "meta-viewport",
          title: str_56(UIStrings76.title),
          failureTitle: str_56(UIStrings76.failureTitle),
          description: str_56(UIStrings76.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    meta_viewport_default = MetaViewport;
  }
});

// core/audits/accessibility/object-alt.js
var object_alt_exports = {};
__export(object_alt_exports, {
  UIStrings: () => UIStrings77,
  default: () => object_alt_default
});
var UIStrings77, str_57, ObjectAlt, object_alt_default;
var init_object_alt = __esm({
  "core/audits/accessibility/object-alt.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings77 = {
      /** Title of an accessibility audit that evaluates if all object elements have an alt HTML attribute that describes their contents. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`<object>` elements have alternate text",
      /** Title of an accessibility audit that evaluates if all object elements have an alt HTML attribute that describes their contents. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`<object>` elements do not have alternate text",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Screen readers cannot translate non-text content. Adding alternate text to `<object>` elements helps screen readers convey meaning to users. [Learn more about alt text for `object` elements](https://dequeuniversity.com/rules/axe/4.12/object-alt)."
    };
    str_57 = createIcuMessageFn({ url: "core/audits/accessibility/object-alt.js" }.url, UIStrings77);
    ObjectAlt = class extends axe_audit_default {
      static {
        __name(this, "ObjectAlt");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "object-alt",
          title: str_57(UIStrings77.title),
          failureTitle: str_57(UIStrings77.failureTitle),
          description: str_57(UIStrings77.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    object_alt_default = ObjectAlt;
  }
});

// core/audits/accessibility/presentation-role-conflict.js
var presentation_role_conflict_exports = {};
__export(presentation_role_conflict_exports, {
  UIStrings: () => UIStrings78,
  default: () => presentation_role_conflict_default
});
var UIStrings78, str_58, PresentationRoleConflict, presentation_role_conflict_default;
var init_presentation_role_conflict = __esm({
  "core/audits/accessibility/presentation-role-conflict.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings78 = {
      /** Title of an accessibility audit that evaluates if elements with presentation role have conflicts. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: 'Elements with `role="none"` or `role="presentation"` do not have conflicts',
      /** Title of an accessibility audit that evaluates if elements with presentation role have conflicts. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: 'Elements with `role="none"` or `role="presentation"` have conflicts',
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with \'Learn\' becomes link text to additional documentation. */
      description: 'There are certain cases where the semantic role of an element with `role="none"` or `role="presentation"` does not resolve to none or presentation. To ensure the element remains removed from the accessibility tree, you should not add any global ARIA attributes to the element or make it focusable. [Learn more about presentation role conflict](https://dequeuniversity.com/rules/axe/4.12/presentation-role-conflict).'
    };
    str_58 = createIcuMessageFn({ url: "core/audits/accessibility/presentation-role-conflict.js" }.url, UIStrings78);
    PresentationRoleConflict = class extends axe_audit_default {
      static {
        __name(this, "PresentationRoleConflict");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "presentation-role-conflict",
          title: str_58(UIStrings78.title),
          failureTitle: str_58(UIStrings78.failureTitle),
          description: str_58(UIStrings78.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    presentation_role_conflict_default = PresentationRoleConflict;
  }
});

// core/audits/accessibility/select-name.js
var select_name_exports = {};
__export(select_name_exports, {
  UIStrings: () => UIStrings79,
  default: () => select_name_default
});
var UIStrings79, str_59, SelectName, select_name_default;
var init_select_name = __esm({
  "core/audits/accessibility/select-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings79 = {
      /** Title of an accessibility audit that evaluates if all select elements have programmatically associated label elements. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Select elements have associated label elements.",
      /** Title of an accessibility audit that evaluates if all select elements have programmatically associated label elements. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Select elements do not have associated label elements.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Form elements without effective labels can create frustrating experiences for screen reader users. [Learn more about the `select` element](https://dequeuniversity.com/rules/axe/4.12/select-name)."
    };
    str_59 = createIcuMessageFn({ url: "core/audits/accessibility/select-name.js" }.url, UIStrings79);
    SelectName = class extends axe_audit_default {
      static {
        __name(this, "SelectName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "select-name",
          title: str_59(UIStrings79.title),
          failureTitle: str_59(UIStrings79.failureTitle),
          description: str_59(UIStrings79.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    select_name_default = SelectName;
  }
});

// core/audits/accessibility/skip-link.js
var skip_link_exports = {};
__export(skip_link_exports, {
  UIStrings: () => UIStrings80,
  default: () => skip_link_default
});
var UIStrings80, str_60, SkipLink, skip_link_default;
var init_skip_link = __esm({
  "core/audits/accessibility/skip-link.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings80 = {
      /** Title of an accessibility audit that evaluates if the skip link is focusable. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Skip links are focusable.",
      /** Title of an accessibility audit that evaluates if the skip link is focusable. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Skip links are not focusable.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Including a skip link can help users skip to the main content to save time. [Learn more about skip links](https://dequeuniversity.com/rules/axe/4.12/skip-link)."
    };
    str_60 = createIcuMessageFn({ url: "core/audits/accessibility/skip-link.js" }.url, UIStrings80);
    SkipLink = class extends axe_audit_default {
      static {
        __name(this, "SkipLink");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "skip-link",
          title: str_60(UIStrings80.title),
          failureTitle: str_60(UIStrings80.failureTitle),
          description: str_60(UIStrings80.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    skip_link_default = SkipLink;
  }
});

// core/audits/accessibility/svg-img-alt.js
var svg_img_alt_exports = {};
__export(svg_img_alt_exports, {
  UIStrings: () => UIStrings81,
  default: () => svg_img_alt_default
});
var UIStrings81, str_61, SvgImgAlt, svg_img_alt_default;
var init_svg_img_alt = __esm({
  "core/audits/accessibility/svg-img-alt.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings81 = {
      /** Title of an accessibility audit that evaluates if SVG elements with an img role have an accessible text alternative. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "SVG elements with an `img` role have an accessible text alternative",
      /** Title of an accessibility audit that evaluates if SVG elements with an img role have an accessible text alternative. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "SVG elements with an `img` role do not have an accessible text alternative",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with \'Learn\' becomes link text to additional documentation. */
      description: "Ensures SVG elements with an `img`, `graphics-document` or `graphics-symbol` role have an accessible text alternative. [Learn more about SVG alt text](https://dequeuniversity.com/rules/axe/4.12/svg-img-alt)."
    };
    str_61 = createIcuMessageFn({ url: "core/audits/accessibility/svg-img-alt.js" }.url, UIStrings81);
    SvgImgAlt = class extends axe_audit_default {
      static {
        __name(this, "SvgImgAlt");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "svg-img-alt",
          title: str_61(UIStrings81.title),
          failureTitle: str_61(UIStrings81.failureTitle),
          description: str_61(UIStrings81.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    svg_img_alt_default = SvgImgAlt;
  }
});

// core/audits/accessibility/tabindex.js
var tabindex_exports = {};
__export(tabindex_exports, {
  UIStrings: () => UIStrings82,
  default: () => tabindex_default
});
var UIStrings82, str_62, TabIndex, tabindex_default;
var init_tabindex = __esm({
  "core/audits/accessibility/tabindex.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings82 = {
      /** Title of an accessibility audit that evaluates if any elements have custom tabindex HTML attributes that might frustrate users of assitive technology. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "No element has a `[tabindex]` value greater than 0",
      /** Title of an accessibility audit that evaluates if any elements have custom tabindex HTML attributes that might frustrate users of assitive technology. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Some elements have a `[tabindex]` value greater than 0",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "A value greater than 0 implies an explicit navigation ordering. Although technically valid, this often creates frustrating experiences for users who rely on assistive technologies. [Learn more about the `tabindex` attribute](https://dequeuniversity.com/rules/axe/4.12/tabindex)."
    };
    str_62 = createIcuMessageFn({ url: "core/audits/accessibility/tabindex.js" }.url, UIStrings82);
    TabIndex = class extends axe_audit_default {
      static {
        __name(this, "TabIndex");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "tabindex",
          title: str_62(UIStrings82.title),
          failureTitle: str_62(UIStrings82.failureTitle),
          description: str_62(UIStrings82.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    tabindex_default = TabIndex;
  }
});

// core/audits/accessibility/table-duplicate-name.js
var table_duplicate_name_exports = {};
__export(table_duplicate_name_exports, {
  UIStrings: () => UIStrings83,
  default: () => table_duplicate_name_default
});
var UIStrings83, str_63, TableDuplicateName, table_duplicate_name_default;
var init_table_duplicate_name = __esm({
  "core/audits/accessibility/table-duplicate-name.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings83 = {
      /** Title of an accessibility audit that evaluates if tables have different content in the summary attribute and caption element. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Tables have different content in the summary attribute and `<caption>`.",
      /** Title of an accessibility audit that evaluates if tables have different content in the summary attribute and caption element. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Tables have the same content in the summary attribute and `<caption>.`",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "The summary attribute should describe the table structure, while `<caption>` should have the onscreen title. Accurate table mark-up helps users of screen readers. [Learn more about summary and caption](https://dequeuniversity.com/rules/axe/4.12/table-duplicate-name)."
    };
    str_63 = createIcuMessageFn({ url: "core/audits/accessibility/table-duplicate-name.js" }.url, UIStrings83);
    TableDuplicateName = class extends axe_audit_default {
      static {
        __name(this, "TableDuplicateName");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "table-duplicate-name",
          title: str_63(UIStrings83.title),
          failureTitle: str_63(UIStrings83.failureTitle),
          description: str_63(UIStrings83.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    table_duplicate_name_default = TableDuplicateName;
  }
});

// core/audits/accessibility/table-fake-caption.js
var table_fake_caption_exports = {};
__export(table_fake_caption_exports, {
  UIStrings: () => UIStrings84,
  default: () => table_fake_caption_default
});
var UIStrings84, str_64, TableFakeCaption, table_fake_caption_default;
var init_table_fake_caption = __esm({
  "core/audits/accessibility/table-fake-caption.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings84 = {
      /** Title of an accessibility audit that evaluates if all tables use caption instead of colspan to indicate a caption. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Tables use `<caption>` instead of cells with the `[colspan]` attribute to indicate a caption.",
      /** Title of an accessibility audit that evaluates if all tables use caption instead of colspan to indicate a caption. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Tables do not use `<caption>` instead of cells with the `[colspan]` attribute to indicate a caption.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Screen readers have features to make navigating tables easier. Ensuring that tables use the actual caption element instead of cells with the `[colspan]` attribute may improve the experience for screen reader users. [Learn more about captions](https://dequeuniversity.com/rules/axe/4.12/table-fake-caption)."
    };
    str_64 = createIcuMessageFn({ url: "core/audits/accessibility/table-fake-caption.js" }.url, UIStrings84);
    TableFakeCaption = class extends axe_audit_default {
      static {
        __name(this, "TableFakeCaption");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "table-fake-caption",
          title: str_64(UIStrings84.title),
          failureTitle: str_64(UIStrings84.failureTitle),
          description: str_64(UIStrings84.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    table_fake_caption_default = TableFakeCaption;
  }
});

// core/audits/accessibility/target-size.js
var target_size_exports = {};
__export(target_size_exports, {
  UIStrings: () => UIStrings85,
  default: () => target_size_default
});
var UIStrings85, str_65, TargetSize, target_size_default;
var init_target_size = __esm({
  "core/audits/accessibility/target-size.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings85 = {
      /** Title of an accessibility audit that checks if all touch targets have sufficient size and spacing. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Touch targets have sufficient size and spacing.",
      /** Title of an accessibility audit that checks if all touch targets have sufficient size and spacing. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Touch targets do not have sufficient size or spacing.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Touch targets with sufficient size and spacing help users who may have difficulty targeting small controls to activate the targets. [Learn more about touch targets](https://dequeuniversity.com/rules/axe/4.12/target-size)."
    };
    str_65 = createIcuMessageFn({ url: "core/audits/accessibility/target-size.js" }.url, UIStrings85);
    TargetSize = class extends axe_audit_default {
      static {
        __name(this, "TargetSize");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "target-size",
          title: str_65(UIStrings85.title),
          failureTitle: str_65(UIStrings85.failureTitle),
          description: str_65(UIStrings85.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    target_size_default = TargetSize;
  }
});

// core/audits/accessibility/td-has-header.js
var td_has_header_exports = {};
__export(td_has_header_exports, {
  UIStrings: () => UIStrings86,
  default: () => td_has_header_default
});
var UIStrings86, str_66, TDHasHeader, td_has_header_default;
var init_td_has_header = __esm({
  "core/audits/accessibility/td-has-header.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings86 = {
      /** Title of an accessibility audit that evaluates if all large table elements use the headers HTML attribute. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`<td>` elements in a large `<table>` have one or more table headers.",
      /** Title of an accessibility audit that evaluates if all large table elements use the headers HTML attribute. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`<td>` elements in a large `<table>` do not have table headers.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Screen readers have features to make navigating tables easier. Ensuring that `<td>` elements in a large table (3 or more cells in width and height) have an associated table header may improve the experience for screen reader users. [Learn more about table headers](https://dequeuniversity.com/rules/axe/4.12/td-has-header)."
    };
    str_66 = createIcuMessageFn({ url: "core/audits/accessibility/td-has-header.js" }.url, UIStrings86);
    TDHasHeader = class extends axe_audit_default {
      static {
        __name(this, "TDHasHeader");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "td-has-header",
          title: str_66(UIStrings86.title),
          failureTitle: str_66(UIStrings86.failureTitle),
          description: str_66(UIStrings86.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    td_has_header_default = TDHasHeader;
  }
});

// core/audits/accessibility/td-headers-attr.js
var td_headers_attr_exports = {};
__export(td_headers_attr_exports, {
  UIStrings: () => UIStrings87,
  default: () => td_headers_attr_default
});
var UIStrings87, str_67, TDHeadersAttr, td_headers_attr_default;
var init_td_headers_attr = __esm({
  "core/audits/accessibility/td-headers-attr.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings87 = {
      /** Title of an accessibility audit that evaluates if all table cell elements in a table that use the headers HTML attribute use it correctly to refer to header cells within the same table. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "Cells in a `<table>` element that use the `[headers]` attribute refer to table cells within the same table.",
      /** Title of an accessibility audit that evaluates if all table cell elements in a table that use the headers HTML attribute use it correctly to refer to header cells within the same table. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "Cells in a `<table>` element that use the `[headers]` attribute refer to an element `id` not found within the same table.",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Screen readers have features to make navigating tables easier. Ensuring `<td>` cells using the `[headers]` attribute only refer to other cells in the same table may improve the experience for screen reader users. [Learn more about the `headers` attribute](https://dequeuniversity.com/rules/axe/4.12/td-headers-attr)."
    };
    str_67 = createIcuMessageFn({ url: "core/audits/accessibility/td-headers-attr.js" }.url, UIStrings87);
    TDHeadersAttr = class extends axe_audit_default {
      static {
        __name(this, "TDHeadersAttr");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "td-headers-attr",
          title: str_67(UIStrings87.title),
          failureTitle: str_67(UIStrings87.failureTitle),
          description: str_67(UIStrings87.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    td_headers_attr_default = TDHeadersAttr;
  }
});

// core/audits/accessibility/th-has-data-cells.js
var th_has_data_cells_exports = {};
__export(th_has_data_cells_exports, {
  UIStrings: () => UIStrings88,
  default: () => th_has_data_cells_default
});
var UIStrings88, str_68, THHasDataCells, th_has_data_cells_default;
var init_th_has_data_cells = __esm({
  "core/audits/accessibility/th-has-data-cells.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings88 = {
      /** Title of an accessibility audit that evaluates if all table header elements have children. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: '`<th>` elements and elements with `[role="columnheader"/"rowheader"]` have data cells they describe.',
      /** Title of an accessibility audit that evaluates if all table header elements have children. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: '`<th>` elements and elements with `[role="columnheader"/"rowheader"]` do not have data cells they describe.',
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Screen readers have features to make navigating tables easier. Ensuring table headers always refer to some set of cells may improve the experience for screen reader users. [Learn more about table headers](https://dequeuniversity.com/rules/axe/4.12/th-has-data-cells)."
    };
    str_68 = createIcuMessageFn({ url: "core/audits/accessibility/th-has-data-cells.js" }.url, UIStrings88);
    THHasDataCells = class extends axe_audit_default {
      static {
        __name(this, "THHasDataCells");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "th-has-data-cells",
          title: str_68(UIStrings88.title),
          failureTitle: str_68(UIStrings88.failureTitle),
          description: str_68(UIStrings88.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    th_has_data_cells_default = THHasDataCells;
  }
});

// core/audits/accessibility/valid-lang.js
var valid_lang_exports = {};
__export(valid_lang_exports, {
  UIStrings: () => UIStrings89,
  default: () => valid_lang_default
});
var UIStrings89, str_69, ValidLang, valid_lang_default;
var init_valid_lang = __esm({
  "core/audits/accessibility/valid-lang.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings89 = {
      /** Title of an accessibility audit that evaluates if all lang HTML attributes are valid BCP 47 languages. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: "`[lang]` attributes have a valid value",
      /** Title of an accessibility audit that evaluates if all lang HTML attributes are valid BCP 47 languages. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: "`[lang]` attributes do not have a valid value",
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Specifying a valid [BCP 47 language](https://www.w3.org/International/questions/qa-choosing-language-tags#question) on elements helps ensure that text is pronounced correctly by a screen reader. [Learn how to use the `lang` attribute](https://dequeuniversity.com/rules/axe/4.12/valid-lang)."
    };
    str_69 = createIcuMessageFn({ url: "core/audits/accessibility/valid-lang.js" }.url, UIStrings89);
    ValidLang = class extends axe_audit_default {
      static {
        __name(this, "ValidLang");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "valid-lang",
          title: str_69(UIStrings89.title),
          failureTitle: str_69(UIStrings89.failureTitle),
          description: str_69(UIStrings89.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    valid_lang_default = ValidLang;
  }
});

// core/audits/accessibility/video-caption.js
var video_caption_exports = {};
__export(video_caption_exports, {
  UIStrings: () => UIStrings90,
  default: () => video_caption_default
});
var UIStrings90, str_70, VideoCaption, video_caption_default;
var init_video_caption = __esm({
  "core/audits/accessibility/video-caption.js"() {
    "use strict";
    init_process_global();
    init_axe_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings90 = {
      /** Title of an accessibility audit that evaluates if all video elements contain a child track element that has captions describing their audio. This title is descriptive of the successful state and is shown to users when no user action is required. */
      title: '`<video>` elements contain a `<track>` element with `[kind="captions"]`',
      /** Title of an accessibility audit that evaluates if all video elements contain a child track element that has captions describing their audio. This title is descriptive of the failing state and is shown to users when there is a failure that needs to be addressed. */
      failureTitle: '`<video>` elements do not contain a `<track>` element with `[kind="captions"]`.',
      /** Description of a Lighthouse audit that tells the user *why* they should try to pass. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "When a video provides a caption it is easier for deaf and hearing impaired users to access its information. [Learn more about video captions](https://dequeuniversity.com/rules/axe/4.12/video-caption)."
    };
    str_70 = createIcuMessageFn({ url: "core/audits/accessibility/video-caption.js" }.url, UIStrings90);
    VideoCaption = class extends axe_audit_default {
      static {
        __name(this, "VideoCaption");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "video-caption",
          title: str_70(UIStrings90.title),
          failureTitle: str_70(UIStrings90.failureTitle),
          description: str_70(UIStrings90.description),
          scoreDisplayMode: axe_audit_default.SCORING_MODES.INFORMATIVE,
          requiredArtifacts: ["Accessibility"]
        };
      }
    };
    video_caption_default = VideoCaption;
  }
});

// core/audits/agentic/agent-accessibility-tree.js
var agent_accessibility_tree_exports = {};
__export(agent_accessibility_tree_exports, {
  UIStrings: () => UIStrings91,
  default: () => agent_accessibility_tree_default
});
var UIStrings91, str_71, TARGET_RULES, AgentAccessibilityTree, agent_accessibility_tree_default;
var init_agent_accessibility_tree = __esm({
  "core/audits/agentic/agent-accessibility-tree.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings91 = {
      /** Title shown when all agent accessibility checks pass. */
      title: "Accessibility tree is well-formed",
      /** Title shown when one or more agent accessibility checks fail. */
      failureTitle: "Accessibility tree is not well-formed",
      /** Description of a Lighthouse audit that tells the user *why* they need a well-formed accessibility tree. */
      description: "A well-formed [accessibility tree](http://goo.gle/lighthouse-agentic-a11y) helps AI agents to navigate and interact with the page.",
      /** Label of a table column that identifies the accessibility rule that failed. */
      columnRule: "Failing Rule",
      /** Label of a table column that identifies the HTML element that failed the rule. */
      columnElement: "Failing Element",
      /** Title of the section containing failed accessibility checks. */
      failedSectionTitle: "Failed Audits",
      /** Message shown when all accessibility checks pass. */
      displayValuePassed: "All audits passed"
    };
    str_71 = createIcuMessageFn({ url: "core/audits/agentic/agent-accessibility-tree.js" }.url, UIStrings91);
    TARGET_RULES = /* @__PURE__ */ new Set([
      "button-name",
      "input-button-name",
      "input-image-alt",
      "label",
      "link-name",
      "select-name",
      "document-title",
      "aria-allowed-attr",
      "aria-allowed-role",
      "aria-command-name",
      "aria-conditional-attr",
      "aria-dialog-name",
      "aria-hidden-body",
      "aria-hidden-focus",
      "aria-input-field-name",
      "aria-prohibited-attr",
      "aria-required-attr",
      "aria-required-children",
      "aria-required-parent",
      "aria-roles",
      "aria-text",
      "aria-toggle-field-name",
      "aria-tooltip-name",
      "aria-treeitem-name",
      "aria-valid-attr",
      "aria-valid-attr-value",
      "duplicate-id-aria",
      "definition-list",
      "table-duplicate-name",
      "tabindex",
      "autocomplete-valid",
      "presentation-role-conflict",
      "svg-img-alt"
    ]);
    AgentAccessibilityTree = class extends Audit {
      static {
        __name(this, "AgentAccessibilityTree");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "agent-accessibility-tree",
          title: str_71(UIStrings91.title),
          failureTitle: str_71(UIStrings91.failureTitle),
          description: str_71(UIStrings91.description),
          requiredArtifacts: ["Accessibility"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const violations = artifacts.Accessibility && artifacts.Accessibility.violations || [];
        const failedRules = violations.filter((v) => TARGET_RULES.has(v.id));
        const headings = [
          { key: "description", valueType: "text", label: str_71(UIStrings.columnDescription) },
          { key: "node", valueType: "node", label: str_71(UIStrings91.columnElement) }
        ];
        const items = failedRules.map((rule) => ({
          description: rule.help || rule.description,
          node: rule.nodes?.[0] ? Audit.makeNodeItem(rule.nodes[0].node) : void 0
        }));
        const listItems = [];
        if (items.length > 0) {
          const table = Audit.makeTableDetails(headings, items);
          listItems.push(Audit.makeListDetailSectionItem(table, str_71(UIStrings91.failedSectionTitle)));
        }
        return {
          score: Number(items.length === 0),
          details: listItems.length > 0 ? Audit.makeListDetails(listItems) : void 0,
          displayValue: items.length === 0 ? str_71(UIStrings91.displayValuePassed) : void 0
        };
      }
    };
    agent_accessibility_tree_default = AgentAccessibilityTree;
  }
});

// core/audits/agentic/llms-txt.js
var llms_txt_exports2 = {};
__export(llms_txt_exports2, {
  UIStrings: () => UIStrings92,
  default: () => llms_txt_default2
});
var HTTP_CLIENT_ERROR_CODE_LOW, HTTP_SERVER_ERROR_CODE_LOW, UIStrings92, str_72, LlmsTxt2, llms_txt_default2;
var init_llms_txt2 = __esm({
  "core/audits/agentic/llms-txt.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    HTTP_CLIENT_ERROR_CODE_LOW = 400;
    HTTP_SERVER_ERROR_CODE_LOW = 500;
    UIStrings92 = {
      /** Title of a Lighthouse audit that provides detail on the site's llms.txt file. Note: "llms.txt" is a canonical filename and should not be translated. This descriptive title is shown when the llms.txt file follows community recommendations. */
      title: "llms.txt follows recommendations",
      /** Title of a Lighthouse audit that provides detail on the site's llms.txt file. Note: "llms.txt" is a canonical filename and should not be translated. This descriptive title is shown when the llms.txt file does not follow community recommendations. */
      failureTitle: "llms.txt does not follow recommendations",
      /** Description of a Lighthouse audit that tells the user *why* they should have an llms.txt file. Note: "llms.txt" is a canonical filename and should not be translated. This is displayed after a user expands the section to see more. No character length limits. */
      description: "If your llms.txt file does not follow recommendations, large language models may not be able to understand how you want your website to be crawled or used for training. The [llms.txt](https://llmstxt.org/) file should be a Markdown file containing at least one H1 header.",
      /**
       * @description Label for the audit identifying that the request failed with a specific HTTP status code.
       * @example {500} statusCode
       * */
      displayValueHttpBadCode: "Failed with HTTP status {statusCode}",
      /** Explanatory message stating that there was a failure in an audit caused by Lighthouse not being able to download the llms.txt file for the site.  Note: "llms.txt" is a canonical filename and should not be translated. */
      explanation: "Fetch of llms.txt failed",
      /** Message indicating that the file is missing a required H1 header. */
      missingH1: 'File is missing a required H1 header (e.g., "# Title").',
      /** Message indicating that the file is suspiciously short. */
      tooShort: "File is suspiciously short.",
      /** Message indicating that the file is missing links. */
      missingLinks: "File does not appear to contain any links."
    };
    str_72 = createIcuMessageFn({ url: "core/audits/agentic/llms-txt.js" }.url, UIStrings92);
    LlmsTxt2 = class extends Audit {
      static {
        __name(this, "LlmsTxt");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "llms-txt",
          title: str_72(UIStrings92.title),
          failureTitle: str_72(UIStrings92.failureTitle),
          description: str_72(UIStrings92.description),
          requiredArtifacts: ["LlmsTxt"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const {
          status,
          content
        } = artifacts.LlmsTxt;
        if (!status) {
          return {
            score: 0,
            explanation: str_72(UIStrings92.explanation)
          };
        }
        if (status >= HTTP_SERVER_ERROR_CODE_LOW) {
          return {
            score: 0,
            displayValue: str_72(UIStrings92.displayValueHttpBadCode, { statusCode: status })
          };
        } else if (status >= HTTP_CLIENT_ERROR_CODE_LOW) {
          return {
            score: 1,
            notApplicable: true
          };
        }
        if (content === null) {
          throw new Error(`Status ${status} was valid, but content was null`);
        }
        const hasH1 = /^\s*#\s+.+/m.test(content);
        const hasLink = /\[.+\]\(.+\)/.test(content);
        const isTooShort = content.length < 50;
        const errors = [];
        if (!hasH1) errors.push(str_72(UIStrings92.missingH1));
        if (!hasLink) errors.push(str_72(UIStrings92.missingLinks));
        if (isTooShort) errors.push(str_72(UIStrings92.tooShort));
        const headings = [
          { key: "message", valueType: "text", label: "Error" }
        ];
        const details = Audit.makeTableDetails(headings, errors.map((m) => ({ message: m })));
        return {
          score: Number(errors.length === 0),
          details: errors.length ? details : void 0
        };
      }
    };
    llms_txt_default2 = LlmsTxt2;
  }
});

// core/lib/baseline/web-features-data.json
var web_features_data_default;
var init_web_features_data = __esm({
  "core/lib/baseline/web-features-data.json"() {
    web_features_data_default = {
      high: {
        a: "2015-07-29",
        abbr: "2015-07-29",
        "abortable-fetch": "2019-03-25",
        aborting: "2019-03-25",
        "absolute-positioning": "2015-07-29",
        accesskey: "2015-07-29",
        address: "2015-07-29",
        alerts: "2015-07-29",
        all: "2020-01-15",
        "angle-instanced-arrays": "2016-06-07",
        "animation-composition": "2023-07-04",
        "animations-css": "2015-09-30",
        appearance: "2022-03-14",
        "aria-attribute-reflection": "2023-10-24",
        array: "2015-07-29",
        "array-at": "2022-03-14",
        "array-by-copy": "2023-07-04",
        "array-copywithin": "2016-09-20",
        "array-fill": "2016-09-20",
        "array-find": "2016-09-20",
        "array-findlast": "2022-08-23",
        "array-flat": "2020-01-15",
        "array-from": "2016-09-20",
        "array-includes": "2016-09-20",
        "array-isarray": "2015-07-29",
        "array-iteration-methods": "2015-07-29",
        "array-iterators": "2018-05-09",
        "array-of": "2016-09-20",
        "array-splice": "2015-07-29",
        article: "2015-07-29",
        aside: "2015-07-29",
        "aspect-ratio": "2021-09-20",
        "async-await": "2017-04-05",
        "async-generators": "2020-01-15",
        "async-iterators": "2020-01-15",
        "attr-contents": "2015-07-29",
        audio: "2015-07-29",
        "audio-worklet": "2021-04-26",
        autofocus: "2015-07-29",
        "autonomous-custom-elements": "2020-01-15",
        b: "2015-07-29",
        backdrop: "2022-03-14",
        background: "2015-07-29",
        "background-blend-mode": "2020-01-15",
        "background-clip": "2015-07-29",
        "background-color": "2015-07-29",
        "background-image": "2015-07-29",
        "background-origin": "2015-07-29",
        "background-position": "2015-07-29",
        "background-repeat": "2016-09-20",
        "background-size": "2015-07-29",
        barprop: "2015-07-29",
        base: "2015-07-29",
        base64encodedecode: "2016-09-20",
        bdi: "2020-01-15",
        bdo: "2015-07-29",
        beacons: "2018-04-12",
        "before-after": "2015-07-29",
        bigint: "2020-09-16",
        bigint64array: "2021-09-20",
        blockquote: "2015-07-29",
        bmp: "2015-07-29",
        body: "2015-07-29",
        "border-image": "2017-02-01",
        "border-radius": "2015-07-29",
        borders: "2015-07-29",
        "box-shadow": "2015-07-29",
        "box-sizing": "2015-07-29",
        br: "2015-07-29",
        "broadcast-channel": "2022-03-14",
        brotli: "2017-09-19",
        button: "2015-07-29",
        calc: "2015-07-29",
        "calc-constants": "2023-06-06",
        canvas: "2015-07-29",
        "canvas-2d": "2015-07-29",
        "canvas-createconicgradient": "2023-04-11",
        "canvas-roundrect": "2023-04-11",
        "capture-stream-canvas": "2020-01-15",
        "caret-color": "2020-01-15",
        "cascade-layers": "2022-03-14",
        "case-insensitive-attributes": "2020-01-15",
        ch: "2015-07-29",
        "change-event": "2015-07-29",
        "channel-messaging": "2015-09-22",
        charset: "2015-07-29",
        cite: "2015-07-29",
        "class-syntax": "2016-03-08",
        "clip-path": "2021-01-21",
        "clip-path-animatable": "2020-01-15",
        "clip-path-boxes": "2023-11-02",
        "clipboard-events": "2017-03-27",
        code: "2015-07-29",
        color: "2015-07-29",
        "color-function": "2023-05-09",
        "color-gamut": "2023-02-14",
        "color-mix": "2023-05-09",
        "color-scheme": "2022-02-03",
        colrv0: "2020-01-15",
        "column-fill": "2017-03-07",
        "column-span": "2020-07-28",
        "composition-events": "2017-04-19",
        "compression-streams": "2023-05-09",
        "conic-gradients": "2020-11-17",
        console: "2015-07-29",
        "constraint-validation": "2018-12-11",
        "constructed-stylesheets": "2023-03-27",
        contain: "2022-03-14",
        "contain-inline-size": "2022-09-12",
        "contain-intrinsic-size": "2023-09-18",
        "contain-layout": "2022-03-14",
        "contain-paint": "2022-03-14",
        "contain-size": "2022-03-14",
        "contain-style": "2022-07-26",
        "container-queries": "2023-02-14",
        content: "2015-07-29",
        contenteditable: "2015-07-29",
        cookies: "2015-07-29",
        cors: "2015-07-29",
        "counter-style": "2023-09-18",
        counters: "2015-07-29",
        "credential-management": "2020-01-15",
        csp: "2016-08-02",
        "css-escape": "2020-01-15",
        "css-object-model": "2015-09-30",
        "css-supports": "2020-01-15",
        "cubic-bezier-easing": "2015-07-29",
        currentcolor: "2015-07-29",
        "custom-properties": "2017-04-05",
        data: "2017-10-24",
        "data-urls": "2015-07-29",
        dataset: "2015-07-29",
        date: "2015-07-29",
        "dedicated-workers": "2015-07-29",
        default: "2020-01-15",
        del: "2015-07-29",
        "description-list": "2015-07-29",
        destructuring: "2020-01-15",
        details: "2020-01-15",
        "device-orientation-events": "2023-09-18",
        dfn: "2015-07-29",
        dialog: "2022-03-14",
        dirname: "2023-08-01",
        display: "2015-07-29",
        "display-flow-root": "2020-01-15",
        "display-list-item": "2015-07-29",
        "display-table": "2015-07-29",
        div: "2015-07-29",
        dom: "2015-07-29",
        "dom-geometry": "2020-01-15",
        "dominant-baseline": "2020-01-15",
        domparser: "2016-03-21",
        download: "2019-09-19",
        draganddrop: "2015-07-29",
        "dynamic-range": "2022-05-03",
        "element-from-point": "2020-01-15",
        em: "2015-07-29",
        "em-unit": "2015-07-29",
        embed: "2020-01-15",
        empty: "2015-07-29",
        "encrypted-media-extensions": "2019-03-25",
        enterkeyhint: "2021-11-02",
        "error-cause": "2021-09-20",
        events: "2015-07-29",
        ex: "2015-07-29",
        exponentiation: "2017-03-27",
        "ext-blend-minmax": "2018-04-30",
        "ext-color-buffer-float": "2021-09-20",
        "ext-color-buffer-half-float": "2020-09-16",
        "ext-srgb": "2020-02-07",
        "ext-texture-filter-anisotropic": "2016-06-07",
        fetch: "2017-03-27",
        fieldset: "2015-07-29",
        figure: "2015-07-29",
        file: "2020-01-15",
        "file-selector-button": "2021-04-26",
        filter: "2016-09-07",
        "first-letter": "2015-07-29",
        "first-line": "2015-07-29",
        "fit-content": "2021-11-02",
        "fixed-positioning": "2015-07-29",
        flexbox: "2015-09-30",
        "flexbox-gap": "2021-04-26",
        "float-clear": "2015-07-29",
        "focus-events": "2015-07-29",
        "focus-visible": "2022-03-14",
        "focus-within": "2020-01-15",
        "font-display": "2020-01-15",
        "font-face": "2016-09-20",
        "font-family": "2015-07-29",
        "font-family-system": "2021-09-07",
        "font-feature-settings": "2017-04-05",
        "font-kerning": "2020-01-15",
        "font-loading": "2020-01-15",
        "font-optical-sizing": "2020-03-24",
        "font-palette": "2022-11-15",
        "font-shorthand": "2015-07-29",
        "font-size": "2015-07-29",
        "font-stretch": "2020-01-15",
        "font-style": "2015-07-29",
        "font-synthesis": "2022-01-06",
        "font-synthesis-small-caps": "2023-03-27",
        "font-synthesis-style": "2023-03-27",
        "font-synthesis-weight": "2023-03-27",
        "font-variant": "2015-07-29",
        "font-variant-alternates": "2023-03-13",
        "font-variant-caps": "2020-01-15",
        "font-variant-east-asian": "2020-01-15",
        "font-variant-ligatures": "2020-01-15",
        "font-variant-numeric": "2020-01-15",
        "font-variation-settings": "2018-09-05",
        "font-weight": "2015-07-29",
        "forced-colors": "2022-09-12",
        form: "2015-07-29",
        "form-associated-custom-elements": "2023-03-27",
        "form-validity-pseudos": "2015-07-29",
        functions: "2015-07-29",
        gamepad: "2017-03-27",
        generators: "2016-09-20",
        geolocation: "2015-07-29",
        "get-computed-style": "2015-07-29",
        gif: "2015-07-29",
        globalthis: "2020-01-15",
        gradients: "2015-07-29",
        grid: "2017-10-17",
        "grid-animation": "2022-10-27",
        "hardware-concurrency": "2022-03-14",
        "hashbang-comments": "2020-03-24",
        hashchange: "2015-07-29",
        head: "2015-07-29",
        "header-footer": "2015-07-29",
        headings: "2015-07-29",
        hgroup: "2015-07-29",
        history: "2015-07-29",
        host: "2020-01-15",
        hr: "2015-07-29",
        hsl: "2020-01-15",
        hsts: "2015-07-29",
        html: "2015-07-29",
        "http-authentication": "2015-07-29",
        http11: "2015-07-29",
        http2: "2015-09-30",
        hwb: "2022-04-28",
        "hyphenate-character": "2023-09-18",
        hyphens: "2023-09-18",
        i: "2015-07-29",
        ic: "2022-10-03",
        iframe: "2015-07-29",
        "iframe-sandbox": "2015-07-29",
        "iframe-srcdoc": "2020-01-15",
        "image-maps": "2015-07-29",
        "image-orientation": "2020-04-13",
        "image-rendering": "2021-10-05",
        "image-set": "2023-09-18",
        imagebitmaprenderingcontext: "2020-01-15",
        img: "2015-07-29",
        import: "2015-07-29",
        "import-maps": "2023-03-27",
        indeterminate: "2020-01-15",
        indexeddb: "2021-09-20",
        "individual-transforms": "2022-08-05",
        inert: "2023-04-11",
        "inherit-value": "2015-07-29",
        "initial-value": "2015-11-12",
        input: "2015-07-29",
        "input-button": "2015-07-29",
        "input-checkbox": "2015-07-29",
        "input-date-time": "2021-04-26",
        "input-email-tel-url": "2015-07-29",
        "input-event": "2020-01-15",
        "input-file": "2015-07-29",
        "input-file-multiple": "2015-07-29",
        "input-hidden": "2015-07-29",
        "input-image": "2015-07-29",
        "input-number": "2015-07-29",
        "input-password": "2015-07-29",
        "input-radio": "2015-07-29",
        "input-range": "2017-03-16",
        "input-reset": "2015-07-29",
        "input-selectors": "2015-07-29",
        "input-submit": "2015-07-29",
        inputmode: "2021-12-07",
        ins: "2015-07-29",
        interaction: "2018-12-11",
        "intersection-observer": "2019-03-25",
        intl: "2017-09-28",
        "intl-display-names": "2021-04-26",
        "intl-list-format": "2021-04-26",
        "intl-locale": "2020-09-16",
        "intl-plural-rules": "2019-09-19",
        "intl-relative-time-format": "2020-09-16",
        is: "2021-01-21",
        "is-secure-context": "2018-04-12",
        isolation: "2020-01-15",
        iterators: "2015-07-29",
        javascript: "2015-07-29",
        jpeg: "2015-07-29",
        "js-modules": "2018-05-09",
        "js-modules-workers": "2023-06-06",
        json: "2015-07-29",
        kbd: "2015-07-29",
        "keyboard-events": "2015-07-29",
        lab: "2023-05-09",
        label: "2015-07-29",
        lang: "2015-07-29",
        "lang-attr": "2015-07-29",
        language: "2015-07-29",
        "layout-direction-override": "2020-01-15",
        "let-const": "2016-09-20",
        "letter-spacing": "2015-07-29",
        lh: "2023-11-21",
        "line-break": "2020-07-28",
        "line-height": "2015-07-29",
        link: "2015-07-29",
        "link-rel-preconnect": "2020-01-15",
        "link-rel-preload": "2021-01-26",
        "link-selectors": "2020-01-15",
        "list-elements": "2015-07-29",
        "list-style": "2015-07-29",
        localstorage: "2015-07-29",
        location: "2015-07-29",
        "logical-assignments": "2020-09-16",
        "logical-properties": "2021-09-20",
        main: "2015-07-29",
        map: "2015-07-29",
        margin: "2015-07-29",
        mark: "2015-07-29",
        "mask-type": "2020-01-15",
        matchmedia: "2015-07-29",
        mathml: "2023-01-12",
        "media-capabilities": "2022-04-28",
        "media-capture": "2017-09-19",
        "media-playback-quality": "2020-02-04",
        "media-queries": "2015-07-29",
        "media-query-range-syntax": "2023-03-27",
        "mediastream-recording": "2021-04-26",
        menu: "2015-07-29",
        messageerror: "2023-03-27",
        meta: "2015-07-29",
        "meta-refresh": "2015-07-29",
        meter: "2018-10-02",
        "min-max-clamp": "2020-07-28",
        "min-max-content": "2020-01-15",
        "min-max-width-height": "2015-07-29",
        "mix-blend-mode": "2020-01-15",
        "mixed-content": "2020-01-15",
        modal: "2022-09-02",
        modulepreload: "2023-09-18",
        "motion-path": "2022-09-12",
        "mouse-events": "2015-07-29",
        "multi-column": "2017-03-07",
        mutationobserver: "2015-07-29",
        "named-color": "2015-07-29",
        namespace: "2015-07-29",
        nav: "2015-07-29",
        "navigation-timing": "2021-10-25",
        navigator: "2015-07-29",
        not: "2021-01-21",
        "notifications-apps": "2023-03-27",
        "nth-child": "2015-07-29",
        "nth-child-of": "2023-05-09",
        "nth-of-type": "2015-07-29",
        "nullish-coalescing": "2020-09-16",
        number: "2015-07-29",
        "numeric-separators": "2020-07-28",
        object: "2015-07-29",
        "object-fit": "2020-01-15",
        "object-hasown": "2022-03-14",
        "object-object": "2015-07-29",
        "object-position": "2020-01-15",
        "oes-element-index-uint": "2015-07-29",
        "oes-fbo-render-mipmap": "2021-04-26",
        "oes-standard-derivatives": "2015-07-29",
        "oes-texture-float": "2015-07-29",
        "oes-texture-float-linear": "2015-07-29",
        "oes-texture-half-float": "2016-08-02",
        "oes-vertex-array-object": "2018-04-30",
        "offline-audio-context": "2021-04-26",
        "offscreen-canvas": "2023-03-27",
        oklab: "2023-05-09",
        online: "2015-07-29",
        opacity: "2015-07-29",
        "opacity-svg": "≤2020-03-24",
        "optional-catch-binding": "2020-01-15",
        "origin-private-file-system": "2023-03-27",
        outline: "2023-03-27",
        outlines: "2017-04-05",
        output: "≤2018-10-02",
        overflow: "2023-09-18",
        "overflow-clip": "2022-09-12",
        "overflow-shorthand": "2020-03-24",
        "overflow-wrap": "2018-10-02",
        p: "2015-07-29",
        padding: "2015-07-29",
        "page-breaks": "2019-01-29",
        "page-transition-events": "2015-07-29",
        "page-visibility": "2015-07-29",
        "paint-timing": "2021-04-26",
        "pdf-viewer": "2023-03-27",
        performance: "2015-09-16",
        permissions: "2022-09-12",
        "physical-properties": "2015-07-29",
        picture: "2016-03-21",
        placeholder: "2020-01-15",
        "placeholder-shown": "2020-01-15",
        png: "2020-01-15",
        "pointer-events": "2015-07-29",
        "pointer-events-api": "2020-07-28",
        position: "2015-07-29",
        postmessage: "2015-07-29",
        pre: "2015-07-29",
        "prefers-color-scheme": "2020-01-15",
        "prefers-contrast": "2022-05-31",
        "prefers-reduced-motion": "2020-01-15",
        print: "2023-06-06",
        "print-events": "2019-09-19",
        progress: "2015-07-29",
        promise: "2015-07-29",
        "promise-allsettled": "2020-07-28",
        "promise-any": "2020-09-16",
        "promise-finally": "2018-10-02",
        "proxy-reflect": "2016-09-20",
        push: "2023-03-27",
        q: "2015-07-29",
        "q-unit": "2020-03-24",
        queuemicrotask: "2020-07-28",
        quotes: "2021-04-26",
        "read-write-pseudos": "2020-07-28",
        "referrer-policy": "2021-09-20",
        regexp: "2015-07-29",
        "relative-positioning": "2015-07-29",
        rem: "2015-07-29",
        "request-animation-frame": "2015-07-29",
        "request-animation-frame-workers": "2023-03-27",
        "resize-observer": "2020-07-28",
        resolution: "2022-09-12",
        "resolution-compat": "2018-10-23",
        "resource-size": "2023-03-27",
        "resource-timing": "2017-09-19",
        "revert-value": "2020-07-27",
        rgb: "2020-01-15",
        rlh: "2023-11-21",
        root: "2015-07-29",
        ruby: "2015-07-29",
        s: "2015-07-29",
        "safe-area-inset": "2020-01-15",
        samp: "2015-07-29",
        "scope-pseudo": "2020-01-15",
        screen: "2015-07-29",
        "screen-orientation": "2023-03-27",
        script: "2015-07-29",
        "scroll-behavior": "2022-03-14",
        "scroll-elements": "2020-09-16",
        "scroll-into-view": "2020-01-15",
        "scroll-snap": "2020-01-15",
        search: "2023-10-13",
        "search-input-type": "2015-07-29",
        section: "2015-07-29",
        select: "2015-07-29",
        "selection-api": "2017-03-07",
        selectors: "2015-07-29",
        "server-sent-events": "2020-01-15",
        "server-timing": "2023-03-27",
        "service-workers": "2018-04-30",
        set: "2015-07-29",
        setinterval: "2015-07-29",
        settimeout: "2015-07-29",
        "shadow-dom": "2020-01-15",
        "shadow-parts": "2020-07-28",
        "shape-outside": "2020-01-15",
        shapes: "2020-01-15",
        "shared-memory": "2021-12-13",
        slot: "2020-01-15",
        "slot-assign": "2023-03-27",
        small: "2015-07-29",
        "smil-svg-animations": "2020-01-15",
        source: "2015-07-29",
        "sourcemap-header": "2020-01-15",
        span: "2015-07-29",
        "speech-synthesis": "2018-09-05",
        spellcheck: "2017-11-28",
        spread: "2020-01-15",
        srcset: "2017-03-27",
        "stable-array-sort": "2020-01-15",
        "static-positioning": "2015-07-29",
        "steps-easing": "2020-09-16",
        "sticky-positioning": "2019-09-19",
        "storage-access": "2023-12-05",
        "storage-manager": "2023-09-18",
        streams: "2022-06-28",
        "string-at": "2022-03-14",
        "string-codepoint": "2015-09-30",
        "string-includes": "2015-09-30",
        "string-matchall": "2020-01-15",
        "string-normalize": "2016-09-20",
        "string-pad": "2017-04-05",
        "string-raw": "2015-09-30",
        "string-repeat": "2015-09-30",
        "string-replaceall": "2020-08-27",
        "string-startsends-with": "2015-09-30",
        "string-trim-startend": "2020-01-15",
        "string-wellformed": "2023-10-24",
        strings: "2015-07-29",
        strong: "2015-07-29",
        "structured-clone": "2022-03-14",
        style: "2015-07-29",
        "style-attr": "2015-07-29",
        "sub-sup": "2015-07-29",
        subgrid: "2023-09-15",
        "subresource-integrity": "2018-04-30",
        supports: "2015-09-30",
        "supports-compat": "2016-09-20",
        svg: "2020-01-15",
        "svg-filters": "2015-07-29",
        symbol: "2015-09-30",
        "system-color": "2015-07-29",
        "tab-size": "2021-08-10",
        tabindex: "2018-10-02",
        table: "2015-07-29",
        target: "2015-07-29",
        template: "2015-11-12",
        "template-literals": "2020-01-15",
        "text-align": "2015-07-29",
        "text-align-last": "2022-09-12",
        "text-combine-upright": "2022-03-14",
        "text-decoration": "2015-07-29",
        "text-decoration-skip-ink": "2022-03-14",
        "text-emphasis": "2022-03-03",
        "text-encoding": "2020-01-15",
        "text-indent": "2015-07-29",
        "text-orientation": "2020-09-16",
        "text-overflow": "2015-07-29",
        "text-shadow": "2015-07-29",
        "text-stroke-fill": "2017-04-05",
        "text-tracks": "2015-07-29",
        "text-transform": "2015-07-29",
        "text-underline-offset": "2020-11-19",
        "text-underline-position": "2020-07-28",
        textarea: "2015-07-29",
        time: "2017-10-24",
        title: "2015-07-29",
        "title-attr": "2015-07-29",
        "touch-action": "2019-09-19",
        transforms2d: "2015-09-30",
        transforms3d: "2022-03-14",
        transitions: "2015-09-30",
        translate: "2023-03-14",
        "trig-functions": "2023-03-13",
        "two-value-display": "2023-07-21",
        "typed-array-iteration-methods": "2016-09-20",
        "typed-array-iterators": "2016-09-20",
        "typed-arrays": "2015-07-29",
        u: "2015-07-29",
        "unicode-point-escapes": "2015-09-30",
        "unset-value": "2016-03-21",
        update: "2023-09-18",
        "upgrade-insecure-requests": "2018-04-30",
        url: "2015-07-29",
        "user-action-pseudos": "2015-07-29",
        "user-activation": "2023-11-21",
        "user-agent-sniffing": "2016-09-20",
        "user-pseudos": "2023-11-02",
        var: "2015-07-29",
        "vertical-align": "2015-07-29",
        video: "2015-07-29",
        "viewport-unit-variants": "2022-12-05",
        "viewport-units": "2017-10-17",
        visibility: "2015-07-29",
        "visual-viewport": "2021-08-10",
        wasm: "2017-10-17",
        "wasm-bigint": "2021-04-26",
        "wasm-bulk-memory": "2021-10-25",
        "wasm-exception-handling": "2022-05-03",
        "wasm-multi-value": "2020-10-20",
        "wasm-mutable-globals": "2020-03-24",
        "wasm-non-trapping-float-to-int": "2021-10-25",
        "wasm-reference-types": "2021-11-19",
        "wasm-sign-extension-operators": "2021-04-26",
        "wasm-simd": "2023-03-27",
        "wasm-threads": "2021-12-13",
        wbr: "2015-07-29",
        "weak-references": "2021-04-26",
        weakmap: "2015-07-29",
        weakset: "2015-09-30",
        "web-animations": "2020-09-16",
        "web-audio": "2021-04-26",
        "web-cryptography": "2015-07-29",
        "web-locks": "2022-03-14",
        webauthn: "2021-09-07",
        "webauthn-public-key-easy": "2023-10-24",
        webgl: "2015-07-29",
        "webgl-color-buffer-float": "2021-09-20",
        "webgl-compressed-texture-astc": "2020-01-15",
        "webgl-compressed-texture-etc": "2020-03-24",
        "webgl-compressed-texture-etc1": "2020-03-24",
        "webgl-debug-renderer-info": "2017-04-19",
        "webgl-debug-shaders": "2020-09-16",
        "webgl-depth-texture": "2015-07-29",
        "webgl-lose-context": "2018-04-30",
        "webgl-oes-draw-buffers-indexed": "2022-12-13",
        webgl2: "2021-09-20",
        webp: "2020-09-16",
        webrtc: "2020-01-15",
        "webrtc-sctp": "2023-05-09",
        "webrtc-stats": "2020-01-15",
        websockets: "2015-07-29",
        webvtt: "2015-07-29",
        "webvtt-cue-settings": "2020-01-15",
        where: "2021-01-21",
        "white-space": "2015-07-29",
        "width-height": "2015-07-29",
        "will-change": "2020-01-15",
        window: "2015-07-29",
        "word-break": "2015-09-30",
        "word-spacing": "2015-07-29",
        "writing-mode": "2017-03-27",
        xhr: "2015-07-29",
        "xml-serializer": "2015-07-29",
        xpath: "2015-07-29",
        xslt: "2015-07-29",
        "z-index": "2015-07-29"
      },
      low: {
        "abortsignal-any": "2024-03-19",
        "abortsignal-timeout": "2024-04-18",
        "abs-sign": "2025-06-26",
        "active-view-transition": "2026-01-13",
        "align-content-block": "2024-04-16",
        "alt-text-generated-content": "2024-07-09",
        "array-fromasync": "2024-01-25",
        "array-group": "2024-03-05",
        "async-clipboard": "2024-06-11",
        "atomics-pause": "2025-04-01",
        "atomics-wait-async": "2025-11-11",
        avif: "2024-01-25",
        "backdrop-filter": "2024-09-16",
        "baseline-shift": "2026-03-24",
        "canvas-2d-willreadfrequently": "2024-09-16",
        "canvas-reset": "2023-12-11",
        cap: "2023-12-11",
        "check-visibility": "2024-03-05",
        "clipboard-supports": "2025-03-31",
        "composed-ranges": "2025-08-19",
        "container-style-queries": "2026-05-19",
        "content-visibility": "2025-09-15",
        "contenteditable-plaintextonly": "2025-03-04",
        "contrast-color": "2026-04-10",
        "cookie-enabled": "2024-09-16",
        "counter-set": "2023-12-11",
        createimagebitmap: "2023-12-11",
        "crisp-edges": "2026-05-07",
        "declarative-shadow-dom": "2024-02-20",
        "details-content": "2025-09-16",
        "details-name": "2024-09-03",
        "dir-pseudo": "2023-12-07",
        "document-caretpositionfrompoint": "2025-12-12",
        "event-timing": "2025-12-12",
        "exp-functions": "2023-12-07",
        "fetch-priority": "2024-10-29",
        float16array: "2025-04-04",
        "font-family-math": "2026-03-24",
        "font-size-adjust": "2024-07-25",
        gethtml: "2024-09-16",
        getorinsert: "2026-02-14",
        "gradient-interpolation": "2024-06-11",
        has: "2023-12-19",
        highlight: "2026-03-24",
        http3: "2024-09-16",
        "input-file-webkitdirectory": "2025-08-19",
        "intl-duration-format": "2025-03-04",
        "intl-segmenter": "2024-04-16",
        "invoker-commands": "2025-12-12",
        "iterator-concat": "2026-03-24",
        "iterator-methods": "2025-03-31",
        "js-modules-service-workers": "2026-01-13",
        "js-modules-shared-workers": "2026-05-05",
        "json-modules": "2025-04-29",
        "json-raw": "2025-03-31",
        "largest-contentful-paint": "2025-12-12",
        "light-dark": "2024-05-13",
        "linear-easing": "2023-12-11",
        "link-rel-dns-prefetch": "2025-09-15",
        "loading-lazy": "2023-12-19",
        masks: "2023-12-07",
        "math-sum-precise": "2026-04-10",
        navigation: "2026-01-13",
        nesting: "2023-12-11",
        "open-pseudo": "2026-05-11",
        "page-setup": "2024-12-11",
        "paint-order": "2024-03-22",
        "parse-html-unsafe": "2025-09-15",
        popover: "2025-01-27",
        "preloading-responsive-images": "2023-12-11",
        "preserves-pitch": "2023-12-11",
        "print-color-adjust": "2025-05-01",
        "promise-try": "2025-01-07",
        "promise-withresolvers": "2024-03-05",
        rcap: "2026-01-13",
        rch: "2026-01-13",
        "readable-byte-streams": "2026-03-24",
        "rect-xywh": "2024-01-23",
        "regexp-escape": "2025-05-01",
        "registered-custom-properties": "2024-07-09",
        "relative-color": "2024-09-16",
        reporting: "2026-03-24",
        "reporting-csp-violations": "2026-03-24",
        "request-video-frame-callback": "2024-10-29",
        requestclose: "2025-05-27",
        "resizable-buffers": "2024-07-09",
        rex: "2026-01-13",
        ric: "2026-01-13",
        "round-mod-rem": "2024-05-17",
        "ruby-align": "2024-12-11",
        "ruby-position": "2024-12-11",
        scope: "2025-12-12",
        "screen-wake-lock": "2025-03-31",
        scripting: "2023-12-07",
        "scroll-to-text-fragment": "2024-10-01",
        "scrollbar-color": "2025-12-12",
        "scrollbar-gutter": "2024-12-11",
        "scrollbar-width": "2024-12-11",
        scrollend: "2025-12-12",
        "set-methods": "2024-06-11",
        "shape-function": "2026-02-24",
        "shared-workers": "2026-05-05",
        "starting-style": "2024-08-06",
        state: "2024-05-17",
        "target-text": "2024-12-11",
        "text-decoration-skip-ink-all": "2026-05-07",
        "text-decoration-spelling-grammar": "2025-12-12",
        "text-indent-each-line": "2026-03-13",
        "text-indent-hanging": "2026-03-13",
        "text-wrap": "2024-10-17",
        "text-wrap-balance": "2024-05-13",
        "toggleevent-source": "2026-05-11",
        "transferable-arraybuffer": "2024-03-05",
        "transform-box": "2024-04-16",
        "transition-behavior": "2024-08-06",
        "trusted-types": "2026-02-24",
        "uint8array-base64-hex": "2025-09-05",
        "url-canparse": "2023-12-07",
        urlpattern: "2025-09-15",
        "vertical-form-controls": "2024-04-18",
        "view-transition-class": "2025-10-14",
        "view-transitions": "2025-10-14",
        "wasm-branch-hinting": "2026-02-24",
        "wasm-extended-constant-expressions": "2024-03-05",
        "wasm-garbage-collection": "2024-12-11",
        "wasm-tail-call-optimization": "2024-12-11",
        "wasm-typed-fun-refs": "2024-09-16",
        "webgl-color-management": "2024-10-29",
        "webgl2-color-management": "2024-10-29",
        "webrtc-encoded-transform": "2025-10-03",
        webtransport: "2026-03-24",
        "white-space-collapse": "2024-03-19",
        zoom: "2024-05-14",
        zstd: "2026-02-11"
      },
      limited: [
        "accelerometer",
        "accent-color",
        "accessor-methods",
        "ad-selection",
        "alignment-baseline",
        "alternative-style-sheets",
        "ambient-light",
        "anchor-positioning",
        "app-file-handlers",
        "app-launch-handler",
        "app-migration",
        "app-protocol-handlers",
        "app-share-targets",
        "app-shortcuts",
        "arguments-callee",
        "arianotify",
        "async-iterable-streams",
        "attr",
        "attribution-reporting",
        "audio-session",
        "audio-video-tracks",
        "audiolistener",
        "audiolistener-setposition-setorientation",
        "autocapitalize",
        "autocorrect",
        "autofill",
        "background-attachment",
        "background-clip-border-area",
        "background-clip-text",
        "background-fetch",
        "background-sync",
        "badging",
        "barcode",
        "baseline-source",
        "battery",
        "beforeinstallprompt",
        "beforeunload",
        "bfcache-blocking-reasons",
        "blocking-render",
        "border-shape",
        "box-decoration-break",
        "calc-size",
        "canvas-2d-alpha",
        "canvas-2d-color-management",
        "canvas-2d-desynchronized",
        "canvas-context-lost",
        "canvas-html",
        "capture-handle",
        "capture-stream-audio-video",
        "caret-shape",
        "case-sensitive-attributes",
        "clear-site-data",
        "clip",
        "clipboard-custom-format",
        "clipboard-svg",
        "clipboard-unsanitized-formats",
        "clipboardchange",
        "closewatcher",
        "color-adjust",
        "color-contrast",
        "color-mix-variadic",
        "colrv1",
        "column-breaks",
        "column-pseudo",
        "compression-dictionary-transport",
        "compute-pressure",
        "contact-picker",
        "container-anchor-position-queries",
        "container-scroll-state-queries",
        "content-index",
        "context-fill-stroke",
        "controls-list",
        "cookie-store",
        "corner-shape",
        "counter-reset-reversed",
        "cross-document-view-transitions",
        "cross-fade",
        "css-modules",
        "css-object-model-discouraged",
        "css-typed-om",
        "cursor",
        "custom-ellipses",
        "custom-media-queries",
        "customizable-select",
        "customized-built-in-elements",
        "datalist",
        "date-get-year-set-year",
        "date-to-gmt-string",
        "declarative-webmcp",
        "device-bound-session-credentials",
        "device-memory",
        "device-posture",
        "device-queries",
        "devicepixelratio",
        "dialog-closedby",
        "digital-credentials",
        "digital-goods",
        "display-animation",
        "display-contents",
        "display-mode",
        "display-ruby",
        "document-colors",
        "document-modelcontext",
        "document-picture-in-picture",
        "document-write",
        "dynamic-range-limit",
        "early-data",
        "edit-context",
        "element",
        "element-capture",
        "element-timing",
        "escape-unescape",
        "execcommand",
        "explicit-resource-management",
        "ext-disjoint-timer-query",
        "ext-float-blend",
        "ext-frag-depth",
        "ext-shader-texture-lod",
        "ext-texture-compression-bptc",
        "ext-texture-compression-rgtc",
        "ext-texture-norm16",
        "external",
        "eyedropper",
        "fast-seek",
        "feature-policy",
        "fedcm",
        "federated-credentials",
        "fencedframe",
        "fetch-formdata",
        "fetch-metadata",
        "fetch-request-streams",
        "fetchlater",
        "field-sizing",
        "file-system-access",
        "filter-function",
        "fit-content-function",
        "focusgroup",
        "font-family-ui",
        "font-language-override",
        "font-metric-overrides",
        "font-palette-animation",
        "font-synthesis-position",
        "font-variant-emoji",
        "font-variant-position",
        "font-width",
        "fullscreen",
        "function",
        "functions-caller-arguments",
        "gamepad-haptics",
        "gamepad-touch",
        "gamepad-vr",
        "gap-decorations",
        "geolocation-element",
        "getallrecords",
        "getboxquads",
        "glyph-orientation-vertical",
        "gpc",
        "gyroscope",
        "hanging-punctuation",
        "has-slotted",
        "heading-selectors",
        "hidden-until-found",
        "highlightsfrompoint",
        "host-context",
        "html-media-capture",
        "html-wrapper-methods",
        "hyphenate-limit-chars",
        "idle-detection",
        "if",
        "iframe-credentialless",
        "image-function",
        "ime-mode",
        "import-assertions",
        "initial-letter",
        "ink",
        "input-color",
        "input-color-alpha",
        "insertable-streams",
        "install",
        "interactivity",
        "interest-invokers",
        "interpolate-size",
        "intersection-observer-v2",
        "intl-locale-info",
        "inverted-colors",
        "is-error",
        "is-input-pending",
        "jpegxl",
        "justify-self-block",
        "keyboard-lock",
        "keyboard-map",
        "khr-parallel-shader-compile",
        "languagedetector",
        "languagemodel",
        "layout-instability",
        "light-dark-image",
        "line-clamp",
        "link-rel-expect",
        "link-rel-prefetch",
        "loading-lazy-media",
        "local-fonts",
        "local-network-access",
        "long-animation-frames",
        "longtasks",
        "magnetometer",
        "managed-media-source",
        "manifest",
        "manifest-localization",
        "margin-trim",
        "marker",
        "mask-border",
        "masonry",
        "mathml-full",
        "measure-memory",
        "media-pseudos",
        "media-session",
        "media-source",
        "mediacontroller",
        "meta-application-title",
        "meta-text-scale",
        "meta-theme-color",
        "move-before",
        "mutation-events",
        "navigation-precommit-handlers",
        "navigation-timing-confidence",
        "navigator-install",
        "network-information",
        "non-cookie-storage-access",
        "notifications",
        "numeric-factory-functions",
        "object-view-box",
        "observable",
        "oes-texture-half-float-linear",
        "opaquerange",
        "orientation-sensor",
        "origin",
        "overflow-anchor",
        "overflow-clip-margin",
        "overflow-overlay",
        "overlay",
        "overscroll-behavior",
        "ovr-multiview2",
        "page-break-aliases",
        "page-lifecycle",
        "page-orientation",
        "page-selectors",
        "page-visibility-state",
        "paint",
        "partitioned-cookies",
        "password-credentials",
        "path-shape",
        "payment-handler",
        "payment-request",
        "performancetiming",
        "periodic-background-sync",
        "permissions-policy",
        "picture-in-picture",
        "ping",
        "pointer-lock",
        "popover-hint",
        "portal",
        "prefers-reduced-data",
        "prefers-reduced-transparency",
        "presentation-api",
        "private-click-measurement",
        "private-network-access",
        "profiler",
        "progress-function",
        "protected-audience",
        "proto",
        "random-function",
        "readablestream-from",
        "reading-flow",
        "referencetarget",
        "regexp-compile",
        "regexp-static-properties",
        "region-capture",
        "registerprotocolhandler",
        "related-apps",
        "related-website-sets",
        "remote-playback",
        "reporting-coep-violations",
        "reporting-crashes",
        "reporting-crashes-storage",
        "reporting-deprecation",
        "reporting-integrity-violations",
        "reporting-interventions",
        "reporting-permissions-policy-violations",
        "requestidlecallback",
        "resize",
        "rhythmic-sizing",
        "ruby-overhang",
        "sanitizer",
        "savedata",
        "scheduler",
        "scoped-custom-element-registries",
        "screen-capture",
        "screen-orientation-lock",
        "scroll-buttons",
        "scroll-driven-animations",
        "scroll-initial-target",
        "scroll-into-view-container",
        "scroll-marker-targets",
        "scroll-markers",
        "scroll-snap-events",
        "scroll-target-group",
        "secure-payment-confirmation",
        "selection",
        "serial",
        "serializable-errors",
        "share",
        "shared-storage",
        "shared-storage-locks",
        "show-picker-input",
        "show-picker-select",
        "sibling-count",
        "signature-based-resource-integrity",
        "sizes-auto",
        "smooth",
        "speak",
        "speak-as",
        "speculation-rules",
        "speech-recognition",
        "speech-recognition-grammar",
        "spelling-grammar-error",
        "storage-buckets",
        "stretch",
        "style-query-range-syntax",
        "summarizer",
        "supports-at-rule",
        "svg-discouraged",
        "table-discouraged",
        "target-within",
        "temporal",
        "text-autospace",
        "text-box",
        "text-decoration-line-blink",
        "text-decoration-selection",
        "text-fit",
        "text-justify",
        "text-size-adjust",
        "text-spacing-trim",
        "text-wrap-pretty",
        "time-relative-selectors",
        "top-level-await",
        "topics",
        "touch-events",
        "transferable-streams",
        "transformstream-transformer-cancel",
        "translator",
        "ua-client-hints",
        "url-cross-origin",
        "url-integrity",
        "url-referrer-policy",
        "user-select",
        "usermedia",
        "vibration",
        "video-dynamic-range",
        "view-transitions-element-scoped",
        "viewport-segments",
        "virtual-keyboard",
        "virtual-pressure-sources",
        "virtual-sensors",
        "wasm-exnref-exceptions",
        "wasm-jspi",
        "wasm-memory64",
        "wasm-multi-memory",
        "wasm-simd-relaxed",
        "wasm-string-builtins",
        "web-animations-iterationcomposite",
        "web-bluetooth",
        "web-midi",
        "web-nfc",
        "web-otp",
        "webauthn-signals",
        "webcodecs",
        "webdriver",
        "webdriver-bidi",
        "webgl-compressed-texture-pvrtc",
        "webgl-compressed-texture-s3tc",
        "webgl-compressed-texture-s3tc-srgb",
        "webgl-desynchronized",
        "webgl-draw-buffers",
        "webgl-multi-draw",
        "webgl-sab",
        "webgl2-desynchronized",
        "webgpu",
        "webgpu-subgroups",
        "webhid",
        "webnn",
        "webusb",
        "webvr",
        "webvtt-cue-alignment",
        "webvtt-regions",
        "webxr-anchors",
        "webxr-ar",
        "webxr-camera",
        "webxr-depth-sensing",
        "webxr-device",
        "webxr-dom-overlays",
        "webxr-gamepads",
        "webxr-hand-input",
        "webxr-hit-test",
        "webxr-layers",
        "webxr-lighting-estimation",
        "wheel-events",
        "widows-orphans",
        "window-controls-overlay",
        "window-management",
        "with",
        "word-break-auto-phrase",
        "word-break-break-word",
        "writing-mode-svg-values",
        "writingsuggestions"
      ]
    };
  }
});

// core/lib/baseline/web-features-metadata.json
var web_features_metadata_default;
var init_web_features_metadata = __esm({
  "core/lib/baseline/web-features-metadata.json"() {
    web_features_metadata_default = {
      date: "2026-06-05"
    };
  }
});

// core/audits/baseline.js
var baseline_exports = {};
__export(baseline_exports, {
  UIStrings: () => UIStrings93,
  default: () => baseline_default
});
var UIStrings93, str_73, Baseline, baseline_default;
var init_baseline = __esm({
  "core/audits/baseline.js"() {
    "use strict";
    init_process_global();
    init_web_features_data();
    init_audit();
    init_web_features_metadata();
    init_i18n();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings93 = {
      /** Title of the Baseline audit. Shown when the page is compatible with the target baseline. */
      title: "Baseline Features",
      /**
       * @description Description of the Baseline audit.
       * @example {2026-03-18} date
       */
      description: "Lists web features used on the page and their Baseline status as of {date}. [Learn more about Baseline](https://webstatus.dev/).",
      /** Label for the column displaying the feature ID. */
      columnFeature: "Web-features",
      /** Label for the column displaying the feature\'s baseline status. */
      columnStatus: "Baseline Status"
    };
    str_73 = createIcuMessageFn({ url: "core/audits/baseline.js" }.url, UIStrings93);
    Baseline = class extends Audit {
      static {
        __name(this, "Baseline");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "baseline",
          scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
          title: str_73(UIStrings93.title),
          description: str_73(UIStrings93.description, { date: web_features_metadata_default.date }),
          requiredArtifacts: ["Trace"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts) {
        const trace = artifacts.Trace;
        const featuresMap = /* @__PURE__ */ new Map();
        const dxEvents = (
          /** @type {DXFeatureEvent[]} */
          (trace.traceEvents || []).filter((e) => e.cat === "blink.webdx_feature_usage" && e.args?.feature)
        );
        for (const event of dxEvents) {
          const key = `${event.args.feature}`;
          if (featuresMap.has(key)) continue;
          let source;
          if (event.args.url) {
            const line = event.args.lineNumber ? event.args.lineNumber - 1 : 0;
            const column = event.args.columnNumber ? event.args.columnNumber - 1 : 0;
            source = Audit.makeSourceLocation(event.args.url, line, column);
          }
          featuresMap.set(key, {
            featureId: event.args.feature,
            source
          });
        }
        const baselineFeatures = Array.from(featuresMap.values());
        const baselineStatus = [];
        for (const feature of baselineFeatures) {
          if (!feature.featureId) {
            continue;
          }
          const featureId = feature.featureId;
          let displayStatus = "Limited Availability";
          let baselineTier = "limited";
          if (featureId in web_features_data_default.high) {
            const highData = (
              /** @type {Record<string, string>} */
              web_features_data_default.high
            );
            displayStatus = `Widely Available (${highData[featureId]})`;
            baselineTier = "high";
          } else if (featureId in web_features_data_default.low) {
            const lowData = (
              /** @type {Record<string, string>} */
              web_features_data_default.low
            );
            displayStatus = `Newly Available (${lowData[featureId]})`;
            baselineTier = "low";
          } else if (!web_features_data_default.limited.includes(featureId)) {
            continue;
          }
          baselineStatus.push({
            featureId: {
              type: (
                /** @type {const} */
                "link"
              ),
              text: feature.featureId,
              url: `https://webstatus.dev/features/${feature.featureId}`
            },
            displayStatus: {
              type: (
                /** @type {const} */
                "baseline-status"
              ),
              status: baselineTier,
              displayString: displayStatus
            },
            source: feature.source
          });
        }
        const headings = [
          {
            key: "featureId",
            valueType: "link",
            label: str_73(UIStrings93.columnFeature)
          },
          {
            key: "displayStatus",
            valueType: "baseline-status",
            label: str_73(UIStrings93.columnStatus)
          },
          {
            key: "source",
            valueType: "source-location",
            label: str_73(UIStrings.columnSource)
          }
        ];
        const getStatusRank = /* @__PURE__ */ __name((status) => {
          if (status.startsWith("Limited")) {
            return 1;
          }
          if (status.startsWith("Newly")) {
            return 2;
          }
          if (status.startsWith("Widely")) {
            return 3;
          }
          return 4;
        }, "getStatusRank");
        const sortedStatuses = baselineStatus.sort((featureA, featureB) => {
          const rankA = getStatusRank(featureA.displayStatus.displayString);
          const rankB = getStatusRank(featureB.displayStatus.displayString);
          if (rankA !== rankB) {
            return rankA - rankB;
          }
          const hasSourceA = !!featureA.source;
          const hasSourceB = !!featureB.source;
          if (hasSourceA !== hasSourceB) {
            return hasSourceA ? -1 : 1;
          }
          return 0;
        });
        const details = Audit.makeTableDetails(headings, sortedStatuses);
        return {
          score: 1,
          details
        };
      }
    };
    baseline_default = Baseline;
  }
});

// core/audits/clickjacking-mitigation.js
var clickjacking_mitigation_exports = {};
__export(clickjacking_mitigation_exports, {
  UIStrings: () => UIStrings94,
  default: () => clickjacking_mitigation_default
});
var UIStrings94, str_74, ClickjackingMitigation, clickjacking_mitigation_default;
var init_clickjacking_mitigation = __esm({
  "core/audits/clickjacking-mitigation.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_main_resource();
    init_i18n();
    /**
     * @license
     * Copyright 2024 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings94 = {
      /** Title of a Lighthouse audit that evaluates whether the set CSP or XFO header is mitigating clickjacking attacks. "XFO" stands for "X-Frame-Options" and should not be translated. "CSP" stands for "Content-Security-Policy" and should not be translated. "clickjacking" should not be translated. */
      title: "Mitigate clickjacking with XFO or CSP",
      /** Description of a Lighthouse audit that evaluates whether the set CSP or XFO header is mitigating clickjacking attacks. This is displayed after a user expands the section to see more. "clickjacking" should not be translated. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. "XFO" stands for "X-Frame-Options" and should not be translated. "CSP" stands for "Content-Security-Policy" and should not be translated. */
      description: "The `X-Frame-Options` (XFO) header or the `frame-ancestors` directive in the `Content-Security-Policy` (CSP) header control where a page can be embedded. These can mitigate clickjacking attacks by blocking some or all sites from embedding the page. [Learn more about mitigating clickjacking](https://developer.chrome.com/docs/lighthouse/best-practices/clickjacking-mitigation).",
      /** Summary text for the results of a Lighthouse audit that evaluates whether the page is mitigating clickjacking attacks with a frame control policy. This text is displayed if the page does not control how it can be embedded on other pages. */
      noClickjackingMitigation: "No frame control policy found",
      /** Label for a column in a data table; entries will be the severity of an issue with the page's frame control policy. */
      columnSeverity: "Severity"
    };
    str_74 = createIcuMessageFn({ url: "core/audits/clickjacking-mitigation.js" }.url, UIStrings94);
    ClickjackingMitigation = class extends Audit {
      static {
        __name(this, "ClickjackingMitigation");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "clickjacking-mitigation",
          scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
          title: str_74(UIStrings94.title),
          description: str_74(UIStrings94.description),
          requiredArtifacts: ["DevtoolsLog", "URL"],
          supportedModes: ["navigation"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<{cspHeaders: string[], xfoHeaders: string[]}>}
       */
      static async getRawCspsAndXfo(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: artifacts.URL }, context);
        const cspHeaders = mainResource.responseHeaders.filter((h) => {
          return h.name.toLowerCase() === "content-security-policy";
        }).flatMap((h) => h.value.split(",")).filter((rawCsp) => rawCsp.replace(/\s/g, ""));
        let xfoHeaders = mainResource.responseHeaders.filter((h) => {
          return h.name.toLowerCase() === "x-frame-options";
        }).flatMap((h) => h.value);
        xfoHeaders = xfoHeaders.map((v) => v.toLowerCase().replace(/\s/g, ""));
        return { cspHeaders, xfoHeaders };
      }
      /**
       * @param {string | undefined} directive
       * @param {LH.IcuMessage | string} findingDescription
       * @param {LH.IcuMessage=} severity
       * @return {LH.Audit.Details.TableItem}
       */
      static findingToTableItem(directive, findingDescription, severity) {
        return {
          description: findingDescription,
          severity
        };
      }
      /**
       * @param {string[]} cspHeaders
       * @param {string[]} xfoHeaders
       * @return {{score: number, results: LH.Audit.Details.TableItem[]}}
       */
      static constructResults(cspHeaders, xfoHeaders) {
        const allowedDirectives = ["deny", "sameorigin"];
        for (const cspHeader of cspHeaders) {
          if (cspHeader.includes("frame-ancestors")) {
            return { score: 1, results: [] };
          }
        }
        for (const actualDirective of xfoHeaders) {
          if (allowedDirectives.includes(actualDirective)) {
            return { score: 1, results: [] };
          }
        }
        return {
          score: 0,
          results: [{
            severity: str_74(UIStrings.itemSeverityHigh),
            description: str_74(UIStrings94.noClickjackingMitigation)
          }]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const { cspHeaders, xfoHeaders } = await this.getRawCspsAndXfo(artifacts, context);
        const { score, results } = this.constructResults(cspHeaders, xfoHeaders);
        const headings = [
          /* eslint-disable max-len */
          { key: "description", valueType: "text", subItemsHeading: { key: "description" }, label: str_74(UIStrings.columnDescription) },
          { key: "severity", valueType: "text", subItemsHeading: { key: "severity" }, label: str_74(UIStrings94.columnSeverity) }
          /* eslint-enable max-len */
        ];
        const details = Audit.makeTableDetails(headings, results);
        return {
          score,
          notApplicable: !results.length,
          details
        };
      }
    };
    clickjacking_mitigation_default = ClickjackingMitigation;
  }
});

// node_modules/csp_evaluator/dist/finding.js
var require_finding = __commonJS({
  "node_modules/csp_evaluator/dist/finding.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.Type = exports2.Severity = exports2.Finding = void 0;
    var Finding = class _Finding {
      static {
        __name(this, "Finding");
      }
      constructor(type, description, severity, directive, value) {
        this.type = type;
        this.description = description;
        this.severity = severity;
        this.directive = directive;
        this.value = value;
      }
      static getHighestSeverity(findings) {
        if (findings.length === 0) {
          return Severity.NONE;
        }
        const severities = findings.map((finding) => finding.severity);
        const min = /* @__PURE__ */ __name((prev, cur) => prev < cur ? prev : cur, "min");
        return severities.reduce(min, Severity.NONE);
      }
      equals(obj) {
        if (!(obj instanceof _Finding)) {
          return false;
        }
        return obj.type === this.type && obj.description === this.description && obj.severity === this.severity && obj.directive === this.directive && obj.value === this.value;
      }
    };
    exports2.Finding = Finding;
    var Severity;
    (function(Severity2) {
      Severity2[Severity2["HIGH"] = 10] = "HIGH";
      Severity2[Severity2["SYNTAX"] = 20] = "SYNTAX";
      Severity2[Severity2["MEDIUM"] = 30] = "MEDIUM";
      Severity2[Severity2["HIGH_MAYBE"] = 40] = "HIGH_MAYBE";
      Severity2[Severity2["STRICT_CSP"] = 45] = "STRICT_CSP";
      Severity2[Severity2["MEDIUM_MAYBE"] = 50] = "MEDIUM_MAYBE";
      Severity2[Severity2["INFO"] = 60] = "INFO";
      Severity2[Severity2["NONE"] = 100] = "NONE";
    })(Severity = exports2.Severity || (exports2.Severity = {}));
    var Type2;
    (function(Type3) {
      Type3[Type3["MISSING_SEMICOLON"] = 100] = "MISSING_SEMICOLON";
      Type3[Type3["UNKNOWN_DIRECTIVE"] = 101] = "UNKNOWN_DIRECTIVE";
      Type3[Type3["INVALID_KEYWORD"] = 102] = "INVALID_KEYWORD";
      Type3[Type3["NONCE_CHARSET"] = 106] = "NONCE_CHARSET";
      Type3[Type3["MISSING_DIRECTIVES"] = 300] = "MISSING_DIRECTIVES";
      Type3[Type3["SCRIPT_UNSAFE_INLINE"] = 301] = "SCRIPT_UNSAFE_INLINE";
      Type3[Type3["SCRIPT_UNSAFE_EVAL"] = 302] = "SCRIPT_UNSAFE_EVAL";
      Type3[Type3["PLAIN_URL_SCHEMES"] = 303] = "PLAIN_URL_SCHEMES";
      Type3[Type3["PLAIN_WILDCARD"] = 304] = "PLAIN_WILDCARD";
      Type3[Type3["SCRIPT_ALLOWLIST_BYPASS"] = 305] = "SCRIPT_ALLOWLIST_BYPASS";
      Type3[Type3["OBJECT_ALLOWLIST_BYPASS"] = 306] = "OBJECT_ALLOWLIST_BYPASS";
      Type3[Type3["NONCE_LENGTH"] = 307] = "NONCE_LENGTH";
      Type3[Type3["IP_SOURCE"] = 308] = "IP_SOURCE";
      Type3[Type3["DEPRECATED_DIRECTIVE"] = 309] = "DEPRECATED_DIRECTIVE";
      Type3[Type3["SRC_HTTP"] = 310] = "SRC_HTTP";
      Type3[Type3["SRC_NO_PROTOCOL"] = 311] = "SRC_NO_PROTOCOL";
      Type3[Type3["EXPERIMENTAL"] = 312] = "EXPERIMENTAL";
      Type3[Type3["WILDCARD_URL"] = 313] = "WILDCARD_URL";
      Type3[Type3["X_FRAME_OPTIONS_OBSOLETED"] = 314] = "X_FRAME_OPTIONS_OBSOLETED";
      Type3[Type3["STYLE_UNSAFE_INLINE"] = 315] = "STYLE_UNSAFE_INLINE";
      Type3[Type3["STATIC_NONCE"] = 316] = "STATIC_NONCE";
      Type3[Type3["SCRIPT_UNSAFE_HASHES"] = 317] = "SCRIPT_UNSAFE_HASHES";
      Type3[Type3["STRICT_DYNAMIC"] = 400] = "STRICT_DYNAMIC";
      Type3[Type3["STRICT_DYNAMIC_NOT_STANDALONE"] = 401] = "STRICT_DYNAMIC_NOT_STANDALONE";
      Type3[Type3["NONCE_HASH"] = 402] = "NONCE_HASH";
      Type3[Type3["UNSAFE_INLINE_FALLBACK"] = 403] = "UNSAFE_INLINE_FALLBACK";
      Type3[Type3["ALLOWLIST_FALLBACK"] = 404] = "ALLOWLIST_FALLBACK";
      Type3[Type3["IGNORED"] = 405] = "IGNORED";
      Type3[Type3["REQUIRE_TRUSTED_TYPES_FOR_SCRIPTS"] = 500] = "REQUIRE_TRUSTED_TYPES_FOR_SCRIPTS";
      Type3[Type3["REPORTING_DESTINATION_MISSING"] = 600] = "REPORTING_DESTINATION_MISSING";
      Type3[Type3["REPORT_TO_ONLY"] = 601] = "REPORT_TO_ONLY";
    })(Type2 = exports2.Type || (exports2.Type = {}));
  }
});

// node_modules/csp_evaluator/dist/csp.js
var require_csp = __commonJS({
  "node_modules/csp_evaluator/dist/csp.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.CspError = exports2.isHash = exports2.HASH_PATTERN = exports2.STRICT_HASH_PATTERN = exports2.isNonce = exports2.NONCE_PATTERN = exports2.STRICT_NONCE_PATTERN = exports2.isUrlScheme = exports2.isKeyword = exports2.isDirective = exports2.Version = exports2.FETCH_DIRECTIVES = exports2.Directive = exports2.TrustedTypesSink = exports2.Keyword = exports2.Csp = void 0;
    var finding_1 = require_finding();
    var Csp = class _Csp {
      static {
        __name(this, "Csp");
      }
      constructor(directives = {}) {
        this.directives = {};
        for (const [directive, directiveValues] of Object.entries(directives)) {
          if (directiveValues) {
            this.directives[directive] = [...directiveValues];
          }
        }
      }
      clone() {
        return new _Csp(this.directives);
      }
      convertToString() {
        let cspString = "";
        for (const [directive, directiveValues] of Object.entries(this.directives)) {
          cspString += directive;
          if (directiveValues !== void 0) {
            for (let value, i = 0; value = directiveValues[i]; i++) {
              cspString += " ";
              cspString += value;
            }
          }
          cspString += "; ";
        }
        return cspString;
      }
      getEffectiveCsp(cspVersion, optFindings) {
        const findings = optFindings || [];
        const effectiveCsp = this.clone();
        [Directive3.SCRIPT_SRC, Directive3.SCRIPT_SRC_ATTR, Directive3.SCRIPT_SRC_ELEM].forEach((directiveToNormalize) => {
          const directive = effectiveCsp.getEffectiveDirective(directiveToNormalize);
          const values = this.directives[directive] || [];
          const effectiveCspValues = effectiveCsp.directives[directive];
          if (effectiveCspValues && (effectiveCsp.policyHasScriptNonces(directive) || effectiveCsp.policyHasScriptHashes(directive))) {
            if (cspVersion >= Version.CSP2) {
              if (values.includes(Keyword.UNSAFE_INLINE)) {
                arrayRemove(effectiveCspValues, Keyword.UNSAFE_INLINE);
                findings.push(new finding_1.Finding(finding_1.Type.IGNORED, "unsafe-inline is ignored if a nonce or a hash is present. (CSP2 and above)", finding_1.Severity.NONE, directive, Keyword.UNSAFE_INLINE));
              }
            } else {
              for (const value of values) {
                if (value.startsWith("'nonce-") || value.startsWith("'sha")) {
                  arrayRemove(effectiveCspValues, value);
                }
              }
            }
          }
          if (effectiveCspValues && this.policyHasStrictDynamic(directive)) {
            if (cspVersion >= Version.CSP3) {
              for (const value of values) {
                if (!value.startsWith("'") || value === Keyword.SELF || value === Keyword.UNSAFE_INLINE) {
                  arrayRemove(effectiveCspValues, value);
                  findings.push(new finding_1.Finding(finding_1.Type.IGNORED, "Because of strict-dynamic this entry is ignored in CSP3 and above", finding_1.Severity.NONE, directive, value));
                }
              }
            } else {
              arrayRemove(effectiveCspValues, Keyword.STRICT_DYNAMIC);
            }
          }
        });
        if (cspVersion < Version.CSP3) {
          delete effectiveCsp.directives[Directive3.REPORT_TO];
          delete effectiveCsp.directives[Directive3.WORKER_SRC];
          delete effectiveCsp.directives[Directive3.MANIFEST_SRC];
          delete effectiveCsp.directives[Directive3.TRUSTED_TYPES];
          delete effectiveCsp.directives[Directive3.REQUIRE_TRUSTED_TYPES_FOR];
          delete effectiveCsp.directives[Directive3.SCRIPT_SRC_ATTR];
          delete effectiveCsp.directives[Directive3.SCRIPT_SRC_ELEM];
          delete effectiveCsp.directives[Directive3.STYLE_SRC_ATTR];
          delete effectiveCsp.directives[Directive3.STYLE_SRC_ELEM];
        }
        return effectiveCsp;
      }
      getEffectiveDirective(directive) {
        if (directive in this.directives) {
          return directive;
        }
        if ((directive === Directive3.SCRIPT_SRC_ATTR || directive === Directive3.SCRIPT_SRC_ELEM) && Directive3.SCRIPT_SRC in this.directives) {
          return Directive3.SCRIPT_SRC;
        }
        if ((directive === Directive3.STYLE_SRC_ATTR || directive === Directive3.STYLE_SRC_ELEM) && Directive3.STYLE_SRC in this.directives) {
          return Directive3.STYLE_SRC;
        }
        if (exports2.FETCH_DIRECTIVES.includes(directive)) {
          return Directive3.DEFAULT_SRC;
        }
        return directive;
      }
      getEffectiveDirectives(directives) {
        const effectiveDirectives = new Set(directives.map((val) => this.getEffectiveDirective(val)));
        return [...effectiveDirectives];
      }
      policyHasScriptNonces(directive) {
        const directiveName = this.getEffectiveDirective(directive || Directive3.SCRIPT_SRC);
        const values = this.directives[directiveName] || [];
        return values.some((val) => isNonce(val, true));
      }
      policyHasScriptHashes(directive) {
        const directiveName = this.getEffectiveDirective(directive || Directive3.SCRIPT_SRC);
        const values = this.directives[directiveName] || [];
        return values.some((val) => isHash(val, true));
      }
      policyHasStrictDynamic(directive) {
        const directiveName = this.getEffectiveDirective(directive || Directive3.SCRIPT_SRC);
        const values = this.directives[directiveName] || [];
        return values.includes(Keyword.STRICT_DYNAMIC);
      }
    };
    exports2.Csp = Csp;
    var Keyword;
    (function(Keyword2) {
      Keyword2["SELF"] = "'self'";
      Keyword2["NONE"] = "'none'";
      Keyword2["UNSAFE_INLINE"] = "'unsafe-inline'";
      Keyword2["UNSAFE_EVAL"] = "'unsafe-eval'";
      Keyword2["WASM_EVAL"] = "'wasm-eval'";
      Keyword2["WASM_UNSAFE_EVAL"] = "'wasm-unsafe-eval'";
      Keyword2["STRICT_DYNAMIC"] = "'strict-dynamic'";
      Keyword2["UNSAFE_HASHED_ATTRIBUTES"] = "'unsafe-hashed-attributes'";
      Keyword2["UNSAFE_HASHES"] = "'unsafe-hashes'";
      Keyword2["REPORT_SAMPLE"] = "'report-sample'";
      Keyword2["BLOCK"] = "'block'";
      Keyword2["ALLOW"] = "'allow'";
      Keyword2["INLINE_SPECULATION_RULES"] = "'inline-speculation-rules'";
    })(Keyword = exports2.Keyword || (exports2.Keyword = {}));
    var TrustedTypesSink;
    (function(TrustedTypesSink2) {
      TrustedTypesSink2["SCRIPT"] = "'script'";
    })(TrustedTypesSink = exports2.TrustedTypesSink || (exports2.TrustedTypesSink = {}));
    var Directive3;
    (function(Directive4) {
      Directive4["CHILD_SRC"] = "child-src";
      Directive4["CONNECT_SRC"] = "connect-src";
      Directive4["DEFAULT_SRC"] = "default-src";
      Directive4["FONT_SRC"] = "font-src";
      Directive4["FRAME_SRC"] = "frame-src";
      Directive4["IMG_SRC"] = "img-src";
      Directive4["MEDIA_SRC"] = "media-src";
      Directive4["OBJECT_SRC"] = "object-src";
      Directive4["SCRIPT_SRC"] = "script-src";
      Directive4["SCRIPT_SRC_ATTR"] = "script-src-attr";
      Directive4["SCRIPT_SRC_ELEM"] = "script-src-elem";
      Directive4["STYLE_SRC"] = "style-src";
      Directive4["STYLE_SRC_ATTR"] = "style-src-attr";
      Directive4["STYLE_SRC_ELEM"] = "style-src-elem";
      Directive4["PREFETCH_SRC"] = "prefetch-src";
      Directive4["MANIFEST_SRC"] = "manifest-src";
      Directive4["WORKER_SRC"] = "worker-src";
      Directive4["BASE_URI"] = "base-uri";
      Directive4["PLUGIN_TYPES"] = "plugin-types";
      Directive4["SANDBOX"] = "sandbox";
      Directive4["DISOWN_OPENER"] = "disown-opener";
      Directive4["FORM_ACTION"] = "form-action";
      Directive4["FRAME_ANCESTORS"] = "frame-ancestors";
      Directive4["NAVIGATE_TO"] = "navigate-to";
      Directive4["REPORT_TO"] = "report-to";
      Directive4["REPORT_URI"] = "report-uri";
      Directive4["BLOCK_ALL_MIXED_CONTENT"] = "block-all-mixed-content";
      Directive4["UPGRADE_INSECURE_REQUESTS"] = "upgrade-insecure-requests";
      Directive4["REFLECTED_XSS"] = "reflected-xss";
      Directive4["REFERRER"] = "referrer";
      Directive4["REQUIRE_SRI_FOR"] = "require-sri-for";
      Directive4["TRUSTED_TYPES"] = "trusted-types";
      Directive4["REQUIRE_TRUSTED_TYPES_FOR"] = "require-trusted-types-for";
      Directive4["WEBRTC"] = "webrtc";
    })(Directive3 = exports2.Directive || (exports2.Directive = {}));
    exports2.FETCH_DIRECTIVES = [
      Directive3.CHILD_SRC,
      Directive3.CONNECT_SRC,
      Directive3.DEFAULT_SRC,
      Directive3.FONT_SRC,
      Directive3.FRAME_SRC,
      Directive3.IMG_SRC,
      Directive3.MANIFEST_SRC,
      Directive3.MEDIA_SRC,
      Directive3.OBJECT_SRC,
      Directive3.SCRIPT_SRC,
      Directive3.SCRIPT_SRC_ATTR,
      Directive3.SCRIPT_SRC_ELEM,
      Directive3.STYLE_SRC,
      Directive3.STYLE_SRC_ATTR,
      Directive3.STYLE_SRC_ELEM,
      Directive3.WORKER_SRC
    ];
    var Version;
    (function(Version2) {
      Version2[Version2["CSP1"] = 1] = "CSP1";
      Version2[Version2["CSP2"] = 2] = "CSP2";
      Version2[Version2["CSP3"] = 3] = "CSP3";
    })(Version = exports2.Version || (exports2.Version = {}));
    function isDirective(directive) {
      return Object.values(Directive3).includes(directive);
    }
    __name(isDirective, "isDirective");
    exports2.isDirective = isDirective;
    function isKeyword(keyword) {
      return Object.values(Keyword).includes(keyword);
    }
    __name(isKeyword, "isKeyword");
    exports2.isKeyword = isKeyword;
    function isUrlScheme(urlScheme) {
      const pattern = new RegExp("^[a-zA-Z][+a-zA-Z0-9.-]*:$");
      return pattern.test(urlScheme);
    }
    __name(isUrlScheme, "isUrlScheme");
    exports2.isUrlScheme = isUrlScheme;
    exports2.STRICT_NONCE_PATTERN = new RegExp("^'nonce-[a-zA-Z0-9+/_-]+[=]{0,2}'$");
    exports2.NONCE_PATTERN = new RegExp("^'nonce-(.+)'$");
    function isNonce(nonce, strictCheck) {
      const pattern = strictCheck ? exports2.STRICT_NONCE_PATTERN : exports2.NONCE_PATTERN;
      return pattern.test(nonce);
    }
    __name(isNonce, "isNonce");
    exports2.isNonce = isNonce;
    exports2.STRICT_HASH_PATTERN = new RegExp("^'(sha256|sha384|sha512)-[a-zA-Z0-9+/_-]+[=]{0,2}'$");
    exports2.HASH_PATTERN = new RegExp("^'(sha256|sha384|sha512)-(.+)'$");
    function isHash(hash, strictCheck) {
      const pattern = strictCheck ? exports2.STRICT_HASH_PATTERN : exports2.HASH_PATTERN;
      return pattern.test(hash);
    }
    __name(isHash, "isHash");
    exports2.isHash = isHash;
    var CspError = class extends Error {
      static {
        __name(this, "CspError");
      }
      constructor(message) {
        super(message);
      }
    };
    exports2.CspError = CspError;
    function arrayRemove(arr, item) {
      if (arr.includes(item)) {
        const idx = arr.findIndex((elem) => item === elem);
        arr.splice(idx, 1);
      }
    }
    __name(arrayRemove, "arrayRemove");
  }
});

// node_modules/csp_evaluator/dist/checks/parser_checks.js
var require_parser_checks = __commonJS({
  "node_modules/csp_evaluator/dist/checks/parser_checks.js"(exports2) {
    "use strict";
    init_process_global();
    var __createBinding4 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      Object.defineProperty(o, k2, { enumerable: true, get: /* @__PURE__ */ __name(function() {
        return m[k];
      }, "get") });
    }) : (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      o[k2] = m[k];
    }));
    var __setModuleDefault4 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
      Object.defineProperty(o, "default", { enumerable: true, value: v });
    }) : function(o, v) {
      o["default"] = v;
    });
    var __importStar4 = exports2 && exports2.__importStar || function(mod2) {
      if (mod2 && mod2.__esModule) return mod2;
      var result = {};
      if (mod2 != null) {
        for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding4(result, mod2, k);
      }
      __setModuleDefault4(result, mod2);
      return result;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.checkInvalidKeyword = exports2.checkMissingSemicolon = exports2.checkUnknownDirective = void 0;
    var csp = __importStar4(require_csp());
    var csp_1 = require_csp();
    var finding_1 = require_finding();
    function checkUnknownDirective(parsedCsp) {
      const findings = [];
      for (const directive of Object.keys(parsedCsp.directives)) {
        if (csp.isDirective(directive)) {
          continue;
        }
        if (directive.endsWith(":")) {
          findings.push(new finding_1.Finding(finding_1.Type.UNKNOWN_DIRECTIVE, "CSP directives don't end with a colon.", finding_1.Severity.SYNTAX, directive));
        } else {
          findings.push(new finding_1.Finding(finding_1.Type.UNKNOWN_DIRECTIVE, 'Directive "' + directive + '" is not a known CSP directive.', finding_1.Severity.SYNTAX, directive));
        }
      }
      return findings;
    }
    __name(checkUnknownDirective, "checkUnknownDirective");
    exports2.checkUnknownDirective = checkUnknownDirective;
    function checkMissingSemicolon(parsedCsp) {
      const findings = [];
      for (const [directive, directiveValues] of Object.entries(parsedCsp.directives)) {
        if (directiveValues === void 0) {
          continue;
        }
        for (const value of directiveValues) {
          if (csp.isDirective(value)) {
            findings.push(new finding_1.Finding(finding_1.Type.MISSING_SEMICOLON, 'Did you forget the semicolon? "' + value + '" seems to be a directive, not a value.', finding_1.Severity.SYNTAX, directive, value));
          }
        }
      }
      return findings;
    }
    __name(checkMissingSemicolon, "checkMissingSemicolon");
    exports2.checkMissingSemicolon = checkMissingSemicolon;
    function checkInvalidKeyword(parsedCsp) {
      const findings = [];
      const keywordsNoTicks = Object.values(csp_1.Keyword).map((k) => k.replace(/'/g, ""));
      for (const [directive, directiveValues] of Object.entries(parsedCsp.directives)) {
        if (directiveValues === void 0) {
          continue;
        }
        for (const value of directiveValues) {
          if (keywordsNoTicks.some((k) => k === value) || value.startsWith("nonce-") || value.match(/^(sha256|sha384|sha512)-/)) {
            findings.push(new finding_1.Finding(finding_1.Type.INVALID_KEYWORD, 'Did you forget to surround "' + value + '" with single-ticks?', finding_1.Severity.SYNTAX, directive, value));
            continue;
          }
          if (!value.startsWith("'")) {
            continue;
          }
          if (directive === csp.Directive.REQUIRE_TRUSTED_TYPES_FOR) {
            if (value === csp.TrustedTypesSink.SCRIPT) {
              continue;
            }
          } else if (directive === csp.Directive.TRUSTED_TYPES) {
            if (value === "'allow-duplicates'" || value === "'none'") {
              continue;
            }
          } else {
            if (csp.isKeyword(value) || csp.isHash(value, true) || csp.isNonce(value, true)) {
              continue;
            }
          }
          findings.push(new finding_1.Finding(finding_1.Type.INVALID_KEYWORD, value + " seems to be an invalid CSP keyword.", finding_1.Severity.SYNTAX, directive, value));
        }
      }
      return findings;
    }
    __name(checkInvalidKeyword, "checkInvalidKeyword");
    exports2.checkInvalidKeyword = checkInvalidKeyword;
  }
});

// node_modules/csp_evaluator/dist/allowlist_bypasses/angular.js
var require_angular2 = __commonJS({
  "node_modules/csp_evaluator/dist/allowlist_bypasses/angular.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.URLS = void 0;
    exports2.URLS = [
      "//gstatic.com/fsn/angular_js-bundle1.js",
      "//www.gstatic.com/fsn/angular_js-bundle1.js",
      "//www.googleadservices.com/pageadimg/imgad",
      "//yandex.st/angularjs/1.2.16/angular-cookies.min.js",
      "//yastatic.net/angularjs/1.2.23/angular.min.js",
      "//yuedust.yuedu.126.net/js/components/angular/angular.js",
      "//art.jobs.netease.com/script/angular.js",
      "//csu-c45.kxcdn.com/angular/angular.js",
      "//elysiumwebsite.s3.amazonaws.com/uploads/blog-media/rockstar/angular.min.js",
      "//inno.blob.core.windows.net/new/libs/AngularJS/1.2.1/angular.min.js",
      "//gift-talk.kakao.com/public/javascripts/angular.min.js",
      "//ajax.googleapis.com/ajax/libs/angularjs/1.2.0rc1/angular-route.min.js",
      "//master-sumok.ru/vendors/angular/angular-cookies.js",
      "//ayicommon-a.akamaihd.net/static/vendor/angular-1.4.2.min.js",
      "//pangxiehaitao.com/framework/angular-1.3.9/angular-animate.min.js",
      "//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.16/angular.min.js",
      "//96fe3ee995e96e922b6b-d10c35bd0a0de2c718b252bc575fdb73.ssl.cf1.rackcdn.com/angular.js",
      "//oss.maxcdn.com/angularjs/1.2.20/angular.min.js",
      "//reports.zemanta.com/smedia/common/angularjs/1.2.11/angular.js",
      "//cdn.shopify.com/s/files/1/0225/6463/t/1/assets/angular-animate.min.js",
      "//parademanagement.com.s3-website-ap-southeast-1.amazonaws.com/js/angular.min.js",
      "//cdn.jsdelivr.net/angularjs/1.1.2/angular.min.js",
      "//eb2883ede55c53e09fd5-9c145fb03d93709ea57875d307e2d82e.ssl.cf3.rackcdn.com/components/angular-resource.min.js",
      "//andors-trail.googlecode.com/git/AndorsTrailEdit/lib/angular.min.js",
      "//cdn.walkme.com/General/EnvironmentTests/angular/angular.min.js",
      "//laundrymail.com/angular/angular.js",
      "//s3-eu-west-1.amazonaws.com/staticancpa/js/angular-cookies.min.js",
      "//collade.demo.stswp.com/js/vendor/angular.min.js",
      "//mrfishie.github.io/sailor/bower_components/angular/angular.min.js",
      "//askgithub.com/static/js/angular.min.js",
      "//services.amazon.com/solution-providers/assets/vendor/angular-cookies.min.js",
      "//raw.githubusercontent.com/angular/code.angularjs.org/master/1.0.7/angular-resource.js",
      "//prb-resume.appspot.com/bower_components/angular-animate/angular-animate.js",
      "//dl.dropboxusercontent.com/u/30877786/angular.min.js",
      "//static.tumblr.com/x5qdx0r/nPOnngtff/angular-resource.min_1_.js",
      "//storage.googleapis.com/assets-prod.urbansitter.net/us-sym/assets/vendor/angular-sanitize/angular-sanitize.min.js",
      "//twitter.github.io/labella.js/bower_components/angular/angular.min.js",
      "//cdn2-casinoroom.global.ssl.fastly.net/js/lib/angular-animate.min.js",
      "//www.adobe.com/devnet-apps/flashshowcase/lib/angular/angular.1.1.5.min.js",
      "//eternal-sunset.herokuapp.com/bower_components/angular/angular.js",
      "//cdn.bootcss.com/angular.js/1.2.0/angular.min.js"
    ];
  }
});

// node_modules/csp_evaluator/dist/allowlist_bypasses/flash.js
var require_flash = __commonJS({
  "node_modules/csp_evaluator/dist/allowlist_bypasses/flash.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.URLS = void 0;
    exports2.URLS = [
      "//vk.com/swf/video.swf",
      "//ajax.googleapis.com/ajax/libs/yui/2.8.0r4/build/charts/assets/charts.swf"
    ];
  }
});

// node_modules/csp_evaluator/dist/allowlist_bypasses/jsonp.js
var require_jsonp = __commonJS({
  "node_modules/csp_evaluator/dist/allowlist_bypasses/jsonp.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.URLS = exports2.NEEDS_EVAL = void 0;
    exports2.NEEDS_EVAL = [
      "googletagmanager.com",
      "www.googletagmanager.com",
      "www.googleadservices.com",
      "google-analytics.com",
      "ssl.google-analytics.com",
      "www.google-analytics.com"
    ];
    exports2.URLS = [
      "//bebezoo.1688.com/fragment/index.htm",
      "//www.google-analytics.com/gtm/js",
      "//googleads.g.doubleclick.net/pagead/conversion/1036918760/wcm",
      "//www.googleadservices.com/pagead/conversion/1070110417/wcm",
      "//www.google.com/tools/feedback/escalation-options",
      "//pin.aliyun.com/check_audio",
      "//offer.alibaba.com/market/CID100002954/5/fetchKeyword.do",
      "//ccrprod.alipay.com/ccr/arriveTime.json",
      "//group.aliexpress.com/ajaxAcquireGroupbuyProduct.do",
      "//detector.alicdn.com/2.7.3/index.php",
      "//suggest.taobao.com/sug",
      "//translate.google.com/translate_a/l",
      "//count.tbcdn.cn//counter3",
      "//wb.amap.com/channel.php",
      "//translate.googleapis.com/translate_a/l",
      "//afpeng.alimama.com/ex",
      "//accounts.google.com/o/oauth2/revoke",
      "//pagead2.googlesyndication.com/relatedsearch",
      "//yandex.ru/soft/browsers/check",
      "//api.facebook.com/restserver.php",
      "//mts0.googleapis.com/maps/vt",
      "//syndication.twitter.com/widgets/timelines/765840589183213568",
      "//www.youtube.com/profile_style",
      "//googletagmanager.com/gtm/js",
      "//mc.yandex.ru/watch/24306916/1",
      "//share.yandex.net/counter/gpp/",
      "//ok.go.mail.ru/lady_on_lady_recipes_r.json",
      "//d1f69o4buvlrj5.cloudfront.net/__efa_15_1_ornpba.xekq.arg/optout_check",
      "//www.googletagmanager.com/gtm/js",
      "//api.vk.com/method/wall.get",
      "//www.sharethis.com/get-publisher-info.php",
      "//google.ru/maps/vt",
      "//pro.netrox.sc/oapi/h_checksite.ashx",
      "//vimeo.com/api/oembed.json/",
      "//de.blog.newrelic.com/wp-admin/admin-ajax.php",
      "//ajax.googleapis.com/ajax/services/search/news",
      "//ssl.google-analytics.com/gtm/js",
      "//pubsub.pubnub.com/subscribe/demo/hello_world/",
      "//pass.yandex.ua/services",
      "//id.rambler.ru/script/topline_info.js",
      "//m.addthis.com/live/red_lojson/100eng.json",
      "//passport.ngs.ru/ajax/check",
      "//catalog.api.2gis.ru/ads/search",
      "//gum.criteo.com/sync",
      "//maps.google.com/maps/vt",
      "//ynuf.alipay.com/service/um.json",
      "//securepubads.g.doubleclick.net/gampad/ads",
      "//c.tiles.mapbox.com/v3/texastribune.tx-congress-cvap/6/15/26.grid.json",
      "//rexchange.begun.ru/banners",
      "//an.yandex.ru/page/147484",
      "//links.services.disqus.com/api/ping",
      "//api.map.baidu.com/",
      "//tj.gongchang.com/api/keywordrecomm/",
      "//data.gongchang.com/livegrail/",
      "//ulogin.ru/token.php",
      "//beta.gismeteo.ru/api/informer/layout.js/120x240-3/ru/",
      "//maps.googleapis.com/maps/api/js/GeoPhotoService.GetMetadata",
      "//a.config.skype.com/config/v1/Skype/908_1.33.0.111/SkypePersonalization",
      "//maps.beeline.ru/w",
      "//target.ukr.net/",
      "//www.meteoprog.ua/data/weather/informer/Poltava.js",
      "//cdn.syndication.twimg.com/widgets/timelines/599200054310604802",
      "//wslocker.ru/client/user.chk.php",
      "//community.adobe.com/CommunityPod/getJSON",
      "//maps.google.lv/maps/vt",
      "//dev.virtualearth.net/REST/V1/Imagery/Metadata/AerialWithLabels/26.318581",
      "//awaps.yandex.ru/10/8938/02400400.",
      "//a248.e.akamai.net/h5.hulu.com/h5.mp4",
      "//nominatim.openstreetmap.org/",
      "//plugins.mozilla.org/en-us/plugins_list.json",
      "//h.cackle.me/widget/32153/bootstrap",
      "//graph.facebook.com/1/",
      "//fellowes.ugc.bazaarvoice.com/data/reviews.json",
      "//widgets.pinterest.com/v3/pidgets/boards/ciciwin/hedgehog-squirrel-crafts/pins/",
      "//se.wikipedia.org/w/api.php",
      "//cse.google.com/api/007627024705277327428/cse/r3vs7b0fcli/queries/js",
      "//relap.io/api/v2/similar_pages_jsonp.js",
      "//c1n3.hypercomments.com/stream/subscribe",
      "//maps.google.de/maps/vt",
      "//books.google.com/books",
      "//connect.mail.ru/share_count",
      "//tr.indeed.com/m/newjobs",
      "//www-onepick-opensocial.googleusercontent.com/gadgets/proxy",
      "//www.panoramio.com/map/get_panoramas.php",
      "//client.siteheart.com/streamcli/client",
      "//www.facebook.com/restserver.php",
      "//autocomplete.travelpayouts.com/avia",
      "//www.googleapis.com/freebase/v1/topic/m/0344_",
      "//mts1.googleapis.com/mapslt/ft",
      "//publish.twitter.com/oembed",
      "//fast.wistia.com/embed/medias/o75jtw7654.json",
      "//partner.googleadservices.com/gampad/ads",
      "//pass.yandex.ru/services",
      "//gupiao.baidu.com/stocks/stockbets",
      "//widget.admitad.com/widget/init",
      "//api.instagram.com/v1/tags/partykungen23328/media/recent",
      "//video.media.yql.yahoo.com/v1/video/sapi/streams/063fb76c-6c70-38c5-9bbc-04b7c384de2b",
      "//ib.adnxs.com/jpt",
      "//pass.yandex.com/services",
      "//www.google.de/maps/vt",
      "//clients1.google.com/complete/search",
      "//api.userlike.com/api/chat/slot/proactive/",
      "//www.youku.com/index_cookielist/s/jsonp",
      "//mt1.googleapis.com/mapslt/ft",
      "//api.mixpanel.com/track/",
      "//wpd.b.qq.com/cgi/get_sign.php",
      "//pipes.yahooapis.com/pipes/pipe.run",
      "//gdata.youtube.com/feeds/api/videos/WsJIHN1kNWc",
      "//9.chart.apis.google.com/chart",
      "//cdn.syndication.twitter.com/moments/709229296800440320",
      "//api.flickr.com/services/feeds/photos_friends.gne",
      "//cbks0.googleapis.com/cbk",
      "//www.blogger.com/feeds/5578653387562324002/posts/summary/4427562025302749269",
      "//query.yahooapis.com/v1/public/yql",
      "//kecngantang.blogspot.com/feeds/posts/default/-/Komik",
      "//www.travelpayouts.com/widgets/50f53ce9ada1b54bcc000031.json",
      "//i.cackle.me/widget/32586/bootstrap",
      "//translate.yandex.net/api/v1.5/tr.json/detect",
      "//a.tiles.mapbox.com/v3/zentralmedia.map-n2raeauc.jsonp",
      "//maps.google.ru/maps/vt",
      "//c1n2.hypercomments.com/stream/subscribe",
      "//rec.ydf.yandex.ru/cookie",
      "//cdn.jsdelivr.net"
    ];
  }
});

// node_modules/csp_evaluator/dist/utils.js
var require_utils = __commonJS({
  "node_modules/csp_evaluator/dist/utils.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.applyCheckFunktionToDirectives = exports2.matchWildcardUrls = exports2.getHostname = exports2.getSchemeFreeUrl = void 0;
    function getSchemeFreeUrl(url) {
      url = url.replace(/^\w[+\w.-]*:\/\//i, "");
      url = url.replace(/^\/\//, "");
      return url;
    }
    __name(getSchemeFreeUrl, "getSchemeFreeUrl");
    exports2.getSchemeFreeUrl = getSchemeFreeUrl;
    function getHostname(url) {
      const hostname = new URL("https://" + getSchemeFreeUrl(url).replace(":*", "").replace("*", "wildcard_placeholder")).hostname.replace("wildcard_placeholder", "*");
      const ipv6Regex = /^\[[\d:]+\]/;
      if (getSchemeFreeUrl(url).match(ipv6Regex) && !hostname.match(ipv6Regex)) {
        return "[" + hostname + "]";
      }
      return hostname;
    }
    __name(getHostname, "getHostname");
    exports2.getHostname = getHostname;
    function setScheme(u) {
      if (u.startsWith("//")) {
        return u.replace("//", "https://");
      }
      return u;
    }
    __name(setScheme, "setScheme");
    function matchWildcardUrls(cspUrlString, listOfUrlStrings) {
      const cspUrl = new URL(setScheme(cspUrlString.replace(":*", "").replace("*", "wildcard_placeholder")));
      const listOfUrls = listOfUrlStrings.map((u) => new URL(setScheme(u)));
      const host = cspUrl.hostname.toLowerCase();
      const hostHasWildcard = host.startsWith("wildcard_placeholder.");
      const wildcardFreeHost = host.replace(/^\wildcard_placeholder/i, "");
      const path7 = cspUrl.pathname;
      const hasPath = path7 !== "/";
      for (const url of listOfUrls) {
        const domain = url.hostname;
        if (!domain.endsWith(wildcardFreeHost)) {
          continue;
        }
        if (!hostHasWildcard && host !== domain) {
          continue;
        }
        if (hasPath) {
          if (path7.endsWith("/")) {
            if (!url.pathname.startsWith(path7)) {
              continue;
            }
          } else {
            if (url.pathname !== path7) {
              continue;
            }
          }
        }
        return url;
      }
      return null;
    }
    __name(matchWildcardUrls, "matchWildcardUrls");
    exports2.matchWildcardUrls = matchWildcardUrls;
    function applyCheckFunktionToDirectives(parsedCsp, check) {
      const directiveNames = Object.keys(parsedCsp.directives);
      for (const directive of directiveNames) {
        const directiveValues = parsedCsp.directives[directive];
        if (directiveValues) {
          check(directive, directiveValues);
        }
      }
    }
    __name(applyCheckFunktionToDirectives, "applyCheckFunktionToDirectives");
    exports2.applyCheckFunktionToDirectives = applyCheckFunktionToDirectives;
  }
});

// node_modules/csp_evaluator/dist/checks/security_checks.js
var require_security_checks = __commonJS({
  "node_modules/csp_evaluator/dist/checks/security_checks.js"(exports2) {
    "use strict";
    init_process_global();
    var __createBinding4 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      Object.defineProperty(o, k2, { enumerable: true, get: /* @__PURE__ */ __name(function() {
        return m[k];
      }, "get") });
    }) : (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      o[k2] = m[k];
    }));
    var __setModuleDefault4 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
      Object.defineProperty(o, "default", { enumerable: true, value: v });
    }) : function(o, v) {
      o["default"] = v;
    });
    var __importStar4 = exports2 && exports2.__importStar || function(mod2) {
      if (mod2 && mod2.__esModule) return mod2;
      var result = {};
      if (mod2 != null) {
        for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding4(result, mod2, k);
      }
      __setModuleDefault4(result, mod2);
      return result;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.checkHasConfiguredReporting = exports2.checkSrcHttp = exports2.checkNonceLength = exports2.checkDeprecatedDirective = exports2.checkIpSource = exports2.looksLikeIpAddress = exports2.checkFlashObjectAllowlistBypass = exports2.checkScriptAllowlistBypass = exports2.checkMissingDirectives = exports2.checkMultipleMissingBaseUriDirective = exports2.checkMissingBaseUriDirective = exports2.checkMissingScriptSrcDirective = exports2.checkMissingObjectSrcDirective = exports2.checkWildcards = exports2.checkPlainUrlSchemes = exports2.checkScriptUnsafeEval = exports2.checkScriptUnsafeInline = exports2.URL_SCHEMES_CAUSING_XSS = exports2.DIRECTIVES_CAUSING_XSS = void 0;
    var angular = __importStar4(require_angular2());
    var flash = __importStar4(require_flash());
    var jsonp = __importStar4(require_jsonp());
    var csp = __importStar4(require_csp());
    var csp_1 = require_csp();
    var finding_1 = require_finding();
    var utils = __importStar4(require_utils());
    exports2.DIRECTIVES_CAUSING_XSS = [
      csp_1.Directive.SCRIPT_SRC,
      csp_1.Directive.SCRIPT_SRC_ATTR,
      csp_1.Directive.SCRIPT_SRC_ELEM,
      csp_1.Directive.OBJECT_SRC,
      csp_1.Directive.BASE_URI
    ];
    exports2.URL_SCHEMES_CAUSING_XSS = ["data:", "http:", "https:"];
    function checkScriptUnsafeInline(effectiveCsp) {
      const violations = [];
      const directivesToCheck = effectiveCsp.getEffectiveDirectives([
        csp_1.Directive.SCRIPT_SRC,
        csp_1.Directive.SCRIPT_SRC_ATTR,
        csp_1.Directive.SCRIPT_SRC_ELEM
      ]);
      for (const directive of directivesToCheck) {
        const values = effectiveCsp.directives[directive] || [];
        if (values.includes(csp_1.Keyword.UNSAFE_INLINE)) {
          violations.push(new finding_1.Finding(finding_1.Type.SCRIPT_UNSAFE_INLINE, `'unsafe-inline' allows the execution of unsafe in-page scripts and event handlers.`, finding_1.Severity.HIGH, directive, csp_1.Keyword.UNSAFE_INLINE));
        }
        if (values.includes(csp_1.Keyword.UNSAFE_HASHES)) {
          violations.push(new finding_1.Finding(finding_1.Type.SCRIPT_UNSAFE_HASHES, `'unsafe-hashes', while safer than 'unsafe-inline', allows the execution of unsafe in-page scripts and event handlers as long as their hashes appear in the CSP. Please refactor them to no longer use inline scripts if possible.`, finding_1.Severity.MEDIUM_MAYBE, directive, csp_1.Keyword.UNSAFE_HASHES));
        }
      }
      return violations;
    }
    __name(checkScriptUnsafeInline, "checkScriptUnsafeInline");
    exports2.checkScriptUnsafeInline = checkScriptUnsafeInline;
    function checkScriptUnsafeEval(parsedCsp) {
      const violations = [];
      const directivesToCheck = parsedCsp.getEffectiveDirectives([
        csp_1.Directive.SCRIPT_SRC,
        csp_1.Directive.SCRIPT_SRC_ATTR,
        csp_1.Directive.SCRIPT_SRC_ELEM
      ]);
      for (const directive of directivesToCheck) {
        const values = parsedCsp.directives[directive] || [];
        if (values.includes(csp_1.Keyword.UNSAFE_EVAL)) {
          violations.push(new finding_1.Finding(finding_1.Type.SCRIPT_UNSAFE_EVAL, `'unsafe-eval' allows the execution of code injected into DOM APIs such as eval().`, finding_1.Severity.MEDIUM_MAYBE, directive, csp_1.Keyword.UNSAFE_EVAL));
        }
      }
      return violations;
    }
    __name(checkScriptUnsafeEval, "checkScriptUnsafeEval");
    exports2.checkScriptUnsafeEval = checkScriptUnsafeEval;
    function checkPlainUrlSchemes(parsedCsp) {
      const violations = [];
      const directivesToCheck = parsedCsp.getEffectiveDirectives(exports2.DIRECTIVES_CAUSING_XSS);
      for (const directive of directivesToCheck) {
        const values = parsedCsp.directives[directive] || [];
        for (const value of values) {
          if (exports2.URL_SCHEMES_CAUSING_XSS.includes(value)) {
            violations.push(new finding_1.Finding(finding_1.Type.PLAIN_URL_SCHEMES, value + " URI in " + directive + " allows the execution of unsafe scripts.", finding_1.Severity.HIGH, directive, value));
          }
        }
      }
      return violations;
    }
    __name(checkPlainUrlSchemes, "checkPlainUrlSchemes");
    exports2.checkPlainUrlSchemes = checkPlainUrlSchemes;
    function checkWildcards(parsedCsp) {
      const violations = [];
      const directivesToCheck = parsedCsp.getEffectiveDirectives(exports2.DIRECTIVES_CAUSING_XSS);
      for (const directive of directivesToCheck) {
        const values = parsedCsp.directives[directive] || [];
        for (const value of values) {
          const url = utils.getSchemeFreeUrl(value);
          if (url === "*") {
            violations.push(new finding_1.Finding(finding_1.Type.PLAIN_WILDCARD, directive + ` should not allow '*' as source`, finding_1.Severity.HIGH, directive, value));
            continue;
          }
        }
      }
      return violations;
    }
    __name(checkWildcards, "checkWildcards");
    exports2.checkWildcards = checkWildcards;
    function checkMissingObjectSrcDirective(parsedCsp) {
      let objectRestrictions = [];
      if (csp_1.Directive.OBJECT_SRC in parsedCsp.directives) {
        objectRestrictions = parsedCsp.directives[csp_1.Directive.OBJECT_SRC];
      } else if (csp_1.Directive.DEFAULT_SRC in parsedCsp.directives) {
        objectRestrictions = parsedCsp.directives[csp_1.Directive.DEFAULT_SRC];
      }
      if (objectRestrictions !== void 0 && objectRestrictions.length >= 1) {
        return [];
      }
      return [new finding_1.Finding(finding_1.Type.MISSING_DIRECTIVES, `Missing object-src allows the injection of plugins which can execute JavaScript. Can you set it to 'none'?`, finding_1.Severity.HIGH, csp_1.Directive.OBJECT_SRC)];
    }
    __name(checkMissingObjectSrcDirective, "checkMissingObjectSrcDirective");
    exports2.checkMissingObjectSrcDirective = checkMissingObjectSrcDirective;
    function checkMissingScriptSrcDirective(parsedCsp) {
      if (csp_1.Directive.SCRIPT_SRC in parsedCsp.directives || csp_1.Directive.DEFAULT_SRC in parsedCsp.directives) {
        return [];
      }
      return [new finding_1.Finding(finding_1.Type.MISSING_DIRECTIVES, "script-src directive is missing.", finding_1.Severity.HIGH, csp_1.Directive.SCRIPT_SRC)];
    }
    __name(checkMissingScriptSrcDirective, "checkMissingScriptSrcDirective");
    exports2.checkMissingScriptSrcDirective = checkMissingScriptSrcDirective;
    function checkMissingBaseUriDirective(parsedCsp) {
      return checkMultipleMissingBaseUriDirective([parsedCsp]);
    }
    __name(checkMissingBaseUriDirective, "checkMissingBaseUriDirective");
    exports2.checkMissingBaseUriDirective = checkMissingBaseUriDirective;
    function checkMultipleMissingBaseUriDirective(parsedCsps) {
      const needsBaseUri = /* @__PURE__ */ __name((csp2) => csp2.policyHasScriptNonces() || csp2.policyHasScriptHashes() && csp2.policyHasStrictDynamic(), "needsBaseUri");
      const hasBaseUri = /* @__PURE__ */ __name((csp2) => csp_1.Directive.BASE_URI in csp2.directives, "hasBaseUri");
      if (parsedCsps.some(needsBaseUri) && !parsedCsps.some(hasBaseUri)) {
        const description = `Missing base-uri allows the injection of base tags. They can be used to set the base URL for all relative (script) URLs to an attacker controlled domain. Can you set it to 'none' or 'self'?`;
        return [new finding_1.Finding(finding_1.Type.MISSING_DIRECTIVES, description, finding_1.Severity.HIGH, csp_1.Directive.BASE_URI)];
      }
      return [];
    }
    __name(checkMultipleMissingBaseUriDirective, "checkMultipleMissingBaseUriDirective");
    exports2.checkMultipleMissingBaseUriDirective = checkMultipleMissingBaseUriDirective;
    function checkMissingDirectives(parsedCsp) {
      return [
        ...checkMissingObjectSrcDirective(parsedCsp),
        ...checkMissingScriptSrcDirective(parsedCsp),
        ...checkMissingBaseUriDirective(parsedCsp)
      ];
    }
    __name(checkMissingDirectives, "checkMissingDirectives");
    exports2.checkMissingDirectives = checkMissingDirectives;
    function checkScriptAllowlistBypass(parsedCsp) {
      const violations = [];
      parsedCsp.getEffectiveDirectives([csp_1.Directive.SCRIPT_SRC, csp_1.Directive.SCRIPT_SRC_ELEM]).forEach((effectiveScriptSrcDirective) => {
        const scriptSrcValues = parsedCsp.directives[effectiveScriptSrcDirective] || [];
        if (scriptSrcValues.includes(csp_1.Keyword.NONE)) {
          return;
        }
        for (const value of scriptSrcValues) {
          if (value === csp_1.Keyword.SELF) {
            violations.push(new finding_1.Finding(finding_1.Type.SCRIPT_ALLOWLIST_BYPASS, `'self' can be problematic if you host JSONP, AngularJS or user uploaded files.`, finding_1.Severity.MEDIUM_MAYBE, effectiveScriptSrcDirective, value));
            continue;
          }
          if (value.startsWith("'")) {
            continue;
          }
          if (csp.isUrlScheme(value) || value.indexOf(".") === -1) {
            continue;
          }
          const url = "//" + utils.getSchemeFreeUrl(value);
          const angularBypass = utils.matchWildcardUrls(url, angular.URLS);
          let jsonpBypass = utils.matchWildcardUrls(url, jsonp.URLS);
          if (jsonpBypass) {
            const evalRequired = jsonp.NEEDS_EVAL.includes(jsonpBypass.hostname);
            const evalPresent = scriptSrcValues.includes(csp_1.Keyword.UNSAFE_EVAL);
            if (evalRequired && !evalPresent) {
              jsonpBypass = null;
            }
          }
          if (jsonpBypass || angularBypass) {
            let bypassDomain = "";
            let bypassTxt = "";
            if (jsonpBypass) {
              bypassDomain = jsonpBypass.hostname;
              bypassTxt = " JSONP endpoints";
            }
            if (angularBypass) {
              bypassDomain = angularBypass.hostname;
              bypassTxt += bypassTxt.trim() === "" ? "" : " and";
              bypassTxt += " Angular libraries";
            }
            violations.push(new finding_1.Finding(finding_1.Type.SCRIPT_ALLOWLIST_BYPASS, bypassDomain + " is known to host" + bypassTxt + " which allow to bypass this CSP.", finding_1.Severity.HIGH, effectiveScriptSrcDirective, value));
          } else {
            violations.push(new finding_1.Finding(finding_1.Type.SCRIPT_ALLOWLIST_BYPASS, `No bypass found; make sure that this URL doesn't serve JSONP replies or Angular libraries.`, finding_1.Severity.MEDIUM_MAYBE, effectiveScriptSrcDirective, value));
          }
        }
      });
      return violations;
    }
    __name(checkScriptAllowlistBypass, "checkScriptAllowlistBypass");
    exports2.checkScriptAllowlistBypass = checkScriptAllowlistBypass;
    function checkFlashObjectAllowlistBypass(parsedCsp) {
      const violations = [];
      const effectiveObjectSrcDirective = parsedCsp.getEffectiveDirective(csp_1.Directive.OBJECT_SRC);
      const objectSrcValues = parsedCsp.directives[effectiveObjectSrcDirective] || [];
      const pluginTypes = parsedCsp.directives[csp_1.Directive.PLUGIN_TYPES];
      if (pluginTypes && !pluginTypes.includes("application/x-shockwave-flash")) {
        return [];
      }
      for (const value of objectSrcValues) {
        if (value === csp_1.Keyword.NONE) {
          return [];
        }
        const url = "//" + utils.getSchemeFreeUrl(value);
        const flashBypass = utils.matchWildcardUrls(url, flash.URLS);
        if (flashBypass) {
          violations.push(new finding_1.Finding(finding_1.Type.OBJECT_ALLOWLIST_BYPASS, flashBypass.hostname + " is known to host Flash files which allow to bypass this CSP.", finding_1.Severity.HIGH, effectiveObjectSrcDirective, value));
        } else if (effectiveObjectSrcDirective === csp_1.Directive.OBJECT_SRC) {
          violations.push(new finding_1.Finding(finding_1.Type.OBJECT_ALLOWLIST_BYPASS, `Can you restrict object-src to 'none' only?`, finding_1.Severity.MEDIUM_MAYBE, effectiveObjectSrcDirective, value));
        }
      }
      return violations;
    }
    __name(checkFlashObjectAllowlistBypass, "checkFlashObjectAllowlistBypass");
    exports2.checkFlashObjectAllowlistBypass = checkFlashObjectAllowlistBypass;
    function looksLikeIpAddress(maybeIp) {
      if (maybeIp.startsWith("[") && maybeIp.endsWith("]")) {
        return true;
      }
      if (/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/.test(maybeIp)) {
        return true;
      }
      return false;
    }
    __name(looksLikeIpAddress, "looksLikeIpAddress");
    exports2.looksLikeIpAddress = looksLikeIpAddress;
    function checkIpSource(parsedCsp) {
      const violations = [];
      const checkIp = /* @__PURE__ */ __name((directive, directiveValues) => {
        for (const value of directiveValues) {
          const host = utils.getHostname(value);
          if (looksLikeIpAddress(host)) {
            if (host === "127.0.0.1") {
              violations.push(new finding_1.Finding(finding_1.Type.IP_SOURCE, directive + " directive allows localhost as source. Please make sure to remove this in production environments.", finding_1.Severity.INFO, directive, value));
            } else {
              violations.push(new finding_1.Finding(finding_1.Type.IP_SOURCE, directive + " directive has an IP-Address as source: " + host + " (will be ignored by browsers!). ", finding_1.Severity.INFO, directive, value));
            }
          }
        }
      }, "checkIp");
      utils.applyCheckFunktionToDirectives(parsedCsp, checkIp);
      return violations;
    }
    __name(checkIpSource, "checkIpSource");
    exports2.checkIpSource = checkIpSource;
    function checkDeprecatedDirective(parsedCsp) {
      const violations = [];
      if (csp_1.Directive.REFLECTED_XSS in parsedCsp.directives) {
        violations.push(new finding_1.Finding(finding_1.Type.DEPRECATED_DIRECTIVE, "reflected-xss is deprecated since CSP2. Please, use the X-XSS-Protection header instead.", finding_1.Severity.INFO, csp_1.Directive.REFLECTED_XSS));
      }
      if (csp_1.Directive.REFERRER in parsedCsp.directives) {
        violations.push(new finding_1.Finding(finding_1.Type.DEPRECATED_DIRECTIVE, "referrer is deprecated since CSP2. Please, use the Referrer-Policy header instead.", finding_1.Severity.INFO, csp_1.Directive.REFERRER));
      }
      if (csp_1.Directive.DISOWN_OPENER in parsedCsp.directives) {
        violations.push(new finding_1.Finding(finding_1.Type.DEPRECATED_DIRECTIVE, "disown-opener is deprecated since CSP3. Please, use the Cross Origin Opener Policy header instead.", finding_1.Severity.INFO, csp_1.Directive.DISOWN_OPENER));
      }
      if (csp_1.Directive.PREFETCH_SRC in parsedCsp.directives) {
        violations.push(new finding_1.Finding(finding_1.Type.DEPRECATED_DIRECTIVE, "prefetch-src is deprecated since CSP3. Be aware that this feature may cease to work at any time.", finding_1.Severity.INFO, csp_1.Directive.PREFETCH_SRC));
      }
      return violations;
    }
    __name(checkDeprecatedDirective, "checkDeprecatedDirective");
    exports2.checkDeprecatedDirective = checkDeprecatedDirective;
    function checkNonceLength(parsedCsp) {
      const noncePattern = new RegExp("^'nonce-(.+)'$");
      const violations = [];
      utils.applyCheckFunktionToDirectives(parsedCsp, (directive, directiveValues) => {
        for (const value of directiveValues) {
          const match = value.match(noncePattern);
          if (!match) {
            continue;
          }
          const nonceValue = match[1];
          if (nonceValue.length < 8) {
            violations.push(new finding_1.Finding(finding_1.Type.NONCE_LENGTH, "Nonces should be at least 8 characters long.", finding_1.Severity.MEDIUM, directive, value));
          }
          if (!csp.isNonce(value, true)) {
            violations.push(new finding_1.Finding(finding_1.Type.NONCE_CHARSET, "Nonces should only use the base64 charset.", finding_1.Severity.INFO, directive, value));
          }
        }
      });
      return violations;
    }
    __name(checkNonceLength, "checkNonceLength");
    exports2.checkNonceLength = checkNonceLength;
    function checkSrcHttp(parsedCsp) {
      const violations = [];
      utils.applyCheckFunktionToDirectives(parsedCsp, (directive, directiveValues) => {
        for (const value of directiveValues) {
          const description = directive === csp_1.Directive.REPORT_URI ? "Use HTTPS to send violation reports securely." : "Allow only resources downloaded over HTTPS.";
          if (value.startsWith("http://")) {
            violations.push(new finding_1.Finding(finding_1.Type.SRC_HTTP, description, finding_1.Severity.MEDIUM, directive, value));
          }
        }
      });
      return violations;
    }
    __name(checkSrcHttp, "checkSrcHttp");
    exports2.checkSrcHttp = checkSrcHttp;
    function checkHasConfiguredReporting(parsedCsp) {
      const reportUriValues = parsedCsp.directives[csp_1.Directive.REPORT_URI] || [];
      if (reportUriValues.length > 0) {
        return [];
      }
      const reportToValues = parsedCsp.directives[csp_1.Directive.REPORT_TO] || [];
      if (reportToValues.length > 0) {
        return [new finding_1.Finding(finding_1.Type.REPORT_TO_ONLY, `This CSP policy only provides a reporting destination via the 'report-to' directive. This directive is only supported in Chromium-based browsers so it is recommended to also use a 'report-uri' directive.`, finding_1.Severity.INFO, csp_1.Directive.REPORT_TO)];
      }
      return [new finding_1.Finding(finding_1.Type.REPORTING_DESTINATION_MISSING, "This CSP policy does not configure a reporting destination. This makes it difficult to maintain the CSP policy over time and monitor for any breakages.", finding_1.Severity.INFO, csp_1.Directive.REPORT_URI)];
    }
    __name(checkHasConfiguredReporting, "checkHasConfiguredReporting");
    exports2.checkHasConfiguredReporting = checkHasConfiguredReporting;
  }
});

// node_modules/csp_evaluator/dist/checks/strictcsp_checks.js
var require_strictcsp_checks = __commonJS({
  "node_modules/csp_evaluator/dist/checks/strictcsp_checks.js"(exports2) {
    "use strict";
    init_process_global();
    var __createBinding4 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      Object.defineProperty(o, k2, { enumerable: true, get: /* @__PURE__ */ __name(function() {
        return m[k];
      }, "get") });
    }) : (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      o[k2] = m[k];
    }));
    var __setModuleDefault4 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
      Object.defineProperty(o, "default", { enumerable: true, value: v });
    }) : function(o, v) {
      o["default"] = v;
    });
    var __importStar4 = exports2 && exports2.__importStar || function(mod2) {
      if (mod2 && mod2.__esModule) return mod2;
      var result = {};
      if (mod2 != null) {
        for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding4(result, mod2, k);
      }
      __setModuleDefault4(result, mod2);
      return result;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.checkRequiresTrustedTypesForScripts = exports2.checkAllowlistFallback = exports2.checkUnsafeInlineFallback = exports2.checkStrictDynamicNotStandalone = exports2.checkStrictDynamic = void 0;
    var csp = __importStar4(require_csp());
    var csp_1 = require_csp();
    var finding_1 = require_finding();
    function checkStrictDynamic(parsedCsp) {
      const directiveName = parsedCsp.getEffectiveDirective(csp.Directive.SCRIPT_SRC);
      const values = parsedCsp.directives[directiveName] || [];
      const schemeOrHostPresent = values.some((v) => !v.startsWith("'"));
      if (schemeOrHostPresent && !values.includes(csp_1.Keyword.STRICT_DYNAMIC)) {
        return [new finding_1.Finding(finding_1.Type.STRICT_DYNAMIC, "Host allowlists can frequently be bypassed. Consider using 'strict-dynamic' in combination with CSP nonces or hashes.", finding_1.Severity.STRICT_CSP, directiveName)];
      }
      return [];
    }
    __name(checkStrictDynamic, "checkStrictDynamic");
    exports2.checkStrictDynamic = checkStrictDynamic;
    function checkStrictDynamicNotStandalone(parsedCsp) {
      const directiveName = parsedCsp.getEffectiveDirective(csp.Directive.SCRIPT_SRC);
      const values = parsedCsp.directives[directiveName] || [];
      if (values.includes(csp_1.Keyword.STRICT_DYNAMIC) && (!parsedCsp.policyHasScriptNonces() && !parsedCsp.policyHasScriptHashes())) {
        return [new finding_1.Finding(finding_1.Type.STRICT_DYNAMIC_NOT_STANDALONE, "'strict-dynamic' without a CSP nonce/hash will block all scripts.", finding_1.Severity.INFO, directiveName)];
      }
      return [];
    }
    __name(checkStrictDynamicNotStandalone, "checkStrictDynamicNotStandalone");
    exports2.checkStrictDynamicNotStandalone = checkStrictDynamicNotStandalone;
    function checkUnsafeInlineFallback(parsedCsp) {
      if (!parsedCsp.policyHasScriptNonces() && !parsedCsp.policyHasScriptHashes()) {
        return [];
      }
      const directiveName = parsedCsp.getEffectiveDirective(csp.Directive.SCRIPT_SRC);
      const values = parsedCsp.directives[directiveName] || [];
      if (!values.includes(csp_1.Keyword.UNSAFE_INLINE)) {
        return [new finding_1.Finding(finding_1.Type.UNSAFE_INLINE_FALLBACK, "Consider adding 'unsafe-inline' (ignored by browsers supporting nonces/hashes) to be backward compatible with older browsers.", finding_1.Severity.STRICT_CSP, directiveName)];
      }
      return [];
    }
    __name(checkUnsafeInlineFallback, "checkUnsafeInlineFallback");
    exports2.checkUnsafeInlineFallback = checkUnsafeInlineFallback;
    function checkAllowlistFallback(parsedCsp) {
      const directiveName = parsedCsp.getEffectiveDirective(csp.Directive.SCRIPT_SRC);
      const values = parsedCsp.directives[directiveName] || [];
      if (!values.includes(csp_1.Keyword.STRICT_DYNAMIC)) {
        return [];
      }
      if (!values.some((v) => ["http:", "https:", "*"].includes(v) || v.includes("."))) {
        return [new finding_1.Finding(finding_1.Type.ALLOWLIST_FALLBACK, "Consider adding https: and http: url schemes (ignored by browsers supporting 'strict-dynamic') to be backward compatible with older browsers.", finding_1.Severity.STRICT_CSP, directiveName)];
      }
      return [];
    }
    __name(checkAllowlistFallback, "checkAllowlistFallback");
    exports2.checkAllowlistFallback = checkAllowlistFallback;
    function checkRequiresTrustedTypesForScripts(parsedCsp) {
      const directiveName = parsedCsp.getEffectiveDirective(csp.Directive.REQUIRE_TRUSTED_TYPES_FOR);
      const values = parsedCsp.directives[directiveName] || [];
      if (!values.includes(csp.TrustedTypesSink.SCRIPT)) {
        return [new finding_1.Finding(finding_1.Type.REQUIRE_TRUSTED_TYPES_FOR_SCRIPTS, `Consider requiring Trusted Types for scripts to lock down DOM XSS injection sinks. You can do this by adding "require-trusted-types-for 'script'" to your policy.`, finding_1.Severity.INFO, csp.Directive.REQUIRE_TRUSTED_TYPES_FOR)];
      }
      return [];
    }
    __name(checkRequiresTrustedTypesForScripts, "checkRequiresTrustedTypesForScripts");
    exports2.checkRequiresTrustedTypesForScripts = checkRequiresTrustedTypesForScripts;
  }
});

// node_modules/csp_evaluator/dist/lighthouse/lighthouse_checks.js
var require_lighthouse_checks = __commonJS({
  "node_modules/csp_evaluator/dist/lighthouse/lighthouse_checks.js"(exports2) {
    "use strict";
    init_process_global();
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.evaluateForSyntaxErrors = exports2.evaluateForWarnings = exports2.evaluateForFailure = void 0;
    var parser_checks_1 = require_parser_checks();
    var security_checks_1 = require_security_checks();
    var strictcsp_checks_1 = require_strictcsp_checks();
    var csp_1 = require_csp();
    function arrayContains(arr, elem) {
      return arr.some((e) => e.equals(elem));
    }
    __name(arrayContains, "arrayContains");
    function setIntersection(sets) {
      const intersection = [];
      if (sets.length === 0) {
        return intersection;
      }
      const firstSet = sets[0];
      for (const elem of firstSet) {
        if (sets.every((set) => arrayContains(set, elem))) {
          intersection.push(elem);
        }
      }
      return intersection;
    }
    __name(setIntersection, "setIntersection");
    function setUnion(sets) {
      const union = [];
      for (const set of sets) {
        for (const elem of set) {
          if (!arrayContains(union, elem)) {
            union.push(elem);
          }
        }
      }
      return union;
    }
    __name(setUnion, "setUnion");
    function atLeastOnePasses(parsedCsps, checker) {
      const findings = [];
      for (const parsedCsp of parsedCsps) {
        findings.push(checker(parsedCsp));
      }
      return setIntersection(findings);
    }
    __name(atLeastOnePasses, "atLeastOnePasses");
    function atLeastOneFails(parsedCsps, checker) {
      const findings = [];
      for (const parsedCsp of parsedCsps) {
        findings.push(checker(parsedCsp));
      }
      return setUnion(findings);
    }
    __name(atLeastOneFails, "atLeastOneFails");
    function evaluateForFailure2(parsedCsps) {
      const targetsXssFindings = [
        ...atLeastOnePasses(parsedCsps, security_checks_1.checkMissingScriptSrcDirective),
        ...atLeastOnePasses(parsedCsps, security_checks_1.checkMissingObjectSrcDirective),
        ...security_checks_1.checkMultipleMissingBaseUriDirective(parsedCsps)
      ];
      const effectiveCsps = parsedCsps.map((csp) => csp.getEffectiveCsp(csp_1.Version.CSP3));
      const effectiveCspsWithScript = effectiveCsps.filter((csp) => {
        const directiveName = csp.getEffectiveDirective(csp_1.Directive.SCRIPT_SRC);
        return csp.directives[directiveName];
      });
      const robust = [
        ...atLeastOnePasses(effectiveCspsWithScript, strictcsp_checks_1.checkStrictDynamic),
        ...atLeastOnePasses(effectiveCspsWithScript, security_checks_1.checkScriptUnsafeInline),
        ...atLeastOnePasses(effectiveCsps, security_checks_1.checkWildcards),
        ...atLeastOnePasses(effectiveCsps, security_checks_1.checkPlainUrlSchemes)
      ];
      return [...targetsXssFindings, ...robust];
    }
    __name(evaluateForFailure2, "evaluateForFailure");
    exports2.evaluateForFailure = evaluateForFailure2;
    function evaluateForWarnings2(parsedCsps) {
      return [
        ...atLeastOneFails(parsedCsps, strictcsp_checks_1.checkUnsafeInlineFallback),
        ...atLeastOneFails(parsedCsps, strictcsp_checks_1.checkAllowlistFallback)
      ];
    }
    __name(evaluateForWarnings2, "evaluateForWarnings");
    exports2.evaluateForWarnings = evaluateForWarnings2;
    function evaluateForSyntaxErrors2(parsedCsps) {
      const allFindings = [];
      for (const csp of parsedCsps) {
        const findings = [
          ...security_checks_1.checkNonceLength(csp),
          ...parser_checks_1.checkUnknownDirective(csp),
          ...security_checks_1.checkDeprecatedDirective(csp),
          ...parser_checks_1.checkMissingSemicolon(csp),
          ...parser_checks_1.checkInvalidKeyword(csp)
        ];
        allFindings.push(findings);
      }
      return allFindings;
    }
    __name(evaluateForSyntaxErrors2, "evaluateForSyntaxErrors");
    exports2.evaluateForSyntaxErrors = evaluateForSyntaxErrors2;
  }
});

// node_modules/csp_evaluator/dist/parser.js
var require_parser2 = __commonJS({
  "node_modules/csp_evaluator/dist/parser.js"(exports2) {
    "use strict";
    init_process_global();
    var __createBinding4 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      Object.defineProperty(o, k2, { enumerable: true, get: /* @__PURE__ */ __name(function() {
        return m[k];
      }, "get") });
    }) : (function(o, m, k, k2) {
      if (k2 === void 0) k2 = k;
      o[k2] = m[k];
    }));
    var __setModuleDefault4 = exports2 && exports2.__setModuleDefault || (Object.create ? (function(o, v) {
      Object.defineProperty(o, "default", { enumerable: true, value: v });
    }) : function(o, v) {
      o["default"] = v;
    });
    var __importStar4 = exports2 && exports2.__importStar || function(mod2) {
      if (mod2 && mod2.__esModule) return mod2;
      var result = {};
      if (mod2 != null) {
        for (var k in mod2) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod2, k)) __createBinding4(result, mod2, k);
      }
      __setModuleDefault4(result, mod2);
      return result;
    };
    Object.defineProperty(exports2, "__esModule", { value: true });
    exports2.TEST_ONLY = exports2.CspParser = void 0;
    var csp = __importStar4(require_csp());
    var CspParser2 = class {
      static {
        __name(this, "CspParser");
      }
      constructor(unparsedCsp) {
        this.csp = new csp.Csp();
        this.parse(unparsedCsp);
      }
      parse(unparsedCsp) {
        this.csp = new csp.Csp();
        const directiveTokens = unparsedCsp.split(";");
        for (let i = 0; i < directiveTokens.length; i++) {
          const directiveToken = directiveTokens[i].trim();
          const directiveParts = directiveToken.match(/\S+/g);
          if (Array.isArray(directiveParts)) {
            const directiveName = directiveParts[0].toLowerCase();
            if (directiveName in this.csp.directives) {
              continue;
            }
            if (!csp.isDirective(directiveName)) {
            }
            const directiveValues = [];
            for (let directiveValue, j = 1; directiveValue = directiveParts[j]; j++) {
              directiveValue = normalizeDirectiveValue(directiveValue);
              if (!directiveValues.includes(directiveValue)) {
                directiveValues.push(directiveValue);
              }
            }
            this.csp.directives[directiveName] = directiveValues;
          }
        }
        return this.csp;
      }
    };
    exports2.CspParser = CspParser2;
    function normalizeDirectiveValue(directiveValue) {
      directiveValue = directiveValue.trim();
      const directiveValueLower = directiveValue.toLowerCase();
      if (csp.isKeyword(directiveValueLower) || csp.isUrlScheme(directiveValue)) {
        return directiveValueLower;
      }
      return directiveValue;
    }
    __name(normalizeDirectiveValue, "normalizeDirectiveValue");
    exports2.TEST_ONLY = { normalizeDirectiveValue };
  }
});

// core/lib/csp-evaluator.js
function getTranslatedDescription(finding) {
  let result = FINDING_TO_UI_STRING[finding.type];
  if (!result) {
    lighthouse_logger_default.warn("CSP Evaluator", `No translation found for description: ${finding.description}`);
    return finding.description;
  }
  if (isIcuMessage(result)) return result;
  if (typeof result === "string") return str_75(result, { keyword: finding.value || "" });
  result = result[finding.directive];
  if (!result) {
    lighthouse_logger_default.warn("CSP Evaluator", `No translation found for description: ${finding.description}`);
    return finding.description;
  }
  return result;
}
function parseCsp(rawCsp) {
  return new import_parser.CspParser(rawCsp).csp;
}
function evaluateRawCspsForXss(rawCsps) {
  const parsedCsps = rawCsps.map(parseCsp);
  const bypasses = (0, import_lighthouse_checks.evaluateForFailure)(parsedCsps);
  const warnings = (0, import_lighthouse_checks.evaluateForWarnings)(parsedCsps);
  const syntax = (0, import_lighthouse_checks.evaluateForSyntaxErrors)(parsedCsps);
  return { bypasses, warnings, syntax };
}
var import_lighthouse_checks, import_finding, import_parser, import_csp, UIStrings95, str_75, FINDING_TO_UI_STRING;
var init_csp_evaluator = __esm({
  "core/lib/csp-evaluator.js"() {
    "use strict";
    init_process_global();
    import_lighthouse_checks = __toESM(require_lighthouse_checks(), 1);
    import_finding = __toESM(require_finding(), 1);
    import_parser = __toESM(require_parser2(), 1);
    import_csp = __toESM(require_csp(), 1);
    init_lighthouse_logger();
    init_i18n();
    init_format();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings95 = {
      /** Message shown when a CSP does not have a base-uri directive. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "base-uri", "'none'", and "'self'" do not need to be translated. */
      missingBaseUri: "Missing `base-uri` allows injected `<base>` tags to set the base URL for all relative URLs (e.g. scripts) to an attacker controlled domain. Consider setting `base-uri` to `'none'` or `'self'`.",
      /** Message shown when a CSP does not have a script-src directive. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "script-src" does not need to be translated. */
      missingScriptSrc: "`script-src` directive is missing. This can allow the execution of unsafe scripts.",
      /** Message shown when a CSP does not have a script-src directive. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "object-src" and "'none'" do not need to be translated. */
      missingObjectSrc: "Missing `object-src` allows the injection of plugins that execute unsafe scripts. Consider setting `object-src` to `'none'` if you can.",
      /** Message shown when a CSP uses a domain allowlist to filter out malicious scripts. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "CSP", "'strict-dynamic'", "nonces", and "hashes" do not need to be translated. "allowlists" can be interpreted as "whitelist". */
      strictDynamic: "Host allowlists can frequently be bypassed. Consider using CSP nonces or hashes instead, along with `'strict-dynamic'` if necessary.",
      /** Message shown when a CSP allows inline scripts to be run in the page. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "CSP", "'unsafe-inline'", "nonces", and "hashes" do not need to be translated. */
      unsafeInline: "`'unsafe-inline'` allows the execution of unsafe in-page scripts and event handlers. Consider using CSP nonces or hashes to allow scripts individually.",
      /** Message shown when a CSP is not backwards compatible with browsers that do not support CSP nonces/hashes. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "'unsafe-inline'", "nonces", and "hashes" do not need to be translated. */
      unsafeInlineFallback: "Consider adding `'unsafe-inline'` (ignored by browsers supporting nonces/hashes) to be backward compatible with older browsers.",
      /** Message shown when a CSP is not backwards compatible with browsers that do not support the 'strict-dynamic' keyword. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "http:", "https:", and "'strict-dynamic'" do not need to be translated. */
      allowlistFallback: "Consider adding https: and http: URL schemes (ignored by browsers supporting `'strict-dynamic'`) to be backward compatible with older browsers.",
      /** Message shown when a CSP only provides a reporting destination through the report-to directive. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "report-to", "report-uri", and "Chromium" do not need to be translated. */
      reportToOnly: "The reporting destination is only configured via the report-to directive. This directive is only supported in Chromium-based browsers so it is recommended to also use a `report-uri` directive.",
      /** Message shown when a CSP does not provide a reporting destination. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "CSP" does not need to be translated. */
      reportingDestinationMissing: "No CSP configures a reporting destination. This makes it difficult to maintain the CSP over time and monitor for any breakages.",
      /** Message shown when a CSP nonce has less than 8 characters. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "Nonces" does not need to be translated. */
      nonceLength: "Nonces should be at least 8 characters long.",
      /** Message shown when a CSP nonce does not use teh base64 charset. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "Nonces" and "base84" do not need to be translated. "charset" can be interpreted as "a set of characters". */
      nonceCharset: "Nonces should use the base64 charset.",
      /**
       * @description Message shown when a CSP is missing a semicolon. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy".
       * @example {'object-src'} keyword
       */
      missingSemicolon: "Did you forget the semicolon? {keyword} seems to be a directive, not a keyword.",
      /** Message shown when a CSP contains an unknown keyword. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "CSP" does not need to be translated. */
      unknownDirective: "Unknown CSP directive.",
      /**
       * @description Message shown when a CSP contains an invalid keyword. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy".
       * @example {'invalid-keyword'} keyword
       */
      unknownKeyword: "{keyword} seems to be an invalid keyword.",
      /** Message shown when a CSP uses the deprecated reflected-xss directive. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "reflected-xss", "CSP2" and "X-XSS-Protection" do not need to be translated. */
      deprecatedReflectedXSS: "`reflected-xss` is deprecated since CSP2. Please, use the X-XSS-Protection header instead.",
      /** Message shown when a CSP uses the deprecated referrer directive. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "referrer", "CSP2" and "Referrer-Policy" do not need to be translated. */
      deprecatedReferrer: "`referrer` is deprecated since CSP2. Please, use the Referrer-Policy header instead.",
      /** Message shown when a CSP uses the deprecated disown-opener directive. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy". "disown-opener", "CSP3" and "Cross-Origin-Opener-Policy" do not need to be translated. */
      deprecatedDisownOpener: "`disown-opener` is deprecated since CSP3. Please, use the Cross-Origin-Opener-Policy header instead.",
      /**
       * @description Message shown when a CSP wildcard allows unsafe scripts to be run in the page. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy".
       *  @example {*} keyword
       */
      plainWildcards: "Avoid using plain wildcards ({keyword}) in this directive. Plain wildcards allow scripts to be sourced from an unsafe domain.",
      /**
       * @description Message shown when a CSP URL scheme allows unsafe scripts to be run in the page. Shown in a table with a list of other CSP vulnerabilities and suggestions. "CSP" stands for "Content Security Policy".
       *  @example {https:} keyword
       */
      plainUrlScheme: "Avoid using plain URL schemes ({keyword}) in this directive. Plain URL schemes allow scripts to be sourced from an unsafe domain."
    };
    str_75 = createIcuMessageFn({ url: "core/lib/csp-evaluator.js" }.url, UIStrings95);
    FINDING_TO_UI_STRING = {
      [import_finding.Type.MISSING_SEMICOLON]: UIStrings95.missingSemicolon,
      [import_finding.Type.UNKNOWN_DIRECTIVE]: str_75(UIStrings95.unknownDirective),
      [import_finding.Type.INVALID_KEYWORD]: UIStrings95.unknownKeyword,
      [import_finding.Type.MISSING_DIRECTIVES]: {
        [import_csp.Directive.BASE_URI]: str_75(UIStrings95.missingBaseUri),
        [import_csp.Directive.SCRIPT_SRC]: str_75(UIStrings95.missingScriptSrc),
        [import_csp.Directive.OBJECT_SRC]: str_75(UIStrings95.missingObjectSrc)
      },
      [import_finding.Type.SCRIPT_UNSAFE_INLINE]: str_75(UIStrings95.unsafeInline),
      [import_finding.Type.PLAIN_WILDCARD]: UIStrings95.plainWildcards,
      [import_finding.Type.PLAIN_URL_SCHEMES]: UIStrings95.plainUrlScheme,
      [import_finding.Type.NONCE_LENGTH]: str_75(UIStrings95.nonceLength),
      [import_finding.Type.NONCE_CHARSET]: str_75(UIStrings95.nonceCharset),
      [import_finding.Type.DEPRECATED_DIRECTIVE]: {
        [import_csp.Directive.REFLECTED_XSS]: str_75(UIStrings95.deprecatedReflectedXSS),
        [import_csp.Directive.REFERRER]: str_75(UIStrings95.deprecatedReferrer),
        [import_csp.Directive.DISOWN_OPENER]: str_75(UIStrings95.deprecatedDisownOpener)
      },
      [import_finding.Type.STRICT_DYNAMIC]: str_75(UIStrings95.strictDynamic),
      [import_finding.Type.UNSAFE_INLINE_FALLBACK]: str_75(UIStrings95.unsafeInlineFallback),
      [import_finding.Type.ALLOWLIST_FALLBACK]: str_75(UIStrings95.allowlistFallback),
      [import_finding.Type.REPORTING_DESTINATION_MISSING]: str_75(UIStrings95.reportingDestinationMissing),
      [import_finding.Type.REPORT_TO_ONLY]: str_75(UIStrings95.reportToOnly)
    };
    __name(getTranslatedDescription, "getTranslatedDescription");
    __name(parseCsp, "parseCsp");
    __name(evaluateRawCspsForXss, "evaluateRawCspsForXss");
  }
});

// core/audits/csp-xss.js
var csp_xss_exports = {};
__export(csp_xss_exports, {
  UIStrings: () => UIStrings96,
  default: () => csp_xss_default
});
var UIStrings96, str_76, CspXss, csp_xss_default;
var init_csp_xss = __esm({
  "core/audits/csp-xss.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_main_resource();
    init_i18n();
    init_csp_evaluator();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings96 = {
      /** Title of a Lighthouse audit that evaluates the security of a page's CSP. "CSP" stands for "Content Security Policy". "XSS" stands for "Cross Site Scripting". "CSP" and "XSS" do not need to be translated. */
      title: "Ensure CSP is effective against XSS attacks",
      /** Description of a Lighthouse audit that evaluates the security of a page's CSP. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. "CSP" stands for "Content Security Policy". "XSS" stands for "Cross Site Scripting". "CSP" and "XSS" do not need to be translated. */
      description: "A strong Content Security Policy (CSP) significantly reduces the risk of cross-site scripting (XSS) attacks. [Learn how to use a CSP to prevent XSS](https://developer.chrome.com/docs/lighthouse/best-practices/csp-xss/)",
      /** Summary text for the results of a Lighthouse audit that evaluates the security of a page's CSP. This is displayed if no CSP is being enforced. "CSP" stands for "Content Security Policy". "CSP" does not need to be translated. */
      noCsp: "No CSP found in enforcement mode",
      /** Message shown when one or more CSPs are defined in a <meta> tag. Shown in a table with a list of other CSP bypasses and warnings. "CSP" stands for "Content Security Policy". "CSP" and "HTTP" do not need to be translated. */
      metaTagMessage: "The page contains a CSP defined in a `<meta>` tag. Consider moving the CSP to an HTTP header or defining another strict CSP in an HTTP header.",
      /** Label for a column in a data table; entries will be a directive of a CSP. "CSP" stands for "Content Security Policy". */
      columnDirective: "Directive",
      /** Label for a column in a data table; entries will be the severity of an issue with the CSP. "CSP" stands for "Content Security Policy". */
      columnSeverity: "Severity",
      /** Table item value calling out the presence of a syntax error. */
      itemSeveritySyntax: "Syntax"
    };
    str_76 = createIcuMessageFn({ url: "core/audits/csp-xss.js" }.url, UIStrings96);
    CspXss = class extends Audit {
      static {
        __name(this, "CspXss");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "csp-xss",
          scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
          title: str_76(UIStrings96.title),
          description: str_76(UIStrings96.description),
          requiredArtifacts: ["DevtoolsLog", "MetaElements", "URL"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<{cspHeaders: string[], cspMetaTags: string[]}>}
       */
      static async getRawCsps(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: artifacts.URL }, context);
        const cspMetaTags = artifacts.MetaElements.filter((m) => {
          return m.httpEquiv && m.httpEquiv.toLowerCase() === "content-security-policy";
        }).flatMap((m) => (m.content || "").split(",")).filter((rawCsp) => rawCsp.replace(/\s/g, ""));
        const cspHeaders = mainResource.responseHeaders.filter((h) => {
          return h.name.toLowerCase() === "content-security-policy";
        }).flatMap((h) => h.value.split(",")).filter((rawCsp) => rawCsp.replace(/\s/g, ""));
        return { cspHeaders, cspMetaTags };
      }
      /**
       * @param {Finding} finding
       * @param {LH.IcuMessage=} severity
       * @return {LH.Audit.Details.TableItem}
       */
      static findingToTableItem(finding, severity) {
        return {
          directive: finding.directive,
          description: getTranslatedDescription(finding),
          severity
        };
      }
      /**
       * @param {Finding[][]} syntaxFindings
       * @param {string[]} rawCsps
       * @return {LH.Audit.Details.TableItem[]}
       */
      static constructSyntaxResults(syntaxFindings, rawCsps) {
        const results = [];
        for (let i = 0; i < syntaxFindings.length; ++i) {
          const items = syntaxFindings[i].map((f) => this.findingToTableItem(f));
          if (!items.length) continue;
          results.push({
            severity: str_76(UIStrings96.itemSeveritySyntax),
            description: {
              type: "code",
              value: rawCsps[i]
            },
            subItems: {
              type: "subitems",
              items
            }
          });
        }
        return results;
      }
      /**
       * @param {string[]} cspHeaders
       * @param {string[]} cspMetaTags
       * @return {{score: number, results: LH.Audit.Details.TableItem[]}}
       */
      static constructResults(cspHeaders, cspMetaTags) {
        const rawCsps = [...cspHeaders, ...cspMetaTags];
        if (!rawCsps.length) {
          return {
            score: 0,
            results: [{
              severity: str_76(UIStrings.itemSeverityHigh),
              description: str_76(UIStrings96.noCsp),
              directive: void 0
            }]
          };
        }
        const { bypasses, warnings, syntax } = evaluateRawCspsForXss(rawCsps);
        const results = [
          ...this.constructSyntaxResults(syntax, rawCsps),
          ...bypasses.map((f) => this.findingToTableItem(f, str_76(UIStrings.itemSeverityHigh))),
          ...warnings.map((f) => this.findingToTableItem(f, str_76(UIStrings.itemSeverityMedium)))
        ];
        const headerOnlyBypasses = evaluateRawCspsForXss(cspHeaders).bypasses;
        const headerOnlyIsInsecure = headerOnlyBypasses.length > 0 || cspHeaders.length === 0;
        if (cspMetaTags.length > 0 && headerOnlyIsInsecure) {
          results.push({
            severity: str_76(UIStrings.itemSeverityMedium),
            description: str_76(UIStrings96.metaTagMessage),
            directive: void 0
          });
        }
        return { score: bypasses.length ? 0 : 1, results };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const { cspHeaders, cspMetaTags } = await this.getRawCsps(artifacts, context);
        const { score, results } = this.constructResults(cspHeaders, cspMetaTags);
        const headings = [
          /* eslint-disable max-len */
          { key: "description", valueType: "text", subItemsHeading: { key: "description" }, label: str_76(UIStrings.columnDescription) },
          { key: "directive", valueType: "code", subItemsHeading: { key: "directive" }, label: str_76(UIStrings96.columnDirective) },
          { key: "severity", valueType: "text", subItemsHeading: { key: "severity" }, label: str_76(UIStrings96.columnSeverity) }
          /* eslint-enable max-len */
        ];
        const details = Audit.makeTableDetails(headings, results);
        return {
          score,
          notApplicable: !results.length,
          details
        };
      }
    };
    csp_xss_default = CspXss;
  }
});

// core/computed/js-bundles.js
function computeGeneratedFileSizes2(map, contentLength, content) {
  const lines = content.split("\n");
  const files = {};
  const totalBytes = contentLength;
  let unmappedBytes = totalBytes;
  map.computeLastGeneratedColumns();
  for (const mapping of map.mappings()) {
    const source = mapping.sourceURL;
    const lineNum = mapping.lineNumber;
    const colNum = mapping.columnNumber;
    const lastColNum = mapping.lastColumnNumber;
    if (!source) continue;
    const line = lines[lineNum];
    if (line === null || line === void 0) {
      const errorMessage = `${map.url()} mapping for line out of bounds: ${lineNum + 1}`;
      lighthouse_logger_default.error("JSBundles", errorMessage);
      return { errorMessage };
    }
    if (colNum > line.length) {
      const errorMessage = `${map.url()} mapping for column out of bounds: ${lineNum + 1}:${colNum}`;
      lighthouse_logger_default.error("JSBundles", errorMessage);
      return { errorMessage };
    }
    let mappingLength = 0;
    if (lastColNum !== void 0) {
      if (lastColNum > line.length) {
        const errorMessage = `${map.url()} mapping for last column out of bounds: ${lineNum + 1}:${lastColNum}`;
        lighthouse_logger_default.error("JSBundles", errorMessage);
        return { errorMessage };
      }
      mappingLength = lastColNum - colNum;
    } else {
      mappingLength = line.length - colNum + 1;
    }
    files[source] = (files[source] || 0) + mappingLength;
    unmappedBytes -= mappingLength;
  }
  return {
    files,
    unmappedBytes,
    totalBytes
  };
}
var import_SDK2, JSBundles, JSBundlesComputed;
var init_js_bundles = __esm({
  "core/computed/js-bundles.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_computed_artifact();
    import_SDK2 = __toESM(require_SDK(), 1);
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(computeGeneratedFileSizes2, "computeGeneratedFileSizes");
    JSBundles = class {
      static {
        __name(this, "JSBundles");
      }
      /**
       * @param {Pick<LH.Artifacts, 'SourceMaps'|'Scripts'>} artifacts
       */
      static async compute_(artifacts) {
        const { SourceMaps: SourceMaps2, Scripts: Scripts2 } = artifacts;
        const bundles = [];
        for (const SourceMap of SourceMaps2) {
          if (!SourceMap.map) continue;
          const { scriptId, map: rawMap } = SourceMap;
          if (!rawMap.mappings) continue;
          const script = Scripts2.find((s) => s.scriptId === scriptId);
          if (!script) continue;
          const compiledUrl = SourceMap.scriptUrl || "compiled.js";
          const mapUrl = SourceMap.sourceMapUrl || "compiled.js.map";
          const map = new import_SDK2.default.SourceMap(compiledUrl, mapUrl, rawMap);
          const sizes = computeGeneratedFileSizes2(map, script.length || 0, script.content || "");
          const bundle = {
            rawMap,
            script,
            map,
            sizes
          };
          bundles.push(bundle);
        }
        return bundles;
      }
    };
    JSBundlesComputed = makeComputedArtifact(JSBundles, ["Scripts", "SourceMaps"]);
  }
});

// core/lib/deprecations-strings.js
var UIStrings97, DEPRECATIONS_METADATA;
var init_deprecations_strings = __esm({
  "core/lib/deprecations-strings.js"() {
    "use strict";
    init_process_global();
    UIStrings97 = {
      /**
       * @description This warning occurs when the website uses Attribution Reporting.
       */
      AttributionReporting: "Attribution Reporting is deprecated and will be removed. See https://goo.gle/ps-status for details.",
      /**
       * @description We show this warning when 1) an 'authorization' header is attached to the request by scripts, 2) there is no 'authorization' in the 'access-control-allow-headers' header in the response, and 3) there is a wildcard symbol ('*') in the 'access-control-allow-header' header in the response. This is allowed now, but we're planning to reject such responses and require responses to have an 'access-control-allow-headers' containing 'authorization'.
       */
      AuthorizationCoveredByWildcard: "Authorization will not be covered by the wildcard symbol (*) in CORS `Access-Control-Allow-Headers` handling.",
      /**
       * @description This warning occurs when a page attempts to request a resource whose URL contained both a newline character (`\n` or `\r`), and a less-than character (`<`). These resources are blocked.
       */
      CanRequestURLHTTPContainingNewline: "Resource requests whose URLs contained both removed whitespace `(n|r|t)` characters and less-than characters (`<`) are blocked. Please remove newlines and encode less-than characters from places like element attribute values in order to load these resources.",
      /**
       * @description This warning occurs when the website attempts to invoke the deprecated `chrome.loadTimes().connectionInfo` API.
       */
      ChromeLoadTimesConnectionInfo: "`chrome.loadTimes()` is deprecated, instead use standardized API: Navigation Timing 2.",
      /**
       * @description This warning occurs when the website attempts to invoke the deprecated `chrome.loadTimes().firstPaintAfterLoadTime` API.
       */
      ChromeLoadTimesFirstPaintAfterLoadTime: "`chrome.loadTimes()` is deprecated, instead use standardized API: Paint Timing.",
      /**
       * @description This warning occurs when the website attempts to invoke the deprecated `chrome.loadTimes().wasAlternateProtocolAvailable` API.
       */
      ChromeLoadTimesWasAlternateProtocolAvailable: "`chrome.loadTimes()` is deprecated, instead use standardized API: `nextHopProtocol` in Navigation Timing 2.",
      /**
       * @description This warning occurs when a frame accesses another frame's data after having set `document.domain` without having set the `Origin-Agent-Cluster` http header. This is a companion warning to `documentDomainSettingWithoutOriginAgentClusterHeader`, where that warning occurs when `document.domain` is set, and this warning occurs when an access has been made, based on that previous `document.domain` setting.
       */
      CrossOriginAccessBasedOnDocumentDomain: "Relaxing the same-origin policy by setting `document.domain` is deprecated, and will be disabled by default. This deprecation warning is for a cross-origin access that was enabled by setting `document.domain`.",
      /**
       * @description Issue text shown when the web page uses a deprecated web API. The window.alert is the deprecated web API function.
       */
      CrossOriginWindowAlert: "Triggering window.alert from cross origin iframes has been deprecated and will be removed in the future.",
      /**
       * @description Issue text shown when the web page uses a deprecated web API. The window.confirm is the deprecated web API function.
       */
      CrossOriginWindowConfirm: "Triggering window.confirm from cross origin iframes has been deprecated and will be removed in the future.",
      /**
       * @description Warning displayed to developers when they hide the Cast button on a video element using the deprecated CSS selector instead of using the disableRemotePlayback attribute on the element.
       */
      CSSSelectorInternalMediaControlsOverlayCastButton: "The `disableRemotePlayback` attribute should be used in order to disable the default Cast integration instead of using `-internal-media-controls-overlay-cast-button` selector.",
      /**
       * @description Warning displayed to developers to let them know the CSS appearance property value they used is not standard and will be removed.
       */
      CSSValueAppearanceSliderVertical: "CSS appearance value `slider-vertical` is not standardized and will be removed.",
      /**
       * @description Warning displayed to developers when a data: URL is assigned to SVGUseElement to let them know that the support is deprecated.
       */
      DataUrlInSvgUse: "Support for data: URLs in SVGUseElement is deprecated and it will be removed in the future.",
      /**
       * @description Warning displayed to developers when document.createEvent() is called with 'KeyboardEvents', which is a non-standard event interface that will be removed.
       */
      DocumentCreateEventKeyboardEvents: "document.createEvent('KeyboardEvents') is deprecated and will be removed. Use `new KeyboardEvent()` instead.",
      /**
       * @description Warning displayed to developers when document.createEvent() is called with 'TransitionEvent', which is a non-standard event interface that will be removed.
       */
      DocumentCreateEventTransitionEvent: "document.createEvent('TransitionEvent') is deprecated and will be removed. Use `new TransitionEvent()` instead.",
      /**
       * @description Translation is not needed, this will never be exposed in production code.
       */
      ExampleBrowserProcessDeprecation: "This is an example for showing the code required for a browser process reported deprecation.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown when one of the Protected Audience APIs like `navigator.joinAdInterestGroup`, `navigator.getInterestGroupAdAuctionData` or `navigator.runAdAuction` are called.
       */
      Fledge: "The Protected Audience API is deprecated and will be removed in a future release.",
      /**
       * @description Warning displayed to developers when the Geolocation API is used from an insecure origin (one that isn't localhost or doesn't use HTTPS) to notify them that this use is no longer supported.
       */
      GeolocationInsecureOrigin: "`getCurrentPosition()` and `watchPosition()` no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://www.chromium.org/Home/chromium-security/deprecating-powerful-features-on-insecure-origins/ for more details.",
      /**
       * @description Warning displayed to developers when the Geolocation API is used from an insecure origin (one that isn't localhost or doesn't use HTTPS) to notify them that this use is deprecated.
       */
      GeolocationInsecureOriginDeprecatedNotRemoved: "`getCurrentPosition()` and `watchPosition()` are deprecated on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://www.chromium.org/Home/chromium-security/deprecating-powerful-features-on-insecure-origins/ for more details.",
      /**
       * @description This warning occurs when the `getUserMedia()` API is invoked on an insecure (e.g., HTTP) site. This is only permitted on secure sites (e.g., HTTPS).
       */
      GetUserMediaInsecureOrigin: "`getUserMedia()` no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://www.chromium.org/Home/chromium-security/deprecating-powerful-features-on-insecure-origins/ for more details.",
      /**
       * @description A deprecation warning shown to developers in the DevTools Issues tab when code tries to use the deprecated hostCandidate field, guiding developers to use the equivalent information in the .address and .port fields instead.
       */
      HostCandidateAttributeGetter: "`RTCPeerConnectionIceErrorEvent.hostCandidate` is deprecated. Please use `RTCPeerConnectionIceErrorEvent.address` or `RTCPeerConnectionIceErrorEvent.port` instead.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab, when a service worker reads one of the fields from an event named 'canmakepayment'.
       */
      IdentityInCanMakePaymentEvent: "The merchant origin and arbitrary data from the `canmakepayment` service worker event are deprecated and will be removed: `topOrigin`, `paymentRequestOrigin`, `methodData`, `modifiers`.",
      /**
       * @description This warning occurs when an insecure context (e.g., HTTP) requests a private resource (not on open internet). This is done to mitigate the potential for CSRF and other attacks.
       */
      InsecurePrivateNetworkSubresourceRequest: "The website requested a subresource from a network that it could only access because of its users' privileged network position. These requests expose non-public devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage. To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them.",
      /**
       * @description This is a deprecated warning to developers that a field in a structure has been renamed.
       */
      InterestGroupDailyUpdateUrl: "The `dailyUpdateUrl` field of `InterestGroups` passed to `joinAdInterestGroup()` has been renamed to `updateUrl`, to more accurately reflect its behavior.",
      /**
       * @description Warning displayed to developers that instead of calling the `Intl.v8BreakIterator` constructor, which is not a standard JavaScript API, use ECMA402 standard API Intl.Segmenter shipped in end of 2020 instead.
       */
      IntlV8BreakIterator: "`Intl.v8BreakIterator` is deprecated. Please use `Intl.Segmenter` instead.",
      /**
       * @description Warning for using deprecated 'inputQuota' attribute.
       */
      LanguageModel_InputQuota: "LanguageModel.inputQuota is deprecated. Please use LanguageModel.contextWindow instead. This alias is only available in extensions.",
      /**
       * @description Warning for using deprecated 'inputUsage' attribute.
       */
      LanguageModel_InputUsage: "LanguageModel.inputUsage is deprecated. Please use LanguageModel.contextUsage instead. This alias is only available in extensions.",
      /**
       * @description Warning for using deprecated 'measureInputUsage' method.
       */
      LanguageModel_MeasureInputUsage: "LanguageModel.measureInputUsage() is deprecated. Please use LanguageModel.measureContextUsage() instead. This alias is only available in extensions.",
      /**
       * @description Warning for using deprecated 'onquotaoverflow' event handler.
       */
      LanguageModel_OnQuotaOverflow: "LanguageModel.onquotaoverflow is deprecated. Please use LanguageModel.oncontextoverflow instead. The LanguageModel.onquotaoverflow alias is only available in extensions.",
      /**
       * @description Warning message for web developers when they call the deprecated LanguageModel.params() method.
       */
      LanguageModelParams: "LanguageModel.params() is deprecated and now only available in extension contexts. The topK and temperature related fields within its result are also deprecated.",
      /**
       * @description Warning message for web developers when they use the deprecated 'temperature' option in LanguageModel.create() or access the .temperature attribute.
       */
      LanguageModelTemperature: "The 'temperature' parameter/attribute for LanguageModel is deprecated. It is only functional within extensions and may be removed in the future.",
      /**
       * @description Warning message for web developers when they use the deprecated 'topK' option in LanguageModel.create() or access the .topK attribute.
       */
      LanguageModelTopK: "The 'topK' parameter/attribute for LanguageModel is deprecated. It is only functional within extensions and may be removed in the future.",
      /**
       * @description This warning occurs when a stylesheet loaded from a local file directive does not end in the file type `.css`.
       */
      LocalCSSFileExtensionRejected: "CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension.",
      /**
       * @description This warning occurs when the browser requests Web MIDI access as sysex (system exclusive messages) can be allowed via prompt even if the browser did not specifically request it.
       */
      NoSysexWebMIDIWithoutPermission: "Web MIDI will ask a permission to use even if the sysex is not specified in the `MIDIOptions`.",
      /**
       * @description Warning displayed to developers when the Notification API is used from an insecure origin (one that isn't localhost or doesn't use HTTPS) to notify them that this use is no longer supported.
       */
      NotificationInsecureOrigin: "The Notification API may no longer be used from insecure origins. You should consider switching your application to a secure origin, such as HTTPS. See https://www.chromium.org/Home/chromium-security/deprecating-powerful-features-on-insecure-origins/ for more details.",
      /**
       * @description Warning displayed to developers when permission to use notifications has been requested by a cross-origin iframe, to notify them that this use is no longer supported.
       */
      NotificationPermissionRequestedIframe: "Permission for the Notification API may no longer be requested from a cross-origin iframe. You should consider requesting permission from a top-level frame or opening a new window instead.",
      /**
       * @description Warning displayed to developers when CreateImageBitmap is used with the newly deprecated option imageOrientation: 'none'.
       */
      ObsoleteCreateImageBitmapImageOrientationNone: "Option `imageOrientation: 'none'` in createImageBitmap is deprecated. Please use createImageBitmap with option '\\{imageOrientation: 'from-image'\\}' instead.",
      /**
       * @description This warning occurs when the WebRTC protocol attempts to negotiate a connection using an obsolete cipher and risks connection security.
       */
      ObsoleteWebRtcCipherSuite: "Your partner is negotiating an obsolete (D)TLS version. Please check with your partner to have this fixed.",
      /**
       * @description Warning displayed to developers that use overflow:visible for replaced elements. This declaration was earlier ignored but will now change the element's painting based on whether the overflow value allows the element to paint outside its bounds.
       */
      OverflowVisibleOnReplacedElement: "Specifying `overflow: visible` on img, video and canvas tags may cause them to produce visual content outside of the element bounds. See https://github.com/WICG/shared-element-transitions/blob/main/debugging_overflow_on_images.md.",
      /**
       * @description Warning displayed to developers when they use a Flash Embed URLS to let them know that the browser will not automatically link to their equivalent HTML5 link.
       */
      OverrideFlashEmbedwithHTML: "Legacy flash video embed has been rewritten to HTML iframe. Flash is long gone, this rewriting hack is deprecated and may be removed in the future.",
      /**
       * @description Warning displayed to developers when they use the PaymentInstruments API to let them know this API is deprecated.
       */
      PaymentInstruments: "`paymentManager.instruments` is deprecated. Please use just-in-time install for payment handlers instead.",
      /**
       * @description Warning displayed to developers when their Web Payment API usage violates their Content-Security-Policy (CSP) connect-src directive to let them know this CSP bypass has been deprecated.
       */
      PaymentRequestCSPViolation: "Your `PaymentRequest` call bypassed Content-Security-Policy (CSP) `connect-src` directive. This bypass is deprecated. Please add the payment method identifier from the `PaymentRequest` API (in `supportedMethods` field) to your CSP `connect-src` directive.",
      /**
       * @description Warning displayed to developers when persistent storage type is used to notify that storage type is deprecated.
       */
      PersistentQuotaType: "`StorageType.persistent` is deprecated. Please use standardized `navigator.storage` instead.",
      /**
       * @description This issue indicates that a `<source>` element with a `<picture>` parent was using an `src` attribute, which is not valid and is ignored by the browser. The `srcset` attribute should be used instead.
       */
      PictureSourceSrc: "`<source src>` with a `<picture>` parent is invalid and therefore ignored. Please use `<source srcset>` instead.",
      /**
       * @description Warning displayed to developers when the vendor-prefixed method (webkitCancelAnimationFrame) is used rather than the equivalent unprefixed method (cancelAnimationFrame).
       */
      PrefixedCancelAnimationFrame: "webkitCancelAnimationFrame is vendor-specific. Please use the standard cancelAnimationFrame instead.",
      /**
       * @description Warning displayed to developers when the vendor-prefixed method (webkitRequestAnimationFrame) is used rather than the equivalent unprefixed method (requestAnimationFrame).
       */
      PrefixedRequestAnimationFrame: "webkitRequestAnimationFrame is vendor-specific. Please use the standard requestAnimationFrame instead.",
      /**
       * @description Standard message when one web API is deprecated in favor of another.
       */
      PrefixedVideoDisplayingFullscreen: "HTMLVideoElement.webkitDisplayingFullscreen is deprecated. Please use Document.fullscreenElement instead.",
      /**
       * @description Standard message when one web API is deprecated in favor of another.
       */
      PrefixedVideoEnterFullScreen: "HTMLVideoElement.webkitEnterFullScreen() is deprecated. Please use Element.requestFullscreen() instead.",
      /**
       * @description Standard message when one web API is deprecated in favor of another.
       */
      PrefixedVideoEnterFullscreen: "HTMLVideoElement.webkitEnterFullscreen() is deprecated. Please use Element.requestFullscreen() instead.",
      /**
       * @description Standard message when one web API is deprecated in favor of another.
       */
      PrefixedVideoExitFullScreen: "HTMLVideoElement.webkitExitFullScreen() is deprecated. Please use Document.exitFullscreen() instead.",
      /**
       * @description Standard message when one web API is deprecated in favor of another.
       */
      PrefixedVideoExitFullscreen: "HTMLVideoElement.webkitExitFullscreen() is deprecated. Please use Document.exitFullscreen() instead.",
      /**
       * @description Standard message when one web API is deprecated in favor of another.
       */
      PrefixedVideoSupportsFullscreen: "HTMLVideoElement.webkitSupportsFullscreen is deprecated. Please use Document.fullscreenEnabled instead.",
      /**
       * @description Warning displayed to developers when an SVG filter is applied to a disallowed content type.
       */
      PreventSvgFilterPaint: "SVG filters cannot be applied to cross-origin iframes, restricted iframes (e.g., sandboxed), or plugins.",
      /**
       * @description Standard message when one web API is deprecated in favor of another.
       */
      RangeExpand: "Range.expand() is deprecated. Please use Selection.modify() instead.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown when the Storage Access API is automatically granted by Related Website Sets. The placeholder will always be the string `Related Website Sets`.
       */
      RelatedWebsiteSets: "`Related Website Sets` is deprecated and will be removed. See https://privacysandbox.com/news/update-on-plans-for-privacy-sandbox-technologies/ for more details.",
      /**
       * @description This warning occurs when a subresource loaded by a page has a URL with an authority portion. These are disallowed.
       */
      RequestedSubresourceWithEmbeddedCredentials: "Subresource requests whose URLs contain embedded credentials (e.g. `https://user:pass@host/`) are blocked.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown when a video conferencing website attempts to use a non-standard crypto method when performing a handshake to set up a connection with another endpoint.
       */
      RTCConstraintEnableDtlsSrtpFalse: "The constraint `DtlsSrtpKeyAgreement` is removed. You have specified a `false` value for this constraint, which is interpreted as an attempt to use the removed `SDES key negotiation` method. This functionality is removed; use a service that supports `DTLS key negotiation` instead.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown when a video conferencing website uses a non-standard API for controlling the crypto method used, but is not having an effect because the desired behavior is already enabled-by-default.
       */
      RTCConstraintEnableDtlsSrtpTrue: "The constraint `DtlsSrtpKeyAgreement` is removed. You have specified a `true` value for this constraint, which had no effect, but you can remove this constraint for tidiness.",
      /**
       * @description WebRTC is set of JavaScript APIs for sending and receiving data, audio and video. getStats() is a method used to obtain network and quality metrics. There are two versions of this method, one is being deprecated because it is non-standard.
       */
      RTCPeerConnectionGetStatsLegacyNonCompliant: "The callback-based getStats() is deprecated and will be removed. Use the spec-compliant getStats() instead.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown then a video conferencing website attempts to use the `RTCP MUX` policy.
       */
      RtcpMuxPolicyNegotiate: "The `rtcpMuxPolicy` option is deprecated and will be removed.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. The placeholder is always the noun 'SharedArrayBuffer' which refers to a JavaScript construct.
       */
      SharedArrayBufferConstructedWithoutIsolation: "`SharedArrayBuffer` will require cross-origin isolation. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown when one of the Shared Storage APIs like `sharedStorage.set()`, `sharedStorage.worklet.addModule()`, `sharedStorage.selectURL()`, etc., along with `<img sharedstoragewritable>`, `<iframe sharedstoragewritable>`, or `fetch(url, {sharedStorageWritable: true})` are used.
       */
      SharedStorage: "The Shared Storage API is deprecated and will be removed in a future release.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown when the `document.requestStorageAccessFor` API is called. The placeholder will always be the string `document.requestStorageAccessFor`.
       */
      StorageAccessAPI_requestStorageAccessFor_Method: "`document.requestStorageAccessFor` is deprecated and will be removed. See https://privacysandbox.com/news/update-on-plans-for-privacy-sandbox-technologies/ for more details.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown when the speech synthesis API is called before the page receives a user activation.
       */
      TextToSpeech_DisallowedByAutoplay: "`speechSynthesis.speak()` without user activation is deprecated and will be removed.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown when one of the Topics APIs like `document.browsingTopics()`, `<img browsingtopics>`, `<iframe browsingtopics>`, or `fetch(url, {browsingTopics: true})` are used.
       */
      Topics: "The Topics API is deprecated and will be removed in a future release.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. It's shown when a listener for the `unload` event is added.
       */
      UnloadHandler: "Unload event listeners are deprecated and will be removed.",
      /**
       * @description A deprecation warning shown in the DevTools Issues tab. The placeholder is always the noun 'SharedArrayBuffer' which refers to a JavaScript construct. 'Extensions' refers to Chrome extensions. The warning is shown when Chrome Extensions attempt to use 'SharedArrayBuffer's under insecure circumstances.
       */
      V8SharedArrayBufferConstructedInExtensionWithoutIsolation: "Extensions should opt into cross-origin isolation to continue using `SharedArrayBuffer`. See https://developer.chrome.com/docs/extensions/mv3/cross-origin-isolation/.",
      /**
       * @description This warning occurs when the deprecated `BluetoothRemoteGATTCharacteristic.writeValue()` method is used. Developers should use `writeValueWithResponse()` or `writeValueWithoutResponse()` instead.
       */
      WebBluetoothRemoteCharacteristicWriteValue: "`BluetoothRemoteGATTCharacteristic.writeValue()` is deprecated. Use `writeValueWithResponse()` or `writeValueWithoutResponse()` instead.",
      /**
       * @description Warning for using the deprecated 'incomingHighWaterMark' attribute on WebTransportDatagramDuplexStream. Developers should use 'incomingMaxBufferedDatagrams' instead.
       */
      WebTransportDatagramDuplexStreamIncomingHighWaterMark: "WebTransportDatagramDuplexStream.incomingHighWaterMark has been renamed to incomingMaxBufferedDatagrams. incomingHighWaterMark will be removed in a future version of Chrome.",
      /**
       * @description Warning for using the deprecated 'outgoingHighWaterMark' attribute on WebTransportDatagramDuplexStream. Developers should use 'outgoingMaxBufferedDatagrams' instead.
       */
      WebTransportDatagramDuplexStreamOutgoingHighWaterMark: "WebTransportDatagramDuplexStream.outgoingHighWaterMark has been renamed to outgoingMaxBufferedDatagrams. outgoingHighWaterMark will be removed in a future version of Chrome.",
      /**
       * @description Warning displayed to developers that they are using `XMLHttpRequest` API in a way that they expect an unsupported character encoding `UTF-16` could be used in the server reply.
       */
      XHRJSONEncodingDetection: "UTF-16 is not supported by response json in `XMLHttpRequest`",
      /**
       * @description Warning displayed to developers. It is shown when the `XMLHttpRequest` API is used in a way that it slows down the page load of the next page. The `main thread` refers to an operating systems thread used to run most of the processing of HTML documents, so please use a consistent wording.
       */
      XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload: "Synchronous `XMLHttpRequest` on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.",
      /**
       * @description Warning displayed to developers that they are using either the XSLTProcessor API, or XSLT processing instructions, both of which have been deprecated and are scheduled to be removed.
       */
      XSLT: "XSLTProcessor and XSLT Processing Instructions have been deprecated by all browsers. These features will be removed from this browser soon."
    };
    DEPRECATIONS_METADATA = {
      "AttributionReporting": {
        "chromeStatusFeature": 6320639375966208
      },
      "AuthorizationCoveredByWildcard": {
        "milestone": 97
      },
      "CSSSelectorInternalMediaControlsOverlayCastButton": {
        "chromeStatusFeature": 5714245488476160
      },
      "CSSValueAppearanceSliderVertical": {
        "chromeStatusFeature": 6001359429566464
      },
      "CanRequestURLHTTPContainingNewline": {
        "chromeStatusFeature": 5735596811091968
      },
      "ChromeLoadTimesConnectionInfo": {
        "chromeStatusFeature": 5637885046816768
      },
      "ChromeLoadTimesFirstPaintAfterLoadTime": {
        "chromeStatusFeature": 5637885046816768
      },
      "ChromeLoadTimesWasAlternateProtocolAvailable": {
        "chromeStatusFeature": 5637885046816768
      },
      "CrossOriginAccessBasedOnDocumentDomain": {
        "milestone": 115
      },
      "DataUrlInSvgUse": {
        "chromeStatusFeature": 5128825141198848,
        "milestone": 119
      },
      "DocumentCreateEventKeyboardEvents": {
        "chromeStatusFeature": 5095987863486464,
        "milestone": 151
      },
      "DocumentCreateEventTransitionEvent": {
        "chromeStatusFeature": 5095987863486464,
        "milestone": 151
      },
      "IdentityInCanMakePaymentEvent": {
        "chromeStatusFeature": 5190978431352832
      },
      "InsecurePrivateNetworkSubresourceRequest": {
        "chromeStatusFeature": 5436853517811712,
        "milestone": 92
      },
      "LanguageModelParams": {
        "chromeStatusFeature": 5134603979063296
      },
      "LanguageModelTemperature": {
        "chromeStatusFeature": 5134603979063296
      },
      "LanguageModelTopK": {
        "chromeStatusFeature": 5134603979063296
      },
      "LanguageModel_InputQuota": {
        "chromeStatusFeature": 5134603979063296
      },
      "LanguageModel_InputUsage": {
        "chromeStatusFeature": 5134603979063296
      },
      "LanguageModel_MeasureInputUsage": {
        "chromeStatusFeature": 5134603979063296
      },
      "LanguageModel_OnQuotaOverflow": {
        "chromeStatusFeature": 5134603979063296
      },
      "LocalCSSFileExtensionRejected": {
        "milestone": 64
      },
      "NoSysexWebMIDIWithoutPermission": {
        "chromeStatusFeature": 5138066234671104,
        "milestone": 82
      },
      "NotificationPermissionRequestedIframe": {
        "chromeStatusFeature": 6451284559265792
      },
      "ObsoleteCreateImageBitmapImageOrientationNone": {
        "milestone": 111
      },
      "ObsoleteWebRtcCipherSuite": {
        "milestone": 81
      },
      "OverflowVisibleOnReplacedElement": {
        "chromeStatusFeature": 5137515594383360,
        "milestone": 108
      },
      "OverrideFlashEmbedwithHTML": {
        "milestone": 140
      },
      "PaymentInstruments": {
        "chromeStatusFeature": 5099285054488576
      },
      "PaymentRequestCSPViolation": {
        "chromeStatusFeature": 6286595631087616
      },
      "PersistentQuotaType": {
        "chromeStatusFeature": 5176235376246784,
        "milestone": 106
      },
      "PreventSvgFilterPaint": {
        "chromeStatusFeature": 5117170452398080
      },
      "RTCConstraintEnableDtlsSrtpFalse": {
        "milestone": 97
      },
      "RTCConstraintEnableDtlsSrtpTrue": {
        "milestone": 97
      },
      "RTCPeerConnectionGetStatsLegacyNonCompliant": {
        "chromeStatusFeature": 4631626228695040,
        "milestone": 117
      },
      "RelatedWebsiteSets": {
        "chromeStatusFeature": 5194473869017088
      },
      "RequestedSubresourceWithEmbeddedCredentials": {
        "chromeStatusFeature": 5669008342777856
      },
      "RtcpMuxPolicyNegotiate": {
        "chromeStatusFeature": 5654810086866944,
        "milestone": 62
      },
      "SharedArrayBufferConstructedWithoutIsolation": {
        "milestone": 106
      },
      "SharedStorage": {
        "chromeStatusFeature": 5076349064708096
      },
      "StorageAccessAPI_requestStorageAccessFor_Method": {
        "chromeStatusFeature": 5162221567082496
      },
      "TextToSpeech_DisallowedByAutoplay": {
        "chromeStatusFeature": 5687444770914304,
        "milestone": 71
      },
      "UnloadHandler": {
        "chromeStatusFeature": 5579556305502208
      },
      "V8SharedArrayBufferConstructedInExtensionWithoutIsolation": {
        "milestone": 96
      },
      "WebBluetoothRemoteCharacteristicWriteValue": {
        "chromeStatusFeature": 5088568590598144
      },
      "WebTransportDatagramDuplexStreamIncomingHighWaterMark": {
        "chromeStatusFeature": 5143839699501056,
        "milestone": 156
      },
      "WebTransportDatagramDuplexStreamOutgoingHighWaterMark": {
        "chromeStatusFeature": 5143839699501056,
        "milestone": 156
      },
      "XHRJSONEncodingDetection": {
        "milestone": 93
      },
      "XSLT": {
        "chromeStatusFeature": 4709671889534976,
        "milestone": 143
      }
    };
  }
});

// core/lib/deprecation-description.js
function getIssueDetailDescription(issueDetails) {
  let message;
  const type = (
    /** @type {keyof DEPRECATIONS_METADATA} */
    issueDetails.type
  );
  const maybeEnglishMessage = UIStrings97[type];
  if (maybeEnglishMessage) {
    message = deprecationsStr_(maybeEnglishMessage);
  }
  const links = [];
  const deprecationMeta = DEPRECATIONS_METADATA[type];
  const feature = deprecationMeta?.chromeStatusFeature ?? 0;
  if (feature !== 0) {
    links.push({
      link: `https://chromestatus.com/feature/${feature}`,
      linkTitle: str_77(UIStrings98.feature)
    });
  }
  const milestone = deprecationMeta?.milestone ?? 0;
  if (milestone !== 0) {
    links.push({
      link: "https://chromiumdash.appspot.com/schedule",
      linkTitle: str_77(UIStrings98.milestone, { milestone })
    });
  }
  return {
    substitutions: /* @__PURE__ */ new Map([
      ["PLACEHOLDER_title", str_77(UIStrings98.title)],
      ["PLACEHOLDER_message", message]
    ]),
    links,
    message
  };
}
var UIStrings98, str_77, deprecationsStr_;
var init_deprecation_description = __esm({
  "core/lib/deprecation-description.js"() {
    "use strict";
    init_process_global();
    init_i18n();
    init_deprecations_strings();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings98 = {
      // Store strings used across messages in this block.
      /**
       * @description This links to the chrome feature status page when one exists.
       */
      feature: "Check the feature status page for more details.",
      /**
       * @description This links to the chromium dash schedule when a milestone is set.
       * @example {100} milestone
       */
      milestone: "This change will go into effect with milestone {milestone}.",
      /**
       * @description Title of issue raised when a deprecated feature is used
       */
      title: "Deprecated Feature Used"
    };
    str_77 = createIcuMessageFn({ url: "core/lib/deprecation-description.js" }.url, UIStrings98);
    deprecationsStr_ = createIcuMessageFn(
      "node_modules/@paulirish/trace_engine/generated/Deprecation.js",
      UIStrings97
    );
    __name(getIssueDetailDescription, "getIssueDetailDescription");
  }
});

// core/audits/deprecations.js
var deprecations_exports = {};
__export(deprecations_exports, {
  UIStrings: () => UIStrings99,
  default: () => deprecations_default
});
var UIStrings99, str_78, Deprecations, deprecations_default;
var init_deprecations = __esm({
  "core/audits/deprecations.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_js_bundles();
    init_i18n();
    init_deprecation_description();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings99 = {
      /** Title of a Lighthouse audit that provides detail on the use of deprecated APIs. This descriptive title is shown to users when the page does not use deprecated APIs. */
      title: "Avoids deprecated APIs",
      /** Title of a Lighthouse audit that provides detail on the use of deprecated APIs. This descriptive title is shown to users when the page uses deprecated APIs. */
      failureTitle: "Uses deprecated APIs",
      /** Description of a Lighthouse audit that tells the user why they should not use deprecated APIs on their page. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Deprecated APIs will eventually be removed from the browser. [Learn more about deprecated APIs](https://developer.chrome.com/docs/lighthouse/best-practices/deprecations/).",
      /** [ICU Syntax] Label for the audit identifying the number of warnings generated by using deprecated APIs. */
      displayValue: `{itemCount, plural,
    =1 {1 warning found}
    other {# warnings found}
    }`,
      /** Header of the table column which displays the warning message describing use of a deprecated API by code running in the web page. */
      columnDeprecate: "Deprecation / Warning",
      /** Table column header for line of code (eg. 432) that is using a deprecated API. */
      columnLine: "Line"
    };
    str_78 = createIcuMessageFn({ url: "core/audits/deprecations.js" }.url, UIStrings99);
    Deprecations = class extends Audit {
      static {
        __name(this, "Deprecations");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "deprecations",
          title: str_78(UIStrings99.title),
          failureTitle: str_78(UIStrings99.failureTitle),
          description: str_78(UIStrings99.description),
          requiredArtifacts: ["InspectorIssues", "SourceMaps", "Scripts"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const bundles = await JSBundlesComputed.request(artifacts, context);
        const deprecations = (artifacts.InspectorIssues.deprecationIssue ?? []).map((deprecation) => {
          const { scriptId, url, lineNumber, columnNumber } = deprecation.sourceCodeLocation;
          const bundle = bundles.find((bundle2) => bundle2.script.scriptId === scriptId);
          const deprecationMeta = getIssueDetailDescription(deprecation);
          let subItems = void 0;
          if (deprecationMeta.links.length) {
            subItems = {
              type: "subitems",
              items: deprecationMeta.links.map((link) => ({
                type: "link",
                url: link.link,
                text: link.linkTitle
              }))
            };
          }
          const legacyMessage = deprecation.message;
          const item = {
            value: deprecationMeta.message || legacyMessage || deprecation.type,
            // Protocol.Audits.SourceCodeLocation.columnNumber is 1-indexed, but we use 0-indexed.
            source: Audit.makeSourceLocation(url, lineNumber, columnNumber - 1, bundle),
            subItems
          };
          return item;
        });
        const headings = [
          { key: "value", valueType: "text", label: str_78(UIStrings99.columnDeprecate) },
          { key: "source", valueType: "source-location", label: str_78(UIStrings.columnSource) }
        ];
        const details = Audit.makeTableDetails(headings, deprecations);
        let displayValue;
        if (deprecations.length > 0) {
          displayValue = str_78(UIStrings99.displayValue, { itemCount: deprecations.length });
        }
        return {
          score: Number(deprecations.length === 0),
          displayValue,
          details
        };
      }
    };
    deprecations_default = Deprecations;
  }
});

// core/audits/dobetterweb/charset.js
var charset_exports = {};
__export(charset_exports, {
  CHARSET_HTML_REGEX: () => CHARSET_HTML_REGEX,
  CHARSET_HTTP_REGEX: () => CHARSET_HTTP_REGEX2,
  IANA_REGEX: () => IANA_REGEX,
  UIStrings: () => UIStrings100,
  default: () => charset_default
});
var UIStrings100, str_79, CONTENT_TYPE_HEADER, IANA_REGEX, CHARSET_HTML_REGEX, CHARSET_HTTP_REGEX2, CharsetDefined, charset_default;
var init_charset = __esm({
  "core/audits/dobetterweb/charset.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    init_main_resource();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings100 = {
      /** Title of a Lighthouse audit that provides detail on if the charset is set properly for a page. This title is shown when the charset is defined correctly. Charset defines the character encoding (eg UTF-8) of the page content. */
      title: "Properly defines charset",
      /** Title of a Lighthouse audit that provides detail on if the charset is set properly for a page. This title is shown when the charset meta tag is missing or defined too late in the page. */
      failureTitle: "Charset declaration is missing or occurs too late in the HTML",
      /** Description of a Lighthouse audit that tells the user why the charset needs to be defined early on. */
      description: "A character encoding declaration is required. It can be done with a `<meta>` tag in the first 1024 bytes of the HTML or in the Content-Type HTTP response header. [Learn more about declaring the character encoding](https://developer.chrome.com/docs/lighthouse/best-practices/charset/)."
    };
    str_79 = createIcuMessageFn({ url: "core/audits/dobetterweb/charset.js" }.url, UIStrings100);
    CONTENT_TYPE_HEADER = "content-type";
    IANA_REGEX = /^[a-zA-Z0-9-_:.()]{2,}$/;
    CHARSET_HTML_REGEX = /<meta[^>]+charset[^<]+>/i;
    CHARSET_HTTP_REGEX2 = /charset\s*=\s*[a-zA-Z0-9-_:.()]{2,}/i;
    CharsetDefined = class extends Audit {
      static {
        __name(this, "CharsetDefined");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "charset",
          title: str_79(UIStrings100.title),
          failureTitle: str_79(UIStrings100.failureTitle),
          description: str_79(UIStrings100.description),
          requiredArtifacts: ["MainDocumentContent", "URL", "DevtoolsLog", "MetaElements"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: artifacts.URL }, context);
        let isCharsetSet = false;
        if (mainResource.responseHeaders) {
          const contentTypeHeader = mainResource.responseHeaders.find((header) => header.name.toLowerCase() === CONTENT_TYPE_HEADER);
          if (contentTypeHeader) {
            isCharsetSet = CHARSET_HTTP_REGEX2.test(contentTypeHeader.value);
          }
        }
        const BOM_FIRSTCHAR = 65279;
        isCharsetSet = isCharsetSet || artifacts.MainDocumentContent.charCodeAt(0) === BOM_FIRSTCHAR;
        if (CHARSET_HTML_REGEX.test(artifacts.MainDocumentContent.slice(0, 1024))) {
          isCharsetSet = isCharsetSet || artifacts.MetaElements.some((meta) => {
            return meta.charset && IANA_REGEX.test(meta.charset) || meta.httpEquiv === "content-type" && meta.content && CHARSET_HTTP_REGEX2.test(meta.content);
          });
        }
        return {
          score: Number(isCharsetSet)
        };
      }
    };
    charset_default = CharsetDefined;
  }
});

// core/lib/lh-trace-processor.js
var LHTraceProcessor, lh_trace_processor_default;
var init_lh_trace_processor = __esm({
  "core/lib/lh-trace-processor.js"() {
    "use strict";
    init_process_global();
    init_lh_error();
    init_trace_processor();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    LHTraceProcessor = class extends TraceProcessor {
      static {
        __name(this, "LHTraceProcessor");
      }
      /**
       * @return {Error}
       */
      static createNoNavstartError() {
        return new LighthouseError(LighthouseError.errors.NO_NAVSTART);
      }
      /**
       * This isn't currently used, but will be when the time origin of trace processing is changed.
       * @see {TraceProcessor.computeTimeOrigin}
       * @see https://github.com/GoogleChrome/lighthouse/pull/11253#discussion_r507985527
       * @return {Error}
       */
      static createNoResourceSendRequestError() {
        return new LighthouseError(LighthouseError.errors.NO_RESOURCE_REQUEST);
      }
      /**
       * @return {Error}
       */
      static createNoTracingStartedError() {
        return new LighthouseError(LighthouseError.errors.NO_TRACING_STARTED);
      }
      /**
       * @return {Error}
       */
      static createNoFirstContentfulPaintError() {
        return new LighthouseError(LighthouseError.errors.NO_FCP);
      }
    };
    lh_trace_processor_default = LHTraceProcessor;
  }
});

// core/computed/processed-trace.js
var ProcessedTrace, ProcessedTraceComputed;
var init_processed_trace = __esm({
  "core/computed/processed-trace.js"() {
    "use strict";
    init_process_global();
    init_computed_artifact();
    init_lh_trace_processor();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    ProcessedTrace = class {
      static {
        __name(this, "ProcessedTrace");
      }
      /**
        * @param {LH.Trace} trace
        * @return {Promise<LH.Artifacts.ProcessedTrace>}
       */
      static async compute_(trace) {
        return lh_trace_processor_default.processTrace(trace);
      }
    };
    ProcessedTraceComputed = makeComputedArtifact(ProcessedTrace, null);
  }
});

// core/audits/dobetterweb/doctype.js
var doctype_exports2 = {};
__export(doctype_exports2, {
  UIStrings: () => UIStrings101,
  default: () => doctype_default2
});
var UIStrings101, str_80, Doctype2, doctype_default2;
var init_doctype2 = __esm({
  "core/audits/dobetterweb/doctype.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    init_processed_trace();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings101 = {
      /** Title of a Lighthouse audit that provides detail on the doctype of a page. This descriptive title is shown to users when the pages's doctype is set to HTML. */
      title: "Page has the HTML doctype",
      /** Title of a Lighthouse audit that provides detail on the doctype of a page. This descriptive title is shown to users when the page's doctype is not set to HTML. */
      failureTitle: "Page lacks the HTML doctype, thus triggering quirks-mode",
      /** Description of a Lighthouse audit that tells the user why they should define an HTML doctype. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Specifying a doctype prevents the browser from switching to quirks-mode. [Learn more about the doctype declaration](https://developer.chrome.com/docs/lighthouse/best-practices/doctype/).",
      /** Explanatory message stating that the document has no doctype. */
      explanationNoDoctype: "Document must contain a doctype",
      /** Explanatory message stating that the document has wrong doctype that triggers `quirks-mode` */
      explanationWrongDoctype: "Document contains a `doctype` that triggers `quirks-mode`",
      /** Explanatory message stating that the document has wrong doctype that triggers `limited-quirks-mode` */
      explanationLimitedQuirks: "Document contains a `doctype` that triggers `limited-quirks-mode`",
      /** Explanatory message stating that the publicId field is not empty. */
      explanationPublicId: "Expected publicId to be an empty string",
      /** Explanatory message stating that the systemId field is not empty. */
      explanationSystemId: "Expected systemId to be an empty string",
      /** Explanatory message stating that the doctype is set, but is not "html" and is therefore invalid. */
      explanationBadDoctype: "Doctype name must be the string `html`"
    };
    str_80 = createIcuMessageFn({ url: "core/audits/dobetterweb/doctype.js" }.url, UIStrings101);
    Doctype2 = class extends Audit {
      static {
        __name(this, "Doctype");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "doctype",
          title: str_80(UIStrings101.title),
          failureTitle: str_80(UIStrings101.failureTitle),
          description: str_80(UIStrings101.description),
          requiredArtifacts: ["Doctype"],
          __internalOptionalArtifacts: ["InspectorIssues", "Trace"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        if (!artifacts.Doctype) {
          return {
            score: 0,
            explanation: str_80(UIStrings101.explanationNoDoctype)
          };
        }
        const doctypeName = artifacts.Doctype.name;
        const doctypePublicId = artifacts.Doctype.publicId;
        const doctypeSystemId = artifacts.Doctype.systemId;
        const compatMode = artifacts.Doctype.documentCompatMode;
        const trace = artifacts.Trace;
        let quirksModeIssues = [];
        if (trace && artifacts.InspectorIssues?.quirksModeIssue) {
          const processedTrace = await ProcessedTraceComputed.request(trace, context);
          const mainFrameId2 = processedTrace.mainFrameInfo.frameId;
          quirksModeIssues = artifacts.InspectorIssues.quirksModeIssue.filter((issue) => issue.frameId === mainFrameId2);
        }
        const isLimitedQuirksMode = quirksModeIssues.some((issue) => issue.isLimitedQuirksMode);
        if (compatMode === "CSS1Compat" && !isLimitedQuirksMode) {
          return {
            score: 1
          };
        }
        if (isLimitedQuirksMode) {
          return {
            score: 0,
            explanation: str_80(UIStrings101.explanationLimitedQuirks)
          };
        }
        if (doctypePublicId !== "") {
          return {
            score: 0,
            explanation: str_80(UIStrings101.explanationPublicId)
          };
        }
        if (doctypeSystemId !== "") {
          return {
            score: 0,
            explanation: str_80(UIStrings101.explanationSystemId)
          };
        }
        if (doctypeName !== "html") {
          return {
            score: 0,
            explanation: str_80(UIStrings101.explanationBadDoctype)
          };
        }
        return {
          score: 0,
          explanation: str_80(UIStrings101.explanationWrongDoctype)
        };
      }
    };
    doctype_default2 = Doctype2;
  }
});

// core/audits/violation-audit.js
var ViolationAudit, violation_audit_default;
var init_violation_audit = __esm({
  "core/audits/violation-audit.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_js_bundles();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    ViolationAudit = class extends Audit {
      static {
        __name(this, "ViolationAudit");
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @param {RegExp} pattern
       * @return {Promise<Array<{source: LH.Audit.Details.SourceLocationValue}>>}
       */
      static async getViolationResults(artifacts, context, pattern) {
        const bundles = await JSBundlesComputed.request(artifacts, context);
        function filterUndefined(value) {
          return value !== void 0;
        }
        __name(filterUndefined, "filterUndefined");
        const seen = /* @__PURE__ */ new Set();
        return artifacts.ConsoleMessages.filter((entry) => entry.url && entry.source === "violation" && pattern.test(entry.text)).map((entry) => {
          const bundle = bundles.find((bundle2) => bundle2.script.scriptId === entry.scriptId);
          return Audit.makeSourceLocationFromConsoleMessage(entry, bundle);
        }).filter(filterUndefined).filter((source) => {
          const key = `${source.url}!${source.line}!${source.column}`;
          if (seen.has(key)) return false;
          seen.add(key);
          return true;
        }).map((source) => ({ source }));
      }
    };
    violation_audit_default = ViolationAudit;
  }
});

// core/audits/dobetterweb/geolocation-on-start.js
var geolocation_on_start_exports = {};
__export(geolocation_on_start_exports, {
  UIStrings: () => UIStrings102,
  default: () => geolocation_on_start_default
});
var UIStrings102, str_81, GeolocationOnStart, geolocation_on_start_default;
var init_geolocation_on_start = __esm({
  "core/audits/dobetterweb/geolocation-on-start.js"() {
    "use strict";
    init_process_global();
    init_violation_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings102 = {
      /** Title of a Lighthouse audit that provides detail on geolocation permission requests while the page is loading. This descriptive title is shown to users when the page does not ask for geolocation permissions on load. */
      title: "Avoids requesting the geolocation permission on page load",
      /** Title of a Lighthouse audit that provides detail on geolocation permissions requests. This descriptive title is shown to users when the page does ask for geolocation permissions on load. */
      failureTitle: "Requests the geolocation permission on page load",
      /** Description of a Lighthouse audit that tells the user why they should not ask for geolocation permissions on load. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Users are mistrustful of or confused by sites that request their location without context. Consider tying the request to a user action instead. [Learn more about the geolocation permission](https://developer.chrome.com/docs/lighthouse/best-practices/geolocation-on-start/). Also consider using the [`<geolocation>` element](https://developer.chrome.com/blog/geolocation-html-element)."
    };
    str_81 = createIcuMessageFn({ url: "core/audits/dobetterweb/geolocation-on-start.js" }.url, UIStrings102);
    GeolocationOnStart = class extends violation_audit_default {
      static {
        __name(this, "GeolocationOnStart");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "geolocation-on-start",
          title: str_81(UIStrings102.title),
          failureTitle: str_81(UIStrings102.failureTitle),
          description: str_81(UIStrings102.description),
          supportedModes: ["navigation"],
          requiredArtifacts: ["ConsoleMessages", "SourceMaps", "Scripts"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const results = await violation_audit_default.getViolationResults(artifacts, context, /geolocation/);
        const headings = [
          { key: "source", valueType: "source-location", label: str_81(UIStrings.columnSource) }
        ];
        const details = violation_audit_default.makeTableDetails(headings, results);
        return {
          score: Number(results.length === 0),
          details
        };
      }
    };
    geolocation_on_start_default = GeolocationOnStart;
  }
});

// core/audits/dobetterweb/inspector-issues.js
var inspector_issues_exports2 = {};
__export(inspector_issues_exports2, {
  UIStrings: () => UIStrings103,
  default: () => inspector_issues_default2
});
var UIStrings103, str_82, IssuesPanelEntries, inspector_issues_default2;
var init_inspector_issues2 = __esm({
  "core/audits/dobetterweb/inspector-issues.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings103 = {
      /** Title of a Lighthouse audit that provides detail on various types of problems with a website, like security or network errors. This descriptive title is shown to users when no issues were logged into the Chrome DevTools Issues panel. */
      title: "No issues in the `Issues` panel in Chrome Devtools",
      /** Title of a Lighthouse audit that provides detail on various types of problems with a website, like security or network errors. This descriptive title is shown to users when issues are detected and logged into the Chrome DevTools Issues panel. */
      failureTitle: "Issues were logged in the `Issues` panel in Chrome Devtools",
      /* eslint-disable max-len */
      /** Description of a Lighthouse audit that tells the user why issues being logged to the Chrome DevTools Issues panel are a cause for concern and so should be fixed. This is displayed after a user expands the section to see more. No character length limits. */
      description: "Issues logged to the `Issues` panel in Chrome Devtools indicate unresolved problems. They can come from network request failures, insufficient security controls, and other browser concerns. Open up the Issues panel in Chrome DevTools for more details on each issue.",
      /* eslint-enable max-len */
      /** Table column header for the types of problems observed in a website, like security or network errors. */
      columnIssueType: "Issue type",
      /** The type of an Issue in Chrome DevTools when a resource is blocked due to the website's cross-origin policy. */
      issueTypeBlockedByResponse: "Blocked by cross-origin policy",
      /** The type of an Issue in Chrome DevTools when a site has large ads that use up a lot of the browser's resources. */
      issueTypeHeavyAds: "Heavy resource usage by ads"
    };
    str_82 = createIcuMessageFn({ url: "core/audits/dobetterweb/inspector-issues.js" }.url, UIStrings103);
    IssuesPanelEntries = class extends Audit {
      static {
        __name(this, "IssuesPanelEntries");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "inspector-issues",
          title: str_82(UIStrings103.title),
          failureTitle: str_82(UIStrings103.failureTitle),
          description: str_82(UIStrings103.description),
          requiredArtifacts: ["InspectorIssues"]
        };
      }
      /**
       * @param {Array<LH.Crdp.Audits.MixedContentIssueDetails>} mixedContentIssues
       * @return {LH.Audit.Details.TableItem}
       */
      static getMixedContentRow(mixedContentIssues) {
        const requestUrls = /* @__PURE__ */ new Set();
        for (const issue of mixedContentIssues) {
          const requestUrl = issue.request?.url || issue.mainResourceURL;
          requestUrls.add(requestUrl);
        }
        return {
          issueType: "Mixed content",
          subItems: {
            type: "subitems",
            items: Array.from(requestUrls).map((url) => ({ url }))
          }
        };
      }
      /**
       * @param {Array<LH.Crdp.Audits.CookieIssueDetails>} CookieIssues
       * @return {LH.Audit.Details.TableItem}
       */
      static getCookieRow(CookieIssues) {
        const requestUrls = /* @__PURE__ */ new Set();
        for (const issue of CookieIssues) {
          const requestUrl = issue.request?.url || issue.cookieUrl;
          if (requestUrl) {
            requestUrls.add(requestUrl);
          }
        }
        return {
          issueType: "Cookie",
          subItems: {
            type: "subitems",
            items: Array.from(requestUrls).map((url) => {
              return {
                url
              };
            })
          }
        };
      }
      /**
       * @param {Array<LH.Crdp.Audits.BlockedByResponseIssueDetails>} blockedByResponseIssues
       * @return {LH.Audit.Details.TableItem}
       */
      static getBlockedByResponseRow(blockedByResponseIssues) {
        const requestUrls = /* @__PURE__ */ new Set();
        for (const issue of blockedByResponseIssues) {
          const requestUrl = issue.request?.url;
          if (requestUrl) {
            requestUrls.add(requestUrl);
          }
        }
        return {
          issueType: str_82(UIStrings103.issueTypeBlockedByResponse),
          subItems: {
            type: "subitems",
            items: Array.from(requestUrls).map((url) => {
              return {
                url
              };
            })
          }
        };
      }
      /**
       * @param {Array<LH.Crdp.Audits.ContentSecurityPolicyIssueDetails>} cspIssues
       * @return {LH.Audit.Details.TableItem}
       */
      static getContentSecurityPolicyRow(cspIssues) {
        const requestUrls = /* @__PURE__ */ new Set();
        for (const issue of cspIssues) {
          const requestUrl = issue.blockedURL;
          if (requestUrl) {
            requestUrls.add(requestUrl);
          }
        }
        return {
          issueType: "Content security policy",
          subItems: {
            type: "subitems",
            items: Array.from(requestUrls).map((url) => {
              return {
                url
              };
            })
          }
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const headings = [
          /* eslint-disable max-len */
          { key: "issueType", valueType: "text", subItemsHeading: { key: "url", valueType: "url" }, label: str_82(UIStrings103.columnIssueType) }
          /* eslint-enable max-len */
        ];
        const issues = artifacts.InspectorIssues;
        const items = [];
        if (issues.mixedContentIssue?.length) {
          items.push(this.getMixedContentRow(issues.mixedContentIssue));
        }
        if (issues.cookieIssue?.length) {
          items.push(this.getCookieRow(issues.cookieIssue));
        }
        if (issues.blockedByResponseIssue?.length) {
          items.push(this.getBlockedByResponseRow(issues.blockedByResponseIssue));
        }
        if (issues.heavyAdIssue?.length) {
          items.push({ issueType: str_82(UIStrings103.issueTypeHeavyAds) });
        }
        if (issues.contentSecurityPolicyIssue?.length) {
          items.push(this.getContentSecurityPolicyRow(issues.contentSecurityPolicyIssue));
        }
        return {
          score: items.length > 0 ? 0 : 1,
          details: Audit.makeTableDetails(headings, items)
        };
      }
    };
    inspector_issues_default2 = IssuesPanelEntries;
  }
});

// core/audits/dobetterweb/js-libraries.js
var js_libraries_exports = {};
__export(js_libraries_exports, {
  UIStrings: () => UIStrings104,
  default: () => js_libraries_default
});
var UIStrings104, str_83, JsLibrariesAudit, js_libraries_default;
var init_js_libraries = __esm({
  "core/audits/dobetterweb/js-libraries.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings104 = {
      /** Title of a Lighthouse audit that provides detail on the Javascript libraries that are used on the page. */
      title: "Detected JavaScript libraries",
      /** Description of a Lighthouse audit that tells the user what this audit is detecting. This is displayed after a user expands the section to see more. No character length limits. */
      description: "All front-end JavaScript libraries detected on the page. [Learn more about this JavaScript library detection diagnostic audit](https://developer.chrome.com/docs/lighthouse/best-practices/js-libraries/).",
      /** Label for a column in a data table; entries will be the version numbers of the detected Javascript libraries.  */
      columnVersion: "Version"
    };
    str_83 = createIcuMessageFn({ url: "core/audits/dobetterweb/js-libraries.js" }.url, UIStrings104);
    JsLibrariesAudit = class extends Audit {
      static {
        __name(this, "JsLibrariesAudit");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "js-libraries",
          title: str_83(UIStrings104.title),
          scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
          description: str_83(UIStrings104.description),
          requiredArtifacts: ["Stacks"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const libDetails = artifacts.Stacks.filter((stack) => stack.detector === "js").filter((stack) => !stack.id.endsWith("-fast")).map((stack) => ({
          name: stack.name,
          version: stack.version,
          npm: stack.npm
        }));
        const headings = [
          { key: "name", valueType: "text", label: str_83(UIStrings.columnName) },
          { key: "version", valueType: "text", label: str_83(UIStrings104.columnVersion) }
        ];
        const details = Audit.makeTableDetails(headings, libDetails);
        const debugData = {
          type: (
            /** @type {const} */
            "debugdata"
          ),
          stacks: artifacts.Stacks.map((stack) => {
            return {
              id: stack.id,
              version: stack.version
            };
          })
        };
        if (!libDetails.length) {
          return { score: null, notApplicable: true };
        }
        return {
          score: 1,
          // Always pass for now.
          details: {
            ...details,
            debugData
          }
        };
      }
    };
    js_libraries_default = JsLibrariesAudit;
  }
});

// core/audits/dobetterweb/notification-on-start.js
var notification_on_start_exports = {};
__export(notification_on_start_exports, {
  UIStrings: () => UIStrings105,
  default: () => notification_on_start_default
});
var UIStrings105, str_84, NotificationOnStart, notification_on_start_default;
var init_notification_on_start = __esm({
  "core/audits/dobetterweb/notification-on-start.js"() {
    "use strict";
    init_process_global();
    init_violation_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings105 = {
      /** Title of a Lighthouse audit that provides detail on the page's notification permission requests. This descriptive title is shown to users when the page does not ask for notification permission on load. */
      title: "Avoids requesting the notification permission on page load",
      /** Title of a Lighthouse audit that provides detail on the page's notification permission requests. This descriptive title is shown to users when the page does ask for notification permission on load. */
      failureTitle: "Requests the notification permission on page load",
      /** Description of a Lighthouse audit that tells the user why they should not ask for notification permission on load. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Users are mistrustful of or confused by sites that request to send notifications without context. Consider tying the request to user gestures instead. [Learn more about responsibly getting permission for notifications](https://developer.chrome.com/docs/lighthouse/best-practices/notification-on-start/)."
    };
    str_84 = createIcuMessageFn({ url: "core/audits/dobetterweb/notification-on-start.js" }.url, UIStrings105);
    NotificationOnStart = class extends violation_audit_default {
      static {
        __name(this, "NotificationOnStart");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "notification-on-start",
          title: str_84(UIStrings105.title),
          failureTitle: str_84(UIStrings105.failureTitle),
          description: str_84(UIStrings105.description),
          supportedModes: ["navigation"],
          requiredArtifacts: ["ConsoleMessages", "SourceMaps", "Scripts"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const results = await violation_audit_default.getViolationResults(artifacts, context, /notification permission/);
        const headings = [
          { key: "source", valueType: "source-location", label: str_84(UIStrings.columnSource) }
        ];
        const details = violation_audit_default.makeTableDetails(headings, results);
        return {
          score: Number(results.length === 0),
          details
        };
      }
    };
    notification_on_start_default = NotificationOnStart;
  }
});

// core/audits/dobetterweb/paste-preventing-inputs.js
var paste_preventing_inputs_exports = {};
__export(paste_preventing_inputs_exports, {
  UIStrings: () => UIStrings106,
  default: () => paste_preventing_inputs_default
});
var UIStrings106, str_85, PastePreventingInputsAudit, paste_preventing_inputs_default;
var init_paste_preventing_inputs = __esm({
  "core/audits/dobetterweb/paste-preventing-inputs.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings106 = {
      /** Title of a Lighthouse audit that provides detail on the ability to paste into input fields. This descriptive title is shown to users when the page allows pasting of content into input fields. */
      title: "Allows users to paste into input fields",
      /** Title of a Lighthouse audit that provides detail on the ability to paste into input fields. This descriptive title is shown to users when the page does not allow pasting of content into input fields. */
      failureTitle: "Prevents users from pasting into input fields",
      /** Description of a Lighthouse audit that tells the user why they should allow pasting of content into input fields. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      description: "Preventing input pasting is a bad practice for the UX, and weakens security by blocking password managers.[Learn more about user-friendly input fields](https://developer.chrome.com/docs/lighthouse/best-practices/paste-preventing-inputs/)."
    };
    str_85 = createIcuMessageFn({ url: "core/audits/dobetterweb/paste-preventing-inputs.js" }.url, UIStrings106);
    PastePreventingInputsAudit = class extends Audit {
      static {
        __name(this, "PastePreventingInputsAudit");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "paste-preventing-inputs",
          title: str_85(UIStrings106.title),
          failureTitle: str_85(UIStrings106.failureTitle),
          description: str_85(UIStrings106.description),
          requiredArtifacts: ["Inputs"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const inputsWithPreventsPaste = artifacts.Inputs.inputs.filter((input) => input.preventsPaste);
        const items = [];
        inputsWithPreventsPaste.forEach((input) => {
          items.push({
            node: Audit.makeNodeItem(input.node),
            type: input.type
          });
        });
        const headings = [
          { key: "node", valueType: "node", label: str_85(UIStrings.columnFailingElem) }
        ];
        return {
          score: Number(inputsWithPreventsPaste.length === 0),
          details: Audit.makeTableDetails(headings, items)
        };
      }
    };
    paste_preventing_inputs_default = PastePreventingInputsAudit;
  }
});

// core/audits/errors-in-console.js
var errors_in_console_exports = {};
__export(errors_in_console_exports, {
  UIStrings: () => UIStrings107,
  default: () => errors_in_console_default
});
var KB, MAX_CONSOLE_ERRORS, UIStrings107, str_86, ErrorLogs, errors_in_console_default;
var init_errors_in_console = __esm({
  "core/audits/errors-in-console.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_audit();
    init_js_bundles();
    init_i18n();
    init_util();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    KB = 1024;
    MAX_CONSOLE_ERRORS = 1e3;
    UIStrings107 = {
      /** Title of a Lighthouse audit that provides detail on browser errors. This descriptive title is shown to users when no browser errors were logged into the devtools console. */
      title: "No browser errors logged to the console",
      /** Title of a Lighthouse audit that provides detail on browser errors. This descriptive title is shown to users when browser errors occurred and were logged into the devtools console. */
      failureTitle: "Browser errors were logged to the console",
      /** Description of a Lighthouse audit that tells the user why errors being logged to the devtools console are a cause for concern and so should be fixed. This is displayed after a user expands the section to see more. No character length limits. */
      description: "Errors logged to the console indicate unresolved problems. They can come from network request failures and other browser concerns. [Learn more about this errors in console diagnostic audit](https://developer.chrome.com/docs/lighthouse/best-practices/errors-in-console/)"
    };
    str_86 = createIcuMessageFn({ url: "core/audits/errors-in-console.js" }.url, UIStrings107);
    ErrorLogs = class _ErrorLogs extends Audit {
      static {
        __name(this, "ErrorLogs");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "errors-in-console",
          title: str_86(UIStrings107.title),
          failureTitle: str_86(UIStrings107.failureTitle),
          description: str_86(UIStrings107.description),
          requiredArtifacts: ["ConsoleMessages", "SourceMaps", "Scripts"]
        };
      }
      /** @return {AuditOptions} */
      static get defaultOptions() {
        return { ignoredPatterns: ["ERR_BLOCKED_BY_CLIENT.Inspector"] };
      }
      /**
       * @template {{description: string | undefined}} T
       * @param {Array<T>} items
       * @param {AuditOptions} options
       * @return {Array<T>}
       */
      static filterAccordingToOptions(items, options) {
        const { ignoredPatterns, ...restOfOptions } = options;
        const otherOptionKeys = Object.keys(restOfOptions);
        if (otherOptionKeys.length) lighthouse_logger_default.warn(this.meta.id, "Unrecognized options", otherOptionKeys);
        if (!ignoredPatterns) return items;
        return items.filter(({ description }) => {
          if (!description) return true;
          for (const pattern of ignoredPatterns) {
            if (pattern instanceof RegExp && pattern.test(description)) return false;
            if (typeof pattern === "string" && description.includes(pattern)) return false;
          }
          return true;
        });
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const auditOptions = context.options;
        const bundles = await JSBundlesComputed.request(artifacts, context);
        const consoleRows = artifacts.ConsoleMessages.filter((item) => item.level === "error").map((item) => {
          const bundle = bundles.find((bundle2) => bundle2.script.scriptId === item.scriptId);
          return {
            source: item.source,
            description: item.text ? Util.truncate(item.text, 10 * KB) : void 0,
            sourceLocation: Audit.makeSourceLocationFromConsoleMessage(item, bundle)
          };
        }).slice(0, MAX_CONSOLE_ERRORS);
        const tableRows = _ErrorLogs.filterAccordingToOptions(consoleRows, auditOptions).sort((a, b) => (a.description || "").localeCompare(b.description || ""));
        const headings = [
          /* eslint-disable max-len */
          { key: "sourceLocation", valueType: "source-location", label: str_86(UIStrings.columnSource) },
          { key: "description", valueType: "code", label: str_86(UIStrings.columnDescription) }
          /* eslint-enable max-len */
        ];
        const details = Audit.makeTableDetails(headings, tableRows);
        const numErrors = tableRows.length;
        return {
          score: Number(numErrors === 0),
          details
        };
      }
    };
    errors_in_console_default = ErrorLogs;
  }
});

// core/audits/has-hsts.js
var has_hsts_exports = {};
__export(has_hsts_exports, {
  UIStrings: () => UIStrings108,
  default: () => has_hsts_default
});
var UIStrings108, str_87, HasHsts, has_hsts_default;
var init_has_hsts = __esm({
  "core/audits/has-hsts.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_main_resource();
    init_i18n();
    /**
     * @license
     * Copyright 2024 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings108 = {
      /** Title of a Lighthouse audit that evaluates the security of a page's HSTS header. "HSTS" stands for "HTTP Strict Transport Security". */
      title: "Use a strong HSTS policy",
      /** Description of a Lighthouse audit that evaluates the security of a page's HSTS header. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. "HSTS" stands for "HTTP Strict Transport Security". */
      description: "Deployment of the HSTS header significantly reduces the risk of downgrading HTTP connections and eavesdropping attacks. A rollout in stages, starting with a low max-age is recommended. [Learn more about using a strong HSTS policy.](https://developer.chrome.com/docs/lighthouse/best-practices/has-hsts)",
      /** Summary text for the results of a Lighthouse audit that evaluates the HSTS header. This is displayed if no HSTS header is deployed. "HSTS" stands for "HTTP Strict Transport Security". */
      noHsts: "No HSTS header found",
      /** Summary text for the results of a Lighthouse audit that evaluates the HSTS header. This is displayed if the preload directive is missing. "HSTS" stands for "HTTP Strict Transport Security". */
      noPreload: "No `preload` directive found",
      /** Summary text for the results of a Lighthouse audit that evaluates the HSTS header. This is displayed if the includeSubDomains directive is missing. "HSTS" stands for "HTTP Strict Transport Security". */
      noSubdomain: "No `includeSubDomains` directive found",
      /** Summary text for the results of a Lighthouse audit that evaluates the HSTS header. This is displayed if the max-age directive is missing. "HSTS" stands for "HTTP Strict Transport Security". */
      noMaxAge: "No `max-age` directive",
      /** Summary text for the results of a Lighthouse audit that evaluates the HSTS header. This is displayed if the provided duration for the max-age directive is too low. "HSTS" stands for "HTTP Strict Transport Security". */
      lowMaxAge: "`max-age` is too low",
      /** Table item value calling out the presence of a syntax error. */
      invalidSyntax: "Invalid syntax",
      /** Label for a column in a data table; entries will be a directive of the HSTS header. "HSTS" stands for "HTTP Strict Transport Security". */
      columnDirective: "Directive",
      /** Label for a column in a data table; entries will be the severity of an issue with the HSTS header. "HSTS" stands for "HTTP Strict Transport Security". */
      columnSeverity: "Severity"
    };
    str_87 = createIcuMessageFn({ url: "core/audits/has-hsts.js" }.url, UIStrings108);
    HasHsts = class extends Audit {
      static {
        __name(this, "HasHsts");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "has-hsts",
          scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
          title: str_87(UIStrings108.title),
          description: str_87(UIStrings108.description),
          requiredArtifacts: ["DevtoolsLog", "URL"],
          supportedModes: ["navigation"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<string[]>}
       */
      static async getRawHsts(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: artifacts.URL }, context);
        let hstsHeaders = mainResource.responseHeaders.filter((h) => {
          return h.name.toLowerCase() === "strict-transport-security";
        }).flatMap((h) => h.value.split(";"));
        hstsHeaders = hstsHeaders.map((v) => v.toLowerCase().replace(/\s/g, ""));
        return hstsHeaders;
      }
      /**
       * @param {string} hstsDirective
       * @param {LH.IcuMessage | string} findingDescription
       * @param {LH.IcuMessage=} severity
       * @return {LH.Audit.Details.TableItem}
       */
      static findingToTableItem(hstsDirective, findingDescription, severity) {
        return {
          directive: hstsDirective,
          description: findingDescription,
          severity
        };
      }
      /**
       * @param {string[]} hstsHeaders
       * @return {{score: number, results: LH.Audit.Details.TableItem[]}}
       */
      static constructResults(hstsHeaders) {
        const rawHsts = [...hstsHeaders];
        const allowedDirectives = ["max-age", "includesubdomains", "preload"];
        const violations = [];
        const warnings = [];
        const syntax = [];
        if (!rawHsts.length) {
          return {
            score: 0,
            results: [{
              severity: str_87(UIStrings.itemSeverityHigh),
              description: str_87(UIStrings108.noHsts),
              directive: void 0
            }]
          };
        }
        if (!hstsHeaders.toString().includes("max-age")) {
          violations.push({
            severity: str_87(UIStrings.itemSeverityHigh),
            description: str_87(UIStrings108.noMaxAge),
            directive: "max-age"
          });
        }
        if (!hstsHeaders.toString().includes("includesubdomains")) {
          warnings.push({
            severity: str_87(UIStrings.itemSeverityMedium),
            description: str_87(UIStrings108.noSubdomain),
            directive: "includeSubDomains"
          });
        }
        if (!hstsHeaders.toString().includes("preload")) {
          warnings.push({
            severity: str_87(UIStrings.itemSeverityMedium),
            description: str_87(UIStrings108.noPreload),
            directive: "preload"
          });
        }
        for (const actualDirective of hstsHeaders) {
          if (actualDirective.includes("max-age") && parseInt(actualDirective.split("=")[1], 10) < 31536e3) {
            violations.push({
              severity: str_87(UIStrings.itemSeverityHigh),
              description: str_87(UIStrings108.lowMaxAge),
              directive: "max-age"
            });
          }
          if (!allowedDirectives.includes(actualDirective) && !actualDirective.includes("max-age")) {
            syntax.push({
              severity: str_87(UIStrings.itemSeverityLow),
              description: str_87(UIStrings108.invalidSyntax),
              directive: actualDirective
            });
          }
        }
        const results = [
          ...violations.map(
            (f) => this.findingToTableItem(
              f.directive,
              f.description,
              str_87(UIStrings.itemSeverityHigh)
            )
          ),
          ...warnings.map(
            (f) => this.findingToTableItem(
              f.directive,
              f.description,
              str_87(UIStrings.itemSeverityMedium)
            )
          ),
          ...syntax.map(
            (f) => this.findingToTableItem(
              f.directive,
              f.description,
              str_87(UIStrings.itemSeverityLow)
            )
          )
        ];
        return { score: violations.length || syntax.length ? 0 : 1, results };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const hstsHeaders = await this.getRawHsts(artifacts, context);
        const { score, results } = this.constructResults(hstsHeaders);
        const headings = [
          /* eslint-disable max-len */
          { key: "description", valueType: "text", subItemsHeading: { key: "description" }, label: str_87(UIStrings.columnDescription) },
          { key: "directive", valueType: "code", subItemsHeading: { key: "directive" }, label: str_87(UIStrings108.columnDirective) },
          { key: "severity", valueType: "text", subItemsHeading: { key: "severity" }, label: str_87(UIStrings108.columnSeverity) }
          /* eslint-enable max-len */
        ];
        const details = Audit.makeTableDetails(headings, results);
        return {
          score,
          notApplicable: !results.length,
          details
        };
      }
    };
    has_hsts_default = HasHsts;
  }
});

// core/audits/image-aspect-ratio.js
var image_aspect_ratio_exports = {};
__export(image_aspect_ratio_exports, {
  UIStrings: () => UIStrings109,
  default: () => image_aspect_ratio_default
});
var UIStrings109, str_88, THRESHOLD_PX, ImageAspectRatio, image_aspect_ratio_default;
var init_image_aspect_ratio = __esm({
  "core/audits/image-aspect-ratio.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_url_utils();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings109 = {
      /** Title of a Lighthouse audit that provides detail on the aspect ratios of all images on the page. This descriptive title is shown to users when all images use correct aspect ratios. */
      title: "Displays images with correct aspect ratio",
      /** Title of a Lighthouse audit that provides detail on the aspect ratios of all images on the page. This descriptive title is shown to users when not all images use correct aspect ratios. */
      failureTitle: "Displays images with incorrect aspect ratio",
      /** Description of a Lighthouse audit that tells the user why they should maintain the correct aspect ratios for all images. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Image display dimensions should match natural aspect ratio. [Learn more about image aspect ratio](https://developer.chrome.com/docs/lighthouse/best-practices/image-aspect-ratio/).",
      /**  Label for a column in a data table; entries in the column will be the numeric aspect ratio of an image as displayed in a web page. */
      columnDisplayed: "Aspect Ratio (Displayed)",
      /**  Label for a column in a data table; entries in the column will be the numeric aspect ratio of the raw (actual) image. */
      columnActual: "Aspect Ratio (Actual)"
    };
    str_88 = createIcuMessageFn({ url: "core/audits/image-aspect-ratio.js" }.url, UIStrings109);
    THRESHOLD_PX = 2;
    ImageAspectRatio = class _ImageAspectRatio extends Audit {
      static {
        __name(this, "ImageAspectRatio");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "image-aspect-ratio",
          title: str_88(UIStrings109.title),
          failureTitle: str_88(UIStrings109.failureTitle),
          description: str_88(UIStrings109.description),
          requiredArtifacts: ["ImageElements"]
        };
      }
      /**
       * @param {WellDefinedImage} image
       * @return {{url: string, node: LH.Audit.Details.NodeValue, displayedAspectRatio: string, actualAspectRatio: string, doRatiosMatch: boolean}}
       */
      static computeAspectRatios(image) {
        const url = url_utils_default.elideDataURI(image.src);
        const actualAspectRatio = image.naturalDimensions.width / image.naturalDimensions.height;
        const displayedAspectRatio = image.displayedWidth / image.displayedHeight;
        const targetDisplayHeight = image.displayedWidth / actualAspectRatio;
        const targetDisplayWidth = image.displayedHeight * actualAspectRatio;
        const doRatiosMatch = targetDisplayHeight < targetDisplayWidth ? Math.abs(targetDisplayHeight - image.displayedHeight) < THRESHOLD_PX : Math.abs(targetDisplayWidth - image.displayedWidth) < THRESHOLD_PX;
        return {
          url,
          node: Audit.makeNodeItem(image.node),
          displayedAspectRatio: `${image.displayedWidth} x ${image.displayedHeight}
        (${displayedAspectRatio.toFixed(2)})`,
          actualAspectRatio: `${image.naturalDimensions.width} x ${image.naturalDimensions.height}
        (${actualAspectRatio.toFixed(2)})`,
          doRatiosMatch
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const images = artifacts.ImageElements;
        const results = [];
        images.filter((image) => {
          return !image.isCss && url_utils_default.guessMimeType(image.src) !== "image/svg+xml" && image.naturalDimensions && image.naturalDimensions.height > 5 && image.naturalDimensions.width > 5 && image.displayedWidth && image.displayedHeight && image.computedStyles.objectFit === "fill";
        }).forEach((image) => {
          const wellDefinedImage = (
            /** @type {WellDefinedImage} */
            image
          );
          const processed = _ImageAspectRatio.computeAspectRatios(wellDefinedImage);
          if (!processed.doRatiosMatch) results.push(processed);
        });
        const headings = [
          { key: "node", valueType: "node", label: "" },
          { key: "url", valueType: "url", label: str_88(UIStrings.columnURL) },
          { key: "displayedAspectRatio", valueType: "text", label: str_88(UIStrings109.columnDisplayed) },
          { key: "actualAspectRatio", valueType: "text", label: str_88(UIStrings109.columnActual) }
        ];
        return {
          score: Number(results.length === 0),
          details: Audit.makeTableDetails(headings, results)
        };
      }
    };
    image_aspect_ratio_default = ImageAspectRatio;
  }
});

// core/computed/image-records.js
var ImageRecords, ImageRecordsComputed;
var init_image_records = __esm({
  "core/computed/image-records.js"() {
    "use strict";
    init_process_global();
    init_url_utils();
    init_computed_artifact();
    /**
     * @license
     * Copyright 2021 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    ImageRecords = class _ImageRecords {
      static {
        __name(this, "ImageRecords");
      }
      /**
       * @param {LH.Artifacts.NetworkRequest[]} networkRecords
       */
      static indexNetworkRecords(networkRecords) {
        return networkRecords.reduce(
          (map, record) => {
            const isImage = /^image/.test(record.mimeType) || /\.(avif|webp)$/i.test(record.url);
            if (isImage && record.finished && record.statusCode === 200) {
              map[record.url] = record;
            }
            return map;
          },
          /** @type {Record<string, LH.Artifacts.NetworkRequest>} */
          {}
        );
      }
      /**
       * @param {{ImageElements: LH.Artifacts['ImageElements'], networkRecords: LH.Artifacts.NetworkRequest[]}} data
       * @return {Promise<LH.Artifacts.ImageElementRecord[]>}
       */
      static async compute_(data31) {
        const indexedNetworkRecords = _ImageRecords.indexNetworkRecords(data31.networkRecords);
        const imageRecords = [];
        for (const element of data31.ImageElements) {
          const networkRecord = indexedNetworkRecords[element.src];
          const mimeType = networkRecord?.mimeType;
          imageRecords.push({
            ...element,
            mimeType: mimeType ? mimeType : url_utils_default.guessMimeType(element.src)
          });
        }
        imageRecords.sort((a, b) => {
          const aRecord = indexedNetworkRecords[a.src] || {};
          const bRecord = indexedNetworkRecords[b.src] || {};
          return bRecord.resourceSize - aRecord.resourceSize;
        });
        return imageRecords;
      }
    };
    ImageRecordsComputed = makeComputedArtifact(ImageRecords, ["ImageElements", "networkRecords"]);
  }
});

// core/audits/image-size-responsive.js
var image_size_responsive_exports = {};
__export(image_size_responsive_exports, {
  UIStrings: () => UIStrings110,
  default: () => image_size_responsive_default
});
function isVisible(imageRect, viewportDimensions) {
  return (imageRect.bottom - imageRect.top) * (imageRect.right - imageRect.left) > 0 && imageRect.top <= viewportDimensions.innerHeight && imageRect.bottom >= 0 && imageRect.left <= viewportDimensions.innerWidth && imageRect.right >= 0;
}
function isSmallerThanViewport(imageRect, viewportDimensions) {
  return imageRect.bottom - imageRect.top <= viewportDimensions.innerHeight && imageRect.right - imageRect.left <= viewportDimensions.innerWidth;
}
function isCandidate(image, imageRecord) {
  const artisticImageRenderingValues = ["pixelated", "crisp-edges"];
  const densityDescriptorRegex = / \d+(\.\d+)?x/;
  if (image.displayedWidth <= 1 || image.displayedHeight <= 1) {
    return false;
  }
  if (!image.naturalDimensions || !image.naturalDimensions.width || !image.naturalDimensions.height) {
    return false;
  }
  if (imageRecord?.mimeType === "image/svg+xml") {
    return false;
  }
  if (url_utils_default.guessMimeType(image.src) === "image/svg+xml") {
    return false;
  }
  if (image.isCss) {
    return false;
  }
  if (image.computedStyles.objectFit !== "fill") {
    return false;
  }
  if (artisticImageRenderingValues.includes(image.computedStyles.imageRendering)) {
    return false;
  }
  if (densityDescriptorRegex.test(image.srcset)) {
    return false;
  }
  return true;
}
function imageHasNaturalDimensions(image) {
  return !!image.naturalDimensions;
}
function imageHasRightSize(image, DPR) {
  const [expectedWidth, expectedHeight] = allowedImageSize(image.displayedWidth, image.displayedHeight, DPR);
  return image.naturalDimensions.width >= expectedWidth && image.naturalDimensions.height >= expectedHeight;
}
function getResult(image, DPR) {
  const [expectedWidth, expectedHeight] = expectedImageSize(image.displayedWidth, image.displayedHeight, DPR);
  return {
    url: url_utils_default.elideDataURI(image.src),
    node: Audit.makeNodeItem(image.node),
    displayedSize: `${image.displayedWidth} x ${image.displayedHeight}`,
    actualSize: `${image.naturalDimensions.width} x ${image.naturalDimensions.height}`,
    actualPixels: image.naturalDimensions.width * image.naturalDimensions.height,
    expectedSize: `${expectedWidth} x ${expectedHeight}`,
    expectedPixels: expectedWidth * expectedHeight
  };
}
function allowedImageSize(displayedWidth, displayedHeight, DPR) {
  let factor = SMALL_IMAGE_FACTOR;
  if (displayedWidth > SMALL_IMAGE_THRESHOLD || displayedHeight > SMALL_IMAGE_THRESHOLD) {
    factor = LARGE_IMAGE_FACTOR;
  }
  const requiredDpr = quantizeDpr(DPR);
  const width = Math.ceil(factor * requiredDpr * displayedWidth);
  const height = Math.ceil(factor * requiredDpr * displayedHeight);
  return [width, height];
}
function expectedImageSize(displayedWidth, displayedHeight, DPR) {
  const width = Math.ceil(quantizeDpr(DPR) * displayedWidth);
  const height = Math.ceil(quantizeDpr(DPR) * displayedHeight);
  return [width, height];
}
function deduplicateResultsByUrl(results) {
  results.sort((a, b) => a.url === b.url ? 0 : a.url < b.url ? -1 : 1);
  const deduplicated = [];
  for (const r of results) {
    const previousResult = deduplicated[deduplicated.length - 1];
    if (previousResult && previousResult.url === r.url) {
      if (previousResult.expectedPixels < r.expectedPixels) {
        deduplicated[deduplicated.length - 1] = r;
      }
    } else {
      deduplicated.push(r);
    }
  }
  return deduplicated;
}
function sortResultsBySizeDelta(results) {
  return results.sort(
    (a, b) => b.expectedPixels - b.actualPixels - (a.expectedPixels - a.actualPixels)
  );
}
function quantizeDpr(dpr) {
  if (dpr >= 2) {
    return 2;
  }
  if (dpr >= 1.5) {
    return 1.5;
  }
  return 1;
}
var UIStrings110, str_89, SMALL_IMAGE_FACTOR, LARGE_IMAGE_FACTOR, SMALL_IMAGE_THRESHOLD, ImageSizeResponsive, image_size_responsive_default;
var init_image_size_responsive = __esm({
  "core/audits/image-size-responsive.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_image_records();
    init_network_records();
    init_url_utils();
    init_i18n();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings110 = {
      /** Title of a Lighthouse audit that provides detail on the size of visible images on the page. This descriptive title is shown to users when all images have correct sizes. */
      title: "Serves images with appropriate resolution",
      /** Title of a Lighthouse audit that provides detail on the size of visible images on the page. This descriptive title is shown to users when not all images have correct sizes. */
      failureTitle: "Serves images with low resolution",
      /** Description of a Lighthouse audit that tells the user why they should maintain an appropriate size for all images. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Image natural dimensions should be proportional to the display size and the pixel ratio to maximize image clarity. [Learn how to provide responsive images](https://web.dev/articles/serve-responsive-images).",
      /**  Label for a column in a data table; entries in the column will be a string representing the displayed size of the image. */
      columnDisplayed: "Displayed size",
      /**  Label for a column in a data table; entries in the column will be a string representing the actual size of the image. */
      columnActual: "Actual size",
      /**  Label for a column in a data table; entries in the column will be a string representing the expected size of the image. */
      columnExpected: "Expected size"
    };
    str_89 = createIcuMessageFn({ url: "core/audits/image-size-responsive.js" }.url, UIStrings110);
    SMALL_IMAGE_FACTOR = 1;
    LARGE_IMAGE_FACTOR = 0.75;
    SMALL_IMAGE_THRESHOLD = 64;
    __name(isVisible, "isVisible");
    __name(isSmallerThanViewport, "isSmallerThanViewport");
    __name(isCandidate, "isCandidate");
    __name(imageHasNaturalDimensions, "imageHasNaturalDimensions");
    __name(imageHasRightSize, "imageHasRightSize");
    __name(getResult, "getResult");
    __name(allowedImageSize, "allowedImageSize");
    __name(expectedImageSize, "expectedImageSize");
    __name(deduplicateResultsByUrl, "deduplicateResultsByUrl");
    __name(sortResultsBySizeDelta, "sortResultsBySizeDelta");
    ImageSizeResponsive = class extends Audit {
      static {
        __name(this, "ImageSizeResponsive");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "image-size-responsive",
          title: str_89(UIStrings110.title),
          failureTitle: str_89(UIStrings110.failureTitle),
          description: str_89(UIStrings110.description),
          requiredArtifacts: ["ImageElements", "ViewportDimensions"],
          __internalOptionalArtifacts: ["DevtoolsLog"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const DPR = artifacts.ViewportDimensions.devicePixelRatio;
        const imageRecordsByURL = /* @__PURE__ */ new Map();
        if (artifacts.DevtoolsLog) {
          const networkRecords = await NetworkRecordsComputed.request(artifacts.DevtoolsLog, context);
          const images = await ImageRecordsComputed.request({
            ImageElements: artifacts.ImageElements,
            networkRecords
          }, context);
          images.forEach((img) => imageRecordsByURL.set(img.src, img));
        }
        const results = Array.from(artifacts.ImageElements).filter((image) => isCandidate(image, imageRecordsByURL.get(image.src))).filter(imageHasNaturalDimensions).filter((image) => !imageHasRightSize(image, DPR)).filter((image) => isVisible(image.clientRect, artifacts.ViewportDimensions)).filter((image) => isSmallerThanViewport(image.clientRect, artifacts.ViewportDimensions)).map((image) => getResult(image, DPR));
        const headings = [
          { key: "node", valueType: "node", label: "" },
          { key: "url", valueType: "url", label: str_89(UIStrings.columnURL) },
          { key: "displayedSize", valueType: "text", label: str_89(UIStrings110.columnDisplayed) },
          { key: "actualSize", valueType: "text", label: str_89(UIStrings110.columnActual) },
          { key: "expectedSize", valueType: "text", label: str_89(UIStrings110.columnExpected) }
        ];
        const finalResults = sortResultsBySizeDelta(deduplicateResultsByUrl(results));
        return {
          score: Number(results.length === 0),
          details: Audit.makeTableDetails(headings, finalResults)
        };
      }
    };
    __name(quantizeDpr, "quantizeDpr");
    image_size_responsive_default = ImageSizeResponsive;
  }
});

// core/audits/is-on-https.js
var is_on_https_exports = {};
__export(is_on_https_exports, {
  UIStrings: () => UIStrings111,
  default: () => is_on_https_default
});
var UIStrings111, resolutionToString, str_90, HTTPS, is_on_https_default;
var init_is_on_https = __esm({
  "core/audits/is-on-https.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_url_utils();
    init_network_request();
    init_network_records();
    init_i18n();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings111 = {
      /** Title of a Lighthouse audit that provides detail on the useage of HTTPS on a page. This descriptive title is shown to users when all requests on a page are fufilled using HTTPS. */
      title: "Uses HTTPS",
      /** Title of a Lighthouse audit that provides detail on the useage of HTTPS on a page. This descriptive title is shown to users when some, or all, requests on the page use HTTP instead of HTTPS. */
      failureTitle: "Does not use HTTPS",
      /** Description of a Lighthouse audit that tells the user *why* HTTPS use *for all resources* is important. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "All sites should be protected with HTTPS, even ones that don't handle sensitive data. This includes avoiding [mixed content](https://developers.google.com/web/fundamentals/security/prevent-mixed-content/what-is-mixed-content), where some resources are loaded over HTTP despite the initial request being served over HTTPS. HTTPS prevents intruders from tampering with or passively listening in on the communications between your app and your users, and is a prerequisite for HTTP/2 and many new web platform APIs. [Learn more about HTTPS](https://developer.chrome.com/docs/lighthouse/pwa/is-on-https/).",
      /** [ICU Syntax] Label identifying the number of insecure network requests found by an audit of a web page. */
      displayValue: `{itemCount, plural,
    =1 {1 insecure request found}
    other {# insecure requests found}
    }`,
      /** Label for a column in a data table; entries in the column will be the URLs of insecure (non-HTTPS) network requests. */
      columnInsecureURL: "Insecure URL",
      /** Label for a column in a data table; entries in the column will be how the browser handled insecure (non-HTTPS) network requests. */
      columnResolution: "Request Resolution",
      /** Value for the resolution column in a data table; denotes that the insecure URL was allowed by the browser. */
      allowed: "Allowed",
      /** Value for the resolution column in a data table; denotes that the insecure URL was blocked by the browser. */
      blocked: "Blocked",
      /** Value for the resolution column in a data table; denotes that the insecure URL may be blocked by the browser in the future. */
      warning: "Allowed with warning",
      /** Value for the resolution column in a data table; denotes that the insecure URL was upgraded to a secure request by the browser. */
      upgraded: "Automatically upgraded to HTTPS"
    };
    resolutionToString = {
      MixedContentAutomaticallyUpgraded: UIStrings111.upgraded,
      MixedContentBlocked: UIStrings111.blocked,
      MixedContentWarning: UIStrings111.warning
    };
    str_90 = createIcuMessageFn({ url: "core/audits/is-on-https.js" }.url, UIStrings111);
    HTTPS = class extends Audit {
      static {
        __name(this, "HTTPS");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "is-on-https",
          title: str_90(UIStrings111.title),
          failureTitle: str_90(UIStrings111.failureTitle),
          description: str_90(UIStrings111.description),
          requiredArtifacts: ["DevtoolsLog", "InspectorIssues"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const devtoolsLogs = artifacts.DevtoolsLog;
        const networkRecords = await NetworkRecordsComputed.request(devtoolsLogs, context);
        const insecureURLs = networkRecords.filter((record) => !NetworkRequest.isSecureRequest(record)).map((record) => url_utils_default.elideDataURI(record.url));
        const items = Array.from(new Set(insecureURLs)).map((url) => ({ url, resolution: void 0 }));
        const headings = [
          { key: "url", valueType: "url", label: str_90(UIStrings111.columnInsecureURL) },
          { key: "resolution", valueType: "text", label: str_90(UIStrings111.columnResolution) }
        ];
        for (const details of artifacts.InspectorIssues.mixedContentIssue ?? []) {
          let item = items.find((item2) => item2.url === details.insecureURL);
          if (!item) {
            item = { url: details.insecureURL };
            items.push(item);
          }
          item.resolution = resolutionToString[details.resolutionStatus] ? str_90(resolutionToString[details.resolutionStatus]) : details.resolutionStatus;
        }
        for (const item of items) {
          if (!item.resolution) item.resolution = str_90(UIStrings111.allowed);
        }
        let displayValue;
        if (items.length > 0) {
          displayValue = str_90(UIStrings111.displayValue, { itemCount: items.length });
        }
        return {
          score: Number(items.length === 0),
          displayValue,
          details: Audit.makeTableDetails(headings, items)
        };
      }
    };
    is_on_https_default = HTTPS;
  }
});

// core/lib/rect-helpers.js
function addRectTopAndBottom({ x, y, width, height }) {
  return {
    left: x,
    top: y,
    right: x + width,
    bottom: y + height,
    width,
    height
  };
}
function getRectOverlapArea(rect1, rect2) {
  const rectYOverlap = Math.min(rect1.bottom, rect2.bottom) - Math.max(rect1.top, rect2.top);
  if (rectYOverlap <= 0) return 0;
  const rectXOverlap = Math.min(rect1.right, rect2.right) - Math.max(rect1.left, rect2.left);
  if (rectXOverlap <= 0) return 0;
  return rectXOverlap * rectYOverlap;
}
function getRectArea(rect) {
  return rect.width * rect.height;
}
function traceRectToLHRect(rect) {
  const rectArgs = {
    x: rect[0],
    y: rect[1],
    width: rect[2],
    height: rect[3]
  };
  return addRectTopAndBottom(rectArgs);
}
var init_rect_helpers = __esm({
  "core/lib/rect-helpers.js"() {
    "use strict";
    init_process_global();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    __name(addRectTopAndBottom, "addRectTopAndBottom");
    __name(getRectOverlapArea, "getRectOverlapArea");
    __name(getRectArea, "getRectArea");
    __name(traceRectToLHRect, "traceRectToLHRect");
  }
});

// core/lib/polyfill-dom-rect.js
function polyfillDOMRect() {
  (function(global2) {
    function number(v) {
      return v === void 0 ? 0 : Number(v);
    }
    __name(number, "number");
    function different(u, v) {
      return u !== v && !(isNaN(u) && isNaN(v));
    }
    __name(different, "different");
    function DOMRect(xArg, yArg, wArg, hArg) {
      let x, y, width, height, left, right, top, bottom;
      x = number(xArg);
      y = number(yArg);
      width = number(wArg);
      height = number(hArg);
      Object.defineProperties(this, {
        x: {
          get: /* @__PURE__ */ __name(function() {
            return x;
          }, "get"),
          set: /* @__PURE__ */ __name(function(newX) {
            if (different(x, newX)) {
              x = newX;
              left = right = void 0;
            }
          }, "set"),
          enumerable: true
        },
        y: {
          get: /* @__PURE__ */ __name(function() {
            return y;
          }, "get"),
          set: /* @__PURE__ */ __name(function(newY) {
            if (different(y, newY)) {
              y = newY;
              top = bottom = void 0;
            }
          }, "set"),
          enumerable: true
        },
        width: {
          get: /* @__PURE__ */ __name(function() {
            return width;
          }, "get"),
          set: /* @__PURE__ */ __name(function(newWidth) {
            if (different(width, newWidth)) {
              width = newWidth;
              left = right = void 0;
            }
          }, "set"),
          enumerable: true
        },
        height: {
          get: /* @__PURE__ */ __name(function() {
            return height;
          }, "get"),
          set: /* @__PURE__ */ __name(function(newHeight) {
            if (different(height, newHeight)) {
              height = newHeight;
              top = bottom = void 0;
            }
          }, "set"),
          enumerable: true
        },
        left: {
          get: /* @__PURE__ */ __name(function() {
            if (left === void 0) {
              left = x + Math.min(0, width);
            }
            return left;
          }, "get"),
          enumerable: true
        },
        right: {
          get: /* @__PURE__ */ __name(function() {
            if (right === void 0) {
              right = x + Math.max(0, width);
            }
            return right;
          }, "get"),
          enumerable: true
        },
        top: {
          get: /* @__PURE__ */ __name(function() {
            if (top === void 0) {
              top = y + Math.min(0, height);
            }
            return top;
          }, "get"),
          enumerable: true
        },
        bottom: {
          get: /* @__PURE__ */ __name(function() {
            if (bottom === void 0) {
              bottom = y + Math.max(0, height);
            }
            return bottom;
          }, "get"),
          enumerable: true
        }
      });
    }
    __name(DOMRect, "DOMRect");
    globalThis.DOMRect = DOMRect;
  })(globalThis);
}
var init_polyfill_dom_rect = __esm({
  "core/lib/polyfill-dom-rect.js"() {
    "use strict";
    init_process_global();
    __name(polyfillDOMRect, "polyfillDOMRect");
  }
});

// core/lib/trace-engine.js
var TraceProcessor3, TraceHandlers;
var init_trace_engine = __esm({
  "core/lib/trace-engine.js"() {
    "use strict";
    init_process_global();
    init_trace2();
    init_polyfill_dom_rect();
    polyfillDOMRect();
    TraceProcessor3 = Processor_exports.TraceProcessor;
    TraceHandlers = handlers_exports.ModelHandlers;
  }
});

// core/computed/metrics/cumulative-layout-shift.js
var RECENT_INPUT_WINDOW, CumulativeLayoutShift, CumulativeLayoutShiftComputed;
var init_cumulative_layout_shift = __esm({
  "core/computed/metrics/cumulative-layout-shift.js"() {
    "use strict";
    init_process_global();
    init_computed_artifact();
    init_processed_trace();
    init_rect_helpers();
    init_trace_engine();
    init_sentry();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    RECENT_INPUT_WINDOW = 500;
    CumulativeLayoutShift = class _CumulativeLayoutShift {
      static {
        __name(this, "CumulativeLayoutShift");
      }
      /**
       * Returns all LayoutShift events that had no recent input.
       * Only a `weightedScore` per event is returned. For non-main-frame events, this is
       * the only score that matters. For main-frame events, `weighted_score_delta === score`.
       * @see https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/layout_shift_tracker.cc;l=492-495;drc=de3b3a8a8839269c6b44403fa38a13a1ed12fed5
       * @param {LH.Artifacts.ProcessedTrace} processedTrace
       * @return {Array<LayoutShiftEvent>}
       */
      static getLayoutShiftEvents(processedTrace) {
        const layoutShiftEvents2 = [];
        let mustRespectHadRecentInput = false;
        let viewportChangeTs = processedTrace.timestamps.timeOrigin;
        const firstViewportEvent = processedTrace.frameEvents.find((event) => event.name === "viewport");
        if (firstViewportEvent) {
          viewportChangeTs = firstViewportEvent.ts;
        }
        for (const event of processedTrace.frameTreeEvents) {
          if (event.name !== "LayoutShift" || !event.args.data || event.args.data.is_main_frame === void 0) {
            continue;
          }
          if (event.args.data.weighted_score_delta === void 0) {
            throw new Error("CLS missing weighted_score_delta");
          }
          if (event.args.data.had_recent_input) {
            const timing = (event.ts - viewportChangeTs) / 1e3;
            if (timing > RECENT_INPUT_WINDOW || mustRespectHadRecentInput) continue;
          } else {
            mustRespectHadRecentInput = true;
          }
          layoutShiftEvents2.push({
            ts: event.ts,
            isMainFrame: event.args.data.is_main_frame,
            weightedScore: event.args.data.weighted_score_delta,
            impactedNodes: event.args.data.impacted_nodes,
            event
          });
        }
        return layoutShiftEvents2;
      }
      /**
       * Each layout shift event has a 'score' which is the amount added to the CLS as a result of the given shift(s).
       * We calculate the score per element by taking the 'score' of each layout shift event and
       * distributing it between all the nodes that were shifted, proportianal to the impact region of
       * each shifted element.
       *
       * @param {LayoutShiftEvent[]} layoutShiftEvents
       * @return {Map<number, number>}
       */
      static getImpactByNodeId(layoutShiftEvents2) {
        const impactByNodeId = /* @__PURE__ */ new Map();
        for (const event of layoutShiftEvents2) {
          if (!event.impactedNodes) continue;
          let totalAreaOfImpact = 0;
          const pixelsMovedPerNode = /* @__PURE__ */ new Map();
          for (const node of event.impactedNodes) {
            if (!node.node_id || !node.old_rect || !node.new_rect) continue;
            const oldRect = traceRectToLHRect(node.old_rect);
            const newRect = traceRectToLHRect(node.new_rect);
            const areaOfImpact = getRectArea(oldRect) + getRectArea(newRect) - getRectOverlapArea(oldRect, newRect);
            pixelsMovedPerNode.set(node.node_id, areaOfImpact);
            totalAreaOfImpact += areaOfImpact;
          }
          for (const [nodeId, pixelsMoved] of pixelsMovedPerNode.entries()) {
            let clsContribution = impactByNodeId.get(nodeId) || 0;
            clsContribution += pixelsMoved / totalAreaOfImpact * event.weightedScore;
            impactByNodeId.set(nodeId, clsContribution);
          }
        }
        return impactByNodeId;
      }
      /**
       * Calculates cumulative layout shifts per cluster (session) of LayoutShift
       * events -- where a new cluster is created when there's a gap of more than
       * 1000ms since the last LayoutShift event or the cluster is greater than
       * 5000ms long -- and returns the max LayoutShift score found.
       * @param {Array<LayoutShiftEvent>} layoutShiftEvents
       * @return {number}
       */
      static calculate(layoutShiftEvents2) {
        const gapMicroseconds = 1e6;
        const limitMicroseconds = 5e6;
        let maxScore = 0;
        let currentClusterScore = 0;
        let firstTs = Number.NEGATIVE_INFINITY;
        let prevTs = Number.NEGATIVE_INFINITY;
        for (const event of layoutShiftEvents2) {
          if (event.ts - firstTs > limitMicroseconds || event.ts - prevTs > gapMicroseconds) {
            firstTs = event.ts;
            currentClusterScore = 0;
          }
          prevTs = event.ts;
          currentClusterScore += event.weightedScore;
          maxScore = Math.max(maxScore, currentClusterScore);
        }
        return maxScore;
      }
      /**
       * @param {LayoutShiftEvent[]} allFrameShiftEvents
       * @param {LayoutShiftEvent[]} mainFrameShiftEvents
       */
      static async computeWithSharedTraceEngine(allFrameShiftEvents, mainFrameShiftEvents) {
        const run = /* @__PURE__ */ __name(async (events) => {
          const processor = new TraceProcessor3({
            LayoutShifts: TraceHandlers.LayoutShifts,
            Screenshots: TraceHandlers.Screenshots
          });
          await processor.parse(
            /** @type {import('@paulirish/trace_engine').Types.Events.Event[]} */
            events,
            {}
          );
          if (!processor.data) {
            throw new Error("null trace engine result");
          }
          return processor.data.LayoutShifts.sessionMaxScore;
        }, "run");
        const cumulativeLayoutShift = await run(allFrameShiftEvents.map((e) => e.event));
        const cumulativeLayoutShiftMainFrame = await run(mainFrameShiftEvents.map((e) => e.event));
        return { cumulativeLayoutShift, cumulativeLayoutShiftMainFrame };
      }
      /**
       * @param {LH.Trace} trace
       * @param {LH.Artifacts.ComputedContext} context
       * @return {Promise<{cumulativeLayoutShift: number, cumulativeLayoutShiftMainFrame: number, impactByNodeId: Map<number, number>, newEngineResult?: {cumulativeLayoutShift: number, cumulativeLayoutShiftMainFrame: number}, newEngineResultDiffered: boolean}>}
       */
      static async compute_(trace, context) {
        const processedTrace = await ProcessedTraceComputed.request(trace, context);
        const allFrameShiftEvents = _CumulativeLayoutShift.getLayoutShiftEvents(processedTrace);
        const impactByNodeId = _CumulativeLayoutShift.getImpactByNodeId(allFrameShiftEvents);
        const mainFrameShiftEvents = allFrameShiftEvents.filter((e) => e.isMainFrame);
        const cumulativeLayoutShift = _CumulativeLayoutShift.calculate(allFrameShiftEvents);
        const cumulativeLayoutShiftMainFrame = _CumulativeLayoutShift.calculate(mainFrameShiftEvents);
        let newEngineResult;
        let newEngineResultDiffered = false;
        let tryNewTraceEngine = true;
        if (allFrameShiftEvents.some((e) => e.event.args.data?.had_recent_input)) {
          tryNewTraceEngine = false;
        }
        if (tryNewTraceEngine) {
          try {
            newEngineResult = await this.computeWithSharedTraceEngine(allFrameShiftEvents, mainFrameShiftEvents);
            newEngineResultDiffered = newEngineResult.cumulativeLayoutShift !== cumulativeLayoutShift || newEngineResult.cumulativeLayoutShiftMainFrame !== cumulativeLayoutShiftMainFrame;
            if (newEngineResultDiffered) {
              newEngineResultDiffered = true;
              const expected = JSON.stringify({ cumulativeLayoutShift, cumulativeLayoutShiftMainFrame });
              const got = JSON.stringify(newEngineResult);
              throw new Error(`new trace engine differed. expected: ${expected}, got: ${got}`);
            }
          } catch (err) {
            console.error(err);
            newEngineResultDiffered = true;
            const error = new Error("Error when using new trace engine", { cause: err });
            if (global.expect) {
              throw error;
            } else {
              Sentry.captureException(error, {
                tags: { computed: "new-trace-engine" },
                level: "error",
                extra: {
                  // Not sure if Sentry handles `cause`, so just in case add the info in a second place.
                  errorMsg: err.toString()
                }
              });
            }
          }
        }
        return {
          cumulativeLayoutShift,
          cumulativeLayoutShiftMainFrame,
          impactByNodeId,
          newEngineResult,
          newEngineResultDiffered
        };
      }
    };
    CumulativeLayoutShiftComputed = makeComputedArtifact(CumulativeLayoutShift, null);
  }
});

// core/audits/metrics/cumulative-layout-shift.js
var cumulative_layout_shift_exports = {};
__export(cumulative_layout_shift_exports, {
  UIStrings: () => UIStrings112,
  default: () => cumulative_layout_shift_default
});
var UIStrings112, str_91, CumulativeLayoutShift2, cumulative_layout_shift_default;
var init_cumulative_layout_shift2 = __esm({
  "core/audits/metrics/cumulative-layout-shift.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_cumulative_layout_shift();
    init_i18n();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings112 = {
      /** Description of the Cumulative Layout Shift metric that indicates how much the page changes its layout while it loads. If big segments of the page shift their location during load, the Cumulative Layout Shift will be higher. This description is displayed within a tooltip when the user hovers on the metric name to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Cumulative Layout Shift measures the movement of visible elements within the viewport. [Learn more about the Cumulative Layout Shift metric](https://web.dev/articles/cls)."
    };
    str_91 = createIcuMessageFn({ url: "core/audits/metrics/cumulative-layout-shift.js" }.url, UIStrings112);
    CumulativeLayoutShift2 = class extends Audit {
      static {
        __name(this, "CumulativeLayoutShift");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "cumulative-layout-shift",
          title: str_91(UIStrings.cumulativeLayoutShiftMetric),
          description: str_91(UIStrings112.description),
          scoreDisplayMode: Audit.SCORING_MODES.NUMERIC,
          requiredArtifacts: ["Trace"]
        };
      }
      /**
       * @return {LH.Audit.ScoreOptions}
       */
      static get defaultOptions() {
        return {
          // https://web.dev/articles/cls#what_is_a_good_cls_score
          // This 0.1 target score was determined through both manual evaluation and large-scale analysis.
          // see https://www.desmos.com/calculator/ksp7q91nop
          p10: 0.1,
          median: 0.25
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const trace = artifacts.Trace;
        const { cumulativeLayoutShift, impactByNodeId, ...rest } = await CumulativeLayoutShiftComputed.request(trace, context);
        const details = {
          type: "debugdata",
          items: [rest]
        };
        const scoringOptions = { p10: context.options.p10, median: context.options.median };
        return {
          score: Audit.computeLogNormalScore(
            scoringOptions,
            cumulativeLayoutShift
          ),
          scoringOptions,
          numericValue: cumulativeLayoutShift,
          numericUnit: "unitless",
          displayValue: cumulativeLayoutShift.toLocaleString(context.settings.locale),
          details
        };
      }
    };
    cumulative_layout_shift_default = CumulativeLayoutShift2;
  }
});

// core/audits/origin-isolation.js
var origin_isolation_exports = {};
__export(origin_isolation_exports, {
  UIStrings: () => UIStrings113,
  default: () => origin_isolation_default
});
var UIStrings113, str_92, OriginIsolation, origin_isolation_default;
var init_origin_isolation = __esm({
  "core/audits/origin-isolation.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_main_resource();
    init_i18n();
    /**
     * @license
     * Copyright 2024 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings113 = {
      /** Title of a Lighthouse audit that evaluates the security of a page's COOP header for origin isolation. "COOP" stands for "Cross-Origin-Opener-Policy" and should not be translated. */
      title: "Ensure proper origin isolation with COOP",
      /** Description of a Lighthouse audit that evaluates the security of a page's COOP header for origin isolation. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. "COOP" stands for "Cross-Origin-Opener-Policy", neither should be translated. */
      description: "The Cross-Origin-Opener-Policy (COOP) can be used to isolate the top-level window from other documents such as pop-ups. [Learn more about deploying the COOP header.](https://web.dev/articles/why-coop-coep#coop)",
      /** Summary text for the results of a Lighthouse audit that evaluates the COOP header for origin isolation. This is displayed if no COOP header is deployed. "COOP" stands for "Cross-Origin-Opener-Policy" and should not be translated. */
      noCoop: "No COOP header found",
      /** Table item value calling out the presence of a syntax error. */
      invalidSyntax: "Invalid syntax",
      /** Label for a column in a data table; entries will be a directive of the COOP header. "COOP" stands for "Cross-Origin-Opener-Policy". */
      columnDirective: "Directive",
      /** Label for a column in a data table; entries will be the severity of an issue with the COOP header. "COOP" stands for "Cross-Origin-Opener-Policy". */
      columnSeverity: "Severity"
    };
    str_92 = createIcuMessageFn({ url: "core/audits/origin-isolation.js" }.url, UIStrings113);
    OriginIsolation = class extends Audit {
      static {
        __name(this, "OriginIsolation");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "origin-isolation",
          scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
          title: str_92(UIStrings113.title),
          description: str_92(UIStrings113.description),
          requiredArtifacts: ["DevtoolsLog", "URL"],
          supportedModes: ["navigation"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<string[]>}
       */
      static async getRawCoop(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: artifacts.URL }, context);
        let coopHeaders = mainResource.responseHeaders.filter((h) => {
          return h.name.toLowerCase() === "cross-origin-opener-policy";
        }).flatMap((h) => h.value);
        coopHeaders = coopHeaders.map((v) => v.toLowerCase().replace(/\s/g, ""));
        return coopHeaders;
      }
      /**
       * @param {string | undefined} coopDirective
       * @param {LH.IcuMessage | string} findingDescription
       * @param {LH.IcuMessage=} severity
       * @return {LH.Audit.Details.TableItem}
       */
      static findingToTableItem(coopDirective, findingDescription, severity) {
        return {
          directive: coopDirective,
          description: findingDescription,
          severity
        };
      }
      /**
       * @param {string[]} coopHeaders
       * @return {{score: number, results: LH.Audit.Details.TableItem[]}}
       */
      static constructResults(coopHeaders) {
        const rawCoop = [...coopHeaders];
        const allowedDirectives = [
          "unsafe-none",
          "same-origin-allow-popups",
          "same-origin",
          "noopener-allow-popups"
        ];
        const violations = [];
        const syntax = [];
        if (!rawCoop.length) {
          violations.push({
            severity: str_92(UIStrings.itemSeverityHigh),
            description: str_92(UIStrings113.noCoop),
            directive: void 0
          });
        }
        for (const actualDirective of coopHeaders) {
          if (!allowedDirectives.includes(actualDirective)) {
            syntax.push({
              severity: str_92(UIStrings.itemSeverityLow),
              description: str_92(UIStrings113.invalidSyntax),
              directive: actualDirective
            });
          }
        }
        const results = [
          ...violations.map(
            (f) => this.findingToTableItem(
              f.directive,
              f.description,
              str_92(UIStrings.itemSeverityHigh)
            )
          ),
          ...syntax.map(
            (f) => this.findingToTableItem(
              f.directive,
              f.description,
              str_92(UIStrings.itemSeverityLow)
            )
          )
        ];
        return { score: violations.length || syntax.length ? 0 : 1, results };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const coopHeaders = await this.getRawCoop(artifacts, context);
        const { score, results } = this.constructResults(coopHeaders);
        const headings = [
          /* eslint-disable max-len */
          { key: "description", valueType: "text", subItemsHeading: { key: "description" }, label: str_92(UIStrings.columnDescription) },
          { key: "directive", valueType: "code", subItemsHeading: { key: "directive" }, label: str_92(UIStrings113.columnDirective) },
          { key: "severity", valueType: "text", subItemsHeading: { key: "severity" }, label: str_92(UIStrings113.columnSeverity) }
          /* eslint-enable max-len */
        ];
        const details = Audit.makeTableDetails(headings, results);
        return {
          score,
          notApplicable: !results.length,
          details
        };
      }
    };
    origin_isolation_default = OriginIsolation;
  }
});

// core/audits/redirects-http.js
var redirects_http_exports = {};
__export(redirects_http_exports, {
  UIStrings: () => UIStrings114,
  default: () => redirects_http_default
});
var UIStrings114, str_93, RedirectsHTTP, redirects_http_default;
var init_redirects_http = __esm({
  "core/audits/redirects-http.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    init_url_utils();
    /**
     * @license Copyright 2024 The Lighthouse Authors. All Rights Reserved.
     * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
     * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
     */
    UIStrings114 = {
      /** Title of a Lighthouse audit that provides detail on HTTP to HTTPS redirects. This descriptive title is shown to users when HTTP traffic is redirected to HTTPS. */
      title: "Redirects HTTP traffic to HTTPS",
      /** Title of a Lighthouse audit that provides detail on HTTP to HTTPS redirects. This descriptive title is shown to users when HTTP traffic is not redirected to HTTPS. */
      failureTitle: "Does not redirect HTTP traffic to HTTPS",
      /** Description of a Lighthouse audit that tells the user why they should direct HTTP traffic to HTTPS. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
      description: "Make sure that you redirect all HTTP traffic to HTTPS in order to enable secure web features for all your users. [Learn more](https://developer.chrome.com/docs/lighthouse/pwa/redirects-http/)."
    };
    str_93 = createIcuMessageFn({ url: "core/audits/redirects-http.js" }.url, UIStrings114);
    RedirectsHTTP = class extends Audit {
      static {
        __name(this, "RedirectsHTTP");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "redirects-http",
          title: str_93(UIStrings114.title),
          failureTitle: str_93(UIStrings114.failureTitle),
          description: str_93(UIStrings114.description),
          requiredArtifacts: ["URL"],
          supportedModes: ["navigation"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        if (!artifacts.URL.requestedUrl) {
          throw new Error("Missing requestedUrl");
        }
        const requestedUrl = new URL(artifacts.URL.requestedUrl);
        const finalDisplayedUrl = new URL(artifacts.URL.finalDisplayedUrl);
        const startedInsecure = requestedUrl.protocol === "http:";
        const isLocalhost = url_utils_default.isLikeLocalhost(finalDisplayedUrl.hostname);
        if (!startedInsecure || isLocalhost) {
          return {
            score: null,
            notApplicable: true
          };
        }
        const endedSecure = finalDisplayedUrl.protocol === "https:";
        return {
          score: Number(endedSecure)
        };
      }
    };
    redirects_http_default = RedirectsHTTP;
  }
});

// core/audits/seo/canonical.js
var canonical_exports = {};
__export(canonical_exports, {
  UIStrings: () => UIStrings115,
  default: () => canonical_default
});
var UIStrings115, str_94, Canonical, canonical_default;
var init_canonical = __esm({
  "core/audits/seo/canonical.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_main_resource();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings115 = {
      /** Title of a Lighthouse audit that provides detail on a page's rel=canonical link. This descriptive title is shown to users when the rel=canonical link is valid. "rel=canonical" is an HTML attribute and value and so should not be translated. */
      title: "Document has a valid `rel=canonical`",
      /** Title of a Lighthouse audit that provides detail on a page's rel=canonical link. This descriptive title is shown to users when the rel=canonical link is invalid and should be fixed. "rel=canonical" is an HTML attribute and value and so should not be translated. */
      failureTitle: "Document does not have a valid `rel=canonical`",
      /** Description of a Lighthouse audit that tells the user *why* they need to have a valid rel=canonical link. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Canonical links suggest which URL to show in search results. [Learn more about canonical links](https://developer.chrome.com/docs/lighthouse/seo/canonical/).",
      /**
       * @description Explanatory message stating that there was a failure in an audit caused by multiple URLs conflicting with each other.
       * @example {https://example.com, https://example2.com} urlList
       * */
      explanationConflict: "Multiple conflicting URLs ({urlList})",
      /**
       * @description Explanatory message stating that there was a failure in an audit caused by a URL being invalid.
       * @example {https://example.com/} url
       * */
      explanationInvalid: "Invalid URL ({url})",
      /**
       * @description Explanatory message stating that there was a failure in an audit caused by a URL being relative instead of absolute.
       * @example {https://example.com/} url
       * */
      explanationRelative: "Is not an absolute URL ({url})",
      /**
       * @description Explanatory message stating that there was a failure in an audit caused by a URL pointing to a different hreflang than the current context.'hreflang' is an HTML attribute and should not be translated.
       * @example {https://example.com/} url
       */
      explanationPointsElsewhere: "Points to another `hreflang` location ({url})",
      /** Explanatory message stating that the page's canonical URL was pointing to the domain's root URL, which is a common mistake. "points" refers to the action of the 'rel=canonical' referencing another link. "root" refers to the starting/home page of the website. "domain" refers to the registered domain name of the website. */
      explanationRoot: "Points to the domain's root URL (the homepage), instead of an equivalent page of content"
    };
    str_94 = createIcuMessageFn({ url: "core/audits/seo/canonical.js" }.url, UIStrings115);
    Canonical = class _Canonical extends Audit {
      static {
        __name(this, "Canonical");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "canonical",
          title: str_94(UIStrings115.title),
          failureTitle: str_94(UIStrings115.failureTitle),
          description: str_94(UIStrings115.description),
          supportedModes: ["navigation"],
          requiredArtifacts: ["LinkElements", "URL", "DevtoolsLog"]
        };
      }
      /**
       * @param {LH.Artifacts.LinkElement[]} linkElements
       * @return {CanonicalURLData}
       */
      static collectCanonicalURLs(linkElements) {
        const uniqueCanonicalURLs = /* @__PURE__ */ new Set();
        const hreflangURLs = /* @__PURE__ */ new Set();
        let invalidCanonicalLink;
        let relativeCanonicallink;
        for (const link of linkElements) {
          if (link.source === "body") continue;
          if (link.rel === "canonical") {
            if (!link.hrefRaw) continue;
            if (!link.href) {
              invalidCanonicalLink = link;
              continue;
            }
            if (URL.parse(link.hrefRaw, "https://example.com") === null) {
              invalidCanonicalLink = link;
            } else {
              if (URL.parse(link.hrefRaw) === null) {
                relativeCanonicallink = link;
              } else {
                uniqueCanonicalURLs.add(link.href);
              }
            }
          } else if (link.rel === "alternate") {
            if (link.href && link.hreflang) hreflangURLs.add(link.href);
          }
        }
        return { uniqueCanonicalURLs, hreflangURLs, invalidCanonicalLink, relativeCanonicallink };
      }
      /**
       * @param {CanonicalURLData} canonicalURLData
       * @return {LH.Audit.Product|undefined}
       */
      static findInvalidCanonicalURLReason(canonicalURLData) {
        const { uniqueCanonicalURLs, invalidCanonicalLink, relativeCanonicallink } = canonicalURLData;
        if (invalidCanonicalLink) {
          return {
            score: 0,
            explanation: str_94(UIStrings115.explanationInvalid, { url: invalidCanonicalLink.hrefRaw })
          };
        }
        if (relativeCanonicallink) {
          return {
            score: 0,
            explanation: str_94(UIStrings115.explanationRelative, { url: relativeCanonicallink.hrefRaw })
          };
        }
        const canonicalURLs = Array.from(uniqueCanonicalURLs);
        if (canonicalURLs.length === 0) {
          return {
            score: 1,
            notApplicable: true
          };
        }
        if (canonicalURLs.length > 1) {
          return {
            score: 0,
            explanation: str_94(UIStrings115.explanationConflict, { urlList: canonicalURLs.join(", ") })
          };
        }
      }
      /**
       * @param {CanonicalURLData} canonicalURLData
       * @param {URL} canonicalURL
       * @param {URL} baseURL
       * @return {LH.Audit.Product|undefined}
       */
      static findCommonCanonicalURLMistakes(canonicalURLData, canonicalURL, baseURL) {
        const { hreflangURLs } = canonicalURLData;
        if (hreflangURLs.has(baseURL.href) && hreflangURLs.has(canonicalURL.href) && baseURL.href !== canonicalURL.href) {
          return {
            score: 0,
            explanation: str_94(UIStrings115.explanationPointsElsewhere, { url: baseURL.href })
          };
        }
        if (canonicalURL.origin === baseURL.origin && canonicalURL.pathname === "/" && baseURL.pathname !== "/") {
          return {
            score: 0,
            explanation: str_94(UIStrings115.explanationRoot)
          };
        }
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: artifacts.URL }, context);
        const baseURL = new URL(mainResource.url);
        const canonicalURLData = _Canonical.collectCanonicalURLs(artifacts.LinkElements);
        const invalidURLAuditProduct = _Canonical.findInvalidCanonicalURLReason(canonicalURLData);
        if (invalidURLAuditProduct) return invalidURLAuditProduct;
        const canonicalURL = new URL([...canonicalURLData.uniqueCanonicalURLs][0]);
        const mistakeAuditProduct = _Canonical.findCommonCanonicalURLMistakes(
          canonicalURLData,
          canonicalURL,
          baseURL
        );
        if (mistakeAuditProduct) return mistakeAuditProduct;
        return {
          score: 1
        };
      }
    };
    canonical_default = Canonical;
  }
});

// core/audits/seo/crawlable-anchors.js
var crawlable_anchors_exports = {};
__export(crawlable_anchors_exports, {
  UIStrings: () => UIStrings116,
  default: () => crawlable_anchors_default
});
var UIStrings116, hrefAssociatedAttributes, str_95, CrawlableAnchors, crawlable_anchors_default;
var init_crawlable_anchors = __esm({
  "core/audits/seo/crawlable-anchors.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings116 = {
      /** Title of a Lighthouse audit that provides detail on whether links have potentially-crawlable href attributes. This descriptive title is shown when all links on the page are potentially-crawlable. */
      title: "Links are crawlable",
      /** Descriptive title of a Lighthouse audit that provides detail on whether links have potentially-crawlable href attributes. This descriptive title is shown when there are href attributes which are not crawlable by search engines. */
      failureTitle: "Links are not crawlable",
      /** Description of a Lighthouse audit that tells the user why href attributes on links should be crawlable. This is displayed after a user expands the section to see more. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Search engines may use `href` attributes on links to crawl websites. Ensure that the `href` attribute of anchor elements links to an appropriate destination, so more pages of the site can be discovered. [Learn how to make links crawlable](https://support.google.com/webmasters/answer/9112205)",
      /** Label for a column in a data table; entries will be the HTML anchor elements that failed the audit. Anchors are DOM elements that are links. */
      columnFailingLink: "Uncrawlable Link"
    };
    hrefAssociatedAttributes = [
      "target",
      "download",
      "ping",
      "rel",
      "hreflang",
      "type",
      "referrerpolicy"
    ];
    str_95 = createIcuMessageFn({ url: "core/audits/seo/crawlable-anchors.js" }.url, UIStrings116);
    CrawlableAnchors = class extends Audit {
      static {
        __name(this, "CrawlableAnchors");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "crawlable-anchors",
          title: str_95(UIStrings116.title),
          failureTitle: str_95(UIStrings116.failureTitle),
          description: str_95(UIStrings116.description),
          requiredArtifacts: ["AnchorElements", "URL"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit({ AnchorElements: anchorElements, URL: url }) {
        const failingAnchors = anchorElements.filter(({
          rawHref,
          name = "",
          role = "",
          id,
          href,
          attributeNames = [],
          listeners = []
        }) => {
          rawHref = rawHref.replace(/\s/g, "");
          name = name.trim();
          role = role.trim();
          if (role.length > 0) return;
          if (rawHref.startsWith("mailto:")) return;
          if (rawHref === "" && id) return;
          const javaScriptVoidRegExp = /javascript:void(\(|)0(\)|)/;
          if (rawHref.startsWith("file:")) return true;
          if (name.length > 0) return;
          if (!attributeNames.includes("href") && hrefAssociatedAttributes.every((attribute) => !attributeNames.includes(attribute))) {
            return Boolean(listeners.length);
          }
          if (href === "") return true;
          if (javaScriptVoidRegExp.test(rawHref)) return true;
          try {
            new URL(rawHref, url.finalDisplayedUrl);
          } catch (e) {
            return true;
          }
        });
        const headings = [{
          key: "node",
          valueType: "node",
          label: str_95(UIStrings116.columnFailingLink)
        }];
        const itemsToDisplay = failingAnchors.map((anchor) => {
          return {
            node: Audit.makeNodeItem(anchor.node)
          };
        });
        return {
          score: Number(failingAnchors.length === 0),
          details: Audit.makeTableDetails(headings, itemsToDisplay)
        };
      }
    };
    crawlable_anchors_default = CrawlableAnchors;
  }
});

// third-party/axe/valid-langs.js
function isValidLang(lang) {
  let array = langs;
  while (lang.length < 3) {
    lang += "`";
  }
  for (let i = 0; i <= lang.length - 1; i++) {
    const index = lang.charCodeAt(i) - 96;
    array = array[index];
    if (!array) {
      return false;
    }
  }
  return true;
}
var langs;
var init_valid_langs = __esm({
  "third-party/axe/valid-langs.js"() {
    "use strict";
    init_process_global();
    langs = [, [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, , , , , , 1, 1, 1, 1, , , 1, 1, 1, , 1, , 1, , 1, 1], [1, 1, 1, , 1, 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, 1, 1, , , , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1], [, 1, , , , , , 1, , 1, , , , , 1, , 1, , , 1, 1, 1, , 1, , , 1], [1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, , , 1, , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , 1, 1, , , 1, , , , 1, 1, 1, 1, , 1, , 1, , 1, , , , , , 1], [1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1], [1, , 1, , 1, , , , , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1], [, , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , , , , , , 1], [1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1], [1, 1, 1, 1, 1, , , 1, , , 1, , , 1, 1, 1, , , , , 1, , , , , , 1]], [, [1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ,
    1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1], [, 1, , 1, 1, 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , , 1, 1, , , , , , 1, 1], [1, 1, 1, , , , , 1, , , , 1, 1, , 1, , , , , , 1, , , , , 1], [, 1, , , 1, , , 1, , , , , , 1], [, 1, , 1, , , , 1, , , , 1], [1, , 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , , 1, , , 1, , 1, 1, , 1, , 1, , , , , 1, , 1], [, 1, , , , 1, , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , , 1, , , 1], [, 1, 1, , , , , , 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1], [, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, , 1, , 1], [, 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, 1], [, 1, 1, 1, , , , 1, 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, , 1, 1], [1,
    1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, , 1, 1, 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , 1, 1], [, , , , 1, , , , , , , , , , , , , , , , , 1], [1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , 1, 1, 1, , 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, 1, , , , 1, 1], [1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, , , , , , , 1, , , , , , , 1], [, 1, 1, , 1, 1, , 1, , , , , , , , , , , , , 1], [, , , , , , , , 1], [1, 1, 1, , , , , , , , , , , , , 1], [, , , , , , , , 1, , , 1, , , 1, 1, , , , , 1]], [, [1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [, 1, 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1], [, , , 1, , , , , , , , , , , , , , , 1], [, 1, , , 1, 1, , 1, , 1, 1, , , , 1, 1, , , 1, 1, , , , 1], [1, , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1,
    1, , 1, 1, 1, 1, , , 1, , , , 1], , [, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , , 1, 1, 1, 1, , 1, 1, , 1], [, 1, , , 1, , , 1, , 1, , , 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1], [, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, , , 1, , , 1, , 1], [, 1, , , , , , 1, , , , 1, 1, , , , , , 1, 1, , , , , 1], [, , , , , , , 1, , , , 1, , 1, 1], [, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, 1, 1, 1], [, 1, , , 1, 1, , 1, , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, 1, 1, , 1], [, 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1], [, , , , , , , , , , , , , , , , 1], , [, 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , 1], [, , 1, , , 1, , , 1, 1, , 1, 1, , 1, 1, , 1, , , , , , , , , 1], [, 1, 1, , 1, , , , 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [1, 1], [, 1, , , , , , , , , , 1,
    1, , , , , , 1, 1, , 1, , 1, , 1, 1], , [, 1, 1, , 1, , , 1, , 1, , , , 1, 1, 1, , , 1, , , 1, , , , 1], [1, 1, , , 1, 1, , 1, , , , , 1, , 1]], [, [, 1], [, , , 1, , , , 1, , , , 1, , , , 1, , , 1, , , 1], [, , , , , , , , , , , , , , , , , , 1, 1, , , , , , 1], , [1, , , , , 1], [, 1, , , , 1, , , , 1], [, 1, , , , , , , , , , , 1, 1, , 1, , , , , , , , , 1, 1], [, , , , , , , , , , , , , , , , , , , 1, , 1], [, , , , , , , , , , , , , , , , 1, , , , 1, , 1], [, 1], [, 1, , 1, , 1, , 1, , 1, , 1, 1, 1, , 1, 1, , 1, , , , , , , 1], [1, , , , , 1, , , 1, 1, , 1, , 1, , 1, 1, , , , , 1, , , 1], [, 1, 1, , , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1], [1, 1, 1, 1, 1, , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1], [1, , , , , , , , , , , , , , , , , , , , 1], [, , , , , , , , , 1], , [, 1, , , , , , 1, 1, 1, , 1, , , , 1, , , 1, 1, 1, , , 1], [1, , , , , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, , 1, , 1, , , 1, 1], [1, , 1, 1, , , , , 1, , , , , , 1, 1, , , 1, 1, 1, 1,
    , , 1, , 1], [1, , , , 1, , , , , , , , , , , , , 1], [, , , , , 1, , , 1, , , , , , 1], [, , , , , , , , , , , , , , , 1], [, , , , , , , , , , , , , , , , , , , , 1], [, 1, , , , , , , , , , , , , , 1], [, 1, , , , 1]], [, [1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, 1, 1], [, , , , , , , , , , , , 1], [, , , , , , , , , , , , , , , , , , , 1], , [, , , , , , , , , , , , , , , , , , 1], [1, , , , , , , , , 1, , , , 1], [, , , , , , , , , , , , , , , , , , 1], , [1, 1, , , , 1, 1, , , , , , 1, , , , 1, , 1, , 1, 1, , 1], [1], [, , , , , , , , , , , 1, , , , , , , , , , , 1], [, 1, , , , , , , 1, 1, , , 1, , 1, , , , 1, , , , , , , 1], [, , , , , , , , , , , , , , , , 1, , , , , 1], [, , 1, , , , , 1, , 1], [1, , , , 1, , , , , 1, , , , 1, 1, , , , 1, 1, , , , , 1], [, , , , , 1], [, , , , , , , , , , , , , , , , , , , 1], [1, , , 1, 1, , , , , , , 1, , 1, , 1, 1, 1, 1, 1, 1], [, , , , , 1, , , , , , , 1, , , , , , , 1], , [, , 1, 1, 1, 1, 1, , 1, 1, 1, , , 1,
    1, , , 1, 1, , 1, 1, 1, , , 1], [, , , , , , , , , , , , , , , , , , 1], [, 1, , , , 1], , [1]], [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [, , , 1, 1, 1, 1, , , , , , 1, , 1, , , , 1, , 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1], [, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, , , 1, 1, 1, 1, 1], [, , , , , , , , , , , 1, , , , , , , , , 1, , , , 1], [, 1, 1, , 1, 1, , 1, , , , 1, 1, , 1, 1, , , 1, , 1, 1, , 1], [, 1, , 1, , 1, , , 1, , , 1, 1, , 1, 1, , , 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1], [, , , , , , , , , 1, , 1, , 1, 1, , , , 1, , , 1], [, 1, , , 1, 1, , , , , , , , , 1, 1, 1, , , , , 1], [1, , 1, 1, 1, , , , 1, 1, 1, 1, 1, , , 1, , , 1, , , 1, , 1, , 1], [, 1, 1, , 1, 1, , 1, 1, , , , 1, 1, 1, , , 1, 1, , , 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1,
    1, 1, 1, 1, , 1, 1, , 1, 1, , 1, , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , , 1, , , , , , , , , 1], [, 1, , , , , , , , 1, , , , , 1, , , , 1, , , 1], [, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , , , , 1, , 1, , , , , 1, 1, 1, 1, 1, , , 1, , , , 1], [, 1, , , , , , , , 1, , , , , , , , , , , , 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1], [1, 1, , 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, , , , , , 1], [, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, , , , 1, , 1, 1, , 1, 1], [, , , , , , , , , , , , , , , , , , , , , , , , 1], [, 1, 1, , 1, 1, 1, 1, , 1, , , 1, 1, 1, 1, , , 1, , , , , , , 1, 1], [, 1, , , , , , , , 1, , , , , 1]], [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1], [, 1, 1, , , , , , , , , , , , 1, 1, , , , , , 1], [, 1, , , , , , , 1], [, , , , , , , , , , , , , , 1, , , , , 1, , , , , , 1], [1, 1, , , 1,
    , , 1, 1, 1, , , , 1], , [, , , , , , , , , , , , , 1, , , , , , , , , , 1], [, , , , , , , , , 1, , , , , , , , , 1, , , , , , , 1], [1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, , , 1, , 1, , , 1, 1], [, , , , , , , , , 1], [, 1, , , , 1, , , 1, , , 1, , , 1, , , , , 1], [, 1, 1, , 1, 1, , , , , , , , , , , , , , , 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, , , , 1, , 1], [1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, , 1, 1], [, , , , , , , , , , , , , , , 1, , , , 1], , [1, 1, , 1, , 1, , , , , , 1, , 1, , 1, 1, , 1, , 1, 1, , 1, 1, , 1], [, , 1, , , , , , 1, , , , 1, , 1, , , , , 1], [1, , , , , , , , , 1, , , , , , 1, , , , 1, , 1, , , 1], [1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , , 1, , 1, , , , , , 1, , , 1, , , , , , , , 1], [, 1, , 1, , , , , , , , , , , , 1], , [1, 1, , , , , , , , , , , , , , , , , , , , , , 1, 1], [1]],
    [, [1, , , , , , , , , 1, , , , , 1, , 1, , 1], [, 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1, 1, , , , 1, , , 1, , , , 1], [, 1, , , , , , , 1, , , , 1, , , , , , 1], [1, 1, 1, 1, 1, 1, , , , 1, , , , , , , , , 1, 1, 1, 1], [1], [, 1, 1, , , 1, 1, , , , , 1, , 1, , , , , , , , 1, , , , 1], [1, , 1, , , 1, , 1, , , , , 1, 1, 1, 1, , , , 1, , , , 1], [, , 1, , , , , , , 1, , , , , , , 1, , , , , , , 1], [1, , , , , , , , , , , , , , 1, , , , 1], [, , , 1, , 1, , , , , 1, , , , 1, 1, , , , 1], [1, , , , , 1, , , 1, 1, , 1, 1, , , 1, 1, , 1, 1, 1, , 1, 1, 1, , 1], [, 1, 1, , , , , 1, , 1, , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1], [, 1, , , , 1, , , , 1, , , 1, , 1, 1, , , 1, 1, 1, , , , , 1], [1, , 1, 1, , 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , , , 1], [1, , , , , , , , , , , , , , , , , , 1, , , 1, , 1], [, , , , , , , , , 1, , , , , , 1], [, , , , , , , , , , , , , , , , , , , , , 1, , 1], [, 1, , , , 1, , , 1, 1, , 1, , , 1, 1, , , 1, , , 1, , , 1, 1], [1, 1, , 1, 1, 1, , 1, 1, 1, , 1,
    , 1, 1, 1, , , 1, , 1, 1, 1], [1, , 1, 1, 1, 1, , , , 1, , 1, 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1], [1, , , , , , , , , , , , , 1], [, , 1, , , , , , , , , , , , , , , , , , , , 1], [1, , , , , , , , , , , 1, , 1, , 1, , , , 1], [, , , 1, , , , , , , , , 1], [, 1, , , , , , , , , , , , , , 1, , , , , , , , , 1], [, , , , , , , , 1, 1, , , , 1, , , , , 1, , , , , , , , 1]], [, [1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1], [, , , , , 1, , , , 1, 1, 1, , 1, 1, 1, , , 1, , 1, 1, , 1], [, , , , , , , , , , , , , , , , , , , 1, 1], [, 1, , , , , , 1, , , , , , , , , , , , , 1], [, , 1, , , 1, , 1, 1, 1, , 1, 1, , 1, , , , 1, , 1, 1], , [, , 1, , , 1, , , , , , 1, , , , 1], [, , , , , , , , , 1, , , , , , , , , , 1], [1, 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, , 1, , 1, , , 1, 1, 1, , , 1], [, , , , , 1, , , , , , , , , , , , , 1], [, 1, , , , , , , , , , , , 1, , 1, 1, , 1, 1, , 1], [, , , , , 1, , , , , , , , , , , , , , 1], [, 1, 1, 1, 1, , , , , 1, , , 1,
    , 1, , , , 1, 1, , , , 1, 1], [, 1, , , 1, , , 1, , 1, 1, , 1, , , , , , , 1], [, , 1, , 1, , , 1, , , , , , , , , , , 1, 1, , , , 1], [, 1, , , , , , , , , , , , , , , , , 1, , , , , , 1], [, , , , , , , , , , , , , , , , , , 1], [, 1, 1, , , , , , , , , , , , , , , , 1, , 1, 1], [, , , , , , , , , , , , 1], , [, 1, 1, 1, 1, , , , 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1], [1, , , , 1, , , , , , , , , , 1], [1, , , , , , , , , 1], , [, 1, , , , 1, , , , , , , , , , , , , , , , , , , , 1]], [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, , 1, 1, 1, 1], [1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , , 1, 1, 1, 1, , 1, , , , 1, 1, , , 1, 1, , 1], [, 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , , , , ,
    , , , , , , 1], [1, 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , , , 1], [, 1, , , , , , , 1, 1, , , 1, 1, 1, , 1, , , 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [, 1, , , , 1, , , , 1, , , 1, , , , 1, , , , , , , 1, 1], [, 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1], [1, 1, 1, , 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, , , , 1, , 1, , 1, , , 1], [1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , , 1, , , , , , , , , 1, 1, , , , , , , , , 1], [, , , , , , , , , , , , , , , , , , 1], [, 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1, , , , 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1], [1, , , 1, , , , 1, 1, 1, , , , , 1, 1, , , , 1, , 1], [1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1], [1, 1, , , , , , , , 1, , 1, 1, , , , , , , 1, , 1], [, 1, , , , 1, , 1, 1, , , , 1, 1, , 1, , , , 1, 1, 1, , 1], [, , , , , , , , , , , , , 1], [, 1, , , , , , 1, , , , , , , 1], [, , , , , , , , 1, , , , 1, , 1, , , , , , , , , , , , 1]], [, [, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1, , 1], [, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    , 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1], [, 1, 1,
    , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, , 1], [1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , 1, , , , , , , , 1, , , , , , 1, , , 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, , 1,
    1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, , 1, , , , 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, , , 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1], [1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1], [, 1, 1, , , , , 1, 1, 1, , , 1, , 1, 1, , , , 1, , 1, , , 1, 1], [, , , , , , , 1, , , , 1, 1, 1, 1, 1, , 1, , , 1, , , , , 1], [1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, , 1, , 1, 1, , , 1, , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , , , 1, 1, , 1, , 1, 1, 1, , 1, , 1, 1, , 1, 1, , 1, , 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1, 1, 1], [1, , , , , , , , 1, , , , , 1, , 1], [, 1, 1, 1, , 1, , 1, , 1, , , , 1, , 1, , , 1, , , , , 1, 1, 1], [, 1, , , 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , , 1, , , 1], [1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, , 1, , , , , 1, , 1, , 1, , , , , 1, 1, , 1, , , , 1, 1]], [, [, 1, , 1, , , , , , , , 1, , , , , , , 1, , , , 1], [, , , , , , , , , 1, , 1, 1, 1, , 1, , , 1, , 1, 1], [1, 1, , , , , , , 1, , , , , 1, , 1, , , , , , 1], [, 1, , , , , , , , , , 1, , , , , , , , , 1, 1], , [, , , , , , , , , , , , , , , 1, , , , 1, , 1], [, , 1, 1, , 1, , 1, , , , , , , , 1, , , , , , 1], [, , , , , , , , , , , , , , , , , , , , 1, 1], [, 1, , , , 1, , , , , , , , , 1], [1, , 1, 1, , , , 1, , , , , , , , , 1, , , 1, , , 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, , 1, 1, , 1, , 1], [, 1, , , 1, 1, , , , , , 1, , 1, , 1, , , 1, , 1, 1], [1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [, 1,
    1, , , 1, , 1, , 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, , 1, 1], [, , , , 1, , , 1, , , , , , , 1, , , , 1, 1], [, 1, , , , , , , , , , 1, , 1, , 1, , , , , 1, , , , , 1], , [1, 1, , 1, , 1, , 1, 1, , , , , , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, , 1, , , , , , 1, , , , , 1, 1, 1, , , , 1, 1, , , 1], [, 1, 1, , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1], [, 1, 1, , , 1, , , , 1, , , , 1, 1], [, , , , 1], [, , , , , , , , , 1, , , 1], , [, , 1, , 1, , , , , , , , , 1, , , , , , , , , , , , 1], [, , , , , , , , , , , , , 1]], [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , 1, 1, , 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , , , , 1], [, 1, , 1, , , , , , 1, , , , , 1, 1, , , , , 1, 1], [, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , , 1, , 1, 1, 1], [, 1, , , , 1, , , , , , , 1], [, 1, , , 1, , , 1, , 1, , 1, 1, , 1, , , , , 1, , 1, , ,
    , 1, 1], [, 1, , , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , , , , , , , , , , , , , , , , , , , 1], [, 1, 1, 1, , , , 1, 1, , , , , , 1, 1, 1, , 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1], [, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , , 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1], [, 1, , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , , 1, , , , , , , , 1, , , , , , , , , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1], [1, 1, , 1, 1, 1, , 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1], [1, 1, , , , , , , 1, 1, , , , , 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1], [, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1], , [, 1,
    1, , , , , 1, , 1, , , , 1, 1, 1, , , 1, , , , , 1], [, , , , , , , , , , , , , 1], [, , , , , 1, , , , , , , , 1, 1, , , , , 1, , 1, , , 1, 1], [, , , , , 1, , , 1, , , , , , 1]], [, [, 1], , , , , , , , , , , , , , , , , , , , [1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, , , 1, 1, 1, 1, 1], [, 1, , 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, , , , 1, , 1, 1], [, 1, , 1, , 1, , , 1, , , , , 1, , , , , , 1, 1], [, 1, , 1, , , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1], [, 1, , , , , , , , , , , , , , , 1]], [, [, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , 1, , , , , , , , , 1, 1, , , , 1], [, , , , , , 1], [, , 1], [, 1, 1, , , 1, , 1, , 1, 1, , 1, 1, 1, , , , 1, 1, 1, , , , , 1], , [, 1, , , , 1, , , , , , 1, , , 1, , , , 1, 1, , 1], [, , , , , , , 1, , , , , , , , , 1], [, 1, 1, , , 1, 1, , , , , , 1, 1, 1, , , , 1, , 1, 1], [, , , , , , , 1, , 1, , , , , , , , , , 1], [, 1, 1, , , , , , 1, 1, , , , 1, , , , , , , 1, , , 1],
    , [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, , 1, , , 1, , , , , 1, , 1, , 1, , 1, , , , , 1], [1, 1, 1, 1, 1, 1, 1, 1, , , , , 1, 1, , 1, 1, , 1, , , 1, , 1], [, , , , , , , , , , , , , , 1, , , , , , 1], , [, , , , , , , , , 1, , , , 1, , 1, , , , , 1], [, , 1, , , , , , , 1, , 1, 1, 1, 1, , , , , , , , , 1], [, , , 1, , , , , 1, , , , , 1, , , , , , 1, , , , 1], [1, , 1, 1, , 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, , , 1, 1, , , , 1, 1], , [1, 1, , , , , , , , , , 1, 1, 1, , 1, , , 1], [, , , , 1, , , , , , , , , , , , , , , , , , , 1], [, , , , , , , , , , , , , , 1, , , , , 1, , 1], [, , , , , , , , 1]], [, [1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1], [1, 1, 1, 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1], [, , 1, , , 1, , , , , , , , 1, , , , , , 1, , , , 1], [1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1], [1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [, , 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1], [1, 1, , , , , , , 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1], [1, 1, 1, 1, , 1, 1, 1, 1,
    1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1], [1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1], [1, 1, 1, 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1], [1, 1, 1, 1, , 1, , , , , , 1, , 1, , , , , 1, 1, , , , , 1], [1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, , 1], [, 1, 1, 1, 1, , , , , 1, , 1, 1, 1, 1, 1, , , 1, 1, , , , 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, , , , , 1, , 1, , 1, , , 1, , , 1, 1, , 1]], [, [1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , , , , , , , , 1, , , , , 1, 1, , , 1, , 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, , , 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , , , , 1, , 1, 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1], [1, 1, 1, , 1, 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1], [1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [, 1, , 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1], [, , 1, , , , , , , , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
    1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , 1, 1, , , , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, , 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1], [, 1, 1, 1, , 1, , 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, 1], [1, 1, , , , 1, , , 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , 1, 1, 1], [, 1, , , , , , , 1, , 1, , 1, 1, 1, 1, , , , , , , , , 1]], [, [, , , , , , , , , , , , , 1, 1, , , , 1], [, 1, , , , , , , , 1, , , 1, , , , , , 1, , , 1, , , , 1], , [, 1, , , , 1, , 1, , 1, 1, , 1, 1, , , , , , , , 1], [, , , , , , , , , , , , , , , , , , , 1], [, , , , , , , , , 1], [1, 1, 1, , , 1, , , 1, , , , , , 1, 1, , , , , , , , , , 1], [, 1, , , , , , , , , , , , , 1], [, , , , , , , , , , , , , , , , , , , 1, , , 1], [, , , , , , , , , 1],
    [1, 1, , , , , , 1, 1, 1, , 1, 1, , , , 1, 1, , 1, , 1, 1, 1, , 1], [, 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , 1, , 1, , 1], [, 1, 1, 1, 1, , , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , 1], [, 1, , , 1, 1, , 1, , 1, , 1, , 1, 1, , 1, , 1, , , 1, , , 1, , 1], [, , , , , , , , , , , 1, , , 1], [, , , , , , , , , 1, , , , , , , , , , , , , 1], , [1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1], [, 1, , , , , , , 1, 1, , 1, , , , , 1, , , 1, , 1], [, 1, , , , 1, , , 1, , , , , , , , 1, , 1, , , 1], [, , , , , , , , , , , , , 1, 1, , , , 1, , , 1], [, , , , , 1, , , 1, , , , 1], [, 1], , [, 1], [1, , , , , , , , , , , , , , 1, , , , , 1]], [, [, 1, , , , 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, , 1, 1, , 1, 1, , , 1], [, , 1, , , , , , , , , 1], , , [1, , , 1, 1, , , , , , , , 1, 1, , 1, 1, , 1], , [, , , , , , , , , , , , , , , , , , 1, , 1], , [1, , , 1, 1, , 1, 1, , , , , 1, , 1, , , , , 1, 1, , 1], [, , , , , , , , , , , 1], [, 1, , , , , , , , 1, 1, 1, 1,
    1, 1, 1, 1, , , , 1, 1, , , , , 1], [, , , , , , , , , , , , , , , , 1, , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1], [, , , , , , , , , , , 1, , 1, , , 1], [1, , , , , , , , , , , , , , , , , , 1, , 1], , , [, 1, , , , , , , , , , , , , , 1, , , , 1, 1], [, , , , , , , , , 1, , , 1, , 1, , , , , , , , 1], [, , , , , , , , , , , , , , , 1], [, , , , , , , , , , , , , 1, 1, , , , , , 1], , [, 1]], [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, , , 1, 1, , 1, 1, 1, 1, 1, 1, , , 1, 1, 1, 1, 1, , 1, 1], [, 1, , , , , , , , 1], [, , , , 1, , , 1, , , 1, 1, , , , , , , , , 1, 1, , , , 1], [, 1, , 1, 1, , , 1, 1, 1, , , , 1, 1, 1, 1, , 1, 1, 1, 1, , 1], [, , , , , , , 1], [, 1, 1, , , , , 1, , 1, , , , , , 1, , , , , , 1, , 1, , 1], [, 1, , , , , , 1, , , , 1, , , , , , , , , , 1], [, , 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1, 1, 1, 1, , 1], [, 1, , , , , , , , 1], [, 1, 1, , 1, , , , , , ,
    , 1, , , , , , 1, , , 1, , 1, , 1], [, 1, , 1, , 1, , 1, 1, 1, , 1, 1, 1, , 1, , , 1, 1, , 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, , , , 1, 1, 1, , , , 1, 1, , , 1, 1], [, , 1, 1, 1, 1, , 1, , 1, , 1, , 1, 1, 1, 1, , , , , 1, , 1, , 1], [1, 1, 1, 1, 1, 1, 1, 1, , 1, , 1, , 1, 1, 1, , , 1, 1, , , , 1, , 1], [, , , 1], , [, 1, 1, , 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, , 1, 1, 1, 1, 1, 1], [, 1, , , , , , 1, , 1, , 1, , , , , , , 1, 1, , 1, 1], [, , 1, , , , 1, , 1, 1, , 1, , 1, , , , , , , , , , 1], [, 1, 1, , 1, , , , 1, , , , 1, 1, 1, , , , 1, , 1, 1, 1, , 1, 1], , [, 1, 1, , , , , , , , , , , , , 1, , , 1, , , , , 1], [, 1, , , , , , , , , , , , , , , , , , , , , , 1], [, 1, 1, , , , , , , 1, , , , 1, 1, , , , 1, , , , , , , 1]], [, [, 1, 1, 1, 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1], [, 1, 1, 1, 1, 1, , 1, , 1, 1, , , 1, 1, 1, 1, , 1, , , , , 1, 1, 1], [, , 1, 1, , 1, , 1, 1, , , , 1, 1, 1, 1, , , 1, , 1, 1, 1, 1, , 1], [, 1, , 1, , , , , , , , 1,
    , 1, , 1, , 1, , , , , , , , 1], [, , 1, , 1, , , 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1], [, 1], [, 1, 1, , 1, , 1, 1, , 1, , , 1, 1, 1, , , , 1, , , 1, , 1], [1, 1, , 1, 1, 1, , , , , , , , 1, , , , , 1, , 1, 1, 1], [, 1, 1, , , , , , , 1, , , 1, , 1, , 1, , 1, 1, , , 1, , , 1], [, , 1, , , , , , , , , , , , , , , , , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, 1, 1, 1, , 1, , 1, , , , , 1, 1, 1, , , 1, , 1, , , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, , 1, , , 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, , , , 1, 1], [, , , 1, 1, , , 1, , 1, , 1, , 1, 1, 1, 1, , 1, , , , , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , , , , , , , , , , , , , , , , , 1], [, 1, 1, , 1, 1, , 1, , 1, , , , 1, 1, , , 1, 1, , 1, 1, , 1], [, 1, 1, 1, 1, 1, , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, , , 1], [, 1, 1, 1, 1, 1, , 1, 1, 1, 1, , 1, 1, 1,
    1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1], [, 1, 1, , 1, , , 1, , , 1, , 1, 1, 1, 1, 1, , 1, , 1, 1], [, , , , , 1, , , , 1, , , , , 1, 1, , , , 1], [, 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, , , 1, , 1, , , 1], [, , 1, , , , , , , , , 1, , 1, , , , , 1, , 1], [, 1, 1, , , , , , , , 1, 1, 1, , , , , , , , 1, , , , , 1], [, , , , , , , , 1, , , , , 1, , , 1]], [, [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, 1, , 1, 1, , , 1, 1, 1, 1, 1, 1, 1, 1, , , , , , , , , 1, 1], [, , , , , , , , 1, , , , 1, , 1, , 1, , 1], [, 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1], [, 1, , 1, , 1, , , , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1], , [, 1, , , , , , , , 1, , , 1, 1, , , 1, , 1, 1, , 1, , 1], [, 1, , , 1, , , , , , , , 1, , , , , , , 1], [1, 1, , , , , 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1], , [, 1, , , , , , 1, 1, 1, , 1, 1, 1, 1, 1, , , 1, , 1, 1, , , , 1], [, 1, 1, , , 1, , 1, , 1, , , 1, 1, 1, 1, , , 1, , , 1, , , , 1], [, 1, 1, 1,
    1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , , , 1, , 1], [, 1, 1, , 1, 1, , 1, 1, , , 1, 1, , 1, 1, , 1, , 1, , 1], [1, , 1, , , , , 1, , 1, , 1, 1, 1, 1, , , , , 1, 1, , , , 1, 1], [, 1, 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , , , , 1], , [, 1, 1, , , 1, , , , 1, , 1, 1, 1, 1, 1, , , , 1, , , , 1, , 1], [, , , 1, 1, , , 1, , , , , 1, 1, 1, 1, 1, , 1, 1, , , , , , 1], [, 1, , , , , , , , , , , 1, , , , 1, , , , , , , 1, , 1], [, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1, , 1, 1, , 1, 1, 1, 1], [, 1, , , , , , , , , , , , , , , , , , , 1], [, 1, , , , , , 1, , , , , 1, , 1, , , 1, 1, , 1, 1, , 1], [, 1, , , , , , 1, , , , , 1, 1, , , , , , , , 1, , , , 1], [, , , , , , , , , , , , , , , , , , 1, , , 1, , , , , 1], [, , , , , , , 1, , , , 1]], [, [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , 1, , 1, , , , , , , 1, , , , , , , , 1, 1, , 1], [, 1, , , 1, , , , 1], [, , , , , , , , , , 1], [, 1, , , , , , 1, 1, , , , ,
    1, 1], , [, 1, 1, , , , , , 1, , , , , 1, 1, , , , 1], [1, , 1, , 1, , , , , 1, , , , , 1, , , , , , , , , 1, 1], [, 1, 1, , , , , , , , , 1, 1, 1, 1, , , , 1, , , , , 1, , , 1], , [, 1, 1, , 1, , , 1, 1, , , 1, , , 1, 1, 1, , 1, , 1, 1, 1, , , , 1], [, 1, , , , 1, , , , , 1, , , 1, 1, , , 1, , 1, , 1, , 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1], [, , , 1, , , , , 1, , , , , 1, , 1, , 1, 1, 1], [, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [, , , , , 1], [, 1, , , , , , 1, , , , , , , 1, 1, 1, , , 1], [, 1, , , , , , , , , , 1, 1, 1, , , , , 1, , , 1], [, , , , , 1, , 1, , , , , 1, 1, 1, , 1, 1, , 1, 1, 1, , , 1, 1], [1, 1, , , , , , , 1, , , , , 1, 1, , , , , , , , , , , 1], , [, 1], [, , , , , , , , , , , , , , , , , , , , , , , , 1], [, , 1, , , , , 1, , , 1, , , , 1, , 1], [, 1, , , , , , , , , 1]]];
    __name(isValidLang, "isValidLang");
  }
});

// core/audits/seo/hreflang.js
var hreflang_exports = {};
__export(hreflang_exports, {
  UIStrings: () => UIStrings117,
  default: () => hreflang_default
});
function isFullyQualified(href) {
  return href.startsWith("http:") || href.startsWith("https:");
}
function isExpectedLanguageCode(hreflang) {
  if (hreflang.toLowerCase() === NO_LANGUAGE) {
    return true;
  }
  const [lang] = hreflang.split("-");
  return isValidLang(lang.toLowerCase());
}
var NO_LANGUAGE, UIStrings117, str_96, Hreflang, hreflang_default;
var init_hreflang = __esm({
  "core/audits/seo/hreflang.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    init_valid_langs();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    NO_LANGUAGE = "x-default";
    UIStrings117 = {
      /** Title of a Lighthouse audit that provides detail on the `hreflang` attribute on a page. This descriptive title is shown when the page's `hreflang` attribute is configured correctly. "hreflang" is an HTML attribute and should not be translated. */
      title: "Document has a valid `hreflang`",
      /** Title of a Lighthouse audit that provides detail on the `hreflang` attribute on a page. This descriptive title is shown when the page's `hreflang` attribute is not valid and needs to be fixed. "hreflang" is an HTML attribute and should not be translated. */
      failureTitle: "Document doesn't have a valid `hreflang`",
      /** Description of a Lighthouse audit that tells the user *why* they need to have an hreflang link on their page. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. "hreflang" is an HTML attribute and should not be translated. */
      description: "hreflang links tell search engines what version of a page they should list in search results for a given language or region. [Learn more about `hreflang`](https://developer.chrome.com/docs/lighthouse/seo/hreflang/).",
      /** A failure reason for a Lighthouse audit that flags incorrect use of the `hreflang` attribute on `link` elements. This failure reason is shown when the hreflang language code is unexpected. */
      unexpectedLanguage: "Unexpected language code",
      /** A failure reason for a Lighthouse audit that flags incorrect use of the `hreflang` attribute on `link` elements. This failure reason is shown when the `href` attribute value is not fully-qualified. */
      notFullyQualified: "Relative href value"
    };
    str_96 = createIcuMessageFn({ url: "core/audits/seo/hreflang.js" }.url, UIStrings117);
    __name(isFullyQualified, "isFullyQualified");
    __name(isExpectedLanguageCode, "isExpectedLanguageCode");
    Hreflang = class extends Audit {
      static {
        __name(this, "Hreflang");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "hreflang",
          title: str_96(UIStrings117.title),
          failureTitle: str_96(UIStrings117.failureTitle),
          description: str_96(UIStrings117.description),
          supportedModes: ["navigation"],
          requiredArtifacts: ["LinkElements", "URL"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit({ LinkElements: LinkElements2 }) {
        const invalidHreflangs = [];
        const auditableLinkElements = LinkElements2.filter((linkElement) => {
          const isAlternate = linkElement.rel === "alternate";
          const hasHreflang = linkElement.hreflang;
          const isInBody = linkElement.source === "body";
          return isAlternate && hasHreflang && !isInBody;
        });
        for (const link of auditableLinkElements) {
          const reasons = [];
          let source;
          if (!isExpectedLanguageCode(link.hreflang)) {
            reasons.push(str_96(UIStrings117.unexpectedLanguage));
          }
          if (!isFullyQualified(link.hrefRaw.toLowerCase())) {
            reasons.push(str_96(UIStrings117.notFullyQualified));
          }
          if (link.source === "head") {
            if (link.node) {
              source = {
                ...Audit.makeNodeItem(link.node),
                snippet: `<link rel="alternate" hreflang="${link.hreflang}" href="${link.hrefRaw}" />`
              };
            } else {
              source = {
                type: "node",
                snippet: `<link rel="alternate" hreflang="${link.hreflang}" href="${link.hrefRaw}" />`
              };
            }
          } else if (link.source === "headers") {
            source = `Link: <${link.hrefRaw}>; rel="alternate"; hreflang="${link.hreflang}"`;
          }
          if (!source || !reasons.length) continue;
          invalidHreflangs.push({
            source,
            subItems: {
              type: "subitems",
              items: reasons.map((reason) => ({ reason }))
            }
          });
        }
        const headings = [{
          key: "source",
          valueType: "code",
          subItemsHeading: {
            key: "reason",
            valueType: "text"
          },
          label: ""
        }];
        const details = Audit.makeTableDetails(headings, invalidHreflangs);
        return {
          score: Number(invalidHreflangs.length === 0),
          details
        };
      }
    };
    hreflang_default = Hreflang;
  }
});

// core/audits/seo/http-status-code.js
var http_status_code_exports = {};
__export(http_status_code_exports, {
  UIStrings: () => UIStrings118,
  default: () => http_status_code_default
});
var HTTP_UNSUCCESSFUL_CODE_LOW, HTTP_UNSUCCESSFUL_CODE_HIGH, UIStrings118, str_97, HTTPStatusCode, http_status_code_default;
var init_http_status_code = __esm({
  "core/audits/seo/http-status-code.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    init_main_resource();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    HTTP_UNSUCCESSFUL_CODE_LOW = 400;
    HTTP_UNSUCCESSFUL_CODE_HIGH = 599;
    UIStrings118 = {
      /** Title of a Lighthouse audit that provides detail on the HTTP status code a page responds with. This descriptive title is shown when the page has responded with a valid HTTP status code. */
      title: "Page has successful HTTP status code",
      /** Descriptive title of a Lighthouse audit that provides detail on the HTTP status code a page responds with. This descriptive title is shown when the page responds to requests with an HTTP status code that indicates the request was unsuccessful. */
      failureTitle: "Page has unsuccessful HTTP status code",
      /** Description of a Lighthouse audit that tells the user *why* they need to serve pages with a valid HTTP status code. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Pages with unsuccessful HTTP status codes may not be indexed properly. [Learn more about HTTP status codes](https://developer.chrome.com/docs/lighthouse/seo/http-status-code/)."
    };
    str_97 = createIcuMessageFn({ url: "core/audits/seo/http-status-code.js" }.url, UIStrings118);
    HTTPStatusCode = class extends Audit {
      static {
        __name(this, "HTTPStatusCode");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "http-status-code",
          title: str_97(UIStrings118.title),
          failureTitle: str_97(UIStrings118.failureTitle),
          description: str_97(UIStrings118.description),
          requiredArtifacts: ["DevtoolsLog", "URL", "GatherContext"],
          supportedModes: ["navigation"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        const URL3 = artifacts.URL;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: URL3 }, context);
        const statusCode = mainResource.statusCode;
        if (statusCode >= HTTP_UNSUCCESSFUL_CODE_LOW && statusCode <= HTTP_UNSUCCESSFUL_CODE_HIGH) {
          return {
            score: 0,
            displayValue: `${statusCode}`
          };
        }
        return {
          score: 1
        };
      }
    };
    http_status_code_default = HTTPStatusCode;
  }
});

// node_modules/robots-parser/Robots.js
var require_Robots = __commonJS({
  "node_modules/robots-parser/Robots.js"(exports2, module2) {
    init_process_global();
    function trimLine(line) {
      if (!line) {
        return null;
      }
      if (Array.isArray(line)) {
        return line.map(trimLine);
      }
      return String(line).trim();
    }
    __name(trimLine, "trimLine");
    function removeComments(line) {
      var commentStartIndex = line.indexOf("#");
      if (commentStartIndex > -1) {
        return line.substr(0, commentStartIndex);
      }
      return line;
    }
    __name(removeComments, "removeComments");
    function splitLine(line) {
      var idx = String(line).indexOf(":");
      if (!line || idx < 0) {
        return null;
      }
      return [line.slice(0, idx), line.slice(idx + 1)];
    }
    __name(splitLine, "splitLine");
    function formatUserAgent(userAgent) {
      var formattedUserAgent = userAgent.toLowerCase();
      var idx = formattedUserAgent.indexOf("/");
      if (idx > -1) {
        formattedUserAgent = formattedUserAgent.substr(0, idx);
      }
      return formattedUserAgent.trim();
    }
    __name(formatUserAgent, "formatUserAgent");
    function normaliseEncoding(path7) {
      try {
        return urlEncodeToUpper(encodeURI(path7).replace(/%25/g, "%"));
      } catch (e) {
        return path7;
      }
    }
    __name(normaliseEncoding, "normaliseEncoding");
    function urlEncodeToUpper(path7) {
      return path7.replace(/%[0-9a-fA-F]{2}/g, function(match) {
        return match.toUpperCase();
      });
    }
    __name(urlEncodeToUpper, "urlEncodeToUpper");
    function matches(pattern, path7) {
      var matchingLengths = new Array(path7.length + 1);
      var numMatchingLengths = 1;
      matchingLengths[0] = 0;
      for (var p = 0; p < pattern.length; p++) {
        if (pattern[p] === "$" && p + 1 === pattern.length) {
          return matchingLengths[numMatchingLengths - 1] === path7.length;
        }
        if (pattern[p] == "*") {
          numMatchingLengths = path7.length - matchingLengths[0] + 1;
          for (var i = 1; i < numMatchingLengths; i++) {
            matchingLengths[i] = matchingLengths[i - 1] + 1;
          }
        } else {
          var numMatches = 0;
          for (var i = 0; i < numMatchingLengths; i++) {
            if (matchingLengths[i] < path7.length && path7[matchingLengths[i]] === pattern[p]) {
              matchingLengths[numMatches++] = matchingLengths[i] + 1;
            }
          }
          if (numMatches == 0) {
            return false;
          }
          numMatchingLengths = numMatches;
        }
      }
      return true;
    }
    __name(matches, "matches");
    function parseRobots(contents, robots) {
      var newlineRegex = /\r\n|\r|\n/;
      var lines = contents.split(newlineRegex).map(removeComments).map(splitLine).map(trimLine);
      var currentUserAgents = [];
      var isNoneUserAgentState = true;
      for (var i = 0; i < lines.length; i++) {
        var line = lines[i];
        if (!line || !line[0]) {
          continue;
        }
        switch (line[0].toLowerCase()) {
          case "user-agent":
            if (isNoneUserAgentState) {
              currentUserAgents.length = 0;
            }
            if (line[1]) {
              currentUserAgents.push(formatUserAgent(line[1]));
            }
            break;
          case "disallow":
            robots.addRule(currentUserAgents, line[1], false, i + 1);
            break;
          case "allow":
            robots.addRule(currentUserAgents, line[1], true, i + 1);
            break;
          case "crawl-delay":
            robots.setCrawlDelay(currentUserAgents, line[1]);
            break;
          case "sitemap":
            if (line[1]) {
              robots.addSitemap(line[1]);
            }
            break;
          case "host":
            if (line[1]) {
              robots.setPreferredHost(line[1].toLowerCase());
            }
            break;
        }
        isNoneUserAgentState = line[0].toLowerCase() !== "user-agent";
      }
    }
    __name(parseRobots, "parseRobots");
    function findRule(path7, rules) {
      var matchedRule = null;
      for (var i = 0; i < rules.length; i++) {
        var rule = rules[i];
        if (!matches(rule.pattern, path7)) {
          continue;
        }
        if (!matchedRule || rule.pattern.length > matchedRule.pattern.length) {
          matchedRule = rule;
        } else if (rule.pattern.length == matchedRule.pattern.length && rule.allow && !matchedRule.allow) {
          matchedRule = rule;
        }
      }
      return matchedRule;
    }
    __name(findRule, "findRule");
    function parseUrl(url) {
      try {
        var url = new URL(url, "http://robots-relative.samclarke.com/");
        if (!url.port) {
          url.port = url.protocol === "https:" ? 443 : 80;
        }
        return url;
      } catch (e) {
        return null;
      }
    }
    __name(parseUrl, "parseUrl");
    function Robots(url, contents) {
      this._url = parseUrl(url) || {};
      this._rules = /* @__PURE__ */ Object.create(null);
      this._sitemaps = [];
      this._preferredHost = null;
      parseRobots(contents || "", this);
    }
    __name(Robots, "Robots");
    Robots.prototype.addRule = function(userAgents2, pattern, allow, lineNumber) {
      var rules = this._rules;
      userAgents2.forEach(function(userAgent) {
        rules[userAgent] = rules[userAgent] || [];
        if (!pattern) {
          return;
        }
        rules[userAgent].push({
          pattern: normaliseEncoding(pattern),
          allow,
          lineNumber
        });
      });
    };
    Robots.prototype.setCrawlDelay = function(userAgents2, delayStr) {
      var rules = this._rules;
      var delay = Number(delayStr);
      userAgents2.forEach(function(userAgent) {
        rules[userAgent] = rules[userAgent] || [];
        if (isNaN(delay)) {
          return;
        }
        rules[userAgent].crawlDelay = delay;
      });
    };
    Robots.prototype.addSitemap = function(url) {
      this._sitemaps.push(url);
    };
    Robots.prototype.setPreferredHost = function(url) {
      this._preferredHost = url;
    };
    Robots.prototype._getRule = function(url, ua) {
      var parsedUrl = parseUrl(url) || {};
      var userAgent = formatUserAgent(ua || "*");
      if (parsedUrl.protocol !== this._url.protocol || parsedUrl.hostname !== this._url.hostname || parsedUrl.port !== this._url.port) {
        return;
      }
      var rules = this._rules[userAgent] || this._rules["*"] || [];
      var path7 = urlEncodeToUpper(parsedUrl.pathname + parsedUrl.search);
      var rule = findRule(path7, rules);
      return rule;
    };
    Robots.prototype.isAllowed = function(url, ua) {
      var rule = this._getRule(url, ua);
      if (typeof rule === "undefined") {
        return;
      }
      return !rule || rule.allow;
    };
    Robots.prototype.getMatchingLineNumber = function(url, ua) {
      var rule = this._getRule(url, ua);
      return rule ? rule.lineNumber : -1;
    };
    Robots.prototype.isDisallowed = function(url, ua) {
      return !this.isAllowed(url, ua);
    };
    Robots.prototype.getCrawlDelay = function(ua) {
      var userAgent = formatUserAgent(ua || "*");
      return (this._rules[userAgent] || this._rules["*"] || {}).crawlDelay;
    };
    Robots.prototype.getPreferredHost = function() {
      return this._preferredHost;
    };
    Robots.prototype.getSitemaps = function() {
      return this._sitemaps.slice(0);
    };
    module2.exports = Robots;
  }
});

// node_modules/robots-parser/index.js
var require_robots_parser = __commonJS({
  "node_modules/robots-parser/index.js"(exports2, module2) {
    init_process_global();
    var Robots = require_Robots();
    module2.exports = function(url, contents) {
      return new Robots(url, contents);
    };
  }
});

// core/audits/seo/is-crawlable.js
var is_crawlable_exports = {};
__export(is_crawlable_exports, {
  UIStrings: () => UIStrings119,
  default: () => is_crawlable_default
});
function isUnavailable(directive) {
  const parts = directive.split(":");
  if (parts.length <= 1 || parts[0] !== UNAVAILABLE_AFTER) {
    return false;
  }
  const date = Date.parse(parts.slice(1).join(":"));
  return !isNaN(date) && date < Date.now();
}
function hasBlockingDirective(directives) {
  return directives.split(",").map((d) => d.toLowerCase().trim()).some((d) => BLOCKLIST.has(d) || isUnavailable(d));
}
function getUserAgentFromHeaderDirectives(directives) {
  const parts = directives.match(/^([^,:]+):/);
  if (!!parts && parts[1].toLowerCase() !== UNAVAILABLE_AFTER) {
    return parts[1];
  }
}
var import_robots_parser, BOT_USER_AGENTS, BLOCKLIST, ROBOTS_HEADER, UNAVAILABLE_AFTER, UIStrings119, str_98, IsCrawlable, is_crawlable_default;
var init_is_crawlable = __esm({
  "core/audits/seo/is-crawlable.js"() {
    "use strict";
    init_process_global();
    import_robots_parser = __toESM(require_robots_parser(), 1);
    init_audit();
    init_main_resource();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    BOT_USER_AGENTS = /* @__PURE__ */ new Set([
      void 0,
      "Googlebot",
      "bingbot",
      "DuckDuckBot",
      "archive.org_bot"
    ]);
    BLOCKLIST = /* @__PURE__ */ new Set([
      "noindex",
      "none"
    ]);
    ROBOTS_HEADER = "x-robots-tag";
    UNAVAILABLE_AFTER = "unavailable_after";
    UIStrings119 = {
      /** Title of a Lighthouse audit that provides detail on if search-engine crawlers are blocked from indexing the page. This title is shown when the page is not blocked from indexing and can be crawled. */
      title: "Page isn’t blocked from indexing",
      /** Title of a Lighthouse audit that provides detail on if search-engine crawlers are blocked from indexing the page. This title is shown when the page has been configured to block indexing and therefore cannot be indexed by search engines. */
      failureTitle: "Page is blocked from indexing",
      /** Description of a Lighthouse audit that tells the user *why* allowing search-engine crawling of their page is beneficial. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Search engines are unable to include your pages in search results if they don't have permission to crawl them. [Learn more about crawler directives](https://developer.chrome.com/docs/lighthouse/seo/is-crawlable/)."
    };
    str_98 = createIcuMessageFn({ url: "core/audits/seo/is-crawlable.js" }.url, UIStrings119);
    __name(isUnavailable, "isUnavailable");
    __name(hasBlockingDirective, "hasBlockingDirective");
    __name(getUserAgentFromHeaderDirectives, "getUserAgentFromHeaderDirectives");
    IsCrawlable = class _IsCrawlable extends Audit {
      static {
        __name(this, "IsCrawlable");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "is-crawlable",
          title: str_98(UIStrings119.title),
          failureTitle: str_98(UIStrings119.failureTitle),
          description: str_98(UIStrings119.description),
          supportedModes: ["navigation"],
          requiredArtifacts: ["MetaElements", "RobotsTxt", "URL", "DevtoolsLog"]
        };
      }
      /**
       * @param {LH.Artifacts.MetaElement} metaElement
       */
      static handleMetaElement(metaElement) {
        const content = metaElement.content || "";
        if (hasBlockingDirective(content)) {
          return {
            source: {
              ...Audit.makeNodeItem(metaElement.node),
              snippet: `<meta name="${metaElement.name}" content="${content}" />`
            }
          };
        }
      }
      /**
       * @param {string|undefined} userAgent
       * @param {LH.Artifacts.NetworkRequest} mainResource
       * @param {LH.Artifacts.MetaElement[]} metaElements
       * @param {import('robots-parser').Robot|undefined} parsedRobotsTxt
       * @param {URL} robotsTxtUrl
       */
      static determineIfCrawlableForUserAgent(userAgent, mainResource, metaElements, parsedRobotsTxt, robotsTxtUrl) {
        const blockingDirectives = [];
        let meta;
        if (userAgent) meta = metaElements.find((meta2) => meta2.name === userAgent.toLowerCase());
        if (!meta) meta = metaElements.find((meta2) => meta2.name === "robots");
        if (meta) {
          const blockingDirective = _IsCrawlable.handleMetaElement(meta);
          if (blockingDirective) blockingDirectives.push(blockingDirective);
        }
        for (const header of mainResource.responseHeaders || []) {
          if (header.name.toLowerCase() !== ROBOTS_HEADER) continue;
          const directiveUserAgent = getUserAgentFromHeaderDirectives(header.value);
          if (directiveUserAgent !== userAgent && directiveUserAgent !== void 0) continue;
          let directiveWithoutUserAgentPrefix = header.value.trim();
          if (userAgent && header.value.startsWith(`${userAgent}:`)) {
            directiveWithoutUserAgentPrefix = header.value.replace(`${userAgent}:`, "");
          }
          if (!hasBlockingDirective(directiveWithoutUserAgentPrefix)) continue;
          blockingDirectives.push({ source: `${header.name}: ${header.value}` });
        }
        if (parsedRobotsTxt && !parsedRobotsTxt.isAllowed(mainResource.url, userAgent)) {
          const line = parsedRobotsTxt.getMatchingLineNumber(mainResource.url) || 1;
          blockingDirectives.push({
            source: {
              type: (
                /** @type {const} */
                "source-location"
              ),
              url: robotsTxtUrl.href,
              urlProvider: (
                /** @type {const} */
                "network"
              ),
              line: line - 1,
              column: 0
            }
          });
        }
        return blockingDirectives;
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: artifacts.URL }, context);
        const robotsTxtUrl = new URL("/robots.txt", mainResource.url);
        const parsedRobotsTxt = artifacts.RobotsTxt.content ? (0, import_robots_parser.default)(robotsTxtUrl.href, artifacts.RobotsTxt.content) : void 0;
        const blockedUserAgents = [];
        const genericBlockingDirectives = [];
        for (const userAgent of BOT_USER_AGENTS) {
          const blockingDirectives = _IsCrawlable.determineIfCrawlableForUserAgent(
            userAgent,
            mainResource,
            artifacts.MetaElements,
            parsedRobotsTxt,
            robotsTxtUrl
          );
          if (blockingDirectives.length > 0) {
            blockedUserAgents.push(userAgent);
          }
          if (userAgent === void 0) {
            genericBlockingDirectives.push(...blockingDirectives);
          }
        }
        const score = blockedUserAgents.length === BOT_USER_AGENTS.size ? 0 : 1;
        const warnings = [];
        if (score && blockedUserAgents.length > 0) {
          const list = blockedUserAgents.filter(Boolean).join(", ");
          warnings.push(`The following bot user agents are blocked from crawling: ${list}. The audit is otherwise passing, because at least one bot was explicitly allowed.`);
        }
        const headings = [
          { key: "source", valueType: "code", label: "Blocking Directive Source" }
        ];
        const details = Audit.makeTableDetails(headings, score === 0 ? genericBlockingDirectives : []);
        return {
          score,
          details,
          warnings
        };
      }
    };
    is_crawlable_default = IsCrawlable;
  }
});

// core/audits/seo/link-text.js
var link_text_exports = {};
__export(link_text_exports, {
  UIStrings: () => UIStrings120,
  default: () => link_text_default
});
var nonDescriptiveLinkTexts, UIStrings120, str_99, LinkText, link_text_default;
var init_link_text = __esm({
  "core/audits/seo/link-text.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_url_utils();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    nonDescriptiveLinkTexts = {
      // English
      "en": /* @__PURE__ */ new Set([
        "click here",
        "click this",
        "go",
        "here",
        "information",
        "learn more",
        "more",
        "more info",
        "more information",
        "right here",
        "read more",
        "see more",
        "start",
        "this"
      ]),
      // Japanese
      "ja": /* @__PURE__ */ new Set([
        "ここをクリック",
        "こちらをクリック",
        "リンク",
        "続きを読む",
        "続く",
        "全文表示"
      ]),
      // Spanish
      "es": /* @__PURE__ */ new Set([
        "click aquí",
        "click aqui",
        "clicka aquí",
        "clicka aqui",
        "pincha aquí",
        "pincha aqui",
        "aquí",
        "aqui",
        "más",
        "mas",
        "más información",
        "más informacion",
        "mas información",
        "mas informacion",
        "este",
        "enlace",
        "este enlace",
        "empezar"
      ]),
      // Portuguese
      "pt": /* @__PURE__ */ new Set([
        "clique aqui",
        "ir",
        "mais informação",
        "mais informações",
        "mais",
        "veja mais"
      ]),
      // Korean
      "ko": /* @__PURE__ */ new Set([
        "여기",
        "여기를 클릭",
        "클릭",
        "링크",
        "자세히",
        "자세히 보기",
        "계속",
        "이동",
        "전체 보기"
      ]),
      // Swedish
      "sv": /* @__PURE__ */ new Set([
        "här",
        "klicka här",
        "läs mer",
        "mer",
        "mer info",
        "mer information"
      ]),
      // German
      "de": /* @__PURE__ */ new Set([
        "klicke hier",
        "hier klicken",
        "hier",
        "mehr",
        "siehe",
        "dies",
        "das",
        "weiterlesen"
      ]),
      // Tamil
      "ta": /* @__PURE__ */ new Set([
        "அடுத்த பக்கம்",
        "மறுபக்கம்",
        "முந்தைய பக்கம்",
        "முன்பக்கம்",
        "மேலும் அறிக",
        "மேலும் தகவலுக்கு",
        "மேலும் தரவுகளுக்கு",
        "தயவுசெய்து இங்கே அழுத்தவும்",
        "இங்கே கிளிக் செய்யவும்"
      ]),
      // Persian
      "fa": /* @__PURE__ */ new Set([
        "اطلاعات بیشتر",
        "اطلاعات",
        "این",
        "اینجا بزنید",
        "اینجا کلیک کنید",
        "اینجا",
        "برو",
        "بیشتر بخوانید",
        "بیشتر بدانید",
        "بیشتر",
        "شروع"
      ])
    };
    UIStrings120 = {
      /** Title of a Lighthouse audit that tests if each link on a page contains a sufficient description of what a user will find when they click it. Generic, non-descriptive text like "click here" doesn't give an indication of what the link leads to. This descriptive title is shown when all links on the page have sufficient textual descriptions. */
      title: "Links have descriptive text",
      /** Title of a Lighthouse audit that tests if each link on a page contains a sufficient description of what a user will find when they click it. Generic, non-descriptive text like "click here" doesn't give an indication of what the link leads to. This descriptive title is shown when one or more links on the page contain generic, non-descriptive text. */
      failureTitle: "Links do not have descriptive text",
      /** Description of a Lighthouse audit that tells the user *why* they need to have descriptive text on the links in their page. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Descriptive link text helps search engines understand your content. [Learn how to make links more accessible](https://developer.chrome.com/docs/lighthouse/seo/link-text/).",
      /** [ICU Syntax] Label for the audit identifying the number of links found. "link" here refers to the links in a web page to other web pages. */
      displayValue: `{itemCount, plural,
    =1 {1 link found}
    other {# links found}
    }`
    };
    str_99 = createIcuMessageFn({ url: "core/audits/seo/link-text.js" }.url, UIStrings120);
    LinkText = class extends Audit {
      static {
        __name(this, "LinkText");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "link-text",
          title: str_99(UIStrings120.title),
          failureTitle: str_99(UIStrings120.failureTitle),
          description: str_99(UIStrings120.description),
          requiredArtifacts: ["URL", "AnchorElements"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const failingLinks = artifacts.AnchorElements.filter((link) => {
          if (!link.href || link.rel.includes("nofollow")) return false;
          const href = link.href.toLowerCase();
          if (href.startsWith("javascript:") || href.startsWith("mailto:") || // This line prevents the audit from flagging anchor links.
          // In this case it is better to use `finalDisplayedUrl` than `mainDocumentUrl`.
          url_utils_default.equalWithExcludedFragments(link.href, artifacts.URL.finalDisplayedUrl)) {
            return false;
          }
          const searchTerm = link.text.trim().toLowerCase();
          if (searchTerm) {
            if (link.textLang) {
              const lang = link.textLang.split("-")[0];
              if (nonDescriptiveLinkTexts[lang] && nonDescriptiveLinkTexts[lang].has(searchTerm)) {
                return true;
              }
            } else {
              for (const texts of Object.values(nonDescriptiveLinkTexts)) {
                if (texts.has(searchTerm)) {
                  return true;
                }
              }
            }
          }
          return false;
        }).map((link) => {
          return {
            href: link.href,
            text: link.text.trim(),
            textLang: link.textLang
          };
        });
        const headings = [
          { key: "href", valueType: "url", label: "Link destination" },
          { key: "text", valueType: "text", label: "Link Text" }
        ];
        const details = Audit.makeTableDetails(headings, failingLinks);
        let displayValue;
        if (failingLinks.length) {
          displayValue = str_99(UIStrings120.displayValue, { itemCount: failingLinks.length });
        }
        return {
          score: Number(failingLinks.length === 0),
          details,
          displayValue
        };
      }
    };
    link_text_default = LinkText;
  }
});

// core/audits/seo/manual/structured-data.js
var structured_data_exports = {};
__export(structured_data_exports, {
  UIStrings: () => UIStrings121,
  default: () => structured_data_default
});
var UIStrings121, str_100, StructuredData, structured_data_default;
var init_structured_data = __esm({
  "core/audits/seo/manual/structured-data.js"() {
    "use strict";
    init_process_global();
    init_manual_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings121 = {
      /** Description of a Lighthouse audit that provides detail on the structured data in a page. "Structured data" is a standardized data format on a page that helps a search engine categorize and understand its contents. This description is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Run the [Structured Data Testing Tool](https://developers.google.com/search/docs/appearance/structured-data/) to validate structured data. [Learn more about Structured Data](https://developer.chrome.com/docs/lighthouse/seo/structured-data/).",
      /** Title of a Lighthouse audit that prompts users to manually check their page for valid structured data. "Structured data" is a standardized data format on a page that helps a search engine categorize and understand its contents. */
      title: "Structured data is valid"
    };
    str_100 = createIcuMessageFn({ url: "core/audits/seo/manual/structured-data.js" }.url, UIStrings121);
    StructuredData = class extends manual_audit_default {
      static {
        __name(this, "StructuredData");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return Object.assign({
          id: "structured-data",
          description: str_100(UIStrings121.description),
          title: str_100(UIStrings121.title)
        }, super.partialMeta);
      }
    };
    structured_data_default = StructuredData;
  }
});

// core/audits/seo/meta-description.js
var meta_description_exports = {};
__export(meta_description_exports, {
  UIStrings: () => UIStrings122,
  default: () => meta_description_default
});
var UIStrings122, str_101, Description, meta_description_default;
var init_meta_description = __esm({
  "core/audits/seo/meta-description.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings122 = {
      /** Title of a Lighthouse audit that provides detail on the web page's document meta description. This descriptive title is shown when the document has a meta description. "meta" should be left untranslated because it refers to an HTML element. */
      title: "Document has a meta description",
      /** Title of a Lighthouse audit that provides detail on the web page's document meta description. This descriptive title is shown when the document does not have a meta description. "meta" should be left untranslated because it refers to an HTML element. */
      failureTitle: "Document does not have a meta description",
      /** Description of a Lighthouse audit that tells the user *why* they need to have meta descriptions on their page. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Meta descriptions may be included in search results to concisely summarize page content. [Learn more about the meta description](https://developer.chrome.com/docs/lighthouse/seo/meta-description/).",
      /** Explanatory message stating that there was a failure in an audit caused by the page's meta description text being empty. */
      explanation: "Description text is empty."
    };
    str_101 = createIcuMessageFn({ url: "core/audits/seo/meta-description.js" }.url, UIStrings122);
    Description = class extends Audit {
      static {
        __name(this, "Description");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "meta-description",
          title: str_101(UIStrings122.title),
          failureTitle: str_101(UIStrings122.failureTitle),
          description: str_101(UIStrings122.description),
          requiredArtifacts: ["MetaElements"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const metaDescription = artifacts.MetaElements.find((meta) => meta.name === "description");
        if (!metaDescription) {
          return {
            score: 0
          };
        }
        const description = metaDescription.content || "";
        if (description.trim().length === 0) {
          return {
            score: 0,
            explanation: str_101(UIStrings122.explanation)
          };
        }
        return {
          score: 1
        };
      }
    };
    meta_description_default = Description;
  }
});

// core/audits/seo/robots-txt.js
var robots_txt_exports2 = {};
__export(robots_txt_exports2, {
  UIStrings: () => UIStrings123,
  default: () => robots_txt_default2
});
function verifyDirective(directiveName, directiveValue) {
  if (!DIRECTIVE_SAFELIST.has(directiveName)) {
    throw new Error("Unknown directive");
  }
  if (directiveName === DIRECTIVE_SITEMAP) {
    let sitemapUrl;
    try {
      sitemapUrl = new URL(directiveValue);
    } catch (e) {
      throw new Error("Invalid sitemap URL");
    }
    if (!SITEMAP_VALID_PROTOCOLS.has(sitemapUrl.protocol)) {
      throw new Error("Invalid sitemap URL protocol");
    }
  }
  if (directiveName === DIRECTIVE_USER_AGENT && !directiveValue) {
    throw new Error("No user-agent specified");
  }
  if (directiveName === DIRECTIVE_ALLOW || directiveName === DIRECTIVE_DISALLOW) {
    if (directiveValue !== "" && directiveValue[0] !== "/" && directiveValue[0] !== "*") {
      throw new Error('Pattern should either be empty, start with "/" or "*"');
    }
    const dollarIndex = directiveValue.indexOf("$");
    if (dollarIndex !== -1 && dollarIndex !== directiveValue.length - 1) {
      throw new Error('"$" should only be used at the end of the pattern');
    }
  }
}
function parseLine(line) {
  const hashIndex = line.indexOf("#");
  if (hashIndex !== -1) {
    line = line.substr(0, hashIndex);
  }
  line = line.trim();
  if (line.length === 0) {
    return null;
  }
  const colonIndex = line.indexOf(":");
  if (colonIndex === -1) {
    throw new Error("Syntax not understood");
  }
  const directiveName = line.slice(0, colonIndex).trim().toLowerCase();
  const directiveValue = line.slice(colonIndex + 1).trim();
  verifyDirective(directiveName, directiveValue);
  return {
    directive: directiveName,
    value: directiveValue
  };
}
function validateRobots(content) {
  const errors = [];
  let inGroup = false;
  content.split(/\r\n|\r|\n/).forEach((line, index) => {
    let parsedLine;
    try {
      parsedLine = parseLine(line);
    } catch (e) {
      errors.push({
        index: (index + 1).toString(),
        line,
        message: e.message.toString()
      });
    }
    if (!parsedLine) {
      return;
    }
    if (parsedLine.directive === DIRECTIVE_USER_AGENT) {
      inGroup = true;
    } else if (!inGroup && DIRECTIVES_GROUP_MEMBERS.has(parsedLine.directive)) {
      errors.push({
        index: (index + 1).toString(),
        line,
        message: "No user-agent specified"
      });
    }
  });
  return errors;
}
var HTTP_CLIENT_ERROR_CODE_LOW2, HTTP_SERVER_ERROR_CODE_LOW2, DIRECTIVE_SITEMAP, DIRECTIVE_USER_AGENT, DIRECTIVE_ALLOW, DIRECTIVE_DISALLOW, DIRECTIVES_GROUP_MEMBERS, DIRECTIVE_SAFELIST, SITEMAP_VALID_PROTOCOLS, UIStrings123, str_102, RobotsTxt2, robots_txt_default2;
var init_robots_txt2 = __esm({
  "core/audits/seo/robots-txt.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2018 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    HTTP_CLIENT_ERROR_CODE_LOW2 = 400;
    HTTP_SERVER_ERROR_CODE_LOW2 = 500;
    DIRECTIVE_SITEMAP = "sitemap";
    DIRECTIVE_USER_AGENT = "user-agent";
    DIRECTIVE_ALLOW = "allow";
    DIRECTIVE_DISALLOW = "disallow";
    DIRECTIVES_GROUP_MEMBERS = /* @__PURE__ */ new Set([DIRECTIVE_ALLOW, DIRECTIVE_DISALLOW]);
    DIRECTIVE_SAFELIST = /* @__PURE__ */ new Set([
      DIRECTIVE_USER_AGENT,
      DIRECTIVE_DISALLOW,
      // standard
      DIRECTIVE_ALLOW,
      DIRECTIVE_SITEMAP,
      // universally supported
      "crawl-delay",
      // yahoo, bing, yandex
      "clean-param",
      "host",
      // yandex
      "request-rate",
      "visit-time",
      "noindex",
      "content-signal"
      // not officially supported, but used in the wild
    ]);
    SITEMAP_VALID_PROTOCOLS = /* @__PURE__ */ new Set(["https:", "http:", "ftp:"]);
    UIStrings123 = {
      /** Title of a Lighthouse audit that provides detail on the site's robots.txt file. Note: "robots.txt" is a canonical filename and should not be translated. This descriptive title is shown when the robots.txt file is present and configured correctly. */
      title: "robots.txt is valid",
      /** Title of a Lighthouse audit that provides detail on the site's robots.txt file. Note: "robots.txt" is a canonical filename and should not be translated. This descriptive title is shown when the robots.txt file is misconfigured, which makes the page hard or impossible to scan via web crawler. */
      failureTitle: "robots.txt is not valid",
      /** Description of a Lighthouse audit that tells the user *why* they need to have a valid robots.txt file. Note: "robots.txt" is a canonical filename and should not be translated. This is displayed after a user expands the section to see more. No character length limits. */
      description: "If your robots.txt file is malformed, crawlers may not be able to understand how you want your website to be crawled or indexed. [Learn more about robots.txt](https://developer.chrome.com/docs/lighthouse/seo/invalid-robots-txt/).",
      /**
       * @description Label for the audit identifying that the robots.txt request has returned a specific HTTP status code. Note: "robots.txt" is a canonical filename and should not be translated.
       * @example {500} statusCode
       * */
      displayValueHttpBadCode: "Request for robots.txt returned HTTP status: {statusCode}",
      /** [ICU Syntax] Label for the audit identifying the number of errors that occured while validating the robots.txt file. "itemCount" will be replaced by the integer count of errors encountered. */
      displayValueValidationError: `{itemCount, plural,
    =1 {1 error found}
    other {# errors found}
    }`,
      /** Explanatory message stating that there was a failure in an audit caused by Lighthouse not being able to download the robots.txt file for the site.  Note: "robots.txt" is a canonical filename and should not be translated. */
      explanation: "Lighthouse was unable to download a robots.txt file"
    };
    str_102 = createIcuMessageFn({ url: "core/audits/seo/robots-txt.js" }.url, UIStrings123);
    __name(verifyDirective, "verifyDirective");
    __name(parseLine, "parseLine");
    __name(validateRobots, "validateRobots");
    RobotsTxt2 = class extends Audit {
      static {
        __name(this, "RobotsTxt");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "robots-txt",
          title: str_102(UIStrings123.title),
          failureTitle: str_102(UIStrings123.failureTitle),
          description: str_102(UIStrings123.description),
          requiredArtifacts: ["RobotsTxt"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const {
          status,
          content
        } = artifacts.RobotsTxt;
        if (!status) {
          return {
            score: 0,
            explanation: str_102(UIStrings123.explanation)
          };
        }
        if (status >= HTTP_SERVER_ERROR_CODE_LOW2) {
          return {
            score: 0,
            displayValue: str_102(UIStrings123.displayValueHttpBadCode, { statusCode: status })
          };
        } else if (status >= HTTP_CLIENT_ERROR_CODE_LOW2 || content === "") {
          return {
            score: 1,
            notApplicable: true
          };
        }
        if (content === null) {
          throw new Error(`Status ${status} was valid, but content was null`);
        }
        const validationErrors = validateRobots(content);
        const headings = [
          { key: "index", valueType: "text", label: "Line #" },
          { key: "line", valueType: "code", label: "Content" },
          { key: "message", valueType: "code", label: "Error" }
        ];
        const details = Audit.makeTableDetails(headings, validationErrors);
        let displayValue;
        if (validationErrors.length) {
          displayValue = str_102(UIStrings123.displayValueValidationError, { itemCount: validationErrors.length });
        }
        return {
          score: Number(validationErrors.length === 0),
          details,
          displayValue
        };
      }
    };
    robots_txt_default2 = RobotsTxt2;
  }
});

// core/audits/third-party-cookies.js
var third_party_cookies_exports = {};
__export(third_party_cookies_exports, {
  UIStrings: () => UIStrings124,
  default: () => third_party_cookies_default
});
var UIStrings124, str_103, ThirdPartyCookies, third_party_cookies_default;
var init_third_party_cookies = __esm({
  "core/audits/third-party-cookies.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2023 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings124 = {
      /** Title of a Lighthouse audit that provides detail on the use of third party cookies. This descriptive title is shown to users when the page does not use third party cookies. */
      title: "Avoids third-party cookies",
      /** Title of a Lighthouse audit that provides detail on the use of third party cookies. This descriptive title is shown to users when the page uses third party cookies. */
      failureTitle: "Uses third-party cookies",
      /** Description of a Lighthouse audit that tells the user why they should not use third party cookies on their page. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Third-party cookies may be blocked in some contexts. [Learn more about preparing for third-party cookie restrictions](https://privacysandbox.google.com/cookies/prepare/overview).",
      /** [ICU Syntax] Label for the audit identifying the number of third-party cookies. */
      displayValue: `{itemCount, plural,
    =1 {1 cookie found}
    other {# cookies found}
    }`
    };
    str_103 = createIcuMessageFn({ url: "core/audits/third-party-cookies.js" }.url, UIStrings124);
    ThirdPartyCookies = class extends Audit {
      static {
        __name(this, "ThirdPartyCookies");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "third-party-cookies",
          title: str_103(UIStrings124.title),
          failureTitle: str_103(UIStrings124.failureTitle),
          description: str_103(UIStrings124.description),
          requiredArtifacts: ["InspectorIssues"]
        };
      }
      /**
       * https://source.chromium.org/chromium/chromium/src/+/d2fcd4ba302baeabf4b96d8fa9fdb7a215736c31:third_party/devtools-frontend/src/front_end/models/issues_manager/CookieIssue.ts;l=62-69
       * @param {LH.Crdp.Audits.CookieIssueDetails} cookieIssue
       * @return {string}
       */
      static getCookieId(cookieIssue) {
        if (!cookieIssue.cookie) {
          return cookieIssue.rawCookieLine ?? "no-cookie-info";
        }
        const { domain, path: path7, name } = cookieIssue.cookie;
        const cookieId = `${domain};${path7};${name}`;
        return cookieId;
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts) {
        const seenCookies = /* @__PURE__ */ new Set();
        const items = [];
        for (const issue of artifacts.InspectorIssues.cookieIssue ?? []) {
          const isPhaseoutWarn = issue.cookieWarningReasons.includes("WarnThirdPartyPhaseout");
          const isPhaseoutExclude = issue.cookieExclusionReasons.includes("ExcludeThirdPartyPhaseout");
          if (!isPhaseoutWarn && !isPhaseoutExclude) continue;
          const name = issue.cookie?.name || issue.rawCookieLine;
          if (!name) continue;
          const cookieId = this.getCookieId(issue);
          if (seenCookies.has(cookieId)) continue;
          seenCookies.add(cookieId);
          items.push({
            name,
            url: issue.cookieUrl
          });
        }
        const headings = [
          { key: "name", valueType: "text", label: str_103(UIStrings.columnName) },
          { key: "url", valueType: "url", label: str_103(UIStrings.columnURL) }
        ];
        const details = Audit.makeTableDetails(headings, items);
        let displayValue;
        if (items.length > 0) {
          displayValue = str_103(UIStrings124.displayValue, { itemCount: items.length });
        }
        return {
          score: items.length ? 0 : 1,
          displayValue,
          details
        };
      }
    };
    third_party_cookies_default = ThirdPartyCookies;
  }
});

// core/audits/trusted-types-xss.js
var trusted_types_xss_exports = {};
__export(trusted_types_xss_exports, {
  UIStrings: () => UIStrings125,
  default: () => trusted_types_xss_default
});
var import_csp2, UIStrings125, str_104, TrustedTypesXss, trusted_types_xss_default;
var init_trusted_types_xss = __esm({
  "core/audits/trusted-types-xss.js"() {
    "use strict";
    init_process_global();
    import_csp2 = __toESM(require_csp(), 1);
    init_audit();
    init_main_resource();
    init_i18n();
    init_csp_evaluator();
    /**
     * @license
     * Copyright 2025 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings125 = {
      /** Title of a Lighthouse audit that evaluates whether the set CSP header and Trusted Types directive is mitigating DOM-based XSS. "CSP" stands for "Content-Security-Policy" and should not be translated. "XSS" stands for "Cross Site Scripting" and should not be translated. */
      title: "Mitigate DOM-based XSS with Trusted Types",
      /** Description of a Lighthouse audit that evaluates whether the set CSP header and Trusted Types directive is mitigating DOM-based XSS. This is displayed after a user expands the section to see more. "CSP" stands for "Content-Security-Policy" and should not be translated. "XSS" stands for "Cross Site Scripting" and should not be translated. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "The `require-trusted-types-for` directive in the `Content-Security-Policy` (CSP) header instructs user agents to control the data passed to DOM XSS sink functions. [Learn more about mitigating DOM-based XSS with Trusted Types](https://developer.chrome.com/docs/lighthouse/best-practices/trusted-types-xss).",
      /** Summary text for the results of a Lighthouse audit that evaluates whether the set CSP header and Trusted Types directive is mitigating DOM-based XSS. This text is displayed if the page does not respond with a CSP header and a Trusted Types directive. "CSP" stands for "Content-Security-Policy" and should not be translated. "XSS" stands for "Cross Site Scripting" and should not be translated. */
      noTrustedTypesToMitigateXss: "No `Content-Security-Policy` header with Trusted Types directive found",
      /** Label for a column in a data table; entries will be the severity of an issue with the page's CSP and Trusted Types directive. */
      columnSeverity: "Severity"
    };
    str_104 = createIcuMessageFn({ url: "core/audits/trusted-types-xss.js" }.url, UIStrings125);
    TrustedTypesXss = class extends Audit {
      static {
        __name(this, "TrustedTypesXss");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "trusted-types-xss",
          scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
          title: str_104(UIStrings125.title),
          description: str_104(UIStrings125.description),
          requiredArtifacts: ["DevtoolsLog", "MetaElements", "URL"],
          supportedModes: ["navigation"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<{cspHeaders: string[], cspMetaTags: string[]}>}
       */
      static async getRawCsps(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        const mainResource = await MainResourceComputed.request({ devtoolsLog, URL: artifacts.URL }, context);
        const cspMetaTags = artifacts.MetaElements.filter((m) => {
          return m.httpEquiv && m.httpEquiv.toLowerCase() === "content-security-policy";
        }).flatMap((m) => (m.content || "").split(",")).filter((rawCsp) => rawCsp.replace(/\s/g, ""));
        const cspHeaders = mainResource.responseHeaders.filter((h) => {
          return h.name.toLowerCase() === "content-security-policy";
        }).flatMap((h) => h.value.split(",")).filter((rawCsp) => rawCsp.replace(/\s/g, ""));
        return { cspHeaders, cspMetaTags };
      }
      /**
       * @param {LH.IcuMessage | string} findingDescription
       * @param {LH.IcuMessage=} severity
       * @return {LH.Audit.Details.TableItem}
       */
      static findingToTableItem(findingDescription, severity) {
        return {
          description: findingDescription,
          severity
        };
      }
      /**
       * @param {string[]} cspHeaders
       * @param {string[]} cspMetaTags
       * @return {{score: number, results: LH.Audit.Details.TableItem[]}}
       */
      static constructResults(cspHeaders, cspMetaTags) {
        const rawCsps = [...cspHeaders, ...cspMetaTags];
        const parsedCsps = rawCsps.map(parseCsp);
        for (const pc of parsedCsps) {
          const directiveValues = pc.directives[pc.getEffectiveDirective(
            import_csp2.Directive.REQUIRE_TRUSTED_TYPES_FOR
          )] || [];
          if (directiveValues.includes("'script'")) {
            return { score: 1, results: [] };
          }
        }
        return {
          score: 0,
          results: [{
            severity: str_104(UIStrings.itemSeverityHigh),
            description: str_104(UIStrings125.noTrustedTypesToMitigateXss)
          }]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts, context) {
        const { cspHeaders, cspMetaTags } = await this.getRawCsps(artifacts, context);
        const { score, results } = this.constructResults(cspHeaders, cspMetaTags);
        const headings = [
          /* eslint-disable max-len */
          { key: "description", valueType: "text", subItemsHeading: { key: "description" }, label: str_104(UIStrings.columnDescription) },
          { key: "severity", valueType: "text", subItemsHeading: { key: "severity" }, label: str_104(UIStrings125.columnSeverity) }
          /* eslint-enable max-len */
        ];
        const details = Audit.makeTableDetails(headings, results);
        return {
          score,
          notApplicable: !results.length,
          details
        };
      }
    };
    trusted_types_xss_default = TrustedTypesXss;
  }
});

// replace-modules:/Users/alexrudenko/src/lighthouse/core/computed/entity-classification.js
var entity_classification_exports = {};
__export(entity_classification_exports, {
  EntityClassification: () => EntityClassification,
  EntityClassificationComputed: () => EntityClassificationComputed
});
var EntityClassification, EntityClassificationComputed;
var init_entity_classification = __esm({
  "replace-modules:/Users/alexrudenko/src/lighthouse/core/computed/entity-classification.js"() {
    init_process_global();
    init_computed_artifact();
    EntityClassification = class {
      static {
        __name(this, "EntityClassification");
      }
      static async compute_() {
        return {
          entityByUrl: /* @__PURE__ */ new Map(),
          urlsByEntity: /* @__PURE__ */ new Map(),
          isFirstParty: /* @__PURE__ */ __name(() => false, "isFirstParty")
        };
      }
    };
    EntityClassificationComputed = makeComputedArtifact(EntityClassification, null);
  }
});

// core/audits/valid-source-maps.js
var valid_source_maps_exports = {};
__export(valid_source_maps_exports, {
  UIStrings: () => UIStrings126,
  default: () => valid_source_maps_default
});
var UIStrings126, str_105, LARGE_JS_BYTE_THRESHOLD, ValidSourceMaps, valid_source_maps_default;
var init_valid_source_maps = __esm({
  "core/audits/valid-source-maps.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_entity_classification();
    init_i18n();
    init_util();
    init_url_utils();
    /**
     * @license Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings126 = {
      /** Title of a Lighthouse audit that provides detail on HTTP to HTTPS redirects. This descriptive title is shown to users when HTTP traffic is redirected to HTTPS. */
      title: "Page has valid source maps",
      /** Title of a Lighthouse audit that provides detail on HTTP to HTTPS redirects. This descriptive title is shown to users when HTTP traffic is not redirected to HTTPS. */
      failureTitle: "Missing source maps for large first-party JavaScript",
      /** Description of a Lighthouse audit that tells the user that their JavaScript source maps are invalid or missing. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
      description: "Source maps translate minified code to the original source code. This helps developers debug in production. In addition, Lighthouse is able to provide further insights. Consider deploying source maps to take advantage of these benefits. [Learn more about source maps](https://developer.chrome.com/docs/devtools/javascript/source-maps/).",
      /** Label for a column in a data table. Entries will be URLs to JavaScript source maps. */
      columnMapURL: "Map URL",
      /** Label for a possible error message indicating that a source map for a large, first-party JavaScript script is missing. */
      missingSourceMapErrorMessage: "Large JavaScript file is missing a source map",
      /** Label for a possible error message indicating that the content of a source map is invalid because it is missing items in the sourcesContent attribute. */
      missingSourceMapItemsWarningMesssage: `{missingItems, plural,
    =1 {Warning: missing 1 item in \`.sourcesContent\`}
    other {Warning: missing # items in \`.sourcesContent\`}
    }`
    };
    str_105 = createIcuMessageFn({ url: "core/audits/valid-source-maps.js" }.url, UIStrings126);
    LARGE_JS_BYTE_THRESHOLD = 500 * 1024;
    ValidSourceMaps = class extends Audit {
      static {
        __name(this, "ValidSourceMaps");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "valid-source-maps",
          title: str_105(UIStrings126.title),
          failureTitle: str_105(UIStrings126.failureTitle),
          description: str_105(UIStrings126.description),
          requiredArtifacts: ["Scripts", "SourceMaps", "URL", "DevtoolsLog"]
        };
      }
      /**
       * Returns true if the size of the script exceeds a static threshold.
       * @param {LH.Artifacts.Script} script
       * @param {LH.Artifacts.EntityClassification} classifiedEntities
       * @return {boolean}
       */
      static isLargeFirstPartyJS(script, classifiedEntities) {
        const url = script.url;
        if (!script.length || !url) return false;
        if (!url_utils_default.isValid(url)) return false;
        if (!Util.createOrReturnURL(url).protocol.startsWith("http")) return false;
        const isLargeJS = script.length >= LARGE_JS_BYTE_THRESHOLD;
        return classifiedEntities.isFirstParty(url) && isLargeJS;
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Audit.Context} context
       */
      static async audit(artifacts, context) {
        const { SourceMaps: SourceMaps2 } = artifacts;
        const devtoolsLog = artifacts.DevtoolsLog;
        const classifiedEntities = await EntityClassification.request(
          { URL: artifacts.URL, devtoolsLog },
          context
        );
        const isMissingMapForLargeFirstPartyScriptUrl = /* @__PURE__ */ new Set();
        let missingMapsForLargeFirstPartyFile = false;
        const results = [];
        for (const script of artifacts.Scripts) {
          const sourceMap = SourceMaps2.find((m) => m.scriptId === script.scriptId);
          const errors = [];
          const isLargeFirstParty = this.isLargeFirstPartyJS(script, classifiedEntities);
          if (isLargeFirstParty && (!sourceMap || !sourceMap.map)) {
            missingMapsForLargeFirstPartyFile = true;
            isMissingMapForLargeFirstPartyScriptUrl.add(script.url);
            errors.push({ error: str_105(UIStrings126.missingSourceMapErrorMessage) });
          }
          if (sourceMap && !sourceMap.map) {
            errors.push({ error: sourceMap.errorMessage });
          }
          if (sourceMap?.map) {
            const sourcesContent = sourceMap.map.sourcesContent || [];
            let missingSourcesContentCount = 0;
            for (let i = 0; i < sourceMap.map.sources.length; i++) {
              if (sourcesContent.length < i || !sourcesContent[i]) missingSourcesContentCount += 1;
            }
            if (missingSourcesContentCount > 0) {
              errors.push({ error: str_105(
                UIStrings126.missingSourceMapItemsWarningMesssage,
                { missingItems: missingSourcesContentCount }
              ) });
            }
          }
          if (sourceMap || errors.length) {
            results.push({
              scriptUrl: script.url,
              sourceMapUrl: sourceMap?.sourceMapUrl,
              subItems: {
                type: (
                  /** @type {const} */
                  "subitems"
                ),
                items: errors
              }
            });
          }
        }
        const headings = [
          {
            key: "scriptUrl",
            valueType: "url",
            subItemsHeading: { key: "error" },
            label: str_105(UIStrings.columnURL)
          },
          { key: "sourceMapUrl", valueType: "url", label: str_105(UIStrings126.columnMapURL) }
        ];
        results.sort((a, b) => {
          const missingMapA = isMissingMapForLargeFirstPartyScriptUrl.has(a.scriptUrl);
          const missingMapB = isMissingMapForLargeFirstPartyScriptUrl.has(b.scriptUrl);
          if (missingMapA && !missingMapB) return -1;
          if (!missingMapA && missingMapB) return 1;
          if (a.subItems.items.length && !b.subItems.items.length) return -1;
          if (!a.subItems.items.length && b.subItems.items.length) return 1;
          return b.scriptUrl.localeCompare(a.scriptUrl);
        });
        return {
          score: missingMapsForLargeFirstPartyFile ? 0 : 1,
          details: Audit.makeTableDetails(headings, results)
        };
      }
    };
    valid_source_maps_default = ValidSourceMaps;
  }
});

// core/audits/webmcp-form-coverage.js
var webmcp_form_coverage_exports = {};
__export(webmcp_form_coverage_exports, {
  UIStrings: () => UIStrings127,
  default: () => webmcp_form_coverage_default
});
var UIStrings127, str_106, WebMcpFormCoverage, webmcp_form_coverage_default;
var init_webmcp_form_coverage = __esm({
  "core/audits/webmcp-form-coverage.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings127 = {
      /** Title of a Lighthouse audit that lists forms found in the page for WebMCP coverage. "WebMCP" stands for "Web Model Context Protocol" and should not be translated. */
      title: "WebMCP form coverage",
      /** Description of a Lighthouse audit that lists forms found in the page and indicates whether they have WebMCP declarative tool annotations. This is displayed after a user expands the section to see more. No character length limits. "WebMCP" stands for "Web Model Context Protocol" and should not be translated. */
      description: "Consider adding [WebMCP](http://goo.gle/webmcp-docs) annotations to the forms listed below. This helps AI agents identify and interact with these forms more reliably.",
      /** [ICU Syntax] Label for the audit identifying the number of forms missing annotations. "WebMCP" stands for "Web Model Context Protocol" and should not be translated. */
      displayValue: `{itemCount, plural,
    =1 {1 form missing annotations}
    other {# forms missing annotations}
    }`,
      /** Label for a column in a data table; entries will be the form element found on the page. */
      columnForm: "Form"
    };
    str_106 = createIcuMessageFn({ url: "core/audits/webmcp-form-coverage.js" }.url, UIStrings127);
    WebMcpFormCoverage = class extends Audit {
      static {
        __name(this, "WebMcpFormCoverage");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "webmcp-form-coverage",
          scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
          title: str_106(UIStrings127.title),
          description: str_106(UIStrings127.description),
          requiredArtifacts: ["Inputs", "WebMCP"],
          supportedModes: ["navigation", "snapshot"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        const forms = artifacts.Inputs.forms;
        if (forms.length === 0 || !artifacts.WebMCP.isSupported) {
          return {
            notApplicable: true,
            score: 1
          };
        }
        const withoutTools = [];
        for (const form of forms) {
          const hasToolName = !!form.webMcpToolname;
          const hasToolDescription = !!form.webMcpTooldescription;
          if (!hasToolName && !hasToolDescription) {
            withoutTools.push({
              node: Audit.makeNodeItem(form.node)
            });
          }
        }
        if (withoutTools.length === 0) {
          return {
            notApplicable: true,
            score: 1
          };
        }
        const headings = [
          { key: "node", valueType: "node", label: str_106(UIStrings127.columnForm) }
        ];
        const details = Audit.makeTableDetails(headings, withoutTools);
        return {
          score: 1,
          displayValue: str_106(UIStrings127.displayValue, { itemCount: withoutTools.length }),
          details
        };
      }
    };
    webmcp_form_coverage_default = WebMcpFormCoverage;
  }
});

// core/audits/webmcp-registered-tools.js
var webmcp_registered_tools_exports = {};
__export(webmcp_registered_tools_exports, {
  UIStrings: () => UIStrings128,
  default: () => webmcp_registered_tools_default
});
var UIStrings128, str_107, WebMCPRegisteredTools, webmcp_registered_tools_default;
var init_webmcp_registered_tools = __esm({
  "core/audits/webmcp-registered-tools.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings128 = {
      /** Title of a Lighthouse audit that lists registered WebMCP tools. "WebMCP" stands for "Web Model Context Protocol" and should not be translated. */
      title: "WebMCP tools registered",
      /** Description of a Lighthouse audit that lists registered WebMCP tools. This is displayed after a user expands the section to see more. No character length limits. "WebMCP" stands for "Web Model Context Protocol", neither should be translated. */
      description: "Lists the [WebMCP tools](http://goo.gle/webmcp-docs) registered at the time of analysis.",
      /** Label for a column in a data table; entries will be the name of a WebMCP tool. */
      columnTool: "Tool name",
      /** Label for a column in a data table; entries will be the description of a WebMCP tool. */
      columnDescription: "Description",
      /** Label for a column in a data table; entries will be the source location where an imperative WebMCP tool was registered. */
      columnImperativeLocation: "Source Location",
      /** Label for a column in a data table; entries will be the DOM element associated with a declarative WebMCP tool. */
      columnDeclarativeElement: "Element",
      /** Label for a column in a data table; entries will be the input schema of a WebMCP tool. */
      columnInputSchema: "Input schema",
      /** Title for the table listing imperative WebMCP tools. */
      titleImperativeTools: "Imperative Tools",
      /** Title for the table listing declarative WebMCP tools. */
      titleDeclarativeTools: "Declarative Tools"
    };
    str_107 = createIcuMessageFn({ url: "core/audits/webmcp-registered-tools.js" }.url, UIStrings128);
    WebMCPRegisteredTools = class extends Audit {
      static {
        __name(this, "WebMCPRegisteredTools");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "webmcp-registered-tools",
          scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE,
          title: str_107(UIStrings128.title),
          description: str_107(UIStrings128.description),
          requiredArtifacts: ["WebMCP"],
          supportedModes: ["navigation", "snapshot"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {LH.Audit.Product}
       */
      static audit(artifacts) {
        if (!artifacts.WebMCP.isSupported) {
          return {
            notApplicable: true,
            score: 1
          };
        }
        const tools = artifacts.WebMCP.tools || [];
        const imperativeResults = [];
        const declarativeResults = [];
        for (const tool of tools) {
          const isDeclarative = typeof tool.backendNodeId === "number";
          let source;
          let element;
          if (isDeclarative && tool.nodeDetails) {
            element = Audit.makeNodeItem(tool.nodeDetails);
          } else if (isDeclarative) {
            element = `Node ID: ${tool.backendNodeId}`;
          } else if (tool.stackTrace) {
            const callFrame = tool.stackTrace.callFrames?.[0];
            if (callFrame) {
              source = Audit.makeSourceLocation(
                callFrame.url,
                callFrame.lineNumber,
                callFrame.columnNumber || 0
              );
            }
          }
          const item = {
            tool: tool.name,
            description: tool.description,
            inputSchema: JSON.stringify(tool.inputSchema, null, 2)
          };
          if (isDeclarative) {
            declarativeResults.push({
              ...item,
              element
            });
          } else {
            imperativeResults.push({
              ...item,
              source
            });
          }
        }
        const list = [];
        if (imperativeResults.length > 0) {
          const headings = [
            { key: "tool", valueType: "text", label: str_107(UIStrings128.columnTool) },
            { key: "description", valueType: "text", label: str_107(UIStrings128.columnDescription) },
            {
              key: "source",
              valueType: "source-location",
              label: str_107(UIStrings128.columnImperativeLocation)
            },
            { key: "inputSchema", valueType: "code", label: str_107(UIStrings128.columnInputSchema) }
          ];
          const table = Audit.makeTableDetails(headings, imperativeResults);
          list.push(Audit.makeListDetailSectionItem(table, str_107(UIStrings128.titleImperativeTools)));
        }
        if (declarativeResults.length > 0) {
          const headings = [
            { key: "tool", valueType: "text", label: str_107(UIStrings128.columnTool) },
            { key: "description", valueType: "text", label: str_107(UIStrings128.columnDescription) },
            { key: "element", valueType: "node", label: str_107(UIStrings128.columnDeclarativeElement) },
            { key: "inputSchema", valueType: "code", label: str_107(UIStrings128.columnInputSchema) }
          ];
          const table = Audit.makeTableDetails(headings, declarativeResults);
          list.push(Audit.makeListDetailSectionItem(table, str_107(UIStrings128.titleDeclarativeTools)));
        }
        if (list.length === 0) {
          return {
            score: 1
          };
        }
        return {
          score: 1,
          details: Audit.makeListDetails(list)
        };
      }
    };
    webmcp_registered_tools_default = WebMCPRegisteredTools;
  }
});

// core/audits/webmcp-schema-validity.js
var webmcp_schema_validity_exports = {};
__export(webmcp_schema_validity_exports, {
  UIStrings: () => UIStrings129,
  default: () => webmcp_schema_validity_default
});
var UIStrings129, str_108, WebMcpSchemaValidity, webmcp_schema_validity_default;
var init_webmcp_schema_validity = __esm({
  "core/audits/webmcp-schema-validity.js"() {
    "use strict";
    init_process_global();
    init_audit();
    init_i18n();
    /**
     * @license
     * Copyright 2026 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    UIStrings129 = {
      /** Title of a Lighthouse audit that evaluates WebMCP schema validity. This descriptive title is shown to users when there are no schema validity issues. "WebMCP" stands for "Web Model Context Protocol" and should not be translated. */
      title: "WebMCP schemas are valid",
      /** Title of a Lighthouse audit that provides detail on WebMCP schema validity. This descriptive title is shown to users when there are schema validity issues. "WebMCP" stands for "Web Model Context Protocol" and should not be translated. */
      failureTitle: "WebMCP schemas are invalid",
      /** Description of a Lighthouse audit that tells the user why they should ensure WebMCP schemas are valid. This is displayed after a user expands the section to see more. No character length limits. "WebMCP" stands for "Web Model Context Protocol" and should not be translated. */
      description: "Valid [WebMCP schemas](http://goo.gle/webmcp-docs) are required for AI agents to  understand and interact with tools correctly. Please fix any errors or warnings reported by the browser.",
      /** Header of the table column which displays the element. */
      columnElement: "Element",
      /** Header of the table column which displays the issue. */
      columnIssue: "Issue",
      /** Descriptive reason for why a form fails WebMCP validation due to missing `toolname` attribute. */
      missingToolName: "Form level `toolname` attribute is missing. Add it to define the tool name.",
      /** Descriptive reason for why a form fails WebMCP validation due to missing `tooldescription` attribute. */
      missingToolDescription: "Form level `tooldescription` attribute is missing. Add it to describe the tool for AI agents.",
      /** Descriptive reason for why a form field fails WebMCP validation due to missing `name` attribute for a required field. */
      missingRequiredParamName: "Missing `name` attribute for a required field. Add it to define the parameter name.",
      /** Descriptive reason for why a form field fails WebMCP validation due to missing `name` attribute for an optional field. */
      missingOptionalParamName: "Missing `name` attribute for an optional field. Add it to define the parameter name.",
      /** Descriptive reason for why a form field fails WebMCP validation due to missing description. */
      missingParamDescription: "Add a description to make this form more accessible for AI agents."
    };
    str_108 = createIcuMessageFn({ url: "core/audits/webmcp-schema-validity.js" }.url, UIStrings129);
    WebMcpSchemaValidity = class extends Audit {
      static {
        __name(this, "WebMcpSchemaValidity");
      }
      /**
       * @return {LH.Audit.Meta}
       */
      static get meta() {
        return {
          id: "webmcp-schema-validity",
          title: str_108(UIStrings129.title),
          failureTitle: str_108(UIStrings129.failureTitle),
          description: str_108(UIStrings129.description),
          requiredArtifacts: ["WebMCP", "WebMcpSchemaIssues"],
          supportedModes: ["navigation", "snapshot"]
        };
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @return {Promise<LH.Audit.Product>}
       */
      static async audit(artifacts) {
        if (!artifacts.WebMCP.isSupported) {
          return {
            notApplicable: true,
            score: 1
          };
        }
        const Severity = {
          ERROR: 1,
          WARNING: 2
        };
        const issueConfigs = {
          "FormModelContextMissingToolName": {
            severity: Severity.ERROR,
            description: str_108(UIStrings129.missingToolName)
          },
          "FormModelContextMissingToolDescription": {
            severity: Severity.ERROR,
            description: str_108(UIStrings129.missingToolDescription)
          },
          "FormModelContextRequiredParameterMissingName": {
            severity: Severity.ERROR,
            description: str_108(UIStrings129.missingRequiredParamName)
          },
          "FormModelContextParameterMissingTitleAndDescription": {
            severity: Severity.WARNING,
            description: str_108(UIStrings129.missingParamDescription)
          },
          "FormModelContextParameterMissingName": {
            severity: Severity.WARNING,
            description: str_108(UIStrings129.missingOptionalParamName)
          }
        };
        const rawIssues = artifacts.WebMcpSchemaIssues;
        const uniqueIssues = [
          ...new Map(
            rawIssues.map((issue) => [`${issue.violatingNodeId}_${issue.errorType}`, issue])
          ).values()
        ];
        const sortedUniqueIssues = uniqueIssues.sort((a, b) => {
          return (issueConfigs[a.errorType]?.severity || Severity.ERROR) - (issueConfigs[b.errorType]?.severity || Severity.ERROR);
        });
        const items = sortedUniqueIssues.map((issue) => {
          return {
            element: issue.nodeDetails ? Audit.makeNodeItem(issue.nodeDetails) : void 0,
            issue: issueConfigs[issue.errorType]?.description || ""
          };
        });
        const headings = [
          { key: "element", valueType: "node", label: str_108(UIStrings129.columnElement) },
          { key: "issue", valueType: "text", label: str_108(UIStrings129.columnIssue) }
        ];
        const details = Audit.makeTableDetails(headings, items);
        const hasErrors = sortedUniqueIssues.some((issue) => issueConfigs[issue.errorType]?.severity === Severity.ERROR);
        if ((artifacts.WebMCP.tools?.length || 0) === 0 && rawIssues.length === 0) {
          return {
            notApplicable: true,
            score: 1
          };
        }
        return {
          score: hasErrors ? 0 : items.length > 0 ? 0.5 : 1,
          details: items.length > 0 ? details : void 0
        };
      }
    };
    webmcp_schema_validity_default = WebMcpSchemaValidity;
  }
});

// replace-modules:/Users/alexrudenko/src/lighthouse/core/computed/speedline.js
var speedline_exports = {};
__export(speedline_exports, {
  Speedline: () => Speedline,
  SpeedlineComputed: () => SpeedlineComputed
});
var Speedline, SpeedlineComputed;
var init_speedline = __esm({
  "replace-modules:/Users/alexrudenko/src/lighthouse/core/computed/speedline.js"() {
    init_process_global();
    init_computed_artifact();
    init_lh_error();
    Speedline = class {
      static {
        __name(this, "Speedline");
      }
      static async compute_() {
        throw new LighthouseError(LighthouseError.errors.NO_SPEEDLINE_FRAMES);
      }
    };
    SpeedlineComputed = makeComputedArtifact(Speedline, null);
  }
});

// replace-modules:/Users/alexrudenko/src/lighthouse/core/computed/metrics/timing-summary.js
var timing_summary_exports = {};
__export(timing_summary_exports, {
  TimingSummary: () => TimingSummary,
  TimingSummaryComputed: () => TimingSummaryComputed
});
var TimingSummary, TimingSummaryComputed;
var init_timing_summary = __esm({
  "replace-modules:/Users/alexrudenko/src/lighthouse/core/computed/metrics/timing-summary.js"() {
    init_process_global();
    init_computed_artifact();
    TimingSummary = class {
      static {
        __name(this, "TimingSummary");
      }
      static async compute_() {
        return { metrics: {}, debugInfo: {} };
      }
    };
    TimingSummaryComputed = makeComputedArtifact(TimingSummary, null);
  }
});

// replace-modules:/Users/alexrudenko/src/lighthouse/core/computed/trace-engine-result.js
var trace_engine_result_exports = {};
__export(trace_engine_result_exports, {
  TraceEngineResult: () => TraceEngineResult,
  TraceEngineResultComputed: () => TraceEngineResultComputed
});
var TraceEngineResult, TraceEngineResultComputed;
var init_trace_engine_result = __esm({
  "replace-modules:/Users/alexrudenko/src/lighthouse/core/computed/trace-engine-result.js"() {
    init_process_global();
    init_computed_artifact();
    TraceEngineResult = class {
      static {
        __name(this, "TraceEngineResult");
      }
      static async compute_() {
        return { data: {}, insights: /* @__PURE__ */ new Map() };
      }
      static localizeFunction(str, fn) {
        return fn;
      }
    };
    TraceEngineResultComputed = makeComputedArtifact(TraceEngineResult, null);
  }
});

// lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/bf-cache-failures.js
var bf_cache_failures_exports = {};
__export(bf_cache_failures_exports, {
  default: () => bf_cache_failures_default
});
var ShimGatherer, bf_cache_failures_default;
var init_bf_cache_failures = __esm({
  "lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/bf-cache-failures.js"() {
    init_process_global();
    init_base_gatherer();
    ShimGatherer = class extends base_gatherer_default {
      static {
        __name(this, "ShimGatherer");
      }
      meta = { supportedModes: ["navigation", "timespan", "snapshot"] };
      static getDefaultTraceCategories() {
        return [];
      }
      getArtifact() {
        return void 0;
      }
    };
    bf_cache_failures_default = ShimGatherer;
  }
});

// lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/css-usage.js
var css_usage_exports = {};
__export(css_usage_exports, {
  default: () => css_usage_default
});
var ShimGatherer2, css_usage_default;
var init_css_usage = __esm({
  "lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/css-usage.js"() {
    init_process_global();
    init_base_gatherer();
    ShimGatherer2 = class extends base_gatherer_default {
      static {
        __name(this, "ShimGatherer");
      }
      meta = { supportedModes: ["navigation", "timespan", "snapshot"] };
      static getDefaultTraceCategories() {
        return [];
      }
      getArtifact() {
        return void 0;
      }
    };
    css_usage_default = ShimGatherer2;
  }
});

// lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/full-page-screenshot.js
var full_page_screenshot_exports = {};
__export(full_page_screenshot_exports, {
  default: () => full_page_screenshot_default
});
var ShimGatherer3, full_page_screenshot_default;
var init_full_page_screenshot = __esm({
  "lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/full-page-screenshot.js"() {
    init_process_global();
    init_base_gatherer();
    ShimGatherer3 = class extends base_gatherer_default {
      static {
        __name(this, "ShimGatherer");
      }
      meta = { supportedModes: ["navigation", "timespan", "snapshot"] };
      static getDefaultTraceCategories() {
        return [];
      }
      getArtifact() {
        return void 0;
      }
    };
    full_page_screenshot_default = ShimGatherer3;
  }
});

// lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/iframe-elements.js
var iframe_elements_exports = {};
__export(iframe_elements_exports, {
  default: () => iframe_elements_default
});
var ShimGatherer4, iframe_elements_default;
var init_iframe_elements = __esm({
  "lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/iframe-elements.js"() {
    init_process_global();
    init_base_gatherer();
    ShimGatherer4 = class extends base_gatherer_default {
      static {
        __name(this, "ShimGatherer");
      }
      meta = { supportedModes: ["navigation", "timespan", "snapshot"] };
      static getDefaultTraceCategories() {
        return [];
      }
      getArtifact() {
        return void 0;
      }
    };
    iframe_elements_default = ShimGatherer4;
  }
});

// lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/js-usage.js
var js_usage_exports = {};
__export(js_usage_exports, {
  default: () => js_usage_default
});
var ShimGatherer5, js_usage_default;
var init_js_usage = __esm({
  "lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/js-usage.js"() {
    init_process_global();
    init_base_gatherer();
    ShimGatherer5 = class extends base_gatherer_default {
      static {
        __name(this, "ShimGatherer");
      }
      meta = { supportedModes: ["navigation", "timespan", "snapshot"] };
      static getDefaultTraceCategories() {
        return [];
      }
      getArtifact() {
        return void 0;
      }
    };
    js_usage_default = ShimGatherer5;
  }
});

// lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/network-user-agent.js
var network_user_agent_exports = {};
__export(network_user_agent_exports, {
  default: () => network_user_agent_default
});
var ShimGatherer6, network_user_agent_default;
var init_network_user_agent = __esm({
  "lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/network-user-agent.js"() {
    init_process_global();
    init_base_gatherer();
    ShimGatherer6 = class extends base_gatherer_default {
      static {
        __name(this, "ShimGatherer");
      }
      meta = { supportedModes: ["navigation", "timespan", "snapshot"] };
      static getDefaultTraceCategories() {
        return [];
      }
      getArtifact() {
        return void 0;
      }
    };
    network_user_agent_default = ShimGatherer6;
  }
});

// lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/stylesheets.js
var stylesheets_exports = {};
__export(stylesheets_exports, {
  default: () => stylesheets_default
});
var ShimGatherer7, stylesheets_default;
var init_stylesheets = __esm({
  "lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/stylesheets.js"() {
    init_process_global();
    init_base_gatherer();
    ShimGatherer7 = class extends base_gatherer_default {
      static {
        __name(this, "ShimGatherer");
      }
      meta = { supportedModes: ["navigation", "timespan", "snapshot"] };
      static getDefaultTraceCategories() {
        return [];
      }
      getArtifact() {
        return void 0;
      }
    };
    stylesheets_default = ShimGatherer7;
  }
});

// lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/trace-elements.js
var trace_elements_exports = {};
__export(trace_elements_exports, {
  default: () => trace_elements_default
});
var ShimGatherer8, trace_elements_default;
var init_trace_elements = __esm({
  "lh-gatherer-shim:/Users/alexrudenko/src/lighthouse/core/gather/gatherers/trace-elements.js"() {
    init_process_global();
    init_base_gatherer();
    ShimGatherer8 = class extends base_gatherer_default {
      static {
        __name(this, "ShimGatherer");
      }
      meta = { supportedModes: ["navigation", "timespan", "snapshot"] };
      static getDefaultTraceCategories() {
        return [];
      }
      getArtifact() {
        return void 0;
      }
    };
    trace_elements_default = ShimGatherer8;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/autocomplete.js
var autocomplete_exports = {};
__export(autocomplete_exports, {
  default: () => autocomplete_default
});
var ShimAudit, autocomplete_default;
var init_autocomplete = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/autocomplete.js"() {
    init_process_global();
    init_audit();
    ShimAudit = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "autocomplete",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    autocomplete_default = ShimAudit;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/bf-cache.js
var bf_cache_exports = {};
__export(bf_cache_exports, {
  default: () => bf_cache_default
});
var ShimAudit2, bf_cache_default;
var init_bf_cache = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/bf-cache.js"() {
    init_process_global();
    init_audit();
    ShimAudit2 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "bf-cache",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    bf_cache_default = ShimAudit2;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/bootup-time.js
var bootup_time_exports = {};
__export(bootup_time_exports, {
  default: () => bootup_time_default
});
var ShimAudit3, bootup_time_default;
var init_bootup_time = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/bootup-time.js"() {
    init_process_global();
    init_audit();
    ShimAudit3 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "bootup-time",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    bootup_time_default = ShimAudit3;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/total-byte-weight.js
var total_byte_weight_exports = {};
__export(total_byte_weight_exports, {
  default: () => total_byte_weight_default
});
var ShimAudit4, total_byte_weight_default;
var init_total_byte_weight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/total-byte-weight.js"() {
    init_process_global();
    init_audit();
    ShimAudit4 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "total-byte-weight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    total_byte_weight_default = ShimAudit4;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/unminified-css.js
var unminified_css_exports = {};
__export(unminified_css_exports, {
  default: () => unminified_css_default
});
var ShimAudit5, unminified_css_default;
var init_unminified_css = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/unminified-css.js"() {
    init_process_global();
    init_audit();
    ShimAudit5 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "unminified-css",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    unminified_css_default = ShimAudit5;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/unminified-javascript.js
var unminified_javascript_exports = {};
__export(unminified_javascript_exports, {
  default: () => unminified_javascript_default
});
var ShimAudit6, unminified_javascript_default;
var init_unminified_javascript = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/unminified-javascript.js"() {
    init_process_global();
    init_audit();
    ShimAudit6 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "unminified-javascript",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    unminified_javascript_default = ShimAudit6;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/unused-css-rules.js
var unused_css_rules_exports = {};
__export(unused_css_rules_exports, {
  default: () => unused_css_rules_default
});
var ShimAudit7, unused_css_rules_default;
var init_unused_css_rules = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/unused-css-rules.js"() {
    init_process_global();
    init_audit();
    ShimAudit7 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "unused-css-rules",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    unused_css_rules_default = ShimAudit7;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/unused-javascript.js
var unused_javascript_exports = {};
__export(unused_javascript_exports, {
  default: () => unused_javascript_default
});
var ShimAudit8, unused_javascript_default;
var init_unused_javascript = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/byte-efficiency/unused-javascript.js"() {
    init_process_global();
    init_audit();
    ShimAudit8 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "unused-javascript",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    unused_javascript_default = ShimAudit8;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/diagnostics.js
var diagnostics_exports = {};
__export(diagnostics_exports, {
  default: () => diagnostics_default
});
var ShimAudit9, diagnostics_default;
var init_diagnostics = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/diagnostics.js"() {
    init_process_global();
    init_audit();
    ShimAudit9 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "diagnostics",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    diagnostics_default = ShimAudit9;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/final-screenshot.js
var final_screenshot_exports = {};
__export(final_screenshot_exports, {
  default: () => final_screenshot_default
});
var ShimAudit10, final_screenshot_default;
var init_final_screenshot = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/final-screenshot.js"() {
    init_process_global();
    init_audit();
    ShimAudit10 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "final-screenshot",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    final_screenshot_default = ShimAudit10;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/cache-insight.js
var cache_insight_exports = {};
__export(cache_insight_exports, {
  default: () => cache_insight_default
});
var ShimAudit11, cache_insight_default;
var init_cache_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/cache-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit11 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "cache-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    cache_insight_default = ShimAudit11;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/cls-culprits-insight.js
var cls_culprits_insight_exports = {};
__export(cls_culprits_insight_exports, {
  default: () => cls_culprits_insight_default
});
var ShimAudit12, cls_culprits_insight_default;
var init_cls_culprits_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/cls-culprits-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit12 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "cls-culprits-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    cls_culprits_insight_default = ShimAudit12;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/document-latency-insight.js
var document_latency_insight_exports = {};
__export(document_latency_insight_exports, {
  default: () => document_latency_insight_default
});
var ShimAudit13, document_latency_insight_default;
var init_document_latency_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/document-latency-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit13 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "document-latency-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    document_latency_insight_default = ShimAudit13;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/dom-size-insight.js
var dom_size_insight_exports = {};
__export(dom_size_insight_exports, {
  default: () => dom_size_insight_default
});
var ShimAudit14, dom_size_insight_default;
var init_dom_size_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/dom-size-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit14 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "dom-size-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    dom_size_insight_default = ShimAudit14;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/duplicated-javascript-insight.js
var duplicated_javascript_insight_exports = {};
__export(duplicated_javascript_insight_exports, {
  default: () => duplicated_javascript_insight_default
});
var ShimAudit15, duplicated_javascript_insight_default;
var init_duplicated_javascript_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/duplicated-javascript-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit15 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "duplicated-javascript-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    duplicated_javascript_insight_default = ShimAudit15;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/font-display-insight.js
var font_display_insight_exports = {};
__export(font_display_insight_exports, {
  default: () => font_display_insight_default
});
var ShimAudit16, font_display_insight_default;
var init_font_display_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/font-display-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit16 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "font-display-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    font_display_insight_default = ShimAudit16;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/forced-reflow-insight.js
var forced_reflow_insight_exports = {};
__export(forced_reflow_insight_exports, {
  default: () => forced_reflow_insight_default
});
var ShimAudit17, forced_reflow_insight_default;
var init_forced_reflow_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/forced-reflow-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit17 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "forced-reflow-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    forced_reflow_insight_default = ShimAudit17;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/image-delivery-insight.js
var image_delivery_insight_exports = {};
__export(image_delivery_insight_exports, {
  default: () => image_delivery_insight_default
});
var ShimAudit18, image_delivery_insight_default;
var init_image_delivery_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/image-delivery-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit18 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "image-delivery-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    image_delivery_insight_default = ShimAudit18;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/inp-breakdown-insight.js
var inp_breakdown_insight_exports = {};
__export(inp_breakdown_insight_exports, {
  default: () => inp_breakdown_insight_default
});
var ShimAudit19, inp_breakdown_insight_default;
var init_inp_breakdown_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/inp-breakdown-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit19 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "inp-breakdown-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    inp_breakdown_insight_default = ShimAudit19;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/lcp-breakdown-insight.js
var lcp_breakdown_insight_exports = {};
__export(lcp_breakdown_insight_exports, {
  default: () => lcp_breakdown_insight_default
});
var ShimAudit20, lcp_breakdown_insight_default;
var init_lcp_breakdown_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/lcp-breakdown-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit20 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "lcp-breakdown-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    lcp_breakdown_insight_default = ShimAudit20;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/lcp-discovery-insight.js
var lcp_discovery_insight_exports = {};
__export(lcp_discovery_insight_exports, {
  default: () => lcp_discovery_insight_default
});
var ShimAudit21, lcp_discovery_insight_default;
var init_lcp_discovery_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/lcp-discovery-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit21 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "lcp-discovery-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    lcp_discovery_insight_default = ShimAudit21;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/legacy-javascript-insight.js
var legacy_javascript_insight_exports = {};
__export(legacy_javascript_insight_exports, {
  default: () => legacy_javascript_insight_default
});
var ShimAudit22, legacy_javascript_insight_default;
var init_legacy_javascript_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/legacy-javascript-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit22 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "legacy-javascript-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    legacy_javascript_insight_default = ShimAudit22;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/modern-http-insight.js
var modern_http_insight_exports = {};
__export(modern_http_insight_exports, {
  default: () => modern_http_insight_default
});
var ShimAudit23, modern_http_insight_default;
var init_modern_http_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/modern-http-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit23 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "modern-http-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    modern_http_insight_default = ShimAudit23;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/network-dependency-tree-insight.js
var network_dependency_tree_insight_exports = {};
__export(network_dependency_tree_insight_exports, {
  default: () => network_dependency_tree_insight_default
});
var ShimAudit24, network_dependency_tree_insight_default;
var init_network_dependency_tree_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/network-dependency-tree-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit24 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "network-dependency-tree-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    network_dependency_tree_insight_default = ShimAudit24;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/render-blocking-insight.js
var render_blocking_insight_exports = {};
__export(render_blocking_insight_exports, {
  default: () => render_blocking_insight_default
});
var ShimAudit25, render_blocking_insight_default;
var init_render_blocking_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/render-blocking-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit25 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "render-blocking-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    render_blocking_insight_default = ShimAudit25;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/slow-css-selector-insight.js
var slow_css_selector_insight_exports = {};
__export(slow_css_selector_insight_exports, {
  default: () => slow_css_selector_insight_default
});
var ShimAudit26, slow_css_selector_insight_default;
var init_slow_css_selector_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/slow-css-selector-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit26 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "slow-css-selector-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    slow_css_selector_insight_default = ShimAudit26;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/third-parties-insight.js
var third_parties_insight_exports = {};
__export(third_parties_insight_exports, {
  default: () => third_parties_insight_default
});
var ShimAudit27, third_parties_insight_default;
var init_third_parties_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/third-parties-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit27 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "third-parties-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    third_parties_insight_default = ShimAudit27;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/viewport-insight.js
var viewport_insight_exports = {};
__export(viewport_insight_exports, {
  default: () => viewport_insight_default
});
var ShimAudit28, viewport_insight_default;
var init_viewport_insight = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/insights/viewport-insight.js"() {
    init_process_global();
    init_audit();
    ShimAudit28 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "viewport-insight",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    viewport_insight_default = ShimAudit28;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/layout-shifts.js
var layout_shifts_exports = {};
__export(layout_shifts_exports, {
  default: () => layout_shifts_default
});
var ShimAudit29, layout_shifts_default;
var init_layout_shifts = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/layout-shifts.js"() {
    init_process_global();
    init_audit();
    ShimAudit29 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "layout-shifts",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    layout_shifts_default = ShimAudit29;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/long-tasks.js
var long_tasks_exports = {};
__export(long_tasks_exports, {
  default: () => long_tasks_default
});
var ShimAudit30, long_tasks_default;
var init_long_tasks = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/long-tasks.js"() {
    init_process_global();
    init_audit();
    ShimAudit30 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "long-tasks",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    long_tasks_default = ShimAudit30;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/main-thread-tasks.js
var main_thread_tasks_exports = {};
__export(main_thread_tasks_exports, {
  default: () => main_thread_tasks_default
});
var ShimAudit31, main_thread_tasks_default;
var init_main_thread_tasks = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/main-thread-tasks.js"() {
    init_process_global();
    init_audit();
    ShimAudit31 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "main-thread-tasks",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    main_thread_tasks_default = ShimAudit31;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/mainthread-work-breakdown.js
var mainthread_work_breakdown_exports = {};
__export(mainthread_work_breakdown_exports, {
  default: () => mainthread_work_breakdown_default
});
var ShimAudit32, mainthread_work_breakdown_default;
var init_mainthread_work_breakdown = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/mainthread-work-breakdown.js"() {
    init_process_global();
    init_audit();
    ShimAudit32 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "mainthread-work-breakdown",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    mainthread_work_breakdown_default = ShimAudit32;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics.js
var metrics_exports2 = {};
__export(metrics_exports2, {
  default: () => metrics_default
});
var ShimAudit33, metrics_default;
var init_metrics2 = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics.js"() {
    init_process_global();
    init_audit();
    ShimAudit33 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "metrics",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    metrics_default = ShimAudit33;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/first-contentful-paint.js
var first_contentful_paint_exports = {};
__export(first_contentful_paint_exports, {
  default: () => first_contentful_paint_default
});
var ShimAudit34, first_contentful_paint_default;
var init_first_contentful_paint = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/first-contentful-paint.js"() {
    init_process_global();
    init_audit();
    ShimAudit34 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "first-contentful-paint",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    first_contentful_paint_default = ShimAudit34;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/interaction-to-next-paint.js
var interaction_to_next_paint_exports = {};
__export(interaction_to_next_paint_exports, {
  default: () => interaction_to_next_paint_default
});
var ShimAudit35, interaction_to_next_paint_default;
var init_interaction_to_next_paint = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/interaction-to-next-paint.js"() {
    init_process_global();
    init_audit();
    ShimAudit35 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "interaction-to-next-paint",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    interaction_to_next_paint_default = ShimAudit35;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/interactive.js
var interactive_exports = {};
__export(interactive_exports, {
  default: () => interactive_default
});
var ShimAudit36, interactive_default;
var init_interactive = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/interactive.js"() {
    init_process_global();
    init_audit();
    ShimAudit36 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "interactive",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    interactive_default = ShimAudit36;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/largest-contentful-paint.js
var largest_contentful_paint_exports = {};
__export(largest_contentful_paint_exports, {
  default: () => largest_contentful_paint_default
});
var ShimAudit37, largest_contentful_paint_default;
var init_largest_contentful_paint = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/largest-contentful-paint.js"() {
    init_process_global();
    init_audit();
    ShimAudit37 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "largest-contentful-paint",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    largest_contentful_paint_default = ShimAudit37;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/max-potential-fid.js
var max_potential_fid_exports = {};
__export(max_potential_fid_exports, {
  default: () => max_potential_fid_default
});
var ShimAudit38, max_potential_fid_default;
var init_max_potential_fid = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/max-potential-fid.js"() {
    init_process_global();
    init_audit();
    ShimAudit38 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "max-potential-fid",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    max_potential_fid_default = ShimAudit38;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/speed-index.js
var speed_index_exports = {};
__export(speed_index_exports, {
  default: () => speed_index_default
});
var ShimAudit39, speed_index_default;
var init_speed_index = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/speed-index.js"() {
    init_process_global();
    init_audit();
    ShimAudit39 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "speed-index",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    speed_index_default = ShimAudit39;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/total-blocking-time.js
var total_blocking_time_exports = {};
__export(total_blocking_time_exports, {
  default: () => total_blocking_time_default
});
var ShimAudit40, total_blocking_time_default;
var init_total_blocking_time = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/metrics/total-blocking-time.js"() {
    init_process_global();
    init_audit();
    ShimAudit40 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "total-blocking-time",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    total_blocking_time_default = ShimAudit40;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/network-requests.js
var network_requests_exports = {};
__export(network_requests_exports, {
  default: () => network_requests_default
});
var ShimAudit41, network_requests_default;
var init_network_requests = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/network-requests.js"() {
    init_process_global();
    init_audit();
    ShimAudit41 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "network-requests",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    network_requests_default = ShimAudit41;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/network-rtt.js
var network_rtt_exports = {};
__export(network_rtt_exports, {
  default: () => network_rtt_default
});
var ShimAudit42, network_rtt_default;
var init_network_rtt = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/network-rtt.js"() {
    init_process_global();
    init_audit();
    ShimAudit42 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "network-rtt",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    network_rtt_default = ShimAudit42;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/network-server-latency.js
var network_server_latency_exports = {};
__export(network_server_latency_exports, {
  default: () => network_server_latency_default
});
var ShimAudit43, network_server_latency_default;
var init_network_server_latency = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/network-server-latency.js"() {
    init_process_global();
    init_audit();
    ShimAudit43 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "network-server-latency",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    network_server_latency_default = ShimAudit43;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/non-composited-animations.js
var non_composited_animations_exports = {};
__export(non_composited_animations_exports, {
  default: () => non_composited_animations_default
});
var ShimAudit44, non_composited_animations_default;
var init_non_composited_animations = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/non-composited-animations.js"() {
    init_process_global();
    init_audit();
    ShimAudit44 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "non-composited-animations",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    non_composited_animations_default = ShimAudit44;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/oopif-iframe-test-audit.js
var oopif_iframe_test_audit_exports = {};
__export(oopif_iframe_test_audit_exports, {
  default: () => oopif_iframe_test_audit_default
});
var ShimAudit45, oopif_iframe_test_audit_default;
var init_oopif_iframe_test_audit = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/oopif-iframe-test-audit.js"() {
    init_process_global();
    init_audit();
    ShimAudit45 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "oopif-iframe-test-audit",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    oopif_iframe_test_audit_default = ShimAudit45;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/predictive-perf.js
var predictive_perf_exports = {};
__export(predictive_perf_exports, {
  default: () => predictive_perf_default
});
var ShimAudit46, predictive_perf_default;
var init_predictive_perf = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/predictive-perf.js"() {
    init_process_global();
    init_audit();
    ShimAudit46 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "predictive-perf",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    predictive_perf_default = ShimAudit46;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/redirects.js
var redirects_exports = {};
__export(redirects_exports, {
  default: () => redirects_default
});
var ShimAudit47, redirects_default;
var init_redirects = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/redirects.js"() {
    init_process_global();
    init_audit();
    ShimAudit47 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "redirects",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    redirects_default = ShimAudit47;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/resource-summary.js
var resource_summary_exports = {};
__export(resource_summary_exports, {
  default: () => resource_summary_default
});
var ShimAudit48, resource_summary_default;
var init_resource_summary = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/resource-summary.js"() {
    init_process_global();
    init_audit();
    ShimAudit48 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "resource-summary",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    resource_summary_default = ShimAudit48;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/screenshot-thumbnails.js
var screenshot_thumbnails_exports = {};
__export(screenshot_thumbnails_exports, {
  default: () => screenshot_thumbnails_default
});
var ShimAudit49, screenshot_thumbnails_default;
var init_screenshot_thumbnails = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/screenshot-thumbnails.js"() {
    init_process_global();
    init_audit();
    ShimAudit49 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "screenshot-thumbnails",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    screenshot_thumbnails_default = ShimAudit49;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/script-treemap-data.js
var script_treemap_data_exports = {};
__export(script_treemap_data_exports, {
  default: () => script_treemap_data_default
});
var ShimAudit50, script_treemap_data_default;
var init_script_treemap_data = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/script-treemap-data.js"() {
    init_process_global();
    init_audit();
    ShimAudit50 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "script-treemap-data",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    script_treemap_data_default = ShimAudit50;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/server-response-time.js
var server_response_time_exports = {};
__export(server_response_time_exports, {
  default: () => server_response_time_default
});
var ShimAudit51, server_response_time_default;
var init_server_response_time = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/server-response-time.js"() {
    init_process_global();
    init_audit();
    ShimAudit51 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "server-response-time",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    server_response_time_default = ShimAudit51;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/unsized-images.js
var unsized_images_exports = {};
__export(unsized_images_exports, {
  default: () => unsized_images_default
});
var ShimAudit52, unsized_images_default;
var init_unsized_images = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/unsized-images.js"() {
    init_process_global();
    init_audit();
    ShimAudit52 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "unsized-images",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    unsized_images_default = ShimAudit52;
  }
});

// lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/user-timings.js
var user_timings_exports = {};
__export(user_timings_exports, {
  default: () => user_timings_default
});
var ShimAudit53, user_timings_default;
var init_user_timings = __esm({
  "lh-audit-shim:/Users/alexrudenko/src/lighthouse/core/audits/user-timings.js"() {
    init_process_global();
    init_audit();
    ShimAudit53 = class extends Audit {
      static {
        __name(this, "ShimAudit");
      }
      static get meta() {
        return {
          id: "user-timings",
          title: "Shim Audit",
          description: "This audit was filtered out and is not available in this bundle.",
          scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE,
          requiredArtifacts: []
        };
      }
      static audit() {
        return { score: null, scoreDisplayMode: Audit.SCORING_MODES.NOT_APPLICABLE };
      }
    };
    user_timings_default = ShimAudit53;
  }
});

// core/config/config-helpers.js
import path4 from "path";
function isBundledEnvironment2() {
  if (global.isDevtools || global.isLightrider) return true;
  try {
    require4.resolve("lighthouse-logger");
    return false;
  } catch (err) {
    return true;
  }
}
function _mergeConfigFragment(base, extension, overwriteArrays = false) {
  if (typeof base === "undefined" || base === null) {
    return extension;
  } else if (typeof extension === "undefined") {
    return base;
  } else if (Array.isArray(extension)) {
    if (overwriteArrays) return extension;
    if (!Array.isArray(base)) throw new TypeError(`Expected array but got ${typeof base}`);
    const merged = base.slice();
    extension.forEach((item) => {
      if (!merged.some((candidate) => isEqual_default(candidate, item))) merged.push(item);
    });
    return merged;
  } else if (typeof extension === "object") {
    if (typeof base !== "object") throw new TypeError(`Expected object but got ${typeof base}`);
    if (Array.isArray(base)) throw new TypeError("Expected object but got Array");
    Object.keys(extension).forEach((key) => {
      const localOverwriteArrays = overwriteArrays || key === "settings" && typeof base[key] === "object";
      base[key] = _mergeConfigFragment(base[key], extension[key], localOverwriteArrays);
    });
    return base;
  }
  return extension;
}
function mergeConfigFragmentArrayByKey(baseArray, extensionArray, keyFn) {
  const itemsByKey = /* @__PURE__ */ new Map();
  const mergedArray = baseArray || [];
  for (let i = 0; i < mergedArray.length; i++) {
    const item = mergedArray[i];
    itemsByKey.set(keyFn(item), { index: i, item });
  }
  for (const item of extensionArray || []) {
    const baseItemEntry = itemsByKey.get(keyFn(item));
    if (baseItemEntry) {
      const baseItem = baseItemEntry.item;
      const merged = typeof item === "object" && typeof baseItem === "object" ? mergeConfigFragment(baseItem, item, true) : item;
      mergedArray[baseItemEntry.index] = merged;
    } else {
      mergedArray.push(item);
    }
  }
  return mergedArray;
}
function expandGathererShorthand(gatherer) {
  if (typeof gatherer === "string") {
    return { path: gatherer };
  } else if ("implementation" in gatherer || "instance" in gatherer) {
    return gatherer;
  } else if ("path" in gatherer) {
    if (typeof gatherer.path !== "string") {
      throw new Error("Invalid Gatherer type " + JSON.stringify(gatherer));
    }
    return gatherer;
  } else if (typeof gatherer === "function") {
    return { implementation: gatherer };
  } else if (gatherer && typeof gatherer.getArtifact === "function") {
    return { instance: gatherer };
  } else {
    throw new Error("Invalid Gatherer type " + JSON.stringify(gatherer));
  }
}
function expandAuditShorthand(audit) {
  if (typeof audit === "string") {
    return { path: audit, options: {} };
  } else if ("implementation" in audit && typeof audit.implementation.audit === "function") {
    return audit;
  } else if ("path" in audit && typeof audit.path === "string") {
    return audit;
  } else if ("audit" in audit && typeof audit.audit === "function") {
    return { implementation: audit, options: {} };
  } else {
    throw new Error("Invalid Audit type " + JSON.stringify(audit));
  }
}
async function requireWrapper(requirePath) {
  if (path4.isAbsolute(requirePath)) {
    requirePath = url_default.pathToFileURL(requirePath).href;
  }
  let module2;
  if (bundledModules.has(requirePath)) {
    module2 = await bundledModules.get(requirePath);
  } else if (requirePath.match(/\.(js|mjs|cjs)$/)) {
    module2 = await import(requirePath);
  } else {
    requirePath += ".js";
    module2 = await import(requirePath);
  }
  if (module2.default) return module2.default;
  const methods = /* @__PURE__ */ new Set(["meta"]);
  const possibleNamedExports = Object.keys(module2).filter((key) => {
    if (!(module2[key] && module2[key] instanceof Object)) return false;
    return Object.getOwnPropertyNames(module2[key]).some((method) => methods.has(method));
  });
  if (possibleNamedExports.length === 1) return possibleNamedExports[0];
  if (possibleNamedExports.length > 1) {
    throw new Error(`module '${requirePath}' has too many possible exports`);
  }
  throw new Error(`module '${requirePath}' missing default export`);
}
async function requireGatherer(gathererPath, coreGathererList, configDir) {
  const coreGatherer = coreGathererList.find((a) => a === `${gathererPath}.js`);
  let requirePath = `../gather/gatherers/${gathererPath}`;
  if (!coreGatherer) {
    requirePath = resolveModulePath(gathererPath, configDir, "gatherer");
  }
  const GathererClass = (
    /** @type {GathererConstructor} */
    await requireWrapper(requirePath)
  );
  return {
    instance: new GathererClass(),
    implementation: GathererClass,
    path: gathererPath
  };
}
function requireAudit(auditPath, coreAuditList, configDir) {
  const auditPathJs = `${auditPath}.js`;
  const coreAudit = coreAuditList.find((a) => a === auditPathJs);
  let requirePath = `../audits/${auditPath}`;
  if (!coreAudit) {
    if (isBundledEnvironment2()) {
      requirePath = auditPath;
    } else {
      const absolutePath = resolveModulePath(auditPath, configDir, "audit");
      if (isBundledEnvironment2()) {
        requirePath = path4.relative("", absolutePath);
      } else {
        requirePath = absolutePath;
      }
    }
  }
  return requireWrapper(requirePath);
}
function cleanFlagsForSettings(flags = {}) {
  const settings = {};
  for (const key of Object.keys(flags)) {
    if (key in defaultSettings) {
      settings[key] = flags[key];
    }
  }
  return settings;
}
function resolveSettings(settingsJson = {}, overrides = void 0) {
  const locale = lookupLocale(overrides?.locale || settingsJson.locale);
  const { defaultSettings: defaultSettings2 } = constants_exports;
  const settingWithDefaults = mergeConfigFragment(deepClone(defaultSettings2), settingsJson, true);
  const settingsWithFlags = mergeConfigFragment(
    settingWithDefaults,
    cleanFlagsForSettings(overrides),
    true
  );
  settingsWithFlags.locale = locale;
  if (settingsWithFlags.emulatedUserAgent === true) {
    settingsWithFlags.emulatedUserAgent = userAgents[settingsWithFlags.formFactor];
  }
  assertValidSettings(settingsWithFlags);
  return settingsWithFlags;
}
async function mergePlugins(config4, configDir, flags) {
  const configPlugins = config4.plugins || [];
  const flagPlugins = flags?.plugins || [];
  const pluginNames = /* @__PURE__ */ new Set([...configPlugins, ...flagPlugins]);
  for (const pluginName of pluginNames) {
    assertValidPluginName(config4, pluginName);
    const pluginPath = isBundledEnvironment2() ? pluginName : resolveModulePath(pluginName, configDir, "plugin");
    const rawPluginJson = await requireWrapper(pluginPath);
    const pluginJson = config_plugin_default.parsePlugin(rawPluginJson, pluginName);
    config4 = mergeConfigFragment(config4, pluginJson);
  }
  return config4;
}
async function resolveGathererToDefn(gathererJson, coreGathererList, configDir) {
  const gathererDefn = expandGathererShorthand(gathererJson);
  if (gathererDefn.instance) {
    return {
      instance: gathererDefn.instance,
      implementation: gathererDefn.implementation,
      path: gathererDefn.path
    };
  } else if (gathererDefn.implementation) {
    const GathererClass = gathererDefn.implementation;
    return {
      instance: new GathererClass(),
      implementation: gathererDefn.implementation,
      path: gathererDefn.path
    };
  } else if (gathererDefn.path) {
    const path7 = gathererDefn.path;
    return requireGatherer(path7, coreGathererList, configDir);
  } else {
    throw new Error("Invalid expanded Gatherer: " + JSON.stringify(gathererDefn));
  }
}
async function resolveAuditsToDefns(audits, configDir) {
  if (!audits) {
    return null;
  }
  const coreList = Runner.getAuditList();
  const auditDefnsPromises = audits.map(async (auditJson) => {
    const auditDefn = expandAuditShorthand(auditJson);
    let implementation;
    if ("implementation" in auditDefn) {
      implementation = auditDefn.implementation;
    } else {
      implementation = await requireAudit(auditDefn.path, coreList, configDir);
    }
    return {
      implementation,
      path: auditDefn.path,
      options: auditDefn.options || {}
    };
  });
  const auditDefns = await Promise.all(auditDefnsPromises);
  const mergedAuditDefns = mergeOptionsOfItems(auditDefns);
  mergedAuditDefns.forEach((audit) => assertValidAudit(audit));
  return mergedAuditDefns;
}
function resolveModulePath(moduleIdentifier, configDir, category) {
  try {
    return require4.resolve(moduleIdentifier);
  } catch (e) {
  }
  try {
    return require4.resolve(moduleIdentifier, { paths: [process.cwd()] });
  } catch (e) {
  }
  const cwdPath = path4.resolve(process.cwd(), moduleIdentifier);
  try {
    return require4.resolve(cwdPath);
  } catch (e) {
  }
  const errorString = "Unable to locate " + (category ? `${category}: ` : "") + `\`${moduleIdentifier}\`.
     Tried to resolve the module from these locations:
       ${""}
       ${cwdPath}`;
  if (!configDir) {
    throw new Error(errorString);
  }
  const relativePath = path4.resolve(configDir, moduleIdentifier);
  try {
    return require4.resolve(relativePath);
  } catch (requireError) {
  }
  try {
    return require4.resolve(moduleIdentifier, { paths: [configDir] });
  } catch (requireError) {
  }
  throw new Error(errorString + `
       ${relativePath}`);
}
function shallowClone(item) {
  if (typeof item === "object") {
    return Object.assign(
      Object.create(
        Object.getPrototypeOf(item)
      ),
      item
    );
  }
  return item;
}
function deepClone(json) {
  return JSON.parse(JSON.stringify(json));
}
function deepCloneConfigJson(json) {
  const cloned = deepClone(json);
  if (Array.isArray(json.audits)) {
    cloned.audits = json.audits.map((audit) => shallowClone(audit));
  }
  if (Array.isArray(json.artifacts)) {
    cloned.artifacts = json.artifacts.map((artifact) => ({
      ...artifact,
      gatherer: shallowClone(artifact.gatherer)
    }));
  }
  return cloned;
}
var require4, mergeOptionsOfItems, mergeConfigFragment, bundledModules;
var init_config_helpers = __esm({
  "core/config/config-helpers.js"() {
    "use strict";
    init_process_global();
    init_module();
    init_url();
    init_lodash();
    init_lh();
    init_constants();
    init_config_plugin();
    init_runner();
    init_i18n();
    init_validation();
    init_esm_utils();
    /**
     * @license
     * Copyright 2019 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    require4 = createRequire({ url: "core/config/config-helpers.js" }.url);
    __name(isBundledEnvironment2, "isBundledEnvironment");
    mergeOptionsOfItems = /* @__PURE__ */ __name(function(items) {
      const mergedItems = [];
      for (const item of items) {
        const existingItem = item.path && mergedItems.find((candidate) => candidate.path === item.path);
        if (!existingItem) {
          mergedItems.push(item);
          continue;
        }
        existingItem.options = Object.assign({}, existingItem.options, item.options);
      }
      return mergedItems;
    }, "mergeOptionsOfItems");
    __name(_mergeConfigFragment, "_mergeConfigFragment");
    mergeConfigFragment = _mergeConfigFragment;
    __name(mergeConfigFragmentArrayByKey, "mergeConfigFragmentArrayByKey");
    __name(expandGathererShorthand, "expandGathererShorthand");
    __name(expandAuditShorthand, "expandAuditShorthand");
    bundledModules = /* @__PURE__ */ new Map([
      ["../gather/gatherers/accessibility", Promise.resolve().then(() => (init_accessibility(), accessibility_exports))],
      ["../gather/gatherers/agentic/llms-txt", Promise.resolve().then(() => (init_llms_txt(), llms_txt_exports))],
      ["../gather/gatherers/anchor-elements", Promise.resolve().then(() => (init_anchor_elements(), anchor_elements_exports))],
      ["../gather/gatherers/console-messages", Promise.resolve().then(() => (init_console_messages(), console_messages_exports))],
      ["../gather/gatherers/devtools-log", Promise.resolve().then(() => (init_devtools_log(), devtools_log_exports))],
      ["../gather/gatherers/dobetterweb/doctype", Promise.resolve().then(() => (init_doctype(), doctype_exports))],
      ["../gather/gatherers/image-elements", Promise.resolve().then(() => (init_image_elements(), image_elements_exports))],
      ["../gather/gatherers/inputs", Promise.resolve().then(() => (init_inputs(), inputs_exports))],
      ["../gather/gatherers/inspector-issues", Promise.resolve().then(() => (init_inspector_issues(), inspector_issues_exports))],
      ["../gather/gatherers/link-elements", Promise.resolve().then(() => (init_link_elements(), link_elements_exports))],
      ["../gather/gatherers/main-document-content", Promise.resolve().then(() => (init_main_document_content(), main_document_content_exports))],
      ["../gather/gatherers/meta-elements", Promise.resolve().then(() => (init_meta_elements(), meta_elements_exports))],
      ["../gather/gatherers/scripts", Promise.resolve().then(() => (init_scripts(), scripts_exports))],
      ["../gather/gatherers/seo/robots-txt", Promise.resolve().then(() => (init_robots_txt(), robots_txt_exports))],
      ["../gather/gatherers/source-maps", Promise.resolve().then(() => (init_source_maps(), source_maps_exports))],
      ["../gather/gatherers/stacks", Promise.resolve().then(() => (init_stacks(), stacks_exports))],
      ["../gather/gatherers/trace", Promise.resolve().then(() => (init_trace(), trace_exports))],
      ["../gather/gatherers/viewport-dimensions", Promise.resolve().then(() => (init_viewport_dimensions(), viewport_dimensions_exports))],
      ["../gather/gatherers/webmcp-schema", Promise.resolve().then(() => (init_webmcp_schema(), webmcp_schema_exports))],
      ["../gather/gatherers/webmcp", Promise.resolve().then(() => (init_webmcp(), webmcp_exports))],
      ["../audits/accessibility/accesskeys", Promise.resolve().then(() => (init_accesskeys(), accesskeys_exports))],
      ["../audits/accessibility/aria-allowed-attr", Promise.resolve().then(() => (init_aria_allowed_attr(), aria_allowed_attr_exports))],
      ["../audits/accessibility/aria-allowed-role", Promise.resolve().then(() => (init_aria_allowed_role(), aria_allowed_role_exports))],
      ["../audits/accessibility/aria-command-name", Promise.resolve().then(() => (init_aria_command_name(), aria_command_name_exports))],
      ["../audits/accessibility/aria-conditional-attr", Promise.resolve().then(() => (init_aria_conditional_attr(), aria_conditional_attr_exports))],
      ["../audits/accessibility/aria-deprecated-role", Promise.resolve().then(() => (init_aria_deprecated_role(), aria_deprecated_role_exports))],
      ["../audits/accessibility/aria-dialog-name", Promise.resolve().then(() => (init_aria_dialog_name(), aria_dialog_name_exports))],
      ["../audits/accessibility/aria-hidden-body", Promise.resolve().then(() => (init_aria_hidden_body(), aria_hidden_body_exports))],
      ["../audits/accessibility/aria-hidden-focus", Promise.resolve().then(() => (init_aria_hidden_focus(), aria_hidden_focus_exports))],
      ["../audits/accessibility/aria-input-field-name", Promise.resolve().then(() => (init_aria_input_field_name(), aria_input_field_name_exports))],
      ["../audits/accessibility/aria-meter-name", Promise.resolve().then(() => (init_aria_meter_name(), aria_meter_name_exports))],
      ["../audits/accessibility/aria-progressbar-name", Promise.resolve().then(() => (init_aria_progressbar_name(), aria_progressbar_name_exports))],
      ["../audits/accessibility/aria-prohibited-attr", Promise.resolve().then(() => (init_aria_prohibited_attr(), aria_prohibited_attr_exports))],
      ["../audits/accessibility/aria-required-attr", Promise.resolve().then(() => (init_aria_required_attr(), aria_required_attr_exports))],
      ["../audits/accessibility/aria-required-children", Promise.resolve().then(() => (init_aria_required_children(), aria_required_children_exports))],
      ["../audits/accessibility/aria-required-parent", Promise.resolve().then(() => (init_aria_required_parent(), aria_required_parent_exports))],
      ["../audits/accessibility/aria-roles", Promise.resolve().then(() => (init_aria_roles(), aria_roles_exports))],
      ["../audits/accessibility/aria-text", Promise.resolve().then(() => (init_aria_text(), aria_text_exports))],
      ["../audits/accessibility/aria-toggle-field-name", Promise.resolve().then(() => (init_aria_toggle_field_name(), aria_toggle_field_name_exports))],
      ["../audits/accessibility/aria-tooltip-name", Promise.resolve().then(() => (init_aria_tooltip_name(), aria_tooltip_name_exports))],
      ["../audits/accessibility/aria-treeitem-name", Promise.resolve().then(() => (init_aria_treeitem_name(), aria_treeitem_name_exports))],
      ["../audits/accessibility/aria-valid-attr-value", Promise.resolve().then(() => (init_aria_valid_attr_value(), aria_valid_attr_value_exports))],
      ["../audits/accessibility/aria-valid-attr", Promise.resolve().then(() => (init_aria_valid_attr(), aria_valid_attr_exports))],
      ["../audits/accessibility/autocomplete-valid", Promise.resolve().then(() => (init_autocomplete_valid(), autocomplete_valid_exports))],
      ["../audits/accessibility/button-name", Promise.resolve().then(() => (init_button_name(), button_name_exports))],
      ["../audits/accessibility/bypass", Promise.resolve().then(() => (init_bypass(), bypass_exports))],
      ["../audits/accessibility/color-contrast", Promise.resolve().then(() => (init_color_contrast(), color_contrast_exports))],
      ["../audits/accessibility/definition-list", Promise.resolve().then(() => (init_definition_list(), definition_list_exports))],
      ["../audits/accessibility/dlitem", Promise.resolve().then(() => (init_dlitem(), dlitem_exports))],
      ["../audits/accessibility/document-title", Promise.resolve().then(() => (init_document_title(), document_title_exports))],
      ["../audits/accessibility/duplicate-id-aria", Promise.resolve().then(() => (init_duplicate_id_aria(), duplicate_id_aria_exports))],
      ["../audits/accessibility/empty-heading", Promise.resolve().then(() => (init_empty_heading(), empty_heading_exports))],
      ["../audits/accessibility/form-field-multiple-labels", Promise.resolve().then(() => (init_form_field_multiple_labels(), form_field_multiple_labels_exports))],
      ["../audits/accessibility/frame-title", Promise.resolve().then(() => (init_frame_title(), frame_title_exports))],
      ["../audits/accessibility/heading-order", Promise.resolve().then(() => (init_heading_order(), heading_order_exports))],
      ["../audits/accessibility/html-has-lang", Promise.resolve().then(() => (init_html_has_lang(), html_has_lang_exports))],
      ["../audits/accessibility/html-lang-valid", Promise.resolve().then(() => (init_html_lang_valid(), html_lang_valid_exports))],
      ["../audits/accessibility/html-xml-lang-mismatch", Promise.resolve().then(() => (init_html_xml_lang_mismatch(), html_xml_lang_mismatch_exports))],
      ["../audits/accessibility/identical-links-same-purpose", Promise.resolve().then(() => (init_identical_links_same_purpose(), identical_links_same_purpose_exports))],
      ["../audits/accessibility/image-alt", Promise.resolve().then(() => (init_image_alt(), image_alt_exports))],
      ["../audits/accessibility/image-redundant-alt", Promise.resolve().then(() => (init_image_redundant_alt(), image_redundant_alt_exports))],
      ["../audits/accessibility/input-button-name", Promise.resolve().then(() => (init_input_button_name(), input_button_name_exports))],
      ["../audits/accessibility/input-image-alt", Promise.resolve().then(() => (init_input_image_alt(), input_image_alt_exports))],
      ["../audits/accessibility/label-content-name-mismatch", Promise.resolve().then(() => (init_label_content_name_mismatch(), label_content_name_mismatch_exports))],
      ["../audits/accessibility/label", Promise.resolve().then(() => (init_label(), label_exports))],
      ["../audits/accessibility/landmark-one-main", Promise.resolve().then(() => (init_landmark_one_main(), landmark_one_main_exports))],
      ["../audits/accessibility/link-in-text-block", Promise.resolve().then(() => (init_link_in_text_block(), link_in_text_block_exports))],
      ["../audits/accessibility/link-name", Promise.resolve().then(() => (init_link_name(), link_name_exports))],
      ["../audits/accessibility/list", Promise.resolve().then(() => (init_list(), list_exports))],
      ["../audits/accessibility/listitem", Promise.resolve().then(() => (init_listitem(), listitem_exports))],
      ["../audits/accessibility/manual/custom-controls-labels", Promise.resolve().then(() => (init_custom_controls_labels(), custom_controls_labels_exports))],
      ["../audits/accessibility/manual/custom-controls-roles", Promise.resolve().then(() => (init_custom_controls_roles(), custom_controls_roles_exports))],
      ["../audits/accessibility/manual/focus-traps", Promise.resolve().then(() => (init_focus_traps(), focus_traps_exports))],
      ["../audits/accessibility/manual/focusable-controls", Promise.resolve().then(() => (init_focusable_controls(), focusable_controls_exports))],
      ["../audits/accessibility/manual/interactive-element-affordance", Promise.resolve().then(() => (init_interactive_element_affordance(), interactive_element_affordance_exports))],
      ["../audits/accessibility/manual/logical-tab-order", Promise.resolve().then(() => (init_logical_tab_order(), logical_tab_order_exports))],
      ["../audits/accessibility/manual/managed-focus", Promise.resolve().then(() => (init_managed_focus(), managed_focus_exports))],
      ["../audits/accessibility/manual/offscreen-content-hidden", Promise.resolve().then(() => (init_offscreen_content_hidden(), offscreen_content_hidden_exports))],
      ["../audits/accessibility/manual/use-landmarks", Promise.resolve().then(() => (init_use_landmarks(), use_landmarks_exports))],
      ["../audits/accessibility/manual/visual-order-follows-dom", Promise.resolve().then(() => (init_visual_order_follows_dom(), visual_order_follows_dom_exports))],
      ["../audits/accessibility/meta-refresh", Promise.resolve().then(() => (init_meta_refresh(), meta_refresh_exports))],
      ["../audits/accessibility/meta-viewport", Promise.resolve().then(() => (init_meta_viewport(), meta_viewport_exports))],
      ["../audits/accessibility/object-alt", Promise.resolve().then(() => (init_object_alt(), object_alt_exports))],
      ["../audits/accessibility/presentation-role-conflict", Promise.resolve().then(() => (init_presentation_role_conflict(), presentation_role_conflict_exports))],
      ["../audits/accessibility/select-name", Promise.resolve().then(() => (init_select_name(), select_name_exports))],
      ["../audits/accessibility/skip-link", Promise.resolve().then(() => (init_skip_link(), skip_link_exports))],
      ["../audits/accessibility/svg-img-alt", Promise.resolve().then(() => (init_svg_img_alt(), svg_img_alt_exports))],
      ["../audits/accessibility/tabindex", Promise.resolve().then(() => (init_tabindex(), tabindex_exports))],
      ["../audits/accessibility/table-duplicate-name", Promise.resolve().then(() => (init_table_duplicate_name(), table_duplicate_name_exports))],
      ["../audits/accessibility/table-fake-caption", Promise.resolve().then(() => (init_table_fake_caption(), table_fake_caption_exports))],
      ["../audits/accessibility/target-size", Promise.resolve().then(() => (init_target_size(), target_size_exports))],
      ["../audits/accessibility/td-has-header", Promise.resolve().then(() => (init_td_has_header(), td_has_header_exports))],
      ["../audits/accessibility/td-headers-attr", Promise.resolve().then(() => (init_td_headers_attr(), td_headers_attr_exports))],
      ["../audits/accessibility/th-has-data-cells", Promise.resolve().then(() => (init_th_has_data_cells(), th_has_data_cells_exports))],
      ["../audits/accessibility/valid-lang", Promise.resolve().then(() => (init_valid_lang(), valid_lang_exports))],
      ["../audits/accessibility/video-caption", Promise.resolve().then(() => (init_video_caption(), video_caption_exports))],
      ["../audits/agentic/agent-accessibility-tree", Promise.resolve().then(() => (init_agent_accessibility_tree(), agent_accessibility_tree_exports))],
      ["../audits/agentic/llms-txt", Promise.resolve().then(() => (init_llms_txt2(), llms_txt_exports2))],
      ["../audits/baseline", Promise.resolve().then(() => (init_baseline(), baseline_exports))],
      ["../audits/clickjacking-mitigation", Promise.resolve().then(() => (init_clickjacking_mitigation(), clickjacking_mitigation_exports))],
      ["../audits/csp-xss", Promise.resolve().then(() => (init_csp_xss(), csp_xss_exports))],
      ["../audits/deprecations", Promise.resolve().then(() => (init_deprecations(), deprecations_exports))],
      ["../audits/dobetterweb/charset", Promise.resolve().then(() => (init_charset(), charset_exports))],
      ["../audits/dobetterweb/doctype", Promise.resolve().then(() => (init_doctype2(), doctype_exports2))],
      ["../audits/dobetterweb/geolocation-on-start", Promise.resolve().then(() => (init_geolocation_on_start(), geolocation_on_start_exports))],
      ["../audits/dobetterweb/inspector-issues", Promise.resolve().then(() => (init_inspector_issues2(), inspector_issues_exports2))],
      ["../audits/dobetterweb/js-libraries", Promise.resolve().then(() => (init_js_libraries(), js_libraries_exports))],
      ["../audits/dobetterweb/notification-on-start", Promise.resolve().then(() => (init_notification_on_start(), notification_on_start_exports))],
      ["../audits/dobetterweb/paste-preventing-inputs", Promise.resolve().then(() => (init_paste_preventing_inputs(), paste_preventing_inputs_exports))],
      ["../audits/errors-in-console", Promise.resolve().then(() => (init_errors_in_console(), errors_in_console_exports))],
      ["../audits/has-hsts", Promise.resolve().then(() => (init_has_hsts(), has_hsts_exports))],
      ["../audits/image-aspect-ratio", Promise.resolve().then(() => (init_image_aspect_ratio(), image_aspect_ratio_exports))],
      ["../audits/image-size-responsive", Promise.resolve().then(() => (init_image_size_responsive(), image_size_responsive_exports))],
      ["../audits/is-on-https", Promise.resolve().then(() => (init_is_on_https(), is_on_https_exports))],
      ["../audits/metrics/cumulative-layout-shift", Promise.resolve().then(() => (init_cumulative_layout_shift2(), cumulative_layout_shift_exports))],
      ["../audits/origin-isolation", Promise.resolve().then(() => (init_origin_isolation(), origin_isolation_exports))],
      ["../audits/redirects-http", Promise.resolve().then(() => (init_redirects_http(), redirects_http_exports))],
      ["../audits/seo/canonical", Promise.resolve().then(() => (init_canonical(), canonical_exports))],
      ["../audits/seo/crawlable-anchors", Promise.resolve().then(() => (init_crawlable_anchors(), crawlable_anchors_exports))],
      ["../audits/seo/hreflang", Promise.resolve().then(() => (init_hreflang(), hreflang_exports))],
      ["../audits/seo/http-status-code", Promise.resolve().then(() => (init_http_status_code(), http_status_code_exports))],
      ["../audits/seo/is-crawlable", Promise.resolve().then(() => (init_is_crawlable(), is_crawlable_exports))],
      ["../audits/seo/link-text", Promise.resolve().then(() => (init_link_text(), link_text_exports))],
      ["../audits/seo/manual/structured-data", Promise.resolve().then(() => (init_structured_data(), structured_data_exports))],
      ["../audits/seo/meta-description", Promise.resolve().then(() => (init_meta_description(), meta_description_exports))],
      ["../audits/seo/robots-txt", Promise.resolve().then(() => (init_robots_txt2(), robots_txt_exports2))],
      ["../audits/third-party-cookies", Promise.resolve().then(() => (init_third_party_cookies(), third_party_cookies_exports))],
      ["../audits/trusted-types-xss", Promise.resolve().then(() => (init_trusted_types_xss(), trusted_types_xss_exports))],
      ["../audits/valid-source-maps", Promise.resolve().then(() => (init_valid_source_maps(), valid_source_maps_exports))],
      ["../audits/webmcp-form-coverage", Promise.resolve().then(() => (init_webmcp_form_coverage(), webmcp_form_coverage_exports))],
      ["../audits/webmcp-registered-tools", Promise.resolve().then(() => (init_webmcp_registered_tools(), webmcp_registered_tools_exports))],
      ["../audits/webmcp-schema-validity", Promise.resolve().then(() => (init_webmcp_schema_validity(), webmcp_schema_validity_exports))],
      ["../computed/speedline", Promise.resolve().then(() => (init_speedline(), speedline_exports))],
      ["../computed/metrics/timing-summary", Promise.resolve().then(() => (init_timing_summary(), timing_summary_exports))],
      ["../computed/entity-classification", Promise.resolve().then(() => (init_entity_classification(), entity_classification_exports))],
      ["../computed/trace-engine-result", Promise.resolve().then(() => (init_trace_engine_result(), trace_engine_result_exports))],
      ["../gather/gatherers/bf-cache-failures", Promise.resolve().then(() => (init_bf_cache_failures(), bf_cache_failures_exports))],
      ["../gather/gatherers/css-usage", Promise.resolve().then(() => (init_css_usage(), css_usage_exports))],
      ["../gather/gatherers/full-page-screenshot", Promise.resolve().then(() => (init_full_page_screenshot(), full_page_screenshot_exports))],
      ["../gather/gatherers/iframe-elements", Promise.resolve().then(() => (init_iframe_elements(), iframe_elements_exports))],
      ["../gather/gatherers/js-usage", Promise.resolve().then(() => (init_js_usage(), js_usage_exports))],
      ["../gather/gatherers/network-user-agent", Promise.resolve().then(() => (init_network_user_agent(), network_user_agent_exports))],
      ["../gather/gatherers/stylesheets", Promise.resolve().then(() => (init_stylesheets(), stylesheets_exports))],
      ["../gather/gatherers/trace-elements", Promise.resolve().then(() => (init_trace_elements(), trace_elements_exports))],
      ["../audits/autocomplete", Promise.resolve().then(() => (init_autocomplete(), autocomplete_exports))],
      ["../audits/bf-cache", Promise.resolve().then(() => (init_bf_cache(), bf_cache_exports))],
      ["../audits/bootup-time", Promise.resolve().then(() => (init_bootup_time(), bootup_time_exports))],
      ["../audits/byte-efficiency/total-byte-weight", Promise.resolve().then(() => (init_total_byte_weight(), total_byte_weight_exports))],
      ["../audits/byte-efficiency/unminified-css", Promise.resolve().then(() => (init_unminified_css(), unminified_css_exports))],
      ["../audits/byte-efficiency/unminified-javascript", Promise.resolve().then(() => (init_unminified_javascript(), unminified_javascript_exports))],
      ["../audits/byte-efficiency/unused-css-rules", Promise.resolve().then(() => (init_unused_css_rules(), unused_css_rules_exports))],
      ["../audits/byte-efficiency/unused-javascript", Promise.resolve().then(() => (init_unused_javascript(), unused_javascript_exports))],
      ["../audits/diagnostics", Promise.resolve().then(() => (init_diagnostics(), diagnostics_exports))],
      ["../audits/final-screenshot", Promise.resolve().then(() => (init_final_screenshot(), final_screenshot_exports))],
      ["../audits/insights/cache-insight", Promise.resolve().then(() => (init_cache_insight(), cache_insight_exports))],
      ["../audits/insights/cls-culprits-insight", Promise.resolve().then(() => (init_cls_culprits_insight(), cls_culprits_insight_exports))],
      ["../audits/insights/document-latency-insight", Promise.resolve().then(() => (init_document_latency_insight(), document_latency_insight_exports))],
      ["../audits/insights/dom-size-insight", Promise.resolve().then(() => (init_dom_size_insight(), dom_size_insight_exports))],
      ["../audits/insights/duplicated-javascript-insight", Promise.resolve().then(() => (init_duplicated_javascript_insight(), duplicated_javascript_insight_exports))],
      ["../audits/insights/font-display-insight", Promise.resolve().then(() => (init_font_display_insight(), font_display_insight_exports))],
      ["../audits/insights/forced-reflow-insight", Promise.resolve().then(() => (init_forced_reflow_insight(), forced_reflow_insight_exports))],
      ["../audits/insights/image-delivery-insight", Promise.resolve().then(() => (init_image_delivery_insight(), image_delivery_insight_exports))],
      ["../audits/insights/inp-breakdown-insight", Promise.resolve().then(() => (init_inp_breakdown_insight(), inp_breakdown_insight_exports))],
      ["../audits/insights/lcp-breakdown-insight", Promise.resolve().then(() => (init_lcp_breakdown_insight(), lcp_breakdown_insight_exports))],
      ["../audits/insights/lcp-discovery-insight", Promise.resolve().then(() => (init_lcp_discovery_insight(), lcp_discovery_insight_exports))],
      ["../audits/insights/legacy-javascript-insight", Promise.resolve().then(() => (init_legacy_javascript_insight(), legacy_javascript_insight_exports))],
      ["../audits/insights/modern-http-insight", Promise.resolve().then(() => (init_modern_http_insight(), modern_http_insight_exports))],
      ["../audits/insights/network-dependency-tree-insight", Promise.resolve().then(() => (init_network_dependency_tree_insight(), network_dependency_tree_insight_exports))],
      ["../audits/insights/render-blocking-insight", Promise.resolve().then(() => (init_render_blocking_insight(), render_blocking_insight_exports))],
      ["../audits/insights/slow-css-selector-insight", Promise.resolve().then(() => (init_slow_css_selector_insight(), slow_css_selector_insight_exports))],
      ["../audits/insights/third-parties-insight", Promise.resolve().then(() => (init_third_parties_insight(), third_parties_insight_exports))],
      ["../audits/insights/viewport-insight", Promise.resolve().then(() => (init_viewport_insight(), viewport_insight_exports))],
      ["../audits/layout-shifts", Promise.resolve().then(() => (init_layout_shifts(), layout_shifts_exports))],
      ["../audits/long-tasks", Promise.resolve().then(() => (init_long_tasks(), long_tasks_exports))],
      ["../audits/main-thread-tasks", Promise.resolve().then(() => (init_main_thread_tasks(), main_thread_tasks_exports))],
      ["../audits/mainthread-work-breakdown", Promise.resolve().then(() => (init_mainthread_work_breakdown(), mainthread_work_breakdown_exports))],
      ["../audits/metrics", Promise.resolve().then(() => (init_metrics2(), metrics_exports2))],
      ["../audits/metrics/first-contentful-paint", Promise.resolve().then(() => (init_first_contentful_paint(), first_contentful_paint_exports))],
      ["../audits/metrics/interaction-to-next-paint", Promise.resolve().then(() => (init_interaction_to_next_paint(), interaction_to_next_paint_exports))],
      ["../audits/metrics/interactive", Promise.resolve().then(() => (init_interactive(), interactive_exports))],
      ["../audits/metrics/largest-contentful-paint", Promise.resolve().then(() => (init_largest_contentful_paint(), largest_contentful_paint_exports))],
      ["../audits/metrics/max-potential-fid", Promise.resolve().then(() => (init_max_potential_fid(), max_potential_fid_exports))],
      ["../audits/metrics/speed-index", Promise.resolve().then(() => (init_speed_index(), speed_index_exports))],
      ["../audits/metrics/total-blocking-time", Promise.resolve().then(() => (init_total_blocking_time(), total_blocking_time_exports))],
      ["../audits/network-requests", Promise.resolve().then(() => (init_network_requests(), network_requests_exports))],
      ["../audits/network-rtt", Promise.resolve().then(() => (init_network_rtt(), network_rtt_exports))],
      ["../audits/network-server-latency", Promise.resolve().then(() => (init_network_server_latency(), network_server_latency_exports))],
      ["../audits/non-composited-animations", Promise.resolve().then(() => (init_non_composited_animations(), non_composited_animations_exports))],
      ["../audits/oopif-iframe-test-audit", Promise.resolve().then(() => (init_oopif_iframe_test_audit(), oopif_iframe_test_audit_exports))],
      ["../audits/predictive-perf", Promise.resolve().then(() => (init_predictive_perf(), predictive_perf_exports))],
      ["../audits/redirects", Promise.resolve().then(() => (init_redirects(), redirects_exports))],
      ["../audits/resource-summary", Promise.resolve().then(() => (init_resource_summary(), resource_summary_exports))],
      ["../audits/screenshot-thumbnails", Promise.resolve().then(() => (init_screenshot_thumbnails(), screenshot_thumbnails_exports))],
      ["../audits/script-treemap-data", Promise.resolve().then(() => (init_script_treemap_data(), script_treemap_data_exports))],
      ["../audits/server-response-time", Promise.resolve().then(() => (init_server_response_time(), server_response_time_exports))],
      ["../audits/unsized-images", Promise.resolve().then(() => (init_unsized_images(), unsized_images_exports))],
      ["../audits/user-timings", Promise.resolve().then(() => (init_user_timings(), user_timings_exports))]
    ]);
    __name(requireWrapper, "requireWrapper");
    __name(requireGatherer, "requireGatherer");
    __name(requireAudit, "requireAudit");
    __name(cleanFlagsForSettings, "cleanFlagsForSettings");
    __name(resolveSettings, "resolveSettings");
    __name(mergePlugins, "mergePlugins");
    __name(resolveGathererToDefn, "resolveGathererToDefn");
    __name(resolveAuditsToDefns, "resolveAuditsToDefns");
    __name(resolveModulePath, "resolveModulePath");
    __name(shallowClone, "shallowClone");
    __name(deepClone, "deepClone");
    __name(deepCloneConfigJson, "deepCloneConfigJson");
  }
});

// core/config/config.js
import path5 from "path";
function resolveWorkingCopy(config4, context) {
  let { configPath } = context;
  if (configPath && !path5.isAbsolute(configPath)) {
    throw new Error("configPath must be an absolute path");
  }
  if (!config4) {
    config4 = default_config_default;
    configPath = defaultConfigPath;
  }
  const configDir = configPath ? path5.dirname(configPath) : void 0;
  return {
    configWorkingCopy: deepCloneConfigJson(config4),
    configPath,
    configDir
  };
}
function resolveExtensions(config4) {
  if (!config4.extends) return config4;
  if (config4.extends !== "lighthouse:default") {
    throw new Error("`lighthouse:default` is the only valid extension method.");
  }
  const { artifacts, ...extensionJSON } = config4;
  const defaultClone = deepCloneConfigJson(default_config_default);
  const mergedConfig = mergeConfigFragment(defaultClone, extensionJSON);
  mergedConfig.artifacts = mergeConfigFragmentArrayByKey(
    defaultClone.artifacts,
    artifacts,
    (artifact) => artifact.id
  );
  return mergedConfig;
}
function resolveArtifactDependencies(artifact, gatherer, artifactDefnsBySymbol) {
  if (!("dependencies" in gatherer.instance.meta)) return void 0;
  const dependencies = Object.entries(gatherer.instance.meta.dependencies).map(
    ([dependencyName, artifactSymbol]) => {
      const dependency = artifactDefnsBySymbol.get(artifactSymbol);
      if (!dependency) throwInvalidDependencyOrder(artifact.id, dependencyName);
      const validDependency = isValidArtifactDependency(gatherer, dependency.gatherer);
      if (!validDependency) throwInvalidArtifactDependency(artifact.id, dependencyName);
      return [dependencyName, { id: dependency.id }];
    }
  );
  return Object.fromEntries(dependencies);
}
async function resolveArtifactsToDefns(artifacts, configDir) {
  if (!artifacts) return null;
  const status = { msg: "Resolve artifact definitions", id: "lh:config:resolveArtifactsToDefns" };
  lighthouse_logger_default.time(status, "verbose");
  const sortedArtifacts = [...artifacts];
  sortedArtifacts.sort((a, b) => {
    const aPriority = internalArtifactPriorities[a.id] || 0;
    const bPriority = internalArtifactPriorities[b.id] || 0;
    return aPriority - bPriority;
  });
  const artifactDefnsBySymbol = /* @__PURE__ */ new Map();
  const coreGathererList = Runner.getGathererList();
  const artifactDefns = [];
  for (const artifactJson of sortedArtifacts) {
    const gathererJson = artifactJson.gatherer;
    const gatherer = await resolveGathererToDefn(gathererJson, coreGathererList, configDir);
    const artifact = {
      id: artifactJson.id,
      gatherer,
      dependencies: resolveArtifactDependencies(artifactJson, gatherer, artifactDefnsBySymbol)
    };
    const symbol = artifact.gatherer.instance.meta.symbol;
    if (symbol) artifactDefnsBySymbol.set(symbol, artifact);
    artifactDefns.push(artifact);
  }
  lighthouse_logger_default.timeEnd(status);
  return artifactDefns;
}
function overrideSettingsForGatherMode(settings, gatherMode) {
  if (gatherMode === "timespan") {
    if (settings.throttlingMethod === "simulate") {
      settings.throttlingMethod = "devtools";
    }
  }
}
function overrideThrottlingWindows(settings) {
  if (settings.throttlingMethod === "simulate") return;
  settings.cpuQuietThresholdMs = Math.max(
    settings.cpuQuietThresholdMs || 0,
    nonSimulatedSettingsOverrides.cpuQuietThresholdMs
  );
  settings.networkQuietThresholdMs = Math.max(
    settings.networkQuietThresholdMs || 0,
    nonSimulatedSettingsOverrides.networkQuietThresholdMs
  );
  settings.pauseAfterFcpMs = Math.max(
    settings.pauseAfterFcpMs || 0,
    nonSimulatedSettingsOverrides.pauseAfterFcpMs
  );
  settings.pauseAfterLoadMs = Math.max(
    settings.pauseAfterLoadMs || 0,
    nonSimulatedSettingsOverrides.pauseAfterLoadMs
  );
}
async function initializeConfig(gatherMode, config4, flags = {}) {
  const status = { msg: "Initialize config", id: "lh:config" };
  lighthouse_logger_default.time(status, "verbose");
  let { configWorkingCopy, configDir } = resolveWorkingCopy(config4, flags);
  configWorkingCopy = resolveExtensions(configWorkingCopy);
  configWorkingCopy = await mergePlugins(configWorkingCopy, configDir, flags);
  const settings = resolveSettings(configWorkingCopy.settings || {}, flags);
  overrideSettingsForGatherMode(settings, gatherMode);
  overrideThrottlingWindows(settings);
  const artifacts = await resolveArtifactsToDefns(configWorkingCopy.artifacts, configDir);
  let resolvedConfig = {
    artifacts,
    audits: await resolveAuditsToDefns(configWorkingCopy.audits, configDir),
    categories: configWorkingCopy.categories || null,
    groups: configWorkingCopy.groups || null,
    settings
  };
  assertValidConfig(resolvedConfig);
  resolvedConfig = filterConfigByGatherMode(resolvedConfig, gatherMode);
  resolvedConfig = filterConfigByExplicitFilters(resolvedConfig, settings);
  lighthouse_logger_default.timeEnd(status);
  return { resolvedConfig };
}
var defaultConfigPath, internalArtifactPriorities;
var init_config = __esm({
  "core/config/config.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_lh();
    init_runner();
    init_default_config();
    init_constants();
    init_validation();
    init_filters();
    init_config_helpers();
    init_esm_utils();
    init_format();
    /**
     * @license
     * Copyright 2020 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    defaultConfigPath = path5.join(
      "",
      "../../config/default-config.js"
    );
    internalArtifactPriorities = {
      FullPageScreenshot: 1,
      BFCacheFailures: 1
    };
    __name(resolveWorkingCopy, "resolveWorkingCopy");
    __name(resolveExtensions, "resolveExtensions");
    __name(resolveArtifactDependencies, "resolveArtifactDependencies");
    __name(resolveArtifactsToDefns, "resolveArtifactsToDefns");
    __name(overrideSettingsForGatherMode, "overrideSettingsForGatherMode");
    __name(overrideThrottlingWindows, "overrideThrottlingWindows");
    __name(initializeConfig, "initializeConfig");
  }
});

// replace-modules:/Users/alexrudenko/src/lighthouse/node_modules/@sentry/node/build/cjs/index.js
var cjs_exports = {};
__export(cjs_exports, {
  default: () => cjs_default
});
var cjs_default;
var init_cjs = __esm({
  "replace-modules:/Users/alexrudenko/src/lighthouse/node_modules/@sentry/node/build/cjs/index.js"() {
    init_process_global();
    cjs_default = {};
  }
});

// core/lib/sentry.js
async function init(opts) {
  if (!opts.flags.enableErrorReporting) {
    return;
  }
  if (!sentryDelegate._shouldSample()) {
    return;
  }
  try {
    const Sentry2 = await Promise.resolve().then(() => (init_cjs(), cjs_exports));
    Sentry2.init({
      ...opts.environmentData,
      dsn: SENTRY_URL
    });
    let settings = opts.flags;
    try {
      const { resolvedConfig } = await initializeConfig("navigation", opts.config, opts.flags);
      settings = resolvedConfig.settings;
    } catch {
    }
    const baseTags = {
      channel: settings.channel,
      formFactor: settings.formFactor,
      throttlingMethod: settings.throttlingMethod
    };
    Sentry2.setTags(baseTags);
    const extras = {
      ...settings.throttling,
      url: opts.url
    };
    Sentry2.setExtras(extras);
    sentryDelegate.captureMessage = (...args) => Sentry2.captureMessage(...args);
    sentryDelegate.captureBreadcrumb = (...args) => Sentry2.addBreadcrumb(...args);
    sentryDelegate.getContext = () => extras;
    const sentryExceptionCache = /* @__PURE__ */ new Map();
    sentryDelegate.captureException = async (err, opts2 = {}) => {
      if (!err) return;
      if (err.expected) return;
      const tags = opts2.tags || {};
      if (tags.audit) {
        const key = `audit-${tags.audit}-${err.message}`;
        if (sentryExceptionCache.has(key)) return;
        sentryExceptionCache.set(key, true);
      }
      if (tags.gatherer) {
        const key = `gatherer-${tags.gatherer}-${err.message}`;
        if (sentryExceptionCache.has(key)) return;
        sentryExceptionCache.set(key, true);
      }
      if (err.protocolMethod) {
        opts2.fingerprint = ["{{ default }}", err.protocolMethod, err.protocolError];
        opts2.tags = opts2.tags || {};
        opts2.tags.protocolMethod = err.protocolMethod;
      }
      Sentry2.withScope((scope) => {
        if (opts2.level) {
          scope.setLevel(opts2.level);
        }
        if (opts2.tags) {
          scope.setTags(opts2.tags);
        }
        let extra;
        if (opts2.extra) extra = { ...opts2.extra };
        if (err.extra) extra = { ...extra, ...err.extra };
        if (extra) {
          scope.setExtras(extra);
        }
        Sentry2.captureException(err);
      });
    };
  } catch (e) {
    lighthouse_logger_default.warn(
      "sentry",
      "Could not load Sentry, errors will not be reported."
    );
  }
}
var SENTRY_URL, SAMPLE_RATE, noop, sentryDelegate, Sentry;
var init_sentry = __esm({
  "core/lib/sentry.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_config();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    SENTRY_URL = "https://a6bb0da87ee048cc9ae2a345fc09ab2e:63a7029f46f74265981b7e005e0f69f8@sentry.io/174697";
    SAMPLE_RATE = 0.01;
    noop = /* @__PURE__ */ __name(() => {
    }, "noop");
    sentryDelegate = {
      init,
      /** @type {(message: string, level?: SeverityLevel) => void} */
      captureMessage: noop,
      /** @type {(breadcrumb: Breadcrumb) => void} */
      captureBreadcrumb: noop,
      /** @type {() => any} */
      getContext: noop,
      /** @type {(error: Error, options: {level?: string, tags?: {[key: string]: any}, extra?: {[key: string]: any}}) => Promise<void>} */
      captureException: /* @__PURE__ */ __name(async () => {
      }, "captureException"),
      _shouldSample() {
        return SAMPLE_RATE >= Math.random();
      }
    };
    __name(init, "init");
    Sentry = sentryDelegate;
  }
});

// replace-modules:/Users/alexrudenko/src/lighthouse/report/generator/report-assets.js
var reportAssets;
var init_report_assets = __esm({
  "replace-modules:/Users/alexrudenko/src/lighthouse/report/generator/report-assets.js"() {
    init_process_global();
    reportAssets = {
      REPORT_TEMPLATE: `<!--
@license
Copyright 2018 Google LLC
SPDX-License-Identifier: Apache-2.0
-->
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
  <link rel="icon" href='data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z" fill="%23F63"/><path d="M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z" fill="%23FFA385"/><path fill="%23FF3" d="M20.5 10h7v7h-7z"/></svg>'>
  <title>Lighthouse Report</title>
  <style>body {margin: 0}</style>
</head>
<body>
  <noscript>Lighthouse report requires JavaScript. Please enable.</noscript>

  <div id="lh-log"></div>

  <script>window.__LIGHTHOUSE_JSON__ = %%LIGHTHOUSE_JSON%%;</script>
  <script>%%LIGHTHOUSE_JAVASCRIPT%%
  __initLighthouseReport__();
  //# sourceURL=compiled-reportrenderer.js
  </script>
  <script>console.log('window.__LIGHTHOUSE_JSON__', __LIGHTHOUSE_JSON__);</script>
</body>
</html>
`,
      REPORT_JAVASCRIPT: '"use strict";(()=>{var Re=.8999999999999999,Ne=.5,Ie=.49999999999999994;function He(o){let e=Math.sign(o);o=Math.abs(o);let t=.254829592,n=-.284496736,r=1.421413741,i=-1.453152027,a=1.061405429,s=1/(1+.3275911*o),c=s*(t+s*(n+s*(r+s*(i+s*a))));return e*(1-c*Math.exp(-o*o))}function fe({median:o,p10:e},t){if(o<=0)throw new Error("median must be greater than zero");if(e<=0)throw new Error("p10 must be greater than zero");if(e>=o)throw new Error("p10 must be less than the median");if(t<=0)return 1;let n=.9061938024368232,r=Math.max(Number.MIN_VALUE,t/o),i=Math.log(r),a=Math.max(Number.MIN_VALUE,e/o),l=-Math.log(a),s=i*n/l,c=(1-He(s))/2,d;return t<=e?d=Math.max(.9,Math.min(1,c)):t<=o?d=Math.max(Ne,Math.min(Re,c)):d=Math.max(0,Math.min(Ie,c)),d}var U="\\u2026",Oe="\\xA0",ve=.9,$e={PASS:{label:"pass",minScore:ve},AVERAGE:{label:"average",minScore:.5},FAIL:{label:"fail"},ERROR:{label:"error"}},Ve=["com","co","gov","edu","ac","org","go","gob","or","net","in","ne","nic","\
gouv","web","spb","blog","jus","kiev","mil","wi","qc","ca","bel","on"],E=class o{static get RATINGS(){return $e}static get PASS_THRESHOLD(){return ve}static get MS_DISPLAY_VALUE(){return`%10d${Oe}ms`}static getFinalDisplayedUrl(e){if(e.finalDisplayedUrl)return e.finalDisplayedUrl;if(e.finalUrl)return e.finalUrl;throw new Error("Could not determine final displayed URL")}static getMainDocumentUrl(e){return e.mainDocumentUrl||e.finalUrl}static getFullPageScreenshot(e){return e.fullPageScreenshot?e.fullPageScreenshot:e.audits["full-page-screenshot"]?.details}static getEntityFromUrl(e,t){return t&&t.find(r=>r.origins.find(i=>e.startsWith(i)))||o.getPseudoRootDomain(e)}static splitMarkdownCodeSpans(e){let t=[],n=e.split(/`(.*?)`/g);for(let r=0;r<n.length;r++){let i=n[r];if(!i)continue;let a=r%2!==0;t.push({isCode:a,text:i})}return t}static splitMarkdownLink(e){let t=[],n=e.split(/\\[([^\\]]+?)\\]\\((https?:\\/\\/.*?)\\)/g);for(;n.length;){let[r,i,a]=n.splice(0,3);r&&t.push({isLink:!1,text:r}),i&&a&\
&t.push({isLink:!0,text:i,linkHref:a})}return t}static truncate(e,t,n="\\u2026"){if(e.length<=t)return e;let i=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(e)[Symbol.iterator](),a=0;for(let l=0;l<=t-n.length;l++){let s=i.next();if(s.done)return e;a=s.value.index}for(let l=0;l<n.length;l++)if(i.next().done)return e;return e.slice(0,a)+n}static getURLDisplayName(e,t){t=t||{numPathParts:void 0,preserveQuery:void 0,preserveHost:void 0};let n=t.numPathParts!==void 0?t.numPathParts:2,r=t.preserveQuery!==void 0?t.preserveQuery:!0,i=t.preserveHost||!1,a;if(e.protocol==="about:"||e.protocol==="data:")a=e.href;else{a=e.pathname;let s=a.split("/").filter(c=>c.length);n&&s.length>n&&(a=U+s.slice(-1*n).join("/")),i&&(a=`${e.host}/${a.replace(/^\\//,"")}`),r&&(a=`${a}${e.search}`)}let l=64;if(e.protocol!=="data:"&&(a=a.slice(0,200),a=a.replace(/([a-f0-9]{7})[a-f0-9]{13}[a-f0-9]*/g,`$1${U}`),a=a.replace(/([a-zA-Z0-9-_]{9})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])[a-zA-Z0-9-_]{10,}/g,`$1${U}`),a=\
a.replace(/(\\d{3})\\d{6,}/g,`$1${U}`),a=a.replace(/\\u2026+/g,U),a.length>l&&a.includes("?")&&(a=a.replace(/\\?([^=]*)(=)?.*/,`?$1$2${U}`),a.length>l&&(a=a.replace(/\\?.*/,`?${U}`)))),a.length>l){let s=a.lastIndexOf(".");s>=0?a=a.slice(0,l-1-(a.length-s))+`${U}${a.slice(s)}`:a=a.slice(0,l-1)+U}return a}static getChromeExtensionOrigin(e){let t=new URL(e);return t.protocol+"//"+t.host}static parseURL(e){let t=new URL(e);return{file:o.getURLDisplayName(t),hostname:t.hostname,origin:t.protocol==="chrome-extension:"?o.getChromeExtensionOrigin(e):t.origin}}static createOrReturnURL(e){return e instanceof URL?e:new URL(e)}static getPseudoTld(e){let t=e.split(".").slice(-2);return Ve.includes(t[0])?`.${t.join(".")}`:`.${t[t.length-1]}`}static getPseudoRootDomain(e){let t=o.createOrReturnURL(e).hostname,r=o.getPseudoTld(t).split(".");return t.split(".").slice(-r.length).join(".")}static filterRelevantLines(e,t,n){if(t.length===0)return e.slice(0,n*2+1);let r=3,i=new Set;return t=t.sort((a,l)=>(a.lin\
eNumber||0)-(l.lineNumber||0)),t.forEach(({lineNumber:a})=>{let l=a-n,s=a+n;for(;l<1;)l++,s++;i.has(l-r-1)&&(l-=r);for(let c=l;c<=s;c++){let d=c;i.add(d)}}),e.filter(a=>i.has(a.lineNumber))}static computeLogNormalScore(e,t){let n=fe(e,t);return n>.9&&(n+=.05*(n-.9)),Math.floor(n*100)/100}};function Ge(o){let e=o.createFragment(),t=o.createElement("style");t.append(`\n    .lh-3p-filter {\n      color: var(--color-gray-600);\n      float: right;\n      padding: 6px var(--stackpack-padding-horizontal);\n    }\n    .lh-3p-filter-label, .lh-3p-filter-input {\n      vertical-align: middle;\n      user-select: none;\n    }\n    .lh-3p-filter-input:disabled + .lh-3p-ui-string {\n      text-decoration: line-through;\n    }\n  `),e.append(t);let n=o.createElement("div","lh-3p-filter"),r=o.createElement("label","lh-3p-filter-label"),i=o.createElement("input","lh-3p-filter-input");i.setAttribute("type","checkbox"),i.setAttribute("checked","");let a=o.createElement("span","lh-3p-ui-string");a.append("Show 3rd p\
arty resources");let l=o.createElement("span","lh-3p-filter-count");return r.append(" ",i," ",a," (",l,") "),n.append(" ",r," "),e.append(n),e}function Be(o){let e=o.createFragment(),t=o.createElement("div","lh-audit"),n=o.createElement("details","lh-expandable-details"),r=o.createElement("summary"),i=o.createElement("div","lh-audit__header lh-expandable-details__summary"),a=o.createElement("span","lh-audit__score-icon"),l=o.createElement("span","lh-audit__title-and-text"),s=o.createElement("span","lh-audit__title"),c=o.createElement("span","lh-audit__display-text");l.append(" ",s," ",c," ");let d=o.createElement("div","lh-chevron-container");i.append(" ",a," ",l," ",d," "),r.append(" ",i," ");let h=o.createElement("div","lh-audit__description"),p=o.createElement("div","lh-audit__stackpacks");return n.append(" ",r," ",h," ",p," "),t.append(" ",n," "),e.append(t),e}function qe(o){let e=o.createFragment(),t=o.createElement("div","lh-category-header"),n=o.createElement("div","lh-score__ga\
uge");n.setAttribute("role","heading"),n.setAttribute("aria-level","2");let r=o.createElement("div","lh-category-header__description");return t.append(" ",n," ",r," "),e.append(t),e}function je(o){let e=o.createFragment(),t=o.createElementNS("http://www.w3.org/2000/svg","svg","lh-chevron");t.setAttribute("viewBox","0 0 100 100");let n=o.createElementNS("http://www.w3.org/2000/svg","g","lh-chevron__lines"),r=o.createElementNS("http://www.w3.org/2000/svg","path","lh-chevron__line lh-chevron__line-left");r.setAttribute("d","M10 50h40");let i=o.createElementNS("http://www.w3.org/2000/svg","path","lh-chevron__line lh-chevron__line-right");return i.setAttribute("d","M90 50H50"),n.append(" ",r," ",i," "),t.append(" ",n," "),e.append(t),e}function We(o){let e=o.createFragment(),t=o.createElement("div","lh-audit-group"),n=o.createElement("details","lh-clump"),r=o.createElement("summary"),i=o.createElement("div","lh-audit-group__summary"),a=o.createElement("div","lh-audit-group__header"),l=o.cre\
ateElement("span","lh-audit-group__title"),s=o.createElement("span","lh-audit-group__itemcount");a.append(" ",l," ",s," "," "," ");let c=o.createElement("div","lh-clump-toggle"),d=o.createElement("span","lh-clump-toggletext--show"),h=o.createElement("span","lh-clump-toggletext--hide");return c.append(" ",d," ",h," "),i.append(" ",a," ",c," "),r.append(" ",i," "),n.append(" ",r," "),t.append(" "," ",n," "),e.append(t),e}function Ke(o){let e=o.createFragment(),t=o.createElement("div","lh-crc-container"),n=o.createElement("style");n.append(`\n      .lh-crc .lh-tree-marker {\n        width: 12px;\n        height: 26px;\n        display: block;\n        float: left;\n        background-position: top left;\n      }\n      .lh-crc .lh-horiz-down {\n        background: url(\'data:image/svg+xml;utf8,<svg width="16" height="26" viewBox="0 0 16 26" xmlns="http://www.w3.org/2000/svg"><g fill="%23D8D8D8" fill-rule="evenodd"><path d="M16 12v2H-2v-2z"/><path d="M9 12v14H7V12z"/></g></svg>\');\n      }\n      .lh-\
crc .lh-right {\n        background: url(\'data:image/svg+xml;utf8,<svg width="16" height="26" viewBox="0 0 16 26" xmlns="http://www.w3.org/2000/svg"><path d="M16 12v2H0v-2z" fill="%23D8D8D8" fill-rule="evenodd"/></svg>\');\n      }\n      .lh-crc .lh-up-right {\n        background: url(\'data:image/svg+xml;utf8,<svg width="16" height="26" viewBox="0 0 16 26" xmlns="http://www.w3.org/2000/svg"><path d="M7 0h2v14H7zm2 12h7v2H9z" fill="%23D8D8D8" fill-rule="evenodd"/></svg>\');\n      }\n      .lh-crc .lh-vert-right {\n        background: url(\'data:image/svg+xml;utf8,<svg width="16" height="26" viewBox="0 0 16 26" xmlns="http://www.w3.org/2000/svg"><path d="M7 0h2v27H7zm2 12h7v2H9z" fill="%23D8D8D8" fill-rule="evenodd"/></svg>\');\n      }\n      .lh-crc .lh-vert {\n        background: url(\'data:image/svg+xml;utf8,<svg width="16" height="26" viewBox="0 0 16 26" xmlns="http://www.w3.org/2000/svg"><path d="M7 0h2v26H7z" fill="%23D8D8D8" fill-rule="evenodd"/></svg>\');\n      }\n      .lh-crc .lh-crc-tree {\n\
        font-size: 14px;\n        width: 100%;\n        overflow-x: auto;\n      }\n      .lh-crc .lh-crc-node {\n        height: 26px;\n        line-height: 26px;\n        white-space: nowrap;\n      }\n      .lh-crc .lh-crc-node__longest {\n        color: var(--color-average-secondary);\n      }\n      .lh-crc .lh-crc-node__tree-value {\n        margin-left: 10px;\n      }\n      .lh-crc .lh-crc-node__tree-value div {\n        display: inline;\n      }\n      .lh-crc .lh-crc-node__chain-duration {\n        font-weight: 700;\n      }\n      .lh-crc .lh-crc-initial-nav {\n        color: #595959;\n        font-style: italic;\n      }\n      .lh-crc__summary-value {\n        margin-bottom: 10px;\n      }\n    `);let r=o.createElement("div"),i=o.createElement("div","lh-crc__summary-value"),a=o.createElement("span","lh-crc__longest_duration_label"),l=o.createElement("b","lh-crc__longest_duration");i.append(" ",a," ",l," "),r.append(" ",i," ");let s=o.createElement("div","lh-crc"),c=o.createElement("div","lh-crc-initi\
al-nav");return s.append(" ",c," "," "),t.append(" ",n," ",r," ",s," "),e.append(t),e}function Ze(o){let e=o.createFragment(),t=o.createElement("div","lh-crc-node"),n=o.createElement("span","lh-crc-node__tree-marker"),r=o.createElement("span","lh-crc-node__tree-value");return t.append(" ",n," ",r," "),e.append(t),e}function Je(o){let e=o.createFragment(),t=o.createElement("div","lh-element-screenshot"),n=o.createElement("div","lh-element-screenshot__content"),r=o.createElement("div","lh-element-screenshot__image"),i=o.createElement("div","lh-element-screenshot__mask"),a=o.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("height","0"),a.setAttribute("width","0");let l=o.createElementNS("http://www.w3.org/2000/svg","defs"),s=o.createElementNS("http://www.w3.org/2000/svg","clipPath");s.setAttribute("clipPathUnits","objectBoundingBox"),l.append(" ",s," "," "),a.append(" ",l," "),i.append(" ",a," ");let c=o.createElement("div","lh-element-screenshot__element-marker");retur\
n r.append(" ",i," ",c," "),n.append(" ",r," "),t.append(" ",n," "),e.append(t),e}function Qe(o){let e=o.createFragment(),t=o.createElement("div","lh-exp-gauge-component"),n=o.createElement("div","lh-exp-gauge__wrapper");n.setAttribute("target","_blank");let r=o.createElement("div","lh-exp-gauge__svg-wrapper"),i=o.createElementNS("http://www.w3.org/2000/svg","svg","lh-exp-gauge"),a=o.createElementNS("http://www.w3.org/2000/svg","g","lh-exp-gauge__inner"),l=o.createElementNS("http://www.w3.org/2000/svg","circle","lh-exp-gauge__bg"),s=o.createElementNS("http://www.w3.org/2000/svg","circle","lh-exp-gauge__base lh-exp-gauge--faded"),c=o.createElementNS("http://www.w3.org/2000/svg","circle","lh-exp-gauge__arc"),d=o.createElementNS("http://www.w3.org/2000/svg","text","lh-exp-gauge__percentage");a.append(" ",l," ",s," ",c," ",d," ");let h=o.createElementNS("http://www.w3.org/2000/svg","g","lh-exp-gauge__outer"),p=o.createElementNS("http://www.w3.org/2000/svg","circle","lh-cover");h.append(" "\
,p," ");let g=o.createElementNS("http://www.w3.org/2000/svg","text","lh-exp-gauge__label");return g.setAttribute("text-anchor","middle"),g.setAttribute("x","0"),g.setAttribute("y","60"),i.append(" ",a," ",h," ",g," "),r.append(" ",i," "),n.append(" ",r," "),t.append(" ",n," "),e.append(t),e}function Ye(o){let e=o.createFragment(),t=o.createElement("style");t.append(`\n    .lh-footer {\n      padding: var(--footer-padding-vertical) calc(var(--default-padding) * 2);\n      max-width: var(--report-content-max-width);\n      margin: 0 auto;\n    }\n    .lh-footer .lh-generated {\n      text-align: center;\n    }\n  `),e.append(t);let n=o.createElement("footer","lh-footer"),r=o.createElement("ul","lh-meta__items");r.append(" ");let i=o.createElement("div","lh-generated"),a=o.createElement("b");a.append("Lighthouse");let l=o.createElement("span","lh-footer__version"),s=o.createElement("a","lh-footer__version_issue");return s.setAttribute("href","https://github.com/GoogleChrome/Lighthouse/issues"),s.s\
etAttribute("target","_blank"),s.setAttribute("rel","noopener"),s.append("File an issue"),i.append(" "," Generated by ",a," ",l," | ",s," "),n.append(" ",r," ",i," "),e.append(n),e}function Xe(o){let e=o.createFragment(),t=o.createElement("a","lh-fraction__wrapper"),n=o.createElement("div","lh-fraction__content-wrapper"),r=o.createElement("div","lh-fraction__content"),i=o.createElement("div","lh-fraction__background");r.append(" ",i," "),n.append(" ",r," ");let a=o.createElement("div","lh-fraction__label");return t.append(" ",n," ",a," "),e.append(t),e}function et(o){let e=o.createFragment(),t=o.createElement("a","lh-gauge__wrapper"),n=o.createElement("div","lh-gauge__svg-wrapper"),r=o.createElementNS("http://www.w3.org/2000/svg","svg","lh-gauge");r.setAttribute("viewBox","0 0 120 120");let i=o.createElementNS("http://www.w3.org/2000/svg","circle","lh-gauge-base");i.setAttribute("r","56"),i.setAttribute("cx","60"),i.setAttribute("cy","60"),i.setAttribute("stroke-width","8");let a=o.cre\
ateElementNS("http://www.w3.org/2000/svg","circle","lh-gauge-arc");a.setAttribute("r","56"),a.setAttribute("cx","60"),a.setAttribute("cy","60"),a.setAttribute("stroke-width","8"),r.append(" ",i," ",a," "),n.append(" ",r," ");let l=o.createElement("div","lh-gauge__percentage"),s=o.createElement("div","lh-gauge__label");return t.append(" "," ",n," ",l," "," ",s," "),e.append(t),e}function tt(o){let e=o.createFragment(),t=o.createElement("style");t.append(`\n    /* CSS Fireworks. Originally by Eddie Lin\n       https://codepen.io/paulirish/pen/yEVMbP\n    */\n    .lh-pyro {\n      display: none;\n      z-index: 1;\n      pointer-events: none;\n    }\n    .lh-score100 .lh-pyro {\n      display: block;\n    }\n    .lh-score100 .lh-lighthouse stop:first-child {\n      stop-color: hsla(200, 12%, 95%, 0);\n    }\n    .lh-score100 .lh-lighthouse stop:last-child {\n      stop-color: hsla(65, 81%, 76%, 1);\n    }\n\n    .lh-pyro > .lh-pyro-before, .lh-pyro > .lh-pyro-after {\n      position: absolute;\n      width: 5\
px;\n      height: 5px;\n      border-radius: 2.5px;\n      box-shadow: 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff;\n      animation: 1s bang ease-out infinite backwards,  1s gravity ease-in infinite backwards,  5s position linear infinite backwards;\n      animation-delay: 1s, 1s, 1s;\n    }\n\n    .lh-pyro > .lh-pyro-after {\n      animation-delay: 2.25s, 2.25s, 2.25s;\n      animation-duration: 1.25s, 1.25s, 6.25s;\n    }\n\n    @keyframes bang {\n      to {\n        opacity: 1;\n        box-shadow: -70px -115.67px #47ebbc, -28px -99.67px #e\
b47a4, 58px -31.67px #7eeb47, 13px -141.67px #eb47c5, -19px 6.33px #7347eb, -2px -74.67px #ebd247, 24px -151.67px #eb47e0, 57px -138.67px #b4eb47, -51px -104.67px #479eeb, 62px 8.33px #ebcf47, -93px 0.33px #d547eb, -16px -118.67px #47bfeb, 53px -84.67px #47eb83, 66px -57.67px #eb47bf, -93px -65.67px #91eb47, 30px -13.67px #86eb47, -2px -59.67px #83eb47, -44px 1.33px #eb47eb, 61px -58.67px #47eb73, 5px -22.67px #47e8eb, -66px -28.67px #ebe247, 42px -123.67px #eb5547, -75px 26.33px #7beb47, 15px -52.67px #a147eb, 36px -51.67px #eb8347, -38px -12.67px #eb5547, -46px -59.67px #47eb81, 78px -114.67px #eb47ba, 15px -156.67px #eb47bf, -36px 1.33px #eb4783, -72px -86.67px #eba147, 31px -46.67px #ebe247, -68px 29.33px #47e2eb, -55px 19.33px #ebe047, -56px 27.33px #4776eb, -13px -91.67px #eb5547, -47px -138.67px #47ebc7, -18px -96.67px #eb47ac, 11px -88.67px #4783eb, -67px -28.67px #47baeb, 53px 10.33px #ba47eb, 11px 19.33px #5247eb, -5px -11.67px #eb4791, -68px -4.67px #47eba7, 95px -37.67px #e\
b478b, -67px -162.67px #eb5d47, -54px -120.67px #eb6847, 49px -12.67px #ebe047, 88px 8.33px #47ebda, 97px 33.33px #eb8147, 6px -71.67px #ebbc47;\n      }\n    }\n    @keyframes gravity {\n      from {\n        opacity: 1;\n      }\n      to {\n        transform: translateY(80px);\n        opacity: 0;\n      }\n    }\n    @keyframes position {\n      0%, 19.9% {\n        margin-top: 4%;\n        margin-left: 47%;\n      }\n      20%, 39.9% {\n        margin-top: 7%;\n        margin-left: 30%;\n      }\n      40%, 59.9% {\n        margin-top: 6%;\n        margin-left: 70%;\n      }\n      60%, 79.9% {\n        margin-top: 3%;\n        margin-left: 20%;\n      }\n      80%, 99.9% {\n        margin-top: 3%;\n        margin-left: 80%;\n      }\n    }\n  `),e.append(t);let n=o.createElement("div","lh-header-container"),r=o.createElement("div","lh-scores-wrapper-placeholder");return n.append(" ",r," "),e.append(n),e}function nt(o){let e=o.createFragment(),t=o.createElement("div","lh-metric"),n=o.createElement("div","lh-metric\
__innerwrap"),r=o.createElement("div","lh-metric__icon"),i=o.createElement("span","lh-metric__title"),a=o.createElement("div","lh-metric__value"),l=o.createElement("div","lh-metric__description");return n.append(" ",r," ",i," ",a," ",l," "),t.append(" ",n," "),e.append(t),e}function rt(o){let e=o.createFragment(),t=o.createElement("div","lh-scorescale"),n=o.createElement("span","lh-scorescale-range lh-scorescale-range--fail");n.append("0\\u201349");let r=o.createElement("span","lh-scorescale-range lh-scorescale-range--average");r.append("50\\u201389");let i=o.createElement("span","lh-scorescale-range lh-scorescale-range--pass");return i.append("90\\u2013100"),t.append(" ",n," ",r," ",i," "),e.append(t),e}function ot(o){let e=o.createFragment(),t=o.createElement("style");t.append(`\n    .lh-scores-container {\n      display: flex;\n      flex-direction: column;\n      padding: var(--default-padding) 0;\n      position: relative;\n      width: 100%;\n    }\n\n    .lh-sticky-header {\n      --gauge-ci\
rcle-size: var(--gauge-circle-size-sm);\n      --plugin-badge-size: 16px;\n      --plugin-icon-size: 75%;\n      --gauge-wrapper-width: 60px;\n      --gauge-percentage-font-size: 13px;\n      position: fixed;\n      left: 0;\n      right: 0;\n      top: var(--topbar-height);\n      font-weight: 500;\n      display: none;\n      justify-content: center;\n      background-color: var(--sticky-header-background-color);\n      border-bottom: 1px solid var(--color-gray-200);\n      padding-top: var(--score-container-padding);\n      padding-bottom: 4px;\n      z-index: 2;\n      pointer-events: none;\n    }\n\n    .lh-devtools .lh-sticky-header {\n      /* The report within DevTools is placed in a container with overflow, which changes the placement of this header unless we change \\`position\\` to \\`sticky.\\` */\n      position: sticky;\n    }\n\n    .lh-sticky-header--visible {\n      display: grid;\n      grid-auto-flow: column;\n      pointer-events: auto;\n    }\n\n    /* Disable the gauge arc animation for the sticky \
header, so toggling display: none\n       does not play the animation. */\n    .lh-sticky-header .lh-gauge-arc {\n      animation: none;\n    }\n\n    .lh-sticky-header .lh-gauge__label,\n    .lh-sticky-header .lh-fraction__label {\n      display: none;\n    }\n\n    .lh-highlighter {\n      width: var(--gauge-wrapper-width);\n      height: 1px;\n      background-color: var(--highlighter-background-color);\n      /* Position at bottom of first gauge in sticky header. */\n      position: absolute;\n      grid-column: 1;\n      bottom: -1px;\n      left: 0px;\n      right: 0px;\n    }\n  `),e.append(t);let n=o.createElement("div","lh-scores-wrapper"),r=o.createElement("div","lh-scores-container"),i=o.createElement("div","lh-pyro"),a=o.createElement("div","lh-pyro-before"),l=o.createElement("div","lh-pyro-after");return i.append(" ",a," ",l," "),r.append(" ",i," "),n.append(" ",r," "),e.append(n),e}function it(o){let e=o.createFragment(),t=o.createElement("div","lh-snippet"),n=o.createElement("style");return n\
.append(`\n          :root {\n            --snippet-highlight-light: #fbf1f2;\n            --snippet-highlight-dark: #ffd6d8;\n          }\n\n         .lh-snippet__header {\n          position: relative;\n          overflow: hidden;\n          padding: 10px;\n          border-bottom: none;\n          color: var(--snippet-color);\n          background-color: var(--snippet-background-color);\n          border: 1px solid var(--report-border-color-secondary);\n        }\n        .lh-snippet__title {\n          font-weight: bold;\n          float: left;\n        }\n        .lh-snippet__node {\n          float: left;\n          margin-left: 4px;\n        }\n        .lh-snippet__toggle-expand {\n          padding: 1px 7px;\n          margin-top: -1px;\n          margin-right: -7px;\n          float: right;\n          background: transparent;\n          border: none;\n          cursor: pointer;\n          font-size: 14px;\n          color: #0c50c7;\n        }\n\n        .lh-snippet__snippet {\n          overflow: auto;\n         \
 border: 1px solid var(--report-border-color-secondary);\n        }\n        /* Container needed so that all children grow to the width of the scroll container */\n        .lh-snippet__snippet-inner {\n          display: inline-block;\n          min-width: 100%;\n        }\n\n        .lh-snippet:not(.lh-snippet--expanded) .lh-snippet__show-if-expanded {\n          display: none;\n        }\n        .lh-snippet.lh-snippet--expanded .lh-snippet__show-if-collapsed {\n          display: none;\n        }\n\n        .lh-snippet__line {\n          background: white;\n          white-space: pre;\n          display: flex;\n        }\n        .lh-snippet__line:not(.lh-snippet__line--message):first-child {\n          padding-top: 4px;\n        }\n        .lh-snippet__line:not(.lh-snippet__line--message):last-child {\n          padding-bottom: 4px;\n        }\n        .lh-snippet__line--content-highlighted {\n          background: var(--snippet-highlight-dark);\n        }\n        .lh-snippet__line--message {\n          backgr\
ound: var(--snippet-highlight-light);\n        }\n        .lh-snippet__line--message .lh-snippet__line-number {\n          padding-top: 10px;\n          padding-bottom: 10px;\n        }\n        .lh-snippet__line--message code {\n          padding: 10px;\n          padding-left: 5px;\n          color: var(--color-fail);\n          font-family: var(--report-font-family);\n        }\n        .lh-snippet__line--message code {\n          white-space: normal;\n        }\n        .lh-snippet__line-icon {\n          padding-top: 10px;\n          display: none;\n        }\n        .lh-snippet__line--message .lh-snippet__line-icon {\n          display: block;\n        }\n        .lh-snippet__line-icon:before {\n          content: "";\n          display: inline-block;\n          vertical-align: middle;\n          margin-right: 4px;\n          width: var(--score-icon-size);\n          height: var(--score-icon-size);\n          background-image: var(--fail-icon-url);\n        }\n        .lh-snippet__line-number {\n          flex\
-shrink: 0;\n          width: 40px;\n          text-align: right;\n          font-family: monospace;\n          padding-right: 5px;\n          margin-right: 5px;\n          color: var(--color-gray-600);\n          user-select: none;\n        }\n    `),t.append(" ",n," "),e.append(t),e}function at(o){let e=o.createFragment(),t=o.createElement("div","lh-snippet__snippet"),n=o.createElement("div","lh-snippet__snippet-inner");return t.append(" ",n," "),e.append(t),e}function lt(o){let e=o.createFragment(),t=o.createElement("div","lh-snippet__header"),n=o.createElement("div","lh-snippet__title"),r=o.createElement("div","lh-snippet__node"),i=o.createElement("button","lh-snippet__toggle-expand"),a=o.createElement("span","lh-snippet__btn-label-collapse lh-snippet__show-if-expanded"),l=o.createElement("span","lh-snippet__btn-label-expand lh-snippet__show-if-collapsed");return i.append(" ",a," ",l," "),t.append(" ",n," ",r," ",i," "),e.append(t),e}function st(o){let e=o.createFragment(),t=o.createElement\
("div","lh-snippet__line"),n=o.createElement("div","lh-snippet__line-number"),r=o.createElement("div","lh-snippet__line-icon"),i=o.createElement("code");return t.append(" ",n," ",r," ",i," "),e.append(t),e}function ct(o){let e=o.createFragment(),t=o.createElement("style");return t.append(`/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/*\n  Naming convention:\n\n  If a variable is used for a specific component: --{component}-{property name}-{modifier}\n\n  Both {component} and {property name} should be kebab-case. If the target is the entire page,\n  use \'report\' for the component. The property name should not be abbreviated. Use the\n  property name the variable is intended for - if it\'s used for multiple, a common descriptor\n  is fine (ex: \'size\' for a variable applied to \'width\' and \'height\'). If a variable is shared\n  across multiple components, either create more variables or just drop the "{component}-"\n  part of the name. Append any modifiers a\
t the end (ex: \'big\', \'dark\').\n\n  For colors: --color-{hue}-{intensity}\n\n  {intensity} is the Material Design tag - 700, A700, etc.\n*/\n.lh-vars {\n  /* Palette using Material Design Colors\n   * https://www.materialui.co/colors */\n  --color-amber-50: #FFF8E1;\n  --color-blue-200: #90CAF9;\n  --color-blue-900: #0D47A1;\n  --color-blue-A700: #2962FF;\n  --color-blue-primary: #06f;\n  --color-cyan-500: #00BCD4;\n  --color-gray-100: #F5F5F5;\n  --color-gray-300: #CFCFCF;\n  --color-gray-200: #E0E0E0;\n  --color-gray-400: #BDBDBD;\n  --color-gray-50: #FAFAFA;\n  --color-gray-500: #9E9E9E;\n  --color-gray-600: #757575;\n  --color-gray-700: #616161;\n  --color-gray-800: #424242;\n  --color-gray-900: #212121;\n  --color-gray: #000000;\n  --color-green-700: #080;\n  --color-green: #0c6;\n  --color-lime-400: #D3E156;\n  --color-orange-50: #FFF3E0;\n  --color-orange-700: #C33300;\n  --color-orange: #fa3;\n  --color-red-700: #c00;\n  --color-red: #f33;\n  --color-teal-600: #00897B;\n  --color-white: #FFFFFF;\n\n  /* Context-sp\
ecific colors */\n  --color-average-secondary: var(--color-orange-700);\n  --color-average: var(--color-orange);\n  --color-fail-secondary: var(--color-red-700);\n  --color-fail: var(--color-red);\n  --color-hover: var(--color-gray-50);\n  --color-informative: var(--color-blue-900);\n  --color-pass-secondary: var(--color-green-700);\n  --color-pass: var(--color-green);\n  --color-not-applicable: var(--color-gray-600);\n\n  /* Component variables */\n  --audit-description-padding-left: calc(var(--score-icon-size) + var(--score-icon-margin-left) + var(--score-icon-margin-right));\n  --audit-explanation-line-height: 16px;\n  --audit-group-margin-bottom: calc(var(--default-padding) * 6);\n  --audit-group-padding-vertical: 8px;\n  --audit-margin-horizontal: 5px;\n  --audit-padding-vertical: 8px;\n  --category-padding: calc(var(--default-padding) * 6) var(--edge-gap-padding) calc(var(--default-padding) * 4);\n  --chevron-line-stroke: var(--color-gray-600);\n  --chevron-size: 12px;\n  --default-padding: 8px;\n  --\
edge-gap-padding: calc(var(--default-padding) * 4);\n  --env-item-background-color: var(--color-gray-100);\n  --env-item-font-size: 28px;\n  --env-item-line-height: 36px;\n  --env-item-padding: 10px 0px;\n  --env-name-min-width: 220px;\n  --footer-padding-vertical: 16px;\n  --gauge-circle-size-big: 96px;\n  --gauge-circle-size: 48px;\n  --gauge-circle-size-sm: 32px;\n  --gauge-label-font-size-big: 18px;\n  --gauge-label-font-size: var(--report-font-size-secondary);\n  --gauge-label-line-height-big: 24px;\n  --gauge-label-line-height: var(--report-line-height-secondary);\n  --gauge-percentage-font-size-big: 38px;\n  --gauge-percentage-font-size: var(--report-font-size-secondary);\n  --gauge-wrapper-width: 120px;\n  --header-line-height: 24px;\n  --highlighter-background-color: var(--report-text-color);\n  --icon-square-size: calc(var(--score-icon-size) * 0.88);\n  --image-preview-size: 48px;\n  --link-color: var(--color-blue-primary);\n  --locale-selector-background-color: var(--color-white);\n  --metric-togg\
le-lines-fill: #7F7F7F;\n  --metric-value-font-size: calc(var(--report-font-size) * 1.8);\n  --metrics-toggle-background-color: var(--color-gray-200);\n  --plugin-badge-background-color: var(--color-white);\n  --plugin-badge-size-big: calc(var(--gauge-circle-size-big) / 2.7);\n  --plugin-badge-size: calc(var(--gauge-circle-size) / 2.7);\n  --plugin-icon-size: 65%;\n  --report-background-color: #fff;\n  --report-border-color-secondary: #ebebeb;\n  --report-font-family-monospace: monospace, \'Roboto Mono\', \'Menlo\', \'dejavu sans mono\', \'Consolas\', \'Lucida Console\';\n  --report-font-family: system-ui, Roboto, Helvetica, Arial, sans-serif;\n  --report-font-size: 14px;\n  --report-font-size-secondary: 12px;\n  --report-icon-size: var(--score-icon-background-size);\n  --report-line-height: 24px;\n  --report-line-height-secondary: 20px;\n  --report-monospace-font-size: calc(var(--report-font-size) * 0.85);\n  --report-text-color-secondary: var(--color-gray-800);\n  --report-text-color: var(--color-gray-900);\n  -\
-report-content-max-width: calc(60 * var(--report-font-size)); /* defaults to 840px */\n  --report-content-min-width: 360px;\n  --report-content-max-width-minus-edge-gap: calc(var(--report-content-max-width) - var(--edge-gap-padding) * 2);\n  --score-container-padding: 8px;\n  --score-icon-background-size: 24px;\n  --score-icon-margin-left: 6px;\n  --score-icon-margin-right: 14px;\n  --score-icon-margin: 0 var(--score-icon-margin-right) 0 var(--score-icon-margin-left);\n  --score-icon-size: 12px;\n  --score-icon-size-big: 16px;\n  --screenshot-overlay-background: rgba(0, 0, 0, 0.3);\n  --section-padding-vertical: calc(var(--default-padding) * 6);\n  --snippet-background-color: var(--color-gray-50);\n  --snippet-color: #0938C2;\n  --stackpack-padding-horizontal: 10px;\n  --sticky-header-background-color: var(--report-background-color);\n  --sticky-header-buffer: var(--topbar-height);\n  --sticky-header-height: calc(var(--gauge-circle-size-sm) + var(--score-container-padding) * 2 + 1em);\n  --table-group-\
header-background-color: #EEF1F4;\n  --table-group-header-text-color: var(--color-gray-700);\n  --table-higlight-background-color: #F5F7FA;\n  --tools-icon-color: var(--color-gray-600);\n  --topbar-background-color: var(--color-white);\n  --topbar-height: 32px;\n  --topbar-logo-size: 24px;\n  --topbar-padding: 0 8px;\n  --toplevel-warning-background-color: hsla(30, 100%, 75%, 10%);\n  --toplevel-warning-message-text-color: var(--color-average-secondary);\n  --toplevel-warning-padding: 18px;\n  --toplevel-warning-text-color: var(--report-text-color);\n\n  /* SVGs */\n  --plugin-icon-url-dark: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M0 0h24v24H0z" fill="none"/><path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2\
-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"/></svg>\');\n  --plugin-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" fill="%23757575"><path d="M0 0h24v24H0z" fill="none"/><path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"/></svg>\');\n\n  --pass-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><title>check</title><path fill="%23178239" d="M24 4C12.95 4 4 12.95 4 24c0 11.04 8.95 20 20 20 11.04 0 20-8.96 20-20 0-11.05-8.96-20-20-20zm-4 30L10 24l2.83-2.83L20 28.34l15.17-15.17L38 16 20 34z"/></svg>\');\n  --average-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48\
"><title>info</title><path fill="%23E67700" d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm2 30h-4V22h4v12zm0-16h-4v-4h4v4z"/></svg>\');\n  --fail-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><title>warn</title><path fill="%23C7221F" d="M2 42h44L24 4 2 42zm24-6h-4v-4h4v4zm0-8h-4v-8h4v8z"/></svg>\');\n  --error-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3 15"><title>error</title><path d="M0 15H 3V 12H 0V" fill="%23FF4E42"/><path d="M0 9H 3V 0H 0V" fill="%23FF4E42"/></svg>\');\n\n  --swap-locale-icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="%23000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 \
19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"/></svg>\');\n  \n  --baseline-high-icon-url: url("data:image/svg+xml;utf8,<svg width=\'18\' height=\'10\' viewBox=\'0 0 540 300\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'> <path d=\'M420 30L390 60L480 150L390 240L330 180L300 210L390 300L540 150L420 30Z\' fill=\'%23C4EED0\'/> <path d=\'M150 0L30 120L60 150L150 60L210 120L240 90L150 0Z\' fill=\'%23C4EED0\'/> <path d=\'M390 0L420 30L150 300L0 150L30 120L150 240L390 0Z\' fill=\'%231EA446\'/> </svg>");\n  --baseline-low-icon-url: url("data:image/svg+xml;utf8,<svg width=\'18\' height=\'10\' viewBox=\'0 0 540 300\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'> <path d=\'M150 0L180 30L150 60L120 30L150 0Z\' fill=\'%23A8C7FA\'/> <path d=\'M210 60L240 90L210 120L180 90L210 60Z\' fill=\'%23A8C7FA\'/> <path d=\'M450 60L480 90L450 120L420 90L450 60Z\' fill=\'%23A8C7FA\'/> <path d=\'M510 120L540 150L510 180L480 150L510 120Z\' fill=\'%23A8C7FA\'/> <path d=\'M450 180L480 210L450 2\
40L420 210L450 180Z\' fill=\'%23A8C7FA\'/> <path d=\'M390 240L420 270L390 300L360 270L390 240Z\' fill=\'%23A8C7FA\'/> <path d=\'M330 180L360 210L330 240L300 210L330 180Z\' fill=\'%23A8C7FA\'/> <path d=\'M90 60L120 90L90 120L60 90L90 60Z\' fill=\'%23A8C7FA\'/> <path d=\'M390 0L420 30L150 300L0 150L30 120L150 240L390 0Z\' fill=\'%231B6EF3\'/> </svg>");\n  --baseline-limited-icon-url: url("data:image/svg+xml;utf8,<svg width=\'18\' height=\'10\' viewBox=\'0 0 540 300\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'> <path d=\'M150 0L240 90L210 120L120 30L150 0Z\' fill=\'%23F09409\'/> <path d=\'M420 30L540 150L420 270L390 240L480 150L390 60L420 30Z\' fill=\'%23C6C6C6\'/> <path d=\'M330 180L300 210L390 300L420 270L330 180Z\' fill=\'%23F09409\'/> <path d=\'M120 30L150 60L60 150L150 240L120 270L0 150L120 30Z\' fill=\'%23C6C6C6\'/> <path d=\'M390 0L420 30L150 300L120 270L390 0Z\' fill=\'%23F09409\'/> </svg>");\n}\n\n@media not print {\n  .lh-dark {\n    /* Pallete */\n    --color-gray-200: var(--color-gray-800);\n    --color-gray-300: #616161;\n  \
  --color-gray-400: var(--color-gray-600);\n    --color-gray-700: var(--color-gray-400);\n    --color-gray-50: #757575;\n    --color-gray-600: var(--color-gray-500);\n    --color-green-700: var(--color-green);\n    --color-orange-700: var(--color-orange);\n    --color-red-700: var(--color-red);\n    --color-teal-600: var(--color-cyan-500);\n\n    /* Context-specific colors */\n    --color-hover: rgba(0, 0, 0, 0.2);\n    --color-informative: var(--color-blue-200);\n\n    /* Component variables */\n    --env-item-background-color: #393535;\n    --link-color: var(--color-blue-200);\n    --locale-selector-background-color: var(--color-gray-200);\n    --plugin-badge-background-color: var(--color-gray-800);\n    --report-background-color: var(--color-gray-900);\n    --report-border-color-secondary: var(--color-gray-200);\n    --report-text-color-secondary: var(--color-gray-400);\n    --report-text-color: var(--color-gray-100);\n    --snippet-color: var(--color-cyan-500);\n    --topbar-background-color: var(--color\
-gray);\n    --toplevel-warning-background-color: hsl(33deg 14% 18%);\n    --toplevel-warning-message-text-color: var(--color-orange-700);\n    --toplevel-warning-text-color: var(--color-gray-100);\n    --table-group-header-background-color: rgba(186, 196, 206, 0.15);\n    --table-group-header-text-color: var(--color-gray-100);\n    --table-higlight-background-color: rgba(186, 196, 206, 0.09);\n\n    /* SVGs */\n    --plugin-icon-url: var(--plugin-icon-url-dark);\n  }\n}\n\n/**\n* This media query is a temporary fallback for browsers that do not support \\`@container query\\`.\n* TODO: remove this media query when \\`@container query\\` is fully supported by browsers\n* See https://github.com/GoogleChrome/lighthouse/pull/16332\n*/\n@media only screen and (max-width: 480px) {\n  .lh-vars {\n    --audit-group-margin-bottom: 20px;\n    --edge-gap-padding: var(--default-padding);\n    --env-name-min-width: 120px;\n    --gauge-circle-size-big: 96px;\n    --gauge-circle-size: 72px;\n    --gauge-label-font-size-big: 22px\
;\n    --gauge-label-font-size: 14px;\n    --gauge-label-line-height-big: 26px;\n    --gauge-label-line-height: 20px;\n    --gauge-percentage-font-size-big: 34px;\n    --gauge-percentage-font-size: 26px;\n    --gauge-wrapper-width: 112px;\n    --header-padding: 16px 0 16px 0;\n    --image-preview-size: 24px;\n    --plugin-icon-size: 75%;\n    --report-font-size: 14px;\n    --report-line-height: 20px;\n    --score-icon-margin-left: 2px;\n    --score-icon-size: 10px;\n    --topbar-height: 28px;\n    --topbar-logo-size: 20px;\n  }\n}\n\n@container lh-container (max-width: 480px) {\n  .lh-vars {\n    --audit-group-margin-bottom: 20px;\n    --edge-gap-padding: var(--default-padding);\n    --env-name-min-width: 120px;\n    --gauge-circle-size-big: 96px;\n    --gauge-circle-size: 72px;\n    --gauge-label-font-size-big: 22px;\n    --gauge-label-font-size: 14px;\n    --gauge-label-line-height-big: 26px;\n    --gauge-label-line-height: 20px;\n    --gauge-percentage-font-size-big: 34px;\n    --gauge-percentage-font-size: 26px;\
\n    --gauge-wrapper-width: 112px;\n    --header-padding: 16px 0 16px 0;\n    --image-preview-size: 24px;\n    --plugin-icon-size: 75%;\n    --report-font-size: 14px;\n    --report-line-height: 20px;\n    --score-icon-margin-left: 2px;\n    --score-icon-size: 10px;\n    --topbar-height: 28px;\n    --topbar-logo-size: 20px;\n  }\n}\n\n.lh-vars.lh-devtools {\n  --audit-explanation-line-height: 14px;\n  --audit-group-margin-bottom: 20px;\n  --audit-group-padding-vertical: 12px;\n  --audit-padding-vertical: 4px;\n  --category-padding: 12px;\n  --default-padding: 12px;\n  --env-name-min-width: 120px;\n  --footer-padding-vertical: 8px;\n  --gauge-circle-size-big: 72px;\n  --gauge-circle-size: 64px;\n  --gauge-label-font-size-big: 22px;\n  --gauge-label-font-size: 14px;\n  --gauge-label-line-height-big: 26px;\n  --gauge-label-line-height: 20px;\n  --gauge-percentage-font-size-big: 34px;\n  --gauge-percentage-font-size: 26px;\n  --gauge-wrapper-width: 97px;\n  --header-line-height: 20px;\n  --header-padding: 16px 0 16px 0;\n \
 --screenshot-overlay-background: transparent;\n  --plugin-icon-size: 75%;\n  --report-font-size: 12px;\n  --report-line-height: 20px;\n  --score-icon-margin-left: 2px;\n  --score-icon-size: 10px;\n  --section-padding-vertical: 8px;\n}\n\n.lh-devtools :focus-visible {\n  outline: -webkit-focus-ring-color auto 1px;\n}\n\n.lh-container:has(.lh-sticky-header) {\n  --sticky-header-buffer: calc(var(--topbar-height) + var(--sticky-header-height));\n}\n\n.lh-container:not(.lh-topbar + .lh-container) {\n  --topbar-height: 0;\n  --sticky-header-height: 0;\n  --sticky-header-buffer: 0;\n}\n\n.lh-max-viewport {\n  display: flex;\n  flex-direction: column;\n  min-height: 100vh;\n  width: 100%;\n}\n\n.lh-devtools.lh-root {\n  height: 100%;\n}\n.lh-devtools.lh-root img {\n  /* Override devtools default \'min-width: 0\' so svg without size in a flexbox isn\'t collapsed. */\n  min-width: auto;\n}\n.lh-devtools .lh-container {\n  overflow-y: scroll;\n  height: calc(100% - var(--topbar-height));\n  /** The .lh-container is the scroll parent in D\
evTools so we exclude the topbar from the sticky header buffer. */\n  --sticky-header-buffer: 0;\n}\n.lh-devtools .lh-container:has(.lh-sticky-header) {\n  /** The .lh-container is the scroll parent in DevTools so we exclude the topbar from the sticky header buffer. */\n  --sticky-header-buffer: var(--sticky-header-height);\n}\n@media print {\n  .lh-devtools .lh-container {\n    overflow: unset;\n  }\n}\n.lh-devtools .lh-sticky-header {\n  /* This is normally the height of the topbar, but we want it to stick to the top of our scroll container .lh-container\\` */\n  top: 0;\n}\n.lh-devtools .lh-element-screenshot__overlay {\n  position: absolute;\n}\n\n@keyframes fadeIn {\n  0% { opacity: 0;}\n  100% { opacity: 0.6;}\n}\n\n.lh-root *, .lh-root *::before, .lh-root *::after {\n  box-sizing: border-box;\n}\n\n.lh-root {\n  font-family: var(--report-font-family);\n  font-size: var(--report-font-size);\n  margin: 0;\n  line-height: var(--report-line-height);\n  background: var(--report-background-color);\n  color: var(--report\
-text-color);\n}\n\n.lh-root [hidden] {\n  display: none !important;\n}\n\n.lh-root pre {\n  margin: 0;\n}\n\n.lh-root pre,\n.lh-root code {\n  font-family: var(--report-font-family-monospace);\n}\n\n.lh-root details > summary {\n  cursor: pointer;\n}\n\n.lh-hidden {\n  display: none !important;\n}\n\n.lh-container {\n  /*\n  Text wrapping in the report is so much FUN!\n  We have a \\`word-break: break-word;\\` globally here to prevent a few common scenarios, namely\n  long non-breakable text (usually URLs) found in:\n    1. The footer\n    2. .lh-node (outerHTML)\n    3. .lh-code\n\n  With that sorted, the next challenge is appropriate column sizing and text wrapping inside our\n  .lh-details tables. Even more fun.\n    * We don\'t want table headers ("Est Savings (ms)") to wrap or their column values, but\n      we\'d be happy for the URL column to wrap if the URLs are particularly long.\n    * We want the narrow columns to remain narrow, providing the most column width for URL\n    * We don\'t want the table to extend past 1\
00% width.\n    * Long URLs in the URL column can wrap. Util.getURLDisplayName maxes them out at 64 characters,\n      but they do not get any overflow:ellipsis treatment.\n  */\n  word-break: break-word;\n\n  container-name: lh-container;\n  container-type: inline-size;\n}\n\n.lh-audit-group a,\n.lh-category-header__description a,\n.lh-audit__description a,\n.lh-warnings a,\n.lh-footer a,\n.lh-table-column--link a {\n  color: var(--link-color);\n}\n\n.lh-audit__description, .lh-audit__stackpack, .lh-list-section__description {\n  --inner-audit-padding-right: var(--stackpack-padding-horizontal);\n  padding-left: var(--audit-description-padding-left);\n  padding-right: var(--inner-audit-padding-right);\n  padding-top: 8px;\n  padding-bottom: 8px;\n}\n\n.lh-details {\n  margin-top: var(--default-padding);\n  margin-bottom: var(--default-padding);\n  margin-left: var(--audit-description-padding-left);\n}\n\n.lh-audit__stackpack {\n  display: flex;\n  align-items: center;\n}\n\n.lh-audit__stackpack__img {\n  max-width: 30px;\n  \
margin-right: var(--default-padding)\n}\n\n/* Report header */\n\n.lh-report-icon {\n  display: flex;\n  align-items: center;\n  padding: 10px 12px;\n  cursor: pointer;\n}\n.lh-report-icon[disabled] {\n  opacity: 0.3;\n  pointer-events: none;\n}\n\n.lh-report-icon::before {\n  content: "";\n  margin: 4px;\n  background-repeat: no-repeat;\n  width: var(--report-icon-size);\n  height: var(--report-icon-size);\n  opacity: 0.7;\n  display: inline-block;\n  vertical-align: middle;\n}\n.lh-report-icon:hover::before {\n  opacity: 1;\n}\n.lh-dark .lh-report-icon::before {\n  filter: invert(1);\n}\n.lh-report-icon--print::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\');\n}\n.lh-report-icon--copy::before {\n  background-image: url(\'data:im\
age/svg+xml;utf8,<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>\');\n}\n.lh-report-icon--open::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/></svg>\');\n}\n.lh-report-icon--download::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>\');\n}\n.lh-report-icon--dark::before {\n  background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="\
http://www.w3.org/2000/svg" height="24" viewBox="0 0 100 125"><path d="M50 23.587c-16.27 0-22.799 12.574-22.799 21.417 0 12.917 10.117 22.451 12.436 32.471h20.726c2.32-10.02 12.436-19.554 12.436-32.471 0-8.843-6.528-21.417-22.799-21.417zM39.637 87.161c0 3.001 1.18 4.181 4.181 4.181h.426l.41 1.231C45.278 94.449 46.042 95 48.019 95h3.963c1.978 0 2.74-.551 3.365-2.427l.409-1.231h.427c3.002 0 4.18-1.18 4.18-4.181V80.91H39.637v6.251zM50 18.265c1.26 0 2.072-.814 2.072-2.073v-9.12C52.072 5.813 51.26 5 50 5c-1.259 0-2.072.813-2.072 2.073v9.12c0 1.259.813 2.072 2.072 2.072zM68.313 23.727c.994.774 2.135.634 2.91-.357l5.614-7.187c.776-.992.636-2.135-.356-2.909-.992-.776-2.135-.636-2.91.357l-5.613 7.186c-.778.993-.636 2.135.355 2.91zM91.157 36.373c-.306-1.222-1.291-1.815-2.513-1.51l-8.85 2.207c-1.222.305-1.814 1.29-1.51 2.512.305 1.223 1.291 1.814 2.513 1.51l8.849-2.206c1.223-.305 1.816-1.291 1.511-2.513zM86.757 60.48l-8.331-3.709c-1.15-.512-2.225-.099-2.736 1.052-.512 1.151-.1 2.224 1.051 2.737l8\
.33 3.707c1.15.514 2.225.101 2.736-1.05.513-1.149.1-2.223-1.05-2.737zM28.779 23.37c.775.992 1.917 1.131 2.909.357.992-.776 1.132-1.917.357-2.91l-5.615-7.186c-.775-.992-1.917-1.132-2.909-.357s-1.131 1.917-.356 2.909l5.614 7.187zM21.715 39.583c.305-1.223-.288-2.208-1.51-2.513l-8.849-2.207c-1.222-.303-2.208.289-2.513 1.511-.303 1.222.288 2.207 1.511 2.512l8.848 2.206c1.222.304 2.208-.287 2.513-1.509zM21.575 56.771l-8.331 3.711c-1.151.511-1.563 1.586-1.05 2.735.511 1.151 1.586 1.563 2.736 1.052l8.331-3.711c1.151-.511 1.563-1.586 1.05-2.735-.512-1.15-1.585-1.562-2.736-1.052z"/></svg>\');\n}\n.lh-report-icon--treemap::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="black"><path d="M3 5v14h19V5H3zm2 2h15v4H5V7zm0 10v-4h4v4H5zm6 0v-4h9v4h-9z"/></svg>\');\n}\n\n.lh-report-icon--date::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">\
<path d="M7 11h2v2H7v-2zm14-5v14a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h1V2h2v2h8V2h2v2h1a2 2 0 012 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z"/></svg>\');\n}\n.lh-report-icon--devices::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 6h18V4H4a2 2 0 00-2 2v11H0v3h14v-3H4V6zm19 2h-6a1 1 0 00-1 1v10c0 .6.5 1 1 1h6c.6 0 1-.5 1-1V9c0-.6-.5-1-1-1zm-1 9h-4v-7h4v7z"/></svg>\');\n}\n.lh-report-icon--world::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm7 6h-3c-.3-1.3-.8-2.5-1.4-3.6A8 8 0 0 1 18.9 8zm-7-4a14 14 0 0 1 2 4h-4a14 14 0 0 1 2-4zM4.3 14a8.2 8.2 0 0 1 0-4h3.3a16.5 16.5 0 0 0 0 4H4.3zm.8 2h3a14 14 0 0 0 1.3 3.6A8 8 0 0 1 5.1 16zm3-8H5a8 8 0 0 1 4.3-3.6L8 8zM12 20a14 14 0 0 1-2-4h4a14 14 0 0 1-2 4zm2.3-6H9.7a14.7 14.7 0 0 1 0-4h4.6a14.6 14.6 0 0 1 0 4zm.3 5.6c.6-1.2\
 1-2.4 1.4-3.6h3a8 8 0 0 1-4.4 3.6zm1.8-5.6a16.5 16.5 0 0 0 0-4h3.3a8.2 8.2 0 0 1 0 4h-3.3z"/></svg>\');\n}\n.lh-report-icon--stopwatch::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.1-6.6L20.5 6l-1.4-1.4L17.7 6A9 9 0 0 0 3 13a9 9 0 1 0 16-5.6zm-7 12.6a7 7 0 1 1 0-14 7 7 0 0 1 0 14z"/></svg>\');\n}\n.lh-report-icon--networkspeed::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.9 5c-.2 0-.3 0-.4.2v.2L10.1 17a2 2 0 0 0-.2 1 2 2 0 0 0 4 .4l2.4-12.9c0-.3-.2-.5-.5-.5zM1 9l2 2c2.9-2.9 6.8-4 10.5-3.6l1.2-2.7C10 3.8 4.7 5.3 1 9zm20 2 2-2a15.4 15.4 0 0 0-5.6-3.6L17 8.2c1.5.7 2.9 1.6 4.1 2.8zm-4 4 2-2a9.9 9.9 0 0 0-2.7-1.9l-.5 3 1.2.9zM5 13l2 2a7.1 7.1 0 0 1 4-2l1.3-2.9C9.7 10.1 7 11 5 13z"/></svg>\');\n}\n.lh-report-icon--samples-one::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http:/\
/www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="7" cy="14" r="3"/><path d="M7 18a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm4-2a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm5.6 17.6a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>\');\n}\n.lh-report-icon--samples-many::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 18a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm4-2a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm5.6 17.6a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/><circle cx="7" cy="14" r="3"/><circle cx="11" cy="6" r="3"/></svg>\');\n}\n.lh-report-icon--chrome::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-50 -50 562 562"><path d="M256 25.6v25.6a\
204 204 0 0 1 144.8 60 204 204 0 0 1 60 144.8 204 204 0 0 1-60 144.8 204 204 0 0 1-144.8 60 204 204 0 0 1-144.8-60 204 204 0 0 1-60-144.8 204 204 0 0 1 60-144.8 204 204 0 0 1 144.8-60V0a256 256 0 1 0 0 512 256 256 0 0 0 0-512v25.6z"/><path d="M256 179.2v25.6a51.3 51.3 0 0 1 0 102.4 51.3 51.3 0 0 1 0-102.4v-51.2a102.3 102.3 0 1 0-.1 204.7 102.3 102.3 0 0 0 .1-204.7v25.6z"/><path d="M256 204.8h217.6a25.6 25.6 0 0 0 0-51.2H256a25.6 25.6 0 0 0 0 51.2m44.3 76.8L191.5 470.1a25.6 25.6 0 1 0 44.4 25.6l108.8-188.5a25.6 25.6 0 1 0-44.4-25.6m-88.6 0L102.9 93.2a25.7 25.7 0 0 0-35-9.4 25.7 25.7 0 0 0-9.4 35l108.8 188.5a25.7 25.7 0 0 0 35 9.4 25.9 25.9 0 0 0 9.4-35.1"/></svg>\');\n}\n.lh-report-icon--external::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><path d="M3.15 11.9a1.01 1.01 0 0 1-.743-.307 1.01 1.01 0 0 1-.306-.743v-7.7c0-.292.102-.54.306-.744a1.01 1.01 0 0 1 .744-.306H7v1.05H3.15v7.7h7.7V7h1.05v3.85c0 .291-.103.54-.307.743a1.01 1.01 0 0 1-\
.743.307h-7.7Zm2.494-2.8-.743-.744 5.206-5.206H8.401V2.1h3.5v3.5h-1.05V3.893L5.644 9.1Z"/></svg>\');\n}\n.lh-report-icon--experiment::before {\n  background-image: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><path d="M4.50002 17C3.86136 17 3.40302 16.7187 3.12502 16.156C2.84702 15.5933 2.90936 15.069 3.31202 14.583L7.50002 9.5V4.5H6.75002C6.54202 4.5 6.36502 4.427 6.21902 4.281C6.07302 4.135 6.00002 3.958 6.00002 3.75C6.00002 3.542 6.07302 3.365 6.21902 3.219C6.36502 3.073 6.54202 3 6.75002 3H13.25C13.458 3 13.635 3.073 13.781 3.219C13.927 3.365 14 3.542 14 3.75C14 3.958 13.927 4.135 13.781 4.281C13.635 4.427 13.458 4.5 13.25 4.5H12.5V9.5L16.688 14.583C17.0767 15.069 17.132 15.5933 16.854 16.156C16.5767 16.7187 16.1254 17 15.5 17H4.50002ZM4.50002 15.5H15.5L11 10V4.5H9.00002V10L4.50002 15.5Z" fill="black"/></svg>\');\n}\n\n/** These are still icons, but w/o the auto-color invert / opacity / etc. that come with .lh-report-icon */\n\n.lh-repo\
rt-plain-icon {\n  display: flex;\n  align-items: center;\n}\n.lh-report-plain-icon::before {\n  content: "";\n  background-repeat: no-repeat;\n  width: var(--report-icon-size);\n  height: var(--report-icon-size);\n  display: inline-block;\n  margin-right: 5px;\n}\n\n.lh-report-plain-icon--checklist-pass::before {\n  --icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M8.938 13L13.896 8.062L12.833 7L8.938 10.875L7.167 9.125L6.104 10.188L8.938 13ZM10 18C8.90267 18 7.868 17.7917 6.896 17.375C5.924 16.9583 5.07333 16.3853 4.344 15.656C3.61467 14.9267 3.04167 14.076 2.625 13.104C2.20833 12.132 2 11.0973 2 10C2 8.88867 2.20833 7.85033 2.625 6.885C3.04167 5.92033 3.61467 5.07333 4.344 4.344C5.07333 3.61467 5.924 3.04167 6.896 2.625C7.868 2.20833 8.90267 2 10 2C11.1113 2 12.1497 2.20833 13.115 2.625C14.0797 3.04167 14.9267 3.61467 15.656 4.344C16.3853 5.07333 16.9583 5.92033 17.375 6.885C17.7917 7.85033 18 8.88867 18 10C18 11.0973 17.7917 12.132 17.\
375 13.104C16.9583 14.076 16.3853 14.9267 15.656 15.656C14.9267 16.3853 14.0797 16.9583 13.115 17.375C12.1497 17.7917 11.1113 18 10 18ZM10 16.5C11.8053 16.5 13.34 15.868 14.604 14.604C15.868 13.34 16.5 11.8053 16.5 10C16.5 8.19467 15.868 6.66 14.604 5.396C13.34 4.132 11.8053 3.5 10 3.5C8.19467 3.5 6.66 4.132 5.396 5.396C4.132 6.66 3.5 8.19467 3.5 10C3.5 11.8053 4.132 13.34 5.396 14.604C6.66 15.868 8.19467 16.5 10 16.5Z" fill="black"/></svg>\');\n  background-color: var(--color-pass);\n  mask: var(--icon-url) center / contain no-repeat;\n}\n.lh-report-plain-icon--checklist-fail::before {\n  --icon-url: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M17.5 10C17.5 14.1421 14.1421 17.5 10 17.5C5.85786 17.5 2.5 14.1421 2.5 10C2.5 5.85786 5.85786 2.5 10 2.5C14.1421 2.5 17.5 5.85786 17.5 10ZM16 10C16 13.3137 13.3137 16 10 16C8.6135 16 7.33683 15.5297 6.32083 14.7399L14.7399 6.32083C15.5297 7.33683 16 8.6135 1\
6 10ZM5.26016 13.6793L13.6793 5.26016C12.6633 4.47033 11.3866 4 10 4C6.68629 4 4 6.68629 4 10C4 11.3866 4.47033 12.6633 5.26016 13.6793Z" fill="black"/></svg>\');\n  background-color: var(--color-fail);\n  mask: var(--icon-url) center / contain no-repeat;\n}\n\n.lh-buttons {\n  display: flex;\n  flex-wrap: wrap;\n  margin: var(--default-padding) 0;\n}\n.lh-button {\n  height: 32px;\n  border: 1px solid var(--report-border-color-secondary);\n  border-radius: 3px;\n  color: var(--link-color);\n  background-color: var(--report-background-color);\n  margin: 5px;\n}\n\n.lh-button:first-of-type {\n  margin-left: 0;\n}\n\n/* Node */\n.lh-node {\n  display: flow-root;\n}\n\n.lh-node__snippet {\n  font-family: var(--report-font-family-monospace);\n  color: var(--snippet-color);\n  font-size: var(--report-monospace-font-size);\n  line-height: 20px;\n}\n\n.lh-checklist {\n  list-style: none;\n  padding: 0;\n}\n\n.lh-checklist-item {\n  margin: 10px 0 10px 0;\n}\n\n/* Baseline Status */\n.lh-baseline-status {\n  display: flex;\n  align-items: c\
enter;\n}\n.lh-baseline-status::before {\n  content: "";\n  display: inline-block;\n  width: 18px;\n  height: 10px;\n  margin-right: 6px;\n  background-repeat: no-repeat;\n  background-size: contain;\n}\n.lh-baseline-status--high::before {\n  background-image: var(--baseline-high-icon-url);\n}\n.lh-baseline-status--low::before {\n  background-image: var(--baseline-low-icon-url);\n}\n.lh-baseline-status--limited::before {\n  background-image: var(--baseline-limited-icon-url);\n}\n\n/* Score */\n\n.lh-audit__score-icon {\n  width: var(--score-icon-size);\n  height: var(--score-icon-size);\n  margin: var(--score-icon-margin);\n}\n\n.lh-audit--pass .lh-audit__display-text {\n  color: var(--color-pass-secondary);\n}\n.lh-audit--pass .lh-audit__score-icon,\n.lh-scorescale-range--pass::before {\n  border-radius: 100%;\n  background: var(--color-pass);\n}\n\n.lh-audit--average .lh-audit__display-text {\n  color: var(--color-average-secondary);\n}\n.lh-audit--average .lh-audit__score-icon,\n.lh-scorescale-range--average::before {\n  bac\
kground: var(--color-average);\n  width: var(--icon-square-size);\n  height: var(--icon-square-size);\n}\n\n.lh-audit--fail .lh-audit__display-text {\n  color: var(--color-fail-secondary);\n}\n.lh-audit--fail .lh-audit__score-icon,\n.lh-audit--error .lh-audit__score-icon,\n.lh-scorescale-range--fail::before {\n  border-left: calc(var(--score-icon-size) / 2) solid transparent;\n  border-right: calc(var(--score-icon-size) / 2) solid transparent;\n  border-bottom: var(--score-icon-size) solid var(--color-fail);\n}\n\n.lh-audit--error .lh-audit__score-icon,\n.lh-metric--error .lh-metric__icon {\n  background-image: var(--error-icon-url);\n  background-repeat: no-repeat;\n  background-position: center;\n  border: none;\n}\n\n.lh-gauge__wrapper--fail .lh-gauge--error {\n  background-image: var(--error-icon-url);\n  background-repeat: no-repeat;\n  background-position: center;\n  transform: scale(0.5);\n  top: var(--score-container-padding);\n}\n\n.lh-audit--manual .lh-audit__display-text,\n.lh-audit--notapplicable .lh-audit\
__display-text {\n  color: var(--color-gray-600);\n}\n.lh-audit--manual .lh-audit__score-icon,\n.lh-audit--notapplicable .lh-audit__score-icon {\n  border: calc(0.2 * var(--score-icon-size)) solid var(--color-gray-400);\n  border-radius: 100%;\n  background: none;\n}\n\n.lh-audit--informative .lh-audit__display-text {\n  color: var(--color-gray-600);\n}\n\n.lh-audit--informative .lh-audit__score-icon {\n  border: calc(0.2 * var(--score-icon-size)) solid var(--color-gray-400);\n  border-radius: 100%;\n}\n\n.lh-audit__description,\n.lh-audit__stackpack {\n  color: var(--report-text-color-secondary);\n}\n.lh-audit__adorn {\n  border: 1px solid var(--color-gray-500);\n  border-radius: 3px;\n  margin: 0 3px;\n  padding: 0 2px;\n  line-height: 1.1;\n  display: inline-block;\n  font-size: 90%;\n  color: var(--report-text-color-secondary);\n}\n\n.lh-category-header__description  {\n  text-align: center;\n  color: var(--color-gray-700);\n  margin: 0px auto;\n  max-width: 400px;\n}\n\n\n.lh-audit__display-text,\n.lh-chevron-container {\n \
 margin: 0 var(--audit-margin-horizontal);\n}\n.lh-chevron-container {\n  margin-right: 0;\n}\n\n.lh-audit__title-and-text {\n  flex: 1;\n}\n\n.lh-audit__title-and-text code {\n  color: var(--snippet-color);\n  font-size: var(--report-monospace-font-size);\n}\n\n/* Prepend display text with em dash separator. */\n.lh-audit__display-text:not(:empty):before {\n  content: \'\\u2014\';\n  margin-right: var(--audit-margin-horizontal);\n}\n\n/* Expandable Details (Audit Groups, Audits) */\n.lh-audit__header {\n  display: flex;\n  align-items: center;\n  padding: var(--default-padding);\n}\n\n\n.lh-metricfilter {\n  display: grid;\n  justify-content: end;\n  align-items: center;\n  grid-auto-flow: column;\n  gap: 4px;\n  color: var(--color-gray-700);\n}\n\n.lh-metricfilter__radio {\n  /*\n   * Instead of hiding, position offscreen so it\'s still accessible to screen readers\n   * https://bugs.chromium.org/p/chromium/issues/detail?id=1439785\n   */\n  position: fixed;\n  left: -9999px;\n}\n.lh-metricfilter input[type=\'radio\']:focus-visible + \
label {\n  outline: -webkit-focus-ring-color auto 1px;\n}\n\n.lh-metricfilter__label {\n  display: inline-flex;\n  padding: 0 4px;\n  height: 16px;\n  text-decoration: underline;\n  align-items: center;\n  cursor: pointer;\n  font-size: 90%;\n}\n\n.lh-metricfilter__label--active {\n  background: var(--color-blue-primary);\n  color: var(--color-white);\n  border-radius: 3px;\n  text-decoration: none;\n}\n/* Give the \'All\' choice a more muted display */\n.lh-metricfilter__label--active[for="metric-All"] {\n  background-color: var(--color-blue-200) !important;\n  color: black !important;\n}\n\n.lh-metricfilter__text {\n  margin-right: 8px;\n}\n\n/* If audits are filtered, hide the itemcount for Passed Audits\\u2026 */\n.lh-category--filtered .lh-audit-group .lh-audit-group__itemcount {\n  display: none;\n}\n\n\n.lh-audit__header:hover {\n  background-color: var(--color-hover);\n}\n\n/* We want to hide the browser\'s default arrow marker on summary elements. Admittedly, it\'s complicated. */\n.lh-root details > summary {\n  /* Blink \
89+ and Firefox will hide the arrow when display is changed from (new) default of \\`list-item\\` to block.  https://chromestatus.com/feature/6730096436051968*/\n  display: block;\n}\n/* Safari and Blink <=88 require using the -webkit-details-marker selector */\n.lh-root details > summary::-webkit-details-marker {\n  display: none;\n}\n\n/* Perf Metric */\n\n.lh-metrics-container {\n  display: grid;\n  grid-auto-rows: 1fr;\n  grid-template-columns: 1fr 1fr;\n  grid-column-gap: var(--report-line-height);\n  margin-bottom: var(--default-padding);\n}\n\n.lh-metric {\n  border-top: 1px solid var(--report-border-color-secondary);\n}\n\n.lh-category:not(.lh--hoisted-meta) .lh-metric:nth-last-child(-n+2) {\n  border-bottom: 1px solid var(--report-border-color-secondary);\n}\n\n.lh-metric__innerwrap {\n  display: grid;\n  /**\n   * Icon -- Metric Name\n   *      -- Metric Value\n   */\n  grid-template-columns: calc(var(--score-icon-size) + var(--score-icon-margin-left) + var(--score-icon-margin-right)) 1fr;\n  align-items: cent\
er;\n  padding: var(--default-padding);\n}\n\n.lh-metric__details {\n  order: -1;\n}\n\n.lh-metric__title {\n  flex: 1;\n}\n\n.lh-calclink {\n  padding-left: calc(1ex / 3);\n}\n\n.lh-metric__description {\n  display: none;\n  grid-column-start: 2;\n  grid-column-end: 4;\n  color: var(--report-text-color-secondary);\n}\n\n.lh-metric__value {\n  font-size: var(--metric-value-font-size);\n  margin: calc(var(--default-padding) / 2) 0;\n  white-space: nowrap; /* No wrapping between metric value and the icon */\n  grid-column-start: 2;\n}\n\n/**\n* This media query is a temporary fallback for browsers that do not support \\`@container query\\`.\n* TODO: remove this media query when \\`@container query\\` is fully supported by browsers\n* See https://github.com/GoogleChrome/lighthouse/pull/16332\n*/\n@media screen and (max-width: 535px) {\n  .lh-metrics-container {\n    display: block;\n  }\n\n  .lh-metric {\n    border-bottom: none !important;\n  }\n  .lh-category:not(.lh--hoisted-meta) .lh-metric:nth-last-child(1) {\n    border-bottom: 1\
px solid var(--report-border-color-secondary) !important;\n  }\n\n  /* Change the grid to 3 columns for narrow viewport. */\n  .lh-metric__innerwrap {\n  /**\n   * Icon -- Metric Name -- Metric Value\n   */\n    grid-template-columns: calc(var(--score-icon-size) + var(--score-icon-margin-left) + var(--score-icon-margin-right)) 2fr 1fr;\n  }\n  .lh-metric__value {\n    justify-self: end;\n    grid-column-start: unset;\n  }\n}\n\n@container lh-container (max-width: 535px) {\n  .lh-metrics-container {\n    display: block;\n  }\n\n  .lh-metric {\n    border-bottom: none !important;\n  }\n  .lh-category:not(.lh--hoisted-meta) .lh-metric:nth-last-child(1) {\n    border-bottom: 1px solid var(--report-border-color-secondary) !important;\n  }\n\n  /* Change the grid to 3 columns for narrow viewport. */\n  .lh-metric__innerwrap {\n  /**\n   * Icon -- Metric Name -- Metric Value\n   */\n    grid-template-columns: calc(var(--score-icon-size) + var(--score-icon-margin-left) + var(--score-icon-margin-right)) 2fr 1fr;\n  }\n  .lh-metr\
ic__value {\n    justify-self: end;\n    grid-column-start: unset;\n  }\n}\n\n/* No-JS toggle switch */\n/* Keep this selector sync\'d w/ \\`magicSelector\\` in report-ui-features-test.js */\n .lh-metrics-toggle__input:checked ~ .lh-metrics-container .lh-metric__description {\n  display: block;\n}\n\n/* TODO get rid of the SVGS and clean up these some more */\n.lh-metrics-toggle__input {\n  opacity: 0;\n  position: absolute;\n  right: 0;\n  top: 0px;\n}\n\n.lh-metrics-toggle__input + div > label > .lh-metrics-toggle__labeltext--hide,\n.lh-metrics-toggle__input:checked + div > label > .lh-metrics-toggle__labeltext--show {\n  display: none;\n}\n.lh-metrics-toggle__input:checked + div > label > .lh-metrics-toggle__labeltext--hide {\n  display: inline;\n}\n.lh-metrics-toggle__input:focus + div > label {\n  outline: -webkit-focus-ring-color auto 3px;\n}\n\n.lh-metrics-toggle__label {\n  cursor: pointer;\n  font-size: var(--report-font-size-secondary);\n  line-height: var(--report-line-height-secondary);\n  color: var(--color-gr\
ay-700);\n}\n\n/* Pushes the metric description toggle button to the right. */\n.lh-audit-group--metrics .lh-audit-group__header {\n  display: flex;\n  justify-content: space-between;\n}\n\n.lh-metric__icon,\n.lh-scorescale-range::before {\n  content: \'\';\n  width: var(--score-icon-size);\n  height: var(--score-icon-size);\n  display: inline-block;\n  margin: var(--score-icon-margin);\n}\n\n.lh-metric--pass .lh-metric__value {\n  color: var(--color-pass-secondary);\n}\n.lh-metric--pass .lh-metric__icon {\n  border-radius: 100%;\n  background: var(--color-pass);\n}\n\n.lh-metric--average .lh-metric__value {\n  color: var(--color-average-secondary);\n}\n.lh-metric--average .lh-metric__icon {\n  background: var(--color-average);\n  width: var(--icon-square-size);\n  height: var(--icon-square-size);\n}\n\n.lh-metric--fail .lh-metric__value {\n  color: var(--color-fail-secondary);\n}\n.lh-metric--fail .lh-metric__icon {\n  border-left: calc(var(--score-icon-size) / 2) solid transparent;\n  border-right: calc(var(--score-icon-size\
) / 2) solid transparent;\n  border-bottom: var(--score-icon-size) solid var(--color-fail);\n}\n\n.lh-metric--error .lh-metric__value,\n.lh-metric--error .lh-metric__description {\n  color: var(--color-fail-secondary);\n}\n\n/* Filmstrip */\n\n.lh-filmstrip-container {\n  /* smaller gap between metrics and filmstrip */\n  margin: -8px auto 0 auto;\n}\n\n.lh-filmstrip {\n  display: flex;\n  justify-content: space-between;\n  justify-items: center;\n  margin-bottom: var(--default-padding);\n  width: 100%;\n}\n\n.lh-filmstrip__frame {\n  overflow: hidden;\n  line-height: 0;\n}\n\n.lh-filmstrip__thumbnail {\n  border: 1px solid var(--report-border-color-secondary);\n  max-height: 150px;\n  max-width: 120px;\n}\n\n.lh-dark .lh-perf-toggle-text {\n  color: rgba(30, 164, 70, 1);\n}\n\n.lh-perf-toggle-text a {\n  color: var(--link-color);\n}\n\n/* Audit */\n\n.lh-audit {\n  border-bottom: 1px solid var(--report-border-color-secondary);\n}\n\n/* Apply border-top to just the first audit. */\n.lh-audit {\n  border-top: 1px solid var(--report-bord\
er-color-secondary);\n}\n.lh-audit ~ .lh-audit {\n  border-top: none;\n}\n\n\n.lh-audit--error .lh-audit__display-text {\n  color: var(--color-fail-secondary);\n}\n\n/* Audit Group */\n\n.lh-audit-group {\n  margin-bottom: var(--audit-group-margin-bottom);\n  position: relative;\n}\n.lh-audit-group--metrics {\n  margin-bottom: calc(var(--audit-group-margin-bottom) / 2);\n}\n\n.lh-audit-group--metrics .lh-audit-group__summary {\n  margin-top: 0;\n  margin-bottom: 0;\n}\n\n.lh-audit-group__summary {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n\n.lh-audit-group__header .lh-chevron {\n  margin-top: calc((var(--report-line-height) - 5px) / 2);\n}\n\n.lh-audit-group__header {\n  letter-spacing: 0.8px;\n  padding: var(--default-padding);\n  padding-left: 0;\n}\n\n.lh-audit-group__header, .lh-audit-group__summary {\n  font-size: var(--report-font-size-secondary);\n  line-height: var(--report-line-height-secondary);\n  color: var(--color-gray-700);\n}\n\n.lh-audit-group__title {\n  text-transform: uppercas\
e;\n  font-weight: 500;\n}\n\n.lh-audit-group__itemcount {\n  color: var(--color-gray-600);\n}\n\n.lh-audit-group__footer {\n  color: var(--color-gray-600);\n  display: block;\n  margin-top: var(--default-padding);\n}\n\n.lh-details,\n.lh-category-header__description,\n.lh-audit-group__footer {\n  font-size: var(--report-font-size-secondary);\n  line-height: var(--report-line-height-secondary);\n}\n\n.lh-audit-explanation {\n  margin: var(--audit-padding-vertical) 0 calc(var(--audit-padding-vertical) / 2) var(--audit-margin-horizontal);\n  line-height: var(--audit-explanation-line-height);\n  display: inline-block;\n}\n\n.lh-audit--fail .lh-audit-explanation {\n  color: var(--color-fail-secondary);\n}\n\n/* Report */\n.lh-list {\n  margin-right: calc(var(--default-padding) * 2);\n}\n.lh-list > :not(:last-child) {\n  margin-bottom: calc(var(--default-padding) * 2);\n  border-bottom: 1px solid #A8C7FA;\n}\n.lh-list-section {\n  padding: calc(var(--default-padding) * 2) 0;\n}\n.lh-list-section__title {\n  text-decoration: underlin\
e;\n}\n\n.lh-header-container {\n  display: block;\n  margin: 0 auto;\n  position: relative;\n  word-wrap: break-word;\n}\n\n.lh-header-container .lh-scores-wrapper {\n  border-bottom: 1px solid var(--color-gray-200);\n}\n\n\n.lh-report {\n  min-width: var(--report-content-min-width);\n}\n\n.lh-exception {\n  font-size: large;\n}\n\n.lh-code {\n  white-space: normal;\n  margin-top: 0;\n  font-size: var(--report-monospace-font-size);\n}\n\n.lh-warnings {\n  --item-margin: calc(var(--report-line-height) / 6);\n  color: var(--color-average-secondary);\n  margin: var(--audit-padding-vertical) 0;\n  padding: var(--default-padding)\n    var(--default-padding)\n    var(--default-padding)\n    calc(var(--audit-description-padding-left));\n  background-color: var(--toplevel-warning-background-color);\n}\n.lh-warnings span {\n  font-weight: bold;\n}\n\n.lh-warnings--toplevel {\n  --item-margin: calc(var(--header-line-height) / 4);\n  color: var(--toplevel-warning-text-color);\n  margin-left: auto;\n  margin-right: auto;\n  max-width: var(--re\
port-content-max-width-minus-edge-gap);\n  padding: var(--toplevel-warning-padding);\n  border-radius: 8px;\n}\n\n.lh-warnings__msg {\n  color: var(--toplevel-warning-message-text-color);\n  margin: 0;\n}\n\n.lh-warnings ul {\n  margin: 0;\n}\n.lh-warnings li {\n  margin: var(--item-margin) 0;\n}\n.lh-warnings li:last-of-type {\n  margin-bottom: 0;\n}\n\n.lh-scores-header {\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n}\n.lh-scores-header__solo {\n  padding: 0;\n  border: 0;\n}\n\n/* Gauge */\n\n.lh-gauge__wrapper--pass {\n  color: var(--color-pass-secondary);\n  fill: var(--color-pass);\n  stroke: var(--color-pass);\n}\n\n.lh-gauge__wrapper--average {\n  color: var(--color-average-secondary);\n  fill: var(--color-average);\n  stroke: var(--color-average);\n}\n\n.lh-gauge__wrapper--fail {\n  color: var(--color-fail-secondary);\n  fill: var(--color-fail);\n  stroke: var(--color-fail);\n}\n\n.lh-gauge__wrapper--not-applicable {\n  color: var(--color-not-applicable);\n  fill: var(--color-not-applicable);\n  stroke: var\
(--color-not-applicable);\n}\n\n.lh-fraction__wrapper .lh-fraction__content::before {\n  content: \'\';\n  height: var(--score-icon-size);\n  width: var(--score-icon-size);\n  margin: var(--score-icon-margin);\n  display: inline-block;\n}\n.lh-fraction__wrapper--pass .lh-fraction__content {\n  color: var(--color-pass-secondary);\n}\n.lh-fraction__wrapper--pass .lh-fraction__background {\n  background-color: var(--color-pass);\n}\n.lh-fraction__wrapper--pass .lh-fraction__content::before {\n  background-color: var(--color-pass);\n  border-radius: 50%;\n}\n.lh-fraction__wrapper--average .lh-fraction__content {\n  color: var(--color-average-secondary);\n}\n.lh-fraction__wrapper--average .lh-fraction__background,\n.lh-fraction__wrapper--average .lh-fraction__content::before {\n  background-color: var(--color-average);\n}\n.lh-fraction__wrapper--fail .lh-fraction__content {\n  color: var(--color-fail);\n}\n.lh-fraction__wrapper--fail .lh-fraction__background {\n  background-color: var(--color-fail);\n}\n.lh-fraction__wrapper\
--fail .lh-fraction__content::before {\n  border-left: calc(var(--score-icon-size) / 2) solid transparent;\n  border-right: calc(var(--score-icon-size) / 2) solid transparent;\n  border-bottom: var(--score-icon-size) solid var(--color-fail);\n}\n.lh-fraction__wrapper--null .lh-fraction__content {\n  color: var(--color-gray-700);\n}\n.lh-fraction__wrapper--null .lh-fraction__background {\n  background-color: var(--color-gray-700);\n}\n.lh-fraction__wrapper--null .lh-fraction__content::before {\n  border-radius: 50%;\n  border: calc(0.2 * var(--score-icon-size)) solid var(--color-gray-700);\n}\n\n.lh-fraction__background {\n  position: absolute;\n  height: 100%;\n  width: 100%;\n  border-radius: calc(var(--gauge-circle-size) / 2);\n  opacity: 0.1;\n  z-index: -1;\n}\n\n.lh-fraction__content-wrapper {\n  height: var(--gauge-circle-size);\n  display: flex;\n  align-items: center;\n}\n\n.lh-fraction__content {\n  display: flex;\n  position: relative;\n  align-items: center;\n  justify-content: center;\n  font-size: calc(0.3 *\
 var(--gauge-circle-size));\n  line-height: calc(0.4 * var(--gauge-circle-size));\n  width: max-content;\n  min-width: calc(1.5 * var(--gauge-circle-size));\n  padding: calc(0.1 * var(--gauge-circle-size)) calc(0.2 * var(--gauge-circle-size));\n  --score-icon-size: calc(0.21 * var(--gauge-circle-size));\n  --score-icon-margin: 0 calc(0.15 * var(--gauge-circle-size)) 0 0;\n}\n\n.lh-gauge {\n  stroke-linecap: round;\n  width: var(--gauge-circle-size);\n  height: var(--gauge-circle-size);\n}\n\n.lh-category .lh-gauge {\n  --gauge-circle-size: var(--gauge-circle-size-big);\n}\n\n.lh-gauge-base {\n  opacity: 0.1;\n}\n\n.lh-gauge-arc {\n  fill: none;\n  transform-origin: 50% 50%;\n  animation: load-gauge var(--transition-length) ease both;\n  animation-delay: 250ms;\n}\n\n.lh-gauge__svg-wrapper {\n  position: relative;\n  height: var(--gauge-circle-size);\n}\n.lh-category .lh-gauge__svg-wrapper,\n.lh-category .lh-fraction__wrapper {\n  --gauge-circle-size: var(--gauge-circle-size-big);\n}\n\n/* The plugin badge overlay */\n.lh-gau\
ge__wrapper--plugin .lh-gauge__svg-wrapper::before {\n  width: var(--plugin-badge-size);\n  height: var(--plugin-badge-size);\n  background-color: var(--plugin-badge-background-color);\n  background-image: var(--plugin-icon-url);\n  background-repeat: no-repeat;\n  background-size: var(--plugin-icon-size);\n  background-position: 58% 50%;\n  content: "";\n  position: absolute;\n  right: -6px;\n  bottom: 0px;\n  display: block;\n  z-index: 100;\n  box-shadow: 0 0 4px rgba(0,0,0,.2);\n  border-radius: 25%;\n}\n.lh-category .lh-gauge__wrapper--plugin .lh-gauge__svg-wrapper::before {\n  width: var(--plugin-badge-size-big);\n  height: var(--plugin-badge-size-big);\n}\n\n@keyframes load-gauge {\n  from { stroke-dasharray: 0 352; }\n}\n\n.lh-gauge__percentage {\n  width: 100%;\n  height: var(--gauge-circle-size);\n  line-height: var(--gauge-circle-size);\n  position: absolute;\n  font-family: var(--report-font-family-monospace);\n  font-size: calc(var(--gauge-circle-size) * 0.34 + 1.3px);\n  text-align: center;\n  top: var(--\
score-container-padding);\n}\n\n.lh-category .lh-gauge__percentage {\n  --gauge-circle-size: var(--gauge-circle-size-big);\n  --gauge-percentage-font-size: var(--gauge-percentage-font-size-big);\n}\n\n.lh-gauge__wrapper,\n.lh-fraction__wrapper {\n  position: relative;\n  display: flex;\n  align-items: center;\n  flex-direction: column;\n  text-decoration: none;\n  padding: var(--score-container-padding);\n\n  --transition-length: 1s;\n\n  /* Contain the layout style paint & layers during animation*/\n  contain: content;\n  will-change: opacity; /* Only using for layer promotion */\n}\n\n.lh-gauge__label,\n.lh-fraction__label {\n  font-size: var(--gauge-label-font-size);\n  font-weight: 500;\n  line-height: var(--gauge-label-line-height);\n  margin-top: 10px;\n  text-align: center;\n  color: var(--report-text-color);\n  word-break: keep-all;\n}\n\n/* TODO(#8185) use more BEM (.lh-gauge__label--big) instead of relying on descendant selector */\n.lh-category .lh-gauge__label,\n.lh-category .lh-fraction__label {\n  --gauge-lab\
el-font-size: var(--gauge-label-font-size-big);\n  --gauge-label-line-height: var(--gauge-label-line-height-big);\n  margin-top: 14px;\n}\n\n.lh-scores-header .lh-gauge__wrapper,\n.lh-scores-header .lh-fraction__wrapper,\n.lh-sticky-header .lh-gauge__wrapper,\n.lh-sticky-header .lh-fraction__wrapper {\n  width: var(--gauge-wrapper-width);\n}\n\n.lh-scorescale {\n  display: inline-flex;\n\n  gap: calc(var(--default-padding) * 4);\n  margin: 16px auto 0 auto;\n  font-size: var(--report-font-size-secondary);\n  color: var(--color-gray-700);\n\n}\n\n.lh-scorescale-range {\n  display: flex;\n  align-items: center;\n  font-family: var(--report-font-family-monospace);\n  white-space: nowrap;\n}\n\n.lh-category-header__finalscreenshot .lh-scorescale {\n  border: 0;\n  display: flex;\n  justify-content: center;\n}\n\n.lh-category-header__finalscreenshot .lh-scorescale-range {\n  font-family: unset;\n  font-size: 12px;\n}\n\n.lh-scorescale-wrap {\n  display: contents;\n}\n\n/* Hide category score gauages if it\'s a single category report *\
/\n.lh-header--solo-category .lh-scores-wrapper {\n  display: none;\n}\n\n\n.lh-categories {\n  width: 100%;\n}\n\n.lh-category {\n  padding: var(--category-padding);\n  max-width: var(--report-content-max-width);\n  margin: 0 auto;\n\n  scroll-margin-top: calc(var(--sticky-header-buffer) - 1em);\n}\n\n.lh-category-wrapper {\n  border-bottom: 1px solid var(--color-gray-200);\n}\n.lh-category-wrapper:last-of-type {\n  border-bottom: 0;\n}\n\n.lh-category-header {\n  margin-bottom: var(--section-padding-vertical);\n}\n\n.lh-category-header .lh-score__gauge {\n  max-width: 400px;\n  width: auto;\n  margin: 0px auto;\n}\n\n.lh-category-header__finalscreenshot {\n  display: grid;\n  grid-template: none / 1fr 1px 1fr;\n  justify-items: center;\n  align-items: center;\n  gap: var(--report-line-height);\n  min-height: 288px;\n  margin-bottom: var(--default-padding);\n}\n\n.lh-final-ss-image {\n  /* constrain the size of the image to not be too large */\n  max-height: calc(var(--gauge-circle-size-big) * 2.8);\n  max-width: calc(var(--gauge-c\
ircle-size-big) * 3.5);\n  border: 1px solid var(--color-gray-200);\n  padding: 4px;\n  border-radius: 3px;\n  display: block;\n}\n\n.lh-category-headercol--separator {\n  background: var(--color-gray-200);\n  width: 1px;\n  height: var(--gauge-circle-size-big);\n}\n\n/**\n* This media query is a temporary fallback for browsers that do not support \\`@container query\\`.\n* TODO: remove this media query when \\`@container query\\` is fully supported by browsers\n* See https://github.com/GoogleChrome/lighthouse/pull/16332\n*/\n@media screen and (max-width: 780px) {\n  .lh-category-header__finalscreenshot {\n    grid-template: 1fr 1fr / none\n  }\n  .lh-category-headercol--separator {\n    display: none;\n  }\n}\n\n@container lh-container (max-width: 780px) {\n  .lh-category-header__finalscreenshot {\n    grid-template: 1fr 1fr / none\n  }\n  .lh-category-headercol--separator {\n    display: none;\n  }\n}\n\n/**\n* This media query is a temporary fallback for browsers that do not support \\`@container query\\`.\n* TODO: remove thi\
s media query when \\`@container query\\` is fully supported by browsers\n* See https://github.com/GoogleChrome/lighthouse/pull/16332\n*/\n@media screen and (max-width: 964px) {\n  .lh-report {\n    margin-left: 0;\n    width: 100%;\n  }\n}\n\n/* 964 fits the min-width of the filmstrip */\n@container lh-container (max-width: 964px) {\n  .lh-report {\n    margin-left: 0;\n    width: 100%;\n  }\n}\n\n@media print {\n  body {\n    -webkit-print-color-adjust: exact; /* print background colors */\n  }\n  .lh-container {\n    display: block;\n  }\n  .lh-report {\n    margin-left: 0;\n    padding-top: 0;\n  }\n  .lh-categories {\n    margin-top: 0;\n  }\n  .lh-buttons, .lh-highlighter {\n    /* hide stickyheader marker when printing. crbug.com/41486992 */\n    display: none;\n  }\n}\n\n.lh-table {\n  position: relative;\n  border-collapse: separate;\n  border-spacing: 0;\n  /* Can\'t assign padding to table, so shorten the width instead. */\n  width: calc(100% - var(--audit-description-padding-left) - var(--stackpack-padding-horizontal))\
;\n  border: 1px solid var(--report-border-color-secondary);\n}\n\n.lh-table thead th {\n  position: sticky;\n  top: var(--sticky-header-buffer);\n  z-index: 1;\n  background-color: var(--report-background-color);\n  border-bottom: 1px solid var(--report-border-color-secondary);\n  font-weight: normal;\n  color: var(--color-gray-600);\n  /* See text-wrapping comment on .lh-container. */\n  word-break: normal;\n}\n\n.lh-row--group {\n  background-color: var(--table-group-header-background-color);\n}\n\n.lh-row--group td {\n  font-weight: bold;\n  font-size: 1.05em;\n  color: var(--table-group-header-text-color);\n}\n\n.lh-row--group td:first-child {\n  display: block;\n  min-width: max-content;\n  font-weight: normal;\n}\n\n.lh-row--group .lh-text {\n  color: inherit;\n  text-decoration: none;\n  display: inline-block;\n}\n\n.lh-row--group a.lh-link:hover {\n  text-decoration: underline;\n}\n\n.lh-row--group .lh-audit__adorn {\n  text-transform: capitalize;\n  font-weight: normal;\n  padding: 2px 3px 1px 3px;\n}\n\n.lh-row--group .lh\
-audit__adorn1p {\n  color: var(--link-color);\n  border-color: var(--link-color);\n}\n\n.lh-row--group .lh-report-icon--external::before {\n  content: "";\n  background-repeat: no-repeat;\n  width: 14px;\n  height: 16px;\n  opacity: 0.7;\n  display: inline-block;\n  vertical-align: middle;\n}\n\n.lh-row--group .lh-report-icon--external {\n  visibility: hidden;\n}\n\n.lh-row--group:hover .lh-report-icon--external {\n  visibility: visible;\n}\n\n.lh-dark .lh-report-icon--external::before {\n  filter: invert(1);\n}\n\n/** Manages indentation of two-level and three-level nested adjacent rows */\n\n.lh-row--group ~ [data-entity]:not(.lh-row--group) td:first-child {\n  padding-left: 20px;\n}\n\n.lh-row--group ~ [data-entity]:not(.lh-row--group) ~ .lh-sub-item-row td:first-child {\n  margin-left: 20px;\n  padding-left: 10px;\n  border-left: 1px solid #A8C7FA;\n  display: block;\n}\n\n.lh-row--even {\n  background-color: var(--table-group-header-background-color);\n}\n.lh-row--hidden {\n  display: none;\n}\n\n.lh-table th,\n.lh-table td {\n\
  padding: var(--default-padding);\n}\n\n.lh-table tr {\n  vertical-align: middle;\n}\n\n.lh-table tr:hover {\n  background-color: var(--table-higlight-background-color);\n}\n\n/* Looks unnecessary, but mostly for keeping the <th>s left-aligned */\n.lh-table-column--text,\n.lh-table-column--source-location,\n.lh-table-column--url,\n/* .lh-table-column--thumbnail, */\n/* .lh-table-column--empty,*/\n.lh-table-column--code,\n.lh-table-column--node {\n  text-align: left;\n}\n\n.lh-table-column--code {\n  min-width: 100px;\n}\n\n.lh-table-column--bytes,\n.lh-table-column--timespanMs,\n.lh-table-column--ms,\n.lh-table-column--numeric {\n  text-align: right;\n  word-break: normal;\n}\n\n\n\n.lh-table .lh-table-column--thumbnail {\n  width: var(--image-preview-size);\n}\n\n.lh-table-column--url {\n  min-width: 250px;\n}\n\n.lh-table-column--text {\n  min-width: 80px;\n}\n\n/* Keep columns narrow if they follow the URL column */\n/* 12% was determined to be a decent narrow width, but wide enough for column headings */\n.lh-table-column--url + \
th.lh-table-column--bytes,\n.lh-table-column--url + .lh-table-column--bytes + th.lh-table-column--bytes,\n.lh-table-column--url + .lh-table-column--ms,\n.lh-table-column--url + .lh-table-column--ms + th.lh-table-column--bytes,\n.lh-table-column--url + .lh-table-column--bytes + th.lh-table-column--timespanMs {\n  width: 12%;\n}\n\n/** Tweak styling for tables in insight audits. */\n.lh-audit[id$="-insight"] .lh-table {\n  border: none;\n}\n\n.lh-audit[id$="-insight"] .lh-table thead th {\n  font-weight: bold;\n  color: unset;\n}\n\n.lh-audit[id$="-insight"] .lh-table th,\n.lh-audit[id$="-insight"] .lh-table td {\n  padding: calc(var(--default-padding) / 2);\n}\n\n.lh-audit[id$="-insight"] .lh-table .lh-row--even,\n.lh-audit[id$="-insight"] .lh-table tr:not(.lh-row--group):hover {\n  background-color: unset;\n}\n\n.lh-text__url-host {\n  display: inline;\n}\n\n.lh-text__url-host {\n  margin-left: calc(var(--report-font-size) / 2);\n  opacity: 0.6;\n  font-size: 90%\n}\n\n.lh-thumbnail {\n  object-fit: cover;\n  width: var(--im\
age-preview-size);\n  height: var(--image-preview-size);\n  display: block;\n}\n\n.lh-unknown pre {\n  overflow: scroll;\n  border: solid 1px var(--color-gray-200);\n}\n\n.lh-text__url > a {\n  color: inherit;\n  text-decoration: none;\n}\n\n.lh-text__url > a:hover {\n  text-decoration: underline dotted #999;\n}\n\n.lh-sub-item-row {\n  margin-left: 20px;\n  margin-bottom: 0;\n  color: var(--color-gray-700);\n}\n\n.lh-sub-item-row td {\n  padding-top: 4px;\n  padding-bottom: 4px;\n  padding-left: 20px;\n}\n\n.lh-sub-item-row .lh-element-screenshot {\n  zoom: 0.6;\n}\n\n/* Chevron\n   https://codepen.io/paulirish/pen/LmzEmK\n */\n.lh-chevron {\n  --chevron-angle: 42deg;\n  /* Edge doesn\'t support transform: rotate(calc(...)), so we define it here */\n  --chevron-angle-right: -42deg;\n  width: var(--chevron-size);\n  height: var(--chevron-size);\n  margin-top: calc((var(--report-line-height) - 12px) / 2);\n}\n\n.lh-chevron__lines {\n  transition: transform 0.4s;\n  transform: translateY(var(--report-line-height));\n}\n.lh-chevron__line {\
\n stroke: var(--chevron-line-stroke);\n stroke-width: var(--chevron-size);\n stroke-linecap: square;\n transform-origin: 50%;\n transform: rotate(var(--chevron-angle));\n transition: transform 300ms, stroke 300ms;\n}\n\n.lh-expandable-details .lh-chevron__line-right,\n.lh-expandable-details[open] .lh-chevron__line-left {\n transform: rotate(var(--chevron-angle-right));\n}\n\n.lh-expandable-details[open] .lh-chevron__line-right {\n  transform: rotate(var(--chevron-angle));\n}\n\n\n.lh-expandable-details[open]  .lh-chevron__lines {\n transform: translateY(calc(var(--chevron-size) * -1));\n}\n\n.lh-expandable-details[open] {\n  animation: 300ms openDetails forwards;\n  padding-bottom: var(--default-padding);\n}\n\n@keyframes openDetails {\n  from {\n    outline: 1px solid var(--report-background-color);\n  }\n  to {\n   outline: 1px solid;\n   box-shadow: 0 2px 4px rgba(0, 0, 0, .24);\n  }\n}\n\n/**\n* This media query is a temporary fallback for browsers that do not support \\`@container query\\`.\n* TODO: remove this media que\
ry when \\`@container query\\` is fully supported by browsers\n* See https://github.com/GoogleChrome/lighthouse/pull/16332\n*/\n@media screen and (max-width: 780px) {\n  /* no black outline if we\'re not confident the entire table can be displayed within bounds */\n  .lh-expandable-details[open] {\n    animation: none;\n  }\n}\n\n@container lh-container (max-width: 780px) {\n  /* no black outline if we\'re not confident the entire table can be displayed within bounds */\n  .lh-expandable-details[open] {\n    animation: none;\n  }\n}\n\n.lh-expandable-details[open] summary, details.lh-clump > summary {\n  border-bottom: 1px solid var(--report-border-color-secondary);\n}\ndetails.lh-clump[open] > summary {\n  border-bottom-width: 0;\n}\n\n\n\ndetails .lh-clump-toggletext--hide,\ndetails[open] .lh-clump-toggletext--show { display: none; }\ndetails[open] .lh-clump-toggletext--hide { display: block;}\n\n\n/* Tooltip */\n.lh-tooltip-boundary {\n  position: relative;\n}\n\n.lh-tooltip {\n  position: absolute;\n  display: none; /* Don\
\'t retain these layers when not needed */\n  opacity: 0;\n  background: #ffffff;\n  white-space: pre-line; /* Render newlines in the text */\n  min-width: 246px;\n  max-width: 275px;\n  padding: 15px;\n  border-radius: 5px;\n  text-align: initial;\n  line-height: 1.4;\n}\n\n/**\n* This media query is a temporary fallback for browsers that do not support \\`@container query\\`.\n* TODO: remove this media query when \\`@container query\\` is fully supported by browsers\n* See https://github.com/GoogleChrome/lighthouse/pull/16332\n*/\n@media screen and (max-width: 535px) {\n  .lh-tooltip {\n    min-width: 45cqi;\n    padding: 3cqi;\n  }\n}\n\n/* shrink tooltips to not be cutoff on left edge of narrow container\n   45vw is chosen to be ~= width of the left column of metrics\n*/\n@container lh-container (max-width: 535px) {\n  .lh-tooltip {\n    min-width: 45cqi;\n    padding: 3cqi;\n  }\n}\n\n.lh-tooltip-boundary:hover .lh-tooltip {\n  display: block;\n  animation: fadeInTooltip 250ms;\n  animation-fill-mode: forwards;\n  animatio\
n-delay: 850ms;\n  bottom: 100%;\n  z-index: 1;\n  will-change: opacity;\n  right: 0;\n  pointer-events: none;\n}\n\n.lh-tooltip::before {\n  content: "";\n  border: solid transparent;\n  border-bottom-color: #fff;\n  border-width: 10px;\n  position: absolute;\n  bottom: -20px;\n  right: 6px;\n  transform: rotate(180deg);\n  pointer-events: none;\n}\n\n@keyframes fadeInTooltip {\n  0% { opacity: 0; }\n  75% { opacity: 1; }\n  100% { opacity: 1;  filter: drop-shadow(1px 0px 1px #aaa) drop-shadow(0px 2px 4px hsla(206, 6%, 25%, 0.15)); pointer-events: auto; }\n}\n\n/* Element screenshot */\n.lh-element-screenshot {\n  float: left;\n  margin-right: 20px;\n}\n.lh-element-screenshot__content {\n  overflow: hidden;\n  min-width: 110px;\n  display: flex;\n  justify-content: center;\n  background-color: var(--report-background-color);\n}\n.lh-element-screenshot__image {\n  position: relative;\n  /* Set by ElementScreenshotRenderer.installFullPageScreenshotCssVariable */\n  background-image: var(--element-screenshot-url);\n  outline: 2p\
x solid #777;\n  background-color: white;\n  background-repeat: no-repeat;\n}\n.lh-element-screenshot__mask {\n  position: absolute;\n  background: #555;\n  opacity: 0.8;\n}\n.lh-element-screenshot__element-marker {\n  position: absolute;\n  outline: 2px solid var(--color-lime-400);\n}\n.lh-element-screenshot__overlay {\n  position: fixed;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  z-index: 2000; /* .lh-topbar is 1000 */\n  background: var(--screenshot-overlay-background);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  cursor: zoom-out;\n}\n\n.lh-element-screenshot__overlay .lh-element-screenshot {\n  margin-right: 0; /* clearing margin used in thumbnail case */\n  outline: 1px solid var(--color-gray-700);\n}\n\n.lh-screenshot-overlay--enabled .lh-element-screenshot {\n  cursor: zoom-out;\n}\n.lh-screenshot-overlay--enabled .lh-node .lh-element-screenshot {\n  cursor: zoom-in;\n}\n\n\n.lh-meta__items {\n  --meta-icon-size: calc(var(--report-icon-size) * 0.667);\n  padding: var(--default-padd\
ing);\n  display: grid;\n  grid-template-columns: 1fr 1fr 1fr;\n  background-color: var(--env-item-background-color);\n  border-radius: 3px;\n  margin: 0 0 var(--default-padding) 0;\n  font-size: 12px;\n  column-gap: var(--default-padding);\n  color: var(--color-gray-700);\n}\n\n.lh-meta__item {\n  display: block;\n  list-style-type: none;\n  position: relative;\n  padding: 0 0 0 calc(var(--meta-icon-size) + var(--default-padding) * 2);\n  cursor: unset; /* disable pointer cursor from report-icon */\n}\n\n.lh-meta__item.lh-tooltip-boundary {\n  text-decoration: dotted underline var(--color-gray-500);\n  cursor: help;\n}\n\n.lh-meta__item.lh-report-icon::before {\n  position: absolute;\n  left: var(--default-padding);\n  width: var(--meta-icon-size);\n  height: var(--meta-icon-size);\n}\n\n.lh-meta__item.lh-report-icon:hover::before {\n  opacity: 0.7;\n}\n\n.lh-meta__item .lh-tooltip {\n  color: var(--color-gray-800);\n}\n\n.lh-meta__item .lh-tooltip::before {\n  right: auto; /* Set the tooltip arrow to the leftside */\n  left\
: 6px;\n}\n\n.lh-meta__item:hover .lh-tooltip {\n  right: auto;\n  left: 6px;\n}\n/**\n* This media query is a temporary fallback for browsers that do not support \\`@container query\\`.\n* TODO: remove this media query when \\`@container query\\` is fully supported by browsers\n* See https://github.com/GoogleChrome/lighthouse/pull/16332\n*/\n@media screen and (max-width: 640px) {\n  .lh-meta__items {\n    grid-template-columns: 1fr 1fr;\n  }\n}\n\n/* Change the grid for narrow container */\n@container lh-container (max-width: 640px) {\n  .lh-meta__items {\n    grid-template-columns: 1fr 1fr;\n  }\n}\n\n/**\n* This media query is a temporary fallback for browsers that do not support \\`@container query\\`.\n* TODO: remove this media query when \\`@container query\\` is fully supported by browsers\n* See https://github.com/GoogleChrome/lighthouse/pull/16332\n*/\n@media screen and (max-width: 535px) {\n  .lh-meta__items {\n    display: block;\n  }\n}\n\n@container lh-container (max-width: 535px) {\n  .lh-meta__items {\n    display: \
block;\n  }\n}\n\n/* Explodey gauge */\n\n.lh-exp-gauge-component {\n  margin-bottom: 10px;\n}\n\n.lh-exp-gauge-component circle {\n  stroke: currentcolor;\n  r: var(--radius);\n}\n\n.lh-exp-gauge-component text {\n  font-size: calc(var(--radius) * 0.2);\n}\n\n.lh-exp-gauge-component .lh-exp-gauge {\n  margin: 0 auto;\n  width: 225px;\n  stroke-width: var(--stroke-width);\n  stroke-linecap: round;\n\n  /* for better rendering perf */\n  contain: strict;\n  height: 225px;\n  will-change: transform;\n}\n.lh-exp-gauge-component .lh-exp-gauge--faded {\n  opacity: 0.1;\n}\n.lh-exp-gauge-component .lh-exp-gauge__wrapper {\n  font-family: var(--report-font-family-monospace);\n  text-align: center;\n  text-decoration: none;\n  transition: .3s;\n}\n.lh-exp-gauge-component .lh-exp-gauge__wrapper--pass {\n  color: var(--color-pass);\n}\n.lh-exp-gauge-component .lh-exp-gauge__wrapper--average {\n  color: var(--color-average);\n}\n.lh-exp-gauge-component .lh-exp-gauge__wrapper--fail {\n  color: var(--color-fail);\n}\n.lh-exp-gauge-component .sta\
te--expanded {\n  transition: color .3s;\n}\n.lh-exp-gauge-component .state--highlight {\n  color: var(--color-highlight);\n}\n.lh-exp-gauge-component .lh-exp-gauge__svg-wrapper {\n  display: flex;\n  flex-direction: column-reverse;\n}\n\n.lh-exp-gauge-component .lh-exp-gauge__label {\n  fill: var(--report-text-color);\n  font-family: var(--report-font-family);\n  font-size: 12px;\n}\n\n.lh-exp-gauge-component .lh-exp-gauge__cutout {\n  opacity: .999;\n  transition: opacity .3s;\n}\n.lh-exp-gauge-component .state--highlight .lh-exp-gauge__cutout {\n  opacity: 0;\n}\n\n.lh-exp-gauge-component .lh-exp-gauge__inner {\n  color: inherit;\n}\n.lh-exp-gauge-component .lh-exp-gauge__base {\n  fill: currentcolor;\n}\n\n\n.lh-exp-gauge-component .lh-exp-gauge__arc {\n  fill: none;\n  transition: opacity .3s;\n}\n.lh-exp-gauge-component .lh-exp-gauge__arc--metric {\n  color: var(--metric-color);\n  stroke-dashoffset: var(--metric-offset);\n  opacity: 0.3;\n}\n.lh-exp-gauge-component .lh-exp-gauge-hovertarget {\n  color: currentcolor;\n  op\
acity: 0.001;\n  stroke-linecap: butt;\n  stroke-width: 24;\n  /* hack. move the hover target out of the center. ideally i tweak the r instead but that rquires considerably more math. */\n  transform: scale(1.15);\n}\n.lh-exp-gauge-component .lh-exp-gauge__arc--metric.lh-exp-gauge--miniarc {\n  opacity: 0;\n  stroke-dasharray: 0 calc(var(--circle-meas) * var(--radius));\n  transition: 0s .005s;\n}\n.lh-exp-gauge-component .state--expanded .lh-exp-gauge__arc--metric.lh-exp-gauge--miniarc {\n  opacity: .999;\n  stroke-dasharray: var(--metric-array);\n  transition: 0.3s; /*  calc(.005s + var(--i)*.05s); entrace animation */\n}\n.lh-exp-gauge-component .state--expanded .lh-exp-gauge__inner .lh-exp-gauge__arc {\n  opacity: 0;\n}\n\n\n.lh-exp-gauge-component .lh-exp-gauge__percentage {\n  text-anchor: middle;\n  dominant-baseline: middle;\n  opacity: .999;\n  font-size: calc(var(--radius) * 0.625);\n  transition: opacity .3s ease-in;\n}\n.lh-exp-gauge-component .state--highlight .lh-exp-gauge__percentage {\n  opacity: 0\
;\n}\n\n.lh-exp-gauge-component .lh-exp-gauge__wrapper--fail .lh-exp-gauge__percentage {\n  fill: var(--color-fail);\n}\n.lh-exp-gauge-component .lh-exp-gauge__wrapper--average .lh-exp-gauge__percentage {\n  fill: var(--color-average);\n}\n.lh-exp-gauge-component .lh-exp-gauge__wrapper--pass .lh-exp-gauge__percentage {\n  fill: var(--color-pass);\n}\n\n.lh-exp-gauge-component .lh-cover {\n  fill: none;\n  opacity: .001;\n  pointer-events: none;\n}\n.lh-exp-gauge-component .state--expanded .lh-cover {\n  pointer-events: auto;\n}\n\n.lh-exp-gauge-component .metric {\n  transform: scale(var(--scale-initial));\n  opacity: 0;\n  transition: transform .1s .2s ease-out,  opacity .3s ease-out;\n  pointer-events: none;\n}\n.lh-exp-gauge-component .metric text {\n  pointer-events: none;\n}\n.lh-exp-gauge-component .metric__value {\n  fill: currentcolor;\n  opacity: 0;\n  transition: opacity 0.2s;\n}\n.lh-exp-gauge-component .state--expanded .metric {\n  transform: scale(1);\n  opacity: .999;\n  transition: transform .3s ease-out,  op\
acity .3s ease-in,  stroke-width .1s ease-out;\n  transition-delay: calc(var(--i)*.05s);\n  pointer-events: auto;\n}\n.lh-exp-gauge-component .state--highlight .metric {\n  opacity: .3;\n}\n.lh-exp-gauge-component .state--highlight .metric--highlight {\n  opacity: .999;\n  stroke-width: calc(1.5*var(--stroke-width));\n}\n.lh-exp-gauge-component .state--highlight .metric--highlight .metric__value {\n  opacity: 0.999;\n}\n\n\n/*\n the initial first load peek\n*/\n.lh-exp-gauge-component .lh-exp-gauge__bg {  /* needed for the use zindex stacking w/ transparency */\n  fill: var(--report-background-color);\n  stroke: var(--report-background-color);\n}\n.lh-exp-gauge-component .state--peek .metric {\n  transition-delay: 0ms;\n  animation: peek var(--peek-dur) cubic-bezier(0.46, 0.03, 0.52, 0.96);\n  animation-fill-mode: forwards;\n}\n.lh-exp-gauge-component .state--peek .lh-exp-gauge__inner .lh-exp-gauge__arc {\n  opacity: 1;\n}\n.lh-exp-gauge-component .state--peek .lh-exp-gauge__arc.lh-exp-gauge--faded {\n  opacity: 0.3;\
 /* just a tad stronger cuz its fighting with a big solid arg */\n}\n/* do i need to set expanded and override this? */\n.lh-exp-gauge-component .state--peek .lh-exp-gauge__arc--metric.lh-exp-gauge--miniarc {\n  transition: opacity 0.3s;\n}\n.lh-exp-gauge-component .state--peek {\n  color: unset;\n}\n.lh-exp-gauge-component .state--peek .metric__label {\n  display: none;\n}\n\n.lh-exp-gauge-component .metric__label {\n  fill: var(--report-text-color);\n}\n\n@keyframes peek {\n  /* biggest it should go is 0.92. smallest is 0.8 */\n  0% {\n    transform: scale(0.8);\n    opacity: 0.8;\n  }\n\n  50% {\n    transform: scale(0.92);\n    opacity: 1;\n  }\n\n  100% {\n    transform: scale(0.8);\n    opacity: 0.8;\n  }\n}\n\n.lh-exp-gauge-component .wrapper {\n  width: 620px;\n}\n\n/*# sourceURL=report-styles.css */\n`),e.append(t),e}function dt(o){let e=o.createFragment(),t=o.createElement("style");t.append(`\n    .lh-topbar {\n      position: sticky;\n      top: 0;\n      left: 0;\n      right: 0;\n      z-index: 1000;\n      display: fl\
ex;\n      align-items: center;\n      height: var(--topbar-height);\n      padding: var(--topbar-padding);\n      font-size: var(--report-font-size-secondary);\n      background-color: var(--topbar-background-color);\n      border-bottom: 1px solid var(--color-gray-200);\n    }\n\n    .lh-topbar__logo {\n      width: var(--topbar-logo-size);\n      height: var(--topbar-logo-size);\n      user-select: none;\n      flex: none;\n    }\n\n    .lh-topbar__url {\n      margin: var(--topbar-padding);\n      text-decoration: none;\n      color: var(--report-text-color);\n      text-overflow: ellipsis;\n      overflow: hidden;\n      white-space: nowrap;\n    }\n\n    .lh-tools {\n      display: flex;\n      align-items: center;\n      margin-left: auto;\n      will-change: transform;\n      min-width: var(--report-icon-size);\n    }\n    .lh-tools__button {\n      width: var(--report-icon-size);\n      min-width: 24px;\n      height: var(--report-icon-size);\n      cursor: pointer;\n      margin-right: 5px;\n      /* This is actu\
ally a button element, but we want to style it like a transparent div. */\n      display: flex;\n      background: none;\n      color: inherit;\n      border: none;\n      padding: 0;\n      font: inherit;\n    }\n    .lh-tools__button svg {\n      fill: var(--tools-icon-color);\n    }\n    .lh-dark .lh-tools__button svg {\n      filter: invert(1);\n    }\n    .lh-tools__button.lh-active + .lh-tools__dropdown {\n      opacity: 1;\n      clip: rect(-1px, 194px, 270px, -3px);\n      visibility: visible;\n    }\n    .lh-tools__dropdown {\n      position: absolute;\n      background-color: var(--report-background-color);\n      border: 1px solid var(--report-border-color);\n      border-radius: 3px;\n      padding: calc(var(--default-padding) / 2) 0;\n      cursor: pointer;\n      top: 36px;\n      right: 0;\n      box-shadow: 1px 1px 3px #ccc;\n      min-width: 125px;\n      clip: rect(0, 164px, 0, 0);\n      visibility: hidden;\n      opacity: 0;\n      transition: all 200ms cubic-bezier(0,0,0.2,1);\n    }\n    .lh-tools_\
_dropdown a {\n      color: currentColor;\n      text-decoration: none;\n      white-space: nowrap;\n      padding: 0 6px;\n      line-height: 2;\n    }\n    .lh-tools__dropdown a:hover,\n    .lh-tools__dropdown a:focus {\n      background-color: var(--color-gray-200);\n      outline: none;\n    }\n    /* save-gist option hidden in report. */\n    .lh-tools__dropdown a[data-action=\'save-gist\'] {\n      display: none;\n    }\n\n    .lh-locale-selector {\n      width: 100%;\n      color: var(--report-text-color);\n      background-color: var(--locale-selector-background-color);\n      padding: 2px;\n    }\n    .lh-tools-locale {\n      display: flex;\n      align-items: center;\n      flex-direction: row-reverse;\n    }\n    .lh-tools-locale__selector-wrapper {\n      transition: opacity 0.15s;\n      opacity: 0;\n      max-width: 200px;\n    }\n    .lh-button.lh-tool-locale__button {\n      height: var(--topbar-height);\n      color: var(--tools-icon-color);\n      padding: calc(var(--default-padding) / 2);\n    }\n    .lh-\
tool-locale__button.lh-active + .lh-tools-locale__selector-wrapper {\n      opacity: 1;\n      clip: rect(-1px, 255px, 242px, -3px);\n      visibility: visible;\n      margin: 0 4px;\n    }\n\n    /**\n    * This media query is a temporary fallback for browsers that do not support \\`@container query\\`.\n    * TODO: remove this media query when \\`@container query\\` is fully supported by browsers\n    * See https://github.com/GoogleChrome/lighthouse/pull/16332\n    */\n    @media screen and (max-width: 964px) {\n      .lh-tools__dropdown {\n        right: 0;\n        left: initial;\n      }\n    }\n\n    @container lh-container (max-width: 964px) {\n      .lh-tools__dropdown {\n        right: 0;\n        left: initial;\n      }\n    }\n\n    @media print {\n      .lh-topbar {\n        position: static;\n        margin-left: 0;\n      }\n\n      .lh-tools__dropdown {\n        display: none;\n      }\n    }\n  `),e.append(t);let n=o.createElement("div","lh-topbar"),r=o.createElementNS("http://www.w3.org/2000/svg","svg","lh-t\
opbar__logo");r.setAttribute("role","img"),r.setAttribute("title","Lighthouse logo"),r.setAttribute("fill","none"),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("viewBox","0 0 48 48");let i=o.createElementNS("http://www.w3.org/2000/svg","path");i.setAttribute("d","m14 7 10-7 10 7v10h5v7h-5l5 24H9l5-24H9v-7h5V7Z"),i.setAttribute("fill","#F63");let a=o.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d","M31.561 24H14l-1.689 8.105L31.561 24ZM18.983 48H9l1.022-4.907L35.723 32.27l1.663 7.98L18.983 48Z"),a.setAttribute("fill","#FFA385");let l=o.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("fill","#FF3"),l.setAttribute("d","M20.5 10h7v7h-7z"),r.append(" ",i," ",a," ",l," ");let s=o.createElement("a","lh-topbar__url");s.setAttribute("href",""),s.setAttribute("target","_blank"),s.setAttribute("rel","noopener");let c=o.createElement("div","lh-tools"),d=o.createElement("div","lh-tools-locale lh-hidden"),h=o.createElement("button","\
lh-button lh-tool-locale__button");h.setAttribute("id","lh-button__swap-locales"),h.setAttribute("title","Show Language Picker"),h.setAttribute("aria-label","Toggle language picker"),h.setAttribute("aria-haspopup","menu"),h.setAttribute("aria-expanded","false"),h.setAttribute("aria-controls","lh-tools-locale__selector-wrapper");let p=o.createElementNS("http://www.w3.org/2000/svg","svg");p.setAttribute("width","20px"),p.setAttribute("height","20px"),p.setAttribute("viewBox","0 0 24 24"),p.setAttribute("fill","currentColor");let g=o.createElementNS("http://www.w3.org/2000/svg","path");g.setAttribute("d","M0 0h24v24H0V0z"),g.setAttribute("fill","none");let b=o.createElementNS("http://www.w3.org/2000/svg","path");b.setAttribute("d","M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12\
zm-2.62 7l1.62-4.33L19.12 17h-3.24z"),p.append(g,b),h.append(" ",p," ");let w=o.createElement("div","lh-tools-locale__selector-wrapper");w.setAttribute("id","lh-tools-locale__selector-wrapper"),w.setAttribute("role","menu"),w.setAttribute("aria-labelledby","lh-button__swap-locales"),w.setAttribute("aria-hidden","true"),w.append(" "," "),d.append(" ",h," ",w," ");let f=o.createElement("button","lh-tools__button");f.setAttribute("id","lh-tools-button"),f.setAttribute("title","Tools menu"),f.setAttribute("aria-label","Toggle report tools menu"),f.setAttribute("aria-haspopup","menu"),f.setAttribute("aria-expanded","false"),f.setAttribute("aria-controls","lh-tools-dropdown");let u=o.createElementNS("http://www.w3.org/2000/svg","svg");u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("viewBox","0 0 24 24");let v=o.createElementNS("http://www.w3.org/2000/svg","path");v.setAttribute("d","M0 0h24v24H0z"),v.setAttribute("fill","none");let _=o.createElementNS("http://w\
ww.w3.org/2000/svg","path");_.setAttribute("d","M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"),u.append(" ",v," ",_," "),f.append(" ",u," ");let x=o.createElement("div","lh-tools__dropdown");x.setAttribute("id","lh-tools-dropdown"),x.setAttribute("role","menu"),x.setAttribute("aria-labelledby","lh-tools-button");let L=o.createElement("a","lh-report-icon lh-report-icon--print");L.setAttribute("role","menuitem"),L.setAttribute("tabindex","-1"),L.setAttribute("href","#"),L.setAttribute("data-i18n","dropdownPrintSummary"),L.setAttribute("data-action","print-summary");let C=o.createElement("a","lh-report-icon lh-report-icon--print");C.setAttribute("role","menuitem"),C.setAttribute("tabindex","-1"),C.setAttribute("href","#"),C.setAttribute("data-i18n","dropdownPrintExpanded"),C.setAttribute("data-action","print-expanded");let z=o.createElement("a","lh-report-icon lh-report-icon--copy");z.setA\
ttribute("role","menuitem"),z.setAttribute("tabindex","-1"),z.setAttribute("href","#"),z.setAttribute("data-i18n","dropdownCopyJSON"),z.setAttribute("data-action","copy");let M=o.createElement("a","lh-report-icon lh-report-icon--download lh-hidden");M.setAttribute("role","menuitem"),M.setAttribute("tabindex","-1"),M.setAttribute("href","#"),M.setAttribute("data-i18n","dropdownSaveHTML"),M.setAttribute("data-action","save-html");let $=o.createElement("a","lh-report-icon lh-report-icon--download");$.setAttribute("role","menuitem"),$.setAttribute("tabindex","-1"),$.setAttribute("href","#"),$.setAttribute("data-i18n","dropdownSaveJSON"),$.setAttribute("data-action","save-json");let R=o.createElement("a","lh-report-icon lh-report-icon--open");R.setAttribute("role","menuitem"),R.setAttribute("tabindex","-1"),R.setAttribute("href","#"),R.setAttribute("data-i18n","dropdownViewer"),R.setAttribute("data-action","open-viewer");let N=o.createElement("a","lh-report-icon lh-report-icon--open");N.set\
Attribute("role","menuitem"),N.setAttribute("tabindex","-1"),N.setAttribute("href","#"),N.setAttribute("data-i18n","dropdownSaveGist"),N.setAttribute("data-action","save-gist");let D=o.createElement("a","lh-report-icon lh-report-icon--open lh-hidden");D.setAttribute("role","menuitem"),D.setAttribute("tabindex","-1"),D.setAttribute("href","#"),D.setAttribute("data-i18n","dropdownViewUnthrottledTrace"),D.setAttribute("data-action","view-unthrottled-trace");let I=o.createElement("a","lh-report-icon lh-report-icon--dark");return I.setAttribute("role","menuitem"),I.setAttribute("tabindex","-1"),I.setAttribute("href","#"),I.setAttribute("data-i18n","dropdownDarkTheme"),I.setAttribute("data-action","toggle-dark"),x.append(" ",L," ",C," ",z," "," ",M," ",$," ",R," ",N," "," ",D," ",I," "),c.append(" ",d," ",f," ",x," "),n.append(" "," ",r," ",s," ",c," "),e.append(n),e}function ht(o){let e=o.createFragment(),t=o.createElement("div","lh-warnings lh-warnings--toplevel"),n=o.createElement("p","lh\
-warnings__msg"),r=o.createElement("ul");return t.append(" ",n," ",r," "),e.append(t),e}function be(o,e){switch(e){case"3pFilter":return Ge(o);case"audit":return Be(o);case"categoryHeader":return qe(o);case"chevron":return je(o);case"clump":return We(o);case"crc":return Ke(o);case"crcChain":return Ze(o);case"elementScreenshot":return Je(o);case"explodeyGauge":return Qe(o);case"footer":return Ye(o);case"fraction":return Xe(o);case"gauge":return et(o);case"heading":return tt(o);case"metric":return nt(o);case"scorescale":return rt(o);case"scoresWrapper":return ot(o);case"snippet":return it(o);case"snippetContent":return at(o);case"snippetHeader":return lt(o);case"snippetLine":return st(o);case"styles":return ct(o);case"topbar":return dt(o);case"warningsToplevel":return ht(o)}throw new Error("unexpected component: "+e)}var ee=class{constructor(e,t){this._document=e,this._lighthouseChannel="unknown",this._componentCache=new Map,this.rootEl=t}createElement(e,t){let n=this._document.createEle\
ment(e);if(t)for(let r of t.split(/\\s+/))r&&n.classList.add(r);return n}createElementNS(e,t,n){let r=this._document.createElementNS(e,t);if(n)for(let i of n.split(/\\s+/))i&&r.classList.add(i);return r}createSVGElement(e,t){return this._document.createElementNS("http://www.w3.org/2000/svg",e,t)}createFragment(){return this._document.createDocumentFragment()}createTextNode(e){return this._document.createTextNode(e)}createChildOf(e,t,n){let r=this.createElement(t,n);return e.append(r),r}createComponent(e){let t=this._componentCache.get(e);if(t){let r=t.cloneNode(!0);return this.findAll("style",r).forEach(i=>i.remove()),r}return t=be(this,e),this._componentCache.set(e,t),t.cloneNode(!0)}clearComponentCache(){this._componentCache.clear()}convertMarkdownLinkSnippets(e,t={}){let n=this.createElement("span");for(let r of E.splitMarkdownLink(e)){let i=r.text.includes("`")?this.convertMarkdownCodeSnippets(r.text):r.text;if(!r.isLink){n.append(i);continue}let a=new URL(r.linkHref);(["https://deve\
lopers.google.com","https://web.dev","https://developer.chrome.com"].includes(a.origin)||t.alwaysAppendUtmSource)&&(a.searchParams.set("utm_source","lighthouse"),a.searchParams.set("utm_medium",this._lighthouseChannel));let s=this.createElement("a");s.rel="noopener",s.target="_blank",s.append(i),this.safelySetHref(s,a.href),n.append(s)}return n}safelySetHref(e,t){if(t=t||"",t.startsWith("#")){e.href=t;return}let n=["https:","http:"],r;try{r=new URL(t)}catch{}r&&n.includes(r.protocol)&&(e.href=r.href)}safelySetBlobHref(e,t){if(t.type!=="text/html"&&t.type!=="application/json")throw new Error("Unsupported blob type");let n=URL.createObjectURL(t);e.href=n}convertMarkdownCodeSnippets(e){let t=this.createElement("span");for(let n of E.splitMarkdownCodeSpans(e))if(n.isCode){let r=this.createElement("code");r.textContent=n.text,t.append(r)}else t.append(this._document.createTextNode(n.text));return t}setLighthouseChannel(e){this._lighthouseChannel=e}document(){return this._document}isDevTools\
(){return!!this._document.querySelector(".lh-devtools")}find(e,t=this.rootEl??this._document){let n=this.maybeFind(e,t);if(n===null)throw new Error(`query ${e} not found`);return n}maybeFind(e,t=this.rootEl??this._document){return t.querySelector(e)}findAll(e,t){return Array.from(t.querySelectorAll(e))}fireEventOn(e,t=this._document,n){let r=new CustomEvent(e,n?{detail:n}:void 0);t.dispatchEvent(r)}saveFile(e,t){let n=this.createElement("a");n.download=t,this.safelySetBlobHref(n,e),this._document.body.append(n),n.click(),this._document.body.removeChild(n),setTimeout(()=>URL.revokeObjectURL(n.href),500)}};var _e=0,m=class o{static i18n=null;static strings={};static reportJson=null;static apply(e){o.strings={...we,...e.providedStrings},o.i18n=e.i18n,o.reportJson=e.reportJson}static getUniqueSuffix(){return _e++}static resetUniqueSuffix(){_e=0}};var ye="data:image/jpeg;base64,";function xe(o){o.configSettings.locale||(o.configSettings.locale="en"),o.configSettings.formFactor||(o.configSet\
tings.formFactor=o.configSettings.emulatedFormFactor),o.finalDisplayedUrl=E.getFinalDisplayedUrl(o),o.mainDocumentUrl=E.getMainDocumentUrl(o);for(let n of Object.values(o.audits))if((n.scoreDisplayMode==="not_applicable"||n.scoreDisplayMode==="not-applicable")&&(n.scoreDisplayMode="notApplicable"),n.scoreDisplayMode==="informative"&&(n.score=1),n.details){if((n.details.type===void 0||n.details.type==="diagnostic")&&(n.details.type="debugdata"),n.details.type==="filmstrip")for(let r of n.details.items)r.data.startsWith(ye)||(r.data=ye+r.data);if(n.details.type==="table")for(let r of n.details.headings){let{itemType:i,text:a}=r;i!==void 0&&(r.valueType=i,delete r.itemType),a!==void 0&&(r.label=a,delete r.text);let l=r.subItemsHeading?.itemType;r.subItemsHeading&&l!==void 0&&(r.subItemsHeading.valueType=l,delete r.subItemsHeading.itemType)}if(n.id==="third-party-summary"&&(n.details.type==="opportunity"||n.details.type==="table")){let{headings:r,items:i}=n.details;if(r[0].valueType==="lin\
k"){r[0].valueType="text";for(let a of i)typeof a.entity=="object"&&a.entity.type==="link"&&(a.entity=a.entity.text);n.details.isEntityGrouped=!0}}}let[e]=o.lighthouseVersion.split(".").map(Number),t=o.categories.performance;if(t){if(e<9){o.categoryGroups||(o.categoryGroups={}),o.categoryGroups.hidden={title:""};for(let n of t.auditRefs)n.group?n.group==="load-opportunities"&&(n.group="diagnostics"):n.group="hidden"}else if(e<12)for(let n of t.auditRefs)n.group||(n.group="diagnostics")}if(e<12&&t){let n=new Map;for(let r of t.auditRefs){let i=r.relevantAudits;if(!(!i||!r.acronym))for(let a of i){let l=n.get(a)||[];l.push(r.acronym),n.set(a,l)}}for(let[r,i]of n){if(!i.length)continue;let a=o.audits[r];if(a&&!a.metricSavings){a.metricSavings={};for(let l of i)a.metricSavings[l]=0}}}if(o.environment||(o.environment={benchmarkIndex:0,networkUserAgent:o.userAgent,hostUserAgent:o.userAgent}),o.configSettings.screenEmulation||(o.configSettings.screenEmulation={width:-1,height:-1,deviceScaleFa\
ctor:-1,mobile:/mobile/i.test(o.environment.hostUserAgent),disabled:!1}),o.i18n||(o.i18n={}),o.audits["full-page-screenshot"]){let n=o.audits["full-page-screenshot"].details;n?o.fullPageScreenshot={screenshot:n.screenshot,nodes:n.nodes}:o.fullPageScreenshot=null,delete o.audits["full-page-screenshot"]}}var O=E.RATINGS,k=class o{static prepareReportResult(e){let t=JSON.parse(JSON.stringify(e));xe(t);for(let r of Object.values(t.audits))r.details&&(r.details.type==="opportunity"||r.details.type==="table")&&!r.details.isEntityGrouped&&t.entities&&o.classifyEntities(t.entities,r.details);if(typeof t.categories!="object")throw new Error("No categories provided.");let n=new Map;for(let r of Object.values(t.categories))r.auditRefs.forEach(i=>{i.acronym&&n.set(i.acronym,i)}),r.auditRefs.forEach(i=>{let a=t.audits[i.id];i.result=a;let l=Object.keys(i.result.metricSavings||{});if(l.length){i.relevantMetrics=[];for(let s of l){let c=n.get(s);c&&i.relevantMetrics.push(c)}}if(t.stackPacks){let s=[i\
.id,...i.result.replacesAudits??[]];t.stackPacks.forEach(c=>{let d=s.find(h=>c.descriptions[h]);d&&c.descriptions[d]&&(i.stackPacks=i.stackPacks||[],i.stackPacks.push({title:c.title,iconDataURL:c.iconDataURL,description:c.descriptions[d]}))})}});return t}static getUrlLocatorFn(e){let t=e.find(r=>r.valueType==="url")?.key;if(t&&typeof t=="string")return r=>{let i=r[t];if(typeof i=="string")return i};let n=e.find(r=>r.valueType==="source-location")?.key;if(n)return r=>{let i=r[n];if(typeof i=="object"&&i.type==="source-location")return i.url}}static classifyEntities(e,t){let{items:n,headings:r}=t;if(!n.length||n.some(a=>a.entity))return;let i=o.getUrlLocatorFn(r);if(i)for(let a of n){let l=i(a);if(!l)continue;let s="";try{s=E.parseURL(l).origin}catch{}if(!s)continue;let c=e.find(d=>d.origins.includes(s));c&&(a.entity=c.name)}}static getTableItemSortComparator(e){return(t,n)=>{for(let r of e){let i=t[r],a=n[r];if((typeof i!=typeof a||!["number","string"].includes(typeof i))&&console.warn(\
`Warning: Attempting to sort unsupported value type: ${r}.`),typeof i=="number"&&typeof a=="number"&&i!==a)return a-i;if(typeof i=="string"&&typeof a=="string"&&i!==a)return i.localeCompare(a)}return 0}}static getEmulationDescriptions(e){let t,n,r,i=e.throttling,a=m.i18n,l=m.strings;switch(e.throttlingMethod){case"provided":r=n=t=l.throttlingProvided;break;case"devtools":{let{cpuSlowdownMultiplier:p,requestLatencyMs:g}=i;t=`${a.formatNumber(p)}x slowdown (DevTools)`,n=`${a.formatMilliseconds(g)} HTTP RTT, ${a.formatKbps(i.downloadThroughputKbps)} down, ${a.formatKbps(i.uploadThroughputKbps)} up (DevTools)`,r=g===150*3.75&&i.downloadThroughputKbps===1.6*1024*.9&&i.uploadThroughputKbps===750*.9?l.runtimeSlow4g:l.runtimeCustom;break}case"simulate":{let{cpuSlowdownMultiplier:p,rttMs:g,throughputKbps:b}=i;t=`${a.formatNumber(p)}x slowdown (Simulated)`,n=`${a.formatMilliseconds(g)} TCP RTT, ${a.formatKbps(b)} throughput (Simulated)`,r=g===150&&b===1.6*1024?l.runtimeSlow4g:l.runtimeCustom;bre\
ak}default:r=t=n=l.runtimeUnknown}let s=e.channel==="devtools"?!1:e.screenEmulation.disabled,c=e.channel==="devtools"?e.formFactor==="mobile":e.screenEmulation.mobile,d=l.runtimeMobileEmulation;s?d=l.runtimeNoEmulation:c||(d=l.runtimeDesktopEmulation);let h=s?void 0:`${e.screenEmulation.width}x${e.screenEmulation.height}, DPR ${e.screenEmulation.deviceScaleFactor}`;return{deviceEmulation:d,screenEmulation:h,cpuThrottling:t,networkThrottling:n,summary:r}}static showAsPassed(e){switch(e.scoreDisplayMode){case"manual":case"notApplicable":return!0;case"error":case"informative":return!1;case"numeric":case"binary":default:return Number(e.score)>=O.PASS.minScore}}static calculateRating(e,t){if(t==="manual"||t==="notApplicable")return O.PASS.label;if(t==="error")return O.ERROR.label;if(e===null)return O.FAIL.label;let n=O.FAIL.label;return e>=O.PASS.minScore?n=O.PASS.label:e>=O.AVERAGE.minScore&&(n=O.AVERAGE.label),n}static calculateCategoryFraction(e){let t=0,n=0,r=0,i=0;for(let a of e.auditR\
efs){let l=o.showAsPassed(a.result);if(!(a.group==="hidden"||a.result.scoreDisplayMode==="manual"||a.result.scoreDisplayMode==="notApplicable")){if(a.result.scoreDisplayMode==="informative"){l||++r;continue}++t,i+=a.weight,l&&n++}}return{numPassed:n,numPassableAudits:t,numInformative:r,totalWeight:i}}static isPluginCategory(e){return e.startsWith("lighthouse-plugin-")}static shouldDisplayAsFraction(e,t){return e==="timespan"||e==="snapshot"||t?.categoryScoreDisplayMode==="fraction"}},we={varianceDisclaimer:"Values are estimated and may vary. The [performance score is calculated](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring/) directly from these metrics.",calculatorLink:"See calculator.",showRelevantAudits:"Show audits relevant to:",opportunityResourceColumnLabel:"Opportunity",opportunitySavingsColumnLabel:"Estimated Savings",errorMissingAuditInfo:"Report error: no audit information",errorLabel:"Error!",warningHeader:"Warnings: ",warningAuditsGroupTitle:"\
Passed audits but with warnings",passedAuditsGroupTitle:"Passed audits",notApplicableAuditsGroupTitle:"Not applicable",manualAuditsGroupTitle:"Additional items to manually check",toplevelWarningsMessage:"There were issues affecting this run of Lighthouse:",crcInitialNavigation:"Initial Navigation",crcLongestDurationLabel:"Maximum critical path latency:",snippetExpandButtonLabel:"Expand snippet",snippetCollapseButtonLabel:"Collapse snippet",lsPerformanceCategoryDescription:"[Lighthouse](https://developers.google.com/web/tools/lighthouse/) analysis of the current page on an emulated mobile network. Values are estimated and may vary.",labDataTitle:"Lab Data",thirdPartyResourcesLabel:"Show 3rd-party resources",viewTreemapLabel:"View Treemap",viewTraceLabel:"View Trace",dropdownPrintSummary:"Print Summary",dropdownPrintExpanded:"Print Expanded",dropdownCopyJSON:"Copy JSON",dropdownSaveHTML:"Save as HTML",dropdownSaveJSON:"Save as JSON",dropdownViewer:"Open in Viewer",dropdownSaveGist:"Save \
as Gist",dropdownDarkTheme:"Toggle Dark Theme",dropdownViewUnthrottledTrace:"View Unthrottled Trace",runtimeSettingsDevice:"Device",runtimeSettingsNetworkThrottling:"Network throttling",runtimeSettingsCPUThrottling:"CPU throttling",runtimeSettingsUANetwork:"User agent (network)",runtimeSettingsBenchmark:"Unthrottled CPU/Memory Power",runtimeSettingsAxeVersion:"Axe version",runtimeSettingsScreenEmulation:"Screen emulation",footerIssue:"File an issue",runtimeNoEmulation:"No emulation",runtimeMobileEmulation:"Emulated Moto G Power",runtimeDesktopEmulation:"Emulated Desktop",runtimeUnknown:"Unknown",runtimeSingleLoad:"Single page session",runtimeAnalysisWindow:"Initial page load",runtimeAnalysisWindowTimespan:"User interactions timespan",runtimeAnalysisWindowSnapshot:"Point-in-time snapshot",runtimeSingleLoadTooltip:"This data is taken from a single page session, as opposed to field data summarizing many sessions.",throttlingProvided:"Provided by environment",show:"Show",hide:"Hide",expand\
View:"Expand view",collapseView:"Collapse view",runtimeSlow4g:"Slow 4G throttling",runtimeCustom:"Custom throttling",firstPartyChipLabel:"1st party",openInANewTabTooltip:"Open in a new tab",unattributable:"Unattributable",unscoredLabel:"Unscored",unscoredTitle:"This audit does not contribute to the overall category score."};var G=class{constructor(e,t){this.dom=e,this.detailsRenderer=t}get _clumpTitles(){return{warning:m.strings.warningAuditsGroupTitle,manual:m.strings.manualAuditsGroupTitle,passed:m.strings.passedAuditsGroupTitle,notApplicable:m.strings.notApplicableAuditsGroupTitle}}renderAudit(e){let t=m.strings,n=this.dom.createComponent("audit"),r=this.dom.find("div.lh-audit",n);r.id=e.result.id;let i=e.result.scoreDisplayMode;e.result.displayValue&&(this.dom.find(".lh-audit__display-text",r).textContent=e.result.displayValue);let a=this.dom.find(".lh-audit__title",r);a.append(this.dom.convertMarkdownCodeSnippets(e.result.title));let l=this.dom.find(".lh-audit__description",r);l.a\
ppend(this.dom.convertMarkdownLinkSnippets(e.result.description));for(let p of e.relevantMetrics||[]){let g=this.dom.createChildOf(l,"span","lh-audit__adorn");g.title=`Relevant to ${p.result.title}`,g.textContent=p.acronym||p.id}if(e.weight===0){let p=this.dom.createChildOf(l,"span","lh-audit__adorn");p.title=m.strings.unscoredTitle,p.textContent=m.strings.unscoredLabel}e.stackPacks&&e.stackPacks.forEach(p=>{let g=this.dom.createElement("img","lh-audit__stackpack__img");g.src=p.iconDataURL,g.alt=p.title;let b=this.dom.convertMarkdownLinkSnippets(p.description,{alwaysAppendUtmSource:!0}),w=this.dom.createElement("div","lh-audit__stackpack");w.append(g,b),this.dom.find(".lh-audit__stackpacks",r).append(w)});let s=this.dom.find("details",r);if(e.result.details){let p=this.detailsRenderer.render(e.result.details);p&&(p.classList.add("lh-details"),s.append(p))}if(this.dom.find(".lh-chevron-container",r).append(this._createChevron()),this._setRatingClass(r,e.result.score,i),e.result.scoreDis\
playMode==="error"){r.classList.add("lh-audit--error");let p=this.dom.find(".lh-audit__display-text",r);p.textContent=t.errorLabel,p.classList.add("lh-tooltip-boundary");let g=this.dom.createChildOf(p,"div","lh-tooltip lh-tooltip--error");g.textContent=e.result.errorMessage||t.errorMissingAuditInfo}else if(e.result.explanation){let p=this.dom.createChildOf(a,"div","lh-audit-explanation");p.textContent=e.result.explanation}let c=e.result.warnings;if(!c||c.length===0)return r;let d=this.dom.find("summary",s),h=this.dom.createChildOf(d,"div","lh-warnings");if(this.dom.createChildOf(h,"span").textContent=t.warningHeader,c.length===1)h.append(this.dom.createTextNode(c.join("")));else{let p=this.dom.createChildOf(h,"ul");for(let g of c){let b=this.dom.createChildOf(p,"li");b.textContent=g}}return r}injectFinalScreenshot(e,t,n){let r=t["final-screenshot"];if(!r||r.scoreDisplayMode==="error"||!r.details||r.details.type!=="screenshot")return null;let i=this.dom.createElement("img","lh-final-ss-\
image"),a=r.details.data;i.src=a,i.alt=r.title;let l=this.dom.find(".lh-category .lh-category-header",e),s=this.dom.createElement("div","lh-category-headercol"),c=this.dom.createElement("div","lh-category-headercol lh-category-headercol--separator"),d=this.dom.createElement("div","lh-category-headercol");s.append(...l.childNodes),s.append(n),d.append(i),l.append(s,c,d),l.classList.add("lh-category-header__finalscreenshot")}_createChevron(){let e=this.dom.createComponent("chevron");return this.dom.find("svg.lh-chevron",e)}_setRatingClass(e,t,n){let r=k.calculateRating(t,n);return e.classList.add(`lh-audit--${n.toLowerCase()}`),n!=="informative"&&e.classList.add(`lh-audit--${r}`),e}renderCategoryHeader(e,t,n){let r=this.dom.createComponent("categoryHeader"),i=this.dom.find(".lh-score__gauge",r),a=this.renderCategoryScore(e,t,n);if(i.append(a),e.description){let l=this.dom.convertMarkdownLinkSnippets(e.description);this.dom.find(".lh-category-header__description",r).append(l)}return r}ren\
derAuditGroup(e){let t=this.dom.createElement("div","lh-audit-group"),n=this.dom.createElement("div","lh-audit-group__header");this.dom.createChildOf(n,"span","lh-audit-group__title").textContent=e.title,t.append(n);let r=null;return e.description&&(r=this.dom.convertMarkdownLinkSnippets(e.description),r.classList.add("lh-audit-group__description","lh-audit-group__footer"),t.append(r)),[t,r]}_renderGroupedAudits(e,t){let n=new Map,r="NotAGroup";n.set(r,[]);for(let a of e){let l=a.group||r,s=n.get(l)||[];s.push(a),n.set(l,s)}let i=[];for(let[a,l]of n){if(a===r){for(let h of l)i.push(this.renderAudit(h));continue}let s=t[a],[c,d]=this.renderAuditGroup(s);for(let h of l)c.insertBefore(this.renderAudit(h),d);c.classList.add(`lh-audit-group--${a}`),i.push(c)}return i}renderUnexpandableClump(e,t){let n=this.dom.createElement("div");return this._renderGroupedAudits(e,t).forEach(i=>n.append(i)),n}renderClump(e,{auditRefsOrEls:t,description:n,openByDefault:r}){let i=this.dom.createComponent("cl\
ump"),a=this.dom.find(".lh-clump",i);r&&a.setAttribute("open","");let l=this.dom.find(".lh-audit-group__header",a),s=this._clumpTitles[e];this.dom.find(".lh-audit-group__title",l).textContent=s;let c=this.dom.find(".lh-audit-group__itemcount",a);c.textContent=`(${t.length})`;let d=t.map(p=>p instanceof HTMLElement?p:this.renderAudit(p));a.append(...d);let h=this.dom.find(".lh-audit-group",i);if(n){let p=this.dom.convertMarkdownLinkSnippets(n);p.classList.add("lh-audit-group__description","lh-audit-group__footer"),h.append(p)}return this.dom.find(".lh-clump-toggletext--show",h).textContent=m.strings.show,this.dom.find(".lh-clump-toggletext--hide",h).textContent=m.strings.hide,a.classList.add(`lh-clump--${e.toLowerCase()}`),h}renderCategoryScore(e,t,n){let r;if(n&&k.shouldDisplayAsFraction(n.gatherMode,e)?r=this.renderCategoryFraction(e):r=this.renderScoreGauge(e,t),n?.omitLabel&&this.dom.find(".lh-gauge__label,.lh-fraction__label",r).remove(),n?.onPageAnchorRendered){let i=this.dom.find\
("a",r);n.onPageAnchorRendered(i)}return r}renderScoreGauge(e,t){let n=this.dom.createComponent("gauge"),r=this.dom.find("a.lh-gauge__wrapper",n);k.isPluginCategory(e.id)&&r.classList.add("lh-gauge__wrapper--plugin");let i=Number(e.score),a=this.dom.find(".lh-gauge",n),l=this.dom.find("circle.lh-gauge-arc",a);l&&this._setGaugeArc(l,i);let s=Math.round(i*100),c=this.dom.find("div.lh-gauge__percentage",n);return c.textContent=s.toString(),e.score===null&&(c.classList.add("lh-gauge--error"),c.textContent="",c.title=m.strings.errorLabel),e.auditRefs.length===0||this.hasApplicableAudits(e)?r.classList.add(`lh-gauge__wrapper--${k.calculateRating(e.score)}`):(r.classList.add("lh-gauge__wrapper--not-applicable"),c.textContent="-",c.title=m.strings.notApplicableAuditsGroupTitle),this.dom.find(".lh-gauge__label",n).textContent=e.title,n}renderCategoryFraction(e){let t=this.dom.createComponent("fraction"),n=this.dom.find("a.lh-fraction__wrapper",t),{numPassed:r,numPassableAudits:i,totalWeight:a}=\
k.calculateCategoryFraction(e),l=r/i,s=this.dom.find(".lh-fraction__content",t),c=this.dom.createElement("span");c.textContent=`${r}/${i}`,s.append(c);let d=k.calculateRating(l);return a===0&&(d="null"),n.classList.add(`lh-fraction__wrapper--${d}`),this.dom.find(".lh-fraction__label",t).textContent=e.title,t}hasApplicableAudits(e){return e.auditRefs.some(t=>t.result.scoreDisplayMode!=="notApplicable")}_setGaugeArc(e,t){let n=2*Math.PI*Number(e.getAttribute("r")),r=Number(e.getAttribute("stroke-width")),i=.25*r/n;e.style.transform=`rotate(${-90+i*360}deg)`;let a=t*n-r/2;t===0&&(e.style.opacity="0"),t===1&&(a=n),e.style.strokeDasharray=`${Math.max(a,0)} ${n}`}_auditHasWarning(e){return!!e.result.warnings?.length}_getClumpIdForAuditRef(e){let t=e.result.scoreDisplayMode;return t==="manual"||t==="notApplicable"?t:k.showAsPassed(e.result)?this._auditHasWarning(e)?"warning":"passed":"failed"}render(e,t={},n){let r=this.dom.createElement("div","lh-category");r.id=e.id,r.append(this.renderCate\
goryHeader(e,t,n));let i=new Map;i.set("failed",[]),i.set("warning",[]),i.set("manual",[]),i.set("passed",[]),i.set("notApplicable",[]);for(let l of e.auditRefs){if(l.group==="hidden")continue;let s=this._getClumpIdForAuditRef(l),c=i.get(s);c.push(l),i.set(s,c)}for(let l of i.values())l.sort((s,c)=>c.weight-s.weight);let a=i.get("failed")?.length;for(let[l,s]of i){if(s.length===0)continue;if(l==="failed"){let p=this.renderUnexpandableClump(s,t);p.classList.add("lh-clump--failed"),r.append(p);continue}let c=l==="manual"?e.manualDescription:void 0,d=l==="warning"||l==="manual"&&a===0,h=this.renderClump(l,{auditRefsOrEls:s,description:c,openByDefault:d});r.append(h)}return r}};var Y=class{static createSegment(e,t,n,r){let i=e[t],a=Object.keys(e),l=a.indexOf(t)===a.length-1,s=!!i.children&&Object.keys(i.children).length>0,c=Array.isArray(n)?n.slice(0):[];return typeof r<"u"&&c.push(!r),{node:i,isLastChild:l,hasChildren:s,treeMarkers:c}}static createChainNode(e,t,n){let r=e.createComponent(\
"crcChain"),i,a,l,s,c;"request"in t.node?(a=t.node.request.transferSize,l=t.node.request.url,i=(t.node.request.endTime-t.node.request.startTime)*1e3,s=!1):(a=t.node.transferSize,l=t.node.url,i=t.node.navStartToEndTime,s=!0,c=t.node.isLongest);let d=e.find(".lh-crc-node",r);d.setAttribute("title",l),c&&d.classList.add("lh-crc-node__longest");let h=e.find(".lh-crc-node__tree-marker",r);t.treeMarkers.forEach(f=>{let u=f?"lh-tree-marker lh-vert":"lh-tree-marker";h.append(e.createElement("span",u),e.createElement("span","lh-tree-marker"))});let p=t.isLastChild?"lh-tree-marker lh-up-right":"lh-tree-marker lh-vert-right",g=t.hasChildren?"lh-tree-marker lh-horiz-down":"lh-tree-marker lh-right";h.append(e.createElement("span",p),e.createElement("span","lh-tree-marker lh-right"),e.createElement("span",g));let b=n.renderTextURL(l),w=e.find(".lh-crc-node__tree-value",r);if(w.append(b),!t.hasChildren||s){let f=e.createElement("span","lh-crc-node__chain-duration");f.textContent=" - "+m.i18n.formatMi\
lliseconds(i)+", ";let u=e.createElement("span","lh-crc-node__chain-size");u.textContent=m.i18n.formatBytesToKiB(a,.01),w.append(f,u)}return r}static buildTree(e,t,n,r){if(n.append(Q.createChainNode(e,t,r)),t.node.children)for(let i of Object.keys(t.node.children)){let a=Q.createSegment(t.node.children,i,t.treeMarkers,t.isLastChild);Q.buildTree(e,a,n,r)}}static render(e,t,n){let r=e.createComponent("crc"),i=e.find(".lh-crc",r);e.find(".lh-crc-initial-nav",r).textContent=m.strings.crcInitialNavigation,e.find(".lh-crc__longest_duration_label",r).textContent=m.strings.crcLongestDurationLabel,e.find(".lh-crc__longest_duration",r).textContent=m.i18n.formatMilliseconds(t.longestChain.duration);let a=t.chains;for(let l of Object.keys(a)){let s=Q.createSegment(a,l);Q.buildTree(e,s,i,n)}return e.find(".lh-crc-container",r)}},Q=Y;function pt(o,e){return e.left<=o.width&&0<=e.right&&e.top<=o.height&&0<=e.bottom}function ke(o,e,t){return o<e?e:o>t?t:o}function ut(o){return{x:o.left+o.width/2,y:o.t\
op+o.height/2}}var V=class o{static getScreenshotPositions(e,t,n){let r=ut(e),i=ke(r.x-t.width/2,0,n.width-t.width),a=ke(r.y-t.height/2,0,n.height-t.height);return{screenshot:{left:i,top:a},clip:{left:e.left-i,top:e.top-a}}}static renderClipPathInScreenshot(e,t,n,r,i){let a=e.find("clipPath",t),l=`clip-${m.getUniqueSuffix()}`;a.id=l,t.style.clipPath=`url(#${l})`;let s=n.top/i.height,c=s+r.height/i.height,d=n.left/i.width,h=d+r.width/i.width,p=[`0,0             1,0            1,${s}          0,${s}`,`0,${c}     1,${c}    1,1               0,1`,`0,${s}        ${d},${s} ${d},${c} 0,${c}`,`${h},${s} 1,${s}       1,${c}       ${h},${c}`];for(let g of p){let b=e.createElementNS("http://www.w3.org/2000/svg","polygon");b.setAttribute("points",g),a.append(b)}}static installFullPageScreenshot(e,t){e.style.setProperty("--element-screenshot-url",`url(\'${t.data}\')`)}static installOverlayFeature(e){let{dom:t,rootEl:n,overlayContainerEl:r,fullPageScreenshot:i}=e,a="lh-screenshot-overlay--enabled";n.c\
lassList.contains(a)||(n.classList.add(a),n.addEventListener("click",l=>{let s=l.target;if(!s)return;let c=s.closest(".lh-node > .lh-element-screenshot");if(!c)return;let d=t.createElement("div","lh-element-screenshot__overlay");r.append(d);let h={width:d.clientWidth*.95,height:d.clientHeight*.8},p={width:Number(c.dataset.rectWidth),height:Number(c.dataset.rectHeight),left:Number(c.dataset.rectLeft),right:Number(c.dataset.rectLeft)+Number(c.dataset.rectWidth),top:Number(c.dataset.rectTop),bottom:Number(c.dataset.rectTop)+Number(c.dataset.rectHeight)},g=o.render(t,i.screenshot,p,h);if(!g){d.remove();return}d.append(g),d.addEventListener("click",()=>d.remove())}))}static _computeZoomFactor(e,t){let r={x:t.width/e.width,y:t.height/e.height},i=.75*Math.min(r.x,r.y);return Math.min(1,i)}static render(e,t,n,r){if(!pt(t,n))return null;let i=e.createComponent("elementScreenshot"),a=e.find("div.lh-element-screenshot",i);a.dataset.rectWidth=n.width.toString(),a.dataset.rectHeight=n.height.toStri\
ng(),a.dataset.rectLeft=n.left.toString(),a.dataset.rectTop=n.top.toString();let l=this._computeZoomFactor(n,r),s={width:r.width/l,height:r.height/l};s.width=Math.min(t.width,s.width),s.height=Math.min(t.height,s.height);let c={width:s.width*l,height:s.height*l},d=o.getScreenshotPositions(n,s,{width:t.width,height:t.height}),h=e.find("div.lh-element-screenshot__image",a);h.style.width=c.width+"px",h.style.height=c.height+"px",h.style.backgroundPositionY=-(d.screenshot.top*l)+"px",h.style.backgroundPositionX=-(d.screenshot.left*l)+"px",h.style.backgroundSize=`${t.width*l}px ${t.height*l}px`;let p=e.find("div.lh-element-screenshot__element-marker",a);p.style.width=n.width*l+"px",p.style.height=n.height*l+"px",p.style.left=d.clip.left*l+"px",p.style.top=d.clip.top*l+"px";let g=e.find("div.lh-element-screenshot__mask",a);return g.style.width=c.width+"px",g.style.height=c.height+"px",o.renderClipPathInScreenshot(e,g,d.clip,n,s),a}};var gt=["http://","https://","data:"],mt=["bytes","numeric"\
,"ms","timespanMs"],X=class{constructor(e,t={}){this._dom=e,this._fullPageScreenshot=t.fullPageScreenshot,this._entities=t.entities}render(e){switch(e.type){case"filmstrip":return this._renderFilmstrip(e);case"list":return this._renderList(e);case"checklist":return this._renderChecklist(e);case"table":case"opportunity":return this._renderTable(e);case"network-tree":case"criticalrequestchain":return Y.render(this._dom,e,this);case"screenshot":case"debugdata":case"treemap-data":return null;default:return this._renderUnknown(e.type,e)}}_renderBytes(e){let t=m.i18n.formatBytesToKiB(e.value,e.granularity||.1),n=this._renderText(t);return n.title=m.i18n.formatBytes(e.value),n}_renderMilliseconds(e){let t;return e.displayUnit==="duration"?t=m.i18n.formatDuration(e.value):t=m.i18n.formatMilliseconds(e.value,e.granularity||10),this._renderText(t)}renderTextURL(e){let t=e,n,r,i;try{let l=E.parseURL(t);n=l.file==="/"?l.origin:l.file,r=l.file==="/"||l.hostname===""?"":`(${l.hostname})`,i=t}catch{n\
=t}let a=this._dom.createElement("div","lh-text__url");if(a.append(this._renderLink({text:n,url:t})),r){let l=this._renderText(r);l.classList.add("lh-text__url-host"),a.append(l)}return i&&(a.title=t,a.dataset.url=t),a}_renderLink(e){let t=this._dom.createElement("a");if(this._dom.safelySetHref(t,e.url),!t.href){let n=this._renderText(e.text);return n.classList.add("lh-link"),n}return t.rel="noopener",t.target="_blank",t.textContent=e.text,t.classList.add("lh-link"),t}_renderText(e){let t=this._dom.createElement("div","lh-text");return t.textContent=e,t}_renderBaselineStatus(e){let t=this._dom.createElement("div","lh-baseline-status"),n=e.status;return t.classList.add(`lh-baseline-status--${n}`),t.textContent=String(e.displayString),t}_renderNumeric(e){let t=m.i18n.formatNumber(e.value,e.granularity||.1),n=this._dom.createElement("div","lh-numeric");return n.textContent=t,n}_renderThumbnail(e){let t=this._dom.createElement("img","lh-thumbnail"),n=e;return t.src=n,t.title=n,t.alt="",t}_\
renderUnknown(e,t){console.error(`Unknown details type: ${e}`,t);let n=this._dom.createElement("details","lh-unknown");return this._dom.createChildOf(n,"summary").textContent=`We don\'t know how to render audit details of type \\`${e}\\`. The Lighthouse version that collected this data is likely newer than the Lighthouse version of the report renderer. Expand for the raw JSON.`,this._dom.createChildOf(n,"pre").textContent=JSON.stringify(t,null,2),n}_renderTableValue(e,t){if(e==null)return null;if(typeof e=="object")switch(e.type){case"code":return this._renderCode(e.value);case"link":return this._renderLink(e);case"node":return this.renderNode(e);case"numeric":return this._renderNumeric(e);case"text":return this._renderText(e.value);case"source-location":return this.renderSourceLocation(e);case"url":return this.renderTextURL(e.value);case"baseline-status":return this._renderBaselineStatus(e);default:return this._renderUnknown(e.type,e)}switch(t.valueType){case"bytes":{let n=Number(e);retu\
rn this._renderBytes({value:n,granularity:t.granularity})}case"code":{let n=String(e);return this._renderCode(n)}case"ms":{let n={value:Number(e),granularity:t.granularity,displayUnit:t.displayUnit};return this._renderMilliseconds(n)}case"numeric":{let n=Number(e);return this._renderNumeric({value:n,granularity:t.granularity})}case"text":{let n=String(e);return this._renderText(n)}case"thumbnail":{let n=String(e);return this._renderThumbnail(n)}case"timespanMs":{let n=Number(e);return this._renderMilliseconds({value:n})}case"url":{let n=String(e);return gt.some(r=>n.startsWith(r))?this.renderTextURL(n):this._renderCode(n)}default:return this._renderUnknown(t.valueType,e)}}_getDerivedSubItemsHeading(e){return e.subItemsHeading?{key:e.subItemsHeading.key||"",valueType:e.subItemsHeading.valueType||e.valueType,granularity:e.subItemsHeading.granularity||e.granularity,displayUnit:e.subItemsHeading.displayUnit||e.displayUnit,label:""}:null}_renderTableRow(e,t){let n=this._dom.createElement("t\
r");for(let r of t){if(!r||!r.key){this._dom.createChildOf(n,"td","lh-table-column--empty");continue}let i=e[r.key],a;if(i!=null&&(a=this._renderTableValue(i,r)),a){let l=`lh-table-column--${r.valueType}`;this._dom.createChildOf(n,"td",l).append(a)}else this._dom.createChildOf(n,"td","lh-table-column--empty")}return n}_renderTableRowsFromItem(e,t){let n=this._dom.createFragment();if(n.append(this._renderTableRow(e,t)),!e.subItems)return n;let r=t.map(this._getDerivedSubItemsHeading);if(!r.some(Boolean))return n;for(let i of e.subItems.items){let a=this._renderTableRow(i,r);a.classList.add("lh-sub-item-row"),n.append(a)}return n}_adornEntityGroupRow(e){let t=e.dataset.entity;if(!t)return;let n=this._entities?.find(i=>i.name===t);if(!n)return;let r=this._dom.find("td",e);if(n.category){let i=this._dom.createElement("span");i.classList.add("lh-audit__adorn"),i.textContent=n.category,r.append(" ",i)}if(n.isFirstParty){let i=this._dom.createElement("span");i.classList.add("lh-audit__adorn",\
"lh-audit__adorn1p"),i.textContent=m.strings.firstPartyChipLabel,r.append(" ",i)}if(n.homepage){let i=this._dom.createElement("a");i.href=n.homepage,i.target="_blank",i.title=m.strings.openInANewTabTooltip,i.classList.add("lh-report-icon--external"),r.append(" ",i)}}_renderEntityGroupRow(e,t){let n={...t[0]};n.valueType="text";let r=[n,...t.slice(1)],i=this._dom.createFragment();return i.append(this._renderTableRow(e,r)),this._dom.find("tr",i).classList.add("lh-row--group"),i}_getEntityGroupItems(e){let{items:t,headings:n,sortedBy:r}=e;if(!t.length||e.isEntityGrouped||!t.some(d=>d.entity))return[];let i=new Set(e.skipSumming||[]),a=[];for(let d of n)!d.key||i.has(d.key)||mt.includes(d.valueType)&&a.push(d.key);let l=n[0].key;if(!l)return[];let s=new Map;for(let d of t){let h=typeof d.entity=="string"?d.entity:void 0,p=s.get(h)||{[l]:h||m.strings.unattributable,entity:h};for(let g of a)p[g]=Number(p[g]||0)+Number(d[g]||0);s.set(h,p)}let c=[...s.values()];return r&&c.sort(k.getTableItemS\
ortComparator(r)),c}_renderTable(e){if(!e.items.length)return this._dom.createElement("span");let t=this._dom.createElement("table","lh-table"),n=this._dom.createChildOf(t,"thead"),r=this._dom.createChildOf(n,"tr");for(let l of e.headings){let c=`lh-table-column--${l.valueType||"text"}`,d=this._dom.createElement("div","lh-text");d.textContent=l.label,this._dom.createChildOf(r,"th",c).append(d)}let i=this._getEntityGroupItems(e),a=this._dom.createChildOf(t,"tbody");if(i.length)for(let l of i){let s=typeof l.entity=="string"?l.entity:void 0,c=this._renderEntityGroupRow(l,e.headings);for(let h of e.items.filter(p=>p.entity===s))c.append(this._renderTableRowsFromItem(h,e.headings));let d=this._dom.findAll("tr",c);s&&d.length&&(d.forEach(h=>h.dataset.entity=s),this._adornEntityGroupRow(d[0])),a.append(c)}else{let l=!0;for(let s of e.items){let c=this._renderTableRowsFromItem(s,e.headings),d=this._dom.findAll("tr",c),h=d[0];if(typeof s.entity=="string"&&(h.dataset.entity=s.entity),e.isEntity\
Grouped&&s.entity)h.classList.add("lh-row--group"),this._adornEntityGroupRow(h);else for(let p of d)p.classList.add(l?"lh-row--even":"lh-row--odd");l=!l,a.append(c)}}return t}_renderListValue(e){return e.type==="node"?this.renderNode(e):e.type==="text"?this._renderText(e.value):this.render(e)}_renderList(e){let t=this._dom.createElement("div","lh-list");return e.items.forEach(n=>{if(n.type==="list-section"){let i=this._dom.createElement("div","lh-list-section");n.title&&this._dom.createChildOf(i,"div","lh-list-section__title").append(this._dom.convertMarkdownLinkSnippets(n.title)),n.description&&this._dom.createChildOf(i,"div","lh-list-section__description").append(this._dom.convertMarkdownLinkSnippets(n.description));let a=this._renderListValue(n.value);a&&i.append(a),t.append(i);return}let r=this._renderListValue(n);r&&t.append(r)}),t}_renderChecklist(e){let t=this._dom.createElement("ul","lh-checklist");return Object.values(e.items).forEach(n=>{let r=this._dom.createChildOf(t,"li","\
lh-checklist-item"),i=n.value?"lh-report-plain-icon--checklist-pass":"lh-report-plain-icon--checklist-fail";this._dom.createChildOf(r,"span",`lh-report-plain-icon ${i}`).textContent=n.label}),t}renderNode(e){let t=this._dom.createElement("span","lh-node");if(e.nodeLabel){let a=this._dom.createElement("div");a.textContent=e.nodeLabel,t.append(a)}if(e.snippet){let a=this._dom.createElement("div");a.classList.add("lh-node__snippet"),a.textContent=e.snippet,t.append(a)}if(e.selector&&(t.title=e.selector),e.path&&t.setAttribute("data-path",e.path),e.selector&&t.setAttribute("data-selector",e.selector),e.snippet&&t.setAttribute("data-snippet",e.snippet),!this._fullPageScreenshot)return t;let n=e.lhId&&this._fullPageScreenshot.nodes[e.lhId];if(!n||n.width===0||n.height===0)return t;let r={width:147,height:100},i=V.render(this._dom,this._fullPageScreenshot.screenshot,n,r);return i&&t.prepend(i),t}renderSourceLocation(e){if(!e.url)return null;let t=`${e.url}:${e.line+1}:${e.column}`,n;e.origina\
l&&(n=`${e.original.file||"<unmapped>"}:${e.original.line+1}:${e.original.column}`);let r;if(e.urlProvider==="network"&&n)r=this._renderLink({url:e.url,text:n}),r.title=`maps to generated location ${t}`;else if(e.urlProvider==="network"&&!n)r=this.renderTextURL(e.url),this._dom.find(".lh-link",r).textContent+=`:${e.line+1}:${e.column}`;else if(e.urlProvider==="comment"&&n)r=this._renderText(`${n} (from source map)`),r.title=`${t} (from sourceURL)`;else if(e.urlProvider==="comment"&&!n)r=this._renderText(`${t} (from sourceURL)`);else return null;return r.classList.add("lh-source-location"),r.setAttribute("data-source-url",e.url),r.setAttribute("data-source-line",String(e.line)),r.setAttribute("data-source-column",String(e.column)),r}_renderFilmstrip(e){let t=this._dom.createElement("div","lh-filmstrip");for(let n of e.items){let r=this._dom.createChildOf(t,"div","lh-filmstrip__frame"),i=this._dom.createChildOf(r,"img","lh-filmstrip__thumbnail");i.src=n.data,i.alt="Screenshot"}return t}_\
renderCode(e){let t=this._dom.createElement("pre","lh-code");return t.textContent=e,t}};var te=class{constructor(e){e==="en-XA"&&(e="de"),this._locale=e,this._cachedNumberFormatters=new Map}_formatNumberWithGranularity(e,t,n={}){if(t!==void 0){let a=-Math.log10(t);Number.isInteger(a)||(console.warn(`granularity of ${t} is invalid. Using 1 instead`),t=1),t<1&&(n={...n},n.minimumFractionDigits=n.maximumFractionDigits=Math.ceil(a)),e=Math.round(e/t)*t,Object.is(e,-0)&&(e=0)}else Math.abs(e)<5e-4&&(e=0);let r,i=[n.minimumFractionDigits,n.maximumFractionDigits,n.style,n.unit,n.unitDisplay,this._locale].join("");return r=this._cachedNumberFormatters.get(i),r||(r=new Intl.NumberFormat(this._locale,n),this._cachedNumberFormatters.set(i,r)),r.format(e).replace(" ","\\xA0")}formatNumber(e,t){return this._formatNumberWithGranularity(e,t)}formatInteger(e){return this._formatNumberWithGranularity(e,1)}formatPercent(e){return new Intl.NumberFormat(this._locale,{style:"percent"}).format(e)}formatBytes\
ToKiB(e,t=void 0){return this._formatNumberWithGranularity(e/1024,t)+"\\xA0KiB"}formatBytesToMiB(e,t=void 0){return this._formatNumberWithGranularity(e/1048576,t)+"\\xA0MiB"}formatBytes(e,t=1){return this._formatNumberWithGranularity(e,t,{style:"unit",unit:"byte",unitDisplay:"long"})}formatBytesWithBestUnit(e,t=.1){return e>=1048576?this.formatBytesToMiB(e,t):e>=1024?this.formatBytesToKiB(e,t):this._formatNumberWithGranularity(e,t,{style:"unit",unit:"byte",unitDisplay:"narrow"})}formatKbps(e,t=void 0){return this._formatNumberWithGranularity(e,t,{style:"unit",unit:"kilobit-per-second",unitDisplay:"short"})}formatMilliseconds(e,t=void 0){return this._formatNumberWithGranularity(e,t,{style:"unit",unit:"millisecond",unitDisplay:"short"})}formatSeconds(e,t=void 0){return this._formatNumberWithGranularity(e/1e3,t,{style:"unit",unit:"second",unitDisplay:"narrow"})}formatDateTime(e){let t={month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"},n;try{n=n\
ew Intl.DateTimeFormat(this._locale,t)}catch{t.timeZone="UTC",n=new Intl.DateTimeFormat(this._locale,t)}return n.format(new Date(e))}formatDuration(e){let t=e/1e3;if(Math.round(t)===0)return"None";let n=[],r={day:3600*24,hour:3600,minute:60,second:1};return Object.keys(r).forEach(i=>{let a=r[i],l=Math.floor(t/a);if(l>0){t-=l*a;let s=this._formatNumberWithGranularity(l,1,{style:"unit",unit:i,unitDisplay:"narrow"});n.push(s)}}),n.join(" ")}};function Ee(o){let e=o.createComponent("explodeyGauge");return o.find(".lh-exp-gauge-component",e)}function Le(o,e,t){let n=o.find("div.lh-exp-gauge__wrapper",e);n.className="",n.classList.add("lh-exp-gauge__wrapper",`lh-exp-gauge__wrapper--${k.calculateRating(t.score)}`),vt(o,n,t)}function ft(o,e,t){t=t||o/32;let n=o/t,r=.5*t,i=n+r+t,a=2*Math.PI*n,l=Math.acos(1-.5*Math.pow(.5*t/n,2))*n,s=2*Math.PI*i,c=Math.acos(1-.5*Math.pow(.5*t/i,2))*i;return{radiusInner:n,radiusOuter:i,circumferenceInner:a,circumferenceOuter:s,getArcLength:()=>Math.max(0,Number(e\
*a)),getMetricArcLength:(d,h=!1)=>{let p=h?0:2*c;return Math.max(0,Number(d*s-r-p))},endDiffInner:l,endDiffOuter:c,strokeWidth:t,strokeGap:r}}function vt(o,e,t){let i=Number(t.score),{radiusInner:a,radiusOuter:l,circumferenceInner:s,circumferenceOuter:c,getArcLength:d,getMetricArcLength:h,endDiffInner:p,endDiffOuter:g,strokeWidth:b,strokeGap:w}=ft(128,i),f=o.find("svg.lh-exp-gauge",e);o.find(".lh-exp-gauge__label",f).textContent=t.title,f.setAttribute("viewBox",[-64,-64/2,128,128/2].join(" ")),f.style.setProperty("--stroke-width",`${b}px`),f.style.setProperty("--circle-meas",(2*Math.PI).toFixed(4));let u=o.find("g.lh-exp-gauge__outer",e),v=o.find("g.lh-exp-gauge__inner",e),_=o.find("circle.lh-cover",u),x=o.find("circle.lh-exp-gauge__arc",v),L=o.find("text.lh-exp-gauge__percentage",v);u.style.setProperty("--scale-initial",String(a/l)),u.style.setProperty("--radius",`${l}px`),_.style.setProperty("--radius",`${.5*(a+l)}px`),_.setAttribute("stroke-width",String(w)),f.style.setProperty("--r\
adius",`${a}px`),x.setAttribute("stroke-dasharray",`${d()} ${(s-d()).toFixed(4)}`),x.setAttribute("stroke-dashoffset",String(.25*s-p)),L.textContent=Math.round(i*100).toString();let C=l+b,z=l-b,M=t.auditRefs.filter(y=>y.group==="metrics"&&y.weight),$=M.reduce((y,S)=>y+=S.weight,0),R=.25*c-g-.5*w,N=-.5*Math.PI;u.querySelectorAll(".metric").forEach(y=>{M.map(F=>`metric--${F.id}`).find(F=>y.classList.contains(F))||y.remove()}),M.forEach((y,S)=>{let A=y.acronym??y.id,F=!u.querySelector(`.metric--${A}`),T=o.maybeFind(`g.metric--${A}`,u)||o.createSVGElement("g"),B=o.maybeFind(`.metric--${A} circle.lh-exp-gauge--faded`,u)||o.createSVGElement("circle"),K=o.maybeFind(`.metric--${A} circle.lh-exp-gauge--miniarc`,u)||o.createSVGElement("circle"),q=o.maybeFind(`.metric--${A} circle.lh-exp-gauge-hovertarget`,u)||o.createSVGElement("circle"),P=o.maybeFind(`.metric--${A} text.metric__label`,u)||o.createSVGElement("text"),H=o.maybeFind(`.metric--${A} text.metric__value`,u)||o.createSVGElement("text");\
T.classList.add("metric",`metric--${A}`),B.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--faded"),K.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge--miniarc"),q.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget");let j=y.weight/$,de=h(j),he=y.result.score?y.result.score*j:0,pe=h(he),Pe=j*c,ue=h(j,!0),ge=k.calculateRating(y.result.score,y.result.scoreDisplayMode);T.style.setProperty("--metric-rating",ge),T.style.setProperty("--metric-color",`var(--color-${ge})`),T.style.setProperty("--metric-offset",`${R}`),T.style.setProperty("--i",S.toString()),B.setAttribute("stroke-dasharray",`${de} ${c-de}`),K.style.setProperty("--metric-array",`${pe} ${c-pe}`),q.setAttribute("stroke-dasharray",`${ue} ${c-ue-g}`),P.classList.add("metric__label"),H.classList.add("metric__value"),P.textContent=A,H.textContent=`+${Math.round(he*100)}`;let me=N+j*Math.PI,Z=Math.cos(me),J=Math.sin(me);switch(!0){case Z>0:H.se\
tAttribute("text-anchor","end");break;case Z<0:P.setAttribute("text-anchor","end");break;case Z===0:P.setAttribute("text-anchor","middle"),H.setAttribute("text-anchor","middle");break}switch(!0){case J>0:P.setAttribute("dominant-baseline","hanging");break;case J<0:H.setAttribute("dominant-baseline","hanging");break;case J===0:P.setAttribute("dominant-baseline","middle"),H.setAttribute("dominant-baseline","middle");break}P.setAttribute("x",(C*Z).toFixed(2)),P.setAttribute("y",(C*J).toFixed(2)),H.setAttribute("x",(z*Z).toFixed(2)),H.setAttribute("y",(z*J).toFixed(2)),F&&(T.appendChild(B),T.appendChild(K),T.appendChild(q),T.appendChild(P),T.appendChild(H),u.appendChild(T)),R-=Pe,N+=j*2*Math.PI});let D=u.querySelector(".lh-exp-gauge-underhovertarget")||o.createSVGElement("circle");D.classList.add("lh-exp-gauge__arc","lh-exp-gauge__arc--metric","lh-exp-gauge-hovertarget","lh-exp-gauge-underhovertarget");let I=h(1,!0);if(D.setAttribute("stroke-dasharray",`${I} ${c-I-g}`),D.isConnected||u.pre\
pend(D),f.dataset.listenersSetup)return;f.dataset.listenersSetup=!0,De(f),f.addEventListener("pointerover",y=>{if(y.target===f&&f.classList.contains("state--expanded")){f.classList.remove("state--expanded"),f.classList.contains("state--highlight")&&(f.classList.remove("state--highlight"),o.find(".metric--highlight",f).classList.remove("metric--highlight"));return}if(!(y.target instanceof Element))return;let S=y.target.parentNode;if(S instanceof SVGElement){if(S&&S===v){f.classList.contains("state--expanded")?f.classList.contains("state--highlight")&&(f.classList.remove("state--highlight"),o.find(".metric--highlight",f).classList.remove("metric--highlight")):f.classList.add("state--expanded");return}if(S&&S.classList&&S.classList.contains("metric")){let A=S.style.getPropertyValue("--metric-rating");if(e.style.setProperty("--color-highlight",`var(--color-${A}-secondary)`),!f.classList.contains("state--highlight"))f.classList.add("state--highlight"),S.classList.add("metric--highlight");el\
se{let F=o.find(".metric--highlight",f);S!==F&&(F.classList.remove("metric--highlight"),S.classList.add("metric--highlight"))}}}}),f.addEventListener("mouseleave",()=>{f.classList.remove("state--highlight"),f.querySelector(".metric--highlight")?.classList.remove("metric--highlight")});async function De(y){if(await new Promise(P=>setTimeout(P,1e3)),y.classList.contains("state--expanded"))return;let S=o.find(".lh-exp-gauge__inner",y),A=`uniq-${Math.random()}`;S.setAttribute("id",A);let F=o.createSVGElement("use");F.setAttribute("href",`#${A}`),y.appendChild(F);let T=2.5;y.style.setProperty("--peek-dur",`${T}s`),y.classList.add("state--peek","state--expanded");let B=()=>{y.classList.remove("state--peek","state--expanded"),F.remove()},K=setTimeout(()=>{y.removeEventListener("mouseenter",q),B()},T*1e3*1.5);function q(){clearTimeout(K),B()}y.addEventListener("mouseenter",q,{once:!0})}}var ne=class extends G{_renderMetric(e){let t=this.dom.createComponent("metric"),n=this.dom.find(".lh-metric\
",t);n.id=e.result.id;let r=k.calculateRating(e.result.score,e.result.scoreDisplayMode);n.classList.add(`lh-metric--${r}`);let i=this.dom.find(".lh-metric__title",t);i.textContent=e.result.title;let a=this.dom.find(".lh-metric__value",t);a.textContent=e.result.displayValue||"";let l=this.dom.find(".lh-metric__description",t);if(l.append(this.dom.convertMarkdownLinkSnippets(e.result.description)),e.result.scoreDisplayMode==="error"){l.textContent="",a.textContent="Error!";let s=this.dom.createChildOf(l,"span");s.textContent=e.result.errorMessage||"Report error: no metric information"}else e.result.scoreDisplayMode==="notApplicable"&&(a.textContent="--");return n}_getScoringCalculatorHref(e){let t=e.filter(h=>h.group==="metrics"),n=e.find(h=>h.id==="interactive"),r=e.find(h=>h.id==="first-cpu-idle"),i=e.find(h=>h.id==="first-meaningful-paint");n&&t.push(n),r&&t.push(r),i&&typeof i.result.score=="number"&&t.push(i);let a=h=>Math.round(h*100)/100,s=[...t.map(h=>{let p;return typeof h.resul\
t.numericValue=="number"?(p=h.id==="cumulative-layout-shift"?a(h.result.numericValue):Math.round(h.result.numericValue),p=p.toString()):p="null",[h.acronym||h.id,p]})];m.reportJson&&(s.push(["device",m.reportJson.configSettings.formFactor]),s.push(["version",m.reportJson.lighthouseVersion]));let c=new URLSearchParams(s),d=new URL("https://googlechrome.github.io/lighthouse/scorecalc/");return d.hash=c.toString(),d.href}overallImpact(e,t){if(!e.result.metricSavings)return{overallImpact:0,overallLinearImpact:0};let n=0,r=0;for(let[i,a]of Object.entries(e.result.metricSavings)){if(a===void 0)continue;let l=t.find(g=>g.acronym===i);if(!l||l.result.score===null)continue;let s=l.result.numericValue;if(!s)continue;let c=a/s*l.weight;r+=c;let d=l.result.scoringOptions;if(!d)continue;let p=(E.computeLogNormalScore(d,s-a)-l.result.score)*l.weight;n+=p}return{overallImpact:n,overallLinearImpact:r}}render(e,t,n){let r=m.strings,i=this.dom.createElement("div","lh-category");i.id=e.id,i.append(this.r\
enderCategoryHeader(e,t,n));let a=e.auditRefs.filter(p=>p.group==="metrics");if(a.length){let[p,g]=this.renderAuditGroup(t.metrics),b=this.dom.createElement("input","lh-metrics-toggle__input"),w=`lh-metrics-toggle${m.getUniqueSuffix()}`;b.setAttribute("aria-label","Toggle the display of metric descriptions"),b.type="checkbox",b.id=w,p.prepend(b);let f=this.dom.find(".lh-audit-group__header",p),u=this.dom.createChildOf(f,"label","lh-metrics-toggle__label");u.htmlFor=w;let v=this.dom.createChildOf(u,"span","lh-metrics-toggle__labeltext--show"),_=this.dom.createChildOf(u,"span","lh-metrics-toggle__labeltext--hide");v.textContent=m.strings.expandView,_.textContent=m.strings.collapseView;let x=this.dom.createElement("div","lh-metrics-container");if(p.insertBefore(x,g),a.forEach(L=>{x.append(this._renderMetric(L))}),i.querySelector(".lh-gauge__wrapper")){let L=this.dom.find(".lh-category-header__description",i),C=this.dom.createChildOf(L,"div","lh-metrics__disclaimer"),z=this.dom.convertMark\
downLinkSnippets(r.varianceDisclaimer);C.append(z);let M=this.dom.createChildOf(C,"a","lh-calclink");M.target="_blank",M.textContent=r.calculatorLink,this.dom.safelySetHref(M,this._getScoringCalculatorHref(e.auditRefs))}p.classList.add("lh-audit-group--metrics"),i.append(p)}let l=this.dom.createChildOf(i,"div","lh-filmstrip-container"),c=e.auditRefs.find(p=>p.id==="screenshot-thumbnails")?.result;if(c?.details){l.id=c.id;let p=this.detailsRenderer.render(c.details);p&&l.append(p)}let d=this.renderFilterableSection(e,t,["insights","diagnostics"],a);if(d&&(d.classList.add("lh-perf-audits"),i.append(d)),(!n||n?.gatherMode==="navigation")&&e.score!==null){let p=Ee(this.dom);Le(this.dom,p,e),this.dom.find(".lh-score__gauge",i).replaceWith(p)}return i}renderFilterableSection(e,t,n,r){if(n.some(u=>!t[u]))return null;let i=this.dom.createElement("div"),a=u=>u.group??"",s=e.auditRefs.filter(u=>n.includes(a(u))).map(u=>{let{overallImpact:v,overallLinearImpact:_}=this.overallImpact(u,r),x=u.resul\
t.guidanceLevel||1,L=this.renderAudit(u);return{auditRef:u,auditEl:L,overallImpact:v,overallLinearImpact:_,guidanceLevel:x}}),c=s.filter(u=>!k.showAsPassed(u.auditRef.result)),d=s.filter(u=>k.showAsPassed(u.auditRef.result)),h={};for(let u of n){let v=this.renderAuditGroup(t[u]);v[0].classList.add(`lh-audit-group--${u}`),h[u]=v}function p(u){for(let v of s)if(u==="All")v.auditEl.hidden=!1;else{let _=v.auditRef.result.metricSavings?.[u]===void 0;v.auditEl.hidden=_}c.sort((v,_)=>{let x=v.auditRef.result.score||0,L=_.auditRef.result.score||0;if(x!==L)return x-L;if(u!=="All"){let C=v.auditRef.result.metricSavings?.[u]??-1,z=_.auditRef.result.metricSavings?.[u]??-1;if(C!==z)return z-C}return v.overallImpact!==_.overallImpact?_.overallImpact*_.guidanceLevel-v.overallImpact*v.guidanceLevel:v.overallImpact===0&&_.overallImpact===0&&v.overallLinearImpact!==_.overallLinearImpact?_.overallLinearImpact*_.guidanceLevel-v.overallLinearImpact*v.guidanceLevel:_.guidanceLevel-v.guidanceLevel});for(let \
v of c){if(!v.auditRef.group)continue;let _=h[a(v.auditRef)];if(!_)continue;let[x,L]=_;x.insertBefore(v.auditEl,L)}}let g=new Set;for(let u of c){let v=u.auditRef.result.metricSavings||{};for(let[_,x]of Object.entries(v))typeof x=="number"&&g.add(_)}let b=r.filter(u=>u.acronym&&g.has(u.acronym));b.length&&this.renderMetricAuditFilter(b,i,p),p("All");for(let u of n)if(c.some(v=>a(v.auditRef)===u)){let v=h[u];if(!v)continue;i.append(v[0])}if(!d.length)return i;let w={auditRefsOrEls:d.map(u=>u.auditEl),groupDefinitions:t},f=this.renderClump("passed",w);return i.append(f),i}renderMetricAuditFilter(e,t,n){let r=this.dom.createElement("div","lh-metricfilter"),i=this.dom.createChildOf(r,"span","lh-metricfilter__text");i.textContent=m.strings.showRelevantAudits;let a=[{acronym:"All",id:"All"},...e],l=m.getUniqueSuffix();for(let s of a){let c=`metric-${s.acronym}-${l}`,d=this.dom.createChildOf(r,"input","lh-metricfilter__radio");d.type="radio",d.name=`metricsfilter-${l}`,d.id=c;let h=this.dom.c\
reateChildOf(r,"label","lh-metricfilter__label");h.htmlFor=c,h.title="result"in s?s.result.title:"",h.textContent=s.acronym||s.id,s.acronym==="All"&&(d.checked=!0,h.classList.add("lh-metricfilter__label--active")),t.append(r),d.addEventListener("input",p=>{for(let b of t.querySelectorAll("label.lh-metricfilter__label"))b.classList.toggle("lh-metricfilter__label--active",b.htmlFor===c);t.classList.toggle("lh-category--filtered",s.acronym!=="All"),n(s.acronym||"All");let g=t.querySelectorAll("div.lh-audit-group, details.lh-audit-group");for(let b of g){b.hidden=!1;let w=Array.from(b.querySelectorAll("div.lh-audit")),f=!!w.length&&w.every(u=>u.hidden);b.hidden=f}})}}};var re=class{constructor(e){this._dom=e,this._opts={}}renderReport(e,t,n){if(!this._dom.rootEl&&t){console.warn("Please adopt the new report API in renderer/api.js.");let i=t.closest(".lh-root");i?this._dom.rootEl=i:(t.classList.add("lh-root","lh-vars"),this._dom.rootEl=t)}else this._dom.rootEl&&t&&(this._dom.rootEl=t);n&&(t\
his._opts=n),this._dom.setLighthouseChannel(e.configSettings.channel||"unknown");let r=k.prepareReportResult(e);return this._dom.rootEl.textContent="",this._dom.rootEl.append(this._renderReport(r)),this._opts.occupyEntireViewport&&this._dom.rootEl.classList.add("lh-max-viewport"),this._dom.rootEl}_renderReportTopbar(e){let t=this._dom.createComponent("topbar"),n=this._dom.find("a.lh-topbar__url",t);return n.textContent=e.finalDisplayedUrl,n.title=e.finalDisplayedUrl,this._dom.safelySetHref(n,e.finalDisplayedUrl),t}_renderReportHeader(){let e=this._dom.createComponent("heading"),t=this._dom.createComponent("scoresWrapper");return this._dom.find(".lh-scores-wrapper-placeholder",e).replaceWith(t),e}_renderReportFooter(e){let t=this._dom.createComponent("footer");return this._renderMetaBlock(e,t),this._dom.find(".lh-footer__version_issue",t).textContent=m.strings.footerIssue,this._dom.find(".lh-footer__version",t).textContent=e.lighthouseVersion,t}_renderMetaBlock(e,t){let n=k.getEmulation\
Descriptions(e.configSettings||{}),r=e.userAgent.match(/(\\w*Chrome\\/[\\d.]+)/),i=Array.isArray(r)?r[1].replace("/"," ").replace("Chrome","Chromium"):"Chromium",a=e.configSettings.channel,l=e.environment.benchmarkIndex.toFixed(0),s=e.environment.credits?.["axe-core"],c=[`${m.strings.runtimeSettingsBenchmark}: ${l}`,`${m.strings.runtimeSettingsCPUThrottling}: ${n.cpuThrottling}`];n.screenEmulation&&c.push(`${m.strings.runtimeSettingsScreenEmulation}: ${n.screenEmulation}`),s&&c.push(`${m.strings.runtimeSettingsAxeVersion}: ${s}`);let d=m.strings.runtimeAnalysisWindow;e.gatherMode==="timespan"?d=m.strings.runtimeAnalysisWindowTimespan:e.gatherMode==="snapshot"&&(d=m.strings.runtimeAnalysisWindowSnapshot);let h=[["date",`Captured at ${m.i18n.formatDateTime(e.fetchTime)}`],["devices",`${n.deviceEmulation} with Lighthouse ${e.lighthouseVersion}`,c.join(`\n`)],["samples-one",m.strings.runtimeSingleLoad,m.strings.runtimeSingleLoadTooltip],["stopwatch",d],["networkspeed",`${n.summary}`,`${m.strin\
gs.runtimeSettingsNetworkThrottling}: ${n.networkThrottling}`],["chrome",`Using ${i}`+(a?` with ${a}`:""),`${m.strings.runtimeSettingsUANetwork}: "${e.environment.networkUserAgent}"`]],p=this._dom.find(".lh-meta__items",t);for(let[g,b,w]of h){let f=this._dom.createChildOf(p,"li","lh-meta__item");if(f.textContent=b,w){f.classList.add("lh-tooltip-boundary");let u=this._dom.createChildOf(f,"div","lh-tooltip");u.textContent=w}f.classList.add("lh-report-icon",`lh-report-icon--${g}`)}}_renderReportWarnings(e){if(!e.runWarnings||e.runWarnings.length===0)return this._dom.createElement("div");let t=this._dom.createComponent("warningsToplevel"),n=this._dom.find(".lh-warnings__msg",t);n.textContent=m.strings.toplevelWarningsMessage;let r=[];for(let i of e.runWarnings){let a=this._dom.createElement("li");a.append(this._dom.convertMarkdownLinkSnippets(i)),r.push(a)}return this._dom.find("ul",t).append(...r),t}_renderScoreGauges(e,t,n){let r=[],i=[];for(let a of Object.values(e.categories)){let s=(n\
[a.id]||t).renderCategoryScore(a,e.categoryGroups||{},{gatherMode:e.gatherMode}),c=this._dom.find("a.lh-gauge__wrapper, a.lh-fraction__wrapper",s);c&&(this._dom.safelySetHref(c,`#${a.id}`),c.addEventListener("click",d=>{if(!c.matches(\'[href^="#"]\'))return;let h=c.getAttribute("href"),p=this._dom.rootEl;if(!h||!p)return;let g=this._dom.find(h,p);d.preventDefault(),g.scrollIntoView()}),this._opts.onPageAnchorRendered?.(c)),k.isPluginCategory(a.id)?i.push(s):r.push(s)}return[...r,...i]}_renderReport(e){m.apply({providedStrings:e.i18n.rendererFormattedStrings,i18n:new te(e.configSettings.locale),reportJson:e});let t=new X(this._dom,{fullPageScreenshot:e.fullPageScreenshot??void 0,entities:e.entities}),n=new G(this._dom,t),r={performance:new ne(this._dom,t)},i=this._dom.createElement("div");i.append(this._renderReportHeader());let a=this._dom.createElement("div","lh-container"),l=this._dom.createElement("div","lh-report");l.append(this._renderReportWarnings(e));let s;Object.keys(e.categorie\
s).length===1?i.classList.add("lh-header--solo-category"):s=this._dom.createElement("div","lh-scores-header");let d=this._dom.createElement("div");if(d.classList.add("lh-scorescale-wrap"),d.append(this._dom.createComponent("scorescale")),s){let b=this._dom.find(".lh-scores-container",i);s.append(...this._renderScoreGauges(e,n,r)),b.append(s,d);let w=this._dom.createElement("div","lh-sticky-header");w.append(...this._renderScoreGauges(e,n,r)),a.append(w)}let h=this._dom.createElement("div","lh-categories");l.append(h);let p={gatherMode:e.gatherMode};for(let b of Object.values(e.categories)){let w=r[b.id]||n;w.dom.createChildOf(h,"div","lh-category-wrapper").append(w.render(b,e.categoryGroups,p))}n.injectFinalScreenshot(h,e.audits,d);let g=this._dom.createFragment();return this._opts.omitGlobalStyles||g.append(this._dom.createComponent("styles")),this._opts.omitTopbar||g.append(this._renderReportTopbar(e)),g.append(a),l.append(this._renderReportFooter(e)),a.append(i,l),e.fullPageScreensh\
ot&&V.installFullPageScreenshot(this._dom.rootEl,e.fullPageScreenshot.screenshot),g}};function W(o,e){let t=o.rootEl;typeof e>"u"?t.classList.toggle("lh-dark"):t.classList.toggle("lh-dark",e)}var bt=typeof btoa<"u"?btoa:o=>Buffer.from(o).toString("base64"),_t=typeof atob<"u"?atob:o=>Buffer.from(o,"base64").toString();async function wt(o,e){let t=new TextEncoder().encode(o);if(e.gzip)if(typeof CompressionStream<"u"){let i=new CompressionStream("gzip"),a=i.writable.getWriter();a.write(t),a.close();let l=await new Response(i.readable).arrayBuffer();t=new Uint8Array(l)}else t=window.pako.gzip(o);let n="",r=5e3;for(let i=0;i<t.length;i+=r)n+=String.fromCharCode(...t.subarray(i,i+r));return bt(n)}function yt(o,e){let t=_t(o),n=Uint8Array.from(t,r=>r.charCodeAt(0));return e.gzip?window.pako.ungzip(n,{to:"string"}):new TextDecoder().decode(n)}var Se={toBase64:wt,fromBase64:yt};function se(){let o=window.location.host.endsWith(".vercel.app"),e=new URLSearchParams(window.location.search).has("de\
v");return o?`https://${window.location.host}/gh-pages`:e?"http://localhost:7333":"https://googlechrome.github.io/lighthouse"}function ce(o){let e=o.generatedTime,t=o.fetchTime||e;return`${o.lighthouseVersion}-${o.finalDisplayedUrl}-${t}`}function xt(o,e,t){let n=new URL(e).origin;window.addEventListener("message",function i(a){a.origin===n&&r&&a.data.opened&&(r.postMessage(o,n),window.removeEventListener("message",i))});let r=window.open(e,t)}async function Ce(o,e,t){let n=new URL(e),r=!!window.CompressionStream;n.hash=await Se.toBase64(JSON.stringify(o),{gzip:r}),r&&n.searchParams.set("gzip","1"),window.open(n.toString(),t)}async function Ae(o){let e="viewer-"+ce(o),t=se()+"/viewer/";await Ce({lhr:o},t,e)}async function ze(o){let e="viewer-"+ce(o),t=se()+"/viewer/";xt({lhr:o},t,e)}function Me(o){if(!o.audits["script-treemap-data"].details)throw new Error("no script treemap data found");let t={lhr:{mainDocumentUrl:o.mainDocumentUrl,finalUrl:o.finalUrl,finalDisplayedUrl:o.finalDisplaye\
dUrl,audits:{"script-treemap-data":o.audits["script-treemap-data"]},configSettings:{locale:o.configSettings.locale}}},n=se()+"/treemap/",r="treemap-"+ce(o);Ce(t,n,r)}var oe=class{constructor(e){this._dom=e,this._toggleEl,this._menuEl,this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this),this.onToggleClick=this.onToggleClick.bind(this),this.onToggleKeydown=this.onToggleKeydown.bind(this),this.onMenuFocusOut=this.onMenuFocusOut.bind(this),this.onMenuKeydown=this.onMenuKeydown.bind(this),this._getNextMenuItem=this._getNextMenuItem.bind(this),this._getNextSelectableNode=this._getNextSelectableNode.bind(this),this._getPreviousMenuItem=this._getPreviousMenuItem.bind(this)}setup(e){this._toggleEl=this._dom.find(".lh-topbar button.lh-tools__button",this._dom.rootEl),this._toggleEl.addEventListener("click",this.onToggleClick),this._toggleEl.addEventListener("keydown",this.onToggleKeydown),this._menuEl=this._dom.find(".lh-topbar div.lh-tools__dropdown",this._dom.rootEl),this._menuEl.addEventL\
istener("keydown",this.onMenuKeydown),this._menuEl.addEventListener("click",e)}close(){this._toggleEl.classList.remove("lh-active"),this._toggleEl.setAttribute("aria-expanded","false"),this._menuEl.contains(this._dom.document().activeElement)&&this._toggleEl.focus(),this._menuEl.removeEventListener("focusout",this.onMenuFocusOut),this._dom.document().removeEventListener("keydown",this.onDocumentKeyDown)}open(e){this._toggleEl.classList.contains("lh-active")?e.focus():this._menuEl.addEventListener("transitionend",()=>{e.focus()},{once:!0}),this._toggleEl.classList.add("lh-active"),this._toggleEl.setAttribute("aria-expanded","true"),this._menuEl.addEventListener("focusout",this.onMenuFocusOut),this._dom.document().addEventListener("keydown",this.onDocumentKeyDown)}onToggleClick(e){e.preventDefault(),e.stopImmediatePropagation(),this._toggleEl.classList.contains("lh-active")?this.close():this.open(this._getNextMenuItem())}onToggleKeydown(e){switch(e.code){case"ArrowUp":e.preventDefault(),\
this.open(this._getPreviousMenuItem());break;case"ArrowDown":case"Enter":case" ":e.preventDefault(),this.open(this._getNextMenuItem());break;default:}}onMenuKeydown(e){let t=e.target;switch(e.code){case"ArrowUp":e.preventDefault(),this._getPreviousMenuItem(t).focus();break;case"ArrowDown":e.preventDefault(),this._getNextMenuItem(t).focus();break;case"Home":e.preventDefault(),this._getNextMenuItem().focus();break;case"End":e.preventDefault(),this._getPreviousMenuItem().focus();break;default:}}onDocumentKeyDown(e){e.keyCode===27&&this.close()}onMenuFocusOut(e){let t=e.relatedTarget;this._menuEl.contains(t)||this.close()}_getNextSelectableNode(e,t){let n=e.filter(i=>i instanceof HTMLElement).filter(i=>!(i.hasAttribute("disabled")||window.getComputedStyle(i).display==="none")),r=t?n.indexOf(t)+1:0;return r>=n.length&&(r=0),n[r]}_getNextMenuItem(e){let t=Array.from(this._menuEl.childNodes);return this._getNextSelectableNode(t,e)}_getPreviousMenuItem(e){let t=Array.from(this._menuEl.childNod\
es).reverse();return this._getNextSelectableNode(t,e)}};var ie=class{constructor(e,t){this.lhr,this._reportUIFeatures=e,this._dom=t,this._dropDownMenu=new oe(this._dom),this._copyAttempt=!1,this.topbarEl,this.categoriesEl,this.stickyHeaderEl,this.highlightEl,this.onDropDownMenuClick=this.onDropDownMenuClick.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onCopy=this.onCopy.bind(this),this.collapseAllDetails=this.collapseAllDetails.bind(this)}enable(e){this.lhr=e,this._dom.rootEl.addEventListener("keyup",this.onKeyUp),this._dom.document().addEventListener("copy",this.onCopy),this._dropDownMenu.setup(this.onDropDownMenuClick),this._setUpCollapseDetailsAfterPrinting(),this._dom.find(".lh-topbar__logo",this._dom.rootEl).addEventListener("click",()=>W(this._dom)),this._setupStickyHeader()}onDropDownMenuClick(e){e.preventDefault();let t=e.target;if(!(!t||!t.hasAttribute("data-action"))){switch(t.getAttribute("data-action")){case"copy":this.onCopyButtonClick();break;case"print-summary":t\
his.collapseAllDetails(),this._print();break;case"print-expanded":this.expandAllDetails(),this._print();break;case"save-json":{let n=JSON.stringify(this.lhr,null,2);this._reportUIFeatures._saveFile(new Blob([n],{type:"application/json"}));break}case"save-html":{let n=this._reportUIFeatures.getReportHtml();try{this._reportUIFeatures._saveFile(new Blob([n],{type:"text/html"}))}catch(r){this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"error",msg:"Could not export as HTML. "+r.message})}break}case"open-viewer":{this._dom.isDevTools()?Ae(this.lhr):ze(this.lhr);break}case"save-gist":{this._reportUIFeatures.saveAsGist();break}case"toggle-dark":{W(this._dom);break}case"view-unthrottled-trace":this._reportUIFeatures._opts.onViewTrace?.()}this._dropDownMenu.close()}}onCopy(e){this._copyAttempt&&e.clipboardData&&(e.preventDefault(),e.clipboardData.setData("text/plain",JSON.stringify(this.lhr,null,2)),this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:"Report JSON copied t\
o clipboard"})),this._copyAttempt=!1}onCopyButtonClick(){this._dom.fireEventOn("lh-analytics",this._dom.document(),{name:"copy"});try{this._dom.document().queryCommandSupported("copy")&&(this._copyAttempt=!0,this._dom.document().execCommand("copy")||(this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"warn",msg:"Your browser does not support copy to clipboard."})))}catch(e){this._copyAttempt=!1,this._dom.fireEventOn("lh-log",this._dom.document(),{cmd:"log",msg:e.message})}}onKeyUp(e){(e.ctrlKey||e.metaKey)&&e.keyCode===80&&this._dropDownMenu.close()}expandAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(t=>t.open=!0)}collapseAllDetails(){this._dom.findAll(".lh-categories details",this._dom.rootEl).map(t=>t.open=!1)}_print(){this._reportUIFeatures._opts.onPrintOverride?this._reportUIFeatures._opts.onPrintOverride(this._dom.rootEl):self.print()}resetUIState(){this._dropDownMenu.close()}_getScrollParent(e){let{overflowY:t}=window.get\
ComputedStyle(e);return t!=="visible"&&t!=="hidden"?e:e.parentElement?this._getScrollParent(e.parentElement):document}_setUpCollapseDetailsAfterPrinting(){"onbeforeprint"in self?self.addEventListener("afterprint",this.collapseAllDetails):self.matchMedia("print").addListener(t=>{t.matches?this.expandAllDetails():this.collapseAllDetails()})}_setupStickyHeader(){this.topbarEl=this._dom.find("div.lh-topbar",this._dom.rootEl),this.categoriesEl=this._dom.find("div.lh-categories",this._dom.rootEl),requestAnimationFrame(()=>requestAnimationFrame(()=>{try{this.stickyHeaderEl=this._dom.find("div.lh-sticky-header",this._dom.rootEl)}catch{return}this.highlightEl=this._dom.createChildOf(this.stickyHeaderEl,"div","lh-highlighter");let e=this._getScrollParent(this._dom.find(".lh-container",this._dom.rootEl));e.addEventListener("scroll",()=>this._updateStickyHeader());let t=e instanceof window.Document?document.documentElement:e;new window.ResizeObserver(()=>this._updateStickyHeader()).observe(t)}))}_\
updateStickyHeader(){if(!this.stickyHeaderEl)return;let e=this.topbarEl.getBoundingClientRect().bottom,t=this.categoriesEl.getBoundingClientRect().top,n=e>=t,i=Array.from(this._dom.rootEl.querySelectorAll(".lh-category")).filter(h=>h.getBoundingClientRect().top-window.innerHeight/2<0),a=i.length>0?i.length-1:0,l=this.stickyHeaderEl.querySelectorAll(".lh-gauge__wrapper, .lh-fraction__wrapper"),s=l[a],c=l[0].getBoundingClientRect().left,d=s.getBoundingClientRect().left-c;this.highlightEl.style.transform=`translate(${d}px)`,this.stickyHeaderEl.classList.toggle("lh-sticky-header--visible",n)}};function kt(o,e){let t=e?new Date(e):new Date,n=t.toLocaleTimeString("en-US",{hour12:!1}),r=t.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/");r.unshift(r.pop());let i=r.join("-");return`${o}_${i}_${n}`.replace(/[/?<>\\\\:*|"]/g,"-")}function Te(o){let e=new URL(o.finalDisplayedUrl).hostname;return kt(e,o.fetchTime)}function Et(o){return Array.from(o.tBodies[0].rows\
)}var ae=class{constructor(e,t={}){this.json,this._dom=e,this._opts=t,this._topbar=t.omitTopbar?null:new ie(this,e),this.onMediaQueryChange=this.onMediaQueryChange.bind(this)}initFeatures(e){this.json=e,this._fullPageScreenshot=E.getFullPageScreenshot(e),this._topbar&&(this._topbar.enable(e),this._topbar.resetUIState()),this._setupMediaQueryListeners(),this._setupThirdPartyFilter(),this._setupElementScreenshotOverlay(this._dom.rootEl);let t=this._dom.isDevTools()||this._opts.disableDarkMode||this._opts.disableAutoDarkModeAndFireworks;!t&&window.matchMedia("(prefers-color-scheme: dark)").matches&&W(this._dom,!0);let r=["performance","accessibility","best-practices","seo"].every(s=>{let c=e.categories[s];return c&&c.score===1}),i=this._opts.disableFireworks||this._opts.disableAutoDarkModeAndFireworks;if(r&&!i&&(this._enableFireworks(),t||W(this._dom,!0)),e.categories.performance&&e.categories.performance.auditRefs.some(s=>!!(s.group==="metrics"&&e.audits[s.id].errorMessage))){let s=this.\
_dom.find("input.lh-metrics-toggle__input",this._dom.rootEl);s.checked=!0}this.json.audits["script-treemap-data"]&&this.json.audits["script-treemap-data"].details&&this.addButton({text:m.strings.viewTreemapLabel,icon:"treemap",onClick:()=>Me(this.json)}),this._opts.onViewTrace&&(e.configSettings.throttlingMethod==="simulate"?this._dom.find(\'a[data-action="view-unthrottled-trace"]\',this._dom.rootEl).classList.remove("lh-hidden"):this.addButton({text:m.strings.viewTraceLabel,onClick:()=>this._opts.onViewTrace?.()})),this._opts.getStandaloneReportHTML&&this._dom.find(\'a[data-action="save-html"]\',this._dom.rootEl).classList.remove("lh-hidden");for(let s of this._dom.findAll("[data-i18n]",this._dom.rootEl)){let d=s.getAttribute("data-i18n");s.textContent=m.strings[d]}}addButton(e){let t=this._dom.rootEl.querySelector(".lh-audit-group--metrics");if(!t)return;let n=t.querySelector(".lh-buttons");n||(n=this._dom.createChildOf(t,"div","lh-buttons"));let r=["lh-button"];e.icon&&(r.push("lh-repor\
t-icon"),r.push(`lh-report-icon--${e.icon}`));let i=this._dom.createChildOf(n,"button",r.join(" "));return i.textContent=e.text,i.addEventListener("click",e.onClick),i}resetUIState(){this._topbar&&this._topbar.resetUIState()}getReportHtml(){if(!this._opts.getStandaloneReportHTML)throw new Error("`getStandaloneReportHTML` is not set");return this.resetUIState(),this._opts.getStandaloneReportHTML()}saveAsGist(){throw new Error("Cannot save as gist from base report")}_enableFireworks(){this._dom.find(".lh-scores-container",this._dom.rootEl).classList.add("lh-score100")}_setupMediaQueryListeners(){let e=self.matchMedia("(max-width: 500px)");e.addListener(this.onMediaQueryChange),this.onMediaQueryChange(e)}_resetUIState(){this._topbar&&this._topbar.resetUIState()}onMediaQueryChange(e){this._dom.rootEl.classList.toggle("lh-narrow",e.matches)}_setupThirdPartyFilter(){let e=["uses-rel-preconnect","third-party-facades","network-dependency-tree-insight"],t=["legacy-javascript","legacy-javascript\
-insight"];Array.from(this._dom.rootEl.querySelectorAll("table.lh-table")).filter(i=>i.querySelector("td.lh-table-column--url, td.lh-table-column--source-location")).filter(i=>{let a=i.closest(".lh-audit");if(!a)throw new Error(".lh-table not within audit");return!e.includes(a.id)}).forEach(i=>{let a=Et(i),l=a.filter(f=>!f.classList.contains("lh-sub-item-row")),s=this._getThirdPartyRows(l,E.getFinalDisplayedUrl(this.json)),c=a.some(f=>f.classList.contains("lh-row--even")),d=this._dom.createComponent("3pFilter"),h=this._dom.find("input",d);h.addEventListener("change",f=>{let u=f.target instanceof HTMLInputElement&&!f.target.checked,v=!0,_=l[0];for(;_;){let x=u&&s.includes(_);do _.classList.toggle("lh-row--hidden",x),c&&(_.classList.toggle("lh-row--even",!x&&v),_.classList.toggle("lh-row--odd",!x&&!v)),_=_.nextElementSibling;while(_&&_.classList.contains("lh-sub-item-row"));x||(v=!v)}});let p=s.filter(f=>!f.classList.contains("lh-row--group")).length;this._dom.find(".lh-3p-filter-count",\
d).textContent=`${p}`,this._dom.find(".lh-3p-ui-string",d).textContent=m.strings.thirdPartyResourcesLabel;let g=s.length===l.length,b=!s.length;if((g||b)&&(this._dom.find("div.lh-3p-filter",d).hidden=!0),!i.parentNode)return;i.parentNode.insertBefore(d,i);let w=i.closest(".lh-audit");if(!w)throw new Error(".lh-table not within audit");t.includes(w.id)&&!g&&h.click()})}_setupElementScreenshotOverlay(e){this._fullPageScreenshot&&V.installOverlayFeature({dom:this._dom,rootEl:e,overlayContainerEl:e,fullPageScreenshot:this._fullPageScreenshot})}_getThirdPartyRows(e,t){let n=E.getEntityFromUrl(t,this.json.entities),r=this.json.entities?.find(a=>a.isFirstParty===!0)?.name,i=[];for(let a of e){if(r){if(!a.dataset.entity||a.dataset.entity===r)continue}else{let l=a.querySelector("div.lh-text__url");if(!l)continue;let s=l.dataset.url;if(!s||!(E.getEntityFromUrl(s,this.json.entities)!==n))continue}i.push(a)}return i}_saveFile(e){let t=e.type.match("json")?".json":".html",n=Te({finalDisplayedUrl:E.\
getFinalDisplayedUrl(this.json),fetchTime:this.json.fetchTime})+t;this._opts.onSaveFileOverride?this._opts.onSaveFileOverride(e,n):this._dom.saveFile(e,n)}};function Fe(o,e={}){let t=document.createElement("article");t.classList.add("lh-root","lh-vars");let n=new ee(t.ownerDocument,t);return new re(n).renderReport(o,t,e),new ae(n,e).initFeatures(o),t}var le=class{constructor(e){this.el=e;let t=document.createElement("style");if(t.textContent=`\n      #lh-log {\n        position: fixed;\n        background-color: #323232;\n        color: #fff;\n        min-height: 48px;\n        min-width: 288px;\n        padding: 16px 24px;\n        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);\n        border-radius: 2px;\n        margin: 12px;\n        font-size: 14px;\n        cursor: default;\n        transition: transform 0.3s, opacity 0.3s;\n        transform: translateY(100px);\n        opacity: 0;\n        bottom: 0;\n        left: 0;\n        z-index: 3;\n        display: flex;\n        flex-direction: row;\n      \
  justify-content: center;\n        align-items: center;\n      }\n      \n      #lh-log.lh-show {\n        opacity: 1;\n        transform: translateY(0);\n      }\n    `,!this.el.parentNode)throw new Error("element needs to be in the DOM");this.el.parentNode.insertBefore(t,this.el),this._id=void 0}log(e,t=!0){this._id&&clearTimeout(this._id),this.el.textContent=e,this.el.classList.add("lh-show"),t&&(this._id=setTimeout(()=>{this.el.classList.remove("lh-show")},7e3))}warn(e){this.log("Warning: "+e)}error(e){this.log(e),setTimeout(()=>{throw new Error(e)},0)}hide(){this._id&&clearTimeout(this._id),this.el.classList.remove("lh-show")}};function Lt(){let o=window.__LIGHTHOUSE_JSON__,e=Fe(o,{occupyEntireViewport:!0,getStandaloneReportHTML(){return document.documentElement.outerHTML}});document.body.append(e),document.addEventListener("lh-analytics",t=>{let n=t;"gtag"in window&&window.gtag("event",n.detail.name,n.detail.data??{})}),document.addEventListener("lh-log",t=>{let n=document.querySelector\
("div#lh-log");if(!n)return;let r=new le(n),i=t.detail;switch(i.cmd){case"log":r.log(i.msg);break;case"warn":r.warn(i.msg);break;case"error":r.error(i.msg);break;case"hide":r.hide();break}})}window.__initLighthouseReport__=Lt;})();\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2023 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license Copyright 2023 The Lighthouse Authors. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See\
 the License for the specific language governing permissions and limitations under the License.\n*/\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * Dummy text for ensuring report robustness: <\\/script> pre$`post %%LIGHTHOUSE_JSON%%\n * (this is handled by terser)\n */\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n'
    };
  }
});

// report/generator/report-generator.js
var ReportGenerator;
var init_report_generator = __esm({
  "report/generator/report-generator.js"() {
    "use strict";
    init_process_global();
    init_report_assets();
    /**
     * @license
     * Copyright 2017 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    ReportGenerator = class _ReportGenerator {
      static {
        __name(this, "ReportGenerator");
      }
      /**
       * Replaces all the specified strings in source without serial replacements.
       * @param {string} source
       * @param {!Array<{search: string, replacement: string}>} replacements
       * @return {string}
       */
      static replaceStrings(source, replacements) {
        if (replacements.length === 0) {
          return source;
        }
        const firstReplacement = replacements[0];
        const nextReplacements = replacements.slice(1);
        return source.split(firstReplacement.search).map((part) => _ReportGenerator.replaceStrings(part, nextReplacements)).join(firstReplacement.replacement);
      }
      /**
       * @param {unknown} object
       * @return {string}
       */
      static sanitizeJson(object) {
        return JSON.stringify(object).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
      }
      /**
       * Returns the standalone report HTML as a string with the report JSON and renderer JS inlined.
       * @param {LHResult} lhr
       * @return {string}
       */
      static generateReportHtml(lhr) {
        const sanitizedJson = _ReportGenerator.sanitizeJson(lhr);
        const sanitizedJavascript = reportAssets.REPORT_JAVASCRIPT.replace(/<\//g, "\\u003c/");
        return _ReportGenerator.replaceStrings(reportAssets.REPORT_TEMPLATE, [
          { search: "%%LIGHTHOUSE_JSON%%", replacement: sanitizedJson },
          { search: "%%LIGHTHOUSE_JAVASCRIPT%%", replacement: sanitizedJavascript }
        ]);
      }
      /**
       * Returns the standalone flow report HTML as a string with the report JSON and renderer JS inlined.
       * @param {FlowResult} flow
       * @return {string}
       */
      static generateFlowReportHtml(flow) {
        const sanitizedJson = _ReportGenerator.sanitizeJson(flow);
        const sanitizedJavascript = reportAssets.FLOW_REPORT_JAVASCRIPT.replace(/<\//g, "\\u003c/");
        return _ReportGenerator.replaceStrings(reportAssets.FLOW_REPORT_TEMPLATE, [
          { search: "%%LIGHTHOUSE_FLOW_JSON%%", replacement: sanitizedJson },
          { search: "%%LIGHTHOUSE_FLOW_JAVASCRIPT%%", replacement: sanitizedJavascript },
          { search: "/*%%LIGHTHOUSE_FLOW_CSS%%*/", replacement: reportAssets.FLOW_REPORT_CSS }
        ]);
      }
      /**
       * Converts the results to a CSV formatted string
       * Each row describes the result of 1 audit with
       *  - the name of the category the audit belongs to
       *  - the name of the audit
       *  - a description of the audit
       *  - the score type that is used for the audit
       *  - the score value of the audit
       *
       * @param {LHResult} lhr
       * @return {string}
       */
      static generateReportCSV(lhr) {
        const CRLF = "\r\n";
        const separator = ",";
        const escape = /* @__PURE__ */ __name((value) => `"${value.replace(/"/g, '""')}"`, "escape");
        const rowFormatter = /* @__PURE__ */ __name((row) => row.map((value) => {
          if (value === null) return "null";
          return value.toString();
        }).map(escape), "rowFormatter");
        const rows = [];
        const topLevelKeys = (
          /** @type {const} */
          ["requestedUrl", "finalDisplayedUrl", "fetchTime", "gatherMode"]
        );
        rows.push(rowFormatter(topLevelKeys));
        rows.push(rowFormatter(topLevelKeys.map((key) => lhr[key] ?? null)));
        rows.push([]);
        rows.push(["category", "score"]);
        for (const category of Object.values(lhr.categories)) {
          rows.push(rowFormatter([
            category.id,
            category.score
          ]));
        }
        rows.push([]);
        rows.push(["category", "audit", "score", "displayValue", "description"]);
        for (const category of Object.values(lhr.categories)) {
          for (const auditRef of category.auditRefs) {
            const audit = lhr.audits[auditRef.id];
            if (!audit) continue;
            rows.push(rowFormatter([
              category.id,
              auditRef.id,
              audit.score,
              audit.displayValue || "",
              audit.description
            ]));
          }
        }
        return rows.map((row) => row.join(separator)).join(CRLF);
      }
      /**
       * @param {LHResult|FlowResult} result
       * @return {result is FlowResult}
       */
      static isFlowResult(result) {
        return "steps" in result;
      }
      /**
       * Creates the results output in a format based on the `mode`.
       * @param {LHResult|FlowResult} result
       * @param {LHResult['configSettings']['output']} outputModes
       * @return {string|string[]}
       */
      static generateReport(result, outputModes) {
        const outputAsArray = Array.isArray(outputModes);
        if (typeof outputModes === "string") outputModes = [outputModes];
        const output = outputModes.map((outputMode) => {
          if (outputMode === "html") {
            if (_ReportGenerator.isFlowResult(result)) {
              return _ReportGenerator.generateFlowReportHtml(result);
            }
            return _ReportGenerator.generateReportHtml(result);
          }
          if (outputMode === "csv") {
            if (_ReportGenerator.isFlowResult(result)) {
              throw new Error("CSV output is not support for user flows");
            }
            return _ReportGenerator.generateReportCSV(result);
          }
          if (outputMode === "json") {
            return JSON.stringify(result, null, 2);
          }
          throw new Error("Invalid output mode: " + outputMode);
        });
        return outputAsArray ? output : output[0];
      }
    };
  }
});

// core/runner.js
import path6 from "path";
var Runner;
var init_runner = __esm({
  "core/runner.js"() {
    "use strict";
    init_process_global();
    init_lighthouse_logger();
    init_lodash();
    init_scoring();
    init_audit();
    init_format();
    init_stack_packs();
    init_asset_saver();
    init_sentry();
    init_report_generator();
    init_lh_error();
    init_root2();
    init_esm_utils();
    init_entity_classification();
    init_url_utils();
    /**
     * @license
     * Copyright 2016 Google LLC
     * SPDX-License-Identifier: Apache-2.0
     */
    Runner = class _Runner {
      static {
        __name(this, "Runner");
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {{resolvedConfig: LH.Config.ResolvedConfig, computedCache: Map<string, ArbitraryEqualityMap>}} options
       * @return {Promise<LH.RunnerResult|undefined>}
       */
      static async audit(artifacts, options) {
        const { resolvedConfig, computedCache } = options;
        const settings = resolvedConfig.settings;
        try {
          const runnerStatus = { msg: "Audit phase", id: "lh:runner:audit" };
          lighthouse_logger_default.time(runnerStatus, "verbose");
          const lighthouseRunWarnings = [];
          if (settings.gatherMode && !settings.auditMode) return;
          if (!resolvedConfig.audits) {
            throw new Error("No audits to evaluate.");
          }
          const auditResultsById = await _Runner._runAudits(
            settings,
            resolvedConfig.audits,
            artifacts,
            lighthouseRunWarnings,
            computedCache
          );
          const resultsStatus = { msg: "Generating results...", id: "lh:runner:generate" };
          lighthouse_logger_default.time(resultsStatus);
          if (artifacts.LighthouseRunWarnings) {
            lighthouseRunWarnings.push(...artifacts.LighthouseRunWarnings);
          }
          const axeVersion = artifacts.Accessibility?.version;
          const credits = {
            "axe-core": axeVersion
          };
          let categories = {};
          if (resolvedConfig.categories) {
            categories = ReportScoring.scoreAllCategories(resolvedConfig.categories, auditResultsById);
          }
          lighthouse_logger_default.timeEnd(resultsStatus);
          lighthouse_logger_default.timeEnd(runnerStatus);
          let fullPageScreenshot = artifacts.FullPageScreenshot;
          if (resolvedConfig.settings.disableFullPageScreenshot || fullPageScreenshot instanceof Error) {
            fullPageScreenshot = void 0;
          }
          const i18nLhr = {
            lighthouseVersion,
            requestedUrl: artifacts.URL.requestedUrl,
            mainDocumentUrl: artifacts.URL.mainDocumentUrl,
            finalDisplayedUrl: artifacts.URL.finalDisplayedUrl,
            finalUrl: artifacts.URL.mainDocumentUrl,
            fetchTime: artifacts.fetchTime,
            gatherMode: artifacts.GatherContext.gatherMode,
            runtimeError: _Runner.getArtifactRuntimeError(artifacts),
            runWarnings: lighthouseRunWarnings,
            userAgent: artifacts.HostUserAgent,
            environment: {
              networkUserAgent: artifacts.NetworkUserAgent,
              hostUserAgent: artifacts.HostUserAgent,
              benchmarkIndex: artifacts.BenchmarkIndex,
              credits
            },
            audits: auditResultsById,
            configSettings: settings,
            categories,
            categoryGroups: resolvedConfig.groups || void 0,
            stackPacks: getStackPacks(artifacts.Stacks),
            entities: await _Runner.getEntityClassification(artifacts, { computedCache }),
            fullPageScreenshot,
            timing: this._getTiming(artifacts),
            i18n: {
              rendererFormattedStrings: getRendererFormattedStrings(settings.locale),
              icuMessagePaths: {}
            }
          };
          i18nLhr.i18n.icuMessagePaths = replaceIcuMessages(i18nLhr, settings.locale);
          const lhr = (
            /** @type {LH.Result} */
            i18nLhr
          );
          if (settings.auditMode) {
            const path7 = _Runner._getDataSavePath(settings);
            saveLhr(lhr, path7);
          }
          const report = ReportGenerator.generateReport(lhr, settings.output);
          return { lhr, artifacts, report };
        } catch (err) {
          throw _Runner.createRunnerError(err, settings);
        }
      }
      /**
       * @param {LH.Artifacts} artifacts
       * @param {LH.Artifacts.ComputedContext} context
       */
      static async getEntityClassification(artifacts, context) {
        const devtoolsLog = artifacts.DevtoolsLog;
        if (!devtoolsLog) return;
        const classifiedEntities = await EntityClassification.request(
          { URL: artifacts.URL, devtoolsLog },
          context
        );
        const entities = [];
        for (const [entity, entityUrls] of classifiedEntities.urlsByEntity) {
          const uniqueOrigins = /* @__PURE__ */ new Set();
          for (const url of entityUrls) {
            const origin = url_utils_default.getOrigin(url);
            if (origin) uniqueOrigins.add(origin);
          }
          const shortEntity = {
            name: entity.name,
            homepage: entity.homepage,
            origins: [...uniqueOrigins]
          };
          if (entity === classifiedEntities.firstParty) shortEntity.isFirstParty = true;
          if (entity.isUnrecognized) shortEntity.isUnrecognized = true;
          if (entity.category) shortEntity.category = entity.category;
          entities.push(shortEntity);
        }
        return entities;
      }
      /**
       * User can run -G solo, -A solo, or -GA together
       * -G and -A will run partial lighthouse pipelines,
       * and -GA will run everything plus save artifacts and lhr to disk.
       *
       * @param {(runnerData: {resolvedConfig: LH.Config.ResolvedConfig}) => Promise<LH.Artifacts>} gatherFn
       * @param {{resolvedConfig: LH.Config.ResolvedConfig, computedCache: Map<string, ArbitraryEqualityMap>}} options
       * @return {Promise<LH.Artifacts>}
       */
      static async gather(gatherFn, options) {
        const settings = options.resolvedConfig.settings;
        try {
          const sentryContext = Sentry.getContext();
          Sentry.captureBreadcrumb({
            message: "Run started",
            category: "lifecycle",
            data: sentryContext
          });
          if (settings.auditMode && !settings.gatherMode) {
            const path7 = this._getDataSavePath(settings);
            return loadArtifacts(path7);
          }
          const runnerStatus = { msg: "Gather phase", id: "lh:runner:gather" };
          lighthouse_logger_default.time(runnerStatus, "verbose");
          const artifacts = await gatherFn({ resolvedConfig: options.resolvedConfig });
          lighthouse_logger_default.timeEnd(runnerStatus);
          artifacts.Timing = lighthouse_logger_default.takeTimeEntries();
          if (settings.gatherMode) {
            const path7 = this._getDataSavePath(settings);
            await saveArtifacts(artifacts, path7);
          }
          return artifacts;
        } catch (err) {
          throw _Runner.createRunnerError(err, settings);
        }
      }
      /**
       * @param {any} err
       * @param {LH.Config.Settings} settings
       */
      static createRunnerError(err, settings) {
        if (err.friendlyMessage) {
          err.friendlyMessage = getFormatted(err.friendlyMessage, settings.locale);
        }
        Sentry.captureException(err, { level: "fatal" });
        return err;
      }
      /**
       * This handles both the auditMode case where gatherer entries need to be merged in and
       * the gather/audit case where timingEntriesFromRunner contains all entries from this run,
       * including those also in timingEntriesFromArtifacts.
       * @param {LH.Artifacts} artifacts
       * @return {LH.Result.Timing}
       */
      static _getTiming(artifacts) {
        const timingEntriesFromArtifacts = artifacts.Timing || [];
        const timingEntriesFromRunner = lighthouse_logger_default.takeTimeEntries();
        const timingEntriesKeyValues = [
          ...timingEntriesFromArtifacts,
          ...timingEntriesFromRunner
        ].map((entry) => (
          /** @type {[string, PerformanceEntry]} */
          [
            // As entries can share a name and start time, dedupe based on the name, startTime and duration
            `${entry.startTime}-${entry.name}-${entry.duration}`,
            entry
          ]
        ));
        const timingEntries = Array.from(new Map(timingEntriesKeyValues).values()).map((entry) => {
          return {
            // Don't spread entry because browser PerformanceEntries can't be spread.
            // https://github.com/GoogleChrome/lighthouse/issues/8638
            startTime: parseFloat(entry.startTime.toFixed(2)),
            name: entry.name,
            duration: parseFloat(entry.duration.toFixed(2)),
            entryType: entry.entryType
          };
        }).sort((a, b) => a.startTime - b.startTime);
        const gatherEntry = timingEntries.find((e) => e.name === "lh:runner:gather");
        const auditEntry = timingEntries.find((e) => e.name === "lh:runner:audit");
        const gatherTiming = gatherEntry?.duration || 0;
        const auditTiming = auditEntry?.duration || 0;
        return { entries: timingEntries, total: gatherTiming + auditTiming };
      }
      /**
       * Run all audits with specified settings and artifacts.
       * @param {LH.Config.Settings} settings
       * @param {Array<LH.Config.AuditDefn>} audits
       * @param {LH.Artifacts} artifacts
       * @param {Array<string | LH.IcuMessage>} runWarnings
       * @param {Map<string, ArbitraryEqualityMap>} computedCache
       * @return {Promise<Record<string, LH.RawIcu<LH.Audit.Result>>>}
       */
      static async _runAudits(settings, audits, artifacts, runWarnings, computedCache) {
        const status = { msg: "Analyzing and running audits...", id: "lh:runner:auditing" };
        lighthouse_logger_default.time(status);
        if (artifacts.settings) {
          const overrides = {
            locale: void 0,
            gatherMode: void 0,
            auditMode: void 0,
            output: void 0,
            channel: void 0
          };
          const normalizedGatherSettings = Object.assign({}, artifacts.settings, overrides);
          const normalizedAuditSettings = Object.assign({}, settings, overrides);
          const keys2 = /* @__PURE__ */ new Set([
            ...Object.keys(normalizedGatherSettings),
            ...Object.keys(normalizedAuditSettings)
          ]);
          for (const k of keys2) {
            if (!isEqual_default(normalizedGatherSettings[k], normalizedAuditSettings[k])) {
              throw new Error(
                `Cannot change settings between gathering and auditing…
Difference found at: \`${k}\`: ${JSON.stringify(normalizedGatherSettings[k], null, 2)}
vs: ${JSON.stringify(normalizedAuditSettings[k], null, 2)}`
              );
            }
          }
          if (!isEqual_default(normalizedGatherSettings, normalizedAuditSettings)) {
            throw new Error("Cannot change settings between gathering and auditing");
          }
        }
        const sharedAuditContext = {
          settings,
          computedCache
        };
        const auditResultsById = {};
        for (const auditDefn of audits) {
          const auditId = auditDefn.implementation.meta.id;
          const auditResult = await _Runner._runAudit(
            auditDefn,
            artifacts,
            sharedAuditContext,
            runWarnings
          );
          auditResultsById[auditId] = auditResult;
        }
        lighthouse_logger_default.timeEnd(status);
        return auditResultsById;
      }
      /**
       * Checks that the audit's required artifacts exist and runs the audit if so.
       * Otherwise returns error audit result.
       * @param {LH.Config.AuditDefn} auditDefn
       * @param {LH.Artifacts} artifacts
       * @param {Pick<LH.Audit.Context, 'settings'|'computedCache'>} sharedAuditContext
       * @param {Array<string | LH.IcuMessage>} runWarnings
       * @return {Promise<LH.RawIcu<LH.Audit.Result>>}
       * @private
       */
      static async _runAudit(auditDefn, artifacts, sharedAuditContext, runWarnings) {
        const audit = auditDefn.implementation;
        const status = {
          msg: `Auditing: ${getFormatted(audit.meta.title, "en-US")}`,
          id: `lh:audit:${audit.meta.id}`
        };
        lighthouse_logger_default.time(status);
        let auditResult;
        try {
          if (artifacts.PageLoadError) throw artifacts.PageLoadError;
          for (const artifactName of audit.meta.requiredArtifacts) {
            const noArtifact = artifacts[artifactName] === void 0;
            if (noArtifact) {
              lighthouse_logger_default.warn(
                "Runner",
                `${artifactName} gatherer, required by audit ${audit.meta.id}, did not run.`
              );
              throw new LighthouseError(
                LighthouseError.errors.MISSING_REQUIRED_ARTIFACT,
                { artifactName }
              );
            }
            if (artifacts[artifactName] instanceof Error) {
              const artifactError = artifacts[artifactName];
              lighthouse_logger_default.warn("Runner", `${artifactName} gatherer, required by audit ${audit.meta.id}, encountered an error: ${artifactError.message}`);
              const error = new LighthouseError(
                LighthouseError.errors.ERRORED_REQUIRED_ARTIFACT,
                { artifactName, errorMessage: artifactError.message },
                { cause: artifactError }
              );
              error.expected = true;
              throw error;
            }
          }
          const auditOptions = Object.assign({}, audit.defaultOptions, auditDefn.options);
          const auditContext = {
            options: auditOptions,
            ...sharedAuditContext
          };
          const requestedArtifacts = audit.meta.requiredArtifacts.concat(audit.meta.__internalOptionalArtifacts || []);
          const narrowedArtifacts = requestedArtifacts.reduce(
            (narrowedArtifacts2, artifactName) => {
              const requestedArtifact = artifacts[artifactName];
              narrowedArtifacts2[artifactName] = requestedArtifact;
              return narrowedArtifacts2;
            },
            /** @type {LH.Artifacts} */
            {}
          );
          const product = await audit.audit(narrowedArtifacts, auditContext);
          runWarnings.push(...product.runWarnings || []);
          auditResult = Audit.generateAuditResult(audit, product);
        } catch (err) {
          if (err.code !== "MISSING_REQUIRED_ARTIFACT" && err.code !== "ERRORED_REQUIRED_ARTIFACT") {
            lighthouse_logger_default.warn(audit.meta.id, `Caught exception: ${err.message}`);
          }
          Sentry.captureException(err, { tags: { audit: audit.meta.id }, level: "error" });
          const errorMessage = err.friendlyMessage ? err.friendlyMessage : err.message;
          const stack = err.cause?.stack ?? err.stack;
          auditResult = Audit.generateErrorAuditResult(audit, errorMessage, stack);
        }
        lighthouse_logger_default.timeEnd(status);
        return auditResult;
      }
      /**
       * Searches a pass's artifacts for any `lhrRuntimeError` error artifacts.
       * Returns the first one found or `null` if none found.
       * @param {LH.Artifacts} artifacts
       * @return {LH.RawIcu<LH.Result['runtimeError']>|undefined}
       */
      static getArtifactRuntimeError(artifacts) {
        const possibleErrorArtifacts = [
          ["PageLoadError", artifacts.PageLoadError],
          // Preferentially use `PageLoadError`, if it exists.
          ...Object.entries(artifacts)
          // Otherwise check amongst all artifacts.
        ];
        for (const [artifactKey, possibleErrorArtifact] of possibleErrorArtifacts) {
          const isError = possibleErrorArtifact instanceof LighthouseError;
          if (isError && possibleErrorArtifact.lhrRuntimeError) {
            const errorMessage = possibleErrorArtifact.friendlyMessage || possibleErrorArtifact.message;
            const stack = (
              /** @type {any} */
              possibleErrorArtifact.cause?.stack ?? possibleErrorArtifact.stack
            );
            return {
              code: possibleErrorArtifact.code,
              message: errorMessage,
              errorStack: stack,
              artifactKey
            };
          }
        }
        return void 0;
      }
      /**
       * Returns list of audit names for external querying.
       * @return {Array<string>}
       */
      static getAuditList() {
        const ignoredFiles = [
          "audit.js",
          "violation-audit.js",
          "accessibility/axe-audit.js",
          "multi-check-audit.js",
          "byte-efficiency/byte-efficiency-audit.js",
          "manual/manual-audit.js",
          "insights/insight-audit.js"
        ];
        const fileList = [
          ...["accessibility", "agentic", "audit.js", "autocomplete.js", "baseline.js", "bf-cache.js", "bootup-time.js", "byte-efficiency", "clickjacking-mitigation.js", "csp-xss.js", "deprecations.js", "diagnostics.js", "dobetterweb", "errors-in-console.js", "final-screenshot.js", "has-hsts.js", "image-aspect-ratio.js", "image-size-responsive.js", "insights", "is-on-https.js", "layout-shifts.js", "long-tasks.js", "main-thread-tasks.js", "mainthread-work-breakdown.js", "manual", "metrics", "metrics.js", "network-requests.js", "network-rtt.js", "network-server-latency.js", "non-composited-animations.js", "oopif-iframe-test-audit.js", "origin-isolation.js", "predictive-perf.js", "redirects-http.js", "redirects.js", "resource-summary.js", "screenshot-thumbnails.js", "script-treemap-data.js", "seo", "server-response-time.js", "third-party-cookies.js", "trusted-types-xss.js", "unsized-images.js", "user-timings.js", "valid-source-maps.js", "violation-audit.js", "webmcp-form-coverage.js", "we\
bmcp-registered-tools.js", "webmcp-schema-validity.js"],
          ...["charset.js", "doctype.js", "geolocation-on-start.js", "inspector-issues.js", "js-libraries.js", "notification-on-start.js", "paste-preventing-inputs.js"].map((f) => `dobetterweb/${f}`),
          ...["cumulative-layout-shift.js", "first-contentful-paint.js", "interaction-to-next-paint.js", "interactive.js", "largest-contentful-paint.js", "max-potential-fid.js", "speed-index.js", "total-blocking-time.js"].map((f) => `metrics/${f}`),
          ...["canonical.js", "crawlable-anchors.js", "hreflang.js", "http-status-code.js", "is-crawlable.js", "link-text.js", "manual", "meta-description.js", "robots-txt.js"].map((f) => `seo/${f}`),
          ...["structured-data.js"].map((f) => `seo/manual/${f}`),
          ...["accesskeys.js", "aria-allowed-attr.js", "aria-allowed-role.js", "aria-command-name.js", "aria-conditional-attr.js", "aria-deprecated-role.js", "aria-dialog-name.js", "aria-hidden-body.js", "aria-hidden-focus.js", "aria-input-field-name.js", "aria-meter-name.js", "aria-progressbar-name.js", "aria-prohibited-attr.js", "aria-required-attr.js", "aria-required-children.js", "aria-required-parent.js", "aria-roles.js", "aria-text.js", "aria-toggle-field-name.js", "aria-tooltip-name.js", "aria-treeitem-name.js", "aria-valid-attr-value.js", "aria-valid-attr.js", "autocomplete-valid.js", "axe-audit.js", "button-name.js", "bypass.js", "color-contrast.js", "definition-list.js", "dlitem.js", "document-title.js", "duplicate-id-aria.js", "empty-heading.js", "form-field-multiple-labels.js", "frame-title.js", "heading-order.js", "html-has-lang.js", "html-lang-valid.js", "html-xml-lang-mismatch.js", "identical-links-same-purpose.js", "image-alt.js", "image-redundant-alt.js", "input-button\
-name.js", "input-image-alt.js", "label-content-name-mismatch.js", "label.js", "landmark-one-main.js", "link-in-text-block.js", "link-name.js", "list.js", "listitem.js", "manual", "meta-refresh.js", "meta-viewport.js", "object-alt.js", "presentation-role-conflict.js", "select-name.js", "skip-link.js", "svg-img-alt.js", "tabindex.js", "table-duplicate-name.js", "table-fake-caption.js", "target-size.js", "td-has-header.js", "td-headers-attr.js", "th-has-data-cells.js", "valid-lang.js", "video-caption.js"].map((f) => `accessibility/${f}`),
          ...["custom-controls-labels.js", "custom-controls-roles.js", "focus-traps.js", "focusable-controls.js", "interactive-element-affordance.js", "logical-tab-order.js", "managed-focus.js", "offscreen-content-hidden.js", "use-landmarks.js", "visual-order-follows-dom.js"].map((f) => `accessibility/manual/${f}`),
          ...["byte-efficiency-audit.js", "total-byte-weight.js", "unminified-css.js", "unminified-javascript.js", "unused-css-rules.js", "unused-javascript.js"].map((f) => `byte-efficiency/${f}`),
          ...["manual-audit.js"].map((f) => `manual/${f}`),
          ...["README.md", "cache-insight.js", "cls-culprits-insight.js", "document-latency-insight.js", "dom-size-insight.js", "duplicated-javascript-insight.js", "font-display-insight.js", "forced-reflow-insight.js", "image-delivery-insight.js", "inp-breakdown-insight.js", "insight-audit.js", "lcp-breakdown-insight.js", "lcp-discovery-insight.js", "legacy-javascript-insight.js", "modern-http-insight.js", "network-dependency-tree-insight.js", "render-blocking-insight.js", "slow-css-selector-insight.js", "third-parties-insight.js", "viewport-insight.js"].map((f) => `insights/${f}`),
          ...["agent-accessibility-tree.js", "llms-txt.js"].map((f) => `agentic/${f}`)
        ];
        return fileList.filter((f) => {
          return /\.js$/.test(f) && !ignoredFiles.includes(f);
        }).sort();
      }
      /**
       * Returns list of gatherer names for external querying.
       * @return {Array<string>}
       */
      static getGathererList() {
        const fileList = [
          ...["accessibility.js", "agentic", "anchor-elements.js", "bf-cache-failures.js", "console-messages.js", "css-usage.js", "devtools-log.js", "dobetterweb", "full-page-screenshot.js", "iframe-elements.js", "image-elements.js", "inputs.js", "inspector-issues.js", "js-usage.js", "link-elements.js", "main-document-content.js", "meta-elements.js", "network-user-agent.js", "scripts.js", "seo", "source-maps.js", "stacks.js", "stylesheets.js", "trace-elements.js", "trace.js", "viewport-dimensions.js", "webmcp-schema.js", "webmcp.js"],
          ...["robots-txt.js"].map((f) => `seo/${f}`),
          ...["doctype.js"].map((f) => `dobetterweb/${f}`),
          ...["llms-txt.js"].map((f) => `agentic/${f}`)
        ];
        return fileList.filter((f) => /\.js$/.test(f) && f !== "gatherer.js").sort();
      }
      /**
       * Get path to use for -G and -A modes. Defaults to $CWD/latest-run
       * @param {LH.Config.Settings} settings
       * @return {string}
       */
      static _getDataSavePath(settings) {
        const { auditMode, gatherMode } = settings;
        if (typeof auditMode === "string") return path6.resolve(process.cwd(), auditMode);
        if (typeof gatherMode === "string") return path6.resolve(process.cwd(), gatherMode);
        return path6.join(process.cwd(), "latest-run");
      }
    };
  }
});

// clients/devtools-mcp/devtools-mcp-entry.js
init_process_global();

// core/index.js
init_process_global();
init_trace();
init_runner();

// core/user-flow.js
init_process_global();
init_report_generator();

// core/gather/snapshot-runner.js
init_process_global();
init_lighthouse_logger();

// core/gather/driver.js
init_process_global();
init_lighthouse_logger();

// core/gather/driver/execution-context.js
init_process_global();
init_lh();
init_page_functions();
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var ExecutionContext = class _ExecutionContext {
  static {
    __name(this, "ExecutionContext");
  }
  /** @param {LH.Gatherer.ProtocolSession} session */
  constructor(session) {
    this._session = session;
    this._executionContextId = void 0;
    this._executionContextIdentifiersCreated = 0;
    session.on("Page.frameNavigated", () => this.clearContextId());
    session.on("Runtime.executionContextDestroyed", (event) => {
      if (event.executionContextId === this._executionContextId) {
        this.clearContextId();
      }
    });
  }
  /**
   * Returns the isolated context ID currently in use.
   */
  getContextId() {
    return this._executionContextId;
  }
  /**
   * Clears the remembered context ID. Use this method when we have knowledge that the runtime context
   * we were using has been destroyed by the browser and is no longer available.
   */
  clearContextId() {
    this._executionContextId = void 0;
  }
  /**
   * Returns the cached isolated execution context ID or creates a new execution context for the main
   * frame. The cached execution context is cleared on every gotoURL invocation, so a new one will
   * always be created on the first call on a new page.
   * @return {Promise<number>}
   */
  async _getOrCreateIsolatedContextId() {
    if (typeof this._executionContextId === "number") return this._executionContextId;
    await this._session.sendCommand("Page.enable");
    await this._session.sendCommand("Runtime.enable");
    const frameTreeResponse = await this._session.sendCommand("Page.getFrameTree");
    const mainFrameId2 = frameTreeResponse.frameTree.frame.id;
    const isolatedWorldResponse = await this._session.sendCommand("Page.createIsolatedWorld", {
      frameId: mainFrameId2,
      worldName: "lighthouse_isolated_context"
    });
    this._executionContextId = isolatedWorldResponse.executionContextId;
    this._executionContextIdentifiersCreated++;
    return isolatedWorldResponse.executionContextId;
  }
  /**
   * Evaluate an expression in the given execution context; an undefined contextId implies the main
   * page without isolation.
   * @param {string} expression
   * @param {number|undefined} contextId
   * @param {number} timeout
   * @return {Promise<*>}
   */
  async _evaluateInContext(expression, contextId, timeout) {
    const uniqueExecutionContextIdentifier = contextId === void 0 ? void 0 : this._executionContextIdentifiersCreated;
    const evaluationParams = {
      // We need to explicitly wrap the raw expression for several purposes:
      // 1. Ensure that the expression will be a native Promise and not a polyfill/non-Promise.
      // 2. Ensure that errors in the expression are captured by the Promise.
      // 3. Ensure that errors captured in the Promise are converted into plain-old JS Objects
      //    so that they can be serialized properly b/c JSON.stringify(new Error('foo')) === '{}'
      //
      // `__lighthouseExecutionContextUniqueIdentifier` is only used by the FullPageScreenshot gatherer.
      // See `getNodeDetails` in page-functions.
      expression: `(function wrapInNativePromise() {
        ${_ExecutionContext._cachedNativesPreamble};
        globalThis.__lighthouseExecutionContextUniqueIdentifier =
          ${uniqueExecutionContextIdentifier};
        ${pageFunctions.esbuildFunctionWrapperString}
        return new Promise(function (resolve) {
          return Promise.resolve()
            .then(_ => ${expression})
            .catch(${pageFunctions.wrapRuntimeEvalErrorInBrowser})
            .then(resolve);
        });
      }())
      //# sourceURL=_lighthouse-eval.js`,
      includeCommandLineAPI: true,
      awaitPromise: true,
      returnByValue: true,
      timeout,
      contextId
    };
    this._session.setNextProtocolTimeout(timeout);
    const response = await this._session.sendCommand("Runtime.evaluate", evaluationParams);
    const ex = response.exceptionDetails;
    if (ex) {
      const elidedExpression = expression.replace(/\s+/g, " ").substring(0, 100);
      const messageLines = [
        "Runtime.evaluate exception",
        `Expression: ${elidedExpression}
---- (elided)`,
        !ex.stackTrace ? `Parse error at: ${ex.lineNumber + 1}:${ex.columnNumber + 1}` : null,
        ex.exception?.description || ex.text
      ].filter(Boolean);
      const evaluationError = new Error(messageLines.join("\n"));
      return Promise.reject(evaluationError);
    }
    if (response.result === void 0) {
      return Promise.reject(
        new Error('Runtime.evaluate response did not contain a "result" object')
      );
    }
    const value = response.result.value;
    if (value?.__failedInBrowser) {
      return Promise.reject(Object.assign(new Error(), value));
    } else {
      return value;
    }
  }
  /**
   * Evaluate an expression in the context of the current page. If useIsolation is true, the expression
   * will be evaluated in a content script that has access to the page's DOM but whose JavaScript state
   * is completely separate.
   * Returns a promise that resolves on the expression's value.
   *
   * @deprecated Use `evaluate` instead! It has a better API, and unlike `evaluateAsync` doesn't sometimes
   * execute invalid code.
   * @param {string} expression
   * @param {{useIsolation?: boolean}=} options
   * @return {Promise<*>}
   */
  async evaluateAsync(expression, options = {}) {
    const timeout = this._session.hasNextProtocolTimeout() ? this._session.getNextProtocolTimeout() : 6e4;
    const contextId = options.useIsolation ? await this._getOrCreateIsolatedContextId() : void 0;
    try {
      return await this._evaluateInContext(expression, contextId, timeout);
    } catch (err) {
      if (contextId && err.message.includes("Cannot find context")) {
        this.clearContextId();
        const freshContextId = await this._getOrCreateIsolatedContextId();
        return this._evaluateInContext(expression, freshContextId, timeout);
      }
      throw err;
    }
  }
  /**
   * Evaluate a function in the context of the current page.
   * If `useIsolation` is true, the function will be evaluated in a content script that has
   * access to the page's DOM but whose JavaScript state is completely separate.
   * Returns a promise that resolves on a value of `mainFn`'s return type.
   * @template {unknown[]} T, R
   * @param {((...args: T) => R)} mainFn The main function to call.
   * @param {{args: T, useIsolation?: boolean, deps?: Array<Function|string>}} options `args` should
   *   match the args of `mainFn`, and can be any serializable value. `deps` are functions that must be
   *   defined for `mainFn` to work.
   * @return {Promise<Awaited<R>>}
   */
  evaluate(mainFn, options) {
    const argsSerialized = _ExecutionContext.serializeArguments(options.args);
    const depsSerialized = _ExecutionContext.serializeDeps(options.deps);
    const expression = `(() => {
      ${depsSerialized}
      return (${mainFn})(${argsSerialized});
    })()`;
    return this.evaluateAsync(expression, options);
  }
  /**
   * Evaluate a function on every new frame from now on.
   * @template {unknown[]} T
   * @param {((...args: T) => void)} mainFn The main function to call.
   * @param {{args: T, deps?: Array<Function|string>}} options `args` should
   *   match the args of `mainFn`, and can be any serializable value. `deps` are functions that must be
   *   defined for `mainFn` to work.
   * @return {Promise<void>}
   */
  async evaluateOnNewDocument(mainFn, options) {
    const argsSerialized = _ExecutionContext.serializeArguments(options.args);
    const depsSerialized = _ExecutionContext.serializeDeps(options.deps);
    const expression = `(() => {
      ${_ExecutionContext._cachedNativesPreamble};
      ${pageFunctions.esbuildFunctionWrapperString}
      ${depsSerialized};
      (${mainFn})(${argsSerialized});
    })()
    //# sourceURL=_lighthouse-eval.js`;
    await this._session.sendCommand("Page.addScriptToEvaluateOnNewDocument", { source: expression });
  }
  /**
   * Call a function on the given object.
   * Returns a promise that resolves on a value of `mainFn`'s return type.
   * @template {unknown[]} T, R
   * @param {((thisArg: any, ...args: T) => R)} mainFn The main function to call.
   * @param {{args: T, objectId: string, deps?: Array<Function|string>}} options `args` should
   *   match the args of `mainFn`, and can be any serializable value. `deps` are functions that must be
   *   defined for `mainFn` to work.
   * @return {Promise<Awaited<R>>}
   */
  evaluateOnObject(mainFn, options) {
    const argsSerialized = _ExecutionContext.serializeArguments(options.args);
    const depsSerialized = _ExecutionContext.serializeDeps(options.deps);
    const argsString = argsSerialized ? `this, ${argsSerialized}` : "this";
    const functionDeclaration = `function() {
      ${depsSerialized}
      return (${mainFn})(${argsString});
    }`;
    return this._callFunctionOn(functionDeclaration, options);
  }
  /**
   * @param {string} functionDeclaration
   * @param {{objectId: string}} options
   * @return {Promise<*>}
   */
  async _callFunctionOn(functionDeclaration, options) {
    const timeout = this._session.hasNextProtocolTimeout() ? this._session.getNextProtocolTimeout() : 6e4;
    const evaluationParams = {
      functionDeclaration: `function wrapInNativePromise() {
        ${_ExecutionContext._cachedNativesPreamble};
        ${pageFunctions.esbuildFunctionWrapperString}
        const self = this;
        const args = arguments;
        return new Promise(function (resolve) {
          return Promise.resolve()
            .then(_ => (${functionDeclaration}).apply(self, args))
            .catch(${pageFunctions.wrapRuntimeEvalErrorInBrowser})
            .then(resolve);
        });
      }
      //# sourceURL=_lighthouse-eval.js
      `,
      objectId: options.objectId,
      returnByValue: true,
      awaitPromise: true,
      timeout
    };
    this._session.setNextProtocolTimeout(timeout);
    const response = await this._session.sendCommand("Runtime.callFunctionOn", evaluationParams);
    const ex = response.exceptionDetails;
    if (ex) {
      const elidedExpression = functionDeclaration.replace(/\s+/g, " ").substring(0, 100);
      const messageLines = [
        "Runtime.callFunctionOn exception",
        `Expression: ${elidedExpression}
---- (elided)`,
        !ex.stackTrace ? `Parse error at: ${ex.lineNumber + 1}:${ex.columnNumber + 1}` : null,
        ex.exception?.description || ex.text
      ].filter(Boolean);
      const evaluationError = new Error(messageLines.join("\n"));
      return Promise.reject(evaluationError);
    }
    if (response.result === void 0) {
      return Promise.reject(
        new Error('Runtime.callFunctionOn response did not contain a "result" object')
      );
    }
    const value = response.result.value;
    if (value?.__failedInBrowser) {
      return Promise.reject(Object.assign(new Error(), value));
    } else {
      return value;
    }
  }
  /**
   * Cache native functions/objects inside window so we are sure polyfills do not overwrite the
   * native implementations when the page loads.
   * @return {Promise<void>}
   */
  async cacheNativesOnNewDocument() {
    await this.evaluateOnNewDocument(() => {
      window.__nativePromise = window.Promise;
      window.__nativeURL = window.URL;
      window.__nativePerformance = window.performance;
      window.__nativeFetch = window.fetch;
      window.__ElementMatches = window.Element.prototype.matches;
      window.__HTMLElementBoundingClientRect = window.HTMLElement.prototype.getBoundingClientRect;
    }, { args: [] });
  }
  /**
   * Prefix every script evaluation with a shadowing of common globals that tend to be ponyfilled
   * incorrectly by many sites. This allows functions to still refer to `Promise` instead of
   * Lighthouse-specific backups like `__nativePromise` (injected by `cacheNativesOnNewDocument` above).
   */
  static _cachedNativesPreamble = [
    "const Promise = globalThis.__nativePromise || globalThis.Promise",
    "const URL = globalThis.__nativeURL || globalThis.URL",
    "const performance = globalThis.__nativePerformance || globalThis.performance",
    "const fetch = globalThis.__nativeFetch || globalThis.fetch"
  ].join(";\n");
  /**
   * Serializes an array of arguments for use in an `eval` string across the protocol.
   * @param {unknown[]} args
   * @return {string}
   */
  static serializeArguments(args) {
    return args.map((arg) => arg === void 0 ? "undefined" : JSON.stringify(arg)).join(",");
  }
  /**
   * Serializes an array of functions or strings.
   *
   * Also makes sure that an esbuild-bundled version of Lighthouse will
   * continue to create working code to be executed within the browser.
   * @param {Array<Function|string>=} deps
   * @return {string}
   */
  static serializeDeps(deps17) {
    if (!deps17) {
      return "";
    }
    return deps17.map((dep) => {
      if (typeof dep === "function") {
        const output = dep.toString();
        const runtimeName = pageFunctions.getRuntimeFunctionName(dep);
        if (runtimeName !== dep.name) {
          return `${output}; const ${dep.name} = ${runtimeName};`;
        } else {
          return output;
        }
      } else {
        return dep;
      }
    }).join("\n");
  }
};

// core/gather/driver/target-manager.js
init_process_global();
init_lighthouse_logger();
import EventEmitter4 from "events";

// core/gather/session.js
init_process_global();
init_lighthouse_logger();
init_lh_error();
import EventEmitter3 from "events";
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var DEFAULT_PROTOCOL_TIMEOUT = 3e4;
var PPTR_BUFFER = 50;
var MAX_TIMEOUT = 2147483647 - PPTR_BUFFER;
var CrdpEventEmitter = (
  /** @type {CrdpEventMessageEmitter} */
  EventEmitter3
);
var ProtocolSession = class extends CrdpEventEmitter {
  static {
    __name(this, "ProtocolSession");
  }
  /**
   * @param {LH.Puppeteer.CDPSession} cdpSession
   */
  constructor(cdpSession) {
    super();
    this._cdpSession = cdpSession;
    this._targetInfo = void 0;
    this._nextProtocolTimeout = void 0;
    this._handleProtocolEvent = this._handleProtocolEvent.bind(this);
    this._cdpSession.on("*", this._handleProtocolEvent);
    let rej = /* @__PURE__ */ __name((_) => {
    }, "rej");
    this._targetCrashedPromise = /** @type {Promise<never>} */
    new Promise((_, theRej) => rej = theRej);
    this.on("Inspector.targetCrashed", async () => {
      lighthouse_logger_default.error("TargetManager", "Inspector.targetCrashed");
      void this.dispose();
      rej(new LighthouseError(LighthouseError.errors.TARGET_CRASHED));
    });
  }
  id() {
    return this._cdpSession.id();
  }
  /**
   * Re-emit protocol events from the underlying CDPSession.
   * @template {keyof LH.CrdpEvents} E
   * @param {E} method
   * @param {LH.CrdpEvents[E]} params
   */
  _handleProtocolEvent(method, ...params) {
    this.emit(method, ...params);
  }
  /** @param {LH.Crdp.Target.TargetInfo} targetInfo */
  setTargetInfo(targetInfo) {
    this._targetInfo = targetInfo;
  }
  /**
   * @return {boolean}
   */
  hasNextProtocolTimeout() {
    return this._nextProtocolTimeout !== void 0;
  }
  /**
   * @return {number}
   */
  getNextProtocolTimeout() {
    return this._nextProtocolTimeout || DEFAULT_PROTOCOL_TIMEOUT;
  }
  /**
   * @param {number} ms
   */
  setNextProtocolTimeout(ms) {
    if (ms > MAX_TIMEOUT) ms = MAX_TIMEOUT;
    this._nextProtocolTimeout = ms;
  }
  /**
   * @template {keyof LH.CrdpCommands} C
   * @param {C} method
   * @param {LH.CrdpCommands[C]['paramsType']} params
   * @return {Promise<LH.CrdpCommands[C]['returnType']>}
   */
  sendCommand(method, ...params) {
    const timeoutMs = this.getNextProtocolTimeout();
    this._nextProtocolTimeout = void 0;
    let timeout;
    const timeoutPromise = new Promise((resolve, reject) => {
      timeout = setTimeout(reject, timeoutMs, new LighthouseError(LighthouseError.errors.PROTOCOL_TIMEOUT, {
        protocolMethod: method
      }));
    });
    const resultPromise = this._cdpSession.send(method, ...params, {
      // Add 50ms to the Puppeteer timeout to ensure the Lighthouse timeout finishes first.
      timeout: timeoutMs + PPTR_BUFFER
    }).catch((error) => {
      lighthouse_logger_default.formatProtocol("method <= browser ERR", { method }, "error");
      throw LighthouseError.fromProtocolMessage(method, error);
    });
    const resultWithTimeoutPromise = Promise.race([resultPromise, timeoutPromise, this._targetCrashedPromise]);
    return resultWithTimeoutPromise.finally(() => {
      if (timeout) clearTimeout(timeout);
    });
  }
  /**
   * Send and if there's an error response, do not reject.
   * @template {keyof LH.CrdpCommands} C
   * @param {C} method
   * @param {LH.CrdpCommands[C]['paramsType']} params
   * @return {Promise<void>}
   */
  sendCommandAndIgnore(method, ...params) {
    return this.sendCommand(method, ...params).catch((e) => lighthouse_logger_default.verbose("session", method, e.message)).then((_) => void 0);
  }
  /**
   * Disposes of a session so that it can no longer talk to Chrome.
   * @return {Promise<void>}
   */
  async dispose() {
    this._cdpSession.off("*", this._handleProtocolEvent);
    await this._cdpSession.detach().catch((e) => lighthouse_logger_default.verbose("session", "detach failed", e.message));
  }
  onCrashPromise() {
    return this._targetCrashedPromise;
  }
};

// core/gather/driver/target-manager.js
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var ProtocolEventEmitter = (
  /** @type {ProtocolEventMessageEmitter} */
  EventEmitter4
);
var TargetManager = class extends ProtocolEventEmitter {
  static {
    __name(this, "TargetManager");
  }
  /** @param {LH.Puppeteer.CDPSession} cdpSession */
  constructor(cdpSession) {
    super();
    this._enabled = false;
    this._rootCdpSession = cdpSession;
    this._mainFrameId = "";
    this._targetIdToTargets = /* @__PURE__ */ new Map();
    this._executionContextIdToDescriptions = /* @__PURE__ */ new Map();
    this._onSessionAttached = this._onSessionAttached.bind(this);
    this._onFrameNavigated = this._onFrameNavigated.bind(this);
    this._onExecutionContextCreated = this._onExecutionContextCreated.bind(this);
    this._onExecutionContextDestroyed = this._onExecutionContextDestroyed.bind(this);
    this._onExecutionContextsCleared = this._onExecutionContextsCleared.bind(this);
  }
  /**
   * @param {LH.Crdp.Page.FrameNavigatedEvent} frameNavigatedEvent
   */
  async _onFrameNavigated(frameNavigatedEvent) {
    if (frameNavigatedEvent.frame.parentId) return;
    if (!this._enabled) return;
    try {
      await this._rootCdpSession.send("Target.setAutoAttach", {
        autoAttach: true,
        flatten: true,
        waitForDebuggerOnStart: true
      });
    } catch (err) {
      if (this._enabled) throw err;
    }
  }
  /**
   * @param {string} sessionId
   * @return {LH.Gatherer.ProtocolSession}
   */
  _findSession(sessionId) {
    for (const { session, cdpSession } of this._targetIdToTargets.values()) {
      if (cdpSession.id() === sessionId) return session;
    }
    throw new Error(`session ${sessionId} not found`);
  }
  /**
   * @param {string} targetType
   * @return {targetType is LH.Protocol.TargetType}
   */
  _isAcceptedTargetType(targetType) {
    return targetType === "page" || targetType === "iframe" || targetType === "worker";
  }
  /**
   * Returns the root session.
   * @return {LH.Gatherer.ProtocolSession}
   */
  rootSession() {
    const rootSessionId = this._rootCdpSession.id();
    return this._findSession(rootSessionId);
  }
  mainFrameExecutionContexts() {
    return [...this._executionContextIdToDescriptions.values()].filter((executionContext) => {
      return executionContext.auxData.frameId === this._mainFrameId;
    });
  }
  /**
   * @param {LH.Puppeteer.CDPSession} cdpSession
   */
  async _onSessionAttached(cdpSession) {
    const newSession = new ProtocolSession(cdpSession);
    let targetType;
    try {
      const { targetInfo } = await newSession.sendCommand("Target.getTargetInfo");
      targetType = targetInfo.type;
      if (!this._isAcceptedTargetType(targetType)) return;
      const targetId = targetInfo.targetId;
      if (this._targetIdToTargets.has(targetId)) return;
      newSession.setTargetInfo(targetInfo);
      const targetName = targetInfo.url || targetInfo.targetId;
      lighthouse_logger_default.verbose("target-manager", `target ${targetName} attached`);
      const trueProtocolListener = this._getProtocolEventListener(targetType, newSession.id());
      const protocolListener = trueProtocolListener;
      cdpSession.on("*", protocolListener);
      cdpSession.on("sessionattached", this._onSessionAttached);
      const targetWithSession = {
        target: targetInfo,
        cdpSession,
        session: newSession,
        protocolListener
      };
      this._targetIdToTargets.set(targetId, targetWithSession);
      await newSession.sendCommand("Network.enable");
      await newSession.sendCommand("Target.setAutoAttach", {
        autoAttach: true,
        flatten: true,
        waitForDebuggerOnStart: true
      });
    } catch (err) {
      if (/Target closed/.test(err.message)) return;
      if (/'Target.getTargetInfo' wasn't found/.test(err)) return;
      if (targetType === "worker") {
        lighthouse_logger_default.warn("target-manager", `Issue attaching to worker target: ${err}`);
        return;
      }
      throw err;
    } finally {
      await newSession.sendCommandAndIgnore("Runtime.runIfWaitingForDebugger");
    }
  }
  /**
   * @param {LH.Crdp.Runtime.ExecutionContextCreatedEvent} event
   */
  _onExecutionContextCreated(event) {
    if (event.context.name.match(/^__puppeteer_utility_world__/)) return;
    if (event.context.name === "lighthouse_isolated_context") return;
    this._executionContextIdToDescriptions.set(event.context.uniqueId, event.context);
  }
  /**
   * @param {LH.Crdp.Runtime.ExecutionContextDestroyedEvent} event
   */
  _onExecutionContextDestroyed(event) {
    this._executionContextIdToDescriptions.delete(event.executionContextUniqueId);
  }
  _onExecutionContextsCleared() {
    this._executionContextIdToDescriptions.clear();
  }
  /**
   * Returns a listener for all protocol events from session, and augments the
   * event with the sessionId.
   * @param {LH.Protocol.TargetType} targetType
   * @param {string} sessionId
   */
  _getProtocolEventListener(targetType, sessionId) {
    const onProtocolEvent = /* @__PURE__ */ __name((method, params) => {
      const payload = (
        /** @type {LH.Protocol.RawEventMessage} */
        { method, params, targetType, sessionId }
      );
      this.emit("protocolevent", payload);
    }, "onProtocolEvent");
    return onProtocolEvent;
  }
  /**
   * @return {Promise<void>}
   */
  async enable() {
    if (this._enabled) return;
    this._enabled = true;
    this._targetIdToTargets = /* @__PURE__ */ new Map();
    this._executionContextIdToDescriptions = /* @__PURE__ */ new Map();
    this._rootCdpSession.on("Page.frameNavigated", this._onFrameNavigated);
    this._rootCdpSession.on("Runtime.executionContextCreated", this._onExecutionContextCreated);
    this._rootCdpSession.on("Runtime.executionContextDestroyed", this._onExecutionContextDestroyed);
    this._rootCdpSession.on("Runtime.executionContextsCleared", this._onExecutionContextsCleared);
    await this._rootCdpSession.send("Page.enable");
    await this._rootCdpSession.send("Runtime.enable");
    this._mainFrameId = (await this._rootCdpSession.send("Page.getFrameTree")).frameTree.frame.id;
    await this._onSessionAttached(this._rootCdpSession);
  }
  /**
   * @return {Promise<void>}
   */
  async disable() {
    this._rootCdpSession.off("Page.frameNavigated", this._onFrameNavigated);
    this._rootCdpSession.off("Runtime.executionContextCreated", this._onExecutionContextCreated);
    this._rootCdpSession.off(
      "Runtime.executionContextDestroyed",
      this._onExecutionContextDestroyed
    );
    this._rootCdpSession.off("Runtime.executionContextsCleared", this._onExecutionContextsCleared);
    for (const { cdpSession, protocolListener } of this._targetIdToTargets.values()) {
      cdpSession.off("*", protocolListener);
      cdpSession.off("sessionattached", this._onSessionAttached);
    }
    await this._rootCdpSession.send("Page.disable").catch((_) => {
    });
    await this._rootCdpSession.send("Runtime.disable").catch((_) => {
    });
    this._enabled = false;
    this._targetIdToTargets = /* @__PURE__ */ new Map();
    this._executionContextIdToDescriptions = /* @__PURE__ */ new Map();
    this._mainFrameId = "";
  }
};

// core/gather/fetcher.js
init_process_global();
init_lh();
/**
 * @license Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var Fetcher = class {
  static {
    __name(this, "Fetcher");
  }
  /**
   * @param {LH.Gatherer.ProtocolSession} session
   */
  constructor(session) {
    this.session = session;
  }
  /**
   * Fetches any resource using the network directly.
   *
   * @param {string} url
   * @param {{timeout: number}=} options timeout is in ms
   * @return {Promise<FetchResponse>}
   */
  async fetchResource(url, options = { timeout: 2e3 }) {
    if (global.isLightrider) {
      return this._wrapWithTimeout(this._fetchWithFetchApi(url), options.timeout);
    }
    return this._fetchResourceOverProtocol(url, options);
  }
  /**
   * @param {string} url
   * @return {Promise<FetchResponse>}
   */
  async _fetchWithFetchApi(url) {
    const response = await fetch(url);
    let content = null;
    try {
      content = await response.text();
    } catch {
    }
    return {
      content,
      status: response.status
    };
  }
  /**
   * @param {string} handle
   * @param {{timeout: number}=} options,
   * @return {Promise<string>}
   */
  async _readIOStream(handle, options = { timeout: 2e3 }) {
    const startTime = Date.now();
    let ioResponse;
    let data31 = "";
    while (!ioResponse || !ioResponse.eof) {
      const elapsedTime = Date.now() - startTime;
      if (elapsedTime > options.timeout) {
        throw new Error("Waiting for the end of the IO stream exceeded the allotted time.");
      }
      ioResponse = await this.session.sendCommand("IO.read", { handle });
      const responseData = ioResponse.base64Encoded ? Buffer.from(ioResponse.data, "base64").toString("utf-8") : ioResponse.data;
      data31 = data31.concat(responseData);
    }
    return data31;
  }
  /**
   * @param {string} url
   * @return {Promise<{stream: LH.Crdp.IO.StreamHandle|null, status: number|null}>}
   */
  async _loadNetworkResource(url) {
    const frameTreeResponse = await this.session.sendCommand("Page.getFrameTree");
    const networkResponse = await this.session.sendCommand("Network.loadNetworkResource", {
      frameId: frameTreeResponse.frameTree.frame.id,
      url,
      options: {
        disableCache: true,
        includeCredentials: true
      }
    });
    return {
      stream: networkResponse.resource.success ? networkResponse.resource.stream || null : null,
      status: networkResponse.resource.httpStatusCode || null
    };
  }
  /**
   * @param {string} url
   * @param {{timeout: number}} options timeout is in ms
   * @return {Promise<FetchResponse>}
   */
  async _fetchResourceOverProtocol(url, options) {
    const startTime = Date.now();
    const response = await this._wrapWithTimeout(this._loadNetworkResource(url), options.timeout);
    const isOk = response.status && response.status >= 200 && response.status <= 299;
    if (!response.stream || !isOk) return { status: response.status, content: null };
    const timeout = options.timeout - (Date.now() - startTime);
    const content = await this._readIOStream(response.stream, { timeout });
    return { status: response.status, content };
  }
  /**
   * @template T
   * @param {Promise<T>} promise
   * @param {number} ms
   */
  async _wrapWithTimeout(promise, ms) {
    let timeoutHandle;
    const timeoutPromise = new Promise((_, reject) => {
      timeoutHandle = setTimeout(reject, ms, new Error("Timed out fetching resource"));
    });
    const wrappedPromise = await Promise.race([promise, timeoutPromise]).finally(() => clearTimeout(timeoutHandle));
    return wrappedPromise;
  }
};

// core/gather/driver/network-monitor.js
init_process_global();
init_lighthouse_logger();
init_lh();
init_network_recorder();
init_network_request();
init_url_utils();
import { EventEmitter as EventEmitter5 } from "events";
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var NetworkMonitorEventEmitter = (
  /** @type {NetworkMonitorEmitter} */
  EventEmitter5
);
var NetworkMonitor = class extends NetworkMonitorEventEmitter {
  static {
    __name(this, "NetworkMonitor");
  }
  /** @type {NetworkRecorder|undefined} */
  _networkRecorder = void 0;
  /** @type {Array<LH.Crdp.Page.Frame>} */
  _frameNavigations = [];
  /** @param {LH.Gatherer.Driver['targetManager']} targetManager */
  constructor(targetManager) {
    super();
    this._targetManager = targetManager;
    this._session = targetManager.rootSession();
    this._onFrameNavigated = (event) => this._frameNavigations.push(event.frame);
    this._onProtocolMessage = (event) => {
      if (!this._networkRecorder) return;
      this._networkRecorder.dispatch(event);
    };
  }
  /**
   * @return {Promise<void>}
   */
  async enable() {
    if (this._networkRecorder) return;
    this._frameNavigations = [];
    this._networkRecorder = new NetworkRecorder();
    const reEmit = /* @__PURE__ */ __name((event) => (r) => {
      this.emit(event, r);
      this._emitNetworkStatus();
    }, "reEmit");
    this._networkRecorder.on("requeststarted", reEmit("requeststarted"));
    this._networkRecorder.on("requestfinished", reEmit("requestfinished"));
    this._session.on("Page.frameNavigated", this._onFrameNavigated);
    this._targetManager.on("protocolevent", this._onProtocolMessage);
  }
  /**
   * @return {Promise<void>}
   */
  async disable() {
    if (!this._networkRecorder) return;
    this._session.off("Page.frameNavigated", this._onFrameNavigated);
    this._targetManager.off("protocolevent", this._onProtocolMessage);
    this._frameNavigations = [];
    this._networkRecorder = void 0;
  }
  /** @return {Promise<{requestedUrl?: string, mainDocumentUrl?: string}>} */
  async getNavigationUrls() {
    const frameNavigations = this._frameNavigations;
    if (!frameNavigations.length) return {};
    const mainFrameNavigations2 = frameNavigations.filter((frame) => !frame.parentId);
    if (!mainFrameNavigations2.length) lighthouse_logger_default.warn("NetworkMonitor", "No detected navigations");
    let requestedUrl = mainFrameNavigations2[0]?.url;
    if (this._networkRecorder) {
      const records = this._networkRecorder.getRawRecords();
      let initialUrlRequest = records.find((record) => record.url === requestedUrl);
      while (initialUrlRequest?.redirectSource) {
        initialUrlRequest = initialUrlRequest.redirectSource;
        requestedUrl = initialUrlRequest.url;
      }
    }
    return {
      requestedUrl,
      mainDocumentUrl: mainFrameNavigations2[mainFrameNavigations2.length - 1]?.url
    };
  }
  /**
   * @return {Array<NetworkRequest>}
   */
  getInflightRequests() {
    if (!this._networkRecorder) return [];
    return this._networkRecorder.getRawRecords().filter((request) => !request.finished);
  }
  /**
   * Returns whether the network is completely idle (i.e. there are 0 inflight network requests).
   */
  isIdle() {
    return this._isIdlePeriod(0);
  }
  /**
   * Returns whether any important resources for the page are in progress.
   * Above-the-fold images and XHRs should be included.
   * Tracking pixels, low priority images, and cross frame requests should be excluded.
   * @return {boolean}
   */
  isCriticalIdle() {
    if (!this._networkRecorder) return false;
    const requests = this._networkRecorder.getRawRecords();
    const rootFrameRequest = requests.find((r) => r.resourceType === "Document");
    const rootFrameId = rootFrameRequest?.frameId;
    return this._isIdlePeriod(
      0,
      // Return true if it should be a candidate for critical.
      (request) => request.frameId === rootFrameId && // WebSocket and Server-sent Events are typically long-lived and shouldn't be considered critical.
      request.resourceType !== "WebSocket" && request.resourceType !== "EventSource" && (request.priority === "VeryHigh" || request.priority === "High")
    );
  }
  /**
   * Returns whether the network is semi-idle (i.e. there are 2 or fewer inflight network requests).
   */
  is2Idle() {
    return this._isIdlePeriod(2);
  }
  /**
   * Returns whether the number of currently inflight requests is less than or
   * equal to the number of allowed concurrent requests.
   * @param {number} allowedRequests
   * @param {(request: NetworkRequest) => boolean} [requestFilter]
   * @return {boolean}
   */
  _isIdlePeriod(allowedRequests, requestFilter) {
    if (!this._networkRecorder) return false;
    const requests = this._networkRecorder.getRawRecords();
    let inflightRequests = 0;
    for (let i = 0; i < requests.length; i++) {
      const request = requests[i];
      if (request.finished) continue;
      if (requestFilter?.(request) === false) continue;
      if (NetworkRequest.isNonNetworkRequest(request)) continue;
      inflightRequests++;
    }
    return inflightRequests <= allowedRequests;
  }
  /**
   * Emits the appropriate network status event.
   */
  _emitNetworkStatus() {
    const zeroQuiet = this.isIdle();
    const twoQuiet = this.is2Idle();
    const criticalQuiet = this.isCriticalIdle();
    this.emit(zeroQuiet ? "networkidle" : "networkbusy");
    this.emit(twoQuiet ? "network-2-idle" : "network-2-busy");
    this.emit(criticalQuiet ? "network-critical-idle" : "network-critical-busy");
    if (twoQuiet && zeroQuiet) lighthouse_logger_default.verbose("NetworkRecorder", "network fully-quiet");
    else if (twoQuiet && !zeroQuiet) lighthouse_logger_default.verbose("NetworkRecorder", "network semi-quiet");
    else lighthouse_logger_default.verbose("NetworkRecorder", "network busy");
  }
  /**
   * Finds all time periods where the number of inflight requests is less than or equal to the
   * number of allowed concurrent requests.
   * The time periods returned are in ms.
   * @param {Array<LH.Artifacts.NetworkRequest>} requests
   * @param {number} allowedConcurrentRequests
   * @param {number=} endTime In ms
   * @return {Array<{start: number, end: number}>}
   */
  static findNetworkQuietPeriods(requests, allowedConcurrentRequests, endTime = Infinity) {
    let timeBoundaries = [];
    requests.forEach((request) => {
      if (url_utils_default.isNonNetworkProtocol(request.protocol)) return;
      if (request.protocol === "ws" || request.protocol === "wss") return;
      timeBoundaries.push({ time: request.networkRequestTime, isStart: true });
      if (request.finished) {
        timeBoundaries.push({ time: request.networkEndTime, isStart: false });
      }
    });
    timeBoundaries = timeBoundaries.filter((boundary) => boundary.time <= endTime).sort((a, b) => a.time - b.time);
    let numInflightRequests = 0;
    let quietPeriodStart = 0;
    const quietPeriods = [];
    timeBoundaries.forEach((boundary) => {
      if (boundary.isStart) {
        if (numInflightRequests === allowedConcurrentRequests) {
          quietPeriods.push({ start: quietPeriodStart, end: boundary.time });
        }
        numInflightRequests++;
      } else {
        numInflightRequests--;
        if (numInflightRequests === allowedConcurrentRequests) {
          quietPeriodStart = boundary.time;
        }
      }
    });
    if (numInflightRequests <= allowedConcurrentRequests) {
      quietPeriods.push({ start: quietPeriodStart, end: endTime });
    }
    return quietPeriods.filter((period) => period.start !== period.end);
  }
};

// core/gather/driver.js
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var throwNotConnectedFn = /* @__PURE__ */ __name(() => {
  throw new Error("Session not connected");
}, "throwNotConnectedFn");
var throwingSession = {
  setTargetInfo: throwNotConnectedFn,
  hasNextProtocolTimeout: throwNotConnectedFn,
  getNextProtocolTimeout: throwNotConnectedFn,
  setNextProtocolTimeout: throwNotConnectedFn,
  on: throwNotConnectedFn,
  once: throwNotConnectedFn,
  off: throwNotConnectedFn,
  sendCommand: throwNotConnectedFn,
  sendCommandAndIgnore: throwNotConnectedFn,
  dispose: throwNotConnectedFn,
  onCrashPromise: throwNotConnectedFn
};
var Driver = class {
  static {
    __name(this, "Driver");
  }
  /**
   * @param {LH.Puppeteer.Page} page
   */
  constructor(page) {
    this._page = page;
    this._targetManager = void 0;
    this._networkMonitor = void 0;
    this._executionContext = void 0;
    this._fetcher = void 0;
    this.defaultSession = throwingSession;
  }
  /** @return {LH.Gatherer.Driver['executionContext']} */
  get executionContext() {
    if (!this._executionContext) return throwNotConnectedFn();
    return this._executionContext;
  }
  get fetcher() {
    if (!this._fetcher) return throwNotConnectedFn();
    return this._fetcher;
  }
  get targetManager() {
    if (!this._targetManager) return throwNotConnectedFn();
    return this._targetManager;
  }
  get networkMonitor() {
    if (!this._networkMonitor) return throwNotConnectedFn();
    return this._networkMonitor;
  }
  /** @return {Promise<string>} */
  async url() {
    return this._page.url();
  }
  /** @return {Promise<void>} */
  async connect() {
    if (this.defaultSession !== throwingSession) return;
    const status = { msg: "Connecting to browser", id: "lh:driver:connect" };
    lighthouse_logger_default.time(status);
    const cdpSession = await this._page.target().createCDPSession();
    this._targetManager = new TargetManager(cdpSession);
    await this._targetManager.enable();
    this._networkMonitor = new NetworkMonitor(this._targetManager);
    await this._networkMonitor.enable();
    this.defaultSession = this._targetManager.rootSession();
    this._executionContext = new ExecutionContext(this.defaultSession);
    this._fetcher = new Fetcher(this.defaultSession);
    lighthouse_logger_default.timeEnd(status);
  }
  /** @return {Promise<void>} */
  async disconnect() {
    if (this.defaultSession === throwingSession) return;
    await this._targetManager?.disable();
    await this._networkMonitor?.disable();
    await this.defaultSession.dispose();
  }
};

// core/gather/snapshot-runner.js
init_runner();

// core/gather/runner-helpers.js
init_process_global();
init_lighthouse_logger();
init_sentry();
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
function createDependencyError(dependency, error) {
  const err = new Error(`Dependency "${dependency.id}" failed with exception: ${error.message}`);
  err.expected = true;
  return err;
}
__name(createDependencyError, "createDependencyError");
function getEmptyArtifactState() {
  return {
    startInstrumentation: {},
    startSensitiveInstrumentation: {},
    stopSensitiveInstrumentation: {},
    stopInstrumentation: {},
    getArtifact: {}
  };
}
__name(getEmptyArtifactState, "getEmptyArtifactState");
var phaseToPriorPhase = {
  startInstrumentation: void 0,
  startSensitiveInstrumentation: "startInstrumentation",
  stopSensitiveInstrumentation: "startSensitiveInstrumentation",
  stopInstrumentation: "stopSensitiveInstrumentation",
  getArtifact: "stopInstrumentation"
};
async function collectPhaseArtifacts(options) {
  const {
    driver,
    page,
    artifactDefinitions,
    artifactState,
    baseArtifacts,
    phase,
    gatherMode,
    computedCache,
    settings
  } = options;
  const priorPhase = phaseToPriorPhase[phase];
  const priorPhaseArtifacts = priorPhase && artifactState[priorPhase] || {};
  const isFinalPhase = phase === "getArtifact";
  for (const artifactDefn of artifactDefinitions) {
    lighthouse_logger_default.verbose(`artifacts:${phase}`, artifactDefn.id);
    const gatherer = artifactDefn.gatherer.instance;
    const priorArtifactPromise = priorPhaseArtifacts[artifactDefn.id] || Promise.resolve();
    const artifactPromise = priorArtifactPromise.then(async () => {
      const dependencies = isFinalPhase ? await collectArtifactDependencies(artifactDefn, artifactState.getArtifact) : (
        /** @type {Dependencies} */
        {}
      );
      const status = {
        msg: `Getting artifact: ${artifactDefn.id}`,
        id: `lh:gather:getArtifact:${artifactDefn.id}`
      };
      if (isFinalPhase) {
        lighthouse_logger_default.time(status);
      }
      const artifact = await gatherer[phase]({
        gatherMode,
        driver,
        page,
        baseArtifacts,
        dependencies,
        computedCache,
        settings
      });
      if (isFinalPhase) {
        lighthouse_logger_default.timeEnd(status);
      }
      return artifact;
    });
    await artifactPromise.catch((err) => {
      Sentry.captureException(err, {
        tags: { gatherer: artifactDefn.id, phase },
        level: "error"
      });
      lighthouse_logger_default.error(artifactDefn.id, err.message);
    });
    artifactState[phase][artifactDefn.id] = artifactPromise;
  }
}
__name(collectPhaseArtifacts, "collectPhaseArtifacts");
async function collectArtifactDependencies(artifact, artifactsById) {
  if (!artifact.dependencies) return (
    /** @type {Dependencies} */
    {}
  );
  const dependencyPromises = Object.entries(artifact.dependencies).map(
    async ([dependencyName, dependency]) => {
      const dependencyArtifact = artifactsById[dependency.id];
      if (dependencyArtifact === void 0) throw new Error(`"${dependency.id}" did not run`);
      if (dependencyArtifact instanceof Error) {
        throw createDependencyError(dependency, dependencyArtifact);
      }
      const dependencyPromise = Promise.resolve().then(() => dependencyArtifact).catch((err) => Promise.reject(createDependencyError(dependency, err)));
      return [dependencyName, await dependencyPromise];
    }
  );
  return Object.fromEntries(await Promise.all(dependencyPromises));
}
__name(collectArtifactDependencies, "collectArtifactDependencies");
async function awaitArtifacts(artifactState) {
  const artifacts = {};
  for (const [id, promise] of Object.entries(artifactState.getArtifact)) {
    const artifact = await promise.catch((err) => err);
    if (artifact !== void 0) artifacts[id] = artifact;
  }
  return artifacts;
}
__name(awaitArtifacts, "awaitArtifacts");

// core/gather/snapshot-runner.js
init_config();

// core/gather/base-artifacts.js
init_process_global();
init_lighthouse_logger();
init_lodash();

// core/gather/driver/environment.js
init_process_global();
init_lighthouse_logger();
init_constants();
init_page_functions();
init_i18n();
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var UIStrings130 = {
  /**
   * @description Warning that the host device where Lighthouse is running appears to have a slower
   * CPU than the expected Lighthouse baseline.
   */
  warningSlowHostCpu: "The tested device appears to have a slower CPU than  Lighthouse expects. This can negatively affect your performance score. Learn more about [calibrating an appropriate CPU slowdown multiplier](https://github.com/GoogleChrome/lighthouse/blob/main/docs/throttling.md#cpu-throttling)."
};
var SLOW_CPU_BENCHMARK_INDEX_THRESHOLD = 1e3;
var str_109 = createIcuMessageFn({ url: "core/gather/driver/environment.js" }.url, UIStrings130);
async function getBrowserVersion(session) {
  const status = { msg: "Getting browser version", id: "lh:gather:getVersion" };
  lighthouse_logger_default.time(status, "verbose");
  const version = await session.sendCommand("Browser.getVersion");
  const match = version.product.match(/\/(\d+)/);
  const milestone = match ? parseInt(match[1]) : 0;
  lighthouse_logger_default.timeEnd(status);
  return Object.assign(version, { milestone });
}
__name(getBrowserVersion, "getBrowserVersion");
async function getBenchmarkIndex(executionContext) {
  const status = { msg: "Benchmarking machine", id: "lh:gather:getBenchmarkIndex" };
  lighthouse_logger_default.time(status);
  const indexVal = await executionContext.evaluate(pageFunctions.computeBenchmarkIndex, {
    args: []
  });
  lighthouse_logger_default.timeEnd(status);
  return indexVal;
}
__name(getBenchmarkIndex, "getBenchmarkIndex");
async function getDevicePixelRatio(executionContext) {
  const status = { msg: "Host device pixel ratio", id: "lh:gather:getDevicePixelRatio" };
  lighthouse_logger_default.time(status);
  const indexVal = await executionContext.evaluate(() => devicePixelRatio, {
    args: []
  });
  lighthouse_logger_default.timeEnd(status);
  return indexVal;
}
__name(getDevicePixelRatio, "getDevicePixelRatio");
function getSlowHostCpuWarning(context) {
  const { settings, baseArtifacts } = context;
  const { throttling: throttling3, throttlingMethod } = settings;
  const defaultThrottling2 = defaultSettings.throttling;
  if (settings.channel !== "cli") return;
  const isThrottledMethod = throttlingMethod === "simulate" || throttlingMethod === "devtools";
  const isDefaultMultiplier = throttling3.cpuSlowdownMultiplier === defaultThrottling2.cpuSlowdownMultiplier;
  if (!isThrottledMethod || !isDefaultMultiplier) return;
  if (baseArtifacts.BenchmarkIndex > SLOW_CPU_BENCHMARK_INDEX_THRESHOLD) return;
  return str_109(UIStrings130.warningSlowHostCpu);
}
__name(getSlowHostCpuWarning, "getSlowHostCpuWarning");
function getEnvironmentWarnings(context) {
  return [
    getSlowHostCpuWarning(context)
  ].filter((s) => !!s);
}
__name(getEnvironmentWarnings, "getEnvironmentWarnings");

// core/gather/base-artifacts.js
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
async function getBaseArtifacts(resolvedConfig, driver, context) {
  const BenchmarkIndex = await getBenchmarkIndex(driver.executionContext);
  const { userAgent, product } = await getBrowserVersion(driver.defaultSession);
  const HostDPR = await getDevicePixelRatio(driver.executionContext);
  return {
    // Meta artifacts.
    fetchTime: (/* @__PURE__ */ new Date()).toJSON(),
    Timing: [],
    LighthouseRunWarnings: [],
    settings: resolvedConfig.settings,
    // Environment artifacts that can always be computed.
    BenchmarkIndex,
    HostDPR,
    HostUserAgent: userAgent,
    HostFormFactor: userAgent.includes("Android") || userAgent.includes("Mobile") ? "mobile" : "desktop",
    HostProduct: product,
    // Contextual artifacts whose collection changes based on gather mode.
    URL: {
      finalDisplayedUrl: ""
    },
    PageLoadError: null,
    GatherContext: context
  };
}
__name(getBaseArtifacts, "getBaseArtifacts");
function deduplicateWarnings(warnings) {
  const unique = [];
  for (const warning of warnings) {
    if (unique.some((existing) => isEqual_default(warning, existing))) continue;
    unique.push(warning);
  }
  return unique;
}
__name(deduplicateWarnings, "deduplicateWarnings");
function finalizeArtifacts(baseArtifacts, gathererArtifacts) {
  baseArtifacts.LighthouseRunWarnings.push(
    ...getEnvironmentWarnings({ settings: baseArtifacts.settings, baseArtifacts })
  );
  const artifacts = (
    /** @type {LH.Artifacts} */
    { ...baseArtifacts, ...gathererArtifacts }
  );
  artifacts.Timing = lighthouse_logger_default.getTimeEntries();
  artifacts.LighthouseRunWarnings = deduplicateWarnings(baseArtifacts.LighthouseRunWarnings);
  if (artifacts.PageLoadError && !artifacts.URL.finalDisplayedUrl) {
    artifacts.URL.finalDisplayedUrl = artifacts.URL.requestedUrl || "";
  }
  if (!artifacts.URL.finalDisplayedUrl) throw new Error("Runner did not set finalDisplayedUrl");
  return artifacts;
}
__name(finalizeArtifacts, "finalizeArtifacts");

// core/gather/snapshot-runner.js
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
async function snapshotGather(page, options = {}) {
  const { flags = {}, config: config4 } = options;
  lighthouse_logger_default.setLevel(flags.logLevel || "error");
  const { resolvedConfig } = await initializeConfig("snapshot", config4, flags);
  const driver = new Driver(page);
  await driver.connect();
  const computedCache = /* @__PURE__ */ new Map();
  const url = await driver.url();
  const runnerOptions = { resolvedConfig, computedCache };
  const gatherFn = /* @__PURE__ */ __name(async () => {
    const baseArtifacts = await getBaseArtifacts(resolvedConfig, driver, { gatherMode: "snapshot" });
    baseArtifacts.URL = {
      finalDisplayedUrl: url
    };
    const artifactDefinitions = resolvedConfig.artifacts || [];
    const artifactState = getEmptyArtifactState();
    await collectPhaseArtifacts({
      phase: "getArtifact",
      gatherMode: "snapshot",
      driver,
      page,
      baseArtifacts,
      artifactDefinitions,
      artifactState,
      computedCache,
      settings: resolvedConfig.settings
    });
    await driver.disconnect();
    const artifacts2 = await awaitArtifacts(artifactState);
    return finalizeArtifacts(baseArtifacts, artifacts2);
  }, "gatherFn");
  const artifacts = await Runner.gather(gatherFn, runnerOptions);
  return { artifacts, runnerOptions };
}
__name(snapshotGather, "snapshotGather");

// core/gather/timespan-runner.js
init_process_global();
init_lighthouse_logger();
init_runner();

// core/gather/driver/prepare.js
init_process_global();
init_lighthouse_logger();

// core/gather/driver/storage.js
init_process_global();
init_lighthouse_logger();
init_i18n();
init_sentry();
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var UIStrings131 = {
  /**
   * @description A warning that previously-saved data may have affected the measured performance and instructions on how to avoid the problem. "locations" will be a list of possible types of data storage locations, e.g. "IndexedDB",  "Local Storage", or "Web SQL".
   * @example {IndexedDB, Local Storage} locations
   */
  warningData: `{locationCount, plural,
    =1 {There may be stored data affecting loading performance in this location: {locations}. Audit this page in an incognito window to prevent those resources from affecting your scores.}
    other {There may be stored data affecting loading performance in these locations: {locations}. Audit this page in an incognito window to prevent those resources from affecting your scores.}
  }`,
  /** A warning that the data in the browser cache may have affected the measured performance because the operation to clear the browser cache timed out. */
  warningCacheTimeout: "Clearing the browser cache timed out. Try auditing this page again and file a bug if the issue persists.",
  /** A warning that the data on the page's origin may have affected the measured performance because the operation to clear the origin data timed out. */
  warningOriginDataTimeout: "Clearing the origin data timed out. Try auditing this page again and file a bug if the issue persists."
};
var str_110 = createIcuMessageFn({ url: "core/gather/driver/storage.js" }.url, UIStrings131);
async function clearDataForOrigin(session, url, clearStorageTypes) {
  const status = { msg: "Cleaning origin data", id: "lh:storage:clearDataForOrigin" };
  lighthouse_logger_default.time(status);
  const warnings = [];
  const origin = new URL(url).origin;
  const typesToClear = clearStorageTypes.join(",");
  session.setNextProtocolTimeout(5e3);
  try {
    await session.sendCommand("Storage.clearDataForOrigin", {
      origin,
      storageTypes: typesToClear
    });
  } catch (err) {
    if (
      /** @type {LH.LighthouseError} */
      err.code === "PROTOCOL_TIMEOUT"
    ) {
      lighthouse_logger_default.warn("Driver", "clearDataForOrigin timed out");
      warnings.push(str_110(UIStrings131.warningOriginDataTimeout));
    } else {
      throw err;
    }
  } finally {
    lighthouse_logger_default.timeEnd(status);
  }
  return warnings;
}
__name(clearDataForOrigin, "clearDataForOrigin");
async function getImportantStorageWarning(session, url) {
  const usageData = await session.sendCommand("Storage.getUsageAndQuota", {
    origin: url
  });
  if (!usageData || !usageData.usageBreakdown) {
    const err = new Error(`missing usageData: ${JSON.stringify(usageData)}`);
    Sentry.captureException(err, {
      level: "error"
    });
    return;
  }
  const storageTypeNames = {
    local_storage: "Local Storage",
    indexeddb: "IndexedDB",
    websql: "Web SQL"
  };
  const locations = usageData.usageBreakdown.filter((usage) => usage.usage).map((usage) => storageTypeNames[usage.storageType] || "").filter(Boolean);
  if (locations.length) {
    return str_110(UIStrings131.warningData, {
      locations: locations.join(", "),
      locationCount: locations.length
    });
  }
}
__name(getImportantStorageWarning, "getImportantStorageWarning");
async function clearBrowserCaches(session) {
  const status = { msg: "Cleaning browser cache", id: "lh:storage:clearBrowserCaches" };
  lighthouse_logger_default.time(status);
  const warnings = [];
  try {
    await session.sendCommand("Network.clearBrowserCache");
    await session.sendCommand("Network.setCacheDisabled", { cacheDisabled: true });
    await session.sendCommand("Network.setCacheDisabled", { cacheDisabled: false });
  } catch (err) {
    if (
      /** @type {LH.LighthouseError} */
      err.code === "PROTOCOL_TIMEOUT"
    ) {
      lighthouse_logger_default.warn("Driver", "clearBrowserCaches timed out");
      warnings.push(str_110(UIStrings131.warningCacheTimeout));
    } else {
      throw err;
    }
  } finally {
    lighthouse_logger_default.timeEnd(status);
  }
  return warnings;
}
__name(clearBrowserCaches, "clearBrowserCaches");

// core/lib/emulation.js
init_process_global();
/**
 * @license
 * Copyright 2016 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var NO_THROTTLING_METRICS = {
  latency: 0,
  downloadThroughput: 0,
  uploadThroughput: 0,
  offline: false
};
var NO_CPU_THROTTLE_METRICS = {
  rate: 1
};
function parseUseragentIntoMetadata(fullVersion, formFactor) {
  const [version] = fullVersion.split(".", 1);
  const brands = [
    { brand: "Chromium", version },
    { brand: "Google Chrome", version }
  ];
  const motoGPowerDetails = {
    platform: "Android",
    platformVersion: "11.0",
    architecture: "",
    model: "moto g power (2022)"
  };
  const macDesktopDetails = {
    platform: "macOS",
    platformVersion: "10.15.7",
    architecture: "x86",
    model: ""
  };
  const mobile = formFactor === "mobile";
  return {
    brands,
    fullVersion,
    // Since config users can supply a custom useragent, they likely are emulating something
    // other than Moto G Power and MacOS Desktop.
    // TODO: Determine how to thoughtfully expose this metadata/client-hints configurability.
    ...mobile ? motoGPowerDetails : macDesktopDetails,
    mobile
  };
}
__name(parseUseragentIntoMetadata, "parseUseragentIntoMetadata");
async function matchHostUAVersion(session, userAgent) {
  const { milestone } = await getBrowserVersion(session);
  const tweakedUA = userAgent.replace(/(Chrome\/)[\d.]+/, `$1${milestone}.0.0.0`);
  const fullVersion = `${milestone}.0.0.0`;
  return { tweakedUA, fullVersion };
}
__name(matchHostUAVersion, "matchHostUAVersion");
async function emulate(session, settings) {
  if (settings.emulatedUserAgent !== false) {
    const userAgent = (
      /** @type {string} */
      settings.emulatedUserAgent
    );
    const { tweakedUA, fullVersion } = await matchHostUAVersion(session, userAgent);
    await session.sendCommand("Network.setUserAgentOverride", {
      userAgent: tweakedUA,
      userAgentMetadata: parseUseragentIntoMetadata(fullVersion, settings.formFactor)
    });
  }
  if (settings.screenEmulation.disabled !== true) {
    const { width, height, deviceScaleFactor, mobile } = settings.screenEmulation;
    const params = { width, height, deviceScaleFactor, mobile };
    await session.sendCommand("Emulation.setDeviceMetricsOverride", params);
    await session.sendCommand("Emulation.setTouchEmulationEnabled", {
      enabled: params.mobile
    });
  }
}
__name(emulate, "emulate");
async function throttle(session, settings) {
  if (settings.throttlingMethod !== "devtools") return clearNetworkThrottling(session);
  await Promise.all([
    enableNetworkThrottling(session, settings.throttling),
    enableCPUThrottling(session, settings.throttling)
  ]);
}
__name(throttle, "throttle");
async function clearThrottling(session) {
  await Promise.all([clearNetworkThrottling(session), clearCPUThrottling(session)]);
}
__name(clearThrottling, "clearThrottling");
function enableNetworkThrottling(session, throttlingSettings) {
  const conditions = {
    offline: false,
    latency: throttlingSettings.requestLatencyMs || 0,
    downloadThroughput: throttlingSettings.downloadThroughputKbps || 0,
    uploadThroughput: throttlingSettings.uploadThroughputKbps || 0
  };
  conditions.downloadThroughput = Math.floor(conditions.downloadThroughput * 1024 / 8);
  conditions.uploadThroughput = Math.floor(conditions.uploadThroughput * 1024 / 8);
  return session.sendCommand("Network.emulateNetworkConditions", conditions);
}
__name(enableNetworkThrottling, "enableNetworkThrottling");
function clearNetworkThrottling(session) {
  return session.sendCommandAndIgnore("Network.emulateNetworkConditions", NO_THROTTLING_METRICS);
}
__name(clearNetworkThrottling, "clearNetworkThrottling");
function enableCPUThrottling(session, throttlingSettings) {
  const rate = throttlingSettings.cpuSlowdownMultiplier;
  return session.sendCommand("Emulation.setCPUThrottlingRate", { rate });
}
__name(enableCPUThrottling, "enableCPUThrottling");
function clearCPUThrottling(session) {
  return session.sendCommandAndIgnore("Emulation.setCPUThrottlingRate", NO_CPU_THROTTLE_METRICS);
}
__name(clearCPUThrottling, "clearCPUThrottling");

// core/gather/driver/prepare.js
init_page_functions();
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
async function enableAsyncStacks(session) {
  const enable = /* @__PURE__ */ __name(async () => {
    await session.sendCommand("Debugger.enable");
    await session.sendCommand("Debugger.setSkipAllPauses", { skip: true });
    await session.sendCommand("Debugger.setAsyncCallStackDepth", { maxDepth: 8 });
  }, "enable");
  function onDebuggerPaused() {
    session.sendCommand("Debugger.resume");
  }
  __name(onDebuggerPaused, "onDebuggerPaused");
  function onFrameNavigated(event) {
    if (event.frame.parentId) return;
    enable().catch((err) => lighthouse_logger_default.error("Driver", err));
  }
  __name(onFrameNavigated, "onFrameNavigated");
  session.on("Debugger.paused", onDebuggerPaused);
  session.on("Page.frameNavigated", onFrameNavigated);
  await enable();
  return async () => {
    await session.sendCommandAndIgnore("Debugger.disable");
    session.off("Debugger.paused", onDebuggerPaused);
    session.off("Page.frameNavigated", onFrameNavigated);
  };
}
__name(enableAsyncStacks, "enableAsyncStacks");
async function shimRequestIdleCallbackOnNewDocument(driver, settings) {
  await driver.executionContext.evaluateOnNewDocument(pageFunctions.wrapRequestIdleCallback, {
    args: [settings.throttling.cpuSlowdownMultiplier]
  });
}
__name(shimRequestIdleCallbackOnNewDocument, "shimRequestIdleCallbackOnNewDocument");
async function dismissJavaScriptDialogs(session) {
  session.on("Page.javascriptDialogOpening", (data31) => {
    lighthouse_logger_default.warn("Driver", `${data31.type} dialog opened by the page automatically suppressed.`);
    session.sendCommand("Page.handleJavaScriptDialog", {
      accept: true,
      promptText: "Lighthouse prompt response"
    }).catch((err) => lighthouse_logger_default.warn("Driver", err));
  });
  await session.sendCommand("Page.enable");
}
__name(dismissJavaScriptDialogs, "dismissJavaScriptDialogs");
async function resetStorageForUrl(session, url, clearStorageTypes) {
  const warnings = [];
  const clearDataWarnings = await clearDataForOrigin(session, url, clearStorageTypes);
  warnings.push(...clearDataWarnings);
  const clearCacheWarnings = await clearBrowserCaches(session);
  warnings.push(...clearCacheWarnings);
  const importantStorageWarning = await getImportantStorageWarning(session, url);
  if (importantStorageWarning) warnings.push(importantStorageWarning);
  return { warnings };
}
__name(resetStorageForUrl, "resetStorageForUrl");
async function prepareThrottlingAndNetwork(session, settings) {
  const status = { msg: "Preparing network conditions", id: `lh:gather:prepareThrottlingAndNetwork` };
  lighthouse_logger_default.time(status);
  await throttle(session, settings);
  const blockedUrls = settings.blockedUrlPatterns || [];
  await session.sendCommand("Network.setBlockedURLs", { urls: blockedUrls });
  const headers = settings.extraHeaders;
  if (headers) await session.sendCommand("Network.setExtraHTTPHeaders", { headers });
  lighthouse_logger_default.timeEnd(status);
}
__name(prepareThrottlingAndNetwork, "prepareThrottlingAndNetwork");
async function prepareDeviceEmulation(driver, settings) {
  await driver.defaultSession.sendCommand("Network.enable");
  await emulate(driver.defaultSession, settings);
}
__name(prepareDeviceEmulation, "prepareDeviceEmulation");
async function warmUpIntlSegmenter(driver) {
  await driver.executionContext.evaluate(pageFunctions.truncate, {
    args: ["aaa", 2]
  });
}
__name(warmUpIntlSegmenter, "warmUpIntlSegmenter");
async function prepareTargetForNavigationMode(driver, settings, requestor) {
  const status = { msg: "Preparing target for navigation mode", id: "lh:prepare:navigationMode" };
  lighthouse_logger_default.time(status);
  const warnings = [];
  await prepareDeviceEmulation(driver, settings);
  await dismissJavaScriptDialogs(driver.defaultSession);
  await driver.executionContext.cacheNativesOnNewDocument();
  if (settings.throttlingMethod === "simulate") {
    await shimRequestIdleCallbackOnNewDocument(driver, settings);
  }
  await warmUpIntlSegmenter(driver);
  const shouldResetStorage = !settings.disableStorageReset && // Without prior knowledge of the destination, we cannot know which URL to clear storage for.
  typeof requestor === "string";
  if (shouldResetStorage) {
    const { warnings: storageWarnings } = await resetStorageForUrl(
      driver.defaultSession,
      requestor,
      settings.clearStorageTypes
    );
    warnings.push(...storageWarnings);
  }
  await prepareThrottlingAndNetwork(driver.defaultSession, settings);
  lighthouse_logger_default.timeEnd(status);
  return { warnings };
}
__name(prepareTargetForNavigationMode, "prepareTargetForNavigationMode");

// core/gather/timespan-runner.js
init_config();
init_i18n();
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var UIStrings132 = {
  /** A warning that indicates page navigations should be audited using navigation mode, as opposed to timespan mode. "navigation mode" refers to a Lighthouse mode that analyzes a page navigation. "timespan mode" refers to a Lighthouse mode that analyzes user interactions over an arbitrary period of time. */
  warningNavigationDetected: "A page navigation was detected during the run. Using timespan mode to audit page navigations is not recommended. Use navigation mode to audit page navigations for better third-party attribution and main thread detection."
};
var str_111 = createIcuMessageFn({ url: "core/gather/timespan-runner.js" }.url, UIStrings132);

// core/gather/navigation-runner.js
init_process_global();

// replace-modules:/Users/alexrudenko/src/lighthouse/node_modules/puppeteer-core/lib/puppeteer/puppeteer-core.js
init_process_global();
var puppeteer_core_default = {};

// core/gather/navigation-runner.js
init_lighthouse_logger();
init_runner();

// core/gather/driver/navigation.js
init_process_global();
init_lighthouse_logger();

// core/gather/driver/wait-for-condition.js
init_process_global();
init_lighthouse_logger();
init_lh_error();
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
function waitForNothing() {
  return { promise: Promise.resolve(), cancel() {
  } };
}
__name(waitForNothing, "waitForNothing");
function waitForFrameNavigated(session) {
  let cancel = /* @__PURE__ */ __name(() => {
    throw new Error("waitForFrameNavigated.cancel() called before it was defined");
  }, "cancel");
  const promise = new Promise((resolve, reject) => {
    session.once("Page.frameNavigated", resolve);
    cancel = /* @__PURE__ */ __name(() => {
      session.off("Page.frameNavigated", resolve);
      reject(new Error("Wait for navigated cancelled"));
    }, "cancel");
  });
  return { promise, cancel };
}
__name(waitForFrameNavigated, "waitForFrameNavigated");
function waitForFcp(session, pauseAfterFcpMs, maxWaitForFcpMs) {
  let cancel = /* @__PURE__ */ __name(() => {
    throw new Error("waitForFcp.cancel() called before it was defined");
  }, "cancel");
  const promise = new Promise((resolve, reject) => {
    const maxWaitTimeout = setTimeout(() => {
      reject(new LighthouseError(LighthouseError.errors.NO_FCP));
    }, maxWaitForFcpMs);
    let loadTimeout;
    const lifecycleListener = /* @__PURE__ */ __name((e) => {
      if (e.name === "firstContentfulPaint") {
        loadTimeout = setTimeout(() => {
          resolve();
          cancel();
        }, pauseAfterFcpMs);
      }
    }, "lifecycleListener");
    session.on("Page.lifecycleEvent", lifecycleListener);
    let canceled = false;
    cancel = /* @__PURE__ */ __name(() => {
      if (canceled) return;
      canceled = true;
      session.off("Page.lifecycleEvent", lifecycleListener);
      maxWaitTimeout && clearTimeout(maxWaitTimeout);
      loadTimeout && clearTimeout(loadTimeout);
      reject(new Error("Wait for FCP canceled"));
    }, "cancel");
  });
  return {
    promise,
    cancel
  };
}
__name(waitForFcp, "waitForFcp");
function waitForNetworkIdle(session, networkMonitor, networkQuietOptions) {
  let hasDCLFired = false;
  let idleTimeout;
  let cancel = /* @__PURE__ */ __name(() => {
    throw new Error("waitForNetworkIdle.cancel() called before it was defined");
  }, "cancel");
  const { networkQuietThresholdMs, busyEvent, idleEvent, isIdle } = networkQuietOptions;
  const promise = new Promise((resolve, reject) => {
    const onIdle = /* @__PURE__ */ __name(() => {
      networkMonitor.once(busyEvent, onBusy);
      idleTimeout = setTimeout(() => {
        cancel();
        resolve();
      }, networkQuietThresholdMs);
    }, "onIdle");
    const onBusy = /* @__PURE__ */ __name(() => {
      networkMonitor.once(idleEvent, onIdle);
      idleTimeout && clearTimeout(idleTimeout);
    }, "onBusy");
    const domContentLoadedListener = /* @__PURE__ */ __name(() => {
      hasDCLFired = true;
      if (isIdle(networkMonitor)) {
        onIdle();
      } else {
        onBusy();
      }
    }, "domContentLoadedListener");
    const logStatus = /* @__PURE__ */ __name(() => {
      if (!hasDCLFired) {
        lighthouse_logger_default.verbose("waitFor", "Waiting on DomContentLoaded");
        return;
      }
      const inflightRecords = networkMonitor.getInflightRequests();
      if (lighthouse_logger_default.isVerbose() && inflightRecords.length < 20 && inflightRecords.length > 0) {
        lighthouse_logger_default.verbose("waitFor", `=== Waiting on ${inflightRecords.length} requests to finish`);
        for (const record of inflightRecords) {
          lighthouse_logger_default.verbose("waitFor", `Waiting on ${record.url.slice(0, 120)} to finish`);
        }
      }
    }, "logStatus");
    networkMonitor.on("requeststarted", logStatus);
    networkMonitor.on("requestfinished", logStatus);
    networkMonitor.on(busyEvent, logStatus);
    if (!networkQuietOptions.pretendDCLAlreadyFired) {
      session.once("Page.domContentEventFired", domContentLoadedListener);
    } else {
      domContentLoadedListener();
    }
    let canceled = false;
    cancel = /* @__PURE__ */ __name(() => {
      if (canceled) return;
      canceled = true;
      if (idleTimeout) clearTimeout(idleTimeout);
      if (!networkQuietOptions.pretendDCLAlreadyFired) {
        session.off("Page.domContentEventFired", domContentLoadedListener);
      }
      networkMonitor.removeListener(busyEvent, onBusy);
      networkMonitor.removeListener(idleEvent, onIdle);
      networkMonitor.removeListener("requeststarted", logStatus);
      networkMonitor.removeListener("requestfinished", logStatus);
      networkMonitor.removeListener(busyEvent, logStatus);
    }, "cancel");
  });
  return {
    promise,
    cancel
  };
}
__name(waitForNetworkIdle, "waitForNetworkIdle");
function waitForCPUIdle(session, waitForCPUQuiet) {
  if (!waitForCPUQuiet) {
    return {
      promise: Promise.resolve(),
      cancel: /* @__PURE__ */ __name(() => void 0, "cancel")
    };
  }
  let lastTimeout;
  let canceled = false;
  async function checkForQuiet(executionContext2, resolve) {
    if (canceled) return;
    const timeSinceLongTask = await executionContext2.evaluate(
      checkTimeSinceLastLongTaskInPage,
      { args: [], useIsolation: true }
    );
    if (canceled) return;
    if (typeof timeSinceLongTask === "number") {
      if (timeSinceLongTask >= waitForCPUQuiet) {
        lighthouse_logger_default.verbose("waitFor", `CPU has been idle for ${timeSinceLongTask} ms`);
        resolve();
      } else {
        lighthouse_logger_default.verbose("waitFor", `CPU has been idle for ${timeSinceLongTask} ms`);
        const timeToWait = waitForCPUQuiet - timeSinceLongTask;
        lastTimeout = setTimeout(() => checkForQuiet(executionContext2, resolve), timeToWait);
      }
    }
  }
  __name(checkForQuiet, "checkForQuiet");
  let cancel = /* @__PURE__ */ __name(() => {
    throw new Error("waitForCPUIdle.cancel() called before it was defined");
  }, "cancel");
  const executionContext = new ExecutionContext(session);
  const promise = new Promise((resolve, reject) => {
    executionContext.evaluate(registerPerformanceObserverInPage, { args: [], useIsolation: true }).then(() => checkForQuiet(executionContext, resolve)).catch(reject);
    cancel = /* @__PURE__ */ __name(() => {
      if (canceled) return;
      canceled = true;
      if (lastTimeout) clearTimeout(lastTimeout);
      reject(new Error("Wait for CPU idle canceled"));
    }, "cancel");
  });
  return {
    promise,
    cancel
  };
}
__name(waitForCPUIdle, "waitForCPUIdle");
function registerPerformanceObserverInPage() {
  if (window.____lastLongTask !== void 0) return;
  window.____lastLongTask = performance.now();
  const observer = new window.PerformanceObserver((entryList) => {
    const entries = entryList.getEntries();
    for (const entry of entries) {
      if (entry.entryType === "longtask") {
        const taskEnd = entry.startTime + entry.duration;
        window.____lastLongTask = Math.max(window.____lastLongTask || 0, taskEnd);
      }
    }
  });
  observer.observe({ type: "longtask", buffered: true });
}
__name(registerPerformanceObserverInPage, "registerPerformanceObserverInPage");
function checkTimeSinceLastLongTaskInPage() {
  return new Promise((resolve) => {
    const firstAttemptTs = performance.now();
    const firstAttemptLastLongTaskTs = window.____lastLongTask || 0;
    setTimeout(() => {
      const secondAttemptLastLongTaskTs = window.____lastLongTask || 0;
      const timeSinceLongTask = firstAttemptLastLongTaskTs === secondAttemptLastLongTaskTs ? (
        // The time of the last long task hasn't changed, the information from our first attempt is accurate.
        firstAttemptTs - firstAttemptLastLongTaskTs
      ) : (
        // The time of the last long task *did* change, we can't really trust the information we have.
        0
      );
      resolve(timeSinceLongTask);
    }, 150);
  });
}
__name(checkTimeSinceLastLongTaskInPage, "checkTimeSinceLastLongTaskInPage");
function waitForLoadEvent(session, pauseAfterLoadMs) {
  let cancel = /* @__PURE__ */ __name(() => {
    throw new Error("waitForLoadEvent.cancel() called before it was defined");
  }, "cancel");
  const promise = new Promise((resolve, reject) => {
    let loadTimeout;
    const loadListener = /* @__PURE__ */ __name(function() {
      loadTimeout = setTimeout(resolve, pauseAfterLoadMs);
    }, "loadListener");
    session.once("Page.loadEventFired", loadListener);
    let canceled = false;
    cancel = /* @__PURE__ */ __name(() => {
      if (canceled) return;
      canceled = true;
      session.off("Page.loadEventFired", loadListener);
      loadTimeout && clearTimeout(loadTimeout);
    }, "cancel");
  });
  return {
    promise,
    cancel
  };
}
__name(waitForLoadEvent, "waitForLoadEvent");
async function isPageHung(session) {
  try {
    session.setNextProtocolTimeout(1e3);
    await session.sendCommand("Runtime.evaluate", {
      expression: '"ping"',
      returnByValue: true
    });
    return false;
  } catch (err) {
    try {
      await Promise.race([session.onCrashPromise(), Promise.resolve()]);
    } catch (crashErr) {
      if (crashErr.code === "TARGET_CRASHED") throw crashErr;
    }
    if (err.code === "TARGET_CRASHED") throw err;
    return true;
  }
}
__name(isPageHung, "isPageHung");
var DEFAULT_WAIT_FUNCTIONS = { waitForFcp, waitForLoadEvent, waitForCPUIdle, waitForNetworkIdle };
async function waitForFullyLoaded(session, networkMonitor, options) {
  const {
    pauseAfterFcpMs,
    pauseAfterLoadMs,
    networkQuietThresholdMs,
    cpuQuietThresholdMs,
    maxWaitForLoadedMs,
    maxWaitForFcpMs
  } = options;
  const { waitForFcp: waitForFcp2, waitForLoadEvent: waitForLoadEvent2, waitForNetworkIdle: waitForNetworkIdle2, waitForCPUIdle: waitForCPUIdle2 } = options._waitForTestOverrides || DEFAULT_WAIT_FUNCTIONS;
  let maxTimeoutHandle;
  const resolveOnFcp = maxWaitForFcpMs ? waitForFcp2(session, pauseAfterFcpMs, maxWaitForFcpMs) : waitForNothing();
  const resolveOnLoadEvent = waitForLoadEvent2(session, pauseAfterLoadMs);
  const resolveOnNetworkIdle = waitForNetworkIdle2(session, networkMonitor, {
    networkQuietThresholdMs,
    busyEvent: "network-2-busy",
    idleEvent: "network-2-idle",
    isIdle: /* @__PURE__ */ __name((recorder) => recorder.is2Idle(), "isIdle")
  });
  const resolveOnCriticalNetworkIdle = waitForNetworkIdle2(session, networkMonitor, {
    networkQuietThresholdMs,
    busyEvent: "network-critical-busy",
    idleEvent: "network-critical-idle",
    isIdle: /* @__PURE__ */ __name((recorder) => recorder.isCriticalIdle(), "isIdle")
  });
  let resolveOnCPUIdle = waitForNothing();
  if (lighthouse_logger_default.isVerbose()) {
    resolveOnFcp.promise.then(() => {
      lighthouse_logger_default.verbose("waitFor", "resolveOnFcp fired");
    });
    resolveOnLoadEvent.promise.then(() => {
      lighthouse_logger_default.verbose("waitFor", "resolveOnLoadEvent fired");
    });
    resolveOnNetworkIdle.promise.then(() => {
      lighthouse_logger_default.verbose("waitFor", "resolveOnNetworkIdle fired");
    });
    resolveOnCriticalNetworkIdle.promise.then(() => {
      lighthouse_logger_default.verbose("waitFor", "resolveOnCriticalNetworkIdle fired");
    });
  }
  const loadPromise = Promise.all([
    resolveOnFcp.promise,
    resolveOnLoadEvent.promise,
    resolveOnNetworkIdle.promise,
    resolveOnCriticalNetworkIdle.promise
  ]).then(() => {
    resolveOnCPUIdle = waitForCPUIdle2(session, cpuQuietThresholdMs);
    return resolveOnCPUIdle.promise;
  }).then(() => {
    const cleanupFn2 = /* @__PURE__ */ __name(async function() {
      lighthouse_logger_default.verbose("waitFor", "loadEventFired and network considered idle");
      return { timedOut: false };
    }, "cleanupFn");
    return cleanupFn2;
  }).catch((err) => {
    return function() {
      throw err;
    };
  });
  const maxTimeoutPromise = new Promise((resolve, reject) => {
    maxTimeoutHandle = setTimeout(resolve, maxWaitForLoadedMs);
  }).then((_) => {
    return async () => {
      lighthouse_logger_default.warn("waitFor", "Timed out waiting for page load. Checking if page is hung...");
      if (await isPageHung(session)) {
        lighthouse_logger_default.warn("waitFor", "Page appears to be hung, killing JavaScript...");
        void session.sendCommandAndIgnore("Emulation.setScriptExecutionDisabled", { value: true });
        void session.sendCommandAndIgnore("Runtime.terminateExecution");
        throw new LighthouseError(LighthouseError.errors.PAGE_HUNG);
      }
      const inflightRequestUrls = networkMonitor.getInflightRequests().map((request) => request.url);
      if (inflightRequestUrls.length > 0) {
        lighthouse_logger_default.warn(
          "waitFor",
          "Remaining inflight requests URLs",
          inflightRequestUrls
        );
      }
      return { timedOut: true };
    };
  });
  const cleanupFn = await Promise.race([
    loadPromise,
    maxTimeoutPromise
  ]);
  maxTimeoutHandle && clearTimeout(maxTimeoutHandle);
  resolveOnFcp.cancel();
  resolveOnLoadEvent.cancel();
  resolveOnNetworkIdle.cancel();
  resolveOnCPUIdle.cancel();
  return cleanupFn();
}
__name(waitForFullyLoaded, "waitForFullyLoaded");
function waitForUserToContinue(driver) {
  function createInPagePromise() {
    let resolve = /* @__PURE__ */ __name(() => {
    }, "resolve");
    const promise = new Promise((r) => resolve = r);
    console.log([
      `You have enabled Lighthouse navigation debug mode.`,
      `When you have finished inspecting the page, evaluate "continueLighthouseRun()"`,
      `in the console to continue with the Lighthouse run.`
    ].join(" "));
    window.continueLighthouseRun = resolve;
    return promise;
  }
  __name(createInPagePromise, "createInPagePromise");
  driver.defaultSession.setNextProtocolTimeout(Infinity);
  return driver.executionContext.evaluate(createInPagePromise, { args: [] });
}
__name(waitForUserToContinue, "waitForUserToContinue");

// core/gather/driver/navigation.js
init_constants();
init_i18n();
init_url_utils();
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var UIStrings133 = {
  /**
   * @description Warning that the web page redirected during testing and that may have affected the load.
   * @example {https://example.com/requested/page} requested
   * @example {https://example.com/final/resolved/page} final
   */
  warningRedirected: `The page may not be loading as expected because your test URL ({requested}) was redirected to {final}. Try testing the second URL directly.`,
  /**
   * @description Warning that Lighthouse timed out while waiting for the page to load.
   */
  warningTimeout: "The page loaded too slowly to finish within the time limit. Results may be incomplete."
};
var str_112 = createIcuMessageFn({ url: "core/gather/driver/navigation.js" }.url, UIStrings133);
var DEFAULT_PAUSE_AFTER_FCP = 0;
var DEFAULT_PAUSE_AFTER_LOAD = 0;
var DEFAULT_NETWORK_QUIET_THRESHOLD = 5e3;
var DEFAULT_CPU_QUIET_THRESHOLD = 0;
function resolveWaitForFullyLoadedOptions(options) {
  let { pauseAfterFcpMs, pauseAfterLoadMs, networkQuietThresholdMs, cpuQuietThresholdMs } = options;
  let maxWaitMs = options.maxWaitForLoad;
  let maxFCPMs = options.maxWaitForFcp;
  if (typeof pauseAfterFcpMs !== "number") pauseAfterFcpMs = DEFAULT_PAUSE_AFTER_FCP;
  if (typeof pauseAfterLoadMs !== "number") pauseAfterLoadMs = DEFAULT_PAUSE_AFTER_LOAD;
  if (typeof networkQuietThresholdMs !== "number") {
    networkQuietThresholdMs = DEFAULT_NETWORK_QUIET_THRESHOLD;
  }
  if (typeof cpuQuietThresholdMs !== "number") cpuQuietThresholdMs = DEFAULT_CPU_QUIET_THRESHOLD;
  if (typeof maxWaitMs !== "number") maxWaitMs = defaultSettings.maxWaitForLoad;
  if (typeof maxFCPMs !== "number") maxFCPMs = defaultSettings.maxWaitForFcp;
  if (!options.waitUntil.includes("fcp")) maxFCPMs = void 0;
  return {
    pauseAfterFcpMs,
    pauseAfterLoadMs,
    networkQuietThresholdMs,
    cpuQuietThresholdMs,
    maxWaitForLoadedMs: maxWaitMs,
    maxWaitForFcpMs: maxFCPMs
  };
}
__name(resolveWaitForFullyLoadedOptions, "resolveWaitForFullyLoadedOptions");
async function gotoURL(driver, requestor, options) {
  const status = typeof requestor === "string" ? { msg: `Navigating to ${requestor}`, id: "lh:driver:navigate" } : { msg: "Navigating using a user defined function", id: "lh:driver:navigate" };
  lighthouse_logger_default.time(status);
  const session = driver.defaultSession;
  const networkMonitor = driver.networkMonitor;
  await session.sendCommand("Page.enable");
  await session.sendCommand("Page.setLifecycleEventsEnabled", { enabled: true });
  let waitForNavigationTriggered;
  if (typeof requestor === "string") {
    session.setNextProtocolTimeout(Infinity);
    waitForNavigationTriggered = session.sendCommand("Page.navigate", { url: requestor });
  } else {
    waitForNavigationTriggered = requestor();
  }
  const waitForNavigated = options.waitUntil.includes("navigated");
  const waitForLoad = options.waitUntil.includes("load");
  const waitForFcp2 = options.waitUntil.includes("fcp");
  const waitConditionPromises = [];
  if (waitForNavigated) {
    const navigatedPromise = waitForFrameNavigated(session).promise;
    waitConditionPromises.push(navigatedPromise.then(() => ({ timedOut: false })));
  }
  if (waitForLoad) {
    const waitOptions = resolveWaitForFullyLoadedOptions(options);
    waitConditionPromises.push(waitForFullyLoaded(session, networkMonitor, waitOptions));
  } else if (waitForFcp2) {
    throw new Error("Cannot wait for FCP without waiting for page load");
  }
  const waitConditions = await Promise.race([
    session.onCrashPromise(),
    Promise.all(waitConditionPromises)
  ]);
  const timedOut = waitConditions.some((condition) => condition.timedOut);
  const navigationUrls = await networkMonitor.getNavigationUrls();
  let requestedUrl = navigationUrls.requestedUrl;
  if (typeof requestor === "string") {
    if (requestedUrl && !url_utils_default.equalWithExcludedFragments(requestor, requestedUrl)) {
      lighthouse_logger_default.error(
        "Navigation",
        `Provided URL (${requestor}) did not match initial navigation URL (${requestedUrl})`
      );
    }
    requestedUrl = requestor;
  }
  if (!requestedUrl) throw Error("No navigations detected when running user defined requestor.");
  const mainDocumentUrl = navigationUrls.mainDocumentUrl || requestedUrl;
  await waitForNavigationTriggered;
  if (options.debugNavigation) {
    await waitForUserToContinue(driver);
  }
  lighthouse_logger_default.timeEnd(status);
  return {
    requestedUrl,
    mainDocumentUrl,
    warnings: getNavigationWarnings({ timedOut, mainDocumentUrl, requestedUrl })
  };
}
__name(gotoURL, "gotoURL");
function getNavigationWarnings(navigation2) {
  const { requestedUrl, mainDocumentUrl } = navigation2;
  const warnings = [];
  if (navigation2.timedOut) warnings.push(str_112(UIStrings133.warningTimeout));
  if (!url_utils_default.equalWithExcludedFragments(requestedUrl, mainDocumentUrl)) {
    warnings.push(str_112(UIStrings133.warningRedirected, {
      requested: requestedUrl,
      final: mainDocumentUrl
    }));
  }
  return warnings;
}
__name(getNavigationWarnings, "getNavigationWarnings");

// core/gather/navigation-runner.js
init_config();
init_format();
init_lh_error();
init_url_utils();

// core/lib/navigation-error.js
init_process_global();
init_lantern2();
init_lh_error();
init_network_request();
init_i18n();
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var UIStrings134 = {
  /**
   * Warning shown in report when the page under test is an XHTML document, which Lighthouse does not directly support
   * so we display a warning.
   */
  warningXhtml: "The page MIME type is XHTML: Lighthouse does not explicitly support this document type",
  /**
   * @description Warning shown in report when the page under test returns an error code, which Lighthouse is not able to reliably load so we display a warning.
   * @example {404} errorCode
   */
  warningStatusCode: "Lighthouse was unable to reliably load the page you requested. Make sure you are testing the correct URL and that the server is properly responding to all requests. (Status code: {errorCode})"
};
var str_113 = createIcuMessageFn({ url: "core/lib/navigation-error.js" }.url, UIStrings134);
var HTML_MIME_TYPE = "text/html";
var XHTML_MIME_TYPE = "application/xhtml+xml";
function getNetworkError(mainRecord, context) {
  if (!mainRecord) {
    return new LighthouseError(LighthouseError.errors.NO_DOCUMENT_REQUEST);
  } else if (mainRecord.failed) {
    const netErr = mainRecord.localizedFailDescription;
    if (netErr === "net::ERR_NAME_NOT_RESOLVED" || netErr === "net::ERR_NAME_RESOLUTION_FAILED" || netErr.startsWith("net::ERR_DNS_")) {
      return new LighthouseError(LighthouseError.errors.DNS_FAILURE);
    } else {
      return new LighthouseError(
        LighthouseError.errors.FAILED_DOCUMENT_REQUEST,
        { errorDetails: netErr }
      );
    }
  } else if (mainRecord.hasErrorStatusCode()) {
    if (context.ignoreStatusCode) {
      context.warnings.push(str_113(UIStrings134.warningStatusCode, { errorCode: mainRecord.statusCode }));
    } else {
      return new LighthouseError(LighthouseError.errors.ERRORED_DOCUMENT_REQUEST, {
        statusCode: `${mainRecord.statusCode}`
      });
    }
  }
}
__name(getNetworkError, "getNetworkError");
function getInterstitialError(mainRecord, networkRecords) {
  if (!mainRecord) return void 0;
  const interstitialRequest = networkRecords.find(
    (record) => record.documentURL.startsWith("chrome-error://")
  );
  if (!interstitialRequest) return void 0;
  if (!mainRecord.failed) return void 0;
  if (mainRecord.localizedFailDescription.startsWith("net::ERR_CERT")) {
    return new LighthouseError(LighthouseError.errors.INSECURE_DOCUMENT_REQUEST, {
      securityMessages: mainRecord.localizedFailDescription
    });
  }
  return new LighthouseError(LighthouseError.errors.CHROME_INTERSTITIAL_ERROR);
}
__name(getInterstitialError, "getInterstitialError");
function getNonHtmlError(finalRecord) {
  if (!finalRecord) return void 0;
  if (!finalRecord.mimeType || finalRecord.statusCode === -1) return void 0;
  if (finalRecord.mimeType !== HTML_MIME_TYPE && finalRecord.mimeType !== XHTML_MIME_TYPE) {
    return new LighthouseError(LighthouseError.errors.NOT_HTML, {
      mimeType: finalRecord.mimeType
    });
  }
  return void 0;
}
__name(getNonHtmlError, "getNonHtmlError");
function getPageLoadError(navigationError, context) {
  const { url, networkRecords } = context;
  const mainRecordLantern = core_exports.NetworkAnalyzer.findResourceForUrl(
    networkRecords,
    url
  );
  let mainRecord = mainRecordLantern;
  if (!mainRecord) {
    const documentRequests = networkRecords.filter(
      (record) => record.resourceType === NetworkRequest.TYPES.Document
    );
    if (documentRequests.length) {
      mainRecord = documentRequests.reduce((min, r) => {
        return r.networkRequestTime < min.networkRequestTime ? r : min;
      });
    }
  }
  let finalRecord;
  if (mainRecord) {
    finalRecord = core_exports.NetworkAnalyzer.resolveRedirects(mainRecord);
  } else {
    return navigationError;
  }
  if (finalRecord?.mimeType === XHTML_MIME_TYPE) {
    context.warnings.push(str_113(UIStrings134.warningXhtml));
  }
  const networkError = getNetworkError(mainRecord, context);
  const interstitialError = getInterstitialError(mainRecord, networkRecords);
  const nonHtmlError = getNonHtmlError(finalRecord);
  if (interstitialError) return interstitialError;
  if (networkError) return networkError;
  if (nonHtmlError) return nonHtmlError;
  return navigationError;
}
__name(getPageLoadError, "getPageLoadError");

// core/gather/navigation-runner.js
init_trace();
init_devtools_log();
init_network_records();
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var DEFAULT_HOSTNAME = "127.0.0.1";
var DEFAULT_PORT = 9222;
async function _setup({ driver, resolvedConfig, requestor }) {
  await driver.connect();
  if (typeof requestor === "string" && !resolvedConfig.settings.skipAboutBlank) {
    await driver._networkMonitor?.disable();
    await gotoURL(driver, resolvedConfig.settings.blankPage, { waitUntil: ["navigated"] });
    await driver._networkMonitor?.enable();
  }
  const baseArtifacts = await getBaseArtifacts(resolvedConfig, driver, { gatherMode: "navigation" });
  const { warnings } = await prepareTargetForNavigationMode(driver, resolvedConfig.settings, requestor);
  baseArtifacts.LighthouseRunWarnings.push(...warnings);
  return { baseArtifacts };
}
__name(_setup, "_setup");
async function _cleanupNavigation({ driver }) {
  await clearThrottling(driver.defaultSession);
}
__name(_cleanupNavigation, "_cleanupNavigation");
async function _navigate(navigationContext) {
  const { driver, resolvedConfig, requestor } = navigationContext;
  try {
    const { requestedUrl, mainDocumentUrl, warnings } = await gotoURL(driver, requestor, {
      ...resolvedConfig.settings,
      waitUntil: resolvedConfig.settings.pauseAfterFcpMs ? ["fcp", "load"] : ["load"]
    });
    navigationContext.baseArtifacts.LighthouseRunWarnings.push(...warnings);
    return { requestedUrl, mainDocumentUrl, navigationError: void 0 };
  } catch (err) {
    if (!(err instanceof LighthouseError)) throw err;
    if (err.code !== "NO_FCP" && err.code !== "PAGE_HUNG" && err.code !== "TARGET_CRASHED") {
      throw err;
    }
    if (typeof requestor !== "string") throw err;
    return {
      requestedUrl: requestor,
      mainDocumentUrl: requestor,
      navigationError: err
    };
  }
}
__name(_navigate, "_navigate");
async function _collectDebugData(navigationContext, phaseState) {
  let devtoolsLog;
  let trace;
  for (const definition of phaseState.artifactDefinitions) {
    const { instance } = definition.gatherer;
    if (instance instanceof devtools_log_default) {
      devtoolsLog = instance.getDebugData();
    } else if (instance instanceof trace_default) {
      trace = instance.getDebugData();
    }
  }
  const records = devtoolsLog && await NetworkRecordsComputed.request(devtoolsLog, navigationContext);
  return { devtoolsLog, records, trace };
}
__name(_collectDebugData, "_collectDebugData");
async function _computeNavigationResult(navigationContext, phaseState, navigateResult) {
  const { navigationError, requestedUrl, mainDocumentUrl } = navigateResult;
  const debugData = await _collectDebugData(navigationContext, phaseState);
  const pageLoadError = debugData.records ? getPageLoadError(navigationError, {
    url: mainDocumentUrl,
    ignoreStatusCode: navigationContext.resolvedConfig.settings.ignoreStatusCode,
    networkRecords: debugData.records,
    warnings: navigationContext.baseArtifacts.LighthouseRunWarnings
  }) : navigationError;
  if (pageLoadError) {
    const locale = navigationContext.resolvedConfig.settings.locale;
    const localizedMessage = getFormatted(pageLoadError.friendlyMessage, locale);
    lighthouse_logger_default.error("NavigationRunner", localizedMessage, requestedUrl);
    const artifacts = {};
    if (debugData.devtoolsLog) {
      artifacts.DevtoolsLogError = debugData.devtoolsLog;
    }
    if (debugData.trace) {
      artifacts.TraceError = debugData.trace;
    }
    navigationContext.baseArtifacts.LighthouseRunWarnings.push(pageLoadError.friendlyMessage);
    navigationContext.baseArtifacts.PageLoadError = pageLoadError;
    return artifacts;
  } else {
    await collectPhaseArtifacts({ phase: "getArtifact", ...phaseState });
    return await awaitArtifacts(phaseState.artifactState);
  }
}
__name(_computeNavigationResult, "_computeNavigationResult");
async function _navigation(navigationContext) {
  if (!navigationContext.resolvedConfig.artifacts) {
    throw new Error("No artifacts were defined on the config");
  }
  const artifactState = getEmptyArtifactState();
  const phaseState = {
    url: await navigationContext.driver.url(),
    gatherMode: (
      /** @type {const} */
      "navigation"
    ),
    driver: navigationContext.driver,
    page: navigationContext.page,
    computedCache: navigationContext.computedCache,
    artifactDefinitions: navigationContext.resolvedConfig.artifacts,
    artifactState,
    baseArtifacts: navigationContext.baseArtifacts,
    settings: navigationContext.resolvedConfig.settings
  };
  const disableAsyncStacks = await enableAsyncStacks(navigationContext.driver.defaultSession);
  await collectPhaseArtifacts({ phase: "startInstrumentation", ...phaseState });
  await collectPhaseArtifacts({ phase: "startSensitiveInstrumentation", ...phaseState });
  const navigateResult = await _navigate(navigationContext);
  if (!Object.values(phaseState.baseArtifacts.URL).every(Boolean)) {
    phaseState.baseArtifacts.URL = {
      requestedUrl: navigateResult.requestedUrl,
      mainDocumentUrl: navigateResult.mainDocumentUrl,
      finalDisplayedUrl: await navigationContext.driver.url()
    };
  }
  phaseState.url = navigateResult.mainDocumentUrl;
  await collectPhaseArtifacts({ phase: "stopSensitiveInstrumentation", ...phaseState });
  await collectPhaseArtifacts({ phase: "stopInstrumentation", ...phaseState });
  await disableAsyncStacks();
  await _cleanupNavigation(navigationContext);
  return _computeNavigationResult(navigationContext, phaseState, navigateResult);
}
__name(_navigation, "_navigation");
async function _cleanup({ requestedUrl, driver, resolvedConfig, lhBrowser, lhPage }) {
  const didResetStorage = !resolvedConfig.settings.disableStorageReset && requestedUrl;
  if (didResetStorage) {
    await clearDataForOrigin(
      driver.defaultSession,
      requestedUrl,
      resolvedConfig.settings.clearStorageTypes
    );
  }
  await driver.disconnect();
  await lhPage?.close();
  await lhBrowser?.disconnect();
}
__name(_cleanup, "_cleanup");
async function navigationGather(page, requestor, options = {}) {
  const { flags = {}, config: config4 } = options;
  lighthouse_logger_default.setLevel(flags.logLevel || "error");
  const { resolvedConfig } = await initializeConfig("navigation", config4, flags);
  const computedCache = /* @__PURE__ */ new Map();
  const isCallback = typeof requestor === "function";
  const runnerOptions = { resolvedConfig, computedCache };
  const gatherFn = /* @__PURE__ */ __name(async () => {
    const normalizedRequestor = isCallback ? requestor : url_utils_default.normalizeUrl(requestor);
    let lhBrowser = void 0;
    let lhPage = void 0;
    if (!page) {
      const { hostname = DEFAULT_HOSTNAME, port = DEFAULT_PORT } = flags;
      lhBrowser = await puppeteer_core_default.connect({ browserURL: `http://${hostname}:${port}`, defaultViewport: null });
      lhPage = await lhBrowser.newPage();
      page = lhPage;
    }
    const driver = new Driver(page);
    const context = {
      driver,
      lhBrowser,
      lhPage,
      page,
      resolvedConfig,
      requestor: normalizedRequestor,
      computedCache
    };
    const { baseArtifacts } = await _setup(context);
    const artifacts2 = await _navigation({ ...context, baseArtifacts });
    await _cleanup(context);
    return finalizeArtifacts(baseArtifacts, artifacts2);
  }, "gatherFn");
  const artifacts = await Runner.gather(gatherFn, runnerOptions);
  return { artifacts, runnerOptions };
}
__name(navigationGather, "navigationGather");

// core/user-flow.js
init_runner();
init_config();
init_format();
init_config_helpers();
init_i18n();
init_lh();
/**
 * @license
 * Copyright 2021 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var UIStrings135 = {
  /**
   * @description Default name for a user flow on the given url. "User flow" refers to the series of page navigations and user interactions being tested on the page. "url" is a trimmed version of a url that only includes the domain name.
   * @example {example.com} url
   */
  defaultFlowName: "User flow ({url})",
  /**
   * @description Default name for a Lighthouse report that analyzes a page navigation. "url" is a trimmed version of a url that only includes the domain name and path.
   * @example {example.com/page} url
   */
  defaultNavigationName: "Navigation report ({url})",
  /**
   * @description Default name for a Lighthouse report that analyzes user interactions over a period of time. "url" is a trimmed version of a url that only includes the domain name and path.
   * @example {example.com/page} url
   */
  defaultTimespanName: "Timespan report ({url})",
  /**
   * @description Default name for a Lighthouse report that analyzes the page state at a point in time. "url" is a trimmed version of a url that only includes the domain name and path.
   * @example {example.com/page} url
   */
  defaultSnapshotName: "Snapshot report ({url})"
};
var str_114 = createIcuMessageFn({ url: "core/user-flow.js" }.url, UIStrings135);

// core/index.js
init_report_generator();
init_lh();
init_audit();
init_base_gatherer();
init_network_records();
init_default_config();

// core/config/desktop-config.js
init_process_global();
init_lh();
init_constants();
/**
 * @license
 * Copyright 2020 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
var config3 = {
  extends: "lighthouse:default",
  settings: {
    formFactor: "desktop",
    throttling: throttling2.desktopDense4G,
    screenEmulation: screenEmulationMetrics.desktop,
    emulatedUserAgent: userAgents.desktop
  }
};

// core/index.js
init_lh();
/**
 * @license
 * Copyright 2016 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
async function navigation(page, requestor, options) {
  const gatherResult = await navigationGather(page, requestor, options);
  return Runner.audit(gatherResult.artifacts, gatherResult.runnerOptions);
}
__name(navigation, "navigation");
async function snapshot(page, options) {
  const gatherResult = await snapshotGather(page, options);
  return Runner.audit(gatherResult.artifacts, gatherResult.runnerOptions);
}
__name(snapshot, "snapshot");
function generateReport(result, format = "html") {
  const reportOutput = ReportGenerator.generateReport(result, format);
  if (Array.isArray(reportOutput)) {
    return reportOutput[0];
  } else {
    return reportOutput;
  }
}
__name(generateReport, "generateReport");
var traceCategories = trace_default.getDefaultTraceCategories();

// clients/devtools-mcp/devtools-mcp-entry.js
/**
 * @license
 * Copyright 2026 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
export {
  generateReport,
  navigation,
  snapshot
};
//# sourceMappingURL=lighthouse-devtools-mcp-bundle.js.map
