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