import{bT as w,c2 as o,c6 as p,bP as x,be as A,c7 as g,c8 as F,c9 as R,ca as E,cb as b,cc as S,cd as N,ce as m}from"./index-DOFLUERq.js";import{a as C}from"./_arrayEach-DpGxo2Of.js";function T(){}function y(n,r,e,s){for(var t=n.length,i=e+-1;++i<t;)if(r(n[i],i,n))return i;return-1}function O(n){return n!==n}function P(n,r,e){for(var s=e-1,t=n.length;++s<t;)if(n[s]===r)return s;return-1}function Y(n,r,e){return r===r?P(n,r,e):y(n,O,e)}function _(n,r){var e=n==null?0:n.length;return!!e&&Y(n,r,0)>-1}var I=w?w.isConcatSpreadable:void 0;function q(n){return o(n)||p(n)||!!(I&&n&&n[I])}function v(n,r,e,s,t){var i=-1,h=n.length;for(e||(e=q),t||(t=[]);++i<h;){var f=n[i];e(f)?x(t,f):s||(t[t.length]=f)}return t}function G(n){return typeof n=="function"?n:A}function z(n,r){var e=o(n)?C:g;return e(n,G(r))}function H(n,r){var e=[];return g(n,function(s,t,i){r(s,t,i)&&e.push(s)}),e}function B(n,r){var e=o(n)?R:H;return e(n,F(r))}function L(n,r,e,s,t){return t(n,function(i,h,f){e=s?(s=!1,i):r(e,i,h,f)}),e}function D(n,r,e){var s=o(n)?E:L,t=arguments.length<3;return s(n,F(r),e,t,g)}var U=1/0,Z=b&&1/S(new b([,-0]))[1]==U?function(n){return new b(n)}:T,$=200;function J(n,r,e){var s=-1,t=_,i=n.length,h=!0,f=[],a=f;if(i>=$){var d=r?null:Z(n);if(d)return S(d);h=!1,t=m,a=new N}else a=r?[]:f;n:for(;++s<i;){var c=n[s],u=r?r(c):c;if(c=c!==0?c:0,h&&u===u){for(var l=a.length;l--;)if(a[l]===u)continue n;r&&a.push(u),f.push(c)}else t(a,u,e)||(a!==f&&a.push(u),f.push(c))}return f}export{J as a,v as b,z as c,y as d,G as e,B as f,D as r};
