import { __require as requireHasown } from "../hasown/index.js";
var esShimUnscopables;
var hasRequiredEsShimUnscopables;
function requireEsShimUnscopables() {
  if (hasRequiredEsShimUnscopables) return esShimUnscopables;
  hasRequiredEsShimUnscopables = 1;
  var hasOwn = requireHasown();
  var hasUnscopables = typeof Symbol === "function" && typeof Symbol.unscopables === "symbol";
  var map = hasUnscopables && Array.prototype[Symbol.unscopables];
  var $TypeError = TypeError;
  esShimUnscopables = function shimUnscopables(method) {
    if (typeof method !== "string" || !method) {
      throw new $TypeError("method must be a non-empty string");
    }
    if (!hasOwn(Array.prototype, method)) {
      throw new $TypeError("method must be on Array.prototype");
    }
    if (hasUnscopables && map) {
      map[method] = true;
    }
  };
  return esShimUnscopables;
}
export {
  requireEsShimUnscopables as __require
};
