import { __commonJS } from "../../_virtual/rolldown_runtime.mjs";
import { require_type } from "../es-errors/type.mjs";
import { require_call_bound } from "../call-bound/index.mjs";
import { require_is_regex } from "../is-regex/index.mjs";

//#region ../../node_modules/safe-regex-test/index.js
var require_safe_regex_test = /* @__PURE__ */ __commonJS({ "../../node_modules/safe-regex-test/index.js": ((exports, module) => {
	var callBound = require_call_bound();
	var isRegex = require_is_regex();
	var $exec = callBound("RegExp.prototype.exec");
	var $TypeError = require_type();
	/** @type {import('.')} */
	module.exports = function regexTester(regex) {
		if (!isRegex(regex)) throw new $TypeError("`regex` must be a RegExp");
		return function test(s) {
			return $exec(regex, s) !== null;
		};
	};
}) });

//#endregion
export default require_safe_regex_test();

export { require_safe_regex_test };
//# sourceMappingURL=index.mjs.map