import{aM as x,aA as I,aN as M,aO as O,aP as l,aQ as m,aR as h,aF as w,aS as A,aT as F,aU as N,aV as E,aW as P}from"./index-DmZQsxOK.js";import{c as p}from"./_baseUniq-BxBa45pm.js";var g=1/0,R=17976931348623157e292;function T(n){if(!n)return n===0?n:0;if(n=x(n),n===g||n===-g){var a=n<0?-1:1;return a*R}return n===n?n:0}function L(n){var a=T(n),r=a%1;return a===a?r?a-r:a:0}var b=Object.prototype,S=b.hasOwnProperty,Y=I(function(n,a){n=Object(n);var r=-1,e=a.length,t=e>2?a[2]:void 0;for(t&&M(a[0],a[1],t)&&(e=1);++r-1?t[f?a[i]:i]:void 0}}var C=Math.max;function G(n,a,r){var e=n==null?0:n.length;if(!e)return-1;var t=r==null?0:L(r);return t<0&&(t=C(e+t,0)),A(n,h(a),t)}var o=q(G);function Q(n,a){var r=-1,e=m(n)?Array(n.length):[];return p(n,function(t,f,i){e[++r]=a(t,f,i)}),e}function z(n,a){var r=F(n)?N:Q;return r(n,h(a))}function U(n,a){return n