import { w as h } from "./index.es572.js";
import { g as m } from "./index.es367.js";
import { i as l } from "./index.es520.js";
import { c as w } from "./index.es386.js";
import { h as y } from "./index.es387.js";
import { s as d } from "./index.es573.js";
import { s as b } from "./index.es509.js";
import { h as g } from "./index.es516.js";
var I = h, v = m, O = l, K = w, s = y, f = d, _ = b, $ = g, p = "Object already initialized", c = v.TypeError, M = v.WeakMap, o, t, i, N = function(r) {
  return i(r) ? t(r) : o(r, {});
}, j = function(r) {
  return function(e) {
    var u;
    if (!O(e) || (u = t(e)).type !== r)
      throw new c("Incompatible receiver, " + r + " required");
    return u;
  };
};
if (I || f.state) {
  var a = f.state || (f.state = new M());
  a.get = a.get, a.has = a.has, a.set = a.set, o = function(r, e) {
    if (a.has(r))
      throw new c(p);
    return e.facade = r, a.set(r, e), e;
  }, t = function(r) {
    return a.get(r) || {};
  }, i = function(r) {
    return a.has(r);
  };
} else {
  var n = _("state");
  $[n] = !0, o = function(r, e) {
    if (s(r, n))
      throw new c(p);
    return e.facade = r, K(r, n, e), e;
  }, t = function(r) {
    return s(r, n) ? r[n] : {};
  }, i = function(r) {
    return s(r, n);
  };
}
var x = {
  set: o,
  get: t,
  has: i,
  enforce: N,
  getterFor: j
};
export {
  x as i
};
//# sourceMappingURL=index.es500.js.map
