import{T as e,d as t,l as n,s as r}from"./reduce-DmI60TfL.js";import{h as i,i as a,n as o}from"./_baseFor-CVV1DSgL.js";import{t as s}from"./isSymbol-D0ur5y-p.js";function c(e,t){var r=-1,i=a(e)?Array(e.length):[];return n(e,function(e,n,a){i[++r]=t(e,n,a)}),i}function l(n,r){return(i(n)?e:c)(n,t(r,3))}function u(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(c===void 0?o===o&&!s(o):n(o,c)))var c=o,l=a}return l}function d(e,t){return e<t}function f(e){return e&&e.length?u(e,o,d):void 0}function p(e){return e!=null&&e.length?r(e,1):[]}export{l as a,u as i,f as n,c as o,d as r,p as t};