import{__require as r}from"./a-callable.mjs";import{__require as e}from"./to-object.mjs";import{__require as i}from"./indexed-object.mjs";import{__require as o}from"./length-of-array-like.mjs";var t,a;function n(){if(a)return t;a=1;var n=r(),f=e(),u=i(),m=o(),_=TypeError,s="Reduce of empty array with no initial value",l=function(r){return function(e,i,o,t){var a=f(e),l=u(a),c=m(a);if(n(i),0===c&&o<2)throw new _(s);var p=r?c-1:0,j=r?-1:1;if(o<2)for(;;){if(p in l){t=l[p],p+=j;break}if(p+=j,r?p<0:c<=p)throw new _(s)}for(;r?p>=0:c>p;p+=j)p in l&&(t=i(t,l[p],p,a));return t}};return t={left:l(!1),right:l(!0)}}export{n as __require};