import{__require as r}from"./function-call.mjs";import{__require as e}from"./a-callable.mjs";import{__require as t}from"./an-object.mjs";import{__require as i}from"./is-object.mjs";import{__require as o}from"./does-not-exceed-safe-integer.mjs";import{__require as a}from"./get-built-in.mjs";import{__require as s}from"./create-property.mjs";import{__require as n}from"./array-set-length.mjs";import{__require as m}from"./get-iterator-direct.mjs";import{__require as c}from"./async-iterator-close.mjs";var f,u;function _(){if(u)return f;u=1;var _=r(),l=e(),v=t(),p=i(),j=o(),q=a(),y=s(),h=n(),d=m(),b=c(),g=function(r){var e=0===r,t=1===r,i=2===r,o=3===r;return function(r,a,s){v(r);var n=void 0!==a;!n&&e||l(a);var m=d(r),c=q("Promise"),f=m.iterator,u=m.next,g=0;return new c(function(r,m){var l=function(r){b(f,m,r,m)},q=function(){try{if(n)try{j(g)}catch(r){l(r)}c.resolve(v(_(u,f))).then(function(u){try{if(v(u).done)e?(h(s,g),r(s)):r(!o&&(i||void 0));else{var _=u.value;try{if(n){var j=a(_,g),d=function(a){if(t)q();else if(i)a?q():b(f,r,!1,m);else if(e)try{y(s,g++,a),q()}catch(r){l(r)}else a?b(f,r,o||_,m):q()};p(j)?c.resolve(j).then(d,l):d(j)}else y(s,g++,_),q()}catch(r){l(r)}}}catch(r){m(r)}},m)}catch(r){m(r)}};q()})}};return f={toArray:g(0),forEach:g(1),every:g(2),some:g(3),find:g(4)}}export{_ as __require};