UNPKG

@jpmorganchase/perspective-examples

Version:
15 lines (13 loc) 638 kB
!function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=112)}([function(module,exports){var core=module.exports={version:"2.5.7"};"number"==typeof __e&&(__e=core)},function(module,__webpack_exports__,__webpack_require__){"use strict";function __extends(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}function __rest(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&(t[p[i]]=s[p[i]]);return t}function __decorate(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r}function __param(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}}function __metadata(metadataKey,metadataValue){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(metadataKey,metadataValue)}function __awaiter(thisArg,_arguments,P,generator){return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):new P(function(resolve){resolve(result.value)}).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})}function __generator(thisArg,body){function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=y[2&op[0]?"return":op[0]?"throw":"next"])&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[0,t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(t=_.trys,!(t=t.length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g}function __exportStar(m,exports){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}function __values(o){var m="function"==typeof Symbol&&o[Symbol.iterator],i=0;return m?m.call(o):{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}}}function __read(o,n){var m="function"==typeof Symbol&&o[Symbol.iterator];if(!m)return o;var r,e,i=m.call(o),ar=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)ar.push(r.value)}catch(error){e={error:error}}finally{try{r&&!r.done&&(m=i.return)&&m.call(i)}finally{if(e)throw e.error}}return ar}function __spread(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read(arguments[i]));return ar}function __await(v){return this instanceof __await?(this.v=v,this):new __await(v)}function __asyncGenerator(thisArg,_arguments,generator){function verb(n){g[n]&&(i[n]=function(v){return new Promise(function(a,b){q.push([n,v,a,b])>1||resume(n,v)})})}function resume(n,v){try{step(g[n](v))}catch(e){settle(q[0][3],e)}}function step(r){r.value instanceof __await?Promise.resolve(r.value.v).then(fulfill,reject):settle(q[0][2],r)}function fulfill(value){resume("next",value)}function reject(value){resume("throw",value)}function settle(f,v){f(v),q.shift(),q.length&&resume(q[0][0],q[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,g=generator.apply(thisArg,_arguments||[]),q=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i}function __asyncDelegator(o){function verb(n,f){o[n]&&(i[n]=function(v){return(p=!p)?{value:__await(o[n](v)),done:"return"===n}:f?f(v):v})}var i,p;return i={},verb("next"),verb("throw",function(e){throw e}),verb("return"),i[Symbol.iterator]=function(){return this},i}function __asyncValues(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=o[Symbol.asyncIterator];return m?m.call(o):"function"==typeof __values?__values(o):o[Symbol.iterator]()}function __makeTemplateObject(cooked,raw){return Object.defineProperty?Object.defineProperty(cooked,"raw",{value:raw}):cooked.raw=raw,cooked}function __importStar(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)Object.hasOwnProperty.call(mod,k)&&(result[k]=mod[k]);return result.default=mod,result}function __importDefault(mod){return mod&&mod.__esModule?mod:{default:mod}}Object.defineProperty(__webpack_exports__,"__esModule",{value:!0}),__webpack_exports__.__extends=__extends,__webpack_require__.d(__webpack_exports__,"__assign",function(){return __assign}),__webpack_exports__.__rest=__rest,__webpack_exports__.__decorate=__decorate,__webpack_exports__.__param=__param,__webpack_exports__.__metadata=__metadata,__webpack_exports__.__awaiter=__awaiter,__webpack_exports__.__generator=__generator,__webpack_exports__.__exportStar=__exportStar,__webpack_exports__.__values=__values,__webpack_exports__.__read=__read,__webpack_exports__.__spread=__spread,__webpack_exports__.__await=__await,__webpack_exports__.__asyncGenerator=__asyncGenerator,__webpack_exports__.__asyncDelegator=__asyncDelegator,__webpack_exports__.__asyncValues=__asyncValues,__webpack_exports__.__makeTemplateObject=__makeTemplateObject,__webpack_exports__.__importStar=__importStar,__webpack_exports__.__importDefault=__importDefault;/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p])}return t}},function(module,exports,__webpack_require__){var global=__webpack_require__(3),core=__webpack_require__(0),ctx=__webpack_require__(12),hide=__webpack_require__(13),has=__webpack_require__(15),$export=function(type,name,source){var key,own,out,IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,IS_WRAP=type&$export.W,exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports.prototype,target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{}).prototype;IS_GLOBAL&&(source=name);for(key in source)(own=!IS_FORCED&&target&&void 0!==target[key])&&has(exports,key)||(out=own?target[key]:source[key],exports[key]=IS_GLOBAL&&"function"!=typeof target[key]?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(a);case 2:return new C(a,b)}return new C(a,b,c)}return C.apply(this,arguments)};return F.prototype=C.prototype,F}(out):IS_PROTO&&"function"==typeof out?ctx(Function.call,out):out,IS_PROTO&&((exports.virtual||(exports.virtual={}))[key]=out,type&$export.R&&expProto&&!expProto[key]&&hide(expProto,key,out)))};$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,module.exports=$export},function(module,exports){var global=module.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=global)},function(module,exports,__webpack_require__){var store=__webpack_require__(58)("wks"),uid=__webpack_require__(36),Symbol=__webpack_require__(3).Symbol,USE_SYMBOL="function"==typeof Symbol;(module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))}).store=store},function(module,exports){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(7),IE8_DOM_DEFINE=__webpack_require__(78),toPrimitive=__webpack_require__(53),dP=Object.defineProperty;exports.f=__webpack_require__(8)?Object.defineProperty:function(O,P,Attributes){if(anObject(O),P=toPrimitive(P,!0),anObject(Attributes),IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");return"value"in Attributes&&(O[P]=Attributes.value),O}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(5);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(125),__esModule:!0}},function(module,exports,__webpack_require__){"use strict";function _interopRequireWildcard(obj){if(obj&&obj.__esModule)return obj;var newObj={};if(null!=obj)for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);return newObj.default=obj,newObj}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Dictionary=exports.Map_=exports.FixedSizeList=exports.FixedSizeBinary=exports.SparseUnion=exports.DenseUnion=exports.Union=exports.Struct=exports.List=exports.Interval=exports.Timestamp=exports.Time=exports.Date_=exports.Decimal=exports.Bool=exports.Utf8=exports.Binary=exports.Float64=exports.Float32=exports.Float16=exports.Float=exports.Uint64=exports.Uint32=exports.Uint16=exports.Uint8=exports.Int64=exports.Int32=exports.Int16=exports.Int8=exports.Int=exports.Null=exports.DataType=exports.Type=exports.Field=exports.Schema=exports.MetadataVersion=exports.MessageHeader=exports.IntervalUnit=exports.VectorType=exports.UnionMode=exports.Precision=exports.TimeUnit=exports.DateUnit=exports.ArrowType=exports.Long=void 0;var _defineProperty=__webpack_require__(37),_defineProperty2=_interopRequireDefault(_defineProperty),_toStringTag=__webpack_require__(100),_toStringTag2=_interopRequireDefault(_toStringTag),_create=__webpack_require__(44),_create2=_interopRequireDefault(_create),_map=__webpack_require__(69),_map2=_interopRequireDefault(_map),_tslib=__webpack_require__(1),tslib_1=_interopRequireWildcard(_tslib),_Schema=__webpack_require__(31),Schema_=_interopRequireWildcard(_Schema),_Message=__webpack_require__(102),Message_=_interopRequireWildcard(_Message),_flatbuffers=__webpack_require__(70),_metadata=__webpack_require__(45),_visitor=__webpack_require__(46),DateUnit=(exports.Long=_flatbuffers.flatbuffers.Long,exports.ArrowType=Schema_.org.apache.arrow.flatbuf.Type,exports.DateUnit=Schema_.org.apache.arrow.flatbuf.DateUnit),TimeUnit=exports.TimeUnit=Schema_.org.apache.arrow.flatbuf.TimeUnit,Precision=exports.Precision=Schema_.org.apache.arrow.flatbuf.Precision,UnionMode=exports.UnionMode=Schema_.org.apache.arrow.flatbuf.UnionMode,IntervalUnit=(exports.VectorType=Schema_.org.apache.arrow.flatbuf.VectorType,exports.IntervalUnit=Schema_.org.apache.arrow.flatbuf.IntervalUnit),MessageHeader=exports.MessageHeader=Message_.org.apache.arrow.flatbuf.MessageHeader,MetadataVersion=exports.MetadataVersion=Schema_.org.apache.arrow.flatbuf.MetadataVersion,Schema=function(){function Schema(fields,metadata,version,dictionaries){void 0===version&&(version=MetadataVersion.V4),void 0===dictionaries&&(dictionaries=new _map2.default),this.fields=fields,this.version=version,this.metadata=metadata,this.dictionaries=dictionaries}return Schema.from=function(vectors){return new Schema(vectors.map(function(v,i){return new Field(""+i,v.type)}))},Object.defineProperty(Schema.prototype,"bodyLength",{get:function(){return this._bodyLength},enumerable:!0,configurable:!0}),Object.defineProperty(Schema.prototype,"headerType",{get:function(){return this._headerType},enumerable:!0,configurable:!0}),Schema.prototype.select=function(){for(var fieldNames=[],_i=0;_i<arguments.length;_i++)fieldNames[_i]=arguments[_i];var namesToKeep=fieldNames.reduce(function(xs,x){return(xs[x]=!0)&&xs},(0,_create2.default)(null)),newDictFields=new _map2.default,newFields=this.fields.filter(function(f){return namesToKeep[f.name]});return this.dictionaries.forEach(function(f,dictId){return namesToKeep[f.name]&&newDictFields.set(dictId,f)}),new Schema(newFields,this.metadata,this.version,newDictFields)},Schema[_toStringTag2.default]=function(prototype){return prototype._bodyLength=0,prototype._headerType=MessageHeader.Schema,"Schema"}(Schema.prototype),Schema}();exports.Schema=Schema;var Field=function(){function Field(name,type,nullable,metadata){void 0===nullable&&(nullable=!1),this.name=name,this.type=type,this.nullable=nullable,this.metadata=metadata}return Field.prototype.toString=function(){return this.name+": "+this.type},Object.defineProperty(Field.prototype,"typeId",{get:function(){return this.type.TType},enumerable:!0,configurable:!0}),(0,_defineProperty2.default)(Field.prototype,_toStringTag2.default,{get:function(){return"Field"},enumerable:!0,configurable:!0}),Object.defineProperty(Field.prototype,"indices",{get:function(){return DataType.isDictionary(this.type)?this.type.indices:this.type},enumerable:!0,configurable:!0}),Field}();exports.Field=Field;var Type=exports.Type=void 0;!function(Type){Type[Type.NONE=0]="NONE",Type[Type.Null=1]="Null",Type[Type.Int=2]="Int",Type[Type.Float=3]="Float",Type[Type.Binary=4]="Binary",Type[Type.Utf8=5]="Utf8",Type[Type.Bool=6]="Bool",Type[Type.Decimal=7]="Decimal",Type[Type.Date=8]="Date",Type[Type.Time=9]="Time",Type[Type.Timestamp=10]="Timestamp",Type[Type.Interval=11]="Interval",Type[Type.List=12]="List",Type[Type.Struct=13]="Struct",Type[Type.Union=14]="Union",Type[Type.FixedSizeBinary=15]="FixedSizeBinary",Type[Type.FixedSizeList=16]="FixedSizeList",Type[Type.Map=17]="Map",Type.Dictionary="Dictionary",Type.DenseUnion="DenseUnion",Type.SparseUnion="SparseUnion"}(Type||(exports.Type=Type={}));var DataType=function(){function DataType(TType,children){this.TType=TType,this.children=children}return DataType.isNull=function(x){return x&&x.TType===Type.Null},DataType.isInt=function(x){return x&&x.TType===Type.Int},DataType.isFloat=function(x){return x&&x.TType===Type.Float},DataType.isBinary=function(x){return x&&x.TType===Type.Binary},DataType.isUtf8=function(x){return x&&x.TType===Type.Utf8},DataType.isBool=function(x){return x&&x.TType===Type.Bool},DataType.isDecimal=function(x){return x&&x.TType===Type.Decimal},DataType.isDate=function(x){return x&&x.TType===Type.Date},DataType.isTime=function(x){return x&&x.TType===Type.Time},DataType.isTimestamp=function(x){return x&&x.TType===Type.Timestamp},DataType.isInterval=function(x){return x&&x.TType===Type.Interval},DataType.isList=function(x){return x&&x.TType===Type.List},DataType.isStruct=function(x){return x&&x.TType===Type.Struct},DataType.isUnion=function(x){return x&&x.TType===Type.Union},DataType.isDenseUnion=function(x){return x&&x.TType===Type.DenseUnion},DataType.isSparseUnion=function(x){return x&&x.TType===Type.SparseUnion},DataType.isFixedSizeBinary=function(x){return x&&x.TType===Type.FixedSizeBinary},DataType.isFixedSizeList=function(x){return x&&x.TType===Type.FixedSizeList},DataType.isMap=function(x){return x&&x.TType===Type.Map},DataType.isDictionary=function(x){return x&&x.TType===Type.Dictionary},DataType.prototype.acceptTypeVisitor=function(visitor){return _visitor.TypeVisitor.visitTypeInline(visitor,this)},DataType[_toStringTag2.default]=function(proto){return proto.ArrayType=Array,proto[_toStringTag2.default]="DataType"}(DataType.prototype),DataType}();exports.DataType=DataType;var Null=function(_super){function Null(){return _super.call(this,Type.Null)||this}return tslib_1.__extends(Null,_super),Null.prototype.toString=function(){return"Null"},Null[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="Null"}(Null.prototype),Null}(DataType);exports.Null=Null;var Int=function(_super){function Int(isSigned,bitWidth){var _this=_super.call(this,Type.Int)||this;return _this.isSigned=isSigned,_this.bitWidth=bitWidth,_this}return tslib_1.__extends(Int,_super),Object.defineProperty(Int.prototype,"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 "+this[_toStringTag2.default]+" type")},enumerable:!0,configurable:!0}),Int.prototype.toString=function(){return(this.isSigned?"I":"Ui")+"nt"+this.bitWidth},Int[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="Int"}(Int.prototype),Int}(DataType);exports.Int=Int;var Int8=function(_super){function Int8(){return _super.call(this,!0,8)||this}return tslib_1.__extends(Int8,_super),Int8}(Int);exports.Int8=Int8;var Int16=function(_super){function Int16(){return _super.call(this,!0,16)||this}return tslib_1.__extends(Int16,_super),Int16}(Int);exports.Int16=Int16;var Int32=function(_super){function Int32(){return _super.call(this,!0,32)||this}return tslib_1.__extends(Int32,_super),Int32}(Int);exports.Int32=Int32;var Int64=function(_super){function Int64(){return _super.call(this,!0,64)||this}return tslib_1.__extends(Int64,_super),Int64}(Int);exports.Int64=Int64;var Uint8=function(_super){function Uint8(){return _super.call(this,!1,8)||this}return tslib_1.__extends(Uint8,_super),Uint8}(Int);exports.Uint8=Uint8;var Uint16=function(_super){function Uint16(){return _super.call(this,!1,16)||this}return tslib_1.__extends(Uint16,_super),Uint16}(Int);exports.Uint16=Uint16;var Uint32=function(_super){function Uint32(){return _super.call(this,!1,32)||this}return tslib_1.__extends(Uint32,_super),Uint32}(Int);exports.Uint32=Uint32;var Uint64=function(_super){function Uint64(){return _super.call(this,!1,64)||this}return tslib_1.__extends(Uint64,_super),Uint64}(Int);exports.Uint64=Uint64;var Float=function(_super){function Float(precision){var _this=_super.call(this,Type.Float)||this;return _this.precision=precision,_this}return tslib_1.__extends(Float,_super),Object.defineProperty(Float.prototype,"ArrayType",{get:function(){switch(this.precision){case Precision.HALF:return Uint16Array;case Precision.SINGLE:return Float32Array;case Precision.DOUBLE:return Float64Array}throw new Error("Unrecognized "+this[_toStringTag2.default]+" type")},enumerable:!0,configurable:!0}),Float.prototype.toString=function(){return"Float"+(this.precision<<5||16)},Float[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="Float"}(Float.prototype),Float}(DataType);exports.Float=Float;var Float16=function(_super){function Float16(){return _super.call(this,Precision.HALF)||this}return tslib_1.__extends(Float16,_super),Float16}(Float);exports.Float16=Float16;var Float32=function(_super){function Float32(){return _super.call(this,Precision.SINGLE)||this}return tslib_1.__extends(Float32,_super),Float32}(Float);exports.Float32=Float32;var Float64=function(_super){function Float64(){return _super.call(this,Precision.DOUBLE)||this}return tslib_1.__extends(Float64,_super),Float64}(Float);exports.Float64=Float64;var Binary=function(_super){function Binary(){return _super.call(this,Type.Binary)||this}return tslib_1.__extends(Binary,_super),Binary.prototype.toString=function(){return"Binary"},Binary[_toStringTag2.default]=function(proto){return proto.ArrayType=Uint8Array,proto[_toStringTag2.default]="Binary"}(Binary.prototype),Binary}(DataType);exports.Binary=Binary;var Utf8=function(_super){function Utf8(){return _super.call(this,Type.Utf8)||this}return tslib_1.__extends(Utf8,_super),Utf8.prototype.toString=function(){return"Utf8"},Utf8[_toStringTag2.default]=function(proto){return proto.ArrayType=Uint8Array,proto[_toStringTag2.default]="Utf8"}(Utf8.prototype),Utf8}(DataType);exports.Utf8=Utf8;var Bool=function(_super){function Bool(){return _super.call(this,Type.Bool)||this}return tslib_1.__extends(Bool,_super),Bool.prototype.toString=function(){return"Bool"},Bool[_toStringTag2.default]=function(proto){return proto.ArrayType=Uint8Array,proto[_toStringTag2.default]="Bool"}(Bool.prototype),Bool}(DataType);exports.Bool=Bool;var Decimal=function(_super){function Decimal(scale,precision){var _this=_super.call(this,Type.Decimal)||this;return _this.scale=scale,_this.precision=precision,_this}return tslib_1.__extends(Decimal,_super),Decimal.prototype.toString=function(){return"Decimal["+this.precision+"e"+(this.scale>0?"+":"")+this.scale+"]"},Decimal[_toStringTag2.default]=function(proto){return proto.ArrayType=Uint32Array,proto[_toStringTag2.default]="Decimal"}(Decimal.prototype),Decimal}(DataType);exports.Decimal=Decimal;var Date_=function(_super){function Date_(unit){var _this=_super.call(this,Type.Date)||this;return _this.unit=unit,_this}return tslib_1.__extends(Date_,_super),Date_.prototype.toString=function(){return"Date"+32*(this.unit+1)+"<"+DateUnit[this.unit]+">"},Date_[_toStringTag2.default]=function(proto){return proto.ArrayType=Int32Array,proto[_toStringTag2.default]="Date"}(Date_.prototype),Date_}(DataType);exports.Date_=Date_;var Time=function(_super){function Time(unit,bitWidth){var _this=_super.call(this,Type.Time)||this;return _this.unit=unit,_this.bitWidth=bitWidth,_this}return tslib_1.__extends(Time,_super),Time.prototype.toString=function(){return"Time"+this.bitWidth+"<"+TimeUnit[this.unit]+">"},Time[_toStringTag2.default]=function(proto){return proto.ArrayType=Uint32Array,proto[_toStringTag2.default]="Time"}(Time.prototype),Time}(DataType);exports.Time=Time;var Timestamp=function(_super){function Timestamp(unit,timezone){var _this=_super.call(this,Type.Timestamp)||this;return _this.unit=unit,_this.timezone=timezone,_this}return tslib_1.__extends(Timestamp,_super),Timestamp.prototype.toString=function(){return"Timestamp<"+TimeUnit[this.unit]+(this.timezone?", "+this.timezone:"")+">"},Timestamp[_toStringTag2.default]=function(proto){return proto.ArrayType=Int32Array,proto[_toStringTag2.default]="Timestamp"}(Timestamp.prototype),Timestamp}(DataType);exports.Timestamp=Timestamp;var Interval=function(_super){function Interval(unit){var _this=_super.call(this,Type.Interval)||this;return _this.unit=unit,_this}return tslib_1.__extends(Interval,_super),Interval.prototype.toString=function(){return"Interval<"+IntervalUnit[this.unit]+">"},Interval[_toStringTag2.default]=function(proto){return proto.ArrayType=Int32Array,proto[_toStringTag2.default]="Interval"}(Interval.prototype),Interval}(DataType);exports.Interval=Interval;var List=function(_super){function List(children){var _this=_super.call(this,Type.List,children)||this;return _this.children=children,_this}return tslib_1.__extends(List,_super),List.prototype.toString=function(){return"List<"+this.valueType+">"},Object.defineProperty(List.prototype,"ArrayType",{get:function(){return this.valueType.ArrayType},enumerable:!0,configurable:!0}),Object.defineProperty(List.prototype,"valueType",{get:function(){return this.children[0].type},enumerable:!0,configurable:!0}),Object.defineProperty(List.prototype,"valueField",{get:function(){return this.children[0]},enumerable:!0,configurable:!0}),List[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="List"}(List.prototype),List}(DataType);exports.List=List;var Struct=function(_super){function Struct(children){var _this=_super.call(this,Type.Struct,children)||this;return _this.children=children,_this}return tslib_1.__extends(Struct,_super),Struct.prototype.toString=function(){return"Struct<"+this.children.map(function(f){return f.type}).join(", ")+">"},Struct[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="Struct"}(Struct.prototype),Struct}(DataType);exports.Struct=Struct;var Union=function(_super){function Union(mode,typeIds,children){var _this=_super.call(this,mode===UnionMode.Sparse?Type.SparseUnion:Type.DenseUnion,children)||this;return _this.mode=mode,_this.typeIds=typeIds,_this.children=children,_this}return tslib_1.__extends(Union,_super),Union.prototype.toString=function(){return this[_toStringTag2.default]+"<"+this.typeIds.map(function(x){return Type[x]}).join(" | ")+">"},Union[_toStringTag2.default]=function(proto){return proto.ArrayType=Int8Array,proto[_toStringTag2.default]="Union"}(Union.prototype),Union}(DataType);exports.Union=Union;var DenseUnion=function(_super){function DenseUnion(typeIds,children){return _super.call(this,UnionMode.Dense,typeIds,children)||this}return tslib_1.__extends(DenseUnion,_super),DenseUnion[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="DenseUnion"}(DenseUnion.prototype),DenseUnion}(Union);exports.DenseUnion=DenseUnion;var SparseUnion=function(_super){function SparseUnion(typeIds,children){return _super.call(this,UnionMode.Sparse,typeIds,children)||this}return tslib_1.__extends(SparseUnion,_super),SparseUnion[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="SparseUnion"}(SparseUnion.prototype),SparseUnion}(Union);exports.SparseUnion=SparseUnion;var FixedSizeBinary=function(_super){function FixedSizeBinary(byteWidth){var _this=_super.call(this,Type.FixedSizeBinary)||this;return _this.byteWidth=byteWidth,_this}return tslib_1.__extends(FixedSizeBinary,_super),FixedSizeBinary.prototype.toString=function(){return"FixedSizeBinary["+this.byteWidth+"]"},FixedSizeBinary[_toStringTag2.default]=function(proto){return proto.ArrayType=Uint8Array,proto[_toStringTag2.default]="FixedSizeBinary"}(FixedSizeBinary.prototype),FixedSizeBinary}(DataType);exports.FixedSizeBinary=FixedSizeBinary;var FixedSizeList=function(_super){function FixedSizeList(listSize,children){var _this=_super.call(this,Type.FixedSizeList,children)||this;return _this.listSize=listSize,_this.children=children,_this}return tslib_1.__extends(FixedSizeList,_super),Object.defineProperty(FixedSizeList.prototype,"ArrayType",{get:function(){return this.valueType.ArrayType},enumerable:!0,configurable:!0}),Object.defineProperty(FixedSizeList.prototype,"valueType",{get:function(){return this.children[0].type},enumerable:!0,configurable:!0}),Object.defineProperty(FixedSizeList.prototype,"valueField",{get:function(){return this.children[0]},enumerable:!0,configurable:!0}),FixedSizeList.prototype.toString=function(){return"FixedSizeList["+this.listSize+"]<"+this.valueType+">"},FixedSizeList[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="FixedSizeList"}(FixedSizeList.prototype),FixedSizeList}(DataType);exports.FixedSizeList=FixedSizeList;var Map_=function(_super){function Map_(keysSorted,children){var _this=_super.call(this,Type.Map,children)||this;return _this.keysSorted=keysSorted,_this.children=children,_this}return tslib_1.__extends(Map_,_super),Map_.prototype.toString=function(){return"Map<"+this.children.join(", ")+">"},Map_[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="Map_"}(Map_.prototype),Map_}(DataType);exports.Map_=Map_;var Dictionary=function(_super){function Dictionary(dictionary,indices,id,isOrdered){var _this=_super.call(this,Type.Dictionary)||this;return _this.indices=indices,_this.dictionary=dictionary,_this.isOrdered=isOrdered||!1,_this.id=null==id?_metadata.DictionaryBatch.getId():"number"==typeof id?id:id.low,_this}return tslib_1.__extends(Dictionary,_super),Object.defineProperty(Dictionary.prototype,"ArrayType",{get:function(){return this.dictionary.ArrayType},enumerable:!0,configurable:!0}),Dictionary.prototype.toString=function(){return"Dictionary<"+this.indices+", "+this.dictionary+">"},Dictionary[_toStringTag2.default]=function(proto){return proto[_toStringTag2.default]="Dictionary"}(Dictionary.prototype),Dictionary}(DataType);exports.Dictionary=Dictionary},function(module,exports){var g;g=function(){return this}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(22);module.exports=function(fn,that,length){if(aFunction(fn),void 0===that)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports,__webpack_require__){var dP=__webpack_require__(6),createDesc=__webpack_require__(34);module.exports=__webpack_require__(8)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(54),defined=__webpack_require__(35);module.exports=function(it){return IObject(defined(it))}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.createVector=exports.DictionaryVector=exports.UnionVector=exports.StructVector=exports.MapVector=exports.FixedSizeListVector=exports.ListVector=exports.Utf8Vector=exports.FixedSizeBinaryVector=exports.BinaryVector=exports.IntervalVector=exports.TimestampVector=exports.TimeVector=exports.DecimalVector=exports.DateVector=exports.FloatVector=exports.IntVector=exports.BoolVector=exports.NullVector=exports.NestedVector=exports.ListVectorBase=exports.FlatVector=exports.Vector=void 0;var _getIterator2=__webpack_require__(30),_getIterator3=_interopRequireDefault(_getIterator2),_iterator=__webpack_require__(9),_iterator2=_interopRequireDefault(_iterator),_toStringTag=__webpack_require__(100),_toStringTag2=_interopRequireDefault(_toStringTag),_defineProperty=__webpack_require__(37),_defineProperty2=_interopRequireDefault(_defineProperty),_tslib=__webpack_require__(1),tslib_1=function(obj){if(obj&&obj.__esModule)return obj;var newObj={};if(null!=obj)for(var key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&(newObj[key]=obj[key]);return newObj.default=obj,newObj}(_tslib),_data=__webpack_require__(47),_visitor=__webpack_require__(46),_type2=__webpack_require__(10),_chunked=__webpack_require__(104),_dictionary=__webpack_require__(197),_list=__webpack_require__(198),_nested=__webpack_require__(199),_flat=__webpack_require__(200),_bit=__webpack_require__(32),Vector=function(){function Vector(data,view){this.data=data,this.type=data.type,this.length=data.length;var nulls;data instanceof _data.ChunkedData&&!(view instanceof _chunked.ChunkedView)?this.view=new _chunked.ChunkedView(data):!(view instanceof _flat.ValidityView)&&(nulls=data.nullBitmap)&&nulls.length>0&&data.nullCount>0?this.view=new _flat.ValidityView(data,view):this.view=view}return Vector.create=function(data){return createVector(data)},Vector.concat=function(source){for(var others=[],_i=1;_i<arguments.length;_i++)others[_i-1]=arguments[_i];return others.reduce(function(a,b){return a?a.concat(b):b},source)},Object.defineProperty(Vector.prototype,"nullCount",{get:function(){return this.data.nullCount},enumerable:!0,configurable:!0}),Object.defineProperty(Vector.prototype,"nullBitmap",{get:function(){return this.data.nullBitmap},enumerable:!0,configurable:!0}),(0,_defineProperty2.default)(Vector.prototype,_toStringTag2.default,{get:function(){return"Vector<"+this.type[_toStringTag2.default]+">"},enumerable:!0,configurable:!0}),Vector.prototype.toJSON=function(){return this.toArray()},Vector.prototype.clone=function(data,view){return void 0===view&&(view=this.view.clone(data)),new this.constructor(data,view)},Vector.prototype.isValid=function(index){return this.view.isValid(index)},Vector.prototype.get=function(index){return this.view.get(index)},Vector.prototype.set=function(index,value){return this.view.set(index,value)},Vector.prototype.toArray=function(){return this.view.toArray()},Vector.prototype.indexOf=function(value){return this.view.indexOf(value)},Vector.prototype[_iterator2.default]=function(){return(0,_getIterator3.default)(this.view)},Vector.prototype.concat=function(){for(var others=[],_i=0;_i<arguments.length;_i++)others[_i]=arguments[_i];if(0===(others=others.filter(Boolean)).length)return this;var view=this.view,vecs=view instanceof _chunked.ChunkedView?tslib_1.__spread(view.chunkVectors,others):tslib_1.__spread([this],others),offsets=_data.ChunkedData.computeOffsets(vecs),chunksLength=offsets[offsets.length-1],chunkedData=new _data.ChunkedData(this.type,chunksLength,vecs,0,-1,offsets);return this.clone(chunkedData,new _chunked.ChunkedView(chunkedData))},Vector.prototype.slice=function(begin,end){var length=this.length,size=this.view.size||1,total=length,from=(begin||0)*size,to=("number"==typeof end?end:total)*size;to<0&&(to=total- -1*to%total),from<0&&(from=total- -1*from%total),to<from&&(_a=tslib_1.__read([to,from],2),from=_a[0],to=_a[1]),total=!isFinite(total=to-from)||total<0?0:total;var slicedData=this.data.slice(from,Math.min(total,length));return this.clone(slicedData,this.view.clone(slicedData));var _a},Vector.prototype.acceptTypeVisitor=function(visitor){return _visitor.TypeVisitor.visitTypeInline(visitor,this.type)},Vector.prototype.acceptVectorVisitor=function(visitor){return _visitor.VectorVisitor.visitTypeInline(visitor,this.type,this)},Vector}();exports.Vector=Vector;var FlatVector=function(_super){function FlatVector(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_1.__extends(FlatVector,_super),Object.defineProperty(FlatVector.prototype,"values",{get:function(){return this.data.values},enumerable:!0,configurable:!0}),FlatVector.prototype.lows=function(){return this.asInt32(0,2)},FlatVector.prototype.highs=function(){return this.asInt32(1,2)},FlatVector.prototype.asInt32=function(offset,stride){void 0===offset&&(offset=0),void 0===stride&&(stride=2);var data=this.data.clone(new _type2.Int32);offset>0&&(data=data.slice(offset,this.length-offset));var int32s=new IntVector(data,new _flat.PrimitiveView(data,stride));return int32s.length=this.length/stride|0,int32s},FlatVector}(Vector);exports.FlatVector=FlatVector;var ListVectorBase=function(_super){function ListVectorBase(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_1.__extends(ListVectorBase,_super),Object.defineProperty(ListVectorBase.prototype,"values",{get:function(){return this.data.values},enumerable:!0,configurable:!0}),Object.defineProperty(ListVectorBase.prototype,"valueOffsets",{get:function(){return this.data.valueOffsets},enumerable:!0,configurable:!0}),ListVectorBase.prototype.getValueOffset=function(index){return this.valueOffsets[index]},ListVectorBase.prototype.getValueLength=function(index){return this.valueOffsets[index+1]-this.valueOffsets[index]},ListVectorBase}(Vector);exports.ListVectorBase=ListVectorBase;var NestedVector=function(_super){function NestedVector(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_1.__extends(NestedVector,_super),NestedVector.prototype.getChildAt=function(index){return this.view.getChildAt(index)},Object.defineProperty(NestedVector.prototype,"childData",{get:function(){var data;if(data=this._childData)return data;if(!((data=this.data)instanceof _data.ChunkedData))return this._childData=data.childData;var chunks=data.chunkVectors;return this._childData=chunks.reduce(function(cols,chunk){return chunk.childData.reduce(function(cols,_,i){return(cols[i]||(cols[i]=[])).push(chunk.getChildAt(i))&&cols||cols},cols)},[]).map(function(vecs){return Vector.concat.apply(Vector,tslib_1.__spread(vecs)).data})},enumerable:!0,configurable:!0}),NestedVector}(Vector);exports.NestedVector=NestedVector;var NullVector=function(_super){function NullVector(data,view){return void 0===view&&(view=new _flat.NullView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(NullVector,_super),NullVector}(Vector);exports.NullVector=NullVector;var BoolVector=function(_super){function BoolVector(data,view){return void 0===view&&(view=new _flat.BoolView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(BoolVector,_super),BoolVector.from=function(data){return new BoolVector(new _data.BoolData(new _type2.Bool,data.length,null,(0,_bit.packBools)(data)))},Object.defineProperty(BoolVector.prototype,"values",{get:function(){return this.data.values},enumerable:!0,configurable:!0}),BoolVector}(Vector);exports.BoolVector=BoolVector;var IntVector=function(_super){function IntVector(data,view){return void 0===view&&(view=IntVector.defaultView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(IntVector,_super),IntVector.from=function(data,is64){if(!0===is64)return new IntVector(data instanceof Int32Array?new _data.FlatData(new _type2.Int64,data.length,null,data):new _data.FlatData(new _type2.Uint64,data.length,null,data));switch(data.constructor){case Int8Array:return new IntVector(new _data.FlatData(new _type2.Int8,data.length,null,data));case Int16Array:return new IntVector(new _data.FlatData(new _type2.Int16,data.length,null,data));case Int32Array:return new IntVector(new _data.FlatData(new _type2.Int32,data.length,null,data));case Uint8Array:return new IntVector(new _data.FlatData(new _type2.Uint8,data.length,null,data));case Uint16Array:return new IntVector(new _data.FlatData(new _type2.Uint16,data.length,null,data));case Uint32Array:return new IntVector(new _data.FlatData(new _type2.Uint32,data.length,null,data))}throw new TypeError("Unrecognized Int data")},IntVector.defaultView=function(data){return data.type.bitWidth<=32?new _flat.FlatView(data):new _flat.FixedSizeView(data,data.type.bitWidth/32|0)},IntVector}(FlatVector);exports.IntVector=IntVector;var FloatVector=function(_super){function FloatVector(data,view){return void 0===view&&(view=FloatVector.defaultView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(FloatVector,_super),FloatVector.from=function(data){switch(data.constructor){case Uint16Array:return new FloatVector(new _data.FlatData(new _type2.Float16,data.length,null,data));case Float32Array:return new FloatVector(new _data.FlatData(new _type2.Float32,data.length,null,data));case Float64Array:return new FloatVector(new _data.FlatData(new _type2.Float64,data.length,null,data))}throw new TypeError("Unrecognized Float data")},FloatVector.defaultView=function(data){return data.type.precision!==_type2.Precision.HALF?new _flat.FlatView(data):new _flat.Float16View(data)},FloatVector}(FlatVector);exports.FloatVector=FloatVector;var DateVector=function(_super){function DateVector(data,view){return void 0===view&&(view=DateVector.defaultView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(DateVector,_super),DateVector.defaultView=function(data){return data.type.unit===_type2.DateUnit.DAY?new _flat.DateDayView(data):new _flat.DateMillisecondView(data,2)},DateVector.prototype.lows=function(){return this.type.unit===_type2.DateUnit.DAY?this.asInt32(0,1):this.asInt32(0,2)},DateVector.prototype.highs=function(){return this.type.unit===_type2.DateUnit.DAY?this.asInt32(0,1):this.asInt32(1,2)},DateVector.prototype.asEpochMilliseconds=function(){var data=this.data.clone(new _type2.Int32);switch(this.type.unit){case _type2.DateUnit.DAY:return new IntVector(data,new _flat.TimestampDayView(data,1));case _type2.DateUnit.MILLISECOND:return new IntVector(data,new _flat.TimestampMillisecondView(data,2))}throw new TypeError('Unrecognized date unit "'+_type2.DateUnit[this.type.unit]+'"')},DateVector}(FlatVector);exports.DateVector=DateVector;var DecimalVector=function(_super){function DecimalVector(data,view){return void 0===view&&(view=new _flat.FixedSizeView(data,4)),_super.call(this,data,view)||this}return tslib_1.__extends(DecimalVector,_super),DecimalVector}(FlatVector);exports.DecimalVector=DecimalVector;var TimeVector=function(_super){function TimeVector(data,view){return void 0===view&&(view=TimeVector.defaultView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(TimeVector,_super),TimeVector.defaultView=function(data){return data.type.bitWidth<=32?new _flat.FlatView(data):new _flat.FixedSizeView(data,data.type.bitWidth/32|0)},TimeVector.prototype.lows=function(){return this.type.bitWidth<=32?this.asInt32(0,1):this.asInt32(0,2)},TimeVector.prototype.highs=function(){return this.type.bitWidth<=32?this.asInt32(0,1):this.asInt32(1,2)},TimeVector}(FlatVector);exports.TimeVector=TimeVector;var TimestampVector=function(_super){function TimestampVector(data,view){return void 0===view&&(view=new _flat.FixedSizeView(data,2)),_super.call(this,data,view)||this}return tslib_1.__extends(TimestampVector,_super),TimestampVector.prototype.asEpochMilliseconds=function(){var data=this.data.clone(new _type2.Int32);switch(this.type.unit){case _type2.TimeUnit.SECOND:return new IntVector(data,new _flat.TimestampSecondView(data,1));case _type2.TimeUnit.MILLISECOND:return new IntVector(data,new _flat.TimestampMillisecondView(data,2));case _type2.TimeUnit.MICROSECOND:return new IntVector(data,new _flat.TimestampMicrosecondView(data,2));case _type2.TimeUnit.NANOSECOND:return new IntVector(data,new _flat.TimestampNanosecondView(data,2))}throw new TypeError('Unrecognized time unit "'+_type2.TimeUnit[this.type.unit]+'"')},TimestampVector}(FlatVector);exports.TimestampVector=TimestampVector;var IntervalVector=function(_super){function IntervalVector(data,view){return void 0===view&&(view=IntervalVector.defaultView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(IntervalVector,_super),IntervalVector.defaultView=function(data){return data.type.unit===_type2.IntervalUnit.YEAR_MONTH?new _flat.IntervalYearMonthView(data):new _flat.FixedSizeView(data,2)},IntervalVector.prototype.lows=function(){return this.type.unit===_type2.IntervalUnit.YEAR_MONTH?this.asInt32(0,1):this.asInt32(0,2)},IntervalVector.prototype.highs=function(){return this.type.unit===_type2.IntervalUnit.YEAR_MONTH?this.asInt32(0,1):this.asInt32(1,2)},IntervalVector}(FlatVector);exports.IntervalVector=IntervalVector;var BinaryVector=function(_super){function BinaryVector(data,view){return void 0===view&&(view=new _list.BinaryView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(BinaryVector,_super),BinaryVector.prototype.asUtf8=function(){return new Utf8Vector(this.data.clone(new _type2.Utf8))},BinaryVector}(ListVectorBase);exports.BinaryVector=BinaryVector;var FixedSizeBinaryVector=function(_super){function FixedSizeBinaryVector(data,view){return void 0===view&&(view=new _flat.FixedSizeView(data,data.type.byteWidth)),_super.call(this,data,view)||this}return tslib_1.__extends(FixedSizeBinaryVector,_super),FixedSizeBinaryVector}(FlatVector);exports.FixedSizeBinaryVector=FixedSizeBinaryVector;var Utf8Vector=function(_super){function Utf8Vector(data,view){return void 0===view&&(view=new _list.Utf8View(data)),_super.call(this,data,view)||this}return tslib_1.__extends(Utf8Vector,_super),Utf8Vector.prototype.asBinary=function(){return new BinaryVector(this.data.clone(new _type2.Binary))},Utf8Vector}(ListVectorBase);exports.Utf8Vector=Utf8Vector;var ListVector=function(_super){function ListVector(data,view){return void 0===view&&(view=new _list.ListView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(ListVector,_super),ListVector}(ListVectorBase);exports.ListVector=ListVector;var FixedSizeListVector=function(_super){function FixedSizeListVector(data,view){return void 0===view&&(view=new _list.FixedSizeListView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(FixedSizeListVector,_super),FixedSizeListVector}(Vector);exports.FixedSizeListVector=FixedSizeListVector;var MapVector=function(_super){function MapVector(data,view){return void 0===view&&(view=new _nested.MapView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(MapVector,_super),MapVector.prototype.asStruct=function(){return new StructVector(this.data.clone(new _type2.Struct(this.type.children)))},MapVector}(NestedVector);exports.MapVector=MapVector;var StructVector=function(_super){function StructVector(data,view){return void 0===view&&(view=new _nested.StructView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(StructVector,_super),StructVector.prototype.asMap=function(keysSorted){return void 0===keysSorted&&(keysSorted=!1),new MapVector(this.data.clone(new _type2.Map_(keysSorted,this.type.children)))},StructVector}(NestedVector);exports.StructVector=StructVector;var UnionVector=function(_super){function UnionVector(data,view){return void 0===view&&(view=data.type.mode===_type2.UnionMode.Sparse?new _nested.UnionView(data):new _nested.DenseUnionView(data)),_super.call(this,data,view)||this}return tslib_1.__extends(UnionVector,_super),UnionVector}(NestedVector);exports.UnionVector=UnionVector;var DictionaryVector=function(_super){function DictionaryVector(data,view){void 0===view&&(view=new _dictionary.DictionaryView(data.dictionary,new IntVector(data.indices)));var _this=_super.call(this,data,view)||this;if(view instanceof _flat.ValidityView&&(view=view.view),data instanceof _data.DictionaryData&&view instanceof _dictionary.DictionaryView)_this.indices=view.indices,_this.dictionary=data.dictionary;else{if(!(data instanceof _data.ChunkedData&&view instanceof _chunked.ChunkedView))throw new TypeError("Unrecognized DictionaryVector view");var chunks=view.chunkVectors;_this.dictionary=chunks[chunks.length-1].dictionary,_this.indices=chunks.reduce(function(idxs,dict){return idxs?idxs.concat(dict.indices):dict.indices},null)}return _this}return tslib_1.__extends(DictionaryVector,_super),DictionaryVector.prototype.getKey=function(index){return this.indices.get(index)},DictionaryVector.prototype.getValue=function(key){return this.dictionary.get(key)},DictionaryVector.prototype.reverseLookup=function(value){return this.dictionary.indexOf(value)},DictionaryVector}(Vector);exports.DictionaryVector=DictionaryVector;var createVector=exports.createVector=function(VectorLoader){return function(data){return _visitor.TypeVisitor.visitTypeInline(new VectorLoader(data),data.type)}}(function(_super){function VectorLoader(data){var _this=_super.call(this)||this;return _this.data=data,_this}return tslib_1.__extends(VectorLoader,_super),VectorLoader.prototype.visitNull=function(_type){return new NullVector(this.data)},VectorLoader.prototype.visitInt=function(_type){return new IntVector(this.data)},VectorLoader.prototype.visitFloat=function(_type){return new FloatVector(this.data)},VectorLoader.prototype.visitBinary=function(_type){return new BinaryVector(this.data)},VectorLoader.prototype.visitUtf8=function(_type){return new Utf8Vector(this.data)},VectorLoader.prototype.visitBool=function(_type){return new BoolVector(this.data)},VectorLoader.prototype.visitDecimal=function(_type){return new DecimalVector(this.data)},VectorLoader.prototype.visitDate=function(_type){return new DateVector(this.data)},VectorLoader.prototype.visitTime=function(_type){return new TimeVector(this.data)},VectorLoader.prototype.visitTimestamp=function(_type){return new TimestampVector(this.data)},VectorLoader.prototype.visitInterval=function(_type){return new IntervalVector(this.data)},VectorLoader.prototype.visitList=function(_type){return new ListVector(this.data)},VectorLoader.prototype.vis