import{E as e,d as t,l as n,s as r,y as i}from"./reduce-CulceXYF.js";import{g as a,i as o,n as s}from"./_baseFor-CPf-8vV8.js";function c(e,t){var r=-1,i=o(e)?Array(e.length):[];return n(e,function(e,n,a){i[++r]=t(e,n,a)}),i}function l(n,r){return(a(n)?e:c)(n,t(r,3))}function u(e,t,n){for(var r=-1,a=e.length;++r<a;){var o=e[r],s=t(o);if(s!=null&&(c===void 0?s===s&&!i(s):n(s,c)))var c=s,l=o}return l}function d(e,t){return e<t}function f(e){return e&&e.length?u(e,s,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};