import{__exports as r}from"../../../_virtual/es.iterator.map.mjs";import{__require as t}from"../internals/export.mjs";import{__require as e}from"../internals/function-call.mjs";import{__require as i}from"../internals/a-callable.mjs";import{__require as o}from"../internals/an-object.mjs";import{__require as a}from"../internals/get-iterator-direct.mjs";import{__require as s}from"../internals/iterator-create-proxy.mjs";import{__require as n}from"../internals/call-with-safe-iteration-closing.mjs";import{__require as m}from"../internals/iterator-close.mjs";import{__require as p}from"../internals/iterator-helper-throws-on-invalid-iterator.mjs";import{__require as l}from"../internals/iterator-helper-without-closing-on-early-error.mjs";import{__require as _}from"../internals/is-pure.mjs";var u;function f(){if(u)return r;u=1;var f=t(),c=e(),h=i(),j=o(),q=a(),v=s(),d=n(),w=m(),x=p(),g=l(),y=_(),b=!y&&!x("map",function(){}),E=!y&&!b&&g("map",TypeError),I=y||b||E,T=v(function(){var r=this.iterator,t=j(c(this.next,r));if(!(this.done=!!t.done))return d(r,this.mapper,[t.value,this.counter++],!0)});return f({target:"Iterator",proto:!0,real:!0,forced:I},{map:function(r){j(this);try{h(r)}catch(r){w(this,"throw",r)}return E?c(E,this,r):new T(q(this),{mapper:r})}}),r}export{f as __require};