const overrides = /* @__PURE__ */ new Map();
function getBrowserGlobal(name) {
  if (overrides.has(name)) {
    return overrides.get(name);
  }
  return globalThis[name];
}
function mustGetBrowserGlobal(name) {
  const r = getBrowserGlobal(name);
  if (r === void 0) {
    throw new Error(
      `Unsupported JavaScript environment: Could not find ${name}.`
    );
  }
  return r;
}
export {
  getBrowserGlobal,
  mustGetBrowserGlobal
};
//# sourceMappingURL=browser-env.js.map
