import { __commonJS } from "../../_virtual/rolldown_runtime.mjs";
import { require_es_define_property } from "../es-define-property/index.mjs";
import { require_call_bind_apply_helpers } from "../call-bind-apply-helpers/index.mjs";
import { require_set_function_length } from "../set-function-length/index.mjs";
import { require_applyBind } from "../call-bind-apply-helpers/applyBind.mjs";

//#region ../../node_modules/call-bind/index.js
var require_call_bind = /* @__PURE__ */ __commonJS({ "../../node_modules/call-bind/index.js": ((exports, module) => {
	var setFunctionLength = require_set_function_length();
	var $defineProperty = require_es_define_property();
	var callBindBasic = require_call_bind_apply_helpers();
	var applyBind = require_applyBind();
	module.exports = function callBind(originalFunction) {
		var func = callBindBasic(arguments);
		var adjustedLength = originalFunction.length - (arguments.length - 1);
		return setFunctionLength(func, 1 + (adjustedLength > 0 ? adjustedLength : 0), true);
	};
	if ($defineProperty) $defineProperty(module.exports, "apply", { value: applyBind });
	else module.exports.apply = applyBind;
}) });

//#endregion
export default require_call_bind();

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