@duckdb/duckdb-wasm 0.1.13-dev8.0 → 0.1.13
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 +2 -15
- package/dist/duckdb-browser-blocking.mjs +33 -0
- package/dist/duckdb-browser-blocking.mjs.map +7 -0
- package/dist/duckdb-browser-next-coi.pthread.worker.js +2 -3
- package/dist/duckdb-browser-next-coi.pthread.worker.js.map +3 -3
- package/dist/duckdb-browser-next-coi.worker.js +8 -8
- package/dist/duckdb-browser-next-coi.worker.js.map +3 -3
- package/dist/duckdb-browser-next.worker.js +8 -8
- package/dist/duckdb-browser-next.worker.js.map +3 -3
- package/dist/duckdb-browser.mjs +32 -0
- package/dist/duckdb-browser.mjs.map +7 -0
- package/dist/duckdb-browser.worker.js +8 -8
- package/dist/duckdb-browser.worker.js.map +3 -3
- package/dist/duckdb-next-coi.wasm +0 -0
- package/dist/duckdb-next.wasm +0 -0
- package/dist/duckdb-node-blocking.cjs +36 -3
- package/dist/duckdb-node-blocking.cjs.map +3 -3
- package/dist/duckdb-node-next.worker.cjs +36 -3
- package/dist/duckdb-node-next.worker.cjs.map +3 -3
- package/dist/duckdb-node.cjs +1 -1
- package/dist/duckdb-node.cjs.map +3 -3
- package/dist/duckdb-node.worker.cjs +35 -2
- package/dist/duckdb-node.worker.cjs.map +3 -3
- package/dist/duckdb.wasm +0 -0
- package/dist/tests-browser.js +89 -198
- package/dist/tests-browser.js.map +3 -3
- package/dist/tests-node.cjs +14734 -106
- package/dist/tests-node.cjs.map +3 -3
- package/dist/types/src/bindings/connection.d.ts +0 -6
- package/dist/types/src/parallel/async_connection.d.ts +0 -6
- package/dist/types/src/targets/duckdb-browser-blocking.d.ts +0 -1
- package/dist/types/src/targets/duckdb.d.ts +0 -1
- package/dist/types/src/utils/index.d.ts +0 -1
- package/package.json +33 -45
- package/dist/duckdb-browser-blocking.js +0 -33
- package/dist/duckdb-browser-blocking.js.map +0 -7
- package/dist/duckdb-browser.js +0 -32
- package/dist/duckdb-browser.js.map +0 -7
- package/dist/duckdb.d.ts +0 -1
- package/dist/duckdb.mjs +0 -2
- package/dist/duckdb.mjs.map +0 -7
- package/dist/types/src/utils/ipc_buffer.d.ts +0 -4
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var duckdb=(()=>{var lS=Object.create;var yo=Object.defineProperty;var dS=Object.getOwnPropertyDescriptor;var fS=Object.getOwnPropertyNames;var hS=Object.getPrototypeOf,pS=Object.prototype.hasOwnProperty;var qy=i=>yo(i,"__esModule",{value:!0});var yS=(i=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(i,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):i)(function(i){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+i+'" is not supported')});var C=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports),zy=(i,e)=>{qy(i);for(var t in e)yo(i,t,{get:e[t],enumerable:!0})},_S=(i,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of fS(e))!pS.call(i,r)&&r!=="default"&&yo(i,r,{get:()=>e[r],enumerable:!(t=dS(e,r))||t.enumerable});return i},Bi=i=>_S(qy(yo(i!=null?lS(hS(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var at=C((fV,bo)=>{var Wy,Hy,Yy,$y,Gy,Jy,Ky,Zy,Xy,_o,Uu,Qy,e_,t_,an,i_,r_,n_,s_,o_,a_,u_,c_,mo;(function(i){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){i(t(e,t(r)))}):typeof bo=="object"&&typeof bo.exports=="object"?i(t(e,t(bo.exports))):i(t(e));function t(r,n){return r!==e&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(s,u){return r[s]=n?n(s,u):u}}})(function(i){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])};Wy=function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function s(){this.constructor=r}r.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)},Hy=Object.assign||function(r){for(var n,s=1,u=arguments.length;s<u;s++){n=arguments[s];for(var m in n)Object.prototype.hasOwnProperty.call(n,m)&&(r[m]=n[m])}return r},Yy=function(r,n){var s={};for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&n.indexOf(u)<0&&(s[u]=r[u]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,u=Object.getOwnPropertySymbols(r);m<u.length;m++)n.indexOf(u[m])<0&&Object.prototype.propertyIsEnumerable.call(r,u[m])&&(s[u[m]]=r[u[m]]);return s},$y=function(r,n,s,u){var m=arguments.length,j=m<3?n:u===null?u=Object.getOwnPropertyDescriptor(n,s):u,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(r,n,s,u);else for(var A=r.length-1;A>=0;A--)(S=r[A])&&(j=(m<3?S(j):m>3?S(n,s,j):S(n,s))||j);return m>3&&j&&Object.defineProperty(n,s,j),j},Gy=function(r,n){return function(s,u){n(s,u,r)}},Jy=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},Ky=function(r,n,s,u){function m(j){return j instanceof s?j:new s(function(S){S(j)})}return new(s||(s=Promise))(function(j,S){function A(J){try{q(u.next(J))}catch(Ce){S(Ce)}}function P(J){try{q(u.throw(J))}catch(Ce){S(Ce)}}function q(J){J.done?j(J.value):m(J.value).then(A,P)}q((u=u.apply(r,n||[])).next())})},Zy=function(r,n){var s={label:0,sent:function(){if(j[0]&1)throw j[1];return j[1]},trys:[],ops:[]},u,m,j,S;return S={next:A(0),throw:A(1),return:A(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function A(q){return function(J){return P([q,J])}}function P(q){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=1,m&&(j=q[0]&2?m.return:q[0]?m.throw||((j=m.return)&&j.call(m),0):m.next)&&!(j=j.call(m,q[1])).done)return j;switch(m=0,j&&(q=[q[0]&2,j.value]),q[0]){case 0:case 1:j=q;break;case 4:return s.label++,{value:q[1],done:!1};case 5:s.label++,m=q[1],q=[0];continue;case 7:q=s.ops.pop(),s.trys.pop();continue;default:if(j=s.trys,!(j=j.length>0&&j[j.length-1])&&(q[0]===6||q[0]===2)){s=0;continue}if(q[0]===3&&(!j||q[1]>j[0]&&q[1]<j[3])){s.label=q[1];break}if(q[0]===6&&s.label<j[1]){s.label=j[1],j=q;break}if(j&&s.label<j[2]){s.label=j[2],s.ops.push(q);break}j[2]&&s.ops.pop(),s.trys.pop();continue}q=n.call(r,s)}catch(J){q=[6,J],m=0}finally{u=j=0}if(q[0]&5)throw q[1];return{value:q[0]?q[1]:void 0,done:!0}}},Xy=function(r,n){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(n,s)&&mo(n,r,s)},mo=Object.create?function(r,n,s,u){u===void 0&&(u=s),Object.defineProperty(r,u,{enumerable:!0,get:function(){return n[s]}})}:function(r,n,s,u){u===void 0&&(u=s),r[u]=n[s]},_o=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,s=n&&r[n],u=0;if(s)return s.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&u>=r.length&&(r=void 0),{value:r&&r[u++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Uu=function(r,n){var s=typeof Symbol=="function"&&r[Symbol.iterator];if(!s)return r;var u=s.call(r),m,j=[],S;try{for(;(n===void 0||n-- >0)&&!(m=u.next()).done;)j.push(m.value)}catch(A){S={error:A}}finally{try{m&&!m.done&&(s=u.return)&&s.call(u)}finally{if(S)throw S.error}}return j},Qy=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Uu(arguments[n]));return r},e_=function(){for(var r=0,n=0,s=arguments.length;n<s;n++)r+=arguments[n].length;for(var u=Array(r),m=0,n=0;n<s;n++)for(var j=arguments[n],S=0,A=j.length;S<A;S++,m++)u[m]=j[S];return u},t_=function(r,n,s){if(s||arguments.length===2)for(var u=0,m=n.length,j;u<m;u++)(j||!(u in n))&&(j||(j=Array.prototype.slice.call(n,0,u)),j[u]=n[u]);return r.concat(j||Array.prototype.slice.call(n))},an=function(r){return this instanceof an?(this.v=r,this):new an(r)},i_=function(r,n,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u=s.apply(r,n||[]),m,j=[];return m={},S("next"),S("throw"),S("return"),m[Symbol.asyncIterator]=function(){return this},m;function S(Te){u[Te]&&(m[Te]=function(qt){return new Promise(function(dt,us){j.push([Te,qt,dt,us])>1||A(Te,qt)})})}function A(Te,qt){try{P(u[Te](qt))}catch(dt){Ce(j[0][3],dt)}}function P(Te){Te.value instanceof an?Promise.resolve(Te.value.v).then(q,J):Ce(j[0][2],Te)}function q(Te){A("next",Te)}function J(Te){A("throw",Te)}function Ce(Te,qt){Te(qt),j.shift(),j.length&&A(j[0][0],j[0][1])}},r_=function(r){var n,s;return n={},u("next"),u("throw",function(m){throw m}),u("return"),n[Symbol.iterator]=function(){return this},n;function u(m,j){n[m]=r[m]?function(S){return(s=!s)?{value:an(r[m](S)),done:m==="return"}:j?j(S):S}:j}},n_=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],s;return n?n.call(r):(r=typeof _o=="function"?_o(r):r[Symbol.iterator](),s={},u("next"),u("throw"),u("return"),s[Symbol.asyncIterator]=function(){return this},s);function u(j){s[j]=r[j]&&function(S){return new Promise(function(A,P){S=r[j](S),m(A,P,S.done,S.value)})}}function m(j,S,A,P){Promise.resolve(P).then(function(q){j({value:q,done:A})},S)}},s_=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r};var t=Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n};o_=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)s!=="default"&&Object.prototype.hasOwnProperty.call(r,s)&&mo(n,r,s);return t(n,r),n},a_=function(r){return r&&r.__esModule?r:{default:r}},u_=function(r,n,s,u){if(s==="a"&&!u)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?r!==n||!u:!n.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?u:s==="a"?u.call(r):u?u.value:n.get(r)},c_=function(r,n,s,u,m){if(u==="m")throw new TypeError("Private method is not writable");if(u==="a"&&!m)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?r!==n||!m:!n.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return u==="a"?m.call(r,s):m?m.value=s:n.set(r,s),s},i("__extends",Wy),i("__assign",Hy),i("__rest",Yy),i("__decorate",$y),i("__param",Gy),i("__metadata",Jy),i("__awaiter",Ky),i("__generator",Zy),i("__exportStar",Xy),i("__createBinding",mo),i("__values",_o),i("__read",Uu),i("__spread",Qy),i("__spreadArrays",e_),i("__spreadArray",t_),i("__await",an),i("__asyncGenerator",i_),i("__asyncDelegator",r_),i("__asyncValues",n_),i("__makeTemplateObject",s_),i("__importStar",o_),i("__importDefault",a_),i("__classPrivateFieldGet",u_),i("__classPrivateFieldSet",c_)})});var Ii=C(l_=>{var O={};O.Offset;O.Table;O.SIZEOF_SHORT=2;O.SIZEOF_INT=4;O.FILE_IDENTIFIER_LENGTH=4;O.SIZE_PREFIX_LENGTH=4;O.Encoding={UTF8_BYTES:1,UTF16_STRING:2};O.int32=new Int32Array(2);O.float32=new Float32Array(O.int32.buffer);O.float64=new Float64Array(O.int32.buffer);O.isLittleEndian=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;O.Long=function(i,e){this.low=i|0,this.high=e|0};O.Long.create=function(i,e){return i==0&&e==0?O.Long.ZERO:new O.Long(i,e)};O.Long.prototype.toFloat64=function(){return(this.low>>>0)+this.high*4294967296};O.Long.prototype.equals=function(i){return this.low==i.low&&this.high==i.high};O.Long.ZERO=new O.Long(0,0);O.Builder=function(i){if(i)var e=i;else var e=1024;this.bb=O.ByteBuffer.allocate(e),this.space=e,this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1};O.Builder.prototype.clear=function(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1};O.Builder.prototype.forceDefaults=function(i){this.force_defaults=i};O.Builder.prototype.dataBuffer=function(){return this.bb};O.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())};O.Builder.prototype.prep=function(i,e){i>this.minalign&&(this.minalign=i);for(var t=~(this.bb.capacity()-this.space+e)+1&i-1;this.space<t+i+e;){var r=this.bb.capacity();this.bb=O.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-r}this.pad(t)};O.Builder.prototype.pad=function(i){for(var e=0;e<i;e++)this.bb.writeInt8(--this.space,0)};O.Builder.prototype.writeInt8=function(i){this.bb.writeInt8(this.space-=1,i)};O.Builder.prototype.writeInt16=function(i){this.bb.writeInt16(this.space-=2,i)};O.Builder.prototype.writeInt32=function(i){this.bb.writeInt32(this.space-=4,i)};O.Builder.prototype.writeInt64=function(i){this.bb.writeInt64(this.space-=8,i)};O.Builder.prototype.writeFloat32=function(i){this.bb.writeFloat32(this.space-=4,i)};O.Builder.prototype.writeFloat64=function(i){this.bb.writeFloat64(this.space-=8,i)};O.Builder.prototype.addInt8=function(i){this.prep(1,0),this.writeInt8(i)};O.Builder.prototype.addInt16=function(i){this.prep(2,0),this.writeInt16(i)};O.Builder.prototype.addInt32=function(i){this.prep(4,0),this.writeInt32(i)};O.Builder.prototype.addInt64=function(i){this.prep(8,0),this.writeInt64(i)};O.Builder.prototype.addFloat32=function(i){this.prep(4,0),this.writeFloat32(i)};O.Builder.prototype.addFloat64=function(i){this.prep(8,0),this.writeFloat64(i)};O.Builder.prototype.addFieldInt8=function(i,e,t){(this.force_defaults||e!=t)&&(this.addInt8(e),this.slot(i))};O.Builder.prototype.addFieldInt16=function(i,e,t){(this.force_defaults||e!=t)&&(this.addInt16(e),this.slot(i))};O.Builder.prototype.addFieldInt32=function(i,e,t){(this.force_defaults||e!=t)&&(this.addInt32(e),this.slot(i))};O.Builder.prototype.addFieldInt64=function(i,e,t){(this.force_defaults||!e.equals(t))&&(this.addInt64(e),this.slot(i))};O.Builder.prototype.addFieldFloat32=function(i,e,t){(this.force_defaults||e!=t)&&(this.addFloat32(e),this.slot(i))};O.Builder.prototype.addFieldFloat64=function(i,e,t){(this.force_defaults||e!=t)&&(this.addFloat64(e),this.slot(i))};O.Builder.prototype.addFieldOffset=function(i,e,t){(this.force_defaults||e!=t)&&(this.addOffset(e),this.slot(i))};O.Builder.prototype.addFieldStruct=function(i,e,t){e!=t&&(this.nested(e),this.slot(i))};O.Builder.prototype.nested=function(i){if(i!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")};O.Builder.prototype.notNested=function(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")};O.Builder.prototype.slot=function(i){this.vtable[i]=this.offset()};O.Builder.prototype.offset=function(){return this.bb.capacity()-this.space};O.Builder.growByteBuffer=function(i){var e=i.capacity();if(e&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var t=e<<1,r=O.ByteBuffer.allocate(t);return r.setPosition(t-e),r.bytes().set(i.bytes(),t-e),r};O.Builder.prototype.addOffset=function(i){this.prep(O.SIZEOF_INT,0),this.writeInt32(this.offset()-i+O.SIZEOF_INT)};O.Builder.prototype.startObject=function(i){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=i;for(var e=0;e<i;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()};O.Builder.prototype.endObject=function(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);for(var i=this.offset(),e=this.vtable_in_use-1;e>=0&&this.vtable[e]==0;e--);for(var t=e+1;e>=0;e--)this.addInt16(this.vtable[e]!=0?i-this.vtable[e]:0);var r=2;this.addInt16(i-this.object_start);var n=(t+r)*O.SIZEOF_SHORT;this.addInt16(n);var s=0,u=this.space;e:for(e=0;e<this.vtables.length;e++){var m=this.bb.capacity()-this.vtables[e];if(n==this.bb.readInt16(m)){for(var j=O.SIZEOF_SHORT;j<n;j+=O.SIZEOF_SHORT)if(this.bb.readInt16(u+j)!=this.bb.readInt16(m+j))continue e;s=this.vtables[e];break}}return s?(this.space=this.bb.capacity()-i,this.bb.writeInt32(this.space,s-i)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-i,this.offset()-i)),this.isNested=!1,i};O.Builder.prototype.finish=function(i,e,t){var r=t?O.SIZE_PREFIX_LENGTH:0;if(e){var n=e;if(this.prep(this.minalign,O.SIZEOF_INT+O.FILE_IDENTIFIER_LENGTH+r),n.length!=O.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+O.FILE_IDENTIFIER_LENGTH);for(var s=O.FILE_IDENTIFIER_LENGTH-1;s>=0;s--)this.writeInt8(n.charCodeAt(s))}this.prep(this.minalign,O.SIZEOF_INT+r),this.addOffset(i),r&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)};O.Builder.prototype.finishSizePrefixed=function(i,e){this.finish(i,e,!0)};O.Builder.prototype.requiredField=function(i,e){var t=this.bb.capacity()-i,r=t-this.bb.readInt32(t),n=this.bb.readInt16(r+e)!=0;if(!n)throw new Error("FlatBuffers: field "+e+" must be set")};O.Builder.prototype.startVector=function(i,e,t){this.notNested(),this.vector_num_elems=e,this.prep(O.SIZEOF_INT,i*e),this.prep(t,i*e)};O.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()};O.Builder.prototype.createString=function(i){if(i instanceof Uint8Array)var e=i;else for(var e=[],t=0;t<i.length;){var r,n=i.charCodeAt(t++);if(n<55296||n>=56320)r=n;else{var s=i.charCodeAt(t++);r=(n<<10)+s+(65536-(55296<<10)-56320)}r<128?e.push(r):(r<2048?e.push(r>>6&31|192):(r<65536?e.push(r>>12&15|224):e.push(r>>18&7|240,r>>12&63|128),e.push(r>>6&63|128)),e.push(r&63|128))}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);for(var t=0,u=this.space,m=this.bb.bytes();t<e.length;t++)m[u++]=e[t];return this.endVector()};O.Builder.prototype.createLong=function(i,e){return O.Long.create(i,e)};O.ByteBuffer=function(i){this.bytes_=i,this.position_=0};O.ByteBuffer.allocate=function(i){return new O.ByteBuffer(new Uint8Array(i))};O.ByteBuffer.prototype.clear=function(){this.position_=0};O.ByteBuffer.prototype.bytes=function(){return this.bytes_};O.ByteBuffer.prototype.position=function(){return this.position_};O.ByteBuffer.prototype.setPosition=function(i){this.position_=i};O.ByteBuffer.prototype.capacity=function(){return this.bytes_.length};O.ByteBuffer.prototype.readInt8=function(i){return this.readUint8(i)<<24>>24};O.ByteBuffer.prototype.readUint8=function(i){return this.bytes_[i]};O.ByteBuffer.prototype.readInt16=function(i){return this.readUint16(i)<<16>>16};O.ByteBuffer.prototype.readUint16=function(i){return this.bytes_[i]|this.bytes_[i+1]<<8};O.ByteBuffer.prototype.readInt32=function(i){return this.bytes_[i]|this.bytes_[i+1]<<8|this.bytes_[i+2]<<16|this.bytes_[i+3]<<24};O.ByteBuffer.prototype.readUint32=function(i){return this.readInt32(i)>>>0};O.ByteBuffer.prototype.readInt64=function(i){return new O.Long(this.readInt32(i),this.readInt32(i+4))};O.ByteBuffer.prototype.readUint64=function(i){return new O.Long(this.readUint32(i),this.readUint32(i+4))};O.ByteBuffer.prototype.readFloat32=function(i){return O.int32[0]=this.readInt32(i),O.float32[0]};O.ByteBuffer.prototype.readFloat64=function(i){return O.int32[O.isLittleEndian?0:1]=this.readInt32(i),O.int32[O.isLittleEndian?1:0]=this.readInt32(i+4),O.float64[0]};O.ByteBuffer.prototype.writeInt8=function(i,e){this.bytes_[i]=e};O.ByteBuffer.prototype.writeUint8=function(i,e){this.bytes_[i]=e};O.ByteBuffer.prototype.writeInt16=function(i,e){this.bytes_[i]=e,this.bytes_[i+1]=e>>8};O.ByteBuffer.prototype.writeUint16=function(i,e){this.bytes_[i]=e,this.bytes_[i+1]=e>>8};O.ByteBuffer.prototype.writeInt32=function(i,e){this.bytes_[i]=e,this.bytes_[i+1]=e>>8,this.bytes_[i+2]=e>>16,this.bytes_[i+3]=e>>24};O.ByteBuffer.prototype.writeUint32=function(i,e){this.bytes_[i]=e,this.bytes_[i+1]=e>>8,this.bytes_[i+2]=e>>16,this.bytes_[i+3]=e>>24};O.ByteBuffer.prototype.writeInt64=function(i,e){this.writeInt32(i,e.low),this.writeInt32(i+4,e.high)};O.ByteBuffer.prototype.writeUint64=function(i,e){this.writeUint32(i,e.low),this.writeUint32(i+4,e.high)};O.ByteBuffer.prototype.writeFloat32=function(i,e){O.float32[0]=e,this.writeInt32(i,O.int32[0])};O.ByteBuffer.prototype.writeFloat64=function(i,e){O.float64[0]=e,this.writeInt32(i,O.int32[O.isLittleEndian?0:1]),this.writeInt32(i+4,O.int32[O.isLittleEndian?1:0])};O.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+O.SIZEOF_INT+O.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");for(var i="",e=0;e<O.FILE_IDENTIFIER_LENGTH;e++)i+=String.fromCharCode(this.readInt8(this.position_+O.SIZEOF_INT+e));return i};O.ByteBuffer.prototype.__offset=function(i,e){var t=i-this.readInt32(i);return e<this.readInt16(t)?this.readInt16(t+e):0};O.ByteBuffer.prototype.__union=function(i,e){return i.bb_pos=e+this.readInt32(e),i.bb=this,i};O.ByteBuffer.prototype.__string=function(i,e){i+=this.readInt32(i);var t=this.readInt32(i),r="",n=0;if(i+=O.SIZEOF_INT,e===O.Encoding.UTF8_BYTES)return this.bytes_.subarray(i,i+t);for(;n<t;){var s,u=this.readUint8(i+n++);if(u<192)s=u;else{var m=this.readUint8(i+n++);if(u<224)s=(u&31)<<6|m&63;else{var j=this.readUint8(i+n++);if(u<240)s=(u&15)<<12|(m&63)<<6|j&63;else{var S=this.readUint8(i+n++);s=(u&7)<<18|(m&63)<<12|(j&63)<<6|S&63}}}s<65536?r+=String.fromCharCode(s):(s-=65536,r+=String.fromCharCode((s>>10)+55296,(s&(1<<10)-1)+56320))}return r};O.ByteBuffer.prototype.__indirect=function(i){return i+this.readInt32(i)};O.ByteBuffer.prototype.__vector=function(i){return i+this.readInt32(i)+O.SIZEOF_INT};O.ByteBuffer.prototype.__vector_len=function(i){return this.readInt32(i+this.readInt32(i))};O.ByteBuffer.prototype.__has_identifier=function(i){if(i.length!=O.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+O.FILE_IDENTIFIER_LENGTH);for(var e=0;e<O.FILE_IDENTIFIER_LENGTH;e++)if(i.charCodeAt(e)!=this.readInt8(this.position_+O.SIZEOF_INT+e))return!1;return!0};O.ByteBuffer.prototype.createLong=function(i,e){return O.Long.create(i,e)};l_.flatbuffers=O});var Fr=C(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.encodeUtf8=un.decodeUtf8=void 0;var mS=new TextDecoder("utf-8");un.decodeUtf8=i=>mS.decode(i);var bS=new TextEncoder;un.encodeUtf8=i=>bS.encode(i)});var cn=C(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.AsyncQueue=_t.ReadableInterop=_t.ArrowJSON=_t.ITERATOR_DONE=void 0;var hs=at(),d_=ps();_t.ITERATOR_DONE=Object.freeze({done:!0,value:void 0});var f_=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}};_t.ArrowJSON=f_;var Vu=class{tee(){return this._getDOMStream().tee()}pipe(e,t){return this._getNodeStream().pipe(e,t)}pipeTo(e,t){return this._getDOMStream().pipeTo(e,t)}pipeThrough(e,t){return this._getDOMStream().pipeThrough(e,t)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}};_t.ReadableInterop=Vu;var h_=class extends Vu{constructor(){super();this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return hs.__awaiter(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(_t.ITERATOR_DONE);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return d_.default.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return d_.default.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return hs.__awaiter(this,void 0,void 0,function*(){return yield this.abort(e),_t.ITERATOR_DONE})}return(e){return hs.__awaiter(this,void 0,void 0,function*(){return yield this.close(),_t.ITERATOR_DONE})}read(e){return hs.__awaiter(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return hs.__awaiter(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((t,r)=>{this.resolvers.push({resolve:t,reject:r})}):Promise.resolve(_t.ITERATOR_DONE)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}};_t.AsyncQueue=h_});var ut=C(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.isReadableNodeStream=z.isWritableNodeStream=z.isReadableDOMStream=z.isWritableDOMStream=z.isFetchResponse=z.isFSReadStream=z.isFileHandle=z.isUnderlyingSink=z.isIteratorResult=z.isArrayLike=z.isArrowJSON=z.isAsyncIterable=z.isIterable=z.isObservable=z.isPromise=z.isObject=z.BigUint64ArrayAvailable=z.BigUint64Array=z.BigInt64ArrayAvailable=z.BigInt64Array=z.BigIntAvailable=z.BigInt=void 0;var go=cn(),[gS,vS]=(()=>{let i=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw i()}return e.asIntN=()=>{throw i()},e.asUintN=()=>{throw i()},typeof BigInt!="undefined"?[BigInt,!0]:[e,!1]})();z.BigInt=gS;z.BigIntAvailable=vS;var[jS,wS]=(()=>{let i=()=>{throw new Error("BigInt64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw i()}static from(){throw i()}constructor(){throw i()}}return typeof BigInt64Array!="undefined"?[BigInt64Array,!0]:[e,!1]})();z.BigInt64Array=jS;z.BigInt64ArrayAvailable=wS;var[BS,IS]=(()=>{let i=()=>{throw new Error("BigUint64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw i()}static from(){throw i()}constructor(){throw i()}}return typeof BigUint64Array!="undefined"?[BigUint64Array,!0]:[e,!1]})();z.BigUint64Array=BS;z.BigUint64ArrayAvailable=IS;var ku=i=>typeof i=="number",p_=i=>typeof i=="boolean",rt=i=>typeof i=="function";z.isObject=i=>i!=null&&Object(i)===i;z.isPromise=i=>z.isObject(i)&&rt(i.then);z.isObservable=i=>z.isObject(i)&&rt(i.subscribe);z.isIterable=i=>z.isObject(i)&&rt(i[Symbol.iterator]);z.isAsyncIterable=i=>z.isObject(i)&&rt(i[Symbol.asyncIterator]);z.isArrowJSON=i=>z.isObject(i)&&z.isObject(i.schema);z.isArrayLike=i=>z.isObject(i)&&ku(i.length);z.isIteratorResult=i=>z.isObject(i)&&"done"in i&&"value"in i;z.isUnderlyingSink=i=>z.isObject(i)&&rt(i.abort)&&rt(i.close)&&rt(i.start)&&rt(i.write);z.isFileHandle=i=>z.isObject(i)&&rt(i.stat)&&ku(i.fd);z.isFSReadStream=i=>z.isReadableNodeStream(i)&&ku(i.bytesRead);z.isFetchResponse=i=>z.isObject(i)&&z.isReadableDOMStream(i.body);z.isWritableDOMStream=i=>z.isObject(i)&&rt(i.abort)&&rt(i.getWriter)&&!(i instanceof go.ReadableInterop);z.isReadableDOMStream=i=>z.isObject(i)&&rt(i.cancel)&&rt(i.getReader)&&!(i instanceof go.ReadableInterop);z.isWritableNodeStream=i=>z.isObject(i)&&rt(i.end)&&rt(i.write)&&p_(i.writable)&&!(i instanceof go.ReadableInterop);z.isReadableNodeStream=i=>z.isObject(i)&&rt(i.read)&&rt(i.pipe)&&p_(i.readable)&&!(i instanceof go.ReadableInterop)});var Ge=C(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.compareArrayLike=x.rebaseValueOffsets=x.toUint8ClampedArrayAsyncIterator=x.toFloat64ArrayAsyncIterator=x.toFloat32ArrayAsyncIterator=x.toUint32ArrayAsyncIterator=x.toUint16ArrayAsyncIterator=x.toUint8ArrayAsyncIterator=x.toInt32ArrayAsyncIterator=x.toInt16ArrayAsyncIterator=x.toInt8ArrayAsyncIterator=x.toArrayBufferViewAsyncIterator=x.toUint8ClampedArrayIterator=x.toFloat64ArrayIterator=x.toFloat32ArrayIterator=x.toUint32ArrayIterator=x.toUint16ArrayIterator=x.toUint8ArrayIterator=x.toInt32ArrayIterator=x.toInt16ArrayIterator=x.toInt8ArrayIterator=x.toArrayBufferViewIterator=x.toUint8ClampedArray=x.toFloat64Array=x.toFloat32Array=x.toBigUint64Array=x.toUint32Array=x.toUint16Array=x.toUint8Array=x.toBigInt64Array=x.toInt32Array=x.toInt16Array=x.toInt8Array=x.toArrayBufferView=x.joinUint8Arrays=x.memcpy=void 0;var ze=at(),TS=Ii(),SS=Fr(),DS=TS.flatbuffers.ByteBuffer,Mr=ut(),Ru=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:ArrayBuffer;function AS(i){let e=i[0]?[i[0]]:[],t,r,n,s;for(let u,m,j=0,S=0,A=i.length;++j<A;){if(u=e[S],m=i[j],!u||!m||u.buffer!==m.buffer||m.byteOffset<u.byteOffset){m&&(e[++S]=m);continue}if({byteOffset:t,byteLength:n}=u,{byteOffset:r,byteLength:s}=m,t+n<r||r+s<t){m&&(e[++S]=m);continue}e[S]=new Uint8Array(u.buffer,t,r-t+s)}return e}function Eu(i,e,t=0,r=e.byteLength){let n=i.byteLength,s=new Uint8Array(i.buffer,i.byteOffset,n),u=new Uint8Array(e.buffer,e.byteOffset,Math.min(r,n));return s.set(u,t),i}x.memcpy=Eu;function OS(i,e){let t=AS(i),r=t.reduce((A,P)=>A+P.byteLength,0),n,s,u,m=0,j=-1,S=Math.min(e||1/0,r);for(let A=t.length;++j<A;){if(n=t[j],s=n.subarray(0,Math.min(n.length,S-m)),S<=m+s.length){s.length<n.length?t[j]=n.subarray(s.length):s.length===n.length&&j++,u?Eu(u,s,m):u=s;break}Eu(u||(u=new Uint8Array(S)),s,m),m+=s.length}return[u||new Uint8Array(0),t.slice(j),r-(u?u.byteLength:0)]}x.joinUint8Arrays=OS;function ht(i,e){let t=Mr.isIteratorResult(e)?e.value:e;return t instanceof i?i===Uint8Array?new i(t.buffer,t.byteOffset,t.byteLength):t:t?(typeof t=="string"&&(t=SS.encodeUtf8(t)),t instanceof ArrayBuffer?new i(t):t instanceof Ru?new i(t):t instanceof DS?ht(i,t.bytes()):ArrayBuffer.isView(t)?t.byteLength<=0?new i(0):new i(t.buffer,t.byteOffset,t.byteLength/i.BYTES_PER_ELEMENT):i.from(t)):new i(0)}x.toArrayBufferView=ht;x.toInt8Array=i=>ht(Int8Array,i);x.toInt16Array=i=>ht(Int16Array,i);x.toInt32Array=i=>ht(Int32Array,i);x.toBigInt64Array=i=>ht(Mr.BigInt64Array,i);x.toUint8Array=i=>ht(Uint8Array,i);x.toUint16Array=i=>ht(Uint16Array,i);x.toUint32Array=i=>ht(Uint32Array,i);x.toBigUint64Array=i=>ht(Mr.BigUint64Array,i);x.toFloat32Array=i=>ht(Float32Array,i);x.toFloat64Array=i=>ht(Float64Array,i);x.toUint8ClampedArray=i=>ht(Uint8ClampedArray,i);var Nu=i=>(i.next(),i);function*ei(i,e){let t=function*(n){yield n},r=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Ru?t(e):Mr.isIterable(e)?e:t(e);return yield*Nu(function*(n){let s=null;do s=n.next(yield ht(i,s));while(!s.done)}(r[Symbol.iterator]())),new i}x.toArrayBufferViewIterator=ei;x.toInt8ArrayIterator=i=>ei(Int8Array,i);x.toInt16ArrayIterator=i=>ei(Int16Array,i);x.toInt32ArrayIterator=i=>ei(Int32Array,i);x.toUint8ArrayIterator=i=>ei(Uint8Array,i);x.toUint16ArrayIterator=i=>ei(Uint16Array,i);x.toUint32ArrayIterator=i=>ei(Uint32Array,i);x.toFloat32ArrayIterator=i=>ei(Float32Array,i);x.toFloat64ArrayIterator=i=>ei(Float64Array,i);x.toUint8ClampedArrayIterator=i=>ei(Uint8ClampedArray,i);function zt(i,e){return ze.__asyncGenerator(this,arguments,function*(){if(Mr.isPromise(e))return yield ze.__await(yield ze.__await(yield*ze.__asyncDelegator(ze.__asyncValues(zt(i,yield ze.__await(e))))));let r=function(u){return ze.__asyncGenerator(this,arguments,function*(){yield yield ze.__await(yield ze.__await(u))})},n=function(u){return ze.__asyncGenerator(this,arguments,function*(){yield ze.__await(yield*ze.__asyncDelegator(ze.__asyncValues(Nu(function*(m){let j=null;do j=m.next(yield j==null?void 0:j.value);while(!j.done)}(u[Symbol.iterator]())))))})},s=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Ru?r(e):Mr.isIterable(e)?n(e):Mr.isAsyncIterable(e)?e:r(e);return yield ze.__await(yield*ze.__asyncDelegator(ze.__asyncValues(Nu(function(u){return ze.__asyncGenerator(this,arguments,function*(){let m=null;do m=yield ze.__await(u.next(yield yield ze.__await(ht(i,m))));while(!m.done)})}(s[Symbol.asyncIterator]()))))),yield ze.__await(new i)})}x.toArrayBufferViewAsyncIterator=zt;x.toInt8ArrayAsyncIterator=i=>zt(Int8Array,i);x.toInt16ArrayAsyncIterator=i=>zt(Int16Array,i);x.toInt32ArrayAsyncIterator=i=>zt(Int32Array,i);x.toUint8ArrayAsyncIterator=i=>zt(Uint8Array,i);x.toUint16ArrayAsyncIterator=i=>zt(Uint16Array,i);x.toUint32ArrayAsyncIterator=i=>zt(Uint32Array,i);x.toFloat32ArrayAsyncIterator=i=>zt(Float32Array,i);x.toFloat64ArrayAsyncIterator=i=>zt(Float64Array,i);x.toUint8ClampedArrayAsyncIterator=i=>zt(Uint8ClampedArray,i);function FS(i,e,t){if(i!==0){t=t.slice(0,e+1);for(let r=-1;++r<=e;)t[r]+=i}return t}x.rebaseValueOffsets=FS;function MS(i,e){let t=0,r=i.length;if(r!==e.length)return!1;if(r>0)do if(i[t]!==e[t])return!1;while(++t<r);return!0}x.compareArrayLike=MS});var ps=C(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});var ve=at(),pt=Ge();xu.default={fromIterable(i){return vo(CS(i))},fromAsyncIterable(i){return vo(US(i))},fromDOMStream(i){return vo(VS(i))},fromNodeStream(i){return vo(kS(i))},toDOMStream(i,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(i,e){throw new Error('"toNodeStream" not available in this environment')}};var vo=i=>(i.next(),i);function*CS(i){let e,t=!1,r=[],n,s,u,m=0;function j(){return s==="peek"?pt.joinUint8Arrays(r,u)[0]:([n,r,m]=pt.joinUint8Arrays(r,u),n)}({cmd:s,size:u}=yield null);let S=pt.toUint8ArrayIterator(i)[Symbol.iterator]();try{do if({done:e,value:n}=isNaN(u-m)?S.next(void 0):S.next(u-m),!e&&n.byteLength>0&&(r.push(n),m+=n.byteLength),e||u<=m)do({cmd:s,size:u}=yield j());while(u<m);while(!e)}catch(A){(t=!0)&&typeof S.throw=="function"&&S.throw(A)}finally{t===!1&&typeof S.return=="function"&&S.return(null)}return null}function US(i){return ve.__asyncGenerator(this,arguments,function*(){let t,r=!1,n=[],s,u,m,j=0;function S(){return u==="peek"?pt.joinUint8Arrays(n,m)[0]:([s,n,j]=pt.joinUint8Arrays(n,m),s)}({cmd:u,size:m}=yield yield ve.__await(null));let A=pt.toUint8ArrayAsyncIterator(i)[Symbol.asyncIterator]();try{do if({done:t,value:s}=isNaN(m-j)?yield ve.__await(A.next(void 0)):yield ve.__await(A.next(m-j)),!t&&s.byteLength>0&&(n.push(s),j+=s.byteLength),t||m<=j)do({cmd:u,size:m}=yield yield ve.__await(S()));while(m<j);while(!t)}catch(P){(r=!0)&&typeof A.throw=="function"&&(yield ve.__await(A.throw(P)))}finally{r===!1&&typeof A.return=="function"&&(yield ve.__await(A.return(new Uint8Array(0))))}return yield ve.__await(null)})}function VS(i){return ve.__asyncGenerator(this,arguments,function*(){let t=!1,r=!1,n=[],s,u,m,j=0;function S(){return u==="peek"?pt.joinUint8Arrays(n,m)[0]:([s,n,j]=pt.joinUint8Arrays(n,m),s)}({cmd:u,size:m}=yield yield ve.__await(null));let A=new y_(i);try{do if({done:t,value:s}=isNaN(m-j)?yield ve.__await(A.read(void 0)):yield ve.__await(A.read(m-j)),!t&&s.byteLength>0&&(n.push(pt.toUint8Array(s)),j+=s.byteLength),t||m<=j)do({cmd:u,size:m}=yield yield ve.__await(S()));while(m<j);while(!t)}catch(P){(r=!0)&&(yield ve.__await(A.cancel(P)))}finally{r===!1?yield ve.__await(A.cancel()):i.locked&&A.releaseLock()}return yield ve.__await(null)})}var y_=class{constructor(e){this.source=e,this.byobReader=null,this.defaultReader=null;try{this.supportsBYOB=!!(this.reader=this.getBYOBReader())}catch{this.supportsBYOB=!(this.reader=this.getDefaultReader())}}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}cancel(e){return ve.__awaiter(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 ve.__awaiter(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};let t=!this.supportsBYOB||typeof e!="number"?yield this.getDefaultReader().read():yield this.readFromBYOBReader(e);return!t.done&&(t.value=pt.toUint8Array(t)),t})}getDefaultReader(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source.getReader(),this.defaultReader.closed.catch(()=>{})),this.reader=this.defaultReader}getBYOBReader(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source.getReader({mode:"byob"}),this.byobReader.closed.catch(()=>{})),this.reader=this.byobReader}readFromBYOBReader(e){return ve.__awaiter(this,void 0,void 0,function*(){return yield __(this.getBYOBReader(),new ArrayBuffer(e),0,e)})}};function __(i,e,t,r){return ve.__awaiter(this,void 0,void 0,function*(){if(t>=r)return{done:!1,value:new Uint8Array(e,0,r)};let{done:n,value:s}=yield i.read(new Uint8Array(e,t,r-t));return(t+=s.byteLength)<r&&!n?yield __(i,s.buffer,t,r):{done:n,value:new Uint8Array(s.buffer,0,t)}})}var Pu=(i,e)=>{let t=n=>r([e,n]),r;return[e,t,new Promise(n=>(r=n)&&i.once(e,t))]};function kS(i){return ve.__asyncGenerator(this,arguments,function*(){let t=[],r="error",n=!1,s=null,u,m,j=0,S=[],A;function P(){return u==="peek"?pt.joinUint8Arrays(S,m)[0]:([A,S,j]=pt.joinUint8Arrays(S,m),A)}if({cmd:u,size:m}=yield yield ve.__await(null),i.isTTY)return yield yield ve.__await(new Uint8Array(0)),yield ve.__await(null);try{t[0]=Pu(i,"end"),t[1]=Pu(i,"error");do{if(t[2]=Pu(i,"readable"),[r,s]=yield ve.__await(Promise.race(t.map(J=>J[2]))),r==="error")break;if((n=r==="end")||(isFinite(m-j)?(A=pt.toUint8Array(i.read(m-j)),A.byteLength<m-j&&(A=pt.toUint8Array(i.read(void 0)))):A=pt.toUint8Array(i.read(void 0)),A.byteLength>0&&(S.push(A),j+=A.byteLength)),n||m<=j)do({cmd:u,size:m}=yield yield ve.__await(P()));while(m<j)}while(!n)}finally{yield ve.__await(q(t,r==="error"?s:null))}return yield ve.__await(null);function q(J,Ce){return A=S=null,new Promise((Te,qt)=>{for(let[dt,us]of J)i.off(dt,us);try{let dt=i.destroy;dt&&dt.call(i,Ce),Ce=void 0}catch(dt){Ce=dt||Ce}finally{Ce!=null?qt(Ce):Te()}})}})}});var xe=C(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.Vector=ln.AbstractVector=void 0;var jo=class{};ln.AbstractVector=jo;ln.Vector=jo;jo.prototype.data=null});var Gi=C(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.Schema=N.Buffer=N.Field=N.DictionaryEncoding=N.KeyValue=N.Duration=N.Interval=N.Timestamp=N.Time=N.Date=N.Decimal=N.Bool=N.FixedSizeBinary=N.LargeBinary=N.LargeUtf8=N.Binary=N.Utf8=N.FloatingPoint=N.Int=N.Union=N.Map=N.FixedSizeList=N.LargeList=N.List=N.Struct_=N.Null=N.Endianness=N.DictionaryKind=N.Type=N.IntervalUnit=N.TimeUnit=N.DateUnit=N.Precision=N.UnionMode=N.Feature=N.MetadataVersion=void 0;var Se=Ii(),RS;(function(i){i[i.V1=0]="V1",i[i.V2=1]="V2",i[i.V3=2]="V3",i[i.V4=3]="V4",i[i.V5=4]="V5"})(RS=N.MetadataVersion||(N.MetadataVersion={}));var ES;(function(i){i[i.UNUSED=0]="UNUSED",i[i.DICTIONARY_REPLACEMENT=1]="DICTIONARY_REPLACEMENT",i[i.COMPRESSED_BODY=2]="COMPRESSED_BODY"})(ES=N.Feature||(N.Feature={}));var Lu;(function(i){i[i.Sparse=0]="Sparse",i[i.Dense=1]="Dense"})(Lu=N.UnionMode||(N.UnionMode={}));var qu;(function(i){i[i.HALF=0]="HALF",i[i.SINGLE=1]="SINGLE",i[i.DOUBLE=2]="DOUBLE"})(qu=N.Precision||(N.Precision={}));var zu;(function(i){i[i.DAY=0]="DAY",i[i.MILLISECOND=1]="MILLISECOND"})(zu=N.DateUnit||(N.DateUnit={}));var Cr;(function(i){i[i.SECOND=0]="SECOND",i[i.MILLISECOND=1]="MILLISECOND",i[i.MICROSECOND=2]="MICROSECOND",i[i.NANOSECOND=3]="NANOSECOND"})(Cr=N.TimeUnit||(N.TimeUnit={}));var Wu;(function(i){i[i.YEAR_MONTH=0]="YEAR_MONTH",i[i.DAY_TIME=1]="DAY_TIME"})(Wu=N.IntervalUnit||(N.IntervalUnit={}));var Hu;(function(i){i[i.NONE=0]="NONE",i[i.Null=1]="Null",i[i.Int=2]="Int",i[i.FloatingPoint=3]="FloatingPoint",i[i.Binary=4]="Binary",i[i.Utf8=5]="Utf8",i[i.Bool=6]="Bool",i[i.Decimal=7]="Decimal",i[i.Date=8]="Date",i[i.Time=9]="Time",i[i.Timestamp=10]="Timestamp",i[i.Interval=11]="Interval",i[i.List=12]="List",i[i.Struct_=13]="Struct_",i[i.Union=14]="Union",i[i.FixedSizeBinary=15]="FixedSizeBinary",i[i.FixedSizeList=16]="FixedSizeList",i[i.Map=17]="Map",i[i.Duration=18]="Duration",i[i.LargeBinary=19]="LargeBinary",i[i.LargeUtf8=20]="LargeUtf8",i[i.LargeList=21]="LargeList"})(Hu=N.Type||(N.Type={}));var Yu;(function(i){i[i.DenseArray=0]="DenseArray"})(Yu=N.DictionaryKind||(N.DictionaryKind={}));var $u;(function(i){i[i.Little=0]="Little",i[i.Big=1]="Big"})($u=N.Endianness||(N.Endianness={}));var Ur=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(e,t){return(t||new Ur).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ur).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return Ur.startNull(e),Ur.endNull(e)}};N.Null=Ur;var Vr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(e,t){return(t||new Vr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Vr).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return Vr.startStruct_(e),Vr.endStruct_(e)}};N.Struct_=Vr;var kr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(e,t){return(t||new kr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new kr).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return kr.startList(e),kr.endList(e)}};N.List=kr;var Rr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeList(e,t){return(t||new Rr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeList(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Rr).__init(e.readInt32(e.position())+e.position(),e)}static startLargeList(e){e.startObject(0)}static endLargeList(e){return e.endObject()}static createLargeList(e){return Rr.startLargeList(e),Rr.endLargeList(e)}};N.LargeList=Rr;var Li=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(e,t){return(t||new Li).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Li).__init(e.readInt32(e.position())+e.position(),e)}listSize(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,t){return Li.startFixedSizeList(e),Li.addListSize(e,t),Li.endFixedSizeList(e)}};N.FixedSizeList=Li;var qi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(e,t){return(t||new qi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new qi).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){let e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(e,t){return qi.startMap(e),qi.addKeysSorted(e,t),qi.endMap(e)}};N.Map=qi;var Ti=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(e,t){return(t||new Ti).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ti).__init(e.readInt32(e.position())+e.position(),e)}mode(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Lu.Sparse}typeIds(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+e*4):0}typeIdsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){let e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,t){e.addFieldInt16(0,t,Lu.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=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 Ti.startUnion(e),Ti.addMode(e,t),Ti.addTypeIds(e,r),Ti.endUnion(e)}};N.Union=Ti;var ti=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(e,t){return(t||new ti).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new ti).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(e,t,r){return ti.startInt(e),ti.addBitWidth(e,t),ti.addIsSigned(e,r),ti.endInt(e)}};N.Int=ti;var zi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(e,t){return(t||new zi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new zi).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):qu.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,qu.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return zi.startFloatingPoint(e),zi.addPrecision(e,t),zi.endFloatingPoint(e)}};N.FloatingPoint=zi;var Er=class{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 Er).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Er).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return Er.startUtf8(e),Er.endUtf8(e)}};N.Utf8=Er;var Nr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(e,t){return(t||new Nr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Nr).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return Nr.startBinary(e),Nr.endBinary(e)}};N.Binary=Nr;var Pr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeUtf8(e,t){return(t||new Pr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Pr).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return Pr.startLargeUtf8(e),Pr.endLargeUtf8(e)}};N.LargeUtf8=Pr;var xr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeBinary(e,t){return(t||new xr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new xr).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return xr.startLargeBinary(e),xr.endLargeBinary(e)}};N.LargeBinary=xr;var Wi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(e,t){return(t||new Wi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Wi).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,t){return Wi.startFixedSizeBinary(e),Wi.addByteWidth(e,t),Wi.endFixedSizeBinary(e)}};N.FixedSizeBinary=Wi;var Lr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(e,t){return(t||new Lr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Lr).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return Lr.startBool(e),Lr.endBool(e)}};N.Bool=Lr;var ii=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(e,t){return(t||new ii).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new ii).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,t){e.addFieldInt32(0,t,0)}static addScale(e,t){e.addFieldInt32(1,t,0)}static addBitWidth(e,t){e.addFieldInt32(2,t,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,t,r,n){return ii.startDecimal(e),ii.addPrecision(e,t),ii.addScale(e,r),ii.addBitWidth(e,n),ii.endDecimal(e)}};N.Decimal=ii;var Hi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(e,t){return(t||new Hi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Hi).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):zu.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,zu.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return Hi.startDate(e),Hi.addUnit(e,t),Hi.endDate(e)}};N.Date=Hi;var Si=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(e,t){return(t||new Si).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Si).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Cr.MILLISECOND}bitWidth(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Cr.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,r){return Si.startTime(e),Si.addUnit(e,t),Si.addBitWidth(e,r),Si.endTime(e)}};N.Time=Si;var Di=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(e,t){return(t||new Di).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Di).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Cr.SECOND}timezone(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,Cr.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,r){return Di.startTimestamp(e),Di.addUnit(e,t),Di.addTimezone(e,r),Di.endTimestamp(e)}};N.Timestamp=Di;var Yi=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(e,t){return(t||new Yi).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Yi).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Wu.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Wu.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,t){return Yi.startInterval(e),Yi.addUnit(e,t),Yi.endInterval(e)}};N.Interval=Yi;var $i=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDuration(e,t){return(t||new $i).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new $i).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Cr.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,Cr.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,t){return $i.startDuration(e),$i.addUnit(e,t),$i.endDuration(e)}};N.Duration=$i;var Wt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(e,t){return(t||new Wt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Wt).__init(e.readInt32(e.position())+e.position(),e)}key(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}value(e){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,t){e.addFieldOffset(0,t,0)}static addValue(e,t){e.addFieldOffset(1,t,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,t,r){return Wt.startKeyValue(e),Wt.addKey(e,t),Wt.addValue(e,r),Wt.endKeyValue(e)}};N.KeyValue=Wt;var wt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(e,t){return(t||new wt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new wt).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}indexType(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new ti).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isOrdered(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):Yu.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}static addIndexType(e,t){e.addFieldOffset(1,t,0)}static addIsOrdered(e,t){e.addFieldInt8(2,+t,0)}static addDictionaryKind(e,t){e.addFieldInt16(3,t,Yu.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}static createDictionaryEncoding(e,t,r,n,s){return wt.startDictionaryEncoding(e),wt.addId(e,t),wt.addIndexType(e,r),wt.addIsOrdered(e,n),wt.addDictionaryKind(e,s),wt.endDictionaryEncoding(e)}};N.DictionaryEncoding=wt;var ct=class{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 ct).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new ct).__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):Hu.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 wt).__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 ct).__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 Wt).__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,Hu.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()}static createField(e,t,r,n,s,u,m,j){return ct.startField(e),ct.addName(e,t),ct.addNullable(e,r),ct.addTypeType(e,n),ct.addType(e,s),ct.addDictionary(e,u),ct.addChildren(e,m),ct.addCustomMetadata(e,j),ct.endField(e)}};N.Field=ct;var m_=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static createBuffer(e,t,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(t),e.offset()}};N.Buffer=m_;var Ht=class{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 Ht).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+Se.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ht).__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):$u.Little}fields(e,t){let r=this.bb.__offset(this.bb_pos,6);return r?(t||new ct).__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 Wt).__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):this.bb.createLong(0,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,$u.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,s){return Ht.startSchema(e),Ht.addEndianness(e,t),Ht.addFields(e,r),Ht.addCustomMetadata(e,n),Ht.addFeatures(e,s),Ht.endSchema(e)}};N.Schema=Ht});var Io=C(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.Message=Le.DictionaryBatch=Le.RecordBatch=Le.BodyCompression=Le.FieldNode=Le.MessageHeader=Le.BodyCompressionMethod=Le.CompressionType=void 0;var wo=Ii(),Bo=Gi(),Gu;(function(i){i[i.LZ4_FRAME=0]="LZ4_FRAME",i[i.ZSTD=1]="ZSTD"})(Gu=Le.CompressionType||(Le.CompressionType={}));var Ju;(function(i){i[i.BUFFER=0]="BUFFER"})(Ju=Le.BodyCompressionMethod||(Le.BodyCompressionMethod={}));var Ku;(function(i){i[i.NONE=0]="NONE",i[i.Schema=1]="Schema",i[i.DictionaryBatch=2]="DictionaryBatch",i[i.RecordBatch=3]="RecordBatch",i[i.Tensor=4]="Tensor",i[i.SparseTensor=5]="SparseTensor"})(Ku=Le.MessageHeader||(Le.MessageHeader={}));var Zu=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static createFieldNode(e,t,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(t),e.offset()}};Le.FieldNode=Zu;var ri=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBodyCompression(e,t){return(t||new ri).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+wo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new ri).__init(e.readInt32(e.position())+e.position(),e)}codec(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):Gu.LZ4_FRAME}method(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):Ju.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,Gu.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,Ju.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,r){return ri.startBodyCompression(e),ri.addCodec(e,t),ri.addMethod(e,r),ri.endBodyCompression(e)}};Le.BodyCompression=ri;var Bt=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(e,t){return(t||new Bt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+wo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Bt).__init(e.readInt32(e.position())+e.position(),e)}length(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}nodes(e,t){let r=this.bb.__offset(this.bb_pos,6);return r?(t||new Zu).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}nodesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){let r=this.bb.__offset(this.bb_pos,8);return r?(t||new Bo.Buffer).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}buffersLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){let t=this.bb.__offset(this.bb_pos,10);return t?(e||new ri).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}static addNodes(e,t){e.addFieldOffset(1,t,0)}static startNodesVector(e,t){e.startVector(16,t,8)}static addBuffers(e,t){e.addFieldOffset(2,t,0)}static startBuffersVector(e,t){e.startVector(16,t,8)}static addCompression(e,t){e.addFieldOffset(3,t,0)}static endRecordBatch(e){return e.endObject()}static createRecordBatch(e,t,r,n,s){return Bt.startRecordBatch(e),Bt.addLength(e,t),Bt.addNodes(e,r),Bt.addBuffers(e,n),Bt.addCompression(e,s),Bt.endRecordBatch(e)}};Le.RecordBatch=Bt;var ni=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(e,t){return(t||new ni).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+wo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new ni).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}data(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new Bt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isDelta(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}static addData(e,t){e.addFieldOffset(1,t,0)}static addIsDelta(e,t){e.addFieldInt8(2,+t,0)}static endDictionaryBatch(e){return e.endObject()}static createDictionaryBatch(e,t,r,n){return ni.startDictionaryBatch(e),ni.addId(e,t),ni.addData(e,r),ni.addIsDelta(e,n),ni.endDictionaryBatch(e)}};Le.DictionaryBatch=ni;var It=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(e,t){return(t||new It).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+wo.flatbuffers.SIZE_PREFIX_LENGTH),(t||new It).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Bo.MetadataVersion.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):Ku.NONE}header(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,12);return r?(t||new Bo.KeyValue).__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,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,Bo.MetadataVersion.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,Ku.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,e.createLong(0,0))}static addCustomMetadata(e,t){e.addFieldOffset(4,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 endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(e,t,r,n,s,u){return It.startMessage(e),It.addVersion(e,t),It.addHeaderType(e,r),It.addHeader(e,n),It.addBodyLength(e,s),It.addCustomMetadata(e,u),It.endMessage(e)}};Le.Message=It});var Ie=C(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.BufferType=Ue.Type=Ue.MessageHeader=Ue.MetadataVersion=Ue.IntervalUnit=Ue.UnionMode=Ue.Precision=Ue.TimeUnit=Ue.DateUnit=void 0;var dn=Gi();Object.defineProperty(Ue,"DateUnit",{enumerable:!0,get:function(){return dn.DateUnit}});Object.defineProperty(Ue,"TimeUnit",{enumerable:!0,get:function(){return dn.TimeUnit}});Object.defineProperty(Ue,"Precision",{enumerable:!0,get:function(){return dn.Precision}});Object.defineProperty(Ue,"UnionMode",{enumerable:!0,get:function(){return dn.UnionMode}});Object.defineProperty(Ue,"IntervalUnit",{enumerable:!0,get:function(){return dn.IntervalUnit}});Object.defineProperty(Ue,"MetadataVersion",{enumerable:!0,get:function(){return dn.MetadataVersion}});var NS=Io();Object.defineProperty(Ue,"MessageHeader",{enumerable:!0,get:function(){return NS.MessageHeader}});var PS;(function(i){i[i.NONE=0]="NONE",i[i.Null=1]="Null",i[i.Int=2]="Int",i[i.Float=3]="Float",i[i.Binary=4]="Binary",i[i.Utf8=5]="Utf8",i[i.Bool=6]="Bool",i[i.Decimal=7]="Decimal",i[i.Date=8]="Date",i[i.Time=9]="Time",i[i.Timestamp=10]="Timestamp",i[i.Interval=11]="Interval",i[i.List=12]="List",i[i.Struct=13]="Struct",i[i.Union=14]="Union",i[i.FixedSizeBinary=15]="FixedSizeBinary",i[i.FixedSizeList=16]="FixedSizeList",i[i.Map=17]="Map",i[i.Dictionary=-1]="Dictionary",i[i.Int8=-2]="Int8",i[i.Int16=-3]="Int16",i[i.Int32=-4]="Int32",i[i.Int64=-5]="Int64",i[i.Uint8=-6]="Uint8",i[i.Uint16=-7]="Uint16",i[i.Uint32=-8]="Uint32",i[i.Uint64=-9]="Uint64",i[i.Float16=-10]="Float16",i[i.Float32=-11]="Float32",i[i.Float64=-12]="Float64",i[i.DateDay=-13]="DateDay",i[i.DateMillisecond=-14]="DateMillisecond",i[i.TimestampSecond=-15]="TimestampSecond",i[i.TimestampMillisecond=-16]="TimestampMillisecond",i[i.TimestampMicrosecond=-17]="TimestampMicrosecond",i[i.TimestampNanosecond=-18]="TimestampNanosecond",i[i.TimeSecond=-19]="TimeSecond",i[i.TimeMillisecond=-20]="TimeMillisecond",i[i.TimeMicrosecond=-21]="TimeMicrosecond",i[i.TimeNanosecond=-22]="TimeNanosecond",i[i.DenseUnion=-23]="DenseUnion",i[i.SparseUnion=-24]="SparseUnion",i[i.IntervalDayTime=-25]="IntervalDayTime",i[i.IntervalYearMonth=-26]="IntervalYearMonth"})(PS=Ue.Type||(Ue.Type={}));var xS;(function(i){i[i.OFFSET=0]="OFFSET",i[i.DATA=1]="DATA",i[i.VALIDITY=2]="VALIDITY",i[i.TYPE=3]="TYPE"})(xS=Ue.BufferType||(Ue.BufferType={}))});var si=C(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.popcnt_uint32=We.popcnt_array=We.popcnt_bit_range=We.BitIterator=We.packBools=We.truncateBitmap=We.setBool=We.getBit=We.getBool=void 0;function b_(i,e,t,r){return(t&1<<r)!=0}We.getBool=b_;function g_(i,e,t,r){return(t&1<<r)>>r}We.getBit=g_;function LS(i,e,t){return t?!!(i[e>>3]|=1<<e%8)||!0:!(i[e>>3]&=~(1<<e%8))&&!1}We.setBool=LS;function qS(i,e,t){let r=t.byteLength+7&~7;if(i>0||t.byteLength<r){let n=new Uint8Array(r);return n.set(i%8==0?t.subarray(i>>3):v_(new To(t,i,e,null,b_)).subarray(0,r)),n}return t}We.truncateBitmap=qS;function v_(i){let e=[],t=0,r=0,n=0;for(let u of i)u&&(n|=1<<r),++r==8&&(e[t++]=n,n=r=0);(t===0||r>0)&&(e[t++]=n);let s=new Uint8Array(e.length+7&~7);return s.set(e),s}We.packBools=v_;var To=class{constructor(e,t,r,n,s){this.bytes=e,this.length=r,this.context=n,this.get=s,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}};We.BitIterator=To;function Xu(i,e,t){if(t-e<=0)return 0;if(t-e<8){let s=0;for(let u of new To(i,e,t-e,i,g_))s+=u;return s}let r=t>>3<<3,n=e+(e%8==0?0:8-e%8);return Xu(i,e,n)+Xu(i,r,t)+j_(i,n>>3,r-n>>3)}We.popcnt_bit_range=Xu;function j_(i,e,t){let r=0,n=e|0,s=new DataView(i.buffer,i.byteOffset,i.byteLength),u=t===void 0?i.byteLength:n+t;for(;u-n>=4;)r+=So(s.getUint32(n)),n+=4;for(;u-n>=2;)r+=So(s.getUint16(n)),n+=2;for(;u-n>=1;)r+=So(s.getUint8(n)),n+=1;return r}We.popcnt_array=j_;function So(i){let e=i|0;return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}We.popcnt_uint32=So});var me=C(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.strideForType=k.Dictionary=k.Map_=k.FixedSizeList=k.FixedSizeBinary=k.SparseUnion=k.DenseUnion=k.Union=k.Struct=k.List=k.IntervalYearMonth=k.IntervalDayTime=k.Interval=k.TimestampNanosecond=k.TimestampMicrosecond=k.TimestampMillisecond=k.TimestampSecond=k.Timestamp=k.TimeNanosecond=k.TimeMicrosecond=k.TimeMillisecond=k.TimeSecond=k.Time=k.DateMillisecond=k.DateDay=k.Date_=k.Decimal=k.Bool=k.Utf8=k.Binary=k.Float64=k.Float32=k.Float16=k.Float=k.Uint64=k.Uint32=k.Uint16=k.Uint8=k.Int64=k.Int32=k.Int16=k.Int8=k.Int=k.Null=k.DataType=void 0;var L=Ie(),Ve=class{static isNull(e){return(e==null?void 0:e.typeId)===L.Type.Null}static isInt(e){return(e==null?void 0:e.typeId)===L.Type.Int}static isFloat(e){return(e==null?void 0:e.typeId)===L.Type.Float}static isBinary(e){return(e==null?void 0:e.typeId)===L.Type.Binary}static isUtf8(e){return(e==null?void 0:e.typeId)===L.Type.Utf8}static isBool(e){return(e==null?void 0:e.typeId)===L.Type.Bool}static isDecimal(e){return(e==null?void 0:e.typeId)===L.Type.Decimal}static isDate(e){return(e==null?void 0:e.typeId)===L.Type.Date}static isTime(e){return(e==null?void 0:e.typeId)===L.Type.Time}static isTimestamp(e){return(e==null?void 0:e.typeId)===L.Type.Timestamp}static isInterval(e){return(e==null?void 0:e.typeId)===L.Type.Interval}static isList(e){return(e==null?void 0:e.typeId)===L.Type.List}static isStruct(e){return(e==null?void 0:e.typeId)===L.Type.Struct}static isUnion(e){return(e==null?void 0:e.typeId)===L.Type.Union}static isFixedSizeBinary(e){return(e==null?void 0:e.typeId)===L.Type.FixedSizeBinary}static isFixedSizeList(e){return(e==null?void 0:e.typeId)===L.Type.FixedSizeList}static isMap(e){return(e==null?void 0:e.typeId)===L.Type.Map}static isDictionary(e){return(e==null?void 0:e.typeId)===L.Type.Dictionary}get typeId(){return L.Type.NONE}};k.DataType=Ve;Ve[Symbol.toStringTag]=(i=>(i.children=null,i.ArrayType=Array,i[Symbol.toStringTag]="DataType"))(Ve.prototype);var Do=class extends Ve{toString(){return"Null"}get typeId(){return L.Type.Null}};k.Null=Do;Do[Symbol.toStringTag]=(i=>i[Symbol.toStringTag]="Null")(Do.prototype);var Tt=class extends Ve{constructor(e,t){super();this.isSigned=e,this.bitWidth=t}get typeId(){return L.Type.Int}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?Int32Array:Uint32Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};k.Int=Tt;Tt[Symbol.toStringTag]=(i=>(i.isSigned=null,i.bitWidth=null,i[Symbol.toStringTag]="Int"))(Tt.prototype);var Qu=class extends Tt{constructor(){super(!0,8)}};k.Int8=Qu;var ec=class extends Tt{constructor(){super(!0,16)}};k.Int16=ec;var tc=class extends Tt{constructor(){super(!0,32)}};k.Int32=tc;var ic=class extends Tt{constructor(){super(!0,64)}};k.Int64=ic;var rc=class extends Tt{constructor(){super(!1,8)}};k.Uint8=rc;var nc=class extends Tt{constructor(){super(!1,16)}};k.Uint16=nc;var sc=class extends Tt{constructor(){super(!1,32)}};k.Uint32=sc;var oc=class extends Tt{constructor(){super(!1,64)}};k.Uint64=oc;Object.defineProperty(Qu.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(ec.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(tc.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(ic.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(rc.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(nc.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(sc.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(oc.prototype,"ArrayType",{value:Uint32Array});var qr=class extends Ve{constructor(e){super();this.precision=e}get typeId(){return L.Type.Float}get ArrayType(){switch(this.precision){case L.Precision.HALF:return Uint16Array;case L.Precision.SINGLE:return Float32Array;case L.Precision.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};k.Float=qr;qr[Symbol.toStringTag]=(i=>(i.precision=null,i[Symbol.toStringTag]="Float"))(qr.prototype);var ac=class extends qr{constructor(){super(L.Precision.HALF)}};k.Float16=ac;var uc=class extends qr{constructor(){super(L.Precision.SINGLE)}};k.Float32=uc;var cc=class extends qr{constructor(){super(L.Precision.DOUBLE)}};k.Float64=cc;Object.defineProperty(ac.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(uc.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(cc.prototype,"ArrayType",{value:Float64Array});var Ao=class extends Ve{constructor(){super()}get typeId(){return L.Type.Binary}toString(){return"Binary"}};k.Binary=Ao;Ao[Symbol.toStringTag]=(i=>(i.ArrayType=Uint8Array,i[Symbol.toStringTag]="Binary"))(Ao.prototype);var Oo=class extends Ve{constructor(){super()}get typeId(){return L.Type.Utf8}toString(){return"Utf8"}};k.Utf8=Oo;Oo[Symbol.toStringTag]=(i=>(i.ArrayType=Uint8Array,i[Symbol.toStringTag]="Utf8"))(Oo.prototype);var Fo=class extends Ve{constructor(){super()}get typeId(){return L.Type.Bool}toString(){return"Bool"}};k.Bool=Fo;Fo[Symbol.toStringTag]=(i=>(i.ArrayType=Uint8Array,i[Symbol.toStringTag]="Bool"))(Fo.prototype);var Mo=class extends Ve{constructor(e,t){super();this.scale=e,this.precision=t}get typeId(){return L.Type.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};k.Decimal=Mo;Mo[Symbol.toStringTag]=(i=>(i.scale=null,i.precision=null,i.ArrayType=Uint32Array,i[Symbol.toStringTag]="Decimal"))(Mo.prototype);var fn=class extends Ve{constructor(e){super();this.unit=e}get typeId(){return L.Type.Date}toString(){return`Date${(this.unit+1)*32}<${L.DateUnit[this.unit]}>`}};k.Date_=fn;fn[Symbol.toStringTag]=(i=>(i.unit=null,i.ArrayType=Int32Array,i[Symbol.toStringTag]="Date"))(fn.prototype);var w_=class extends fn{constructor(){super(L.DateUnit.DAY)}};k.DateDay=w_;var B_=class extends fn{constructor(){super(L.DateUnit.MILLISECOND)}};k.DateMillisecond=B_;var Ji=class extends Ve{constructor(e,t){super();this.unit=e,this.bitWidth=t}get typeId(){return L.Type.Time}toString(){return`Time${this.bitWidth}<${L.TimeUnit[this.unit]}>`}};k.Time=Ji;Ji[Symbol.toStringTag]=(i=>(i.unit=null,i.bitWidth=null,i.ArrayType=Int32Array,i[Symbol.toStringTag]="Time"))(Ji.prototype);var I_=class extends Ji{constructor(){super(L.TimeUnit.SECOND,32)}};k.TimeSecond=I_;var T_=class extends Ji{constructor(){super(L.TimeUnit.MILLISECOND,32)}};k.TimeMillisecond=T_;var S_=class extends Ji{constructor(){super(L.TimeUnit.MICROSECOND,64)}};k.TimeMicrosecond=S_;var D_=class extends Ji{constructor(){super(L.TimeUnit.NANOSECOND,64)}};k.TimeNanosecond=D_;var Ki=class extends Ve{constructor(e,t){super();this.unit=e,this.timezone=t}get typeId(){return L.Type.Timestamp}toString(){return`Timestamp<${L.TimeUnit[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};k.Timestamp=Ki;Ki[Symbol.toStringTag]=(i=>(i.unit=null,i.timezone=null,i.ArrayType=Int32Array,i[Symbol.toStringTag]="Timestamp"))(Ki.prototype);var A_=class extends Ki{constructor(e){super(L.TimeUnit.SECOND,e)}};k.TimestampSecond=A_;var O_=class extends Ki{constructor(e){super(L.TimeUnit.MILLISECOND,e)}};k.TimestampMillisecond=O_;var F_=class extends Ki{constructor(e){super(L.TimeUnit.MICROSECOND,e)}};k.TimestampMicrosecond=F_;var M_=class extends Ki{constructor(e){super(L.TimeUnit.NANOSECOND,e)}};k.TimestampNanosecond=M_;var hn=class extends Ve{constructor(e){super();this.unit=e}get typeId(){return L.Type.Interval}toString(){return`Interval<${L.IntervalUnit[this.unit]}>`}};k.Interval=hn;hn[Symbol.toStringTag]=(i=>(i.unit=null,i.ArrayType=Int32Array,i[Symbol.toStringTag]="Interval"))(hn.prototype);var C_=class extends hn{constructor(){super(L.IntervalUnit.DAY_TIME)}};k.IntervalDayTime=C_;var U_=class extends hn{constructor(){super(L.IntervalUnit.YEAR_MONTH)}};k.IntervalYearMonth=U_;var Co=class extends Ve{constructor(e){super();this.children=[e]}get typeId(){return L.Type.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};k.List=Co;Co[Symbol.toStringTag]=(i=>(i.children=null,i[Symbol.toStringTag]="List"))(Co.prototype);var Uo=class extends Ve{constructor(e){super();this.children=e}get typeId(){return L.Type.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};k.Struct=Uo;Uo[Symbol.toStringTag]=(i=>(i.children=null,i[Symbol.toStringTag]="Struct"))(Uo.prototype);var pn=class extends Ve{constructor(e,t,r){super();this.mode=e,this.children=r,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((n,s,u)=>(n[s]=u)&&n||n,Object.create(null))}get typeId(){return L.Type.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}};k.Union=pn;pn[Symbol.toStringTag]=(i=>(i.mode=null,i.typeIds=null,i.children=null,i.typeIdToChildIndex=null,i.ArrayType=Int8Array,i[Symbol.toStringTag]="Union"))(pn.prototype);var V_=class extends pn{constructor(e,t){super(L.UnionMode.Dense,e,t)}};k.DenseUnion=V_;var k_=class extends pn{constructor(e,t){super(L.UnionMode.Sparse,e,t)}};k.SparseUnion=k_;var Vo=class extends Ve{constructor(e){super();this.byteWidth=e}get typeId(){return L.Type.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};k.FixedSizeBinary=Vo;Vo[Symbol.toStringTag]=(i=>(i.byteWidth=null,i.ArrayType=Uint8Array,i[Symbol.toStringTag]="FixedSizeBinary"))(Vo.prototype);var ko=class extends Ve{constructor(e,t){super();this.listSize=e,this.children=[t]}get typeId(){return L.Type.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};k.FixedSizeList=ko;ko[Symbol.toStringTag]=(i=>(i.children=null,i.listSize=null,i[Symbol.toStringTag]="FixedSizeList"))(ko.prototype);var Ro=class extends Ve{constructor(e,t=!1){super();this.children=[e],this.keysSorted=t}get typeId(){return L.Type.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};k.Map_=Ro;Ro[Symbol.toStringTag]=(i=>(i.children=null,i.keysSorted=null,i[Symbol.toStringTag]="Map_"))(Ro.prototype);var zS=(i=>()=>++i)(-1),Eo=class extends Ve{constructor(e,t,r,n){super();this.indices=t,this.dictionary=e,this.isOrdered=n||!1,this.id=r==null?zS():typeof r=="number"?r:r.low}get typeId(){return L.Type.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};k.Dictionary=Eo;Eo[Symbol.toStringTag]=(i=>(i.id=null,i.indices=null,i.isOrdered=null,i.dictionary=null,i[Symbol.toStringTag]="Dictionary"))(Eo.prototype);function WS(i){let e=i;switch(i.typeId){case L.Type.Decimal:return 4;case L.Type.Timestamp:return 2;case L.Type.Date:return 1+e.unit;case L.Type.Interval:return 1+e.unit;case L.Type.Int:return 1+ +(e.bitWidth>32);case L.Type.Time:return 1+ +(e.bitWidth>32);case L.Type.FixedSizeList:return e.listSize;case L.Type.FixedSizeBinary:return e.byteWidth;default:return 1}}k.strideForType=WS});var Yt=C(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.Data=zr.kUnknownNullCount=void 0;var HS=si(),YS=si(),W=Ie(),$S=me(),he=Ge();zr.kUnknownNullCount=-1;var ie=class{constructor(e,t,r,n,s,u,m){this.type=e,this.dictionary=m,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1)),this.childData=(u||[]).map(S=>S instanceof ie?S:S.data);let j;s instanceof ie?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=$S.strideForType(e),s&&((j=s[0])&&(this.valueOffsets=j),(j=s[1])&&(this.values=j),(j=s[2])&&(this.nullBitmap=j),(j=s[3])&&(this.typeIds=j)))}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0,{valueOffsets:t,values:r,nullBitmap:n,typeIds:s}=this;return t&&(e+=t.byteLength),r&&(e+=r.byteLength),n&&(e+=n.byteLength),s&&(e+=s.byteLength),this.childData.reduce((u,m)=>u+m.byteLength,e)}get nullCount(){let e=this._nullCount,t;return e<=zr.kUnknownNullCount&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-YS.popcnt_bit_range(t,this.offset,this.offset+this.length)),e}clone(e,t=this.offset,r=this.length,n=this._nullCount,s=this,u=this.childData){return new ie(e,t,r,n,s,u,this.dictionary)}slice(e,t){let{stride:r,typeId:n,childData:s}=this,u=+(this._nullCount===0)-1,m=n===16?r:1,j=this._sliceBuffers(e,t,r,n);return this.clone(this.type,this.offset+e,t,u,j,!s.length||this.valueOffsets?s:this._sliceChildren(s,m*e,m*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===W.Type.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:r}=this,n=new Uint8Array((e+63&~63)>>3).fill(255,0,t>>3);n[t>>3]=(1<<t-(t&~7))-1,r>0&&n.set(HS.truncateBitmap(this.offset,t,this.nullBitmap),0);let s=this.buffers;return s[W.BufferType.VALIDITY]=n,this.clone(this.type,0,e,r+(e-t),s)}_sliceBuffers(e,t,r,n){let s,{buffers:u}=this;return(s=u[W.BufferType.TYPE])&&(u[W.BufferType.TYPE]=s.subarray(e,e+t)),(s=u[W.BufferType.OFFSET])&&(u[W.BufferType.OFFSET]=s.subarray(e,e+t+1))||(s=u[W.BufferType.DATA])&&(u[W.BufferType.DATA]=n===6?s:s.subarray(r*e,r*(e+t))),u}_sliceChildren(e,t,r){return e.map(n=>n.slice(t,r))}static new(e,t,r,n,s,u,m){switch(s instanceof ie?s=s.buffers:s||(s=[]),e.typeId){case W.Type.Null:return ie.Null(e,t,r);case W.Type.Int:return ie.Int(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[]);case W.Type.Dictionary:return ie.Dictionary(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[],m);case W.Type.Float:return ie.Float(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[]);case W.Type.Bool:return ie.Bool(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[]);case W.Type.Decimal:return ie.Decimal(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[]);case W.Type.Date:return ie.Date(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[]);case W.Type.Time:return ie.Time(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[]);case W.Type.Timestamp:return ie.Timestamp(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[]);case W.Type.Interval:return ie.Interval(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[]);case W.Type.FixedSizeBinary:return ie.FixedSizeBinary(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.DATA]||[]);case W.Type.Binary:return ie.Binary(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.OFFSET]||[],s[W.BufferType.DATA]||[]);case W.Type.Utf8:return ie.Utf8(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.OFFSET]||[],s[W.BufferType.DATA]||[]);case W.Type.List:return ie.List(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.OFFSET]||[],(u||[])[0]);case W.Type.FixedSizeList:return ie.FixedSizeList(e,t,r,n||0,s[W.BufferType.VALIDITY],(u||[])[0]);case W.Type.Struct:return ie.Struct(e,t,r,n||0,s[W.BufferType.VALIDITY],u||[]);case W.Type.Map:return ie.Map(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.OFFSET]||[],(u||[])[0]);case W.Type.Union:return ie.Union(e,t,r,n||0,s[W.BufferType.VALIDITY],s[W.BufferType.TYPE]||[],s[W.BufferType.OFFSET]||u,u)}throw new Error(`Unrecognized typeId ${e.typeId}`)}static Null(e,t,r){return new ie(e,t,r,0)}static Int(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.ArrayType,u),he.toUint8Array(s)])}static Dictionary(e,t,r,n,s,u,m){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.indices.ArrayType,u),he.toUint8Array(s)],[],m)}static Float(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.ArrayType,u),he.toUint8Array(s)])}static Bool(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.ArrayType,u),he.toUint8Array(s)])}static Decimal(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.ArrayType,u),he.toUint8Array(s)])}static Date(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.ArrayType,u),he.toUint8Array(s)])}static Time(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.ArrayType,u),he.toUint8Array(s)])}static Timestamp(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.ArrayType,u),he.toUint8Array(s)])}static Interval(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.ArrayType,u),he.toUint8Array(s)])}static FixedSizeBinary(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,he.toArrayBufferView(e.ArrayType,u),he.toUint8Array(s)])}static Binary(e,t,r,n,s,u,m){return new ie(e,t,r,n,[he.toInt32Array(u),he.toUint8Array(m),he.toUint8Array(s)])}static Utf8(e,t,r,n,s,u,m){return new ie(e,t,r,n,[he.toInt32Array(u),he.toUint8Array(m),he.toUint8Array(s)])}static List(e,t,r,n,s,u,m){return new ie(e,t,r,n,[he.toInt32Array(u),void 0,he.toUint8Array(s)],m?[m]:[])}static FixedSizeList(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,void 0,he.toUint8Array(s)],u?[u]:[])}static Struct(e,t,r,n,s,u){return new ie(e,t,r,n,[void 0,void 0,he.toUint8Array(s)],u)}static Map(e,t,r,n,s,u,m){return new ie(e,t,r,n,[he.toInt32Array(u),void 0,he.toUint8Array(s)],m?[m]:[])}static Union(e,t,r,n,s,u,m,j){let S=[void 0,void 0,he.toUint8Array(s),he.toArrayBufferView(e.ArrayType,u)];return e.mode===W.UnionMode.Sparse?new ie(e,t,r,n,S,m):(S[W.BufferType.OFFSET]=he.toInt32Array(m),new ie(e,t,r,n,S,j))}};zr.Data=ie;ie.prototype.childData=Object.freeze([])});var lc=C(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.valueToString=void 0;var GS=void 0;function JS(i){if(i===null)return"null";if(i===GS)return"undefined";switch(typeof i){case"number":return`${i}`;case"bigint":return`${i}`;case"string":return`"${i}"`}return typeof i[Symbol.toPrimitive]=="function"?i[Symbol.toPrimitive]("string"):ArrayBuffer.isView(i)?`[${i}]`:JSON.stringify(i)}No.valueToString=JS});var R_=C(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.createIsValidFunction=void 0;var dc=lc(),KS=ut();function ZS(i){if(!i||i.length<=0)return function(n){return!0};let e="",t=i.filter(r=>r===r);return t.length>0&&(e=`
|
|
2
|
-
switch (x) {${t.map(r=>`
|
|
3
|
-
case ${XS(r)}:`).join("")}
|
|
4
|
-
return false;
|
|
5
|
-
}`),i.length!==t.length&&(e=`if (x !== x) return false;
|
|
6
|
-
${e}`),new Function("x",`${e}
|
|
7
|
-
return true;`)}Po.createIsValidFunction=ZS;function XS(i){return typeof i!="bigint"?dc.valueToString(i):KS.BigIntAvailable?`${dc.valueToString(i)}n`:`"${dc.valueToString(i)}"`}});var Zi=C(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.WideBufferBuilder=St.OffsetsBufferBuilder=St.BitmapBufferBuilder=St.DataBufferBuilder=St.BufferBuilder=void 0;var E_=Ge(),fc=ut(),hc=(i,e)=>(i*e+63&~63||64)/e,QS=(i,e=0)=>i.length>=e?i.subarray(0,e):E_.memcpy(new i.constructor(e),i,0),ys=class{constructor(e,t=1){this.buffer=e,this.stride=t,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e.constructor,this._resize(this.length=e.length/t|0)}get byteLength(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(e,t){return this}append(e){return this.set(this.length,e)}reserve(e){if(e>0){this.length+=e;let t=this.stride,r=this.length*t,n=this.buffer.length;r>=n&&this._resize(n===0?hc(r*1,this.BYTES_PER_ELEMENT):hc(r*2,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=hc(e*this.stride,this.BYTES_PER_ELEMENT);let t=QS(this.buffer,e);return this.clear(),t}clear(){return this.length=0,this._resize(0),this}_resize(e){return this.buffer=E_.memcpy(new this.ArrayType(e),this.buffer)}};St.BufferBuilder=ys;ys.prototype.offset=0;var xo=class extends ys{last(){return this.get(this.length-1)}get(e){return this.buffer[e]}set(e,t){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=t,this}};St.DataBufferBuilder=xo;var N_=class extends xo{constructor(e=new Uint8Array(0)){super(e,1/8);this.numValid=0}get numInvalid(){return this.length-this.numValid}get(e){return this.buffer[e>>3]>>e%8&1}set(e,t){let{buffer:r}=this.reserve(e-this.length+1),n=e>>3,s=e%8,u=r[n]>>s&1;return t?u===0&&(r[n]|=1<<s,++this.numValid):u===1&&(r[n]&=~(1<<s),--this.numValid),this}clear(){return this.numValid=0,super.clear()}};St.BitmapBufferBuilder=N_;var P_=class extends xo{constructor(e=new Int32Array(1)){super(e,1)}append(e){return this.set(this.length-1,e)}set(e,t){let r=this.length-1,n=this.reserve(e-r+1).buffer;return r<e++&&n.fill(n[r],r,e),n[e]=n[e-1]+t,this}flush(e=this.length-1){return e>this.length&&this.set(e-1,0),super.flush(e+1)}};St.OffsetsBufferBuilder=P_;var x_=class extends ys{get ArrayType64(){return this._ArrayType64||(this._ArrayType64=this.buffer instanceof Int32Array?fc.BigInt64Array:fc.BigUint64Array)}set(e,t){switch(this.reserve(e-this.length+1),typeof t){case"bigint":this.buffer64[e]=t;break;case"number":this.buffer[e*this.stride]=t;break;default:this.buffer.set(t,e*this.stride)}return this}_resize(e){let t=super._resize(e),r=t.byteLength/(this.BYTES_PER_ELEMENT*this.stride);return fc.BigIntAvailable&&(this.buffer64=new this.ArrayType64(t.buffer,t.byteOffset,r)),t}};St.WideBufferBuilder=x_});var ke=C(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.VariableWidthBuilder=Xi.FixedWidthBuilder=Xi.Builder=void 0;var yn=at(),eD=xe(),_n=Ie(),tD=Yt(),iD=R_(),pc=Zi(),rD=me(),Dt=class{constructor({type:e,nullValues:t}){this.length=0,this.finished=!1,this.type=e,this.children=[],this.nullValues=t,this.stride=rD.strideForType(e),this._nulls=new pc.BitmapBufferBuilder,t&&t.length>0&&(this._isValid=iD.createIsValidFunction(t))}static new(e){}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e){throw new Error('"throughDOM" not available in this environment')}static throughIterable(e){return nD(e)}static throughAsyncIterable(e){return sD(e)}toVector(){return eD.Vector.new(this.flush())}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let e=0;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),this._typeIds&&(e+=this._typeIds.byteLength),this.children.reduce((t,r)=>t+r.byteLength,e)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let e=0;return this._offsets&&(e+=this._offsets.reservedByteLength),this._values&&(e+=this._values.reservedByteLength),this._nulls&&(e+=this._nulls.reservedByteLength),this._typeIds&&(e+=this._typeIds.reservedByteLength),this.children.reduce((t,r)=>t+r.reservedByteLength,e)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(e){return this.set(this.length,e)}isValid(e){return this._isValid(e)}set(e,t){return this.setValid(e,this.isValid(t))&&this.setValue(e,t),this}setValue(e,t){this._setValue(this,e,t)}setValid(e,t){return this.length=this._nulls.set(e,+t).length,t}addChild(e,t=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(e){return this.children[e]||null}flush(){let e=[],t=this._values,r=this._offsets,n=this._typeIds,{length:s,nullCount:u}=this;n?(e[_n.BufferType.TYPE]=n.flush(s),r&&(e[_n.BufferType.OFFSET]=r.flush(s))):r?(t&&(e[_n.BufferType.DATA]=t.flush(r.last())),e[_n.BufferType.OFFSET]=r.flush(s)):t&&(e[_n.BufferType.DATA]=t.flush(s)),u>0&&(e[_n.BufferType.VALIDITY]=this._nulls.flush(s));let m=tD.Data.new(this.type,0,s,u,e,this.children.map(j=>j.flush()));return this.clear(),m}finish(){return this.finished=!0,this.children.forEach(e=>e.finish()),this}clear(){return this.length=0,this._offsets&&this._offsets.clear(),this._values&&this._values.clear(),this._nulls&&this._nulls.clear(),this._typeIds&&this._typeIds.clear(),this.children.forEach(e=>e.clear()),this}};Xi.Builder=Dt;Dt.prototype.length=1;Dt.prototype.stride=1;Dt.prototype.children=null;Dt.prototype.finished=!1;Dt.prototype.nullValues=null;Dt.prototype._isValid=()=>!0;var L_=class extends Dt{constructor(e){super(e);this._values=new pc.DataBufferBuilder(new this.ArrayType(0),this.stride)}setValue(e,t){let r=this._values;return r.reserve(e-r.length+1),super.setValue(e,t)}};Xi.FixedWidthBuilder=L_;var q_=class extends Dt{constructor(e){super(e);this._pendingLength=0,this._offsets=new pc.OffsetsBufferBuilder}setValue(e,t){let r=this._pending||(this._pending=new Map),n=r.get(e);n&&(this._pendingLength-=n.length),this._pendingLength+=t.length,r.set(e,t)}setValid(e,t){return super.setValid(e,t)?!0:((this._pending||(this._pending=new Map)).set(e,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let e=this._pending,t=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,t),this}};Xi.VariableWidthBuilder=q_;function nD(i){let{["queueingStrategy"]:e="count"}=i,{["highWaterMark"]:t=e!=="bytes"?1e3:Math.pow(2,14)}=i,r=e!=="bytes"?"length":"byteLength";return function*(n){let s=0,u=Dt.new(i);for(let m of n)u.append(m)[r]>=t&&++s&&(yield u.toVector());(u.finish().length>0||s===0)&&(yield u.toVector())}}function sD(i){let{["queueingStrategy"]:e="count"}=i,{["highWaterMark"]:t=e!=="bytes"?1e3:Math.pow(2,14)}=i,r=e!=="bytes"?"length":"byteLength";return function(n){return yn.__asyncGenerator(this,arguments,function*(){var s,u;let m=0,j=Dt.new(i);try{for(var S=yn.__asyncValues(n),A;A=yield yn.__await(S.next()),!A.done;){let P=A.value;j.append(P)[r]>=t&&++m&&(yield yield yn.__await(j.toVector()))}}catch(P){s={error:P}}finally{try{A&&!A.done&&(u=S.return)&&(yield yn.__await(u.call(S)))}finally{if(s)throw s.error}}(j.finish().length>0||m===0)&&(yield yield yn.__await(j.toVector()))})}}});var yc=C(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.BoolBuilder=void 0;var oD=Zi(),aD=ke(),z_=class extends aD.Builder{constructor(e){super(e);this._values=new oD.BitmapBufferBuilder}setValue(e,t){this._values.set(e,+t)}};Lo.BoolBuilder=z_});var _c=C(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.NullBuilder=void 0;var uD=ke(),W_=class extends uD.Builder{setValue(e,t){}setValid(e,t){return this.length=Math.max(e+1,this.length),t}};qo.NullBuilder=W_});var mc=C(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.DateMillisecondBuilder=Qi.DateDayBuilder=Qi.DateBuilder=void 0;var cD=ke(),zo=class extends cD.FixedWidthBuilder{};Qi.DateBuilder=zo;var H_=class extends zo{};Qi.DateDayBuilder=H_;var Y_=class extends zo{};Qi.DateMillisecondBuilder=Y_});var bc=C(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.DecimalBuilder=void 0;var lD=ke(),$_=class extends lD.FixedWidthBuilder{};Wo.DecimalBuilder=$_});var vc=C(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.DictionaryBuilder=void 0;var dD=me(),gc=ke(),G_=class extends gc.Builder{constructor({type:e,nullValues:t,dictionaryHashFunction:r}){super({type:new dD.Dictionary(e.dictionary,e.indices,e.id,e.isOrdered)});this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=gc.Builder.new({type:this.type.indices,nullValues:t}),this.dictionary=gc.Builder.new({type:this.type.dictionary,nullValues:null}),typeof r=="function"&&(this.valueToKey=r)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(e){return this.indices.isValid(e)}setValid(e,t){let r=this.indices;return t=r.setValid(e,t),this.length=r.length,t}setValue(e,t){let r=this._keysToIndices,n=this.valueToKey(t),s=r[n];return s===void 0&&(r[n]=s=this._dictionaryOffset+this.dictionary.append(t).length-1),this.indices.setValue(e,s)}flush(){let e=this.type,t=this._dictionary,r=this.dictionary.toVector(),n=this.indices.flush().clone(e);return n.dictionary=t?t.concat(r):r,this.finished||(this._dictionaryOffset+=r.length),this._dictionary=n.dictionary,this.clear(),n}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(e){return typeof e=="string"?e:`${e}`}};Ho.DictionaryBuilder=G_});var jc=C(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.FixedSizeBinaryBuilder=void 0;var fD=ke(),J_=class extends fD.FixedWidthBuilder{};Yo.FixedSizeBinaryBuilder=J_});var _s=C(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.float64ToUint16=bn.uint16ToFloat64=void 0;var K_=new Float64Array(1),mn=new Uint32Array(K_.buffer);function hD(i){let e=(i&31744)>>10,t=(i&1023)/1024,r=Math.pow(-1,(i&32768)>>15);switch(e){case 31:return r*(t?NaN:1/0);case 0:return r*(t?6103515625e-14*t:0)}return r*Math.pow(2,e-15)*(1+t)}bn.uint16ToFloat64=hD;function pD(i){if(i!==i)return 32256;K_[0]=i;let e=(mn[1]&2147483648)>>16&65535,t=mn[1]&2146435072,r=0;return t>=1089470464?mn[0]>0?t=31744:(t=(t&2080374784)>>16,r=(mn[1]&1048575)>>10):t<=1056964608?(r=1048576+(mn[1]&1048575),r=1048576+(r<<(t>>20)-998)>>21,t=0):(t=t-1056964608>>10,r=(mn[1]&1048575)+512>>10),e|t|r&65535}bn.float64ToUint16=pD});var wc=C(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.Float64Builder=oi.Float32Builder=oi.Float16Builder=oi.FloatBuilder=void 0;var yD=_s(),_D=ke(),ms=class extends _D.FixedWidthBuilder{};oi.FloatBuilder=ms;var Z_=class extends ms{setValue(e,t){this._values.set(e,yD.float64ToUint16(t))}};oi.Float16Builder=Z_;var X_=class extends ms{setValue(e,t){this._values.set(e,t)}};oi.Float32Builder=X_;var Q_=class extends ms{setValue(e,t){this._values.set(e,t)}};oi.Float64Builder=Q_});var vs=C(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.BN=Je.bignumToBigInt=Je.bignumToString=Je.isArrowBigNumSymbol=void 0;var mD=Ge(),bs=ut();Je.isArrowBigNumSymbol=Symbol.for("isArrowBigNum");function $t(i,...e){return e.length===0?Object.setPrototypeOf(mD.toArrayBufferView(this.TypedArray,i),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(i,...e),this.constructor.prototype)}$t.prototype[Je.isArrowBigNumSymbol]=!0;$t.prototype.toJSON=function(){return`"${Je.bignumToString(this)}"`};$t.prototype.valueOf=function(){return em(this)};$t.prototype.toString=function(){return Je.bignumToString(this)};$t.prototype[Symbol.toPrimitive]=function(i="default"){switch(i){case"number":return em(this);case"string":return Je.bignumToString(this);case"default":return Je.bignumToBigInt(this)}return Je.bignumToString(this)};function gn(...i){return $t.apply(this,i)}function vn(...i){return $t.apply(this,i)}function gs(...i){return $t.apply(this,i)}Object.setPrototypeOf(gn.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(vn.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(gs.prototype,Object.create(Uint32Array.prototype));Object.assign(gn.prototype,$t.prototype,{constructor:gn,signed:!0,TypedArray:Int32Array,BigIntArray:bs.BigInt64Array});Object.assign(vn.prototype,$t.prototype,{constructor:vn,signed:!1,TypedArray:Uint32Array,BigIntArray:bs.BigUint64Array});Object.assign(gs.prototype,$t.prototype,{constructor:gs,signed:!0,TypedArray:Uint32Array,BigIntArray:bs.BigUint64Array});function em(i){let{buffer:e,byteOffset:t,length:r,signed:n}=i,s=new Int32Array(e,t,r),u=0,m=0,j=s.length,S,A;for(;m<j;)A=s[m++],S=s[m++],n||(S=S>>>0),u+=(A>>>0)+S*Math.pow(m,32);return u}bs.BigIntAvailable?(Je.bignumToBigInt=i=>i.byteLength===8?new i.BigIntArray(i.buffer,i.byteOffset,1)[0]:Bc(i),Je.bignumToString=i=>i.byteLength===8?`${new i.BigIntArray(i.buffer,i.byteOffset,1)[0]}`:Bc(i)):(Je.bignumToString=Bc,Je.bignumToBigInt=Je.bignumToString);function Bc(i){let e="",t=new Uint32Array(2),r=new Uint16Array(i.buffer,i.byteOffset,i.byteLength/2),n=new Uint32Array((r=new Uint16Array(r).reverse()).buffer),s=-1,u=r.length-1;do{for(t[0]=r[s=0];s<u;)r[s++]=t[1]=t[0]/10,t[0]=(t[0]-t[1]*10<<16)+r[s];r[s]=t[1]=t[0]/10,t[0]=t[0]-t[1]*10,e=`${t[0]}${e}`}while(n[0]||n[1]||n[2]||n[3]);return e||"0"}var $o=class{static new(e,t){switch(t){case!0:return new gn(e);case!1:return new vn(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case bs.BigInt64Array:return new gn(e)}return e.byteLength===16?new gs(e):new vn(e)}static signed(e){return new gn(e)}static unsigned(e){return new vn(e)}static decimal(e){return new gs(e)}constructor(e,t){return $o.new(e,t)}};Je.BN=$o});var Ic=C(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Uint64Builder=He.Uint32Builder=He.Uint16Builder=He.Uint8Builder=He.Int64Builder=He.Int32Builder=He.Int16Builder=He.Int8Builder=He.IntBuilder=void 0;var bD=vs(),tm=Zi(),gD=ut(),vD=ke(),ai=class extends vD.FixedWidthBuilder{setValue(e,t){this._values.set(e,t)}};He.IntBuilder=ai;var im=class extends ai{};He.Int8Builder=im;var rm=class extends ai{};He.Int16Builder=rm;var nm=class extends ai{};He.Int32Builder=nm;var sm=class extends ai{constructor(e){e.nullValues&&(e.nullValues=e.nullValues.map(Go));super(e);this._values=new tm.WideBufferBuilder(new Int32Array(0),2)}get values64(){return this._values.buffer64}isValid(e){return super.isValid(Go(e))}};He.Int64Builder=sm;var om=class extends ai{};He.Uint8Builder=om;var am=class extends ai{};He.Uint16Builder=am;var um=class extends ai{};He.Uint32Builder=um;var cm=class extends ai{constructor(e){e.nullValues&&(e.nullValues=e.nullValues.map(Go));super(e);this._values=new tm.WideBufferBuilder(new Uint32Array(0),2)}get values64(){return this._values.buffer64}isValid(e){return super.isValid(Go(e))}};He.Uint64Builder=cm;var Go=(i=>e=>(ArrayBuffer.isView(e)&&(i.buffer=e.buffer,i.byteOffset=e.byteOffset,i.byteLength=e.byteLength,e=bD.bignumToBigInt(i),i.buffer=null),e))({BigIntArray:gD.BigInt64Array})});var Tc=C(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.TimeNanosecondBuilder=At.TimeMicrosecondBuilder=At.TimeMillisecondBuilder=At.TimeSecondBuilder=At.TimeBuilder=void 0;var jD=ke(),jn=class extends jD.FixedWidthBuilder{};At.TimeBuilder=jn;var lm=class extends jn{};At.TimeSecondBuilder=lm;var dm=class extends jn{};At.TimeMillisecondBuilder=dm;var fm=class extends jn{};At.TimeMicrosecondBuilder=fm;var hm=class extends jn{};At.TimeNanosecondBuilder=hm});var Sc=C(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.TimestampNanosecondBuilder=Ot.TimestampMicrosecondBuilder=Ot.TimestampMillisecondBuilder=Ot.TimestampSecondBuilder=Ot.TimestampBuilder=void 0;var wD=ke(),wn=class extends wD.FixedWidthBuilder{};Ot.TimestampBuilder=wn;var pm=class extends wn{};Ot.TimestampSecondBuilder=pm;var ym=class extends wn{};Ot.TimestampMillisecondBuilder=ym;var _m=class extends wn{};Ot.TimestampMicrosecondBuilder=_m;var mm=class extends wn{};Ot.TimestampNanosecondBuilder=mm});var Dc=C(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.IntervalYearMonthBuilder=er.IntervalDayTimeBuilder=er.IntervalBuilder=void 0;var BD=ke(),Jo=class extends BD.FixedWidthBuilder{};er.IntervalBuilder=Jo;var bm=class extends Jo{};er.IntervalDayTimeBuilder=bm;var gm=class extends Jo{};er.IntervalYearMonthBuilder=gm});var Zo=C(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.BinaryBuilder=void 0;var ID=Ge(),TD=Zi(),SD=ke(),vm=class extends SD.VariableWidthBuilder{constructor(e){super(e);this._values=new TD.BufferBuilder(new Uint8Array(0))}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,ID.toUint8Array(t))}_flushPending(e,t){let r=this._offsets,n=this._values.reserve(t).buffer,s=0,u=0,m=0,j;for([s,j]of e)j===void 0?r.set(s,0):(u=j.length,n.set(j,m),r.set(s,u),m+=u)}};Ko.BinaryBuilder=vm});var Qo=C(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.Utf8Builder=void 0;var DD=Fr(),AD=Zo(),OD=Zi(),FD=ke(),Ac=class extends FD.VariableWidthBuilder{constructor(e){super(e);this._values=new OD.BufferBuilder(new Uint8Array(0))}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,DD.encodeUtf8(t))}_flushPending(e,t){}};Xo.Utf8Builder=Ac;Ac.prototype._flushPending=AD.BinaryBuilder.prototype._flushPending});var Oc=C(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.Run=void 0;var MD=xe(),jm=class{get length(){return this._values.length}get(e){return this._values[e]}clear(){return this._values=null,this}bind(e){return e instanceof MD.Vector?e:(this._values=e,this)}};ea.Run=jm});var Qe=C(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.Field=Bn.Schema=void 0;var CD=me(),Ft=class{constructor(e=[],t,r){this.fields=e||[],this.metadata=t||new Map,r||(r=Fc(e)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}toString(){return`Schema<{ ${this.fields.map((e,t)=>`${t}: ${e}`).join(", ")} }>`}select(...e){let t=e.reduce((r,n)=>(r[n]=!0)&&r,Object.create(null));return new Ft(this.fields.filter(r=>t[r.name]),this.metadata)}selectAt(...e){return new Ft(e.map(t=>this.fields[t]).filter(Boolean),this.metadata)}assign(...e){let t=e[0]instanceof Ft?e[0]:Array.isArray(e[0])?new Ft(e[0]):new Ft(e),r=[...this.fields],n=ta(ta(new Map,this.metadata),t.metadata),s=t.fields.filter(m=>{let j=r.findIndex(S=>S.name===m.name);return~j?(r[j]=m.clone({metadata:ta(ta(new Map,r[j].metadata),m.metadata)}))&&!1:!0}),u=Fc(s,new Map);return new Ft([...r,...s],n,new Map([...this.dictionaries,...u]))}};Bn.Schema=Ft;var Ai=class{constructor(e,t,r=!1,n){this.name=e,this.type=t,this.nullable=r,this.metadata=n||new Map}static new(...e){let[t,r,n,s]=e;return e[0]&&typeof e[0]=="object"&&({name:t}=e[0],r===void 0&&(r=e[0].type),n===void 0&&(n=e[0].nullable),s===void 0&&(s=e[0].metadata)),new Ai(`${t}`,r,n,s)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[t,r,n,s]=e;return!e[0]||typeof e[0]!="object"?[t=this.name,r=this.type,n=this.nullable,s=this.metadata]=e:{name:t=this.name,type:r=this.type,nullable:n=this.nullable,metadata:s=this.metadata}=e[0],Ai.new(t,r,n,s)}};Bn.Field=Ai;function ta(i,e){return new Map([...i||new Map,...e||new Map])}function Fc(i,e=new Map){for(let t=-1,r=i.length;++t<r;){let s=i[t].type;if(CD.DataType.isDictionary(s)){if(!e.has(s.id))e.set(s.id,s.dictionary);else if(e.get(s.id)!==s.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}s.children&&s.children.length>0&&Fc(s.children,e)}return e}Ft.prototype.fields=null;Ft.prototype.metadata=null;Ft.prototype.dictionaries=null;Ai.prototype.type=null;Ai.prototype.name=null;Ai.prototype.nullable=null;Ai.prototype.metadata=null});var Mc=C(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.ListBuilder=void 0;var UD=Oc(),VD=Qe(),kD=me(),RD=Zi(),ED=ke(),wm=class extends ED.VariableWidthBuilder{constructor(e){super(e);this._run=new UD.Run,this._offsets=new RD.OffsetsBufferBuilder}addChild(e,t="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new kD.List(new VD.Field(t,e.type,!0)),this.numChildren-1}clear(){return this._run.clear(),super.clear()}_flushPending(e){let t=this._run,r=this._offsets,n=this._setValue,s=0,u;for([s,u]of e)u===void 0?r.set(s,0):(r.set(s,u.length),n(this,s,t.bind(u)))}};ia.ListBuilder=wm});var Cc=C(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.FixedSizeListBuilder=void 0;var ND=Oc(),PD=Qe(),xD=ke(),LD=me(),Bm=class extends xD.Builder{constructor(){super(...arguments);this._run=new ND.Run}setValue(e,t){super.setValue(e,this._run.bind(t))}addChild(e,t="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");let r=this.children.push(e);return this.type=new LD.FixedSizeList(this.type.listSize,new PD.Field(t,e.type,!0)),r}clear(){return this._run.clear(),super.clear()}};ra.FixedSizeListBuilder=Bm});var Uc=C(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.MapBuilder=void 0;var qD=Qe(),zD=me(),WD=ke(),Im=class extends WD.VariableWidthBuilder{set(e,t){return super.set(e,t)}setValue(e,t){t=t instanceof Map?t:new Map(Object.entries(t));let r=this._pending||(this._pending=new Map),n=r.get(e);n&&(this._pendingLength-=n.size),this._pendingLength+=t.size,r.set(e,t)}addChild(e,t=`${this.numChildren}`){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new zD.Map_(new qD.Field(t,e.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(e){let t=this._offsets,r=this._setValue;e.forEach((n,s)=>{n===void 0?t.set(s,0):(t.set(s,n.size),r(this,s,n))})}};na.MapBuilder=Im});var Vc=C(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.StructBuilder=void 0;var HD=Qe(),YD=ke(),$D=me(),Tm=class extends YD.Builder{addChild(e,t=`${this.numChildren}`){let r=this.children.push(e);return this.type=new $D.Struct([...this.type.children,new HD.Field(t,e.type,!0)]),r}};sa.StructBuilder=Tm});var kc=C(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.DenseUnionBuilder=tr.SparseUnionBuilder=tr.UnionBuilder=void 0;var GD=Qe(),Sm=Zi(),JD=ke(),KD=me(),oa=class extends JD.Builder{constructor(e){super(e);this._typeIds=new Sm.DataBufferBuilder(new Int8Array(0),1),typeof e.valueToChildTypeId=="function"&&(this._valueToChildTypeId=e.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(e,t){return this.set(this.length,e,t)}set(e,t,r){return r===void 0&&(r=this._valueToChildTypeId(this,t,e)),this.setValid(e,this.isValid(t))&&this.setValue(e,t,r),this}setValue(e,t,r){this._typeIds.set(e,r),super.setValue(e,t)}addChild(e,t=`${this.children.length}`){let r=this.children.push(e),{type:{children:n,mode:s,typeIds:u}}=this,m=[...n,new GD.Field(t,e.type)];return this.type=new KD.Union(s,[...u,r],m),r}_valueToChildTypeId(e,t,r){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}};tr.UnionBuilder=oa;var Dm=class extends oa{};tr.SparseUnionBuilder=Dm;var Am=class extends oa{constructor(e){super(e);this._offsets=new Sm.DataBufferBuilder(new Int32Array(0))}setValue(e,t,r){let n=this.type.typeIdToChildIndex[r];return this._offsets.set(e,this.getChildAt(n).length),super.setValue(e,t,r)}};tr.DenseUnionBuilder=Am});var nt=C(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.Visitor=void 0;var ZD=Yt(),XD=xe(),F=Ie(),QD=me(),je=class{visitMany(e,...t){return e.map((r,n)=>this.visit(r,...t.map(s=>s[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return eA(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}visitBinary(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}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};aa.Visitor=je;function eA(i,e,t=!0){let r=null,n=F.Type.NONE;switch(e instanceof ZD.Data||e instanceof XD.Vector?n=Rc(e.type):e instanceof QD.DataType?n=Rc(e):typeof(n=e)!="number"&&(n=F.Type[e]),n){case F.Type.Null:r=i.visitNull;break;case F.Type.Bool:r=i.visitBool;break;case F.Type.Int:r=i.visitInt;break;case F.Type.Int8:r=i.visitInt8||i.visitInt;break;case F.Type.Int16:r=i.visitInt16||i.visitInt;break;case F.Type.Int32:r=i.visitInt32||i.visitInt;break;case F.Type.Int64:r=i.visitInt64||i.visitInt;break;case F.Type.Uint8:r=i.visitUint8||i.visitInt;break;case F.Type.Uint16:r=i.visitUint16||i.visitInt;break;case F.Type.Uint32:r=i.visitUint32||i.visitInt;break;case F.Type.Uint64:r=i.visitUint64||i.visitInt;break;case F.Type.Float:r=i.visitFloat;break;case F.Type.Float16:r=i.visitFloat16||i.visitFloat;break;case F.Type.Float32:r=i.visitFloat32||i.visitFloat;break;case F.Type.Float64:r=i.visitFloat64||i.visitFloat;break;case F.Type.Utf8:r=i.visitUtf8;break;case F.Type.Binary:r=i.visitBinary;break;case F.Type.FixedSizeBinary:r=i.visitFixedSizeBinary;break;case F.Type.Date:r=i.visitDate;break;case F.Type.DateDay:r=i.visitDateDay||i.visitDate;break;case F.Type.DateMillisecond:r=i.visitDateMillisecond||i.visitDate;break;case F.Type.Timestamp:r=i.visitTimestamp;break;case F.Type.TimestampSecond:r=i.visitTimestampSecond||i.visitTimestamp;break;case F.Type.TimestampMillisecond:r=i.visitTimestampMillisecond||i.visitTimestamp;break;case F.Type.TimestampMicrosecond:r=i.visitTimestampMicrosecond||i.visitTimestamp;break;case F.Type.TimestampNanosecond:r=i.visitTimestampNanosecond||i.visitTimestamp;break;case F.Type.Time:r=i.visitTime;break;case F.Type.TimeSecond:r=i.visitTimeSecond||i.visitTime;break;case F.Type.TimeMillisecond:r=i.visitTimeMillisecond||i.visitTime;break;case F.Type.TimeMicrosecond:r=i.visitTimeMicrosecond||i.visitTime;break;case F.Type.TimeNanosecond:r=i.visitTimeNanosecond||i.visitTime;break;case F.Type.Decimal:r=i.visitDecimal;break;case F.Type.List:r=i.visitList;break;case F.Type.Struct:r=i.visitStruct;break;case F.Type.Union:r=i.visitUnion;break;case F.Type.DenseUnion:r=i.visitDenseUnion||i.visitUnion;break;case F.Type.SparseUnion:r=i.visitSparseUnion||i.visitUnion;break;case F.Type.Dictionary:r=i.visitDictionary;break;case F.Type.Interval:r=i.visitInterval;break;case F.Type.IntervalDayTime:r=i.visitIntervalDayTime||i.visitInterval;break;case F.Type.IntervalYearMonth:r=i.visitIntervalYearMonth||i.visitInterval;break;case F.Type.FixedSizeList:r=i.visitFixedSizeList;break;case F.Type.Map:r=i.visitMap;break}if(typeof r=="function")return r;if(!t)return()=>null;throw new Error(`Unrecognized type '${F.Type[n]}'`)}function Rc(i){switch(i.typeId){case F.Type.Null:return F.Type.Null;case F.Type.Int:{let{bitWidth:e,isSigned:t}=i;switch(e){case 8:return t?F.Type.Int8:F.Type.Uint8;case 16:return t?F.Type.Int16:F.Type.Uint16;case 32:return t?F.Type.Int32:F.Type.Uint32;case 64:return t?F.Type.Int64:F.Type.Uint64}return F.Type.Int}case F.Type.Float:switch(i.precision){case F.Precision.HALF:return F.Type.Float16;case F.Precision.SINGLE:return F.Type.Float32;case F.Precision.DOUBLE:return F.Type.Float64}return F.Type.Float;case F.Type.Binary:return F.Type.Binary;case F.Type.Utf8:return F.Type.Utf8;case F.Type.Bool:return F.Type.Bool;case F.Type.Decimal:return F.Type.Decimal;case F.Type.Time:switch(i.unit){case F.TimeUnit.SECOND:return F.Type.TimeSecond;case F.TimeUnit.MILLISECOND:return F.Type.TimeMillisecond;case F.TimeUnit.MICROSECOND:return F.Type.TimeMicrosecond;case F.TimeUnit.NANOSECOND:return F.Type.TimeNanosecond}return F.Type.Time;case F.Type.Timestamp:switch(i.unit){case F.TimeUnit.SECOND:return F.Type.TimestampSecond;case F.TimeUnit.MILLISECOND:return F.Type.TimestampMillisecond;case F.TimeUnit.MICROSECOND:return F.Type.TimestampMicrosecond;case F.TimeUnit.NANOSECOND:return F.Type.TimestampNanosecond}return F.Type.Timestamp;case F.Type.Date:switch(i.unit){case F.DateUnit.DAY:return F.Type.DateDay;case F.DateUnit.MILLISECOND:return F.Type.DateMillisecond}return F.Type.Date;case F.Type.Interval:switch(i.unit){case F.IntervalUnit.DAY_TIME:return F.Type.IntervalDayTime;case F.IntervalUnit.YEAR_MONTH:return F.Type.IntervalYearMonth}return F.Type.Interval;case F.Type.Map:return F.Type.Map;case F.Type.List:return F.Type.List;case F.Type.Struct:return F.Type.Struct;case F.Type.Union:switch(i.mode){case F.UnionMode.Dense:return F.Type.DenseUnion;case F.UnionMode.Sparse:return F.Type.SparseUnion}return F.Type.Union;case F.Type.FixedSizeBinary:return F.Type.FixedSizeBinary;case F.Type.FixedSizeList:return F.Type.FixedSizeList;case F.Type.Dictionary:return F.Type.Dictionary}throw new Error(`Unrecognized type '${F.Type[i.typeId]}'`)}je.prototype.visitInt8=null;je.prototype.visitInt16=null;je.prototype.visitInt32=null;je.prototype.visitInt64=null;je.prototype.visitUint8=null;je.prototype.visitUint16=null;je.prototype.visitUint32=null;je.prototype.visitUint64=null;je.prototype.visitFloat16=null;je.prototype.visitFloat32=null;je.prototype.visitFloat64=null;je.prototype.visitDateDay=null;je.prototype.visitDateMillisecond=null;je.prototype.visitTimestampSecond=null;je.prototype.visitTimestampMillisecond=null;je.prototype.visitTimestampMicrosecond=null;je.prototype.visitTimestampNanosecond=null;je.prototype.visitTimeSecond=null;je.prototype.visitTimeMillisecond=null;je.prototype.visitTimeMicrosecond=null;je.prototype.visitTimeNanosecond=null;je.prototype.visitDenseUnion=null;je.prototype.visitSparseUnion=null;je.prototype.visitIntervalDayTime=null;je.prototype.visitIntervalYearMonth=null});var Pc=C(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.instance=In.SetVisitor=void 0;var tA=xe(),iA=nt(),rA=Fr(),nA=_s(),sA=Ge(),Mt=Ie(),re=class extends iA.Visitor{};In.SetVisitor=re;var oA=(i,e,t)=>{i[e]=t/864e5|0},Ec=(i,e,t)=>{i[e]=t%4294967296|0,i[e+1]=t/4294967296|0},aA=(i,e,t)=>{i[e]=t*1e3%4294967296|0,i[e+1]=t*1e3/4294967296|0},uA=(i,e,t)=>{i[e]=t*1e6%4294967296|0,i[e+1]=t*1e6/4294967296|0},Om=(i,e,t,r)=>{let{[t]:n,[t+1]:s}=e;n!=null&&s!=null&&i.set(r.subarray(0,s-n),n)},cA=({offset:i,values:e},t,r)=>{let n=i+t;r?e[n>>3]|=1<<n%8:e[n>>3]&=~(1<<n%8)},Fm=({values:i},e,t)=>{oA(i,e,t.valueOf())},Mm=({values:i},e,t)=>{Ec(i,e*2,t.valueOf())},ui=({stride:i,values:e},t,r)=>{e[i*t]=r},Cm=({stride:i,values:e},t,r)=>{e[i*t]=nA.float64ToUint16(r)},Nc=(i,e,t)=>{switch(typeof t){case"bigint":i.values64[e]=t;break;case"number":i.values[e*i.stride]=t;break;default:{let r=t,{stride:n,ArrayType:s}=i,u=sA.toArrayBufferView(s,r);i.values.set(u.subarray(0,n),n*e)}}},lA=({stride:i,values:e},t,r)=>{e.set(r.subarray(0,i),i*t)},dA=({values:i,valueOffsets:e},t,r)=>Om(i,e,t,r),fA=({values:i,valueOffsets:e},t,r)=>{Om(i,e,t,rA.encodeUtf8(r))},hA=(i,e,t)=>{i.type.bitWidth<64?ui(i,e,t):Nc(i,e,t)},pA=(i,e,t)=>{i.type.precision!==Mt.Precision.HALF?ui(i,e,t):Cm(i,e,t)},yA=(i,e,t)=>{i.type.unit===Mt.DateUnit.DAY?Fm(i,e,t):Mm(i,e,t)},Um=({values:i},e,t)=>Ec(i,e*2,t/1e3),Vm=({values:i},e,t)=>Ec(i,e*2,t),km=({values:i},e,t)=>aA(i,e*2,t),Rm=({values:i},e,t)=>uA(i,e*2,t),_A=(i,e,t)=>{switch(i.type.unit){case Mt.TimeUnit.SECOND:return Um(i,e,t);case Mt.TimeUnit.MILLISECOND:return Vm(i,e,t);case Mt.TimeUnit.MICROSECOND:return km(i,e,t);case Mt.TimeUnit.NANOSECOND:return Rm(i,e,t)}},Em=({values:i,stride:e},t,r)=>{i[e*t]=r},Nm=({values:i,stride:e},t,r)=>{i[e*t]=r},Pm=({values:i},e,t)=>{i.set(t.subarray(0,2),2*e)},xm=({values:i},e,t)=>{i.set(t.subarray(0,2),2*e)},mA=(i,e,t)=>{switch(i.type.unit){case Mt.TimeUnit.SECOND:return Em(i,e,t);case Mt.TimeUnit.MILLISECOND:return Nm(i,e,t);case Mt.TimeUnit.MICROSECOND:return Pm(i,e,t);case Mt.TimeUnit.NANOSECOND:return xm(i,e,t)}},bA=({values:i},e,t)=>{i.set(t.subarray(0,4),4*e)},gA=(i,e,t)=>{let r=i.getChildAt(0),n=i.valueOffsets;for(let s=-1,u=n[e],m=n[e+1];u<m;)r.set(u++,t.get(++s))},vA=(i,e,t)=>{let r=i.getChildAt(0),n=i.valueOffsets,s=t instanceof Map?[...t]:Object.entries(t);for(let u=-1,m=n[e],j=n[e+1];m<j;)r.set(m++,s[++u])},jA=(i,e)=>(t,r,n)=>t==null?void 0:t.set(i,e[n]),wA=(i,e)=>(t,r,n)=>t==null?void 0:t.set(i,e.get(n)),BA=(i,e)=>(t,r,n)=>t==null?void 0:t.set(i,e.get(r.name)),IA=(i,e)=>(t,r,n)=>t==null?void 0:t.set(i,e[r.name]),TA=(i,e,t)=>{let r=t instanceof Map?BA(e,t):t instanceof tA.Vector?wA(e,t):Array.isArray(t)?jA(e,t):IA(e,t);i.type.children.forEach((n,s)=>r(i.getChildAt(s),n,s))},SA=(i,e,t)=>{i.type.mode===Mt.UnionMode.Dense?Lm(i,e,t):qm(i,e,t)},Lm=(i,e,t)=>{let r=i.typeIdToChildIndex[i.typeIds[e]],n=i.getChildAt(r);n&&n.set(i.valueOffsets[e],t)},qm=(i,e,t)=>{let r=i.typeIdToChildIndex[i.typeIds[e]],n=i.getChildAt(r);n&&n.set(e,t)},DA=(i,e,t)=>{let r=i.getKey(e);r!==null&&i.setValue(r,t)},AA=(i,e,t)=>{i.type.unit===Mt.IntervalUnit.DAY_TIME?zm(i,e,t):Wm(i,e,t)},zm=({values:i},e,t)=>{i.set(t.subarray(0,2),2*e)},Wm=({values:i},e,t)=>{i[e]=t[0]*12+t[1]%12},OA=(i,e,t)=>{let r=i.getChildAt(0),{stride:n}=i;for(let s=-1,u=e*n;++s<n;)r.set(u+s,t.get(s))};re.prototype.visitBool=cA;re.prototype.visitInt=hA;re.prototype.visitInt8=ui;re.prototype.visitInt16=ui;re.prototype.visitInt32=ui;re.prototype.visitInt64=Nc;re.prototype.visitUint8=ui;re.prototype.visitUint16=ui;re.prototype.visitUint32=ui;re.prototype.visitUint64=Nc;re.prototype.visitFloat=pA;re.prototype.visitFloat16=Cm;re.prototype.visitFloat32=ui;re.prototype.visitFloat64=ui;re.prototype.visitUtf8=fA;re.prototype.visitBinary=dA;re.prototype.visitFixedSizeBinary=lA;re.prototype.visitDate=yA;re.prototype.visitDateDay=Fm;re.prototype.visitDateMillisecond=Mm;re.prototype.visitTimestamp=_A;re.prototype.visitTimestampSecond=Um;re.prototype.visitTimestampMillisecond=Vm;re.prototype.visitTimestampMicrosecond=km;re.prototype.visitTimestampNanosecond=Rm;re.prototype.visitTime=mA;re.prototype.visitTimeSecond=Em;re.prototype.visitTimeMillisecond=Nm;re.prototype.visitTimeMicrosecond=Pm;re.prototype.visitTimeNanosecond=xm;re.prototype.visitDecimal=bA;re.prototype.visitList=gA;re.prototype.visitStruct=TA;re.prototype.visitUnion=SA;re.prototype.visitDenseUnion=Lm;re.prototype.visitSparseUnion=qm;re.prototype.visitDictionary=DA;re.prototype.visitInterval=AA;re.prototype.visitIntervalDayTime=zm;re.prototype.visitIntervalYearMonth=Wm;re.prototype.visitFixedSizeList=OA;re.prototype.visitMap=vA;In.instance=new re});var Hm=C(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.instance=Tn.GetBuilderCtor=void 0;var FA=nt(),MA=Zo(),CA=yc(),xc=mc(),UA=bc(),VA=vc(),kA=jc(),RA=Cc(),ua=wc(),Lc=Dc(),Oi=Ic(),EA=Mc(),NA=Uc(),PA=_c(),xA=Vc(),js=Sc(),ws=Tc(),qc=kc(),LA=Qo(),zc=class extends FA.Visitor{visitNull(){return PA.NullBuilder}visitBool(){return CA.BoolBuilder}visitInt(){return Oi.IntBuilder}visitInt8(){return Oi.Int8Builder}visitInt16(){return Oi.Int16Builder}visitInt32(){return Oi.Int32Builder}visitInt64(){return Oi.Int64Builder}visitUint8(){return Oi.Uint8Builder}visitUint16(){return Oi.Uint16Builder}visitUint32(){return Oi.Uint32Builder}visitUint64(){return Oi.Uint64Builder}visitFloat(){return ua.FloatBuilder}visitFloat16(){return ua.Float16Builder}visitFloat32(){return ua.Float32Builder}visitFloat64(){return ua.Float64Builder}visitUtf8(){return LA.Utf8Builder}visitBinary(){return MA.BinaryBuilder}visitFixedSizeBinary(){return kA.FixedSizeBinaryBuilder}visitDate(){return xc.DateBuilder}visitDateDay(){return xc.DateDayBuilder}visitDateMillisecond(){return xc.DateMillisecondBuilder}visitTimestamp(){return js.TimestampBuilder}visitTimestampSecond(){return js.TimestampSecondBuilder}visitTimestampMillisecond(){return js.TimestampMillisecondBuilder}visitTimestampMicrosecond(){return js.TimestampMicrosecondBuilder}visitTimestampNanosecond(){return js.TimestampNanosecondBuilder}visitTime(){return ws.TimeBuilder}visitTimeSecond(){return ws.TimeSecondBuilder}visitTimeMillisecond(){return ws.TimeMillisecondBuilder}visitTimeMicrosecond(){return ws.TimeMicrosecondBuilder}visitTimeNanosecond(){return ws.TimeNanosecondBuilder}visitDecimal(){return UA.DecimalBuilder}visitList(){return EA.ListBuilder}visitStruct(){return xA.StructBuilder}visitUnion(){return qc.UnionBuilder}visitDenseUnion(){return qc.DenseUnionBuilder}visitSparseUnion(){return qc.SparseUnionBuilder}visitDictionary(){return VA.DictionaryBuilder}visitInterval(){return Lc.IntervalBuilder}visitIntervalDayTime(){return Lc.IntervalDayTimeBuilder}visitIntervalYearMonth(){return Lc.IntervalYearMonthBuilder}visitFixedSizeList(){return RA.FixedSizeListBuilder}visitMap(){return NA.MapBuilder}};Tn.GetBuilderCtor=zc;Tn.instance=new zc});var la=C(R=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.DenseUnionBuilder=R.SparseUnionBuilder=R.UnionBuilder=R.StructBuilder=R.MapBuilder=R.FixedSizeListBuilder=R.ListBuilder=R.BinaryBuilder=R.Utf8Builder=R.IntervalYearMonthBuilder=R.IntervalDayTimeBuilder=R.IntervalBuilder=R.TimestampNanosecondBuilder=R.TimestampMicrosecondBuilder=R.TimestampMillisecondBuilder=R.TimestampSecondBuilder=R.TimestampBuilder=R.TimeNanosecondBuilder=R.TimeMicrosecondBuilder=R.TimeMillisecondBuilder=R.TimeSecondBuilder=R.TimeBuilder=R.Uint64Builder=R.Uint32Builder=R.Uint16Builder=R.Uint8Builder=R.Int64Builder=R.Int32Builder=R.Int16Builder=R.Int8Builder=R.IntBuilder=R.Float64Builder=R.Float32Builder=R.Float16Builder=R.FloatBuilder=R.FixedSizeBinaryBuilder=R.DictionaryBuilder=R.DecimalBuilder=R.DateMillisecondBuilder=R.DateDayBuilder=R.DateBuilder=R.NullBuilder=R.BoolBuilder=R.Builder=void 0;var qA=ke();Object.defineProperty(R,"Builder",{enumerable:!0,get:function(){return qA.Builder}});var zA=yc();Object.defineProperty(R,"BoolBuilder",{enumerable:!0,get:function(){return zA.BoolBuilder}});var WA=_c();Object.defineProperty(R,"NullBuilder",{enumerable:!0,get:function(){return WA.NullBuilder}});var Wc=mc();Object.defineProperty(R,"DateBuilder",{enumerable:!0,get:function(){return Wc.DateBuilder}});Object.defineProperty(R,"DateDayBuilder",{enumerable:!0,get:function(){return Wc.DateDayBuilder}});Object.defineProperty(R,"DateMillisecondBuilder",{enumerable:!0,get:function(){return Wc.DateMillisecondBuilder}});var HA=bc();Object.defineProperty(R,"DecimalBuilder",{enumerable:!0,get:function(){return HA.DecimalBuilder}});var YA=vc();Object.defineProperty(R,"DictionaryBuilder",{enumerable:!0,get:function(){return YA.DictionaryBuilder}});var $A=jc();Object.defineProperty(R,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return $A.FixedSizeBinaryBuilder}});var ca=wc();Object.defineProperty(R,"FloatBuilder",{enumerable:!0,get:function(){return ca.FloatBuilder}});Object.defineProperty(R,"Float16Builder",{enumerable:!0,get:function(){return ca.Float16Builder}});Object.defineProperty(R,"Float32Builder",{enumerable:!0,get:function(){return ca.Float32Builder}});Object.defineProperty(R,"Float64Builder",{enumerable:!0,get:function(){return ca.Float64Builder}});var Fi=Ic();Object.defineProperty(R,"IntBuilder",{enumerable:!0,get:function(){return Fi.IntBuilder}});Object.defineProperty(R,"Int8Builder",{enumerable:!0,get:function(){return Fi.Int8Builder}});Object.defineProperty(R,"Int16Builder",{enumerable:!0,get:function(){return Fi.Int16Builder}});Object.defineProperty(R,"Int32Builder",{enumerable:!0,get:function(){return Fi.Int32Builder}});Object.defineProperty(R,"Int64Builder",{enumerable:!0,get:function(){return Fi.Int64Builder}});Object.defineProperty(R,"Uint8Builder",{enumerable:!0,get:function(){return Fi.Uint8Builder}});Object.defineProperty(R,"Uint16Builder",{enumerable:!0,get:function(){return Fi.Uint16Builder}});Object.defineProperty(R,"Uint32Builder",{enumerable:!0,get:function(){return Fi.Uint32Builder}});Object.defineProperty(R,"Uint64Builder",{enumerable:!0,get:function(){return Fi.Uint64Builder}});var Bs=Tc();Object.defineProperty(R,"TimeBuilder",{enumerable:!0,get:function(){return Bs.TimeBuilder}});Object.defineProperty(R,"TimeSecondBuilder",{enumerable:!0,get:function(){return Bs.TimeSecondBuilder}});Object.defineProperty(R,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return Bs.TimeMillisecondBuilder}});Object.defineProperty(R,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return Bs.TimeMicrosecondBuilder}});Object.defineProperty(R,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return Bs.TimeNanosecondBuilder}});var Is=Sc();Object.defineProperty(R,"TimestampBuilder",{enumerable:!0,get:function(){return Is.TimestampBuilder}});Object.defineProperty(R,"TimestampSecondBuilder",{enumerable:!0,get:function(){return Is.TimestampSecondBuilder}});Object.defineProperty(R,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return Is.TimestampMillisecondBuilder}});Object.defineProperty(R,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return Is.TimestampMicrosecondBuilder}});Object.defineProperty(R,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return Is.TimestampNanosecondBuilder}});var Hc=Dc();Object.defineProperty(R,"IntervalBuilder",{enumerable:!0,get:function(){return Hc.IntervalBuilder}});Object.defineProperty(R,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return Hc.IntervalDayTimeBuilder}});Object.defineProperty(R,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return Hc.IntervalYearMonthBuilder}});var GA=Qo();Object.defineProperty(R,"Utf8Builder",{enumerable:!0,get:function(){return GA.Utf8Builder}});var JA=Zo();Object.defineProperty(R,"BinaryBuilder",{enumerable:!0,get:function(){return JA.BinaryBuilder}});var KA=Mc();Object.defineProperty(R,"ListBuilder",{enumerable:!0,get:function(){return KA.ListBuilder}});var ZA=Cc();Object.defineProperty(R,"FixedSizeListBuilder",{enumerable:!0,get:function(){return ZA.FixedSizeListBuilder}});var XA=Uc();Object.defineProperty(R,"MapBuilder",{enumerable:!0,get:function(){return XA.MapBuilder}});var QA=Vc();Object.defineProperty(R,"StructBuilder",{enumerable:!0,get:function(){return QA.StructBuilder}});var Yc=kc();Object.defineProperty(R,"UnionBuilder",{enumerable:!0,get:function(){return Yc.UnionBuilder}});Object.defineProperty(R,"SparseUnionBuilder",{enumerable:!0,get:function(){return Yc.SparseUnionBuilder}});Object.defineProperty(R,"DenseUnionBuilder",{enumerable:!0,get:function(){return Yc.DenseUnionBuilder}});var $c=Ie(),eO=Qo(),tO=ke(),Ym=Pc(),$m=Hm();tO.Builder.new=Gm;function Gm(i){let e=i.type,t=new($m.instance.getVisitFn(e)())(i);if(e.children&&e.children.length>0){let r=i.children||[],n={nullValues:i.nullValues},s=Array.isArray(r)?(u,m)=>r[m]||n:({name:u})=>r[u]||n;e.children.forEach((u,m)=>{let{type:j}=u,S=s(u,m);t.children.push(Gm(Object.assign(Object.assign({},S),{type:j})))})}return t}Object.keys($c.Type).map(i=>$c.Type[i]).filter(i=>typeof i=="number"&&i!==$c.Type.NONE).forEach(i=>{let e=$m.instance.visit(i);e.prototype._setValue=Ym.instance.getVisitFn(i)});eO.Utf8Builder.prototype._setValue=Ym.instance.visitBinary});var Jm=C(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.Block=Sn.Footer=void 0;var iO=Ii(),da=Gi(),Ct=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(e,t){return(t||new Ct).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,t){return e.setPosition(e.position()+iO.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Ct).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):da.MetadataVersion.V1}schema(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new da.Schema).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){let r=this.bb.__offset(this.bb_pos,8);return r?(t||new fa).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){let r=this.bb.__offset(this.bb_pos,10);return r?(t||new fa).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,12);return r?(t||new da.KeyValue).__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,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,da.MetadataVersion.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,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 endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}static createFooter(e,t,r,n,s,u){return Ct.startFooter(e),Ct.addVersion(e,t),Ct.addSchema(e,r),Ct.addDictionaries(e,n),Ct.addRecordBatches(e,s),Ct.addCustomMetadata(e,u),Ct.endFooter(e)}};Sn.Footer=Ct;var fa=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static createBlock(e,t,r,n){return e.prep(8,24),e.writeInt64(n),e.pad(4),e.writeInt32(r),e.writeInt64(t),e.offset()}};Sn.Block=fa});var Kc=C(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.FileBlock=Dn.Footer=void 0;var Gt=Jm(),Gc=Ii(),Km=Gc.flatbuffers.Long,rO=Gc.flatbuffers.Builder,nO=Gc.flatbuffers.ByteBuffer,Zm=Qe(),Xm=Ie(),sO=Ge(),Jc=class{constructor(e,t=Xm.MetadataVersion.V4,r,n){this.schema=e,this.version=t,r&&(this._recordBatches=r),n&&(this._dictionaryBatches=n)}static decode(e){e=new nO(sO.toUint8Array(e));let t=Gt.Footer.getRootAsFooter(e),r=Zm.Schema.decode(t.schema());return new Qm(r,t)}static encode(e){let t=new rO,r=Zm.Schema.encode(t,e.schema);Gt.Footer.startRecordBatchesVector(t,e.numRecordBatches),[...e.recordBatches()].slice().reverse().forEach(u=>ir.encode(t,u));let n=t.endVector();Gt.Footer.startDictionariesVector(t,e.numDictionaries),[...e.dictionaryBatches()].slice().reverse().forEach(u=>ir.encode(t,u));let s=t.endVector();return Gt.Footer.startFooter(t),Gt.Footer.addSchema(t,r),Gt.Footer.addVersion(t,Xm.MetadataVersion.V4),Gt.Footer.addRecordBatches(t,n),Gt.Footer.addDictionaries(t,s),Gt.Footer.finishFooterBuffer(t,Gt.Footer.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let e,t=-1,r=this.numRecordBatches;++t<r;)(e=this.getRecordBatch(t))&&(yield e)}*dictionaryBatches(){for(let e,t=-1,r=this.numDictionaries;++t<r;)(e=this.getDictionaryBatch(t))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}};Dn.Footer=Jc;var Qm=class extends Jc{constructor(e,t){super(e,t.version());this._footer=t}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){let t=this._footer.recordBatches(e);if(t)return ir.decode(t)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){let t=this._footer.dictionaries(e);if(t)return ir.decode(t)}return null}},ir=class{constructor(e,t,r){this.metaDataLength=e,this.offset=typeof r=="number"?r:r.low,this.bodyLength=typeof t=="number"?t:t.low}static decode(e){return new ir(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,t){let{metaDataLength:r}=t,n=new Km(t.offset,0),s=new Km(t.bodyLength,0);return Gt.Block.createBlock(e,n,r,s)}};Dn.FileBlock=ir});var ar=C(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.AsyncByteStream=or.ByteStream=or.AsyncByteQueue=void 0;var rr=at(),nr=ps(),eb=Fr(),Ts=cn(),Zc=Ge(),An=ut(),Xc=class extends Ts.AsyncQueue{write(e){if((e=Zc.toUint8Array(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?eb.decodeUtf8(this.toUint8Array(!0)):this.toUint8Array(!1).then(eb.decodeUtf8)}toUint8Array(e=!1){return e?Zc.joinUint8Arrays(this._values)[0]:(()=>rr.__awaiter(this,void 0,void 0,function*(){var t,r;let n=[],s=0;try{for(var u=rr.__asyncValues(this),m;m=yield u.next(),!m.done;){let j=m.value;n.push(j),s+=j.byteLength}}catch(j){t={error:j}}finally{try{m&&!m.done&&(r=u.return)&&(yield r.call(u))}finally{if(t)throw t.error}}return Zc.joinUint8Arrays(n,s)[0]}))()}};or.AsyncByteQueue=Xc;var tb=class{constructor(e){e&&(this.source=new ib(nr.default.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}};or.ByteStream=tb;var ha=class{constructor(e){e instanceof ha?this.source=e.source:e instanceof Xc?this.source=new sr(nr.default.fromAsyncIterable(e)):An.isReadableNodeStream(e)?this.source=new sr(nr.default.fromNodeStream(e)):An.isReadableDOMStream(e)?this.source=new sr(nr.default.fromDOMStream(e)):An.isFetchResponse(e)?this.source=new sr(nr.default.fromDOMStream(e.body)):An.isIterable(e)?this.source=new sr(nr.default.fromIterable(e)):An.isPromise(e)?this.source=new sr(nr.default.fromAsyncIterable(e)):An.isAsyncIterable(e)&&(this.source=new sr(nr.default.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}};or.AsyncByteStream=ha;var ib=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,t="read"){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||Ts.ITERATOR_DONE)}return(e){return Object.create(this.source.return&&this.source.return(e)||Ts.ITERATOR_DONE)}},sr=class{constructor(e){this.source=e,this._closedPromise=new Promise(t=>this._closedPromiseResolve=t)}cancel(e){return rr.__awaiter(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return rr.__awaiter(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return rr.__awaiter(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e,t="read"){return rr.__awaiter(this,void 0,void 0,function*(){return yield this.source.next({cmd:t,size:e})})}throw(e){return rr.__awaiter(this,void 0,void 0,function*(){let t=this.source.throw&&(yield this.source.throw(e))||Ts.ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}return(e){return rr.__awaiter(this,void 0,void 0,function*(){let t=this.source.return&&(yield this.source.return(e))||Ts.ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)})}}});var Qc=C(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.AsyncRandomAccessFile=On.RandomAccessFile=void 0;var ur=at(),rb=ar(),oO=Ge(),nb=class extends rb.ByteStream{constructor(e,t){super();this.position=0,this.buffer=oO.toUint8Array(e),this.size=typeof t=="undefined"?this.buffer.byteLength:t}readInt32(e){let{buffer:t,byteOffset:r}=this.readAt(e,4);return new DataView(t,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){let{buffer:t,size:r,position:n}=this;return t&&n<r?(typeof e!="number"&&(e=1/0),this.position=Math.min(r,n+Math.min(r-n,e)),t.subarray(n,this.position)):null}readAt(e,t){let r=this.buffer,n=Math.min(this.size,e+t);return r?r.subarray(e,n):new Uint8Array(t)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}};On.RandomAccessFile=nb;var sb=class extends rb.AsyncByteStream{constructor(e,t){super();this.position=0,this._handle=e,typeof t=="number"?this.size=t:this._pending=(()=>ur.__awaiter(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending}))()}readInt32(e){return ur.__awaiter(this,void 0,void 0,function*(){let{buffer:t,byteOffset:r}=yield this.readAt(e,4);return new DataView(t,r).getInt32(0,!0)})}seek(e){return ur.__awaiter(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return ur.__awaiter(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:t,size:r,position:n}=this;if(t&&n<r){typeof e!="number"&&(e=1/0);let s=n,u=0,m=0,j=Math.min(r,s+Math.min(r-s,e)),S=new Uint8Array(Math.max(0,(this.position=j)-s));for(;(s+=m)<j&&(u+=m)<S.byteLength;)({bytesRead:m}=yield t.read(S,u,S.byteLength-u,s));return S}return null})}readAt(e,t){return ur.__awaiter(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:r,size:n}=this;if(r&&e+t<n){let s=Math.min(n,e+t),u=new Uint8Array(s-e);return(yield r.read(u,0,t,e)).buffer}return new Uint8Array(t)})}close(){return ur.__awaiter(this,void 0,void 0,function*(){let e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return ur.__awaiter(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return ur.__awaiter(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}};On.AsyncRandomAccessFile=sb});var tl=C(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.Int128=ci.Int64=ci.Uint64=ci.BaseInt64=void 0;var aO=1<<16;function Fn(i){return i<0&&(i=4294967295+i+1),`0x${i.toString(16)}`}var Mn=8,el=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],pa=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let t=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),r=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),n=t[3]*r[3];this.buffer[0]=n&65535;let s=n>>>16;return n=t[2]*r[3],s+=n,n=t[3]*r[2]>>>0,s+=n,this.buffer[0]+=s<<16,this.buffer[1]=s>>>0<n?aO:0,this.buffer[1]+=s>>>16,this.buffer[1]+=t[1]*r[3]+t[2]*r[2]+t[3]*r[1],this.buffer[1]+=t[0]*r[3]+t[1]*r[2]+t[2]*r[1]+t[3]*r[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${Fn(this.buffer[1])} ${Fn(this.buffer[0])}`}};ci.BaseInt64=pa;var be=class extends pa{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,t=new Uint32Array(2)){return be.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return be.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){let r=e.length,n=new be(t);for(let s=0;s<r;){let u=Mn<r-s?Mn:r-s,m=new be(new Uint32Array([parseInt(e.substr(s,u),10),0])),j=new be(new Uint32Array([el[u],0]));n.times(j),n.plus(m),s+=u}return n}static convertArray(e){let t=new Uint32Array(e.length*2);for(let r=-1,n=e.length;++r<n;)be.from(e[r],new Uint32Array(t.buffer,t.byteOffset+2*r*4,2));return t}static multiply(e,t){return new be(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new be(new Uint32Array(e.buffer)).plus(t)}};ci.Uint64=be;var bt=class extends pa{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){let t=this.buffer[1]<<0,r=e.buffer[1]<<0;return t<r||t===r&&this.buffer[0]<e.buffer[0]}static from(e,t=new Uint32Array(2)){return bt.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return bt.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){let r=e.startsWith("-"),n=e.length,s=new bt(t);for(let u=r?1:0;u<n;){let m=Mn<n-u?Mn:n-u,j=new bt(new Uint32Array([parseInt(e.substr(u,m),10),0])),S=new bt(new Uint32Array([el[m],0]));s.times(S),s.plus(j),u+=m}return r?s.negate():s}static convertArray(e){let t=new Uint32Array(e.length*2);for(let r=-1,n=e.length;++r<n;)bt.from(e[r],new Uint32Array(t.buffer,t.byteOffset+2*r*4,2));return t}static multiply(e,t){return new bt(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new bt(new Uint32Array(e.buffer)).plus(t)}};ci.Int64=bt;var Jt=class{constructor(e){this.buffer=e}high(){return new bt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new bt(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){let t=new be(new Uint32Array([this.buffer[3],0])),r=new be(new Uint32Array([this.buffer[2],0])),n=new be(new Uint32Array([this.buffer[1],0])),s=new be(new Uint32Array([this.buffer[0],0])),u=new be(new Uint32Array([e.buffer[3],0])),m=new be(new Uint32Array([e.buffer[2],0])),j=new be(new Uint32Array([e.buffer[1],0])),S=new be(new Uint32Array([e.buffer[0],0])),A=be.multiply(s,S);this.buffer[0]=A.low();let P=new be(new Uint32Array([A.high(),0]));return A=be.multiply(n,S),P.plus(A),A=be.multiply(s,j),P.plus(A),this.buffer[1]=P.low(),this.buffer[3]=P.lessThan(A)?1:0,this.buffer[2]=P.high(),new be(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(be.multiply(r,S)).plus(be.multiply(n,j)).plus(be.multiply(s,m)),this.buffer[3]+=be.multiply(t,S).plus(be.multiply(r,j)).plus(be.multiply(n,m)).plus(be.multiply(s,u)).low(),this}plus(e){let t=new Uint32Array(4);return t[3]=this.buffer[3]+e.buffer[3]>>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${Fn(this.buffer[3])} ${Fn(this.buffer[2])} ${Fn(this.buffer[1])} ${Fn(this.buffer[0])}`}static multiply(e,t){return new Jt(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new Jt(new Uint32Array(e.buffer)).plus(t)}static from(e,t=new Uint32Array(4)){return Jt.fromString(typeof e=="string"?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(4)){return Jt.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(4)){let r=e.startsWith("-"),n=e.length,s=new Jt(t);for(let u=r?1:0;u<n;){let m=Mn<n-u?Mn:n-u,j=new Jt(new Uint32Array([parseInt(e.substr(u,m),10),0,0,0])),S=new Jt(new Uint32Array([el[m],0,0,0]));s.times(S),s.plus(j),u+=m}return r?s.negate():s}static convertArray(e){let t=new Uint32Array(e.length*4);for(let r=-1,n=e.length;++r<n;)Jt.from(e[r],new Uint32Array(t.buffer,t.byteOffset+4*4*r,4));return t}};ci.Int128=Jt});var cb=C(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.JSONVectorLoader=Cn.VectorLoader=void 0;var Ke=Yt(),uO=Qe(),Mi=me(),cO=nt(),ob=si(),lO=Fr(),ya=tl(),ab=Ie(),li=Ge(),il=class extends cO.Visitor{constructor(e,t,r,n){super();this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=t,this.buffers=r,this.dictionaries=n}visit(e){return super.visit(e instanceof uO.Field?e.type:e)}visitNull(e,{length:t}=this.nextFieldNode()){return Ke.Data.Null(e,0,t)}visitBool(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Bool(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitInt(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Int(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitFloat(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Float(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitUtf8(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Utf8(e,0,t,r,this.readNullBitmap(e,r),this.readOffsets(e),this.readData(e))}visitBinary(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Binary(e,0,t,r,this.readNullBitmap(e,r),this.readOffsets(e),this.readData(e))}visitFixedSizeBinary(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.FixedSizeBinary(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitDate(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Date(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitTimestamp(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Timestamp(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitTime(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Time(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitDecimal(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Decimal(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitList(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.List(e,0,t,r,this.readNullBitmap(e,r),this.readOffsets(e),this.visit(e.children[0]))}visitStruct(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Struct(e,0,t,r,this.readNullBitmap(e,r),this.visitMany(e.children))}visitUnion(e){return e.mode===ab.UnionMode.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}visitDenseUnion(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Union(e,0,t,r,this.readNullBitmap(e,r),this.readTypeIds(e),this.readOffsets(e),this.visitMany(e.children))}visitSparseUnion(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Union(e,0,t,r,this.readNullBitmap(e,r),this.readTypeIds(e),this.visitMany(e.children))}visitDictionary(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Dictionary(e,0,t,r,this.readNullBitmap(e,r),this.readData(e.indices),this.readDictionary(e))}visitInterval(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Interval(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitFixedSizeList(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.FixedSizeList(e,0,t,r,this.readNullBitmap(e,r),this.visit(e.children[0]))}visitMap(e,{length:t,nullCount:r}=this.nextFieldNode()){return Ke.Data.Map(e,0,t,r,this.readNullBitmap(e,r),this.readOffsets(e),this.visit(e.children[0]))}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,t,r=this.nextBufferRange()){return t>0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+t)}readDictionary(e){return this.dictionaries.get(e.id)}};Cn.VectorLoader=il;var ub=class extends il{constructor(e,t,r,n){super(new Uint8Array(0),t,r,n);this.sources=e}readNullBitmap(e,t,{offset:r}=this.nextBufferRange()){return t<=0?new Uint8Array(0):ob.packBools(this.sources[r])}readOffsets(e,{offset:t}=this.nextBufferRange()){return li.toArrayBufferView(Uint8Array,li.toArrayBufferView(Int32Array,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return li.toArrayBufferView(Uint8Array,li.toArrayBufferView(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){let{sources:r}=this;return Mi.DataType.isTimestamp(e)||(Mi.DataType.isInt(e)||Mi.DataType.isTime(e))&&e.bitWidth===64||Mi.DataType.isDate(e)&&e.unit===ab.DateUnit.MILLISECOND?li.toArrayBufferView(Uint8Array,ya.Int64.convertArray(r[t])):Mi.DataType.isDecimal(e)?li.toArrayBufferView(Uint8Array,ya.Int128.convertArray(r[t])):Mi.DataType.isBinary(e)||Mi.DataType.isFixedSizeBinary(e)?dO(r[t]):Mi.DataType.isBool(e)?ob.packBools(r[t]):Mi.DataType.isUtf8(e)?lO.encodeUtf8(r[t].join("")):li.toArrayBufferView(Uint8Array,li.toArrayBufferView(e.ArrayType,r[t].map(n=>+n)))}};Cn.JSONVectorLoader=ub;function dO(i){let e=i.join(""),t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2)t[r>>1]=parseInt(e.substr(r,2),16);return t}});var Ss=C(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.StructRow=Vn.MapRow=void 0;var lb=lc(),st=Symbol.for("parent"),Un=Symbol.for("rowIndex"),gt=Symbol.for("keyToIdx"),vt=Symbol.for("idxToVal"),rl=Symbol.for("nodejs.util.inspect.custom"),di=class{constructor(e,t){this[st]=e,this.size=t}entries(){return this[Symbol.iterator]()}has(e){return this.get(e)!==void 0}get(e){let t;if(e!=null){let r=this[gt]||(this[gt]=new Map),n=r.get(e);if(n!==void 0){let s=this[vt]||(this[vt]=new Array(this.size));(t=s[n])!==void 0||(s[n]=t=this.getValue(n))}else if((n=this.getIndex(e))>-1){r.set(e,n);let s=this[vt]||(this[vt]=new Array(this.size));(t=s[n])!==void 0||(s[n]=t=this.getValue(n))}}return t}set(e,t){if(e!=null){let r=this[gt]||(this[gt]=new Map),n=r.get(e);if(n===void 0&&r.set(e,n=this.getIndex(e)),n>-1){let s=this[vt]||(this[vt]=new Array(this.size));s[n]=this.setValue(n,t)}}return this}clear(){throw new Error(`Clearing ${this[Symbol.toStringTag]} not supported.`)}delete(e){throw new Error(`Deleting ${this[Symbol.toStringTag]} values not supported.`)}*[Symbol.iterator](){let e=this.keys(),t=this.values(),r=this[gt]||(this[gt]=new Map),n=this[vt]||(this[vt]=new Array(this.size));for(let s,u,m=0,j,S;!((j=e.next()).done||(S=t.next()).done);++m)s=j.value,u=S.value,n[m]=u,r.has(s)||r.set(s,m),yield[s,u]}forEach(e,t){let r=this.keys(),n=this.values(),s=t===void 0?e:(j,S,A)=>e.call(t,j,S,A),u=this[gt]||(this[gt]=new Map),m=this[vt]||(this[vt]=new Array(this.size));for(let j,S,A=0,P,q;!((P=r.next()).done||(q=n.next()).done);++A)j=P.value,S=q.value,m[A]=S,u.has(j)||u.set(j,A),s(S,j,this)}toArray(){return[...this.values()]}toJSON(){let e={};return this.forEach((t,r)=>e[r]=t),e}inspect(){return this.toString()}[rl](){return this.toString()}toString(){let e=[];return this.forEach((t,r)=>{r=lb.valueToString(r),t=lb.valueToString(t),e.push(`${r}: ${t}`)}),`{ ${e.join(", ")} }`}};di[Symbol.toStringTag]=(i=>(Object.defineProperties(i,{size:{writable:!0,enumerable:!1,configurable:!1,value:0},[st]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Un]:{writable:!0,enumerable:!1,configurable:!1,value:-1}}),i[Symbol.toStringTag]="Row"))(di.prototype);var db=class extends di{constructor(e){super(e,e.length);return fO(this)}keys(){return this[st].getChildAt(0)[Symbol.iterator]()}values(){return this[st].getChildAt(1)[Symbol.iterator]()}getKey(e){return this[st].getChildAt(0).get(e)}getIndex(e){return this[st].getChildAt(0).indexOf(e)}getValue(e){return this[st].getChildAt(1).get(e)}setValue(e,t){this[st].getChildAt(1).set(e,t)}};Vn.MapRow=db;var fb=class extends di{constructor(e){super(e,e.type.children.length);return hb(this)}*keys(){for(let e of this[st].type.children)yield e.name}*values(){for(let e of this[st].type.children)yield this[e.name]}getKey(e){return this[st].type.children[e].name}getIndex(e){return this[st].type.children.findIndex(t=>t.name===e)}getValue(e){return this[st].getChildAt(e).get(this[Un])}setValue(e,t){return this[st].getChildAt(e).set(this[Un],t)}};Vn.StructRow=fb;Object.setPrototypeOf(di.prototype,Map.prototype);var hb=(()=>{let i={enumerable:!0,configurable:!1,get:null,set:null};return e=>{let t=-1,r=e[gt]||(e[gt]=new Map),n=u=>function(){return this.get(u)},s=u=>function(m){return this.set(u,m)};for(let u of e.keys())r.set(u,++t),i.get=n(u),i.set=s(u),Object.prototype.hasOwnProperty.call(e,u)||(i.enumerable=!0,Object.defineProperty(e,u,i)),Object.prototype.hasOwnProperty.call(e,t)||(i.enumerable=!1,Object.defineProperty(e,t,i));return i.get=i.set=null,e}})(),fO=(()=>{if(typeof Proxy=="undefined")return hb;let i=di.prototype.has,e=di.prototype.get,t=di.prototype.set,r=di.prototype.getKey,n={isExtensible(){return!1},deleteProperty(){return!1},preventExtensions(){return!0},ownKeys(s){return[...s.keys()].map(u=>`${u}`)},has(s,u){switch(u){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case st:case Un:case vt:case gt:case rl:return!0}return typeof u=="number"&&!s.has(u)&&(u=s.getKey(u)),s.has(u)},get(s,u,m){switch(u){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case st:case Un:case vt:case gt:case rl:return Reflect.get(s,u,m)}return typeof u=="number"&&!i.call(m,u)&&(u=r.call(m,u)),e.call(m,u)},set(s,u,m,j){switch(u){case st:case Un:case vt:case gt:return Reflect.set(s,u,m,j);case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:return!1}return typeof u=="number"&&!i.call(j,u)&&(u=r.call(j,u)),i.call(j,u)?!!t.call(j,u,m):!1}};return s=>new Proxy(s,n)})()});var As=C(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.createElementComparator=cr.clampRange=cr.clampIndex=void 0;var pb=xe(),yb=Ss(),hO=Ge(),_b=ut();function pO(i,e,t){let r=i.length,n=e>-1?e:r+e%r;return t?t(i,n):n}cr.clampIndex=pO;var mb;function yO(i,e,t,r){let{length:n=0}=i,s=typeof e!="number"?0:e,u=typeof t!="number"?n:t;return s<0&&(s=(s%n+n)%n),u<0&&(u=(u%n+n)%n),u<s&&(mb=s,s=u,u=mb),u>n&&(u=n),r?r(i,s,u):[s,u]}cr.clampRange=yO;var _O=_b.BigIntAvailable?_b.BigInt(0):0,bb=i=>i!==i;function Ds(i){let e=typeof i;if(e!=="object"||i===null)return bb(i)?bb:e!=="bigint"?t=>t===i:t=>_O+t===i;if(i instanceof Date){let t=i.valueOf();return r=>r instanceof Date?r.valueOf()===t:!1}return ArrayBuffer.isView(i)?t=>t?hO.compareArrayLike(i,t):!1:i instanceof Map?bO(i):Array.isArray(i)?mO(i):i instanceof pb.Vector?gO(i):vO(i)}cr.createElementComparator=Ds;function mO(i){let e=[];for(let t=-1,r=i.length;++t<r;)e[t]=Ds(i[t]);return _a(e)}function bO(i){let e=-1,t=[];return i.forEach(r=>t[++e]=Ds(r)),_a(t)}function gO(i){let e=[];for(let t=-1,r=i.length;++t<r;)e[t]=Ds(i.get(t));return _a(e)}function vO(i){let e=Object.keys(i);if(e.length===0)return()=>!1;let t=[];for(let r=-1,n=e.length;++r<n;)t[r]=Ds(i[e[r]]);return _a(t,e)}function _a(i,e){return t=>{if(!t||typeof t!="object")return!1;switch(t.constructor){case Array:return jO(i,t);case Map:case yb.MapRow:case yb.StructRow:return gb(i,t,t.keys());case Object:case void 0:return gb(i,t,e||Object.keys(t))}return t instanceof pb.Vector?wO(i,t):!1}}function jO(i,e){let t=i.length;if(e.length!==t)return!1;for(let r=-1;++r<t;)if(!i[r](e[r]))return!1;return!0}function wO(i,e){let t=i.length;if(e.length!==t)return!1;for(let r=-1;++r<t;)if(!i[r](e.get(r)))return!1;return!0}function gb(i,e,t){let r=t[Symbol.iterator](),n=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),s=e instanceof Map?e.values():Object.values(e)[Symbol.iterator](),u=0,m=i.length,j=s.next(),S=r.next(),A=n.next();for(;u<m&&!S.done&&!A.done&&!j.done&&!(S.value!==A.value||!i[u](j.value));++u,S=r.next(),A=n.next(),j=s.next());return u===m&&S.done&&A.done&&j.done?!0:(r.return&&r.return(),n.return&&n.return(),s.return&&s.return(),!1)}});var Wr=C(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.selectColumnChildrenArgs=et.selectVectorChildrenArgs=et.selectChunkArgs=et.selectFieldArgs=et.selectColumnArgs=et.selectArgs=et.arrayTypeToDataType=et.isTypedArray=void 0;var nl=Yt(),vb=Qe(),Ci=Rn(),kn=xe(),Ut=me(),BO=dr(),lr=Array.isArray;function sl(i){return ArrayBuffer.isView(i)&&"BYTES_PER_ELEMENT"in i}et.isTypedArray=sl;function jb(i){switch(i){case Int8Array:return Ut.Int8;case Int16Array:return Ut.Int16;case Int32Array:return Ut.Int32;case BigInt64Array:return Ut.Int64;case Uint8Array:return Ut.Uint8;case Uint16Array:return Ut.Uint16;case Uint32Array:return Ut.Uint32;case BigUint64Array:return Ut.Uint64;case Float32Array:return Ut.Float32;case Float64Array:return Ut.Float64;default:return null}}et.arrayTypeToDataType=jb;function IO(i){let e=jb(i.constructor);if(!e)throw new TypeError("Unrecognized Array input");let t=new e,r=nl.Data.new(t,0,i.length,0,[void 0,i]);return kn.Vector.new(r)}et.selectArgs=(i,e)=>ma(i,e,[],0);et.selectColumnArgs=i=>{let[e,t]=al(i,[[],[]]);return t.map((r,n)=>r instanceof Ci.Column?Ci.Column.new(r.field.clone(e[n]),r):r instanceof kn.Vector?Ci.Column.new(e[n],r):sl(r)?Ci.Column.new(e[n],IO(r)):Ci.Column.new(e[n],[]))};et.selectFieldArgs=i=>al(i,[[],[]]);et.selectChunkArgs=(i,e)=>ol(i,e,[],0);et.selectVectorChildrenArgs=(i,e)=>wb(i,e,[],0);et.selectColumnChildrenArgs=(i,e)=>Bb(i,e,[],0);function ma(i,e,t,r){let n,s=r,u=-1,m=e.length;for(;++u<m;)lr(n=e[u])?s=ma(i,n,t,s).length:n instanceof i&&(t[s++]=n);return t}function ol(i,e,t,r){let n,s=r,u=-1,m=e.length;for(;++u<m;)lr(n=e[u])?s=ol(i,n,t,s).length:n instanceof BO.Chunked?s=ol(i,n.chunks,t,s).length:n instanceof i&&(t[s++]=n);return t}function wb(i,e,t,r){let n,s=r,u=-1,m=e.length;for(;++u<m;)lr(n=e[u])?s=wb(i,n,t,s).length:n instanceof i?s=ma(kn.Vector,n.schema.fields.map((j,S)=>n.getChildAt(S)),t,s).length:n instanceof kn.Vector&&(t[s++]=n);return t}function Bb(i,e,t,r){let n,s=r,u=-1,m=e.length;for(;++u<m;)lr(n=e[u])?s=Bb(i,n,t,s).length:n instanceof i?s=ma(Ci.Column,n.schema.fields.map((j,S)=>Ci.Column.new(j,n.getChildAt(S))),t,s).length:n instanceof Ci.Column&&(t[s++]=n);return t}var TO=(i,[e,t],r)=>(i[0][r]=e,i[1][r]=t,i);function al(i,e){let t,r;switch(r=i.length){case 0:return e;case 1:if(t=e[0],!i[0])return e;if(lr(i[0]))return al(i[0],e);i[0]instanceof nl.Data||i[0]instanceof kn.Vector||sl(i[0])||i[0]instanceof Ut.DataType||([t,i]=Object.entries(i[0]).reduce(TO,e));break;default:lr(t=i[r-1])?i=lr(i[0])?i[0]:i.slice(0,r-1):(i=lr(i[0])?i[0]:i,t=[])}let n=-1,s=-1,u=-1,m=i.length,j,S,[A,P]=e;for(;++u<m;)S=i[u],S instanceof Ci.Column&&(P[++s]=S)?A[++n]=S.field.clone(t[u],S.type,!0):({[u]:j=u}=t,S instanceof Ut.DataType&&(P[++s]=S)?A[++n]=vb.Field.new(j,S,!0):(S==null?void 0:S.type)&&(P[++s]=S)&&(S instanceof nl.Data&&(P[s]=S=kn.Vector.new(S)),A[++n]=vb.Field.new(j,S.type,!0)));return e}});var dr=C(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.Chunked=void 0;var SO=As(),Ib=me(),DO=Wr(),Tb=xe(),Sb=class{constructor(e){this.chunks=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator()}next(){for(;this.chunkIndex<this.chunks.length;){let e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.chunks.length&&(this.chunkIterator=this.getChunkIterator())}return{done:!0,value:null}}getChunkIterator(){return this.chunks[this.chunkIndex][Symbol.iterator]()}[Symbol.iterator](){return this}},Ui=class extends Tb.AbstractVector{constructor(e,t=[],r=AO(t)){super();this._nullCount=-1,this._type=e,this._chunks=t,this._chunkOffsets=r,this._length=r[r.length-1],this._numChildren=(this._type.children||[]).length}static flatten(...e){return DO.selectChunkArgs(Tb.Vector,e)}static concat(...e){let t=Ui.flatten(...e);return new Ui(t[0].type,t)}get type(){return this._type}get length(){return this._length}get chunks(){return this._chunks}get typeId(){return this._type.typeId}get VectorName(){return`Chunked<${this._type}>`}get data(){return this._chunks[0]?this._chunks[0].data:null}get ArrayType(){return this._type.ArrayType}get numChildren(){return this._numChildren}get stride(){return this._chunks[0]?this._chunks[0].stride:1}get byteLength(){return this._chunks.reduce((e,t)=>e+t.byteLength,0)}get nullCount(){let e=this._nullCount;return e<0&&(this._nullCount=e=this._chunks.reduce((t,{nullCount:r})=>t+r,0)),e}get indices(){if(Ib.DataType.isDictionary(this._type)){if(!this._indices){let e=this._chunks;this._indices=e.length===1?e[0].indices:Ui.concat(...e.map(t=>t.indices))}return this._indices}return null}get dictionary(){return Ib.DataType.isDictionary(this._type)?this._chunks[this._chunks.length-1].data.dictionary:null}[Symbol.iterator](){return new Sb(this._chunks)}clone(e=this._chunks){return new Ui(this._type,e)}concat(...e){return this.clone(Ui.flatten(this,...e))}slice(e,t){return SO.clampRange(this,e,t,this._sliceInternal)}getChildAt(e){if(e<0||e>=this._numChildren)return null;let t=this._children||(this._children=[]),r,n,s;return(r=t[e])?r:(n=(this._type.children||[])[e])&&(s=this._chunks.map(u=>u.getChildAt(e)).filter(u=>u!=null),s.length>0)?t[e]=new Ui(n.type,s):null}search(e,t){let r=e,n=this._chunkOffsets,s=n.length-1;if(r<0||r>=n[s])return null;if(s<=1)return t?t(this,0,r):[0,r];let u=0,m=0,j=0;do{if(u+1===s)return t?t(this,u,r-m):[u,r-m];j=u+(s-u)/2|0,r>=n[j]?u=j:s=j}while(r<n[s]&&r>=(m=n[u]));return null}isValid(e){return!!this.search(e,this.isValidInternal)}get(e){return this.search(e,this.getInternal)}set(e,t){this.search(e,({chunks:r},n,s)=>r[n].set(s,t))}indexOf(e,t){return t&&typeof t=="number"?this.search(t,(r,n,s)=>this.indexOfInternal(r,n,s,e)):this.indexOfInternal(this,0,Math.max(0,t||0),e)}toArray(){let{chunks:e}=this,t=e.length,r=this._type.ArrayType;if(t<=0)return new r(0);if(t<=1)return e[0].toArray();let n=0,s=new Array(t);for(let j=-1;++j<t;)n+=(s[j]=e[j].toArray()).length;r!==s[0].constructor&&(r=s[0].constructor);let u=new r(n),m=r===Array?FO:OO;for(let j=-1,S=0;++j<t;)S=m(s[j],u,S);return u}getInternal({_chunks:e},t,r){return e[t].get(r)}isValidInternal({_chunks:e},t,r){return e[t].isValid(r)}indexOfInternal({_chunks:e},t,r,n){let s=t-1,u=e.length,m=r,j=0,S=-1;for(;++s<u;){if(~(S=e[s].indexOf(n,m)))return j+S;m=0,j+=e[s].length}return-1}_sliceInternal(e,t,r){let n=[],{chunks:s,_chunkOffsets:u}=e;for(let m=-1,j=s.length;++m<j;){let S=s[m],A=S.length,P=u[m];if(P>=r)break;if(t>=P+A)continue;if(P>=t&&P+A<=r){n.push(S);continue}let q=Math.max(0,t-P),J=Math.min(r-P,A);n.push(S.slice(q,J))}return e.clone(n)}};ba.Chunked=Ui;function AO(i){let e=new Uint32Array((i||[]).length+1),t=e[0]=0,r=e.length;for(let n=0;++n<r;)e[n]=t+=i[n-1].length;return e}var OO=(i,e,t)=>(e.set(i,t),t+i.length),FO=(i,e,t)=>{let r=t;for(let n=-1,s=i.length;++n<s;)e[r++]=i[n];return r}});var Rn=C(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.Column=void 0;var Db=Qe(),Ab=xe(),ul=dr(),Hr=class extends ul.Chunked{constructor(e,t=[],r){t=ul.Chunked.flatten(...t);super(e.type,t,r);if(this._field=e,t.length===1&&!(this instanceof cl))return new cl(e,t[0],this._chunkOffsets)}static new(...e){let[t,r,...n]=e;typeof t!="string"&&!(t instanceof Db.Field)&&(r=t,t="");let s=ul.Chunked.flatten(Array.isArray(r)?[...r,...n]:r instanceof Ab.Vector?[r,...n]:[Ab.Vector.new(r,...n)]);if(typeof t=="string"){let u=s[0].data.type;t=new Db.Field(t,u,!0)}else!t.nullable&&s.some(({nullCount:u})=>u>0)&&(t=t.clone({nullable:!0}));return new Hr(t,s)}get field(){return this._field}get name(){return this._field.name}get nullable(){return this._field.nullable}get metadata(){return this._field.metadata}clone(e=this._chunks){return new Hr(this._field,e)}getChildAt(e){if(e<0||e>=this.numChildren)return null;let t=this._children||(this._children=[]),r,n,s;return(r=t[e])?r:(n=(this.type.children||[])[e])&&(s=this._chunks.map(u=>u.getChildAt(e)).filter(u=>u!=null),s.length>0)?t[e]=new Hr(n,s):null}};ga.Column=Hr;var cl=class extends Hr{constructor(e,t,r){super(e,[t],r);this._chunk=t}search(e,t){return t?t(this,0,e):[0,e]}isValid(e){return this._chunk.isValid(e)}get(e){return this._chunk.get(e)}set(e,t){this._chunk.set(e,t)}indexOf(e,t){return this._chunk.indexOf(e,t)}}});var Ob=C(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.instance=En.TypeAssembler=void 0;var MO=Ii(),CO=MO.flatbuffers.Long,UO=nt(),$=Gi(),ll=class extends UO.Visitor{visit(e,t){return e==null||t==null?void 0:super.visit(e,t)}visitNull(e,t){return $.Null.startNull(t),$.Null.endNull(t)}visitInt(e,t){return $.Int.startInt(t),$.Int.addBitWidth(t,e.bitWidth),$.Int.addIsSigned(t,e.isSigned),$.Int.endInt(t)}visitFloat(e,t){return $.FloatingPoint.startFloatingPoint(t),$.FloatingPoint.addPrecision(t,e.precision),$.FloatingPoint.endFloatingPoint(t)}visitBinary(e,t){return $.Binary.startBinary(t),$.Binary.endBinary(t)}visitBool(e,t){return $.Bool.startBool(t),$.Bool.endBool(t)}visitUtf8(e,t){return $.Utf8.startUtf8(t),$.Utf8.endUtf8(t)}visitDecimal(e,t){return $.Decimal.startDecimal(t),$.Decimal.addScale(t,e.scale),$.Decimal.addPrecision(t,e.precision),$.Decimal.endDecimal(t)}visitDate(e,t){return $.Date.startDate(t),$.Date.addUnit(t,e.unit),$.Date.endDate(t)}visitTime(e,t){return $.Time.startTime(t),$.Time.addUnit(t,e.unit),$.Time.addBitWidth(t,e.bitWidth),$.Time.endTime(t)}visitTimestamp(e,t){let r=e.timezone&&t.createString(e.timezone)||void 0;return $.Timestamp.startTimestamp(t),$.Timestamp.addUnit(t,e.unit),r!==void 0&&$.Timestamp.addTimezone(t,r),$.Timestamp.endTimestamp(t)}visitInterval(e,t){return $.Interval.startInterval(t),$.Interval.addUnit(t,e.unit),$.Interval.endInterval(t)}visitList(e,t){return $.List.startList(t),$.List.endList(t)}visitStruct(e,t){return $.Struct_.startStruct_(t),$.Struct_.endStruct_(t)}visitUnion(e,t){$.Union.startTypeIdsVector(t,e.typeIds.length);let r=$.Union.createTypeIdsVector(t,e.typeIds);return $.Union.startUnion(t),$.Union.addMode(t,e.mode),$.Union.addTypeIds(t,r),$.Union.endUnion(t)}visitDictionary(e,t){let r=this.visit(e.indices,t);return $.DictionaryEncoding.startDictionaryEncoding(t),$.DictionaryEncoding.addId(t,new CO(e.id,0)),$.DictionaryEncoding.addIsOrdered(t,e.isOrdered),r!==void 0&&$.DictionaryEncoding.addIndexType(t,r),$.DictionaryEncoding.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return $.FixedSizeBinary.startFixedSizeBinary(t),$.FixedSizeBinary.addByteWidth(t,e.byteWidth),$.FixedSizeBinary.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return $.FixedSizeList.startFixedSizeList(t),$.FixedSizeList.addListSize(t,e.listSize),$.FixedSizeList.endFixedSizeList(t)}visitMap(e,t){return $.Map.startMap(t),$.Map.addKeysSorted(t,e.keysSorted),$.Map.endMap(t)}};En.TypeAssembler=ll;En.instance=new ll});var Rb=C(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.fieldFromJSON=fi.dictionaryBatchFromJSON=fi.recordBatchFromJSON=fi.schemaFromJSON=void 0;var Nn=Qe(),Ae=me(),Yr=$r(),Pn=Ie();function VO(i,e=new Map){return new Nn.Schema(RO(i,e),va(i.customMetadata),e)}fi.schemaFromJSON=VO;function Fb(i){return new Yr.RecordBatch(i.count,Cb(i.columns),Ub(i.columns))}fi.recordBatchFromJSON=Fb;function kO(i){return new Yr.DictionaryBatch(Fb(i.data),i.id,i.isDelta)}fi.dictionaryBatchFromJSON=kO;function RO(i,e){return(i.fields||[]).filter(Boolean).map(t=>Nn.Field.fromJSON(t,e))}function Mb(i,e){return(i.children||[]).filter(Boolean).map(t=>Nn.Field.fromJSON(t,e))}function Cb(i){return(i||[]).reduce((e,t)=>[...e,new Yr.FieldNode(t.count,EO(t.VALIDITY)),...Cb(t.children)],[])}function Ub(i,e=[]){for(let t=-1,r=(i||[]).length;++t<r;){let n=i[t];n.VALIDITY&&e.push(new Yr.BufferRegion(e.length,n.VALIDITY.length)),n.TYPE&&e.push(new Yr.BufferRegion(e.length,n.TYPE.length)),n.OFFSET&&e.push(new Yr.BufferRegion(e.length,n.OFFSET.length)),n.DATA&&e.push(new Yr.BufferRegion(e.length,n.DATA.length)),e=Ub(n.children,e)}return e}function EO(i){return(i||[]).reduce((e,t)=>e+ +(t===0),0)}function NO(i,e){let t,r,n,s,u,m;return!e||!(s=i.dictionary)?(u=kb(i,Mb(i,e)),n=new Nn.Field(i.name,u,i.nullable,va(i.customMetadata))):e.has(t=s.id)?(r=(r=s.indexType)?Vb(r):new Ae.Int32,m=new Ae.Dictionary(e.get(t),r,t,s.isOrdered),n=new Nn.Field(i.name,m,i.nullable,va(i.customMetadata))):(r=(r=s.indexType)?Vb(r):new Ae.Int32,e.set(t,u=kb(i,Mb(i,e))),m=new Ae.Dictionary(u,r,t,s.isOrdered),n=new Nn.Field(i.name,m,i.nullable,va(i.customMetadata))),n||null}fi.fieldFromJSON=NO;function va(i){return new Map(Object.entries(i||{}))}function Vb(i){return new Ae.Int(i.isSigned,i.bitWidth)}function kb(i,e){let t=i.type.name;switch(t){case"NONE":return new Ae.Null;case"null":return new Ae.Null;case"binary":return new Ae.Binary;case"utf8":return new Ae.Utf8;case"bool":return new Ae.Bool;case"list":return new Ae.List((e||[])[0]);case"struct":return new Ae.Struct(e||[]);case"struct_":return new Ae.Struct(e||[])}switch(t){case"int":{let r=i.type;return new Ae.Int(r.isSigned,r.bitWidth)}case"floatingpoint":{let r=i.type;return new Ae.Float(Pn.Precision[r.precision])}case"decimal":{let r=i.type;return new Ae.Decimal(r.scale,r.precision)}case"date":{let r=i.type;return new Ae.Date_(Pn.DateUnit[r.unit])}case"time":{let r=i.type;return new Ae.Time(Pn.TimeUnit[r.unit],r.bitWidth)}case"timestamp":{let r=i.type;return new Ae.Timestamp(Pn.TimeUnit[r.unit],r.timezone)}case"interval":{let r=i.type;return new Ae.Interval(Pn.IntervalUnit[r.unit])}case"union":{let r=i.type;return new Ae.Union(Pn.UnionMode[r.mode],r.typeIds||[],e||[])}case"fixedsizebinary":{let r=i.type;return new Ae.FixedSizeBinary(r.byteWidth)}case"fixedsizelist":{let r=i.type;return new Ae.FixedSizeList(r.listSize,(e||[])[0])}case"map":{let r=i.type;return new Ae.Map_((e||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${t}"`)}});var $r=C(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.FieldNode=kt.BufferRegion=kt.DictionaryBatch=kt.RecordBatch=kt.Message=void 0;var dl=Ii(),H=Gi(),Me=Io(),tt=Qe(),PO=Ge(),Re=Ie(),fl=Ob(),ja=Rb(),Gr=dl.flatbuffers.Long,xO=dl.flatbuffers.Builder,LO=dl.flatbuffers.ByteBuffer,Oe=me(),fr=class{constructor(e,t,r,n){this._version=t,this._headerType=r,this.body=new Uint8Array(0),n&&(this._createHeader=()=>n),this._bodyLength=typeof e=="number"?e:e.low}static fromJSON(e,t){let r=new fr(0,Re.MetadataVersion.V4,t);return r._createHeader=qO(e,t),r}static decode(e){e=new LO(PO.toUint8Array(e));let t=Me.Message.getRootAsMessage(e),r=t.bodyLength(),n=t.version(),s=t.headerType(),u=new fr(r,n,s);return u._createHeader=zO(t,s),u}static encode(e){let t=new xO,r=-1;return e.isSchema()?r=tt.Schema.encode(t,e.header()):e.isRecordBatch()?r=Vt.encode(t,e.header()):e.isDictionaryBatch()&&(r=hi.encode(t,e.header())),Me.Message.startMessage(t),Me.Message.addVersion(t,Re.MetadataVersion.V4),Me.Message.addHeader(t,r),Me.Message.addHeaderType(t,e.headerType),Me.Message.addBodyLength(t,new Gr(e.bodyLength,0)),Me.Message.finishMessageBuffer(t,Me.Message.endMessage(t)),t.asUint8Array()}static from(e,t=0){if(e instanceof tt.Schema)return new fr(0,Re.MetadataVersion.V4,Re.MessageHeader.Schema,e);if(e instanceof Vt)return new fr(t,Re.MetadataVersion.V4,Re.MessageHeader.RecordBatch,e);if(e instanceof hi)return new fr(t,Re.MetadataVersion.V4,Re.MessageHeader.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===Re.MessageHeader.Schema}isRecordBatch(){return this.headerType===Re.MessageHeader.RecordBatch}isDictionaryBatch(){return this.headerType===Re.MessageHeader.DictionaryBatch}};kt.Message=fr;var Vt=class{constructor(e,t,r){this._nodes=t,this._buffers=r,this._length=typeof e=="number"?e:e.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}};kt.RecordBatch=Vt;var hi=class{constructor(e,t,r=!1){this._data=e,this._isDelta=r,this._id=typeof t=="number"?t:t.low}get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}};kt.DictionaryBatch=hi;var Jr=class{constructor(e,t){this.offset=typeof e=="number"?e:e.low,this.length=typeof t=="number"?t:t.low}};kt.BufferRegion=Jr;var Kr=class{constructor(e,t){this.length=typeof e=="number"?e:e.low,this.nullCount=typeof t=="number"?t:t.low}};kt.FieldNode=Kr;function qO(i,e){return()=>{switch(e){case Re.MessageHeader.Schema:return tt.Schema.fromJSON(i);case Re.MessageHeader.RecordBatch:return Vt.fromJSON(i);case Re.MessageHeader.DictionaryBatch:return hi.fromJSON(i)}throw new Error(`Unrecognized Message type: { name: ${Re.MessageHeader[e]}, type: ${e} }`)}}function zO(i,e){return()=>{switch(e){case Re.MessageHeader.Schema:return tt.Schema.decode(i.header(new H.Schema));case Re.MessageHeader.RecordBatch:return Vt.decode(i.header(new Me.RecordBatch),i.version());case Re.MessageHeader.DictionaryBatch:return hi.decode(i.header(new Me.DictionaryBatch),i.version())}throw new Error(`Unrecognized Message type: { name: ${Re.MessageHeader[e]}, type: ${e} }`)}}tt.Field.encode=eF;tt.Field.decode=XO;tt.Field.fromJSON=ja.fieldFromJSON;tt.Schema.encode=QO;tt.Schema.decode=WO;tt.Schema.fromJSON=ja.schemaFromJSON;Vt.encode=tF;Vt.decode=HO;Vt.fromJSON=ja.recordBatchFromJSON;hi.encode=iF;hi.decode=YO;hi.fromJSON=ja.dictionaryBatchFromJSON;Kr.encode=rF;Kr.decode=GO;Jr.encode=nF;Jr.decode=$O;function WO(i,e=new Map){let t=ZO(i,e);return new tt.Schema(t,wa(i),e)}function HO(i,e=Re.MetadataVersion.V4){return new Vt(i.length(),JO(i),KO(i,e))}function YO(i,e=Re.MetadataVersion.V4){return new hi(Vt.decode(i.data(),e),i.id(),i.isDelta())}function $O(i){return new Jr(i.offset(),i.length())}function GO(i){return new Kr(i.length(),i.nullCount())}function JO(i){let e=[];for(let t,r=-1,n=-1,s=i.nodesLength();++r<s;)(t=i.nodes(r))&&(e[++n]=Kr.decode(t));return e}function KO(i,e){let t=[];for(let r,n=-1,s=-1,u=i.buffersLength();++n<u;)(r=i.buffers(n))&&(e<Re.MetadataVersion.V4&&(r.bb_pos+=8*(n+1)),t[++s]=Jr.decode(r));return t}function ZO(i,e){let t=[];for(let r,n=-1,s=-1,u=i.fieldsLength();++n<u;)(r=i.fields(n))&&(t[++s]=tt.Field.decode(r,e));return t}function Eb(i,e){let t=[];for(let r,n=-1,s=-1,u=i.childrenLength();++n<u;)(r=i.children(n))&&(t[++s]=tt.Field.decode(r,e));return t}function XO(i,e){let t,r,n,s,u,m;return!e||!(m=i.dictionary())?(n=Pb(i,Eb(i,e)),r=new tt.Field(i.name(),n,i.nullable(),wa(i))):e.has(t=m.id().low)?(s=(s=m.indexType())?Nb(s):new Oe.Int32,u=new Oe.Dictionary(e.get(t),s,t,m.isOrdered()),r=new tt.Field(i.name(),u,i.nullable(),wa(i))):(s=(s=m.indexType())?Nb(s):new Oe.Int32,e.set(t,n=Pb(i,Eb(i,e))),u=new Oe.Dictionary(n,s,t,m.isOrdered()),r=new tt.Field(i.name(),u,i.nullable(),wa(i))),r||null}function wa(i){let e=new Map;if(i)for(let t,r,n=-1,s=i.customMetadataLength()|0;++n<s;)(t=i.customMetadata(n))&&(r=t.key())!=null&&e.set(r,t.value());return e}function Nb(i){return new Oe.Int(i.isSigned(),i.bitWidth())}function Pb(i,e){let t=i.typeType();switch(t){case H.Type.NONE:return new Oe.Null;case H.Type.Null:return new Oe.Null;case H.Type.Binary:return new Oe.Binary;case H.Type.Utf8:return new Oe.Utf8;case H.Type.Bool:return new Oe.Bool;case H.Type.List:return new Oe.List((e||[])[0]);case H.Type.Struct_:return new Oe.Struct(e||[])}switch(t){case H.Type.Int:{let r=i.type(new H.Int);return new Oe.Int(r.isSigned(),r.bitWidth())}case H.Type.FloatingPoint:{let r=i.type(new H.FloatingPoint);return new Oe.Float(r.precision())}case H.Type.Decimal:{let r=i.type(new H.Decimal);return new Oe.Decimal(r.scale(),r.precision())}case H.Type.Date:{let r=i.type(new H.Date);return new Oe.Date_(r.unit())}case H.Type.Time:{let r=i.type(new H.Time);return new Oe.Time(r.unit(),r.bitWidth())}case H.Type.Timestamp:{let r=i.type(new H.Timestamp);return new Oe.Timestamp(r.unit(),r.timezone())}case H.Type.Interval:{let r=i.type(new H.Interval);return new Oe.Interval(r.unit())}case H.Type.Union:{let r=i.type(new H.Union);return new Oe.Union(r.mode(),r.typeIdsArray()||[],e||[])}case H.Type.FixedSizeBinary:{let r=i.type(new H.FixedSizeBinary);return new Oe.FixedSizeBinary(r.byteWidth())}case H.Type.FixedSizeList:{let r=i.type(new H.FixedSizeList);return new Oe.FixedSizeList(r.listSize(),(e||[])[0])}case H.Type.Map:{let r=i.type(new H.Map);return new Oe.Map_((e||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${H.Type[t]}" (${t})`)}function QO(i,e){let t=e.fields.map(s=>tt.Field.encode(i,s));H.Schema.startFieldsVector(i,t.length);let r=H.Schema.createFieldsVector(i,t),n=e.metadata&&e.metadata.size>0?H.Schema.createCustomMetadataVector(i,[...e.metadata].map(([s,u])=>{let m=i.createString(`${s}`),j=i.createString(`${u}`);return H.KeyValue.startKeyValue(i),H.KeyValue.addKey(i,m),H.KeyValue.addValue(i,j),H.KeyValue.endKeyValue(i)})):-1;return H.Schema.startSchema(i),H.Schema.addFields(i,r),H.Schema.addEndianness(i,sF?H.Endianness.Little:H.Endianness.Big),n!==-1&&H.Schema.addCustomMetadata(i,n),H.Schema.endSchema(i)}function eF(i,e){let t=-1,r=-1,n=-1,s=e.type,u=e.typeId;Oe.DataType.isDictionary(s)?(u=s.dictionary.typeId,n=fl.instance.visit(s,i),r=fl.instance.visit(s.dictionary,i)):r=fl.instance.visit(s,i);let m=(s.children||[]).map(A=>tt.Field.encode(i,A)),j=H.Field.createChildrenVector(i,m),S=e.metadata&&e.metadata.size>0?H.Field.createCustomMetadataVector(i,[...e.metadata].map(([A,P])=>{let q=i.createString(`${A}`),J=i.createString(`${P}`);return H.KeyValue.startKeyValue(i),H.KeyValue.addKey(i,q),H.KeyValue.addValue(i,J),H.KeyValue.endKeyValue(i)})):-1;return e.name&&(t=i.createString(e.name)),H.Field.startField(i),H.Field.addType(i,r),H.Field.addTypeType(i,u),H.Field.addChildren(i,j),H.Field.addNullable(i,!!e.nullable),t!==-1&&H.Field.addName(i,t),n!==-1&&H.Field.addDictionary(i,n),S!==-1&&H.Field.addCustomMetadata(i,S),H.Field.endField(i)}function tF(i,e){let t=e.nodes||[],r=e.buffers||[];Me.RecordBatch.startNodesVector(i,t.length),t.slice().reverse().forEach(u=>Kr.encode(i,u));let n=i.endVector();Me.RecordBatch.startBuffersVector(i,r.length),r.slice().reverse().forEach(u=>Jr.encode(i,u));let s=i.endVector();return Me.RecordBatch.startRecordBatch(i),Me.RecordBatch.addLength(i,new Gr(e.length,0)),Me.RecordBatch.addNodes(i,n),Me.RecordBatch.addBuffers(i,s),Me.RecordBatch.endRecordBatch(i)}function iF(i,e){let t=Vt.encode(i,e.data);return Me.DictionaryBatch.startDictionaryBatch(i),Me.DictionaryBatch.addId(i,new Gr(e.id,0)),Me.DictionaryBatch.addIsDelta(i,e.isDelta),Me.DictionaryBatch.addData(i,t),Me.DictionaryBatch.endDictionaryBatch(i)}function rF(i,e){return Me.FieldNode.createFieldNode(i,new Gr(e.length,0),new Gr(e.nullCount,0))}function nF(i,e){return H.Buffer.createBuffer(i,new Gr(e.offset,0),new Gr(e.length,0))}var sF=function(){let i=new ArrayBuffer(2);return new DataView(i).setInt16(0,256,!0),new Int16Array(i)[0]===256}()});var Ia=C(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.magicX2AndPadding=pe.magicAndPadding=pe.magicLength=pe.checkForMagicArrowString=pe.MAGIC=pe.MAGIC_STR=pe.PADDING=pe.JSONMessageReader=pe.AsyncMessageReader=pe.MessageReader=void 0;var hr=at(),pr=Ie(),oF=Ii(),xb=oF.flatbuffers.ByteBuffer,Os=$r(),aF=ut(),uF=Qc(),Lb=Ge(),Ba=ar(),Kt=cn(),hl=i=>`Expected ${pr.MessageHeader[i]} Message in stream, but was null or length 0.`,pl=i=>`Header pointer of flatbuffer-encoded ${pr.MessageHeader[i]} Message is null or length 0.`,qb=(i,e)=>`Expected to read ${i} metadata bytes, but only read ${e}.`,zb=(i,e)=>`Expected to read ${i} bytes for message body, but only read ${e}.`,yl=class{constructor(e){this.source=e instanceof Ba.ByteStream?e:new Ba.ByteStream(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?Kt.ITERATOR_DONE:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(hl(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let t=Lb.toUint8Array(this.source.read(e));if(t.byteLength<e)throw new Error(zb(e,t.byteLength));return t.byteOffset%8==0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}readSchema(e=!1){let t=pr.MessageHeader.Schema,r=this.readMessage(t),n=r==null?void 0:r.header();if(e&&!n)throw new Error(pl(t));return n}readMetadataLength(){let e=this.source.read(pe.PADDING),t=e&&new xb(e),r=(t==null?void 0:t.readInt32(0))||0;return{done:r===0,value:r}}readMetadata(e){let t=this.source.read(e);if(!t)return Kt.ITERATOR_DONE;if(t.byteLength<e)throw new Error(qb(e,t.byteLength));return{done:!1,value:Os.Message.decode(t)}}};pe.MessageReader=yl;var Wb=class{constructor(e,t){this.source=e instanceof Ba.AsyncByteStream?e:aF.isFileHandle(e)?new uF.AsyncRandomAccessFile(e,t):new Ba.AsyncByteStream(e)}[Symbol.asyncIterator](){return this}next(){return hr.__awaiter(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?Kt.ITERATOR_DONE:e})}throw(e){return hr.__awaiter(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return hr.__awaiter(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return hr.__awaiter(this,void 0,void 0,function*(){let t;if((t=yield this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(hl(e));return t.value})}readMessageBody(e){return hr.__awaiter(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);let t=Lb.toUint8Array(yield this.source.read(e));if(t.byteLength<e)throw new Error(zb(e,t.byteLength));return t.byteOffset%8==0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()})}readSchema(e=!1){return hr.__awaiter(this,void 0,void 0,function*(){let t=pr.MessageHeader.Schema,r=yield this.readMessage(t),n=r==null?void 0:r.header();if(e&&!n)throw new Error(pl(t));return n})}readMetadataLength(){return hr.__awaiter(this,void 0,void 0,function*(){let e=yield this.source.read(pe.PADDING),t=e&&new xb(e),r=(t==null?void 0:t.readInt32(0))||0;return{done:r===0,value:r}})}readMetadata(e){return hr.__awaiter(this,void 0,void 0,function*(){let t=yield this.source.read(e);if(!t)return Kt.ITERATOR_DONE;if(t.byteLength<e)throw new Error(qb(e,t.byteLength));return{done:!1,value:Os.Message.decode(t)}})}};pe.AsyncMessageReader=Wb;var Hb=class extends yl{constructor(e){super(new Uint8Array(0));this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof Kt.ArrowJSON?e:new Kt.ArrowJSON(e)}next(){let{_json:e}=this;if(!this._schema){this._schema=!0;let t=Os.Message.fromJSON(e.schema,pr.MessageHeader.Schema);return{done:!1,value:t}}if(this._dictionaryIndex<e.dictionaries.length){let t=e.dictionaries[this._dictionaryIndex++];this._body=t.data.columns;let r=Os.Message.fromJSON(t,pr.MessageHeader.DictionaryBatch);return{done:!1,value:r}}if(this._batchIndex<e.batches.length){let t=e.batches[this._batchIndex++];this._body=t.columns;let r=Os.Message.fromJSON(t,pr.MessageHeader.RecordBatch);return{done:!1,value:r}}return this._body=[],Kt.ITERATOR_DONE}readMessageBody(e){return t(this._body);function t(r){return(r||[]).reduce((n,s)=>[...n,...s.VALIDITY&&[s.VALIDITY]||[],...s.TYPE&&[s.TYPE]||[],...s.OFFSET&&[s.OFFSET]||[],...s.DATA&&[s.DATA]||[],...t(s.children)],[])}}readMessage(e){let t;if((t=this.next()).done)return null;if(e!=null&&t.value.headerType!==e)throw new Error(hl(e));return t.value}readSchema(){let e=pr.MessageHeader.Schema,t=this.readMessage(e),r=t==null?void 0:t.header();if(!t||!r)throw new Error(pl(e));return r}};pe.JSONMessageReader=Hb;pe.PADDING=4;pe.MAGIC_STR="ARROW1";pe.MAGIC=new Uint8Array(pe.MAGIC_STR.length);for(let i=0;i<pe.MAGIC_STR.length;i+=1|0)pe.MAGIC[i]=pe.MAGIC_STR.charCodeAt(i);function cF(i,e=0){for(let t=-1,r=pe.MAGIC.length;++t<r;)if(pe.MAGIC[t]!==i[e+t])return!1;return!0}pe.checkForMagicArrowString=cF;pe.magicLength=pe.MAGIC.length;pe.magicAndPadding=pe.magicLength+pe.PADDING;pe.magicX2AndPadding=pe.magicLength*2+pe.PADDING});var gl=C(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.compareTypes=Ee.compareFields=Ee.compareSchemas=Ee.instance=Ee.TypeComparator=void 0;var lF=nt(),K=class extends lF.Visitor{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((r,n)=>this.compareFields(r,t[n]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};Ee.TypeComparator=K;function mt(i,e){return e instanceof i.constructor}function Fs(i,e){return i===e||mt(i,e)}function Vi(i,e){return i===e||mt(i,e)&&i.bitWidth===e.bitWidth&&i.isSigned===e.isSigned}function Ta(i,e){return i===e||mt(i,e)&&i.precision===e.precision}function dF(i,e){return i===e||mt(i,e)&&i.byteWidth===e.byteWidth}function _l(i,e){return i===e||mt(i,e)&&i.unit===e.unit}function Ms(i,e){return i===e||mt(i,e)&&i.unit===e.unit&&i.timezone===e.timezone}function Cs(i,e){return i===e||mt(i,e)&&i.unit===e.unit&&i.bitWidth===e.bitWidth}function fF(i,e){return i===e||mt(i,e)&&i.children.length===e.children.length&&Ee.instance.compareManyFields(i.children,e.children)}function hF(i,e){return i===e||mt(i,e)&&i.children.length===e.children.length&&Ee.instance.compareManyFields(i.children,e.children)}function ml(i,e){return i===e||mt(i,e)&&i.mode===e.mode&&i.typeIds.every((t,r)=>t===e.typeIds[r])&&Ee.instance.compareManyFields(i.children,e.children)}function pF(i,e){return i===e||mt(i,e)&&i.id===e.id&&i.isOrdered===e.isOrdered&&Ee.instance.visit(i.indices,e.indices)&&Ee.instance.visit(i.dictionary,e.dictionary)}function bl(i,e){return i===e||mt(i,e)&&i.unit===e.unit}function yF(i,e){return i===e||mt(i,e)&&i.listSize===e.listSize&&i.children.length===e.children.length&&Ee.instance.compareManyFields(i.children,e.children)}function _F(i,e){return i===e||mt(i,e)&&i.keysSorted===e.keysSorted&&i.children.length===e.children.length&&Ee.instance.compareManyFields(i.children,e.children)}K.prototype.visitNull=Fs;K.prototype.visitBool=Fs;K.prototype.visitInt=Vi;K.prototype.visitInt8=Vi;K.prototype.visitInt16=Vi;K.prototype.visitInt32=Vi;K.prototype.visitInt64=Vi;K.prototype.visitUint8=Vi;K.prototype.visitUint16=Vi;K.prototype.visitUint32=Vi;K.prototype.visitUint64=Vi;K.prototype.visitFloat=Ta;K.prototype.visitFloat16=Ta;K.prototype.visitFloat32=Ta;K.prototype.visitFloat64=Ta;K.prototype.visitUtf8=Fs;K.prototype.visitBinary=Fs;K.prototype.visitFixedSizeBinary=dF;K.prototype.visitDate=_l;K.prototype.visitDateDay=_l;K.prototype.visitDateMillisecond=_l;K.prototype.visitTimestamp=Ms;K.prototype.visitTimestampSecond=Ms;K.prototype.visitTimestampMillisecond=Ms;K.prototype.visitTimestampMicrosecond=Ms;K.prototype.visitTimestampNanosecond=Ms;K.prototype.visitTime=Cs;K.prototype.visitTimeSecond=Cs;K.prototype.visitTimeMillisecond=Cs;K.prototype.visitTimeMicrosecond=Cs;K.prototype.visitTimeNanosecond=Cs;K.prototype.visitDecimal=Fs;K.prototype.visitList=fF;K.prototype.visitStruct=hF;K.prototype.visitUnion=ml;K.prototype.visitDenseUnion=ml;K.prototype.visitSparseUnion=ml;K.prototype.visitDictionary=pF;K.prototype.visitInterval=bl;K.prototype.visitIntervalDayTime=bl;K.prototype.visitIntervalYearMonth=bl;K.prototype.visitFixedSizeList=yF;K.prototype.visitMap=_F;Ee.instance=new K;function mF(i,e){return Ee.instance.compareSchemas(i,e)}Ee.compareSchemas=mF;function bF(i,e){return Ee.instance.compareFields(i,e)}Ee.compareFields=bF;function gF(i,e){return Ee.instance.visit(i,e)}Ee.compareTypes=gF});var Kb=C(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.VectorAssembler=void 0;var vF=nt(),Yb=Ie(),jF=ki(),vl=Ge(),jl=si(),wF=Wr(),$b=$r(),Gb=me(),Ye=class extends vF.Visitor{constructor(){super();this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...e){let t=new Ye,r=wF.selectVectorChildrenArgs(jF.RecordBatch,e),[n=t]=t.visitMany(r);return n}visit(e){if(!Gb.DataType.isDictionary(e.type)){let{data:t,length:r,nullCount:n}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");Gb.DataType.isNull(e.type)||Zt.call(this,n<=0?new Uint8Array(0):jl.truncateBitmap(t.offset,r,t.nullBitmap)),this.nodes.push(new $b.FieldNode(r,n))}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.indices)}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};Sa.VectorAssembler=Ye;function Zt(i){let e=i.byteLength+7&~7;return this.buffers.push(i),this.bufferRegions.push(new $b.BufferRegion(this._byteLength,e)),this._byteLength+=e,this}function BF(i){let{type:e,length:t,typeIds:r,valueOffsets:n}=i;if(Zt.call(this,r),e.mode===Yb.UnionMode.Sparse)return Bl.call(this,i);if(e.mode===Yb.UnionMode.Dense){if(i.offset<=0)return Zt.call(this,n),Bl.call(this,i);{let s=r.reduce((A,P)=>Math.max(A,P),r[0]),u=new Int32Array(s+1),m=new Int32Array(s+1).fill(-1),j=new Int32Array(t),S=vl.rebaseValueOffsets(-n[0],t,n);for(let A,P,q=-1;++q<t;)(P=m[A=r[q]])===-1&&(P=m[A]=S[A]),j[q]=S[q]-P,++u[A];Zt.call(this,j);for(let A,P=-1,q=e.children.length;++P<q;)if(A=i.getChildAt(P)){let J=e.typeIds[P],Ce=Math.min(t,u[J]);this.visit(A.slice(m[J],Ce))}}}return this}function IF(i){let e;return i.nullCount>=i.length?Zt.call(this,new Uint8Array(0)):(e=i.values)instanceof Uint8Array?Zt.call(this,jl.truncateBitmap(i.offset,i.length,e)):Zt.call(this,jl.packBools(i))}function yr(i){return Zt.call(this,i.values.subarray(0,i.length*i.stride))}function Jb(i){let{length:e,values:t,valueOffsets:r}=i,n=r[0],s=r[e],u=Math.min(s-n,t.byteLength-n);return Zt.call(this,vl.rebaseValueOffsets(-r[0],e,r)),Zt.call(this,t.subarray(n,n+u)),this}function wl(i){let{length:e,valueOffsets:t}=i;return t&&Zt.call(this,vl.rebaseValueOffsets(t[0],e,t)),this.visit(i.getChildAt(0))}function Bl(i){return this.visitMany(i.type.children.map((e,t)=>i.getChildAt(t)).filter(Boolean))[0]}Ye.prototype.visitBool=IF;Ye.prototype.visitInt=yr;Ye.prototype.visitFloat=yr;Ye.prototype.visitUtf8=Jb;Ye.prototype.visitBinary=Jb;Ye.prototype.visitFixedSizeBinary=yr;Ye.prototype.visitDate=yr;Ye.prototype.visitTimestamp=yr;Ye.prototype.visitTime=yr;Ye.prototype.visitDecimal=yr;Ye.prototype.visitList=wl;Ye.prototype.visitStruct=Bl;Ye.prototype.visitUnion=BF;Ye.prototype.visitInterval=yr;Ye.prototype.visitFixedSizeList=wl;Ye.prototype.visitMap=wl});var Xb=C(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.JSONTypeAssembler=void 0;var TF=nt(),ot=Gi(),xn=Ie(),Zb=class extends TF.Visitor{visit(e){return e==null?void 0:super.visit(e)}visitNull({typeId:e}){return{name:ot.Type[e].toLowerCase()}}visitInt({typeId:e,bitWidth:t,isSigned:r}){return{name:ot.Type[e].toLowerCase(),bitWidth:t,isSigned:r}}visitFloat({typeId:e,precision:t}){return{name:ot.Type[e].toLowerCase(),precision:xn.Precision[t]}}visitBinary({typeId:e}){return{name:ot.Type[e].toLowerCase()}}visitBool({typeId:e}){return{name:ot.Type[e].toLowerCase()}}visitUtf8({typeId:e}){return{name:ot.Type[e].toLowerCase()}}visitDecimal({typeId:e,scale:t,precision:r}){return{name:ot.Type[e].toLowerCase(),scale:t,precision:r}}visitDate({typeId:e,unit:t}){return{name:ot.Type[e].toLowerCase(),unit:xn.DateUnit[t]}}visitTime({typeId:e,unit:t,bitWidth:r}){return{name:ot.Type[e].toLowerCase(),unit:xn.TimeUnit[t],bitWidth:r}}visitTimestamp({typeId:e,timezone:t,unit:r}){return{name:ot.Type[e].toLowerCase(),unit:xn.TimeUnit[r],timezone:t}}visitInterval({typeId:e,unit:t}){return{name:ot.Type[e].toLowerCase(),unit:xn.IntervalUnit[t]}}visitList({typeId:e}){return{name:ot.Type[e].toLowerCase()}}visitStruct({typeId:e}){return{name:ot.Type[e].toLowerCase()}}visitUnion({typeId:e,mode:t,typeIds:r}){return{name:ot.Type[e].toLowerCase(),mode:xn.UnionMode[t],typeIds:[...r]}}visitDictionary(e){return this.visit(e.dictionary)}visitFixedSizeBinary({typeId:e,byteWidth:t}){return{name:ot.Type[e].toLowerCase(),byteWidth:t}}visitFixedSizeList({typeId:e,listSize:t}){return{name:ot.Type[e].toLowerCase(),listSize:t}}visitMap({typeId:e,keysSorted:t}){return{name:ot.Type[e].toLowerCase(),keysSorted:t}}};Da.JSONTypeAssembler=Zb});var tg=C(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.JSONVectorAssembler=void 0;var SF=vs(),Us=Rn(),DF=xe(),AF=nt(),OF=Ie(),FF=ki(),Il=Ie(),Aa=si(),MF=Wr(),Qb=me(),Oa=class extends AF.Visitor{static assemble(...e){return new Oa().visitMany(MF.selectColumnChildrenArgs(FF.RecordBatch,e))}visit(e){let{data:t,name:r,length:n}=e,{offset:s,nullCount:u,nullBitmap:m}=t,j=Qb.DataType.isDictionary(e.type)?e.type.indices:e.type,S=Object.assign([],t.buffers,{[OF.BufferType.VALIDITY]:void 0});return Object.assign({name:r,count:n,VALIDITY:Qb.DataType.isNull(j)?void 0:u<=0?Array.from({length:n},()=>1):[...new Aa.BitIterator(m,s,n,null,Aa.getBit)]},super.visit(DF.Vector.new(t.clone(j,s,n,0,S))))}visitNull(){return{}}visitBool({values:e,offset:t,length:r}){return{DATA:[...new Aa.BitIterator(e,t,r,null,Aa.getBool)]}}visitInt(e){return{DATA:e.type.bitWidth<64?[...e.values]:[...Vs(e.values,2)]}}visitFloat(e){return{DATA:[...e.values]}}visitUtf8(e){return{DATA:[...e],OFFSET:[...e.valueOffsets]}}visitBinary(e){return{DATA:[...eg(e)],OFFSET:[...e.valueOffsets]}}visitFixedSizeBinary(e){return{DATA:[...eg(e)]}}visitDate(e){return{DATA:e.type.unit===Il.DateUnit.DAY?[...e.values]:[...Vs(e.values,2)]}}visitTimestamp(e){return{DATA:[...Vs(e.values,2)]}}visitTime(e){return{DATA:e.type.unit<Il.TimeUnit.MICROSECOND?[...e.values]:[...Vs(e.values,2)]}}visitDecimal(e){return{DATA:[...Vs(e.values,4)]}}visitList(e){return{OFFSET:[...e.valueOffsets],children:e.type.children.map((t,r)=>this.visit(new Us.Column(t,[e.getChildAt(r)])))}}visitStruct(e){return{children:e.type.children.map((t,r)=>this.visit(new Us.Column(t,[e.getChildAt(r)])))}}visitUnion(e){return{TYPE:[...e.typeIds],OFFSET:e.type.mode===Il.UnionMode.Dense?[...e.valueOffsets]:void 0,children:e.type.children.map((t,r)=>this.visit(new Us.Column(t,[e.getChildAt(r)])))}}visitInterval(e){return{DATA:[...e.values]}}visitFixedSizeList(e){return{children:e.type.children.map((t,r)=>this.visit(new Us.Column(t,[e.getChildAt(r)])))}}visitMap(e){return{OFFSET:[...e.valueOffsets],children:e.type.children.map((t,r)=>this.visit(new Us.Column(t,[e.getChildAt(r)])))}}};Fa.JSONVectorAssembler=Oa;function*eg(i){for(let e of i)yield e.reduce((t,r)=>`${t}${("0"+(r&255).toString(16)).slice(-2)}`,"").toUpperCase()}function*Vs(i,e){for(let t=-1,r=i.length/e;++t<r;)yield`${SF.BN.new(i.subarray((t+0)*e,(t+1)*e),!1)}`}});var ka=C(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.RecordBatchJSONWriter=yi.RecordBatchFileWriter=yi.RecordBatchStreamWriter=yi.RecordBatchWriter=void 0;var ig=at(),Tl=Rs(),CF=Ia(),UF=Rn(),VF=me(),kF=Qe(),Ma=$r(),Sl=$r(),Ln=Kc(),Dl=Ie(),rg=gl(),Al=ar(),ng=Kb(),RF=Xb(),sg=tg(),EF=Ge(),Ol=ki(),NF=cn(),pi=ut(),ks=class extends NF.ReadableInterop{constructor(e){super();this._position=0,this._started=!1,this._sink=new Al.AsyncByteQueue,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,pi.isObject(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return pi.isPromise(e)?e.then(t=>this.writeAll(t)):pi.isAsyncIterable(e)?Ml(this,e):Fl(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,t=null){return e===this._sink||e instanceof Al.AsyncByteQueue?this._sink=e:(this._sink=new Al.AsyncByteQueue,e&&pi.isWritableDOMStream(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&pi.isWritableNodeStream(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!t||!rg.compareSchemas(t,this._schema))&&(t===null?(this._position=0,this._schema=null):(this._started=!0,this._schema=t,this._writeSchema(t))),this}write(e){let t=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof Tl.Table&&!(t=e.schema))return this.finish()&&void 0;if(e instanceof Ol.RecordBatch&&!(t=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(t&&!rg.compareSchemas(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof Ol.RecordBatch?e instanceof Ol._InternalEmptyPlaceholderRecordBatch||this._writeRecordBatch(e):e instanceof Tl.Table?this.writeAll(e.chunks):pi.isIterable(e)&&this.writeAll(e)}_writeMessage(e,t=8){let r=t-1,n=Ma.Message.encode(e),s=n.byteLength,u=this._writeLegacyIpcFormat?4:8,m=s+u+r&~r,j=m-s-u;return e.headerType===Dl.MessageHeader.RecordBatch?this._recordBatchBlocks.push(new Ln.FileBlock(m,e.bodyLength,this._position)):e.headerType===Dl.MessageHeader.DictionaryBatch&&this._dictionaryBlocks.push(new Ln.FileBlock(m,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(m-u)),s>0&&this._write(n),this._writePadding(j)}_write(e){if(this._started){let t=EF.toUint8Array(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(Ma.Message.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(CF.MAGIC)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:t,nodes:r,bufferRegions:n,buffers:s}=ng.VectorAssembler.assemble(e),u=new Sl.RecordBatch(e.length,r,n),m=Ma.Message.from(u,t);return this._writeDictionaries(e)._writeMessage(m)._writeBodyBuffers(s)}_writeDictionaryBatch(e,t,r=!1){this._dictionaryDeltaOffsets.set(t,e.length+(this._dictionaryDeltaOffsets.get(t)||0));let{byteLength:n,nodes:s,bufferRegions:u,buffers:m}=ng.VectorAssembler.assemble(e),j=new Sl.RecordBatch(e.length,s,u),S=new Sl.DictionaryBatch(j,t,r),A=Ma.Message.from(S,n);return this._writeMessage(A)._writeBodyBuffers(m)}_writeBodyBuffers(e){let t,r,n;for(let s=-1,u=e.length;++s<u;)(t=e[s])&&(r=t.byteLength)>0&&(this._write(t),(n=(r+7&~7)-r)>0&&this._writePadding(n));return this}_writeDictionaries(e){for(let[t,r]of e.dictionaries){let n=this._dictionaryDeltaOffsets.get(t)||0;if(n===0||(r=r.slice(n)).length>0){let s="chunks"in r?r.chunks:[r];for(let u of s)this._writeDictionaryBatch(u,t,n>0),n+=u.length}}return this}};yi.RecordBatchWriter=ks;var Ca=class extends ks{static writeAll(e,t){let r=new Ca(t);return pi.isPromise(e)?e.then(n=>r.writeAll(n)):pi.isAsyncIterable(e)?Ml(r,e):Fl(r,e)}};yi.RecordBatchStreamWriter=Ca;var Ua=class extends ks{static writeAll(e){let t=new Ua;return pi.isPromise(e)?e.then(r=>t.writeAll(r)):pi.isAsyncIterable(e)?Ml(t,e):Fl(t,e)}constructor(){super();this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeFooter(e){let t=Ln.Footer.encode(new Ln.Footer(e,Dl.MetadataVersion.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}};yi.RecordBatchFileWriter=Ua;var Va=class extends ks{constructor(){super();this._autoDestroy=!0,this._recordBatches=[],this._dictionaries=[]}static writeAll(e){return new Va().writeAll(e)}_writeMessage(){return this}_writeFooter(e){return this}_writeSchema(e){return this._write(`{
|
|
8
|
-
"schema": ${JSON.stringify({fields:e.fields.map(og)},null,2)}`)}_writeDictionaries(e){return e.dictionaries.size>0&&this._dictionaries.push(e),this}_writeDictionaryBatch(e,t,r=!1){return this._dictionaryDeltaOffsets.set(t,e.length+(this._dictionaryDeltaOffsets.get(t)||0)),this._write(this._dictionaryBlocks.length===0?" ":`,
|
|
9
|
-
`),this._write(`${PF(e,t,r)}`),this._dictionaryBlocks.push(new Ln.FileBlock(0,0,0)),this}_writeRecordBatch(e){return this._writeDictionaries(e),this._recordBatches.push(e),this}close(){if(this._dictionaries.length>0){this._write(`,
|
|
10
|
-
"dictionaries": [
|
|
11
|
-
`);for(let e of this._dictionaries)super._writeDictionaries(e);this._write(`
|
|
12
|
-
]`)}if(this._recordBatches.length>0){for(let e=-1,t=this._recordBatches.length;++e<t;)this._write(e===0?`,
|
|
13
|
-
"batches": [
|
|
14
|
-
`:`,
|
|
15
|
-
`),this._write(`${xF(this._recordBatches[e])}`),this._recordBatchBlocks.push(new Ln.FileBlock(0,0,0));this._write(`
|
|
16
|
-
]`)}return this._schema&&this._write(`
|
|
17
|
-
}`),this._dictionaries=[],this._recordBatches=[],super.close()}};yi.RecordBatchJSONWriter=Va;function Fl(i,e){let t=e;e instanceof Tl.Table&&(t=e.chunks,i.reset(void 0,e.schema));for(let r of t)i.write(r);return i.finish()}function Ml(i,e){var t,r,n,s;return ig.__awaiter(this,void 0,void 0,function*(){try{for(t=ig.__asyncValues(e);r=yield t.next(),!r.done;){let u=r.value;i.write(u)}}catch(u){n={error:u}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(n)throw n.error}}return i.finish()})}function og({name:i,type:e,nullable:t}){let r=new RF.JSONTypeAssembler;return{name:i,nullable:t,type:r.visit(e),children:(e.children||[]).map(og),dictionary:VF.DataType.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:r.visit(e.indices)}:void 0}}function PF(i,e,t=!1){let r=new kF.Field(`${e}`,i.type,i.nullCount>0),n=sg.JSONVectorAssembler.assemble(new UF.Column(r,[i]));return JSON.stringify({id:e,isDelta:t,data:{count:i.length,columns:n}},null,2)}function xF(i){return JSON.stringify({count:i.length,columns:sg.JSONVectorAssembler.assemble(i)},null,2)}});var Vl=C(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.distributeVectorsIntoRecordBatches=_r.distributeColumnsIntoRecordBatches=_r.ensureSameLengthData=void 0;var ag=Yt(),Cl=Qe(),LF=dr(),qF=ki(),Ul=new Uint8Array(0),ug=i=>[Ul,Ul,new Uint8Array(i),Ul];function zF(i,e,t=e.reduce((r,n)=>Math.max(r,n.length),0)){let r,n,s=-1,u=e.length,m=[...i.fields],j=[],S=(t+63&~63)>>3;for(;++s<u;)(r=e[s])&&r.length===t?j[s]=r:((n=m[s]).nullable||(m[s]=m[s].clone({nullable:!0})),j[s]=r?r._changeLengthAndBackfillNullBitmap(t):ag.Data.new(n.type,0,t,t,ug(S)));return[new Cl.Schema(m),t,j]}_r.ensureSameLengthData=zF;function WF(i){return cg(new Cl.Schema(i.map(({field:e})=>e)),i)}_r.distributeColumnsIntoRecordBatches=WF;function cg(i,e){return HF(i,e.map(t=>t instanceof LF.Chunked?t.chunks.map(r=>r.data):[t.data]))}_r.distributeVectorsIntoRecordBatches=cg;function HF(i,e){let t=[...i.fields],r=[],n={numBatches:e.reduce((P,q)=>Math.max(P,q.length),0)},s=0,u=0,m=-1,j=e.length,S,A=[];for(;n.numBatches-- >0;){for(u=Number.POSITIVE_INFINITY,m=-1;++m<j;)A[m]=S=e[m].shift(),u=Math.min(u,S?S.length:u);isFinite(u)&&(A=YF(t,u,A,e,n),u>0&&(r[s++]=[u,A.slice()]))}return[i=new Cl.Schema(t,i.metadata),r.map(P=>new qF.RecordBatch(i,...P))]}function YF(i,e,t,r,n){let s,u,m=0,j=-1,S=r.length,A=(e+63&~63)>>3;for(;++j<S;)(s=t[j])&&(m=s.length)>=e?m===e?t[j]=s:(t[j]=s.slice(0,e),s=s.slice(e,m-e),n.numBatches=Math.max(n.numBatches,r[j].unshift(s))):((u=i[j]).nullable||(i[j]=u.clone({nullable:!0})),t[j]=s?s._changeLengthAndBackfillNullBitmap(e):ag.Data.new(u.type,0,e,e,ug(A)));return t}});var qe=C(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.BaseVector=void 0;var $F=Ie(),GF=dr(),JF=As(),kl=xe(),Rl=class extends kl.AbstractVector{constructor(e,t){super();this._children=t,this.numChildren=e.childData.length,this._bindDataAccessors(this.data=e)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return`${$F.Type[this.typeId]}Vector`}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(e,t=this._children){return kl.Vector.new(e,t)}concat(...e){return GF.Chunked.concat(this,...e)}slice(e,t){return JF.clampRange(this,e,t,this._sliceInternal)}isValid(e){if(this.nullCount>0){let t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}getChildAt(e){return e<0||e>=this.numChildren?null:(this._children||(this._children=[]))[e]||(this._children[e]=kl.Vector.new(this.data.childData[e]))}toJSON(){return[...this]}_sliceInternal(e,t,r){return e.clone(e.data.slice(t,r-t),null)}_bindDataAccessors(e){}};Ra.BaseVector=Rl;Rl.prototype[Symbol.isConcatSpreadable]=!0});var El=C(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.BinaryVector=void 0;var KF=xe(),ZF=qe(),XF=me(),lg=class extends ZF.BaseVector{asUtf8(){return KF.Vector.new(this.data.clone(new XF.Utf8))}};Ea.BinaryVector=lg});var Nl=C(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.BoolVector=void 0;var QF=me(),eM=qe(),tM=_i(),dg=class extends eM.BaseVector{static from(e){return tM.vectorFromValuesWithType(()=>new QF.Bool,e)}};Na.BoolVector=dg});var xl=C(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.DateMillisecondVector=mr.DateDayVector=mr.DateVector=void 0;var iM=Ie(),rM=qe(),fg=_i(),Pl=me(),Pa=class extends rM.BaseVector{static from(...e){return e.length===2?fg.vectorFromValuesWithType(()=>e[1]===iM.DateUnit.DAY?new Pl.DateDay:new Pl.DateMillisecond,e[0]):fg.vectorFromValuesWithType(()=>new Pl.DateMillisecond,e[0])}};mr.DateVector=Pa;var hg=class extends Pa{};mr.DateDayVector=hg;var pg=class extends Pa{};mr.DateMillisecondVector=pg});var Ll=C(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});xa.DecimalVector=void 0;var nM=qe(),yg=class extends nM.BaseVector{};xa.DecimalVector=yg});var qa=C(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});La.DictionaryVector=void 0;var sM=Yt(),_g=xe(),oM=qe(),aM=_i(),uM=me(),ql=class extends oM.BaseVector{constructor(e){super(e);this.indices=_g.Vector.new(e.clone(this.type.indices))}static from(...e){if(e.length===3){let[t,r,n]=e,s=new uM.Dictionary(t.type,r,null,null);return _g.Vector.new(sM.Data.Dictionary(s,0,n.length,0,null,n,t))}return aM.vectorFromValuesWithType(()=>e[0].type,e[0])}get dictionary(){return this.data.dictionary}reverseLookup(e){return this.dictionary.indexOf(e)}getKey(e){return this.indices.get(e)}getValue(e){return this.dictionary.get(e)}setKey(e,t){return this.indices.set(e,t)}setValue(e,t){return this.dictionary.set(e,t)}};La.DictionaryVector=ql;ql.prototype.indices=null});var zl=C(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.FixedSizeBinaryVector=void 0;var cM=qe(),mg=class extends cM.BaseVector{};za.FixedSizeBinaryVector=mg});var Wl=C(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.FixedSizeListVector=void 0;var lM=qe(),bg=class extends lM.BaseVector{};Wa.FixedSizeListVector=bg});var Gl=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.Float64Vector=mi.Float32Vector=mi.Float16Vector=mi.FloatVector=void 0;var dM=Yt(),fM=xe(),hM=qe(),pM=_i(),Zr=me(),Es=class extends hM.BaseVector{static from(e){let t=mM(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=_M(e.constructor)||t;if(t===null&&(t=r),t&&t===r){let n=new t,s=e.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!yM(t,e.constructor))return fM.Vector.new(dM.Data.Float(n,0,s,0,null,e))}}if(t)return pM.vectorFromValuesWithType(()=>new t,e);throw e instanceof DataView||e instanceof ArrayBuffer?new TypeError(`Cannot infer float type from instance of ${e.constructor.name}`):new TypeError("Unrecognized FloatVector input")}};mi.FloatVector=Es;var Hl=class extends Es{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}};mi.Float16Vector=Hl;var Yl=class extends Es{};mi.Float32Vector=Yl;var $l=class extends Es{};mi.Float64Vector=$l;var yM=(i,e)=>i===Zr.Float16&&e!==Uint16Array,_M=i=>{switch(i){case Uint16Array:return Zr.Float16;case Float32Array:return Zr.Float32;case Float64Array:return Zr.Float64;default:return null}},mM=i=>{switch(i){case Hl:return Zr.Float16;case Yl:return Zr.Float32;case $l:return Zr.Float64;default:return null}}});var Jl=C(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.IntervalYearMonthVector=br.IntervalDayTimeVector=br.IntervalVector=void 0;var bM=qe(),Ha=class extends bM.BaseVector{};br.IntervalVector=Ha;var gg=class extends Ha{};br.IntervalDayTimeVector=gg;var vg=class extends Ha{};br.IntervalYearMonthVector=vg});var Ya=C($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.Uint64Vector=$e.Uint32Vector=$e.Uint16Vector=$e.Uint8Vector=$e.Int64Vector=$e.Int32Vector=$e.Int16Vector=$e.Int8Vector=$e.IntVector=void 0;var gM=Yt(),vM=xe(),jM=qe(),wM=_i(),jg=ut(),wg=Ge(),Ne=me(),bi=class extends jM.BaseVector{static from(...e){let[t,r=!1]=e,n=TM(this,r);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let s=IM(t.constructor,r)||n;if(n===null&&(n=s),n&&n===s){let u=new n,m=t.byteLength/u.ArrayType.BYTES_PER_ELEMENT;return BM(n,t.constructor)&&(m*=.5),vM.Vector.new(gM.Data.Int(u,0,m,0,null,t))}}if(n)return wM.vectorFromValuesWithType(()=>new n,t);throw t instanceof DataView||t instanceof ArrayBuffer?new TypeError(`Cannot infer integer type from instance of ${t.constructor.name}`):new TypeError("Unrecognized IntVector input")}};$e.IntVector=bi;var Kl=class extends bi{};$e.Int8Vector=Kl;var Zl=class extends bi{};$e.Int16Vector=Zl;var Xl=class extends bi{};$e.Int32Vector=Xl;var Ql=class extends bi{toBigInt64Array(){return wg.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}};$e.Int64Vector=Ql;var ed=class extends bi{};$e.Uint8Vector=ed;var td=class extends bi{};$e.Uint16Vector=td;var id=class extends bi{};$e.Uint32Vector=id;var rd=class extends bi{toBigUint64Array(){return wg.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}};$e.Uint64Vector=rd;var BM=(i,e)=>(i===Ne.Int64||i===Ne.Uint64)&&(e===Int32Array||e===Uint32Array),IM=(i,e)=>{switch(i){case Int8Array:return Ne.Int8;case Int16Array:return Ne.Int16;case Int32Array:return e?Ne.Int64:Ne.Int32;case jg.BigInt64Array:return Ne.Int64;case Uint8Array:return Ne.Uint8;case Uint16Array:return Ne.Uint16;case Uint32Array:return e?Ne.Uint64:Ne.Uint32;case jg.BigUint64Array:return Ne.Uint64;default:return null}},TM=(i,e)=>{switch(i){case Kl:return Ne.Int8;case Zl:return Ne.Int16;case Xl:return e?Ne.Int64:Ne.Int32;case Ql:return Ne.Int64;case ed:return Ne.Uint8;case td:return Ne.Uint16;case id:return e?Ne.Uint64:Ne.Uint32;case rd:return Ne.Uint64;default:return null}}});var nd=C($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.ListVector=void 0;var SM=qe(),Bg=class extends SM.BaseVector{};$a.ListVector=Bg});var sd=C(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.MapVector=void 0;var DM=Ss(),AM=xe(),OM=qe(),FM=me(),Ig=class extends OM.BaseVector{asList(){let e=this.type.children[0];return AM.Vector.new(this.data.clone(new FM.List(e)))}bind(e){let t=this.getChildAt(0),{[e]:r,[e+1]:n}=this.valueOffsets;return new DM.MapRow(t.slice(r,n))}};Ga.MapVector=Ig});var od=C(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.NullVector=void 0;var MM=qe(),Tg=class extends MM.BaseVector{};Ja.NullVector=Tg});var ad=C(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.StructVector=void 0;var CM=Ss(),UM=qe(),VM=Symbol.for("rowIndex"),Sg=class extends UM.BaseVector{bind(e){let t=this._row||(this._row=new CM.StructRow(this)),r=Object.create(t);return r[VM]=e,r}};Ka.StructVector=Sg});var ud=C(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.TimestampNanosecondVector=Rt.TimestampMicrosecondVector=Rt.TimestampMillisecondVector=Rt.TimestampSecondVector=Rt.TimestampVector=void 0;var kM=qe(),qn=class extends kM.BaseVector{};Rt.TimestampVector=qn;var Dg=class extends qn{};Rt.TimestampSecondVector=Dg;var Ag=class extends qn{};Rt.TimestampMillisecondVector=Ag;var Og=class extends qn{};Rt.TimestampMicrosecondVector=Og;var Fg=class extends qn{};Rt.TimestampNanosecondVector=Fg});var cd=C(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.TimeNanosecondVector=Et.TimeMicrosecondVector=Et.TimeMillisecondVector=Et.TimeSecondVector=Et.TimeVector=void 0;var RM=qe(),zn=class extends RM.BaseVector{};Et.TimeVector=zn;var Mg=class extends zn{};Et.TimeSecondVector=Mg;var Cg=class extends zn{};Et.TimeMillisecondVector=Cg;var Ug=class extends zn{};Et.TimeMicrosecondVector=Ug;var Vg=class extends zn{};Et.TimeNanosecondVector=Vg});var ld=C(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.SparseUnionVector=gr.DenseUnionVector=gr.UnionVector=void 0;var EM=qe(),Za=class extends EM.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}};gr.UnionVector=Za;var kg=class extends Za{get valueOffsets(){return this.data.valueOffsets}};gr.DenseUnionVector=kg;var Rg=class extends Za{};gr.SparseUnionVector=Rg});var dd=C(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.Utf8Vector=void 0;var NM=xe(),PM=qe(),Eg=me(),xM=_i(),Ng=class extends PM.BaseVector{static from(e){return xM.vectorFromValuesWithType(()=>new Eg.Utf8,e)}asBinary(){return NM.Vector.new(this.data.clone(new Eg.Binary))}};Xa.Utf8Vector=Ng});var Pg=C(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.partial2=vr.partial1=vr.partial0=void 0;function LM(i){return function(){return i(this)}}vr.partial0=LM;function qM(i){return function(e){return i(this,e)}}vr.partial1=qM;function zM(i){return function(e,t){return i(this,e,t)}}vr.partial2=zM});var pd=C(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.instance=Wn.GetVisitor=void 0;var Qa=vs(),WM=nt(),HM=Fr(),YM=_s(),Nt=Ie(),Z=class extends WM.Visitor{};Wn.GetVisitor=Z;var $M=(i,e)=>864e5*i[e],fd=(i,e)=>4294967296*i[e+1]+(i[e]>>>0),GM=(i,e)=>4294967296*(i[e+1]/1e3)+(i[e]>>>0)/1e3,JM=(i,e)=>4294967296*(i[e+1]/1e6)+(i[e]>>>0)/1e6,xg=i=>new Date(i),KM=(i,e)=>xg($M(i,e)),ZM=(i,e)=>xg(fd(i,e)),XM=(i,e)=>null,Lg=(i,e,t)=>{let{[t]:r,[t+1]:n}=e;return r!=null&&n!=null?i.subarray(r,n):null},QM=({offset:i,values:e},t)=>{let r=i+t;return(e[r>>3]&1<<r%8)!=0},qg=({values:i},e)=>KM(i,e),zg=({values:i},e)=>ZM(i,e*2),gi=({stride:i,values:e},t)=>e[i*t],Wg=({stride:i,values:e},t)=>YM.uint16ToFloat64(e[i*t]),hd=({stride:i,values:e,type:t},r)=>Qa.BN.new(e.subarray(i*r,i*(r+1)),t.isSigned),eC=({stride:i,values:e},t)=>e.subarray(i*t,i*(t+1)),tC=({values:i,valueOffsets:e},t)=>Lg(i,e,t),iC=({values:i,valueOffsets:e},t)=>{let r=Lg(i,e,t);return r!==null?HM.decodeUtf8(r):null},rC=(i,e)=>i.type.bitWidth<64?gi(i,e):hd(i,e),nC=(i,e)=>i.type.precision!==Nt.Precision.HALF?gi(i,e):Wg(i,e),sC=(i,e)=>i.type.unit===Nt.DateUnit.DAY?qg(i,e):zg(i,e),Hg=({values:i},e)=>1e3*fd(i,e*2),Yg=({values:i},e)=>fd(i,e*2),$g=({values:i},e)=>GM(i,e*2),Gg=({values:i},e)=>JM(i,e*2),oC=(i,e)=>{switch(i.type.unit){case Nt.TimeUnit.SECOND:return Hg(i,e);case Nt.TimeUnit.MILLISECOND:return Yg(i,e);case Nt.TimeUnit.MICROSECOND:return $g(i,e);case Nt.TimeUnit.NANOSECOND:return Gg(i,e)}},Jg=({values:i,stride:e},t)=>i[e*t],Kg=({values:i,stride:e},t)=>i[e*t],Zg=({values:i},e)=>Qa.BN.signed(i.subarray(2*e,2*(e+1))),Xg=({values:i},e)=>Qa.BN.signed(i.subarray(2*e,2*(e+1))),aC=(i,e)=>{switch(i.type.unit){case Nt.TimeUnit.SECOND:return Jg(i,e);case Nt.TimeUnit.MILLISECOND:return Kg(i,e);case Nt.TimeUnit.MICROSECOND:return Zg(i,e);case Nt.TimeUnit.NANOSECOND:return Xg(i,e)}},uC=({values:i},e)=>Qa.BN.decimal(i.subarray(4*e,4*(e+1))),cC=(i,e)=>{let t=i.getChildAt(0),{valueOffsets:r,stride:n}=i;return t.slice(r[e*n],r[e*n+1])},lC=(i,e)=>i.bind(e),dC=(i,e)=>i.bind(e),fC=(i,e)=>i.type.mode===Nt.UnionMode.Dense?Qg(i,e):ev(i,e),Qg=(i,e)=>{let t=i.typeIdToChildIndex[i.typeIds[e]],r=i.getChildAt(t);return r?r.get(i.valueOffsets[e]):null},ev=(i,e)=>{let t=i.typeIdToChildIndex[i.typeIds[e]],r=i.getChildAt(t);return r?r.get(e):null},hC=(i,e)=>i.getValue(i.getKey(e)),pC=(i,e)=>i.type.unit===Nt.IntervalUnit.DAY_TIME?tv(i,e):iv(i,e),tv=({values:i},e)=>i.subarray(2*e,2*(e+1)),iv=({values:i},e)=>{let t=i[e],r=new Int32Array(2);return r[0]=t/12|0,r[1]=t%12|0,r},yC=(i,e)=>{let t=i.getChildAt(0),{stride:r}=i;return t.slice(e*r,(e+1)*r)};Z.prototype.visitNull=XM;Z.prototype.visitBool=QM;Z.prototype.visitInt=rC;Z.prototype.visitInt8=gi;Z.prototype.visitInt16=gi;Z.prototype.visitInt32=gi;Z.prototype.visitInt64=hd;Z.prototype.visitUint8=gi;Z.prototype.visitUint16=gi;Z.prototype.visitUint32=gi;Z.prototype.visitUint64=hd;Z.prototype.visitFloat=nC;Z.prototype.visitFloat16=Wg;Z.prototype.visitFloat32=gi;Z.prototype.visitFloat64=gi;Z.prototype.visitUtf8=iC;Z.prototype.visitBinary=tC;Z.prototype.visitFixedSizeBinary=eC;Z.prototype.visitDate=sC;Z.prototype.visitDateDay=qg;Z.prototype.visitDateMillisecond=zg;Z.prototype.visitTimestamp=oC;Z.prototype.visitTimestampSecond=Hg;Z.prototype.visitTimestampMillisecond=Yg;Z.prototype.visitTimestampMicrosecond=$g;Z.prototype.visitTimestampNanosecond=Gg;Z.prototype.visitTime=aC;Z.prototype.visitTimeSecond=Jg;Z.prototype.visitTimeMillisecond=Kg;Z.prototype.visitTimeMicrosecond=Zg;Z.prototype.visitTimeNanosecond=Xg;Z.prototype.visitDecimal=uC;Z.prototype.visitList=cC;Z.prototype.visitStruct=dC;Z.prototype.visitUnion=fC;Z.prototype.visitDenseUnion=Qg;Z.prototype.visitSparseUnion=ev;Z.prototype.visitDictionary=hC;Z.prototype.visitInterval=pC;Z.prototype.visitIntervalDayTime=tv;Z.prototype.visitIntervalYearMonth=iv;Z.prototype.visitFixedSizeList=yC;Z.prototype.visitMap=lC;Wn.instance=new Z});var ov=C(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.instance=Hn.IndexOfVisitor=void 0;var _C=nt(),rv=si(),nv=As(),X=class extends _C.Visitor{};Hn.IndexOfVisitor=X;function mC(i,e){return e===null&&i.length>0?0:-1}function bC(i,e){let{nullBitmap:t}=i.data;if(!t||i.nullCount<=0)return-1;let r=0;for(let n of new rv.BitIterator(t,i.data.offset+(e||0),i.length,t,rv.getBool)){if(!n)return r;++r}return-1}function ce(i,e,t){if(e===void 0)return-1;if(e===null)return bC(i,t);let r=nv.createElementComparator(e);for(let n=(t||0)-1,s=i.length;++n<s;)if(r(i.get(n)))return n;return-1}function sv(i,e,t){let r=nv.createElementComparator(e);for(let n=(t||0)-1,s=i.length;++n<s;)if(r(i.get(n)))return n;return-1}X.prototype.visitNull=mC;X.prototype.visitBool=ce;X.prototype.visitInt=ce;X.prototype.visitInt8=ce;X.prototype.visitInt16=ce;X.prototype.visitInt32=ce;X.prototype.visitInt64=ce;X.prototype.visitUint8=ce;X.prototype.visitUint16=ce;X.prototype.visitUint32=ce;X.prototype.visitUint64=ce;X.prototype.visitFloat=ce;X.prototype.visitFloat16=ce;X.prototype.visitFloat32=ce;X.prototype.visitFloat64=ce;X.prototype.visitUtf8=ce;X.prototype.visitBinary=ce;X.prototype.visitFixedSizeBinary=ce;X.prototype.visitDate=ce;X.prototype.visitDateDay=ce;X.prototype.visitDateMillisecond=ce;X.prototype.visitTimestamp=ce;X.prototype.visitTimestampSecond=ce;X.prototype.visitTimestampMillisecond=ce;X.prototype.visitTimestampMicrosecond=ce;X.prototype.visitTimestampNanosecond=ce;X.prototype.visitTime=ce;X.prototype.visitTimeSecond=ce;X.prototype.visitTimeMillisecond=ce;X.prototype.visitTimeMicrosecond=ce;X.prototype.visitTimeNanosecond=ce;X.prototype.visitDecimal=ce;X.prototype.visitList=ce;X.prototype.visitStruct=ce;X.prototype.visitUnion=ce;X.prototype.visitDenseUnion=sv;X.prototype.visitSparseUnion=sv;X.prototype.visitDictionary=ce;X.prototype.visitInterval=ce;X.prototype.visitIntervalDayTime=ce;X.prototype.visitIntervalYearMonth=ce;X.prototype.visitFixedSizeList=ce;X.prototype.visitMap=ce;Hn.instance=new X});var yd=C(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.instance=Yn.IteratorVisitor=void 0;var eu=Ie(),gC=nt(),vC=si(),av=pd(),Q=class extends gC.Visitor{};Yn.IteratorVisitor=Q;function jC(i){let e=av.instance.getVisitFn(i);return new vC.BitIterator(i.data.nullBitmap,i.data.offset,i.length,i,(t,r,n,s)=>(n&1<<s)!=0?e(t,r):null)}var uv=class{constructor(e,t){this.vector=e,this.getFn=t,this.index=0}next(){return this.index<this.vector.length?{value:this.getFn(this.vector,this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};function ae(i){if(i.nullCount>0)return jC(i);let{type:e,typeId:t,length:r}=i;return i.stride===1&&(t===eu.Type.Timestamp||t===eu.Type.Int&&e.bitWidth!==64||t===eu.Type.Time&&e.bitWidth!==64||t===eu.Type.Float&&e.precision>0)?i.data.values.subarray(0,r)[Symbol.iterator]():new uv(i,av.instance.getVisitFn(i))}Q.prototype.visitNull=ae;Q.prototype.visitBool=ae;Q.prototype.visitInt=ae;Q.prototype.visitInt8=ae;Q.prototype.visitInt16=ae;Q.prototype.visitInt32=ae;Q.prototype.visitInt64=ae;Q.prototype.visitUint8=ae;Q.prototype.visitUint16=ae;Q.prototype.visitUint32=ae;Q.prototype.visitUint64=ae;Q.prototype.visitFloat=ae;Q.prototype.visitFloat16=ae;Q.prototype.visitFloat32=ae;Q.prototype.visitFloat64=ae;Q.prototype.visitUtf8=ae;Q.prototype.visitBinary=ae;Q.prototype.visitFixedSizeBinary=ae;Q.prototype.visitDate=ae;Q.prototype.visitDateDay=ae;Q.prototype.visitDateMillisecond=ae;Q.prototype.visitTimestamp=ae;Q.prototype.visitTimestampSecond=ae;Q.prototype.visitTimestampMillisecond=ae;Q.prototype.visitTimestampMicrosecond=ae;Q.prototype.visitTimestampNanosecond=ae;Q.prototype.visitTime=ae;Q.prototype.visitTimeSecond=ae;Q.prototype.visitTimeMillisecond=ae;Q.prototype.visitTimeMicrosecond=ae;Q.prototype.visitTimeNanosecond=ae;Q.prototype.visitDecimal=ae;Q.prototype.visitList=ae;Q.prototype.visitStruct=ae;Q.prototype.visitUnion=ae;Q.prototype.visitDenseUnion=ae;Q.prototype.visitSparseUnion=ae;Q.prototype.visitDictionary=ae;Q.prototype.visitInterval=ae;Q.prototype.visitIntervalDayTime=ae;Q.prototype.visitIntervalYearMonth=ae;Q.prototype.visitFixedSizeList=ae;Q.prototype.visitMap=ae;Yn.instance=new Q});var cv=C($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.instance=$n.ToArrayVisitor=void 0;var Ns=Ie(),wC=nt(),BC=yd(),ee=class extends wC.Visitor{};$n.ToArrayVisitor=ee;function ue(i){let{type:e,length:t,stride:r}=i;switch(e.typeId){case Ns.Type.Int:case Ns.Type.Float:case Ns.Type.Decimal:case Ns.Type.Time:case Ns.Type.Timestamp:return i.data.values.subarray(0,t*r)}return[...BC.instance.visit(i)]}ee.prototype.visitNull=ue;ee.prototype.visitBool=ue;ee.prototype.visitInt=ue;ee.prototype.visitInt8=ue;ee.prototype.visitInt16=ue;ee.prototype.visitInt32=ue;ee.prototype.visitInt64=ue;ee.prototype.visitUint8=ue;ee.prototype.visitUint16=ue;ee.prototype.visitUint32=ue;ee.prototype.visitUint64=ue;ee.prototype.visitFloat=ue;ee.prototype.visitFloat16=ue;ee.prototype.visitFloat32=ue;ee.prototype.visitFloat64=ue;ee.prototype.visitUtf8=ue;ee.prototype.visitBinary=ue;ee.prototype.visitFixedSizeBinary=ue;ee.prototype.visitDate=ue;ee.prototype.visitDateDay=ue;ee.prototype.visitDateMillisecond=ue;ee.prototype.visitTimestamp=ue;ee.prototype.visitTimestampSecond=ue;ee.prototype.visitTimestampMillisecond=ue;ee.prototype.visitTimestampMicrosecond=ue;ee.prototype.visitTimestampNanosecond=ue;ee.prototype.visitTime=ue;ee.prototype.visitTimeSecond=ue;ee.prototype.visitTimeMillisecond=ue;ee.prototype.visitTimeMicrosecond=ue;ee.prototype.visitTimeNanosecond=ue;ee.prototype.visitDecimal=ue;ee.prototype.visitList=ue;ee.prototype.visitStruct=ue;ee.prototype.visitUnion=ue;ee.prototype.visitDenseUnion=ue;ee.prototype.visitSparseUnion=ue;ee.prototype.visitDictionary=ue;ee.prototype.visitInterval=ue;ee.prototype.visitIntervalDayTime=ue;ee.prototype.visitIntervalYearMonth=ue;ee.prototype.visitFixedSizeList=ue;ee.prototype.visitMap=ue;$n.instance=new ee});var lv=C(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.instance=Gn.ByteWidthVisitor=void 0;var IC=nt(),TC=Ie(),Ps=(i,e)=>i+e,_d=i=>`Cannot compute the byte width of variable-width column ${i}`,md=class extends IC.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(_d(e))}visitUtf8(e){throw new Error(_d(e))}visitBool(e){return 1/8}visitDecimal(e){return 16}visitDate(e){return(e.unit+1)*4}visitTime(e){return e.bitWidth/8}visitTimestamp(e){return e.unit===TC.TimeUnit.SECOND?4:8}visitInterval(e){return(e.unit+1)*4}visitList(e){throw new Error(_d(e))}visitStruct(e){return this.visitFields(e.children).reduce(Ps,0)}visitUnion(e){return this.visitFields(e.children).reduce(Ps,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(Ps,0)}visitMap(e){return this.visitFields(e.children).reduce(Ps,0)}visitDictionary(e){return this.visit(e.indices)}visitFields(e){return(e||[]).map(t=>this.visit(t.type))}visitSchema(e){return this.visitFields(e.fields).reduce(Ps,0)}};Gn.ByteWidthVisitor=md;Gn.instance=new md});var dv=C(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.instance=Jn.GetVectorConstructor=void 0;var SC=nt(),DC=El(),AC=Nl(),bd=xl(),OC=Ll(),FC=qa(),MC=zl(),CC=Wl(),tu=Gl(),gd=Jl(),Ri=Ya(),UC=nd(),VC=sd(),kC=od(),RC=ad(),xs=ud(),Ls=cd(),vd=ld(),EC=dd(),jd=class extends SC.Visitor{visitNull(){return kC.NullVector}visitBool(){return AC.BoolVector}visitInt(){return Ri.IntVector}visitInt8(){return Ri.Int8Vector}visitInt16(){return Ri.Int16Vector}visitInt32(){return Ri.Int32Vector}visitInt64(){return Ri.Int64Vector}visitUint8(){return Ri.Uint8Vector}visitUint16(){return Ri.Uint16Vector}visitUint32(){return Ri.Uint32Vector}visitUint64(){return Ri.Uint64Vector}visitFloat(){return tu.FloatVector}visitFloat16(){return tu.Float16Vector}visitFloat32(){return tu.Float32Vector}visitFloat64(){return tu.Float64Vector}visitUtf8(){return EC.Utf8Vector}visitBinary(){return DC.BinaryVector}visitFixedSizeBinary(){return MC.FixedSizeBinaryVector}visitDate(){return bd.DateVector}visitDateDay(){return bd.DateDayVector}visitDateMillisecond(){return bd.DateMillisecondVector}visitTimestamp(){return xs.TimestampVector}visitTimestampSecond(){return xs.TimestampSecondVector}visitTimestampMillisecond(){return xs.TimestampMillisecondVector}visitTimestampMicrosecond(){return xs.TimestampMicrosecondVector}visitTimestampNanosecond(){return xs.TimestampNanosecondVector}visitTime(){return Ls.TimeVector}visitTimeSecond(){return Ls.TimeSecondVector}visitTimeMillisecond(){return Ls.TimeMillisecondVector}visitTimeMicrosecond(){return Ls.TimeMicrosecondVector}visitTimeNanosecond(){return Ls.TimeNanosecondVector}visitDecimal(){return OC.DecimalVector}visitList(){return UC.ListVector}visitStruct(){return RC.StructVector}visitUnion(){return vd.UnionVector}visitDenseUnion(){return vd.DenseUnionVector}visitSparseUnion(){return vd.SparseUnionVector}visitDictionary(){return FC.DictionaryVector}visitInterval(){return gd.IntervalVector}visitIntervalDayTime(){return gd.IntervalDayTimeVector}visitIntervalYearMonth(){return gd.IntervalYearMonthVector}visitFixedSizeList(){return CC.FixedSizeListVector}visitMap(){return VC.MapVector}};Jn.GetVectorConstructor=jd;Jn.instance=new jd});var _i=C(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.vectorFromValuesWithType=U.StructRow=U.MapRow=U.Utf8Vector=U.SparseUnionVector=U.DenseUnionVector=U.UnionVector=U.TimeNanosecondVector=U.TimeMicrosecondVector=U.TimeMillisecondVector=U.TimeSecondVector=U.TimeVector=U.TimestampNanosecondVector=U.TimestampMicrosecondVector=U.TimestampMillisecondVector=U.TimestampSecondVector=U.TimestampVector=U.StructVector=U.NullVector=U.MapVector=U.ListVector=U.Uint64Vector=U.Uint32Vector=U.Uint16Vector=U.Uint8Vector=U.Int64Vector=U.Int32Vector=U.Int16Vector=U.Int8Vector=U.IntVector=U.IntervalYearMonthVector=U.IntervalDayTimeVector=U.IntervalVector=U.Float64Vector=U.Float32Vector=U.Float16Vector=U.FloatVector=U.FixedSizeListVector=U.FixedSizeBinaryVector=U.DictionaryVector=U.DecimalVector=U.DateMillisecondVector=U.DateDayVector=U.DateVector=U.Chunked=U.BoolVector=U.BinaryVector=U.BaseVector=U.Vector=void 0;var wd=at(),NC=xe();Object.defineProperty(U,"Vector",{enumerable:!0,get:function(){return NC.Vector}});var PC=qe();Object.defineProperty(U,"BaseVector",{enumerable:!0,get:function(){return PC.BaseVector}});var xC=El();Object.defineProperty(U,"BinaryVector",{enumerable:!0,get:function(){return xC.BinaryVector}});var LC=Nl();Object.defineProperty(U,"BoolVector",{enumerable:!0,get:function(){return LC.BoolVector}});var qC=dr();Object.defineProperty(U,"Chunked",{enumerable:!0,get:function(){return qC.Chunked}});var Bd=xl();Object.defineProperty(U,"DateVector",{enumerable:!0,get:function(){return Bd.DateVector}});Object.defineProperty(U,"DateDayVector",{enumerable:!0,get:function(){return Bd.DateDayVector}});Object.defineProperty(U,"DateMillisecondVector",{enumerable:!0,get:function(){return Bd.DateMillisecondVector}});var zC=Ll();Object.defineProperty(U,"DecimalVector",{enumerable:!0,get:function(){return zC.DecimalVector}});var WC=qa();Object.defineProperty(U,"DictionaryVector",{enumerable:!0,get:function(){return WC.DictionaryVector}});var HC=zl();Object.defineProperty(U,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return HC.FixedSizeBinaryVector}});var YC=Wl();Object.defineProperty(U,"FixedSizeListVector",{enumerable:!0,get:function(){return YC.FixedSizeListVector}});var iu=Gl();Object.defineProperty(U,"FloatVector",{enumerable:!0,get:function(){return iu.FloatVector}});Object.defineProperty(U,"Float16Vector",{enumerable:!0,get:function(){return iu.Float16Vector}});Object.defineProperty(U,"Float32Vector",{enumerable:!0,get:function(){return iu.Float32Vector}});Object.defineProperty(U,"Float64Vector",{enumerable:!0,get:function(){return iu.Float64Vector}});var Id=Jl();Object.defineProperty(U,"IntervalVector",{enumerable:!0,get:function(){return Id.IntervalVector}});Object.defineProperty(U,"IntervalDayTimeVector",{enumerable:!0,get:function(){return Id.IntervalDayTimeVector}});Object.defineProperty(U,"IntervalYearMonthVector",{enumerable:!0,get:function(){return Id.IntervalYearMonthVector}});var Ei=Ya();Object.defineProperty(U,"IntVector",{enumerable:!0,get:function(){return Ei.IntVector}});Object.defineProperty(U,"Int8Vector",{enumerable:!0,get:function(){return Ei.Int8Vector}});Object.defineProperty(U,"Int16Vector",{enumerable:!0,get:function(){return Ei.Int16Vector}});Object.defineProperty(U,"Int32Vector",{enumerable:!0,get:function(){return Ei.Int32Vector}});Object.defineProperty(U,"Int64Vector",{enumerable:!0,get:function(){return Ei.Int64Vector}});Object.defineProperty(U,"Uint8Vector",{enumerable:!0,get:function(){return Ei.Uint8Vector}});Object.defineProperty(U,"Uint16Vector",{enumerable:!0,get:function(){return Ei.Uint16Vector}});Object.defineProperty(U,"Uint32Vector",{enumerable:!0,get:function(){return Ei.Uint32Vector}});Object.defineProperty(U,"Uint64Vector",{enumerable:!0,get:function(){return Ei.Uint64Vector}});var $C=nd();Object.defineProperty(U,"ListVector",{enumerable:!0,get:function(){return $C.ListVector}});var GC=sd();Object.defineProperty(U,"MapVector",{enumerable:!0,get:function(){return GC.MapVector}});var JC=od();Object.defineProperty(U,"NullVector",{enumerable:!0,get:function(){return JC.NullVector}});var KC=ad();Object.defineProperty(U,"StructVector",{enumerable:!0,get:function(){return KC.StructVector}});var qs=ud();Object.defineProperty(U,"TimestampVector",{enumerable:!0,get:function(){return qs.TimestampVector}});Object.defineProperty(U,"TimestampSecondVector",{enumerable:!0,get:function(){return qs.TimestampSecondVector}});Object.defineProperty(U,"TimestampMillisecondVector",{enumerable:!0,get:function(){return qs.TimestampMillisecondVector}});Object.defineProperty(U,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return qs.TimestampMicrosecondVector}});Object.defineProperty(U,"TimestampNanosecondVector",{enumerable:!0,get:function(){return qs.TimestampNanosecondVector}});var zs=cd();Object.defineProperty(U,"TimeVector",{enumerable:!0,get:function(){return zs.TimeVector}});Object.defineProperty(U,"TimeSecondVector",{enumerable:!0,get:function(){return zs.TimeSecondVector}});Object.defineProperty(U,"TimeMillisecondVector",{enumerable:!0,get:function(){return zs.TimeMillisecondVector}});Object.defineProperty(U,"TimeMicrosecondVector",{enumerable:!0,get:function(){return zs.TimeMicrosecondVector}});Object.defineProperty(U,"TimeNanosecondVector",{enumerable:!0,get:function(){return zs.TimeNanosecondVector}});var Td=ld();Object.defineProperty(U,"UnionVector",{enumerable:!0,get:function(){return Td.UnionVector}});Object.defineProperty(U,"DenseUnionVector",{enumerable:!0,get:function(){return Td.DenseUnionVector}});Object.defineProperty(U,"SparseUnionVector",{enumerable:!0,get:function(){return Td.SparseUnionVector}});var ZC=dd();Object.defineProperty(U,"Utf8Vector",{enumerable:!0,get:function(){return ZC.Utf8Vector}});var fv=Ss();Object.defineProperty(U,"MapRow",{enumerable:!0,get:function(){return fv.MapRow}});Object.defineProperty(U,"StructRow",{enumerable:!0,get:function(){return fv.StructRow}});var Ws=Pg(),Sd=Ie(),Kn=xe(),hv=dr(),Xr=qe(),XC=si(),ru=ut(),pv=ke(),yv=pd(),_v=Pc(),mv=ov(),bv=cv(),gv=yd(),vv=lv(),jv=dv();Kn.Vector.new=QC;Kn.Vector.from=tU;function QC(i,...e){return new(jv.instance.getVisitFn(i)())(i,...e)}function eU(i,e){if(ru.isIterable(e))return Kn.Vector.from({nullValues:[null,void 0],type:i(),values:e});if(ru.isAsyncIterable(e))return Kn.Vector.from({nullValues:[null,void 0],type:i(),values:e});let{values:t=[],type:r=i(),nullValues:n=[null,void 0]}=Object.assign({},e);return ru.isIterable(t)?Kn.Vector.from(Object.assign(Object.assign({nullValues:n},e),{type:r})):Kn.Vector.from(Object.assign(Object.assign({nullValues:n},e),{type:r}))}U.vectorFromValuesWithType=eU;function tU(i){let e=Object.assign({nullValues:[null,void 0]},i),{values:t=[]}=e,r=wd.__rest(e,["values"]);if(ru.isIterable(t)){let n=[...pv.Builder.throughIterable(r)(t)];return n.length===1?n[0]:hv.Chunked.concat(n)}return(n=>wd.__awaiter(this,void 0,void 0,function*(){var s,u;let m=pv.Builder.throughAsyncIterable(r);try{for(var j=wd.__asyncValues(m(t)),S;S=yield j.next(),!S.done;){let A=S.value;n.push(A)}}catch(A){s={error:A}}finally{try{S&&!S.done&&(u=j.return)&&(yield u.call(j))}finally{if(s)throw s.error}}return n.length===1?n[0]:hv.Chunked.concat(n)}))([])}Xr.BaseVector.prototype.get=function(e){return yv.instance.visit(this,e)};Xr.BaseVector.prototype.set=function(e,t){return _v.instance.visit(this,e,t)};Xr.BaseVector.prototype.indexOf=function(e,t){return mv.instance.visit(this,e,t)};Xr.BaseVector.prototype.toArray=function(){return bv.instance.visit(this)};Xr.BaseVector.prototype.getByteWidth=function(){return vv.instance.visit(this.type)};Xr.BaseVector.prototype[Symbol.iterator]=function(){return gv.instance.visit(this)};Xr.BaseVector.prototype._bindDataAccessors=sU;Object.keys(Sd.Type).map(i=>Sd.Type[i]).filter(i=>typeof i=="number").filter(i=>i!==Sd.Type.NONE).forEach(i=>{let e=jv.instance.visit(i);e.prototype.get=Ws.partial1(yv.instance.getVisitFn(i)),e.prototype.set=Ws.partial2(_v.instance.getVisitFn(i)),e.prototype.indexOf=Ws.partial2(mv.instance.getVisitFn(i)),e.prototype.toArray=Ws.partial0(bv.instance.getVisitFn(i)),e.prototype.getByteWidth=iU(vv.instance.getVisitFn(i)),e.prototype[Symbol.iterator]=Ws.partial0(gv.instance.getVisitFn(i))});function iU(i){return function(){return i(this.type)}}function rU(i){return function(e){return this.isValid(e)?i.call(this,e):null}}function nU(i){return function(e,t){XC.setBool(this.nullBitmap,this.offset+e,t!=null)&&i.call(this,e,t)}}function sU(){let i=this.nullBitmap;i&&i.byteLength>0&&(this.get=rU(this.get),this.set=nU(this.set))}});var Rs=C(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.Table=void 0;var nu=at(),oU=Rn(),aU=Hs(),wv=ka(),Dd=ki(),Bv=Qe(),Ad=me(),Iv=Wr(),Od=ut(),Tv=Vl(),Fd=_i(),Ze=class extends Fd.Chunked{constructor(...e){var t;let r=null;e[0]instanceof Bv.Schema&&(r=e[0]);let n=e[0]instanceof Ze?e[0].chunks:Iv.selectArgs(Dd.RecordBatch,e);if(!r&&!(r=(t=n[0])===null||t===void 0?void 0:t.schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");n[0]||(n[0]=new Dd._InternalEmptyPlaceholderRecordBatch(r));super(new Ad.Struct(r.fields),n);this._schema=r,this._chunks=n}static empty(e=new Bv.Schema([])){return new Ze(e,[])}static from(e){if(!e)return Ze.empty();if(typeof e=="object"){let r=Od.isIterable(e.values)?uU(e):Od.isAsyncIterable(e.values)?cU(e):null;if(r!==null)return r}let t=aU.RecordBatchReader.from(e);return Od.isPromise(t)?(()=>nu.__awaiter(this,void 0,void 0,function*(){return yield Ze.from(yield t)}))():t.isSync()&&(t=t.open())?t.schema?new Ze(t.schema,[...t]):Ze.empty():(r=>nu.__awaiter(this,void 0,void 0,function*(){var n,s;let u=yield r,m=u.schema,j=[];if(m){try{for(var S=nu.__asyncValues(u),A;A=yield S.next(),!A.done;){let P=A.value;j.push(P)}}catch(P){n={error:P}}finally{try{A&&!A.done&&(s=S.return)&&(yield s.call(S))}finally{if(n)throw n.error}}return new Ze(m,j)}return Ze.empty()}))(t.open())}static fromAsync(e){return nu.__awaiter(this,void 0,void 0,function*(){return yield Ze.from(e)})}static fromStruct(e){return Ze.new(e.data.childData,e.type.children)}static new(...e){return new Ze(...Tv.distributeColumnsIntoRecordBatches(Iv.selectColumnArgs(e)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(e=this._chunks){return new Ze(this._schema,e)}getColumn(e){return this.getColumnAt(this.getColumnIndex(e))}getColumnAt(e){return this.getChildAt(e)}getColumnIndex(e){return this._schema.fields.findIndex(t=>t.name===e)}getChildAt(e){if(e<0||e>=this.numChildren)return null;let t,r,n=this._schema.fields,s=this._children||(this._children=[]);if(r=s[e])return r;if(t=n[e]){let u=this._chunks.map(m=>m.getChildAt(e)).filter(m=>m!=null);if(u.length>0)return s[e]=new oU.Column(t,u)}return null}serialize(e="binary",t=!0){return(t?wv.RecordBatchStreamWriter:wv.RecordBatchFileWriter).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...e){let t=this._schema.fields.reduce((r,n,s)=>r.set(n.name,s),new Map);return this.selectAt(...e.map(r=>t.get(r)).filter(r=>r>-1))}selectAt(...e){let t=this._schema.selectAt(...e);return new Ze(t,this._chunks.map(({length:r,data:{childData:n}})=>new Dd.RecordBatch(t,r,e.map(s=>n[s]).filter(Boolean))))}assign(e){let t=this._schema.fields,[r,n]=e.schema.fields.reduce((m,j,S)=>{let[A,P]=m,q=t.findIndex(J=>J.name===j.name);return~q?P[q]=S:A.push(S),m},[[],[]]),s=this._schema.assign(e.schema),u=[...t.map((m,j,S,A=n[j])=>A===void 0?this.getColumnAt(j):e.getColumnAt(A)),...r.map(m=>e.getColumnAt(m))].filter(Boolean);return new Ze(...Tv.distributeVectorsIntoRecordBatches(s,u))}};su.Table=Ze;function uU(i){let{type:e}=i;return e instanceof Ad.Struct?Ze.fromStruct(Fd.StructVector.from(i)):null}function cU(i){let{type:e}=i;return e instanceof Ad.Struct?Fd.StructVector.from(i).then(t=>Ze.fromStruct(t)):null}});var ki=C(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn._InternalEmptyPlaceholderRecordBatch=Zn.RecordBatch=void 0;var Md=Yt(),Cd=Rs(),lU=xe(),dU=nt(),fU=Qe(),hU=ut(),pU=dr(),yU=Wr(),Ud=me(),_U=Vl(),mU=_i(),jr=class extends mU.StructVector{constructor(...e){let t,r=e[0],n;if(e[1]instanceof Md.Data)[,t,n]=e;else{let s=r.fields,[,u,m]=e;t=Md.Data.Struct(new Ud.Struct(s),0,u,0,null,m)}super(t,n);this._schema=r}static from(e){return hU.isIterable(e.values),Cd.Table.from(e)}static new(...e){let[t,r]=yU.selectFieldArgs(e),n=r.filter(s=>s instanceof lU.Vector);return new jr(..._U.ensureSameLengthData(new fU.Schema(t),n.map(s=>s.data)))}clone(e,t=this._children){return new jr(this._schema,e,t)}concat(...e){let t=this._schema,r=pU.Chunked.flatten(this,...e);return new Cd.Table(t,r.map(({data:n})=>new jr(t,n)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=ou.collect(this))}select(...e){let t=this._schema.fields.reduce((r,n,s)=>r.set(n.name,s),new Map);return this.selectAt(...e.map(r=>t.get(r)).filter(r=>r>-1))}selectAt(...e){let t=this._schema.selectAt(...e),r=e.map(n=>this.data.childData[n]).filter(Boolean);return new jr(t,this.length,r)}};Zn.RecordBatch=jr;var Sv=class extends jr{constructor(e){super(e,0,e.fields.map(t=>Md.Data.new(t.type,0,0,0)))}};Zn._InternalEmptyPlaceholderRecordBatch=Sv;var ou=class extends dU.Visitor{constructor(){super(...arguments);this.dictionaries=new Map}static collect(e){return new ou().visit(e.data,new Ud.Struct(e.schema.fields)).dictionaries}visit(e,t){return Ud.DataType.isDictionary(t)?this.visitDictionary(e,t):(e.childData.forEach((r,n)=>this.visit(r,t.children[n].type)),this)}visitDictionary(e,t){let r=e.dictionary;return r&&r.length>0&&this.dictionaries.set(t.id,r),this}}});var Hs=C(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.AsyncRecordBatchFileReader=Lt.RecordBatchFileReader=Lt.AsyncRecordBatchStreamReader=Lt.RecordBatchStreamReader=Lt.RecordBatchReader=void 0;var De=at(),Dv=xe(),au=Ie(),Av=Kc(),Ov=ps(),Fv=ar(),Ys=Qc(),Mv=cb(),Vd=ki(),Qr=cn(),Pt=Ia(),xt=ut(),vi=class extends Qr.ReadableInterop{constructor(e){super();this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){let t=this._impl.open(e);return xt.isPromise(t)?t.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return Ov.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Ov.default.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof vi?e:xt.isArrowJSON(e)?bU(e):xt.isFileHandle(e)?jU(e):xt.isPromise(e)?(()=>De.__awaiter(this,void 0,void 0,function*(){return yield vi.from(yield e)}))():xt.isFetchResponse(e)||xt.isReadableDOMStream(e)||xt.isReadableNodeStream(e)||xt.isAsyncIterable(e)?vU(new Fv.AsyncByteStream(e)):gU(new Fv.ByteStream(e))}static readAll(e){return e instanceof vi?e.isSync()?kv(e):Rv(e):xt.isArrowJSON(e)||ArrayBuffer.isView(e)||xt.isIterable(e)||xt.isIteratorResult(e)?kv(e):Rv(e)}};Lt.RecordBatchReader=vi;var Xn=class extends vi{constructor(e){super(e);this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return De.__asyncGenerator(this,arguments,function*(){yield De.__await(yield*De.__asyncDelegator(De.__asyncValues(this[Symbol.iterator]())))})}};Lt.RecordBatchStreamReader=Xn;var Qn=class extends vi{constructor(e){super(e);this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}};Lt.AsyncRecordBatchStreamReader=Qn;var uu=class extends Xn{constructor(e){super(e);this._impl=e}};Lt.RecordBatchFileReader=uu;var kd=class extends Qn{constructor(e){super(e);this._impl=e}};Lt.AsyncRecordBatchFileReader=kd;var Rd=class{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){return new Vd.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){let{id:r,isDelta:n,data:s}=e,{dictionaries:u,schema:m}=this,j=u.get(r);if(n||!j){let S=m.dictionaries.get(r);return j&&n?j.concat(Dv.Vector.new(this._loadVectors(s,t,[S])[0])):Dv.Vector.new(this._loadVectors(s,t,[S])[0])}return j}_loadVectors(e,t,r){return new Mv.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(r)}},$s=class extends Rd{constructor(e,t){super(t);this._reader=xt.isArrowJSON(e)?new Pt.JSONMessageReader(this._handle=e):new Pt.MessageReader(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=Vv(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):Qr.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Qr.ITERATOR_DONE}next(){if(this.closed)return Qr.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(r,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Vd._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Gs=class extends Rd{constructor(e,t){super(t);this._reader=new Pt.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return De.__awaiter(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return De.__awaiter(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=Vv(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return De.__awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):Qr.ITERATOR_DONE})}return(e){return De.__awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):Qr.ITERATOR_DONE})}next(){return De.__awaiter(this,void 0,void 0,function*(){if(this.closed)return Qr.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),n=yield t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(r,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),n=yield t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Vd._InternalEmptyPlaceholderRecordBatch(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return De.__awaiter(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},Ed=class extends $s{constructor(e,t){super(e instanceof Ys.RandomAccessFile?e:new Ys.RandomAccessFile(e),t)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){if(this.closed)return null;this._footer||this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){let r=this._reader.readMessage(au.MessageHeader.RecordBatch);if(r==null?void 0:r.isRecordBatch()){let n=r.header(),s=this._reader.readMessageBody(r.bodyLength);return this._loadRecordBatch(n,s)}}return null}_readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){let r=this._reader.readMessage(au.MessageHeader.DictionaryBatch);if(r==null?void 0:r.isDictionaryBatch()){let n=r.header(),s=this._reader.readMessageBody(r.bodyLength),u=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,u)}}}_readFooter(){let{_handle:e}=this,t=e.size-Pt.magicAndPadding,r=e.readInt32(t),n=e.readAt(t-r,r);return Av.Footer.decode(n)}_readNextMessageAndValidate(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}},Cv=class extends Gs{constructor(e,...t){let r=typeof t[0]!="number"?t.shift():void 0,n=t[0]instanceof Map?t.shift():void 0;super(e instanceof Ys.AsyncRandomAccessFile?e:new Ys.AsyncRandomAccessFile(e,r),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}open(e){let t=Object.create(null,{open:{get:()=>super.open}});return De.__awaiter(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let r of this._footer.dictionaryBatches())r&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){return De.__awaiter(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());let t=this._footer&&this._footer.getRecordBatch(e);if(t&&(yield this._handle.seek(t.offset))){let r=yield this._reader.readMessage(au.MessageHeader.RecordBatch);if(r==null?void 0:r.isRecordBatch()){let n=r.header(),s=yield this._reader.readMessageBody(r.bodyLength);return this._loadRecordBatch(n,s)}}return null})}_readDictionaryBatch(e){return De.__awaiter(this,void 0,void 0,function*(){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&(yield this._handle.seek(t.offset))){let r=yield this._reader.readMessage(au.MessageHeader.DictionaryBatch);if(r==null?void 0:r.isDictionaryBatch()){let n=r.header(),s=yield this._reader.readMessageBody(r.bodyLength),u=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,u)}}})}_readFooter(){return De.__awaiter(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-Pt.magicAndPadding,r=yield e.readInt32(t),n=yield e.readAt(t-r,r);return Av.Footer.decode(n)})}_readNextMessageAndValidate(e){return De.__awaiter(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null})}},Uv=class extends $s{constructor(e,t){super(e,t)}_loadVectors(e,t,r){return new Mv.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(r)}};function Vv(i,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:i.autoDestroy}function*kv(i){let e=vi.from(i);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function Rv(i){return De.__asyncGenerator(this,arguments,function*(){let t=yield De.__await(vi.from(i));try{if(!(yield De.__await(t.open({autoDestroy:!1}))).closed)do yield yield De.__await(t);while(!(yield De.__await(t.reset().open())).closed)}finally{yield De.__await(t.cancel())}})}function bU(i){return new Xn(new Uv(i))}function gU(i){let e=i.peek(Pt.magicLength+7&~7);return e&&e.byteLength>=4?Pt.checkForMagicArrowString(e)?new uu(new Ed(i.read())):new Xn(new $s(i)):new Xn(new $s(function*(){}()))}function vU(i){return De.__awaiter(this,void 0,void 0,function*(){let e=yield i.peek(Pt.magicLength+7&~7);return e&&e.byteLength>=4?Pt.checkForMagicArrowString(e)?new uu(new Ed(yield i.read())):new Qn(new Gs(i)):new Qn(new Gs(function(){return De.__asyncGenerator(this,arguments,function*(){})}()))})}function jU(i){return De.__awaiter(this,void 0,void 0,function*(){let{size:e}=yield i.stat(),t=new Ys.AsyncRandomAccessFile(i,e);return e>=Pt.magicX2AndPadding&&Pt.checkForMagicArrowString(yield t.readAt(0,Pt.magicLength+7&~7))?new kd(new Cv(t)):new Qn(new Gs(t))})}});var Pv=C(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.toDOMStream=void 0;var cu=at(),Ev=Ge(),Nv=ut();function wU(i,e){if(Nv.isAsyncIterable(i))return IU(i,e);if(Nv.isIterable(i))return BU(i,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}lu.toDOMStream=wU;function BU(i,e){let t=null,r=(e==null?void 0:e.type)==="bytes"||!1,n=(e==null?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(u){s(u,t||(t=i[Symbol.iterator]()))},pull(u){t?s(u,t):u.close()},cancel(){((t==null?void 0:t.return)&&t.return()||!0)&&(t=null)}}),Object.assign({highWaterMark:r?n:void 0},e));function s(u,m){let j,S=null,A=u.desiredSize||null;for(;!(S=m.next(r?A:null)).done;)if(ArrayBuffer.isView(S.value)&&(j=Ev.toUint8Array(S.value))&&(A!=null&&r&&(A=A-j.byteLength+1),S.value=j),u.enqueue(S.value),A!=null&&--A<=0)return;u.close()}}function IU(i,e){let t=null,r=(e==null?void 0:e.type)==="bytes"||!1,n=(e==null?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(u){return cu.__awaiter(this,void 0,void 0,function*(){yield s(u,t||(t=i[Symbol.asyncIterator]()))})},pull(u){return cu.__awaiter(this,void 0,void 0,function*(){t?yield s(u,t):u.close()})},cancel(){return cu.__awaiter(this,void 0,void 0,function*(){((t==null?void 0:t.return)&&(yield t.return())||!0)&&(t=null)})}}),Object.assign({highWaterMark:r?n:void 0},e));function s(u,m){return cu.__awaiter(this,void 0,void 0,function*(){let j,S=null,A=u.desiredSize||null;for(;!(S=yield m.next(r?A:null)).done;)if(ArrayBuffer.isView(S.value)&&(j=Ev.toUint8Array(S.value))&&(A!=null&&r&&(A=A-j.byteLength+1),S.value=j),u.enqueue(S.value),A!=null&&--A<=0)return;u.close()})}}});var qv=C(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.BuilderTransform=es.builderThroughDOMStream=void 0;var TU=at(),SU=la();function DU(i){return new Nd(i)}es.builderThroughDOMStream=DU;var Nd=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:t,["writableStrategy"]:r,["queueingStrategy"]:n="count"}=e,s=TU.__rest(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=SU.Builder.new(s),this._getSize=n!=="bytes"?xv:Lv;let{["highWaterMark"]:u=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},t),{["highWaterMark"]:m=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},r);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:j=>{this._maybeFlush(this._builder,this._controller=j)},start:j=>{this._maybeFlush(this._builder,this._controller=j)}},{highWaterMark:u,size:n!=="bytes"?xv:Lv}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:m,size:j=>this._writeValueAndReturnChunkSize(j)})}_writeValueAndReturnChunkSize(e){let t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){t!==null&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,t===null?e.close():e.enqueue(t)}};es.BuilderTransform=Nd;var xv=i=>i.length,Lv=i=>i.byteLength});var zv=C(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.recordBatchReaderThroughDOMStream=void 0;var Js=at(),AU=ar(),OU=Hs();function FU(i,e){let t=new AU.AsyncByteQueue,r=null,n=new ReadableStream({cancel(){return Js.__awaiter(this,void 0,void 0,function*(){yield t.close()})},start(m){return Js.__awaiter(this,void 0,void 0,function*(){yield u(m,r||(r=yield s()))})},pull(m){return Js.__awaiter(this,void 0,void 0,function*(){r?yield u(m,r):m.close()})}});return{writable:new WritableStream(t,Object.assign({highWaterMark:Math.pow(2,14)},i)),readable:n};function s(){return Js.__awaiter(this,void 0,void 0,function*(){return yield(yield OU.RecordBatchReader.from(t)).open(e)})}function u(m,j){return Js.__awaiter(this,void 0,void 0,function*(){let S=m.desiredSize,A=null;for(;!(A=yield j.next()).done;)if(m.enqueue(A.value),S!=null&&--S<=0)return;m.close()})}}du.recordBatchReaderThroughDOMStream=FU});var Wv=C(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.recordBatchWriterThroughDOMStream=void 0;var fu=at(),MU=ar();function CU(i,e){let t=new this(i),r=new MU.AsyncByteStream(t),n=new ReadableStream({type:"bytes",cancel(){return fu.__awaiter(this,void 0,void 0,function*(){yield r.cancel()})},pull(u){return fu.__awaiter(this,void 0,void 0,function*(){yield s(u)})},start(u){return fu.__awaiter(this,void 0,void 0,function*(){yield s(u)})}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(t,i),readable:n};function s(u){return fu.__awaiter(this,void 0,void 0,function*(){let m=null,j=u.desiredSize;for(;m=yield r.read(j||null);)if(u.enqueue(m),j!=null&&(j-=m.byteLength)<=0)return;u.close()})}}hu.recordBatchWriterThroughDOMStream=CU});var Wd=C(de=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0});de.custom=de.or=de.and=de.col=de.lit=de.CustomPredicate=de.Not=de.GTeq=de.LTeq=de.Equals=de.Or=de.And=de.CombinationPredicate=de.ComparisonPredicate=de.Predicate=de.Col=de.Literal=de.Value=void 0;var UU=qa(),wr=class{eq(e){return e instanceof wr||(e=new Ni(e)),new xd(this,e)}le(e){return e instanceof wr||(e=new Ni(e)),new Ld(this,e)}ge(e){return e instanceof wr||(e=new Ni(e)),new qd(this,e)}lt(e){return new ns(this.ge(e))}gt(e){return new ns(this.le(e))}ne(e){return new ns(this.eq(e))}};de.Value=wr;var Ni=class extends wr{constructor(e){super();this.v=e}};de.Literal=Ni;var Pd=class extends wr{constructor(e){super();this.name=e}bind(e){if(!this.colidx){this.colidx=-1;let r=e.schema.fields;for(let n=-1;++n<r.length;)if(r[n].name===this.name){this.colidx=n;break}if(this.colidx<0)throw new Error(`Failed to bind Col "${this.name}"`)}let t=this.vector=e.getChildAt(this.colidx);return r=>t.get(r)}};de.Col=Pd;var ts=class{and(...e){return new is(this,...e)}or(...e){return new rs(this,...e)}not(){return new ns(this)}};de.Predicate=ts;var Ks=class extends ts{constructor(e,t){super();this.left=e,this.right=t}bind(e){return this.left instanceof Ni?this.right instanceof Ni?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Ni?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}};de.ComparisonPredicate=Ks;var Zs=class extends ts{constructor(...e){super();this.children=e}};de.CombinationPredicate=Zs;Zs.prototype.children=Object.freeze([]);var is=class extends Zs{constructor(...e){e=e.reduce((t,r)=>t.concat(r instanceof is?r.children:r),[]);super(...e)}bind(e){let t=this.children.map(r=>r.bind(e));return(r,n)=>t.every(s=>s(r,n))}};de.And=is;var rs=class extends Zs{constructor(...e){e=e.reduce((t,r)=>t.concat(r instanceof rs?r.children:r),[]);super(...e)}bind(e){let t=this.children.map(r=>r.bind(e));return(r,n)=>t.some(s=>s(r,n))}};de.Or=rs;var xd=class extends Ks{_bindLitLit(e,t,r){let n=t.v==r.v;return()=>n}_bindColCol(e,t,r){let n=t.bind(e),s=r.bind(e);return(u,m)=>n(u,m)==s(u,m)}_bindColLit(e,t,r){let n=t.bind(e);if(t.vector instanceof UU.DictionaryVector){let s,u=t.vector;return u.dictionary!==this.lastDictionary?(s=u.reverseLookup(r.v),this.lastDictionary=u.dictionary,this.lastKey=s):s=this.lastKey,s===-1?()=>!1:m=>u.getKey(m)===s}else return(s,u)=>n(s,u)==r.v}_bindLitCol(e,t,r){return this._bindColLit(e,r,t)}};de.Equals=xd;var Ld=class extends Ks{_bindLitLit(e,t,r){let n=t.v<=r.v;return()=>n}_bindColCol(e,t,r){let n=t.bind(e),s=r.bind(e);return(u,m)=>n(u,m)<=s(u,m)}_bindColLit(e,t,r){let n=t.bind(e);return(s,u)=>n(s,u)<=r.v}_bindLitCol(e,t,r){let n=r.bind(e);return(s,u)=>t.v<=n(s,u)}};de.LTeq=Ld;var qd=class extends Ks{_bindLitLit(e,t,r){let n=t.v>=r.v;return()=>n}_bindColCol(e,t,r){let n=t.bind(e),s=r.bind(e);return(u,m)=>n(u,m)>=s(u,m)}_bindColLit(e,t,r){let n=t.bind(e);return(s,u)=>n(s,u)>=r.v}_bindLitCol(e,t,r){let n=r.bind(e);return(s,u)=>t.v>=n(s,u)}};de.GTeq=qd;var ns=class extends ts{constructor(e){super();this.child=e}bind(e){let t=this.child.bind(e);return(r,n)=>!t(r,n)}};de.Not=ns;var zd=class extends ts{constructor(e,t){super();this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}};de.CustomPredicate=zd;function VU(i){return new Ni(i)}de.lit=VU;function kU(i){return new Pd(i)}de.col=kU;function RU(...i){return new is(...i)}de.and=RU;function EU(...i){return new rs(...i)}de.or=EU;function NU(i,e){return new zd(i,e)}de.custom=NU});var Kv=C(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.FilteredDataFrame=Br.CountByResult=Br.DataFrame=void 0;var Hv=Rs(),Yv=Ya(),Hd=Qe(),$v=Wd(),PU=ki(),Gv=me(),Yd=class extends Hv.Table{filter(e){return new Xs(this.chunks,e)}scan(e,t){let r=this.chunks,n=r.length;for(let s=-1;++s<n;){let u=r[s];t&&t(u);for(let m=-1,j=u.length;++m<j;)e(m,u)}}scanReverse(e,t){let r=this.chunks,n=r.length;for(let s=n;--s>=0;){let u=r[s];t&&t(u);for(let m=u.length;--m>=0;)e(m,u)}}countBy(e){let t=this.chunks,r=t.length,n=typeof e=="string"?new $v.Col(e):e;n.bind(t[r-1]);let s=n.vector;if(!Gv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let u=Math.ceil(Math.log(s.length)/Math.log(256)),m=u==4?Uint32Array:u>=2?Uint16Array:Uint8Array,j=new m(s.dictionary.length);for(let S=-1;++S<r;){let A=t[S];n.bind(A);let P=n.vector.indices;for(let q=-1,J=A.length;++q<J;){let Ce=P.get(q);Ce!==null&&j[Ce]++}}return new pu(s.dictionary,Yv.IntVector.from(j))}};Br.DataFrame=Yd;var pu=class extends Hv.Table{constructor(e,t){let r=new Hd.Schema([new Hd.Field("values",e.type),new Hd.Field("counts",t.type)]);super(new PU.RecordBatch(r,t.length,[e,t]))}toJSON(){let e=this.getColumnAt(0),t=this.getColumnAt(1),r={};for(let n=-1;++n<this.length;)r[e.get(n)]=t.get(n);return r}};Br.CountByResult=pu;var Jv=class{constructor(e,t){this.batches=e,this.predicate=t,this.batchIndex=0,this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch)}next(){for(;this.batchIndex<this.batches.length;){for(;this.index<this.batch.length;){if(this.predicateFunc(this.index,this.batch))return{value:this.batch.get(this.index++)};this.index++}++this.batchIndex<this.batches.length&&(this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch))}return{done:!0,value:null}}[Symbol.iterator](){return this}},Xs=class extends Yd{constructor(e,t){super(e);this._predicate=t}scan(e,t){let r=this._chunks,n=r.length;for(let s=-1;++s<n;){let u=r[s],m=this._predicate.bind(u),j=!1;for(let S=-1,A=u.length;++S<A;)m(S,u)&&(t&&!j&&(t(u),j=!0),e(S,u))}}scanReverse(e,t){let r=this._chunks,n=r.length;for(let s=n;--s>=0;){let u=r[s],m=this._predicate.bind(u),j=!1;for(let S=u.length;--S>=0;)m(S,u)&&(t&&!j&&(t(u),j=!0),e(S,u))}}count(){let e=0,t=this._chunks,r=t.length;for(let n=-1;++n<r;){let s=t[n],u=this._predicate.bind(s);for(let m=-1,j=s.length;++m<j;)u(m,s)&&++e}return e}[Symbol.iterator](){return new Jv(this._chunks,this._predicate)}filter(e){return new Xs(this._chunks,this._predicate.and(e))}countBy(e){let t=this._chunks,r=t.length,n=typeof e=="string"?new $v.Col(e):e;n.bind(t[r-1]);let s=n.vector;if(!Gv.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let u=Math.ceil(Math.log(s.length)/Math.log(256)),m=u==4?Uint32Array:u>=2?Uint16Array:Uint8Array,j=new m(s.dictionary.length);for(let S=-1;++S<r;){let A=t[S],P=this._predicate.bind(A);n.bind(A);let q=n.vector.indices;for(let J=-1,Ce=A.length;++J<Ce;){let Te=q.get(J);Te!==null&&P(J,A)&&j[Te]++}}return new pu(s.dictionary,Yv.IntVector.from(j))}};Br.FilteredDataFrame=Xs});var Qv=C(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.isTypedArray=g.util=g.predicate=g.CountByResult=g.FilteredDataFrame=g.DataFrame=g.RecordBatch=g.Message=g.JSONMessageReader=g.AsyncMessageReader=g.MessageReader=g.RecordBatchJSONWriter=g.RecordBatchStreamWriter=g.RecordBatchFileWriter=g.RecordBatchWriter=g.AsyncRecordBatchStreamReader=g.AsyncRecordBatchFileReader=g.RecordBatchStreamReader=g.RecordBatchFileReader=g.RecordBatchReader=g.AsyncByteQueue=g.AsyncByteStream=g.ByteStream=g.Utf8Builder=g.SparseUnionBuilder=g.DenseUnionBuilder=g.UnionBuilder=g.TimeNanosecondBuilder=g.TimeMicrosecondBuilder=g.TimeMillisecondBuilder=g.TimeSecondBuilder=g.TimeBuilder=g.TimestampNanosecondBuilder=g.TimestampMicrosecondBuilder=g.TimestampMillisecondBuilder=g.TimestampSecondBuilder=g.TimestampBuilder=g.StructBuilder=g.NullBuilder=g.MapBuilder=g.ListBuilder=g.Uint64Builder=g.Uint32Builder=g.Uint16Builder=g.Uint8Builder=g.Int64Builder=g.Int32Builder=g.Int16Builder=g.Int8Builder=g.IntBuilder=g.IntervalYearMonthBuilder=g.IntervalDayTimeBuilder=g.IntervalBuilder=g.Float64Builder=g.Float32Builder=g.Float16Builder=g.FloatBuilder=g.FixedSizeListBuilder=g.FixedSizeBinaryBuilder=g.DictionaryBuilder=g.DecimalBuilder=g.DateMillisecondBuilder=g.DateDayBuilder=g.DateBuilder=g.BoolBuilder=g.BinaryBuilder=g.Builder=g.Utf8Vector=g.SparseUnionVector=g.DenseUnionVector=g.UnionVector=g.TimeNanosecondVector=g.TimeMicrosecondVector=g.TimeMillisecondVector=g.TimeSecondVector=g.TimeVector=g.TimestampNanosecondVector=g.TimestampMicrosecondVector=g.TimestampMillisecondVector=g.TimestampSecondVector=g.TimestampVector=g.StructVector=g.NullVector=g.MapVector=g.ListVector=g.Uint64Vector=g.Uint32Vector=g.Uint16Vector=g.Uint8Vector=g.Int64Vector=g.Int32Vector=g.Int16Vector=g.Int8Vector=g.IntVector=g.IntervalYearMonthVector=g.IntervalDayTimeVector=g.IntervalVector=g.Float64Vector=g.Float32Vector=g.Float16Vector=g.FloatVector=g.FixedSizeListVector=g.FixedSizeBinaryVector=g.DictionaryVector=g.DecimalVector=g.DateMillisecondVector=g.DateDayVector=g.DateVector=g.Chunked=g.BoolVector=g.BinaryVector=g.BaseVector=g.Vector=g.Field=g.Schema=g.Visitor=g.Column=g.Table=g.Map_=g.FixedSizeList=g.IntervalYearMonth=g.IntervalDayTime=g.Interval=g.Dictionary=g.SparseUnion=g.DenseUnion=g.Union=g.Struct=g.List=g.Decimal=g.TimeNanosecond=g.TimeMicrosecond=g.TimeMillisecond=g.TimeSecond=g.Time=g.TimestampNanosecond=g.TimestampMicrosecond=g.TimestampMillisecond=g.TimestampSecond=g.Timestamp=g.DateMillisecond=g.DateDay=g.Date_=g.FixedSizeBinary=g.Binary=g.Utf8=g.Float64=g.Float32=g.Float16=g.Float=g.Uint64=g.Uint32=g.Uint16=g.Uint8=g.Int64=g.Int32=g.Int16=g.Int8=g.Int=g.Bool=g.Null=g.DataType=g.Data=g.BufferType=g.Type=g.MessageHeader=g.MetadataVersion=g.IntervalUnit=g.UnionMode=g.Precision=g.TimeUnit=g.DateUnit=void 0;var ss=Gi();Object.defineProperty(g,"DateUnit",{enumerable:!0,get:function(){return ss.DateUnit}});Object.defineProperty(g,"TimeUnit",{enumerable:!0,get:function(){return ss.TimeUnit}});Object.defineProperty(g,"Precision",{enumerable:!0,get:function(){return ss.Precision}});Object.defineProperty(g,"UnionMode",{enumerable:!0,get:function(){return ss.UnionMode}});Object.defineProperty(g,"IntervalUnit",{enumerable:!0,get:function(){return ss.IntervalUnit}});Object.defineProperty(g,"MetadataVersion",{enumerable:!0,get:function(){return ss.MetadataVersion}});var xU=Io();Object.defineProperty(g,"MessageHeader",{enumerable:!0,get:function(){return xU.MessageHeader}});var Zv=Ie();Object.defineProperty(g,"Type",{enumerable:!0,get:function(){return Zv.Type}});Object.defineProperty(g,"BufferType",{enumerable:!0,get:function(){return Zv.BufferType}});var LU=Yt();Object.defineProperty(g,"Data",{enumerable:!0,get:function(){return LU.Data}});var se=me();Object.defineProperty(g,"DataType",{enumerable:!0,get:function(){return se.DataType}});Object.defineProperty(g,"Null",{enumerable:!0,get:function(){return se.Null}});Object.defineProperty(g,"Bool",{enumerable:!0,get:function(){return se.Bool}});Object.defineProperty(g,"Int",{enumerable:!0,get:function(){return se.Int}});Object.defineProperty(g,"Int8",{enumerable:!0,get:function(){return se.Int8}});Object.defineProperty(g,"Int16",{enumerable:!0,get:function(){return se.Int16}});Object.defineProperty(g,"Int32",{enumerable:!0,get:function(){return se.Int32}});Object.defineProperty(g,"Int64",{enumerable:!0,get:function(){return se.Int64}});Object.defineProperty(g,"Uint8",{enumerable:!0,get:function(){return se.Uint8}});Object.defineProperty(g,"Uint16",{enumerable:!0,get:function(){return se.Uint16}});Object.defineProperty(g,"Uint32",{enumerable:!0,get:function(){return se.Uint32}});Object.defineProperty(g,"Uint64",{enumerable:!0,get:function(){return se.Uint64}});Object.defineProperty(g,"Float",{enumerable:!0,get:function(){return se.Float}});Object.defineProperty(g,"Float16",{enumerable:!0,get:function(){return se.Float16}});Object.defineProperty(g,"Float32",{enumerable:!0,get:function(){return se.Float32}});Object.defineProperty(g,"Float64",{enumerable:!0,get:function(){return se.Float64}});Object.defineProperty(g,"Utf8",{enumerable:!0,get:function(){return se.Utf8}});Object.defineProperty(g,"Binary",{enumerable:!0,get:function(){return se.Binary}});Object.defineProperty(g,"FixedSizeBinary",{enumerable:!0,get:function(){return se.FixedSizeBinary}});Object.defineProperty(g,"Date_",{enumerable:!0,get:function(){return se.Date_}});Object.defineProperty(g,"DateDay",{enumerable:!0,get:function(){return se.DateDay}});Object.defineProperty(g,"DateMillisecond",{enumerable:!0,get:function(){return se.DateMillisecond}});Object.defineProperty(g,"Timestamp",{enumerable:!0,get:function(){return se.Timestamp}});Object.defineProperty(g,"TimestampSecond",{enumerable:!0,get:function(){return se.TimestampSecond}});Object.defineProperty(g,"TimestampMillisecond",{enumerable:!0,get:function(){return se.TimestampMillisecond}});Object.defineProperty(g,"TimestampMicrosecond",{enumerable:!0,get:function(){return se.TimestampMicrosecond}});Object.defineProperty(g,"TimestampNanosecond",{enumerable:!0,get:function(){return se.TimestampNanosecond}});Object.defineProperty(g,"Time",{enumerable:!0,get:function(){return se.Time}});Object.defineProperty(g,"TimeSecond",{enumerable:!0,get:function(){return se.TimeSecond}});Object.defineProperty(g,"TimeMillisecond",{enumerable:!0,get:function(){return se.TimeMillisecond}});Object.defineProperty(g,"TimeMicrosecond",{enumerable:!0,get:function(){return se.TimeMicrosecond}});Object.defineProperty(g,"TimeNanosecond",{enumerable:!0,get:function(){return se.TimeNanosecond}});Object.defineProperty(g,"Decimal",{enumerable:!0,get:function(){return se.Decimal}});Object.defineProperty(g,"List",{enumerable:!0,get:function(){return se.List}});Object.defineProperty(g,"Struct",{enumerable:!0,get:function(){return se.Struct}});Object.defineProperty(g,"Union",{enumerable:!0,get:function(){return se.Union}});Object.defineProperty(g,"DenseUnion",{enumerable:!0,get:function(){return se.DenseUnion}});Object.defineProperty(g,"SparseUnion",{enumerable:!0,get:function(){return se.SparseUnion}});Object.defineProperty(g,"Dictionary",{enumerable:!0,get:function(){return se.Dictionary}});Object.defineProperty(g,"Interval",{enumerable:!0,get:function(){return se.Interval}});Object.defineProperty(g,"IntervalDayTime",{enumerable:!0,get:function(){return se.IntervalDayTime}});Object.defineProperty(g,"IntervalYearMonth",{enumerable:!0,get:function(){return se.IntervalYearMonth}});Object.defineProperty(g,"FixedSizeList",{enumerable:!0,get:function(){return se.FixedSizeList}});Object.defineProperty(g,"Map_",{enumerable:!0,get:function(){return se.Map_}});var qU=Rs();Object.defineProperty(g,"Table",{enumerable:!0,get:function(){return qU.Table}});var zU=Rn();Object.defineProperty(g,"Column",{enumerable:!0,get:function(){return zU.Column}});var WU=nt();Object.defineProperty(g,"Visitor",{enumerable:!0,get:function(){return WU.Visitor}});var Xv=Qe();Object.defineProperty(g,"Schema",{enumerable:!0,get:function(){return Xv.Schema}});Object.defineProperty(g,"Field",{enumerable:!0,get:function(){return Xv.Field}});var te=_i();Object.defineProperty(g,"Vector",{enumerable:!0,get:function(){return te.Vector}});Object.defineProperty(g,"BaseVector",{enumerable:!0,get:function(){return te.BaseVector}});Object.defineProperty(g,"BinaryVector",{enumerable:!0,get:function(){return te.BinaryVector}});Object.defineProperty(g,"BoolVector",{enumerable:!0,get:function(){return te.BoolVector}});Object.defineProperty(g,"Chunked",{enumerable:!0,get:function(){return te.Chunked}});Object.defineProperty(g,"DateVector",{enumerable:!0,get:function(){return te.DateVector}});Object.defineProperty(g,"DateDayVector",{enumerable:!0,get:function(){return te.DateDayVector}});Object.defineProperty(g,"DateMillisecondVector",{enumerable:!0,get:function(){return te.DateMillisecondVector}});Object.defineProperty(g,"DecimalVector",{enumerable:!0,get:function(){return te.DecimalVector}});Object.defineProperty(g,"DictionaryVector",{enumerable:!0,get:function(){return te.DictionaryVector}});Object.defineProperty(g,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return te.FixedSizeBinaryVector}});Object.defineProperty(g,"FixedSizeListVector",{enumerable:!0,get:function(){return te.FixedSizeListVector}});Object.defineProperty(g,"FloatVector",{enumerable:!0,get:function(){return te.FloatVector}});Object.defineProperty(g,"Float16Vector",{enumerable:!0,get:function(){return te.Float16Vector}});Object.defineProperty(g,"Float32Vector",{enumerable:!0,get:function(){return te.Float32Vector}});Object.defineProperty(g,"Float64Vector",{enumerable:!0,get:function(){return te.Float64Vector}});Object.defineProperty(g,"IntervalVector",{enumerable:!0,get:function(){return te.IntervalVector}});Object.defineProperty(g,"IntervalDayTimeVector",{enumerable:!0,get:function(){return te.IntervalDayTimeVector}});Object.defineProperty(g,"IntervalYearMonthVector",{enumerable:!0,get:function(){return te.IntervalYearMonthVector}});Object.defineProperty(g,"IntVector",{enumerable:!0,get:function(){return te.IntVector}});Object.defineProperty(g,"Int8Vector",{enumerable:!0,get:function(){return te.Int8Vector}});Object.defineProperty(g,"Int16Vector",{enumerable:!0,get:function(){return te.Int16Vector}});Object.defineProperty(g,"Int32Vector",{enumerable:!0,get:function(){return te.Int32Vector}});Object.defineProperty(g,"Int64Vector",{enumerable:!0,get:function(){return te.Int64Vector}});Object.defineProperty(g,"Uint8Vector",{enumerable:!0,get:function(){return te.Uint8Vector}});Object.defineProperty(g,"Uint16Vector",{enumerable:!0,get:function(){return te.Uint16Vector}});Object.defineProperty(g,"Uint32Vector",{enumerable:!0,get:function(){return te.Uint32Vector}});Object.defineProperty(g,"Uint64Vector",{enumerable:!0,get:function(){return te.Uint64Vector}});Object.defineProperty(g,"ListVector",{enumerable:!0,get:function(){return te.ListVector}});Object.defineProperty(g,"MapVector",{enumerable:!0,get:function(){return te.MapVector}});Object.defineProperty(g,"NullVector",{enumerable:!0,get:function(){return te.NullVector}});Object.defineProperty(g,"StructVector",{enumerable:!0,get:function(){return te.StructVector}});Object.defineProperty(g,"TimestampVector",{enumerable:!0,get:function(){return te.TimestampVector}});Object.defineProperty(g,"TimestampSecondVector",{enumerable:!0,get:function(){return te.TimestampSecondVector}});Object.defineProperty(g,"TimestampMillisecondVector",{enumerable:!0,get:function(){return te.TimestampMillisecondVector}});Object.defineProperty(g,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return te.TimestampMicrosecondVector}});Object.defineProperty(g,"TimestampNanosecondVector",{enumerable:!0,get:function(){return te.TimestampNanosecondVector}});Object.defineProperty(g,"TimeVector",{enumerable:!0,get:function(){return te.TimeVector}});Object.defineProperty(g,"TimeSecondVector",{enumerable:!0,get:function(){return te.TimeSecondVector}});Object.defineProperty(g,"TimeMillisecondVector",{enumerable:!0,get:function(){return te.TimeMillisecondVector}});Object.defineProperty(g,"TimeMicrosecondVector",{enumerable:!0,get:function(){return te.TimeMicrosecondVector}});Object.defineProperty(g,"TimeNanosecondVector",{enumerable:!0,get:function(){return te.TimeNanosecondVector}});Object.defineProperty(g,"UnionVector",{enumerable:!0,get:function(){return te.UnionVector}});Object.defineProperty(g,"DenseUnionVector",{enumerable:!0,get:function(){return te.DenseUnionVector}});Object.defineProperty(g,"SparseUnionVector",{enumerable:!0,get:function(){return te.SparseUnionVector}});Object.defineProperty(g,"Utf8Vector",{enumerable:!0,get:function(){return te.Utf8Vector}});var oe=la();Object.defineProperty(g,"Builder",{enumerable:!0,get:function(){return oe.Builder}});Object.defineProperty(g,"BinaryBuilder",{enumerable:!0,get:function(){return oe.BinaryBuilder}});Object.defineProperty(g,"BoolBuilder",{enumerable:!0,get:function(){return oe.BoolBuilder}});Object.defineProperty(g,"DateBuilder",{enumerable:!0,get:function(){return oe.DateBuilder}});Object.defineProperty(g,"DateDayBuilder",{enumerable:!0,get:function(){return oe.DateDayBuilder}});Object.defineProperty(g,"DateMillisecondBuilder",{enumerable:!0,get:function(){return oe.DateMillisecondBuilder}});Object.defineProperty(g,"DecimalBuilder",{enumerable:!0,get:function(){return oe.DecimalBuilder}});Object.defineProperty(g,"DictionaryBuilder",{enumerable:!0,get:function(){return oe.DictionaryBuilder}});Object.defineProperty(g,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return oe.FixedSizeBinaryBuilder}});Object.defineProperty(g,"FixedSizeListBuilder",{enumerable:!0,get:function(){return oe.FixedSizeListBuilder}});Object.defineProperty(g,"FloatBuilder",{enumerable:!0,get:function(){return oe.FloatBuilder}});Object.defineProperty(g,"Float16Builder",{enumerable:!0,get:function(){return oe.Float16Builder}});Object.defineProperty(g,"Float32Builder",{enumerable:!0,get:function(){return oe.Float32Builder}});Object.defineProperty(g,"Float64Builder",{enumerable:!0,get:function(){return oe.Float64Builder}});Object.defineProperty(g,"IntervalBuilder",{enumerable:!0,get:function(){return oe.IntervalBuilder}});Object.defineProperty(g,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return oe.IntervalDayTimeBuilder}});Object.defineProperty(g,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return oe.IntervalYearMonthBuilder}});Object.defineProperty(g,"IntBuilder",{enumerable:!0,get:function(){return oe.IntBuilder}});Object.defineProperty(g,"Int8Builder",{enumerable:!0,get:function(){return oe.Int8Builder}});Object.defineProperty(g,"Int16Builder",{enumerable:!0,get:function(){return oe.Int16Builder}});Object.defineProperty(g,"Int32Builder",{enumerable:!0,get:function(){return oe.Int32Builder}});Object.defineProperty(g,"Int64Builder",{enumerable:!0,get:function(){return oe.Int64Builder}});Object.defineProperty(g,"Uint8Builder",{enumerable:!0,get:function(){return oe.Uint8Builder}});Object.defineProperty(g,"Uint16Builder",{enumerable:!0,get:function(){return oe.Uint16Builder}});Object.defineProperty(g,"Uint32Builder",{enumerable:!0,get:function(){return oe.Uint32Builder}});Object.defineProperty(g,"Uint64Builder",{enumerable:!0,get:function(){return oe.Uint64Builder}});Object.defineProperty(g,"ListBuilder",{enumerable:!0,get:function(){return oe.ListBuilder}});Object.defineProperty(g,"MapBuilder",{enumerable:!0,get:function(){return oe.MapBuilder}});Object.defineProperty(g,"NullBuilder",{enumerable:!0,get:function(){return oe.NullBuilder}});Object.defineProperty(g,"StructBuilder",{enumerable:!0,get:function(){return oe.StructBuilder}});Object.defineProperty(g,"TimestampBuilder",{enumerable:!0,get:function(){return oe.TimestampBuilder}});Object.defineProperty(g,"TimestampSecondBuilder",{enumerable:!0,get:function(){return oe.TimestampSecondBuilder}});Object.defineProperty(g,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return oe.TimestampMillisecondBuilder}});Object.defineProperty(g,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return oe.TimestampMicrosecondBuilder}});Object.defineProperty(g,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return oe.TimestampNanosecondBuilder}});Object.defineProperty(g,"TimeBuilder",{enumerable:!0,get:function(){return oe.TimeBuilder}});Object.defineProperty(g,"TimeSecondBuilder",{enumerable:!0,get:function(){return oe.TimeSecondBuilder}});Object.defineProperty(g,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return oe.TimeMillisecondBuilder}});Object.defineProperty(g,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return oe.TimeMicrosecondBuilder}});Object.defineProperty(g,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return oe.TimeNanosecondBuilder}});Object.defineProperty(g,"UnionBuilder",{enumerable:!0,get:function(){return oe.UnionBuilder}});Object.defineProperty(g,"DenseUnionBuilder",{enumerable:!0,get:function(){return oe.DenseUnionBuilder}});Object.defineProperty(g,"SparseUnionBuilder",{enumerable:!0,get:function(){return oe.SparseUnionBuilder}});Object.defineProperty(g,"Utf8Builder",{enumerable:!0,get:function(){return oe.Utf8Builder}});var $d=ar();Object.defineProperty(g,"ByteStream",{enumerable:!0,get:function(){return $d.ByteStream}});Object.defineProperty(g,"AsyncByteStream",{enumerable:!0,get:function(){return $d.AsyncByteStream}});Object.defineProperty(g,"AsyncByteQueue",{enumerable:!0,get:function(){return $d.AsyncByteQueue}});var Qs=Hs();Object.defineProperty(g,"RecordBatchReader",{enumerable:!0,get:function(){return Qs.RecordBatchReader}});Object.defineProperty(g,"RecordBatchFileReader",{enumerable:!0,get:function(){return Qs.RecordBatchFileReader}});Object.defineProperty(g,"RecordBatchStreamReader",{enumerable:!0,get:function(){return Qs.RecordBatchStreamReader}});Object.defineProperty(g,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return Qs.AsyncRecordBatchFileReader}});Object.defineProperty(g,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return Qs.AsyncRecordBatchStreamReader}});var yu=ka();Object.defineProperty(g,"RecordBatchWriter",{enumerable:!0,get:function(){return yu.RecordBatchWriter}});Object.defineProperty(g,"RecordBatchFileWriter",{enumerable:!0,get:function(){return yu.RecordBatchFileWriter}});Object.defineProperty(g,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return yu.RecordBatchStreamWriter}});Object.defineProperty(g,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return yu.RecordBatchJSONWriter}});var Gd=Ia();Object.defineProperty(g,"MessageReader",{enumerable:!0,get:function(){return Gd.MessageReader}});Object.defineProperty(g,"AsyncMessageReader",{enumerable:!0,get:function(){return Gd.AsyncMessageReader}});Object.defineProperty(g,"JSONMessageReader",{enumerable:!0,get:function(){return Gd.JSONMessageReader}});var HU=$r();Object.defineProperty(g,"Message",{enumerable:!0,get:function(){return HU.Message}});var YU=ki();Object.defineProperty(g,"RecordBatch",{enumerable:!0,get:function(){return YU.RecordBatch}});var Jd=Kv();Object.defineProperty(g,"DataFrame",{enumerable:!0,get:function(){return Jd.DataFrame}});Object.defineProperty(g,"FilteredDataFrame",{enumerable:!0,get:function(){return Jd.FilteredDataFrame}});Object.defineProperty(g,"CountByResult",{enumerable:!0,get:function(){return Jd.CountByResult}});var $U=vs(),GU=tl(),JU=si(),KU=_s(),ZU=Ge(),XU=As(),QU=Wd();g.predicate=QU;var Kd=gl();g.util=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$U),GU),JU),KU),ZU),XU),{compareSchemas:Kd.compareSchemas,compareFields:Kd.compareFields,compareTypes:Kd.compareTypes});var eV=Wr();Object.defineProperty(g,"isTypedArray",{enumerable:!0,get:function(){return eV.isTypedArray}})});var wu=C(()=>{});var nf=C(()=>{});var uV={};zy(uV,{BROWSER_RUNTIME:()=>yt,ConsoleLogger:()=>sj,DEFAULT_RUNTIME:()=>aj,DuckDB:()=>lj,DuckDBBindingsBase:()=>ju,DuckDBConnection:()=>bu,DuckDBDataProtocol:()=>lt,DuckDBFeature:()=>ef,FileStatistics:()=>vu,InsertMode:()=>rf,JSONTableShape:()=>tf,LogEvent:()=>Pi,LogLevel:()=>Ir,LogOrigin:()=>Tr,LogTopic:()=>en,PreparedStatement:()=>Qd,ResultStreamIterator:()=>gu,StatusCode:()=>ge,VoidLogger:()=>nj,arrow:()=>Zd,callSRet:()=>we,copyBuffer:()=>tn,decodeText:()=>oj,dropResponseBuffers:()=>Pe,failWith:()=>ji,getLogEventLabel:()=>iV,getLogLevelLabel:()=>tV,getLogOriginLabel:()=>nV,getLogTopicLabel:()=>rV,readString:()=>fe});var Zd={};zy(Zd,{AsyncByteQueue:()=>_.AsyncByteQueue,AsyncByteStream:()=>_.AsyncByteStream,AsyncMessageReader:()=>_.AsyncMessageReader,AsyncRecordBatchFileReader:()=>_.AsyncRecordBatchFileReader,AsyncRecordBatchStreamReader:()=>_.AsyncRecordBatchStreamReader,BaseVector:()=>_.BaseVector,Binary:()=>_.Binary,BinaryBuilder:()=>_.BinaryBuilder,BinaryVector:()=>_.BinaryVector,Bool:()=>_.Bool,BoolBuilder:()=>_.BoolBuilder,BoolVector:()=>_.BoolVector,BufferType:()=>_.BufferType,Builder:()=>_.Builder,ByteStream:()=>_.ByteStream,Chunked:()=>_.Chunked,Column:()=>_.Column,CountByResult:()=>_.CountByResult,Data:()=>_.Data,DataFrame:()=>_.DataFrame,DataType:()=>_.DataType,DateBuilder:()=>_.DateBuilder,DateDay:()=>_.DateDay,DateDayBuilder:()=>_.DateDayBuilder,DateDayVector:()=>_.DateDayVector,DateMillisecond:()=>_.DateMillisecond,DateMillisecondBuilder:()=>_.DateMillisecondBuilder,DateMillisecondVector:()=>_.DateMillisecondVector,DateUnit:()=>_.DateUnit,DateVector:()=>_.DateVector,Date_:()=>_.Date_,Decimal:()=>_.Decimal,DecimalBuilder:()=>_.DecimalBuilder,DecimalVector:()=>_.DecimalVector,DenseUnion:()=>_.DenseUnion,DenseUnionBuilder:()=>_.DenseUnionBuilder,DenseUnionVector:()=>_.DenseUnionVector,Dictionary:()=>_.Dictionary,DictionaryBuilder:()=>_.DictionaryBuilder,DictionaryVector:()=>_.DictionaryVector,Field:()=>_.Field,FilteredDataFrame:()=>_.FilteredDataFrame,FixedSizeBinary:()=>_.FixedSizeBinary,FixedSizeBinaryBuilder:()=>_.FixedSizeBinaryBuilder,FixedSizeBinaryVector:()=>_.FixedSizeBinaryVector,FixedSizeList:()=>_.FixedSizeList,FixedSizeListBuilder:()=>_.FixedSizeListBuilder,FixedSizeListVector:()=>_.FixedSizeListVector,Float:()=>_.Float,Float16:()=>_.Float16,Float16Builder:()=>_.Float16Builder,Float16Vector:()=>_.Float16Vector,Float32:()=>_.Float32,Float32Builder:()=>_.Float32Builder,Float32Vector:()=>_.Float32Vector,Float64:()=>_.Float64,Float64Builder:()=>_.Float64Builder,Float64Vector:()=>_.Float64Vector,FloatBuilder:()=>_.FloatBuilder,FloatVector:()=>_.FloatVector,Int:()=>_.Int,Int16:()=>_.Int16,Int16Builder:()=>_.Int16Builder,Int16Vector:()=>_.Int16Vector,Int32:()=>_.Int32,Int32Builder:()=>_.Int32Builder,Int32Vector:()=>_.Int32Vector,Int64:()=>_.Int64,Int64Builder:()=>_.Int64Builder,Int64Vector:()=>_.Int64Vector,Int8:()=>_.Int8,Int8Builder:()=>_.Int8Builder,Int8Vector:()=>_.Int8Vector,IntBuilder:()=>_.IntBuilder,IntVector:()=>_.IntVector,Interval:()=>_.Interval,IntervalBuilder:()=>_.IntervalBuilder,IntervalDayTime:()=>_.IntervalDayTime,IntervalDayTimeBuilder:()=>_.IntervalDayTimeBuilder,IntervalDayTimeVector:()=>_.IntervalDayTimeVector,IntervalUnit:()=>_.IntervalUnit,IntervalVector:()=>_.IntervalVector,IntervalYearMonth:()=>_.IntervalYearMonth,IntervalYearMonthBuilder:()=>_.IntervalYearMonthBuilder,IntervalYearMonthVector:()=>_.IntervalYearMonthVector,JSONMessageReader:()=>_.JSONMessageReader,List:()=>_.List,ListBuilder:()=>_.ListBuilder,ListVector:()=>_.ListVector,MapBuilder:()=>_.MapBuilder,MapVector:()=>_.MapVector,Map_:()=>_.Map_,Message:()=>_.Message,MessageHeader:()=>_.MessageHeader,MessageReader:()=>_.MessageReader,MetadataVersion:()=>_.MetadataVersion,Null:()=>_.Null,NullBuilder:()=>_.NullBuilder,NullVector:()=>_.NullVector,Precision:()=>_.Precision,RecordBatch:()=>_.RecordBatch,RecordBatchFileReader:()=>_.RecordBatchFileReader,RecordBatchFileWriter:()=>_.RecordBatchFileWriter,RecordBatchJSONWriter:()=>_.RecordBatchJSONWriter,RecordBatchReader:()=>_.RecordBatchReader,RecordBatchStreamReader:()=>_.RecordBatchStreamReader,RecordBatchStreamWriter:()=>_.RecordBatchStreamWriter,RecordBatchWriter:()=>_.RecordBatchWriter,Schema:()=>_.Schema,SparseUnion:()=>_.SparseUnion,SparseUnionBuilder:()=>_.SparseUnionBuilder,SparseUnionVector:()=>_.SparseUnionVector,Struct:()=>_.Struct,StructBuilder:()=>_.StructBuilder,StructVector:()=>_.StructVector,Table:()=>_.Table,Time:()=>_.Time,TimeBuilder:()=>_.TimeBuilder,TimeMicrosecond:()=>_.TimeMicrosecond,TimeMicrosecondBuilder:()=>_.TimeMicrosecondBuilder,TimeMicrosecondVector:()=>_.TimeMicrosecondVector,TimeMillisecond:()=>_.TimeMillisecond,TimeMillisecondBuilder:()=>_.TimeMillisecondBuilder,TimeMillisecondVector:()=>_.TimeMillisecondVector,TimeNanosecond:()=>_.TimeNanosecond,TimeNanosecondBuilder:()=>_.TimeNanosecondBuilder,TimeNanosecondVector:()=>_.TimeNanosecondVector,TimeSecond:()=>_.TimeSecond,TimeSecondBuilder:()=>_.TimeSecondBuilder,TimeSecondVector:()=>_.TimeSecondVector,TimeUnit:()=>_.TimeUnit,TimeVector:()=>_.TimeVector,Timestamp:()=>_.Timestamp,TimestampBuilder:()=>_.TimestampBuilder,TimestampMicrosecond:()=>_.TimestampMicrosecond,TimestampMicrosecondBuilder:()=>_.TimestampMicrosecondBuilder,TimestampMicrosecondVector:()=>_.TimestampMicrosecondVector,TimestampMillisecond:()=>_.TimestampMillisecond,TimestampMillisecondBuilder:()=>_.TimestampMillisecondBuilder,TimestampMillisecondVector:()=>_.TimestampMillisecondVector,TimestampNanosecond:()=>_.TimestampNanosecond,TimestampNanosecondBuilder:()=>_.TimestampNanosecondBuilder,TimestampNanosecondVector:()=>_.TimestampNanosecondVector,TimestampSecond:()=>_.TimestampSecond,TimestampSecondBuilder:()=>_.TimestampSecondBuilder,TimestampSecondVector:()=>_.TimestampSecondVector,TimestampVector:()=>_.TimestampVector,Type:()=>_.Type,Uint16:()=>_.Uint16,Uint16Builder:()=>_.Uint16Builder,Uint16Vector:()=>_.Uint16Vector,Uint32:()=>_.Uint32,Uint32Builder:()=>_.Uint32Builder,Uint32Vector:()=>_.Uint32Vector,Uint64:()=>_.Uint64,Uint64Builder:()=>_.Uint64Builder,Uint64Vector:()=>_.Uint64Vector,Uint8:()=>_.Uint8,Uint8Builder:()=>_.Uint8Builder,Uint8Vector:()=>_.Uint8Vector,Union:()=>_.Union,UnionBuilder:()=>_.UnionBuilder,UnionMode:()=>_.UnionMode,UnionVector:()=>_.UnionVector,Utf8:()=>_.Utf8,Utf8Builder:()=>_.Utf8Builder,Utf8Vector:()=>_.Utf8Vector,Vector:()=>_.Vector,Visitor:()=>_.Visitor,isTypedArray:()=>_.isTypedArray,predicate:()=>_.predicate,util:()=>_.util});var ej=Bi(ps()),tj=Bi(la()),os=Bi(Hs()),as=Bi(ka()),ij=Bi(Pv()),rj=Bi(qv()),_u=Bi(zv()),mu=Bi(Wv()),_=Bi(Qv());ej.default.toDOMStream=ij.toDOMStream;tj.Builder.throughDOM=rj.builderThroughDOMStream;os.RecordBatchReader.throughDOM=_u.recordBatchReaderThroughDOMStream;os.RecordBatchFileReader.throughDOM=_u.recordBatchReaderThroughDOMStream;os.RecordBatchStreamReader.throughDOM=_u.recordBatchReaderThroughDOMStream;as.RecordBatchWriter.throughDOM=mu.recordBatchWriterThroughDOMStream;as.RecordBatchFileWriter.throughDOM=mu.recordBatchWriterThroughDOMStream;as.RecordBatchStreamWriter.throughDOM=mu.recordBatchWriterThroughDOMStream;var Ir;(function(s){s[s.NONE=0]="NONE",s[s.DEBUG=1]="DEBUG",s[s.INFO=2]="INFO",s[s.WARNING=3]="WARNING",s[s.ERROR=4]="ERROR"})(Ir||(Ir={}));var en;(function(s){s[s.NONE=0]="NONE",s[s.CONNECT=1]="CONNECT",s[s.DISCONNECT=2]="DISCONNECT",s[s.OPEN=3]="OPEN",s[s.QUERY=4]="QUERY"})(en||(en={}));var Pi;(function(u){u[u.NONE=0]="NONE",u[u.OK=1]="OK",u[u.ERROR=2]="ERROR",u[u.START=3]="START",u[u.RUN=4]="RUN",u[u.CAPTURE=5]="CAPTURE"})(Pi||(Pi={}));var Tr;(function(s){s[s.NONE=0]="NONE",s[s.WEB_WORKER=1]="WEB_WORKER",s[s.NODE_WORKER=2]="NODE_WORKER",s[s.BINDINGS=3]="BINDINGS",s[s.ASYNC_DUCKDB=4]="ASYNC_DUCKDB"})(Tr||(Tr={}));var nj=class{log(e){}},sj=class{log(e){console.log(e)}};function tV(i){switch(i){case 0:return"NONE";case 1:return"DEBUG";case 2:return"INFO";case 3:return"WARNING";case 4:return"ERROR";default:return"?"}}function iV(i){switch(i){case 0:return"NONE";case 1:return"OK";case 2:return"ERROR";case 3:return"START";case 4:return"RUN";case 5:return"CAPTURE";default:return"?"}}function rV(i){switch(i){case 1:return"CONNECT";case 2:return"DISCONNECT";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function nV(i){switch(i){case 0:return"NONE";case 1:return"WEB WORKER";case 2:return"NODE WORKER";case 3:return"DUCKDB BINDINGS";case 4:return"DUCKDB";default:return"?"}}var ge;(function(e){e[e.SUCCESS=0]="SUCCESS"})(ge||(ge={}));var Xd=class extends _.AsyncByteQueue{flush(){let e=super.toUint8Array(!0);return this._values.length=0,e}};var bu=class{constructor(e,t){this._bindings=e,this._conn=t}close(){this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}query(e){let t=this._bindings.runQuery(this._conn,e),r=_.RecordBatchReader.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),_.Table.from(r)}send(e){let t=this._bindings.sendQuery(this._conn,e),r=new gu(this._bindings,this._conn,t),n=_.RecordBatchReader.from(r);return console.assert(n.isSync()),console.assert(n.isStream()),n}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new Qd(this._bindings,this._conn,t)}insertArrowVectors(e,t){this.insertArrowTable(_.Table.new(e),t)}insertArrowTable(e,t){e.schema.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually"),this.insertArrowBatches(e.schema,e.chunks,t)}insertArrowBatches(e,t,r){e.fields.length==0&&console.warn("The schema is empty! If you used arrow.Table.from, consider constructing schema and batches manually");let n=new Xd,s=new _.RecordBatchStreamWriter().reset(n,e),u=!0;for(let m of t)u||this._bindings.insertArrowFromIPCStream(this._conn,n.flush(),r),u=!1,s.write(m);s.finish(),this._bindings.insertArrowFromIPCStream(this._conn,n.flush(),r)}insertArrowFromIPCStream(e,t){this._bindings.insertArrowFromIPCStream(this._conn,e,t)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}},gu=class{constructor(e,t,r){this.bindings=e;this.conn=t;this.header=r;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=e.length==0,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},Qd=class{constructor(e,t,r){this.bindings=e,this.connectionId=t,this.statementId=r}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...e){let t=this.bindings.runPrepared(this.connectionId,this.statementId,e),r=_.RecordBatchReader.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),_.Table.from(r)}send(...e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),r=new gu(this.bindings,this.connectionId,t),n=_.RecordBatchReader.from(r);return console.assert(n.isSync()),console.assert(n.isStream()),n}};function sV(){let i=new TextDecoder;return e=>(typeof SharedArrayBuffer!="undefined"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),i.decode(e))}var oj=sV();function ji(i,e){i.ccall("duckdb_web_fail_with",null,["string"],[e])}function tn(i,e,t){let r=i.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(r.byteLength));return n.set(r),n}function fe(i,e,t){return oj(i.HEAPU8.subarray(e,e+t))}var lt;(function(r){r[r.BUFFER=0]="BUFFER",r[r.NATIVE=1]="NATIVE",r[r.HTTP=3]="HTTP"})(lt||(lt={}));function we(i,e,t,r){let n=i.stackSave(),s=i.stackAlloc(3*8);t.unshift("number"),r.unshift(s),i.ccall(e,null,t,r);let u=i.HEAPF64[(s>>3)+0],m=i.HEAPF64[(s>>3)+1],j=i.HEAPF64[(s>>3)+2];return i.stackRestore(n),[u,m,j]}function Pe(i){i.ccall("duckdb_web_clear_response",null,[],[])}var aj={testPlatformFeature:(i,e)=>!1,openFile:(i,e)=>{},syncFile:(i,e)=>{},closeFile:(i,e)=>{},getLastFileModificationTime:(i,e)=>0,truncateFile:(i,e,t)=>{},readFile:(i,e,t,r,n)=>0,writeFile:(i,e,t,r,n)=>0,removeDirectory:(i,e,t)=>{},checkDirectory:(i,e,t)=>!1,createDirectory:(i,e,t)=>{},listDirectoryEntries:(i,e,t)=>!1,glob:(i,e,t)=>{},moveFile:(i,e,t,r,n)=>{},checkFile:(i,e,t)=>!1,removeFile:(i,e,t)=>{}};var vu=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),r=new Uint8Array(new ArrayBuffer(e.byteLength));r.set(e.subarray(7*8)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=r}getBlockStats(e,t){return t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},t.file_writes=this.blockStats[e*3+0]&15,t.file_reads_cold=this.blockStats[e*3+0]>>4,t.file_reads_ahead=this.blockStats[e*3+1]&15,t.file_reads_cached=this.blockStats[e*3+1]>>4,t.page_accesses=this.blockStats[e*3+1]&15,t.page_loads=this.blockStats[e*3+1]>>4,t}};function eo(i,e){switch(e.typeId){case _.Type.Binary:return{name:i,type:"binary"};case _.Type.Bool:return{name:i,type:"bool"};case _.Type.Date:return{name:i,type:"date"};case _.Type.DateDay:return{name:i,type:"date32[d]"};case _.Type.DateMillisecond:return{name:i,type:"date64[ms]"};case _.Type.Decimal:{let t=e;return{name:i,type:"decimal",precision:t.precision,scale:t.scale}}case _.Type.Float:return{name:i,type:"float"};case _.Type.Float16:return{name:i,type:"float16"};case _.Type.Float32:return{name:i,type:"float32"};case _.Type.Float64:return{name:i,type:"float64"};case _.Type.Int:return{name:i,type:"int32"};case _.Type.Int16:return{name:i,type:"int16"};case _.Type.Int32:return{name:i,type:"int32"};case _.Type.Int64:return{name:i,type:"int64"};case _.Type.Uint16:return{name:i,type:"uint16"};case _.Type.Uint32:return{name:i,type:"uint32"};case _.Type.Uint64:return{name:i,type:"uint64"};case _.Type.Uint8:return{name:i,type:"uint8"};case _.Type.IntervalDayTime:return{name:i,type:"interval[dt]"};case _.Type.IntervalYearMonth:return{name:i,type:"interval[m]"};case _.Type.List:{let t=e;return{name:i,type:"list",children:[eo(t.valueField.name,t.valueField.type)]}}case _.Type.FixedSizeBinary:return{name:i,type:"fixedsizebinary",byteWidth:e.byteWidth};case _.Type.Null:return{name:i,type:"null"};case _.Type.Utf8:return{name:i,type:"utf8"};case _.Type.Struct:return{name:i,type:"struct",children:e.children.map(r=>eo(r.name,r.type))};case _.Type.Time:return{name:i,type:"time[s]"};case _.Type.TimeMicrosecond:return{name:i,type:"time[us]"};case _.Type.TimeMillisecond:return{name:i,type:"time[ms]"};case _.Type.TimeNanosecond:return{name:i,type:"time[ns]"};case _.Type.TimeSecond:return{name:i,type:"time[s]"};case _.Type.Timestamp:return{name:i,type:"timestamp",timezone:e.timezone||void 0};case _.Type.TimestampSecond:return{name:i,type:"timestamp[s]",timezone:e.timezone||void 0};case _.Type.TimestampMicrosecond:return{name:i,type:"timestamp[us]",timezone:e.timezone||void 0};case _.Type.TimestampNanosecond:return{name:i,type:"timestamp[ns]",timezone:e.timezone||void 0};case _.Type.TimestampMillisecond:return{name:i,type:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error(`unsupported arrow type: ${e.toString()}`)}var oV=new TextEncoder,ef;(function(s){s[s.WASM_EXCEPTIONS=1]="WASM_EXCEPTIONS",s[s.WASM_THREADS=2]="WASM_THREADS",s[s.WASM_SIMD=4]="WASM_SIMD",s[s.WASM_BULK_MEMORY=8]="WASM_BULK_MEMORY",s[s.EMIT_BIGINT=16]="EMIT_BIGINT"})(ef||(ef={}));var ju=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this._logger=e,this._runtime=t}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(){return this._instance!=null?this:(this._initPromise!=null&&await this._initPromise,this._initPromise=new Promise(e=>{this._initPromiseResolver=e}),this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this)}open(e){let[t,r,n]=we(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==ge.SUCCESS)throw new Error(fe(this.mod,r,n));Pe(this.mod)}reset(){let[e,t,r]=we(this.mod,"duckdb_web_reset",[],[]);if(e!==ge.SUCCESS)throw new Error(fe(this.mod,t,r));Pe(this.mod)}getVersion(){let[e,t,r]=we(this.mod,"duckdb_web_get_version",[],[]);if(e!==ge.SUCCESS)throw new Error(fe(this.mod,t,r));let n=fe(this.mod,t,r);return Pe(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,r,n]=we(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==ge.SUCCESS)throw new Error(fe(this.mod,r,n));let s=fe(this.mod,r,n);return Pe(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new bu(this,e)}disconnect(e){this.mod.ccall("duckdb_web_disconnect",null,["number"],[e])}runQuery(e,t){let[r,n,s]=we(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(r!==ge.SUCCESS)throw new Error(fe(this.mod,n,s));let u=tn(this.mod,n,s);return Pe(this.mod),u}sendQuery(e,t){let[r,n,s]=we(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(r!==ge.SUCCESS)throw new Error(fe(this.mod,n,s));let u=tn(this.mod,n,s);return Pe(this.mod),u}fetchQueryResults(e){let[t,r,n]=we(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==ge.SUCCESS)throw new Error(fe(this.mod,r,n));let s=tn(this.mod,r,n);return Pe(this.mod),s}createPrepared(e,t){let[r,n,s]=we(this.mod,"duckdb_web_prepared_create",["number","string"],[e,t]);if(r!==ge.SUCCESS)throw new Error(fe(this.mod,n,s));return Pe(this.mod),n}closePrepared(e,t){let[r,n,s]=we(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(r!==ge.SUCCESS)throw new Error(fe(this.mod,n,s));Pe(this.mod)}runPrepared(e,t,r){let[n,s,u]=we(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(r)]);if(n!==ge.SUCCESS)throw new Error(fe(this.mod,s,u));let m=tn(this.mod,s,u);return Pe(this.mod),m}sendPrepared(e,t,r){let[n,s,u]=we(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(r)]);if(n!==ge.SUCCESS)throw new Error(fe(this.mod,s,u));let m=tn(this.mod,s,u);return Pe(this.mod),m}insertArrowFromIPCStream(e,t,r){let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let u=r?JSON.stringify(r):"",[m,j,S]=we(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,u]);if(m!==ge.SUCCESS)throw new Error(fe(this.mod,j,S))}insertCSVFromPath(e,t,r){if(r.columns!==void 0){r.columnsFlat=[];for(let S in r.columns)r.columnsFlat.push(eo(S,r.columns[S]))}let n={...r};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,m,j]=we(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,s]);if(u!==ge.SUCCESS)throw new Error(fe(this.mod,m,j))}insertJSONFromPath(e,t,r){if(r.columns!==void 0){r.columnsFlat=[];for(let S in r.columns)r.columnsFlat.push(eo(S,r.columns[S]))}let n={...r};n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,m,j]=we(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,s]);if(u!==ge.SUCCESS)throw new Error(fe(this.mod,m,j))}globFiles(e){let[t,r,n]=we(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[e]);if(t!==ge.SUCCESS)throw new Error(fe(this.mod,r,n));let s=fe(this.mod,r,n);Pe(this.mod);let u=JSON.parse(s);return u??[]}registerFileURL(e,t){t===void 0&&(t=e);let[r,n,s]=we(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t]);if(r!==ge.SUCCESS)throw new Error(fe(this.mod,n,s));Pe(this.mod)}registerFileText(e,t){let r=oV.encode(t);this.registerFileBuffer(e,r)}registerFileBuffer(e,t){let r=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(r,r+t.length).set(t);let[s,u,m]=we(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,r,t.length]);if(s!==ge.SUCCESS)throw new Error(fe(this.mod,u,m));Pe(this.mod)}registerFileHandle(e,t){let[r,n,s]=we(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,e]);if(r!==ge.SUCCESS)throw new Error(fe(this.mod,n,s));if(Pe(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let u of this.pthread.runningWorkers)u.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let u of this.pthread.unusedWorkers)u.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){return this.mod.ccall("duckdb_web_fs_drop_file","boolean",["string"],[e])}dropFiles(){let[e,t,r]=we(this.mod,"duckdb_web_fs_drop_files",[],[]);if(e!==ge.SUCCESS)throw new Error(fe(this.mod,t,r));Pe(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[r,n,s]=we(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(r!==ge.SUCCESS)throw new Error(fe(this.mod,n,s));Pe(this.mod)}copyFileToBuffer(e){let[t,r,n]=we(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==ge.SUCCESS)throw new Error(fe(this.mod,r,n));let s=this.mod.HEAPU8.subarray(r,r+n),u=new Uint8Array(s.length);return u.set(s),Pe(this.mod),u}collectFileStatistics(e,t){let[r,n,s]=we(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(r!==ge.SUCCESS)throw new Error(fe(this.mod,n,s))}exportFileStatistics(e){let[t,r,n]=we(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==ge.SUCCESS)throw new Error(fe(this.mod,r,n));return new vu(this.mod.HEAPU8.subarray(r,r+n))}};var tf;(function(t){t.ROW_ARRAY="row-array",t.COLUMN_OBJECT="column-object"})(tf||(tf={}));var rf;(function(t){t[t.APPEND=0]="APPEND",t[t.IMPORT=1]="IMPORT"})(rf||(rf={}));var cj={},aV=function(){var i=cj.url;return function(e){e=e||{};var t=typeof e!="undefined"?e:{},r,n;t.ready=new Promise(function(o,a){r=o,n=a});var s={},u;for(u in t)t.hasOwnProperty(u)&&(s[u]=t[u]);var m=[],j="./this.program",S=function(o,a){throw a},A=typeof window=="object",P=typeof importScripts=="function",q=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",J="";function Ce(o){return t.locateFile?t.locateFile(o,J):J+o}var Te,qt,dt,us;function dj(o){if(!(o instanceof po)){var a=o;Sr("exiting due to exception: "+a)}}var rn,nn;q?(P?J=wu().dirname(J)+"/":J=__dirname+"/",Te=function(a,c){return rn||(rn=nf()),nn||(nn=wu()),a=nn.normalize(a),rn.readFileSync(a,c?null:"utf8")},dt=function(a){var c=Te(a,!0);return c.buffer||(c=new Uint8Array(c)),af(c.buffer),c},qt=function(a,c,l){rn||(rn=nf()),nn||(nn=wu()),a=nn.normalize(a),rn.readFile(a,function(d,f){d?l(d):c(f.buffer)})},process.argv.length>1&&(j=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),process.on("uncaughtException",function(o){if(!(o instanceof po))throw o}),process.on("unhandledRejection",function(o){throw o}),S=function(o,a){if(Iu())throw process.exitCode=o,a;dj(a),process.exit(o)},t.inspect=function(){return"[Emscripten Module object]"}):(A||P)&&(P?J=self.location.href:typeof document!="undefined"&&document.currentScript&&(J=document.currentScript.src),i&&(J=i),J.indexOf("blob:")!==0?J=J.substr(0,J.replace(/[?#].*/,"").lastIndexOf("/")+1):J="",Te=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.send(null),a.responseText},P&&(dt=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.responseType="arraybuffer",a.send(null),new Uint8Array(a.response)}),qt=function(o,a,c){var l=new XMLHttpRequest;l.open("GET",o,!0),l.responseType="arraybuffer",l.onload=function(){if(l.status==200||l.status==0&&l.response){a(l.response);return}c()},l.onerror=c,l.send(null)},us=function(o){document.title=o});var fj=t.print||console.log.bind(console),Sr=t.printErr||console.warn.bind(console);for(u in s)s.hasOwnProperty(u)&&(t[u]=s[u]);s=null,t.arguments&&(m=t.arguments),t.thisProgram&&(j=t.thisProgram),t.quit&&(S=t.quit);var of=0,it=function(o){of=o},hj=function(){return of},cs;t.wasmBinary&&(cs=t.wasmBinary);var pj=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Qt("no native wasm support detected");var to,Bu=!1,io;function af(o,a){o||Qt("Assertion failed: "+a)}function yj(o){var a=t["_"+o];return af(a,"Cannot call unknown function "+o+", make sure it is exported"),a}function _j(o,a,c,l,d){var f={string:function(E){var ne=0;if(E!=null&&E!==0){var ye=(E.length<<2)+1;ne=Ou(ye),mj(E,ne,ye)}return ne},array:function(E){var ne=Ou(E.length);return df(E,ne),ne}};function h(E){return a==="string"?ro(E):a==="boolean"?Boolean(E):E}var p=yj(o),y=[],b=0;if(l)for(var v=0;v<l.length;v++){var w=f[c[v]];w?(b===0&&(b=B()),y[v]=w(l[v])):y[v]=l[v]}var D=p.apply(null,y);function M(E){return b!==0&&I(b),h(E)}return D=M(D),D}var uf=typeof TextDecoder!="undefined"?new TextDecoder("utf8"):void 0;function cf(o,a,c){for(var l=a+c,d=a;o[d]&&!(d>=l);)++d;if(d-a>16&&o.subarray&&uf)return uf.decode(o.subarray(a,d));for(var f="";a<d;){var h=o[a++];if(!(h&128)){f+=String.fromCharCode(h);continue}var p=o[a++]&63;if((h&224)==192){f+=String.fromCharCode((h&31)<<6|p);continue}var y=o[a++]&63;if((h&240)==224?h=(h&15)<<12|p<<6|y:h=(h&7)<<18|p<<12|y<<6|o[a++]&63,h<65536)f+=String.fromCharCode(h);else{var b=h-65536;f+=String.fromCharCode(55296|b>>10,56320|b&1023)}}return f}function ro(o,a){return o?cf(sn,o,a):""}function lf(o,a,c,l){if(!(l>0))return 0;for(var d=c,f=c+l-1,h=0;h<o.length;++h){var p=o.charCodeAt(h);if(p>=55296&&p<=57343){var y=o.charCodeAt(++h);p=65536+((p&1023)<<10)|y&1023}if(p<=127){if(c>=f)break;a[c++]=p}else if(p<=2047){if(c+1>=f)break;a[c++]=192|p>>6,a[c++]=128|p&63}else if(p<=65535){if(c+2>=f)break;a[c++]=224|p>>12,a[c++]=128|p>>6&63,a[c++]=128|p&63}else{if(c+3>=f)break;a[c++]=240|p>>18,a[c++]=128|p>>12&63,a[c++]=128|p>>6&63,a[c++]=128|p&63}}return a[c]=0,c-d}function mj(o,a,c){return lf(o,sn,a,c)}function bj(o){for(var a=0,c=0;c<o.length;++c){var l=o.charCodeAt(c);l>=55296&&l<=57343&&(l=65536+((l&1023)<<10)|o.charCodeAt(++c)&1023),l<=127?++a:l<=2047?a+=2:l<=65535?a+=3:a+=4}return a}function df(o,a){Xt.set(o,a)}function gj(o,a,c){for(var l=0;l<o.length;++l)Xt[a++>>0]=o.charCodeAt(l);c||(Xt[a>>0]=0)}function vj(o,a){return o%a>0&&(o+=a-o%a),o}var ff,Xt,sn,jj,wj,le,Bj,Ij,Tj;function hf(o){ff=o,t.HEAP8=Xt=new Int8Array(o),t.HEAP16=jj=new Int16Array(o),t.HEAP32=le=new Int32Array(o),t.HEAPU8=sn=new Uint8Array(o),t.HEAPU16=wj=new Uint16Array(o),t.HEAPU32=Bj=new Uint32Array(o),t.HEAPF32=Ij=new Float32Array(o),t.HEAPF64=Tj=new Float64Array(o)}var cV=t.INITIAL_MEMORY||16777216,Y,pf=[],yf=[],Sj=[],_f=[],Dj=!1,Aj=!1,Oj=0;function Iu(){return pj||Oj>0}function Fj(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)kj(t.preRun.shift());no(pf)}function Mj(){Dj=!0,no(yf)}function Cj(){no(Sj)}function Uj(){Aj=!0}function Vj(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)Ej(t.postRun.shift());no(_f)}function kj(o){pf.unshift(o)}function Rj(o){yf.unshift(o)}function Ej(o){_f.unshift(o)}var Dr=0,Tu=null,ls=null;function Nj(o){Dr++,t.monitorRunDependencies&&t.monitorRunDependencies(Dr)}function Pj(o){if(Dr--,t.monitorRunDependencies&&t.monitorRunDependencies(Dr),Dr==0&&(Tu!==null&&(clearInterval(Tu),Tu=null),ls)){var a=ls;ls=null,a()}}t.preloadedImages={},t.preloadedAudios={};function Qt(o){t.onAbort&&t.onAbort(o),o="Aborted("+o+")",Sr(o),Bu=!0,io=1,o+=". Build with -s ASSERTIONS=1 for more info.";var a=new WebAssembly.RuntimeError(o);throw n(a),a}var xj="data:application/octet-stream;base64,";function mf(o){return o.startsWith(xj)}var jt;t.locateFile?(jt="duckdb_wasm.wasm",mf(jt)||(jt=Ce(jt))):jt=new URL("duckdb_wasm.wasm",cj.url).toString();function bf(o){try{if(o==jt&&cs)return new Uint8Array(cs);if(dt)return dt(o);throw"both async and sync fetching of the wasm failed"}catch(a){Qt(a)}}function Lj(){return!cs&&(A||P)&&typeof fetch=="function"?fetch(jt,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+jt+"'";return o.arrayBuffer()}).catch(function(){return bf(jt)}):Promise.resolve().then(function(){return bf(jt)})}function qj(){var o={a:sw};function a(h,p){var y=h.exports;t.asm=y,to=t.asm.Ae,hf(to.buffer),Y=t.asm.De,Rj(t.asm.Be),Pj("wasm-instantiate")}Nj("wasm-instantiate");function c(h){a(h.instance)}function l(h){return Lj().then(function(p){return WebAssembly.instantiate(p,o)}).then(function(p){return p}).then(h,function(p){Sr("failed to asynchronously prepare wasm: "+p),Qt(p)})}function d(){return!cs&&typeof WebAssembly.instantiateStreaming=="function"&&!mf(jt)&&typeof fetch=="function"?fetch(jt,{credentials:"same-origin"}).then(function(h){var p=WebAssembly.instantiateStreaming(h,o);return p.then(c,function(y){return Sr("wasm streaming compile failed: "+y),Sr("falling back to ArrayBuffer instantiation"),l(c)})}):l(c)}if(t.instantiateWasm)try{var f=t.instantiateWasm(o,a);return f}catch(h){return Sr("Module.instantiateWasm callback failed with error: "+h),!1}return d().catch(n),{}}function no(o){for(;o.length>0;){var a=o.shift();if(typeof a=="function"){a(t);continue}var c=a.func;typeof c=="number"?a.arg===void 0?Y.get(c)():Y.get(c)(a.arg):c(a.arg===void 0?null:a.arg)}}function zj(o){if(o instanceof po||o=="unwind")return io;S(1,o)}function Wj(o){return Fu(o+16)+16}function Ar(o){this.excPtr=o,this.ptr=o-16,this.set_type=function(a){le[this.ptr+4>>2]=a},this.get_type=function(){return le[this.ptr+4>>2]},this.set_destructor=function(a){le[this.ptr+8>>2]=a},this.get_destructor=function(){return le[this.ptr+8>>2]},this.set_refcount=function(a){le[this.ptr>>2]=a},this.set_caught=function(a){a=a?1:0,Xt[this.ptr+12>>0]=a},this.get_caught=function(){return Xt[this.ptr+12>>0]!=0},this.set_rethrown=function(a){a=a?1:0,Xt[this.ptr+13>>0]=a},this.get_rethrown=function(){return Xt[this.ptr+13>>0]!=0},this.init=function(a,c){this.set_type(a),this.set_destructor(c),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var a=le[this.ptr>>2];le[this.ptr>>2]=a+1},this.release_ref=function(){var a=le[this.ptr>>2];return le[this.ptr>>2]=a-1,a===1}}function on(o){this.free=function(){Mu(this.ptr),this.ptr=0},this.set_base_ptr=function(a){le[this.ptr>>2]=a},this.get_base_ptr=function(){return le[this.ptr>>2]},this.set_adjusted_ptr=function(a){le[this.ptr+4>>2]=a},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return le[this.ptr+4>>2]},this.get_exception_ptr=function(){var a=jf(this.get_exception_info().get_type());if(a)return le[this.get_base_ptr()>>2];var c=this.get_adjusted_ptr();return c!==0?c:this.get_base_ptr()},this.get_exception_info=function(){return new Ar(this.get_base_ptr())},o===void 0?(this.ptr=Fu(8),this.set_adjusted_ptr(0)):this.ptr=o}var so=[];function Hj(o){o.add_ref()}var oo=0;function Yj(o){var a=new on(o),c=a.get_exception_info();return c.get_caught()||(c.set_caught(!0),oo--),c.set_rethrown(!1),so.push(a),Hj(c),a.get_exception_ptr()}var wi=0;function gf(o){return Mu(new Ar(o).ptr)}function $j(o){if(o.release_ref()&&!o.get_rethrown()){var a=o.get_destructor();a&&Y.get(a)(o.excPtr),gf(o.excPtr)}}function Gj(){T(0);var o=so.pop();$j(o.get_exception_info()),o.free(),wi=0}function Jj(o){var a=new on(o),c=a.get_base_ptr();throw wi||(wi=c),a.free(),c}function Kj(){var o=wi;if(!o)return it(0),0|0;var a=new Ar(o),c=a.get_type(),l=new on;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return it(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===c)break;if(fs(h,c,l.get_adjusted_ptr_addr()))return it(h),l.ptr|0}return it(c),l.ptr|0}function Zj(){var o=wi;if(!o)return it(0),0|0;var a=new Ar(o),c=a.get_type(),l=new on;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return it(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===c)break;if(fs(h,c,l.get_adjusted_ptr_addr()))return it(h),l.ptr|0}return it(c),l.ptr|0}function Xj(){var o=wi;if(!o)return it(0),0|0;var a=new Ar(o),c=a.get_type(),l=new on;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return it(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===c)break;if(fs(h,c,l.get_adjusted_ptr_addr()))return it(h),l.ptr|0}return it(c),l.ptr|0}function Qj(){var o=wi;if(!o)return it(0),0|0;var a=new Ar(o),c=a.get_type(),l=new on;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return it(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===c)break;if(fs(h,c,l.get_adjusted_ptr_addr()))return it(h),l.ptr|0}return it(c),l.ptr|0}function e0(){var o=so.pop();o||Qt("no exception to throw");var a=o.get_exception_info(),c=o.get_base_ptr();throw a.get_rethrown()?o.free():(so.push(o),a.set_rethrown(!0),a.set_caught(!1),oo++),wi=c,c}function t0(o,a,c){var l=new Ar(o);throw l.init(a,c),wi=o,oo++,o}function i0(){return oo}var Xe={mappings:{},buffers:[null,[],[]],printChar:function(o,a){var c=Xe.buffers[o];a===0||a===10?((o===1?fj:Sr)(cf(c,0)),c.length=0):c.push(a)},varargs:void 0,get:function(){Xe.varargs+=4;var o=le[Xe.varargs-4>>2];return o},getStr:function(o){var a=ro(o);return a},get64:function(o,a){return o}};function r0(o,a){return o=Xe.getStr(o),Xe.doAccess(o,a)}function n0(o){return le[vf()>>2]=o,o}function s0(o,a,c){return Xe.varargs=c,0}function o0(o,a){}function a0(o,a,c,l){}function u0(o,a,c){}function c0(){return 42}function l0(o,a,c){return Xe.varargs=c,0}function d0(o,a,c){return 0}function f0(o,a){return o=Xe.getStr(o),Xe.doMkdir(o,a)}function h0(o,a,c){Xe.varargs=c}function p0(o,a){}function y0(o){}function _0(o,a){}function m0(o){}function b0(o,a){Qt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function g0(o,a){Qt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function v0(){Qt("")}var Su;q?Su=function(){var o=process.hrtime();return o[0]*1e3+o[1]/1e6}:Su=function(){return performance.now()};var j0=!0;function w0(o,a){var c;if(o===0)c=Date.now();else if((o===1||o===4)&&j0)c=Su();else return n0(28),-1;return le[a>>2]=c/1e3|0,le[a+4>>2]=c%1e3*1e3*1e3|0,0}function B0(o,a){return globalThis.DUCKDB_RUNTIME.createDirectory(t,o,a)}function I0(o,a){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,o,a)}function T0(o,a){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,o,a)}function S0(o,a){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,o,a)}function D0(o){return globalThis.DUCKDB_RUNTIME.closeFile(t,o)}function A0(o,a){return globalThis.DUCKDB_RUNTIME.checkFile(t,o,a)}function O0(o){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,o)}function F0(o,a,c,l){return globalThis.DUCKDB_RUNTIME.moveFile(t,o,a,c,l)}function M0(o){return globalThis.DUCKDB_RUNTIME.openFile(t,o)}function C0(o,a,c,l){return globalThis.DUCKDB_RUNTIME.readFile(t,o,a,c,l)}function U0(o,a){return globalThis.DUCKDB_RUNTIME.truncateFile(t,o,a)}function V0(o,a,c,l){return globalThis.DUCKDB_RUNTIME.writeFile(t,o,a,c,l)}function k0(o,a){return globalThis.DUCKDB_RUNTIME.glob(t,o,a)}function R0(o){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,o)}function E0(){return 2147483648}function N0(o,a,c){sn.copyWithin(o,a,a+c)}function P0(o){try{return to.grow(o-ff.byteLength+65535>>>16),hf(to.buffer),1}catch{}}function x0(o){var a=sn.length;o=o>>>0;var c=2147483648;if(o>c)return!1;for(var l=1;l<=4;l*=2){var d=a*(1+.2/l);d=Math.min(d,o+100663296);var f=Math.min(c,vj(Math.max(o,d),65536)),h=P0(f);if(h)return!0}return!1}var Du={};function L0(){return j||"./this.program"}function ds(){if(!ds.strings){var o=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:o,_:L0()};for(var c in Du)Du[c]===void 0?delete a[c]:a[c]=Du[c];var l=[];for(var c in a)l.push(c+"="+a[c]);ds.strings=l}return ds.strings}function q0(o,a){var c=0;return ds().forEach(function(l,d){var f=a+c;le[o+d*4>>2]=f,gj(l,f),c+=l.length+1}),0}function z0(o,a){var c=ds();le[o>>2]=c.length;var l=0;return c.forEach(function(d){l+=d.length+1}),le[a>>2]=l,0}function W0(o){return 0}function H0(o,a){var c=o==1||o==2?2:Qt();return Xt[a>>0]=c,0}function Y0(o,a,c,l,d,f){var h=Xe.getStreamFromFD(o),p=Xe.doReadv(h,a,c,l);return le[f>>2]=p,0}function $0(o,a,c,l,d,f){var h=Xe.getStreamFromFD(o),p=Xe.doWritev(h,a,c,l);return le[f>>2]=p,0}function G0(o,a,c,l){var d=Xe.getStreamFromFD(o),f=Xe.doReadv(d,a,c);return le[l>>2]=f,0}function J0(o,a,c,l,d){}function K0(o){var a=Xe.getStreamFromFD(o);return a.stream_ops&&a.stream_ops.fsync?-a.stream_ops.fsync(a):0}function Z0(o,a,c,l){for(var d=0,f=0;f<c;f++){for(var h=le[a+f*8>>2],p=le[a+(f*8+4)>>2],y=0;y<p;y++)Xe.printChar(o,sn[h+y]);d+=p}return le[l>>2]=d,0}function X0(){return hj()}function Q0(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var o=new Uint8Array(1);return function(){return crypto.getRandomValues(o),o[0]}}else if(q)try{var a=yS("crypto");return function(){return a.randomBytes(1)[0]}}catch{}return function(){Qt("randomDevice")}}function ao(o,a){ao.randomDevice||(ao.randomDevice=Q0());for(var c=0;c<a;c++)Xt[o+c>>0]=ao.randomDevice();return 0}function ew(o){return o}function tw(o){it(o)}function uo(o){return o%4==0&&(o%100!=0||o%400==0)}function Au(o,a){for(var c=0,l=0;l<=a;c+=o[l++]);return c}var co=[31,29,31,30,31,30,31,31,30,31,30,31],lo=[31,28,31,30,31,30,31,31,30,31,30,31];function fo(o,a){for(var c=new Date(o.getTime());a>0;){var l=uo(c.getFullYear()),d=c.getMonth(),f=(l?co:lo)[d];if(a>f-c.getDate())a-=f-c.getDate()+1,c.setDate(1),d<11?c.setMonth(d+1):(c.setMonth(0),c.setFullYear(c.getFullYear()+1));else return c.setDate(c.getDate()+a),c}return c}function iw(o,a,c,l){var d=le[l+40>>2],f={tm_sec:le[l>>2],tm_min:le[l+4>>2],tm_hour:le[l+8>>2],tm_mday:le[l+12>>2],tm_mon:le[l+16>>2],tm_year:le[l+20>>2],tm_wday:le[l+24>>2],tm_yday:le[l+28>>2],tm_isdst:le[l+32>>2],tm_gmtoff:le[l+36>>2],tm_zone:d?ro(d):""},h=ro(c),p={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var y in p)h=h.replace(new RegExp(y,"g"),p[y]);var b=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function w(V,G,Fe){for(var _e=typeof V=="number"?V.toString():V||"";_e.length<G;)_e=Fe[0]+_e;return _e}function D(V,G){return w(V,G,"0")}function M(V,G){function Fe(ft){return ft<0?-1:ft>0?1:0}var _e;return(_e=Fe(V.getFullYear()-G.getFullYear()))===0&&(_e=Fe(V.getMonth()-G.getMonth()))===0&&(_e=Fe(V.getDate()-G.getDate())),_e}function E(V){switch(V.getDay()){case 0:return new Date(V.getFullYear()-1,11,29);case 1:return V;case 2:return new Date(V.getFullYear(),0,3);case 3:return new Date(V.getFullYear(),0,2);case 4:return new Date(V.getFullYear(),0,1);case 5:return new Date(V.getFullYear()-1,11,31);case 6:return new Date(V.getFullYear()-1,11,30)}}function ne(V){var G=fo(new Date(V.tm_year+1900,0,1),V.tm_yday),Fe=new Date(G.getFullYear(),0,4),_e=new Date(G.getFullYear()+1,0,4),ft=E(Fe),xi=E(_e);return M(ft,G)<=0?M(xi,G)<=0?G.getFullYear()+1:G.getFullYear():G.getFullYear()-1}var ye={"%a":function(V){return b[V.tm_wday].substring(0,3)},"%A":function(V){return b[V.tm_wday]},"%b":function(V){return v[V.tm_mon].substring(0,3)},"%B":function(V){return v[V.tm_mon]},"%C":function(V){var G=V.tm_year+1900;return D(G/100|0,2)},"%d":function(V){return D(V.tm_mday,2)},"%e":function(V){return w(V.tm_mday,2," ")},"%g":function(V){return ne(V).toString().substring(2)},"%G":function(V){return ne(V)},"%H":function(V){return D(V.tm_hour,2)},"%I":function(V){var G=V.tm_hour;return G==0?G=12:G>12&&(G-=12),D(G,2)},"%j":function(V){return D(V.tm_mday+Au(uo(V.tm_year+1900)?co:lo,V.tm_mon-1),3)},"%m":function(V){return D(V.tm_mon+1,2)},"%M":function(V){return D(V.tm_min,2)},"%n":function(){return`
|
|
18
|
-
`},"%p":function(V){return V.tm_hour>=0&&V.tm_hour<12?"AM":"PM"},"%S":function(V){return D(V.tm_sec,2)},"%t":function(){return" "},"%u":function(V){return V.tm_wday||7},"%U":function(V){var G=new Date(V.tm_year+1900,0,1),Fe=G.getDay()===0?G:fo(G,7-G.getDay()),_e=new Date(V.tm_year+1900,V.tm_mon,V.tm_mday);if(M(Fe,_e)<0){var ft=Au(uo(_e.getFullYear())?co:lo,_e.getMonth()-1)-31,xi=31-Fe.getDate(),Or=xi+ft+_e.getDate();return D(Math.ceil(Or/7),2)}return M(Fe,G)===0?"01":"00"},"%V":function(V){var G=new Date(V.tm_year+1900,0,4),Fe=new Date(V.tm_year+1901,0,4),_e=E(G),ft=E(Fe),xi=fo(new Date(V.tm_year+1900,0,1),V.tm_yday);if(M(xi,_e)<0)return"53";if(M(ft,xi)<=0)return"01";var Or;return _e.getFullYear()<V.tm_year+1900?Or=V.tm_yday+32-_e.getDate():Or=V.tm_yday+1-_e.getDate(),D(Math.ceil(Or/7),2)},"%w":function(V){return V.tm_wday},"%W":function(V){var G=new Date(V.tm_year,0,1),Fe=G.getDay()===1?G:fo(G,G.getDay()===0?1:7-G.getDay()+1),_e=new Date(V.tm_year+1900,V.tm_mon,V.tm_mday);if(M(Fe,_e)<0){var ft=Au(uo(_e.getFullYear())?co:lo,_e.getMonth()-1)-31,xi=31-Fe.getDate(),Or=xi+ft+_e.getDate();return D(Math.ceil(Or/7),2)}return M(Fe,G)===0?"01":"00"},"%y":function(V){return(V.tm_year+1900).toString().substring(2)},"%Y":function(V){return V.tm_year+1900},"%z":function(V){var G=V.tm_gmtoff,Fe=G>=0;return G=Math.abs(G)/60,G=G/60*100+G%60,(Fe?"+":"-")+String("0000"+G).slice(-4)},"%Z":function(V){return V.tm_zone},"%%":function(){return"%"}};for(var y in ye)h.includes(y)&&(h=h.replace(new RegExp(y,"g"),ye[y](f)));var Be=nw(h,!1);return Be.length>a?0:(df(Be,o),Be.length-1)}function rw(o,a,c,l){return iw(o,a,c,l)}function nw(o,a,c){var l=c>0?c:bj(o)+1,d=new Array(l),f=lf(o,d,0,d.length);return a&&(d.length=f),d}var sw={i:Wj,A:Yj,G:Gj,b:Kj,n:Zj,I:Xj,pa:Qj,j:gf,ua:e0,u:t0,E:i0,c:Jj,Ga:r0,ea:s0,Ia:o0,Ha:a0,Ea:u0,ia:c0,Na:l0,Aa:d0,Fa:f0,sa:h0,Ca:p0,ja:y0,la:_0,ka:m0,La:b0,Ka:g0,ga:v0,qa:w0,xe:B0,ye:I0,ve:T0,we:S0,ha:D0,te:A0,wa:O0,ue:F0,ya:M0,$:C0,ze:U0,xa:V0,se:k0,re:R0,Oa:E0,Sa:N0,Kc:x0,Qa:q0,Ra:z0,Y:W0,Ma:H0,mb:Y0,lb:$0,ra:G0,Md:J0,Da:K0,da:Z0,a:X0,Ja:ao,W:kB,K:vB,R:Xw,sc:ET,X:VB,M:UB,va:Zw,tc:RT,t:cB,U:xB,rb:rB,Z:yB,V:PB,Cb:iB,e:Ww,aa:MB,C:_B,Hb:j1,d:Hw,fa:jB,ma:RB,h:$w,Fb:B1,l:Kw,ta:BB,o:Gw,z:oB,w:aB,Q:sB,x:lB,v:fB,p:SB,L:FB,J:OB,Vb:a1,Yb:n1,$b:t1,hc:GT,Wb:o1,Gb:w1,rc:NT,Zb:r1,ic:$T,ne:WB,Kd:vI,Dd:DI,be:iI,Mb:_1,cd:eT,Ua:nS,Ta:sS,Ud:dI,Jd:jI,vb:C1,Sc:fT,Td:fI,yc:MT,Nb:y1,Eb:I1,ie:JB,Qd:yI,uc:kT,Ed:SI,od:qI,Bd:OI,hb:z1,Rd:pI,ec:KT,Od:mI,bd:tT,cb:G1,Va:rS,ed:XI,Vd:lI,xd:UI,$a:Z1,tb:V1,Fd:TI,db:$1,Db:T1,Pd:_I,yd:CI,ad:iT,Ad:FI,zd:MI,ud:RI,dc:ZT,Tb:c1,ge:ZB,_d:sI,jc:YT,Zd:oI,Ld:gI,mc:zT,lc:WT,fe:XB,$d:nI,Id:wI,qe:LB,Ac:OT,kc:HT,Xb:s1,zc:FT,pc:xT,Pc:yT,sb:k1,vc:VT,qc:PT,ld:HI,xc:CT,oc:LT,xb:F1,gd:KI,Sb:l1,id:GI,Yc:oT,Jc:vT,Ic:jT,Gc:BT,Hc:wT,md:WI,Ab:D1,Vc:cT,Wa:iS,bc:QT,jb:L1,Tc:dT,nc:qT,Pb:h1,s:qw,k:Yw,B:gB,ba:TB,ob:N1,D:bB,ca:IB,pb:E1,f:zw,T:eB,P:mB,fc:Qw,g:tB,m:Jw,Ba:EB,q:uB,r:nB,na:CB,y:dB,O:wB,N:AB,S:hB,za:NB,oa:DB,_:pB,wd:VI,nb:P1,dd:QI,Ub:u1,wc:UT,gc:JT,Ib:v1,gb:W1,le:YB,Sd:hI,ub:U1,ab:K1,sd:NI,td:EI,Qb:f1,pd:LI,Kb:b1,Jb:g1,Lc:gT,ke:$B,qd:xI,vd:kI,Rc:hT,Dc:ST,yb:O1,zb:A1,eb:Y1,ee:QB,nd:zI,Lb:m1,Bc:AT,Oc:_T,je:GB,bb:J1,oe:zB,Xd:uI,Yd:aI,Cd:AI,wb:M1,Xc:aT,Fc:IT,Ec:TT,Wc:uT,fb:H1,hd:JI,$c:rT,Xa:tS,Cc:DT,ib:q1,pe:qB,Nd:bI,Zc:sT,Mc:bT,ce:tI,_b:i1,me:HB,ae:rI,_c:nT,Hd:BI,Gd:II,Uc:lT,qb:R1,fd:ZI,cc:XT,he:KB,_a:X1,Nc:mT,kb:x1,Wd:cI,Qc:pT,Ya:eS,Za:Q1,ac:e1,de:eI,kd:YI,Ob:p1,Rb:d1,Bb:S1,rd:PI,jd:$I,H:ew,F:tw,Pa:rw},lV=qj(),ow=t.___wasm_call_ctors=function(){return(ow=t.___wasm_call_ctors=t.asm.Be).apply(null,arguments)},aw=t._main=function(){return(aw=t._main=t.asm.Ce).apply(null,arguments)},uw=t._duckdb_web_fs_glob_add_path=function(){return(uw=t._duckdb_web_fs_glob_add_path=t.asm.Ee).apply(null,arguments)},cw=t._duckdb_web_clear_response=function(){return(cw=t._duckdb_web_clear_response=t.asm.Fe).apply(null,arguments)},lw=t._duckdb_web_fail_with=function(){return(lw=t._duckdb_web_fail_with=t.asm.Ge).apply(null,arguments)},dw=t._duckdb_web_reset=function(){return(dw=t._duckdb_web_reset=t.asm.He).apply(null,arguments)},fw=t._duckdb_web_connect=function(){return(fw=t._duckdb_web_connect=t.asm.Ie).apply(null,arguments)},hw=t._duckdb_web_disconnect=function(){return(hw=t._duckdb_web_disconnect=t.asm.Je).apply(null,arguments)},pw=t._duckdb_web_flush_files=function(){return(pw=t._duckdb_web_flush_files=t.asm.Ke).apply(null,arguments)},yw=t._duckdb_web_flush_file=function(){return(yw=t._duckdb_web_flush_file=t.asm.Le).apply(null,arguments)},_w=t._duckdb_web_open=function(){return(_w=t._duckdb_web_open=t.asm.Me).apply(null,arguments)},mw=t._duckdb_web_collect_file_stats=function(){return(mw=t._duckdb_web_collect_file_stats=t.asm.Ne).apply(null,arguments)},bw=t._duckdb_web_export_file_stats=function(){return(bw=t._duckdb_web_export_file_stats=t.asm.Oe).apply(null,arguments)},gw=t._duckdb_web_fs_drop_file=function(){return(gw=t._duckdb_web_fs_drop_file=t.asm.Pe).apply(null,arguments)},vw=t._duckdb_web_fs_drop_files=function(){return(vw=t._duckdb_web_fs_drop_files=t.asm.Qe).apply(null,arguments)},jw=t._duckdb_web_fs_glob_file_infos=function(){return(jw=t._duckdb_web_fs_glob_file_infos=t.asm.Re).apply(null,arguments)},ww=t._duckdb_web_fs_get_file_info_by_id=function(){return(ww=t._duckdb_web_fs_get_file_info_by_id=t.asm.Se).apply(null,arguments)},Bw=t._duckdb_web_fs_get_file_info_by_name=function(){return(Bw=t._duckdb_web_fs_get_file_info_by_name=t.asm.Te).apply(null,arguments)},Iw=t._duckdb_web_fs_set_file_descriptor=function(){return(Iw=t._duckdb_web_fs_set_file_descriptor=t.asm.Ue).apply(null,arguments)},Tw=t._duckdb_web_fs_register_file_url=function(){return(Tw=t._duckdb_web_fs_register_file_url=t.asm.Ve).apply(null,arguments)},Sw=t._duckdb_web_fs_register_file_buffer=function(){return(Sw=t._duckdb_web_fs_register_file_buffer=t.asm.We).apply(null,arguments)},Dw=t._duckdb_web_copy_file_to_buffer=function(){return(Dw=t._duckdb_web_copy_file_to_buffer=t.asm.Xe).apply(null,arguments)},Aw=t._duckdb_web_copy_file_to_path=function(){return(Aw=t._duckdb_web_copy_file_to_path=t.asm.Ye).apply(null,arguments)},Ow=t._duckdb_web_get_version=function(){return(Ow=t._duckdb_web_get_version=t.asm.Ze).apply(null,arguments)},Fw=t._duckdb_web_get_feature_flags=function(){return(Fw=t._duckdb_web_get_feature_flags=t.asm._e).apply(null,arguments)},Mw=t._duckdb_web_tokenize=function(){return(Mw=t._duckdb_web_tokenize=t.asm.$e).apply(null,arguments)},Cw=t._duckdb_web_prepared_create=function(){return(Cw=t._duckdb_web_prepared_create=t.asm.af).apply(null,arguments)},Uw=t._duckdb_web_prepared_close=function(){return(Uw=t._duckdb_web_prepared_close=t.asm.bf).apply(null,arguments)},Vw=t._duckdb_web_prepared_run=function(){return(Vw=t._duckdb_web_prepared_run=t.asm.cf).apply(null,arguments)},kw=t._duckdb_web_prepared_send=function(){return(kw=t._duckdb_web_prepared_send=t.asm.df).apply(null,arguments)},Rw=t._duckdb_web_query_run=function(){return(Rw=t._duckdb_web_query_run=t.asm.ef).apply(null,arguments)},Ew=t._duckdb_web_query_send=function(){return(Ew=t._duckdb_web_query_send=t.asm.ff).apply(null,arguments)},Nw=t._duckdb_web_query_fetch_results=function(){return(Nw=t._duckdb_web_query_fetch_results=t.asm.gf).apply(null,arguments)},Pw=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(Pw=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.hf).apply(null,arguments)},xw=t._duckdb_web_insert_csv_from_path=function(){return(xw=t._duckdb_web_insert_csv_from_path=t.asm.jf).apply(null,arguments)},Lw=t._duckdb_web_insert_json_from_path=function(){return(Lw=t._duckdb_web_insert_json_from_path=t.asm.kf).apply(null,arguments)},vf=t.___errno_location=function(){return(vf=t.___errno_location=t.asm.lf).apply(null,arguments)},B=t.stackSave=function(){return(B=t.stackSave=t.asm.mf).apply(null,arguments)},I=t.stackRestore=function(){return(I=t.stackRestore=t.asm.nf).apply(null,arguments)},Ou=t.stackAlloc=function(){return(Ou=t.stackAlloc=t.asm.of).apply(null,arguments)},T=t._setThrew=function(){return(T=t._setThrew=t.asm.pf).apply(null,arguments)},fs=t.___cxa_can_catch=function(){return(fs=t.___cxa_can_catch=t.asm.qf).apply(null,arguments)},jf=t.___cxa_is_pointer_type=function(){return(jf=t.___cxa_is_pointer_type=t.asm.rf).apply(null,arguments)},Fu=t._malloc=function(){return(Fu=t._malloc=t.asm.sf).apply(null,arguments)},Mu=t._free=function(){return(Mu=t._free=t.asm.tf).apply(null,arguments)},wf=t.dynCall_viiij=function(){return(wf=t.dynCall_viiij=t.asm.uf).apply(null,arguments)},Bf=t.dynCall_viiijjj=function(){return(Bf=t.dynCall_viiijjj=t.asm.vf).apply(null,arguments)},If=t.dynCall_iiij=function(){return(If=t.dynCall_iiij=t.asm.wf).apply(null,arguments)},Tf=t.dynCall_vijijj=function(){return(Tf=t.dynCall_vijijj=t.asm.xf).apply(null,arguments)},Sf=t.dynCall_iji=function(){return(Sf=t.dynCall_iji=t.asm.yf).apply(null,arguments)},Df=t.dynCall_vij=function(){return(Df=t.dynCall_vij=t.asm.zf).apply(null,arguments)},Af=t.dynCall_viijj=function(){return(Af=t.dynCall_viijj=t.asm.Af).apply(null,arguments)},Of=t.dynCall_ji=function(){return(Of=t.dynCall_ji=t.asm.Bf).apply(null,arguments)},Ff=t.dynCall_viiijj=function(){return(Ff=t.dynCall_viiijj=t.asm.Cf).apply(null,arguments)},Mf=t.dynCall_vijjj=function(){return(Mf=t.dynCall_vijjj=t.asm.Df).apply(null,arguments)},Cf=t.dynCall_jii=function(){return(Cf=t.dynCall_jii=t.asm.Ef).apply(null,arguments)},Uf=t.dynCall_jiiii=function(){return(Uf=t.dynCall_jiiii=t.asm.Ff).apply(null,arguments)},Vf=t.dynCall_iiiiij=function(){return(Vf=t.dynCall_iiiiij=t.asm.Gf).apply(null,arguments)},kf=t.dynCall_iiiiijj=function(){return(kf=t.dynCall_iiiiijj=t.asm.Hf).apply(null,arguments)},Rf=t.dynCall_viijii=function(){return(Rf=t.dynCall_viijii=t.asm.If).apply(null,arguments)},Ef=t.dynCall_viiji=function(){return(Ef=t.dynCall_viiji=t.asm.Jf).apply(null,arguments)},Nf=t.dynCall_vijj=function(){return(Nf=t.dynCall_vijj=t.asm.Kf).apply(null,arguments)},Pf=t.dynCall_viji=function(){return(Pf=t.dynCall_viji=t.asm.Lf).apply(null,arguments)},xf=t.dynCall_iij=function(){return(xf=t.dynCall_iij=t.asm.Mf).apply(null,arguments)},Lf=t.dynCall_viij=function(){return(Lf=t.dynCall_viij=t.asm.Nf).apply(null,arguments)},qf=t.dynCall_jiji=function(){return(qf=t.dynCall_jiji=t.asm.Of).apply(null,arguments)},zf=t.dynCall_viiiij=function(){return(zf=t.dynCall_viiiij=t.asm.Pf).apply(null,arguments)},Wf=t.dynCall_iiiij=function(){return(Wf=t.dynCall_iiiij=t.asm.Qf).apply(null,arguments)},Hf=t.dynCall_iiiiiji=function(){return(Hf=t.dynCall_iiiiiji=t.asm.Rf).apply(null,arguments)},Yf=t.dynCall_iiiji=function(){return(Yf=t.dynCall_iiiji=t.asm.Sf).apply(null,arguments)},$f=t.dynCall_iiiiji=function(){return($f=t.dynCall_iiiiji=t.asm.Tf).apply(null,arguments)},Gf=t.dynCall_jiii=function(){return(Gf=t.dynCall_jiii=t.asm.Uf).apply(null,arguments)},Jf=t.dynCall_jij=function(){return(Jf=t.dynCall_jij=t.asm.Vf).apply(null,arguments)},Kf=t.dynCall_j=function(){return(Kf=t.dynCall_j=t.asm.Wf).apply(null,arguments)},Zf=t.dynCall_viijij=function(){return(Zf=t.dynCall_viijij=t.asm.Xf).apply(null,arguments)},Xf=t.dynCall_iijjijj=function(){return(Xf=t.dynCall_iijjijj=t.asm.Yf).apply(null,arguments)},Qf=t.dynCall_viiiijiiiii=function(){return(Qf=t.dynCall_viiiijiiiii=t.asm.Zf).apply(null,arguments)},eh=t.dynCall_viiiijiiii=function(){return(eh=t.dynCall_viiiijiiii=t.asm._f).apply(null,arguments)},th=t.dynCall_viiijii=function(){return(th=t.dynCall_viiijii=t.asm.$f).apply(null,arguments)},ih=t.dynCall_viiiiiij=function(){return(ih=t.dynCall_viiiiiij=t.asm.ag).apply(null,arguments)},rh=t.dynCall_iiijiii=function(){return(rh=t.dynCall_iiijiii=t.asm.bg).apply(null,arguments)},nh=t.dynCall_iiiiijii=function(){return(nh=t.dynCall_iiiiijii=t.asm.cg).apply(null,arguments)},sh=t.dynCall_viijiii=function(){return(sh=t.dynCall_viijiii=t.asm.dg).apply(null,arguments)},oh=t.dynCall_iiijiij=function(){return(oh=t.dynCall_iiijiij=t.asm.eg).apply(null,arguments)},ah=t.dynCall_vijiii=function(){return(ah=t.dynCall_vijiii=t.asm.fg).apply(null,arguments)},uh=t.dynCall_iijjiii=function(){return(uh=t.dynCall_iijjiii=t.asm.gg).apply(null,arguments)},ch=t.dynCall_iijjiiii=function(){return(ch=t.dynCall_iijjiiii=t.asm.hg).apply(null,arguments)},lh=t.dynCall_iiji=function(){return(lh=t.dynCall_iiji=t.asm.ig).apply(null,arguments)},dh=t.dynCall_iijji=function(){return(dh=t.dynCall_iijji=t.asm.jg).apply(null,arguments)},fh=t.dynCall_vijiiii=function(){return(fh=t.dynCall_vijiiii=t.asm.kg).apply(null,arguments)},hh=t.dynCall_iijiiii=function(){return(hh=t.dynCall_iijiiii=t.asm.lg).apply(null,arguments)},ph=t.dynCall_vijij=function(){return(ph=t.dynCall_vijij=t.asm.mg).apply(null,arguments)},yh=t.dynCall_iiijjjj=function(){return(yh=t.dynCall_iiijjjj=t.asm.ng).apply(null,arguments)},_h=t.dynCall_iiijiiii=function(){return(_h=t.dynCall_iiijiiii=t.asm.og).apply(null,arguments)},mh=t.dynCall_jiiij=function(){return(mh=t.dynCall_jiiij=t.asm.pg).apply(null,arguments)},bh=t.dynCall_iiiiijjiijj=function(){return(bh=t.dynCall_iiiiijjiijj=t.asm.qg).apply(null,arguments)},gh=t.dynCall_viijiijji=function(){return(gh=t.dynCall_viijiijji=t.asm.rg).apply(null,arguments)},vh=t.dynCall_vjjijij=function(){return(vh=t.dynCall_vjjijij=t.asm.sg).apply(null,arguments)},jh=t.dynCall_vijjji=function(){return(jh=t.dynCall_vijjji=t.asm.tg).apply(null,arguments)},wh=t.dynCall_vjjii=function(){return(wh=t.dynCall_vjjii=t.asm.ug).apply(null,arguments)},Bh=t.dynCall_viiiiiji=function(){return(Bh=t.dynCall_viiiiiji=t.asm.vg).apply(null,arguments)},Ih=t.dynCall_jiiijji=function(){return(Ih=t.dynCall_jiiijji=t.asm.wg).apply(null,arguments)},Th=t.dynCall_iijj=function(){return(Th=t.dynCall_iijj=t.asm.xg).apply(null,arguments)},Sh=t.dynCall_iiijjii=function(){return(Sh=t.dynCall_iiijjii=t.asm.yg).apply(null,arguments)},Dh=t.dynCall_iijjii=function(){return(Dh=t.dynCall_iijjii=t.asm.zg).apply(null,arguments)},Ah=t.dynCall_vijii=function(){return(Ah=t.dynCall_vijii=t.asm.Ag).apply(null,arguments)},Oh=t.dynCall_viijjii=function(){return(Oh=t.dynCall_viijjii=t.asm.Bg).apply(null,arguments)},Fh=t.dynCall_viiiijj=function(){return(Fh=t.dynCall_viiiijj=t.asm.Cg).apply(null,arguments)},Mh=t.dynCall_jijjij=function(){return(Mh=t.dynCall_jijjij=t.asm.Dg).apply(null,arguments)},Ch=t.dynCall_jiijii=function(){return(Ch=t.dynCall_jiijii=t.asm.Eg).apply(null,arguments)},Uh=t.dynCall_jijiii=function(){return(Uh=t.dynCall_jijiii=t.asm.Fg).apply(null,arguments)},Vh=t.dynCall_viijiiiii=function(){return(Vh=t.dynCall_viijiiiii=t.asm.Gg).apply(null,arguments)},kh=t.dynCall_viijiiij=function(){return(kh=t.dynCall_viijiiij=t.asm.Hg).apply(null,arguments)},Rh=t.dynCall_vijiiiji=function(){return(Rh=t.dynCall_vijiiiji=t.asm.Ig).apply(null,arguments)},Eh=t.dynCall_jiiji=function(){return(Eh=t.dynCall_jiiji=t.asm.Jg).apply(null,arguments)},Nh=t.dynCall_viiijij=function(){return(Nh=t.dynCall_viiijij=t.asm.Kg).apply(null,arguments)},Ph=t.dynCall_viijiijj=function(){return(Ph=t.dynCall_viijiijj=t.asm.Lg).apply(null,arguments)},xh=t.dynCall_viiiiijj=function(){return(xh=t.dynCall_viiiiijj=t.asm.Mg).apply(null,arguments)},Lh=t.dynCall_viiijji=function(){return(Lh=t.dynCall_viiijji=t.asm.Ng).apply(null,arguments)},qh=t.dynCall_viiiji=function(){return(qh=t.dynCall_viiiji=t.asm.Og).apply(null,arguments)},zh=t.dynCall_iiiijiii=function(){return(zh=t.dynCall_iiiijiii=t.asm.Pg).apply(null,arguments)},Wh=t.dynCall_iiijij=function(){return(Wh=t.dynCall_iiijij=t.asm.Qg).apply(null,arguments)},Hh=t.dynCall_iiijji=function(){return(Hh=t.dynCall_iiijji=t.asm.Rg).apply(null,arguments)},Yh=t.dynCall_viijji=function(){return(Yh=t.dynCall_viijji=t.asm.Sg).apply(null,arguments)},$h=t.dynCall_iiiijj=function(){return($h=t.dynCall_iiiijj=t.asm.Tg).apply(null,arguments)},Gh=t.dynCall_viiijiii=function(){return(Gh=t.dynCall_viiijiii=t.asm.Ug).apply(null,arguments)},Jh=t.dynCall_vijji=function(){return(Jh=t.dynCall_vijji=t.asm.Vg).apply(null,arguments)},Kh=t.dynCall_jiiiij=function(){return(Kh=t.dynCall_jiiiij=t.asm.Wg).apply(null,arguments)},Zh=t.dynCall_jiijiiiii=function(){return(Zh=t.dynCall_jiijiiiii=t.asm.Xg).apply(null,arguments)},Xh=t.dynCall_jiijiijiii=function(){return(Xh=t.dynCall_jiijiijiii=t.asm.Yg).apply(null,arguments)},Qh=t.dynCall_jiijjiii=function(){return(Qh=t.dynCall_jiijjiii=t.asm.Zg).apply(null,arguments)},ep=t.dynCall_jiijijii=function(){return(ep=t.dynCall_jiijijii=t.asm._g).apply(null,arguments)},tp=t.dynCall_viiijjij=function(){return(tp=t.dynCall_viiijjij=t.asm.$g).apply(null,arguments)},ip=t.dynCall_vijijjiij=function(){return(ip=t.dynCall_vijijjiij=t.asm.ah).apply(null,arguments)},rp=t.dynCall_viijjij=function(){return(rp=t.dynCall_viijjij=t.asm.bh).apply(null,arguments)},np=t.dynCall_viiijjiij=function(){return(np=t.dynCall_viiijjiij=t.asm.ch).apply(null,arguments)},sp=t.dynCall_viiiijjjj=function(){return(sp=t.dynCall_viiiijjjj=t.asm.dh).apply(null,arguments)},op=t.dynCall_viijiiiiij=function(){return(op=t.dynCall_viijiiiiij=t.asm.eh).apply(null,arguments)},ap=t.dynCall_viijiiiijj=function(){return(ap=t.dynCall_viijiiiijj=t.asm.fh).apply(null,arguments)},up=t.dynCall_viiijiiiijjj=function(){return(up=t.dynCall_viiijiiiijjj=t.asm.gh).apply(null,arguments)},cp=t.dynCall_viijijiiiijjj=function(){return(cp=t.dynCall_viijijiiiijjj=t.asm.hh).apply(null,arguments)},lp=t.dynCall_jiiijii=function(){return(lp=t.dynCall_jiiijii=t.asm.ih).apply(null,arguments)},dp=t.dynCall_viiiiijiiii=function(){return(dp=t.dynCall_viiiiijiiii=t.asm.jh).apply(null,arguments)},fp=t.dynCall_iiijii=function(){return(fp=t.dynCall_iiijii=t.asm.kh).apply(null,arguments)},hp=t.dynCall_fiijii=function(){return(hp=t.dynCall_fiijii=t.asm.lh).apply(null,arguments)},pp=t.dynCall_diijii=function(){return(pp=t.dynCall_diijii=t.asm.mh).apply(null,arguments)},yp=t.dynCall_iiiiiiijii=function(){return(yp=t.dynCall_iiiiiiijii=t.asm.nh).apply(null,arguments)},_p=t.dynCall_viiiiji=function(){return(_p=t.dynCall_viiiiji=t.asm.oh).apply(null,arguments)},mp=t.dynCall_jiiiijii=function(){return(mp=t.dynCall_jiiiijii=t.asm.ph).apply(null,arguments)},bp=t.dynCall_jiiiijiiiiiiii=function(){return(bp=t.dynCall_jiiiijiiiiiiii=t.asm.qh).apply(null,arguments)},gp=t.dynCall_jiiiiijiiii=function(){return(gp=t.dynCall_jiiiiijiiii=t.asm.rh).apply(null,arguments)},vp=t.dynCall_jiiijiii=function(){return(vp=t.dynCall_jiiijiii=t.asm.sh).apply(null,arguments)},jp=t.dynCall_jj=function(){return(jp=t.dynCall_jj=t.asm.th).apply(null,arguments)},wp=t.dynCall_jd=function(){return(wp=t.dynCall_jd=t.asm.uh).apply(null,arguments)},Bp=t.dynCall_jf=function(){return(Bp=t.dynCall_jf=t.asm.vh).apply(null,arguments)},Ip=t.dynCall_iijjjj=function(){return(Ip=t.dynCall_iijjjj=t.asm.wh).apply(null,arguments)},Tp=t.dynCall_iiijj=function(){return(Tp=t.dynCall_iiijj=t.asm.xh).apply(null,arguments)},Sp=t.dynCall_vijijiiiijjj=function(){return(Sp=t.dynCall_vijijiiiijjj=t.asm.yh).apply(null,arguments)},Dp=t.dynCall_iiiiiiji=function(){return(Dp=t.dynCall_iiiiiiji=t.asm.zh).apply(null,arguments)},Ap=t.dynCall_iiiiiiiiji=function(){return(Ap=t.dynCall_iiiiiiiiji=t.asm.Ah).apply(null,arguments)},Op=t.dynCall_jijijjij=function(){return(Op=t.dynCall_jijijjij=t.asm.Bh).apply(null,arguments)},Fp=t.dynCall_vijjij=function(){return(Fp=t.dynCall_vijjij=t.asm.Ch).apply(null,arguments)},Mp=t.dynCall_viijjj=function(){return(Mp=t.dynCall_viijjj=t.asm.Dh).apply(null,arguments)},Cp=t.dynCall_viijjji=function(){return(Cp=t.dynCall_viijjji=t.asm.Eh).apply(null,arguments)},Up=t.dynCall_iiiiiij=function(){return(Up=t.dynCall_iiiiiij=t.asm.Fh).apply(null,arguments)},Vp=t.dynCall_iiiiiiiiiiji=function(){return(Vp=t.dynCall_iiiiiiiiiiji=t.asm.Gh).apply(null,arguments)},kp=t.dynCall_jiiiiiii=function(){return(kp=t.dynCall_jiiiiiii=t.asm.Hh).apply(null,arguments)},Rp=t.dynCall_jijj=function(){return(Rp=t.dynCall_jijj=t.asm.Ih).apply(null,arguments)},Ep=t.dynCall_viiiijiiiiiiii=function(){return(Ep=t.dynCall_viiiijiiiiiiii=t.asm.Jh).apply(null,arguments)},Np=t.dynCall_ij=function(){return(Np=t.dynCall_ij=t.asm.Kh).apply(null,arguments)},Pp=t.dynCall_jjj=function(){return(Pp=t.dynCall_jjj=t.asm.Lh).apply(null,arguments)},xp=t.dynCall_vjii=function(){return(xp=t.dynCall_vjii=t.asm.Mh).apply(null,arguments)},Lp=t.dynCall_vjiiii=function(){return(Lp=t.dynCall_vjiiii=t.asm.Nh).apply(null,arguments)},qp=t.dynCall_viiiiijiii=function(){return(qp=t.dynCall_viiiiijiii=t.asm.Oh).apply(null,arguments)},zp=t.dynCall_jiij=function(){return(zp=t.dynCall_jiij=t.asm.Ph).apply(null,arguments)},Wp=t.dynCall_iiiijjii=function(){return(Wp=t.dynCall_iiiijjii=t.asm.Qh).apply(null,arguments)},Hp=t.dynCall_iiiiijji=function(){return(Hp=t.dynCall_iiiiijji=t.asm.Rh).apply(null,arguments)},Yp=t.dynCall_viiijjii=function(){return(Yp=t.dynCall_viiijjii=t.asm.Sh).apply(null,arguments)},$p=t.dynCall_viiiijji=function(){return($p=t.dynCall_viiiijji=t.asm.Th).apply(null,arguments)},Gp=t.dynCall_viiiijjii=function(){return(Gp=t.dynCall_viiiijjii=t.asm.Uh).apply(null,arguments)},Jp=t.dynCall_viiiiijji=function(){return(Jp=t.dynCall_viiiiijji=t.asm.Vh).apply(null,arguments)},Kp=t.dynCall_iidj=function(){return(Kp=t.dynCall_iidj=t.asm.Wh).apply(null,arguments)},Zp=t.dynCall_ijji=function(){return(Zp=t.dynCall_ijji=t.asm.Xh).apply(null,arguments)},Xp=t.dynCall_iiiiiiiij=function(){return(Xp=t.dynCall_iiiiiiiij=t.asm.Yh).apply(null,arguments)},Qp=t.dynCall_iiiiiiij=function(){return(Qp=t.dynCall_iiiiiiij=t.asm.Zh).apply(null,arguments)},ey=t.dynCall_iiiiiiiiiiiij=function(){return(ey=t.dynCall_iiiiiiiiiiiij=t.asm._h).apply(null,arguments)},ty=t.dynCall_iiiiiiiji=function(){return(ty=t.dynCall_iiiiiiiji=t.asm.$h).apply(null,arguments)},iy=t.dynCall_iiiidjj=function(){return(iy=t.dynCall_iiiidjj=t.asm.ai).apply(null,arguments)},ry=t.dynCall_iiiijjj=function(){return(ry=t.dynCall_iiiijjj=t.asm.bi).apply(null,arguments)},ny=t.dynCall_jiiiii=function(){return(ny=t.dynCall_jiiiii=t.asm.ci).apply(null,arguments)},sy=t.dynCall_jiiiiiijii=function(){return(sy=t.dynCall_jiiiiiijii=t.asm.di).apply(null,arguments)},oy=t.dynCall_iiiijji=function(){return(oy=t.dynCall_iiiijji=t.asm.ei).apply(null,arguments)},ay=t.dynCall_jiiiiii=function(){return(ay=t.dynCall_jiiiiii=t.asm.fi).apply(null,arguments)},uy=t.dynCall_iijiji=function(){return(uy=t.dynCall_iijiji=t.asm.gi).apply(null,arguments)},cy=t.dynCall_vjiiiji=function(){return(cy=t.dynCall_vjiiiji=t.asm.hi).apply(null,arguments)},ly=t.dynCall_viiijijiji=function(){return(ly=t.dynCall_viiijijiji=t.asm.ii).apply(null,arguments)},dy=t.dynCall_jiiijj=function(){return(dy=t.dynCall_jiiijj=t.asm.ji).apply(null,arguments)},fy=t.dynCall_viijiiii=function(){return(fy=t.dynCall_viijiiii=t.asm.ki).apply(null,arguments)},hy=t.dynCall_iiiijii=function(){return(hy=t.dynCall_iiiijii=t.asm.li).apply(null,arguments)},py=t.dynCall_viiiijii=function(){return(py=t.dynCall_viiiijii=t.asm.mi).apply(null,arguments)},yy=t.dynCall_iijiii=function(){return(yy=t.dynCall_iijiii=t.asm.ni).apply(null,arguments)},_y=t.dynCall_jiiiiji=function(){return(_y=t.dynCall_jiiiiji=t.asm.oi).apply(null,arguments)},my=t.dynCall_vijiijj=function(){return(my=t.dynCall_vijiijj=t.asm.pi).apply(null,arguments)},by=t.dynCall_vifiijj=function(){return(by=t.dynCall_vifiijj=t.asm.qi).apply(null,arguments)},gy=t.dynCall_vidiijj=function(){return(gy=t.dynCall_vidiijj=t.asm.ri).apply(null,arguments)},vy=t.dynCall_viiiiij=function(){return(vy=t.dynCall_viiiiij=t.asm.si).apply(null,arguments)},jy=t.dynCall_ijj=function(){return(jy=t.dynCall_ijj=t.asm.ti).apply(null,arguments)},wy=t.dynCall_ijjiii=function(){return(wy=t.dynCall_ijjiii=t.asm.ui).apply(null,arguments)},By=t.dynCall_vijijjji=function(){return(By=t.dynCall_vijijjji=t.asm.vi).apply(null,arguments)},Iy=t.dynCall_viiiiijjji=function(){return(Iy=t.dynCall_viiiiijjji=t.asm.wi).apply(null,arguments)},Ty=t.dynCall_viijijj=function(){return(Ty=t.dynCall_viijijj=t.asm.xi).apply(null,arguments)},Sy=t.dynCall_iiijiijj=function(){return(Sy=t.dynCall_iiijiijj=t.asm.yi).apply(null,arguments)},Dy=t.dynCall_viiijijjj=function(){return(Dy=t.dynCall_viiijijjj=t.asm.zi).apply(null,arguments)},Ay=t.dynCall_iijiijj=function(){return(Ay=t.dynCall_iijiijj=t.asm.Ai).apply(null,arguments)},Oy=t.dynCall_viiijjjji=function(){return(Oy=t.dynCall_viiijjjji=t.asm.Bi).apply(null,arguments)},Fy=t.dynCall_viiiijiii=function(){return(Fy=t.dynCall_viiiijiii=t.asm.Ci).apply(null,arguments)},My=t.dynCall_iijii=function(){return(My=t.dynCall_iijii=t.asm.Di).apply(null,arguments)},Cy=t.dynCall_vijjiiii=function(){return(Cy=t.dynCall_vijjiiii=t.asm.Ei).apply(null,arguments)},Uy=t.dynCall_vijijjiiiii=function(){return(Uy=t.dynCall_vijijjiiiii=t.asm.Fi).apply(null,arguments)},Vy=t.dynCall_vijjiiiii=function(){return(Vy=t.dynCall_vijjiiiii=t.asm.Gi).apply(null,arguments)},ky=t.dynCall_iiijjji=function(){return(ky=t.dynCall_iiijjji=t.asm.Hi).apply(null,arguments)},Ry=t.dynCall_iiiiijjj=function(){return(Ry=t.dynCall_iiiiijjj=t.asm.Ii).apply(null,arguments)},Ey=t.dynCall_jijiiii=function(){return(Ey=t.dynCall_jijiiii=t.asm.Ji).apply(null,arguments)},Ny=t.dynCall_iiijjjii=function(){return(Ny=t.dynCall_iiijjjii=t.asm.Ki).apply(null,arguments)},Py=t.dynCall_iiiiijjji=function(){return(Py=t.dynCall_iiiiijjji=t.asm.Li).apply(null,arguments)},xy=t.dynCall_viijiji=function(){return(xy=t.dynCall_viijiji=t.asm.Mi).apply(null,arguments)};function qw(o){var a=B();try{Y.get(o)()}catch(c){if(I(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function zw(o,a,c){var l=B();try{Y.get(o)(a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function Ww(o,a){var c=B();try{return Y.get(o)(a)}catch(l){if(I(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function Hw(o,a,c){var l=B();try{return Y.get(o)(a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function Yw(o,a){var c=B();try{Y.get(o)(a)}catch(l){if(I(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function $w(o,a,c,l){var d=B();try{return Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function Gw(o,a,c,l,d,f){var h=B();try{return Y.get(o)(a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function Jw(o,a,c,l,d){var f=B();try{Y.get(o)(a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function Kw(o,a,c,l,d){var f=B();try{return Y.get(o)(a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function Zw(o,a,c,l){var d=B();try{return Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function Xw(o,a,c,l){var d=B();try{return Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function Qw(o,a,c,l){var d=B();try{Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function eB(o,a,c,l){var d=B();try{Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function tB(o,a,c,l){var d=B();try{Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function iB(o,a,c){var l=B();try{return Y.get(o)(a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function rB(o,a,c){var l=B();try{return Y.get(o)(a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function nB(o,a,c,l,d,f,h){var p=B();try{Y.get(o)(a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function sB(o,a,c,l,d,f,h,p,y){var b=B();try{return Y.get(o)(a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function oB(o,a,c,l,d,f,h){var p=B();try{return Y.get(o)(a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function aB(o,a,c,l,d,f,h,p){var y=B();try{return Y.get(o)(a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function uB(o,a,c,l,d,f){var h=B();try{Y.get(o)(a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function cB(o){var a=B();try{return Y.get(o)()}catch(c){if(I(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function lB(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{return Y.get(o)(a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function dB(o,a,c,l,d,f,h,p){var y=B();try{Y.get(o)(a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function fB(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{return Y.get(o)(a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function hB(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{Y.get(o)(a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function pB(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne){var ye=B();try{Y.get(o)(a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne)}catch(Be){if(I(ye),Be!==Be+0&&Be!=="longjmp")throw Be;T(1,0)}}function yB(o,a,c,l,d){var f=B();try{return Y.get(o)(a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function _B(o,a,c,l,d){var f=B();try{return Y.get(o)(a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function mB(o,a,c,l,d,f){var h=B();try{Y.get(o)(a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function bB(o,a,c){var l=B();try{Y.get(o)(a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function gB(o,a,c){var l=B();try{Y.get(o)(a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function vB(o,a){var c=B();try{return Y.get(o)(a)}catch(l){if(I(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function jB(o,a,c,l){var d=B();try{return Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function wB(o,a,c,l,d,f,h,p,y){var b=B();try{Y.get(o)(a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function BB(o,a,c,l,d,f){var h=B();try{return Y.get(o)(a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function IB(o,a,c,l){var d=B();try{Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function TB(o,a,c,l){var d=B();try{Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function SB(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne){var ye=B();try{return Y.get(o)(a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne)}catch(Be){if(I(ye),Be!==Be+0&&Be!=="longjmp")throw Be;T(1,0)}}function DB(o,a,c,l,d,f,h,p,y,b,v,w,D,M){var E=B();try{Y.get(o)(a,c,l,d,f,h,p,y,b,v,w,D,M)}catch(ne){if(I(E),ne!==ne+0&&ne!=="longjmp")throw ne;T(1,0)}}function AB(o,a,c,l,d,f,h,p,y,b){var v=B();try{Y.get(o)(a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function OB(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne,ye,Be,V,G,Fe){var _e=B();try{return Y.get(o)(a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne,ye,Be,V,G,Fe)}catch(ft){if(I(_e),ft!==ft+0&&ft!=="longjmp")throw ft;T(1,0)}}function FB(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne,ye,Be,V,G){var Fe=B();try{return Y.get(o)(a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne,ye,Be,V,G)}catch(_e){if(I(Fe),_e!==_e+0&&_e!=="longjmp")throw _e;T(1,0)}}function MB(o,a,c){var l=B();try{return Y.get(o)(a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function CB(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{Y.get(o)(a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function UB(o,a){var c=B();try{return Y.get(o)(a)}catch(l){if(I(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function VB(o,a,c){var l=B();try{return Y.get(o)(a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function kB(o,a,c){var l=B();try{return Y.get(o)(a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function RB(o,a,c,l){var d=B();try{return Y.get(o)(a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function EB(o,a,c,l,d,f,h,p,y,b){var v=B();try{Y.get(o)(a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function NB(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{Y.get(o)(a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function PB(o,a){var c=B();try{return Y.get(o)(a)}catch(l){if(I(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function xB(o,a){var c=B();try{return Y.get(o)(a)}catch(l){if(I(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function LB(o,a,c,l,d){var f=B();try{return Uf(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function qB(o,a,c,l,d,f,h){var p=B();try{Af(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function zB(o,a,c,l,d){var f=B();try{Lf(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function WB(o,a,c,l,d,f,h){var p=B();try{return Vf(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function HB(o,a,c,l){var d=B();try{Df(o,a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function YB(o,a,c,l,d,f,h){var p=B();try{zf(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function $B(o,a,c,l,d,f){var h=B();try{wf(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function GB(o,a,c,l,d,f,h,p,y,b){var v=B();try{Bf(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function JB(o,a,c,l,d){var f=B();try{return If(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function KB(o,a,c,l,d,f,h,p,y){var b=B();try{Tf(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function ZB(o,a,c,l){var d=B();try{return Sf(o,a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function XB(o,a){var c=B();try{return Of(o,a)}catch(l){if(I(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function QB(o,a,c,l,d,f,h,p){var y=B();try{Ff(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function eI(o,a,c,l,d,f,h,p){var y=B();try{Mf(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function tI(o,a,c,l,d,f,h,p,y){var b=B();try{Mp(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function iI(o,a,c,l,d,f,h,p,y){var b=B();try{return kf(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function rI(o,a,c,l,d){var f=B();try{Pf(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function nI(o,a,c){var l=B();try{return Cf(o,a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function sI(o,a,c,l,d){var f=B();try{return jy(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function oI(o,a,c,l,d,f,h,p){var y=B();try{return wy(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function aI(o,a,c,l,d,f,h){var p=B();try{Rf(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function uI(o,a,c,l,d,f){var h=B();try{Ef(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function cI(o,a,c,l,d,f){var h=B();try{Nf(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function lI(o,a,c,l){var d=B();try{return xf(o,a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function dI(o,a,c,l,d,f){var h=B();try{return Wf(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function fI(o,a,c,l,d,f,h,p){var y=B();try{return $h(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function hI(o,a,c,l,d,f,h,p){var y=B();try{_p(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function pI(o,a,c,l,d,f,h,p){var y=B();try{return Wh(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function yI(o,a,c,l,d,f){var h=B();try{return Yf(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function _I(o,a,c,l,d,f){var h=B();try{return Th(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function mI(o,a,c,l,d,f,h,p){var y=B();try{return Hh(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function bI(o,a,c,l,d,f,h,p){var y=B();try{Yh(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function gI(o){var a=B();try{return Kf(o)}catch(c){if(I(a),c!==c+0&&c!=="longjmp")throw c;T(1,0)}}function vI(o,a,c,l,d,f,h,p){var y=B();try{return Hf(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function jI(o,a,c,l,d,f,h){var p=B();try{return $f(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function wI(o,a,c,l){var d=B();try{return Gf(o,a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function BI(o,a,c,l,d,f,h){var p=B();try{ah(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function II(o,a,c,l,d,f,h,p){var y=B();try{fh(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function TI(o,a,c,l,d,f,h,p){var y=B();try{return hh(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function SI(o,a,c,l,d,f,h,p){var y=B();try{return rh(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function DI(o,a,c,l,d,f,h,p,y){var b=B();try{return nh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function AI(o,a,c,l,d,f,h,p){var y=B();try{sh(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function OI(o,a,c,l,d,f,h,p,y){var b=B();try{return oh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function FI(o,a,c,l,d,f,h,p,y){var b=B();try{return uh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function MI(o,a,c,l,d,f,h,p,y,b){var v=B();try{return ch(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function CI(o,a,c,l,d,f,h){var p=B();try{return dh(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function UI(o,a,c,l,d){var f=B();try{return lh(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function VI(o,a,c,l,d,f,h,p,y){var b=B();try{ih(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function kI(o,a,c,l,d,f,h,p){var y=B();try{th(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function RI(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{return Xf(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function EI(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{Qf(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function NI(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{eh(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function PI(o,a,c,l,d,f,h){var p=B();try{wh(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function xI(o,a,c,l,d,f,h){var p=B();try{qh(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function LI(o,a,c,l,d,f,h,p,y){var b=B();try{Fh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function qI(o,a,c,l,d,f,h,p,y){var b=B();try{return _h(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function zI(o,a,c,l,d,f,h,p,y){var b=B();try{Lh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function WI(o,a,c,l){var d=B();try{return Jf(o,a,c,l)}catch(f){if(I(d),f!==f+0&&f!=="longjmp")throw f;T(1,0)}}function HI(o,a,c,l,d,f){var h=B();try{return mh(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function YI(o,a,c,l,d,f,h,p,y){var b=B();try{jh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function $I(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{vh(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function GI(o,a,c,l,d,f){var h=B();try{return Eh(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function JI(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{gh(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function KI(o,a,c,l,d,f,h,p,y){var b=B();try{return Ih(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function ZI(o,a,c,l,d,f,h){var p=B();try{ph(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function XI(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{return yh(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function QI(o,a,c,l,d,f,h,p,y){var b=B();try{Bh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function eT(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E){var ne=B();try{return bh(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E)}catch(ye){if(I(ne),ye!==ye+0&&ye!=="longjmp")throw ye;T(1,0)}}function tT(o,a,c,l,d,f,h,p,y){var b=B();try{return Sh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function iT(o,a,c,l,d,f,h,p){var y=B();try{return Dh(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function rT(o,a,c,l,d,f,h,p){var y=B();try{Zf(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function nT(o,a,c,l,d,f){var h=B();try{Ah(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function sT(o,a,c,l,d,f,h,p,y){var b=B();try{Oh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function oT(o,a,c,l,d,f,h){var p=B();try{return Ch(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function aT(o,a,c,l,d,f,h,p,y,b){var v=B();try{Vh(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function uT(o,a,c,l,d,f,h,p,y,b){var v=B();try{kh(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function cT(o,a,c,l,d,f,h){var p=B();try{return Uh(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function lT(o,a,c,l,d,f,h,p,y,b){var v=B();try{Rh(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function dT(o,a,c,l,d,f,h,p,y){var b=B();try{return Mh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function fT(o,a,c,l,d,f,h,p,y){var b=B();try{return zh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function hT(o,a,c,l,d,f,h,p,y){var b=B();try{Gh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function pT(o,a,c,l,d,f,h){var p=B();try{Jh(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function yT(o,a,c,l,d,f,h){var p=B();try{return Kh(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function _T(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{tp(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function mT(o,a,c,l,d,f,h,p,y,b,v,w,D){var M=B();try{ip(o,a,c,l,d,f,h,p,y,b,v,w,D)}catch(E){if(I(M),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function bT(o,a,c,l,d,f,h,p,y,b){var v=B();try{rp(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function gT(o,a,c,l,d,f,h,p,y,b,v,w,D){var M=B();try{sp(o,a,c,l,d,f,h,p,y,b,v,w,D)}catch(E){if(I(M),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function vT(o,a,c,l,d,f,h,p,y,b){var v=B();try{return Zh(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function jT(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{return Xh(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function wT(o,a,c,l,d,f,h,p,y,b){var v=B();try{return Qh(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function BT(o,a,c,l,d,f,h,p,y,b){var v=B();try{return ep(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function IT(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{op(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function TT(o,a,c,l,d,f,h,p,y,b,v,w,D){var M=B();try{ap(o,a,c,l,d,f,h,p,y,b,v,w,D)}catch(E){if(I(M),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function ST(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne){var ye=B();try{up(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne)}catch(Be){if(I(ye),Be!==Be+0&&Be!=="longjmp")throw Be;T(1,0)}}function DT(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne,ye,Be){var V=B();try{cp(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne,ye,Be)}catch(G){if(I(V),G!==G+0&&G!=="longjmp")throw G;T(1,0)}}function AT(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{np(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function OT(o,a,c,l,d,f){var h=B();try{return ny(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function FT(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{return sy(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function MT(o,a,c,l,d,f,h,p,y){var b=B();try{return oy(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function CT(o,a,c,l,d,f,h,p){var y=B();try{return lp(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function UT(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{dp(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function VT(o,a,c,l,d,f,h,p,y){var b=B();try{return mp(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function kT(o,a,c,l,d,f,h){var p=B();try{return fp(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function RT(o,a,c,l,d,f,h){var p=B();try{return hp(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function ET(o,a,c,l,d,f,h){var p=B();try{return pp(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function NT(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{return yp(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function PT(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E){var ne=B();try{return bp(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E)}catch(ye){if(I(ne),ye!==ye+0&&ye!=="longjmp")throw ye;T(1,0)}}function xT(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{return gp(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function LT(o,a,c,l,d,f,h,p,y){var b=B();try{return vp(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function qT(o,a,c){var l=B();try{return jp(o,a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function zT(o,a){var c=B();try{return wp(o,a)}catch(l){if(I(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function WT(o,a){var c=B();try{return Bp(o,a)}catch(l){if(I(c),l!==l+0&&l!=="longjmp")throw l;T(1,0)}}function HT(o,a,c,l,d,f,h){var p=B();try{return ay(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function YT(o,a,c,l,d,f){var h=B();try{return Zp(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function $T(o,a,c,l,d,f,h,p,y){var b=B();try{return Dp(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function GT(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{return Ap(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function JT(o,a,c,l,d,f,h,p,y,b){var v=B();try{xh(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function KT(o,a,c,l,d,f,h){var p=B();try{return Tp(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function ZT(o,a,c,l,d,f,h,p,y,b){var v=B();try{return Ip(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function XT(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne,ye){var Be=B();try{Sp(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E,ne,ye)}catch(V){if(I(Be),V!==V+0&&V!=="longjmp")throw V;T(1,0)}}function QT(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{return Op(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function e1(o,a,c,l,d,f,h,p,y){var b=B();try{Fp(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function t1(o,a,c,l,d,f,h,p,y,b){var v=B();try{return Xp(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function i1(o,a,c,l,d,f,h,p,y,b){var v=B();try{Cp(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function r1(o,a,c,l,d,f,h,p){var y=B();try{return Up(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function n1(o,a,c,l,d,f,h,p,y,b,v,w,D){var M=B();try{return Vp(o,a,c,l,d,f,h,p,y,b,v,w,D)}catch(E){if(I(M),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function s1(o,a,c,l,d,f,h,p){var y=B();try{return kp(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function o1(o,a,c,l,d,f,h,p,y){var b=B();try{return Qp(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function a1(o,a,c,l,d,f,h,p,y,b,v,w,D,M){var E=B();try{return ey(o,a,c,l,d,f,h,p,y,b,v,w,D,M)}catch(ne){if(I(E),ne!==ne+0&&ne!=="longjmp")throw ne;T(1,0)}}function u1(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{qp(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function c1(o,a,c){var l=B();try{return Np(o,a,c)}catch(d){if(I(l),d!==d+0&&d!=="longjmp")throw d;T(1,0)}}function l1(o,a,c,l,d){var f=B();try{return zp(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function d1(o,a,c,l,d,f,h){var p=B();try{Lp(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function f1(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E){var ne=B();try{Ep(o,a,c,l,d,f,h,p,y,b,v,w,D,M,E)}catch(ye){if(I(ne),ye!==ye+0&&ye!=="longjmp")throw ye;T(1,0)}}function h1(o,a,c,l,d){var f=B();try{return Pp(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function p1(o,a,c,l,d){var f=B();try{xp(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function y1(o,a,c,l,d,f,h,p,y,b){var v=B();try{return Wp(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function _1(o,a,c,l,d,f,h,p,y,b){var v=B();try{return Hp(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function m1(o,a,c,l,d,f,h,p,y,b){var v=B();try{Yp(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function b1(o,a,c,l,d,f,h,p,y,b){var v=B();try{$p(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function g1(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{Gp(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function v1(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{Jp(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function j1(o,a,c,l,d){var f=B();try{return Kp(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function w1(o,a,c,l,d,f,h,p,y,b){var v=B();try{return ty(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function B1(o,a,c,l,d,f,h,p,y){var b=B();try{return iy(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function I1(o,a,c,l,d,f,h,p,y,b){var v=B();try{return ry(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function T1(o,a,c,l,d,f,h,p){var y=B();try{return uy(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function S1(o,a,c,l,d,f,h,p,y){var b=B();try{cy(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function D1(o,a,c,l,d){var f=B();try{return qf(o,a,c,l,d)}catch(h){if(I(f),h!==h+0&&h!=="longjmp")throw h;T(1,0)}}function A1(o,a,c,l,d,f,h,p,y,b,v,w,D){var M=B();try{ly(o,a,c,l,d,f,h,p,y,b,v,w,D)}catch(E){if(I(M),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function O1(o,a,c,l,d,f,h,p,y){var b=B();try{Nh(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function F1(o,a,c,l,d,f,h,p){var y=B();try{return dy(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function M1(o,a,c,l,d,f,h,p,y){var b=B();try{fy(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function C1(o,a,c,l,d,f,h,p){var y=B();try{return hy(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function U1(o,a,c,l,d,f,h,p,y){var b=B();try{py(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function V1(o,a,c,l,d,f,h){var p=B();try{return yy(o,a,c,l,d,f,h)}catch(y){if(I(p),y!==y+0&&y!=="longjmp")throw y;T(1,0)}}function k1(o,a,c,l,d,f,h,p){var y=B();try{return _y(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function R1(o,a,c,l,d,f,h,p,y,b){var v=B();try{my(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function E1(o,a,c,l,d,f,h,p,y){var b=B();try{by(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function N1(o,a,c,l,d,f,h,p,y){var b=B();try{gy(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function P1(o,a,c,l,d,f,h,p){var y=B();try{vy(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function x1(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{By(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}function L1(o,a,c,l,d,f){var h=B();try{return Rp(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function q1(o,a,c,l,d,f,h,p,y,b){var v=B();try{Ty(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function z1(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{return Sy(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function W1(o,a,c,l,d,f,h,p,y,b,v,w,D){var M=B();try{Iy(o,a,c,l,d,f,h,p,y,b,v,w,D)}catch(E){if(I(M),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function H1(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{Ph(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function Y1(o,a,c,l,d,f,h,p,y,b,v,w,D){var M=B();try{Dy(o,a,c,l,d,f,h,p,y,b,v,w,D)}catch(E){if(I(M),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function $1(o,a,c,l,d,f,h,p,y,b){var v=B();try{return Ay(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function G1(o,a,c,l,d,f,h,p,y,b){var v=B();try{return ky(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function J1(o,a,c,l,d,f,h,p,y,b,v,w,D){var M=B();try{Oy(o,a,c,l,d,f,h,p,y,b,v,w,D)}catch(E){if(I(M),E!==E+0&&E!=="longjmp")throw E;T(1,0)}}function K1(o,a,c,l,d,f,h,p,y,b){var v=B();try{Fy(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function Z1(o,a,c,l,d,f){var h=B();try{return My(o,a,c,l,d,f)}catch(p){if(I(h),p!==p+0&&p!=="longjmp")throw p;T(1,0)}}function X1(o,a,c,l,d,f,h,p,y,b,v,w,D,M){var E=B();try{Uy(o,a,c,l,d,f,h,p,y,b,v,w,D,M)}catch(ne){if(I(E),ne!==ne+0&&ne!=="longjmp")throw ne;T(1,0)}}function Q1(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{Vy(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function eS(o,a,c,l,d,f,h,p,y,b){var v=B();try{Cy(o,a,c,l,d,f,h,p,y,b)}catch(w){if(I(v),w!==w+0&&w!=="longjmp")throw w;T(1,0)}}function tS(o,a,c,l,d,f,h,p,y){var b=B();try{xy(o,a,c,l,d,f,h,p,y)}catch(v){if(I(b),v!==v+0&&v!=="longjmp")throw v;T(1,0)}}function iS(o,a,c,l,d,f,h,p){var y=B();try{return Ey(o,a,c,l,d,f,h,p)}catch(b){if(I(y),b!==b+0&&b!=="longjmp")throw b;T(1,0)}}function rS(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{return Ny(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function nS(o,a,c,l,d,f,h,p,y,b,v){var w=B();try{return Ry(o,a,c,l,d,f,h,p,y,b,v)}catch(D){if(I(w),D!==D+0&&D!=="longjmp")throw D;T(1,0)}}function sS(o,a,c,l,d,f,h,p,y,b,v,w){var D=B();try{return Py(o,a,c,l,d,f,h,p,y,b,v,w)}catch(M){if(I(D),M!==M+0&&M!=="longjmp")throw M;T(1,0)}}t.ccall=_j;var ho;function po(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var oS=!1;ls=function o(){ho||Cu(),ho||(ls=o)};function aS(o){var a=t._main,c=0,l=0;try{var d=a(c,l);return uS(d,!0),d}catch(f){return zj(f)}finally{oS=!0}}function Cu(o){if(o=o||m,Dr>0||(Fj(),Dr>0))return;function a(){ho||(ho=!0,t.calledRun=!0,!Bu&&(Mj(),Cj(),r(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),Ly&&aS(o),Vj()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),a()},1)):a()}t.run=Cu;function uS(o,a){io=o,Iu()||Uj(),cS(o)}function cS(o){io=o,Iu()||(t.onExit&&t.onExit(o),Bu=!0),S(o,new po(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var Ly=!0;return t.noInitialRun&&(Ly=!1),Cu(),e.ready}}(),uj=aV;var sf=class extends ju{constructor(e,t,r,n){super(e,t);this.mainModuleURL=r,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${t} path=${e}`)}instantiateWasm(e,t){return globalThis.DUCKDB_RUNTIME=this._runtime,WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(fetch(this.mainModuleURL),e).then(r=>{t(r.instance,r.module)}):fetch(this.mainModuleURL).then(r=>r.arrayBuffer()).then(r=>WebAssembly.instantiate(r,e).then(n=>{t(n.instance,n.module)})).catch(r=>{console.error("Failed to instantiate WASM:",r)}),[]}};var lj=class extends sf{constructor(e,t,r,n=null){super(e,t,r,n)}instantiateImpl(e){return uj({...e,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}};var yt={fileInfoCache:new Map,getFileInfo(i,e){try{let t=yt.fileInfoCache.get(e);if(t)return t;let[r,n,s]=we(i,"duckdb_web_fs_get_file_info_by_id",["number"],[e]);if(r!==ge.SUCCESS)return null;let u=fe(i,n,s);Pe(i);let m=JSON.parse(u);if(m==null)return null;let j={...m,blob:null};return yt.fileInfoCache.set(e,j),j}catch{return null}},testPlatformFeature:(i,e)=>{switch(e){case 1:return typeof BigInt64Array!="undefined";default:return console.warn(`test for unknown feature: ${e}`),!1}},openFile:(i,e)=>{try{yt.fileInfoCache.delete(e);let t=yt.getFileInfo(i,e);switch(t?.dataProtocol){case lt.HTTP:{let r=null;try{let n=new XMLHttpRequest;n.open("HEAD",t.dataUrl,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let s=n.getResponseHeader("Content-Length");if(n.status==206&&s!==null){let u=i._malloc(2*8);return i.HEAPF64[(u>>3)+0]=+s,i.HEAPF64[(u>>3)+1]=0,u}}catch(n){r=n,console.warn(`HEAD request with range header failed: ${n}`)}if(t.allowFullHttpReads){console.warn(`falling back to full HTTP read for: ${t.dataUrl}`);let n=new XMLHttpRequest;if(n.open("GET",t.dataUrl,!1),n.responseType="arraybuffer",n.send(null),n.status==200){let s=i._malloc(n.response.byteLength),u=new Uint8Array(n.response,0,n.response.byteLength);i.HEAPU8.set(u,s);let m=i._malloc(2*8);return i.HEAPF64[(m>>3)+0]=n.response.byteLength,i.HEAPF64[(m>>3)+1]=s,m}}if(r!=null)throw new Error(`Reading file ${t.fileName} failed with error: ${r}`);return 0}case lt.NATIVE:{let r=yt._files?.get(t.fileName);if(r){let u=i._malloc(2*8);return i.HEAPF64[(u>>3)+0]=r.size,i.HEAPF64[(u>>3)+1]=0,u}console.warn(`Buffering missing file: ${t.fileName}`);let n=i._malloc(2*8),s=i._malloc(1);return i.HEAPF64[(n>>3)+0]=1,i.HEAPF64[(n>>3)+1]=s,n}}}catch(t){console.error(t.toString()),ji(i,t.toString())}return 0},glob:(i,e,t)=>{try{let r=fe(i,e,t);if(r.startsWith("http")){let n=new XMLHttpRequest;if(n.open("HEAD",r,!1),n.send(null),n.status!=200&&n.status!==206){ji(i,`HEAD request failed: ${r}`);return}i.ccall("duckdb_web_fs_glob_add_path",null,["string"],[r])}}catch(r){return ji(i,r.toString()),0}},checkFile:(i,e,t)=>{try{let r=fe(i,e,t);if(r.startsWith("http")){let n=new XMLHttpRequest;n.open("HEAD",r,!1),n.setRequestHeader("Range","bytes=0-"),n.send(null);let s=!1;if(n.status==206)s=!0;else if(n.status==200)s=n.getResponseHeader("Accept-Ranges")==="bytes";else return!1;return!!s}}catch{return!1}return!1},syncFile:(i,e)=>{},closeFile:(i,e)=>{let t=yt.getFileInfo(i,e);switch(yt.fileInfoCache.delete(e),t?.dataProtocol){case lt.HTTP:break;case lt.NATIVE:return}},truncateFile:(i,e,t)=>{switch(yt.getFileInfo(i,e)?.dataProtocol){case lt.HTTP:ji(i,"Cannot truncate a http file");return;case lt.NATIVE:ji(i,"truncateFile not implemented");return}return 0},readFile(i,e,t,r,n){try{let s=yt.getFileInfo(i,e);switch(s?.dataProtocol){case lt.HTTP:{if(!s.dataUrl)throw new Error(`Missing data URL for file ${e}`);try{let u=new XMLHttpRequest;if(u.open("GET",s.dataUrl,!1),u.responseType="arraybuffer",u.setRequestHeader("Range",`bytes=${n}-${n+r-1}`),u.send(null),u.status==206||u.status==200&&r==u.response.byteLength&&n==0){let m=new Uint8Array(u.response,0,Math.min(u.response.byteLength,r));return i.HEAPU8.set(m,t),m.byteLength}else throw u.status==200?new Error(`Range request for ${s.dataUrl} did not return a partial response: ${u.status} "${u.statusText}"`):new Error(`Range request for ${s.dataUrl} did returned non-success status: ${u.status} "${u.statusText}"`)}catch(u){throw new Error(`Range request for ${s.dataUrl} failed with error: ${u}"`)}}case lt.NATIVE:{let u=yt._files?.get(s.fileName);if(!u)throw new Error(`No handle available for file: ${s.fileName}`);let m=u.slice(n,n+r),j=new Uint8Array(new FileReaderSync().readAsArrayBuffer(m));return i.HEAPU8.set(j,t),j.byteLength}}return 0}catch(s){return ji(i,s.toString()),0}},writeFile:(i,e,t,r,n)=>{switch(yt.getFileInfo(i,e)?.dataProtocol){case lt.HTTP:return ji(i,"Cannot write to HTTP file"),0;case lt.NATIVE:return ji(i,"writefile not implemented"),0}return 0},getLastFileModificationTime:(i,e)=>{let t=yt.getFileInfo(i,e);switch(t?.dataProtocol){case lt.NATIVE:{if(!yt._files?.get(t.fileName))throw Error(`No handle available for file: ${t.fileName}`);return 0}case lt.HTTP:return new Date().getTime()}return 0},checkDirectory:(i,e,t)=>{let r=fe(i,e,t);return console.log(`checkDirectory: ${r}`),!1},createDirectory:(i,e,t)=>{let r=fe(i,e,t);console.log(`createDirectory: ${r}`)},removeDirectory:(i,e,t)=>{let r=fe(i,e,t);console.log(`removeDirectory: ${r}`)},listDirectoryEntries:(i,e,t)=>{let r=fe(i,e,t);return console.log(`listDirectoryEntries: ${r}`),!1},moveFile:(i,e,t,r,n)=>{},removeFile:(i,e,t)=>{}};return uV;})();
|
|
19
|
-
/*! *****************************************************************************
|
|
20
|
-
Copyright (c) Microsoft Corporation.
|
|
21
|
-
|
|
22
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
23
|
-
purpose with or without fee is hereby granted.
|
|
24
|
-
|
|
25
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
26
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
27
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
28
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
29
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
30
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
31
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
32
|
-
***************************************************************************** */
|
|
33
|
-
//# sourceMappingURL=duckdb-browser-blocking.js.map
|