import{__require as r}from"./array-buffer-basic-detection.mjs";import{__require as t}from"./descriptors.mjs";import{__require as o}from"./global-this.mjs";import{__require as e}from"./is-callable.mjs";import{__require as i}from"./is-object.mjs";import{__require as a}from"./has-own-property.mjs";import{__require as n}from"./classof.mjs";import{__require as p}from"./try-to-string.mjs";import{__require as f}from"./create-non-enumerable-property.mjs";import{__require as s}from"./define-built-in.mjs";import{__require as y}from"./define-built-in-accessor.mjs";import{__require as m}from"./object-is-prototype-of.mjs";import{__require as u}from"./object-get-prototype-of.mjs";import{__require as c}from"./object-set-prototype-of.mjs";import{__require as _}from"./well-known-symbol.mjs";import{__require as A}from"./uid.mjs";import{__require as d}from"./internal-state.mjs";var j,l;function q(){if(l)return j;l=1;var q,T,b,h=r(),g=t(),v=o(),w=e(),I=i(),R=a(),U=n(),E=p(),C=f(),F=s(),Y=y(),V=m(),x=u(),B=c(),D=_(),P=A(),S=d(),G=S.enforce,M=S.get,O=v.Int8Array,k=O&&O.prototype,N=v.Uint8ClampedArray,W=N&&N.prototype,z=O&&x(O),H=k&&x(k),J=Object.prototype,K=v.TypeError,L=D("toStringTag"),Q=P("TYPED_ARRAY_TAG"),X="TypedArrayConstructor",Z=h&&!!B&&"Opera"!==U(v.opera),$=!1,rr={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},tr={BigInt64Array:8,BigUint64Array:8},or=function(r){var t=x(r);if(I(t)){var o=M(t);return o&&R(o,X)?o[X]:or(t)}},er=function(r){if(!I(r))return!1;var t=U(r);return R(rr,t)||R(tr,t)};for(q in rr)(b=(T=v[q])&&T.prototype)?G(b)[X]=T:Z=!1;for(q in tr)(b=(T=v[q])&&T.prototype)&&(G(b)[X]=T);if((!Z||!w(z)||z===Function.prototype)&&(z=function(){throw new K("Incorrect invocation")},Z))for(q in rr)v[q]&&B(v[q],z);if((!Z||!H||H===J)&&(H=z.prototype,Z))for(q in rr)v[q]&&B(v[q].prototype,H);if(Z&&x(W)!==H&&B(W,H),g&&!R(H,L))for(q in $=!0,Y(H,L,{configurable:!0,get:function(){return I(this)?this[Q]:void 0}}),rr)v[q]&&C(v[q],Q,q);return j={NATIVE_ARRAY_BUFFER_VIEWS:Z,TYPED_ARRAY_TAG:$&&Q,aTypedArray:function(r){if(er(r))return r;throw new K("Target is not a typed array")},aTypedArrayConstructor:function(r){if(w(r)&&(!B||V(z,r)))return r;throw new K(E(r)+" is not a typed array constructor")},exportTypedArrayMethod:function(r,t,o,e){if(g){if(o)for(var i in rr){var a=v[i];if(a&&R(a.prototype,r))try{delete a.prototype[r]}catch(o){try{a.prototype[r]=t}catch(r){}}}H[r]&&!o||F(H,r,o?t:Z&&k[r]||t,e)}},exportTypedArrayStaticMethod:function(r,t,o){var e,i;if(g){if(B){if(o)for(e in rr)if((i=v[e])&&R(i,r))try{delete i[r]}catch(r){}if(z[r]&&!o)return;try{return F(z,r,o?t:Z&&z[r]||t)}catch(r){}}for(e in rr)!(i=v[e])||i[r]&&!o||F(i,r,t)}},getTypedArrayConstructor:or,isView:function(r){if(!I(r))return!1;var t=U(r);return"DataView"===t||R(rr,t)||R(tr,t)},isTypedArray:er,TypedArray:z,TypedArrayPrototype:H}}export{q as __require};