"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("../../_virtual/index14.cjs");
const index$1 = require("../get-intrinsic/index.cjs");
const callBound$1 = require("../call-bind/callBound.cjs");
var GetIntrinsic = index$1.getIntrinsic;
var callBound = callBound$1.callBound;
var $WeakSet = GetIntrinsic("%WeakSet%", true);
var $setHas = callBound("WeakSet.prototype.has", true);
if ($setHas) {
  var $mapHas = callBound("WeakMap.prototype.has", true);
  index.__module.exports = function isWeakSet(x) {
    if (!x || typeof x !== "object") {
      return false;
    }
    try {
      $setHas(x, $setHas);
      if ($mapHas) {
        try {
          $mapHas(x, $mapHas);
        } catch (e) {
          return true;
        }
      }
      return x instanceof $WeakSet;
    } catch (e) {
    }
    return false;
  };
} else {
  index.__module.exports = function isWeakSet(x) {
    return false;
  };
}
var isWeaksetExports = index.__module.exports;
exports.isWeaksetExports = isWeaksetExports;
//# sourceMappingURL=index.cjs.map
