import{aJ as i,a7 as a,ao as u,cu as o,aK as c}from"./index-E0AVXOTn.js";function f(n,r){if(r===void 0)return e=>f(n,e);const t=new Set,s=e=>t.has(e)?!1:(t.add(e),!0);if(i(r))return a(r,u(e=>o(n(e),s)));if(c(r))return a(r,u(e=>o(n(e),s)));throw new TypeError("'iterable' must be type of Iterable or AsyncIterable")}export{f as u};