function f(r){if(Array.isArray(r))return r}function b(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,i,u,a,l=[],o=!0,c=!1;try{if(u=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;o=!1}else for(;!(o=(n=u.call(t)).done)&&(l.push(n.value),l.length!==e);o=!0);}catch(s){c=!0,i=s}finally{try{if(!o&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}function y(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function d(r,e){if(r){if(typeof r=="string")return y(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(r,e):void 0}}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(r,e){return f(r)||b(r,e)||d(r,e)||m()}export{h as _,y as a,d as b};
