import e from "./_arrayMap.js";
import t from "./isArray.js";
import n from "./identity.js";
import r from "./_baseUnary.js";
import i from "./_baseGet.js";
import a from "./_baseIteratee.js";
import o from "./_baseMap.js";
import s from "./_baseSortBy.js";
import c from "./_compareMultiple.js";
//#region ../../node_modules/lodash-es/_baseOrderBy.js
function l(l, u, d) {
	u = u.length ? e(u, function(e) {
		return t(e) ? function(t) {
			return i(t, e.length === 1 ? e[0] : e);
		} : e;
	}) : [n];
	var f = -1;
	return u = e(u, r(a)), s(o(l, function(t, n, r) {
		return {
			criteria: e(u, function(e) {
				return e(t);
			}),
			index: ++f,
			value: t
		};
	}), function(e, t) {
		return c(e, t, d);
	});
}
//#endregion
export { l as default };

//# sourceMappingURL=_baseOrderBy.js.map