import{__exports as r}from"../../../_virtual/esnext.async-iterator.take.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/function-call.mjs";import{__require as n}from"../internals/an-object.mjs";import{__require as i}from"../internals/get-iterator-direct.mjs";import{__require as o}from"../internals/not-a-nan.mjs";import{__require as a}from"../internals/to-positive-integer.mjs";import{__require as s}from"../internals/async-iterator-create-proxy.mjs";import{__require as m}from"../internals/create-iter-result-object.mjs";var u;function _(){if(u)return r;u=1;var _=e(),f=t(),l=n(),c=i(),p=o(),v=a(),j=s(),d=m(),q=j(function(r){var e,t=this,n=t.iterator;if(!t.remaining--){var i=d(void 0,!0);return t.done=!0,void 0!==(e=n.return)?r.resolve(f(e,n,void 0)).then(function(){return i}):i}return r.resolve(f(t.next,n)).then(function(r){return l(r).done?(t.done=!0,d(void 0,!0)):d(r.value,!1)}).then(null,function(r){throw t.done=!0,r})});return _({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{take:function(r){l(this);var e=v(p(+r));return new q(c(this),{remaining:e})}}),r}export{_ as __require};