import{__exports as r}from"../../../_virtual/es.typed-array.set.mjs";import{__require as e}from"../internals/global-this.mjs";import{__require as t}from"../internals/function-call.mjs";import{__require as i}from"../internals/array-buffer-view-core.mjs";import{__require as n}from"../internals/length-of-array-like.mjs";import{__require as a}from"../internals/to-offset.mjs";import{__require as o}from"../internals/to-object.mjs";import{__require as s}from"../internals/fails.mjs";var m;function f(){if(m)return r;m=1;var f=e(),_=t(),l=i(),u=n(),p=a(),h=o(),y=s(),j=f.RangeError,v=f.Int8Array,c=v&&v.prototype,g=c&&c.set,q=l.aTypedArray,A=l.exportTypedArrayMethod,d=!y(function(){var r=new Uint8ClampedArray(2);return _(g,r,{length:1,0:3},1),3!==r[1]}),w=d&&l.NATIVE_ARRAY_BUFFER_VIEWS&&y(function(){var r=new v(2);return r.set(1),r.set("2",1),0!==r[0]||2!==r[1]});return A("set",function(r){q(this);var e=p(arguments.length>1?arguments[1]:void 0,1),t=h(r);if(d)return _(g,this,t,e);var i=this.length,n=u(t),a=0;if(n+e>i)throw new j("Wrong length");for(;a<n;)this[e+a]=t[a++]},!d||w),r}export{f as __require};