numpy-ts 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -126
- package/dist/numpy-ts.browser.js +1 -1364
- package/dist/numpy-ts.esm.js +1 -1364
- package/dist/numpy-ts.node.cjs +1 -1365
- package/dist/types/core/broadcasting.d.ts +16 -13
- package/dist/types/core/ndarray.d.ts +270 -52
- package/dist/types/core/storage.d.ts +25 -18
- package/dist/types/index.d.ts +1 -1
- package/dist/types/internal/compute.d.ts +9 -0
- package/dist/types/ops/linalg.d.ts +79 -0
- package/package.json +7 -7
package/dist/numpy-ts.browser.js
CHANGED
|
@@ -1,1365 +1,2 @@
|
|
|
1
|
-
"use strict";var np=(()=>{var LK=Object.create;var Wo=Object.defineProperty;var MK=Object.getOwnPropertyDescriptor;var GK=Object.getOwnPropertyNames;var YK=Object.getPrototypeOf,$K=Object.prototype.hasOwnProperty;var c=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),WK=(r,e)=>{for(var a in e)Wo(r,a,{get:e[a],enumerable:!0})},Uc=(r,e,a,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of GK(e))!$K.call(r,o)&&o!==a&&Wo(r,o,{get:()=>e[o],enumerable:!(t=MK(e,o))||t.enumerable});return r};var ra=(r,e,a)=>(a=r!=null?LK(YK(r)):{},Uc(e||!r||!r.__esModule?Wo(a,"default",{value:r,enumerable:!0}):a,r)),JK=r=>Uc(Wo({},"__esModule",{value:!0}),r);var Pc=c((dXr,Cc)=>{"use strict";var XK=typeof Object.defineProperty=="function"?Object.defineProperty:null;Cc.exports=XK});var Mc=c((pXr,Lc)=>{"use strict";var KK=Pc();function HK(){try{return KK({},"x",{}),!0}catch{return!1}}Lc.exports=HK});var Yc=c((yXr,Gc)=>{"use strict";var ZK=Object.defineProperty;Gc.exports=ZK});var Ls=c((mXr,$c)=>{"use strict";function QK(r){return typeof r=="number"}$c.exports=QK});var Ms=c((hXr,Jc)=>{"use strict";function rH(r){return r[0]==="-"}function Wc(r){var e="",a;for(a=0;a<r;a++)e+="0";return e}function eH(r,e,a){var t=!1,o=e-r.length;return o<0||(rH(r)&&(t=!0,r=r.substr(1)),r=a?r+Wc(o):Wc(o)+r,t&&(r="-"+r)),r}Jc.exports=eH});var Zc=c((gXr,Hc)=>{"use strict";var aH=Ls(),Xc=Ms(),tH=String.prototype.toLowerCase,Kc=String.prototype.toUpperCase;function iH(r){var e,a,t;switch(r.specifier){case"b":e=2;break;case"o":e=8;break;case"x":case"X":e=16;break;case"d":case"i":case"u":default:e=10;break}if(a=r.arg,t=parseInt(a,10),!isFinite(t)){if(!aH(a))throw new Error("invalid integer. Value: "+a);t=0}return t<0&&(r.specifier==="u"||e!==10)&&(t=4294967295+t+1),t<0?(a=(-t).toString(e),r.precision&&(a=Xc(a,r.precision,r.padRight)),a="-"+a):(a=t.toString(e),!t&&!r.precision?a="":r.precision&&(a=Xc(a,r.precision,r.padRight)),r.sign&&(a=r.sign+a)),e===16&&(r.alternate&&(a="0x"+a),a=r.specifier===Kc.call(r.specifier)?Kc.call(a):tH.call(a)),e===8&&r.alternate&&a.charAt(0)!=="0"&&(a="0"+a),a}Hc.exports=iH});var rd=c((bXr,Qc)=>{"use strict";function oH(r){return typeof r=="string"}Qc.exports=oH});var td=c((xXr,ad)=>{"use strict";var nH=Ls(),sH=Math.abs,uH=String.prototype.toLowerCase,ed=String.prototype.toUpperCase,Ft=String.prototype.replace,vH=/e\+(\d)$/,fH=/e-(\d)$/,lH=/^(\d+)$/,cH=/^(\d+)e/,dH=/\.0$/,pH=/\.0*e/,yH=/(\..*[^0])0*e/;function mH(r){var e,a,t=parseFloat(r.arg);if(!isFinite(t)){if(!nH(r.arg))throw new Error("invalid floating-point number. Value: "+a);t=r.arg}switch(r.specifier){case"e":case"E":a=t.toExponential(r.precision);break;case"f":case"F":a=t.toFixed(r.precision);break;case"g":case"G":sH(t)<1e-4?(e=r.precision,e>0&&(e-=1),a=t.toExponential(e)):a=t.toPrecision(r.precision),r.alternate||(a=Ft.call(a,yH,"$1e"),a=Ft.call(a,pH,"e"),a=Ft.call(a,dH,""));break;default:throw new Error("invalid double notation. Value: "+r.specifier)}return a=Ft.call(a,vH,"e+0$1"),a=Ft.call(a,fH,"e-0$1"),r.alternate&&(a=Ft.call(a,lH,"$1."),a=Ft.call(a,cH,"$1.e")),t>=0&&r.sign&&(a=r.sign+a),a=r.specifier===ed.call(r.specifier)?ed.call(a):uH.call(a),a}ad.exports=mH});var nd=c((qXr,od)=>{"use strict";function id(r){var e="",a;for(a=0;a<r;a++)e+=" ";return e}function hH(r,e,a){var t=e-r.length;return t<0||(r=a?r+id(t):id(t)+r),r}od.exports=hH});var ud=c((wXr,sd)=>{"use strict";var gH=Zc(),bH=rd(),xH=td(),qH=nd(),wH=Ms(),SH=String.fromCharCode,EH=Array.isArray;function Jo(r){return r!==r}function AH(r){var e={};return e.specifier=r.specifier,e.precision=r.precision===void 0?1:r.precision,e.width=r.width,e.flags=r.flags||"",e.mapping=r.mapping,e}function _H(r){var e,a,t,o,i,n,s,u,v;if(!EH(r))throw new TypeError("invalid argument. First argument must be an array. Value: `"+r+"`.");for(n="",s=1,u=0;u<r.length;u++)if(t=r[u],bH(t))n+=t;else{if(e=t.precision!==void 0,t=AH(t),!t.specifier)throw new TypeError("invalid argument. Token is missing `specifier` property. Index: `"+u+"`. Value: `"+t+"`.");for(t.mapping&&(s=t.mapping),a=t.flags,v=0;v<a.length;v++)switch(o=a.charAt(v),o){case" ":t.sign=" ";break;case"+":t.sign="+";break;case"-":t.padRight=!0,t.padZeros=!1;break;case"0":t.padZeros=a.indexOf("-")<0;break;case"#":t.alternate=!0;break;default:throw new Error("invalid flag: "+o)}if(t.width==="*"){if(t.width=parseInt(arguments[s],10),s+=1,Jo(t.width))throw new TypeError("the argument for * width at position "+s+" is not a number. Value: `"+t.width+"`.");t.width<0&&(t.padRight=!0,t.width=-t.width)}if(e&&t.precision==="*"){if(t.precision=parseInt(arguments[s],10),s+=1,Jo(t.precision))throw new TypeError("the argument for * precision at position "+s+" is not a number. Value: `"+t.precision+"`.");t.precision<0&&(t.precision=1,e=!1)}switch(t.arg=arguments[s],t.specifier){case"b":case"o":case"x":case"X":case"d":case"i":case"u":e&&(t.padZeros=!1),t.arg=gH(t);break;case"s":t.maxWidth=e?t.precision:-1,t.arg=String(t.arg);break;case"c":if(!Jo(t.arg)){if(i=parseInt(t.arg,10),i<0||i>127)throw new Error("invalid character code. Value: "+t.arg);t.arg=Jo(i)?String(t.arg):SH(i)}break;case"e":case"E":case"f":case"F":case"g":case"G":e||(t.precision=6),t.arg=xH(t);break;default:throw new Error("invalid specifier: "+t.specifier)}t.maxWidth>=0&&t.arg.length>t.maxWidth&&(t.arg=t.arg.substring(0,t.maxWidth)),t.padZeros?t.arg=wH(t.arg,t.width||t.precision,t.padRight):t.width&&(t.arg=qH(t.arg,t.width,t.padRight)),n+=t.arg||"",s+=1}return n}sd.exports=_H});var fd=c((SXr,vd)=>{"use strict";var TH=ud();vd.exports=TH});var cd=c((EXr,ld)=>{"use strict";var Xo=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;function jH(r){var e={mapping:r[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]};return r[4]==="."&&r[5]===void 0&&(e.precision="1"),e}function IH(r){var e,a,t,o;for(a=[],o=0,t=Xo.exec(r);t;)e=r.slice(o,Xo.lastIndex-t[0].length),e.length&&a.push(e),a.push(jH(t)),o=Xo.lastIndex,t=Xo.exec(r);return e=r.slice(o),e.length&&a.push(e),a}ld.exports=IH});var pd=c((AXr,dd)=>{"use strict";var OH=cd();dd.exports=OH});var md=c((_Xr,yd)=>{"use strict";function NH(r){return typeof r=="string"}yd.exports=NH});var bd=c((TXr,gd)=>{"use strict";var DH=fd(),kH=pd(),BH=md();function hd(r){var e,a;if(!BH(r))throw new TypeError(hd("invalid argument. First argument must be a string. Value: `%s`.",r));for(e=[kH(r)],a=1;a<arguments.length;a++)e.push(arguments[a]);return DH.apply(null,e)}gd.exports=hd});var pr=c((jXr,xd)=>{"use strict";var FH=bd();xd.exports=FH});var _d=c((IXr,Ad)=>{"use strict";var qd=pr(),ni=Object.prototype,wd=ni.toString,Sd=ni.__defineGetter__,Ed=ni.__defineSetter__,RH=ni.__lookupGetter__,zH=ni.__lookupSetter__;function VH(r,e,a){var t,o,i,n;if(typeof r!="object"||r===null||wd.call(r)==="[object Array]")throw new TypeError(qd("invalid argument. First argument must be an object. Value: `%s`.",r));if(typeof a!="object"||a===null||wd.call(a)==="[object Array]")throw new TypeError(qd("invalid argument. Property descriptor must be an object. Value: `%s`.",a));if(o="value"in a,o&&(RH.call(r,e)||zH.call(r,e)?(t=r.__proto__,r.__proto__=ni,delete r[e],r[e]=a.value,r.__proto__=t):r[e]=a.value),i="get"in a,n="set"in a,o&&(i||n))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return i&&Sd&&Sd.call(r,e,a.get),n&&Ed&&Ed.call(r,e,a.set),r}Ad.exports=VH});var Rt=c((OXr,Td)=>{"use strict";var UH=Mc(),CH=Yc(),PH=_d(),Gs;UH()?Gs=CH:Gs=PH;Td.exports=Gs});var Id=c((NXr,jd)=>{"use strict";var LH=Rt();function MH(r,e,a){LH(r,e,{configurable:!1,enumerable:!0,writable:!1,value:a})}jd.exports=MH});var zt=c((DXr,Od)=>{"use strict";var GH=Id();Od.exports=GH});var Dd=c((kXr,Nd)=>{"use strict";var YH=Object.prototype.hasOwnProperty;function $H(r,e){return r==null?!1:YH.call(r,e)}Nd.exports=$H});var Xr=c((BXr,kd)=>{"use strict";var WH=Dd();kd.exports=WH});var Fd=c((FXr,Bd)=>{"use strict";function JH(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}Bd.exports=JH});var Ys=c((RXr,Rd)=>{"use strict";var XH=Fd();Rd.exports=XH});var Vd=c((zXr,zd)=>{"use strict";var KH=Ys(),HH=KH();function ZH(){return HH&&typeof Symbol.toStringTag=="symbol"}zd.exports=ZH});var si=c((VXr,Ud)=>{"use strict";var QH=Vd();Ud.exports=QH});var $s=c((UXr,Cd)=>{"use strict";var rZ=Object.prototype.toString;Cd.exports=rZ});var Ld=c((CXr,Pd)=>{"use strict";var eZ=$s();function aZ(r){return eZ.call(r)}Pd.exports=aZ});var Gd=c((PXr,Md)=>{"use strict";var tZ=typeof Symbol=="function"?Symbol:void 0;Md.exports=tZ});var Ws=c((LXr,Yd)=>{"use strict";var iZ=Gd();Yd.exports=iZ});var Jd=c((MXr,Wd)=>{"use strict";var $d=Ws(),oZ=typeof $d=="function"?$d.toStringTag:"";Wd.exports=oZ});var Kd=c((GXr,Xd)=>{"use strict";var nZ=Xr(),Vi=Jd(),Js=$s();function sZ(r){var e,a,t;if(r==null)return Js.call(r);a=r[Vi],e=nZ(r,Vi);try{r[Vi]=void 0}catch{return Js.call(r)}return t=Js.call(r),e?r[Vi]=a:delete r[Vi],t}Xd.exports=sZ});var me=c((YXr,Hd)=>{"use strict";var uZ=si(),vZ=Ld(),fZ=Kd(),Xs;uZ()?Xs=fZ:Xs=vZ;Hd.exports=Xs});var Qd=c(($Xr,Zd)=>{"use strict";var lZ=me(),Ks;function cZ(r){return lZ(r)==="[object Array]"}Array.isArray?Ks=Array.isArray:Ks=cZ;Zd.exports=Ks});var wa=c((WXr,r0)=>{"use strict";var dZ=Qd();r0.exports=dZ});var a0=c((JXr,e0)=>{"use strict";var pZ=wa();function yZ(r){return typeof r=="object"&&r!==null&&!pZ(r)}e0.exports=yZ});var Ui=c((XXr,t0)=>{"use strict";var mZ=a0();t0.exports=mZ});var o0=c((KXr,i0)=>{"use strict";var hZ=/./;i0.exports=hZ});var s0=c((HXr,n0)=>{"use strict";var gZ=Rt();function bZ(r,e,a){gZ(r,e,{configurable:!1,enumerable:!1,writable:!1,value:a})}n0.exports=bZ});var Ir=c((ZXr,u0)=>{"use strict";var xZ=s0();u0.exports=xZ});var Hs=c((QXr,v0)=>{"use strict";function qZ(r){return typeof r=="boolean"}v0.exports=qZ});var l0=c((rKr,f0)=>{"use strict";var wZ=Boolean;f0.exports=wZ});var Vt=c((eKr,c0)=>{"use strict";var SZ=l0();c0.exports=SZ});var p0=c((aKr,d0)=>{"use strict";var EZ=Boolean.prototype.toString;d0.exports=EZ});var m0=c((tKr,y0)=>{"use strict";var AZ=p0();function _Z(r){try{return AZ.call(r),!0}catch{return!1}}y0.exports=_Z});var Zs=c((iKr,h0)=>{"use strict";var TZ=si(),jZ=me(),IZ=Vt(),OZ=m0(),NZ=TZ();function DZ(r){return typeof r=="object"?r instanceof IZ?!0:NZ?OZ(r):jZ(r)==="[object Boolean]":!1}h0.exports=DZ});var b0=c((oKr,g0)=>{"use strict";var kZ=Hs(),BZ=Zs();function FZ(r){return kZ(r)||BZ(r)}g0.exports=FZ});var pe=c((nKr,q0)=>{"use strict";var x0=Ir(),Qs=b0(),RZ=Hs(),zZ=Zs();x0(Qs,"isPrimitive",RZ);x0(Qs,"isObject",zZ);q0.exports=Qs});var S0=c((sKr,w0)=>{"use strict";function VZ(){return new Function("return this;")()}w0.exports=VZ});var A0=c((uKr,E0)=>{"use strict";var UZ=typeof self=="object"?self:null;E0.exports=UZ});var T0=c((vKr,_0)=>{"use strict";var CZ=typeof window=="object"?window:null;_0.exports=CZ});var I0=c((fKr,j0)=>{"use strict";var PZ=typeof globalThis=="object"?globalThis:null;j0.exports=PZ});var ru=c((lKr,k0)=>{"use strict";var LZ=pe().isPrimitive,MZ=pr(),GZ=S0(),O0=A0(),N0=T0(),D0=I0();function YZ(r){if(arguments.length){if(!LZ(r))throw new TypeError(MZ("invalid argument. Must provide a boolean. Value: `%s`.",r));if(r)return GZ()}if(D0)return D0;if(O0)return O0;if(N0)return N0;throw new Error("unexpected error. Unable to resolve global object.")}k0.exports=YZ});var R0=c((cKr,F0)=>{"use strict";var $Z=ru(),B0=$Z(),WZ=B0.document&&B0.document.childNodes;F0.exports=WZ});var V0=c((dKr,z0)=>{"use strict";var JZ=Int8Array;z0.exports=JZ});var C0=c((pKr,U0)=>{"use strict";var XZ=o0(),KZ=R0(),HZ=V0();function ZZ(){return typeof XZ=="function"||typeof HZ=="object"||typeof KZ=="function"}U0.exports=ZZ});var eu=c((yKr,P0)=>{"use strict";function QZ(){return/^\s*function\s*([^(]*)/i}P0.exports=QZ});var M0=c((mKr,L0)=>{"use strict";var rQ=eu(),eQ=rQ();L0.exports=eQ});var $0=c((hKr,Y0)=>{"use strict";var aQ=Ir(),G0=eu(),tQ=M0();aQ(G0,"REGEXP",tQ);Y0.exports=G0});var J0=c((gKr,W0)=>{"use strict";var iQ=wa(),oQ=pr();function nQ(r){if(typeof r!="function")throw new TypeError(oQ("invalid argument. Must provide a function. Value: `%s`.",r));return e;function e(a){var t,o;if(!iQ(a)||(t=a.length,t===0))return!1;for(o=0;o<t;o++)if(r(a[o])===!1)return!1;return!0}}W0.exports=nQ});var au=c((bKr,X0)=>{"use strict";var sQ=J0();X0.exports=sQ});var H0=c((xKr,K0)=>{"use strict";function uQ(r){return r!==null&&typeof r=="object"}K0.exports=uQ});var Ko=c((qKr,Z0)=>{"use strict";var vQ=Ir(),fQ=au(),tu=H0(),lQ=fQ(tu);vQ(tu,"isObjectLikeArray",lQ);Z0.exports=tu});var rp=c((wKr,Q0)=>{"use strict";var cQ=Ko();function dQ(r){return cQ(r)&&(r._isBuffer||r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r))}Q0.exports=dQ});var Ci=c((SKr,ep)=>{"use strict";var pQ=rp();ep.exports=pQ});var tp=c((EKr,ap)=>{"use strict";var yQ=me(),mQ=$0().REGEXP,hQ=Ci();function gQ(r){var e,a,t;if(a=yQ(r).slice(8,-1),(a==="Object"||a==="Error")&&r.constructor){if(t=r.constructor,typeof t.name=="string")return t.name;if(e=mQ.exec(t.toString()),e)return e[1]}return hQ(r)?"Buffer":a}ap.exports=gQ});var gt=c((AKr,ip)=>{"use strict";var bQ=tp();ip.exports=bQ});var np=c((_Kr,op)=>{"use strict";var xQ=gt();function qQ(r){var e;return r===null?"null":(e=typeof r,e==="object"?xQ(r).toLowerCase():e)}op.exports=qQ});var up=c((TKr,sp)=>{"use strict";var wQ=gt();function SQ(r){return wQ(r).toLowerCase()}sp.exports=SQ});var ui=c((jKr,vp)=>{"use strict";var EQ=C0(),AQ=np(),_Q=up(),TQ=EQ()?_Q:AQ;vp.exports=TQ});var lp=c((IKr,fp)=>{"use strict";var jQ=ui();function IQ(r){return jQ(r)==="function"}fp.exports=IQ});var Pe=c((OKr,cp)=>{"use strict";var OQ=lp();cp.exports=OQ});var pp=c((NKr,dp)=>{"use strict";var NQ=Object;dp.exports=NQ});var Ut=c((DKr,yp)=>{"use strict";var DQ=pp();yp.exports=DQ});var hp=c((kKr,mp)=>{"use strict";var kQ=Object.getPrototypeOf;mp.exports=kQ});var bp=c((BKr,gp)=>{"use strict";function BQ(r){return r.__proto__}gp.exports=BQ});var qp=c((FKr,xp)=>{"use strict";var FQ=me(),RQ=bp();function zQ(r){var e=RQ(r);return e||e===null?e:FQ(r.constructor)==="[object Function]"?r.constructor.prototype:r instanceof Object?Object.prototype:null}xp.exports=zQ});var Sp=c((RKr,wp)=>{"use strict";var VQ=Pe(),UQ=hp(),CQ=qp(),iu;VQ(Object.getPrototypeOf)?iu=UQ:iu=CQ;wp.exports=iu});var Ap=c((zKr,Ep)=>{"use strict";var PQ=Ut(),LQ=Sp();function MQ(r){return r==null?null:(r=PQ(r),LQ(r))}Ep.exports=MQ});var Ct=c((VKr,_p)=>{"use strict";var GQ=Ap();_p.exports=GQ});var Ip=c((UKr,jp)=>{"use strict";var YQ=Ui(),Tp=Pe(),$Q=Ct(),Ho=Xr(),WQ=me(),JQ=Object.prototype;function XQ(r){var e;for(e in r)if(!Ho(r,e))return!1;return!0}function KQ(r){var e;return YQ(r)?(e=$Q(r),e?!Ho(r,"constructor")&&Ho(e,"constructor")&&Tp(e.constructor)&&WQ(e.constructor)==="[object Function]"&&Ho(e,"isPrototypeOf")&&Tp(e.isPrototypeOf)&&(e===JQ||XQ(r)):!0):!1}jp.exports=KQ});var ne=c((CKr,Op)=>{"use strict";var HQ=Ip();Op.exports=HQ});var ou=c((PKr,Np)=>{"use strict";function ZQ(r){return typeof r=="number"}Np.exports=ZQ});var kp=c((LKr,Dp)=>{"use strict";Dp.exports=Number});var Zo=c((MKr,Bp)=>{"use strict";var QQ=kp();Bp.exports=QQ});var Rp=c((GKr,Fp)=>{"use strict";var rrr=Zo(),err=rrr.prototype.toString;Fp.exports=err});var Vp=c((YKr,zp)=>{"use strict";var arr=Rp();function trr(r){try{return arr.call(r),!0}catch{return!1}}zp.exports=trr});var nu=c(($Kr,Up)=>{"use strict";var irr=si(),orr=me(),nrr=Zo(),srr=Vp(),urr=irr();function vrr(r){return typeof r=="object"?r instanceof nrr?!0:urr?srr(r):orr(r)==="[object Number]":!1}Up.exports=vrr});var Pp=c((WKr,Cp)=>{"use strict";var frr=ou(),lrr=nu();function crr(r){return frr(r)||lrr(r)}Cp.exports=crr});var Ge=c((JKr,Mp)=>{"use strict";var Lp=Ir(),su=Pp(),drr=ou(),prr=nu();Lp(su,"isPrimitive",drr);Lp(su,"isObject",prr);Mp.exports=su});var Pi=c((XKr,Gp)=>{"use strict";var yrr=Number.POSITIVE_INFINITY;Gp.exports=yrr});var Qo=c((KKr,Yp)=>{"use strict";var mrr=Zo(),hrr=mrr.NEGATIVE_INFINITY;Yp.exports=hrr});var Wp=c((HKr,$p)=>{"use strict";var grr=Math.floor;$p.exports=grr});var ea=c((ZKr,Jp)=>{"use strict";var brr=Wp();Jp.exports=brr});var Kp=c((QKr,Xp)=>{"use strict";var xrr=ea();function qrr(r){return xrr(r)===r}Xp.exports=qrr});var Sa=c((rHr,Hp)=>{"use strict";var wrr=Kp();Hp.exports=wrr});var uu=c((eHr,Zp)=>{"use strict";var Srr=Pi(),Err=Qo(),Arr=Sa();function _rr(r){return r<Srr&&r>Err&&Arr(r)}Zp.exports=_rr});var vu=c((aHr,Qp)=>{"use strict";var Trr=Ge().isPrimitive,jrr=uu();function Irr(r){return Trr(r)&&jrr(r)}Qp.exports=Irr});var fu=c((tHr,ry)=>{"use strict";var Orr=Ge().isObject,Nrr=uu();function Drr(r){return Orr(r)&&Nrr(r.valueOf())}ry.exports=Drr});var ay=c((iHr,ey)=>{"use strict";var krr=vu(),Brr=fu();function Frr(r){return krr(r)||Brr(r)}ey.exports=Frr});var fe=c((oHr,iy)=>{"use strict";var ty=Ir(),lu=ay(),Rrr=vu(),zrr=fu();ty(lu,"isPrimitive",Rrr);ty(lu,"isObject",zrr);iy.exports=lu});var cu=c((nHr,oy)=>{"use strict";var Vrr=fe().isPrimitive;function Urr(r){return Vrr(r)&&r>=0}oy.exports=Urr});var du=c((sHr,ny)=>{"use strict";var Crr=fe().isObject;function Prr(r){return Crr(r)&&r.valueOf()>=0}ny.exports=Prr});var uy=c((uHr,sy)=>{"use strict";var Lrr=cu(),Mrr=du();function Grr(r){return Lrr(r)||Mrr(r)}sy.exports=Grr});var ge=c((vHr,fy)=>{"use strict";var vy=Ir(),pu=uy(),Yrr=cu(),$rr=du();vy(pu,"isPrimitive",Yrr);vy(pu,"isObject",$rr);fy.exports=pu});var dy=c((fHr,cy)=>{"use strict";var Wrr=ru(),ly=Wrr();function Jrr(){return typeof ly.BigInt=="function"&&typeof BigInt=="function"&&typeof ly.BigInt("1")=="bigint"&&typeof BigInt("1")=="bigint"}cy.exports=Jrr});var yu=c((lHr,py)=>{"use strict";var Xrr=dy();py.exports=Xrr});var my=c((cHr,yy)=>{"use strict";var Krr=Rt();function Hrr(r,e,a){Krr(r,e,{configurable:!1,enumerable:!1,get:a})}yy.exports=Hrr});var bt=c((dHr,hy)=>{"use strict";var Zrr=my();hy.exports=Zrr});var gy=c((pHr,Qrr)=>{Qrr.exports={binary:1,bool:1,complex64:8,complex128:16,float16:2,bfloat16:2,float32:4,float64:8,float128:16,generic:null,int8:1,int16:2,int32:4,int64:8,int128:16,int256:32,uint8:1,uint8c:1,uint16:2,uint32:4,uint64:8,uint128:16,uint256:32}});var xy=c((yHr,by)=>{"use strict";var rer=gy();function eer(r){return rer[r]||null}by.exports=eer});var xt=c((mHr,qy)=>{"use strict";var aer=xy();qy.exports=aer});var Sy=c((hHr,wy)=>{"use strict";function ter(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]<0&&(e+=1);return e===0?1:e===r.length?-1:0}wy.exports=ter});var Ea=c((gHr,Ey)=>{"use strict";var ier=Sy();Ey.exports=ier});var _y=c((bHr,Ay)=>{"use strict";function oer(r){return Math.abs(r)}Ay.exports=oer});var vi=c((xHr,Ty)=>{"use strict";var ner=_y();Ty.exports=ner});var Oy=c((qHr,Iy)=>{"use strict";var jy=vi();function ser(r){var e,a,t,o,i,n;if(a=r.length,a===0)return 0;for(e=!0,t=!0,o=jy(r[0]),n=1;n<a;n++)if(i=jy(r[n]),e&&i<o?e=!1:t&&i>o&&(t=!1),t||e)o=i;else return 0;return t&&e?3:t?1:2}Iy.exports=ser});var Pt=c((wHr,Ny)=>{"use strict";var uer=Oy();Ny.exports=uer});var ky=c((SHr,Dy)=>{"use strict";function ver(r,e){return e&&(r===2||r===3)}Dy.exports=ver});var Fy=c((EHr,By)=>{"use strict";function fer(r,e){return e&&(r===1||r===3)}By.exports=fer});var zy=c((AHr,Ry)=>{"use strict";function ler(r,e,a){var t,o,i,n,s;for(t=r.length,o=a,i=a,s=0;s<t;s++){if(r[s]===0)return[a,a];n=e[s],n>0?i+=n*(r[s]-1):n<0&&(o+=n*(r[s]-1))}return[o,i]}Ry.exports=ler});var Uy=c((_Hr,Vy)=>{"use strict";function cer(r,e,a,t){var o,i,n,s,u;for(o=r.length,i=a,n=a,u=0;u<o;u++){if(r[u]===0)return t[0]=a,t[1]=a,t;s=e[u],s>0?n+=s*(r[u]-1):s<0&&(i+=s*(r[u]-1))}return t[0]=i,t[1]=n,t}Vy.exports=cer});var at=c((THr,Py)=>{"use strict";var der=Ir(),Cy=zy(),per=Uy();der(Cy,"assign",per);Py.exports=Cy});var My=c((jHr,Ly)=>{"use strict";var yer=at();function mer(r,e,a,t,o){var i;return r===0||o===0?!1:(i=yer(e,a,t),r===i[1]-i[0]+1)}Ly.exports=mer});var Yy=c((IHr,Gy)=>{"use strict";function her(r){return{ROW_MAJOR_CONTIGUOUS:r.ROW_MAJOR_CONTIGUOUS,COLUMN_MAJOR_CONTIGUOUS:r.COLUMN_MAJOR_CONTIGUOUS,READONLY:r.READONLY}}Gy.exports=her});var Wy=c((OHr,$y)=>{"use strict";function ger(r){var e,a,t,o,i,n;if(t=this._ndims,t===0)return this._accessors?this._buffer.get(this._offset):this._buffer[this._offset];if(this._flags.ROW_MAJOR_CONTIGUOUS||this._flags.COLUMN_MAJOR_CONTIGUOUS){if(this._iterationOrder===1)return this._accessors?this._buffer.get(this._offset+r):this._buffer[this._offset+r];if(this._iterationOrder===-1)return this._accessors?this._buffer.get(this.offset-r):this._buffer[this._offset-r]}if(a=this._shape,e=this._strides,o=this._offset,this._order==="column-major"){for(n=0;n<t;n++)i=r%a[n],r-=i,r/=a[n],o+=i*e[n];return this._accessors?this._buffer.get(o):this._buffer[o]}for(n=t-1;n>=0;n--)i=r%a[n],r-=i,r/=a[n],o+=i*e[n];return this._accessors?this._buffer.get(o):this._buffer[o]}$y.exports=ger});var Xy=c((NHr,Jy)=>{"use strict";function ber(r,e){var a,t,o,i,n,s;if(o=this._ndims,o===0)return this._accessors?this._buffer.set(r,this._offset):this._buffer[this._offset]=r,this;if(this._flags.ROW_MAJOR_CONTIGUOUS||this._flags.COLUMN_MAJOR_CONTIGUOUS){if(this._iterationOrder===1)return this._accessors?this._buffer.set(e,this._offset+r):this._buffer[this._offset+r]=e,this;if(this._iterationOrder===-1)return this._accessors?this._buffer.set(e,this._offset-r):this._buffer[this._offset-r]=e,this}if(t=this._shape,a=this._strides,i=this._offset,this._order==="column-major"){for(s=0;s<o;s++)n=r%t[s],r-=n,r/=t[s],i+=n*a[s];return this._accessors?this._buffer.set(e,i):this._buffer[i]=e,this}for(s=o-1;s>=0;s--)n=r%t[s],r-=n,r/=t[s],i+=n*a[s];return this._accessors?this._buffer.set(e,i):this._buffer[i]=e,this}Jy.exports=ber});var Hy=c((DHr,Ky)=>{"use strict";function xer(){var r,e;for(r=this._offset,e=0;e<arguments.length-1;e++)r+=this._strides[e]*arguments[e];return this._accessors?this._buffer.set(arguments[e],r):this._buffer[r]=arguments[e],this}Ky.exports=xer});var Qy=c((kHr,Zy)=>{"use strict";function qer(){var r,e;for(r=this._offset,e=0;e<arguments.length;e++)r+=this._strides[e]*arguments[e];return this._accessors?this._buffer.get(r):this._buffer[r]}Zy.exports=qer});var em=c((BHr,rm)=>{"use strict";function wer(r){return r.re}rm.exports=wer});var Lt=c((FHr,am)=>{"use strict";var Ser=em();am.exports=Ser});var im=c((RHr,tm)=>{"use strict";function Eer(r){return r.im}tm.exports=Eer});var Mt=c((zHr,om)=>{"use strict";var Aer=im();om.exports=Aer});var sm=c((VHr,nm)=>{"use strict";var _er=Lt(),Ter=Mt();function jer(){var r,e,a,t;for(e=this._length,r={},r.type="ndarray",r.dtype=this.dtype,r.flags={READONLY:this._flags.READONLY},r.order=this._order,r.shape=this._shape.slice(),r.strides=this._strides.slice(),t=0;t<e;t++)r.strides[t]<0&&(r.strides[t]*=-1);if(r.data=[],r.dtype==="complex64"||r.dtype==="complex128")for(t=0;t<e;t++)a=this.iget(t),r.data.push(_er(a),Ter(a));else for(t=0;t<e;t++)r.data.push(this.iget(t));return r}nm.exports=jer});var mu=c((UHr,um)=>{"use strict";function Ier(r){return typeof r=="string"}um.exports=Ier});var fm=c((CHr,vm)=>{"use strict";var Oer=String.prototype.valueOf;vm.exports=Oer});var cm=c((PHr,lm)=>{"use strict";var Ner=fm();function Der(r){try{return Ner.call(r),!0}catch{return!1}}lm.exports=Der});var hu=c((LHr,dm)=>{"use strict";var ker=si(),Ber=me(),Fer=cm(),Rer=ker();function zer(r){return typeof r=="object"?r instanceof String?!0:Rer?Fer(r):Ber(r)==="[object String]":!1}dm.exports=zer});var ym=c((MHr,pm)=>{"use strict";var Ver=mu(),Uer=hu();function Cer(r){return Ver(r)||Uer(r)}pm.exports=Cer});var Pa=c((GHr,hm)=>{"use strict";var mm=Ir(),gu=ym(),Per=mu(),Ler=hu();mm(gu,"isPrimitive",Per);mm(gu,"isObject",Ler);hm.exports=gu});var xm=c((YHr,bm)=>{"use strict";var Mer=Pa().isPrimitive,Ger=pr(),gm=/[-\/\\^$*+?.()|[\]{}]/g;function Yer(r){var e,a,t;if(!Mer(r))throw new TypeError(Ger("invalid argument. Must provide a regular expression string. Value: `%s`.",r));if(r[0]==="/")for(e=r.length,t=e-1;t>=0&&r[t]!=="/";t--);return t===void 0||t<=0?r.replace(gm,"\\$&"):(a=r.substring(1,t),a=a.replace(gm,"\\$&"),r=r[0]+a+r.substring(t),r)}bm.exports=Yer});var wm=c(($Hr,qm)=>{"use strict";var $er=xm();qm.exports=$er});var Em=c((WHr,Sm)=>{"use strict";var Wer=RegExp.prototype.exec;Sm.exports=Wer});var _m=c((JHr,Am)=>{"use strict";var Jer=Em();function Xer(r){try{return Jer.call(r),!0}catch{return!1}}Am.exports=Xer});var jm=c((XHr,Tm)=>{"use strict";var Ker=si(),Her=me(),Zer=_m(),Qer=Ker();function rar(r){return typeof r=="object"?r instanceof RegExp?!0:Qer?Zer(r):Her(r)==="[object RegExp]":!1}Tm.exports=rar});var Om=c((KHr,Im)=>{"use strict";var ear=jm();Im.exports=ear});var Dm=c((HHr,Nm)=>{"use strict";function aar(r,e,a){return r.replace(e,a)}Nm.exports=aar});var tt=c((ZHr,km)=>{"use strict";var tar=Dm();km.exports=tar});var Fm=c((QHr,Bm)=>{"use strict";var iar=wm(),oar=Pe(),bu=Pa().isPrimitive,nar=Om(),xu=pr(),sar=tt();function uar(r,e,a){if(!bu(r))throw new TypeError(xu("invalid argument. First argument must be a string. Value: `%s`.",r));if(bu(e))e=new RegExp(iar(e),"g");else if(!nar(e))throw new TypeError(xu("invalid argument. Second argument must be a string or regular expression. Value: `%s`.",e));if(!bu(a)&&!oar(a))throw new TypeError(xu("invalid argument. Third argument must be a string or replacement function. Value: `%s`.",a));return sar(r,e,a)}Bm.exports=uar});var zm=c((rZr,Rm)=>{"use strict";var far=Fm();Rm.exports=far});var Um=c((eZr,Vm)=>{"use strict";var lar=zm(),qu=Lt(),wu=Mt(),car={int8:"new Int8Array( [ {{data}} ] )",uint8:"new Uint8Array( [ {{data}} ] )",uint8c:"new Uint8ClampedArray( [ {{data}} ] )",int16:"new Int16Array( [ {{data}} ] )",uint16:"new Uint16Array( [ {{data}} ] )",int32:"new Int32Array( [ {{data}} ] )",uint32:"new Uint32Array( [ {{data}} ] )",float32:"new Float32Array( [ {{data}} ] )",float64:"new Float64Array( [ {{data}} ] )",generic:"[ {{data}} ]",binary:"new Buffer( [ {{data}} ] )",complex64:"new Complex64Array( [ {{data}} ] )",complex128:"new Complex128Array( [ {{data}} ] )"};function dar(){var r,e,a,t,o,i,n;if(e=this._shape.length,o=this._dtype,t="ndarray( '"+o+"', ",r="",this._length<=100)if(o==="complex64"||o==="complex128")for(n=0;n<this._length;n++)i=this.iget(n),r+=qu(i)+", "+wu(i),n<this._length-1&&(r+=", ");else for(n=0;n<this._length;n++)r+=this.iget(n),n<this._length-1&&(r+=", ");else{if(o==="complex64"||o==="complex128")for(n=0;n<3;n++)i=this.iget(n),r+=qu(i)+", "+wu(i),n<2&&(r+=", ");else for(n=0;n<3;n++)r+=this.iget(n),n<2&&(r+=", ");if(r+=", ..., ",o==="complex64"||o==="complex128")for(n=2;n>=0;n--)i=this.iget(this._length-1-n),r+=qu(i)+", "+wu(i),n>0&&(r+=", ");else for(n=2;n>=0;n--)r+=this.iget(this._length-1-n),n>0&&(r+=", ")}if(a=car[this.dtype],t+=lar(a,"{{data}}",r),t+=", ",e===0?t+="[]":t+="[ "+this._shape.join(", ")+" ]",t+=", ",t+="[ ",e===0)t+="0";else for(n=0;n<e;n++)this._strides[n]<0?t+=-this._strides[n]:t+=this._strides[n],n<e-1&&(t+=", ");return t+=" ]",t+=", ",t+="0",t+=", ",t+="'"+this._order+"'",t+=" )",t}Vm.exports=dar});var Pm=c((aZr,Cm)=>{"use strict";var par=me(),yar=typeof Uint8Array=="function";function mar(r){return yar&&r instanceof Uint8Array||par(r)==="[object Uint8Array]"}Cm.exports=mar});var Mm=c((tZr,Lm)=>{"use strict";var har=Pm();Lm.exports=har});var Su=c((iZr,Gm)=>{"use strict";var gar=255;Gm.exports=gar});var $m=c((oZr,Ym)=>{"use strict";var bar=typeof Uint8Array=="function"?Uint8Array:null;Ym.exports=bar});var Xm=c((nZr,Jm)=>{"use strict";var xar=Mm(),Eu=Su(),Wm=$m();function qar(){var r,e;if(typeof Wm!="function")return!1;try{e=[1,3.14,-3.14,Eu+1,Eu+2],e=new Wm(e),r=xar(e)&&e[0]===1&&e[1]===3&&e[2]===Eu-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}Jm.exports=qar});var Hm=c((sZr,Km)=>{"use strict";var war=Xm();Km.exports=war});var Qm=c((uZr,Zm)=>{"use strict";var Sar=typeof Uint8Array=="function"?Uint8Array:void 0;Zm.exports=Sar});var eh=c((vZr,rh)=>{"use strict";function Ear(){throw new Error("not implemented")}rh.exports=Ear});var va=c((fZr,ah)=>{"use strict";var Aar=Hm(),_ar=Qm(),Tar=eh(),Au;Aar()?Au=_ar:Au=Tar;ah.exports=Au});var ih=c((lZr,th)=>{"use strict";var jar=me(),Iar=typeof Uint16Array=="function";function Oar(r){return Iar&&r instanceof Uint16Array||jar(r)==="[object Uint16Array]"}th.exports=Oar});var nh=c((cZr,oh)=>{"use strict";var Nar=ih();oh.exports=Nar});var _u=c((dZr,sh)=>{"use strict";var Dar=65535;sh.exports=Dar});var vh=c((pZr,uh)=>{"use strict";var kar=typeof Uint16Array=="function"?Uint16Array:null;uh.exports=kar});var ch=c((yZr,lh)=>{"use strict";var Bar=nh(),Tu=_u(),fh=vh();function Far(){var r,e;if(typeof fh!="function")return!1;try{e=[1,3.14,-3.14,Tu+1,Tu+2],e=new fh(e),r=Bar(e)&&e[0]===1&&e[1]===3&&e[2]===Tu-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}lh.exports=Far});var ph=c((mZr,dh)=>{"use strict";var Rar=ch();dh.exports=Rar});var mh=c((hZr,yh)=>{"use strict";var zar=typeof Uint16Array=="function"?Uint16Array:void 0;yh.exports=zar});var gh=c((gZr,hh)=>{"use strict";function Var(){throw new Error("not implemented")}hh.exports=Var});var fi=c((bZr,bh)=>{"use strict";var Uar=ph(),Car=mh(),Par=gh(),ju;Uar()?ju=Car:ju=Par;bh.exports=ju});var qh=c((xZr,xh)=>{"use strict";var Lar=va(),Mar=fi(),Gar={uint16:Mar,uint8:Lar};xh.exports=Gar});var Ah=c((qZr,Eh)=>{"use strict";var wh=qh(),Sh;function Yar(){var r,e;return r=new wh.uint16(1),r[0]=4660,e=new wh.uint8(r.buffer),e[0]===52}Sh=Yar();Eh.exports=Sh});var Gt=c((wZr,_h)=>{"use strict";var $ar=Ah();_h.exports=$ar});var jh=c((SZr,Th)=>{"use strict";var War=me(),Jar=typeof ArrayBuffer=="function";function Xar(r){return Jar&&r instanceof ArrayBuffer||War(r)==="[object ArrayBuffer]"}Th.exports=Xar});var Li=c((EZr,Ih)=>{"use strict";var Kar=jh();Ih.exports=Kar});var Nh=c((AZr,Oh)=>{"use strict";var Har=me(),Zar=typeof Float64Array=="function";function Qar(r){return Zar&&r instanceof Float64Array||Har(r)==="[object Float64Array]"}Oh.exports=Qar});var kh=c((_Zr,Dh)=>{"use strict";var rtr=Nh();Dh.exports=rtr});var Fh=c((TZr,Bh)=>{"use strict";var etr=typeof Float64Array=="function"?Float64Array:null;Bh.exports=etr});var Vh=c((jZr,zh)=>{"use strict";var atr=kh(),Rh=Fh();function ttr(){var r,e;if(typeof Rh!="function")return!1;try{e=new Rh([1,3.14,-3.14,NaN]),r=atr(e)&&e[0]===1&&e[1]===3.14&&e[2]===-3.14&&e[3]!==e[3]}catch{r=!1}return r}zh.exports=ttr});var Ch=c((IZr,Uh)=>{"use strict";var itr=Vh();Uh.exports=itr});var Lh=c((OZr,Ph)=>{"use strict";var otr=typeof Float64Array=="function"?Float64Array:void 0;Ph.exports=otr});var Gh=c((NZr,Mh)=>{"use strict";function ntr(){throw new Error("not implemented")}Mh.exports=ntr});var qt=c((DZr,Yh)=>{"use strict";var str=Ch(),utr=Lh(),vtr=Gh(),Iu;str()?Iu=utr:Iu=vtr;Yh.exports=Iu});var Wh=c((kZr,$h)=>{"use strict";var ftr=typeof ArrayBuffer=="function"?ArrayBuffer:null;$h.exports=ftr});var Xh=c((BZr,Jh)=>{"use strict";var ltr=Li(),ctr=qt(),rn=Wh();function dtr(){var r,e,a;if(typeof rn!="function")return!1;try{a=new rn(16),r=ltr(a)&&typeof rn.isView=="function",r&&(e=new ctr(a),e[0]=-3.14,e[1]=NaN,r=r&&rn.isView(e)&&a.byteLength===16&&e[0]===-3.14&&e[1]!==e[1])}catch{r=!1}return r}Jh.exports=dtr});var Hh=c((FZr,Kh)=>{"use strict";var ptr=Xh();Kh.exports=ptr});var Qh=c((RZr,Zh)=>{"use strict";var ytr=typeof ArrayBuffer=="function"?ArrayBuffer:void 0;Zh.exports=ytr});var e1=c((zZr,r1)=>{"use strict";function mtr(){throw new Error("not implemented")}r1.exports=mtr});var li=c((VZr,a1)=>{"use strict";var htr=Hh(),gtr=Qh(),btr=e1(),Ou;htr()?Ou=gtr:Ou=btr;a1.exports=Ou});var i1=c((UZr,t1)=>{"use strict";var xtr=me(),qtr=typeof DataView=="function";function wtr(r){return qtr&&r instanceof DataView||xtr(r)==="[object DataView]"}t1.exports=wtr});var n1=c((CZr,o1)=>{"use strict";var Str=i1();o1.exports=Str});var u1=c((PZr,s1)=>{"use strict";var Etr=typeof DataView=="function"?DataView:null;s1.exports=Etr});var l1=c((LZr,f1)=>{"use strict";var Atr=n1(),_tr=li(),v1=u1();function Ttr(){var r,e,a;if(typeof v1!="function")return!1;try{a=new _tr(24),e=new v1(a,8),r=Atr(e)&&typeof e.getFloat64=="function"&&typeof e.setFloat64=="function",r&&(e.setFloat64(0,-3.14),e.setFloat64(8,NaN),r=r&&e.buffer===a&&e.byteLength===16&&e.byteOffset===8&&e.getFloat64(0)===-3.14&&e.getFloat64(8)!==e.getFloat64(8))}catch{r=!1}return r}f1.exports=Ttr});var d1=c((MZr,c1)=>{"use strict";var jtr=l1();c1.exports=jtr});var y1=c((GZr,p1)=>{"use strict";var Itr=typeof DataView=="function"?DataView:void 0;p1.exports=Itr});var h1=c((YZr,m1)=>{"use strict";function Otr(){throw new Error("not implemented")}m1.exports=Otr});var Yt=c(($Zr,g1)=>{"use strict";var Ntr=d1(),Dtr=y1(),ktr=h1(),Nu;Ntr()?Nu=Dtr:Nu=ktr;g1.exports=Nu});var x1=c((WZr,b1)=>{"use strict";var Btr=typeof BigInt=="function"?BigInt:void 0;b1.exports=Btr});var Du=c((JZr,q1)=>{"use strict";var Ftr=x1();q1.exports=Ftr});var w1=c((XZr,Rtr)=>{Rtr.exports={all:["binary","bool","complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["binary","bool","complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],boolean:["bool"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]}});var _1=c((KZr,A1)=>{"use strict";var ztr=tt(),S1=w1(),E1=/_and_generic$/;function Vtr(){var r,e,a;return arguments.length===0?S1.all.slice():(a=!1,r=arguments[0],E1.test(r)&&(r=ztr(r,E1,""),r!=="all"&&(a=!0)),e=S1[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}A1.exports=Vtr});var j1=c((HZr,T1)=>{"use strict";function Utr(){return{bool:0,int8:1,uint8:2,uint8c:3,int16:4,uint16:5,int32:6,uint32:7,int64:8,uint64:9,float32:10,float64:11,complex64:12,complex128:13,binary:14,generic:15,notype:17,userdefined_type:256}}T1.exports=Utr});var en=c((ZZr,I1)=>{"use strict";function Ctr(r){return Object.keys(Object(r))}I1.exports=Ctr});var N1=c((QZr,O1)=>{"use strict";var Ptr=en();function Ltr(){return(Ptr(arguments)||"").length!==2}function Mtr(){return Ltr(1,2)}O1.exports=Mtr});var k1=c((rQr,D1)=>{"use strict";var Gtr=typeof Object.keys<"u";D1.exports=Gtr});var ku=c((eQr,B1)=>{"use strict";var Ytr=me();function $tr(r){return Ytr(r)==="[object Arguments]"}B1.exports=$tr});var z1=c((aQr,R1)=>{"use strict";var Wtr=ku(),F1;function Jtr(){return Wtr(arguments)}F1=Jtr();R1.exports=F1});var U1=c((tQr,V1)=>{"use strict";function Xtr(r){return r!==r}V1.exports=Xtr});var Bu=c((iQr,C1)=>{"use strict";var Ktr=U1();C1.exports=Ktr});var Fu=c((oQr,P1)=>{"use strict";var Htr=Ge().isPrimitive,Ztr=Bu();function Qtr(r){return Htr(r)&&Ztr(r)}P1.exports=Qtr});var Ru=c((nQr,L1)=>{"use strict";var rir=Ge().isObject,eir=Bu();function air(r){return rir(r)&&eir(r.valueOf())}L1.exports=air});var G1=c((sQr,M1)=>{"use strict";var tir=Fu(),iir=Ru();function oir(r){return tir(r)||iir(r)}M1.exports=oir});var Vu=c((uQr,$1)=>{"use strict";var Y1=Ir(),zu=G1(),nir=Fu(),sir=Ru();Y1(zu,"isPrimitive",nir);Y1(zu,"isObject",sir);$1.exports=zu});var Uu=c((vQr,W1)=>{"use strict";var uir=Object.prototype.propertyIsEnumerable;W1.exports=uir});var K1=c((fQr,X1)=>{"use strict";var vir=Uu(),J1;function fir(){return!vir.call("beep","0")}J1=fir();X1.exports=J1});var Z1=c((lQr,H1)=>{"use strict";var lir=Pa(),cir=Vu().isPrimitive,dir=fe().isPrimitive,pir=Uu(),yir=K1();function mir(r,e){var a;return r==null?!1:(a=pir.call(r,e),!a&&yir&&lir(r)?(e=+e,!cir(e)&&dir(e)&&e>=0&&e<r.length):a)}H1.exports=mir});var Mi=c((cQr,Q1)=>{"use strict";var hir=Z1();Q1.exports=hir});var an=c((dQr,rg)=>{"use strict";var gir=4294967295;rg.exports=gir});var ag=c((pQr,eg)=>{"use strict";var bir=Xr(),xir=Mi(),qir=wa(),wir=Sa(),Sir=an();function Eir(r){return r!==null&&typeof r=="object"&&!qir(r)&&typeof r.length=="number"&&wir(r.length)&&r.length>=0&&r.length<=Sir&&bir(r,"callee")&&!xir(r,"callee")}eg.exports=Eir});var Pu=c((yQr,tg)=>{"use strict";var Air=z1(),_ir=ku(),Tir=ag(),Cu;Air?Cu=_ir:Cu=Tir;tg.exports=Cu});var ng=c((mQr,og)=>{"use strict";var jir=Pu(),ig=en(),Iir=Array.prototype.slice;function Oir(r){return jir(r)?ig(Iir.call(r)):ig(r)}og.exports=Oir});var ug=c((hQr,sg)=>{"use strict";function Nir(){}sg.exports=Nir});var fg=c((gQr,vg)=>{"use strict";var Dir=ug();vg.exports=Dir});var cg=c((bQr,lg)=>{"use strict";var kir=Mi(),Bir=fg(),Fir=kir(Bir,"prototype");lg.exports=Fir});var pg=c((xQr,dg)=>{"use strict";var Rir=Mi(),zir={toString:null},Vir=!Rir(zir,"toString");dg.exports=Vir});var mg=c((qQr,yg)=>{"use strict";var Uir=9007199254740991;yg.exports=Uir});var gg=c((wQr,hg)=>{"use strict";var Cir=Sa(),Pir=mg();function Lir(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&Cir(r.length)&&r.length>=0&&r.length<=Pir}hg.exports=Lir});var ke=c((SQr,bg)=>{"use strict";var Mir=gg();bg.exports=Mir});var Sg=c((EQr,wg)=>{"use strict";var xg=Vu(),Gir=ke(),Yir=Pa().isPrimitive,$ir=fe().isPrimitive,qg=pr();function Wir(r,e,a){var t,o;if(!Gir(r)&&!Yir(r))throw new TypeError(qg("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(t=r.length,t===0)return-1;if(arguments.length===3){if(!$ir(a))throw new TypeError(qg("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(a>=0){if(a>=t)return-1;o=a}else o=t+a,o<0&&(o=0)}else o=0;if(xg(e)){for(;o<t;o++)if(xg(r[o]))return o}else for(;o<t;o++)if(r[o]===e)return o;return-1}wg.exports=Wir});var Ag=c((AQr,Eg)=>{"use strict";var Jir=Sg();Eg.exports=Jir});var Lu=c((_Qr,_g)=>{"use strict";function Xir(r){return r.constructor&&r.constructor.prototype===r}_g.exports=Xir});var Tg=c((TQr,Kir)=>{Kir.exports=["console","external","frame","frameElement","frames","innerHeight","innerWidth","outerHeight","outerWidth","pageXOffset","pageYOffset","parent","scrollLeft","scrollTop","scrollX","scrollY","self","webkitIndexedDB","webkitStorageInfo","window"]});var Ig=c((jQr,jg)=>{"use strict";var Hir=typeof window>"u"?void 0:window;jg.exports=Hir});var kg=c((IQr,Dg)=>{"use strict";var Zir=Xr(),Qir=Ag(),Og=ui(),ror=Lu(),eor=Tg(),ci=Ig(),Ng;function aor(){var r;if(Og(ci)==="undefined")return!1;for(r in ci)try{Qir(eor,r)===-1&&Zir(ci,r)&&ci[r]!==null&&Og(ci[r])==="object"&&ror(ci[r])}catch{return!0}return!1}Ng=aor();Dg.exports=Ng});var Fg=c((OQr,Bg)=>{"use strict";var tor=typeof window<"u";Bg.exports=tor});var Vg=c((NQr,zg)=>{"use strict";var ior=kg(),Rg=Lu(),oor=Fg();function nor(r){if(oor===!1&&!ior)return Rg(r);try{return Rg(r)}catch{return!1}}zg.exports=nor});var Ug=c((DQr,sor)=>{sor.exports=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]});var Lg=c((kQr,Pg)=>{"use strict";var uor=Ko(),Mu=Xr(),vor=Pu(),lor=cg(),cor=pg(),dor=Vg(),Cg=Ug();function por(r){var e,a,t,o,i,n,s;if(o=[],vor(r)){for(s=0;s<r.length;s++)o.push(s.toString());return o}if(typeof r=="string"){if(r.length>0&&!Mu(r,"0"))for(s=0;s<r.length;s++)o.push(s.toString())}else{if(t=typeof r=="function",t===!1&&!uor(r))return o;a=lor&&t}for(i in r)!(a&&i==="prototype")&&Mu(r,i)&&o.push(String(i));if(cor)for(e=dor(r),s=0;s<Cg.length;s++)n=Cg[s],!(e&&n==="constructor")&&Mu(r,n)&&o.push(String(n));return o}Pg.exports=por});var Gg=c((BQr,Mg)=>{"use strict";var yor=N1(),mor=k1(),hor=en(),gor=ng(),bor=Lg(),tn;mor?yor()?tn=gor:tn=hor:tn=bor;Mg.exports=tn});var Aa=c((FQr,Yg)=>{"use strict";var xor=Gg();Yg.exports=xor});var Wg=c((RQr,$g)=>{"use strict";var qor=zt(),wor=Aa();function Sor(r,e){var a,t,o;for(a=wor(e),o=0;o<a.length;o++)t=a[o],qor(r,t,e[t]);return r}$g.exports=Sor});var Be=c((zQr,Xg)=>{"use strict";var Eor=Ir(),Gu=_1(),Jg=j1(),Aor=Wg();Eor(Gu,"enum",Jg);Aor(Gu,Jg());Xg.exports=Gu});var Kg=c((VQr,_or)=>{_or.exports=["row-major","column-major"]});var Zg=c((UQr,Hg)=>{"use strict";var Tor=Kg();function jor(){return Tor.slice()}Hg.exports=jor});var Qg=c((CQr,Ior)=>{Ior.exports=["row-major","column-major"]});var e2=c((PQr,r2)=>{"use strict";var Oor=Qg();function Nor(){return Oor.slice()}r2.exports=Nor});var t2=c((LQr,a2)=>{"use strict";function Dor(){return{"row-major":101,"column-major":102}}a2.exports=Dor});var Yu=c((MQr,o2)=>{"use strict";var kor=Ir(),i2=e2(),Bor=t2();kor(i2,"enum",Bor);o2.exports=i2});var u2=c((GQr,s2)=>{"use strict";var For=Yu().enum,n2=For();function Ror(){return{"row-major":n2["row-major"],"column-major":n2["column-major"]}}s2.exports=Ror});var $t=c((YQr,f2)=>{"use strict";var zor=Ir(),v2=Zg(),Vor=u2();zor(v2,"enum",Vor);f2.exports=v2});var l2=c(($Qr,Uor)=>{Uor.exports=["throw","normalize","clamp","wrap"]});var d2=c((WQr,c2)=>{"use strict";var Cor=l2();function Por(){return Cor.slice()}c2.exports=Por});var y2=c((JQr,p2)=>{"use strict";function Lor(){return{throw:1,clamp:2,wrap:3,normalize:4}}p2.exports=Lor});var Wt=c((XQr,h2)=>{"use strict";var Mor=Ir(),m2=d2(),Gor=y2();Mor(m2,"enum",Gor);h2.exports=m2});var x2=c((KQr,b2)=>{"use strict";var wt=Gt(),Yor=li(),$or=Yt(),Gi=Du(),Wor=Be().enum,Jor=$t().enum,Xor=Wt().enum,Kor=Wor(),Hor=Jor(),g2=Xor();function Zor(){var r,e,a,t,o,i,n,s,u,v,f,l,d,y;if(u=this._mode||"throw",n=this._submode||[u],l=this._ndims,d=n.length,a=33+l*16+d,s=this.__meta_dataview__,s&&s.byteLength===a)return s;for(s=new $or(new Yor(a)),o=this._shape,i=this._strides,t=this._dtype,r=this._bytesPerElement,v=0,s.setInt8(v,wt?1:0),v+=1,s.setInt16(v,Kor[t],wt),v+=2,s.setBigInt64(v,Gi(l),wt),f=l*8,v+=8,y=0;y<l;y++)s.setBigInt64(v,Gi(o[y]),wt),s.setBigInt64(v+f,Gi(i[y]*r),wt),v+=8;for(v+=f,s.setBigInt64(v,Gi(this._offset*r),wt),v+=8,s.setInt8(v,Hor[this._order]),v+=1,s.setInt8(v,g2[u]),v+=1,s.setBigInt64(v,Gi(d),wt),v+=8,y=0;y<d;y++)s.setInt8(v,g2[n[y]]),v+=1;return e=0,e|=this._flags.READONLY?4:0,s.setInt32(v,e,wt),this.__meta_dataview__=s,s}b2.exports=Zor});var w2=c((HQr,q2)=>{"use strict";var Yi=Gt(),Qor=va(),rnr=Yt(),enr=ea(),anr=4294967295,tnr=4294967296;function inr(r){var e,a,t,o;return e=new Qor(8),r===0||(o=(r&anr)>>>0,t=enr(r/tnr),a=new rnr(e.buffer),Yi?(a.setUint32(0,o,Yi),a.setUint32(4,t,Yi)):(a.setUint32(0,t,Yi),a.setUint32(4,o,Yi))),e}q2.exports=inr});var E2=c((ZQr,S2)=>{"use strict";var $i=Gt(),onr=va(),nnr=Yt(),snr=ea(),unr=4294967295,vnr=4294967296,nn=new onr(8),on=new nnr(nn.buffer);function fnr(r,e,a,t){var o,i,n;if(r===0){for(n=0;n<nn.length;n++)e[t]=0,t+=a;return e}for(i=(r&unr)>>>0,o=snr(r/vnr),$i?(on.setUint32(0,i,$i),on.setUint32(4,o,$i)):(on.setUint32(0,o,$i),on.setUint32(4,i,$i)),n=0;n<nn.length;n++)e[t]=nn[n],t+=a;return e}S2.exports=fnr});var $u=c((QQr,_2)=>{"use strict";var lnr=Ir(),A2=w2(),cnr=E2();lnr(A2,"assign",cnr);_2.exports=A2});var I2=c((rre,j2)=>{"use strict";var Wu=Gt(),dnr=li(),pnr=Yt(),ynr=va(),mnr=Be().enum,hnr=$t().enum,gnr=Wt().enum,Wi=$u().assign,bnr=mnr(),xnr=hnr(),T2=gnr();function qnr(){var r,e,a,t,o,i,n,s,u,v,f,l,d,y,p;if(v=this._mode||"throw",s=this._submode||[v],d=this._ndims,y=s.length,t=33+d*16+y,u=this.__meta_dataview__,u&&u.byteLength===t)return u;for(u=new pnr(new dnr(t)),e=new ynr(u.buffer),i=this._shape,n=this._strides,o=this._dtype,r=this._bytesPerElement,f=0,u.setInt8(f,Wu?1:0),f+=1,u.setInt16(f,bnr[o],Wu),f+=2,Wi(d,e,1,f),l=d*8,f+=8,p=0;p<d;p++)Wi(i[p],e,1,f),Wi(n[p]*r,e,1,f+l),f+=8;for(f+=l,Wi(this._offset*r,e,1,f),f+=8,u.setInt8(f,xnr[this._order]),f+=1,u.setInt8(f,T2[v]),f+=1,Wi(y,e,1,f),f+=8,p=0;p<y;p++)u.setInt8(f,T2[s[p]]),f+=1;return a=0,a|=this._flags.READONLY?4:0,u.setInt32(f,a,Wu),this.__meta_dataview__=u,u}j2.exports=qnr});var N2=c((ere,O2)=>{"use strict";var wnr=yu(),St=Ir(),_a=bt(),Snr=xt(),Enr=Ea(),Anr=Pt(),_nr=Vt(),Tnr=ky(),jnr=Fy(),Inr=My(),Onr=Yy(),Nnr=Wy(),Dnr=Xy(),knr=Hy(),Bnr=Qy(),Fnr=sm(),Rnr=Um(),znr=x2(),Vnr=I2();function be(r,e,a,t,o,i){var n,s,u,v,f;if(!(this instanceof be))return new be(r,e,a,t,o,i);for(v=1,f=0;f<a.length;f++)v*=a[f];return e.BYTES_PER_ELEMENT?s=e.BYTES_PER_ELEMENT*v:s=null,this._byteLength=s,this._bytesPerElement=Snr(r),this._buffer=e,this._dtype=r,this._length=v,this._ndims=a.length,this._offset=o,this._order=i,this._shape=a,this._strides=t,this._accessors=_nr(e.get&&e.set),this._iterationOrder=Enr(t),n=Inr(v,a,t,o,this._iterationOrder),u=Anr(t),this._flags={ROW_MAJOR_CONTIGUOUS:jnr(u,n),COLUMN_MAJOR_CONTIGUOUS:Tnr(u,n),READONLY:!1},this.__meta_dataview__=null,this}St(be,"name","ndarray");_a(be.prototype,"byteLength",function(){return this._byteLength});_a(be.prototype,"BYTES_PER_ELEMENT",function(){return this._bytesPerElement});_a(be.prototype,"data",function(){return this._buffer});_a(be.prototype,"dtype",function(){return this._dtype});_a(be.prototype,"flags",function(){return Onr(this._flags)});_a(be.prototype,"length",function(){return this._length});_a(be.prototype,"ndims",function(){return this._ndims});_a(be.prototype,"offset",function(){return this._offset});_a(be.prototype,"order",function(){return this._order});_a(be.prototype,"shape",function(){return this._shape.slice()});_a(be.prototype,"strides",function(){return this._strides.slice()});St(be.prototype,"get",Bnr);St(be.prototype,"iget",Nnr);St(be.prototype,"set",knr);St(be.prototype,"iset",Dnr);St(be.prototype,"toString",Rnr);St(be.prototype,"toJSON",Fnr);St(be.prototype,"__array_meta_dataview__",wnr()?znr:Vnr);O2.exports=be});var aa=c((are,D2)=>{"use strict";var Unr=N2();D2.exports=Unr});var B2=c((tre,k2)=>{"use strict";var Cnr=aa();function Pnr(r){return r instanceof Cnr||r!==null&&typeof r=="object"&&typeof r.data=="object"&&typeof r.shape=="object"&&typeof r.strides=="object"&&typeof r.offset=="number"&&typeof r.order=="string"&&typeof r.ndims=="number"&&typeof r.dtype=="string"&&typeof r.length=="number"&&typeof r.flags=="object"&&typeof r.get=="function"&&typeof r.set=="function"}k2.exports=Pnr});var se=c((ire,F2)=>{"use strict";var Lnr=B2();F2.exports=Lnr});var z2=c((ore,R2)=>{"use strict";function Mnr(r){var e,a,t,o;for(e=r.length,a=[],o=0;o<e;o++)a.push(0);for(t=1,o=e-1;o>=0;o--)a[o]=t,t*=r[o];return a}function Gnr(r){var e,a,t;for(e=[],a=1,t=0;t<r.length;t++)e.push(a),a*=r[t];return e}function Ynr(r,e){return e==="column-major"?Gnr(r):Mnr(r)}R2.exports=Ynr});var U2=c((nre,V2)=>{"use strict";function $nr(r,e){var a,t,o;for(a=r.length,t=1,o=a-1;o>=0;o--)e[o]=t,t*=r[o];return e}function Wnr(r,e){var a,t;for(a=1,t=0;t<r.length;t++)e[t]=a,a*=r[t];return e}function Jnr(r,e,a){return e==="column-major"?Wnr(r,a):$nr(r,a)}V2.exports=Jnr});var ze=c((sre,P2)=>{"use strict";var Xnr=Ir(),C2=z2(),Knr=U2();Xnr(C2,"assign",Knr);P2.exports=C2});var M2=c((ure,L2)=>{"use strict";function Hnr(r,e){var a,t,o;for(t=r.length,a=0,o=0;o<t;o++)e[o]<0&&(a-=e[o]*(r[o]-1));return a}L2.exports=Hnr});var Ye=c((vre,G2)=>{"use strict";var Znr=M2();G2.exports=Znr});var $2=c((fre,Y2)=>{"use strict";function Qnr(r){var e,a,t;if(e=r.length,e===0)return 0;for(a=1,t=0;t<e;t++)a*=r[t];return a}Y2.exports=Qnr});var Jr=c((lre,W2)=>{"use strict";var rsr=$2();W2.exports=rsr});var Ju=c((cre,J2)=>{"use strict";var esr=4294967295;J2.exports=esr});var K2=c((dre,X2)=>{"use strict";var asr=Sa(),tsr=Ju();function isr(r){return r!=null&&typeof r!="function"&&typeof r.length=="number"&&asr(r.length)&&r.length>=0&&r.length<=tsr}X2.exports=isr});var sn=c((pre,H2)=>{"use strict";var osr=K2();H2.exports=osr});var Q2=c((yre,Z2)=>{"use strict";var nsr=sn(),ssr=pr();function usr(r){if(typeof r!="function")throw new TypeError(ssr("invalid argument. Must provide a function. Value: `%s`.",r));return e;function e(a){var t,o;if(!nsr(a)||(t=a.length,t===0))return!1;for(o=0;o<t;o++)if(r(a[o])===!1)return!1;return!0}}Z2.exports=usr});var un=c((mre,rb)=>{"use strict";var vsr=Q2();rb.exports=vsr});var Jt=c((hre,ab)=>{"use strict";var Xu=ge(),eb=Ir(),Ku=un(),fsr=Ku(Xu.isPrimitive),lsr=Ku(Xu.isObject),Hu=Ku(Xu);eb(Hu,"primitives",fsr);eb(Hu,"objects",lsr);ab.exports=Hu});var ev=c((gre,ib)=>{"use strict";var Zu=fe(),tb=Ir(),Qu=un(),csr=Qu(Zu.isPrimitive),dsr=Qu(Zu.isObject),rv=Qu(Zu);tb(rv,"primitives",csr);tb(rv,"objects",dsr);ib.exports=rv});var sb=c((bre,nb)=>{"use strict";var psr=$t(),ob=psr(),ysr=ob.length;function msr(r){var e;for(e=0;e<ysr;e++)if(r===ob[e])return!0;return!1}nb.exports=msr});var Ta=c((xre,ub)=>{"use strict";var hsr=sb();ub.exports=hsr});var lb=c((qre,fb)=>{"use strict";var vb="function";function gsr(r){return typeof r.get===vb&&typeof r.set===vb}fb.exports=gsr});var it=c((wre,cb)=>{"use strict";var bsr=lb();cb.exports=bsr});var yb=c((Sre,pb)=>{"use strict";var db={complex128:xsr,complex64:qsr,default:wsr};function xsr(r,e){return r.get(e)}function qsr(r,e){return r.get(e)}function wsr(r,e){return r.get(e)}function Ssr(r){var e=db[r];return typeof e=="function"?e:db.default}pb.exports=Ssr});var ot=c((Ere,mb)=>{"use strict";var Esr=yb();mb.exports=Esr});var bb=c((Are,gb)=>{"use strict";var hb={float64:Asr,float32:_sr,int32:Tsr,int16:jsr,int8:Isr,uint32:Osr,uint16:Nsr,uint8:Dsr,uint8c:ksr,generic:Bsr,default:Fsr};function Asr(r,e){return r[e]}function _sr(r,e){return r[e]}function Tsr(r,e){return r[e]}function jsr(r,e){return r[e]}function Isr(r,e){return r[e]}function Osr(r,e){return r[e]}function Nsr(r,e){return r[e]}function Dsr(r,e){return r[e]}function ksr(r,e){return r[e]}function Bsr(r,e){return r[e]}function Fsr(r,e){return r[e]}function Rsr(r){var e=hb[r];return typeof e=="function"?e:hb.default}gb.exports=Rsr});var Et=c((_re,xb)=>{"use strict";var zsr=bb();xb.exports=zsr});var wb=c((Tre,qb)=>{"use strict";var Vsr={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"};qb.exports=Vsr});var Eb=c((jre,Sb)=>{"use strict";var Usr=me(),Csr=typeof Float32Array=="function";function Psr(r){return Csr&&r instanceof Float32Array||Usr(r)==="[object Float32Array]"}Sb.exports=Psr});var _b=c((Ire,Ab)=>{"use strict";var Lsr=Eb();Ab.exports=Lsr});var jb=c((Ore,Tb)=>{"use strict";var Msr=typeof Float32Array=="function"?Float32Array:null;Tb.exports=Msr});var Nb=c((Nre,Ob)=>{"use strict";var Gsr=_b(),Ysr=Pi(),Ib=jb();function $sr(){var r,e;if(typeof Ib!="function")return!1;try{e=new Ib([1,3.14,-3.14,5e40]),r=Gsr(e)&&e[0]===1&&e[1]===3.140000104904175&&e[2]===-3.140000104904175&&e[3]===Ysr}catch{r=!1}return r}Ob.exports=$sr});var kb=c((Dre,Db)=>{"use strict";var Wsr=Nb();Db.exports=Wsr});var Fb=c((kre,Bb)=>{"use strict";var Jsr=typeof Float32Array=="function"?Float32Array:void 0;Bb.exports=Jsr});var zb=c((Bre,Rb)=>{"use strict";function Xsr(){throw new Error("not implemented")}Rb.exports=Xsr});var At=c((Fre,Vb)=>{"use strict";var Ksr=kb(),Hsr=Fb(),Zsr=zb(),av;Ksr()?av=Hsr:av=Zsr;Vb.exports=av});var Cb=c((Rre,Ub)=>{"use strict";var Qsr=me(),rur=typeof Uint32Array=="function";function eur(r){return rur&&r instanceof Uint32Array||Qsr(r)==="[object Uint32Array]"}Ub.exports=eur});var Lb=c((zre,Pb)=>{"use strict";var aur=Cb();Pb.exports=aur});var Gb=c((Vre,Mb)=>{"use strict";var tur=typeof Uint32Array=="function"?Uint32Array:null;Mb.exports=tur});var Wb=c((Ure,$b)=>{"use strict";var iur=Lb(),tv=an(),Yb=Gb();function our(){var r,e;if(typeof Yb!="function")return!1;try{e=[1,3.14,-3.14,tv+1,tv+2],e=new Yb(e),r=iur(e)&&e[0]===1&&e[1]===3&&e[2]===tv-2&&e[3]===0&&e[4]===1}catch{r=!1}return r}$b.exports=our});var Xb=c((Cre,Jb)=>{"use strict";var nur=Wb();Jb.exports=nur});var Hb=c((Pre,Kb)=>{"use strict";var sur=typeof Uint32Array=="function"?Uint32Array:void 0;Kb.exports=sur});var Qb=c((Lre,Zb)=>{"use strict";function uur(){throw new Error("not implemented")}Zb.exports=uur});var Ji=c((Mre,rx)=>{"use strict";var vur=Xb(),fur=Hb(),lur=Qb(),iv;vur()?iv=fur:iv=lur;rx.exports=iv});var ax=c((Gre,ex)=>{"use strict";var cur=me(),dur=typeof Int32Array=="function";function pur(r){return dur&&r instanceof Int32Array||cur(r)==="[object Int32Array]"}ex.exports=pur});var ix=c((Yre,tx)=>{"use strict";var yur=ax();tx.exports=yur});var ov=c(($re,ox)=>{"use strict";var mur=2147483647;ox.exports=mur});var nv=c((Wre,nx)=>{"use strict";var hur=-2147483648;nx.exports=hur});var ux=c((Jre,sx)=>{"use strict";var gur=typeof Int32Array=="function"?Int32Array:null;sx.exports=gur});var lx=c((Xre,fx)=>{"use strict";var bur=ix(),xur=ov(),qur=nv(),vx=ux();function wur(){var r,e;if(typeof vx!="function")return!1;try{e=new vx([1,3.14,-3.14,xur+1]),r=bur(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===qur}catch{r=!1}return r}fx.exports=wur});var dx=c((Kre,cx)=>{"use strict";var Sur=lx();cx.exports=Sur});var yx=c((Hre,px)=>{"use strict";var Eur=typeof Int32Array=="function"?Int32Array:void 0;px.exports=Eur});var hx=c((Zre,mx)=>{"use strict";function Aur(){throw new Error("not implemented")}mx.exports=Aur});var Xi=c((Qre,gx)=>{"use strict";var _ur=dx(),Tur=yx(),jur=hx(),sv;_ur()?sv=Tur:sv=jur;gx.exports=sv});var xx=c((ree,bx)=>{"use strict";var Iur=me(),Our=typeof Int16Array=="function";function Nur(r){return Our&&r instanceof Int16Array||Iur(r)==="[object Int16Array]"}bx.exports=Nur});var wx=c((eee,qx)=>{"use strict";var Dur=xx();qx.exports=Dur});var uv=c((aee,Sx)=>{"use strict";var kur=32767;Sx.exports=kur});var vv=c((tee,Ex)=>{"use strict";var Bur=-32768;Ex.exports=Bur});var _x=c((iee,Ax)=>{"use strict";var Fur=typeof Int16Array=="function"?Int16Array:null;Ax.exports=Fur});var Ix=c((oee,jx)=>{"use strict";var Rur=wx(),zur=uv(),Vur=vv(),Tx=_x();function Uur(){var r,e;if(typeof Tx!="function")return!1;try{e=new Tx([1,3.14,-3.14,zur+1]),r=Rur(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===Vur}catch{r=!1}return r}jx.exports=Uur});var Nx=c((nee,Ox)=>{"use strict";var Cur=Ix();Ox.exports=Cur});var kx=c((see,Dx)=>{"use strict";var Pur=typeof Int16Array=="function"?Int16Array:void 0;Dx.exports=Pur});var Fx=c((uee,Bx)=>{"use strict";function Lur(){throw new Error("not implemented")}Bx.exports=Lur});var Ki=c((vee,Rx)=>{"use strict";var Mur=Nx(),Gur=kx(),Yur=Fx(),fv;Mur()?fv=Gur:fv=Yur;Rx.exports=fv});var Vx=c((fee,zx)=>{"use strict";var $ur=me(),Wur=typeof Uint8ClampedArray=="function";function Jur(r){return Wur&&r instanceof Uint8ClampedArray||$ur(r)==="[object Uint8ClampedArray]"}zx.exports=Jur});var Cx=c((lee,Ux)=>{"use strict";var Xur=Vx();Ux.exports=Xur});var Lx=c((cee,Px)=>{"use strict";var Kur=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:null;Px.exports=Kur});var Yx=c((dee,Gx)=>{"use strict";var Hur=Cx(),Mx=Lx();function Zur(){var r,e;if(typeof Mx!="function")return!1;try{e=new Mx([-1,0,1,3.14,4.99,255,256]),r=Hur(e)&&e[0]===0&&e[1]===0&&e[2]===1&&e[3]===3&&e[4]===5&&e[5]===255&&e[6]===255}catch{r=!1}return r}Gx.exports=Zur});var Wx=c((pee,$x)=>{"use strict";var Qur=Yx();$x.exports=Qur});var Xx=c((yee,Jx)=>{"use strict";var rvr=typeof Uint8ClampedArray=="function"?Uint8ClampedArray:void 0;Jx.exports=rvr});var Hx=c((mee,Kx)=>{"use strict";function evr(){throw new Error("not implemented")}Kx.exports=evr});var Hi=c((hee,Zx)=>{"use strict";var avr=Wx(),tvr=Xx(),ivr=Hx(),lv;avr()?lv=tvr:lv=ivr;Zx.exports=lv});var rq=c((gee,Qx)=>{"use strict";var ovr=me(),nvr=typeof Int8Array=="function";function svr(r){return nvr&&r instanceof Int8Array||ovr(r)==="[object Int8Array]"}Qx.exports=svr});var aq=c((bee,eq)=>{"use strict";var uvr=rq();eq.exports=uvr});var cv=c((xee,tq)=>{"use strict";var vvr=127;tq.exports=vvr});var dv=c((qee,iq)=>{"use strict";var fvr=-128;iq.exports=fvr});var nq=c((wee,oq)=>{"use strict";var lvr=typeof Int8Array=="function"?Int8Array:null;oq.exports=lvr});var vq=c((See,uq)=>{"use strict";var cvr=aq(),dvr=cv(),pvr=dv(),sq=nq();function yvr(){var r,e;if(typeof sq!="function")return!1;try{e=new sq([1,3.14,-3.14,dvr+1]),r=cvr(e)&&e[0]===1&&e[1]===3&&e[2]===-3&&e[3]===pvr}catch{r=!1}return r}uq.exports=yvr});var lq=c((Eee,fq)=>{"use strict";var mvr=vq();fq.exports=mvr});var dq=c((Aee,cq)=>{"use strict";var hvr=typeof Int8Array=="function"?Int8Array:void 0;cq.exports=hvr});var yq=c((_ee,pq)=>{"use strict";function gvr(){throw new Error("not implemented")}pq.exports=gvr});var Zi=c((Tee,mq)=>{"use strict";var bvr=lq(),xvr=dq(),qvr=yq(),pv;bvr()?pv=xvr:pv=qvr;mq.exports=pv});var gq=c((jee,hq)=>{"use strict";var wvr=Sa(),Svr=Ju();function Evr(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&wvr(r.length)&&r.length>=0&&r.length<=Svr}hq.exports=Evr});var Ve=c((Iee,bq)=>{"use strict";var Avr=gq();bq.exports=Avr});var vn=c((Oee,qq)=>{"use strict";var xq=Ir(),yv=au(),mv=Pa(),_vr=yv(mv.isPrimitive),Tvr=yv(mv.isObject),hv=yv(mv);xq(hv,"primitives",_vr);xq(hv,"objects",Tvr);qq.exports=hv});var Sq=c((Nee,wq)=>{"use strict";function jvr(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}wq.exports=jvr});var Aq=c((Dee,Eq)=>{"use strict";function Ivr(){var r={};return r.type="Complex128",r.re=this.re,r.im=this.im,r}Eq.exports=Ivr});var Oq=c((kee,Iq)=>{"use strict";var _q=Ge().isPrimitive,Tq=Rt(),Qi=Ir(),jq=pr(),Ovr=Sq(),Nvr=Aq();function Xt(r,e){if(!(this instanceof Xt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!_q(r))throw new TypeError(jq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!_q(e))throw new TypeError(jq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return Tq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:r}),Tq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:e}),this}Qi(Xt,"BYTES_PER_ELEMENT",8);Qi(Xt.prototype,"BYTES_PER_ELEMENT",8);Qi(Xt.prototype,"byteLength",16);Qi(Xt.prototype,"toString",Ovr);Qi(Xt.prototype,"toJSON",Nvr);Iq.exports=Xt});var fn=c((Bee,Nq)=>{"use strict";var Dvr=Oq();Nq.exports=Dvr});var kq=c((Fee,Dq)=>{"use strict";var kvr=typeof Math.fround=="function"?Math.fround:null;Dq.exports=kvr});var Rq=c((Ree,Fq)=>{"use strict";var Bvr=At(),Bq=new Bvr(1);function Fvr(r){return Bq[0]=r,Bq[0]}Fq.exports=Fvr});var Uq=c((zee,Vq)=>{"use strict";var zq=kq(),Rvr=Rq(),gv;typeof zq=="function"?gv=zq:gv=Rvr;Vq.exports=gv});var Pq=c((Vee,Cq)=>{"use strict";function zvr(){var r=""+this.re;return this.im<0?r+=" - "+-this.im:r+=" + "+this.im,r+="i",r}Cq.exports=zvr});var Mq=c((Uee,Lq)=>{"use strict";function Vvr(){var r={};return r.type="Complex64",r.re=this.re,r.im=this.im,r}Lq.exports=Vvr});var Xq=c((Cee,Jq)=>{"use strict";var Gq=Ge().isPrimitive,Yq=Rt(),ro=Ir(),$q=Uq(),Wq=pr(),Uvr=Pq(),Cvr=Mq();function Kt(r,e){if(!(this instanceof Kt))throw new TypeError("invalid invocation. Constructor must be called with the `new` keyword.");if(!Gq(r))throw new TypeError(Wq("invalid argument. Real component must be a number. Value: `%s`.",r));if(!Gq(e))throw new TypeError(Wq("invalid argument. Imaginary component must be a number. Value: `%s`.",e));return Yq(this,"re",{configurable:!1,enumerable:!0,writable:!1,value:$q(r)}),Yq(this,"im",{configurable:!1,enumerable:!0,writable:!1,value:$q(e)}),this}ro(Kt,"BYTES_PER_ELEMENT",4);ro(Kt.prototype,"BYTES_PER_ELEMENT",4);ro(Kt.prototype,"byteLength",8);ro(Kt.prototype,"toString",Uvr);ro(Kt.prototype,"toJSON",Cvr);Jq.exports=Kt});var ln=c((Pee,Kq)=>{"use strict";var Pvr=Xq();Kq.exports=Pvr});var Zq=c((Lee,Hq)=>{"use strict";var Lvr=fn(),Mvr=ln();function Gvr(r){return r instanceof Lvr||r instanceof Mvr?!0:typeof r=="object"&&r!==null&&typeof r.re=="number"&&typeof r.im=="number"}Hq.exports=Gvr});var fa=c((Mee,Qq)=>{"use strict";var Yvr=Zq();Qq.exports=Yvr});var ew=c((Gee,rw)=>{"use strict";var $vr=Sa();function Wvr(r){return $vr(r/2)}rw.exports=Wvr});var bv=c((Yee,aw)=>{"use strict";var Jvr=ew();aw.exports=Jvr});var iw=c(($ee,tw)=>{"use strict";var Xvr=8;function Kvr(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex64Array"&&r.BYTES_PER_ELEMENT===Xvr}tw.exports=Kvr});var cn=c((Wee,ow)=>{"use strict";var Hvr=iw();ow.exports=Hvr});var sw=c((Jee,nw)=>{"use strict";var Zvr=16;function Qvr(r){return typeof r=="object"&&r!==null&&r.constructor.name==="Complex128Array"&&r.BYTES_PER_ELEMENT===Zvr}nw.exports=Qvr});var dn=c((Xee,uw)=>{"use strict";var rfr=sw();uw.exports=rfr});var fw=c((Kee,vw)=>{"use strict";var efr=Xr(),pn=Ws();function afr(){return typeof pn=="function"&&typeof pn("foo")=="symbol"&&efr(pn,"iterator")&&typeof pn.iterator=="symbol"}vw.exports=afr});var eo=c((Hee,lw)=>{"use strict";var tfr=fw();lw.exports=tfr});var dw=c((Zee,cw)=>{"use strict";var ifr=eo(),ofr=ifr()?Symbol.iterator:null;cw.exports=ofr});var Fe=c((Qee,pw)=>{"use strict";var nfr=dw();pw.exports=nfr});var mw=c((rae,yw)=>{"use strict";function sfr(r){return r.re}yw.exports=sfr});var ao=c((eae,hw)=>{"use strict";var ufr=mw();hw.exports=ufr});var bw=c((aae,gw)=>{"use strict";function vfr(r){return r.im}gw.exports=vfr});var to=c((tae,xw)=>{"use strict";var ffr=bw();xw.exports=ffr});var ww=c((iae,qw)=>{"use strict";var lfr=At();function cfr(r,e){return new lfr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}qw.exports=cfr});var io=c((oae,Sw)=>{"use strict";var dfr=ww();Sw.exports=dfr});var Aw=c((nae,Ew)=>{"use strict";var pfr=qt();function yfr(r,e){return new pfr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,2*(r.length-e))}Ew.exports=yfr});var oo=c((sae,_w)=>{"use strict";var mfr=Aw();_w.exports=mfr});var jw=c((uae,Tw)=>{"use strict";var hfr=Ve(),gfr=fa(),bfr=ao(),xfr=to(),qfr=pr();function wfr(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,hfr(t)&&t.length>=2)e.push(t[0],t[1]);else if(gfr(t))e.push(bfr(t),xfr(t));else return new TypeError(qfr("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",t));return e}Tw.exports=wfr});var Ow=c((vae,Iw)=>{"use strict";var Sfr=Ve(),Efr=fa(),Afr=ao(),_fr=to(),Tfr=pr();function jfr(r,e,a){var t,o,i,n;for(t=[],n=-1;o=r.next(),!o.done;)if(n+=1,i=e.call(a,o.value,n),Sfr(i)&&i.length>=2)t.push(i[0],i[1]);else if(Efr(i))t.push(Afr(i),_fr(i));else return new TypeError(Tfr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",i));return t}Iw.exports=jfr});var Dw=c((fae,Nw)=>{"use strict";var Ifr=fa(),Ofr=ao(),Nfr=to();function Dfr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!Ifr(t))return null;r[i]=Ofr(t),r[i+1]=Nfr(t),i+=2}return r}Nw.exports=Dfr});var Uw=c((lae,Vw)=>{"use strict";var no=ge().isPrimitive,xv=Ve(),qv=ke(),kw=Li(),wv=Ui(),kfr=wa(),Bfr=vn().primitives,Bw=Pa().isPrimitive,Ee=Pe(),ca=fa(),yn=bv(),$e=Sa(),Ffr=cn(),Rfr=dn(),zfr=eo(),La=Fe(),Gr=Ir(),mn=bt(),la=At(),Vfr=ln(),kr=pr(),ja=ao(),Ia=to(),Ufr=ea(),Cfr=io(),Pfr=oo(),Lfr=Et(),Mfr=ot(),Fw=jw(),Gfr=Ow(),Yfr=Dw(),ta=la.BYTES_PER_ELEMENT*2,Rw=zfr();function ee(r){return r instanceof Cr||typeof r=="object"&&r!==null&&(r.constructor.name==="Complex64Array"||r.constructor.name==="Complex128Array")&&typeof r._length=="number"&&typeof r._buffer=="object"}function zw(r){return r===Cr||r.name==="Complex128Array"}function xe(r,e){return e*=2,new Vfr(r[e],r[e+1])}function Cr(){var r,e,a,t;if(e=arguments.length,!(this instanceof Cr))return e===0?new Cr:e===1?new Cr(arguments[0]):e===2?new Cr(arguments[0],arguments[1]):new Cr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new la(0);else if(e===1)if(no(arguments[0]))a=new la(arguments[0]*2);else if(qv(arguments[0]))if(a=arguments[0],t=a.length,t&&kfr(a)&&ca(a[0])){if(a=Yfr(new la(t*2),a),a===null){if(!yn(t))throw new RangeError(kr("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new la(arguments[0])}}else{if(Ffr(a))a=Cfr(a,0);else if(Rfr(a))a=Pfr(a,0);else if(!yn(t))throw new RangeError(kr("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new la(a)}else if(kw(arguments[0])){if(a=arguments[0],!$e(a.byteLength/ta))throw new RangeError(kr("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",ta,a.byteLength));a=new la(a)}else if(wv(arguments[0])){if(a=arguments[0],Rw===!1)throw new TypeError(kr("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",a));if(!Ee(a[La]))throw new TypeError(kr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=a[La](),!Ee(a.next))throw new TypeError(kr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=Fw(a),a instanceof Error)throw a;a=new la(a)}else throw new TypeError(kr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));else{if(a=arguments[0],!kw(a))throw new TypeError(kr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!no(r))throw new TypeError(kr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!$e(r/ta))throw new RangeError(kr("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",ta,r));if(e===2){if(t=a.byteLength-r,!$e(t/ta))throw new RangeError(kr("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",ta,t));a=new la(a,r)}else{if(t=arguments[2],!no(t))throw new TypeError(kr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*ta>a.byteLength-r)throw new RangeError(kr("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*ta));a=new la(a,r,t*2)}}return Gr(this,"_buffer",a),Gr(this,"_length",a.length/2),this}Gr(Cr,"BYTES_PER_ELEMENT",ta);Gr(Cr,"name","Complex64Array");Gr(Cr,"from",function(e){var a,t,o,i,n,s,u,v,f,l,d,y;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(t=arguments.length,t>1){if(o=arguments[1],!Ee(o))throw new TypeError(kr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(ee(e)){if(v=e.length,o){for(i=new this(v),n=i._buffer,y=0,d=0;d<v;d++){if(l=o.call(a,e.get(d),d),ca(l))n[y]=ja(l),n[y+1]=Ia(l);else if(xv(l)&&l.length>=2)n[y]=l[0],n[y+1]=l[1];else throw new TypeError(kr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));y+=2}return i}return new this(e)}if(qv(e)){if(o){for(v=e.length,e.get&&e.set?u=Mfr("default"):u=Lfr("default"),d=0;d<v;d++)if(!ca(u(e,d))){f=!0;break}if(f){if(!yn(v))throw new RangeError(kr("invalid argument. First argument must have a length which is a multiple of %u. Length: `%u`.",2,v));for(i=new this(v/2),n=i._buffer,d=0;d<v;d++)n[d]=o.call(a,u(e,d),d);return i}for(i=new this(v),n=i._buffer,y=0,d=0;d<v;d++){if(l=o.call(a,u(e,d),d),ca(l))n[y]=ja(l),n[y+1]=Ia(l);else if(xv(l)&&l.length>=2)n[y]=l[0],n[y+1]=l[1];else throw new TypeError(kr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));y+=2}return i}return new this(e)}if(wv(e)&&Rw&&Ee(e[La])){if(n=e[La](),!Ee(n.next))throw new TypeError(kr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));if(o?s=Gfr(n,o,a):s=Fw(n),s instanceof Error)throw s;for(v=s.length/2,i=new this(v),n=i._buffer,d=0;d<v;d++)n[d]=s[d];return i}throw new TypeError(kr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});Gr(Cr,"of",function(){var e,a;if(!Ee(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=0;a<arguments.length;a++)e.push(arguments[a]);return new this(e)});Gr(Cr.prototype,"at",function(e){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!$e(e))throw new TypeError(kr("invalid argument. Must provide an integer. Value: `%s`.",e));if(e<0&&(e+=this._length),!(e<0||e>=this._length))return xe(this._buffer,e)});mn(Cr.prototype,"buffer",function(){return this._buffer.buffer});mn(Cr.prototype,"byteLength",function(){return this._buffer.byteLength});mn(Cr.prototype,"byteOffset",function(){return this._buffer.byteOffset});Gr(Cr.prototype,"BYTES_PER_ELEMENT",Cr.BYTES_PER_ELEMENT);Gr(Cr.prototype,"copyWithin",function(e,a){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return arguments.length===2?this._buffer.copyWithin(e*2,a*2):this._buffer.copyWithin(e*2,a*2,arguments[2]*2),this});Gr(Cr.prototype,"entries",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,o=this._buffer,t=this._length,n=-1,a={},Gr(a,"next",s),Gr(a,"return",u),La&&Gr(a,La,v),a;function s(){return n+=1,i||n>=t?{done:!0}:{value:[n,xe(o,n)],done:!1}}function u(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return e.entries()}});Gr(Cr.prototype,"every",function(e,a){var t,o;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(!e.call(a,xe(t,o),o,this))return!1;return!0});Gr(Cr.prototype,"fill",function(e,a,t){var o,i,n,s,u,v;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(kr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!$e(t))throw new TypeError(kr("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i,t<0&&(t=0)),t>i&&(t=i)}else t=i}else a=0,t=i;for(s=ja(e),u=Ia(e),v=a;v<t;v++)n=2*v,o[n]=s,o[n+1]=u;return this});Gr(Cr.prototype,"filter",function(e,a){var t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)n=xe(t,i),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});Gr(Cr.prototype,"find",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=xe(t,o),e.call(a,i,o,this))return i});Gr(Cr.prototype,"findIndex",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=xe(t,o),e.call(a,i,o,this))return o;return-1});Gr(Cr.prototype,"findLast",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=xe(t,o),e.call(a,i,o,this))return i});Gr(Cr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=xe(t,o),e.call(a,i,o,this))return o;return-1});Gr(Cr.prototype,"forEach",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)i=xe(t,o),e.call(a,i,o,this)});Gr(Cr.prototype,"get",function(e){if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!no(e))throw new TypeError(kr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return xe(this._buffer,e)});Gr(Cr.prototype,"includes",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(kr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=ja(e),n=Ia(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return!0;return!1});Gr(Cr.prototype,"indexOf",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(kr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=ja(e),n=Ia(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});Gr(Cr.prototype,"join",function(e){var a,t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=",";else if(Bw(e))o=e;else throw new TypeError(kr("invalid argument. First argument must be a string. Value: `%s`.",e));for(a=[],t=this._buffer,i=0;i<this._length;i++)a.push(xe(t,i).toString());return a.join(o)});Gr(Cr.prototype,"keys",function(){var e,a,t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,t=this._length,i=-1,a={},Gr(a,"next",n),Gr(a,"return",s),La&&Gr(a,La,u),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(v){return o=!0,arguments.length?{value:v,done:!0}:{done:!0}}function u(){return e.keys()}});Gr(Cr.prototype,"lastIndexOf",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!ca(e))throw new TypeError(kr("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a>=this._length?a=this._length-1:a<0&&(a+=this._length)}else a=this._length-1;for(i=ja(e),n=Ia(e),t=this._buffer,s=a;s>=0;s--)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});mn(Cr.prototype,"length",function(){return this._length});Gr(Cr.prototype,"map",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(o=this._buffer,i=new this.constructor(this._length),t=i._buffer,n=0;n<this._length;n++)if(s=e.call(a,xe(o,n),n,this),ca(s))t[2*n]=ja(s),t[2*n+1]=Ia(s);else if(xv(s)&&s.length===2)t[2*n]=s[0],t[2*n+1]=s[1];else throw new TypeError(kr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",s));return i});Gr(Cr.prototype,"reduce",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=0;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=xe(t,0),s=1}for(;s<i;s++)n=xe(t,s),o=e(o,n,s,this);return o});Gr(Cr.prototype,"reduceRight",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=i-1;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=xe(t,i-1),s=i-2}for(;s>=0;s--)n=xe(t,s),o=e(o,n,s,this);return o});Gr(Cr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=this._buffer,o=Ufr(t/2),i=0;i<o;i++)n=t-i-1,a=e[2*i],e[2*i]=e[2*n],e[2*n]=a,a=e[2*i+1],e[2*i+1]=e[2*n+1],e[2*n+1]=a;return this});Gr(Cr.prototype,"set",function(e){var a,t,o,i,n,s,u,v,f;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!no(t))throw new TypeError(kr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(ca(e)){if(t>=this._length)throw new RangeError(kr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=ja(e),o[t+1]=Ia(e);return}if(ee(e)){if(s=e._length,t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e._buffer,f=o.byteOffset+t*ta,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new la(a.length),v=0;v<a.length;v++)i[v]=a[v];a=i}for(t*=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(qv(e)){for(s=e.length,v=0;v<s;v++)if(!ca(e[v])){n=!0;break}if(n){if(!yn(s))throw new RangeError(kr("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",s));if(t+s/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e,f=o.byteOffset+t*ta,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new la(s),v=0;v<s;v++)i[v]=a[v];a=i}for(t*=2,s/=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,v=0;v<s;v++)u=e[v],o[t]=ja(u),o[t+1]=Ia(u),t+=2;return}throw new TypeError(kr("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",e))});Gr(Cr.prototype,"slice",function(e,a){var t,o,i,n,s,u,v;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(s=this._buffer,u=this._length,arguments.length===0)e=0,a=u;else{if(!$e(e))throw new TypeError(kr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=u,e<0&&(e=0)),arguments.length===1)a=u;else{if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=u,a<0&&(a=0)):a>u&&(a=u)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,v=0;v<t;v++)n=2*(v+e),o[2*v]=s[n],o[2*v+1]=s[n+1];return i});Gr(Cr.prototype,"some",function(e,a){var t,o;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(e.call(a,xe(t,o),o,this))return!0;return!1});Gr(Cr.prototype,"sort",function(e){var a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(xe(t,i));for(a.sort(e),i=0;i<o;i++)n=2*i,t[n]=ja(a[i]),t[n+1]=Ia(a[i]);return this});Gr(Cr.prototype,"subarray",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,i=this._length,arguments.length===0)e=0,a=i;else{if(!$e(e))throw new TypeError(kr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i,e<0&&(e=0)),arguments.length===1)a=i;else{if(!$e(a))throw new TypeError(kr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=i,a<0&&(a=0)):a>i&&(a=i)}}return e>=i?(i=0,t=o.byteLength):e>=a?(i=0,t=o.byteOffset+e*ta):(i=a-e,t=o.byteOffset+e*ta),new this.constructor(o.buffer,t,i<0?0:i)});Gr(Cr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=[];else if(Bw(e)||Bfr(e))o=e;else throw new TypeError(kr("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(wv(a))t=a;else throw new TypeError(kr("invalid argument. Options argument must be an object. Value: `%s`.",a));for(n=this._buffer,i=[],s=0;s<this._length;s++)i.push(xe(n,s).toLocaleString(o,t));return i.join(",")});Gr(Cr.prototype,"toReversed",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,a=new this.constructor(t),o=this._buffer,e=a._buffer,i=0;i<t;i++)n=t-i-1,e[2*i]=o[2*n],e[2*i+1]=o[2*n+1];return a});Gr(Cr.prototype,"toSorted",function(e){var a,t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ee(e))throw new TypeError(kr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(xe(t,i));return a.sort(e),new Cr(a)});Gr(Cr.prototype,"toString",function(){var e,a,t;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=this._buffer,t=0;t<this._length;t++)e.push(xe(a,t).toString());return e.join(",")});Gr(Cr.prototype,"values",function(){var e,a,t,o,i,n;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,i=this._buffer,t=this._length,n=-1,e={},Gr(e,"next",s),Gr(e,"return",u),La&&Gr(e,La,v),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:xe(i,n),done:!1}}function u(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return a.values()}});Gr(Cr.prototype,"with",function(e,a){var t,o,i;if(!ee(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!$e(e))throw new TypeError(kr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(i=this._length,e<0&&(e+=i),e<0||e>=i)throw new RangeError(kr("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!ca(a))throw new TypeError(kr("invalid argument. Second argument must be a complex number. Value: `%s`.",a));return o=new this.constructor(this._buffer),t=o._buffer,t[2*e]=ja(a),t[2*e+1]=Ia(a),o});Vw.exports=Cr});var so=c((cae,Cw)=>{"use strict";var $fr=Uw();Cw.exports=$fr});var Lw=c((dae,Pw)=>{"use strict";var Wfr=Ve(),Jfr=fa(),Xfr=pr(),Kfr=Lt(),Hfr=Mt();function Zfr(r){var e,a,t;for(e=[];a=r.next(),!a.done;)if(t=a.value,Wfr(t)&&t.length>=2)e.push(t[0],t[1]);else if(Jfr(t))e.push(Kfr(t),Hfr(t));else return new TypeError(Xfr("invalid argument. An iterator must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",t));return e}Pw.exports=Zfr});var Gw=c((pae,Mw)=>{"use strict";var Qfr=Ve(),rlr=fa(),elr=pr(),alr=Lt(),tlr=Mt();function ilr(r,e,a){var t,o,i,n;for(t=[],n=-1;o=r.next(),!o.done;)if(n+=1,i=e.call(a,o.value,n),Qfr(i)&&i.length>=2)t.push(i[0],i[1]);else if(rlr(i))t.push(alr(i),tlr(i));else return new TypeError(elr("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",i));return t}Mw.exports=ilr});var $w=c((yae,Yw)=>{"use strict";var olr=fa(),nlr=Lt(),slr=Mt();function ulr(r,e){var a,t,o,i;for(a=e.length,i=0,o=0;o<a;o++){if(t=e[o],!olr(t))return null;r[i]=nlr(t),r[i+1]=slr(t),i+=2}return r}Yw.exports=ulr});var r3=c((mae,Qw)=>{"use strict";var uo=ge().isPrimitive,Sv=Ve(),Ev=ke(),Ww=Li(),Av=Ui(),vlr=wa(),flr=vn().primitives,Jw=Pa(),Ae=Pe(),pa=fa(),hn=bv(),We=Sa(),llr=cn(),clr=dn(),dlr=eo(),Ma=Fe(),Yr=Ir(),gn=bt(),da=qt(),Xw=fn(),Oa=Lt(),Na=Mt(),plr=ea(),ylr=io(),mlr=oo(),hlr=Et(),glr=ot(),Br=pr(),Kw=Lw(),blr=Gw(),xlr=$w(),ia=da.BYTES_PER_ELEMENT*2,Hw=dlr();function ae(r){return r instanceof Pr||typeof r=="object"&&r!==null&&(r.constructor.name==="Complex64Array"||r.constructor.name==="Complex128Array")&&typeof r._length=="number"&&typeof r._buffer=="object"}function Zw(r){return r===Pr||r.name==="Complex64Array"}function we(r,e){return e*=2,new Xw(r[e],r[e+1])}function Pr(){var r,e,a,t;if(e=arguments.length,!(this instanceof Pr))return e===0?new Pr:e===1?new Pr(arguments[0]):e===2?new Pr(arguments[0],arguments[1]):new Pr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new da(0);else if(e===1)if(uo(arguments[0]))a=new da(arguments[0]*2);else if(Ev(arguments[0]))if(a=arguments[0],t=a.length,t&&vlr(a)&&pa(a[0])){if(a=xlr(new da(t*2),a),a===null){if(!hn(t))throw new RangeError(Br("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new da(arguments[0])}}else{if(llr(a))a=ylr(a,0);else if(clr(a))a=mlr(a,0);else if(!hn(t))throw new RangeError(Br("invalid argument. Array-like object and typed array arguments must have a length which is a multiple of two. Length: `%u`.",t));a=new da(a)}else if(Ww(arguments[0])){if(a=arguments[0],!We(a.byteLength/ia))throw new RangeError(Br("invalid argument. ArrayBuffer byte length must be a multiple of %u. Byte length: `%u`.",ia,a.byteLength));a=new da(a)}else if(Av(arguments[0])){if(a=arguments[0],Hw===!1)throw new TypeError(Br("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",a));if(!Ae(a[Ma]))throw new TypeError(Br("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=a[Ma](),!Ae(a.next))throw new TypeError(Br("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",a));if(a=Kw(a),a instanceof Error)throw a;a=new da(a)}else throw new TypeError(Br("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",arguments[0]));else{if(a=arguments[0],!Ww(a))throw new TypeError(Br("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!uo(r))throw new TypeError(Br("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(!We(r/ia))throw new RangeError(Br("invalid argument. Byte offset must be a multiple of %u. Value: `%u`.",ia,r));if(e===2){if(t=a.byteLength-r,!We(t/ia))throw new RangeError(Br("invalid arguments. ArrayBuffer view byte length must be a multiple of %u. View byte length: `%u`.",ia,t));a=new da(a,r)}else{if(t=arguments[2],!uo(t))throw new TypeError(Br("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*ia>a.byteLength-r)throw new RangeError(Br("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*ia));a=new da(a,r,t*2)}}return Yr(this,"_buffer",a),Yr(this,"_length",a.length/2),this}Yr(Pr,"BYTES_PER_ELEMENT",ia);Yr(Pr,"name","Complex128Array");Yr(Pr,"from",function(e){var a,t,o,i,n,s,u,v,f,l,d,y;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(t=arguments.length,t>1){if(o=arguments[1],!Ae(o))throw new TypeError(Br("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(ae(e)){if(v=e.length,o){for(i=new this(v),n=i._buffer,y=0,d=0;d<v;d++){if(l=o.call(a,e.get(d),d),pa(l))n[y]=Oa(l),n[y+1]=Na(l);else if(Sv(l)&&l.length>=2)n[y]=l[0],n[y+1]=l[1];else throw new TypeError(Br("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));y+=2}return i}return new this(e)}if(Ev(e)){if(o){for(v=e.length,e.get&&e.set?u=glr("default"):u=hlr("default"),d=0;d<v;d++)if(!pa(u(e,d))){f=!0;break}if(f){if(!hn(v))throw new RangeError(Br("invalid argument. First argument must have a length which is a multiple of two. Length: `%u`.",v));for(i=new this(v/2),n=i._buffer,d=0;d<v;d++)n[d]=o.call(a,u(e,d),d);return i}for(i=new this(v),n=i._buffer,y=0,d=0;d<v;d++){if(l=o.call(a,u(e,d),d),pa(l))n[y]=Oa(l),n[y+1]=Na(l);else if(Sv(l)&&l.length>=2)n[y]=l[0],n[y+1]=l[1];else throw new TypeError(Br("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",l));y+=2}return i}return new this(e)}if(Av(e)&&Hw&&Ae(e[Ma])){if(n=e[Ma](),!Ae(n.next))throw new TypeError(Br("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));if(o?s=blr(n,o,a):s=Kw(n),s instanceof Error)throw s;for(v=s.length/2,i=new this(v),n=i._buffer,d=0;d<v;d++)n[d]=s[d];return i}throw new TypeError(Br("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});Yr(Pr,"of",function(){var e,a;if(!Ae(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Zw(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=0;a<arguments.length;a++)e.push(arguments[a]);return new this(e)});Yr(Pr.prototype,"at",function(e){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!We(e))throw new TypeError(Br("invalid argument. Must provide an integer. Value: `%s`.",e));if(e<0&&(e+=this._length),!(e<0||e>=this._length))return we(this._buffer,e)});gn(Pr.prototype,"buffer",function(){return this._buffer.buffer});gn(Pr.prototype,"byteLength",function(){return this._buffer.byteLength});gn(Pr.prototype,"byteOffset",function(){return this._buffer.byteOffset});Yr(Pr.prototype,"BYTES_PER_ELEMENT",Pr.BYTES_PER_ELEMENT);Yr(Pr.prototype,"copyWithin",function(e,a){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return arguments.length===2?this._buffer.copyWithin(e*2,a*2):this._buffer.copyWithin(e*2,a*2,arguments[2]*2),this});Yr(Pr.prototype,"entries",function(){var e,a,t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,e=this._buffer,o=this._length,n=-1,s=-2,t={},Yr(t,"next",u),Yr(t,"return",v),Ma&&Yr(t,Ma,f),t;function u(){var l;return n+=1,i||n>=o?{done:!0}:(s+=2,l=new Xw(e[s],e[s+1]),{value:[n,l],done:!1})}function v(l){return i=!0,arguments.length?{value:l,done:!0}:{done:!0}}function f(){return a.entries()}});Yr(Pr.prototype,"every",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(!e.call(a,we(t,o),o,this))return!1;return!0});Yr(Pr.prototype,"fill",function(e,a,t){var o,i,n,s,u,v;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Br("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!We(t))throw new TypeError(Br("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i,t<0&&(t=0)),t>i&&(t=i)}else t=i}else a=0,t=i;for(s=Oa(e),u=Na(e),v=a;v<t;v++)n=2*v,o[n]=s,o[n+1]=u;return this});Yr(Pr.prototype,"filter",function(e,a){var t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)n=we(t,i),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});Yr(Pr.prototype,"find",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=we(t,o),e.call(a,i,o,this))return i});Yr(Pr.prototype,"findIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(i=we(t,o),e.call(a,i,o,this))return o;return-1});Yr(Pr.prototype,"findLast",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=we(t,o),e.call(a,i,o,this))return i});Yr(Pr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length-1;o>=0;o--)if(i=we(t,o),e.call(a,i,o,this))return o;return-1});Yr(Pr.prototype,"forEach",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)i=we(t,o),e.call(a,i,o,this)});Yr(Pr.prototype,"get",function(e){if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!uo(e))throw new TypeError(Br("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return we(this._buffer,e)});gn(Pr.prototype,"length",function(){return this._length});Yr(Pr.prototype,"includes",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Br("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=Oa(e),n=Na(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return!0;return!1});Yr(Pr.prototype,"indexOf",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Br("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(i=Oa(e),n=Na(e),t=this._buffer,s=a;s<this._length;s++)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});Yr(Pr.prototype,"join",function(e){var a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=",";else if(Jw(e))o=e;else throw new TypeError(Br("invalid argument. First argument must be a string. Value: `%s`.",e));for(a=[],t=this._buffer,i=0;i<this._length;i++)a.push(we(t,i).toString());return a.join(o)});Yr(Pr.prototype,"keys",function(){var e,a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return e=this,t=this._length,i=-1,a={},Yr(a,"next",n),Yr(a,"return",s),Ma&&Yr(a,Ma,u),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(v){return o=!0,arguments.length?{value:v,done:!0}:{done:!0}}function u(){return e.keys()}});Yr(Pr.prototype,"lastIndexOf",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!pa(e))throw new TypeError(Br("invalid argument. First argument must be a complex number. Value: `%s`.",e));if(arguments.length>1){if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a>=this._length?a=this._length-1:a<0&&(a+=this._length)}else a=this._length-1;for(i=Oa(e),n=Na(e),t=this._buffer,s=a;s>=0;s--)if(o=2*s,i===t[o]&&n===t[o+1])return s;return-1});Yr(Pr.prototype,"map",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(o=this._buffer,i=new this.constructor(this._length),t=i._buffer,n=0;n<this._length;n++)if(s=e.call(a,we(o,n),n,this),pa(s))t[2*n]=Oa(s),t[2*n+1]=Na(s);else if(Sv(s)&&s.length===2)t[2*n]=s[0],t[2*n+1]=s[1];else throw new TypeError(Br("invalid argument. Callback must return either a two-element array containing real and imaginary components or a complex number. Value: `%s`.",s));return i});Yr(Pr.prototype,"reduce",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=0;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=we(t,0),s=1}for(;s<i;s++)n=we(t,s),o=e(o,n,s,this);return o});Yr(Pr.prototype,"reduceRight",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,i=this._length,arguments.length>1)o=a,s=i-1;else{if(i===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");o=we(t,i-1),s=i-2}for(;s>=0;s--)n=we(t,s),o=e(o,n,s,this);return o});Yr(Pr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,e=this._buffer,o=plr(t/2),i=0;i<o;i++)n=t-i-1,a=e[2*i],e[2*i]=e[2*n],e[2*n]=a,a=e[2*i+1],e[2*i+1]=e[2*n+1],e[2*n+1]=a;return this});Yr(Pr.prototype,"set",function(e){var a,t,o,i,n,s,u,v,f;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!uo(t))throw new TypeError(Br("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(pa(e)){if(t>=this._length)throw new RangeError(Br("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));t*=2,o[t]=Oa(e),o[t+1]=Na(e);return}if(ae(e)){if(s=e._length,t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e._buffer,f=o.byteOffset+t*ia,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new da(a.length),v=0;v<a.length;v++)i[v]=a[v];a=i}for(t*=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(Ev(e)){for(s=e.length,v=0;v<s;v++)if(!pa(e[v])){n=!0;break}if(n){if(!hn(s))throw new RangeError(Br("invalid argument. Array-like object arguments must have a length which is a multiple of two. Length: `%u`.",s));if(t+s/2>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(a=e,f=o.byteOffset+t*ia,a.buffer===o.buffer&&a.byteOffset<f&&a.byteOffset+a.byteLength>f){for(i=new da(s),v=0;v<s;v++)i[v]=a[v];a=i}for(t*=2,s/=2,f=0,v=0;v<s;v++)o[t]=a[f],o[t+1]=a[f+1],t+=2,f+=2;return}if(t+s>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(t*=2,v=0;v<s;v++)u=e[v],o[t]=Oa(u),o[t+1]=Na(u),t+=2;return}throw new TypeError(Br("invalid argument. First argument must be either a complex number, an array-like object, or a complex number array. Value: `%s`.",e))});Yr(Pr.prototype,"slice",function(e,a){var t,o,i,n,s,u,v;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(s=this._buffer,u=this._length,arguments.length===0)e=0,a=u;else{if(!We(e))throw new TypeError(Br("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=u,e<0&&(e=0)),arguments.length===1)a=u;else{if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=u,a<0&&(a=0)):a>u&&(a=u)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,v=0;v<t;v++)n=2*(v+e),o[2*v]=s[n],o[2*v+1]=s[n+1];return i});Yr(Pr.prototype,"some",function(e,a){var t,o;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(e.call(a,we(t,o),o,this))return!0;return!1});Yr(Pr.prototype,"sort",function(e){var a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(we(t,i));for(a.sort(e),i=0;i<o;i++)n=2*i,t[n]=Oa(a[i]),t[n+1]=Na(a[i]);return this});Yr(Pr.prototype,"subarray",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(o=this._buffer,i=this._length,arguments.length===0)e=0,a=i;else{if(!We(e))throw new TypeError(Br("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i,e<0&&(e=0)),arguments.length===1)a=i;else{if(!We(a))throw new TypeError(Br("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=i,a<0&&(a=0)):a>i&&(a=i)}}return e>=i?(i=0,t=o.byteLength):e>=a?(i=0,t=o.byteOffset+e*ia):(i=a-e,t=o.byteOffset+e*ia),new this.constructor(o.buffer,t,i<0?0:i)});Yr(Pr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(arguments.length===0)o=[];else if(Jw(e)||flr(e))o=e;else throw new TypeError(Br("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(Av(a))t=a;else throw new TypeError(Br("invalid argument. Options argument must be an object. Value: `%s`.",a));for(n=this._buffer,i=[],s=0;s<this._length;s++)i.push(we(n,s).toLocaleString(o,t));return i.join(",")});Yr(Pr.prototype,"toReversed",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(t=this._length,a=new this.constructor(t),o=this._buffer,e=a._buffer,i=0;i<t;i++)n=t-i-1,e[2*i]=o[2*n],e[2*i+1]=o[2*n+1];return a});Yr(Pr.prototype,"toSorted",function(e){var a,t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!Ae(e))throw new TypeError(Br("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=this._length,a=[],i=0;i<o;i++)a.push(we(t,i));return a.sort(e),new Pr(a)});Yr(Pr.prototype,"toString",function(){var e,a,t;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");for(e=[],a=this._buffer,t=0;t<this._length;t++)e.push(we(a,t).toString());return e.join(",")});Yr(Pr.prototype,"values",function(){var e,a,t,o,i,n;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");return a=this,i=this._buffer,t=this._length,n=-1,e={},Yr(e,"next",s),Yr(e,"return",u),Ma&&Yr(e,Ma,v),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:we(i,n),done:!1}}function u(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return a.values()}});Yr(Pr.prototype,"with",function(e,a){var t,o,i;if(!ae(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!We(e))throw new TypeError(Br("invalid argument. First argument must be an integer. Value: `%s`.",e));if(i=this._length,e<0&&(e+=i),e<0||e>=i)throw new RangeError(Br("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!pa(a))throw new TypeError(Br("invalid argument. Second argument must be a complex number. Value: `%s`.",a));return o=new this.constructor(this._buffer),t=o._buffer,t[2*e]=Oa(a),t[2*e+1]=Na(a),o});Qw.exports=Pr});var vo=c((hae,e3)=>{"use strict";var qlr=r3();e3.exports=qlr});var t3=c((gae,a3)=>{"use strict";var wlr=Vt();function Slr(r){var e,a;for(e=[];a=r.next(),!a.done;)e.push(wlr(a.value));return e}a3.exports=Slr});var o3=c((bae,i3)=>{"use strict";var Elr=Vt();function Alr(r,e,a){var t,o,i;for(t=[],i=-1;o=r.next(),!o.done;)i+=1,t.push(Elr(e.call(a,o.value,i)));return t}i3.exports=Alr});var s3=c((xae,n3)=>{"use strict";var _lr=Vt();function Tlr(r,e){var a,t;for(a=e.length,t=0;t<a;t++)r[t]=_lr(e[t]);return r}n3.exports=Tlr});var p3=c((qae,d3)=>{"use strict";var fo=ge().isPrimitive,_v=ke(),u3=Li(),Tv=Ui(),_e=Pe(),lo=pe().isPrimitive,Da=fe().isPrimitive,v3=Pa().isPrimitive,jlr=vn().primitives,Ilr=eo(),Ga=Fe(),$r=Ir(),bn=bt(),nt=va(),ce=Vt(),Olr=Et(),Nlr=ea(),Dlr=ot(),Wr=pr(),f3=t3(),klr=o3(),Blr=s3(),Ht=nt.BYTES_PER_ELEMENT,l3=Ilr();function te(r){return typeof r=="object"&&r!==null&&r.constructor.name==="BooleanArray"&&r.BYTES_PER_ELEMENT===Ht}function c3(r){return r===Mr}function Mr(){var r,e,a,t,o;if(e=arguments.length,!(this instanceof Mr))return e===0?new Mr:e===1?new Mr(arguments[0]):e===2?new Mr(arguments[0],arguments[1]):new Mr(arguments[0],arguments[1],arguments[2]);if(e===0)a=new nt(0);else if(e===1)if(o=arguments[0],fo(o))a=new nt(o);else if(_v(o))a=Blr(new nt(o.length),o);else if(u3(o))a=new nt(o);else if(Tv(o)){if(l3===!1)throw new TypeError(Wr("invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.",o));if(!_e(o[Ga]))throw new TypeError(Wr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));if(a=o[Ga](),!_e(a.next))throw new TypeError(Wr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));a=new nt(f3(a))}else throw new TypeError(Wr("invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.",o));else{if(a=arguments[0],!u3(a))throw new TypeError(Wr("invalid argument. First argument must be an ArrayBuffer. Value: `%s`.",a));if(r=arguments[1],!fo(r))throw new TypeError(Wr("invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.",r));if(e===2)a=new nt(a,r);else{if(t=arguments[2],!fo(t))throw new TypeError(Wr("invalid argument. Length must be a nonnegative integer. Value: `%s`.",t));if(t*Ht>a.byteLength-r)throw new RangeError(Wr("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",t*Ht));a=new nt(a,r,t)}}return $r(this,"_buffer",a),$r(this,"_length",a.length),this}$r(Mr,"BYTES_PER_ELEMENT",Ht);$r(Mr,"name","BooleanArray");$r(Mr,"from",function(e){var a,t,o,i,n,s,u,v,f;if(!_e(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!c3(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(t=arguments.length,t>1){if(o=arguments[1],!_e(o))throw new TypeError(Wr("invalid argument. Second argument must be a function. Value: `%s`.",o));t>2&&(a=arguments[2])}if(_v(e)){if(o){for(v=e.length,e.get&&e.set?u=Dlr("default"):u=Olr("default"),i=new this(v),n=i._buffer,f=0;f<v;f++)n[f]=ce(o.call(a,u(e,f),f));return i}return new this(e)}if(Tv(e)&&l3&&_e(e[Ga])){if(n=e[Ga](),!_e(n.next))throw new TypeError(Wr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e));for(o?s=klr(n,o,a):s=f3(n),v=s.length,i=new this(v),n=i._buffer,f=0;f<v;f++)n[f]=s[f];return i}throw new TypeError(Wr("invalid argument. First argument must be an array-like object or an iterable. Value: `%s`.",e))});$r(Mr,"of",function(){var e,a;if(!_e(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!c3(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=[],a=0;a<arguments.length;a++)e.push(arguments[a]);return new this(e)});$r(Mr.prototype,"at",function(e){var a,t;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Da(e))throw new TypeError(Wr("invalid argument. Must provide an integer. Value: `%s`.",e));if(t=this._length,a=this._buffer,e<0&&(e+=t),!(e<0||e>=t))return ce(a[e])});bn(Mr.prototype,"buffer",function(){return this._buffer.buffer});bn(Mr.prototype,"byteLength",function(){return this._buffer.byteLength});bn(Mr.prototype,"byteOffset",function(){return this._buffer.byteOffset});$r(Mr.prototype,"BYTES_PER_ELEMENT",Mr.BYTES_PER_ELEMENT);$r(Mr.prototype,"copyWithin",function(e,a){if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return arguments.length===2?this._buffer.copyWithin(e,a):this._buffer.copyWithin(e,a,arguments[2]),this});$r(Mr.prototype,"entries",function(){var e,a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return e=this,o=this._buffer,t=this._length,n=-1,a={},$r(a,"next",s),$r(a,"return",u),Ga&&$r(a,Ga,v),a;function s(){return n+=1,i||n>=t?{done:!0}:{value:[n,ce(o[n])],done:!1}}function u(f){return i=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return e.entries()}});$r(Mr.prototype,"every",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(!e.call(a,ce(t[o]),o,this))return!1;return!0});$r(Mr.prototype,"fill",function(e,a,t){var o,i,n,s;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(o=this._buffer,i=this._length,arguments.length>1){if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));if(a<0&&(a+=i,a<0&&(a=0)),arguments.length>2){if(!Da(t))throw new TypeError(Wr("invalid argument. Third argument must be an integer. Value: `%s`.",t));t<0&&(t+=i,t<0&&(t=0)),t>i&&(t=i)}else t=i}else a=0,t=i;for(e?n=1:n=0,s=a;s<t;s++)o[s]=n;return this});$r(Mr.prototype,"filter",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=[],i=0;i<this._length;i++)n=ce(t[i]),e.call(a,n,i,this)&&o.push(n);return new this.constructor(o)});$r(Mr.prototype,"find",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=0;i<this._length;i++)if(o=ce(t[i]),e.call(a,o,i,this))return o});$r(Mr.prototype,"findIndex",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=0;i<this._length;i++)if(o=ce(t[i]),e.call(a,o,i,this))return i;return-1});$r(Mr.prototype,"findLast",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=this._length-1;i>=0;i--)if(o=ce(t[i]),e.call(a,o,i,this))return o});$r(Mr.prototype,"findLastIndex",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,i=this._length-1;i>=0;i--)if(o=ce(t[i]),e.call(a,o,i,this))return i;return-1});$r(Mr.prototype,"forEach",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)e.call(a,ce(t[o]),o,this)});$r(Mr.prototype,"get",function(e){if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!fo(e))throw new TypeError(Wr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",e));if(!(e>=this._length))return ce(this._buffer[e])});$r(Mr.prototype,"includes",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(t=this._buffer,o=a;o<this._length;o++)if(e===ce(t[o]))return!0;return!1});$r(Mr.prototype,"indexOf",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0&&(a+=this._length,a<0&&(a=0))}else a=0;for(t=this._buffer,o=a;o<this._length;o++)if(e===ce(t[o]))return o;return-1});$r(Mr.prototype,"join",function(e){var a,t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length>0){if(!v3(e))throw new TypeError(Wr("invalid argument. First argument must be a string. Value: `%s`.",e))}else e=",";for(a=this._buffer,t=[],o=0;o<this._length;o++)a[o]?t.push("true"):t.push("false");return t.join(e)});$r(Mr.prototype,"keys",function(){var e,a,t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return e=this,t=this._length,i=-1,a={},$r(a,"next",n),$r(a,"return",s),Ga&&$r(a,Ga,u),a;function n(){return i+=1,o||i>=t?{done:!0}:{value:i,done:!1}}function s(v){return o=!0,arguments.length?{value:v,done:!0}:{done:!0}}function u(){return e.keys()}});$r(Mr.prototype,"lastIndexOf",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!lo(e))throw new TypeError(Wr("invalid argument. First argument must be a boolean. Value: `%s`.",e));if(arguments.length>1){if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a>=this._length?a=this._length-1:a<0&&(a+=this._length)}else a=this._length-1;for(t=this._buffer,o=a;o>=0;o--)if(e===ce(t[o]))return o;return-1});bn(Mr.prototype,"length",function(){return this._length});$r(Mr.prototype,"map",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",e);for(i=this._buffer,o=new this.constructor(this._length),t=o._buffer,n=0;n<this._length;n++)t[n]=ce(e.call(a,ce(i[n]),n,this));return o});$r(Mr.prototype,"reduce",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,o=this._length,arguments.length>1)i=a,n=0;else{if(o===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=ce(t[0]),n=1}for(;n<o;n++)i=e(i,ce(t[n]),n,this);return i});$r(Mr.prototype,"reduceRight",function(e,a){var t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));if(t=this._buffer,o=this._length,arguments.length>1)i=a,n=o-1;else{if(o===0)throw new Error("invalid operation. If not provided an initial value, an array must contain at least one element.");i=ce(t[o-1]),n=o-2}for(;n>=0;n--)i=e(i,ce(t[n]),n,this);return i});$r(Mr.prototype,"reverse",function(){var e,a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=this._buffer,t=this._length,o=Nlr(t/2),i=0;i<o;i++)n=t-i-1,a=e[i],e[i]=e[n],e[n]=a;return this});$r(Mr.prototype,"set",function(e){var a,t,o,i,n,s,u;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,arguments.length>1){if(t=arguments[1],!fo(t))throw new TypeError(Wr("invalid argument. Index argument must be a nonnegative integer. Value: `%s`.",t))}else t=0;if(_v(e)){if(n=e.length,t+n>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(te(e)?a=e._buffer:a=e,u=o.byteOffset+t*Ht,a.buffer===o.buffer&&a.byteOffset<u&&a.byteOffset+a.byteLength>u){for(i=new nt(a.length),s=0;s<a.length;s++)i[s]=a[s];a=i}for(s=0;s<n;t++,s++)o[t]=a[s]?1:0;return}if(t>=this._length)throw new RangeError(Wr("invalid argument. Index argument is out-of-bounds. Value: `%u`.",t));o[t]=e?1:0});$r(Mr.prototype,"slice",function(e,a){var t,o,i,n,s,u;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(n=this._buffer,s=this._length,arguments.length===0)e=0,a=s;else{if(!Da(e))throw new TypeError(Wr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=s,e<0&&(e=0)),arguments.length===1)a=s;else{if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=s,a<0&&(a=0)):a>s&&(a=s)}}for(e<a?t=a-e:t=0,i=new this.constructor(t),o=i._buffer,u=0;u<t;u++)o[u]=n[u+e];return i});$r(Mr.prototype,"some",function(e,a){var t,o;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));for(t=this._buffer,o=0;o<this._length;o++)if(e.call(a,ce(t[o]),o,this))return!0;return!1});$r(Mr.prototype,"sort",function(e){var a;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(a=this._buffer,arguments.length===0)return a.sort(),this;if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));return a.sort(t),this;function t(o,i){return e(ce(o),ce(i))}});$r(Mr.prototype,"subarray",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(o=this._buffer,i=this._length,arguments.length===0)e=0,a=i;else{if(!Da(e))throw new TypeError(Wr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(e<0&&(e+=i,e<0&&(e=0)),arguments.length===1)a=i;else{if(!Da(a))throw new TypeError(Wr("invalid argument. Second argument must be an integer. Value: `%s`.",a));a<0?(a+=i,a<0&&(a=0)):a>i&&(a=i)}}return e>=i?(i=0,t=o.byteLength):e>=a?(i=0,t=o.byteOffset+e*Ht):(i=a-e,t=o.byteOffset+e*Ht),new this.constructor(o.buffer,t,i<0?0:i)});$r(Mr.prototype,"toLocaleString",function(e,a){var t,o,i,n,s;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(arguments.length===0)o=[];else if(v3(e)||jlr(e))o=e;else throw new TypeError(Wr("invalid argument. First argument must be a string or an array of strings. Value: `%s`.",e));if(arguments.length<2)t={};else if(Tv(a))t=a;else throw new TypeError(Wr("invalid argument. Options argument must be an object. Value: `%s`.",a));for(n=this._buffer,i=[],s=0;s<this._length;s++)i.push(ce(n[s]).toLocaleString(o,t));return i.join(",")});$r(Mr.prototype,"toReversed",function(){var e,a,t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(t=this._length,a=new this.constructor(t),o=this._buffer,e=a._buffer,i=0;i<t;i++)e[i]=o[t-i-1];return a});$r(Mr.prototype,"toSorted",function(e){var a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(o=this._length,t=new this.constructor(o),i=this._buffer,a=t._buffer,n=0;n<o;n++)a[n]=i[n];if(arguments.length===0)return a.sort(),t;if(!_e(e))throw new TypeError(Wr("invalid argument. First argument must be a function. Value: `%s`.",e));return a.sort(s),t;function s(u,v){return e(ce(u),ce(v))}});$r(Mr.prototype,"toString",function(){var e,a,t;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");for(e=[],a=this._buffer,t=0;t<this._length;t++)a[t]?e.push("true"):e.push("false");return e.join(",")});$r(Mr.prototype,"values",function(){var e,a,t,o,i,n;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");return a=this,i=this._buffer,t=this._length,n=-1,e={},$r(e,"next",s),$r(e,"return",u),Ga&&$r(e,Ga,v),e;function s(){return n+=1,o||n>=t?{done:!0}:{value:ce(i[n]),done:!1}}function u(f){return o=!0,arguments.length?{value:f,done:!0}:{done:!0}}function v(){return a.values()}});$r(Mr.prototype,"with",function(e,a){var t,o,i;if(!te(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!Da(e))throw new TypeError(Wr("invalid argument. First argument must be an integer. Value: `%s`.",e));if(i=this._length,e<0&&(e+=i),e<0||e>=i)throw new RangeError(Wr("invalid argument. Index argument is out-of-bounds. Value: `%s`.",e));if(!lo(a))throw new TypeError(Wr("invalid argument. Second argument must be a boolean. Value: `%s`.",a));return o=new this.constructor(this._buffer),t=o._buffer,a?t[e]=1:t[e]=0,o});d3.exports=Mr});var co=c((wae,y3)=>{"use strict";var Flr=p3();y3.exports=Flr});var h3=c((Sae,m3)=>{"use strict";var Rlr=qt(),zlr=At(),Vlr=Ji(),Ulr=Xi(),Clr=fi(),Plr=Ki(),Llr=va(),Mlr=Hi(),Glr=Zi(),Ylr=so(),$lr=vo(),Wlr=co(),Jlr=[Rlr,zlr,Ulr,Vlr,Plr,Clr,Glr,Llr,Mlr,Ylr,$lr,Wlr];m3.exports=Jlr});var b3=c((Eae,g3)=>{"use strict";var Xlr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];g3.exports=Xlr});var w3=c((Aae,q3)=>{"use strict";var Klr=Ci(),Hlr=wa(),Zlr=gt(),Qlr=wb(),rcr=h3(),x3=b3(),ecr=x3.length;function acr(r){var e;if(Hlr(r))return"generic";if(Klr(r))return null;for(e=0;e<ecr;e++)if(r instanceof rcr[e])return x3[e];return Qlr[Zlr(r)]||null}q3.exports=acr});var po=c((_ae,S3)=>{"use strict";var tcr=w3();S3.exports=tcr});var A3=c((Tae,E3)=>{"use strict";var icr=it(),ocr=ot(),ncr=Et(),scr=po();function ucr(r,e){var a,t,o,i;for(o=scr(r),icr(r)?t=ocr(o):t=ncr(o),a=r.length,i=0;i<a;i++)if(t(r,i)===e)return!0;return!1}E3.exports=ucr});var T3=c((jae,_3)=>{"use strict";var vcr=ke(),fcr=it(),lcr=ot(),ccr=po(),dcr=pr();function pcr(r){var e,a,t;if(!vcr(r))throw new TypeError(dcr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return t=ccr(r),fcr(r)&&(e=lcr(t)),a=r.length,e===void 0?o:i;function o(n){var s;for(s=0;s<a;s++)if(r[s]===n)return!0;return!1}function i(n){var s;for(s=0;s<a;s++)if(e(r,s)===n)return!0;return!1}}_3.exports=pcr});var Ue=c((Iae,I3)=>{"use strict";var ycr=Ir(),j3=A3(),mcr=T3();ycr(j3,"factory",mcr);I3.exports=j3});var N3=c((Oae,O3)=>{"use strict";var hcr=Ue().factory,gcr=Be(),bcr=hcr(gcr());O3.exports=bcr});var di=c((Nae,D3)=>{"use strict";var xcr=N3();D3.exports=xcr});var B3=c((Dae,k3)=>{"use strict";var qcr=at();function wcr(r,e,a,t){var o=qcr(e,a,t);return o[0]>=0&&o[1]<r}k3.exports=wcr});var jv=c((kae,F3)=>{"use strict";var Scr=B3();F3.exports=Scr});var Iv=c((Bae,R3)=>{"use strict";function Ecr(){return{dtypes:{default:"float64",numeric:"float64",real:"float64",floating_point:"float64",real_floating_point:"float64",complex_floating_point:"complex128",integer:"int32",signed_integer:"int32",unsigned_integer:"uint32",boolean:"bool"},order:"row-major",casting:"safe",index_mode:"throw"}}R3.exports=Ecr});var V3=c((Fae,z3)=>{"use strict";var Acr=Iv(),oa=Acr(),_cr={"dtypes.default":oa.dtypes.default,"dtypes.numeric":oa.dtypes.numeric,"dtypes.real":oa.dtypes.real,"dtypes.floating_point":oa.dtypes.floating_point,"dtypes.real_floating_point":oa.dtypes.real_floating_point,"dtypes.complex_floating_point":oa.dtypes.complex_floating_point,"dtypes.integer":oa.dtypes.integer,"dtypes.signed_integer":oa.dtypes.signed_integer,"dtypes.unsigned_integer":oa.dtypes.unsigned_integer,"dtypes.boolean":oa.dtypes.boolean,order:oa.order,casting:oa.casting,index_mode:oa.index_mode};function Tcr(r){var e=_cr[r];return e===void 0?null:e}z3.exports=Tcr});var ka=c((Rae,C3)=>{"use strict";var jcr=Ir(),U3=Iv(),Icr=V3();jcr(U3,"get",Icr);C3.exports=U3});var L3=c((zae,P3)=>{"use strict";var Ocr=pr();function Ncr(r){var e=typeof r;return r===null||e!=="object"&&e!=="function"?new TypeError(Ocr("invalid argument. A provided constructor must be either an object (except null) or a function. Value: `%s`.",r)):null}P3.exports=Ncr});var G3=c((Vae,M3)=>{"use strict";M3.exports=Object.create});var W3=c((Uae,$3)=>{"use strict";function Y3(){}function Dcr(r){return Y3.prototype=r,new Y3}$3.exports=Dcr});var K3=c((Cae,X3)=>{"use strict";var J3=G3(),kcr=W3(),Ov;typeof J3=="function"?Ov=J3:Ov=kcr;X3.exports=Ov});var Q3=c((Pae,Z3)=>{"use strict";var Bcr=Rt(),Fcr=pr(),H3=L3(),Rcr=K3();function zcr(r,e){var a=H3(r);if(a||(a=H3(e),a))throw a;if(typeof e.prototype>"u")throw new TypeError(Fcr("invalid argument. Second argument must have a prototype from which another object can inherit. Value: `%s`.",e.prototype));return r.prototype=Rcr(e.prototype),Bcr(r.prototype,"constructor",{configurable:!0,enumerable:!1,writable:!0,value:r}),r}Z3.exports=zcr});var Nv=c((Lae,r4)=>{"use strict";var Vcr=Q3();r4.exports=Vcr});var a4=c((Mae,e4)=>{"use strict";function Ucr(r,e){return r<0?0:r>e?e:r}e4.exports=Ucr});var xn=c((Gae,t4)=>{"use strict";var Ccr=a4();t4.exports=Ccr});var o4=c((Yae,i4)=>{"use strict";function Pcr(r,e){var a=e+1;return r<0?(r+=a,r<0&&(r%=a,r!==0&&(r+=a)),r):(r>e&&(r-=a,r>e&&(r%=a)),r)}i4.exports=Pcr});var qn=c(($ae,n4)=>{"use strict";var Lcr=o4();n4.exports=Lcr});var u4=c((Wae,s4)=>{"use strict";function Mcr(r,e){return r<0?(r+=e+1,r<0?-1:r):r>e?-1:r}s4.exports=Mcr});var ya=c((Jae,v4)=>{"use strict";var Gcr=u4();v4.exports=Gcr});var l4=c((Xae,f4)=>{"use strict";var Ycr=Ue().factory,$cr=Wt(),Wcr=Ycr($cr());f4.exports=Wcr});var pi=c((Kae,c4)=>{"use strict";var Jcr=l4();c4.exports=Jcr});var p4=c((Hae,d4)=>{"use strict";var Xcr=xn(),Kcr=qn(),Hcr=ya(),Zcr=pi(),Dv=pr(),Qcr={wrap:Kcr,clamp:Xcr,normalize:edr,throw:rdr};function rdr(r,e){if(r<0||r>e)throw new RangeError(Dv("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return r}function edr(r,e){var a=Hcr(r,e);if(a<0||a>e)throw new RangeError(Dv("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return a}function adr(r){if(!Zcr(r))throw new TypeError(Dv("invalid argument. First argument must be a recognized index mode. Value: `%s`.",r));return Qcr[r]}d4.exports=adr});var m4=c((Zae,y4)=>{"use strict";var tdr=xn(),idr=qn(),odr=ya(),ndr=pr();function sdr(r,e,a){var t;if(a==="clamp")return tdr(r,e);if(a==="wrap")return idr(r,e);if(t=r,a==="normalize"&&(t=odr(t,e)),t<0||t>e)throw new RangeError(ndr("invalid argument. Index must resolve to a value on the interval: [0, %d]. Value: `%d`.",e,r));return t}y4.exports=sdr});var st=c((Qae,g4)=>{"use strict";var udr=Ir(),vdr=p4(),h4=m4();udr(h4,"factory",vdr);g4.exports=h4});var q4=c((rte,x4)=>{"use strict";var fdr=fe().isPrimitive,ldr=st(),cdr=aa(),ddr=pr(),b4=cdr.prototype.iget;function pdr(r){if(this._ndims>0){if(!fdr(r))throw new TypeError(ddr("invalid argument. Index must be an integer. Value: `%s`.",r));return r=ldr(r,this._length-1,this._mode),b4.call(this,r)}return b4.call(this)}x4.exports=pdr});var E4=c((ete,S4)=>{"use strict";var ydr=fe().isPrimitive,mdr=st(),hdr=aa(),gdr=pr(),w4=hdr.prototype.iset;function bdr(r,e){if(this._flags.READONLY)throw new Error("invalid invocation. Cannot write to a read-only array.");if(this._ndims>0){if(!ydr(r))throw new TypeError(gdr("invalid argument. Index must be an integer. Value: `%s`.",r));r=mdr(r,this._length-1,this._mode),w4.call(this,r,e)}else w4.call(this,r);return this}S4.exports=bdr});var T4=c((ate,_4)=>{"use strict";var xdr=fe().isPrimitive,qdr=st(),A4=pr();function wdr(){var r,e,a,t;if(arguments.length!==this._ndims)throw new RangeError(A4("invalid arguments. Number of indices must match the number of dimensions. ndims: `%u`. nargs: `%u`.",this._ndims,arguments.length));for(r=this._offset,a=this._submode.length,t=0;t<arguments.length;t++){if(!xdr(arguments[t]))throw new TypeError(A4("invalid argument. Indices must be integer valued. Argument: `%u`. Value: `%s`.",t,arguments[t]));e=qdr(arguments[t],this._shape[t]-1,this._submode[t%a]),r+=this._strides[t]*e}return this._accessors?this._buffer.get(r):this._buffer[r]}_4.exports=wdr});var O4=c((tte,I4)=>{"use strict";var Sdr=fe().isPrimitive,Edr=st(),j4=pr();function Adr(){var r,e,a,t;if(this._flags.READONLY)throw new Error("invalid invocation. Cannot write to a read-only array.");if(arguments.length!==this._ndims+1)throw new RangeError(j4("invalid arguments. Number of indices must match the number of dimensions. ndims: `%u`. nargs: `%u`.",this._ndims,arguments.length));for(r=this._offset,a=this._submode.length,t=0;t<arguments.length-1;t++){if(!Sdr(arguments[t]))throw new TypeError(j4("invalid argument. Indices must be integer valued. Argument: `%i`. Value: `%s`.",t,arguments[t]));e=Edr(arguments[t],this._shape[t]-1,this._submode[t%a]),r+=this._strides[t]*e}return this._accessors?this._buffer.set(arguments[t],r):this._buffer[r]=arguments[t],this}I4.exports=Adr});var D4=c((ite,N4)=>{"use strict";function _dr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r[t]);return a}N4.exports=_dr});var F4=c((ote,B4)=>{"use strict";var Tdr=ne(),kv=Xr(),jdr=Ve(),k4=pi(),Idr=pe().isPrimitive,yi=pr();function Odr(r,e){var a;if(!Tdr(e))return new TypeError(yi("invalid argument. Options argument must be an object. Value: `%s`.",e));if(kv(e,"mode")&&(r.mode=e.mode,!k4(r.mode)))return new TypeError(yi("invalid option. `%s` option must be a recognized mode. Option: `%s`.","mode",r.mode));if(kv(e,"submode")){if(r.submode=e.submode,!jdr(r.submode))return new TypeError(yi("invalid option. `%s` option must be an array containing recognized modes. Option: `%s`.","submode",r.submode));if(r.submode.length===0)return new TypeError(yi("invalid option. `%s` option must be an array containing recognized modes. Option: `%s`.","submode",r.submode.join(",")));for(a=0;a<r.submode.length;a++)if(!k4(r.submode[a]))return new TypeError(yi("invalid option. Each submode must be a recognized mode. Option: `%s`.",r.submode[a]));r.submode=r.submode.slice()}return kv(e,"readonly")&&(r.readonly=e.readonly,!Idr(r.readonly))?new TypeError(yi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",r.readonly)):null}B4.exports=Odr});var L4=c((nte,P4)=>{"use strict";var yo=Ir(),R4=ke(),Ndr=Jt().primitives,Ddr=ge().isPrimitive,kdr=ev().primitives,z4=Pe(),Bdr=Ta(),Fdr=di(),Rdr=jv(),zdr=Jr(),C4=aa(),Vdr=ka(),Udr=Nv(),Ya=pr(),Cdr=q4(),Pdr=E4(),Ldr=T4(),Mdr=O4(),V4=D4(),Gdr=F4(),U4=32767,Ydr=Vdr.get("index_mode"),$dr=!1;function $a(r,e,a,t,o,i,n){var s,u,v,f,l;if(!(this instanceof $a))return arguments.length<7?new $a(r,e,a,t,o,i):new $a(r,e,a,t,o,i,n);if(!Fdr(r))throw new TypeError(Ya("invalid argument. First argument must be a supported ndarray data type. Value: `%s`.",r));if(R4(e)){if(e.get&&e.set&&(!z4(e.get)||!z4(e.set)))throw new TypeError(Ya("invalid argument. Second argument `get` and `set` properties must be functions. Value: `%s`.",e))}else throw new TypeError(Ya("invalid argument. Second argument must be an array-like object, typed-array-like, or a Buffer. Value: `%s`.",e));if(!Ndr(a)&&(!R4(a)||a.length>0))throw new TypeError(Ya("invalid argument. Third argument must be an array-like object containing nonnegative integers. Value: `%s`.",a));if(s=a.length,s>U4)throw new RangeError(Ya("invalid argument. Number of dimensions must not exceed %u due to stack limits. Value: `%u`.",U4,s));if(!kdr(t))throw new TypeError(Ya("invalid argument. Fourth argument must be an array-like object containing integers. Value: `%s`.",t));if(s>0){if(t.length!==s)throw new RangeError(Ya("invalid argument. Fourth argument length must match the number of dimensions. Expected number of dimensions: `%u`. Strides length: `%u`.",s,t.length))}else{if(t.length!==1)throw new RangeError("invalid argument. Fourth argument length must be equal to 1 when creating a zero-dimensional ndarray.");if(t[0]!==0)throw new RangeError(Ya("invalid argument. Fourth argument must contain a single element equal to 0. Value: `%d`.",t[0]))}if(!Ddr(o))throw new TypeError(Ya("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!Bdr(i))throw new TypeError(Ya("invalid argument. Sixth argument must be a supported order. Value: `%s`.",i));if(s>0&&!Rdr(e.length,a,t,o)&&zdr(a)>0)throw new Error("invalid arguments. Input buffer is incompatible with the specified meta data. Ensure that the offset is valid with regard to the strides array and that the buffer has enough elements to satisfy the desired array shape.");if(u={},u.mode=Ydr,u.readonly=$dr,arguments.length>6&&(v=Gdr(u,n),v))throw v;return this._mode=u.mode,u.submode===void 0&&(u.submode=[this._mode]),this._submode=u.submode,f=V4(a,s),l=V4(t,s||1),C4.call(this,r,e,f,l,o,i),this._flags.READONLY=u.readonly,this}Udr($a,C4);yo($a,"name","ndarray");yo($a.prototype,"get",Ldr);yo($a.prototype,"iget",Cdr);yo($a.prototype,"set",Mdr);yo($a.prototype,"iset",Pdr);P4.exports=$a});var ma=c((ste,M4)=>{"use strict";var Wdr=L4();M4.exports=Wdr});var G4=c((ute,Jdr)=>{Jdr.exports=["none","equiv","safe","mostly-safe","same-kind","unsafe"]});var $4=c((vte,Y4)=>{"use strict";var Xdr=G4();function Kdr(){return Xdr.slice()}Y4.exports=Kdr});var J4=c((fte,W4)=>{"use strict";function Hdr(){return{none:0,equiv:1,safe:2,"mostly-safe":3,"same-kind":4,unsafe:5}}W4.exports=Hdr});var Bv=c((lte,K4)=>{"use strict";var Zdr=Ir(),X4=$4(),Qdr=J4();Zdr(X4,"enum",Qdr);K4.exports=X4});var Q4=c((cte,Z4)=>{"use strict";var r0r=Bv(),H4=r0r(),e0r=H4.length;function a0r(r){var e;for(e=0;e<e0r;e++)if(r===H4[e])return!0;return!1}Z4.exports=a0r});var Fv=c((dte,r6)=>{"use strict";var t0r=Q4();r6.exports=t0r});var t6=c((pte,a6)=>{"use strict";var i0r=Aa(),o0r=wa(),n0r=ne(),s0r=Ko(),u0r=pe().isPrimitive,e6=Xr(),Rv=pr();function v0r(r,e){var a=!0,t,o,i,n,s,u,v;if(!s0r(r))throw new TypeError(Rv("invalid argument. First argument must be an object (except null). Value: `%s`.",r));if(arguments.length>1){if(!n0r(e))throw new TypeError(Rv("invalid argument. Options argument must be an object. Value: `%s`.",e));if(e6(e,"duplicates")&&(a=e.duplicates,!u0r(a)))throw new TypeError(Rv("invalid option. `%s` option must be a boolean. Option: `%s`.","duplicates",a))}if(t=i0r(r),o=t.length,s={},a)for(v=0;v<o;v++){if(i=t[v],n=r[i],!e6(s,n)){s[n]=i;continue}u=s[n],o0r(u)?s[n].push(i):s[n]=[u,i]}else for(v=0;v<o;v++)i=t[v],s[r[i]]=i;return s}a6.exports=v0r});var wn=c((yte,i6)=>{"use strict";var f0r=t6();i6.exports=f0r});var n6=c((mte,o6)=>{"use strict";var l0r=wn(),c0r=Be().enum,d0r=l0r(c0r(),{duplicates:!1});function p0r(r){var e=d0r[r];return typeof e=="string"?e:null}o6.exports=p0r});var Sn=c((hte,s6)=>{"use strict";var y0r=n6();s6.exports=y0r});var v6=c((gte,u6)=>{"use strict";var m0r=Be().enum,h0r=m0r();function g0r(r){var e=h0r[r];return typeof e=="number"?e:null}u6.exports=g0r});var mo=c((bte,f6)=>{"use strict";var b0r=v6();f6.exports=b0r});var c6=c((xte,l6)=>{"use strict";var x0r=Sn(),q0r=mo();function w0r(r){var e=typeof r;return e==="string"?q0r(r)===null?null:r:e==="number"?x0r(r):null}l6.exports=w0r});var Ba=c((qte,d6)=>{"use strict";var S0r=c6();d6.exports=S0r});var p6=c((wte,E0r)=>{E0r.exports={float64:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int32:{float64:1,float32:0,int32:1,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},int16:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:0},binary:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:1,generic:0,bool:0},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:1}}});var h6=c((Ste,m6)=>{"use strict";var y6=Aa(),A0r=Xr(),_0r=Ba(),An=p6(),En;function T0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=y6(An),e=r.length,u=0;u<e;u++){for(o=r[u],n=An[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function j0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=y6(An),e=r.length,u=0;u<e;u++){for(o=r[u],n=An[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function I0r(r){return arguments.length===0?T0r():(En===void 0&&(En=j0r()),r=_0r(r),A0r(En,r)?En[r].slice():null)}m6.exports=I0r});var zv=c((Ete,g6)=>{"use strict";var O0r=h6();g6.exports=O0r});var x6=c((Ate,b6)=>{"use strict";var N0r=zv(),D0r=N0r();function k0r(r,e){return r===e?!0:D0r[r][e]>0}b6.exports=k0r});var _n=c((_te,q6)=>{"use strict";var B0r=x6();q6.exports=B0r});var w6=c((Tte,F0r)=>{F0r.exports={float64:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int32:{float64:1,float32:0,int32:1,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},int16:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:0},binary:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:1,generic:0,bool:0},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:1}}});var A6=c((jte,E6)=>{"use strict";var S6=Aa(),R0r=Xr(),z0r=Ba(),jn=w6(),Tn;function V0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=S6(jn),e=r.length,u=0;u<e;u++){for(o=r[u],n=jn[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function U0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=S6(jn),e=r.length,u=0;u<e;u++){for(o=r[u],n=jn[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function C0r(r){return arguments.length===0?V0r():(Tn===void 0&&(Tn=U0r()),r=z0r(r),R0r(Tn,r)?Tn[r].slice():null)}E6.exports=C0r});var Vv=c((Ite,_6)=>{"use strict";var P0r=A6();_6.exports=P0r});var j6=c((Ote,T6)=>{"use strict";var L0r=Vv(),M0r=L0r();function G0r(r,e){return r===e?!0:M0r[r][e]>0}T6.exports=G0r});var In=c((Nte,I6)=>{"use strict";var Y0r=j6();I6.exports=Y0r});var O6=c((Dte,$0r)=>{$0r.exports={float64:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},float32:{float64:1,float32:1,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int32:{float64:1,float32:0,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:0,binary:0,generic:1,bool:0},int16:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},int8:{float64:1,float32:1,int32:1,int16:1,int8:1,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint32:{float64:1,float32:0,int32:0,int16:0,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:0,binary:0,generic:1,bool:0},uint16:{float64:1,float32:1,int32:1,int16:0,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},uint8c:{float64:1,float32:1,int32:1,int16:1,int8:0,uint32:1,uint16:1,uint8:1,uint8c:1,complex128:1,complex64:1,binary:0,generic:1,bool:0},complex128:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:0,bool:0},complex64:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:1,complex64:1,binary:0,generic:0,bool:0},generic:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:0},binary:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:1,generic:0,bool:0},bool:{float64:0,float32:0,int32:0,int16:0,int8:0,uint32:0,uint16:0,uint8:0,uint8c:0,complex128:0,complex64:0,binary:0,generic:1,bool:1}}});var k6=c((kte,D6)=>{"use strict";var N6=Aa(),W0r=Xr(),J0r=Ba(),Nn=O6(),On;function X0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=N6(Nn),e=r.length,u=0;u<e;u++){for(o=r[u],n=Nn[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function K0r(){var r,e,a,t,o,i,n,s,u;for(a={},r=N6(Nn),e=r.length,u=0;u<e;u++){for(o=r[u],n=Nn[o],t=[],s=0;s<e;s++)i=r[s],n[i]===1&&t.push(i);a[o]=t}return a}function H0r(r){return arguments.length===0?X0r():(On===void 0&&(On=K0r()),r=J0r(r),W0r(On,r)?On[r].slice():null)}D6.exports=H0r});var Uv=c((Bte,B6)=>{"use strict";var Z0r=k6();B6.exports=Z0r});var R6=c((Fte,F6)=>{"use strict";var Q0r=Uv(),rpr=Q0r();function epr(r,e){return r===e?!0:rpr[r][e]>0}F6.exports=epr});var Cv=c((Rte,z6)=>{"use strict";var apr=R6();z6.exports=apr});var U6=c((zte,V6)=>{"use strict";var tpr=_n(),ipr=In(),opr=Cv();function npr(r,e,a){return a==="unsafe"||r===e?!0:a==="none"||a==="equiv"?!1:a==="safe"?tpr(r,e):a==="mostly-safe"?ipr(r,e):opr(r,e)}V6.exports=npr});var Pv=c((Vte,C6)=>{"use strict";var spr=U6();C6.exports=spr});var L6=c((Ute,P6)=>{"use strict";var upr=typeof Buffer=="function"?Buffer:null;P6.exports=upr});var G6=c((Cte,M6)=>{"use strict";var vpr=Ci(),Dn=L6();function fpr(){var r,e;if(typeof Dn!="function")return!1;try{typeof Dn.from=="function"?e=Dn.from([1,2,3,4]):e=new Dn([1,2,3,4]),r=vpr(e)&&e[0]===1&&e[1]===2&&e[2]===3&&e[3]===4}catch{r=!1}return r}M6.exports=fpr});var $6=c((Pte,Y6)=>{"use strict";var lpr=G6();Y6.exports=lpr});var X6=c(kn=>{"use strict";kn.byteLength=dpr;kn.toByteArray=ypr;kn.fromByteArray=gpr;var Wa=[],ha=[],cpr=typeof Uint8Array<"u"?Uint8Array:Array,Lv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Zt=0,W6=Lv.length;Zt<W6;++Zt)Wa[Zt]=Lv[Zt],ha[Lv.charCodeAt(Zt)]=Zt;var Zt,W6;ha[45]=62;ha[95]=63;function J6(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=r.indexOf("=");a===-1&&(a=e);var t=a===e?0:4-a%4;return[a,t]}function dpr(r){var e=J6(r),a=e[0],t=e[1];return(a+t)*3/4-t}function ppr(r,e,a){return(e+a)*3/4-a}function ypr(r){var e,a=J6(r),t=a[0],o=a[1],i=new cpr(ppr(r,t,o)),n=0,s=o>0?t-4:t,u;for(u=0;u<s;u+=4)e=ha[r.charCodeAt(u)]<<18|ha[r.charCodeAt(u+1)]<<12|ha[r.charCodeAt(u+2)]<<6|ha[r.charCodeAt(u+3)],i[n++]=e>>16&255,i[n++]=e>>8&255,i[n++]=e&255;return o===2&&(e=ha[r.charCodeAt(u)]<<2|ha[r.charCodeAt(u+1)]>>4,i[n++]=e&255),o===1&&(e=ha[r.charCodeAt(u)]<<10|ha[r.charCodeAt(u+1)]<<4|ha[r.charCodeAt(u+2)]>>2,i[n++]=e>>8&255,i[n++]=e&255),i}function mpr(r){return Wa[r>>18&63]+Wa[r>>12&63]+Wa[r>>6&63]+Wa[r&63]}function hpr(r,e,a){for(var t,o=[],i=e;i<a;i+=3)t=(r[i]<<16&16711680)+(r[i+1]<<8&65280)+(r[i+2]&255),o.push(mpr(t));return o.join("")}function gpr(r){for(var e,a=r.length,t=a%3,o=[],i=16383,n=0,s=a-t;n<s;n+=i)o.push(hpr(r,n,n+i>s?s:n+i));return t===1?(e=r[a-1],o.push(Wa[e>>2]+Wa[e<<4&63]+"==")):t===2&&(e=(r[a-2]<<8)+r[a-1],o.push(Wa[e>>10]+Wa[e>>4&63]+Wa[e<<2&63]+"=")),o.join("")}});var K6=c(Mv=>{Mv.read=function(r,e,a,t,o){var i,n,s=o*8-t-1,u=(1<<s)-1,v=u>>1,f=-7,l=a?o-1:0,d=a?-1:1,y=r[e+l];for(l+=d,i=y&(1<<-f)-1,y>>=-f,f+=s;f>0;i=i*256+r[e+l],l+=d,f-=8);for(n=i&(1<<-f)-1,i>>=-f,f+=t;f>0;n=n*256+r[e+l],l+=d,f-=8);if(i===0)i=1-v;else{if(i===u)return n?NaN:(y?-1:1)*(1/0);n=n+Math.pow(2,t),i=i-v}return(y?-1:1)*n*Math.pow(2,i-t)};Mv.write=function(r,e,a,t,o,i){var n,s,u,v=i*8-o-1,f=(1<<v)-1,l=f>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=t?0:i-1,p=t?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,n=f):(n=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-n))<1&&(n--,u*=2),n+l>=1?e+=d/u:e+=d*Math.pow(2,1-l),e*u>=2&&(n++,u/=2),n+l>=f?(s=0,n=f):n+l>=1?(s=(e*u-1)*Math.pow(2,o),n=n+l):(s=e*Math.pow(2,l-1)*Math.pow(2,o),n=0));o>=8;r[a+y]=s&255,y+=p,s/=256,o-=8);for(n=n<<o|s,v+=o;v>0;r[a+y]=n&255,y+=p,n/=256,v-=8);r[a+y-p]|=m*128}});var vS=c(hi=>{"use strict";var Gv=X6(),mi=K6(),H6=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;hi.Buffer=cr;hi.SlowBuffer=Epr;hi.INSPECT_MAX_BYTES=50;var Bn=2147483647;hi.kMaxLength=Bn;cr.TYPED_ARRAY_SUPPORT=bpr();!cr.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function bpr(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(cr.prototype,"parent",{enumerable:!0,get:function(){if(cr.isBuffer(this))return this.buffer}});Object.defineProperty(cr.prototype,"offset",{enumerable:!0,get:function(){if(cr.isBuffer(this))return this.byteOffset}});function ut(r){if(r>Bn)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,cr.prototype),e}function cr(r,e,a){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Jv(r)}return rS(r,e,a)}cr.poolSize=8192;function rS(r,e,a){if(typeof r=="string")return qpr(r,e);if(ArrayBuffer.isView(r))return wpr(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Ja(r,ArrayBuffer)||r&&Ja(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ja(r,SharedArrayBuffer)||r&&Ja(r.buffer,SharedArrayBuffer)))return $v(r,e,a);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var t=r.valueOf&&r.valueOf();if(t!=null&&t!==r)return cr.from(t,e,a);var o=Spr(r);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return cr.from(r[Symbol.toPrimitive]("string"),e,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}cr.from=function(r,e,a){return rS(r,e,a)};Object.setPrototypeOf(cr.prototype,Uint8Array.prototype);Object.setPrototypeOf(cr,Uint8Array);function eS(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function xpr(r,e,a){return eS(r),r<=0?ut(r):e!==void 0?typeof a=="string"?ut(r).fill(e,a):ut(r).fill(e):ut(r)}cr.alloc=function(r,e,a){return xpr(r,e,a)};function Jv(r){return eS(r),ut(r<0?0:Xv(r)|0)}cr.allocUnsafe=function(r){return Jv(r)};cr.allocUnsafeSlow=function(r){return Jv(r)};function qpr(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!cr.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var a=aS(r,e)|0,t=ut(a),o=t.write(r,e);return o!==a&&(t=t.slice(0,o)),t}function Yv(r){for(var e=r.length<0?0:Xv(r.length)|0,a=ut(e),t=0;t<e;t+=1)a[t]=r[t]&255;return a}function wpr(r){if(Ja(r,Uint8Array)){var e=new Uint8Array(r);return $v(e.buffer,e.byteOffset,e.byteLength)}return Yv(r)}function $v(r,e,a){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(a||0))throw new RangeError('"length" is outside of buffer bounds');var t;return e===void 0&&a===void 0?t=new Uint8Array(r):a===void 0?t=new Uint8Array(r,e):t=new Uint8Array(r,e,a),Object.setPrototypeOf(t,cr.prototype),t}function Spr(r){if(cr.isBuffer(r)){var e=Xv(r.length)|0,a=ut(e);return a.length===0||r.copy(a,0,0,e),a}if(r.length!==void 0)return typeof r.length!="number"||Kv(r.length)?ut(0):Yv(r);if(r.type==="Buffer"&&Array.isArray(r.data))return Yv(r.data)}function Xv(r){if(r>=Bn)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bn.toString(16)+" bytes");return r|0}function Epr(r){return+r!=r&&(r=0),cr.alloc(+r)}cr.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==cr.prototype};cr.compare=function(e,a){if(Ja(e,Uint8Array)&&(e=cr.from(e,e.offset,e.byteLength)),Ja(a,Uint8Array)&&(a=cr.from(a,a.offset,a.byteLength)),!cr.isBuffer(e)||!cr.isBuffer(a))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===a)return 0;for(var t=e.length,o=a.length,i=0,n=Math.min(t,o);i<n;++i)if(e[i]!==a[i]){t=e[i],o=a[i];break}return t<o?-1:o<t?1:0};cr.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};cr.concat=function(e,a){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return cr.alloc(0);var t;if(a===void 0)for(a=0,t=0;t<e.length;++t)a+=e[t].length;var o=cr.allocUnsafe(a),i=0;for(t=0;t<e.length;++t){var n=e[t];if(Ja(n,Uint8Array))i+n.length>o.length?cr.from(n).copy(o,i):Uint8Array.prototype.set.call(o,n,i);else if(cr.isBuffer(n))n.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=n.length}return o};function aS(r,e){if(cr.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Ja(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var a=r.length,t=arguments.length>2&&arguments[2]===!0;if(!t&&a===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return Wv(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a*2;case"hex":return a>>>1;case"base64":return uS(r).length;default:if(o)return t?-1:Wv(r).length;e=(""+e).toLowerCase(),o=!0}}cr.byteLength=aS;function Apr(r,e,a){var t=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0,e>>>=0,a<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return Fpr(this,e,a);case"utf8":case"utf-8":return iS(this,e,a);case"ascii":return kpr(this,e,a);case"latin1":case"binary":return Bpr(this,e,a);case"base64":return Npr(this,e,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rpr(this,e,a);default:if(t)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),t=!0}}cr.prototype._isBuffer=!0;function Qt(r,e,a){var t=r[e];r[e]=r[a],r[a]=t}cr.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<e;a+=2)Qt(this,a,a+1);return this};cr.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<e;a+=4)Qt(this,a,a+3),Qt(this,a+1,a+2);return this};cr.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<e;a+=8)Qt(this,a,a+7),Qt(this,a+1,a+6),Qt(this,a+2,a+5),Qt(this,a+3,a+4);return this};cr.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?iS(this,0,e):Apr.apply(this,arguments)};cr.prototype.toLocaleString=cr.prototype.toString;cr.prototype.equals=function(e){if(!cr.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:cr.compare(this,e)===0};cr.prototype.inspect=function(){var e="",a=hi.INSPECT_MAX_BYTES;return e=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(e+=" ... "),"<Buffer "+e+">"};H6&&(cr.prototype[H6]=cr.prototype.inspect);cr.prototype.compare=function(e,a,t,o,i){if(Ja(e,Uint8Array)&&(e=cr.from(e,e.offset,e.byteLength)),!cr.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(a===void 0&&(a=0),t===void 0&&(t=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),a<0||t>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&a>=t)return 0;if(o>=i)return-1;if(a>=t)return 1;if(a>>>=0,t>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var n=i-o,s=t-a,u=Math.min(n,s),v=this.slice(o,i),f=e.slice(a,t),l=0;l<u;++l)if(v[l]!==f[l]){n=v[l],s=f[l];break}return n<s?-1:s<n?1:0};function tS(r,e,a,t,o){if(r.length===0)return-1;if(typeof a=="string"?(t=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),a=+a,Kv(a)&&(a=o?0:r.length-1),a<0&&(a=r.length+a),a>=r.length){if(o)return-1;a=r.length-1}else if(a<0)if(o)a=0;else return-1;if(typeof e=="string"&&(e=cr.from(e,t)),cr.isBuffer(e))return e.length===0?-1:Z6(r,e,a,t,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(r,e,a):Uint8Array.prototype.lastIndexOf.call(r,e,a):Z6(r,[e],a,t,o);throw new TypeError("val must be string, number or Buffer")}function Z6(r,e,a,t,o){var i=1,n=r.length,s=e.length;if(t!==void 0&&(t=String(t).toLowerCase(),t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,n/=2,s/=2,a/=2}function u(y,p){return i===1?y[p]:y.readUInt16BE(p*i)}var v;if(o){var f=-1;for(v=a;v<n;v++)if(u(r,v)===u(e,f===-1?0:v-f)){if(f===-1&&(f=v),v-f+1===s)return f*i}else f!==-1&&(v-=v-f),f=-1}else for(a+s>n&&(a=n-s),v=a;v>=0;v--){for(var l=!0,d=0;d<s;d++)if(u(r,v+d)!==u(e,d)){l=!1;break}if(l)return v}return-1}cr.prototype.includes=function(e,a,t){return this.indexOf(e,a,t)!==-1};cr.prototype.indexOf=function(e,a,t){return tS(this,e,a,t,!0)};cr.prototype.lastIndexOf=function(e,a,t){return tS(this,e,a,t,!1)};function _pr(r,e,a,t){a=Number(a)||0;var o=r.length-a;t?(t=Number(t),t>o&&(t=o)):t=o;var i=e.length;t>i/2&&(t=i/2);for(var n=0;n<t;++n){var s=parseInt(e.substr(n*2,2),16);if(Kv(s))return n;r[a+n]=s}return n}function Tpr(r,e,a,t){return Fn(Wv(e,r.length-a),r,a,t)}function jpr(r,e,a,t){return Fn(Upr(e),r,a,t)}function Ipr(r,e,a,t){return Fn(uS(e),r,a,t)}function Opr(r,e,a,t){return Fn(Cpr(e,r.length-a),r,a,t)}cr.prototype.write=function(e,a,t,o){if(a===void 0)o="utf8",t=this.length,a=0;else if(t===void 0&&typeof a=="string")o=a,t=this.length,a=0;else if(isFinite(a))a=a>>>0,isFinite(t)?(t=t>>>0,o===void 0&&(o="utf8")):(o=t,t=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-a;if((t===void 0||t>i)&&(t=i),e.length>0&&(t<0||a<0)||a>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var n=!1;;)switch(o){case"hex":return _pr(this,e,a,t);case"utf8":case"utf-8":return Tpr(this,e,a,t);case"ascii":case"latin1":case"binary":return jpr(this,e,a,t);case"base64":return Ipr(this,e,a,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Opr(this,e,a,t);default:if(n)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),n=!0}};cr.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Npr(r,e,a){return e===0&&a===r.length?Gv.fromByteArray(r):Gv.fromByteArray(r.slice(e,a))}function iS(r,e,a){a=Math.min(r.length,a);for(var t=[],o=e;o<a;){var i=r[o],n=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=a){var u,v,f,l;switch(s){case 1:i<128&&(n=i);break;case 2:u=r[o+1],(u&192)===128&&(l=(i&31)<<6|u&63,l>127&&(n=l));break;case 3:u=r[o+1],v=r[o+2],(u&192)===128&&(v&192)===128&&(l=(i&15)<<12|(u&63)<<6|v&63,l>2047&&(l<55296||l>57343)&&(n=l));break;case 4:u=r[o+1],v=r[o+2],f=r[o+3],(u&192)===128&&(v&192)===128&&(f&192)===128&&(l=(i&15)<<18|(u&63)<<12|(v&63)<<6|f&63,l>65535&&l<1114112&&(n=l))}}n===null?(n=65533,s=1):n>65535&&(n-=65536,t.push(n>>>10&1023|55296),n=56320|n&1023),t.push(n),o+=s}return Dpr(t)}var Q6=4096;function Dpr(r){var e=r.length;if(e<=Q6)return String.fromCharCode.apply(String,r);for(var a="",t=0;t<e;)a+=String.fromCharCode.apply(String,r.slice(t,t+=Q6));return a}function kpr(r,e,a){var t="";a=Math.min(r.length,a);for(var o=e;o<a;++o)t+=String.fromCharCode(r[o]&127);return t}function Bpr(r,e,a){var t="";a=Math.min(r.length,a);for(var o=e;o<a;++o)t+=String.fromCharCode(r[o]);return t}function Fpr(r,e,a){var t=r.length;(!e||e<0)&&(e=0),(!a||a<0||a>t)&&(a=t);for(var o="",i=e;i<a;++i)o+=Ppr[r[i]];return o}function Rpr(r,e,a){for(var t=r.slice(e,a),o="",i=0;i<t.length-1;i+=2)o+=String.fromCharCode(t[i]+t[i+1]*256);return o}cr.prototype.slice=function(e,a){var t=this.length;e=~~e,a=a===void 0?t:~~a,e<0?(e+=t,e<0&&(e=0)):e>t&&(e=t),a<0?(a+=t,a<0&&(a=0)):a>t&&(a=t),a<e&&(a=e);var o=this.subarray(e,a);return Object.setPrototypeOf(o,cr.prototype),o};function Re(r,e,a){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>a)throw new RangeError("Trying to access beyond buffer length")}cr.prototype.readUintLE=cr.prototype.readUIntLE=function(e,a,t){e=e>>>0,a=a>>>0,t||Re(e,a,this.length);for(var o=this[e],i=1,n=0;++n<a&&(i*=256);)o+=this[e+n]*i;return o};cr.prototype.readUintBE=cr.prototype.readUIntBE=function(e,a,t){e=e>>>0,a=a>>>0,t||Re(e,a,this.length);for(var o=this[e+--a],i=1;a>0&&(i*=256);)o+=this[e+--a]*i;return o};cr.prototype.readUint8=cr.prototype.readUInt8=function(e,a){return e=e>>>0,a||Re(e,1,this.length),this[e]};cr.prototype.readUint16LE=cr.prototype.readUInt16LE=function(e,a){return e=e>>>0,a||Re(e,2,this.length),this[e]|this[e+1]<<8};cr.prototype.readUint16BE=cr.prototype.readUInt16BE=function(e,a){return e=e>>>0,a||Re(e,2,this.length),this[e]<<8|this[e+1]};cr.prototype.readUint32LE=cr.prototype.readUInt32LE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};cr.prototype.readUint32BE=cr.prototype.readUInt32BE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};cr.prototype.readIntLE=function(e,a,t){e=e>>>0,a=a>>>0,t||Re(e,a,this.length);for(var o=this[e],i=1,n=0;++n<a&&(i*=256);)o+=this[e+n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*a)),o};cr.prototype.readIntBE=function(e,a,t){e=e>>>0,a=a>>>0,t||Re(e,a,this.length);for(var o=a,i=1,n=this[e+--o];o>0&&(i*=256);)n+=this[e+--o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*a)),n};cr.prototype.readInt8=function(e,a){return e=e>>>0,a||Re(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};cr.prototype.readInt16LE=function(e,a){e=e>>>0,a||Re(e,2,this.length);var t=this[e]|this[e+1]<<8;return t&32768?t|4294901760:t};cr.prototype.readInt16BE=function(e,a){e=e>>>0,a||Re(e,2,this.length);var t=this[e+1]|this[e]<<8;return t&32768?t|4294901760:t};cr.prototype.readInt32LE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};cr.prototype.readInt32BE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};cr.prototype.readFloatLE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),mi.read(this,e,!0,23,4)};cr.prototype.readFloatBE=function(e,a){return e=e>>>0,a||Re(e,4,this.length),mi.read(this,e,!1,23,4)};cr.prototype.readDoubleLE=function(e,a){return e=e>>>0,a||Re(e,8,this.length),mi.read(this,e,!0,52,8)};cr.prototype.readDoubleBE=function(e,a){return e=e>>>0,a||Re(e,8,this.length),mi.read(this,e,!1,52,8)};function Je(r,e,a,t,o,i){if(!cr.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(a+t>r.length)throw new RangeError("Index out of range")}cr.prototype.writeUintLE=cr.prototype.writeUIntLE=function(e,a,t,o){if(e=+e,a=a>>>0,t=t>>>0,!o){var i=Math.pow(2,8*t)-1;Je(this,e,a,t,i,0)}var n=1,s=0;for(this[a]=e&255;++s<t&&(n*=256);)this[a+s]=e/n&255;return a+t};cr.prototype.writeUintBE=cr.prototype.writeUIntBE=function(e,a,t,o){if(e=+e,a=a>>>0,t=t>>>0,!o){var i=Math.pow(2,8*t)-1;Je(this,e,a,t,i,0)}var n=t-1,s=1;for(this[a+n]=e&255;--n>=0&&(s*=256);)this[a+n]=e/s&255;return a+t};cr.prototype.writeUint8=cr.prototype.writeUInt8=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,1,255,0),this[a]=e&255,a+1};cr.prototype.writeUint16LE=cr.prototype.writeUInt16LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,65535,0),this[a]=e&255,this[a+1]=e>>>8,a+2};cr.prototype.writeUint16BE=cr.prototype.writeUInt16BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,65535,0),this[a]=e>>>8,this[a+1]=e&255,a+2};cr.prototype.writeUint32LE=cr.prototype.writeUInt32LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,4294967295,0),this[a+3]=e>>>24,this[a+2]=e>>>16,this[a+1]=e>>>8,this[a]=e&255,a+4};cr.prototype.writeUint32BE=cr.prototype.writeUInt32BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,4294967295,0),this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=e&255,a+4};cr.prototype.writeIntLE=function(e,a,t,o){if(e=+e,a=a>>>0,!o){var i=Math.pow(2,8*t-1);Je(this,e,a,t,i-1,-i)}var n=0,s=1,u=0;for(this[a]=e&255;++n<t&&(s*=256);)e<0&&u===0&&this[a+n-1]!==0&&(u=1),this[a+n]=(e/s>>0)-u&255;return a+t};cr.prototype.writeIntBE=function(e,a,t,o){if(e=+e,a=a>>>0,!o){var i=Math.pow(2,8*t-1);Je(this,e,a,t,i-1,-i)}var n=t-1,s=1,u=0;for(this[a+n]=e&255;--n>=0&&(s*=256);)e<0&&u===0&&this[a+n+1]!==0&&(u=1),this[a+n]=(e/s>>0)-u&255;return a+t};cr.prototype.writeInt8=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,1,127,-128),e<0&&(e=255+e+1),this[a]=e&255,a+1};cr.prototype.writeInt16LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,32767,-32768),this[a]=e&255,this[a+1]=e>>>8,a+2};cr.prototype.writeInt16BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,2,32767,-32768),this[a]=e>>>8,this[a+1]=e&255,a+2};cr.prototype.writeInt32LE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,2147483647,-2147483648),this[a]=e&255,this[a+1]=e>>>8,this[a+2]=e>>>16,this[a+3]=e>>>24,a+4};cr.prototype.writeInt32BE=function(e,a,t){return e=+e,a=a>>>0,t||Je(this,e,a,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[a]=e>>>24,this[a+1]=e>>>16,this[a+2]=e>>>8,this[a+3]=e&255,a+4};function oS(r,e,a,t,o,i){if(a+t>r.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function nS(r,e,a,t,o){return e=+e,a=a>>>0,o||oS(r,e,a,4,34028234663852886e22,-34028234663852886e22),mi.write(r,e,a,t,23,4),a+4}cr.prototype.writeFloatLE=function(e,a,t){return nS(this,e,a,!0,t)};cr.prototype.writeFloatBE=function(e,a,t){return nS(this,e,a,!1,t)};function sS(r,e,a,t,o){return e=+e,a=a>>>0,o||oS(r,e,a,8,17976931348623157e292,-17976931348623157e292),mi.write(r,e,a,t,52,8),a+8}cr.prototype.writeDoubleLE=function(e,a,t){return sS(this,e,a,!0,t)};cr.prototype.writeDoubleBE=function(e,a,t){return sS(this,e,a,!1,t)};cr.prototype.copy=function(e,a,t,o){if(!cr.isBuffer(e))throw new TypeError("argument should be a Buffer");if(t||(t=0),!o&&o!==0&&(o=this.length),a>=e.length&&(a=e.length),a||(a=0),o>0&&o<t&&(o=t),o===t||e.length===0||this.length===0)return 0;if(a<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-a<o-t&&(o=e.length-a+t);var i=o-t;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(a,t,o):Uint8Array.prototype.set.call(e,this.subarray(t,o),a),i};cr.prototype.fill=function(e,a,t,o){if(typeof e=="string"){if(typeof a=="string"?(o=a,a=0,t=this.length):typeof t=="string"&&(o=t,t=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!cr.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){var i=e.charCodeAt(0);(o==="utf8"&&i<128||o==="latin1")&&(e=i)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(a<0||this.length<a||this.length<t)throw new RangeError("Out of range index");if(t<=a)return this;a=a>>>0,t=t===void 0?this.length:t>>>0,e||(e=0);var n;if(typeof e=="number")for(n=a;n<t;++n)this[n]=e;else{var s=cr.isBuffer(e)?e:cr.from(e,o),u=s.length;if(u===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<t-a;++n)this[n+a]=s[n%u]}return this};var zpr=/[^+/0-9A-Za-z-_]/g;function Vpr(r){if(r=r.split("=")[0],r=r.trim().replace(zpr,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function Wv(r,e){e=e||1/0;for(var a,t=r.length,o=null,i=[],n=0;n<t;++n){if(a=r.charCodeAt(n),a>55295&&a<57344){if(!o){if(a>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(n+1===t){(e-=3)>-1&&i.push(239,191,189);continue}o=a;continue}if(a<56320){(e-=3)>-1&&i.push(239,191,189),o=a;continue}a=(o-55296<<10|a-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,a<128){if((e-=1)<0)break;i.push(a)}else if(a<2048){if((e-=2)<0)break;i.push(a>>6|192,a&63|128)}else if(a<65536){if((e-=3)<0)break;i.push(a>>12|224,a>>6&63|128,a&63|128)}else if(a<1114112){if((e-=4)<0)break;i.push(a>>18|240,a>>12&63|128,a>>6&63|128,a&63|128)}else throw new Error("Invalid code point")}return i}function Upr(r){for(var e=[],a=0;a<r.length;++a)e.push(r.charCodeAt(a)&255);return e}function Cpr(r,e){for(var a,t,o,i=[],n=0;n<r.length&&!((e-=2)<0);++n)a=r.charCodeAt(n),t=a>>8,o=a%256,i.push(o),i.push(t);return i}function uS(r){return Gv.toByteArray(Vpr(r))}function Fn(r,e,a,t){for(var o=0;o<t&&!(o+a>=e.length||o>=r.length);++o)e[o+a]=r[o];return o}function Ja(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function Kv(r){return r!==r}var Ppr=(function(){for(var r="0123456789abcdef",e=new Array(256),a=0;a<16;++a)for(var t=a*16,o=0;o<16;++o)e[t+o]=r[a]+r[o];return e})()});var lS=c((Yte,fS)=>{"use strict";var Lpr=vS().Buffer;fS.exports=Lpr});var dS=c(($te,cS)=>{"use strict";function Mpr(){throw new Error("not implemented")}cS.exports=Mpr});var ho=c((Wte,pS)=>{"use strict";var Gpr=$6(),Ypr=lS(),$pr=dS(),Hv;Gpr()?Hv=Ypr:Hv=$pr;pS.exports=Hv});var mS=c((Jte,yS)=>{"use strict";var Wpr=ho(),Jpr=qt(),Xpr=At(),Kpr=Ki(),Hpr=Xi(),Zpr=Zi(),Qpr=fi(),ryr=Ji(),eyr=va(),ayr=Hi(),tyr=so(),iyr=vo(),oyr=co(),nyr={binary:Wpr,float64:Jpr,float32:Xpr,generic:Array,int16:Kpr,int32:Hpr,int8:Zpr,uint16:Qpr,uint32:ryr,uint8:eyr,uint8c:ayr,complex64:tyr,complex128:iyr,bool:oyr};yS.exports=nyr});var gS=c((Xte,hS)=>{"use strict";var syr=mS();function uyr(r){return syr[r]||null}hS.exports=uyr});var go=c((Kte,bS)=>{"use strict";var vyr=gS();bS.exports=vyr});var qS=c((Hte,xS)=>{"use strict";var fyr=Pe(),lyr=ho(),cyr=fyr(lyr.allocUnsafe);xS.exports=cyr});var SS=c((Zte,wS)=>{"use strict";var dyr=ge(),pyr=pr(),yyr=ho();function myr(r){if(!dyr(r))throw new TypeError(pyr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return yyr.allocUnsafe(r)}wS.exports=myr});var AS=c((Qte,ES)=>{"use strict";var hyr=ge(),gyr=pr(),byr=ho();function xyr(r){if(!hyr(r))throw new TypeError(gyr("invalid argument. Must provide a nonnegative integer. Value: `%s`.",r));return new byr(r)}ES.exports=xyr});var _t=c((rie,_S)=>{"use strict";var qyr=qS(),wyr=SS(),Syr=AS(),Zv;qyr?Zv=wyr:Zv=Syr;_S.exports=Zv});var jS=c((eie,TS)=>{"use strict";function Eyr(r){var e;for(e=0;e<r.length;e++)r[e]=0;return r}TS.exports=Eyr});var OS=c((aie,IS)=>{"use strict";var Ayr=go(),_yr=_t(),Tyr=jS();function jyr(r){var e,a;for(e=[],a=0;a<r;a++)e.push(0);return e}function Iyr(r){return Tyr(_yr(r))}function Oyr(r,e){var a=Ayr(r);return a?new a(e):null}function Nyr(r,e){return r==="generic"?jyr(e):r==="binary"?Iyr(e):Oyr(r,e)}IS.exports=Nyr});var Fa=c((tie,NS)=>{"use strict";var Dyr=OS();NS.exports=Dyr});var kS=c((iie,DS)=>{"use strict";var kyr={Buffer:"binary",Float32Array:"float32",Float64Array:"float64",Array:"generic",Int16Array:"int16",Int32Array:"int32",Int8Array:"int8",Object:"generic",Uint16Array:"uint16",Uint32Array:"uint32",Uint8Array:"uint8",Uint8ClampedArray:"uint8c",Complex64Array:"complex64",Complex128Array:"complex128",BooleanArray:"bool"};DS.exports=kyr});var FS=c((oie,BS)=>{"use strict";var Byr=qt(),Fyr=At(),Ryr=Ji(),zyr=Xi(),Vyr=fi(),Uyr=Ki(),Cyr=va(),Pyr=Hi(),Lyr=Zi(),Myr=so(),Gyr=vo(),Yyr=co(),$yr=[Byr,Fyr,zyr,Ryr,Uyr,Vyr,Lyr,Cyr,Pyr,Myr,Gyr,Yyr];BS.exports=$yr});var zS=c((nie,RS)=>{"use strict";var Wyr=["float64","float32","int32","uint32","int16","uint16","int8","uint8","uint8c","complex64","complex128","bool"];RS.exports=Wyr});var CS=c((sie,US)=>{"use strict";var Jyr=Ci(),Xyr=wa(),Kyr=gt(),Hyr=kS(),Zyr=FS(),VS=zS(),Qyr=VS.length;function rmr(r){var e;if(Xyr(r))return"generic";if(Jyr(r))return"binary";for(e=0;e<Qyr;e++)if(r instanceof Zyr[e])return VS[e];return Hyr[Kyr(r)]||null}US.exports=rmr});var Rn=c((uie,PS)=>{"use strict";var emr=CS();PS.exports=emr});var GS=c((vie,MS)=>{"use strict";var amr=di(),LS=pr();function tmr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(LS("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.dtype,amr(e))return e;throw new TypeError(LS("invalid argument. Must provide an ndarray having a supported data type. Value: `%s`.",e))}MS.exports=tmr});var Ra=c((fie,YS)=>{"use strict";var imr=GS();YS.exports=imr});var WS=c((lie,$S)=>{"use strict";var omr=ge().isPrimitive,nmr=ke(),Qv=pr();function smr(r){var e,a,t,o;if(typeof r!="object"||r===null)throw new TypeError(Qv("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.shape,!nmr(a))throw new TypeError(Qv("invalid argument. Must provide an ndarray. Value: `%s`.",r));for(e=[],o=0;o<a.length;o++){if(t=a[o],!omr(t))throw new TypeError(Qv("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(t)}return e}$S.exports=smr});var oe=c((cie,JS)=>{"use strict";var umr=WS();JS.exports=umr});var HS=c((die,KS)=>{"use strict";var vmr=fe().isPrimitive,XS=ke(),fmr=Ta(),lmr=ze(),rf=pr();function cmr(r){var e,a,t,o,i,n;if(typeof r!="object"||r===null)throw new TypeError(rf("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(o=r.strides,!XS(o)){if(t=r.shape,!XS(t))throw new TypeError(rf("invalid argument. Must provide an ndarray. Value: `%s`.",r));return t.length===0?[0]:(a=r.order,fmr(a)||(a="row-major"),lmr(t,a))}for(e=[],n=0;n<o.length;n++){if(i=o[n],!vmr(i))throw new TypeError(rf("invalid argument. Must provide an ndarray. Value: `%s`.",r));e.push(i)}return e}KS.exports=cmr});var Xa=c((pie,ZS)=>{"use strict";var dmr=HS();ZS.exports=dmr});var aE=c((yie,eE)=>{"use strict";var QS=ge().isPrimitive,rE=ke(),pmr=Ye(),ef=pr();function ymr(r){var e,a,t;if(typeof r!="object"||r===null)throw new TypeError(ef("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.offset,QS(t))return t;if(a=r.shape,!rE(a))throw new TypeError(ef("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.strides,a.length===0||!rE(e))return 0;if(t=pmr(a,e),QS(t))return t;throw new TypeError(ef("invalid argument. Must provide an ndarray. Value: `%s`.",r))}eE.exports=ymr});var Tt=c((mie,tE)=>{"use strict";var mmr=aE();tE.exports=mmr});var nE=c((hie,oE)=>{"use strict";var hmr=ge().isPrimitive,gmr=ke(),iE=pr();function bmr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(iE("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(a=r.ndims,hmr(a))return a;if(e=r.shape,!gmr(e))throw new TypeError(iE("invalid argument. Must provide an ndarray. Value: `%s`.",r));return e.length}oE.exports=bmr});var zn=c((gie,sE)=>{"use strict";var xmr=nE();sE.exports=xmr});var fE=c((bie,vE)=>{"use strict";var qmr=Ta(),wmr=Xa(),Smr=zn(),Emr=Pt(),Amr=pr(),uE="row-major",_mr="column-major";function Tmr(r){var e,a;if(typeof r!="object"||r===null)throw new TypeError(Amr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return a=r.order,qmr(a)?a:(e=wmr(r),a=Emr(e),a===1||a===3?uE:a===2?_mr:Smr(r)===0?uE:null)}vE.exports=Tmr});var Ka=c((xie,lE)=>{"use strict";var jmr=fE();lE.exports=jmr});var pE=c((qie,dE)=>{"use strict";var Imr=ke(),cE=pr();function Omr(r){var e;if(typeof r!="object"||r===null)throw new TypeError(cE("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=r.data,Imr(e))return e;throw new TypeError(cE("invalid argument. Must provide an ndarray. Value: `%s`.",r))}dE.exports=Omr});var vt=c((wie,yE)=>{"use strict";var Nmr=pE();yE.exports=Nmr});var bE=c((Sie,gE)=>{"use strict";var af=Ve(),Dmr=pr();function mE(r,e){var a=e[0];return af(a)&&(r.push(a.length),mE(r,a)),r}function hE(r,e,a,t,o){var i,n,s;for(i=e[a],s=0;s<t.length;s++){if(n=t[s],!af(n)||n.length!==i)return a;if(o&&(n=hE(r,e,a+1,n,a+1<r-1),n<r))return n}return r}function kmr(r){var e,a;if(!af(r))throw new TypeError(Dmr("invalid argument. Must provide an array-like object. Value: `%s`.",r));return e=[r.length],mE(e,r),a=e.length,a>1&&(e.length=hE(a,e,1,r,a>2)),e}gE.exports=kmr});var qE=c((Eie,xE)=>{"use strict";var Bmr=bE();xE.exports=Bmr});var SE=c((Aie,wE)=>{"use strict";function Fmr(r,e){var a,t;for(a=[],t=0;t<e;t++)a.push(r);return a}wE.exports=Fmr});var bo=c((_ie,EE)=>{"use strict";var Rmr=SE();EE.exports=Rmr});var _E=c((Tie,AE)=>{"use strict";var zmr=bo();function Vmr(r){return zmr(0,r)}AE.exports=Vmr});var Se=c((jie,TE)=>{"use strict";var Umr=_E();TE.exports=Umr});var IE=c((Iie,jE)=>{"use strict";var Cmr=pr();function Pmr(r,e,a,t,o,i){var n,s,u,v,f;for(n=r.length,s=1,f=0;f<n;f++)s*=r[f];if(i==="clamp")o<0?o=0:o>=s&&(o=s-1);else if(i==="wrap")o<0?(o+=s,o<0&&(o%=s,o!==0&&(o+=s))):o>=s&&(o-=s,o>=s&&(o%=s));else if(i==="normalize"&&o<0&&(o+=s),o<0||o>=s)throw new RangeError(Cmr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",s,o));if(u=a,t==="column-major"){for(f=0;f<n;f++)v=o%r[f],o-=v,o/=r[f],u+=v*e[f];return u}for(f=n-1;f>=0;f--)v=o%r[f],o-=v,o/=r[f],u+=v*e[f];return u}jE.exports=Pmr});var na=c((Oie,OE)=>{"use strict";var Lmr=IE();OE.exports=Lmr});var kE=c((Nie,DE)=>{"use strict";var NE={float64:Mmr,float32:Gmr,int32:Ymr,int16:$mr,int8:Wmr,uint32:Jmr,uint16:Xmr,uint8:Kmr,uint8c:Hmr,generic:Zmr,default:Qmr};function Mmr(r,e,a){r[e]=a}function Gmr(r,e,a){r[e]=a}function Ymr(r,e,a){r[e]=a}function $mr(r,e,a){r[e]=a}function Wmr(r,e,a){r[e]=a}function Jmr(r,e,a){r[e]=a}function Xmr(r,e,a){r[e]=a}function Kmr(r,e,a){r[e]=a}function Hmr(r,e,a){r[e]=a}function Zmr(r,e,a){r[e]=a}function Qmr(r,e,a){r[e]=a}function rhr(r){var e=NE[r];return typeof e=="function"?e:NE.default}DE.exports=rhr});var gi=c((Die,BE)=>{"use strict";var ehr=kE();BE.exports=ehr});var zE=c((kie,RE)=>{"use strict";var FE={complex128:ahr,complex64:thr,default:ihr};function ahr(r,e,a){r.set(a,e)}function thr(r,e,a){r.set(a,e)}function ihr(r,e,a){r.set(a,e)}function ohr(r){var e=FE[r];return typeof e=="function"?e:FE.default}RE.exports=ohr});var bi=c((Bie,VE)=>{"use strict";var nhr=zE();VE.exports=nhr});var CE=c((Fie,UE)=>{"use strict";var shr=it(),uhr=Et(),vhr=gi(),fhr=ot(),lhr=bi(),chr=po();function dhr(r){var e=chr(r);return shr(r)?{data:r,dtype:e,accessorProtocol:!0,accessors:[fhr(e),lhr(e)]}:{data:r,dtype:e,accessorProtocol:!1,accessors:[uhr(e),vhr(e)]}}UE.exports=dhr});var ft=c((Rie,PE)=>{"use strict";var phr=CE();PE.exports=phr});var tf=c((zie,LE)=>{"use strict";var yhr=ea();function mhr(r,e,a,t){var o,i,n,s,u,v,f,l;for(o=e.data,n=e.accessors[0],i=e.accessors[1],f=yhr(r/2),u=t,v=u+(r-1)*a,l=0;l<f;l++)s=n(o,u),i(o,u,n(o,v)),i(o,v,s),u+=a,v-=a;return e}LE.exports=mhr});var GE=c((Vie,ME)=>{"use strict";var hhr=ea(),ghr=ft(),bhr=tf(),Vn=3;function xhr(r,e,a){var t,o,i,n,s,u,v;if(r<=0)return e;if(n=ghr(e),n.accessorProtocol)return a<0?o=(1-r)*a:o=0,bhr(r,n,a,o),n.data;if(u=hhr(r/2),a===1){if(s=u%Vn,i=r-1,s>0)for(o=0;o<s;o++)t=e[o],e[o]=e[i],e[i]=t,i-=1;if(u<Vn)return e;for(o=s;o<u;o+=Vn)t=e[o],e[o]=e[i],e[i]=t,t=e[o+1],e[o+1]=e[i-1],e[i-1]=t,t=e[o+2],e[o+2]=e[i-2],e[i-2]=t,i-=Vn;return e}for(a<0?o=(1-r)*a:o=0,i=o+(r-1)*a,v=0;v<u;v++)t=e[o],e[o]=e[i],e[i]=t,o+=a,i-=a;return e}ME.exports=xhr});var $E=c((Uie,YE)=>{"use strict";var qhr=ea(),whr=ft(),Shr=tf(),xo=3;function Ehr(r,e,a,t){var o,i,n,s,u,v,f;if(r<=0)return e;if(s=whr(e),s.accessorProtocol)return Shr(r,s,a,t),s.data;if(v=qhr(r/2),i=t,a===1){if(u=v%xo,n=i+r-1,u>0)for(f=0;f<u;f++)o=e[i],e[i]=e[n],e[n]=o,i+=a,n-=a;if(v<xo)return e;for(f=u;f<v;f+=xo)o=e[i],e[i]=e[n],e[n]=o,o=e[i+1],e[i+1]=e[n-1],e[n-1]=o,o=e[i+2],e[i+2]=e[n-2],e[n-2]=o,i+=xo,n-=xo;return e}for(n=i+(r-1)*a,f=0;f<v;f++)o=e[i],e[i]=e[n],e[n]=o,i+=a,n-=a;return e}YE.exports=Ehr});var XE=c((Cie,JE)=>{"use strict";var Ahr=Ir(),WE=GE(),_hr=$E();Ahr(WE,"ndarray",_hr);JE.exports=WE});var nf=c((Pie,QE)=>{"use strict";var Thr=ze(),jhr=na(),Ihr=Jr(),KE=XE(),HE=Se(),Ohr="throw";function ZE(r,e,a,t,o){var i;for(i=0;i<e;i++)a[o]=r[i],o+=t}function of(r,e,a,t,o,i,n){var s,u,v,f;for(v=t+1,s=v===e,u=a[t],f=0;f<u;f++)s?(o[n]=r[f],n+=i):n=of(r[f],e,a,v,o,i,n);return n}function Nhr(r,e,a,t,o,i){var n,s,u,v,f,l,d;for(n=Ihr(a),s=HE(n),of(r,e,a,0,s,1,0),u="row-major",f=Thr(a,u),v=HE(e),ZE(a,e,v,1,0),KE(e,v,1),KE(e,f,1),d=0;d<n;d++)l=jhr(v,f,0,u,d,Ohr),t[i]=s[l],i+=o}function Dhr(r,e,a,t,o,i){var n=e.length;return n===0?t:n===1?(ZE(r,e[0],t,o,i),t):a?(Nhr(r,n,e,t,o,i),t):(of(r,n,e,0,t,o,i),t)}QE.exports=Dhr});var eA=c((Lie,rA)=>{"use strict";var khr=Jr(),Bhr=Se(),Fhr=nf();function Rhr(r,e,a){var t=Bhr(khr(e));return Fhr(r,e,a,t,1,0)}rA.exports=Rhr});var iA=c((Mie,tA)=>{"use strict";var zhr=Ir(),aA=eA(),Vhr=nf();zhr(aA,"assign",Vhr);tA.exports=aA});var nA=c((Gie,oA)=>{"use strict";var Uhr=Pi(),Chr=Sa();function Phr(r){return typeof r=="object"&&r!==null&&typeof r.length=="number"&&Chr(r.length)&&r.length>=0&&r.length<Uhr}oA.exports=Phr});var uA=c((Yie,sA)=>{"use strict";var Un=ka();function Lhr(){return{casting:Un.get("casting"),copy:!1,dtype:Un.get("dtypes.default"),flatten:!0,mode:Un.get("index_mode"),ndmin:0,order:Un.get("order"),readonly:!1}}sA.exports=Lhr});var fA=c(($ie,vA)=>{"use strict";var Mhr=go(),Ghr=_t();function Yhr(r,e,a){var t,o,i;if(t=Mhr(a),a==="generic")for(o=[],i=0;i<e;i++)o.push(r[i]);else if(a==="binary")for(o=Ghr(e),i=0;i<e;i++)o[i]=r[i];else for(o=new t(e),i=0;i<e;i++)o[i]=r[i];return o}vA.exports=Yhr});var dA=c((Wie,cA)=>{"use strict";var lA=Pe(),$hr=ge().isPrimitive,sf=pr(),ri="number";function Whr(r,e,a){var t;if(!lA(r))throw new TypeError(sf("invalid argument. First argument must be a function. Value: `%s`.",r));if(!$hr(e))throw new TypeError(sf("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!lA(a))throw new TypeError(sf("invalid argument. Third argument must be a constructor function. Value: `%s`.",a));return t=[o,i,n,s,u,v],e<=5?t[e]:f;function o(){var l=r();return typeof l===ri?new a(l,0):l}function i(l){var d=r(l);return typeof d===ri?new a(d,0):d}function n(l,d){var y=r(l,d);return typeof y===ri?new a(y,0):y}function s(l,d,y){var p=r(l,d,y);return typeof p===ri?new a(p,0):p}function u(l,d,y,p){var m=r(l,d,y,p);return typeof m===ri?new a(m,0):m}function v(l,d,y,p,m){var h=r(l,d,y,p,m);return typeof h===ri?new a(h,0):h}function f(){var l,d,y;for(l=[],y=0;y<arguments.length;y++)l.push(arguments[y]);return d=r.apply(null,l),typeof d===ri?new a(d,0):d}}cA.exports=Whr});var uf=c((Jie,pA)=>{"use strict";var Jhr=dA();pA.exports=Jhr});var mA=c((Xie,yA)=>{"use strict";var Xhr=ln(),Khr=fn(),Hhr={complex64:Xhr,complex128:Khr};yA.exports=Hhr});var gA=c((Kie,hA)=>{"use strict";var Zhr=mA();function Qhr(r){return Zhr[r]||null}hA.exports=Qhr});var Cn=c((Hie,bA)=>{"use strict";var r1r=gA();bA.exports=r1r});var qA=c((Zie,xA)=>{"use strict";var e1r=ft(),a1r=uf(),t1r=Cn(),i1r=go(),o1r=_t(),n1r=aa(),s1r=Ra(),u1r=oe(),v1r=Xa(),f1r=Tt(),l1r=Ka(),c1r=vt();function d1r(r){var e,a,t;for(e=r.length,a=[],t=0;t<e;t++)a.push(r.iget(t));return a}function p1r(r){var e,a,t;for(e=r.length,a=o1r(e),t=0;t<e;t++)a[t]=r.iget(t);return a}function y1r(r,e){var a,t,o,i,n,s,u;if(a=i1r(e),t=r.length,o=new a(t),s=e1r(o),s.accessorProtocol)for(i=s.accessors[1],n=a1r(v,1,t1r(e)),u=0;u<t;u++)i(o,u,n(u));else for(u=0;u<t;u++)o[u]=r.iget(u);return o;function v(f){return r.iget(f)}}function m1r(r,e){var a;return a=new n1r(s1r(r),c1r(r),u1r(r),v1r(r),f1r(r),l1r(r)),e==="generic"?d1r(a):e==="binary"?p1r(a):y1r(a,e)}xA.exports=m1r});var SA=c((Qie,wA)=>{"use strict";function h1r(r,e,a){var t,o;for(t=[],o=0;o<a-r;o++)t.push(1);for(o=0;o<r;o++)t.push(e[o]);return t}wA.exports=h1r});var AA=c((roe,EA)=>{"use strict";var g1r=vi();function b1r(r,e,a,t){var o,i,n,s,u;if(i=a.length,u=r-i,o=[],t==="row-major"){for(n=g1r(a[0])*e[u],s=0;s<u;s++)o.push(n);for(s=0;s<i;s++)o.push(a[s])}else{for(s=0;s<u;s++)o.push(1);for(s=0;s<i;s++)o.push(a[s])}return o}EA.exports=b1r});var DA=c((eoe,NA)=>{"use strict";var za=Xr(),_A=ne(),TA=pe().isPrimitive,x1r=wa(),q1r=ge().isPrimitive,w1r=se(),S1r=ze(),E1r=Ye(),A1r=Pt(),Pn=Jr(),_1r=ma(),T1r=di(),j1r=Ta(),I1r=Fv(),O1r=Pv(),N1r=Fa(),D1r=Rn(),k1r=Ra(),B1r=oe(),jA=Xa(),F1r=Tt(),IA=Ka(),R1r=vt(),OA=qE(),z1r=iA(),ga=pr(),Ln=nA(),V1r=uA(),U1r=fA(),C1r=qA(),P1r=SA(),L1r=AA(),Va=V1r();function M1r(){var r,e,a,t,o,i,n,s,u,v,f,l,d,y,p;if(arguments.length===1)if(Ln(arguments[0]))a=arguments[0],r={};else{if(r=arguments[0],!_A(r))throw new TypeError(ga("invalid argument. Must provide either a valid data source, options argument, or both. Value: `%s`.",r));if(za(r,"buffer")&&(a=r.buffer,!Ln(a)))throw new TypeError(ga("invalid option. `%s` option must be an array-like object, typed-array-like, a Buffer, or an ndarray. Option: `%s`.","buffer",a))}else{if(a=arguments[0],!Ln(a))throw new TypeError(ga("invalid option. Data source must be an array-like object, typed-array-like, a Buffer, or an ndarray. Value: `%s`.",a));if(r=arguments[1],!_A(r))throw new TypeError(ga("invalid argument. Options argument must be an object. Value: `%s`.",r))}if(a&&(w1r(a)?(n=k1r(a),p=!0):(n=D1r(a),p=!1)),v={},f={},za(r,"casting")){if(f.casting=r.casting,!I1r(f.casting))throw new TypeError(ga("invalid option. `%s` option must be a recognized casting mode. Option: `%s`.","casting",f.casting))}else f.casting=Va.casting;if(za(r,"flatten")){if(f.flatten=r.flatten,!TA(f.flatten))throw new TypeError(ga("invalid option. `%s` option must be a boolean. Option: `%s`.","flatten",f.flatten))}else f.flatten=Va.flatten;if(za(r,"ndmin")){if(f.ndmin=r.ndmin,!q1r(f.ndmin))throw new TypeError(ga("invalid option. `%s` option must be a nonnegative integer. Option: `%s`.","ndmin",f.ndmin))}else f.ndmin=Va.ndmin;if(za(r,"dtype")){if(i=r.dtype,!T1r(i))throw new TypeError(ga("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",i));if(n&&!O1r(n,i,f.casting))throw new Error(ga("invalid option. Data type cast is not allowed. Casting mode: `%s`. From: `%s`. To: `%s`.",f.casting,n,i))}else n?!p&&n==="generic"?i=Va.dtype:i=n:i=Va.dtype;if(za(r,"order")){if(o=r.order,o==="any"||o==="same")p?o==="any"?(y=A1r(jA(a)),y===3?o=Va.order:o=IA(a)):o==="same"&&(o=IA(a)):o=Va.order;else if(!j1r(o))throw new TypeError(ga("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",o))}else o=Va.order;if(za(r,"mode")?v.mode=r.mode:v.mode=Va.mode,za(r,"submode")?v.submode=r.submode:v.submode=[v.mode],za(r,"readonly")?v.readonly=r.readonly:v.readonly=Va.readonly,za(r,"copy")){if(f.copy=r.copy,!TA(f.copy))throw new TypeError(ga("invalid option. `%s` option must be a boolean. Option: `%s`.","copy",f.copy))}else f.copy=Va.copy;if(za(r,"shape")){if(s=r.shape,!Ln(s))throw new TypeError(ga("invalid option. `%s` option must be an array-like object containing nonnegative integers. Option: `%s`.","shape",s));u=s.length,d=Pn(s)}else if(a)p?(s=B1r(a),u=s.length,d=Pn(s)):f.flatten&&x1r(a)?(s=OA(a),l=s,u=s.length,d=Pn(s)):(u=1,d=a.length,s=[d]);else throw new Error("invalid arguments. Must provide either a data source, array shape, or both.");if(u<f.ndmin&&(s=P1r(u,s,f.ndmin),u=f.ndmin),p){if(Pn(a.shape)!==d)throw new RangeError("invalid arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.");n!==i||f.copy?a=C1r(a,i):(e=jA(a),t=F1r(a),a=R1r(a),e.length<u&&(e=L1r(u,s,e,o)))}else if(a){if(n==="generic"&&f.flatten&&(a=z1r(a,l||OA(a),o==="column-major")),a.length!==d)throw new RangeError("invalid arguments. Array shape is incompatible with provided data source. Number of data source elements does not match array shape.");(n!==i||f.copy)&&(a=U1r(a,d,i))}else a=N1r(i,d);return e===void 0&&(e=S1r(s,o),t=E1r(s,e)),new _1r(i,a,s,e,t,o,v)}NA.exports=M1r});var BA=c((aoe,kA)=>{"use strict";var G1r=DA();kA.exports=G1r});var zA=c((toe,RA)=>{"use strict";var Y1r=se(),$1r=fe().isPrimitive,W1r=ya(),J1r=oe(),FA=pr();function X1r(r){var e,a,t,o,i,n;if(!Y1r(r))throw new TypeError(FA("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o=J1r(r),i=o.length,e=arguments.length-1,e<i)throw new RangeError("invalid invocation. Insufficient arguments. Array shape: (%s). Number of indices: %u.",o.join(","),e);if(e>i)throw new RangeError("invalid invocation. Too many arguments. Array shape: (%s). Number of indices: %u.",o.join(","),e);for(a=[],n=1;n<=e;n++){if(t=arguments[n],!$1r(t))throw new TypeError(FA("invalid argument. Index arguments must be integers. Value: `%s`.",t));if(t=W1r(t,o[n-1]-1),t===-1)return;a.push(t)}return r.get.apply(r,a)}RA.exports=X1r});var UA=c((ioe,VA)=>{"use strict";var K1r=zA();VA.exports=K1r});var PA=c((ooe,CA)=>{"use strict";function H1r(r){var e,a,t;for(a=r.length,e=[],t=0;t<a;t++)e.push(r[t]);return e}CA.exports=H1r});var jt=c((noe,LA)=>{"use strict";var Z1r=PA();LA.exports=Z1r});var GA=c((soe,MA)=>{"use strict";var Q1r=jt();function rgr(r,e){var a=r.shape;return e?Q1r(a):a}MA.exports=rgr});var Te=c((uoe,YA)=>{"use strict";var egr=GA();YA.exports=egr});var WA=c((voe,$A)=>{"use strict";function agr(r,e){var a;if(r.length!==e.length)return!1;for(a=0;a<r.length;a++)if(r[a]!==e[a])return!1;return!0}$A.exports=agr});var XA=c((foe,JA)=>{"use strict";var tgr=WA();JA.exports=tgr});var ZA=c((loe,HA)=>{"use strict";var KA=Te(),igr=XA();function ogr(r,e){return igr(KA(r,!1),KA(e,!1))}HA.exports=ogr});var r5=c((coe,QA)=>{"use strict";var ngr=ZA();QA.exports=ngr});var a5=c((doe,e5)=>{"use strict";var sgr=Ue().factory,ugr=Be(),vgr=sgr(ugr("boolean"));e5.exports=vgr});var i5=c((poe,t5)=>{"use strict";var fgr=a5();t5.exports=fgr});var n5=c((yoe,o5)=>{"use strict";var lgr=Jr();function cgr(r,e){return r>=lgr(e)}o5.exports=cgr});var u5=c((moe,s5)=>{"use strict";var dgr=n5();s5.exports=dgr});var l5=c((hoe,f5)=>{"use strict";var v5=vi();function pgr(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=v5(r[0]),o=1;o<e;o++){if(t=v5(r[o]),t<a)return!1;a=t}return!0}f5.exports=pgr});var vf=c((goe,c5)=>{"use strict";var ygr=l5();c5.exports=ygr});var p5=c((boe,d5)=>{"use strict";var mgr=Jr(),hgr=at();function ggr(r,e,a){var t,o;return t=mgr(r),t===0?!1:(o=hgr(r,e,a),t===o[1]-o[0]+1)}d5.exports=ggr});var qo=c((xoe,y5)=>{"use strict";var bgr=p5();y5.exports=bgr});var h5=c((qoe,m5)=>{"use strict";var xgr=qo(),qgr=Ea(),wgr=vf();function Sgr(r,e,a){return qgr(e)!==0&&wgr(e)&&xgr(r,e,a)}m5.exports=Sgr});var b5=c((woe,g5)=>{"use strict";var Egr=h5();g5.exports=Egr});var q5=c((Soe,x5)=>{"use strict";var Agr=Ue().factory,_gr=Be(),Tgr=Agr(_gr("complex_floating_point"));x5.exports=Tgr});var wo=c((Eoe,w5)=>{"use strict";var jgr=q5();w5.exports=jgr});var E5=c((Aoe,S5)=>{"use strict";var Igr=qo(),Ogr=Ea();function Ngr(r,e,a){return Ogr(e)!==0&&Igr(r,e,a)}S5.exports=Ngr});var _5=c((_oe,A5)=>{"use strict";var Dgr=E5();A5.exports=Dgr});var j5=c((Toe,T5)=>{"use strict";var kgr=Ue().factory,Bgr=Be(),Fgr=kgr(Bgr("floating_point"));T5.exports=Fgr});var Mn=c((joe,I5)=>{"use strict";var Rgr=j5();I5.exports=Rgr});var N5=c((Ioe,O5)=>{"use strict";var zgr=Ue().factory,Vgr=Be(),Ugr=zgr(Vgr("integer"));O5.exports=Ugr});var ff=c((Ooe,D5)=>{"use strict";var Cgr=N5();D5.exports=Cgr});var B5=c((Noe,k5)=>{"use strict";var Pgr=Ue().factory,Lgr=Be(),Mgr=Pgr(Lgr("numeric"));k5.exports=Mgr});var lf=c((Doe,F5)=>{"use strict";var Ggr=B5();F5.exports=Ggr});var z5=c((koe,R5)=>{"use strict";var Ygr=Pe(),$gr=Ygr(Object.assign);R5.exports=$gr});var U5=c((Boe,V5)=>{"use strict";var Wgr=Object.assign;V5.exports=Wgr});var P5=c((Foe,C5)=>{"use strict";var Jgr=typeof Object.getOwnPropertySymbols<"u";C5.exports=Jgr});var G5=c((Roe,M5)=>{"use strict";var L5=Ut(),Xgr=L5.getOwnPropertySymbols;function Kgr(r){return Xgr(L5(r))}M5.exports=Kgr});var $5=c((zoe,Y5)=>{"use strict";function Hgr(){return[]}Y5.exports=Hgr});var df=c((Voe,W5)=>{"use strict";var Zgr=P5(),Qgr=G5(),r2r=$5(),cf;Zgr?cf=Qgr:cf=r2r;W5.exports=cf});var X5=c((Uoe,J5)=>{"use strict";var e2r=Aa(),a2r=df(),t2r=Mi();function i2r(r){var e,a,t;for(e=e2r(r),a=a2r(r),t=0;t<a.length;t++)t2r(r,a[t])&&e.push(a[t]);return e}J5.exports=i2r});var H5=c((Coe,K5)=>{"use strict";var o2r=X5();K5.exports=o2r});var r8=c((Poe,Q5)=>{"use strict";var n2r=H5(),Z5=Ut(),s2r=pr();function u2r(r){var e,a,t,o,i,n,s;if(r==null)throw new TypeError(s2r("invalid argument. First argument must be a non-null object. Value: `%s`.",r));for(i=Z5(r),n=1;n<arguments.length;n++)if(e=arguments[n],e!=null)for(a=n2r(Z5(e)),o=a.length,s=0;s<o;s++)t=a[s],i[t]=e[t];return i}Q5.exports=u2r});var a8=c((Loe,e8)=>{"use strict";var v2r=z5(),f2r=U5(),l2r=r8(),pf;v2r?pf=f2r:pf=l2r;e8.exports=pf});var i8=c((Moe,t8)=>{"use strict";var c2r=a8();function d2r(r,e){var a=r.flags;return typeof a!="object"||a===null?{}:e?c2r({},a):a}t8.exports=d2r});var So=c((Goe,o8)=>{"use strict";var p2r=i8();o8.exports=p2r});var s8=c((Yoe,n8)=>{"use strict";var y2r=So();function m2r(r,e){return y2r(r,!1)[e]}n8.exports=m2r});var yf=c(($oe,u8)=>{"use strict";var h2r=s8();u8.exports=h2r});var f8=c((Woe,v8)=>{"use strict";var g2r=yf();function b2r(r){return g2r(r,"READONLY")===!0}v8.exports=b2r});var Le=c((Joe,l8)=>{"use strict";var x2r=f8();l8.exports=x2r});var d8=c((Xoe,c8)=>{"use strict";var q2r=Ue().factory,w2r=Be(),S2r=q2r(w2r("real"));c8.exports=S2r});var Gn=c((Koe,p8)=>{"use strict";var E2r=d8();p8.exports=E2r});var m8=c((Hoe,y8)=>{"use strict";var A2r=Ue().factory,_2r=Be(),T2r=A2r(_2r("real_floating_point"));y8.exports=T2r});var mf=c((Zoe,h8)=>{"use strict";var j2r=m8();h8.exports=j2r});var x8=c((Qoe,b8)=>{"use strict";var g8=vi();function I2r(r){var e,a,t,o;if(e=r.length,e===0)return!1;for(a=g8(r[0]),o=1;o<e;o++){if(t=g8(r[o]),t>a)return!1;a=t}return!0}b8.exports=I2r});var Yn=c((rne,q8)=>{"use strict";var O2r=x8();q8.exports=O2r});var S8=c((ene,w8)=>{"use strict";var N2r=qo(),D2r=Ea(),k2r=Yn();function B2r(r,e,a){return D2r(e)!==0&&k2r(e)&&N2r(r,e,a)}w8.exports=B2r});var A8=c((ane,E8)=>{"use strict";var F2r=S8();E8.exports=F2r});var T8=c((tne,_8)=>{"use strict";var R2r=Ue().factory,z2r=Be(),V2r=R2r(z2r("signed_integer"));_8.exports=V2r});var $n=c((ine,j8)=>{"use strict";var U2r=T8();j8.exports=U2r});var O8=c((one,I8)=>{"use strict";var C2r=Ue().factory,P2r=Be(),L2r=C2r(P2r("unsigned_integer"));I8.exports=L2r});var Wn=c((nne,N8)=>{"use strict";var M2r=O8();N8.exports=M2r});var k8=c((sne,D8)=>{"use strict";var de=zt(),le={};de(le,"hasEqualShape",r5());de(le,"isAllowedDataTypeCast",Pv());de(le,"isBooleanDataType",i5());de(le,"isBufferLengthCompatible",jv());de(le,"isBufferLengthCompatibleShape",u5());de(le,"isCastingMode",Fv());de(le,"isColumnMajor",vf());de(le,"isColumnMajorContiguous",b5());de(le,"isComplexFloatingPointDataType",wo());de(le,"isContiguous",_5());de(le,"isDataType",di());de(le,"isFloatingPointDataType",Mn());de(le,"isIndexMode",pi());de(le,"isIntegerDataType",ff());de(le,"isMostlySafeDataTypeCast",In());de(le,"isNumericDataType",lf());de(le,"isOrder",Ta());de(le,"isReadOnly",Le());de(le,"isRealDataType",Gn());de(le,"isRealFloatingPointDataType",mf());de(le,"isRowMajor",Yn());de(le,"isRowMajorContiguous",A8());de(le,"isSafeDataTypeCast",_n());de(le,"isSameKindDataTypeCast",Cv());de(le,"isSignedIntegerDataType",$n());de(le,"isSingleSegmentCompatible",qo());de(le,"isUnsignedIntegerDataType",Wn());D8.exports=le});var F8=c((une,B8)=>{"use strict";function G2r(r){return r.dtype}B8.exports=G2r});var Xe=c((vne,R8)=>{"use strict";var Y2r=F8();R8.exports=Y2r});var V8=c((fne,z8)=>{"use strict";var $2r=ze(),W2r=jt(),J2r="row-major";function X2r(r,e){var a,t,o;return o=r.strides,typeof o!="object"||o===null?(t=r.shape,t.length===0?[0]:(a=r.order,typeof a!="string"&&(a=J2r),$2r(t,a))):e?W2r(o):o}z8.exports=X2r});var ba=c((lne,U8)=>{"use strict";var K2r=V8();U8.exports=K2r});var P8=c((cne,C8)=>{"use strict";var H2r=Ye();function Z2r(r){var e,a,t;return t=r.offset,typeof t=="number"?t:(a=r.shape,a.length===0||(e=r.strides,typeof e!="object"||e===null)?0:H2r(a,e))}C8.exports=Z2r});var Ha=c((dne,L8)=>{"use strict";var Q2r=P8();L8.exports=Q2r});var G8=c((pne,M8)=>{"use strict";var rbr=Pt(),hf="row-major",ebr="column-major";function abr(r){var e,a;return a=r.order,typeof a=="string"?a:(e=r.strides,typeof e!="object"||e===null||(a=rbr(e),a===1||a===3)?hf:a===2?ebr:r.shape.length===0?hf:null)}M8.exports=abr});var sa=c((yne,Y8)=>{"use strict";var tbr=G8();Y8.exports=tbr});var W8=c((mne,$8)=>{"use strict";function ibr(r){return r.data}$8.exports=ibr});var lt=c((hne,J8)=>{"use strict";var obr=W8();J8.exports=obr});var K8=c((gne,X8)=>{"use strict";var nbr=it(),sbr=ot(),ubr=bi(),vbr=Et(),fbr=gi(),lbr=Jr(),cbr=Xe(),dbr=Te(),pbr=ba(),ybr=Ha(),mbr=sa(),hbr=lt();function gbr(r){var e,a,t,o;return e=hbr(r),t=dbr(r,!0),o=cbr(r),a=nbr(e),{ref:r,dtype:o,data:e,length:lbr(t),shape:t,strides:pbr(r,!0),offset:ybr(r),order:mbr(r),accessorProtocol:a,accessors:a?[sbr(o),ubr(o)]:[vbr(o),fbr(o)]}}X8.exports=gbr});var ei=c((bne,H8)=>{"use strict";var bbr=K8();H8.exports=bbr});var Q8=c((xne,Z8)=>{"use strict";function xbr(r){var e,a;if(e=[],r<=0)return e;for(a=0;a<r;a++)e.push(a);return e}Z8.exports=xbr});var a_=c((qne,e_)=>{"use strict";var qbr=ft(),wbr=oo(),Sbr=io();function Ebr(r,e,a){var t,o;for(o=a,t=0;o>=0&&o<r.length;)r[o]=t,o+=e,t+=1;return r}function r_(r,e,a,t){var o,i,n;for(i=a*2,n=t*2,o=0;n>=0&&n<e.length;)e[n]=o,e[n+1]=0,n+=i,o+=1;return r}function Abr(r,e,a){var t,o,i,n;for(t=r.data,o=r.accessors[1],n=a,i=0;n>=0&&n<t.length;)o(t,n,i),n+=e,i+=1;return t}function _br(r,e,a){var t=qbr(r);return t.accessorProtocol?t.dtype==="complex128"?r_(r,wbr(r,0),e,a):t.dtype==="complex64"?r_(r,Sbr(r,0),e,a):Abr(t,e,a):Ebr(r,e,a)}e_.exports=_br});var qe=c((wne,i_)=>{"use strict";var Tbr=Ir(),t_=Q8(),jbr=a_();Tbr(t_,"assign",jbr);i_.exports=t_});var n_=c((Sne,o_)=>{"use strict";function Ibr(r,e){var a,t;for(a=[],t=0;t<e.length;t++)a.push(r[e[t]]);return a}o_.exports=Ibr});var Kr=c((Ene,s_)=>{"use strict";var Obr=n_();s_.exports=Obr});var v_=c((Ane,u_)=>{"use strict";function Nbr(r,e){var a,t,o,i,n,s,u,v,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(u=r[o],a=u<0?-u:u,v=e[i],n=o-1,s=i-1;n>=0&&(f=r[n],t=f<0?-f:f,!(t<=a));)r[n+1]=f,e[s+1]=e[s],n-=1,s-=1;r[n+1]=u,e[s+1]=v,o+=1,i+=1}}u_.exports=Nbr});var c_=c((_ne,l_)=>{"use strict";var Dbr=qe(),kbr=jt(),f_=Kr(),Bbr=v_();function Fbr(r,e,a){var t;return t=Dbr(r.length),e=kbr(e),Bbr(e,t),r=f_(r,t),a=f_(a,t),{sh:r,sx:e,sy:a,idx:t}}l_.exports=Fbr});var zr=c((Tne,d_)=>{"use strict";var Rbr=c_();d_.exports=Rbr});var y_=c((jne,p_)=>{"use strict";var zbr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};p_.exports=zbr});var g_=c((Ine,h_)=>{"use strict";var m_=xt(),gf=y_();function Vbr(r,e){var a,t;return a=m_(r),t=m_(e),a===null||t===null?gf.BLOCK_SIZE_IN_ELEMENTS:a>t?gf.BLOCK_SIZE_IN_BYTES/a|0:gf.BLOCK_SIZE_IN_BYTES/t|0}h_.exports=Vbr});var Rr=c((One,b_)=>{"use strict";var Ubr=g_();b_.exports=Ubr});var q_=c((Nne,x_)=>{"use strict";var Cbr=zr(),Pbr=Rr();function Lbr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T;for(T=Cbr(r.shape,r.strides,e.strides),y=T.sh,h=T.sx,g=T.sy,a=Pbr(r.dtype,e.dtype),b=r.offset,S=e.offset,t=r.data,o=e.data,s=h[0],v=g[0],i=r.accessors[0],n=e.accessors[1],q=y[1];q>0;)for(q<a?(m=q,q=0):(m=a,q-=a),l=b+q*h[1],d=S+q*g[1],E=y[0];E>0;)for(E<a?(p=E,E=0):(p=a,E-=a),w=l+E*h[0],A=d+E*g[0],u=h[1]-p*h[0],f=g[1]-p*g[0],x=0;x<m;x++){for(_=0;_<p;_++)n(o,A,i(t,w)),w+=s,A+=v;w+=u,A+=f}}x_.exports=Lbr});var S_=c((Dne,w_)=>{"use strict";var Mbr=zr(),Gbr=Rr();function Ybr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(F=Mbr(r.shape,r.strides,e.strides),g=F.sh,A=F.sx,_=F.sy,a=Gbr(r.dtype,e.dtype),x=r.offset,E=e.offset,t=r.data,o=e.data,s=A[0],f=_[0],i=r.accessors[0],n=e.accessors[1],N=g[2];N>0;)for(N<a?(w=N,N=0):(w=a,N-=a),p=x+N*A[2],h=E+N*_[2],k=g[1];k>0;)for(k<a?(S=k,k=0):(S=a,k-=a),v=A[2]-S*A[1],d=_[2]-S*_[1],y=p+k*A[1],m=h+k*_[1],D=g[0];D>0;)for(D<a?(b=D,D=0):(b=a,D-=a),q=y+D*A[0],T=m+D*_[0],u=A[1]-b*A[0],l=_[1]-b*_[0],I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++)n(o,T,i(t,q)),q+=s,T+=f;q+=u,T+=l}q+=v,T+=d}}w_.exports=Ybr});var A_=c((kne,E_)=>{"use strict";var $br=zr(),Wbr=Rr();function Jbr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P;for(P=$br(r.shape,r.strides,e.strides),A=P.sh,T=P.sx,j=P.sy,a=Wbr(r.dtype,e.dtype),O=r.offset,I=e.offset,t=r.data,o=e.data,s=T[0],l=j[0],i=r.accessors[0],n=e.accessors[1],C=A[3];C>0;)for(C<a?(q=C,C=0):(q=a,C-=a),g=O+C*T[3],w=I+C*j[3],U=A[2];U>0;)for(U<a?(E=U,U=0):(E=a,U-=a),f=T[3]-E*T[2],p=j[3]-E*j[2],h=g+U*T[2],S=w+U*j[2],V=A[1];V>0;)for(V<a?(x=V,V=0):(x=a,V-=a),v=T[2]-x*T[1],y=j[2]-x*j[1],m=h+V*T[1],b=S+V*j[1],z=A[0];z>0;)for(z<a?(_=z,z=0):(_=a,z-=a),D=m+z*T[0],k=b+z*j[0],u=T[1]-_*T[0],d=j[1]-_*j[0],B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++)n(o,k,i(t,D)),D+=s,k+=l;D+=u,k+=d}D+=v,k+=y}D+=f,k+=p}}E_.exports=Jbr});var T_=c((Bne,__)=>{"use strict";var Xbr=zr(),Kbr=Rr();function Hbr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J;for(J=Xbr(r.shape,r.strides,e.strides),q=J.sh,k=J.sx,N=J.sy,a=Kbr(r.dtype,e.dtype),F=r.offset,R=e.offset,t=r.data,o=e.data,s=k[0],d=N[0],i=r.accessors[0],n=e.accessors[1],W=q[4];W>0;)for(W<a?(D=W,W=0):(D=a,W-=a),w=F+W*k[4],E=R+W*N[4],Y=q[3];Y>0;)for(Y<a?(I=Y,Y=0):(I=a,Y-=a),l=k[4]-I*k[3],h=N[4]-I*N[3],S=w+Y*k[3],x=E+Y*N[3],$=q[2];$>0;)for($<a?(O=$,$=0):(O=a,$-=a),f=k[3]-O*k[2],m=N[3]-O*N[2],b=S+$*k[2],_=x+$*N[2],G=q[1];G>0;)for(G<a?(j=G,G=0):(j=a,G-=a),v=k[2]-j*k[1],p=N[2]-j*N[1],g=b+G*k[1],A=_+G*N[1],M=q[0];M>0;)for(M<a?(T=M,M=0):(T=a,M-=a),B=g+M*k[0],z=A+M*N[0],u=k[1]-T*k[0],y=N[1]-T*N[0],L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++)n(o,z,i(t,B)),B+=s,z+=d;B+=u,z+=y}B+=v,z+=p}B+=f,z+=m}B+=l,z+=h}}__.exports=Hbr});var I_=c((Fne,j_)=>{"use strict";var Zbr=zr(),Qbr=Rr();function rxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar;for(ar=Zbr(r.shape,r.strides,e.strides),I=ar.sh,z=ar.sx,V=ar.sy,a=Qbr(r.dtype,e.dtype),U=r.offset,C=e.offset,t=r.data,o=e.data,s=z[0],y=V[0],i=r.accessors[0],n=e.accessors[1],rr=I[5];rr>0;)for(rr<a?(B=rr,rr=0):(B=a,rr-=a),x=U+rr*z[5],O=C+rr*V[5],Z=I[4];Z>0;)for(Z<a?(R=Z,Z=0):(R=a,Z-=a),d=z[5]-R*z[4],b=V[5]-R*V[4],_=x+Z*z[4],j=O+Z*V[4],Q=I[3];Q>0;)for(Q<a?(F=Q,Q=0):(F=a,Q-=a),l=z[4]-F*z[3],g=V[4]-F*V[3],A=_+Q*z[3],T=j+Q*V[3],H=I[2];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=z[3]-N*z[2],h=V[3]-N*V[2],w=A+H*z[2],q=T+H*V[2],K=I[1];K>0;)for(K<a?(k=K,K=0):(k=a,K-=a),v=z[2]-k*z[1],m=V[2]-k*V[1],S=w+K*z[1],E=q+K*V[1],X=I[0];X>0;)for(X<a?(D=X,X=0):(D=a,X-=a),P=S+X*z[0],L=E+X*V[0],u=z[1]-D*z[0],p=V[1]-D*V[0],J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++)n(o,L,i(t,P)),P+=s,L+=y;P+=u,L+=p}P+=v,L+=m}P+=f,L+=h}P+=l,L+=g}P+=d,L+=b}}j_.exports=rxr});var N_=c((Rne,O_)=>{"use strict";var exr=zr(),axr=Rr();function txr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur;for(ur=exr(r.shape,r.strides,e.strides),F=ur.sh,L=ur.sx,M=ur.sy,a=axr(r.dtype,e.dtype),G=r.offset,$=e.offset,t=r.data,o=e.data,s=L[0],p=M[0],i=r.accessors[0],n=e.accessors[1],sr=F[6];sr>0;)for(sr<a?(P=sr,sr=0):(P=a,sr-=a),T=G+sr*L[6],N=$+sr*M[6],nr=F[5];nr>0;)for(nr<a?(C=nr,nr=0):(C=a,nr-=a),y=L[6]-C*L[5],w=M[6]-C*M[5],q=T+nr*L[5],k=N+nr*M[5],or=F[4];or>0;)for(or<a?(U=or,or=0):(U=a,or-=a),d=L[5]-U*L[4],S=M[5]-U*M[4],E=q+or*L[4],D=k+or*M[4],tr=F[3];tr>0;)for(tr<a?(V=tr,tr=0):(V=a,tr-=a),l=L[4]-V*L[3],b=M[4]-V*M[3],x=E+tr*L[3],I=D+tr*M[3],ir=F[2];ir>0;)for(ir<a?(z=ir,ir=0):(z=a,ir-=a),f=L[3]-z*L[2],g=M[3]-z*M[2],_=x+ir*L[2],O=I+ir*M[2],er=F[1];er>0;)for(er<a?(B=er,er=0):(B=a,er-=a),v=L[2]-B*L[1],h=M[2]-B*M[1],A=_+er*L[1],j=O+er*M[1],ar=F[0];ar>0;)for(ar<a?(R=ar,ar=0):(R=a,ar-=a),Y=A+ar*L[0],W=j+ar*M[0],u=L[1]-R*L[0],m=M[1]-R*M[0],rr=0;rr<P;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++)n(o,W,i(t,Y)),Y+=s,W+=p;Y+=u,W+=m}Y+=v,W+=h}Y+=f,W+=g}Y+=l,W+=b}Y+=d,W+=S}Y+=y,W+=w}}O_.exports=txr});var k_=c((zne,D_)=>{"use strict";var ixr=zr(),oxr=Rr();function nxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr;for(hr=ixr(r.shape,r.strides,e.strides),V=hr.sh,W=hr.sx,J=hr.sy,a=oxr(r.dtype,e.dtype),X=r.offset,K=e.offset,t=r.data,o=e.data,s=W[0],m=J[0],i=r.accessors[0],n=e.accessors[1],mr=V[7];mr>0;)for(mr<a?(Y=mr,mr=0):(Y=a,mr-=a),I=X+mr*W[7],z=K+mr*J[7],dr=V[6];dr>0;)for(dr<a?($=dr,dr=0):($=a,dr-=a),p=W[7]-$*W[6],_=J[7]-$*J[6],O=I+dr*W[6],B=z+dr*J[6],yr=V[5];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),y=W[6]-G*W[5],A=J[6]-G*J[5],j=O+yr*W[5],R=B+yr*J[5],fr=V[4];fr>0;)for(fr<a?(M=fr,fr=0):(M=a,fr-=a),d=W[5]-M*W[4],w=J[5]-M*J[4],T=j+fr*W[4],F=R+fr*J[4],lr=V[3];lr>0;)for(lr<a?(L=lr,lr=0):(L=a,lr-=a),l=W[4]-L*W[3],S=J[4]-L*J[3],q=T+lr*W[3],N=F+lr*J[3],vr=V[2];vr>0;)for(vr<a?(P=vr,vr=0):(P=a,vr-=a),f=W[3]-P*W[2],b=J[3]-P*J[2],E=q+vr*W[2],k=N+vr*J[2],ur=V[1];ur>0;)for(ur<a?(C=ur,ur=0):(C=a,ur-=a),v=W[2]-C*W[1],g=J[2]-C*J[1],x=E+ur*W[1],D=k+ur*J[1],sr=V[0];sr>0;)for(sr<a?(U=sr,sr=0):(U=a,sr-=a),H=x+sr*W[0],Q=D+sr*J[0],u=W[1]-U*W[0],h=J[1]-U*J[0],nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<U;Z++)n(o,Q,i(t,H)),H+=s,Q+=m;H+=u,Q+=h}H+=v,Q+=g}H+=f,Q+=b}H+=l,Q+=S}H+=d,Q+=w}H+=y,Q+=A}H+=p,Q+=_}}D_.exports=nxr});var F_=c((Vne,B_)=>{"use strict";var sxr=zr(),uxr=Rr();function vxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r;for(_r=sxr(r.shape,r.strides,e.strides),L=_r.sh,Q=_r.sx,Z=_r.sy,a=uxr(r.dtype,e.dtype),rr=r.offset,ar=e.offset,t=r.data,o=e.data,s=Q[0],h=Z[0],i=r.accessors[0],n=e.accessors[1],Ar=L[8];Ar>0;)for(Ar<a?(H=Ar,Ar=0):(H=a,Ar-=a),N=rr+Ar*Q[8],P=ar+Ar*Z[8],gr=L[7];gr>0;)for(gr<a?(K=gr,gr=0):(K=a,gr-=a),m=Q[8]-K*Q[7],E=Z[8]-K*Z[7],k=N+gr*Q[7],C=P+gr*Z[7],qr=L[6];qr>0;)for(qr<a?(X=qr,qr=0):(X=a,qr-=a),p=Q[7]-X*Q[6],x=Z[7]-X*Z[6],D=k+qr*Q[6],U=C+qr*Z[6],xr=L[5];xr>0;)for(xr<a?(J=xr,xr=0):(J=a,xr-=a),y=Q[6]-J*Q[5],_=Z[6]-J*Z[5],I=D+xr*Q[5],V=U+xr*Z[5],wr=L[4];wr>0;)for(wr<a?(W=wr,wr=0):(W=a,wr-=a),d=Q[5]-W*Q[4],A=Z[5]-W*Z[4],O=I+wr*Q[4],z=V+wr*Z[4],br=L[3];br>0;)for(br<a?(Y=br,br=0):(Y=a,br-=a),l=Q[4]-Y*Q[3],w=Z[4]-Y*Z[3],j=O+br*Q[3],B=z+br*Z[3],hr=L[2];hr>0;)for(hr<a?($=hr,hr=0):($=a,hr-=a),f=Q[3]-$*Q[2],S=Z[3]-$*Z[2],T=j+hr*Q[2],R=B+hr*Z[2],mr=L[1];mr>0;)for(mr<a?(G=mr,mr=0):(G=a,mr-=a),v=Q[2]-G*Q[1],b=Z[2]-G*Z[1],q=T+mr*Q[1],F=R+mr*Z[1],dr=L[0];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),er=q+dr*Q[0],ir=F+dr*Z[0],u=Q[1]-M*Q[0],g=Z[1]-M*Z[0],yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++)n(o,ir,i(t,er)),er+=s,ir+=h;er+=u,ir+=g}er+=v,ir+=b}er+=f,ir+=S}er+=l,ir+=w}er+=d,ir+=A}er+=y,ir+=_}er+=p,ir+=x}er+=m,ir+=E}}B_.exports=vxr});var z_=c((Une,R_)=>{"use strict";var fxr=zr(),lxr=Rr();function cxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr,ie;for(ie=fxr(r.shape,r.strides,e.strides),Y=ie.sh,ir=ie.sx,tr=ie.sy,a=lxr(r.dtype,e.dtype),or=r.offset,nr=e.offset,t=r.data,o=e.data,s=ir[0],g=tr[0],i=r.accessors[0],n=e.accessors[1],Hr=Y[9];Hr>0;)for(Hr<a?(er=Hr,Hr=0):(er=a,Hr-=a),B=or+Hr*ir[9],$=nr+Hr*tr[9],Vr=Y[8];Vr>0;)for(Vr<a?(ar=Vr,Vr=0):(ar=a,Vr-=a),h=ir[9]-ar*ir[8],T=tr[9]-ar*tr[8],R=B+Vr*ir[8],G=$+Vr*tr[8],Fr=Y[7];Fr>0;)for(Fr<a?(rr=Fr,Fr=0):(rr=a,Fr-=a),m=ir[8]-rr*ir[7],q=tr[8]-rr*tr[7],F=R+Fr*ir[7],M=G+Fr*tr[7],Or=Y[6];Or>0;)for(Or<a?(Z=Or,Or=0):(Z=a,Or-=a),p=ir[7]-Z*ir[6],E=tr[7]-Z*tr[6],N=F+Or*ir[6],L=M+Or*tr[6],jr=Y[5];jr>0;)for(jr<a?(Q=jr,jr=0):(Q=a,jr-=a),y=ir[6]-Q*ir[5],x=tr[6]-Q*tr[5],k=N+jr*ir[5],P=L+jr*tr[5],Tr=Y[4];Tr>0;)for(Tr<a?(H=Tr,Tr=0):(H=a,Tr-=a),d=ir[5]-H*ir[4],_=tr[5]-H*tr[4],D=k+Tr*ir[4],C=P+Tr*tr[4],_r=Y[3];_r>0;)for(_r<a?(K=_r,_r=0):(K=a,_r-=a),l=ir[4]-K*ir[3],A=tr[4]-K*tr[3],I=D+_r*ir[3],U=C+_r*tr[3],Ar=Y[2];Ar>0;)for(Ar<a?(X=Ar,Ar=0):(X=a,Ar-=a),f=ir[3]-X*ir[2],w=tr[3]-X*tr[2],O=I+Ar*ir[2],V=U+Ar*tr[2],gr=Y[1];gr>0;)for(gr<a?(J=gr,gr=0):(J=a,gr-=a),v=ir[2]-J*ir[1],S=tr[2]-J*tr[1],j=O+gr*ir[1],z=V+gr*tr[1],qr=Y[0];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),sr=j+qr*ir[0],ur=z+qr*tr[0],u=ir[1]-W*ir[0],b=tr[1]-W*tr[0],xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(vr=0;vr<W;vr++)n(o,ur,i(t,sr)),sr+=s,ur+=g;sr+=u,ur+=b}sr+=v,ur+=S}sr+=f,ur+=w}sr+=l,ur+=A}sr+=d,ur+=_}sr+=y,ur+=x}sr+=p,ur+=E}sr+=m,ur+=q}sr+=h,ur+=T}}R_.exports=cxr});var U_=c((Cne,V_)=>{"use strict";var dxr=zr(),pxr=Rr();function yxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E;for(E=dxr(r.shape,r.strides,e.strides),l=E.sh,p=E.sx,m=E.sy,a=pxr(r.dtype,e.dtype),h=r.offset,g=e.offset,t=r.data,o=e.data,i=p[0],s=m[0],x=l[1];x>0;)for(x<a?(y=x,x=0):(y=a,x-=a),v=h+x*p[1],f=g+x*m[1],_=l[0];_>0;)for(_<a?(d=_,_=0):(d=a,_-=a),b=v+_*p[0],S=f+_*m[0],n=p[1]-d*p[0],u=m[1]-d*m[0],A=0;A<y;A++){for(w=0;w<d;w++)o[S]=t[b],b+=i,S+=s;b+=n,S+=u}}V_.exports=yxr});var P_=c((Pne,C_)=>{"use strict";var mxr=zr(),hxr=Rr();function gxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(k=mxr(r.shape,r.strides,e.strides),m=k.sh,S=k.sx,w=k.sy,a=hxr(r.dtype,e.dtype),A=r.offset,_=e.offset,t=r.data,o=e.data,i=S[0],u=w[0],D=m[2];D>0;)for(D<a?(b=D,D=0):(b=a,D-=a),d=A+D*S[2],p=_+D*w[2],I=m[1];I>0;)for(I<a?(g=I,I=0):(g=a,I-=a),s=S[2]-g*S[1],f=w[2]-g*w[1],l=d+I*S[1],y=p+I*w[1],O=m[0];O>0;)for(O<a?(h=O,O=0):(h=a,O-=a),x=l+O*S[0],E=y+O*w[0],n=S[1]-h*S[0],v=w[1]-h*w[0],j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++)o[E]=t[x],x+=i,E+=u;x+=n,E+=v}x+=s,E+=f}}C_.exports=gxr});var M_=c((Lne,L_)=>{"use strict";var bxr=zr(),xxr=Rr();function qxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(U=bxr(r.shape,r.strides,e.strides),S=U.sh,E=U.sx,q=U.sy,a=xxr(r.dtype,e.dtype),T=r.offset,j=e.offset,t=r.data,o=e.data,i=E[0],v=q[0],V=S[3];V>0;)for(V<a?(x=V,V=0):(x=a,V-=a),m=T+V*E[3],b=j+V*q[3],z=S[2];z>0;)for(z<a?(_=z,z=0):(_=a,z-=a),u=E[3]-_*E[2],d=q[3]-_*q[2],p=m+z*E[2],g=b+z*q[2],B=S[1];B>0;)for(B<a?(A=B,B=0):(A=a,B-=a),s=E[2]-A*E[1],l=q[2]-A*q[1],y=p+B*E[1],h=g+B*q[1],R=S[0];R>0;)for(R<a?(w=R,R=0):(w=a,R-=a),O=y+R*E[0],I=h+R*q[0],n=E[1]-w*E[0],f=q[1]-w*q[0],F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)o[I]=t[O],O+=i,I+=v;O+=n,I+=f}O+=s,I+=l}O+=u,I+=d}}L_.exports=qxr});var Y_=c((Mne,G_)=>{"use strict";var wxr=zr(),Sxr=Rr();function Exr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(Y=wxr(r.shape,r.strides,e.strides),x=Y.sh,I=Y.sx,D=Y.sy,a=Sxr(r.dtype,e.dtype),k=r.offset,N=e.offset,t=r.data,o=e.data,i=I[0],f=D[0],$=x[4];$>0;)for($<a?(O=$,$=0):(O=a,$-=a),b=k+$*I[4],_=N+$*D[4],G=x[3];G>0;)for(G<a?(j=G,G=0):(j=a,G-=a),v=I[4]-j*I[3],p=D[4]-j*D[3],g=b+G*I[3],A=_+G*D[3],M=x[2];M>0;)for(M<a?(T=M,M=0):(T=a,M-=a),u=I[3]-T*I[2],y=D[3]-T*D[2],h=g+M*I[2],w=A+M*D[2],L=x[1];L>0;)for(L<a?(q=L,L=0):(q=a,L-=a),s=I[2]-q*I[1],d=D[2]-q*D[1],m=h+L*I[1],S=w+L*D[1],P=x[0];P>0;)for(P<a?(E=P,P=0):(E=a,P-=a),F=m+P*I[0],R=S+P*D[0],n=I[1]-E*I[0],l=D[1]-E*D[0],C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++)o[R]=t[F],F+=i,R+=f;F+=n,R+=l}F+=s,R+=d}F+=u,R+=y}F+=v,R+=p}}G_.exports=Exr});var W_=c((Gne,$_)=>{"use strict";var Axr=zr(),_xr=Rr();function Txr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z;for(Z=Axr(r.shape,r.strides,e.strides),j=Z.sh,R=Z.sx,B=Z.sy,a=_xr(r.dtype,e.dtype),z=r.offset,V=e.offset,t=r.data,o=e.data,i=R[0],l=B[0],Q=j[5];Q>0;)for(Q<a?(F=Q,Q=0):(F=a,Q-=a),A=z+Q*R[5],T=V+Q*B[5],H=j[4];H>0;)for(H<a?(N=H,H=0):(N=a,H-=a),f=R[5]-N*R[4],h=B[5]-N*B[4],w=A+H*R[4],q=T+H*B[4],K=j[3];K>0;)for(K<a?(k=K,K=0):(k=a,K-=a),v=R[4]-k*R[3],m=B[4]-k*B[3],S=w+K*R[3],E=q+K*B[3],X=j[2];X>0;)for(X<a?(D=X,X=0):(D=a,X-=a),u=R[3]-D*R[2],p=B[3]-D*B[2],b=S+X*R[2],x=E+X*B[2],J=j[1];J>0;)for(J<a?(I=J,J=0):(I=a,J-=a),s=R[2]-I*R[1],y=B[2]-I*B[1],g=b+J*R[1],_=x+J*B[1],W=j[0];W>0;)for(W<a?(O=W,W=0):(O=a,W-=a),U=g+W*R[0],C=_+W*B[0],n=R[1]-O*R[0],d=B[1]-O*B[0],Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++)o[C]=t[U],U+=i,C+=l;U+=n,C+=d}U+=s,C+=y}U+=u,C+=p}U+=v,C+=m}U+=f,C+=h}}$_.exports=Txr});var X_=c((Yne,J_)=>{"use strict";var jxr=zr(),Ixr=Rr();function Oxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr;for(nr=jxr(r.shape,r.strides,e.strides),k=nr.sh,C=nr.sx,P=nr.sy,a=Ixr(r.dtype,e.dtype),L=r.offset,M=e.offset,t=r.data,o=e.data,i=C[0],d=P[0],or=k[6];or>0;)for(or<a?(U=or,or=0):(U=a,or-=a),E=L+or*C[6],D=M+or*P[6],tr=k[5];tr>0;)for(tr<a?(V=tr,tr=0):(V=a,tr-=a),l=C[6]-V*C[5],b=P[6]-V*P[5],x=E+tr*C[5],I=D+tr*P[5],ir=k[4];ir>0;)for(ir<a?(z=ir,ir=0):(z=a,ir-=a),f=C[5]-z*C[4],g=P[5]-z*P[4],_=x+ir*C[4],O=I+ir*P[4],er=k[3];er>0;)for(er<a?(B=er,er=0):(B=a,er-=a),v=C[4]-B*C[3],h=P[4]-B*P[3],A=_+er*C[3],j=O+er*P[3],ar=k[2];ar>0;)for(ar<a?(R=ar,ar=0):(R=a,ar-=a),u=C[3]-R*C[2],m=P[3]-R*P[2],w=A+ar*C[2],T=j+ar*P[2],rr=k[1];rr>0;)for(rr<a?(F=rr,rr=0):(F=a,rr-=a),s=C[2]-F*C[1],p=P[2]-F*P[1],S=w+rr*C[1],q=T+rr*P[1],Z=k[0];Z>0;)for(Z<a?(N=Z,Z=0):(N=a,Z-=a),G=S+Z*C[0],$=q+Z*P[0],n=C[1]-N*C[0],y=P[1]-N*P[0],Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++)o[$]=t[G],G+=i,$+=d;G+=n,$+=y}G+=s,$+=p}G+=u,$+=m}G+=v,$+=h}G+=f,$+=g}G+=l,$+=b}}J_.exports=Oxr});var H_=c(($ne,K_)=>{"use strict";var Nxr=zr(),Dxr=Rr();function kxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr;for(dr=Nxr(r.shape,r.strides,e.strides),B=dr.sh,$=dr.sx,Y=dr.sy,a=Dxr(r.dtype,e.dtype),W=r.offset,J=e.offset,t=r.data,o=e.data,i=$[0],y=Y[0],yr=B[7];yr>0;)for(yr<a?(G=yr,yr=0):(G=a,yr-=a),j=W+yr*$[7],R=J+yr*Y[7],fr=B[6];fr>0;)for(fr<a?(M=fr,fr=0):(M=a,fr-=a),d=$[7]-M*$[6],w=Y[7]-M*Y[6],T=j+fr*$[6],F=R+fr*Y[6],lr=B[5];lr>0;)for(lr<a?(L=lr,lr=0):(L=a,lr-=a),l=$[6]-L*$[5],S=Y[6]-L*Y[5],q=T+lr*$[5],N=F+lr*Y[5],vr=B[4];vr>0;)for(vr<a?(P=vr,vr=0):(P=a,vr-=a),f=$[5]-P*$[4],b=Y[5]-P*Y[4],E=q+vr*$[4],k=N+vr*Y[4],ur=B[3];ur>0;)for(ur<a?(C=ur,ur=0):(C=a,ur-=a),v=$[4]-C*$[3],g=Y[4]-C*Y[3],x=E+ur*$[3],D=k+ur*Y[3],sr=B[2];sr>0;)for(sr<a?(U=sr,sr=0):(U=a,sr-=a),u=$[3]-U*$[2],h=Y[3]-U*Y[2],_=x+sr*$[2],I=D+sr*Y[2],nr=B[1];nr>0;)for(nr<a?(V=nr,nr=0):(V=a,nr-=a),s=$[2]-V*$[1],m=Y[2]-V*Y[1],A=_+nr*$[1],O=I+nr*Y[1],or=B[0];or>0;)for(or<a?(z=or,or=0):(z=a,or-=a),X=A+or*$[0],K=O+or*Y[0],n=$[1]-z*$[0],p=Y[1]-z*Y[0],tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<U;Z++){for(Q=0;Q<V;Q++){for(H=0;H<z;H++)o[K]=t[X],X+=i,K+=y;X+=n,K+=p}X+=s,K+=m}X+=u,K+=h}X+=v,K+=g}X+=f,K+=b}X+=l,K+=S}X+=d,K+=w}}K_.exports=kxr});var Q_=c((Wne,Z_)=>{"use strict";var Bxr=zr(),Fxr=Rr();function Rxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr;for(gr=Bxr(r.shape,r.strides,e.strides),C=gr.sh,K=gr.sx,H=gr.sy,a=Fxr(r.dtype,e.dtype),Q=r.offset,Z=e.offset,t=r.data,o=e.data,i=K[0],p=H[0],qr=C[8];qr>0;)for(qr<a?(X=qr,qr=0):(X=a,qr-=a),D=Q+qr*K[8],U=Z+qr*H[8],xr=C[7];xr>0;)for(xr<a?(J=xr,xr=0):(J=a,xr-=a),y=K[8]-J*K[7],_=H[8]-J*H[7],I=D+xr*K[7],V=U+xr*H[7],wr=C[6];wr>0;)for(wr<a?(W=wr,wr=0):(W=a,wr-=a),d=K[7]-W*K[6],A=H[7]-W*H[6],O=I+wr*K[6],z=V+wr*H[6],br=C[5];br>0;)for(br<a?(Y=br,br=0):(Y=a,br-=a),l=K[6]-Y*K[5],w=H[6]-Y*H[5],j=O+br*K[5],B=z+br*H[5],hr=C[4];hr>0;)for(hr<a?($=hr,hr=0):($=a,hr-=a),f=K[5]-$*K[4],S=H[5]-$*H[4],T=j+hr*K[4],R=B+hr*H[4],mr=C[3];mr>0;)for(mr<a?(G=mr,mr=0):(G=a,mr-=a),v=K[4]-G*K[3],b=H[4]-G*H[3],q=T+mr*K[3],F=R+mr*H[3],dr=C[2];dr>0;)for(dr<a?(M=dr,dr=0):(M=a,dr-=a),u=K[3]-M*K[2],g=H[3]-M*H[2],E=q+dr*K[2],N=F+dr*H[2],yr=C[1];yr>0;)for(yr<a?(L=yr,yr=0):(L=a,yr-=a),s=K[2]-L*K[1],h=H[2]-L*H[1],x=E+yr*K[1],k=N+yr*H[1],fr=C[0];fr>0;)for(fr<a?(P=fr,fr=0):(P=a,fr-=a),rr=x+fr*K[0],ar=k+fr*H[0],n=K[1]-P*K[0],m=H[1]-P*H[0],lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++){for(ir=0;ir<L;ir++){for(er=0;er<P;er++)o[ar]=t[rr],rr+=i,ar+=p;rr+=n,ar+=m}rr+=s,ar+=h}rr+=u,ar+=g}rr+=v,ar+=b}rr+=f,ar+=S}rr+=l,ar+=w}rr+=d,ar+=A}rr+=y,ar+=_}}Z_.exports=Rxr});var eT=c((Jne,rT)=>{"use strict";var zxr=zr(),Vxr=Rr();function Uxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr;for(Vr=zxr(r.shape,r.strides,e.strides),G=Vr.sh,ar=Vr.sx,er=Vr.sy,a=Vxr(r.dtype,e.dtype),ir=r.offset,tr=e.offset,t=r.data,o=e.data,i=ar[0],m=er[0],Fr=G[9];Fr>0;)for(Fr<a?(rr=Fr,Fr=0):(rr=a,Fr-=a),F=ir+Fr*ar[9],M=tr+Fr*er[9],Or=G[8];Or>0;)for(Or<a?(Z=Or,Or=0):(Z=a,Or-=a),p=ar[9]-Z*ar[8],E=er[9]-Z*er[8],N=F+Or*ar[8],L=M+Or*er[8],jr=G[7];jr>0;)for(jr<a?(Q=jr,jr=0):(Q=a,jr-=a),y=ar[8]-Q*ar[7],x=er[8]-Q*er[7],k=N+jr*ar[7],P=L+jr*er[7],Tr=G[6];Tr>0;)for(Tr<a?(H=Tr,Tr=0):(H=a,Tr-=a),d=ar[7]-H*ar[6],_=er[7]-H*er[6],D=k+Tr*ar[6],C=P+Tr*er[6],_r=G[5];_r>0;)for(_r<a?(K=_r,_r=0):(K=a,_r-=a),l=ar[6]-K*ar[5],A=er[6]-K*er[5],I=D+_r*ar[5],U=C+_r*er[5],Ar=G[4];Ar>0;)for(Ar<a?(X=Ar,Ar=0):(X=a,Ar-=a),f=ar[5]-X*ar[4],w=er[5]-X*er[4],O=I+Ar*ar[4],V=U+Ar*er[4],gr=G[3];gr>0;)for(gr<a?(J=gr,gr=0):(J=a,gr-=a),v=ar[4]-J*ar[3],S=er[4]-J*er[3],j=O+gr*ar[3],z=V+gr*er[3],qr=G[2];qr>0;)for(qr<a?(W=qr,qr=0):(W=a,qr-=a),u=ar[3]-W*ar[2],b=er[3]-W*er[2],T=j+qr*ar[2],B=z+qr*er[2],xr=G[1];xr>0;)for(xr<a?(Y=xr,xr=0):(Y=a,xr-=a),s=ar[2]-Y*ar[1],g=er[2]-Y*er[1],q=T+xr*ar[1],R=B+xr*er[1],wr=G[0];wr>0;)for(wr<a?($=wr,wr=0):($=a,wr-=a),or=q+wr*ar[0],nr=R+wr*er[0],n=ar[1]-$*ar[0],h=er[1]-$*er[0],br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(vr=0;vr<W;vr++){for(ur=0;ur<Y;ur++){for(sr=0;sr<$;sr++)o[nr]=t[or],or+=i,nr+=m;or+=n,nr+=h}or+=s,nr+=g}or+=u,nr+=b}or+=v,nr+=S}or+=f,nr+=w}or+=l,nr+=A}or+=d,nr+=_}or+=y,nr+=x}or+=p,nr+=E}}rT.exports=Uxr});var tT=c((Xne,aT)=>{"use strict";function Cxr(r,e){e.accessors[1](e.data,e.offset,r.accessors[0](r.data,r.offset))}aT.exports=Cxr});var oT=c((Kne,iT)=>{"use strict";function Pxr(r,e){var a,t,o,i,n,s,u,v,f,l;for(u=r.shape[0],n=r.strides[0],s=e.strides[0],v=r.offset,f=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],l=0;l<u;l++)i(t,f,o(a,v)),v+=n,f+=s}iT.exports=Pxr});var sT=c((Hne,nT)=>{"use strict";function Lxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b;for(f=r.shape,y=r.strides,p=e.strides,r.order==="row-major"?(l=f[1],d=f[0],n=y[1],s=y[0]-l*y[1],u=p[1],v=p[0]-l*p[1]):(l=f[0],d=f[1],n=y[0],s=y[1]-l*y[0],u=p[0],v=p[1]-l*p[0]),m=r.offset,h=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],b=0;b<d;b++){for(g=0;g<l;g++)i(t,h,o(a,m)),m+=n,h+=u;m+=s,h+=v}}nT.exports=Lxr});var vT=c((Zne,uT)=>{"use strict";function Mxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_;for(d=r.shape,h=r.strides,g=e.strides,r.order==="row-major"?(y=d[2],p=d[1],m=d[0],n=h[2],s=h[1]-y*h[2],u=h[0]-p*h[1],v=g[2],f=g[1]-y*g[2],l=g[0]-p*g[1]):(y=d[0],p=d[1],m=d[2],n=h[0],s=h[1]-y*h[0],u=h[2]-p*h[1],v=g[0],f=g[1]-y*g[0],l=g[2]-p*g[1]),b=r.offset,S=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++)i(t,S,o(a,b)),b+=n,S+=v;b+=s,S+=f}b+=u,S+=l}}uT.exports=Mxr});var lT=c((Qne,fT)=>{"use strict";function Gxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T;for(p=r.shape,S=r.strides,w=e.strides,r.order==="row-major"?(m=p[3],h=p[2],g=p[1],b=p[0],n=S[3],s=S[2]-m*S[3],u=S[1]-h*S[2],v=S[0]-g*S[1],f=w[3],l=w[2]-m*w[3],d=w[1]-h*w[2],y=w[0]-g*w[1]):(m=p[0],h=p[1],g=p[2],b=p[3],n=S[0],s=S[1]-m*S[0],u=S[2]-h*S[1],v=S[3]-g*S[2],f=w[0],l=w[1]-m*w[0],d=w[2]-h*w[1],y=w[3]-g*w[2]),A=r.offset,_=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++)i(t,_,o(a,A)),A+=n,_+=f;A+=s,_+=l}A+=u,_+=d}A+=v,_+=y}}fT.exports=Gxr});var dT=c((rse,cT)=>{"use strict";function Yxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D;for(h=r.shape,_=r.strides,x=e.strides,r.order==="row-major"?(g=h[4],b=h[3],S=h[2],w=h[1],A=h[0],n=_[4],s=_[3]-g*_[4],u=_[2]-b*_[3],v=_[1]-S*_[2],f=_[0]-w*_[1],l=x[4],d=x[3]-g*x[4],y=x[2]-b*x[3],p=x[1]-S*x[2],m=x[0]-w*x[1]):(g=h[0],b=h[1],S=h[2],w=h[3],A=h[4],n=_[0],s=_[1]-g*_[0],u=_[2]-b*_[1],v=_[3]-S*_[2],f=_[4]-w*_[3],l=x[0],d=x[1]-g*x[0],y=x[2]-b*x[1],p=x[3]-S*x[2],m=x[4]-w*x[3]),E=r.offset,q=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++)i(t,q,o(a,E)),E+=n,q+=l;E+=s,q+=d}E+=u,q+=y}E+=v,q+=p}E+=f,q+=m}}cT.exports=Yxr});var yT=c((ese,pT)=>{"use strict";function $xr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R;for(b=r.shape,q=r.strides,T=e.strides,r.order==="row-major"?(S=b[5],w=b[4],A=b[3],_=b[2],x=b[1],E=b[0],n=q[5],s=q[4]-S*q[5],u=q[3]-w*q[4],v=q[2]-A*q[3],f=q[1]-_*q[2],l=q[0]-x*q[1],d=T[5],y=T[4]-S*T[5],p=T[3]-w*T[4],m=T[2]-A*T[3],h=T[1]-_*T[2],g=T[0]-x*T[1]):(S=b[0],w=b[1],A=b[2],_=b[3],x=b[4],E=b[5],n=q[0],s=q[1]-S*q[0],u=q[2]-w*q[1],v=q[3]-A*q[2],f=q[4]-_*q[3],l=q[5]-x*q[4],d=T[0],y=T[1]-S*T[0],p=T[2]-w*T[1],m=T[3]-A*T[2],h=T[4]-_*T[3],g=T[5]-x*T[4]),j=r.offset,O=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++)i(t,O,o(a,j)),j+=n,O+=d;j+=s,O+=y}j+=u,O+=p}j+=v,O+=m}j+=f,O+=h}j+=l,O+=g}}pT.exports=$xr});var hT=c((ase,mT)=>{"use strict";function Wxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(w=r.shape,O=r.strides,I=e.strides,r.order==="row-major"?(A=w[6],_=w[5],x=w[4],E=w[3],q=w[2],T=w[1],j=w[0],n=O[6],s=O[5]-A*O[6],u=O[4]-_*O[5],v=O[3]-x*O[4],f=O[2]-E*O[3],l=O[1]-q*O[2],d=O[0]-T*O[1],y=I[6],p=I[5]-A*I[6],m=I[4]-_*I[5],h=I[3]-x*I[4],g=I[2]-E*I[3],b=I[1]-q*I[2],S=I[0]-T*I[1]):(A=w[0],_=w[1],x=w[2],E=w[3],q=w[4],T=w[5],j=w[6],n=O[0],s=O[1]-A*O[0],u=O[2]-_*O[1],v=O[3]-x*O[2],f=O[4]-E*O[3],l=O[5]-q*O[4],d=O[6]-T*O[5],y=I[0],p=I[1]-A*I[0],m=I[2]-_*I[1],h=I[3]-x*I[2],g=I[4]-E*I[3],b=I[5]-q*I[4],S=I[6]-T*I[5]),D=r.offset,k=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++)i(t,k,o(a,D)),D+=n,k+=y;D+=s,k+=p}D+=u,k+=m}D+=v,k+=h}D+=f,k+=g}D+=l,k+=b}D+=d,k+=S}}mT.exports=Wxr});var bT=c((tse,gT)=>{"use strict";function Jxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M;for(_=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(x=_[7],E=_[6],q=_[5],T=_[4],j=_[3],O=_[2],I=_[1],D=_[0],n=k[7],s=k[6]-x*k[7],u=k[5]-E*k[6],v=k[4]-q*k[5],f=k[3]-T*k[4],l=k[2]-j*k[3],d=k[1]-O*k[2],y=k[0]-I*k[1],p=N[7],m=N[6]-x*N[7],h=N[5]-E*N[6],g=N[4]-q*N[5],b=N[3]-T*N[4],S=N[2]-j*N[3],w=N[1]-O*N[2],A=N[0]-I*N[1]):(x=_[0],E=_[1],q=_[2],T=_[3],j=_[4],O=_[5],I=_[6],D=_[7],n=k[0],s=k[1]-x*k[0],u=k[2]-E*k[1],v=k[3]-q*k[2],f=k[4]-T*k[3],l=k[5]-j*k[4],d=k[6]-O*k[5],y=k[7]-I*k[6],p=N[0],m=N[1]-x*N[0],h=N[2]-E*N[1],g=N[3]-q*N[2],b=N[4]-T*N[3],S=N[5]-j*N[4],w=N[6]-O*N[5],A=N[7]-I*N[6]),F=r.offset,R=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++)i(t,R,o(a,F)),F+=n,R+=p;F+=s,R+=m}F+=u,R+=h}F+=v,R+=g}F+=f,R+=b}F+=l,R+=S}F+=d,R+=w}F+=y,R+=A}}gT.exports=Jxr});var qT=c((ise,xT)=>{"use strict";function Xxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W;for(E=r.shape,R=r.strides,B=e.strides,r.order==="row-major"?(q=E[8],T=E[7],j=E[6],O=E[5],I=E[4],D=E[3],k=E[2],N=E[1],F=E[0],n=R[8],s=R[7]-q*R[8],u=R[6]-T*R[7],v=R[5]-j*R[6],f=R[4]-O*R[5],l=R[3]-I*R[4],d=R[2]-D*R[3],y=R[1]-k*R[2],p=R[0]-N*R[1],m=B[8],h=B[7]-q*B[8],g=B[6]-T*B[7],b=B[5]-j*B[6],S=B[4]-O*B[5],w=B[3]-I*B[4],A=B[2]-D*B[3],_=B[1]-k*B[2],x=B[0]-N*B[1]):(q=E[0],T=E[1],j=E[2],O=E[3],I=E[4],D=E[5],k=E[6],N=E[7],F=E[8],n=R[0],s=R[1]-q*R[0],u=R[2]-T*R[1],v=R[3]-j*R[2],f=R[4]-O*R[3],l=R[5]-I*R[4],d=R[6]-D*R[5],y=R[7]-k*R[6],p=R[8]-N*R[7],m=B[0],h=B[1]-q*B[0],g=B[2]-T*B[1],b=B[3]-j*B[2],S=B[4]-O*B[3],w=B[5]-I*B[4],A=B[6]-D*B[5],_=B[7]-k*B[6],x=B[8]-N*B[7]),z=r.offset,V=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++)i(t,V,o(a,z)),z+=n,V+=m;z+=s,V+=h}z+=u,V+=g}z+=v,V+=b}z+=f,V+=S}z+=l,V+=w}z+=d,V+=A}z+=y,V+=_}z+=p,V+=x}}xT.exports=Xxr});var ST=c((ose,wT)=>{"use strict";function Kxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H;for(T=r.shape,V=r.strides,U=e.strides,r.order==="row-major"?(j=T[9],O=T[8],I=T[7],D=T[6],k=T[5],N=T[4],F=T[3],R=T[2],B=T[1],z=T[0],n=V[9],s=V[8]-j*V[9],u=V[7]-O*V[8],v=V[6]-I*V[7],f=V[5]-D*V[6],l=V[4]-k*V[5],d=V[3]-N*V[4],y=V[2]-F*V[3],p=V[1]-R*V[2],m=V[0]-B*V[1],h=U[9],g=U[8]-j*U[9],b=U[7]-O*U[8],S=U[6]-I*U[7],w=U[5]-D*U[6],A=U[4]-k*U[5],_=U[3]-N*U[4],x=U[2]-F*U[3],E=U[1]-R*U[2],q=U[0]-B*U[1]):(j=T[0],O=T[1],I=T[2],D=T[3],k=T[4],N=T[5],F=T[6],R=T[7],B=T[8],z=T[9],n=V[0],s=V[1]-j*V[0],u=V[2]-O*V[1],v=V[3]-I*V[2],f=V[4]-D*V[3],l=V[5]-k*V[4],d=V[6]-N*V[5],y=V[7]-F*V[6],p=V[8]-R*V[7],m=V[9]-B*V[8],h=U[0],g=U[1]-j*U[0],b=U[2]-O*U[1],S=U[3]-I*U[2],w=U[4]-D*U[3],A=U[5]-k*U[4],_=U[6]-N*U[5],x=U[7]-F*U[6],E=U[8]-R*U[7],q=U[9]-B*U[8]),C=r.offset,P=e.offset,a=r.data,t=e.data,o=r.accessors[0],i=e.accessors[1],H=0;H<z;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++){for(L=0;L<j;L++)i(t,P,o(a,C)),C+=n,P+=h;C+=s,P+=g}C+=u,P+=b}C+=v,P+=S}C+=f,P+=w}C+=l,P+=A}C+=d,P+=_}C+=y,P+=x}C+=p,P+=E}C+=m,P+=q}}wT.exports=Kxr});var TT=c((nse,_T)=>{"use strict";var Hxr=Jr(),ET=na(),AT="throw";function Zxr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h;for(v=r.shape,n=Hxr(v),a=r.data,t=e.data,f=r.strides,l=e.strides,d=r.offset,y=e.offset,o=r.order,i=e.order,s=r.accessors[0],u=e.accessors[1],h=0;h<n;h++)p=ET(v,f,d,o,h,AT),m=ET(v,l,y,i,h,AT),u(t,m,s(a,p))}_T.exports=Zxr});var IT=c((sse,jT)=>{"use strict";function Qxr(r,e){e.data[e.offset]=r.data[r.offset]}jT.exports=Qxr});var NT=c((use,OT)=>{"use strict";function rqr(r,e){var a,t,o,i,n,s,u,v;for(n=r.shape[0],o=r.strides[0],i=e.strides[0],s=r.offset,u=e.offset,a=r.data,t=e.data,v=0;v<n;v++)t[u]=a[s],s+=o,u+=i}OT.exports=rqr});var kT=c((vse,DT)=>{"use strict";function eqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h;for(u=r.shape,l=r.strides,d=e.strides,r.order==="row-major"?(v=u[1],f=u[0],o=l[1],i=l[0]-v*l[1],n=d[1],s=d[0]-v*d[1]):(v=u[0],f=u[1],o=l[0],i=l[1]-v*l[0],n=d[0],s=d[1]-v*d[0]),y=r.offset,p=e.offset,a=r.data,t=e.data,h=0;h<f;h++){for(m=0;m<v;m++)t[p]=a[y],y+=o,p+=n;y+=i,p+=s}}DT.exports=eqr});var FT=c((fse,BT)=>{"use strict";function aqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(f=r.shape,p=r.strides,m=e.strides,r.order==="row-major"?(l=f[2],d=f[1],y=f[0],o=p[2],i=p[1]-l*p[2],n=p[0]-d*p[1],s=m[2],u=m[1]-l*m[2],v=m[0]-d*m[1]):(l=f[0],d=f[1],y=f[2],o=p[0],i=p[1]-l*p[0],n=p[2]-d*p[1],s=m[0],u=m[1]-l*m[0],v=m[2]-d*m[1]),h=r.offset,g=e.offset,a=r.data,t=e.data,w=0;w<y;w++){for(S=0;S<d;S++){for(b=0;b<l;b++)t[g]=a[h],h+=o,g+=s;h+=i,g+=u}h+=n,g+=v}}BT.exports=aqr});var zT=c((lse,RT)=>{"use strict";function tqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E;for(d=r.shape,g=r.strides,b=e.strides,r.order==="row-major"?(y=d[3],p=d[2],m=d[1],h=d[0],o=g[3],i=g[2]-y*g[3],n=g[1]-p*g[2],s=g[0]-m*g[1],u=b[3],v=b[2]-y*b[3],f=b[1]-p*b[2],l=b[0]-m*b[1]):(y=d[0],p=d[1],m=d[2],h=d[3],o=g[0],i=g[1]-y*g[0],n=g[2]-p*g[1],s=g[3]-m*g[2],u=b[0],v=b[1]-y*b[0],f=b[2]-p*b[1],l=b[3]-m*b[2]),S=r.offset,w=e.offset,a=r.data,t=e.data,E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++)t[w]=a[S],S+=o,w+=u;S+=i,w+=v}S+=n,w+=f}S+=s,w+=l}}RT.exports=tqr});var UT=c((cse,VT)=>{"use strict";function iqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O;for(p=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(m=p[4],h=p[3],g=p[2],b=p[1],S=p[0],o=w[4],i=w[3]-m*w[4],n=w[2]-h*w[3],s=w[1]-g*w[2],u=w[0]-b*w[1],v=A[4],f=A[3]-m*A[4],l=A[2]-h*A[3],d=A[1]-g*A[2],y=A[0]-b*A[1]):(m=p[0],h=p[1],g=p[2],b=p[3],S=p[4],o=w[0],i=w[1]-m*w[0],n=w[2]-h*w[1],s=w[3]-g*w[2],u=w[4]-b*w[3],v=A[0],f=A[1]-m*A[0],l=A[2]-h*A[1],d=A[3]-g*A[2],y=A[4]-b*A[3]),_=r.offset,x=e.offset,a=r.data,t=e.data,O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++)t[x]=a[_],_+=o,x+=v;_+=i,x+=f}_+=n,x+=l}_+=s,x+=d}_+=u,x+=y}}VT.exports=iqr});var PT=c((dse,CT)=>{"use strict";function oqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(h=r.shape,x=r.strides,E=e.strides,r.order==="row-major"?(g=h[5],b=h[4],S=h[3],w=h[2],A=h[1],_=h[0],o=x[5],i=x[4]-g*x[5],n=x[3]-b*x[4],s=x[2]-S*x[3],u=x[1]-w*x[2],v=x[0]-A*x[1],f=E[5],l=E[4]-g*E[5],d=E[3]-b*E[4],y=E[2]-S*E[3],p=E[1]-w*E[2],m=E[0]-A*E[1]):(g=h[0],b=h[1],S=h[2],w=h[3],A=h[4],_=h[5],o=x[0],i=x[1]-g*x[0],n=x[2]-b*x[1],s=x[3]-S*x[2],u=x[4]-w*x[3],v=x[5]-A*x[4],f=E[0],l=E[1]-g*E[0],d=E[2]-b*E[1],y=E[3]-S*E[2],p=E[4]-w*E[3],m=E[5]-A*E[4]),q=r.offset,T=e.offset,a=r.data,t=e.data,N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++)t[T]=a[q],q+=o,T+=f;q+=i,T+=l}q+=n,T+=d}q+=s,T+=y}q+=u,T+=p}q+=v,T+=m}}CT.exports=oqr});var MT=c((pse,LT)=>{"use strict";function nqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z;for(b=r.shape,T=r.strides,j=e.strides,r.order==="row-major"?(S=b[6],w=b[5],A=b[4],_=b[3],x=b[2],E=b[1],q=b[0],o=T[6],i=T[5]-S*T[6],n=T[4]-w*T[5],s=T[3]-A*T[4],u=T[2]-_*T[3],v=T[1]-x*T[2],f=T[0]-E*T[1],l=j[6],d=j[5]-S*j[6],y=j[4]-w*j[5],p=j[3]-A*j[4],m=j[2]-_*j[3],h=j[1]-x*j[2],g=j[0]-E*j[1]):(S=b[0],w=b[1],A=b[2],_=b[3],x=b[4],E=b[5],q=b[6],o=T[0],i=T[1]-S*T[0],n=T[2]-w*T[1],s=T[3]-A*T[2],u=T[4]-_*T[3],v=T[5]-x*T[4],f=T[6]-E*T[5],l=j[0],d=j[1]-S*j[0],y=j[2]-w*j[1],p=j[3]-A*j[2],m=j[4]-_*j[3],h=j[5]-x*j[4],g=j[6]-E*j[5]),O=r.offset,I=e.offset,a=r.data,t=e.data,z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++)t[I]=a[O],O+=o,I+=l;O+=i,I+=d}O+=n,I+=y}O+=s,I+=p}O+=u,I+=m}O+=v,I+=h}O+=f,I+=g}}LT.exports=nqr});var YT=c((yse,GT)=>{"use strict";function sqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P;for(w=r.shape,I=r.strides,D=e.strides,r.order==="row-major"?(A=w[7],_=w[6],x=w[5],E=w[4],q=w[3],T=w[2],j=w[1],O=w[0],o=I[7],i=I[6]-A*I[7],n=I[5]-_*I[6],s=I[4]-x*I[5],u=I[3]-E*I[4],v=I[2]-q*I[3],f=I[1]-T*I[2],l=I[0]-j*I[1],d=D[7],y=D[6]-A*D[7],p=D[5]-_*D[6],m=D[4]-x*D[5],h=D[3]-E*D[4],g=D[2]-q*D[3],b=D[1]-T*D[2],S=D[0]-j*D[1]):(A=w[0],_=w[1],x=w[2],E=w[3],q=w[4],T=w[5],j=w[6],O=w[7],o=I[0],i=I[1]-A*I[0],n=I[2]-_*I[1],s=I[3]-x*I[2],u=I[4]-E*I[3],v=I[5]-q*I[4],f=I[6]-T*I[5],l=I[7]-j*I[6],d=D[0],y=D[1]-A*D[0],p=D[2]-_*D[1],m=D[3]-x*D[2],h=D[4]-E*D[3],g=D[5]-q*D[4],b=D[6]-T*D[5],S=D[7]-j*D[6]),k=r.offset,N=e.offset,a=r.data,t=e.data,P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++)t[N]=a[k],k+=o,N+=d;k+=i,N+=y}k+=n,N+=p}k+=s,N+=m}k+=u,N+=h}k+=v,N+=g}k+=f,N+=b}k+=l,N+=S}}GT.exports=sqr});var WT=c((mse,$T)=>{"use strict";function uqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$;for(_=r.shape,N=r.strides,F=e.strides,r.order==="row-major"?(x=_[8],E=_[7],q=_[6],T=_[5],j=_[4],O=_[3],I=_[2],D=_[1],k=_[0],o=N[8],i=N[7]-x*N[8],n=N[6]-E*N[7],s=N[5]-q*N[6],u=N[4]-T*N[5],v=N[3]-j*N[4],f=N[2]-O*N[3],l=N[1]-I*N[2],d=N[0]-D*N[1],y=F[8],p=F[7]-x*F[8],m=F[6]-E*F[7],h=F[5]-q*F[6],g=F[4]-T*F[5],b=F[3]-j*F[4],S=F[2]-O*F[3],w=F[1]-I*F[2],A=F[0]-D*F[1]):(x=_[0],E=_[1],q=_[2],T=_[3],j=_[4],O=_[5],I=_[6],D=_[7],k=_[8],o=N[0],i=N[1]-x*N[0],n=N[2]-E*N[1],s=N[3]-q*N[2],u=N[4]-T*N[3],v=N[5]-j*N[4],f=N[6]-O*N[5],l=N[7]-I*N[6],d=N[8]-D*N[7],y=F[0],p=F[1]-x*F[0],m=F[2]-E*F[1],h=F[3]-q*F[2],g=F[4]-T*F[3],b=F[5]-j*F[4],S=F[6]-O*F[5],w=F[7]-I*F[6],A=F[8]-D*F[7]),R=r.offset,B=e.offset,a=r.data,t=e.data,$=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++){for(V=0;V<E;V++){for(z=0;z<x;z++)t[B]=a[R],R+=o,B+=y;R+=i,B+=p}R+=n,B+=m}R+=s,B+=h}R+=u,B+=g}R+=v,B+=b}R+=f,B+=S}R+=l,B+=w}R+=d,B+=A}}$T.exports=uqr});var XT=c((hse,JT)=>{"use strict";function vqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X;for(E=r.shape,B=r.strides,z=e.strides,r.order==="row-major"?(q=E[9],T=E[8],j=E[7],O=E[6],I=E[5],D=E[4],k=E[3],N=E[2],F=E[1],R=E[0],o=B[9],i=B[8]-q*B[9],n=B[7]-T*B[8],s=B[6]-j*B[7],u=B[5]-O*B[6],v=B[4]-I*B[5],f=B[3]-D*B[4],l=B[2]-k*B[3],d=B[1]-N*B[2],y=B[0]-F*B[1],p=z[9],m=z[8]-q*z[9],h=z[7]-T*z[8],g=z[6]-j*z[7],b=z[5]-O*z[6],S=z[4]-I*z[5],w=z[3]-D*z[4],A=z[2]-k*z[3],_=z[1]-N*z[2],x=z[0]-F*z[1]):(q=E[0],T=E[1],j=E[2],O=E[3],I=E[4],D=E[5],k=E[6],N=E[7],F=E[8],R=E[9],o=B[0],i=B[1]-q*B[0],n=B[2]-T*B[1],s=B[3]-j*B[2],u=B[4]-O*B[3],v=B[5]-I*B[4],f=B[6]-D*B[5],l=B[7]-k*B[6],d=B[8]-N*B[7],y=B[9]-F*B[8],p=z[0],m=z[1]-q*z[0],h=z[2]-T*z[1],g=z[3]-j*z[2],b=z[4]-O*z[3],S=z[5]-I*z[4],w=z[6]-D*z[5],A=z[7]-k*z[6],_=z[8]-N*z[7],x=z[9]-F*z[8]),V=r.offset,U=e.offset,a=r.data,t=e.data,X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++){for(L=0;L<j;L++){for(P=0;P<T;P++){for(C=0;C<q;C++)t[U]=a[V],V+=o,U+=p;V+=i,U+=m}V+=n,U+=h}V+=s,U+=g}V+=u,U+=b}V+=v,U+=S}V+=f,U+=w}V+=l,U+=A}V+=d,U+=_}V+=y,U+=x}}JT.exports=vqr});var QT=c((gse,ZT)=>{"use strict";var fqr=Jr(),KT=na(),HT="throw";function lqr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p;for(s=r.shape,n=fqr(s),a=r.data,t=e.data,u=r.strides,v=e.strides,f=r.offset,l=e.offset,o=r.order,i=e.order,p=0;p<n;p++)d=KT(s,u,f,o,p,HT),y=KT(s,v,l,i,p,HT),t[y]=a[d]}ZT.exports=lqr});var oj=c((bse,ij)=>{"use strict";var cqr=wo(),dqr=Gn(),rj=Ea(),pqr=uf(),yqr=Cn(),ej=at(),aj=ei(),mqr=q_(),hqr=S_(),gqr=A_(),bqr=T_(),xqr=I_(),qqr=N_(),wqr=k_(),Sqr=F_(),Eqr=z_(),Aqr=U_(),_qr=P_(),Tqr=M_(),jqr=Y_(),Iqr=W_(),Oqr=X_(),Nqr=H_(),Dqr=Q_(),kqr=eT(),Bqr=tT(),Fqr=oT(),Rqr=sT(),zqr=vT(),Vqr=lT(),Uqr=dT(),Cqr=yT(),Pqr=hT(),Lqr=bT(),Mqr=qT(),Gqr=ST(),Yqr=TT(),$qr=IT(),Wqr=NT(),Jqr=kT(),Xqr=FT(),Kqr=zT(),Hqr=UT(),Zqr=PT(),Qqr=MT(),rwr=YT(),ewr=WT(),awr=XT(),twr=QT(),xi=[$qr,Wqr,Jqr,Xqr,Kqr,Hqr,Zqr,Qqr,rwr,ewr,awr],Eo=[Bqr,Fqr,Rqr,zqr,Vqr,Uqr,Cqr,Pqr,Lqr,Mqr,Gqr],iwr=[Aqr,_qr,Tqr,jqr,Iqr,Oqr,Nqr,Dqr,kqr],owr=[mqr,hqr,gqr,bqr,xqr,qqr,wqr,Sqr,Eqr],tj=xi.length-1;function nwr(r){var e,a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;if(p=aj(r[0]),m=aj(r[1]),dqr(p.dtype)&&cqr(m.dtype)&&(p.accessorProtocol=!0,p.accessors[0]=pqr(p.accessors[0],2,yqr(m.dtype))),o=p.shape,i=m.shape,e=o.length,e!==i.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+e+". ndims(y) == "+i.length+".");if(e===0)return p.accessorProtocol||m.accessorProtocol?Eo[e](p,m):xi[e](p,m);for(u=1,y=0,g=0;g<e;g++){if(h=o[g],h!==i[g])throw new Error("invalid arguments. Arrays must have the same shape.");u*=h,h===1&&(y+=1)}if(u!==0){if(e===1)return p.accessorProtocol||m.accessorProtocol?Eo[e](p,m):xi[e](p,m);if(v=p.strides,f=m.strides,y===e-1){for(g=0;g<e&&o[g]===1;g++);return p.shape=[o[g]],m.shape=p.shape,p.strides=[v[g]],m.strides=[f[g]],p.accessorProtocol||m.accessorProtocol?Eo[1](p,m):xi[1](p,m)}if(n=rj(v),s=rj(f),n!==0&&s!==0&&n===s){if(a=ej(o,v,p.offset),t=ej(i,f,m.offset),u===a[1]-a[0]+1&&u===t[1]-t[0]+1)return n===1?l=a[0]:l=a[1],s===1?d=t[0]:d=t[1],p.shape=[u],m.shape=p.shape,p.strides=[n],m.strides=[s],p.offset=l,m.offset=d,p.accessorProtocol||m.accessorProtocol?Eo[1](p,m):xi[1](p,m);if(e<=tj)return p.accessorProtocol||m.accessorProtocol?Eo[e](p,m):xi[e](p,m)}if(e<=tj)return p.accessorProtocol||m.accessorProtocol?owr[e-2](p,m):iwr[e-2](p,m);if(p.accessorProtocol||m.accessorProtocol)return Yqr(p,m);twr(p,m)}}ij.exports=nwr});var bf=c((xse,nj)=>{"use strict";var swr=oj();nj.exports=swr});var uj=c((qse,sj)=>{"use strict";function uwr(r,e){var a,t,o,i,n,s,u,v,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(u=r[o],a=u<0?-u:u,v=e[i],n=o-1,s=i-1;n>=0&&(f=r[n],t=f<0?-f:f,!(t<=a));)r[n+1]=f,e[s+1]=e[s],n-=1,s-=1;r[n+1]=u,e[s+1]=v,o+=1,i+=1}}sj.exports=uwr});var lj=c((wse,fj)=>{"use strict";var vwr=qe(),fwr=jt(),Jn=Kr(),lwr=bo(),xf=Pt(),cwr=uj(),vj=3;function dwr(r,e,a,t){var o,i,n,s,u,v,f,l,d,y;if(o=vwr(r.length),v=xf(e),f=xf(a),l=xf(t),i=lwr([],4),i[v].push(e),i[f].push(a),i[l].push(t),n=i[0].length,n===vj)u=e;else if(n===vj-1){for(d=1;d<4;d++)if(i[d].length){u=i[d][0];break}}else{for(y=0,d=1;d<4;d++)s=i[d].length,s>=n&&(n=s,y=d);u=i[y][0]}return u=fwr(u),cwr(u,o),r=Jn(r,o),e=e===u?u:Jn(e,o),a=a===u?u:Jn(a,o),t=t===u?u:Jn(t,o),{sh:r,sx:e,sy:a,sz:t}}fj.exports=dwr});var dj=c((Sse,cj)=>{"use strict";var pwr=lj();cj.exports=pwr});var yj=c((Ese,pj)=>{"use strict";var ywr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};pj.exports=ywr});var hj=c((Ase,mj)=>{"use strict";var qf=xt(),Xn=yj();function mwr(r,e,a){var t,o,i;return t=qf(r),o=qf(e),i=qf(a),t===null||o===null||i===null?Xn.BLOCK_SIZE_IN_ELEMENTS:t>o&&t>i?Xn.BLOCK_SIZE_IN_BYTES/t|0:o>i?Xn.BLOCK_SIZE_IN_BYTES/o|0:Xn.BLOCK_SIZE_IN_BYTES/i|0}mj.exports=mwr});var bj=c((_se,gj)=>{"use strict";var hwr=hj();gj.exports=hwr});var qj=c((Tse,xj)=>{"use strict";var gwr=Math.ceil;xj.exports=gwr});var wf=c((jse,wj)=>{"use strict";var bwr=qj();wj.exports=bwr});var Ej=c((Ise,Sj)=>{"use strict";var xwr=ea(),qwr=wf();function wwr(r){return r<0?qwr(r):xwr(r)}Sj.exports=wwr});var Sf=c((Ose,Aj)=>{"use strict";var Swr=Ej();Aj.exports=Swr});var jj=c((Nse,Tj)=>{"use strict";var Ewr=pr(),Kn=Sf(),_j=vi();function Awr(r,e,a,t,o,i){var n,s,u,v,f,l;for(n=r.length,s=1,l=0;l<n;l++)s*=r[l];if(i==="clamp")o<0?o=0:o>=s&&(o=s-1);else if(i==="wrap")o<0?(o+=s,o<0&&(o%=s,o!==0&&(o+=s))):o>=s&&(o-=s,o>=s&&(o%=s));else if(i==="normalize"&&o<0&&(o+=s),o<0||o>=s)throw new RangeError(Ewr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",s,o));if(u=0,t==="column-major"){for(l=n-1;l>=0;l--)f=e[l],f<0?(v=Kn(o/f),o-=v*f,v+=r[l]-1):(v=Kn(o/f),o-=v*f),u+=v*_j(f);return u}for(l=0;l<n;l++)f=e[l],f<0?(v=Kn(o/f),o-=v*f,v+=r[l]-1):(v=Kn(o/f),o-=v*f),u+=v*_j(f);return u}Tj.exports=Awr});var Oj=c((Dse,Ij)=>{"use strict";var _wr=jj();Ij.exports=_wr});var kj=c((kse,Dj)=>{"use strict";var Ao=jt(),Twr=aa(),jwr=Te(),Iwr=ba(),Owr=Ha(),Nwr=sa(),Dwr=Xe(),kwr=lt(),Nj=pr();function Bwr(r,e){var a,t,o,i,n,s,u,v,f;if(n=e.length,o=jwr(r,!1),s=o.length,n<s)throw new Error("invalid argument. Cannot broadcast an array to a shape having fewer dimensions. Arrays can only be broadcasted to shapes having the same or more dimensions.");for(a=[],v=0;v<n;v++)a.push(0);for(i=Iwr(r,!1),v=n-1;v>=0;v--)if(f=s-n+v,!(f<0)){if(u=o[f],t=e[v],t!==0&&t<u)throw new Error(Nj("invalid argument. Input array cannot be broadcast to the specified shape, as the specified shape has a dimension whose size is less than the size of the corresponding dimension in the input array. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Ao(o).join(", "),Ao(e).join(", "),v));if(u===t)a[v]=i[f];else if(u===1)a[v]=0;else throw new Error(Nj("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Ao(o).join(", "),Ao(e).join(", "),v))}return Twr(Dwr(r),kwr(r),Ao(e),a,Owr(r),Nwr(r))}Dj.exports=Bwr});var _o=c((Bse,Bj)=>{"use strict";var Fwr=kj();Bj.exports=Fwr});var Rj=c((Fse,Fj)=>{"use strict";function Rwr(r){var e,a,t,o,i,n,s,u,v,f,l;if(u=r.length,a=[],u===0)return a;if(o=r[0],v=o.length,u===1){for(f=0;f<v;f++)a.push(o[f]);return a}for(e=[v],f=1;f<u;f++)e.push(r[f].length),e[f]>v&&(v=e[f]);for(f=0;f<v;f++)a.push(0);for(f=v-1;f>=0;){for(i=e[0]-v+f,i>=0?t=o[i]:t=1,l=1;l<u;l++){if(n=e[l]-v+f,n>=0?s=r[l][n]:s=1,t===1){t=s;continue}if(!(s===1||t===s))return null}a[f]=t,f-=1}return a}Fj.exports=Rwr});var qi=c((Rse,zj)=>{"use strict";var zwr=Rj();zj.exports=zwr});var Uj=c((zse,Vj)=>{"use strict";var Vwr=qi(),Uwr=_o(),Cwr=Te();function Pwr(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(Cwr(r[i],!1));if(t=Vwr(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(Uwr(r[i],t));return a}Vj.exports=Pwr});var Pj=c((Vse,Cj)=>{"use strict";var Lwr=Uj();Cj.exports=Lwr});var Mj=c((Use,Lj)=>{"use strict";var Mwr=it(),Gwr=bi(),Ywr=gi(),$wr=Se(),Wwr=Fa(),Jwr=aa(),Xwr=pr();function Kwr(r,e,a,t){var o,i;if(o=Wwr(e,1),o===null)throw new TypeError(Xwr("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),Mwr(o)?i=Gwr(e):i=Ywr(e),i(o,0,r),new Jwr(e,o,a,$wr(a.length),0,t)}Lj.exports=Kwr});var Yj=c((Cse,Gj)=>{"use strict";var Hwr=Mj();Gj.exports=Hwr});var Wj=c((Pse,$j)=>{"use strict";var Zwr=mo(),Qwr=Rn();function r3r(r){var e=Qwr(r);return e?Zwr(e):null}$j.exports=r3r});var Xj=c((Lse,Jj)=>{"use strict";var e3r=Wj();Jj.exports=e3r});var Hj=c((Mse,Kj)=>{"use strict";function a3r(){return{binary:"r",bool:"x",complex64:"c",complex128:"z",float16:"h",bfloat16:"e",float32:"f",float64:"d",float128:"g",generic:"o",int8:"s",int16:"k",int32:"i",int64:"l",int128:"m",int256:"n",uint8:"b",uint8c:"a",uint16:"t",uint32:"u",uint64:"v",uint128:"w",uint256:"y"}}Kj.exports=a3r});var rI=c((Gse,Qj)=>{"use strict";var t3r=Ba(),Zj=Hj(),Ef;function i3r(r){return arguments.length===0?Zj():(Ef===void 0&&(Ef=Zj()),Ef[t3r(r)]||null)}Qj.exports=i3r});var Af=c((Yse,eI)=>{"use strict";var o3r=rI();eI.exports=o3r});var oI=c(($se,iI)=>{"use strict";var aI=wn(),tI=Af(),_f;function n3r(r){return arguments.length===0?aI(tI()):(_f===void 0&&(_f=aI(tI())),_f[r]||null)}iI.exports=n3r});var sI=c((Wse,nI)=>{"use strict";var s3r=oI();nI.exports=s3r});var vI=c((Jse,uI)=>{"use strict";function u3r(){return{binary:"byte",bool:"boolean",complex64:"single-precision floating-point complex number",complex128:"double-precision floating-point complex number",float16:"half-precision floating-point number",bfloat16:"brain floating-point number",float32:"single-precision floating-point number",float64:"double-precision floating-point number",float128:"quadruple-precision floating-point number",generic:"generic array value",int8:"signed 8-bit integer",int16:"signed 16-bit integer",int32:"signed 32-bit integer",int64:"signed 64-bit integer",int128:"signed 128-bit integer",int256:"signed 256-bit integer",uint8:"unsigned 8-bit integer",uint8c:"unsigned 8-bit integer (clamped)",uint16:"unsigned 16-bit integer",uint32:"unsigned 32-bit integer",uint64:"unsigned 64-bit integer",uint128:"unsigned 128-bit integer",uint256:"unsigned 256-bit integer"}}uI.exports=u3r});var cI=c((Xse,lI)=>{"use strict";var v3r=Ba(),fI=vI(),Tf;function f3r(r){return arguments.length===0?fI():(Tf===void 0&&(Tf=fI()),Tf[v3r(r)]||null)}lI.exports=f3r});var pI=c((Kse,dI)=>{"use strict";var l3r=cI();dI.exports=l3r});var mI=c((Hse,yI)=>{"use strict";var c3r=Sn(),d3r=mo();function p3r(r){var e=typeof r;return e==="number"?c3r(r)?r:null:e==="string"?d3r(r):null}yI.exports=p3r});var jf=c((Zse,hI)=>{"use strict";var y3r=mI();hI.exports=y3r});var gI=c((Qse,m3r)=>{m3r.exports={binary:null,bool:"bool",complex64:"stdlib_complex64_t",complex128:"stdlib_complex128_t",float16:null,bfloat16:null,float32:"float",float64:"double",float128:null,generic:null,int8:"int8_t",int16:"int16_t",int32:"int32_t",int64:"int64_t",int128:null,int256:null,uint8:"uint8_t",uint8c:null,uint16:"uint16_t",uint32:"uint32_t",uint64:"uint64_t",uint128:null,uint256:null}});var xI=c((rue,bI)=>{"use strict";var h3r=Ba(),g3r=gI();function b3r(r){return g3r[h3r(r)]||null}bI.exports=b3r});var wI=c((eue,qI)=>{"use strict";var x3r=xI();qI.exports=x3r});var AI=c((aue,EI)=>{"use strict";var q3r=Ve(),SI=ge().isPrimitive,w3r=Ba(),If=pr();function S3r(r,e,a){var t,o,i,n,s,u,v,f;if(!q3r(r))throw new TypeError(If("invalid argument. First argument must be an array-like object. Value: `%s`.",r));if(!SI(e))throw new TypeError(If("invalid argument. Second argument must be a nonnegative integer. Value: `%s`.",e));if(!SI(a))throw new TypeError(If("invalid argument. Third argument must be a nonnegative integer. Value: `%s`.",a));if(t=r.length,t===0)throw new RangeError("invalid argument. First argument must contain at least one element.");if(s=e+a,t%s!==0)throw new RangeError("invalid arguments. Length of the first argument is incompatible with the second and third arguments.");for(o=[],i=[],u=2*s,f=2*e,v=0;v<=u;v++)v===0?v===f?i.push("() => ("):i.push("("):v===u?v===f?i.push(") => ()"):i.push(")"):v===f?i.push(") => ("):v%2===1?i.push(""):i.push(", ");for(v=0;v<t;v++)n=w3r(r[v]),n===null&&(n=r[v]),f=v%s,i[2*f+1]=n,f===s-1&&o.push(i.join(""));return o}EI.exports=S3r});var Of=c((tue,_I)=>{"use strict";var E3r=AI();_I.exports=E3r});var jI=c((iue,TI)=>{"use strict";var A3r=qt(),_3r=At(),T3r=Ki(),j3r=Xi(),I3r=Zi(),O3r=fi(),N3r=Ji(),D3r=va(),k3r=Hi(),B3r=so(),F3r=vo(),R3r=co(),z3r={float64:A3r,float32:_3r,generic:Array,int16:T3r,int32:j3r,int8:I3r,uint16:O3r,uint32:N3r,uint8:D3r,uint8c:k3r,complex64:B3r,complex128:F3r,bool:R3r};TI.exports=z3r});var OI=c((oue,II)=>{"use strict";var V3r=jI();function U3r(r){return V3r[r]||null}II.exports=U3r});var DI=c((nue,NI)=>{"use strict";var C3r=OI();NI.exports=C3r});var Nf=c((sue,kI)=>{"use strict";function P3r(){return{dtypes:{default:"float64",numeric:"float64",real:"float64",floating_point:"float64",real_floating_point:"float64",complex_floating_point:"complex128",boolean:"bool",integer:"int32",signed_integer:"int32",unsigned_integer:"uint32"}}}kI.exports=P3r});var FI=c((uue,BI)=>{"use strict";var L3r=Nf(),Za=L3r(),M3r={"dtypes.default":Za.dtypes.default,"dtypes.numeric":Za.dtypes.numeric,"dtypes.real":Za.dtypes.real,"dtypes.floating_point":Za.dtypes.floating_point,"dtypes.real_floating_point":Za.dtypes.real_floating_point,"dtypes.complex_floating_point":Za.dtypes.complex_floating_point,"dtypes.boolean":Za.dtypes.boolean,"dtypes.integer":Za.dtypes.integer,"dtypes.signed_integer":Za.dtypes.signed_integer,"dtypes.unsigned_integer":Za.dtypes.unsigned_integer};function G3r(r){var e=M3r[r];return e===void 0?null:e}BI.exports=G3r});var VI=c((vue,zI)=>{"use strict";var Y3r=Ir(),RI=Nf(),$3r=FI();Y3r(RI,"get",$3r);zI.exports=RI});var PI=c((fue,CI)=>{"use strict";var W3r=ge().isPrimitive,J3r=DI(),X3r=Se(),K3r=VI(),UI=pr(),H3r=K3r.get("dtypes.default");function Z3r(r){var e,a;if(!W3r(r))throw new TypeError(UI("invalid argument. First argument must be a nonnegative integer. Value: `%s`.",r));if(arguments.length>1?e=arguments[1]:e=H3r,e==="generic")return X3r(r);if(a=J3r(e),a===null)throw new TypeError(UI("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return new a(r)}CI.exports=Z3r});var MI=c((lue,LI)=>{"use strict";var Q3r=PI();LI.exports=Q3r});var To=c((cue,YI)=>{"use strict";var GI=MI();function r4r(r){return arguments.length>1?GI(r,arguments[1]):GI(r)}YI.exports=r4r});var WI=c((due,$I)=>{"use strict";var e4r=ze(),a4r=Ye(),t4r=aa(),i4r=Jr(),o4r=To(),n4r=_t();function s4r(r,e,a){var t,o,i,n;return t=e.length,t>0?(i=i4r(e),n=e4r(e,a)):(i=1,n=[0]),r==="binary"?o=n4r(i):o=o4r(i,r),new t4r(r,o,e,n,a4r(e,n),a)}$I.exports=s4r});var XI=c((pue,JI)=>{"use strict";var u4r=WI();JI.exports=u4r});var HI=c((yue,KI)=>{"use strict";var v4r=ze(),f4r=Ye(),l4r=Jr(),c4r=Xe(),d4r=Te(),p4r=sa(),y4r=To(),m4r=_t();function h4r(r){var e,a,t,o,i,n,s;return s=c4r(r),i=d4r(r,!0),o=p4r(r),e=i.length,e>0?(a=l4r(i),n=v4r(i,o)):(a=1,n=[0]),s==="binary"?t=m4r(a):t=y4r(a,s),new r.constructor(s,t,i,n,f4r(i,n),o)}KI.exports=h4r});var QI=c((mue,ZI)=>{"use strict";var g4r=HI();ZI.exports=g4r});var oO=c((hue,iO)=>{"use strict";var b4r=Le(),rO=Xe(),x4r=Te(),q4r=ba(),eO=Ha(),w4r=sa(),aO=lt(),tO=pr();function S4r(r,e){var a,t,o,i,n,s,u;if(i=x4r(r,!1),n=q4r(r,!1),o=w4r(r),s=i.length,a=[],t=[],e<0){if(e<-s-1)throw new RangeError(tO("invalid argument. Specified axis is out-of-bounds. Must be on the interval: [-%u-1, %u]. Value: `%d`.",s,s,e));e+=s+1}else if(e>s)throw new RangeError(tO("invalid argument. Specified axis is out-of-bounds. Must be on the interval: [-%u-1, %u]. Value: `%d`.",s,s,e));if(e===0)for(t.push(1),a.push(n[0]),u=0;u<s;u++)t.push(i[u]),a.push(n[u]);else if(e===s){for(u=0;u<s;u++)t.push(i[u]),a.push(n[u]);t.push(1),a.push(n[s-1])}else for(u=0;u<s+1;u++)u===e?(t.push(1),o==="row-major"?a.push(n[u-1]):a.push(n[u])):u<e?(t.push(i[u]),a.push(n[u])):(t.push(i[u-1]),a.push(n[u-1]));return b4r(r)?new r.constructor(rO(r),aO(r),t,a,eO(r),o,{readonly:!0}):new r.constructor(rO(r),aO(r),t,a,eO(r),o)}iO.exports=S4r});var sO=c((gue,nO)=>{"use strict";var E4r=oO();nO.exports=E4r});var vO=c((bue,uO)=>{"use strict";function A4r(r){return r===null}uO.exports=A4r});var wi=c((xue,fO)=>{"use strict";var _4r=vO();fO.exports=_4r});var cO=c((que,lO)=>{"use strict";function T4r(r){return r===void 0}lO.exports=T4r});var Si=c((wue,dO)=>{"use strict";var j4r=cO();dO.exports=j4r});var yO=c((Sue,pO)=>{"use strict";var kf=Ir(),Bf=bt(),I4r=fe().isPrimitive,O4r=wi(),N4r=Si(),Hn=pr();function Df(r){return I4r(r)||O4r(r)||N4r(r)}function ct(){var r,e,a,t;if(r=arguments.length,r===0?(e=null,a=null,t=null):r===1?(e=null,a=arguments[0],t=null):r===2?(e=arguments[0],a=arguments[1],t=null):(e=arguments[0],a=arguments[1],t=arguments[2]),!(this instanceof ct))return new ct(e,a,t);if(!Df(e))throw new TypeError(Hn("invalid argument. First argument must be an integer, null, or undefined. Value: `%s`.",e));if(!Df(a))throw new TypeError(Hn("invalid argument. Second argument must be an integer, null, or undefined. Value: `%s`.",a));if(Df(t)){if(t===0)throw new RangeError(Hn("invalid argument. Third argument cannot be zero. Value: `%s`.",t))}else throw new TypeError(Hn("invalid argument. Third argument must be an integer, null, or undefined. Value: `%s`.",t));return this._start=e===void 0?null:e,this._stop=a===void 0?null:a,this._step=t===void 0?null:t,this}kf(ct,"name","Slice");Bf(ct.prototype,"start",function(){return this._start});Bf(ct.prototype,"stop",function(){return this._stop});Bf(ct.prototype,"step",function(){return this._step});kf(ct.prototype,"toString",function(){return"Slice("+this._start+","+this._stop+","+this.step+")"});kf(ct.prototype,"toJSON",function(){return{type:"Slice",data:[this._start,this._stop,this._step]}});pO.exports=ct});var Ce=c((Eue,mO)=>{"use strict";var D4r=yO();mO.exports=D4r});var gO=c((Aue,hO)=>{"use strict";var k4r=Ce(),B4r=gt();function F4r(r){return r instanceof k4r||B4r(r)==="Slice"}hO.exports=F4r});var Ff=c((_ue,bO)=>{"use strict";var R4r=gO();bO.exports=R4r});var wO=c((Tue,qO)=>{"use strict";var Rf=Ir(),xO=bt(),z4r=fe().isPrimitive,V4r=wi(),U4r=Si(),C4r=Ff(),P4r=pr();function L4r(r){return z4r(r)||V4r(r)||U4r(r)||C4r(r)}function Ke(){var r,e,a,t,o;if(r=arguments.length,!(this instanceof Ke)){if(r===1)return new Ke(arguments[0]);if(r===2)return new Ke(arguments[0],arguments[1]);if(r===3)return new Ke(arguments[0],arguments[1],arguments[2]);if(r===4)return new Ke(arguments[0],arguments[1],arguments[2],arguments[3]);if(r===5)return new Ke(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);for(a=[],o=0;o<r;o++)a.push(arguments[o]);return e=Object.create(Ke.prototype),Ke.apply(e,a)}for(this._data=[],o=0;o<r;o++){if(t=arguments[o],!L4r(t))throw new TypeError(P4r("invalid argument. Provided arguments must be either a Slice, integer, null, or undefined. Argument: `%d`. Value: `%s`.",o,String(t)));this._data.push(t===void 0?null:t)}return this}Rf(Ke,"name","MultiSlice");xO(Ke.prototype,"ndims",function(){return this._data.length});xO(Ke.prototype,"data",function(){return this._data.slice()});Rf(Ke.prototype,"toString",function(){var e,a,t;for(e=this._data,a=[],t=0;t<e.length;t++)a.push(String(e[t]));return"MultiSlice("+a.join(",")+")"});Rf(Ke.prototype,"toJSON",function(){var e,a,t,o;for(e=this._data,a={type:"MultiSlice",data:[]},o=0;o<e.length;o++)t=e[o],a.data.push(t&&typeof t.toJSON=="function"?t.toJSON():t);return a});qO.exports=Ke});var Qa=c((jue,SO)=>{"use strict";var M4r=wO();SO.exports=M4r});var AO=c((Iue,EO)=>{"use strict";var xa=Qa();function G4r(r){switch(r.length){case 0:return new xa;case 1:return new xa(r[0]);case 2:return new xa(r[0],r[1]);case 3:return new xa(r[0],r[1],r[2]);case 4:return new xa(r[0],r[1],r[2],r[3]);case 5:return new xa(r[0],r[1],r[2],r[3],r[4]);case 6:return new xa(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6]);case 8:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]);case 9:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8]);case 10:return new xa(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9]);default:return xa.apply(null,r)}}EO.exports=G4r});var he=c((Oue,_O)=>{"use strict";var Y4r=AO();_O.exports=Y4r});var jO=c((Nue,TO)=>{"use strict";function $4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}TO.exports=$4r});var OO=c((Due,IO)=>{"use strict";var W4r=Ce(),jo=jO();function J4r(r,e,a){var t,o,i;if(t=r.start,o=r.stop,i=r.step,i===null&&(i=1),t===null)i>0?t=0:t=e-1;else if(t<0){if(t=e+t,t<0){if(a)return jo();t=0}}else if(t>=e){if(a)return jo();i<0?t=e-1:t=e}if(o===null)i>0?o=e:o=null;else if(o<0){if(o=e+o,o<0)if(i>0){if(a)return jo();o=0}else{if(a&&o<-1)return jo();o=null}}else if(o>e){if(a)return jo();o=e}return new W4r(t,o,i)}IO.exports=J4r});var DO=c((kue,NO)=>{"use strict";var X4r=OO();NO.exports=X4r});var BO=c((Bue,kO)=>{"use strict";function K4r(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}kO.exports=K4r});var zO=c((Fue,RO)=>{"use strict";var Zn=Ce(),FO=BO();function H4r(r,e,a){return r>=e?a?FO():new Zn(e,e,1):r<0?(r=e+r,r<0?a?FO():new Zn(0,0,1):new Zn(r,r+1,1)):new Zn(r,r+1,1)}RO.exports=H4r});var UO=c((Rue,VO)=>{"use strict";var Z4r=zO();VO.exports=Z4r});var PO=c((zue,CO)=>{"use strict";var Q4r=he(),r6r=Ce(),e6r=DO(),a6r=UO();function t6r(r,e,a){return r===null?new r6r(0,e,1):typeof r=="number"?a6r(r,e,a):e6r(r,e,a)}function i6r(r,e,a){var t,o,i,n;for(t=r.data,o=[],n=0;n<t.length;n++){if(i=t6r(t[n],e[n],a),i.code!==void 0)return i;o.push(i)}return Q4r(o)}CO.exports=i6r});var MO=c((Vue,LO)=>{"use strict";var o6r=PO();LO.exports=o6r});var YO=c((Uue,GO)=>{"use strict";function n6r(r){var e,a,t;for(e=r.data,a=[],t=0;t<e.length;t++)typeof e[t]!="number"&&a.push(t);return a}GO.exports=n6r});var WO=c((Cue,$O)=>{"use strict";var s6r=YO();$O.exports=s6r});var XO=c((Pue,JO)=>{"use strict";var u6r=wf();function v6r(r){var e,a,t;return a=r.start,t=r.stop,e=r.step,t===null&&(t=-1),e>0&&a>=t||e<0&&a<=t?0:u6r((t-a)/e)}JO.exports=v6r});var HO=c((Lue,KO)=>{"use strict";var f6r=XO();KO.exports=f6r});var QO=c((Mue,ZO)=>{"use strict";var l6r=HO();function c6r(r){var e,a,t;for(e=r.data,a=[],t=0;t<e.length;t++)a.push(l6r(e[t]));return a}ZO.exports=c6r});var e7=c((Gue,r7)=>{"use strict";var d6r=QO();r7.exports=d6r});var t7=c((Yue,a7)=>{"use strict";function p6r(r,e,a){var t,o,i;for(t=r.data,o=a,i=0;i<t.length;i++)o+=e[i]*t[i].start;return o}a7.exports=p6r});var o7=c(($ue,i7)=>{"use strict";function y6r(r,e,a){var t,o,i,n;for(t=r.data,o=[],i=0;i<a.length;i++)n=a[i],o.push(e[n]*t[n].step);return o}i7.exports=y6r});var s7=c((Wue,n7)=>{"use strict";var m6r=Fa(),h6r=Se();function g6r(r,e,a,t,o){var i,n;return n=a.length,n===0?i=[0]:i=h6r(n),new r(e,m6r(e,0),a,i,0,t,{readonly:o})}n7.exports=g6r});var d7=c((Jue,c7)=>{"use strict";var u7=MO(),b6r=WO(),v7=e7(),zf=Kr(),x6r=Se(),f7=Jr(),q6r=Xe(),w6r=Te(),S6r=ba(),E6r=Ha(),A6r=sa(),Vf=lt(),l7=pr(),_6r=t7(),T6r=o7(),j6r=s7();function I6r(r,e,a,t){var o,i,n,s,u,v,f,l,d,y;if(n=q6r(r),s=w6r(r,!0),o=S6r(r,!0),i=E6r(r),u=A6r(r),f=s.length,e.ndims!==f)throw new RangeError(l7("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",s.join(","),e.ndims));if(l=r.constructor,f===0)return new l(n,Vf(r),s,o,i,u,{readonly:!t});if(v=b6r(e),y=u7(e,s,!0),y.code){if(a)throw new RangeError(l7("invalid argument. Slice exceeds array bounds. Array shape: (%s).",s.join(",")));y=u7(e,s,!1),d=v7(y),f7(zf(d,v))>0&&(d=x6r(d.length))}else d=v7(y);return f7(d)===0?j6r(l,n,zf(d,v),u,!t):(i=_6r(y,o,i),d=zf(d,v),d.length===0?new l(n,Vf(r),[],[0],i,u,{readonly:!t}):(o=T6r(y,o,v),new l(n,Vf(r),d,o,i,u,{readonly:!t})))}c7.exports=I6r});var ye=c((Xue,p7)=>{"use strict";var O6r=d7();p7.exports=O6r});var m7=c((Kue,y7)=>{"use strict";var N6r=bo();function D6r(r){return N6r(null,r)}y7.exports=D6r});var Ei=c((Hue,h7)=>{"use strict";var k6r=m7();h7.exports=k6r});var b7=c((Zue,g7)=>{"use strict";function B6r(r){var e=r.ndims;return typeof e=="number"?e:r.shape.length}g7.exports=B6r});var Ua=c((Que,x7)=>{"use strict";var F6r=b7();x7.exports=F6r});var w7=c((rve,q7)=>{"use strict";var R6r=he(),z6r=Ce(),V6r=ye(),U6r=Ei(),C6r=Ua(),Uf=pr();function P6r(r,e,a){var t,o,i;if(o=C6r(r),o===0)throw new TypeError(Uf("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",o));if(i=e,i<0){if(i+=o,i<0)throw new RangeError(Uf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e))}else if(i>=o)throw new RangeError(Uf("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return t=U6r(o),t[i]=new z6r(null,null,-1),V6r(r,R6r(t),!0,a)}q7.exports=P6r});var Qn=c((eve,S7)=>{"use strict";var L6r=w7();S7.exports=L6r});var A7=c((ave,E7)=>{"use strict";var M6r=Qa(),G6r=Qn(),Y6r=ye(),$6r=Ua();function W6r(r,e){return $6r(r)===0?Y6r(r,new M6r,!0,e):G6r(r,-1,e)}E7.exports=W6r});var T7=c((tve,_7)=>{"use strict";var J6r=A7();_7.exports=J6r});var N7=c((ive,O7)=>{"use strict";var j7=Qa(),X6r=Qn(),I7=ye(),K6r=Ua();function H6r(r,e){var a=K6r(r);return a===0?I7(r,new j7,!0,e):a===1?I7(r,new j7(null),!0,e):X6r(r,-2,e)}O7.exports=H6r});var k7=c((ove,D7)=>{"use strict";var Z6r=N7();D7.exports=Z6r});var F7=c((nve,B7)=>{"use strict";function Q6r(r,e){var a,t,o,i,n,s,u,v,f,l;for(o=1,i=1,l=1;l<r.length;l++){for(u=r[o],a=u<0?-u:u,v=e[i],n=o-1,s=i-1;n>=0&&(f=r[n],t=f<0?-f:f,!(t<=a));)r[n+1]=f,e[s+1]=e[s],n-=1,s-=1;r[n+1]=u,e[s+1]=v,o+=1,i+=1}}B7.exports=Q6r});var z7=c((sve,R7)=>{"use strict";var rSr=qe(),eSr=jt(),aSr=Kr(),tSr=F7();function iSr(r,e){var a;return a=rSr(r.length),e=eSr(e),tSr(e,a),r=aSr(r,a),{sh:r,sx:e,idx:a}}R7.exports=iSr});var Zr=c((uve,V7)=>{"use strict";var oSr=z7();V7.exports=oSr});var C7=c((vve,U7)=>{"use strict";var nSr={BLOCK_SIZE_IN_BYTES:64,BLOCK_SIZE_IN_ELEMENTS:8};U7.exports=nSr});var M7=c((fve,L7)=>{"use strict";var sSr=xt(),P7=C7();function uSr(r){var e=sSr(r);return e===null?P7.BLOCK_SIZE_IN_ELEMENTS:P7.BLOCK_SIZE_IN_BYTES/e|0}L7.exports=uSr});var Qr=c((lve,G7)=>{"use strict";var vSr=M7();G7.exports=vSr});var W7=c((cve,$7)=>{"use strict";var fSr=ft(),Y7=ea();function lSr(r,e){return typeof r[e]=="function"}function cSr(r){var e,a,t,o,i;for(a=Y7(r.length/2),t=r.length-1,o=0;o<a;o++)i=t-o,e=r[o],r[o]=r[i],r[i]=e;return r}function dSr(r){var e,a,t,o,i,n,s,u;for(e=r.data,a=r.accessors[0],t=r.accessors[1],i=Y7(e.length/2),n=e.length-1,s=0;s<i;s++)u=n-s,o=a(e,s),t(e,s,a(e,u)),t(e,u,o);return e}function pSr(r){var e;return lSr(r,"reverse")?r.reverse():(e=fSr(r),e.accessorProtocol?dSr(e):cSr(r))}$7.exports=pSr});var re=c((dve,J7)=>{"use strict";var ySr=W7();J7.exports=ySr});var K7=c((pve,X7)=>{"use strict";var mSr=Zr(),hSr=Qr(),gSr=Kr(),bSr=re();function xSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(w=mSr(r.shape,r.strides),f=w.sh,y=w.sx,v=bSr(w.idx),t=hSr(r.dtype),p=r.offset,o=r.data,n=y[0],i=r.accessors[0],S=f[1];S>0;)for(S<t?(d=S,S=0):(d=t,S-=t),u=p+S*y[1],b=f[0];b>0;)for(b<t?(l=b,b=0):(l=t,b-=t),m=u+b*y[0],s=y[1]-l*y[0],g=0;g<d;g++){for(h=0;h<l;h++)e.call(a,i(o,m),gSr([g,h],v),r.ref),m+=n;m+=s}}X7.exports=xSr});var Z7=c((yve,H7)=>{"use strict";var qSr=Zr(),wSr=Qr(),SSr=Kr(),ESr=re();function ASr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(q=qSr(r.shape,r.strides),d=q.sh,h=q.sx,l=ESr(q.idx),t=wSr(r.dtype),g=r.offset,o=r.data,n=h[0],i=r.accessors[0],E=d[2];E>0;)for(E<t?(m=E,E=0):(m=t,E-=t),f=g+E*h[2],x=d[1];x>0;)for(x<t?(p=x,x=0):(p=t,x-=t),u=h[2]-p*h[1],v=f+x*h[1],_=d[0];_>0;)for(_<t?(y=_,_=0):(y=t,_-=t),b=v+_*h[0],s=h[1]-y*h[0],A=0;A<m;A++){for(w=0;w<p;w++){for(S=0;S<y;S++)e.call(a,i(o,b),SSr([A,w,S],l),r.ref),b+=n;b+=s}b+=u}}H7.exports=ASr});var rN=c((mve,Q7)=>{"use strict";var _Sr=Zr(),TSr=Qr(),jSr=Kr(),ISr=re();function OSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D;for(D=_Sr(r.shape,r.strides),p=D.sh,S=D.sx,y=ISr(D.idx),t=TSr(r.dtype),w=r.offset,o=r.data,n=S[0],i=r.accessors[0],I=p[3];I>0;)for(I<t?(b=I,I=0):(b=t,I-=t),d=w+I*S[3],O=p[2];O>0;)for(O<t?(g=O,O=0):(g=t,O-=t),v=S[3]-g*S[2],l=d+O*S[2],j=p[1];j>0;)for(j<t?(h=j,j=0):(h=t,j-=t),u=S[2]-h*S[1],f=l+j*S[1],T=p[0];T>0;)for(T<t?(m=T,T=0):(m=t,T-=t),A=f+T*S[0],s=S[1]-m*S[0],q=0;q<b;q++){for(E=0;E<g;E++){for(x=0;x<h;x++){for(_=0;_<m;_++)e.call(a,i(o,A),jSr([q,E,x,_],y),r.ref),A+=n;A+=s}A+=u}A+=v}}Q7.exports=OSr});var aN=c((hve,eN)=>{"use strict";var NSr=Zr(),DSr=Qr(),kSr=Kr(),BSr=re();function FSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(B=NSr(r.shape,r.strides),h=B.sh,_=B.sx,m=BSr(B.idx),t=DSr(r.dtype),x=r.offset,o=r.data,n=_[0],i=r.accessors[0],R=h[4];R>0;)for(R<t?(A=R,R=0):(A=t,R-=t),p=x+R*_[4],F=h[3];F>0;)for(F<t?(w=F,F=0):(w=t,F-=t),f=_[4]-w*_[3],y=p+F*_[3],N=h[2];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),v=_[3]-S*_[2],d=y+N*_[2],k=h[1];k>0;)for(k<t?(b=k,k=0):(b=t,k-=t),u=_[2]-b*_[1],l=d+k*_[1],D=h[0];D>0;)for(D<t?(g=D,D=0):(g=t,D-=t),E=l+D*_[0],s=_[1]-g*_[0],I=0;I<A;I++){for(O=0;O<w;O++){for(j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++)e.call(a,i(o,E),kSr([I,O,j,T,q],m),r.ref),E+=n;E+=s}E+=u}E+=v}E+=f}}eN.exports=FSr});var iN=c((gve,tN)=>{"use strict";var RSr=Zr(),zSr=Qr(),VSr=Kr(),USr=re();function CSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P;for(P=RSr(r.shape,r.strides),b=P.sh,q=P.sx,g=USr(P.idx),t=zSr(r.dtype),T=r.offset,o=r.data,n=q[0],i=r.accessors[0],C=b[5];C>0;)for(C<t?(E=C,C=0):(E=t,C-=t),h=T+C*q[5],U=b[4];U>0;)for(U<t?(x=U,U=0):(x=t,U-=t),l=q[5]-x*q[4],m=h+U*q[4],V=b[3];V>0;)for(V<t?(_=V,V=0):(_=t,V-=t),f=q[4]-_*q[3],p=m+V*q[3],z=b[2];z>0;)for(z<t?(A=z,z=0):(A=t,z-=t),v=q[3]-A*q[2],y=p+z*q[2],B=b[1];B>0;)for(B<t?(w=B,B=0):(w=t,B-=t),u=q[2]-w*q[1],d=y+B*q[1],R=b[0];R>0;)for(R<t?(S=R,R=0):(S=t,R-=t),j=d+R*q[0],s=q[1]-S*q[0],F=0;F<E;F++){for(N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++)e.call(a,i(o,j),VSr([F,N,k,D,I,O],g),r.ref),j+=n;j+=s}j+=u}j+=v}j+=f}j+=l}}tN.exports=CSr});var nN=c((bve,oN)=>{"use strict";var PSr=Zr(),LSr=Qr(),MSr=Kr(),GSr=re();function YSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(Y=PSr(r.shape,r.strides),w=Y.sh,O=Y.sx,S=GSr(Y.idx),t=LSr(r.dtype),I=r.offset,o=r.data,n=O[0],i=r.accessors[0],$=w[6];$>0;)for($<t?(j=$,$=0):(j=t,$-=t),b=I+$*O[6],G=w[5];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),d=O[6]-T*O[5],g=b+G*O[5],M=w[4];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),l=O[5]-q*O[4],h=g+M*O[4],L=w[3];L>0;)for(L<t?(E=L,L=0):(E=t,L-=t),f=O[4]-E*O[3],m=h+L*O[3],P=w[2];P>0;)for(P<t?(x=P,P=0):(x=t,P-=t),v=O[3]-x*O[2],p=m+P*O[2],C=w[1];C>0;)for(C<t?(_=C,C=0):(_=t,C-=t),u=O[2]-_*O[1],y=p+C*O[1],U=w[0];U>0;)for(U<t?(A=U,U=0):(A=t,U-=t),D=y+U*O[0],s=O[1]-A*O[0],V=0;V<j;V++){for(z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++)e.call(a,i(o,D),MSr([V,z,B,R,F,N,k],S),r.ref),D+=n;D+=s}D+=u}D+=v}D+=f}D+=l}D+=d}}oN.exports=YSr});var uN=c((xve,sN)=>{"use strict";var $Sr=Zr(),WSr=Qr(),JSr=Kr(),XSr=re();function KSr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H;for(H=$Sr(r.shape,r.strides),_=H.sh,k=H.sx,A=XSr(H.idx),t=WSr(r.dtype),N=r.offset,o=r.data,n=k[0],i=r.accessors[0],K=_[7];K>0;)for(K<t?(D=K,K=0):(D=t,K-=t),w=N+K*k[7],X=_[6];X>0;)for(X<t?(I=X,X=0):(I=t,X-=t),y=k[7]-I*k[6],S=w+X*k[6],J=_[5];J>0;)for(J<t?(O=J,J=0):(O=t,J-=t),d=k[6]-O*k[5],b=S+J*k[5],W=_[4];W>0;)for(W<t?(j=W,W=0):(j=t,W-=t),l=k[5]-j*k[4],g=b+W*k[4],Y=_[3];Y>0;)for(Y<t?(T=Y,Y=0):(T=t,Y-=t),f=k[4]-T*k[3],h=g+Y*k[3],$=_[2];$>0;)for($<t?(q=$,$=0):(q=t,$-=t),v=k[3]-q*k[2],m=h+$*k[2],G=_[1];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),u=k[2]-E*k[1],p=m+G*k[1],M=_[0];M>0;)for(M<t?(x=M,M=0):(x=t,M-=t),F=p+M*k[0],s=k[1]-x*k[0],L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++)e.call(a,i(o,F),JSr([L,P,C,U,V,z,B,R],A),r.ref),F+=n;F+=s}F+=u}F+=v}F+=f}F+=l}F+=d}F+=y}}sN.exports=KSr});var fN=c((qve,vN)=>{"use strict";var HSr=Zr(),ZSr=Qr(),QSr=Kr(),rEr=re();function eEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er;for(er=HSr(r.shape,r.strides),E=er.sh,R=er.sx,x=rEr(er.idx),t=ZSr(r.dtype),B=r.offset,o=r.data,n=R[0],i=r.accessors[0],ar=E[8];ar>0;)for(ar<t?(F=ar,ar=0):(F=t,ar-=t),_=B+ar*R[8],rr=E[7];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),p=R[8]-N*R[7],A=_+rr*R[7],Z=E[6];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),y=R[7]-k*R[6],w=A+Z*R[6],Q=E[5];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),d=R[6]-D*R[5],S=w+Q*R[5],H=E[4];H>0;)for(H<t?(I=H,H=0):(I=t,H-=t),l=R[5]-I*R[4],b=S+H*R[4],K=E[3];K>0;)for(K<t?(O=K,K=0):(O=t,K-=t),f=R[4]-O*R[3],g=b+K*R[3],X=E[2];X>0;)for(X<t?(j=X,X=0):(j=t,X-=t),v=R[3]-j*R[2],h=g+X*R[2],J=E[1];J>0;)for(J<t?(T=J,J=0):(T=t,J-=t),u=R[2]-T*R[1],m=h+J*R[1],W=E[0];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),z=m+W*R[0],s=R[1]-q*R[0],Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++)e.call(a,i(o,z),QSr([Y,$,G,M,L,P,C,U,V],x),r.ref),z+=n;z+=s}z+=u}z+=v}z+=f}z+=l}z+=d}z+=y}z+=p}}vN.exports=eEr});var cN=c((wve,lN)=>{"use strict";var aEr=Zr(),tEr=Qr(),iEr=Kr(),oEr=re();function nEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr;for(sr=aEr(r.shape,r.strides),T=sr.sh,V=sr.sx,q=oEr(sr.idx),t=tEr(r.dtype),U=r.offset,o=r.data,n=V[0],i=r.accessors[0],nr=T[9];nr>0;)for(nr<t?(z=nr,nr=0):(z=t,nr-=t),E=U+nr*V[9],or=T[8];or>0;)for(or<t?(B=or,or=0):(B=t,or-=t),m=V[9]-B*V[8],x=E+or*V[8],tr=T[7];tr>0;)for(tr<t?(R=tr,tr=0):(R=t,tr-=t),p=V[8]-R*V[7],_=x+tr*V[7],ir=T[6];ir>0;)for(ir<t?(F=ir,ir=0):(F=t,ir-=t),y=V[7]-F*V[6],A=_+ir*V[6],er=T[5];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),d=V[6]-N*V[5],w=A+er*V[5],ar=T[4];ar>0;)for(ar<t?(k=ar,ar=0):(k=t,ar-=t),l=V[5]-k*V[4],S=w+ar*V[4],rr=T[3];rr>0;)for(rr<t?(D=rr,rr=0):(D=t,rr-=t),f=V[4]-D*V[3],b=S+rr*V[3],Z=T[2];Z>0;)for(Z<t?(I=Z,Z=0):(I=t,Z-=t),v=V[3]-I*V[2],g=b+Z*V[2],Q=T[1];Q>0;)for(Q<t?(O=Q,Q=0):(O=t,Q-=t),u=V[2]-O*V[1],h=g+Q*V[1],H=T[0];H>0;)for(H<t?(j=H,H=0):(j=t,H-=t),C=h+H*V[0],s=V[1]-j*V[0],K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++)e.call(a,i(o,C),iEr([K,X,J,W,Y,$,G,M,L,P],q),r.ref),C+=n;C+=s}C+=u}C+=v}C+=f}C+=l}C+=d}C+=y}C+=p}C+=m}}lN.exports=nEr});var pN=c((Sve,dN)=>{"use strict";var sEr=Zr(),uEr=Qr(),vEr=Kr(),fEr=re();function lEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S;for(S=sEr(r.shape,r.strides),v=S.sh,d=S.sx,u=fEr(S.idx),t=uEr(r.dtype),y=r.offset,o=r.data,i=d[0],b=v[1];b>0;)for(b<t?(l=b,b=0):(l=t,b-=t),s=y+b*d[1],g=v[0];g>0;)for(g<t?(f=g,g=0):(f=t,g-=t),p=s+g*d[0],n=d[1]-f*d[0],h=0;h<l;h++){for(m=0;m<f;m++)e.call(a,o[p],vEr([h,m],u),r.ref),p+=i;p+=n}}dN.exports=lEr});var mN=c((Eve,yN)=>{"use strict";var cEr=Zr(),dEr=Qr(),pEr=Kr(),yEr=re();function mEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E;for(E=cEr(r.shape,r.strides),l=E.sh,m=E.sx,f=yEr(E.idx),t=dEr(r.dtype),h=r.offset,o=r.data,i=m[0],x=l[2];x>0;)for(x<t?(p=x,x=0):(p=t,x-=t),v=h+x*m[2],_=l[1];_>0;)for(_<t?(y=_,_=0):(y=t,_-=t),s=m[2]-y*m[1],u=v+_*m[1],A=l[0];A>0;)for(A<t?(d=A,A=0):(d=t,A-=t),g=u+A*m[0],n=m[1]-d*m[0],w=0;w<p;w++){for(S=0;S<y;S++){for(b=0;b<d;b++)e.call(a,o[g],pEr([w,S,b],f),r.ref),g+=i;g+=n}g+=s}}yN.exports=mEr});var gN=c((Ave,hN)=>{"use strict";var hEr=Zr(),gEr=Qr(),bEr=Kr(),xEr=re();function qEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(I=hEr(r.shape,r.strides),y=I.sh,b=I.sx,d=xEr(I.idx),t=gEr(r.dtype),S=r.offset,o=r.data,i=b[0],O=y[3];O>0;)for(O<t?(g=O,O=0):(g=t,O-=t),l=S+O*b[3],j=y[2];j>0;)for(j<t?(h=j,j=0):(h=t,j-=t),u=b[3]-h*b[2],f=l+j*b[2],T=y[1];T>0;)for(T<t?(m=T,T=0):(m=t,T-=t),s=b[2]-m*b[1],v=f+T*b[1],q=y[0];q>0;)for(q<t?(p=q,q=0):(p=t,q-=t),w=v+q*b[0],n=b[1]-p*b[0],E=0;E<g;E++){for(x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++)e.call(a,o[w],bEr([E,x,_,A],d),r.ref),w+=i;w+=n}w+=s}w+=u}}hN.exports=qEr});var xN=c((_ve,bN)=>{"use strict";var wEr=Zr(),SEr=Qr(),EEr=Kr(),AEr=re();function _Er(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R;for(R=wEr(r.shape,r.strides),m=R.sh,A=R.sx,p=AEr(R.idx),t=SEr(r.dtype),_=r.offset,o=r.data,i=A[0],F=m[4];F>0;)for(F<t?(w=F,F=0):(w=t,F-=t),y=_+F*A[4],N=m[3];N>0;)for(N<t?(S=N,N=0):(S=t,N-=t),v=A[4]-S*A[3],d=y+N*A[3],k=m[2];k>0;)for(k<t?(b=k,k=0):(b=t,k-=t),u=A[3]-b*A[2],l=d+k*A[2],D=m[1];D>0;)for(D<t?(g=D,D=0):(g=t,D-=t),s=A[2]-g*A[1],f=l+D*A[1],I=m[0];I>0;)for(I<t?(h=I,I=0):(h=t,I-=t),x=f+I*A[0],n=A[1]-h*A[0],O=0;O<w;O++){for(j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++)e.call(a,o[x],EEr([O,j,T,q,E],p),r.ref),x+=i;x+=n}x+=s}x+=u}x+=v}}bN.exports=_Er});var wN=c((Tve,qN)=>{"use strict";var TEr=Zr(),jEr=Qr(),IEr=Kr(),OEr=re();function NEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C;for(C=TEr(r.shape,r.strides),g=C.sh,E=C.sx,h=OEr(C.idx),t=jEr(r.dtype),q=r.offset,o=r.data,i=E[0],U=g[5];U>0;)for(U<t?(x=U,U=0):(x=t,U-=t),m=q+U*E[5],V=g[4];V>0;)for(V<t?(_=V,V=0):(_=t,V-=t),f=E[5]-_*E[4],p=m+V*E[4],z=g[3];z>0;)for(z<t?(A=z,z=0):(A=t,z-=t),v=E[4]-A*E[3],y=p+z*E[3],B=g[2];B>0;)for(B<t?(w=B,B=0):(w=t,B-=t),u=E[3]-w*E[2],d=y+B*E[2],R=g[1];R>0;)for(R<t?(S=R,R=0):(S=t,R-=t),s=E[2]-S*E[1],l=d+R*E[1],F=g[0];F>0;)for(F<t?(b=F,F=0):(b=t,F-=t),T=l+F*E[0],n=E[1]-b*E[0],N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++)e.call(a,o[T],IEr([N,k,D,I,O,j],h),r.ref),T+=i;T+=n}T+=s}T+=u}T+=v}T+=f}}qN.exports=NEr});var EN=c((jve,SN)=>{"use strict";var DEr=Zr(),kEr=Qr(),BEr=Kr(),FEr=re();function REr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$;for($=DEr(r.shape,r.strides),S=$.sh,j=$.sx,b=FEr($.idx),t=kEr(r.dtype),O=r.offset,o=r.data,i=j[0],G=S[6];G>0;)for(G<t?(T=G,G=0):(T=t,G-=t),g=O+G*j[6],M=S[5];M>0;)for(M<t?(q=M,M=0):(q=t,M-=t),l=j[6]-q*j[5],h=g+M*j[5],L=S[4];L>0;)for(L<t?(E=L,L=0):(E=t,L-=t),f=j[5]-E*j[4],m=h+L*j[4],P=S[3];P>0;)for(P<t?(x=P,P=0):(x=t,P-=t),v=j[4]-x*j[3],p=m+P*j[3],C=S[2];C>0;)for(C<t?(_=C,C=0):(_=t,C-=t),u=j[3]-_*j[2],y=p+C*j[2],U=S[1];U>0;)for(U<t?(A=U,U=0):(A=t,U-=t),s=j[2]-A*j[1],d=y+U*j[1],V=S[0];V>0;)for(V<t?(w=V,V=0):(w=t,V-=t),I=d+V*j[0],n=j[1]-w*j[0],z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)e.call(a,o[I],BEr([z,B,R,F,N,k,D],b),r.ref),I+=i;I+=n}I+=s}I+=u}I+=v}I+=f}I+=l}}SN.exports=REr});var _N=c((Ive,AN)=>{"use strict";var zEr=Zr(),VEr=Qr(),UEr=Kr(),CEr=re();function PEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K;for(K=zEr(r.shape,r.strides),A=K.sh,D=K.sx,w=CEr(K.idx),t=VEr(r.dtype),k=r.offset,o=r.data,i=D[0],X=A[7];X>0;)for(X<t?(I=X,X=0):(I=t,X-=t),S=k+X*D[7],J=A[6];J>0;)for(J<t?(O=J,J=0):(O=t,J-=t),d=D[7]-O*D[6],b=S+J*D[6],W=A[5];W>0;)for(W<t?(j=W,W=0):(j=t,W-=t),l=D[6]-j*D[5],g=b+W*D[5],Y=A[4];Y>0;)for(Y<t?(T=Y,Y=0):(T=t,Y-=t),f=D[5]-T*D[4],h=g+Y*D[4],$=A[3];$>0;)for($<t?(q=$,$=0):(q=t,$-=t),v=D[4]-q*D[3],m=h+$*D[3],G=A[2];G>0;)for(G<t?(E=G,G=0):(E=t,G-=t),u=D[3]-E*D[2],p=m+G*D[2],M=A[1];M>0;)for(M<t?(x=M,M=0):(x=t,M-=t),s=D[2]-x*D[1],y=p+M*D[1],L=A[0];L>0;)for(L<t?(_=L,L=0):(_=t,L-=t),N=y+L*D[0],n=D[1]-_*D[0],P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++)e.call(a,o[N],UEr([P,C,U,V,z,B,R,F],w),r.ref),N+=i;N+=n}N+=s}N+=u}N+=v}N+=f}N+=l}N+=d}}AN.exports=PEr});var jN=c((Ove,TN)=>{"use strict";var LEr=Zr(),MEr=Qr(),GEr=Kr(),YEr=re();function $Er(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar;for(ar=LEr(r.shape,r.strides),x=ar.sh,F=ar.sx,_=YEr(ar.idx),t=MEr(r.dtype),R=r.offset,o=r.data,i=F[0],rr=x[8];rr>0;)for(rr<t?(N=rr,rr=0):(N=t,rr-=t),A=R+rr*F[8],Z=x[7];Z>0;)for(Z<t?(k=Z,Z=0):(k=t,Z-=t),y=F[8]-k*F[7],w=A+Z*F[7],Q=x[6];Q>0;)for(Q<t?(D=Q,Q=0):(D=t,Q-=t),d=F[7]-D*F[6],S=w+Q*F[6],H=x[5];H>0;)for(H<t?(I=H,H=0):(I=t,H-=t),l=F[6]-I*F[5],b=S+H*F[5],K=x[4];K>0;)for(K<t?(O=K,K=0):(O=t,K-=t),f=F[5]-O*F[4],g=b+K*F[4],X=x[3];X>0;)for(X<t?(j=X,X=0):(j=t,X-=t),v=F[4]-j*F[3],h=g+X*F[3],J=x[2];J>0;)for(J<t?(T=J,J=0):(T=t,J-=t),u=F[3]-T*F[2],m=h+J*F[2],W=x[1];W>0;)for(W<t?(q=W,W=0):(q=t,W-=t),s=F[2]-q*F[1],p=m+W*F[1],Y=x[0];Y>0;)for(Y<t?(E=Y,Y=0):(E=t,Y-=t),B=p+Y*F[0],n=F[1]-E*F[0],$=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++)e.call(a,o[B],GEr([$,G,M,L,P,C,U,V,z],_),r.ref),B+=i;B+=n}B+=s}B+=u}B+=v}B+=f}B+=l}B+=d}B+=y}}TN.exports=$Er});var ON=c((Nve,IN)=>{"use strict";var WEr=Zr(),JEr=Qr(),XEr=Kr(),KEr=re();function HEr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr;for(nr=WEr(r.shape,r.strides),q=nr.sh,z=nr.sx,E=KEr(nr.idx),t=JEr(r.dtype),V=r.offset,o=r.data,i=z[0],or=q[9];or>0;)for(or<t?(B=or,or=0):(B=t,or-=t),x=V+or*z[9],tr=q[8];tr>0;)for(tr<t?(R=tr,tr=0):(R=t,tr-=t),p=z[9]-R*z[8],_=x+tr*z[8],ir=q[7];ir>0;)for(ir<t?(F=ir,ir=0):(F=t,ir-=t),y=z[8]-F*z[7],A=_+ir*z[7],er=q[6];er>0;)for(er<t?(N=er,er=0):(N=t,er-=t),d=z[7]-N*z[6],w=A+er*z[6],ar=q[5];ar>0;)for(ar<t?(k=ar,ar=0):(k=t,ar-=t),l=z[6]-k*z[5],S=w+ar*z[5],rr=q[4];rr>0;)for(rr<t?(D=rr,rr=0):(D=t,rr-=t),f=z[5]-D*z[4],b=S+rr*z[4],Z=q[3];Z>0;)for(Z<t?(I=Z,Z=0):(I=t,Z-=t),v=z[4]-I*z[3],g=b+Z*z[3],Q=q[2];Q>0;)for(Q<t?(O=Q,Q=0):(O=t,Q-=t),u=z[3]-O*z[2],h=g+Q*z[2],H=q[1];H>0;)for(H<t?(j=H,H=0):(j=t,H-=t),s=z[2]-j*z[1],m=h+H*z[1],K=q[0];K>0;)for(K<t?(T=K,K=0):(T=t,K-=t),U=m+K*z[0],n=z[1]-T*z[0],X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++)e.call(a,o[U],XEr([X,J,W,Y,$,G,M,L,P,C],E),r.ref),U+=i;U+=n}U+=s}U+=u}U+=v}U+=f}U+=l}U+=d}U+=y}U+=p}}IN.exports=HEr});var DN=c((Dve,NN)=>{"use strict";function ZEr(r,e,a){e.call(a,r.accessors[0](r.data,r.offset),[],r.ref)}NN.exports=ZEr});var BN=c((kve,kN)=>{"use strict";function QEr(r,e,a){var t,o,i,n,s,u;for(n=r.shape[0],i=r.strides[0],s=r.offset,t=r.data,o=r.accessors[0],u=0;u<n;u++)e.call(a,o(t,s),[u],r.ref),s+=i}kN.exports=QEr});var RN=c((Bve,FN)=>{"use strict";var rAr=qe(),eAr=re(),aAr=Kr();function tAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p;for(u=r.shape,l=r.strides,s=rAr(u.length),r.order==="row-major"?(v=u[1],f=u[0],i=l[1],n=l[0]-v*l[1]):(v=u[0],f=u[1],i=l[0],n=l[1]-v*l[0],s=eAr(s)),d=r.offset,t=r.data,o=r.accessors[0],p=0;p<f;p++){for(y=0;y<v;y++)e.call(a,o(t,d),aAr([p,y],s),r.ref),d+=i;d+=n}}FN.exports=tAr});var VN=c((Fve,zN)=>{"use strict";var iAr=qe(),oAr=re(),nAr=Kr();function sAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(v=r.shape,y=r.strides,u=iAr(v.length),r.order==="row-major"?(f=v[2],l=v[1],d=v[0],i=y[2],n=y[1]-f*y[2],s=y[0]-l*y[1]):(f=v[0],l=v[1],d=v[2],i=y[0],n=y[1]-f*y[0],s=y[2]-l*y[1],u=oAr(u)),p=r.offset,t=r.data,o=r.accessors[0],g=0;g<d;g++){for(h=0;h<l;h++){for(m=0;m<f;m++)e.call(a,o(t,p),nAr([g,h,m],u),r.ref),p+=i;p+=n}p+=s}}zN.exports=sAr});var CN=c((Rve,UN)=>{"use strict";var uAr=qe(),vAr=re(),fAr=Kr();function lAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(f=r.shape,m=r.strides,v=uAr(f.length),r.order==="row-major"?(l=f[3],d=f[2],y=f[1],p=f[0],i=m[3],n=m[2]-l*m[3],s=m[1]-d*m[2],u=m[0]-y*m[1]):(l=f[0],d=f[1],y=f[2],p=f[3],i=m[0],n=m[1]-l*m[0],s=m[2]-d*m[1],u=m[3]-y*m[2],v=vAr(v)),h=r.offset,t=r.data,o=r.accessors[0],w=0;w<p;w++){for(S=0;S<y;S++){for(b=0;b<d;b++){for(g=0;g<l;g++)e.call(a,o(t,h),fAr([w,S,b,g],v),r.ref),h+=i;h+=n}h+=s}h+=u}}UN.exports=lAr});var LN=c((zve,PN)=>{"use strict";var cAr=qe(),dAr=re(),pAr=Kr();function yAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(l=r.shape,g=r.strides,f=cAr(l.length),r.order==="row-major"?(d=l[4],y=l[3],p=l[2],m=l[1],h=l[0],i=g[4],n=g[3]-d*g[4],s=g[2]-y*g[3],u=g[1]-p*g[2],v=g[0]-m*g[1]):(d=l[0],y=l[1],p=l[2],m=l[3],h=l[4],i=g[0],n=g[1]-d*g[0],s=g[2]-y*g[1],u=g[3]-p*g[2],v=g[4]-m*g[3],f=dAr(f)),b=r.offset,t=r.data,o=r.accessors[0],x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++)e.call(a,o(t,b),pAr([x,_,A,w,S],f),r.ref),b+=i;b+=n}b+=s}b+=u}b+=v}}PN.exports=yAr});var GN=c((Vve,MN)=>{"use strict";var mAr=qe(),hAr=re(),gAr=Kr();function bAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T;for(d=r.shape,S=r.strides,l=mAr(d.length),r.order==="row-major"?(y=d[5],p=d[4],m=d[3],h=d[2],g=d[1],b=d[0],i=S[5],n=S[4]-y*S[5],s=S[3]-p*S[4],u=S[2]-m*S[3],v=S[1]-h*S[2],f=S[0]-g*S[1]):(y=d[0],p=d[1],m=d[2],h=d[3],g=d[4],b=d[5],i=S[0],n=S[1]-y*S[0],s=S[2]-p*S[1],u=S[3]-m*S[2],v=S[4]-h*S[3],f=S[5]-g*S[4],l=hAr(l)),w=r.offset,t=r.data,o=r.accessors[0],T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++)e.call(a,o(t,w),gAr([T,q,E,x,_,A],l),r.ref),w+=i;w+=n}w+=s}w+=u}w+=v}w+=f}}MN.exports=bAr});var $N=c((Uve,YN)=>{"use strict";var xAr=qe(),qAr=re(),wAr=Kr();function SAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(y=r.shape,A=r.strides,d=xAr(y.length),r.order==="row-major"?(p=y[6],m=y[5],h=y[4],g=y[3],b=y[2],S=y[1],w=y[0],i=A[6],n=A[5]-p*A[6],s=A[4]-m*A[5],u=A[3]-h*A[4],v=A[2]-g*A[3],f=A[1]-b*A[2],l=A[0]-S*A[1]):(p=y[0],m=y[1],h=y[2],g=y[3],b=y[4],S=y[5],w=y[6],i=A[0],n=A[1]-p*A[0],s=A[2]-m*A[1],u=A[3]-h*A[2],v=A[4]-g*A[3],f=A[5]-b*A[4],l=A[6]-S*A[5],d=qAr(d)),_=r.offset,t=r.data,o=r.accessors[0],I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++){for(x=0;x<p;x++)e.call(a,o(t,_),wAr([I,O,j,T,q,E,x],d),r.ref),_+=i;_+=n}_+=s}_+=u}_+=v}_+=f}_+=l}}YN.exports=SAr});var JN=c((Cve,WN)=>{"use strict";var EAr=qe(),AAr=re(),_Ar=Kr();function TAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(p=r.shape,x=r.strides,y=EAr(p.length),r.order==="row-major"?(m=p[7],h=p[6],g=p[5],b=p[4],S=p[3],w=p[2],A=p[1],_=p[0],i=x[7],n=x[6]-m*x[7],s=x[5]-h*x[6],u=x[4]-g*x[5],v=x[3]-b*x[4],f=x[2]-S*x[3],l=x[1]-w*x[2],d=x[0]-A*x[1]):(m=p[0],h=p[1],g=p[2],b=p[3],S=p[4],w=p[5],A=p[6],_=p[7],i=x[0],n=x[1]-m*x[0],s=x[2]-h*x[1],u=x[3]-g*x[2],v=x[4]-b*x[3],f=x[5]-S*x[4],l=x[6]-w*x[5],d=x[7]-A*x[6],y=AAr(y)),E=r.offset,t=r.data,o=r.accessors[0],N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<m;q++)e.call(a,o(t,E),_Ar([N,k,D,I,O,j,T,q],y),r.ref),E+=i;E+=n}E+=s}E+=u}E+=v}E+=f}E+=l}E+=d}}WN.exports=TAr});var KN=c((Pve,XN)=>{"use strict";var jAr=qe(),IAr=re(),OAr=Kr();function NAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(m=r.shape,q=r.strides,p=jAr(m.length),r.order==="row-major"?(h=m[8],g=m[7],b=m[6],S=m[5],w=m[4],A=m[3],_=m[2],x=m[1],E=m[0],i=q[8],n=q[7]-h*q[8],s=q[6]-g*q[7],u=q[5]-b*q[6],v=q[4]-S*q[5],f=q[3]-w*q[4],l=q[2]-A*q[3],d=q[1]-_*q[2],y=q[0]-x*q[1]):(h=m[0],g=m[1],b=m[2],S=m[3],w=m[4],A=m[5],_=m[6],x=m[7],E=m[8],i=q[0],n=q[1]-h*q[0],s=q[2]-g*q[1],u=q[3]-b*q[2],v=q[4]-S*q[3],f=q[5]-w*q[4],l=q[6]-A*q[5],d=q[7]-_*q[6],y=q[8]-x*q[7],p=IAr(p)),T=r.offset,t=r.data,o=r.accessors[0],B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<b;I++){for(O=0;O<g;O++){for(j=0;j<h;j++)e.call(a,o(t,T),OAr([B,R,F,N,k,D,I,O,j],p),r.ref),T+=i;T+=n}T+=s}T+=u}T+=v}T+=f}T+=l}T+=d}T+=y}}XN.exports=NAr});var ZN=c((Lve,HN)=>{"use strict";var DAr=qe(),kAr=re(),BAr=Kr();function FAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(h=r.shape,j=r.strides,m=DAr(h.length),r.order==="row-major"?(g=h[9],b=h[8],S=h[7],w=h[6],A=h[5],_=h[4],x=h[3],E=h[2],q=h[1],T=h[0],i=j[9],n=j[8]-g*j[9],s=j[7]-b*j[8],u=j[6]-S*j[7],v=j[5]-w*j[6],f=j[4]-A*j[5],l=j[3]-_*j[4],d=j[2]-x*j[3],y=j[1]-E*j[2],p=j[0]-q*j[1]):(g=h[0],b=h[1],S=h[2],w=h[3],A=h[4],_=h[5],x=h[6],E=h[7],q=h[8],T=h[9],i=j[0],n=j[1]-g*j[0],s=j[2]-b*j[1],u=j[3]-S*j[2],v=j[4]-w*j[3],f=j[5]-A*j[4],l=j[6]-_*j[5],d=j[7]-x*j[6],y=j[8]-E*j[7],p=j[9]-q*j[8],m=kAr(m)),O=r.offset,t=r.data,o=r.accessors[0],U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(I=0;I<g;I++)e.call(a,o(t,O),BAr([U,V,z,B,R,F,N,k,D,I],m),r.ref),O+=i;O+=n}O+=s}O+=u}O+=v}O+=f}O+=l}O+=d}O+=y}O+=p}}HN.exports=FAr});var Cf=c((Mve,QN)=>{"use strict";var RAr=pr(),rs=Sf();function zAr(r,e,a,t,o,i,n){var s,u,v,f,l;for(s=r.length,u=1,l=0;l<s;l++)u*=r[l];if(i==="clamp")o<0?o=0:o>=u&&(o=u-1);else if(i==="wrap")o<0?(o+=u,o<0&&(o%=u,o!==0&&(o+=u))):o>=u&&(o-=u,o>=u&&(o%=u));else if(i==="normalize"&&o<0&&(o+=u),o<0||o>=u)throw new RangeError(RAr("invalid argument. Linear index must not exceed array dimensions. Number of array elements: `%u`. Value: `%d`.",u,o));if(a===0){if(t==="column-major"){for(l=0;l<s;l++)f=o%r[l],o-=f,o/=r[l],n[l]=f;return n}for(l=s-1;l>=0;l--)f=o%r[l],o-=f,o/=r[l],n[l]=f;return n}if(t==="column-major"){for(l=s-1;l>=0;l--)f=e[l],f<0?(v=rs(o/f),o-=v*f,n[l]=r[l]-1+v):(v=rs(o/f),o-=v*f,n[l]=v);return n}for(l=0;l<s;l++)f=e[l],f<0?(v=rs(o/f),o-=v*f,n[l]=r[l]-1+v):(v=rs(o/f),o-=v*f,n[l]=v);return n}QN.exports=zAr});var eD=c((Gve,rD)=>{"use strict";var VAr=Se(),UAr=Cf();function CAr(r,e,a,t,o,i){return UAr(r,e,a,t,o,i,VAr(r.length))}rD.exports=CAr});var Ai=c((Yve,tD)=>{"use strict";var PAr=Ir(),aD=eD(),LAr=Cf();PAr(aD,"assign",LAr);tD.exports=aD});var nD=c(($ve,oD)=>{"use strict";var MAr=Jr(),GAr=na(),YAr=Ai(),iD="throw";function $Ar(r,e,a){var t,o,i,n,s,u,v,f,l,d;for(u=r.shape,i=MAr(u),t=r.data,v=r.strides,f=r.offset,o=r.order,n=r.accessors[0],d=0;d<i;d++)l=GAr(u,v,f,o,d,iD),s=YAr(u,v,0,o,d,iD),e.call(a,n(t,l),s,r.ref)}oD.exports=$Ar});var uD=c((Wve,sD)=>{"use strict";function WAr(r,e,a){e.call(a,r.data[r.offset],[],r.ref)}sD.exports=WAr});var fD=c((Jve,vD)=>{"use strict";function JAr(r,e,a){var t,o,i,n,s;for(i=r.shape[0],o=r.strides[0],n=r.offset,t=r.data,s=0;s<i;s++)e.call(a,t[n],[s],r.ref),n+=o}vD.exports=JAr});var cD=c((Xve,lD)=>{"use strict";var XAr=qe(),KAr=re(),HAr=Kr();function ZAr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y;for(s=r.shape,f=r.strides,n=XAr(s.length),r.order==="row-major"?(u=s[1],v=s[0],o=f[1],i=f[0]-u*f[1]):(u=s[0],v=s[1],o=f[0],i=f[1]-u*f[0],n=KAr(n)),l=r.offset,t=r.data,y=0;y<v;y++){for(d=0;d<u;d++)e.call(a,t[l],HAr([y,d],n),r.ref),l+=o;l+=i}}lD.exports=ZAr});var pD=c((Kve,dD)=>{"use strict";var QAr=qe(),r5r=re(),e5r=Kr();function a5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h;for(u=r.shape,d=r.strides,s=QAr(u.length),r.order==="row-major"?(v=u[2],f=u[1],l=u[0],o=d[2],i=d[1]-v*d[2],n=d[0]-f*d[1]):(v=u[0],f=u[1],l=u[2],o=d[0],i=d[1]-v*d[0],n=d[2]-f*d[1],s=r5r(s)),y=r.offset,t=r.data,h=0;h<l;h++){for(m=0;m<f;m++){for(p=0;p<v;p++)e.call(a,t[y],e5r([h,m,p],s),r.ref),y+=o;y+=i}y+=n}}dD.exports=a5r});var mD=c((Hve,yD)=>{"use strict";var t5r=qe(),i5r=re(),o5r=Kr();function n5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S;for(v=r.shape,p=r.strides,u=t5r(v.length),r.order==="row-major"?(f=v[3],l=v[2],d=v[1],y=v[0],o=p[3],i=p[2]-f*p[3],n=p[1]-l*p[2],s=p[0]-d*p[1]):(f=v[0],l=v[1],d=v[2],y=v[3],o=p[0],i=p[1]-f*p[0],n=p[2]-l*p[1],s=p[3]-d*p[2],u=i5r(u)),m=r.offset,t=r.data,S=0;S<y;S++){for(b=0;b<d;b++){for(g=0;g<l;g++){for(h=0;h<f;h++)e.call(a,t[m],o5r([S,b,g,h],u),r.ref),m+=o;m+=i}m+=n}m+=s}}yD.exports=n5r});var gD=c((Zve,hD)=>{"use strict";var s5r=qe(),u5r=re(),v5r=Kr();function f5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_;for(f=r.shape,h=r.strides,v=s5r(f.length),r.order==="row-major"?(l=f[4],d=f[3],y=f[2],p=f[1],m=f[0],o=h[4],i=h[3]-l*h[4],n=h[2]-d*h[3],s=h[1]-y*h[2],u=h[0]-p*h[1]):(l=f[0],d=f[1],y=f[2],p=f[3],m=f[4],o=h[0],i=h[1]-l*h[0],n=h[2]-d*h[1],s=h[3]-y*h[2],u=h[4]-p*h[3],v=u5r(v)),g=r.offset,t=r.data,_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++){for(b=0;b<l;b++)e.call(a,t[g],v5r([_,A,w,S,b],v),r.ref),g+=o;g+=i}g+=n}g+=s}g+=u}}hD.exports=f5r});var xD=c((Qve,bD)=>{"use strict";var l5r=qe(),c5r=re(),d5r=Kr();function p5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(l=r.shape,b=r.strides,f=l5r(l.length),r.order==="row-major"?(d=l[5],y=l[4],p=l[3],m=l[2],h=l[1],g=l[0],o=b[5],i=b[4]-d*b[5],n=b[3]-y*b[4],s=b[2]-p*b[3],u=b[1]-m*b[2],v=b[0]-h*b[1]):(d=l[0],y=l[1],p=l[2],m=l[3],h=l[4],g=l[5],o=b[0],i=b[1]-d*b[0],n=b[2]-y*b[1],s=b[3]-p*b[2],u=b[4]-m*b[3],v=b[5]-h*b[4],f=c5r(f)),S=r.offset,t=r.data,q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++){for(w=0;w<d;w++)e.call(a,t[S],d5r([q,E,x,_,A,w],f),r.ref),S+=o;S+=i}S+=n}S+=s}S+=u}S+=v}}bD.exports=p5r});var wD=c((rfe,qD)=>{"use strict";var y5r=qe(),m5r=re(),h5r=Kr();function g5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O;for(d=r.shape,w=r.strides,l=y5r(d.length),r.order==="row-major"?(y=d[6],p=d[5],m=d[4],h=d[3],g=d[2],b=d[1],S=d[0],o=w[6],i=w[5]-y*w[6],n=w[4]-p*w[5],s=w[3]-m*w[4],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-b*w[1]):(y=d[0],p=d[1],m=d[2],h=d[3],g=d[4],b=d[5],S=d[6],o=w[0],i=w[1]-y*w[0],n=w[2]-p*w[1],s=w[3]-m*w[2],u=w[4]-h*w[3],v=w[5]-g*w[4],f=w[6]-b*w[5],l=m5r(l)),A=r.offset,t=r.data,O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++){for(x=0;x<p;x++){for(_=0;_<y;_++)e.call(a,t[A],h5r([O,j,T,q,E,x,_],l),r.ref),A+=o;A+=i}A+=n}A+=s}A+=u}A+=v}A+=f}}qD.exports=g5r});var ED=c((efe,SD)=>{"use strict";var b5r=qe(),x5r=re(),q5r=Kr();function w5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(y=r.shape,_=r.strides,d=b5r(y.length),r.order==="row-major"?(p=y[7],m=y[6],h=y[5],g=y[4],b=y[3],S=y[2],w=y[1],A=y[0],o=_[7],i=_[6]-p*_[7],n=_[5]-m*_[6],s=_[4]-h*_[5],u=_[3]-g*_[4],v=_[2]-b*_[3],f=_[1]-S*_[2],l=_[0]-w*_[1]):(p=y[0],m=y[1],h=y[2],g=y[3],b=y[4],S=y[5],w=y[6],A=y[7],o=_[0],i=_[1]-p*_[0],n=_[2]-m*_[1],s=_[3]-h*_[2],u=_[4]-g*_[3],v=_[5]-b*_[4],f=_[6]-S*_[5],l=_[7]-w*_[6],d=x5r(d)),x=r.offset,t=r.data,k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<m;q++){for(E=0;E<p;E++)e.call(a,t[x],q5r([k,D,I,O,j,T,q,E],d),r.ref),x+=o;x+=i}x+=n}x+=s}x+=u}x+=v}x+=f}x+=l}}SD.exports=w5r});var _D=c((afe,AD)=>{"use strict";var S5r=qe(),E5r=re(),A5r=Kr();function _5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R;for(p=r.shape,E=r.strides,y=S5r(p.length),r.order==="row-major"?(m=p[8],h=p[7],g=p[6],b=p[5],S=p[4],w=p[3],A=p[2],_=p[1],x=p[0],o=E[8],i=E[7]-m*E[8],n=E[6]-h*E[7],s=E[5]-g*E[6],u=E[4]-b*E[5],v=E[3]-S*E[4],f=E[2]-w*E[3],l=E[1]-A*E[2],d=E[0]-_*E[1]):(m=p[0],h=p[1],g=p[2],b=p[3],S=p[4],w=p[5],A=p[6],_=p[7],x=p[8],o=E[0],i=E[1]-m*E[0],n=E[2]-h*E[1],s=E[3]-g*E[2],u=E[4]-b*E[3],v=E[5]-S*E[4],f=E[6]-w*E[5],l=E[7]-A*E[6],d=E[8]-_*E[7],y=E5r(y)),q=r.offset,t=r.data,R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<b;I++){for(O=0;O<g;O++){for(j=0;j<h;j++){for(T=0;T<m;T++)e.call(a,t[q],A5r([R,F,N,k,D,I,O,j,T],y),r.ref),q+=o;q+=i}q+=n}q+=s}q+=u}q+=v}q+=f}q+=l}q+=d}}AD.exports=_5r});var jD=c((tfe,TD)=>{"use strict";var T5r=qe(),j5r=re(),I5r=Kr();function O5r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V;for(m=r.shape,T=r.strides,p=T5r(m.length),r.order==="row-major"?(h=m[9],g=m[8],b=m[7],S=m[6],w=m[5],A=m[4],_=m[3],x=m[2],E=m[1],q=m[0],o=T[9],i=T[8]-h*T[9],n=T[7]-g*T[8],s=T[6]-b*T[7],u=T[5]-S*T[6],v=T[4]-w*T[5],f=T[3]-A*T[4],l=T[2]-_*T[3],d=T[1]-x*T[2],y=T[0]-E*T[1]):(h=m[0],g=m[1],b=m[2],S=m[3],w=m[4],A=m[5],_=m[6],x=m[7],E=m[8],q=m[9],o=T[0],i=T[1]-h*T[0],n=T[2]-g*T[1],s=T[3]-b*T[2],u=T[4]-S*T[3],v=T[5]-w*T[4],f=T[6]-A*T[5],l=T[7]-_*T[6],d=T[8]-x*T[7],y=T[9]-E*T[8],p=j5r(p)),j=r.offset,t=r.data,V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(I=0;I<g;I++){for(O=0;O<h;O++)e.call(a,t[j],I5r([V,z,B,R,F,N,k,D,I,O],p),r.ref),j+=o;j+=i}j+=n}j+=s}j+=u}j+=v}j+=f}j+=l}j+=d}j+=y}}TD.exports=O5r});var ND=c((ife,OD)=>{"use strict";var N5r=Jr(),D5r=na(),k5r=Ai(),ID="throw";function B5r(r,e,a){var t,o,i,n,s,u,v,f,l;for(s=r.shape,i=N5r(s),t=r.data,u=r.strides,v=r.offset,o=r.order,l=0;l<i;l++)f=D5r(s,u,v,o,l,ID),n=k5r(s,u,0,o,l,ID),e.call(a,t[f],n,r.ref)}OD.exports=B5r});var FD=c((ofe,BD)=>{"use strict";var F5r=Ea(),R5r=ei(),z5r=Jr(),V5r=K7(),U5r=Z7(),C5r=rN(),P5r=aN(),L5r=iN(),M5r=nN(),G5r=uN(),Y5r=fN(),$5r=cN(),W5r=pN(),J5r=mN(),X5r=gN(),K5r=xN(),H5r=wN(),Z5r=EN(),Q5r=_N(),r8r=jN(),e8r=ON(),a8r=DN(),t8r=BN(),i8r=RN(),o8r=VN(),n8r=CN(),s8r=LN(),u8r=GN(),v8r=$N(),f8r=JN(),l8r=KN(),c8r=ZN(),d8r=nD(),p8r=uD(),y8r=fD(),m8r=cD(),h8r=pD(),g8r=mD(),b8r=gD(),x8r=xD(),q8r=wD(),w8r=ED(),S8r=_D(),E8r=jD(),A8r=ND(),Pf=[p8r,y8r,m8r,h8r,g8r,b8r,x8r,q8r,w8r,S8r,E8r],DD=[a8r,t8r,i8r,o8r,n8r,s8r,u8r,v8r,f8r,l8r,c8r],_8r=[W5r,J5r,X5r,K5r,H5r,Z5r,Q5r,r8r,e8r],T8r=[V5r,U5r,C5r,P5r,L5r,M5r,G5r,Y5r,$5r],kD=Pf.length-1;function j8r(r,e,a){var t,o,i;if(i=R5r(r[0]),o=i.shape,t=o.length,t===0)return i.accessorProtocol?DD[t](i,e,a):Pf[t](i,e,a);if(z5r(o)!==0){if(t<=kD&&F5r(i.strides)!==0)return i.accessorProtocol?DD[t](i,e,a):Pf[t](i,e,a);if(t<=kD)return i.accessorProtocol?T8r[t-2](i,e,a):_8r[t-2](i,e,a);if(i.accessorProtocol)return d8r(i,e,a);A8r(i,e,a)}}BD.exports=j8r});var zD=c((nfe,RD)=>{"use strict";var I8r=FD();RD.exports=I8r});var UD=c((sfe,VD)=>{"use strict";var O8r=it(),N8r=bi(),D8r=gi(),k8r=Fa(),B8r=aa(),F8r=pr();function R8r(r,e,a){var t,o;if(t=k8r(e,1),t===null)throw new TypeError(F8r("invalid argument. Second argument must be a recognized data type. Value: `%s`.",e));return/^complex/.test(e)&&typeof r=="number"&&(r=[r,0]),O8r(t)?o=N8r(e):o=D8r(e),o(t,0,r),new B8r(e,t,[],[0],0,a)}VD.exports=R8r});var PD=c((ufe,CD)=>{"use strict";var z8r=UD();CD.exports=z8r});var MD=c((vfe,LD)=>{"use strict";function V8r(r,e,a){var t,o,i;for(t=r.length,o=a,i=0;i<t;i++){if(r[i]===0)return a;e[i]>0&&(o+=e[i]*(r[i]-1))}return o}LD.exports=V8r});var YD=c((ffe,GD)=>{"use strict";var U8r=MD();GD.exports=U8r});var JD=c((lfe,WD)=>{"use strict";var $D=_o(),C8r=Te();function P8r(r,e){var a,t,o;if(t=e.length,a=C8r(r,!1),a.length===t){for(o=0;o<t;o++)if(a[o]!==e[o])return $D(r,e);return r}return $D(r,e)}WD.exports=P8r});var Lf=c((cfe,XD)=>{"use strict";var L8r=JD();XD.exports=L8r});var HD=c((dfe,KD)=>{"use strict";var M8r=qi(),G8r=Lf(),Y8r=Te();function $8r(r){var e,a,t,o,i;for(o=r.length,e=[],i=0;i<o;i++)e.push(Y8r(r[i],!1));if(t=M8r(e),t===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(a=[],i=0;i<o;i++)a.push(G8r(r[i],t));return a}KD.exports=$8r});var QD=c((pfe,ZD)=>{"use strict";var W8r=HD();ZD.exports=W8r});var ek=c((yfe,rk)=>{"use strict";var Mf=Ir(),J8r=bt(),X8r=Of();function K8r(r,e,a){return Mf(a,"nargs",r.nargs),Mf(a,"nin",r.nin),Mf(a,"nout",r.nout),J8r(a,"types",t),a;function t(){return X8r(e,r.nin,r.nout)}}rk.exports=K8r});var tk=c((mfe,ak)=>{"use strict";var H8r=ek();ak.exports=H8r});var ok=c((hfe,ik)=>{"use strict";function Z8r(r,e,a){var t,o,i;for(t=r.length,o=a,i=0;i<t;i++){if(r[i]===0)return a;e[i]<0&&(o+=e[i]*(r[i]-1))}return o}ik.exports=Z8r});var sk=c((gfe,nk)=>{"use strict";var Q8r=ok();nk.exports=Q8r});var vk=c((bfe,uk)=>{"use strict";var r_r=Ra(),e_r=oe(),a_r=Xa(),t_r=Tt(),i_r=Ka(),o_r=vt(),n_r=aa(),s_r=ka(),u_r=s_r("order");function v_r(r){return new n_r(r_r(r),o_r(r),e_r(r),a_r(r),t_r(r),i_r(r)||u_r)}uk.exports=v_r});var lk=c((xfe,fk)=>{"use strict";var f_r=vk();fk.exports=f_r});var Gf=c((qfe,ck)=>{"use strict";var l_r="row-major";function c_r(r,e,a,t,o){var i,n;for(i=r-1;i>t;i--)o[i]=a[i];for(i=t;i>=0&&(n=(a[i]+1)%e[i],o[i]=n,!(n>0));i--);for(i-=1;i>=0;i--)o[i]=a[i];return o}function d_r(r,e,a,t,o){var i,n;for(i=0;i<t;i++)o[i]=a[i];for(i=t;i<r&&(n=(a[i]+1)%e[i],o[i]=n,!(n>0));i++);for(i+=1;i<r;i++)o[i]=a[i];return o}function p_r(r,e,a,t,o){var i=r.length;if(i===0)return null;if(t<0){if(t+=i,t<0)return null}else if(t>=i)return null;return e===l_r?c_r(i,r,a,t,o):d_r(i,r,a,t,o)}ck.exports=p_r});var pk=c((wfe,dk)=>{"use strict";var y_r=Se(),m_r=Gf();function h_r(r,e,a,t){return m_r(r,e,a,t,y_r(r.length))}dk.exports=h_r});var He=c((Sfe,mk)=>{"use strict";var g_r=Ir(),yk=pk(),b_r=Gf();g_r(yk,"assign",b_r);mk.exports=yk});var gk=c((Efe,hk)=>{"use strict";function x_r(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]!==1&&(e+=1);return e}hk.exports=x_r});var xk=c((Afe,bk)=>{"use strict";var q_r=gk();bk.exports=q_r});var wk=c((_fe,qk)=>{"use strict";var w_r=Zr(),S_r=Qr();function E_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b;for(b=w_r(r.shape,r.strides),u=b.sh,l=b.sx,a=S_r(r.dtype),d=r.offset,t=r.data,i=l[0],o=r.accessors[1],g=u[1];g>0;)for(g<a?(f=g,g=0):(f=a,g-=a),s=d+g*l[1],h=u[0];h>0;)for(h<a?(v=h,h=0):(v=a,h-=a),y=s+h*l[0],n=l[1]-v*l[0],m=0;m<f;m++){for(p=0;p<v;p++)o(t,y,e()),y+=i;y+=n}}qk.exports=E_r});var Ek=c((Tfe,Sk)=>{"use strict";var A_r=Zr(),__r=Qr();function T_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(x=A_r(r.shape,r.strides),f=x.sh,p=x.sx,a=__r(r.dtype),m=r.offset,t=r.data,i=p[0],o=r.accessors[1],_=f[2];_>0;)for(_<a?(y=_,_=0):(y=a,_-=a),v=m+_*p[2],A=f[1];A>0;)for(A<a?(d=A,A=0):(d=a,A-=a),s=p[2]-d*p[1],u=v+A*p[1],w=f[0];w>0;)for(w<a?(l=w,w=0):(l=a,w-=a),h=u+w*p[0],n=p[1]-l*p[0],S=0;S<y;S++){for(b=0;b<d;b++){for(g=0;g<l;g++)o(t,h,e()),h+=i;h+=n}h+=s}}Sk.exports=T_r});var _k=c((jfe,Ak)=>{"use strict";var j_r=Zr(),I_r=Qr();function O_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O;for(O=j_r(r.shape,r.strides),d=O.sh,g=O.sx,a=I_r(r.dtype),b=r.offset,t=r.data,i=g[0],o=r.accessors[1],j=d[3];j>0;)for(j<a?(h=j,j=0):(h=a,j-=a),l=b+j*g[3],T=d[2];T>0;)for(T<a?(m=T,T=0):(m=a,T-=a),u=g[3]-m*g[2],f=l+T*g[2],q=d[1];q>0;)for(q<a?(p=q,q=0):(p=a,q-=a),s=g[2]-p*g[1],v=f+q*g[1],E=d[0];E>0;)for(E<a?(y=E,E=0):(y=a,E-=a),S=v+E*g[0],n=g[1]-y*g[0],x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++)o(t,S,e()),S+=i;S+=n}S+=s}S+=u}}Ak.exports=O_r});var jk=c((Ife,Tk)=>{"use strict";var N_r=Zr(),D_r=Qr();function k_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(F=N_r(r.shape,r.strides),p=F.sh,w=F.sx,a=D_r(r.dtype),A=r.offset,t=r.data,i=w[0],o=r.accessors[1],N=p[4];N>0;)for(N<a?(S=N,N=0):(S=a,N-=a),y=A+N*w[4],k=p[3];k>0;)for(k<a?(b=k,k=0):(b=a,k-=a),v=w[4]-b*w[3],d=y+k*w[3],D=p[2];D>0;)for(D<a?(g=D,D=0):(g=a,D-=a),u=w[3]-g*w[2],l=d+D*w[2],I=p[1];I>0;)for(I<a?(h=I,I=0):(h=a,I-=a),s=w[2]-h*w[1],f=l+I*w[1],O=p[0];O>0;)for(O<a?(m=O,O=0):(m=a,O-=a),_=f+O*w[0],n=w[1]-m*w[0],j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++)o(t,_,e()),_+=i;_+=n}_+=s}_+=u}_+=v}}Tk.exports=k_r});var Ok=c((Ofe,Ik)=>{"use strict";var B_r=Zr(),F_r=Qr();function R_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(U=B_r(r.shape,r.strides),h=U.sh,x=U.sx,a=F_r(r.dtype),E=r.offset,t=r.data,i=x[0],o=r.accessors[1],V=h[5];V>0;)for(V<a?(_=V,V=0):(_=a,V-=a),m=E+V*x[5],z=h[4];z>0;)for(z<a?(A=z,z=0):(A=a,z-=a),f=x[5]-A*x[4],p=m+z*x[4],B=h[3];B>0;)for(B<a?(w=B,B=0):(w=a,B-=a),v=x[4]-w*x[3],y=p+B*x[3],R=h[2];R>0;)for(R<a?(S=R,R=0):(S=a,R-=a),u=x[3]-S*x[2],d=y+R*x[2],F=h[1];F>0;)for(F<a?(b=F,F=0):(b=a,F-=a),s=x[2]-b*x[1],l=d+F*x[1],N=h[0];N>0;)for(N<a?(g=N,N=0):(g=a,N-=a),q=l+N*x[0],n=x[1]-g*x[0],k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++)o(t,q,e()),q+=i;q+=n}q+=s}q+=u}q+=v}q+=f}}Ik.exports=R_r});var Dk=c((Nfe,Nk)=>{"use strict";var z_r=Zr(),V_r=Qr();function U_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G;for(G=z_r(r.shape,r.strides),b=G.sh,T=G.sx,a=V_r(r.dtype),j=r.offset,t=r.data,i=T[0],o=r.accessors[1],M=b[6];M>0;)for(M<a?(q=M,M=0):(q=a,M-=a),g=j+M*T[6],L=b[5];L>0;)for(L<a?(E=L,L=0):(E=a,L-=a),l=T[6]-E*T[5],h=g+L*T[5],P=b[4];P>0;)for(P<a?(x=P,P=0):(x=a,P-=a),f=T[5]-x*T[4],m=h+P*T[4],C=b[3];C>0;)for(C<a?(_=C,C=0):(_=a,C-=a),v=T[4]-_*T[3],p=m+C*T[3],U=b[2];U>0;)for(U<a?(A=U,U=0):(A=a,U-=a),u=T[3]-A*T[2],y=p+U*T[2],V=b[1];V>0;)for(V<a?(w=V,V=0):(w=a,V-=a),s=T[2]-w*T[1],d=y+V*T[1],z=b[0];z>0;)for(z<a?(S=z,z=0):(S=a,z-=a),O=d+z*T[0],n=T[1]-S*T[0],B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++)o(t,O,e()),O+=i;O+=n}O+=s}O+=u}O+=v}O+=f}O+=l}}Nk.exports=U_r});var Bk=c((Dfe,kk)=>{"use strict";var C_r=Zr(),P_r=Qr();function L_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X;for(X=C_r(r.shape,r.strides),w=X.sh,I=X.sx,a=P_r(r.dtype),D=r.offset,t=r.data,i=I[0],o=r.accessors[1],J=w[7];J>0;)for(J<a?(O=J,J=0):(O=a,J-=a),S=D+J*I[7],W=w[6];W>0;)for(W<a?(j=W,W=0):(j=a,W-=a),d=I[7]-j*I[6],b=S+W*I[6],Y=w[5];Y>0;)for(Y<a?(T=Y,Y=0):(T=a,Y-=a),l=I[6]-T*I[5],g=b+Y*I[5],$=w[4];$>0;)for($<a?(q=$,$=0):(q=a,$-=a),f=I[5]-q*I[4],h=g+$*I[4],G=w[3];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),v=I[4]-E*I[3],m=h+G*I[3],M=w[2];M>0;)for(M<a?(x=M,M=0):(x=a,M-=a),u=I[3]-x*I[2],p=m+M*I[2],L=w[1];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),s=I[2]-_*I[1],y=p+L*I[1],P=w[0];P>0;)for(P<a?(A=P,P=0):(A=a,P-=a),k=y+P*I[0],n=I[1]-A*I[0],C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++)o(t,k,e()),k+=i;k+=n}k+=s}k+=u}k+=v}k+=f}k+=l}k+=d}}kk.exports=L_r});var Rk=c((kfe,Fk)=>{"use strict";var M_r=Zr(),G_r=Qr();function Y_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr;for(rr=M_r(r.shape,r.strides),_=rr.sh,N=rr.sx,a=G_r(r.dtype),F=r.offset,t=r.data,i=N[0],o=r.accessors[1],Z=_[8];Z>0;)for(Z<a?(k=Z,Z=0):(k=a,Z-=a),A=F+Z*N[8],Q=_[7];Q>0;)for(Q<a?(D=Q,Q=0):(D=a,Q-=a),y=N[8]-D*N[7],w=A+Q*N[7],H=_[6];H>0;)for(H<a?(I=H,H=0):(I=a,H-=a),d=N[7]-I*N[6],S=w+H*N[6],K=_[5];K>0;)for(K<a?(O=K,K=0):(O=a,K-=a),l=N[6]-O*N[5],b=S+K*N[5],X=_[4];X>0;)for(X<a?(j=X,X=0):(j=a,X-=a),f=N[5]-j*N[4],g=b+X*N[4],J=_[3];J>0;)for(J<a?(T=J,J=0):(T=a,J-=a),v=N[4]-T*N[3],h=g+J*N[3],W=_[2];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),u=N[3]-q*N[2],m=h+W*N[2],Y=_[1];Y>0;)for(Y<a?(E=Y,Y=0):(E=a,Y-=a),s=N[2]-E*N[1],p=m+Y*N[1],$=_[0];$>0;)for($<a?(x=$,$=0):(x=a,$-=a),R=p+$*N[0],n=N[1]-x*N[0],G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++)o(t,R,e()),R+=i;R+=n}R+=s}R+=u}R+=v}R+=f}R+=l}R+=d}R+=y}}Fk.exports=Y_r});var Vk=c((Bfe,zk)=>{"use strict";var $_r=Zr(),W_r=Qr();function J_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or;for(or=$_r(r.shape,r.strides),E=or.sh,B=or.sx,a=W_r(r.dtype),z=r.offset,t=r.data,i=B[0],o=r.accessors[1],tr=E[9];tr>0;)for(tr<a?(R=tr,tr=0):(R=a,tr-=a),x=z+tr*B[9],ir=E[8];ir>0;)for(ir<a?(F=ir,ir=0):(F=a,ir-=a),p=B[9]-F*B[8],_=x+ir*B[8],er=E[7];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),y=B[8]-N*B[7],A=_+er*B[7],ar=E[6];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),d=B[7]-k*B[6],w=A+ar*B[6],rr=E[5];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),l=B[6]-D*B[5],S=w+rr*B[5],Z=E[4];Z>0;)for(Z<a?(I=Z,Z=0):(I=a,Z-=a),f=B[5]-I*B[4],b=S+Z*B[4],Q=E[3];Q>0;)for(Q<a?(O=Q,Q=0):(O=a,Q-=a),v=B[4]-O*B[3],g=b+Q*B[3],H=E[2];H>0;)for(H<a?(j=H,H=0):(j=a,H-=a),u=B[3]-j*B[2],h=g+H*B[2],K=E[1];K>0;)for(K<a?(T=K,K=0):(T=a,K-=a),s=B[2]-T*B[1],m=h+K*B[1],X=E[0];X>0;)for(X<a?(q=X,X=0):(q=a,X-=a),V=m+X*B[0],n=B[1]-q*B[0],J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++)o(t,V,e()),V+=i;V+=n}V+=s}V+=u}V+=v}V+=f}V+=l}V+=d}V+=y}V+=p}}zk.exports=J_r});var Ck=c((Ffe,Uk)=>{"use strict";var X_r=Zr(),K_r=Qr();function H_r(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(g=X_r(r.shape,r.strides),s=g.sh,f=g.sx,a=K_r(r.dtype),l=r.offset,t=r.data,o=f[0],h=s[1];h>0;)for(h<a?(v=h,h=0):(v=a,h-=a),n=l+h*f[1],m=s[0];m>0;)for(m<a?(u=m,m=0):(u=a,m-=a),d=n+m*f[0],i=f[1]-u*f[0],p=0;p<v;p++){for(y=0;y<u;y++)t[d]=e(),d+=o;d+=i}}Uk.exports=H_r});var Lk=c((Rfe,Pk)=>{"use strict";var Z_r=Zr(),Q_r=Qr();function rTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_;for(_=Z_r(r.shape,r.strides),v=_.sh,y=_.sx,a=Q_r(r.dtype),p=r.offset,t=r.data,o=y[0],A=v[2];A>0;)for(A<a?(d=A,A=0):(d=a,A-=a),u=p+A*y[2],w=v[1];w>0;)for(w<a?(l=w,w=0):(l=a,w-=a),n=y[2]-l*y[1],s=u+w*y[1],S=v[0];S>0;)for(S<a?(f=S,S=0):(f=a,S-=a),m=s+S*y[0],i=y[1]-f*y[0],b=0;b<d;b++){for(g=0;g<l;g++){for(h=0;h<f;h++)t[m]=e(),m+=o;m+=i}m+=n}}Pk.exports=rTr});var Gk=c((zfe,Mk)=>{"use strict";var eTr=Zr(),aTr=Qr();function tTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(j=eTr(r.shape,r.strides),l=j.sh,h=j.sx,a=aTr(r.dtype),g=r.offset,t=r.data,o=h[0],T=l[3];T>0;)for(T<a?(m=T,T=0):(m=a,T-=a),f=g+T*h[3],q=l[2];q>0;)for(q<a?(p=q,q=0):(p=a,q-=a),s=h[3]-p*h[2],v=f+q*h[2],E=l[1];E>0;)for(E<a?(y=E,E=0):(y=a,E-=a),n=h[2]-y*h[1],u=v+E*h[1],x=l[0];x>0;)for(x<a?(d=x,x=0):(d=a,x-=a),b=u+x*h[0],i=h[1]-d*h[0],_=0;_<m;_++){for(A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++)t[b]=e(),b+=o;b+=i}b+=n}b+=s}}Mk.exports=tTr});var $k=c((Vfe,Yk)=>{"use strict";var iTr=Zr(),oTr=Qr();function nTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(N=iTr(r.shape,r.strides),y=N.sh,S=N.sx,a=oTr(r.dtype),w=r.offset,t=r.data,o=S[0],k=y[4];k>0;)for(k<a?(b=k,k=0):(b=a,k-=a),d=w+k*S[4],D=y[3];D>0;)for(D<a?(g=D,D=0):(g=a,D-=a),u=S[4]-g*S[3],l=d+D*S[3],I=y[2];I>0;)for(I<a?(h=I,I=0):(h=a,I-=a),s=S[3]-h*S[2],f=l+I*S[2],O=y[1];O>0;)for(O<a?(m=O,O=0):(m=a,O-=a),n=S[2]-m*S[1],v=f+O*S[1],j=y[0];j>0;)for(j<a?(p=j,j=0):(p=a,j-=a),A=v+j*S[0],i=S[1]-p*S[0],T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++)t[A]=e(),A+=o;A+=i}A+=n}A+=s}A+=u}}Yk.exports=nTr});var Jk=c((Ufe,Wk)=>{"use strict";var sTr=Zr(),uTr=Qr();function vTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V;for(V=sTr(r.shape,r.strides),m=V.sh,_=V.sx,a=uTr(r.dtype),x=r.offset,t=r.data,o=_[0],z=m[5];z>0;)for(z<a?(A=z,z=0):(A=a,z-=a),p=x+z*_[5],B=m[4];B>0;)for(B<a?(w=B,B=0):(w=a,B-=a),v=_[5]-w*_[4],y=p+B*_[4],R=m[3];R>0;)for(R<a?(S=R,R=0):(S=a,R-=a),u=_[4]-S*_[3],d=y+R*_[3],F=m[2];F>0;)for(F<a?(b=F,F=0):(b=a,F-=a),s=_[3]-b*_[2],l=d+F*_[2],N=m[1];N>0;)for(N<a?(g=N,N=0):(g=a,N-=a),n=_[2]-g*_[1],f=l+N*_[1],k=m[0];k>0;)for(k<a?(h=k,k=0):(h=a,k-=a),E=f+k*_[0],i=_[1]-h*_[0],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++)t[E]=e(),E+=o;E+=i}E+=n}E+=s}E+=u}E+=v}}Wk.exports=vTr});var Kk=c((Cfe,Xk)=>{"use strict";var fTr=Zr(),lTr=Qr();function cTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M;for(M=fTr(r.shape,r.strides),g=M.sh,q=M.sx,a=lTr(r.dtype),T=r.offset,t=r.data,o=q[0],L=g[6];L>0;)for(L<a?(E=L,L=0):(E=a,L-=a),h=T+L*q[6],P=g[5];P>0;)for(P<a?(x=P,P=0):(x=a,P-=a),f=q[6]-x*q[5],m=h+P*q[5],C=g[4];C>0;)for(C<a?(_=C,C=0):(_=a,C-=a),v=q[5]-_*q[4],p=m+C*q[4],U=g[3];U>0;)for(U<a?(A=U,U=0):(A=a,U-=a),u=q[4]-A*q[3],y=p+U*q[3],V=g[2];V>0;)for(V<a?(w=V,V=0):(w=a,V-=a),s=q[3]-w*q[2],d=y+V*q[2],z=g[1];z>0;)for(z<a?(S=z,z=0):(S=a,z-=a),n=q[2]-S*q[1],l=d+z*q[1],B=g[0];B>0;)for(B<a?(b=B,B=0):(b=a,B-=a),j=l+B*q[0],i=q[1]-b*q[0],R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++)t[j]=e(),j+=o;j+=i}j+=n}j+=s}j+=u}j+=v}j+=f}}Xk.exports=cTr});var Zk=c((Pfe,Hk)=>{"use strict";var dTr=Zr(),pTr=Qr();function yTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J;for(J=dTr(r.shape,r.strides),S=J.sh,O=J.sx,a=pTr(r.dtype),I=r.offset,t=r.data,o=O[0],W=S[7];W>0;)for(W<a?(j=W,W=0):(j=a,W-=a),b=I+W*O[7],Y=S[6];Y>0;)for(Y<a?(T=Y,Y=0):(T=a,Y-=a),l=O[7]-T*O[6],g=b+Y*O[6],$=S[5];$>0;)for($<a?(q=$,$=0):(q=a,$-=a),f=O[6]-q*O[5],h=g+$*O[5],G=S[4];G>0;)for(G<a?(E=G,G=0):(E=a,G-=a),v=O[5]-E*O[4],m=h+G*O[4],M=S[3];M>0;)for(M<a?(x=M,M=0):(x=a,M-=a),u=O[4]-x*O[3],p=m+M*O[3],L=S[2];L>0;)for(L<a?(_=L,L=0):(_=a,L-=a),s=O[3]-_*O[2],y=p+L*O[2],P=S[1];P>0;)for(P<a?(A=P,P=0):(A=a,P-=a),n=O[2]-A*O[1],d=y+P*O[1],C=S[0];C>0;)for(C<a?(w=C,C=0):(w=a,C-=a),D=d+C*O[0],i=O[1]-w*O[0],U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++)t[D]=e(),D+=o;D+=i}D+=n}D+=s}D+=u}D+=v}D+=f}D+=l}}Hk.exports=yTr});var rB=c((Lfe,Qk)=>{"use strict";var mTr=Zr(),hTr=Qr();function gTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z;for(Z=mTr(r.shape,r.strides),A=Z.sh,k=Z.sx,a=hTr(r.dtype),N=r.offset,t=r.data,o=k[0],Q=A[8];Q>0;)for(Q<a?(D=Q,Q=0):(D=a,Q-=a),w=N+Q*k[8],H=A[7];H>0;)for(H<a?(I=H,H=0):(I=a,H-=a),d=k[8]-I*k[7],S=w+H*k[7],K=A[6];K>0;)for(K<a?(O=K,K=0):(O=a,K-=a),l=k[7]-O*k[6],b=S+K*k[6],X=A[5];X>0;)for(X<a?(j=X,X=0):(j=a,X-=a),f=k[6]-j*k[5],g=b+X*k[5],J=A[4];J>0;)for(J<a?(T=J,J=0):(T=a,J-=a),v=k[5]-T*k[4],h=g+J*k[4],W=A[3];W>0;)for(W<a?(q=W,W=0):(q=a,W-=a),u=k[4]-q*k[3],m=h+W*k[3],Y=A[2];Y>0;)for(Y<a?(E=Y,Y=0):(E=a,Y-=a),s=k[3]-E*k[2],p=m+Y*k[2],$=A[1];$>0;)for($<a?(x=$,$=0):(x=a,$-=a),n=k[2]-x*k[1],y=p+$*k[1],G=A[0];G>0;)for(G<a?(_=G,G=0):(_=a,G-=a),F=y+G*k[0],i=k[1]-_*k[0],M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++)t[F]=e(),F+=o;F+=i}F+=n}F+=s}F+=u}F+=v}F+=f}F+=l}F+=d}}Qk.exports=gTr});var aB=c((Mfe,eB)=>{"use strict";var bTr=Zr(),xTr=Qr();function qTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr;for(tr=bTr(r.shape,r.strides),x=tr.sh,R=tr.sx,a=xTr(r.dtype),B=r.offset,t=r.data,o=R[0],ir=x[9];ir>0;)for(ir<a?(F=ir,ir=0):(F=a,ir-=a),_=B+ir*R[9],er=x[8];er>0;)for(er<a?(N=er,er=0):(N=a,er-=a),y=R[9]-N*R[8],A=_+er*R[8],ar=x[7];ar>0;)for(ar<a?(k=ar,ar=0):(k=a,ar-=a),d=R[8]-k*R[7],w=A+ar*R[7],rr=x[6];rr>0;)for(rr<a?(D=rr,rr=0):(D=a,rr-=a),l=R[7]-D*R[6],S=w+rr*R[6],Z=x[5];Z>0;)for(Z<a?(I=Z,Z=0):(I=a,Z-=a),f=R[6]-I*R[5],b=S+Z*R[5],Q=x[4];Q>0;)for(Q<a?(O=Q,Q=0):(O=a,Q-=a),v=R[5]-O*R[4],g=b+Q*R[4],H=x[3];H>0;)for(H<a?(j=H,H=0):(j=a,H-=a),u=R[4]-j*R[3],h=g+H*R[3],K=x[2];K>0;)for(K<a?(T=K,K=0):(T=a,K-=a),s=R[3]-T*R[2],m=h+K*R[2],X=x[1];X>0;)for(X<a?(q=X,X=0):(q=a,X-=a),n=R[2]-q*R[1],p=m+X*R[1],J=x[0];J>0;)for(J<a?(E=J,J=0):(E=a,J-=a),z=p+J*R[0],i=R[1]-E*R[0],W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++){for(V=0;V<E;V++)t[z]=e(),z+=o;z+=i}z+=n}z+=s}z+=u}z+=v}z+=f}z+=l}z+=d}z+=y}}eB.exports=qTr});var iB=c((Gfe,tB)=>{"use strict";function wTr(r,e){r.accessors[1](r.data,r.offset,e())}tB.exports=wTr});var nB=c((Yfe,oB)=>{"use strict";function STr(r,e){var a,t,o,i,n,s;for(i=r.shape[0],o=r.strides[0],n=r.offset,a=r.data,t=r.accessors[1],s=0;s<i;s++)t(a,n,e()),n+=o}oB.exports=STr});var uB=c(($fe,sB)=>{"use strict";function ETr(r,e){var a,t,o,i,n,s,u,v,f,l,d;for(n=r.shape,v=r.strides,r.order==="row-major"?(s=n[1],u=n[0],o=v[1],i=v[0]-s*v[1]):(s=n[0],u=n[1],o=v[0],i=v[1]-s*v[0]),f=r.offset,a=r.data,t=r.accessors[1],d=0;d<u;d++){for(l=0;l<s;l++)t(a,f,e()),f+=o;f+=i}}sB.exports=ETr});var fB=c((Wfe,vB)=>{"use strict";function ATr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m;for(s=r.shape,l=r.strides,r.order==="row-major"?(u=s[2],v=s[1],f=s[0],o=l[2],i=l[1]-u*l[2],n=l[0]-v*l[1]):(u=s[0],v=s[1],f=s[2],o=l[0],i=l[1]-u*l[0],n=l[2]-v*l[1]),d=r.offset,a=r.data,t=r.accessors[1],m=0;m<f;m++){for(p=0;p<v;p++){for(y=0;y<u;y++)t(a,d,e()),d+=o;d+=i}d+=n}}vB.exports=ATr});var cB=c((Jfe,lB)=>{"use strict";function _Tr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b;for(u=r.shape,y=r.strides,r.order==="row-major"?(v=u[3],f=u[2],l=u[1],d=u[0],o=y[3],i=y[2]-v*y[3],n=y[1]-f*y[2],s=y[0]-l*y[1]):(v=u[0],f=u[1],l=u[2],d=u[3],o=y[0],i=y[1]-v*y[0],n=y[2]-f*y[1],s=y[3]-l*y[2]),p=r.offset,a=r.data,t=r.accessors[1],b=0;b<d;b++){for(g=0;g<l;g++){for(h=0;h<f;h++){for(m=0;m<v;m++)t(a,p,e()),p+=o;p+=i}p+=n}p+=s}}lB.exports=_Tr});var pB=c((Xfe,dB)=>{"use strict";function TTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A;for(v=r.shape,m=r.strides,r.order==="row-major"?(f=v[4],l=v[3],d=v[2],y=v[1],p=v[0],o=m[4],i=m[3]-f*m[4],n=m[2]-l*m[3],s=m[1]-d*m[2],u=m[0]-y*m[1]):(f=v[0],l=v[1],d=v[2],y=v[3],p=v[4],o=m[0],i=m[1]-f*m[0],n=m[2]-l*m[1],s=m[3]-d*m[2],u=m[4]-y*m[3]),h=r.offset,a=r.data,t=r.accessors[1],A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++){for(b=0;b<l;b++){for(g=0;g<f;g++)t(a,h,e()),h+=o;h+=i}h+=n}h+=s}h+=u}}dB.exports=TTr});var mB=c((Kfe,yB)=>{"use strict";function jTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E;for(f=r.shape,g=r.strides,r.order==="row-major"?(l=f[5],d=f[4],y=f[3],p=f[2],m=f[1],h=f[0],o=g[5],i=g[4]-l*g[5],n=g[3]-d*g[4],s=g[2]-y*g[3],u=g[1]-p*g[2],v=g[0]-m*g[1]):(l=f[0],d=f[1],y=f[2],p=f[3],m=f[4],h=f[5],o=g[0],i=g[1]-l*g[0],n=g[2]-d*g[1],s=g[3]-y*g[2],u=g[4]-p*g[3],v=g[5]-m*g[4]),b=r.offset,a=r.data,t=r.accessors[1],E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++){for(w=0;w<d;w++){for(S=0;S<l;S++)t(a,b,e()),b+=o;b+=i}b+=n}b+=s}b+=u}b+=v}}yB.exports=jTr});var gB=c((Hfe,hB)=>{"use strict";function ITr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(l=r.shape,S=r.strides,r.order==="row-major"?(d=l[6],y=l[5],p=l[4],m=l[3],h=l[2],g=l[1],b=l[0],o=S[6],i=S[5]-d*S[6],n=S[4]-y*S[5],s=S[3]-p*S[4],u=S[2]-m*S[3],v=S[1]-h*S[2],f=S[0]-g*S[1]):(d=l[0],y=l[1],p=l[2],m=l[3],h=l[4],g=l[5],b=l[6],o=S[0],i=S[1]-d*S[0],n=S[2]-y*S[1],s=S[3]-p*S[2],u=S[4]-m*S[3],v=S[5]-h*S[4],f=S[6]-g*S[5]),w=r.offset,a=r.data,t=r.accessors[1],j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++){for(x=0;x<p;x++){for(_=0;_<y;_++){for(A=0;A<d;A++)t(a,w,e()),w+=o;w+=i}w+=n}w+=s}w+=u}w+=v}w+=f}}hB.exports=ITr});var xB=c((Zfe,bB)=>{"use strict";function OTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D;for(d=r.shape,A=r.strides,r.order==="row-major"?(y=d[7],p=d[6],m=d[5],h=d[4],g=d[3],b=d[2],S=d[1],w=d[0],o=A[7],i=A[6]-y*A[7],n=A[5]-p*A[6],s=A[4]-m*A[5],u=A[3]-h*A[4],v=A[2]-g*A[3],f=A[1]-b*A[2],l=A[0]-S*A[1]):(y=d[0],p=d[1],m=d[2],h=d[3],g=d[4],b=d[5],S=d[6],w=d[7],o=A[0],i=A[1]-y*A[0],n=A[2]-p*A[1],s=A[3]-m*A[2],u=A[4]-h*A[3],v=A[5]-g*A[4],f=A[6]-b*A[5],l=A[7]-S*A[6]),_=r.offset,a=r.data,t=r.accessors[1],D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<m;q++){for(E=0;E<p;E++){for(x=0;x<y;x++)t(a,_,e()),_+=o;_+=i}_+=n}_+=s}_+=u}_+=v}_+=f}_+=l}}bB.exports=OTr});var wB=c((Qfe,qB)=>{"use strict";function NTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(y=r.shape,x=r.strides,r.order==="row-major"?(p=y[8],m=y[7],h=y[6],g=y[5],b=y[4],S=y[3],w=y[2],A=y[1],_=y[0],o=x[8],i=x[7]-p*x[8],n=x[6]-m*x[7],s=x[5]-h*x[6],u=x[4]-g*x[5],v=x[3]-b*x[4],f=x[2]-S*x[3],l=x[1]-w*x[2],d=x[0]-A*x[1]):(p=y[0],m=y[1],h=y[2],g=y[3],b=y[4],S=y[5],w=y[6],A=y[7],_=y[8],o=x[0],i=x[1]-p*x[0],n=x[2]-m*x[1],s=x[3]-h*x[2],u=x[4]-g*x[3],v=x[5]-b*x[4],f=x[6]-S*x[5],l=x[7]-w*x[6],d=x[8]-A*x[7]),E=r.offset,a=r.data,t=r.accessors[1],F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<b;I++){for(O=0;O<g;O++){for(j=0;j<h;j++){for(T=0;T<m;T++){for(q=0;q<p;q++)t(a,E,e()),E+=o;E+=i}E+=n}E+=s}E+=u}E+=v}E+=f}E+=l}E+=d}}qB.exports=NTr});var EB=c((rle,SB)=>{"use strict";function DTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z;for(p=r.shape,q=r.strides,r.order==="row-major"?(m=p[9],h=p[8],g=p[7],b=p[6],S=p[5],w=p[4],A=p[3],_=p[2],x=p[1],E=p[0],o=q[9],i=q[8]-m*q[9],n=q[7]-h*q[8],s=q[6]-g*q[7],u=q[5]-b*q[6],v=q[4]-S*q[5],f=q[3]-w*q[4],l=q[2]-A*q[3],d=q[1]-_*q[2],y=q[0]-x*q[1]):(m=p[0],h=p[1],g=p[2],b=p[3],S=p[4],w=p[5],A=p[6],_=p[7],x=p[8],E=p[9],o=q[0],i=q[1]-m*q[0],n=q[2]-h*q[1],s=q[3]-g*q[2],u=q[4]-b*q[3],v=q[5]-S*q[4],f=q[6]-w*q[5],l=q[7]-A*q[6],d=q[8]-_*q[7],y=q[9]-x*q[8]),T=r.offset,a=r.data,t=r.accessors[1],z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(I=0;I<g;I++){for(O=0;O<h;O++){for(j=0;j<m;j++)t(a,T,e()),T+=o;T+=i}T+=n}T+=s}T+=u}T+=v}T+=f}T+=l}T+=d}T+=y}}SB.exports=DTr});var _B=c((ele,AB)=>{"use strict";var kTr=Jr(),BTr=na(),FTr="throw";function RTr(r,e){var a,t,o,i,n,s,u,v,f;for(n=r.shape,o=kTr(n),a=r.data,s=r.strides,u=r.offset,t=r.order,i=r.accessors[1],f=0;f<o;f++)v=BTr(n,s,u,t,f,FTr),i(a,v,e())}AB.exports=RTr});var jB=c((ale,TB)=>{"use strict";function zTr(r,e){r.data[r.offset]=e()}TB.exports=zTr});var OB=c((tle,IB)=>{"use strict";function VTr(r,e){var a,t,o,i,n;for(o=r.shape[0],t=r.strides[0],i=r.offset,a=r.data,n=0;n<o;n++)a[i]=e(),i+=t}IB.exports=VTr});var DB=c((ile,NB)=>{"use strict";function UTr(r,e){var a,t,o,i,n,s,u,v,f,l;for(i=r.shape,u=r.strides,r.order==="row-major"?(n=i[1],s=i[0],t=u[1],o=u[0]-n*u[1]):(n=i[0],s=i[1],t=u[0],o=u[1]-n*u[0]),v=r.offset,a=r.data,l=0;l<s;l++){for(f=0;f<n;f++)a[v]=e(),v+=t;v+=o}}NB.exports=UTr});var BB=c((ole,kB)=>{"use strict";function CTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p;for(n=r.shape,f=r.strides,r.order==="row-major"?(s=n[2],u=n[1],v=n[0],t=f[2],o=f[1]-s*f[2],i=f[0]-u*f[1]):(s=n[0],u=n[1],v=n[2],t=f[0],o=f[1]-s*f[0],i=f[2]-u*f[1]),l=r.offset,a=r.data,p=0;p<v;p++){for(y=0;y<u;y++){for(d=0;d<s;d++)a[l]=e(),l+=t;l+=o}l+=i}}kB.exports=CTr});var RB=c((nle,FB)=>{"use strict";function PTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(s=r.shape,d=r.strides,r.order==="row-major"?(u=s[3],v=s[2],f=s[1],l=s[0],t=d[3],o=d[2]-u*d[3],i=d[1]-v*d[2],n=d[0]-f*d[1]):(u=s[0],v=s[1],f=s[2],l=s[3],t=d[0],o=d[1]-u*d[0],i=d[2]-v*d[1],n=d[3]-f*d[2]),y=r.offset,a=r.data,g=0;g<l;g++){for(h=0;h<f;h++){for(m=0;m<v;m++){for(p=0;p<u;p++)a[y]=e(),y+=t;y+=o}y+=i}y+=n}}FB.exports=PTr});var VB=c((sle,zB)=>{"use strict";function LTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(u=r.shape,p=r.strides,r.order==="row-major"?(v=u[4],f=u[3],l=u[2],d=u[1],y=u[0],t=p[4],o=p[3]-v*p[4],i=p[2]-f*p[3],n=p[1]-l*p[2],s=p[0]-d*p[1]):(v=u[0],f=u[1],l=u[2],d=u[3],y=u[4],t=p[0],o=p[1]-v*p[0],i=p[2]-f*p[1],n=p[3]-l*p[2],s=p[4]-d*p[3]),m=r.offset,a=r.data,w=0;w<y;w++){for(S=0;S<d;S++){for(b=0;b<l;b++){for(g=0;g<f;g++){for(h=0;h<v;h++)a[m]=e(),m+=t;m+=o}m+=i}m+=n}m+=s}}zB.exports=LTr});var CB=c((ule,UB)=>{"use strict";function MTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(v=r.shape,h=r.strides,r.order==="row-major"?(f=v[5],l=v[4],d=v[3],y=v[2],p=v[1],m=v[0],t=h[5],o=h[4]-f*h[5],i=h[3]-l*h[4],n=h[2]-d*h[3],s=h[1]-y*h[2],u=h[0]-p*h[1]):(f=v[0],l=v[1],d=v[2],y=v[3],p=v[4],m=v[5],t=h[0],o=h[1]-f*h[0],i=h[2]-l*h[1],n=h[3]-d*h[2],s=h[4]-y*h[3],u=h[5]-p*h[4]),g=r.offset,a=r.data,x=0;x<m;x++){for(_=0;_<p;_++){for(A=0;A<y;A++){for(w=0;w<d;w++){for(S=0;S<l;S++){for(b=0;b<f;b++)a[g]=e(),g+=t;g+=o}g+=i}g+=n}g+=s}g+=u}}UB.exports=MTr});var LB=c((vle,PB)=>{"use strict";function GTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T;for(f=r.shape,b=r.strides,r.order==="row-major"?(l=f[6],d=f[5],y=f[4],p=f[3],m=f[2],h=f[1],g=f[0],t=b[6],o=b[5]-l*b[6],i=b[4]-d*b[5],n=b[3]-y*b[4],s=b[2]-p*b[3],u=b[1]-m*b[2],v=b[0]-h*b[1]):(l=f[0],d=f[1],y=f[2],p=f[3],m=f[4],h=f[5],g=f[6],t=b[0],o=b[1]-l*b[0],i=b[2]-d*b[1],n=b[3]-y*b[2],s=b[4]-p*b[3],u=b[5]-m*b[4],v=b[6]-h*b[5]),S=r.offset,a=r.data,T=0;T<g;T++){for(q=0;q<h;q++){for(E=0;E<m;E++){for(x=0;x<p;x++){for(_=0;_<y;_++){for(A=0;A<d;A++){for(w=0;w<l;w++)a[S]=e(),S+=t;S+=o}S+=i}S+=n}S+=s}S+=u}S+=v}}PB.exports=GTr});var GB=c((fle,MB)=>{"use strict";function YTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(l=r.shape,w=r.strides,r.order==="row-major"?(d=l[7],y=l[6],p=l[5],m=l[4],h=l[3],g=l[2],b=l[1],S=l[0],t=w[7],o=w[6]-d*w[7],i=w[5]-y*w[6],n=w[4]-p*w[5],s=w[3]-m*w[4],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-b*w[1]):(d=l[0],y=l[1],p=l[2],m=l[3],h=l[4],g=l[5],b=l[6],S=l[7],t=w[0],o=w[1]-d*w[0],i=w[2]-y*w[1],n=w[3]-p*w[2],s=w[4]-m*w[3],u=w[5]-h*w[4],v=w[6]-g*w[5],f=w[7]-b*w[6]),A=r.offset,a=r.data,I=0;I<S;I++){for(O=0;O<b;O++){for(j=0;j<g;j++){for(T=0;T<h;T++){for(q=0;q<m;q++){for(E=0;E<p;E++){for(x=0;x<y;x++){for(_=0;_<d;_++)a[A]=e(),A+=t;A+=o}A+=i}A+=n}A+=s}A+=u}A+=v}A+=f}}MB.exports=YTr});var $B=c((lle,YB)=>{"use strict";function $Tr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(d=r.shape,_=r.strides,r.order==="row-major"?(y=d[8],p=d[7],m=d[6],h=d[5],g=d[4],b=d[3],S=d[2],w=d[1],A=d[0],t=_[8],o=_[7]-y*_[8],i=_[6]-p*_[7],n=_[5]-m*_[6],s=_[4]-h*_[5],u=_[3]-g*_[4],v=_[2]-b*_[3],f=_[1]-S*_[2],l=_[0]-w*_[1]):(y=d[0],p=d[1],m=d[2],h=d[3],g=d[4],b=d[5],S=d[6],w=d[7],A=d[8],t=_[0],o=_[1]-y*_[0],i=_[2]-p*_[1],n=_[3]-m*_[2],s=_[4]-h*_[3],u=_[5]-g*_[4],v=_[6]-b*_[5],f=_[7]-S*_[6],l=_[8]-w*_[7]),x=r.offset,a=r.data,N=0;N<A;N++){for(k=0;k<w;k++){for(D=0;D<S;D++){for(I=0;I<b;I++){for(O=0;O<g;O++){for(j=0;j<h;j++){for(T=0;T<m;T++){for(q=0;q<p;q++){for(E=0;E<y;E++)a[x]=e(),x+=t;x+=o}x+=i}x+=n}x+=s}x+=u}x+=v}x+=f}x+=l}}YB.exports=$Tr});var JB=c((cle,WB)=>{"use strict";function WTr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(y=r.shape,E=r.strides,r.order==="row-major"?(p=y[9],m=y[8],h=y[7],g=y[6],b=y[5],S=y[4],w=y[3],A=y[2],_=y[1],x=y[0],t=E[9],o=E[8]-p*E[9],i=E[7]-m*E[8],n=E[6]-h*E[7],s=E[5]-g*E[6],u=E[4]-b*E[5],v=E[3]-S*E[4],f=E[2]-w*E[3],l=E[1]-A*E[2],d=E[0]-_*E[1]):(p=y[0],m=y[1],h=y[2],g=y[3],b=y[4],S=y[5],w=y[6],A=y[7],_=y[8],x=y[9],t=E[0],o=E[1]-p*E[0],i=E[2]-m*E[1],n=E[3]-h*E[2],s=E[4]-g*E[3],u=E[5]-b*E[4],v=E[6]-S*E[5],f=E[7]-w*E[6],l=E[8]-A*E[7],d=E[9]-_*E[8]),q=r.offset,a=r.data,B=0;B<x;B++){for(R=0;R<_;R++){for(F=0;F<A;F++){for(N=0;N<w;N++){for(k=0;k<S;k++){for(D=0;D<b;D++){for(I=0;I<g;I++){for(O=0;O<h;O++){for(j=0;j<m;j++){for(T=0;T<p;T++)a[q]=e(),q+=t;q+=o}q+=i}q+=n}q+=s}q+=u}q+=v}q+=f}q+=l}q+=d}}WB.exports=WTr});var KB=c((dle,XB)=>{"use strict";var JTr=Jr(),XTr=na(),KTr="throw";function HTr(r,e){var a,t,o,i,n,s,u,v;for(i=r.shape,o=JTr(i),a=r.data,n=r.strides,s=r.offset,t=r.order,v=0;v<o;v++)u=XTr(i,n,s,t,v,KTr),a[u]=e()}XB.exports=HTr});var QB=c((ple,ZB)=>{"use strict";var ZTr=Ea(),QTr=at(),rjr=ei(),ejr=wk(),ajr=Ek(),tjr=_k(),ijr=jk(),ojr=Ok(),njr=Dk(),sjr=Bk(),ujr=Rk(),vjr=Vk(),fjr=Ck(),ljr=Lk(),cjr=Gk(),djr=$k(),pjr=Jk(),yjr=Kk(),mjr=Zk(),hjr=rB(),gjr=aB(),bjr=iB(),xjr=nB(),qjr=uB(),wjr=fB(),Sjr=cB(),Ejr=pB(),Ajr=mB(),_jr=gB(),Tjr=xB(),jjr=wB(),Ijr=EB(),Ojr=_B(),Njr=jB(),Djr=OB(),kjr=DB(),Bjr=BB(),Fjr=RB(),Rjr=VB(),zjr=CB(),Vjr=LB(),Ujr=GB(),Cjr=$B(),Pjr=JB(),Ljr=KB(),_i=[Njr,Djr,kjr,Bjr,Fjr,Rjr,zjr,Vjr,Ujr,Cjr,Pjr],Io=[bjr,xjr,qjr,wjr,Sjr,Ejr,Ajr,_jr,Tjr,jjr,Ijr],Mjr=[fjr,ljr,cjr,djr,pjr,yjr,mjr,hjr,gjr],Gjr=[ejr,ajr,tjr,ijr,ojr,njr,sjr,ujr,vjr],HB=_i.length-1;function Yjr(r,e){var a,t,o,i,n,s,u,v,f,l,d;if(f=rjr(r[0]),o=f.shape,a=o.length,a===0)return f.accessorProtocol?Io[a](f,e):_i[a](f,e);for(n=1,v=0,d=0;d<a;d++)l=o[d],n*=l,l===1&&(v+=1);if(n!==0){if(a===1)return f.accessorProtocol?Io[a](f,e):_i[a](f,e);if(s=f.strides,v===a-1){for(d=0;d<a&&o[d]===1;d++);return f.shape=[o[d]],f.strides=[s[d]],f.accessorProtocol?Io[1](f,e):_i[1](f,e)}if(i=ZTr(s),i!==0){if(t=QTr(o,s,f.offset),n===t[1]-t[0]+1)return i===1?u=t[0]:u=t[1],f.shape=[n],f.strides=[i],f.offset=u,f.accessorProtocol?Io[1](f,e):_i[1](f,e);if(a<=HB)return f.accessorProtocol?Io[a](f,e):_i[a](f,e)}if(a<=HB)return f.accessorProtocol?Gjr[a-2](f,e):Mjr[a-2](f,e);if(f.accessorProtocol)return Ojr(f,e);Ljr(f,e)}}ZB.exports=Yjr});var eF=c((yle,rF)=>{"use strict";var $jr=QB();rF.exports=$jr});var iF=c((mle,tF)=>{"use strict";var Wjr=ya(),Jjr=Ua(),Xjr=Te(),aF=pr();function Kjr(r,e){var a,t;if(a=Jjr(r),a===0)throw new TypeError(aF("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=Wjr(e,a-1),t===-1)throw new RangeError(aF("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return Xjr(r,!1)[t]}tF.exports=Kjr});var Yf=c((hle,oF)=>{"use strict";var Hjr=iF();oF.exports=Hjr});var nF=c((gle,Zjr)=>{Zjr.exports=["same","promoted","bool","signed_integer","unsigned_integer","integer","floating_point","real_floating_point","complex_floating_point","real","numeric","default"]});var uF=c((ble,sF)=>{"use strict";var Qjr=nF();function rIr(){return Qjr.slice()}sF.exports=rIr});var fF=c((xle,vF)=>{"use strict";function eIr(){return{same:0,promoted:1,bool:2,signed_integer:3,unsigned_integer:4,integer:5,floating_point:6,real_floating_point:7,complex_floating_point:8,real:9,numeric:10,default:11}}vF.exports=eIr});var cF=c((qle,lF)=>{"use strict";var aIr=zt(),tIr=Aa();function iIr(r,e){var a,t,o;for(a=tIr(e),o=0;o<a.length;o++)t=a[o],aIr(r,t,e[t]);return r}lF.exports=iIr});var es=c((wle,pF)=>{"use strict";var oIr=Ir(),$f=uF(),dF=fF(),nIr=cF();oIr($f,"enum",dF);nIr($f,dF());pF.exports=$f});var mF=c((Sle,yF)=>{"use strict";var sIr=wn(),uIr=es().enum,vIr=sIr(uIr(),{duplicates:!1});function fIr(r){var e=vIr[r];return typeof e=="string"?e:null}yF.exports=fIr});var as=c((Ele,hF)=>{"use strict";var lIr=mF();hF.exports=lIr});var bF=c((Ale,gF)=>{"use strict";var cIr=es().enum,dIr=cIr();function pIr(r){var e=dIr[r];return typeof e=="number"?e:null}gF.exports=pIr});var ts=c((_le,xF)=>{"use strict";var yIr=bF();xF.exports=yIr});var wF=c((Tle,qF)=>{"use strict";var mIr=as(),hIr=ts();function gIr(r){var e=typeof r;return e==="number"?mIr(r)?r:null:e==="string"?hIr(r):null}qF.exports=gIr});var EF=c((jle,SF)=>{"use strict";var bIr=wF();SF.exports=bIr});var _F=c((Ile,AF)=>{"use strict";var xIr=as(),qIr=ts();function wIr(r){var e=typeof r;return e==="string"?qIr(r)===null?null:r:e==="number"?xIr(r):null}AF.exports=wIr});var jF=c((Ole,TF)=>{"use strict";var SIr=_F();TF.exports=SIr});var BF=c((Nle,kF)=>{"use strict";var EIr=Le(),IF=Xe(),AIr=Te(),_Ir=ba(),OF=Ha(),NF=sa(),DF=lt();function TIr(r,e){var a,t,o,i,n,s;for(o=AIr(r,!1),i=_Ir(r,!1),n=o.length,a=[],t=[],s=0;s<e;s++)t.push(1),a.push(i[0]);for(s=0;s<n;s++)t.push(o[s]),a.push(i[s]);return EIr(r)?new r.constructor(IF(r),DF(r),t,a,OF(r),NF(r),{readonly:!0}):new r.constructor(IF(r),DF(r),t,a,OF(r),NF(r))}kF.exports=TIr});var RF=c((Dle,FF)=>{"use strict";var jIr=BF();FF.exports=jIr});var LF=c((kle,PF)=>{"use strict";var IIr=Le(),zF=Xe(),OIr=Te(),NIr=ba(),VF=Ha(),UF=sa(),CF=lt();function DIr(r){var e,a,t,o,i,n;for(t=OIr(r,!1),o=NIr(r,!1),i=t.length,e=[],a=[],n=0;n<i;n++)t[n]!==1&&(a.push(t[n]),e.push(o[n]));return a.length===i?r:IIr(r)?new r.constructor(zF(r),CF(r),a,e,VF(r),UF(r),{readonly:!0}):new r.constructor(zF(r),CF(r),a,e,VF(r),UF(r))}PF.exports=DIr});var GF=c((Ble,MF)=>{"use strict";var kIr=LF();MF.exports=kIr});var $F=c((Fle,YF)=>{"use strict";var BIr=he(),FIr=Ce(),RIr=bo(),zIr=ye(),VIr=Ua();function UIr(r,e){var a=RIr(new FIr(null,null,-1),VIr(r));return zIr(r,BIr(a),!0,e)}YF.exports=UIr});var JF=c((Rle,WF)=>{"use strict";var CIr=$F();WF.exports=CIr});var HF=c((zle,KF)=>{"use strict";var It=Gt(),PIr=li(),LIr=Yt(),Oo=Du(),MIr=xt(),GIr=Be().enum,YIr=$t().enum,$Ir=Wt().enum,WIr=Xe(),JIr=Te(),XIr=ba(),KIr=Ha(),HIr=sa(),ZIr=GIr(),QIr=YIr(),XF=$Ir();function rOr(r){var e,a,t,o,i,n,s,u,v,f,l,d,y,p;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(o=WIr(r),i=JIr(r,!1),n=XIr(r,!1),d=i.length,v=r.mode||"throw",s=r.submode||[v],y=s.length,e=MIr(o),t=33+d*16+y,u=new LIr(new PIr(t)),f=0,u.setInt8(f,It?1:0),f+=1,u.setInt16(f,ZIr[o],It),f+=2,u.setBigInt64(f,Oo(d),It),l=d*8,f+=8,p=0;p<d;p++)u.setBigInt64(f,Oo(i[p]),It),u.setBigInt64(f+l,Oo(n[p]*e),It),f+=8;for(f+=l,u.setBigInt64(f,Oo(KIr(r)*e),It),f+=8,u.setInt8(f,QIr[HIr(r)]),f+=1,u.setInt8(f,XF[v]),f+=1,u.setBigInt64(f,Oo(y),It),f+=8,p=0;p<y;p++)u.setInt8(f,XF[s[p]]),f+=1;return a=0,r.flags&&(a|=r.flags.READONLY?4:0),u.setInt32(f,a,It),u}KF.exports=rOr});var rR=c((Vle,QF)=>{"use strict";var Wf=Gt(),No=$u().assign,eOr=li(),aOr=va(),tOr=Yt(),iOr=xt(),oOr=Be().enum,nOr=$t().enum,sOr=Wt().enum,uOr=Xe(),vOr=Te(),fOr=ba(),lOr=Ha(),cOr=sa(),dOr=oOr(),pOr=nOr(),ZF=sOr();function yOr(r){var e,a,t,o,i,n,s,u,v,f,l,d,y,p,m;if(r.__array_meta_dataview__)return r.__array_meta_dataview__();for(i=uOr(r),n=vOr(r,!1),s=fOr(r,!1),y=n.length,f=r.mode||"throw",u=r.submode||[f],p=u.length,e=iOr(i),o=33+y*16+p,v=new tOr(new eOr(o)),a=new aOr(v.buffer),l=0,v.setInt8(l,Wf?1:0),l+=1,v.setInt16(l,dOr[i],Wf),l+=2,No(y,a,1,l),d=y*8,l+=8,m=0;m<y;m++)No(n[m],a,1,l),No(s[m]*e,a,1,l+d),l+=8;for(l+=d,No(lOr(r)*e,a,1,l),l+=8,v.setInt8(l,pOr[cOr(r)]),l+=1,v.setInt8(l,ZF[f]),l+=1,No(p,a,1,l),l+=8,m=0;m<p;m++)v.setInt8(l,ZF[u[m]]),l+=1;return t=0,r.flags&&(t|=r.flags.READONLY?4:0),v.setInt32(l,t,Wf),v}QF.exports=yOr});var aR=c((Ule,eR)=>{"use strict";var mOr=yu(),hOr=HF(),gOr=rR(),Jf;mOr()?Jf=hOr:Jf=gOr;eR.exports=Jf});var iR=c((Cle,tR)=>{"use strict";function bOr(r){var e,a;for(e=0,a=0;a<r.length;a++)r[a]===1&&(e+=1);return e}tR.exports=bOr});var nR=c((Ple,oR)=>{"use strict";var xOr=iR();oR.exports=xOr});var vR=c((Lle,uR)=>{"use strict";var qOr=In(),wOr=_o(),SOr=bf(),EOr=ye(),sR=Xe(),AOr=Te(),_Or=pr();function TOr(r,e,a,t){var o,i,n;if(i=sR(r),n=sR(e),!qOr(i,n))throw new TypeError(_Or("invalid argument. Input array values cannot be safely cast to the output array data type. Data types: [%s, %s].",i,n));return o=EOr(e,a,t,!0),r=wOr(r,AOr(o,!0)),SOr([r,o]),e}uR.exports=TOr});var is=c((Mle,fR)=>{"use strict";var jOr=vR();fR.exports=jOr});var dR=c((Gle,cR)=>{"use strict";var IOr=he(),OOr=Ua(),NOr=ye(),DOr=ya(),kOr=Ei(),lR=pr();function BOr(r,e,a,t,o){var i,n,s;if(n=OOr(r),n===0)throw new TypeError(lR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=DOr(e,n-1),s===-1)throw new RangeError(lR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=kOr(n),i[s]=a,NOr(r,IOr(i),t,o)}cR.exports=BOr});var Xf=c((Yle,pR)=>{"use strict";var FOr=dR();pR.exports=FOr});var hR=c(($le,mR)=>{"use strict";var ROr=he(),zOr=Ce(),VOr=Ua(),UOr=ye(),COr=ya(),POr=Ei(),yR=pr();function LOr(r,e,a,t,o){var i,n,s;if(n=VOr(r),n===0)throw new TypeError(yR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=COr(e,n-1),s===-1)throw new RangeError(yR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=POr(n),i[s]=new zOr(a,null),UOr(r,ROr(i),t,o)}mR.exports=LOr});var Kf=c((Wle,gR)=>{"use strict";var MOr=hR();gR.exports=MOr});var qR=c((Jle,xR)=>{"use strict";var GOr=he(),YOr=Ce(),$Or=Ua(),WOr=ye(),JOr=ya(),XOr=Ei(),bR=pr();function KOr(r,e,a,t,o){var i,n,s;if(n=$Or(r),n===0)throw new TypeError(bR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",n));if(s=JOr(e,n-1),s===-1)throw new RangeError(bR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",n,e));return i=XOr(n),i[s]=new YOr(a),WOr(r,GOr(i),t,o)}xR.exports=KOr});var Hf=c((Xle,wR)=>{"use strict";var HOr=qR();wR.exports=HOr});var AR=c((Kle,ER)=>{"use strict";var ZOr=Ge().isPrimitive,QOr=he(),SR=Ce(),r7r=Te(),e7r=ye();function a7r(r,e,a,t){var o,i,n,s;for(i=r7r(r),o=[],s=0;s<e.length;s++)n=e[s],ZOr(n)&&n!==0?n===i[s]?(n-=1,o.push(new SR(n,n))):o.push(new SR(n,null)):o.push(null);return e7r(r,QOr(o),a,t)}ER.exports=a7r});var Zf=c((Hle,_R)=>{"use strict";var t7r=AR();_R.exports=t7r});var jR=c((Zle,TR)=>{"use strict";var i7r=Ge().isPrimitive,o7r=he(),n7r=Ce(),s7r=ye();function u7r(r,e,a,t){var o,i;for(o=[],i=0;i<e.length;i++)i7r(e[i])?o.push(new n7r(e[i])):o.push(null);return s7r(r,o7r(o),a,t)}TR.exports=u7r});var Qf=c((Qle,IR)=>{"use strict";var v7r=jR();IR.exports=v7r});var DR=c((rce,NR)=>{"use strict";var f7r=ya(),l7r=Ua(),c7r=ba(),OR=pr();function d7r(r,e){var a,t;if(a=l7r(r),a===0)throw new TypeError(OR("invalid argument. First argument must be an ndarray having one or more dimensions. Number of dimensions: %d.",a));if(t=f7r(e,a-1),t===-1)throw new RangeError(OR("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",a,e));return c7r(r,!1)[t]}NR.exports=d7r});var rl=c((ece,kR)=>{"use strict";var p7r=DR();kR.exports=p7r});var FR=c((ace,BR)=>{"use strict";var y7r=pr();function m7r(){var r,e,a,t,o,i,n,s,u,v,f,l;for(t=arguments[0],r=arguments[1],e=arguments[2],o=t.length,i=arguments[3+o],a=i.length,s=e,l=0;l<o;l++){if(u=t[l],f=arguments[l+3],n=i[l%a],n==="clamp")f<0?f=0:f>=u&&(f=u-1);else if(n==="wrap")f<0?(f+=u,f<0&&(f%=u,f!==0&&(f+=u))):f>=u&&(f-=u,f>=u&&(f%=u));else if(n==="normalize"&&f<0&&(f+=u),f<0||f>=u)throw new RangeError(y7r("invalid argument. Subscripts must not exceed array dimensions. Subscript: `%u`. Value: `%d`.",l,f));v=r[l],v<0&&e===0?s-=f*v:s+=f*v}return s}BR.exports=m7r});var el=c((tce,RR)=>{"use strict";var h7r=FR();RR.exports=h7r});var UR=c((ice,VR)=>{"use strict";function zR(r,e,a,t,o,i){var n,s,u,v,f;if(i>=e.length)return r.accessors[0](r.data,t);for(u=[],v=e[i],n=a[i],f=0;f<v;f++)s=zR(r,e,a,t,o,i+1),u.push(s),t+=n;return u}VR.exports=zR});var PR=c((oce,CR)=>{"use strict";var g7r=ft(),b7r=UR();function x7r(r,e,a,t,o){var i;if(e.length===0)return[];for(i=0;i<e.length;i++)if(e[i]===0)return[];return b7r(g7r(r),e,a,t,o,0)}CR.exports=x7r});var al=c((nce,LR)=>{"use strict";var q7r=PR();LR.exports=q7r});var GR=c((sce,MR)=>{"use strict";var w7r=Ye(),S7r=Xe(),E7r=Te(),A7r=ba(),_7r=sa(),T7r=lt();function j7r(r){var e,a,t,o;if(a=E7r(r,!0),o=a.length,o<2)throw new Error("invalid argument. Must provide an ndarray having two or more dimensions.");return t=A7r(r,!0),e=a[o-2],a[o-2]=a[o-1],a[o-1]=e,e=t[o-2],t[o-2]=t[o-1],t[o-1]=e,new r.constructor(S7r(r),T7r(r),a,t,w7r(a,t),_7r(r))}MR.exports=j7r});var $R=c((uce,YR)=>{"use strict";var I7r=GR();YR.exports=I7r});var JR=c((vce,WR)=>{"use strict";var O7r=zr(),N7r=Rr();function D7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(j=O7r(r.shape,r.strides,e.strides),p=j.sh,g=j.sx,b=j.sy,t=N7r(r.dtype,e.dtype),S=r.offset,w=e.offset,o=r.data,i=e.data,u=g[0],f=b[0],n=r.accessors[0],s=e.accessors[1],T=p[1];T>0;)for(T<t?(h=T,T=0):(h=t,T-=t),d=S+T*g[1],y=w+T*b[1],q=p[0];q>0;)for(q<t?(m=q,q=0):(m=t,q-=t),A=d+q*g[0],_=y+q*b[0],v=g[1]-m*g[0],l=b[1]-m*b[0],E=0;E<h;E++){for(x=0;x<m;x++)s(i,_,a(n(o,A))),A+=u,_+=f;A+=v,_+=l}}WR.exports=D7r});var KR=c((fce,XR)=>{"use strict";var k7r=zr(),B7r=Rr();function F7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R;for(R=k7r(r.shape,r.strides,e.strides),b=R.sh,_=R.sx,x=R.sy,t=B7r(r.dtype,e.dtype),E=r.offset,q=e.offset,o=r.data,i=e.data,u=_[0],l=x[0],n=r.accessors[0],s=e.accessors[1],F=b[2];F>0;)for(F<t?(A=F,F=0):(A=t,F-=t),m=E+F*_[2],g=q+F*x[2],N=b[1];N>0;)for(N<t?(w=N,N=0):(w=t,N-=t),f=_[2]-w*_[1],y=x[2]-w*x[1],p=m+N*_[1],h=g+N*x[1],k=b[0];k>0;)for(k<t?(S=k,k=0):(S=t,k-=t),T=p+k*_[0],j=h+k*x[0],v=_[1]-S*_[0],d=x[1]-S*x[0],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++)s(i,j,a(n(o,T))),T+=u,j+=l;T+=v,j+=d}T+=f,j+=y}}XR.exports=F7r});var ZR=c((lce,HR)=>{"use strict";var R7r=zr(),z7r=Rr();function V7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L;for(L=R7r(r.shape,r.strides,e.strides),_=L.sh,j=L.sx,O=L.sy,t=z7r(r.dtype,e.dtype),I=r.offset,D=e.offset,o=r.data,i=e.data,u=j[0],d=O[0],n=r.accessors[0],s=e.accessors[1],P=_[3];P>0;)for(P<t?(T=P,P=0):(T=t,P-=t),b=I+P*j[3],A=D+P*O[3],C=_[2];C>0;)for(C<t?(q=C,C=0):(q=t,C-=t),l=j[3]-q*j[2],m=O[3]-q*O[2],g=b+C*j[2],w=A+C*O[2],U=_[1];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),f=j[2]-E*j[1],p=O[2]-E*O[1],h=g+U*j[1],S=w+U*O[1],V=_[0];V>0;)for(V<t?(x=V,V=0):(x=t,V-=t),k=h+V*j[0],N=S+V*O[0],v=j[1]-x*j[0],y=O[1]-x*O[0],z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++)s(i,N,a(n(o,k))),k+=u,N+=d;k+=v,N+=y}k+=f,N+=p}k+=l,N+=m}}HR.exports=V7r});var rz=c((cce,QR)=>{"use strict";var U7r=zr(),C7r=Rr();function P7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X;for(X=U7r(r.shape,r.strides,e.strides),T=X.sh,N=X.sx,F=X.sy,t=C7r(r.dtype,e.dtype),R=r.offset,B=e.offset,o=r.data,i=e.data,u=N[0],y=F[0],n=r.accessors[0],s=e.accessors[1],J=T[4];J>0;)for(J<t?(k=J,J=0):(k=t,J-=t),A=R+J*N[4],q=B+J*F[4],W=T[3];W>0;)for(W<t?(D=W,W=0):(D=t,W-=t),d=N[4]-D*N[3],g=F[4]-D*F[3],w=A+W*N[3],E=q+W*F[3],Y=T[2];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),l=N[3]-I*N[2],h=F[3]-I*F[2],S=w+Y*N[2],x=E+Y*F[2],$=T[1];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),f=N[2]-O*N[1],m=F[2]-O*F[1],b=S+$*N[1],_=x+$*F[1],G=T[0];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),z=b+G*N[0],V=_+G*F[0],v=N[1]-j*N[0],p=F[1]-j*F[0],M=0;M<k;M++){for(L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++)s(i,V,a(n(o,z))),z+=u,V+=y;z+=v,V+=p}z+=f,V+=m}z+=l,V+=h}z+=d,V+=g}}QR.exports=P7r});var az=c((dce,ez)=>{"use strict";var L7r=zr(),M7r=Rr();function G7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er;for(er=L7r(r.shape,r.strides,e.strides),D=er.sh,V=er.sx,U=er.sy,t=M7r(r.dtype,e.dtype),C=r.offset,P=e.offset,o=r.data,i=e.data,u=V[0],p=U[0],n=r.accessors[0],s=e.accessors[1],ar=D[5];ar>0;)for(ar<t?(z=ar,ar=0):(z=t,ar-=t),E=C+ar*V[5],I=P+ar*U[5],rr=D[4];rr>0;)for(rr<t?(B=rr,rr=0):(B=t,rr-=t),y=V[5]-B*V[4],S=U[5]-B*U[4],x=E+rr*V[4],O=I+rr*U[4],Z=D[3];Z>0;)for(Z<t?(R=Z,Z=0):(R=t,Z-=t),d=V[4]-R*V[3],b=U[4]-R*U[3],_=x+Z*V[3],j=O+Z*U[3],Q=D[2];Q>0;)for(Q<t?(F=Q,Q=0):(F=t,Q-=t),l=V[3]-F*V[2],g=U[3]-F*U[2],A=_+Q*V[2],T=j+Q*U[2],H=D[1];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=V[2]-N*V[1],h=U[2]-N*U[1],w=A+H*V[1],q=T+H*U[1],K=D[0];K>0;)for(K<t?(k=K,K=0):(k=t,K-=t),L=w+K*V[0],M=q+K*U[0],v=V[1]-k*V[0],m=U[1]-k*U[0],X=0;X<z;X++){for(J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++)s(i,M,a(n(o,L))),L+=u,M+=p;L+=v,M+=m}L+=f,M+=h}L+=l,M+=g}L+=d,M+=b}L+=y,M+=S}}ez.exports=G7r});var iz=c((pce,tz)=>{"use strict";var Y7r=zr(),$7r=Rr();function W7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr;for(vr=Y7r(r.shape,r.strides,e.strides),R=vr.sh,M=vr.sx,G=vr.sy,t=$7r(r.dtype,e.dtype),$=r.offset,Y=e.offset,o=r.data,i=e.data,u=M[0],m=G[0],n=r.accessors[0],s=e.accessors[1],ur=R[6];ur>0;)for(ur<t?(L=ur,ur=0):(L=t,ur-=t),j=$+ur*M[6],F=Y+ur*G[6],sr=R[5];sr>0;)for(sr<t?(P=sr,sr=0):(P=t,sr-=t),p=M[6]-P*M[5],A=G[6]-P*G[5],T=j+sr*M[5],N=F+sr*G[5],nr=R[4];nr>0;)for(nr<t?(C=nr,nr=0):(C=t,nr-=t),y=M[5]-C*M[4],w=G[5]-C*G[4],q=T+nr*M[4],k=N+nr*G[4],or=R[3];or>0;)for(or<t?(U=or,or=0):(U=t,or-=t),d=M[4]-U*M[3],S=G[4]-U*G[3],E=q+or*M[3],D=k+or*G[3],tr=R[2];tr>0;)for(tr<t?(V=tr,tr=0):(V=t,tr-=t),l=M[3]-V*M[2],b=G[3]-V*G[2],x=E+tr*M[2],I=D+tr*G[2],ir=R[1];ir>0;)for(ir<t?(z=ir,ir=0):(z=t,ir-=t),f=M[2]-z*M[1],g=G[2]-z*G[1],_=x+ir*M[1],O=I+ir*G[1],er=R[0];er>0;)for(er<t?(B=er,er=0):(B=t,er-=t),W=_+er*M[0],J=O+er*G[0],v=M[1]-B*M[0],h=G[1]-B*G[0],ar=0;ar<L;ar++){for(rr=0;rr<P;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++)s(i,J,a(n(o,W))),W+=u,J+=m;W+=v,J+=h}W+=f,J+=g}W+=l,J+=b}W+=d,J+=S}W+=y,J+=w}W+=p,J+=A}}tz.exports=W7r});var nz=c((yce,oz)=>{"use strict";var J7r=zr(),X7r=Rr();function K7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br;for(br=J7r(r.shape,r.strides,e.strides),U=br.sh,J=br.sx,X=br.sy,t=X7r(r.dtype,e.dtype),K=r.offset,H=e.offset,o=r.data,i=e.data,u=J[0],h=X[0],n=r.accessors[0],s=e.accessors[1],hr=U[7];hr>0;)for(hr<t?(W=hr,hr=0):(W=t,hr-=t),D=K+hr*J[7],V=H+hr*X[7],mr=U[6];mr>0;)for(mr<t?(Y=mr,mr=0):(Y=t,mr-=t),m=J[7]-Y*J[6],x=X[7]-Y*X[6],I=D+mr*J[6],z=V+mr*X[6],dr=U[5];dr>0;)for(dr<t?($=dr,dr=0):($=t,dr-=t),p=J[6]-$*J[5],_=X[6]-$*X[5],O=I+dr*J[5],B=z+dr*X[5],yr=U[4];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),y=J[5]-G*J[4],A=X[5]-G*X[4],j=O+yr*J[4],R=B+yr*X[4],fr=U[3];fr>0;)for(fr<t?(M=fr,fr=0):(M=t,fr-=t),d=J[4]-M*J[3],w=X[4]-M*X[3],T=j+fr*J[3],F=R+fr*X[3],lr=U[2];lr>0;)for(lr<t?(L=lr,lr=0):(L=t,lr-=t),l=J[3]-L*J[2],S=X[3]-L*X[2],q=T+lr*J[2],N=F+lr*X[2],vr=U[1];vr>0;)for(vr<t?(P=vr,vr=0):(P=t,vr-=t),f=J[2]-P*J[1],b=X[2]-P*X[1],E=q+vr*J[1],k=N+vr*X[1],ur=U[0];ur>0;)for(ur<t?(C=ur,ur=0):(C=t,ur-=t),Q=E+ur*J[0],Z=k+ur*X[0],v=J[1]-C*J[0],g=X[1]-C*X[0],sr=0;sr<W;sr++){for(nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++)s(i,Z,a(n(o,Q))),Q+=u,Z+=h;Q+=v,Z+=g}Q+=f,Z+=b}Q+=l,Z+=S}Q+=d,Z+=w}Q+=y,Z+=A}Q+=p,Z+=_}Q+=m,Z+=x}}oz.exports=K7r});var uz=c((mce,sz)=>{"use strict";var H7r=zr(),Z7r=Rr();function Q7r(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr;for(Tr=H7r(r.shape,r.strides,e.strides),M=Tr.sh,Z=Tr.sx,rr=Tr.sy,t=Z7r(r.dtype,e.dtype),ar=r.offset,er=e.offset,o=r.data,i=e.data,u=Z[0],g=rr[0],n=r.accessors[0],s=e.accessors[1],_r=M[8];_r>0;)for(_r<t?(Q=_r,_r=0):(Q=t,_r-=t),F=ar+_r*Z[8],L=er+_r*rr[8],Ar=M[7];Ar>0;)for(Ar<t?(H=Ar,Ar=0):(H=t,Ar-=t),h=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=F+Ar*Z[7],P=L+Ar*rr[7],gr=M[6];gr>0;)for(gr<t?(K=gr,gr=0):(K=t,gr-=t),m=Z[7]-K*Z[6],E=rr[7]-K*rr[6],k=N+gr*Z[6],C=P+gr*rr[6],qr=M[5];qr>0;)for(qr<t?(X=qr,qr=0):(X=t,qr-=t),p=Z[6]-X*Z[5],x=rr[6]-X*rr[5],D=k+qr*Z[5],U=C+qr*rr[5],xr=M[4];xr>0;)for(xr<t?(J=xr,xr=0):(J=t,xr-=t),y=Z[5]-J*Z[4],_=rr[5]-J*rr[4],I=D+xr*Z[4],V=U+xr*rr[4],wr=M[3];wr>0;)for(wr<t?(W=wr,wr=0):(W=t,wr-=t),d=Z[4]-W*Z[3],A=rr[4]-W*rr[3],O=I+wr*Z[3],z=V+wr*rr[3],br=M[2];br>0;)for(br<t?(Y=br,br=0):(Y=t,br-=t),l=Z[3]-Y*Z[2],w=rr[3]-Y*rr[2],j=O+br*Z[2],B=z+br*rr[2],hr=M[1];hr>0;)for(hr<t?($=hr,hr=0):($=t,hr-=t),f=Z[2]-$*Z[1],S=rr[2]-$*rr[1],T=j+hr*Z[1],R=B+hr*rr[1],mr=M[0];mr>0;)for(mr<t?(G=mr,mr=0):(G=t,mr-=t),ir=T+mr*Z[0],tr=R+mr*rr[0],v=Z[1]-G*Z[0],b=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++)s(i,tr,a(n(o,ir))),ir+=u,tr+=g;ir+=v,tr+=b}ir+=f,tr+=S}ir+=l,tr+=w}ir+=d,tr+=A}ir+=y,tr+=_}ir+=p,tr+=x}ir+=m,tr+=E}ir+=h,tr+=q}}sz.exports=Q7r});var fz=c((hce,vz)=>{"use strict";var rNr=zr(),eNr=Rr();function aNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr,ie,De;for(De=rNr(r.shape,r.strides,e.strides),W=De.sh,tr=De.sx,or=De.sy,t=eNr(r.dtype,e.dtype),nr=r.offset,sr=e.offset,o=r.data,i=e.data,u=tr[0],b=or[0],n=r.accessors[0],s=e.accessors[1],ie=W[9];ie>0;)for(ie<t?(ir=ie,ie=0):(ir=t,ie-=t),z=nr+ie*tr[9],Y=sr+ie*or[9],Hr=W[8];Hr>0;)for(Hr<t?(er=Hr,Hr=0):(er=t,Hr-=t),g=tr[9]-er*tr[8],j=or[9]-er*or[8],B=z+Hr*tr[8],$=Y+Hr*or[8],Vr=W[7];Vr>0;)for(Vr<t?(ar=Vr,Vr=0):(ar=t,Vr-=t),h=tr[8]-ar*tr[7],T=or[8]-ar*or[7],R=B+Vr*tr[7],G=$+Vr*or[7],Fr=W[6];Fr>0;)for(Fr<t?(rr=Fr,Fr=0):(rr=t,Fr-=t),m=tr[7]-rr*tr[6],q=or[7]-rr*or[6],F=R+Fr*tr[6],M=G+Fr*or[6],Or=W[5];Or>0;)for(Or<t?(Z=Or,Or=0):(Z=t,Or-=t),p=tr[6]-Z*tr[5],E=or[6]-Z*or[5],N=F+Or*tr[5],L=M+Or*or[5],jr=W[4];jr>0;)for(jr<t?(Q=jr,jr=0):(Q=t,jr-=t),y=tr[5]-Q*tr[4],x=or[5]-Q*or[4],k=N+jr*tr[4],P=L+jr*or[4],Tr=W[3];Tr>0;)for(Tr<t?(H=Tr,Tr=0):(H=t,Tr-=t),d=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+Tr*tr[3],C=P+Tr*or[3],_r=W[2];_r>0;)for(_r<t?(K=_r,_r=0):(K=t,_r-=t),l=tr[3]-K*tr[2],A=or[3]-K*or[2],I=D+_r*tr[2],U=C+_r*or[2],Ar=W[1];Ar>0;)for(Ar<t?(X=Ar,Ar=0):(X=t,Ar-=t),f=tr[2]-X*tr[1],w=or[2]-X*or[1],O=I+Ar*tr[1],V=U+Ar*or[1],gr=W[0];gr>0;)for(gr<t?(J=gr,gr=0):(J=t,gr-=t),ur=O+gr*tr[0],vr=V+gr*or[0],v=tr[1]-J*tr[0],S=or[1]-J*or[0],qr=0;qr<ir;qr++){for(xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++)s(i,vr,a(n(o,ur))),ur+=u,vr+=b;ur+=v,vr+=S}ur+=f,vr+=w}ur+=l,vr+=A}ur+=d,vr+=_}ur+=y,vr+=x}ur+=p,vr+=E}ur+=m,vr+=q}ur+=h,vr+=T}ur+=g,vr+=j}}vz.exports=aNr});var cz=c((gce,lz)=>{"use strict";var tNr=zr(),iNr=Rr();function oNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(q=tNr(r.shape,r.strides,e.strides),d=q.sh,m=q.sx,h=q.sy,t=iNr(r.dtype,e.dtype),g=r.offset,b=e.offset,o=r.data,i=e.data,n=m[0],u=h[0],E=d[1];E>0;)for(E<t?(p=E,E=0):(p=t,E-=t),f=g+E*m[1],l=b+E*h[1],x=d[0];x>0;)for(x<t?(y=x,x=0):(y=t,x-=t),S=f+x*m[0],w=l+x*h[0],s=m[1]-y*m[0],v=h[1]-y*h[0],_=0;_<p;_++){for(A=0;A<y;A++)i[w]=a(o[S]),S+=n,w+=u;S+=s,w+=v}}lz.exports=oNr});var pz=c((bce,dz)=>{"use strict";var nNr=zr(),sNr=Rr();function uNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N;for(N=nNr(r.shape,r.strides,e.strides),h=N.sh,w=N.sx,A=N.sy,t=sNr(r.dtype,e.dtype),_=r.offset,x=e.offset,o=r.data,i=e.data,n=w[0],v=A[0],k=h[2];k>0;)for(k<t?(S=k,k=0):(S=t,k-=t),y=_+k*w[2],m=x+k*A[2],D=h[1];D>0;)for(D<t?(b=D,D=0):(b=t,D-=t),u=w[2]-b*w[1],l=A[2]-b*A[1],d=y+D*w[1],p=m+D*A[1],I=h[0];I>0;)for(I<t?(g=I,I=0):(g=t,I-=t),E=d+I*w[0],q=p+I*A[0],s=w[1]-g*w[0],f=A[1]-g*A[0],O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++)i[q]=a(o[E]),E+=n,q+=v;E+=s,q+=f}E+=u,q+=l}}dz.exports=uNr});var mz=c((xce,yz)=>{"use strict";var vNr=zr(),fNr=Rr();function lNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C;for(C=vNr(r.shape,r.strides,e.strides),w=C.sh,q=C.sx,T=C.sy,t=fNr(r.dtype,e.dtype),j=r.offset,O=e.offset,o=r.data,i=e.data,n=q[0],f=T[0],U=w[3];U>0;)for(U<t?(E=U,U=0):(E=t,U-=t),h=j+U*q[3],S=O+U*T[3],V=w[2];V>0;)for(V<t?(x=V,V=0):(x=t,V-=t),v=q[3]-x*q[2],y=T[3]-x*T[2],m=h+V*q[2],b=S+V*T[2],z=w[1];z>0;)for(z<t?(_=z,z=0):(_=t,z-=t),u=q[2]-_*q[1],d=T[2]-_*T[1],p=m+z*q[1],g=b+z*T[1],B=w[0];B>0;)for(B<t?(A=B,B=0):(A=t,B-=t),I=p+B*q[0],D=g+B*T[0],s=q[1]-A*q[0],l=T[1]-A*T[0],R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++)i[D]=a(o[I]),I+=n,D+=f;I+=s,D+=l}I+=u,D+=d}I+=v,D+=y}}yz.exports=lNr});var gz=c((qce,hz)=>{"use strict";var cNr=zr(),dNr=Rr();function pNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W;for(W=cNr(r.shape,r.strides,e.strides),E=W.sh,D=W.sx,k=W.sy,t=dNr(r.dtype,e.dtype),N=r.offset,F=e.offset,o=r.data,i=e.data,n=D[0],l=k[0],Y=E[4];Y>0;)for(Y<t?(I=Y,Y=0):(I=t,Y-=t),S=N+Y*D[4],x=F+Y*k[4],$=E[3];$>0;)for($<t?(O=$,$=0):(O=t,$-=t),f=D[4]-O*D[3],m=k[4]-O*k[3],b=S+$*D[3],_=x+$*k[3],G=E[2];G>0;)for(G<t?(j=G,G=0):(j=t,G-=t),v=D[3]-j*D[2],p=k[3]-j*k[2],g=b+G*D[2],A=_+G*k[2],M=E[1];M>0;)for(M<t?(T=M,M=0):(T=t,M-=t),u=D[2]-T*D[1],y=k[2]-T*k[1],h=g+M*D[1],w=A+M*k[1],L=E[0];L>0;)for(L<t?(q=L,L=0):(q=t,L-=t),R=h+L*D[0],B=w+L*k[0],s=D[1]-q*D[0],d=k[1]-q*k[0],P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++)i[B]=a(o[R]),R+=n,B+=l;R+=s,B+=d}R+=u,B+=y}R+=v,B+=p}R+=f,B+=m}}hz.exports=pNr});var xz=c((wce,bz)=>{"use strict";var yNr=zr(),mNr=Rr();function hNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr;for(rr=yNr(r.shape,r.strides,e.strides),O=rr.sh,B=rr.sx,z=rr.sy,t=mNr(r.dtype,e.dtype),V=r.offset,U=e.offset,o=r.data,i=e.data,n=B[0],d=z[0],Z=O[5];Z>0;)for(Z<t?(R=Z,Z=0):(R=t,Z-=t),_=V+Z*B[5],j=U+Z*z[5],Q=O[4];Q>0;)for(Q<t?(F=Q,Q=0):(F=t,Q-=t),l=B[5]-F*B[4],g=z[5]-F*z[4],A=_+Q*B[4],T=j+Q*z[4],H=O[3];H>0;)for(H<t?(N=H,H=0):(N=t,H-=t),f=B[4]-N*B[3],h=z[4]-N*z[3],w=A+H*B[3],q=T+H*z[3],K=O[2];K>0;)for(K<t?(k=K,K=0):(k=t,K-=t),v=B[3]-k*B[2],m=z[3]-k*z[2],S=w+K*B[2],E=q+K*z[2],X=O[1];X>0;)for(X<t?(D=X,X=0):(D=t,X-=t),u=B[2]-D*B[1],p=z[2]-D*z[1],b=S+X*B[1],x=E+X*z[1],J=O[0];J>0;)for(J<t?(I=J,J=0):(I=t,J-=t),C=b+J*B[0],P=x+J*z[0],s=B[1]-I*B[0],y=z[1]-I*z[0],W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++)i[P]=a(o[C]),C+=n,P+=d;C+=s,P+=y}C+=u,P+=p}C+=v,P+=m}C+=f,P+=h}C+=l,P+=g}}bz.exports=hNr});var wz=c((Sce,qz)=>{"use strict";var gNr=zr(),bNr=Rr();function xNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr;for(sr=gNr(r.shape,r.strides,e.strides),N=sr.sh,P=sr.sx,L=sr.sy,t=bNr(r.dtype,e.dtype),M=r.offset,G=e.offset,o=r.data,i=e.data,n=P[0],y=L[0],nr=N[6];nr>0;)for(nr<t?(C=nr,nr=0):(C=t,nr-=t),q=M+nr*P[6],k=G+nr*L[6],or=N[5];or>0;)for(or<t?(U=or,or=0):(U=t,or-=t),d=P[6]-U*P[5],S=L[6]-U*L[5],E=q+or*P[5],D=k+or*L[5],tr=N[4];tr>0;)for(tr<t?(V=tr,tr=0):(V=t,tr-=t),l=P[5]-V*P[4],b=L[5]-V*L[4],x=E+tr*P[4],I=D+tr*L[4],ir=N[3];ir>0;)for(ir<t?(z=ir,ir=0):(z=t,ir-=t),f=P[4]-z*P[3],g=L[4]-z*L[3],_=x+ir*P[3],O=I+ir*L[3],er=N[2];er>0;)for(er<t?(B=er,er=0):(B=t,er-=t),v=P[3]-B*P[2],h=L[3]-B*L[2],A=_+er*P[2],j=O+er*L[2],ar=N[1];ar>0;)for(ar<t?(R=ar,ar=0):(R=t,ar-=t),u=P[2]-R*P[1],m=L[2]-R*L[1],w=A+ar*P[1],T=j+ar*L[1],rr=N[0];rr>0;)for(rr<t?(F=rr,rr=0):(F=t,rr-=t),$=w+rr*P[0],Y=T+rr*L[0],s=P[1]-F*P[0],p=L[1]-F*L[0],Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++)i[Y]=a(o[$]),$+=n,Y+=y;$+=s,Y+=p}$+=u,Y+=m}$+=v,Y+=h}$+=f,Y+=g}$+=l,Y+=b}$+=d,Y+=S}}qz.exports=xNr});var Ez=c((Ece,Sz)=>{"use strict";var qNr=zr(),wNr=Rr();function SNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr;for(mr=qNr(r.shape,r.strides,e.strides),z=mr.sh,Y=mr.sx,W=mr.sy,t=wNr(r.dtype,e.dtype),J=r.offset,X=e.offset,o=r.data,i=e.data,n=Y[0],p=W[0],dr=z[7];dr>0;)for(dr<t?($=dr,dr=0):($=t,dr-=t),O=J+dr*Y[7],B=X+dr*W[7],yr=z[6];yr>0;)for(yr<t?(G=yr,yr=0):(G=t,yr-=t),y=Y[7]-G*Y[6],A=W[7]-G*W[6],j=O+yr*Y[6],R=B+yr*W[6],fr=z[5];fr>0;)for(fr<t?(M=fr,fr=0):(M=t,fr-=t),d=Y[6]-M*Y[5],w=W[6]-M*W[5],T=j+fr*Y[5],F=R+fr*W[5],lr=z[4];lr>0;)for(lr<t?(L=lr,lr=0):(L=t,lr-=t),l=Y[5]-L*Y[4],S=W[5]-L*W[4],q=T+lr*Y[4],N=F+lr*W[4],vr=z[3];vr>0;)for(vr<t?(P=vr,vr=0):(P=t,vr-=t),f=Y[4]-P*Y[3],b=W[4]-P*W[3],E=q+vr*Y[3],k=N+vr*W[3],ur=z[2];ur>0;)for(ur<t?(C=ur,ur=0):(C=t,ur-=t),v=Y[3]-C*Y[2],g=W[3]-C*W[2],x=E+ur*Y[2],D=k+ur*W[2],sr=z[1];sr>0;)for(sr<t?(U=sr,sr=0):(U=t,sr-=t),u=Y[2]-U*Y[1],h=W[2]-U*W[1],_=x+sr*Y[1],I=D+sr*W[1],nr=z[0];nr>0;)for(nr<t?(V=nr,nr=0):(V=t,nr-=t),K=_+nr*Y[0],H=I+nr*W[0],s=Y[1]-V*Y[0],m=W[1]-V*W[0],or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++){for(Z=0;Z<U;Z++){for(Q=0;Q<V;Q++)i[H]=a(o[K]),K+=n,H+=p;K+=s,H+=m}K+=u,H+=h}K+=v,H+=g}K+=f,H+=b}K+=l,H+=S}K+=d,H+=w}K+=y,H+=A}}Sz.exports=SNr});var _z=c((Ace,Az)=>{"use strict";var ENr=zr(),ANr=Rr();function _Nr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar;for(Ar=ENr(r.shape,r.strides,e.strides),P=Ar.sh,H=Ar.sx,Q=Ar.sy,t=ANr(r.dtype,e.dtype),Z=r.offset,rr=e.offset,o=r.data,i=e.data,n=H[0],m=Q[0],gr=P[8];gr>0;)for(gr<t?(K=gr,gr=0):(K=t,gr-=t),k=Z+gr*H[8],C=rr+gr*Q[8],qr=P[7];qr>0;)for(qr<t?(X=qr,qr=0):(X=t,qr-=t),p=H[8]-X*H[7],x=Q[8]-X*Q[7],D=k+qr*H[7],U=C+qr*Q[7],xr=P[6];xr>0;)for(xr<t?(J=xr,xr=0):(J=t,xr-=t),y=H[7]-J*H[6],_=Q[7]-J*Q[6],I=D+xr*H[6],V=U+xr*Q[6],wr=P[5];wr>0;)for(wr<t?(W=wr,wr=0):(W=t,wr-=t),d=H[6]-W*H[5],A=Q[6]-W*Q[5],O=I+wr*H[5],z=V+wr*Q[5],br=P[4];br>0;)for(br<t?(Y=br,br=0):(Y=t,br-=t),l=H[5]-Y*H[4],w=Q[5]-Y*Q[4],j=O+br*H[4],B=z+br*Q[4],hr=P[3];hr>0;)for(hr<t?($=hr,hr=0):($=t,hr-=t),f=H[4]-$*H[3],S=Q[4]-$*Q[3],T=j+hr*H[3],R=B+hr*Q[3],mr=P[2];mr>0;)for(mr<t?(G=mr,mr=0):(G=t,mr-=t),v=H[3]-G*H[2],b=Q[3]-G*Q[2],q=T+mr*H[2],F=R+mr*Q[2],dr=P[1];dr>0;)for(dr<t?(M=dr,dr=0):(M=t,dr-=t),u=H[2]-M*H[1],g=Q[2]-M*Q[1],E=q+dr*H[1],N=F+dr*Q[1],yr=P[0];yr>0;)for(yr<t?(L=yr,yr=0):(L=t,yr-=t),ar=E+yr*H[0],er=N+yr*Q[0],s=H[1]-L*H[0],h=Q[1]-L*Q[0],fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++){for(tr=0;tr<M;tr++){for(ir=0;ir<L;ir++)i[er]=a(o[ar]),ar+=n,er+=m;ar+=s,er+=h}ar+=u,er+=g}ar+=v,er+=b}ar+=f,er+=S}ar+=l,er+=w}ar+=d,er+=A}ar+=y,er+=_}ar+=p,er+=x}}Az.exports=_Nr});var jz=c((_ce,Tz)=>{"use strict";var TNr=zr(),jNr=Rr();function INr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr;for(Hr=TNr(r.shape,r.strides,e.strides),$=Hr.sh,er=Hr.sx,ir=Hr.sy,t=jNr(r.dtype,e.dtype),tr=r.offset,or=e.offset,o=r.data,i=e.data,n=er[0],h=ir[0],Vr=$[9];Vr>0;)for(Vr<t?(ar=Vr,Vr=0):(ar=t,Vr-=t),R=tr+Vr*er[9],G=or+Vr*ir[9],Fr=$[8];Fr>0;)for(Fr<t?(rr=Fr,Fr=0):(rr=t,Fr-=t),m=er[9]-rr*er[8],q=ir[9]-rr*ir[8],F=R+Fr*er[8],M=G+Fr*ir[8],Or=$[7];Or>0;)for(Or<t?(Z=Or,Or=0):(Z=t,Or-=t),p=er[8]-Z*er[7],E=ir[8]-Z*ir[7],N=F+Or*er[7],L=M+Or*ir[7],jr=$[6];jr>0;)for(jr<t?(Q=jr,jr=0):(Q=t,jr-=t),y=er[7]-Q*er[6],x=ir[7]-Q*ir[6],k=N+jr*er[6],P=L+jr*ir[6],Tr=$[5];Tr>0;)for(Tr<t?(H=Tr,Tr=0):(H=t,Tr-=t),d=er[6]-H*er[5],_=ir[6]-H*ir[5],D=k+Tr*er[5],C=P+Tr*ir[5],_r=$[4];_r>0;)for(_r<t?(K=_r,_r=0):(K=t,_r-=t),l=er[5]-K*er[4],A=ir[5]-K*ir[4],I=D+_r*er[4],U=C+_r*ir[4],Ar=$[3];Ar>0;)for(Ar<t?(X=Ar,Ar=0):(X=t,Ar-=t),f=er[4]-X*er[3],w=ir[4]-X*ir[3],O=I+Ar*er[3],V=U+Ar*ir[3],gr=$[2];gr>0;)for(gr<t?(J=gr,gr=0):(J=t,gr-=t),v=er[3]-J*er[2],S=ir[3]-J*ir[2],j=O+gr*er[2],z=V+gr*ir[2],qr=$[1];qr>0;)for(qr<t?(W=qr,qr=0):(W=t,qr-=t),u=er[2]-W*er[1],b=ir[2]-W*ir[1],T=j+qr*er[1],B=z+qr*ir[1],xr=$[0];xr>0;)for(xr<t?(Y=xr,xr=0):(Y=t,xr-=t),nr=T+xr*er[0],sr=B+xr*ir[0],s=er[1]-Y*er[0],g=ir[1]-Y*ir[0],wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++){for(vr=0;vr<W;vr++){for(ur=0;ur<Y;ur++)i[sr]=a(o[nr]),nr+=n,sr+=h;nr+=s,sr+=g}nr+=u,sr+=b}nr+=v,sr+=S}nr+=f,sr+=w}nr+=l,sr+=A}nr+=d,sr+=_}nr+=y,sr+=x}nr+=p,sr+=E}nr+=m,sr+=q}}Tz.exports=INr});var Oz=c((Tce,Iz)=>{"use strict";function ONr(r,e,a){e.accessors[1](e.data,e.offset,a(r.accessors[0](r.data,r.offset)))}Iz.exports=ONr});var Dz=c((jce,Nz)=>{"use strict";function NNr(r,e,a){var t,o,i,n,s,u,v,f,l,d;for(v=r.shape[0],s=r.strides[0],u=e.strides[0],f=r.offset,l=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],d=0;d<v;d++)n(o,l,a(i(t,f))),f+=s,l+=u}Nz.exports=NNr});var Bz=c((Ice,kz)=>{"use strict";function DNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S;for(l=r.shape,p=r.strides,m=e.strides,r.order==="row-major"?(d=l[1],y=l[0],s=p[1],u=p[0]-d*p[1],v=m[1],f=m[0]-d*m[1]):(d=l[0],y=l[1],s=p[0],u=p[1]-d*p[0],v=m[0],f=m[1]-d*m[0]),h=r.offset,g=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],S=0;S<y;S++){for(b=0;b<d;b++)n(o,g,a(i(t,h))),h+=s,g+=v;h+=u,g+=f}}kz.exports=DNr});var Rz=c((Oce,Fz)=>{"use strict";function kNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(y=r.shape,g=r.strides,b=e.strides,r.order==="row-major"?(p=y[2],m=y[1],h=y[0],s=g[2],u=g[1]-p*g[2],v=g[0]-m*g[1],f=b[2],l=b[1]-p*b[2],d=b[0]-m*b[1]):(p=y[0],m=y[1],h=y[2],s=g[0],u=g[1]-p*g[0],v=g[2]-m*g[1],f=b[0],l=b[1]-p*b[0],d=b[2]-m*b[1]),S=r.offset,w=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++)n(o,w,a(i(t,S))),S+=s,w+=f;S+=u,w+=l}S+=v,w+=d}}Fz.exports=kNr});var Vz=c((Nce,zz)=>{"use strict";function BNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(m=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(h=m[3],g=m[2],b=m[1],S=m[0],s=w[3],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-b*w[1],l=A[3],d=A[2]-h*A[3],y=A[1]-g*A[2],p=A[0]-b*A[1]):(h=m[0],g=m[1],b=m[2],S=m[3],s=w[0],u=w[1]-h*w[0],v=w[2]-g*w[1],f=w[3]-b*w[2],l=A[0],d=A[1]-h*A[0],y=A[2]-g*A[1],p=A[3]-b*A[2]),_=r.offset,x=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++)n(o,x,a(i(t,_))),_+=s,x+=l;_+=u,x+=d}_+=v,x+=y}_+=f,x+=p}}zz.exports=BNr});var Cz=c((Dce,Uz)=>{"use strict";function FNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(g=r.shape,x=r.strides,E=e.strides,r.order==="row-major"?(b=g[4],S=g[3],w=g[2],A=g[1],_=g[0],s=x[4],u=x[3]-b*x[4],v=x[2]-S*x[3],f=x[1]-w*x[2],l=x[0]-A*x[1],d=E[4],y=E[3]-b*E[4],p=E[2]-S*E[3],m=E[1]-w*E[2],h=E[0]-A*E[1]):(b=g[0],S=g[1],w=g[2],A=g[3],_=g[4],s=x[0],u=x[1]-b*x[0],v=x[2]-S*x[1],f=x[3]-w*x[2],l=x[4]-A*x[3],d=E[0],y=E[1]-b*E[0],p=E[2]-S*E[1],m=E[3]-w*E[2],h=E[4]-A*E[3]),q=r.offset,T=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++)n(o,T,a(i(t,q))),q+=s,T+=d;q+=u,T+=y}q+=v,T+=p}q+=f,T+=m}q+=l,T+=h}}Uz.exports=FNr});var Lz=c((kce,Pz)=>{"use strict";function RNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(S=r.shape,T=r.strides,j=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],x=S[2],E=S[1],q=S[0],s=T[5],u=T[4]-w*T[5],v=T[3]-A*T[4],f=T[2]-_*T[3],l=T[1]-x*T[2],d=T[0]-E*T[1],y=j[5],p=j[4]-w*j[5],m=j[3]-A*j[4],h=j[2]-_*j[3],g=j[1]-x*j[2],b=j[0]-E*j[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],q=S[5],s=T[0],u=T[1]-w*T[0],v=T[2]-A*T[1],f=T[3]-_*T[2],l=T[4]-x*T[3],d=T[5]-E*T[4],y=j[0],p=j[1]-w*j[0],m=j[2]-A*j[1],h=j[3]-_*j[2],g=j[4]-x*j[3],b=j[5]-E*j[4]),O=r.offset,I=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)n(o,I,a(i(t,O))),O+=s,I+=y;O+=u,I+=p}O+=v,I+=m}O+=f,I+=h}O+=l,I+=g}O+=d,I+=b}}Pz.exports=RNr});var Gz=c((Bce,Mz)=>{"use strict";function zNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C;for(A=r.shape,I=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],x=A[5],E=A[4],q=A[3],T=A[2],j=A[1],O=A[0],s=I[6],u=I[5]-_*I[6],v=I[4]-x*I[5],f=I[3]-E*I[4],l=I[2]-q*I[3],d=I[1]-T*I[2],y=I[0]-j*I[1],p=D[6],m=D[5]-_*D[6],h=D[4]-x*D[5],g=D[3]-E*D[4],b=D[2]-q*D[3],S=D[1]-T*D[2],w=D[0]-j*D[1]):(_=A[0],x=A[1],E=A[2],q=A[3],T=A[4],j=A[5],O=A[6],s=I[0],u=I[1]-_*I[0],v=I[2]-x*I[1],f=I[3]-E*I[2],l=I[4]-q*I[3],d=I[5]-T*I[4],y=I[6]-j*I[5],p=D[0],m=D[1]-_*D[0],h=D[2]-x*D[1],g=D[3]-E*D[2],b=D[4]-q*D[3],S=D[5]-T*D[4],w=D[6]-j*D[5]),k=r.offset,N=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++)n(o,N,a(i(t,k))),k+=s,N+=p;k+=u,N+=m}k+=v,N+=h}k+=f,N+=g}k+=l,N+=b}k+=d,N+=S}k+=y,N+=w}}Mz.exports=zNr});var $z=c((Fce,Yz)=>{"use strict";function VNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G;for(x=r.shape,N=r.strides,F=e.strides,r.order==="row-major"?(E=x[7],q=x[6],T=x[5],j=x[4],O=x[3],I=x[2],D=x[1],k=x[0],s=N[7],u=N[6]-E*N[7],v=N[5]-q*N[6],f=N[4]-T*N[5],l=N[3]-j*N[4],d=N[2]-O*N[3],y=N[1]-I*N[2],p=N[0]-D*N[1],m=F[7],h=F[6]-E*F[7],g=F[5]-q*F[6],b=F[4]-T*F[5],S=F[3]-j*F[4],w=F[2]-O*F[3],A=F[1]-I*F[2],_=F[0]-D*F[1]):(E=x[0],q=x[1],T=x[2],j=x[3],O=x[4],I=x[5],D=x[6],k=x[7],s=N[0],u=N[1]-E*N[0],v=N[2]-q*N[1],f=N[3]-T*N[2],l=N[4]-j*N[3],d=N[5]-O*N[4],y=N[6]-I*N[5],p=N[7]-D*N[6],m=F[0],h=F[1]-E*F[0],g=F[2]-q*F[1],b=F[3]-T*F[2],S=F[4]-j*F[3],w=F[5]-O*F[4],A=F[6]-I*F[5],_=F[7]-D*F[6]),R=r.offset,B=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++)n(o,B,a(i(t,R))),R+=s,B+=m;R+=u,B+=h}R+=v,B+=g}R+=f,B+=b}R+=l,B+=S}R+=d,B+=w}R+=y,B+=A}R+=p,B+=_}}Yz.exports=VNr});var Jz=c((Rce,Wz)=>{"use strict";function UNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J;for(q=r.shape,B=r.strides,z=e.strides,r.order==="row-major"?(T=q[8],j=q[7],O=q[6],I=q[5],D=q[4],k=q[3],N=q[2],F=q[1],R=q[0],s=B[8],u=B[7]-T*B[8],v=B[6]-j*B[7],f=B[5]-O*B[6],l=B[4]-I*B[5],d=B[3]-D*B[4],y=B[2]-k*B[3],p=B[1]-N*B[2],m=B[0]-F*B[1],h=z[8],g=z[7]-T*z[8],b=z[6]-j*z[7],S=z[5]-O*z[6],w=z[4]-I*z[5],A=z[3]-D*z[4],_=z[2]-k*z[3],x=z[1]-N*z[2],E=z[0]-F*z[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],R=q[8],s=B[0],u=B[1]-T*B[0],v=B[2]-j*B[1],f=B[3]-O*B[2],l=B[4]-I*B[3],d=B[5]-D*B[4],y=B[6]-k*B[5],p=B[7]-N*B[6],m=B[8]-F*B[7],h=z[0],g=z[1]-T*z[0],b=z[2]-j*z[1],S=z[3]-O*z[2],w=z[4]-I*z[3],A=z[5]-D*z[4],_=z[6]-k*z[5],x=z[7]-N*z[6],E=z[8]-F*z[7]),V=r.offset,U=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++)n(o,U,a(i(t,V))),V+=s,U+=h;V+=u,U+=g}V+=v,U+=b}V+=f,U+=S}V+=l,U+=w}V+=d,U+=A}V+=y,U+=_}V+=p,U+=x}V+=m,U+=E}}Wz.exports=UNr});var Kz=c((zce,Xz)=>{"use strict";function CNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q;for(j=r.shape,U=r.strides,C=e.strides,r.order==="row-major"?(O=j[9],I=j[8],D=j[7],k=j[6],N=j[5],F=j[4],R=j[3],B=j[2],z=j[1],V=j[0],s=U[9],u=U[8]-O*U[9],v=U[7]-I*U[8],f=U[6]-D*U[7],l=U[5]-k*U[6],d=U[4]-N*U[5],y=U[3]-F*U[4],p=U[2]-R*U[3],m=U[1]-B*U[2],h=U[0]-z*U[1],g=C[9],b=C[8]-O*C[9],S=C[7]-I*C[8],w=C[6]-D*C[7],A=C[5]-k*C[6],_=C[4]-N*C[5],x=C[3]-F*C[4],E=C[2]-R*C[3],q=C[1]-B*C[2],T=C[0]-z*C[1]):(O=j[0],I=j[1],D=j[2],k=j[3],N=j[4],F=j[5],R=j[6],B=j[7],z=j[8],V=j[9],s=U[0],u=U[1]-O*U[0],v=U[2]-I*U[1],f=U[3]-D*U[2],l=U[4]-k*U[3],d=U[5]-N*U[4],y=U[6]-F*U[5],p=U[7]-R*U[6],m=U[8]-B*U[7],h=U[9]-z*U[8],g=C[0],b=C[1]-O*C[0],S=C[2]-I*C[1],w=C[3]-D*C[2],A=C[4]-k*C[3],_=C[5]-N*C[4],x=C[6]-F*C[5],E=C[7]-R*C[6],q=C[8]-B*C[7],T=C[9]-z*C[8]),P=r.offset,L=e.offset,t=r.data,o=e.data,i=r.accessors[0],n=e.accessors[1],Q=0;Q<V;Q++){for(H=0;H<z;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++)n(o,L,a(i(t,P))),P+=s,L+=g;P+=u,L+=b}P+=v,L+=S}P+=f,L+=w}P+=l,L+=A}P+=d,L+=_}P+=y,L+=x}P+=p,L+=E}P+=m,L+=q}P+=h,L+=T}}Xz.exports=CNr});var rV=c((Vce,Qz)=>{"use strict";var PNr=Jr(),Hz=na(),Zz="throw";function LNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(f=r.shape,s=PNr(f),t=r.data,o=e.data,l=r.strides,d=e.strides,y=r.offset,p=e.offset,i=r.order,n=e.order,u=r.accessors[0],v=e.accessors[1],g=0;g<s;g++)m=Hz(f,l,y,i,g,Zz),h=Hz(f,d,p,n,g,Zz),v(o,h,a(u(t,m)))}Qz.exports=LNr});var aV=c((Uce,eV)=>{"use strict";function MNr(r,e,a){e.data[e.offset]=a(r.data[r.offset])}eV.exports=MNr});var iV=c((Cce,tV)=>{"use strict";function GNr(r,e,a){var t,o,i,n,s,u,v,f;for(s=r.shape[0],i=r.strides[0],n=e.strides[0],u=r.offset,v=e.offset,t=r.data,o=e.data,f=0;f<s;f++)o[v]=a(t[u]),u+=i,v+=n}tV.exports=GNr});var nV=c((Pce,oV)=>{"use strict";function YNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;for(v=r.shape,d=r.strides,y=e.strides,r.order==="row-major"?(f=v[1],l=v[0],i=d[1],n=d[0]-f*d[1],s=y[1],u=y[0]-f*y[1]):(f=v[0],l=v[1],i=d[0],n=d[1]-f*d[0],s=y[0],u=y[1]-f*y[0]),p=r.offset,m=e.offset,t=r.data,o=e.data,g=0;g<l;g++){for(h=0;h<f;h++)o[m]=a(t[p]),p+=i,m+=s;p+=n,m+=u}}oV.exports=YNr});var uV=c((Lce,sV)=>{"use strict";function $Nr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A;for(l=r.shape,m=r.strides,h=e.strides,r.order==="row-major"?(d=l[2],y=l[1],p=l[0],i=m[2],n=m[1]-d*m[2],s=m[0]-y*m[1],u=h[2],v=h[1]-d*h[2],f=h[0]-y*h[1]):(d=l[0],y=l[1],p=l[2],i=m[0],n=m[1]-d*m[0],s=m[2]-y*m[1],u=h[0],v=h[1]-d*h[0],f=h[2]-y*h[1]),g=r.offset,b=e.offset,t=r.data,o=e.data,A=0;A<p;A++){for(w=0;w<y;w++){for(S=0;S<d;S++)o[b]=a(t[g]),g+=i,b+=u;g+=n,b+=v}g+=s,b+=f}}sV.exports=$Nr});var fV=c((Mce,vV)=>{"use strict";function WNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(y=r.shape,b=r.strides,S=e.strides,r.order==="row-major"?(p=y[3],m=y[2],h=y[1],g=y[0],i=b[3],n=b[2]-p*b[3],s=b[1]-m*b[2],u=b[0]-h*b[1],v=S[3],f=S[2]-p*S[3],l=S[1]-m*S[2],d=S[0]-h*S[1]):(p=y[0],m=y[1],h=y[2],g=y[3],i=b[0],n=b[1]-p*b[0],s=b[2]-m*b[1],u=b[3]-h*b[2],v=S[0],f=S[1]-p*S[0],l=S[2]-m*S[1],d=S[3]-h*S[2]),w=r.offset,A=e.offset,t=r.data,o=e.data,q=0;q<g;q++){for(E=0;E<h;E++){for(x=0;x<m;x++){for(_=0;_<p;_++)o[A]=a(t[w]),w+=i,A+=v;w+=n,A+=f}w+=s,A+=l}w+=u,A+=d}}vV.exports=WNr});var cV=c((Gce,lV)=>{"use strict";function JNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(m=r.shape,A=r.strides,_=e.strides,r.order==="row-major"?(h=m[4],g=m[3],b=m[2],S=m[1],w=m[0],i=A[4],n=A[3]-h*A[4],s=A[2]-g*A[3],u=A[1]-b*A[2],v=A[0]-S*A[1],f=_[4],l=_[3]-h*_[4],d=_[2]-g*_[3],y=_[1]-b*_[2],p=_[0]-S*_[1]):(h=m[0],g=m[1],b=m[2],S=m[3],w=m[4],i=A[0],n=A[1]-h*A[0],s=A[2]-g*A[1],u=A[3]-b*A[2],v=A[4]-S*A[3],f=_[0],l=_[1]-h*_[0],d=_[2]-g*_[1],y=_[3]-b*_[2],p=_[4]-S*_[3]),x=r.offset,E=e.offset,t=r.data,o=e.data,I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++){for(T=0;T<g;T++){for(q=0;q<h;q++)o[E]=a(t[x]),x+=i,E+=f;x+=n,E+=l}x+=s,E+=d}x+=u,E+=y}x+=v,E+=p}}lV.exports=JNr});var pV=c((Yce,dV)=>{"use strict";function XNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(g=r.shape,E=r.strides,q=e.strides,r.order==="row-major"?(b=g[5],S=g[4],w=g[3],A=g[2],_=g[1],x=g[0],i=E[5],n=E[4]-b*E[5],s=E[3]-S*E[4],u=E[2]-w*E[3],v=E[1]-A*E[2],f=E[0]-_*E[1],l=q[5],d=q[4]-b*q[5],y=q[3]-S*q[4],p=q[2]-w*q[3],m=q[1]-A*q[2],h=q[0]-_*q[1]):(b=g[0],S=g[1],w=g[2],A=g[3],_=g[4],x=g[5],i=E[0],n=E[1]-b*E[0],s=E[2]-S*E[1],u=E[3]-w*E[2],v=E[4]-A*E[3],f=E[5]-_*E[4],l=q[0],d=q[1]-b*q[0],y=q[2]-S*q[1],p=q[3]-w*q[2],m=q[4]-A*q[3],h=q[5]-_*q[4]),T=r.offset,j=e.offset,t=r.data,o=e.data,F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++){for(I=0;I<S;I++){for(O=0;O<b;O++)o[j]=a(t[T]),T+=i,j+=l;T+=n,j+=d}T+=s,j+=y}T+=u,j+=p}T+=v,j+=m}T+=f,j+=h}}dV.exports=XNr});var mV=c(($ce,yV)=>{"use strict";function KNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V;for(S=r.shape,j=r.strides,O=e.strides,r.order==="row-major"?(w=S[6],A=S[5],_=S[4],x=S[3],E=S[2],q=S[1],T=S[0],i=j[6],n=j[5]-w*j[6],s=j[4]-A*j[5],u=j[3]-_*j[4],v=j[2]-x*j[3],f=j[1]-E*j[2],l=j[0]-q*j[1],d=O[6],y=O[5]-w*O[6],p=O[4]-A*O[5],m=O[3]-_*O[4],h=O[2]-x*O[3],g=O[1]-E*O[2],b=O[0]-q*O[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],q=S[5],T=S[6],i=j[0],n=j[1]-w*j[0],s=j[2]-A*j[1],u=j[3]-_*j[2],v=j[4]-x*j[3],f=j[5]-E*j[4],l=j[6]-q*j[5],d=O[0],y=O[1]-w*O[0],p=O[2]-A*O[1],m=O[3]-_*O[2],h=O[4]-x*O[3],g=O[5]-E*O[4],b=O[6]-q*O[5]),I=r.offset,D=e.offset,t=r.data,o=e.data,V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++){for(N=0;N<A;N++){for(k=0;k<w;k++)o[D]=a(t[I]),I+=i,D+=d;I+=n,D+=y}I+=s,D+=p}I+=u,D+=m}I+=v,D+=h}I+=f,D+=g}I+=l,D+=b}}yV.exports=KNr});var gV=c((Wce,hV)=>{"use strict";function HNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L;for(A=r.shape,D=r.strides,k=e.strides,r.order==="row-major"?(_=A[7],x=A[6],E=A[5],q=A[4],T=A[3],j=A[2],O=A[1],I=A[0],i=D[7],n=D[6]-_*D[7],s=D[5]-x*D[6],u=D[4]-E*D[5],v=D[3]-q*D[4],f=D[2]-T*D[3],l=D[1]-j*D[2],d=D[0]-O*D[1],y=k[7],p=k[6]-_*k[7],m=k[5]-x*k[6],h=k[4]-E*k[5],g=k[3]-q*k[4],b=k[2]-T*k[3],S=k[1]-j*k[2],w=k[0]-O*k[1]):(_=A[0],x=A[1],E=A[2],q=A[3],T=A[4],j=A[5],O=A[6],I=A[7],i=D[0],n=D[1]-_*D[0],s=D[2]-x*D[1],u=D[3]-E*D[2],v=D[4]-q*D[3],f=D[5]-T*D[4],l=D[6]-j*D[5],d=D[7]-O*D[6],y=k[0],p=k[1]-_*k[0],m=k[2]-x*k[1],h=k[3]-E*k[2],g=k[4]-q*k[3],b=k[5]-T*k[4],S=k[6]-j*k[5],w=k[7]-O*k[6]),N=r.offset,F=e.offset,t=r.data,o=e.data,L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++){for(B=0;B<x;B++){for(R=0;R<_;R++)o[F]=a(t[N]),N+=i,F+=y;N+=n,F+=p}N+=s,F+=m}N+=u,F+=h}N+=v,F+=g}N+=f,F+=b}N+=l,F+=S}N+=d,F+=w}}hV.exports=HNr});var xV=c((Jce,bV)=>{"use strict";function ZNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(x=r.shape,F=r.strides,R=e.strides,r.order==="row-major"?(E=x[8],q=x[7],T=x[6],j=x[5],O=x[4],I=x[3],D=x[2],k=x[1],N=x[0],i=F[8],n=F[7]-E*F[8],s=F[6]-q*F[7],u=F[5]-T*F[6],v=F[4]-j*F[5],f=F[3]-O*F[4],l=F[2]-I*F[3],d=F[1]-D*F[2],y=F[0]-k*F[1],p=R[8],m=R[7]-E*R[8],h=R[6]-q*R[7],g=R[5]-T*R[6],b=R[4]-j*R[5],S=R[3]-O*R[4],w=R[2]-I*R[3],A=R[1]-D*R[2],_=R[0]-k*R[1]):(E=x[0],q=x[1],T=x[2],j=x[3],O=x[4],I=x[5],D=x[6],k=x[7],N=x[8],i=F[0],n=F[1]-E*F[0],s=F[2]-q*F[1],u=F[3]-T*F[2],v=F[4]-j*F[3],f=F[5]-O*F[4],l=F[6]-I*F[5],d=F[7]-D*F[6],y=F[8]-k*F[7],p=R[0],m=R[1]-E*R[0],h=R[2]-q*R[1],g=R[3]-T*R[2],b=R[4]-j*R[3],S=R[5]-O*R[4],w=R[6]-I*R[5],A=R[7]-D*R[6],_=R[8]-k*R[7]),B=r.offset,z=e.offset,t=r.data,o=e.data,Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++){for(U=0;U<q;U++){for(V=0;V<E;V++)o[z]=a(t[B]),B+=i,z+=p;B+=n,z+=m}B+=s,z+=h}B+=u,z+=g}B+=v,z+=b}B+=f,z+=S}B+=l,z+=w}B+=d,z+=A}B+=y,z+=_}}bV.exports=ZNr});var wV=c((Xce,qV)=>{"use strict";function QNr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K;for(q=r.shape,z=r.strides,V=e.strides,r.order==="row-major"?(T=q[9],j=q[8],O=q[7],I=q[6],D=q[5],k=q[4],N=q[3],F=q[2],R=q[1],B=q[0],i=z[9],n=z[8]-T*z[9],s=z[7]-j*z[8],u=z[6]-O*z[7],v=z[5]-I*z[6],f=z[4]-D*z[5],l=z[3]-k*z[4],d=z[2]-N*z[3],y=z[1]-F*z[2],p=z[0]-R*z[1],m=V[9],h=V[8]-T*V[9],g=V[7]-j*V[8],b=V[6]-O*V[7],S=V[5]-I*V[6],w=V[4]-D*V[5],A=V[3]-k*V[4],_=V[2]-N*V[3],x=V[1]-F*V[2],E=V[0]-R*V[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],R=q[8],B=q[9],i=z[0],n=z[1]-T*z[0],s=z[2]-j*z[1],u=z[3]-O*z[2],v=z[4]-I*z[3],f=z[5]-D*z[4],l=z[6]-k*z[5],d=z[7]-N*z[6],y=z[8]-F*z[7],p=z[9]-R*z[8],m=V[0],h=V[1]-T*V[0],g=V[2]-j*V[1],b=V[3]-O*V[2],S=V[4]-I*V[3],w=V[5]-D*V[4],A=V[6]-k*V[5],_=V[7]-N*V[6],x=V[8]-F*V[7],E=V[9]-R*V[8]),U=r.offset,C=e.offset,t=r.data,o=e.data,K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++){for(L=0;L<j;L++){for(P=0;P<T;P++)o[C]=a(t[U]),U+=i,C+=m;U+=n,C+=h}U+=s,C+=g}U+=u,C+=b}U+=v,C+=S}U+=f,C+=w}U+=l,C+=A}U+=d,C+=_}U+=y,C+=x}U+=p,C+=E}}qV.exports=QNr});var _V=c((Kce,AV)=>{"use strict";var rDr=Jr(),SV=na(),EV="throw";function eDr(r,e,a){var t,o,i,n,s,u,v,f,l,d,y,p,m;for(u=r.shape,s=rDr(u),t=r.data,o=e.data,v=r.strides,f=e.strides,l=r.offset,d=e.offset,i=r.order,n=e.order,m=0;m<s;m++)y=SV(u,v,l,i,m,EV),p=SV(u,f,d,n,m,EV),o[p]=a(t[y])}AV.exports=eDr});var DV=c((Hce,NV)=>{"use strict";var TV=Ea(),jV=at(),IV=ei(),aDr=JR(),tDr=KR(),iDr=ZR(),oDr=rz(),nDr=az(),sDr=iz(),uDr=nz(),vDr=uz(),fDr=fz(),lDr=cz(),cDr=pz(),dDr=mz(),pDr=gz(),yDr=xz(),mDr=wz(),hDr=Ez(),gDr=_z(),bDr=jz(),xDr=Oz(),qDr=Dz(),wDr=Bz(),SDr=Rz(),EDr=Vz(),ADr=Cz(),_Dr=Lz(),TDr=Gz(),jDr=$z(),IDr=Jz(),ODr=Kz(),NDr=rV(),DDr=aV(),kDr=iV(),BDr=nV(),FDr=uV(),RDr=fV(),zDr=cV(),VDr=pV(),UDr=mV(),CDr=gV(),PDr=xV(),LDr=wV(),MDr=_V(),Ti=[DDr,kDr,BDr,FDr,RDr,zDr,VDr,UDr,CDr,PDr,LDr],Do=[xDr,qDr,wDr,SDr,EDr,ADr,_Dr,TDr,jDr,IDr,ODr],GDr=[lDr,cDr,dDr,pDr,yDr,mDr,hDr,gDr,bDr],YDr=[aDr,tDr,iDr,oDr,nDr,sDr,uDr,vDr,fDr],OV=Ti.length-1;function $Dr(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b;if(m=IV(r[0]),h=IV(r[1]),i=m.shape,n=h.shape,a=i.length,a!==n.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+a+". ndims(y) == "+n.length+".");if(a===0)return m.accessorProtocol||h.accessorProtocol?Do[a](m,h,e):Ti[a](m,h,e);for(v=1,p=0,b=0;b<a;b++){if(g=i[b],g!==n[b])throw new Error("invalid arguments. Arrays must have the same shape.");v*=g,g===1&&(p+=1)}if(v!==0){if(a===1)return m.accessorProtocol||h.accessorProtocol?Do[a](m,h,e):Ti[a](m,h,e);if(f=m.strides,l=h.strides,p===a-1){for(b=0;b<a&&i[b]===1;b++);return m.shape=[i[b]],h.shape=m.shape,m.strides=[f[b]],h.strides=[l[b]],m.accessorProtocol||h.accessorProtocol?Do[1](m,h,e):Ti[1](m,h,e)}if(s=TV(f),u=TV(l),s!==0&&u!==0&&s===u){if(t=jV(i,f,m.offset),o=jV(n,l,h.offset),v===t[1]-t[0]+1&&v===o[1]-o[0]+1)return s===1?d=t[0]:d=t[1],u===1?y=o[0]:y=o[1],m.shape=[v],h.shape=m.shape,m.strides=[s],h.strides=[u],m.offset=d,h.offset=y,m.accessorProtocol||h.accessorProtocol?Do[1](m,h,e):Ti[1](m,h,e);if(a<=OV)return m.accessorProtocol||h.accessorProtocol?Do[a](m,h,e):Ti[a](m,h,e)}if(a<=OV)return m.accessorProtocol||h.accessorProtocol?YDr[a-2](m,h,e):GDr[a-2](m,h,e);if(m.accessorProtocol||h.accessorProtocol)return NDr(m,h,e);MDr(m,h,e)}}NV.exports=$Dr});var BV=c((Zce,kV)=>{"use strict";var WDr=DV();kV.exports=WDr});var RV=c((Qce,FV)=>{"use strict";var JDr=zr(),XDr=Rr();function KDr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(I=JDr(r.shape,r.strides,e.strides),h=I.sh,S=I.sx,w=I.sy,i=XDr(r.dtype,e.dtype),A=r.offset,_=e.offset,n=r.data,s=e.data,f=S[0],d=w[0],u=r.accessors[0],v=e.accessors[1],k=0,O=h[1];O>0;)for(O<i?(b=O,O=0):(b=i,O-=i),p=A+O*S[1],m=_+O*w[1],j=h[0];j>0;)for(j<i?(g=j,j=0):(g=i,j-=i),x=p+j*S[0],E=m+j*w[0],l=S[1]-g*S[0],y=w[1]-g*w[0],T=0;T<b;T++){for(q=0;q<g;q++)D=t.call(o,u(n,x),k,[x,E],[r,e]),D!==void 0&&v(s,E,a(D)),x+=f,E+=d,k+=1;x+=l,E+=y}}FV.exports=KDr});var VV=c((rde,zV)=>{"use strict";var HDr=zr(),ZDr=Rr();function QDr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(z=HDr(r.shape,r.strides,e.strides),w=z.sh,E=z.sx,q=z.sy,i=ZDr(r.dtype,e.dtype),T=r.offset,j=e.offset,n=r.data,s=e.data,f=E[0],y=q[0],u=r.accessors[0],v=e.accessors[1],U=0,B=w[2];B>0;)for(B<i?(x=B,B=0):(x=i,B-=i),g=T+B*E[2],S=j+B*q[2],R=w[1];R>0;)for(R<i?(_=R,R=0):(_=i,R-=i),d=E[2]-_*E[1],m=q[2]-_*q[1],h=g+R*E[1],b=S+R*q[1],F=w[0];F>0;)for(F<i?(A=F,F=0):(A=i,F-=i),O=h+F*E[0],I=b+F*q[0],l=E[1]-A*E[0],p=q[1]-A*q[0],N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++)V=t.call(o,u(n,O),U,[O,I],[r,e]),V!==void 0&&v(s,I,a(V)),O+=f,I+=y,U+=1;O+=l,I+=p}O+=d,I+=m}}zV.exports=QDr});var CV=c((ede,UV)=>{"use strict";var rkr=zr(),ekr=Rr();function akr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(G=rkr(r.shape,r.strides,e.strides),E=G.sh,I=G.sx,D=G.sy,i=ekr(r.dtype,e.dtype),k=r.offset,N=e.offset,n=r.data,s=e.data,f=I[0],p=D[0],u=r.accessors[0],v=e.accessors[1],Y=0,M=E[3];M>0;)for(M<i?(O=M,M=0):(O=i,M-=i),w=k+M*I[3],x=N+M*D[3],L=E[2];L>0;)for(L<i?(j=L,L=0):(j=i,L-=i),y=I[3]-j*I[2],g=D[3]-j*D[2],S=w+L*I[2],_=x+L*D[2],P=E[1];P>0;)for(P<i?(T=P,P=0):(T=i,P-=i),d=I[2]-T*I[1],h=D[2]-T*D[1],b=S+P*I[1],A=_+P*D[1],C=E[0];C>0;)for(C<i?(q=C,C=0):(q=i,C-=i),F=b+C*I[0],R=A+C*D[0],l=I[1]-q*I[0],m=D[1]-q*D[0],U=0;U<O;U++){for(V=0;V<j;V++){for(z=0;z<T;z++){for(B=0;B<q;B++)$=t.call(o,u(n,F),Y,[F,R],[r,e]),$!==void 0&&v(s,R,a($)),F+=f,R+=p,Y+=1;F+=l,R+=m}F+=d,R+=h}F+=y,R+=g}}UV.exports=akr});var LV=c((ade,PV)=>{"use strict";var tkr=zr(),ikr=Rr();function okr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z;for(H=tkr(r.shape,r.strides,e.strides),O=H.sh,R=H.sx,B=H.sy,i=ikr(r.dtype,e.dtype),z=r.offset,V=e.offset,n=r.data,s=e.data,f=R[0],m=B[0],u=r.accessors[0],v=e.accessors[1],Z=0,K=O[4];K>0;)for(K<i?(F=K,K=0):(F=i,K-=i),x=z+K*R[4],j=V+K*B[4],X=O[3];X>0;)for(X<i?(N=X,X=0):(N=i,X-=i),p=R[4]-N*R[3],S=B[4]-N*B[3],_=x+X*R[3],T=j+X*B[3],J=O[2];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),y=R[3]-k*R[2],b=B[3]-k*B[2],A=_+J*R[2],q=T+J*B[2],W=O[1];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),d=R[2]-D*R[1],g=B[2]-D*B[1],w=A+W*R[1],E=q+W*B[1],Y=O[0];Y>0;)for(Y<i?(I=Y,Y=0):(I=i,Y-=i),U=w+Y*R[0],C=E+Y*B[0],l=R[1]-I*R[0],h=B[1]-I*B[0],$=0;$<F;$++){for(G=0;G<N;G++){for(M=0;M<k;M++){for(L=0;L<D;L++){for(P=0;P<I;P++)Q=t.call(o,u(n,U),Z,[U,C],[r,e]),Q!==void 0&&v(s,C,a(Q)),U+=f,C+=m,Z+=1;U+=l,C+=h}U+=d,C+=g}U+=y,C+=b}U+=p,C+=S}}PV.exports=okr});var GV=c((tde,MV)=>{"use strict";var nkr=zr(),skr=Rr();function ukr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr;for(tr=nkr(r.shape,r.strides,e.strides),N=tr.sh,C=tr.sx,P=tr.sy,i=skr(r.dtype,e.dtype),L=r.offset,M=e.offset,n=r.data,s=e.data,f=C[0],h=P[0],u=r.accessors[0],v=e.accessors[1],nr=0,ir=N[5];ir>0;)for(ir<i?(U=ir,ir=0):(U=i,ir-=i),T=L+ir*C[5],k=M+ir*P[5],er=N[4];er>0;)for(er<i?(V=er,er=0):(V=i,er-=i),m=C[5]-V*C[4],A=P[5]-V*P[4],q=T+er*C[4],D=k+er*P[4],ar=N[3];ar>0;)for(ar<i?(z=ar,ar=0):(z=i,ar-=i),p=C[4]-z*C[3],w=P[4]-z*P[3],E=q+ar*C[3],I=D+ar*P[3],rr=N[2];rr>0;)for(rr<i?(B=rr,rr=0):(B=i,rr-=i),y=C[3]-B*C[2],S=P[3]-B*P[2],x=E+rr*C[2],O=I+rr*P[2],Z=N[1];Z>0;)for(Z<i?(R=Z,Z=0):(R=i,Z-=i),d=C[2]-R*C[1],b=P[2]-R*P[1],_=x+Z*C[1],j=O+Z*P[1],Q=N[0];Q>0;)for(Q<i?(F=Q,Q=0):(F=i,Q-=i),G=_+Q*C[0],$=j+Q*P[0],l=C[1]-F*C[0],g=P[1]-F*P[0],H=0;H<U;H++){for(K=0;K<V;K++){for(X=0;X<z;X++){for(J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++)or=t.call(o,u(n,G),nr,[G,$],[r,e]),or!==void 0&&v(s,$,a(or)),G+=f,$+=h,nr+=1;G+=l,$+=g}G+=d,$+=b}G+=y,$+=S}G+=p,$+=w}G+=m,$+=A}}MV.exports=ukr});var $V=c((ide,YV)=>{"use strict";var vkr=zr(),fkr=Rr();function lkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr;for(fr=vkr(r.shape,r.strides,e.strides),z=fr.sh,$=fr.sx,Y=fr.sy,i=fkr(r.dtype,e.dtype),W=r.offset,J=e.offset,n=r.data,s=e.data,f=$[0],g=Y[0],u=r.accessors[0],v=e.accessors[1],dr=0,lr=z[6];lr>0;)for(lr<i?(G=lr,lr=0):(G=i,lr-=i),I=W+lr*$[6],B=J+lr*Y[6],vr=z[5];vr>0;)for(vr<i?(M=vr,vr=0):(M=i,vr-=i),h=$[6]-M*$[5],x=Y[6]-M*Y[5],O=I+vr*$[5],R=B+vr*Y[5],ur=z[4];ur>0;)for(ur<i?(L=ur,ur=0):(L=i,ur-=i),m=$[5]-L*$[4],_=Y[5]-L*Y[4],j=O+ur*$[4],F=R+ur*Y[4],sr=z[3];sr>0;)for(sr<i?(P=sr,sr=0):(P=i,sr-=i),p=$[4]-P*$[3],A=Y[4]-P*Y[3],T=j+sr*$[3],N=F+sr*Y[3],nr=z[2];nr>0;)for(nr<i?(C=nr,nr=0):(C=i,nr-=i),y=$[3]-C*$[2],w=Y[3]-C*Y[2],q=T+nr*$[2],k=N+nr*Y[2],or=z[1];or>0;)for(or<i?(U=or,or=0):(U=i,or-=i),d=$[2]-U*$[1],S=Y[2]-U*Y[1],E=q+or*$[1],D=k+or*Y[1],tr=z[0];tr>0;)for(tr<i?(V=tr,tr=0):(V=i,tr-=i),X=E+tr*$[0],K=D+tr*Y[0],l=$[1]-V*$[0],b=Y[1]-V*Y[0],ir=0;ir<G;ir++){for(er=0;er<M;er++){for(ar=0;ar<L;ar++){for(rr=0;rr<P;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++)yr=t.call(o,u(n,X),dr,[X,K],[r,e]),yr!==void 0&&v(s,K,a(yr)),X+=f,K+=g,dr+=1;X+=l,K+=b}X+=d,K+=S}X+=y,K+=w}X+=p,K+=A}X+=m,K+=_}X+=h,K+=x}}YV.exports=lkr});var JV=c((ode,WV)=>{"use strict";var ckr=zr(),dkr=Rr();function pkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr;for(xr=ckr(r.shape,r.strides,e.strides),P=xr.sh,K=xr.sx,H=xr.sy,i=dkr(r.dtype,e.dtype),Q=r.offset,Z=e.offset,n=r.data,s=e.data,f=K[0],b=H[0],u=r.accessors[0],v=e.accessors[1],gr=0,wr=P[7];wr>0;)for(wr<i?(X=wr,wr=0):(X=i,wr-=i),N=Q+wr*K[7],C=Z+wr*H[7],br=P[6];br>0;)for(br<i?(J=br,br=0):(J=i,br-=i),g=K[7]-J*K[6],q=H[7]-J*H[6],k=N+br*K[6],U=C+br*H[6],hr=P[5];hr>0;)for(hr<i?(W=hr,hr=0):(W=i,hr-=i),h=K[6]-W*K[5],E=H[6]-W*H[5],D=k+hr*K[5],V=U+hr*H[5],mr=P[4];mr>0;)for(mr<i?(Y=mr,mr=0):(Y=i,mr-=i),m=K[5]-Y*K[4],x=H[5]-Y*H[4],I=D+mr*K[4],z=V+mr*H[4],dr=P[3];dr>0;)for(dr<i?($=dr,dr=0):($=i,dr-=i),p=K[4]-$*K[3],_=H[4]-$*H[3],O=I+dr*K[3],B=z+dr*H[3],yr=P[2];yr>0;)for(yr<i?(G=yr,yr=0):(G=i,yr-=i),y=K[3]-G*K[2],A=H[3]-G*H[2],j=O+yr*K[2],R=B+yr*H[2],fr=P[1];fr>0;)for(fr<i?(M=fr,fr=0):(M=i,fr-=i),d=K[2]-M*K[1],w=H[2]-M*H[1],T=j+fr*K[1],F=R+fr*H[1],lr=P[0];lr>0;)for(lr<i?(L=lr,lr=0):(L=i,lr-=i),rr=T+lr*K[0],ar=F+lr*H[0],l=K[1]-L*K[0],S=H[1]-L*H[0],vr=0;vr<X;vr++){for(ur=0;ur<J;ur++){for(sr=0;sr<W;sr++){for(nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++)qr=t.call(o,u(n,rr),gr,[rr,ar],[r,e]),qr!==void 0&&v(s,ar,a(qr)),rr+=f,ar+=b,gr+=1;rr+=l,ar+=S}rr+=d,ar+=w}rr+=y,ar+=A}rr+=p,ar+=_}rr+=m,ar+=x}rr+=h,ar+=E}rr+=g,ar+=q}}WV.exports=pkr});var KV=c((nde,XV)=>{"use strict";var ykr=zr(),mkr=Rr();function hkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr;for(Or=ykr(r.shape,r.strides,e.strides),$=Or.sh,ar=Or.sx,er=Or.sy,i=mkr(r.dtype,e.dtype),ir=r.offset,tr=e.offset,n=r.data,s=e.data,f=ar[0],S=er[0],u=r.accessors[0],v=e.accessors[1],Vr=0,jr=$[8];jr>0;)for(jr<i?(rr=jr,jr=0):(rr=i,jr-=i),B=ir+jr*ar[8],G=tr+jr*er[8],Tr=$[7];Tr>0;)for(Tr<i?(Z=Tr,Tr=0):(Z=i,Tr-=i),b=ar[8]-Z*ar[7],j=er[8]-Z*er[7],R=B+Tr*ar[7],M=G+Tr*er[7],_r=$[6];_r>0;)for(_r<i?(Q=_r,_r=0):(Q=i,_r-=i),g=ar[7]-Q*ar[6],T=er[7]-Q*er[6],F=R+_r*ar[6],L=M+_r*er[6],Ar=$[5];Ar>0;)for(Ar<i?(H=Ar,Ar=0):(H=i,Ar-=i),h=ar[6]-H*ar[5],q=er[6]-H*er[5],N=F+Ar*ar[5],P=L+Ar*er[5],gr=$[4];gr>0;)for(gr<i?(K=gr,gr=0):(K=i,gr-=i),m=ar[5]-K*ar[4],E=er[5]-K*er[4],k=N+gr*ar[4],C=P+gr*er[4],qr=$[3];qr>0;)for(qr<i?(X=qr,qr=0):(X=i,qr-=i),p=ar[4]-X*ar[3],x=er[4]-X*er[3],D=k+qr*ar[3],U=C+qr*er[3],xr=$[2];xr>0;)for(xr<i?(J=xr,xr=0):(J=i,xr-=i),y=ar[3]-J*ar[2],_=er[3]-J*er[2],I=D+xr*ar[2],V=U+xr*er[2],wr=$[1];wr>0;)for(wr<i?(W=wr,wr=0):(W=i,wr-=i),d=ar[2]-W*ar[1],A=er[2]-W*er[1],O=I+wr*ar[1],z=V+wr*er[1],br=$[0];br>0;)for(br<i?(Y=br,br=0):(Y=i,br-=i),or=O+br*ar[0],nr=z+br*er[0],l=ar[1]-Y*ar[0],w=er[1]-Y*er[0],hr=0;hr<rr;hr++){for(mr=0;mr<Z;mr++){for(dr=0;dr<Q;dr++){for(yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++)Fr=t.call(o,u(n,or),Vr,[or,nr],[r,e]),Fr!==void 0&&v(s,nr,a(Fr)),or+=f,nr+=S,Vr+=1;or+=l,nr+=w}or+=d,nr+=A}or+=y,nr+=_}or+=p,nr+=x}or+=m,nr+=E}or+=h,nr+=q}or+=g,nr+=T}or+=b,nr+=j}}XV.exports=hkr});var ZV=c((sde,HV)=>{"use strict";var gkr=zr(),bkr=Rr();function xkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr,ie,De,ua,ht,Cs,Ps;for(ht=gkr(r.shape,r.strides,e.strides),X=ht.sh,nr=ht.sx,sr=ht.sy,i=bkr(r.dtype,e.dtype),ur=r.offset,vr=e.offset,n=r.data,s=e.data,f=nr[0],w=sr[0],u=r.accessors[0],v=e.accessors[1],Ps=0,ua=X[9];ua>0;)for(ua<i?(or=ua,ua=0):(or=i,ua-=i),U=ur+ua*nr[9],J=vr+ua*sr[9],De=X[8];De>0;)for(De<i?(tr=De,De=0):(tr=i,De-=i),S=nr[9]-tr*nr[8],I=sr[9]-tr*sr[8],V=U+De*nr[8],W=J+De*sr[8],ie=X[7];ie>0;)for(ie<i?(ir=ie,ie=0):(ir=i,ie-=i),b=nr[8]-ir*nr[7],O=sr[8]-ir*sr[7],z=V+ie*nr[7],Y=W+ie*sr[7],Hr=X[6];Hr>0;)for(Hr<i?(er=Hr,Hr=0):(er=i,Hr-=i),g=nr[7]-er*nr[6],j=sr[7]-er*sr[6],B=z+Hr*nr[6],$=Y+Hr*sr[6],Vr=X[5];Vr>0;)for(Vr<i?(ar=Vr,Vr=0):(ar=i,Vr-=i),h=nr[6]-ar*nr[5],T=sr[6]-ar*sr[5],R=B+Vr*nr[5],G=$+Vr*sr[5],Fr=X[4];Fr>0;)for(Fr<i?(rr=Fr,Fr=0):(rr=i,Fr-=i),m=nr[5]-rr*nr[4],q=sr[5]-rr*sr[4],F=R+Fr*nr[4],M=G+Fr*sr[4],Or=X[3];Or>0;)for(Or<i?(Z=Or,Or=0):(Z=i,Or-=i),p=nr[4]-Z*nr[3],E=sr[4]-Z*sr[3],N=F+Or*nr[3],L=M+Or*sr[3],jr=X[2];jr>0;)for(jr<i?(Q=jr,jr=0):(Q=i,jr-=i),y=nr[3]-Q*nr[2],x=sr[3]-Q*sr[2],k=N+jr*nr[2],P=L+jr*sr[2],Tr=X[1];Tr>0;)for(Tr<i?(H=Tr,Tr=0):(H=i,Tr-=i),d=nr[2]-H*nr[1],_=sr[2]-H*sr[1],D=k+Tr*nr[1],C=P+Tr*sr[1],_r=X[0];_r>0;)for(_r<i?(K=_r,_r=0):(K=i,_r-=i),lr=D+_r*nr[0],fr=C+_r*sr[0],l=nr[1]-K*nr[0],A=sr[1]-K*sr[0],Ar=0;Ar<or;Ar++){for(gr=0;gr<tr;gr++){for(qr=0;qr<ir;qr++){for(xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++)Cs=t.call(o,u(n,lr),Ps,[lr,fr],[r,e]),Cs!==void 0&&v(s,fr,a(Cs)),lr+=f,fr+=w,Ps+=1;lr+=l,fr+=A}lr+=d,fr+=_}lr+=y,fr+=x}lr+=p,fr+=E}lr+=m,fr+=q}lr+=h,fr+=T}lr+=g,fr+=j}lr+=b,fr+=O}lr+=S,fr+=I}}HV.exports=xkr});var rU=c((ude,QV)=>{"use strict";var qkr=zr(),wkr=Rr();function Skr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(j=qkr(r.shape,r.strides,e.strides),p=j.sh,g=j.sx,b=j.sy,i=wkr(r.dtype,e.dtype),S=r.offset,w=e.offset,n=r.data,s=e.data,u=g[0],f=b[0],I=0,T=p[1];T>0;)for(T<i?(h=T,T=0):(h=i,T-=i),d=S+T*g[1],y=w+T*b[1],q=p[0];q>0;)for(q<i?(m=q,q=0):(m=i,q-=i),A=d+q*g[0],_=y+q*b[0],v=g[1]-m*g[0],l=b[1]-m*b[0],E=0;E<h;E++){for(x=0;x<m;x++)O=t.call(o,n[A],I,[A,_],[r,e]),O!==void 0&&(s[_]=a(O)),A+=u,_+=f,I+=1;A+=v,_+=l}}QV.exports=Skr});var aU=c((vde,eU)=>{"use strict";var Ekr=zr(),Akr=Rr();function _kr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z;for(R=Ekr(r.shape,r.strides,e.strides),b=R.sh,_=R.sx,x=R.sy,i=Akr(r.dtype,e.dtype),E=r.offset,q=e.offset,n=r.data,s=e.data,u=_[0],l=x[0],z=0,F=b[2];F>0;)for(F<i?(A=F,F=0):(A=i,F-=i),m=E+F*_[2],g=q+F*x[2],N=b[1];N>0;)for(N<i?(w=N,N=0):(w=i,N-=i),f=_[2]-w*_[1],y=x[2]-w*x[1],p=m+N*_[1],h=g+N*x[1],k=b[0];k>0;)for(k<i?(S=k,k=0):(S=i,k-=i),T=p+k*_[0],j=h+k*x[0],v=_[1]-S*_[0],d=x[1]-S*x[0],D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++)B=t.call(o,n[T],z,[T,j],[r,e]),B!==void 0&&(s[j]=a(B)),T+=u,j+=l,z+=1;T+=v,j+=d}T+=f,j+=y}}eU.exports=_kr});var iU=c((fde,tU)=>{"use strict";var Tkr=zr(),jkr=Rr();function Ikr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G;for(L=Tkr(r.shape,r.strides,e.strides),_=L.sh,j=L.sx,O=L.sy,i=jkr(r.dtype,e.dtype),I=r.offset,D=e.offset,n=r.data,s=e.data,u=j[0],d=O[0],G=0,P=_[3];P>0;)for(P<i?(T=P,P=0):(T=i,P-=i),b=I+P*j[3],A=D+P*O[3],C=_[2];C>0;)for(C<i?(q=C,C=0):(q=i,C-=i),l=j[3]-q*j[2],m=O[3]-q*O[2],g=b+C*j[2],w=A+C*O[2],U=_[1];U>0;)for(U<i?(E=U,U=0):(E=i,U-=i),f=j[2]-E*j[1],p=O[2]-E*O[1],h=g+U*j[1],S=w+U*O[1],V=_[0];V>0;)for(V<i?(x=V,V=0):(x=i,V-=i),k=h+V*j[0],N=S+V*O[0],v=j[1]-x*j[0],y=O[1]-x*O[0],z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++)M=t.call(o,n[k],G,[k,N],[r,e]),M!==void 0&&(s[N]=a(M)),k+=u,N+=d,G+=1;k+=v,N+=y}k+=f,N+=p}k+=l,N+=m}}tU.exports=Ikr});var nU=c((lde,oU)=>{"use strict";var Okr=zr(),Nkr=Rr();function Dkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H;for(X=Okr(r.shape,r.strides,e.strides),T=X.sh,N=X.sx,F=X.sy,i=Nkr(r.dtype,e.dtype),R=r.offset,B=e.offset,n=r.data,s=e.data,u=N[0],y=F[0],H=0,J=T[4];J>0;)for(J<i?(k=J,J=0):(k=i,J-=i),A=R+J*N[4],q=B+J*F[4],W=T[3];W>0;)for(W<i?(D=W,W=0):(D=i,W-=i),d=N[4]-D*N[3],g=F[4]-D*F[3],w=A+W*N[3],E=q+W*F[3],Y=T[2];Y>0;)for(Y<i?(I=Y,Y=0):(I=i,Y-=i),l=N[3]-I*N[2],h=F[3]-I*F[2],S=w+Y*N[2],x=E+Y*F[2],$=T[1];$>0;)for($<i?(O=$,$=0):(O=i,$-=i),f=N[2]-O*N[1],m=F[2]-O*F[1],b=S+$*N[1],_=x+$*F[1],G=T[0];G>0;)for(G<i?(j=G,G=0):(j=i,G-=i),z=b+G*N[0],V=_+G*F[0],v=N[1]-j*N[0],p=F[1]-j*F[0],M=0;M<k;M++){for(L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++)K=t.call(o,n[z],H,[z,V],[r,e]),K!==void 0&&(s[V]=a(K)),z+=u,V+=y,H+=1;z+=v,V+=p}z+=f,V+=m}z+=l,V+=h}z+=d,V+=g}}oU.exports=Dkr});var uU=c((cde,sU)=>{"use strict";var kkr=zr(),Bkr=Rr();function Fkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr;for(er=kkr(r.shape,r.strides,e.strides),D=er.sh,V=er.sx,U=er.sy,i=Bkr(r.dtype,e.dtype),C=r.offset,P=e.offset,n=r.data,s=e.data,u=V[0],p=U[0],tr=0,ar=D[5];ar>0;)for(ar<i?(z=ar,ar=0):(z=i,ar-=i),E=C+ar*V[5],I=P+ar*U[5],rr=D[4];rr>0;)for(rr<i?(B=rr,rr=0):(B=i,rr-=i),y=V[5]-B*V[4],S=U[5]-B*U[4],x=E+rr*V[4],O=I+rr*U[4],Z=D[3];Z>0;)for(Z<i?(R=Z,Z=0):(R=i,Z-=i),d=V[4]-R*V[3],b=U[4]-R*U[3],_=x+Z*V[3],j=O+Z*U[3],Q=D[2];Q>0;)for(Q<i?(F=Q,Q=0):(F=i,Q-=i),l=V[3]-F*V[2],g=U[3]-F*U[2],A=_+Q*V[2],T=j+Q*U[2],H=D[1];H>0;)for(H<i?(N=H,H=0):(N=i,H-=i),f=V[2]-N*V[1],h=U[2]-N*U[1],w=A+H*V[1],q=T+H*U[1],K=D[0];K>0;)for(K<i?(k=K,K=0):(k=i,K-=i),L=w+K*V[0],M=q+K*U[0],v=V[1]-k*V[0],m=U[1]-k*U[0],X=0;X<z;X++){for(J=0;J<B;J++){for(W=0;W<R;W++){for(Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++)ir=t.call(o,n[L],tr,[L,M],[r,e]),ir!==void 0&&(s[M]=a(ir)),L+=u,M+=p,tr+=1;L+=v,M+=m}L+=f,M+=h}L+=l,M+=g}L+=d,M+=b}L+=y,M+=S}}sU.exports=Fkr});var fU=c((dde,vU)=>{"use strict";var Rkr=zr(),zkr=Rr();function Vkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr;for(vr=Rkr(r.shape,r.strides,e.strides),R=vr.sh,M=vr.sx,G=vr.sy,i=zkr(r.dtype,e.dtype),$=r.offset,Y=e.offset,n=r.data,s=e.data,u=M[0],m=G[0],fr=0,ur=R[6];ur>0;)for(ur<i?(L=ur,ur=0):(L=i,ur-=i),j=$+ur*M[6],F=Y+ur*G[6],sr=R[5];sr>0;)for(sr<i?(P=sr,sr=0):(P=i,sr-=i),p=M[6]-P*M[5],A=G[6]-P*G[5],T=j+sr*M[5],N=F+sr*G[5],nr=R[4];nr>0;)for(nr<i?(C=nr,nr=0):(C=i,nr-=i),y=M[5]-C*M[4],w=G[5]-C*G[4],q=T+nr*M[4],k=N+nr*G[4],or=R[3];or>0;)for(or<i?(U=or,or=0):(U=i,or-=i),d=M[4]-U*M[3],S=G[4]-U*G[3],E=q+or*M[3],D=k+or*G[3],tr=R[2];tr>0;)for(tr<i?(V=tr,tr=0):(V=i,tr-=i),l=M[3]-V*M[2],b=G[3]-V*G[2],x=E+tr*M[2],I=D+tr*G[2],ir=R[1];ir>0;)for(ir<i?(z=ir,ir=0):(z=i,ir-=i),f=M[2]-z*M[1],g=G[2]-z*G[1],_=x+ir*M[1],O=I+ir*G[1],er=R[0];er>0;)for(er<i?(B=er,er=0):(B=i,er-=i),W=_+er*M[0],J=O+er*G[0],v=M[1]-B*M[0],h=G[1]-B*G[0],ar=0;ar<L;ar++){for(rr=0;rr<P;rr++){for(Z=0;Z<C;Z++){for(Q=0;Q<U;Q++){for(H=0;H<V;H++){for(K=0;K<z;K++){for(X=0;X<B;X++)lr=t.call(o,n[W],fr,[W,J],[r,e]),lr!==void 0&&(s[J]=a(lr)),W+=u,J+=m,fr+=1;W+=v,J+=h}W+=f,J+=g}W+=l,J+=b}W+=d,J+=S}W+=y,J+=w}W+=p,J+=A}}vU.exports=Vkr});var cU=c((pde,lU)=>{"use strict";var Ukr=zr(),Ckr=Rr();function Pkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr;for(br=Ukr(r.shape,r.strides,e.strides),U=br.sh,J=br.sx,X=br.sy,i=Ckr(r.dtype,e.dtype),K=r.offset,H=e.offset,n=r.data,s=e.data,u=J[0],h=X[0],xr=0,hr=U[7];hr>0;)for(hr<i?(W=hr,hr=0):(W=i,hr-=i),D=K+hr*J[7],V=H+hr*X[7],mr=U[6];mr>0;)for(mr<i?(Y=mr,mr=0):(Y=i,mr-=i),m=J[7]-Y*J[6],x=X[7]-Y*X[6],I=D+mr*J[6],z=V+mr*X[6],dr=U[5];dr>0;)for(dr<i?($=dr,dr=0):($=i,dr-=i),p=J[6]-$*J[5],_=X[6]-$*X[5],O=I+dr*J[5],B=z+dr*X[5],yr=U[4];yr>0;)for(yr<i?(G=yr,yr=0):(G=i,yr-=i),y=J[5]-G*J[4],A=X[5]-G*X[4],j=O+yr*J[4],R=B+yr*X[4],fr=U[3];fr>0;)for(fr<i?(M=fr,fr=0):(M=i,fr-=i),d=J[4]-M*J[3],w=X[4]-M*X[3],T=j+fr*J[3],F=R+fr*X[3],lr=U[2];lr>0;)for(lr<i?(L=lr,lr=0):(L=i,lr-=i),l=J[3]-L*J[2],S=X[3]-L*X[2],q=T+lr*J[2],N=F+lr*X[2],vr=U[1];vr>0;)for(vr<i?(P=vr,vr=0):(P=i,vr-=i),f=J[2]-P*J[1],b=X[2]-P*X[1],E=q+vr*J[1],k=N+vr*X[1],ur=U[0];ur>0;)for(ur<i?(C=ur,ur=0):(C=i,ur-=i),Q=E+ur*J[0],Z=k+ur*X[0],v=J[1]-C*J[0],g=X[1]-C*X[0],sr=0;sr<W;sr++){for(nr=0;nr<Y;nr++){for(or=0;or<$;or++){for(tr=0;tr<G;tr++){for(ir=0;ir<M;ir++){for(er=0;er<L;er++){for(ar=0;ar<P;ar++){for(rr=0;rr<C;rr++)wr=t.call(o,n[Q],xr,[Q,Z],[r,e]),wr!==void 0&&(s[Z]=a(wr)),Q+=u,Z+=h,xr+=1;Q+=v,Z+=g}Q+=f,Z+=b}Q+=l,Z+=S}Q+=d,Z+=w}Q+=y,Z+=A}Q+=p,Z+=_}Q+=m,Z+=x}}lU.exports=Pkr});var pU=c((yde,dU)=>{"use strict";var Lkr=zr(),Mkr=Rr();function Gkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or;for(Tr=Lkr(r.shape,r.strides,e.strides),M=Tr.sh,Z=Tr.sx,rr=Tr.sy,i=Mkr(r.dtype,e.dtype),ar=r.offset,er=e.offset,n=r.data,s=e.data,u=Z[0],g=rr[0],Or=0,_r=M[8];_r>0;)for(_r<i?(Q=_r,_r=0):(Q=i,_r-=i),F=ar+_r*Z[8],L=er+_r*rr[8],Ar=M[7];Ar>0;)for(Ar<i?(H=Ar,Ar=0):(H=i,Ar-=i),h=Z[8]-H*Z[7],q=rr[8]-H*rr[7],N=F+Ar*Z[7],P=L+Ar*rr[7],gr=M[6];gr>0;)for(gr<i?(K=gr,gr=0):(K=i,gr-=i),m=Z[7]-K*Z[6],E=rr[7]-K*rr[6],k=N+gr*Z[6],C=P+gr*rr[6],qr=M[5];qr>0;)for(qr<i?(X=qr,qr=0):(X=i,qr-=i),p=Z[6]-X*Z[5],x=rr[6]-X*rr[5],D=k+qr*Z[5],U=C+qr*rr[5],xr=M[4];xr>0;)for(xr<i?(J=xr,xr=0):(J=i,xr-=i),y=Z[5]-J*Z[4],_=rr[5]-J*rr[4],I=D+xr*Z[4],V=U+xr*rr[4],wr=M[3];wr>0;)for(wr<i?(W=wr,wr=0):(W=i,wr-=i),d=Z[4]-W*Z[3],A=rr[4]-W*rr[3],O=I+wr*Z[3],z=V+wr*rr[3],br=M[2];br>0;)for(br<i?(Y=br,br=0):(Y=i,br-=i),l=Z[3]-Y*Z[2],w=rr[3]-Y*rr[2],j=O+br*Z[2],B=z+br*rr[2],hr=M[1];hr>0;)for(hr<i?($=hr,hr=0):($=i,hr-=i),f=Z[2]-$*Z[1],S=rr[2]-$*rr[1],T=j+hr*Z[1],R=B+hr*rr[1],mr=M[0];mr>0;)for(mr<i?(G=mr,mr=0):(G=i,mr-=i),ir=T+mr*Z[0],tr=R+mr*rr[0],v=Z[1]-G*Z[0],b=rr[1]-G*rr[0],dr=0;dr<Q;dr++){for(yr=0;yr<H;yr++){for(fr=0;fr<K;fr++){for(lr=0;lr<X;lr++){for(vr=0;vr<J;vr++){for(ur=0;ur<W;ur++){for(sr=0;sr<Y;sr++){for(nr=0;nr<$;nr++){for(or=0;or<G;or++)jr=t.call(o,n[ir],Or,[ir,tr],[r,e]),jr!==void 0&&(s[tr]=a(jr)),ir+=u,tr+=g,Or+=1;ir+=v,tr+=b}ir+=f,tr+=S}ir+=l,tr+=w}ir+=d,tr+=A}ir+=y,tr+=_}ir+=p,tr+=x}ir+=m,tr+=E}ir+=h,tr+=q}}dU.exports=Gkr});var mU=c((mde,yU)=>{"use strict";var Ykr=zr(),$kr=Rr();function Wkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er,ir,tr,or,nr,sr,ur,vr,lr,fr,yr,dr,mr,hr,br,wr,xr,qr,gr,Ar,_r,Tr,jr,Or,Fr,Vr,Hr,ie,De,ua,ht;for(De=Ykr(r.shape,r.strides,e.strides),W=De.sh,tr=De.sx,or=De.sy,i=$kr(r.dtype,e.dtype),nr=r.offset,sr=e.offset,n=r.data,s=e.data,u=tr[0],b=or[0],ht=0,ie=W[9];ie>0;)for(ie<i?(ir=ie,ie=0):(ir=i,ie-=i),z=nr+ie*tr[9],Y=sr+ie*or[9],Hr=W[8];Hr>0;)for(Hr<i?(er=Hr,Hr=0):(er=i,Hr-=i),g=tr[9]-er*tr[8],j=or[9]-er*or[8],B=z+Hr*tr[8],$=Y+Hr*or[8],Vr=W[7];Vr>0;)for(Vr<i?(ar=Vr,Vr=0):(ar=i,Vr-=i),h=tr[8]-ar*tr[7],T=or[8]-ar*or[7],R=B+Vr*tr[7],G=$+Vr*or[7],Fr=W[6];Fr>0;)for(Fr<i?(rr=Fr,Fr=0):(rr=i,Fr-=i),m=tr[7]-rr*tr[6],q=or[7]-rr*or[6],F=R+Fr*tr[6],M=G+Fr*or[6],Or=W[5];Or>0;)for(Or<i?(Z=Or,Or=0):(Z=i,Or-=i),p=tr[6]-Z*tr[5],E=or[6]-Z*or[5],N=F+Or*tr[5],L=M+Or*or[5],jr=W[4];jr>0;)for(jr<i?(Q=jr,jr=0):(Q=i,jr-=i),y=tr[5]-Q*tr[4],x=or[5]-Q*or[4],k=N+jr*tr[4],P=L+jr*or[4],Tr=W[3];Tr>0;)for(Tr<i?(H=Tr,Tr=0):(H=i,Tr-=i),d=tr[4]-H*tr[3],_=or[4]-H*or[3],D=k+Tr*tr[3],C=P+Tr*or[3],_r=W[2];_r>0;)for(_r<i?(K=_r,_r=0):(K=i,_r-=i),l=tr[3]-K*tr[2],A=or[3]-K*or[2],I=D+_r*tr[2],U=C+_r*or[2],Ar=W[1];Ar>0;)for(Ar<i?(X=Ar,Ar=0):(X=i,Ar-=i),f=tr[2]-X*tr[1],w=or[2]-X*or[1],O=I+Ar*tr[1],V=U+Ar*or[1],gr=W[0];gr>0;)for(gr<i?(J=gr,gr=0):(J=i,gr-=i),ur=O+gr*tr[0],vr=V+gr*or[0],v=tr[1]-J*tr[0],S=or[1]-J*or[0],qr=0;qr<ir;qr++){for(xr=0;xr<er;xr++){for(wr=0;wr<ar;wr++){for(br=0;br<rr;br++){for(hr=0;hr<Z;hr++){for(mr=0;mr<Q;mr++){for(dr=0;dr<H;dr++){for(yr=0;yr<K;yr++){for(fr=0;fr<X;fr++){for(lr=0;lr<J;lr++)ua=t.call(o,n[ur],ht,[ur,vr],[r,e]),ua!==void 0&&(s[vr]=a(ua)),ur+=u,vr+=b,ht+=1;ur+=v,vr+=S}ur+=f,vr+=w}ur+=l,vr+=A}ur+=d,vr+=_}ur+=y,vr+=x}ur+=p,vr+=E}ur+=m,vr+=q}ur+=h,vr+=T}ur+=g,vr+=j}}yU.exports=Wkr});var gU=c((hde,hU)=>{"use strict";function Jkr(r,e,a,t,o){var i=r.offset,n=e.offset,s=t.call(o,r.accessors[0](r.data,i),0,[i,n],[r,e]);s!==void 0&&e.accessors[1](e.data,n,a(s))}hU.exports=Jkr});var xU=c((gde,bU)=>{"use strict";function Xkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h;for(l=r.shape[0],v=r.strides[0],f=e.strides[0],d=r.offset,y=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],h=0,p=0;p<l;p++)m=t.call(o,s(i,d),h,[d,y],[r,e]),m!==void 0&&u(n,y,a(m)),d+=v,y+=f,h+=1}bU.exports=Xkr});var wU=c((bde,qU)=>{"use strict";function Kkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x;for(y=r.shape,h=r.strides,g=e.strides,r.order==="row-major"?(p=y[1],m=y[0],v=h[1],f=h[0]-p*h[1],l=g[1],d=g[0]-p*g[1]):(p=y[0],m=y[1],v=h[0],f=h[1]-p*h[0],l=g[0],d=g[1]-p*g[0]),b=r.offset,S=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],x=0,A=0;A<m;A++){for(w=0;w<p;w++)_=t.call(o,s(i,b),x,[b,S],[r,e]),_!==void 0&&u(n,S,a(_)),b+=v,S+=l,x+=1;b+=f,S+=d}}qU.exports=Kkr});var EU=c((xde,SU)=>{"use strict";function Hkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j;for(m=r.shape,S=r.strides,w=e.strides,r.order==="row-major"?(h=m[2],g=m[1],b=m[0],v=S[2],f=S[1]-h*S[2],l=S[0]-g*S[1],d=w[2],y=w[1]-h*w[2],p=w[0]-g*w[1]):(h=m[0],g=m[1],b=m[2],v=S[0],f=S[1]-h*S[0],l=S[2]-g*S[1],d=w[0],y=w[1]-h*w[0],p=w[2]-g*w[1]),A=r.offset,_=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],j=0,q=0;q<b;q++){for(E=0;E<g;E++){for(x=0;x<h;x++)T=t.call(o,s(i,A),j,[A,_],[r,e]),T!==void 0&&u(n,_,a(T)),A+=v,_+=d,j+=1;A+=f,_+=y}A+=l,_+=p}}SU.exports=Hkr});var _U=c((qde,AU)=>{"use strict";function Zkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k;for(g=r.shape,_=r.strides,x=e.strides,r.order==="row-major"?(b=g[3],S=g[2],w=g[1],A=g[0],v=_[3],f=_[2]-b*_[3],l=_[1]-S*_[2],d=_[0]-w*_[1],y=x[3],p=x[2]-b*x[3],m=x[1]-S*x[2],h=x[0]-w*x[1]):(b=g[0],S=g[1],w=g[2],A=g[3],v=_[0],f=_[1]-b*_[0],l=_[2]-S*_[1],d=_[3]-w*_[2],y=x[0],p=x[1]-b*x[0],m=x[2]-S*x[1],h=x[3]-w*x[2]),E=r.offset,q=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],k=0,I=0;I<A;I++){for(O=0;O<w;O++){for(j=0;j<S;j++){for(T=0;T<b;T++)D=t.call(o,s(i,E),k,[E,q],[r,e]),D!==void 0&&u(n,q,a(D)),E+=v,q+=y,k+=1;E+=f,q+=p}E+=l,q+=m}E+=d,q+=h}}AU.exports=Zkr});var jU=c((wde,TU)=>{"use strict";function Qkr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B;for(S=r.shape,q=r.strides,T=e.strides,r.order==="row-major"?(w=S[4],A=S[3],_=S[2],x=S[1],E=S[0],v=q[4],f=q[3]-w*q[4],l=q[2]-A*q[3],d=q[1]-_*q[2],y=q[0]-x*q[1],p=T[4],m=T[3]-w*T[4],h=T[2]-A*T[3],g=T[1]-_*T[2],b=T[0]-x*T[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],v=q[0],f=q[1]-w*q[0],l=q[2]-A*q[1],d=q[3]-_*q[2],y=q[4]-x*q[3],p=T[0],m=T[1]-w*T[0],h=T[2]-A*T[1],g=T[3]-_*T[2],b=T[4]-x*T[3]),j=r.offset,O=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],B=0,F=0;F<E;F++){for(N=0;N<x;N++){for(k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++)R=t.call(o,s(i,j),B,[j,O],[r,e]),R!==void 0&&u(n,O,a(R)),j+=v,O+=p,B+=1;j+=f,O+=m}j+=l,O+=h}j+=d,O+=g}j+=y,O+=b}}TU.exports=Qkr});var OU=c((Sde,IU)=>{"use strict";function rBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C;for(A=r.shape,O=r.strides,I=e.strides,r.order==="row-major"?(_=A[5],x=A[4],E=A[3],q=A[2],T=A[1],j=A[0],v=O[5],f=O[4]-_*O[5],l=O[3]-x*O[4],d=O[2]-E*O[3],y=O[1]-q*O[2],p=O[0]-T*O[1],m=I[5],h=I[4]-_*I[5],g=I[3]-x*I[4],b=I[2]-E*I[3],S=I[1]-q*I[2],w=I[0]-T*I[1]):(_=A[0],x=A[1],E=A[2],q=A[3],T=A[4],j=A[5],v=O[0],f=O[1]-_*O[0],l=O[2]-x*O[1],d=O[3]-E*O[2],y=O[4]-q*O[3],p=O[5]-T*O[4],m=I[0],h=I[1]-_*I[0],g=I[2]-x*I[1],b=I[3]-E*I[2],S=I[4]-q*I[3],w=I[5]-T*I[4]),D=r.offset,k=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],C=0,V=0;V<j;V++){for(z=0;z<T;z++){for(B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++)U=t.call(o,s(i,D),C,[D,k],[r,e]),U!==void 0&&u(n,k,a(U)),D+=v,k+=m,C+=1;D+=f,k+=h}D+=l,k+=g}D+=d,k+=b}D+=y,k+=S}D+=p,k+=w}}IU.exports=rBr});var DU=c((Ede,NU)=>{"use strict";function eBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G;for(x=r.shape,k=r.strides,N=e.strides,r.order==="row-major"?(E=x[6],q=x[5],T=x[4],j=x[3],O=x[2],I=x[1],D=x[0],v=k[6],f=k[5]-E*k[6],l=k[4]-q*k[5],d=k[3]-T*k[4],y=k[2]-j*k[3],p=k[1]-O*k[2],m=k[0]-I*k[1],h=N[6],g=N[5]-E*N[6],b=N[4]-q*N[5],S=N[3]-T*N[4],w=N[2]-j*N[3],A=N[1]-O*N[2],_=N[0]-I*N[1]):(E=x[0],q=x[1],T=x[2],j=x[3],O=x[4],I=x[5],D=x[6],v=k[0],f=k[1]-E*k[0],l=k[2]-q*k[1],d=k[3]-T*k[2],y=k[4]-j*k[3],p=k[5]-O*k[4],m=k[6]-I*k[5],h=N[0],g=N[1]-E*N[0],b=N[2]-q*N[1],S=N[3]-T*N[2],w=N[4]-j*N[3],A=N[5]-O*N[4],_=N[6]-I*N[5]),F=r.offset,R=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],G=0,L=0;L<D;L++){for(P=0;P<I;P++){for(C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++)M=t.call(o,s(i,F),G,[F,R],[r,e]),M!==void 0&&u(n,R,a(M)),F+=v,R+=h,G+=1;F+=f,R+=g}F+=l,R+=b}F+=d,R+=S}F+=y,R+=w}F+=p,R+=A}F+=m,R+=_}}NU.exports=eBr});var BU=c((Ade,kU)=>{"use strict";function aBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J;for(q=r.shape,R=r.strides,B=e.strides,r.order==="row-major"?(T=q[7],j=q[6],O=q[5],I=q[4],D=q[3],k=q[2],N=q[1],F=q[0],v=R[7],f=R[6]-T*R[7],l=R[5]-j*R[6],d=R[4]-O*R[5],y=R[3]-I*R[4],p=R[2]-D*R[3],m=R[1]-k*R[2],h=R[0]-N*R[1],g=B[7],b=B[6]-T*B[7],S=B[5]-j*B[6],w=B[4]-O*B[5],A=B[3]-I*B[4],_=B[2]-D*B[3],x=B[1]-k*B[2],E=B[0]-N*B[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],v=R[0],f=R[1]-T*R[0],l=R[2]-j*R[1],d=R[3]-O*R[2],y=R[4]-I*R[3],p=R[5]-D*R[4],m=R[6]-k*R[5],h=R[7]-N*R[6],g=B[0],b=B[1]-T*B[0],S=B[2]-j*B[1],w=B[3]-O*B[2],A=B[4]-I*B[3],_=B[5]-D*B[4],x=B[6]-k*B[5],E=B[7]-N*B[6]),z=r.offset,V=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],J=0,Y=0;Y<F;Y++){for($=0;$<N;$++){for(G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++)W=t.call(o,s(i,z),J,[z,V],[r,e]),W!==void 0&&u(n,V,a(W)),z+=v,V+=g,J+=1;z+=f,V+=b}z+=l,V+=S}z+=d,V+=w}z+=y,V+=A}z+=p,V+=_}z+=m,V+=x}z+=h,V+=E}}kU.exports=aBr});var RU=c((_de,FU)=>{"use strict";function tBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q;for(j=r.shape,V=r.strides,U=e.strides,r.order==="row-major"?(O=j[8],I=j[7],D=j[6],k=j[5],N=j[4],F=j[3],R=j[2],B=j[1],z=j[0],v=V[8],f=V[7]-O*V[8],l=V[6]-I*V[7],d=V[5]-D*V[6],y=V[4]-k*V[5],p=V[3]-N*V[4],m=V[2]-F*V[3],h=V[1]-R*V[2],g=V[0]-B*V[1],b=U[8],S=U[7]-O*U[8],w=U[6]-I*U[7],A=U[5]-D*U[6],_=U[4]-k*U[5],x=U[3]-N*U[4],E=U[2]-F*U[3],q=U[1]-R*U[2],T=U[0]-B*U[1]):(O=j[0],I=j[1],D=j[2],k=j[3],N=j[4],F=j[5],R=j[6],B=j[7],z=j[8],v=V[0],f=V[1]-O*V[0],l=V[2]-I*V[1],d=V[3]-D*V[2],y=V[4]-k*V[3],p=V[5]-N*V[4],m=V[6]-F*V[5],h=V[7]-R*V[6],g=V[8]-B*V[7],b=U[0],S=U[1]-O*U[0],w=U[2]-I*U[1],A=U[3]-D*U[2],_=U[4]-k*U[3],x=U[5]-N*U[4],E=U[6]-F*U[5],q=U[7]-R*U[6],T=U[8]-B*U[7]),C=r.offset,P=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],Q=0,K=0;K<z;K++){for(X=0;X<B;X++){for(J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++)H=t.call(o,s(i,C),Q,[C,P],[r,e]),H!==void 0&&u(n,P,a(H)),C+=v,P+=b,Q+=1;C+=f,P+=S}C+=l,P+=w}C+=d,P+=A}C+=y,P+=_}C+=p,P+=x}C+=m,P+=E}C+=h,P+=q}C+=g,P+=T}}FU.exports=tBr});var VU=c((Tde,zU)=>{"use strict";function iBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr,ar,er;for(I=r.shape,P=r.strides,L=e.strides,r.order==="row-major"?(D=I[9],k=I[8],N=I[7],F=I[6],R=I[5],B=I[4],z=I[3],V=I[2],U=I[1],C=I[0],v=P[9],f=P[8]-D*P[9],l=P[7]-k*P[8],d=P[6]-N*P[7],y=P[5]-F*P[6],p=P[4]-R*P[5],m=P[3]-B*P[4],h=P[2]-z*P[3],g=P[1]-V*P[2],b=P[0]-U*P[1],S=L[9],w=L[8]-D*L[9],A=L[7]-k*L[8],_=L[6]-N*L[7],x=L[5]-F*L[6],E=L[4]-R*L[5],q=L[3]-B*L[4],T=L[2]-z*L[3],j=L[1]-V*L[2],O=L[0]-U*L[1]):(D=I[0],k=I[1],N=I[2],F=I[3],R=I[4],B=I[5],z=I[6],V=I[7],U=I[8],C=I[9],v=P[0],f=P[1]-D*P[0],l=P[2]-k*P[1],d=P[3]-N*P[2],y=P[4]-F*P[3],p=P[5]-R*P[4],m=P[6]-B*P[5],h=P[7]-z*P[6],g=P[8]-V*P[7],b=P[9]-U*P[8],S=L[0],w=L[1]-D*L[0],A=L[2]-k*L[1],_=L[3]-N*L[2],x=L[4]-F*L[3],E=L[5]-R*L[4],q=L[6]-B*L[5],T=L[7]-z*L[6],j=L[8]-V*L[7],O=L[9]-U*L[8]),M=r.offset,G=e.offset,i=r.data,n=e.data,s=r.accessors[0],u=e.accessors[1],er=0,rr=0;rr<C;rr++){for(Z=0;Z<U;Z++){for(Q=0;Q<V;Q++){for(H=0;H<z;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++)ar=t.call(o,s(i,M),er,[M,G],[r,e]),ar!==void 0&&u(n,G,a(ar)),M+=v,G+=S,er+=1;M+=f,G+=w}M+=l,G+=A}M+=d,G+=_}M+=y,G+=x}M+=p,G+=E}M+=m,G+=q}M+=h,G+=T}M+=g,G+=j}M+=b,G+=O}}zU.exports=iBr});var LU=c((jde,PU)=>{"use strict";var oBr=Jr(),UU=na(),CU="throw";function nBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;for(d=r.shape,v=oBr(d),i=r.data,n=e.data,y=r.strides,p=e.strides,m=r.offset,h=e.offset,s=r.order,u=e.order,f=r.accessors[0],l=e.accessors[1],w=0;w<v;w++)g=UU(d,y,m,s,w,CU),b=UU(d,p,h,u,w,CU),S=t.call(o,f(i,g),w,[g,b],[r,e]),S!==void 0&&l(n,b,a(S))}PU.exports=nBr});var GU=c((Ide,MU)=>{"use strict";function sBr(r,e,a,t,o){var i=r.offset,n=e.offset,s=t.call(o,r.data[i],0,[i,n],[r,e]);s!==void 0&&(e.data[n]=a(s))}MU.exports=sBr});var $U=c((Ode,YU)=>{"use strict";function uBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p;for(v=r.shape[0],s=r.strides[0],u=e.strides[0],f=r.offset,l=e.offset,i=r.data,n=e.data,p=0,d=0;d<v;d++)y=t.call(o,i[f],p,[f,l],[r,e]),y!==void 0&&(n[l]=a(y)),f+=s,l+=u,p+=1}YU.exports=uBr});var JU=c((Nde,WU)=>{"use strict";function vBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A;for(l=r.shape,p=r.strides,m=e.strides,r.order==="row-major"?(d=l[1],y=l[0],s=p[1],u=p[0]-d*p[1],v=m[1],f=m[0]-d*m[1]):(d=l[0],y=l[1],s=p[0],u=p[1]-d*p[0],v=m[0],f=m[1]-d*m[0]),h=r.offset,g=e.offset,i=r.data,n=e.data,A=0,S=0;S<y;S++){for(b=0;b<d;b++)w=t.call(o,i[h],A,[h,g],[r,e]),w!==void 0&&(n[g]=a(w)),h+=s,g+=v,A+=1;h+=u,g+=f}}WU.exports=vBr});var KU=c((Dde,XU)=>{"use strict";function fBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q;for(y=r.shape,g=r.strides,b=e.strides,r.order==="row-major"?(p=y[2],m=y[1],h=y[0],s=g[2],u=g[1]-p*g[2],v=g[0]-m*g[1],f=b[2],l=b[1]-p*b[2],d=b[0]-m*b[1]):(p=y[0],m=y[1],h=y[2],s=g[0],u=g[1]-p*g[0],v=g[2]-m*g[1],f=b[0],l=b[1]-p*b[0],d=b[2]-m*b[1]),S=r.offset,w=e.offset,i=r.data,n=e.data,q=0,x=0;x<h;x++){for(_=0;_<m;_++){for(A=0;A<p;A++)E=t.call(o,i[S],q,[S,w],[r,e]),E!==void 0&&(n[w]=a(E)),S+=s,w+=f,q+=1;S+=u,w+=l}S+=v,w+=d}}XU.exports=fBr});var ZU=c((kde,HU)=>{"use strict";function lBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I;for(m=r.shape,w=r.strides,A=e.strides,r.order==="row-major"?(h=m[3],g=m[2],b=m[1],S=m[0],s=w[3],u=w[2]-h*w[3],v=w[1]-g*w[2],f=w[0]-b*w[1],l=A[3],d=A[2]-h*A[3],y=A[1]-g*A[2],p=A[0]-b*A[1]):(h=m[0],g=m[1],b=m[2],S=m[3],s=w[0],u=w[1]-h*w[0],v=w[2]-g*w[1],f=w[3]-b*w[2],l=A[0],d=A[1]-h*A[0],y=A[2]-g*A[1],p=A[3]-b*A[2]),_=r.offset,x=e.offset,i=r.data,n=e.data,I=0,j=0;j<S;j++){for(T=0;T<b;T++){for(q=0;q<g;q++){for(E=0;E<h;E++)O=t.call(o,i[_],I,[_,x],[r,e]),O!==void 0&&(n[x]=a(O)),_+=s,x+=l,I+=1;_+=u,x+=d}_+=v,x+=y}_+=f,x+=p}}HU.exports=lBr});var rC=c((Bde,QU)=>{"use strict";function cBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F;for(g=r.shape,x=r.strides,E=e.strides,r.order==="row-major"?(b=g[4],S=g[3],w=g[2],A=g[1],_=g[0],s=x[4],u=x[3]-b*x[4],v=x[2]-S*x[3],f=x[1]-w*x[2],l=x[0]-A*x[1],d=E[4],y=E[3]-b*E[4],p=E[2]-S*E[3],m=E[1]-w*E[2],h=E[0]-A*E[1]):(b=g[0],S=g[1],w=g[2],A=g[3],_=g[4],s=x[0],u=x[1]-b*x[0],v=x[2]-S*x[1],f=x[3]-w*x[2],l=x[4]-A*x[3],d=E[0],y=E[1]-b*E[0],p=E[2]-S*E[1],m=E[3]-w*E[2],h=E[4]-A*E[3]),q=r.offset,T=e.offset,i=r.data,n=e.data,F=0,k=0;k<_;k++){for(D=0;D<A;D++){for(I=0;I<w;I++){for(O=0;O<S;O++){for(j=0;j<b;j++)N=t.call(o,i[q],F,[q,T],[r,e]),N!==void 0&&(n[T]=a(N)),q+=s,T+=d,F+=1;q+=u,T+=y}q+=v,T+=p}q+=f,T+=m}q+=l,T+=h}}QU.exports=cBr});var aC=c((Fde,eC)=>{"use strict";function dBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V;for(S=r.shape,T=r.strides,j=e.strides,r.order==="row-major"?(w=S[5],A=S[4],_=S[3],x=S[2],E=S[1],q=S[0],s=T[5],u=T[4]-w*T[5],v=T[3]-A*T[4],f=T[2]-_*T[3],l=T[1]-x*T[2],d=T[0]-E*T[1],y=j[5],p=j[4]-w*j[5],m=j[3]-A*j[4],h=j[2]-_*j[3],g=j[1]-x*j[2],b=j[0]-E*j[1]):(w=S[0],A=S[1],_=S[2],x=S[3],E=S[4],q=S[5],s=T[0],u=T[1]-w*T[0],v=T[2]-A*T[1],f=T[3]-_*T[2],l=T[4]-x*T[3],d=T[5]-E*T[4],y=j[0],p=j[1]-w*j[0],m=j[2]-A*j[1],h=j[3]-_*j[2],g=j[4]-x*j[3],b=j[5]-E*j[4]),O=r.offset,I=e.offset,i=r.data,n=e.data,V=0,B=0;B<q;B++){for(R=0;R<E;R++){for(F=0;F<x;F++){for(N=0;N<_;N++){for(k=0;k<A;k++){for(D=0;D<w;D++)z=t.call(o,i[O],V,[O,I],[r,e]),z!==void 0&&(n[I]=a(z)),O+=s,I+=y,V+=1;O+=u,I+=p}O+=v,I+=m}O+=f,I+=h}O+=l,I+=g}O+=d,I+=b}}eC.exports=dBr});var iC=c((Rde,tC)=>{"use strict";function pBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L;for(A=r.shape,I=r.strides,D=e.strides,r.order==="row-major"?(_=A[6],x=A[5],E=A[4],q=A[3],T=A[2],j=A[1],O=A[0],s=I[6],u=I[5]-_*I[6],v=I[4]-x*I[5],f=I[3]-E*I[4],l=I[2]-q*I[3],d=I[1]-T*I[2],y=I[0]-j*I[1],p=D[6],m=D[5]-_*D[6],h=D[4]-x*D[5],g=D[3]-E*D[4],b=D[2]-q*D[3],S=D[1]-T*D[2],w=D[0]-j*D[1]):(_=A[0],x=A[1],E=A[2],q=A[3],T=A[4],j=A[5],O=A[6],s=I[0],u=I[1]-_*I[0],v=I[2]-x*I[1],f=I[3]-E*I[2],l=I[4]-q*I[3],d=I[5]-T*I[4],y=I[6]-j*I[5],p=D[0],m=D[1]-_*D[0],h=D[2]-x*D[1],g=D[3]-E*D[2],b=D[4]-q*D[3],S=D[5]-T*D[4],w=D[6]-j*D[5]),k=r.offset,N=e.offset,i=r.data,n=e.data,L=0,C=0;C<O;C++){for(U=0;U<j;U++){for(V=0;V<T;V++){for(z=0;z<q;z++){for(B=0;B<E;B++){for(R=0;R<x;R++){for(F=0;F<_;F++)P=t.call(o,i[k],L,[k,N],[r,e]),P!==void 0&&(n[N]=a(P)),k+=s,N+=p,L+=1;k+=u,N+=m}k+=v,N+=h}k+=f,N+=g}k+=l,N+=b}k+=d,N+=S}k+=y,N+=w}}tC.exports=pBr});var nC=c((zde,oC)=>{"use strict";function yBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y;for(x=r.shape,N=r.strides,F=e.strides,r.order==="row-major"?(E=x[7],q=x[6],T=x[5],j=x[4],O=x[3],I=x[2],D=x[1],k=x[0],s=N[7],u=N[6]-E*N[7],v=N[5]-q*N[6],f=N[4]-T*N[5],l=N[3]-j*N[4],d=N[2]-O*N[3],y=N[1]-I*N[2],p=N[0]-D*N[1],m=F[7],h=F[6]-E*F[7],g=F[5]-q*F[6],b=F[4]-T*F[5],S=F[3]-j*F[4],w=F[2]-O*F[3],A=F[1]-I*F[2],_=F[0]-D*F[1]):(E=x[0],q=x[1],T=x[2],j=x[3],O=x[4],I=x[5],D=x[6],k=x[7],s=N[0],u=N[1]-E*N[0],v=N[2]-q*N[1],f=N[3]-T*N[2],l=N[4]-j*N[3],d=N[5]-O*N[4],y=N[6]-I*N[5],p=N[7]-D*N[6],m=F[0],h=F[1]-E*F[0],g=F[2]-q*F[1],b=F[3]-T*F[2],S=F[4]-j*F[3],w=F[5]-O*F[4],A=F[6]-I*F[5],_=F[7]-D*F[6]),R=r.offset,B=e.offset,i=r.data,n=e.data,Y=0,G=0;G<k;G++){for(M=0;M<D;M++){for(L=0;L<I;L++){for(P=0;P<O;P++){for(C=0;C<j;C++){for(U=0;U<T;U++){for(V=0;V<q;V++){for(z=0;z<E;z++)$=t.call(o,i[R],Y,[R,B],[r,e]),$!==void 0&&(n[B]=a($)),R+=s,B+=m,Y+=1;R+=u,B+=h}R+=v,B+=g}R+=f,B+=b}R+=l,B+=S}R+=d,B+=w}R+=y,B+=A}R+=p,B+=_}}oC.exports=yBr});var uC=c((Vde,sC)=>{"use strict";function mBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K;for(q=r.shape,B=r.strides,z=e.strides,r.order==="row-major"?(T=q[8],j=q[7],O=q[6],I=q[5],D=q[4],k=q[3],N=q[2],F=q[1],R=q[0],s=B[8],u=B[7]-T*B[8],v=B[6]-j*B[7],f=B[5]-O*B[6],l=B[4]-I*B[5],d=B[3]-D*B[4],y=B[2]-k*B[3],p=B[1]-N*B[2],m=B[0]-F*B[1],h=z[8],g=z[7]-T*z[8],b=z[6]-j*z[7],S=z[5]-O*z[6],w=z[4]-I*z[5],A=z[3]-D*z[4],_=z[2]-k*z[3],x=z[1]-N*z[2],E=z[0]-F*z[1]):(T=q[0],j=q[1],O=q[2],I=q[3],D=q[4],k=q[5],N=q[6],F=q[7],R=q[8],s=B[0],u=B[1]-T*B[0],v=B[2]-j*B[1],f=B[3]-O*B[2],l=B[4]-I*B[3],d=B[5]-D*B[4],y=B[6]-k*B[5],p=B[7]-N*B[6],m=B[8]-F*B[7],h=z[0],g=z[1]-T*z[0],b=z[2]-j*z[1],S=z[3]-O*z[2],w=z[4]-I*z[3],A=z[5]-D*z[4],_=z[6]-k*z[5],x=z[7]-N*z[6],E=z[8]-F*z[7]),V=r.offset,U=e.offset,i=r.data,n=e.data,K=0,J=0;J<R;J++){for(W=0;W<F;W++){for(Y=0;Y<N;Y++){for($=0;$<k;$++){for(G=0;G<D;G++){for(M=0;M<I;M++){for(L=0;L<O;L++){for(P=0;P<j;P++){for(C=0;C<T;C++)X=t.call(o,i[V],K,[V,U],[r,e]),X!==void 0&&(n[U]=a(X)),V+=s,U+=h,K+=1;V+=u,U+=g}V+=v,U+=b}V+=f,U+=S}V+=l,U+=w}V+=d,U+=A}V+=y,U+=_}V+=p,U+=x}V+=m,U+=E}}sC.exports=mBr});var fC=c((Ude,vC)=>{"use strict";function hBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U,C,P,L,M,G,$,Y,W,J,X,K,H,Q,Z,rr;for(j=r.shape,U=r.strides,C=e.strides,r.order==="row-major"?(O=j[9],I=j[8],D=j[7],k=j[6],N=j[5],F=j[4],R=j[3],B=j[2],z=j[1],V=j[0],s=U[9],u=U[8]-O*U[9],v=U[7]-I*U[8],f=U[6]-D*U[7],l=U[5]-k*U[6],d=U[4]-N*U[5],y=U[3]-F*U[4],p=U[2]-R*U[3],m=U[1]-B*U[2],h=U[0]-z*U[1],g=C[9],b=C[8]-O*C[9],S=C[7]-I*C[8],w=C[6]-D*C[7],A=C[5]-k*C[6],_=C[4]-N*C[5],x=C[3]-F*C[4],E=C[2]-R*C[3],q=C[1]-B*C[2],T=C[0]-z*C[1]):(O=j[0],I=j[1],D=j[2],k=j[3],N=j[4],F=j[5],R=j[6],B=j[7],z=j[8],V=j[9],s=U[0],u=U[1]-O*U[0],v=U[2]-I*U[1],f=U[3]-D*U[2],l=U[4]-k*U[3],d=U[5]-N*U[4],y=U[6]-F*U[5],p=U[7]-R*U[6],m=U[8]-B*U[7],h=U[9]-z*U[8],g=C[0],b=C[1]-O*C[0],S=C[2]-I*C[1],w=C[3]-D*C[2],A=C[4]-k*C[3],_=C[5]-N*C[4],x=C[6]-F*C[5],E=C[7]-R*C[6],q=C[8]-B*C[7],T=C[9]-z*C[8]),P=r.offset,L=e.offset,i=r.data,n=e.data,rr=0,Q=0;Q<V;Q++){for(H=0;H<z;H++){for(K=0;K<B;K++){for(X=0;X<R;X++){for(J=0;J<F;J++){for(W=0;W<N;W++){for(Y=0;Y<k;Y++){for($=0;$<D;$++){for(G=0;G<I;G++){for(M=0;M<O;M++)Z=t.call(o,i[P],rr,[P,L],[r,e]),Z!==void 0&&(n[L]=a(Z)),P+=s,L+=g,rr+=1;P+=u,L+=b}P+=v,L+=S}P+=f,L+=w}P+=l,L+=A}P+=d,L+=_}P+=y,L+=x}P+=p,L+=E}P+=m,L+=q}P+=h,L+=T}}vC.exports=hBr});var pC=c((Cde,dC)=>{"use strict";var gBr=Jr(),lC=na(),cC="throw";function bBr(r,e,a,t,o){var i,n,s,u,v,f,l,d,y,p,m,h,g,b;for(f=r.shape,v=gBr(f),i=r.data,n=e.data,l=r.strides,d=e.strides,y=r.offset,p=e.offset,s=r.order,u=e.order,b=0;b<v;b++)m=lC(f,l,y,s,b,cC),h=lC(f,d,p,u,b,cC),g=t.call(o,i[m],b,[m,h],[r,e]),g!==void 0&&(n[h]=a(g))}dC.exports=bBr});var xC=c((Pde,bC)=>{"use strict";var yC=Ea(),mC=at(),hC=ei(),xBr=RV(),qBr=VV(),wBr=CV(),SBr=LV(),EBr=GV(),ABr=$V(),_Br=JV(),TBr=KV(),jBr=ZV(),IBr=rU(),OBr=aU(),NBr=iU(),DBr=nU(),kBr=uU(),BBr=fU(),FBr=cU(),RBr=pU(),zBr=mU(),VBr=gU(),UBr=xU(),CBr=wU(),PBr=EU(),LBr=_U(),MBr=jU(),GBr=OU(),YBr=DU(),$Br=BU(),WBr=RU(),JBr=VU(),XBr=LU(),KBr=GU(),HBr=$U(),ZBr=JU(),QBr=KU(),rFr=ZU(),eFr=rC(),aFr=aC(),tFr=iC(),iFr=nC(),oFr=uC(),nFr=fC(),sFr=pC(),ji=[KBr,HBr,ZBr,QBr,rFr,eFr,aFr,tFr,iFr,oFr,nFr],ko=[VBr,UBr,CBr,PBr,LBr,MBr,GBr,YBr,$Br,WBr,JBr],uFr=[IBr,OBr,NBr,DBr,kBr,BBr,FBr,RBr,zBr],vFr=[xBr,qBr,wBr,SBr,EBr,ABr,_Br,TBr,jBr],gC=ji.length-1;function fFr(r,e,a,t){var o,i,n,s,u,v,f,l,d,y,p,m,h,g,b,S,w;if(g=hC(r[0]),b=hC(r[1]),s=g.shape,u=b.shape,o=s.length,o!==u.length)throw new Error("invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == "+o+". ndims(y) == "+u.length+".");if(o===0)return g.accessorProtocol||b.accessorProtocol?ko[o](g,b,e,a,t):ji[o](g,b,e,a,t);for(l=1,h=0,w=0;w<o;w++){if(S=s[w],S!==u[w])throw new Error("invalid arguments. Arrays must have the same shape.");l*=S,S===1&&(h+=1)}if(l!==0){if(o===1)return g.accessorProtocol||b.accessorProtocol?ko[o](g,b,e,a,t):ji[o](g,b,e,a,t);if(d=g.strides,y=b.strides,h===o-1){for(w=0;w<o&&s[w]===1;w++);return g.shape=[s[w]],b.shape=g.shape,g.strides=[d[w]],b.strides=[y[w]],g.accessorProtocol||b.accessorProtocol?ko[1](g,b,e,a,t):ji[1](g,b,e,a,t)}if(v=yC(d),f=yC(y),v!==0&&f!==0&&v===f){if(i=mC(s,d,g.offset),n=mC(u,y,b.offset),l===i[1]-i[0]+1&&l===n[1]-n[0]+1)return v===1?p=i[0]:p=i[1],f===1?m=n[0]:m=n[1],g.shape=[l],b.shape=g.shape,g.strides=[v],b.strides=[f],g.offset=p,b.offset=m,g.accessorProtocol||b.accessorProtocol?ko[1](g,b,e,a,t):ji[1](g,b,e,a,t);if(o<=gC)return g.accessorProtocol||b.accessorProtocol?ko[o](g,b,e,a,t):ji[o](g,b,e,a,t)}if(o<=gC)return g.accessorProtocol||b.accessorProtocol?vFr[o-2](g,b,e,a,t):uFr[o-2](g,b,e,a,t);if(g.accessorProtocol||b.accessorProtocol)return XBr(g,b,e,a,t);sFr(g,b,e,a,t)}}bC.exports=fFr});var wC=c((Lde,qC)=>{"use strict";var lFr=xC();qC.exports=lFr});var EC=c((Mde,SC)=>{"use strict";var cFr=Mn(),dFr=mf(),pFr=wo(),yFr=ff(),mFr=$n(),hFr=Wn(),gFr=Gn(),bFr=lf(),xFr=di(),dt=ka(),qFr=pr(),wFr={floating_point:[cFr,dt.get("dtypes.floating_point")],real_floating_point:[dFr,dt.get("dtypes.real_floating_point")],complex_floating_point:[pFr,dt.get("dtypes.complex_floating_point")],integer:[yFr,dt.get("dtypes.integer")],signed_integer:[mFr,dt.get("dtypes.signed_integer")],unsigned_integer:[hFr,dt.get("dtypes.unsigned_integer")],real:[gFr,dt.get("dtypes.real")],numeric:[bFr,dt.get("dtypes.numeric")]},SFr=dt.get("dtypes.default");function EFr(r,e){var a;if(e==="default")return SFr;if(e==="same"||e==="promoted")return r;if(e==="bool")throw new Error("not implemented");if(a=wFr[e],a===void 0){if(xFr(e))return e;throw new TypeError(qFr("invalid argument. Second argument must be a supported data type policy. Value: `%s`.",e))}return a[0](r)?r:a[1]}SC.exports=EFr});var _C=c((Gde,AC)=>{"use strict";var AFr=EC();AC.exports=AFr});var jC=c((Yde,TC)=>{"use strict";var _Fr=ze(),TFr=Ye(),jFr=Fa(),IFr=pr(),OFr=aa(),NFr=Jr();function DFr(r,e,a){var t,o,i,n;if(t=e.length,t>0?(i=NFr(e),n=_Fr(e,a)):(i=1,n=[0]),o=jFr(r,i),o===null)throw new TypeError(IFr("invalid argument. First argument must be a recognized data type. Value: `%s`.",r));return new OFr(r,o,e,n,TFr(e,n),a)}TC.exports=DFr});var OC=c(($de,IC)=>{"use strict";var kFr=jC();IC.exports=kFr});var DC=c((Wde,NC)=>{"use strict";var BFr=ze(),FFr=Ye(),RFr=Fa(),zFr=Jr(),VFr=Xe(),UFr=Te(),CFr=sa(),PFr=pr();function LFr(r){var e,a,t,o,i,n,s;if(s=VFr(r),i=UFr(r,!0),o=CFr(r),e=i.length,e>0?(a=zFr(i),n=BFr(i,o)):(a=1,n=[0]),t=RFr(s,a),t===null)throw new TypeError(PFr("invalid argument. First argument must have a recognized data type. Value: `%s`.",s));return new r.constructor(s,t,i,n,FFr(i,n),o)}NC.exports=LFr});var BC=c((Jde,kC)=>{"use strict";var MFr=DC();kC.exports=MFr});var RC=c((Xde,FC)=>{"use strict";var Er=zt(),Sr={};Er(Sr,"assert",k8());Er(Sr,"assign",bf());Er(Sr,"binaryLoopOrder",dj());Er(Sr,"binaryBlockSize",bj());Er(Sr,"bind2vind",Oj());Er(Sr,"broadcastArray",_o());Er(Sr,"broadcastArrays",Pj());Er(Sr,"broadcastScalar",Yj());Er(Sr,"broadcastShapes",qi());Er(Sr,"buffer",Fa());Er(Sr,"bufferCtors",go());Er(Sr,"bufferDataType",Rn());Er(Sr,"bufferDataTypeEnum",Xj());Er(Sr,"bytesPerElement",xt());Er(Sr,"char2dtype",sI());Er(Sr,"clampIndex",xn());Er(Sr,"ndarray",aa());Er(Sr,"data",lt());Er(Sr,"dtype",Xe());Er(Sr,"dtypeChar",Af());Er(Sr,"dtypeDesc",pI());Er(Sr,"dtypeEnum2Str",Sn());Er(Sr,"dtypeResolveEnum",jf());Er(Sr,"dtypeResolveStr",Ba());Er(Sr,"dtypeStr2Enum",mo());Er(Sr,"dtype2c",wI());Er(Sr,"dtypes2signatures",Of());Er(Sr,"empty",XI());Er(Sr,"emptyLike",QI());Er(Sr,"expandDimensions",sO());Er(Sr,"flag",yf());Er(Sr,"flags",So());Er(Sr,"fliplr",T7());Er(Sr,"flipud",k7());Er(Sr,"forEach",zD());Er(Sr,"scalar2ndarray",PD());Er(Sr,"ind",st());Er(Sr,"ind2sub",Ai());Er(Sr,"iterationOrder",Ea());Er(Sr,"maxViewBufferIndex",YD());Er(Sr,"maybeBroadcastArray",Lf());Er(Sr,"maybeBroadcastArrays",QD());Er(Sr,"metaDataProps",tk());Er(Sr,"minViewBufferIndex",sk());Er(Sr,"minmaxViewBufferIndex",at());Er(Sr,"ndarraylike2ndarray",lk());Er(Sr,"ndarraylike2object",ei());Er(Sr,"ndims",Ua());Er(Sr,"nextCartesianIndex",He());Er(Sr,"nonsingletonDimensions",xk());Er(Sr,"normalizeIndex",ya());Er(Sr,"nullary",eF());Er(Sr,"nullaryLoopOrder",Zr());Er(Sr,"nullaryBlockSize",Qr());Er(Sr,"numel",Jr());Er(Sr,"numelDimension",Yf());Er(Sr,"offset",Ha());Er(Sr,"order",sa());Er(Sr,"outputPolicyEnum2Str",as());Er(Sr,"outputPolicyResolveEnum",EF());Er(Sr,"outputPolicyResolveStr",jF());Er(Sr,"outputPolicyStr2Enum",ts());Er(Sr,"prependSingletonDimensions",RF());Er(Sr,"removeSingletonDimensions",GF());Er(Sr,"reverse",JF());Er(Sr,"reverseDimension",Qn());Er(Sr,"serializeMetaData",aR());Er(Sr,"shape",Te());Er(Sr,"shape2strides",ze());Er(Sr,"singletonDimensions",nR());Er(Sr,"slice",ye());Er(Sr,"sliceAssign",is());Er(Sr,"sliceDimension",Xf());Er(Sr,"sliceDimensionFrom",Kf());Er(Sr,"sliceDimensionTo",Hf());Er(Sr,"sliceFrom",Zf());Er(Sr,"sliceTo",Qf());Er(Sr,"stride",rl());Er(Sr,"strides",ba());Er(Sr,"strides2offset",Ye());Er(Sr,"strides2order",Pt());Er(Sr,"sub2ind",el());Er(Sr,"ndarray2array",al());Er(Sr,"transpose",$R());Er(Sr,"unary",BV());Er(Sr,"unaryBy",wC());Er(Sr,"unaryLoopOrder",zr());Er(Sr,"unaryOutputDataType",_C());Er(Sr,"unaryBlockSize",Rr());Er(Sr,"vind2bind",na());Er(Sr,"wrapIndex",qn());Er(Sr,"zeros",OC());Er(Sr,"zerosLike",BC());FC.exports=Sr});var VC=c((Kde,zC)=>{"use strict";var GFr=se(),YFr=ke(),$Fr=ge().isPrimitive,Bo=jt(),WFr=Ra(),JFr=oe(),XFr=Xa(),KFr=Tt(),HFr=Ka(),ZFr=vt(),Fo=pr();function QFr(r,e){var a,t,o,i,n,s,u,v,f;if(!GFr(r))throw new TypeError(Fo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!YFr(e))throw new TypeError(Fo("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(n=e.length,o=JFr(r),s=o.length,n<s)throw new Error("invalid argument. Cannot broadcast an array to a shape having fewer dimensions. Arrays can only be broadcasted to shapes having the same or more dimensions.");for(a=[],v=0;v<n;v++)a.push(0);for(i=XFr(r),v=n-1;v>=0;v--)if(f=s-n+v,!(f<0)){if(u=o[f],t=e[v],!$Fr(t))throw new TypeError(Fo("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(t!==0&&t<u)throw new Error(Fo("invalid argument. Input array cannot be broadcast to the specified shape, as the specified shape has a dimension whose size is less than the size of the corresponding dimension in the input array. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Bo(o).join(", "),Bo(e).join(", "),v));if(u===t)a[v]=i[f];else if(u===1)a[v]=0;else throw new Error(Fo("invalid argument. Input array and the specified shape are broadcast incompatible. Array shape: (%s). Desired shape: (%s). Dimension: %u.",Bo(o).join(", "),Bo(e).join(", "),v))}return new r.constructor(WFr(r),ZFr(r),Bo(e),a,KFr(r),HFr(r),{readonly:!0})}zC.exports=QFr});var os=c((Hde,UC)=>{"use strict";var rRr=VC();UC.exports=rRr});var LC=c((Zde,PC)=>{"use strict";var eRr=se(),aRr=Ve(),tRr=qi(),iRr=os(),oRr=oe(),CC=pr();function nRr(r){var e,a,t,o,i,n,s;if(a=arguments.length,a===0)t=[];else if(a>1)for(t=[],s=0;s<arguments.length;s++)t.push(arguments[s]);else if(eRr(r))t=[r];else if(aRr(r))t=r;else throw new TypeError(CC("invalid argument. First argument must be either an ndarray or an array of ndarrays. Value: `%s`.",r));for(n=t.length,e=[],s=0;s<n;s++)try{e.push(oRr(t[s]))}catch{throw new TypeError(CC("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[s]))}if(i=tRr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],s=0;s<n;s++)o.push(iRr(t[s],i));return o}PC.exports=nRr});var tl=c((Qde,MC)=>{"use strict";var sRr=LC();MC.exports=sRr});var il=c((r0e,GC)=>{"use strict";var uRr=fe().isPrimitive;function vRr(r){return uRr(r)&&r>0}GC.exports=vRr});var ol=c((e0e,YC)=>{"use strict";var fRr=fe().isObject;function lRr(r){return fRr(r)&&r.valueOf()>0}YC.exports=lRr});var WC=c((a0e,$C)=>{"use strict";var cRr=il(),dRr=ol();function pRr(r){return cRr(r)||dRr(r)}$C.exports=pRr});var ns=c((t0e,XC)=>{"use strict";var JC=Ir(),nl=WC(),yRr=il(),mRr=ol();JC(nl,"isPrimitive",yRr);JC(nl,"isObject",mRr);XC.exports=nl});var HC=c((i0e,KC)=>{"use strict";var hRr=un(),gRr=Pe(),bRr=hRr(gRr);KC.exports=bRr});var QC=c((o0e,ZC)=>{"use strict";function xRr(r,e,a,t,o,i,n,s,u){var v,f,l,d;for(v=i,l=0;l<r;l++){for(f=u,d=0;d<e&&a[v+d*o]===n[f];d++)f+=s;if(d===e)return l;v+=t}return-1}ZC.exports=xRr});var iP=c((n0e,tP)=>{"use strict";var rP=ge().isPrimitive,qRr=ns(),wRr=fe().isPrimitive,SRr=HC(),ERr=Pe(),eP=ke(),ARr=se(),Ot=pr(),_Rr=Ra(),aP=jf(),TRr=QC();function jRr(r){var e,a;for(e=[],a=0;a<r.length;a++)e.push(aP(r[a]));return e}function IRr(r,e,a,t,o,i){var n,s,u;if(ERr(r))u=r;else if(!SRr(r))throw new TypeError(Ot("invalid argument. First argument must be either a function or an array of functions. Value: `%s`.",r));if(!eP(e))throw new TypeError(Ot("invalid argument. Second argument must be an array-like object. Value: `%s`.",e));if(!eP(a)&&a!==null)throw new TypeError(Ot("invalid argument. Third argument must be an array-like object or null. Value: `%s`.",a));if(!qRr(t))throw new TypeError(Ot("invalid argument. Fourth argument must be a positive integer. Value: `%s`.",t));if(!rP(o))throw new TypeError(Ot("invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.",o));if(!rP(i))throw new TypeError(Ot("invalid argument. Sixth argument must be a nonnegative integer. Value: `%s`.",i));if(n=o+i,n===0)throw new Error("invalid arguments. Interface must accept at least one input and/or output ndarray. Based on the provided arguments, `nin+nout` equals `0`.");if(t!==n)throw new Error("invalid arguments. Fourth argument does not equal the number of input and output ndarrays.");if(u){if(s=e.length/n,!wRr(s))throw new Error("invalid argument. Unexpected number of types. A type must be specified for each input and output ndarray for each provided ndarray function.")}else if(s=r.length,e.length!==s*n)throw new Error("invalid argument. Unexpected number of types. A type must be specified for each input and output ndarray for each provided ndarray function.");if(a&&a.length!==s)throw new Error("invalid argument. The third argument must have the same number of elements as the first argument.");return e=jRr(e),v;function v(){var f,l,d,y,p,m,h;if(d=arguments.length,d!==t)throw d<t?new Error("invalid invocation. Insufficient arguments."):new Error("invalid invocation. Too many arguments.");for(f=[],l=[],h=0;h<t;h++){if(p=arguments[h],!ARr(p))throw h<o?new TypeError(Ot("invalid argument. Input array must be an ndarray-like object. Value: `%s`.",p)):new TypeError(Ot("invalid argument. Output array must be an ndarray-like object. Value: `%s`.",p));f.push(p),l.push(aP(_Rr(p)))}if(y=TRr(s,n,e,n,1,0,l,1,0),y<0)throw new TypeError("invalid arguments. Unable to resolve an ndarray function supporting the provided array argument data types.");if(u?m=u:m=r[y],a?m(f,a[y]):m(f),i===1)return f[n-1];if(i!==0)return f.slice(o)}}tP.exports=IRr});var nP=c((s0e,oP)=>{"use strict";var ORr=iP();oP.exports=ORr});var lP=c((u0e,fP)=>{"use strict";var NRr=ne(),ss=Xr(),DRr=sn(),kRr=ze(),BRr=Ye(),FRr=To(),RRr=_t(),zRr=Jr(),VRr=ma(),vP=ka(),sl=pr(),sP=vP.get("dtypes.default"),uP=vP.get("order");function URr(r){var e,a,t,o,i,n,s,u,v;if(i={},arguments.length>1){if(e=arguments[1],!NRr(e))throw new TypeError(sl("invalid argument. Options argument must be an object. Value: `%s`.",e));ss(e,"dtype")?a=e.dtype:a=sP,ss(e,"order")?t=e.order:t=uP,ss(e,"mode")&&(i.mode=e.mode),ss(e,"submode")&&(i.submode=e.submode)}else a=sP,t=uP;if(typeof r=="number")v=[r];else if(DRr(r))v=r;else throw new TypeError(sl("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=v.length,o>0){if(s=zRr(v),s!==s||s<0)throw new TypeError(sl("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));u=kRr(v,t)}else s=1,u=[0];return a==="binary"?n=RRr(s):n=FRr(s,a),new VRr(a,n,v,u,BRr(v,u),t,i)}fP.exports=URr});var dP=c((v0e,cP)=>{"use strict";var CRr=lP();cP.exports=CRr});var gP=c((f0e,hP)=>{"use strict";var PRr=se(),LRr=ne(),MRr=Jt().primitives,Ro=Xr(),GRr=ze(),YRr=Ye(),$Rr=Jr(),pP=Ra(),yP=oe(),mP=Ka(),WRr=ma(),JRr=To(),XRr=_t(),ul=pr();function KRr(r){var e,a,t,o,i,n,s,u,v;if(!PRr(r))throw new TypeError(ul("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!LRr(e))throw new TypeError(ul("invalid argument. Options argument must be an object. Value: `%s`.",e));if(Ro(e,"dtype")?a=e.dtype:a=pP(r),Ro(e,"shape")){if(v=e.shape,typeof v=="number"&&(v=[v]),!MRr(v))throw new TypeError(ul("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",v))}else v=yP(r);Ro(e,"order")?t=e.order:t=mP(r),Ro(e,"mode")&&(i.mode=e.mode),Ro(e,"submode")&&(i.submode=e.submode)}else a=pP(r),v=yP(r),t=mP(r);return o=v.length,o>0?(s=$Rr(v),u=GRr(v,t)):(s=1,u=[0]),a==="binary"?n=XRr(s):n=JRr(s,a),new WRr(a,n,v,u,YRr(v,u),t,i)}hP.exports=KRr});var xP=c((l0e,bP)=>{"use strict";var HRr=gP();bP.exports=HRr});var wP=c((c0e,qP)=>{"use strict";var ZRr=eval;qP.exports=ZRr});var EP=c((d0e,SP)=>{"use strict";var QRr=wP();function rzr(){var r;try{QRr('"use strict"; var handler = { "get": function get( t, n ) { return t[ n ] * 100; } }; var target = { "beep": 3.14 }; var p = new Proxy( target, handler ); var x = p.beep; if ( x !== 314 ) { throw new Error( "native Proxy is not supported." ); }'),r=!0}catch{r=!1}return r}SP.exports=rzr});var _P=c((p0e,AP)=>{"use strict";var ezr=EP();AP.exports=ezr});var jP=c((y0e,TP)=>{"use strict";var azr=typeof Proxy>"u"?null:Proxy;TP.exports=azr});var OP=c((m0e,IP)=>{"use strict";function tzr(r){return r}IP.exports=tzr});var DP=c((h0e,NP)=>{"use strict";var izr=_P(),ozr=jP(),nzr=OP(),vl;izr()?vl=ozr:vl=nzr;NP.exports=vl});var BP=c((g0e,kP)=>{"use strict";var szr=typeof String.prototype.trim<"u";kP.exports=szr});var fl=c((b0e,FP)=>{"use strict";var uzr=String.prototype.trim;FP.exports=uzr});var UP=c((x0e,VP)=>{"use strict";var RP=fl(),vzr=`
|
|
2
|
-
\r
|
|
3
|
-
\f\v\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,zP="\u180E";function fzr(){return RP.call(vzr)===""&&RP.call(zP)===zP}VP.exports=fzr});var PP=c((q0e,CP)=>{"use strict";var lzr=tt(),czr=/^[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*([\S\s]*?)[\u0020\f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]*$/;function dzr(r){return lzr(r,czr,"$1")}CP.exports=dzr});var MP=c((w0e,LP)=>{"use strict";var pzr=fl();function yzr(r){return pzr.call(r)}LP.exports=yzr});var Nt=c((S0e,GP)=>{"use strict";var mzr=BP(),hzr=UP(),gzr=PP(),bzr=MP(),ll;mzr&&hzr()?ll=bzr:ll=gzr;GP.exports=ll});var WP=c((E0e,$P)=>{"use strict";var xzr=Nt(),qzr=Ce(),cl="Slice(",YP=3,wzr=/\s*,\s*/,Szr=/^-?[0-9]+$/;function Ezr(r){var e,a,t,o,i;if(r.substring(0,cl.length)!==cl||(t=r.length-1,r[t]!==")")||(r=xzr(r.substring(cl.length,t)),r=r.split(wzr),r.length!==YP))return null;for(e=[],i=0;i<YP;i++){if(o=r[i],o==="null")a=null;else if(Szr.test(o))a=parseInt(o,10);else return null;e.push(a)}return new qzr(e[0],e[1],e[2])}$P.exports=Ezr});var us=c((A0e,JP)=>{"use strict";var Azr=WP();JP.exports=Azr});var KP=c((_0e,XP)=>{"use strict";var _zr=Nt(),Tzr=us(),jzr=Qa(),Izr=he(),dl="MultiSlice(",Ozr=/\s*,\s*/,Nzr=/^-?[0-9]+$/;function Dzr(r){var e,a,t,o,i;if(r.substring(0,dl.length)!==dl||(t=r.length-1,r[t]!==")"))return null;if(r=_zr(r.substring(dl.length,t)),r=r.split(Ozr),t=r.length,t===1&&r[0]==="")return new jzr;for(e=[],i=0;i<t;i++){if(o=r[i],o[0]==="S"){if(o=r.slice(i,i+3).join(","),a=Tzr(o),a===null)return null;i+=2}else if(o==="null")a=null;else if(Nzr.test(o))a=parseInt(o,10);else return null;e.push(a)}return Izr(e)}XP.exports=Dzr});var zo=c((T0e,HP)=>{"use strict";var kzr=KP();HP.exports=kzr});var QP=c((j0e,ZP)=>{"use strict";var Bzr=/(?:\s*-\s*)(?=\d+)(\d+)$/;ZP.exports=Bzr});var eL=c((I0e,rL)=>{"use strict";var Fzr=/(?:\s*\/\s*)(?=\d*\.?\d+)(\d*\.?\d+)$/;rL.exports=Fzr});var iL=c((O0e,tL)=>{"use strict";var aL=ea(),Rzr=QP(),zzr=eL();function Vzr(r,e,a,t){var o;if(r==="end")return e;if(o=r.match(Rzr),o){if(r=e-parseInt(o[1],10),r<0){if(t)return-2;r=0}return r}return o=r.match(zzr),o?(r=parseFloat(o[1]),r<1?t?-2:-1:a&&e>0&&r!==1?aL((e-1)/r):aL(e/r)):-1}tL.exports=Vzr});var nL=c((N0e,oL)=>{"use strict";var Uzr=/\s*:\s*/;oL.exports=Uzr});var uL=c((D0e,sL)=>{"use strict";var Czr=/^[-+]?[0-9]+$/;sL.exports=Czr});var fL=c((k0e,vL)=>{"use strict";var Pzr=/^end/;vL.exports=Pzr});var cL=c((B0e,lL)=>{"use strict";function Lzr(){return{code:"ERR_SLICE_INVALID_SUBSEQUENCE"}}lL.exports=Lzr});var pL=c((F0e,dL)=>{"use strict";function Mzr(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}dL.exports=Mzr});var mL=c((R0e,yL)=>{"use strict";function Gzr(){return{code:"ERR_SLICE_INVALID_INCREMENT"}}yL.exports=Gzr});var qL=c((z0e,xL)=>{"use strict";var hL=Ce(),Yzr=Nt(),gL=iL(),$zr=nL(),pl=uL(),bL=fL(),Ii=cL(),ai=pL(),Wzr=mL();function Jzr(r,e,a){var t,o,i;if(t=Yzr(r).split($zr),o=t.length,o<2||o>3)return Ii();if(o===3)if(i=t[2],i.length===0)t[2]=1;else{if(pl.test(i)===!1)return Ii();if(i=parseInt(i,10),i===0)return Wzr();t[2]=i}else t.push(1);if(i=t[0],i.length===0)t[2]<0&&e>0?t[0]=e-1:t[0]=0;else if(bL.test(i)){if(i=gL(i,e,t[2]<0,a),i<0)return i===-2?ai():Ii();t[2]<0&&i>=e&&(i-=1),t[0]=i}else if(pl.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0){if(a)return ai();i=0}}else if(i>=e){if(a)return ai();t[2]<0?i=e-1:i=e}t[0]=i}else return Ii();if(i=t[1],i.length===0)t[2]<0?t[1]=null:t[1]=e;else if(bL.test(i)){if(i=gL(i,e,t[2]<0,a),i<0)return i===-2?ai():Ii();t[1]=i}else if(pl.test(i)){if(i=parseInt(i,10),i<0){if(i=e+i,i<0)if(t[2]>0){if(a)return ai();i=0}else{if(a&&i<-1)return ai();i=null}}else if(i>e){if(a)return ai();i=e}t[1]=i}else return Ii();return e===0?new hL(0,0,t[2]):new hL(t[0],t[1],t[2])}xL.exports=Jzr});var SL=c((V0e,wL)=>{"use strict";var Xzr=qL();wL.exports=Xzr});var AL=c((U0e,EL)=>{"use strict";function Kzr(){return{code:"ERR_SLICE_INVALID_ELLIPSIS"}}EL.exports=Kzr});var TL=c((C0e,_L)=>{"use strict";function Hzr(){return{code:"ERR_SLICE_INSUFFICIENT_DIMENSIONS"}}_L.exports=Hzr});var IL=c((P0e,jL)=>{"use strict";function Zzr(){return{code:"ERR_SLICE_TOO_MANY_DIMENSIONS"}}jL.exports=Zzr});var NL=c((L0e,OL)=>{"use strict";function Qzr(){return{code:"ERR_SLICE_OUT_OF_BOUNDS"}}OL.exports=Qzr});var kL=c((M0e,DL)=>{"use strict";var rVr=/\s*,\s*/;DL.exports=rVr});var FL=c((G0e,BL)=>{"use strict";var eVr=/^[-+]?[0-9]+$/;BL.exports=eVr});var VL=c((Y0e,zL)=>{"use strict";var aVr=Nt(),tVr=Ce(),iVr=he(),oVr=SL(),nVr=AL(),sVr=TL(),uVr=IL(),RL=NL(),vVr=kL(),fVr=FL();function lVr(r,e,a){var t,o,i,n,s,u,v,f,l,d;for(s=e.length,t=aVr(r).split(vVr),u=t.length,i=!1,o=[],l=0,f=0;f<u;f++){if(v=t[f],v==="..."){if(i)return nVr();for(i=!0,d=0;d<s-u+1;d++)o.push(new tVr(0,e[l],1)),l+=1;continue}if(n=e[l],fVr.test(v)){if(v=parseInt(v,10),a){if(v<0){if(n+v<0)return RL()}else if(v>=n)return RL()}l+=1}else{if(v=oVr(v,n,a),v.code)return v;l+=1}o.push(v)}return o.length!==s?o.length<s?sVr():uVr():iVr(o)}zL.exports=lVr});var vs=c(($0e,UL)=>{"use strict";var cVr=VL();UL.exports=cVr});var yl=c((W0e,CL)=>{"use strict";var dVr=/^-?[0-9]+$/;CL.exports=dVr});var ml=c((J0e,PL)=>{"use strict";var pVr=/:/;PL.exports=pVr});var ML=c((X0e,LL)=>{"use strict";var yVr=Nt(),mVr=tt(),hl=Qa(),hVr=zo(),gVr=vs(),bVr=us(),ti=pr(),xVr=yl(),qVr=ml();function wVr(r,e){var a,t,o,i;if(t=yVr(e),o=t[0],o==="S"){if(i=bVr(e),i===null)throw new Error(ti("invalid operation. Unsupported slice operation. Value: `%s`.",e));i=new hl(i)}else if(o==="M"){if(i=hVr(t),i===null)throw new Error(ti("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(xVr.test(t))i=parseInt(t,10),i=new hl(i);else if(qVr.test(t)){if(a=r.shape,i=gVr(t,a,!0),i.code)throw i.code==="ERR_SLICE_INVALID_INCREMENT"?new Error(ti("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_ELLIPSIS"?new Error(ti("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e)):i.code==="ERR_SLICE_INVALID_SUBSEQUENCE"?new Error(ti("invalid operation. Unsupported slice operation. Value: `%s`.",e)):new RangeError(ti("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",a.join(","),mVr(t,/\.\.\.,/,"").split(",").length))}else if(t.length===0||t==="...")i=new hl;else throw new Error(ti("invalid operation. Unsupported slice operation. Value: `%s`.",e));return i}LL.exports=wVr});var WL=c((K0e,$L)=>{"use strict";var SVr=Nt(),EVr=tt(),GL=Qa(),AVr=zo(),YL=vs(),_Vr=us(),Dt=pr(),TVr=yl();function jVr(r,e,a){var t,o,i,n;if(o=SVr(e),i=o[0],i==="S"){if(n=_Vr(e),n===null)throw new Error(Dt("invalid operation. Unsupported slice operation. Value: `%s`.",e));n=new GL(n)}else if(i==="M"){if(n=AVr(o),n===null)throw new Error(Dt("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(TVr.test(o))n=parseInt(o,10),n=new GL(n);else if(o.length>0){if(t=r.shape,n=YL(o,t,!0),n.code){if(n.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(Dt("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(Dt("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(Dt("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(n.code==="ERR_SLICE_TOO_MANY_DIMENSIONS")throw new RangeError(Dt("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",r.shape.join(","),EVr(o,/\.\.\.,/,"").split(",").length));if(n.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(Dt("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));n=YL(o,t,!1)}}}else throw new RangeError(Dt("invalid operation. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",r.shape.join(","),0));return n}$L.exports=jVr});var XL=c((H0e,JL)=>{"use strict";var fs=tt(),IVr=zo();function OVr(r){return r=fs(r,/^,/,"null,"),r=fs(r,/,$/,",null"),r=fs(r,/,(?=,)/g,",null"),r=fs(r,/undefined/g,"null"),IVr("MultiSlice("+r+")")}JL.exports=OVr});var HL=c((Z0e,KL)=>{"use strict";var NVr=XL();KL.exports=NVr});var rM=c((Q0e,QL)=>{"use strict";var DVr=Nt(),kVr=zo(),ZL=vs(),BVr=HL(),Oi=pr(),FVr=ml();function RVr(r,e,a){var t,o,i,n;if(o=DVr(e),i=o[0],i==="M"){if(n=kVr(o),n===null)throw new Error(Oi("invalid operation. Unsupported slice operation. Value: `%s`.",e))}else if(FVr.test(o)||o==="..."){if(t=r.shape,n=ZL(o,t,!0),n.code){if(n.code==="ERR_SLICE_INVALID_INCREMENT")throw new Error(Oi("invalid operation. A subsequence increment must be a non-zero integer. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_ELLIPSIS")throw new Error(Oi("invalid operation. A subsequence may only include a single ellipsis. Value: `%s`.",e));if(n.code==="ERR_SLICE_INVALID_SUBSEQUENCE")throw new Error(Oi("invalid operation. Unsupported slice operation. Value: `%s`.",e));if(n.code==="ERR_SLICE_OUT_OF_BOUNDS"){if(a)throw new RangeError(Oi("invalid operation. Slice exceeds array bounds. Array shape: (%s).",t.join(",")));n=ZL(o,t,!1)}}}else if(n=BVr(o),n===null)throw new Error(Oi("invalid operation. Unsupported slice operation. Value: `%s`.",e));return n}QL.exports=RVr});var aM=c((rpe,eM)=>{"use strict";var zVr=typeof Object.getOwnPropertyNames<"u";eM.exports=zVr});var oM=c((epe,iM)=>{"use strict";var tM=Ut(),VVr=tM.getOwnPropertyNames;function UVr(r){return VVr(tM(r))}iM.exports=UVr});var sM=c((ape,nM)=>{"use strict";var CVr=Ut(),PVr=Aa();function LVr(r){return PVr(CVr(r))}nM.exports=LVr});var vM=c((tpe,uM)=>{"use strict";var MVr=aM(),GVr=oM(),YVr=sM(),gl;MVr?gl=GVr:gl=YVr;uM.exports=gl});var cM=c((ipe,lM)=>{"use strict";var $Vr=df(),WVr=vM(),JVr=Ct(),XVr=Ut();function fM(r,e){var a;for(a=0;a<r.length;a++)if(r[a]===e)return!0;return!1}function KVr(r){var e,a,t,o;if(r==null)return[];a=XVr(r),e=[];do{for(t=WVr(a),o=0;o<t.length;o++)fM(e,t[o])===!1&&e.push(t[o]);for(t=$Vr(a),o=0;o<t.length;o++)fM(e,t[o])===!1&&e.push(t[o]);a=JVr(a)}while(a);return e}lM.exports=KVr});var pM=c((ope,dM)=>{"use strict";var HVr=cM();dM.exports=HVr});var bl=c((npe,yM)=>{"use strict";var ZVr=pM(),QVr=Ue().factory,rUr=ma(),eUr=ka(),aUr=QVr(ZVr(new rUr("generic",[0],[],[0],0,eUr.get("order"))));yM.exports=aUr});var hM=c((spe,mM)=>{"use strict";var tUr=Pe();function iUr(r,e,a){var t=r[e];if(tUr(t))return o;return t;function o(){var i,n;for(i=[],n=0;n<arguments.length;n++)i.push(arguments[n]);return t.apply(this===a?r:this,i)}}mM.exports=iUr});var xl=c((upe,gM)=>{"use strict";var oUr=tt();function nUr(r){return oUr(r,/^invalid argument/,"invalid operation")}gM.exports=nUr});var xM=c((vpe,bM)=>{"use strict";var sUr=Ct(),uUr=me();function vUr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof Error)return!0;for(;r;){if(uUr(r)==="[object Error]")return!0;r=sUr(r)}return!1}bM.exports=vUr});var ls=c((fpe,qM)=>{"use strict";var fUr=xM();qM.exports=fUr});var SM=c((lpe,wM)=>{"use strict";var lUr=Ct(),cUr=ui(),dUr=ls();function pUr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof RangeError)return!0;if(dUr(r))for(;r;){if(cUr(r)==="rangeerror")return!0;r=lUr(r)}return!1}wM.exports=pUr});var AM=c((cpe,EM)=>{"use strict";var yUr=SM();EM.exports=yUr});var TM=c((dpe,_M)=>{"use strict";var mUr=Ct(),hUr=ui(),gUr=ls();function bUr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof TypeError)return!0;if(gUr(r))for(;r;){if(hUr(r)==="typeerror")return!0;r=mUr(r)}return!1}_M.exports=bUr});var IM=c((ppe,jM)=>{"use strict";var xUr=TM();jM.exports=xUr});var NM=c((ype,OM)=>{"use strict";var qUr=Ct(),wUr=ui(),SUr=ls();function EUr(r){if(typeof r!="object"||r===null)return!1;if(r instanceof SyntaxError)return!0;if(SUr(r))for(;r;){if(wUr(r)==="syntaxerror")return!0;r=qUr(r)}return!1}OM.exports=EUr});var kM=c((mpe,DM)=>{"use strict";var AUr=NM();DM.exports=AUr});var ql=c((hpe,BM)=>{"use strict";var _Ur=AM(),TUr=IM(),jUr=kM();function IUr(r){return _Ur(r)?RangeError:TUr(r)?TypeError:jUr(r)?SyntaxError:Error}BM.exports=IUr});var RM=c((gpe,FM)=>{"use strict";var OUr=ye(),NUr=xl(),DUr=ql();function kUr(r,e,a,t){var o,i,n;o=!1,n=t(r,e,o);try{return OUr(a,n,o,!1)}catch(s){throw i=DUr(s),new i(NUr(s.message))}}FM.exports=kUr});var VM=c((bpe,zM)=>{"use strict";var BUr=bl(),FUr=hM(),RUr=RM();function zUr(r){return e;function e(a,t,o){return BUr(t)?FUr(a,t,o):RUr(a,t,o,r)}}zM.exports=zUr});var CM=c((xpe,UM)=>{"use strict";function VUr(r,e,a){return r[e]=a,!0}UM.exports=VUr});var LM=c((qpe,PM)=>{"use strict";var UUr=Qo();function CUr(r){return r===0&&1/r===UUr}PM.exports=CUr});var GM=c((wpe,MM)=>{"use strict";var PUr=LM();MM.exports=PUr});var $M=c((Spe,YM)=>{"use strict";var LUr=1401298464324817e-60;YM.exports=LUr});var JM=c((Epe,WM)=>{"use strict";var MUr=16777215;WM.exports=MUr});var KM=c((Ape,XM)=>{"use strict";var GUr=-16777215;XM.exports=GUr});var a9=c((_pe,e9)=>{"use strict";var YUr=Ge().isPrimitive,$Ur=pe().isPrimitive,ZM=Sa(),WUr=GM(),JUr=fa(),QM=Pi(),r9=Qo(),cs=$M(),XUr=JM(),KUr=KM(),HUr=dv(),ZUr=vv(),QUr=nv(),rCr=Su(),eCr=_u(),aCr=an();function HM(r){return r!==r||r===QM||r===r9?"float32":ZM(r)?r>=KUr&&r<=XUr?"float32":"float64":r>-cs&&r<cs?"float64":"float32"}function tCr(r){return YUr(r)?r!==r||r===QM||r===r9?"float32":ZM(r)?r===0&&WUr(r)?"float32":r<0?r>=HUr?"int8":r>=ZUr?"int16":r>=QUr?"int32":"float64":r<=rCr?"uint8":r<=eCr?"uint16":r<=aCr?"uint32":"float64":r>-cs&&r<cs?"float64":"float32":$Ur(r)?"bool":JUr(r)?HM(r.re)==="float64"||HM(r.im)==="float64"?"complex128":"complex64":"generic"}e9.exports=tCr});var wl=c((Tpe,t9)=>{"use strict";var iCr=a9();t9.exports=iCr});var o9=c((jpe,i9)=>{"use strict";var oCr={Complex64:"complex64",Complex128:"complex128"};i9.exports=oCr});var n9=c((Ipe,nCr)=>{nCr.exports=["complex64","complex128"]});var u9=c((Ope,s9)=>{"use strict";var sCr=n9();function uCr(){return sCr.slice()}s9.exports=uCr});var f9=c((Npe,v9)=>{"use strict";var vCr=u9();v9.exports=vCr});var Sl=c((Dpe,l9)=>{"use strict";var fCr=f9(),lCr=fCr();l9.exports=lCr});var y9=c((kpe,p9)=>{"use strict";var cCr=Cn(),c9=Sl(),d9=[],ds;for(ds=0;ds<c9.length;ds++)d9.push(cCr(c9[ds]));p9.exports=d9});var g9=c((Bpe,h9)=>{"use strict";var dCr=gt(),pCr=o9(),yCr=y9(),m9=Sl(),mCr=m9.length;function hCr(r){var e;for(e=0;e<mCr;e++)if(r instanceof yCr[e])return m9[e];return pCr[dCr(r)]||null}h9.exports=hCr});var El=c((Fpe,b9)=>{"use strict";var gCr=g9();b9.exports=gCr});var x9=c((Rpe,bCr)=>{bCr.exports={all:["bool","complex64","complex128","float32","float64","generic","int16","int32","int8","uint16","uint32","uint8","uint8c"],typed:["bool","complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],floating_point:["complex64","complex128","float32","float64"],real_floating_point:["float32","float64"],complex_floating_point:["complex64","complex128"],boolean:["bool"],integer:["int16","int32","int8","uint16","uint32","uint8","uint8c"],signed_integer:["int16","int32","int8"],unsigned_integer:["uint16","uint32","uint8","uint8c"],real:["float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"],numeric:["complex64","complex128","float32","float64","int16","int32","int8","uint16","uint32","uint8","uint8c"]}});var E9=c((zpe,S9)=>{"use strict";var xCr=tt(),q9=x9(),w9=/_and_generic$/;function qCr(){var r,e,a;return arguments.length===0?q9.all.slice():(a=!1,r=arguments[0],w9.test(r)&&(r=xCr(r,w9,""),r!=="all"&&(a=!0)),e=q9[r],e=e?e.slice():[],a&&e.length>0&&e.push("generic"),e)}S9.exports=qCr});var Al=c((Vpe,A9)=>{"use strict";var wCr=E9();A9.exports=wCr});var T9=c((Upe,_9)=>{"use strict";var SCr=Ue().factory,ECr=Al(),ACr=SCr(ECr("complex_floating_point"));_9.exports=ACr});var ps=c((Cpe,j9)=>{"use strict";var _Cr=T9();j9.exports=_Cr});var N9=c((Ppe,O9)=>{"use strict";var _l=Xr(),TCr=ne(),jCr=Ge().isPrimitive,ICr=ps(),OCr=fa(),NCr=pe().isPrimitive,DCr=it(),kCr=bi(),BCr=gi(),FCr=Fa(),RCr=ma(),ys=ka(),zCr=El(),I9=pr(),VCr=ys.get("order"),UCr=ys.get("dtypes.real_floating_point"),CCr=ys.get("dtypes.complex_floating_point"),PCr=ys.get("dtypes.boolean");function LCr(r){var e,a,t,o,i,n,s;if(a={dtype:"",order:VCr,readonly:!1},arguments.length>1){if(e=arguments[1],!TCr(e))throw new TypeError(I9("invalid argument. Options argument must be an object. Value: `%s`.",e));_l(e,"dtype")&&(a.dtype=e.dtype),_l(e,"order")&&(a.order=e.order),_l(e,"readonly")&&(a.readonly=e.readonly)}if(o=jCr(r),a.dtype===""?o?n=UCr:NCr(r)?n=PCr:OCr(r)?(n=zCr(r),n===null&&(n=CCr)):n="generic":n=a.dtype,t=FCr(n,1),t===null)throw new TypeError(I9("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",n));return ICr(n)&&o?s=[r,0]:s=r,DCr(t)?i=kCr(n):i=BCr(n),i(t,0,s),new RCr(n,t,[],[0],0,a.order,a)}O9.exports=LCr});var Tl=c((Lpe,D9)=>{"use strict";var MCr=N9();D9.exports=MCr});var F9=c((Mpe,B9)=>{"use strict";var GCr=is(),YCr=se(),$Cr=Ge().isPrimitive,WCr=fe().isPrimitive,JCr=fa(),XCr=wo(),KCr=Mn(),HCr=Wn(),ZCr=$n(),k9=_n(),QCr=cv(),rPr=uv(),ePr=ov(),ms=wl(),aPr=El(),Ni=Tl(),ii=pr(),tPr=xl(),iPr=ql();function Di(r){return{dtype:r}}function oPr(r,e,a,t,o){var i,n,s,u,v;if(!YCr(a))if(s=r.dtype,s==="generic")a=Ni(a,Di(s));else if($Cr(a))if(KCr(s))a=Ni(a,Di(s));else if(HCr(s))if(n=ms(a),k9(n,s))a=Ni(a,Di(s));else throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s));else if(ZCr(s)){if(!WCr(a))throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",ms(a),s));if(a<0?n=ms(a):a<=QCr?n="int8":a<=rPr?n="int16":a<=ePr?n="int32":n="float64",k9(n,s))a=Ni(a,Di(s));else throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s))}else if(s==="binary")if(n=ms(a),n==="uint8")a=Ni(a,Di(s));else throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",n,s));else throw new TypeError(ii("invalid operation. Unsupported target array data type. Data type: `%s`.",s));else if(JCr(a)){if(!XCr(s))throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",aPr(a),s));a=Ni(a,Di(s))}else throw new TypeError(ii("invalid operation. Assigned value cannot be safely cast to the target array data type. Data types: [%s, %s].",typeof a,s));i=!1,v=o(r,e,i);try{return GCr(a,t,v,i),!0}catch(f){throw u=iPr(f),new u(tPr(f.message))}}B9.exports=oPr});var z9=c((Gpe,R9)=>{"use strict";var nPr=bl(),sPr=CM(),uPr=F9();function vPr(r){return e;function e(a,t,o,i){return nPr(t)?sPr(a,t,o):uPr(a,t,o,i,r)}}R9.exports=vPr});var G9=c((Ype,M9)=>{"use strict";var fPr=Ir(),U9=ma(),lPr=Nv(),V9=DP(),C9=ML(),P9=WL(),L9=rM(),jl=VM(),Il=z9(),cPr=jl(C9),dPr=Il(C9),pPr=jl(P9),yPr=Il(P9),mPr=jl(L9),hPr=Il(L9);function ki(r,e,a,t,o,i,n){var s,u,v;return u=arguments.length,this instanceof ki?(U9.call(this,r,e,a,t,o,i,u<7?{}:n),V9?(v=a.length,s={},v===0?(s.get=cPr,s.set=dPr):v===1?(s.get=pPr,s.set=yPr):(s.get=mPr,s.set=hPr),new V9(this,s)):(console.warn("WARNING: Proxy objects are not supported in the current environment. Some `FancyArray` functionality may not be available."),this)):u<7?new ki(r,e,a,t,o,i):new ki(r,e,a,t,o,i,n)}lPr(ki,U9);fPr(ki,"name","ndarray");M9.exports=ki});var $9=c(($pe,Y9)=>{"use strict";var gPr=G9();Y9.exports=gPr});var Ol=c((Wpe,W9)=>{"use strict";function bPr(r){return typeof r=="symbol"}W9.exports=bPr});var X9=c((Jpe,J9)=>{"use strict";function xPr(r){return Symbol.prototype.toString.call(r)}J9.exports=xPr});var H9=c((Xpe,K9)=>{"use strict";var qPr=X9(),wPr=/^Symbol\(.*\)$/;function SPr(r){try{return typeof r.valueOf()=="symbol"&&wPr.test(qPr(r))}catch{return!1}}K9.exports=SPr});var Nl=c((Kpe,Z9)=>{"use strict";var EPr=me(),APr=H9();function _Pr(r){return typeof r=="object"&&EPr(r)==="[object Symbol]"&&APr(r)}Z9.exports=_Pr});var rG=c((Hpe,Q9)=>{"use strict";var TPr=Ol(),jPr=Nl();function IPr(r){return TPr(r)||jPr(r)}Q9.exports=IPr});var tG=c((Zpe,aG)=>{"use strict";var eG=Ir(),Dl=rG(),OPr=Ol(),NPr=Nl();eG(Dl,"isPrimitive",OPr);eG(Dl,"isObject",NPr);aG.exports=Dl});var oG=c((Qpe,iG)=>{"use strict";function DPr(r){return e;function e(){return r}}iG.exports=DPr});var sG=c((rye,nG)=>{"use strict";var kPr=oG();nG.exports=kPr});var fG=c((eye,vG)=>{"use strict";var uG=Ir(),kl=sG(),Bl=kl(!1),BPr=kl(!1),FPr=kl(!1);uG(Bl,"isPrimitive",BPr);uG(Bl,"isObject",FPr);vG.exports=Bl});var cG=c((aye,lG)=>{"use strict";var RPr=Ys(),zPr=tG(),VPr=fG(),Fl;RPr()?Fl=zPr:Fl=VPr;lG.exports=Fl});var pG=c((tye,dG)=>{"use strict";var UPr=Pa().isPrimitive,CPr=cG().isPrimitive,PPr=ge().isPrimitive;function LPr(r){return UPr(r)||CPr(r)||PPr(r)}dG.exports=LPr});var mG=c((iye,yG)=>{"use strict";var MPr=pG();yG.exports=MPr});var bG=c((oye,gG)=>{"use strict";var GPr=mG(),YPr=So(),hG=pr();function $Pr(r,e){if(typeof r!="object"||r===null)throw new TypeError(hG("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!GPr(e))throw new TypeError(hG("invalid argument. Second argument must be a valid property name. Value: `%s`.",e));return YPr(r,!1)[e]}gG.exports=$Pr});var qG=c((nye,xG)=>{"use strict";var WPr=bG();xG.exports=WPr});var SG=c((sye,wG)=>{"use strict";var JPr=So(),XPr=pr();function KPr(r){if(typeof r!="object"||r===null)throw new TypeError(XPr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return JPr(r,!0)}wG.exports=KPr});var AG=c((uye,EG)=>{"use strict";var HPr=SG();EG.exports=HPr});var Rl=c((vye,ZPr)=>{ZPr.exports={mode:"throw",order:"row-major"}});var Vl=c((fye,TG)=>{"use strict";var QPr=ne(),_G=Xr(),rLr=Ta(),eLr=pi(),zl=pr();function aLr(r,e){return QPr(e)?_G(e,"mode")&&(r.mode=e.mode,!eLr(r.mode))?new TypeError(zl("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode)):_G(e,"order")&&(r.order=e.order,!rLr(r.order))?new TypeError(zl("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null:new TypeError(zl("invalid argument. Options argument must be an object. Value: `%s`.",e))}TG.exports=aLr});var NG=c((lye,OG)=>{"use strict";var tLr=Jt().primitives,iLr=fe().isPrimitive,oLr=ze(),nLr=Ai(),jG=pr(),IG=Rl(),sLr=Vl();function uLr(r,e,a){var t,o;if(t={},t.mode=IG.mode,t.order=IG.order,arguments.length>2&&(o=sLr(t,a),o))throw o;if(!tLr(r))throw new TypeError(jG("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!iLr(e))throw new TypeError(jG("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return nLr(r,oLr(r,t.order),0,t.order,e,t.mode)}OG.exports=uLr});var BG=c((cye,kG)=>{"use strict";var vLr=Jt().primitives,fLr=fe().isPrimitive,lLr=ze(),cLr=Ai().assign,hs=pr(),DG=Rl(),dLr=Vl();function pLr(r,e,a,t){var o,i,n;if(o={},o.mode=DG.mode,o.order=DG.order,arguments.length===4){if(n=dLr(o,arguments[2]),n)throw n;if(typeof t!="object"||t===null)throw new TypeError(hs("invalid argument. Output argument must be either an array, typed array, or object. Value: `%s`.",t));i=t}else if(i=a,typeof i!="object"||i===null)throw new TypeError(hs("invalid argument. Output argument must be either an array, typed array, or object. Value: `%s`.",i));if(!vLr(r))throw new TypeError(hs("invalid argument. Shape argument must be an array-like object containing nonnegative integers. Value: `%s`.",r));if(!fLr(e))throw new TypeError(hs("invalid argument. Linear index must be integer valued. Value: `%s`.",e));return cLr(r,lLr(r,o.order),0,o.order,e,o.mode,i)}kG.exports=pLr});var zG=c((dye,RG)=>{"use strict";var yLr=Ir(),FG=NG(),mLr=BG();yLr(FG,"assign",mLr);RG.exports=FG});var PG=c((pye,CG)=>{"use strict";var Ul=Ir(),hLr=ne(),gLr=pe().isPrimitive,bLr=se(),xLr=Le(),qLr=Xr(),VG=Fe(),wLr=Se(),SLr=oe(),ELr=Jr(),ALr=ye(),_Lr=He().assign,TLr=he(),gs=pr();function UG(r){var e,a,t,o,i,n,s,u,v,f,l;if(!bLr(r))throw new TypeError(gs("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!hLr(e))throw new TypeError(gs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(qLr(e,"readonly")){if(!gLr(e.readonly))throw new TypeError(gs("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&xLr(r))throw new Error(gs("invalid option. Cannot write to read-only array."))}}if(a=SLr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=ELr(a),f===0&&(n=!0),f/=a[t-2],u=t-1,v=a[u],l=-1,s=wLr(t),s[t-2]=null,i={},Ul(i,"next",d),Ul(i,"return",y),VG&&Ul(i,VG,p),i;function d(){var m,h,g;return l+=1,n||l>=f?{done:!0}:(m=s.slice(),h=TLr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=_Lr(a,"row-major",s,u-2,s)),{value:[m,ALr(r,h,!0,o.writable)],done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return UG(r,o)}}CG.exports=UG});var MG=c((yye,LG)=>{"use strict";var jLr=PG();LG.exports=jLr});var WG=c((mye,$G)=>{"use strict";var Cl=Ir(),ILr=ne(),OLr=pe().isPrimitive,NLr=se(),DLr=Le(),kLr=Xr(),GG=Fe(),BLr=Se(),FLr=oe(),RLr=Jr(),zLr=ye(),VLr=He().assign,ULr=he(),bs=pr();function YG(r){var e,a,t,o,i,n,s,u,v,f,l;if(!NLr(r))throw new TypeError(bs("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!ILr(e))throw new TypeError(bs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(kLr(e,"readonly")){if(!OLr(e.readonly))throw new TypeError(bs("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&DLr(r))throw new Error(bs("invalid option. Cannot write to read-only array."))}}if(a=FLr(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=RLr(a),f===0&&(n=!0),f/=a[t-2],u=t-1,v=a[u],l=-1,s=BLr(t),s[t-2]=null,i={},Cl(i,"next",d),Cl(i,"return",y),GG&&Cl(i,GG,p),i;function d(){var m,h;return l+=1,n||l>=f?{done:!0}:(m=ULr(s),h=(s[u]+1)%v,s[u]=h,h===0&&(s=VLr(a,"row-major",s,u-2,s)),{value:zLr(r,m,!0,o.writable),done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return YG(r,o)}}$G.exports=YG});var XG=c((hye,JG)=>{"use strict";var CLr=WG();JG.exports=CLr});var QG=c((gye,ZG)=>{"use strict";var Pl=Ir(),PLr=ne(),LLr=Ta(),MLr=se(),GLr=Xr(),KG=Fe(),YLr=Se(),$Lr=oe(),WLr=Jr(),JLr=He().assign,Ll=pr();function HG(r){var e,a,t,o,i,n,s,u,v,f;if(!MLr(r))throw new TypeError(Ll("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!PLr(e))throw new TypeError(Ll("invalid argument. Options argument must be an object. Value: `%s`.",e));if(GLr(e,"order")){if(!LLr(e.order))throw new TypeError(Ll("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=$Lr(r),t=a.length,v=WLr(a),v===0&&(n=!0),o.order==="row-major"?u=t-1:u=0,f=-1,s=YLr(t),i={},Pl(i,"next",l),Pl(i,"return",d),KG&&Pl(i,KG,y),i;function l(){return f+=1,n||f>=v?{done:!0}:(f>0&&(s=JLr(a,o.order,s,u,s)),{value:[s.slice(),r.get.apply(r,s)],done:!1})}function d(p){return n=!0,arguments.length?{value:p,done:!0}:{done:!0}}function y(){return HG(r,o)}}ZG.exports=HG});var eY=c((bye,rY)=>{"use strict";var XLr=QG();rY.exports=XLr});var oY=c((xye,iY)=>{"use strict";var Ml=Ir(),KLr=ne(),HLr=Ta(),ZLr=ke(),QLr=ge().isPrimitive,rMr=Xr(),aY=Fe(),eMr=Se(),aMr=Jr(),tMr=He().assign,xs=pr();function tY(r){var e,a,t,o,i,n,s,u,v,f;if(!ZLr(r))throw new TypeError(xs("invalid argument. First argument must be an array of nonnegative integers. Value: `%s`.",r));if(t={order:"row-major"},arguments.length>1){if(e=arguments[1],!KLr(e))throw new TypeError(xs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(rMr(e,"order")){if(!HLr(e.order))throw new TypeError(xs("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));t.order=e.order}}for(a=r.length,u=[],f=0;f<a;f++){if(!QLr(r[f]))throw new TypeError(xs("invalid argument. First argument must be an array of nonnegative integers. Value: `%s`.",r));u.push(r[f])}return v=aMr(u),v===0&&(i=!0),t.order==="row-major"?s=a-1:s=0,f=-1,n=eMr(a),o={},Ml(o,"next",l),Ml(o,"return",d),aY&&Ml(o,aY,y),o;function l(){return f+=1,i||f>=v?{done:!0}:(f>0&&(n=tMr(r,t.order,n,s,n)),{value:n.slice(),done:!1})}function d(p){return i=!0,arguments.length?{value:p,done:!0}:{done:!0}}function y(){return tY(u,t)}}iY.exports=tY});var sY=c((qye,nY)=>{"use strict";var iMr=oY();nY.exports=iMr});var fY=c((wye,vY)=>{"use strict";var oMr=se(),nMr=ke(),sMr=ge().isPrimitive,uY=os(),uMr=oe(),Gl=pr();function vMr(r,e){var a,t,o,i;if(!oMr(r))throw new TypeError(Gl("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!nMr(e))throw new TypeError(Gl("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.",e));if(t=e.length,a=uMr(r),a.length===t){for(i=0;i<t;i++){if(o=e[i],!sMr(o))throw new TypeError(Gl("invalid argument. Second argument must be an array of nonnegative integers. Value: `%s`.","["+e.join(",")+"]"));if(a[i]!==o)return uY(r,e)}return r}return uY(r,e)}vY.exports=vMr});var Yl=c((Sye,lY)=>{"use strict";var fMr=fY();lY.exports=fMr});var pY=c((Eye,dY)=>{"use strict";var lMr=se(),cMr=Ve(),dMr=qi(),pMr=Yl(),yMr=oe(),cY=pr();function mMr(r){var e,a,t,o,i,n,s;if(a=arguments.length,a===0)t=[];else if(a>1)for(t=[],s=0;s<arguments.length;s++)t.push(arguments[s]);else if(lMr(r))t=[r];else if(cMr(r))t=r;else throw new TypeError(cY("invalid argument. First argument must be either an ndarray or an array of ndarrays. Value: `%s`.",r));for(n=t.length,e=[],s=0;s<n;s++)try{e.push(yMr(t[s]))}catch{throw new TypeError(cY("invalid argument. An ndarray argument must be an ndarray. Value: `%s`.",t[s]))}if(i=dMr(e),i===null)throw new Error("invalid arguments. Input arrays must be broadcast compatible.");for(o=[],s=0;s<n;s++)o.push(pMr(t[s],i));return o}dY.exports=mMr});var $l=c((Aye,yY)=>{"use strict";var hMr=pY();yY.exports=hMr});var bY=c((_ye,gY)=>{"use strict";var Wl=Ir(),gMr=Ve(),bMr=ns().isPrimitive,mY=Fe(),xMr=Se(),qMr=oe(),wMr=Jr(),SMr=ye(),EMr=$l(),AMr=He().assign,_Mr=he(),qs=pr();function hY(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m;if(!gMr(r))throw new TypeError(qs("invalid argument. First argument must be an array of ndarrays. Value: `%s`.",r));if(!bMr(e))throw new TypeError(qs("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));try{o=EMr(r)}catch{throw new TypeError(qs("invalid argument. First argument must be an array of ndarrays which are broadcast-compatible. Value: `%s`.",r))}if(d=o.length,a=qMr(o[0]),f=a.length,f<=e)throw new TypeError(qs("invalid argument. First argument must be an array of ndarrays having at least %d dimensions after broadcasting.",e+1));for(l=wMr(a),l===0&&(i=!0),s=f-e-1,y=s+1;y<f;y++)l/=a[y];for(l*=d,v=a[s],n=[],y=0;y<d;y++){for(u=xMr(f),p=s+1;p<f;p++)u[p]=null;n.push(u)}return y=-1,m=-1,t={},Wl(t,"next",h),Wl(t,"return",g),mY&&Wl(t,mY,b),t;function h(){var S,w,A;return y+=1,i||y>=l?{done:!0}:(m=(m+1)%d,S=n[m],w=_Mr(S),A=(S[s]+1)%v,S[s]=A,A===0&&(S=AMr(a,"row-major",S,s-1,S)),{value:SMr(o[m],w,!0,!1),done:!1})}function g(S){return i=!0,arguments.length?{value:S,done:!0}:{done:!0}}function b(){return hY(r,e)}}gY.exports=hY});var qY=c((Tye,xY)=>{"use strict";var TMr=bY();xY.exports=TMr});var AY=c((jye,EY)=>{"use strict";var Jl=Ir(),jMr=ne(),IMr=pe().isPrimitive,OMr=se(),NMr=Le(),DMr=Xr(),wY=Fe(),kMr=Se(),BMr=oe(),FMr=Jr(),RMr=ye(),zMr=He().assign,VMr=he(),ws=pr();function SY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!OMr(r))throw new TypeError(ws("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!jMr(e))throw new TypeError(ws("invalid argument. Options argument must be an object. Value: `%s`.",e));if(DMr(e,"readonly")){if(!IMr(e.readonly))throw new TypeError(ws("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&NMr(r))throw new Error(ws("invalid option. Cannot write to read-only array."))}}if(a=BMr(r),t=a.length,t<3)throw new TypeError("invalid argument. First argument must be an ndarray having at least three dimensions.");return f=FMr(a),f===0&&(n=!0),f/=a[t-1]*a[t-2],u=t-3,v=a[u],l=-1,s=kMr(t),s[t-1]=null,s[t-2]=null,i={},Jl(i,"next",d),Jl(i,"return",y),wY&&Jl(i,wY,p),i;function d(){var m,h;return l+=1,n||l>=f?{done:!0}:(m=VMr(s),h=(s[u]+1)%v,s[u]=h,h===0&&(s=zMr(a,"row-major",s,u-1,s)),{value:RMr(r,m,!0,o.writable),done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return SY(r,o)}}EY.exports=SY});var TY=c((Iye,_Y)=>{"use strict";var UMr=AY();_Y.exports=UMr});var NY=c((Oye,OY)=>{"use strict";var Xl=Ir(),CMr=ne(),PMr=pe().isPrimitive,LMr=se(),MMr=Le(),GMr=Xr(),jY=Fe(),YMr=Se(),$Mr=oe(),WMr=Jr(),JMr=ye(),XMr=He().assign,KMr=he(),Ss=pr();function IY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!LMr(r))throw new TypeError(Ss("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!CMr(e))throw new TypeError(Ss("invalid argument. Options argument must be an object. Value: `%s`.",e));if(GMr(e,"readonly")){if(!PMr(e.readonly))throw new TypeError(Ss("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&MMr(r))throw new Error(Ss("invalid option. Cannot write to read-only array."))}}if(a=$Mr(r),t=a.length,t<3)throw new TypeError("invalid argument. First argument must be an ndarray having at least three dimensions.");return f=WMr(a),f===0&&(n=!0),f/=a[t-1]*a[t-2],u=t-3,v=a[u],l=-1,s=YMr(t),s[t-1]=null,s[t-2]=null,i={},Xl(i,"next",d),Xl(i,"return",y),jY&&Xl(i,jY,p),i;function d(){var m,h,g;return l+=1,n||l>=f?{done:!0}:(m=s.slice(),h=KMr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=XMr(a,"row-major",s,u-1,s)),{value:[m,JMr(r,h,!0,o.writable)],done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return IY(r,o)}}OY.exports=IY});var kY=c((Nye,DY)=>{"use strict";var HMr=NY();DY.exports=HMr});var zY=c((Dye,RY)=>{"use strict";var Kl=Ir(),ZMr=ne(),QMr=pe().isPrimitive,r9r=se(),e9r=Le(),a9r=Xr(),BY=Fe(),t9r=Se(),i9r=oe(),o9r=Jr(),n9r=ye(),s9r=He().assign,u9r=he(),Es=pr();function FY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!r9r(r))throw new TypeError(Es("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!ZMr(e))throw new TypeError(Es("invalid argument. Options argument must be an object. Value: `%s`.",e));if(a9r(e,"readonly")){if(!QMr(e.readonly))throw new TypeError(Es("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&e9r(r))throw new Error(Es("invalid option. Cannot write to read-only array."))}}if(a=i9r(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=o9r(a),f===0&&(n=!0),f/=a[t-1],u=t-2,v=a[u],l=-1,s=t9r(t),s[t-1]=null,i={},Kl(i,"next",d),Kl(i,"return",y),BY&&Kl(i,BY,p),i;function d(){var m,h,g;return l+=1,n||l>=f?{done:!0}:(m=s.slice(),h=u9r(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=s9r(a,"row-major",s,u-1,s)),{value:[m,n9r(r,h,!0,o.writable)],done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return FY(r,o)}}RY.exports=FY});var UY=c((kye,VY)=>{"use strict";var v9r=zY();VY.exports=v9r});var MY=c((Bye,LY)=>{"use strict";var Hl=Ir(),f9r=ne(),l9r=pe().isPrimitive,c9r=se(),d9r=Le(),p9r=Xr(),CY=Fe(),y9r=Se(),m9r=oe(),h9r=Jr(),g9r=ye(),b9r=He().assign,x9r=he(),As=pr();function PY(r){var e,a,t,o,i,n,s,u,v,f,l;if(!c9r(r))throw new TypeError(As("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={writable:!1},arguments.length>1){if(e=arguments[1],!f9r(e))throw new TypeError(As("invalid argument. Options argument must be an object. Value: `%s`.",e));if(p9r(e,"readonly")){if(!l9r(e.readonly))throw new TypeError(As("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",e.readonly));if(o.writable=!e.readonly,o.writable&&d9r(r))throw new Error(As("invalid option. Cannot write to read-only array."))}}if(a=m9r(r),t=a.length,t<2)throw new TypeError("invalid argument. First argument must be an ndarray having at least two dimensions.");return f=h9r(a),f===0&&(n=!0),f/=a[t-1],u=t-2,v=a[u],l=-1,s=y9r(t),s[t-1]=null,i={},Hl(i,"next",d),Hl(i,"return",y),CY&&Hl(i,CY,p),i;function d(){var m,h;return l+=1,n||l>=f?{done:!0}:(m=x9r(s),h=(s[u]+1)%v,s[u]=h,h===0&&(s=b9r(a,"row-major",s,u-1,s)),{value:g9r(r,m,!0,o.writable),done:!1})}function y(m){return n=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return PY(r,o)}}LY.exports=PY});var YY=c((Fye,GY)=>{"use strict";var q9r=MY();GY.exports=q9r});var HY=c((Rye,KY)=>{"use strict";var Zl=Ir(),w9r=ne(),$Y=pe().isPrimitive,S9r=fe().isPrimitive,E9r=se(),A9r=Le(),WY=Xr(),JY=Fe(),_9r=Ei(),T9r=oe(),j9r=ya(),I9r=Jr(),O9r=ye(),N9r=Ce(),D9r=he(),oi=pr();function XY(r,e){var a,t,o,i,n,s,u,v,f,l;if(!E9r(r))throw new TypeError(oi("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!S9r(e))throw new TypeError(oi("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(i={writable:!1,keepdim:!1},arguments.length>2){if(a=arguments[2],!w9r(a))throw new TypeError(oi("invalid argument. Options argument must be an object. Value: `%s`.",a));if(WY(a,"readonly")){if(!$Y(a.readonly))throw new TypeError(oi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(i.writable=!a.readonly,i.writable&&A9r(r))throw new Error(oi("invalid option. Cannot write to read-only array."))}if(WY(a,"keepdim")){if(!$Y(a.keepdim))throw new TypeError(oi("invalid option. `%s` option must be a boolean. Option: `%s`.","keepdim",a.keepdim));i.keepdim=a.keepdim}}if(t=T9r(r),o=t.length,f=j9r(e,o-1),f===-1)throw new RangeError(oi("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",o,e));return v=I9r(t),v===0&&(s=!0),v=t[f],l=-1,u=_9r(o),n={},Zl(n,"next",d),Zl(n,"return",y),JY&&Zl(n,JY,p),n;function d(){var m;return l+=1,s||l>=v?{done:!0}:(i.keepdim?u[f]=new N9r(l,l+1,1):u[f]=l,m=D9r(u),{value:O9r(r,m,!0,i.writable),done:!1})}function y(m){return s=!0,arguments.length?{value:m,done:!0}:{done:!0}}function p(){return XY(r,e,i)}}KY.exports=XY});var QY=c((zye,ZY)=>{"use strict";var k9r=HY();ZY.exports=k9r});var e$=c((Vye,r$)=>{"use strict";var B9r=it(),F9r=ot(),R9r=Et(),z9r=po();function V9r(r){var e=z9r(r);return B9r(r)?F9r(e):R9r(e)}r$.exports=V9r});var Ql=c((Uye,a$)=>{"use strict";var U9r=e$();a$.exports=U9r});var i$=c((Cye,t$)=>{"use strict";var C9r=Ql();function P9r(r){var e,a,t,o;for(t=C9r(r),a=r.length,e=[],o=0;o<a;o++)e.push(t(r,o));return e}t$.exports=P9r});var n$=c((Pye,o$)=>{"use strict";var L9r=i$();o$.exports=L9r});var v$=c((Lye,u$)=>{"use strict";var s$=Ql(),M9r=st().factory;function G9r(r,e,a){var t,o,i,n,s,u,v;for(o=s$(r),i=s$(e),t=M9r(a),s=r.length-1,n=[],u=0;u<e.length;u++)v=t(i(e,u),s),n.push(o(r,v));return n}u$.exports=G9r});var l$=c((Mye,f$)=>{"use strict";var Y9r=Ue().factory,$9r=Al(),W9r=Y9r($9r("boolean"));f$.exports=W9r});var rc=c((Gye,c$)=>{"use strict";var J9r=l$();c$.exports=J9r});var p$=c((Yye,d$)=>{"use strict";var X9r=dn(),K9r=cn(),H9r=oo(),Z9r=io(),Q9r=pr();function rGr(r,e){if(X9r(r))return H9r(r,e);if(K9r(r))return Z9r(r,e);throw new TypeError(Q9r("invalid argument. First argument must be a complex-valued floating-point array. Value: `%s`.",r))}d$.exports=rGr});var ec=c(($ye,y$)=>{"use strict";var eGr=p$();y$.exports=eGr});var h$=c((Wye,m$)=>{"use strict";var aGr=va();function tGr(r,e){return new aGr(r.buffer,r.byteOffset+r.BYTES_PER_ELEMENT*e,r.length-e)}m$.exports=tGr});var ac=c((Jye,g$)=>{"use strict";var iGr=h$();g$.exports=iGr});var E$=c((Xye,S$)=>{"use strict";var b$=ps(),x$=rc(),tc=ft(),q$=ec(),w$=ac(),_s=st().factory;function oGr(r,e,a,t,o,i){var n,s,u,v,f;for(n=_s(a),s=r.length-1,u=i,v=0;v<e.length;v++)f=n(e[v],s),t[u]=r[f],u+=o;return t}function nGr(r,e,a,t,o,i){var n,s,u,v,f,l,d,y,p,m,h;for(s=r.data,u=e.data,v=t.data,f=r.accessors[0],l=e.accessors[0],d=t.accessors[1],n=_s(a),y=s.length-1,p=i,m=0;m<u.length;m++)h=n(l(u,m),y),d(v,p,f(s,h)),p+=o;return v}function sGr(r,e,a,t,o,i){var n,s,u,v,f,l,d,y,p;for(s=e.data,u=e.accessors[0],n=_s(a),v=r.length/2-1,l=o*2,f=i*2,d=0;d<s.length;d++)y=n(u(s,d),v),p=y*2,t[f]=r[p],t[f+1]=r[p+1],f+=l;return t}function uGr(r,e,a,t,o,i){var n,s,u,v,f,l,d;for(s=e.data,u=e.accessors[0],n=_s(a),v=r.length-1,f=i,l=0;l<s.length;l++)d=n(u(s,l),v),t[f]=r[d],f+=o;return t}function vGr(r,e,a,t,o,i){var n,s,u;return n=tc(r),s=tc(e),u=tc(t),n.accessorProtocol||s.accessorProtocol||u.accessorProtocol?b$(n.dtype)&&b$(u.dtype)?(sGr(q$(r,0),s,a,q$(t,0),o,i),t):x$(n.dtype)&&x$(u.dtype)?(uGr(w$(r,0),s,a,w$(t,0),o,i),t):(nGr(n,s,a,u,o,i),t):(oGr(r,e,a,t,o,i),t)}S$.exports=vGr});var T$=c((Kye,_$)=>{"use strict";var fGr=Ir(),A$=v$(),lGr=E$();fGr(A$,"assign",lGr);_$.exports=A$});var k$=c((Hye,D$)=>{"use strict";var j$=ps(),I$=rc(),ic=ft(),O$=ec(),N$=ac(),cGr=st().factory,dGr=pr();function pGr(r,e,a,t,o,i){var n,s,u;for(n=0,s=0;s<e.length;s++)u=o(e[s],i),r[u]=a[n],n+=t;return r}function yGr(r,e,a,t,o,i){var n,s,u,v,f,l,d,y,p;for(n=r.data,s=e.data,u=a.data,v=r.accessors[1],f=e.accessors[0],l=a.accessors[0],d=0,y=0;y<s.length;y++)p=o(f(s,y),i),v(n,p,l(u,d)),d+=t;return n}function mGr(r,e,a,t,o,i){var n,s,u,v,f,l,d;for(n=e.data,s=e.accessors[0],v=t*2,u=0,f=0;f<n.length;f++)l=o(s(n,f),i),d=l*2,r[d]=a[u],r[d+1]=a[u+1],u+=v;return r}function hGr(r,e,a,t,o,i){var n,s,u,v,f;for(n=e.data,s=e.accessors[0],u=0,v=0;v<n.length;v++)f=o(s(n,v),i),r[f]=a[u],u+=t;return r}function gGr(r,e,a,t){var o,i,n,s,u,v;if(e.length>0)if(a.length===e.length)i=1;else if(a.length===1)i=0;else throw new Error(dGr("invalid argument. The third argument must be broadcast compatible with the second argument. Array shape: (%d). Desired shape: (%d).",a.length,e.length));return o=cGr(t),n=r.length-1,s=ic(r),u=ic(e),v=ic(a),s.accessorProtocol||u.accessorProtocol||v.accessorProtocol?j$(s.dtype)&&j$(v.dtype)?(mGr(O$(r,0),u,O$(a,0),i,o,n),r):I$(s.dtype)&&I$(v.dtype)?(hGr(N$(r,0),u,N$(a,0),i,o,n),r):(yGr(s,u,v,i,o,n),r):(pGr(r,e,a,i,o,n),r)}D$.exports=gGr});var F$=c((Zye,B$)=>{"use strict";var bGr=k$();B$.exports=bGr});var C$=c((Qye,U$)=>{"use strict";var oc=Ir(),xGr=ne(),qGr=pe().isPrimitive,wGr=ev().primitives,SGr=se(),EGr=Le(),AGr=Xr(),R$=Fe(),_Gr=Se(),TGr=n$(),z$=T$(),jGr=F$(),IGr=oe(),OGr=ya(),NGr=Jr(),DGr=ye(),kGr=He().assign,BGr=he(),pt=pr();function V$(r,e){var a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g;if(!SGr(r))throw new TypeError(pt("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!wGr(e))throw new TypeError(pt("invalid argument. Second argument must be an array of integers. Value: `%s`.",e));if(s={writable:!1},arguments.length>2){if(t=arguments[2],!xGr(t))throw new TypeError(pt("invalid argument. Options argument must be an object. Value: `%s`.",t));if(AGr(t,"readonly")){if(!qGr(t.readonly))throw new TypeError(pt("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",t.readonly));if(s.writable=!t.readonly,s.writable&&EGr(r))throw new Error(pt("invalid option. Cannot write to read-only array."))}}if(n=e,e=TGr(e),y=e.length,o=IGr(r),i=o.length,i<=y)throw new TypeError(pt("invalid argument. First argument must be an ndarray having at least %d dimensions.",y+1));for(h=0;h<y;h++){if(m=OGr(e[h],i-1),m===-1)throw new RangeError(pt("invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.",i,e[h]));e[h]=m}for(p=NGr(o),p===0&&(f=!0),h=0;h<y-1;h++)if(e[h]>e[h+1])throw new Error(pt("invalid argument. Dimension indices must be sorted in ascending order. Value: `%s`.",n));for(g=1,h=1;h<y;h++){if(e[h]===e[h-1])throw new Error(pt("invalid argument. Dimension indices must be unique. Value: `%s`.",n));e[g]=e[h],g+=1}for(h=0;h<y;h++)p/=o[e[h]];for(l=_Gr(i),h=0;h<y;h++)l[e[h]]=null;for(a=[],g=0,h=0;h<i;h++){if(h===e[g]){g+=1;continue}a.push(h)}return d=z$(o,a,"throw"),v=z$(l,a,"throw"),h=-1,u={},oc(u,"next",b),oc(u,"return",S),R$&&oc(u,R$,w),u;function b(){var A;return h+=1,f||h>=p?{done:!0}:(A=BGr(l),v=kGr(d,"row-major",v,-1,v),l=jGr(l,a,v,"throw"),{value:DGr(r,A,!0,s.writable),done:!1})}function S(A){return f=!0,arguments.length?{value:A,done:!0}:{done:!0}}function w(){return V$(r,e,s)}}U$.exports=V$});var L$=c((rme,P$)=>{"use strict";var FGr=C$();P$.exports=FGr});var $$=c((eme,Y$)=>{"use strict";var nc=Ir(),RGr=ne(),zGr=pe().isPrimitive,VGr=ns().isPrimitive,UGr=se(),CGr=Le(),PGr=Xr(),M$=Fe(),LGr=Se(),MGr=oe(),GGr=Jr(),YGr=ye(),$Gr=He().assign,WGr=he(),Bi=pr();function G$(r,e){var a,t,o,i,n,s,u,v,f,l,d;if(!UGr(r))throw new TypeError(Bi("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!VGr(e))throw new TypeError(Bi("invalid argument. Second argument must be a positive integer. Value: `%s`.",e));if(o={writable:!1},arguments.length>2){if(a=arguments[2],!RGr(a))throw new TypeError(Bi("invalid argument. Options argument must be an object. Value: `%s`.",a));if(PGr(a,"readonly")){if(!zGr(a.readonly))throw new TypeError(Bi("invalid option. `%s` option must be a boolean. Option: `%s`.","readonly",a.readonly));if(o.writable=!a.readonly,o.writable&&CGr(r))throw new Error(Bi("invalid option. Cannot write to read-only array."))}}if(t=MGr(r),f=t.length,f<=e)throw new TypeError(Bi("invalid argument. First argument must be an ndarray having at least %d dimensions.",e+1));for(l=GGr(t),l===0&&(n=!0),u=f-e-1,d=u+1;d<f;d++)l/=t[d];for(v=t[u],s=LGr(f),d=u+1;d<f;d++)s[d]=null;return d=-1,i={},nc(i,"next",y),nc(i,"return",p),M$&&nc(i,M$,m),i;function y(){var h,g;return d+=1,n||d>=l?{done:!0}:(h=WGr(s),g=(s[u]+1)%v,s[u]=g,g===0&&(s=$Gr(t,"row-major",s,u-1,s)),{value:YGr(r,h,!0,o.writable),done:!1})}function p(h){return n=!0,arguments.length?{value:h,done:!0}:{done:!0}}function m(){return G$(r,e,o)}}Y$.exports=G$});var J$=c((ame,W$)=>{"use strict";var JGr=$$();W$.exports=JGr});var K$=c((tme,X$)=>{"use strict";var XGr=Pe();function KGr(r){var e=typeof r;return r!==null&&(e==="object"||e==="function")&&XGr(r.next)}X$.exports=KGr});var Z$=c((ime,H$)=>{"use strict";var HGr=K$();H$.exports=HGr});var rW=c((ome,Q$)=>{"use strict";var ZGr=se(),QGr=al(),rYr=Xa(),eYr=Tt(),aYr=oe(),tYr=Ka(),iYr=vt(),oYr=pr();function nYr(r){if(!ZGr(r))throw new TypeError(oYr("invalid argument. Must provide an ndarray. Value: `%s`.",r));return QGr(iYr(r),aYr(r),rYr(r),eYr(r),tYr(r))}Q$.exports=nYr});var sc=c((nme,eW)=>{"use strict";var sYr=rW();eW.exports=sYr});var iW=c((sme,tW)=>{"use strict";var uc=Ir(),uYr=Pe(),vYr=Z$(),Ts=Fe(),fYr=sc(),lYr=pr();function aW(r){var e,a;if(!vYr(r))throw new TypeError(lYr("invalid argument. First argument must be an iterator protocol-compliant object. Value: `%s`.",r));return e={},uc(e,"next",t),uc(e,"return",o),Ts&&uYr(r[Ts])&&uc(e,Ts,i),e;function t(){var n;return a?{done:!0}:(n=r.next(),n.done?(a=!0,n):{value:fYr(n.value),done:!1})}function o(n){return a=!0,arguments.length?{value:n,done:!0}:{done:!0}}function i(){return aW(r[Ts]())}}tW.exports=aW});var nW=c((ume,oW)=>{"use strict";var cYr=iW();oW.exports=cYr});var fW=c((vme,vW)=>{"use strict";var vc=Ir(),dYr=ne(),pYr=Ta(),yYr=se(),mYr=Xr(),sW=Fe(),hYr=Se(),gYr=oe(),bYr=Jr(),xYr=He().assign,fc=pr();function uW(r){var e,a,t,o,i,n,s,u,v,f;if(!yYr(r))throw new TypeError(fc("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(o={order:r.order},arguments.length>1){if(e=arguments[1],!dYr(e))throw new TypeError(fc("invalid argument. Options argument must be an object. Value: `%s`.",e));if(mYr(e,"order")){if(!pYr(e.order))throw new TypeError(fc("invalid option. `%s` option must be a recognized order. Option: `%s`.","order",e.order));o.order=e.order}}return a=gYr(r),t=a.length,v=bYr(a),v===0&&(n=!0),o.order==="row-major"?u=t-1:u=0,f=-1,s=hYr(t),i={},vc(i,"next",l),vc(i,"return",d),sW&&vc(i,sW,y),i;function l(){return f+=1,n||f>=v?{done:!0}:(f>0&&(s=xYr(a,o.order,s,u,s)),{value:r.get.apply(r,s),done:!1})}function d(p){return n=!0,arguments.length?{value:p,done:!0}:{done:!0}}function y(){return uW(r,o)}}vW.exports=uW});var cW=c((fme,lW)=>{"use strict";var qYr=fW();lW.exports=qYr});var pW=c((lme,dW)=>{"use strict";var Ze=zt(),Me={};Ze(Me,"nditerColumnEntries",MG());Ze(Me,"nditerColumns",XG());Ze(Me,"nditerEntries",eY());Ze(Me,"nditerIndices",sY());Ze(Me,"nditerInterleaveSubarrays",qY());Ze(Me,"nditerMatrices",TY());Ze(Me,"nditerMatrixEntries",kY());Ze(Me,"nditerRowEntries",UY());Ze(Me,"nditerRows",YY());Ze(Me,"nditerSelectDimension",QY());Ze(Me,"nditerStacks",L$());Ze(Me,"nditerSubarrays",J$());Ze(Me,"nditer2arrayEach",nW());Ze(Me,"nditerValues",cW());dW.exports=Me});var mW=c((cme,yW)=>{"use strict";var wYr=Le(),SYr=Ra(),EYr=oe(),AYr=Xa(),_Yr=Tt(),TYr=Ka(),jYr=vt(),IYr=ma(),OYr=ka(),NYr=OYr("order");function DYr(r){var e,a,t,o,i,n,s;if(s=SYr(r),i=jYr(r),o=EYr(r),e=AYr(r),a=_Yr(r),t=TYr(r)||NYr,arguments.length>1?n=arguments[1]:n={},wYr(r)){if(n.readonly===void 0)n.readonly=!0;else if(n.readonly===!1)throw new Error("invalid argument. Cannot write to a read-only array.")}return new IYr(s,i,o,e,a,t,n)}yW.exports=DYr});var gW=c((dme,hW)=>{"use strict";var kYr=mW();hW.exports=kYr});var bW=c((pme,BYr)=>{BYr.exports={float64:-1,float32:"float64",int32:-1,int16:"int32",int8:"int16",uint32:-1,uint16:"uint32",uint8:"uint16",uint8c:"uint16",complex64:"complex128",complex128:-1,generic:-1,binary:-1,bool:-1}});var qW=c((yme,xW)=>{"use strict";var FYr=Aa(),RYr=Xr(),zYr=Ba(),js=bW();function VYr(){var r,e,a,t;for(a={},r=FYr(js),e=r.length,t=0;t<e;t++)a[r[t]]=js[r[t]];return a}function UYr(r){return arguments.length===0?VYr():(r=zYr(r),RYr(js,r)?js[r]:null)}xW.exports=UYr});var SW=c((mme,wW)=>{"use strict";var CYr=qW();wW.exports=CYr});var _W=c((hme,AW)=>{"use strict";var EW=ge().isPrimitive,PYr=ke(),lc=pr();function LYr(r){var e,a,t,o,i;if(typeof r!="object"||r===null)throw new TypeError(lc("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(t=r.length,EW(t))return t;if(a=r.shape,!PYr(a))throw new TypeError(lc("invalid argument. Must provide an ndarray. Value: `%s`.",r));if(e=a.length,e===0)return 0;for(t=1,i=0;i<e;i++){if(o=a[i],!EW(o))throw new TypeError(lc("invalid argument. Must provide an ndarray. Value: `%s`.",r));t*=o}return t}AW.exports=LYr});var cc=c((gme,TW)=>{"use strict";var MYr=_W();TW.exports=MYr});var IW=c((bme,jW)=>{"use strict";var GYr=ge().isPrimitive,YYr=fe().isPrimitive,$Yr=Yf(),dc=pr();function WYr(r,e){var a;if(typeof r!="object"||r===null)throw new TypeError(dc("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!YYr(e))throw new TypeError(dc("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=$Yr(r,e),GYr(a))return a;throw new TypeError(dc("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}jW.exports=WYr});var NW=c((xme,OW)=>{"use strict";var JYr=IW();OW.exports=JYr});var DW=c((qme,XYr)=>{XYr.exports={float64:{float64:"float64",float32:"float64",int32:"float64",int16:"float64",int8:"float64",uint32:"float64",uint16:"float64",uint8:"float64",uint8c:"float64",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},float32:{float64:"float64",float32:"float32",int32:"float64",int16:"float32",int8:"float32",uint32:"float64",uint16:"float32",uint8:"float32",uint8c:"float32",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},int32:{float64:"float64",float32:"float64",int32:"int32",int16:"int32",int8:"int32",uint32:"float64",uint16:"int32",uint8:"int32",uint8c:"int32",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},int16:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int16",uint32:"float64",uint16:"int32",uint8:"int16",uint8c:"int16",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},int8:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int8",uint32:"float64",uint16:"int32",uint8:"int16",uint8c:"int16",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint32:{float64:"float64",float32:"float64",int32:"float64",int16:"float64",int8:"float64",uint32:"uint32",uint16:"uint32",uint8:"uint32",uint8c:"uint32",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint16:{float64:"float64",float32:"float32",int32:"int32",int16:"int32",int8:"int32",uint32:"uint32",uint16:"uint16",uint8:"uint16",uint8c:"uint16",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint8:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int16",uint32:"uint32",uint16:"uint16",uint8:"uint8",uint8c:"uint8",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},uint8c:{float64:"float64",float32:"float32",int32:"int32",int16:"int16",int8:"int16",uint32:"uint32",uint16:"uint16",uint8:"uint8",uint8c:"uint8c",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},complex128:{float64:"complex128",float32:"complex128",int32:"complex128",int16:"complex128",int8:"complex128",uint32:"complex128",uint16:"complex128",uint8:"complex128",uint8c:"complex128",complex64:"complex128",complex128:"complex128",binary:-1,generic:"generic",bool:-1},complex64:{float64:"complex128",float32:"complex64",int32:"complex128",int16:"complex64",int8:"complex64",uint32:"complex128",uint16:"complex64",uint8:"complex64",uint8c:"complex64",complex64:"complex64",complex128:"complex128",binary:-1,generic:"generic",bool:-1},generic:{float64:"generic",float32:"generic",int32:"generic",int16:"generic",int8:"generic",uint32:"generic",uint16:"generic",uint8:"generic",uint8c:"generic",complex64:"generic",complex128:"generic",binary:-1,generic:"generic",bool:"generic"},binary:{float64:-1,float32:-1,int32:-1,int16:-1,int8:-1,uint32:-1,uint16:-1,uint8:-1,uint8c:-1,complex64:-1,complex128:-1,binary:"binary",generic:-1,bool:-1},bool:{float64:-1,float32:-1,int32:-1,int16:-1,int8:-1,uint32:-1,uint16:-1,uint8:-1,uint8c:-1,complex64:-1,complex128:-1,binary:-1,generic:"generic",bool:"bool"}}});var RW=c((wme,FW)=>{"use strict";var KYr=Aa(),kW=Xr(),BW=Ba(),Is=DW();function HYr(){var r,e,a,t,o,i,n,s,u;for(a={},r=KYr(Is),e=r.length,u=0;u<e;u++){for(o=r[u],n=Is[o],t={},s=0;s<e;s++)i=r[s],t[i]=n[i];a[o]=t}return a}function ZYr(r,e){var a;return arguments.length===0?HYr():(r=BW(r),kW(Is,r)&&(a=Is[r],e=BW(e),kW(a,e))?a[e]:null)}FW.exports=ZYr});var VW=c((Sme,zW)=>{"use strict";var QYr=RW();zW.exports=QYr});var CW=c((Eme,UW)=>{"use strict";var r$r=Qa(),e$r=gt();function a$r(r){return r instanceof r$r||e$r(r)==="MultiSlice"}UW.exports=a$r});var pc=c((Ame,PW)=>{"use strict";var t$r=CW();PW.exports=t$r});var MW=c((_me,LW)=>{"use strict";var i$r=se(),o$r=pc(),n$r=Ve(),s$r=ne(),u$r=pe().isPrimitive,v$r=Xr(),f$r=Qa(),l$r=he(),c$r=ye(),d$r=oe(),Os=pr();function p$r(r,e){var a,t,o,i,n,s,u;if(o={strict:!0},t=arguments.length,!i$r(r))throw new TypeError(Os("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(s$r(arguments[t-1])){if(t-=1,a=arguments[t],v$r(a,"strict")){if(!u$r(a.strict))throw new TypeError(Os("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=d$r(r),t===1&&n.length>0)throw new RangeError(Os("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",n.join(","),0))}if(o$r(e)){if(s=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else{if(n$r(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],u=1;u<t;u++)i.push(arguments[u]);try{s=l$r(i)}catch{for(u=0;u<i.length;u++)try{new f$r(i[u])}catch{throw new TypeError(Os("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(i[u])))}}}return c$r(r,s,o.strict,!1)}LW.exports=p$r});var yc=c((Tme,GW)=>{"use strict";var y$r=MW();GW.exports=y$r});var WW=c((jme,$W)=>{"use strict";var YW=se(),m$r=pc(),h$r=Ve(),g$r=ne(),b$r=pe().isPrimitive,x$r=Le(),q$r=Xr(),w$r=Qa(),S$r=he(),E$r=is(),A$r=oe(),Vo=pr();function _$r(r,e,a){var t,o,i,n,s,u,v;if(i={strict:!0},o=arguments.length,!YW(r))throw new TypeError(Vo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!YW(e))throw new TypeError(Vo("invalid argument. Second argument must be an ndarray. Value: `%s`.",e));if(x$r(e))throw new Error("invalid argument. Cannot write to a read-only array.");if(g$r(arguments[o-1])){if(o-=1,t=arguments[o],q$r(t,"strict")){if(!b$r(t.strict))throw new TypeError(Vo("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}if(s=A$r(e),o===2&&s.length>0)throw new RangeError(Vo("invalid argument. Number of slice dimensions does not match the number of array dimensions. Array shape: (%s). Slice dimensions: %u.",s.join(","),0))}if(m$r(a)){if(u=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else{if(h$r(a)){if(n=a,o>3)throw new Error("invalid invocation. Too many arguments.")}else for(n=[],v=2;v<o;v++)n.push(arguments[v]);try{u=S$r(n)}catch{for(v=0;v<n.length;v++)try{new w$r(n[v])}catch{throw new TypeError(Vo("invalid argument. Slice arguments must be either a Slice, integer, null, or undefined. Value: `%s`.",String(n[v])))}}}return E$r(r,e,u,i.strict)}$W.exports=_$r});var XW=c((Ime,JW)=>{"use strict";var T$r=WW();JW.exports=T$r});var ZW=c((Ome,HW)=>{"use strict";var j$r=ne(),I$r=pe().isPrimitive,KW=fe().isPrimitive,O$r=se(),N$r=Si(),D$r=Ff(),k$r=wi(),B$r=Xr(),F$r=Ce(),R$r=Xf(),Uo=pr();function z$r(r,e,a){var t,o,i;if(i={strict:!0},!O$r(r))throw new TypeError(Uo("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!KW(e))throw new TypeError(Uo("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(KW(a)||D$r(a))o=a;else if(k$r(a)||N$r(a))o=new F$r;else throw new TypeError(Uo("invalid argument. Third argument must be either a Slice, integer, null, or undefined. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!j$r(t))throw new TypeError(Uo("invalid argument. Options argument must be an object. Value: `%s`.",t));if(B$r(t,"strict")){if(!I$r(t.strict))throw new TypeError(Uo("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));i.strict=t.strict}}return R$r(r,e,o,i.strict,!1)}HW.exports=z$r});var rJ=c((Nme,QW)=>{"use strict";var V$r=ZW();QW.exports=V$r});var tJ=c((Dme,aJ)=>{"use strict";var U$r=ne(),C$r=pe().isPrimitive,eJ=fe().isPrimitive,P$r=se(),L$r=Xr(),M$r=Kf(),Co=pr();function G$r(r,e,a){var t,o;if(o={strict:!0},!P$r(r))throw new TypeError(Co("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!eJ(e))throw new TypeError(Co("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!eJ(a))throw new TypeError(Co("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!U$r(t))throw new TypeError(Co("invalid argument. Options argument must be an object. Value: `%s`.",t));if(L$r(t,"strict")){if(!C$r(t.strict))throw new TypeError(Co("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return M$r(r,e,a,o.strict,!1)}aJ.exports=G$r});var oJ=c((kme,iJ)=>{"use strict";var Y$r=tJ();iJ.exports=Y$r});var uJ=c((Bme,sJ)=>{"use strict";var $$r=ne(),W$r=pe().isPrimitive,nJ=fe().isPrimitive,J$r=se(),X$r=Xr(),K$r=Hf(),Po=pr();function H$r(r,e,a){var t,o;if(o={strict:!0},!J$r(r))throw new TypeError(Po("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!nJ(e))throw new TypeError(Po("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(!nJ(a))throw new TypeError(Po("invalid argument. Third argument must be an integer. Value: `%s`.",a));if(arguments.length>3){if(t=arguments[3],!$$r(t))throw new TypeError(Po("invalid argument. Options argument must be an object. Value: `%s`.",t));if(X$r(t,"strict")){if(!W$r(t.strict))throw new TypeError(Po("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",t.strict));o.strict=t.strict}}return K$r(r,e,a,o.strict,!1)}sJ.exports=H$r});var fJ=c((Fme,vJ)=>{"use strict";var Z$r=uJ();vJ.exports=Z$r});var cJ=c((Rme,lJ)=>{"use strict";var Q$r=se(),rWr=Ve(),eWr=ne(),aWr=Ge().isPrimitive,tWr=pe().isPrimitive,iWr=wi(),oWr=Si(),nWr=Xr(),sWr=oe(),uWr=Zf(),Ns=pr();function vWr(r){return!(aWr(r)||iWr(r)||oWr(r))}function fWr(r,e){var a,t,o,i,n,s;if(o={strict:!0},t=arguments.length,!Q$r(r))throw new TypeError(Ns("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(eWr(arguments[t-1])){if(t-=1,a=arguments[t],nWr(a,"strict")){if(!tWr(a.strict))throw new TypeError(Ns("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=sWr(r),t===1&&n.length>0)throw new RangeError(Ns("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",n.join(","),0))}if(rWr(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],s=1;s<t;s++)i.push(arguments[s]);for(s=0;s<i.length;s++)if(vWr(i[s]))throw new TypeError(Ns("invalid argument. Each index argument must be either an integer, null, or undefined. Value: `%s`.",String(i[s])));return uWr(r,i,o.strict,!1)}lJ.exports=fWr});var pJ=c((zme,dJ)=>{"use strict";var lWr=cJ();dJ.exports=lWr});var mJ=c((Vme,yJ)=>{"use strict";var cWr=se(),dWr=Ve(),pWr=ne(),yWr=Ge().isPrimitive,mWr=pe().isPrimitive,hWr=wi(),gWr=Si(),bWr=Xr(),xWr=oe(),qWr=Qf(),Ds=pr();function wWr(r){return!(yWr(r)||hWr(r)||gWr(r))}function SWr(r,e){var a,t,o,i,n,s;if(o={strict:!0},t=arguments.length,!cWr(r))throw new TypeError(Ds("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(pWr(arguments[t-1])){if(t-=1,a=arguments[t],bWr(a,"strict")){if(!mWr(a.strict))throw new TypeError(Ds("invalid option. `%s` option must be a boolean. Option: `%s`.","strict",a.strict));o.strict=a.strict}if(n=xWr(r),t===1&&n.length>0)throw new RangeError(Ds("invalid argument. Number of indices does not match the number of array dimensions. Array shape: (%s). Number of indices: %u.",n.join(","),0))}if(dWr(e)){if(i=e,t>2)throw new Error("invalid invocation. Too many arguments.")}else for(i=[],s=1;s<t;s++)i.push(arguments[s]);for(s=0;s<i.length;s++)if(wWr(i[s]))throw new TypeError(Ds("invalid argument. Each index argument must be either an integer, null, or undefined. Value: `%s`.",String(i[s])));return qWr(r,i,o.strict,!1)}yJ.exports=SWr});var gJ=c((Ume,hJ)=>{"use strict";var EWr=mJ();hJ.exports=EWr});var qJ=c((Cme,xJ)=>{"use strict";var bJ=fe().isPrimitive,AWr=ke(),_Wr=rl(),mc=pr();function TWr(r,e){var a;if(typeof r!="object"||r===null||!AWr(r.shape))throw new TypeError(mc("invalid argument. First argument must be an ndarray. Value: `%s`.",r));if(!bJ(e))throw new TypeError(mc("invalid argument. Second argument must be an integer. Value: `%s`.",e));if(a=_Wr(r,e),bJ(a))return a;throw new TypeError(mc("invalid argument. First argument must be an ndarray. Value: `%s`.",r))}xJ.exports=TWr});var SJ=c((Pme,wJ)=>{"use strict";var jWr=qJ();wJ.exports=jWr});var EJ=c((Lme,IWr)=>{IWr.exports={mode:["throw"],order:"row-major"}});var TJ=c((Mme,_J)=>{"use strict";var OWr=ne(),AJ=Xr(),NWr=wa(),DWr=Ta(),kWr=pi(),ks=pr();function BWr(r,e){var a;if(!OWr(e))return new TypeError(ks("invalid argument. Options argument must be an object. Value: `%s`.",e));if(AJ(e,"mode")){if(r.mode=e.mode,!NWr(r.mode))r.mode=[r.mode];else if(r.mode.length===0)return new TypeError(ks("invalid option. `%s` option cannot be an empty array.","mode"));for(a=0;a<r.mode.length;a++)if(!kWr(r.mode[a]))return new TypeError(ks("invalid option. `%s` option must be a supported/recognized mode. Option: `%s`.","mode",r.mode[a]))}return AJ(e,"order")&&(r.order=e.order,!DWr(r.order))?new TypeError(ks("invalid option. `%s` option must be a supported/recognized order. Option: `%s`.","order",r.order)):null}_J.exports=BWr});var OJ=c((Gme,IJ)=>{"use strict";var FWr=Jt().primitives,RWr=fe().isPrimitive,zWr=ze(),VWr=el(),hc=pr(),jJ=EJ(),UWr=TJ();function CWr(){var r,e,a,t,o,i,n,s,u;if(e=arguments[0],!FWr(e))throw new TypeError(hc("invalid argument. First argument must be an array-like object containing nonnegative integers. Value: `%s`.",e));if(n=arguments.length,a=e.length,o={},o.mode=jJ.mode.slice(),o.order=jJ.order,n>a+1){if(u=n-1,r=arguments[u],i=UWr(o,r),i)throw i}else u=n;if(s=1,u-s!==a)throw new RangeError(hc("invalid argument. Number of provided subscripts must match the number of dimensions. ndims: `%u`. Number of subscripts: `%u`.",a,u-s));for(t=new Array(a+4),t[0]=e,t[1]=zWr(e,o.order),t[2]=0;s<u;s++){if(!RWr(arguments[s]))throw new TypeError(hc("invalid argument. Subscripts must be integer valued. Argument: `%u`. Value: `%s`.",s,arguments[s]));t[s+2]=arguments[s]}return t[s+2]=o.mode,VWr.apply(null,t)}IJ.exports=CWr});var DJ=c((Yme,NJ)=>{"use strict";var PWr=OJ();NJ.exports=PWr});var zJ=c(($me,RJ)=>{"use strict";var LWr=ne(),Lo=Xr(),MWr=sn(),GWr=ze(),YWr=Ye(),$Wr=Fa(),WWr=Jr(),JWr=ma(),FJ=ka(),Bs=pr(),kJ=FJ.get("dtypes.default"),BJ=FJ.get("order");function XWr(r){var e,a,t,o,i,n,s,u,v;if(i={},arguments.length>1){if(e=arguments[1],!LWr(e))throw new TypeError(Bs("invalid argument. Options argument must be an object. Value: `%s`.",e));Lo(e,"dtype")?a=e.dtype:a=kJ,Lo(e,"order")?t=e.order:t=BJ,Lo(e,"mode")&&(i.mode=e.mode),Lo(e,"submode")&&(i.submode=e.submode),Lo(e,"readonly")&&(i.readonly=e.readonly)}else a=kJ,t=BJ;if(typeof r=="number")v=[r];else if(MWr(r))v=r;else throw new TypeError(Bs("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));if(o=v.length,o>0){if(s=WWr(v),s!==s||s<0)throw new TypeError(Bs("invalid argument. First argument must be either a nonnegative integer or an array of nonnegative integers. Value: `%s`.",r));u=GWr(v,t)}else s=1,u=[0];if(n=$Wr(a,s),n===null)throw new TypeError(Bs("invalid option. `%s` option must be a recognized data type. Option: `%s`.","dtype",a));return new JWr(a,n,v,u,YWr(v,u),t,i)}RJ.exports=XWr});var UJ=c((Wme,VJ)=>{"use strict";var KWr=zJ();VJ.exports=KWr});var GJ=c((Jme,MJ)=>{"use strict";var HWr=se(),ZWr=ne(),QWr=Jt().primitives,Fi=Xr(),rJr=ze(),eJr=Ye(),aJr=Fa(),tJr=Jr(),CJ=Ra(),PJ=oe(),LJ=Ka(),iJr=ma(),Fs=pr();function oJr(r){var e,a,t,o,i,n,s,u,v;if(!HWr(r))throw new TypeError(Fs("invalid argument. First argument must be an ndarray-like object. Value: `%s`.",r));if(i={},arguments.length>1){if(e=arguments[1],!ZWr(e))throw new TypeError(Fs("invalid argument. Options argument must be an object. Value: `%s`.",e));if(Fi(e,"dtype")?a=e.dtype:a=CJ(r),Fi(e,"shape")){if(v=e.shape,typeof v=="number"&&(v=[v]),!QWr(v))throw new TypeError(Fs("invalid option. `%s` option must be a nonnegative integer or an array of nonnegative integers. Option: `%s`.","shape",v))}else v=PJ(r);Fi(e,"order")?t=e.order:t=LJ(r),Fi(e,"mode")&&(i.mode=e.mode),Fi(e,"submode")&&(i.submode=e.submode),Fi(e,"readonly")&&(i.readonly=e.readonly)}else a=CJ(r),v=PJ(r),t=LJ(r);if(o=v.length,o>0?(s=tJr(v),u=rJr(v,t)):(s=1,u=[0]),n=aJr(a,s),n===null)throw new TypeError(Fs("invalid argument. First argument must have a recognized data type. Value: `%s`.",a));return new iJr(a,n,v,u,eJr(v,u),t,i)}MJ.exports=oJr});var $J=c((Xme,YJ)=>{"use strict";var nJr=GJ();YJ.exports=nJr});var gc=c((Kme,WJ)=>{"use strict";var Lr=zt(),Ur={};Lr(Ur,"array",BA());Lr(Ur,"at",UA());Lr(Ur,"base",RC());Lr(Ur,"broadcastArray",os());Lr(Ur,"broadcastArrays",tl());Lr(Ur,"castingModes",Bv());Lr(Ur,"ndarray",ma());Lr(Ur,"dataBuffer",vt());Lr(Ur,"defaults",ka());Lr(Ur,"dispatch",nP());Lr(Ur,"dtype",Ra());Lr(Ur,"dtypes",Be());Lr(Ur,"empty",dP());Lr(Ur,"emptyLike",xP());Lr(Ur,"FancyArray",$9());Lr(Ur,"flag",qG());Lr(Ur,"flags",AG());Lr(Ur,"scalar2ndarray",Tl());Lr(Ur,"ind2sub",zG());Lr(Ur,"indexModes",Wt());Lr(Ur,"iter",pW());Lr(Ur,"maybeBroadcastArray",Yl());Lr(Ur,"maybeBroadcastArrays",$l());Lr(Ur,"minDataType",wl());Lr(Ur,"mostlySafeCasts",Vv());Lr(Ur,"ndarraylike2ndarray",gW());Lr(Ur,"ndims",zn());Lr(Ur,"nextDataType",SW());Lr(Ur,"numel",cc());Lr(Ur,"numelDimension",NW());Lr(Ur,"offset",Tt());Lr(Ur,"order",Ka());Lr(Ur,"orders",$t());Lr(Ur,"outputDataTypePolicies",es());Lr(Ur,"promotionRules",VW());Lr(Ur,"safeCasts",zv());Lr(Ur,"sameKindCasts",Uv());Lr(Ur,"shape",oe());Lr(Ur,"slice",yc());Lr(Ur,"ndsliceAssign",XW());Lr(Ur,"sliceDimension",rJ());Lr(Ur,"sliceDimensionFrom",oJ());Lr(Ur,"sliceDimensionTo",fJ());Lr(Ur,"sliceFrom",pJ());Lr(Ur,"sliceTo",gJ());Lr(Ur,"stride",SJ());Lr(Ur,"strides",Xa());Lr(Ur,"sub2ind",DJ());Lr(Ur,"ndarray2array",sc());Lr(Ur,"zeros",UJ());Lr(Ur,"zerosLike",$J());WJ.exports=Ur});var IX=c((hhe,jX)=>{"use strict";function EJr(r,e){return r>e?r:e}jX.exports=EJr});var NX=c((ghe,OX)=>{"use strict";var AJr=IX();OX.exports=AJr});var kX=c((bhe,DX)=>{"use strict";var _Jr=Ue().factory,TJr=Yu(),jJr=_Jr(TJr());DX.exports=jJr});var FX=c((xhe,BX)=>{"use strict";var IJr=kX();BX.exports=IJr});var RX=c((qhe,OJr)=>{OJr.exports=["no-transpose","transpose","conjugate-transpose"]});var VX=c((whe,zX)=>{"use strict";var NJr=RX();function DJr(){return NJr.slice()}zX.exports=DJr});var CX=c((She,UX)=>{"use strict";function kJr(){return{"no-transpose":111,transpose:112,"conjugate-transpose":113}}UX.exports=kJr});var MX=c((Ehe,LX)=>{"use strict";var BJr=Ir(),PX=VX(),FJr=CX();BJr(PX,"enum",FJr);LX.exports=PX});var YX=c((Ahe,GX)=>{"use strict";var RJr=Ue().factory,zJr=MX(),VJr=RJr(zJr());GX.exports=VJr});var Nc=c((_he,$X)=>{"use strict";var UJr=YX();$X.exports=UJr});var JX=c((The,WX)=>{"use strict";function CJr(r,e){return e>0?0:(1-r)*e}WX.exports=CJr});var KX=c((jhe,XX)=>{"use strict";var PJr=JX();XX.exports=PJr});var Dc=c((Ihe,HX)=>{"use strict";var Yo=5;function LJr(r,e,a,t,o,i,n){var s,u,v,f,l;if(s=0,r<=0)return s;if(u=t,v=n,a===1&&i===1){if(f=r%Yo,f>0)for(l=0;l<f;l++)s+=e[u]*o[v],u+=1,v+=1;if(r<Yo)return s;for(l=f;l<r;l+=Yo)s+=e[u]*o[v]+e[u+1]*o[v+1]+e[u+2]*o[v+2]+e[u+3]*o[v+3]+e[u+4]*o[v+4],u+=Yo,v+=Yo;return s}for(l=0;l<r;l++)s+=e[u]*o[v],u+=a,v+=i;return s}HX.exports=LJr});var rK=c((Ohe,QX)=>{"use strict";var ZX=KX(),MJr=Dc();function GJr(r,e,a,t,o){var i,n;return r<=0?0:(i=ZX(r,a),n=ZX(r,o),MJr(r,e,a,i,t,o,n))}QX.exports=GJr});var tK=c((Nhe,aK)=>{"use strict";var YJr=Ir(),eK=rK(),$Jr=Dc();YJr(eK,"ndarray",$Jr);aK.exports=eK});var kc=c((Dhe,oK)=>{"use strict";var Vs=Yn(),iK=tK().ndarray,WJr=Rr(),yt=WJr("float64");function Bt(r){return r!=="no-transpose"}function JJr(r,e,a,t,o,i){var n,s,u,v,f,l,d;for(Vs([t,o])?(u=e,v=r,n=o,s=t-u*o):(u=r,v=e,n=t,s=o-u*t),d=i,l=0;l<v;l++){for(f=0;f<u;f++)a[d]=0,d+=n;d+=s}return a}function XJr(r,e,a,t,o,i,n){var s,u,v,f,l,d,y;for(Vs([o,i])?(v=e,f=r,s=i,u=o-v*i):(v=r,f=e,s=o,u=i-v*o),y=n,d=0;d<f;d++){for(l=0;l<v;l++)t[y]*=a,y+=s;y+=u}return t}function zs(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m){var h,g,b,S,w,A,_,x,E,q,T;for(w=e,A=r,h=n,g=v,b=p,S=y-w*p,T=m,x=0;x<A;x++){for(E=s+x*i,_=0;_<w;_++)q=l+_*f,d[T]+=t*iK(a,o,h,E,u,g,q),T+=b;T+=S}return d}function KJr(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m){var h,g,b,S,w,A,_,x,E,q,T,j,O,I,D,k,N,F,R,B,z,V,U;for(E=e,q=r,h=n,g=v,b=p,N=q;N>0;)for(N<yt?(j=N,N=0):(j=yt,N-=yt),w=s+N*i,x=m+N*y,k=E;k>0;)for(k<yt?(T=k,k=0):(T=yt,k-=yt),A=l+k*f,_=x+k*p,S=y-T*p,U=a;U>0;)for(U<yt?(O=U,U=0):(O=yt,U-=yt),z=w+U*n,V=A+U*v,B=_,D=0;D<j;D++){for(F=z+D*i,I=0;I<T;I++)R=V+I*f,d[B]+=t*iK(O,o,h,F,u,g,R),B+=b;B+=S}return d}function HJr(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b){var S,w,A,_,x,E;if(a===0||t===0||p===1&&(i===0||o===0)||(p===0?m=JJr(a,t,m,h,g,b):p!==1&&(m=XJr(a,t,p,m,h,g,b)),i===0))return m;if(S=Vs([s,u]),w=Vs([l,d]),S){if(!Bt(r)){if(!w&&!Bt(e))return zs(a,t,o,i,n,s,u,v,f,l,d,y,m,h,g,b);if(w&&Bt(e))return zs(a,t,o,i,n,s,u,v,f,d,l,y,m,h,g,b)}}else if(Bt(r)){if(w&&Bt(e))return zs(a,t,o,i,n,u,s,v,f,d,l,y,m,h,g,b);if(!w&&!Bt(e))return zs(a,t,o,i,n,u,s,v,f,l,d,y,m,h,g,b)}return Bt(r)?(A=u,_=s):(A=s,_=u),Bt(e)?(x=d,E=l):(x=l,E=d),KJr(a,t,o,i,n,A,_,v,f,x,E,y,m,h,g,b)}oK.exports=HJr});var uK=c((khe,sK)=>{"use strict";var Bc=NX(),ZJr=FX(),nK=Nc(),mt=pr(),QJr=kc();function rXr(r,e,a,t,o,i,n,s,u,v,f,l,d,y){var p,m,h,g,b,S,w,A,_;if(!ZJr(r))throw new TypeError(mt("invalid argument. First argument must be a valid order. Value: `%s`.",r));if(!nK(e))throw new TypeError(mt("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(!nK(a))throw new TypeError(mt("invalid argument. Third argument must be a valid transpose operation. Value: `%s`.",a));if(t<0)throw new RangeError(mt("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",t));if(o<0)throw new RangeError(mt("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",t));if(i<0)throw new RangeError(mt("invalid argument. Sixth argument must be a nonnegative integer. Value: `%d`.",i));if(r==="row-major"&&e==="no-transpose"||r==="column-major"&&e==="transpose"?p=i:p=t,r==="row-major"&&a==="no-transpose"||r==="column-major"&&a==="transpose"?m=o:m=i,u<Bc(1,p))throw new RangeError(mt("invalid argument. Ninth argument must be greater than or equal to max(1,%d). Value: `%d`.",p,u));if(f<Bc(1,m))throw new RangeError(mt("invalid argument. Eleventh argument must be greater than or equal to max(1,%d). Value: `%d`.",m,f));if(r==="row-major"?h=o:h=t,y<Bc(1,h))throw new RangeError(mt("invalid argument. Fourteenth argument must be greater than or equal to max(1,%d). Value: `%d`.",h,y));return r==="column-major"?(g=1,b=u,S=1,w=f,A=1,_=y):(g=u,b=1,S=f,w=1,A=y,_=1),QJr(e,a,t,o,i,n,s,g,b,0,v,S,w,0,l,d,A,_,0)}sK.exports=rXr});var lK=c((Bhe,fK)=>{"use strict";var vK=Nc(),$o=pr(),eXr=kc();function aXr(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b){if(!vK(r))throw new TypeError($o("invalid argument. First argument must be a valid transpose operation. Value: `%s`.",r));if(!vK(e))throw new TypeError($o("invalid argument. Second argument must be a valid transpose operation. Value: `%s`.",e));if(a<0)throw new RangeError($o("invalid argument. Third argument must be a nonnegative integer. Value: `%d`.",a));if(t<0)throw new RangeError($o("invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.",a));if(o<0)throw new RangeError($o("invalid argument. Fifth argument must be a nonnegative integer. Value: `%d`.",o));return eXr(r,e,a,t,o,i,n,s,u,v,f,l,d,y,p,m,h,g,b)}fK.exports=aXr});var pK=c((Fhe,dK)=>{"use strict";var tXr=Ir(),cK=uK(),iXr=lK();tXr(cK,"ndarray",iXr);dK.exports=cK});var lXr={};WK(lXr,{NDArray:()=>Ne,__version__:()=>fXr,absolute:()=>FK,arange:()=>wK,array:()=>et,asarray:()=>TK,copy:()=>jK,empty:()=>zc,empty_like:()=>NK,eye:()=>Rc,floor_divide:()=>UK,full:()=>Vc,full_like:()=>DK,geomspace:()=>AK,identity:()=>_K,linspace:()=>SK,logspace:()=>EK,mod:()=>VK,negative:()=>RK,ones:()=>Fc,ones_like:()=>OK,positive:()=>CK,power:()=>BK,reciprocal:()=>PK,sign:()=>zK,sqrt:()=>kK,zeros:()=>Us,zeros_like:()=>IK});var ve=ra(gc(),1),bK=ra(yc(),1),xK=ra(Ce(),1);function JJ(r){if(!r.includes(":")){if(r.includes("."))throw new Error(`Invalid slice index: "${r}" (must be integer)`);let i=parseInt(r,10);if(isNaN(i))throw new Error(`Invalid slice index: "${r}"`);return{start:i,stop:null,step:1,isIndex:!0}}let e=r.split(":");if(e.length>3)throw new Error(`Invalid slice notation: "${r}" (too many colons)`);let a=e[0]===""?null:parseInt(e[0],10),t=e[1]===""||e[1]===void 0?null:parseInt(e[1],10),o=e[2]===""||e[2]===void 0?1:parseInt(e[2],10);if(a!==null&&isNaN(a))throw new Error(`Invalid start index in slice: "${r}"`);if(t!==null&&isNaN(t))throw new Error(`Invalid stop index in slice: "${r}"`);if(isNaN(o))throw new Error(`Invalid step in slice: "${r}"`);if(o===0)throw new Error("Slice step cannot be zero");return{start:a,stop:t,step:o,isIndex:!1}}function XJ(r,e){let{start:a,stop:t}=r,{step:o,isIndex:i}=r;if(i){if(a===null)throw new Error("Index cannot be null");let n=a<0?e+a:a;if(n<0||n>=e)throw new Error(`Index ${a} is out of bounds for size ${e}`);return{start:n,stop:n+1,step:1,isIndex:!0}}return o>0?(a===null&&(a=0),t===null&&(t=e)):(a===null&&(a=e-1),t===null&&(t=-e-1)),a<0&&(a=e+a),t<0&&(t=e+t),a=Math.max(0,Math.min(a,e)),t=Math.max(-1,Math.min(t,e)),{start:a,stop:t,step:o,isIndex:!1}}var Qe="float64";function je(r){switch(r){case"float64":return Float64Array;case"float32":return Float32Array;case"int64":return BigInt64Array;case"int32":return Int32Array;case"int16":return Int16Array;case"int8":return Int8Array;case"uint64":return BigUint64Array;case"uint32":return Uint32Array;case"uint16":return Uint16Array;case"uint8":return Uint8Array;case"bool":return Uint8Array;default:throw new Error(`Unknown dtype: ${r}`)}}function KJ(r){return r==="float64"||r==="float32"}function Nr(r){return r==="int64"||r==="uint64"}function Rs(r,e){if(r===e)return r;if(r==="bool")return e;if(e==="bool")return r;if(KJ(r)||KJ(e)){if(r==="float64"||e==="float64")return"float64";if(r==="float32"){let v=e;return v==="int32"||v==="int64"||v==="uint32"||v==="uint64"?"float64":"float32"}if(e==="float32"){let v=r;return v==="int32"||v==="int64"||v==="uint32"||v==="uint64"?"float64":"float32"}return"float32"}let a=r.startsWith("int"),t=e.startsWith("int"),o=r.startsWith("uint"),i=e.startsWith("uint"),n=v=>v.includes("64")?64:v.includes("32")?32:v.includes("16")?16:v.includes("8")?8:0,s=n(r),u=n(e);if(r==="int64"&&e==="uint64"||r==="uint64"&&e==="int64")return"float64";if(a&&i&&s===u){if(s===8)return"int16";if(s===16)return"int32";if(s===32)return"int64"}if(o&&t&&s===u){if(u===8)return"int16";if(u===16)return"int32";if(u===32)return"int64"}if(a&&t||o&&i){let v=Math.max(s,u);return a?v===64?"int64":v===32?"int32":v===16?"int16":"int8":v===64?"uint64":v===32?"uint32":v===16?"uint16":"uint8"}return a&&i?s>u?r:u===8?"int16":u===16?"int32":u===32?"int64":"float64":o&&t?u>s?e:s===8?"int16":s===16?"int32":s===32?"int64":"float64":"float64"}function ue(r){return r==="int64"||r==="uint64"?"generic":r}var Mo=ra(ma(),1),HJ=ra(Ra(),1),ZJ=ra(oe(),1),QJ=ra(Xa(),1),rX=ra(zn(),1),eX=ra(cc(),1),aX=ra(vt(),1);var Dr=class r{constructor(e,a){this._stdlib=e,this._dtype=a||(0,HJ.default)(e)}get shape(){return Array.from((0,ZJ.default)(this._stdlib))}get ndim(){return(0,rX.default)(this._stdlib)}get size(){return(0,eX.default)(this._stdlib)}get dtype(){return this._dtype}get data(){return(0,aX.default)(this._stdlib)}get strides(){return Array.from((0,QJ.default)(this._stdlib))}get stdlib(){return this._stdlib}get isCContiguous(){let e=this.shape,a=this.strides,t=e.length;if(t===0)return!0;if(t===1)return a[0]===1;let o=1;for(let i=t-1;i>=0;i--){if(a[i]!==o)return!1;o*=e[i]}return!0}get isFContiguous(){let e=this.shape,a=this.strides,t=e.length;if(t===0)return!0;if(t===1)return a[0]===1;let o=1;for(let i=0;i<t;i++){if(a[i]!==o)return!1;o*=e[i]}return!0}copy(){let e=Array.from(this.shape),a=this.data,t=this._dtype,o=je(t);if(!o)throw new Error(`Cannot copy array with dtype ${t}`);if(Nr(t)){let i=new o(this.size),n=a;for(let u=0;u<this.size;u++)i[u]=n[u];let s=(0,Mo.default)(ue(t),i,e,this._computeStrides(e),0,"row-major");return new r(s,t)}else{let i=new o(this.size),n=a;i.set(n);let s=(0,Mo.default)(ue(t),i,e,this._computeStrides(e),0,"row-major");return new r(s,t)}}static fromStdlib(e,a){return new r(e,a)}static fromData(e,a,t){let o=r._computeStrides(a),i=(0,Mo.default)(ue(t),e,a,o,0,"row-major");return new r(i,t)}static zeros(e,a=Qe){let t=e.reduce((s,u)=>s*u,1),o=je(a);if(!o)throw new Error(`Cannot create array with dtype ${a}`);let i=new o(t),n=(0,Mo.default)(ue(a),i,e,r._computeStrides(e),0,"row-major");return new r(n,a)}static ones(e,a=Qe){let t=r.zeros(e,a),o=t.data;if(Nr(a)){let i=o;for(let n=0;n<t.size;n++)i[n]=BigInt(1)}else{let i=o;for(let n=0;n<t.size;n++)i[n]=1}return t}_computeStrides(e){return r._computeStrides(e)}static _computeStrides(e){let a=new Array(e.length),t=1;for(let o=e.length-1;o>=0;o--)a[o]=t,t*=e[o];return a}};var bc=ra(tl(),1);function Ca(r,e,a,t){let o,i;try{[o,i]=(0,bc.default)([r.stdlib,e.stdlib])}catch{throw new Error(`operands could not be broadcast together with shapes ${JSON.stringify(r.shape)} ${JSON.stringify(e.shape)}`)}let n=Rs(r.dtype,e.dtype),s=Array.from(o.shape),u=Dr.zeros(s,n),v=u.data,f=u.size;if(Nr(n)){let l=v;for(let d=0;d<f;d++){let y=o.iget(d),p=i.iget(d),m=typeof y=="bigint"?y:BigInt(Math.round(y)),h=typeof p=="bigint"?p:BigInt(Math.round(p));t==="add"?l[d]=m+h:t==="subtract"?l[d]=m-h:t==="multiply"?l[d]=m*h:t==="divide"?l[d]=m/h:l[d]=BigInt(Math.round(a(Number(m),Number(h))))}}else{let l=Nr(r.dtype)||Nr(e.dtype);for(let d=0;d<f;d++){let y=o.iget(d),p=i.iget(d),m=Number(y),h=Number(p);v[d]=a(m,h)}}return u}function kt(r,e,a){let t,o;try{[t,o]=(0,bc.default)([r.stdlib,e.stdlib])}catch{throw new Error(`operands could not be broadcast together with shapes ${JSON.stringify(r.shape)} ${JSON.stringify(e.shape)}`)}let i=Array.from(t.shape),n=i.reduce((v,f)=>v*f,1),s=new Uint8Array(n),u=Nr(r.dtype)||Nr(e.dtype);for(let v=0;v<n;v++){let f=t.iget(v),l=o.iget(v),d=Number(f),y=Number(l);s[v]=a(d,y)?1:0}return Dr.fromData(s,i,"bool")}function tX(r,e,a=!0){let t=r.dtype,o=Array.from(r.shape),i=r.size,s=a?t:t!=="float32"&&t!=="float64"?"float64":t,u=Dr.zeros(o,s),v=u.data,f=r.data;if(Nr(t))if(Nr(s)){let l=v;for(let d=0;d<i;d++){let y=Number(f[d]);l[d]=BigInt(Math.round(e(y)))}}else for(let l=0;l<i;l++)v[l]=e(Number(f[l]));else for(let l=0;l<i;l++)v[l]=e(Number(f[l]));return u}function iX(r,e){return typeof e=="number"?sJr(r,e):Ca(r,e,(a,t)=>a+t,"add")}function oX(r,e){return typeof e=="number"?uJr(r,e):Ca(r,e,(a,t)=>a-t,"subtract")}function nX(r,e){return typeof e=="number"?vJr(r,e):Ca(r,e,(a,t)=>a*t,"multiply")}function sX(r,e){if(typeof e=="number")return fJr(r,e);let a=r.dtype==="float64",t=e.dtype==="float64",o=r.dtype==="float32",i=e.dtype==="float32";if(a||t){let u=a?r:Ri(r,"float64"),v=t?e:Ri(e,"float64");return Ca(u,v,(f,l)=>f/l,"divide")}if(o||i){let u=o?r:Ri(r,"float32"),v=i?e:Ri(e,"float32");return Ca(u,v,(f,l)=>f/l,"divide")}let n=Ri(r,"float64"),s=Ri(e,"float64");return Ca(n,s,(u,v)=>u/v,"divide")}function Ri(r,e){let a=Dr.zeros(Array.from(r.shape),e),t=r.size,o=r.data,i=a.data;for(let n=0;n<t;n++)i[n]=Number(o[n]);return a}function sJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]+f}else for(let u=0;u<i;u++)s[u]=Number(o[u])+e;return n}function uJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]-f}else for(let u=0;u<i;u++)s[u]=Number(o[u])-e;return n}function vJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]*f}else for(let u=0;u<i;u++)s[u]=Number(o[u])*e;return n}function fJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,s=a!=="float32"&&a!=="float64"?"float64":a,u=Dr.zeros(t,s),v=u.data;if(Nr(a))for(let f=0;f<i;f++)v[f]=Number(o[f])/e;else for(let f=0;f<i;f++)v[f]=Number(o[f])/e;return u}function uX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Dr.zeros(a,e),n=i.data;if(Nr(e)){let s=t,u=n;for(let v=0;v<o;v++){let f=s[v];u[v]=f<0n?-f:f}}else for(let s=0;s<o;s++)n[s]=Math.abs(Number(t[s]));return i}function vX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Dr.zeros(a,e),n=i.data;if(Nr(e)){let s=t,u=n;for(let v=0;v<o;v++)u[v]=-s[v]}else for(let s=0;s<o;s++)n[s]=-Number(t[s]);return i}function fX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Dr.zeros(a,e),n=i.data;if(Nr(e)){let s=t,u=n;for(let v=0;v<o;v++){let f=s[v];u[v]=f>0n?1n:f<0n?-1n:0n}}else for(let s=0;s<o;s++){let u=Number(t[s]);n[s]=u>0?1:u<0?-1:0}return i}function lX(r,e){return typeof e=="number"?lJr(r,e):Ca(r,e,(a,t)=>(a%t+t)%t,"mod")}function lJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++){let d=u[l];v[l]=(d%f+f)%f}}else for(let u=0;u<i;u++){let v=Number(o[u]);s[u]=(v%e+e)%e}return n}function cX(r,e){return typeof e=="number"?cJr(r,e):Ca(r,e,(a,t)=>Math.floor(a/t),"floor_divide")}function cJr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,n=Dr.zeros(t,a),s=n.data;if(Nr(a)){let u=o,v=s,f=BigInt(Math.round(e));for(let l=0;l<i;l++)v[l]=u[l]/f}else for(let u=0;u<i;u++)s[u]=Math.floor(Number(o[u])/e);return n}function dX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,i=Dr.zeros(a,e),n=i.data;for(let s=0;s<o;s++)n[s]=t[s];return i}function pX(r){let e=r.dtype,a=Array.from(r.shape),t=r.data,o=r.size,n=e!=="float32"&&e!=="float64"?"float64":e,s=Dr.zeros(a,n),u=s.data;if(Nr(e))for(let v=0;v<o;v++)u[v]=1/Number(t[v]);else for(let v=0;v<o;v++)u[v]=1/Number(t[v]);return s}function yX(r,e){return typeof e=="number"?pJr(r,e):kt(r,e,(a,t)=>a>t)}function mX(r,e){return typeof e=="number"?yJr(r,e):kt(r,e,(a,t)=>a>=t)}function hX(r,e){return typeof e=="number"?mJr(r,e):kt(r,e,(a,t)=>a<t)}function gX(r,e){return typeof e=="number"?hJr(r,e):kt(r,e,(a,t)=>a<=t)}function bX(r,e){return typeof e=="number"?gJr(r,e):kt(r,e,(a,t)=>a===t)}function xX(r,e){return typeof e=="number"?bJr(r,e):kt(r,e,(a,t)=>a!==t)}function xc(r,e,a=1e-5,t=1e-8){return typeof e=="number"?xJr(r,e,a,t):kt(r,e,(o,i)=>{let n=Math.abs(o-i),s=t+a*Math.abs(i);return n<=s})}function qX(r,e,a=1e-5,t=1e-8){let o=xc(r,e,a,t),i=o.data;for(let n=0;n<o.size;n++)if(i[n]===0)return!1;return!0}function pJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]>e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function yJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]>=e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function mJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]<e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function hJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]<=e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function gJr(r,e){let a=new Uint8Array(r.size),t=r.data,o=r.dtype;if(Nr(o)){let i=BigInt(Math.round(e)),n=t;for(let s=0;s<r.size;s++)a[s]=n[s]===i?1:0}else for(let i=0;i<r.size;i++)a[i]=t[i]===e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function bJr(r,e){let a=new Uint8Array(r.size),t=r.data;for(let o=0;o<r.size;o++)a[o]=t[o]!==e?1:0;return Dr.fromData(a,Array.from(r.shape),"bool")}function xJr(r,e,a,t){let o=new Uint8Array(r.size),i=r.data,n=r.dtype;if(Nr(n)){let s=i;for(let u=0;u<r.size;u++){let v=Number(s[u]),f=Math.abs(v-e),l=t+a*Math.abs(e);o[u]=f<=l?1:0}}else for(let s=0;s<r.size;s++){let u=Number(i[s]),v=Math.abs(u-e),f=t+a*Math.abs(e);o[s]=v<=f?1:0}return Dr.fromData(o,Array.from(r.shape),"bool")}function zi(r){let e=new Array(r.length),a=1;for(let t=r.length-1;t>=0;t--)e[t]=a,a*=r[t];return e}function Ie(r,e){let a=0,t=1;for(let o=r.length-1;o>=0;o--)a+=r[o]*t,t*=e[o];return a}function Oe(r,e,a,t){let o=t.length,i=new Array(o),n=Array.from(t).filter((u,v)=>v!==e),s=r;for(let u=n.length-1;u>=0;u--)i[u>=e?u+1:u]=s%n[u],s=Math.floor(s/n[u]);return i[e]=a,i}function Go(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0)if(Nr(t)){let p=s,m=BigInt(0);for(let h=0;h<n;h++)m+=p[h];return Number(m)}else{let p=0;for(let m=0;m<n;m++)p+=Number(s[m]);return p}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((p,m)=>m!==u);if(v.length===0)return Go(r);let f=Dr.zeros(v,t),l=f.data,d=o[u],y=v.reduce((p,m)=>p*m,1);if(Nr(t)){let p=s,m=l;for(let h=0;h<y;h++){let g=BigInt(0);for(let b=0;b<d;b++){let S=Oe(h,u,b,o),w=Ie(S,o);g+=p[w]}m[h]=g}}else for(let p=0;p<y;p++){let m=0;for(let h=0;h<d;h++){let g=Oe(p,u,h,o),b=Ie(g,o);m+=Number(s[b])}l[p]=m}if(a){let p=[...o];return p[u]=1,Dr.fromData(l,p,t)}return f}function qc(r,e,a=!1){let t=r.dtype,o=r.shape;if(e===void 0)return Go(r)/r.size;let i=e;if(i<0&&(i=o.length+i),i<0||i>=o.length)throw new Error(`axis ${e} is out of bounds for array of dimension ${o.length}`);let n=Go(r,e,a);if(typeof n=="number")return n/o[i];let s=o[i],u=t;(Nr(t)||t.startsWith("int")||t.startsWith("uint"))&&(u="float64");let v=Dr.zeros(Array.from(n.shape),u),f=v.data,l=n.data;if(Nr(t)){let d=l;for(let y=0;y<f.length;y++)f[y]=Number(d[y])/s}else for(let d=0;d<f.length;d++)f[d]=Number(l[d])/s;return v}function wc(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0){if(n===0)throw new Error("max of empty array");let p=s[0];for(let m=1;m<n;m++)s[m]>p&&(p=s[m]);return Number(p)}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((p,m)=>m!==u);if(v.length===0)return wc(r);let f=Dr.zeros(v,t),l=f.data,d=o[u],y=v.reduce((p,m)=>p*m,1);if(Nr(t)){let p=s,m=l;for(let h=0;h<y;h++){let g=Oe(h,u,0,o),b=Ie(g,o),S=p[b];for(let w=1;w<d;w++){let A=Oe(h,u,w,o),_=Ie(A,o),x=p[_];x>S&&(S=x)}m[h]=S}}else for(let p=0;p<y;p++){let m=-1/0;for(let h=0;h<d;h++){let g=Oe(p,u,h,o),b=Ie(g,o),S=Number(s[b]);S>m&&(m=S)}l[p]=m}if(a){let p=[...o];return p[u]=1,Dr.fromData(l,p,t)}return f}function Sc(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0)if(Nr(t)){let p=s,m=BigInt(1);for(let h=0;h<n;h++)m*=p[h];return Number(m)}else{let p=1;for(let m=0;m<n;m++)p*=Number(s[m]);return p}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((p,m)=>m!==u);if(v.length===0)return Sc(r);let f=Dr.zeros(v,t),l=f.data,d=o[u],y=v.reduce((p,m)=>p*m,1);if(Nr(t)){let p=s,m=l;for(let h=0;h<y;h++){let g=BigInt(1);for(let b=0;b<d;b++){let S=Oe(h,u,b,o),w=Ie(S,o);g*=p[w]}m[h]=g}}else for(let p=0;p<y;p++){let m=1;for(let h=0;h<d;h++){let g=Oe(p,u,h,o),b=Ie(g,o);m*=Number(s[b])}l[p]=m}if(a){let p=[...o];return p[u]=1,Dr.fromData(l,p,t)}return f}function Ec(r,e,a=!1){let t=r.dtype,o=r.shape,i=o.length,n=r.size,s=r.data;if(e===void 0){if(n===0)throw new Error("min of empty array");let p=s[0];for(let m=1;m<n;m++)s[m]<p&&(p=s[m]);return Number(p)}let u=e;if(u<0&&(u=i+u),u<0||u>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let v=Array.from(o).filter((p,m)=>m!==u);if(v.length===0)return Ec(r);let f=Dr.zeros(v,t),l=f.data,d=o[u],y=v.reduce((p,m)=>p*m,1);if(Nr(t)){let p=s,m=l;for(let h=0;h<y;h++){let g=Oe(h,u,0,o),b=Ie(g,o),S=p[b];for(let w=1;w<d;w++){let A=Oe(h,u,w,o),_=Ie(A,o),x=p[_];x<S&&(S=x)}m[h]=S}}else for(let p=0;p<y;p++){let m=1/0;for(let h=0;h<d;h++){let g=Oe(p,u,h,o),b=Ie(g,o),S=Number(s[b]);S<m&&(m=S)}l[p]=m}if(a){let p=[...o];return p[u]=1,Dr.fromData(l,p,t)}return f}function Ac(r,e){let a=r.dtype,t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){if(i===0)throw new Error("argmin of empty array");let y=n[0],p=0;for(let m=1;m<i;m++)n[m]<y&&(y=n[m],p=m);return p}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((y,p)=>p!==s);if(u.length===0)return Ac(r);let v=Dr.zeros(u,"int32"),f=v.data,l=t[s],d=u.reduce((y,p)=>y*p,1);if(Nr(a)){let y=n;for(let p=0;p<d;p++){let m=Oe(p,s,0,t),h=Ie(m,t),g=y[h],b=0;for(let S=1;S<l;S++){let w=Oe(p,s,S,t),A=Ie(w,t),_=y[A];_<g&&(g=_,b=S)}f[p]=b}}else for(let y=0;y<d;y++){let p=1/0,m=0;for(let h=0;h<l;h++){let g=Oe(y,s,h,t),b=Ie(g,t),S=Number(n[b]);S<p&&(p=S,m=h)}f[y]=m}return v}function _c(r,e){let a=r.dtype,t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){if(i===0)throw new Error("argmax of empty array");let y=n[0],p=0;for(let m=1;m<i;m++)n[m]>y&&(y=n[m],p=m);return p}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((y,p)=>p!==s);if(u.length===0)return _c(r);let v=Dr.zeros(u,"int32"),f=v.data,l=t[s],d=u.reduce((y,p)=>y*p,1);if(Nr(a)){let y=n;for(let p=0;p<d;p++){let m=Oe(p,s,0,t),h=Ie(m,t),g=y[h],b=0;for(let S=1;S<l;S++){let w=Oe(p,s,S,t),A=Ie(w,t),_=y[A];_>g&&(g=_,b=S)}f[p]=b}}else for(let y=0;y<d;y++){let p=-1/0,m=0;for(let h=0;h<l;h++){let g=Oe(y,s,h,t),b=Ie(g,t),S=Number(n[b]);S>p&&(p=S,m=h)}f[y]=m}return v}function Tc(r,e,a=0,t=!1){let o=r.shape,i=o.length,n=r.size,s=r.data,u=qc(r,e,t);if(e===void 0){let g=u,b=0;for(let S=0;S<n;S++){let w=Number(s[S])-g;b+=w*w}return b/(n-a)}let v=e;if(v<0&&(v=i+v),v<0||v>=i)throw new Error(`axis ${e} is out of bounds for array of dimension ${i}`);let f=o[v],l=u,d=l.data,y=t?l.shape:Array.from(o).filter((g,b)=>b!==v),p=Dr.zeros(Array.from(y),"float64"),m=p.data,h=y.reduce((g,b)=>g*b,1);for(let g=0;g<h;g++){let b=0,S=Number(d[g]);for(let w=0;w<f;w++){let A=Oe(g,v,w,o),_=Ie(A,o),x=Number(s[_])-S;b+=x*x}m[g]=b/(f-a)}return p}function wX(r,e,a=0,t=!1){let o=Tc(r,e,a,t);if(typeof o=="number")return Math.sqrt(o);let i=Dr.zeros(Array.from(o.shape),"float64"),n=o.data,s=i.data;for(let u=0;u<n.length;u++)s[u]=Math.sqrt(Number(n[u]));return i}function jc(r,e,a=!1){let t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){for(let y=0;y<i;y++)if(!n[y])return!1;return!0}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((y,p)=>p!==s);if(u.length===0)return jc(r);let v=Dr.zeros(u,"bool"),f=v.data,l=t[s],d=u.reduce((y,p)=>y*p,1);for(let y=0;y<d;y++){let p=!0;for(let m=0;m<l;m++){let h=Oe(y,s,m,t),g=Ie(h,t);if(!n[g]){p=!1;break}}f[y]=p?1:0}if(a){let y=[...t];return y[s]=1,Dr.fromData(f,y,"bool")}return v}function Ic(r,e,a=!1){let t=r.shape,o=t.length,i=r.size,n=r.data;if(e===void 0){for(let y=0;y<i;y++)if(n[y])return!0;return!1}let s=e;if(s<0&&(s=o+s),s<0||s>=o)throw new Error(`axis ${e} is out of bounds for array of dimension ${o}`);let u=Array.from(t).filter((y,p)=>p!==s);if(u.length===0)return Ic(r);let v=Dr.zeros(u,"bool"),f=v.data,l=t[s],d=u.reduce((y,p)=>y*p,1);for(let y=0;y<d;y++){let p=!1;for(let m=0;m<l;m++){let h=Oe(y,s,m,t),g=Ie(h,t);if(n[g]){p=!0;break}}f[y]=p?1:0}if(a){let y=[...t];return y[s]=1,Dr.fromData(f,y,"bool")}return v}var rt=ra(gc(),1);function SX(r,e){let a=r.size,t=r.dtype,o=e.indexOf(-1),i;if(o!==-1){let f=e.reduce((d,y,p)=>p===o?d:d*y,1),l=a/f;if(!Number.isInteger(l))throw new Error(`cannot reshape array of size ${a} into shape ${JSON.stringify(e)}`);i=e.map((d,y)=>y===o?l:d)}else i=e;if(i.reduce((f,l)=>f*l,1)!==a)throw new Error(`cannot reshape array of size ${a} into shape ${JSON.stringify(i)}`);if(r.isCContiguous){let f=r.data,l=rt.default.ndarray(ue(t),f,i,zi(i),0,"row-major");return Dr.fromStdlib(l,t)}let u=r.copy().data,v=rt.default.ndarray(ue(t),u,i,zi(i),0,"row-major");return Dr.fromStdlib(v,t)}function Oc(r){let e=r.stdlib,a=r.shape,t=a.length,o=r.size,i=r.dtype,n=je(i);if(!n)throw new Error(`Cannot flatten array with dtype ${i}`);let s=new n(o),u=0,v=(l,d)=>{if(d===t){let y=e.get(...l);s[u++]=y;return}for(let y=0;y<a[d];y++)l[d]=y,v(l,d+1)};v(new Array(t),0);let f=rt.default.ndarray(ue(i),s,[o],[1],0,"row-major");return Dr.fromStdlib(f,i)}function EX(r){let e=r.size,a=r.dtype;if(r.isCContiguous){let t=r.data,o=rt.default.ndarray(ue(a),t,[e],[1],0,"row-major");return Dr.fromStdlib(o,a)}return Oc(r)}function AX(r,e){let a=r.shape,t=a.length,o=r.strides,i=r.data,n=r.dtype,s=r.stdlib,u;if(e===void 0)u=Array.from({length:t},(y,p)=>t-1-p);else{if(e.length!==t)throw new Error(`axes must have length ${t}, got ${e.length}`);let y=new Set;for(let p of e){let m=p<0?t+p:p;if(m<0||m>=t)throw new Error(`axis ${p} is out of bounds for array of dimension ${t}`);if(y.has(m))throw new Error("repeated axis in transpose");y.add(m)}u=e.map(p=>p<0?t+p:p)}let v=u.map(y=>a[y]),f=Array.from(o),l=u.map(y=>f[y]),d=rt.default.ndarray(ue(n),i,v,l,rt.default.offset(s),"row-major");return Dr.fromStdlib(d,n)}function _X(r,e){let a=r.shape,t=a.length,o=r.data,i=r.dtype;if(e===void 0){let n=Array.from(a).filter(v=>v!==1);n.length===0&&n.push(1);let s=zi(n),u=rt.default.ndarray(ue(i),o,n,s,0,"row-major");return Dr.fromStdlib(u,i)}else{let n=e<0?t+e:e;if(n<0||n>=t)throw new Error(`axis ${e} is out of bounds for array of dimension ${t}`);if(a[n]!==1)throw new Error(`cannot select an axis which has size not equal to one (axis ${e} has size ${a[n]})`);let s=Array.from(a).filter((f,l)=>l!==n),u=zi(s),v=rt.default.ndarray(ue(i),o,s,u,0,"row-major");return Dr.fromStdlib(v,i)}}function TX(r,e){let a=r.shape,t=a.length,o=r.data,i=r.dtype,n=e;if(n<0&&(n=t+e+1),n<0||n>t)throw new Error(`axis ${e} is out of bounds for array of dimension ${t+1}`);let s=[...Array.from(a)];s.splice(n,0,1);let u=zi(s),v=rt.default.ndarray(ue(i),o,s,u,0,"row-major");return Dr.fromStdlib(v,i)}var yK=ra(pK(),1);function mK(r,e){if(r.ndim!==2||e.ndim!==2)throw new Error("matmul requires 2D arrays");let[a=0,t=0]=r.shape,[o=0,i=0]=e.shape;if(t!==o)throw new Error(`matmul shape mismatch: (${a},${t}) @ (${o},${i})`);let n=Rs(r.dtype,e.dtype),s=n.startsWith("int")||n.startsWith("uint")||n==="bool"?"float64":n;if(s!=="float64")throw new Error(`matmul currently only supports float64, got ${s}`);let u=r.dtype==="float64"?r.data:Float64Array.from(Array.from(r.data).map(Number)),v=e.dtype==="float64"?e.data:Float64Array.from(Array.from(e.data).map(Number)),f=Dr.zeros([a,i],"float64");return(0,yK.default)("row-major","no-transpose","no-transpose",a,i,t,1,u,t,v,i,0,f.data,i),f}function hK(r){return tX(r,Math.sqrt,!1)}function gK(r,e){return typeof e=="number"?nXr(r,e):Ca(r,e,Math.pow,"power")}function nXr(r,e){let a=r.dtype,t=Array.from(r.shape),o=r.data,i=r.size,u=a!=="float32"&&a!=="float64"&&(e<0||!Number.isInteger(e))?"float64":a,v=Dr.zeros(t,u),f=v.data;if(Nr(a))if(Nr(u)&&Number.isInteger(e)&&e>=0){let l=o,d=f;for(let y=0;y<i;y++)d[y]=l[y]**BigInt(e)}else for(let l=0;l<i;l++)f[l]=Math.pow(Number(o[l]),e);else for(let l=0;l<i;l++)f[l]=Math.pow(Number(o[l]),e);return v}var Ne=class r{constructor(e,a,t){this._data=e,this._dtype=a,this._base=t}get _storage(){return new Dr(this._data,this._dtype)}static _fromStorage(e,a){return new r(e.stdlib,e.dtype,a)}get shape(){return Array.from(ve.default.shape(this._data))}get ndim(){return ve.default.ndims(this._data)}get size(){return ve.default.numel(this._data)}get dtype(){return this._dtype||ve.default.dtype(this._data)}get data(){return ve.default.dataBuffer(this._data)}get strides(){return Array.from(ve.default.strides(this._data))}get flags(){let e=this._storage;return{C_CONTIGUOUS:e.isCContiguous,F_CONTIGUOUS:e.isFContiguous,OWNDATA:this._base===void 0}}get base(){return this._base??null}get(e){if(e.length!==this.ndim)throw new Error(`Index has ${e.length} dimensions, but array has ${this.ndim} dimensions`);let a=e.map((i,n)=>{let s=i;if(s<0&&(s=this.shape[n]+s),s<0||s>=this.shape[n])throw new Error(`Index ${i} is out of bounds for axis ${n} with size ${this.shape[n]}`);return s}),t=this._data.get(...a),o=this.dtype;return Nr(o)?typeof t=="bigint"?t:BigInt(Math.round(t)):Number(t)}set(e,a){if(e.length!==this.ndim)throw new Error(`Index has ${e.length} dimensions, but array has ${this.ndim} dimensions`);let t=e.map((n,s)=>{let u=n;if(u<0&&(u=this.shape[s]+u),u<0||u>=this.shape[s])throw new Error(`Index ${n} is out of bounds for axis ${s} with size ${this.shape[s]}`);return u}),o=this.dtype,i;Nr(o)?i=typeof a=="bigint"?a:BigInt(Math.round(a)):o==="bool"?i=a?1:0:i=Number(a),this._data.set(...t,i)}copy(){let e=this.dtype,a=Array.from(this.shape),t=this.data,o=je(e);if(!o)throw new Error(`Cannot copy array with dtype ${e}`);if(Nr(e)){let i=new o(this.size),n=t;for(let u=0;u<this.size;u++)i[u]=n[u];let s=ve.default.ndarray(ue(e),i,a,qa(a),0,"row-major");return new r(s,e)}else{let i=new o(this.size),n=t;i.set(n);let s=ve.default.ndarray(ue(e),i,a,qa(a),0,"row-major");return new r(s,e)}}astype(e,a=!0){let t=this.dtype;if(t===e&&!a)return this;if(t===e&&a)return et(this.toArray(),e);let o=Array.from(this.shape),i=this.size,n=je(e);if(!n)throw new Error(`Cannot convert to dtype ${e}`);let s=new n(i),u=this.data;if(Nr(t)&&!Nr(e)){let f=u;if(e==="bool")for(let l=0;l<i;l++)s[l]=f[l]!==BigInt(0)?1:0;else for(let l=0;l<i;l++)s[l]=Number(f[l])}else if(!Nr(t)&&Nr(e)){let f=u;for(let l=0;l<i;l++)s[l]=BigInt(Math.round(Number(f[l])))}else if(e==="bool"){let f=u;for(let l=0;l<i;l++)s[l]=f[l]!==0?1:0}else if(t==="bool"&&!Nr(e)){let f=u;for(let l=0;l<i;l++)s[l]=f[l]}else if(!Nr(t)&&!Nr(e)){let f=u;for(let l=0;l<i;l++)s[l]=f[l]}else{let f=u;for(let l=0;l<i;l++)s[l]=f[l]}let v=ve.default.ndarray(ue(e),s,o,qa(o),0,"row-major");return new r(v,e)}add(e){let a=typeof e=="number"?e:e._storage,t=iX(this._storage,a);return r._fromStorage(t)}subtract(e){let a=typeof e=="number"?e:e._storage,t=oX(this._storage,a);return r._fromStorage(t)}multiply(e){let a=typeof e=="number"?e:e._storage,t=nX(this._storage,a);return r._fromStorage(t)}divide(e){let a=typeof e=="number"?e:e._storage,t=sX(this._storage,a);return r._fromStorage(t)}mod(e){let a=typeof e=="number"?e:e._storage,t=lX(this._storage,a);return r._fromStorage(t)}floor_divide(e){let a=typeof e=="number"?e:e._storage,t=cX(this._storage,a);return r._fromStorage(t)}positive(){let e=dX(this._storage);return r._fromStorage(e)}reciprocal(){let e=pX(this._storage);return r._fromStorage(e)}sqrt(){let e=hK(this._storage);return r._fromStorage(e)}power(e){let a=typeof e=="number"?e:e._storage,t=gK(this._storage,a);return r._fromStorage(t)}absolute(){let e=uX(this._storage);return r._fromStorage(e)}negative(){let e=vX(this._storage);return r._fromStorage(e)}sign(){let e=fX(this._storage);return r._fromStorage(e)}greater(e){let a=typeof e=="number"?e:e._storage,t=yX(this._storage,a);return r._fromStorage(t)}greater_equal(e){let a=typeof e=="number"?e:e._storage,t=mX(this._storage,a);return r._fromStorage(t)}less(e){let a=typeof e=="number"?e:e._storage,t=hX(this._storage,a);return r._fromStorage(t)}less_equal(e){let a=typeof e=="number"?e:e._storage,t=gX(this._storage,a);return r._fromStorage(t)}equal(e){let a=typeof e=="number"?e:e._storage,t=bX(this._storage,a);return r._fromStorage(t)}not_equal(e){let a=typeof e=="number"?e:e._storage,t=xX(this._storage,a);return r._fromStorage(t)}isclose(e,a=1e-5,t=1e-8){let o=typeof e=="number"?e:e._storage,i=xc(this._storage,o,a,t);return r._fromStorage(i)}allclose(e,a=1e-5,t=1e-8){let o=typeof e=="number"?e:e._storage;return qX(this._storage,o,a,t)}sum(e,a=!1){let t=Go(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}mean(e,a=!1){let t=qc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}max(e,a=!1){let t=wc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}min(e,a=!1){let t=Ec(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}prod(e,a=!1){let t=Sc(this._storage,e,a);return typeof t=="number"?t:r._fromStorage(t)}argmin(e){let a=Ac(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}argmax(e){let a=_c(this._storage,e);return typeof a=="number"?a:r._fromStorage(a)}var(e,a=0,t=!1){let o=Tc(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}std(e,a=0,t=!1){let o=wX(this._storage,e,a,t);return typeof o=="number"?o:r._fromStorage(o)}all(e,a=!1){let t=jc(this._storage,e,a);return typeof t=="boolean"?t:r._fromStorage(t)}any(e,a=!1){let t=Ic(this._storage,e,a);return typeof t=="boolean"?t:r._fromStorage(t)}reshape(...e){let a=e.length===1&&Array.isArray(e[0])?e[0]:e,t=SX(this._storage,a),i=t.data===this.data?this._base??this:void 0;return r._fromStorage(t,i)}flatten(){let e=Oc(this._storage);return r._fromStorage(e)}ravel(){let e=EX(this._storage),t=e.data===this.data?this._base??this:void 0;return r._fromStorage(e,t)}transpose(e){let a=AX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}squeeze(e){let a=_X(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}expand_dims(e){let a=TX(this._storage,e),t=this._base??this;return r._fromStorage(a,t)}matmul(e){let a=mK(this._storage,e._storage);return r._fromStorage(a)}slice(...e){if(e.length===0)return this;if(e.length>this.ndim)throw new Error(`Too many indices for array: array is ${this.ndim}-dimensional, but ${e.length} were indexed`);let a=e.map((n,s)=>{let u=JJ(n);return XJ(u,this.shape[s])});for(;a.length<this.ndim;)a.push({start:0,stop:this.shape[a.length],step:1,isIndex:!1});let t=a.map((n,s)=>{if(n.isIndex)return n.start;{let u=n.start,v=n.stop;return n.step>0?(u===0&&(u=null),v===this.shape[s]&&(v=null)):(u===this.shape[s]-1&&(u=null),v===-1&&(v=null)),new xK.default(u,v,n.step)}}),o=(0,bK.default)(this._data,...t),i=this._base??this;return new r(o,this._dtype,i)}row(e){if(this.ndim<2)throw new Error("row() requires at least 2 dimensions");return this.slice(String(e),":")}col(e){if(this.ndim<2)throw new Error("col() requires at least 2 dimensions");return this.slice(":",String(e))}rows(e,a){if(this.ndim<2)throw new Error("rows() requires at least 2 dimensions");return this.slice(`${e}:${a}`,":")}cols(e,a){if(this.ndim<2)throw new Error("cols() requires at least 2 dimensions");return this.slice(":",`${e}:${a}`)}toString(){return`NDArray(shape=${JSON.stringify(this.shape)}, dtype=${this.dtype})`}toArray(){return this.ndim===0?this._data.get():ve.default.ndarray2array(this._data)}};function Us(r,e=Qe){let a=je(e);if(!a)throw new Error(`Cannot create zeros array with dtype ${e}`);let t=r.reduce((n,s)=>n*s,1),o=new a(t),i=ve.default.ndarray(ue(e),o,r,qa(r),0,"row-major");return new Ne(i,e)}function qa(r){let e=new Array(r.length),a=1;for(let t=r.length-1;t>=0;t--)e[t]=a,a*=r[t];return e}function Fc(r,e=Qe){let a=je(e);if(!a)throw new Error(`Cannot create ones array with dtype ${e}`);let t=r.reduce((n,s)=>n*s,1),o=new a(t);Nr(e)?o.fill(BigInt(1)):o.fill(1);let i=ve.default.ndarray(ue(e),o,r,qa(r),0,"row-major");return new Ne(i,e)}function uXr(r){let e=[],a=r;for(;Array.isArray(a);)e.push(a.length),a=a[0];return e}function qK(r){return typeof r=="bigint"?!0:Array.isArray(r)?r.some(e=>qK(e)):!1}function vXr(r){let e=[];function a(t){Array.isArray(t)?t.forEach(o=>a(o)):e.push(t)}return a(r),e}function et(r,e){let a=qK(r);if(a&&e&&Nr(e)){let l=uXr(r),d=l.reduce((g,b)=>g*b,1),y=je(e);if(!y)throw new Error(`Cannot create array with dtype ${e}`);let p=new y(d),m=vXr(r);for(let g=0;g<d;g++){let b=m[g];p[g]=typeof b=="bigint"?b:BigInt(Math.round(Number(b)))}let h=ve.default.ndarray(ue(e),p,l,qa(l),0,"row-major");return new Ne(h,e)}if(a&&e===void 0){let l=JSON.parse(JSON.stringify(r,(y,p)=>typeof p=="bigint"?Number(p):p)),d=ve.default.array(l);return new Ne(d)}if(e===void 0){let l=ve.default.array(r);return new Ne(l)}let t=ve.default.array(r);if(ve.default.dtype(t)===e)return new Ne(t);let i=Array.from(ve.default.shape(t)),n=i.reduce((l,d)=>l*d,1),s=je(e);if(!s)throw new Error(`Cannot create array with dtype ${e}`);let u=new s(n),v=ve.default.dataBuffer(t);if(Nr(e))for(let l=0;l<n;l++)u[l]=BigInt(Math.round(Number(v[l])));else if(e==="bool")for(let l=0;l<n;l++)u[l]=v[l]?1:0;else for(let l=0;l<n;l++)u[l]=Number(v[l]);let f=ve.default.ndarray(ue(e),u,i,qa(i),0,"row-major");return new Ne(f,e)}function wK(r,e,a=1,t=Qe){let o=r,i=e;if(e===void 0&&(o=0,i=r),i===void 0)throw new Error("stop is required");let n=Math.max(0,Math.ceil((i-o)/a)),s=je(t);if(!s)throw new Error(`Cannot create arange array with dtype ${t}`);let u=new s(n);if(Nr(t))for(let f=0;f<n;f++)u[f]=BigInt(Math.round(o+f*a));else if(t==="bool")for(let f=0;f<n;f++)u[f]=o+f*a!==0?1:0;else for(let f=0;f<n;f++)u[f]=o+f*a;let v=ve.default.ndarray(ue(t),u,[n],[1],0,"row-major");return new Ne(v,t)}function SK(r,e,a=50,t=Qe){if(a<0)throw new Error("num must be non-negative");if(a===0)return et([],t);if(a===1)return et([r],t);let o=je(t);if(!o)throw new Error(`Cannot create linspace array with dtype ${t}`);let i=new o(a),n=(e-r)/(a-1);if(Nr(t))for(let u=0;u<a;u++)i[u]=BigInt(Math.round(r+u*n));else if(t==="bool")for(let u=0;u<a;u++)i[u]=r+u*n!==0?1:0;else for(let u=0;u<a;u++)i[u]=r+u*n;let s=ve.default.ndarray(ue(t),i,[a],[1],0,"row-major");return new Ne(s,t)}function EK(r,e,a=50,t=10,o=Qe){if(a<0)throw new Error("num must be non-negative");if(a===0)return et([],o);if(a===1)return et([Math.pow(t,r)],o);let i=je(o);if(!i)throw new Error(`Cannot create logspace array with dtype ${o}`);let n=new i(a),s=(e-r)/(a-1);if(Nr(o))for(let v=0;v<a;v++){let f=r+v*s;n[v]=BigInt(Math.round(Math.pow(t,f)))}else if(o==="bool")for(let v=0;v<a;v++){let f=r+v*s;n[v]=Math.pow(t,f)!==0?1:0}else for(let v=0;v<a;v++){let f=r+v*s;n[v]=Math.pow(t,f)}let u=ve.default.ndarray(ue(o),n,[a],[1],0,"row-major");return new Ne(u,o)}function AK(r,e,a=50,t=Qe){if(a<0)throw new Error("num must be non-negative");if(r===0||e===0)throw new Error("Geometric sequence cannot include zero");if(a===0)return et([],t);if(a===1)return et([r],t);let o=Math.sign(r),i=Math.sign(e);if(o!==i)throw new Error("Geometric sequence cannot contain both positive and negative values");let n=je(t);if(!n)throw new Error(`Cannot create geomspace array with dtype ${t}`);let s=new n(a),u=Math.log(Math.abs(r)),f=(Math.log(Math.abs(e))-u)/(a-1);if(Nr(t))for(let d=0;d<a;d++){let y=o*Math.exp(u+d*f);s[d]=BigInt(Math.round(y))}else if(t==="bool")for(let d=0;d<a;d++){let y=o*Math.exp(u+d*f);s[d]=y!==0?1:0}else for(let d=0;d<a;d++){let y=o*Math.exp(u+d*f);s[d]=y}let l=ve.default.ndarray(ue(t),s,[a],[1],0,"row-major");return new Ne(l,t)}function Rc(r,e,a=0,t=Qe){let o=e??r,i=Us([r,o],t),n=i.data;if(Nr(t)){let s=n;for(let u=0;u<r;u++){let v=u+a;v>=0&&v<o&&(s[u*o+v]=BigInt(1))}}else{let s=n;for(let u=0;u<r;u++){let v=u+a;v>=0&&v<o&&(s[u*o+v]=1)}}return i}function zc(r,e=Qe){let a=je(e);if(!a)throw new Error(`Cannot create empty array with dtype ${e}`);let t=r.reduce((n,s)=>n*s,1),o=new a(t),i=ve.default.ndarray(ue(e),o,r,qa(r),0,"row-major");return new Ne(i,e)}function Vc(r,e,a){let t=a;t||(typeof e=="bigint"?t="int64":typeof e=="boolean"?t="bool":Number.isInteger(e)?t="int32":t=Qe);let o=je(t);if(!o)throw new Error(`Cannot create full array with dtype ${t}`);let i=r.reduce((u,v)=>u*v,1),n=new o(i);if(Nr(t)){let u=typeof e=="bigint"?e:BigInt(Math.round(Number(e)));n.fill(u)}else t==="bool"?n.fill(e?1:0):n.fill(Number(e));let s=ve.default.ndarray(ue(t),n,r,qa(r),0,"row-major");return new Ne(s,t)}function _K(r,e=Qe){return Rc(r,r,0,e)}function TK(r,e){if(r instanceof Ne){if(!e||r.dtype===e)return r;let a=Array.from(r.shape),t=r.size,o=je(e);if(!o)throw new Error(`Cannot create array with dtype ${e}`);let i=new o(t),n=r.data;if(Nr(e))for(let u=0;u<t;u++)i[u]=BigInt(Math.round(Number(n[u])));else if(e==="bool")for(let u=0;u<t;u++)i[u]=n[u]?1:0;else for(let u=0;u<t;u++)i[u]=Number(n[u]);let s=ve.default.ndarray(ue(e),i,a,qa(a),0,"row-major");return new Ne(s,e)}return et(r,e)}function jK(r){let e=Array.from(r.shape),a=r.dtype,t=je(a);if(!t)throw new Error(`Cannot copy array with dtype ${a}`);let o=r.size,i=r.data,n=new t(o);if(r.flags.C_CONTIGUOUS)Nr(a),n.set(i);else{let u=Array.from(e),v=qa(u);for(let f=0;f<o;f++){let l=[],d=f;for(let p=0;p<u.length;p++){let m=v[p],h=Math.floor(d/m);l.push(h),d-=h*m}let y=r.get(l);Nr(a),n[f]=y}}let s=ve.default.ndarray(ue(a),n,e,qa(e),0,"row-major");return new Ne(s,a)}function IK(r,e){return Us(Array.from(r.shape),e??r.dtype)}function OK(r,e){return Fc(Array.from(r.shape),e??r.dtype)}function NK(r,e){return zc(Array.from(r.shape),e??r.dtype)}function DK(r,e,a){return Vc(Array.from(r.shape),e,a??r.dtype)}function kK(r){return r.sqrt()}function BK(r,e){return r.power(e)}function FK(r){return r.absolute()}function RK(r){return r.negative()}function zK(r){return r.sign()}function VK(r,e){return r.mod(e)}function UK(r,e){return r.floor_divide(e)}function CK(r){return r.positive()}function PK(r){return r.reciprocal()}var fXr="0.2.0";return JK(lXr);})();
|
|
4
|
-
/*! Bundled license information:
|
|
5
|
-
|
|
6
|
-
@stdlib/utils/define-property/lib/define_property.js:
|
|
7
|
-
@stdlib/utils/define-property/lib/has_define_property_support.js:
|
|
8
|
-
@stdlib/regexp/function-name/lib/main.js:
|
|
9
|
-
@stdlib/regexp/function-name/lib/index.js:
|
|
10
|
-
@stdlib/assert/has-bigint-support/lib/main.js:
|
|
11
|
-
@stdlib/assert/has-bigint-support/lib/index.js:
|
|
12
|
-
@stdlib/math/base/special/abs/lib/main.js:
|
|
13
|
-
@stdlib/assert/is-dataview/lib/main.js:
|
|
14
|
-
@stdlib/assert/is-dataview/lib/index.js:
|
|
15
|
-
@stdlib/assert/has-dataview-support/lib/dataview.js:
|
|
16
|
-
@stdlib/assert/has-dataview-support/lib/main.js:
|
|
17
|
-
@stdlib/assert/has-dataview-support/lib/index.js:
|
|
18
|
-
@stdlib/array/dataview/lib/main.js:
|
|
19
|
-
@stdlib/array/dataview/lib/polyfill.js:
|
|
20
|
-
@stdlib/array/dataview/lib/index.js:
|
|
21
|
-
@stdlib/bigint/ctor/lib/main.js:
|
|
22
|
-
@stdlib/bigint/ctor/lib/index.js:
|
|
23
|
-
@stdlib/ndarray/dtypes/lib/enum.js:
|
|
24
|
-
@stdlib/ndarray/dtypes/lib/assign.js:
|
|
25
|
-
@stdlib/ndarray/orders/lib/enum.js:
|
|
26
|
-
@stdlib/ndarray/index-modes/lib/enum.js:
|
|
27
|
-
@stdlib/ndarray/base/ctor/lib/meta2dataview.js:
|
|
28
|
-
@stdlib/number/float64/base/to-int64-bytes/lib/main.js:
|
|
29
|
-
@stdlib/number/float64/base/to-int64-bytes/lib/assign.js:
|
|
30
|
-
@stdlib/number/float64/base/to-int64-bytes/lib/index.js:
|
|
31
|
-
@stdlib/ndarray/base/ctor/lib/meta2dataview.polyfill.js:
|
|
32
|
-
@stdlib/complex/float32/real/lib/main.js:
|
|
33
|
-
@stdlib/complex/float32/real/lib/index.js:
|
|
34
|
-
@stdlib/complex/float32/imag/lib/main.js:
|
|
35
|
-
@stdlib/complex/float32/imag/lib/index.js:
|
|
36
|
-
@stdlib/strided/base/reinterpret-complex64/lib/main.js:
|
|
37
|
-
@stdlib/strided/base/reinterpret-complex64/lib/index.js:
|
|
38
|
-
@stdlib/strided/base/reinterpret-complex128/lib/main.js:
|
|
39
|
-
@stdlib/strided/base/reinterpret-complex128/lib/index.js:
|
|
40
|
-
@stdlib/ndarray/casting-modes/lib/enum.js:
|
|
41
|
-
@stdlib/ndarray/base/dtype-enum2str/lib/main.js:
|
|
42
|
-
@stdlib/ndarray/base/dtype-enum2str/lib/index.js:
|
|
43
|
-
@stdlib/ndarray/base/dtype-str2enum/lib/main.js:
|
|
44
|
-
@stdlib/ndarray/base/dtype-str2enum/lib/index.js:
|
|
45
|
-
@stdlib/ndarray/base/dtype-resolve-str/lib/main.js:
|
|
46
|
-
@stdlib/ndarray/base/dtype-resolve-str/lib/index.js:
|
|
47
|
-
@stdlib/array/base/filled/lib/main.js:
|
|
48
|
-
@stdlib/array/base/filled/lib/index.js:
|
|
49
|
-
@stdlib/array/base/zeros/lib/main.js:
|
|
50
|
-
@stdlib/array/base/zeros/lib/index.js:
|
|
51
|
-
@stdlib/ndarray/base/broadcast-array/lib/main.js:
|
|
52
|
-
@stdlib/ndarray/base/broadcast-array/lib/index.js:
|
|
53
|
-
@stdlib/ndarray/base/broadcast-shapes/lib/main.js:
|
|
54
|
-
@stdlib/ndarray/base/broadcast-shapes/lib/index.js:
|
|
55
|
-
@stdlib/ndarray/base/buffer-dtype-enum/lib/main.js:
|
|
56
|
-
@stdlib/ndarray/base/buffer-dtype-enum/lib/index.js:
|
|
57
|
-
@stdlib/ndarray/base/dtype-char/lib/table.js:
|
|
58
|
-
@stdlib/ndarray/base/char2dtype/lib/main.js:
|
|
59
|
-
@stdlib/ndarray/base/char2dtype/lib/index.js:
|
|
60
|
-
@stdlib/ndarray/base/dtype-desc/lib/table.js:
|
|
61
|
-
@stdlib/ndarray/base/dtype-desc/lib/index.js:
|
|
62
|
-
@stdlib/ndarray/base/dtype-resolve-enum/lib/main.js:
|
|
63
|
-
@stdlib/ndarray/base/dtype-resolve-enum/lib/index.js:
|
|
64
|
-
@stdlib/ndarray/base/dtype2c/lib/main.js:
|
|
65
|
-
@stdlib/ndarray/base/dtype2c/lib/index.js:
|
|
66
|
-
@stdlib/ndarray/base/meta-data-props/lib/main.js:
|
|
67
|
-
@stdlib/ndarray/base/meta-data-props/lib/index.js:
|
|
68
|
-
@stdlib/ndarray/base/serialize-meta-data/lib/main.js:
|
|
69
|
-
@stdlib/ndarray/base/serialize-meta-data/lib/polyfill.js:
|
|
70
|
-
@stdlib/ndarray/base/serialize-meta-data/lib/index.js:
|
|
71
|
-
@stdlib/ndarray/base/unary/lib/2d_blocked_accessors.js:
|
|
72
|
-
@stdlib/ndarray/base/unary/lib/3d_blocked_accessors.js:
|
|
73
|
-
@stdlib/ndarray/base/unary/lib/4d_blocked_accessors.js:
|
|
74
|
-
@stdlib/ndarray/base/unary/lib/5d_blocked_accessors.js:
|
|
75
|
-
@stdlib/ndarray/base/unary/lib/6d_blocked_accessors.js:
|
|
76
|
-
@stdlib/ndarray/base/unary/lib/7d_blocked_accessors.js:
|
|
77
|
-
@stdlib/ndarray/base/unary/lib/8d_blocked_accessors.js:
|
|
78
|
-
@stdlib/ndarray/base/unary/lib/9d_blocked_accessors.js:
|
|
79
|
-
@stdlib/ndarray/base/unary/lib/10d_blocked_accessors.js:
|
|
80
|
-
@stdlib/ndarray/base/unary/lib/2d_blocked.js:
|
|
81
|
-
@stdlib/ndarray/base/unary/lib/3d_blocked.js:
|
|
82
|
-
@stdlib/ndarray/base/unary/lib/4d_blocked.js:
|
|
83
|
-
@stdlib/ndarray/base/unary/lib/5d_blocked.js:
|
|
84
|
-
@stdlib/ndarray/base/unary/lib/6d_blocked.js:
|
|
85
|
-
@stdlib/ndarray/base/unary/lib/7d_blocked.js:
|
|
86
|
-
@stdlib/ndarray/base/unary/lib/8d_blocked.js:
|
|
87
|
-
@stdlib/ndarray/base/unary/lib/9d_blocked.js:
|
|
88
|
-
@stdlib/ndarray/base/unary/lib/10d_blocked.js:
|
|
89
|
-
@stdlib/ndarray/base/unary/lib/0d_accessors.js:
|
|
90
|
-
@stdlib/ndarray/base/unary/lib/1d_accessors.js:
|
|
91
|
-
@stdlib/ndarray/base/unary/lib/2d_accessors.js:
|
|
92
|
-
@stdlib/ndarray/base/unary/lib/3d_accessors.js:
|
|
93
|
-
@stdlib/ndarray/base/unary/lib/4d_accessors.js:
|
|
94
|
-
@stdlib/ndarray/base/unary/lib/5d_accessors.js:
|
|
95
|
-
@stdlib/ndarray/base/unary/lib/6d_accessors.js:
|
|
96
|
-
@stdlib/ndarray/base/unary/lib/7d_accessors.js:
|
|
97
|
-
@stdlib/ndarray/base/unary/lib/8d_accessors.js:
|
|
98
|
-
@stdlib/ndarray/base/unary/lib/9d_accessors.js:
|
|
99
|
-
@stdlib/ndarray/base/unary/lib/10d_accessors.js:
|
|
100
|
-
@stdlib/ndarray/base/unary/lib/nd_accessors.js:
|
|
101
|
-
@stdlib/ndarray/base/unary/lib/0d.js:
|
|
102
|
-
@stdlib/ndarray/base/unary/lib/1d.js:
|
|
103
|
-
@stdlib/ndarray/base/unary/lib/2d.js:
|
|
104
|
-
@stdlib/ndarray/base/unary/lib/3d.js:
|
|
105
|
-
@stdlib/ndarray/base/unary/lib/4d.js:
|
|
106
|
-
@stdlib/ndarray/base/unary/lib/5d.js:
|
|
107
|
-
@stdlib/ndarray/base/unary/lib/6d.js:
|
|
108
|
-
@stdlib/ndarray/base/unary/lib/7d.js:
|
|
109
|
-
@stdlib/ndarray/base/unary/lib/8d.js:
|
|
110
|
-
@stdlib/ndarray/base/unary/lib/9d.js:
|
|
111
|
-
@stdlib/ndarray/base/unary/lib/10d.js:
|
|
112
|
-
@stdlib/ndarray/base/unary/lib/nd.js:
|
|
113
|
-
@stdlib/ndarray/base/unary/lib/main.js:
|
|
114
|
-
@stdlib/ndarray/base/unary/lib/index.js:
|
|
115
|
-
@stdlib/ndarray/dispatch/lib/index_of_types.js:
|
|
116
|
-
@stdlib/ndarray/dispatch/lib/main.js:
|
|
117
|
-
@stdlib/ndarray/dispatch/lib/index.js:
|
|
118
|
-
@stdlib/assert/is-property-key/lib/main.js:
|
|
119
|
-
@stdlib/assert/is-property-key/lib/index.js:
|
|
120
|
-
(**
|
|
121
|
-
* @license Apache-2.0
|
|
122
|
-
*
|
|
123
|
-
* Copyright (c) 2021 The Stdlib Authors.
|
|
124
|
-
*
|
|
125
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
126
|
-
* you may not use this file except in compliance with the License.
|
|
127
|
-
* You may obtain a copy of the License at
|
|
128
|
-
*
|
|
129
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
130
|
-
*
|
|
131
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
132
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
133
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
134
|
-
* See the License for the specific language governing permissions and
|
|
135
|
-
* limitations under the License.
|
|
136
|
-
*)
|
|
137
|
-
|
|
138
|
-
@stdlib/utils/define-property/lib/builtin.js:
|
|
139
|
-
@stdlib/utils/define-property/lib/polyfill.js:
|
|
140
|
-
@stdlib/utils/define-property/lib/index.js:
|
|
141
|
-
@stdlib/utils/define-read-only-property/lib/main.js:
|
|
142
|
-
@stdlib/utils/define-read-only-property/lib/index.js:
|
|
143
|
-
@stdlib/assert/has-own-property/lib/main.js:
|
|
144
|
-
@stdlib/assert/has-own-property/lib/index.js:
|
|
145
|
-
@stdlib/assert/has-symbol-support/lib/main.js:
|
|
146
|
-
@stdlib/assert/has-symbol-support/lib/index.js:
|
|
147
|
-
@stdlib/assert/has-tostringtag-support/lib/main.js:
|
|
148
|
-
@stdlib/assert/has-tostringtag-support/lib/index.js:
|
|
149
|
-
@stdlib/utils/native-class/lib/tostring.js:
|
|
150
|
-
@stdlib/utils/native-class/lib/main.js:
|
|
151
|
-
@stdlib/symbol/ctor/lib/main.js:
|
|
152
|
-
@stdlib/symbol/ctor/lib/index.js:
|
|
153
|
-
@stdlib/utils/native-class/lib/tostringtag.js:
|
|
154
|
-
@stdlib/utils/native-class/lib/polyfill.js:
|
|
155
|
-
@stdlib/utils/native-class/lib/index.js:
|
|
156
|
-
@stdlib/assert/is-array/lib/main.js:
|
|
157
|
-
@stdlib/assert/is-array/lib/index.js:
|
|
158
|
-
@stdlib/assert/is-object/lib/main.js:
|
|
159
|
-
@stdlib/assert/is-object/lib/index.js:
|
|
160
|
-
@stdlib/utils/type-of/lib/fixtures/re.js:
|
|
161
|
-
@stdlib/utils/define-nonenumerable-read-only-property/lib/main.js:
|
|
162
|
-
@stdlib/utils/define-nonenumerable-read-only-property/lib/index.js:
|
|
163
|
-
@stdlib/assert/is-boolean/lib/primitive.js:
|
|
164
|
-
@stdlib/assert/is-boolean/lib/tostring.js:
|
|
165
|
-
@stdlib/assert/is-boolean/lib/try2serialize.js:
|
|
166
|
-
@stdlib/assert/is-boolean/lib/object.js:
|
|
167
|
-
@stdlib/assert/is-boolean/lib/main.js:
|
|
168
|
-
@stdlib/assert/is-boolean/lib/index.js:
|
|
169
|
-
@stdlib/utils/global/lib/codegen.js:
|
|
170
|
-
@stdlib/utils/global/lib/self.js:
|
|
171
|
-
@stdlib/utils/global/lib/window.js:
|
|
172
|
-
@stdlib/utils/type-of/lib/fixtures/nodelist.js:
|
|
173
|
-
@stdlib/utils/type-of/lib/fixtures/typedarray.js:
|
|
174
|
-
@stdlib/utils/type-of/lib/check.js:
|
|
175
|
-
@stdlib/regexp/function-name/lib/regexp.js:
|
|
176
|
-
@stdlib/assert/tools/array-function/lib/main.js:
|
|
177
|
-
@stdlib/assert/tools/array-function/lib/index.js:
|
|
178
|
-
@stdlib/assert/is-object-like/lib/main.js:
|
|
179
|
-
@stdlib/assert/is-object-like/lib/index.js:
|
|
180
|
-
@stdlib/assert/is-buffer/lib/main.js:
|
|
181
|
-
@stdlib/assert/is-buffer/lib/index.js:
|
|
182
|
-
@stdlib/utils/constructor-name/lib/main.js:
|
|
183
|
-
@stdlib/utils/constructor-name/lib/index.js:
|
|
184
|
-
@stdlib/utils/type-of/lib/main.js:
|
|
185
|
-
@stdlib/utils/type-of/lib/polyfill.js:
|
|
186
|
-
@stdlib/utils/type-of/lib/index.js:
|
|
187
|
-
@stdlib/assert/is-function/lib/main.js:
|
|
188
|
-
@stdlib/assert/is-function/lib/index.js:
|
|
189
|
-
@stdlib/utils/get-prototype-of/lib/native.js:
|
|
190
|
-
@stdlib/utils/get-prototype-of/lib/proto.js:
|
|
191
|
-
@stdlib/utils/get-prototype-of/lib/polyfill.js:
|
|
192
|
-
@stdlib/utils/get-prototype-of/lib/detect.js:
|
|
193
|
-
@stdlib/utils/get-prototype-of/lib/main.js:
|
|
194
|
-
@stdlib/utils/get-prototype-of/lib/index.js:
|
|
195
|
-
@stdlib/assert/is-plain-object/lib/main.js:
|
|
196
|
-
@stdlib/assert/is-plain-object/lib/index.js:
|
|
197
|
-
@stdlib/assert/is-number/lib/primitive.js:
|
|
198
|
-
@stdlib/number/ctor/lib/main.js:
|
|
199
|
-
@stdlib/number/ctor/lib/index.js:
|
|
200
|
-
@stdlib/assert/is-number/lib/tostring.js:
|
|
201
|
-
@stdlib/assert/is-number/lib/try2serialize.js:
|
|
202
|
-
@stdlib/assert/is-number/lib/object.js:
|
|
203
|
-
@stdlib/assert/is-number/lib/main.js:
|
|
204
|
-
@stdlib/assert/is-number/lib/index.js:
|
|
205
|
-
@stdlib/constants/float64/pinf/lib/index.js:
|
|
206
|
-
@stdlib/constants/float64/ninf/lib/index.js:
|
|
207
|
-
@stdlib/math/base/special/floor/lib/main.js:
|
|
208
|
-
@stdlib/math/base/special/floor/lib/index.js:
|
|
209
|
-
@stdlib/math/base/assert/is-integer/lib/main.js:
|
|
210
|
-
@stdlib/math/base/assert/is-integer/lib/index.js:
|
|
211
|
-
@stdlib/assert/is-integer/lib/integer.js:
|
|
212
|
-
@stdlib/assert/is-integer/lib/primitive.js:
|
|
213
|
-
@stdlib/assert/is-integer/lib/object.js:
|
|
214
|
-
@stdlib/assert/is-integer/lib/main.js:
|
|
215
|
-
@stdlib/assert/is-integer/lib/index.js:
|
|
216
|
-
@stdlib/assert/is-nonnegative-integer/lib/primitive.js:
|
|
217
|
-
@stdlib/assert/is-nonnegative-integer/lib/object.js:
|
|
218
|
-
@stdlib/assert/is-nonnegative-integer/lib/main.js:
|
|
219
|
-
@stdlib/assert/is-nonnegative-integer/lib/index.js:
|
|
220
|
-
@stdlib/utils/define-nonenumerable-read-only-accessor/lib/main.js:
|
|
221
|
-
@stdlib/utils/define-nonenumerable-read-only-accessor/lib/index.js:
|
|
222
|
-
@stdlib/ndarray/base/bytes-per-element/lib/main.js:
|
|
223
|
-
@stdlib/ndarray/base/bytes-per-element/lib/index.js:
|
|
224
|
-
@stdlib/ndarray/base/iteration-order/lib/main.js:
|
|
225
|
-
@stdlib/ndarray/base/iteration-order/lib/index.js:
|
|
226
|
-
@stdlib/math/base/special/abs/lib/index.js:
|
|
227
|
-
@stdlib/ndarray/base/strides2order/lib/main.js:
|
|
228
|
-
@stdlib/ndarray/base/strides2order/lib/index.js:
|
|
229
|
-
@stdlib/ndarray/base/ctor/lib/is_column_major_contiguous.js:
|
|
230
|
-
@stdlib/ndarray/base/ctor/lib/is_row_major_contiguous.js:
|
|
231
|
-
@stdlib/ndarray/base/minmax-view-buffer-index/lib/main.js:
|
|
232
|
-
@stdlib/ndarray/base/minmax-view-buffer-index/lib/assign.js:
|
|
233
|
-
@stdlib/ndarray/base/minmax-view-buffer-index/lib/index.js:
|
|
234
|
-
@stdlib/ndarray/base/ctor/lib/is_contiguous.js:
|
|
235
|
-
@stdlib/ndarray/base/ctor/lib/copy_flags.js:
|
|
236
|
-
@stdlib/ndarray/base/ctor/lib/iget.js:
|
|
237
|
-
@stdlib/ndarray/base/ctor/lib/iset.js:
|
|
238
|
-
@stdlib/ndarray/base/ctor/lib/set.js:
|
|
239
|
-
@stdlib/ndarray/base/ctor/lib/get.js:
|
|
240
|
-
@stdlib/complex/float64/real/lib/main.js:
|
|
241
|
-
@stdlib/complex/float64/real/lib/index.js:
|
|
242
|
-
@stdlib/complex/float64/imag/lib/main.js:
|
|
243
|
-
@stdlib/complex/float64/imag/lib/index.js:
|
|
244
|
-
@stdlib/ndarray/base/ctor/lib/tojson.js:
|
|
245
|
-
@stdlib/assert/is-string/lib/primitive.js:
|
|
246
|
-
@stdlib/assert/is-string/lib/valueof.js:
|
|
247
|
-
@stdlib/assert/is-string/lib/try2valueof.js:
|
|
248
|
-
@stdlib/assert/is-string/lib/object.js:
|
|
249
|
-
@stdlib/assert/is-string/lib/main.js:
|
|
250
|
-
@stdlib/assert/is-string/lib/index.js:
|
|
251
|
-
@stdlib/utils/escape-regexp-string/lib/main.js:
|
|
252
|
-
@stdlib/utils/escape-regexp-string/lib/index.js:
|
|
253
|
-
@stdlib/assert/is-regexp/lib/exec.js:
|
|
254
|
-
@stdlib/assert/is-regexp/lib/try2exec.js:
|
|
255
|
-
@stdlib/assert/is-regexp/lib/main.js:
|
|
256
|
-
@stdlib/assert/is-regexp/lib/index.js:
|
|
257
|
-
@stdlib/string/replace/lib/main.js:
|
|
258
|
-
@stdlib/string/replace/lib/index.js:
|
|
259
|
-
@stdlib/ndarray/base/ctor/lib/tostring.js:
|
|
260
|
-
@stdlib/assert/is-uint8array/lib/main.js:
|
|
261
|
-
@stdlib/assert/is-uint8array/lib/index.js:
|
|
262
|
-
@stdlib/constants/uint8/max/lib/index.js:
|
|
263
|
-
@stdlib/assert/has-uint8array-support/lib/uint8array.js:
|
|
264
|
-
@stdlib/assert/has-uint8array-support/lib/main.js:
|
|
265
|
-
@stdlib/assert/has-uint8array-support/lib/index.js:
|
|
266
|
-
@stdlib/array/uint8/lib/main.js:
|
|
267
|
-
@stdlib/array/uint8/lib/polyfill.js:
|
|
268
|
-
@stdlib/array/uint8/lib/index.js:
|
|
269
|
-
@stdlib/assert/is-uint16array/lib/main.js:
|
|
270
|
-
@stdlib/assert/is-uint16array/lib/index.js:
|
|
271
|
-
@stdlib/constants/uint16/max/lib/index.js:
|
|
272
|
-
@stdlib/assert/has-uint16array-support/lib/uint16array.js:
|
|
273
|
-
@stdlib/assert/has-uint16array-support/lib/main.js:
|
|
274
|
-
@stdlib/assert/has-uint16array-support/lib/index.js:
|
|
275
|
-
@stdlib/array/uint16/lib/main.js:
|
|
276
|
-
@stdlib/array/uint16/lib/polyfill.js:
|
|
277
|
-
@stdlib/array/uint16/lib/index.js:
|
|
278
|
-
@stdlib/assert/is-little-endian/lib/ctors.js:
|
|
279
|
-
@stdlib/assert/is-little-endian/lib/main.js:
|
|
280
|
-
@stdlib/assert/is-little-endian/lib/index.js:
|
|
281
|
-
@stdlib/assert/is-arraybuffer/lib/main.js:
|
|
282
|
-
@stdlib/assert/is-arraybuffer/lib/index.js:
|
|
283
|
-
@stdlib/assert/is-float64array/lib/main.js:
|
|
284
|
-
@stdlib/assert/is-float64array/lib/index.js:
|
|
285
|
-
@stdlib/assert/has-float64array-support/lib/float64array.js:
|
|
286
|
-
@stdlib/assert/has-float64array-support/lib/main.js:
|
|
287
|
-
@stdlib/assert/has-float64array-support/lib/index.js:
|
|
288
|
-
@stdlib/array/float64/lib/main.js:
|
|
289
|
-
@stdlib/array/float64/lib/polyfill.js:
|
|
290
|
-
@stdlib/array/float64/lib/index.js:
|
|
291
|
-
@stdlib/assert/has-arraybuffer-support/lib/arraybuffer.js:
|
|
292
|
-
@stdlib/assert/has-arraybuffer-support/lib/main.js:
|
|
293
|
-
@stdlib/assert/has-arraybuffer-support/lib/index.js:
|
|
294
|
-
@stdlib/array/buffer/lib/main.js:
|
|
295
|
-
@stdlib/array/buffer/lib/polyfill.js:
|
|
296
|
-
@stdlib/array/buffer/lib/index.js:
|
|
297
|
-
@stdlib/ndarray/dtypes/lib/main.js:
|
|
298
|
-
@stdlib/utils/keys/lib/builtin.js:
|
|
299
|
-
@stdlib/utils/keys/lib/has_arguments_bug.js:
|
|
300
|
-
@stdlib/utils/keys/lib/has_builtin.js:
|
|
301
|
-
@stdlib/assert/is-arguments/lib/main.js:
|
|
302
|
-
@stdlib/assert/is-arguments/lib/detect.js:
|
|
303
|
-
@stdlib/math/base/assert/is-nan/lib/main.js:
|
|
304
|
-
@stdlib/math/base/assert/is-nan/lib/index.js:
|
|
305
|
-
@stdlib/assert/is-nan/lib/primitive.js:
|
|
306
|
-
@stdlib/assert/is-nan/lib/object.js:
|
|
307
|
-
@stdlib/assert/is-nan/lib/main.js:
|
|
308
|
-
@stdlib/assert/is-nan/lib/index.js:
|
|
309
|
-
@stdlib/assert/is-enumerable-property/lib/native.js:
|
|
310
|
-
@stdlib/assert/is-enumerable-property/lib/has_string_enumerability_bug.js:
|
|
311
|
-
@stdlib/assert/is-enumerable-property/lib/main.js:
|
|
312
|
-
@stdlib/assert/is-enumerable-property/lib/index.js:
|
|
313
|
-
@stdlib/constants/uint32/max/lib/index.js:
|
|
314
|
-
@stdlib/assert/is-arguments/lib/polyfill.js:
|
|
315
|
-
@stdlib/assert/is-arguments/lib/index.js:
|
|
316
|
-
@stdlib/utils/keys/lib/builtin_wrapper.js:
|
|
317
|
-
@stdlib/utils/noop/lib/main.js:
|
|
318
|
-
@stdlib/utils/noop/lib/index.js:
|
|
319
|
-
@stdlib/utils/keys/lib/has_enumerable_prototype_bug.js:
|
|
320
|
-
@stdlib/utils/keys/lib/has_non_enumerable_properties_bug.js:
|
|
321
|
-
@stdlib/constants/array/max-typed-array-length/lib/index.js:
|
|
322
|
-
@stdlib/assert/is-collection/lib/main.js:
|
|
323
|
-
@stdlib/assert/is-collection/lib/index.js:
|
|
324
|
-
@stdlib/utils/index-of/lib/main.js:
|
|
325
|
-
@stdlib/utils/index-of/lib/index.js:
|
|
326
|
-
@stdlib/utils/keys/lib/is_constructor_prototype.js:
|
|
327
|
-
@stdlib/utils/keys/lib/window.js:
|
|
328
|
-
@stdlib/utils/keys/lib/has_automation_equality_bug.js:
|
|
329
|
-
@stdlib/utils/keys/lib/has_window.js:
|
|
330
|
-
@stdlib/utils/keys/lib/is_constructor_prototype_wrapper.js:
|
|
331
|
-
@stdlib/utils/keys/lib/polyfill.js:
|
|
332
|
-
@stdlib/utils/keys/lib/main.js:
|
|
333
|
-
@stdlib/utils/keys/lib/index.js:
|
|
334
|
-
@stdlib/ndarray/dtypes/lib/index.js:
|
|
335
|
-
@stdlib/ndarray/orders/lib/main.js:
|
|
336
|
-
@stdlib/ndarray/orders/lib/index.js:
|
|
337
|
-
@stdlib/ndarray/index-modes/lib/main.js:
|
|
338
|
-
@stdlib/ndarray/index-modes/lib/index.js:
|
|
339
|
-
@stdlib/ndarray/base/ctor/lib/main.js:
|
|
340
|
-
@stdlib/ndarray/base/ctor/lib/index.js:
|
|
341
|
-
@stdlib/assert/is-ndarray-like/lib/main.js:
|
|
342
|
-
@stdlib/assert/is-ndarray-like/lib/index.js:
|
|
343
|
-
@stdlib/ndarray/base/shape2strides/lib/main.js:
|
|
344
|
-
@stdlib/ndarray/base/shape2strides/lib/assign.js:
|
|
345
|
-
@stdlib/ndarray/base/shape2strides/lib/index.js:
|
|
346
|
-
@stdlib/ndarray/base/strides2offset/lib/main.js:
|
|
347
|
-
@stdlib/ndarray/base/strides2offset/lib/index.js:
|
|
348
|
-
@stdlib/ndarray/base/numel/lib/main.js:
|
|
349
|
-
@stdlib/ndarray/base/numel/lib/index.js:
|
|
350
|
-
@stdlib/constants/array/max-array-length/lib/index.js:
|
|
351
|
-
@stdlib/assert/is-array-like/lib/main.js:
|
|
352
|
-
@stdlib/assert/is-array-like/lib/index.js:
|
|
353
|
-
@stdlib/assert/tools/array-like-function/lib/main.js:
|
|
354
|
-
@stdlib/assert/tools/array-like-function/lib/index.js:
|
|
355
|
-
@stdlib/assert/is-nonnegative-integer-array/lib/index.js:
|
|
356
|
-
@stdlib/assert/is-integer-array/lib/index.js:
|
|
357
|
-
@stdlib/ndarray/base/assert/is-order/lib/main.js:
|
|
358
|
-
@stdlib/ndarray/base/assert/is-order/lib/index.js:
|
|
359
|
-
@stdlib/assert/is-float32array/lib/main.js:
|
|
360
|
-
@stdlib/assert/is-float32array/lib/index.js:
|
|
361
|
-
@stdlib/assert/has-float32array-support/lib/float32array.js:
|
|
362
|
-
@stdlib/assert/has-float32array-support/lib/main.js:
|
|
363
|
-
@stdlib/assert/has-float32array-support/lib/index.js:
|
|
364
|
-
@stdlib/array/float32/lib/main.js:
|
|
365
|
-
@stdlib/array/float32/lib/polyfill.js:
|
|
366
|
-
@stdlib/array/float32/lib/index.js:
|
|
367
|
-
@stdlib/assert/is-uint32array/lib/main.js:
|
|
368
|
-
@stdlib/assert/is-uint32array/lib/index.js:
|
|
369
|
-
@stdlib/assert/has-uint32array-support/lib/uint32array.js:
|
|
370
|
-
@stdlib/assert/has-uint32array-support/lib/main.js:
|
|
371
|
-
@stdlib/assert/has-uint32array-support/lib/index.js:
|
|
372
|
-
@stdlib/array/uint32/lib/main.js:
|
|
373
|
-
@stdlib/array/uint32/lib/polyfill.js:
|
|
374
|
-
@stdlib/array/uint32/lib/index.js:
|
|
375
|
-
@stdlib/assert/is-int32array/lib/main.js:
|
|
376
|
-
@stdlib/assert/is-int32array/lib/index.js:
|
|
377
|
-
@stdlib/constants/int32/max/lib/index.js:
|
|
378
|
-
@stdlib/constants/int32/min/lib/index.js:
|
|
379
|
-
@stdlib/assert/has-int32array-support/lib/int32array.js:
|
|
380
|
-
@stdlib/assert/has-int32array-support/lib/main.js:
|
|
381
|
-
@stdlib/assert/has-int32array-support/lib/index.js:
|
|
382
|
-
@stdlib/array/int32/lib/main.js:
|
|
383
|
-
@stdlib/array/int32/lib/polyfill.js:
|
|
384
|
-
@stdlib/array/int32/lib/index.js:
|
|
385
|
-
@stdlib/assert/is-int16array/lib/main.js:
|
|
386
|
-
@stdlib/assert/is-int16array/lib/index.js:
|
|
387
|
-
@stdlib/constants/int16/max/lib/index.js:
|
|
388
|
-
@stdlib/constants/int16/min/lib/index.js:
|
|
389
|
-
@stdlib/assert/has-int16array-support/lib/int16array.js:
|
|
390
|
-
@stdlib/assert/has-int16array-support/lib/main.js:
|
|
391
|
-
@stdlib/assert/has-int16array-support/lib/index.js:
|
|
392
|
-
@stdlib/array/int16/lib/main.js:
|
|
393
|
-
@stdlib/array/int16/lib/polyfill.js:
|
|
394
|
-
@stdlib/array/int16/lib/index.js:
|
|
395
|
-
@stdlib/assert/is-uint8clampedarray/lib/main.js:
|
|
396
|
-
@stdlib/assert/is-uint8clampedarray/lib/index.js:
|
|
397
|
-
@stdlib/assert/has-uint8clampedarray-support/lib/uint8clampedarray.js:
|
|
398
|
-
@stdlib/assert/has-uint8clampedarray-support/lib/main.js:
|
|
399
|
-
@stdlib/assert/has-uint8clampedarray-support/lib/index.js:
|
|
400
|
-
@stdlib/array/uint8c/lib/main.js:
|
|
401
|
-
@stdlib/array/uint8c/lib/polyfill.js:
|
|
402
|
-
@stdlib/array/uint8c/lib/index.js:
|
|
403
|
-
@stdlib/assert/is-int8array/lib/main.js:
|
|
404
|
-
@stdlib/assert/is-int8array/lib/index.js:
|
|
405
|
-
@stdlib/constants/int8/max/lib/index.js:
|
|
406
|
-
@stdlib/constants/int8/min/lib/index.js:
|
|
407
|
-
@stdlib/assert/has-int8array-support/lib/int8array.js:
|
|
408
|
-
@stdlib/assert/has-int8array-support/lib/main.js:
|
|
409
|
-
@stdlib/assert/has-int8array-support/lib/index.js:
|
|
410
|
-
@stdlib/array/int8/lib/main.js:
|
|
411
|
-
@stdlib/array/int8/lib/polyfill.js:
|
|
412
|
-
@stdlib/array/int8/lib/index.js:
|
|
413
|
-
@stdlib/assert/is-array-like-object/lib/main.js:
|
|
414
|
-
@stdlib/assert/is-array-like-object/lib/index.js:
|
|
415
|
-
@stdlib/assert/is-string-array/lib/index.js:
|
|
416
|
-
@stdlib/complex/float64/ctor/lib/tostring.js:
|
|
417
|
-
@stdlib/complex/float64/ctor/lib/tojson.js:
|
|
418
|
-
@stdlib/complex/float64/ctor/lib/main.js:
|
|
419
|
-
@stdlib/complex/float64/ctor/lib/index.js:
|
|
420
|
-
@stdlib/number/float64/base/to-float32/lib/main.js:
|
|
421
|
-
@stdlib/number/float64/base/to-float32/lib/polyfill.js:
|
|
422
|
-
@stdlib/number/float64/base/to-float32/lib/index.js:
|
|
423
|
-
@stdlib/complex/float32/ctor/lib/tostring.js:
|
|
424
|
-
@stdlib/complex/float32/ctor/lib/tojson.js:
|
|
425
|
-
@stdlib/complex/float32/ctor/lib/main.js:
|
|
426
|
-
@stdlib/complex/float32/ctor/lib/index.js:
|
|
427
|
-
@stdlib/assert/is-complex-like/lib/main.js:
|
|
428
|
-
@stdlib/assert/is-complex-like/lib/index.js:
|
|
429
|
-
@stdlib/math/base/assert/is-even/lib/main.js:
|
|
430
|
-
@stdlib/math/base/assert/is-even/lib/index.js:
|
|
431
|
-
@stdlib/assert/has-iterator-symbol-support/lib/main.js:
|
|
432
|
-
@stdlib/assert/has-iterator-symbol-support/lib/index.js:
|
|
433
|
-
@stdlib/symbol/iterator/lib/main.js:
|
|
434
|
-
@stdlib/symbol/iterator/lib/index.js:
|
|
435
|
-
@stdlib/array/complex64/lib/from_iterator.js:
|
|
436
|
-
@stdlib/array/complex64/lib/from_iterator_map.js:
|
|
437
|
-
@stdlib/array/complex64/lib/from_array.js:
|
|
438
|
-
@stdlib/array/complex64/lib/main.js:
|
|
439
|
-
@stdlib/array/complex64/lib/index.js:
|
|
440
|
-
@stdlib/array/complex128/lib/from_iterator.js:
|
|
441
|
-
@stdlib/array/complex128/lib/from_iterator_map.js:
|
|
442
|
-
@stdlib/array/complex128/lib/from_array.js:
|
|
443
|
-
@stdlib/array/complex128/lib/index.js:
|
|
444
|
-
@stdlib/array/dtype/lib/main.js:
|
|
445
|
-
@stdlib/array/dtype/lib/index.js:
|
|
446
|
-
@stdlib/ndarray/base/assert/is-data-type/lib/main.js:
|
|
447
|
-
@stdlib/ndarray/base/assert/is-data-type/lib/index.js:
|
|
448
|
-
@stdlib/ndarray/base/assert/is-buffer-length-compatible/lib/main.js:
|
|
449
|
-
@stdlib/ndarray/base/assert/is-buffer-length-compatible/lib/index.js:
|
|
450
|
-
@stdlib/utils/inherit/lib/validate.js:
|
|
451
|
-
@stdlib/utils/inherit/lib/native.js:
|
|
452
|
-
@stdlib/utils/inherit/lib/polyfill.js:
|
|
453
|
-
@stdlib/utils/inherit/lib/detect.js:
|
|
454
|
-
@stdlib/utils/inherit/lib/main.js:
|
|
455
|
-
@stdlib/utils/inherit/lib/index.js:
|
|
456
|
-
@stdlib/ndarray/base/clamp-index/lib/main.js:
|
|
457
|
-
@stdlib/ndarray/base/clamp-index/lib/index.js:
|
|
458
|
-
@stdlib/ndarray/base/wrap-index/lib/main.js:
|
|
459
|
-
@stdlib/ndarray/base/wrap-index/lib/index.js:
|
|
460
|
-
@stdlib/ndarray/base/assert/is-index-mode/lib/main.js:
|
|
461
|
-
@stdlib/ndarray/base/assert/is-index-mode/lib/index.js:
|
|
462
|
-
@stdlib/ndarray/base/ind/lib/main.js:
|
|
463
|
-
@stdlib/ndarray/base/ind/lib/index.js:
|
|
464
|
-
@stdlib/ndarray/ctor/lib/iget.js:
|
|
465
|
-
@stdlib/ndarray/ctor/lib/iset.js:
|
|
466
|
-
@stdlib/ndarray/ctor/lib/get.js:
|
|
467
|
-
@stdlib/ndarray/ctor/lib/set.js:
|
|
468
|
-
@stdlib/ndarray/ctor/lib/copy_array.js:
|
|
469
|
-
@stdlib/ndarray/ctor/lib/validate.js:
|
|
470
|
-
@stdlib/ndarray/ctor/lib/main.js:
|
|
471
|
-
@stdlib/ndarray/ctor/lib/index.js:
|
|
472
|
-
@stdlib/ndarray/casting-modes/lib/main.js:
|
|
473
|
-
@stdlib/ndarray/casting-modes/lib/index.js:
|
|
474
|
-
@stdlib/ndarray/base/assert/is-casting-mode/lib/main.js:
|
|
475
|
-
@stdlib/ndarray/base/assert/is-casting-mode/lib/index.js:
|
|
476
|
-
@stdlib/utils/object-inverse/lib/main.js:
|
|
477
|
-
@stdlib/utils/object-inverse/lib/index.js:
|
|
478
|
-
@stdlib/ndarray/safe-casts/lib/main.js:
|
|
479
|
-
@stdlib/ndarray/safe-casts/lib/index.js:
|
|
480
|
-
@stdlib/ndarray/base/assert/is-safe-data-type-cast/lib/main.js:
|
|
481
|
-
@stdlib/ndarray/base/assert/is-safe-data-type-cast/lib/index.js:
|
|
482
|
-
@stdlib/ndarray/same-kind-casts/lib/main.js:
|
|
483
|
-
@stdlib/ndarray/same-kind-casts/lib/index.js:
|
|
484
|
-
@stdlib/ndarray/base/assert/is-same-kind-data-type-cast/lib/main.js:
|
|
485
|
-
@stdlib/ndarray/base/assert/is-same-kind-data-type-cast/lib/index.js:
|
|
486
|
-
@stdlib/ndarray/base/assert/is-allowed-data-type-cast/lib/main.js:
|
|
487
|
-
@stdlib/ndarray/base/assert/is-allowed-data-type-cast/lib/index.js:
|
|
488
|
-
@stdlib/assert/has-node-buffer-support/lib/buffer.js:
|
|
489
|
-
@stdlib/assert/has-node-buffer-support/lib/main.js:
|
|
490
|
-
@stdlib/assert/has-node-buffer-support/lib/index.js:
|
|
491
|
-
@stdlib/buffer/ctor/lib/main.js:
|
|
492
|
-
@stdlib/buffer/ctor/lib/polyfill.js:
|
|
493
|
-
@stdlib/buffer/ctor/lib/index.js:
|
|
494
|
-
@stdlib/ndarray/base/buffer-ctors/lib/main.js:
|
|
495
|
-
@stdlib/ndarray/base/buffer-ctors/lib/index.js:
|
|
496
|
-
@stdlib/buffer/alloc-unsafe/lib/has_alloc_unsafe.js:
|
|
497
|
-
@stdlib/buffer/alloc-unsafe/lib/main.js:
|
|
498
|
-
@stdlib/buffer/alloc-unsafe/lib/polyfill.js:
|
|
499
|
-
@stdlib/buffer/alloc-unsafe/lib/index.js:
|
|
500
|
-
@stdlib/ndarray/base/buffer/lib/zeros.js:
|
|
501
|
-
@stdlib/ndarray/base/buffer/lib/main.js:
|
|
502
|
-
@stdlib/ndarray/base/buffer/lib/index.js:
|
|
503
|
-
@stdlib/ndarray/base/buffer-dtype/lib/main.js:
|
|
504
|
-
@stdlib/ndarray/base/buffer-dtype/lib/index.js:
|
|
505
|
-
@stdlib/array/shape/lib/main.js:
|
|
506
|
-
@stdlib/array/shape/lib/index.js:
|
|
507
|
-
@stdlib/ndarray/base/vind2bind/lib/main.js:
|
|
508
|
-
@stdlib/ndarray/base/vind2bind/lib/index.js:
|
|
509
|
-
@stdlib/ndarray/array/lib/is_array_like_object.js:
|
|
510
|
-
@stdlib/ndarray/array/lib/cast_buffer.js:
|
|
511
|
-
@stdlib/ndarray/array/lib/copy_view.js:
|
|
512
|
-
@stdlib/ndarray/array/lib/expand_shape.js:
|
|
513
|
-
@stdlib/ndarray/array/lib/expand_strides.js:
|
|
514
|
-
@stdlib/ndarray/array/lib/main.js:
|
|
515
|
-
@stdlib/ndarray/array/lib/index.js:
|
|
516
|
-
@stdlib/ndarray/base/assert/is-buffer-length-compatible-shape/lib/main.js:
|
|
517
|
-
@stdlib/ndarray/base/assert/is-buffer-length-compatible-shape/lib/index.js:
|
|
518
|
-
@stdlib/ndarray/base/assert/is-column-major/lib/main.js:
|
|
519
|
-
@stdlib/ndarray/base/assert/is-column-major/lib/index.js:
|
|
520
|
-
@stdlib/ndarray/base/assert/is-single-segment-compatible/lib/main.js:
|
|
521
|
-
@stdlib/ndarray/base/assert/is-single-segment-compatible/lib/index.js:
|
|
522
|
-
@stdlib/ndarray/base/assert/is-column-major-contiguous/lib/main.js:
|
|
523
|
-
@stdlib/ndarray/base/assert/is-column-major-contiguous/lib/index.js:
|
|
524
|
-
@stdlib/ndarray/base/assert/is-contiguous/lib/main.js:
|
|
525
|
-
@stdlib/ndarray/base/assert/is-contiguous/lib/index.js:
|
|
526
|
-
@stdlib/utils/property-symbols/lib/has_builtin.js:
|
|
527
|
-
@stdlib/utils/property-symbols/lib/builtin.js:
|
|
528
|
-
@stdlib/utils/property-symbols/lib/polyfill.js:
|
|
529
|
-
@stdlib/utils/property-symbols/lib/index.js:
|
|
530
|
-
@stdlib/utils/enumerable-properties/lib/main.js:
|
|
531
|
-
@stdlib/utils/enumerable-properties/lib/index.js:
|
|
532
|
-
@stdlib/ndarray/base/assert/is-row-major/lib/main.js:
|
|
533
|
-
@stdlib/ndarray/base/assert/is-row-major/lib/index.js:
|
|
534
|
-
@stdlib/ndarray/base/assert/is-row-major-contiguous/lib/main.js:
|
|
535
|
-
@stdlib/ndarray/base/assert/is-row-major-contiguous/lib/index.js:
|
|
536
|
-
@stdlib/ndarray/base/assert/lib/index.js:
|
|
537
|
-
@stdlib/math/base/special/ceil/lib/main.js:
|
|
538
|
-
@stdlib/math/base/special/ceil/lib/index.js:
|
|
539
|
-
@stdlib/math/base/special/trunc/lib/main.js:
|
|
540
|
-
@stdlib/math/base/special/trunc/lib/index.js:
|
|
541
|
-
@stdlib/ndarray/base/bind2vind/lib/main.js:
|
|
542
|
-
@stdlib/ndarray/base/bind2vind/lib/index.js:
|
|
543
|
-
@stdlib/ndarray/base/dtype-char/lib/main.js:
|
|
544
|
-
@stdlib/ndarray/base/dtype-char/lib/index.js:
|
|
545
|
-
@stdlib/ndarray/base/dtype-desc/lib/main.js:
|
|
546
|
-
@stdlib/array/ctors/lib/ctors.js:
|
|
547
|
-
@stdlib/array/ctors/lib/main.js:
|
|
548
|
-
@stdlib/array/ctors/lib/index.js:
|
|
549
|
-
@stdlib/assert/is-null/lib/main.js:
|
|
550
|
-
@stdlib/assert/is-null/lib/index.js:
|
|
551
|
-
@stdlib/assert/is-undefined/lib/main.js:
|
|
552
|
-
@stdlib/assert/is-undefined/lib/index.js:
|
|
553
|
-
@stdlib/ndarray/base/ind2sub/lib/assign.js:
|
|
554
|
-
@stdlib/ndarray/base/ind2sub/lib/main.js:
|
|
555
|
-
@stdlib/ndarray/base/ind2sub/lib/index.js:
|
|
556
|
-
@stdlib/ndarray/base/max-view-buffer-index/lib/main.js:
|
|
557
|
-
@stdlib/ndarray/base/max-view-buffer-index/lib/index.js:
|
|
558
|
-
@stdlib/ndarray/base/min-view-buffer-index/lib/main.js:
|
|
559
|
-
@stdlib/ndarray/base/min-view-buffer-index/lib/index.js:
|
|
560
|
-
@stdlib/ndarray/base/sub2ind/lib/main.js:
|
|
561
|
-
@stdlib/ndarray/base/sub2ind/lib/index.js:
|
|
562
|
-
@stdlib/ndarray/base/to-array/lib/recurse.js:
|
|
563
|
-
@stdlib/ndarray/base/to-array/lib/main.js:
|
|
564
|
-
@stdlib/ndarray/base/to-array/lib/index.js:
|
|
565
|
-
@stdlib/ndarray/base/lib/index.js:
|
|
566
|
-
@stdlib/assert/is-positive-integer/lib/primitive.js:
|
|
567
|
-
@stdlib/assert/is-positive-integer/lib/object.js:
|
|
568
|
-
@stdlib/assert/is-positive-integer/lib/main.js:
|
|
569
|
-
@stdlib/assert/is-positive-integer/lib/index.js:
|
|
570
|
-
@stdlib/assert/is-function-array/lib/index.js:
|
|
571
|
-
@stdlib/utils/eval/lib/index.js:
|
|
572
|
-
@stdlib/assert/has-proxy-support/lib/main.js:
|
|
573
|
-
@stdlib/assert/has-proxy-support/lib/index.js:
|
|
574
|
-
@stdlib/proxy/ctor/lib/main.js:
|
|
575
|
-
@stdlib/proxy/ctor/lib/polyfill.js:
|
|
576
|
-
@stdlib/proxy/ctor/lib/index.js:
|
|
577
|
-
@stdlib/utils/property-names/lib/has_builtin.js:
|
|
578
|
-
@stdlib/utils/property-names/lib/builtin.js:
|
|
579
|
-
@stdlib/utils/property-names/lib/polyfill.js:
|
|
580
|
-
@stdlib/utils/property-names/lib/index.js:
|
|
581
|
-
@stdlib/utils/properties-in/lib/main.js:
|
|
582
|
-
@stdlib/utils/properties-in/lib/index.js:
|
|
583
|
-
@stdlib/assert/is-error/lib/main.js:
|
|
584
|
-
@stdlib/assert/is-error/lib/index.js:
|
|
585
|
-
@stdlib/assert/is-range-error/lib/main.js:
|
|
586
|
-
@stdlib/assert/is-range-error/lib/index.js:
|
|
587
|
-
@stdlib/assert/is-type-error/lib/main.js:
|
|
588
|
-
@stdlib/assert/is-type-error/lib/index.js:
|
|
589
|
-
@stdlib/assert/is-syntax-error/lib/main.js:
|
|
590
|
-
@stdlib/assert/is-syntax-error/lib/index.js:
|
|
591
|
-
@stdlib/math/base/assert/is-negative-zero/lib/main.js:
|
|
592
|
-
@stdlib/math/base/assert/is-negative-zero/lib/index.js:
|
|
593
|
-
@stdlib/constants/float32/smallest-subnormal/lib/index.js:
|
|
594
|
-
@stdlib/constants/float32/max-safe-integer/lib/index.js:
|
|
595
|
-
@stdlib/constants/float32/min-safe-integer/lib/index.js:
|
|
596
|
-
@stdlib/ndarray/min-dtype/lib/index.js:
|
|
597
|
-
@stdlib/array/dtypes/lib/main.js:
|
|
598
|
-
@stdlib/assert/is-symbol/lib/primitive.js:
|
|
599
|
-
@stdlib/assert/is-symbol/lib/tostring.js:
|
|
600
|
-
@stdlib/assert/is-symbol/lib/try2tostring.js:
|
|
601
|
-
@stdlib/assert/is-symbol/lib/object.js:
|
|
602
|
-
@stdlib/assert/is-symbol/lib/generic.js:
|
|
603
|
-
@stdlib/assert/is-symbol/lib/main.js:
|
|
604
|
-
@stdlib/utils/constant-function/lib/main.js:
|
|
605
|
-
@stdlib/utils/constant-function/lib/index.js:
|
|
606
|
-
@stdlib/assert/is-symbol/lib/polyfill.js:
|
|
607
|
-
@stdlib/assert/is-symbol/lib/index.js:
|
|
608
|
-
@stdlib/ndarray/ind2sub/lib/validate.js:
|
|
609
|
-
@stdlib/ndarray/ind2sub/lib/main.js:
|
|
610
|
-
@stdlib/ndarray/ind2sub/lib/assign.js:
|
|
611
|
-
@stdlib/ndarray/ind2sub/lib/index.js:
|
|
612
|
-
@stdlib/assert/is-iterator-like/lib/main.js:
|
|
613
|
-
@stdlib/assert/is-iterator-like/lib/index.js:
|
|
614
|
-
@stdlib/ndarray/next-dtype/lib/main.js:
|
|
615
|
-
@stdlib/ndarray/next-dtype/lib/index.js:
|
|
616
|
-
@stdlib/ndarray/promotion-rules/lib/main.js:
|
|
617
|
-
@stdlib/ndarray/promotion-rules/lib/index.js:
|
|
618
|
-
@stdlib/ndarray/sub2ind/lib/validate.js:
|
|
619
|
-
@stdlib/ndarray/sub2ind/lib/main.js:
|
|
620
|
-
@stdlib/ndarray/sub2ind/lib/index.js:
|
|
621
|
-
@stdlib/ndarray/lib/index.js:
|
|
622
|
-
@stdlib/math/base/special/fast/max/lib/main.js:
|
|
623
|
-
@stdlib/math/base/special/fast/max/lib/index.js:
|
|
624
|
-
(**
|
|
625
|
-
* @license Apache-2.0
|
|
626
|
-
*
|
|
627
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
628
|
-
*
|
|
629
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
630
|
-
* you may not use this file except in compliance with the License.
|
|
631
|
-
* You may obtain a copy of the License at
|
|
632
|
-
*
|
|
633
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
634
|
-
*
|
|
635
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
636
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
637
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
638
|
-
* See the License for the specific language governing permissions and
|
|
639
|
-
* limitations under the License.
|
|
640
|
-
*)
|
|
641
|
-
|
|
642
|
-
@stdlib/string/base/format-interpolate/lib/is_number.js:
|
|
643
|
-
@stdlib/string/base/format-interpolate/lib/zero_pad.js:
|
|
644
|
-
@stdlib/string/base/format-interpolate/lib/format_integer.js:
|
|
645
|
-
@stdlib/string/base/format-interpolate/lib/is_string.js:
|
|
646
|
-
@stdlib/string/base/format-interpolate/lib/format_double.js:
|
|
647
|
-
@stdlib/string/base/format-interpolate/lib/space_pad.js:
|
|
648
|
-
@stdlib/string/base/format-interpolate/lib/main.js:
|
|
649
|
-
@stdlib/string/base/format-interpolate/lib/index.js:
|
|
650
|
-
@stdlib/string/base/format-tokenize/lib/main.js:
|
|
651
|
-
@stdlib/string/base/format-tokenize/lib/index.js:
|
|
652
|
-
@stdlib/string/format/lib/is_string.js:
|
|
653
|
-
@stdlib/string/format/lib/main.js:
|
|
654
|
-
@stdlib/string/format/lib/index.js:
|
|
655
|
-
@stdlib/boolean/ctor/lib/main.js:
|
|
656
|
-
@stdlib/boolean/ctor/lib/index.js:
|
|
657
|
-
@stdlib/utils/global/lib/global_this.js:
|
|
658
|
-
@stdlib/utils/global/lib/browser.js:
|
|
659
|
-
@stdlib/object/ctor/lib/main.js:
|
|
660
|
-
@stdlib/object/ctor/lib/index.js:
|
|
661
|
-
@stdlib/string/base/replace/lib/main.js:
|
|
662
|
-
@stdlib/string/base/replace/lib/index.js:
|
|
663
|
-
@stdlib/array/base/assert/is-accessor-array/lib/main.js:
|
|
664
|
-
@stdlib/array/base/assert/is-accessor-array/lib/index.js:
|
|
665
|
-
@stdlib/array/base/accessor-getter/lib/main.js:
|
|
666
|
-
@stdlib/array/base/accessor-getter/lib/index.js:
|
|
667
|
-
@stdlib/array/base/getter/lib/main.js:
|
|
668
|
-
@stdlib/array/base/getter/lib/index.js:
|
|
669
|
-
@stdlib/array/base/setter/lib/main.js:
|
|
670
|
-
@stdlib/array/base/setter/lib/index.js:
|
|
671
|
-
@stdlib/array/base/accessor-setter/lib/main.js:
|
|
672
|
-
@stdlib/array/base/accessor-setter/lib/index.js:
|
|
673
|
-
@stdlib/array/base/arraylike2object/lib/main.js:
|
|
674
|
-
@stdlib/array/base/arraylike2object/lib/index.js:
|
|
675
|
-
@stdlib/blas/ext/base/grev/lib/accessors.js:
|
|
676
|
-
@stdlib/complex/base/cast-return/lib/main.js:
|
|
677
|
-
@stdlib/complex/base/cast-return/lib/index.js:
|
|
678
|
-
@stdlib/complex/ctors/lib/ctors.js:
|
|
679
|
-
@stdlib/complex/ctors/lib/main.js:
|
|
680
|
-
@stdlib/complex/ctors/lib/index.js:
|
|
681
|
-
@stdlib/array/base/copy-indexed/lib/main.js:
|
|
682
|
-
@stdlib/array/base/copy-indexed/lib/index.js:
|
|
683
|
-
@stdlib/ndarray/base/assert/is-read-only/lib/main.js:
|
|
684
|
-
@stdlib/ndarray/base/assert/is-read-only/lib/index.js:
|
|
685
|
-
@stdlib/ndarray/base/ndarraylike2object/lib/main.js:
|
|
686
|
-
@stdlib/ndarray/base/ndarraylike2object/lib/index.js:
|
|
687
|
-
@stdlib/array/base/zero-to/lib/main.js:
|
|
688
|
-
@stdlib/array/base/zero-to/lib/index.js:
|
|
689
|
-
@stdlib/ndarray/base/unary-loop-interchange-order/lib/sort2ins.js:
|
|
690
|
-
@stdlib/ndarray/base/unary-loop-interchange-order/lib/main.js:
|
|
691
|
-
@stdlib/ndarray/base/unary-loop-interchange-order/lib/index.js:
|
|
692
|
-
@stdlib/ndarray/base/unary-tiling-block-size/lib/defaults.js:
|
|
693
|
-
@stdlib/ndarray/base/unary-tiling-block-size/lib/main.js:
|
|
694
|
-
@stdlib/ndarray/base/unary-tiling-block-size/lib/index.js:
|
|
695
|
-
@stdlib/array/zeros/lib/main.js:
|
|
696
|
-
@stdlib/array/zeros/lib/index.js:
|
|
697
|
-
@stdlib/ndarray/base/expand-dimensions/lib/main.js:
|
|
698
|
-
@stdlib/ndarray/base/expand-dimensions/lib/index.js:
|
|
699
|
-
@stdlib/ndarray/base/from-scalar/lib/main.js:
|
|
700
|
-
@stdlib/ndarray/base/from-scalar/lib/index.js:
|
|
701
|
-
@stdlib/ndarray/base/maybe-broadcast-array/lib/main.js:
|
|
702
|
-
@stdlib/ndarray/base/maybe-broadcast-array/lib/index.js:
|
|
703
|
-
@stdlib/ndarray/base/prepend-singleton-dimensions/lib/main.js:
|
|
704
|
-
@stdlib/ndarray/base/prepend-singleton-dimensions/lib/index.js:
|
|
705
|
-
@stdlib/ndarray/base/remove-singleton-dimensions/lib/main.js:
|
|
706
|
-
@stdlib/ndarray/base/remove-singleton-dimensions/lib/index.js:
|
|
707
|
-
@stdlib/ndarray/base/transpose/lib/main.js:
|
|
708
|
-
@stdlib/ndarray/base/transpose/lib/index.js:
|
|
709
|
-
@stdlib/ndarray/base/unary-by/lib/2d_blocked_accessors.js:
|
|
710
|
-
@stdlib/ndarray/base/unary-by/lib/3d_blocked_accessors.js:
|
|
711
|
-
@stdlib/ndarray/base/unary-by/lib/4d_blocked_accessors.js:
|
|
712
|
-
@stdlib/ndarray/base/unary-by/lib/5d_blocked_accessors.js:
|
|
713
|
-
@stdlib/ndarray/base/unary-by/lib/6d_blocked_accessors.js:
|
|
714
|
-
@stdlib/ndarray/base/unary-by/lib/7d_blocked_accessors.js:
|
|
715
|
-
@stdlib/ndarray/base/unary-by/lib/8d_blocked_accessors.js:
|
|
716
|
-
@stdlib/ndarray/base/unary-by/lib/9d_blocked_accessors.js:
|
|
717
|
-
@stdlib/ndarray/base/unary-by/lib/10d_blocked_accessors.js:
|
|
718
|
-
@stdlib/ndarray/base/unary-by/lib/2d_blocked.js:
|
|
719
|
-
@stdlib/ndarray/base/unary-by/lib/3d_blocked.js:
|
|
720
|
-
@stdlib/ndarray/base/unary-by/lib/4d_blocked.js:
|
|
721
|
-
@stdlib/ndarray/base/unary-by/lib/5d_blocked.js:
|
|
722
|
-
@stdlib/ndarray/base/unary-by/lib/6d_blocked.js:
|
|
723
|
-
@stdlib/ndarray/base/unary-by/lib/7d_blocked.js:
|
|
724
|
-
@stdlib/ndarray/base/unary-by/lib/8d_blocked.js:
|
|
725
|
-
@stdlib/ndarray/base/unary-by/lib/9d_blocked.js:
|
|
726
|
-
@stdlib/ndarray/base/unary-by/lib/10d_blocked.js:
|
|
727
|
-
@stdlib/ndarray/base/unary-by/lib/0d_accessors.js:
|
|
728
|
-
@stdlib/ndarray/base/unary-by/lib/1d_accessors.js:
|
|
729
|
-
@stdlib/ndarray/base/unary-by/lib/2d_accessors.js:
|
|
730
|
-
@stdlib/ndarray/base/unary-by/lib/3d_accessors.js:
|
|
731
|
-
@stdlib/ndarray/base/unary-by/lib/4d_accessors.js:
|
|
732
|
-
@stdlib/ndarray/base/unary-by/lib/5d_accessors.js:
|
|
733
|
-
@stdlib/ndarray/base/unary-by/lib/6d_accessors.js:
|
|
734
|
-
@stdlib/ndarray/base/unary-by/lib/7d_accessors.js:
|
|
735
|
-
@stdlib/ndarray/base/unary-by/lib/8d_accessors.js:
|
|
736
|
-
@stdlib/ndarray/base/unary-by/lib/9d_accessors.js:
|
|
737
|
-
@stdlib/ndarray/base/unary-by/lib/10d_accessors.js:
|
|
738
|
-
@stdlib/ndarray/base/unary-by/lib/nd_accessors.js:
|
|
739
|
-
@stdlib/ndarray/base/unary-by/lib/0d.js:
|
|
740
|
-
@stdlib/ndarray/base/unary-by/lib/1d.js:
|
|
741
|
-
@stdlib/ndarray/base/unary-by/lib/2d.js:
|
|
742
|
-
@stdlib/ndarray/base/unary-by/lib/3d.js:
|
|
743
|
-
@stdlib/ndarray/base/unary-by/lib/4d.js:
|
|
744
|
-
@stdlib/ndarray/base/unary-by/lib/5d.js:
|
|
745
|
-
@stdlib/ndarray/base/unary-by/lib/6d.js:
|
|
746
|
-
@stdlib/ndarray/base/unary-by/lib/7d.js:
|
|
747
|
-
@stdlib/ndarray/base/unary-by/lib/8d.js:
|
|
748
|
-
@stdlib/ndarray/base/unary-by/lib/9d.js:
|
|
749
|
-
@stdlib/ndarray/base/unary-by/lib/10d.js:
|
|
750
|
-
@stdlib/ndarray/base/unary-by/lib/nd.js:
|
|
751
|
-
@stdlib/ndarray/base/unary-by/lib/main.js:
|
|
752
|
-
@stdlib/ndarray/base/unary-by/lib/index.js:
|
|
753
|
-
@stdlib/ndarray/base/zeros/lib/main.js:
|
|
754
|
-
@stdlib/ndarray/base/zeros/lib/index.js:
|
|
755
|
-
@stdlib/ndarray/base/zeros-like/lib/main.js:
|
|
756
|
-
@stdlib/ndarray/base/zeros-like/lib/index.js:
|
|
757
|
-
@stdlib/string/base/trim/lib/has_builtin.js:
|
|
758
|
-
@stdlib/string/base/trim/lib/builtin.js:
|
|
759
|
-
@stdlib/string/base/trim/lib/check.js:
|
|
760
|
-
@stdlib/string/base/trim/lib/polyfill.js:
|
|
761
|
-
@stdlib/string/base/trim/lib/main.js:
|
|
762
|
-
@stdlib/string/base/trim/lib/index.js:
|
|
763
|
-
@stdlib/complex/dtype/lib/ctor2dtype.js:
|
|
764
|
-
@stdlib/complex/dtypes/lib/main.js:
|
|
765
|
-
@stdlib/complex/dtypes/lib/index.js:
|
|
766
|
-
@stdlib/complex/dtype/lib/dtypes.js:
|
|
767
|
-
@stdlib/complex/dtype/lib/ctors.js:
|
|
768
|
-
@stdlib/complex/dtype/lib/main.js:
|
|
769
|
-
@stdlib/complex/dtype/lib/index.js:
|
|
770
|
-
@stdlib/ndarray/from-scalar/lib/main.js:
|
|
771
|
-
@stdlib/ndarray/from-scalar/lib/index.js:
|
|
772
|
-
@stdlib/array/base/copy/lib/main.js:
|
|
773
|
-
@stdlib/array/base/copy/lib/index.js:
|
|
774
|
-
@stdlib/array/base/take/lib/main.js:
|
|
775
|
-
@stdlib/array/base/take/lib/index.js:
|
|
776
|
-
@stdlib/ndarray/zeros/lib/main.js:
|
|
777
|
-
@stdlib/ndarray/zeros/lib/index.js:
|
|
778
|
-
@stdlib/ndarray/zeros-like/lib/main.js:
|
|
779
|
-
@stdlib/ndarray/zeros-like/lib/index.js:
|
|
780
|
-
(**
|
|
781
|
-
* @license Apache-2.0
|
|
782
|
-
*
|
|
783
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
784
|
-
*
|
|
785
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
786
|
-
* you may not use this file except in compliance with the License.
|
|
787
|
-
* You may obtain a copy of the License at
|
|
788
|
-
*
|
|
789
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
790
|
-
*
|
|
791
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
792
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
793
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
794
|
-
* See the License for the specific language governing permissions and
|
|
795
|
-
* limitations under the License.
|
|
796
|
-
*)
|
|
797
|
-
|
|
798
|
-
@stdlib/blas/base/layouts/lib/main.js:
|
|
799
|
-
@stdlib/blas/base/layouts/lib/enum.js:
|
|
800
|
-
@stdlib/blas/base/layouts/lib/index.js:
|
|
801
|
-
@stdlib/array/dtype/lib/ctor2dtype.js:
|
|
802
|
-
@stdlib/array/base/assert/is-complex64array/lib/main.js:
|
|
803
|
-
@stdlib/array/base/assert/is-complex64array/lib/index.js:
|
|
804
|
-
@stdlib/array/base/assert/is-complex128array/lib/main.js:
|
|
805
|
-
@stdlib/array/base/assert/is-complex128array/lib/index.js:
|
|
806
|
-
@stdlib/array/complex128/lib/main.js:
|
|
807
|
-
@stdlib/array/bool/lib/from_iterator.js:
|
|
808
|
-
@stdlib/array/bool/lib/from_iterator_map.js:
|
|
809
|
-
@stdlib/array/bool/lib/from_array.js:
|
|
810
|
-
@stdlib/array/bool/lib/main.js:
|
|
811
|
-
@stdlib/array/bool/lib/index.js:
|
|
812
|
-
@stdlib/array/dtype/lib/ctors.js:
|
|
813
|
-
@stdlib/array/dtype/lib/dtypes.js:
|
|
814
|
-
@stdlib/ndarray/defaults/lib/main.js:
|
|
815
|
-
@stdlib/ndarray/defaults/lib/get.js:
|
|
816
|
-
@stdlib/ndarray/base/buffer-ctors/lib/ctors.js:
|
|
817
|
-
@stdlib/ndarray/base/buffer-dtype/lib/ctor2dtype.js:
|
|
818
|
-
@stdlib/ndarray/base/buffer-dtype/lib/ctors.js:
|
|
819
|
-
@stdlib/ndarray/base/buffer-dtype/lib/dtypes.js:
|
|
820
|
-
@stdlib/ndarray/at/lib/main.js:
|
|
821
|
-
@stdlib/ndarray/at/lib/index.js:
|
|
822
|
-
@stdlib/array/base/assert/has-equal-values-indexed/lib/main.js:
|
|
823
|
-
@stdlib/array/base/assert/has-equal-values-indexed/lib/index.js:
|
|
824
|
-
@stdlib/ndarray/base/assert/has-equal-shape/lib/main.js:
|
|
825
|
-
@stdlib/ndarray/base/assert/has-equal-shape/lib/index.js:
|
|
826
|
-
@stdlib/ndarray/base/assert/is-boolean-data-type/lib/main.js:
|
|
827
|
-
@stdlib/ndarray/base/assert/is-boolean-data-type/lib/index.js:
|
|
828
|
-
@stdlib/array/base/zero-to/lib/assign.js:
|
|
829
|
-
@stdlib/array/defaults/lib/main.js:
|
|
830
|
-
@stdlib/array/defaults/lib/get.js:
|
|
831
|
-
@stdlib/slice/base/int2slice/lib/error_out_of_bounds.js:
|
|
832
|
-
@stdlib/slice/base/int2slice/lib/main.js:
|
|
833
|
-
@stdlib/slice/base/int2slice/lib/index.js:
|
|
834
|
-
@stdlib/array/base/nulls/lib/main.js:
|
|
835
|
-
@stdlib/array/base/nulls/lib/index.js:
|
|
836
|
-
@stdlib/array/base/reverse/lib/main.js:
|
|
837
|
-
@stdlib/array/base/reverse/lib/index.js:
|
|
838
|
-
@stdlib/ndarray/base/for-each/lib/2d_blocked_accessors.js:
|
|
839
|
-
@stdlib/ndarray/base/for-each/lib/3d_blocked_accessors.js:
|
|
840
|
-
@stdlib/ndarray/base/for-each/lib/4d_blocked_accessors.js:
|
|
841
|
-
@stdlib/ndarray/base/for-each/lib/5d_blocked_accessors.js:
|
|
842
|
-
@stdlib/ndarray/base/for-each/lib/6d_blocked_accessors.js:
|
|
843
|
-
@stdlib/ndarray/base/for-each/lib/7d_blocked_accessors.js:
|
|
844
|
-
@stdlib/ndarray/base/for-each/lib/8d_blocked_accessors.js:
|
|
845
|
-
@stdlib/ndarray/base/for-each/lib/9d_blocked_accessors.js:
|
|
846
|
-
@stdlib/ndarray/base/for-each/lib/10d_blocked_accessors.js:
|
|
847
|
-
@stdlib/ndarray/base/for-each/lib/2d_blocked.js:
|
|
848
|
-
@stdlib/ndarray/base/for-each/lib/3d_blocked.js:
|
|
849
|
-
@stdlib/ndarray/base/for-each/lib/4d_blocked.js:
|
|
850
|
-
@stdlib/ndarray/base/for-each/lib/5d_blocked.js:
|
|
851
|
-
@stdlib/ndarray/base/for-each/lib/6d_blocked.js:
|
|
852
|
-
@stdlib/ndarray/base/for-each/lib/7d_blocked.js:
|
|
853
|
-
@stdlib/ndarray/base/for-each/lib/8d_blocked.js:
|
|
854
|
-
@stdlib/ndarray/base/for-each/lib/9d_blocked.js:
|
|
855
|
-
@stdlib/ndarray/base/for-each/lib/10d_blocked.js:
|
|
856
|
-
@stdlib/ndarray/base/for-each/lib/0d_accessors.js:
|
|
857
|
-
@stdlib/ndarray/base/for-each/lib/1d_accessors.js:
|
|
858
|
-
@stdlib/ndarray/base/for-each/lib/2d_accessors.js:
|
|
859
|
-
@stdlib/ndarray/base/for-each/lib/3d_accessors.js:
|
|
860
|
-
@stdlib/ndarray/base/for-each/lib/4d_accessors.js:
|
|
861
|
-
@stdlib/ndarray/base/for-each/lib/5d_accessors.js:
|
|
862
|
-
@stdlib/ndarray/base/for-each/lib/6d_accessors.js:
|
|
863
|
-
@stdlib/ndarray/base/for-each/lib/7d_accessors.js:
|
|
864
|
-
@stdlib/ndarray/base/for-each/lib/8d_accessors.js:
|
|
865
|
-
@stdlib/ndarray/base/for-each/lib/9d_accessors.js:
|
|
866
|
-
@stdlib/ndarray/base/for-each/lib/10d_accessors.js:
|
|
867
|
-
@stdlib/ndarray/base/for-each/lib/nd_accessors.js:
|
|
868
|
-
@stdlib/ndarray/base/for-each/lib/0d.js:
|
|
869
|
-
@stdlib/ndarray/base/for-each/lib/1d.js:
|
|
870
|
-
@stdlib/ndarray/base/for-each/lib/2d.js:
|
|
871
|
-
@stdlib/ndarray/base/for-each/lib/3d.js:
|
|
872
|
-
@stdlib/ndarray/base/for-each/lib/4d.js:
|
|
873
|
-
@stdlib/ndarray/base/for-each/lib/5d.js:
|
|
874
|
-
@stdlib/ndarray/base/for-each/lib/6d.js:
|
|
875
|
-
@stdlib/ndarray/base/for-each/lib/7d.js:
|
|
876
|
-
@stdlib/ndarray/base/for-each/lib/8d.js:
|
|
877
|
-
@stdlib/ndarray/base/for-each/lib/9d.js:
|
|
878
|
-
@stdlib/ndarray/base/for-each/lib/10d.js:
|
|
879
|
-
@stdlib/ndarray/base/for-each/lib/nd.js:
|
|
880
|
-
@stdlib/ndarray/base/for-each/lib/main.js:
|
|
881
|
-
@stdlib/ndarray/base/for-each/lib/index.js:
|
|
882
|
-
@stdlib/ndarray/base/ndarraylike2ndarray/lib/main.js:
|
|
883
|
-
@stdlib/ndarray/base/ndarraylike2ndarray/lib/index.js:
|
|
884
|
-
@stdlib/ndarray/min-dtype/lib/main.js:
|
|
885
|
-
@stdlib/array/dtypes/lib/index.js:
|
|
886
|
-
@stdlib/array/base/assert/is-complex-floating-point-data-type/lib/main.js:
|
|
887
|
-
@stdlib/array/base/assert/is-complex-floating-point-data-type/lib/index.js:
|
|
888
|
-
@stdlib/ndarray/iter/interleave-subarrays/lib/main.js:
|
|
889
|
-
@stdlib/ndarray/iter/interleave-subarrays/lib/index.js:
|
|
890
|
-
@stdlib/ndarray/iter/select-dimension/lib/main.js:
|
|
891
|
-
@stdlib/ndarray/iter/select-dimension/lib/index.js:
|
|
892
|
-
@stdlib/array/base/assert/is-boolean-data-type/lib/main.js:
|
|
893
|
-
@stdlib/array/base/assert/is-boolean-data-type/lib/index.js:
|
|
894
|
-
@stdlib/strided/base/reinterpret-complex/lib/main.js:
|
|
895
|
-
@stdlib/strided/base/reinterpret-complex/lib/index.js:
|
|
896
|
-
@stdlib/strided/base/reinterpret-boolean/lib/main.js:
|
|
897
|
-
@stdlib/strided/base/reinterpret-boolean/lib/index.js:
|
|
898
|
-
@stdlib/array/base/take/lib/assign.js:
|
|
899
|
-
@stdlib/array/base/put/lib/index.js:
|
|
900
|
-
@stdlib/ndarray/iter/stacks/lib/main.js:
|
|
901
|
-
@stdlib/ndarray/iter/stacks/lib/index.js:
|
|
902
|
-
@stdlib/ndarray/iter/subarrays/lib/main.js:
|
|
903
|
-
@stdlib/ndarray/iter/subarrays/lib/index.js:
|
|
904
|
-
@stdlib/ndarray/ndarraylike2ndarray/lib/main.js:
|
|
905
|
-
@stdlib/ndarray/ndarraylike2ndarray/lib/index.js:
|
|
906
|
-
@stdlib/blas/base/assert/is-layout/lib/main.js:
|
|
907
|
-
@stdlib/blas/base/assert/is-layout/lib/index.js:
|
|
908
|
-
@stdlib/blas/base/transpose-operations/lib/main.js:
|
|
909
|
-
@stdlib/blas/base/transpose-operations/lib/enum.js:
|
|
910
|
-
@stdlib/blas/base/transpose-operations/lib/index.js:
|
|
911
|
-
@stdlib/blas/base/assert/is-transpose-operation/lib/main.js:
|
|
912
|
-
@stdlib/blas/base/assert/is-transpose-operation/lib/index.js:
|
|
913
|
-
@stdlib/strided/base/stride2offset/lib/main.js:
|
|
914
|
-
@stdlib/strided/base/stride2offset/lib/index.js:
|
|
915
|
-
@stdlib/blas/base/dgemm/lib/base.js:
|
|
916
|
-
@stdlib/blas/base/dgemm/lib/dgemm.js:
|
|
917
|
-
@stdlib/blas/base/dgemm/lib/ndarray.js:
|
|
918
|
-
@stdlib/blas/base/dgemm/lib/main.js:
|
|
919
|
-
(**
|
|
920
|
-
* @license Apache-2.0
|
|
921
|
-
*
|
|
922
|
-
* Copyright (c) 2024 The Stdlib Authors.
|
|
923
|
-
*
|
|
924
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
925
|
-
* you may not use this file except in compliance with the License.
|
|
926
|
-
* You may obtain a copy of the License at
|
|
927
|
-
*
|
|
928
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
929
|
-
*
|
|
930
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
931
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
932
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
933
|
-
* See the License for the specific language governing permissions and
|
|
934
|
-
* limitations under the License.
|
|
935
|
-
*)
|
|
936
|
-
|
|
937
|
-
@stdlib/array/base/assert/contains/lib/main.js:
|
|
938
|
-
@stdlib/array/base/assert/contains/lib/factory.js:
|
|
939
|
-
@stdlib/array/base/assert/contains/lib/index.js:
|
|
940
|
-
@stdlib/ndarray/defaults/lib/index.js:
|
|
941
|
-
@stdlib/ndarray/base/normalize-index/lib/main.js:
|
|
942
|
-
@stdlib/ndarray/base/normalize-index/lib/index.js:
|
|
943
|
-
@stdlib/ndarray/base/ind/lib/factory.js:
|
|
944
|
-
@stdlib/ndarray/mostly-safe-casts/lib/main.js:
|
|
945
|
-
@stdlib/ndarray/mostly-safe-casts/lib/index.js:
|
|
946
|
-
@stdlib/ndarray/base/assert/is-mostly-safe-data-type-cast/lib/main.js:
|
|
947
|
-
@stdlib/ndarray/base/assert/is-mostly-safe-data-type-cast/lib/index.js:
|
|
948
|
-
@stdlib/ndarray/dtype/lib/main.js:
|
|
949
|
-
@stdlib/ndarray/dtype/lib/index.js:
|
|
950
|
-
@stdlib/ndarray/shape/lib/main.js:
|
|
951
|
-
@stdlib/ndarray/shape/lib/index.js:
|
|
952
|
-
@stdlib/ndarray/strides/lib/main.js:
|
|
953
|
-
@stdlib/ndarray/strides/lib/index.js:
|
|
954
|
-
@stdlib/ndarray/offset/lib/main.js:
|
|
955
|
-
@stdlib/ndarray/offset/lib/index.js:
|
|
956
|
-
@stdlib/ndarray/ndims/lib/main.js:
|
|
957
|
-
@stdlib/ndarray/ndims/lib/index.js:
|
|
958
|
-
@stdlib/ndarray/order/lib/main.js:
|
|
959
|
-
@stdlib/ndarray/order/lib/index.js:
|
|
960
|
-
@stdlib/ndarray/data-buffer/lib/main.js:
|
|
961
|
-
@stdlib/ndarray/data-buffer/lib/index.js:
|
|
962
|
-
@stdlib/array/base/flatten/lib/assign.js:
|
|
963
|
-
@stdlib/array/base/flatten/lib/main.js:
|
|
964
|
-
@stdlib/array/base/flatten/lib/index.js:
|
|
965
|
-
@stdlib/ndarray/array/lib/defaults.js:
|
|
966
|
-
@stdlib/ndarray/base/shape/lib/main.js:
|
|
967
|
-
@stdlib/ndarray/base/shape/lib/index.js:
|
|
968
|
-
@stdlib/ndarray/base/assert/is-complex-floating-point-data-type/lib/main.js:
|
|
969
|
-
@stdlib/ndarray/base/assert/is-complex-floating-point-data-type/lib/index.js:
|
|
970
|
-
@stdlib/ndarray/base/assert/is-floating-point-data-type/lib/main.js:
|
|
971
|
-
@stdlib/ndarray/base/assert/is-floating-point-data-type/lib/index.js:
|
|
972
|
-
@stdlib/ndarray/base/assert/is-integer-data-type/lib/main.js:
|
|
973
|
-
@stdlib/ndarray/base/assert/is-integer-data-type/lib/index.js:
|
|
974
|
-
@stdlib/ndarray/base/assert/is-numeric-data-type/lib/main.js:
|
|
975
|
-
@stdlib/ndarray/base/assert/is-numeric-data-type/lib/index.js:
|
|
976
|
-
@stdlib/object/assign/lib/has_object_assign.js:
|
|
977
|
-
@stdlib/object/assign/lib/builtin.js:
|
|
978
|
-
@stdlib/object/assign/lib/polyfill.js:
|
|
979
|
-
@stdlib/object/assign/lib/index.js:
|
|
980
|
-
@stdlib/ndarray/base/flags/lib/main.js:
|
|
981
|
-
@stdlib/ndarray/base/flags/lib/index.js:
|
|
982
|
-
@stdlib/ndarray/base/flag/lib/main.js:
|
|
983
|
-
@stdlib/ndarray/base/flag/lib/index.js:
|
|
984
|
-
@stdlib/ndarray/base/assert/is-real-data-type/lib/main.js:
|
|
985
|
-
@stdlib/ndarray/base/assert/is-real-data-type/lib/index.js:
|
|
986
|
-
@stdlib/ndarray/base/assert/is-real-floating-point-data-type/lib/main.js:
|
|
987
|
-
@stdlib/ndarray/base/assert/is-real-floating-point-data-type/lib/index.js:
|
|
988
|
-
@stdlib/ndarray/base/assert/is-signed-integer-data-type/lib/main.js:
|
|
989
|
-
@stdlib/ndarray/base/assert/is-signed-integer-data-type/lib/index.js:
|
|
990
|
-
@stdlib/ndarray/base/assert/is-unsigned-integer-data-type/lib/main.js:
|
|
991
|
-
@stdlib/ndarray/base/assert/is-unsigned-integer-data-type/lib/index.js:
|
|
992
|
-
@stdlib/ndarray/base/dtype/lib/main.js:
|
|
993
|
-
@stdlib/ndarray/base/dtype/lib/index.js:
|
|
994
|
-
@stdlib/ndarray/base/strides/lib/main.js:
|
|
995
|
-
@stdlib/ndarray/base/strides/lib/index.js:
|
|
996
|
-
@stdlib/ndarray/base/offset/lib/main.js:
|
|
997
|
-
@stdlib/ndarray/base/offset/lib/index.js:
|
|
998
|
-
@stdlib/ndarray/base/order/lib/main.js:
|
|
999
|
-
@stdlib/ndarray/base/order/lib/index.js:
|
|
1000
|
-
@stdlib/ndarray/base/data-buffer/lib/main.js:
|
|
1001
|
-
@stdlib/ndarray/base/data-buffer/lib/index.js:
|
|
1002
|
-
@stdlib/array/base/take-indexed/lib/main.js:
|
|
1003
|
-
@stdlib/array/base/take-indexed/lib/index.js:
|
|
1004
|
-
@stdlib/ndarray/base/assign/lib/2d_blocked_accessors.js:
|
|
1005
|
-
@stdlib/ndarray/base/assign/lib/3d_blocked_accessors.js:
|
|
1006
|
-
@stdlib/ndarray/base/assign/lib/4d_blocked_accessors.js:
|
|
1007
|
-
@stdlib/ndarray/base/assign/lib/5d_blocked_accessors.js:
|
|
1008
|
-
@stdlib/ndarray/base/assign/lib/6d_blocked_accessors.js:
|
|
1009
|
-
@stdlib/ndarray/base/assign/lib/7d_blocked_accessors.js:
|
|
1010
|
-
@stdlib/ndarray/base/assign/lib/8d_blocked_accessors.js:
|
|
1011
|
-
@stdlib/ndarray/base/assign/lib/9d_blocked_accessors.js:
|
|
1012
|
-
@stdlib/ndarray/base/assign/lib/10d_blocked_accessors.js:
|
|
1013
|
-
@stdlib/ndarray/base/assign/lib/2d_blocked.js:
|
|
1014
|
-
@stdlib/ndarray/base/assign/lib/3d_blocked.js:
|
|
1015
|
-
@stdlib/ndarray/base/assign/lib/4d_blocked.js:
|
|
1016
|
-
@stdlib/ndarray/base/assign/lib/5d_blocked.js:
|
|
1017
|
-
@stdlib/ndarray/base/assign/lib/6d_blocked.js:
|
|
1018
|
-
@stdlib/ndarray/base/assign/lib/7d_blocked.js:
|
|
1019
|
-
@stdlib/ndarray/base/assign/lib/8d_blocked.js:
|
|
1020
|
-
@stdlib/ndarray/base/assign/lib/9d_blocked.js:
|
|
1021
|
-
@stdlib/ndarray/base/assign/lib/10d_blocked.js:
|
|
1022
|
-
@stdlib/ndarray/base/assign/lib/0d_accessors.js:
|
|
1023
|
-
@stdlib/ndarray/base/assign/lib/1d_accessors.js:
|
|
1024
|
-
@stdlib/ndarray/base/assign/lib/2d_accessors.js:
|
|
1025
|
-
@stdlib/ndarray/base/assign/lib/3d_accessors.js:
|
|
1026
|
-
@stdlib/ndarray/base/assign/lib/4d_accessors.js:
|
|
1027
|
-
@stdlib/ndarray/base/assign/lib/5d_accessors.js:
|
|
1028
|
-
@stdlib/ndarray/base/assign/lib/6d_accessors.js:
|
|
1029
|
-
@stdlib/ndarray/base/assign/lib/7d_accessors.js:
|
|
1030
|
-
@stdlib/ndarray/base/assign/lib/8d_accessors.js:
|
|
1031
|
-
@stdlib/ndarray/base/assign/lib/9d_accessors.js:
|
|
1032
|
-
@stdlib/ndarray/base/assign/lib/10d_accessors.js:
|
|
1033
|
-
@stdlib/ndarray/base/assign/lib/nd_accessors.js:
|
|
1034
|
-
@stdlib/ndarray/base/assign/lib/0d.js:
|
|
1035
|
-
@stdlib/ndarray/base/assign/lib/1d.js:
|
|
1036
|
-
@stdlib/ndarray/base/assign/lib/2d.js:
|
|
1037
|
-
@stdlib/ndarray/base/assign/lib/3d.js:
|
|
1038
|
-
@stdlib/ndarray/base/assign/lib/4d.js:
|
|
1039
|
-
@stdlib/ndarray/base/assign/lib/5d.js:
|
|
1040
|
-
@stdlib/ndarray/base/assign/lib/6d.js:
|
|
1041
|
-
@stdlib/ndarray/base/assign/lib/7d.js:
|
|
1042
|
-
@stdlib/ndarray/base/assign/lib/8d.js:
|
|
1043
|
-
@stdlib/ndarray/base/assign/lib/9d.js:
|
|
1044
|
-
@stdlib/ndarray/base/assign/lib/10d.js:
|
|
1045
|
-
@stdlib/ndarray/base/assign/lib/nd.js:
|
|
1046
|
-
@stdlib/ndarray/base/assign/lib/main.js:
|
|
1047
|
-
@stdlib/ndarray/base/assign/lib/index.js:
|
|
1048
|
-
@stdlib/ndarray/base/binary-loop-interchange-order/lib/sort2ins.js:
|
|
1049
|
-
@stdlib/ndarray/base/binary-loop-interchange-order/lib/main.js:
|
|
1050
|
-
@stdlib/ndarray/base/binary-loop-interchange-order/lib/index.js:
|
|
1051
|
-
@stdlib/ndarray/base/binary-tiling-block-size/lib/defaults.js:
|
|
1052
|
-
@stdlib/ndarray/base/binary-tiling-block-size/lib/main.js:
|
|
1053
|
-
@stdlib/ndarray/base/binary-tiling-block-size/lib/index.js:
|
|
1054
|
-
@stdlib/ndarray/base/broadcast-arrays/lib/main.js:
|
|
1055
|
-
@stdlib/ndarray/base/broadcast-arrays/lib/index.js:
|
|
1056
|
-
@stdlib/ndarray/base/broadcast-scalar/lib/main.js:
|
|
1057
|
-
@stdlib/ndarray/base/broadcast-scalar/lib/index.js:
|
|
1058
|
-
@stdlib/array/defaults/lib/index.js:
|
|
1059
|
-
@stdlib/array/empty/lib/polyfill.js:
|
|
1060
|
-
@stdlib/ndarray/base/empty/lib/main.js:
|
|
1061
|
-
@stdlib/ndarray/base/empty/lib/index.js:
|
|
1062
|
-
@stdlib/ndarray/base/empty-like/lib/main.js:
|
|
1063
|
-
@stdlib/ndarray/base/empty-like/lib/index.js:
|
|
1064
|
-
@stdlib/slice/ctor/lib/main.js:
|
|
1065
|
-
@stdlib/slice/ctor/lib/index.js:
|
|
1066
|
-
@stdlib/assert/is-slice/lib/main.js:
|
|
1067
|
-
@stdlib/assert/is-slice/lib/index.js:
|
|
1068
|
-
@stdlib/slice/multi/lib/main.js:
|
|
1069
|
-
@stdlib/slice/multi/lib/index.js:
|
|
1070
|
-
@stdlib/slice/base/args2multislice/lib/main.js:
|
|
1071
|
-
@stdlib/slice/base/args2multislice/lib/index.js:
|
|
1072
|
-
@stdlib/slice/base/normalize-slice/lib/error_out_of_bounds.js:
|
|
1073
|
-
@stdlib/slice/base/normalize-slice/lib/main.js:
|
|
1074
|
-
@stdlib/slice/base/normalize-slice/lib/index.js:
|
|
1075
|
-
@stdlib/slice/base/normalize-multi-slice/lib/main.js:
|
|
1076
|
-
@stdlib/slice/base/normalize-multi-slice/lib/index.js:
|
|
1077
|
-
@stdlib/slice/base/nonreduced-dimensions/lib/main.js:
|
|
1078
|
-
@stdlib/slice/base/nonreduced-dimensions/lib/index.js:
|
|
1079
|
-
@stdlib/slice/base/length/lib/main.js:
|
|
1080
|
-
@stdlib/slice/base/length/lib/index.js:
|
|
1081
|
-
@stdlib/slice/base/shape/lib/main.js:
|
|
1082
|
-
@stdlib/slice/base/shape/lib/index.js:
|
|
1083
|
-
@stdlib/ndarray/base/slice/lib/slice_start.js:
|
|
1084
|
-
@stdlib/ndarray/base/slice/lib/slice_strides.js:
|
|
1085
|
-
@stdlib/ndarray/base/slice/lib/empty.js:
|
|
1086
|
-
@stdlib/ndarray/base/slice/lib/main.js:
|
|
1087
|
-
@stdlib/ndarray/base/slice/lib/index.js:
|
|
1088
|
-
@stdlib/ndarray/base/ndims/lib/main.js:
|
|
1089
|
-
@stdlib/ndarray/base/ndims/lib/index.js:
|
|
1090
|
-
@stdlib/ndarray/base/reverse-dimension/lib/main.js:
|
|
1091
|
-
@stdlib/ndarray/base/reverse-dimension/lib/index.js:
|
|
1092
|
-
@stdlib/ndarray/base/fliplr/lib/main.js:
|
|
1093
|
-
@stdlib/ndarray/base/fliplr/lib/index.js:
|
|
1094
|
-
@stdlib/ndarray/base/flipud/lib/main.js:
|
|
1095
|
-
@stdlib/ndarray/base/flipud/lib/index.js:
|
|
1096
|
-
@stdlib/ndarray/base/nullary-loop-interchange-order/lib/sort2ins.js:
|
|
1097
|
-
@stdlib/ndarray/base/nullary-loop-interchange-order/lib/main.js:
|
|
1098
|
-
@stdlib/ndarray/base/nullary-loop-interchange-order/lib/index.js:
|
|
1099
|
-
@stdlib/ndarray/base/nullary-tiling-block-size/lib/defaults.js:
|
|
1100
|
-
@stdlib/ndarray/base/nullary-tiling-block-size/lib/main.js:
|
|
1101
|
-
@stdlib/ndarray/base/nullary-tiling-block-size/lib/index.js:
|
|
1102
|
-
@stdlib/ndarray/base/maybe-broadcast-arrays/lib/main.js:
|
|
1103
|
-
@stdlib/ndarray/base/maybe-broadcast-arrays/lib/index.js:
|
|
1104
|
-
@stdlib/ndarray/base/next-cartesian-index/lib/assign.js:
|
|
1105
|
-
@stdlib/ndarray/base/next-cartesian-index/lib/main.js:
|
|
1106
|
-
@stdlib/ndarray/base/next-cartesian-index/lib/index.js:
|
|
1107
|
-
@stdlib/ndarray/base/nullary/lib/2d_blocked_accessors.js:
|
|
1108
|
-
@stdlib/ndarray/base/nullary/lib/3d_blocked_accessors.js:
|
|
1109
|
-
@stdlib/ndarray/base/nullary/lib/4d_blocked_accessors.js:
|
|
1110
|
-
@stdlib/ndarray/base/nullary/lib/5d_blocked_accessors.js:
|
|
1111
|
-
@stdlib/ndarray/base/nullary/lib/6d_blocked_accessors.js:
|
|
1112
|
-
@stdlib/ndarray/base/nullary/lib/7d_blocked_accessors.js:
|
|
1113
|
-
@stdlib/ndarray/base/nullary/lib/8d_blocked_accessors.js:
|
|
1114
|
-
@stdlib/ndarray/base/nullary/lib/9d_blocked_accessors.js:
|
|
1115
|
-
@stdlib/ndarray/base/nullary/lib/10d_blocked_accessors.js:
|
|
1116
|
-
@stdlib/ndarray/base/nullary/lib/2d_blocked.js:
|
|
1117
|
-
@stdlib/ndarray/base/nullary/lib/3d_blocked.js:
|
|
1118
|
-
@stdlib/ndarray/base/nullary/lib/4d_blocked.js:
|
|
1119
|
-
@stdlib/ndarray/base/nullary/lib/5d_blocked.js:
|
|
1120
|
-
@stdlib/ndarray/base/nullary/lib/6d_blocked.js:
|
|
1121
|
-
@stdlib/ndarray/base/nullary/lib/7d_blocked.js:
|
|
1122
|
-
@stdlib/ndarray/base/nullary/lib/8d_blocked.js:
|
|
1123
|
-
@stdlib/ndarray/base/nullary/lib/9d_blocked.js:
|
|
1124
|
-
@stdlib/ndarray/base/nullary/lib/10d_blocked.js:
|
|
1125
|
-
@stdlib/ndarray/base/nullary/lib/0d_accessors.js:
|
|
1126
|
-
@stdlib/ndarray/base/nullary/lib/1d_accessors.js:
|
|
1127
|
-
@stdlib/ndarray/base/nullary/lib/2d_accessors.js:
|
|
1128
|
-
@stdlib/ndarray/base/nullary/lib/3d_accessors.js:
|
|
1129
|
-
@stdlib/ndarray/base/nullary/lib/4d_accessors.js:
|
|
1130
|
-
@stdlib/ndarray/base/nullary/lib/5d_accessors.js:
|
|
1131
|
-
@stdlib/ndarray/base/nullary/lib/6d_accessors.js:
|
|
1132
|
-
@stdlib/ndarray/base/nullary/lib/7d_accessors.js:
|
|
1133
|
-
@stdlib/ndarray/base/nullary/lib/8d_accessors.js:
|
|
1134
|
-
@stdlib/ndarray/base/nullary/lib/9d_accessors.js:
|
|
1135
|
-
@stdlib/ndarray/base/nullary/lib/10d_accessors.js:
|
|
1136
|
-
@stdlib/ndarray/base/nullary/lib/nd_accessors.js:
|
|
1137
|
-
@stdlib/ndarray/base/nullary/lib/0d.js:
|
|
1138
|
-
@stdlib/ndarray/base/nullary/lib/1d.js:
|
|
1139
|
-
@stdlib/ndarray/base/nullary/lib/2d.js:
|
|
1140
|
-
@stdlib/ndarray/base/nullary/lib/3d.js:
|
|
1141
|
-
@stdlib/ndarray/base/nullary/lib/4d.js:
|
|
1142
|
-
@stdlib/ndarray/base/nullary/lib/5d.js:
|
|
1143
|
-
@stdlib/ndarray/base/nullary/lib/6d.js:
|
|
1144
|
-
@stdlib/ndarray/base/nullary/lib/7d.js:
|
|
1145
|
-
@stdlib/ndarray/base/nullary/lib/8d.js:
|
|
1146
|
-
@stdlib/ndarray/base/nullary/lib/9d.js:
|
|
1147
|
-
@stdlib/ndarray/base/nullary/lib/10d.js:
|
|
1148
|
-
@stdlib/ndarray/base/nullary/lib/nd.js:
|
|
1149
|
-
@stdlib/ndarray/base/nullary/lib/main.js:
|
|
1150
|
-
@stdlib/ndarray/base/nullary/lib/index.js:
|
|
1151
|
-
@stdlib/ndarray/base/numel-dimension/lib/main.js:
|
|
1152
|
-
@stdlib/ndarray/base/numel-dimension/lib/index.js:
|
|
1153
|
-
@stdlib/ndarray/output-dtype-policies/lib/main.js:
|
|
1154
|
-
@stdlib/ndarray/output-dtype-policies/lib/enum.js:
|
|
1155
|
-
@stdlib/ndarray/output-dtype-policies/lib/assign.js:
|
|
1156
|
-
@stdlib/ndarray/output-dtype-policies/lib/index.js:
|
|
1157
|
-
@stdlib/ndarray/base/output-policy-enum2str/lib/main.js:
|
|
1158
|
-
@stdlib/ndarray/base/output-policy-enum2str/lib/index.js:
|
|
1159
|
-
@stdlib/ndarray/base/output-policy-str2enum/lib/main.js:
|
|
1160
|
-
@stdlib/ndarray/base/output-policy-str2enum/lib/index.js:
|
|
1161
|
-
@stdlib/ndarray/base/output-policy-resolve-enum/lib/main.js:
|
|
1162
|
-
@stdlib/ndarray/base/output-policy-resolve-enum/lib/index.js:
|
|
1163
|
-
@stdlib/ndarray/base/output-policy-resolve-str/lib/main.js:
|
|
1164
|
-
@stdlib/ndarray/base/output-policy-resolve-str/lib/index.js:
|
|
1165
|
-
@stdlib/ndarray/base/reverse/lib/main.js:
|
|
1166
|
-
@stdlib/ndarray/base/reverse/lib/index.js:
|
|
1167
|
-
@stdlib/ndarray/base/slice-assign/lib/main.js:
|
|
1168
|
-
@stdlib/ndarray/base/slice-assign/lib/index.js:
|
|
1169
|
-
@stdlib/ndarray/base/slice-dimension/lib/main.js:
|
|
1170
|
-
@stdlib/ndarray/base/slice-dimension/lib/index.js:
|
|
1171
|
-
@stdlib/ndarray/base/slice-dimension-from/lib/main.js:
|
|
1172
|
-
@stdlib/ndarray/base/slice-dimension-from/lib/index.js:
|
|
1173
|
-
@stdlib/ndarray/base/slice-dimension-to/lib/main.js:
|
|
1174
|
-
@stdlib/ndarray/base/slice-dimension-to/lib/index.js:
|
|
1175
|
-
@stdlib/ndarray/base/slice-from/lib/main.js:
|
|
1176
|
-
@stdlib/ndarray/base/slice-from/lib/index.js:
|
|
1177
|
-
@stdlib/ndarray/base/slice-to/lib/main.js:
|
|
1178
|
-
@stdlib/ndarray/base/slice-to/lib/index.js:
|
|
1179
|
-
@stdlib/ndarray/base/stride/lib/main.js:
|
|
1180
|
-
@stdlib/ndarray/base/stride/lib/index.js:
|
|
1181
|
-
@stdlib/ndarray/base/unary-output-dtype/lib/main.js:
|
|
1182
|
-
@stdlib/ndarray/base/unary-output-dtype/lib/index.js:
|
|
1183
|
-
@stdlib/ndarray/broadcast-array/lib/main.js:
|
|
1184
|
-
@stdlib/ndarray/broadcast-array/lib/index.js:
|
|
1185
|
-
@stdlib/ndarray/broadcast-arrays/lib/main.js:
|
|
1186
|
-
@stdlib/ndarray/broadcast-arrays/lib/index.js:
|
|
1187
|
-
@stdlib/ndarray/empty/lib/main.js:
|
|
1188
|
-
@stdlib/ndarray/empty/lib/index.js:
|
|
1189
|
-
@stdlib/ndarray/empty-like/lib/main.js:
|
|
1190
|
-
@stdlib/ndarray/empty-like/lib/index.js:
|
|
1191
|
-
@stdlib/slice/base/str2slice/lib/main.js:
|
|
1192
|
-
@stdlib/slice/base/str2slice/lib/index.js:
|
|
1193
|
-
@stdlib/slice/base/str2multislice/lib/main.js:
|
|
1194
|
-
@stdlib/slice/base/str2multislice/lib/index.js:
|
|
1195
|
-
@stdlib/slice/base/seq2slice/lib/re_end_minus.js:
|
|
1196
|
-
@stdlib/slice/base/seq2slice/lib/re_end_divide.js:
|
|
1197
|
-
@stdlib/slice/base/seq2slice/lib/resolve_end.js:
|
|
1198
|
-
@stdlib/slice/base/seq2slice/lib/re_colon_sep.js:
|
|
1199
|
-
@stdlib/slice/base/seq2slice/lib/re_integer.js:
|
|
1200
|
-
@stdlib/slice/base/seq2slice/lib/re_end.js:
|
|
1201
|
-
@stdlib/slice/base/seq2slice/lib/error_invalid_subsequence.js:
|
|
1202
|
-
@stdlib/slice/base/seq2slice/lib/error_out_of_bounds.js:
|
|
1203
|
-
@stdlib/slice/base/seq2slice/lib/error_invalid_increment.js:
|
|
1204
|
-
@stdlib/slice/base/seq2slice/lib/main.js:
|
|
1205
|
-
@stdlib/slice/base/seq2slice/lib/index.js:
|
|
1206
|
-
@stdlib/slice/base/seq2multislice/lib/error_invalid_ellipsis.js:
|
|
1207
|
-
@stdlib/slice/base/seq2multislice/lib/error_insufficient_dimensions.js:
|
|
1208
|
-
@stdlib/slice/base/seq2multislice/lib/error_too_many_dimensions.js:
|
|
1209
|
-
@stdlib/slice/base/seq2multislice/lib/error_out_of_bounds.js:
|
|
1210
|
-
@stdlib/slice/base/seq2multislice/lib/re_subseq_sep.js:
|
|
1211
|
-
@stdlib/slice/base/seq2multislice/lib/re_integer.js:
|
|
1212
|
-
@stdlib/slice/base/seq2multislice/lib/main.js:
|
|
1213
|
-
@stdlib/slice/base/seq2multislice/lib/index.js:
|
|
1214
|
-
@stdlib/ndarray/fancy/lib/re_integer.js:
|
|
1215
|
-
@stdlib/ndarray/fancy/lib/re_subseq.js:
|
|
1216
|
-
@stdlib/ndarray/fancy/lib/prop2slice.0d.js:
|
|
1217
|
-
@stdlib/ndarray/fancy/lib/prop2slice.1d.js:
|
|
1218
|
-
@stdlib/slice/base/sargs2multislice/lib/main.js:
|
|
1219
|
-
@stdlib/slice/base/sargs2multislice/lib/index.js:
|
|
1220
|
-
@stdlib/ndarray/fancy/lib/prop2slice.nd.js:
|
|
1221
|
-
@stdlib/ndarray/fancy/lib/has_property.js:
|
|
1222
|
-
@stdlib/ndarray/fancy/lib/get_value.js:
|
|
1223
|
-
@stdlib/ndarray/fancy/lib/error_message.js:
|
|
1224
|
-
@stdlib/ndarray/fancy/lib/error_constructor.js:
|
|
1225
|
-
@stdlib/ndarray/fancy/lib/get_slice.js:
|
|
1226
|
-
@stdlib/ndarray/fancy/lib/get.js:
|
|
1227
|
-
@stdlib/ndarray/fancy/lib/set_value.js:
|
|
1228
|
-
@stdlib/ndarray/fancy/lib/set_slice.js:
|
|
1229
|
-
@stdlib/ndarray/fancy/lib/set.js:
|
|
1230
|
-
@stdlib/ndarray/fancy/lib/main.js:
|
|
1231
|
-
@stdlib/ndarray/fancy/lib/index.js:
|
|
1232
|
-
@stdlib/ndarray/flag/lib/main.js:
|
|
1233
|
-
@stdlib/ndarray/flag/lib/index.js:
|
|
1234
|
-
@stdlib/ndarray/flags/lib/main.js:
|
|
1235
|
-
@stdlib/ndarray/flags/lib/index.js:
|
|
1236
|
-
@stdlib/ndarray/iter/column-entries/lib/main.js:
|
|
1237
|
-
@stdlib/ndarray/iter/column-entries/lib/index.js:
|
|
1238
|
-
@stdlib/ndarray/iter/columns/lib/main.js:
|
|
1239
|
-
@stdlib/ndarray/iter/columns/lib/index.js:
|
|
1240
|
-
@stdlib/ndarray/iter/entries/lib/main.js:
|
|
1241
|
-
@stdlib/ndarray/iter/entries/lib/index.js:
|
|
1242
|
-
@stdlib/ndarray/iter/indices/lib/main.js:
|
|
1243
|
-
@stdlib/ndarray/iter/indices/lib/index.js:
|
|
1244
|
-
@stdlib/ndarray/maybe-broadcast-array/lib/main.js:
|
|
1245
|
-
@stdlib/ndarray/maybe-broadcast-array/lib/index.js:
|
|
1246
|
-
@stdlib/ndarray/maybe-broadcast-arrays/lib/main.js:
|
|
1247
|
-
@stdlib/ndarray/maybe-broadcast-arrays/lib/index.js:
|
|
1248
|
-
@stdlib/ndarray/iter/matrices/lib/main.js:
|
|
1249
|
-
@stdlib/ndarray/iter/matrices/lib/index.js:
|
|
1250
|
-
@stdlib/ndarray/iter/matrix-entries/lib/main.js:
|
|
1251
|
-
@stdlib/ndarray/iter/matrix-entries/lib/index.js:
|
|
1252
|
-
@stdlib/ndarray/iter/row-entries/lib/main.js:
|
|
1253
|
-
@stdlib/ndarray/iter/row-entries/lib/index.js:
|
|
1254
|
-
@stdlib/ndarray/iter/rows/lib/main.js:
|
|
1255
|
-
@stdlib/ndarray/iter/rows/lib/index.js:
|
|
1256
|
-
@stdlib/array/base/resolve-getter/lib/main.js:
|
|
1257
|
-
@stdlib/array/base/resolve-getter/lib/index.js:
|
|
1258
|
-
@stdlib/array/base/put/lib/main.js:
|
|
1259
|
-
@stdlib/ndarray/to-array/lib/main.js:
|
|
1260
|
-
@stdlib/ndarray/to-array/lib/index.js:
|
|
1261
|
-
@stdlib/ndarray/iter/to-array-each/lib/main.js:
|
|
1262
|
-
@stdlib/ndarray/iter/to-array-each/lib/index.js:
|
|
1263
|
-
@stdlib/ndarray/iter/values/lib/main.js:
|
|
1264
|
-
@stdlib/ndarray/iter/values/lib/index.js:
|
|
1265
|
-
@stdlib/ndarray/iter/lib/index.js:
|
|
1266
|
-
@stdlib/ndarray/numel/lib/main.js:
|
|
1267
|
-
@stdlib/ndarray/numel/lib/index.js:
|
|
1268
|
-
@stdlib/ndarray/numel-dimension/lib/main.js:
|
|
1269
|
-
@stdlib/ndarray/numel-dimension/lib/index.js:
|
|
1270
|
-
@stdlib/assert/is-multi-slice/lib/main.js:
|
|
1271
|
-
@stdlib/assert/is-multi-slice/lib/index.js:
|
|
1272
|
-
@stdlib/ndarray/slice/lib/main.js:
|
|
1273
|
-
@stdlib/ndarray/slice/lib/index.js:
|
|
1274
|
-
@stdlib/ndarray/slice-assign/lib/main.js:
|
|
1275
|
-
@stdlib/ndarray/slice-assign/lib/index.js:
|
|
1276
|
-
@stdlib/ndarray/slice-dimension/lib/main.js:
|
|
1277
|
-
@stdlib/ndarray/slice-dimension/lib/index.js:
|
|
1278
|
-
@stdlib/ndarray/slice-dimension-from/lib/main.js:
|
|
1279
|
-
@stdlib/ndarray/slice-dimension-from/lib/index.js:
|
|
1280
|
-
@stdlib/ndarray/slice-dimension-to/lib/main.js:
|
|
1281
|
-
@stdlib/ndarray/slice-dimension-to/lib/index.js:
|
|
1282
|
-
@stdlib/ndarray/slice-from/lib/main.js:
|
|
1283
|
-
@stdlib/ndarray/slice-from/lib/index.js:
|
|
1284
|
-
@stdlib/ndarray/slice-to/lib/main.js:
|
|
1285
|
-
@stdlib/ndarray/slice-to/lib/index.js:
|
|
1286
|
-
@stdlib/ndarray/stride/lib/main.js:
|
|
1287
|
-
@stdlib/ndarray/stride/lib/index.js:
|
|
1288
|
-
(**
|
|
1289
|
-
* @license Apache-2.0
|
|
1290
|
-
*
|
|
1291
|
-
* Copyright (c) 2023 The Stdlib Authors.
|
|
1292
|
-
*
|
|
1293
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1294
|
-
* you may not use this file except in compliance with the License.
|
|
1295
|
-
* You may obtain a copy of the License at
|
|
1296
|
-
*
|
|
1297
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1298
|
-
*
|
|
1299
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1300
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1301
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1302
|
-
* See the License for the specific language governing permissions and
|
|
1303
|
-
* limitations under the License.
|
|
1304
|
-
*)
|
|
1305
|
-
|
|
1306
|
-
ieee754/index.js:
|
|
1307
|
-
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
1308
|
-
|
|
1309
|
-
buffer/index.js:
|
|
1310
|
-
(*!
|
|
1311
|
-
* The buffer module from node.js, for the browser.
|
|
1312
|
-
*
|
|
1313
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
1314
|
-
* @license MIT
|
|
1315
|
-
*)
|
|
1316
|
-
|
|
1317
|
-
@stdlib/blas/ext/base/grev/lib/main.js:
|
|
1318
|
-
@stdlib/blas/ext/base/grev/lib/ndarray.js:
|
|
1319
|
-
@stdlib/blas/ext/base/grev/lib/index.js:
|
|
1320
|
-
@stdlib/ndarray/base/dtypes2signatures/lib/main.js:
|
|
1321
|
-
@stdlib/ndarray/base/dtypes2signatures/lib/index.js:
|
|
1322
|
-
@stdlib/ndarray/base/nonsingleton-dimensions/lib/main.js:
|
|
1323
|
-
@stdlib/ndarray/base/nonsingleton-dimensions/lib/index.js:
|
|
1324
|
-
@stdlib/ndarray/base/singleton-dimensions/lib/main.js:
|
|
1325
|
-
@stdlib/ndarray/base/singleton-dimensions/lib/index.js:
|
|
1326
|
-
(**
|
|
1327
|
-
* @license Apache-2.0
|
|
1328
|
-
*
|
|
1329
|
-
* Copyright (c) 2020 The Stdlib Authors.
|
|
1330
|
-
*
|
|
1331
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1332
|
-
* you may not use this file except in compliance with the License.
|
|
1333
|
-
* You may obtain a copy of the License at
|
|
1334
|
-
*
|
|
1335
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1336
|
-
*
|
|
1337
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1338
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1339
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1340
|
-
* See the License for the specific language governing permissions and
|
|
1341
|
-
* limitations under the License.
|
|
1342
|
-
*)
|
|
1343
|
-
|
|
1344
|
-
@stdlib/blas/base/ddot/lib/ndarray.js:
|
|
1345
|
-
@stdlib/blas/base/ddot/lib/ddot.js:
|
|
1346
|
-
@stdlib/blas/base/ddot/lib/main.js:
|
|
1347
|
-
(**
|
|
1348
|
-
* @license Apache-2.0
|
|
1349
|
-
*
|
|
1350
|
-
* Copyright (c) 2019 The Stdlib Authors.
|
|
1351
|
-
*
|
|
1352
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1353
|
-
* you may not use this file except in compliance with the License.
|
|
1354
|
-
* You may obtain a copy of the License at
|
|
1355
|
-
*
|
|
1356
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1357
|
-
*
|
|
1358
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1359
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1360
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1361
|
-
* See the License for the specific language governing permissions and
|
|
1362
|
-
* limitations under the License.
|
|
1363
|
-
*)
|
|
1364
|
-
*/
|
|
1
|
+
"use strict";var np=(()=>{var j=Object.defineProperty;var gt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var At=Object.prototype.hasOwnProperty;var bt=(t,r)=>{for(var n in r)j(t,n,{get:r[n],enumerable:!0})},St=(t,r,n,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of ht(r))!At.call(t,o)&&o!==n&&j(t,o,{get:()=>r[o],enumerable:!(e=gt(r,o))||e.enumerable});return t};var Dt=t=>St(j({},"__esModule",{value:!0}),t);var Yt={};bt(Yt,{NDArray:()=>E,__version__:()=>Ht,absolute:()=>nt,arange:()=>Wr,array:()=>v,asarray:()=>Yr,copy:()=>Qr,dot:()=>ft,empty:()=>ar,empty_like:()=>Kr,eye:()=>sr,floor_divide:()=>it,full:()=>ir,full_like:()=>rt,geomspace:()=>Gr,identity:()=>Hr,inner:()=>pt,linspace:()=>Jr,logspace:()=>Pr,mod:()=>at,negative:()=>ot,ones:()=>or,ones_like:()=>Zr,outer:()=>mt,positive:()=>ut,power:()=>et,reciprocal:()=>lt,sign:()=>st,sqrt:()=>tt,tensordot:()=>dt,trace:()=>ct,transpose:()=>yt,zeros:()=>k,zeros_like:()=>Xr});function lr(t){if(!t.includes(":")){if(t.includes("."))throw new Error(`Invalid slice index: "${t}" (must be integer)`);let a=parseInt(t,10);if(isNaN(a))throw new Error(`Invalid slice index: "${t}"`);return{start:a,stop:null,step:1,isIndex:!0}}let r=t.split(":");if(r.length>3)throw new Error(`Invalid slice notation: "${t}" (too many colons)`);let n=r[0]===""?null:parseInt(r[0],10),e=r[1]===""||r[1]===void 0?null:parseInt(r[1],10),o=r[2]===""||r[2]===void 0?1:parseInt(r[2],10);if(n!==null&&isNaN(n))throw new Error(`Invalid start index in slice: "${t}"`);if(e!==null&&isNaN(e))throw new Error(`Invalid stop index in slice: "${t}"`);if(isNaN(o))throw new Error(`Invalid step in slice: "${t}"`);if(o===0)throw new Error("Slice step cannot be zero");return{start:n,stop:e,step:o,isIndex:!1}}function fr(t,r){let{start:n,stop:e}=t,{step:o,isIndex:a}=t;if(a){if(n===null)throw new Error("Index cannot be null");let l=n<0?r+n:n;if(l<0||l>=r)throw new Error(`Index ${n} is out of bounds for size ${r}`);return{start:l,stop:l+1,step:1,isIndex:!0}}return o>0?(n===null&&(n=0),e===null&&(e=r)):(n===null&&(n=r-1),e===null&&(e=-r-1)),n<0&&(n=r+n),e<0&&(e=r+e),n=Math.max(0,Math.min(n,r)),e=Math.max(-1,Math.min(e,r)),{start:n,stop:e,step:o,isIndex:!1}}var T="float64";function U(t){switch(t){case"float64":return Float64Array;case"float32":return Float32Array;case"int64":return BigInt64Array;case"int32":return Int32Array;case"int16":return Int16Array;case"int8":return Int8Array;case"uint64":return BigUint64Array;case"uint32":return Uint32Array;case"uint16":return Uint16Array;case"uint8":return Uint8Array;case"bool":return Uint8Array;default:throw new Error(`Unknown dtype: ${t}`)}}function cr(t){return t==="float64"||t==="float32"}function x(t){return t==="int64"||t==="uint64"}function _(t,r){if(t===r)return t;if(t==="bool")return r;if(r==="bool")return t;if(cr(t)||cr(r)){if(t==="float64"||r==="float64")return"float64";if(t==="float32"){let u=r;return u==="int32"||u==="int64"||u==="uint32"||u==="uint64"?"float64":"float32"}if(r==="float32"){let u=t;return u==="int32"||u==="int64"||u==="uint32"||u==="uint64"?"float64":"float32"}return"float32"}let n=t.startsWith("int"),e=r.startsWith("int"),o=t.startsWith("uint"),a=r.startsWith("uint"),l=u=>u.includes("64")?64:u.includes("32")?32:u.includes("16")?16:u.includes("8")?8:0,i=l(t),s=l(r);if(t==="int64"&&r==="uint64"||t==="uint64"&&r==="int64")return"float64";if(n&&a&&i===s){if(i===8)return"int16";if(i===16)return"int32";if(i===32)return"int64"}if(o&&e&&i===s){if(s===8)return"int16";if(s===16)return"int32";if(s===32)return"int64"}if(n&&e||o&&a){let u=Math.max(i,s);return n?u===64?"int64":u===32?"int32":u===16?"int16":"int8":u===64?"uint64":u===32?"uint32":u===16?"uint16":"uint8"}return n&&a?i>s?t:s===8?"int16":s===16?"int32":s===32?"int64":"float64":o&&e?s>i?r:i===8?"int16":i===16?"int32":i===32?"int64":"float64":"float64"}var D=class t{constructor(r,n,e,o,a){this._data=r,this._shape=n,this._strides=e,this._offset=o,this._dtype=a}get shape(){return this._shape}get ndim(){return this._shape.length}get size(){return this._shape.reduce((r,n)=>r*n,1)}get dtype(){return this._dtype}get data(){return this._data}get strides(){return this._strides}get offset(){return this._offset}get isCContiguous(){let r=this._shape,n=this._strides,e=r.length;if(e===0)return!0;if(e===1)return n[0]===1;let o=1;for(let a=e-1;a>=0;a--){if(n[a]!==o)return!1;o*=r[a]}return!0}get isFContiguous(){let r=this._shape,n=this._strides,e=r.length;if(e===0)return!0;if(e===1)return n[0]===1;let o=1;for(let a=0;a<e;a++){if(n[a]!==o)return!1;o*=r[a]}return!0}iget(r){let n=this._shape,e=this._strides,o=n.length;if(o===0)return this._data[this._offset];let a=r,l=this._offset;for(let i=0;i<o;i++){let s=1;for(let c=i+1;c<o;c++)s*=n[c];let u=Math.floor(a/s);a=a%s,l+=u*e[i]}return this._data[l]}iset(r,n){let e=this._shape,o=this._strides,a=e.length;if(a===0){this._data[this._offset]=n;return}let l=r,i=this._offset;for(let s=0;s<a;s++){let u=1;for(let f=s+1;f<a;f++)u*=e[f];let c=Math.floor(l/u);l=l%u,i+=c*o[s]}this._data[i]=n}get(...r){let n=this._strides,e=this._offset;for(let o=0;o<r.length;o++)e+=r[o]*n[o];return this._data[e]}set(r,n){let e=this._strides,o=this._offset;for(let a=0;a<r.length;a++)o+=r[a]*e[a];this._data[o]=n}copy(){let r=Array.from(this._shape),n=this._dtype,e=this.size,o=U(n);if(!o)throw new Error(`Cannot copy array with dtype ${n}`);let a=new o(e);if(this.isCContiguous&&this._offset===0)if(x(n)){let l=this._data,i=a;for(let s=0;s<e;s++)i[s]=l[s]}else a.set(this._data);else if(x(n)){let l=a;for(let i=0;i<e;i++)l[i]=this.iget(i)}else for(let l=0;l<e;l++)a[l]=this.iget(l);return new t(a,r,t._computeStrides(r),0,n)}static fromData(r,n,e,o,a){let l=o??t._computeStrides(n),i=a??0;return new t(r,n,l,i,e)}static zeros(r,n=T){let e=r.reduce((l,i)=>l*i,1),o=U(n);if(!o)throw new Error(`Cannot create array with dtype ${n}`);let a=new o(e);return new t(a,r,t._computeStrides(r),0,n)}static ones(r,n=T){let e=r.reduce((l,i)=>l*i,1),o=U(n);if(!o)throw new Error(`Cannot create array with dtype ${n}`);let a=new o(e);return x(n)?a.fill(BigInt(1)):a.fill(1),new t(a,r,t._computeStrides(r),0,n)}static _computeStrides(r){let n=new Array(r.length),e=1;for(let o=r.length-1;o>=0;o--)n[o]=e,e*=r[o];return n}};function L(t){let r=new Array(t.length),n=1;for(let e=t.length-1;e>=0;e--)r[e]=n,n*=t[e];return r}function yr(t,r){let n=t.length,e=r.length,o=Math.max(n,e),a=new Array(o);for(let l=0;l<o;l++){let i=l<o-n?1:t[l-(o-n)],s=l<o-e?1:r[l-(o-e)];if(i===s)a[l]=i;else if(i===1)a[l]=s;else if(s===1)a[l]=i;else throw new Error(`operands could not be broadcast together with shapes ${JSON.stringify(Array.from(t))} ${JSON.stringify(Array.from(r))}`)}return a}function xt(t,r,n){let e=t.length,o=n.length,a=new Array(o).fill(0);for(let l=0;l<e;l++){let i=o-e+l,s=t[l],u=n[i];if(s===u)a[i]=r[l];else if(s===1)a[i]=0;else throw new Error("Invalid broadcast")}return a}function q(t,r){let n=xt(t.shape,t.strides,r);return D.fromData(t.data,Array.from(r),t.dtype,n,t.offset)}function O(t,r,n,e){let o=yr(t.shape,r.shape),a=q(t,o),l=q(r,o),i=_(t.dtype,r.dtype),s=D.zeros(o,i),u=s.data,c=s.size;if(x(i)){let f=u;for(let y=0;y<c;y++){let m=a.iget(y),p=l.iget(y),d=typeof m=="bigint"?m:BigInt(Math.round(m)),A=typeof p=="bigint"?p:BigInt(Math.round(p));e==="add"?f[y]=d+A:e==="subtract"?f[y]=d-A:e==="multiply"?f[y]=d*A:e==="divide"?f[y]=d/A:f[y]=BigInt(Math.round(n(Number(d),Number(A))))}}else{let f=x(t.dtype)||x(r.dtype);for(let y=0;y<c;y++){let m=a.iget(y),p=l.iget(y),d=Number(m),A=Number(p);u[y]=n(d,A)}}return s}function M(t,r,n){let e=yr(t.shape,r.shape),o=q(t,e),a=q(r,e),l=e.reduce((u,c)=>u*c,1),i=new Uint8Array(l),s=x(t.dtype)||x(r.dtype);for(let u=0;u<l;u++){let c=o.iget(u),f=a.iget(u),y=Number(c),m=Number(f);i[u]=n(y,m)?1:0}return D.fromData(i,e,"bool")}function pr(t,r,n=!0){let e=t.dtype,o=Array.from(t.shape),a=t.size,i=n?e:e!=="float32"&&e!=="float64"?"float64":e,s=D.zeros(o,i),u=s.data,c=t.data;if(x(e))if(x(i)){let f=u;for(let y=0;y<a;y++){let m=Number(c[y]);f[y]=BigInt(Math.round(r(m)))}}else for(let f=0;f<a;f++)u[f]=r(Number(c[f]));else for(let f=0;f<a;f++)u[f]=r(Number(c[f]));return s}function R(t,r){return t.isCContiguous&&r.isCContiguous&&t.shape.length===r.shape.length&&t.shape.every((n,e)=>n===r.shape[e])}function mr(t,r){return typeof r=="number"?Bt(t,r):R(t,r)?It(t,r):O(t,r,(n,e)=>n+e,"add")}function It(t,r){let n=_(t.dtype,r.dtype),e=D.zeros(Array.from(t.shape),n),o=t.size,a=t.data,l=r.data,i=e.data;if(x(n)){let s=i;if(!x(t.dtype)||!x(r.dtype))for(let c=0;c<o;c++){let f=typeof a[c]=="bigint"?a[c]:BigInt(Math.round(Number(a[c]))),y=typeof l[c]=="bigint"?l[c]:BigInt(Math.round(Number(l[c])));s[c]=f+y}else{let c=a,f=l;for(let y=0;y<o;y++)s[y]=c[y]+f[y]}}else if(x(t.dtype)||x(r.dtype))for(let u=0;u<o;u++){let c=typeof a[u]=="bigint"?Number(a[u]):a[u],f=typeof l[u]=="bigint"?Number(l[u]):l[u];i[u]=c+f}else for(let u=0;u<o;u++)i[u]=a[u]+l[u];return e}function dr(t,r){return typeof r=="number"?zt(t,r):R(t,r)?wt(t,r):O(t,r,(n,e)=>n-e,"subtract")}function wt(t,r){let n=_(t.dtype,r.dtype),e=D.zeros(Array.from(t.shape),n),o=t.size,a=t.data,l=r.data,i=e.data;if(x(n)){let s=i;if(!x(t.dtype)||!x(r.dtype))for(let c=0;c<o;c++){let f=typeof a[c]=="bigint"?a[c]:BigInt(Math.round(Number(a[c]))),y=typeof l[c]=="bigint"?l[c]:BigInt(Math.round(Number(l[c])));s[c]=f-y}else{let c=a,f=l;for(let y=0;y<o;y++)s[y]=c[y]-f[y]}}else if(x(t.dtype)||x(r.dtype))for(let u=0;u<o;u++){let c=typeof a[u]=="bigint"?Number(a[u]):a[u],f=typeof l[u]=="bigint"?Number(l[u]):l[u];i[u]=c-f}else for(let u=0;u<o;u++)i[u]=a[u]-l[u];return e}function gr(t,r){return typeof r=="number"?_t(t,r):R(t,r)?Nt(t,r):O(t,r,(n,e)=>n*e,"multiply")}function Nt(t,r){let n=_(t.dtype,r.dtype),e=D.zeros(Array.from(t.shape),n),o=t.size,a=t.data,l=r.data,i=e.data;if(x(n)){let s=i;if(!x(t.dtype)||!x(r.dtype))for(let c=0;c<o;c++){let f=typeof a[c]=="bigint"?a[c]:BigInt(Math.round(Number(a[c]))),y=typeof l[c]=="bigint"?l[c]:BigInt(Math.round(Number(l[c])));s[c]=f*y}else{let c=a,f=l;for(let y=0;y<o;y++)s[y]=c[y]*f[y]}}else if(x(t.dtype)||x(r.dtype))for(let u=0;u<o;u++){let c=typeof a[u]=="bigint"?Number(a[u]):a[u],f=typeof l[u]=="bigint"?Number(l[u]):l[u];i[u]=c*f}else for(let u=0;u<o;u++)i[u]=a[u]*l[u];return e}function hr(t,r){if(typeof r=="number")return Tt(t,r);let n=t.dtype==="float64",e=r.dtype==="float64",o=t.dtype==="float32",a=r.dtype==="float32";if(n||e){let s=n?t:V(t,"float64"),u=e?r:V(r,"float64");return O(s,u,(c,f)=>c/f,"divide")}if(o||a){let s=o?t:V(t,"float32"),u=a?r:V(r,"float32");return O(s,u,(c,f)=>c/f,"divide")}let l=V(t,"float64"),i=V(r,"float64");return O(l,i,(s,u)=>s/u,"divide")}function V(t,r){let n=D.zeros(Array.from(t.shape),r),e=t.size,o=t.data,a=n.data;for(let l=0;l<e;l++)a[l]=Number(o[l]);return n}function Bt(t,r){let n=t.dtype,e=Array.from(t.shape),o=t.data,a=t.size,l=D.zeros(e,n),i=l.data;if(x(n)){let s=o,u=i,c=BigInt(Math.round(r));for(let f=0;f<a;f++)u[f]=s[f]+c}else for(let s=0;s<a;s++)i[s]=Number(o[s])+r;return l}function zt(t,r){let n=t.dtype,e=Array.from(t.shape),o=t.data,a=t.size,l=D.zeros(e,n),i=l.data;if(x(n)){let s=o,u=i,c=BigInt(Math.round(r));for(let f=0;f<a;f++)u[f]=s[f]-c}else for(let s=0;s<a;s++)i[s]=Number(o[s])-r;return l}function _t(t,r){let n=t.dtype,e=Array.from(t.shape),o=t.data,a=t.size,l=D.zeros(e,n),i=l.data;if(x(n)){let s=o,u=i,c=BigInt(Math.round(r));for(let f=0;f<a;f++)u[f]=s[f]*c}else for(let s=0;s<a;s++)i[s]=Number(o[s])*r;return l}function Tt(t,r){let n=t.dtype,e=Array.from(t.shape),o=t.data,a=t.size,i=n!=="float32"&&n!=="float64"?"float64":n,s=D.zeros(e,i),u=s.data;if(x(n))for(let c=0;c<a;c++)u[c]=Number(o[c])/r;else for(let c=0;c<a;c++)u[c]=Number(o[c])/r;return s}function Ar(t){let r=t.dtype,n=Array.from(t.shape),e=t.data,o=t.size,a=D.zeros(n,r),l=a.data;if(x(r)){let i=e,s=l;for(let u=0;u<o;u++){let c=i[u];s[u]=c<0n?-c:c}}else for(let i=0;i<o;i++)l[i]=Math.abs(Number(e[i]));return a}function br(t){let r=t.dtype,n=Array.from(t.shape),e=t.data,o=t.size,a=D.zeros(n,r),l=a.data;if(x(r)){let i=e,s=l;for(let u=0;u<o;u++)s[u]=-i[u]}else for(let i=0;i<o;i++)l[i]=-Number(e[i]);return a}function Sr(t){let r=t.dtype,n=Array.from(t.shape),e=t.data,o=t.size,a=D.zeros(n,r),l=a.data;if(x(r)){let i=e,s=l;for(let u=0;u<o;u++){let c=i[u];s[u]=c>0n?1n:c<0n?-1n:0n}}else for(let i=0;i<o;i++){let s=Number(e[i]);l[i]=s>0?1:s<0?-1:0}return a}function Dr(t,r){return typeof r=="number"?Ut(t,r):O(t,r,(n,e)=>(n%e+e)%e,"mod")}function Ut(t,r){let n=t.dtype,e=Array.from(t.shape),o=t.data,a=t.size,l=D.zeros(e,n),i=l.data;if(x(n)){let s=o,u=i,c=BigInt(Math.round(r));for(let f=0;f<a;f++){let y=s[f];u[f]=(y%c+c)%c}}else for(let s=0;s<a;s++){let u=Number(o[s]);i[s]=(u%r+r)%r}return l}function xr(t,r){return typeof r=="number"?Et(t,r):O(t,r,(n,e)=>Math.floor(n/e),"floor_divide")}function Et(t,r){let n=t.dtype,e=Array.from(t.shape),o=t.data,a=t.size,l=D.zeros(e,n),i=l.data;if(x(n)){let s=o,u=i,c=BigInt(Math.round(r));for(let f=0;f<a;f++)u[f]=s[f]/c}else for(let s=0;s<a;s++)i[s]=Math.floor(Number(o[s])/r);return l}function Ir(t){let r=t.dtype,n=Array.from(t.shape),e=t.data,o=t.size,a=D.zeros(n,r),l=a.data;for(let i=0;i<o;i++)l[i]=e[i];return a}function wr(t){let r=t.dtype,n=Array.from(t.shape),e=t.data,o=t.size,l=r!=="float32"&&r!=="float64"?"float64":r,i=D.zeros(n,l),s=i.data;if(x(r))for(let u=0;u<o;u++)s[u]=1/Number(e[u]);else for(let u=0;u<o;u++)s[u]=1/Number(e[u]);return i}function Nr(t,r){return typeof r=="number"?Ot(t,r):M(t,r,(n,e)=>n>e)}function Br(t,r){return typeof r=="number"?vt(t,r):M(t,r,(n,e)=>n>=e)}function zr(t,r){return typeof r=="number"?Mt(t,r):M(t,r,(n,e)=>n<e)}function _r(t,r){return typeof r=="number"?Vt(t,r):M(t,r,(n,e)=>n<=e)}function Tr(t,r){return typeof r=="number"?Ct(t,r):M(t,r,(n,e)=>n===e)}function Ur(t,r){return typeof r=="number"?Ft(t,r):M(t,r,(n,e)=>n!==e)}function W(t,r,n=1e-5,e=1e-8){return typeof r=="number"?kt(t,r,n,e):M(t,r,(o,a)=>{let l=Math.abs(o-a),i=e+n*Math.abs(a);return l<=i})}function Er(t,r,n=1e-5,e=1e-8){let o=W(t,r,n,e),a=o.data;for(let l=0;l<o.size;l++)if(a[l]===0)return!1;return!0}function Ot(t,r){let n=new Uint8Array(t.size),e=t.data;for(let o=0;o<t.size;o++)n[o]=e[o]>r?1:0;return D.fromData(n,Array.from(t.shape),"bool")}function vt(t,r){let n=new Uint8Array(t.size),e=t.data;for(let o=0;o<t.size;o++)n[o]=e[o]>=r?1:0;return D.fromData(n,Array.from(t.shape),"bool")}function Mt(t,r){let n=new Uint8Array(t.size),e=t.data;for(let o=0;o<t.size;o++)n[o]=e[o]<r?1:0;return D.fromData(n,Array.from(t.shape),"bool")}function Vt(t,r){let n=new Uint8Array(t.size),e=t.data;for(let o=0;o<t.size;o++)n[o]=e[o]<=r?1:0;return D.fromData(n,Array.from(t.shape),"bool")}function Ct(t,r){let n=new Uint8Array(t.size),e=t.data,o=t.dtype;if(x(o)){let a=BigInt(Math.round(r)),l=e;for(let i=0;i<t.size;i++)n[i]=l[i]===a?1:0}else for(let a=0;a<t.size;a++)n[a]=e[a]===r?1:0;return D.fromData(n,Array.from(t.shape),"bool")}function Ft(t,r){let n=new Uint8Array(t.size),e=t.data;for(let o=0;o<t.size;o++)n[o]=e[o]!==r?1:0;return D.fromData(n,Array.from(t.shape),"bool")}function kt(t,r,n,e){let o=new Uint8Array(t.size),a=t.data,l=t.dtype;if(x(l)){let i=a;for(let s=0;s<t.size;s++){let u=Number(i[s]),c=Math.abs(u-r),f=e+n*Math.abs(r);o[s]=c<=f?1:0}}else for(let i=0;i<t.size;i++){let s=Number(a[i]),u=Math.abs(s-r),c=e+n*Math.abs(r);o[i]=u<=c?1:0}return D.fromData(o,Array.from(t.shape),"bool")}function B(t,r){let n=0,e=1;for(let o=t.length-1;o>=0;o--)n+=t[o]*e,e*=r[o];return n}function z(t,r,n,e){let o=e.length,a=new Array(o),l=Array.from(e).filter((s,u)=>u!==r),i=t;for(let s=l.length-1;s>=0;s--)a[s>=r?s+1:s]=i%l[s],i=Math.floor(i/l[s]);return a[r]=n,a}function C(t,r,n=!1){let e=t.dtype,o=t.shape,a=o.length,l=t.size,i=t.data;if(r===void 0)if(x(e)){let p=i,d=BigInt(0);for(let A=0;A<l;A++)d+=p[A];return Number(d)}else{let p=0;for(let d=0;d<l;d++)p+=Number(i[d]);return p}let s=r;if(s<0&&(s=a+s),s<0||s>=a)throw new Error(`axis ${r} is out of bounds for array of dimension ${a}`);let u=Array.from(o).filter((p,d)=>d!==s);if(u.length===0)return C(t);let c=D.zeros(u,e),f=c.data,y=o[s],m=u.reduce((p,d)=>p*d,1);if(x(e)){let p=i,d=f;for(let A=0;A<m;A++){let g=BigInt(0);for(let h=0;h<y;h++){let S=z(A,s,h,o),b=B(S,o);g+=p[b]}d[A]=g}}else for(let p=0;p<m;p++){let d=0;for(let A=0;A<y;A++){let g=z(p,s,A,o),h=B(g,o);d+=Number(i[h])}f[p]=d}if(n){let p=[...o];return p[s]=1,D.fromData(f,p,e)}return c}function J(t,r,n=!1){let e=t.dtype,o=t.shape;if(r===void 0)return C(t)/t.size;let a=r;if(a<0&&(a=o.length+a),a<0||a>=o.length)throw new Error(`axis ${r} is out of bounds for array of dimension ${o.length}`);let l=C(t,r,n);if(typeof l=="number")return l/o[a];let i=o[a],s=e;(x(e)||e.startsWith("int")||e.startsWith("uint"))&&(s="float64");let u=D.zeros(Array.from(l.shape),s),c=u.data,f=l.data;if(x(e)){let y=f;for(let m=0;m<c.length;m++)c[m]=Number(y[m])/i}else for(let y=0;y<c.length;y++)c[y]=Number(f[y])/i;return u}function P(t,r,n=!1){let e=t.dtype,o=t.shape,a=o.length,l=t.size,i=t.data;if(r===void 0){if(l===0)throw new Error("max of empty array");let p=i[0];for(let d=1;d<l;d++)i[d]>p&&(p=i[d]);return Number(p)}let s=r;if(s<0&&(s=a+s),s<0||s>=a)throw new Error(`axis ${r} is out of bounds for array of dimension ${a}`);let u=Array.from(o).filter((p,d)=>d!==s);if(u.length===0)return P(t);let c=D.zeros(u,e),f=c.data,y=o[s],m=u.reduce((p,d)=>p*d,1);if(x(e)){let p=i,d=f;for(let A=0;A<m;A++){let g=z(A,s,0,o),h=B(g,o),S=p[h];for(let b=1;b<y;b++){let I=z(A,s,b,o),w=B(I,o),$=p[w];$>S&&(S=$)}d[A]=S}}else for(let p=0;p<m;p++){let d=-1/0;for(let A=0;A<y;A++){let g=z(p,s,A,o),h=B(g,o),S=Number(i[h]);S>d&&(d=S)}f[p]=d}if(n){let p=[...o];return p[s]=1,D.fromData(f,p,e)}return c}function G(t,r,n=!1){let e=t.dtype,o=t.shape,a=o.length,l=t.size,i=t.data;if(r===void 0)if(x(e)){let p=i,d=BigInt(1);for(let A=0;A<l;A++)d*=p[A];return Number(d)}else{let p=1;for(let d=0;d<l;d++)p*=Number(i[d]);return p}let s=r;if(s<0&&(s=a+s),s<0||s>=a)throw new Error(`axis ${r} is out of bounds for array of dimension ${a}`);let u=Array.from(o).filter((p,d)=>d!==s);if(u.length===0)return G(t);let c=D.zeros(u,e),f=c.data,y=o[s],m=u.reduce((p,d)=>p*d,1);if(x(e)){let p=i,d=f;for(let A=0;A<m;A++){let g=BigInt(1);for(let h=0;h<y;h++){let S=z(A,s,h,o),b=B(S,o);g*=p[b]}d[A]=g}}else for(let p=0;p<m;p++){let d=1;for(let A=0;A<y;A++){let g=z(p,s,A,o),h=B(g,o);d*=Number(i[h])}f[p]=d}if(n){let p=[...o];return p[s]=1,D.fromData(f,p,e)}return c}function H(t,r,n=!1){let e=t.dtype,o=t.shape,a=o.length,l=t.size,i=t.data;if(r===void 0){if(l===0)throw new Error("min of empty array");let p=i[0];for(let d=1;d<l;d++)i[d]<p&&(p=i[d]);return Number(p)}let s=r;if(s<0&&(s=a+s),s<0||s>=a)throw new Error(`axis ${r} is out of bounds for array of dimension ${a}`);let u=Array.from(o).filter((p,d)=>d!==s);if(u.length===0)return H(t);let c=D.zeros(u,e),f=c.data,y=o[s],m=u.reduce((p,d)=>p*d,1);if(x(e)){let p=i,d=f;for(let A=0;A<m;A++){let g=z(A,s,0,o),h=B(g,o),S=p[h];for(let b=1;b<y;b++){let I=z(A,s,b,o),w=B(I,o),$=p[w];$<S&&(S=$)}d[A]=S}}else for(let p=0;p<m;p++){let d=1/0;for(let A=0;A<y;A++){let g=z(p,s,A,o),h=B(g,o),S=Number(i[h]);S<d&&(d=S)}f[p]=d}if(n){let p=[...o];return p[s]=1,D.fromData(f,p,e)}return c}function Y(t,r){let n=t.dtype,e=t.shape,o=e.length,a=t.size,l=t.data;if(r===void 0){if(a===0)throw new Error("argmin of empty array");let m=l[0],p=0;for(let d=1;d<a;d++)l[d]<m&&(m=l[d],p=d);return p}let i=r;if(i<0&&(i=o+i),i<0||i>=o)throw new Error(`axis ${r} is out of bounds for array of dimension ${o}`);let s=Array.from(e).filter((m,p)=>p!==i);if(s.length===0)return Y(t);let u=D.zeros(s,"int32"),c=u.data,f=e[i],y=s.reduce((m,p)=>m*p,1);if(x(n)){let m=l;for(let p=0;p<y;p++){let d=z(p,i,0,e),A=B(d,e),g=m[A],h=0;for(let S=1;S<f;S++){let b=z(p,i,S,e),I=B(b,e),w=m[I];w<g&&(g=w,h=S)}c[p]=h}}else for(let m=0;m<y;m++){let p=1/0,d=0;for(let A=0;A<f;A++){let g=z(m,i,A,e),h=B(g,e),S=Number(l[h]);S<p&&(p=S,d=A)}c[m]=d}return u}function Q(t,r){let n=t.dtype,e=t.shape,o=e.length,a=t.size,l=t.data;if(r===void 0){if(a===0)throw new Error("argmax of empty array");let m=l[0],p=0;for(let d=1;d<a;d++)l[d]>m&&(m=l[d],p=d);return p}let i=r;if(i<0&&(i=o+i),i<0||i>=o)throw new Error(`axis ${r} is out of bounds for array of dimension ${o}`);let s=Array.from(e).filter((m,p)=>p!==i);if(s.length===0)return Q(t);let u=D.zeros(s,"int32"),c=u.data,f=e[i],y=s.reduce((m,p)=>m*p,1);if(x(n)){let m=l;for(let p=0;p<y;p++){let d=z(p,i,0,e),A=B(d,e),g=m[A],h=0;for(let S=1;S<f;S++){let b=z(p,i,S,e),I=B(b,e),w=m[I];w>g&&(g=w,h=S)}c[p]=h}}else for(let m=0;m<y;m++){let p=-1/0,d=0;for(let A=0;A<f;A++){let g=z(m,i,A,e),h=B(g,e),S=Number(l[h]);S>p&&(p=S,d=A)}c[m]=d}return u}function X(t,r,n=0,e=!1){let o=t.shape,a=o.length,l=t.size,i=t.data,s=J(t,r,e);if(r===void 0){let g=s,h=0;for(let S=0;S<l;S++){let b=Number(i[S])-g;h+=b*b}return h/(l-n)}let u=r;if(u<0&&(u=a+u),u<0||u>=a)throw new Error(`axis ${r} is out of bounds for array of dimension ${a}`);let c=o[u],f=s,y=f.data,m=e?f.shape:Array.from(o).filter((g,h)=>h!==u),p=D.zeros(Array.from(m),"float64"),d=p.data,A=m.reduce((g,h)=>g*h,1);for(let g=0;g<A;g++){let h=0,S=Number(y[g]);for(let b=0;b<c;b++){let I=z(g,u,b,o),w=B(I,o),$=Number(i[w])-S;h+=$*$}d[g]=h/(c-n)}return p}function $r(t,r,n=0,e=!1){let o=X(t,r,n,e);if(typeof o=="number")return Math.sqrt(o);let a=D.zeros(Array.from(o.shape),"float64"),l=o.data,i=a.data;for(let s=0;s<l.length;s++)i[s]=Math.sqrt(Number(l[s]));return a}function Z(t,r,n=!1){let e=t.shape,o=e.length,a=t.size,l=t.data;if(r===void 0){for(let m=0;m<a;m++)if(!l[m])return!1;return!0}let i=r;if(i<0&&(i=o+i),i<0||i>=o)throw new Error(`axis ${r} is out of bounds for array of dimension ${o}`);let s=Array.from(e).filter((m,p)=>p!==i);if(s.length===0)return Z(t);let u=D.zeros(s,"bool"),c=u.data,f=e[i],y=s.reduce((m,p)=>m*p,1);for(let m=0;m<y;m++){let p=!0;for(let d=0;d<f;d++){let A=z(m,i,d,e),g=B(A,e);if(!l[g]){p=!1;break}}c[m]=p?1:0}if(n){let m=[...e];return m[i]=1,D.fromData(c,m,"bool")}return u}function K(t,r,n=!1){let e=t.shape,o=e.length,a=t.size,l=t.data;if(r===void 0){for(let m=0;m<a;m++)if(l[m])return!0;return!1}let i=r;if(i<0&&(i=o+i),i<0||i>=o)throw new Error(`axis ${r} is out of bounds for array of dimension ${o}`);let s=Array.from(e).filter((m,p)=>p!==i);if(s.length===0)return K(t);let u=D.zeros(s,"bool"),c=u.data,f=e[i],y=s.reduce((m,p)=>m*p,1);for(let m=0;m<y;m++){let p=!1;for(let d=0;d<f;d++){let A=z(m,i,d,e),g=B(A,e);if(l[g]){p=!0;break}}c[m]=p?1:0}if(n){let m=[...e];return m[i]=1,D.fromData(c,m,"bool")}return u}function Or(t,r){let n=t.size,e=t.dtype,o=r.indexOf(-1),a;if(o!==-1){let u=r.reduce((f,y,m)=>m===o?f:f*y,1),c=n/u;if(!Number.isInteger(c))throw new Error(`cannot reshape array of size ${n} into shape ${JSON.stringify(r)}`);a=r.map((f,y)=>y===o?c:f)}else a=r;if(a.reduce((u,c)=>u*c,1)!==n)throw new Error(`cannot reshape array of size ${n} into shape ${JSON.stringify(a)}`);if(t.isCContiguous){let u=t.data;return D.fromData(u,a,e,L(a),0)}let s=t.copy().data;return D.fromData(s,a,e,L(a),0)}function rr(t){let r=t.shape,n=r.length,e=t.size,o=t.dtype,a=U(o);if(!a)throw new Error(`Cannot flatten array with dtype ${o}`);let l=new a(e),i=0,s=(u,c)=>{if(c===n){let f=t.get(...u);l[i++]=f;return}for(let f=0;f<r[c];f++)u[c]=f,s(u,c+1)};return s(new Array(n),0),D.fromData(l,[e],o,[1],0)}function F(t){let r=t.size,n=t.dtype;if(t.isCContiguous){let e=t.data;return D.fromData(e,[r],n,[1],0)}return rr(t)}function tr(t,r){let n=t.shape,e=n.length,o=t.strides,a=t.data,l=t.dtype,i;if(r===void 0)i=Array.from({length:e},(f,y)=>e-1-y);else{if(r.length!==e)throw new Error(`axes must have length ${e}, got ${r.length}`);let f=new Set;for(let y of r){let m=y<0?e+y:y;if(m<0||m>=e)throw new Error(`axis ${y} is out of bounds for array of dimension ${e}`);if(f.has(m))throw new Error("repeated axis in transpose");f.add(m)}i=r.map(y=>y<0?e+y:y)}let s=i.map(f=>n[f]),u=Array.from(o),c=i.map(f=>u[f]);return D.fromData(a,s,l,c,t.offset)}function vr(t,r){let n=t.shape,e=n.length,o=t.strides,a=t.data,l=t.dtype;if(r===void 0){let i=[],s=[];for(let u=0;u<e;u++)n[u]!==1&&(i.push(n[u]),s.push(o[u]));return i.length===0&&(i.push(1),s.push(1)),D.fromData(a,i,l,s,t.offset)}else{let i=r<0?e+r:r;if(i<0||i>=e)throw new Error(`axis ${r} is out of bounds for array of dimension ${e}`);if(n[i]!==1)throw new Error(`cannot select an axis which has size not equal to one (axis ${r} has size ${n[i]})`);let s=[],u=[];for(let c=0;c<e;c++)c!==i&&(s.push(n[c]),u.push(o[c]));return D.fromData(a,s,l,u,t.offset)}}function Mr(t,r){let n=t.shape,e=n.length,o=t.strides,a=t.data,l=t.dtype,i=r;if(i<0&&(i=e+r+1),i<0||i>e)throw new Error(`axis ${r} is out of bounds for array of dimension ${e+1}`);let s=[...Array.from(n)];s.splice(i,0,1);let u=[...Array.from(o)],c=i<e?o[i]*(n[i]||1):1;return u.splice(i,0,c),D.fromData(a,s,l,u,t.offset)}function Lt(t,r,n,e,o,a,l,i,s,u,c,f,y,m){if(f===0)for(let g=0;g<e*o;g++)y[g]=0;else if(f!==1)for(let g=0;g<e*o;g++)y[g]=(y[g]??0)*f;let p=t==="row-major",d=r==="transpose",A=n==="transpose";if(p&&!d&&!A)for(let g=0;g<e;g++)for(let h=0;h<o;h++){let S=0;for(let b=0;b<a;b++)S+=(i[g*s+b]??0)*(u[b*c+h]??0);y[g*m+h]=(y[g*m+h]??0)+l*S}else if(p&&d&&!A)for(let g=0;g<e;g++)for(let h=0;h<o;h++){let S=0;for(let b=0;b<a;b++)S+=(i[b*s+g]??0)*(u[b*c+h]??0);y[g*m+h]=(y[g*m+h]??0)+l*S}else if(p&&!d&&A)for(let g=0;g<e;g++)for(let h=0;h<o;h++){let S=0;for(let b=0;b<a;b++)S+=(i[g*s+b]??0)*(u[h*c+b]??0);y[g*m+h]=(y[g*m+h]??0)+l*S}else if(p&&d&&A)for(let g=0;g<e;g++)for(let h=0;h<o;h++){let S=0;for(let b=0;b<a;b++)S+=(i[b*s+g]??0)*(u[h*c+b]??0);y[g*m+h]=(y[g*m+h]??0)+l*S}else if(!p&&!d&&!A)for(let g=0;g<e;g++)for(let h=0;h<o;h++){let S=0;for(let b=0;b<a;b++)S+=(i[b*s+g]??0)*(u[h*c+b]??0);y[h*m+g]=(y[h*m+g]??0)+l*S}else if(!p&&d&&!A)for(let g=0;g<e;g++)for(let h=0;h<o;h++){let S=0;for(let b=0;b<a;b++)S+=(i[g*s+b]??0)*(u[h*c+b]??0);y[h*m+g]=(y[h*m+g]??0)+l*S}else if(!p&&!d&&A)for(let g=0;g<e;g++)for(let h=0;h<o;h++){let S=0;for(let b=0;b<a;b++)S+=(i[b*s+g]??0)*(u[b*c+h]??0);y[h*m+g]=(y[h*m+g]??0)+l*S}else for(let g=0;g<e;g++)for(let h=0;h<o;h++){let S=0;for(let b=0;b<a;b++)S+=(i[g*s+b]??0)*(u[b*c+h]??0);y[h*m+g]=(y[h*m+g]??0)+l*S}}function er(t,r){let n=t.ndim,e=r.ndim;if(n===0||e===0){let o=n===0?t.get():null,a=e===0?r.get():null;if(n===0&&e===0)return typeof o=="bigint"&&typeof a=="bigint"?o*a:Number(o)*Number(a);if(n===0){let l=_(t.dtype,r.dtype),i=D.zeros([...r.shape],l);for(let s=0;s<r.size;s++){let u=r.data[s+r.offset];typeof o=="bigint"&&typeof u=="bigint"?i.data[s]=o*u:i.data[s]=Number(o)*Number(u)}return i}else{let l=_(t.dtype,r.dtype),i=D.zeros([...t.shape],l);for(let s=0;s<t.size;s++){let u=t.data[s+t.offset];typeof u=="bigint"&&typeof a=="bigint"?i.data[s]=u*a:i.data[s]=Number(u)*Number(a)}return i}}if(n===1&&e===1){if(t.shape[0]!==r.shape[0])throw new Error(`dot: incompatible shapes (${t.shape[0]},) and (${r.shape[0]},)`);let o=t.shape[0],a=0;for(let l=0;l<o;l++){let i=t.get(l),s=r.get(l);typeof i=="bigint"&&typeof s=="bigint"?a=Number(a)+Number(i*s):a+=Number(i)*Number(s)}return a}if(n===2&&e===2)return nr(t,r);if(n===2&&e===1){let[o,a]=t.shape,l=r.shape[0];if(a!==l)throw new Error(`dot: incompatible shapes (${o},${a}) and (${l},)`);let i=_(t.dtype,r.dtype),s=D.zeros([o],i);for(let u=0;u<o;u++){let c=0;for(let f=0;f<a;f++){let y=t.get(u,f),m=r.get(f);typeof y=="bigint"&&typeof m=="bigint"?c=Number(c)+Number(y*m):c+=Number(y)*Number(m)}s.set([u],c)}return s}if(n===1&&e===2){let o=t.shape[0],[a,l]=r.shape;if(o!==a)throw new Error(`dot: incompatible shapes (${o},) and (${a},${l})`);let i=_(t.dtype,r.dtype),s=D.zeros([l],i);for(let u=0;u<l;u++){let c=0;for(let f=0;f<o;f++){let y=t.get(f),m=r.get(f,u);typeof y=="bigint"&&typeof m=="bigint"?c=Number(c)+Number(y*m):c+=Number(y)*Number(m)}s.set([u],c)}return s}if(n>2&&e===1){let o=t.shape[n-1],a=r.shape[0];if(o!==a)throw new Error(`dot: incompatible shapes ${JSON.stringify(t.shape)} and (${a},)`);let l=[...t.shape.slice(0,-1)],i=_(t.dtype,r.dtype),s=D.zeros(l,i),u=l.reduce((c,f)=>c*f,1);for(let c=0;c<u;c++){let f=0,y=c,m=[];for(let p=l.length-1;p>=0;p--)m[p]=y%l[p],y=Math.floor(y/l[p]);for(let p=0;p<o;p++){let d=[...m,p],A=t.get(...d),g=r.get(p);typeof A=="bigint"&&typeof g=="bigint"?f=Number(f)+Number(A*g):f+=Number(A)*Number(g)}s.set(m,f)}return s}if(n===1&&e>2){let o=t.shape[0],a=1,l=r.shape[a];if(o!==l)throw new Error(`dot: incompatible shapes (${o},) and ${JSON.stringify(r.shape)}`);let i=[...r.shape.slice(0,a),...r.shape.slice(a+1)],s=_(t.dtype,r.dtype),u=D.zeros(i,s),c=i.reduce((f,y)=>f*y,1);for(let f=0;f<c;f++){let y=f,m=[];for(let g=i.length-1;g>=0;g--)m[g]=y%i[g],y=Math.floor(y/i[g]);let p=m.slice(0,a),d=m.slice(a),A=0;for(let g=0;g<o;g++){let h=t.get(g),S=[...p,g,...d],b=r.get(...S);typeof h=="bigint"&&typeof b=="bigint"?A=Number(A)+Number(h*b):A+=Number(h)*Number(b)}u.set(m,A)}return u}if(n>=2&&e>=2&&!(n===2&&e===2)){let o=t.shape[n-1],a=r.shape[e-2];if(o!==a)throw new Error(`dot: incompatible shapes ${JSON.stringify(t.shape)} and ${JSON.stringify(r.shape)}`);let l=[...t.shape.slice(0,-1),...r.shape.slice(0,-2),r.shape[e-1]],i=_(t.dtype,r.dtype),s=D.zeros(l,i),u=t.shape.slice(0,-1).reduce((m,p)=>m*p,1),c=r.shape.slice(0,-2).reduce((m,p)=>m*p,1),f=r.shape[e-1],y=o;for(let m=0;m<u;m++)for(let p=0;p<c;p++)for(let d=0;d<f;d++){let A=0;for(let h=0;h<y;h++){let S=m*y+h,b=t.data[S+t.offset],I=p*y*f+h*f+d,w=r.data[I+r.offset];typeof b=="bigint"&&typeof w=="bigint"?A=Number(A)+Number(b*w):A+=Number(b)*Number(w)}let g=m*c*f+p*f+d;s.data[g]=A}return s}throw new Error(`dot: unexpected combination of dimensions ${n}D \xB7 ${e}D`)}function nr(t,r){if(t.ndim!==2||r.ndim!==2)throw new Error("matmul requires 2D arrays");let[n=0,e=0]=t.shape,[o=0,a=0]=r.shape;if(e!==o)throw new Error(`matmul shape mismatch: (${n},${e}) @ (${o},${a})`);let l=_(t.dtype,r.dtype),i=l.startsWith("int")||l.startsWith("uint")||l==="bool"?"float64":l;if(i!=="float64")throw new Error(`matmul currently only supports float64, got ${i}`);let s=t.dtype==="float64"?t.data:Float64Array.from(Array.from(t.data).map(Number)),u=r.dtype==="float64"?r.data:Float64Array.from(Array.from(r.data).map(Number));t.offset>0&&(s=s.subarray(t.offset)),r.offset>0&&(u=u.subarray(r.offset));let[c=0,f=0]=t.strides,[y=0,m=0]=r.strides,p=f>c,d=m>y,A=p?"transpose":"no-transpose",g=d?"transpose":"no-transpose",h,S;p?h=f:h=c,d?S=m:S=y;let b=D.zeros([n,a],"float64");return Lt("row-major",A,g,n,a,e,1,s,h,u,S,0,b.data,a),b}function Cr(t){if(t.ndim!==2)throw new Error(`trace requires 2D array, got ${t.ndim}D`);let[r=0,n=0]=t.shape,e=Math.min(r,n),o=0;for(let a=0;a<e;a++){let l=t.get(a,a);typeof l=="bigint"?o=(typeof o=="bigint"?o:BigInt(o))+l:o=(typeof o=="bigint"?Number(o):o)+l}return o}function Fr(t,r){let n=t.ndim,e=r.ndim,o=t.shape[n-1],a=r.shape[e-1];if(o!==a)throw new Error(`inner: incompatible shapes - last dimensions ${o} and ${a} don't match`);if(n===1&&e===1)return er(t,r);let l=[...t.shape.slice(0,-1),...r.shape.slice(0,-1)],i=_(t.dtype,r.dtype),s=D.zeros(l,i),u=n===1?1:t.shape.slice(0,-1).reduce((y,m)=>y*m,1),c=e===1?1:r.shape.slice(0,-1).reduce((y,m)=>y*m,1),f=o;for(let y=0;y<u;y++)for(let m=0;m<c;m++){let p=0;for(let A=0;A<f;A++){let g=n===1?A:y*f+A,h=e===1?A:m*f+A,S=t.data[g+t.offset],b=r.data[h+r.offset];typeof S=="bigint"&&typeof b=="bigint"?p=Number(p)+Number(S*b):p+=Number(S)*Number(b)}if(l.length===0)return p;let d=u===1?m:y*c+m;s.data[d]=p}return s}function kr(t,r){let n=t.ndim===1?t:F(t),e=r.ndim===1?r:F(r),o=n.size,a=e.size,l=_(t.dtype,r.dtype),i=D.zeros([o,a],l);for(let s=0;s<o;s++)for(let u=0;u<a;u++){let c=n.get(s),f=e.get(u),y;typeof c=="bigint"&&typeof f=="bigint"?y=c*f:y=Number(c)*Number(f),i.set([s,u],y)}return i}function qr(t,r,n){let e,o;if(typeof n=="number"){let y=n;if(y<0)throw new Error("tensordot: axes must be non-negative");if(y>t.ndim||y>r.ndim)throw new Error("tensordot: axes exceeds array dimensions");e=Array.from({length:y},(m,p)=>t.ndim-y+p),o=Array.from({length:y},(m,p)=>p)}else if([e,o]=n,e.length!==o.length)throw new Error("tensordot: axes lists must have same length");for(let y=0;y<e.length;y++){let m=e[y],p=o[y];if(m<0||m>=t.ndim||p<0||p>=r.ndim)throw new Error("tensordot: axis out of bounds");if(t.shape[m]!==r.shape[p])throw new Error(`tensordot: shape mismatch on axes ${m} and ${p}: ${t.shape[m]} != ${r.shape[p]}`)}let a=[],l=[];for(let y=0;y<t.ndim;y++)e.includes(y)||a.push(y);for(let y=0;y<r.ndim;y++)o.includes(y)||l.push(y);let i=[...a.map(y=>t.shape[y]),...l.map(y=>r.shape[y])];if(i.length===0){let y=0,m=e.map(p=>t.shape[p]).reduce((p,d)=>p*d,1);for(let p=0;p<m;p++){let d=p,A=new Array(e.length);for(let I=e.length-1;I>=0;I--){let w=e[I];A[I]=d%t.shape[w],d=Math.floor(d/t.shape[w])}let g=new Array(t.ndim),h=new Array(r.ndim);for(let I=0;I<e.length;I++)g[e[I]]=A[I];for(let I=0;I<o.length;I++)h[o[I]]=A[I];let S=t.get(...g),b=r.get(...h);typeof S=="bigint"&&typeof b=="bigint"?y=Number(y)+Number(S*b):y+=Number(S)*Number(b)}return y}let s=_(t.dtype,r.dtype),u=D.zeros(i,s),c=i.reduce((y,m)=>y*m,1),f=e.map(y=>t.shape[y]).reduce((y,m)=>y*m,1);for(let y=0;y<c;y++){let m=y,p=[];for(let h=i.length-1;h>=0;h--)p[h]=m%i[h],m=Math.floor(m/i[h]);let d=p.slice(0,a.length),A=p.slice(a.length),g=0;for(let h=0;h<f;h++){m=h;let S=[];for(let N=e.length-1;N>=0;N--){let ur=e[N];S[N]=m%t.shape[ur],m=Math.floor(m/t.shape[ur])}let b=new Array(t.ndim),I=new Array(r.ndim);for(let N=0;N<a.length;N++)b[a[N]]=d[N];for(let N=0;N<l.length;N++)I[l[N]]=A[N];for(let N=0;N<e.length;N++)b[e[N]]=S[N],I[o[N]]=S[N];let w=t.get(...b),$=r.get(...I);typeof w=="bigint"&&typeof $=="bigint"?g=Number(g)+Number(w*$):g+=Number(w)*Number($)}u.set(p,g)}return u}function jr(t){return pr(t,Math.sqrt,!1)}function Lr(t,r){return typeof r=="number"?Wt(t,r):O(t,r,Math.pow,"power")}function Wt(t,r){let n=t.dtype,e=Array.from(t.shape),o=t.data,a=t.size,s=n!=="float32"&&n!=="float64"&&(r<0||!Number.isInteger(r))?"float64":n,u=D.zeros(e,s),c=u.data;if(x(n))if(x(s)&&Number.isInteger(r)&&r>=0){let f=o,y=c;for(let m=0;m<a;m++)y[m]=f[m]**BigInt(r)}else for(let f=0;f<a;f++)c[f]=Math.pow(Number(o[f]),r);else for(let f=0;f<a;f++)c[f]=Math.pow(Number(o[f]),r);return u}var E=class t{constructor(r,n){this._storage=r,this._base=n}get storage(){return this._storage}static _fromStorage(r,n){return new t(r,n)}get shape(){return this._storage.shape}get ndim(){return this._storage.ndim}get size(){return this._storage.size}get dtype(){return this._storage.dtype}get data(){return this._storage.data}get strides(){return this._storage.strides}get flags(){return{C_CONTIGUOUS:this._storage.isCContiguous,F_CONTIGUOUS:this._storage.isFContiguous,OWNDATA:this._base===void 0}}get base(){return this._base??null}get(r){if(r.length!==this.ndim)throw new Error(`Index has ${r.length} dimensions, but array has ${this.ndim} dimensions`);let n=r.map((e,o)=>{let a=e;if(a<0&&(a=this.shape[o]+a),a<0||a>=this.shape[o])throw new Error(`Index ${e} is out of bounds for axis ${o} with size ${this.shape[o]}`);return a});return this._storage.get(...n)}set(r,n){if(r.length!==this.ndim)throw new Error(`Index has ${r.length} dimensions, but array has ${this.ndim} dimensions`);let e=r.map((l,i)=>{let s=l;if(s<0&&(s=this.shape[i]+s),s<0||s>=this.shape[i])throw new Error(`Index ${l} is out of bounds for axis ${i} with size ${this.shape[i]}`);return s}),o=this.dtype,a;x(o)?a=typeof n=="bigint"?n:BigInt(Math.round(n)):o==="bool"?a=n?1:0:a=Number(n),this._storage.set(e,a)}copy(){return new t(this._storage.copy())}astype(r,n=!0){let e=this.dtype;if(e===r&&!n)return this;if(e===r&&n)return this.copy();let o=Array.from(this.shape),a=this.size,l=U(r);if(!l)throw new Error(`Cannot convert to dtype ${r}`);let i=new l(a),s=this.data;if(x(e)&&!x(r)){let c=s;if(r==="bool")for(let f=0;f<a;f++)i[f]=c[f]!==BigInt(0)?1:0;else for(let f=0;f<a;f++)i[f]=Number(c[f])}else if(!x(e)&&x(r)){let c=s;for(let f=0;f<a;f++)i[f]=BigInt(Math.round(Number(c[f])))}else if(r==="bool"){let c=s;for(let f=0;f<a;f++)i[f]=c[f]!==0?1:0}else if(e==="bool"&&!x(r)){let c=s;for(let f=0;f<a;f++)i[f]=c[f]}else if(!x(e)&&!x(r)){let c=s;for(let f=0;f<a;f++)i[f]=c[f]}else{let c=s;for(let f=0;f<a;f++)i[f]=c[f]}let u=D.fromData(i,o,r);return new t(u)}add(r){let n=typeof r=="number"?r:r._storage,e=mr(this._storage,n);return t._fromStorage(e)}subtract(r){let n=typeof r=="number"?r:r._storage,e=dr(this._storage,n);return t._fromStorage(e)}multiply(r){let n=typeof r=="number"?r:r._storage,e=gr(this._storage,n);return t._fromStorage(e)}divide(r){let n=typeof r=="number"?r:r._storage,e=hr(this._storage,n);return t._fromStorage(e)}mod(r){let n=typeof r=="number"?r:r._storage,e=Dr(this._storage,n);return t._fromStorage(e)}floor_divide(r){let n=typeof r=="number"?r:r._storage,e=xr(this._storage,n);return t._fromStorage(e)}positive(){let r=Ir(this._storage);return t._fromStorage(r)}reciprocal(){let r=wr(this._storage);return t._fromStorage(r)}sqrt(){let r=jr(this._storage);return t._fromStorage(r)}power(r){let n=typeof r=="number"?r:r._storage,e=Lr(this._storage,n);return t._fromStorage(e)}absolute(){let r=Ar(this._storage);return t._fromStorage(r)}negative(){let r=br(this._storage);return t._fromStorage(r)}sign(){let r=Sr(this._storage);return t._fromStorage(r)}greater(r){let n=typeof r=="number"?r:r._storage,e=Nr(this._storage,n);return t._fromStorage(e)}greater_equal(r){let n=typeof r=="number"?r:r._storage,e=Br(this._storage,n);return t._fromStorage(e)}less(r){let n=typeof r=="number"?r:r._storage,e=zr(this._storage,n);return t._fromStorage(e)}less_equal(r){let n=typeof r=="number"?r:r._storage,e=_r(this._storage,n);return t._fromStorage(e)}equal(r){let n=typeof r=="number"?r:r._storage,e=Tr(this._storage,n);return t._fromStorage(e)}not_equal(r){let n=typeof r=="number"?r:r._storage,e=Ur(this._storage,n);return t._fromStorage(e)}isclose(r,n=1e-5,e=1e-8){let o=typeof r=="number"?r:r._storage,a=W(this._storage,o,n,e);return t._fromStorage(a)}allclose(r,n=1e-5,e=1e-8){let o=typeof r=="number"?r:r._storage;return Er(this._storage,o,n,e)}sum(r,n=!1){let e=C(this._storage,r,n);return typeof e=="number"?e:t._fromStorage(e)}mean(r,n=!1){let e=J(this._storage,r,n);return typeof e=="number"?e:t._fromStorage(e)}max(r,n=!1){let e=P(this._storage,r,n);return typeof e=="number"?e:t._fromStorage(e)}min(r,n=!1){let e=H(this._storage,r,n);return typeof e=="number"?e:t._fromStorage(e)}prod(r,n=!1){let e=G(this._storage,r,n);return typeof e=="number"?e:t._fromStorage(e)}argmin(r){let n=Y(this._storage,r);return typeof n=="number"?n:t._fromStorage(n)}argmax(r){let n=Q(this._storage,r);return typeof n=="number"?n:t._fromStorage(n)}var(r,n=0,e=!1){let o=X(this._storage,r,n,e);return typeof o=="number"?o:t._fromStorage(o)}std(r,n=0,e=!1){let o=$r(this._storage,r,n,e);return typeof o=="number"?o:t._fromStorage(o)}all(r,n=!1){let e=Z(this._storage,r,n);return typeof e=="boolean"?e:t._fromStorage(e)}any(r,n=!1){let e=K(this._storage,r,n);return typeof e=="boolean"?e:t._fromStorage(e)}reshape(...r){let n=r.length===1&&Array.isArray(r[0])?r[0]:r,e=Or(this._storage,n),a=e.data===this.data?this._base??this:void 0;return t._fromStorage(e,a)}flatten(){let r=rr(this._storage);return t._fromStorage(r)}ravel(){let r=F(this._storage),e=r.data===this.data?this._base??this:void 0;return t._fromStorage(r,e)}transpose(r){let n=tr(this._storage,r),e=this._base??this;return t._fromStorage(n,e)}squeeze(r){let n=vr(this._storage,r),e=this._base??this;return t._fromStorage(n,e)}expand_dims(r){let n=Mr(this._storage,r),e=this._base??this;return t._fromStorage(n,e)}matmul(r){let n=nr(this._storage,r._storage);return t._fromStorage(n)}dot(r){let n=er(this._storage,r._storage);return typeof n=="number"||typeof n=="bigint"?n:t._fromStorage(n)}trace(){return Cr(this._storage)}inner(r){let n=Fr(this._storage,r._storage);return typeof n=="number"||typeof n=="bigint"?n:t._fromStorage(n)}outer(r){let n=kr(this._storage,r._storage);return t._fromStorage(n)}tensordot(r,n=2){let e=qr(this._storage,r._storage,n);return typeof e=="number"||typeof e=="bigint"?e:t._fromStorage(e)}slice(...r){if(r.length===0)return this;if(r.length>this.ndim)throw new Error(`Too many indices for array: array is ${this.ndim}-dimensional, but ${r.length} were indexed`);let n=r.map((s,u)=>{let c=lr(s);return fr(c,this.shape[u])});for(;n.length<this.ndim;)n.push({start:0,stop:this.shape[n.length],step:1,isIndex:!1});let e=[],o=[],a=this._storage.offset;for(let s=0;s<n.length;s++){let u=n[s],c=this._storage.strides[s];if(a+=u.start*c,!u.isIndex){let f;u.step>0?f=Math.max(0,Math.ceil((u.stop-u.start)/u.step)):f=Math.max(0,Math.ceil((u.start-u.stop)/Math.abs(u.step))),e.push(f),o.push(c*u.step)}}let l=D.fromData(this._storage.data,e,this._storage.dtype,o,a),i=this._base??this;return new t(l,i)}row(r){if(this.ndim<2)throw new Error("row() requires at least 2 dimensions");return this.slice(String(r),":")}col(r){if(this.ndim<2)throw new Error("col() requires at least 2 dimensions");return this.slice(":",String(r))}rows(r,n){if(this.ndim<2)throw new Error("rows() requires at least 2 dimensions");return this.slice(`${r}:${n}`,":")}cols(r,n){if(this.ndim<2)throw new Error("cols() requires at least 2 dimensions");return this.slice(":",`${r}:${n}`)}toString(){return`NDArray(shape=${JSON.stringify(this.shape)}, dtype=${this.dtype})`}toArray(){if(this.ndim===0)return this._storage.iget(0);let r=this.shape,n=r.length,e=(o,a)=>{if(a===n)return this._storage.get(...o);let l=[];for(let i=0;i<r[a];i++)o[a]=i,l.push(e(o,a+1));return l};return e(new Array(n),0)}};function k(t,r=T){let n=D.zeros(t,r);return new E(n)}function or(t,r=T){let n=D.ones(t,r);return new E(n)}function Pt(t){let r=[],n=t;for(;Array.isArray(n);)r.push(n.length),n=n[0];return r}function Rr(t){return typeof t=="bigint"?!0:Array.isArray(t)?t.some(r=>Rr(r)):!1}function Gt(t){let r=[];function n(e){Array.isArray(e)?e.forEach(o=>n(o)):r.push(e)}return n(t),r}function v(t,r){if(t instanceof E)return!r||t.dtype===r?t.copy():t.astype(r);let n=Rr(t),e=Pt(t),o=e.reduce((c,f)=>c*f,1),a=r;a||(n?a="int64":a=T);let l=U(a);if(!l)throw new Error(`Cannot create array with dtype ${a}`);let i=new l(o),s=Gt(t);if(x(a)){let c=i;for(let f=0;f<o;f++){let y=s[f];c[f]=typeof y=="bigint"?y:BigInt(Math.round(Number(y)))}}else if(a==="bool"){let c=i;for(let f=0;f<o;f++)c[f]=s[f]?1:0}else{let c=i;for(let f=0;f<o;f++){let y=s[f];c[f]=Number(y)}}let u=D.fromData(i,e,a);return new E(u)}function Wr(t,r,n=1,e=T){let o=t,a=r;if(r===void 0&&(o=0,a=t),a===void 0)throw new Error("stop is required");let l=Math.max(0,Math.ceil((a-o)/n)),i=U(e);if(!i)throw new Error(`Cannot create arange array with dtype ${e}`);let s=new i(l);if(x(e))for(let c=0;c<l;c++)s[c]=BigInt(Math.round(o+c*n));else if(e==="bool")for(let c=0;c<l;c++)s[c]=o+c*n!==0?1:0;else for(let c=0;c<l;c++)s[c]=o+c*n;let u=D.fromData(s,[l],e);return new E(u)}function Jr(t,r,n=50,e=T){if(n<0)throw new Error("num must be non-negative");if(n===0)return v([],e);if(n===1)return v([t],e);let o=U(e);if(!o)throw new Error(`Cannot create linspace array with dtype ${e}`);let a=new o(n),l=(r-t)/(n-1);if(x(e))for(let s=0;s<n;s++)a[s]=BigInt(Math.round(t+s*l));else if(e==="bool")for(let s=0;s<n;s++)a[s]=t+s*l!==0?1:0;else for(let s=0;s<n;s++)a[s]=t+s*l;let i=D.fromData(a,[n],e);return new E(i)}function Pr(t,r,n=50,e=10,o=T){if(n<0)throw new Error("num must be non-negative");if(n===0)return v([],o);if(n===1)return v([Math.pow(e,t)],o);let a=U(o);if(!a)throw new Error(`Cannot create logspace array with dtype ${o}`);let l=new a(n),i=(r-t)/(n-1);if(x(o))for(let u=0;u<n;u++){let c=t+u*i;l[u]=BigInt(Math.round(Math.pow(e,c)))}else if(o==="bool")for(let u=0;u<n;u++){let c=t+u*i;l[u]=Math.pow(e,c)!==0?1:0}else for(let u=0;u<n;u++){let c=t+u*i;l[u]=Math.pow(e,c)}let s=D.fromData(l,[n],o);return new E(s)}function Gr(t,r,n=50,e=T){if(n<0)throw new Error("num must be non-negative");if(t===0||r===0)throw new Error("Geometric sequence cannot include zero");if(n===0)return v([],e);if(n===1)return v([t],e);let o=Math.sign(t),a=Math.sign(r);if(o!==a)throw new Error("Geometric sequence cannot contain both positive and negative values");let l=U(e);if(!l)throw new Error(`Cannot create geomspace array with dtype ${e}`);let i=new l(n),s=Math.log(Math.abs(t)),c=(Math.log(Math.abs(r))-s)/(n-1);if(x(e))for(let y=0;y<n;y++){let m=o*Math.exp(s+y*c);i[y]=BigInt(Math.round(m))}else if(e==="bool")for(let y=0;y<n;y++){let m=o*Math.exp(s+y*c);i[y]=m!==0?1:0}else for(let y=0;y<n;y++){let m=o*Math.exp(s+y*c);i[y]=m}let f=D.fromData(i,[n],e);return new E(f)}function sr(t,r,n=0,e=T){let o=r??t,a=k([t,o],e),l=a.data;if(x(e)){let i=l;for(let s=0;s<t;s++){let u=s+n;u>=0&&u<o&&(i[s*o+u]=BigInt(1))}}else{let i=l;for(let s=0;s<t;s++){let u=s+n;u>=0&&u<o&&(i[s*o+u]=1)}}return a}function ar(t,r=T){return k(t,r)}function ir(t,r,n){let e=n;e||(typeof r=="bigint"?e="int64":typeof r=="boolean"?e="bool":Number.isInteger(r)?e="int32":e=T);let o=U(e);if(!o)throw new Error(`Cannot create full array with dtype ${e}`);let a=t.reduce((s,u)=>s*u,1),l=new o(a);if(x(e)){let s=typeof r=="bigint"?r:BigInt(Math.round(Number(r)));l.fill(s)}else e==="bool"?l.fill(r?1:0):l.fill(Number(r));let i=D.fromData(l,t,e);return new E(i)}function Hr(t,r=T){return sr(t,t,0,r)}function Yr(t,r){return t instanceof E?!r||t.dtype===r?t:t.astype(r):v(t,r)}function Qr(t){return t.copy()}function Xr(t,r){return k(Array.from(t.shape),r??t.dtype)}function Zr(t,r){return or(Array.from(t.shape),r??t.dtype)}function Kr(t,r){return ar(Array.from(t.shape),r??t.dtype)}function rt(t,r,n){return ir(Array.from(t.shape),r,n??t.dtype)}function tt(t){return t.sqrt()}function et(t,r){return t.power(r)}function nt(t){return t.absolute()}function ot(t){return t.negative()}function st(t){return t.sign()}function at(t,r){return t.mod(r)}function it(t,r){return t.floor_divide(r)}function ut(t){return t.positive()}function lt(t){return t.reciprocal()}function ft(t,r){return t.dot(r)}function ct(t){return t.trace()}function yt(t,r){return t.transpose(r)}function pt(t,r){return t.inner(r)}function mt(t,r){return t.outer(r)}function dt(t,r,n=2){return t.tensordot(r,n)}var Ht="0.4.0";return Dt(Yt);})();
|
|
1365
2
|
//# sourceMappingURL=numpy-ts.browser.js.map
|