import e from "./_arrayPush.js";
import t from "./_isFlattenable.js";
//#region ../../node_modules/lodash-es/_baseFlatten.js
function n(r, i, a, o, s) {
	var c = -1, l = r.length;
	for (a ||= t, s ||= []; ++c < l;) {
		var u = r[c];
		i > 0 && a(u) ? i > 1 ? n(u, i - 1, a, o, s) : e(s, u) : o || (s[s.length] = u);
	}
	return s;
}
//#endregion
export { n as default };
