=64?(this.block=k[16],this.start=D-64,this.hash(),this.hashed=!0):this.start=D}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},w.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var E=this.blocks,x=this.lastByteIndex;E[16]=this.block,E[x>>>2]|=_[x&3],this.block=E[16],x>=56&&(this.hashed||this.hash(),E[0]=this.block,E[16]=E[1]=E[2]=E[3]=E[4]=E[5]=E[6]=E[7]=E[8]=E[9]=E[10]=E[11]=E[12]=E[13]=E[14]=E[15]=0),E[14]=this.hBytes<<3|this.bytes>>>29,E[15]=this.bytes<<3,this.hash()}},w.prototype.hash=function(){var E=this.h0,x=this.h1,A=this.h2,L=this.h3,C=this.h4,D=this.h5,P=this.h6,k=this.h7,M=this.blocks,I,Q,ee,ce,Y,Ie,we,ke,ei,Mr,fr;for(I=16;I<64;++I)Y=M[I-15],Q=(Y>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3,Y=M[I-2],ee=(Y>>>17|Y<<15)^(Y>>>19|Y<<13)^Y>>>10,M[I]=M[I-16]+Q+M[I-7]+ee<<0;for(fr=x&A,I=0;I<64;I+=4)this.first?(this.is224?(ke=300032,Y=M[0]-1413257819,k=Y-150054599<<0,L=Y+24177077<<0):(ke=704751109,Y=M[0]-210244248,k=Y-1521486534<<0,L=Y+143694565<<0),this.first=!1):(Q=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),ee=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),ke=E&x,ce=ke^E&A^fr,we=C&D^~C&P,Y=k+ee+we+f[I]+M[I],Ie=Q+ce,k=L+Y<<0,L=Y+Ie<<0),Q=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),ee=(k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7),ei=L&E,ce=ei^L&x^ke,we=k&C^~k&D,Y=P+ee+we+f[I+1]+M[I+1],Ie=Q+ce,P=A+Y<<0,A=Y+Ie<<0,Q=(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10),ee=(P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7),Mr=A&L,ce=Mr^A&E^ei,we=P&k^~P&C,Y=D+ee+we+f[I+2]+M[I+2],Ie=Q+ce,D=x+Y<<0,x=Y+Ie<<0,Q=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),ee=(D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7),fr=x&A,ce=fr^x&L^Mr,we=D&P^~D&k,Y=C+ee+we+f[I+3]+M[I+3],Ie=Q+ce,C=E+Y<<0,E=Y+Ie<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+E<<0,this.h1=this.h1+x<<0,this.h2=this.h2+A<<0,this.h3=this.h3+L<<0,this.h4=this.h4+C<<0,this.h5=this.h5+D<<0,this.h6=this.h6+P<<0,this.h7=this.h7+k<<0},w.prototype.hex=function(){this.finalize();var E=this.h0,x=this.h1,A=this.h2,L=this.h3,C=this.h4,D=this.h5,P=this.h6,k=this.h7,M=u[E>>>28&15]+u[E>>>24&15]+u[E>>>20&15]+u[E>>>16&15]+u[E>>>12&15]+u[E>>>8&15]+u[E>>>4&15]+u[E&15]+u[x>>>28&15]+u[x>>>24&15]+u[x>>>20&15]+u[x>>>16&15]+u[x>>>12&15]+u[x>>>8&15]+u[x>>>4&15]+u[x&15]+u[A>>>28&15]+u[A>>>24&15]+u[A>>>20&15]+u[A>>>16&15]+u[A>>>12&15]+u[A>>>8&15]+u[A>>>4&15]+u[A&15]+u[L>>>28&15]+u[L>>>24&15]+u[L>>>20&15]+u[L>>>16&15]+u[L>>>12&15]+u[L>>>8&15]+u[L>>>4&15]+u[L&15]+u[C>>>28&15]+u[C>>>24&15]+u[C>>>20&15]+u[C>>>16&15]+u[C>>>12&15]+u[C>>>8&15]+u[C>>>4&15]+u[C&15]+u[D>>>28&15]+u[D>>>24&15]+u[D>>>20&15]+u[D>>>16&15]+u[D>>>12&15]+u[D>>>8&15]+u[D>>>4&15]+u[D&15]+u[P>>>28&15]+u[P>>>24&15]+u[P>>>20&15]+u[P>>>16&15]+u[P>>>12&15]+u[P>>>8&15]+u[P>>>4&15]+u[P&15];return this.is224||(M+=u[k>>>28&15]+u[k>>>24&15]+u[k>>>20&15]+u[k>>>16&15]+u[k>>>12&15]+u[k>>>8&15]+u[k>>>4&15]+u[k&15]),M},w.prototype.toString=w.prototype.hex,w.prototype.digest=function(){this.finalize();var E=this.h0,x=this.h1,A=this.h2,L=this.h3,C=this.h4,D=this.h5,P=this.h6,k=this.h7,M=[E>>>24&255,E>>>16&255,E>>>8&255,E&255,x>>>24&255,x>>>16&255,x>>>8&255,x&255,A>>>24&255,A>>>16&255,A>>>8&255,A&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,C>>>24&255,C>>>16&255,C>>>8&255,C&255,D>>>24&255,D>>>16&255,D>>>8&255,D&255,P>>>24&255,P>>>16&255,P>>>8&255,P&255];return this.is224||M.push(k>>>24&255,k>>>16&255,k>>>8&255,k&255),M},w.prototype.array=w.prototype.digest,w.prototype.arrayBuffer=function(){this.finalize();var E=new ArrayBuffer(this.is224?28:32),x=new DataView(E);return x.setUint32(0,this.h0),x.setUint32(4,this.h1),x.setUint32(8,this.h2),x.setUint32(12,this.h3),x.setUint32(16,this.h4),x.setUint32(20,this.h5),x.setUint32(24,this.h6),this.is224||x.setUint32(28,this.h7),E};function T(E,x,A){var L,C=typeof E;if(C==="string"){var D=[],P=E.length,k=0,M;for(L=0;L>>6,D[k++]=128|M&63):M<55296||M>=57344?(D[k++]=224|M>>>12,D[k++]=128|M>>>6&63,D[k++]=128|M&63):(M=65536+((M&1023)<<10|E.charCodeAt(++L)&1023),D[k++]=240|M>>>18,D[k++]=128|M>>>12&63,D[k++]=128|M>>>6&63,D[k++]=128|M&63);E=D}else if(C==="object"){if(E===null)throw new Error(c);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(c)}else throw new Error(c);E.length>64&&(E=new w(x,!0).update(E).array());var I=[],Q=[];for(L=0;L<64;++L){var ee=E[L]||0;I[L]=92^ee,Q[L]=54^ee}w.call(this,x,A),this.update(Q),this.oKeyPad=I,this.inner=!0,this.sharedMemory=A}T.prototype=new w,T.prototype.finalize=function(){if(w.prototype.finalize.call(this),this.inner){this.inner=!1;var E=this.array();w.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(E),w.prototype.finalize.call(this)}};var F=g();F.sha256=F,F.sha224=g(!0),F.sha256.hmac=S(),F.sha224.hmac=S(!0),a?va.exports=F:(t.sha256=F.sha256,t.sha224=F.sha224,o&&define(function(){return F}))})()});var Fd={};mr(Fd,{registerWorker:()=>$l});function jo(c,e){var t={};for(var r in c)Object.prototype.hasOwnProperty.call(c,r)&&e.indexOf(r)<0&&(t[r]=c[r]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(c);n=c.length&&(c=void 0),{value:c&&c[r++],done:!c}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function re(c){return this instanceof re?(this.v=c,this):new re(c)}function Ye(c,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(c,e||[]),n,a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(p){r[p]&&(n[p]=function(m){return new Promise(function(h,g){a.push([p,m,h,g])>1||l(p,m)})})}function l(p,m){try{u(r[p](m))}catch(h){f(a[0][3],h)}}function u(p){p.value instanceof re?Promise.resolve(p.value.v).then(_,d):f(a[0][2],p)}function _(p){l("next",p)}function d(p){l("throw",p)}function f(p,m){p(m),a.shift(),a.length&&l(a[0][0],a[0][1])}}function ti(c){var e,t;return e={},r("next"),r("throw",function(n){throw n}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(n,a){e[n]=c[n]?function(o){return(t=!t)?{value:re(c[n](o)),done:!1}:a?a(o):o}:a}}function ut(c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=c[Symbol.asyncIterator],t;return e?e.call(c):(c=typeof Ro=="function"?Ro(c):c[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(a){t[a]=c[a]&&function(o){return new Promise(function(l,u){o=c[a](o),n(l,u,o.done,o.value)})}}function n(a,o,l,u){Promise.resolve(u).then(function(_){a({value:_,done:l})},o)}}var La={};mr(La,{compareArrayLike:()=>Aa,joinUint8Arrays:()=>Je,memcpy:()=>Pi,rebaseValueOffsets:()=>Un,toArrayBufferView:()=>ie,toArrayBufferViewAsyncIterator:()=>ft,toArrayBufferViewIterator:()=>Ct,toBigInt64Array:()=>jn,toBigUint64Array:()=>lu,toFloat32Array:()=>uu,toFloat32ArrayAsyncIterator:()=>Du,toFloat32ArrayIterator:()=>vu,toFloat64Array:()=>_u,toFloat64ArrayAsyncIterator:()=>ku,toFloat64ArrayIterator:()=>yu,toInt16Array:()=>au,toInt16ArrayAsyncIterator:()=>wu,toInt16ArrayIterator:()=>pu,toInt32Array:()=>Ir,toInt32ArrayAsyncIterator:()=>Eu,toInt32ArrayIterator:()=>mu,toInt8Array:()=>su,toInt8ArrayAsyncIterator:()=>Su,toInt8ArrayIterator:()=>fu,toUint16Array:()=>ou,toUint16ArrayAsyncIterator:()=>Au,toUint16ArrayIterator:()=>hu,toUint32Array:()=>cu,toUint32ArrayAsyncIterator:()=>Lu,toUint32ArrayIterator:()=>gu,toUint8Array:()=>z,toUint8ArrayAsyncIterator:()=>Ea,toUint8ArrayIterator:()=>wa,toUint8ClampedArray:()=>du,toUint8ClampedArrayAsyncIterator:()=>Tu,toUint8ClampedArrayIterator:()=>bu});var tu=new TextDecoder("utf-8"),Ci=c=>tu.decode(c),ru=new TextEncoder,xt=c=>ru.encode(c);var iu=c=>typeof c=="number",Uo=c=>typeof c=="boolean",xe=c=>typeof c=="function",Oe=c=>c!=null&&Object(c)===c,_t=c=>Oe(c)&&xe(c.then);var dt=c=>Oe(c)&&xe(c[Symbol.iterator]),it=c=>Oe(c)&&xe(c[Symbol.asyncIterator]),Cn=c=>Oe(c)&&Oe(c.schema);var Mn=c=>Oe(c)&&"done"in c&&"value"in c;var Pn=c=>Oe(c)&&xe(c.stat)&&iu(c.fd);var In=c=>Oe(c)&&Mi(c.body),Bn=c=>"_getDOMStream"in c&&"_getNodeStream"in c,Go=c=>Oe(c)&&xe(c.abort)&&xe(c.getWriter)&&!Bn(c),Mi=c=>Oe(c)&&xe(c.cancel)&&xe(c.getReader)&&!Bn(c),Oo=c=>Oe(c)&&xe(c.end)&&xe(c.write)&&Uo(c.writable)&&!Bn(c),Rn=c=>Oe(c)&&xe(c.read)&&xe(c.pipe)&&Uo(c.readable)&&!Bn(c),Ho=c=>Oe(c)&&xe(c.clear)&&xe(c.bytes)&&xe(c.position)&&xe(c.setPosition)&&xe(c.capacity)&&xe(c.getBufferIdentifier)&&xe(c.createLong);var Sa=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function nu(c){let e=c[0]?[c[0]]:[],t,r,n,a;for(let o,l,u=0,_=0,d=c.length;++ud+f.byteLength,0),n,a,o,l=0,u=-1,_=Math.min(e||Number.POSITIVE_INFINITY,r);for(let d=t.length;++uie(Int8Array,c),au=c=>ie(Int16Array,c),Ir=c=>ie(Int32Array,c),jn=c=>ie(BigInt64Array,c),z=c=>ie(Uint8Array,c),ou=c=>ie(Uint16Array,c),cu=c=>ie(Uint32Array,c),lu=c=>ie(BigUint64Array,c),uu=c=>ie(Float32Array,c),_u=c=>ie(Float64Array,c),du=c=>ie(Uint8ClampedArray,c),ba=c=>(c.next(),c);function*Ct(c,e){let t=function*(n){yield n},r=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Sa?t(e):dt(e)?e:t(e);return yield*Pr(ba(function*(n){let a=null;do a=n.next(yield ie(c,a));while(!a.done)}(r[Symbol.iterator]()))),new c}var fu=c=>Ct(Int8Array,c),pu=c=>Ct(Int16Array,c),mu=c=>Ct(Int32Array,c),wa=c=>Ct(Uint8Array,c),hu=c=>Ct(Uint16Array,c),gu=c=>Ct(Uint32Array,c),vu=c=>Ct(Float32Array,c),yu=c=>Ct(Float64Array,c),bu=c=>Ct(Uint8ClampedArray,c);function ft(c,e){return Ye(this,arguments,function*(){if(_t(e))return yield re(yield re(yield*Pr(ti(ut(ft(c,yield re(e)))))));let r=function(o){return Ye(this,arguments,function*(){yield yield re(yield re(o))})},n=function(o){return Ye(this,arguments,function*(){yield re(yield*Pr(ti(ut(ba(function*(l){let u=null;do u=l.next(yield u==null?void 0:u.value);while(!u.done)}(o[Symbol.iterator]()))))))})},a=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Sa?r(e):dt(e)?n(e):it(e)?e:r(e);return yield re(yield*Pr(ti(ut(ba(function(o){return Ye(this,arguments,function*(){let l=null;do l=yield re(o.next(yield yield re(ie(c,l))));while(!l.done)})}(a[Symbol.asyncIterator]())))))),yield re(new c)})}var Su=c=>ft(Int8Array,c),wu=c=>ft(Int16Array,c),Eu=c=>ft(Int32Array,c),Ea=c=>ft(Uint8Array,c),Au=c=>ft(Uint16Array,c),Lu=c=>ft(Uint32Array,c),Du=c=>ft(Float32Array,c),ku=c=>ft(Float64Array,c),Tu=c=>ft(Uint8ClampedArray,c);function Un(c,e,t){if(c!==0){t=t.slice(0,e);for(let r=-1,n=t.length;++r0)do if(c[t]!==e[t])return!1;while(++t(c.next(),c);function*Fu(c){let e,t=!1,r=[],n,a,o,l=0;function u(){return a==="peek"?Je(r,o)[0]:([n,r,l]=Je(r,o),n)}({cmd:a,size:o}=(yield null)||{cmd:"read",size:0});let _=wa(c)[Symbol.iterator]();try{do if({done:e,value:n}=Number.isNaN(o-l)?_.next():_.next(o-l),!e&&n.byteLength>0&&(r.push(n),l+=n.byteLength),e||o<=l)do({cmd:a,size:o}=yield u());while(o0&&(n.push(a),u+=a.byteLength),t||l<=u)do({cmd:o,size:l}=yield yield re(_()));while(l0&&(n.push(z(a)),u+=a.byteLength),t||l<=u)do({cmd:o,size:l}=yield yield re(_()));while(l{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return B(this,void 0,void 0,function*(){let{reader:t,source:r}=this;t&&(yield t.cancel(e).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(e){return B(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};let t=yield this.reader.read();return!t.done&&(t.value=z(t)),t})}},Da=(c,e)=>{let t=n=>r([e,n]),r;return[e,t,new Promise(n=>(r=n)&&c.once(e,t))]};function Mu(c){return Ye(this,arguments,function*(){let t=[],r="error",n=!1,a=null,o,l,u=0,_=[],d;function f(){return o==="peek"?Je(_,l)[0]:([d,_,u]=Je(_,l),d)}if({cmd:o,size:l}=(yield yield re(null))||{cmd:"read",size:0},c.isTTY)return yield yield re(new Uint8Array(0)),yield re(null);try{t[0]=Da(c,"end"),t[1]=Da(c,"error");do{if(t[2]=Da(c,"readable"),[r,a]=yield re(Promise.race(t.map(m=>m[2]))),r==="error")break;if((n=r==="end")||(Number.isFinite(l-u)?(d=z(c.read(l-u)),d.byteLength0&&(_.push(d),u+=d.byteLength)),n||l<=u)do({cmd:o,size:l}=yield yield re(f()));while(l{for(let[y,S]of m)c.off(y,S);try{let y=c.destroy;y&&y.call(c,h),h=void 0}catch(y){h=y||h}finally{h!=null?v(h):g()}})}})}var ue;(function(c){c[c.V1=0]="V1",c[c.V2=1]="V2",c[c.V3=2]="V3",c[c.V4=3]="V4",c[c.V5=4]="V5"})(ue||(ue={}));var he;(function(c){c[c.Sparse=0]="Sparse",c[c.Dense=1]="Dense"})(he||(he={}));var pe;(function(c){c[c.HALF=0]="HALF",c[c.SINGLE=1]="SINGLE",c[c.DOUBLE=2]="DOUBLE"})(pe||(pe={}));var Le;(function(c){c[c.DAY=0]="DAY",c[c.MILLISECOND=1]="MILLISECOND"})(Le||(Le={}));var j;(function(c){c[c.SECOND=0]="SECOND",c[c.MILLISECOND=1]="MILLISECOND",c[c.MICROSECOND=2]="MICROSECOND",c[c.NANOSECOND=3]="NANOSECOND"})(j||(j={}));var Ce;(function(c){c[c.YEAR_MONTH=0]="YEAR_MONTH",c[c.DAY_TIME=1]="DAY_TIME",c[c.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Ce||(Ce={}));var Mt=new Int32Array(2),On=new Float32Array(Mt.buffer),Hn=new Float64Array(Mt.buffer),ri=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Ii;(function(c){c[c.UTF8_BYTES=1]="UTF8_BYTES",c[c.UTF16_STRING=2]="UTF16_STRING"})(Ii||(Ii={}));var Ke=class c{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new c(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){On[0]=t,this.writeInt32(e,Mt[0])}writeFloat64(e,t){Hn[0]=t,this.writeInt32(e,Mt[ri?0:1]),this.writeInt32(e+4,Mt[ri?1:0])}getBufferIdentifier(){if(this.bytes_.lengththis.minalign&&(this.minalign=e);let r=~(this.bb.capacity()-this.space+t)+1&e-1;for(;this.space=0&&this.vtable[t]==0;t--);let r=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]!=0?e-this.vtable[t]:0);let n=2;this.addInt16(e-this.object_start);let a=(r+n)*2;this.addInt16(a);let o=0,l=this.space;e:for(t=0;t=0;o--)this.writeInt8(a.charCodeAt(o))}this.prep(this.minalign,4+n),this.addOffset(e),n&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){let r=this.bb.capacity()-e,n=r-this.bb.readInt32(r);if(!(t=0;r--)e.addInt32(t[r]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(e,t,r){return c.startUnion(e),c.addMode(e,t),c.addTypeIds(e,r),c.endUnion(e)}};var zi=class c{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(e,t){return(t||new c).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+4),(t||new c).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return c.startUtf8(e),c.endUtf8(e)}};var ge;(function(c){c[c.NONE=0]="NONE",c[c.Null=1]="Null",c[c.Int=2]="Int",c[c.FloatingPoint=3]="FloatingPoint",c[c.Binary=4]="Binary",c[c.Utf8=5]="Utf8",c[c.Bool=6]="Bool",c[c.Decimal=7]="Decimal",c[c.Date=8]="Date",c[c.Time=9]="Time",c[c.Timestamp=10]="Timestamp",c[c.Interval=11]="Interval",c[c.List=12]="List",c[c.Struct_=13]="Struct_",c[c.Union=14]="Union",c[c.FixedSizeBinary=15]="FixedSizeBinary",c[c.FixedSizeList=16]="FixedSizeList",c[c.Map=17]="Map",c[c.Duration=18]="Duration",c[c.LargeBinary=19]="LargeBinary",c[c.LargeUtf8=20]="LargeUtf8",c[c.LargeList=21]="LargeList",c[c.RunEndEncoded=22]="RunEndEncoded"})(ge||(ge={}));var Ge=class c{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(e,t){return(t||new c).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+4),(t||new c).__init(e.readInt32(e.position())+e.position(),e)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):ge.NONE}type(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){let t=this.bb.__offset(this.bb_pos,12);return t?(e||new Pt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(e,t){let r=this.bb.__offset(this.bb_pos,14);return r?(t||new c).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,16);return r?(t||new Me).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,ge.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}};var Ve=class c{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(e,t){return(t||new c).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+4),(t||new c).__init(e.readInt32(e.position())+e.position(),e)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):hr.Little}fields(e,t){let r=this.bb.__offset(this.bb_pos,6);return r?(t||new Ge).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,8);return r?(t||new Me).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+e*8):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,hr.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addInt64(t[r]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(e,t,r,n,a){return c.startSchema(e),c.addEndianness(e,t),c.addFields(e,r),c.addCustomMetadata(e,n),c.addFeatures(e,a),c.endSchema(e)}};var se;(function(c){c[c.NONE=0]="NONE",c[c.Schema=1]="Schema",c[c.DictionaryBatch=2]="DictionaryBatch",c[c.RecordBatch=3]="RecordBatch",c[c.Tensor=4]="Tensor",c[c.SparseTensor=5]="SparseTensor"})(se||(se={}));var b;(function(c){c[c.NONE=0]="NONE",c[c.Null=1]="Null",c[c.Int=2]="Int",c[c.Float=3]="Float",c[c.Binary=4]="Binary",c[c.Utf8=5]="Utf8",c[c.Bool=6]="Bool",c[c.Decimal=7]="Decimal",c[c.Date=8]="Date",c[c.Time=9]="Time",c[c.Timestamp=10]="Timestamp",c[c.Interval=11]="Interval",c[c.List=12]="List",c[c.Struct=13]="Struct",c[c.Union=14]="Union",c[c.FixedSizeBinary=15]="FixedSizeBinary",c[c.FixedSizeList=16]="FixedSizeList",c[c.Map=17]="Map",c[c.Duration=18]="Duration",c[c.LargeBinary=19]="LargeBinary",c[c.LargeUtf8=20]="LargeUtf8",c[c.Dictionary=-1]="Dictionary",c[c.Int8=-2]="Int8",c[c.Int16=-3]="Int16",c[c.Int32=-4]="Int32",c[c.Int64=-5]="Int64",c[c.Uint8=-6]="Uint8",c[c.Uint16=-7]="Uint16",c[c.Uint32=-8]="Uint32",c[c.Uint64=-9]="Uint64",c[c.Float16=-10]="Float16",c[c.Float32=-11]="Float32",c[c.Float64=-12]="Float64",c[c.DateDay=-13]="DateDay",c[c.DateMillisecond=-14]="DateMillisecond",c[c.TimestampSecond=-15]="TimestampSecond",c[c.TimestampMillisecond=-16]="TimestampMillisecond",c[c.TimestampMicrosecond=-17]="TimestampMicrosecond",c[c.TimestampNanosecond=-18]="TimestampNanosecond",c[c.TimeSecond=-19]="TimeSecond",c[c.TimeMillisecond=-20]="TimeMillisecond",c[c.TimeMicrosecond=-21]="TimeMicrosecond",c[c.TimeNanosecond=-22]="TimeNanosecond",c[c.DenseUnion=-23]="DenseUnion",c[c.SparseUnion=-24]="SparseUnion",c[c.IntervalDayTime=-25]="IntervalDayTime",c[c.IntervalYearMonth=-26]="IntervalYearMonth",c[c.DurationSecond=-27]="DurationSecond",c[c.DurationMillisecond=-28]="DurationMillisecond",c[c.DurationMicrosecond=-29]="DurationMicrosecond",c[c.DurationNanosecond=-30]="DurationNanosecond"})(b||(b={}));var st;(function(c){c[c.OFFSET=0]="OFFSET",c[c.DATA=1]="DATA",c[c.VALIDITY=2]="VALIDITY",c[c.TYPE=3]="TYPE"})(st||(st={}));var qa={};mr(qa,{clampRange:()=>Qi,createElementComparator:()=>kr,wrapIndex:()=>Rr});var Ta={};mr(Ta,{valueToString:()=>gt});function gt(c){if(c===null)return"null";if(c===void 0)return"undefined";switch(typeof c){case"number":return"".concat(c);case"bigint":return"".concat(c);case"string":return'"'.concat(c,'"')}return typeof c[Symbol.toPrimitive]=="function"?c[Symbol.toPrimitive]("string"):ArrayBuffer.isView(c)?c instanceof BigInt64Array||c instanceof BigUint64Array?"[".concat([...c].map(e=>gt(e)),"]"):"[".concat(c,"]"):ArrayBuffer.isView(c)?"[".concat(c,"]"):JSON.stringify(c,(e,t)=>typeof t=="bigint"?"".concat(t):t)}var Ma={};mr(Ma,{BN:()=>qi,bigNumToBigInt:()=>Wo,bigNumToNumber:()=>Ca,bigNumToString:()=>oi,isArrowBigNumSymbol:()=>No});function oe(c){if(typeof c=="bigint"&&(cNumber.MAX_SAFE_INTEGER))throw new TypeError("".concat(c," is not safe to convert to a number."));return Number(c)}function Fa(c,e){return oe(c/e)+oe(c%e)/oe(e)}var No=Symbol.for("isArrowBigNum");function vt(c,...e){return e.length===0?Object.setPrototypeOf(ie(this.TypedArray,c),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(c,...e),this.constructor.prototype)}vt.prototype[No]=!0;vt.prototype.toJSON=function(){return'"'.concat(oi(this),'"')};vt.prototype.valueOf=function(c){return Ca(this,c)};vt.prototype.toString=function(){return oi(this)};vt.prototype[Symbol.toPrimitive]=function(c="default"){switch(c){case"number":return Ca(this);case"string":return oi(this);case"default":return Wo(this)}return oi(this)};function si(...c){return vt.apply(this,c)}function ai(...c){return vt.apply(this,c)}function $i(...c){return vt.apply(this,c)}Object.setPrototypeOf(si.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(ai.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf($i.prototype,Object.create(Uint32Array.prototype));Object.assign(si.prototype,vt.prototype,{constructor:si,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(ai.prototype,vt.prototype,{constructor:ai,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign($i.prototype,vt.prototype,{constructor:$i,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});var Pu=BigInt(4294967296)*BigInt(4294967296),Iu=Pu-BigInt(1);function Ca(c,e){let{buffer:t,byteOffset:r,byteLength:n,signed:a}=c,o=new BigUint64Array(t,r,n/8),l=a&&o.at(-1)&BigInt(1)<=0)return xa(c);e=e.slice();let r=1;for(let a=0;a(c.children=null,c.ArrayType=Array,c.OffsetArrayType=Int32Array,c[Symbol.toStringTag]="DataType"))(R.prototype);var He=class extends R{constructor(){super(b.Null)}toString(){return"Null"}};zo=Symbol.toStringTag;He[zo]=(c=>c[Symbol.toStringTag]="Null")(He.prototype);var Pe=class extends R{constructor(e,t){super(b.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}toString(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}};$o=Symbol.toStringTag;Pe[$o]=(c=>(c.isSigned=null,c.bitWidth=null,c[Symbol.toStringTag]="Int"))(Pe.prototype);var Vn=class extends Pe{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},zn=class extends Pe{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},Bt=class extends Pe{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},$n=class extends Pe{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},qn=class extends Pe{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Xn=class extends Pe{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Qn=class extends Pe{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Yn=class extends Pe{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Vn.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(zn.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(Bt.prototype,"ArrayType",{value:Int32Array});Object.defineProperty($n.prototype,"ArrayType",{value:BigInt64Array});Object.defineProperty(qn.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(Xn.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Qn.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(Yn.prototype,"ArrayType",{value:BigUint64Array});var at=class extends R{constructor(e){super(b.Float),this.precision=e}get ArrayType(){switch(this.precision){case pe.HALF:return Uint16Array;case pe.SINGLE:return Float32Array;case pe.DOUBLE:return Float64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}toString(){return"Float".concat(this.precision<<5||16)}};qo=Symbol.toStringTag;at[qo]=(c=>(c.precision=null,c[Symbol.toStringTag]="Float"))(at.prototype);var Jn=class extends at{constructor(){super(pe.HALF)}},Kn=class extends at{constructor(){super(pe.SINGLE)}},Zn=class extends at{constructor(){super(pe.DOUBLE)}};Object.defineProperty(Jn.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Kn.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(Zn.prototype,"ArrayType",{value:Float64Array});var Vt=class extends R{constructor(){super(b.Binary)}toString(){return"Binary"}};Xo=Symbol.toStringTag;Vt[Xo]=(c=>(c.ArrayType=Uint8Array,c[Symbol.toStringTag]="Binary"))(Vt.prototype);var zt=class extends R{constructor(){super(b.LargeBinary)}toString(){return"LargeBinary"}};Qo=Symbol.toStringTag;zt[Qo]=(c=>(c.ArrayType=Uint8Array,c.OffsetArrayType=BigInt64Array,c[Symbol.toStringTag]="LargeBinary"))(zt.prototype);var $t=class extends R{constructor(){super(b.Utf8)}toString(){return"Utf8"}};Yo=Symbol.toStringTag;$t[Yo]=(c=>(c.ArrayType=Uint8Array,c[Symbol.toStringTag]="Utf8"))($t.prototype);var qt=class extends R{constructor(){super(b.LargeUtf8)}toString(){return"LargeUtf8"}};Jo=Symbol.toStringTag;qt[Jo]=(c=>(c.ArrayType=Uint8Array,c.OffsetArrayType=BigInt64Array,c[Symbol.toStringTag]="LargeUtf8"))(qt.prototype);var Xt=class extends R{constructor(){super(b.Bool)}toString(){return"Bool"}};Ko=Symbol.toStringTag;Xt[Ko]=(c=>(c.ArrayType=Uint8Array,c[Symbol.toStringTag]="Bool"))(Xt.prototype);var Qt=class extends R{constructor(e,t,r=128){super(b.Decimal),this.scale=e,this.precision=t,this.bitWidth=r}toString(){return"Decimal[".concat(this.precision,"e").concat(this.scale>0?"+":"").concat(this.scale,"]")}};Zo=Symbol.toStringTag;Qt[Zo]=(c=>(c.scale=null,c.precision=null,c.ArrayType=Uint32Array,c[Symbol.toStringTag]="Decimal"))(Qt.prototype);var Yt=class extends R{constructor(e){super(b.Date),this.unit=e}toString(){return"Date".concat((this.unit+1)*32,"<").concat(Le[this.unit],">")}get ArrayType(){return this.unit===Le.DAY?Int32Array:BigInt64Array}};ec=Symbol.toStringTag;Yt[ec]=(c=>(c.unit=null,c[Symbol.toStringTag]="Date"))(Yt.prototype);var Jt=class extends R{constructor(e,t){super(b.Time),this.unit=e,this.bitWidth=t}toString(){return"Time".concat(this.bitWidth,"<").concat(j[this.unit],">")}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}};tc=Symbol.toStringTag;Jt[tc]=(c=>(c.unit=null,c.bitWidth=null,c[Symbol.toStringTag]="Time"))(Jt.prototype);var Kt=class extends R{constructor(e,t){super(b.Timestamp),this.unit=e,this.timezone=t}toString(){return"Timestamp<".concat(j[this.unit]).concat(this.timezone?", ".concat(this.timezone):"",">")}};rc=Symbol.toStringTag;Kt[rc]=(c=>(c.unit=null,c.timezone=null,c.ArrayType=BigInt64Array,c[Symbol.toStringTag]="Timestamp"))(Kt.prototype);var Zt=class extends R{constructor(e){super(b.Interval),this.unit=e}toString(){return"Interval<".concat(Ce[this.unit],">")}};ic=Symbol.toStringTag;Zt[ic]=(c=>(c.unit=null,c.ArrayType=Int32Array,c[Symbol.toStringTag]="Interval"))(Zt.prototype);var er=class extends R{constructor(e){super(b.Duration),this.unit=e}toString(){return"Duration<".concat(j[this.unit],">")}};nc=Symbol.toStringTag;er[nc]=(c=>(c.unit=null,c.ArrayType=BigInt64Array,c[Symbol.toStringTag]="Duration"))(er.prototype);var yt=class extends R{constructor(e){super(b.List),this.children=[e]}toString(){return"List<".concat(this.valueType,">")}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};sc=Symbol.toStringTag;yt[sc]=(c=>(c.children=null,c[Symbol.toStringTag]="List"))(yt.prototype);var ye=class extends R{constructor(e){super(b.Struct),this.children=e}toString(){return"Struct<{".concat(this.children.map(e=>"".concat(e.name,":").concat(e.type)).join(", "),"}>")}};ac=Symbol.toStringTag;ye[ac]=(c=>(c.children=null,c[Symbol.toStringTag]="Struct"))(ye.prototype);var bt=class extends R{constructor(e,t,r){super(b.Union),this.mode=e,this.children=r,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((n,a,o)=>(n[a]=o)&&n||n,Object.create(null))}toString(){return"".concat(this[Symbol.toStringTag],"<").concat(this.children.map(e=>"".concat(e.type)).join(" | "),">")}};oc=Symbol.toStringTag;bt[oc]=(c=>(c.mode=null,c.typeIds=null,c.children=null,c.typeIdToChildIndex=null,c.ArrayType=Int8Array,c[Symbol.toStringTag]="Union"))(bt.prototype);var tr=class extends R{constructor(e){super(b.FixedSizeBinary),this.byteWidth=e}toString(){return"FixedSizeBinary[".concat(this.byteWidth,"]")}};cc=Symbol.toStringTag;tr[cc]=(c=>(c.byteWidth=null,c.ArrayType=Uint8Array,c[Symbol.toStringTag]="FixedSizeBinary"))(tr.prototype);var St=class extends R{constructor(e,t){super(b.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}};lc=Symbol.toStringTag;St[lc]=(c=>(c.children=null,c.listSize=null,c[Symbol.toStringTag]="FixedSizeList"))(St.prototype);var wt=class extends R{constructor(e,t=!1){var r,n,a;if(super(b.Map),this.children=[e],this.keysSorted=t,e&&(e.name="entries",!((r=e==null?void 0:e.type)===null||r===void 0)&&r.children)){let o=(n=e==null?void 0:e.type)===null||n===void 0?void 0:n.children[0];o&&(o.name="key");let l=(a=e==null?void 0:e.type)===null||a===void 0?void 0:a.children[1];l&&(l.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return"Map<{".concat(this.children[0].type.children.map(e=>"".concat(e.name,":").concat(e.type)).join(", "),"}>")}};uc=Symbol.toStringTag;wt[uc]=(c=>(c.children=null,c.keysSorted=null,c[Symbol.toStringTag]="Map_"))(wt.prototype);var Bu=(c=>()=>++c)(-1),et=class extends R{constructor(e,t,r,n){super(b.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=n||!1,this.id=r==null?Bu():oe(r)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return"Dictionary<".concat(this.indices,", ").concat(this.dictionary,">")}};_c=Symbol.toStringTag;et[_c]=(c=>(c.id=null,c.indices=null,c.isOrdered=null,c.dictionary=null,c[Symbol.toStringTag]="Dictionary"))(et.prototype);function tt(c){let e=c;switch(c.typeId){case b.Decimal:return c.bitWidth/32;case b.Interval:return 1+e.unit;case b.FixedSizeList:return e.listSize;case b.FixedSizeBinary:return e.byteWidth;default:return 1}}var G=class{visitMany(e,...t){return e.map((r,n)=>this.visit(r,...t.map(a=>a[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Ru(this,e,t)}getVisitFnByTypeId(e,t=!0){return ci(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function Ru(c,e,t=!0){return typeof e=="number"?ci(c,e,t):typeof e=="string"&&e in b?ci(c,b[e],t):e&&e instanceof R?ci(c,dc(e),t):e!=null&&e.type&&e.type instanceof R?ci(c,dc(e.type),t):ci(c,b.NONE,t)}function ci(c,e,t=!0){let r=null;switch(e){case b.Null:r=c.visitNull;break;case b.Bool:r=c.visitBool;break;case b.Int:r=c.visitInt;break;case b.Int8:r=c.visitInt8||c.visitInt;break;case b.Int16:r=c.visitInt16||c.visitInt;break;case b.Int32:r=c.visitInt32||c.visitInt;break;case b.Int64:r=c.visitInt64||c.visitInt;break;case b.Uint8:r=c.visitUint8||c.visitInt;break;case b.Uint16:r=c.visitUint16||c.visitInt;break;case b.Uint32:r=c.visitUint32||c.visitInt;break;case b.Uint64:r=c.visitUint64||c.visitInt;break;case b.Float:r=c.visitFloat;break;case b.Float16:r=c.visitFloat16||c.visitFloat;break;case b.Float32:r=c.visitFloat32||c.visitFloat;break;case b.Float64:r=c.visitFloat64||c.visitFloat;break;case b.Utf8:r=c.visitUtf8;break;case b.LargeUtf8:r=c.visitLargeUtf8;break;case b.Binary:r=c.visitBinary;break;case b.LargeBinary:r=c.visitLargeBinary;break;case b.FixedSizeBinary:r=c.visitFixedSizeBinary;break;case b.Date:r=c.visitDate;break;case b.DateDay:r=c.visitDateDay||c.visitDate;break;case b.DateMillisecond:r=c.visitDateMillisecond||c.visitDate;break;case b.Timestamp:r=c.visitTimestamp;break;case b.TimestampSecond:r=c.visitTimestampSecond||c.visitTimestamp;break;case b.TimestampMillisecond:r=c.visitTimestampMillisecond||c.visitTimestamp;break;case b.TimestampMicrosecond:r=c.visitTimestampMicrosecond||c.visitTimestamp;break;case b.TimestampNanosecond:r=c.visitTimestampNanosecond||c.visitTimestamp;break;case b.Time:r=c.visitTime;break;case b.TimeSecond:r=c.visitTimeSecond||c.visitTime;break;case b.TimeMillisecond:r=c.visitTimeMillisecond||c.visitTime;break;case b.TimeMicrosecond:r=c.visitTimeMicrosecond||c.visitTime;break;case b.TimeNanosecond:r=c.visitTimeNanosecond||c.visitTime;break;case b.Decimal:r=c.visitDecimal;break;case b.List:r=c.visitList;break;case b.Struct:r=c.visitStruct;break;case b.Union:r=c.visitUnion;break;case b.DenseUnion:r=c.visitDenseUnion||c.visitUnion;break;case b.SparseUnion:r=c.visitSparseUnion||c.visitUnion;break;case b.Dictionary:r=c.visitDictionary;break;case b.Interval:r=c.visitInterval;break;case b.IntervalDayTime:r=c.visitIntervalDayTime||c.visitInterval;break;case b.IntervalYearMonth:r=c.visitIntervalYearMonth||c.visitInterval;break;case b.Duration:r=c.visitDuration;break;case b.DurationSecond:r=c.visitDurationSecond||c.visitDuration;break;case b.DurationMillisecond:r=c.visitDurationMillisecond||c.visitDuration;break;case b.DurationMicrosecond:r=c.visitDurationMicrosecond||c.visitDuration;break;case b.DurationNanosecond:r=c.visitDurationNanosecond||c.visitDuration;break;case b.FixedSizeList:r=c.visitFixedSizeList;break;case b.Map:r=c.visitMap;break}if(typeof r=="function")return r;if(!t)return()=>null;throw new Error("Unrecognized type '".concat(b[e],"'"))}function dc(c){switch(c.typeId){case b.Null:return b.Null;case b.Int:{let{bitWidth:e,isSigned:t}=c;switch(e){case 8:return t?b.Int8:b.Uint8;case 16:return t?b.Int16:b.Uint16;case 32:return t?b.Int32:b.Uint32;case 64:return t?b.Int64:b.Uint64}return b.Int}case b.Float:switch(c.precision){case pe.HALF:return b.Float16;case pe.SINGLE:return b.Float32;case pe.DOUBLE:return b.Float64}return b.Float;case b.Binary:return b.Binary;case b.LargeBinary:return b.LargeBinary;case b.Utf8:return b.Utf8;case b.LargeUtf8:return b.LargeUtf8;case b.Bool:return b.Bool;case b.Decimal:return b.Decimal;case b.Time:switch(c.unit){case j.SECOND:return b.TimeSecond;case j.MILLISECOND:return b.TimeMillisecond;case j.MICROSECOND:return b.TimeMicrosecond;case j.NANOSECOND:return b.TimeNanosecond}return b.Time;case b.Timestamp:switch(c.unit){case j.SECOND:return b.TimestampSecond;case j.MILLISECOND:return b.TimestampMillisecond;case j.MICROSECOND:return b.TimestampMicrosecond;case j.NANOSECOND:return b.TimestampNanosecond}return b.Timestamp;case b.Date:switch(c.unit){case Le.DAY:return b.DateDay;case Le.MILLISECOND:return b.DateMillisecond}return b.Date;case b.Interval:switch(c.unit){case Ce.DAY_TIME:return b.IntervalDayTime;case Ce.YEAR_MONTH:return b.IntervalYearMonth}return b.Interval;case b.Duration:switch(c.unit){case j.SECOND:return b.DurationSecond;case j.MILLISECOND:return b.DurationMillisecond;case j.MICROSECOND:return b.DurationMicrosecond;case j.NANOSECOND:return b.DurationNanosecond}return b.Duration;case b.Map:return b.Map;case b.List:return b.List;case b.Struct:return b.Struct;case b.Union:switch(c.mode){case he.Dense:return b.DenseUnion;case he.Sparse:return b.SparseUnion}return b.Union;case b.FixedSizeBinary:return b.FixedSizeBinary;case b.FixedSizeList:return b.FixedSizeList;case b.Dictionary:return b.Dictionary}throw new Error("Unrecognized type '".concat(b[c.typeId],"'"))}G.prototype.visitInt8=null;G.prototype.visitInt16=null;G.prototype.visitInt32=null;G.prototype.visitInt64=null;G.prototype.visitUint8=null;G.prototype.visitUint16=null;G.prototype.visitUint32=null;G.prototype.visitUint64=null;G.prototype.visitFloat16=null;G.prototype.visitFloat32=null;G.prototype.visitFloat64=null;G.prototype.visitDateDay=null;G.prototype.visitDateMillisecond=null;G.prototype.visitTimestampSecond=null;G.prototype.visitTimestampMillisecond=null;G.prototype.visitTimestampMicrosecond=null;G.prototype.visitTimestampNanosecond=null;G.prototype.visitTimeSecond=null;G.prototype.visitTimeMillisecond=null;G.prototype.visitTimeMicrosecond=null;G.prototype.visitTimeNanosecond=null;G.prototype.visitDenseUnion=null;G.prototype.visitSparseUnion=null;G.prototype.visitIntervalDayTime=null;G.prototype.visitIntervalYearMonth=null;G.prototype.visitDuration=null;G.prototype.visitDurationSecond=null;G.prototype.visitDurationMillisecond=null;G.prototype.visitDurationMicrosecond=null;G.prototype.visitDurationNanosecond=null;var Pa={};mr(Pa,{float64ToUint16:()=>Xi,uint16ToFloat64:()=>es});var fc=new Float64Array(1),li=new Uint32Array(fc.buffer);function es(c){let e=(c&31744)>>10,t=(c&1023)/1024,r=Math.pow(-1,(c&32768)>>15);switch(e){case 31:return r*(t?Number.NaN:1/0);case 0:return r*(t?6103515625e-14*t:0)}return r*Math.pow(2,e-15)*(1+t)}function Xi(c){if(c!==c)return 32256;fc[0]=c;let e=(li[1]&2147483648)>>16&65535,t=li[1]&2146435072,r=0;return t>=1089470464?li[0]>0?t=31744:(t=(t&2080374784)>>16,r=(li[1]&1048575)>>10):t<=1056964608?(r=1048576+(li[1]&1048575),r=1048576+(r<<(t>>20)-998)>>21,t=0):(t=t-1056964608>>10,r=(li[1]&1048575)+512>>10),e|t|r&65535}var V=class extends G{};function J(c){return(e,t,r)=>{if(e.setValid(t,r!=null))return c(e,t,r)}}var ju=(c,e,t)=>{c[e]=Math.floor(t/864e5)},pc=(c,e,t,r)=>{if(t+1{let n=c+t;r?e[n>>3]|=1<>3]&=~(1<{c[e]=t},Ia=({values:c},e,t)=>{c[e]=t},mc=({values:c},e,t)=>{c[e]=Xi(t)},Gu=(c,e,t)=>{switch(c.type.precision){case pe.HALF:return mc(c,e,t);case pe.SINGLE:case pe.DOUBLE:return Ia(c,e,t)}},ts=({values:c},e,t)=>{ju(c,e,t.valueOf())},rs=({values:c},e,t)=>{c[e]=BigInt(t)},Ba=({stride:c,values:e},t,r)=>{e.set(r.subarray(0,c),c*t)},hc=({values:c,valueOffsets:e},t,r)=>pc(c,e,t,r),gc=({values:c,valueOffsets:e},t,r)=>pc(c,e,t,xt(r)),Ra=(c,e,t)=>{c.type.unit===Le.DAY?ts(c,e,t):rs(c,e,t)},is=({values:c},e,t)=>{c[e]=BigInt(t/1e3)},ns=({values:c},e,t)=>{c[e]=BigInt(t)},ss=({values:c},e,t)=>{c[e]=BigInt(t*1e3)},as=({values:c},e,t)=>{c[e]=BigInt(t*1e6)},ja=(c,e,t)=>{switch(c.type.unit){case j.SECOND:return is(c,e,t);case j.MILLISECOND:return ns(c,e,t);case j.MICROSECOND:return ss(c,e,t);case j.NANOSECOND:return as(c,e,t)}},os=({values:c},e,t)=>{c[e]=t},cs=({values:c},e,t)=>{c[e]=t},ls=({values:c},e,t)=>{c[e]=t},us=({values:c},e,t)=>{c[e]=t},Ua=(c,e,t)=>{switch(c.type.unit){case j.SECOND:return os(c,e,t);case j.MILLISECOND:return cs(c,e,t);case j.MICROSECOND:return ls(c,e,t);case j.NANOSECOND:return us(c,e,t)}},Ga=({values:c,stride:e},t,r)=>{c.set(r.subarray(0,e),e*t)},Ou=(c,e,t)=>{let r=c.children[0],n=c.valueOffsets,a=Re.getVisitFn(r);if(Array.isArray(t))for(let o=-1,l=n[e],u=n[e+1];l{let r=c.children[0],{valueOffsets:n}=c,a=Re.getVisitFn(r),{[e]:o,[e+1]:l}=n,u=t instanceof Map?t.entries():Object.entries(t);for(let _ of u)if(a(r,o,_),++o>=l)break},Nu=(c,e)=>(t,r,n,a)=>r&&t(r,c,e[a]),Wu=(c,e)=>(t,r,n,a)=>r&&t(r,c,e.get(a)),Vu=(c,e)=>(t,r,n,a)=>r&&t(r,c,e.get(n.name)),zu=(c,e)=>(t,r,n,a)=>r&&t(r,c,e[n.name]),$u=(c,e,t)=>{let r=c.type.children.map(a=>Re.getVisitFn(a.type)),n=t instanceof Map?Vu(e,t):t instanceof ae?Wu(e,t):Array.isArray(t)?Nu(e,t):zu(e,t);c.type.children.forEach((a,o)=>n(r[o],c.children[o],a,o))},qu=(c,e,t)=>{c.type.mode===he.Dense?vc(c,e,t):yc(c,e,t)},vc=(c,e,t)=>{let r=c.type.typeIdToChildIndex[c.typeIds[e]],n=c.children[r];Re.visit(n,c.valueOffsets[e],t)},yc=(c,e,t)=>{let r=c.type.typeIdToChildIndex[c.typeIds[e]],n=c.children[r];Re.visit(n,e,t)},Xu=(c,e,t)=>{var r;(r=c.dictionary)===null||r===void 0||r.set(c.values[e],t)},Oa=(c,e,t)=>{c.type.unit===Ce.DAY_TIME?_s(c,e,t):ds(c,e,t)},_s=({values:c},e,t)=>{c.set(t.subarray(0,2),2*e)},ds=({values:c},e,t)=>{c[e]=t[0]*12+t[1]%12},ps=({values:c},e,t)=>{c[e]=t},ms=({values:c},e,t)=>{c[e]=t},hs=({values:c},e,t)=>{c[e]=t},gs=({values:c},e,t)=>{c[e]=t},Ha=(c,e,t)=>{switch(c.type.unit){case j.SECOND:return ps(c,e,t);case j.MILLISECOND:return ms(c,e,t);case j.MICROSECOND:return hs(c,e,t);case j.NANOSECOND:return gs(c,e,t)}},Qu=(c,e,t)=>{let{stride:r}=c,n=c.children[0],a=Re.getVisitFn(n);if(Array.isArray(t))for(let o=-1,l=e*r;++o"".concat(gt(e),": ").concat(gt(t))).join(", "),"}")}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Na(this[Et],this[ui])}},Na=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return et.name)}has(e,t){return e[Et].type.children.findIndex(r=>r.name===t)!==-1}getOwnPropertyDescriptor(e,t){if(e[Et].type.children.findIndex(r=>r.name===t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let r=e[Et].type.children.findIndex(n=>n.name===t);if(r!==-1){let n=Te.visit(e[Et].children[r],e[ui]);return Reflect.set(e,t,n),n}}set(e,t,r){let n=e[Et].type.children.findIndex(a=>a.name===t);return n!==-1?(Re.visit(e[Et].children[n],e[ui],r),Reflect.set(e,t,r)):Reflect.has(e,t)||typeof t=="symbol"?Reflect.set(e,t,r):!1}};var O=class extends G{};function $(c){return(e,t)=>e.getValid(t)?c(e,t):null}var Yu=(c,e)=>864e5*c[e],Ju=(c,e)=>null,bc=(c,e,t)=>{if(t+1>=e.length)return null;let r=oe(e[t]),n=oe(e[t+1]);return c.subarray(r,n)},Ku=({offset:c,values:e},t)=>{let r=c+t;return(e[r>>3]&1<Yu(c,e),wc=({values:c},e)=>oe(c[e]),Lr=({stride:c,values:e},t)=>e[c*t],Zu=({stride:c,values:e},t)=>es(e[c*t]),Ec=({values:c},e)=>c[e],e_=({stride:c,values:e},t)=>e.subarray(c*t,c*(t+1)),Ac=({values:c,valueOffsets:e},t)=>bc(c,e,t),Lc=({values:c,valueOffsets:e},t)=>{let r=bc(c,e,t);return r!==null?Ci(r):null},t_=({values:c},e)=>c[e],r_=({type:c,values:e},t)=>c.precision!==pe.HALF?e[t]:es(e[t]),i_=(c,e)=>c.type.unit===Le.DAY?Sc(c,e):wc(c,e),Dc=({values:c},e)=>1e3*oe(c[e]),kc=({values:c},e)=>oe(c[e]),Tc=({values:c},e)=>Fa(c[e],BigInt(1e3)),Fc=({values:c},e)=>Fa(c[e],BigInt(1e6)),n_=(c,e)=>{switch(c.type.unit){case j.SECOND:return Dc(c,e);case j.MILLISECOND:return kc(c,e);case j.MICROSECOND:return Tc(c,e);case j.NANOSECOND:return Fc(c,e)}},xc=({values:c},e)=>c[e],Cc=({values:c},e)=>c[e],Mc=({values:c},e)=>c[e],Pc=({values:c},e)=>c[e],s_=(c,e)=>{switch(c.type.unit){case j.SECOND:return xc(c,e);case j.MILLISECOND:return Cc(c,e);case j.MICROSECOND:return Mc(c,e);case j.NANOSECOND:return Pc(c,e)}},a_=({values:c,stride:e},t)=>qi.decimal(c.subarray(e*t,e*(t+1))),o_=(c,e)=>{let{valueOffsets:t,stride:r,children:n}=c,{[e*r]:a,[e*r+1]:o}=t,u=n[0].slice(a,o-a);return new ae([u])},c_=(c,e)=>{let{valueOffsets:t,children:r}=c,{[e]:n,[e+1]:a}=t,o=r[0];return new Rt(o.slice(n,a-n))},l_=(c,e)=>new Ar(c,e),u_=(c,e)=>c.type.mode===he.Dense?Ic(c,e):Bc(c,e),Ic=(c,e)=>{let t=c.type.typeIdToChildIndex[c.typeIds[e]],r=c.children[t];return Te.visit(r,c.valueOffsets[e])},Bc=(c,e)=>{let t=c.type.typeIdToChildIndex[c.typeIds[e]],r=c.children[t];return Te.visit(r,e)},__=(c,e)=>{var t;return(t=c.dictionary)===null||t===void 0?void 0:t.get(c.values[e])},d_=(c,e)=>c.type.unit===Ce.DAY_TIME?Rc(c,e):jc(c,e),Rc=({values:c},e)=>c.subarray(2*e,2*(e+1)),jc=({values:c},e)=>{let t=c[e],r=new Int32Array(2);return r[0]=Math.trunc(t/12),r[1]=Math.trunc(t%12),r},Uc=({values:c},e)=>c[e],Gc=({values:c},e)=>c[e],Oc=({values:c},e)=>c[e],Hc=({values:c},e)=>c[e],f_=(c,e)=>{switch(c.type.unit){case j.SECOND:return Uc(c,e);case j.MILLISECOND:return Gc(c,e);case j.MICROSECOND:return Oc(c,e);case j.NANOSECOND:return Hc(c,e)}},p_=(c,e)=>{let{stride:t,children:r}=c,a=r[0].slice(e*t,t);return new ae([a])};O.prototype.visitNull=$(Ju);O.prototype.visitBool=$(Ku);O.prototype.visitInt=$(t_);O.prototype.visitInt8=$(Lr);O.prototype.visitInt16=$(Lr);O.prototype.visitInt32=$(Lr);O.prototype.visitInt64=$(Ec);O.prototype.visitUint8=$(Lr);O.prototype.visitUint16=$(Lr);O.prototype.visitUint32=$(Lr);O.prototype.visitUint64=$(Ec);O.prototype.visitFloat=$(r_);O.prototype.visitFloat16=$(Zu);O.prototype.visitFloat32=$(Lr);O.prototype.visitFloat64=$(Lr);O.prototype.visitUtf8=$(Lc);O.prototype.visitLargeUtf8=$(Lc);O.prototype.visitBinary=$(Ac);O.prototype.visitLargeBinary=$(Ac);O.prototype.visitFixedSizeBinary=$(e_);O.prototype.visitDate=$(i_);O.prototype.visitDateDay=$(Sc);O.prototype.visitDateMillisecond=$(wc);O.prototype.visitTimestamp=$(n_);O.prototype.visitTimestampSecond=$(Dc);O.prototype.visitTimestampMillisecond=$(kc);O.prototype.visitTimestampMicrosecond=$(Tc);O.prototype.visitTimestampNanosecond=$(Fc);O.prototype.visitTime=$(s_);O.prototype.visitTimeSecond=$(xc);O.prototype.visitTimeMillisecond=$(Cc);O.prototype.visitTimeMicrosecond=$(Mc);O.prototype.visitTimeNanosecond=$(Pc);O.prototype.visitDecimal=$(a_);O.prototype.visitList=$(o_);O.prototype.visitStruct=$(l_);O.prototype.visitUnion=$(u_);O.prototype.visitDenseUnion=$(Ic);O.prototype.visitSparseUnion=$(Bc);O.prototype.visitDictionary=$(__);O.prototype.visitInterval=$(d_);O.prototype.visitIntervalDayTime=$(Rc);O.prototype.visitIntervalYearMonth=$(jc);O.prototype.visitDuration=$(f_);O.prototype.visitDurationSecond=$(Uc);O.prototype.visitDurationMillisecond=$(Gc);O.prototype.visitDurationMicrosecond=$(Oc);O.prototype.visitDurationNanosecond=$(Hc);O.prototype.visitFixedSizeList=$(p_);O.prototype.visitMap=$(c_);var Te=new O;var Dr=Symbol.for("keys"),di=Symbol.for("vals"),_i=Symbol.for("kKeysAsStrings"),Va=Symbol.for("_kKeysAsStrings"),Rt=class{constructor(e){return this[Dr]=new ae([e.children[0]]).memoize(),this[di]=e.children[1],new Proxy(this,new $a)}get[_i](){return this[Va]||(this[Va]=Array.from(this[Dr].toArray(),String))}[Symbol.iterator](){return new za(this[Dr],this[di])}get size(){return this[Dr].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Dr],t=this[di],r={};for(let n=-1,a=e.length;++n"".concat(gt(e),": ").concat(gt(t))).join(", "),"}")}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},za=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Te.visit(this.vals,e)]})}},$a=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[_i]}has(e,t){return e[_i].includes(t)}getOwnPropertyDescriptor(e,t){if(e[_i].indexOf(t)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let r=e[_i].indexOf(t);if(r!==-1){let n=Te.visit(Reflect.get(e,di),r);return Reflect.set(e,t,n),n}}set(e,t,r){let n=e[_i].indexOf(t);return n!==-1?(Re.visit(Reflect.get(e,di),n,r),Reflect.set(e,t,r)):Reflect.has(e,t)?Reflect.set(e,t,r):!1}};Object.defineProperties(Rt.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Dr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[di]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Va]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var Nc;function Qi(c,e,t,r){let{length:n=0}=c,a=typeof e!="number"?0:e,o=typeof t!="number"?n:t;return a<0&&(a=(a%n+n)%n),o<0&&(o=(o%n+n)%n),on&&(o=n),r?r(c,a,o):[a,o]}var Rr=(c,e)=>c<0?e+c:c,Wc=c=>c!==c;function kr(c){if(typeof c!=="object"||c===null)return Wc(c)?Wc:t=>t===c;if(c instanceof Date){let t=c.valueOf();return r=>r instanceof Date?r.valueOf()===t:!1}return ArrayBuffer.isView(c)?t=>t?Aa(c,t):!1:c instanceof Map?h_(c):Array.isArray(c)?m_(c):c instanceof ae?g_(c):v_(c,!0)}function m_(c){let e=[];for(let t=-1,r=c.length;++t!1;let r=[];for(let n=-1,a=t.length;++n{if(!t||typeof t!="object")return!1;switch(t.constructor){case Array:return y_(c,t);case Map:return Vc(c,t,t.keys());case Rt:case Ar:case Object:case void 0:return Vc(c,t,e||Object.keys(t))}return t instanceof ae?b_(c,t):!1}}function y_(c,e){let t=c.length;if(e.length!==t)return!1;for(let r=-1;++rjr,getBit:()=>zc,getBool:()=>bs,packBools:()=>Gr,popcnt_array:()=>$c,popcnt_bit_range:()=>Yi,popcnt_uint32:()=>ys,setBool:()=>S_,truncateBitmap:()=>Ur});function bs(c,e,t,r){return(t&1<