import{S as e,b as t}from"./_Uint8Array.DjkcCK1N.js";import{n,v as r}from"./_getTag.-mRH5aCm.js";import{a as i,i as a,r as o,t as s}from"./_arrayIncludesWith.b4wEvreZ.js";import{t as c,u as l}from"./_baseEach.DRw6djL6.js";function u(){}function d(e){return typeof e==`function`?e:t}function f(t,n){return(e(t)?r:c)(t,d(n))}var p=n&&1/l(new n([,-0]))[1]==1/0?function(e){return new n(e)}:u,m=200;function h(e,t,n){var r=-1,c=i,u=e.length,d=!0,f=[],h=f;if(n)d=!1,c=s;else if(u>=m){var g=t?null:p(e);if(g)return l(g);d=!1,c=o,h=new a}else h=t?[]:f;outer:for(;++r<u;){var _=e[r],v=t?t(_):_;if(_=n||_!==0?_:0,d&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),f.push(_)}else c(h,v,n)||(h!==f&&h.push(v),f.push(_))}return f}export{f as n,d as r,h as t};