import{__exports as r}from"../../../_virtual/es.array.splice.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/to-object.mjs";import{__require as i}from"../internals/to-absolute-index.mjs";import{__require as s}from"../internals/to-integer-or-infinity.mjs";import{__require as o}from"../internals/length-of-array-like.mjs";import{__require as a}from"../internals/array-set-length.mjs";import{__require as n}from"../internals/does-not-exceed-safe-integer.mjs";import{__require as m}from"../internals/array-species-create.mjs";import{__require as p}from"../internals/create-property.mjs";import{__require as _}from"../internals/delete-property-or-throw.mjs";import{__require as f}from"../internals/array-method-has-species-support.mjs";var l;function u(){if(l)return r;l=1;var u=e(),j=t(),c=i(),q=s(),h=o(),y=a(),d=n(),g=m(),x=p(),v=_(),b=f()("splice"),M=Math.max,k=Math.min;return u({target:"Array",proto:!0,forced:!b},{splice:function(r,e){var t,i,s,o,a,n,m=j(this),p=h(m),_=c(r,p),f=arguments.length;for(0===f?t=i=0:1===f?(t=0,i=p-_):(t=f-2,i=k(M(q(e),0),p-_)),d(p+t-i),s=g(m,i),o=0;o<i;o++)(a=_+o)in m&&x(s,o,m[a]);if(y(s,i),t<i){for(o=_;o<p-i;o++)n=o+t,(a=o+i)in m?m[n]=m[a]:v(m,n);for(o=p;o>p-i+t;o--)v(m,o-1)}else if(t>i)for(o=p-i;o>_;o--)n=o+t-1,(a=o+i-1)in m?m[n]=m[a]:v(m,n);for(o=0;o<t;o++)m[o+_]=arguments[o+2];return y(m,p-i+t),s}}),r}export{u as __require};