EVOLUTION-MANAGER
Edit File: apache-arrow-util.4d0490a94b199a11f40c.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"+fZC":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t,e,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var y=n("J0lL"),p=n("1vD8"),h=n("LF0+"),d=n("HXf3"),v=n("fCxL"),b=n("YxFk"),m=n("3LVT"),g=n("xW78"),w=n("fIDe"),_=function(t){function e(t,n,r,o){var u;return i(this,e),(u=a(this,s(e).call(this))).nodesIndex=-1,u.buffersIndex=-1,u.bytes=t,u.nodes=n,u.buffers=r,u.dictionaries=o,u}return f(e,d.Visitor),u(e,[{key:"visit",value:function(t){return c(s(e.prototype),"visit",this).call(this,t instanceof p.Field?t.type:t)}},{key:"visitNull",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode()).length;return y.Data.Null(t,0,e)}},{key:"visitBool",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Bool(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitInt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Int(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitFloat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Float(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitUtf8",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Utf8(t,0,n,r,this.readNullBitmap(t,r),this.readOffsets(t),this.readData(t))}},{key:"visitBinary",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Binary(t,0,n,r,this.readNullBitmap(t,r),this.readOffsets(t),this.readData(t))}},{key:"visitFixedSizeBinary",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.FixedSizeBinary(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitDate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Date(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitTimestamp",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Timestamp(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitTime",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Time(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitDecimal",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Decimal(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitList",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.List(t,0,n,r,this.readNullBitmap(t,r),this.readOffsets(t),this.visit(t.children[0]))}},{key:"visitStruct",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Struct(t,0,n,r,this.readNullBitmap(t,r),this.visitMany(t.children))}},{key:"visitUnion",value:function(t){return t.mode===g.UnionMode.Sparse?this.visitSparseUnion(t):this.visitDenseUnion(t)}},{key:"visitDenseUnion",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Union(t,0,n,r,this.readNullBitmap(t,r),this.readTypeIds(t),this.readOffsets(t),this.visitMany(t.children))}},{key:"visitSparseUnion",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Union(t,0,n,r,this.readNullBitmap(t,r),this.readTypeIds(t),this.visitMany(t.children))}},{key:"visitDictionary",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Dictionary(t,0,n,r,this.readNullBitmap(t,r),this.readData(t.indices),this.readDictionary(t))}},{key:"visitInterval",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Interval(t,0,n,r,this.readNullBitmap(t,r),this.readData(t))}},{key:"visitFixedSizeList",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.FixedSizeList(t,0,n,r,this.readNullBitmap(t,r),this.visit(t.children[0]))}},{key:"visitMap",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=e.length,r=e.nullCount;return y.Data.Map(t,0,n,r,this.readNullBitmap(t,r),this.readOffsets(t),this.visit(t.children[0]))}},{key:"nextFieldNode",value:function(){return this.nodes[++this.nodesIndex]}},{key:"nextBufferRange",value:function(){return this.buffers[++this.buffersIndex]}},{key:"readNullBitmap",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange();return e>0&&this.readData(t,n)||new Uint8Array(0)}},{key:"readOffsets",value:function(t,e){return this.readData(t,e)}},{key:"readTypeIds",value:function(t,e){return this.readData(t,e)}},{key:"readData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange(),n=e.length,r=e.offset;return this.bytes.subarray(r,r+n)}},{key:"readDictionary",value:function(t){return this.dictionaries.get(t.id)}}]),e}();e.VectorLoader=_;var k=function(t){function e(t,n,r,o){var u;return i(this,e),(u=a(this,s(e).call(this,new Uint8Array(0),n,r,o))).sources=t,u}return f(e,_),u(e,[{key:"readNullBitmap",value:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange()).offset;return e<=0?new Uint8Array(0):v.packBools(this.sources[n])}},{key:"readOffsets",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange()).offset;return w.toArrayBufferView(Uint8Array,w.toArrayBufferView(Int32Array,this.sources[e]))}},{key:"readTypeIds",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange()).offset;return w.toArrayBufferView(Uint8Array,w.toArrayBufferView(t.ArrayType,this.sources[e]))}},{key:"readData",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange()).offset,n=this.sources;return h.DataType.isTimestamp(t)?w.toArrayBufferView(Uint8Array,m.Int64.convertArray(n[e])):(h.DataType.isInt(t)||h.DataType.isTime(t))&&64===t.bitWidth?w.toArrayBufferView(Uint8Array,m.Int64.convertArray(n[e])):h.DataType.isDate(t)&&t.unit===g.DateUnit.MILLISECOND?w.toArrayBufferView(Uint8Array,m.Int64.convertArray(n[e])):h.DataType.isDecimal(t)?w.toArrayBufferView(Uint8Array,m.Int128.convertArray(n[e])):h.DataType.isBinary(t)||h.DataType.isFixedSizeBinary(t)?function(t){for(var e=t.join(""),n=new Uint8Array(e.length/2),r=0;r<e.length;r+=2)n[r>>1]=parseInt(e.substr(r,2),16);return n}(n[e]):h.DataType.isBool(t)?v.packBools(n[e]):h.DataType.isUtf8(t)?b.encodeUtf8(n[e].join("")):w.toArrayBufferView(Uint8Array,w.toArrayBufferView(t.ArrayType,n[e].map(function(t){return+t})))}}]),e}();e.JSONVectorLoader=k},"0C15":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("Il/q"),s=n("v/3b"),f=n("qF1w"),l=n("LF0+"),y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}var n,r,y;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,f.BaseVector),n=e,(r=[{key:"asList",value:function(){var t=this.type.children[0];return s.Vector.new(this.data.clone(new l.List(t)))}},{key:"bind",value:function(t){var e=this.getChildAt(0),n=this.valueOffsets,r=n[t],i=n[t+1];return new c.MapRow(e.slice(r,i))}}])&&i(n.prototype,r),y&&i(n,y),e}();e.MapVector=y},"1fhD":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var u=t.apply(e,n);function a(t){i(u,r,o,a,c,"next",t)}function c(t){i(u,r,o,a,c,"throw",t)}a(void 0)})}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var y=n("i1db");e.ITERATOR_DONE=Object.freeze({done:!0,value:void 0});var p=function(){function t(e){s(this,t),this._json=e}return l(t,[{key:"schema",get:function(){return this._json.schema}},{key:"batches",get:function(){return this._json.batches||[]}},{key:"dictionaries",get:function(){return this._json.dictionaries||[]}}]),t}();e.ArrowJSON=p;var h=function(){function t(){s(this,t)}return l(t,[{key:"tee",value:function(){return this._getDOMStream().tee()}},{key:"pipe",value:function(t,e){return this._getNodeStream().pipe(t,e)}},{key:"pipeTo",value:function(t,e){return this._getDOMStream().pipeTo(t,e)}},{key:"pipeThrough",value:function(t,e){return this._getDOMStream().pipeThrough(t,e)}},{key:"_getDOMStream",value:function(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}},{key:"_getNodeStream",value:function(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}]),t}();e.ReadableInterop=h;var d=function(t){function n(){var t;return s(this,n),(t=u(this,a(n).call(this)))._values=[],t.resolvers=[],t._closedPromise=new Promise(function(e){return t._closedPromiseResolve=e}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(n,h),l(n,[{key:"cancel",value:function(){var t=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.return(e);case 2:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"write",value:function(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}},{key:"abort",value:function(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}},{key:"close",value:function(){if(this._closedPromiseResolve){for(var t=this.resolvers;t.length>0;)t.shift().resolve(e.ITERATOR_DONE);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}},{key:Symbol.asyncIterator,value:function(){return this}},{key:"toDOMStream",value:function(t){return y.default.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}},{key:"toNodeStream",value:function(t){return y.default.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}},{key:"throw",value:function(){var t=o(regeneratorRuntime.mark(function t(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.abort(n);case 2:return t.abrupt("return",e.ITERATOR_DONE);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=o(regeneratorRuntime.mark(function t(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.close();case 2:return t.abrupt("return",e.ITERATOR_DONE);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"read",value:function(){var t=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next(e,"read");case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"peek",value:function(){var t=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next(e,"peek");case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"next",value:function(){var t=this;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(function(e,n){t.resolvers.push({resolve:e,reject:n})}):Promise.resolve(e.ITERATOR_DONE)}},{key:"_ensureOpen",value:function(){if(this._closedPromiseResolve)return!0;throw new Error("".concat(this," is closed"))}},{key:"closed",get:function(){return this._closedPromise}}]),n}();e.AsyncQueue=d},"1vD8":function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var s=n("LF0+"),f=n("uCoJ"),l=n("uCoJ"),y=n("nP89"),p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;u(this,t),this.fields=e||[],this.metadata=n||new Map,r||(r=v(e)),this.dictionaries=r}return c(t,[{key:"toString",value:function(){return"Schema<{ ".concat(this.fields.map(function(t,e){return"".concat(e,": ").concat(t)}).join(", ")," }>")}},{key:"compareTo",value:function(t){return y.instance.compareSchemas(this,t)}},{key:"select",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.reduce(function(t,e){return(t[e]=!0)&&t},Object.create(null));return new t(this.fields.filter(function(t){return i[t.name]}),this.metadata)}},{key:"selectAt",value:function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return new t(r.map(function(t){return e.fields[t]}).filter(Boolean),this.metadata)}},{key:"assign",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0]instanceof t?n[0]:new t(f.selectArgs(h,n)),u=o(this.fields),a=d(d(new Map,this.metadata),i.metadata),c=i.fields.filter(function(t){var e=u.findIndex(function(e){return e.name===t.name});return!~e||(u[e]=t.clone({metadata:d(d(new Map,u[e].metadata),t.metadata)}))&&!1}),s=v(c,new Map);return new t([].concat(o(u),o(c)),a,new Map([].concat(o(this.dictionaries),o(s))))}},{key:Symbol.toStringTag,get:function(){return"Schema"}}],[{key:"from",value:function(){return t.new(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])}},{key:"new",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return new t(l.selectFieldArgs(n)[0])}}]),t}();e.Schema=p;var h=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;u(this,t),this.name=e,this.type=n,this.nullable=r,this.metadata=i||new Map}return c(t,[{key:"toString",value:function(){return"".concat(this.name,": ").concat(this.type)}},{key:"compareTo",value:function(t){return y.instance.compareField(this,t)}},{key:"clone",value:function(){for(var e,n,o,u,a,c,s,f,l,y,p=arguments.length,h=new Array(p),d=0;d<p;d++)h[d]=arguments[d];var v=h[0],b=h[1],m=h[2],g=h[3];return h[0]&&"object"===i(h[0])?(v=void 0===(s=(c=h[0]).name)?this.name:s,b=void 0===(f=c.type)?this.type:f,m=void 0===(l=c.nullable)?this.nullable:l,g=void 0===(y=c.metadata)?this.metadata:y):(v=void 0===(n=(e=r(h,4))[0])?this.name:n,b=void 0===(o=e[1])?this.type:o,m=void 0===(u=e[2])?this.nullable:u,g=void 0===(a=e[3])?this.metadata:a),t.new(v,b,m,g)}},{key:"typeId",get:function(){return this.type.typeId}},{key:Symbol.toStringTag,get:function(){return"Field"}}],[{key:"new",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0],u=n[1],a=n[2],c=n[3];return n[0]&&"object"===i(n[0])&&(o=n[0].name,void 0===u&&(u=n[0].type),void 0===a&&(a=n[0].nullable),void 0===c&&(c=n[0].metadata)),new t("".concat(o),u,a,c)}}]),t}();function d(t,e){return new Map([].concat(o(t||new Map),o(e||new Map)))}function v(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=-1,r=t.length;++n<r;){var i=t[n].type;if(s.DataType.isDictionary(i))if(e.has(i.id)){if(e.get(i.id)!==i.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else e.set(i.id,i.dictionary);i.children&&i.children.length>0&&v(i.children,e)}return e}e.Field=h,p.prototype.fields=null,p.prototype.metadata=null,p.prototype.dictionaries=null,h.prototype.type=null,h.prototype.name=null,h.prototype.nullable=null,h.prototype.metadata=null},"2ixf":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var f=n("xW78"),l=n("qF1w"),y=n("ffPt"),p=n("LF0+"),h=function(t){function e(){return i(this,e),u(this,a(e).apply(this,arguments))}var n,r,s;return c(e,l.BaseVector),n=e,s=[{key:"from",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 2===e.length?y.vectorFromValuesWithType(function(){return e[1]===f.DateUnit.DAY?new p.DateDay:new p.DateMillisecond},e[0]):y.vectorFromValuesWithType(function(){return new p.DateMillisecond},e[0])}}],(r=null)&&o(n.prototype,r),s&&o(n,s),e}();e.DateVector=h;var d=function(t){function e(){return i(this,e),u(this,a(e).apply(this,arguments))}return c(e,h),e}();e.DateDayVector=d;var v=function(t){function e(){return i(this,e),u(this,a(e).apply(this,arguments))}return c(e,h),e}();e.DateMillisecondVector=v},"2kVn":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t,e,n){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}function y(t){return new h(t)}function p(t){var e,n;function r(e,n){try{var o=t[e](n),u=o.value,a=u instanceof h;Promise.resolve(a?u.wrapped:u).then(function(t){a?r("next",t):i(o.done?"return":"normal",t)},function(t){r("throw",t)})}catch(t){i("throw",t)}}function i(t,i){switch(t){case"return":e.resolve({value:i,done:!0});break;case"throw":e.reject(i);break;default:e.resolve({value:i,done:!1})}(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,i){return new Promise(function(o,u){var a={key:t,arg:i,resolve:o,reject:u,next:null};n?n=n.next=a:(e=n=a,r(t,i))})},"function"!=typeof t.return&&(this.return=void 0)}function h(t){this.wrapped=t}function d(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}"function"==typeof Symbol&&Symbol.asyncIterator&&(p.prototype[Symbol.asyncIterator]=function(){return this}),p.prototype.next=function(t){return this._invoke("next",t)},p.prototype.throw=function(t){return this._invoke("throw",t)},p.prototype.return=function(t){return this._invoke("return",t)},Object.defineProperty(e,"__esModule",{value:!0});var v=n("v/3b"),b=n("xW78"),m=n("J0lL"),g=n("uD2Z"),w=n("HHvO"),_=n("LF0+"),k=function(){function t(e){var n=e.type,r=e.nullValues;s(this,t),this.length=0,this.finished=!1,this.type=n,this.children=[],this.nullValues=r,this.stride=_.strideForType(n),this._nulls=new w.BitmapBufferBuilder,r&&r.length>0&&(this._isValid=g.createIsValidFunction(r))}return l(t,[{key:"toVector",value:function(){return v.Vector.new(this.flush())}},{key:"append",value:function(t){return this.set(this.length,t)}},{key:"isValid",value:function(t){return this._isValid(t)}},{key:"set",value:function(t,e){return this.setValid(t,this.isValid(e))&&this.setValue(t,e),this}},{key:"setValue",value:function(t,e){this._setValue(this,t,e)}},{key:"setValid",value:function(t,e){return this.length=this._nulls.set(t,+e).length,e}},{key:"addChild",value:function(t){arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.numChildren);throw new Error('Cannot append children to non-nested type "'.concat(this.type,'"'))}},{key:"getChildAt",value:function(t){return this.children[t]||null}},{key:"flush",value:function(){var t=[],e=this._values,n=this._offsets,r=this._typeIds,i=this.length,o=this.nullCount;r?(t[b.BufferType.TYPE]=r.flush(i),n&&(t[b.BufferType.OFFSET]=n.flush(i))):n?(e&&(t[b.BufferType.DATA]=e.flush(n.last())),t[b.BufferType.OFFSET]=n.flush(i)):e&&(t[b.BufferType.DATA]=e.flush(i)),o>0&&(t[b.BufferType.VALIDITY]=this._nulls.flush(i));var u=m.Data.new(this.type,0,i,o,t,this.children.map(function(t){return t.flush()}));return this.clear(),u}},{key:"finish",value:function(){return this.finished=!0,this.children.forEach(function(t){return t.finish()}),this}},{key:"clear",value:function(){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(function(t){return t.clear()}),this}},{key:"ArrayType",get:function(){return this.type.ArrayType}},{key:"nullCount",get:function(){return this._nulls.numInvalid}},{key:"numChildren",get:function(){return this.children.length}},{key:"byteLength",get:function(){var t=0;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),this._typeIds&&(t+=this._typeIds.byteLength),this.children.reduce(function(t,e){return t+e.byteLength},t)}},{key:"reservedLength",get:function(){return this._nulls.reservedLength}},{key:"reservedByteLength",get:function(){var t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce(function(t,e){return t+e.reservedByteLength},t)}},{key:"valueOffsets",get:function(){return this._offsets?this._offsets.buffer:null}},{key:"values",get:function(){return this._values?this._values.buffer:null}},{key:"nullBitmap",get:function(){return this._nulls?this._nulls.buffer:null}},{key:"typeIds",get:function(){return this._typeIds?this._typeIds.buffer:null}}],[{key:"new",value:function(t){}},{key:"throughNode",value:function(t){throw new Error('"throughNode" not available in this environment')}},{key:"throughDOM",value:function(t){throw new Error('"throughDOM" not available in this environment')}},{key:"throughIterable",value:function(t){return T(t)}},{key:"throughAsyncIterable",value:function(t){return B(t)}}]),t}();e.Builder=k,k.prototype.length=1,k.prototype.stride=1,k.prototype.children=null,k.prototype.finished=!1,k.prototype.nullValues=null,k.prototype._isValid=function(){return!0};var O=function(t){function e(t){var n;return s(this,e),(n=i(this,u(e).call(this,t)))._values=new w.DataBufferBuilder(new n.ArrayType(0),n.stride),n}return a(e,k),l(e,[{key:"setValue",value:function(t,n){var r=this._values;return r.reserve(t-r.length+1),o(u(e.prototype),"setValue",this).call(this,t,n)}}]),e}();e.FixedWidthBuilder=O;var S=function(t){function e(t){var n;return s(this,e),(n=i(this,u(e).call(this,t)))._pendingLength=0,n._offsets=new w.OffsetsBufferBuilder,n}return a(e,k),l(e,[{key:"setValue",value:function(t,e){var n=this._pending||(this._pending=new Map),r=n.get(t);r&&(this._pendingLength-=r.length),this._pendingLength+=e.length,n.set(t,e)}},{key:"setValid",value:function(t,n){return!!o(u(e.prototype),"setValid",this).call(this,t,n)||((this._pending||(this._pending=new Map)).set(t,void 0),!1)}},{key:"clear",value:function(){return this._pendingLength=0,this._pending=void 0,o(u(e.prototype),"clear",this).call(this)}},{key:"flush",value:function(){return this._flush(),o(u(e.prototype),"flush",this).call(this)}},{key:"finish",value:function(){return this._flush(),o(u(e.prototype),"finish",this).call(this)}},{key:"_flush",value:function(){var t=this._pending,e=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,e),this}}]),e}();function T(t){var e=t.queueingStrategy,n=void 0===e?"count":e,r=t.highWaterMark,i=void 0===r?"bytes"!==n?1e3:Math.pow(2,14):r,o="bytes"!==n?"length":"byteLength";return regeneratorRuntime.mark(function e(n){var r,u,a,c,s,f,l,y;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0,u=k.new(t),a=!0,c=!1,s=void 0,e.prev=5,f=n[Symbol.iterator]();case 7:if(a=(l=f.next()).done){e.next=17;break}if(y=l.value,!(u.append(y)[o]>=i)){e.next=14;break}if(e.t0=++r,!e.t0){e.next=14;break}return e.next=14,u.toVector();case 14:a=!0,e.next=7;break;case 17:e.next=23;break;case 19:e.prev=19,e.t1=e.catch(5),c=!0,s=e.t1;case 23:e.prev=23,e.prev=24,a||null==f.return||f.return();case 26:if(e.prev=26,!c){e.next=29;break}throw s;case 29:return e.finish(26);case 30:return e.finish(23);case 31:if(!(u.finish().length>0||0===r)){e.next=34;break}return e.next=34,u.toVector();case 34:case"end":return e.stop()}},e,null,[[5,19,23,31],[24,,26,30]])})}function B(t){var e=t.queueingStrategy,n=void 0===e?"count":e,r=t.highWaterMark,i=void 0===r?"bytes"!==n?1e3:Math.pow(2,14):r,o="bytes"!==n?"length":"byteLength";return function(){var e,n=(e=regeneratorRuntime.mark(function e(n){var r,u,a,c,s,f,l,p,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=0,u=k.new(t),a=!0,c=!1,e.prev=4,f=d(n);case 6:return e.next=8,y(f.next());case 8:return l=e.sent,a=l.done,e.next=12,y(l.value);case 12:if(p=e.sent,a){e.next=23;break}if(h=p,!(u.append(h)[o]>=i)){e.next=20;break}if(e.t0=++r,!e.t0){e.next=20;break}return e.next=20,u.toVector();case 20:a=!0,e.next=6;break;case 23:e.next=29;break;case 25:e.prev=25,e.t1=e.catch(4),c=!0,s=e.t1;case 29:if(e.prev=29,e.prev=30,a||null==f.return){e.next=34;break}return e.next=34,y(f.return());case 34:if(e.prev=34,!c){e.next=37;break}throw s;case 37:return e.finish(34);case 38:return e.finish(29);case 39:if(!(u.finish().length>0||0===r)){e.next=42;break}return e.next=42,u.toVector();case 42:case"end":return e.stop()}},e,null,[[4,25,29,39],[30,,34,38]])}),function(){return new p(e.apply(this,arguments))});return function(t){return n.apply(this,arguments)}}()}e.VariableWidthBuilder=S},"3+te":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("i1db"),i=n("4R6c"),o=n("ZxDB"),u=n("vntC"),a=n("s9VO"),c=n("JuNI"),s=n("qN90"),f=n("WC3y");r.default.toDOMStream=a.toDOMStream,i.Builder.throughDOM=c.builderThroughDOMStream,o.RecordBatchReader.throughDOM=s.recordBatchReaderThroughDOMStream,u.RecordBatchWriter.throughDOM=f.recordBatchWriterThroughDOMStream;var l=n("55Ky");e.ArrowType=l.ArrowType,e.DateUnit=l.DateUnit,e.IntervalUnit=l.IntervalUnit,e.MessageHeader=l.MessageHeader,e.MetadataVersion=l.MetadataVersion,e.Precision=l.Precision,e.TimeUnit=l.TimeUnit,e.Type=l.Type,e.UnionMode=l.UnionMode,e.BufferType=l.BufferType,e.Data=l.Data,e.DataType=l.DataType,e.Null=l.Null,e.Bool=l.Bool,e.Int=l.Int,e.Int8=l.Int8,e.Int16=l.Int16,e.Int32=l.Int32,e.Int64=l.Int64,e.Uint8=l.Uint8,e.Uint16=l.Uint16,e.Uint32=l.Uint32,e.Uint64=l.Uint64,e.Float=l.Float,e.Float16=l.Float16,e.Float32=l.Float32,e.Float64=l.Float64,e.Utf8=l.Utf8,e.Binary=l.Binary,e.FixedSizeBinary=l.FixedSizeBinary,e.Date_=l.Date_,e.DateDay=l.DateDay,e.DateMillisecond=l.DateMillisecond,e.Timestamp=l.Timestamp,e.TimestampSecond=l.TimestampSecond,e.TimestampMillisecond=l.TimestampMillisecond,e.TimestampMicrosecond=l.TimestampMicrosecond,e.TimestampNanosecond=l.TimestampNanosecond,e.Time=l.Time,e.TimeSecond=l.TimeSecond,e.TimeMillisecond=l.TimeMillisecond,e.TimeMicrosecond=l.TimeMicrosecond,e.TimeNanosecond=l.TimeNanosecond,e.Decimal=l.Decimal,e.List=l.List,e.Struct=l.Struct,e.Union=l.Union,e.DenseUnion=l.DenseUnion,e.SparseUnion=l.SparseUnion,e.Dictionary=l.Dictionary,e.Interval=l.Interval,e.IntervalDayTime=l.IntervalDayTime,e.IntervalYearMonth=l.IntervalYearMonth,e.FixedSizeList=l.FixedSizeList,e.Map_=l.Map_,e.Table=l.Table,e.Column=l.Column,e.Schema=l.Schema,e.Field=l.Field,e.Visitor=l.Visitor,e.Vector=l.Vector,e.BaseVector=l.BaseVector,e.BinaryVector=l.BinaryVector,e.BoolVector=l.BoolVector,e.Chunked=l.Chunked,e.DateVector=l.DateVector,e.DateDayVector=l.DateDayVector,e.DateMillisecondVector=l.DateMillisecondVector,e.DecimalVector=l.DecimalVector,e.DictionaryVector=l.DictionaryVector,e.FixedSizeBinaryVector=l.FixedSizeBinaryVector,e.FixedSizeListVector=l.FixedSizeListVector,e.FloatVector=l.FloatVector,e.Float16Vector=l.Float16Vector,e.Float32Vector=l.Float32Vector,e.Float64Vector=l.Float64Vector,e.IntervalVector=l.IntervalVector,e.IntervalDayTimeVector=l.IntervalDayTimeVector,e.IntervalYearMonthVector=l.IntervalYearMonthVector,e.IntVector=l.IntVector,e.Int8Vector=l.Int8Vector,e.Int16Vector=l.Int16Vector,e.Int32Vector=l.Int32Vector,e.Int64Vector=l.Int64Vector,e.Uint8Vector=l.Uint8Vector,e.Uint16Vector=l.Uint16Vector,e.Uint32Vector=l.Uint32Vector,e.Uint64Vector=l.Uint64Vector,e.ListVector=l.ListVector,e.MapVector=l.MapVector,e.NullVector=l.NullVector,e.StructVector=l.StructVector,e.TimestampVector=l.TimestampVector,e.TimestampSecondVector=l.TimestampSecondVector,e.TimestampMillisecondVector=l.TimestampMillisecondVector,e.TimestampMicrosecondVector=l.TimestampMicrosecondVector,e.TimestampNanosecondVector=l.TimestampNanosecondVector,e.TimeVector=l.TimeVector,e.TimeSecondVector=l.TimeSecondVector,e.TimeMillisecondVector=l.TimeMillisecondVector,e.TimeMicrosecondVector=l.TimeMicrosecondVector,e.TimeNanosecondVector=l.TimeNanosecondVector,e.UnionVector=l.UnionVector,e.DenseUnionVector=l.DenseUnionVector,e.SparseUnionVector=l.SparseUnionVector,e.Utf8Vector=l.Utf8Vector,e.ByteStream=l.ByteStream,e.AsyncByteStream=l.AsyncByteStream,e.AsyncByteQueue=l.AsyncByteQueue,e.RecordBatchReader=l.RecordBatchReader,e.RecordBatchFileReader=l.RecordBatchFileReader,e.RecordBatchStreamReader=l.RecordBatchStreamReader,e.AsyncRecordBatchFileReader=l.AsyncRecordBatchFileReader,e.AsyncRecordBatchStreamReader=l.AsyncRecordBatchStreamReader,e.RecordBatchWriter=l.RecordBatchWriter,e.RecordBatchFileWriter=l.RecordBatchFileWriter,e.RecordBatchStreamWriter=l.RecordBatchStreamWriter,e.RecordBatchJSONWriter=l.RecordBatchJSONWriter,e.MessageReader=l.MessageReader,e.AsyncMessageReader=l.AsyncMessageReader,e.JSONMessageReader=l.JSONMessageReader,e.Message=l.Message,e.RecordBatch=l.RecordBatch,e.DataFrame=l.DataFrame,e.FilteredDataFrame=l.FilteredDataFrame,e.CountByResult=l.CountByResult,e.predicate=l.predicate,e.util=l.util,e.Builder=l.Builder,e.BinaryBuilder=l.BinaryBuilder,e.BoolBuilder=l.BoolBuilder,e.DateBuilder=l.DateBuilder,e.DateDayBuilder=l.DateDayBuilder,e.DateMillisecondBuilder=l.DateMillisecondBuilder,e.DecimalBuilder=l.DecimalBuilder,e.DictionaryBuilder=l.DictionaryBuilder,e.FixedSizeBinaryBuilder=l.FixedSizeBinaryBuilder,e.FixedSizeListBuilder=l.FixedSizeListBuilder,e.FloatBuilder=l.FloatBuilder,e.Float16Builder=l.Float16Builder,e.Float32Builder=l.Float32Builder,e.Float64Builder=l.Float64Builder,e.IntervalBuilder=l.IntervalBuilder,e.IntervalDayTimeBuilder=l.IntervalDayTimeBuilder,e.IntervalYearMonthBuilder=l.IntervalYearMonthBuilder,e.IntBuilder=l.IntBuilder,e.Int8Builder=l.Int8Builder,e.Int16Builder=l.Int16Builder,e.Int32Builder=l.Int32Builder,e.Int64Builder=l.Int64Builder,e.Uint8Builder=l.Uint8Builder,e.Uint16Builder=l.Uint16Builder,e.Uint32Builder=l.Uint32Builder,e.Uint64Builder=l.Uint64Builder,e.ListBuilder=l.ListBuilder,e.MapBuilder=l.MapBuilder,e.NullBuilder=l.NullBuilder,e.StructBuilder=l.StructBuilder,e.TimestampBuilder=l.TimestampBuilder,e.TimestampSecondBuilder=l.TimestampSecondBuilder,e.TimestampMillisecondBuilder=l.TimestampMillisecondBuilder,e.TimestampMicrosecondBuilder=l.TimestampMicrosecondBuilder,e.TimestampNanosecondBuilder=l.TimestampNanosecondBuilder,e.TimeBuilder=l.TimeBuilder,e.TimeSecondBuilder=l.TimeSecondBuilder,e.TimeMillisecondBuilder=l.TimeMillisecondBuilder,e.TimeMicrosecondBuilder=l.TimeMicrosecondBuilder,e.TimeNanosecondBuilder=l.TimeNanosecondBuilder,e.UnionBuilder=l.UnionBuilder,e.DenseUnionBuilder=l.DenseUnionBuilder,e.SparseUnionBuilder=l.SparseUnionBuilder,e.Utf8Builder=l.Utf8Builder},"3C8k":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("HHvO"),s=n("2kVn"),f=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=o(this,u(e).call(this,t)))._values=new c.BitmapBufferBuilder,n}var n,r,f;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,s.Builder),n=e,(r=[{key:"setValue",value:function(t,e){this._values.set(t,+e)}}])&&i(n.prototype,r),f&&i(n,f),e}();e.BoolBuilder=f},"3FF6":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("LF0+"),f=n("2kVn"),l=function(t){function e(t){var n,r=t.type,i=t.nullValues,u=t.dictionaryHashFunction;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=o(this,a(e).call(this,{type:new s.Dictionary(r.dictionary,r.indices,r.id,r.isOrdered)})))._nulls=null,n._dictionaryOffset=0,n._keysToIndices=Object.create(null),n.indices=f.Builder.new({type:n.type.indices,nullValues:i}),n.dictionary=f.Builder.new({type:n.type.dictionary,nullValues:null}),"function"==typeof u&&(n.valueToKey=u),n}var n,r,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,f.Builder),n=e,(r=[{key:"isValid",value:function(t){return this.indices.isValid(t)}},{key:"setValid",value:function(t,e){var n=this.indices;return e=n.setValid(t,e),this.length=n.length,e}},{key:"setValue",value:function(t,e){var n=this._keysToIndices,r=this.valueToKey(e),i=n[r];return void 0===i&&(n[r]=i=this._dictionaryOffset+this.dictionary.append(e).length-1),this.indices.setValue(t,i)}},{key:"flush",value:function(){var t=this.type,e=this._dictionary,n=this.dictionary.toVector(),r=this.indices.flush().clone(t);return r.dictionary=e?e.concat(n):n,this.finished||(this._dictionaryOffset+=n.length),this._dictionary=r.dictionary,this.clear(),r}},{key:"finish",value:function(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),u(a(e.prototype),"finish",this).call(this)}},{key:"clear",value:function(){return this.indices.clear(),this.dictionary.clear(),u(a(e.prototype),"clear",this).call(this)}},{key:"valueToKey",value:function(t){return"string"==typeof t?t:"".concat(t)}},{key:"values",get:function(){return this.indices.values}},{key:"nullCount",get:function(){return this.indices.nullCount}},{key:"nullBitmap",get:function(){return this.indices.nullBitmap}},{key:"byteLength",get:function(){return this.indices.byteLength+this.dictionary.byteLength}},{key:"reservedLength",get:function(){return this.indices.reservedLength+this.dictionary.reservedLength}},{key:"reservedByteLength",get:function(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}}])&&i(n.prototype,r),l&&i(n,l),e}();e.DictionaryBuilder=l},"3LVT":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});function l(t){return t<0&&(t=4294967295+t+1),"0x".concat(t.toString(16))}var y=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],p=function(){function t(e){c(this,t),this.buffer=e}return f(t,[{key:"high",value:function(){return this.buffer[1]}},{key:"low",value:function(){return this.buffer[0]}},{key:"_times",value:function(t){var e=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),n=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]]),r=e[3]*n[3];this.buffer[0]=65535&r;var i=r>>>16;return i+=r=e[2]*n[3],i+=r=e[3]*n[2]>>>0,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0<r?65536:0,this.buffer[1]+=i>>>16,this.buffer[1]+=e[1]*n[3]+e[2]*n[2]+e[3]*n[1],this.buffer[1]+=e[0]*n[3]+e[1]*n[2]+e[2]*n[1]+e[3]*n[0]<<16,this}},{key:"_plus",value:function(t){var e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=e}},{key:"lessThan",value:function(t){return this.buffer[1]<t.buffer[1]||this.buffer[1]===t.buffer[1]&&this.buffer[0]<t.buffer[0]}},{key:"equals",value:function(t){return this.buffer[1]===t.buffer[1]&&this.buffer[0]==t.buffer[0]}},{key:"greaterThan",value:function(t){return t.lessThan(this)}},{key:"hex",value:function(){return"".concat(l(this.buffer[1])," ").concat(l(this.buffer[0]))}}]),t}();e.BaseInt64=p;var h=function(t){function e(){return c(this,e),i(this,o(e).apply(this,arguments))}return u(e,p),f(e,[{key:"times",value:function(t){return this._times(t),this}},{key:"plus",value:function(t){return this._plus(t),this}}],[{key:"from",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return e.fromString("string"==typeof t?t:t.toString(),n)}},{key:"fromNumber",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return e.fromString(t.toString(),n)}},{key:"fromString",value:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2),r=t.length,i=new e(n),o=0;o<r;){var u=8<r-o?8:r-o,a=new e(new Uint32Array([parseInt(t.substr(o,u),10),0])),c=new e(new Uint32Array([y[u],0]));i.times(c),i.plus(a),o+=u}return i}},{key:"convertArray",value:function(t){for(var n=new Uint32Array(2*t.length),r=-1,i=t.length;++r<i;)e.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}},{key:"multiply",value:function(t,n){return new e(new Uint32Array(t.buffer)).times(n)}},{key:"add",value:function(t,n){return new e(new Uint32Array(t.buffer)).plus(n)}}]),e}();e.Uint64=h;var d=function(t){function e(){return c(this,e),i(this,o(e).apply(this,arguments))}return u(e,p),f(e,[{key:"negate",value:function(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],0==this.buffer[0]&&++this.buffer[1],this}},{key:"times",value:function(t){return this._times(t),this}},{key:"plus",value:function(t){return this._plus(t),this}},{key:"lessThan",value:function(t){var e=this.buffer[1]<<0,n=t.buffer[1]<<0;return e<n||e===n&&this.buffer[0]<t.buffer[0]}}],[{key:"from",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return e.fromString("string"==typeof t?t:t.toString(),n)}},{key:"fromNumber",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return e.fromString(t.toString(),n)}},{key:"fromString",value:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2),r=t.startsWith("-"),i=t.length,o=new e(n),u=r?1:0;u<i;){var a=8<i-u?8:i-u,c=new e(new Uint32Array([parseInt(t.substr(u,a),10),0])),s=new e(new Uint32Array([y[a],0]));o.times(s),o.plus(c),u+=a}return r?o.negate():o}},{key:"convertArray",value:function(t){for(var n=new Uint32Array(2*t.length),r=-1,i=t.length;++r<i;)e.from(t[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}},{key:"multiply",value:function(t,n){return new e(new Uint32Array(t.buffer)).times(n)}},{key:"add",value:function(t,n){return new e(new Uint32Array(t.buffer)).plus(n)}}]),e}();e.Int64=d;var v=function(){function t(e){c(this,t),this.buffer=e}return f(t,[{key:"high",value:function(){return new d(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}},{key:"low",value:function(){return new d(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}},{key:"negate",value:function(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],0==this.buffer[0]&&++this.buffer[1],0==this.buffer[1]&&++this.buffer[2],0==this.buffer[2]&&++this.buffer[3],this}},{key:"times",value:function(t){var e=new h(new Uint32Array([this.buffer[3],0])),n=new h(new Uint32Array([this.buffer[2],0])),r=new h(new Uint32Array([this.buffer[1],0])),i=new h(new Uint32Array([this.buffer[0],0])),o=new h(new Uint32Array([t.buffer[3],0])),u=new h(new Uint32Array([t.buffer[2],0])),a=new h(new Uint32Array([t.buffer[1],0])),c=new h(new Uint32Array([t.buffer[0],0])),s=h.multiply(i,c);this.buffer[0]=s.low();var f=new h(new Uint32Array([s.high(),0]));return s=h.multiply(r,c),f.plus(s),s=h.multiply(i,a),f.plus(s),this.buffer[1]=f.low(),this.buffer[3]=f.lessThan(s)?1:0,this.buffer[2]=f.high(),new h(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(h.multiply(n,c)).plus(h.multiply(r,a)).plus(h.multiply(i,u)),this.buffer[3]+=h.multiply(e,c).plus(h.multiply(n,a)).plus(h.multiply(r,u)).plus(h.multiply(i,o)).low(),this}},{key:"plus",value:function(t){var e=new Uint32Array(4);return e[3]=this.buffer[3]+t.buffer[3]>>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]<this.buffer[0]>>>0&&++e[1],e[1]<this.buffer[1]>>>0&&++e[2],e[2]<this.buffer[2]>>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}},{key:"hex",value:function(){return"".concat(l(this.buffer[3])," ").concat(l(this.buffer[2])," ").concat(l(this.buffer[1])," ").concat(l(this.buffer[0]))}}],[{key:"multiply",value:function(e,n){return new t(new Uint32Array(e.buffer)).times(n)}},{key:"add",value:function(e,n){return new t(new Uint32Array(e.buffer)).plus(n)}},{key:"from",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return t.fromString("string"==typeof e?e:e.toString(),n)}},{key:"fromNumber",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return t.fromString(e.toString(),n)}},{key:"fromString",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4),r=e.startsWith("-"),i=e.length,o=new t(n),u=r?1:0;u<i;){var a=8<i-u?8:i-u,c=new t(new Uint32Array([parseInt(e.substr(u,a),10),0,0,0])),s=new t(new Uint32Array([y[a],0,0,0]));o.times(s),o.plus(c),u+=a}return r?o.negate():o}},{key:"convertArray",value:function(e){for(var n=new Uint32Array(4*e.length),r=-1,i=e.length;++r<i;)t.from(e[r],new Uint32Array(n.buffer,n.byteOffset+16*r,4));return n}}]),t}();e.Int128=v},"4R6c":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var o=n("2kVn");e.Builder=o.Builder;var u=n("3C8k");e.BoolBuilder=u.BoolBuilder;var a=n("mJia");e.NullBuilder=a.NullBuilder;var c=n("Jzaf");e.DateBuilder=c.DateBuilder,e.DateDayBuilder=c.DateDayBuilder,e.DateMillisecondBuilder=c.DateMillisecondBuilder;var s=n("WlnJ");e.DecimalBuilder=s.DecimalBuilder;var f=n("3FF6");e.DictionaryBuilder=f.DictionaryBuilder;var l=n("W5in");e.FixedSizeBinaryBuilder=l.FixedSizeBinaryBuilder;var y=n("bFGe");e.FloatBuilder=y.FloatBuilder,e.Float16Builder=y.Float16Builder,e.Float32Builder=y.Float32Builder,e.Float64Builder=y.Float64Builder;var p=n("BvRX");e.IntBuilder=p.IntBuilder,e.Int8Builder=p.Int8Builder,e.Int16Builder=p.Int16Builder,e.Int32Builder=p.Int32Builder,e.Int64Builder=p.Int64Builder,e.Uint8Builder=p.Uint8Builder,e.Uint16Builder=p.Uint16Builder,e.Uint32Builder=p.Uint32Builder,e.Uint64Builder=p.Uint64Builder;var h=n("EQ+v");e.TimeBuilder=h.TimeBuilder,e.TimeSecondBuilder=h.TimeSecondBuilder,e.TimeMillisecondBuilder=h.TimeMillisecondBuilder,e.TimeMicrosecondBuilder=h.TimeMicrosecondBuilder,e.TimeNanosecondBuilder=h.TimeNanosecondBuilder;var d=n("W3mv");e.TimestampBuilder=d.TimestampBuilder,e.TimestampSecondBuilder=d.TimestampSecondBuilder,e.TimestampMillisecondBuilder=d.TimestampMillisecondBuilder,e.TimestampMicrosecondBuilder=d.TimestampMicrosecondBuilder,e.TimestampNanosecondBuilder=d.TimestampNanosecondBuilder;var v=n("Ip4o");e.IntervalBuilder=v.IntervalBuilder,e.IntervalDayTimeBuilder=v.IntervalDayTimeBuilder,e.IntervalYearMonthBuilder=v.IntervalYearMonthBuilder;var b=n("Eica");e.Utf8Builder=b.Utf8Builder;var m=n("TUG7");e.BinaryBuilder=m.BinaryBuilder;var g=n("ylxS");e.ListBuilder=g.ListBuilder;var w=n("9UC0");e.FixedSizeListBuilder=w.FixedSizeListBuilder;var _=n("Y5mn");e.MapBuilder=_.MapBuilder;var k=n("HDz+");e.StructBuilder=k.StructBuilder;var O=n("9a0T");e.UnionBuilder=O.UnionBuilder,e.SparseUnionBuilder=O.SparseUnionBuilder,e.DenseUnionBuilder=O.DenseUnionBuilder;var S=n("xW78"),T=n("Eica"),B=n("2kVn"),I=n("HGcr"),A=n("7a/3");B.Builder.new=function t(e){var n=e.type;var o=new(A.instance.getVisitFn(n)())(e);if(n.children&&n.children.length>0){var u=e.children||[],a={nullValues:e.nullValues},c=Array.isArray(u)?function(t,e){return u[e]||a}:function(t){var e=t.name;return u[e]||a};n.children.forEach(function(e,n){var u=e.type,a=c(e,n);o.children.push(t(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(n,!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},a,{type:u})))})}return o},Object.keys(S.Type).map(function(t){return S.Type[t]}).filter(function(t){return"number"==typeof t&&t!==S.Type.NONE}).forEach(function(t){A.instance.visit(t).prototype._setValue=I.instance.getVisitFn(t)}),T.Utf8Builder.prototype._setValue=I.instance.visitBinary},"4jY8":function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0}),function(t){!function(t){!function(t){!function(t){!function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4"}(t.MetadataVersion||(t.MetadataVersion={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(t.UnionMode||(t.UnionMode={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(t.Precision||(t.Precision={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(t.DateUnit||(t.DateUnit={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(t.TimeUnit||(t.TimeUnit={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME"}(t.IntervalUnit||(t.IntervalUnit={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList"}(t.Type||(t.Type={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(t.Endianness||(t.Endianness={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsNull",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startNull",value:function(t){t.startObject(0)}},{key:"endNull",value:function(t){return t.endObject()}},{key:"createNull",value:function(e){return t.startNull(e),t.endNull(e)}}]),t}();t.Null=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsStruct_",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startStruct_",value:function(t){t.startObject(0)}},{key:"endStruct_",value:function(t){return t.endObject()}},{key:"createStruct_",value:function(e){return t.startStruct_(e),t.endStruct_(e)}}]),t}();t.Struct_=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsList",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startList",value:function(t){t.startObject(0)}},{key:"endList",value:function(t){return t.endObject()}},{key:"createList",value:function(e){return t.startList(e),t.endList(e)}}]),t}();t.List=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsLargeList",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startLargeList",value:function(t){t.startObject(0)}},{key:"endLargeList",value:function(t){return t.endObject()}},{key:"createLargeList",value:function(e){return t.startLargeList(e),t.endLargeList(e)}}]),t}();t.LargeList=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"listSize",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}}],[{key:"getRootAsFixedSizeList",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startFixedSizeList",value:function(t){t.startObject(1)}},{key:"addListSize",value:function(t,e){t.addFieldInt32(0,e,0)}},{key:"endFixedSizeList",value:function(t){return t.endObject()}},{key:"createFixedSizeList",value:function(e,n){return t.startFixedSizeList(e),t.addListSize(e,n),t.endFixedSizeList(e)}}]),t}();t.FixedSizeList=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"keysSorted",value:function(){var t=this.bb.__offset(this.bb_pos,4);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}}],[{key:"getRootAsMap",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startMap",value:function(t){t.startObject(1)}},{key:"addKeysSorted",value:function(t,e){t.addFieldInt8(0,+e,0)}},{key:"endMap",value:function(t){return t.endObject()}},{key:"createMap",value:function(e,n){return t.startMap(e),t.addKeysSorted(e,n),t.endMap(e)}}]),t}();t.Map=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"mode",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.UnionMode.Sparse}},{key:"typeIds",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+4*t):0}},{key:"typeIdsLength",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"typeIdsArray",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}}],[{key:"getRootAsUnion",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startUnion",value:function(t){t.startObject(2)}},{key:"addMode",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.UnionMode.Sparse)}},{key:"addTypeIds",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"createTypeIdsVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addInt32(e[n]);return t.endVector()}},{key:"startTypeIdsVector",value:function(t,e){t.startVector(4,e,4)}},{key:"endUnion",value:function(t){return t.endObject()}},{key:"createUnion",value:function(t,n,r){return e.startUnion(t),e.addMode(t,n),e.addTypeIds(t,r),e.endUnion(t)}}]),e}();e.Union=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"bitWidth",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}},{key:"isSigned",value:function(){var t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}}],[{key:"getRootAsInt",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startInt",value:function(t){t.startObject(2)}},{key:"addBitWidth",value:function(t,e){t.addFieldInt32(0,e,0)}},{key:"addIsSigned",value:function(t,e){t.addFieldInt8(1,+e,0)}},{key:"endInt",value:function(t){return t.endObject()}},{key:"createInt",value:function(e,n,r){return t.startInt(e),t.addBitWidth(e,n),t.addIsSigned(e,r),t.endInt(e)}}]),t}();t.Int=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"precision",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.Precision.HALF}}],[{key:"getRootAsFloatingPoint",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startFloatingPoint",value:function(t){t.startObject(1)}},{key:"addPrecision",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.Precision.HALF)}},{key:"endFloatingPoint",value:function(t){return t.endObject()}},{key:"createFloatingPoint",value:function(t,n){return e.startFloatingPoint(t),e.addPrecision(t,n),e.endFloatingPoint(t)}}]),e}();e.FloatingPoint=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsUtf8",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startUtf8",value:function(t){t.startObject(0)}},{key:"endUtf8",value:function(t){return t.endObject()}},{key:"createUtf8",value:function(e){return t.startUtf8(e),t.endUtf8(e)}}]),t}();t.Utf8=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsBinary",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startBinary",value:function(t){t.startObject(0)}},{key:"endBinary",value:function(t){return t.endObject()}},{key:"createBinary",value:function(e){return t.startBinary(e),t.endBinary(e)}}]),t}();t.Binary=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsLargeUtf8",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startLargeUtf8",value:function(t){t.startObject(0)}},{key:"endLargeUtf8",value:function(t){return t.endObject()}},{key:"createLargeUtf8",value:function(e){return t.startLargeUtf8(e),t.endLargeUtf8(e)}}]),t}();t.LargeUtf8=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsLargeBinary",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startLargeBinary",value:function(t){t.startObject(0)}},{key:"endLargeBinary",value:function(t){return t.endObject()}},{key:"createLargeBinary",value:function(e){return t.startLargeBinary(e),t.endLargeBinary(e)}}]),t}();t.LargeBinary=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"byteWidth",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}}],[{key:"getRootAsFixedSizeBinary",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startFixedSizeBinary",value:function(t){t.startObject(1)}},{key:"addByteWidth",value:function(t,e){t.addFieldInt32(0,e,0)}},{key:"endFixedSizeBinary",value:function(t){return t.endObject()}},{key:"createFixedSizeBinary",value:function(e,n){return t.startFixedSizeBinary(e),t.addByteWidth(e,n),t.endFixedSizeBinary(e)}}]),t}();t.FixedSizeBinary=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}}],[{key:"getRootAsBool",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startBool",value:function(t){t.startObject(0)}},{key:"endBool",value:function(t){return t.endObject()}},{key:"createBool",value:function(e){return t.startBool(e),t.endBool(e)}}]),t}();t.Bool=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"precision",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}},{key:"scale",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}}],[{key:"getRootAsDecimal",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startDecimal",value:function(t){t.startObject(2)}},{key:"addPrecision",value:function(t,e){t.addFieldInt32(0,e,0)}},{key:"addScale",value:function(t,e){t.addFieldInt32(1,e,0)}},{key:"endDecimal",value:function(t){return t.endObject()}},{key:"createDecimal",value:function(e,n,r){return t.startDecimal(e),t.addPrecision(e,n),t.addScale(e,r),t.endDecimal(e)}}]),t}();t.Decimal=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.DateUnit.MILLISECOND}}],[{key:"getRootAsDate",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startDate",value:function(t){t.startObject(1)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.DateUnit.MILLISECOND)}},{key:"endDate",value:function(t){return t.endObject()}},{key:"createDate",value:function(t,n){return e.startDate(t),e.addUnit(t,n),e.endDate(t)}}]),e}();e.Date=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.TimeUnit.MILLISECOND}},{key:"bitWidth",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}}],[{key:"getRootAsTime",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startTime",value:function(t){t.startObject(2)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}},{key:"addBitWidth",value:function(t,e){t.addFieldInt32(1,e,32)}},{key:"endTime",value:function(t){return t.endObject()}},{key:"createTime",value:function(t,n,r){return e.startTime(t),e.addUnit(t,n),e.addBitWidth(t,r),e.endTime(t)}}]),e}();e.Time=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.TimeUnit.SECOND}},{key:"timezone",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}}],[{key:"getRootAsTimestamp",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startTimestamp",value:function(t){t.startObject(2)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.TimeUnit.SECOND)}},{key:"addTimezone",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"endTimestamp",value:function(t){return t.endObject()}},{key:"createTimestamp",value:function(t,n,r){return e.startTimestamp(t),e.addUnit(t,n),e.addTimezone(t,r),e.endTimestamp(t)}}]),e}();e.Timestamp=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH}}],[{key:"getRootAsInterval",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startInterval",value:function(t){t.startObject(1)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH)}},{key:"endInterval",value:function(t){return t.endObject()}},{key:"createInterval",value:function(t,n){return e.startInterval(t),e.addUnit(t,n),e.endInterval(t)}}]),e}();e.Interval=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"unit",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.TimeUnit.MILLISECOND}}],[{key:"getRootAsDuration",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startDuration",value:function(t){t.startObject(1)}},{key:"addUnit",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}},{key:"endDuration",value:function(t){return t.endObject()}},{key:"createDuration",value:function(t,n){return e.startDuration(t),e.addUnit(t,n),e.endDuration(t)}}]),e}();e.Duration=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"key",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:"value",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}}],[{key:"getRootAsKeyValue",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startKeyValue",value:function(t){t.startObject(2)}},{key:"addKey",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:"addValue",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"endKeyValue",value:function(t){return t.endObject()}},{key:"createKeyValue",value:function(e,n,r){return t.startKeyValue(e),t.addKey(e,n),t.addValue(e,r),t.endKeyValue(e)}}]),t}();t.KeyValue=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"id",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:"indexType",value:function(e){var n=this.bb.__offset(this.bb_pos,6);return n?(e||new t.apache.arrow.flatbuf.Int).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}},{key:"isOrdered",value:function(){var t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}}],[{key:"getRootAsDictionaryEncoding",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startDictionaryEncoding",value:function(t){t.startObject(3)}},{key:"addId",value:function(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}},{key:"addIndexType",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"addIsOrdered",value:function(t,e){t.addFieldInt8(2,+e,0)}},{key:"endDictionaryEncoding",value:function(t){return t.endObject()}},{key:"createDictionaryEncoding",value:function(t,n,r,i){return e.startDictionaryEncoding(t),e.addId(t,n),e.addIndexType(t,r),e.addIsOrdered(t,i),e.endDictionaryEncoding(t)}}]),e}();e.DictionaryEncoding=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"name",value:function(t){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}},{key:"nullable",value:function(){var t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}},{key:"typeType",value:function(){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):t.apache.arrow.flatbuf.Type.NONE}},{key:"type",value:function(t){var e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}},{key:"dictionary",value:function(e){var n=this.bb.__offset(this.bb_pos,12);return n?(e||new t.apache.arrow.flatbuf.DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}},{key:"children",value:function(e,n){var r=this.bb.__offset(this.bb_pos,14);return r?(n||new t.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}},{key:"childrenLength",value:function(){var t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"customMetadata",value:function(e,n){var r=this.bb.__offset(this.bb_pos,16);return r?(n||new t.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}},{key:"customMetadataLength",value:function(){var t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsField",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startField",value:function(t){t.startObject(7)}},{key:"addName",value:function(t,e){t.addFieldOffset(0,e,0)}},{key:"addNullable",value:function(t,e){t.addFieldInt8(1,+e,0)}},{key:"addTypeType",value:function(e,n){e.addFieldInt8(2,n,t.apache.arrow.flatbuf.Type.NONE)}},{key:"addType",value:function(t,e){t.addFieldOffset(3,e,0)}},{key:"addDictionary",value:function(t,e){t.addFieldOffset(4,e,0)}},{key:"addChildren",value:function(t,e){t.addFieldOffset(5,e,0)}},{key:"createChildrenVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startChildrenVector",value:function(t,e){t.startVector(4,e,4)}},{key:"addCustomMetadata",value:function(t,e){t.addFieldOffset(6,e,0)}},{key:"createCustomMetadataVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startCustomMetadataVector",value:function(t,e){t.startVector(4,e,4)}},{key:"endField",value:function(t){return t.endObject()}},{key:"createField",value:function(t,n,r,i,o,u,a,c){return e.startField(t),e.addName(t,n),e.addNullable(t,r),e.addTypeType(t,i),e.addType(t,o),e.addDictionary(t,u),e.addChildren(t,a),e.addCustomMetadata(t,c),e.endField(t)}}]),e}();e.Field=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"offset",value:function(){return this.bb.readInt64(this.bb_pos)}},{key:"length",value:function(){return this.bb.readInt64(this.bb_pos+8)}}],[{key:"createBuffer",value:function(t,e,n){return t.prep(8,16),t.writeInt64(n),t.writeInt64(e),t.offset()}}]),t}();t.Buffer=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"endianness",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):t.apache.arrow.flatbuf.Endianness.Little}},{key:"fields",value:function(e,n){var r=this.bb.__offset(this.bb_pos,6);return r?(n||new t.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}},{key:"fieldsLength",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"customMetadata",value:function(e,n){var r=this.bb.__offset(this.bb_pos,8);return r?(n||new t.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}},{key:"customMetadataLength",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsSchema",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startSchema",value:function(t){t.startObject(3)}},{key:"addEndianness",value:function(e,n){e.addFieldInt16(0,n,t.apache.arrow.flatbuf.Endianness.Little)}},{key:"addFields",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"createFieldsVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startFieldsVector",value:function(t,e){t.startVector(4,e,4)}},{key:"addCustomMetadata",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:"createCustomMetadataVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startCustomMetadataVector",value:function(t,e){t.startVector(4,e,4)}},{key:"endSchema",value:function(t){return t.endObject()}},{key:"finishSchemaBuffer",value:function(t,e){t.finish(e)}},{key:"createSchema",value:function(t,n,r,i){return e.startSchema(t),e.addEndianness(t,n),e.addFields(t,r),e.addCustomMetadata(t,i),e.endSchema(t)}}]),e}();e.Schema=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={}))},"4n+2":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("qF1w"),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,a.BaseVector),e}();e.FixedSizeBinaryVector=c},"55Ky":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var o=n("xW78");e.ArrowType=o.ArrowType,e.DateUnit=o.DateUnit,e.IntervalUnit=o.IntervalUnit,e.MessageHeader=o.MessageHeader,e.MetadataVersion=o.MetadataVersion,e.Precision=o.Precision,e.TimeUnit=o.TimeUnit,e.Type=o.Type,e.UnionMode=o.UnionMode,e.BufferType=o.BufferType;var u=n("J0lL");e.Data=u.Data;var a=n("LF0+");e.DataType=a.DataType,e.Null=a.Null,e.Bool=a.Bool,e.Int=a.Int,e.Int8=a.Int8,e.Int16=a.Int16,e.Int32=a.Int32,e.Int64=a.Int64,e.Uint8=a.Uint8,e.Uint16=a.Uint16,e.Uint32=a.Uint32,e.Uint64=a.Uint64,e.Float=a.Float,e.Float16=a.Float16,e.Float32=a.Float32,e.Float64=a.Float64,e.Utf8=a.Utf8,e.Binary=a.Binary,e.FixedSizeBinary=a.FixedSizeBinary,e.Date_=a.Date_,e.DateDay=a.DateDay,e.DateMillisecond=a.DateMillisecond,e.Timestamp=a.Timestamp,e.TimestampSecond=a.TimestampSecond,e.TimestampMillisecond=a.TimestampMillisecond,e.TimestampMicrosecond=a.TimestampMicrosecond,e.TimestampNanosecond=a.TimestampNanosecond,e.Time=a.Time,e.TimeSecond=a.TimeSecond,e.TimeMillisecond=a.TimeMillisecond,e.TimeMicrosecond=a.TimeMicrosecond,e.TimeNanosecond=a.TimeNanosecond,e.Decimal=a.Decimal,e.List=a.List,e.Struct=a.Struct,e.Union=a.Union,e.DenseUnion=a.DenseUnion,e.SparseUnion=a.SparseUnion,e.Dictionary=a.Dictionary,e.Interval=a.Interval,e.IntervalDayTime=a.IntervalDayTime,e.IntervalYearMonth=a.IntervalYearMonth,e.FixedSizeList=a.FixedSizeList,e.Map_=a.Map_;var c=n("sk+S");e.Table=c.Table;var s=n("Pp57");e.Column=s.Column;var f=n("HXf3");e.Visitor=f.Visitor;var l=n("1vD8");e.Schema=l.Schema,e.Field=l.Field;var y=n("ffPt");e.Vector=y.Vector,e.BaseVector=y.BaseVector,e.BinaryVector=y.BinaryVector,e.BoolVector=y.BoolVector,e.Chunked=y.Chunked,e.DateVector=y.DateVector,e.DateDayVector=y.DateDayVector,e.DateMillisecondVector=y.DateMillisecondVector,e.DecimalVector=y.DecimalVector,e.DictionaryVector=y.DictionaryVector,e.FixedSizeBinaryVector=y.FixedSizeBinaryVector,e.FixedSizeListVector=y.FixedSizeListVector,e.FloatVector=y.FloatVector,e.Float16Vector=y.Float16Vector,e.Float32Vector=y.Float32Vector,e.Float64Vector=y.Float64Vector,e.IntervalVector=y.IntervalVector,e.IntervalDayTimeVector=y.IntervalDayTimeVector,e.IntervalYearMonthVector=y.IntervalYearMonthVector,e.IntVector=y.IntVector,e.Int8Vector=y.Int8Vector,e.Int16Vector=y.Int16Vector,e.Int32Vector=y.Int32Vector,e.Int64Vector=y.Int64Vector,e.Uint8Vector=y.Uint8Vector,e.Uint16Vector=y.Uint16Vector,e.Uint32Vector=y.Uint32Vector,e.Uint64Vector=y.Uint64Vector,e.ListVector=y.ListVector,e.MapVector=y.MapVector,e.NullVector=y.NullVector,e.StructVector=y.StructVector,e.TimestampVector=y.TimestampVector,e.TimestampSecondVector=y.TimestampSecondVector,e.TimestampMillisecondVector=y.TimestampMillisecondVector,e.TimestampMicrosecondVector=y.TimestampMicrosecondVector,e.TimestampNanosecondVector=y.TimestampNanosecondVector,e.TimeVector=y.TimeVector,e.TimeSecondVector=y.TimeSecondVector,e.TimeMillisecondVector=y.TimeMillisecondVector,e.TimeMicrosecondVector=y.TimeMicrosecondVector,e.TimeNanosecondVector=y.TimeNanosecondVector,e.UnionVector=y.UnionVector,e.DenseUnionVector=y.DenseUnionVector,e.SparseUnionVector=y.SparseUnionVector,e.Utf8Vector=y.Utf8Vector;var p=n("4R6c");e.Builder=p.Builder,e.BinaryBuilder=p.BinaryBuilder,e.BoolBuilder=p.BoolBuilder,e.DateBuilder=p.DateBuilder,e.DateDayBuilder=p.DateDayBuilder,e.DateMillisecondBuilder=p.DateMillisecondBuilder,e.DecimalBuilder=p.DecimalBuilder,e.DictionaryBuilder=p.DictionaryBuilder,e.FixedSizeBinaryBuilder=p.FixedSizeBinaryBuilder,e.FixedSizeListBuilder=p.FixedSizeListBuilder,e.FloatBuilder=p.FloatBuilder,e.Float16Builder=p.Float16Builder,e.Float32Builder=p.Float32Builder,e.Float64Builder=p.Float64Builder,e.IntervalBuilder=p.IntervalBuilder,e.IntervalDayTimeBuilder=p.IntervalDayTimeBuilder,e.IntervalYearMonthBuilder=p.IntervalYearMonthBuilder,e.IntBuilder=p.IntBuilder,e.Int8Builder=p.Int8Builder,e.Int16Builder=p.Int16Builder,e.Int32Builder=p.Int32Builder,e.Int64Builder=p.Int64Builder,e.Uint8Builder=p.Uint8Builder,e.Uint16Builder=p.Uint16Builder,e.Uint32Builder=p.Uint32Builder,e.Uint64Builder=p.Uint64Builder,e.ListBuilder=p.ListBuilder,e.MapBuilder=p.MapBuilder,e.NullBuilder=p.NullBuilder,e.StructBuilder=p.StructBuilder,e.TimestampBuilder=p.TimestampBuilder,e.TimestampSecondBuilder=p.TimestampSecondBuilder,e.TimestampMillisecondBuilder=p.TimestampMillisecondBuilder,e.TimestampMicrosecondBuilder=p.TimestampMicrosecondBuilder,e.TimestampNanosecondBuilder=p.TimestampNanosecondBuilder,e.TimeBuilder=p.TimeBuilder,e.TimeSecondBuilder=p.TimeSecondBuilder,e.TimeMillisecondBuilder=p.TimeMillisecondBuilder,e.TimeMicrosecondBuilder=p.TimeMicrosecondBuilder,e.TimeNanosecondBuilder=p.TimeNanosecondBuilder,e.UnionBuilder=p.UnionBuilder,e.DenseUnionBuilder=p.DenseUnionBuilder,e.SparseUnionBuilder=p.SparseUnionBuilder,e.Utf8Builder=p.Utf8Builder;var h=n("Thl1");e.ByteStream=h.ByteStream,e.AsyncByteStream=h.AsyncByteStream,e.AsyncByteQueue=h.AsyncByteQueue;var d=n("ZxDB");e.RecordBatchReader=d.RecordBatchReader,e.RecordBatchFileReader=d.RecordBatchFileReader,e.RecordBatchStreamReader=d.RecordBatchStreamReader,e.AsyncRecordBatchFileReader=d.AsyncRecordBatchFileReader,e.AsyncRecordBatchStreamReader=d.AsyncRecordBatchStreamReader;var v=n("vntC");e.RecordBatchWriter=v.RecordBatchWriter,e.RecordBatchFileWriter=v.RecordBatchFileWriter,e.RecordBatchStreamWriter=v.RecordBatchStreamWriter,e.RecordBatchJSONWriter=v.RecordBatchJSONWriter;var b=n("zPAT");e.MessageReader=b.MessageReader,e.AsyncMessageReader=b.AsyncMessageReader,e.JSONMessageReader=b.JSONMessageReader;var m=n("O0XO");e.Message=m.Message;var g=n("vSKt");e.RecordBatch=g.RecordBatch;var w=n("Jgyr");e.DataFrame=w.DataFrame,e.FilteredDataFrame=w.FilteredDataFrame,e.CountByResult=w.CountByResult;var _=n("XdQL"),k=n("3LVT"),O=n("fCxL"),S=n("P6gY"),T=n("fIDe"),B=n("MNys"),I=n("zpYq");e.predicate=I,e.util=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(n,!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},_,{},k,{},O,{},S,{},T,{},B)},"5ypL":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("Il/q"),s=n("qF1w"),f=Symbol.for("rowIndex"),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}var n,r,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,s.BaseVector),n=e,(r=[{key:"bind",value:function(t){var e=this._row||(this._row=new c.StructRow(this)),n=Object.create(e);return n[f]=t,n}}])&&i(n.prototype,r),l&&i(n,l),e}();e.StructVector=l},"77gQ":function(t,e,n){"use strict";var r=regeneratorRuntime.mark(T),i=regeneratorRuntime.mark(B);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t,e,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var h=n("XdQL"),d=n("Pp57"),v=n("v/3b"),b=n("HXf3"),m=n("xW78"),g=n("vSKt"),w=n("xW78"),_=n("fCxL"),k=n("uCoJ"),O=n("LF0+"),S=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,y(e).apply(this,arguments))}var n,r,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(e,b.Visitor),n=e,i=[{key:"assemble",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(new e).visitMany(k.selectColumnChildrenArgs(g.RecordBatch,n))}}],(r=[{key:"visit",value:function(t){var n=t.data,r=t.name,i=t.length,o=n.offset,s=n.nullCount,f=n.nullBitmap,p=O.DataType.isDictionary(t.type)?t.type.indices:t.type,h=Object.assign([],n.buffers,c({},m.BufferType.VALIDITY,void 0));return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(n,!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({name:r,count:i,VALIDITY:O.DataType.isNull(p)?void 0:s<=0?Array.from({length:i},function(){return 1}):u(_.iterateBits(f,o,i,null,_.getBit))},l(y(e.prototype),"visit",this).call(this,v.Vector.new(n.clone(p,o,i,0,h))))}},{key:"visitNull",value:function(){return{}}},{key:"visitBool",value:function(t){var e=t.values,n=t.offset,r=t.length;return{DATA:u(_.iterateBits(e,n,r,null,_.getBool))}}},{key:"visitInt",value:function(t){return{DATA:t.type.bitWidth<64?u(t.values):u(B(t.values,2))}}},{key:"visitFloat",value:function(t){return{DATA:u(t.values)}}},{key:"visitUtf8",value:function(t){return{DATA:u(t),OFFSET:u(t.valueOffsets)}}},{key:"visitBinary",value:function(t){return{DATA:u(T(t)),OFFSET:u(t.valueOffsets)}}},{key:"visitFixedSizeBinary",value:function(t){return{DATA:u(T(t))}}},{key:"visitDate",value:function(t){return{DATA:t.type.unit===w.DateUnit.DAY?u(t.values):u(B(t.values,2))}}},{key:"visitTimestamp",value:function(t){return{DATA:u(B(t.values,2))}}},{key:"visitTime",value:function(t){return{DATA:t.type.unit<w.TimeUnit.MICROSECOND?u(t.values):u(B(t.values,2))}}},{key:"visitDecimal",value:function(t){return{DATA:u(B(t.values,4))}}},{key:"visitList",value:function(t){var e=this;return{OFFSET:u(t.valueOffsets),children:t.type.children.map(function(n,r){return e.visit(new d.Column(n,[t.getChildAt(r)]))})}}},{key:"visitStruct",value:function(t){var e=this;return{children:t.type.children.map(function(n,r){return e.visit(new d.Column(n,[t.getChildAt(r)]))})}}},{key:"visitUnion",value:function(t){var e=this;return{TYPE:u(t.typeIds),OFFSET:t.type.mode===w.UnionMode.Dense?u(t.valueOffsets):void 0,children:t.type.children.map(function(n,r){return e.visit(new d.Column(n,[t.getChildAt(r)]))})}}},{key:"visitInterval",value:function(t){return{DATA:u(t.values)}}},{key:"visitFixedSizeList",value:function(t){var e=this;return{children:t.type.children.map(function(n,r){return e.visit(new d.Column(n,[t.getChildAt(r)]))})}}},{key:"visitMap",value:function(t){var e=this;return{OFFSET:u(t.valueOffsets),children:t.type.children.map(function(n,r){return e.visit(new d.Column(n,[t.getChildAt(r)]))})}}}])&&s(n.prototype,r),i&&s(n,i),e}();function T(t){var e,n,i,o,u,a;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:e=!0,n=!1,i=void 0,r.prev=3,o=t[Symbol.iterator]();case 5:if(e=(u=o.next()).done){r.next=12;break}return a=u.value,r.next=9,a.reduce(function(t,e){return"".concat(t).concat(("0"+(255&e).toString(16)).slice(-2))},"").toUpperCase();case 9:e=!0,r.next=5;break;case 12:r.next=18;break;case 14:r.prev=14,r.t0=r.catch(3),n=!0,i=r.t0;case 18:r.prev=18,r.prev=19,e||null==o.return||o.return();case 21:if(r.prev=21,!n){r.next=24;break}throw i;case 24:return r.finish(21);case 25:return r.finish(18);case 26:case"end":return r.stop()}},r,null,[[3,14,18,26],[19,,21,25]])}function B(t,e){var n,r;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n=-1,r=t.length/e;case 1:if(!(++n<r)){i.next=6;break}return i.next=4,"".concat(h.BN.new(t.subarray((n+0)*e,(n+1)*e),!1));case 4:i.next=1;break;case 6:case"end":return i.stop()}},i)}e.JSONVectorAssembler=S},"7DnX":function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0});var a=n("1fhD"),c=u(function(){var t=function(){throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=function(){throw t()},e.asUintN=function(){throw t()},"undefined"!=typeof BigInt?[BigInt,!0]:[e,!1]}(),2),s=c[0],f=c[1];e.BigInt=s,e.BigIntAvailable=f;var l,y=u((l=function(){throw new Error("BigInt64Array is not available in this environment")},"undefined"!=typeof BigInt64Array?[BigInt64Array,!0]:[function(){function t(){throw r(this,t),l()}return o(t,null,[{key:"of",value:function(){throw l()}},{key:"from",value:function(){throw l()}},{key:"BYTES_PER_ELEMENT",get:function(){return 8}}]),t}(),!1]),2),p=y[0],h=y[1];e.BigInt64Array=p,e.BigInt64ArrayAvailable=h;var d,v=u((d=function(){throw new Error("BigUint64Array is not available in this environment")},"undefined"!=typeof BigUint64Array?[BigUint64Array,!0]:[function(){function t(){throw r(this,t),d()}return o(t,null,[{key:"of",value:function(){throw d()}},{key:"from",value:function(){throw d()}},{key:"BYTES_PER_ELEMENT",get:function(){return 8}}]),t}(),!1]),2),b=v[0],m=v[1];e.BigUint64Array=b,e.BigUint64ArrayAvailable=m;var g=function(t){return"number"==typeof t},w=function(t){return"boolean"==typeof t},_=function(t){return"function"==typeof t};e.isObject=function(t){return null!=t&&Object(t)===t},e.isPromise=function(t){return e.isObject(t)&&_(t.then)},e.isObservable=function(t){return e.isObject(t)&&_(t.subscribe)},e.isIterable=function(t){return e.isObject(t)&&_(t[Symbol.iterator])},e.isAsyncIterable=function(t){return e.isObject(t)&&_(t[Symbol.asyncIterator])},e.isArrowJSON=function(t){return e.isObject(t)&&e.isObject(t.schema)},e.isArrayLike=function(t){return e.isObject(t)&&g(t.length)},e.isIteratorResult=function(t){return e.isObject(t)&&"done"in t&&"value"in t},e.isUnderlyingSink=function(t){return e.isObject(t)&&_(t.abort)&&_(t.close)&&_(t.start)&&_(t.write)},e.isFileHandle=function(t){return e.isObject(t)&&_(t.stat)&&g(t.fd)},e.isFSReadStream=function(t){return e.isReadableNodeStream(t)&&g(t.bytesRead)},e.isFetchResponse=function(t){return e.isObject(t)&&e.isReadableDOMStream(t.body)},e.isWritableDOMStream=function(t){return e.isObject(t)&&_(t.abort)&&_(t.getWriter)&&!(t instanceof a.ReadableInterop)},e.isReadableDOMStream=function(t){return e.isObject(t)&&_(t.cancel)&&_(t.getReader)&&!(t instanceof a.ReadableInterop)},e.isWritableNodeStream=function(t){return e.isObject(t)&&_(t.end)&&_(t.write)&&w(t.writable)&&!(t instanceof a.ReadableInterop)},e.isReadableNodeStream=function(t){return e.isObject(t)&&_(t.read)&&_(t.pipe)&&w(t.readable)&&!(t instanceof a.ReadableInterop)}},"7a/3":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("HXf3"),s=n("TUG7"),f=n("3C8k"),l=n("Jzaf"),y=n("WlnJ"),p=n("3FF6"),h=n("W5in"),d=n("9UC0"),v=n("bFGe"),b=n("Ip4o"),m=n("BvRX"),g=n("ylxS"),w=n("Y5mn"),_=n("mJia"),k=n("HDz+"),O=n("W3mv"),S=n("EQ+v"),T=n("9a0T"),B=n("Eica"),I=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}var n,r,I;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,c.Visitor),n=e,(r=[{key:"visitNull",value:function(){return _.NullBuilder}},{key:"visitBool",value:function(){return f.BoolBuilder}},{key:"visitInt",value:function(){return m.IntBuilder}},{key:"visitInt8",value:function(){return m.Int8Builder}},{key:"visitInt16",value:function(){return m.Int16Builder}},{key:"visitInt32",value:function(){return m.Int32Builder}},{key:"visitInt64",value:function(){return m.Int64Builder}},{key:"visitUint8",value:function(){return m.Uint8Builder}},{key:"visitUint16",value:function(){return m.Uint16Builder}},{key:"visitUint32",value:function(){return m.Uint32Builder}},{key:"visitUint64",value:function(){return m.Uint64Builder}},{key:"visitFloat",value:function(){return v.FloatBuilder}},{key:"visitFloat16",value:function(){return v.Float16Builder}},{key:"visitFloat32",value:function(){return v.Float32Builder}},{key:"visitFloat64",value:function(){return v.Float64Builder}},{key:"visitUtf8",value:function(){return B.Utf8Builder}},{key:"visitBinary",value:function(){return s.BinaryBuilder}},{key:"visitFixedSizeBinary",value:function(){return h.FixedSizeBinaryBuilder}},{key:"visitDate",value:function(){return l.DateBuilder}},{key:"visitDateDay",value:function(){return l.DateDayBuilder}},{key:"visitDateMillisecond",value:function(){return l.DateMillisecondBuilder}},{key:"visitTimestamp",value:function(){return O.TimestampBuilder}},{key:"visitTimestampSecond",value:function(){return O.TimestampSecondBuilder}},{key:"visitTimestampMillisecond",value:function(){return O.TimestampMillisecondBuilder}},{key:"visitTimestampMicrosecond",value:function(){return O.TimestampMicrosecondBuilder}},{key:"visitTimestampNanosecond",value:function(){return O.TimestampNanosecondBuilder}},{key:"visitTime",value:function(){return S.TimeBuilder}},{key:"visitTimeSecond",value:function(){return S.TimeSecondBuilder}},{key:"visitTimeMillisecond",value:function(){return S.TimeMillisecondBuilder}},{key:"visitTimeMicrosecond",value:function(){return S.TimeMicrosecondBuilder}},{key:"visitTimeNanosecond",value:function(){return S.TimeNanosecondBuilder}},{key:"visitDecimal",value:function(){return y.DecimalBuilder}},{key:"visitList",value:function(){return g.ListBuilder}},{key:"visitStruct",value:function(){return k.StructBuilder}},{key:"visitUnion",value:function(){return T.UnionBuilder}},{key:"visitDenseUnion",value:function(){return T.DenseUnionBuilder}},{key:"visitSparseUnion",value:function(){return T.SparseUnionBuilder}},{key:"visitDictionary",value:function(){return p.DictionaryBuilder}},{key:"visitInterval",value:function(){return b.IntervalBuilder}},{key:"visitIntervalDayTime",value:function(){return b.IntervalDayTimeBuilder}},{key:"visitIntervalYearMonth",value:function(){return b.IntervalYearMonthBuilder}},{key:"visitFixedSizeList",value:function(){return d.FixedSizeListBuilder}},{key:"visitMap",value:function(){return w.MapBuilder}}])&&i(n.prototype,r),I&&i(n,I),e}();e.GetBuilderCtor=I,e.instance=new I},"7cU9":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("prJ9").flatbuffers.Long,f=n("4jY8"),l=n("HXf3"),y=f.org.apache.arrow.flatbuf.Null,p=f.org.apache.arrow.flatbuf.Int,h=f.org.apache.arrow.flatbuf.FloatingPoint,d=f.org.apache.arrow.flatbuf.Binary,v=f.org.apache.arrow.flatbuf.Bool,b=f.org.apache.arrow.flatbuf.Utf8,m=f.org.apache.arrow.flatbuf.Decimal,g=f.org.apache.arrow.flatbuf.Date,w=f.org.apache.arrow.flatbuf.Time,_=f.org.apache.arrow.flatbuf.Timestamp,k=f.org.apache.arrow.flatbuf.Interval,O=f.org.apache.arrow.flatbuf.List,S=f.org.apache.arrow.flatbuf.Struct_,T=f.org.apache.arrow.flatbuf.Union,B=f.org.apache.arrow.flatbuf.DictionaryEncoding,I=f.org.apache.arrow.flatbuf.FixedSizeBinary,A=f.org.apache.arrow.flatbuf.FixedSizeList,D=f.org.apache.arrow.flatbuf.Map,x=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,a(e).apply(this,arguments))}var n,r,f;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,l.Visitor),n=e,(r=[{key:"visit",value:function(t,n){return null==t||null==n?void 0:u(a(e.prototype),"visit",this).call(this,t,n)}},{key:"visitNull",value:function(t,e){return y.startNull(e),y.endNull(e)}},{key:"visitInt",value:function(t,e){return p.startInt(e),p.addBitWidth(e,t.bitWidth),p.addIsSigned(e,t.isSigned),p.endInt(e)}},{key:"visitFloat",value:function(t,e){return h.startFloatingPoint(e),h.addPrecision(e,t.precision),h.endFloatingPoint(e)}},{key:"visitBinary",value:function(t,e){return d.startBinary(e),d.endBinary(e)}},{key:"visitBool",value:function(t,e){return v.startBool(e),v.endBool(e)}},{key:"visitUtf8",value:function(t,e){return b.startUtf8(e),b.endUtf8(e)}},{key:"visitDecimal",value:function(t,e){return m.startDecimal(e),m.addScale(e,t.scale),m.addPrecision(e,t.precision),m.endDecimal(e)}},{key:"visitDate",value:function(t,e){return g.startDate(e),g.addUnit(e,t.unit),g.endDate(e)}},{key:"visitTime",value:function(t,e){return w.startTime(e),w.addUnit(e,t.unit),w.addBitWidth(e,t.bitWidth),w.endTime(e)}},{key:"visitTimestamp",value:function(t,e){var n=t.timezone&&e.createString(t.timezone)||void 0;return _.startTimestamp(e),_.addUnit(e,t.unit),void 0!==n&&_.addTimezone(e,n),_.endTimestamp(e)}},{key:"visitInterval",value:function(t,e){return k.startInterval(e),k.addUnit(e,t.unit),k.endInterval(e)}},{key:"visitList",value:function(t,e){return O.startList(e),O.endList(e)}},{key:"visitStruct",value:function(t,e){return S.startStruct_(e),S.endStruct_(e)}},{key:"visitUnion",value:function(t,e){T.startTypeIdsVector(e,t.typeIds.length);var n=T.createTypeIdsVector(e,t.typeIds);return T.startUnion(e),T.addMode(e,t.mode),T.addTypeIds(e,n),T.endUnion(e)}},{key:"visitDictionary",value:function(t,e){var n=this.visit(t.indices,e);return B.startDictionaryEncoding(e),B.addId(e,new s(t.id,0)),B.addIsOrdered(e,t.isOrdered),void 0!==n&&B.addIndexType(e,n),B.endDictionaryEncoding(e)}},{key:"visitFixedSizeBinary",value:function(t,e){return I.startFixedSizeBinary(e),I.addByteWidth(e,t.byteWidth),I.endFixedSizeBinary(e)}},{key:"visitFixedSizeList",value:function(t,e){return A.startFixedSizeList(e),A.addListSize(e,t.listSize),A.endFixedSizeList(e)}},{key:"visitMap",value:function(t,e){return D.startMap(e),D.addKeysSorted(e,t.keysSorted),D.endMap(e)}}])&&i(n.prototype,r),f&&i(n,f),e}();e.TypeAssembler=x,e.instance=new x},"9UC0":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("kE2R"),f=n("1vD8"),l=n("2kVn"),y=n("LF0+"),p=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=o(this,a(e).apply(this,arguments)))._run=new s.Run,t}var n,r,p;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,l.Builder),n=e,(r=[{key:"setValue",value:function(t,n){u(a(e.prototype),"setValue",this).call(this,t,this._run.bind(n))}},{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");var n=this.children.push(t);return this.type=new y.FixedSizeList(this.type.listSize,new f.Field(e,t.type,!0)),n}},{key:"clear",value:function(){return this._run.clear(),u(a(e.prototype),"clear",this).call(this)}}])&&i(n.prototype,r),p&&i(n,p),e}();e.FixedSizeListBuilder=p},"9a0T":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var p=n("1vD8"),h=n("HHvO"),d=n("2kVn"),v=n("LF0+"),b=function(t){function e(t){var n;return o(this,e),(n=c(this,f(e).call(this,t)))._typeIds=new h.DataBufferBuilder(new Int8Array(0),1),"function"==typeof t.valueToChildTypeId&&(n._valueToChildTypeId=t.valueToChildTypeId),n}return l(e,d.Builder),a(e,[{key:"append",value:function(t,e){return this.set(this.length,t,e)}},{key:"set",value:function(t,e,n){return void 0===n&&(n=this._valueToChildTypeId(this,e,t)),this.setValid(t,this.isValid(e))&&this.setValue(t,e,n),this}},{key:"setValue",value:function(t,n,r){this._typeIds.set(t,r),s(f(e.prototype),"setValue",this).call(this,t,n)}},{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.children.length),n=this.children.push(t),r=this.type,o=r.children,u=r.mode,a=r.typeIds,c=[].concat(i(o),[new p.Field(e,t.type)]);return this.type=new v.Union(u,[].concat(i(a),[n]),c),n}},{key:"_valueToChildTypeId",value:function(t,e,n){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.")}},{key:"typeIdToChildIndex",get:function(){return this.type.typeIdToChildIndex}}]),e}();e.UnionBuilder=b;var m=function(t){function e(){return o(this,e),c(this,f(e).apply(this,arguments))}return l(e,b),e}();e.SparseUnionBuilder=m;var g=function(t){function e(t){var n;return o(this,e),(n=c(this,f(e).call(this,t)))._offsets=new h.DataBufferBuilder(new Int32Array(0)),n}return l(e,b),a(e,[{key:"setValue",value:function(t,n,r){var i=this.type.typeIdToChildIndex[r];return this._offsets.set(t,this.getChildAt(i).length),s(f(e.prototype),"setValue",this).call(this,t,n,r)}}]),e}();e.DenseUnionBuilder=g},BMGW:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var l=n("lx96"),y=n("prJ9"),p=y.flatbuffers.Long,h=y.flatbuffers.Builder,d=y.flatbuffers.ByteBuffer,v=l.org.apache.arrow.flatbuf.Block,b=l.org.apache.arrow.flatbuf.Footer,m=n("1vD8"),g=n("xW78"),w=n("fIDe"),_=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.MetadataVersion.V4,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;c(this,t),this.schema=e,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}return f(t,[{key:"recordBatches",value:regeneratorRuntime.mark(function t(){var e,n,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=-1,r=this.numRecordBatches;case 1:if(!(++n<r)){t.next=7;break}if(!(e=this.getRecordBatch(n))){t.next=5;break}return t.next=5,e;case 5:t.next=1;break;case 7:case"end":return t.stop()}},t,this)})},{key:"dictionaryBatches",value:regeneratorRuntime.mark(function t(){var e,n,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=-1,r=this.numDictionaries;case 1:if(!(++n<r)){t.next=7;break}if(!(e=this.getDictionaryBatch(n))){t.next=5;break}return t.next=5,e;case 5:t.next=1;break;case 7:case"end":return t.stop()}},t,this)})},{key:"getRecordBatch",value:function(t){return t>=0&&t<this.numRecordBatches&&this._recordBatches[t]||null}},{key:"getDictionaryBatch",value:function(t){return t>=0&&t<this.numDictionaries&&this._dictionaryBatches[t]||null}},{key:"numRecordBatches",get:function(){return this._recordBatches.length}},{key:"numDictionaries",get:function(){return this._dictionaryBatches.length}}],[{key:"decode",value:function(t){t=new d(w.toUint8Array(t));var e=b.getRootAsFooter(t),n=m.Schema.decode(e.schema());return new k(n,e)}},{key:"encode",value:function(t){var e=new h,n=m.Schema.encode(e,t.schema);b.startRecordBatchesVector(e,t.numRecordBatches),a(t.recordBatches()).slice().reverse().forEach(function(t){return O.encode(e,t)});var r=e.endVector();b.startDictionariesVector(e,t.numDictionaries),a(t.dictionaryBatches()).slice().reverse().forEach(function(t){return O.encode(e,t)});var i=e.endVector();return b.startFooter(e),b.addSchema(e,n),b.addVersion(e,g.MetadataVersion.V4),b.addRecordBatches(e,r),b.addDictionaries(e,i),b.finishFooterBuffer(e,b.endFooter(e)),e.asUint8Array()}}]),t}();e.Footer=_;var k=function(t){function e(t,n){var r;return c(this,e),(r=i(this,o(e).call(this,t,n.version())))._footer=n,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,_),f(e,[{key:"getRecordBatch",value:function(t){if(t>=0&&t<this.numRecordBatches){var e=this._footer.recordBatches(t);if(e)return O.decode(e)}return null}},{key:"getDictionaryBatch",value:function(t){if(t>=0&&t<this.numDictionaries){var e=this._footer.dictionaries(t);if(e)return O.decode(e)}return null}},{key:"numRecordBatches",get:function(){return this._footer.recordBatchesLength()}},{key:"numDictionaries",get:function(){return this._footer.dictionariesLength()}}]),e}(),O=function(){function t(e,n,r){c(this,t),this.metaDataLength=e,this.offset="number"==typeof r?r:r.low,this.bodyLength="number"==typeof n?n:n.low}return f(t,null,[{key:"decode",value:function(e){return new t(e.metaDataLength(),e.bodyLength(),e.offset())}},{key:"encode",value:function(t,e){var n=e.metaDataLength,r=new p(e.offset,0),i=new p(e.bodyLength,0);return v.createBlock(t,r,n,i)}}]),t}();e.FileBlock=O},BXqJ:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("xW78"),c=n("HXf3"),s=n("fCxL"),f=n("BYis"),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,c.Visitor),e}();function y(t){if(t.nullCount>0)return function(t){var e=f.instance.getVisitFn(t);return s.iterateBits(t.nullBitmap,t.offset,t.length,t,function(t,n,r,i){return 0!=(r&1<<i)?e(t,n):null})}(t);var e=t.type,n=t.typeId,r=t.length;return 1===t.stride&&(n===a.Type.Timestamp||n===a.Type.Int&&64!==e.bitWidth||n===a.Type.Time&&64!==e.bitWidth||n===a.Type.Float&&e.precision>0)?t.values.subarray(0,r)[Symbol.iterator]():regeneratorRuntime.mark(function e(n){var i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=-1;case 1:if(!(++i<r)){e.next=6;break}return e.next=4,n(t,i);case 4:e.next=1;break;case 6:case"end":return e.stop()}},e)})(f.instance.getVisitFn(t))}e.IteratorVisitor=l,l.prototype.visitNull=y,l.prototype.visitBool=y,l.prototype.visitInt=y,l.prototype.visitInt8=y,l.prototype.visitInt16=y,l.prototype.visitInt32=y,l.prototype.visitInt64=y,l.prototype.visitUint8=y,l.prototype.visitUint16=y,l.prototype.visitUint32=y,l.prototype.visitUint64=y,l.prototype.visitFloat=y,l.prototype.visitFloat16=y,l.prototype.visitFloat32=y,l.prototype.visitFloat64=y,l.prototype.visitUtf8=y,l.prototype.visitBinary=y,l.prototype.visitFixedSizeBinary=y,l.prototype.visitDate=y,l.prototype.visitDateDay=y,l.prototype.visitDateMillisecond=y,l.prototype.visitTimestamp=y,l.prototype.visitTimestampSecond=y,l.prototype.visitTimestampMillisecond=y,l.prototype.visitTimestampMicrosecond=y,l.prototype.visitTimestampNanosecond=y,l.prototype.visitTime=y,l.prototype.visitTimeSecond=y,l.prototype.visitTimeMillisecond=y,l.prototype.visitTimeMicrosecond=y,l.prototype.visitTimeNanosecond=y,l.prototype.visitDecimal=y,l.prototype.visitList=y,l.prototype.visitStruct=y,l.prototype.visitUnion=y,l.prototype.visitDenseUnion=y,l.prototype.visitSparseUnion=y,l.prototype.visitDictionary=y,l.prototype.visitInterval=y,l.prototype.visitIntervalDayTime=y,l.prototype.visitIntervalYearMonth=y,l.prototype.visitFixedSizeList=y,l.prototype.visitMap=y,e.instance=new l},BYis:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("XdQL"),c=n("HXf3"),s=n("YxFk"),f=n("P6gY"),l=n("xW78"),y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,c.Visitor),e}();e.GetVisitor=y;var p=function(t,e){return 4294967296*t[e+1]+(t[e]>>>0)},h=function(t){return new Date(t)},d=function(t,e,n){var r=e[n],i=e[n+1];return null!=r&&null!=i?t.subarray(r,i):null},v=function(t,e){return function(t,e){return h(function(t,e){return 864e5*t[e]}(t,e))}(t.values,e)},b=function(t,e){return function(t,e){return h(p(t,e))}(t.values,2*e)},m=function(t,e){var n=t.stride;return t.values[n*e]},g=function(t,e){var n=t.stride,r=t.values;return f.uint16ToFloat64(r[n*e])},w=function(t,e){var n=t.stride,r=t.values,i=t.type;return a.BN.new(r.subarray(n*e,n*(e+1)),i.isSigned)},_=function(t,e){var n=t.values;return 1e3*p(n,2*e)},k=function(t,e){var n=t.values;return p(n,2*e)},O=function(t,e){return function(t,e){return t[e+1]/1e3*4294967296+(t[e]>>>0)/1e3}(t.values,2*e)},S=function(t,e){return function(t,e){return t[e+1]/1e6*4294967296+(t[e]>>>0)/1e6}(t.values,2*e)},T=function(t,e){return t.values[t.stride*e]},B=function(t,e){return t.values[t.stride*e]},I=function(t,e){var n=t.values;return a.BN.signed(n.subarray(2*e,2*(e+1)))},A=function(t,e){var n=t.values;return a.BN.signed(n.subarray(2*e,2*(e+1)))},D=function(t,e){var n=t.typeIdToChildIndex[t.typeIds[e]],r=t.getChildAt(n);return r?r.get(t.valueOffsets[e]):null},x=function(t,e){var n=t.typeIdToChildIndex[t.typeIds[e]],r=t.getChildAt(n);return r?r.get(e):null},j=function(t,e){return t.values.subarray(2*e,2*(e+1))},V=function(t,e){var n=t.values[e],r=new Int32Array(2);return r[0]=n/12|0,r[1]=n%12|0,r};y.prototype.visitNull=function(t,e){return null},y.prototype.visitBool=function(t,e){var n=t.offset+e;return 0!=(t.values[n>>3]&1<<n%8)},y.prototype.visitInt=function(t,e){return t.type.bitWidth<64?m(t,e):w(t,e)},y.prototype.visitInt8=m,y.prototype.visitInt16=m,y.prototype.visitInt32=m,y.prototype.visitInt64=w,y.prototype.visitUint8=m,y.prototype.visitUint16=m,y.prototype.visitUint32=m,y.prototype.visitUint64=w,y.prototype.visitFloat=function(t,e){return t.type.precision!==l.Precision.HALF?m(t,e):g(t,e)},y.prototype.visitFloat16=g,y.prototype.visitFloat32=m,y.prototype.visitFloat64=m,y.prototype.visitUtf8=function(t,e){var n=t.values,r=t.valueOffsets,i=d(n,r,e);return null!==i?s.decodeUtf8(i):null},y.prototype.visitBinary=function(t,e){var n=t.values,r=t.valueOffsets;return d(n,r,e)},y.prototype.visitFixedSizeBinary=function(t,e){var n=t.stride;return t.values.subarray(n*e,n*(e+1))},y.prototype.visitDate=function(t,e){return t.type.unit===l.DateUnit.DAY?v(t,e):b(t,e)},y.prototype.visitDateDay=v,y.prototype.visitDateMillisecond=b,y.prototype.visitTimestamp=function(t,e){switch(t.type.unit){case l.TimeUnit.SECOND:return _(t,e);case l.TimeUnit.MILLISECOND:return k(t,e);case l.TimeUnit.MICROSECOND:return O(t,e);case l.TimeUnit.NANOSECOND:return S(t,e)}},y.prototype.visitTimestampSecond=_,y.prototype.visitTimestampMillisecond=k,y.prototype.visitTimestampMicrosecond=O,y.prototype.visitTimestampNanosecond=S,y.prototype.visitTime=function(t,e){switch(t.type.unit){case l.TimeUnit.SECOND:return T(t,e);case l.TimeUnit.MILLISECOND:return B(t,e);case l.TimeUnit.MICROSECOND:return I(t,e);case l.TimeUnit.NANOSECOND:return A(t,e)}},y.prototype.visitTimeSecond=T,y.prototype.visitTimeMillisecond=B,y.prototype.visitTimeMicrosecond=I,y.prototype.visitTimeNanosecond=A,y.prototype.visitDecimal=function(t,e){var n=t.values;return a.BN.decimal(n.subarray(4*e,4*(e+1)))},y.prototype.visitList=function(t,e){var n=t.getChildAt(0),r=t.valueOffsets,i=t.stride;return n.slice(r[e*i],r[e*i+1])},y.prototype.visitStruct=function(t,e){return t.bind(e)},y.prototype.visitUnion=function(t,e){return t.type.mode===l.UnionMode.Dense?D(t,e):x(t,e)},y.prototype.visitDenseUnion=D,y.prototype.visitSparseUnion=x,y.prototype.visitDictionary=function(t,e){return t.getValue(t.getKey(e))},y.prototype.visitInterval=function(t,e){return t.type.unit===l.IntervalUnit.DAY_TIME?j(t,e):V(t,e)},y.prototype.visitIntervalDayTime=j,y.prototype.visitIntervalYearMonth=V,y.prototype.visitFixedSizeList=function(t,e){var n=t.getChildAt(0),r=t.stride;return n.slice(e*r,(e+1)*r)},y.prototype.visitMap=function(t,e){return t.bind(e)},e.instance=new y},Bf6J:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("HXf3"),s=n("vDpf"),f=n("BpbQ"),l=n("2ixf"),y=n("xt3r"),p=n("xo/C"),h=n("4n+2"),d=n("Vpg6"),v=n("ucDT"),b=n("DpTN"),m=n("XqFR"),g=n("JPGT"),w=n("0C15"),_=n("JEeJ"),k=n("5ypL"),O=n("sIVg"),S=n("OAD5"),T=n("HUTE"),B=n("JO07"),I=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}var n,r,I;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,c.Visitor),n=e,(r=[{key:"visitNull",value:function(){return _.NullVector}},{key:"visitBool",value:function(){return f.BoolVector}},{key:"visitInt",value:function(){return m.IntVector}},{key:"visitInt8",value:function(){return m.Int8Vector}},{key:"visitInt16",value:function(){return m.Int16Vector}},{key:"visitInt32",value:function(){return m.Int32Vector}},{key:"visitInt64",value:function(){return m.Int64Vector}},{key:"visitUint8",value:function(){return m.Uint8Vector}},{key:"visitUint16",value:function(){return m.Uint16Vector}},{key:"visitUint32",value:function(){return m.Uint32Vector}},{key:"visitUint64",value:function(){return m.Uint64Vector}},{key:"visitFloat",value:function(){return v.FloatVector}},{key:"visitFloat16",value:function(){return v.Float16Vector}},{key:"visitFloat32",value:function(){return v.Float32Vector}},{key:"visitFloat64",value:function(){return v.Float64Vector}},{key:"visitUtf8",value:function(){return B.Utf8Vector}},{key:"visitBinary",value:function(){return s.BinaryVector}},{key:"visitFixedSizeBinary",value:function(){return h.FixedSizeBinaryVector}},{key:"visitDate",value:function(){return l.DateVector}},{key:"visitDateDay",value:function(){return l.DateDayVector}},{key:"visitDateMillisecond",value:function(){return l.DateMillisecondVector}},{key:"visitTimestamp",value:function(){return O.TimestampVector}},{key:"visitTimestampSecond",value:function(){return O.TimestampSecondVector}},{key:"visitTimestampMillisecond",value:function(){return O.TimestampMillisecondVector}},{key:"visitTimestampMicrosecond",value:function(){return O.TimestampMicrosecondVector}},{key:"visitTimestampNanosecond",value:function(){return O.TimestampNanosecondVector}},{key:"visitTime",value:function(){return S.TimeVector}},{key:"visitTimeSecond",value:function(){return S.TimeSecondVector}},{key:"visitTimeMillisecond",value:function(){return S.TimeMillisecondVector}},{key:"visitTimeMicrosecond",value:function(){return S.TimeMicrosecondVector}},{key:"visitTimeNanosecond",value:function(){return S.TimeNanosecondVector}},{key:"visitDecimal",value:function(){return y.DecimalVector}},{key:"visitList",value:function(){return g.ListVector}},{key:"visitStruct",value:function(){return k.StructVector}},{key:"visitUnion",value:function(){return T.UnionVector}},{key:"visitDenseUnion",value:function(){return T.DenseUnionVector}},{key:"visitSparseUnion",value:function(){return T.SparseUnionVector}},{key:"visitDictionary",value:function(){return p.DictionaryVector}},{key:"visitInterval",value:function(){return b.IntervalVector}},{key:"visitIntervalDayTime",value:function(){return b.IntervalDayTimeVector}},{key:"visitIntervalYearMonth",value:function(){return b.IntervalYearMonthVector}},{key:"visitFixedSizeList",value:function(){return d.FixedSizeListVector}},{key:"visitMap",value:function(){return w.MapVector}}])&&i(n.prototype,r),I&&i(n,I),e}();e.GetVectorConstructor=I,e.instance=new I},BpbQ:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("LF0+"),s=n("qF1w"),f=n("ffPt"),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}var n,r,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,s.BaseVector),n=e,l=[{key:"from",value:function(t){return f.vectorFromValuesWithType(function(){return new c.Bool},t)}}],(r=null)&&i(n.prototype,r),l&&i(n,l),e}();e.BoolVector=l},BvRX:function(t,e,n){"use strict";function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function c(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var y=n("XdQL"),p=n("HHvO"),h=n("7DnX"),d=n("2kVn"),v=function(t){function e(){return o(this,e),c(this,s(e).apply(this,arguments))}return f(e,d.FixedWidthBuilder),a(e,[{key:"setValue",value:function(t,e){this._values.set(t,e)}}]),e}();e.IntBuilder=v;var b=function(t){function e(){return o(this,e),c(this,s(e).apply(this,arguments))}return f(e,v),e}();e.Int8Builder=b;var m=function(t){function e(){return o(this,e),c(this,s(e).apply(this,arguments))}return f(e,v),e}();e.Int16Builder=m;var g=function(t){function e(){return o(this,e),c(this,s(e).apply(this,arguments))}return f(e,v),e}();e.Int32Builder=g;var w=function(t){function e(t){var n;return o(this,e),t.nullValues&&(t.nullValues=t.nullValues.map(B)),(n=c(this,s(e).call(this,t)))._values=new p.WideBufferBuilder(new Int32Array(0),2),n}return f(e,v),a(e,[{key:"isValid",value:function(t){return r(s(e.prototype),"isValid",this).call(this,B(t))}},{key:"values64",get:function(){return this._values.buffer64}}]),e}();e.Int64Builder=w;var _=function(t){function e(){return o(this,e),c(this,s(e).apply(this,arguments))}return f(e,v),e}();e.Uint8Builder=_;var k=function(t){function e(){return o(this,e),c(this,s(e).apply(this,arguments))}return f(e,v),e}();e.Uint16Builder=k;var O=function(t){function e(){return o(this,e),c(this,s(e).apply(this,arguments))}return f(e,v),e}();e.Uint32Builder=O;var S=function(t){function e(t){var n;return o(this,e),t.nullValues&&(t.nullValues=t.nullValues.map(B)),(n=c(this,s(e).call(this,t)))._values=new p.WideBufferBuilder(new Uint32Array(0),2),n}return f(e,v),a(e,[{key:"isValid",value:function(t){return r(s(e.prototype),"isValid",this).call(this,B(t))}},{key:"values64",get:function(){return this._values.buffer64}}]),e}();e.Uint64Builder=S;var T,B=(T={BigIntArray:h.BigInt64Array},function(t){return ArrayBuffer.isView(t)&&(T.buffer=t.buffer,T.byteOffset=t.byteOffset,T.byteLength=t.byteLength,t=y.bignumToBigInt(T),T.buffer=null),t})},DpTN:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("qF1w"),f=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,s.BaseVector),e}();e.IntervalVector=f;var l=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.IntervalDayTimeVector=l;var y=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.IntervalYearMonthVector=y},"EQ+v":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("2kVn"),f=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,s.FixedWidthBuilder),e}();e.TimeBuilder=f;var l=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimeSecondBuilder=l;var y=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimeMillisecondBuilder=y;var p=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimeMicrosecondBuilder=p;var h=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimeNanosecondBuilder=h},Eica:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("YxFk"),f=n("TUG7"),l=n("HHvO"),y=n("2kVn"),p=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=o(this,a(e).call(this,t)))._values=new l.BufferBuilder(new Uint8Array(0)),n}var n,r,f;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,y.VariableWidthBuilder),n=e,(r=[{key:"setValue",value:function(t,n){return u(a(e.prototype),"setValue",this).call(this,t,s.encodeUtf8(n))}},{key:"_flushPending",value:function(t,e){}},{key:"byteLength",get:function(){var t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}}])&&i(n.prototype,r),f&&i(n,f),e}();e.Utf8Builder=p,p.prototype._flushPending=f.BinaryBuilder.prototype._flushPending},"HDz+":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("1vD8"),f=n("2kVn"),l=n("LF0+"),y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,a(e).apply(this,arguments))}var n,r,y;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,f.Builder),n=e,(r=[{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.numChildren),n=this.children.push(t);return this.type=new l.Struct([].concat(i(this.type.children),[new s.Field(e,t.type,!0)])),n}}])&&o(n.prototype,r),y&&o(n,y),e}();e.StructBuilder=y},HGcr:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("v/3b"),s=n("HXf3"),f=n("YxFk"),l=n("P6gY"),y=n("fIDe"),p=n("xW78"),h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,s.Visitor),e}();e.SetVisitor=h;var d=function(t,e,n){t[e]=n%4294967296|0,t[e+1]=n/4294967296|0},v=function(t,e,n,r){var i=e[n],o=e[n+1];null!=i&&null!=o&&t.set(r.subarray(0,o-i),i)},b=function(t,e,n){!function(t,e,n){t[e]=n/864e5|0}(t.values,e,n.valueOf())},m=function(t,e,n){var r=t.values;d(r,2*e,n.valueOf())},g=function(t,e,n){var r=t.stride;t.values[r*e]=n},w=function(t,e,n){var r=t.stride;t.values[r*e]=l.float64ToUint16(n)},_=function(t,e,n){switch(i(n)){case"bigint":t.values64[e]=n;break;case"number":t.values[e*t.stride]=n;break;default:var r=n,o=t.stride,u=t.ArrayType,a=y.toArrayBufferView(u,r);t.values.set(a.subarray(0,o),o*e)}},k=function(t,e,n){var r=t.values;return d(r,2*e,n/1e3)},O=function(t,e,n){var r=t.values;return d(r,2*e,n)},S=function(t,e,n){return function(t,e,n){t[e]=1e3*n%4294967296|0,t[e+1]=1e3*n/4294967296|0}(t.values,2*e,n)},T=function(t,e,n){return function(t,e,n){t[e]=1e6*n%4294967296|0,t[e+1]=1e6*n/4294967296|0}(t.values,2*e,n)},B=function(t,e,n){t.values[t.stride*e]=n},I=function(t,e,n){t.values[t.stride*e]=n},A=function(t,e,n){t.values.set(n.subarray(0,2),2*e)},D=function(t,e,n){t.values.set(n.subarray(0,2),2*e)},x=function(t,e,n){var r=t.typeIdToChildIndex[t.typeIds[e]],i=t.getChildAt(r);i&&i.set(t.valueOffsets[e],n)},j=function(t,e,n){var r=t.typeIdToChildIndex[t.typeIds[e]],i=t.getChildAt(r);i&&i.set(e,n)},V=function(t,e,n){t.values.set(n.subarray(0,2),2*e)},F=function(t,e,n){t.values[e]=12*n[0]+n[1]%12};h.prototype.visitBool=function(t,e,n){var r=t.offset,i=t.values,o=r+e;n?i[o>>3]|=1<<o%8:i[o>>3]&=~(1<<o%8)},h.prototype.visitInt=function(t,e,n){t.type.bitWidth<64?g(t,e,n):_(t,e,n)},h.prototype.visitInt8=g,h.prototype.visitInt16=g,h.prototype.visitInt32=g,h.prototype.visitInt64=_,h.prototype.visitUint8=g,h.prototype.visitUint16=g,h.prototype.visitUint32=g,h.prototype.visitUint64=_,h.prototype.visitFloat=function(t,e,n){t.type.precision!==p.Precision.HALF?g(t,e,n):w(t,e,n)},h.prototype.visitFloat16=w,h.prototype.visitFloat32=g,h.prototype.visitFloat64=g,h.prototype.visitUtf8=function(t,e,n){var r=t.values,i=t.valueOffsets;v(r,i,e,f.encodeUtf8(n))},h.prototype.visitBinary=function(t,e,n){var r=t.values,i=t.valueOffsets;return v(r,i,e,n)},h.prototype.visitFixedSizeBinary=function(t,e,n){var r=t.stride;t.values.set(n.subarray(0,r),r*e)},h.prototype.visitDate=function(t,e,n){t.type.unit===p.DateUnit.DAY?b(t,e,n):m(t,e,n)},h.prototype.visitDateDay=b,h.prototype.visitDateMillisecond=m,h.prototype.visitTimestamp=function(t,e,n){switch(t.type.unit){case p.TimeUnit.SECOND:return k(t,e,n);case p.TimeUnit.MILLISECOND:return O(t,e,n);case p.TimeUnit.MICROSECOND:return S(t,e,n);case p.TimeUnit.NANOSECOND:return T(t,e,n)}},h.prototype.visitTimestampSecond=k,h.prototype.visitTimestampMillisecond=O,h.prototype.visitTimestampMicrosecond=S,h.prototype.visitTimestampNanosecond=T,h.prototype.visitTime=function(t,e,n){switch(t.type.unit){case p.TimeUnit.SECOND:return B(t,e,n);case p.TimeUnit.MILLISECOND:return I(t,e,n);case p.TimeUnit.MICROSECOND:return A(t,e,n);case p.TimeUnit.NANOSECOND:return D(t,e,n)}},h.prototype.visitTimeSecond=B,h.prototype.visitTimeMillisecond=I,h.prototype.visitTimeMicrosecond=A,h.prototype.visitTimeNanosecond=D,h.prototype.visitDecimal=function(t,e,n){t.values.set(n.subarray(0,4),4*e)},h.prototype.visitList=function(t,e,n){for(var r=t.getChildAt(0),i=t.valueOffsets,o=-1,u=i[e],a=i[e+1];u<a;)r.set(u++,n.get(++o))},h.prototype.visitStruct=function(t,e,n){var r,i,o=n instanceof Map?(r=e,i=n,function(t,e,n){return t&&t.set(r,i.get(e.name))}):n instanceof c.Vector?function(t,e){return function(n,r,i){return n&&n.set(t,e.get(i))}}(e,n):Array.isArray(n)?function(t,e){return function(n,r,i){return n&&n.set(t,e[i])}}(e,n):function(t,e){return function(n,r,i){return n&&n.set(t,e[r.name])}}(e,n);t.type.children.forEach(function(e,n){return o(t.getChildAt(n),e,n)})},h.prototype.visitUnion=function(t,e,n){t.type.mode===p.UnionMode.Dense?x(t,e,n):j(t,e,n)},h.prototype.visitDenseUnion=x,h.prototype.visitSparseUnion=j,h.prototype.visitDictionary=function(t,e,n){var r=t.getKey(e);null!==r&&t.setValue(r,n)},h.prototype.visitInterval=function(t,e,n){t.type.unit===p.IntervalUnit.DAY_TIME?V(t,e,n):F(t,e,n)},h.prototype.visitIntervalDayTime=V,h.prototype.visitIntervalYearMonth=F,h.prototype.visitFixedSizeList=function(t,e,n){for(var r=t.getChildAt(0),i=t.stride,o=-1,u=e*i;++o<i;)r.set(u+o,n.get(o))},h.prototype.visitMap=function(t,e,n){for(var i=t.getChildAt(0),o=t.valueOffsets,u=n instanceof Map?r(n):Object.entries(n),a=-1,c=o[e],s=o[e+1];c<s;)i.set(c++,u[++a])},e.instance=new h},HHvO:function(t,e,n){"use strict";function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var y=n("fIDe"),p=n("7DnX"),h=function(t,e){return(t*e+63&-64||64)/e},d=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;s(this,t),this.buffer=e,this.stride=n,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e.constructor,this._resize(this.length=e.length/n|0)}return l(t,[{key:"set",value:function(t,e){return this}},{key:"append",value:function(t){return this.set(this.length,t)}},{key:"reserve",value:function(t){if(t>0){this.length+=t;var e=this.stride,n=this.length*e,r=this.buffer.length;n>=r&&this._resize(h(0===r?1*n:2*n,this.BYTES_PER_ELEMENT))}return this}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length;t=h(t*this.stride,this.BYTES_PER_ELEMENT);var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.length>=e?t.subarray(0,e):y.memcpy(new t.constructor(e),t,0)}(this.buffer,t);return this.clear(),e}},{key:"clear",value:function(){return this.length=0,this._resize(0),this}},{key:"_resize",value:function(t){return this.buffer=y.memcpy(new this.ArrayType(t),this.buffer)}},{key:"byteLength",get:function(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}},{key:"reservedLength",get:function(){return this.buffer.length/this.stride}},{key:"reservedByteLength",get:function(){return this.buffer.byteLength}}]),t}();e.BufferBuilder=d,d.prototype.offset=0;var v=function(t){function e(){return s(this,e),o(this,u(e).apply(this,arguments))}return a(e,d),l(e,[{key:"last",value:function(){return this.get(this.length-1)}},{key:"get",value:function(t){return this.buffer[t]}},{key:"set",value:function(t,e){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=e,this}}]),e}();e.DataBufferBuilder=v;var b=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array(0);return s(this,e),(t=o(this,u(e).call(this,n,1/8))).numValid=0,t}return a(e,v),l(e,[{key:"get",value:function(t){return this.buffer[t>>3]>>t%8&1}},{key:"set",value:function(t,e){var n=this.reserve(t-this.length+1).buffer,r=t>>3,i=t%8,o=n[r]>>i&1;return e?0===o&&(n[r]|=1<<i,++this.numValid):1===o&&(n[r]&=~(1<<i),--this.numValid),this}},{key:"clear",value:function(){return this.numValid=0,r(u(e.prototype),"clear",this).call(this)}},{key:"numInvalid",get:function(){return this.length-this.numValid}}]),e}();e.BitmapBufferBuilder=b;var m=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Int32Array(1);return s(this,e),o(this,u(e).call(this,t,1))}return a(e,v),l(e,[{key:"append",value:function(t){return this.set(this.length-1,t)}},{key:"set",value:function(t,e){var n=this.length-1,r=this.reserve(t-n+1).buffer;return n<t++&&r.fill(r[n],n,t),r[t]=r[t-1]+e,this}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length-1;return t>this.length&&this.set(t-1,0),r(u(e.prototype),"flush",this).call(this,t+1)}}]),e}();e.OffsetsBufferBuilder=m;var g=function(t){function e(){return s(this,e),o(this,u(e).apply(this,arguments))}return a(e,d),l(e,[{key:"set",value:function(t,e){switch(this.reserve(t-this.length+1),i(e)){case"bigint":this.buffer64[t]=e;break;case"number":this.buffer[t*this.stride]=e;break;default:this.buffer.set(e,t*this.stride)}return this}},{key:"_resize",value:function(t){var n=r(u(e.prototype),"_resize",this).call(this,t),i=n.byteLength/(this.BYTES_PER_ELEMENT*this.stride);return p.BigIntAvailable&&(this.buffer64=new this.ArrayType64(n.buffer,n.byteOffset,i)),n}},{key:"ArrayType64",get:function(){return this._ArrayType64||(this._ArrayType64=this.buffer instanceof Int32Array?p.BigInt64Array:p.BigUint64Array)}}]),e}();e.WideBufferBuilder=g},HUTE:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n("qF1w"),y=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,l.BaseVector),u(e,[{key:"typeIdToChildIndex",get:function(){return this.data.type.typeIdToChildIndex}}]),e}();e.UnionVector=y;var p=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,y),u(e,[{key:"valueOffsets",get:function(){return this.data.valueOffsets}}]),e}();e.DenseUnionVector=p;var h=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,y),e}();e.SparseUnionVector=h},HXf3:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var o=n("J0lL"),u=n("v/3b"),a=n("xW78"),c=n("LF0+"),s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,s;return e=t,(n=[{key:"visitMany",value:function(t){for(var e=this,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.map(function(t,n){return e.visit.apply(e,[t].concat(r(i.map(function(t){return t[n]}))))})}},{key:"visit",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.getVisitFn(e[0],!1).apply(this,e)}},{key:"getVisitFn",value:function(t){return function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=null,i=a.Type.NONE;e instanceof o.Data?i=f(e.type):e instanceof u.Vector?i=f(e.type):e instanceof c.DataType?i=f(e):"number"!=typeof(i=e)&&(i=a.Type[e]);switch(i){case a.Type.Null:r=t.visitNull;break;case a.Type.Bool:r=t.visitBool;break;case a.Type.Int:r=t.visitInt;break;case a.Type.Int8:r=t.visitInt8||t.visitInt;break;case a.Type.Int16:r=t.visitInt16||t.visitInt;break;case a.Type.Int32:r=t.visitInt32||t.visitInt;break;case a.Type.Int64:r=t.visitInt64||t.visitInt;break;case a.Type.Uint8:r=t.visitUint8||t.visitInt;break;case a.Type.Uint16:r=t.visitUint16||t.visitInt;break;case a.Type.Uint32:r=t.visitUint32||t.visitInt;break;case a.Type.Uint64:r=t.visitUint64||t.visitInt;break;case a.Type.Float:r=t.visitFloat;break;case a.Type.Float16:r=t.visitFloat16||t.visitFloat;break;case a.Type.Float32:r=t.visitFloat32||t.visitFloat;break;case a.Type.Float64:r=t.visitFloat64||t.visitFloat;break;case a.Type.Utf8:r=t.visitUtf8;break;case a.Type.Binary:r=t.visitBinary;break;case a.Type.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case a.Type.Date:r=t.visitDate;break;case a.Type.DateDay:r=t.visitDateDay||t.visitDate;break;case a.Type.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case a.Type.Timestamp:r=t.visitTimestamp;break;case a.Type.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case a.Type.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case a.Type.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case a.Type.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case a.Type.Time:r=t.visitTime;break;case a.Type.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case a.Type.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case a.Type.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case a.Type.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case a.Type.Decimal:r=t.visitDecimal;break;case a.Type.List:r=t.visitList;break;case a.Type.Struct:r=t.visitStruct;break;case a.Type.Union:r=t.visitUnion;break;case a.Type.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case a.Type.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case a.Type.Dictionary:r=t.visitDictionary;break;case a.Type.Interval:r=t.visitInterval;break;case a.Type.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case a.Type.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case a.Type.FixedSizeList:r=t.visitFixedSizeList;break;case a.Type.Map:r=t.visitMap}if("function"==typeof r)return r;if(!n)return function(){return null};throw new Error("Unrecognized type '".concat(a.Type[i],"'"))}(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}},{key:"visitNull",value:function(t){return null}},{key:"visitBool",value:function(t){return null}},{key:"visitInt",value:function(t){return null}},{key:"visitFloat",value:function(t){return null}},{key:"visitUtf8",value:function(t){return null}},{key:"visitBinary",value:function(t){return null}},{key:"visitFixedSizeBinary",value:function(t){return null}},{key:"visitDate",value:function(t){return null}},{key:"visitTimestamp",value:function(t){return null}},{key:"visitTime",value:function(t){return null}},{key:"visitDecimal",value:function(t){return null}},{key:"visitList",value:function(t){return null}},{key:"visitStruct",value:function(t){return null}},{key:"visitUnion",value:function(t){return null}},{key:"visitDictionary",value:function(t){return null}},{key:"visitInterval",value:function(t){return null}},{key:"visitFixedSizeList",value:function(t){return null}},{key:"visitMap",value:function(t){return null}}])&&i(e.prototype,n),s&&i(e,s),t}();function f(t){switch(t.typeId){case a.Type.Null:return a.Type.Null;case a.Type.Int:var e=t.bitWidth,n=t.isSigned;switch(e){case 8:return n?a.Type.Int8:a.Type.Uint8;case 16:return n?a.Type.Int16:a.Type.Uint16;case 32:return n?a.Type.Int32:a.Type.Uint32;case 64:return n?a.Type.Int64:a.Type.Uint64}return a.Type.Int;case a.Type.Float:switch(t.precision){case a.Precision.HALF:return a.Type.Float16;case a.Precision.SINGLE:return a.Type.Float32;case a.Precision.DOUBLE:return a.Type.Float64}return a.Type.Float;case a.Type.Binary:return a.Type.Binary;case a.Type.Utf8:return a.Type.Utf8;case a.Type.Bool:return a.Type.Bool;case a.Type.Decimal:return a.Type.Decimal;case a.Type.Time:switch(t.unit){case a.TimeUnit.SECOND:return a.Type.TimeSecond;case a.TimeUnit.MILLISECOND:return a.Type.TimeMillisecond;case a.TimeUnit.MICROSECOND:return a.Type.TimeMicrosecond;case a.TimeUnit.NANOSECOND:return a.Type.TimeNanosecond}return a.Type.Time;case a.Type.Timestamp:switch(t.unit){case a.TimeUnit.SECOND:return a.Type.TimestampSecond;case a.TimeUnit.MILLISECOND:return a.Type.TimestampMillisecond;case a.TimeUnit.MICROSECOND:return a.Type.TimestampMicrosecond;case a.TimeUnit.NANOSECOND:return a.Type.TimestampNanosecond}return a.Type.Timestamp;case a.Type.Date:switch(t.unit){case a.DateUnit.DAY:return a.Type.DateDay;case a.DateUnit.MILLISECOND:return a.Type.DateMillisecond}return a.Type.Date;case a.Type.Interval:switch(t.unit){case a.IntervalUnit.DAY_TIME:return a.Type.IntervalDayTime;case a.IntervalUnit.YEAR_MONTH:return a.Type.IntervalYearMonth}return a.Type.Interval;case a.Type.Map:return a.Type.Map;case a.Type.List:return a.Type.List;case a.Type.Struct:return a.Type.Struct;case a.Type.Union:switch(t.mode){case a.UnionMode.Dense:return a.Type.DenseUnion;case a.UnionMode.Sparse:return a.Type.SparseUnion}return a.Type.Union;case a.Type.FixedSizeBinary:return a.Type.FixedSizeBinary;case a.Type.FixedSizeList:return a.Type.FixedSizeList;case a.Type.Dictionary:return a.Type.Dictionary}throw new Error("Unrecognized type '".concat(a.Type[t.typeId],"'"))}e.Visitor=s,s.prototype.visitInt8=null,s.prototype.visitInt16=null,s.prototype.visitInt32=null,s.prototype.visitInt64=null,s.prototype.visitUint8=null,s.prototype.visitUint16=null,s.prototype.visitUint32=null,s.prototype.visitUint64=null,s.prototype.visitFloat16=null,s.prototype.visitFloat32=null,s.prototype.visitFloat64=null,s.prototype.visitDateDay=null,s.prototype.visitDateMillisecond=null,s.prototype.visitTimestampSecond=null,s.prototype.visitTimestampMillisecond=null,s.prototype.visitTimestampMicrosecond=null,s.prototype.visitTimestampNanosecond=null,s.prototype.visitTimeSecond=null,s.prototype.visitTimeMillisecond=null,s.prototype.visitTimeMicrosecond=null,s.prototype.visitTimeNanosecond=null,s.prototype.visitDenseUnion=null,s.prototype.visitSparseUnion=null,s.prototype.visitIntervalDayTime=null,s.prototype.visitIntervalYearMonth=null},"Il/q":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?u(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var h,d,v=n("mNq2"),b=Symbol.for("parent"),m=Symbol.for("rowIndex"),g=Symbol.for("keyToIdx"),w=Symbol.for("idxToVal"),_=Symbol.for("nodejs.util.inspect.custom"),k=function(){function t(e,n){l(this,t),this[b]=e,this.size=n}return p(t,[{key:"entries",value:function(){return this[Symbol.iterator]()}},{key:"has",value:function(t){return void 0!==this.get(t)}},{key:"get",value:function(t){var e=void 0;if(null!=t){var n=this[g]||(this[g]=new Map),r=n.get(t);if(void 0!==r){var i=this[w]||(this[w]=new Array(this.size));void 0!==(e=i[r])||(i[r]=e=this.getValue(r))}else if((r=this.getIndex(t))>-1){n.set(t,r);var o=this[w]||(this[w]=new Array(this.size));void 0!==(e=o[r])||(o[r]=e=this.getValue(r))}}return e}},{key:"set",value:function(t,e){if(null!=t){var n=this[g]||(this[g]=new Map),r=n.get(t);if(void 0===r&&n.set(t,r=this.getIndex(t)),r>-1)(this[w]||(this[w]=new Array(this.size)))[r]=this.setValue(r,e)}return this}},{key:"clear",value:function(){throw new Error("Clearing ".concat(this[Symbol.toStringTag]," not supported."))}},{key:"delete",value:function(t){throw new Error("Deleting ".concat(this[Symbol.toStringTag]," values not supported."))}},{key:Symbol.iterator,value:regeneratorRuntime.mark(function t(){var e,n,r,i,o,u,a,c,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=this.keys(),n=this.values(),r=this[g]||(this[g]=new Map),i=this[w]||(this[w]=new Array(this.size)),a=0;case 5:if((c=e.next()).done||(s=n.next()).done){t.next=15;break}return o=c.value,u=s.value,i[a]=u,r.has(o)||r.set(o,a),t.next=12,[o,u];case 12:++a,t.next=5;break;case 15:case"end":return t.stop()}},t,this)})},{key:"forEach",value:function(t,e){for(var n,r,i,o,u=this.keys(),a=this.values(),c=void 0===e?t:function(n,r,i){return t.call(e,n,r,i)},s=this[g]||(this[g]=new Map),f=this[w]||(this[w]=new Array(this.size)),l=0;!(i=u.next()).done&&!(o=a.next()).done;++l)n=i.value,r=o.value,f[l]=r,s.has(n)||s.set(n,l),c(r,n,this)}},{key:"toArray",value:function(){return f(this.values())}},{key:"toJSON",value:function(){var t={};return this.forEach(function(e,n){return t[n]=e}),t}},{key:"inspect",value:function(){return this.toString()}},{key:_,value:function(){return this.toString()}},{key:"toString",value:function(){var t=[];return this.forEach(function(e,n){n=v.valueToString(n),e=v.valueToString(e),t.push("".concat(n,": ").concat(e))}),"{ ".concat(t.join(", ")," }")}}]),t}();k[Symbol.toStringTag]=(h=k.prototype,Object.defineProperties(h,(s(d={size:{writable:!0,enumerable:!1,configurable:!1,value:0}},b,{writable:!0,enumerable:!1,configurable:!1,value:null}),s(d,m,{writable:!0,enumerable:!1,configurable:!1,value:-1}),d)),h[Symbol.toStringTag]="Row");var O=function(t){function e(t){var n;return l(this,e),n=i(this,o(e).call(this,t,t.length)),i(n,I(u(n)))}return a(e,k),p(e,[{key:"keys",value:function(){return this[b].getChildAt(0)[Symbol.iterator]()}},{key:"values",value:function(){return this[b].getChildAt(1)[Symbol.iterator]()}},{key:"getKey",value:function(t){return this[b].getChildAt(0).get(t)}},{key:"getIndex",value:function(t){return this[b].getChildAt(0).indexOf(t)}},{key:"getValue",value:function(t){return this[b].getChildAt(1).get(t)}},{key:"setValue",value:function(t,e){this[b].getChildAt(1).set(t,e)}}]),e}();e.MapRow=O;var S=function(t){function e(t){var n;return l(this,e),n=i(this,o(e).call(this,t,t.type.children.length)),i(n,B(u(n)))}return a(e,k),p(e,[{key:"keys",value:regeneratorRuntime.mark(function t(){var e,n,r,i,o,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,n=!1,r=void 0,t.prev=3,i=this[b].type.children[Symbol.iterator]();case 5:if(e=(o=i.next()).done){t.next=12;break}return u=o.value,t.next=9,u.name;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,!n){t.next=24;break}throw r;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"values",value:regeneratorRuntime.mark(function t(){var e,n,r,i,o,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,n=!1,r=void 0,t.prev=3,i=this[b].type.children[Symbol.iterator]();case 5:if(e=(o=i.next()).done){t.next=12;break}return u=o.value,t.next=9,this[u.name];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,!n){t.next=24;break}throw r;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"getKey",value:function(t){return this[b].type.children[t].name}},{key:"getIndex",value:function(t){return this[b].type.children.findIndex(function(e){return e.name===t})}},{key:"getValue",value:function(t){return this[b].getChildAt(t).get(this[m])}},{key:"setValue",value:function(t,e){return this[b].getChildAt(t).set(this[m],e)}}]),e}();e.StructRow=S,Object.setPrototypeOf(k.prototype,Map.prototype);var T,B=(T={enumerable:!0,configurable:!1,get:null,set:null},function(t){var e=-1,n=t[g]||(t[g]=new Map),r=function(t){return function(){return this.get(t)}},i=function(t){return function(e){return this.set(t,e)}},o=!0,u=!1,a=void 0;try{for(var c,s=t.keys()[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){var f=c.value;n.set(f,++e),T.get=r(f),T.set=i(f),t.hasOwnProperty(f)||(T.enumerable=!0,Object.defineProperty(t,f,T)),t.hasOwnProperty(e)||(T.enumerable=!1,Object.defineProperty(t,e,T))}}catch(t){u=!0,a=t}finally{try{o||null==s.return||s.return()}finally{if(u)throw a}}return T.get=T.set=null,t}),I=function(){if("undefined"==typeof Proxy)return B;var t=k.prototype.has,e=k.prototype.get,n=k.prototype.set,r=k.prototype.getKey,i={isExtensible:function(){return!1},deleteProperty:function(){return!1},preventExtensions:function(){return!0},ownKeys:function(t){return f(t.keys()).map(function(t){return"".concat(t)})},has:function(t,e){switch(e){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 b:case m:case w:case g:case _:return!0}return"number"!=typeof e||t.has(e)||(e=t.getKey(e)),t.has(e)},get:function(n,i,o){switch(i){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 b:case m:case w:case g:case _:return Reflect.get(n,i,o)}return"number"!=typeof i||t.call(o,i)||(i=r.call(o,i)),e.call(o,i)},set:function(e,i,o,u){switch(i){case b:case m:case w:case g:return Reflect.set(e,i,o,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:return!1}return"number"!=typeof i||t.call(u,i)||(i=r.call(u,i)),!!t.call(u,i)&&!!n.call(u,i,o)}};return function(t){return new Proxy(t,i)}}()},Ip4o:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("2kVn"),f=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,s.FixedWidthBuilder),e}();e.IntervalBuilder=f;var l=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.IntervalDayTimeBuilder=l;var y=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.IntervalYearMonthBuilder=y},J0lL:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var i=n("fCxL"),o=n("fCxL"),u=n("xW78"),a=n("LF0+"),c=n("fIDe");e.kUnknownNullCount=-1;var s=function(){function t(e,n,r,i,o,u,c){var s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=e,this.dictionary=c,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),this.childData=(u||[]).map(function(e){return e instanceof t?e:e.data}),o instanceof t?(this.stride=o.stride,this.values=o.values,this.typeIds=o.typeIds,this.nullBitmap=o.nullBitmap,this.valueOffsets=o.valueOffsets):(this.stride=a.strideForType(e),o&&((s=o[0])&&(this.valueOffsets=s),(s=o[1])&&(this.values=s),(s=o[2])&&(this.nullBitmap=s),(s=o[3])&&(this.typeIds=s)))}var n,s,f;return n=t,f=[{key:"new",value:function(e,n,r,i,o,a,c){switch(o instanceof t?o=o.buffers:o||(o=[]),e.typeId){case u.Type.Null:return t.Null(e,n,r);case u.Type.Int:return t.Int(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[]);case u.Type.Dictionary:return t.Dictionary(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[],c);case u.Type.Float:return t.Float(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[]);case u.Type.Bool:return t.Bool(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[]);case u.Type.Decimal:return t.Decimal(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[]);case u.Type.Date:return t.Date(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[]);case u.Type.Time:return t.Time(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[]);case u.Type.Timestamp:return t.Timestamp(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[]);case u.Type.Interval:return t.Interval(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[]);case u.Type.FixedSizeBinary:return t.FixedSizeBinary(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.DATA]||[]);case u.Type.Binary:return t.Binary(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.OFFSET]||[],o[u.BufferType.DATA]||[]);case u.Type.Utf8:return t.Utf8(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.OFFSET]||[],o[u.BufferType.DATA]||[]);case u.Type.List:return t.List(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.OFFSET]||[],(a||[])[0]);case u.Type.FixedSizeList:return t.FixedSizeList(e,n,r,i||0,o[u.BufferType.VALIDITY],(a||[])[0]);case u.Type.Struct:return t.Struct(e,n,r,i||0,o[u.BufferType.VALIDITY],a||[]);case u.Type.Map:return t.Map(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.OFFSET]||[],(a||[])[0]);case u.Type.Union:return t.Union(e,n,r,i||0,o[u.BufferType.VALIDITY],o[u.BufferType.TYPE]||[],o[u.BufferType.OFFSET]||a,a)}throw new Error("Unrecognized typeId ".concat(e.typeId))}},{key:"Null",value:function(e,n,r){return new t(e,n,r,0)}},{key:"Int",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.ArrayType,u),c.toUint8Array(o)])}},{key:"Dictionary",value:function(e,n,r,i,o,u,a){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.indices.ArrayType,u),c.toUint8Array(o)],[],a)}},{key:"Float",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.ArrayType,u),c.toUint8Array(o)])}},{key:"Bool",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.ArrayType,u),c.toUint8Array(o)])}},{key:"Decimal",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.ArrayType,u),c.toUint8Array(o)])}},{key:"Date",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.ArrayType,u),c.toUint8Array(o)])}},{key:"Time",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.ArrayType,u),c.toUint8Array(o)])}},{key:"Timestamp",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.ArrayType,u),c.toUint8Array(o)])}},{key:"Interval",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.ArrayType,u),c.toUint8Array(o)])}},{key:"FixedSizeBinary",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,c.toArrayBufferView(e.ArrayType,u),c.toUint8Array(o)])}},{key:"Binary",value:function(e,n,r,i,o,u,a){return new t(e,n,r,i,[c.toInt32Array(u),c.toUint8Array(a),c.toUint8Array(o)])}},{key:"Utf8",value:function(e,n,r,i,o,u,a){return new t(e,n,r,i,[c.toInt32Array(u),c.toUint8Array(a),c.toUint8Array(o)])}},{key:"List",value:function(e,n,r,i,o,u,a){return new t(e,n,r,i,[c.toInt32Array(u),void 0,c.toUint8Array(o)],[a])}},{key:"FixedSizeList",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,void 0,c.toUint8Array(o)],[u])}},{key:"Struct",value:function(e,n,r,i,o,u){return new t(e,n,r,i,[void 0,void 0,c.toUint8Array(o)],u)}},{key:"Map",value:function(e,n,r,i,o,u,a){return new t(e,n,r,i,[c.toInt32Array(u),void 0,c.toUint8Array(o)],[a])}},{key:"Union",value:function(e,n,r,i,o,a,s,f){var l=[void 0,void 0,c.toUint8Array(o),c.toArrayBufferView(e.ArrayType,a)];return e.mode===u.UnionMode.Sparse?new t(e,n,r,i,l,s):(l[u.BufferType.OFFSET]=c.toInt32Array(s),new t(e,n,r,i,l,f))}}],(s=[{key:"clone",value:function(e){return new t(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.offset,arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length,arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._nullCount,arguments.length>4&&void 0!==arguments[4]?arguments[4]:this,arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.childData,this.dictionary)}},{key:"slice",value:function(t,e){var n=this.stride,r=this.typeId,i=this.childData,o=+(0===this._nullCount)-1,u=16===r?n:1,a=this._sliceBuffers(t,e,n,r);return this.clone(this.type,this.offset+t,e,o,a,!i.length||this.valueOffsets?i:this._sliceChildren(i,u*t,u*e))}},{key:"_changeLengthAndBackfillNullBitmap",value:function(t){if(this.typeId===u.Type.Null)return this.clone(this.type,0,t,0);var e=this.length,n=this.nullCount,r=new Uint8Array((t+63&-64)>>3).fill(255,0,e>>3);r[e>>3]=(1<<e-(-8&e))-1,n>0&&r.set(i.truncateBitmap(this.offset,e,this.nullBitmap),0);var o=this.buffers;return o[u.BufferType.VALIDITY]=r,this.clone(this.type,0,t,n+(t-e),o)}},{key:"_sliceBuffers",value:function(t,e,n,r){var i,o=this.buffers;return(i=o[u.BufferType.TYPE])&&(o[u.BufferType.TYPE]=i.subarray(t,t+e)),(i=o[u.BufferType.OFFSET])&&(o[u.BufferType.OFFSET]=i.subarray(t,t+e+1))||(i=o[u.BufferType.DATA])&&(o[u.BufferType.DATA]=6===r?i:i.subarray(n*t,n*(t+e))),o}},{key:"_sliceChildren",value:function(t,e,n){return t.map(function(t){return t.slice(e,n)})}},{key:"typeId",get:function(){return this.type.typeId}},{key:"ArrayType",get:function(){return this.type.ArrayType}},{key:"buffers",get:function(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}},{key:"byteLength",get:function(){var t=0,e=this.valueOffsets,n=this.values,r=this.nullBitmap,i=this.typeIds;return e&&(t+=e.byteLength),n&&(t+=n.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),this.childData.reduce(function(t,e){return t+e.byteLength},t)}},{key:"nullCount",get:function(){var t,n=this._nullCount;return n<=e.kUnknownNullCount&&(t=this.nullBitmap)&&(this._nullCount=n=this.length-o.popcnt_bit_range(t,this.offset,this.offset+this.length)),n}}])&&r(n.prototype,s),f&&r(n,f),t}();e.Data=s,s.prototype.childData=Object.freeze([])},JEeJ:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("qF1w"),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,a.BaseVector),e}();e.NullVector=c},JL5c:function(t,e,n){"use strict";n.r(e),n.d(e,"base64StringToArrowTable",function(){return u}),n.d(e,"arrowTableToDataFrame",function(){return s}),n.d(e,"grafanaDataFrameToArrowTable",function(){return f}),n.d(e,"resultsToDataFrames",function(){return l});var r=n("mrSG"),i=n("KgU3"),o=n("3+te");function u(t){var e=atob(t),n=Uint8Array.from(e,function(t){return t.charCodeAt(0)});return o.Table.from(n)}function a(t){return t||void 0}function c(t){if(t&&t.length&&"{}"!==t)try{return JSON.parse(t)}catch(e){console.warn("Error reading JSON from arrow metadata: ",t)}}function s(t){for(var e=[],n=0;n<t.numCols;n++){var r=t.getColumnAt(n);if(r){var u=t.schema.fields[n],s=i.FieldType.other,f=r;switch(u.typeId){case o.ArrowType.Decimal:case o.ArrowType.Int:case o.ArrowType.FloatingPoint:s=i.FieldType.number;break;case o.ArrowType.Bool:s=i.FieldType.boolean;break;case o.ArrowType.Timestamp:s=i.FieldType.time;break;case o.ArrowType.Utf8:s=i.FieldType.string;break;default:console.log("UNKNOWN Type:",u)}e.push({name:r.name,type:s,values:f,config:c(r.metadata.get("config"))||{},labels:c(r.metadata.get("labels"))})}}var l=t.schema.metadata;return{fields:e,length:t.length,refId:a(l.get("refId")),name:a(l.get("name")),meta:c(l.get("meta")),table:t}}function f(t){var e=o.Table.new(t.fields.map(function(t){var e=o.Column.new(t.name,function(t){var e;e=t.type===i.FieldType.number?new o.Float64:t.type===i.FieldType.time?new o.TimestampMillisecond:t.type===i.FieldType.boolean?new o.Bool:(t.type,i.FieldType.string,new o.Utf8);var n=o.Builder.new({type:e,nullValues:[null]});return t.values.toArray().forEach(n.append.bind(n)),n.finish().toVector()}(t));return t.labels&&e.metadata.set("labels",JSON.stringify(t.labels)),t.config&&e.metadata.set("config",JSON.stringify(t.config)),e})),n=e.schema.metadata;return t.name&&n.set("name",t.name),t.refId&&n.set("refId",t.refId),t.meta&&n.set("meta",JSON.stringify(t.meta)),e}function l(t){var e,n,i,o,a=[];try{for(var c=Object(r.__values)(Object.values(t.results)),f=c.next();!f.done;f=c.next()){var l=f.value;try{for(var y=(i=void 0,Object(r.__values)(l.dataframes)),p=y.next();!p.done;p=y.next()){var h=u(p.value);a.push(s(h))}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}}}catch(t){e={error:t}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return a}},JO07:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("v/3b"),s=n("qF1w"),f=n("LF0+"),l=n("ffPt"),y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}var n,r,y;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,s.BaseVector),n=e,y=[{key:"from",value:function(t){return l.vectorFromValuesWithType(function(){return new f.Utf8},t)}}],(r=[{key:"asBinary",value:function(){return c.Vector.new(this.data.clone(new f.Binary))}}])&&i(n.prototype,r),y&&i(n,y),e}();e.Utf8Vector=y},JPGT:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("qF1w"),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,a.BaseVector),e}();e.ListVector=c},Jgyr:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n("sk+S"),y=n("XqFR"),p=n("1vD8"),h=n("zpYq"),d=n("vSKt"),v=n("LF0+");l.Table.prototype.countBy=function(t){return new b(this.chunks).countBy(t)},l.Table.prototype.scan=function(t,e){return new b(this.chunks).scan(t,e)},l.Table.prototype.scanReverse=function(t,e){return new b(this.chunks).scanReverse(t,e)},l.Table.prototype.filter=function(t){return new b(this.chunks).filter(t)};var b=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,l.Table),u(e,[{key:"filter",value:function(t){return new g(this.chunks,t)}},{key:"scan",value:function(t,e){for(var n=this.chunks,r=n.length,i=-1;++i<r;){var o=n[i];e&&e(o);for(var u=-1,a=o.length;++u<a;)t(u,o)}}},{key:"scanReverse",value:function(t,e){for(var n=this.chunks,r=n.length;--r>=0;){var i=n[r];e&&e(i);for(var o=i.length;--o>=0;)t(o,i)}}},{key:"countBy",value:function(t){var e=this.chunks,n=e.length,r="string"==typeof t?new h.Col(t):t;r.bind(e[n-1]);var i=r.vector;if(!v.DataType.isDictionary(i.type))throw new Error("countBy currently only supports dictionary-encoded columns");for(var o=Math.ceil(Math.log(i.length)/Math.log(256)),u=new(4==o?Uint32Array:o>=2?Uint16Array:Uint8Array)(i.dictionary.length),a=-1;++a<n;){var c=e[a];r.bind(c);for(var s=r.vector.indices,f=-1,l=c.length;++f<l;){var p=s.get(f);null!==p&&u[p]++}}return new m(i.dictionary,y.IntVector.from(u))}}]),e}();e.DataFrame=b;var m=function(t){function e(t,n){i(this,e);var r=new p.Schema([new p.Field("values",t.type),new p.Field("counts",n.type)]);return a(this,c(e).call(this,new d.RecordBatch(r,n.length,[t,n])))}return s(e,l.Table),u(e,[{key:"toJSON",value:function(){for(var t=this.getColumnAt(0),e=this.getColumnAt(1),n={},r=-1;++r<this.length;)n[t.get(r)]=e.get(r);return n}}]),e}();e.CountByResult=m;var g=function(t){function e(t,n){var r;return i(this,e),(r=a(this,c(e).call(this,t)))._predicate=n,r}return s(e,b),u(e,[{key:"scan",value:function(t,e){for(var n=this._chunks,r=n.length,i=-1;++i<r;){var o=n[i];e&&e(o);for(var u=this._predicate.bind(o),a=-1,c=o.length;++a<c;)u(a,o)&&t(a,o)}}},{key:"scanReverse",value:function(t,e){for(var n=this._chunks,r=n.length;--r>=0;){var i=n[r];e&&e(i);for(var o=this._predicate.bind(i),u=i.length;--u>=0;)o(u,i)&&t(u,i)}}},{key:"count",value:function(){for(var t=0,e=this._chunks,n=e.length,r=-1;++r<n;)for(var i=e[r],o=this._predicate.bind(i),u=-1,a=i.length;++u<a;)o(u,i)&&++t;return t}},{key:Symbol.iterator,value:regeneratorRuntime.mark(function t(){var e,n,r,i,o,u,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=this._chunks,n=e.length,r=-1;case 3:if(!(++r<n)){t.next=15;break}i=e[r],o=this._predicate.bind(i),u=-1,a=i.length;case 7:if(!(++u<a)){t.next=13;break}if(!o(u,i)){t.next=11;break}return t.next=11,i.get(u);case 11:t.next=7;break;case 13:t.next=3;break;case 15:case"end":return t.stop()}},t,this)})},{key:"filter",value:function(t){return new e(this._chunks,this._predicate.and(t))}},{key:"countBy",value:function(t){var e=this._chunks,n=e.length,r="string"==typeof t?new h.Col(t):t;r.bind(e[n-1]);var i=r.vector;if(!v.DataType.isDictionary(i.type))throw new Error("countBy currently only supports dictionary-encoded columns");for(var o=Math.ceil(Math.log(i.length)/Math.log(256)),u=new(4==o?Uint32Array:o>=2?Uint16Array:Uint8Array)(i.dictionary.length),a=-1;++a<n;){var c=e[a],s=this._predicate.bind(c);r.bind(c);for(var f=r.vector.indices,l=-1,p=c.length;++l<p;){var d=f.get(l);null!==d&&s(l,c)&&u[d]++}}return new m(i.dictionary,y.IntVector.from(u))}}]),e}();e.FilteredDataFrame=g},JuNI:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(n,!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var c=n("4R6c");e.builderThroughDOMStream=function(t){return new s(t)};var s=function(){function t(e){var n,r,a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._numChunks=0,this._finished=!1,this._bufferedSize=0;var s=e.readableStrategy,y=e.writableStrategy,p=e.queueingStrategy,h=void 0===p?"count":p,d=u(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=c.Builder.new(d),this._getSize="bytes"!==h?f:l;var v=i({},s).highWaterMark,b=void 0===v?"bytes"===h?Math.pow(2,14):1e3:v,m=i({},y).highWaterMark,g=void 0===m?"bytes"===h?Math.pow(2,14):1e3:m;this.readable=new ReadableStream((o(n={},"cancel",function(){a._builder.clear()}),o(n,"pull",function(t){a._maybeFlush(a._builder,a._controller=t)}),o(n,"start",function(t){a._maybeFlush(a._builder,a._controller=t)}),n),{highWaterMark:b,size:"bytes"!==h?f:l}),this.writable=new WritableStream((o(r={},"abort",function(){a._builder.clear()}),o(r,"write",function(){a._maybeFlush(a._builder,a._controller)}),o(r,"close",function(){a._maybeFlush(a._builder.finish(),a._controller)}),r),{highWaterMark:g,size:function(t){return a._writeValueAndReturnChunkSize(t)}})}var e,n,r;return e=t,(n=[{key:"_writeValueAndReturnChunkSize",value:function(t){var e=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-e}},{key:"_maybeFlush",value:function(t,e){null!==e&&(this._bufferedSize>=e.desiredSize&&++this._numChunks&&this._enqueue(e,t.toVector()),t.finished&&((t.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(e,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(e,null)))}},{key:"_enqueue",value:function(t,e){this._bufferedSize=0,this._controller=null,null===e?t.close():t.enqueue(e)}}])&&a(e.prototype,n),r&&a(e,r),t}();e.BuilderTransform=s;var f=function(t){return t.length},l=function(t){return t.byteLength}},Jzaf:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("2kVn"),f=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,s.FixedWidthBuilder),e}();e.DateBuilder=f;var l=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.DateDayBuilder=l;var y=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.DateMillisecondBuilder=y},"LF0+":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var l,y=n("nP89"),p=n("xW78"),h=function(){function t(){c(this,t)}return f(t,[{key:"compareTo",value:function(t){return y.instance.visit(this,t)}},{key:"typeId",get:function(){return p.Type.NONE}}],[{key:"isNull",value:function(t){return t&&t.typeId===p.Type.Null}},{key:"isInt",value:function(t){return t&&t.typeId===p.Type.Int}},{key:"isFloat",value:function(t){return t&&t.typeId===p.Type.Float}},{key:"isBinary",value:function(t){return t&&t.typeId===p.Type.Binary}},{key:"isUtf8",value:function(t){return t&&t.typeId===p.Type.Utf8}},{key:"isBool",value:function(t){return t&&t.typeId===p.Type.Bool}},{key:"isDecimal",value:function(t){return t&&t.typeId===p.Type.Decimal}},{key:"isDate",value:function(t){return t&&t.typeId===p.Type.Date}},{key:"isTime",value:function(t){return t&&t.typeId===p.Type.Time}},{key:"isTimestamp",value:function(t){return t&&t.typeId===p.Type.Timestamp}},{key:"isInterval",value:function(t){return t&&t.typeId===p.Type.Interval}},{key:"isList",value:function(t){return t&&t.typeId===p.Type.List}},{key:"isStruct",value:function(t){return t&&t.typeId===p.Type.Struct}},{key:"isUnion",value:function(t){return t&&t.typeId===p.Type.Union}},{key:"isFixedSizeBinary",value:function(t){return t&&t.typeId===p.Type.FixedSizeBinary}},{key:"isFixedSizeList",value:function(t){return t&&t.typeId===p.Type.FixedSizeList}},{key:"isMap",value:function(t){return t&&t.typeId===p.Type.Map}},{key:"isDictionary",value:function(t){return t&&t.typeId===p.Type.Dictionary}}]),t}();h[Symbol.toStringTag]=((l=h.prototype).children=null,l.ArrayType=Array,l[Symbol.toStringTag]="DataType"),e.DataType=h;var d=function(t){function e(){return c(this,e),i(this,o(e).apply(this,arguments))}return u(e,h),f(e,[{key:"toString",value:function(){return"Null"}},{key:"typeId",get:function(){return p.Type.Null}}]),e}();d[Symbol.toStringTag]=d.prototype[Symbol.toStringTag]="Null",e.Null=d;var v=function(t){function e(t,n){var r;return c(this,e),(r=i(this,o(e).call(this))).isSigned=t,r.bitWidth=n,r}return u(e,h),f(e,[{key:"toString",value:function(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}},{key:"typeId",get:function(){return p.Type.Int}},{key:"ArrayType",get:function(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:case 64:return this.isSigned?Int32Array:Uint32Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}}]),e}();v[Symbol.toStringTag]=function(t){return t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"}(v.prototype),e.Int=v;var b=function(t){function e(){return c(this,e),i(this,o(e).call(this,!0,8))}return u(e,v),e}();e.Int8=b;var m=function(t){function e(){return c(this,e),i(this,o(e).call(this,!0,16))}return u(e,v),e}();e.Int16=m;var g=function(t){function e(){return c(this,e),i(this,o(e).call(this,!0,32))}return u(e,v),e}();e.Int32=g;var w=function(t){function e(){return c(this,e),i(this,o(e).call(this,!0,64))}return u(e,v),e}();e.Int64=w;var _=function(t){function e(){return c(this,e),i(this,o(e).call(this,!1,8))}return u(e,v),e}();e.Uint8=_;var k=function(t){function e(){return c(this,e),i(this,o(e).call(this,!1,16))}return u(e,v),e}();e.Uint16=k;var O=function(t){function e(){return c(this,e),i(this,o(e).call(this,!1,32))}return u(e,v),e}();e.Uint32=O;var S=function(t){function e(){return c(this,e),i(this,o(e).call(this,!1,64))}return u(e,v),e}();e.Uint64=S,Object.defineProperty(b.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(m.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(g.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(w.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(_.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(k.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(O.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(S.prototype,"ArrayType",{value:Uint32Array});var T=function(t){function e(t){var n;return c(this,e),(n=i(this,o(e).call(this))).precision=t,n}return u(e,h),f(e,[{key:"toString",value:function(){return"Float".concat(this.precision<<5||16)}},{key:"typeId",get:function(){return p.Type.Float}},{key:"ArrayType",get:function(){switch(this.precision){case p.Precision.HALF:return Uint16Array;case p.Precision.SINGLE:return Float32Array;case p.Precision.DOUBLE:return Float64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}}]),e}();T[Symbol.toStringTag]=function(t){return t.precision=null,t[Symbol.toStringTag]="Float"}(T.prototype),e.Float=T;var B=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.Precision.HALF))}return u(e,T),e}();e.Float16=B;var I=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.Precision.SINGLE))}return u(e,T),e}();e.Float32=I;var A=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.Precision.DOUBLE))}return u(e,T),e}();e.Float64=A,Object.defineProperty(B.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(I.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(A.prototype,"ArrayType",{value:Float64Array});var D=function(t){function e(){return c(this,e),i(this,o(e).call(this))}return u(e,h),f(e,[{key:"toString",value:function(){return"Binary"}},{key:"typeId",get:function(){return p.Type.Binary}}]),e}();D[Symbol.toStringTag]=function(t){return t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"}(D.prototype),e.Binary=D;var x=function(t){function e(){return c(this,e),i(this,o(e).call(this))}return u(e,h),f(e,[{key:"toString",value:function(){return"Utf8"}},{key:"typeId",get:function(){return p.Type.Utf8}}]),e}();x[Symbol.toStringTag]=function(t){return t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"}(x.prototype),e.Utf8=x;var j=function(t){function e(){return c(this,e),i(this,o(e).call(this))}return u(e,h),f(e,[{key:"toString",value:function(){return"Bool"}},{key:"typeId",get:function(){return p.Type.Bool}}]),e}();j[Symbol.toStringTag]=function(t){return t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"}(j.prototype),e.Bool=j;var V=function(t){function e(t,n){var r;return c(this,e),(r=i(this,o(e).call(this))).scale=t,r.precision=n,r}return u(e,h),f(e,[{key:"toString",value:function(){return"Decimal[".concat(this.precision,"e").concat(this.scale>0?"+":"").concat(this.scale,"]")}},{key:"typeId",get:function(){return p.Type.Decimal}}]),e}();V[Symbol.toStringTag]=function(t){return t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"}(V.prototype),e.Decimal=V;var F=function(t){function e(t){var n;return c(this,e),(n=i(this,o(e).call(this))).unit=t,n}return u(e,h),f(e,[{key:"toString",value:function(){return"Date".concat(32*(this.unit+1),"<").concat(p.DateUnit[this.unit],">")}},{key:"typeId",get:function(){return p.Type.Date}}]),e}();F[Symbol.toStringTag]=function(t){return t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"}(F.prototype),e.Date_=F;var M=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.DateUnit.DAY))}return u(e,F),e}();e.DateDay=M;var P=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.DateUnit.MILLISECOND))}return u(e,F),e}();e.DateMillisecond=P;var U=function(t){function e(t,n){var r;return c(this,e),(r=i(this,o(e).call(this))).unit=t,r.bitWidth=n,r}return u(e,h),f(e,[{key:"toString",value:function(){return"Time".concat(this.bitWidth,"<").concat(p.TimeUnit[this.unit],">")}},{key:"typeId",get:function(){return p.Type.Time}}]),e}();U[Symbol.toStringTag]=function(t){return t.unit=null,t.bitWidth=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Time"}(U.prototype),e.Time=U;var R=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.TimeUnit.SECOND,32))}return u(e,U),e}();e.TimeSecond=R;var E=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.TimeUnit.MILLISECOND,32))}return u(e,U),e}();e.TimeMillisecond=E;var L=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.TimeUnit.MICROSECOND,64))}return u(e,U),e}();e.TimeMicrosecond=L;var N=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.TimeUnit.NANOSECOND,64))}return u(e,U),e}();e.TimeNanosecond=N;var C=function(t){function e(t,n){var r;return c(this,e),(r=i(this,o(e).call(this))).unit=t,r.timezone=n,r}return u(e,h),f(e,[{key:"toString",value:function(){return"Timestamp<".concat(p.TimeUnit[this.unit]).concat(this.timezone?", ".concat(this.timezone):"",">")}},{key:"typeId",get:function(){return p.Type.Timestamp}}]),e}();C[Symbol.toStringTag]=function(t){return t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"}(C.prototype),e.Timestamp=C;var z=function(t){function e(t){return c(this,e),i(this,o(e).call(this,p.TimeUnit.SECOND,t))}return u(e,C),e}();e.TimestampSecond=z;var W=function(t){function e(t){return c(this,e),i(this,o(e).call(this,p.TimeUnit.MILLISECOND,t))}return u(e,C),e}();e.TimestampMillisecond=W;var Y=function(t){function e(t){return c(this,e),i(this,o(e).call(this,p.TimeUnit.MICROSECOND,t))}return u(e,C),e}();e.TimestampMicrosecond=Y;var H=function(t){function e(t){return c(this,e),i(this,o(e).call(this,p.TimeUnit.NANOSECOND,t))}return u(e,C),e}();e.TimestampNanosecond=H;var J=function(t){function e(t){var n;return c(this,e),(n=i(this,o(e).call(this))).unit=t,n}return u(e,h),f(e,[{key:"toString",value:function(){return"Interval<".concat(p.IntervalUnit[this.unit],">")}},{key:"typeId",get:function(){return p.Type.Interval}}]),e}();J[Symbol.toStringTag]=function(t){return t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"}(J.prototype),e.Interval=J;var q=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.IntervalUnit.DAY_TIME))}return u(e,J),e}();e.IntervalDayTime=q;var X=function(t){function e(){return c(this,e),i(this,o(e).call(this,p.IntervalUnit.YEAR_MONTH))}return u(e,J),e}();e.IntervalYearMonth=X;var G=function(t){function e(t){var n;return c(this,e),(n=i(this,o(e).call(this))).children=[t],n}return u(e,h),f(e,[{key:"toString",value:function(){return"List<".concat(this.valueType,">")}},{key:"typeId",get:function(){return p.Type.List}},{key:"valueType",get:function(){return this.children[0].type}},{key:"valueField",get:function(){return this.children[0]}},{key:"ArrayType",get:function(){return this.valueType.ArrayType}}]),e}();G[Symbol.toStringTag]=function(t){return t.children=null,t[Symbol.toStringTag]="List"}(G.prototype),e.List=G;var K=function(t){function e(t){var n;return c(this,e),(n=i(this,o(e).call(this))).children=t,n.children=t,n}return u(e,h),f(e,[{key:"toString",value:function(){return"Struct<{".concat(this.children.map(function(t){return"".concat(t.name,":").concat(t.type)}).join(", "),"}>")}},{key:"typeId",get:function(){return p.Type.Struct}}]),e}();K[Symbol.toStringTag]=function(t){return t.children=null,t[Symbol.toStringTag]="Struct"}(K.prototype),e.Struct=K;var Z=function(t){function e(t,n,r){var u;return c(this,e),(u=i(this,o(e).call(this))).mode=t,u.children=r,u.typeIds=n=Int32Array.from(n),u.typeIdToChildIndex=n.reduce(function(t,e,n){return(t[e]=n)&&t||t},Object.create(null)),u}return u(e,h),f(e,[{key:"toString",value:function(){return"".concat(this[Symbol.toStringTag],"<").concat(this.children.map(function(t){return"".concat(t.type)}).join(" | "),">")}},{key:"typeId",get:function(){return p.Type.Union}}]),e}();Z[Symbol.toStringTag]=function(t){return t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"}(Z.prototype),e.Union=Z;var Q=function(t){function e(t,n){return c(this,e),i(this,o(e).call(this,p.UnionMode.Dense,t,n))}return u(e,Z),e}();e.DenseUnion=Q;var $=function(t){function e(t,n){return c(this,e),i(this,o(e).call(this,p.UnionMode.Sparse,t,n))}return u(e,Z),e}();e.SparseUnion=$;var tt=function(t){function e(t){var n;return c(this,e),(n=i(this,o(e).call(this))).byteWidth=t,n}return u(e,h),f(e,[{key:"toString",value:function(){return"FixedSizeBinary[".concat(this.byteWidth,"]")}},{key:"typeId",get:function(){return p.Type.FixedSizeBinary}}]),e}();tt[Symbol.toStringTag]=function(t){return t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"}(tt.prototype),e.FixedSizeBinary=tt;var et=function(t){function e(t,n){var r;return c(this,e),(r=i(this,o(e).call(this))).listSize=t,r.children=[n],r}return u(e,h),f(e,[{key:"toString",value:function(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}},{key:"typeId",get:function(){return p.Type.FixedSizeList}},{key:"valueType",get:function(){return this.children[0].type}},{key:"valueField",get:function(){return this.children[0]}},{key:"ArrayType",get:function(){return this.valueType.ArrayType}}]),e}();et[Symbol.toStringTag]=function(t){return t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"}(et.prototype),e.FixedSizeList=et;var nt=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return c(this,e),(n=i(this,o(e).call(this))).children=[t],n.keysSorted=r,n}return u(e,h),f(e,[{key:"toString",value:function(){return"Map<{".concat(this.children[0].type.children.map(function(t){return"".concat(t.name,":").concat(t.type)}).join(", "),"}>")}},{key:"typeId",get:function(){return p.Type.Map}},{key:"keyType",get:function(){return this.children[0].type.children[0].type}},{key:"valueType",get:function(){return this.children[0].type.children[1].type}}]),e}();nt[Symbol.toStringTag]=function(t){return t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"}(nt.prototype),e.Map_=nt;var rt,it=(rt=-1,function(){return++rt}),ot=function(t){function e(t,n,r,u){var a;return c(this,e),(a=i(this,o(e).call(this))).indices=n,a.dictionary=t,a.isOrdered=u||!1,a.id=null==r?it():"number"==typeof r?r:r.low,a}return u(e,h),f(e,[{key:"toString",value:function(){return"Dictionary<".concat(this.indices,", ").concat(this.dictionary,">")}},{key:"typeId",get:function(){return p.Type.Dictionary}},{key:"children",get:function(){return this.dictionary.children}},{key:"valueType",get:function(){return this.dictionary}},{key:"ArrayType",get:function(){return this.dictionary.ArrayType}}]),e}();ot[Symbol.toStringTag]=function(t){return t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"}(ot.prototype),e.Dictionary=ot,e.strideForType=function(t){var e=t;switch(t.typeId){case p.Type.Decimal:return 4;case p.Type.Timestamp:return 2;case p.Type.Date:case p.Type.Interval:return 1+e.unit;case p.Type.Int:case p.Type.Time:return+(e.bitWidth>32)+1;case p.Type.FixedSizeList:return e.listSize;case p.Type.FixedSizeBinary:return e.byteWidth;default:return 1}}},MNys:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i,o=n("v/3b"),u=n("Il/q"),a=n("fIDe"),c=n("7DnX");e.clampIndex=function(t,e,n){var r=t.length,i=e>-1?e:r+e%r;return n?n(t,i):i},e.clampRange=function(t,e,n,r){var o=t.length,u=void 0===o?0:o,a="number"!=typeof e?0:e,c="number"!=typeof n?u:n;return a<0&&(a=(a%u+u)%u),c<0&&(c=(c%u+u)%u),c<a&&(i=a,a=c,c=i),c>u&&(c=u),r?r(t,a,c):[a,c]};var s=c.BigIntAvailable?c.BigInt(0):0,f=function(t){return t!=t};function l(t){var e,n,i=r(t);if("object"!==i||null===t)return f(t)?f:"bigint"!==i?function(e){return e===t}:function(e){return s+e===t};if(t instanceof Date){var u=t.valueOf();return function(t){return t instanceof Date&&t.valueOf()===u}}return ArrayBuffer.isView(t)?function(e){return!!e&&a.compareArrayLike(t,e)}:t instanceof Map?(e=-1,n=[],t.forEach(function(t){return n[++e]=l(t)}),y(n)):Array.isArray(t)?function(t){for(var e=[],n=-1,r=t.length;++n<r;)e[n]=l(t[n]);return y(e)}(t):t instanceof o.Vector?function(t){for(var e=[],n=-1,r=t.length;++n<r;)e[n]=l(t.get(n));return y(e)}(t):function(t){var e=Object.keys(t);if(0===e.length)return function(){return!1};for(var n=[],r=-1,i=e.length;++r<i;)n[r]=l(t[e[r]]);return y(n,e)}(t)}function y(t,e){return function(n){if(!n||"object"!==r(n))return!1;switch(n.constructor){case Array:return function(t,e){var n=t.length;if(e.length!==n)return!1;for(var r=-1;++r<n;)if(!t[r](e[r]))return!1;return!0}(t,n);case Map:case u.MapRow:case u.StructRow:return p(t,n,n.keys());case Object:case void 0:return p(t,n,e||Object.keys(n))}return n instanceof o.Vector&&function(t,e){var n=t.length;if(e.length!==n)return!1;for(var r=-1;++r<n;)if(!t[r](e.get(r)))return!1;return!0}(t,n)}}function p(t,e,n){for(var r=n[Symbol.iterator](),i=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),o=e instanceof Map?e.values():Object.values(e)[Symbol.iterator](),u=0,a=t.length,c=o.next(),s=r.next(),f=i.next();u<a&&!s.done&&!f.done&&!c.done&&(s.value===f.value&&t[u](c.value));++u,s=r.next(),f=i.next(),c=o.next());return!!(u===a&&s.done&&f.done&&c.done)||(r.return&&r.return(),i.return&&i.return(),o.return&&o.return(),!1)}e.createElementComparator=l},N8kB:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0});var i=n("1vD8"),o=n("LF0+"),u=n("O0XO"),a=n("xW78");function c(t){return new u.RecordBatch(t.count,function t(e){return(e||[]).reduce(function(e,n){return[].concat(r(e),[new u.FieldNode(n.count,(i=n.VALIDITY,(i||[]).reduce(function(t,e){return t+ +(0===e)},0)))],r(t(n.children)));var i},[])}(t.columns),function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(var r=-1,i=(e||[]).length;++r<i;){var o=e[r];o.VALIDITY&&n.push(new u.BufferRegion(n.length,o.VALIDITY.length)),o.TYPE&&n.push(new u.BufferRegion(n.length,o.TYPE.length)),o.OFFSET&&n.push(new u.BufferRegion(n.length,o.OFFSET.length)),o.DATA&&n.push(new u.BufferRegion(n.length,o.DATA.length)),n=t(o.children,n)}return n}(t.columns))}function s(t,e){return(t.children||[]).filter(Boolean).map(function(t){return i.Field.fromJSON(t,e)})}function f(t){return new Map(Object.entries(t||{}))}function l(t){return new o.Int(t.isSigned,t.bitWidth)}function y(t,e){var n=t.type.name;switch(n){case"NONE":case"null":return new o.Null;case"binary":return new o.Binary;case"utf8":return new o.Utf8;case"bool":return new o.Bool;case"list":return new o.List((e||[])[0]);case"struct":case"struct_":return new o.Struct(e||[])}switch(n){case"int":var r=t.type;return new o.Int(r.isSigned,r.bitWidth);case"floatingpoint":var i=t.type;return new o.Float(a.Precision[i.precision]);case"decimal":var u=t.type;return new o.Decimal(u.scale,u.precision);case"date":var c=t.type;return new o.Date_(a.DateUnit[c.unit]);case"time":var s=t.type;return new o.Time(a.TimeUnit[s.unit],s.bitWidth);case"timestamp":var f=t.type;return new o.Timestamp(a.TimeUnit[f.unit],f.timezone);case"interval":var l=t.type;return new o.Interval(a.IntervalUnit[l.unit]);case"union":var y=t.type;return new o.Union(a.UnionMode[y.mode],y.typeIds||[],e||[]);case"fixedsizebinary":var p=t.type;return new o.FixedSizeBinary(p.byteWidth);case"fixedsizelist":var h=t.type;return new o.FixedSizeList(h.listSize,(e||[])[0]);case"map":var d=t.type;return new o.Map_((e||[])[0],d.keysSorted)}throw new Error('Unrecognized type: "'.concat(n,'"'))}e.schemaFromJSON=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return new i.Schema(function(t,e){return(t.fields||[]).filter(Boolean).map(function(t){return i.Field.fromJSON(t,e)})}(t,e),f(t.customMetadata),e)},e.recordBatchFromJSON=c,e.dictionaryBatchFromJSON=function(t){return new u.DictionaryBatch(c(t.data),t.id,t.isDelta)},e.fieldFromJSON=function(t,e){var n,r,u,a,c,p;return e&&(a=t.dictionary)?e.has(n=a.id)?(r=(r=a.indexType)?l(r):new o.Int32,p=new o.Dictionary(e.get(n),r,n,a.isOrdered),u=new i.Field(t.name,p,t.nullable,f(t.customMetadata))):(r=(r=a.indexType)?l(r):new o.Int32,e.set(n,c=y(t,s(t,e))),p=new o.Dictionary(c,r,n,a.isOrdered),u=new i.Field(t.name,p,t.nullable,f(t.customMetadata))):(c=y(t,s(t,e)),u=new i.Field(t.name,c,t.nullable,f(t.customMetadata))),u||null}},O0XO:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var c=n("prJ9"),s=n("4jY8"),f=n("PUEe"),l=n("1vD8"),y=n("fIDe"),p=n("xW78"),h=n("7cU9"),d=n("N8kB"),v=c.flatbuffers.Long,b=c.flatbuffers.Builder,m=c.flatbuffers.ByteBuffer,g=s.org.apache.arrow.flatbuf.Type,w=s.org.apache.arrow.flatbuf.Field,_=s.org.apache.arrow.flatbuf.Schema,k=s.org.apache.arrow.flatbuf.Buffer,O=f.org.apache.arrow.flatbuf.Message,S=s.org.apache.arrow.flatbuf.KeyValue,T=f.org.apache.arrow.flatbuf.FieldNode,B=s.org.apache.arrow.flatbuf.Endianness,I=f.org.apache.arrow.flatbuf.RecordBatch,A=f.org.apache.arrow.flatbuf.DictionaryBatch,D=n("LF0+"),x=function(){function t(e,n,r,i){o(this,t),this._version=n,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=function(){return i}),this._bodyLength="number"==typeof e?e:e.low}return a(t,[{key:"header",value:function(){return this._createHeader()}},{key:"isSchema",value:function(){return this.headerType===p.MessageHeader.Schema}},{key:"isRecordBatch",value:function(){return this.headerType===p.MessageHeader.RecordBatch}},{key:"isDictionaryBatch",value:function(){return this.headerType===p.MessageHeader.DictionaryBatch}},{key:"type",get:function(){return this.headerType}},{key:"version",get:function(){return this._version}},{key:"headerType",get:function(){return this._headerType}},{key:"bodyLength",get:function(){return this._bodyLength}}],[{key:"fromJSON",value:function(e,n){var r=new t(0,p.MetadataVersion.V4,n);return r._createHeader=function(t,e){return function(){switch(e){case p.MessageHeader.Schema:return l.Schema.fromJSON(t);case p.MessageHeader.RecordBatch:return j.fromJSON(t);case p.MessageHeader.DictionaryBatch:return V.fromJSON(t)}throw new Error("Unrecognized Message type: { name: ".concat(p.MessageHeader[e],", type: ").concat(e," }"))}}(e,n),r}},{key:"decode",value:function(e){e=new m(y.toUint8Array(e));var n=O.getRootAsMessage(e),r=n.bodyLength(),i=n.version(),o=n.headerType(),u=new t(r,i,o);return u._createHeader=function(t,e){return function(){switch(e){case p.MessageHeader.Schema:return l.Schema.decode(t.header(new _));case p.MessageHeader.RecordBatch:return j.decode(t.header(new I),t.version());case p.MessageHeader.DictionaryBatch:return V.decode(t.header(new A),t.version())}throw new Error("Unrecognized Message type: { name: ".concat(p.MessageHeader[e],", type: ").concat(e," }"))}}(n,o),u}},{key:"encode",value:function(t){var e=new b,n=-1;return t.isSchema()?n=l.Schema.encode(e,t.header()):t.isRecordBatch()?n=j.encode(e,t.header()):t.isDictionaryBatch()&&(n=V.encode(e,t.header())),O.startMessage(e),O.addVersion(e,p.MetadataVersion.V4),O.addHeader(e,n),O.addHeaderType(e,t.headerType),O.addBodyLength(e,new v(t.bodyLength,0)),O.finishMessageBuffer(e,O.endMessage(e)),e.asUint8Array()}},{key:"from",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e instanceof l.Schema)return new t(0,p.MetadataVersion.V4,p.MessageHeader.Schema,e);if(e instanceof j)return new t(n,p.MetadataVersion.V4,p.MessageHeader.RecordBatch,e);if(e instanceof V)return new t(n,p.MetadataVersion.V4,p.MessageHeader.DictionaryBatch,e);throw new Error("Unrecognized Message header: ".concat(e))}}]),t}();e.Message=x;var j=function(){function t(e,n,r){o(this,t),this._nodes=n,this._buffers=r,this._length="number"==typeof e?e:e.low}return a(t,[{key:"nodes",get:function(){return this._nodes}},{key:"length",get:function(){return this._length}},{key:"buffers",get:function(){return this._buffers}}]),t}();e.RecordBatch=j;var V=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o(this,t),this._data=e,this._isDelta=r,this._id="number"==typeof n?n:n.low}return a(t,[{key:"id",get:function(){return this._id}},{key:"data",get:function(){return this._data}},{key:"isDelta",get:function(){return this._isDelta}},{key:"length",get:function(){return this.data.length}},{key:"nodes",get:function(){return this.data.nodes}},{key:"buffers",get:function(){return this.data.buffers}}]),t}();e.DictionaryBatch=V;var F=function t(e,n){o(this,t),this.offset="number"==typeof e?e:e.low,this.length="number"==typeof n?n:n.low};e.BufferRegion=F;var M=function t(e,n){o(this,t),this.length="number"==typeof e?e:e.low,this.nullCount="number"==typeof n?n:n.low};function P(t,e){for(var n,r=[],i=-1,o=-1,u=t.childrenLength();++i<u;)(n=t.children(i))&&(r[++o]=l.Field.decode(n,e));return r}function U(t){var e=new Map;if(t)for(var n,r,i=-1,o=0|t.customMetadataLength();++i<o;)(n=t.customMetadata(i))&&null!=(r=n.key())&&e.set(r,n.value());return e}function R(t){return new D.Int(t.isSigned(),t.bitWidth())}function E(t,e){var n=t.typeType();switch(n){case g.NONE:case g.Null:return new D.Null;case g.Binary:return new D.Binary;case g.Utf8:return new D.Utf8;case g.Bool:return new D.Bool;case g.List:return new D.List((e||[])[0]);case g.Struct_:return new D.Struct(e||[])}switch(n){case g.Int:var r=t.type(new s.org.apache.arrow.flatbuf.Int);return new D.Int(r.isSigned(),r.bitWidth());case g.FloatingPoint:var i=t.type(new s.org.apache.arrow.flatbuf.FloatingPoint);return new D.Float(i.precision());case g.Decimal:var o=t.type(new s.org.apache.arrow.flatbuf.Decimal);return new D.Decimal(o.scale(),o.precision());case g.Date:var u=t.type(new s.org.apache.arrow.flatbuf.Date);return new D.Date_(u.unit());case g.Time:var a=t.type(new s.org.apache.arrow.flatbuf.Time);return new D.Time(a.unit(),a.bitWidth());case g.Timestamp:var c=t.type(new s.org.apache.arrow.flatbuf.Timestamp);return new D.Timestamp(c.unit(),c.timezone());case g.Interval:var f=t.type(new s.org.apache.arrow.flatbuf.Interval);return new D.Interval(f.unit());case g.Union:var l=t.type(new s.org.apache.arrow.flatbuf.Union);return new D.Union(l.mode(),l.typeIdsArray()||[],e||[]);case g.FixedSizeBinary:var y=t.type(new s.org.apache.arrow.flatbuf.FixedSizeBinary);return new D.FixedSizeBinary(y.byteWidth());case g.FixedSizeList:var p=t.type(new s.org.apache.arrow.flatbuf.FixedSizeList);return new D.FixedSizeList(p.listSize(),(e||[])[0]);case g.Map:var h=t.type(new s.org.apache.arrow.flatbuf.Map);return new D.Map_((e||[])[0],h.keysSorted())}throw new Error('Unrecognized type: "'.concat(g[n],'" (').concat(n,")"))}e.FieldNode=M,l.Field.encode=function(t,e){var n=-1,o=-1,u=-1,a=e.type,c=e.typeId;D.DataType.isDictionary(a)?(c=a.dictionary.typeId,u=h.instance.visit(a,t),o=h.instance.visit(a.dictionary,t)):o=h.instance.visit(a,t);var s=(a.children||[]).map(function(e){return l.Field.encode(t,e)}),f=w.createChildrenVector(t,s),y=e.metadata&&e.metadata.size>0?w.createCustomMetadataVector(t,i(e.metadata).map(function(e){var n=r(e,2),i=n[0],o=n[1],u=t.createString("".concat(i)),a=t.createString("".concat(o));return S.startKeyValue(t),S.addKey(t,u),S.addValue(t,a),S.endKeyValue(t)})):-1;e.name&&(n=t.createString(e.name));w.startField(t),w.addType(t,o),w.addTypeType(t,c),w.addChildren(t,f),w.addNullable(t,!!e.nullable),-1!==n&&w.addName(t,n);-1!==u&&w.addDictionary(t,u);-1!==y&&w.addCustomMetadata(t,y);return w.endField(t)},l.Field.decode=function(t,e){var n,r,i,o,u,a;e&&(a=t.dictionary())?e.has(n=a.id().low)?(o=(o=a.indexType())?R(o):new D.Int32,u=new D.Dictionary(e.get(n),o,n,a.isOrdered()),r=new l.Field(t.name(),u,t.nullable(),U(t))):(o=(o=a.indexType())?R(o):new D.Int32,e.set(n,i=E(t,P(t,e))),u=new D.Dictionary(i,o,n,a.isOrdered()),r=new l.Field(t.name(),u,t.nullable(),U(t))):(i=E(t,P(t,e)),r=new l.Field(t.name(),i,t.nullable(),U(t)));return r||null},l.Field.fromJSON=d.fieldFromJSON,l.Schema.encode=function(t,e){var n=e.fields.map(function(e){return l.Field.encode(t,e)});_.startFieldsVector(t,n.length);var o=_.createFieldsVector(t,n),u=e.metadata&&e.metadata.size>0?_.createCustomMetadataVector(t,i(e.metadata).map(function(e){var n=r(e,2),i=n[0],o=n[1],u=t.createString("".concat(i)),a=t.createString("".concat(o));return S.startKeyValue(t),S.addKey(t,u),S.addValue(t,a),S.endKeyValue(t)})):-1;_.startSchema(t),_.addFields(t,o),_.addEndianness(t,N?B.Little:B.Big),-1!==u&&_.addCustomMetadata(t,u);return _.endSchema(t)},l.Schema.decode=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=function(t,e){for(var n,r=[],i=-1,o=-1,u=t.fieldsLength();++i<u;)(n=t.fields(i))&&(r[++o]=l.Field.decode(n,e));return r}(t,e);return new l.Schema(n,U(t),e)},l.Schema.fromJSON=d.schemaFromJSON,j.encode=function(t,e){var n=e.nodes||[],r=e.buffers||[];I.startNodesVector(t,n.length),n.slice().reverse().forEach(function(e){return M.encode(t,e)});var i=t.endVector();I.startBuffersVector(t,r.length),r.slice().reverse().forEach(function(e){return F.encode(t,e)});var o=t.endVector();return I.startRecordBatch(t),I.addLength(t,new v(e.length,0)),I.addNodes(t,i),I.addBuffers(t,o),I.endRecordBatch(t)},j.decode=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.MetadataVersion.V4;return new j(t.length(),function(t){for(var e,n=[],r=-1,i=-1,o=t.nodesLength();++r<o;)(e=t.nodes(r))&&(n[++i]=M.decode(e));return n}(t),function(t,e){for(var n,r=[],i=-1,o=-1,u=t.buffersLength();++i<u;)(n=t.buffers(i))&&(e<p.MetadataVersion.V4&&(n.bb_pos+=8*(i+1)),r[++o]=F.decode(n));return r}(t,e))},j.fromJSON=d.recordBatchFromJSON,V.encode=function(t,e){var n=j.encode(t,e.data);return A.startDictionaryBatch(t),A.addId(t,new v(e.id,0)),A.addIsDelta(t,e.isDelta),A.addData(t,n),A.endDictionaryBatch(t)},V.decode=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.MetadataVersion.V4;return new V(j.decode(t.data(),e),t.id(),t.isDelta())},V.fromJSON=d.dictionaryBatchFromJSON,M.encode=function(t,e){return T.createFieldNode(t,new v(e.length,0),new v(e.nullCount,0))},M.decode=function(t){return new M(t.length(),t.nullCount())},F.encode=function(t,e){return k.createBuffer(t,new v(e.offset,0),new v(e.length,0))},F.decode=function(t){return new F(t.offset(),t.length())};var L,N=(L=new ArrayBuffer(2),new DataView(L).setInt16(0,256,!0),256===new Int16Array(L)[0])},OAD5:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("qF1w"),f=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,s.BaseVector),e}();e.TimeVector=f;var l=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimeSecondVector=l;var y=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimeMillisecondVector=y;var p=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimeMicrosecondVector=p;var h=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimeNanosecondVector=h},P6gY:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new Float64Array(1),i=new Uint32Array(r.buffer);e.uint16ToFloat64=function(t){var e=(31744&t)>>10,n=(1023&t)/1024,r=Math.pow(-1,(32768&t)>>15);switch(e){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,e-15)*(1+n)},e.float64ToUint16=function(t){if(t!=t)return 32256;r[0]=t;var e=(2147483648&i[1])>>16&65535,n=2146435072&i[1],o=0;return n>=1089470464?i[0]>0?n=31744:(n=(2080374784&n)>>16,o=(1048575&i[1])>>10):n<=1056964608?(o=1048576+((o=1048576+(1048575&i[1]))<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,o=512+(1048575&i[1])>>10),e|n|65535&o}},PNVg:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("MNys"),f=n("LF0+"),l=n("uCoJ"),y=n("v/3b"),p=function(t){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){for(var e=new Uint32Array((t||[]).length+1),n=e[0]=0,r=e.length,i=0;++i<r;)e[i]=n+=t[i-1].length;return e}(r);return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=u(this,a(e).call(this)))._nullCount=-1,n._type=t,n._chunks=r,n._chunkOffsets=i,n._length=i[i.length-1],n._numChildren=(n._type.children||[]).length,n}var n,r,p;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,y.AbstractVector),n=e,r=[{key:Symbol.iterator,value:regeneratorRuntime.mark(function t(){var e,n,r,i,o,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,n=!1,r=void 0,t.prev=3,i=this._chunks[Symbol.iterator]();case 5:if(e=(o=i.next()).done){t.next=11;break}return u=o.value,t.delegateYield(u,"t0",8);case 8:e=!0,t.next=5;break;case 11:t.next=17;break;case 13:t.prev=13,t.t1=t.catch(3),n=!0,r=t.t1;case 17:t.prev=17,t.prev=18,e||null==i.return||i.return();case 20:if(t.prev=20,!n){t.next=23;break}throw r;case 23:return t.finish(20);case 24:return t.finish(17);case 25:case"end":return t.stop()}},t,this,[[3,13,17,25],[18,,20,24]])})},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._chunks;return new e(this._type,t)}},{key:"concat",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.clone(e.flatten.apply(e,[this].concat(n)))}},{key:"slice",value:function(t,e){return s.clampRange(this,t,e,this._sliceInternal)}},{key:"getChildAt",value:function(t){if(t<0||t>=this._numChildren)return null;var n,r,i,o=this._children||(this._children=[]);return(n=o[t])?n:(r=(this._type.children||[])[t])&&(i=this._chunks.map(function(e){return e.getChildAt(t)}).filter(function(t){return null!=t})).length>0?o[t]=new e(r.type,i):null}},{key:"search",value:function(t,e){var n=t,r=this._chunkOffsets,i=r.length-1;if(n<0)return null;if(n>=r[i])return null;if(i<=1)return e?e(this,0,n):[0,n];var o=0,u=0,a=0;do{if(o+1===i)return e?e(this,o,n-u):[o,n-u];n>=r[a=o+(i-o)/2|0]?o=a:i=a}while(n<r[i]&&n>=(u=r[o]));return null}},{key:"isValid",value:function(t){return!!this.search(t,this.isValidInternal)}},{key:"get",value:function(t){return this.search(t,this.getInternal)}},{key:"set",value:function(t,e){this.search(t,function(t,n,r){return t.chunks[n].set(r,e)})}},{key:"indexOf",value:function(t,e){var n=this;return e&&"number"==typeof e?this.search(e,function(e,r,i){return n.indexOfInternal(e,r,i,t)}):this.indexOfInternal(this,0,Math.max(0,e||0),t)}},{key:"toArray",value:function(){var t=this.chunks,e=t.length,n=this._type.ArrayType;if(e<=0)return new n(0);if(e<=1)return t[0].toArray();for(var r=0,i=new Array(e),o=-1;++o<e;)r+=(i[o]=t[o].toArray()).length;n!==i[0].constructor&&(n=i[0].constructor);for(var u=new n(r),a=n===Array?d:h,c=-1,s=0;++c<e;)s=a(i[c],u,s);return u}},{key:"getInternal",value:function(t,e,n){return t._chunks[e].get(n)}},{key:"isValidInternal",value:function(t,e,n){return t._chunks[e].isValid(n)}},{key:"indexOfInternal",value:function(t,e,n,r){for(var i=t._chunks,o=e-1,u=i.length,a=n,c=0,s=-1;++o<u;){if(~(s=i[o].indexOf(r,a)))return c+s;a=0,c+=i[o].length}return-1}},{key:"_sliceInternal",value:function(t,e,n){for(var r=[],i=t.chunks,o=t._chunkOffsets,u=-1,a=i.length;++u<a;){var c=i[u],s=c.length,f=o[u];if(f>=n)break;if(!(e>=f+s))if(f>=e&&f+s<=n)r.push(c);else{var l=Math.max(0,e-f),y=Math.min(n-f,s);r.push(c.slice(l,y))}}return t.clone(r)}},{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._length}},{key:"chunks",get:function(){return this._chunks}},{key:"typeId",get:function(){return this._type.typeId}},{key:"VectorName",get:function(){return"Chunked<".concat(this._type,">")}},{key:"data",get:function(){return this._chunks[0]?this._chunks[0].data:null}},{key:"ArrayType",get:function(){return this._type.ArrayType}},{key:"numChildren",get:function(){return this._numChildren}},{key:"stride",get:function(){return this._chunks[0]?this._chunks[0].stride:1}},{key:"byteLength",get:function(){return this._chunks.reduce(function(t,e){return t+e.byteLength},0)}},{key:"nullCount",get:function(){var t=this._nullCount;return t<0&&(this._nullCount=t=this._chunks.reduce(function(t,e){return t+e.nullCount},0)),t}},{key:"indices",get:function(){if(f.DataType.isDictionary(this._type)){if(!this._indices){var t=this._chunks;this._indices=1===t.length?t[0].indices:e.concat.apply(e,i(t.map(function(t){return t.indices})))}return this._indices}return null}},{key:"dictionary",get:function(){return f.DataType.isDictionary(this._type)?this._chunks[this._chunks.length-1].data.dictionary:null}}],p=[{key:"flatten",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return l.selectChunkArgs(y.Vector,e)}},{key:"concat",value:function(){var t=e.flatten.apply(e,arguments);return new e(t[0].type,t)}}],r&&o(n.prototype,r),p&&o(n,p),e}();e.Chunked=p;var h=function(t,e,n){return e.set(t,n),n+t.length},d=function(t,e,n){for(var r=n,i=-1,o=t.length;++i<o;)e[r++]=t[i];return r}},PUEe:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var u=n("4jY8");!function(t){!function(t){!function(t){!function(t){t.Schema=u.org.apache.arrow.flatbuf.Schema}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){!function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(t.MessageHeader||(t.MessageHeader={}))}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"length",value:function(){return this.bb.readInt64(this.bb_pos)}},{key:"nullCount",value:function(){return this.bb.readInt64(this.bb_pos+8)}}],[{key:"createFieldNode",value:function(t,e,n){return t.prep(8,16),t.writeInt64(n),t.writeInt64(e),t.offset()}}]),t}();t.FieldNode=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"length",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:"nodes",value:function(e,n){var r=this.bb.__offset(this.bb_pos,6);return r?(n||new t.apache.arrow.flatbuf.FieldNode).__init(this.bb.__vector(this.bb_pos+r)+16*e,this.bb):null}},{key:"nodesLength",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"buffers",value:function(t,e){var n=this.bb.__offset(this.bb_pos,8);return n?(e||new u.org.apache.arrow.flatbuf.Buffer).__init(this.bb.__vector(this.bb_pos+n)+16*t,this.bb):null}},{key:"buffersLength",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsRecordBatch",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startRecordBatch",value:function(t){t.startObject(3)}},{key:"addLength",value:function(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}},{key:"addNodes",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"startNodesVector",value:function(t,e){t.startVector(16,e,8)}},{key:"addBuffers",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:"startBuffersVector",value:function(t,e){t.startVector(16,e,8)}},{key:"endRecordBatch",value:function(t){return t.endObject()}},{key:"createRecordBatch",value:function(t,n,r,i){return e.startRecordBatch(t),e.addLength(t,n),e.addNodes(t,r),e.addBuffers(t,i),e.endRecordBatch(t)}}]),e}();e.RecordBatch=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"id",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:"data",value:function(e){var n=this.bb.__offset(this.bb_pos,6);return n?(e||new t.apache.arrow.flatbuf.RecordBatch).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}},{key:"isDelta",value:function(){var t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}}],[{key:"getRootAsDictionaryBatch",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startDictionaryBatch",value:function(t){t.startObject(3)}},{key:"addId",value:function(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}},{key:"addData",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"addIsDelta",value:function(t,e){t.addFieldInt8(2,+e,0)}},{key:"endDictionaryBatch",value:function(t){return t.endObject()}},{key:"createDictionaryBatch",value:function(t,n,r,i){return e.startDictionaryBatch(t),e.addId(t,n),e.addData(t,r),e.addIsDelta(t,i),e.endDictionaryBatch(t)}}]),e}();e.DictionaryBatch=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"version",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):u.org.apache.arrow.flatbuf.MetadataVersion.V1}},{key:"headerType",value:function(){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):t.apache.arrow.flatbuf.MessageHeader.NONE}},{key:"header",value:function(t){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}},{key:"bodyLength",value:function(){var t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}},{key:"customMetadata",value:function(t,e){var n=this.bb.__offset(this.bb_pos,12);return n?(e||new u.org.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}},{key:"customMetadataLength",value:function(){var t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsMessage",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startMessage",value:function(t){t.startObject(5)}},{key:"addVersion",value:function(t,e){t.addFieldInt16(0,e,u.org.apache.arrow.flatbuf.MetadataVersion.V1)}},{key:"addHeaderType",value:function(e,n){e.addFieldInt8(1,n,t.apache.arrow.flatbuf.MessageHeader.NONE)}},{key:"addHeader",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:"addBodyLength",value:function(t,e){t.addFieldInt64(3,e,t.createLong(0,0))}},{key:"addCustomMetadata",value:function(t,e){t.addFieldOffset(4,e,0)}},{key:"createCustomMetadataVector",value:function(t,e){t.startVector(4,e.length,4);for(var n=e.length-1;n>=0;n--)t.addOffset(e[n]);return t.endVector()}},{key:"startCustomMetadataVector",value:function(t,e){t.startVector(4,e,4)}},{key:"endMessage",value:function(t){return t.endObject()}},{key:"finishMessageBuffer",value:function(t,e){t.finish(e)}},{key:"createMessage",value:function(t,n,r,i,o,u){return e.startMessage(t),e.addVersion(t,n),e.addHeaderType(t,r),e.addHeader(t,i),e.addBodyLength(t,o),e.addCustomMetadata(t,u),e.endMessage(t)}}]),e}();e.Message=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={}))},Pp57:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?f(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var p=n("1vD8"),h=n("v/3b"),d=n("PNVg"),v=function(t){function e(t){var n,r,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0;return o(this,e),u=(n=d.Chunked).flatten.apply(n,i(u)),(r=c(this,s(e).call(this,t.type,u,a)))._field=t,1!==u.length||f(r)instanceof b?r:c(r,new b(t,u[0],r._chunkOffsets))}return l(e,d.Chunked),a(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._chunks;return new e(this._field,t)}},{key:"getChildAt",value:function(t){if(t<0||t>=this.numChildren)return null;var n,r,i,o=this._children||(this._children=[]);return(n=o[t])?n:(r=(this.type.children||[])[t])&&(i=this._chunks.map(function(e){return e.getChildAt(t)}).filter(function(t){return null!=t})).length>0?o[t]=new e(r,i):null}},{key:"field",get:function(){return this._field}},{key:"name",get:function(){return this._field.name}},{key:"nullable",get:function(){return this._field.nullable}},{key:"metadata",get:function(){return this._field.metadata}}],[{key:"new",value:function(t,n){for(var r,o=arguments.length,u=new Array(o>2?o-2:0),a=2;a<o;a++)u[a-2]=arguments[a];var c=d.Chunked.flatten(Array.isArray(n)?[].concat(i(n),u):n instanceof h.Vector?[n].concat(u):[(r=h.Vector).new.apply(r,[n].concat(u))]);if("string"==typeof t){var s=c[0].data.type;t=new p.Field(t,s,!0)}else!t.nullable&&c.some(function(t){return t.nullCount>0})&&(t=t.clone({nullable:!0}));return new e(t,c)}}]),e}();e.Column=v;var b=function(t){function e(t,n,r){var i;return o(this,e),(i=c(this,s(e).call(this,t,[n],r)))._chunk=n,i}return l(e,v),a(e,[{key:"search",value:function(t,e){return e?e(this,0,t):[0,t]}},{key:"isValid",value:function(t){return this._chunk.isValid(t)}},{key:"get",value:function(t){return this._chunk.get(t)}},{key:"set",value:function(t,e){this._chunk.set(t,e)}},{key:"indexOf",value:function(t,e){return this._chunk.indexOf(t,e)}}]),e}()},TUG7:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var f=n("fIDe"),l=n("HHvO"),y=n("2kVn"),p=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=u(this,c(e).call(this,t)))._values=new l.BufferBuilder(new Uint8Array(0)),n}var n,r,p;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,y.VariableWidthBuilder),n=e,(r=[{key:"setValue",value:function(t,n){return a(c(e.prototype),"setValue",this).call(this,t,f.toUint8Array(n))}},{key:"_flushPending",value:function(t,e){var n,r=this._offsets,o=this._values.reserve(e).buffer,u=0,a=0,c=0,s=!0,f=!1,l=void 0;try{for(var y,p=t[Symbol.iterator]();!(s=(y=p.next()).done);s=!0){var h=i(y.value,2);u=h[0],void 0===(n=h[1])?r.set(u,0):(a=n.length,o.set(n,c),r.set(u,a),c+=a)}}catch(t){f=!0,l=t}finally{try{s||null==p.return||p.return()}finally{if(f)throw l}}}},{key:"byteLength",get:function(){var t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}}])&&o(n.prototype,r),p&&o(n,p),e}();e.BinaryBuilder=p},Thl1:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var u=t.apply(e,n);function a(t){i(u,r,o,a,c,"next",t)}function c(t){i(u,r,o,a,c,"throw",t)}a(void 0)})}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t,e,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}Object.defineProperty(e,"__esModule",{value:!0});var h=n("i1db"),d=n("YxFk"),v=n("1fhD"),b=n("fIDe"),m=n("7DnX"),g=function(t){function e(){return u(this,e),s(this,l(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(e,v.AsyncQueue),c(e,[{key:"write",value:function(t){if((t=b.toUint8Array(t)).byteLength>0)return f(l(e.prototype),"write",this).call(this,t)}},{key:"toString",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?d.decodeUtf8(this.toUint8Array(!0)):this.toUint8Array(!1).then(d.decodeUtf8)}},{key:"toUint8Array",value:function(){var t=this;return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?b.joinUint8Arrays(this._values)[0]:o(regeneratorRuntime.mark(function e(){var n,r,i,o,u,a,c,s,f;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=0,i=!0,o=!1,e.prev=3,a=p(t);case 5:return e.next=7,a.next();case 7:return c=e.sent,i=c.done,e.next=11,c.value;case 11:if(s=e.sent,i){e.next=19;break}f=s,n.push(f),r+=f.byteLength;case 16:i=!0,e.next=5;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(3),o=!0,u=e.t0;case 25:if(e.prev=25,e.prev=26,i||null==a.return){e.next=30;break}return e.next=30,a.return();case 30:if(e.prev=30,!o){e.next=33;break}throw u;case 33:return e.finish(30);case 34:return e.finish(25);case 35:return e.abrupt("return",b.joinUint8Arrays(n,r)[0]);case 36:case"end":return e.stop()}},e,null,[[3,21,25,35],[26,,30,34]])}))()}}]),e}();e.AsyncByteQueue=g;var w=function(){function t(e){u(this,t),e&&(this.source=new k(h.default.fromIterable(e)))}return c(t,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(t){return this.source.next(t)}},{key:"throw",value:function(t){return this.source.throw(t)}},{key:"return",value:function(t){return this.source.return(t)}},{key:"peek",value:function(t){return this.source.peek(t)}},{key:"read",value:function(t){return this.source.read(t)}}]),t}();e.ByteStream=w;var _=function(){function t(e){u(this,t),e instanceof t?this.source=e.source:e instanceof g?this.source=new O(h.default.fromAsyncIterable(e)):m.isReadableNodeStream(e)?this.source=new O(h.default.fromNodeStream(e)):m.isReadableDOMStream(e)?this.source=new O(h.default.fromDOMStream(e)):m.isFetchResponse(e)?this.source=new O(h.default.fromDOMStream(e.body)):m.isIterable(e)?this.source=new O(h.default.fromIterable(e)):m.isPromise(e)?this.source=new O(h.default.fromAsyncIterable(e)):m.isAsyncIterable(e)&&(this.source=new O(h.default.fromAsyncIterable(e)))}return c(t,[{key:Symbol.asyncIterator,value:function(){return this}},{key:"next",value:function(t){return this.source.next(t)}},{key:"throw",value:function(t){return this.source.throw(t)}},{key:"return",value:function(t){return this.source.return(t)}},{key:"cancel",value:function(t){return this.source.cancel(t)}},{key:"peek",value:function(t){return this.source.peek(t)}},{key:"read",value:function(t){return this.source.read(t)}},{key:"closed",get:function(){return this.source.closed}}]),t}();e.AsyncByteStream=_;var k=function(){function t(e){u(this,t),this.source=e}return c(t,[{key:"cancel",value:function(t){this.return(t)}},{key:"peek",value:function(t){return this.next(t,"peek").value}},{key:"read",value:function(t){return this.next(t,"read").value}},{key:"next",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"read";return this.source.next({cmd:e,size:t})}},{key:"throw",value:function(t){return Object.create(this.source.throw&&this.source.throw(t)||v.ITERATOR_DONE)}},{key:"return",value:function(t){return Object.create(this.source.return&&this.source.return(t)||v.ITERATOR_DONE)}}]),t}(),O=function(){function t(e){var n=this;u(this,t),this.source=e,this._closedPromise=new Promise(function(t){return n._closedPromiseResolve=t})}return c(t,[{key:"cancel",value:function(){var t=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.return(e);case 2:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"read",value:function(){var t=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next(e,"read");case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"peek",value:function(){var t=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next(e,"peek");case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"next",value:function(){var t=o(regeneratorRuntime.mark(function t(e){var n,r=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:"read",t.next=3,this.source.next({cmd:n,size:e});case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"throw",value:function(){var t=o(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t1=this.source.throw,!t.t1){t.next=5;break}return t.next=4,this.source.throw(e);case 4:t.t1=t.sent;case 5:if(t.t0=t.t1,t.t0){t.next=8;break}t.t0=v.ITERATOR_DONE;case 8:return n=t.t0,this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,t.abrupt("return",Object.create(n));case 12:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=o(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t1=this.source.return,!t.t1){t.next=5;break}return t.next=4,this.source.return(e);case 4:t.t1=t.sent;case 5:if(t.t0=t.t1,t.t0){t.next=8;break}t.t0=v.ITERATOR_DONE;case 8:return n=t.t0,this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,t.abrupt("return",Object.create(n));case 12:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"closed",get:function(){return this._closedPromise}}]),t}()},Vpg6:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("qF1w"),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,a.BaseVector),e}();e.FixedSizeListVector=c},W3mv:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("2kVn"),f=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,s.FixedWidthBuilder),e}();e.TimestampBuilder=f;var l=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimestampSecondBuilder=l;var y=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimestampMillisecondBuilder=y;var p=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimestampMicrosecondBuilder=p;var h=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimestampNanosecondBuilder=h},W5in:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("2kVn"),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,a.FixedWidthBuilder),e}();e.FixedSizeBinaryBuilder=c},WC3y:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var u=t.apply(e,n);function a(t){o(u,r,i,a,c,"next",t)}function c(t){o(u,r,i,a,c,"throw",t)}a(void 0)})}}Object.defineProperty(e,"__esModule",{value:!0});var a=n("Thl1");e.recordBatchWriterThroughDOMStream=function(t,e){var n=new this(t),o=new a.AsyncByteStream(n),c=new ReadableStream({type:"bytes",cancel:(l=u(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.cancel();case 2:case"end":return t.stop()}},t)})),function(){return l.apply(this,arguments)}),pull:(f=u(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,y(e);case 2:case"end":return t.stop()}},t)})),function(t){return f.apply(this,arguments)}),start:(s=u(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,y(e);case 2:case"end":return t.stop()}},t)})),function(t){return s.apply(this,arguments)})},function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(n,!0).forEach(function(e){i(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({highWaterMark:Math.pow(2,14)},e));var s;var f;var l;return{writable:new WritableStream(n,t),readable:c};function y(t){return p.apply(this,arguments)}function p(){return(p=u(regeneratorRuntime.mark(function t(e){var n,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=null,r=e.desiredSize;case 2:return t.next=4,o.read(r||null);case 4:if(!(n=t.sent)){t.next=10;break}if(e.enqueue(n),!(null!=r&&(r-=n.byteLength)<=0)){t.next=8;break}return t.abrupt("return");case 8:t.next=2;break;case 10:e.close();case 11:case"end":return t.stop()}},t)}))).apply(this,arguments)}}},WlnJ:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("2kVn"),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,a.FixedWidthBuilder),e}();e.DecimalBuilder=c},XdQL:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n("fIDe"),a=n("7DnX");function c(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return 0===n.length?Object.setPrototypeOf(u.toArrayBufferView(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(i(this.TypedArray,[t].concat(n)),this.constructor.prototype)}function s(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c.apply(this,e)}function f(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c.apply(this,e)}function l(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c.apply(this,e)}function y(t){for(var e,n,r=t.buffer,i=t.byteOffset,o=t.length,u=t.signed,a=new Int32Array(r,i,o),c=0,s=0,f=a.length;s<f;)n=a[s++],e=a[s++],u||(e>>>=0),c+=(n>>>0)+e*Math.pow(s,32);return c}function p(t){var e="",n=new Uint32Array(2),r=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer),o=-1,u=r.length-1;do{for(n[0]=r[o=0];o<u;)r[o++]=n[1]=n[0]/10,n[0]=(n[0]-10*n[1]<<16)+r[o];r[o]=n[1]=n[0]/10,n[0]=n[0]-10*n[1],e="".concat(n[0]).concat(e)}while(i[0]||i[1]||i[2]||i[3]);return e||"0"}e.isArrowBigNumSymbol=Symbol.for("isArrowBigNum"),c.prototype[e.isArrowBigNumSymbol]=!0,c.prototype.toJSON=function(){return'"'.concat(e.bignumToString(this),'"')},c.prototype.valueOf=function(){return y(this)},c.prototype.toString=function(){return e.bignumToString(this)},c.prototype[Symbol.toPrimitive]=function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"){case"number":return y(this);case"string":return e.bignumToString(this);case"default":return e.bignumToBigInt(this)}return e.bignumToString(this)},Object.setPrototypeOf(s.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(f.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(l.prototype,Object.create(Uint32Array.prototype)),Object.assign(s.prototype,c.prototype,{constructor:s,signed:!0,TypedArray:Int32Array,BigIntArray:a.BigInt64Array}),Object.assign(f.prototype,c.prototype,{constructor:f,signed:!1,TypedArray:Uint32Array,BigIntArray:a.BigUint64Array}),Object.assign(l.prototype,c.prototype,{constructor:l,signed:!0,TypedArray:Uint32Array,BigIntArray:a.BigUint64Array}),a.BigIntAvailable?(e.bignumToBigInt=function(t){return 8===t.byteLength?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:p(t)},e.bignumToString=function(t){return 8===t.byteLength?"".concat(new t.BigIntArray(t.buffer,t.byteOffset,1)[0]):p(t)}):(e.bignumToString=p,e.bignumToBigInt=e.bignumToString);var h=function(){function t(e,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),t.new(e,n)}var e,n,i;return e=t,i=[{key:"new",value:function(t,e){switch(e){case!0:return new s(t);case!1:return new f(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case a.BigInt64Array:return new s(t)}return 16===t.byteLength?new l(t):new f(t)}},{key:"signed",value:function(t){return new s(t)}},{key:"unsigned",value:function(t){return new f(t)}},{key:"decimal",value:function(t){return new l(t)}}],(n=null)&&r(e.prototype,n),i&&r(e,i),t}();e.BN=h},XqFR:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n("J0lL"),y=n("v/3b"),p=n("qF1w"),h=n("ffPt"),d=n("7DnX"),v=n("fIDe"),b=n("LF0+"),m=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,p.BaseVector),u(e,null,[{key:"from",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=void 0!==i&&i,u=D(this,o);if(r instanceof ArrayBuffer||ArrayBuffer.isView(r)){var a=A(r.constructor,o)||u;if(null===u&&(u=a),u&&u===a){var c=new u,s=r.byteLength/c.ArrayType.BYTES_PER_ELEMENT;return I(u,r.constructor)&&(s*=.5),y.Vector.new(l.Data.Int(c,0,s,0,null,r))}}if(u)return h.vectorFromValuesWithType(function(){return new u},r);if(r instanceof DataView||r instanceof ArrayBuffer)throw new TypeError("Cannot infer integer type from instance of ".concat(r.constructor.name));throw new TypeError("Unrecognized IntVector input")}}]),e}();e.IntVector=m;var g=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,m),e}();e.Int8Vector=g;var w=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,m),e}();e.Int16Vector=w;var _=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,m),e}();e.Int32Vector=_;var k=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,m),u(e,[{key:"toBigInt64Array",value:function(){return v.toBigInt64Array(this.values)}},{key:"values64",get:function(){return this._values64||(this._values64=this.toBigInt64Array())}}]),e}();e.Int64Vector=k;var O=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,m),e}();e.Uint8Vector=O;var S=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,m),e}();e.Uint16Vector=S;var T=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,m),e}();e.Uint32Vector=T;var B=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,m),u(e,[{key:"toBigUint64Array",value:function(){return v.toBigUint64Array(this.values)}},{key:"values64",get:function(){return this._values64||(this._values64=this.toBigUint64Array())}}]),e}();e.Uint64Vector=B;var I=function(t,e){return!(t!==b.Int64&&t!==b.Uint64||e!==Int32Array&&e!==Uint32Array)},A=function(t,e){switch(t){case Int8Array:return b.Int8;case Int16Array:return b.Int16;case Int32Array:return e?b.Int64:b.Int32;case d.BigInt64Array:return b.Int64;case Uint8Array:return b.Uint8;case Uint16Array:return b.Uint16;case Uint32Array:return e?b.Uint64:b.Uint32;case d.BigUint64Array:return b.Uint64;default:return null}},D=function(t,e){switch(t){case g:return b.Int8;case w:return b.Int16;case _:return e?b.Int64:b.Int32;case k:return b.Int64;case O:return b.Uint8;case S:return b.Uint16;case T:return e?b.Uint64:b.Uint32;case B:return b.Uint64;default:return null}}},"Y/6b":function(t,e,n){"use strict";function r(t,e,n){return(r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0});var u=n("J0lL"),a=n("1vD8"),c=n("PNVg"),s=n("vSKt"),f=new Uint8Array(0),l=function(t){return[f,f,new Uint8Array(t),f]};function y(t,e){return function(t,e){var n,i=o(t.fields),u=[],c={numBatches:e.reduce(function(t,e){return Math.max(t,e.length)},0)},f=0,l=0,y=-1,h=e.length,d=[];for(;c.numBatches-- >0;){for(l=Number.POSITIVE_INFINITY,y=-1;++y<h;)d[y]=n=e[y].shift(),l=Math.min(l,n?n.length:l);isFinite(l)&&(d=p(i,l,d,e,c),l>0&&(u[f++]=[l,d.slice()]))}return[t=new a.Schema(i,t.metadata),u.map(function(e){return r(s.RecordBatch,[t].concat(o(e)))})]}(t,e.map(function(t){return t instanceof c.Chunked?t.chunks.map(function(t){return t.data}):[t.data]}))}function p(t,e,n,r,i){for(var o,a,c=0,s=-1,f=r.length,y=(e+63&-64)>>3;++s<f;)(o=n[s])&&(c=o.length)>=e?c===e?n[s]=o:(n[s]=o.slice(0,e),o=o.slice(e,c-e),i.numBatches=Math.max(i.numBatches,r[s].unshift(o))):((a=t[s]).nullable||(t[s]=a.clone({nullable:!0})),n[s]=o?o._changeLengthAndBackfillNullBitmap(e):u.Data.new(a.type,0,e,e,l(y)));return n}e.ensureSameLengthData=function(t,e){for(var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.reduce(function(t,e){return Math.max(t,e.length)},0),c=-1,s=e.length,f=o(t.fields),y=[],p=(i+63&-64)>>3;++c<s;)(n=e[c])&&n.length===i?y[c]=n:((r=f[c]).nullable||(f[c]=f[c].clone({nullable:!0})),y[c]=n?n._changeLengthAndBackfillNullBitmap(i):u.Data.new(r.type,0,i,i,l(p)));return[new a.Schema(f),i,y]},e.distributeColumnsIntoRecordBatches=function(t){return y(new a.Schema(t.map(function(t){return t.field})),t)},e.distributeVectorsIntoRecordBatches=y},Y5mn:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("1vD8"),f=n("LF0+"),l=n("2kVn"),y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,a(e).apply(this,arguments))}var n,r,y;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,l.VariableWidthBuilder),n=e,(r=[{key:"set",value:function(t,n){return u(a(e.prototype),"set",this).call(this,t,n)}},{key:"setValue",value:function(t,e){e=e instanceof Map?e:new Map(Object.entries(e));var n=this._pending||(this._pending=new Map),r=n.get(t);r&&(this._pendingLength-=r.size),this._pendingLength+=e.size,n.set(t,e)}},{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.numChildren);if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new f.Map_(new s.Field(e,t.type,!0),this.type.keysSorted),this.numChildren-1}},{key:"_flushPending",value:function(t){var e=this,n=this._offsets,r=this._setValue;t.forEach(function(t,i){void 0===t?n.set(i,0):(n.set(i,t.size),r(e,i,t))})}}])&&i(n.prototype,r),y&&i(n,y),e}();e.MapBuilder=y},YxFk:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n("fIDe"),i=n("uaPe"),o="function"==typeof t?t:null,u="function"==typeof TextDecoder&&"function"==typeof TextEncoder;e.decodeUtf8=function(t){if(u||!o){var e=new t("utf-8");return function(t){return e.decode(t)}}return function(t){var e=r.toUint8Array(t),n=e.buffer,i=e.byteOffset,u=e.length;return o.from(n,i,u).toString()}}("undefined"!=typeof TextDecoder?TextDecoder:i.TextDecoder),e.encodeUtf8=function(t){if(u||!o){var e=new t;return function(t){return e.encode(t)}}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return r.toUint8Array(o.from(t,"utf8"))}}("undefined"!=typeof TextEncoder?TextEncoder:i.TextEncoder)}).call(this,n("tjlA").Buffer)},ZxDB:function(t,e,n){"use strict";var r=regeneratorRuntime.mark(H);function i(t,e,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){u(o,r,i,a,c,"next",t)}function c(t){u(o,r,i,a,c,"throw",t)}a(void 0)})}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}function y(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){return function(){return new b(t.apply(this,arguments))}}function b(t){var e,n;function r(e,n){try{var o=t[e](n),u=o.value,a=u instanceof g;Promise.resolve(a?u.wrapped:u).then(function(t){a?r("next",t):i(o.done?"return":"normal",t)},function(t){r("throw",t)})}catch(t){i("throw",t)}}function i(t,i){switch(t){case"return":e.resolve({value:i,done:!0});break;case"throw":e.reject(i);break;default:e.resolve({value:i,done:!1})}(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,i){return new Promise(function(o,u){var a={key:t,arg:i,resolve:o,reject:u,next:null};n?n=n.next=a:(e=n=a,r(t,i))})},"function"!=typeof t.return&&(this.return=void 0)}function m(t){return new g(t)}function g(t){this.wrapped=t}function w(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}function _(t,e){var n={},r=!1;function i(n,i){return r=!0,i=new Promise(function(e){e(t[n](i))}),{done:!1,value:e(i)}}return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(t){return r?(r=!1,t):i("next",t)},"function"==typeof t.throw&&(n.throw=function(t){if(r)throw r=!1,t;return i("throw",t)}),"function"==typeof t.return&&(n.return=function(t){return i("return",t)}),n}"function"==typeof Symbol&&Symbol.asyncIterator&&(b.prototype[Symbol.asyncIterator]=function(){return this}),b.prototype.next=function(t){return this._invoke("next",t)},b.prototype.throw=function(t){return this._invoke("throw",t)},b.prototype.return=function(t){return this._invoke("return",t)},Object.defineProperty(e,"__esModule",{value:!0});var k=n("v/3b"),O=n("xW78"),S=n("BMGW"),T=n("i1db"),B=n("Thl1"),I=n("ufsD"),A=n("+fZC"),D=n("vSKt"),x=n("1fhD"),j=n("zPAT"),V=n("7DnX"),F=function(t){function e(t){var n;return s(this,e),(n=y(this,p(e).call(this)))._impl=t,n}return h(e,x.ReadableInterop),l(e,[{key:"isSync",value:function(){return this._impl.isSync()}},{key:"isAsync",value:function(){return this._impl.isAsync()}},{key:"isFile",value:function(){return this._impl.isFile()}},{key:"isStream",value:function(){return this._impl.isStream()}},{key:"next",value:function(){return this._impl.next()}},{key:"throw",value:function(t){return this._impl.throw(t)}},{key:"return",value:function(t){return this._impl.return(t)}},{key:"cancel",value:function(){return this._impl.cancel()}},{key:"reset",value:function(t){return this._impl.reset(t),this._DOMStream=void 0,this._nodeStream=void 0,this}},{key:"open",value:function(t){var e=this,n=this._impl.open(t);return V.isPromise(n)?n.then(function(){return e}):this}},{key:"readRecordBatch",value:function(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}},{key:Symbol.iterator,value:function(){return this._impl[Symbol.iterator]()}},{key:Symbol.asyncIterator,value:function(){return this._impl[Symbol.asyncIterator]()}},{key:"toDOMStream",value:function(){var t=this;return T.default.toDOMStream(this.isSync()?c({},Symbol.iterator,function(){return t}):c({},Symbol.asyncIterator,function(){return t}))}},{key:"toNodeStream",value:function(){var t=this;return T.default.toNodeStream(this.isSync()?c({},Symbol.iterator,function(){return t}):c({},Symbol.asyncIterator,function(){return t}),{objectMode:!0})}},{key:"closed",get:function(){return this._impl.closed}},{key:"schema",get:function(){return this._impl.schema}},{key:"autoDestroy",get:function(){return this._impl.autoDestroy}},{key:"dictionaries",get:function(){return this._impl.dictionaries}},{key:"numDictionaries",get:function(){return this._impl.numDictionaries}},{key:"numRecordBatches",get:function(){return this._impl.numRecordBatches}},{key:"footer",get:function(){return this._impl.isFile()?this._impl.footer:null}}],[{key:"throughNode",value:function(t){throw new Error('"throughNode" not available in this environment')}},{key:"throughDOM",value:function(t,e){throw new Error('"throughDOM" not available in this environment')}},{key:"from",value:function(t){return t instanceof e?t:V.isArrowJSON(t)?function(t){return new M(new W(t))}(t):V.isFileHandle(t)?function(t){return G.apply(this,arguments)}(t):V.isPromise(t)?a(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=e,n.next=3,t;case 3:return n.t1=n.sent,n.next=6,n.t0.from.call(n.t0,n.t1);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}},n)}))():V.isFetchResponse(t)||V.isReadableDOMStream(t)||V.isReadableNodeStream(t)||V.isAsyncIterable(t)?function(t){return X.apply(this,arguments)}(new B.AsyncByteStream(t)):function(t){var e=t.peek(j.magicLength+7&-8);return e&&e.byteLength>=4?j.checkForMagicArrowString(e)?new U(new C(t.read())):new M(new L(t)):new M(new L(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)})()))}(new B.ByteStream(t))}},{key:"readAll",value:function(t){return t instanceof e?t.isSync()?H(t):J(t):V.isArrowJSON(t)||ArrayBuffer.isView(t)||V.isIterable(t)||V.isIteratorResult(t)?H(t):J(t)}}]),e}();e.RecordBatchReader=F;var M=function(t){function e(t){var n;return s(this,e),(n=y(this,p(e).call(this,t)))._impl=t,n}return h(e,F),l(e,[{key:Symbol.iterator,value:function(){return this._impl[Symbol.iterator]()}},{key:Symbol.asyncIterator,value:function(){var t=this;return v(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(_(w(t[Symbol.iterator]()),m),"t0",1);case 1:case"end":return e.stop()}},e)}))()}}]),e}();e.RecordBatchStreamReader=M;var P=function(t){function e(t){var n;return s(this,e),(n=y(this,p(e).call(this,t)))._impl=t,n}return h(e,F),l(e,[{key:Symbol.iterator,value:function(){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}},{key:Symbol.asyncIterator,value:function(){return this._impl[Symbol.asyncIterator]()}}]),e}();e.AsyncRecordBatchStreamReader=P;var U=function(t){function e(t){var n;return s(this,e),(n=y(this,p(e).call(this,t)))._impl=t,n}return h(e,M),e}();e.RecordBatchFileReader=U;var R=function(t){function e(t){var n;return s(this,e),(n=y(this,p(e).call(this,t)))._impl=t,n}return h(e,P),e}();e.AsyncRecordBatchFileReader=R;var E=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map;s(this,t),this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}return l(t,[{key:"isSync",value:function(){return!1}},{key:"isAsync",value:function(){return!1}},{key:"isFile",value:function(){return!1}},{key:"isStream",value:function(){return!1}},{key:"reset",value:function(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}},{key:"_loadRecordBatch",value:function(t,e){return new D.RecordBatch(this.schema,t.length,this._loadVectors(t,e,this.schema.fields))}},{key:"_loadDictionaryBatch",value:function(t,e){var n=t.id,r=t.isDelta,i=t.data,o=this.dictionaries,u=this.schema,a=o.get(n);if(r||!a){var c=u.dictionaries.get(n);return a&&r?a.concat(k.Vector.new(this._loadVectors(i,e,[c])[0])):k.Vector.new(this._loadVectors(i,e,[c])[0])}return a}},{key:"_loadVectors",value:function(t,e,n){return new A.VectorLoader(e,t.nodes,t.buffers,this.dictionaries).visitMany(n)}},{key:"numDictionaries",get:function(){return this._dictionaryIndex}},{key:"numRecordBatches",get:function(){return this._recordBatchIndex}}]),t}(),L=function(t){function e(t,n){var r;return s(this,e),(r=y(this,p(e).call(this,n)))._reader=V.isArrowJSON(t)?new j.JSONMessageReader(r._handle=t):new j.MessageReader(r._handle=t),r}return h(e,E),l(e,[{key:"isSync",value:function(){return!0}},{key:"isStream",value:function(){return!0}},{key:Symbol.iterator,value:function(){return this}},{key:"cancel",value:function(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}},{key:"open",value:function(t){return this.closed||(this.autoDestroy=Y(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}},{key:"throw",value:function(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):x.ITERATOR_DONE}},{key:"return",value:function(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):x.ITERATOR_DONE}},{key:"next",value:function(){if(this.closed)return x.ITERATOR_DONE;for(var t,e=this._reader;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;var n=t.header(),r=e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;var i=t.header(),o=e.readMessageBody(t.bodyLength),u=this._loadDictionaryBatch(i,o);this.dictionaries.set(i.id,u)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new D._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}},{key:"_readNextMessageAndValidate",value:function(t){return this._reader.readMessage(t)}}]),e}(),N=function(t){function e(t,n){var r;return s(this,e),(r=y(this,p(e).call(this,n)))._reader=new j.AsyncMessageReader(r._handle=t),r}return h(e,E),l(e,[{key:"isAsync",value:function(){return!0}},{key:"isStream",value:function(){return!0}},{key:Symbol.asyncIterator,value:function(){return this}},{key:"cancel",value:function(){var t=a(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed||!(this.closed=!0)){t.next=5;break}return t.next=3,this.reset()._reader.return();case 3:this._reader=null,this.dictionaries=null;case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"open",value:function(){var t=a(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed){t.next=10;break}if(this.autoDestroy=Y(this,e),t.t0=this.schema,t.t0){t.next=7;break}return t.next=6,this._reader.readSchema();case 6:t.t0=this.schema=t.sent;case 7:if(t.t0){t.next=10;break}return t.next=10,this.cancel();case 10:return t.abrupt("return",this);case 11:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"throw",value:function(){var t=a(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed||!this.autoDestroy||!(this.closed=!0)){t.next=4;break}return t.next=3,this.reset()._reader.throw(e);case 3:return t.abrupt("return",t.sent);case 4:return t.abrupt("return",x.ITERATOR_DONE);case 5:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=a(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed||!this.autoDestroy||!(this.closed=!0)){t.next=4;break}return t.next=3,this.reset()._reader.return(e);case 3:return t.abrupt("return",t.sent);case 4:return t.abrupt("return",x.ITERATOR_DONE);case 5:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"next",value:function(){var t=a(regeneratorRuntime.mark(function t(){var e,n,r,i,o,u,a,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.closed){t.next=2;break}return t.abrupt("return",x.ITERATOR_DONE);case 2:n=this._reader;case 3:return t.next=5,this._readNextMessageAndValidate();case 5:if(!(e=t.sent)){t.next=31;break}if(!e.isSchema()){t.next=11;break}return t.next=9,this.reset(e.header());case 9:t.next=29;break;case 11:if(!e.isRecordBatch()){t.next=21;break}return this._recordBatchIndex++,r=e.header(),t.next=16,n.readMessageBody(e.bodyLength);case 16:return i=t.sent,o=this._loadRecordBatch(r,i),t.abrupt("return",{done:!1,value:o});case 21:if(!e.isDictionaryBatch()){t.next=29;break}return this._dictionaryIndex++,u=e.header(),t.next=26,n.readMessageBody(e.bodyLength);case 26:a=t.sent,c=this._loadDictionaryBatch(u,a),this.dictionaries.set(u.id,c);case 29:t.next=3;break;case 31:if(!this.schema||0!==this._recordBatchIndex){t.next=34;break}return this._recordBatchIndex++,t.abrupt("return",{done:!1,value:new D._InternalEmptyPlaceholderRecordBatch(this.schema)});case 34:return t.next=36,this.return();case 36:return t.abrupt("return",t.sent);case 37:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"_readNextMessageAndValidate",value:function(){var t=a(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._reader.readMessage(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}]),e}(),C=function(t){function e(t,n){return s(this,e),y(this,p(e).call(this,t instanceof I.RandomAccessFile?t:new I.RandomAccessFile(t),n))}return h(e,L),l(e,[{key:"isSync",value:function(){return!0}},{key:"isFile",value:function(){return!0}},{key:"open",value:function(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;var n=!0,r=!1,o=void 0;try{for(var u,a=this._footer.dictionaryBatches()[Symbol.iterator]();!(n=(u=a.next()).done);n=!0){u.value&&this._readDictionaryBatch(this._dictionaryIndex++)}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}}return i(p(e.prototype),"open",this).call(this,t)}},{key:"readRecordBatch",value:function(t){if(this.closed)return null;this._footer||this.open();var e=this._footer&&this._footer.getRecordBatch(t);if(e&&this._handle.seek(e.offset)){var n=this._reader.readMessage(O.MessageHeader.RecordBatch);if(n&&n.isRecordBatch()){var r=n.header(),i=this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(r,i)}}return null}},{key:"_readDictionaryBatch",value:function(t){var e=this._footer&&this._footer.getDictionaryBatch(t);if(e&&this._handle.seek(e.offset)){var n=this._reader.readMessage(O.MessageHeader.DictionaryBatch);if(n&&n.isDictionaryBatch()){var r=n.header(),i=this._reader.readMessageBody(n.bodyLength),o=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,o)}}}},{key:"_readFooter",value:function(){var t=this._handle,e=t.size-j.magicAndPadding,n=t.readInt32(e),r=t.readAt(e-n,n);return S.Footer.decode(r)}},{key:"_readNextMessageAndValidate",value:function(t){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){var e=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(e&&this._handle.seek(e.offset))return this._reader.readMessage(t)}return null}},{key:"footer",get:function(){return this._footer}},{key:"numDictionaries",get:function(){return this._footer?this._footer.numDictionaries:0}},{key:"numRecordBatches",get:function(){return this._footer?this._footer.numRecordBatches:0}}]),e}(),z=function(t){function e(t){s(this,e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o="number"!=typeof r[0]?r.shift():void 0,u=r[0]instanceof Map?r.shift():void 0;return y(this,p(e).call(this,t instanceof I.AsyncRandomAccessFile?t:new I.AsyncRandomAccessFile(t,o),u))}return h(e,N),l(e,[{key:"isFile",value:function(){return!0}},{key:"isAsync",value:function(){return!0}},{key:"open",value:function(){var t=a(regeneratorRuntime.mark(function t(n){var r,o,u,a,c,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.closed||this._footer){t.next=32;break}return t.next=3,this._readFooter();case 3:this.schema=(this._footer=t.sent).schema,r=!0,o=!1,u=void 0,t.prev=7,a=this._footer.dictionaryBatches()[Symbol.iterator]();case 9:if(r=(c=a.next()).done){t.next=18;break}if(s=c.value,t.t0=s,!t.t0){t.next=15;break}return t.next=15,this._readDictionaryBatch(this._dictionaryIndex++);case 15:r=!0,t.next=9;break;case 18:t.next=24;break;case 20:t.prev=20,t.t1=t.catch(7),o=!0,u=t.t1;case 24:t.prev=24,t.prev=25,r||null==a.return||a.return();case 27:if(t.prev=27,!o){t.next=30;break}throw u;case 30:return t.finish(27);case 31:return t.finish(24);case 32:return t.next=34,i(p(e.prototype),"open",this).call(this,n);case 34:return t.abrupt("return",t.sent);case 35:case"end":return t.stop()}},t,this,[[7,20,24,32],[25,,27,31]])}));return function(e){return t.apply(this,arguments)}}()},{key:"readRecordBatch",value:function(){var t=a(regeneratorRuntime.mark(function t(e){var n,r,i,o,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.closed){t.next=2;break}return t.abrupt("return",null);case 2:if(this._footer){t.next=5;break}return t.next=5,this.open();case 5:if(n=this._footer&&this._footer.getRecordBatch(e),t.t0=n,!t.t0){t.next=11;break}return t.next=10,this._handle.seek(n.offset);case 10:t.t0=t.sent;case 11:if(!t.t0){t.next=22;break}return t.next=14,this._reader.readMessage(O.MessageHeader.RecordBatch);case 14:if(!(r=t.sent)||!r.isRecordBatch()){t.next=22;break}return i=r.header(),t.next=19,this._reader.readMessageBody(r.bodyLength);case 19:return o=t.sent,u=this._loadRecordBatch(i,o),t.abrupt("return",u);case 22:return t.abrupt("return",null);case 23:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"_readDictionaryBatch",value:function(){var t=a(regeneratorRuntime.mark(function t(e){var n,r,i,o,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this._footer&&this._footer.getDictionaryBatch(e),t.t0=n,!t.t0){t.next=6;break}return t.next=5,this._handle.seek(n.offset);case 5:t.t0=t.sent;case 6:if(!t.t0){t.next=17;break}return t.next=9,this._reader.readMessage(O.MessageHeader.DictionaryBatch);case 9:if(!(r=t.sent)||!r.isDictionaryBatch()){t.next=17;break}return i=r.header(),t.next=14,this._reader.readMessageBody(r.bodyLength);case 14:o=t.sent,u=this._loadDictionaryBatch(i,o),this.dictionaries.set(i.id,u);case 17:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"_readFooter",value:function(){var t=a(regeneratorRuntime.mark(function t(){var e,n,r,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this._handle,t.t0=e._pending,!t.t0){t.next=5;break}return t.next=5,e._pending;case 5:return n=e.size-j.magicAndPadding,t.next=8,e.readInt32(n);case 8:return r=t.sent,t.next=11,e.readAt(n-r,r);case 11:return i=t.sent,t.abrupt("return",S.Footer.decode(i));case 13:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"_readNextMessageAndValidate",value:function(){var t=a(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this._footer){t.next=3;break}return t.next=3,this.open();case 3:if(!(this._footer&&this._recordBatchIndex<this.numRecordBatches)){t.next=14;break}if(n=this._footer.getRecordBatch(this._recordBatchIndex),t.t0=n,!t.t0){t.next=10;break}return t.next=9,this._handle.seek(n.offset);case 9:t.t0=t.sent;case 10:if(!t.t0){t.next=14;break}return t.next=13,this._reader.readMessage(e);case 13:return t.abrupt("return",t.sent);case 14:return t.abrupt("return",null);case 15:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"footer",get:function(){return this._footer}},{key:"numDictionaries",get:function(){return this._footer?this._footer.numDictionaries:0}},{key:"numRecordBatches",get:function(){return this._footer?this._footer.numRecordBatches:0}}]),e}(),W=function(t){function e(t,n){return s(this,e),y(this,p(e).call(this,t,n))}return h(e,L),l(e,[{key:"_loadVectors",value:function(t,e,n){return new A.JSONVectorLoader(e,t.nodes,t.buffers,this.dictionaries).visitMany(n)}}]),e}();function Y(t,e){return e&&"boolean"==typeof e.autoDestroy?e.autoDestroy:t.autoDestroy}function H(t){var e;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e=F.from(t),n.prev=1,e.open({autoDestroy:!1}).closed){n.next=6;break}case 3:return n.next=5,e;case 5:if(!e.reset().open().closed){n.next=3;break}case 6:return n.prev=6,e.cancel(),n.finish(6);case 9:case"end":return n.stop()}},r,null,[[1,,6,9]])}function J(t){return q.apply(this,arguments)}function q(){return(q=v(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m(F.from(e));case 2:return n=t.sent,t.prev=3,t.next=6,m(n.open({autoDestroy:!1}));case 6:if(t.sent.closed){t.next=12;break}case 7:return t.next=9,n;case 9:return t.next=11,m(n.reset().open());case 11:if(!t.sent.closed){t.next=7;break}case 12:return t.prev=12,t.next=15,m(n.cancel());case 15:return t.finish(12);case 16:case"end":return t.stop()}},t,null,[[3,,12,16]])}))).apply(this,arguments)}function X(){return(X=a(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.peek(j.magicLength+7&-8);case 2:if(!((n=t.sent)&&n.byteLength>=4)){t.next=18;break}if(j.checkForMagicArrowString(n)){t.next=8;break}t.t1=new P(new N(e)),t.next=15;break;case 8:return t.t2=U,t.t3=C,t.next=12,e.read();case 12:t.t4=t.sent,t.t5=new t.t3(t.t4),t.t1=new t.t2(t.t5);case 15:t.t0=t.t1,t.next=19;break;case 18:t.t0=new P(new N(v(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)}))()));case 19:return t.abrupt("return",t.t0);case 20:case"end":return t.stop()}},t)}))).apply(this,arguments)}function G(){return(G=a(regeneratorRuntime.mark(function t(e){var n,r,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.stat();case 2:if(n=t.sent,r=n.size,i=new I.AsyncRandomAccessFile(e,r),!(r>=j.magicX2AndPadding)){t.next=12;break}return t.t0=j,t.next=9,i.readAt(0,j.magicLength+7&-8);case 9:if(t.t1=t.sent,!t.t0.checkForMagicArrowString.call(t.t0,t.t1)){t.next=12;break}return t.abrupt("return",new R(new z(i)));case 12:return t.abrupt("return",new P(new N(i)));case 13:case"end":return t.stop()}},t)}))).apply(this,arguments)}},bFGe:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n("P6gY"),y=n("2kVn"),p=function(t){function e(){return u(this,e),a(this,c(e).apply(this,arguments))}return s(e,y.FixedWidthBuilder),e}();e.FloatBuilder=p;var h=function(t){function e(){return u(this,e),a(this,c(e).apply(this,arguments))}return s(e,p),i(e,[{key:"setValue",value:function(t,e){this._values.set(t,l.float64ToUint16(e))}}]),e}();e.Float16Builder=h;var d=function(t){function e(){return u(this,e),a(this,c(e).apply(this,arguments))}return s(e,p),i(e,[{key:"setValue",value:function(t,e){this._values.set(t,e)}}]),e}();e.Float32Builder=d;var v=function(t){function e(){return u(this,e),a(this,c(e).apply(this,arguments))}return s(e,p),i(e,[{key:"setValue",value:function(t,e){this._values.set(t,e)}}]),e}();e.Float64Builder=v},bapL:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.partial0=function(t){return function(){return t(this)}},e.partial1=function(t){return function(e){return t(this,e)}},e.partial2=function(t){return function(e,n){return t(this,e,n)}}},cRrI:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var f=n("HXf3"),l=n("xW78"),y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,c(e).apply(this,arguments))}var n,r,y;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,f.Visitor),n=e,(r=[{key:"visit",value:function(t){return null==t?void 0:a(c(e.prototype),"visit",this).call(this,t)}},{key:"visitNull",value:function(t){var e=t.typeId;return{name:l.ArrowType[e].toLowerCase()}}},{key:"visitInt",value:function(t){var e=t.typeId,n=t.bitWidth,r=t.isSigned;return{name:l.ArrowType[e].toLowerCase(),bitWidth:n,isSigned:r}}},{key:"visitFloat",value:function(t){var e=t.typeId,n=t.precision;return{name:l.ArrowType[e].toLowerCase(),precision:l.Precision[n]}}},{key:"visitBinary",value:function(t){var e=t.typeId;return{name:l.ArrowType[e].toLowerCase()}}},{key:"visitBool",value:function(t){var e=t.typeId;return{name:l.ArrowType[e].toLowerCase()}}},{key:"visitUtf8",value:function(t){var e=t.typeId;return{name:l.ArrowType[e].toLowerCase()}}},{key:"visitDecimal",value:function(t){var e=t.typeId,n=t.scale,r=t.precision;return{name:l.ArrowType[e].toLowerCase(),scale:n,precision:r}}},{key:"visitDate",value:function(t){var e=t.typeId,n=t.unit;return{name:l.ArrowType[e].toLowerCase(),unit:l.DateUnit[n]}}},{key:"visitTime",value:function(t){var e=t.typeId,n=t.unit,r=t.bitWidth;return{name:l.ArrowType[e].toLowerCase(),unit:l.TimeUnit[n],bitWidth:r}}},{key:"visitTimestamp",value:function(t){var e=t.typeId,n=t.timezone,r=t.unit;return{name:l.ArrowType[e].toLowerCase(),unit:l.TimeUnit[r],timezone:n}}},{key:"visitInterval",value:function(t){var e=t.typeId,n=t.unit;return{name:l.ArrowType[e].toLowerCase(),unit:l.IntervalUnit[n]}}},{key:"visitList",value:function(t){var e=t.typeId;return{name:l.ArrowType[e].toLowerCase()}}},{key:"visitStruct",value:function(t){var e=t.typeId;return{name:l.ArrowType[e].toLowerCase()}}},{key:"visitUnion",value:function(t){var e=t.typeId,n=t.mode,r=t.typeIds;return{name:l.ArrowType[e].toLowerCase(),mode:l.UnionMode[n],typeIds:i(r)}}},{key:"visitDictionary",value:function(t){return this.visit(t.dictionary)}},{key:"visitFixedSizeBinary",value:function(t){var e=t.typeId,n=t.byteWidth;return{name:l.ArrowType[e].toLowerCase(),byteWidth:n}}},{key:"visitFixedSizeList",value:function(t){var e=t.typeId,n=t.listSize;return{name:l.ArrowType[e].toLowerCase(),listSize:n}}},{key:"visitMap",value:function(t){var e=t.typeId,n=t.keysSorted;return{name:l.ArrowType[e].toLowerCase(),keysSorted:n}}}])&&o(n.prototype,r),y&&o(n,y),e}();e.JSONTypeAssembler=y},ezUA:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("HXf3"),s=n("xW78"),f=function(t,e){return t+e},l=function(t){return"Cannot compute the byte width of variable-width column ".concat(t)},y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}var n,r,y;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,c.Visitor),n=e,(r=[{key:"visitNull",value:function(t){return 0}},{key:"visitInt",value:function(t){return t.bitWidth/8}},{key:"visitFloat",value:function(t){return t.ArrayType.BYTES_PER_ELEMENT}},{key:"visitBinary",value:function(t){throw new Error(l(t))}},{key:"visitUtf8",value:function(t){throw new Error(l(t))}},{key:"visitBool",value:function(t){return 1/8}},{key:"visitDecimal",value:function(t){return 16}},{key:"visitDate",value:function(t){return 4*(t.unit+1)}},{key:"visitTime",value:function(t){return t.bitWidth/8}},{key:"visitTimestamp",value:function(t){return t.unit===s.TimeUnit.SECOND?4:8}},{key:"visitInterval",value:function(t){return 4*(t.unit+1)}},{key:"visitList",value:function(t){throw new Error(l(t))}},{key:"visitStruct",value:function(t){return this.visitFields(t.children).reduce(f,0)}},{key:"visitUnion",value:function(t){return this.visitFields(t.children).reduce(f,0)}},{key:"visitFixedSizeBinary",value:function(t){return t.byteWidth}},{key:"visitFixedSizeList",value:function(t){return t.listSize*this.visitFields(t.children).reduce(f,0)}},{key:"visitMap",value:function(t){return this.visitFields(t.children).reduce(f,0)}},{key:"visitDictionary",value:function(t){return this.visit(t.indices)}},{key:"visitFields",value:function(t){var e=this;return(t||[]).map(function(t){return e.visit(t.type)})}},{key:"visitSchema",value:function(t){return this.visitFields(t.fields).reduce(f,0)}}])&&i(n.prototype,r),y&&i(n,y),e}();e.ByteWidthVisitor=y,e.instance=new y},fCxL:function(t,e,n){"use strict";var r=regeneratorRuntime.mark(a);function i(t,e,n,r){return 0!=(n&1<<r)}function o(t,e,n,r){return(n&1<<r)>>r}function u(t){var e=[],n=0,r=0,i=0,o=!0,u=!1,a=void 0;try{for(var c,s=t[Symbol.iterator]();!(o=(c=s.next()).done);o=!0){c.value&&(i|=1<<r),8==++r&&(e[n++]=i,i=r=0)}}catch(t){u=!0,a=t}finally{try{o||null==s.return||s.return()}finally{if(u)throw a}}(0===n||r>0)&&(e[n++]=i);var f=new Uint8Array(e.length+7&-8);return f.set(e),f}function a(t,e,n,i,o){var u,a,c,s,f;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:u=e%8,a=e>>3,c=0,s=n;case 3:if(!(s>0)){r.next=11;break}f=t[a++];case 5:return r.next=7,o(i,c++,f,u);case 7:if(--s>0&&++u<8){r.next=5;break}case 8:u=0,r.next=3;break;case 11:case"end":return r.stop()}},r)}function c(t,e,n){for(var r=0,i=0|e,o=new DataView(t.buffer,t.byteOffset,t.byteLength),u=void 0===n?t.byteLength:i+n;u-i>=4;)r+=s(o.getUint32(i)),i+=4;for(;u-i>=2;)r+=s(o.getUint16(i)),i+=2;for(;u-i>=1;)r+=s(o.getUint8(i)),i+=1;return r}function s(t){var e=0|t;return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24}Object.defineProperty(e,"__esModule",{value:!0}),e.getBool=i,e.getBit=o,e.setBool=function(t,e,n){return n?!!(t[e>>3]|=1<<e%8)||!0:!(t[e>>3]&=~(1<<e%8))&&!1},e.truncateBitmap=function(t,e,n){var r=n.byteLength+7&-8;if(t>0||n.byteLength<r){var o=new Uint8Array(r);return o.set(t%8==0?n.subarray(t>>3):u(a(n,t,e,null,i)).subarray(0,r)),o}return n},e.packBools=u,e.iterateBits=a,e.popcnt_bit_range=function t(e,n,r){if(r-n<=0)return 0;if(r-n<8){var i=0,u=!0,s=!1,f=void 0;try{for(var l,y=a(e,n,r-n,e,o)[Symbol.iterator]();!(u=(l=y.next()).done);u=!0)i+=l.value}catch(t){s=!0,f=t}finally{try{u||null==y.return||y.return()}finally{if(s)throw f}}return i}var p=r>>3<<3,h=n+(n%8==0?0:8-n%8);return t(e,n,h)+t(e,p,r)+c(e,h>>3,p-h>>3)},e.popcnt_array=c,e.popcnt_uint32=s},fIDe:function(t,e,n){"use strict";var r=regeneratorRuntime.mark(m);function i(t){return function(){return new o(t.apply(this,arguments))}}function o(t){var e,n;function r(e,n){try{var o=t[e](n),u=o.value,c=u instanceof a;Promise.resolve(c?u.wrapped:u).then(function(t){c?r("next",t):i(o.done?"return":"normal",t)},function(t){r("throw",t)})}catch(t){i("throw",t)}}function i(t,i){switch(t){case"return":e.resolve({value:i,done:!0});break;case"throw":e.reject(i);break;default:e.resolve({value:i,done:!1})}(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,i){return new Promise(function(o,u){var a={key:t,arg:i,resolve:o,reject:u,next:null};n?n=n.next=a:(e=n=a,r(t,i))})},"function"!=typeof t.return&&(this.return=void 0)}function u(t){return new a(t)}function a(t){this.wrapped=t}function c(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}function s(t,e){var n={},r=!1;function i(n,i){return r=!0,i=new Promise(function(e){e(t[n](i))}),{done:!1,value:e(i)}}return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(t){return r?(r=!1,t):i("next",t)},"function"==typeof t.throw&&(n.throw=function(t){if(r)throw r=!1,t;return i("throw",t)}),"function"==typeof t.return&&(n.return=function(t){return i("return",t)}),n}"function"==typeof Symbol&&Symbol.asyncIterator&&(o.prototype[Symbol.asyncIterator]=function(){return this}),o.prototype.next=function(t){return this._invoke("next",t)},o.prototype.throw=function(t){return this._invoke("throw",t)},o.prototype.return=function(t){return this._invoke("return",t)},Object.defineProperty(e,"__esModule",{value:!0});var f=n("prJ9"),l=n("YxFk"),y=f.flatbuffers.ByteBuffer,p=n("7DnX"),h="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.byteLength,i=t.byteLength,o=new Uint8Array(t.buffer,t.byteOffset,i),u=new Uint8Array(e.buffer,e.byteOffset,Math.min(r,i));return o.set(u,n),t}function v(t,e){var n=p.isIteratorResult(e)?e.value:e;return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?("string"==typeof n&&(n=l.encodeUtf8(n)),n instanceof ArrayBuffer?new t(n):n instanceof h?new t(n):n instanceof y?v(t,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new t(0):new t(n.buffer,n.byteOffset,n.byteLength/t.BYTES_PER_ELEMENT):t.from(n)):new t(0)}e.memcpy=d,e.joinUint8Arrays=function(t,e){for(var n,r,i,o=function(t){for(var e,n,r,i,o,u,a=t[0]?[t[0]]:[],c=0,s=0,f=t.length;++c<f;)if(o=a[s],u=t[c],!o||!u||o.buffer!==u.buffer||u.byteOffset<o.byteOffset)u&&(a[++s]=u);else{var l=o;e=l.byteOffset,r=l.byteLength;var y=u;n=y.byteOffset,i=y.byteLength,e+r<n||n+i<e?u&&(a[++s]=u):a[s]=new Uint8Array(o.buffer,e,n-e+i)}return a}(t),u=o.reduce(function(t,e){return t+e.byteLength},0),a=0,c=-1,s=Math.min(e||1/0,u),f=o.length;++c<f;){if(s<=a+(r=(n=o[c]).subarray(0,Math.min(n.length,s-a))).length){r.length<n.length?o[c]=n.subarray(r.length):r.length===n.length&&c++,i?d(i,r,a):i=r;break}d(i||(i=new Uint8Array(s)),r,a),a+=r.length}return[i||new Uint8Array(0),o.slice(c),u-(i?i.byteLength:0)]},e.toArrayBufferView=v,e.toInt8Array=function(t){return v(Int8Array,t)},e.toInt16Array=function(t){return v(Int16Array,t)},e.toInt32Array=function(t){return v(Int32Array,t)},e.toBigInt64Array=function(t){return v(p.BigInt64Array,t)},e.toUint8Array=function(t){return v(Uint8Array,t)},e.toUint16Array=function(t){return v(Uint16Array,t)},e.toUint32Array=function(t){return v(Uint32Array,t)},e.toBigUint64Array=function(t){return v(p.BigUint64Array,t)},e.toFloat32Array=function(t){return v(Float32Array,t)},e.toFloat64Array=function(t){return v(Float64Array,t)},e.toUint8ClampedArray=function(t){return v(Uint8ClampedArray,t)};var b=function(t){return t.next(),t};function m(t,e){var n,i;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:case"end":return t.stop()}},t)}),i="string"==typeof e?n(e):ArrayBuffer.isView(e)?n(e):e instanceof ArrayBuffer?n(e):e instanceof h?n(e):p.isIterable(e)?e:n(e),r.delegateYield(b(regeneratorRuntime.mark(function e(n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r=null;case 1:return e.t0=n,e.next=4,v(t,r);case 4:e.t1=e.sent,r=e.t0.next.call(e.t0,e.t1);case 6:if(!r.done){e.next=1;break}case 7:case"end":return e.stop()}},e)})(i[Symbol.iterator]())),"t0",3);case 3:case"end":return r.stop()}},r)}function g(t,e){return w.apply(this,arguments)}function w(){return(w=i(regeneratorRuntime.mark(function t(e,n){var r,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!p.isPromise(n)){t.next=13;break}return t.t0=s,t.t1=c,t.t2=g,t.t3=e,t.next=7,u(n);case 7:return t.t4=t.sent,t.t5=(0,t.t2)(t.t3,t.t4),t.t6=(0,t.t1)(t.t5),t.t7=u,t.delegateYield((0,t.t0)(t.t6,t.t7),"t8",12);case 12:return t.abrupt("return",t.t8);case 13:return r=function(){var t=i(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),o=function(){var t=i(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(s(c(b(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=null;case 1:return t.t0=e,t.next=4,n&&n.value;case 4:t.t1=t.sent,n=t.t0.next.call(t.t0,t.t1);case 6:if(!n.done){t.next=1;break}case 7:case"end":return t.stop()}},t)})(e[Symbol.iterator]()))),u),"t0",1);case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),a="string"==typeof n?r(n):ArrayBuffer.isView(n)?r(n):n instanceof ArrayBuffer?r(n):n instanceof h?r(n):p.isIterable(n)?o(n):p.isAsyncIterable(n)?n:r(n),t.delegateYield(s(c(b(function(){var t=i(regeneratorRuntime.mark(function t(n){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=null;case 1:return t.t0=u,t.t1=n,t.next=5,v(e,r);case 5:return t.t2=t.sent,t.t3=t.t1.next.call(t.t1,t.t2),t.next=9,(0,t.t0)(t.t3);case 9:r=t.sent;case 10:if(!r.done){t.next=1;break}case 11:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()(a[Symbol.asyncIterator]()))),u),"t9",17);case 17:case"end":return t.stop()}},t)}))).apply(this,arguments)}e.toArrayBufferViewIterator=m,e.toInt8ArrayIterator=function(t){return m(Int8Array,t)},e.toInt16ArrayIterator=function(t){return m(Int16Array,t)},e.toInt32ArrayIterator=function(t){return m(Int32Array,t)},e.toUint8ArrayIterator=function(t){return m(Uint8Array,t)},e.toUint16ArrayIterator=function(t){return m(Uint16Array,t)},e.toUint32ArrayIterator=function(t){return m(Uint32Array,t)},e.toFloat32ArrayIterator=function(t){return m(Float32Array,t)},e.toFloat64ArrayIterator=function(t){return m(Float64Array,t)},e.toUint8ClampedArrayIterator=function(t){return m(Uint8ClampedArray,t)},e.toArrayBufferViewAsyncIterator=g,e.toInt8ArrayAsyncIterator=function(t){return g(Int8Array,t)},e.toInt16ArrayAsyncIterator=function(t){return g(Int16Array,t)},e.toInt32ArrayAsyncIterator=function(t){return g(Int32Array,t)},e.toUint8ArrayAsyncIterator=function(t){return g(Uint8Array,t)},e.toUint16ArrayAsyncIterator=function(t){return g(Uint16Array,t)},e.toUint32ArrayAsyncIterator=function(t){return g(Uint32Array,t)},e.toFloat32ArrayAsyncIterator=function(t){return g(Float32Array,t)},e.toFloat64ArrayAsyncIterator=function(t){return g(Float64Array,t)},e.toUint8ClampedArrayAsyncIterator=function(t){return g(Uint8ClampedArray,t)},e.rebaseValueOffsets=function(t,e,n){if(0!==t){n=n.slice(0,e+1);for(var r=-1;++r<=e;)n[r]+=t}return n},e.compareArrayLike=function(t,e){var n=0,r=t.length;if(r!==e.length)return!1;if(r>0)do{if(t[n]!==e[n])return!1}while(++n<r);return!0}},ffPt:function(t,e,n){"use strict";function r(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(n,!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e,n){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&f(i,n.prototype),i}).apply(null,arguments)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}Object.defineProperty(e,"__esModule",{value:!0});var y=n("v/3b");e.Vector=y.Vector;var p=n("qF1w");e.BaseVector=p.BaseVector;var h=n("vDpf");e.BinaryVector=h.BinaryVector;var d=n("BpbQ");e.BoolVector=d.BoolVector;var v=n("PNVg");e.Chunked=v.Chunked;var b=n("2ixf");e.DateVector=b.DateVector,e.DateDayVector=b.DateDayVector,e.DateMillisecondVector=b.DateMillisecondVector;var m=n("xt3r");e.DecimalVector=m.DecimalVector;var g=n("xo/C");e.DictionaryVector=g.DictionaryVector;var w=n("4n+2");e.FixedSizeBinaryVector=w.FixedSizeBinaryVector;var _=n("Vpg6");e.FixedSizeListVector=_.FixedSizeListVector;var k=n("ucDT");e.FloatVector=k.FloatVector,e.Float16Vector=k.Float16Vector,e.Float32Vector=k.Float32Vector,e.Float64Vector=k.Float64Vector;var O=n("DpTN");e.IntervalVector=O.IntervalVector,e.IntervalDayTimeVector=O.IntervalDayTimeVector,e.IntervalYearMonthVector=O.IntervalYearMonthVector;var S=n("XqFR");e.IntVector=S.IntVector,e.Int8Vector=S.Int8Vector,e.Int16Vector=S.Int16Vector,e.Int32Vector=S.Int32Vector,e.Int64Vector=S.Int64Vector,e.Uint8Vector=S.Uint8Vector,e.Uint16Vector=S.Uint16Vector,e.Uint32Vector=S.Uint32Vector,e.Uint64Vector=S.Uint64Vector;var T=n("JPGT");e.ListVector=T.ListVector;var B=n("0C15");e.MapVector=B.MapVector;var I=n("JEeJ");e.NullVector=I.NullVector;var A=n("5ypL");e.StructVector=A.StructVector;var D=n("sIVg");e.TimestampVector=D.TimestampVector,e.TimestampSecondVector=D.TimestampSecondVector,e.TimestampMillisecondVector=D.TimestampMillisecondVector,e.TimestampMicrosecondVector=D.TimestampMicrosecondVector,e.TimestampNanosecondVector=D.TimestampNanosecondVector;var x=n("OAD5");e.TimeVector=x.TimeVector,e.TimeSecondVector=x.TimeSecondVector,e.TimeMillisecondVector=x.TimeMillisecondVector,e.TimeMicrosecondVector=x.TimeMicrosecondVector,e.TimeNanosecondVector=x.TimeNanosecondVector;var j=n("HUTE");e.UnionVector=j.UnionVector,e.DenseUnionVector=j.DenseUnionVector,e.SparseUnionVector=j.SparseUnionVector;var V=n("JO07");e.Utf8Vector=V.Utf8Vector;var F=n("Il/q");e.MapRow=F.MapRow,e.StructRow=F.StructRow;var M=n("bapL"),P=n("xW78"),U=n("v/3b"),R=n("PNVg"),E=n("qF1w"),L=n("fCxL"),N=n("7DnX"),C=n("2kVn"),z=n("BYis"),W=n("HGcr"),Y=n("me3Y"),H=n("zd6X"),J=n("BXqJ"),q=n("ezUA"),X=n("Bf6J");U.Vector.new=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return s(X.instance.getVisitFn(t)(),[t].concat(n))},U.Vector.from=function(t){var e=a({nullValues:[null,void 0]},t),n=e.values,u=void 0===n?[]:n,c=o(e,["values"]);if(N.isIterable(u)){var s=i(C.Builder.throughIterable(c)(u));return 1===s.length?s[0]:R.Chunked.concat(s)}return(f=regeneratorRuntime.mark(function t(e){var n,r,i,o,a,s,f,y;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=C.Builder.throughAsyncIterable(c),r=!0,i=!1,t.prev=3,a=l(n(u));case 5:return t.next=7,a.next();case 7:return s=t.sent,r=s.done,t.next=11,s.value;case 11:if(f=t.sent,r){t.next=18;break}y=f,e.push(y);case 15:r=!0,t.next=5;break;case 18:t.next=24;break;case 20:t.prev=20,t.t0=t.catch(3),i=!0,o=t.t0;case 24:if(t.prev=24,t.prev=25,r||null==a.return){t.next=29;break}return t.next=29,a.return();case 29:if(t.prev=29,!i){t.next=32;break}throw o;case 32:return t.finish(29);case 33:return t.finish(24);case 34:return t.abrupt("return",1===e.length?e[0]:R.Chunked.concat(e));case 35:case"end":return t.stop()}},t,null,[[3,20,24,34],[25,,29,33]])}),y=function(){var t=this,e=arguments;return new Promise(function(n,i){var o=f.apply(t,e);function u(t){r(o,n,i,u,a,"next",t)}function a(t){r(o,n,i,u,a,"throw",t)}u(void 0)})},function(t){return y.apply(this,arguments)})([]);var f,y},e.vectorFromValuesWithType=function(t,e){if(N.isIterable(e))return U.Vector.from({nullValues:[null,void 0],type:t(),values:e});if(N.isAsyncIterable(e))return U.Vector.from({nullValues:[null,void 0],type:t(),values:e});var n=a({},e),r=n.values,i=void 0===r?[]:r,o=n.type,u=void 0===o?t():o,c=n.nullValues,s=void 0===c?[null,void 0]:c;return N.isIterable(i),U.Vector.from(a({nullValues:s},e,{type:u}))},E.BaseVector.prototype.get=function(t){return z.instance.visit(this,t)},E.BaseVector.prototype.set=function(t,e){return W.instance.visit(this,t,e)},E.BaseVector.prototype.indexOf=function(t,e){return Y.instance.visit(this,t,e)},E.BaseVector.prototype.toArray=function(){return H.instance.visit(this)},E.BaseVector.prototype.getByteWidth=function(){return q.instance.visit(this.type)},E.BaseVector.prototype[Symbol.iterator]=function(){return J.instance.visit(this)},E.BaseVector.prototype._bindDataAccessors=function(){var t=this.nullBitmap;t&&t.byteLength>0&&(this.get=(e=this.get,function(t){return this.isValid(t)?e.call(this,t):null}),this.set=function(t){return function(e,n){L.setBool(this.nullBitmap,this.offset+e,!(null==n))&&t.call(this,e,n)}}(this.set));var e},Object.keys(P.Type).map(function(t){return P.Type[t]}).filter(function(t){return"number"==typeof t}).filter(function(t){return t!==P.Type.NONE}).forEach(function(t){var e,n=X.instance.visit(t);n.prototype.get=M.partial1(z.instance.getVisitFn(t)),n.prototype.set=M.partial2(W.instance.getVisitFn(t)),n.prototype.indexOf=M.partial2(Y.instance.getVisitFn(t)),n.prototype.toArray=M.partial0(H.instance.getVisitFn(t)),n.prototype.getByteWidth=(e=q.instance.getVisitFn(t),function(){return e(this.type)}),n.prototype[Symbol.iterator]=M.partial0(J.instance.getVisitFn(t))})},i1db:function(t,e,n){"use strict";function r(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var u=t.apply(e,n);function a(t){r(u,i,o,a,c,"next",t)}function c(t){r(u,i,o,a,c,"throw",t)}a(void 0)})}}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u=regeneratorRuntime.mark(h);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(t){return new l(t)}function s(t){return function(){return new f(t.apply(this,arguments))}}function f(t){var e,n;function r(e,n){try{var o=t[e](n),u=o.value,a=u instanceof l;Promise.resolve(a?u.wrapped:u).then(function(t){a?r("next",t):i(o.done?"return":"normal",t)},function(t){r("throw",t)})}catch(t){i("throw",t)}}function i(t,i){switch(t){case"return":e.resolve({value:i,done:!0});break;case"throw":e.reject(i);break;default:e.resolve({value:i,done:!1})}(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,i){return new Promise(function(o,u){var a={key:t,arg:i,resolve:o,reject:u,next:null};n?n=n.next=a:(e=n=a,r(t,i))})},"function"!=typeof t.return&&(this.return=void 0)}function l(t){this.wrapped=t}"function"==typeof Symbol&&Symbol.asyncIterator&&(f.prototype[Symbol.asyncIterator]=function(){return this}),f.prototype.next=function(t){return this._invoke("next",t)},f.prototype.throw=function(t){return this._invoke("throw",t)},f.prototype.return=function(t){return this._invoke("return",t)},Object.defineProperty(e,"__esModule",{value:!0});var y=n("fIDe");e.default={fromIterable:function(t){return p(h(t))},fromAsyncIterable:function(t){return p(function(t){return d.apply(this,arguments)}(t))},fromDOMStream:function(t){return p(function(t){return v.apply(this,arguments)}(t))},fromNodeStream:function(t){return p(function(t){return _.apply(this,arguments)}(t))},toDOMStream:function(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream:function(t,e){throw new Error('"toNodeStream" not available in this environment')}};var p=function(t){return t.next(),t};function h(t){var e,n,r,i,o,c,s,f,l,p,h,d;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return f=function(){if("peek"===o)return y.joinUint8Arrays(r,c)[0];var t=a(y.joinUint8Arrays(r,c),3);return i=t[0],r=t[1],s=t[2],i},n=!1,r=[],s=0,u.next=6,null;case 6:l=u.sent,o=l.cmd,c=l.size,p=y.toUint8ArrayIterator(t)[Symbol.iterator](),u.prev=10;case 11:if(h=isNaN(c-s)?p.next(void 0):p.next(c-s),e=h.done,i=h.value,!e&&i.byteLength>0&&(r.push(i),s+=i.byteLength),!(e||c<=s)){u.next=22;break}case 16:return u.next=18,f();case 18:d=u.sent,o=d.cmd,c=d.size;case 21:if(c<s){u.next=16;break}case 22:if(!e){u.next=11;break}case 23:u.next=28;break;case 25:u.prev=25,u.t0=u.catch(10),(n=!0)&&"function"==typeof p.throw&&p.throw(u.t0);case 28:return u.prev=28,!1===n&&"function"==typeof p.return&&p.return(),u.finish(28);case 31:case"end":return u.stop()}},u,null,[[10,25,28,31]])}function d(){return(d=s(regeneratorRuntime.mark(function t(e){var n,r,i,o,u,s,f,l,p,h,d,v;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=function(){if("peek"===u)return y.joinUint8Arrays(i,s)[0];var t=a(y.joinUint8Arrays(i,s),3);return o=t[0],i=t[1],f=t[2],o},r=!1,i=[],f=0,t.next=6,null;case 6:p=t.sent,u=p.cmd,s=p.size,h=y.toUint8ArrayAsyncIterator(e)[Symbol.asyncIterator](),t.prev=10;case 11:if(!isNaN(s-f)){t.next=17;break}return t.next=14,c(h.next(void 0));case 14:t.t0=t.sent,t.next=20;break;case 17:return t.next=19,c(h.next(s-f));case 19:t.t0=t.sent;case 20:if(d=t.t0,n=d.done,o=d.value,!n&&o.byteLength>0&&(i.push(o),f+=o.byteLength),!(n||s<=f)){t.next=31;break}case 25:return t.next=27,l();case 27:v=t.sent,u=v.cmd,s=v.size;case 30:if(s<f){t.next=25;break}case 31:if(!n){t.next=11;break}case 32:t.next=40;break;case 34:if(t.prev=34,t.t1=t.catch(10),t.t2=(r=!0)&&"function"==typeof h.throw,!t.t2){t.next=40;break}return t.next=40,c(h.throw(t.t1));case 40:if(t.prev=40,t.t3=!1===r&&"function"==typeof h.return,!t.t3){t.next=45;break}return t.next=45,c(h.return());case 45:return t.finish(40);case 46:case"end":return t.stop()}},t,null,[[10,34,40,46]])}))).apply(this,arguments)}function v(){return(v=s(regeneratorRuntime.mark(function t(e){var n,r,i,o,u,s,f,l,p,h,d,v;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=function(){if("peek"===u)return y.joinUint8Arrays(i,s)[0];var t=a(y.joinUint8Arrays(i,s),3);return o=t[0],i=t[1],f=t[2],o},n=!1,r=!1,i=[],f=0,t.next=6,null;case 6:p=t.sent,u=p.cmd,s=p.size,h=new b(e),t.prev=10;case 11:if(!isNaN(s-f)){t.next=17;break}return t.next=14,c(h.read(void 0));case 14:t.t0=t.sent,t.next=20;break;case 17:return t.next=19,c(h.read(s-f));case 19:t.t0=t.sent;case 20:if(d=t.t0,n=d.done,o=d.value,!n&&o.byteLength>0&&(i.push(y.toUint8Array(o)),f+=o.byteLength),!(n||s<=f)){t.next=31;break}case 25:return t.next=27,l();case 27:v=t.sent,u=v.cmd,s=v.size;case 30:if(s<f){t.next=25;break}case 31:if(!n){t.next=11;break}case 32:t.next=40;break;case 34:if(t.prev=34,t.t1=t.catch(10),t.t2=r=!0,!t.t2){t.next=40;break}return t.next=40,c(h.cancel(t.t1));case 40:if(t.prev=40,!1!==r){t.next=46;break}return t.next=44,c(h.cancel());case 44:t.next=47;break;case 46:e.locked&&h.releaseLock();case 47:return t.finish(40);case 48:case"end":return t.stop()}},t,null,[[10,34,40,48]])}))).apply(this,arguments)}var b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.source=e,this.byobReader=null,this.defaultReader=null;try{this.supportsBYOB=!!(this.reader=this.getBYOBReader())}catch(t){this.supportsBYOB=!(this.reader=this.getDefaultReader())}}var e,n,r;return e=t,(n=[{key:"releaseLock",value:function(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}},{key:"cancel",value:function(){var t=i(regeneratorRuntime.mark(function t(e){var n,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.reader,r=this.source,t.t0=n,!t.t0){t.next=5;break}return t.next=5,n.cancel(e).catch(function(){});case 5:r&&r.locked&&this.releaseLock();case 6:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"read",value:function(){var t=i(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e){t.next=2;break}return t.abrupt("return",{done:null==this.reader,value:new Uint8Array(0)});case 2:if(this.supportsBYOB&&"number"==typeof e){t.next=8;break}return t.next=5,this.getDefaultReader().read();case 5:t.t0=t.sent,t.next=11;break;case 8:return t.next=10,this.readFromBYOBReader(e);case 10:t.t0=t.sent;case 11:return!(n=t.t0).done&&(n.value=y.toUint8Array(n)),t.abrupt("return",n);case 14:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"getDefaultReader",value:function(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source.getReader(),this.defaultReader.closed.catch(function(){})),this.reader=this.defaultReader}},{key:"getBYOBReader",value:function(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source.getReader({mode:"byob"}),this.byobReader.closed.catch(function(){})),this.reader=this.byobReader}},{key:"readFromBYOBReader",value:function(){var t=i(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m(this.getBYOBReader(),new ArrayBuffer(e),0,e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"closed",get:function(){return this.reader?this.reader.closed.catch(function(){}):Promise.resolve()}}])&&o(e.prototype,n),r&&o(e,r),t}();function m(t,e,n,r){return g.apply(this,arguments)}function g(){return(g=i(regeneratorRuntime.mark(function t(e,n,r,i){var o,u,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r>=i)){t.next=2;break}return t.abrupt("return",{done:!1,value:new Uint8Array(n,0,i)});case 2:return t.next=4,e.read(new Uint8Array(n,r,i-r));case 4:if(o=t.sent,u=o.done,a=o.value,!((r+=a.byteLength)<i)||u){t.next=11;break}return t.next=10,m(e,a.buffer,r,i);case 10:return t.abrupt("return",t.sent);case 11:return t.abrupt("return",{done:u,value:new Uint8Array(a.buffer,0,r)});case 12:case"end":return t.stop()}},t)}))).apply(this,arguments)}var w=function(t,e){var n,r=function(t){return n([e,t])};return[e,r,new Promise(function(i){return(n=i)&&t.once(e,r)})]};function _(){return(_=s(regeneratorRuntime.mark(function t(e){var n,r,o,u,s,f,l,p,h,d,v,b,m,g,_;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return _=function(t,n){return h=p=null,new Promise(function(){var r=i(regeneratorRuntime.mark(function r(i,o){var u,c,s,f,l,y,p,h,d;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:for(u=!0,c=!1,s=void 0,r.prev=3,f=t[Symbol.iterator]();!(u=(l=f.next()).done);u=!0)y=a(l.value,2),p=y[0],h=y[1],e.off(p,h);r.next=11;break;case 7:r.prev=7,r.t0=r.catch(3),c=!0,s=r.t0;case 11:r.prev=11,r.prev=12,u||null==f.return||f.return();case 14:if(r.prev=14,!c){r.next=17;break}throw s;case 17:return r.finish(14);case 18:return r.finish(11);case 19:try{(d=e.destroy)&&d.call(e,n),n=void 0}catch(t){n=t||n}finally{null!=n?o(n):i()}case 20:case"end":return r.stop()}},r,null,[[3,7,11,19],[12,,14,18]])}));return function(t,e){return r.apply(this,arguments)}}())},d=function(){if("peek"===s)return y.joinUint8Arrays(p,f)[0];var t=a(y.joinUint8Arrays(p,f),3);return h=t[0],p=t[1],l=t[2],h},n=[],r="error",o=!1,u=null,l=0,p=[],t.next=9,null;case 9:if(v=t.sent,s=v.cmd,f=v.size,!e.isTTY){t.next=16;break}return t.next=15,new Uint8Array(0);case 15:return t.abrupt("return",t.sent);case 16:t.prev=16,n[0]=w(e,"end"),n[1]=w(e,"error");case 19:return n[2]=w(e,"readable"),t.next=22,c(Promise.race(n.map(function(t){return t[2]})));case 22:if(b=t.sent,m=a(b,2),r=m[0],u=m[1],"error"!==r){t.next=28;break}return t.abrupt("break",37);case 28:if((o="end"===r)||(isFinite(f-l)?(h=y.toUint8Array(e.read(f-l))).byteLength<f-l&&(h=y.toUint8Array(e.read(void 0))):h=y.toUint8Array(e.read(void 0)),h.byteLength>0&&(p.push(h),l+=h.byteLength)),!(o||f<=l)){t.next=36;break}case 30:return t.next=32,d();case 32:g=t.sent,s=g.cmd,f=g.size;case 35:if(f<l){t.next=30;break}case 36:if(!o){t.next=19;break}case 37:return t.prev=37,t.next=40,c(_(n,"error"===r?u:null));case 40:return t.finish(37);case 41:case"end":return t.stop()}},t,null,[[16,,37,41]])}))).apply(this,arguments)}},kE2R:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Object.defineProperty(e,"__esModule",{value:!0});var i=n("v/3b"),o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,o;return e=t,(n=[{key:"get",value:function(t){return this._values[t]}},{key:"clear",value:function(){return this._values=null,this}},{key:"bind",value:function(t){return t instanceof i.Vector?t:(this._values=t,this)}},{key:"length",get:function(){return this._values.length}}])&&r(e.prototype,n),o&&r(e,o),t}();e.Run=o},lx96:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var u=n("4jY8");!function(t){!function(e){!function(e){!function(e){var n=function(){function e(){r(this,e),this.bb=null,this.bb_pos=0}return o(e,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"version",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):u.org.apache.arrow.flatbuf.MetadataVersion.V1}},{key:"schema",value:function(t){var e=this.bb.__offset(this.bb_pos,6);return e?(t||new u.org.apache.arrow.flatbuf.Schema).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}},{key:"dictionaries",value:function(e,n){var r=this.bb.__offset(this.bb_pos,8);return r?(n||new t.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}},{key:"dictionariesLength",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}},{key:"recordBatches",value:function(e,n){var r=this.bb.__offset(this.bb_pos,10);return r?(n||new t.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}},{key:"recordBatchesLength",value:function(){var t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}}],[{key:"getRootAsFooter",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startFooter",value:function(t){t.startObject(4)}},{key:"addVersion",value:function(t,e){t.addFieldInt16(0,e,u.org.apache.arrow.flatbuf.MetadataVersion.V1)}},{key:"addSchema",value:function(t,e){t.addFieldOffset(1,e,0)}},{key:"addDictionaries",value:function(t,e){t.addFieldOffset(2,e,0)}},{key:"startDictionariesVector",value:function(t,e){t.startVector(24,e,8)}},{key:"addRecordBatches",value:function(t,e){t.addFieldOffset(3,e,0)}},{key:"startRecordBatchesVector",value:function(t,e){t.startVector(24,e,8)}},{key:"endFooter",value:function(t){return t.endObject()}},{key:"finishFooterBuffer",value:function(t,e){t.finish(e)}},{key:"createFooter",value:function(t,n,r,i,o){return e.startFooter(t),e.addVersion(t,n),e.addSchema(t,r),e.addDictionaries(t,i),e.addRecordBatches(t,o),e.endFooter(t)}}]),e}();e.Footer=n}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={})),function(t){!function(t){!function(t){!function(t){var e=function(){function t(){r(this,t),this.bb=null,this.bb_pos=0}return o(t,[{key:"__init",value:function(t,e){return this.bb_pos=t,this.bb=e,this}},{key:"offset",value:function(){return this.bb.readInt64(this.bb_pos)}},{key:"metaDataLength",value:function(){return this.bb.readInt32(this.bb_pos+8)}},{key:"bodyLength",value:function(){return this.bb.readInt64(this.bb_pos+16)}}],[{key:"createBlock",value:function(t,e,n,r){return t.prep(8,24),t.writeInt64(r),t.pad(4),t.writeInt32(n),t.writeInt64(e),t.offset()}}]),t}();t.Block=e}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(t.apache||(t.apache={}))}(e.org||(e.org={}))},mJia:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("2kVn"),s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}var n,r,s;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,c.Builder),n=e,(r=[{key:"setValue",value:function(t,e){}},{key:"setValid",value:function(t,e){return this.length=Math.max(t+1,this.length),e}}])&&i(n.prototype,r),s&&i(n,s),e}();e.NullBuilder=s},mNq2:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=void 0;e.valueToString=function(t){if(null===t)return"null";if(t===i)return"undefined";switch(r(t)){case"number":case"bigint":return"".concat(t);case"string":return'"'.concat(t,'"')}return"function"==typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?"[".concat(t,"]"):JSON.stringify(t)}},me3Y:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("HXf3"),c=n("fCxL"),s=n("MNys"),f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,a.Visitor),e}();function l(t,e,n){if(void 0===e)return-1;if(null===e)return function(t,e){var n=t.nullBitmap;if(!n||t.nullCount<=0)return-1;var r=0,i=!0,o=!1,u=void 0;try{for(var a,s=c.iterateBits(n,t.data.offset+(e||0),t.length,n,c.getBool)[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){if(!a.value)return r;++r}}catch(t){o=!0,u=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw u}}return-1}(t,n);for(var r=s.createElementComparator(e),i=(n||0)-1,o=t.length;++i<o;)if(r(t.get(i)))return i;return-1}function y(t,e,n){for(var r=s.createElementComparator(e),i=(n||0)-1,o=t.length;++i<o;)if(r(t.get(i)))return i;return-1}e.IndexOfVisitor=f,f.prototype.visitNull=function(t,e){return null===e&&t.length>0?0:-1},f.prototype.visitBool=l,f.prototype.visitInt=l,f.prototype.visitInt8=l,f.prototype.visitInt16=l,f.prototype.visitInt32=l,f.prototype.visitInt64=l,f.prototype.visitUint8=l,f.prototype.visitUint16=l,f.prototype.visitUint32=l,f.prototype.visitUint64=l,f.prototype.visitFloat=l,f.prototype.visitFloat16=l,f.prototype.visitFloat32=l,f.prototype.visitFloat64=l,f.prototype.visitUtf8=l,f.prototype.visitBinary=l,f.prototype.visitFixedSizeBinary=l,f.prototype.visitDate=l,f.prototype.visitDateDay=l,f.prototype.visitDateMillisecond=l,f.prototype.visitTimestamp=l,f.prototype.visitTimestampSecond=l,f.prototype.visitTimestampMillisecond=l,f.prototype.visitTimestampMicrosecond=l,f.prototype.visitTimestampNanosecond=l,f.prototype.visitTime=l,f.prototype.visitTimeSecond=l,f.prototype.visitTimeMillisecond=l,f.prototype.visitTimeMicrosecond=l,f.prototype.visitTimeNanosecond=l,f.prototype.visitDecimal=l,f.prototype.visitList=l,f.prototype.visitStruct=l,f.prototype.visitUnion=l,f.prototype.visitDenseUnion=y,f.prototype.visitSparseUnion=y,f.prototype.visitDictionary=l,f.prototype.visitInterval=l,f.prototype.visitIntervalDayTime=l,f.prototype.visitIntervalYearMonth=l,f.prototype.visitFixedSizeList=l,f.prototype.visitMap=l,e.instance=new f},nP89:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("HXf3"),s=function(t){function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),o(this,u(n).apply(this,arguments))}var r,s,f;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,c.Visitor),r=n,(s=[{key:"compareSchemas",value:function(t,n){return t===n||n instanceof t.constructor&&e.instance.compareFields(t.fields,n.fields)}},{key:"compareFields",value:function(t,n){return t===n||Array.isArray(t)&&Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e.instance.compareField(t,n[r])})}},{key:"compareField",value:function(t,n){return t===n||n instanceof t.constructor&&t.name===n.name&&t.nullable===n.nullable&&e.instance.visit(t.type,n.type)}}])&&i(r.prototype,s),f&&i(r,f),n}();function f(t,e){return e instanceof t.constructor}function l(t,e){return t===e||f(t,e)}function y(t,e){return t===e||f(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function p(t,e){return t===e||f(t,e)&&t.precision===e.precision}function h(t,e){return t===e||f(t,e)&&t.unit===e.unit}function d(t,e){return t===e||f(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function v(t,e){return t===e||f(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function b(t,n){return t===n||f(t,n)&&t.mode===n.mode&&t.typeIds.every(function(t,e){return t===n.typeIds[e]})&&e.instance.compareFields(t.children,n.children)}function m(t,e){return t===e||f(t,e)&&t.unit===e.unit}e.TypeComparator=s,s.prototype.visitNull=l,s.prototype.visitBool=l,s.prototype.visitInt=y,s.prototype.visitInt8=y,s.prototype.visitInt16=y,s.prototype.visitInt32=y,s.prototype.visitInt64=y,s.prototype.visitUint8=y,s.prototype.visitUint16=y,s.prototype.visitUint32=y,s.prototype.visitUint64=y,s.prototype.visitFloat=p,s.prototype.visitFloat16=p,s.prototype.visitFloat32=p,s.prototype.visitFloat64=p,s.prototype.visitUtf8=l,s.prototype.visitBinary=l,s.prototype.visitFixedSizeBinary=function(t,e){return t===e||f(t,e)&&t.byteWidth===e.byteWidth},s.prototype.visitDate=h,s.prototype.visitDateDay=h,s.prototype.visitDateMillisecond=h,s.prototype.visitTimestamp=d,s.prototype.visitTimestampSecond=d,s.prototype.visitTimestampMillisecond=d,s.prototype.visitTimestampMicrosecond=d,s.prototype.visitTimestampNanosecond=d,s.prototype.visitTime=v,s.prototype.visitTimeSecond=v,s.prototype.visitTimeMillisecond=v,s.prototype.visitTimeMicrosecond=v,s.prototype.visitTimeNanosecond=v,s.prototype.visitDecimal=l,s.prototype.visitList=function(t,n){return t===n||f(t,n)&&t.children.length===n.children.length&&e.instance.compareFields(t.children,n.children)},s.prototype.visitStruct=function(t,n){return t===n||f(t,n)&&t.children.length===n.children.length&&e.instance.compareFields(t.children,n.children)},s.prototype.visitUnion=b,s.prototype.visitDenseUnion=b,s.prototype.visitSparseUnion=b,s.prototype.visitDictionary=function(t,n){return t===n||f(t,n)&&t.id===n.id&&t.isOrdered===n.isOrdered&&e.instance.visit(t.indices,n.indices)&&e.instance.visit(t.dictionary,n.dictionary)},s.prototype.visitInterval=m,s.prototype.visitIntervalDayTime=m,s.prototype.visitIntervalYearMonth=m,s.prototype.visitFixedSizeList=function(t,n){return t===n||f(t,n)&&t.listSize===n.listSize&&t.children.length===n.children.length&&e.instance.compareFields(t.children,n.children)},s.prototype.visitMap=function(t,n){return t===n||f(t,n)&&t.keysSorted===n.keysSorted&&t.children.length===n.children.length&&e.instance.compareFields(t.children,n.children)},e.instance=new s},prJ9:function(t,e,n){"use strict";n.r(e),n.d(e,"flatbuffers",function(){return r});var r={};r.Offset,r.Table,r.SIZEOF_SHORT=2,r.SIZEOF_INT=4,r.FILE_IDENTIFIER_LENGTH=4,r.Encoding={UTF8_BYTES:1,UTF16_STRING:2},r.int32=new Int32Array(2),r.float32=new Float32Array(r.int32.buffer),r.float64=new Float64Array(r.int32.buffer),r.isLittleEndian=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],r.Long=function(t,e){this.low=0|t,this.high=0|e},r.Long.create=function(t,e){return 0==t&&0==e?r.Long.ZERO:new r.Long(t,e)},r.Long.prototype.toFloat64=function(){return(this.low>>>0)+4294967296*this.high},r.Long.prototype.equals=function(t){return this.low==t.low&&this.high==t.high},r.Long.ZERO=new r.Long(0,0),r.Builder=function(t){if(t)e=t;else var e=1024;this.bb=r.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},r.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},r.Builder.prototype.forceDefaults=function(t){this.force_defaults=t},r.Builder.prototype.dataBuffer=function(){return this.bb},r.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},r.Builder.prototype.prep=function(t,e){t>this.minalign&&(this.minalign=t);for(var n=1+~(this.bb.capacity()-this.space+e)&t-1;this.space<n+t+e;){var i=this.bb.capacity();this.bb=r.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(n)},r.Builder.prototype.pad=function(t){for(var e=0;e<t;e++)this.bb.writeInt8(--this.space,0)},r.Builder.prototype.writeInt8=function(t){this.bb.writeInt8(this.space-=1,t)},r.Builder.prototype.writeInt16=function(t){this.bb.writeInt16(this.space-=2,t)},r.Builder.prototype.writeInt32=function(t){this.bb.writeInt32(this.space-=4,t)},r.Builder.prototype.writeInt64=function(t){this.bb.writeInt64(this.space-=8,t)},r.Builder.prototype.writeFloat32=function(t){this.bb.writeFloat32(this.space-=4,t)},r.Builder.prototype.writeFloat64=function(t){this.bb.writeFloat64(this.space-=8,t)},r.Builder.prototype.addInt8=function(t){this.prep(1,0),this.writeInt8(t)},r.Builder.prototype.addInt16=function(t){this.prep(2,0),this.writeInt16(t)},r.Builder.prototype.addInt32=function(t){this.prep(4,0),this.writeInt32(t)},r.Builder.prototype.addInt64=function(t){this.prep(8,0),this.writeInt64(t)},r.Builder.prototype.addFloat32=function(t){this.prep(4,0),this.writeFloat32(t)},r.Builder.prototype.addFloat64=function(t){this.prep(8,0),this.writeFloat64(t)},r.Builder.prototype.addFieldInt8=function(t,e,n){(this.force_defaults||e!=n)&&(this.addInt8(e),this.slot(t))},r.Builder.prototype.addFieldInt16=function(t,e,n){(this.force_defaults||e!=n)&&(this.addInt16(e),this.slot(t))},r.Builder.prototype.addFieldInt32=function(t,e,n){(this.force_defaults||e!=n)&&(this.addInt32(e),this.slot(t))},r.Builder.prototype.addFieldInt64=function(t,e,n){!this.force_defaults&&e.equals(n)||(this.addInt64(e),this.slot(t))},r.Builder.prototype.addFieldFloat32=function(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat32(e),this.slot(t))},r.Builder.prototype.addFieldFloat64=function(t,e,n){(this.force_defaults||e!=n)&&(this.addFloat64(e),this.slot(t))},r.Builder.prototype.addFieldOffset=function(t,e,n){(this.force_defaults||e!=n)&&(this.addOffset(e),this.slot(t))},r.Builder.prototype.addFieldStruct=function(t,e,n){e!=n&&(this.nested(e),this.slot(t))},r.Builder.prototype.nested=function(t){if(t!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")},r.Builder.prototype.notNested=function(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")},r.Builder.prototype.slot=function(t){this.vtable[t]=this.offset()},r.Builder.prototype.offset=function(){return this.bb.capacity()-this.space},r.Builder.growByteBuffer=function(t){var e=t.capacity();if(3221225472&e)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var n=e<<1,i=r.ByteBuffer.allocate(n);return i.setPosition(n-e),i.bytes().set(t.bytes(),n-e),i},r.Builder.prototype.addOffset=function(t){this.prep(r.SIZEOF_INT,0),this.writeInt32(this.offset()-t+r.SIZEOF_INT)},r.Builder.prototype.startObject=function(t){this.notNested(),null==this.vtable&&(this.vtable=[]),this.vtable_in_use=t;for(var e=0;e<t;e++)this.vtable[e]=0;this.isNested=!0,this.object_start=this.offset()},r.Builder.prototype.endObject=function(){if(null==this.vtable||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);for(var t=this.offset(),e=this.vtable_in_use-1;e>=0&&0==this.vtable[e];e--);for(var n=e+1;e>=0;e--)this.addInt16(0!=this.vtable[e]?t-this.vtable[e]:0);this.addInt16(t-this.object_start);var i=(n+2)*r.SIZEOF_SHORT;this.addInt16(i);var o=0,u=this.space;t:for(e=0;e<this.vtables.length;e++){var a=this.bb.capacity()-this.vtables[e];if(i==this.bb.readInt16(a)){for(var c=r.SIZEOF_SHORT;c<i;c+=r.SIZEOF_SHORT)if(this.bb.readInt16(u+c)!=this.bb.readInt16(a+c))continue t;o=this.vtables[e];break}}return o?(this.space=this.bb.capacity()-t,this.bb.writeInt32(this.space,o-t)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-t,this.offset()-t)),this.isNested=!1,t},r.Builder.prototype.finish=function(t,e){if(e){var n=e;if(this.prep(this.minalign,r.SIZEOF_INT+r.FILE_IDENTIFIER_LENGTH),n.length!=r.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+r.FILE_IDENTIFIER_LENGTH);for(var i=r.FILE_IDENTIFIER_LENGTH-1;i>=0;i--)this.writeInt8(n.charCodeAt(i))}this.prep(this.minalign,r.SIZEOF_INT),this.addOffset(t),this.bb.setPosition(this.space)},r.Builder.prototype.requiredField=function(t,e){var n=this.bb.capacity()-t,r=n-this.bb.readInt32(n);if(!(0!=this.bb.readInt16(r+e)))throw new Error("FlatBuffers: field "+e+" must be set")},r.Builder.prototype.startVector=function(t,e,n){this.notNested(),this.vector_num_elems=e,this.prep(r.SIZEOF_INT,t*e),this.prep(n,t*e)},r.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},r.Builder.prototype.createString=function(t){if(t instanceof Uint8Array)var e=t;else{e=[];for(var n=0;n<t.length;){var r,i=t.charCodeAt(n++);if(i<55296||i>=56320)r=i;else r=(i<<10)+t.charCodeAt(n++)+-56613888;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(63&r|128))}}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);n=0;for(var o=this.space,u=this.bb.bytes();n<e.length;n++)u[o++]=e[n];return this.endVector()},r.Builder.prototype.createLong=function(t,e){return r.Long.create(t,e)},r.ByteBuffer=function(t){this.bytes_=t,this.position_=0},r.ByteBuffer.allocate=function(t){return new r.ByteBuffer(new Uint8Array(t))},r.ByteBuffer.prototype.clear=function(){this.position_=0},r.ByteBuffer.prototype.bytes=function(){return this.bytes_},r.ByteBuffer.prototype.position=function(){return this.position_},r.ByteBuffer.prototype.setPosition=function(t){this.position_=t},r.ByteBuffer.prototype.capacity=function(){return this.bytes_.length},r.ByteBuffer.prototype.readInt8=function(t){return this.readUint8(t)<<24>>24},r.ByteBuffer.prototype.readUint8=function(t){return this.bytes_[t]},r.ByteBuffer.prototype.readInt16=function(t){return this.readUint16(t)<<16>>16},r.ByteBuffer.prototype.readUint16=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8},r.ByteBuffer.prototype.readInt32=function(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24},r.ByteBuffer.prototype.readUint32=function(t){return this.readInt32(t)>>>0},r.ByteBuffer.prototype.readInt64=function(t){return new r.Long(this.readInt32(t),this.readInt32(t+4))},r.ByteBuffer.prototype.readUint64=function(t){return new r.Long(this.readUint32(t),this.readUint32(t+4))},r.ByteBuffer.prototype.readFloat32=function(t){return r.int32[0]=this.readInt32(t),r.float32[0]},r.ByteBuffer.prototype.readFloat64=function(t){return r.int32[r.isLittleEndian?0:1]=this.readInt32(t),r.int32[r.isLittleEndian?1:0]=this.readInt32(t+4),r.float64[0]},r.ByteBuffer.prototype.writeInt8=function(t,e){this.bytes_[t]=e},r.ByteBuffer.prototype.writeUint8=function(t,e){this.bytes_[t]=e},r.ByteBuffer.prototype.writeInt16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},r.ByteBuffer.prototype.writeUint16=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8},r.ByteBuffer.prototype.writeInt32=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24},r.ByteBuffer.prototype.writeUint32=function(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24},r.ByteBuffer.prototype.writeInt64=function(t,e){this.writeInt32(t,e.low),this.writeInt32(t+4,e.high)},r.ByteBuffer.prototype.writeUint64=function(t,e){this.writeUint32(t,e.low),this.writeUint32(t+4,e.high)},r.ByteBuffer.prototype.writeFloat32=function(t,e){r.float32[0]=e,this.writeInt32(t,r.int32[0])},r.ByteBuffer.prototype.writeFloat64=function(t,e){r.float64[0]=e,this.writeInt32(t,r.int32[r.isLittleEndian?0:1]),this.writeInt32(t+4,r.int32[r.isLittleEndian?1:0])},r.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+r.SIZEOF_INT+r.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");for(var t="",e=0;e<r.FILE_IDENTIFIER_LENGTH;e++)t+=String.fromCharCode(this.readInt8(this.position_+r.SIZEOF_INT+e));return t},r.ByteBuffer.prototype.__offset=function(t,e){var n=t-this.readInt32(t);return e<this.readInt16(n)?this.readInt16(n+e):0},r.ByteBuffer.prototype.__union=function(t,e){return t.bb_pos=e+this.readInt32(e),t.bb=this,t},r.ByteBuffer.prototype.__string=function(t,e){t+=this.readInt32(t);var n=this.readInt32(t),i="",o=0;if(t+=r.SIZEOF_INT,e===r.Encoding.UTF8_BYTES)return this.bytes_.subarray(t,t+n);for(;o<n;){var u,a=this.readUint8(t+o++);if(a<192)u=a;else{var c=this.readUint8(t+o++);if(a<224)u=(31&a)<<6|63&c;else{var s=this.readUint8(t+o++);if(a<240)u=(15&a)<<12|(63&c)<<6|63&s;else u=(7&a)<<18|(63&c)<<12|(63&s)<<6|63&this.readUint8(t+o++)}}u<65536?i+=String.fromCharCode(u):(u-=65536,i+=String.fromCharCode(55296+(u>>10),56320+(1023&u)))}return i},r.ByteBuffer.prototype.__indirect=function(t){return t+this.readInt32(t)},r.ByteBuffer.prototype.__vector=function(t){return t+this.readInt32(t)+r.SIZEOF_INT},r.ByteBuffer.prototype.__vector_len=function(t){return this.readInt32(t+this.readInt32(t))},r.ByteBuffer.prototype.__has_identifier=function(t){if(t.length!=r.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+r.FILE_IDENTIFIER_LENGTH);for(var e=0;e<r.FILE_IDENTIFIER_LENGTH;e++)if(t.charCodeAt(e)!=this.readInt8(this.position_+r.SIZEOF_INT+e))return!1;return!0},r.ByteBuffer.prototype.createLong=function(t,e){return r.Long.create(t,e)}},qF1w:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("xW78"),f=n("PNVg"),l=n("MNys"),y=n("v/3b"),p=function(t){function e(t,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=u(this,a(e).call(this)))._children=n,r.numChildren=t.childData.length,r._bindDataAccessors(r.data=t),r}var n,r,p;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,y.AbstractVector),n=e,(r=[{key:"clone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._children;return y.Vector.new(t,e)}},{key:"concat",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=f.Chunked).concat.apply(t,[this].concat(n))}},{key:"slice",value:function(t,e){return l.clampRange(this,t,e,this._sliceInternal)}},{key:"isValid",value:function(t){if(this.nullCount>0){var e=this.offset+t;return 0!==(this.nullBitmap[e>>3]&1<<e%8)}return!0}},{key:"getChildAt",value:function(t){return t<0||t>=this.numChildren?null:(this._children||(this._children=[]))[t]||(this._children[t]=y.Vector.new(this.data.childData[t]))}},{key:"toJSON",value:function(){return i(this)}},{key:"_sliceInternal",value:function(t,e,n){return t.clone(t.data.slice(e,n-e),null)}},{key:"_bindDataAccessors",value:function(t){}},{key:"type",get:function(){return this.data.type}},{key:"typeId",get:function(){return this.data.typeId}},{key:"length",get:function(){return this.data.length}},{key:"offset",get:function(){return this.data.offset}},{key:"stride",get:function(){return this.data.stride}},{key:"nullCount",get:function(){return this.data.nullCount}},{key:"byteLength",get:function(){return this.data.byteLength}},{key:"VectorName",get:function(){return"".concat(s.Type[this.typeId],"Vector")}},{key:"ArrayType",get:function(){return this.type.ArrayType}},{key:"values",get:function(){return this.data.values}},{key:"typeIds",get:function(){return this.data.typeIds}},{key:"nullBitmap",get:function(){return this.data.nullBitmap}},{key:"valueOffsets",get:function(){return this.data.valueOffsets}},{key:Symbol.toStringTag,get:function(){return"".concat(this.VectorName,"<").concat(this.type[Symbol.toStringTag],">")}}])&&o(n.prototype,r),p&&o(n,p),e}();e.BaseVector=p,p.prototype[Symbol.isConcatSpreadable]=!0},qN90:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(n,!0).forEach(function(e){o(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){u(o,r,i,a,c,"next",t)}function c(t){u(o,r,i,a,c,"throw",t)}a(void 0)})}}Object.defineProperty(e,"__esModule",{value:!0});var c=n("Thl1"),s=n("ZxDB");e.recordBatchReaderThroughDOMStream=function(t,e){var n=new c.AsyncByteQueue,r=null,o=new ReadableStream({cancel:(l=a(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.close();case 2:case"end":return t.stop()}},t)})),function(){return l.apply(this,arguments)}),start:(f=a(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=h,t.t1=e,t.t2=r,t.t2){t.next=7;break}return t.next=6,y();case 6:t.t2=r=t.sent;case 7:return t.t3=t.t2,t.next=10,(0,t.t0)(t.t1,t.t3);case 10:case"end":return t.stop()}},t)})),function(t){return f.apply(this,arguments)}),pull:(u=a(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=5;break}return t.next=3,h(e,r);case 3:t.next=6;break;case 5:e.close();case 6:case"end":return t.stop()}},t)})),function(t){return u.apply(this,arguments)})});var u;var f;var l;return{writable:new WritableStream(n,i({highWaterMark:Math.pow(2,14)},t)),readable:o};function y(){return p.apply(this,arguments)}function p(){return(p=a(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.RecordBatchReader.from(n);case 2:return t.t0=e,t.next=5,t.sent.open(t.t0);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t)}))).apply(this,arguments)}function h(t,e){return d.apply(this,arguments)}function d(){return(d=a(regeneratorRuntime.mark(function t(e,n){var r,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.desiredSize,i=null;case 2:return t.next=4,n.next();case 4:if((i=t.sent).done){t.next=10;break}if(e.enqueue(i.value),!(null!=r&&--r<=0)){t.next=8;break}return t.abrupt("return");case 8:t.next=2;break;case 10:e.close();case 11:case"end":return t.stop()}},t)}))).apply(this,arguments)}}},s9VO:function(t,e,n){"use strict";function r(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var u=t.apply(e,n);function a(t){r(u,i,o,a,c,"next",t)}function c(t){r(u,i,o,a,c,"throw",t)}a(void 0)})}}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(n,!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var c=n("fIDe"),s=n("7DnX");e.toDOMStream=function(t,e){if(s.isAsyncIterable(t))return function(t,e){var n,r,o,a=null,s=e&&"bytes"===e.type||!1,f=e&&e.highWaterMark||Math.pow(2,24);return new ReadableStream(u({},e,{start:(o=i(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(n,a||(a=t[Symbol.asyncIterator]()));case 2:case"end":return e.stop()}},e)})),function(t){return o.apply(this,arguments)}),pull:(r=i(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=5;break}return t.next=3,l(e,a);case 3:t.next=6;break;case 5:e.close();case 6:case"end":return t.stop()}},t)})),function(t){return r.apply(this,arguments)}),cancel:(n=i(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t1=a,!t.t1){t.next=8;break}if(t.t2=a.return,!t.t2){t.next=7;break}return t.next=6,a.return();case 6:t.t2=t.sent;case 7:t.t1=t.t2;case 8:if(t.t0=t.t1,t.t0){t.next=11;break}t.t0=!0;case 11:if(t.t3=t.t0,!t.t3){t.next=14;break}a=null;case 14:case"end":return t.stop()}},t)})),function(){return n.apply(this,arguments)})}),u({highWaterMark:s?f:void 0},e));function l(t,e){return y.apply(this,arguments)}function y(){return(y=i(regeneratorRuntime.mark(function t(e,n){var r,i,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i=null,o=e.desiredSize||null;case 2:return t.next=4,n.next(s?o:null);case 4:if((i=t.sent).done){t.next=11;break}if(ArrayBuffer.isView(i.value)&&(r=c.toUint8Array(i.value))&&(null!=o&&s&&(o=o-r.byteLength+1),i.value=r),e.enqueue(i.value),!(null!=o&&--o<=0)){t.next=9;break}return t.abrupt("return");case 9:t.next=2;break;case 11:e.close();case 12:case"end":return t.stop()}},t)}))).apply(this,arguments)}}(t,e);if(s.isIterable(t))return function(t,e){var n=null,r=e&&"bytes"===e.type||!1,i=e&&e.highWaterMark||Math.pow(2,24);return new ReadableStream(u({},e,{start:function(e){o(e,n||(n=t[Symbol.iterator]()))},pull:function(t){n?o(t,n):t.close()},cancel:function(){n&&n.return&&n.return(),n=null}}),u({highWaterMark:r?i:void 0},e));function o(t,e){for(var n,i=null,o=t.desiredSize||null;!(i=e.next(r?o:null)).done;)if(ArrayBuffer.isView(i.value)&&(n=c.toUint8Array(i.value))&&(null!=o&&r&&(o=o-n.byteLength+1),i.value=n),t.enqueue(i.value),null!=o&&--o<=0)return;t.close()}}(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}},sIVg:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n("qF1w"),f=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,s.BaseVector),e}();e.TimestampVector=f;var l=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimestampSecondVector=l;var y=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimestampMillisecondVector=y;var p=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimestampMicrosecondVector=p;var h=function(t){function e(){return i(this,e),o(this,u(e).apply(this,arguments))}return a(e,f),e}();e.TimestampNanosecondVector=h},"sk+S":function(t,e,n){"use strict";function r(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var u=t.apply(e,n);function a(t){r(u,i,o,a,c,"next",t)}function c(t){r(u,i,o,a,c,"throw",t)}a(void 0)})}}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,n){return(u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&y(i,n.prototype),i}).apply(null,arguments)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function c(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}Object.defineProperty(e,"__esModule",{value:!0});var h=n("Pp57"),d=n("1vD8"),v=n("vSKt"),b=n("ZxDB"),m=n("LF0+"),g=n("uCoJ"),w=n("7DnX"),_=n("vntC"),k=n("Y/6b"),O=n("ffPt"),S=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=null,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];i[0]instanceof d.Schema&&(n=i.shift());var u=g.selectArgs(v.RecordBatch,i);if(!n&&!(n=u[0]&&u[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");return u[0]||(u[0]=new v._InternalEmptyPlaceholderRecordBatch(n)),(t=f(this,l(e).call(this,new m.Struct(n.fields),u)))._schema=n,t._chunks=u,t}var n,r,S;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(e,O.Chunked),n=e,r=[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._chunks;return new e(this._schema,t)}},{key:"getColumn",value:function(t){return this.getColumnAt(this.getColumnIndex(t))}},{key:"getColumnAt",value:function(t){return this.getChildAt(t)}},{key:"getColumnIndex",value:function(t){return this._schema.fields.findIndex(function(e){return e.name===t})}},{key:"getChildAt",value:function(t){if(t<0||t>=this.numChildren)return null;var e,n,r=this._schema.fields,i=this._children||(this._children=[]);if(n=i[t])return n;if(e=r[t]){var o=this._chunks.map(function(e){return e.getChildAt(t)}).filter(function(t){return null!=t});if(o.length>0)return i[t]=new h.Column(e,o)}return null}},{key:"serialize",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?_.RecordBatchStreamWriter:_.RecordBatchFileWriter).writeAll(this).toUint8Array(!0)}},{key:"count",value:function(){return this._length}},{key:"select",value:function(){for(var t=this._schema.fields.reduce(function(t,e,n){return t.set(e.name,n)},new Map),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.selectAt.apply(this,c(n.map(function(e){return t.get(e)}).filter(function(t){return t>-1})))}},{key:"selectAt",value:function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=(t=this._schema).selectAt.apply(t,r);return new e(o,this._chunks.map(function(t){var e=t.length,n=t.data.childData;return new v.RecordBatch(o,e,r.map(function(t){return n[t]}).filter(Boolean))}))}},{key:"assign",value:function(t){var n=this,r=this._schema.fields,i=t.schema.fields.reduce(function(t,e,n){var i=a(t,2),o=i[0],u=i[1],c=r.findIndex(function(t){return t.name===e.name});return~c?u[c]=n:o.push(n),t},[[],[]]),o=a(i,2),s=o[0],f=o[1],l=this._schema.assign(t.schema),y=[].concat(c(r.map(function(e,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f[r];return void 0===o?n.getColumnAt(r):t.getColumnAt(o)})),c(s.map(function(e){return t.getColumnAt(e)}))).filter(Boolean);return u(e,c(k.distributeVectorsIntoRecordBatches(l,y)))}},{key:"schema",get:function(){return this._schema}},{key:"length",get:function(){return this._length}},{key:"chunks",get:function(){return this._chunks}},{key:"numCols",get:function(){return this._numChildren}}],S=[{key:"empty",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:new d.Schema([]),[])}},{key:"from",value:function(t){if(!t)return e.empty();if("object"===o(t)){var n=w.isIterable(t.values)?T(t):w.isAsyncIterable(t.values)?B(t):null;if(null!==n)return n}var r,u=b.RecordBatchReader.from(t);return w.isPromise(u)?i(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,u;case 3:return t.t1=t.sent,t.next=6,t.t0.from.call(t.t0,t.t1);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}},t)}))():u.isSync()&&(u=u.open())?u.schema?new e(u.schema,c(u)):e.empty():(r=i(regeneratorRuntime.mark(function t(n){var r,i,o,u,a,c,s,f,l,y;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n;case 2:if(r=t.sent,i=r.schema,o=[],!i){t.next=40;break}u=!0,a=!1,t.prev=8,s=p(r);case 10:return t.next=12,s.next();case 12:return f=t.sent,u=f.done,t.next=16,f.value;case 16:if(l=t.sent,u){t.next=23;break}y=l,o.push(y);case 20:u=!0,t.next=10;break;case 23:t.next=29;break;case 25:t.prev=25,t.t0=t.catch(8),a=!0,c=t.t0;case 29:if(t.prev=29,t.prev=30,u||null==s.return){t.next=34;break}return t.next=34,s.return();case 34:if(t.prev=34,!a){t.next=37;break}throw c;case 37:return t.finish(34);case 38:return t.finish(29);case 39:return t.abrupt("return",new e(i,o));case 40:return t.abrupt("return",e.empty());case 41:case"end":return t.stop()}},t,null,[[8,25,29,39],[30,,34,38]])})),function(t){return r.apply(this,arguments)})(u.open())}},{key:"fromAsync",value:function(){var t=i(regeneratorRuntime.mark(function t(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.from(n);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},{key:"fromStruct",value:function(t){return e.new(t.data.childData,t.type.children)}},{key:"new",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(e,c(k.distributeColumnsIntoRecordBatches(g.selectColumnArgs(n))))}}],r&&s(n.prototype,r),S&&s(n,S),e}();function T(t){return t.type instanceof m.Struct?S.fromStruct(O.StructVector.from(t)):null}function B(t){return t.type instanceof m.Struct?O.StructVector.from(t).then(function(t){return S.fromStruct(t)}):null}e.Table=S},uCoJ:function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(e,"__esModule",{value:!0});var i=n("J0lL"),o=n("1vD8"),u=n("Pp57"),a=n("v/3b"),c=n("LF0+"),s=n("PNVg"),f=Array.isArray;function l(t,e,n,r){for(var i,o=r,u=-1,a=e.length;++u<a;)f(i=e[u])?o=l(t,i,n,o).length:i instanceof t&&(n[o++]=i);return n}e.selectArgs=function(t,e){return l(t,e,[],0)},e.selectColumnArgs=function(t){var e=r(p(t,[[],[]]),2),n=e[0];return e[1].map(function(t,e){return t instanceof u.Column?u.Column.new(t.field.clone(n[e]),t):t instanceof a.Vector?u.Column.new(n[e],t):u.Column.new(n[e],[])})},e.selectFieldArgs=function(t){return p(t,[[],[]])},e.selectChunkArgs=function(t,e){return function t(e,n,r,i){var o,u=i;var a=-1,c=n.length;for(;++a<c;)f(o=n[a])?u=t(e,o,r,u).length:o instanceof s.Chunked?u=t(e,o.chunks,r,u).length:o instanceof e&&(r[u++]=o);return r}(t,e,[],0)},e.selectVectorChildrenArgs=function(t,e){return function t(e,n,r,i){var o,u=i;var c=-1,s=n.length;for(;++c<s;)f(o=n[c])?u=t(e,o,r,u).length:o instanceof e?u=l(a.Vector,o.schema.fields.map(function(t,e){return o.getChildAt(e)}),r,u).length:o instanceof a.Vector&&(r[u++]=o);return r}(t,e,[],0)},e.selectColumnChildrenArgs=function(t,e){return function t(e,n,r,i){var o,a=i;var c=-1,s=n.length;for(;++c<s;)f(o=n[c])?a=t(e,o,r,a).length:o instanceof e?a=l(u.Column,o.schema.fields.map(function(t,e){return u.Column.new(t,o.getChildAt(e))}),r,a).length:o instanceof u.Column&&(r[a++]=o);return r}(t,e,[],0)};var y=function(t,e,n){var i=r(e,2),o=i[0],u=i[1];return t[0][n]=o,t[1][n]=u,t};function p(t,e){var n,s;switch(s=t.length){case 0:return e;case 1:if(n=e[0],!t[0])return e;if(f(t[0]))return p(t[0],e);if(!(t[0]instanceof i.Data||t[0]instanceof a.Vector||t[0]instanceof c.DataType)){var l=r(Object.entries(t[0]).reduce(y,e),2);n=l[0],t=l[1]}break;default:f(n=t[s-1])?t=f(t[0])?t[0]:t.slice(0,s-1):(t=f(t[0])?t[0]:t,n=[])}for(var h,d,v=-1,b=-1,m=-1,g=t.length,w=r(e,2),_=w[0],k=w[1];++m<g;)if((d=t[m])instanceof u.Column&&(k[++b]=d))_[++v]=d.field.clone(n[m],d.type,!0);else{var O=n[m];h=void 0===O?m:O,d instanceof c.DataType&&(k[++b]=d)?_[++v]=o.Field.new(h,d,!0):d&&d.type&&(k[++b]=d)&&(d instanceof i.Data&&(k[b]=d=a.Vector.new(d)),_[++v]=o.Field.new(h,d.type,!0))}return e}},uD2Z:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("mNq2"),i=n("7DnX");e.createIsValidFunction=function(t){if(!t||t.length<=0)return function(t){return!0};var e="",n=t.filter(function(t){return t==t});return n.length>0&&(e="\n switch (x) {".concat(n.map(function(t){return"\n case ".concat(function(t){return"bigint"!=typeof t?r.valueToString(t):i.BigIntAvailable?"".concat(r.valueToString(t),"n"):'"'.concat(r.valueToString(t),'"')}(t),":")}).join(""),"\n return false;\n }")),t.length!==n.length&&(e="if (x !== x) return false;\n".concat(e)),new Function("x","".concat(e,"\nreturn true;"))}},uaPe:function(t,e,n){"use strict";function r(t,e,n){return e<=t&&t<=n}function i(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}var o=-1;function u(t){this.tokens=[].slice.call(t)}u.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():o},prepend:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.push(e.shift());else this.tokens.push(t)}};var a=-1;function c(t,e){if(t)throw TypeError("Decoder error");return e||65533}var s="utf-8";function f(t,e){if(!(this instanceof f))return new f(t,e);if((t=void 0!==t?String(t).toLowerCase():s)!==s)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e.fatal),this._ignoreBOM=Boolean(e.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function l(t,e){if(!(this instanceof l))return new l(t,e);if((t=void 0!==t?String(t).toLowerCase():s)!==s)throw new Error("Encoding not supported. Only utf-8 is supported");e=i(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function y(t){var e=t.fatal,n=0,i=0,u=0,s=128,f=191;this.handler=function(t,l){if(l===o&&0!==u)return u=0,c(e);if(l===o)return a;if(0===u){if(r(l,0,127))return l;if(r(l,194,223))u=1,n=l-192;else if(r(l,224,239))224===l&&(s=160),237===l&&(f=159),u=2,n=l-224;else{if(!r(l,240,244))return c(e);240===l&&(s=144),244===l&&(f=143),u=3,n=l-240}return n<<=6*u,null}if(!r(l,s,f))return n=u=i=0,s=128,f=191,t.prepend(l),c(e);if(s=128,f=191,n+=l-128<<6*(u-(i+=1)),i!==u)return null;var y=n;return n=u=i=0,y}}function p(t){t.fatal;this.handler=function(t,e){if(e===o)return a;if(r(e,0,127))return e;var n,i;r(e,128,2047)?(n=1,i=192):r(e,2048,65535)?(n=2,i=224):r(e,65536,1114111)&&(n=3,i=240);for(var u=[(e>>6*n)+i];n>0;){var c=e>>6*(n-1);u.push(128|63&c),n-=1}return u}}f.prototype={decode:function(t,e){var n;n="object"==typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"==typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=i(e),this._streaming||(this._decoder=new y({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var r,o=new u(n),c=[];!o.endOfStream()&&(r=this._decoder.handler(o,o.read()))!==a;)null!==r&&(Array.isArray(r)?c.push.apply(c,r):c.push(r));if(!this._streaming){do{if((r=this._decoder.handler(o,o.read()))===a)break;null!==r&&(Array.isArray(r)?c.push.apply(c,r):c.push(r))}while(!o.endOfStream());this._decoder=null}return c.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===c[0]?(this._BOMseen=!0,c.shift()):this._BOMseen=!0)),function(t){for(var e="",n=0;n<t.length;++n){var r=t[n];r<=65535?e+=String.fromCharCode(r):(r-=65536,e+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return e}(c)}},l.prototype={encode:function(t,e){t=t?String(t):"",e=i(e),this._streaming||(this._encoder=new p(this._options)),this._streaming=Boolean(e.stream);for(var n,r=[],o=new u(function(t){for(var e=String(t),n=e.length,r=0,i=[];r<n;){var o=e.charCodeAt(r);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var u=t.charCodeAt(r+1);if(56320<=u&&u<=57343){var a=1023&o,c=1023&u;i.push(65536+(a<<10)+c),r+=1}else i.push(65533)}r+=1}return i}(t));!o.endOfStream()&&(n=this._encoder.handler(o,o.read()))!==a;)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;(n=this._encoder.handler(o,o.read()))!==a;)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}},e.TextEncoder=l,e.TextDecoder=f},ucDT:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n("J0lL"),y=n("v/3b"),p=n("qF1w"),h=n("ffPt"),d=n("LF0+"),v=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,p.BaseVector),u(e,null,[{key:"from",value:function(t){var e=k(this);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){var n=_(t.constructor)||e;if(null===e&&(e=n),e&&e===n){var r=new e,i=t.byteLength/r.ArrayType.BYTES_PER_ELEMENT;if(!w(e,t.constructor))return y.Vector.new(l.Data.Float(r,0,i,0,null,t))}}if(e)return h.vectorFromValuesWithType(function(){return new e},t);if(t instanceof DataView||t instanceof ArrayBuffer)throw new TypeError("Cannot infer float type from instance of ".concat(t.constructor.name));throw new TypeError("Unrecognized FloatVector input")}}]),e}();e.FloatVector=v;var b=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,v),u(e,[{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toFloat64Array",value:function(){return new Float64Array(this)}}]),e}();e.Float16Vector=b;var m=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,v),e}();e.Float32Vector=m;var g=function(t){function e(){return i(this,e),a(this,c(e).apply(this,arguments))}return s(e,v),e}();e.Float64Vector=g;var w=function(t,e){return t===d.Float16&&e!==Uint16Array},_=function(t){switch(t){case Uint16Array:return d.Float16;case Float32Array:return d.Float32;case Float64Array:return d.Float64;default:return null}},k=function(t){switch(t){case b:return d.Float16;case m:return d.Float32;case g:return d.Float64;default:return null}}},ufsD:function(t,e,n){"use strict";function r(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var u=t.apply(e,n);function a(t){r(u,i,o,a,c,"next",t)}function c(t){r(u,i,o,a,c,"throw",t)}a(void 0)})}}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var p=n("Thl1"),h=n("fIDe"),d=function(t){function e(t,n){var r;return u(this,e),(r=s(this,f(e).call(this))).position=0,r.buffer=h.toUint8Array(t),r.size=void 0===n?r.buffer.byteLength:n,r}return l(e,p.ByteStream),c(e,[{key:"readInt32",value:function(t){var e=this.readAt(t,4),n=e.buffer,r=e.byteOffset;return new DataView(n,r).getInt32(0,!0)}},{key:"seek",value:function(t){return this.position=Math.min(t,this.size),t<this.size}},{key:"read",value:function(t){var e=this.buffer,n=this.size,r=this.position;return e&&r<n?("number"!=typeof t&&(t=1/0),this.position=Math.min(n,r+Math.min(n-r,t)),e.subarray(r,this.position)):null}},{key:"readAt",value:function(t,e){var n=this.buffer,r=Math.min(this.size,t+e);return n?n.subarray(t,r):new Uint8Array(e)}},{key:"close",value:function(){this.buffer&&(this.buffer=null)}},{key:"throw",value:function(t){return this.close(),{done:!0,value:t}}},{key:"return",value:function(t){return this.close(),{done:!0,value:t}}}]),e}();e.RandomAccessFile=d;var v=function(t){function e(t,n){var r;return u(this,e),(r=s(this,f(e).call(this))).position=0,r._handle=t,"number"==typeof n?r.size=n:r._pending=i(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.stat();case 2:r.size=e.sent.size,delete r._pending;case 4:case"end":return e.stop()}},e)}))(),r}return l(e,p.AsyncByteStream),c(e,[{key:"readInt32",value:function(){var t=i(regeneratorRuntime.mark(function t(e){var n,r,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readAt(e,4);case 2:return n=t.sent,r=n.buffer,i=n.byteOffset,t.abrupt("return",new DataView(r,i).getInt32(0,!0));case 6:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"seek",value:function(){var t=i(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._pending,!t.t0){t.next=4;break}return t.next=4,this._pending;case 4:return this.position=Math.min(e,this.size),t.abrupt("return",e<this.size);case 6:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"read",value:function(){var t=i(regeneratorRuntime.mark(function t(e){var n,r,i,o,u,a,c,s,f;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._pending,!t.t0){t.next=4;break}return t.next=4,this._pending;case 4:if(n=this._handle,r=this.size,i=this.position,!(n&&i<r)){t.next=18;break}"number"!=typeof e&&(e=1/0),o=i,u=0,a=0,c=Math.min(r,o+Math.min(r-o,e)),s=new Uint8Array(Math.max(0,(this.position=c)-o));case 10:if(!((o+=a)<c&&(u+=a)<s.byteLength)){t.next=17;break}return t.next=13,n.read(s,u,s.byteLength-u,o);case 13:f=t.sent,a=f.bytesRead,t.next=10;break;case 17:return t.abrupt("return",s);case 18:return t.abrupt("return",null);case 19:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"readAt",value:function(){var t=i(regeneratorRuntime.mark(function t(e,n){var r,i,o,u;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._pending,!t.t0){t.next=4;break}return t.next=4,this._pending;case 4:if(r=this._handle,i=this.size,!(r&&e+n<i)){t.next=11;break}return o=Math.min(i,e+n),u=new Uint8Array(o-e),t.next=10,r.read(u,0,n,e);case 10:return t.abrupt("return",t.sent.buffer);case 11:return t.abrupt("return",new Uint8Array(n));case 12:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}()},{key:"close",value:function(){var t=i(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this._handle,this._handle=null,t.t0=e,!t.t0){t.next=6;break}return t.next=6,e.close();case 6:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"throw",value:function(){var t=i(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.close();case 2:return t.abrupt("return",{done:!0,value:e});case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=i(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.close();case 2:return t.abrupt("return",{done:!0,value:e});case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}]),e}();e.AsyncRandomAccessFile=v},"v/3b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)};e.AbstractVector=r,e.Vector=r},vDpf:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("v/3b"),s=n("qF1w"),f=n("LF0+"),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}var n,r,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,s.BaseVector),n=e,(r=[{key:"asUtf8",value:function(){return c.Vector.new(this.data.clone(new f.Utf8))}}])&&i(n.prototype,r),l&&i(n,l),e}();e.BinaryVector=l},vSKt:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&p(i,n.prototype),i}).apply(null,arguments)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var h=n("J0lL"),d=n("sk+S"),v=n("v/3b"),b=n("HXf3"),m=n("1vD8"),g=n("7DnX"),w=n("PNVg"),_=n("uCoJ"),k=n("LF0+"),O=n("Y/6b"),S=n("ffPt"),T=function(t){function e(){var t,n;a(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var u,c=i[0];if(i[1]instanceof h.Data)n=i[1],u=i[2];else{var s=c.fields,y=i[1],p=i[2];n=h.Data.Struct(new k.Struct(s),0,y,0,null,p)}return(t=f(this,l(e).call(this,n,u)))._schema=c,t}return y(e,S.StructVector),s(e,[{key:"clone",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._children;return new e(this._schema,t,n)}},{key:"concat",value:function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=this._schema,u=(t=w.Chunked).flatten.apply(t,[this].concat(r));return new d.Table(o,u.map(function(t){var n=t.data;return new e(o,n)}))}},{key:"select",value:function(){for(var t=this._schema.fields.reduce(function(t,e,n){return t.set(e.name,n)},new Map),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.selectAt.apply(this,u(n.map(function(e){return t.get(e)}).filter(function(t){return t>-1})))}},{key:"selectAt",value:function(){for(var t,n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var u=(t=this._schema).selectAt.apply(t,i),a=i.map(function(t){return n.data.childData[t]}).filter(Boolean);return new e(u,this.length,a)}},{key:"schema",get:function(){return this._schema}},{key:"numCols",get:function(){return this._schema.fields.length}},{key:"dictionaries",get:function(){return this._dictionaries||(this._dictionaries=I.collect(this))}}],[{key:"from",value:function(t){return g.isIterable(t.values),d.Table.from(t)}},{key:"new",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=o(_.selectFieldArgs(n),2),c=a[0],s=a[1].filter(function(t){return t instanceof v.Vector});return i(e,u(O.ensureSameLengthData(new m.Schema(c),s.map(function(t){return t.data}))))}}]),e}();e.RecordBatch=T;var B=function(t){function e(t){return a(this,e),f(this,l(e).call(this,t,0,t.fields.map(function(t){return h.Data.new(t.type,0,0,0)})))}return y(e,T),e}();e._InternalEmptyPlaceholderRecordBatch=B;var I=function(t){function e(){var t;return a(this,e),(t=f(this,l(e).apply(this,arguments))).dictionaries=new Map,t}return y(e,b.Visitor),s(e,[{key:"visit",value:function(t,e){var n=this;return k.DataType.isDictionary(e)?this.visitDictionary(t,e):(t.childData.forEach(function(t,r){return n.visit(t,e.children[r].type)}),this)}},{key:"visitDictionary",value:function(t,e){var n=t.dictionary;return n&&n.length>0&&this.dictionaries.set(e.id,n),this}}],[{key:"collect",value:function(t){return(new e).visit(t.data,new k.Struct(t.schema.fields)).dictionaries}}]),e}()},vntC:function(t,e,n){"use strict";function r(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function i(t,e,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")}Object.defineProperty(e,"__esModule",{value:!0});var d=n("sk+S"),v=n("zPAT"),b=n("Pp57"),m=n("LF0+"),g=n("1vD8"),w=n("O0XO"),_=n("O0XO"),k=n("BMGW"),O=n("xW78"),S=n("Thl1"),T=n("z4aR"),B=n("cRrI"),I=n("77gQ"),A=n("fIDe"),D=n("vSKt"),x=n("1fhD"),j=n("7DnX"),V=function(t){function e(t){var n;return a(this,e),(n=f(this,l(e).call(this)))._position=0,n._started=!1,n._sink=new S.AsyncByteQueue,n._schema=null,n._dictionaryBlocks=[],n._recordBatchBlocks=[],n._dictionaryDeltaOffsets=new Map,j.isObject(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),n._autoDestroy="boolean"!=typeof t.autoDestroy||t.autoDestroy,n._writeLegacyIpcFormat="boolean"==typeof t.writeLegacyIpcFormat&&t.writeLegacyIpcFormat,n}return y(e,x.ReadableInterop),s(e,[{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._sink.toString(t)}},{key:"toUint8Array",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._sink.toUint8Array(t)}},{key:"writeAll",value:function(t){var e=this;return j.isPromise(t)?t.then(function(t){return e.writeAll(t)}):j.isAsyncIterable(t)?R(this,t):U(this,t)}},{key:Symbol.asyncIterator,value:function(){return this._sink[Symbol.asyncIterator]()}},{key:"toDOMStream",value:function(t){return this._sink.toDOMStream(t)}},{key:"toNodeStream",value:function(t){return this._sink.toNodeStream(t)}},{key:"close",value:function(){return this.reset()._sink.close()}},{key:"abort",value:function(t){return this.reset()._sink.abort(t)}},{key:"finish",value:function(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._sink,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t===this._sink||t instanceof S.AsyncByteQueue?this._sink=t:(this._sink=new S.AsyncByteQueue,t&&j.isWritableDOMStream(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&j.isWritableNodeStream(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,e&&e.compareTo(this._schema)||(null===e?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}},{key:"write",value:function(t){var e=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==t)return this.finish()&&void 0;if(t instanceof d.Table&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof D.RecordBatch&&!(e=t.schema))return this.finish()&&void 0;if(e&&!e.compareTo(this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof D.RecordBatch?t instanceof D._InternalEmptyPlaceholderRecordBatch||this._writeRecordBatch(t):t instanceof d.Table?this.writeAll(t.chunks):j.isIterable(t)&&this.writeAll(t)}},{key:"_writeMessage",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:8)-1,n=w.Message.encode(t),r=n.byteLength,i=this._writeLegacyIpcFormat?4:8,o=r+i+e&~e,u=o-r-i;return t.headerType===O.MessageHeader.RecordBatch?this._recordBatchBlocks.push(new k.FileBlock(o,t.bodyLength,this._position)):t.headerType===O.MessageHeader.DictionaryBatch&&this._dictionaryBlocks.push(new k.FileBlock(o,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(o-i)),r>0&&this._write(n),this._writePadding(u)}},{key:"_write",value:function(t){if(this._started){var e=A.toUint8Array(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}},{key:"_writeSchema",value:function(t){return this._writeMessage(w.Message.from(t))}},{key:"_writeFooter",value:function(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}},{key:"_writeMagic",value:function(){return this._write(v.MAGIC)}},{key:"_writePadding",value:function(t){return t>0?this._write(new Uint8Array(t)):this}},{key:"_writeRecordBatch",value:function(t){var e=T.VectorAssembler.assemble(t),n=e.byteLength,r=e.nodes,i=e.bufferRegions,o=e.buffers,u=new _.RecordBatch(t.length,r,i),a=w.Message.from(u,n);return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(o)}},{key:"_writeDictionaryBatch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._dictionaryDeltaOffsets.set(e,t.length+(this._dictionaryDeltaOffsets.get(e)||0));var r=T.VectorAssembler.assemble(t),i=r.byteLength,o=r.nodes,u=r.bufferRegions,a=r.buffers,c=new _.RecordBatch(t.length,o,u),s=new _.DictionaryBatch(c,e,n),f=w.Message.from(s,i);return this._writeMessage(f)._writeBodyBuffers(a)}},{key:"_writeBodyBuffers",value:function(t){for(var e,n,r,i=-1,o=t.length;++i<o;)(e=t[i])&&(n=e.byteLength)>0&&(this._write(e),(r=(n+7&-8)-n)>0&&this._writePadding(r));return this}},{key:"_writeDictionaries",value:function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=t.dictionaries[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=u(i.value,2),c=a[0],s=a[1],f=this._dictionaryDeltaOffsets.get(c)||0;if(0===f||(s=s.slice(f)).length>0){var l="chunks"in s?s.chunks:[s],y=!0,p=!1,h=void 0;try{for(var d,v=l[Symbol.iterator]();!(y=(d=v.next()).done);y=!0){var b=d.value;this._writeDictionaryBatch(b,c,f>0),f+=b.length}}catch(t){p=!0,h=t}finally{try{y||null==v.return||v.return()}finally{if(p)throw h}}}}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}return this}},{key:"closed",get:function(){return this._sink.closed}}],[{key:"throughNode",value:function(t){throw new Error('"throughNode" not available in this environment')}},{key:"throughDOM",value:function(t,e){throw new Error('"throughDOM" not available in this environment')}}]),e}();e.RecordBatchWriter=V;var F=function(t){function e(){return a(this,e),f(this,l(e).apply(this,arguments))}return y(e,V),s(e,null,[{key:"writeAll",value:function(t,n){var r=new e(n);return j.isPromise(t)?t.then(function(t){return r.writeAll(t)}):j.isAsyncIterable(t)?R(r,t):U(r,t)}}]),e}();e.RecordBatchStreamWriter=F;var M=function(t){function e(){var t;return a(this,e),(t=f(this,l(e).call(this)))._autoDestroy=!0,t}return y(e,V),s(e,[{key:"_writeSchema",value:function(t){return this._writeMagic()._writePadding(2)}},{key:"_writeFooter",value:function(t){var n=k.Footer.encode(new k.Footer(t,O.MetadataVersion.V4,this._recordBatchBlocks,this._dictionaryBlocks));return i(l(e.prototype),"_writeFooter",this).call(this,t)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}],[{key:"writeAll",value:function(t){var n=new e;return j.isPromise(t)?t.then(function(t){return n.writeAll(t)}):j.isAsyncIterable(t)?R(n,t):U(n,t)}}]),e}();e.RecordBatchFileWriter=M;var P=function(t){function e(){var t;return a(this,e),(t=f(this,l(e).call(this)))._autoDestroy=!0,t._recordBatches=[],t._dictionaries=[],t}return y(e,V),s(e,[{key:"_writeMessage",value:function(){return this}},{key:"_writeFooter",value:function(t){return this}},{key:"_writeSchema",value:function(t){return this._write('{\n "schema": '.concat(JSON.stringify({fields:t.fields.map(L)},null,2)))}},{key:"_writeDictionaries",value:function(t){return t.dictionaries.size>0&&this._dictionaries.push(t),this}},{key:"_writeDictionaryBatch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._dictionaryDeltaOffsets.set(e,t.length+(this._dictionaryDeltaOffsets.get(e)||0)),this._write(0===this._dictionaryBlocks.length?" ":",\n "),this._write("".concat(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new g.Field("".concat(e),t.type,t.nullCount>0),i=I.JSONVectorAssembler.assemble(new b.Column(r,[t]));return JSON.stringify({id:e,isDelta:n,data:{count:t.length,columns:i}},null,2)}(t,e,n))),this._dictionaryBlocks.push(new k.FileBlock(0,0,0)),this}},{key:"_writeRecordBatch",value:function(t){return this._writeDictionaries(t),this._recordBatches.push(t),this}},{key:"close",value:function(){if(this._dictionaries.length>0){this._write(',\n "dictionaries": [\n');var t=!0,n=!1,r=void 0;try{for(var o,u=this._dictionaries[Symbol.iterator]();!(t=(o=u.next()).done);t=!0){var a=o.value;i(l(e.prototype),"_writeDictionaries",this).call(this,a)}}catch(t){n=!0,r=t}finally{try{t||null==u.return||u.return()}finally{if(n)throw r}}this._write("\n ]")}if(this._recordBatches.length>0){for(var c=-1,s=this._recordBatches.length;++c<s;)this._write(0===c?',\n "batches": [\n ':",\n "),this._write("".concat((f=this._recordBatches[c],JSON.stringify({count:f.length,columns:I.JSONVectorAssembler.assemble(f)},null,2)))),this._recordBatchBlocks.push(new k.FileBlock(0,0,0));this._write("\n ]")}var f;return this._schema&&this._write("\n}"),this._dictionaries=[],this._recordBatches=[],i(l(e.prototype),"close",this).call(this)}}],[{key:"writeAll",value:function(t){return(new e).writeAll(t)}}]),e}();function U(t,e){var n=e;e instanceof d.Table&&(n=e.chunks,t.reset(void 0,e.schema));var r=!0,i=!1,o=void 0;try{for(var u,a=n[Symbol.iterator]();!(r=(u=a.next()).done);r=!0){var c=u.value;t.write(c)}}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return t.finish()}function R(t,e){return E.apply(this,arguments)}function E(){var t;return t=regeneratorRuntime.mark(function t(e,n){var r,i,o,u,a,c,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=!0,i=!1,t.prev=2,u=h(n);case 4:return t.next=6,u.next();case 6:return a=t.sent,r=a.done,t.next=10,a.value;case 10:if(c=t.sent,r){t.next=17;break}s=c,e.write(s);case 14:r=!0,t.next=4;break;case 17:t.next=23;break;case 19:t.prev=19,t.t0=t.catch(2),i=!0,o=t.t0;case 23:if(t.prev=23,t.prev=24,r||null==u.return){t.next=28;break}return t.next=28,u.return();case 28:if(t.prev=28,!i){t.next=31;break}throw o;case 31:return t.finish(28);case 32:return t.finish(23);case 33:return t.abrupt("return",e.finish());case 34:case"end":return t.stop()}},t,null,[[2,19,23,33],[24,,28,32]])}),(E=function(){var e=this,n=arguments;return new Promise(function(i,o){var u=t.apply(e,n);function a(t){r(u,i,o,a,c,"next",t)}function c(t){r(u,i,o,a,c,"throw",t)}a(void 0)})}).apply(this,arguments)}function L(t){var e=t.name,n=t.type,r=t.nullable,i=new B.JSONTypeAssembler;return{name:e,nullable:r,type:i.visit(n),children:(n.children||[]).map(L),dictionary:m.DataType.isDictionary(n)?{id:n.id,isOrdered:n.isOrdered,indexType:i.visit(n.indices)}:void 0}}e.RecordBatchJSONWriter=P},xW78:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("4jY8"),i=n("PUEe");e.ArrowType=r.org.apache.arrow.flatbuf.Type,e.DateUnit=r.org.apache.arrow.flatbuf.DateUnit,e.TimeUnit=r.org.apache.arrow.flatbuf.TimeUnit,e.Precision=r.org.apache.arrow.flatbuf.Precision,e.UnionMode=r.org.apache.arrow.flatbuf.UnionMode,e.IntervalUnit=r.org.apache.arrow.flatbuf.IntervalUnit,e.MessageHeader=i.org.apache.arrow.flatbuf.MessageHeader,e.MetadataVersion=r.org.apache.arrow.flatbuf.MetadataVersion,function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth"}(e.Type||(e.Type={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(e.BufferType||(e.BufferType={}))},"xo/C":function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("J0lL"),s=n("v/3b"),f=n("qF1w"),l=n("ffPt"),y=n("LF0+"),p=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=o(this,u(e).call(this,t))).indices=s.Vector.new(t.clone(n.type.indices)),n}var n,r,p;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,f.BaseVector),n=e,p=[{key:"from",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(3===e.length){var r=e[0],i=e[1],o=e[2],u=new y.Dictionary(r.type,i,null,null);return s.Vector.new(c.Data.Dictionary(u,0,o.length,0,null,o,r))}return l.vectorFromValuesWithType(function(){return e[0].type},e[0])}}],(r=[{key:"reverseLookup",value:function(t){return this.dictionary.indexOf(t)}},{key:"getKey",value:function(t){return this.indices.get(t)}},{key:"getValue",value:function(t){return this.dictionary.get(t)}},{key:"setKey",value:function(t,e){return this.indices.set(t,e)}},{key:"setValue",value:function(t,e){return this.dictionary.set(t,e)}},{key:"dictionary",get:function(){return this.data.dictionary}}])&&i(n.prototype,r),p&&i(n,p),e}();e.DictionaryVector=p,p.prototype.indices=null},xt3r:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n("qF1w"),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,o(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(e,a.BaseVector),e}();e.DecimalVector=c},ylxS:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var f=n("kE2R"),l=n("1vD8"),y=n("LF0+"),p=n("HHvO"),h=n("2kVn"),d=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=u(this,c(e).call(this,t)))._run=new f.Run,n._offsets=new p.OffsetsBufferBuilder,n}var n,r,d;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,h.VariableWidthBuilder),n=e,(r=[{key:"addChild",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new y.List(new l.Field(e,t.type,!0)),this.numChildren-1}},{key:"clear",value:function(){return this._run.clear(),a(c(e.prototype),"clear",this).call(this)}},{key:"_flushPending",value:function(t){var e,n=this._run,r=this._offsets,o=this._setValue,u=0,a=!0,c=!1,s=void 0;try{for(var f,l=t[Symbol.iterator]();!(a=(f=l.next()).done);a=!0){var y=i(f.value,2);u=y[0],void 0===(e=y[1])?r.set(u,0):(r.set(u,e.length),o(this,u,n.bind(e)))}}catch(t){c=!0,s=t}finally{try{a||null==l.return||l.return()}finally{if(c)throw s}}}}])&&o(n.prototype,r),d&&o(n,d),e}();e.ListBuilder=d},z4aR:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var f=n("HXf3"),l=n("xW78"),y=n("vSKt"),p=n("fIDe"),h=n("fCxL"),d=n("uCoJ"),v=n("O0XO"),b=n("LF0+"),m=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=u(this,c(e).call(this)))._byteLength=0,t._nodes=[],t._buffers=[],t._bufferRegions=[],t}var n,r,l;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,f.Visitor),n=e,l=[{key:"assemble",value:function(){for(var t=new e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var u=d.selectVectorChildrenArgs(y.RecordBatch,r),a=i(t.visitMany(u),1)[0];return void 0===a?t:a}}],(r=[{key:"visit",value:function(t){if(!b.DataType.isDictionary(t.type)){var n=t.data,r=t.length,i=t.nullCount;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");b.DataType.isNull(t.type)||g.call(this,i<=0?new Uint8Array(0):h.truncateBitmap(n.offset,r,n.nullBitmap)),this.nodes.push(new v.FieldNode(r,i))}return a(c(e.prototype),"visit",this).call(this,t)}},{key:"visitNull",value:function(t){return this}},{key:"visitDictionary",value:function(t){return this.visit(t.indices)}},{key:"nodes",get:function(){return this._nodes}},{key:"buffers",get:function(){return this._buffers}},{key:"byteLength",get:function(){return this._byteLength}},{key:"bufferRegions",get:function(){return this._bufferRegions}}])&&o(n.prototype,r),l&&o(n,l),e}();function g(t){var e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new v.BufferRegion(this._byteLength,e)),this._byteLength+=e,this}function w(t){return g.call(this,t.values.subarray(0,t.length*t.stride))}function _(t){var e=t.length,n=t.values,r=t.valueOffsets,i=r[0],o=r[e],u=Math.min(o-i,n.byteLength-i);return g.call(this,p.rebaseValueOffsets(-r[0],e,r)),g.call(this,n.subarray(i,i+u)),this}function k(t){var e=t.length,n=t.valueOffsets;return n&&g.call(this,p.rebaseValueOffsets(n[0],e,n)),this.visit(t.getChildAt(0))}function O(t){return this.visitMany(t.type.children.map(function(e,n){return t.getChildAt(n)}).filter(Boolean))[0]}e.VectorAssembler=m,m.prototype.visitBool=function(t){var e;return t.nullCount>=t.length?g.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?g.call(this,h.truncateBitmap(t.offset,t.length,e)):g.call(this,h.packBools(t))},m.prototype.visitInt=w,m.prototype.visitFloat=w,m.prototype.visitUtf8=_,m.prototype.visitBinary=_,m.prototype.visitFixedSizeBinary=w,m.prototype.visitDate=w,m.prototype.visitTimestamp=w,m.prototype.visitTime=w,m.prototype.visitDecimal=w,m.prototype.visitList=k,m.prototype.visitStruct=O,m.prototype.visitUnion=function(t){var e=t.type,n=t.length,r=t.typeIds,i=t.valueOffsets;if(g.call(this,r),e.mode===l.UnionMode.Sparse)return O.call(this,t);if(e.mode===l.UnionMode.Dense){if(t.offset<=0)return g.call(this,i),O.call(this,t);for(var o,u,a=r.reduce(function(t,e){return Math.max(t,e)},r[0]),c=new Int32Array(a+1),s=new Int32Array(a+1).fill(-1),f=new Int32Array(n),y=p.rebaseValueOffsets(-i[0],n,i),h=-1;++h<n;)-1===(u=s[o=r[h]])&&(u=s[o]=y[o]),f[h]=y[h]-u,++c[o];g.call(this,f);for(var d,v=-1,b=e.children.length;++v<b;)if(d=t.getChildAt(v)){var m=e.typeIds[v],w=Math.min(n,c[m]);this.visit(d.slice(s[m],w))}}return this},m.prototype.visitInterval=w,m.prototype.visitFixedSizeList=k,m.prototype.visitMap=k},zPAT:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e,n,r,i,o,u){try{var a=t[o](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function s(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function u(t){c(o,r,i,u,a,"next",t)}function a(t){c(o,r,i,u,a,"throw",t)}u(void 0)})}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var p=n("xW78"),h=n("prJ9").flatbuffers.ByteBuffer,d=n("O0XO"),v=n("7DnX"),b=n("ufsD"),m=n("fIDe"),g=n("Thl1"),w=n("1fhD"),_=function(t){return"Expected ".concat(p.MessageHeader[t]," Message in stream, but was null or length 0.")},k=function(t){return"Header pointer of flatbuffer-encoded ".concat(p.MessageHeader[t]," Message is null or length 0.")},O=function(t,e){return"Expected to read ".concat(t," metadata bytes, but only read ").concat(e,".")},S=function(t,e){return"Expected to read ".concat(t," bytes for message body, but only read ").concat(e,".")},T=function(){function t(e){f(this,t),this.source=e instanceof g.ByteStream?e:new g.ByteStream(e)}return y(t,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var t;return(t=this.readMetadataLength()).done?w.ITERATOR_DONE:-1===t.value&&(t=this.readMetadataLength()).done?w.ITERATOR_DONE:(t=this.readMetadata(t.value)).done?w.ITERATOR_DONE:t}},{key:"throw",value:function(t){return this.source.throw(t)}},{key:"return",value:function(t){return this.source.return(t)}},{key:"readMessage",value:function(t){var e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(_(t));return e.value}},{key:"readMessageBody",value:function(t){if(t<=0)return new Uint8Array(0);var e=m.toUint8Array(this.source.read(t));if(e.byteLength<t)throw new Error(S(t,e.byteLength));return e.byteOffset%8==0&&e.byteOffset+e.byteLength<=e.buffer.byteLength?e:e.slice()}},{key:"readSchema",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=p.MessageHeader.Schema,n=this.readMessage(e),r=n&&n.header();if(t&&!r)throw new Error(k(e));return r}},{key:"readMetadataLength",value:function(){var t=this.source.read(e.PADDING),n=t&&new h(t),r=n&&n.readInt32(0)||0;return{done:0===r,value:r}}},{key:"readMetadata",value:function(t){var e=this.source.read(t);if(!e)return w.ITERATOR_DONE;if(e.byteLength<t)throw new Error(O(t,e.byteLength));return{done:!1,value:d.Message.decode(e)}}}]),t}();e.MessageReader=T;var B=function(){function t(e,n){f(this,t),this.source=e instanceof g.AsyncByteStream?e:v.isFileHandle(e)?new b.AsyncRandomAccessFile(e,n):new g.AsyncByteStream(e)}return y(t,[{key:Symbol.asyncIterator,value:function(){return this}},{key:"next",value:function(){var t=s(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.readMetadataLength();case 2:if(!(e=t.sent).done){t.next=4;break}return t.abrupt("return",w.ITERATOR_DONE);case 4:if(t.t0=-1===e.value,!t.t0){t.next=9;break}return t.next=8,this.readMetadataLength();case 8:t.t0=(e=t.sent).done;case 9:if(!t.t0){t.next=11;break}return t.abrupt("return",w.ITERATOR_DONE);case 11:return t.next=13,this.readMetadata(e.value);case 13:if(!(e=t.sent).done){t.next=15;break}return t.abrupt("return",w.ITERATOR_DONE);case 15:return t.abrupt("return",e);case 16:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"throw",value:function(){var t=s(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.source.throw(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"return",value:function(){var t=s(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.source.return(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"readMessage",value:function(){var t=s(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.next();case 2:if(!(n=t.sent).done){t.next=4;break}return t.abrupt("return",null);case 4:if(null==e||n.value.headerType===e){t.next=6;break}throw new Error(_(e));case 6:return t.abrupt("return",n.value);case 7:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"readMessageBody",value:function(){var t=s(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e<=0)){t.next=2;break}return t.abrupt("return",new Uint8Array(0));case 2:return t.t0=m,t.next=5,this.source.read(e);case 5:if(t.t1=t.sent,!((n=t.t0.toUint8Array.call(t.t0,t.t1)).byteLength<e)){t.next=9;break}throw new Error(S(e,n.byteLength));case 9:return t.abrupt("return",n.byteOffset%8==0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice());case 10:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"readSchema",value:function(){var t=s(regeneratorRuntime.mark(function t(){var e,n,r,i,o=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]&&o[0],n=p.MessageHeader.Schema,t.next=4,this.readMessage(n);case 4:if(r=t.sent,i=r&&r.header(),!e||i){t.next=8;break}throw new Error(k(n));case 8:return t.abrupt("return",i);case 9:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"readMetadataLength",value:function(){var t=s(regeneratorRuntime.mark(function t(){var n,r,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.source.read(e.PADDING);case 2:return n=t.sent,r=n&&new h(n),i=r&&r.readInt32(0)||0,t.abrupt("return",{done:0===i,value:i});case 6:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()},{key:"readMetadata",value:function(){var t=s(regeneratorRuntime.mark(function t(e){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.source.read(e);case 2:if(n=t.sent){t.next=5;break}return t.abrupt("return",w.ITERATOR_DONE);case 5:if(!(n.byteLength<e)){t.next=7;break}throw new Error(O(e,n.byteLength));case 7:return t.abrupt("return",{done:!1,value:d.Message.decode(n)});case 8:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()}]),t}();e.AsyncMessageReader=B;var I=function(t){function e(t){var n;return f(this,e),(n=o(this,u(e).call(this,new Uint8Array(0))))._schema=!1,n._body=[],n._batchIndex=0,n._dictionaryIndex=0,n._json=t instanceof w.ArrowJSON?t:new w.ArrowJSON(t),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,T),y(e,[{key:"next",value:function(){var t=this._json;if(!this._schema)return this._schema=!0,{done:!1,value:d.Message.fromJSON(t.schema,p.MessageHeader.Schema)};if(this._dictionaryIndex<t.dictionaries.length){var e=t.dictionaries[this._dictionaryIndex++];return this._body=e.data.columns,{done:!1,value:d.Message.fromJSON(e,p.MessageHeader.DictionaryBatch)}}if(this._batchIndex<t.batches.length){var n=t.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:d.Message.fromJSON(n,p.MessageHeader.RecordBatch)}}return this._body=[],w.ITERATOR_DONE}},{key:"readMessageBody",value:function(t){return function t(e){return(e||[]).reduce(function(e,n){return[].concat(i(e),i(n.VALIDITY&&[n.VALIDITY]||[]),i(n.TYPE&&[n.TYPE]||[]),i(n.OFFSET&&[n.OFFSET]||[]),i(n.DATA&&[n.DATA]||[]),i(t(n.children)))},[])}(this._body)}},{key:"readMessage",value:function(t){var e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(_(t));return e.value}},{key:"readSchema",value:function(){var t=p.MessageHeader.Schema,e=this.readMessage(t),n=e&&e.header();if(!e||!n)throw new Error(k(t));return n}}]),e}();e.JSONMessageReader=I,e.PADDING=4,e.MAGIC_STR="ARROW1",e.MAGIC=new Uint8Array(e.MAGIC_STR.length);for(var A=0;A<e.MAGIC_STR.length;A+=1)e.MAGIC[A]=e.MAGIC_STR.charCodeAt(A);e.checkForMagicArrowString=function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1,i=e.MAGIC.length;++r<i;)if(e.MAGIC[r]!==t[n+r])return!1;return!0},e.magicLength=e.MAGIC.length,e.magicAndPadding=e.magicLength+e.PADDING,e.magicX2AndPadding=2*e.magicLength+e.PADDING},zd6X:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var c=n("xW78"),s=n("HXf3"),f=n("BXqJ"),l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,u(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(e,s.Visitor),e}();function y(t){var e=t.type,n=t.length,i=t.stride;switch(e.typeId){case c.Type.Int:case c.Type.Float:case c.Type.Decimal:case c.Type.Time:case c.Type.Timestamp:return t.values.subarray(0,n*i)}return r(f.instance.visit(t))}e.ToArrayVisitor=l,l.prototype.visitNull=y,l.prototype.visitBool=y,l.prototype.visitInt=y,l.prototype.visitInt8=y,l.prototype.visitInt16=y,l.prototype.visitInt32=y,l.prototype.visitInt64=y,l.prototype.visitUint8=y,l.prototype.visitUint16=y,l.prototype.visitUint32=y,l.prototype.visitUint64=y,l.prototype.visitFloat=y,l.prototype.visitFloat16=y,l.prototype.visitFloat32=y,l.prototype.visitFloat64=y,l.prototype.visitUtf8=y,l.prototype.visitBinary=y,l.prototype.visitFixedSizeBinary=y,l.prototype.visitDate=y,l.prototype.visitDateDay=y,l.prototype.visitDateMillisecond=y,l.prototype.visitTimestamp=y,l.prototype.visitTimestampSecond=y,l.prototype.visitTimestampMillisecond=y,l.prototype.visitTimestampMicrosecond=y,l.prototype.visitTimestampNanosecond=y,l.prototype.visitTime=y,l.prototype.visitTimeSecond=y,l.prototype.visitTimeMillisecond=y,l.prototype.visitTimeMicrosecond=y,l.prototype.visitTimeNanosecond=y,l.prototype.visitDecimal=y,l.prototype.visitList=y,l.prototype.visitStruct=y,l.prototype.visitUnion=y,l.prototype.visitDenseUnion=y,l.prototype.visitSparseUnion=y,l.prototype.visitDictionary=y,l.prototype.visitInterval=y,l.prototype.visitIntervalDayTime=y,l.prototype.visitIntervalYearMonth=y,l.prototype.visitFixedSizeList=y,l.prototype.visitMap=y,e.instance=new l},zpYq:function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(t,e,n){return(i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&s(i,n.prototype),i}).apply(null,arguments)}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}Object.defineProperty(e,"__esModule",{value:!0});var p=n("xo/C"),h=function(){function t(){f(this,t)}return y(t,[{key:"eq",value:function(e){return e instanceof t||(e=new d(e)),new k(this,e)}},{key:"le",value:function(e){return e instanceof t||(e=new d(e)),new O(this,e)}},{key:"ge",value:function(e){return e instanceof t||(e=new d(e)),new S(this,e)}},{key:"lt",value:function(t){return new T(this.ge(t))}},{key:"gt",value:function(t){return new T(this.le(t))}},{key:"ne",value:function(t){return new T(this.eq(t))}}]),t}();e.Value=h;var d=function(t){function e(t){var n;return f(this,e),(n=u(this,a(e).call(this))).v=t,n}return c(e,h),e}();e.Literal=d;var v=function(t){function e(t){var n;return f(this,e),(n=u(this,a(e).call(this))).name=t,n}return c(e,h),y(e,[{key:"bind",value:function(t){if(!this.colidx){this.colidx=-1;for(var e=t.schema.fields,n=-1;++n<e.length;)if(e[n].name===this.name){this.colidx=n;break}if(this.colidx<0)throw new Error('Failed to bind Col "'.concat(this.name,'"'))}var r=this.vector=t.getChildAt(this.colidx);return function(t){return r.get(t)}}}]),e}();e.Col=v;var b=function(){function t(){f(this,t)}return y(t,[{key:"and",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i(w,[this].concat(e))}},{key:"or",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i(_,[this].concat(e))}},{key:"not",value:function(){return new T(this)}}]),t}();e.Predicate=b;var m=function(t){function e(t,n){var r;return f(this,e),(r=u(this,a(e).call(this))).left=t,r.right=n,r}return c(e,b),y(e,[{key:"bind",value:function(t){return this.left instanceof d?this.right instanceof d?this._bindLitLit(t,this.left,this.right):this._bindLitCol(t,this.left,this.right):this.right instanceof d?this._bindColLit(t,this.left,this.right):this._bindColCol(t,this.left,this.right)}}]),e}();e.ComparisonPredicate=m;var g=function(t){function e(){var t;f(this,e),t=u(this,a(e).call(this));for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.children=r,t}return c(e,b),e}();e.CombinationPredicate=g,g.prototype.children=Object.freeze([]);var w=function(t){function e(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return f(this,e),i=i.reduce(function(t,n){return t.concat(n instanceof e?n.children:n)},[]),u(this,(t=a(e)).call.apply(t,[this].concat(r(i))))}return c(e,g),y(e,[{key:"bind",value:function(t){var e=this.children.map(function(e){return e.bind(t)});return function(t,n){return e.every(function(e){return e(t,n)})}}}]),e}();e.And=w;var _=function(t){function e(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return f(this,e),i=i.reduce(function(t,n){return t.concat(n instanceof e?n.children:n)},[]),u(this,(t=a(e)).call.apply(t,[this].concat(r(i))))}return c(e,g),y(e,[{key:"bind",value:function(t){var e=this.children.map(function(e){return e.bind(t)});return function(t,n){return e.some(function(e){return e(t,n)})}}}]),e}();e.Or=_;var k=function(t){function e(){return f(this,e),u(this,a(e).apply(this,arguments))}return c(e,m),y(e,[{key:"_bindLitLit",value:function(t,e,n){var r=e.v==n.v;return function(){return r}}},{key:"_bindColCol",value:function(t,e,n){var r=e.bind(t),i=n.bind(t);return function(t,e){return r(t,e)==i(t,e)}}},{key:"_bindColLit",value:function(t,e,n){var r=e.bind(t);if(e.vector instanceof p.DictionaryVector){var i,o=e.vector;return o.dictionary!==this.lastDictionary?(i=o.reverseLookup(n.v),this.lastDictionary=o.dictionary,this.lastKey=i):i=this.lastKey,-1===i?function(){return!1}:function(t){return o.getKey(t)===i}}return function(t,e){return r(t,e)==n.v}}},{key:"_bindLitCol",value:function(t,e,n){return this._bindColLit(t,n,e)}}]),e}();e.Equals=k;var O=function(t){function e(){return f(this,e),u(this,a(e).apply(this,arguments))}return c(e,m),y(e,[{key:"_bindLitLit",value:function(t,e,n){var r=e.v<=n.v;return function(){return r}}},{key:"_bindColCol",value:function(t,e,n){var r=e.bind(t),i=n.bind(t);return function(t,e){return r(t,e)<=i(t,e)}}},{key:"_bindColLit",value:function(t,e,n){var r=e.bind(t);return function(t,e){return r(t,e)<=n.v}}},{key:"_bindLitCol",value:function(t,e,n){var r=n.bind(t);return function(t,n){return e.v<=r(t,n)}}}]),e}();e.LTeq=O;var S=function(t){function e(){return f(this,e),u(this,a(e).apply(this,arguments))}return c(e,m),y(e,[{key:"_bindLitLit",value:function(t,e,n){var r=e.v>=n.v;return function(){return r}}},{key:"_bindColCol",value:function(t,e,n){var r=e.bind(t),i=n.bind(t);return function(t,e){return r(t,e)>=i(t,e)}}},{key:"_bindColLit",value:function(t,e,n){var r=e.bind(t);return function(t,e){return r(t,e)>=n.v}}},{key:"_bindLitCol",value:function(t,e,n){var r=n.bind(t);return function(t,n){return e.v>=r(t,n)}}}]),e}();e.GTeq=S;var T=function(t){function e(t){var n;return f(this,e),(n=u(this,a(e).call(this))).child=t,n}return c(e,b),y(e,[{key:"bind",value:function(t){var e=this.child.bind(t);return function(t,n){return!e(t,n)}}}]),e}();e.Not=T;var B=function(t){function e(t,n){var r;return f(this,e),(r=u(this,a(e).call(this))).next=t,r.bind_=n,r}return c(e,b),y(e,[{key:"bind",value:function(t){return this.bind_(t),this.next}}]),e}();e.CustomPredicate=B,e.lit=function(t){return new d(t)},e.col=function(t){return new v(t)},e.and=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i(w,e)},e.or=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return i(_,e)},e.custom=function(t,e){return new B(t,e)}}}]); //# sourceMappingURL=apache-arrow-util.4d0490a94b199a11f40c.js.map