-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowser.js
More file actions
3 lines (3 loc) · 98.7 KB
/
Copy pathbrowser.js
File metadata and controls
3 lines (3 loc) · 98.7 KB
1
2
3
// Copyright (c) 2026 The Stdlib Authors. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0
var r,t;r=this,t=function(){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo");function t(){return r&&"symbol"==typeof Symbol.toStringTag}var e=Object.prototype.toString,n=Object.prototype.hasOwnProperty;function i(r,t){return null!=r&&n.call(r,t)}var o,a="function"==typeof Symbol?Symbol:void 0,u="function"==typeof a?a.toStringTag:"";o=t()?function(r){var t,n,o;if(null==r)return e.call(r);n=r[u],t=i(r,u);try{r[u]=void 0}catch(t){return e.call(r)}return o=e.call(r),t?r[u]=n:delete r[u],o}:function(r){return e.call(r)};var f=o,s="function"==typeof Float16Array,l=Number.POSITIVE_INFINITY,h="function"==typeof Float16Array?Float16Array:null;function c(){return"function"==typeof a&&"symbol"==typeof a("foo")&&i(a,"iterator")&&"symbol"==typeof a.iterator}var p="function"==typeof Object.defineProperty?Object.defineProperty:null,y=Object.defineProperty;function g(r){return"number"==typeof r}function m(r){var t,e="";for(t=0;t<r;t++)e+="0";return e}function w(r,t,e){var n=!1,i=t-r.length;return i<0||(function(r){return"-"===r[0]}(r)&&(n=!0,r=r.substr(1)),r=e?r+m(i):m(i)+r,n&&(r="-"+r)),r}var v=String.prototype.toLowerCase,b=String.prototype.toUpperCase;function d(r){var t,e,n;switch(r.specifier){case"b":t=2;break;case"o":t=8;break;case"x":case"X":t=16;break;default:t=10}if(e=r.arg,n=parseInt(e,10),!isFinite(n)){if(!g(e))throw new Error("invalid integer. Value: "+e);n=0}return n<0&&("u"===r.specifier||10!==t)&&(n=4294967295+n+1),n<0?(e=(-n).toString(t),r.precision&&(e=w(e,r.precision,r.padRight)),e="-"+e):(e=n.toString(t),n||r.precision?r.precision&&(e=w(e,r.precision,r.padRight)):e="",r.sign&&(e=r.sign+e)),16===t&&(r.alternate&&(e="0x"+e),e=r.specifier===b.call(r.specifier)?b.call(e):v.call(e)),8===t&&r.alternate&&"0"!==e.charAt(0)&&(e="0"+e),e}var E=Math.abs,_=String.prototype.toLowerCase,T=String.prototype.toUpperCase,V=String.prototype.replace,x=/e\+(\d)$/,A=/e-(\d)$/,F=/^(\d+)$/,S=/^(\d+)e/,j=/\.0$/,L=/\.0*e/,I=/(\..*[^0])0*e/;function k(r,t){var e,n;switch(t.specifier){case"e":case"E":n=r.toExponential(t.precision);break;case"f":case"F":n=r.toFixed(t.precision);break;case"g":case"G":E(r)<1e-4?((e=t.precision)>0&&(e-=1),n=r.toExponential(e)):n=r.toPrecision(t.precision),t.alternate||(n=V.call(n,I,"$1e"),n=V.call(n,L,"e"),n=V.call(n,j,""));break;default:throw new Error("invalid double notation. Value: "+t.specifier)}return n=V.call(n,x,"e+0$1"),n=V.call(n,A,"e-0$1"),t.alternate&&(n=V.call(n,F,"$1."),n=V.call(n,S,"$1.e")),r>=0&&t.sign&&(n=t.sign+n),n=t.specifier===T.call(t.specifier)?T.call(n):_.call(n)}function B(r){var t,e="";for(t=0;t<r;t++)e+=" ";return e}var R=String.fromCharCode,O=Array.isArray;function M(r){return r!=r}function N(r){var t={};return t.specifier=r.specifier,t.precision=void 0===r.precision?1:r.precision,t.width=r.width,t.flags=r.flags||"",t.mapping=r.mapping,t}function P(r){var t,e,n,i,o,a,u,f,s,l,h,c,p,y;if(!O(r))throw new TypeError("invalid argument. First argument must be an array. Value: `"+r+"`.");for(a="",u=1,s=0;s<r.length;s++)if("string"==typeof(n=r[s]))a+=n;else{if(t=void 0!==n.precision,!(n=N(n)).specifier)throw new TypeError("invalid argument. Token is missing `specifier` property. Index: `"+s+"`. Value: `"+n+"`.");for(n.mapping&&(u=n.mapping),e=n.flags,l=0;l<e.length;l++)switch(i=e.charAt(l)){case" ":n.sign=" ";break;case"+":n.sign="+";break;case"-":n.padRight=!0,n.padZeros=!1;break;case"0":n.padZeros=e.indexOf("-")<0;break;case"#":n.alternate=!0;break;default:throw new Error("invalid flag: "+i)}if("*"===n.width){if(n.width=parseInt(arguments[u],10),u+=1,M(n.width))throw new TypeError("the argument for * width at position "+u+" is not a number. Value: `"+n.width+"`.");n.width<0&&(n.padRight=!0,n.width=-n.width)}if(t&&"*"===n.precision){if(n.precision=parseInt(arguments[u],10),u+=1,M(n.precision))throw new TypeError("the argument for * precision at position "+u+" is not a number. Value: `"+n.precision+"`.");n.precision<0&&(n.precision=1,t=!1)}switch(n.arg=arguments[u],n.specifier){case"b":case"o":case"x":case"X":case"d":case"i":case"u":t&&(n.padZeros=!1),n.arg=d(n);break;case"s":n.maxWidth=t?n.precision:-1,n.arg=String(n.arg);break;case"c":if(!M(n.arg)){if((o=parseInt(n.arg,10))<0||o>127)throw new Error("invalid character code. Value: "+n.arg);n.arg=M(o)?String(n.arg):R(o)}break;case"e":case"E":case"f":case"F":case"g":case"G":if(t||(n.precision=6),f=parseFloat(n.arg),!isFinite(f)){if(!g(n.arg))throw new Error("invalid floating-point number. Value: "+a);f=n.arg,n.padZeros=!1}n.arg=k(f,n);break;default:throw new Error("invalid specifier: "+n.specifier)}n.maxWidth>=0&&n.arg.length>n.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=w(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=(h=n.arg,c=n.width,p=n.padRight,y=void 0,(y=c-h.length)<0?h:h=p?h+B(y):B(y)+h)),a+=n.arg||"",u+=1}return a}var C=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;function U(r){var t={mapping:r[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]};return"."===r[4]&&void 0===r[5]&&(t.precision="1"),t}function Y(r){var t,e,n,i;for(e=[],i=0,n=C.exec(r);n;)(t=r.slice(i,C.lastIndex-n[0].length)).length&&e.push(t),"%"===n[6]?e.push("%"):e.push(U(n)),i=C.lastIndex,n=C.exec(r);return(t=r.slice(i)).length&&e.push(t),e}function W(r){var t,e;if("string"!=typeof r)throw new TypeError(W("invalid argument. First argument must be a string. Value: `%s`.",r));for(t=[Y(r)],e=1;e<arguments.length;e++)t.push(arguments[e]);return P.apply(null,t)}var G,$=Object.prototype,H=$.toString,Z=$.__defineGetter__,X=$.__defineSetter__,J=$.__lookupGetter__,z=$.__lookupSetter__;G=function(){try{return p({},"x",{}),!0}catch(r){return!1}}()?y:function(r,t,e){var n,i,o,a;if("object"!=typeof r||null===r||"[object Array]"===H.call(r))throw new TypeError(W("invalid argument. First argument must be an object. Value: `%s`.",r));if("object"!=typeof e||null===e||"[object Array]"===H.call(e))throw new TypeError(W("invalid argument. Property descriptor must be an object. Value: `%s`.",e));if((i="value"in e)&&(J.call(r,t)||z.call(r,t)?(n=r.__proto__,r.__proto__=$,delete r[t],r[t]=e.value,r.__proto__=n):r[t]=e.value),o="get"in e,a="set"in e,i&&(o||a))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return o&&Z&&Z.call(r,t,e.get),a&&X&&X.call(r,t,e.set),r};var q=G;function D(r,t,e){q(r,t,{configurable:!1,enumerable:!1,writable:!1,value:e})}function K(r){return"number"==typeof r}var Q=Number,rr=Q.prototype.toString,tr=t();function er(r){return"object"==typeof r&&(r instanceof Q||(tr?function(r){try{return rr.call(r),!0}catch(r){return!1}}(r):"[object Number]"===f(r)))}function nr(r){return K(r)||er(r)}D(nr,"isPrimitive",K),D(nr,"isObject",er);var ir=Q.NEGATIVE_INFINITY,or=Math.floor;function ar(r){return or(r)===r}function ur(r){return r<l&&r>ir&&ar(r)}function fr(r){return K(r)&&ur(r)}function sr(r){return er(r)&&ur(r.valueOf())}function lr(r){return fr(r)||sr(r)}function hr(r){return fr(r)&&r>=0}function cr(r){return sr(r)&&r.valueOf()>=0}function pr(r){return hr(r)||cr(r)}D(lr,"isPrimitive",fr),D(lr,"isObject",sr),D(pr,"isPrimitive",hr),D(pr,"isObject",cr);var yr=Array.isArray?Array.isArray:function(r){return"[object Array]"===f(r)};function gr(r){if("function"!=typeof r)throw new TypeError(W("invalid argument. Must provide a function. Value: `%s`.",r));return function(t){var e,n;if(!yr(t))return!1;if(0===(e=t.length))return!1;for(n=0;n<e;n++)if(!1===r(t[n]))return!1;return!0}}function mr(r){return"string"==typeof r}var wr=String.prototype.valueOf,vr=t();function br(r){return"object"==typeof r&&(r instanceof String||(vr?function(r){try{return wr.call(r),!0}catch(r){return!1}}(r):"[object String]"===f(r)))}function dr(r){return mr(r)||br(r)}D(dr,"isPrimitive",mr),D(dr,"isObject",br);var Er=gr(dr.isPrimitive),_r=gr(dr.isObject),Tr=gr(dr);D(Tr,"primitives",Er),D(Tr,"objects",_r);var Vr=9007199254740991;function xr(r){return"object"==typeof r&&null!==r&&"number"==typeof r.length&&ar(r.length)&&r.length>=0&&r.length<=Vr}var Ar="function"==typeof ArrayBuffer;function Fr(r){return Ar&&r instanceof ArrayBuffer||"[object ArrayBuffer]"===f(r)}var Sr=/./;function jr(r){return"boolean"==typeof r}var Lr=Boolean,Ir=Boolean.prototype.toString,kr=t();function Br(r){return"object"==typeof r&&(r instanceof Lr||(kr?function(r){try{return Ir.call(r),!0}catch(r){return!1}}(r):"[object Boolean]"===f(r)))}function Rr(r){return jr(r)||Br(r)}D(Rr,"isPrimitive",jr),D(Rr,"isObject",Br);var Or="object"==typeof self?self:null,Mr="object"==typeof window?window:null,Nr="object"==typeof globalThis?globalThis:null,Pr=function(r){if(arguments.length){if(!jr(r))throw new TypeError(W("invalid argument. Must provide a boolean. Value: `%s`.",r));if(r)return new Function("return this;")()}if(Nr)return Nr;if(Or)return Or;if(Mr)return Mr;throw new Error("unexpected error. Unable to resolve global object.")}(),Cr=Pr.document&&Pr.document.childNodes,Ur=Int8Array;function Yr(){return/^\s*function\s*([^(]*)/i}var Wr=/^\s*function\s*([^(]*)/i;function Gr(r){return null!==r&&"object"==typeof r}function $r(r){return Gr(r)&&(r._isBuffer||r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r))}function Hr(r){var t,e,n;if(("Object"===(e=f(r).slice(8,-1))||"Error"===e)&&r.constructor){if("string"==typeof(n=r.constructor).name)return n.name;if(t=Wr.exec(n.toString()))return t[1]}return $r(r)?"Buffer":e}D(Yr,"REGEXP",Wr),D(Gr,"isObjectLikeArray",gr(Gr));var Zr="function"==typeof Sr||"object"==typeof Ur||"function"==typeof Cr?function(r){return Hr(r).toLowerCase()}:function(r){var t;return null===r?"null":"object"==(t=typeof r)?Hr(r).toLowerCase():t};function Xr(r){return"function"===Zr(r)}function Jr(r){return"object"==typeof r&&null!==r&&!yr(r)}function zr(r){return r!=r}var qr=c()?Symbol.iterator:null;function Dr(r,t,e){q(r,t,{configurable:!1,enumerable:!1,get:e})}function Kr(r,t,e,n){q(r,t,{configurable:!1,enumerable:!0,get:e,set:n})}var Qr,rt="function"==typeof Uint16Array,tt="function"==typeof Uint16Array?Uint16Array:null,et="function"==typeof Uint16Array?Uint16Array:void 0;Qr=function(){var r,t,e;if("function"!=typeof tt)return!1;try{t=new tt(t=[1,3.14,-3.14,65536,65537]),e=t,r=(rt&&e instanceof Uint16Array||"[object Uint16Array]"===f(e))&&1===t[0]&&3===t[1]&&65533===t[2]&&0===t[3]&&1===t[4]}catch(t){r=!1}return r}()?et:function(){throw new Error("not implemented")};var nt=Qr,it="function"==typeof Math.f16round?Math.f16round:null,ot=.0009765625,at=6103515625e-14;function ut(r){return Math.abs(r)}var ft,st=4503599627370496,lt="function"==typeof it?it:function(r){var t,e,n,i;return 0===r||isNaN(r)||!function(r){return r==r&&r>ir&&r<l}(r)?r:(i=r<0?-1:1,(e=ut(r))<at?i*(e/at/ot+st-st)*at*ot:(t=(n=4398046511105*e)-(n-e))>65504||isNaN(t)?i*l:i*t)},ht=Q.NEGATIVE_INFINITY,ct=Q.POSITIVE_INFINITY,pt="function"==typeof Float32Array,yt="function"==typeof Float32Array?Float32Array:null,gt="function"==typeof Float32Array?Float32Array:void 0;ft=function(){var r,t,e;if("function"!=typeof yt)return!1;try{t=new yt([1,3.14,-3.14,5e40]),e=t,r=(pt&&e instanceof Float32Array||"[object Float32Array]"===f(e))&&1===t[0]&&3.140000104904175===t[1]&&-3.140000104904175===t[2]&&t[3]===l}catch(t){r=!1}return r}()?gt:function(){throw new Error("not implemented")};var mt,wt=ft,vt="function"==typeof Uint32Array,bt="function"==typeof Uint32Array?Uint32Array:null,dt="function"==typeof Uint32Array?Uint32Array:void 0;mt=function(){var r,t,e;if("function"!=typeof bt)return!1;try{t=new bt(t=[1,3.14,-3.14,4294967296,4294967297]),e=t,r=(vt&&e instanceof Uint32Array||"[object Uint32Array]"===f(e))&&1===t[0]&&3===t[1]&&4294967293===t[2]&&0===t[3]&&1===t[4]}catch(t){r=!1}return r}()?dt:function(){throw new Error("not implemented")};var Et=mt,_t=new wt(1),Tt=new Et(_t.buffer);function Vt(r){return _t[0]=r,Tt[0]}var xt=127,At=2139095040,Ft=new wt(1);new Et(Ft.buffer)[0]=4286578688;var St=Ft[0],jt=8388607,Lt=32256,It=31744,kt=64512,Bt=0,Rt=32768,Ot=8388608,Mt=8191,Nt=4095,Pt=1023;function Ct(r){var t,e,n,i,o,a,u,f;return function(r){return r!=r}(r)?Lt:r===ct?It:r===ht?kt:0===r?function(r){return 0===r&&1/r===St}(r)?Rt:Bt:(f=r<0?1:0,u=Vt(r=function(r){return Math.abs(r)}(r))&jt,t=function(r){var t=Vt(r);return(t=(t&At)>>>23)-xt}(r),(e=t+15)>=31?f?kt:It:e<=0?e<-10?f<<15:(i=(Ot|u)>>>13,(a=1-e)<11?(o=i>>>a-1&1,(n=0!=(i&(1<<a-1)-1))||(n=0!=(u&Mt))):(o=u>>>13-(a-11)-1&1,n=0!=(u&(1<<13-(a-11)-1)-1)),i>>>=a,o&&(n||1&i)&&(i+=1),f<<15|i):(i=u>>>13,n=0!=(u&Nt),(o=u>>>12&1)&&(n||1&i)&&(i+=1)>Pt&&(i=0,(e+=1)>=31)?f?kt:It:f<<15|e<<10|i))}var Ut=1023,Yt=-1022,Wt=Math.round,Gt=1023,$t=-1023,Ht=-1074;function Zt(r){return r===l||r===ir}var Xt,Jt=2147483648,zt=2147483647,qt="function"==typeof Float64Array,Dt="function"==typeof Float64Array?Float64Array:null,Kt="function"==typeof Float64Array?Float64Array:void 0;Xt=function(){var r,t,e;if("function"!=typeof Dt)return!1;try{t=new Dt([1,3.14,-3.14,NaN]),e=t,r=(qt&&e instanceof Float64Array||"[object Float64Array]"===f(e))&&1===t[0]&&3.14===t[1]&&-3.14===t[2]&&t[3]!=t[3]}catch(t){r=!1}return r}()?Kt:function(){throw new Error("not implemented")};var Qt,re=Xt,te="function"==typeof Uint8Array,ee="function"==typeof Uint8Array?Uint8Array:null,ne="function"==typeof Uint8Array?Uint8Array:void 0;Qt=function(){var r,t,e;if("function"!=typeof ee)return!1;try{t=new ee(t=[1,3.14,-3.14,256,257]),e=t,r=(te&&e instanceof Uint8Array||"[object Uint8Array]"===f(e))&&1===t[0]&&3===t[1]&&253===t[2]&&0===t[3]&&1===t[4]}catch(t){r=!1}return r}()?ne:function(){throw new Error("not implemented")};var ie,oe=Qt,ae={uint16:nt,uint8:oe};(ie=new ae.uint16(1))[0]=4660;var ue,fe,se=52===new ae.uint8(ie.buffer)[0];!0===se?(ue=1,fe=0):(ue=0,fe=1);var le={HIGH:ue,LOW:fe},he=new re(1),ce=new Et(he.buffer),pe=le.HIGH,ye=le.LOW;function ge(r,t,e,n){return he[0]=r,t[n]=ce[pe],t[n+e]=ce[ye],t}function me(r){return ge(r,[0,0],1,0)}D(me,"assign",ge);var we,ve,be=!0===se?1:0,de=new re(1),Ee=new Et(de.buffer);function _e(r){return de[0]=r,Ee[be]}!0===se?(we=1,ve=0):(we=0,ve=1);var Te={HIGH:we,LOW:ve},Ve=new re(1),xe=new Et(Ve.buffer),Ae=Te.HIGH,Fe=Te.LOW;function Se(r,t){return xe[Ae]=r,xe[Fe]=t,Ve[0]}var je=[0,0],Le=22250738585072014e-324,Ie=4503599627370496;function ke(r,t,e,n){return zr(r)||Zt(r)?(t[n]=r,t[n+e]=0,t):0!==r&&ut(r)<Le?(t[n]=r*Ie,t[n+e]=-52,t):(t[n]=r,t[n+e]=0,t)}D((function(r){return ke(r,[0,0],1,0)}),"assign",ke);var Be=2146435072,Re=2220446049250313e-31,Oe=2148532223,Me=[0,0],Ne=[0,0];function Pe(r,t){var e,n,i,o,a,u;return 0===t||0===r||zr(r)||Zt(r)?r:(ke(r,Me,1,0),r=Me[0],t+=Me[1],t+=function(r){var t=_e(r);return(t=(t&Be)>>>20)-Gt|0}(r),t<Ht?(i=0,o=r,me.assign(i,je,1,0),a=je[0],a&=zt,u=_e(o),Se(a|=u&=Jt,je[1])):t>Ut?r<0?ir:l:(t<=$t?(t+=52,n=Re):n=1,me.assign(r,Ne,1,0),e=Ne[0],e&=Oe,n*Se(e|=t+Gt<<20,Ne[1])))}function Ce(r){var t,e,n;return zr(r)?r:r>Ut?l:r<Yt?0:(t=(r-=n=Wt(r))*function(r){return 0===r?1513.906801156151:1513.906801156151+r*(20.202065669316532+.023093347705734523*r)}(e=r*r),r=1+Pe(r=t/(function(r){return 0===r?4368.211668792106:4368.211668792106+r*(233.1842117223149+1*r)}(e)-t),1),Pe(r,n))}var Ue=Ce(5)-1;function Ye(r){var t,e,n,i;return n=(32768&r)>>>15,t=1023&r,(e=(31744&r)>>>10)===Ue?0===t?1===n?ht:ct:NaN:0===e?0===t?1===n?-0:0:(i=Ce(-14)*(t/1024),n?-i:i):(i=Ce(e-15)*(1+t/1024),n?-i:i)}var We="function",Ge={float64:function(r,t){return r[t]},float32:function(r,t){return r[t]},int32:function(r,t){return r[t]},int16:function(r,t){return r[t]},int8:function(r,t){return r[t]},uint32:function(r,t){return r[t]},uint16:function(r,t){return r[t]},uint8:function(r,t){return r[t]},uint8c:function(r,t){return r[t]},generic:function(r,t){return r[t]},default:function(r,t){return r[t]}};function $e(r){var t=Ge[r];return"function"==typeof t?t:Ge.default}var He={float64:function(r,t,e){r[t]=e},float32:function(r,t,e){r[t]=e},int32:function(r,t,e){r[t]=e},int16:function(r,t,e){r[t]=e},int8:function(r,t,e){r[t]=e},uint32:function(r,t,e){r[t]=e},uint16:function(r,t,e){r[t]=e},uint8:function(r,t,e){r[t]=e},uint8c:function(r,t,e){r[t]=e},generic:function(r,t,e){r[t]=e},default:function(r,t,e){r[t]=e}};function Ze(r){var t=He[r];return"function"==typeof t?t:He.default}var Xe={complex128:function(r,t){return r.get(t)},complex64:function(r,t){return r.get(t)},default:function(r,t){return r.get(t)}};function Je(r){var t=Xe[r];return"function"==typeof t?t:Xe.default}var ze={complex128:function(r,t,e){r.set(e,t)},complex64:function(r,t,e){r.set(e,t)},default:function(r,t,e){r.set(e,t)}};function qe(r){var t=ze[r];return"function"==typeof t?t:ze.default}var De,Ke={Float32Array:"float32",Float64Array:"float64",Array:"generic",Int16Array:"int16",Int32Array:"int32",Int8Array:"int8",Uint16Array:"uint16",Uint32Array:"uint32",Uint8Array:"uint8",Uint8ClampedArray:"uint8c",Complex64Array:"complex64",Complex128Array:"complex128",BooleanArray:"bool"},Qe="function"==typeof Int32Array,rn="function"==typeof Int32Array?Int32Array:null,tn="function"==typeof Int32Array?Int32Array:void 0;De=function(){var r,t,e;if("function"!=typeof rn)return!1;try{t=new rn([1,3.14,-3.14,2147483648]),e=t,r=(Qe&&e instanceof Int32Array||"[object Int32Array]"===f(e))&&1===t[0]&&3===t[1]&&-3===t[2]&&-2147483648===t[3]}catch(t){r=!1}return r}()?tn:function(){throw new Error("not implemented")};var en,nn=De,on="function"==typeof Int16Array,an="function"==typeof Int16Array?Int16Array:null,un="function"==typeof Int16Array?Int16Array:void 0;en=function(){var r,t,e;if("function"!=typeof an)return!1;try{t=new an([1,3.14,-3.14,32768]),e=t,r=(on&&e instanceof Int16Array||"[object Int16Array]"===f(e))&&1===t[0]&&3===t[1]&&-3===t[2]&&-32768===t[3]}catch(t){r=!1}return r}()?un:function(){throw new Error("not implemented")};var fn,sn=en,ln="function"==typeof Uint8ClampedArray,hn="function"==typeof Uint8ClampedArray?Uint8ClampedArray:null,cn="function"==typeof Uint8ClampedArray?Uint8ClampedArray:void 0;fn=function(){var r,t,e;if("function"!=typeof hn)return!1;try{t=new hn([-1,0,1,3.14,4.99,255,256]),e=t,r=(ln&&e instanceof Uint8ClampedArray||"[object Uint8ClampedArray]"===f(e))&&0===t[0]&&0===t[1]&&1===t[2]&&3===t[3]&&5===t[4]&&255===t[5]&&255===t[6]}catch(t){r=!1}return r}()?cn:function(){throw new Error("not implemented")};var pn,yn=fn,gn="function"==typeof Int8Array,mn="function"==typeof Int8Array?Int8Array:null,wn="function"==typeof Int8Array?Int8Array:void 0;pn=function(){var r,t,e;if("function"!=typeof mn)return!1;try{t=new mn([1,3.14,-3.14,128]),e=t,r=(gn&&e instanceof Int8Array||"[object Int8Array]"===f(e))&&1===t[0]&&3===t[1]&&-3===t[2]&&-128===t[3]}catch(t){r=!1}return r}()?wn:function(){throw new Error("not implemented")};var vn=pn,bn=4294967295;function dn(r){return"object"==typeof r&&null!==r&&"number"==typeof r.length&&ar(r.length)&&r.length>=0&&r.length<=bn}function En(r,t,e){q(r,t,{configurable:!1,enumerable:!0,writable:!1,value:e})}function _n(r,t){if(!(this instanceof _n))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!K(r))throw new TypeError(W("invalid argument. Real component must be a number. Value: `%s`.",r));if(!K(t))throw new TypeError(W("invalid argument. Imaginary component must be a number. Value: `%s`.",t));return En(this,"re",r),En(this,"im",t),this}D(_n,"name","Complex128"),D(_n,"BYTES_PER_ELEMENT",8),D(_n.prototype,"BYTES_PER_ELEMENT",8),D(_n.prototype,"byteLength",16),D(_n.prototype,"toString",(function(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i"})),D(_n.prototype,"toJSON",(function(){var r={type:"Complex128"};return r.re=this.re,r.im=this.im,r}));var Tn="function"==typeof Math.fround?Math.fround:null,Vn=new wt(1),xn="function"==typeof Tn?Tn:function(r){return Vn[0]=r,Vn[0]};function An(r,t){if(!(this instanceof An))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!K(r))throw new TypeError(W("invalid argument. Real component must be a number. Value: `%s`.",r));if(!K(t))throw new TypeError(W("invalid argument. Imaginary component must be a number. Value: `%s`.",t));return En(this,"re",xn(r)),En(this,"im",xn(t)),this}function Fn(r){return r instanceof _n||r instanceof An||"object"==typeof r&&null!==r&&"number"==typeof r.re&&"number"==typeof r.im}function Sn(r){return ar(r/2)}D(An,"name","Complex64"),D(An,"BYTES_PER_ELEMENT",4),D(An.prototype,"BYTES_PER_ELEMENT",4),D(An.prototype,"byteLength",8),D(An.prototype,"toString",(function(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i"})),D(An.prototype,"toJSON",(function(){var r={type:"Complex64"};return r.re=this.re,r.im=this.im,r}));var jn=8;function Ln(r){return"object"==typeof r&&null!==r&&"Complex64Array"===r.constructor.name&&r.BYTES_PER_ELEMENT===jn}var In=16;function kn(r){return"object"==typeof r&&null!==r&&"Complex128Array"===r.constructor.name&&r.BYTES_PER_ELEMENT===In}function Bn(r){return r.re}function Rn(r){return r.im}function On(r,t){return new wt(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*t,2*(r.length-t))}function Mn(r,t){return new re(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*t,2*(r.length-t))}function Nn(r){var t,e,n;for(t=[];!(e=r.next()).done;)if(dn(n=e.value)&&n.length>=2)t.push(n[0],n[1]);else{if(!Fn(n))return new TypeError(W("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));t.push(Bn(n),Rn(n))}return t}var Pn=2*wt.BYTES_PER_ELEMENT,Cn=c();function Un(r){return r instanceof Gn||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function Yn(r){return r===Gn||"Complex128Array"===r.name}function Wn(r,t){return new An(r[t*=2],r[t+1])}function Gn(){var r,t,e,n;if(t=arguments.length,!(this instanceof Gn))return 0===t?new Gn:1===t?new Gn(arguments[0]):2===t?new Gn(arguments[0],arguments[1]):new Gn(arguments[0],arguments[1],arguments[2]);if(0===t)e=new wt(0);else if(1===t)if(hr(arguments[0]))e=new wt(2*arguments[0]);else if(xr(arguments[0]))if((n=(e=arguments[0]).length)&&yr(e)&&Fn(e[0])){if(e=function(r,t){var e,n,i,o;for(e=t.length,o=0,i=0;i<e;i++){if(!Fn(n=t[i]))return null;r[o]=Bn(n),r[o+1]=Rn(n),o+=2}return r}(new wt(2*n),e),null===e){if(!Sn(n))throw new RangeError(W("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",n));e=new wt(arguments[0])}}else{if(Ln(e))e=On(e,0);else if(kn(e))e=Mn(e,0);else if(!Sn(n))throw new RangeError(W("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",n));e=new wt(e)}else if(Fr(arguments[0])){if(!ar((e=arguments[0]).byteLength/Pn))throw new RangeError(W("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",Pn,e.byteLength));e=new wt(e)}else{if(!Jr(arguments[0]))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));if(e=arguments[0],!1===Cn)throw new TypeError(W("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",e));if(!Xr(e[qr]))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",e));if(!Xr((e=e[qr]()).next))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",e));if((e=Nn(e))instanceof Error)throw e;e=new wt(e)}else{if(!Fr(e=arguments[0]))throw new TypeError(W("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",e));if(!hr(r=arguments[1]))throw new TypeError(W("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!ar(r/Pn))throw new RangeError(W("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",Pn,r));if(2===t){if(!ar((n=e.byteLength-r)/Pn))throw new RangeError(W("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",Pn,n));e=new wt(e,r)}else{if(!hr(n=arguments[2]))throw new TypeError(W("invalid argument. Length must be a nonnegative integer. Value: `%s`.",n));if(n*Pn>e.byteLength-r)throw new RangeError(W("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*Pn));e=new wt(e,r,2*n)}}return D(this,"_buffer",e),D(this,"_length",e.length/2),this}function $n(r){return r.re}function Hn(r){return r.im}function Zn(r){var t,e,n;for(t=[];!(e=r.next()).done;)if(dn(n=e.value)&&n.length>=2)t.push(n[0],n[1]);else{if(!Fn(n))return new TypeError(W("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",n));t.push($n(n),Hn(n))}return t}D(Gn,"BYTES_PER_ELEMENT",Pn),D(Gn,"name","Complex64Array"),D(Gn,"from",(function(r){var t,e,n,i,o,a,u,f,s,l,h,c;if(!Xr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Yn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((e=arguments.length)>1){if(!Xr(n=arguments[1]))throw new TypeError(W("invalid argument. Second argument must be a function. Value: `%s`.",n));e>2&&(t=arguments[2])}if(Un(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h<f;h++){if(Fn(l=n.call(t,r.get(h),h)))o[c]=Bn(l),o[c+1]=Rn(l);else{if(!(dn(l)&&l.length>=2))throw new TypeError(W("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(xr(r)){if(n){for(f=r.length,u=r.get&&r.set?Je("default"):$e("default"),h=0;h<f;h++)if(!Fn(u(r,h))){s=!0;break}if(s){if(!Sn(f))throw new RangeError(W("invalid argument. First argument must have a length which is a multiple of %u. Length: `%u`.",2,f));for(o=(i=new this(f/2))._buffer,h=0;h<f;h++)o[h]=n.call(t,u(r,h),h);return i}for(o=(i=new this(f))._buffer,c=0,h=0;h<f;h++){if(Fn(l=n.call(t,u(r,h),h)))o[c]=Bn(l),o[c+1]=Rn(l);else{if(!(dn(l)&&l.length>=2))throw new TypeError(W("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Jr(r)&&Cn&&Xr(r[qr])){if(!Xr((o=r[qr]()).next))throw new TypeError(W("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,t,e){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,dn(o=t.call(e,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!Fn(o))return new TypeError(W("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push(Bn(o),Rn(o))}return n}(o,n,t):Nn(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h<f;h++)o[h]=a[h];return i}throw new TypeError(W("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r))})),D(Gn,"of",(function(){var r,t;if(!Xr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Yn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(r=[],t=0;t<arguments.length;t++)r.push(arguments[t]);return new this(r)})),D(Gn.prototype,"at",(function(r){if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ar(r))throw new TypeError(W("invalid argument. Must provide an integer. Value: `%s`.",r));if(r<0&&(r+=this._length),!(r<0||r>=this._length))return Wn(this._buffer,r)})),Dr(Gn.prototype,"buffer",(function(){return this._buffer.buffer})),Dr(Gn.prototype,"byteLength",(function(){return this._buffer.byteLength})),Dr(Gn.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),D(Gn.prototype,"BYTES_PER_ELEMENT",Gn.BYTES_PER_ELEMENT),D(Gn.prototype,"copyWithin",(function(r,t){if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*t):this._buffer.copyWithin(2*r,2*t,2*arguments[2]),this})),D(Gn.prototype,"entries",(function(){var r,t,e,n,i,o;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return r=this,n=this._buffer,e=this._length,o=-1,D(t={},"next",(function(){return o+=1,i||o>=e?{done:!0}:{value:[o,Wn(n,o)],done:!1}})),D(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(t,qr,(function(){return r.entries()})),t})),D(Gn.prototype,"every",(function(r,t){var e,n;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(!r.call(t,Wn(e,n),n,this))return!1;return!0})),D(Gn.prototype,"fill",(function(r,t,e){var n,i,o,a,u,f;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fn(r))throw new TypeError(W("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(n=this._buffer,i=this._length,arguments.length>1){if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=i)<0&&(t=0),arguments.length>2){if(!ar(e))throw new TypeError(W("invalid argument. Third argument must be an integer. Value: `%s`.",e));e<0&&(e+=i)<0&&(e=0),e>i&&(e=i)}else e=i}else t=0,e=i;for(a=Bn(r),u=Rn(r),f=t;f<e;f++)n[o=2*f]=a,n[o+1]=u;return this})),D(Gn.prototype,"filter",(function(r,t){var e,n,i,o;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=[],i=0;i<this._length;i++)o=Wn(e,i),r.call(t,o,i,this)&&n.push(o);return new this.constructor(n)})),D(Gn.prototype,"find",(function(r,t){var e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(i=Wn(e,n),r.call(t,i,n,this))return i})),D(Gn.prototype,"findIndex",(function(r,t){var e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(i=Wn(e,n),r.call(t,i,n,this))return n;return-1})),D(Gn.prototype,"findLast",(function(r,t){var e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=this._length-1;n>=0;n--)if(i=Wn(e,n),r.call(t,i,n,this))return i})),D(Gn.prototype,"findLastIndex",(function(r,t){var e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=this._length-1;n>=0;n--)if(i=Wn(e,n),r.call(t,i,n,this))return n;return-1})),D(Gn.prototype,"forEach",(function(r,t){var e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)i=Wn(e,n),r.call(t,i,n,this)})),D(Gn.prototype,"get",(function(r){if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!hr(r))throw new TypeError(W("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));if(!(r>=this._length))return Wn(this._buffer,r)})),D(Gn.prototype,"includes",(function(r,t){var e,n,i,o,a;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fn(r))throw new TypeError(W("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0&&(t+=this._length)<0&&(t=0)}else t=0;for(i=Bn(r),o=Rn(r),e=this._buffer,a=t;a<this._length;a++)if(i===e[n=2*a]&&o===e[n+1])return!0;return!1})),D(Gn.prototype,"indexOf",(function(r,t){var e,n,i,o,a;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fn(r))throw new TypeError(W("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0&&(t+=this._length)<0&&(t=0)}else t=0;for(i=Bn(r),o=Rn(r),e=this._buffer,a=t;a<this._length;a++)if(i===e[n=2*a]&&o===e[n+1])return a;return-1})),D(Gn.prototype,"join",(function(r){var t,e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(0===arguments.length)n=",";else{if(!mr(r))throw new TypeError(W("invalid argument. First argument must be a string. Value: `%s`.",r));n=r}for(t=[],e=this._buffer,i=0;i<this._length;i++)t.push(Wn(e,i).toString());return t.join(n)})),D(Gn.prototype,"keys",(function(){var r,t,e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return r=this,e=this._length,i=-1,D(t={},"next",(function(){return i+=1,n||i>=e?{done:!0}:{value:i,done:!1}})),D(t,"return",(function(r){return n=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(t,qr,(function(){return r.keys()})),t})),D(Gn.prototype,"lastIndexOf",(function(r,t){var e,n,i,o,a;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fn(r))throw new TypeError(W("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t>=this._length?t=this._length-1:t<0&&(t+=this._length)}else t=this._length-1;for(i=Bn(r),o=Rn(r),e=this._buffer,a=t;a>=0;a--)if(i===e[n=2*a]&&o===e[n+1])return a;return-1})),Dr(Gn.prototype,"length",(function(){return this._length})),D(Gn.prototype,"map",(function(r,t){var e,n,i,o,a;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,e=(i=new this.constructor(this._length))._buffer,o=0;o<this._length;o++)if(Fn(a=r.call(t,Wn(n,o),o,this)))e[2*o]=Bn(a),e[2*o+1]=Rn(a);else{if(!dn(a)||2!==a.length)throw new TypeError(W("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",a));e[2*o]=a[0],e[2*o+1]=a[1]}return i})),D(Gn.prototype,"reduce",(function(r,t){var e,n,i,o;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));if(e=this._buffer,i=this._length,arguments.length>1)n=t,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=Wn(e,0),o=1}for(;o<i;o++)n=r(n,Wn(e,o),o,this);return n})),D(Gn.prototype,"reduceRight",(function(r,t){var e,n,i,o;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));if(e=this._buffer,i=this._length,arguments.length>1)n=t,o=i-1;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=Wn(e,i-1),o=i-2}for(;o>=0;o--)n=r(n,Wn(e,o),o,this);return n})),D(Gn.prototype,"reverse",(function(){var r,t,e,n,i,o;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=this._length,r=this._buffer,n=or(e/2),i=0;i<n;i++)o=e-i-1,t=r[2*i],r[2*i]=r[2*o],r[2*o]=t,t=r[2*i+1],r[2*i+1]=r[2*o+1],r[2*o+1]=t;return this})),D(Gn.prototype,"set",(function(r){var t,e,n,i,o,a,u,f,s;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,arguments.length>1){if(!hr(e=arguments[1]))throw new TypeError(W("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",e))}else e=0;if(Fn(r)){if(e>=this._length)throw new RangeError(W("invalid argument. Index argument is out-of-bounds. Value: `%u`.",e));return n[e*=2]=Bn(r),void(n[e+1]=Rn(r))}if(Un(r)){if(e+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(t=r._buffer,s=n.byteOffset+e*Pn,t.buffer===n.buffer&&t.byteOffset<s&&t.byteOffset+t.byteLength>s){for(i=new wt(t.length),f=0;f<t.length;f++)i[f]=t[f];t=i}for(e*=2,s=0,f=0;f<a;f++)n[e]=t[s],n[e+1]=t[s+1],e+=2,s+=2}else{if(!xr(r))throw new TypeError(W("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",r));for(a=r.length,f=0;f<a;f++)if(!Fn(r[f])){o=!0;break}if(o){if(!Sn(a))throw new RangeError(W("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",a));if(e+a/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(t=r,s=n.byteOffset+e*Pn,t.buffer===n.buffer&&t.byteOffset<s&&t.byteOffset+t.byteLength>s){for(i=new wt(a),f=0;f<a;f++)i[f]=t[f];t=i}for(e*=2,a/=2,s=0,f=0;f<a;f++)n[e]=t[s],n[e+1]=t[s+1],e+=2,s+=2;return}if(e+a>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(e*=2,f=0;f<a;f++)u=r[f],n[e]=Bn(u),n[e+1]=Rn(u),e+=2}})),D(Gn.prototype,"slice",(function(r,t){var e,n,i,o,a,u,f;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(a=this._buffer,u=this._length,0===arguments.length)r=0,t=u;else{if(!ar(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=u)<0&&(r=0),1===arguments.length)t=u;else{if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0?(t+=u)<0&&(t=0):t>u&&(t=u)}}for(e=r<t?t-r:0,n=(i=new this.constructor(e))._buffer,f=0;f<e;f++)o=2*(f+r),n[2*f]=a[o],n[2*f+1]=a[o+1];return i})),D(Gn.prototype,"some",(function(r,t){var e,n;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(r.call(t,Wn(e,n),n,this))return!0;return!1})),D(Gn.prototype,"sort",(function(r){var t,e,n,i,o;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=this._length,t=[],i=0;i<n;i++)t.push(Wn(e,i));for(t.sort(r),i=0;i<n;i++)e[o=2*i]=Bn(t[i]),e[o+1]=Rn(t[i]);return this})),D(Gn.prototype,"subarray",(function(r,t){var e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,i=this._length,0===arguments.length)r=0,t=i;else{if(!ar(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=i)<0&&(r=0),1===arguments.length)t=i;else{if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0?(t+=i)<0&&(t=0):t>i&&(t=i)}}return r>=i?(i=0,e=n.byteLength):r>=t?(i=0,e=n.byteOffset+r*Pn):(i=t-r,e=n.byteOffset+r*Pn),new this.constructor(n.buffer,e,i<0?0:i)})),D(Gn.prototype,"toLocaleString",(function(r,t){var e,n,i,o,a;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(0===arguments.length)n=[];else{if(!mr(r)&&!Er(r))throw new TypeError(W("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",r));n=r}if(arguments.length<2)e={};else{if(!Jr(t))throw new TypeError(W("invalid argument. Options argument must be an object. Value: `%s`.",t));e=t}for(o=this._buffer,i=[],a=0;a<this._length;a++)i.push(Wn(o,a).toLocaleString(n,e));return i.join(",")})),D(Gn.prototype,"toReversed",(function(){var r,t,e,n,i,o;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=this._length,t=new this.constructor(e),n=this._buffer,r=t._buffer,i=0;i<e;i++)o=e-i-1,r[2*i]=n[2*o],r[2*i+1]=n[2*o+1];return t})),D(Gn.prototype,"toSorted",(function(r){var t,e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=this._length,t=[],i=0;i<n;i++)t.push(Wn(e,i));return t.sort(r),new Gn(t)})),D(Gn.prototype,"toString",(function(){var r,t,e;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(r=[],t=this._buffer,e=0;e<this._length;e++)r.push(Wn(t,e).toString());return r.join(",")})),D(Gn.prototype,"values",(function(){var r,t,e,n,i,o;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return t=this,i=this._buffer,e=this._length,o=-1,D(r={},"next",(function(){return o+=1,n||o>=e?{done:!0}:{value:Wn(i,o),done:!1}})),D(r,"return",(function(r){return n=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(r,qr,(function(){return t.values()})),r})),D(Gn.prototype,"with",(function(r,t){var e,n,i;if(!Un(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ar(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(i=this._length,r<0&&(r+=i),r<0||r>=i)throw new RangeError(W("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!Fn(t))throw new TypeError(W("invalid argument. Second argument must be a complex number. Value: `%s`.",t));return(e=(n=new this.constructor(this._buffer))._buffer)[2*r]=Bn(t),e[2*r+1]=Rn(t),n}));var Xn=2*re.BYTES_PER_ELEMENT,Jn=c();function zn(r){return r instanceof Kn||"object"==typeof r&&null!==r&&("Complex64Array"===r.constructor.name||"Complex128Array"===r.constructor.name)&&"number"==typeof r._length&&"object"==typeof r._buffer}function qn(r){return r===Kn||"Complex64Array"===r.name}function Dn(r,t){return new _n(r[t*=2],r[t+1])}function Kn(){var r,t,e,n;if(t=arguments.length,!(this instanceof Kn))return 0===t?new Kn:1===t?new Kn(arguments[0]):2===t?new Kn(arguments[0],arguments[1]):new Kn(arguments[0],arguments[1],arguments[2]);if(0===t)e=new re(0);else if(1===t)if(hr(arguments[0]))e=new re(2*arguments[0]);else if(xr(arguments[0]))if((n=(e=arguments[0]).length)&&yr(e)&&Fn(e[0])){if(e=function(r,t){var e,n,i,o;for(e=t.length,o=0,i=0;i<e;i++){if(!Fn(n=t[i]))return null;r[o]=$n(n),r[o+1]=Hn(n),o+=2}return r}(new re(2*n),e),null===e){if(!Sn(n))throw new RangeError(W("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",n));e=new re(arguments[0])}}else{if(Ln(e))e=On(e,0);else if(kn(e))e=Mn(e,0);else if(!Sn(n))throw new RangeError(W("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",n));e=new re(e)}else if(Fr(arguments[0])){if(!ar((e=arguments[0]).byteLength/Xn))throw new RangeError(W("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",Xn,e.byteLength));e=new re(e)}else{if(!Jr(arguments[0]))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));if(e=arguments[0],!1===Jn)throw new TypeError(W("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",e));if(!Xr(e[qr]))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",e));if(!Xr((e=e[qr]()).next))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",e));if((e=Zn(e))instanceof Error)throw e;e=new re(e)}else{if(!Fr(e=arguments[0]))throw new TypeError(W("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",e));if(!hr(r=arguments[1]))throw new TypeError(W("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!ar(r/Xn))throw new RangeError(W("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",Xn,r));if(2===t){if(!ar((n=e.byteLength-r)/Xn))throw new RangeError(W("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",Xn,n));e=new re(e,r)}else{if(!hr(n=arguments[2]))throw new TypeError(W("invalid argument. Length must be a nonnegative integer. Value: `%s`.",n));if(n*Xn>e.byteLength-r)throw new RangeError(W("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*Xn));e=new re(e,r,2*n)}}return D(this,"_buffer",e),D(this,"_length",e.length/2),this}function Qn(r){var t,e;for(t=[];!(e=r.next()).done;)t.push(Lr(e.value));return t}D(Kn,"BYTES_PER_ELEMENT",Xn),D(Kn,"name","Complex128Array"),D(Kn,"from",(function(r){var t,e,n,i,o,a,u,f,s,l,h,c;if(!Xr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!qn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if((e=arguments.length)>1){if(!Xr(n=arguments[1]))throw new TypeError(W("invalid argument. Second argument must be a function. Value: `%s`.",n));e>2&&(t=arguments[2])}if(zn(r)){if(f=r.length,n){for(o=(i=new this(f))._buffer,c=0,h=0;h<f;h++){if(Fn(l=n.call(t,r.get(h),h)))o[c]=$n(l),o[c+1]=Hn(l);else{if(!(dn(l)&&l.length>=2))throw new TypeError(W("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(xr(r)){if(n){for(f=r.length,u=r.get&&r.set?Je("default"):$e("default"),h=0;h<f;h++)if(!Fn(u(r,h))){s=!0;break}if(s){if(!Sn(f))throw new RangeError(W("invalid argument. First argument must have a length which is a multiple of two. Length: `%u`.",f));for(o=(i=new this(f/2))._buffer,h=0;h<f;h++)o[h]=n.call(t,u(r,h),h);return i}for(o=(i=new this(f))._buffer,c=0,h=0;h<f;h++){if(Fn(l=n.call(t,u(r,h),h)))o[c]=$n(l),o[c+1]=Hn(l);else{if(!(dn(l)&&l.length>=2))throw new TypeError(W("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));o[c]=l[0],o[c+1]=l[1]}c+=2}return i}return new this(r)}if(Jr(r)&&Jn&&Xr(r[qr])){if(!Xr((o=r[qr]()).next))throw new TypeError(W("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,t,e){var n,i,o,a;for(n=[],a=-1;!(i=r.next()).done;)if(a+=1,dn(o=t.call(e,i.value,a))&&o.length>=2)n.push(o[0],o[1]);else{if(!Fn(o))return new TypeError(W("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",o));n.push($n(o),Hn(o))}return n}(o,n,t):Zn(o),a instanceof Error)throw a;for(o=(i=new this(f=a.length/2))._buffer,h=0;h<f;h++)o[h]=a[h];return i}throw new TypeError(W("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r))})),D(Kn,"of",(function(){var r,t;if(!Xr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!qn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(r=[],t=0;t<arguments.length;t++)r.push(arguments[t]);return new this(r)})),D(Kn.prototype,"at",(function(r){if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ar(r))throw new TypeError(W("invalid argument. Must provide an integer. Value: `%s`.",r));if(r<0&&(r+=this._length),!(r<0||r>=this._length))return Dn(this._buffer,r)})),Dr(Kn.prototype,"buffer",(function(){return this._buffer.buffer})),Dr(Kn.prototype,"byteLength",(function(){return this._buffer.byteLength})),Dr(Kn.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),D(Kn.prototype,"BYTES_PER_ELEMENT",Kn.BYTES_PER_ELEMENT),D(Kn.prototype,"copyWithin",(function(r,t){if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return 2===arguments.length?this._buffer.copyWithin(2*r,2*t):this._buffer.copyWithin(2*r,2*t,2*arguments[2]),this})),D(Kn.prototype,"entries",(function(){var r,t,e,n,i,o,a;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return t=this,r=this._buffer,n=this._length,o=-1,a=-2,D(e={},"next",(function(){var t;return o+=1,i||o>=n?{done:!0}:(t=new _n(r[a+=2],r[a+1]),{value:[o,t],done:!1})})),D(e,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(e,qr,(function(){return t.entries()})),e})),D(Kn.prototype,"every",(function(r,t){var e,n;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(!r.call(t,Dn(e,n),n,this))return!1;return!0})),D(Kn.prototype,"fill",(function(r,t,e){var n,i,o,a,u,f;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fn(r))throw new TypeError(W("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(n=this._buffer,i=this._length,arguments.length>1){if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=i)<0&&(t=0),arguments.length>2){if(!ar(e))throw new TypeError(W("invalid argument. Third argument must be an integer. Value: `%s`.",e));e<0&&(e+=i)<0&&(e=0),e>i&&(e=i)}else e=i}else t=0,e=i;for(a=$n(r),u=Hn(r),f=t;f<e;f++)n[o=2*f]=a,n[o+1]=u;return this})),D(Kn.prototype,"filter",(function(r,t){var e,n,i,o;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=[],i=0;i<this._length;i++)o=Dn(e,i),r.call(t,o,i,this)&&n.push(o);return new this.constructor(n)})),D(Kn.prototype,"find",(function(r,t){var e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(i=Dn(e,n),r.call(t,i,n,this))return i})),D(Kn.prototype,"findIndex",(function(r,t){var e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(i=Dn(e,n),r.call(t,i,n,this))return n;return-1})),D(Kn.prototype,"findLast",(function(r,t){var e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=this._length-1;n>=0;n--)if(i=Dn(e,n),r.call(t,i,n,this))return i})),D(Kn.prototype,"findLastIndex",(function(r,t){var e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=this._length-1;n>=0;n--)if(i=Dn(e,n),r.call(t,i,n,this))return n;return-1})),D(Kn.prototype,"forEach",(function(r,t){var e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)i=Dn(e,n),r.call(t,i,n,this)})),D(Kn.prototype,"get",(function(r){if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!hr(r))throw new TypeError(W("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));if(!(r>=this._length))return Dn(this._buffer,r)})),Dr(Kn.prototype,"length",(function(){return this._length})),D(Kn.prototype,"includes",(function(r,t){var e,n,i,o,a;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fn(r))throw new TypeError(W("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0&&(t+=this._length)<0&&(t=0)}else t=0;for(i=$n(r),o=Hn(r),e=this._buffer,a=t;a<this._length;a++)if(i===e[n=2*a]&&o===e[n+1])return!0;return!1})),D(Kn.prototype,"indexOf",(function(r,t){var e,n,i,o,a;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fn(r))throw new TypeError(W("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0&&(t+=this._length)<0&&(t=0)}else t=0;for(i=$n(r),o=Hn(r),e=this._buffer,a=t;a<this._length;a++)if(i===e[n=2*a]&&o===e[n+1])return a;return-1})),D(Kn.prototype,"join",(function(r){var t,e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(0===arguments.length)n=",";else{if(!dr(r))throw new TypeError(W("invalid argument. First argument must be a string. Value: `%s`.",r));n=r}for(t=[],e=this._buffer,i=0;i<this._length;i++)t.push(Dn(e,i).toString());return t.join(n)})),D(Kn.prototype,"keys",(function(){var r,t,e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return r=this,e=this._length,i=-1,D(t={},"next",(function(){return i+=1,n||i>=e?{done:!0}:{value:i,done:!1}})),D(t,"return",(function(r){return n=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(t,qr,(function(){return r.keys()})),t})),D(Kn.prototype,"lastIndexOf",(function(r,t){var e,n,i,o,a;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Fn(r))throw new TypeError(W("invalid argument. First argument must be a complex number. Value: `%s`.",r));if(arguments.length>1){if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t>=this._length?t=this._length-1:t<0&&(t+=this._length)}else t=this._length-1;for(i=$n(r),o=Hn(r),e=this._buffer,a=t;a>=0;a--)if(i===e[n=2*a]&&o===e[n+1])return a;return-1})),D(Kn.prototype,"map",(function(r,t){var e,n,i,o,a;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(n=this._buffer,e=(i=new this.constructor(this._length))._buffer,o=0;o<this._length;o++)if(Fn(a=r.call(t,Dn(n,o),o,this)))e[2*o]=$n(a),e[2*o+1]=Hn(a);else{if(!dn(a)||2!==a.length)throw new TypeError(W("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",a));e[2*o]=a[0],e[2*o+1]=a[1]}return i})),D(Kn.prototype,"reduce",(function(r,t){var e,n,i,o;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));if(e=this._buffer,i=this._length,arguments.length>1)n=t,o=0;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=Dn(e,0),o=1}for(;o<i;o++)n=r(n,Dn(e,o),o,this);return n})),D(Kn.prototype,"reduceRight",(function(r,t){var e,n,i,o;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));if(e=this._buffer,i=this._length,arguments.length>1)n=t,o=i-1;else{if(0===i)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");n=Dn(e,i-1),o=i-2}for(;o>=0;o--)n=r(n,Dn(e,o),o,this);return n})),D(Kn.prototype,"reverse",(function(){var r,t,e,n,i,o;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=this._length,r=this._buffer,n=or(e/2),i=0;i<n;i++)o=e-i-1,t=r[2*i],r[2*i]=r[2*o],r[2*o]=t,t=r[2*i+1],r[2*i+1]=r[2*o+1],r[2*o+1]=t;return this})),D(Kn.prototype,"set",(function(r){var t,e,n,i,o,a,u,f,s;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,arguments.length>1){if(!hr(e=arguments[1]))throw new TypeError(W("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",e))}else e=0;if(Fn(r)){if(e>=this._length)throw new RangeError(W("invalid argument. Index argument is out-of-bounds. Value: `%u`.",e));return n[e*=2]=$n(r),void(n[e+1]=Hn(r))}if(zn(r)){if(e+(a=r._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(t=r._buffer,s=n.byteOffset+e*Xn,t.buffer===n.buffer&&t.byteOffset<s&&t.byteOffset+t.byteLength>s){for(i=new re(t.length),f=0;f<t.length;f++)i[f]=t[f];t=i}for(e*=2,s=0,f=0;f<a;f++)n[e]=t[s],n[e+1]=t[s+1],e+=2,s+=2}else{if(!xr(r))throw new TypeError(W("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",r));for(a=r.length,f=0;f<a;f++)if(!Fn(r[f])){o=!0;break}if(o){if(!Sn(a))throw new RangeError(W("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",a));if(e+a/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(t=r,s=n.byteOffset+e*Xn,t.buffer===n.buffer&&t.byteOffset<s&&t.byteOffset+t.byteLength>s){for(i=new re(a),f=0;f<a;f++)i[f]=t[f];t=i}for(e*=2,a/=2,s=0,f=0;f<a;f++)n[e]=t[s],n[e+1]=t[s+1],e+=2,s+=2;return}if(e+a>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(e*=2,f=0;f<a;f++)u=r[f],n[e]=$n(u),n[e+1]=Hn(u),e+=2}})),D(Kn.prototype,"slice",(function(r,t){var e,n,i,o,a,u,f;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(a=this._buffer,u=this._length,0===arguments.length)r=0,t=u;else{if(!ar(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=u)<0&&(r=0),1===arguments.length)t=u;else{if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0?(t+=u)<0&&(t=0):t>u&&(t=u)}}for(e=r<t?t-r:0,n=(i=new this.constructor(e))._buffer,f=0;f<e;f++)o=2*(f+r),n[2*f]=a[o],n[2*f+1]=a[o+1];return i})),D(Kn.prototype,"some",(function(r,t){var e,n;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(r.call(t,Dn(e,n),n,this))return!0;return!1})),D(Kn.prototype,"sort",(function(r){var t,e,n,i,o;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=this._length,t=[],i=0;i<n;i++)t.push(Dn(e,i));for(t.sort(r),i=0;i<n;i++)e[o=2*i]=$n(t[i]),e[o+1]=Hn(t[i]);return this})),D(Kn.prototype,"subarray",(function(r,t){var e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(n=this._buffer,i=this._length,0===arguments.length)r=0,t=i;else{if(!ar(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=i)<0&&(r=0),1===arguments.length)t=i;else{if(!ar(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0?(t+=i)<0&&(t=0):t>i&&(t=i)}}return r>=i?(i=0,e=n.byteLength):r>=t?(i=0,e=n.byteOffset+r*Xn):(i=t-r,e=n.byteOffset+r*Xn),new this.constructor(n.buffer,e,i<0?0:i)})),D(Kn.prototype,"toLocaleString",(function(r,t){var e,n,i,o,a;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(0===arguments.length)n=[];else{if(!dr(r)&&!Er(r))throw new TypeError(W("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",r));n=r}if(arguments.length<2)e={};else{if(!Jr(t))throw new TypeError(W("invalid argument. Options argument must be an object. Value: `%s`.",t));e=t}for(o=this._buffer,i=[],a=0;a<this._length;a++)i.push(Dn(o,a).toLocaleString(n,e));return i.join(",")})),D(Kn.prototype,"toReversed",(function(){var r,t,e,n,i,o;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=this._length,t=new this.constructor(e),n=this._buffer,r=t._buffer,i=0;i<e;i++)o=e-i-1,r[2*i]=n[2*o],r[2*i+1]=n[2*o+1];return t})),D(Kn.prototype,"toSorted",(function(r){var t,e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=this._length,t=[],i=0;i<n;i++)t.push(Dn(e,i));return t.sort(r),new Kn(t)})),D(Kn.prototype,"toString",(function(){var r,t,e;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(r=[],t=this._buffer,e=0;e<this._length;e++)r.push(Dn(t,e).toString());return r.join(",")})),D(Kn.prototype,"values",(function(){var r,t,e,n,i,o;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return t=this,i=this._buffer,e=this._length,o=-1,D(r={},"next",(function(){return o+=1,n||o>=e?{done:!0}:{value:Dn(i,o),done:!1}})),D(r,"return",(function(r){return n=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(r,qr,(function(){return t.values()})),r})),D(Kn.prototype,"with",(function(r,t){var e,n,i;if(!zn(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ar(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(i=this._length,r<0&&(r+=i),r<0||r>=i)throw new RangeError(W("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!Fn(t))throw new TypeError(W("invalid argument. Second argument must be a complex number. Value: `%s`.",t));return(e=(n=new this.constructor(this._buffer))._buffer)[2*r]=$n(t),e[2*r+1]=Hn(t),n}));var ri=oe.BYTES_PER_ELEMENT,ti=c();function ei(r){return"object"==typeof r&&null!==r&&"BooleanArray"===r.constructor.name&&r.BYTES_PER_ELEMENT===ri}function ni(r){return r===ii}function ii(){var r,t,e,n,i;if(t=arguments.length,!(this instanceof ii))return 0===t?new ii:1===t?new ii(arguments[0]):2===t?new ii(arguments[0],arguments[1]):new ii(arguments[0],arguments[1],arguments[2]);if(0===t)e=new oe(0);else if(1===t)if(hr(i=arguments[0]))e=new oe(i);else if(xr(i))e=function(r,t){var e,n;for(e=t.length,n=0;n<e;n++)r[n]=Lr(t[n]);return r}(new oe(i.length),i);else if(Fr(i))e=new oe(i);else{if(!Jr(i))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",i));if(!1===ti)throw new TypeError(W("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",i));if(!Xr(i[qr]))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",i));if(!Xr((e=i[qr]()).next))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",i));e=new oe(Qn(e))}else{if(!Fr(e=arguments[0]))throw new TypeError(W("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",e));if(!hr(r=arguments[1]))throw new TypeError(W("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(2===t)e=new oe(e,r);else{if(!hr(n=arguments[2]))throw new TypeError(W("invalid argument. Length must be a nonnegative integer. Value: `%s`.",n));if(n*ri>e.byteLength-r)throw new RangeError(W("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*ri));e=new oe(e,r,n)}}return D(this,"_buffer",e),D(this,"_length",e.length),this}D(ii,"BYTES_PER_ELEMENT",ri),D(ii,"name","BooleanArray"),D(ii,"from",(function(r){var t,e,n,i,o,a,u,f,s;if(!Xr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!ni(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if((e=arguments.length)>1){if(!Xr(n=arguments[1]))throw new TypeError(W("invalid argument. Second argument must be a function. Value: `%s`.",n));e>2&&(t=arguments[2])}if(xr(r)){if(n){for(f=r.length,u=r.get&&r.set?Je("default"):$e("default"),o=(i=new this(f))._buffer,s=0;s<f;s++)o[s]=Lr(n.call(t,u(r,s),s));return i}return new this(r)}if(Jr(r)&&ti&&Xr(r[qr])){if(!Xr((o=r[qr]()).next))throw new TypeError(W("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));for(a=n?function(r,t,e){var n,i,o;for(n=[],o=-1;!(i=r.next()).done;)o+=1,n.push(Lr(t.call(e,i.value,o)));return n}(o,n,t):Qn(o),o=(i=new this(f=a.length))._buffer,s=0;s<f;s++)o[s]=a[s];return i}throw new TypeError(W("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r))})),D(ii,"of",(function(){var r,t;if(!Xr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!ni(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(r=[],t=0;t<arguments.length;t++)r.push(arguments[t]);return new this(r)})),D(ii.prototype,"at",(function(r){var t,e;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!fr(r))throw new TypeError(W("invalid argument. Must provide an integer. Value: `%s`.",r));if(e=this._length,t=this._buffer,r<0&&(r+=e),!(r<0||r>=e))return Lr(t[r])})),Dr(ii.prototype,"buffer",(function(){return this._buffer.buffer})),Dr(ii.prototype,"byteLength",(function(){return this._buffer.byteLength})),Dr(ii.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),D(ii.prototype,"BYTES_PER_ELEMENT",ii.BYTES_PER_ELEMENT),D(ii.prototype,"copyWithin",(function(r,t){if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return 2===arguments.length?this._buffer.copyWithin(r,t):this._buffer.copyWithin(r,t,arguments[2]),this})),D(ii.prototype,"entries",(function(){var r,t,e,n,i,o;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return r=this,n=this._buffer,e=this._length,o=-1,D(t={},"next",(function(){return o+=1,i||o>=e?{done:!0}:{value:[o,Lr(n[o])],done:!1}})),D(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(t,qr,(function(){return r.entries()})),t})),D(ii.prototype,"every",(function(r,t){var e,n;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(!r.call(t,Lr(e[n]),n,this))return!1;return!0})),D(ii.prototype,"fill",(function(r,t,e){var n,i,o,a;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!jr(r))throw new TypeError(W("invalid argument. First argument must be a boolean. Value: `%s`.",r));if(n=this._buffer,i=this._length,arguments.length>1){if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=i)<0&&(t=0),arguments.length>2){if(!fr(e))throw new TypeError(W("invalid argument. Third argument must be an integer. Value: `%s`.",e));e<0&&(e+=i)<0&&(e=0),e>i&&(e=i)}else e=i}else t=0,e=i;for(o=r?1:0,a=t;a<e;a++)n[a]=o;return this})),D(ii.prototype,"filter",(function(r,t){var e,n,i,o;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=[],i=0;i<this._length;i++)o=Lr(e[i]),r.call(t,o,i,this)&&n.push(o);return new this.constructor(n)})),D(ii.prototype,"find",(function(r,t){var e,n,i;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,i=0;i<this._length;i++)if(n=Lr(e[i]),r.call(t,n,i,this))return n})),D(ii.prototype,"findIndex",(function(r,t){var e,n,i;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,i=0;i<this._length;i++)if(n=Lr(e[i]),r.call(t,n,i,this))return i;return-1})),D(ii.prototype,"findLast",(function(r,t){var e,n,i;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,i=this._length-1;i>=0;i--)if(n=Lr(e[i]),r.call(t,n,i,this))return n})),D(ii.prototype,"findLastIndex",(function(r,t){var e,n,i;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,i=this._length-1;i>=0;i--)if(n=Lr(e[i]),r.call(t,n,i,this))return i;return-1})),D(ii.prototype,"forEach",(function(r,t){var e,n;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)r.call(t,Lr(e[n]),n,this)})),D(ii.prototype,"get",(function(r){if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!hr(r))throw new TypeError(W("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));if(!(r>=this._length))return Lr(this._buffer[r])})),D(ii.prototype,"includes",(function(r,t){var e,n;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!jr(r))throw new TypeError(W("invalid argument. First argument must be a boolean. Value: `%s`.",r));if(arguments.length>1){if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0&&(t+=this._length)<0&&(t=0)}else t=0;for(e=this._buffer,n=t;n<this._length;n++)if(r===Lr(e[n]))return!0;return!1})),D(ii.prototype,"indexOf",(function(r,t){var e,n;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!jr(r))throw new TypeError(W("invalid argument. First argument must be a boolean. Value: `%s`.",r));if(arguments.length>1){if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0&&(t+=this._length)<0&&(t=0)}else t=0;for(e=this._buffer,n=t;n<this._length;n++)if(r===Lr(e[n]))return n;return-1})),D(ii.prototype,"join",(function(r){var t,e,n;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length>0){if(!mr(r))throw new TypeError(W("invalid argument. First argument must be a string. Value: `%s`.",r))}else r=",";for(t=this._buffer,e=[],n=0;n<this._length;n++)t[n]?e.push("true"):e.push("false");return e.join(r)})),D(ii.prototype,"keys",(function(){var r,t,e,n,i;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return r=this,e=this._length,i=-1,D(t={},"next",(function(){return i+=1,n||i>=e?{done:!0}:{value:i,done:!1}})),D(t,"return",(function(r){return n=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(t,qr,(function(){return r.keys()})),t})),D(ii.prototype,"lastIndexOf",(function(r,t){var e,n;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!jr(r))throw new TypeError(W("invalid argument. First argument must be a boolean. Value: `%s`.",r));if(arguments.length>1){if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t>=this._length?t=this._length-1:t<0&&(t+=this._length)}else t=this._length-1;for(e=this._buffer,n=t;n>=0;n--)if(r===Lr(e[n]))return n;return-1})),Dr(ii.prototype,"length",(function(){return this._length})),D(ii.prototype,"map",(function(r,t){var e,n,i,o;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",r);for(i=this._buffer,e=(n=new this.constructor(this._length))._buffer,o=0;o<this._length;o++)e[o]=Lr(r.call(t,Lr(i[o]),o,this));return n})),D(ii.prototype,"reduce",(function(r,t){var e,n,i,o;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));if(e=this._buffer,n=this._length,arguments.length>1)i=t,o=0;else{if(0===n)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=Lr(e[0]),o=1}for(;o<n;o++)i=r(i,Lr(e[o]),o,this);return i})),D(ii.prototype,"reduceRight",(function(r,t){var e,n,i,o;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));if(e=this._buffer,n=this._length,arguments.length>1)i=t,o=n-1;else{if(0===n)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=Lr(e[n-1]),o=n-2}for(;o>=0;o--)i=r(i,Lr(e[o]),o,this);return i})),D(ii.prototype,"reverse",(function(){var r,t,e,n,i,o;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(r=this._buffer,e=this._length,n=or(e/2),i=0;i<n;i++)o=e-i-1,t=r[i],r[i]=r[o],r[o]=t;return this})),D(ii.prototype,"set",(function(r){var t,e,n,i,o,a,u;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(n=this._buffer,arguments.length>1){if(!hr(e=arguments[1]))throw new TypeError(W("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",e))}else e=0;if(xr(r)){if(e+(o=r.length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(t=ei(r)?r._buffer:r,u=n.byteOffset+e*ri,t.buffer===n.buffer&&t.byteOffset<u&&t.byteOffset+t.byteLength>u){for(i=new oe(t.length),a=0;a<t.length;a++)i[a]=t[a];t=i}for(a=0;a<o;e++,a++)n[e]=t[a]?1:0}else{if(e>=this._length)throw new RangeError(W("invalid argument. Index argument is out-of-bounds. Value: `%u`.",e));n[e]=r?1:0}})),D(ii.prototype,"slice",(function(r,t){var e,n,i,o,a,u;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,a=this._length,0===arguments.length)r=0,t=a;else{if(!fr(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=a)<0&&(r=0),1===arguments.length)t=a;else{if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0?(t+=a)<0&&(t=0):t>a&&(t=a)}}for(e=r<t?t-r:0,n=(i=new this.constructor(e))._buffer,u=0;u<e;u++)n[u]=o[u+r];return i})),D(ii.prototype,"some",(function(r,t){var e,n;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(r.call(t,Lr(e[n]),n,this))return!0;return!1})),D(ii.prototype,"sort",(function(r){var t;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(t=this._buffer,0===arguments.length)return t.sort(),this;if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));return t.sort((function(t,e){return r(Lr(t),Lr(e))})),this})),D(ii.prototype,"subarray",(function(r,t){var e,n,i;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(n=this._buffer,i=this._length,0===arguments.length)r=0,t=i;else{if(!fr(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=i)<0&&(r=0),1===arguments.length)t=i;else{if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0?(t+=i)<0&&(t=0):t>i&&(t=i)}}return r>=i?(i=0,e=n.byteLength):r>=t?(i=0,e=n.byteOffset+r*ri):(i=t-r,e=n.byteOffset+r*ri),new this.constructor(n.buffer,e,i<0?0:i)})),D(ii.prototype,"toLocaleString",(function(r,t){var e,n,i,o,a;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(0===arguments.length)n=[];else{if(!mr(r)&&!Er(r))throw new TypeError(W("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",r));n=r}if(arguments.length<2)e={};else{if(!Jr(t))throw new TypeError(W("invalid argument. Options argument must be an object. Value: `%s`.",t));e=t}for(o=this._buffer,i=[],a=0;a<this._length;a++)i.push(Lr(o[a]).toLocaleString(n,e));return i.join(",")})),D(ii.prototype,"toReversed",(function(){var r,t,e,n,i;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=this._length,t=new this.constructor(e),n=this._buffer,r=t._buffer,i=0;i<e;i++)r[i]=n[e-i-1];return t})),D(ii.prototype,"toSorted",(function(r){var t,e,n,i,o;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(n=this._length,e=new this.constructor(n),i=this._buffer,t=e._buffer,o=0;o<n;o++)t[o]=i[o];if(0===arguments.length)return t.sort(),e;if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));return t.sort((function(t,e){return r(Lr(t),Lr(e))})),e})),D(ii.prototype,"toString",(function(){var r,t,e;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(r=[],t=this._buffer,e=0;e<this._length;e++)t[e]?r.push("true"):r.push("false");return r.join(",")})),D(ii.prototype,"values",(function(){var r,t,e,n,i,o;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return t=this,i=this._buffer,e=this._length,o=-1,D(r={},"next",(function(){return o+=1,n||o>=e?{done:!0}:{value:Lr(i[o]),done:!1}})),D(r,"return",(function(r){return n=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(r,qr,(function(){return t.values()})),r})),D(ii.prototype,"with",(function(r,t){var e,n;if(!ei(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!fr(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(n=this._length,r<0&&(r+=n),r<0||r>=n)throw new RangeError(W("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!jr(t))throw new TypeError(W("invalid argument. Second argument must be a boolean. Value: `%s`.",t));return(e=new this.constructor(this._buffer))._buffer[r]=t?1:0,e}));var oi=[re,wt,nn,Et,sn,nt,vn,oe,yn,Gn,Kn,ii],ai=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"],ui=ai.length;function fi(r){var t,e=function(r){var t;if(yr(r))return"generic";if($r(r))return null;for(t=0;t<ui;t++)if(r instanceof oi[t])return ai[t];return Ke[Hr(r)]||null}(r);return typeof(t=r).get===We&&typeof t.set===We?{data:r,dtype:e,accessorProtocol:!0,accessors:[Je(e),qe(e)]}:{data:r,dtype:e,accessorProtocol:!1,accessors:[$e(e),Ze(e)]}}function si(r,t,e,n,i,o,a){var u,f,s,l,h,c,p;for(u=t.data,f=i.data,l=t.accessors[0],s=i.accessors[1],h=n,c=a,p=0;p<r;p++)s(f,c,l(u,h)),h+=e,c+=o;return i}var li=8;function hi(r,t,e,n,i){var o,a,u,f,s,l;if(r<=0)return n;if(u=fi(t),f=fi(n),u.accessorProtocol||f.accessorProtocol)return si(r,u,e,o=e<0?(1-r)*e:0,f,i,a=i<0?(1-r)*i:0),f.data;if(1===e&&1===i){if((s=r%li)>0)for(l=0;l<s;l++)n[l]=t[l];if(r<li)return n;for(l=s;l<r;l+=li)n[l]=t[l],n[l+1]=t[l+1],n[l+2]=t[l+2],n[l+3]=t[l+3],n[l+4]=t[l+4],n[l+5]=t[l+5],n[l+6]=t[l+6],n[l+7]=t[l+7];return n}for(o=e<0?(1-r)*e:0,a=i<0?(1-r)*i:0,l=0;l<r;l++)n[a]=t[o],o+=e,a+=i;return n}function ci(r){var t,e;for(t=[];!(e=r.next()).done;)t.push(Ct(lt(e.value)));return t}D(hi,"ndarray",(function(r,t,e,n,i,o,a){var u,f,s,l,h,c;if(r<=0)return i;if(s=fi(t),l=fi(i),s.accessorProtocol||l.accessorProtocol)return si(r,s,e,n,l,o,a),l.data;if(u=n,f=a,1===e&&1===o){if((h=r%8)>0)for(c=0;c<h;c++)i[f]=t[u],u+=e,f+=o;if(r<8)return i;for(c=h;c<r;c+=8)i[f]=t[u],i[f+1]=t[u+1],i[f+2]=t[u+2],i[f+3]=t[u+3],i[f+4]=t[u+4],i[f+5]=t[u+5],i[f+6]=t[u+6],i[f+7]=t[u+7],u+=8,f+=8;return i}for(c=0;c<r;c++)i[f]=t[u],u+=e,f+=o;return i}));var pi=nt.BYTES_PER_ELEMENT,yi=c();function gi(r){return"object"==typeof r&&null!==r&&"Float16Array"===r.constructor.name&&r.BYTES_PER_ELEMENT===pi}function mi(r){return r===bi}function wi(r,t){return function(){return r._get(t)}}function vi(r,t){return function(e){r.set([e],t)}}function bi(){var r,t,e,n,i,o;if(t=arguments.length,!(this instanceof bi))return 0===t?new bi:1===t?new bi(arguments[0]):2===t?new bi(arguments[0],arguments[1]):new bi(arguments[0],arguments[1],arguments[2]);if(0===t)e=new nt(0);else if(1===t)if(hr(i=arguments[0]))e=new nt(i);else if(xr(i))gi(i)?(e=new nt(i.length),hi.ndarray(i.length,new nt(i.buffer,i.byteOffset,i.length),1,0,e,1,0)):e=function(r,t){var e,n;for(e=t.length,n=0;n<e;n++)r[n]=Ct(lt(t[n]));return r}(new nt(i.length),i);else if(Fr(i)){if(!fr(i.byteLength/pi))throw new RangeError(W("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",pi,i.byteLength));e=new nt(i)}else{if(!Jr(i))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",i));if(!1===yi)throw new TypeError(W("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",i));if(!Xr(i[qr]))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",i));if(!Xr((e=i[qr]()).next))throw new TypeError(W("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",i));e=new nt(ci(e))}else{if(!Fr(e=arguments[0]))throw new TypeError(W("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",e));if(!hr(r=arguments[1]))throw new TypeError(W("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!fr(r/pi))throw new RangeError(W("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",pi,r));if(2===t){if(!fr((n=e.byteLength-r)/pi))throw new RangeError(W("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",pi,n));e=new nt(e,r)}else{if(!hr(n=arguments[2]))throw new TypeError(W("invalid argument. Length must be a nonnegative integer. Value: `%s`.",n));if(n*pi>e.byteLength-r)throw new RangeError(W("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",n*pi));e=new nt(e,r,n)}}for(D(this,"_buffer",e),D(this,"_length",e.length),o=0;o<e.length;o++)Kr(this,o,wi(this,o),vi(this,o));return this}D(bi,"BYTES_PER_ELEMENT",pi),D(bi,"name","Float16Array"),D(bi,"from",(function(r){var t,e,n,i,o,a,u,f;if(!Xr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!mi(this))throw new TypeError("invalid invocation. `this` is not a floating-point array.");if((e=arguments.length)>1){if(!Xr(n=arguments[1]))throw new TypeError(W("invalid argument. Second argument must be a function. Value: `%s`.",n));e>2&&(t=arguments[2])}if(xr(r)){if(n){for(o=(i=new this(u=r.length))._buffer,f=0;f<u;f++)o[f]=Ct(lt(n.call(t,r[f],f)));return i}return new this(r)}if(Jr(r)&&yi&&Xr(r[qr])){if(!Xr((o=r[qr]()).next))throw new TypeError(W("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r));if(a=n?function(r,t,e){var n,i,o;for(n=[],o=-1;!(i=r.next()).done;)o+=1,n.push(Ct(lt(t.call(e,i.value,o))));return n}(o,n,t):ci(o),a instanceof Error)throw a;for(o=(i=new this(u=a.length))._buffer,f=0;f<u;f++)o[f]=a[f];return i}throw new TypeError(W("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",r))})),D(bi,"of",(function(){var r,t;if(!Xr(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!mi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");for(r=[],t=0;t<arguments.length;t++)r.push(arguments[t]);return new this(r)})),D(bi.prototype,"at",(function(r){if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!fr(r))throw new TypeError(W("invalid argument. Must provide an integer. Value: `%s`.",r));if(r<0&&(r+=this._length),!(r<0||r>=this._length))return Ye(this._buffer[r])})),Dr(bi.prototype,"buffer",(function(){return this._buffer.buffer})),Dr(bi.prototype,"byteLength",(function(){return this._buffer.byteLength})),Dr(bi.prototype,"byteOffset",(function(){return this._buffer.byteOffset})),D(bi.prototype,"BYTES_PER_ELEMENT",bi.BYTES_PER_ELEMENT),D(bi.prototype,"copyWithin",(function(r,t){if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");return 2===arguments.length?this._buffer.copyWithin(r,t):this._buffer.copyWithin(r,t,arguments[2]),this})),D(bi.prototype,"entries",(function(){var r,t,e,n,i,o;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");return r=this,n=this._buffer,e=this._length,o=-1,D(t={},"next",(function(){return o+=1,i||o>=e?{done:!0}:{value:[o,Ye(n[o])],done:!1}})),D(t,"return",(function(r){return i=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(t,qr,(function(){return r.entries()})),t})),D(bi.prototype,"every",(function(r,t){var e,n;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(!r.call(t,Ye(e[n]),n,this))return!1;return!0})),D(bi.prototype,"fill",(function(r,t,e){var n,i,o,a;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!K(r))throw new TypeError(W("invalid argument. First argument must be a number. Value: `%s`.",r));if(n=this._buffer,i=this._length,arguments.length>1){if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=i)<0&&(t=0),arguments.length>2){if(!fr(e))throw new TypeError(W("invalid argument. Third argument must be an integer. Value: `%s`.",e));e<0&&(e+=i)<0&&(e=0),e>i&&(e=i)}else e=i}else t=0,e=i;for(a=Ct(r),o=t;o<e;o++)n[o]=a;return this})),D(bi.prototype,"filter",(function(r,t){var e,n,i,o;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=[],i=0;i<this._length;i++)o=Ye(e[i]),r.call(t,o,i,this)&&n.push(o);return new this.constructor(n)})),D(bi.prototype,"find",(function(r,t){var e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,i=0;i<this._length;i++)if(n=Ye(e[i]),r.call(t,n,i,this))return n})),D(bi.prototype,"findIndex",(function(r,t){var e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,i=0;i<this._length;i++)if(n=Ye(e[i]),r.call(t,n,i,this))return i;return-1})),D(bi.prototype,"findLast",(function(r,t){var e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,i=this._length-1;i>=0;i--)if(n=Ye(e[i]),r.call(t,n,i,this))return n})),D(bi.prototype,"findLastIndex",(function(r,t){var e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,i=this._length-1;i>=0;i--)if(n=Ye(e[i]),r.call(t,n,i,this))return i;return-1})),D(bi.prototype,"forEach",(function(r,t){var e,n;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)r.call(t,Ye(e[n]),n,this)})),D(bi.prototype,"_get",(function(r){if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!hr(r))throw new TypeError(W("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));if(!(r>=this._length))return Ye(this._buffer[r])})),D(bi.prototype,"includes",(function(r,t){var e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!K(r))throw new TypeError(W("invalid argument. First argument must be a number. Value: `%s`.",r));if(arguments.length>1){if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0&&(t+=this._length)<0&&(t=0)}else t=0;for(e=this._buffer,i=Ct(r),n=t;n<this._length;n++)if(i===e[n])return!0;return!1})),D(bi.prototype,"indexOf",(function(r,t){var e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!K(r))throw new TypeError(W("invalid argument. First argument must be a number. Value: `%s`.",r));if(arguments.length>1){if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0&&(t+=this._length)<0&&(t=0)}else t=0;for(e=this._buffer,i=Ct(r),n=t;n<this._length;n++)if(i===e[n])return n;return-1})),D(bi.prototype,"join",(function(r){var t,e,n;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(arguments.length>0){if(!mr(r))throw new TypeError(W("invalid argument. First argument must be a string. Value: `%s`.",r))}else r=",";for(t=this._buffer,e=[],n=0;n<this._length;n++)e.push(Ye(t[n]));return e.join(r)})),D(bi.prototype,"keys",(function(){var r,t,e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");return r=this,e=this._length,i=-1,D(t={},"next",(function(){return i+=1,n||i>=e?{done:!0}:{value:i,done:!1}})),D(t,"return",(function(r){return n=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(t,qr,(function(){return r.keys()})),t})),D(bi.prototype,"lastIndexOf",(function(r,t){var e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!K(r))throw new TypeError(W("invalid argument. First argument must be a number. Value: `%s`.",r));if(arguments.length>1){if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t>=this._length?t=this._length-1:t<0&&(t+=this._length)}else t=this._length-1;for(e=this._buffer,i=Ct(r),n=t;n>=0;n--)if(i===e[n])return n;return-1})),Dr(bi.prototype,"length",(function(){return this._length})),D(bi.prototype,"map",(function(r,t){var e,n,i,o;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",r);for(i=this._buffer,e=(n=new this.constructor(this._length))._buffer,o=0;o<this._length;o++)e[o]=Ct(r.call(t,Ye(i[o]),o,this));return n})),D(bi.prototype,"reduce",(function(r,t){var e,n,i,o;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));if(e=this._buffer,n=this._length,arguments.length>1)i=t,o=0;else{if(0===n)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=Ye(e[0]),o=1}for(;o<n;o++)i=r(i,Ye(e[o]),o,this);return i})),D(bi.prototype,"reduceRight",(function(r,t){var e,n,i,o;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));if(e=this._buffer,n=this._length,arguments.length>1)i=t,o=n-1;else{if(0===n)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=Ye(e[n-1]),o=n-2}for(;o>=0;o--)i=r(i,Ye(e[o]),o,this);return i})),D(bi.prototype,"reverse",(function(){var r,t,e,n,i,o;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");for(r=this._buffer,e=this._length,n=or(e/2),i=0;i<n;i++)o=e-i-1,t=r[i],r[i]=r[o],r[o]=t;return this})),D(bi.prototype,"set",(function(r){var t,e,n,i,o,a,u,f;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!xr(r))throw new TypeError(W("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(n=this._buffer,arguments.length>1){if(!hr(e=arguments[1]))throw new TypeError(W("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",e))}else e=0;if(e+(a=r.length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(gi(r)?(t=r._buffer,o=!0):(t=r,o=!1),f=n.byteOffset+e*pi,t.buffer===n.buffer&&t.byteOffset<f&&t.byteOffset+t.byteLength>f){for(i=new nt(t.length),u=0;u<t.length;u++)i[u]=t[u];t=i}if(o)for(u=0;u<a;e++,u++)n[e]=t[u];else for(u=0;u<a;e++,u++)n[e]=Ct(t[u])})),D(bi.prototype,"slice",(function(r,t){var e,n,i,o,a,u;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(o=this._buffer,a=this._length,0===arguments.length)r=0,t=a;else{if(!fr(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=a)<0&&(r=0),1===arguments.length)t=a;else{if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0?(t+=a)<0&&(t=0):t>a&&(t=a)}}for(e=r<t?t-r:0,n=(i=new this.constructor(e))._buffer,u=0;u<e;u++)n[u]=o[u+r];return i})),D(bi.prototype,"some",(function(r,t){var e,n;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));for(e=this._buffer,n=0;n<this._length;n++)if(r.call(t,Ye(e[n]),n,this))return!0;return!1})),D(bi.prototype,"sort",(function(r){var t;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(t=this._buffer,0===arguments.length)return t.sort((function(r,t){var e=Ye(r),n=Ye(t);return zr(e)&&zr(n)?0:zr(e)?1:zr(n)||e<n?-1:e>n?1:0})),this;if(!Xr(r))throw new TypeError(W("invalid argument. First argument must be a function. Value: `%s`.",r));return t.sort((function(t,e){return r(Ye(t),Ye(e))})),this})),D(bi.prototype,"subarray",(function(r,t){var e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(n=this._buffer,i=this._length,0===arguments.length)r=0,t=i;else{if(!fr(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(r<0&&(r+=i)<0&&(r=0),1===arguments.length)t=i;else{if(!fr(t))throw new TypeError(W("invalid argument. Second argument must be an integer. Value: `%s`.",t));t<0?(t+=i)<0&&(t=0):t>i&&(t=i)}}return r>=i?(i=0,e=n.byteLength):r>=t?(i=0,e=n.byteOffset+r*pi):(i=t-r,e=n.byteOffset+r*pi),new this.constructor(n.buffer,e,i<0?0:i)})),D(bi.prototype,"toLocaleString",(function(r,t){var e,n,i,o,a;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(0===arguments.length)n=[];else{if(!mr(r)&&!Er(r))throw new TypeError(W("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",r));n=r}if(arguments.length<2)e={};else{if(!Jr(t))throw new TypeError(W("invalid argument. Options argument must be an object. Value: `%s`.",t));e=t}for(o=this._buffer,i=[],a=0;a<this._length;a++)i.push(Ye(o[a]));return i.toLocaleString(n,e)})),D(bi.prototype,"toReversed",(function(){var r,t,e,n,i;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");for(e=this._length,t=new this.constructor(e),n=this._buffer,r=t._buffer,i=0;i<e;i++)r[i]=n[e-i-1];return t})),D(bi.prototype,"toSorted",(function(r){var t;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");return t=new this.constructor(this),0===arguments.length?t.sort():t.sort(r)})),D(bi.prototype,"toString",(function(){var r,t,e;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");for(t=this._buffer,r=[],e=0;e<this._length;e++)r.push(Ye(t[e]));return r.join(",")})),D(bi.prototype,"values",(function(){var r,t,e,n,i,o;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");return t=this,i=this._buffer,e=this._length,o=-1,D(r={},"next",(function(){return o+=1,n||o>=e?{done:!0}:{value:Ye(i[o]),done:!1}})),D(r,"return",(function(r){return n=!0,arguments.length?{value:r,done:!0}:{done:!0}})),qr&&D(r,qr,(function(){return t.values()})),r})),D(bi.prototype,"with",(function(r,t){var e,n;if(!gi(this))throw new TypeError("invalid invocation. `this` is not a floating-point number array.");if(!fr(r))throw new TypeError(W("invalid argument. First argument must be an integer. Value: `%s`.",r));if(n=this._length,r<0&&(r+=n),r<0||r>=n)throw new RangeError(W("invalid argument. Index argument is out-of-bounds. Value: `%s`.",r));if(!K(t))throw new TypeError(W("invalid argument. Second argument must be a floating-point number. Value: `%s`.",t));return(e=new this.constructor(this))[r]=t,e}));var di,Ei="function"==typeof Float16Array?Float16Array:void 0;di=function(){var r,t,e;if("function"!=typeof h)return!1;try{t=new h([1,3.14,-3.14,5e40]),e=t,r=(s&&e instanceof Float16Array||"[object Float16Array]"===f(e))&&1===t[0]&&3.14!==t[1]&&-3.14!==t[2]&&t[3]===l}catch(t){r=!1}return r}()?Ei:bi;var _i=di;return function(r){return r instanceof _i||"Float16Array"===Hr(r)}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(r="undefined"!=typeof globalThis?globalThis:r||self).isFloat16Array=t();
//# sourceMappingURL=browser.js.map