"use strict";

exports.__esModule = true;
exports.isTestEnv = void 0;
exports.registerIntersectionObserver = registerIntersectionObserver;
exports.registerResizeObserver = registerResizeObserver;
exports.registerWindowMatchMedia = registerWindowMatchMedia;
function registerWindowMatchMedia() {
  if (window && !window.matchMedia) {
    window.matchMedia = function () {
      return {
        matches: false,
        media: '',
        onchange: null,
        addListener() {},
        removeListener() {},
        addEventListener() {},
        removeEventListener() {},
        dispatchEvent() {
          return false;
        }
      };
    };
  }
  global.matchMedia = global.matchMedia || window.matchMedia;
}
function registerIntersectionObserver() {
  if (typeof global !== 'undefined' && !global.IntersectionObserver) {
    global.IntersectionObserver = class IntersectionObserver {
      constructor() {}
      observe() {}
      unobserve() {}
      disconnect() {}
    };
  }
}
function registerResizeObserver() {
  if (typeof global !== 'undefined' && !global.ResizeObserver) {
    global.ResizeObserver = class ResizeObserver {
      observe() {}
      unobserve() {}
      disconnect() {}
    };
  }
}
var isTestEnv = exports.isTestEnv = process.env.NODE_ENV === 'test';
//# sourceMappingURL=match-media-register.js.map