import { __module as d } from "../../../../../_virtual/index3.js";
var q = d.exports, _;
function B() {
  return _ ? d.exports : (_ = 1, function(A) {
    (function(m, l) {
      A.exports = l();
    })(q, function() {
      var m = Object.prototype.toString;
      function l(u, t) {
        return u == null ? !1 : Object.prototype.hasOwnProperty.call(u, t);
      }
      function a(u) {
        if (!u || s(u) && u.length === 0)
          return !0;
        if (typeof u != "string") {
          for (var t in u)
            if (l(u, t))
              return !1;
          return !0;
        }
        return !1;
      }
      function S(u) {
        return m.call(u);
      }
      function I(u) {
        return typeof u == "object" && S(u) === "[object Object]";
      }
      var s = Array.isArray || function(u) {
        return m.call(u) === "[object Array]";
      };
      function x(u) {
        return typeof u == "boolean" || S(u) === "[object Boolean]";
      }
      function g(u) {
        var t = parseInt(u);
        return t.toString() === u ? t : u;
      }
      function O(u) {
        u = u || {};
        var t = function(n) {
          return Object.keys(t).reduce(function(e, r) {
            return r === "create" || typeof t[r] == "function" && (e[r] = t[r].bind(t, n)), e;
          }, {});
        }, c;
        u.includeInheritedProps ? c = function() {
          return !0;
        } : c = function(n, e) {
          return typeof e == "number" && Array.isArray(n) || l(n, e);
        };
        function w(n, e) {
          if (c(n, e))
            return n[e];
        }
        var o;
        u.includeInheritedProps ? o = function(n, e) {
          typeof e != "string" && typeof e != "number" && (e = String(e));
          var r = w(n, e);
          if (e === "__proto__" || e === "prototype" || e === "constructor" && typeof r == "function")
            throw new Error("For security reasons, object's magic properties cannot be set");
          return r;
        } : o = function(n, e) {
          return w(n, e);
        };
        function v(n, e, r, i) {
          if (typeof e == "number" && (e = [e]), !e || e.length === 0)
            return n;
          if (typeof e == "string")
            return v(n, e.split(".").map(g), r, i);
          var f = e[0], y = o(n, f);
          return e.length === 1 ? ((y === void 0 || !i) && (n[f] = r), y) : (y === void 0 && (typeof e[1] == "number" ? n[f] = [] : n[f] = {}), v(n[f], e.slice(1), r, i));
        }
        return t.has = function(n, e) {
          if (typeof e == "number" ? e = [e] : typeof e == "string" && (e = e.split(".")), !e || e.length === 0)
            return !!n;
          for (var r = 0; r < e.length; r++) {
            var i = g(e[r]);
            if (typeof i == "number" && s(n) && i < n.length || (u.includeInheritedProps ? i in Object(n) : l(n, i)))
              n = n[i];
            else
              return !1;
          }
          return !0;
        }, t.ensureExists = function(n, e, r) {
          return v(n, e, r, !0);
        }, t.set = function(n, e, r, i) {
          return v(n, e, r, i);
        }, t.insert = function(n, e, r, i) {
          var f = t.get(n, e);
          i = ~~i, s(f) || (f = [], t.set(n, e, f)), f.splice(i, 0, r);
        }, t.empty = function(n, e) {
          if (!a(e) && n != null) {
            var r, i;
            if (r = t.get(n, e)) {
              if (typeof r == "string")
                return t.set(n, e, "");
              if (x(r))
                return t.set(n, e, !1);
              if (typeof r == "number")
                return t.set(n, e, 0);
              if (s(r))
                r.length = 0;
              else if (I(r))
                for (i in r)
                  c(r, i) && delete r[i];
              else
                return t.set(n, e, null);
            }
          }
        }, t.push = function(n, e) {
          var r = t.get(n, e);
          s(r) || (r = [], t.set(n, e, r)), r.push.apply(r, Array.prototype.slice.call(arguments, 2));
        }, t.coalesce = function(n, e, r) {
          for (var i, f = 0, y = e.length; f < y; f++)
            if ((i = t.get(n, e[f])) !== void 0)
              return i;
          return r;
        }, t.get = function(n, e, r) {
          if (typeof e == "number" && (e = [e]), !e || e.length === 0)
            return n;
          if (n == null)
            return r;
          if (typeof e == "string")
            return t.get(n, e.split("."), r);
          var i = g(e[0]), f = o(n, i);
          return f === void 0 ? r : e.length === 1 ? f : t.get(n[i], e.slice(1), r);
        }, t.del = function(e, r) {
          if (typeof r == "number" && (r = [r]), e == null || a(r))
            return e;
          if (typeof r == "string")
            return t.del(e, r.split("."));
          var i = g(r[0]);
          if (o(e, i), !c(e, i))
            return e;
          if (r.length === 1)
            s(e) ? e.splice(i, 1) : delete e[i];
          else
            return t.del(e[i], r.slice(1));
          return e;
        }, t;
      }
      var P = O();
      return P.create = O, P.withInheritedProps = O({ includeInheritedProps: !0 }), P;
    });
  }(d), d.exports);
}
export {
  B as __require
};
//# sourceMappingURL=index.js.map
