import{e as o,c as l,g,k as O,h as P,j as p,l as c,m as w,n as v,t as A,o as N}from"./_baseUniq-DNaAmc8t.js";import{b4 as b,aB as B,b5 as E,b6 as F,b7 as M,b8 as x,b9 as _,ba as $,bb as y,bc as T}from"./index-B2EdsORd.js";var S=/\s/;function G(n){for(var r=n.length;r--&&S.test(n.charAt(r)););return r}var H=/^\s+/;function L(n){return n&&n.slice(0,G(n)+1).replace(H,"")}var m=NaN,R=/^[-+]0x[0-9a-f]+$/i,q=/^0b[01]+$/i,z=/^0o[0-7]+$/i,C=parseInt;function K(n){if(typeof n=="number")return n;if(o(n))return m;if(b(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=b(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=L(n);var t=q.test(n);return t||z.test(n)?C(n.slice(2),t?2:8):R.test(n)?m:+n}var W=1/0,X=17976931348623157e292;function Y(n){if(!n)return n===0?n:0;if(n=K(n),n===W||n===-1/0){var r=n<0?-1:1;return r*X}return n===n?n:0}function D(n){var r=Y(n),t=r%1;return r===r?t?r-t:r:0}function fn(n){var r=n==null?0:n.length;return r?l(n):[]}var I=Object.prototype,J=I.hasOwnProperty,dn=B(function(n,r){n=Object(n);var t=-1,a=r.length,i=a>2?r[2]:void 0;for(i&&E(r[0],r[1],i)&&(a=1);++t<a;)for(var f=r[t],e=F(f),s=-1,d=e.length;++s<d;){var u=e[s],h=n[u];(h===void 0||M(h,I[u])&&!J.call(n,u))&&(n[u]=f[u])}return n});function un(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function Q(n){return function(r,t,a){var i=Object(r);if(!x(r)){var f=g(t);r=O(r),t=function(s){return f(i[s],s,i)}}var e=n(r,t,a);return e>-1?i[f?r[e]:e]:void 0}}var U=Math.max;function Z(n,r,t){var a=n==null?0:n.length;if(!a)return-1;var i=t==null?0:D(t);return i<0&&(i=U(a+i,0)),P(n,g(r),i)}var hn=Q(Z);function V(n,r){var t=-1,a=x(n)?Array(n.length):[];return p(n,function(i,f,e){a[++t]=r(i,f,e)}),a}function bn(n,r){var t=_(n)?c:V;return t(n,g(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function gn(n,r){return n!=null&&w(n,r,nn)}function rn(n,r){return n<r}function tn(n,r,t){for(var a=-1,i=n.length;++a<i;){var f=n[a],e=r(f);if(e!=null&&(s===void 0?e===e&&!o(e):t(e,s)))var s=e,d=f}return d}function mn(n){return n&&n.length?tn(n,$,rn):void 0}function en(n,r,t,a){if(!b(n))return n;r=v(r,n);for(var i=-1,f=r.length,e=f-1,s=n;s!=null&&++i<f;){var d=A(r[i]),u=t;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(i!=e){var h=s[d];u=void 0,u===void 0&&(u=b(h)?h:y(r[i+1])?[]:{})}T(s,d,u),s=s[d]}return n}function on(n,r,t){for(var a=-1,i=r.length,f={};++a<i;){var e=r[a],s=N(n,e);t(s,e)&&en(f,v(e,n),s)}return f}export{rn as a,tn as b,V as c,on as d,mn as e,fn as f,hn as g,gn as h,dn as i,D as j,un as l,bn as m,Y as t};
