"use strict";
/*!
 * Vue3-Lazyload.js v0.2.5-beta
 * A Vue3.x image lazyload plugin
 * (c) 2021 MuRong <admin@imuboy.cn>
 * Released under the MIT License.
 */
var LifecycleEnum;
(function(LifecycleEnum2) {
  LifecycleEnum2["LOADING"] = "loading";
  LifecycleEnum2["LOADED"] = "loaded";
  LifecycleEnum2["ERROR"] = "error";
})(LifecycleEnum || (LifecycleEnum = {}));
var inBrowser = typeof window !== "undefined" && window !== null;
checkIntersectionObserver();
function checkIntersectionObserver() {
  if (inBrowser && "IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) {
    if (!("isIntersecting" in window.IntersectionObserverEntry.prototype)) {
      Object.defineProperty(window.IntersectionObserverEntry.prototype, "isIntersecting", {
        get: function() {
          return this.intersectionRatio > 0;
        }
      });
    }
    return true;
  }
  return false;
}
