"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
var $Map = typeof Map === "function" && Map.prototype ? Map : null;
var $Set = typeof Set === "function" && Set.prototype ? Set : null;
var exported;
if (!$Map) {
  exported = function isMap3(x) {
    return false;
  };
}
var $mapHas = $Map ? Map.prototype.has : null;
var $setHas = $Set ? Set.prototype.has : null;
if (!exported && !$mapHas) {
  exported = function isMap3(x) {
    return false;
  };
}
var isMap = exported || function isMap2(x) {
  if (!x || typeof x !== "object") {
    return false;
  }
  try {
    $mapHas.call(x);
    if ($setHas) {
      try {
        $setHas.call(x);
      } catch (e) {
        return true;
      }
    }
    return x instanceof $Map;
  } catch (e) {
  }
  return false;
};
exports.isMap = isMap;
//# sourceMappingURL=index.cjs.map
