import { __require as g } from "./index.es666.js";
import { __require as O } from "./index.es388.js";
import { __require as K } from "./index.es505.js";
import { __require as M } from "./index.es426.js";
import { __require as N } from "./index.es427.js";
import { __require as W } from "./index.es630.js";
import { __require as j } from "./index.es566.js";
import { __require as k } from "./index.es573.js";
var _, p;
function x() {
  if (p) return _;
  p = 1;
  var h = /* @__PURE__ */ g(), c = /* @__PURE__ */ O(), m = /* @__PURE__ */ K(), l = /* @__PURE__ */ M(), o = /* @__PURE__ */ N(), f = /* @__PURE__ */ W(), y = /* @__PURE__ */ j(), d = /* @__PURE__ */ k(), q = "Object already initialized", s = c.TypeError, w = c.WeakMap, i, t, u, I = function(r) {
    return u(r) ? t(r) : i(r, {});
  }, b = function(r) {
    return function(a) {
      var v;
      if (!m(a) || (v = t(a)).type !== r)
        throw new s("Incompatible receiver, " + r + " required");
      return v;
    };
  };
  if (h || f.state) {
    var e = f.state || (f.state = new w());
    e.get = e.get, e.has = e.has, e.set = e.set, i = function(r, a) {
      if (e.has(r)) throw new s(q);
      return a.facade = r, e.set(r, a), a;
    }, t = function(r) {
      return e.get(r) || {};
    }, u = function(r) {
      return e.has(r);
    };
  } else {
    var n = y("state");
    d[n] = !0, i = function(r, a) {
      if (o(r, n)) throw new s(q);
      return a.facade = r, l(r, n, a), a;
    }, t = function(r) {
      return o(r, n) ? r[n] : {};
    }, u = function(r) {
      return o(r, n);
    };
  }
  return _ = {
    set: i,
    get: t,
    has: u,
    enforce: I,
    getterFor: b
  }, _;
}
export {
  x as __require
};
//# sourceMappingURL=index.es582.js.map
