import{__exports as r}from"../../../_virtual/es.array.to-spliced.mjs";import{__require as e}from"../internals/export.mjs";import{__require as t}from"../internals/add-to-unscopables.mjs";import{__require as i}from"../internals/does-not-exceed-safe-integer.mjs";import{__require as o}from"../internals/length-of-array-like.mjs";import{__require as a}from"../internals/to-absolute-index.mjs";import{__require as s}from"../internals/to-indexed-object.mjs";import{__require as n}from"../internals/to-integer-or-infinity.mjs";import{__require as m}from"../internals/create-property.mjs";var _;function p(){if(_)return r;_=1;var p=e(),f=t(),l=i(),u=o(),d=a(),j=s(),c=n(),q=m(),x=Array,y=Math.max,g=Math.min;return p({target:"Array",proto:!0},{toSpliced:function(r,e){var t,i,o,a,s=j(this),n=u(s),m=d(r,n),_=arguments.length,p=0;for(0===_?t=i=0:1===_?(t=0,i=n-m):(t=_-2,i=g(y(c(e),0),n-m)),o=l(n+t-i),a=x(o);p<m;p++)q(a,p,s[p]);for(;p<m+t;p++)q(a,p,arguments[p-m+2]);for(;p<o;p++)q(a,p,s[p+i-t]);return a}}),f("toSpliced"),r}export{p as __require};