@loaders.gl/las 3.1.0-alpha.1 → 4.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dist.min.js DELETED
@@ -1,2 +0,0 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=85)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.strideForType=t.Dictionary=t.Map_=t.FixedSizeList=t.FixedSizeBinary=t.SparseUnion=t.DenseUnion=t.Union=t.Struct=t.List=t.IntervalYearMonth=t.IntervalDayTime=t.Interval=t.TimestampNanosecond=t.TimestampMicrosecond=t.TimestampMillisecond=t.TimestampSecond=t.Timestamp=t.TimeNanosecond=t.TimeMicrosecond=t.TimeMillisecond=t.TimeSecond=t.Time=t.DateMillisecond=t.DateDay=t.Date_=t.Decimal=t.Bool=t.Utf8=t.Binary=t.Float64=t.Float32=t.Float16=t.Float=t.Uint64=t.Uint32=t.Uint16=t.Uint8=t.Int64=t.Int32=t.Int16=t.Int8=t.Int=t.Null=t.DataType=void 0;const n=r(1);class i{static isNull(e){return e&&e.typeId===n.Type.Null}static isInt(e){return e&&e.typeId===n.Type.Int}static isFloat(e){return e&&e.typeId===n.Type.Float}static isBinary(e){return e&&e.typeId===n.Type.Binary}static isUtf8(e){return e&&e.typeId===n.Type.Utf8}static isBool(e){return e&&e.typeId===n.Type.Bool}static isDecimal(e){return e&&e.typeId===n.Type.Decimal}static isDate(e){return e&&e.typeId===n.Type.Date}static isTime(e){return e&&e.typeId===n.Type.Time}static isTimestamp(e){return e&&e.typeId===n.Type.Timestamp}static isInterval(e){return e&&e.typeId===n.Type.Interval}static isList(e){return e&&e.typeId===n.Type.List}static isStruct(e){return e&&e.typeId===n.Type.Struct}static isUnion(e){return e&&e.typeId===n.Type.Union}static isFixedSizeBinary(e){return e&&e.typeId===n.Type.FixedSizeBinary}static isFixedSizeList(e){return e&&e.typeId===n.Type.FixedSizeList}static isMap(e){return e&&e.typeId===n.Type.Map}static isDictionary(e){return e&&e.typeId===n.Type.Dictionary}get typeId(){return n.Type.NONE}}var o;t.DataType=i,i[Symbol.toStringTag]=((o=i.prototype).children=null,o.ArrayType=Array,o[Symbol.toStringTag]="DataType");class s extends i{toString(){return"Null"}get typeId(){return n.Type.Null}}t.Null=s,s[Symbol.toStringTag]=(e=>e[Symbol.toStringTag]="Null")(s.prototype);class a extends i{constructor(e,t){super(),this.isSigned=e,this.bitWidth=t}get typeId(){return n.Type.Int}get ArrayType(){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[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}t.Int=a,a[Symbol.toStringTag]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(a.prototype);class c extends a{constructor(){super(!0,8)}}t.Int8=c;class u extends a{constructor(){super(!0,16)}}t.Int16=u;class l extends a{constructor(){super(!0,32)}}t.Int32=l;class d extends a{constructor(){super(!0,64)}}t.Int64=d;class f extends a{constructor(){super(!1,8)}}t.Uint8=f;class h extends a{constructor(){super(!1,16)}}t.Uint16=h;class A extends a{constructor(){super(!1,32)}}t.Uint32=A;class p extends a{constructor(){super(!1,64)}}t.Uint64=p,Object.defineProperty(c.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(u.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(l.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(d.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(f.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(h.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(A.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(p.prototype,"ArrayType",{value:Uint32Array});class y extends i{constructor(e){super(),this.precision=e}get typeId(){return n.Type.Float}get ArrayType(){switch(this.precision){case n.Precision.HALF:return Uint16Array;case n.Precision.SINGLE:return Float32Array;case n.Precision.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return"Float"+(this.precision<<5||16)}}t.Float=y,y[Symbol.toStringTag]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(y.prototype);class b extends y{constructor(){super(n.Precision.HALF)}}t.Float16=b;class m extends y{constructor(){super(n.Precision.SINGLE)}}t.Float32=m;class g extends y{constructor(){super(n.Precision.DOUBLE)}}t.Float64=g,Object.defineProperty(b.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(m.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(g.prototype,"ArrayType",{value:Float64Array});class v extends i{constructor(){super()}get typeId(){return n.Type.Binary}toString(){return"Binary"}}t.Binary=v,v[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(v.prototype);class B extends i{constructor(){super()}get typeId(){return n.Type.Utf8}toString(){return"Utf8"}}t.Utf8=B,B[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(B.prototype);class _ extends i{constructor(){super()}get typeId(){return n.Type.Bool}toString(){return"Bool"}}t.Bool=_,_[Symbol.toStringTag]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(_.prototype);class T extends i{constructor(e,t){super(),this.scale=e,this.precision=t}get typeId(){return n.Type.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}t.Decimal=T,T[Symbol.toStringTag]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(T.prototype);class w extends i{constructor(e){super(),this.unit=e}get typeId(){return n.Type.Date}toString(){return`Date${32*(this.unit+1)}<${n.DateUnit[this.unit]}>`}}t.Date_=w,w[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"))(w.prototype);t.DateDay=class extends w{constructor(){super(n.DateUnit.DAY)}};t.DateMillisecond=class extends w{constructor(){super(n.DateUnit.MILLISECOND)}};class V extends i{constructor(e,t){super(),this.unit=e,this.bitWidth=t}get typeId(){return n.Type.Time}toString(){return`Time${this.bitWidth}<${n.TimeUnit[this.unit]}>`}}t.Time=V,V[Symbol.toStringTag]=(e=>(e.unit=null,e.bitWidth=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Time"))(V.prototype);t.TimeSecond=class extends V{constructor(){super(n.TimeUnit.SECOND,32)}};t.TimeMillisecond=class extends V{constructor(){super(n.TimeUnit.MILLISECOND,32)}};t.TimeMicrosecond=class extends V{constructor(){super(n.TimeUnit.MICROSECOND,64)}};t.TimeNanosecond=class extends V{constructor(){super(n.TimeUnit.NANOSECOND,64)}};class I extends i{constructor(e,t){super(),this.unit=e,this.timezone=t}get typeId(){return n.Type.Timestamp}toString(){return`Timestamp<${n.TimeUnit[this.unit]}${this.timezone?", "+this.timezone:""}>`}}t.Timestamp=I,I[Symbol.toStringTag]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"))(I.prototype);t.TimestampSecond=class extends I{constructor(e){super(n.TimeUnit.SECOND,e)}};t.TimestampMillisecond=class extends I{constructor(e){super(n.TimeUnit.MILLISECOND,e)}};t.TimestampMicrosecond=class extends I{constructor(e){super(n.TimeUnit.MICROSECOND,e)}};t.TimestampNanosecond=class extends I{constructor(e){super(n.TimeUnit.NANOSECOND,e)}};class F extends i{constructor(e){super(),this.unit=e}get typeId(){return n.Type.Interval}toString(){return`Interval<${n.IntervalUnit[this.unit]}>`}}t.Interval=F,F[Symbol.toStringTag]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(F.prototype);t.IntervalDayTime=class extends F{constructor(){super(n.IntervalUnit.DAY_TIME)}};t.IntervalYearMonth=class extends F{constructor(){super(n.IntervalUnit.YEAR_MONTH)}};class U extends i{constructor(e){super(),this.children=[e]}get typeId(){return n.Type.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}t.List=U,U[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(U.prototype);class S extends i{constructor(e){super(),this.children=e}get typeId(){return n.Type.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}t.Struct=S,S[Symbol.toStringTag]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(S.prototype);class M extends i{constructor(e,t,r){super(),this.mode=e,this.children=r,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce((e,t,r)=>(e[t]=r)&&e||e,Object.create(null))}get typeId(){return n.Type.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>""+e.type).join(" | ")}>`}}t.Union=M,M[Symbol.toStringTag]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(M.prototype);t.DenseUnion=class extends M{constructor(e,t){super(n.UnionMode.Dense,e,t)}};t.SparseUnion=class extends M{constructor(e,t){super(n.UnionMode.Sparse,e,t)}};class O extends i{constructor(e){super(),this.byteWidth=e}get typeId(){return n.Type.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}t.FixedSizeBinary=O,O[Symbol.toStringTag]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(O.prototype);class R extends i{constructor(e,t){super(),this.listSize=e,this.children=[t]}get typeId(){return n.Type.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}t.FixedSizeList=R,R[Symbol.toStringTag]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(R.prototype);class D extends i{constructor(e,t=!1){super(),this.children=[e],this.keysSorted=t}get typeId(){return n.Type.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}t.Map_=D,D[Symbol.toStringTag]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(D.prototype);const N=(Z=-1,()=>++Z);var Z;class k extends i{constructor(e,t,r,n){super(),this.indices=t,this.dictionary=e,this.isOrdered=n||!1,this.id=null==r?N():"number"==typeof r?r:r.low}get typeId(){return n.Type.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}t.Dictionary=k,k[Symbol.toStringTag]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(k.prototype),t.strideForType=function(e){const t=e;switch(e.typeId){case n.Type.Decimal:return 4;case n.Type.Timestamp:return 2;case n.Type.Date:case n.Type.Interval:return 1+t.unit;case n.Type.Int:case n.Type.Time:return+(t.bitWidth>32)+1;case n.Type.FixedSizeList:return t.listSize;case n.Type.FixedSizeBinary:return t.byteWidth;default:return 1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferType=t.Type=t.MessageHeader=t.MetadataVersion=t.IntervalUnit=t.UnionMode=t.Precision=t.TimeUnit=t.DateUnit=void 0;var n=r(16);Object.defineProperty(t,"DateUnit",{enumerable:!0,get:function(){return n.DateUnit}}),Object.defineProperty(t,"TimeUnit",{enumerable:!0,get:function(){return n.TimeUnit}}),Object.defineProperty(t,"Precision",{enumerable:!0,get:function(){return n.Precision}}),Object.defineProperty(t,"UnionMode",{enumerable:!0,get:function(){return n.UnionMode}}),Object.defineProperty(t,"IntervalUnit",{enumerable:!0,get:function(){return n.IntervalUnit}}),Object.defineProperty(t,"MetadataVersion",{enumerable:!0,get:function(){return n.MetadataVersion}});var i=r(33);Object.defineProperty(t,"MessageHeader",{enumerable:!0,get:function(){return i.MessageHeader}}),function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth"}(t.Type||(t.Type={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(t.BufferType||(t.BufferType={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VariableWidthBuilder=t.FixedWidthBuilder=t.Builder=void 0;const n=r(3),i=r(1),o=r(10),s=r(90),a=r(17),c=r(0);class u{constructor({type:e,nullValues:t}){this.length=0,this.finished=!1,this.type=e,this.children=[],this.nullValues=t,this.stride=c.strideForType(e),this._nulls=new a.BitmapBufferBuilder,t&&t.length>0&&(this._isValid=s.createIsValidFunction(t))}static new(e){}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e){throw new Error('"throughDOM" not available in this environment')}static throughIterable(e){return function(e){const{queueingStrategy:t="count"}=e,{highWaterMark:r=("bytes"!==t?1e3:16384)}=e,n="bytes"!==t?"length":"byteLength";return function*(t){let i=0;const o=u.new(e);for(const e of t)o.append(e)[n]>=r&&++i&&(yield o.toVector());(o.finish().length>0||0===i)&&(yield o.toVector())}}(e)}static throughAsyncIterable(e){return function(e){const{queueingStrategy:t="count"}=e,{highWaterMark:r=("bytes"!==t?1e3:16384)}=e,n="bytes"!==t?"length":"byteLength";return async function*(t){let i=0;const o=u.new(e);for await(const e of t)o.append(e)[n]>=r&&++i&&(yield o.toVector());(o.finish().length>0||0===i)&&(yield o.toVector())}}(e)}toVector(){return n.Vector.new(this.flush())}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let e=0;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),this._typeIds&&(e+=this._typeIds.byteLength),this.children.reduce((e,t)=>e+t.byteLength,e)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let e=0;return this._offsets&&(e+=this._offsets.reservedByteLength),this._values&&(e+=this._values.reservedByteLength),this._nulls&&(e+=this._nulls.reservedByteLength),this._typeIds&&(e+=this._typeIds.reservedByteLength),this.children.reduce((e,t)=>e+t.reservedByteLength,e)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(e){return this.set(this.length,e)}isValid(e){return this._isValid(e)}set(e,t){return this.setValid(e,this.isValid(t))&&this.setValue(e,t),this}setValue(e,t){this._setValue(this,e,t)}setValid(e,t){return this.length=this._nulls.set(e,+t).length,t}addChild(e,t=""+this.numChildren){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(e){return this.children[e]||null}flush(){const e=[],t=this._values,r=this._offsets,n=this._typeIds,{length:s,nullCount:a}=this;n?(e[i.BufferType.TYPE]=n.flush(s),r&&(e[i.BufferType.OFFSET]=r.flush(s))):r?(t&&(e[i.BufferType.DATA]=t.flush(r.last())),e[i.BufferType.OFFSET]=r.flush(s)):t&&(e[i.BufferType.DATA]=t.flush(s)),a>0&&(e[i.BufferType.VALIDITY]=this._nulls.flush(s));const c=o.Data.new(this.type,0,s,a,e,this.children.map(e=>e.flush()));return this.clear(),c}finish(){return this.finished=!0,this.children.forEach(e=>e.finish()),this}clear(){return this.length=0,this._offsets&&this._offsets.clear(),this._values&&this._values.clear(),this._nulls&&this._nulls.clear(),this._typeIds&&this._typeIds.clear(),this.children.forEach(e=>e.clear()),this}}t.Builder=u,u.prototype.length=1,u.prototype.stride=1,u.prototype.children=null,u.prototype.finished=!1,u.prototype.nullValues=null,u.prototype._isValid=()=>!0;t.FixedWidthBuilder=class extends u{constructor(e){super(e),this._values=new a.DataBufferBuilder(new this.ArrayType(0),this.stride)}setValue(e,t){const r=this._values;return r.reserve(e-r.length+1),super.setValue(e,t)}};t.VariableWidthBuilder=class extends u{constructor(e){super(e),this._pendingLength=0,this._offsets=new a.OffsetsBufferBuilder}setValue(e,t){const r=this._pending||(this._pending=new Map),n=r.get(e);n&&(this._pendingLength-=n.length),this._pendingLength+=t.length,r.set(e,t)}setValid(e,t){return!!super.setValid(e,t)||((this._pending||(this._pending=new Map)).set(e,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){const e=this._pending,t=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,t),this}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vector=t.AbstractVector=void 0;class n{}t.AbstractVector=n,t.Vector=n,n.prototype.data=null},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseVector=void 0;const n=r(1),i=r(19),o=r(30),s=r(3);class a extends s.AbstractVector{constructor(e,t){super(),this._children=t,this.numChildren=e.childData.length,this._bindDataAccessors(this.data=e)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return n.Type[this.typeId]+"Vector"}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(e,t=this._children){return s.Vector.new(e,t)}concat(...e){return i.Chunked.concat(this,...e)}slice(e,t){return o.clampRange(this,e,t,this._sliceInternal)}isValid(e){if(this.nullCount>0){const t=this.offset+e;return 0!==(this.nullBitmap[t>>3]&1<<t%8)}return!0}getChildAt(e){return e<0||e>=this.numChildren?null:(this._children||(this._children=[]))[e]||(this._children[e]=s.Vector.new(this.data.childData[e]))}toJSON(){return[...this]}_sliceInternal(e,t,r){return e.clone(e.data.slice(t,r-t),null)}_bindDataAccessors(e){}}t.BaseVector=a,a.prototype[Symbol.isConcatSpreadable]=!0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareArrayLike=t.rebaseValueOffsets=t.toUint8ClampedArrayAsyncIterator=t.toFloat64ArrayAsyncIterator=t.toFloat32ArrayAsyncIterator=t.toUint32ArrayAsyncIterator=t.toUint16ArrayAsyncIterator=t.toUint8ArrayAsyncIterator=t.toInt32ArrayAsyncIterator=t.toInt16ArrayAsyncIterator=t.toInt8ArrayAsyncIterator=t.toArrayBufferViewAsyncIterator=t.toUint8ClampedArrayIterator=t.toFloat64ArrayIterator=t.toFloat32ArrayIterator=t.toUint32ArrayIterator=t.toUint16ArrayIterator=t.toUint8ArrayIterator=t.toInt32ArrayIterator=t.toInt16ArrayIterator=t.toInt8ArrayIterator=t.toArrayBufferViewIterator=t.toUint8ClampedArray=t.toFloat64Array=t.toFloat32Array=t.toBigUint64Array=t.toUint32Array=t.toUint16Array=t.toUint8Array=t.toBigInt64Array=t.toInt32Array=t.toInt16Array=t.toInt8Array=t.toArrayBufferView=t.joinUint8Arrays=t.memcpy=void 0;const n=r(14),i=r(20);var o=n.flatbuffers.ByteBuffer;const s=r(9),a="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function c(e,t,r=0,n=t.byteLength){const i=e.byteLength,o=new Uint8Array(e.buffer,e.byteOffset,i),s=new Uint8Array(t.buffer,t.byteOffset,Math.min(n,i));return o.set(s,r),e}function u(e,t){let r=s.isIteratorResult(t)?t.value:t;return r instanceof e?e===Uint8Array?new e(r.buffer,r.byteOffset,r.byteLength):r:r?("string"==typeof r&&(r=i.encodeUtf8(r)),r instanceof ArrayBuffer||r instanceof a?new e(r):r instanceof o?u(e,r.bytes()):ArrayBuffer.isView(r)?r.byteLength<=0?new e(0):new e(r.buffer,r.byteOffset,r.byteLength/e.BYTES_PER_ELEMENT):e.from(r)):new e(0)}t.memcpy=c,t.joinUint8Arrays=function(e,t){const r=function(e){const t=e[0]?[e[0]]:[];let r,n,i,o;for(let s,a,c=0,u=0,l=e.length;++c<l;)s=t[u],a=e[c],!s||!a||s.buffer!==a.buffer||a.byteOffset<s.byteOffset?a&&(t[++u]=a):(({byteOffset:r,byteLength:i}=s),({byteOffset:n,byteLength:o}=a),r+i<n||n+o<r?a&&(t[++u]=a):t[u]=new Uint8Array(s.buffer,r,n-r+o));return t}(e),n=r.reduce((e,t)=>e+t.byteLength,0);let i,o,s,a=0,u=-1;const l=Math.min(t||1/0,n);for(let e=r.length;++u<e;){if(i=r[u],o=i.subarray(0,Math.min(i.length,l-a)),l<=a+o.length){o.length<i.length?r[u]=i.subarray(o.length):o.length===i.length&&u++,s?c(s,o,a):s=o;break}c(s||(s=new Uint8Array(l)),o,a),a+=o.length}return[s||new Uint8Array(0),r.slice(u),n-(s?s.byteLength:0)]},t.toArrayBufferView=u,t.toInt8Array=e=>u(Int8Array,e),t.toInt16Array=e=>u(Int16Array,e),t.toInt32Array=e=>u(Int32Array,e),t.toBigInt64Array=e=>u(s.BigInt64Array,e),t.toUint8Array=e=>u(Uint8Array,e),t.toUint16Array=e=>u(Uint16Array,e),t.toUint32Array=e=>u(Uint32Array,e),t.toBigUint64Array=e=>u(s.BigUint64Array,e),t.toFloat32Array=e=>u(Float32Array,e),t.toFloat64Array=e=>u(Float64Array,e),t.toUint8ClampedArray=e=>u(Uint8ClampedArray,e);const l=e=>(e.next(),e);function*d(e,t){const r=function*(e){yield e},n="string"==typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof a?r(t):s.isIterable(t)?t:r(t);return yield*l(function*(t){let r=null;do{r=t.next(yield u(e,r))}while(!r.done)}(n[Symbol.iterator]())),new e}async function*f(e,t){if(s.isPromise(t))return yield*f(e,await t);const r=async function*(e){yield await e},n="string"==typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof a?r(t):s.isIterable(t)?async function*(e){yield*l(function*(e){let t=null;do{t=e.next(yield t&&t.value)}while(!t.done)}(e[Symbol.iterator]()))}(t):s.isAsyncIterable(t)?t:r(t);return yield*l(async function*(t){let r=null;do{r=await t.next(yield u(e,r))}while(!r.done)}(n[Symbol.asyncIterator]())),new e}t.toArrayBufferViewIterator=d,t.toInt8ArrayIterator=e=>d(Int8Array,e),t.toInt16ArrayIterator=e=>d(Int16Array,e),t.toInt32ArrayIterator=e=>d(Int32Array,e),t.toUint8ArrayIterator=e=>d(Uint8Array,e),t.toUint16ArrayIterator=e=>d(Uint16Array,e),t.toUint32ArrayIterator=e=>d(Uint32Array,e),t.toFloat32ArrayIterator=e=>d(Float32Array,e),t.toFloat64ArrayIterator=e=>d(Float64Array,e),t.toUint8ClampedArrayIterator=e=>d(Uint8ClampedArray,e),t.toArrayBufferViewAsyncIterator=f,t.toInt8ArrayAsyncIterator=e=>f(Int8Array,e),t.toInt16ArrayAsyncIterator=e=>f(Int16Array,e),t.toInt32ArrayAsyncIterator=e=>f(Int32Array,e),t.toUint8ArrayAsyncIterator=e=>f(Uint8Array,e),t.toUint16ArrayAsyncIterator=e=>f(Uint16Array,e),t.toUint32ArrayAsyncIterator=e=>f(Uint32Array,e),t.toFloat32ArrayAsyncIterator=e=>f(Float32Array,e),t.toFloat64ArrayAsyncIterator=e=>f(Float64Array,e),t.toUint8ClampedArrayAsyncIterator=e=>f(Uint8ClampedArray,e),t.rebaseValueOffsets=function(e,t,r){if(0!==e){r=r.slice(0,t+1);for(let n=-1;++n<=t;)r[n]+=e}return r},t.compareArrayLike=function(e,t){let r=0;const n=e.length;if(n!==t.length)return!1;if(n>0)do{if(e[r]!==t[r])return!1}while(++r<n);return!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Field=t.Schema=void 0;const n=r(0);class i{constructor(e=[],t,r){this.fields=e||[],this.metadata=t||new Map,r||(r=a(e)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}toString(){return`Schema<{ ${this.fields.map((e,t)=>`${t}: ${e}`).join(", ")} }>`}select(...e){const t=e.reduce((e,t)=>(e[t]=!0)&&e,Object.create(null));return new i(this.fields.filter(e=>t[e.name]),this.metadata)}selectAt(...e){return new i(e.map(e=>this.fields[e]).filter(Boolean),this.metadata)}assign(...e){const t=e[0]instanceof i?e[0]:Array.isArray(e[0])?new i(e[0]):new i(e),r=[...this.fields],n=s(s(new Map,this.metadata),t.metadata),o=t.fields.filter(e=>{const t=r.findIndex(t=>t.name===e.name);return!~t||(r[t]=e.clone({metadata:s(s(new Map,r[t].metadata),e.metadata)}))&&!1}),c=a(o,new Map);return new i([...r,...o],n,new Map([...this.dictionaries,...c]))}}t.Schema=i;class o{constructor(e,t,r=!1,n){this.name=e,this.type=t,this.nullable=r,this.metadata=n||new Map}static new(...e){let[t,r,n,i]=e;return e[0]&&"object"==typeof e[0]&&(({name:t}=e[0]),void 0===r&&(r=e[0].type),void 0===n&&(n=e[0].nullable),void 0===i&&(i=e[0].metadata)),new o(""+t,r,n,i)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[t,r,n,i]=e;return e[0]&&"object"==typeof e[0]?({name:t=this.name,type:r=this.type,nullable:n=this.nullable,metadata:i=this.metadata}=e[0]):[t=this.name,r=this.type,n=this.nullable,i=this.metadata]=e,o.new(t,r,n,i)}}function s(e,t){return new Map([...e||new Map,...t||new Map])}function a(e,t=new Map){for(let r=-1,i=e.length;++r<i;){const i=e[r].type;if(n.DataType.isDictionary(i))if(t.has(i.id)){if(t.get(i.id)!==i.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else t.set(i.id,i.dictionary);i.children&&i.children.length>0&&a(i.children,t)}return t}t.Field=o,i.prototype.fields=null,i.prototype.metadata=null,i.prototype.dictionaries=null,o.prototype.type=null,o.prototype.name=null,o.prototype.nullable=null,o.prototype.metadata=null},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8Builder=t.SparseUnionBuilder=t.DenseUnionBuilder=t.UnionBuilder=t.TimeNanosecondBuilder=t.TimeMicrosecondBuilder=t.TimeMillisecondBuilder=t.TimeSecondBuilder=t.TimeBuilder=t.TimestampNanosecondBuilder=t.TimestampMicrosecondBuilder=t.TimestampMillisecondBuilder=t.TimestampSecondBuilder=t.TimestampBuilder=t.StructBuilder=t.NullBuilder=t.MapBuilder=t.ListBuilder=t.Uint64Builder=t.Uint32Builder=t.Uint16Builder=t.Uint8Builder=t.Int64Builder=t.Int32Builder=t.Int16Builder=t.Int8Builder=t.IntBuilder=t.IntervalYearMonthBuilder=t.IntervalDayTimeBuilder=t.IntervalBuilder=t.Float64Builder=t.Float32Builder=t.Float16Builder=t.FloatBuilder=t.FixedSizeListBuilder=t.FixedSizeBinaryBuilder=t.DictionaryBuilder=t.DecimalBuilder=t.DateMillisecondBuilder=t.DateDayBuilder=t.DateBuilder=t.BoolBuilder=t.BinaryBuilder=t.Builder=t.util=t.predicate=t.CountByResult=t.FilteredDataFrame=t.DataFrame=t.RecordBatch=t.Message=t.JSONMessageReader=t.AsyncMessageReader=t.MessageReader=t.RecordBatchJSONWriter=t.RecordBatchStreamWriter=t.RecordBatchFileWriter=t.RecordBatchWriter=t.AsyncRecordBatchStreamReader=t.AsyncRecordBatchFileReader=t.RecordBatchStreamReader=t.RecordBatchFileReader=t.RecordBatchReader=t.AsyncByteQueue=t.AsyncByteStream=t.ByteStream=t.Utf8Vector=t.SparseUnionVector=t.DenseUnionVector=t.UnionVector=t.TimeNanosecondVector=t.TimeMicrosecondVector=t.TimeMillisecondVector=t.TimeSecondVector=t.TimeVector=t.TimestampNanosecondVector=t.TimestampMicrosecondVector=t.TimestampMillisecondVector=t.TimestampSecondVector=t.TimestampVector=t.StructVector=t.NullVector=t.MapVector=t.ListVector=t.Uint64Vector=t.Uint32Vector=t.Uint16Vector=t.Uint8Vector=t.Int64Vector=t.Int32Vector=t.Int16Vector=t.Int8Vector=t.IntVector=t.IntervalYearMonthVector=t.IntervalDayTimeVector=t.IntervalVector=t.Float64Vector=t.Float32Vector=t.Float16Vector=t.FloatVector=t.FixedSizeListVector=t.FixedSizeBinaryVector=t.DictionaryVector=t.DecimalVector=t.DateMillisecondVector=t.DateDayVector=t.DateVector=t.Chunked=t.BoolVector=t.BinaryVector=t.BaseVector=t.Vector=t.Visitor=t.Field=t.Schema=t.Column=t.Table=t.Map_=t.FixedSizeList=t.IntervalYearMonth=t.IntervalDayTime=t.Interval=t.Dictionary=t.SparseUnion=t.DenseUnion=t.Union=t.Struct=t.List=t.Decimal=t.TimeNanosecond=t.TimeMicrosecond=t.TimeMillisecond=t.TimeSecond=t.Time=t.TimestampNanosecond=t.TimestampMicrosecond=t.TimestampMillisecond=t.TimestampSecond=t.Timestamp=t.DateMillisecond=t.DateDay=t.Date_=t.FixedSizeBinary=t.Binary=t.Utf8=t.Float64=t.Float32=t.Float16=t.Float=t.Uint64=t.Uint32=t.Uint16=t.Uint8=t.Int64=t.Int32=t.Int16=t.Int8=t.Int=t.Bool=t.Null=t.DataType=t.Data=t.BufferType=t.UnionMode=t.Type=t.TimeUnit=t.Precision=t.MetadataVersion=t.MessageHeader=t.IntervalUnit=t.DateUnit=void 0;const n=r(25),i=r(32),o=r(28),s=r(36),a=r(104),c=r(105),u=r(106),l=r(107);n.default.toDOMStream=a.toDOMStream,i.Builder.throughDOM=c.builderThroughDOMStream,o.RecordBatchReader.throughDOM=u.recordBatchReaderThroughDOMStream,o.RecordBatchFileReader.throughDOM=u.recordBatchReaderThroughDOMStream,o.RecordBatchStreamReader.throughDOM=u.recordBatchReaderThroughDOMStream,s.RecordBatchWriter.throughDOM=l.recordBatchWriterThroughDOMStream,s.RecordBatchFileWriter.throughDOM=l.recordBatchWriterThroughDOMStream,s.RecordBatchStreamWriter.throughDOM=l.recordBatchWriterThroughDOMStream;var d=r(11);Object.defineProperty(t,"DateUnit",{enumerable:!0,get:function(){return d.DateUnit}}),Object.defineProperty(t,"IntervalUnit",{enumerable:!0,get:function(){return d.IntervalUnit}}),Object.defineProperty(t,"MessageHeader",{enumerable:!0,get:function(){return d.MessageHeader}}),Object.defineProperty(t,"MetadataVersion",{enumerable:!0,get:function(){return d.MetadataVersion}}),Object.defineProperty(t,"Precision",{enumerable:!0,get:function(){return d.Precision}}),Object.defineProperty(t,"TimeUnit",{enumerable:!0,get:function(){return d.TimeUnit}}),Object.defineProperty(t,"Type",{enumerable:!0,get:function(){return d.Type}}),Object.defineProperty(t,"UnionMode",{enumerable:!0,get:function(){return d.UnionMode}}),Object.defineProperty(t,"BufferType",{enumerable:!0,get:function(){return d.BufferType}}),Object.defineProperty(t,"Data",{enumerable:!0,get:function(){return d.Data}}),Object.defineProperty(t,"DataType",{enumerable:!0,get:function(){return d.DataType}}),Object.defineProperty(t,"Null",{enumerable:!0,get:function(){return d.Null}}),Object.defineProperty(t,"Bool",{enumerable:!0,get:function(){return d.Bool}}),Object.defineProperty(t,"Int",{enumerable:!0,get:function(){return d.Int}}),Object.defineProperty(t,"Int8",{enumerable:!0,get:function(){return d.Int8}}),Object.defineProperty(t,"Int16",{enumerable:!0,get:function(){return d.Int16}}),Object.defineProperty(t,"Int32",{enumerable:!0,get:function(){return d.Int32}}),Object.defineProperty(t,"Int64",{enumerable:!0,get:function(){return d.Int64}}),Object.defineProperty(t,"Uint8",{enumerable:!0,get:function(){return d.Uint8}}),Object.defineProperty(t,"Uint16",{enumerable:!0,get:function(){return d.Uint16}}),Object.defineProperty(t,"Uint32",{enumerable:!0,get:function(){return d.Uint32}}),Object.defineProperty(t,"Uint64",{enumerable:!0,get:function(){return d.Uint64}}),Object.defineProperty(t,"Float",{enumerable:!0,get:function(){return d.Float}}),Object.defineProperty(t,"Float16",{enumerable:!0,get:function(){return d.Float16}}),Object.defineProperty(t,"Float32",{enumerable:!0,get:function(){return d.Float32}}),Object.defineProperty(t,"Float64",{enumerable:!0,get:function(){return d.Float64}}),Object.defineProperty(t,"Utf8",{enumerable:!0,get:function(){return d.Utf8}}),Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return d.Binary}}),Object.defineProperty(t,"FixedSizeBinary",{enumerable:!0,get:function(){return d.FixedSizeBinary}}),Object.defineProperty(t,"Date_",{enumerable:!0,get:function(){return d.Date_}}),Object.defineProperty(t,"DateDay",{enumerable:!0,get:function(){return d.DateDay}}),Object.defineProperty(t,"DateMillisecond",{enumerable:!0,get:function(){return d.DateMillisecond}}),Object.defineProperty(t,"Timestamp",{enumerable:!0,get:function(){return d.Timestamp}}),Object.defineProperty(t,"TimestampSecond",{enumerable:!0,get:function(){return d.TimestampSecond}}),Object.defineProperty(t,"TimestampMillisecond",{enumerable:!0,get:function(){return d.TimestampMillisecond}}),Object.defineProperty(t,"TimestampMicrosecond",{enumerable:!0,get:function(){return d.TimestampMicrosecond}}),Object.defineProperty(t,"TimestampNanosecond",{enumerable:!0,get:function(){return d.TimestampNanosecond}}),Object.defineProperty(t,"Time",{enumerable:!0,get:function(){return d.Time}}),Object.defineProperty(t,"TimeSecond",{enumerable:!0,get:function(){return d.TimeSecond}}),Object.defineProperty(t,"TimeMillisecond",{enumerable:!0,get:function(){return d.TimeMillisecond}}),Object.defineProperty(t,"TimeMicrosecond",{enumerable:!0,get:function(){return d.TimeMicrosecond}}),Object.defineProperty(t,"TimeNanosecond",{enumerable:!0,get:function(){return d.TimeNanosecond}}),Object.defineProperty(t,"Decimal",{enumerable:!0,get:function(){return d.Decimal}}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return d.List}}),Object.defineProperty(t,"Struct",{enumerable:!0,get:function(){return d.Struct}}),Object.defineProperty(t,"Union",{enumerable:!0,get:function(){return d.Union}}),Object.defineProperty(t,"DenseUnion",{enumerable:!0,get:function(){return d.DenseUnion}}),Object.defineProperty(t,"SparseUnion",{enumerable:!0,get:function(){return d.SparseUnion}}),Object.defineProperty(t,"Dictionary",{enumerable:!0,get:function(){return d.Dictionary}}),Object.defineProperty(t,"Interval",{enumerable:!0,get:function(){return d.Interval}}),Object.defineProperty(t,"IntervalDayTime",{enumerable:!0,get:function(){return d.IntervalDayTime}}),Object.defineProperty(t,"IntervalYearMonth",{enumerable:!0,get:function(){return d.IntervalYearMonth}}),Object.defineProperty(t,"FixedSizeList",{enumerable:!0,get:function(){return d.FixedSizeList}}),Object.defineProperty(t,"Map_",{enumerable:!0,get:function(){return d.Map_}}),Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return d.Table}}),Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return d.Column}}),Object.defineProperty(t,"Schema",{enumerable:!0,get:function(){return d.Schema}}),Object.defineProperty(t,"Field",{enumerable:!0,get:function(){return d.Field}}),Object.defineProperty(t,"Visitor",{enumerable:!0,get:function(){return d.Visitor}}),Object.defineProperty(t,"Vector",{enumerable:!0,get:function(){return d.Vector}}),Object.defineProperty(t,"BaseVector",{enumerable:!0,get:function(){return d.BaseVector}}),Object.defineProperty(t,"BinaryVector",{enumerable:!0,get:function(){return d.BinaryVector}}),Object.defineProperty(t,"BoolVector",{enumerable:!0,get:function(){return d.BoolVector}}),Object.defineProperty(t,"Chunked",{enumerable:!0,get:function(){return d.Chunked}}),Object.defineProperty(t,"DateVector",{enumerable:!0,get:function(){return d.DateVector}}),Object.defineProperty(t,"DateDayVector",{enumerable:!0,get:function(){return d.DateDayVector}}),Object.defineProperty(t,"DateMillisecondVector",{enumerable:!0,get:function(){return d.DateMillisecondVector}}),Object.defineProperty(t,"DecimalVector",{enumerable:!0,get:function(){return d.DecimalVector}}),Object.defineProperty(t,"DictionaryVector",{enumerable:!0,get:function(){return d.DictionaryVector}}),Object.defineProperty(t,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return d.FixedSizeBinaryVector}}),Object.defineProperty(t,"FixedSizeListVector",{enumerable:!0,get:function(){return d.FixedSizeListVector}}),Object.defineProperty(t,"FloatVector",{enumerable:!0,get:function(){return d.FloatVector}}),Object.defineProperty(t,"Float16Vector",{enumerable:!0,get:function(){return d.Float16Vector}}),Object.defineProperty(t,"Float32Vector",{enumerable:!0,get:function(){return d.Float32Vector}}),Object.defineProperty(t,"Float64Vector",{enumerable:!0,get:function(){return d.Float64Vector}}),Object.defineProperty(t,"IntervalVector",{enumerable:!0,get:function(){return d.IntervalVector}}),Object.defineProperty(t,"IntervalDayTimeVector",{enumerable:!0,get:function(){return d.IntervalDayTimeVector}}),Object.defineProperty(t,"IntervalYearMonthVector",{enumerable:!0,get:function(){return d.IntervalYearMonthVector}}),Object.defineProperty(t,"IntVector",{enumerable:!0,get:function(){return d.IntVector}}),Object.defineProperty(t,"Int8Vector",{enumerable:!0,get:function(){return d.Int8Vector}}),Object.defineProperty(t,"Int16Vector",{enumerable:!0,get:function(){return d.Int16Vector}}),Object.defineProperty(t,"Int32Vector",{enumerable:!0,get:function(){return d.Int32Vector}}),Object.defineProperty(t,"Int64Vector",{enumerable:!0,get:function(){return d.Int64Vector}}),Object.defineProperty(t,"Uint8Vector",{enumerable:!0,get:function(){return d.Uint8Vector}}),Object.defineProperty(t,"Uint16Vector",{enumerable:!0,get:function(){return d.Uint16Vector}}),Object.defineProperty(t,"Uint32Vector",{enumerable:!0,get:function(){return d.Uint32Vector}}),Object.defineProperty(t,"Uint64Vector",{enumerable:!0,get:function(){return d.Uint64Vector}}),Object.defineProperty(t,"ListVector",{enumerable:!0,get:function(){return d.ListVector}}),Object.defineProperty(t,"MapVector",{enumerable:!0,get:function(){return d.MapVector}}),Object.defineProperty(t,"NullVector",{enumerable:!0,get:function(){return d.NullVector}}),Object.defineProperty(t,"StructVector",{enumerable:!0,get:function(){return d.StructVector}}),Object.defineProperty(t,"TimestampVector",{enumerable:!0,get:function(){return d.TimestampVector}}),Object.defineProperty(t,"TimestampSecondVector",{enumerable:!0,get:function(){return d.TimestampSecondVector}}),Object.defineProperty(t,"TimestampMillisecondVector",{enumerable:!0,get:function(){return d.TimestampMillisecondVector}}),Object.defineProperty(t,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return d.TimestampMicrosecondVector}}),Object.defineProperty(t,"TimestampNanosecondVector",{enumerable:!0,get:function(){return d.TimestampNanosecondVector}}),Object.defineProperty(t,"TimeVector",{enumerable:!0,get:function(){return d.TimeVector}}),Object.defineProperty(t,"TimeSecondVector",{enumerable:!0,get:function(){return d.TimeSecondVector}}),Object.defineProperty(t,"TimeMillisecondVector",{enumerable:!0,get:function(){return d.TimeMillisecondVector}}),Object.defineProperty(t,"TimeMicrosecondVector",{enumerable:!0,get:function(){return d.TimeMicrosecondVector}}),Object.defineProperty(t,"TimeNanosecondVector",{enumerable:!0,get:function(){return d.TimeNanosecondVector}}),Object.defineProperty(t,"UnionVector",{enumerable:!0,get:function(){return d.UnionVector}}),Object.defineProperty(t,"DenseUnionVector",{enumerable:!0,get:function(){return d.DenseUnionVector}}),Object.defineProperty(t,"SparseUnionVector",{enumerable:!0,get:function(){return d.SparseUnionVector}}),Object.defineProperty(t,"Utf8Vector",{enumerable:!0,get:function(){return d.Utf8Vector}}),Object.defineProperty(t,"ByteStream",{enumerable:!0,get:function(){return d.ByteStream}}),Object.defineProperty(t,"AsyncByteStream",{enumerable:!0,get:function(){return d.AsyncByteStream}}),Object.defineProperty(t,"AsyncByteQueue",{enumerable:!0,get:function(){return d.AsyncByteQueue}}),Object.defineProperty(t,"RecordBatchReader",{enumerable:!0,get:function(){return d.RecordBatchReader}}),Object.defineProperty(t,"RecordBatchFileReader",{enumerable:!0,get:function(){return d.RecordBatchFileReader}}),Object.defineProperty(t,"RecordBatchStreamReader",{enumerable:!0,get:function(){return d.RecordBatchStreamReader}}),Object.defineProperty(t,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return d.AsyncRecordBatchFileReader}}),Object.defineProperty(t,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return d.AsyncRecordBatchStreamReader}}),Object.defineProperty(t,"RecordBatchWriter",{enumerable:!0,get:function(){return d.RecordBatchWriter}}),Object.defineProperty(t,"RecordBatchFileWriter",{enumerable:!0,get:function(){return d.RecordBatchFileWriter}}),Object.defineProperty(t,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return d.RecordBatchStreamWriter}}),Object.defineProperty(t,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return d.RecordBatchJSONWriter}}),Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return d.MessageReader}}),Object.defineProperty(t,"AsyncMessageReader",{enumerable:!0,get:function(){return d.AsyncMessageReader}}),Object.defineProperty(t,"JSONMessageReader",{enumerable:!0,get:function(){return d.JSONMessageReader}}),Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return d.Message}}),Object.defineProperty(t,"RecordBatch",{enumerable:!0,get:function(){return d.RecordBatch}}),Object.defineProperty(t,"DataFrame",{enumerable:!0,get:function(){return d.DataFrame}}),Object.defineProperty(t,"FilteredDataFrame",{enumerable:!0,get:function(){return d.FilteredDataFrame}}),Object.defineProperty(t,"CountByResult",{enumerable:!0,get:function(){return d.CountByResult}}),Object.defineProperty(t,"predicate",{enumerable:!0,get:function(){return d.predicate}}),Object.defineProperty(t,"util",{enumerable:!0,get:function(){return d.util}}),Object.defineProperty(t,"Builder",{enumerable:!0,get:function(){return d.Builder}}),Object.defineProperty(t,"BinaryBuilder",{enumerable:!0,get:function(){return d.BinaryBuilder}}),Object.defineProperty(t,"BoolBuilder",{enumerable:!0,get:function(){return d.BoolBuilder}}),Object.defineProperty(t,"DateBuilder",{enumerable:!0,get:function(){return d.DateBuilder}}),Object.defineProperty(t,"DateDayBuilder",{enumerable:!0,get:function(){return d.DateDayBuilder}}),Object.defineProperty(t,"DateMillisecondBuilder",{enumerable:!0,get:function(){return d.DateMillisecondBuilder}}),Object.defineProperty(t,"DecimalBuilder",{enumerable:!0,get:function(){return d.DecimalBuilder}}),Object.defineProperty(t,"DictionaryBuilder",{enumerable:!0,get:function(){return d.DictionaryBuilder}}),Object.defineProperty(t,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return d.FixedSizeBinaryBuilder}}),Object.defineProperty(t,"FixedSizeListBuilder",{enumerable:!0,get:function(){return d.FixedSizeListBuilder}}),Object.defineProperty(t,"FloatBuilder",{enumerable:!0,get:function(){return d.FloatBuilder}}),Object.defineProperty(t,"Float16Builder",{enumerable:!0,get:function(){return d.Float16Builder}}),Object.defineProperty(t,"Float32Builder",{enumerable:!0,get:function(){return d.Float32Builder}}),Object.defineProperty(t,"Float64Builder",{enumerable:!0,get:function(){return d.Float64Builder}}),Object.defineProperty(t,"IntervalBuilder",{enumerable:!0,get:function(){return d.IntervalBuilder}}),Object.defineProperty(t,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return d.IntervalDayTimeBuilder}}),Object.defineProperty(t,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return d.IntervalYearMonthBuilder}}),Object.defineProperty(t,"IntBuilder",{enumerable:!0,get:function(){return d.IntBuilder}}),Object.defineProperty(t,"Int8Builder",{enumerable:!0,get:function(){return d.Int8Builder}}),Object.defineProperty(t,"Int16Builder",{enumerable:!0,get:function(){return d.Int16Builder}}),Object.defineProperty(t,"Int32Builder",{enumerable:!0,get:function(){return d.Int32Builder}}),Object.defineProperty(t,"Int64Builder",{enumerable:!0,get:function(){return d.Int64Builder}}),Object.defineProperty(t,"Uint8Builder",{enumerable:!0,get:function(){return d.Uint8Builder}}),Object.defineProperty(t,"Uint16Builder",{enumerable:!0,get:function(){return d.Uint16Builder}}),Object.defineProperty(t,"Uint32Builder",{enumerable:!0,get:function(){return d.Uint32Builder}}),Object.defineProperty(t,"Uint64Builder",{enumerable:!0,get:function(){return d.Uint64Builder}}),Object.defineProperty(t,"ListBuilder",{enumerable:!0,get:function(){return d.ListBuilder}}),Object.defineProperty(t,"MapBuilder",{enumerable:!0,get:function(){return d.MapBuilder}}),Object.defineProperty(t,"NullBuilder",{enumerable:!0,get:function(){return d.NullBuilder}}),Object.defineProperty(t,"StructBuilder",{enumerable:!0,get:function(){return d.StructBuilder}}),Object.defineProperty(t,"TimestampBuilder",{enumerable:!0,get:function(){return d.TimestampBuilder}}),Object.defineProperty(t,"TimestampSecondBuilder",{enumerable:!0,get:function(){return d.TimestampSecondBuilder}}),Object.defineProperty(t,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return d.TimestampMillisecondBuilder}}),Object.defineProperty(t,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return d.TimestampMicrosecondBuilder}}),Object.defineProperty(t,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return d.TimestampNanosecondBuilder}}),Object.defineProperty(t,"TimeBuilder",{enumerable:!0,get:function(){return d.TimeBuilder}}),Object.defineProperty(t,"TimeSecondBuilder",{enumerable:!0,get:function(){return d.TimeSecondBuilder}}),Object.defineProperty(t,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return d.TimeMillisecondBuilder}}),Object.defineProperty(t,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return d.TimeMicrosecondBuilder}}),Object.defineProperty(t,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return d.TimeNanosecondBuilder}}),Object.defineProperty(t,"UnionBuilder",{enumerable:!0,get:function(){return d.UnionBuilder}}),Object.defineProperty(t,"DenseUnionBuilder",{enumerable:!0,get:function(){return d.DenseUnionBuilder}}),Object.defineProperty(t,"SparseUnionBuilder",{enumerable:!0,get:function(){return d.SparseUnionBuilder}}),Object.defineProperty(t,"Utf8Builder",{enumerable:!0,get:function(){return d.Utf8Builder}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Visitor=void 0;const n=r(10),i=r(3),o=r(1),s=r(0);class a{visitMany(e,...t){return e.map((e,r)=>this.visit(e,...t.map(e=>e[r])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return function(e,t,r=!0){let a=null,u=o.Type.NONE;t instanceof n.Data||t instanceof i.Vector?u=c(t.type):t instanceof s.DataType?u=c(t):"number"!=typeof(u=t)&&(u=o.Type[t]);switch(u){case o.Type.Null:a=e.visitNull;break;case o.Type.Bool:a=e.visitBool;break;case o.Type.Int:a=e.visitInt;break;case o.Type.Int8:a=e.visitInt8||e.visitInt;break;case o.Type.Int16:a=e.visitInt16||e.visitInt;break;case o.Type.Int32:a=e.visitInt32||e.visitInt;break;case o.Type.Int64:a=e.visitInt64||e.visitInt;break;case o.Type.Uint8:a=e.visitUint8||e.visitInt;break;case o.Type.Uint16:a=e.visitUint16||e.visitInt;break;case o.Type.Uint32:a=e.visitUint32||e.visitInt;break;case o.Type.Uint64:a=e.visitUint64||e.visitInt;break;case o.Type.Float:a=e.visitFloat;break;case o.Type.Float16:a=e.visitFloat16||e.visitFloat;break;case o.Type.Float32:a=e.visitFloat32||e.visitFloat;break;case o.Type.Float64:a=e.visitFloat64||e.visitFloat;break;case o.Type.Utf8:a=e.visitUtf8;break;case o.Type.Binary:a=e.visitBinary;break;case o.Type.FixedSizeBinary:a=e.visitFixedSizeBinary;break;case o.Type.Date:a=e.visitDate;break;case o.Type.DateDay:a=e.visitDateDay||e.visitDate;break;case o.Type.DateMillisecond:a=e.visitDateMillisecond||e.visitDate;break;case o.Type.Timestamp:a=e.visitTimestamp;break;case o.Type.TimestampSecond:a=e.visitTimestampSecond||e.visitTimestamp;break;case o.Type.TimestampMillisecond:a=e.visitTimestampMillisecond||e.visitTimestamp;break;case o.Type.TimestampMicrosecond:a=e.visitTimestampMicrosecond||e.visitTimestamp;break;case o.Type.TimestampNanosecond:a=e.visitTimestampNanosecond||e.visitTimestamp;break;case o.Type.Time:a=e.visitTime;break;case o.Type.TimeSecond:a=e.visitTimeSecond||e.visitTime;break;case o.Type.TimeMillisecond:a=e.visitTimeMillisecond||e.visitTime;break;case o.Type.TimeMicrosecond:a=e.visitTimeMicrosecond||e.visitTime;break;case o.Type.TimeNanosecond:a=e.visitTimeNanosecond||e.visitTime;break;case o.Type.Decimal:a=e.visitDecimal;break;case o.Type.List:a=e.visitList;break;case o.Type.Struct:a=e.visitStruct;break;case o.Type.Union:a=e.visitUnion;break;case o.Type.DenseUnion:a=e.visitDenseUnion||e.visitUnion;break;case o.Type.SparseUnion:a=e.visitSparseUnion||e.visitUnion;break;case o.Type.Dictionary:a=e.visitDictionary;break;case o.Type.Interval:a=e.visitInterval;break;case o.Type.IntervalDayTime:a=e.visitIntervalDayTime||e.visitInterval;break;case o.Type.IntervalYearMonth:a=e.visitIntervalYearMonth||e.visitInterval;break;case o.Type.FixedSizeList:a=e.visitFixedSizeList;break;case o.Type.Map:a=e.visitMap}if("function"==typeof a)return a;if(!r)return()=>null;throw new Error(`Unrecognized type '${o.Type[u]}'`)}(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}}function c(e){switch(e.typeId){case o.Type.Null:return o.Type.Null;case o.Type.Int:{const{bitWidth:t,isSigned:r}=e;switch(t){case 8:return r?o.Type.Int8:o.Type.Uint8;case 16:return r?o.Type.Int16:o.Type.Uint16;case 32:return r?o.Type.Int32:o.Type.Uint32;case 64:return r?o.Type.Int64:o.Type.Uint64}return o.Type.Int}case o.Type.Float:switch(e.precision){case o.Precision.HALF:return o.Type.Float16;case o.Precision.SINGLE:return o.Type.Float32;case o.Precision.DOUBLE:return o.Type.Float64}return o.Type.Float;case o.Type.Binary:return o.Type.Binary;case o.Type.Utf8:return o.Type.Utf8;case o.Type.Bool:return o.Type.Bool;case o.Type.Decimal:return o.Type.Decimal;case o.Type.Time:switch(e.unit){case o.TimeUnit.SECOND:return o.Type.TimeSecond;case o.TimeUnit.MILLISECOND:return o.Type.TimeMillisecond;case o.TimeUnit.MICROSECOND:return o.Type.TimeMicrosecond;case o.TimeUnit.NANOSECOND:return o.Type.TimeNanosecond}return o.Type.Time;case o.Type.Timestamp:switch(e.unit){case o.TimeUnit.SECOND:return o.Type.TimestampSecond;case o.TimeUnit.MILLISECOND:return o.Type.TimestampMillisecond;case o.TimeUnit.MICROSECOND:return o.Type.TimestampMicrosecond;case o.TimeUnit.NANOSECOND:return o.Type.TimestampNanosecond}return o.Type.Timestamp;case o.Type.Date:switch(e.unit){case o.DateUnit.DAY:return o.Type.DateDay;case o.DateUnit.MILLISECOND:return o.Type.DateMillisecond}return o.Type.Date;case o.Type.Interval:switch(e.unit){case o.IntervalUnit.DAY_TIME:return o.Type.IntervalDayTime;case o.IntervalUnit.YEAR_MONTH:return o.Type.IntervalYearMonth}return o.Type.Interval;case o.Type.Map:return o.Type.Map;case o.Type.List:return o.Type.List;case o.Type.Struct:return o.Type.Struct;case o.Type.Union:switch(e.mode){case o.UnionMode.Dense:return o.Type.DenseUnion;case o.UnionMode.Sparse:return o.Type.SparseUnion}return o.Type.Union;case o.Type.FixedSizeBinary:return o.Type.FixedSizeBinary;case o.Type.FixedSizeList:return o.Type.FixedSizeList;case o.Type.Dictionary:return o.Type.Dictionary}throw new Error(`Unrecognized type '${o.Type[e.typeId]}'`)}t.Visitor=a,a.prototype.visitInt8=null,a.prototype.visitInt16=null,a.prototype.visitInt32=null,a.prototype.visitInt64=null,a.prototype.visitUint8=null,a.prototype.visitUint16=null,a.prototype.visitUint32=null,a.prototype.visitUint64=null,a.prototype.visitFloat16=null,a.prototype.visitFloat32=null,a.prototype.visitFloat64=null,a.prototype.visitDateDay=null,a.prototype.visitDateMillisecond=null,a.prototype.visitTimestampSecond=null,a.prototype.visitTimestampMillisecond=null,a.prototype.visitTimestampMicrosecond=null,a.prototype.visitTimestampNanosecond=null,a.prototype.visitTimeSecond=null,a.prototype.visitTimeMillisecond=null,a.prototype.visitTimeMicrosecond=null,a.prototype.visitTimeNanosecond=null,a.prototype.visitDenseUnion=null,a.prototype.visitSparseUnion=null,a.prototype.visitIntervalDayTime=null,a.prototype.visitIntervalYearMonth=null},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableNodeStream=t.isWritableNodeStream=t.isReadableDOMStream=t.isWritableDOMStream=t.isFetchResponse=t.isFSReadStream=t.isFileHandle=t.isUnderlyingSink=t.isIteratorResult=t.isArrayLike=t.isArrowJSON=t.isAsyncIterable=t.isIterable=t.isObservable=t.isPromise=t.isObject=t.BigUint64ArrayAvailable=t.BigUint64Array=t.BigInt64ArrayAvailable=t.BigInt64Array=t.BigIntAvailable=t.BigInt=void 0;const n=r(22),[i,o]=(()=>{const e=()=>{throw new Error("BigInt is not available in this environment")};function t(){throw e()}return t.asIntN=()=>{throw e()},t.asUintN=()=>{throw e()},"undefined"!=typeof BigInt?[BigInt,!0]:[t,!1]})();t.BigInt=i,t.BigIntAvailable=o;const[s,a]=(()=>{const e=()=>{throw new Error("BigInt64Array is not available in this environment")};return"undefined"!=typeof BigInt64Array?[BigInt64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}},!1]})();t.BigInt64Array=s,t.BigInt64ArrayAvailable=a;const[c,u]=(()=>{const e=()=>{throw new Error("BigUint64Array is not available in this environment")};return"undefined"!=typeof BigUint64Array?[BigUint64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw e()}static from(){throw e()}constructor(){throw e()}},!1]})();t.BigUint64Array=c,t.BigUint64ArrayAvailable=u;const l=e=>"number"==typeof e,d=e=>"boolean"==typeof e,f=e=>"function"==typeof e;t.isObject=e=>null!=e&&Object(e)===e,t.isPromise=e=>t.isObject(e)&&f(e.then),t.isObservable=e=>t.isObject(e)&&f(e.subscribe),t.isIterable=e=>t.isObject(e)&&f(e[Symbol.iterator]),t.isAsyncIterable=e=>t.isObject(e)&&f(e[Symbol.asyncIterator]),t.isArrowJSON=e=>t.isObject(e)&&t.isObject(e.schema),t.isArrayLike=e=>t.isObject(e)&&l(e.length),t.isIteratorResult=e=>t.isObject(e)&&"done"in e&&"value"in e,t.isUnderlyingSink=e=>t.isObject(e)&&f(e.abort)&&f(e.close)&&f(e.start)&&f(e.write),t.isFileHandle=e=>t.isObject(e)&&f(e.stat)&&l(e.fd),t.isFSReadStream=e=>t.isReadableNodeStream(e)&&l(e.bytesRead),t.isFetchResponse=e=>t.isObject(e)&&t.isReadableDOMStream(e.body),t.isWritableDOMStream=e=>t.isObject(e)&&f(e.abort)&&f(e.getWriter)&&!(e instanceof n.ReadableInterop),t.isReadableDOMStream=e=>t.isObject(e)&&f(e.cancel)&&f(e.getReader)&&!(e instanceof n.ReadableInterop),t.isWritableNodeStream=e=>t.isObject(e)&&f(e.end)&&f(e.write)&&d(e.writable)&&!(e instanceof n.ReadableInterop),t.isReadableNodeStream=e=>t.isObject(e)&&f(e.read)&&f(e.pipe)&&d(e.readable)&&!(e instanceof n.ReadableInterop)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Data=t.kUnknownNullCount=void 0;const n=r(12),i=r(12),o=r(1),s=r(0),a=r(5);t.kUnknownNullCount=-1;class c{constructor(e,t,r,n,i,o,a){let u;this.type=e,this.dictionary=a,this.offset=Math.floor(Math.max(t||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1)),this.childData=(o||[]).map(e=>e instanceof c?e:e.data),i instanceof c?(this.stride=i.stride,this.values=i.values,this.typeIds=i.typeIds,this.nullBitmap=i.nullBitmap,this.valueOffsets=i.valueOffsets):(this.stride=s.strideForType(e),i&&((u=i[0])&&(this.valueOffsets=u),(u=i[1])&&(this.values=u),(u=i[2])&&(this.nullBitmap=u),(u=i[3])&&(this.typeIds=u)))}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0;const{valueOffsets:t,values:r,nullBitmap:n,typeIds:i}=this;return t&&(e+=t.byteLength),r&&(e+=r.byteLength),n&&(e+=n.byteLength),i&&(e+=i.byteLength),this.childData.reduce((e,t)=>e+t.byteLength,e)}get nullCount(){let e,r=this._nullCount;return r<=t.kUnknownNullCount&&(e=this.nullBitmap)&&(this._nullCount=r=this.length-i.popcnt_bit_range(e,this.offset,this.offset+this.length)),r}clone(e,t=this.offset,r=this.length,n=this._nullCount,i=this,o=this.childData){return new c(e,t,r,n,i,o,this.dictionary)}slice(e,t){const{stride:r,typeId:n,childData:i}=this,o=+(0===this._nullCount)-1,s=16===n?r:1,a=this._sliceBuffers(e,t,r,n);return this.clone(this.type,this.offset+e,t,o,a,!i.length||this.valueOffsets?i:this._sliceChildren(i,s*e,s*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===o.Type.Null)return this.clone(this.type,0,e,0);const{length:t,nullCount:r}=this,i=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);i[t>>3]=(1<<t-(-8&t))-1,r>0&&i.set(n.truncateBitmap(this.offset,t,this.nullBitmap),0);const s=this.buffers;return s[o.BufferType.VALIDITY]=i,this.clone(this.type,0,e,r+(e-t),s)}_sliceBuffers(e,t,r,n){let i;const{buffers:s}=this;return(i=s[o.BufferType.TYPE])&&(s[o.BufferType.TYPE]=i.subarray(e,e+t)),(i=s[o.BufferType.OFFSET])&&(s[o.BufferType.OFFSET]=i.subarray(e,e+t+1))||(i=s[o.BufferType.DATA])&&(s[o.BufferType.DATA]=6===n?i:i.subarray(r*e,r*(e+t))),s}_sliceChildren(e,t,r){return e.map(e=>e.slice(t,r))}static new(e,t,r,n,i,s,a){switch(i instanceof c?i=i.buffers:i||(i=[]),e.typeId){case o.Type.Null:return c.Null(e,t,r);case o.Type.Int:return c.Int(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[]);case o.Type.Dictionary:return c.Dictionary(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[],a);case o.Type.Float:return c.Float(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[]);case o.Type.Bool:return c.Bool(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[]);case o.Type.Decimal:return c.Decimal(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[]);case o.Type.Date:return c.Date(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[]);case o.Type.Time:return c.Time(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[]);case o.Type.Timestamp:return c.Timestamp(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[]);case o.Type.Interval:return c.Interval(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[]);case o.Type.FixedSizeBinary:return c.FixedSizeBinary(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.DATA]||[]);case o.Type.Binary:return c.Binary(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.OFFSET]||[],i[o.BufferType.DATA]||[]);case o.Type.Utf8:return c.Utf8(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.OFFSET]||[],i[o.BufferType.DATA]||[]);case o.Type.List:return c.List(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.OFFSET]||[],(s||[])[0]);case o.Type.FixedSizeList:return c.FixedSizeList(e,t,r,n||0,i[o.BufferType.VALIDITY],(s||[])[0]);case o.Type.Struct:return c.Struct(e,t,r,n||0,i[o.BufferType.VALIDITY],s||[]);case o.Type.Map:return c.Map(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.OFFSET]||[],(s||[])[0]);case o.Type.Union:return c.Union(e,t,r,n||0,i[o.BufferType.VALIDITY],i[o.BufferType.TYPE]||[],i[o.BufferType.OFFSET]||s,s)}throw new Error("Unrecognized typeId "+e.typeId)}static Null(e,t,r){return new c(e,t,r,0)}static Int(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.ArrayType,o),a.toUint8Array(i)])}static Dictionary(e,t,r,n,i,o,s){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.indices.ArrayType,o),a.toUint8Array(i)],[],s)}static Float(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.ArrayType,o),a.toUint8Array(i)])}static Bool(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.ArrayType,o),a.toUint8Array(i)])}static Decimal(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.ArrayType,o),a.toUint8Array(i)])}static Date(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.ArrayType,o),a.toUint8Array(i)])}static Time(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.ArrayType,o),a.toUint8Array(i)])}static Timestamp(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.ArrayType,o),a.toUint8Array(i)])}static Interval(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.ArrayType,o),a.toUint8Array(i)])}static FixedSizeBinary(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,a.toArrayBufferView(e.ArrayType,o),a.toUint8Array(i)])}static Binary(e,t,r,n,i,o,s){return new c(e,t,r,n,[a.toInt32Array(o),a.toUint8Array(s),a.toUint8Array(i)])}static Utf8(e,t,r,n,i,o,s){return new c(e,t,r,n,[a.toInt32Array(o),a.toUint8Array(s),a.toUint8Array(i)])}static List(e,t,r,n,i,o,s){return new c(e,t,r,n,[a.toInt32Array(o),void 0,a.toUint8Array(i)],s?[s]:[])}static FixedSizeList(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,void 0,a.toUint8Array(i)],o?[o]:[])}static Struct(e,t,r,n,i,o){return new c(e,t,r,n,[void 0,void 0,a.toUint8Array(i)],o)}static Map(e,t,r,n,i,o,s){return new c(e,t,r,n,[a.toInt32Array(o),void 0,a.toUint8Array(i)],s?[s]:[])}static Union(e,t,r,n,i,s,u,l){const d=[void 0,void 0,a.toUint8Array(i),a.toArrayBufferView(e.ArrayType,s)];return e.mode===o.UnionMode.Sparse?new c(e,t,r,n,d,u):(d[o.BufferType.OFFSET]=a.toInt32Array(u),new c(e,t,r,n,d,l))}}t.Data=c,c.prototype.childData=Object.freeze([])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.util=t.predicate=t.CountByResult=t.FilteredDataFrame=t.DataFrame=t.RecordBatch=t.Message=t.JSONMessageReader=t.AsyncMessageReader=t.MessageReader=t.RecordBatchJSONWriter=t.RecordBatchStreamWriter=t.RecordBatchFileWriter=t.RecordBatchWriter=t.AsyncRecordBatchStreamReader=t.AsyncRecordBatchFileReader=t.RecordBatchStreamReader=t.RecordBatchFileReader=t.RecordBatchReader=t.AsyncByteQueue=t.AsyncByteStream=t.ByteStream=t.Utf8Builder=t.SparseUnionBuilder=t.DenseUnionBuilder=t.UnionBuilder=t.TimeNanosecondBuilder=t.TimeMicrosecondBuilder=t.TimeMillisecondBuilder=t.TimeSecondBuilder=t.TimeBuilder=t.TimestampNanosecondBuilder=t.TimestampMicrosecondBuilder=t.TimestampMillisecondBuilder=t.TimestampSecondBuilder=t.TimestampBuilder=t.StructBuilder=t.NullBuilder=t.MapBuilder=t.ListBuilder=t.Uint64Builder=t.Uint32Builder=t.Uint16Builder=t.Uint8Builder=t.Int64Builder=t.Int32Builder=t.Int16Builder=t.Int8Builder=t.IntBuilder=t.IntervalYearMonthBuilder=t.IntervalDayTimeBuilder=t.IntervalBuilder=t.Float64Builder=t.Float32Builder=t.Float16Builder=t.FloatBuilder=t.FixedSizeListBuilder=t.FixedSizeBinaryBuilder=t.DictionaryBuilder=t.DecimalBuilder=t.DateMillisecondBuilder=t.DateDayBuilder=t.DateBuilder=t.BoolBuilder=t.BinaryBuilder=t.Builder=t.Utf8Vector=t.SparseUnionVector=t.DenseUnionVector=t.UnionVector=t.TimeNanosecondVector=t.TimeMicrosecondVector=t.TimeMillisecondVector=t.TimeSecondVector=t.TimeVector=t.TimestampNanosecondVector=t.TimestampMicrosecondVector=t.TimestampMillisecondVector=t.TimestampSecondVector=t.TimestampVector=t.StructVector=t.NullVector=t.MapVector=t.ListVector=t.Uint64Vector=t.Uint32Vector=t.Uint16Vector=t.Uint8Vector=t.Int64Vector=t.Int32Vector=t.Int16Vector=t.Int8Vector=t.IntVector=t.IntervalYearMonthVector=t.IntervalDayTimeVector=t.IntervalVector=t.Float64Vector=t.Float32Vector=t.Float16Vector=t.FloatVector=t.FixedSizeListVector=t.FixedSizeBinaryVector=t.DictionaryVector=t.DecimalVector=t.DateMillisecondVector=t.DateDayVector=t.DateVector=t.Chunked=t.BoolVector=t.BinaryVector=t.BaseVector=t.Vector=t.Field=t.Schema=t.Visitor=t.Column=t.Table=t.Map_=t.FixedSizeList=t.IntervalYearMonth=t.IntervalDayTime=t.Interval=t.Dictionary=t.SparseUnion=t.DenseUnion=t.Union=t.Struct=t.List=t.Decimal=t.TimeNanosecond=t.TimeMicrosecond=t.TimeMillisecond=t.TimeSecond=t.Time=t.TimestampNanosecond=t.TimestampMicrosecond=t.TimestampMillisecond=t.TimestampSecond=t.Timestamp=t.DateMillisecond=t.DateDay=t.Date_=t.FixedSizeBinary=t.Binary=t.Utf8=t.Float64=t.Float32=t.Float16=t.Float=t.Uint64=t.Uint32=t.Uint16=t.Uint8=t.Int64=t.Int32=t.Int16=t.Int8=t.Int=t.Bool=t.Null=t.DataType=t.Data=t.BufferType=t.Type=t.MessageHeader=t.MetadataVersion=t.IntervalUnit=t.UnionMode=t.Precision=t.TimeUnit=t.DateUnit=void 0;var n=r(16);Object.defineProperty(t,"DateUnit",{enumerable:!0,get:function(){return n.DateUnit}}),Object.defineProperty(t,"TimeUnit",{enumerable:!0,get:function(){return n.TimeUnit}}),Object.defineProperty(t,"Precision",{enumerable:!0,get:function(){return n.Precision}}),Object.defineProperty(t,"UnionMode",{enumerable:!0,get:function(){return n.UnionMode}}),Object.defineProperty(t,"IntervalUnit",{enumerable:!0,get:function(){return n.IntervalUnit}}),Object.defineProperty(t,"MetadataVersion",{enumerable:!0,get:function(){return n.MetadataVersion}});var i=r(33);Object.defineProperty(t,"MessageHeader",{enumerable:!0,get:function(){return i.MessageHeader}});var o=r(1);Object.defineProperty(t,"Type",{enumerable:!0,get:function(){return o.Type}}),Object.defineProperty(t,"BufferType",{enumerable:!0,get:function(){return o.BufferType}});var s=r(10);Object.defineProperty(t,"Data",{enumerable:!0,get:function(){return s.Data}});var a=r(0);Object.defineProperty(t,"DataType",{enumerable:!0,get:function(){return a.DataType}}),Object.defineProperty(t,"Null",{enumerable:!0,get:function(){return a.Null}}),Object.defineProperty(t,"Bool",{enumerable:!0,get:function(){return a.Bool}}),Object.defineProperty(t,"Int",{enumerable:!0,get:function(){return a.Int}}),Object.defineProperty(t,"Int8",{enumerable:!0,get:function(){return a.Int8}}),Object.defineProperty(t,"Int16",{enumerable:!0,get:function(){return a.Int16}}),Object.defineProperty(t,"Int32",{enumerable:!0,get:function(){return a.Int32}}),Object.defineProperty(t,"Int64",{enumerable:!0,get:function(){return a.Int64}}),Object.defineProperty(t,"Uint8",{enumerable:!0,get:function(){return a.Uint8}}),Object.defineProperty(t,"Uint16",{enumerable:!0,get:function(){return a.Uint16}}),Object.defineProperty(t,"Uint32",{enumerable:!0,get:function(){return a.Uint32}}),Object.defineProperty(t,"Uint64",{enumerable:!0,get:function(){return a.Uint64}}),Object.defineProperty(t,"Float",{enumerable:!0,get:function(){return a.Float}}),Object.defineProperty(t,"Float16",{enumerable:!0,get:function(){return a.Float16}}),Object.defineProperty(t,"Float32",{enumerable:!0,get:function(){return a.Float32}}),Object.defineProperty(t,"Float64",{enumerable:!0,get:function(){return a.Float64}}),Object.defineProperty(t,"Utf8",{enumerable:!0,get:function(){return a.Utf8}}),Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return a.Binary}}),Object.defineProperty(t,"FixedSizeBinary",{enumerable:!0,get:function(){return a.FixedSizeBinary}}),Object.defineProperty(t,"Date_",{enumerable:!0,get:function(){return a.Date_}}),Object.defineProperty(t,"DateDay",{enumerable:!0,get:function(){return a.DateDay}}),Object.defineProperty(t,"DateMillisecond",{enumerable:!0,get:function(){return a.DateMillisecond}}),Object.defineProperty(t,"Timestamp",{enumerable:!0,get:function(){return a.Timestamp}}),Object.defineProperty(t,"TimestampSecond",{enumerable:!0,get:function(){return a.TimestampSecond}}),Object.defineProperty(t,"TimestampMillisecond",{enumerable:!0,get:function(){return a.TimestampMillisecond}}),Object.defineProperty(t,"TimestampMicrosecond",{enumerable:!0,get:function(){return a.TimestampMicrosecond}}),Object.defineProperty(t,"TimestampNanosecond",{enumerable:!0,get:function(){return a.TimestampNanosecond}}),Object.defineProperty(t,"Time",{enumerable:!0,get:function(){return a.Time}}),Object.defineProperty(t,"TimeSecond",{enumerable:!0,get:function(){return a.TimeSecond}}),Object.defineProperty(t,"TimeMillisecond",{enumerable:!0,get:function(){return a.TimeMillisecond}}),Object.defineProperty(t,"TimeMicrosecond",{enumerable:!0,get:function(){return a.TimeMicrosecond}}),Object.defineProperty(t,"TimeNanosecond",{enumerable:!0,get:function(){return a.TimeNanosecond}}),Object.defineProperty(t,"Decimal",{enumerable:!0,get:function(){return a.Decimal}}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return a.List}}),Object.defineProperty(t,"Struct",{enumerable:!0,get:function(){return a.Struct}}),Object.defineProperty(t,"Union",{enumerable:!0,get:function(){return a.Union}}),Object.defineProperty(t,"DenseUnion",{enumerable:!0,get:function(){return a.DenseUnion}}),Object.defineProperty(t,"SparseUnion",{enumerable:!0,get:function(){return a.SparseUnion}}),Object.defineProperty(t,"Dictionary",{enumerable:!0,get:function(){return a.Dictionary}}),Object.defineProperty(t,"Interval",{enumerable:!0,get:function(){return a.Interval}}),Object.defineProperty(t,"IntervalDayTime",{enumerable:!0,get:function(){return a.IntervalDayTime}}),Object.defineProperty(t,"IntervalYearMonth",{enumerable:!0,get:function(){return a.IntervalYearMonth}}),Object.defineProperty(t,"FixedSizeList",{enumerable:!0,get:function(){return a.FixedSizeList}}),Object.defineProperty(t,"Map_",{enumerable:!0,get:function(){return a.Map_}});var c=r(29);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return c.Table}});var u=r(23);Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return u.Column}});var l=r(8);Object.defineProperty(t,"Visitor",{enumerable:!0,get:function(){return l.Visitor}});var d=r(6);Object.defineProperty(t,"Schema",{enumerable:!0,get:function(){return d.Schema}}),Object.defineProperty(t,"Field",{enumerable:!0,get:function(){return d.Field}});var f=r(13);Object.defineProperty(t,"Vector",{enumerable:!0,get:function(){return f.Vector}}),Object.defineProperty(t,"BaseVector",{enumerable:!0,get:function(){return f.BaseVector}}),Object.defineProperty(t,"BinaryVector",{enumerable:!0,get:function(){return f.BinaryVector}}),Object.defineProperty(t,"BoolVector",{enumerable:!0,get:function(){return f.BoolVector}}),Object.defineProperty(t,"Chunked",{enumerable:!0,get:function(){return f.Chunked}}),Object.defineProperty(t,"DateVector",{enumerable:!0,get:function(){return f.DateVector}}),Object.defineProperty(t,"DateDayVector",{enumerable:!0,get:function(){return f.DateDayVector}}),Object.defineProperty(t,"DateMillisecondVector",{enumerable:!0,get:function(){return f.DateMillisecondVector}}),Object.defineProperty(t,"DecimalVector",{enumerable:!0,get:function(){return f.DecimalVector}}),Object.defineProperty(t,"DictionaryVector",{enumerable:!0,get:function(){return f.DictionaryVector}}),Object.defineProperty(t,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return f.FixedSizeBinaryVector}}),Object.defineProperty(t,"FixedSizeListVector",{enumerable:!0,get:function(){return f.FixedSizeListVector}}),Object.defineProperty(t,"FloatVector",{enumerable:!0,get:function(){return f.FloatVector}}),Object.defineProperty(t,"Float16Vector",{enumerable:!0,get:function(){return f.Float16Vector}}),Object.defineProperty(t,"Float32Vector",{enumerable:!0,get:function(){return f.Float32Vector}}),Object.defineProperty(t,"Float64Vector",{enumerable:!0,get:function(){return f.Float64Vector}}),Object.defineProperty(t,"IntervalVector",{enumerable:!0,get:function(){return f.IntervalVector}}),Object.defineProperty(t,"IntervalDayTimeVector",{enumerable:!0,get:function(){return f.IntervalDayTimeVector}}),Object.defineProperty(t,"IntervalYearMonthVector",{enumerable:!0,get:function(){return f.IntervalYearMonthVector}}),Object.defineProperty(t,"IntVector",{enumerable:!0,get:function(){return f.IntVector}}),Object.defineProperty(t,"Int8Vector",{enumerable:!0,get:function(){return f.Int8Vector}}),Object.defineProperty(t,"Int16Vector",{enumerable:!0,get:function(){return f.Int16Vector}}),Object.defineProperty(t,"Int32Vector",{enumerable:!0,get:function(){return f.Int32Vector}}),Object.defineProperty(t,"Int64Vector",{enumerable:!0,get:function(){return f.Int64Vector}}),Object.defineProperty(t,"Uint8Vector",{enumerable:!0,get:function(){return f.Uint8Vector}}),Object.defineProperty(t,"Uint16Vector",{enumerable:!0,get:function(){return f.Uint16Vector}}),Object.defineProperty(t,"Uint32Vector",{enumerable:!0,get:function(){return f.Uint32Vector}}),Object.defineProperty(t,"Uint64Vector",{enumerable:!0,get:function(){return f.Uint64Vector}}),Object.defineProperty(t,"ListVector",{enumerable:!0,get:function(){return f.ListVector}}),Object.defineProperty(t,"MapVector",{enumerable:!0,get:function(){return f.MapVector}}),Object.defineProperty(t,"NullVector",{enumerable:!0,get:function(){return f.NullVector}}),Object.defineProperty(t,"StructVector",{enumerable:!0,get:function(){return f.StructVector}}),Object.defineProperty(t,"TimestampVector",{enumerable:!0,get:function(){return f.TimestampVector}}),Object.defineProperty(t,"TimestampSecondVector",{enumerable:!0,get:function(){return f.TimestampSecondVector}}),Object.defineProperty(t,"TimestampMillisecondVector",{enumerable:!0,get:function(){return f.TimestampMillisecondVector}}),Object.defineProperty(t,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return f.TimestampMicrosecondVector}}),Object.defineProperty(t,"TimestampNanosecondVector",{enumerable:!0,get:function(){return f.TimestampNanosecondVector}}),Object.defineProperty(t,"TimeVector",{enumerable:!0,get:function(){return f.TimeVector}}),Object.defineProperty(t,"TimeSecondVector",{enumerable:!0,get:function(){return f.TimeSecondVector}}),Object.defineProperty(t,"TimeMillisecondVector",{enumerable:!0,get:function(){return f.TimeMillisecondVector}}),Object.defineProperty(t,"TimeMicrosecondVector",{enumerable:!0,get:function(){return f.TimeMicrosecondVector}}),Object.defineProperty(t,"TimeNanosecondVector",{enumerable:!0,get:function(){return f.TimeNanosecondVector}}),Object.defineProperty(t,"UnionVector",{enumerable:!0,get:function(){return f.UnionVector}}),Object.defineProperty(t,"DenseUnionVector",{enumerable:!0,get:function(){return f.DenseUnionVector}}),Object.defineProperty(t,"SparseUnionVector",{enumerable:!0,get:function(){return f.SparseUnionVector}}),Object.defineProperty(t,"Utf8Vector",{enumerable:!0,get:function(){return f.Utf8Vector}});var h=r(32);Object.defineProperty(t,"Builder",{enumerable:!0,get:function(){return h.Builder}}),Object.defineProperty(t,"BinaryBuilder",{enumerable:!0,get:function(){return h.BinaryBuilder}}),Object.defineProperty(t,"BoolBuilder",{enumerable:!0,get:function(){return h.BoolBuilder}}),Object.defineProperty(t,"DateBuilder",{enumerable:!0,get:function(){return h.DateBuilder}}),Object.defineProperty(t,"DateDayBuilder",{enumerable:!0,get:function(){return h.DateDayBuilder}}),Object.defineProperty(t,"DateMillisecondBuilder",{enumerable:!0,get:function(){return h.DateMillisecondBuilder}}),Object.defineProperty(t,"DecimalBuilder",{enumerable:!0,get:function(){return h.DecimalBuilder}}),Object.defineProperty(t,"DictionaryBuilder",{enumerable:!0,get:function(){return h.DictionaryBuilder}}),Object.defineProperty(t,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return h.FixedSizeBinaryBuilder}}),Object.defineProperty(t,"FixedSizeListBuilder",{enumerable:!0,get:function(){return h.FixedSizeListBuilder}}),Object.defineProperty(t,"FloatBuilder",{enumerable:!0,get:function(){return h.FloatBuilder}}),Object.defineProperty(t,"Float16Builder",{enumerable:!0,get:function(){return h.Float16Builder}}),Object.defineProperty(t,"Float32Builder",{enumerable:!0,get:function(){return h.Float32Builder}}),Object.defineProperty(t,"Float64Builder",{enumerable:!0,get:function(){return h.Float64Builder}}),Object.defineProperty(t,"IntervalBuilder",{enumerable:!0,get:function(){return h.IntervalBuilder}}),Object.defineProperty(t,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return h.IntervalDayTimeBuilder}}),Object.defineProperty(t,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return h.IntervalYearMonthBuilder}}),Object.defineProperty(t,"IntBuilder",{enumerable:!0,get:function(){return h.IntBuilder}}),Object.defineProperty(t,"Int8Builder",{enumerable:!0,get:function(){return h.Int8Builder}}),Object.defineProperty(t,"Int16Builder",{enumerable:!0,get:function(){return h.Int16Builder}}),Object.defineProperty(t,"Int32Builder",{enumerable:!0,get:function(){return h.Int32Builder}}),Object.defineProperty(t,"Int64Builder",{enumerable:!0,get:function(){return h.Int64Builder}}),Object.defineProperty(t,"Uint8Builder",{enumerable:!0,get:function(){return h.Uint8Builder}}),Object.defineProperty(t,"Uint16Builder",{enumerable:!0,get:function(){return h.Uint16Builder}}),Object.defineProperty(t,"Uint32Builder",{enumerable:!0,get:function(){return h.Uint32Builder}}),Object.defineProperty(t,"Uint64Builder",{enumerable:!0,get:function(){return h.Uint64Builder}}),Object.defineProperty(t,"ListBuilder",{enumerable:!0,get:function(){return h.ListBuilder}}),Object.defineProperty(t,"MapBuilder",{enumerable:!0,get:function(){return h.MapBuilder}}),Object.defineProperty(t,"NullBuilder",{enumerable:!0,get:function(){return h.NullBuilder}}),Object.defineProperty(t,"StructBuilder",{enumerable:!0,get:function(){return h.StructBuilder}}),Object.defineProperty(t,"TimestampBuilder",{enumerable:!0,get:function(){return h.TimestampBuilder}}),Object.defineProperty(t,"TimestampSecondBuilder",{enumerable:!0,get:function(){return h.TimestampSecondBuilder}}),Object.defineProperty(t,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return h.TimestampMillisecondBuilder}}),Object.defineProperty(t,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return h.TimestampMicrosecondBuilder}}),Object.defineProperty(t,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return h.TimestampNanosecondBuilder}}),Object.defineProperty(t,"TimeBuilder",{enumerable:!0,get:function(){return h.TimeBuilder}}),Object.defineProperty(t,"TimeSecondBuilder",{enumerable:!0,get:function(){return h.TimeSecondBuilder}}),Object.defineProperty(t,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return h.TimeMillisecondBuilder}}),Object.defineProperty(t,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return h.TimeMicrosecondBuilder}}),Object.defineProperty(t,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return h.TimeNanosecondBuilder}}),Object.defineProperty(t,"UnionBuilder",{enumerable:!0,get:function(){return h.UnionBuilder}}),Object.defineProperty(t,"DenseUnionBuilder",{enumerable:!0,get:function(){return h.DenseUnionBuilder}}),Object.defineProperty(t,"SparseUnionBuilder",{enumerable:!0,get:function(){return h.SparseUnionBuilder}}),Object.defineProperty(t,"Utf8Builder",{enumerable:!0,get:function(){return h.Utf8Builder}});var A=r(18);Object.defineProperty(t,"ByteStream",{enumerable:!0,get:function(){return A.ByteStream}}),Object.defineProperty(t,"AsyncByteStream",{enumerable:!0,get:function(){return A.AsyncByteStream}}),Object.defineProperty(t,"AsyncByteQueue",{enumerable:!0,get:function(){return A.AsyncByteQueue}});var p=r(28);Object.defineProperty(t,"RecordBatchReader",{enumerable:!0,get:function(){return p.RecordBatchReader}}),Object.defineProperty(t,"RecordBatchFileReader",{enumerable:!0,get:function(){return p.RecordBatchFileReader}}),Object.defineProperty(t,"RecordBatchStreamReader",{enumerable:!0,get:function(){return p.RecordBatchStreamReader}}),Object.defineProperty(t,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return p.AsyncRecordBatchFileReader}}),Object.defineProperty(t,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return p.AsyncRecordBatchStreamReader}});var y=r(36);Object.defineProperty(t,"RecordBatchWriter",{enumerable:!0,get:function(){return y.RecordBatchWriter}}),Object.defineProperty(t,"RecordBatchFileWriter",{enumerable:!0,get:function(){return y.RecordBatchFileWriter}}),Object.defineProperty(t,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return y.RecordBatchStreamWriter}}),Object.defineProperty(t,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return y.RecordBatchJSONWriter}});var b=r(37);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return b.MessageReader}}),Object.defineProperty(t,"AsyncMessageReader",{enumerable:!0,get:function(){return b.AsyncMessageReader}}),Object.defineProperty(t,"JSONMessageReader",{enumerable:!0,get:function(){return b.JSONMessageReader}});var m=r(21);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return m.Message}});var g=r(15);Object.defineProperty(t,"RecordBatch",{enumerable:!0,get:function(){return g.RecordBatch}});var v=r(108);Object.defineProperty(t,"DataFrame",{enumerable:!0,get:function(){return v.DataFrame}}),Object.defineProperty(t,"FilteredDataFrame",{enumerable:!0,get:function(){return v.FilteredDataFrame}}),Object.defineProperty(t,"CountByResult",{enumerable:!0,get:function(){return v.CountByResult}});const B=r(27),_=r(61),T=r(12),w=r(26),V=r(5),I=r(30),F=r(82);t.predicate=F;const U=r(62);t.util={...B,..._,...T,...w,...V,...I,compareSchemas:U.compareSchemas,compareFields:U.compareFields,compareTypes:U.compareTypes}},function(e,t,r){"use strict";function n(e,t,r,n){return 0!=(r&1<<n)}function i(e,t,r,n){return(r&1<<n)>>n}function o(e){const t=[];let r=0,n=0,i=0;for(const o of e)o&&(i|=1<<n),8==++n&&(t[r++]=i,i=n=0);(0===r||n>0)&&(t[r++]=i);const o=new Uint8Array(t.length+7&-8);return o.set(t),o}Object.defineProperty(t,"__esModule",{value:!0}),t.popcnt_uint32=t.popcnt_array=t.popcnt_bit_range=t.BitIterator=t.packBools=t.truncateBitmap=t.setBool=t.getBit=t.getBool=void 0,t.getBool=n,t.getBit=i,t.setBool=function(e,t,r){return r?!!(e[t>>3]|=1<<t%8)||!0:!(e[t>>3]&=~(1<<t%8))&&!1},t.truncateBitmap=function(e,t,r){const i=r.byteLength+7&-8;if(e>0||r.byteLength<i){const a=new Uint8Array(i);return a.set(e%8==0?r.subarray(e>>3):o(new s(r,e,t,null,n)).subarray(0,i)),a}return r},t.packBools=o;class s{constructor(e,t,r,n,i){this.bytes=e,this.length=r,this.context=n,this.get=i,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(8===this.bit&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function a(e,t,r){let n=0,i=0|t;const o=new DataView(e.buffer,e.byteOffset,e.byteLength),s=void 0===r?e.byteLength:i+r;for(;s-i>=4;)n+=c(o.getUint32(i)),i+=4;for(;s-i>=2;)n+=c(o.getUint16(i)),i+=2;for(;s-i>=1;)n+=c(o.getUint8(i)),i+=1;return n}function c(e){let t=0|e;return t-=t>>>1&1431655765,t=(858993459&t)+(t>>>2&858993459),16843009*(t+(t>>>4)&252645135)>>>24}t.BitIterator=s,t.popcnt_bit_range=function e(t,r,n){if(n-r<=0)return 0;if(n-r<8){let e=0;for(const o of new s(t,r,n-r,t,i))e+=o;return e}const o=n>>3<<3,c=r+(r%8==0?0:8-r%8);return e(t,r,c)+e(t,o,n)+a(t,c>>3,o-c>>3)},t.popcnt_array=a,t.popcnt_uint32=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.vectorFromValuesWithType=t.StructRow=t.MapRow=t.Utf8Vector=t.SparseUnionVector=t.DenseUnionVector=t.UnionVector=t.TimeNanosecondVector=t.TimeMicrosecondVector=t.TimeMillisecondVector=t.TimeSecondVector=t.TimeVector=t.TimestampNanosecondVector=t.TimestampMicrosecondVector=t.TimestampMillisecondVector=t.TimestampSecondVector=t.TimestampVector=t.StructVector=t.NullVector=t.MapVector=t.ListVector=t.Uint64Vector=t.Uint32Vector=t.Uint16Vector=t.Uint8Vector=t.Int64Vector=t.Int32Vector=t.Int16Vector=t.Int8Vector=t.IntVector=t.IntervalYearMonthVector=t.IntervalDayTimeVector=t.IntervalVector=t.Float64Vector=t.Float32Vector=t.Float16Vector=t.FloatVector=t.FixedSizeListVector=t.FixedSizeBinaryVector=t.DictionaryVector=t.DecimalVector=t.DateMillisecondVector=t.DateDayVector=t.DateVector=t.Chunked=t.BoolVector=t.BinaryVector=t.BaseVector=t.Vector=void 0;var n=r(3);Object.defineProperty(t,"Vector",{enumerable:!0,get:function(){return n.Vector}});var i=r(4);Object.defineProperty(t,"BaseVector",{enumerable:!0,get:function(){return i.BaseVector}});var o=r(64);Object.defineProperty(t,"BinaryVector",{enumerable:!0,get:function(){return o.BinaryVector}});var s=r(65);Object.defineProperty(t,"BoolVector",{enumerable:!0,get:function(){return s.BoolVector}});var a=r(19);Object.defineProperty(t,"Chunked",{enumerable:!0,get:function(){return a.Chunked}});var c=r(66);Object.defineProperty(t,"DateVector",{enumerable:!0,get:function(){return c.DateVector}}),Object.defineProperty(t,"DateDayVector",{enumerable:!0,get:function(){return c.DateDayVector}}),Object.defineProperty(t,"DateMillisecondVector",{enumerable:!0,get:function(){return c.DateMillisecondVector}});var u=r(67);Object.defineProperty(t,"DecimalVector",{enumerable:!0,get:function(){return u.DecimalVector}});var l=r(38);Object.defineProperty(t,"DictionaryVector",{enumerable:!0,get:function(){return l.DictionaryVector}});var d=r(68);Object.defineProperty(t,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return d.FixedSizeBinaryVector}});var f=r(69);Object.defineProperty(t,"FixedSizeListVector",{enumerable:!0,get:function(){return f.FixedSizeListVector}});var h=r(70);Object.defineProperty(t,"FloatVector",{enumerable:!0,get:function(){return h.FloatVector}}),Object.defineProperty(t,"Float16Vector",{enumerable:!0,get:function(){return h.Float16Vector}}),Object.defineProperty(t,"Float32Vector",{enumerable:!0,get:function(){return h.Float32Vector}}),Object.defineProperty(t,"Float64Vector",{enumerable:!0,get:function(){return h.Float64Vector}});var A=r(71);Object.defineProperty(t,"IntervalVector",{enumerable:!0,get:function(){return A.IntervalVector}}),Object.defineProperty(t,"IntervalDayTimeVector",{enumerable:!0,get:function(){return A.IntervalDayTimeVector}}),Object.defineProperty(t,"IntervalYearMonthVector",{enumerable:!0,get:function(){return A.IntervalYearMonthVector}});var p=r(39);Object.defineProperty(t,"IntVector",{enumerable:!0,get:function(){return p.IntVector}}),Object.defineProperty(t,"Int8Vector",{enumerable:!0,get:function(){return p.Int8Vector}}),Object.defineProperty(t,"Int16Vector",{enumerable:!0,get:function(){return p.Int16Vector}}),Object.defineProperty(t,"Int32Vector",{enumerable:!0,get:function(){return p.Int32Vector}}),Object.defineProperty(t,"Int64Vector",{enumerable:!0,get:function(){return p.Int64Vector}}),Object.defineProperty(t,"Uint8Vector",{enumerable:!0,get:function(){return p.Uint8Vector}}),Object.defineProperty(t,"Uint16Vector",{enumerable:!0,get:function(){return p.Uint16Vector}}),Object.defineProperty(t,"Uint32Vector",{enumerable:!0,get:function(){return p.Uint32Vector}}),Object.defineProperty(t,"Uint64Vector",{enumerable:!0,get:function(){return p.Uint64Vector}});var y=r(72);Object.defineProperty(t,"ListVector",{enumerable:!0,get:function(){return y.ListVector}});var b=r(73);Object.defineProperty(t,"MapVector",{enumerable:!0,get:function(){return b.MapVector}});var m=r(74);Object.defineProperty(t,"NullVector",{enumerable:!0,get:function(){return m.NullVector}});var g=r(75);Object.defineProperty(t,"StructVector",{enumerable:!0,get:function(){return g.StructVector}});var v=r(76);Object.defineProperty(t,"TimestampVector",{enumerable:!0,get:function(){return v.TimestampVector}}),Object.defineProperty(t,"TimestampSecondVector",{enumerable:!0,get:function(){return v.TimestampSecondVector}}),Object.defineProperty(t,"TimestampMillisecondVector",{enumerable:!0,get:function(){return v.TimestampMillisecondVector}}),Object.defineProperty(t,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return v.TimestampMicrosecondVector}}),Object.defineProperty(t,"TimestampNanosecondVector",{enumerable:!0,get:function(){return v.TimestampNanosecondVector}});var B=r(77);Object.defineProperty(t,"TimeVector",{enumerable:!0,get:function(){return B.TimeVector}}),Object.defineProperty(t,"TimeSecondVector",{enumerable:!0,get:function(){return B.TimeSecondVector}}),Object.defineProperty(t,"TimeMillisecondVector",{enumerable:!0,get:function(){return B.TimeMillisecondVector}}),Object.defineProperty(t,"TimeMicrosecondVector",{enumerable:!0,get:function(){return B.TimeMicrosecondVector}}),Object.defineProperty(t,"TimeNanosecondVector",{enumerable:!0,get:function(){return B.TimeNanosecondVector}});var _=r(78);Object.defineProperty(t,"UnionVector",{enumerable:!0,get:function(){return _.UnionVector}}),Object.defineProperty(t,"DenseUnionVector",{enumerable:!0,get:function(){return _.DenseUnionVector}}),Object.defineProperty(t,"SparseUnionVector",{enumerable:!0,get:function(){return _.SparseUnionVector}});var T=r(79);Object.defineProperty(t,"Utf8Vector",{enumerable:!0,get:function(){return T.Utf8Vector}});var w=r(31);Object.defineProperty(t,"MapRow",{enumerable:!0,get:function(){return w.MapRow}}),Object.defineProperty(t,"StructRow",{enumerable:!0,get:function(){return w.StructRow}});const V=r(99),I=r(1),F=r(3),U=r(19),S=r(4),M=r(12),O=r(9),R=r(2),D=r(80),N=r(58),Z=r(100),k=r(101),x=r(81),j=r(102),W=r(103);F.Vector.new=function(e,...t){return new(W.instance.getVisitFn(e)())(e,...t)},F.Vector.from=function(e){const{values:t=[],...r}={nullValues:[null,void 0],...e};if(O.isIterable(t)){const e=[...R.Builder.throughIterable(r)(t)];return 1===e.length?e[0]:U.Chunked.concat(e)}return(async e=>{const n=R.Builder.throughAsyncIterable(r);for await(const r of n(t))e.push(r);return 1===e.length?e[0]:U.Chunked.concat(e)})([])},t.vectorFromValuesWithType=function(e,t){if(O.isIterable(t))return F.Vector.from({nullValues:[null,void 0],type:e(),values:t});if(O.isAsyncIterable(t))return F.Vector.from({nullValues:[null,void 0],type:e(),values:t});const{values:r=[],type:n=e(),nullValues:i=[null,void 0]}={...t};return O.isIterable(r),F.Vector.from({nullValues:i,...t,type:n})},S.BaseVector.prototype.get=function(e){return D.instance.visit(this,e)},S.BaseVector.prototype.set=function(e,t){return N.instance.visit(this,e,t)},S.BaseVector.prototype.indexOf=function(e,t){return Z.instance.visit(this,e,t)},S.BaseVector.prototype.toArray=function(){return k.instance.visit(this)},S.BaseVector.prototype.getByteWidth=function(){return j.instance.visit(this.type)},S.BaseVector.prototype[Symbol.iterator]=function(){return x.instance.visit(this)},S.BaseVector.prototype._bindDataAccessors=function(){const e=this.nullBitmap;e&&e.byteLength>0&&(this.get=function(e){return function(t){return this.isValid(t)?e.call(this,t):null}}(this.get),this.set=function(e){return function(t,r){M.setBool(this.nullBitmap,this.offset+t,!(null==r))&&e.call(this,t,r)}}(this.set))},Object.keys(I.Type).map(e=>I.Type[e]).filter(e=>"number"==typeof e).filter(e=>e!==I.Type.NONE).forEach(e=>{const t=W.instance.visit(e);var r;t.prototype.get=V.partial1(D.instance.getVisitFn(e)),t.prototype.set=V.partial2(N.instance.getVisitFn(e)),t.prototype.indexOf=V.partial2(Z.instance.getVisitFn(e)),t.prototype.toArray=V.partial0(k.instance.getVisitFn(e)),t.prototype.getByteWidth=(r=j.instance.getVisitFn(e),function(){return r(this.type)}),t.prototype[Symbol.iterator]=V.partial0(x.instance.getVisitFn(e))})},function(e,t,r){"use strict";r.r(t),r.d(t,"flatbuffers",(function(){return n}));var n={};n.Offset,n.Table,n.SIZEOF_SHORT=2,n.SIZEOF_INT=4,n.FILE_IDENTIFIER_LENGTH=4,n.SIZE_PREFIX_LENGTH=4,n.Encoding={UTF8_BYTES:1,UTF16_STRING:2},n.int32=new Int32Array(2),n.float32=new Float32Array(n.int32.buffer),n.float64=new Float64Array(n.int32.buffer),n.isLittleEndian=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],n.Long=function(e,t){this.low=0|e,this.high=0|t},n.Long.create=function(e,t){return 0==e&&0==t?n.Long.ZERO:new n.Long(e,t)},n.Long.prototype.toFloat64=function(){return(this.low>>>0)+4294967296*this.high},n.Long.prototype.equals=function(e){return this.low==e.low&&this.high==e.high},n.Long.ZERO=new n.Long(0,0),n.Builder=function(e){if(e)t=e;else var t=1024;this.bb=n.ByteBuffer.allocate(t),this.space=t,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},n.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},n.Builder.prototype.forceDefaults=function(e){this.force_defaults=e},n.Builder.prototype.dataBuffer=function(){return this.bb},n.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},n.Builder.prototype.prep=function(e,t){e>this.minalign&&(this.minalign=e);for(var r=1+~(this.bb.capacity()-this.space+t)&e-1;this.space<r+e+t;){var i=this.bb.capacity();this.bb=n.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(r)},n.Builder.prototype.pad=function(e){for(var t=0;t<e;t++)this.bb.writeInt8(--this.space,0)},n.Builder.prototype.writeInt8=function(e){this.bb.writeInt8(this.space-=1,e)},n.Builder.prototype.writeInt16=function(e){this.bb.writeInt16(this.space-=2,e)},n.Builder.prototype.writeInt32=function(e){this.bb.writeInt32(this.space-=4,e)},n.Builder.prototype.writeInt64=function(e){this.bb.writeInt64(this.space-=8,e)},n.Builder.prototype.writeFloat32=function(e){this.bb.writeFloat32(this.space-=4,e)},n.Builder.prototype.writeFloat64=function(e){this.bb.writeFloat64(this.space-=8,e)},n.Builder.prototype.addInt8=function(e){this.prep(1,0),this.writeInt8(e)},n.Builder.prototype.addInt16=function(e){this.prep(2,0),this.writeInt16(e)},n.Builder.prototype.addInt32=function(e){this.prep(4,0),this.writeInt32(e)},n.Builder.prototype.addInt64=function(e){this.prep(8,0),this.writeInt64(e)},n.Builder.prototype.addFloat32=function(e){this.prep(4,0),this.writeFloat32(e)},n.Builder.prototype.addFloat64=function(e){this.prep(8,0),this.writeFloat64(e)},n.Builder.prototype.addFieldInt8=function(e,t,r){(this.force_defaults||t!=r)&&(this.addInt8(t),this.slot(e))},n.Builder.prototype.addFieldInt16=function(e,t,r){(this.force_defaults||t!=r)&&(this.addInt16(t),this.slot(e))},n.Builder.prototype.addFieldInt32=function(e,t,r){(this.force_defaults||t!=r)&&(this.addInt32(t),this.slot(e))},n.Builder.prototype.addFieldInt64=function(e,t,r){!this.force_defaults&&t.equals(r)||(this.addInt64(t),this.slot(e))},n.Builder.prototype.addFieldFloat32=function(e,t,r){(this.force_defaults||t!=r)&&(this.addFloat32(t),this.slot(e))},n.Builder.prototype.addFieldFloat64=function(e,t,r){(this.force_defaults||t!=r)&&(this.addFloat64(t),this.slot(e))},n.Builder.prototype.addFieldOffset=function(e,t,r){(this.force_defaults||t!=r)&&(this.addOffset(t),this.slot(e))},n.Builder.prototype.addFieldStruct=function(e,t,r){t!=r&&(this.nested(t),this.slot(e))},n.Builder.prototype.nested=function(e){if(e!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")},n.Builder.prototype.notNested=function(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")},n.Builder.prototype.slot=function(e){this.vtable[e]=this.offset()},n.Builder.prototype.offset=function(){return this.bb.capacity()-this.space},n.Builder.growByteBuffer=function(e){var t=e.capacity();if(3221225472&t)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var r=t<<1,i=n.ByteBuffer.allocate(r);return i.setPosition(r-t),i.bytes().set(e.bytes(),r-t),i},n.Builder.prototype.addOffset=function(e){this.prep(n.SIZEOF_INT,0),this.writeInt32(this.offset()-e+n.SIZEOF_INT)},n.Builder.prototype.startObject=function(e){this.notNested(),null==this.vtable&&(this.vtable=[]),this.vtable_in_use=e;for(var t=0;t<e;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()},n.Builder.prototype.endObject=function(){if(null==this.vtable||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);for(var e=this.offset(),t=this.vtable_in_use-1;t>=0&&0==this.vtable[t];t--);for(var r=t+1;t>=0;t--)this.addInt16(0!=this.vtable[t]?e-this.vtable[t]:0);this.addInt16(e-this.object_start);var i=(r+2)*n.SIZEOF_SHORT;this.addInt16(i);var o=0,s=this.space;e:for(t=0;t<this.vtables.length;t++){var a=this.bb.capacity()-this.vtables[t];if(i==this.bb.readInt16(a)){for(var c=n.SIZEOF_SHORT;c<i;c+=n.SIZEOF_SHORT)if(this.bb.readInt16(s+c)!=this.bb.readInt16(a+c))continue e;o=this.vtables[t];break}}return o?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,o-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e},n.Builder.prototype.finish=function(e,t,r){var i=r?n.SIZE_PREFIX_LENGTH:0;if(t){var o=t;if(this.prep(this.minalign,n.SIZEOF_INT+n.FILE_IDENTIFIER_LENGTH+i),o.length!=n.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+n.FILE_IDENTIFIER_LENGTH);for(var s=n.FILE_IDENTIFIER_LENGTH-1;s>=0;s--)this.writeInt8(o.charCodeAt(s))}this.prep(this.minalign,n.SIZEOF_INT+i),this.addOffset(e),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)},n.Builder.prototype.finishSizePrefixed=function(e,t){this.finish(e,t,!0)},n.Builder.prototype.requiredField=function(e,t){var r=this.bb.capacity()-e,n=r-this.bb.readInt32(r);if(!(0!=this.bb.readInt16(n+t)))throw new Error("FlatBuffers: field "+t+" must be set")},n.Builder.prototype.startVector=function(e,t,r){this.notNested(),this.vector_num_elems=t,this.prep(n.SIZEOF_INT,e*t),this.prep(r,e*t)},n.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},n.Builder.prototype.createString=function(e){if(e instanceof Uint8Array)var t=e;else{t=[];for(var r=0;r<e.length;){var n,i=e.charCodeAt(r++);if(i<55296||i>=56320)n=i;else n=(i<<10)+e.charCodeAt(r++)+-56613888;n<128?t.push(n):(n<2048?t.push(n>>6&31|192):(n<65536?t.push(n>>12&15|224):t.push(n>>18&7|240,n>>12&63|128),t.push(n>>6&63|128)),t.push(63&n|128))}}this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length);r=0;for(var o=this.space,s=this.bb.bytes();r<t.length;r++)s[o++]=t[r];return this.endVector()},n.Builder.prototype.createLong=function(e,t){return n.Long.create(e,t)},n.ByteBuffer=function(e){this.bytes_=e,this.position_=0},n.ByteBuffer.allocate=function(e){return new n.ByteBuffer(new Uint8Array(e))},n.ByteBuffer.prototype.clear=function(){this.position_=0},n.ByteBuffer.prototype.bytes=function(){return this.bytes_},n.ByteBuffer.prototype.position=function(){return this.position_},n.ByteBuffer.prototype.setPosition=function(e){this.position_=e},n.ByteBuffer.prototype.capacity=function(){return this.bytes_.length},n.ByteBuffer.prototype.readInt8=function(e){return this.readUint8(e)<<24>>24},n.ByteBuffer.prototype.readUint8=function(e){return this.bytes_[e]},n.ByteBuffer.prototype.readInt16=function(e){return this.readUint16(e)<<16>>16},n.ByteBuffer.prototype.readUint16=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8},n.ByteBuffer.prototype.readInt32=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24},n.ByteBuffer.prototype.readUint32=function(e){return this.readInt32(e)>>>0},n.ByteBuffer.prototype.readInt64=function(e){return new n.Long(this.readInt32(e),this.readInt32(e+4))},n.ByteBuffer.prototype.readUint64=function(e){return new n.Long(this.readUint32(e),this.readUint32(e+4))},n.ByteBuffer.prototype.readFloat32=function(e){return n.int32[0]=this.readInt32(e),n.float32[0]},n.ByteBuffer.prototype.readFloat64=function(e){return n.int32[n.isLittleEndian?0:1]=this.readInt32(e),n.int32[n.isLittleEndian?1:0]=this.readInt32(e+4),n.float64[0]},n.ByteBuffer.prototype.writeInt8=function(e,t){this.bytes_[e]=t},n.ByteBuffer.prototype.writeUint8=function(e,t){this.bytes_[e]=t},n.ByteBuffer.prototype.writeInt16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8},n.ByteBuffer.prototype.writeUint16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8},n.ByteBuffer.prototype.writeInt32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24},n.ByteBuffer.prototype.writeUint32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24},n.ByteBuffer.prototype.writeInt64=function(e,t){this.writeInt32(e,t.low),this.writeInt32(e+4,t.high)},n.ByteBuffer.prototype.writeUint64=function(e,t){this.writeUint32(e,t.low),this.writeUint32(e+4,t.high)},n.ByteBuffer.prototype.writeFloat32=function(e,t){n.float32[0]=t,this.writeInt32(e,n.int32[0])},n.ByteBuffer.prototype.writeFloat64=function(e,t){n.float64[0]=t,this.writeInt32(e,n.int32[n.isLittleEndian?0:1]),this.writeInt32(e+4,n.int32[n.isLittleEndian?1:0])},n.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+n.SIZEOF_INT+n.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");for(var e="",t=0;t<n.FILE_IDENTIFIER_LENGTH;t++)e+=String.fromCharCode(this.readInt8(this.position_+n.SIZEOF_INT+t));return e},n.ByteBuffer.prototype.__offset=function(e,t){var r=e-this.readInt32(e);return t<this.readInt16(r)?this.readInt16(r+t):0},n.ByteBuffer.prototype.__union=function(e,t){return e.bb_pos=t+this.readInt32(t),e.bb=this,e},n.ByteBuffer.prototype.__string=function(e,t){e+=this.readInt32(e);var r=this.readInt32(e),i="",o=0;if(e+=n.SIZEOF_INT,t===n.Encoding.UTF8_BYTES)return this.bytes_.subarray(e,e+r);for(;o<r;){var s,a=this.readUint8(e+o++);if(a<192)s=a;else{var c=this.readUint8(e+o++);if(a<224)s=(31&a)<<6|63&c;else{var u=this.readUint8(e+o++);if(a<240)s=(15&a)<<12|(63&c)<<6|63&u;else s=(7&a)<<18|(63&c)<<12|(63&u)<<6|63&this.readUint8(e+o++)}}s<65536?i+=String.fromCharCode(s):(s-=65536,i+=String.fromCharCode(55296+(s>>10),56320+(1023&s)))}return i},n.ByteBuffer.prototype.__indirect=function(e){return e+this.readInt32(e)},n.ByteBuffer.prototype.__vector=function(e){return e+this.readInt32(e)+n.SIZEOF_INT},n.ByteBuffer.prototype.__vector_len=function(e){return this.readInt32(e+this.readInt32(e))},n.ByteBuffer.prototype.__has_identifier=function(e){if(e.length!=n.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+n.FILE_IDENTIFIER_LENGTH);for(var t=0;t<n.FILE_IDENTIFIER_LENGTH;t++)if(e.charCodeAt(t)!=this.readInt8(this.position_+n.SIZEOF_INT+t))return!1;return!0},n.ByteBuffer.prototype.createLong=function(e,t){return n.Long.create(e,t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._InternalEmptyPlaceholderRecordBatch=t.RecordBatch=void 0;const n=r(10),i=r(29),o=r(3),s=r(8),a=r(6),c=r(9),u=r(19),l=r(24),d=r(0),f=r(63),h=r(13);class A extends h.StructVector{constructor(...e){let t;const r=e[0];let i;if(e[1]instanceof n.Data)[,t,i]=e;else{const i=r.fields,[,o,s]=e;t=n.Data.Struct(new d.Struct(i),0,o,0,null,s)}super(t,i),this._schema=r}static from(e){return c.isIterable(e.values),i.Table.from(e)}static new(...e){const[t,r]=l.selectFieldArgs(e),n=r.filter(e=>e instanceof o.Vector);return new A(...f.ensureSameLengthData(new a.Schema(t),n.map(e=>e.data)))}clone(e,t=this._children){return new A(this._schema,e,t)}concat(...e){const t=this._schema,r=u.Chunked.flatten(this,...e);return new i.Table(t,r.map(({data:e})=>new A(t,e)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=p.collect(this))}select(...e){const t=this._schema.fields.reduce((e,t,r)=>e.set(t.name,r),new Map);return this.selectAt(...e.map(e=>t.get(e)).filter(e=>e>-1))}selectAt(...e){const t=this._schema.selectAt(...e),r=e.map(e=>this.data.childData[e]).filter(Boolean);return new A(t,this.length,r)}}t.RecordBatch=A;t._InternalEmptyPlaceholderRecordBatch=class extends A{constructor(e){super(e,0,e.fields.map(e=>n.Data.new(e.type,0,0,0)))}};class p extends s.Visitor{constructor(){super(...arguments),this.dictionaries=new Map}static collect(e){return(new p).visit(e.data,new d.Struct(e.schema.fields)).dictionaries}visit(e,t){return d.DataType.isDictionary(t)?this.visitDictionary(e,t):(e.childData.forEach((e,r)=>this.visit(e,t.children[r].type)),this)}visitDictionary(e,t){const r=e.dictionary;return r&&r.length>0&&this.dictionaries.set(t.id,r),this}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Schema=t.Buffer=t.Field=t.DictionaryEncoding=t.KeyValue=t.Duration=t.Interval=t.Timestamp=t.Time=t.Date=t.Decimal=t.Bool=t.FixedSizeBinary=t.LargeBinary=t.LargeUtf8=t.Binary=t.Utf8=t.FloatingPoint=t.Int=t.Union=t.Map=t.FixedSizeList=t.LargeList=t.List=t.Struct_=t.Null=t.Endianness=t.DictionaryKind=t.Type=t.IntervalUnit=t.TimeUnit=t.DateUnit=t.Precision=t.UnionMode=t.Feature=t.MetadataVersion=void 0;const n=r(14);var i,o,s,a,c,u,l,d;!function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4",e[e.V5=4]="V5"}(t.MetadataVersion||(t.MetadataVersion={})),function(e){e[e.UNUSED=0]="UNUSED",e[e.DICTIONARY_REPLACEMENT=1]="DICTIONARY_REPLACEMENT",e[e.COMPRESSED_BODY=2]="COMPRESSED_BODY"}(t.Feature||(t.Feature={})),function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(i=t.UnionMode||(t.UnionMode={})),function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}(o=t.Precision||(t.Precision={})),function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(s=t.DateUnit||(t.DateUnit={})),function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(a=t.TimeUnit||(t.TimeUnit={})),function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME"}(c=t.IntervalUnit||(t.IntervalUnit={})),function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.FloatingPoint=3]="FloatingPoint",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct_=13]="Struct_",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.LargeList=21]="LargeList"}(u=t.Type||(t.Type={})),function(e){e[e.DenseArray=0]="DenseArray"}(l=t.DictionaryKind||(t.DictionaryKind={})),function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(d=t.Endianness||(t.Endianness={}));class f{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsNull(e,t){return(t||new f).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new f).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return f.startNull(e),f.endNull(e)}}t.Null=f;class h{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsStruct_(e,t){return(t||new h).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new h).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return h.startStruct_(e),h.endStruct_(e)}}t.Struct_=h;class A{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsList(e,t){return(t||new A).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new A).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return A.startList(e),A.endList(e)}}t.List=A;class p{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeList(e,t){return(t||new p).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeList(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new p).__init(e.readInt32(e.position())+e.position(),e)}static startLargeList(e){e.startObject(0)}static endLargeList(e){return e.endObject()}static createLargeList(e){return p.startLargeList(e),p.endLargeList(e)}}t.LargeList=p;class y{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeList(e,t){return(t||new y).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new y).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,t){return y.startFixedSizeList(e),y.addListSize(e,t),y.endFixedSizeList(e)}}t.FixedSizeList=y;class b{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMap(e,t){return(t||new b).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new b).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}static startMap(e){e.startObject(1)}static addKeysSorted(e,t){e.addFieldInt8(0,+t,0)}static endMap(e){return e.endObject()}static createMap(e,t){return b.startMap(e),b.addKeysSorted(e,t),b.endMap(e)}}t.Map=b;class m{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUnion(e,t){return(t||new m).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new m).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):i.Sparse}typeIds(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+4*e):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,t){e.addFieldInt16(0,t,i.Sparse)}static addTypeIds(e,t){e.addFieldOffset(1,t,0)}static createTypeIdsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addInt32(t[r]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(e,t,r){return m.startUnion(e),m.addMode(e,t),m.addTypeIds(e,r),m.endUnion(e)}}t.Union=m;class g{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInt(e,t){return(t||new g).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new g).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}static startInt(e){e.startObject(2)}static addBitWidth(e,t){e.addFieldInt32(0,t,0)}static addIsSigned(e,t){e.addFieldInt8(1,+t,0)}static endInt(e){return e.endObject()}static createInt(e,t,r){return g.startInt(e),g.addBitWidth(e,t),g.addIsSigned(e,r),g.endInt(e)}}t.Int=g;class v{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFloatingPoint(e,t){return(t||new v).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new v).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):o.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,t){e.addFieldInt16(0,t,o.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,t){return v.startFloatingPoint(e),v.addPrecision(e,t),v.endFloatingPoint(e)}}t.FloatingPoint=v;class B{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(e,t){return(t||new B).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new B).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return B.startUtf8(e),B.endUtf8(e)}}t.Utf8=B;class _{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBinary(e,t){return(t||new _).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new _).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return _.startBinary(e),_.endBinary(e)}}t.Binary=_;class T{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeUtf8(e,t){return(t||new T).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new T).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return T.startLargeUtf8(e),T.endLargeUtf8(e)}}t.LargeUtf8=T;class w{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsLargeBinary(e,t){return(t||new w).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new w).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return w.startLargeBinary(e),w.endLargeBinary(e)}}t.LargeBinary=w;class V{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFixedSizeBinary(e,t){return(t||new V).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new V).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,t){e.addFieldInt32(0,t,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,t){return V.startFixedSizeBinary(e),V.addByteWidth(e,t),V.endFixedSizeBinary(e)}}t.FixedSizeBinary=V;class I{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBool(e,t){return(t||new I).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new I).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return I.startBool(e),I.endBool(e)}}t.Bool=I;class F{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDecimal(e,t){return(t||new F).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new F).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,t){e.addFieldInt32(0,t,0)}static addScale(e,t){e.addFieldInt32(1,t,0)}static addBitWidth(e,t){e.addFieldInt32(2,t,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,t,r,n){return F.startDecimal(e),F.addPrecision(e,t),F.addScale(e,r),F.addBitWidth(e,n),F.endDecimal(e)}}t.Decimal=F;class U{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDate(e,t){return(t||new U).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new U).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):s.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,s.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,t){return U.startDate(e),U.addUnit(e,t),U.endDate(e)}}t.Date=U;class S{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTime(e,t){return(t||new S).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new S).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):a.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,a.MILLISECOND)}static addBitWidth(e,t){e.addFieldInt32(1,t,32)}static endTime(e){return e.endObject()}static createTime(e,t,r){return S.startTime(e),S.addUnit(e,t),S.addBitWidth(e,r),S.endTime(e)}}t.Time=S;class M{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsTimestamp(e,t){return(t||new M).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new M).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):a.SECOND}timezone(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,t){e.addFieldInt16(0,t,a.SECOND)}static addTimezone(e,t){e.addFieldOffset(1,t,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,t,r){return M.startTimestamp(e),M.addUnit(e,t),M.addTimezone(e,r),M.endTimestamp(e)}}t.Timestamp=M;class O{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsInterval(e,t){return(t||new O).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new O).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):c.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,c.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,t){return O.startInterval(e),O.addUnit(e,t),O.endInterval(e)}}t.Interval=O;class R{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDuration(e,t){return(t||new R).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new R).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):a.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,t){e.addFieldInt16(0,t,a.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,t){return R.startDuration(e),R.addUnit(e,t),R.endDuration(e)}}t.Duration=R;class D{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsKeyValue(e,t){return(t||new D).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new D).__init(e.readInt32(e.position())+e.position(),e)}key(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}value(e){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,t){e.addFieldOffset(0,t,0)}static addValue(e,t){e.addFieldOffset(1,t,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,t,r){return D.startKeyValue(e),D.addKey(e,t),D.addValue(e,r),D.endKeyValue(e)}}t.KeyValue=D;class N{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryEncoding(e,t){return(t||new N).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new N).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}indexType(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new g).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):l.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}static addIndexType(e,t){e.addFieldOffset(1,t,0)}static addIsOrdered(e,t){e.addFieldInt8(2,+t,0)}static addDictionaryKind(e,t){e.addFieldInt16(3,t,l.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}static createDictionaryEncoding(e,t,r,n,i){return N.startDictionaryEncoding(e),N.addId(e,t),N.addIndexType(e,r),N.addIsOrdered(e,n),N.addDictionaryKind(e,i),N.endDictionaryEncoding(e)}}t.DictionaryEncoding=N;class Z{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(e,t){return(t||new Z).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new Z).__init(e.readInt32(e.position())+e.position(),e)}name(e){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):u.NONE}type(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){const t=this.bb.__offset(this.bb_pos,12);return t?(e||new N).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(e,t){const r=this.bb.__offset(this.bb_pos,14);return r?(t||new Z).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const r=this.bb.__offset(this.bb_pos,16);return r?(t||new D).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,u.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}static createField(e,t,r,n,i,o,s,a){return Z.startField(e),Z.addName(e,t),Z.addNullable(e,r),Z.addTypeType(e,n),Z.addType(e,i),Z.addDictionary(e,o),Z.addChildren(e,s),Z.addCustomMetadata(e,a),Z.endField(e)}}t.Field=Z;t.Buffer=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static createBuffer(e,t,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(t),e.offset()}};class k{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(e,t){return(t||new k).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new k).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):d.Little}fields(e,t){const r=this.bb.__offset(this.bb_pos,6);return r?(t||new Z).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const r=this.bb.__offset(this.bb_pos,8);return r?(t||new D).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+8*e):this.bb.createLong(0,0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,d.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addInt64(t[r]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(e,t,r,n,i){return k.startSchema(e),k.addEndianness(e,t),k.addFields(e,r),k.addCustomMetadata(e,n),k.addFeatures(e,i),k.endSchema(e)}}t.Schema=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WideBufferBuilder=t.OffsetsBufferBuilder=t.BitmapBufferBuilder=t.DataBufferBuilder=t.BufferBuilder=void 0;const n=r(5),i=r(9),o=(e,t)=>(e*t+63&-64||64)/t;class s{constructor(e,t=1){this.buffer=e,this.stride=t,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e.constructor,this._resize(this.length=e.length/t|0)}get byteLength(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(e,t){return this}append(e){return this.set(this.length,e)}reserve(e){if(e>0){this.length+=e;const t=this.stride,r=this.length*t,n=this.buffer.length;r>=n&&this._resize(o(0===n?1*r:2*r,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=o(e*this.stride,this.BYTES_PER_ELEMENT);const t=((e,t=0)=>e.length>=t?e.subarray(0,t):n.memcpy(new e.constructor(t),e,0))(this.buffer,e);return this.clear(),t}clear(){return this.length=0,this._resize(0),this}_resize(e){return this.buffer=n.memcpy(new this.ArrayType(e),this.buffer)}}t.BufferBuilder=s,s.prototype.offset=0;class a extends s{last(){return this.get(this.length-1)}get(e){return this.buffer[e]}set(e,t){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=t,this}}t.DataBufferBuilder=a;t.BitmapBufferBuilder=class extends a{constructor(e=new Uint8Array(0)){super(e,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(e){return this.buffer[e>>3]>>e%8&1}set(e,t){const{buffer:r}=this.reserve(e-this.length+1),n=e>>3,i=e%8,o=r[n]>>i&1;return t?0===o&&(r[n]|=1<<i,++this.numValid):1===o&&(r[n]&=~(1<<i),--this.numValid),this}clear(){return this.numValid=0,super.clear()}};t.OffsetsBufferBuilder=class extends a{constructor(e=new Int32Array(1)){super(e,1)}append(e){return this.set(this.length-1,e)}set(e,t){const r=this.length-1,n=this.reserve(e-r+1).buffer;return r<e++&&n.fill(n[r],r,e),n[e]=n[e-1]+t,this}flush(e=this.length-1){return e>this.length&&this.set(e-1,0),super.flush(e+1)}};t.WideBufferBuilder=class extends s{get ArrayType64(){return this._ArrayType64||(this._ArrayType64=this.buffer instanceof Int32Array?i.BigInt64Array:i.BigUint64Array)}set(e,t){switch(this.reserve(e-this.length+1),typeof t){case"bigint":this.buffer64[e]=t;break;case"number":this.buffer[e*this.stride]=t;break;default:this.buffer.set(t,e*this.stride)}return this}_resize(e){const t=super._resize(e),r=t.byteLength/(this.BYTES_PER_ELEMENT*this.stride);return i.BigIntAvailable&&(this.buffer64=new this.ArrayType64(t.buffer,t.byteOffset,r)),t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncByteStream=t.ByteStream=t.AsyncByteQueue=void 0;const n=r(25),i=r(20),o=r(22),s=r(5),a=r(9);class c extends o.AsyncQueue{write(e){if((e=s.toUint8Array(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?i.decodeUtf8(this.toUint8Array(!0)):this.toUint8Array(!1).then(i.decodeUtf8)}toUint8Array(e=!1){return e?s.joinUint8Arrays(this._values)[0]:(async()=>{const e=[];let t=0;for await(const r of this)e.push(r),t+=r.byteLength;return s.joinUint8Arrays(e,t)[0]})()}}t.AsyncByteQueue=c;class u{constructor(e){e&&(this.source=new d(n.default.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}t.ByteStream=u;class l{constructor(e){e instanceof l?this.source=e.source:e instanceof c?this.source=new f(n.default.fromAsyncIterable(e)):a.isReadableNodeStream(e)?this.source=new f(n.default.fromNodeStream(e)):a.isReadableDOMStream(e)?this.source=new f(n.default.fromDOMStream(e)):a.isFetchResponse(e)?this.source=new f(n.default.fromDOMStream(e.body)):a.isIterable(e)?this.source=new f(n.default.fromIterable(e)):(a.isPromise(e)||a.isAsyncIterable(e))&&(this.source=new f(n.default.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}t.AsyncByteStream=l;class d{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,t="read"){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||o.ITERATOR_DONE)}return(e){return Object.create(this.source.return&&this.source.return(e)||o.ITERATOR_DONE)}}class f{constructor(e){this.source=e,this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}async cancel(e){await this.return(e)}get closed(){return this._closedPromise}async read(e){return(await this.next(e,"read")).value}async peek(e){return(await this.next(e,"peek")).value}async next(e,t="read"){return await this.source.next({cmd:t,size:e})}async throw(e){const t=this.source.throw&&await this.source.throw(e)||o.ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}async return(e){const t=this.source.return&&await this.source.return(e)||o.ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chunked=void 0;const n=r(30),i=r(0),o=r(24),s=r(3);class a{constructor(e){this.chunks=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator()}next(){for(;this.chunkIndex<this.chunks.length;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.chunks.length&&(this.chunkIterator=this.getChunkIterator())}return{done:!0,value:null}}getChunkIterator(){return this.chunks[this.chunkIndex][Symbol.iterator]()}[Symbol.iterator](){return this}}class c extends s.AbstractVector{constructor(e,t=[],r=function(e){const t=new Uint32Array((e||[]).length+1);let r=t[0]=0;const n=t.length;for(let i=0;++i<n;)t[i]=r+=e[i-1].length;return t}(t)){super(),this._nullCount=-1,this._type=e,this._chunks=t,this._chunkOffsets=r,this._length=r[r.length-1],this._numChildren=(this._type.children||[]).length}static flatten(...e){return o.selectChunkArgs(s.Vector,e)}static concat(...e){const t=c.flatten(...e);return new c(t[0].type,t)}get type(){return this._type}get length(){return this._length}get chunks(){return this._chunks}get typeId(){return this._type.typeId}get VectorName(){return`Chunked<${this._type}>`}get data(){return this._chunks[0]?this._chunks[0].data:null}get ArrayType(){return this._type.ArrayType}get numChildren(){return this._numChildren}get stride(){return this._chunks[0]?this._chunks[0].stride:1}get byteLength(){return this._chunks.reduce((e,t)=>e+t.byteLength,0)}get nullCount(){let e=this._nullCount;return e<0&&(this._nullCount=e=this._chunks.reduce((e,{nullCount:t})=>e+t,0)),e}get indices(){if(i.DataType.isDictionary(this._type)){if(!this._indices){const e=this._chunks;this._indices=1===e.length?e[0].indices:c.concat(...e.map(e=>e.indices))}return this._indices}return null}get dictionary(){return i.DataType.isDictionary(this._type)?this._chunks[this._chunks.length-1].data.dictionary:null}[Symbol.iterator](){return new a(this._chunks)}clone(e=this._chunks){return new c(this._type,e)}concat(...e){return this.clone(c.flatten(this,...e))}slice(e,t){return n.clampRange(this,e,t,this._sliceInternal)}getChildAt(e){if(e<0||e>=this._numChildren)return null;const t=this._children||(this._children=[]);let r,n,i;return(r=t[e])?r:(n=(this._type.children||[])[e])&&(i=this._chunks.map(t=>t.getChildAt(e)).filter(e=>null!=e),i.length>0)?t[e]=new c(n.type,i):null}search(e,t){const r=e,n=this._chunkOffsets;let i=n.length-1;if(r<0)return null;if(r>=n[i])return null;if(i<=1)return t?t(this,0,r):[0,r];let o=0,s=0,a=0;do{if(o+1===i)return t?t(this,o,r-s):[o,r-s];a=o+(i-o)/2|0,r>=n[a]?o=a:i=a}while(r<n[i]&&r>=(s=n[o]));return null}isValid(e){return!!this.search(e,this.isValidInternal)}get(e){return this.search(e,this.getInternal)}set(e,t){this.search(e,({chunks:e},r,n)=>e[r].set(n,t))}indexOf(e,t){return t&&"number"==typeof t?this.search(t,(t,r,n)=>this.indexOfInternal(t,r,n,e)):this.indexOfInternal(this,0,Math.max(0,t||0),e)}toArray(){const{chunks:e}=this,t=e.length;let r=this._type.ArrayType;if(t<=0)return new r(0);if(t<=1)return e[0].toArray();let n=0;const i=new Array(t);for(let r=-1;++r<t;)n+=(i[r]=e[r].toArray()).length;r!==i[0].constructor&&(r=i[0].constructor);const o=new r(n),s=r===Array?l:u;for(let e=-1,r=0;++e<t;)r=s(i[e],o,r);return o}getInternal({_chunks:e},t,r){return e[t].get(r)}isValidInternal({_chunks:e},t,r){return e[t].isValid(r)}indexOfInternal({_chunks:e},t,r,n){let i=t-1;const o=e.length;let s=r,a=0,c=-1;for(;++i<o;){if(~(c=e[i].indexOf(n,s)))return a+c;s=0,a+=e[i].length}return-1}_sliceInternal(e,t,r){const n=[],{chunks:i,_chunkOffsets:o}=e;for(let e=-1,s=i.length;++e<s;){const s=i[e],a=s.length,c=o[e];if(c>=r)break;if(t>=c+a)continue;if(c>=t&&c+a<=r){n.push(s);continue}const u=Math.max(0,t-c),l=Math.min(r-c,a);n.push(s.slice(u,l))}return e.clone(n)}}t.Chunked=c;const u=(e,t,r)=>(t.set(e,r),r+e.length),l=(e,t,r)=>{let n=r;for(let r=-1,i=e.length;++r<i;)t[n++]=e[r];return n}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.encodeUtf8=exports.decodeUtf8=void 0;const buffer_1=__webpack_require__(5),text_encoding_utf_8_1=__webpack_require__(89),_Buffer=eval("typeof Buffer === 'function' ? Buffer : null"),useNativeEncoders="function"==typeof TextDecoder&&"function"==typeof TextEncoder;exports.decodeUtf8=(e=>{if(useNativeEncoders||!_Buffer){const t=new e("utf-8");return e=>t.decode(e)}return e=>{const{buffer:t,byteOffset:r,length:n}=buffer_1.toUint8Array(e);return _Buffer.from(t,r,n).toString()}})("undefined"!=typeof TextDecoder?TextDecoder:text_encoding_utf_8_1.TextDecoder),exports.encodeUtf8=(e=>{if(useNativeEncoders||!_Buffer){const t=new e;return e=>t.encode(e)}return(e="")=>buffer_1.toUint8Array(_Buffer.from(e,"utf8"))})("undefined"!=typeof TextEncoder?TextEncoder:text_encoding_utf_8_1.TextEncoder)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldNode=t.BufferRegion=t.DictionaryBatch=t.RecordBatch=t.Message=void 0;const n=r(14),i=r(16),o=r(33),s=r(6),a=r(5),c=r(1),u=r(94),l=r(95);var d=n.flatbuffers.Long,f=n.flatbuffers.Builder,h=n.flatbuffers.ByteBuffer;const A=r(0);class p{constructor(e,t,r,n){this._version=t,this._headerType=r,this.body=new Uint8Array(0),n&&(this._createHeader=()=>n),this._bodyLength="number"==typeof e?e:e.low}static fromJSON(e,t){const r=new p(0,c.MetadataVersion.V4,t);return r._createHeader=function(e,t){return()=>{switch(t){case c.MessageHeader.Schema:return s.Schema.fromJSON(e);case c.MessageHeader.RecordBatch:return y.fromJSON(e);case c.MessageHeader.DictionaryBatch:return b.fromJSON(e)}throw new Error(`Unrecognized Message type: { name: ${c.MessageHeader[t]}, type: ${t} }`)}}(e,t),r}static decode(e){e=new h(a.toUint8Array(e));const t=o.Message.getRootAsMessage(e),r=t.bodyLength(),n=t.version(),u=t.headerType(),l=new p(r,n,u);return l._createHeader=function(e,t){return()=>{switch(t){case c.MessageHeader.Schema:return s.Schema.decode(e.header(new i.Schema));case c.MessageHeader.RecordBatch:return y.decode(e.header(new o.RecordBatch),e.version());case c.MessageHeader.DictionaryBatch:return b.decode(e.header(new o.DictionaryBatch),e.version())}throw new Error(`Unrecognized Message type: { name: ${c.MessageHeader[t]}, type: ${t} }`)}}(t,u),l}static encode(e){const t=new f;let r=-1;return e.isSchema()?r=s.Schema.encode(t,e.header()):e.isRecordBatch()?r=y.encode(t,e.header()):e.isDictionaryBatch()&&(r=b.encode(t,e.header())),o.Message.startMessage(t),o.Message.addVersion(t,c.MetadataVersion.V4),o.Message.addHeader(t,r),o.Message.addHeaderType(t,e.headerType),o.Message.addBodyLength(t,new d(e.bodyLength,0)),o.Message.finishMessageBuffer(t,o.Message.endMessage(t)),t.asUint8Array()}static from(e,t=0){if(e instanceof s.Schema)return new p(0,c.MetadataVersion.V4,c.MessageHeader.Schema,e);if(e instanceof y)return new p(t,c.MetadataVersion.V4,c.MessageHeader.RecordBatch,e);if(e instanceof b)return new p(t,c.MetadataVersion.V4,c.MessageHeader.DictionaryBatch,e);throw new Error("Unrecognized Message header: "+e)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===c.MessageHeader.Schema}isRecordBatch(){return this.headerType===c.MessageHeader.RecordBatch}isDictionaryBatch(){return this.headerType===c.MessageHeader.DictionaryBatch}}t.Message=p;class y{constructor(e,t,r){this._nodes=t,this._buffers=r,this._length="number"==typeof e?e:e.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}}t.RecordBatch=y;class b{constructor(e,t,r=!1){this._data=e,this._isDelta=r,this._id="number"==typeof t?t:t.low}get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}}t.DictionaryBatch=b;class m{constructor(e,t){this.offset="number"==typeof e?e:e.low,this.length="number"==typeof t?t:t.low}}t.BufferRegion=m;class g{constructor(e,t){this.length="number"==typeof e?e:e.low,this.nullCount="number"==typeof t?t:t.low}}function v(e,t){const r=[];for(let n,i=-1,o=-1,a=e.childrenLength();++i<a;)(n=e.children(i))&&(r[++o]=s.Field.decode(n,t));return r}function B(e){const t=new Map;if(e)for(let r,n,i=-1,o=0|e.customMetadataLength();++i<o;)(r=e.customMetadata(i))&&null!=(n=r.key())&&t.set(n,r.value());return t}function _(e){return new A.Int(e.isSigned(),e.bitWidth())}function T(e,t){const r=e.typeType();switch(r){case i.Type.NONE:case i.Type.Null:return new A.Null;case i.Type.Binary:return new A.Binary;case i.Type.Utf8:return new A.Utf8;case i.Type.Bool:return new A.Bool;case i.Type.List:return new A.List((t||[])[0]);case i.Type.Struct_:return new A.Struct(t||[])}switch(r){case i.Type.Int:{const t=e.type(new i.Int);return new A.Int(t.isSigned(),t.bitWidth())}case i.Type.FloatingPoint:{const t=e.type(new i.FloatingPoint);return new A.Float(t.precision())}case i.Type.Decimal:{const t=e.type(new i.Decimal);return new A.Decimal(t.scale(),t.precision())}case i.Type.Date:{const t=e.type(new i.Date);return new A.Date_(t.unit())}case i.Type.Time:{const t=e.type(new i.Time);return new A.Time(t.unit(),t.bitWidth())}case i.Type.Timestamp:{const t=e.type(new i.Timestamp);return new A.Timestamp(t.unit(),t.timezone())}case i.Type.Interval:{const t=e.type(new i.Interval);return new A.Interval(t.unit())}case i.Type.Union:{const r=e.type(new i.Union);return new A.Union(r.mode(),r.typeIdsArray()||[],t||[])}case i.Type.FixedSizeBinary:{const t=e.type(new i.FixedSizeBinary);return new A.FixedSizeBinary(t.byteWidth())}case i.Type.FixedSizeList:{const r=e.type(new i.FixedSizeList);return new A.FixedSizeList(r.listSize(),(t||[])[0])}case i.Type.Map:{const r=e.type(new i.Map);return new A.Map_((t||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${i.Type[r]}" (${r})`)}t.FieldNode=g,s.Field.encode=function(e,t){let r=-1,n=-1,o=-1;const a=t.type;let c=t.typeId;A.DataType.isDictionary(a)?(c=a.dictionary.typeId,o=u.instance.visit(a,e),n=u.instance.visit(a.dictionary,e)):n=u.instance.visit(a,e);const l=(a.children||[]).map(t=>s.Field.encode(e,t)),d=i.Field.createChildrenVector(e,l),f=t.metadata&&t.metadata.size>0?i.Field.createCustomMetadataVector(e,[...t.metadata].map(([t,r])=>{const n=e.createString(""+t),o=e.createString(""+r);return i.KeyValue.startKeyValue(e),i.KeyValue.addKey(e,n),i.KeyValue.addValue(e,o),i.KeyValue.endKeyValue(e)})):-1;t.name&&(r=e.createString(t.name));i.Field.startField(e),i.Field.addType(e,n),i.Field.addTypeType(e,c),i.Field.addChildren(e,d),i.Field.addNullable(e,!!t.nullable),-1!==r&&i.Field.addName(e,r);-1!==o&&i.Field.addDictionary(e,o);-1!==f&&i.Field.addCustomMetadata(e,f);return i.Field.endField(e)},s.Field.decode=function(e,t){let r,n,i,o,a,c;t&&(c=e.dictionary())?t.has(r=c.id().low)?(o=(o=c.indexType())?_(o):new A.Int32,a=new A.Dictionary(t.get(r),o,r,c.isOrdered()),n=new s.Field(e.name(),a,e.nullable(),B(e))):(o=(o=c.indexType())?_(o):new A.Int32,t.set(r,i=T(e,v(e,t))),a=new A.Dictionary(i,o,r,c.isOrdered()),n=new s.Field(e.name(),a,e.nullable(),B(e))):(i=T(e,v(e,t)),n=new s.Field(e.name(),i,e.nullable(),B(e)));return n||null},s.Field.fromJSON=l.fieldFromJSON,s.Schema.encode=function(e,t){const r=t.fields.map(t=>s.Field.encode(e,t));i.Schema.startFieldsVector(e,r.length);const n=i.Schema.createFieldsVector(e,r),o=t.metadata&&t.metadata.size>0?i.Schema.createCustomMetadataVector(e,[...t.metadata].map(([t,r])=>{const n=e.createString(""+t),o=e.createString(""+r);return i.KeyValue.startKeyValue(e),i.KeyValue.addKey(e,n),i.KeyValue.addValue(e,o),i.KeyValue.endKeyValue(e)})):-1;i.Schema.startSchema(e),i.Schema.addFields(e,n),i.Schema.addEndianness(e,w?i.Endianness.Little:i.Endianness.Big),-1!==o&&i.Schema.addCustomMetadata(e,o);return i.Schema.endSchema(e)},s.Schema.decode=function(e,t=new Map){const r=function(e,t){const r=[];for(let n,i=-1,o=-1,a=e.fieldsLength();++i<a;)(n=e.fields(i))&&(r[++o]=s.Field.decode(n,t));return r}(e,t);return new s.Schema(r,B(e),t)},s.Schema.fromJSON=l.schemaFromJSON,y.encode=function(e,t){const r=t.nodes||[],n=t.buffers||[];o.RecordBatch.startNodesVector(e,r.length),r.slice().reverse().forEach(t=>g.encode(e,t));const i=e.endVector();o.RecordBatch.startBuffersVector(e,n.length),n.slice().reverse().forEach(t=>m.encode(e,t));const s=e.endVector();return o.RecordBatch.startRecordBatch(e),o.RecordBatch.addLength(e,new d(t.length,0)),o.RecordBatch.addNodes(e,i),o.RecordBatch.addBuffers(e,s),o.RecordBatch.endRecordBatch(e)},y.decode=function(e,t=c.MetadataVersion.V4){return new y(e.length(),function(e){const t=[];for(let r,n=-1,i=-1,o=e.nodesLength();++n<o;)(r=e.nodes(n))&&(t[++i]=g.decode(r));return t}(e),function(e,t){const r=[];for(let n,i=-1,o=-1,s=e.buffersLength();++i<s;)(n=e.buffers(i))&&(t<c.MetadataVersion.V4&&(n.bb_pos+=8*(i+1)),r[++o]=m.decode(n));return r}(e,t))},y.fromJSON=l.recordBatchFromJSON,b.encode=function(e,t){const r=y.encode(e,t.data);return o.DictionaryBatch.startDictionaryBatch(e),o.DictionaryBatch.addId(e,new d(t.id,0)),o.DictionaryBatch.addIsDelta(e,t.isDelta),o.DictionaryBatch.addData(e,r),o.DictionaryBatch.endDictionaryBatch(e)},b.decode=function(e,t=c.MetadataVersion.V4){return new b(y.decode(e.data(),t),e.id(),e.isDelta())},b.fromJSON=l.dictionaryBatchFromJSON,g.encode=function(e,t){return o.FieldNode.createFieldNode(e,new d(t.length,0),new d(t.nullCount,0))},g.decode=function(e){return new g(e.length(),e.nullCount())},m.encode=function(e,t){return i.Buffer.createBuffer(e,new d(t.offset,0),new d(t.length,0))},m.decode=function(e){return new m(e.offset(),e.length())};const w=function(){const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncQueue=t.ReadableInterop=t.ArrowJSON=t.ITERATOR_DONE=void 0;const n=r(25);t.ITERATOR_DONE=Object.freeze({done:!0,value:void 0});t.ArrowJSON=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}};class i{tee(){return this._getDOMStream().tee()}pipe(e,t){return this._getNodeStream().pipe(e,t)}pipeTo(e,t){return this._getDOMStream().pipeTo(e,t)}pipeThrough(e,t){return this._getDOMStream().pipeThrough(e,t)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}t.ReadableInterop=i;class o extends i{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}async cancel(e){await this.return(e)}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(t.ITERATOR_DONE);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return n.default.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return n.default.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}async throw(e){return await this.abort(e),t.ITERATOR_DONE}async return(e){return await this.close(),t.ITERATOR_DONE}async read(e){return(await this.next(e,"read")).value}async peek(e){return(await this.next(e,"peek")).value}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((e,t)=>{this.resolvers.push({resolve:e,reject:t})}):Promise.resolve(t.ITERATOR_DONE)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error(this+" is closed")}}t.AsyncQueue=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Column=void 0;const n=r(6),i=r(3),o=r(19);class s extends o.Chunked{constructor(e,t=[],r){if(t=o.Chunked.flatten(...t),super(e.type,t,r),this._field=e,1===t.length&&!(this instanceof a))return new a(e,t[0],this._chunkOffsets)}static new(...e){let[t,r,...a]=e;"string"==typeof t||t instanceof n.Field||(r=t,t="");const c=o.Chunked.flatten(Array.isArray(r)?[...r,...a]:r instanceof i.Vector?[r,...a]:[i.Vector.new(r,...a)]);if("string"==typeof t){const e=c[0].data.type;t=new n.Field(t,e,!0)}else!t.nullable&&c.some(({nullCount:e})=>e>0)&&(t=t.clone({nullable:!0}));return new s(t,c)}get field(){return this._field}get name(){return this._field.name}get nullable(){return this._field.nullable}get metadata(){return this._field.metadata}clone(e=this._chunks){return new s(this._field,e)}getChildAt(e){if(e<0||e>=this.numChildren)return null;const t=this._children||(this._children=[]);let r,n,i;return(r=t[e])?r:(n=(this.type.children||[])[e])&&(i=this._chunks.map(t=>t.getChildAt(e)).filter(e=>null!=e),i.length>0)?t[e]=new s(n,i):null}}t.Column=s;class a extends s{constructor(e,t,r){super(e,[t],r),this._chunk=t}search(e,t){return t?t(this,0,e):[0,e]}isValid(e){return this._chunk.isValid(e)}get(e){return this._chunk.get(e)}set(e,t){this._chunk.set(e,t)}indexOf(e,t){return this._chunk.indexOf(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectColumnChildrenArgs=t.selectVectorChildrenArgs=t.selectChunkArgs=t.selectFieldArgs=t.selectColumnArgs=t.selectArgs=void 0;const n=r(10),i=r(6),o=r(23),s=r(3),a=r(0),c=r(19),u=Array.isArray;function l(e,t,r,n){let i,o=n,s=-1;const a=t.length;for(;++s<a;)u(i=t[s])?o=l(e,i,r,o).length:i instanceof e&&(r[o++]=i);return r}t.selectArgs=(e,t)=>l(e,t,[],0),t.selectColumnArgs=e=>{const[t,r]=f(e,[[],[]]);return r.map((e,r)=>e instanceof o.Column?o.Column.new(e.field.clone(t[r]),e):e instanceof s.Vector?o.Column.new(t[r],e):o.Column.new(t[r],[]))},t.selectFieldArgs=e=>f(e,[[],[]]),t.selectChunkArgs=(e,t)=>function e(t,r,n,i){let o,s=i,a=-1;const l=r.length;for(;++a<l;)u(o=r[a])?s=e(t,o,n,s).length:o instanceof c.Chunked?s=e(t,o.chunks,n,s).length:o instanceof t&&(n[s++]=o);return n}(e,t,[],0),t.selectVectorChildrenArgs=(e,t)=>function e(t,r,n,i){let o,a=i,c=-1;const d=r.length;for(;++c<d;)u(o=r[c])?a=e(t,o,n,a).length:o instanceof t?a=l(s.Vector,o.schema.fields.map((e,t)=>o.getChildAt(t)),n,a).length:o instanceof s.Vector&&(n[a++]=o);return n}(e,t,[],0),t.selectColumnChildrenArgs=(e,t)=>function e(t,r,n,i){let s,a=i,c=-1;const d=r.length;for(;++c<d;)u(s=r[c])?a=e(t,s,n,a).length:s instanceof t?a=l(o.Column,s.schema.fields.map((e,t)=>o.Column.new(e,s.getChildAt(t))),n,a).length:s instanceof o.Column&&(n[a++]=s);return n}(e,t,[],0);const d=(e,[t,r],n)=>(e[0][n]=t,e[1][n]=r,e);function f(e,t){let r,c;switch(c=e.length){case 0:return t;case 1:if(r=t[0],!e[0])return t;if(u(e[0]))return f(e[0],t);e[0]instanceof n.Data||e[0]instanceof s.Vector||e[0]instanceof a.DataType||([r,e]=Object.entries(e[0]).reduce(d,t));break;default:u(r=e[c-1])?e=u(e[0])?e[0]:e.slice(0,c-1):(e=u(e[0])?e[0]:e,r=[])}let l=-1,h=-1,A=-1;const p=e.length;let y,b;const[m,g]=t;for(;++A<p;)b=e[A],b instanceof o.Column&&(g[++h]=b)?m[++l]=b.field.clone(r[A],b.type,!0):(({[A]:y=A}=r),b instanceof a.DataType&&(g[++h]=b)?m[++l]=i.Field.new(y,b,!0):b&&b.type&&(g[++h]=b)&&(b instanceof n.Data&&(g[h]=b=s.Vector.new(b)),m[++l]=i.Field.new(y,b.type,!0)));return t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5);t.default={fromIterable:e=>i(function*(e){let t,r,i,o,s=!1,a=[],c=0;({cmd:i,size:o}=yield null);const u=n.toUint8ArrayIterator(e)[Symbol.iterator]();try{do{if(({done:t,value:r}=isNaN(o-c)?u.next(void 0):u.next(o-c)),!t&&r.byteLength>0&&(a.push(r),c+=r.byteLength),t||o<=c)do{({cmd:i,size:o}=yield"peek"===i?n.joinUint8Arrays(a,o)[0]:([r,a,c]=n.joinUint8Arrays(a,o),r))}while(o<c)}while(!t)}catch(e){(s=!0)&&"function"==typeof u.throw&&u.throw(e)}finally{!1===s&&"function"==typeof u.return&&u.return(null)}return null}(e)),fromAsyncIterable:e=>i(async function*(e){let t,r,i,o,s=!1,a=[],c=0;({cmd:i,size:o}=yield null);const u=n.toUint8ArrayAsyncIterator(e)[Symbol.asyncIterator]();try{do{if(({done:t,value:r}=isNaN(o-c)?await u.next(void 0):await u.next(o-c)),!t&&r.byteLength>0&&(a.push(r),c+=r.byteLength),t||o<=c)do{({cmd:i,size:o}=yield"peek"===i?n.joinUint8Arrays(a,o)[0]:([r,a,c]=n.joinUint8Arrays(a,o),r))}while(o<c)}while(!t)}catch(e){(s=!0)&&"function"==typeof u.throw&&await u.throw(e)}finally{!1===s&&"function"==typeof u.return&&await u.return(new Uint8Array(0))}return null}(e)),fromDOMStream:e=>i(async function*(e){let t,r,i,s=!1,a=!1,c=[],u=0;({cmd:r,size:i}=yield null);const l=new o(e);try{do{if(({done:s,value:t}=isNaN(i-u)?await l.read(void 0):await l.read(i-u)),!s&&t.byteLength>0&&(c.push(n.toUint8Array(t)),u+=t.byteLength),s||i<=u)do{({cmd:r,size:i}=yield"peek"===r?n.joinUint8Arrays(c,i)[0]:([t,c,u]=n.joinUint8Arrays(c,i),t))}while(i<u)}while(!s)}catch(e){(a=!0)&&await l.cancel(e)}finally{!1===a?await l.cancel():e.locked&&l.releaseLock()}return null}(e)),fromNodeStream:e=>i(async function*(e){const t=[];let r,i,o,a="error",c=!1,u=null,l=0,d=[];if(({cmd:r,size:i}=yield null),e.isTTY)return yield new Uint8Array(0),null;try{t[0]=s(e,"end"),t[1]=s(e,"error");do{if(t[2]=s(e,"readable"),[a,u]=await Promise.race(t.map(e=>e[2])),"error"===a)break;if((c="end"===a)||(isFinite(i-l)?(o=n.toUint8Array(e.read(i-l)),o.byteLength<i-l&&(o=n.toUint8Array(e.read(void 0)))):o=n.toUint8Array(e.read(void 0)),o.byteLength>0&&(d.push(o),l+=o.byteLength)),c||i<=l)do{({cmd:r,size:i}=yield"peek"===r?n.joinUint8Arrays(d,i)[0]:([o,d,l]=n.joinUint8Arrays(d,i),o))}while(i<l)}while(!c)}finally{await function(t,r){return o=d=null,new Promise((n,i)=>{for(const[r,n]of t)e.off(r,n);try{const t=e.destroy;t&&t.call(e,r),r=void 0}catch(e){r=e||r}finally{null!=r?i(r):n()}})}(t,"error"===a?u:null)}return null}(e)),toDOMStream(e,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(e,t){throw new Error('"toNodeStream" not available in this environment')}};const i=e=>(e.next(),e);class o{constructor(e){this.source=e,this.byobReader=null,this.defaultReader=null;try{this.supportsBYOB=!!(this.reader=this.getBYOBReader())}catch(e){this.supportsBYOB=!(this.reader=this.getDefaultReader())}}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}async cancel(e){const{reader:t,source:r}=this;t&&await t.cancel(e).catch(()=>{}),r&&r.locked&&this.releaseLock()}async read(e){if(0===e)return{done:null==this.reader,value:new Uint8Array(0)};const t=this.supportsBYOB&&"number"==typeof e?await this.readFromBYOBReader(e):await this.getDefaultReader().read();return!t.done&&(t.value=n.toUint8Array(t)),t}getDefaultReader(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source.getReader(),this.defaultReader.closed.catch(()=>{})),this.reader=this.defaultReader}getBYOBReader(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source.getReader({mode:"byob"}),this.byobReader.closed.catch(()=>{})),this.reader=this.byobReader}async readFromBYOBReader(e){return await async function e(t,r,n,i){if(n>=i)return{done:!1,value:new Uint8Array(r,0,i)};const{done:o,value:s}=await t.read(new Uint8Array(r,n,i-n));if((n+=s.byteLength)<i&&!o)return await e(t,s.buffer,n,i);return{done:o,value:new Uint8Array(s.buffer,0,n)}}(this.getBYOBReader(),new ArrayBuffer(e),0,e)}}const s=(e,t)=>{const r=e=>n([t,e]);let n;return[t,r,new Promise(i=>(n=i)&&e.once(t,r))]}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.float64ToUint16=t.uint16ToFloat64=void 0;const n=new Float64Array(1),i=new Uint32Array(n.buffer);t.uint16ToFloat64=function(e){const t=(31744&e)>>10,r=(1023&e)/1024,n=(-1)**((32768&e)>>15);switch(t){case 31:return n*(r?NaN:1/0);case 0:return n*(r?6103515625e-14*r:0)}return n*2**(t-15)*(1+r)},t.float64ToUint16=function(e){if(e!=e)return 32256;n[0]=e;const t=(2147483648&i[1])>>16&65535;let r=2146435072&i[1],o=0;return r>=1089470464?i[0]>0?r=31744:(r=(2080374784&r)>>16,o=(1048575&i[1])>>10):r<=1056964608?(o=1048576+(1048575&i[1]),o=1048576+(o<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,o=512+(1048575&i[1])>>10),t|r|65535&o}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BN=t.bignumToBigInt=t.bignumToString=t.isArrowBigNumSymbol=void 0;const n=r(5),i=r(9);function o(e,...t){return 0===t.length?Object.setPrototypeOf(n.toArrayBufferView(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}function s(...e){return o.apply(this,e)}function a(...e){return o.apply(this,e)}function c(...e){return o.apply(this,e)}function u(e){const{buffer:t,byteOffset:r,length:n,signed:i}=e,o=new Int32Array(t,r,n);let s=0,a=0;const c=o.length;let u,l;for(;a<c;)l=o[a++],u=o[a++],i||(u>>>=0),s+=(l>>>0)+u*a**32;return s}function l(e){let t="";const r=new Uint32Array(2);let n=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2);const i=new Uint32Array((n=new Uint16Array(n).reverse()).buffer);let o=-1;const s=n.length-1;do{for(r[0]=n[o=0];o<s;)n[o++]=r[1]=r[0]/10,r[0]=(r[0]-10*r[1]<<16)+n[o];n[o]=r[1]=r[0]/10,r[0]=r[0]-10*r[1],t=`${r[0]}${t}`}while(i[0]||i[1]||i[2]||i[3]);return t||"0"}t.isArrowBigNumSymbol=Symbol.for("isArrowBigNum"),o.prototype[t.isArrowBigNumSymbol]=!0,o.prototype.toJSON=function(){return`"${t.bignumToString(this)}"`},o.prototype.valueOf=function(){return u(this)},o.prototype.toString=function(){return t.bignumToString(this)},o.prototype[Symbol.toPrimitive]=function(e="default"){switch(e){case"number":return u(this);case"string":return t.bignumToString(this);case"default":return t.bignumToBigInt(this)}return t.bignumToString(this)},Object.setPrototypeOf(s.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(a.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(c.prototype,Object.create(Uint32Array.prototype)),Object.assign(s.prototype,o.prototype,{constructor:s,signed:!0,TypedArray:Int32Array,BigIntArray:i.BigInt64Array}),Object.assign(a.prototype,o.prototype,{constructor:a,signed:!1,TypedArray:Uint32Array,BigIntArray:i.BigUint64Array}),Object.assign(c.prototype,o.prototype,{constructor:c,signed:!0,TypedArray:Uint32Array,BigIntArray:i.BigUint64Array}),i.BigIntAvailable?(t.bignumToBigInt=e=>8===e.byteLength?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:l(e),t.bignumToString=e=>8===e.byteLength?""+new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:l(e)):(t.bignumToString=l,t.bignumToBigInt=t.bignumToString);class d{static new(e,t){switch(t){case!0:return new s(e);case!1:return new a(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case i.BigInt64Array:return new s(e)}return 16===e.byteLength?new c(e):new a(e)}static signed(e){return new s(e)}static unsigned(e){return new a(e)}static decimal(e){return new c(e)}constructor(e,t){return d.new(e,t)}}t.BN=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncRecordBatchFileReader=t.RecordBatchFileReader=t.AsyncRecordBatchStreamReader=t.RecordBatchStreamReader=t.RecordBatchReader=void 0;const n=r(3),i=r(1),o=r(59),s=r(25),a=r(18),c=r(60),u=r(93),l=r(15),d=r(22),f=r(37),h=r(9);class A extends d.ReadableInterop{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const t=this._impl.open(e);return h.isPromise(t)?t.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return s.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return s.default.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof A?e:h.isArrowJSON(e)?function(e){return new p(new w(e))}(e):h.isFileHandle(e)?async function(e){const{size:t}=await e.stat(),r=new c.AsyncRandomAccessFile(e,t);if(t>=f.magicX2AndPadding&&f.checkForMagicArrowString(await r.readAt(0,f.magicLength+7&-8)))return new m(new T(r));return new y(new B(r))}(e):h.isPromise(e)?(async()=>await A.from(await e))():h.isFetchResponse(e)||h.isReadableDOMStream(e)||h.isReadableNodeStream(e)||h.isAsyncIterable(e)?async function(e){const t=await e.peek(f.magicLength+7&-8);return t&&t.byteLength>=4?f.checkForMagicArrowString(t)?new b(new _(await e.read())):new y(new B(e)):new y(new B(async function*(){}()))}(new a.AsyncByteStream(e)):function(e){const t=e.peek(f.magicLength+7&-8);return t&&t.byteLength>=4?f.checkForMagicArrowString(t)?new b(new _(e.read())):new p(new v(e)):new p(new v(function*(){}()))}(new a.ByteStream(e))}static readAll(e){return e instanceof A?e.isSync()?I(e):F(e):h.isArrowJSON(e)||ArrayBuffer.isView(e)||h.isIterable(e)||h.isIteratorResult(e)?I(e):F(e)}}t.RecordBatchReader=A;class p extends A{constructor(e){super(e),this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}async*[Symbol.asyncIterator](){yield*this[Symbol.iterator]()}}t.RecordBatchStreamReader=p;class y extends A{constructor(e){super(e),this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}t.AsyncRecordBatchStreamReader=y;class b extends p{constructor(e){super(e),this._impl=e}}t.RecordBatchFileReader=b;class m extends y{constructor(e){super(e),this._impl=e}}t.AsyncRecordBatchFileReader=m;class g{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){return new l.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){const{id:r,isDelta:i,data:o}=e,{dictionaries:s,schema:a}=this,c=s.get(r);if(i||!c){const e=a.dictionaries.get(r);return c&&i?c.concat(n.Vector.new(this._loadVectors(o,t,[e])[0])):n.Vector.new(this._loadVectors(o,t,[e])[0])}return c}_loadVectors(e,t,r){return new u.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}class v extends g{constructor(e,t){super(t),this._reader=h.isArrowJSON(e)?new f.JSONMessageReader(this._handle=e):new f.MessageReader(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=V(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):d.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):d.ITERATOR_DONE}next(){if(this.closed)return d.ITERATOR_DONE;let e;const{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),n=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,n)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),n=t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new l._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class B extends g{constructor(e,t){super(t),this._reader=new f.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}async cancel(){!this.closed&&(this.closed=!0)&&(await this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}async open(e){return this.closed||(this.autoDestroy=V(this,e),this.schema||(this.schema=await this._reader.readSchema())||await this.cancel()),this}async throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.throw(e):d.ITERATOR_DONE}async return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?await this.reset()._reader.return(e):d.ITERATOR_DONE}async next(){if(this.closed)return d.ITERATOR_DONE;let e;const{_reader:t}=this;for(;e=await this._readNextMessageAndValidate();)if(e.isSchema())await this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),n=await t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,n)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),n=await t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new l._InternalEmptyPlaceholderRecordBatch(this.schema)}):await this.return()}async _readNextMessageAndValidate(e){return await this._reader.readMessage(e)}}class _ extends v{constructor(e,t){super(e instanceof c.RandomAccessFile?e:new c.RandomAccessFile(e),t)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){if(this.closed)return null;this._footer||this.open();const t=this._footer&&this._footer.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){const e=this._reader.readMessage(i.MessageHeader.RecordBatch);if(e&&e.isRecordBatch()){const t=e.header(),r=this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,r)}}return null}_readDictionaryBatch(e){const t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){const e=this._reader.readMessage(i.MessageHeader.DictionaryBatch);if(e&&e.isDictionaryBatch()){const t=e.header(),r=this._reader.readMessageBody(e.bodyLength),n=this._loadDictionaryBatch(t,r);this.dictionaries.set(t.id,n)}}}_readFooter(){const{_handle:e}=this,t=e.size-f.magicAndPadding,r=e.readInt32(t),n=e.readAt(t-r,r);return o.Footer.decode(n)}_readNextMessageAndValidate(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const t=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}}class T extends B{constructor(e,...t){const r="number"!=typeof t[0]?t.shift():void 0,n=t[0]instanceof Map?t.shift():void 0;super(e instanceof c.AsyncRandomAccessFile?e:new c.AsyncRandomAccessFile(e,r),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}async open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=await this._readFooter()).schema;for(const e of this._footer.dictionaryBatches())e&&await this._readDictionaryBatch(this._dictionaryIndex++)}return await super.open(e)}async readRecordBatch(e){if(this.closed)return null;this._footer||await this.open();const t=this._footer&&this._footer.getRecordBatch(e);if(t&&await this._handle.seek(t.offset)){const e=await this._reader.readMessage(i.MessageHeader.RecordBatch);if(e&&e.isRecordBatch()){const t=e.header(),r=await this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,r)}}return null}async _readDictionaryBatch(e){const t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&await this._handle.seek(t.offset)){const e=await this._reader.readMessage(i.MessageHeader.DictionaryBatch);if(e&&e.isDictionaryBatch()){const t=e.header(),r=await this._reader.readMessageBody(e.bodyLength),n=this._loadDictionaryBatch(t,r);this.dictionaries.set(t.id,n)}}}async _readFooter(){const{_handle:e}=this;e._pending&&await e._pending;const t=e.size-f.magicAndPadding,r=await e.readInt32(t),n=await e.readAt(t-r,r);return o.Footer.decode(n)}async _readNextMessageAndValidate(e){if(this._footer||await this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&await this._handle.seek(t.offset))return await this._reader.readMessage(e)}return null}}class w extends v{constructor(e,t){super(e,t)}_loadVectors(e,t,r){return new u.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}function V(e,t){return t&&"boolean"==typeof t.autoDestroy?t.autoDestroy:e.autoDestroy}function*I(e){const t=A.from(e);try{if(!t.open({autoDestroy:!1}).closed)do{yield t}while(!t.reset().open().closed)}finally{t.cancel()}}async function*F(e){const t=await A.from(e);try{if(!(await t.open({autoDestroy:!1})).closed)do{yield t}while(!(await t.reset().open()).closed)}finally{await t.cancel()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Table=void 0;const n=r(23),i=r(6),o=r(15),s=r(28),a=r(0),c=r(24),u=r(9),l=r(36),d=r(63),f=r(13);class h extends f.Chunked{constructor(...e){let t=null;e[0]instanceof i.Schema&&(t=e.shift());const r=c.selectArgs(o.RecordBatch,e);if(!t&&!(t=r[0]&&r[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");r[0]||(r[0]=new o._InternalEmptyPlaceholderRecordBatch(t)),super(new a.Struct(t.fields),r),this._schema=t,this._chunks=r}static empty(e=new i.Schema([])){return new h(e,[])}static from(e){if(!e)return h.empty();if("object"==typeof e){const t=u.isIterable(e.values)?function(e){const{type:t}=e;if(t instanceof a.Struct)return h.fromStruct(f.StructVector.from(e));return null}(e):u.isAsyncIterable(e.values)?function(e){const{type:t}=e;if(t instanceof a.Struct)return f.StructVector.from(e).then(e=>h.fromStruct(e));return null}(e):null;if(null!==t)return t}let t=s.RecordBatchReader.from(e);return u.isPromise(t)?(async()=>await h.from(await t))():t.isSync()&&(t=t.open())?t.schema?new h(t.schema,[...t]):h.empty():(async e=>{const t=await e,r=t.schema,n=[];if(r){for await(const e of t)n.push(e);return new h(r,n)}return h.empty()})(t.open())}static async fromAsync(e){return await h.from(e)}static fromStruct(e){return h.new(e.data.childData,e.type.children)}static new(...e){return new h(...d.distributeColumnsIntoRecordBatches(c.selectColumnArgs(e)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(e=this._chunks){return new h(this._schema,e)}getColumn(e){return this.getColumnAt(this.getColumnIndex(e))}getColumnAt(e){return this.getChildAt(e)}getColumnIndex(e){return this._schema.fields.findIndex(t=>t.name===e)}getChildAt(e){if(e<0||e>=this.numChildren)return null;let t,r;const i=this._schema.fields,o=this._children||(this._children=[]);if(r=o[e])return r;if(t=i[e]){const r=this._chunks.map(t=>t.getChildAt(e)).filter(e=>null!=e);if(r.length>0)return o[e]=new n.Column(t,r)}return null}serialize(e="binary",t=!0){return(t?l.RecordBatchStreamWriter:l.RecordBatchFileWriter).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...e){const t=this._schema.fields.reduce((e,t,r)=>e.set(t.name,r),new Map);return this.selectAt(...e.map(e=>t.get(e)).filter(e=>e>-1))}selectAt(...e){const t=this._schema.selectAt(...e);return new h(t,this._chunks.map(({length:r,data:{childData:n}})=>new o.RecordBatch(t,r,e.map(e=>n[e]).filter(Boolean))))}assign(e){const t=this._schema.fields,[r,n]=e.schema.fields.reduce((e,r,n)=>{const[i,o]=e,s=t.findIndex(e=>e.name===r.name);return~s?o[s]=n:i.push(n),e},[[],[]]),i=this._schema.assign(e.schema),o=[...t.map((t,r,i,o=n[r])=>void 0===o?this.getColumnAt(r):e.getColumnAt(o)),...r.map(t=>e.getColumnAt(t))].filter(Boolean);return new h(...d.distributeVectorsIntoRecordBatches(i,o))}}t.Table=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createElementComparator=t.clampRange=t.clampIndex=void 0;const n=r(3),i=r(31),o=r(5),s=r(9);let a;t.clampIndex=function(e,t,r){const n=e.length,i=t>-1?t:n+t%n;return r?r(e,i):i},t.clampRange=function(e,t,r,n){const{length:i=0}=e;let o="number"!=typeof t?0:t,s="number"!=typeof r?i:r;return o<0&&(o=(o%i+i)%i),s<0&&(s=(s%i+i)%i),s<o&&(a=o,o=s,s=a),s>i&&(s=i),n?n(e,o,s):[o,s]};const c=s.BigIntAvailable?s.BigInt(0):0,u=e=>e!=e;function l(e){const t=typeof e;if("object"!==t||null===e)return u(e)?u:"bigint"!==t?t=>t===e:t=>c+t===e;if(e instanceof Date){const t=e.valueOf();return e=>e instanceof Date&&e.valueOf()===t}return ArrayBuffer.isView(e)?t=>!!t&&o.compareArrayLike(e,t):e instanceof Map?function(e){let t=-1;const r=[];return e.forEach(e=>r[++t]=l(e)),d(r)}(e):Array.isArray(e)?function(e){const t=[];for(let r=-1,n=e.length;++r<n;)t[r]=l(e[r]);return d(t)}(e):e instanceof n.Vector?function(e){const t=[];for(let r=-1,n=e.length;++r<n;)t[r]=l(e.get(r));return d(t)}(e):function(e){const t=Object.keys(e);if(0===t.length)return()=>!1;const r=[];for(let n=-1,i=t.length;++n<i;)r[n]=l(e[t[n]]);return d(r,t)}(e)}function d(e,t){return r=>{if(!r||"object"!=typeof r)return!1;switch(r.constructor){case Array:return function(e,t){const r=e.length;if(t.length!==r)return!1;for(let n=-1;++n<r;)if(!e[n](t[n]))return!1;return!0}(e,r);case Map:case i.MapRow:case i.StructRow:return f(e,r,r.keys());case Object:case void 0:return f(e,r,t||Object.keys(r))}return r instanceof n.Vector&&function(e,t){const r=e.length;if(t.length!==r)return!1;for(let n=-1;++n<r;)if(!e[n](t.get(n)))return!1;return!0}(e,r)}}function f(e,t,r){const n=r[Symbol.iterator](),i=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),o=t instanceof Map?t.values():Object.values(t)[Symbol.iterator]();let s=0;const a=e.length;let c=o.next(),u=n.next(),l=i.next();for(;s<a&&!u.done&&!l.done&&!c.done&&(u.value===l.value&&e[s](c.value));++s,u=n.next(),l=i.next(),c=o.next());return!!(s===a&&u.done&&l.done&&c.done)||(n.return&&n.return(),i.return&&i.return(),o.return&&o.return(),!1)}t.createElementComparator=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructRow=t.MapRow=void 0;const n=r(40),i=Symbol.for("parent"),o=Symbol.for("rowIndex"),s=Symbol.for("keyToIdx"),a=Symbol.for("idxToVal"),c=Symbol.for("nodejs.util.inspect.custom");class u{constructor(e,t){this[i]=e,this.size=t}entries(){return this[Symbol.iterator]()}has(e){return void 0!==this.get(e)}get(e){let t=void 0;if(null!=e){const r=this[s]||(this[s]=new Map);let n=r.get(e);if(void 0!==n){const e=this[a]||(this[a]=new Array(this.size));void 0!==(t=e[n])||(e[n]=t=this.getValue(n))}else if((n=this.getIndex(e))>-1){r.set(e,n);const i=this[a]||(this[a]=new Array(this.size));void 0!==(t=i[n])||(i[n]=t=this.getValue(n))}}return t}set(e,t){if(null!=e){const r=this[s]||(this[s]=new Map);let n=r.get(e);if(void 0===n&&r.set(e,n=this.getIndex(e)),n>-1){(this[a]||(this[a]=new Array(this.size)))[n]=this.setValue(n,t)}}return this}clear(){throw new Error(`Clearing ${this[Symbol.toStringTag]} not supported.`)}delete(e){throw new Error(`Deleting ${this[Symbol.toStringTag]} values not supported.`)}*[Symbol.iterator](){const e=this.keys(),t=this.values(),r=this[s]||(this[s]=new Map),n=this[a]||(this[a]=new Array(this.size));for(let i,o,s,a,c=0;!(s=e.next()).done&&!(a=t.next()).done;++c)i=s.value,o=a.value,n[c]=o,r.has(i)||r.set(i,c),yield[i,o]}forEach(e,t){const r=this.keys(),n=this.values(),i=void 0===t?e:(r,n,i)=>e.call(t,r,n,i),o=this[s]||(this[s]=new Map),c=this[a]||(this[a]=new Array(this.size));for(let e,t,s,a,u=0;!(s=r.next()).done&&!(a=n.next()).done;++u)e=s.value,t=a.value,c[u]=t,o.has(e)||o.set(e,u),i(t,e,this)}toArray(){return[...this.values()]}toJSON(){const e={};return this.forEach((t,r)=>e[r]=t),e}inspect(){return this.toString()}[c](){return this.toString()}toString(){const e=[];return this.forEach((t,r)=>{r=n.valueToString(r),t=n.valueToString(t),e.push(`${r}: ${t}`)}),`{ ${e.join(", ")} }`}}var l;u[Symbol.toStringTag]=(l=u.prototype,Object.defineProperties(l,{size:{writable:!0,enumerable:!1,configurable:!1,value:0},[i]:{writable:!0,enumerable:!1,configurable:!1,value:null},[o]:{writable:!0,enumerable:!1,configurable:!1,value:-1}}),l[Symbol.toStringTag]="Row");t.MapRow=class extends u{constructor(e){return super(e,e.length),f(this)}keys(){return this[i].getChildAt(0)[Symbol.iterator]()}values(){return this[i].getChildAt(1)[Symbol.iterator]()}getKey(e){return this[i].getChildAt(0).get(e)}getIndex(e){return this[i].getChildAt(0).indexOf(e)}getValue(e){return this[i].getChildAt(1).get(e)}setValue(e,t){this[i].getChildAt(1).set(e,t)}};t.StructRow=class extends u{constructor(e){return super(e,e.type.children.length),d(this)}*keys(){for(const e of this[i].type.children)yield e.name}*values(){for(const e of this[i].type.children)yield this[e.name]}getKey(e){return this[i].type.children[e].name}getIndex(e){return this[i].type.children.findIndex(t=>t.name===e)}getValue(e){return this[i].getChildAt(e).get(this[o])}setValue(e,t){return this[i].getChildAt(e).set(this[o],t)}},Object.setPrototypeOf(u.prototype,Map.prototype);const d=(()=>{const e={enumerable:!0,configurable:!1,get:null,set:null};return t=>{let r=-1;const n=t[s]||(t[s]=new Map),i=e=>function(){return this.get(e)},o=e=>function(t){return this.set(e,t)};for(const s of t.keys())n.set(s,++r),e.get=i(s),e.set=o(s),Object.prototype.hasOwnProperty.call(t,s)||(e.enumerable=!0,Object.defineProperty(t,s,e)),Object.prototype.hasOwnProperty.call(t,r)||(e.enumerable=!1,Object.defineProperty(t,r,e));return e.get=e.set=null,t}})(),f=(()=>{if("undefined"==typeof Proxy)return d;const e=u.prototype.has,t=u.prototype.get,r=u.prototype.set,n=u.prototype.getKey,l={isExtensible:()=>!1,deleteProperty:()=>!1,preventExtensions:()=>!0,ownKeys:e=>[...e.keys()].map(e=>""+e),has(e,t){switch(t){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 i:case o:case a:case s:case c:return!0}return"number"!=typeof t||e.has(t)||(t=e.getKey(t)),e.has(t)},get(r,u,l){switch(u){case"getKey":case"getIndex":case"getValue":case"setValue":case"toArray":case"toJSON":case"inspect":case"constructor":case"isPrototypeOf":case"propertyIsEnumerable":case"toString":case"toLocaleString":case"valueOf":case"size":case"has":case"get":case"set":case"clear":case"delete":case"keys":case"values":case"entries":case"forEach":case"__proto__":case"__defineGetter__":case"__defineSetter__":case"hasOwnProperty":case"__lookupGetter__":case"__lookupSetter__":case Symbol.iterator:case Symbol.toStringTag:case i:case o:case a:case s:case c:return Reflect.get(r,u,l)}return"number"!=typeof u||e.call(l,u)||(u=n.call(l,u)),t.call(l,u)},set(t,c,u,l){switch(c){case i:case o:case a:case s:return Reflect.set(t,c,u,l);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 c||e.call(l,c)||(c=n.call(l,c)),!!e.call(l,c)&&!!r.call(l,c,u)}};return e=>new Proxy(e,l)})()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DenseUnionBuilder=t.SparseUnionBuilder=t.UnionBuilder=t.StructBuilder=t.MapBuilder=t.FixedSizeListBuilder=t.ListBuilder=t.BinaryBuilder=t.Utf8Builder=t.IntervalYearMonthBuilder=t.IntervalDayTimeBuilder=t.IntervalBuilder=t.TimestampNanosecondBuilder=t.TimestampMicrosecondBuilder=t.TimestampMillisecondBuilder=t.TimestampSecondBuilder=t.TimestampBuilder=t.TimeNanosecondBuilder=t.TimeMicrosecondBuilder=t.TimeMillisecondBuilder=t.TimeSecondBuilder=t.TimeBuilder=t.Uint64Builder=t.Uint32Builder=t.Uint16Builder=t.Uint8Builder=t.Int64Builder=t.Int32Builder=t.Int16Builder=t.Int8Builder=t.IntBuilder=t.Float64Builder=t.Float32Builder=t.Float16Builder=t.FloatBuilder=t.FixedSizeBinaryBuilder=t.DictionaryBuilder=t.DecimalBuilder=t.DateMillisecondBuilder=t.DateDayBuilder=t.DateBuilder=t.NullBuilder=t.BoolBuilder=t.Builder=void 0;var n=r(2);Object.defineProperty(t,"Builder",{enumerable:!0,get:function(){return n.Builder}});var i=r(41);Object.defineProperty(t,"BoolBuilder",{enumerable:!0,get:function(){return i.BoolBuilder}});var o=r(42);Object.defineProperty(t,"NullBuilder",{enumerable:!0,get:function(){return o.NullBuilder}});var s=r(43);Object.defineProperty(t,"DateBuilder",{enumerable:!0,get:function(){return s.DateBuilder}}),Object.defineProperty(t,"DateDayBuilder",{enumerable:!0,get:function(){return s.DateDayBuilder}}),Object.defineProperty(t,"DateMillisecondBuilder",{enumerable:!0,get:function(){return s.DateMillisecondBuilder}});var a=r(44);Object.defineProperty(t,"DecimalBuilder",{enumerable:!0,get:function(){return a.DecimalBuilder}});var c=r(45);Object.defineProperty(t,"DictionaryBuilder",{enumerable:!0,get:function(){return c.DictionaryBuilder}});var u=r(46);Object.defineProperty(t,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return u.FixedSizeBinaryBuilder}});var l=r(47);Object.defineProperty(t,"FloatBuilder",{enumerable:!0,get:function(){return l.FloatBuilder}}),Object.defineProperty(t,"Float16Builder",{enumerable:!0,get:function(){return l.Float16Builder}}),Object.defineProperty(t,"Float32Builder",{enumerable:!0,get:function(){return l.Float32Builder}}),Object.defineProperty(t,"Float64Builder",{enumerable:!0,get:function(){return l.Float64Builder}});var d=r(48);Object.defineProperty(t,"IntBuilder",{enumerable:!0,get:function(){return d.IntBuilder}}),Object.defineProperty(t,"Int8Builder",{enumerable:!0,get:function(){return d.Int8Builder}}),Object.defineProperty(t,"Int16Builder",{enumerable:!0,get:function(){return d.Int16Builder}}),Object.defineProperty(t,"Int32Builder",{enumerable:!0,get:function(){return d.Int32Builder}}),Object.defineProperty(t,"Int64Builder",{enumerable:!0,get:function(){return d.Int64Builder}}),Object.defineProperty(t,"Uint8Builder",{enumerable:!0,get:function(){return d.Uint8Builder}}),Object.defineProperty(t,"Uint16Builder",{enumerable:!0,get:function(){return d.Uint16Builder}}),Object.defineProperty(t,"Uint32Builder",{enumerable:!0,get:function(){return d.Uint32Builder}}),Object.defineProperty(t,"Uint64Builder",{enumerable:!0,get:function(){return d.Uint64Builder}});var f=r(49);Object.defineProperty(t,"TimeBuilder",{enumerable:!0,get:function(){return f.TimeBuilder}}),Object.defineProperty(t,"TimeSecondBuilder",{enumerable:!0,get:function(){return f.TimeSecondBuilder}}),Object.defineProperty(t,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return f.TimeMillisecondBuilder}}),Object.defineProperty(t,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return f.TimeMicrosecondBuilder}}),Object.defineProperty(t,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return f.TimeNanosecondBuilder}});var h=r(50);Object.defineProperty(t,"TimestampBuilder",{enumerable:!0,get:function(){return h.TimestampBuilder}}),Object.defineProperty(t,"TimestampSecondBuilder",{enumerable:!0,get:function(){return h.TimestampSecondBuilder}}),Object.defineProperty(t,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return h.TimestampMillisecondBuilder}}),Object.defineProperty(t,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return h.TimestampMicrosecondBuilder}}),Object.defineProperty(t,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return h.TimestampNanosecondBuilder}});var A=r(51);Object.defineProperty(t,"IntervalBuilder",{enumerable:!0,get:function(){return A.IntervalBuilder}}),Object.defineProperty(t,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return A.IntervalDayTimeBuilder}}),Object.defineProperty(t,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return A.IntervalYearMonthBuilder}});var p=r(34);Object.defineProperty(t,"Utf8Builder",{enumerable:!0,get:function(){return p.Utf8Builder}});var y=r(35);Object.defineProperty(t,"BinaryBuilder",{enumerable:!0,get:function(){return y.BinaryBuilder}});var b=r(52);Object.defineProperty(t,"ListBuilder",{enumerable:!0,get:function(){return b.ListBuilder}});var m=r(54);Object.defineProperty(t,"FixedSizeListBuilder",{enumerable:!0,get:function(){return m.FixedSizeListBuilder}});var g=r(55);Object.defineProperty(t,"MapBuilder",{enumerable:!0,get:function(){return g.MapBuilder}});var v=r(56);Object.defineProperty(t,"StructBuilder",{enumerable:!0,get:function(){return v.StructBuilder}});var B=r(57);Object.defineProperty(t,"UnionBuilder",{enumerable:!0,get:function(){return B.UnionBuilder}}),Object.defineProperty(t,"SparseUnionBuilder",{enumerable:!0,get:function(){return B.SparseUnionBuilder}}),Object.defineProperty(t,"DenseUnionBuilder",{enumerable:!0,get:function(){return B.DenseUnionBuilder}});const _=r(1),T=r(34),w=r(2),V=r(58),I=r(91);w.Builder.new=function e(t){const r=t.type,n=new(I.instance.getVisitFn(r)())(t);if(r.children&&r.children.length>0){const i=t.children||[],o={nullValues:t.nullValues},s=Array.isArray(i)?(e,t)=>i[t]||o:({name:e})=>i[e]||o;r.children.forEach((t,r)=>{const{type:i}=t,o=s(t,r);n.children.push(e({...o,type:i}))})}return n},Object.keys(_.Type).map(e=>_.Type[e]).filter(e=>"number"==typeof e&&e!==_.Type.NONE).forEach(e=>{I.instance.visit(e).prototype._setValue=V.instance.getVisitFn(e)}),T.Utf8Builder.prototype._setValue=V.instance.visitBinary},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.DictionaryBatch=t.RecordBatch=t.BodyCompression=t.FieldNode=t.MessageHeader=t.BodyCompressionMethod=t.CompressionType=void 0;const n=r(14),i=r(16);var o,s,a;!function(e){e[e.LZ4_FRAME=0]="LZ4_FRAME",e[e.ZSTD=1]="ZSTD"}(o=t.CompressionType||(t.CompressionType={})),function(e){e[e.BUFFER=0]="BUFFER"}(s=t.BodyCompressionMethod||(t.BodyCompressionMethod={})),function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"}(a=t.MessageHeader||(t.MessageHeader={}));class c{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static createFieldNode(e,t,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(t),e.offset()}}t.FieldNode=c;class u{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsBodyCompression(e,t){return(t||new u).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new u).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):o.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):s.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,t){e.addFieldInt8(0,t,o.LZ4_FRAME)}static addMethod(e,t){e.addFieldInt8(1,t,s.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,t,r){return u.startBodyCompression(e),u.addCodec(e,t),u.addMethod(e,r),u.endBodyCompression(e)}}t.BodyCompression=u;class l{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsRecordBatch(e,t){return(t||new l).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new l).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}nodes(e,t){const r=this.bb.__offset(this.bb_pos,6);return r?(t||new c).__init(this.bb.__vector(this.bb_pos+r)+16*e,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,t){const r=this.bb.__offset(this.bb_pos,8);return r?(t||new i.Buffer).__init(this.bb.__vector(this.bb_pos+r)+16*e,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const t=this.bb.__offset(this.bb_pos,10);return t?(e||new u).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}static addNodes(e,t){e.addFieldOffset(1,t,0)}static startNodesVector(e,t){e.startVector(16,t,8)}static addBuffers(e,t){e.addFieldOffset(2,t,0)}static startBuffersVector(e,t){e.startVector(16,t,8)}static addCompression(e,t){e.addFieldOffset(3,t,0)}static endRecordBatch(e){return e.endObject()}static createRecordBatch(e,t,r,n,i){return l.startRecordBatch(e),l.addLength(e,t),l.addNodes(e,r),l.addBuffers(e,n),l.addCompression(e,i),l.endRecordBatch(e)}}t.RecordBatch=l;class d{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsDictionaryBatch(e,t){return(t||new d).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new d).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}data(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new l).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}static startDictionaryBatch(e){e.startObject(3)}static addId(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}static addData(e,t){e.addFieldOffset(1,t,0)}static addIsDelta(e,t){e.addFieldInt8(2,+t,0)}static endDictionaryBatch(e){return e.endObject()}static createDictionaryBatch(e,t,r,n){return d.startDictionaryBatch(e),d.addId(e,t),d.addData(e,r),d.addIsDelta(e,n),d.endDictionaryBatch(e)}}t.DictionaryBatch=d;class f{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(e,t){return(t||new f).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new f).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):i.MetadataVersion.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):a.NONE}header(e){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}customMetadata(e,t){const r=this.bb.__offset(this.bb_pos,12);return r?(t||new i.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,i.MetadataVersion.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,a.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,e.createLong(0,0))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(e,t,r,n,i,o){return f.startMessage(e),f.addVersion(e,t),f.addHeaderType(e,r),f.addHeader(e,n),f.addBodyLength(e,i),f.addCustomMetadata(e,o),f.endMessage(e)}}t.Message=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8Builder=void 0;const n=r(20),i=r(35),o=r(17),s=r(2);class a extends s.VariableWidthBuilder{constructor(e){super(e),this._values=new o.BufferBuilder(new Uint8Array(0))}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,n.encodeUtf8(t))}_flushPending(e,t){}}t.Utf8Builder=a,a.prototype._flushPending=i.BinaryBuilder.prototype._flushPending},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryBuilder=void 0;const n=r(5),i=r(17),o=r(2);class s extends o.VariableWidthBuilder{constructor(e){super(e),this._values=new i.BufferBuilder(new Uint8Array(0))}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,n.toUint8Array(t))}_flushPending(e,t){const r=this._offsets,n=this._values.reserve(t).buffer;let i,o=0,s=0,a=0;for([o,i]of e)void 0===i?r.set(o,0):(s=i.length,n.set(i,a),r.set(o,s),a+=s)}}t.BinaryBuilder=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecordBatchJSONWriter=t.RecordBatchFileWriter=t.RecordBatchStreamWriter=t.RecordBatchWriter=void 0;const n=r(29),i=r(37),o=r(23),s=r(0),a=r(6),c=r(21),u=r(21),l=r(59),d=r(1),f=r(62),h=r(18),A=r(96),p=r(97),y=r(98),b=r(5),m=r(15),g=r(22),v=r(9);class B extends g.ReadableInterop{constructor(e){super(),this._position=0,this._started=!1,this._sink=new h.AsyncByteQueue,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,v.isObject(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!=typeof e.autoDestroy||e.autoDestroy,this._writeLegacyIpcFormat="boolean"==typeof e.writeLegacyIpcFormat&&e.writeLegacyIpcFormat}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return v.isPromise(e)?e.then(e=>this.writeAll(e)):v.isAsyncIterable(e)?I(this,e):V(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,t=null){return e===this._sink||e instanceof h.AsyncByteQueue?this._sink=e:(this._sink=new h.AsyncByteQueue,e&&v.isWritableDOMStream(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&v.isWritableNodeStream(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,t&&f.compareSchemas(t,this._schema)||(null===t?(this._position=0,this._schema=null):(this._started=!0,this._schema=t,this._writeSchema(t))),this}write(e){let t=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==e)return this.finish()&&void 0;if(e instanceof n.Table&&!(t=e.schema))return this.finish()&&void 0;if(e instanceof m.RecordBatch&&!(t=e.schema))return this.finish()&&void 0;if(t&&!f.compareSchemas(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof m.RecordBatch?e instanceof m._InternalEmptyPlaceholderRecordBatch||this._writeRecordBatch(e):e instanceof n.Table?this.writeAll(e.chunks):v.isIterable(e)&&this.writeAll(e)}_writeMessage(e,t=8){const r=t-1,n=c.Message.encode(e),i=n.byteLength,o=this._writeLegacyIpcFormat?4:8,s=i+o+r&~r,a=s-i-o;return e.headerType===d.MessageHeader.RecordBatch?this._recordBatchBlocks.push(new l.FileBlock(s,e.bodyLength,this._position)):e.headerType===d.MessageHeader.DictionaryBatch&&this._dictionaryBlocks.push(new l.FileBlock(s,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(s-o)),i>0&&this._write(n),this._writePadding(a)}_write(e){if(this._started){const t=b.toUint8Array(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(c.Message.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(i.MAGIC)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){const{byteLength:t,nodes:r,bufferRegions:n,buffers:i}=A.VectorAssembler.assemble(e),o=new u.RecordBatch(e.length,r,n),s=c.Message.from(o,t);return this._writeDictionaries(e)._writeMessage(s)._writeBodyBuffers(i)}_writeDictionaryBatch(e,t,r=!1){this._dictionaryDeltaOffsets.set(t,e.length+(this._dictionaryDeltaOffsets.get(t)||0));const{byteLength:n,nodes:i,bufferRegions:o,buffers:s}=A.VectorAssembler.assemble(e),a=new u.RecordBatch(e.length,i,o),l=new u.DictionaryBatch(a,t,r),d=c.Message.from(l,n);return this._writeMessage(d)._writeBodyBuffers(s)}_writeBodyBuffers(e){let t,r,n;for(let i=-1,o=e.length;++i<o;)(t=e[i])&&(r=t.byteLength)>0&&(this._write(t),(n=(r+7&-8)-r)>0&&this._writePadding(n));return this}_writeDictionaries(e){for(let[t,r]of e.dictionaries){let e=this._dictionaryDeltaOffsets.get(t)||0;if(0===e||(r=r.slice(e)).length>0){const n="chunks"in r?r.chunks:[r];for(const r of n)this._writeDictionaryBatch(r,t,e>0),e+=r.length}}return this}}t.RecordBatchWriter=B;class _ extends B{static writeAll(e,t){const r=new _(t);return v.isPromise(e)?e.then(e=>r.writeAll(e)):v.isAsyncIterable(e)?I(r,e):V(r,e)}}t.RecordBatchStreamWriter=_;class T extends B{static writeAll(e){const t=new T;return v.isPromise(e)?e.then(e=>t.writeAll(e)):v.isAsyncIterable(e)?I(t,e):V(t,e)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeFooter(e){const t=l.Footer.encode(new l.Footer(e,d.MetadataVersion.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}}t.RecordBatchFileWriter=T;class w extends B{constructor(){super(),this._autoDestroy=!0,this._recordBatches=[],this._dictionaries=[]}static writeAll(e){return(new w).writeAll(e)}_writeMessage(){return this}_writeFooter(e){return this}_writeSchema(e){return this._write('{\n "schema": '+JSON.stringify({fields:e.fields.map(F)},null,2))}_writeDictionaries(e){return e.dictionaries.size>0&&this._dictionaries.push(e),this}_writeDictionaryBatch(e,t,r=!1){return this._dictionaryDeltaOffsets.set(t,e.length+(this._dictionaryDeltaOffsets.get(t)||0)),this._write(0===this._dictionaryBlocks.length?" ":",\n "),this._write(""+function(e,t,r=!1){const n=new a.Field(""+t,e.type,e.nullCount>0),i=y.JSONVectorAssembler.assemble(new o.Column(n,[e]));return JSON.stringify({id:t,isDelta:r,data:{count:e.length,columns:i}},null,2)}(e,t,r)),this._dictionaryBlocks.push(new l.FileBlock(0,0,0)),this}_writeRecordBatch(e){return this._writeDictionaries(e),this._recordBatches.push(e),this}close(){if(this._dictionaries.length>0){this._write(',\n "dictionaries": [\n');for(const e of this._dictionaries)super._writeDictionaries(e);this._write("\n ]")}if(this._recordBatches.length>0){for(let t=-1,r=this._recordBatches.length;++t<r;)this._write(0===t?',\n "batches": [\n ':",\n "),this._write(""+(e=this._recordBatches[t],JSON.stringify({count:e.length,columns:y.JSONVectorAssembler.assemble(e)},null,2))),this._recordBatchBlocks.push(new l.FileBlock(0,0,0));this._write("\n ]")}var e;return this._schema&&this._write("\n}"),this._dictionaries=[],this._recordBatches=[],super.close()}}function V(e,t){let r=t;t instanceof n.Table&&(r=t.chunks,e.reset(void 0,t.schema));for(const t of r)e.write(t);return e.finish()}async function I(e,t){for await(const r of t)e.write(r);return e.finish()}function F({name:e,type:t,nullable:r}){const n=new p.JSONTypeAssembler;return{name:e,nullable:r,type:n.visit(t),children:(t.children||[]).map(F),dictionary:s.DataType.isDictionary(t)?{id:t.id,isOrdered:t.isOrdered,indexType:n.visit(t.indices)}:void 0}}t.RecordBatchJSONWriter=w},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.magicX2AndPadding=t.magicAndPadding=t.magicLength=t.checkForMagicArrowString=t.MAGIC=t.MAGIC_STR=t.PADDING=t.JSONMessageReader=t.AsyncMessageReader=t.MessageReader=void 0;const n=r(1);var i=r(14).flatbuffers.ByteBuffer;const o=r(21),s=r(9),a=r(60),c=r(5),u=r(18),l=r(22),d=e=>`Expected ${n.MessageHeader[e]} Message in stream, but was null or length 0.`,f=e=>`Header pointer of flatbuffer-encoded ${n.MessageHeader[e]} Message is null or length 0.`,h=(e,t)=>`Expected to read ${e} metadata bytes, but only read ${t}.`,A=(e,t)=>`Expected to read ${e} bytes for message body, but only read ${t}.`;class p{constructor(e){this.source=e instanceof u.ByteStream?e:new u.ByteStream(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||-1===e.value&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?l.ITERATOR_DONE:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(d(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const t=c.toUint8Array(this.source.read(e));if(t.byteLength<e)throw new Error(A(e,t.byteLength));return t.byteOffset%8==0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}readSchema(e=!1){const t=n.MessageHeader.Schema,r=this.readMessage(t),i=r&&r.header();if(e&&!i)throw new Error(f(t));return i}readMetadataLength(){const e=this.source.read(t.PADDING),r=e&&new i(e),n=r&&r.readInt32(0)||0;return{done:0===n,value:n}}readMetadata(e){const t=this.source.read(e);if(!t)return l.ITERATOR_DONE;if(t.byteLength<e)throw new Error(h(e,t.byteLength));return{done:!1,value:o.Message.decode(t)}}}t.MessageReader=p;class y{constructor(e,t){this.source=e instanceof u.AsyncByteStream?e:s.isFileHandle(e)?new a.AsyncRandomAccessFile(e,t):new u.AsyncByteStream(e)}[Symbol.asyncIterator](){return this}async next(){let e;return(e=await this.readMetadataLength()).done||-1===e.value&&(e=await this.readMetadataLength()).done||(e=await this.readMetadata(e.value)).done?l.ITERATOR_DONE:e}async throw(e){return await this.source.throw(e)}async return(e){return await this.source.return(e)}async readMessage(e){let t;if((t=await this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(d(e));return t.value}async readMessageBody(e){if(e<=0)return new Uint8Array(0);const t=c.toUint8Array(await this.source.read(e));if(t.byteLength<e)throw new Error(A(e,t.byteLength));return t.byteOffset%8==0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}async readSchema(e=!1){const t=n.MessageHeader.Schema,r=await this.readMessage(t),i=r&&r.header();if(e&&!i)throw new Error(f(t));return i}async readMetadataLength(){const e=await this.source.read(t.PADDING),r=e&&new i(e),n=r&&r.readInt32(0)||0;return{done:0===n,value:n}}async readMetadata(e){const t=await this.source.read(e);if(!t)return l.ITERATOR_DONE;if(t.byteLength<e)throw new Error(h(e,t.byteLength));return{done:!1,value:o.Message.decode(t)}}}t.AsyncMessageReader=y;t.JSONMessageReader=class extends p{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof l.ArrowJSON?e:new l.ArrowJSON(e)}next(){const{_json:e}=this;if(!this._schema){this._schema=!0;return{done:!1,value:o.Message.fromJSON(e.schema,n.MessageHeader.Schema)}}if(this._dictionaryIndex<e.dictionaries.length){const t=e.dictionaries[this._dictionaryIndex++];this._body=t.data.columns;return{done:!1,value:o.Message.fromJSON(t,n.MessageHeader.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const t=e.batches[this._batchIndex++];this._body=t.columns;return{done:!1,value:o.Message.fromJSON(t,n.MessageHeader.RecordBatch)}}return this._body=[],l.ITERATOR_DONE}readMessageBody(e){return function e(t){return(t||[]).reduce((t,r)=>[...t,...r.VALIDITY&&[r.VALIDITY]||[],...r.TYPE&&[r.TYPE]||[],...r.OFFSET&&[r.OFFSET]||[],...r.DATA&&[r.DATA]||[],...e(r.children)],[])}(this._body)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(d(e));return t.value}readSchema(){const e=n.MessageHeader.Schema,t=this.readMessage(e),r=t&&t.header();if(!t||!r)throw new Error(f(e));return r}},t.PADDING=4,t.MAGIC_STR="ARROW1",t.MAGIC=new Uint8Array(t.MAGIC_STR.length);for(let e=0;e<t.MAGIC_STR.length;e+=1)t.MAGIC[e]=t.MAGIC_STR.charCodeAt(e);t.checkForMagicArrowString=function(e,r=0){for(let n=-1,i=t.MAGIC.length;++n<i;)if(t.MAGIC[n]!==e[r+n])return!1;return!0},t.magicLength=t.MAGIC.length,t.magicAndPadding=t.magicLength+t.PADDING,t.magicX2AndPadding=2*t.magicLength+t.PADDING},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DictionaryVector=void 0;const n=r(10),i=r(3),o=r(4),s=r(13),a=r(0);class c extends o.BaseVector{constructor(e){super(e),this.indices=i.Vector.new(e.clone(this.type.indices))}static from(...e){if(3===e.length){const[t,r,o]=e,s=new a.Dictionary(t.type,r,null,null);return i.Vector.new(n.Data.Dictionary(s,0,o.length,0,null,o,t))}return s.vectorFromValuesWithType(()=>e[0].type,e[0])}get dictionary(){return this.data.dictionary}reverseLookup(e){return this.dictionary.indexOf(e)}getKey(e){return this.indices.get(e)}getValue(e){return this.dictionary.get(e)}setKey(e,t){return this.indices.set(e,t)}setValue(e,t){return this.dictionary.set(e,t)}}t.DictionaryVector=c,c.prototype.indices=null},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64Vector=t.Uint32Vector=t.Uint16Vector=t.Uint8Vector=t.Int64Vector=t.Int32Vector=t.Int16Vector=t.Int8Vector=t.IntVector=void 0;const n=r(10),i=r(3),o=r(4),s=r(13),a=r(9),c=r(5),u=r(0);class l extends o.BaseVector{static from(...e){const[t,r=!1]=e;let o=B(this,r);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){const e=v(t.constructor,r)||o;if(null===o&&(o=e),o&&o===e){const e=new o;let r=t.byteLength/e.ArrayType.BYTES_PER_ELEMENT;return g(o,t.constructor)&&(r*=.5),i.Vector.new(n.Data.Int(e,0,r,0,null,t))}}if(o)return s.vectorFromValuesWithType(()=>new o,t);if(t instanceof DataView||t instanceof ArrayBuffer)throw new TypeError("Cannot infer integer type from instance of "+t.constructor.name);throw new TypeError("Unrecognized IntVector input")}}t.IntVector=l;class d extends l{}t.Int8Vector=d;class f extends l{}t.Int16Vector=f;class h extends l{}t.Int32Vector=h;class A extends l{toBigInt64Array(){return c.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}}t.Int64Vector=A;class p extends l{}t.Uint8Vector=p;class y extends l{}t.Uint16Vector=y;class b extends l{}t.Uint32Vector=b;class m extends l{toBigUint64Array(){return c.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}}t.Uint64Vector=m;const g=(e,t)=>!(e!==u.Int64&&e!==u.Uint64||t!==Int32Array&&t!==Uint32Array),v=(e,t)=>{switch(e){case Int8Array:return u.Int8;case Int16Array:return u.Int16;case Int32Array:return t?u.Int64:u.Int32;case a.BigInt64Array:return u.Int64;case Uint8Array:return u.Uint8;case Uint16Array:return u.Uint16;case Uint32Array:return t?u.Uint64:u.Uint32;case a.BigUint64Array:return u.Uint64;default:return null}},B=(e,t)=>{switch(e){case d:return u.Int8;case f:return u.Int16;case h:return t?u.Int64:u.Int32;case A:return u.Int64;case p:return u.Uint8;case y:return u.Uint16;case b:return t?u.Uint64:u.Uint32;case m:return u.Uint64;default:return null}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueToString=void 0;t.valueToString=function(e){if(null===e)return"null";if(void 0===e)return"undefined";switch(typeof e){case"number":case"bigint":return""+e;case"string":return`"${e}"`}return"function"==typeof e[Symbol.toPrimitive]?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?`[${e}]`:JSON.stringify(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BoolBuilder=void 0;const n=r(17),i=r(2);class o extends i.Builder{constructor(e){super(e),this._values=new n.BitmapBufferBuilder}setValue(e,t){this._values.set(e,+t)}}t.BoolBuilder=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullBuilder=void 0;const n=r(2);class i extends n.Builder{setValue(e,t){}setValid(e,t){return this.length=Math.max(e+1,this.length),t}}t.NullBuilder=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateMillisecondBuilder=t.DateDayBuilder=t.DateBuilder=void 0;const n=r(2);class i extends n.FixedWidthBuilder{}t.DateBuilder=i;t.DateDayBuilder=class extends i{};t.DateMillisecondBuilder=class extends i{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecimalBuilder=void 0;const n=r(2);class i extends n.FixedWidthBuilder{}t.DecimalBuilder=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DictionaryBuilder=void 0;const n=r(0),i=r(2);class o extends i.Builder{constructor({type:e,nullValues:t,dictionaryHashFunction:r}){super({type:new n.Dictionary(e.dictionary,e.indices,e.id,e.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=i.Builder.new({type:this.type.indices,nullValues:t}),this.dictionary=i.Builder.new({type:this.type.dictionary,nullValues:null}),"function"==typeof r&&(this.valueToKey=r)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(e){return this.indices.isValid(e)}setValid(e,t){const r=this.indices;return t=r.setValid(e,t),this.length=r.length,t}setValue(e,t){const r=this._keysToIndices,n=this.valueToKey(t);let i=r[n];return void 0===i&&(r[n]=i=this._dictionaryOffset+this.dictionary.append(t).length-1),this.indices.setValue(e,i)}flush(){const e=this.type,t=this._dictionary,r=this.dictionary.toVector(),n=this.indices.flush().clone(e);return n.dictionary=t?t.concat(r):r,this.finished||(this._dictionaryOffset+=r.length),this._dictionary=n.dictionary,this.clear(),n}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(e){return"string"==typeof e?e:""+e}}t.DictionaryBuilder=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedSizeBinaryBuilder=void 0;const n=r(2);class i extends n.FixedWidthBuilder{}t.FixedSizeBinaryBuilder=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Float64Builder=t.Float32Builder=t.Float16Builder=t.FloatBuilder=void 0;const n=r(26),i=r(2);class o extends i.FixedWidthBuilder{}t.FloatBuilder=o;t.Float16Builder=class extends o{setValue(e,t){this._values.set(e,n.float64ToUint16(t))}};t.Float32Builder=class extends o{setValue(e,t){this._values.set(e,t)}};t.Float64Builder=class extends o{setValue(e,t){this._values.set(e,t)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64Builder=t.Uint32Builder=t.Uint16Builder=t.Uint8Builder=t.Int64Builder=t.Int32Builder=t.Int16Builder=t.Int8Builder=t.IntBuilder=void 0;const n=r(27),i=r(17),o=r(9),s=r(2);class a extends s.FixedWidthBuilder{setValue(e,t){this._values.set(e,t)}}t.IntBuilder=a;t.Int8Builder=class extends a{};t.Int16Builder=class extends a{};t.Int32Builder=class extends a{};t.Int64Builder=class extends a{constructor(e){e.nullValues&&(e.nullValues=e.nullValues.map(c)),super(e),this._values=new i.WideBufferBuilder(new Int32Array(0),2)}get values64(){return this._values.buffer64}isValid(e){return super.isValid(c(e))}};t.Uint8Builder=class extends a{};t.Uint16Builder=class extends a{};t.Uint32Builder=class extends a{};t.Uint64Builder=class extends a{constructor(e){e.nullValues&&(e.nullValues=e.nullValues.map(c)),super(e),this._values=new i.WideBufferBuilder(new Uint32Array(0),2)}get values64(){return this._values.buffer64}isValid(e){return super.isValid(c(e))}};const c=(u={BigIntArray:o.BigInt64Array},e=>(ArrayBuffer.isView(e)&&(u.buffer=e.buffer,u.byteOffset=e.byteOffset,u.byteLength=e.byteLength,e=n.bignumToBigInt(u),u.buffer=null),e));var u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeNanosecondBuilder=t.TimeMicrosecondBuilder=t.TimeMillisecondBuilder=t.TimeSecondBuilder=t.TimeBuilder=void 0;const n=r(2);class i extends n.FixedWidthBuilder{}t.TimeBuilder=i;t.TimeSecondBuilder=class extends i{};t.TimeMillisecondBuilder=class extends i{};t.TimeMicrosecondBuilder=class extends i{};t.TimeNanosecondBuilder=class extends i{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampNanosecondBuilder=t.TimestampMicrosecondBuilder=t.TimestampMillisecondBuilder=t.TimestampSecondBuilder=t.TimestampBuilder=void 0;const n=r(2);class i extends n.FixedWidthBuilder{}t.TimestampBuilder=i;t.TimestampSecondBuilder=class extends i{};t.TimestampMillisecondBuilder=class extends i{};t.TimestampMicrosecondBuilder=class extends i{};t.TimestampNanosecondBuilder=class extends i{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntervalYearMonthBuilder=t.IntervalDayTimeBuilder=t.IntervalBuilder=void 0;const n=r(2);class i extends n.FixedWidthBuilder{}t.IntervalBuilder=i;t.IntervalDayTimeBuilder=class extends i{};t.IntervalYearMonthBuilder=class extends i{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListBuilder=void 0;const n=r(53),i=r(6),o=r(0),s=r(17),a=r(2);class c extends a.VariableWidthBuilder{constructor(e){super(e),this._run=new n.Run,this._offsets=new s.OffsetsBufferBuilder}addChild(e,t="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new o.List(new i.Field(t,e.type,!0)),this.numChildren-1}clear(){return this._run.clear(),super.clear()}_flushPending(e){const t=this._run,r=this._offsets,n=this._setValue;let i,o=0;for([o,i]of e)void 0===i?r.set(o,0):(r.set(o,i.length),n(this,o,t.bind(i)))}}t.ListBuilder=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Run=void 0;const n=r(3);t.Run=class{get length(){return this._values.length}get(e){return this._values[e]}clear(){return this._values=null,this}bind(e){return e instanceof n.Vector?e:(this._values=e,this)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedSizeListBuilder=void 0;const n=r(53),i=r(6),o=r(2),s=r(0);class a extends o.Builder{constructor(){super(...arguments),this._run=new n.Run}setValue(e,t){super.setValue(e,this._run.bind(t))}addChild(e,t="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");const r=this.children.push(e);return this.type=new s.FixedSizeList(this.type.listSize,new i.Field(t,e.type,!0)),r}clear(){return this._run.clear(),super.clear()}}t.FixedSizeListBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapBuilder=void 0;const n=r(6),i=r(0),o=r(2);class s extends o.VariableWidthBuilder{set(e,t){return super.set(e,t)}setValue(e,t){t=t instanceof Map?t:new Map(Object.entries(t));const r=this._pending||(this._pending=new Map),n=r.get(e);n&&(this._pendingLength-=n.size),this._pendingLength+=t.size,r.set(e,t)}addChild(e,t=""+this.numChildren){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new i.Map_(new n.Field(t,e.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(e){const t=this._offsets,r=this._setValue;e.forEach((e,n)=>{void 0===e?t.set(n,0):(t.set(n,e.size),r(this,n,e))})}}t.MapBuilder=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructBuilder=void 0;const n=r(6),i=r(2),o=r(0);class s extends i.Builder{addChild(e,t=""+this.numChildren){const r=this.children.push(e);return this.type=new o.Struct([...this.type.children,new n.Field(t,e.type,!0)]),r}}t.StructBuilder=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DenseUnionBuilder=t.SparseUnionBuilder=t.UnionBuilder=void 0;const n=r(6),i=r(17),o=r(2),s=r(0);class a extends o.Builder{constructor(e){super(e),this._typeIds=new i.DataBufferBuilder(new Int8Array(0),1),"function"==typeof e.valueToChildTypeId&&(this._valueToChildTypeId=e.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(e,t){return this.set(this.length,e,t)}set(e,t,r){return void 0===r&&(r=this._valueToChildTypeId(this,t,e)),this.setValid(e,this.isValid(t))&&this.setValue(e,t,r),this}setValue(e,t,r){this._typeIds.set(e,r),super.setValue(e,t)}addChild(e,t=""+this.children.length){const r=this.children.push(e),{type:{children:i,mode:o,typeIds:a}}=this,c=[...i,new n.Field(t,e.type)];return this.type=new s.Union(o,[...a,r],c),r}_valueToChildTypeId(e,t,r){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}}t.UnionBuilder=a;t.SparseUnionBuilder=class extends a{};t.DenseUnionBuilder=class extends a{constructor(e){super(e),this._offsets=new i.DataBufferBuilder(new Int32Array(0))}setValue(e,t,r){const n=this.type.typeIdToChildIndex[r];return this._offsets.set(e,this.getChildAt(n).length),super.setValue(e,t,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.SetVisitor=void 0;const n=r(3),i=r(8),o=r(20),s=r(26),a=r(5),c=r(1);class u extends i.Visitor{}t.SetVisitor=u;const l=(e,t,r)=>{e[t]=r%4294967296|0,e[t+1]=r/4294967296|0},d=(e,t,r,n)=>{const{[r]:i,[r+1]:o}=t;null!=i&&null!=o&&e.set(n.subarray(0,o-i),i)},f=({values:e},t,r)=>{((e,t,r)=>{e[t]=r/864e5|0})(e,t,r.valueOf())},h=({values:e},t,r)=>{l(e,2*t,r.valueOf())},A=({stride:e,values:t},r,n)=>{t[e*r]=n},p=({stride:e,values:t},r,n)=>{t[e*r]=s.float64ToUint16(n)},y=(e,t,r)=>{switch(typeof r){case"bigint":e.values64[t]=r;break;case"number":e.values[t*e.stride]=r;break;default:{const n=r,{stride:i,ArrayType:o}=e,s=a.toArrayBufferView(o,n);e.values.set(s.subarray(0,i),i*t)}}},b=({values:e},t,r)=>l(e,2*t,r/1e3),m=({values:e},t,r)=>l(e,2*t,r),g=({values:e},t,r)=>((e,t,r)=>{e[t]=1e3*r%4294967296|0,e[t+1]=1e3*r/4294967296|0})(e,2*t,r),v=({values:e},t,r)=>((e,t,r)=>{e[t]=1e6*r%4294967296|0,e[t+1]=1e6*r/4294967296|0})(e,2*t,r),B=({values:e,stride:t},r,n)=>{e[t*r]=n},_=({values:e,stride:t},r,n)=>{e[t*r]=n},T=({values:e},t,r)=>{e.set(r.subarray(0,2),2*t)},w=({values:e},t,r)=>{e.set(r.subarray(0,2),2*t)},V=(e,t,r)=>{const n=e.typeIdToChildIndex[e.typeIds[t]],i=e.getChildAt(n);i&&i.set(e.valueOffsets[t],r)},I=(e,t,r)=>{const n=e.typeIdToChildIndex[e.typeIds[t]],i=e.getChildAt(n);i&&i.set(t,r)},F=({values:e},t,r)=>{e.set(r.subarray(0,2),2*t)},U=({values:e},t,r)=>{e[t]=12*r[0]+r[1]%12};u.prototype.visitBool=({offset:e,values:t},r,n)=>{const i=e+r;n?t[i>>3]|=1<<i%8:t[i>>3]&=~(1<<i%8)},u.prototype.visitInt=(e,t,r)=>{e.type.bitWidth<64?A(e,t,r):y(e,t,r)},u.prototype.visitInt8=A,u.prototype.visitInt16=A,u.prototype.visitInt32=A,u.prototype.visitInt64=y,u.prototype.visitUint8=A,u.prototype.visitUint16=A,u.prototype.visitUint32=A,u.prototype.visitUint64=y,u.prototype.visitFloat=(e,t,r)=>{e.type.precision!==c.Precision.HALF?A(e,t,r):p(e,t,r)},u.prototype.visitFloat16=p,u.prototype.visitFloat32=A,u.prototype.visitFloat64=A,u.prototype.visitUtf8=({values:e,valueOffsets:t},r,n)=>{d(e,t,r,o.encodeUtf8(n))},u.prototype.visitBinary=({values:e,valueOffsets:t},r,n)=>d(e,t,r,n),u.prototype.visitFixedSizeBinary=({stride:e,values:t},r,n)=>{t.set(n.subarray(0,e),e*r)},u.prototype.visitDate=(e,t,r)=>{e.type.unit===c.DateUnit.DAY?f(e,t,r):h(e,t,r)},u.prototype.visitDateDay=f,u.prototype.visitDateMillisecond=h,u.prototype.visitTimestamp=(e,t,r)=>{switch(e.type.unit){case c.TimeUnit.SECOND:return b(e,t,r);case c.TimeUnit.MILLISECOND:return m(e,t,r);case c.TimeUnit.MICROSECOND:return g(e,t,r);case c.TimeUnit.NANOSECOND:return v(e,t,r)}},u.prototype.visitTimestampSecond=b,u.prototype.visitTimestampMillisecond=m,u.prototype.visitTimestampMicrosecond=g,u.prototype.visitTimestampNanosecond=v,u.prototype.visitTime=(e,t,r)=>{switch(e.type.unit){case c.TimeUnit.SECOND:return B(e,t,r);case c.TimeUnit.MILLISECOND:return _(e,t,r);case c.TimeUnit.MICROSECOND:return T(e,t,r);case c.TimeUnit.NANOSECOND:return w(e,t,r)}},u.prototype.visitTimeSecond=B,u.prototype.visitTimeMillisecond=_,u.prototype.visitTimeMicrosecond=T,u.prototype.visitTimeNanosecond=w,u.prototype.visitDecimal=({values:e},t,r)=>{e.set(r.subarray(0,4),4*t)},u.prototype.visitList=(e,t,r)=>{const n=e.getChildAt(0),i=e.valueOffsets;for(let e=-1,o=i[t],s=i[t+1];o<s;)n.set(o++,r.get(++e))},u.prototype.visitStruct=(e,t,r)=>{const i=r instanceof Map?(o=t,s=r,(e,t,r)=>e&&e.set(o,s.get(t.name))):r instanceof n.Vector?((e,t)=>(r,n,i)=>r&&r.set(e,t.get(i)))(t,r):Array.isArray(r)?((e,t)=>(r,n,i)=>r&&r.set(e,t[i]))(t,r):((e,t)=>(r,n,i)=>r&&r.set(e,t[n.name]))(t,r);var o,s;e.type.children.forEach((t,r)=>i(e.getChildAt(r),t,r))},u.prototype.visitUnion=(e,t,r)=>{e.type.mode===c.UnionMode.Dense?V(e,t,r):I(e,t,r)},u.prototype.visitDenseUnion=V,u.prototype.visitSparseUnion=I,u.prototype.visitDictionary=(e,t,r)=>{const n=e.getKey(t);null!==n&&e.setValue(n,r)},u.prototype.visitInterval=(e,t,r)=>{e.type.unit===c.IntervalUnit.DAY_TIME?F(e,t,r):U(e,t,r)},u.prototype.visitIntervalDayTime=F,u.prototype.visitIntervalYearMonth=U,u.prototype.visitFixedSizeList=(e,t,r)=>{const n=e.getChildAt(0),{stride:i}=e;for(let e=-1,o=t*i;++e<i;)n.set(o+e,r.get(e))},u.prototype.visitMap=(e,t,r)=>{const n=e.getChildAt(0),i=e.valueOffsets,o=r instanceof Map?[...r]:Object.entries(r);for(let e=-1,r=i[t],s=i[t+1];r<s;)n.set(r++,o[++e])},t.instance=new u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileBlock=t.Footer=void 0;const n=r(92),i=r(14);var o=i.flatbuffers.Long,s=i.flatbuffers.Builder,a=i.flatbuffers.ByteBuffer;const c=r(6),u=r(1),l=r(5);class d{constructor(e,t=u.MetadataVersion.V4,r,n){this.schema=e,this.version=t,r&&(this._recordBatches=r),n&&(this._dictionaryBatches=n)}static decode(e){e=new a(l.toUint8Array(e));const t=n.Footer.getRootAsFooter(e),r=c.Schema.decode(t.schema());return new f(r,t)}static encode(e){const t=new s,r=c.Schema.encode(t,e.schema);n.Footer.startRecordBatchesVector(t,e.numRecordBatches),[...e.recordBatches()].slice().reverse().forEach(e=>h.encode(t,e));const i=t.endVector();n.Footer.startDictionariesVector(t,e.numDictionaries),[...e.dictionaryBatches()].slice().reverse().forEach(e=>h.encode(t,e));const o=t.endVector();return n.Footer.startFooter(t),n.Footer.addSchema(t,r),n.Footer.addVersion(t,u.MetadataVersion.V4),n.Footer.addRecordBatches(t,i),n.Footer.addDictionaries(t,o),n.Footer.finishFooterBuffer(t,n.Footer.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let e,t=-1,r=this.numRecordBatches;++t<r;)(e=this.getRecordBatch(t))&&(yield e)}*dictionaryBatches(){for(let e,t=-1,r=this.numDictionaries;++t<r;)(e=this.getDictionaryBatch(t))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}t.Footer=d;class f extends d{constructor(e,t){super(e,t.version()),this._footer=t}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const t=this._footer.recordBatches(e);if(t)return h.decode(t)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const t=this._footer.dictionaries(e);if(t)return h.decode(t)}return null}}class h{constructor(e,t,r){this.metaDataLength=e,this.offset="number"==typeof r?r:r.low,this.bodyLength="number"==typeof t?t:t.low}static decode(e){return new h(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,t){const{metaDataLength:r}=t,i=new o(t.offset,0),s=new o(t.bodyLength,0);return n.Block.createBlock(e,i,r,s)}}t.FileBlock=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncRandomAccessFile=t.RandomAccessFile=void 0;const n=r(18),i=r(5);class o extends n.ByteStream{constructor(e,t){super(),this.position=0,this.buffer=i.toUint8Array(e),this.size=void 0===t?this.buffer.byteLength:t}readInt32(e){const{buffer:t,byteOffset:r}=this.readAt(e,4);return new DataView(t,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:t,size:r,position:n}=this;return t&&n<r?("number"!=typeof e&&(e=1/0),this.position=Math.min(r,n+Math.min(r-n,e)),t.subarray(n,this.position)):null}readAt(e,t){const r=this.buffer,n=Math.min(this.size,e+t);return r?r.subarray(e,n):new Uint8Array(t)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}t.RandomAccessFile=o;class s extends n.AsyncByteStream{constructor(e,t){super(),this.position=0,this._handle=e,"number"==typeof t?this.size=t:this._pending=(async()=>{this.size=(await e.stat()).size,delete this._pending})()}async readInt32(e){const{buffer:t,byteOffset:r}=await this.readAt(e,4);return new DataView(t,r).getInt32(0,!0)}async seek(e){return this._pending&&await this._pending,this.position=Math.min(e,this.size),e<this.size}async read(e){this._pending&&await this._pending;const{_handle:t,size:r,position:n}=this;if(t&&n<r){"number"!=typeof e&&(e=1/0);let i=n,o=0,s=0;const a=Math.min(r,i+Math.min(r-i,e)),c=new Uint8Array(Math.max(0,(this.position=a)-i));for(;(i+=s)<a&&(o+=s)<c.byteLength;)({bytesRead:s}=await t.read(c,o,c.byteLength-o,i));return c}return null}async readAt(e,t){this._pending&&await this._pending;const{_handle:r,size:n}=this;if(r&&e+t<n){const i=Math.min(n,e+t),o=new Uint8Array(i-e);return(await r.read(o,0,t,e)).buffer}return new Uint8Array(t)}async close(){const e=this._handle;this._handle=null,e&&await e.close()}async throw(e){return await this.close(),{done:!0,value:e}}async return(e){return await this.close(),{done:!0,value:e}}}t.AsyncRandomAccessFile=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Int128=t.Int64=t.Uint64=t.BaseInt64=void 0;function n(e){return e<0&&(e=4294967295+e+1),"0x"+e.toString(16)}const i=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class o{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const t=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),r=new Uint32Array([e.buffer[1]>>>16,65535&e.buffer[1],e.buffer[0]>>>16,65535&e.buffer[0]]);let n=t[3]*r[3];this.buffer[0]=65535&n;let i=n>>>16;return n=t[2]*r[3],i+=n,n=t[3]*r[2]>>>0,i+=n,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0<n?65536:0,this.buffer[1]+=i>>>16,this.buffer[1]+=t[1]*r[3]+t[2]*r[2]+t[3]*r[1],this.buffer[1]+=t[0]*r[3]+t[1]*r[2]+t[2]*r[1]+t[3]*r[0]<<16,this}_plus(e){const t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${n(this.buffer[1])} ${n(this.buffer[0])}`}}t.BaseInt64=o;class s extends o{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,t=new Uint32Array(2)){return s.fromString("string"==typeof e?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return s.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const r=e.length,n=new s(t);for(let t=0;t<r;){const o=8<r-t?8:r-t,a=new s(new Uint32Array([parseInt(e.substr(t,o),10),0])),c=new s(new Uint32Array([i[o],0]));n.times(c),n.plus(a),t+=o}return n}static convertArray(e){const t=new Uint32Array(2*e.length);for(let r=-1,n=e.length;++r<n;)s.from(e[r],new Uint32Array(t.buffer,t.byteOffset+2*r*4,2));return t}static multiply(e,t){return new s(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new s(new Uint32Array(e.buffer)).plus(t)}}t.Uint64=s;class a extends o{negate(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],0==this.buffer[0]&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const t=this.buffer[1]<<0,r=e.buffer[1]<<0;return t<r||t===r&&this.buffer[0]<e.buffer[0]}static from(e,t=new Uint32Array(2)){return a.fromString("string"==typeof e?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(2)){return a.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(2)){const r=e.startsWith("-"),n=e.length,o=new a(t);for(let t=r?1:0;t<n;){const r=8<n-t?8:n-t,s=new a(new Uint32Array([parseInt(e.substr(t,r),10),0])),c=new a(new Uint32Array([i[r],0]));o.times(c),o.plus(s),t+=r}return r?o.negate():o}static convertArray(e){const t=new Uint32Array(2*e.length);for(let r=-1,n=e.length;++r<n;)a.from(e[r],new Uint32Array(t.buffer,t.byteOffset+2*r*4,2));return t}static multiply(e,t){return new a(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new a(new Uint32Array(e.buffer)).plus(t)}}t.Int64=a;class c{constructor(e){this.buffer=e}high(){return new a(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new a(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){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}times(e){const t=new s(new Uint32Array([this.buffer[3],0])),r=new s(new Uint32Array([this.buffer[2],0])),n=new s(new Uint32Array([this.buffer[1],0])),i=new s(new Uint32Array([this.buffer[0],0])),o=new s(new Uint32Array([e.buffer[3],0])),a=new s(new Uint32Array([e.buffer[2],0])),c=new s(new Uint32Array([e.buffer[1],0])),u=new s(new Uint32Array([e.buffer[0],0]));let l=s.multiply(i,u);this.buffer[0]=l.low();const d=new s(new Uint32Array([l.high(),0]));l=s.multiply(n,u),d.plus(l),l=s.multiply(i,c),d.plus(l),this.buffer[1]=d.low(),this.buffer[3]=d.lessThan(l)?1:0,this.buffer[2]=d.high();return new s(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(s.multiply(r,u)).plus(s.multiply(n,c)).plus(s.multiply(i,a)),this.buffer[3]+=s.multiply(t,u).plus(s.multiply(r,c)).plus(s.multiply(n,a)).plus(s.multiply(i,o)).low(),this}plus(e){const t=new Uint32Array(4);return t[3]=this.buffer[3]+e.buffer[3]>>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return`${n(this.buffer[3])} ${n(this.buffer[2])} ${n(this.buffer[1])} ${n(this.buffer[0])}`}static multiply(e,t){return new c(new Uint32Array(e.buffer)).times(t)}static add(e,t){return new c(new Uint32Array(e.buffer)).plus(t)}static from(e,t=new Uint32Array(4)){return c.fromString("string"==typeof e?e:e.toString(),t)}static fromNumber(e,t=new Uint32Array(4)){return c.fromString(e.toString(),t)}static fromString(e,t=new Uint32Array(4)){const r=e.startsWith("-"),n=e.length,o=new c(t);for(let t=r?1:0;t<n;){const r=8<n-t?8:n-t,s=new c(new Uint32Array([parseInt(e.substr(t,r),10),0,0,0])),a=new c(new Uint32Array([i[r],0,0,0]));o.times(a),o.plus(s),t+=r}return r?o.negate():o}static convertArray(e){const t=new Uint32Array(4*e.length);for(let r=-1,n=e.length;++r<n;)c.from(e[r],new Uint32Array(t.buffer,t.byteOffset+16*r,4));return t}}t.Int128=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareTypes=t.compareFields=t.compareSchemas=t.instance=t.TypeComparator=void 0;const n=r(8);class i extends n.Visitor{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,r)=>this.compareFields(e,t[r]))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}}function o(e,t){return t instanceof e.constructor}function s(e,t){return e===t||o(e,t)}function a(e,t){return e===t||o(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function c(e,t){return e===t||o(e,t)&&e.precision===t.precision}function u(e,t){return e===t||o(e,t)&&e.unit===t.unit}function l(e,t){return e===t||o(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function d(e,t){return e===t||o(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function f(e,r){return e===r||o(e,r)&&e.mode===r.mode&&e.typeIds.every((e,t)=>e===r.typeIds[t])&&t.instance.compareManyFields(e.children,r.children)}function h(e,t){return e===t||o(e,t)&&e.unit===t.unit}t.TypeComparator=i,i.prototype.visitNull=s,i.prototype.visitBool=s,i.prototype.visitInt=a,i.prototype.visitInt8=a,i.prototype.visitInt16=a,i.prototype.visitInt32=a,i.prototype.visitInt64=a,i.prototype.visitUint8=a,i.prototype.visitUint16=a,i.prototype.visitUint32=a,i.prototype.visitUint64=a,i.prototype.visitFloat=c,i.prototype.visitFloat16=c,i.prototype.visitFloat32=c,i.prototype.visitFloat64=c,i.prototype.visitUtf8=s,i.prototype.visitBinary=s,i.prototype.visitFixedSizeBinary=function(e,t){return e===t||o(e,t)&&e.byteWidth===t.byteWidth},i.prototype.visitDate=u,i.prototype.visitDateDay=u,i.prototype.visitDateMillisecond=u,i.prototype.visitTimestamp=l,i.prototype.visitTimestampSecond=l,i.prototype.visitTimestampMillisecond=l,i.prototype.visitTimestampMicrosecond=l,i.prototype.visitTimestampNanosecond=l,i.prototype.visitTime=d,i.prototype.visitTimeSecond=d,i.prototype.visitTimeMillisecond=d,i.prototype.visitTimeMicrosecond=d,i.prototype.visitTimeNanosecond=d,i.prototype.visitDecimal=s,i.prototype.visitList=function(e,r){return e===r||o(e,r)&&e.children.length===r.children.length&&t.instance.compareManyFields(e.children,r.children)},i.prototype.visitStruct=function(e,r){return e===r||o(e,r)&&e.children.length===r.children.length&&t.instance.compareManyFields(e.children,r.children)},i.prototype.visitUnion=f,i.prototype.visitDenseUnion=f,i.prototype.visitSparseUnion=f,i.prototype.visitDictionary=function(e,r){return e===r||o(e,r)&&e.id===r.id&&e.isOrdered===r.isOrdered&&t.instance.visit(e.indices,r.indices)&&t.instance.visit(e.dictionary,r.dictionary)},i.prototype.visitInterval=h,i.prototype.visitIntervalDayTime=h,i.prototype.visitIntervalYearMonth=h,i.prototype.visitFixedSizeList=function(e,r){return e===r||o(e,r)&&e.listSize===r.listSize&&e.children.length===r.children.length&&t.instance.compareManyFields(e.children,r.children)},i.prototype.visitMap=function(e,r){return e===r||o(e,r)&&e.keysSorted===r.keysSorted&&e.children.length===r.children.length&&t.instance.compareManyFields(e.children,r.children)},t.instance=new i,t.compareSchemas=function(e,r){return t.instance.compareSchemas(e,r)},t.compareFields=function(e,r){return t.instance.compareFields(e,r)},t.compareTypes=function(e,r){return t.instance.visit(e,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distributeVectorsIntoRecordBatches=t.distributeColumnsIntoRecordBatches=t.ensureSameLengthData=void 0;const n=r(10),i=r(6),o=r(19),s=r(15),a=new Uint8Array(0),c=e=>[a,a,new Uint8Array(e),a];function u(e,t){return function(e,t){const r=[...e.fields],n=[],o={numBatches:t.reduce((e,t)=>Math.max(e,t.length),0)};let a=0,c=0,u=-1;const d=t.length;let f,h=[];for(;o.numBatches-- >0;){for(c=Number.POSITIVE_INFINITY,u=-1;++u<d;)h[u]=f=t[u].shift(),c=Math.min(c,f?f.length:c);isFinite(c)&&(h=l(r,c,h,t,o),c>0&&(n[a++]=[c,h.slice()]))}return[e=new i.Schema(r,e.metadata),n.map(t=>new s.RecordBatch(e,...t))]}(e,t.map(e=>e instanceof o.Chunked?e.chunks.map(e=>e.data):[e.data]))}function l(e,t,r,i,o){let s,a,u=0,l=-1;const d=i.length,f=(t+63&-64)>>3;for(;++l<d;)(s=r[l])&&(u=s.length)>=t?u===t?r[l]=s:(r[l]=s.slice(0,t),s=s.slice(t,u-t),o.numBatches=Math.max(o.numBatches,i[l].unshift(s))):((a=e[l]).nullable||(e[l]=a.clone({nullable:!0})),r[l]=s?s._changeLengthAndBackfillNullBitmap(t):n.Data.new(a.type,0,t,t,c(f)));return r}t.ensureSameLengthData=function(e,t,r=t.reduce((e,t)=>Math.max(e,t.length),0)){let o,s,a=-1;const u=t.length,l=[...e.fields],d=[],f=(r+63&-64)>>3;for(;++a<u;)(o=t[a])&&o.length===r?d[a]=o:((s=l[a]).nullable||(l[a]=l[a].clone({nullable:!0})),d[a]=o?o._changeLengthAndBackfillNullBitmap(r):n.Data.new(s.type,0,r,r,c(f)));return[new i.Schema(l),r,d]},t.distributeColumnsIntoRecordBatches=function(e){return u(new i.Schema(e.map(({field:e})=>e)),e)},t.distributeVectorsIntoRecordBatches=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryVector=void 0;const n=r(3),i=r(4),o=r(0);class s extends i.BaseVector{asUtf8(){return n.Vector.new(this.data.clone(new o.Utf8))}}t.BinaryVector=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BoolVector=void 0;const n=r(0),i=r(4),o=r(13);class s extends i.BaseVector{static from(e){return o.vectorFromValuesWithType(()=>new n.Bool,e)}}t.BoolVector=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateMillisecondVector=t.DateDayVector=t.DateVector=void 0;const n=r(1),i=r(4),o=r(13),s=r(0);class a extends i.BaseVector{static from(...e){return 2===e.length?o.vectorFromValuesWithType(()=>e[1]===n.DateUnit.DAY?new s.DateDay:new s.DateMillisecond,e[0]):o.vectorFromValuesWithType(()=>new s.DateMillisecond,e[0])}}t.DateVector=a;t.DateDayVector=class extends a{};t.DateMillisecondVector=class extends a{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecimalVector=void 0;const n=r(4);class i extends n.BaseVector{}t.DecimalVector=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedSizeBinaryVector=void 0;const n=r(4);class i extends n.BaseVector{}t.FixedSizeBinaryVector=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedSizeListVector=void 0;const n=r(4);class i extends n.BaseVector{}t.FixedSizeListVector=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Float64Vector=t.Float32Vector=t.Float16Vector=t.FloatVector=void 0;const n=r(10),i=r(3),o=r(4),s=r(13),a=r(0);class c extends o.BaseVector{static from(e){let t=A(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){const r=h(e.constructor)||t;if(null===t&&(t=r),t&&t===r){const r=new t,o=e.byteLength/r.ArrayType.BYTES_PER_ELEMENT;if(!f(t,e.constructor))return i.Vector.new(n.Data.Float(r,0,o,0,null,e))}}if(t)return s.vectorFromValuesWithType(()=>new t,e);if(e instanceof DataView||e instanceof ArrayBuffer)throw new TypeError("Cannot infer float type from instance of "+e.constructor.name);throw new TypeError("Unrecognized FloatVector input")}}t.FloatVector=c;class u extends c{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}}t.Float16Vector=u;class l extends c{}t.Float32Vector=l;class d extends c{}t.Float64Vector=d;const f=(e,t)=>e===a.Float16&&t!==Uint16Array,h=e=>{switch(e){case Uint16Array:return a.Float16;case Float32Array:return a.Float32;case Float64Array:return a.Float64;default:return null}},A=e=>{switch(e){case u:return a.Float16;case l:return a.Float32;case d:return a.Float64;default:return null}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntervalYearMonthVector=t.IntervalDayTimeVector=t.IntervalVector=void 0;const n=r(4);class i extends n.BaseVector{}t.IntervalVector=i;t.IntervalDayTimeVector=class extends i{};t.IntervalYearMonthVector=class extends i{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListVector=void 0;const n=r(4);class i extends n.BaseVector{}t.ListVector=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapVector=void 0;const n=r(31),i=r(3),o=r(4),s=r(0);class a extends o.BaseVector{asList(){const e=this.type.children[0];return i.Vector.new(this.data.clone(new s.List(e)))}bind(e){const t=this.getChildAt(0),{[e]:r,[e+1]:i}=this.valueOffsets;return new n.MapRow(t.slice(r,i))}}t.MapVector=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullVector=void 0;const n=r(4);class i extends n.BaseVector{}t.NullVector=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructVector=void 0;const n=r(31),i=r(4),o=Symbol.for("rowIndex");class s extends i.BaseVector{bind(e){const t=this._row||(this._row=new n.StructRow(this)),r=Object.create(t);return r[o]=e,r}}t.StructVector=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampNanosecondVector=t.TimestampMicrosecondVector=t.TimestampMillisecondVector=t.TimestampSecondVector=t.TimestampVector=void 0;const n=r(4);class i extends n.BaseVector{}t.TimestampVector=i;t.TimestampSecondVector=class extends i{};t.TimestampMillisecondVector=class extends i{};t.TimestampMicrosecondVector=class extends i{};t.TimestampNanosecondVector=class extends i{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeNanosecondVector=t.TimeMicrosecondVector=t.TimeMillisecondVector=t.TimeSecondVector=t.TimeVector=void 0;const n=r(4);class i extends n.BaseVector{}t.TimeVector=i;t.TimeSecondVector=class extends i{};t.TimeMillisecondVector=class extends i{};t.TimeMicrosecondVector=class extends i{};t.TimeNanosecondVector=class extends i{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SparseUnionVector=t.DenseUnionVector=t.UnionVector=void 0;const n=r(4);class i extends n.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}}t.UnionVector=i;t.DenseUnionVector=class extends i{get valueOffsets(){return this.data.valueOffsets}};t.SparseUnionVector=class extends i{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8Vector=void 0;const n=r(3),i=r(4),o=r(0),s=r(13);class a extends i.BaseVector{static from(e){return s.vectorFromValuesWithType(()=>new o.Utf8,e)}asBinary(){return n.Vector.new(this.data.clone(new o.Binary))}}t.Utf8Vector=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.GetVisitor=void 0;const n=r(27),i=r(8),o=r(20),s=r(26),a=r(1);class c extends i.Visitor{}t.GetVisitor=c;const u=(e,t)=>4294967296*e[t+1]+(e[t]>>>0),l=e=>new Date(e),d=(e,t,r)=>{const{[r]:n,[r+1]:i}=t;return null!=n&&null!=i?e.subarray(n,i):null},f=({values:e},t)=>((e,t)=>l(((e,t)=>864e5*e[t])(e,t)))(e,t),h=({values:e},t)=>((e,t)=>l(u(e,t)))(e,2*t),A=({stride:e,values:t},r)=>t[e*r],p=({stride:e,values:t},r)=>s.uint16ToFloat64(t[e*r]),y=({stride:e,values:t,type:r},i)=>n.BN.new(t.subarray(e*i,e*(i+1)),r.isSigned),b=({values:e},t)=>1e3*u(e,2*t),m=({values:e},t)=>u(e,2*t),g=({values:e},t)=>((e,t)=>e[t+1]/1e3*4294967296+(e[t]>>>0)/1e3)(e,2*t),v=({values:e},t)=>((e,t)=>e[t+1]/1e6*4294967296+(e[t]>>>0)/1e6)(e,2*t),B=({values:e,stride:t},r)=>e[t*r],_=({values:e,stride:t},r)=>e[t*r],T=({values:e},t)=>n.BN.signed(e.subarray(2*t,2*(t+1))),w=({values:e},t)=>n.BN.signed(e.subarray(2*t,2*(t+1))),V=(e,t)=>{const r=e.typeIdToChildIndex[e.typeIds[t]],n=e.getChildAt(r);return n?n.get(e.valueOffsets[t]):null},I=(e,t)=>{const r=e.typeIdToChildIndex[e.typeIds[t]],n=e.getChildAt(r);return n?n.get(t):null},F=({values:e},t)=>e.subarray(2*t,2*(t+1)),U=({values:e},t)=>{const r=e[t],n=new Int32Array(2);return n[0]=r/12|0,n[1]=r%12|0,n};c.prototype.visitNull=(e,t)=>null,c.prototype.visitBool=({offset:e,values:t},r)=>{const n=e+r;return 0!=(t[n>>3]&1<<n%8)},c.prototype.visitInt=(e,t)=>e.type.bitWidth<64?A(e,t):y(e,t),c.prototype.visitInt8=A,c.prototype.visitInt16=A,c.prototype.visitInt32=A,c.prototype.visitInt64=y,c.prototype.visitUint8=A,c.prototype.visitUint16=A,c.prototype.visitUint32=A,c.prototype.visitUint64=y,c.prototype.visitFloat=(e,t)=>e.type.precision!==a.Precision.HALF?A(e,t):p(e,t),c.prototype.visitFloat16=p,c.prototype.visitFloat32=A,c.prototype.visitFloat64=A,c.prototype.visitUtf8=({values:e,valueOffsets:t},r)=>{const n=d(e,t,r);return null!==n?o.decodeUtf8(n):null},c.prototype.visitBinary=({values:e,valueOffsets:t},r)=>d(e,t,r),c.prototype.visitFixedSizeBinary=({stride:e,values:t},r)=>t.subarray(e*r,e*(r+1)),c.prototype.visitDate=(e,t)=>e.type.unit===a.DateUnit.DAY?f(e,t):h(e,t),c.prototype.visitDateDay=f,c.prototype.visitDateMillisecond=h,c.prototype.visitTimestamp=(e,t)=>{switch(e.type.unit){case a.TimeUnit.SECOND:return b(e,t);case a.TimeUnit.MILLISECOND:return m(e,t);case a.TimeUnit.MICROSECOND:return g(e,t);case a.TimeUnit.NANOSECOND:return v(e,t)}},c.prototype.visitTimestampSecond=b,c.prototype.visitTimestampMillisecond=m,c.prototype.visitTimestampMicrosecond=g,c.prototype.visitTimestampNanosecond=v,c.prototype.visitTime=(e,t)=>{switch(e.type.unit){case a.TimeUnit.SECOND:return B(e,t);case a.TimeUnit.MILLISECOND:return _(e,t);case a.TimeUnit.MICROSECOND:return T(e,t);case a.TimeUnit.NANOSECOND:return w(e,t)}},c.prototype.visitTimeSecond=B,c.prototype.visitTimeMillisecond=_,c.prototype.visitTimeMicrosecond=T,c.prototype.visitTimeNanosecond=w,c.prototype.visitDecimal=({values:e},t)=>n.BN.decimal(e.subarray(4*t,4*(t+1))),c.prototype.visitList=(e,t)=>{const r=e.getChildAt(0),{valueOffsets:n,stride:i}=e;return r.slice(n[t*i],n[t*i+1])},c.prototype.visitStruct=(e,t)=>e.bind(t),c.prototype.visitUnion=(e,t)=>e.type.mode===a.UnionMode.Dense?V(e,t):I(e,t),c.prototype.visitDenseUnion=V,c.prototype.visitSparseUnion=I,c.prototype.visitDictionary=(e,t)=>e.getValue(e.getKey(t)),c.prototype.visitInterval=(e,t)=>e.type.unit===a.IntervalUnit.DAY_TIME?F(e,t):U(e,t),c.prototype.visitIntervalDayTime=F,c.prototype.visitIntervalYearMonth=U,c.prototype.visitFixedSizeList=(e,t)=>{const r=e.getChildAt(0),{stride:n}=e;return r.slice(t*n,(t+1)*n)},c.prototype.visitMap=(e,t)=>e.bind(t),t.instance=new c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.IteratorVisitor=void 0;const n=r(1),i=r(8),o=r(12),s=r(80);class a extends i.Visitor{}t.IteratorVisitor=a;class c{constructor(e,t){this.vector=e,this.getFn=t,this.index=0}next(){return this.index<this.vector.length?{value:this.getFn(this.vector,this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}function u(e){if(e.nullCount>0)return function(e){const t=s.instance.getVisitFn(e);return new o.BitIterator(e.data.nullBitmap,e.data.offset,e.length,e,(e,r,n,i)=>0!=(n&1<<i)?t(e,r):null)}(e);const{type:t,typeId:r,length:i}=e;return 1===e.stride&&(r===n.Type.Timestamp||r===n.Type.Int&&64!==t.bitWidth||r===n.Type.Time&&64!==t.bitWidth||r===n.Type.Float&&t.precision>0)?e.data.values.subarray(0,i)[Symbol.iterator]():new c(e,s.instance.getVisitFn(e))}a.prototype.visitNull=u,a.prototype.visitBool=u,a.prototype.visitInt=u,a.prototype.visitInt8=u,a.prototype.visitInt16=u,a.prototype.visitInt32=u,a.prototype.visitInt64=u,a.prototype.visitUint8=u,a.prototype.visitUint16=u,a.prototype.visitUint32=u,a.prototype.visitUint64=u,a.prototype.visitFloat=u,a.prototype.visitFloat16=u,a.prototype.visitFloat32=u,a.prototype.visitFloat64=u,a.prototype.visitUtf8=u,a.prototype.visitBinary=u,a.prototype.visitFixedSizeBinary=u,a.prototype.visitDate=u,a.prototype.visitDateDay=u,a.prototype.visitDateMillisecond=u,a.prototype.visitTimestamp=u,a.prototype.visitTimestampSecond=u,a.prototype.visitTimestampMillisecond=u,a.prototype.visitTimestampMicrosecond=u,a.prototype.visitTimestampNanosecond=u,a.prototype.visitTime=u,a.prototype.visitTimeSecond=u,a.prototype.visitTimeMillisecond=u,a.prototype.visitTimeMicrosecond=u,a.prototype.visitTimeNanosecond=u,a.prototype.visitDecimal=u,a.prototype.visitList=u,a.prototype.visitStruct=u,a.prototype.visitUnion=u,a.prototype.visitDenseUnion=u,a.prototype.visitSparseUnion=u,a.prototype.visitDictionary=u,a.prototype.visitInterval=u,a.prototype.visitIntervalDayTime=u,a.prototype.visitIntervalYearMonth=u,a.prototype.visitFixedSizeList=u,a.prototype.visitMap=u,t.instance=new a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.custom=t.or=t.and=t.col=t.lit=t.CustomPredicate=t.Not=t.GTeq=t.LTeq=t.Equals=t.Or=t.And=t.CombinationPredicate=t.ComparisonPredicate=t.Predicate=t.Col=t.Literal=t.Value=void 0;const n=r(38);class i{eq(e){return e instanceof i||(e=new o(e)),new f(this,e)}le(e){return e instanceof i||(e=new o(e)),new h(this,e)}ge(e){return e instanceof i||(e=new o(e)),new A(this,e)}lt(e){return new p(this.ge(e))}gt(e){return new p(this.le(e))}ne(e){return new p(this.eq(e))}}t.Value=i;class o extends i{constructor(e){super(),this.v=e}}t.Literal=o;class s extends i{constructor(e){super(),this.name=e}bind(e){if(!this.colidx){this.colidx=-1;const t=e.schema.fields;for(let e=-1;++e<t.length;)if(t[e].name===this.name){this.colidx=e;break}if(this.colidx<0)throw new Error(`Failed to bind Col "${this.name}"`)}const t=this.vector=e.getChildAt(this.colidx);return e=>t.get(e)}}t.Col=s;class a{and(...e){return new l(this,...e)}or(...e){return new d(this,...e)}not(){return new p(this)}}t.Predicate=a;class c extends a{constructor(e,t){super(),this.left=e,this.right=t}bind(e){return this.left instanceof o?this.right instanceof o?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof o?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}}t.ComparisonPredicate=c;class u extends a{constructor(...e){super(),this.children=e}}t.CombinationPredicate=u,u.prototype.children=Object.freeze([]);class l extends u{constructor(...e){e=e.reduce((e,t)=>e.concat(t instanceof l?t.children:t),[]),super(...e)}bind(e){const t=this.children.map(t=>t.bind(e));return(e,r)=>t.every(t=>t(e,r))}}t.And=l;class d extends u{constructor(...e){e=e.reduce((e,t)=>e.concat(t instanceof d?t.children:t),[]),super(...e)}bind(e){const t=this.children.map(t=>t.bind(e));return(e,r)=>t.some(t=>t(e,r))}}t.Or=d;class f extends c{_bindLitLit(e,t,r){const n=t.v==r.v;return()=>n}_bindColCol(e,t,r){const n=t.bind(e),i=r.bind(e);return(e,t)=>n(e,t)==i(e,t)}_bindColLit(e,t,r){const i=t.bind(e);if(t.vector instanceof n.DictionaryVector){let e;const n=t.vector;return n.dictionary!==this.lastDictionary?(e=n.reverseLookup(r.v),this.lastDictionary=n.dictionary,this.lastKey=e):e=this.lastKey,-1===e?()=>!1:t=>n.getKey(t)===e}return(e,t)=>i(e,t)==r.v}_bindLitCol(e,t,r){return this._bindColLit(e,r,t)}}t.Equals=f;class h extends c{_bindLitLit(e,t,r){const n=t.v<=r.v;return()=>n}_bindColCol(e,t,r){const n=t.bind(e),i=r.bind(e);return(e,t)=>n(e,t)<=i(e,t)}_bindColLit(e,t,r){const n=t.bind(e);return(e,t)=>n(e,t)<=r.v}_bindLitCol(e,t,r){const n=r.bind(e);return(e,r)=>t.v<=n(e,r)}}t.LTeq=h;class A extends c{_bindLitLit(e,t,r){const n=t.v>=r.v;return()=>n}_bindColCol(e,t,r){const n=t.bind(e),i=r.bind(e);return(e,t)=>n(e,t)>=i(e,t)}_bindColLit(e,t,r){const n=t.bind(e);return(e,t)=>n(e,t)>=r.v}_bindLitCol(e,t,r){const n=r.bind(e);return(e,r)=>t.v>=n(e,r)}}t.GTeq=A;class p extends a{constructor(e){super(),this.child=e}bind(e){const t=this.child.bind(e);return(e,r)=>!t(e,r)}}t.Not=p;class y extends a{constructor(e,t){super(),this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}}t.CustomPredicate=y,t.lit=function(e){return new o(e)},t.col=function(e){return new s(e)},t.and=function(...e){return new l(...e)},t.or=function(...e){return new d(...e)},t.custom=function(e,t){return new y(e,t)}},function(e,t){},function(e,t,r){(function(t,n){e.exports=function(){var i,o=void 0!==o?o:{},s={};for(i in o)o.hasOwnProperty(i)&&(s[i]=o[i]);var a=[],c=!1,u=!1,l=!1,d=!1;c="object"==typeof window,u="function"==typeof importScripts,l="object"==typeof t&&"object"==typeof t.versions&&"string"==typeof t.versions.node,d=!c&&!l&&!u;var f,h,A,p,y,b="";function m(e){return o.locateFile?o.locateFile(e,b):b+e}l?(b=u?r(83).dirname(b)+"/":n+"/",f=function(e,t){var n=Br(e);return n?t?n:n.toString():(p||(p=r(110)),y||(y=r(83)),e=y.normalize(e),p.readFileSync(e,t?null:"utf8"))},A=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),I(t.buffer),t},t.argv.length>1&&t.argv[1].replace(/\\/g,"/"),a=t.argv.slice(2),e.exports=o,t.on("uncaughtException",(function(e){if(!(e instanceof kr))throw e})),t.on("unhandledRejection",pe),function(e){t.exit(e)},o.inspect=function(){return"[Emscripten Module object]"}):d?("undefined"!=typeof read&&(f=function(e){var t=Br(e);return t?mr(t):read(e)}),A=function(e){var t;return(t=Br(e))?t:"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(I("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?a=scriptArgs:void 0!==arguments&&(a=arguments),"function"==typeof quit&&function(e){quit(e)},"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(c||u)&&(u?b=self.location.href:document.currentScript&&(b=document.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",f=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(t){var r=Br(e);if(r)return mr(r);throw t}},u&&(A=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){var r=Br(e);if(r)return r;throw t}}),h=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){if(200==n.status||0==n.status&&n.response)t(n.response);else{var i=Br(e);i?t(i.buffer):r()}},n.onerror=r,n.send(null)});var g=o.print||console.log.bind(console),v=o.printErr||console.warn.bind(console);for(i in s)s.hasOwnProperty(i)&&(o[i]=s[i]);s=null,o.arguments&&(a=o.arguments),o.thisProgram&&o.thisProgram,o.quit&&o.quit;new Array(0);var B=0,_=function(e){B=e},T=function(){return B},w=8;o.wasmBinary&&o.wasmBinary,o.noExitRuntime&&o.noExitRuntime;var V=!1;function I(e,t){e||pe("Assertion failed: "+t)}var F="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function U(e,t,r){for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.subarray&&F)return F.decode(e.subarray(t,i));for(var o="";t<i;){var s=e[t++];if(128&s){var a=63&e[t++];if(192!=(224&s)){var c=63&e[t++];if((s=224==(240&s)?(15&s)<<12|a<<6|c:(7&s)<<18|a<<12|c<<6|63&e[t++])<65536)o+=String.fromCharCode(s);else{var u=s-65536;o+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else o+=String.fromCharCode((31&s)<<6|a)}else o+=String.fromCharCode(s)}return o}function S(e,t){return e?U(Z,e,t):""}function M(e,t,r,n){if(!(n>0))return 0;for(var i=r,o=r+n-1,s=0;s<e.length;++s){var a=e.charCodeAt(s);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++s);if(a<=127){if(r>=o)break;t[r++]=a}else if(a<=2047){if(r+1>=o)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=o)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=o)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-i}function O(e,t,r){return M(e,Z,t,r)}function R(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}var D,N,Z,k,x,j,W,P,z,E="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function X(e,t){for(var r=e,n=r>>1,i=n+t/2;!(n>=i)&&x[n];)++n;if((r=n<<1)-e>32&&E)return E.decode(Z.subarray(e,r));for(var o=0,s="";;){var a=k[e+2*o>>1];if(0==a||o==t/2)return s;++o,s+=String.fromCharCode(a)}}function C(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);k[t>>1]=s,t+=2}return k[t>>1]=0,t-n}function G(e){return 2*e.length}function L(e,t){for(var r=0,n="";!(r>=t/4);){var i=j[e+4*r>>2];if(0==i)break;if(++r,i>=65536){var o=i-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(i)}return n}function Y(e,t,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,i=n+r-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o);if(j[t>>2]=s,(t+=4)+4>i)break}return j[t>>2]=0,t-n}function J(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t}function H(e){D=e,o.HEAP8=N=new Int8Array(e),o.HEAP16=k=new Int16Array(e),o.HEAP32=j=new Int32Array(e),o.HEAPU8=Z=new Uint8Array(e),o.HEAPU16=x=new Uint16Array(e),o.HEAPU32=W=new Uint32Array(e),o.HEAPF32=P=new Float32Array(e),o.HEAPF64=z=new Float64Array(e)}var Q=5265264,$=22176,K=o.INITIAL_MEMORY||167772160;function q(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?o.dynCall_v(r):o.dynCall_vi(r,t.arg):r(void 0===t.arg?null:t.arg)}else t(o)}}K=(D=o.buffer?o.buffer:new ArrayBuffer(K)).byteLength,H(D),j[$>>2]=Q;var ee=[],te=[],re=[],ne=[];function ie(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)ce(o.preRun.shift());q(ee)}function oe(){!0,q(te)}function se(){q(re)}function ae(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)ue(o.postRun.shift());q(ne)}function ce(e){ee.unshift(e)}function ue(e){ne.unshift(e)}Math.abs,Math.ceil,Math.floor,Math.min;var le=0,de=null,fe=null;function he(e){le++,o.monitorRunDependencies&&o.monitorRunDependencies(le)}function Ae(e){if(le--,o.monitorRunDependencies&&o.monitorRunDependencies(le),0==le&&(null!==de&&(clearInterval(de),de=null),fe)){var t=fe;fe=null,t()}}function pe(e){throw o.onAbort&&o.onAbort(e),g(e+=""),v(e),V=!0,1,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info."}o.preloadedImages={},o.preloadedAudios={};var ye=null;function be(e,t){return String.prototype.startsWith?e.startsWith(t):0===e.indexOf(t)}var me="data:application/octet-stream;base64,";function ge(e){return be(e,me)}te.push({func:function(){Mr()}}),ye="data:application/octet-stream;base64,AAAAAAAAAAAPDg0MCwoJCA4AAQMGCgoJDQECBAcLCwoMAwQFCAwMCwsGBwgJDQ0MCgoLDA0ODg0JCgsMDQ4PDggJCgsMDQ4PAAECAwQFBgcBAAECAwQFBgIBAAECAwQFAwIBAAECAwQEAwIBAAECAwUEAwIBAAECBgUEAwIBAAEHBgUEAwIBAMgPAAAoDQAAEBAAACAQAADIDwAAUA0AABAQAAAgEAAAEQAKABEREQAAAAAFAAAAAAAACQAAAAALAAAAAAAAAAARAA8KERERAwoHAAEACQsLAAAJBgsAAAsABhEAAAAREREAAAAAAAAAAAAAAAAAAAAACwAAAAAAAAAAEQAKChEREQAKAAACAAkLAAAACQALAAALAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAADAAAAAAJDAAAAAAADAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAA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BlcnJvcgBVbmtub3duIGVycm9yICVkAGdlbmVyaWMATlN0M19fMjI0X19nZW5lcmljX2Vycm9yX2NhdGVnb3J5RQBOU3QzX18yMTJfX2RvX21lc3NhZ2VFAE5TdDNfXzIxNGVycm9yX2NhdGVnb3J5RQB1bnNwZWNpZmllZCBzeXN0ZW1fY2F0ZWdvcnkgZXJyb3IAc3lzdGVtAE5TdDNfXzIyM19fc3lzdGVtX2Vycm9yX2NhdGVnb3J5RQBOU3QzX18yMTJzeXN0ZW1fZXJyb3JFADogAHZlY3Rvcg==";var ve=22368;function Be(e){return Sr(e)}var _e={},Te=[];function we(e){e&&_e[e].refcount++}function Ve(e){if(!e||_e[e])return e;for(var t in _e)for(var r=+t,n=_e[r].adjusted,i=n.length,o=0;o<i;o++)if(n[o]===e)return r;return e}function Ie(e){var t=_e[e];return t&&!t.caught&&(t.caught=!0,Ir.uncaught_exceptions--),t&&(t.rethrown=!1),Te.push(e),we(Ve(e)),e}function Fe(e,t,r){throw _e[e]={ptr:e,adjusted:[e],type:t,destructor:r,refcount:0,caught:!1,rethrown:!1},e,"uncaught_exception"in Ir?Ir.uncaught_exceptions++:Ir.uncaught_exceptions=1,e}function Ue(){return Ir.uncaught_exceptions}function Se(){}function Me(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}function Oe(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Re=e}var Re=void 0;function De(e){for(var t="",r=e;Z[r];)t+=Re[Z[r++]];return t}var Ne={},Ze={},ke={},xe=48,je=57;function We(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=xe&&t<=je?"_"+e:e}function Pe(e,t){return e=We(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function ze(e,t){var r=Pe(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var Ee=void 0;function Xe(e){throw new Ee(e)}var Ce=void 0;function Ge(e){throw new Ce(e)}function Le(e,t,r){function n(t){var n=r(t);n.length!==e.length&&Ge("Mismatched type converter count");for(var i=0;i<e.length;++i)Ye(e[i],n[i])}e.forEach((function(e){ke[e]=t}));var i=new Array(t.length),o=[],s=0;t.forEach((function(e,t){Ze.hasOwnProperty(e)?i[t]=Ze[e]:(o.push(e),Ne.hasOwnProperty(e)||(Ne[e]=[]),Ne[e].push((function(){i[t]=Ze[e],++s===o.length&&n(i)})))})),0===o.length&&n(i)}function Ye(e,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||Xe('type "'+n+'" must have a positive integer typeid pointer'),Ze.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;Xe("Cannot register type '"+n+"' twice")}if(Ze[e]=t,delete ke[e],Ne.hasOwnProperty(e)){var i=Ne[e];delete Ne[e],i.forEach((function(e){e()}))}}function Je(e,t,r,n,i){var o=Me(r);Ye(e,{name:t=De(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:i},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=N;else if(2===r)n=k;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=j}return this.fromWireType(n[e>>o])},destructorFunction:null})}function He(e){if(!(this instanceof dt))return!1;if(!(e instanceof dt))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i}function Qe(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function $e(e){Xe(e.$$.ptrType.registeredClass.name+" instance already deleted")}var Ke=!1;function qe(e){}function et(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}function tt(e){e.count.value-=1,0===e.count.value&&et(e)}function rt(e){return"undefined"==typeof FinalizationGroup?(rt=function(e){return e},e):(Ke=new FinalizationGroup((function(e){for(var t=e.next();!t.done;t=e.next()){var r=t.value;r.ptr?tt(r):console.warn("object already deleted: "+r.ptr)}})),qe=function(e){Ke.unregister(e.$$)},(rt=function(e){return Ke.register(e,e.$$,e.$$),e})(e))}function nt(){if(this.$$.ptr||$e(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=rt(Object.create(Object.getPrototypeOf(this),{$$:{value:Qe(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function it(){this.$$.ptr||$e(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Xe("Object already scheduled for deletion"),qe(this),tt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function ot(){return!this.$$.ptr}var st=void 0,at=[];function ct(){for(;at.length;){var e=at.pop();e.$$.deleteScheduled=!1,e.delete()}}function ut(){return this.$$.ptr||$e(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Xe("Object already scheduled for deletion"),at.push(this),1===at.length&&st&&st(ct),this.$$.deleteScheduled=!0,this}function lt(){dt.prototype.isAliasOf=He,dt.prototype.clone=nt,dt.prototype.delete=it,dt.prototype.isDeleted=ot,dt.prototype.deleteLater=ut}function dt(){}var ft={};function ht(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||Xe("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function At(e,t,r){o.hasOwnProperty(e)?((void 0===r||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[r])&&Xe("Cannot register public name '"+e+"' twice"),ht(o,e,e),o.hasOwnProperty(r)&&Xe("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),o[e].overloadTable[r]=t):(o[e]=t,void 0!==r&&(o[e].numArguments=r))}function pt(e,t,r,n,i,o,s,a){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=s,this.downcast=a,this.pureVirtualFunctions=[]}function yt(e,t,r){for(;t!==r;)t.upcast||Xe("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function bt(e,t){if(null===t)return this.isReference&&Xe("null is not a valid "+this.name),0;t.$$||Xe('Cannot pass "'+rr(t)+'" as a '+this.name),t.$$.ptr||Xe("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return yt(t.$$.ptr,r,this.registeredClass)}function mt(e,t){var r;if(null===t)return this.isReference&&Xe("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||Xe('Cannot pass "'+rr(t)+'" as a '+this.name),t.$$.ptr||Xe("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&Xe("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=yt(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&Xe("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:Xe("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,er((function(){i.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:Xe("Unsupporting sharing policy")}return r}function gt(e,t){if(null===t)return this.isReference&&Xe("null is not a valid "+this.name),0;t.$$||Xe('Cannot pass "'+rr(t)+'" as a '+this.name),t.$$.ptr||Xe("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&Xe("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return yt(t.$$.ptr,r,this.registeredClass)}function vt(e){return this.fromWireType(W[e>>2])}function Bt(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function _t(e){this.rawDestructor&&this.rawDestructor(e)}function Tt(e){null!==e&&e.delete()}function wt(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=wt(e,t,r.baseClass);return null===n?null:r.downcast(n)}function Vt(){return Object.keys(St).length}function It(){var e=[];for(var t in St)St.hasOwnProperty(t)&&e.push(St[t]);return e}function Ft(e){st=e,at.length&&st&&st(ct)}function Ut(){o.getInheritedInstanceCount=Vt,o.getLiveInheritedInstances=It,o.flushPendingDeletes=ct,o.setDelayFunction=Ft}var St={};function Mt(e,t){for(void 0===t&&Xe("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}function Ot(e,t){return t=Mt(e,t),St[t]}function Rt(e,t){return t.ptrType&&t.ptr||Ge("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!==!!t.smartPtr&&Ge("Both smartPtrType and smartPtr must be specified"),t.count={value:1},rt(Object.create(e,{$$:{value:t}}))}function Dt(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=Ot(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?Rt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Rt(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,s=this.registeredClass.getActualType(t),a=ft[s];if(!a)return i.call(this);o=this.isConst?a.constPointerType:a.pointerType;var c=wt(t,this.registeredClass,o.registeredClass);return null===c?i.call(this):this.isSmartPointer?Rt(o.registeredClass.instancePrototype,{ptrType:o,ptr:c,smartPtrType:this,smartPtr:e}):Rt(o.registeredClass.instancePrototype,{ptrType:o,ptr:c})}function Nt(){Zt.prototype.getPointee=Bt,Zt.prototype.destructor=_t,Zt.prototype.argPackAdvance=8,Zt.prototype.readValueFromPointer=vt,Zt.prototype.deleteObject=Tt,Zt.prototype.fromWireType=Dt}function Zt(e,t,r,n,i,o,s,a,c,u,l){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=s,this.rawGetPointee=a,this.rawConstructor=c,this.rawShare=u,this.rawDestructor=l,i||void 0!==t.baseClass?this.toWireType=mt:n?(this.toWireType=bt,this.destructorFunction=null):(this.toWireType=gt,this.destructorFunction=null)}function kt(e,t,r){o.hasOwnProperty(e)||Ge("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==r?o[e].overloadTable[r]=t:(o[e]=t,o[e].argCount=r)}function xt(e,t){e=De(e);var r=function(r){for(var n=[],i=1;i<e.length;++i)n.push("a"+i);var o="return function "+("dynCall_"+e+"_"+t)+"("+n.join(", ")+") {\n";return o+=" return dynCall(rawFunction"+(n.length?", ":"")+n.join(", ")+");\n",o+="};\n",new Function("dynCall","rawFunction",o)(r,t)}(o["dynCall_"+e]);return"function"!=typeof r&&Xe("unknown function pointer with signature "+e+": "+t),r}var jt=void 0;function Wt(e){var t=Fr(e),r=De(t);return Ur(t),r}function Pt(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||Ze[t]||(ke[t]?ke[t].forEach(e):(r.push(t),n[t]=!0))})),new jt(e+": "+r.map(Wt).join([", "]))}function zt(e,t,r,n,i,o,s,a,c,u,l,d,f){l=De(l),o=xt(i,o),a&&(a=xt(s,a)),u&&(u=xt(c,u)),f=xt(d,f);var h=We(l);At(h,(function(){Pt("Cannot construct "+l+" due to unbound types",[n])})),Le([e,t,r],n?[n]:[],(function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:dt.prototype;var s=Pe(h,(function(){if(Object.getPrototypeOf(this)!==c)throw new Ee("Use 'new' to construct "+l);if(void 0===d.constructor_body)throw new Ee(l+" has no accessible constructor");var e=d.constructor_body[arguments.length];if(void 0===e)throw new Ee("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(d.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),c=Object.create(i,{constructor:{value:s}});s.prototype=c;var d=new pt(l,s,c,f,r,o,a,u),A=new Zt(l,d,!0,!1,!1),p=new Zt(l+"*",d,!1,!1,!1),y=new Zt(l+" const*",d,!1,!0,!1);return ft[e]={pointerType:p,constPointerType:y},kt(h,s),[A,p,y]}))}function Et(e,t){for(var r=[],n=0;n<e;n++)r.push(j[(t>>2)+n]);return r}function Xt(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Ct(e,t,r,n,i,o){I(t>0);var s=Et(t,r);i=xt(n,i);var a=[o],c=[];Le([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Ee("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=function(){Pt("Cannot construct "+e.name+" due to unbound types",s)},Le([],s,(function(n){return e.registeredClass.constructor_body[t-1]=function(){arguments.length!==t-1&&Xe(r+" called with "+arguments.length+" arguments, expected "+(t-1)),c.length=0,a.length=t;for(var e=1;e<t;++e)a[e]=n[e].toWireType(c,arguments[e-1]);var o=i.apply(null,a);return Xt(c),n[0].fromWireType(o)},[]})),[]}))}function Gt(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=Pe(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,i=e.apply(n,t);return i instanceof Object?i:n}function Lt(e,t,r,n,i){var o=t.length;o<2&&Xe("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==t[1]&&null!==r,a=!1,c=1;c<t.length;++c)if(null!==t[c]&&void 0===t[c].destructorFunction){a=!0;break}var u="void"!==t[0].name,l="",d="";for(c=0;c<o-2;++c)l+=(0!==c?", ":"")+"arg"+c,d+=(0!==c?", ":"")+"arg"+c+"Wired";var f="return function "+We(e)+"("+l+") {\nif (arguments.length !== "+(o-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(o-2)+" args!');\n}\n";a&&(f+="var destructors = [];\n");var h=a?"destructors":"null",A=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],p=[Xe,n,i,Xt,t[0],t[1]];s&&(f+="var thisWired = classParam.toWireType("+h+", this);\n");for(c=0;c<o-2;++c)f+="var arg"+c+"Wired = argType"+c+".toWireType("+h+", arg"+c+"); // "+t[c+2].name+"\n",A.push("argType"+c),p.push(t[c+2]);if(s&&(d="thisWired"+(d.length>0?", ":"")+d),f+=(u?"var rv = ":"")+"invoker(fn"+(d.length>0?", ":"")+d+");\n",a)f+="runDestructors(destructors);\n";else for(c=s?1:2;c<t.length;++c){var y=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==t[c].destructorFunction&&(f+=y+"_dtor("+y+"); // "+t[c].name+"\n",A.push(y+"_dtor"),p.push(t[c].destructorFunction))}return u&&(f+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),f+="}\n",A.push(f),Gt(Function,A).apply(null,p)}function Yt(e,t,r,n,i,o,s,a){var c=Et(r,n);t=De(t),o=xt(i,o),Le([],[e],(function(e){var n=(e=e[0]).name+"."+t;function i(){Pt("Cannot call "+n+" due to unbound types",c)}a&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,l=u[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===r-2?(i.argCount=r-2,i.className=e.name,u[t]=i):(ht(u,t,n),u[t].overloadTable[r-2]=i),Le([],c,(function(i){var a=Lt(n,i,e,o,s);return void 0===u[t].overloadTable?(a.argCount=r-2,u[t]=a):u[t].overloadTable[r-2]=a,[]})),[]}))}var Jt=[],Ht=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function Qt(e){e>4&&0==--Ht[e].refcount&&(Ht[e]=void 0,Jt.push(e))}function $t(){for(var e=0,t=5;t<Ht.length;++t)void 0!==Ht[t]&&++e;return e}function Kt(){for(var e=5;e<Ht.length;++e)if(void 0!==Ht[e])return Ht[e];return null}function qt(){o.count_emval_handles=$t,o.get_first_emval=Kt}function er(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=Jt.length?Jt.pop():Ht.length;return Ht[t]={refcount:1,value:e},t}}function tr(e,t){Ye(e,{name:t=De(t),fromWireType:function(e){var t=Ht[e].value;return Qt(e),t},toWireType:function(e,t){return er(t)},argPackAdvance:8,readValueFromPointer:vt,destructorFunction:null})}function rr(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function nr(e,t){switch(t){case 2:return function(e){return this.fromWireType(P[e>>2])};case 3:return function(e){return this.fromWireType(z[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function ir(e,t,r){var n=Me(r);Ye(e,{name:t=De(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+rr(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:nr(t,n),destructorFunction:null})}function or(e,t,r){switch(t){case 0:return r?function(e){return N[e]}:function(e){return Z[e]};case 1:return r?function(e){return k[e>>1]}:function(e){return x[e>>1]};case 2:return r?function(e){return j[e>>2]}:function(e){return W[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function sr(e,t,r,n,i){t=De(t),-1===i&&(i=4294967295);var o=Me(r),s=function(e){return e};if(0===n){var a=32-8*r;s=function(e){return e<<a>>>a}}var c=-1!=t.indexOf("unsigned");Ye(e,{name:t,fromWireType:s,toWireType:function(e,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+rr(r)+'" to '+this.name);if(r<n||r>i)throw new TypeError('Passing a number "'+rr(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+i+"]!");return c?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:or(t,o,0!==n),destructorFunction:null})}function ar(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=W,r=t[e>>=2],i=t[e+1];return new n(D,i,r)}Ye(e,{name:r=De(r),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})}function cr(e,t){var r="std::string"===(t=De(t));Ye(e,{name:t,fromWireType:function(e){var t,n=W[e>>2];if(r)for(var i=e+4,o=0;o<=n;++o){var s=e+4+o;if(0==Z[s]||o==n){var a=S(i,s-i);void 0===t?t=a:(t+=String.fromCharCode(0),t+=a),i=s+1}}else{var c=new Array(n);for(o=0;o<n;++o)c[o]=String.fromCharCode(Z[e+4+o]);t=c.join("")}return Ur(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||Xe("Cannot pass non-string to std::string");var i=(r&&n?function(){return R(t)}:function(){return t.length})(),o=Sr(4+i+1);if(W[o>>2]=i,r&&n)O(t,o+4,i+1);else if(n)for(var s=0;s<i;++s){var a=t.charCodeAt(s);a>255&&(Ur(o),Xe("String has UTF-16 code units that do not fit in 8 bits")),Z[o+4+s]=a}else for(s=0;s<i;++s)Z[o+4+s]=t[s];return null!==e&&e.push(Ur,o),o},argPackAdvance:8,readValueFromPointer:vt,destructorFunction:function(e){Ur(e)}})}function ur(e,t,r){var n,i,o,s,a;r=De(r),2===t?(n=X,i=C,s=G,o=function(){return x},a=1):4===t&&(n=L,i=Y,s=J,o=function(){return W},a=2),Ye(e,{name:r,fromWireType:function(e){for(var r,i=W[e>>2],s=o(),c=e+4,u=0;u<=i;++u){var l=e+4+u*t;if(0==s[l>>a]||u==i){var d=n(c,l-c);void 0===r?r=d:(r+=String.fromCharCode(0),r+=d),c=l+t}}return Ur(e),r},toWireType:function(e,n){"string"!=typeof n&&Xe("Cannot pass non-string to C++ string type "+r);var o=s(n),c=Sr(4+o+t);return W[c>>2]=o>>a,i(n,c+4,o+t),null!==e&&e.push(Ur,c),c},argPackAdvance:8,readValueFromPointer:vt,destructorFunction:function(e){Ur(e)}})}function lr(e,t){Ye(e,{isVoid:!0,name:t=De(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})}function dr(){pe()}function fr(){return Z.length}function hr(e){pe("OOM")}function Ar(e){hr()}function pr(){pe("trap!")}function yr(e,t,r){Z.copyWithin(e,t,t+r)}Oe(),Ee=o.BindingError=ze(Error,"BindingError"),Ce=o.InternalError=ze(Error,"InternalError"),lt(),Nt(),Ut(),jt=o.UnboundTypeError=ze(Error,"UnboundTypeError"),qt();var br=!1;function mr(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];n>255&&(br&&I(!1,"Character code "+n+" ("+String.fromCharCode(n)+") at offset "+r+" not in 0x00-0xFF."),n&=255),t.push(String.fromCharCode(n))}return t.join("")}var gr="function"==typeof atob?atob:function(e){var t,r,n,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=a.indexOf(e.charAt(u++))<<2|(i=a.indexOf(e.charAt(u++)))>>4,r=(15&i)<<4|(o=a.indexOf(e.charAt(u++)))>>2,n=(3&o)<<6|(s=a.indexOf(e.charAt(u++))),c+=String.fromCharCode(t),64!==o&&(c+=String.fromCharCode(r)),64!==s&&(c+=String.fromCharCode(n))}while(u<e.length);return c};function vr(e){if("boolean"==typeof l&&l){var t;try{t=Buffer.from(e,"base64")}catch(r){t=new Buffer(e,"base64")}return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}try{for(var r=gr(e),n=new Uint8Array(r.length),i=0;i<r.length;++i)n[i]=r.charCodeAt(i);return n}catch(e){throw new Error("Converting base64 string to bytes failed.")}}function Br(e){if(ge(e))return vr(e.slice(me.length))}var _r,Tr={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Float32Array:Float32Array,Float64Array:Float64Array},wr={A:yr,B:Ar,C:pr,D:ve,a:pe,b:_,c:T,d:Be,e:Ie,f:Fe,g:Ue,h:we,i:Ve,j:Se,k:Je,l:zt,m:Ct,n:Yt,o:tr,p:ir,q:sr,r:ar,s:cr,t:ur,u:lr,v:Qt,w:er,x:dr,y:rr,z:fr},Vr=function(e,t,r){"use asm";var n=new e.Int8Array(r),i=new e.Int16Array(r),o=new e.Int32Array(r),s=new e.Uint8Array(r),a=new e.Uint16Array(r),c=new e.Float32Array(r),u=new e.Float64Array(r),l=t.D|0,d=0,f=0,h=0,A=0,p=0,y=0,b=0,m=0.0,g=e.Math.imul,v=e.Math.clz32,B=t.a,_=t.b,T=t.c,w=t.d,V=t.e,I=t.f,F=t.g,U=t.h,S=t.i,M=t.j,O=t.k,R=t.l,D=t.m,N=t.n,Z=t.o,k=t.p,x=t.q,j=t.r,W=t.s,P=t.t,z=t.u,E=t.v,X=t.w,C=t.x,G=t.y,L=t.z,Y=t.A,J=t.B,H=t.C,Q=22384,$=5265264,K=0.0;function q(){Qd();$d()}function ee(){te(0);return}function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o[i>>2]=o[e>>2];o[e>>2]=t;t=i+4|0;r=e+4|0;s=o[t>>2]|0;o[t>>2]=o[r>>2];o[r>>2]=s;he(i);r=Hp(352)|0;de(r,o[e>>2]|0);s=e+8|0;o[c>>2]=0;o[a>>2]=o[c>>2];_e(i,r,a);r=o[i>>2]|0;o[i>>2]=o[s>>2];o[s>>2]=r;s=i+4|0;r=e+12|0;t=o[s>>2]|0;o[s>>2]=o[r>>2];o[r>>2]=t;Te(i);Q=n;return}function ne(e,t){e=e|0;t=t|0;Jr(o[e+8>>2]|0,t);return}function ie(e){e=e|0;e=(Na(o[e+8>>2]|0)|0)+107|0;return s[e>>0]|s[e+1>>0]<<8|s[e+2>>0]<<16|s[e+3>>0]<<24|0}function oe(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,s=0,a=0,c=0;n=Q;Q=Q+32|0;s=n+16|0;i=n+8|0;a=n;c=Hp(12)|0;Za(c,t,r);o[a>>2]=0;o[s>>2]=o[a>>2];Wa(i,c,s);c=o[i>>2]|0;o[i>>2]=o[e>>2];o[e>>2]=c;c=i+4|0;r=e+4|0;t=o[c>>2]|0;o[c>>2]=o[r>>2];o[r>>2]=t;Pa(i);r=e+8|0;t=Hp(12)|0;ka(t,o[e>>2]|0);o[a>>2]=0;o[s>>2]=o[a>>2];La(i,t,s);t=o[i>>2]|0;o[i>>2]=o[r>>2];o[r>>2]=t;t=i+4|0;a=e+12|0;c=o[t>>2]|0;o[t>>2]=o[a>>2];o[a>>2]=c;Ya(i);xa(i,o[r>>2]|0);r=e+16|0;a=o[i>>2]|0;c=i+4|0;t=o[c>>2]|0;o[i>>2]=0;o[c>>2]=0;o[s>>2]=o[r>>2];o[r>>2]=a;r=e+20|0;o[s+4>>2]=o[r>>2];o[r>>2]=t;ja(s);ja(i);Q=n;return}function se(e,t){e=e|0;t=t|0;var r=0;e=e+16|0;r=o[e>>2]|0;e:do{if(r|0)switch(t|0){case 4:{fc(r);break e}case 8:{hc(r);hc(o[e>>2]|0);break e}default:break e}}while(0);return}function ae(e,t){e=e|0;t=t|0;var r=0;r=e+16|0;e=o[r>>2]|0;e:do{if(e|0){switch(t|0){case 1:{qc(e);break e}case 2:{eu(e);break e}case 8:{fc(e);e=o[r>>2]|0;break}case 4:break;default:break e}fc(e)}}while(0);return}function ce(e,t){e=e|0;t=t|0;var r=0;r=e+16|0;e=o[r>>2]|0;e:do{if(e|0){switch(t|0){case 1:{Zu(e);break e}case 2:{ku(e);break e}case 8:{hc(e);e=o[r>>2]|0;break}case 4:break;default:break e}hc(e)}}while(0);return}function ue(e,t){e=e|0;t=t|0;e=o[e+16>>2]|0;if(e|0)zb[o[o[e>>2]>>2]&63](e,t)|0;return}function le(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=t;o[e+4>>2]=r;o[e+8>>2]=0;n[e+12>>0]=0;n[e+13>>0]=0;o[e+16>>2]=0;return}function de(e,t){e=e|0;t=t|0;o[e>>2]=t;je(e+4|0,t);We(e+247|0);o[e+288>>2]=0;o[e+292>>2]=0;o[e+296>>2]=0;Pe(e+300|0);t=e+312|0;o[t>>2]=0;o[t+4>>2]=0;o[t+8>>2]=0;o[t+12>>2]=0;ze(e+328|0);Ee(e);return}function fe(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4296;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;Ae(e,n);Q=r;return}function he(e){e=e|0;var t=0,r=0;e=o[e+4>>2]|0;if(e|0?(r=e+4|0,t=o[r>>2]|0,o[r>>2]=t+-1,(t|0)==0):0){Cb[o[(o[e>>2]|0)+8>>2]&255](e);ay(e)}return}function Ae(e,t){e=e|0;t=t|0;return}function pe(e){e|0;V(e|0)|0;rp()}function ye(e){e=e|0;sy(e);ep(e);return}function be(e){e=e|0;e=o[e+12>>2]|0;if(e|0)ep(e);return}function me(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==6407?e+12|0:0)|0}function ge(e){e=e|0;ve(e,16);return}function ve(e,t){e=e|0;t=t|0;Be(e);return}function Be(e){e=e|0;ep(e);return}function _e(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4324;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;we(e,n);Q=r;return}function Te(e){e=e|0;var t=0,r=0;e=o[e+4>>2]|0;if(e|0?(r=e+4|0,t=o[r>>2]|0,o[r>>2]=t+-1,(t|0)==0):0){Cb[o[(o[e>>2]|0)+8>>2]&255](e);ay(e)}return}function we(e,t){e=e|0;t=t|0;return}function Ve(e){e=e|0;sy(e);ep(e);return}function Ie(e){e=e|0;e=o[e+12>>2]|0;if(e|0){Se(e);ep(e)}return}function Fe(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==6605?e+12|0:0)|0}function Ue(e){e=e|0;ve(e,16);return}function Se(e){e=e|0;Me(e+320|0);Oe(e+312|0);Re(e+300|0);ke(e+288|0);De(e+247|0);Ne(e+4|0);return}function Me(e){e=e|0;var t=0,r=0;e=o[e+4>>2]|0;if(e|0?(r=e+4|0,t=o[r>>2]|0,o[r>>2]=t+-1,(t|0)==0):0){Cb[o[(o[e>>2]|0)+8>>2]&255](e);ay(e)}return}function Oe(e){e=e|0;var t=0,r=0;e=o[e+4>>2]|0;if(e|0?(r=e+4|0,t=o[r>>2]|0,o[r>>2]=t+-1,(t|0)==0):0){Cb[o[(o[e>>2]|0)+8>>2]&255](e);ay(e)}return}function Re(e){e=e|0;Ze(e);return}function De(e){e=e|0;e=e+34|0;e=s[e>>0]|s[e+1>>0]<<8|s[e+2>>0]<<16|s[e+3>>0]<<24;if(e|0)$p(e);return}function Ne(e){e=e|0;xe(o[e+12>>2]|0);return}function Ze(e){e=e|0;var t=0,r=0;t=o[e>>2]|0;r=t;if(t|0){o[e+4>>2]=r;ve(t,(o[e+8>>2]|0)-r|0)}return}function ke(e){e=e|0;var t=0,r=0;t=o[e>>2]|0;r=t;if(t|0){o[e+4>>2]=r;ve(t,(o[e+8>>2]|0)-r|0)}return}function xe(e){e=e|0;Hy(o[e+-4>>2]|0);return}function je(e,t){e=e|0;t=t|0;o[e>>2]=t;o[e+4>>2]=0;o[e+8>>2]=0;o[e+12>>2]=Xe(1048576)|0;return}function We(e){e=e|0;var t=0;t=e+32|0;n[t>>0]=0;n[t+1>>0]=0;e=e+34|0;n[e>>0]=0;n[e+1>>0]=0;n[e+2>>0]=0;n[e+3>>0]=0;return}function Pe(e){e=e|0;o[e>>2]=0;o[e+4>>2]=0;o[e+8>>2]=0;return}function ze(e){e=e|0;o[e>>2]=0;o[e+4>>2]=0;o[e+8>>2]=0;o[e+12>>2]=0;e=e+16|0;o[e>>2]=-1;o[e+4>>2]=-1;return}function Ee(e){e=e|0;var t=0,r=0,i=0,s=0,a=0,c=0;c=Q;Q=Q+64|0;s=c+32|0;r=c+56|0;t=c+16|0;a=c;Ce(o[e>>2]|0,r,4);nt(s,r,r+4|0);r=rt(6693)|0;i=n[s+11>>0]|0;if((r|0)==((i<<24>>24<0?o[s+4>>2]|0:i&255)|0)){i=(wy(s,0,-1,6693,r)|0)==0;gy(s);if(i){r=o[e>>2]|0;o[t>>2]=0;o[t+4>>2]=0;o[t+8>>2]=0;o[t+12>>2]=0;o[s>>2]=o[t>>2];o[s+4>>2]=o[t+4>>2];o[s+8>>2]=o[t+8>>2];o[s+12>>2]=o[t+12>>2];Le(r,s);r=e+20|0;Ce(o[e>>2]|0,r,227);Ye(e,r);i=Je()|0;t=o[i>>2]|0;i=o[i+4>>2]|0;if((t|0)!=(i|0))do{He(s,t);Qe(s,r);$e(s);t=t+24|0}while((t|0)!=(i|0));Ke(e);qe(e);et(o[e>>2]|0);i=o[e>>2]|0;t=(o[e+116>>2]|0)+8|0;r=a;o[r>>2]=0;o[r+4>>2]=0;r=a+8|0;o[r>>2]=t;o[r+4>>2]=0;o[s>>2]=o[a>>2];o[s+4>>2]=o[a+4>>2];o[s+8>>2]=o[a+8>>2];o[s+12>>2]=o[a+12>>2];Le(i,s);tt(e+4|0);Q=c;return}}else gy(s);c=w(8)|0;Ge(c);I(c|0,2592,8)}function Xe(e){e=e|0;var t=0;t=Jy(e+68|0)|0;e=t+68&-64;o[e+-4>>2]=t;return e|0}function Ce(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0,c=0,u=0,l=0;c=e+13|0;if(!(n[c>>0]|0)){a=e+4|0;i=o[a>>2]|0;u=e+8|0;s=o[u>>2]|0;l=i-s|0;r=(l|0)<(r|0)?l:r;if(r){fb(t|0,(o[e>>2]|0)+s|0,r|0)|0;s=o[u>>2]|0;i=o[a>>2]|0}l=s+r|0;o[u>>2]=l;o[e+16>>2]=r;if((l|0)>=(i|0))n[c>>0]=1}else n[e+12>>0]=1;return}function Ge(e){e=e|0;Ay(e,6791);o[e>>2]=4352;return}function Le(e,t){e=e|0;t=t|0;var r=0,i=0,s=0;s=t+8|0;t=o[s>>2]|0;s=o[s+4>>2]|0;r=o[e+4>>2]|0;i=((r|0)<0)<<31>>31;if((s|0)<(i|0)|(s|0)==(i|0)&t>>>0<r>>>0)o[e+8>>2]=t;else n[e+12>>0]=1;return}function Ye(e,t){e=e|0;t=t|0;var r=0.0,i=0.0,o=0,s=0.0,a=0,c=0.0,d=0,f=0.0,h=0,A=0.0;h=t+179|0;n[l>>0]=n[h>>0];n[l+1>>0]=n[h+1>>0];n[l+2>>0]=n[h+2>>0];n[l+3>>0]=n[h+3>>0];n[l+4>>0]=n[h+4>>0];n[l+5>>0]=n[h+5>>0];n[l+6>>0]=n[h+6>>0];n[l+7>>0]=n[h+7>>0];f=+u[l>>3];a=t+187|0;n[l>>0]=n[a>>0];n[l+1>>0]=n[a+1>>0];n[l+2>>0]=n[a+2>>0];n[l+3>>0]=n[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]=n[l+5>>0];n[d+6>>0]=n[l+6>>0];n[d+7>>0]=n[l+7>>0];u[l>>3]=c;n[a>>0]=n[l>>0];n[a+1>>0]=n[l+1>>0];n[a+2>>0]=n[l+2>>0];n[a+3>>0]=n[l+3>>0];n[a+4>>0]=n[l+4>>0];n[a+5>>0]=n[l+5>>0];n[a+6>>0]=n[l+6>>0];n[a+7>>0]=n[l+7>>0];u[l>>3]=s;n[o>>0]=n[l>>0];n[o+1>>0]=n[l+1>>0];n[o+2>>0]=n[l+2>>0];n[o+3>>0]=n[l+3>>0];n[o+4>>0]=n[l+4>>0];n[o+5>>0]=n[l+5>>0];n[o+6>>0]=n[l+6>>0];n[o+7>>0]=n[l+7>>0];u[l>>3]=i;n[e>>0]=n[l>>0];n[e+1>>0]=n[l+1>>0];n[e+2>>0]=n[l+2>>0];n[e+3>>0]=n[l+3>>0];n[e+4>>0]=n[l+4>>0];n[e+5>>0]=n[l+5>>0];n[e+6>>0]=n[l+6>>0];n[e+7>>0]=n[l+7>>0];u[l>>3]=r;n[t>>0]=n[l>>0];n[t+1>>0]=n[l+1>>0];n[t+2>>0]=n[l+2>>0];n[t+3>>0]=n[l+3>>0];n[t+4>>0]=n[l+4>>0];n[t+5>>0]=n[l+5>>0];n[t+6>>0]=n[l+6>>0];n[t+7>>0]=n[l+7>>0];return}function Je(){var e=0,t=0,r=0,i=0,s=0,a=0,c=0,u=0;s=Q;Q=Q+48|0;r=s+24|0;i=s;e=s+44|0;if((n[21440]|0)==0?kp(21440)|0:0){o[5374]=0;o[5375]=0;o[5376]=0;Cp(21440)}if((n[21448]|0)==0?kp(21448)|0:0)Cp(21448);if((o[5374]|0)==(o[5375]|0)){cy(21508);if((o[5374]|0)==(o[5375]|0)){n[r>>0]=n[e>>0]|0;st(i,r);e=o[5375]|0;do{if(e>>>0>=(o[5376]|0)>>>0){e=((e-(o[5374]|0)|0)/24|0)+1|0;t=At(21496)|0;if(t>>>0<e>>>0)Yy(21496);else{a=o[5374]|0;u=((o[5376]|0)-a|0)/24|0;c=u<<1;dt(r,u>>>0<t>>>1>>>0?c>>>0<e>>>0?e:c:t,((o[5375]|0)-a|0)/24|0,21504);t=r+8|0;ut(o[t>>2]|0,i);o[t>>2]=(o[t>>2]|0)+24;ft(21496,r);ht(r);break}}else{at(r,21496,1);u=r+4|0;ut(o[u>>2]|0,i);o[u>>2]=(o[u>>2]|0)+24;ct(r)}}while(0);$e(i)}uy(21508)}Q=s;return 21496}function He(e,t){e=e|0;t=t|0;var r=0,n=0;r=t+16|0;n=o[r>>2]|0;do{if(n){if((t|0)==(n|0)){n=lt(e)|0;o[e+16>>2]=n;r=o[r>>2]|0;Gb[o[(o[r>>2]|0)+12>>2]&15](r,n);break}else{o[e+16>>2]=Wb[o[(o[n>>2]|0)+8>>2]&15](n)|0;break}}else o[e+16>>2]=0}while(0);return}function Qe(e,t){e=e|0;t=t|0;e=o[e+16>>2]|0;if(!e){t=w(4)|0;o[t>>2]=0;Mt(t);I(t|0,4168,131)}else{Gb[o[(o[e>>2]|0)+24>>2]&15](e,t);return}}function $e(e){e=e|0;var t=0;t=o[e+16>>2]|0;if((e|0)!=(t|0)){if(t|0)Cb[o[(o[t>>2]|0)+20>>2]&255](t)}else Cb[o[(o[t>>2]|0)+16>>2]&255](t);return}function Ke(e){e=e|0;var t=0,r=0,i=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0,y=0;y=Q;Q=Q+96|0;c=y+16|0;A=y;d=y+72|0;u=o[e>>2]|0;f=a[e+114>>1]|0;h=A;o[h>>2]=0;o[h+4>>2]=0;h=A+8|0;o[h>>2]=f;o[h+4>>2]=0;o[c>>2]=o[A>>2];o[c+4>>2]=o[A+4>>2];o[c+8>>2]=o[A+8>>2];o[c+12>>2]=o[A+12>>2];Le(u,c);u=e+120|0;e:do{if(o[u>>2]|0){l=c+2|0;f=c+16|0;h=c+20|0;A=c+18|0;r=0;while(1){if(!(Ot(o[e>>2]|0)|0))break e;if(Rt(o[e>>2]|0)|0)break e;Ce(o[e>>2]|0,c,54);t=7277;i=l;while(1){if((n[i>>0]|0)!=(n[t>>0]|0))break;i=i+1|0;if((i|0)==(f|0)){p=8;break}else t=t+1|0}if((p|0)==8?(p=0,(s[A>>0]|s[A+1>>0]<<8)<<16>>16==22204):0)break;Nt(o[e>>2]|0,(s[h>>0]|s[h+1>>0]<<8)&65535,0,1);r=r+1|0;if(r>>>0>=(o[u>>2]|0)>>>0)break e}A=(s[h>>0]|s[h+1>>0]<<8)&65535;p=Qp(A)|0;Ce(o[e>>2]|0,p,A);Dt(e,p);ep(p);p=e+125|0;kt(d,e+247|0,(s[p>>0]|s[p+1>>0]<<8)&65535);xt(e+300|0,d)|0;Re(d);Q=y;return}}while(0);y=w(8)|0;Zt(y);I(y|0,2672,8)}function qe(e){e=e|0;var t=0,r=0,n=0,i=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0;h=Q;Q=Q+176|0;i=h+40|0;a=h+24|0;t=h+16|0;n=h;l=h+152|0;d=h+136|0;f=h+56|0;u=o[e>>2]|0;c=e+116|0;A=o[c>>2]|0;r=a;o[r>>2]=0;o[r+4>>2]=0;r=a+8|0;o[r>>2]=A;o[r+4>>2]=0;o[i>>2]=o[a>>2];o[i+4>>2]=o[a+4>>2];o[i+8>>2]=o[a+8>>2];o[i+12>>2]=o[a+12>>2];Le(u,i);u=t;o[u>>2]=0;o[u+4>>2]=0;Ce(o[e>>2]|0,t,8);if(!(Ot(o[e>>2]|0)|0)){A=w(8)|0;Kt(A);I(A|0,2704,8)}r=t;t=o[r>>2]|0;r=o[r+4>>2]|0;if((t|0)==-1&(r|0)==-1){A=w(8)|0;qt(A,7488);I(A|0,2720,8)}A=o[e>>2]|0;u=n;o[u>>2]=0;o[u+4>>2]=0;u=n+8|0;o[u>>2]=t;o[u+4>>2]=r;o[i>>2]=o[n>>2];o[i+4>>2]=o[n+4>>2];o[i+8>>2]=o[n+8>>2];o[i+12>>2]=o[n+12>>2];Le(A,i);if(!(Ot(o[e>>2]|0)|0)){A=w(8)|0;Kt(A);I(A|0,2704,8)}Ce(o[e>>2]|0,i,8);if(!(Ot(o[e>>2]|0)|0)){A=w(8)|0;Kt(A);I(A|0,2704,8)}if(o[i>>2]|0){A=w(8)|0;er(A);I(A|0,2736,8)}a=e+288|0;u=e+292|0;o[u>>2]=o[a>>2];A=e+259|0;if((s[A>>0]|s[A+1>>0]<<8|s[A+2>>0]<<16|s[A+3>>0]<<24|0)==-1){A=w(8)|0;qt(A,7606);I(A|0,2720,8)}n=i+4|0;tr(a,(o[n>>2]|0)+1|0);A=o[a>>2]|0;o[A>>2]=(o[c>>2]|0)+8;o[A+4>>2]=0;if((o[n>>2]|0)>>>0>1){je(l,o[e>>2]|0);rr(d,l);nr(f,32,2,8,0);ir(d);or(f);if(!(o[n>>2]|0)){a=o[a>>2]|0;r=a}else{r=1;do{if(r>>>0>1)t=o[(o[a>>2]|0)+(r+-1<<3)>>2]|0;else t=0;c=sr(f,d,t,1)|0;t=o[a>>2]|0;A=t+(r<<3)|0;o[A>>2]=c;o[A+4>>2]=((c|0)<0)<<31>>31;r=r+1|0}while(r>>>0<=(o[n>>2]|0)>>>0);r=t;a=t}t=o[u>>2]|0;if(t-r>>3>>>0>1){i=t-a>>3;n=a;t=1;r=o[n>>2]|0;n=o[n+4>>2]|0;do{A=a+(t<<3)|0;u=A;r=rb(o[u>>2]|0,o[u+4>>2]|0,r|0,n|0)|0;n=T()|0;o[A>>2]=r;o[A+4>>2]=n;t=t+1|0}while(t>>>0<i>>>0)}ar(f);cr(d);Ne(l)}Q=h;return}function et(e){e=e|0;n[e+12>>0]=0;n[e+13>>0]=0;return}function tt(e){e=e|0;o[e+8>>2]=0;o[e+4>>2]=0;return}function rt(e){e=e|0;return Qh(e)|0}function nt(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0,c=0,u=0,l=0;c=Q;Q=Q+16|0;s=t;a=c;i=r-s|0;if(i>>>0>4294967279)py(e);if(i>>>0<11)n[e+11>>0]=i;else{l=i+16&-16;u=Hp(l)|0;o[e>>2]=u;o[e+8>>2]=l|-2147483648;o[e+4>>2]=i;e=u}if((t|0)!=(r|0)){s=r-s|0;i=e;while(1){it(i,t);t=t+1|0;if((t|0)==(r|0))break;else i=i+1|0}e=e+s|0}n[a>>0]=0;it(e,a);Q=c;return}function it(e,t){e=e|0;t=t|0;n[e>>0]=n[t>>0]|0;return}function ot(e){e=e|0;pp(e);ep(e);return}function st(e,t){e=e|0;t=t|0;o[e>>2]=4372;o[e+16>>2]=e;return}function at(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=t;t=o[t+4>>2]|0;o[e+4>>2]=t;o[e+8>>2]=t+(r*24|0);return}function ct(e){e=e|0;o[(o[e>>2]|0)+4>>2]=o[e+4>>2];return}function ut(e,t){e=e|0;t=t|0;var r=0,n=0;r=t+16|0;n=o[r>>2]|0;do{if(n){if((t|0)==(n|0)){n=lt(e)|0;o[e+16>>2]=n;r=o[r>>2]|0;Gb[o[(o[r>>2]|0)+12>>2]&15](r,n);break}else{o[e+16>>2]=n;o[r>>2]=0;break}}else o[e+16>>2]=0}while(0);return}function lt(e){e=e|0;return e|0}function dt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;i=e+12|0;o[i>>2]=0;o[e+16>>2]=n;do{if(t){if(t>>>0>178956970){i=w(8)|0;fy(i,6723);o[i>>2]=5956;I(i|0,3928,123)}else{n=Hp(t*24|0)|0;break}}else n=0}while(0);o[e>>2]=n;r=n+(r*24|0)|0;o[e+8>>2]=r;o[e+4>>2]=r;o[i>>2]=n+(t*24|0);return}function ft(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0,u=0;c=o[e>>2]|0;u=e+4|0;r=o[u>>2]|0;a=t+4|0;if((r|0)==(c|0)){i=a;s=e;n=o[a>>2]|0;r=c}else{n=o[a>>2]|0;do{r=r+-24|0;ut(n+-24|0,r);n=(o[a>>2]|0)+-24|0;o[a>>2]=n}while((r|0)!=(c|0));i=a;s=e;r=o[e>>2]|0}o[s>>2]=n;o[i>>2]=r;c=t+8|0;a=o[u>>2]|0;o[u>>2]=o[c>>2];o[c>>2]=a;c=e+8|0;u=t+12|0;e=o[c>>2]|0;o[c>>2]=o[u>>2];o[u>>2]=e;o[t>>2]=o[i>>2];return}function ht(e){e=e|0;var t=0,r=0,n=0,i=0;r=o[e+4>>2]|0;n=e+8|0;t=o[n>>2]|0;if((t|0)!=(r|0))do{i=t+-24|0;o[n>>2]=i;$e(i);t=o[n>>2]|0}while((t|0)!=(r|0));t=o[e>>2]|0;if(t|0)ve(t,(o[e+12>>2]|0)-t|0);return}function At(e){e=e|0;return 178956970}function pt(e){e=e|0;ep(e);return}function yt(e){e=e|0;e=Hp(8)|0;o[e>>2]=4372;return e|0}function bt(e,t){e=e|0;t=t|0;o[t>>2]=4372;return}function mt(e){e=e|0;return}function gt(e){e=e|0;ve(e,8);return}function vt(e,t){e=e|0;t=t|0;wt(e+4|0,t);return}function Bt(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==7183?e+4|0:0)|0}function _t(e){e=e|0;return 2664}function Tt(e){e=e|0;return}function wt(e,t){e=e|0;t=t|0;Vt(e,t);return}function Vt(e,t){e=e|0;t=t|0;var r=0,i=0;e=t+104|0;t=s[e>>0]|0;r=t>>>7;i=t>>>6&1;if((r|0)==1&(i|0)!=0){i=w(8)|0;It(i);I(i|0,2632,8)}if((r|0)==(i|0)){i=w(8)|0;Ft(i);I(i|0,2648,8)}else{n[e>>0]=t&63;return}}function It(e){e=e|0;Ay(e,7076);o[e>>2]=4416;return}function Ft(e){e=e|0;Ay(e,7144);o[e>>2]=4436;return}function Ut(e){e=e|0;pp(e);ep(e);return}function St(e){e=e|0;pp(e);ep(e);return}function Mt(e){e=e|0;o[e>>2]=6092;return}function Ot(e){e=e|0;var t=0;t=e+12|0;e=(n[t>>0]|0)==0;n[t>>0]=0;return e|0}function Rt(e){e=e|0;return(n[e+13>>0]|0)!=0|0}function Dt(e,t){e=e|0;t=t|0;e=e+247|0;jt(e,t);if((s[e>>0]|s[e+1>>0]<<8)<<16>>16==2)return;else{t=w(8)|0;Wt(t);I(t|0,2688,8)}}function Nt(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var s=0,a=0;switch(i|0){case 0:break;case 2:{i=o[e+4>>2]|0;t=rb(rb(t|0,r|0,-1,-1)|0,T()|0,i|0,((i|0)<0)<<31>>31|0)|0;r=T()|0;break}case 1:{i=o[e+8>>2]|0;t=rb(i|0,((i|0)<0)<<31>>31|0,t|0,r|0)|0;r=T()|0;break}default:{r=0;t=0}}s=o[e+4>>2]|0;a=((s|0)<0)<<31>>31;i=e+12|0;if((r|0)<0|((r|0)>(a|0)|(r|0)==(a|0)&t>>>0>=s>>>0))n[i>>0]=1;else{n[i>>0]=0;o[e+8>>2]=t}return}function Zt(e){e=e|0;Ay(e,7410);o[e>>2]=4476;return}function kt(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0,c=0,u=0,l=0;a=Q;Q=Q+16|0;o=a;Pe(e);i=t+32|0;if((s[i>>0]|s[i+1>>0]<<8)<<16>>16){n=t+34|0;t=0;do{u=s[n>>0]|s[n+1>>0]<<8|s[n+2>>0]<<16|s[n+3>>0]<<24;l=u+(t*6|0)|0;c=u+(t*6|0)+2|0;u=u+(t*6|0)+4|0;Xt(o,(s[l>>0]|s[l+1>>0]<<8)&65535,(s[c>>0]|s[c+1>>0]<<8)&65535,(s[u>>0]|s[u+1>>0]<<8)&65535);Et(e,o);r=r-((s[c>>0]|s[c+1>>0]<<8)&65535)|0;t=t+1|0}while(t>>>0<((s[i>>0]|s[i+1>>0]<<8)&65535)>>>0)}if((r|0)<0){l=w(8)|0;Wt(l);I(l|0,2688,8)}if(r|0){Xt(o,0,r,2);Et(e,o)}Q=a;return}function xt(e,t){e=e|0;t=t|0;var r=0,i=0;r=Q;Q=Q+16|0;i=r+1|0;n[i>>0]=n[r>>0]|0;Qt(e,t,i);Q=r;return e|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=e+32|0;i=s[i>>0]|s[i+1>>0]<<8;n[a>>0]=i;n[a+1>>0]=i>>8;o=e+34|0;e=s[o>>0]|s[o+1>>0]<<8|s[o+2>>0]<<16|s[o+3>>0]<<24;if(!e)e=i;else{$p(e);e=s[a>>0]|s[a+1>>0]<<8}i=Qp((e&65535)*6|0)|0;n[o>>0]=i;n[o+1>>0]=i>>8;n[o+2>>0]=i>>16;n[o+3>>0]=i>>24;if(e<<16>>16?(e=t+36|0,c=s[r>>0]|s[r+1>>0]<<8,n[i>>0]=c,n[i+1>>0]=c>>8,t=t+38|0,c=i+2|0,e=s[e>>0]|s[e+1>>0]<<8,n[c>>0]=e,n[c+1>>0]=e>>8,c=i+4|0,t=s[t>>0]|s[t+1>>0]<<8,n[c>>0]=t,n[c+1>>0]=t>>8,((s[a>>0]|s[a+1>>0]<<8)&65535)>1):0){e=1;do{t=r;r=r+6|0;c=s[o>>0]|s[o+1>>0]<<8|s[o+2>>0]<<16|s[o+3>>0]<<24;u=t+8|0;i=c+(e*6|0)|0;l=s[r>>0]|s[r+1>>0]<<8;n[i>>0]=l;n[i+1>>0]=l>>8;t=t+10|0;i=c+(e*6|0)+2|0;u=s[u>>0]|s[u+1>>0]<<8;n[i>>0]=u;n[i+1>>0]=u>>8;c=c+(e*6|0)+4|0;t=s[t>>0]|s[t+1>>0]<<8;n[c>>0]=t;n[c+1>>0]=t>>8;e=e+1|0}while(e>>>0<((s[a>>0]|s[a+1>>0]<<8)&65535)>>>0)}return}function Wt(e){e=e|0;Ay(e,7354);o[e>>2]=4456;return}function Pt(e){e=e|0;pp(e);ep(e);return}function zt(e){e=e|0;pp(e);ep(e);return}function Et(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0;c=Q;Q=Q+32|0;i=c;s=e+4|0;r=o[s>>2]|0;a=e+8|0;do{if((r|0)==(o[a>>2]|0)){r=((r-(o[e>>2]|0)|0)/12|0)+1|0;n=Ht(e)|0;if(n>>>0<r>>>0)Yy(e);else{u=o[e>>2]|0;l=((o[a>>2]|0)-u|0)/12|0;a=l<<1;Lt(i,l>>>0<n>>>1>>>0?a>>>0<r>>>0?r:a:n,((o[s>>2]|0)-u|0)/12|0,e+8|0);a=i+8|0;s=o[a>>2]|0;o[s>>2]=o[t>>2];o[s+4>>2]=o[t+4>>2];o[s+8>>2]=o[t+8>>2];o[a>>2]=(o[a>>2]|0)+12;Yt(e,i);Jt(i);break}}else{Ct(i,e,1);l=i+4|0;u=o[l>>2]|0;o[u>>2]=o[t>>2];o[u+4>>2]=o[t+4>>2];o[u+8>>2]=o[t+8>>2];o[l>>2]=(o[l>>2]|0)+12;Gt(i)}}while(0);Q=c;return}function Xt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;o[e>>2]=t;o[e+4>>2]=r;o[e+8>>2]=n;return}function Ct(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=t;t=o[t+4>>2]|0;o[e+4>>2]=t;o[e+8>>2]=t+(r*12|0);return}function Gt(e){e=e|0;o[(o[e>>2]|0)+4>>2]=o[e+4>>2];return}function Lt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;i=e+12|0;o[i>>2]=0;o[e+16>>2]=n;do{if(t){if(t>>>0>357913941){i=w(8)|0;fy(i,6723);o[i>>2]=5956;I(i|0,3928,123)}else{n=Hp(t*12|0)|0;break}}else n=0}while(0);o[e>>2]=n;r=n+(r*12|0)|0;o[e+8>>2]=r;o[e+4>>2]=r;o[i>>2]=n+(t*12|0);return}function Yt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;n=o[e>>2]|0;a=e+4|0;s=t+4|0;i=(o[a>>2]|0)-n|0;r=(o[s>>2]|0)+(((i|0)/-12|0)*12|0)|0;o[s>>2]=r;if((i|0)>0){db(r|0,n|0,i|0)|0;n=s;r=o[s>>2]|0}else n=s;s=o[e>>2]|0;o[e>>2]=r;o[n>>2]=s;s=t+8|0;i=o[a>>2]|0;o[a>>2]=o[s>>2];o[s>>2]=i;s=e+8|0;a=t+12|0;e=o[s>>2]|0;o[s>>2]=o[a>>2];o[a>>2]=e;o[t>>2]=o[n>>2];return}function Jt(e){e=e|0;var t=0,r=0,n=0;t=o[e+4>>2]|0;r=e+8|0;n=o[r>>2]|0;if((n|0)!=(t|0))o[r>>2]=n+(~(((n+-12-t|0)>>>0)/12|0)*12|0);t=o[e>>2]|0;if(t|0)ve(t,(o[e+12>>2]|0)-t|0);return}function Ht(e){e=e|0;return 357913941}function Qt(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;$t(e);o[e>>2]=o[t>>2];r=t+4|0;o[e+4>>2]=o[r>>2];n=t+8|0;o[e+8>>2]=o[n>>2];o[n>>2]=0;o[r>>2]=0;o[t>>2]=0;return}function $t(e){e=e|0;var t=0,r=0,n=0,i=0;t=o[e>>2]|0;r=t;if(t|0){n=e+4|0;o[n>>2]=r;i=e+8|0;ve(t,(o[i>>2]|0)-r|0);o[i>>2]=0;o[n>>2]=0;o[e>>2]=0}return}function Kt(e){e=e|0;Ay(e,7660);o[e>>2]=4496;return}function qt(e,t){e=e|0;t=t|0;Ay(e,t);o[e>>2]=4516;return}function er(e){e=e|0;Ay(e,7704);o[e>>2]=4536;return}function tr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0;r=e+4|0;i=o[e>>2]|0;n=(o[r>>2]|0)-i>>3;if(n>>>0>=t>>>0){if(n>>>0>t>>>0)o[r>>2]=i+(t<<3)}else fr(e,t-n|0);return}function rr(e,t){e=e|0;t=t|0;o[e>>2]=t;o[e+4>>2]=0;o[e+8>>2]=-1;return}function nr(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var s=0;o[e+4>>2]=t;o[e+8>>2]=r;o[e+12>>2]=n;o[e+16>>2]=i;o[e+36>>2]=0;o[e+40>>2]=0;o[e+44>>2]=0;Tr(e+48|0);o[e+68>>2]=0;o[e+72>>2]=0;o[e+76>>2]=0;do{if(!i){r=e+20|0;if((t+-1|0)>>>0<31){o[r>>2]=t;i=1<<t;o[e+24>>2]=i;r=i>>>1;o[e+28>>2]=0-r;r=i+-1-r|0;break}else{o[r>>2]=32;o[e+24>>2]=0;o[e+28>>2]=-2147483648;r=2147483647;break}}else{n=e+20|0;o[n>>2]=0;o[e+24>>2]=i;r=i;s=0;while(1){r=r>>>1;t=s+1|0;if(!r)break;else s=t}o[n>>2]=(1<<s|0)==(i|0)?s:t;r=i>>>1;o[e+28>>2]=0-r;r=i+-1-r|0}}while(0);o[e+32>>2]=r;o[e>>2]=0;return}function ir(e){e=e|0;var t=0;t=((Ir(o[e>>2]|0)|0)&255)<<24;t=((Ir(o[e>>2]|0)|0)&255)<<16|t;t=t|((Ir(o[e>>2]|0)|0)&255)<<8;o[e+4>>2]=t|(Ir(o[e>>2]|0)|0)&255;return}function or(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0,y=0,b=0,m=0,g=0;y=Q;Q=Q+64|0;A=y+44|0;p=y;l=e+36|0;d=e+40|0;e:do{if((o[l>>2]|0)==(o[d>>2]|0)){f=e+8|0;t:do{if(!(o[f>>2]|0))h=e+20|0;else{i=e+20|0;s=e+44|0;a=A+4|0;c=e+44|0;u=A+8|0;n=0;while(1){Or(p,(o[i>>2]|0)+1|0,0,0);t=o[d>>2]|0;if(t>>>0<(o[s>>2]|0)>>>0){Rr(A,l,1);Nr(o[a>>2]|0,p);o[a>>2]=(o[a>>2]|0)+44;Dr(A)}else{t=((t-(o[l>>2]|0)|0)/44|0)+1|0;r=jr(l)|0;if(r>>>0<t>>>0)break;b=o[l>>2]|0;g=((o[s>>2]|0)-b|0)/44|0;m=g<<1;Zr(A,g>>>0<r>>>1>>>0?m>>>0<t>>>0?t:m:r,((o[d>>2]|0)-b|0)/44|0,c);Nr(o[u>>2]|0,p);o[u>>2]=(o[u>>2]|0)+44;kr(l,A);xr(A)}Vr(p);n=n+1|0;if(n>>>0>=(o[f>>2]|0)>>>0){h=i;break t}}Yy(l)}}while(0);if(o[h>>2]|0){a=e+12|0;c=e+68|0;u=e+72|0;l=e+76|0;d=A+4|0;i=e+76|0;s=A+8|0;n=1;while(1){t=o[a>>2]|0;Or(p,1<<(n>>>0>t>>>0?t:n),0,0);t=o[u>>2]|0;if(t>>>0<(o[l>>2]|0)>>>0){Rr(A,c,1);Nr(o[d>>2]|0,p);o[d>>2]=(o[d>>2]|0)+44;Dr(A)}else{t=((t-(o[c>>2]|0)|0)/44|0)+1|0;r=jr(c)|0;if(r>>>0<t>>>0)break;g=o[c>>2]|0;b=((o[l>>2]|0)-g|0)/44|0;m=b<<1;Zr(A,b>>>0<r>>>1>>>0?m>>>0<t>>>0?t:m:r,((o[u>>2]|0)-g|0)/44|0,i);Nr(o[s>>2]|0,p);o[s>>2]=(o[s>>2]|0)+44;kr(c,A);xr(A)}Vr(p);n=n+1|0;if(n>>>0>(o[h>>2]|0)>>>0)break e}Yy(c)}}}while(0);Q=y;return}function sr(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;r=(zr(e,t,(o[e+36>>2]|0)+(n*44|0)|0)|0)+r|0;t=o[e+24>>2]|0;if((r|0)<0)return r+t|0;else return r-(r>>>0<t>>>0?0:t)|0;return 0}function ar(e){e=e|0;wr(e+68|0);wr(e+36|0);return}function cr(e){e=e|0;return}function ur(e){e=e|0;pp(e);ep(e);return}function lr(e){e=e|0;pp(e);ep(e);return}function dr(e){e=e|0;pp(e);ep(e);return}function fr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0;c=Q;Q=Q+32|0;i=c;s=e+8|0;a=e+4|0;r=o[a>>2]|0;do{if((o[s>>2]|0)-r>>3>>>0<t>>>0){r=(r-(o[e>>2]|0)>>3)+t|0;n=vr(e)|0;if(n>>>0<r>>>0)Yy(e);else{u=o[e>>2]|0;l=(o[s>>2]|0)-u|0;s=l>>2;Ar(i,l>>3>>>0<n>>>1>>>0?s>>>0<r>>>0?r:s:n,(o[a>>2]|0)-u>>3,e+8|0);pr(i,t);yr(e,i);br(i);break}}else hr(e,t)}while(0);Q=c;return}function hr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0;i=Q;Q=Q+16|0;n=i;mr(n,e,t);e=n+4|0;t=o[e>>2]|0;r=o[n+8>>2]|0;if((t|0)!=(r|0)){r=r+-8-t|0;hb(t|0,0,r+8&-8|0)|0;o[e>>2]=t+((r>>>3)+1<<3)}gr(n);Q=i;return}function Ar(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;i=e+12|0;o[i>>2]=0;o[e+16>>2]=n;do{if(t){if(t>>>0>536870911){i=w(8)|0;fy(i,6723);o[i>>2]=5956;I(i|0,3928,123)}else{n=Hp(t<<3)|0;break}}else n=0}while(0);o[e>>2]=n;r=n+(r<<3)|0;o[e+8>>2]=r;o[e+4>>2]=r;o[i>>2]=n+(t<<3);return}function pr(e,t){e=e|0;t=t|0;var r=0,n=0;n=Q;Q=Q+16|0;r=n;Br(r,e+8|0,t);e=o[r>>2]|0;t=o[r+4>>2]|0;if((e|0)!=(t|0)){t=t+-8-e|0;hb(e|0,0,t+8&-8|0)|0;o[r>>2]=e+((t>>>3)+1<<3)}_r(r);Q=n;return}function yr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;n=o[e>>2]|0;a=e+4|0;s=t+4|0;i=(o[a>>2]|0)-n|0;r=(o[s>>2]|0)+(0-(i>>3)<<3)|0;o[s>>2]=r;if((i|0)>0){db(r|0,n|0,i|0)|0;n=s;r=o[s>>2]|0}else n=s;s=o[e>>2]|0;o[e>>2]=r;o[n>>2]=s;s=t+8|0;i=o[a>>2]|0;o[a>>2]=o[s>>2];o[s>>2]=i;s=e+8|0;a=t+12|0;e=o[s>>2]|0;o[s>>2]=o[a>>2];o[a>>2]=e;o[t>>2]=o[n>>2];return}function br(e){e=e|0;var t=0,r=0,n=0;t=o[e+4>>2]|0;r=e+8|0;n=o[r>>2]|0;if((n|0)!=(t|0))o[r>>2]=n+(~((n+-8-t|0)>>>3)<<3);t=o[e>>2]|0;if(t|0)ve(t,(o[e+12>>2]|0)-t|0);return}function mr(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=t;t=o[t+4>>2]|0;o[e+4>>2]=t;o[e+8>>2]=t+(r<<3);return}function gr(e){e=e|0;o[(o[e>>2]|0)+4>>2]=o[e+4>>2];return}function vr(e){e=e|0;return 536870911}function Br(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=o[t>>2];o[e+4>>2]=(o[t>>2]|0)+(r<<3);o[e+8>>2]=t;return}function _r(e){e=e|0;o[o[e+8>>2]>>2]=o[e>>2];return}function Tr(e){e=e|0;o[e+12>>2]=1;o[e+16>>2]=2;o[e+8>>2]=4096;o[e+4>>2]=4;o[e>>2]=4;return}function wr(e){e=e|0;var t=0,r=0,n=0;r=o[e>>2]|0;if(r|0){n=e+4|0;t=o[n>>2]|0;if((t|0)==(r|0))t=r;else{do{t=t+-44|0;Vr(t)}while((t|0)!=(r|0));t=o[e>>2]|0}o[n>>2]=r;ve(t,(o[e+8>>2]|0)-t|0)}return}function Vr(e){e=e|0;var t=0;t=o[e+8>>2]|0;if(t|0)xe(t);t=o[e+12>>2]|0;if(t|0)xe(t);t=o[e+16>>2]|0;if(t|0)xe(t);return}function Ir(e){e=e|0;var t=0,r=0;r=e+4|0;t=o[r>>2]|0;if((t|0)>=(o[e+8>>2]|0)){Fr(e);t=o[r>>2]|0}e=o[e+12>>2]|0;o[r>>2]=t+1;return n[e+t>>0]|0}function Fr(e){e=e|0;var t=0;o[e+4>>2]=0;Ce(o[e>>2]|0,o[e+12>>2]|0,1048576);t=Ur(o[e>>2]|0)|0;o[e+8>>2]=t;if(!t){t=w(8)|0;Sr(t);I(t|0,2752,8)}else return}function Ur(e){e=e|0;return o[e+16>>2]|0}function Sr(e){e=e|0;Ay(e,7769);o[e>>2]=4556;return}function Mr(e){e=e|0;pp(e);ep(e);return}function Or(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var s=0,a=0,c=0;o[e>>2]=t;n[e+4>>0]=r&1;a=e+8|0;o[a>>2]=0;c=e+12|0;o[c>>2]=0;s=e+16|0;o[s>>2]=0;if((t+-2|0)>>>0>2046){e=w(8)|0;Ay(e,7789);I(e|0,3912,8)}o[e+32>>2]=t+-1;if(t>>>0>16&(r^1)){r=3;while(1)if(1<<r+2>>>0<t>>>0)r=r+1|0;else break;t=1<<r;o[e+36>>2]=t;o[e+40>>2]=15-r;o[s>>2]=Xe((t<<2)+8|0)|0;t=o[e>>2]|0}else{o[s>>2]=0;o[e+40>>2]=0;o[e+36>>2]=0}o[a>>2]=Xe(t<<2)|0;s=Xe(o[e>>2]<<2)|0;o[c>>2]=s;o[e+20>>2]=0;t=o[e>>2]|0;r=e+24|0;o[r>>2]=t;t=(t|0)!=0;if(!i){if(t){t=0;do{o[s+(t<<2)>>2]=1;t=t+1|0}while(t>>>0<(o[e>>2]|0)>>>0)}}else if(t){t=0;do{o[s+(t<<2)>>2]=o[i+(t<<2)>>2];t=t+1|0}while(t>>>0<(o[e>>2]|0)>>>0)}Pr(e);i=((o[e>>2]|0)+6|0)>>>1;o[r>>2]=i;o[e+28>>2]=i;return}function Rr(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=t;t=o[t+4>>2]|0;o[e+4>>2]=t;o[e+8>>2]=t+(r*44|0);return}function Dr(e){e=e|0;o[(o[e>>2]|0)+4>>2]=o[e+4>>2];return}function Nr(e,t){e=e|0;t=t|0;var r=0;o[e>>2]=o[t>>2];n[e+4>>0]=n[t+4>>0]|0;r=t+8|0;o[e+8>>2]=o[r>>2];o[e+12>>2]=o[t+12>>2];o[e+16>>2]=o[t+16>>2];o[e+20>>2]=o[t+20>>2];o[e+24>>2]=o[t+24>>2];o[e+28>>2]=o[t+28>>2];o[e+32>>2]=o[t+32>>2];o[e+36>>2]=o[t+36>>2];o[e+40>>2]=o[t+40>>2];o[r>>2]=0;o[r+4>>2]=0;o[r+8>>2]=0;return}function Zr(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;i=e+12|0;o[i>>2]=0;o[e+16>>2]=n;do{if(t){if(t>>>0>97612893){i=w(8)|0;fy(i,6723);o[i>>2]=5956;I(i|0,3928,123)}else{n=Hp(t*44|0)|0;break}}else n=0}while(0);o[e>>2]=n;r=n+(r*44|0)|0;o[e+8>>2]=r;o[e+4>>2]=r;o[i>>2]=n+(t*44|0);return}function kr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0,u=0;c=o[e>>2]|0;u=e+4|0;r=o[u>>2]|0;a=t+4|0;if((r|0)==(c|0)){i=a;s=e;n=o[a>>2]|0;r=c}else{n=o[a>>2]|0;do{r=r+-44|0;Wr(n+-44|0,r);n=(o[a>>2]|0)+-44|0;o[a>>2]=n}while((r|0)!=(c|0));i=a;s=e;r=o[e>>2]|0}o[s>>2]=n;o[i>>2]=r;c=t+8|0;a=o[u>>2]|0;o[u>>2]=o[c>>2];o[c>>2]=a;c=e+8|0;u=t+12|0;e=o[c>>2]|0;o[c>>2]=o[u>>2];o[u>>2]=e;o[t>>2]=o[i>>2];return}function xr(e){e=e|0;var t=0,r=0,n=0,i=0;r=o[e+4>>2]|0;n=e+8|0;t=o[n>>2]|0;if((t|0)!=(r|0))do{i=t+-44|0;o[n>>2]=i;Vr(i);t=o[n>>2]|0}while((t|0)!=(r|0));t=o[e>>2]|0;if(t|0)ve(t,(o[e+12>>2]|0)-t|0);return}function jr(e){e=e|0;return 97612893}function Wr(e,t){e=e|0;t=t|0;var r=0,i=0,s=0,a=0;r=o[t>>2]|0;o[e>>2]=r;n[e+4>>0]=n[t+4>>0]|0;o[e+20>>2]=o[t+20>>2];o[e+24>>2]=o[t+24>>2];o[e+28>>2]=o[t+28>>2];o[e+32>>2]=o[t+32>>2];a=e+36|0;o[a>>2]=o[t+36>>2];o[e+40>>2]=o[t+40>>2];r=r<<2;i=Xe(r)|0;o[e+8>>2]=i;s=o[e>>2]|0;if(s|0)fb(i|0,o[t+8>>2]|0,s<<2|0)|0;r=Xe(r)|0;o[e+12>>2]=r;i=o[e>>2]|0;if(i|0)fb(r|0,o[t+12>>2]|0,i<<2|0)|0;r=o[a>>2]|0;if(r){i=Xe((r<<2)+8|0)|0;o[e+16>>2]=i;r=(o[a>>2]<<2)+8|0;if(r|0)fb(i|0,o[t+16>>2]|0,r|0)|0}else o[e+16>>2]=0;return}function Pr(e){e=e|0;var t=0,r=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0,y=0;y=e+24|0;s=e+20|0;t=(o[s>>2]|0)+(o[y>>2]|0)|0;o[s>>2]=t;if(t>>>0>32768){o[s>>2]=0;if(!(o[e>>2]|0))t=0;else{i=o[e+12>>2]|0;r=0;do{h=i+(r<<2)|0;t=((o[h>>2]|0)+1|0)>>>1;o[h>>2]=t;t=(o[s>>2]|0)+t|0;o[s>>2]=t;r=r+1|0}while(r>>>0<(o[e>>2]|0)>>>0)}}h=2147483648/(t>>>0)|0;do{if((n[e+4>>0]|0)==0?(A=e+36|0,(o[A>>2]|0)!=0):0){if(o[e>>2]|0){u=o[e+8>>2]|0;l=o[e+12>>2]|0;d=e+40|0;f=e+16|0;t=0;a=0;c=0;do{r=(g(a,h)|0)>>>16;o[u+(c<<2)>>2]=r;a=(o[l+(c<<2)>>2]|0)+a|0;r=r>>>(o[d>>2]|0);if(t>>>0<r>>>0){i=c+-1|0;s=o[f>>2]|0;do{t=t+1|0;o[s+(t<<2)>>2]=i}while((t|0)!=(r|0));t=r}c=c+1|0}while(c>>>0<(o[e>>2]|0)>>>0);r=o[f>>2]|0;o[r>>2]=0;if(t>>>0>(o[A>>2]|0)>>>0){t=e;break}}else{r=o[e+16>>2]|0;o[r>>2]=0;t=0}do{t=t+1|0;o[r+(t<<2)>>2]=(o[e>>2]|0)+-1}while(t>>>0<=(o[A>>2]|0)>>>0);t=e}else p=7}while(0);if((p|0)==7)if(!(o[e>>2]|0))t=e;else{i=o[e+8>>2]|0;s=o[e+12>>2]|0;t=0;r=0;do{o[i+(t<<2)>>2]=(g(r,h)|0)>>>16;r=(o[s+(t<<2)>>2]|0)+r|0;t=t+1|0}while(t>>>0<(o[e>>2]|0)>>>0);t=e}p=((o[y>>2]|0)*5|0)>>>2;A=(o[t>>2]<<3)+48|0;p=p>>>0>A>>>0?A:p;o[y>>2]=p;o[e+28>>2]=p;return}function zr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;r=Er(t,r)|0;o[e>>2]=r;do{if(r){if(r>>>0>=32){r=o[e+28>>2]|0;break}n=o[e+12>>2]|0;if(r>>>0>n>>>0){n=r-n|0;r=Er(t,(o[e+68>>2]|0)+((r+-1|0)*44|0)|0)|0;n=r<<n|(Xr(t,n)|0)}else n=Er(t,(o[e+68>>2]|0)+((r+-1|0)*44|0)|0)|0;r=o[e>>2]|0;if((n|0)<(1<<r+-1|0)){r=n+1+(-1<<r)|0;break}else{r=n+1|0;break}}else r=Cr(t,e+48|0)|0}while(0);return r|0}function Er(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0;h=e+8|0;f=o[h>>2]|0;i=o[t+16>>2]|0;if(i){n=e+4|0;r=o[n>>2]|0;d=f>>>15;o[h>>2]=d;u=(r>>>0)/(d>>>0)|0;c=u>>>(o[t+40>>2]|0);s=o[i+(c<<2)>>2]|0;c=(o[i+(c+1<<2)>>2]|0)+1|0;a=s+1|0;l=o[t+8>>2]|0;if(c>>>0>a>>>0){i=s;s=c;do{a=(s+i|0)>>>1;c=(o[l+(a<<2)>>2]|0)>>>0>u>>>0;i=c?i:a;s=c?a:s;a=i+1|0}while(s>>>0>a>>>0);s=i}i=g(o[l+(s<<2)>>2]|0,d)|0;if((s|0)==(o[t+32>>2]|0))a=f;else a=g(o[l+(a<<2)>>2]|0,d)|0}else{l=f>>>15;o[h>>2]=l;c=o[t>>2]|0;d=o[t+8>>2]|0;n=e+4|0;r=o[n>>2]|0;u=c>>>1;i=0;a=f;s=0;do{A=g(o[d+(u<<2)>>2]|0,l)|0;f=A>>>0>r>>>0;a=f?A:a;i=f?i:A;s=f?s:u;c=f?u:c;u=(s+c|0)>>>1}while((u|0)!=(s|0))}o[n>>2]=r-i;A=a-i|0;o[h>>2]=A;if(A>>>0<16777216)Gr(e);h=(o[t+12>>2]|0)+(s<<2)|0;o[h>>2]=(o[h>>2]|0)+1;h=t+28|0;A=(o[h>>2]|0)+-1|0;o[h>>2]=A;if(!A)Pr(t);return s|0}function Xr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0;if(t>>>0>19){r=(Lr(e)|0)&65535;return(Xr(e,t+-16|0)|0)<<16|r|0}n=e+4|0;i=o[n>>2]|0;s=e+8|0;r=(o[s>>2]|0)>>>t;o[s>>2]=r;t=(i>>>0)/(r>>>0)|0;o[n>>2]=i-(g(t,r)|0);if(r>>>0<16777216)Gr(e);return t|0}function Cr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0;n=e+8|0;i=o[n>>2]|0;r=g(i>>>13,o[t+8>>2]|0)|0;s=e+4|0;a=o[s>>2]|0;c=a>>>0>=r>>>0;if(c){o[s>>2]=a-r;r=i-r|0;o[n>>2]=r}else{o[n>>2]=r;a=t+12|0;o[a>>2]=(o[a>>2]|0)+1}if(r>>>0<16777216)Gr(e);a=t+4|0;e=(o[a>>2]|0)+-1|0;o[a>>2]=e;if(!e)Yr(t);return c&1|0}function Gr(e){e=e|0;var t=0,r=0,n=0,i=0;t=e+4|0;r=e+8|0;n=o[t>>2]|0;do{n=n<<8|(Ir(o[e>>2]|0)|0)&255;o[t>>2]=n;i=o[r>>2]<<8;o[r>>2]=i}while(i>>>0<16777216);return}function Lr(e){e=e|0;var t=0,r=0,n=0,i=0;r=e+4|0;i=o[r>>2]|0;t=e+8|0;n=(o[t>>2]|0)>>>16;o[t>>2]=n;t=(i>>>0)/(n>>>0)|0;o[r>>2]=i-(g(t,n)|0);Gr(e);return t&65535|0}function Yr(e){e=e|0;var t=0,r=0,n=0,i=0,s=0;i=o[e>>2]|0;r=e+16|0;t=(o[r>>2]|0)+i|0;o[r>>2]=t;if(t>>>0>8192){n=(t+1|0)>>>1;o[r>>2]=n;s=e+12|0;t=((o[s>>2]|0)+1|0)>>>1;o[s>>2]=t;if((t|0)==(n|0)){t=n+1|0;o[r>>2]=t;r=t;t=n}else r=n}else{r=t;t=o[e+12>>2]|0}o[e+8>>2]=(g(t,2147483648/(r>>>0)|0)|0)>>>18;s=i*5|0;s=s>>>0>259?64:s>>>2;o[e>>2]=s;o[e+4>>2]=s;return}function Jr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0;f=Q;Q=Q+32|0;a=f+16|0;c=f+8|0;u=f;l=e+336|0;n=l;i=e+259|0;if(!((o[n+4>>2]|0)==0?(o[n>>2]|0)==(s[i>>0]|s[i+1>>0]<<8|s[i+2>>0]<<16|s[i+3>>0]<<24|0):0)){n=e+320|0;r=o[n>>2]|0;i=r;if(!((r|0)!=0?(o[e+312>>2]|0)!=0:0)){r=i;d=5}}else{n=e+320|0;r=o[e+320>>2]|0;d=5}if((d|0)==5){d=e+320|0;o[a>>2]=r;o[d>>2]=0;r=e+324|0;o[a+4>>2]=o[r>>2];o[r>>2]=0;Me(a);i=e+312|0;o[a>>2]=o[i>>2];o[i>>2]=0;h=e+316|0;o[a+4>>2]=o[h>>2];o[h>>2]=0;Oe(a);A=Hp(12)|0;rr(A,e+4|0);o[u>>2]=0;o[a>>2]=o[u>>2];Qr(c,A,a);A=o[c>>2]|0;o[c>>2]=o[i>>2];o[i>>2]=A;A=c+4|0;u=o[A>>2]|0;o[A>>2]=o[h>>2];o[h>>2]=u;Oe(c);Hr(c,o[i>>2]|0,e+300|0);i=o[c>>2]|0;h=c+4|0;u=o[h>>2]|0;o[c>>2]=0;o[h>>2]=0;o[a>>2]=o[d>>2];o[d>>2]=i;o[a+4>>2]=o[r>>2];o[r>>2]=u;Me(a);Me(c);r=e+328|0;u=r;u=rb(o[u>>2]|0,o[u+4>>2]|0,1,0)|0;d=T()|0;o[r>>2]=u;o[r+4>>2]=d;r=l;o[r>>2]=0;o[r+4>>2]=0;r=o[n>>2]|0}zb[o[o[r>>2]>>2]&63](r,t)|0;d=l;d=rb(o[d>>2]|0,o[d+4>>2]|0,1,0)|0;h=T()|0;A=l;o[A>>2]=d;o[A+4>>2]=h;Q=f;return}function Hr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,s=0,a=0;a=Q;Q=Q+64|0;n=a+56|0;i=a;s=rn(r)|0;if((s|0)==-1){a=w(8)|0;nn(a);I(a|0,2784,8)}r=on(r)|0;e:do{if(!r)switch(s|0){case 0:{s=Hp(4788)|0;pn(s);An(e,t,s);break e}case 1:{s=Hp(5116)|0;bn(s);yn(e,t,s);break e}case 2:{s=Hp(5104)|0;gn(s);mn(e,t,s);break e}case 3:{s=Hp(5432)|0;Bn(s);vn(e,t,s);break e}default:{o[e>>2]=0;o[e+4>>2]=0;break e}}else{sn(n,t);an(o[n>>2]|0);if((s|2|0)==3)cn(o[n>>2]|0);if((s|1|0)==3)un(o[n>>2]|0);s=o[n>>2]|0;dn(i,r);ln(s,i);fn(i);o[e>>2]=o[n>>2];s=n+4|0;o[e+4>>2]=o[s>>2];o[n>>2]=0;o[s>>2]=0;hn(n)}}while(0);Q=a;return}function Qr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4576;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;$r(e,n);Q=r;return}function $r(e,t){e=e|0;t=t|0;return}function Kr(e){e=e|0;sy(e);ep(e);return}function qr(e){e=e|0;e=o[e+12>>2]|0;if(e|0){cr(e);ep(e)}return}function en(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==7983?e+12|0:0)|0}function tn(e){e=e|0;ve(e,16);return}function rn(e){e=e|0;var t=0,r=0;t=(o[e+4>>2]|0)-(o[e>>2]|0)|0;e:do{if(((t|0)!=0?(r=((t|0)/12|0)+(((on(e)|0)!=0)<<31>>31)|0,(r|0)!=0):0)?(t=o[e>>2]|0,!(_n(t,Tn()|0)|0)):0){switch(r|0){case 1:{e=0;break e}case 2:{if(wn((o[e>>2]|0)+12|0,Vn()|0)|0){e=1;break e}if(wn((o[e>>2]|0)+12|0,In()|0)|0){e=2;break e}break}case 3:{if(wn((o[e>>2]|0)+12|0,Vn()|0)|0?(r=(o[e>>2]|0)+24|0,wn(r,In()|0)|0):0){e=3;break e}break}default:{}}e=-1}else e=-1}while(0);return e|0}function nn(e){e=e|0;Ay(e,8131);o[e>>2]=4604;return}function on(e){e=e|0;var t=0,r=0;t=o[e+4>>2]|0;if(((t|0)!=(o[e>>2]|0)?(r=t,(o[r+-12>>2]|0)==0):0)?(o[r+-4>>2]|0)==2:0)e=o[r+-8>>2]|0;else e=0;return e|0}function sn(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0;r=Q;Q=Q+16|0;n=r+4|0;s=r;i=Hp(24)|0;Un(i,t);o[s>>2]=0;o[n>>2]=o[s>>2];Sn(e,i,n);Q=r;return}function an(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0;u=Q;Q=Q+32|0;n=u+12|0;i=u;t=u+8|0;a=Hp(4792)|0;Xn(a,o[e+4>>2]|0);s=e+8|0;o[t>>2]=0;o[n>>2]=o[t>>2];Cn(i,a,n);a=e+12|0;t=o[a>>2]|0;c=e+16|0;do{if(t>>>0>=(o[c>>2]|0)>>>0){t=(t-(o[s>>2]|0)>>3)+1|0;r=Qn(s)|0;if(r>>>0<t>>>0)Yy(s);else{l=o[s>>2]|0;d=(o[c>>2]|0)-l|0;c=d>>2;Yn(n,d>>3>>>0<r>>>1>>>0?c>>>0<t>>>0?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o[c>>2]=0;o[e>>2]=0;o[d>>2]=l+8;Ln(a)}}while(0);kn(c);Q=u;return}function dn(e,t){e=e|0;t=t|0;var r=0,i=0;r=Q;Q=Q+48|0;i=r;o[e>>2]=t;n[e+4>>0]=0;Fs(e+8|0,t);Fs(e+20|0,t);Or(i,256,0,0);Us(e+32|0,t,i);Vr(i);Q=r;return}function fn(e){e=e|0;Os(e+32|0);Co(e+20|0);Co(e+8|0);return}function hn(e){e=e|0;var t=0,r=0;e=o[e+4>>2]|0;if(e|0?(r=e+4|0,t=o[r>>2]|0,o[r>>2]=t+-1,(t|0)==0):0){Cb[o[(o[e>>2]|0)+8>>2]&255](e);ay(e)}return}function An(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,s=0,a=0;n=Q;Q=Q+16|0;i=n+4|0;a=n;s=Hp(12)|0;Rs(s,t,r);o[a>>2]=0;o[i>>2]=o[a>>2];Ds(e,s,i);Q=n;return}function pn(e){e=e|0;Kn(e);Gs(e+4784|0);return}function yn(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,s=0,a=0;n=Q;Q=Q+16|0;i=n+4|0;a=n;s=Hp(12)|0;Ls(s,t,r);o[a>>2]=0;o[i>>2]=o[a>>2];Ys(e,s,i);Q=n;return}function bn(e){e=e|0;Kn(e);oa(e+4784|0);return}function mn(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,s=0,a=0;n=Q;Q=Q+16|0;i=n+4|0;a=n;s=Hp(12)|0;sa(s,t,r);o[a>>2]=0;o[i>>2]=o[a>>2];aa(e,s,i);Q=n;return}function gn(e){e=e|0;Kn(e);ga(e+4784|0);return}function vn(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,s=0,a=0;n=Q;Q=Q+16|0;i=n+4|0;a=n;s=Hp(12)|0;va(s,t,r);o[a>>2]=0;o[i>>2]=o[a>>2];Ba(e,s,i);Q=n;return}function Bn(e){e=e|0;Kn(e);Da(e+4784|0);return}function _n(e,t){e=e|0;t=t|0;return(wn(e,t)|0)^1|0}function Tn(){if((n[21456]|0)==0?kp(21456)|0:0){Xt(21536,6,20,2);Cp(21456)}return 21536}function wn(e,t){e=e|0;t=t|0;if((o[e>>2]|0)==(o[t>>2]|0)?(o[e+8>>2]|0)==(o[t+8>>2]|0):0)e=(o[e+4>>2]|0)==(o[t+4>>2]|0);else e=0;return e|0}function Vn(){if((n[21464]|0)==0?kp(21464)|0:0){Xt(21548,7,8,2);Cp(21464)}return 21548}function In(){if((n[21472]|0)==0?kp(21472)|0:0){Xt(21560,8,6,2);Cp(21472)}return 21560}function Fn(e){e=e|0;pp(e);ep(e);return}function Un(e,t){e=e|0;t=t|0;Mn(e);o[e>>2]=4624;o[e+4>>2]=t;o[e+8>>2]=0;o[e+12>>2]=0;o[e+16>>2]=0;n[e+20>>0]=1;return}function Sn(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4664;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;jn(e,n);Q=r;return}function Mn(e){e=e|0;o[e>>2]=4644;return}function On(e,t){e=e|0;t=t|0;var r=0,i=0,s=0,a=0,c=0,u=0,l=0;l=Q;Q=Q+16|0;a=l;r=o[e+8>>2]|0;c=o[e+12>>2]|0;if((r|0)!=(c|0)){u=a+4|0;do{i=o[r>>2]|0;o[a>>2]=i;s=o[r+4>>2]|0;o[u>>2]=s;if(s|0){s=s+4|0;o[s>>2]=(o[s>>2]|0)+1}t=zb[o[(o[i>>2]|0)+12>>2]&63](i,t)|0;kn(a);r=r+8|0}while((r|0)!=(c|0))}r=e+20|0;if(n[r>>0]|0){n[r>>0]=0;ir(o[e+4>>2]|0)}Q=l;return t|0}function Rn(e){e=e|0;o[e>>2]=4624;xn(e+8|0);Nn(e);return}function Dn(e){e=e|0;Rn(e);ep(e);return}function Nn(e){e=e|0;return}function Zn(e){e=e|0;H()}function kn(e){e=e|0;var t=0,r=0;e=o[e+4>>2]|0;if(e|0?(r=e+4|0,t=o[r>>2]|0,o[r>>2]=t+-1,(t|0)==0):0){Cb[o[(o[e>>2]|0)+8>>2]&255](e);ay(e)}return}function xn(e){e=e|0;var t=0,r=0,n=0;r=o[e>>2]|0;if(r|0){n=e+4|0;t=o[n>>2]|0;if((t|0)==(r|0))t=r;else{do{t=t+-8|0;kn(t)}while((t|0)!=(r|0));t=o[e>>2]|0}o[n>>2]=r;ve(t,(o[e+8>>2]|0)-t|0)}return}function jn(e,t){e=e|0;t=t|0;return}function Wn(e){e=e|0;sy(e);ep(e);return}function Pn(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+8>>2]&255](e);return}function zn(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==8546?e+12|0:0)|0}function En(e){e=e|0;ve(e,16);return}function Xn(e,t){e=e|0;t=t|0;$n(e);o[e>>2]=4692;o[e+4>>2]=t;Kn(e+8|0);return}function Cn(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4740;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function Gn(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=t;t=o[t+4>>2]|0;o[e+4>>2]=t;o[e+8>>2]=t+(r<<3);return}function Ln(e){e=e|0;o[(o[e>>2]|0)+4>>2]=o[e+4>>2];return}function Yn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;i=e+12|0;o[i>>2]=0;o[e+16>>2]=n;do{if(t){if(t>>>0>536870911){i=w(8)|0;fy(i,6723);o[i>>2]=5956;I(i|0,3928,123)}else{n=Hp(t<<3)|0;break}}else n=0}while(0);o[e>>2]=n;r=n+(r<<3)|0;o[e+8>>2]=r;o[e+4>>2]=r;o[i>>2]=n+(t<<3);return}function Jn(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0,u=0;c=o[e>>2]|0;u=e+4|0;r=o[u>>2]|0;a=t+4|0;if((r|0)==(c|0)){i=a;s=e;n=o[a>>2]|0;r=c}else{n=o[a>>2]|0;do{s=r;r=r+-8|0;o[n+-8>>2]=o[r>>2];s=s+-4|0;o[n+-4>>2]=o[s>>2];o[r>>2]=0;o[s>>2]=0;n=(o[a>>2]|0)+-8|0;o[a>>2]=n}while((r|0)!=(c|0));i=a;s=e;r=o[e>>2]|0}o[s>>2]=n;o[i>>2]=r;c=t+8|0;a=o[u>>2]|0;o[u>>2]=o[c>>2];o[c>>2]=a;c=e+8|0;u=t+12|0;e=o[c>>2]|0;o[c>>2]=o[u>>2];o[u>>2]=e;o[t>>2]=o[i>>2];return}function Hn(e){e=e|0;var t=0,r=0,n=0,i=0;r=o[e+4>>2]|0;n=e+8|0;t=o[n>>2]|0;if((t|0)!=(r|0))do{i=t+-8|0;o[n>>2]=i;kn(i);t=o[n>>2]|0}while((t|0)!=(r|0));t=o[e>>2]|0;if(t|0)ve(t,(o[e+12>>2]|0)-t|0);return}function Qn(e){e=e|0;return 536870911}function $n(e){e=e|0;o[e>>2]=4716;return}function Kn(e){e=e|0;si(e);ai(e+3980|0);ci(e+4380|0);n[e+4780>>0]=0;n[e+4781>>0]=0;return}function qn(e){e=e|0;o[e>>2]=4692;bi(e+8|0);ni(e);return}function ei(e){e=e|0;qn(e);ep(e);return}function ti(e,t){e=e|0;t=t|0;return t|0}function ri(e,t){e=e|0;t=t|0;return gi(e+8|0,o[e+4>>2]|0,t)|0}function ni(e){e=e|0;return}function ii(e){e=e|0;ni(e);ep(e);return}function oi(e,t){e=e|0;t=t|0;return t|0}function si(e){e=e|0;var t=0,r=0;di(e);fi(e+52|0);fi(e+436|0);Or(e+852|0,64,0,0);n[e+3976>>0]=0;t=e+20|0;r=t+32|0;do{i[t>>1]=0;t=t+2|0}while((t|0)<(r|0));t=Hp(44)|0;Or(t,256,0,0);o[e+896>>2]=t;t=Hp(44)|0;Or(t,256,0,0);o[e+900>>2]=t;t=e+820|0;o[t>>2]=0;o[t+4>>2]=0;o[t+8>>2]=0;o[t+12>>2]=0;o[t+16>>2]=0;o[t+20>>2]=0;o[t+24>>2]=0;o[t+28>>2]=0;t=0;do{r=Hp(44)|0;Or(r,256,0,0);o[e+904+(t<<2)>>2]=r;r=Hp(44)|0;Or(r,256,0,0);o[e+1928+(t<<2)>>2]=r;r=Hp(44)|0;Or(r,256,0,0);o[e+2952+(t<<2)>>2]=r;t=t+1|0}while(t>>>0<256);return}function ai(e){e=e|0;pi(e,16,4,8,0);pi(e+80|0,16,1,8,0);pi(e+160|0,32,2,8,0);pi(e+240|0,32,22,8,0);pi(e+320|0,32,20,8,0);return}function ci(e){e=e|0;nr(e,16,4,8,0);nr(e+80|0,16,1,8,0);nr(e+160|0,32,2,8,0);nr(e+240|0,32,22,8,0);nr(e+320|0,32,20,8,0);return}function ui(e){e=e|0;yi(e+320|0);yi(e+240|0);yi(e+160|0);yi(e+80|0);yi(e);return}function li(e){e=e|0;var t=0,r=0;t=o[e+896>>2]|0;if(t|0){Vr(t);ep(t)}t=o[e+900>>2]|0;if(t|0){Vr(t);ep(t)}r=0;do{t=o[e+904+(r<<2)>>2]|0;if(t|0){Vr(t);ep(t)}t=o[e+1928+(r<<2)>>2]|0;if(t|0){Vr(t);ep(t)}t=o[e+2952+(r<<2)>>2]|0;if(t|0){Vr(t);ep(t)}r=r+1|0}while((r|0)!=256);Vr(e+852|0);return}function di(e){e=e|0;var t=0;n[e>>0]=0;n[e+1>>0]=0;n[e+2>>0]=0;n[e+3>>0]=0;t=e+4|0;n[t>>0]=0;n[t+1>>0]=0;n[t+2>>0]=0;n[t+3>>0]=0;e=e+12|0;t=e;n[t>>0]=0;n[t+1>>0]=0;n[t+2>>0]=0;n[t+3>>0]=0;e=e+4|0;n[e>>0]=0;n[e+1>>0]=0;n[e+2>>0]=0;n[e+3>>0]=0;return}function fi(e){e=e|0;var t=0;t=e+384|0;do{hi(e);e=e+24|0}while((e|0)!=(t|0));return}function hi(e){e=e|0;Ai(e);return}function Ai(e){e=e|0;o[e>>2]=0;o[e+4>>2]=0;o[e+8>>2]=0;o[e+12>>2]=0;o[e+16>>2]=0;n[e+20>>0]=1;return}function pi(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var s=0;o[e+4>>2]=t;o[e+8>>2]=r;o[e+12>>2]=n;o[e+16>>2]=i;o[e+36>>2]=0;o[e+40>>2]=0;o[e+44>>2]=0;Tr(e+48|0);o[e+68>>2]=0;o[e+72>>2]=0;o[e+76>>2]=0;do{if(!i){r=e+20|0;if((t+-1|0)>>>0<31){o[r>>2]=t;i=1<<t;o[e+24>>2]=i;r=i>>>1;o[e+28>>2]=0-r;r=i+-1-r|0;break}else{o[r>>2]=32;o[e+24>>2]=0;o[e+28>>2]=-2147483648;r=2147483647;break}}else{n=e+20|0;o[n>>2]=0;o[e+24>>2]=i;r=i;s=0;while(1){r=r>>>1;t=s+1|0;if(!r)break;else s=t}o[n>>2]=(1<<s|0)==(i|0)?s:t;r=i>>>1;o[e+28>>2]=0-r;r=i+-1-r|0}}while(0);o[e+32>>2]=r;o[e>>2]=0;return}function yi(e){e=e|0;var t=0,r=0,n=0,i=0,s=0;s=e+36|0;r=o[s>>2]|0;n=e+40|0;t=o[n>>2]|0;if((t|0)!=(r|0))do{t=t+-44|0;Vr(t)}while((t|0)!=(r|0));o[n>>2]=r;n=e+68|0;i=o[n>>2]|0;r=e+72|0;t=o[r>>2]|0;if((t|0)!=(i|0))do{t=t+-44|0;Vr(t)}while((t|0)!=(i|0));o[r>>2]=i;wr(n);wr(s);return}function bi(e){e=e|0;mi(e+4380|0);ui(e+3980|0);li(e);return}function mi(e){e=e|0;ar(e+320|0);ar(e+240|0);ar(e+160|0);ar(e+80|0);ar(e);return}function gi(e,t,r){e=e|0;t=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-2:20)|h)|0;o[A>>2]=u;l=e+4|0;o[l>>2]=(o[l>>2]|0)+u;Ui(d,A);A=Si(f)|0;A=(Si(y)|0)+A|0;y=e+820+(c<<2)|0;A=sr(e+4700|0,t,o[y>>2]|0,(A>>>0<36?A>>>1&2147483646:18)|h)|0;o[e+8>>2]=A;o[y>>2]=A;Mi(e,r)}Q=p;return r+20|0}function vi(e){e=e|0;or(e);or(e+80|0);or(e+160|0);or(e+240|0);or(e+320|0);return}function Bi(e){e=e|0;return o[e>>2]|0}function _i(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0,c=0,u=0,l=0;l=e+4|0;i=o[l>>2]|0;u=(o[e+8>>2]|0)-i|0;u=u>>>0>r>>>0?r:u;c=e+12|0;s=(o[c>>2]|0)+i|0;a=s+u|0;if(u){i=s;s=t;while(1){n[s>>0]=n[i>>0]|0;i=i+1|0;if((i|0)==(a|0))break;else s=s+1|0}i=o[l>>2]|0}o[l>>2]=i+u;r=r-u|0;if(r|0){Fr(e);s=(o[c>>2]|0)+(o[l>>2]|0)|0;a=s+r|0;i=t+u|0;while(1){n[i>>0]=n[s>>0]|0;s=s+1|0;if((s|0)==(a|0))break;else i=i+1|0}o[l>>2]=(o[l>>2]|0)+r}return}function Ti(e,t){e=e|0;t=t|0;di(e);o[e>>2]=Oi(t)|0;o[e+4>>2]=Oi(t+4|0)|0;o[e+8>>2]=Oi(t+8|0)|0;i[e+12>>1]=Ri(t+12|0)|0;Vi(Di(t+14|0)|0,e);n[e+15>>0]=Di(t+15|0)|0;n[e+16>>0]=Ni(t+16|0)|0;n[e+17>>0]=Ni(t+17|0)|0;i[e+18>>1]=Ri(t+18|0)|0;return}function wi(e){e=e|0;return n[e+14>>0]|0}function Vi(e,t){e=e|0;t=t|0;n[t+14>>0]=e;return}function Ii(e){e=e|0;return e&255|0}function Fi(e){e=e|0;return o[e+8>>2]|0}function Ui(e,t){e=e|0;t=t|0;var r=0,i=0,s=0,a=0,c=0,u=0,l=0;l=e+20|0;do{if(!(n[l>>0]|0)){u=e+8|0;r=o[u>>2]|0;i=o[t>>2]|0;s=e+4|0;a=o[s>>2]|0;if((r|0)>=(i|0)){if((a|0)<(i|0)){o[e>>2]=a;o[s>>2]=o[t>>2]}else o[e>>2]=i;n[l>>0]=1;break}o[e>>2]=a;o[s>>2]=r;s=e+16|0;a=o[s>>2]|0;c=o[t>>2]|0;r=e+12|0;i=o[r>>2]|0;if((a|0)<(c|0)){o[u>>2]=i;o[r>>2]=a;o[s>>2]=o[t>>2];break}if((i|0)<(c|0)){o[u>>2]=i;o[r>>2]=o[t>>2];break}else{o[u>>2]=c;break}}else{s=o[t>>2]|0;c=e+8|0;r=o[c>>2]|0;a=e+12|0;i=o[a>>2]|0;if((s|0)>=(r|0)){r=e+16|0;if((s|0)<(i|0)){o[r>>2]=i;o[a>>2]=o[t>>2]}else o[r>>2]=s;n[l>>0]=0;break}o[e+16>>2]=i;o[a>>2]=r;r=o[t>>2]|0;i=o[e>>2]|0;s=e+4|0;a=o[s>>2]|0;if((r|0)<(i|0)){o[c>>2]=a;o[s>>2]=i;o[e>>2]=o[t>>2];break}if((r|0)<(a|0)){o[c>>2]=a;o[s>>2]=o[t>>2];break}else{o[c>>2]=r;break}}}while(0);return}function Si(e){e=e|0;return o[e>>2]|0}function Mi(e,t){e=e|0;t=t|0;var r=0;ki(s[e>>0]|s[e+1>>0]<<8|s[e+2>>0]<<16|s[e+3>>0]<<24,t);r=e+4|0;ki(s[r>>0]|s[r+1>>0]<<8|s[r+2>>0]<<16|s[r+3>>0]<<24,t+4|0);r=e+8|0;ki(s[r>>0]|s[r+1>>0]<<8|s[r+2>>0]<<16|s[r+3>>0]<<24,t+8|0);r=e+12|0;xi(s[r>>0]|s[r+1>>0]<<8,t+12|0);ji(wi(e)|0,t+14|0);ji(n[e+15>>0]|0,t+15|0);Wi(n[e+16>>0]|0,t+16|0);Wi(n[e+17>>0]|0,t+17|0);e=e+18|0;xi(s[e>>0]|s[e+1>>0]<<8,t+18|0);return}function Oi(e){e=e|0;return Zi(e)|0}function Ri(e){e=e|0;return(n[e+1>>0]<<8|s[e>>0])&65535|0}function Di(e){e=e|0;return n[e>>0]|0}function Ni(e){e=e|0;return n[e>>0]|0}function Zi(e){e=e|0;return(s[e+1>>0]|0)<<8|(s[e>>0]|0)|(s[e+2>>0]|0)<<16|(s[e+3>>0]|0)<<24|0}function ki(e,t){e=e|0;t=t|0;Pi(e,t);return}function xi(e,t){e=e|0;t=t|0;n[t+1>>0]=(e&65535)>>>8;n[t>>0]=e;return}function ji(e,t){e=e|0;t=t|0;n[t>>0]=e;return}function Wi(e,t){e=e|0;t=t|0;n[t>>0]=e;return}function Pi(e,t){e=e|0;t=t|0;n[t+3>>0]=e>>>24;n[t+2>>0]=e>>>16;n[t+1>>0]=e>>>8;n[t>>0]=e;return}function zi(e,t){e=e|0;t=t|0;return}function Ei(e){e=e|0;sy(e);ep(e);return}function Xi(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function Ci(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==9202?e+12|0:0)|0}function Gi(e){e=e|0;ve(e,16);return}function Li(e,t){e=e|0;t=t|0;$n(e);o[e>>2]=4768;o[e+4>>2]=t;Ji(e+8|0);return}function Yi(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4792;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function Ji(e){e=e|0;Ki(e);qi(e+164|0);eo(e+244|0);n[e+324>>0]=0;n[e+325>>0]=0;return}function Hi(e){e=e|0;o[e>>2]=4768;oo(e+8|0);ni(e);return}function Qi(e){e=e|0;Hi(e);ep(e);return}function $i(e,t){e=e|0;t=t|0;return ao(e+8|0,o[e+4>>2]|0,t)|0}function Ki(e){e=e|0;var t=0,r=0,i=0,s=0,a=0,c=0,u=0;a=Q;Q=Q+16|0;i=a;n[e>>0]=0;Or(e+4|0,516,0,0);Or(e+48|0,6,0,0);o[e+92>>2]=0;o[e+96>>2]=0;r=e+100|0;no(r);io(i);s=o[i>>2]|0;i=o[i+4>>2]|0;t=4;while(1){c=r;u=c;n[u>>0]=s;n[u+1>>0]=s>>8;n[u+2>>0]=s>>16;n[u+3>>0]=s>>24;c=c+4|0;n[c>>0]=i;n[c+1>>0]=i>>8;n[c+2>>0]=i>>16;n[c+3>>0]=i>>24;t=t+-1|0;if(!t)break;else r=r+8|0}u=e+132|0;o[u>>2]=0;o[u+4>>2]=0;o[u+8>>2]=0;o[u+12>>2]=0;o[u+16>>2]=0;o[u+20>>2]=0;o[u+24>>2]=0;o[u+28>>2]=0;Q=a;return}function qi(e){e=e|0;pi(e,32,9,8,0);return}function eo(e){e=e|0;nr(e,32,9,8,0);return}function to(e){e=e|0;yi(e);return}function ro(e){e=e|0;Vr(e+48|0);Vr(e+4|0);return}function no(e){e=e|0;var t=0;t=e+32|0;do{io(e);e=e+8|0}while((e|0)!=(t|0));return}function io(e){e=e|0;var t=0;t=e;n[t>>0]=0;n[t+1>>0]=0;n[t+2>>0]=0;n[t+3>>0]=0;e=e+4|0;n[e>>0]=0;n[e+1>>0]=0;n[e+2>>0]=0;n[e+3>>0]=0;return}function oo(e){e=e|0;so(e+244|0);to(e+164|0);ro(e);return}function so(e){e=e|0;ar(e);return}function ao(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,a=0,c=0,u=0,l=0;i=e+325|0;if(!(n[i>>0]|0)){co(e+244|0);n[i>>0]=1}if(!(n[e>>0]|0)){n[e>>0]=1;_i(Bi(t)|0,r,8);c=uo(r)|0;u=T()|0;e=e+100|0;t=e;n[t>>0]=c;n[t+1>>0]=c>>8;n[t+2>>0]=c>>16;n[t+3>>0]=c>>24;e=e+4|0;n[e>>0]=u;n[e+1>>0]=u>>8;n[e+2>>0]=u>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16;n[t+3>>0]=c>>24;o[u>>2]=l;o[e+132+(l<<2)>>2]=0;o[e+148+(o[u>>2]<<2)>>2]=0;break}if((c|0)<=511)break;o[u>>2]=(o[u>>2]|0)+c&3;ao(e,t,r)|0;break}do{if(!c){i=sr(e+244|0,t,0,7)|0;a=e+148+(o[u>>2]<<2)|0;o[a>>2]=(o[a>>2]|0)+1;a=o[u>>2]|0;if((o[e+148+(a<<2)>>2]|0)>3){o[e+132+(a<<2)>>2]=i;o[e+148+(o[u>>2]<<2)>>2]=0}}else{if((c|0)<500){i=e+244|0;a=g(o[e+132+(o[u>>2]<<2)>>2]|0,c)|0;if((c|0)<10){i=sr(i,t,a,2)|0;break}else{i=sr(i,t,a,3)|0;break}}if((c|0)==500){i=sr(e+244|0,t,(o[e+132+(o[u>>2]<<2)>>2]|0)*500|0,4)|0;a=e+148+(o[u>>2]<<2)|0;o[a>>2]=(o[a>>2]|0)+1;a=o[u>>2]|0;if((o[e+148+(a<<2)>>2]|0)<=3)break;o[e+132+(a<<2)>>2]=i;o[e+148+(o[u>>2]<<2)>>2]=0;break}i=500-c|0;a=e+244|0;c=o[e+132+(o[u>>2]<<2)>>2]|0;if((i|0)>-10){i=sr(a,t,g(c,i)|0,5)|0;break}i=sr(a,t,g(c,-10)|0,6)|0;a=e+148+(o[u>>2]<<2)|0;o[a>>2]=(o[a>>2]|0)+1;a=o[u>>2]|0;if((o[e+148+(a<<2)>>2]|0)>3){o[e+132+(a<<2)>>2]=i;o[e+148+(o[u>>2]<<2)>>2]=0}}}while(0);l=e+100+(o[u>>2]<<3)|0;a=l;t=a;a=a+4|0;a=rb(s[t>>0]|s[t+1>>0]<<8|s[t+2>>0]<<16|s[t+3>>0]<<24|0,s[a>>0]|s[a+1>>0]<<8|s[a+2>>0]<<16|s[a+3>>0]<<24|0,i|0,((i|0)<0)<<31>>31|0)|0;t=T()|0;c=l;n[c>>0]=a;n[c+1>>0]=a>>8;n[c+2>>0]=a>>16;n[c+3>>0]=a>>24;l=l+4|0;n[l>>0]=t;n[l+1>>0]=t>>8;n[l+2>>0]=t>>16;n[l+3>>0]=t>>24}}while(0);fo(e+100+(o[u>>2]<<3)|0,r)}return r+8|0}function co(e){e=e|0;or(e);return}function uo(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;n=Zi(e)|0;ho(r,n,Zi(e+4|0)|0);e=o[r>>2]|0;_(o[r+4>>2]|0);Q=t;return e|0}function lo(e){e=e|0;var t=0;t=(Lr(e)|0)&65535;return((Lr(e)|0)&65535)<<16|t|0}function fo(e,t){e=e|0;t=t|0;var r=0;r=e;Pi(s[r>>0]|s[r+1>>0]<<8|s[r+2>>0]<<16|s[r+3>>0]<<24,t);e=e+4|0;Pi(s[e>>0]|s[e+1>>0]<<8|s[e+2>>0]<<16|s[e+3>>0]<<24,t+4|0);return}function ho(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;i=e;n[i>>0]=t;n[i+1>>0]=t>>8;n[i+2>>0]=t>>16;n[i+3>>0]=t>>24;t=e+4|0;n[t>>0]=r;n[t+1>>0]=r>>8;n[t+2>>0]=r>>16;n[t+3>>0]=r>>24;return}function Ao(e){e=e|0;sy(e);ep(e);return}function po(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function yo(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==9890?e+12|0:0)|0}function bo(e){e=e|0;ve(e,16);return}function mo(e,t){e=e|0;t=t|0;$n(e);o[e>>2]=4820;o[e+4>>2]=t;vo(e+8|0);return}function go(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4844;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function vo(e){e=e|0;n[e>>0]=0;wo(e+1|0);Or(e+8|0,128,0,0);Or(e+52|0,256,0,0);Or(e+96|0,256,0,0);Or(e+140|0,256,0,0);Or(e+184|0,256,0,0);Or(e+228|0,256,0,0);Or(e+272|0,256,0,0);return}function Bo(e){e=e|0;o[e>>2]=4820;Vo(e+8|0);ni(e);return}function _o(e){e=e|0;Bo(e);ep(e);return}function To(e,t){e=e|0;t=t|0;return Io(e+8|0,o[e+4>>2]|0,t)|0}function wo(e){e=e|0;var t=0;n[e>>0]=0;n[e+1>>0]=0;t=e+2|0;n[t>>0]=0;n[t+1>>0]=0;e=e+4|0;n[e>>0]=0;n[e+1>>0]=0;return}function Vo(e){e=e|0;Vr(e+272|0);Vr(e+228|0);Vr(e+184|0);Vr(e+140|0);Vr(e+96|0);Vr(e+52|0);Vr(e+8|0);return}function Io(e,t,r){e=e|0;t=t|0;r=r|0;var o=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0;A=Q;Q=Q+16|0;f=A;if(!(n[e>>0]|0)){n[e>>0]=1;_i(Bi(t)|0,r,6);Fo(f,r);h=e+1|0;n[h>>0]=n[f>>0]|0;n[h+1>>0]=n[f+1>>0]|0;n[h+2>>0]=n[f+2>>0]|0;n[h+3>>0]=n[f+3>>0]|0;n[h+4>>0]=n[f+4>>0]|0;n[h+5>>0]=n[f+5>>0]|0}else{h=Er(t,e+8|0)|0;wo(f);if(!(h&1)){o=e+1|0;o=(s[o>>0]|s[o+1>>0]<<8)&255}else{d=(Er(t,e+52|0)|0)&255;o=e+1|0;o=(Ii(d+((s[o>>0]|s[o+1>>0]<<8)&255)|0)|0)&255}i[f>>1]=o;if(!(h&2)){d=e+1|0;o=o|(s[d>>0]|s[d+1>>0]<<8)&-256}else{o=(Er(t,e+96|0)|0)&255;d=e+1|0;o=((Ii((((s[d>>0]|s[d+1>>0]<<8)&65535)>>>8)+o|0)|0)&255)<<8;o=(o|a[f>>1])&65535}i[f>>1]=o;do{if(h&64){l=e+1|0;c=(o&255)-((s[l>>0]|s[l+1>>0]<<8)&255)|0;if(!(h&4)){o=e+3|0;o=(s[o>>0]|s[o+1>>0]<<8)&255}else{o=(Er(t,e+140|0)|0)&255;d=e+3|0;d=c+((s[d>>0]|s[d+1>>0]<<8)&255)|0;o=(Ii(((d|0)<1?0:(d|0)>254?255:d&255)+o|0)|0)&255}d=f+2|0;i[d>>1]=o;if(!(h&16)){o=e+5|0;o=(s[o>>0]|s[o+1>>0]<<8)&255}else{o=Er(t,e+228|0)|0;p=e+3|0;u=e+5|0;u=((c+(i[d>>1]&255)-((s[p>>0]|s[p+1>>0]<<8)&255)|0)/2|0)+((s[u>>0]|s[u+1>>0]<<8)&255)|0;o=(Ii(((u|0)<1?0:(u|0)>254?255:u&255)+(o&255)|0)|0)&255}u=f+4|0;i[u>>1]=o;o=((a[f>>1]|0)>>>8)-(((s[l>>0]|s[l+1>>0]<<8)&65535)>>>8)|0;if(!(h&8)){c=e+3|0;c=i[d>>1]|(s[c>>0]|s[c+1>>0]<<8)&-256}else{c=(Er(t,e+184|0)|0)&255;p=e+3|0;p=(((s[p>>0]|s[p+1>>0]<<8)&65535)>>>8)+o|0;c=((Ii(((p|0)<1?0:(p|0)>254?255:p&255)+c|0)|0)&255)<<8;c=(c|a[d>>1])&65535}i[d>>1]=c;if(!(h&32)){p=e+5|0;i[u>>1]=i[u>>1]|(s[p>>0]|s[p+1>>0]<<8)&-256;break}else{p=Er(t,e+272|0)|0;t=e+3|0;h=e+5|0;h=((((a[d>>1]|0)>>>8)+o-(((s[t>>0]|s[t+1>>0]<<8)&65535)>>>8)|0)/2|0)+(((s[h>>0]|s[h+1>>0]<<8)&65535)>>>8)|0;p=((Ii(((h|0)<1?0:(h|0)>254?255:h&255)+(p&255)|0)|0)&255)<<8;i[u>>1]=p|a[u>>1];break}}else{i[f+2>>1]=o;i[f+4>>1]=o}}while(0);p=e+1|0;n[p>>0]=n[f>>0]|0;n[p+1>>0]=n[f+1>>0]|0;n[p+2>>0]=n[f+2>>0]|0;n[p+3>>0]=n[f+3>>0]|0;n[p+4>>0]=n[f+4>>0]|0;n[p+5>>0]=n[f+5>>0]|0;Uo(p,r)}Q=A;return r+6|0}function Fo(e,t){e=e|0;t=t|0;var r=0,n=0;n=Ri(t)|0;r=Ri(t+2|0)|0;So(e,n,r,Ri(t+4|0)|0);return}function Uo(e,t){e=e|0;t=t|0;var r=0;xi(s[e>>0]|s[e+1>>0]<<8,t);r=e+2|0;xi(s[r>>0]|s[r+1>>0]<<8,t+2|0);e=e+4|0;xi(s[e>>0]|s[e+1>>0]<<8,t+4|0);return}function So(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;n[e>>0]=t;n[e+1>>0]=t>>8;t=e+2|0;n[t>>0]=r;n[t+1>>0]=r>>8;r=e+4|0;n[r>>0]=i;n[r+1>>0]=i>>8;return}function Mo(e){e=e|0;sy(e);ep(e);return}function Oo(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function Ro(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==10570?e+12|0:0)|0}function Do(e){e=e|0;ve(e,16);return}function No(e,t,r){e=e|0;t=t|0;r=r|0;$n(e);o[e>>2]=4872;o[e+4>>2]=t;ko(e+8|0,r);return}function Zo(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4896;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function ko(e,t){e=e|0;t=t|0;o[e>>2]=o[t>>2];n[e+4>>0]=n[t+4>>0]|0;Po(e+8|0,t+8|0);Po(e+20|0,t+20|0);zo(e+32|0,t+32|0);return}function xo(e){e=e|0;o[e>>2]=4872;fn(e+8|0);ni(e);return}function jo(e){e=e|0;xo(e);ep(e);return}function Wo(e,t){e=e|0;t=t|0;return Bs(e+8|0,o[e+4>>2]|0,t)|0}function Po(e,t){e=e|0;t=t|0;var r=0,n=0;o[e>>2]=0;o[e+4>>2]=0;o[e+8>>2]=0;r=t+4|0;n=(o[r>>2]|0)-(o[t>>2]|0)|0;if(n|0){Eo(e,n);Xo(e,o[t>>2]|0,o[r>>2]|0,n)}return}function zo(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;r=Q;Q=Q+32|0;n=r+24|0;i=r+16|0;a=r+8|0;s=r;o[e>>2]=0;o[e+4>>2]=0;o[e+8>>2]=0;o[e+12>>2]=0;o[e+16>>2]=0;o[e+20>>2]=0;bs(a,t);ms(s,t);o[i>>2]=o[a>>2];o[i+4>>2]=o[a+4>>2];o[n>>2]=o[s>>2];o[n+4>>2]=o[s+4>>2];Jo(e,i,n,0);Q=r;return}function Eo(e,t){e=e|0;t=t|0;var r=0;if((Go(e)|0)>>>0<t>>>0)Yy(e);else{r=Hp(t)|0;o[e+4>>2]=r;o[e>>2]=r;o[e+8>>2]=r+t;return}}function Xo(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,s=0;s=Q;Q=Q+16|0;i=s;Lo(i,e,n);n=i+4|0;e=r-t|0;if((e|0)>0){db(o[n>>2]|0,t|0,e|0)|0;o[n>>2]=(o[n>>2]|0)+e}Yo(i);Q=s;return}function Co(e){e=e|0;var t=0,r=0;t=o[e>>2]|0;r=t;if(t|0){o[e+4>>2]=r;ve(t,(o[e+8>>2]|0)-r|0)}return}function Go(e){e=e|0;return 2147483647}function Lo(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=t;t=o[t+4>>2]|0;o[e+4>>2]=t;o[e+8>>2]=t+r;return}function Yo(e){e=e|0;o[(o[e>>2]|0)+4>>2]=o[e+4>>2];return}function Jo(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0,y=0;y=Q;Q=Q+96|0;p=y+80|0;f=y+64|0;u=y+48|0;l=y+40|0;d=y+8|0;c=y;h=y+32|0;A=y+16|0;a=t;s=o[a>>2]|0;a=o[a+4>>2]|0;i=r;r=o[i>>2]|0;i=o[i+4>>2]|0;n=s;if((i|0)==(a|0))a=0;else a=((i-(o[r>>2]|0)|0)/44|0)+((r-s>>2)*93|0)+((a-(o[s>>2]|0)|0)/-44|0)|0;r=(o[e+8>>2]|0)-(o[e+4>>2]|0)|0;r=((r|0)==0?0:((r>>2)*93|0)+-1|0)-((o[e+20>>2]|0)+(o[e+16>>2]|0))|0;if(a>>>0>r>>>0)Qo(e,a-r|0);$o(l,e);$o(c,e);i=c;r=o[i>>2]|0;i=o[i+4>>2]|0;s=d;o[s>>2]=r;o[s+4>>2]=i;s=r;if(a|0){r=((i-(o[r>>2]|0)|0)/44|0)+a|0;if((r|0)>0){c=(r>>>0)/93|0;a=s+(c<<2)|0;o[d>>2]=a;r=(o[a>>2]|0)+((r-(c*93|0)|0)*44|0)|0}else{r=92-r|0;c=s+(((r|0)/-93|0)<<2)|0;o[d>>2]=c;r=(o[c>>2]|0)+((92-((r|0)%93|0)|0)*44|0)|0}o[d+4>>2]=r}o[f>>2]=o[l>>2];o[f+4>>2]=o[l+4>>2];o[p>>2]=o[d>>2];o[p+4>>2]=o[d+4>>2];Ko(u,f,p);qo(p,u);es(f,u);if(ts(p,f)|0){s=A+4|0;a=t+4|0;do{rs(h,p);ns(A,e,h);r=o[A>>2]|0;if((r|0)!=(o[s>>2]|0)){i=o[a>>2]|0;do{Wr(r,i);r=(o[A>>2]|0)+44|0;o[A>>2]=r;i=i+44|0;o[a>>2]=i;if((i-(o[n>>2]|0)|0)==4092){n=n+4|0;o[t>>2]=n;i=o[n>>2]|0;o[a>>2]=i}}while((r|0)!=(o[s>>2]|0))}is(A);os(p)|0}while(ts(p,f)|0)}Q=y;return}function Ho(e){e=e|0;var t=0,r=0,n=0;t=o[e+4>>2]|0;r=e+8|0;n=o[r>>2]|0;if((n|0)!=(t|0))o[r>>2]=n+(~((n+-4-t|0)>>>2)<<2);t=o[e>>2]|0;if(t|0)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>2]=r;U=p+8|0;o[V>>2]=o[U>>2];o[U>>2]=t;U=p+12|0;I=o[m>>2]|0;o[m>>2]=o[U>>2];o[U>>2]=I;o[b>>2]=(o[b>>2]|0)+(g(y,-93)|0);ds(p);break}else{t:do{if((n|0)==(s|0))l=18;else{while(1){o[B>>2]=Hp(4092)|0;ss(e,B);t=t+-1|0;if(!t)break;if((o[m>>2]|0)==(o[V>>2]|0)){l=18;break t}}r=y;t=o[b>>2]|0}}while(0);if((l|0)==18){n=~(a>>>0>c>>>0?c:a);r=t;do{o[B>>2]=Hp(4092)|0;as(e,B);r=r+-1|0;i=(((o[V>>2]|0)-(o[I>>2]|0)|0)==4?92:93)+(o[b>>2]|0)|0;o[b>>2]=i}while((r|0)!=0);r=t+-1-n|0;t=i}o[b>>2]=t+(g(r,-93)|0);if(!r)break;c=e+12|0;u=_+4|0;l=_+8|0;d=_+12|0;t=o[V>>2]|0;do{s=o[I>>2]|0;a=o[s>>2]|0;s=s+4|0;o[I>>2]=s;U=o[m>>2]|0;n=U;do{if((t|0)==(U|0)){U=o[e>>2]|0;t=U;if(s>>>0<=U>>>0){t=n-t|0;t=(t|0)==0?1:t>>1;cs(_,t,t>>>2,c);o[T>>2]=o[I>>2];o[w>>2]=o[V>>2];o[v>>2]=o[T>>2];o[B>>2]=o[w>>2];fs(_,v,B);t=o[e>>2]|0;o[e>>2]=o[_>>2];o[_>>2]=t;t=o[I>>2]|0;o[I>>2]=o[u>>2];o[u>>2]=t;t=o[V>>2]|0;o[V>>2]=o[l>>2];o[l>>2]=t;t=o[m>>2]|0;o[m>>2]=o[d>>2];o[d>>2]=t;ds(_);t=o[V>>2]|0;break}U=s;t=((U-t>>2)+1|0)/-2|0;i=s+(t<<2)|0;n=n-U|0;if(!n)t=i;else{fb(i|0,s|0,n|0)|0;t=(o[I>>2]|0)+(t<<2)|0}U=i+(n>>2<<2)|0;o[V>>2]=U;o[I>>2]=t;t=U}}while(0);o[t>>2]=a;t=(o[V>>2]|0)+4|0;o[V>>2]=t;r=r+-1|0}while((r|0)!=0)}}}while(0);Q=F;return}function $o(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0;r=(o[t+16>>2]|0)+(o[t+20>>2]|0)|0;s=o[t+4>>2]|0;n=(r>>>0)/93|0;i=s+(n<<2)|0;if((o[t+8>>2]|0)==(s|0))t=0;else t=(o[i>>2]|0)+((r-(n*93|0)|0)*44|0)|0;o[e>>2]=i;o[e+4>>2]=t;return}function Ko(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=t;t=o[i+4>>2]|0;n=e;o[n>>2]=o[i>>2];o[n+4>>2]=t;n=r;t=o[n+4>>2]|0;r=e+8|0;o[r>>2]=o[n>>2];o[r+4>>2]=t;return}function qo(e,t){e=e|0;t=t|0;o[e>>2]=o[t>>2];o[e+4>>2]=o[t+4>>2];o[e+8>>2]=o[t+8>>2];o[e+12>>2]=o[t+12>>2];return}function es(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0,u=0;r=Q;Q=Q+32|0;n=r+24|0;i=r+16|0;a=r+8|0;s=r;c=t+8|0;u=o[c>>2]|0;c=o[c+4>>2]|0;t=a;o[t>>2]=u;o[t+4>>2]=c;t=s;o[t>>2]=u;o[t+4>>2]=c;o[i>>2]=o[a>>2];o[i+4>>2]=o[a+4>>2];o[n>>2]=o[s>>2];o[n+4>>2]=o[s+4>>2];Ko(e,i,n);Q=r;return}function ts(e,t){e=e|0;t=t|0;return(ps(e,t)|0)^1|0}function rs(e,t){e=e|0;t=t|0;var r=0,n=0;r=o[t>>2]|0;n=o[t+4>>2]|0;if((r|0)==(o[t+8>>2]|0))ys(e,n,o[t+12>>2]|0);else ys(e,n,(o[r>>2]|0)+4092|0);return}function ns(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;n=o[r>>2]|0;o[e>>2]=n;o[e+4>>2]=o[r+4>>2];o[e+8>>2]=n;o[e+12>>2]=t;return}function is(e){e=e|0;var t=0;t=(o[e+12>>2]|0)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q;Q=Q+48|0;n=p+32|0;r=p+28|0;a=p+8|0;c=p+4|0;u=p;A=e+4|0;f=o[A>>2]|0;h=o[e>>2]|0;l=h;do{if((f|0)==(h|0)){h=e+8|0;d=o[h>>2]|0;s=e+12|0;y=o[s>>2]|0;i=y;if(d>>>0>=y>>>0){y=i-l|0;y=(y|0)==0?1:y>>1;cs(a,y,(y+3|0)>>>2,e+12|0);o[c>>2]=o[A>>2];o[u>>2]=o[h>>2];o[r>>2]=o[c>>2];o[n>>2]=o[u>>2];fs(a,r,n);r=o[e>>2]|0;o[e>>2]=o[a>>2];o[a>>2]=r;r=a+4|0;y=o[A>>2]|0;o[A>>2]=o[r>>2];o[r>>2]=y;r=a+8|0;y=o[h>>2]|0;o[h>>2]=o[r>>2];o[r>>2]=y;r=a+12|0;y=o[s>>2]|0;o[s>>2]=o[r>>2];o[r>>2]=y;ds(a);r=o[A>>2]|0;break}n=d;e=((i-n>>2)+1|0)/2|0;i=d+(e<<2)|0;n=n-f|0;r=i+(0-(n>>2)<<2)|0;if(!n){r=i;n=i}else{fb(r|0,f|0,n|0)|0;n=(o[h>>2]|0)+(e<<2)|0}o[A>>2]=r;o[h>>2]=n}else r=f}while(0);o[r+-4>>2]=o[t>>2];o[A>>2]=(o[A>>2]|0)+-4;Q=p;return}function cs(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;i=e+12|0;o[i>>2]=0;o[e+16>>2]=n;do{if(t){if(t>>>0>1073741823){i=w(8)|0;fy(i,6723);o[i>>2]=5956;I(i|0,3928,123)}else{n=Hp(t<<2)|0;break}}else n=0}while(0);o[e>>2]=n;r=n+(r<<2)|0;o[e+8>>2]=r;o[e+4>>2]=r;o[i>>2]=n+(t<<2);return}function us(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0,y=0;p=Q;Q=Q+48|0;i=p+32|0;n=p+28|0;c=p+8|0;u=p+4|0;l=p;A=e+8|0;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2]=o[r>>2];o[r>>2]=y;r=a+8|0;y=o[h>>2]|0;o[h>>2]=o[r>>2];o[r>>2]=y;r=a+12|0;y=o[s>>2]|0;o[s>>2]=o[r>>2];o[r>>2]=y;ds(a);r=o[A>>2]|0;break}n=d;e=((i-n>>2)+1|0)/2|0;i=d+(e<<2)|0;n=n-f|0;r=i+(0-(n>>2)<<2)|0;if(!n){r=i;n=i}else{fb(r|0,f|0,n|0)|0;n=(o[h>>2]|0)+(e<<2)|0}o[A>>2]=r;o[h>>2]=n}else r=f}while(0);o[r+-4>>2]=o[t>>2];o[A>>2]=(o[A>>2]|0)+-4;Q=p;return}function ds(e){e=e|0;var t=0,r=0,n=0;t=o[e+4>>2]|0;r=e+8|0;n=o[r>>2]|0;if((n|0)!=(t|0))o[r>>2]=n+(~((n+-4-t|0)>>>2)<<2);t=o[e>>2]|0;if(t|0)ve(t,(o[e+12>>2]|0)-t|0);return}function fs(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,s=0,a=0;a=Q;Q=Q+16|0;s=a;i=o[t>>2]|0;hs(s,e+8|0,(o[r>>2]|0)-i>>2);e=o[s>>2]|0;n=s+4|0;if((e|0)!=(o[n>>2]|0)){r=i;do{o[e>>2]=o[r>>2];e=(o[s>>2]|0)+4|0;o[s>>2]=e;r=r+4|0}while((e|0)!=(o[n>>2]|0));o[t>>2]=r}As(s);Q=a;return}function hs(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=o[t>>2];o[e+4>>2]=(o[t>>2]|0)+(r<<2);o[e+8>>2]=t;return}function As(e){e=e|0;o[o[e+8>>2]>>2]=o[e>>2];return}function ps(e,t){e=e|0;t=t|0;return(o[e+4>>2]|0)==(o[t+4>>2]|0)|0}function ys(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=t;o[e+4>>2]=r;return}function bs(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0;s=o[t+4>>2]|0;r=o[t+16>>2]|0;n=(r>>>0)/93|0;i=s+(n<<2)|0;if((o[t+8>>2]|0)==(s|0))t=0;else t=(o[i>>2]|0)+((r-(n*93|0)|0)*44|0)|0;o[e>>2]=i;o[e+4>>2]=t;return}function ms(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0;r=(o[t+16>>2]|0)+(o[t+20>>2]|0)|0;s=o[t+4>>2]|0;n=(r>>>0)/93|0;i=s+(n<<2)|0;if((o[t+8>>2]|0)==(s|0))t=0;else t=(o[i>>2]|0)+((r-(n*93|0)|0)*44|0)|0;o[e>>2]=i;o[e+4>>2]=t;return}function gs(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0;c=Q;Q=Q+16|0;n=c+8|0;s=c;vs(n,e);$o(s,e);i=n+4|0;t=o[i>>2]|0;s=s+4|0;if((t|0)!=(o[s>>2]|0))do{Vr(t);t=(o[i>>2]|0)+44|0;o[i>>2]=t;r=o[n>>2]|0;if((t-(o[r>>2]|0)|0)==4092){t=r+4|0;o[n>>2]=t;t=o[t>>2]|0;o[i>>2]=t}}while((t|0)!=(o[s>>2]|0));o[e+20>>2]=0;i=e+8|0;n=e+4|0;r=o[n>>2]|0;t=(o[i>>2]|0)-r>>2;if(t>>>0>2)do{ve(o[r>>2]|0,4092);r=(o[n>>2]|0)+4|0;o[n>>2]=r;t=(o[i>>2]|0)-r>>2}while(t>>>0>2);switch(t|0){case 1:{t=46;a=11;break}case 2:{t=93;a=11;break}default:{}}if((a|0)==11)o[e+16>>2]=t;Q=c;return}function vs(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0;s=o[t+4>>2]|0;r=o[t+16>>2]|0;n=(r>>>0)/93|0;i=s+(n<<2)|0;if((o[t+8>>2]|0)==(s|0))t=0;else t=(o[i>>2]|0)+((r-(n*93|0)|0)*44|0)|0;o[e>>2]=i;o[e+4>>2]=t;return}function Bs(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,a=0,c=0,u=0,l=0,d=0,f=0;f=Q;Q=Q+16|0;d=f;u=e+4|0;if(!(n[u>>0]|0)){d=Bi(t)|0;_i(d,r,o[e>>2]|0);d=o[e>>2]|0;c=r+d|0;if(!d)i=0;else{i=r;a=o[e+8>>2]|0;while(1){n[a>>0]=n[i>>0]|0;i=i+1|0;if((i|0)==(c|0))break;else a=a+1|0}i=o[e>>2]|0}n[u>>0]=1;r=r+i|0}else{a=o[e+20>>2]|0;i=o[e+8>>2]|0;vs(d,e+32|0);e=e+12|0;if((i|0)!=(o[e>>2]|0)){l=d+4|0;u=i;c=a;i=o[l>>2]|0;while(1){a=s[u>>0]|0;a=_s((Er(t,i)|0)+a|0)|0;n[c>>0]=a;n[r>>0]=a;n[u>>0]=a;u=u+1|0;r=r+1|0;a=o[d>>2]|0;i=(o[l>>2]|0)+44|0;o[l>>2]=i;if((i-(o[a>>2]|0)|0)==4092){i=a+4|0;o[d>>2]=i;i=o[i>>2]|0;o[l>>2]=i}if((u|0)==(o[e>>2]|0))break;else c=c+1|0}}}Q=f;return r|0}function _s(e){e=e|0;return e&255|0}function Ts(e){e=e|0;sy(e);ep(e);return}function ws(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function Vs(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==11262?e+12|0:0)|0}function Is(e){e=e|0;ve(e,16);return}function Fs(e,t){e=e|0;t=t|0;o[e>>2]=0;o[e+4>>2]=0;o[e+8>>2]=0;if(t|0){Eo(e,t);Ss(e,t)}return}function Us(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=0;o[e+4>>2]=0;o[e+8>>2]=0;o[e+12>>2]=0;o[e+16>>2]=0;o[e+20>>2]=0;if(t|0)Ms(e,t,r);return}function Ss(e,t){e=e|0;t=t|0;var r=0,i=0,s=0;s=Q;Q=Q+16|0;i=s;Lo(i,e,t);t=i+4|0;e=o[t>>2]|0;r=i+8|0;if((e|0)!=(o[r>>2]|0))do{n[e>>0]=0;e=(o[t>>2]|0)+1|0;o[t>>2]=e}while((e|0)!=(o[r>>2]|0));Yo(i);Q=s;return}function Ms(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0;A=Q;Q=Q+96|0;h=A+80|0;l=A+64|0;a=A+48|0;c=A+40|0;u=A+8|0;i=A;d=A+32|0;f=A+16|0;n=(o[e+8>>2]|0)-(o[e+4>>2]|0)|0;n=((n|0)==0?0:((n>>2)*93|0)+-1|0)-((o[e+20>>2]|0)+(o[e+16>>2]|0))|0;if(n>>>0<t>>>0)Qo(e,t-n|0);$o(c,e);$o(i,e);n=o[i>>2]|0;i=o[i+4>>2]|0;s=u;o[s>>2]=n;o[s+4>>2]=i;s=n;if(t|0){n=((i-(o[n>>2]|0)|0)/44|0)+t|0;if((n|0)>0){t=(n>>>0)/93|0;s=s+(t<<2)|0;o[u>>2]=s;n=(o[s>>2]|0)+((n-(t*93|0)|0)*44|0)|0}else{n=92-n|0;t=s+(((n|0)/-93|0)<<2)|0;o[u>>2]=t;n=(o[t>>2]|0)+((92-((n|0)%93|0)|0)*44|0)|0}o[u+4>>2]=n}o[l>>2]=o[c>>2];o[l+4>>2]=o[c+4>>2];o[h>>2]=o[u>>2];o[h+4>>2]=o[u+4>>2];Ko(a,l,h);qo(h,a);es(l,a);if(ts(h,l)|0){i=f+4|0;do{rs(d,h);ns(f,e,d);n=o[f>>2]|0;if((n|0)!=(o[i>>2]|0))do{Wr(n,r);n=(o[f>>2]|0)+44|0;o[f>>2]=n}while((n|0)!=(o[i>>2]|0));is(f);os(h)|0}while(ts(h,l)|0)}Q=A;return}function Os(e){e=e|0;var t=0,r=0;gs(e);t=o[e+4>>2]|0;r=o[e+8>>2]|0;if((t|0)!=(r|0))do{ve(o[t>>2]|0,4092);t=t+4|0}while((t|0)!=(r|0));Ho(e);return}function Rs(e,t,r){e=e|0;t=t|0;r=r|0;Mn(e);o[e>>2]=4924;o[e+4>>2]=t;o[e+8>>2]=r;return}function Ds(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4944;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;Ps(e,n);Q=r;return}function Ns(e,t){e=e|0;t=t|0;return xs(o[e+8>>2]|0,o[e+4>>2]|0,t)|0}function Zs(e){e=e|0;var t=0,r=0;o[e>>2]=4924;r=e+8|0;t=o[r>>2]|0;o[r>>2]=0;if(t|0){Ws(t);ep(t)}Nn(e);return}function ks(e){e=e|0;Zs(e);ep(e);return}function xs(e,t,r){e=e|0;t=t|0;r=r|0;return js(e+4784|0,t,gi(e,t,r)|0)|0}function js(e,t,r){e=e|0;t=t|0;r=r|0;if(n[e>>0]|0){ir(t);n[e>>0]=0}return r|0}function Ws(e){e=e|0;bi(e);return}function Ps(e,t){e=e|0;t=t|0;return}function zs(e){e=e|0;sy(e);ep(e);return}function Es(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+8>>2]&255](e);return}function Xs(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==12004?e+12|0:0)|0}function Cs(e){e=e|0;ve(e,16);return}function Gs(e){e=e|0;n[e>>0]=1;return}function Ls(e,t,r){e=e|0;t=t|0;r=r|0;Mn(e);o[e>>2]=4972;o[e+4>>2]=t;o[e+8>>2]=r;return}function Ys(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=4992;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;Ps(e,n);Q=r;return}function Js(e,t){e=e|0;t=t|0;return $s(o[e+8>>2]|0,o[e+4>>2]|0,t)|0}function Hs(e){e=e|0;var t=0,r=0;o[e>>2]=4972;r=e+8|0;t=o[r>>2]|0;o[r>>2]=0;if(t|0){qs(t);ep(t)}Nn(e);return}function Qs(e){e=e|0;Hs(e);ep(e);return}function $s(e,t,r){e=e|0;t=t|0;r=r|0;return Ks(e+4784|0,t,gi(e,t,r)|0)|0}function Ks(e,t,r){e=e|0;t=t|0;r=r|0;return js(e+328|0,t,ao(e,t,r)|0)|0}function qs(e){e=e|0;ea(e+4784|0);bi(e);return}function ea(e){e=e|0;oo(e);return}function ta(e){e=e|0;sy(e);ep(e);return}function ra(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+8>>2]&255](e);return}function na(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==12827?e+12|0:0)|0}function ia(e){e=e|0;ve(e,16);return}function oa(e){e=e|0;Ji(e);Gs(e+328|0);return}function sa(e,t,r){e=e|0;t=t|0;r=r|0;Mn(e);o[e>>2]=5020;o[e+4>>2]=t;o[e+8>>2]=r;return}function aa(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5040;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;Ps(e,n);Q=r;return}function ca(e,t){e=e|0;t=t|0;return da(o[e+8>>2]|0,o[e+4>>2]|0,t)|0}function ua(e){e=e|0;var t=0,r=0;o[e>>2]=5020;r=e+8|0;t=o[r>>2]|0;o[r>>2]=0;if(t|0){ha(t);ep(t)}Nn(e);return}function la(e){e=e|0;ua(e);ep(e);return}function da(e,t,r){e=e|0;t=t|0;r=r|0;return fa(e+4784|0,t,gi(e,t,r)|0)|0}function fa(e,t,r){e=e|0;t=t|0;r=r|0;return js(e+316|0,t,Io(e,t,r)|0)|0}function ha(e){e=e|0;Aa(e+4784|0);bi(e);return}function Aa(e){e=e|0;Vo(e);return}function pa(e){e=e|0;sy(e);ep(e);return}function ya(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+8>>2]&255](e);return}function ba(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==13672?e+12|0:0)|0}function ma(e){e=e|0;ve(e,16);return}function ga(e){e=e|0;vo(e);Gs(e+316|0);return}function va(e,t,r){e=e|0;t=t|0;r=r|0;Mn(e);o[e>>2]=5068;o[e+4>>2]=t;o[e+8>>2]=r;return}function Ba(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5088;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;Ps(e,n);Q=r;return}function _a(e,t){e=e|0;t=t|0;return Va(o[e+8>>2]|0,o[e+4>>2]|0,t)|0}function Ta(e){e=e|0;var t=0,r=0;o[e>>2]=5068;r=e+8|0;t=o[r>>2]|0;o[r>>2]=0;if(t|0){Fa(t);ep(t)}Nn(e);return}function wa(e){e=e|0;Ta(e);ep(e);return}function Va(e,t,r){e=e|0;t=t|0;r=r|0;return Ia(e+4784|0,t,gi(e,t,r)|0)|0}function Ia(e,t,r){e=e|0;t=t|0;r=r|0;return fa(e+328|0,t,ao(e,t,r)|0)|0}function Fa(e){e=e|0;Ua(e+4784|0);bi(e);return}function Ua(e){e=e|0;Aa(e+328|0);oo(e);return}function Sa(e){e=e|0;sy(e);ep(e);return}function Ma(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+8>>2]&255](e);return}function Oa(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==14573?e+12|0:0)|0}function Ra(e){e=e|0;ve(e,16);return}function Da(e){e=e|0;Ji(e);ga(e+328|0);return}function Na(e){e=e|0;return e+20|0}function Za(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=t;o[e+4>>2]=r;o[e+8>>2]=0;return}function ka(e,t){e=e|0;t=t|0;o[e>>2]=t;o[e+4>>2]=0;o[e+8>>2]=-1;return}function xa(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0;r=Q;Q=Q+16|0;n=r+4|0;s=r;i=Hp(24)|0;ec(i,t);o[s>>2]=0;o[n>>2]=o[s>>2];tc(e,i,n);Q=r;return}function ja(e){e=e|0;var t=0,r=0;e=o[e+4>>2]|0;if(e|0?(r=e+4|0,t=o[r>>2]|0,o[r>>2]=t+-1,(t|0)==0):0){Cb[o[(o[e>>2]|0)+8>>2]&255](e);ay(e)}return}function Wa(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5116;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;za(e,n);Q=r;return}function Pa(e){e=e|0;var t=0,r=0;e=o[e+4>>2]|0;if(e|0?(r=e+4|0,t=o[r>>2]|0,o[r>>2]=t+-1,(t|0)==0):0){Cb[o[(o[e>>2]|0)+8>>2]&255](e);ay(e)}return}function za(e,t){e=e|0;t=t|0;return}function Ea(e){e=e|0;sy(e);ep(e);return}function Xa(e){e=e|0;e=o[e+12>>2]|0;if(e|0)ep(e);return}function Ca(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==14966?e+12|0:0)|0}function Ga(e){e=e|0;ve(e,16);return}function La(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5144;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;Ja(e,n);Q=r;return}function Ya(e){e=e|0;var t=0,r=0;e=o[e+4>>2]|0;if(e|0?(r=e+4|0,t=o[r>>2]|0,o[r>>2]=t+-1,(t|0)==0):0){Cb[o[(o[e>>2]|0)+8>>2]&255](e);ay(e)}return}function Ja(e,t){e=e|0;t=t|0;return}function Ha(e){e=e|0;sy(e);ep(e);return}function Qa(e){e=e|0;e=o[e+12>>2]|0;if(e|0){qa(e);ep(e)}return}function $a(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==15127?e+12|0:0)|0}function Ka(e){e=e|0;ve(e,16);return}function qa(e){e=e|0;return}function ec(e,t){e=e|0;t=t|0;Mn(e);o[e>>2]=5172;o[e+4>>2]=t;o[e+8>>2]=0;o[e+12>>2]=0;o[e+16>>2]=0;n[e+20>>0]=1;return}function tc(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5192;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;ac(e,n);Q=r;return}function rc(e,t){e=e|0;t=t|0;var r=0,i=0,s=0,a=0,c=0,u=0,l=0;l=Q;Q=Q+16|0;a=l;r=o[e+8>>2]|0;c=o[e+12>>2]|0;if((r|0)!=(c|0)){u=a+4|0;do{i=o[r>>2]|0;o[a>>2]=i;s=o[r+4>>2]|0;o[u>>2]=s;if(s|0){s=s+4|0;o[s>>2]=(o[s>>2]|0)+1}t=zb[o[(o[i>>2]|0)+12>>2]&63](i,t)|0;kn(a);r=r+8|0}while((r|0)!=(c|0))}r=e+20|0;if(n[r>>0]|0){n[r>>0]=0;oc(o[e+4>>2]|0)}Q=l;return t|0}function nc(e){e=e|0;o[e>>2]=5172;xn(e+8|0);Nn(e);return}function ic(e){e=e|0;nc(e);ep(e);return}function oc(e){e=e|0;var t=0;t=((sc(o[e>>2]|0)|0)&255)<<24;t=((sc(o[e>>2]|0)|0)&255)<<16|t;t=t|((sc(o[e>>2]|0)|0)&255)<<8;o[e+4>>2]=t|(sc(o[e>>2]|0)|0)&255;return}function sc(e){e=e|0;var t=0,r=0;t=o[e>>2]|0;r=e+8|0;e=o[r>>2]|0;o[r>>2]=e+1;return n[t+e>>0]|0}function ac(e,t){e=e|0;t=t|0;return}function cc(e){e=e|0;sy(e);ep(e);return}function uc(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+8>>2]&255](e);return}function lc(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==15450?e+12|0:0)|0}function dc(e){e=e|0;ve(e,16);return}function fc(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0;u=Q;Q=Q+32|0;n=u+12|0;i=u;t=u+8|0;a=Hp(180)|0;Ac(a,o[e+4>>2]|0);s=e+8|0;o[t>>2]=0;o[n>>2]=o[t>>2];pc(i,a,n);a=e+12|0;t=o[a>>2]|0;c=e+16|0;do{if(t>>>0>=(o[c>>2]|0)>>>0){t=(t-(o[s>>2]|0)>>3)+1|0;r=Qn(s)|0;if(r>>>0<t>>>0)Yy(s);else{l=o[s>>2]|0;d=(o[c>>2]|0)-l|0;c=d>>2;Yn(n,d>>3>>>0<r>>>1>>>0?c>>>0<t>>>0?t:c:r,(o[a>>2]|0)-l>>3,e+16|0);c=n+8|0;a=o[c>>2]|0;o[a>>2]=o[i>>2];e=i+4|0;o[a+4>>2]=o[e>>2];o[i>>2]=0;o[e>>2]=0;o[c>>2]=a+8;Jn(s,n);Hn(n);break}}else{Gn(n,s,1);d=n+4|0;l=o[d>>2]|0;o[l>>2]=o[i>>2];c=i+4|0;o[l+4>>2]=o[c>>2];o[i>>2]=0;o[c>>2]=0;o[d>>2]=l+8;Ln(n)}}while(0);kn(i);Q=u;return}function hc(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0;u=Q;Q=Q+32|0;n=u+12|0;i=u;t=u+8|0;a=Hp(180)|0;jc(a,o[e+4>>2]|0);s=e+8|0;o[t>>2]=0;o[n>>2]=o[t>>2];Wc(i,a,n);a=e+12|0;t=o[a>>2]|0;c=e+16|0;do{if(t>>>0>=(o[c>>2]|0)>>>0){t=(t-(o[s>>2]|0)>>3)+1|0;r=Qn(s)|0;if(r>>>0<t>>>0)Yy(s);else{l=o[s>>2]|0;d=(o[c>>2]|0)-l|0;c=d>>2;Yn(n,d>>3>>>0<r>>>1>>>0?c>>>0<t>>>0?t:c:r,(o[a>>2]|0)-l>>3,e+16|0);c=n+8|0;a=o[c>>2]|0;o[a>>2]=o[i>>2];e=i+4|0;o[a+4>>2]=o[e>>2];o[i>>2]=0;o[e>>2]=0;o[c>>2]=a+8;Jn(s,n);Hn(n);break}}else{Gn(n,s,1);d=n+4|0;l=o[d>>2]|0;o[l>>2]=o[i>>2];c=i+4|0;o[l+4>>2]=o[c>>2];o[i>>2]=0;o[c>>2]=0;o[d>>2]=l+8;Ln(n)}}while(0);kn(i);Q=u;return}function Ac(e,t){e=e|0;t=t|0;$n(e);o[e>>2]=5220;o[e+4>>2]=t;yc(e+8|0);return}function pc(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5244;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function yc(e){e=e|0;pi(e,32,1,8,0);nr(e+80|0,32,1,8,0);n[e+160>>0]=0;n[e+161>>0]=0;vc(e+164|0);return}function bc(e){e=e|0;o[e>>2]=5220;Bc(e+8|0);ni(e);return}function mc(e){e=e|0;bc(e);ep(e);return}function gc(e,t){e=e|0;t=t|0;return _c(e+8|0,o[e+4>>2]|0,t)|0}function vc(e){e=e|0;n[e+4>>0]=0;return}function Bc(e){e=e|0;ar(e+80|0);yi(e);return}function _c(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0;a=Q;Q=Q+16|0;i=a;if(!(n[e+161>>0]|0))or(e+80|0);s=e+164|0;if(Tc(s)|0){t=wc(e+80|0,t,o[s>>2]|0,0)|0;o[i>>2]=t;ki(t,r)}else{Ic(Vc(t)|0,r,4);o[i>>2]=Oi(r)|0}Fc(s,i);Q=a;return r+4|0}function Tc(e){e=e|0;return(n[e+4>>0]|0)!=0|0}function wc(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;r=(Uc(e,t,(o[e+36>>2]|0)+(n*44|0)|0)|0)+r|0;t=o[e+24>>2]|0;if((r|0)<0)return r+t|0;else return r-(r>>>0<t>>>0?0:t)|0;return 0}function Vc(e){e=e|0;return o[e>>2]|0}function Ic(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if((r|0)>0){i=0;do{n[t+i>>0]=sc(e)|0;i=i+1|0}while((i|0)!=(r|0))}return}function Fc(e,t){e=e|0;t=t|0;var r=0;r=e+4|0;if(!(n[r>>0]|0))n[r>>0]=1;o[e>>2]=o[t>>2];return}function Uc(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;r=Sc(t,r)|0;o[e>>2]=r;do{if(r){if(r>>>0>=32){r=o[e+28>>2]|0;break}n=o[e+12>>2]|0;if(r>>>0>n>>>0){n=r-n|0;r=Sc(t,(o[e+68>>2]|0)+((r+-1|0)*44|0)|0)|0;n=r<<n|(Mc(t,n)|0)}else n=Sc(t,(o[e+68>>2]|0)+((r+-1|0)*44|0)|0)|0;r=o[e>>2]|0;if((n|0)<(1<<r+-1|0)){r=n+1+(-1<<r)|0;break}else{r=n+1|0;break}}else r=Oc(t,e+48|0)|0}while(0);return r|0}function Sc(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0;h=e+8|0;f=o[h>>2]|0;i=o[t+16>>2]|0;if(i){n=e+4|0;r=o[n>>2]|0;d=f>>>15;o[h>>2]=d;u=(r>>>0)/(d>>>0)|0;c=u>>>(o[t+40>>2]|0);s=o[i+(c<<2)>>2]|0;c=(o[i+(c+1<<2)>>2]|0)+1|0;a=s+1|0;l=o[t+8>>2]|0;if(c>>>0>a>>>0){i=s;s=c;do{a=(s+i|0)>>>1;c=(o[l+(a<<2)>>2]|0)>>>0>u>>>0;i=c?i:a;s=c?a:s;a=i+1|0}while(s>>>0>a>>>0);s=i}i=g(o[l+(s<<2)>>2]|0,d)|0;if((s|0)==(o[t+32>>2]|0))a=f;else a=g(o[l+(a<<2)>>2]|0,d)|0}else{l=f>>>15;o[h>>2]=l;c=o[t>>2]|0;d=o[t+8>>2]|0;n=e+4|0;r=o[n>>2]|0;u=c>>>1;i=0;a=f;s=0;do{A=g(o[d+(u<<2)>>2]|0,l)|0;f=A>>>0>r>>>0;a=f?A:a;i=f?i:A;s=f?s:u;c=f?u:c;u=(s+c|0)>>>1}while((u|0)!=(s|0))}o[n>>2]=r-i;A=a-i|0;o[h>>2]=A;if(A>>>0<16777216)Rc(e);h=(o[t+12>>2]|0)+(s<<2)|0;o[h>>2]=(o[h>>2]|0)+1;h=t+28|0;A=(o[h>>2]|0)+-1|0;o[h>>2]=A;if(!A)Pr(t);return s|0}function Mc(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0;if(t>>>0>19){r=(Dc(e)|0)&65535;return(Mc(e,t+-16|0)|0)<<16|r|0}n=e+4|0;i=o[n>>2]|0;s=e+8|0;r=(o[s>>2]|0)>>>t;o[s>>2]=r;t=(i>>>0)/(r>>>0)|0;o[n>>2]=i-(g(t,r)|0);if(r>>>0<16777216)Rc(e);return t|0}function Oc(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0,c=0;n=e+8|0;i=o[n>>2]|0;r=g(i>>>13,o[t+8>>2]|0)|0;s=e+4|0;a=o[s>>2]|0;c=a>>>0>=r>>>0;if(c){o[s>>2]=a-r;r=i-r|0;o[n>>2]=r}else{o[n>>2]=r;a=t+12|0;o[a>>2]=(o[a>>2]|0)+1}if(r>>>0<16777216)Rc(e);a=t+4|0;e=(o[a>>2]|0)+-1|0;o[a>>2]=e;if(!e)Yr(t);return c&1|0}function Rc(e){e=e|0;var t=0,r=0,n=0,i=0;t=e+4|0;r=e+8|0;n=o[t>>2]|0;do{n=n<<8|(sc(o[e>>2]|0)|0)&255;o[t>>2]=n;i=o[r>>2]<<8;o[r>>2]=i}while(i>>>0<16777216);return}function Dc(e){e=e|0;var t=0,r=0,n=0,i=0;r=e+4|0;i=o[r>>2]|0;t=e+8|0;n=(o[t>>2]|0)>>>16;o[t>>2]=n;t=(i>>>0)/(n>>>0)|0;o[r>>2]=i-(g(t,n)|0);Rc(e);return t&65535|0}function Nc(e){e=e|0;sy(e);ep(e);return}function Zc(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function kc(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==15904?e+12|0:0)|0}function xc(e){e=e|0;ve(e,16);return}function jc(e,t){e=e|0;t=t|0;$n(e);o[e>>2]=5272;o[e+4>>2]=t;Pc(e+8|0);return}function Wc(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5296;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function Pc(e){e=e|0;pi(e,32,1,8,0);nr(e+80|0,32,1,8,0);n[e+160>>0]=0;n[e+161>>0]=0;Cc(e+164|0);return}function zc(e){e=e|0;o[e>>2]=5272;Gc(e+8|0);ni(e);return}function Ec(e){e=e|0;zc(e);ep(e);return}function Xc(e,t){e=e|0;t=t|0;return Lc(e+8|0,o[e+4>>2]|0,t)|0}function Cc(e){e=e|0;n[e+4>>0]=0;return}function Gc(e){e=e|0;ar(e+80|0);yi(e);return}function Lc(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0;a=Q;Q=Q+16|0;i=a;if(!(n[e+161>>0]|0))or(e+80|0);s=e+164|0;if(Yc(s)|0){t=wc(e+80|0,t,o[s>>2]|0,0)|0;o[i>>2]=t;Pi(t,r)}else{Ic(Vc(t)|0,r,4);o[i>>2]=Zi(r)|0}Jc(s,i);Q=a;return r+4|0}function Yc(e){e=e|0;return(n[e+4>>0]|0)!=0|0}function Jc(e,t){e=e|0;t=t|0;var r=0;r=e+4|0;if(!(n[r>>0]|0))n[r>>0]=1;o[e>>2]=o[t>>2];return}function Hc(e){e=e|0;sy(e);ep(e);return}function Qc(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function $c(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==16402?e+12|0:0)|0}function Kc(e){e=e|0;ve(e,16);return}function qc(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0;u=Q;Q=Q+32|0;n=u+12|0;i=u;t=u+8|0;a=Hp(172)|0;tu(a,o[e+4>>2]|0);s=e+8|0;o[t>>2]=0;o[n>>2]=o[t>>2];ru(i,a,n);a=e+12|0;t=o[a>>2]|0;c=e+16|0;do{if(t>>>0>=(o[c>>2]|0)>>>0){t=(t-(o[s>>2]|0)>>3)+1|0;r=Qn(s)|0;if(r>>>0<t>>>0)Yy(s);else{l=o[s>>2]|0;d=(o[c>>2]|0)-l|0;c=d>>2;Yn(n,d>>3>>>0<r>>>1>>>0?c>>>0<t>>>0?t:c:r,(o[a>>2]|0)-l>>3,e+16|0);c=n+8|0;a=o[c>>2]|0;o[a>>2]=o[i>>2];e=i+4|0;o[a+4>>2]=o[e>>2];o[i>>2]=0;o[e>>2]=0;o[c>>2]=a+8;Jn(s,n);Hn(n);break}}else{Gn(n,s,1);d=n+4|0;l=o[d>>2]|0;o[l>>2]=o[i>>2];c=i+4|0;o[l+4>>2]=o[c>>2];o[i>>2]=0;o[c>>2]=0;o[d>>2]=l+8;Ln(n)}}while(0);kn(i);Q=u;return}function eu(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0;u=Q;Q=Q+32|0;n=u+12|0;i=u;t=u+8|0;a=Hp(176)|0;mu(a,o[e+4>>2]|0);s=e+8|0;o[t>>2]=0;o[n>>2]=o[t>>2];gu(i,a,n);a=e+12|0;t=o[a>>2]|0;c=e+16|0;do{if(t>>>0>=(o[c>>2]|0)>>>0){t=(t-(o[s>>2]|0)>>3)+1|0;r=Qn(s)|0;if(r>>>0<t>>>0)Yy(s);else{l=o[s>>2]|0;d=(o[c>>2]|0)-l|0;c=d>>2;Yn(n,d>>3>>>0<r>>>1>>>0?c>>>0<t>>>0?t:c:r,(o[a>>2]|0)-l>>3,e+16|0);c=n+8|0;a=o[c>>2]|0;o[a>>2]=o[i>>2];e=i+4|0;o[a+4>>2]=o[e>>2];o[i>>2]=0;o[e>>2]=0;o[c>>2]=a+8;Jn(s,n);Hn(n);break}}else{Gn(n,s,1);d=n+4|0;l=o[d>>2]|0;o[l>>2]=o[i>>2];c=i+4|0;o[l+4>>2]=o[c>>2];o[i>>2]=0;o[c>>2]=0;o[d>>2]=l+8;Ln(n)}}while(0);kn(i);Q=u;return}function tu(e,t){e=e|0;t=t|0;$n(e);o[e>>2]=5324;o[e+4>>2]=t;nu(e+8|0);return}function ru(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5348;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function nu(e){e=e|0;pi(e,8,1,8,0);nr(e+80|0,8,1,8,0);n[e+160>>0]=0;n[e+161>>0]=0;au(e+162|0);return}function iu(e){e=e|0;o[e>>2]=5324;cu(e+8|0);ni(e);return}function ou(e){e=e|0;iu(e);ep(e);return}function su(e,t){e=e|0;t=t|0;return uu(e+8|0,o[e+4>>2]|0,t)|0}function au(e){e=e|0;n[e+1>>0]=0;return}function cu(e){e=e|0;ar(e+80|0);yi(e);return}function uu(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,o=0,s=0;s=Q;Q=Q+16|0;i=s;if(!(n[e+161>>0]|0))or(e+80|0);o=e+162|0;if(lu(o)|0){t=(wc(e+80|0,t,n[o>>0]|0,0)|0)&255;n[i>>0]=t;du(t,r)}else{Ic(Vc(t)|0,r,1);n[i>>0]=fu(r)|0}hu(o,i);Q=s;return r+1|0}function lu(e){e=e|0;return(n[e+1>>0]|0)!=0|0}function du(e,t){e=e|0;t=t|0;n[t>>0]=e;return}function fu(e){e=e|0;return n[e>>0]|0}function hu(e,t){e=e|0;t=t|0;var r=0;r=e+1|0;if(!(n[r>>0]|0))n[r>>0]=1;n[e>>0]=n[t>>0]|0;return}function Au(e){e=e|0;sy(e);ep(e);return}function pu(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function yu(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==16900?e+12|0:0)|0}function bu(e){e=e|0;ve(e,16);return}function mu(e,t){e=e|0;t=t|0;$n(e);o[e>>2]=5376;o[e+4>>2]=t;vu(e+8|0);return}function gu(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5400;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function vu(e){e=e|0;pi(e,16,1,8,0);nr(e+80|0,16,1,8,0);n[e+160>>0]=0;n[e+161>>0]=0;wu(e+162|0);return}function Bu(e){e=e|0;o[e>>2]=5376;Vu(e+8|0);ni(e);return}function _u(e){e=e|0;Bu(e);ep(e);return}function Tu(e,t){e=e|0;t=t|0;return Iu(e+8|0,o[e+4>>2]|0,t)|0}function wu(e){e=e|0;n[e+2>>0]=0;return}function Vu(e){e=e|0;ar(e+80|0);yi(e);return}function Iu(e,t,r){e=e|0;t=t|0;r=r|0;var o=0,s=0,a=0;a=Q;Q=Q+16|0;o=a;if(!(n[e+161>>0]|0))or(e+80|0);s=e+162|0;if(Fu(s)|0){t=(wc(e+80|0,t,i[s>>1]|0,0)|0)&65535;i[o>>1]=t;Uu(t,r)}else{Ic(Vc(t)|0,r,2);i[o>>1]=Su(r)|0}Mu(s,o);Q=a;return r+2|0}function Fu(e){e=e|0;return(n[e+2>>0]|0)!=0|0}function Uu(e,t){e=e|0;t=t|0;xi(e,t);return}function Su(e){e=e|0;return Ri(e)|0}function Mu(e,t){e=e|0;t=t|0;var r=0;r=e+2|0;if(!(n[r>>0]|0))n[r>>0]=1;i[e>>1]=i[t>>1]|0;return}function Ou(e){e=e|0;sy(e);ep(e);return}function Ru(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function Du(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==17398?e+12|0:0)|0}function Nu(e){e=e|0;ve(e,16);return}function Zu(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0;u=Q;Q=Q+32|0;n=u+12|0;i=u;t=u+8|0;a=Hp(172)|0;xu(a,o[e+4>>2]|0);s=e+8|0;o[t>>2]=0;o[n>>2]=o[t>>2];ju(i,a,n);a=e+12|0;t=o[a>>2]|0;c=e+16|0;do{if(t>>>0>=(o[c>>2]|0)>>>0){t=(t-(o[s>>2]|0)>>3)+1|0;r=Qn(s)|0;if(r>>>0<t>>>0)Yy(s);else{l=o[s>>2]|0;d=(o[c>>2]|0)-l|0;c=d>>2;Yn(n,d>>3>>>0<r>>>1>>>0?c>>>0<t>>>0?t:c:r,(o[a>>2]|0)-l>>3,e+16|0);c=n+8|0;a=o[c>>2]|0;o[a>>2]=o[i>>2];e=i+4|0;o[a+4>>2]=o[e>>2];o[i>>2]=0;o[e>>2]=0;o[c>>2]=a+8;Jn(s,n);Hn(n);break}}else{Gn(n,s,1);d=n+4|0;l=o[d>>2]|0;o[l>>2]=o[i>>2];c=i+4|0;o[l+4>>2]=o[c>>2];o[i>>2]=0;o[c>>2]=0;o[d>>2]=l+8;Ln(n)}}while(0);kn(i);Q=u;return}function ku(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0;u=Q;Q=Q+32|0;n=u+12|0;i=u;t=u+8|0;a=Hp(176)|0;Ku(a,o[e+4>>2]|0);s=e+8|0;o[t>>2]=0;o[n>>2]=o[t>>2];qu(i,a,n);a=e+12|0;t=o[a>>2]|0;c=e+16|0;do{if(t>>>0>=(o[c>>2]|0)>>>0){t=(t-(o[s>>2]|0)>>3)+1|0;r=Qn(s)|0;if(r>>>0<t>>>0)Yy(s);else{l=o[s>>2]|0;d=(o[c>>2]|0)-l|0;c=d>>2;Yn(n,d>>3>>>0<r>>>1>>>0?c>>>0<t>>>0?t:c:r,(o[a>>2]|0)-l>>3,e+16|0);c=n+8|0;a=o[c>>2]|0;o[a>>2]=o[i>>2];e=i+4|0;o[a+4>>2]=o[e>>2];o[i>>2]=0;o[e>>2]=0;o[c>>2]=a+8;Jn(s,n);Hn(n);break}}else{Gn(n,s,1);d=n+4|0;l=o[d>>2]|0;o[l>>2]=o[i>>2];c=i+4|0;o[l+4>>2]=o[c>>2];o[i>>2]=0;o[c>>2]=0;o[d>>2]=l+8;Ln(n)}}while(0);kn(i);Q=u;return}function xu(e,t){e=e|0;t=t|0;$n(e);o[e>>2]=5428;o[e+4>>2]=t;Wu(e+8|0);return}function ju(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5452;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function Wu(e){e=e|0;pi(e,8,1,8,0);nr(e+80|0,8,1,8,0);n[e+160>>0]=0;n[e+161>>0]=0;Xu(e+162|0);return}function Pu(e){e=e|0;o[e>>2]=5428;Cu(e+8|0);ni(e);return}function zu(e){e=e|0;Pu(e);ep(e);return}function Eu(e,t){e=e|0;t=t|0;return Gu(e+8|0,o[e+4>>2]|0,t)|0}function Xu(e){e=e|0;n[e+1>>0]=0;return}function Cu(e){e=e|0;ar(e+80|0);yi(e);return}function Gu(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,o=0,a=0;a=Q;Q=Q+16|0;i=a;if(!(n[e+161>>0]|0))or(e+80|0);o=e+162|0;if(Lu(o)|0){t=(wc(e+80|0,t,s[o>>0]|0,0)|0)&255;n[i>>0]=t;ji(t,r)}else{Ic(Vc(t)|0,r,1);n[i>>0]=Di(r)|0}Yu(o,i);Q=a;return r+1|0}function Lu(e){e=e|0;return(n[e+1>>0]|0)!=0|0}function Yu(e,t){e=e|0;t=t|0;var r=0;r=e+1|0;if(!(n[r>>0]|0))n[r>>0]=1;n[e>>0]=n[t>>0]|0;return}function Ju(e){e=e|0;sy(e);ep(e);return}function Hu(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function Qu(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==17896?e+12|0:0)|0}function $u(e){e=e|0;ve(e,16);return}function Ku(e,t){e=e|0;t=t|0;$n(e);o[e>>2]=5480;o[e+4>>2]=t;el(e+8|0);return}function qu(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;r=Q;Q=Q+16|0;n=r;o[e>>2]=t;i=Hp(16)|0;o[i+4>>2]=0;o[i+8>>2]=0;o[i>>2]=5504;o[i+12>>2]=t;o[e+4>>2]=i;o[n>>2]=t;o[n+4>>2]=t;zi(e,n);Q=r;return}function el(e){e=e|0;pi(e,16,1,8,0);nr(e+80|0,16,1,8,0);n[e+160>>0]=0;n[e+161>>0]=0;il(e+162|0);return}function tl(e){e=e|0;o[e>>2]=5480;ol(e+8|0);ni(e);return}function rl(e){e=e|0;tl(e);ep(e);return}function nl(e,t){e=e|0;t=t|0;return sl(e+8|0,o[e+4>>2]|0,t)|0}function il(e){e=e|0;n[e+2>>0]=0;return}function ol(e){e=e|0;ar(e+80|0);yi(e);return}function sl(e,t,r){e=e|0;t=t|0;r=r|0;var o=0,s=0,c=0;c=Q;Q=Q+16|0;o=c;if(!(n[e+161>>0]|0))or(e+80|0);s=e+162|0;if(al(s)|0){t=(wc(e+80|0,t,a[s>>1]|0,0)|0)&65535;i[o>>1]=t;xi(t,r)}else{Ic(Vc(t)|0,r,2);i[o>>1]=Ri(r)|0}cl(s,o);Q=c;return r+2|0}function al(e){e=e|0;return(n[e+2>>0]|0)!=0|0}function cl(e,t){e=e|0;t=t|0;var r=0;r=e+2|0;if(!(n[r>>0]|0))n[r>>0]=1;i[e>>1]=i[t>>1]|0;return}function ul(e){e=e|0;sy(e);ep(e);return}function ll(e){e=e|0;e=o[e+12>>2]|0;if(e|0)Cb[o[(o[e>>2]|0)+4>>2]&255](e);return}function dl(e,t){e=e|0;t=t|0;return((o[t+4>>2]|0)==18394?e+12|0:0)|0}function fl(e){e=e|0;ve(e,16);return}function hl(){return}function Al(e){e=e|0;return _l(e)|0}function pl(){return 0}function yl(){return 0}function bl(e){e=e|0;if(e|0){Tl(e);ep(e)}return}function ml(){return wl()|0}function gl(){return Vl()|0}function vl(){return Il()|0}function Bl(){return 0}function _l(e){e=e|0;return 3360}function Tl(e){e=e|0;var t=0,r=0,n=0,i=0;t=Q;Q=Q+16|0;n=t;o[n>>2]=o[e>>2];o[e>>2]=0;r=e+4|0;o[n+4>>2]=o[r>>2];o[r>>2]=0;he(n);r=e+8|0;o[n>>2]=o[r>>2];o[r>>2]=0;i=e+12|0;o[n+4>>2]=o[i>>2];o[i>>2]=0;Te(n);Te(r);he(e);Q=t;return}function wl(){return 3360}function Vl(){return 3368}function Il(){return 3384}function Fl(){return 18579}function Ul(){return 18582}function Sl(){return 18584}function Ml(){var e=0;e=Hp(16)|0;xl(e);return e|0}function Ol(e){e=e|0;var t=0,r=0,n=0,i=0;t=Q;Q=Q+16|0;r=t;i=ml()|0;n=Dl(r)|0;r=Nl(r)|0;D(i|0,n|0,r|0,Fl()|0,12,e|0);Q=t;return}function Rl(e){e=e|0;return Zl(jb[e&3]()|0)|0}function Dl(e){e=e|0;return 1}function Nl(e){e=e|0;return kl()|0}function Zl(e){e=e|0;return e|0}function kl(){return 5524}function xl(e){e=e|0;o[e>>2]=0;o[e+4>>2]=0;o[e+8>>2]=0;o[e+12>>2]=0;return}function jl(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;r=Q;Q=Q+16|0;n=r;i=r+8|0;a=o[t+4>>2]|0;o[n>>2]=o[t>>2];o[n+4>>2]=a;a=ml()|0;s=Pl(i)|0;i=zl(i)|0;t=Yl()|0;N(a|0,e|0,s|0,i|0,t|0,4,El(n)|0,0);Q=r;return}function Wl(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,s=0;s=Xl(t)|0;t=o[e>>2]|0;i=o[e+4>>2]|0;e=s+(i>>1)|0;if(i&1)t=o[(o[e>>2]|0)+t>>2]|0;i=Cl(r)|0;s=Gl(n)|0;Lb[t&15](e,i,s);return}function Pl(e){e=e|0;return 4}function zl(e){e=e|0;return Ll()|0}function El(e){e=e|0;var t=0,r=0;t=Hp(8)|0;r=o[e+4>>2]|0;o[t>>2]=o[e>>2];o[t+4>>2]=r;return t|0}function Xl(e){e=e|0;return e|0}function Cl(e){e=e|0;return e|0}function Gl(e){e=e|0;return e|0}function Ll(){return 144}function Yl(){return 18587}function Jl(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;r=Q;Q=Q+16|0;n=r;i=r+8|0;a=o[t+4>>2]|0;o[n>>2]=o[t>>2];o[n+4>>2]=a;a=ml()|0;s=Ql(i)|0;i=$l(i)|0;t=td()|0;N(a|0,e|0,s|0,i|0,t|0,7,Kl(n)|0,0);Q=r;return}function Hl(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=Xl(t)|0;t=o[e>>2]|0;n=o[e+4>>2]|0;e=i+(n>>1)|0;if(n&1)t=o[(o[e>>2]|0)+t>>2]|0;i=ql(r)|0;Gb[t&15](e,i);return}function Ql(e){e=e|0;return 3}function $l(e){e=e|0;return ed()|0}function Kl(e){e=e|0;var t=0,r=0;t=Hp(8)|0;r=o[e+4>>2]|0;o[t>>2]=o[e>>2];o[t+4>>2]=r;return t|0}function ql(e){e=e|0;return e|0}function ed(){return 5528}function td(){return 18593}function rd(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;r=Q;Q=Q+16|0;n=r;i=r+8|0;a=o[t+4>>2]|0;o[n>>2]=o[t>>2];o[n+4>>2]=a;a=ml()|0;s=id(i)|0;i=od(i)|0;t=ud()|0;N(a|0,e|0,s|0,i|0,t|0,41,sd(n)|0,0);Q=r;return}function nd(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0;n=Q;Q=Q+16|0;r=n;s=Xl(t)|0;t=o[e>>2]|0;i=o[e+4>>2]|0;e=s+(i>>1)|0;if(i&1)t=o[(o[e>>2]|0)+t>>2]|0;o[r>>2]=Wb[t&15](e)|0;s=ad(r)|0;Q=n;return s|0}function id(e){e=e|0;return 2}function od(e){e=e|0;return cd()|0}function sd(e){e=e|0;var t=0,r=0;t=Hp(8)|0;r=o[e+4>>2]|0;o[t>>2]=o[e>>2];o[t+4>>2]=r;return t|0}function ad(e){e=e|0;return o[e>>2]|0}function cd(){return 5540}function ud(){return 18598}function ld(){return}function dd(e){e=e|0;return md(e)|0}function fd(){return 0}function hd(){return 0}function Ad(e){e=e|0;if(e|0){gd(e);ep(e)}return}function pd(){return vd()|0}function yd(){return Bd()|0}function bd(){return _d()|0}function md(e){e=e|0;return 3400}function gd(e){e=e|0;var t=0,r=0,n=0,i=0;t=Q;Q=Q+16|0;n=t;o[n>>2]=o[e>>2];o[e>>2]=0;r=e+4|0;o[n+4>>2]=o[r>>2];o[r>>2]=0;Pa(n);r=e+16|0;o[n>>2]=o[r>>2];o[r>>2]=0;i=e+20|0;o[n+4>>2]=o[i>>2];o[i>>2]=0;ja(n);o[n>>2]=o[r>>2];o[r>>2]=0;o[n+4>>2]=o[i>>2];o[i>>2]=0;ja(n);ja(r);Ya(e+8|0);Pa(e);Q=t;return}function vd(){return 3400}function Bd(){return 3408}function _d(){return 3424}function Td(){var e=0;e=Hp(24)|0;Md(e);return e|0}function wd(e){e=e|0;var t=0,r=0,n=0,i=0;t=Q;Q=Q+16|0;r=t;i=pd()|0;n=Id(r)|0;r=Fd(r)|0;D(i|0,n|0,r|0,Fl()|0,13,e|0);Q=t;return}function Vd(e){e=e|0;return Ud(jb[e&3]()|0)|0}function Id(e){e=e|0;return 1}function Fd(e){e=e|0;return Sd()|0}function Ud(e){e=e|0;return e|0}function Sd(){return 5548}function Md(e){e=e|0;o[e>>2]=0;o[e+4>>2]=0;o[e+8>>2]=0;o[e+12>>2]=0;o[e+16>>2]=0;o[e+20>>2]=0;return}function Od(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;r=Q;Q=Q+16|0;n=r;i=r+8|0;a=o[t+4>>2]|0;o[n>>2]=o[t>>2];o[n+4>>2]=a;a=pd()|0;s=Dd(i)|0;i=Nd(i)|0;t=Yl()|0;N(a|0,e|0,s|0,i|0,t|0,5,Zd(n)|0,0);Q=r;return}function Rd(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,s=0;s=kd(t)|0;t=o[e>>2]|0;i=o[e+4>>2]|0;e=s+(i>>1)|0;if(i&1)t=o[(o[e>>2]|0)+t>>2]|0;i=Cl(r)|0;s=Gl(n)|0;Lb[t&15](e,i,s);return}function Dd(e){e=e|0;return 4}function Nd(e){e=e|0;return xd()|0}function Zd(e){e=e|0;var t=0,r=0;t=Hp(8)|0;r=o[e+4>>2]|0;o[t>>2]=o[e>>2];o[t+4>>2]=r;return t|0}function kd(e){e=e|0;return e|0}function xd(){return 160}function jd(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;r=Q;Q=Q+16|0;n=r;i=r+8|0;a=o[t+4>>2]|0;o[n>>2]=o[t>>2];o[n+4>>2]=a;a=pd()|0;s=Pd(i)|0;i=zd(i)|0;t=td()|0;N(a|0,e|0,s|0,i|0,t|0,8,Ed(n)|0,0);Q=r;return}function Wd(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=kd(t)|0;t=o[e>>2]|0;n=o[e+4>>2]|0;e=i+(n>>1)|0;if(n&1)t=o[(o[e>>2]|0)+t>>2]|0;i=Gl(r)|0;Gb[t&15](e,i);return}function Pd(e){e=e|0;return 3}function zd(e){e=e|0;return Xd()|0}function Ed(e){e=e|0;var t=0,r=0;t=Hp(8)|0;r=o[e+4>>2]|0;o[t>>2]=o[e>>2];o[t+4>>2]=r;return t|0}function Xd(){return 5552}function Cd(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;r=Q;Q=Q+16|0;n=r;i=r+8|0;a=o[t+4>>2]|0;o[n>>2]=o[t>>2];o[n+4>>2]=a;a=pd()|0;s=Ld(i)|0;i=Yd(i)|0;t=td()|0;N(a|0,e|0,s|0,i|0,t|0,9,Jd(n)|0,0);Q=r;return}function Gd(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=kd(t)|0;t=o[e>>2]|0;n=o[e+4>>2]|0;e=i+(n>>1)|0;if(n&1)t=o[(o[e>>2]|0)+t>>2]|0;i=ql(r)|0;Gb[t&15](e,i);return}function Ld(e){e=e|0;return 3}function Yd(e){e=e|0;return Hd()|0}function Jd(e){e=e|0;var t=0,r=0;t=Hp(8)|0;r=o[e+4>>2]|0;o[t>>2]=o[e>>2];o[t+4>>2]=r;return t|0}function Hd(){return 5564}function Qd(){ee();return}function $d(){Kd();return}function Kd(){qd(22144);return}function qd(e){e=e|0;var t=0;t=Q;Q=Q+16|0;o[t>>2]=e;ef();Q=t;return}function ef(){z(tf()|0,18653);O(rf()|0,18658,1,1,0);nf(18663);of(18668);sf(18680);af(18694);cf(18700);uf(18715);lf(18719);df(18732);ff(18737);hf(18751);Af(18757);W(pf()|0,18764);W(yf()|0,18776);P(bf()|0,4,18809);P(mf()|0,2,18822);P(gf()|0,4,18837);Z(vf()|0,18852);Bf(18868);_f(18898);Tf(18935);wf(18974);Vf(19005);If(19045);Ff(19074);Uf(19112);Sf(19142);_f(19181);Tf(19213);wf(19246);Vf(19279);If(19313);Ff(19346);Mf(19380);Of(19411);Rf(19443);return}function tf(){return Ch()|0}function rf(){return Xh()|0}function nf(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=zh()|0;x(e|0,o[r>>2]|0,1,-128<<24>>24|0,127<<24>>24|0);Q=t;return}function of(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=Wh()|0;x(e|0,o[r>>2]|0,1,-128<<24>>24|0,127<<24>>24|0);Q=t;return}function sf(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=xh()|0;x(e|0,o[r>>2]|0,1,0,255);Q=t;return}function af(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=Zh()|0;x(e|0,o[r>>2]|0,2,-32768<<16>>16|0,32767<<16>>16|0);Q=t;return}function cf(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=Dh()|0;x(e|0,o[r>>2]|0,2,0,65535);Q=t;return}function uf(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=Oh()|0;x(e|0,o[r>>2]|0,4,-2147483648,2147483647);Q=t;return}function lf(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=Sh()|0;x(e|0,o[r>>2]|0,4,0,-1);Q=t;return}function df(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=Fh()|0;x(e|0,o[r>>2]|0,4,-2147483648,2147483647);Q=t;return}function ff(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=Vh()|0;x(e|0,o[r>>2]|0,4,0,-1);Q=t;return}function hf(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=Th()|0;k(e|0,o[r>>2]|0,4);Q=t;return}function Af(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;e=Bh()|0;k(e|0,o[r>>2]|0,8);Q=t;return}function pf(){return vh()|0}function yf(){return gh()|0}function bf(){return mh()|0}function mf(){return bh()|0}function gf(){return yh()|0}function vf(){return ph()|0}function Bf(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=fh()|0;e=hh()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function _f(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=uh()|0;e=lh()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function Tf(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=sh()|0;e=ah()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function wf(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=nh()|0;e=ih()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function Vf(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=eh()|0;e=th()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function If(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=$f()|0;e=Kf()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function Ff(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=Jf()|0;e=Hf()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function Uf(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=Gf()|0;e=Lf()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function Sf(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=Ef()|0;e=Xf()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function Mf(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=Wf()|0;e=Pf()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function Of(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=kf()|0;e=xf()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function Rf(e){e=e|0;var t=0,r=0,n=0;t=Q;Q=Q+16|0;r=t;o[r>>2]=e;n=Df()|0;e=Nf()|0;j(n|0,e|0,o[r>>2]|0);Q=t;return}function Df(){return Zf()|0}function Nf(){return 7}function Zf(){return 3440}function kf(){return jf()|0}function xf(){return 7}function jf(){return 3448}function Wf(){return zf()|0}function Pf(){return 6}function zf(){return 3456}function Ef(){return Cf()|0}function Xf(){return 5}function Cf(){return 3464}function Gf(){return Yf()|0}function Lf(){return 4}function Yf(){return 3472}function Jf(){return Qf()|0}function Hf(){return 5}function Qf(){return 3480}function $f(){return qf()|0}function Kf(){return 4}function qf(){return 3488}function eh(){return rh()|0}function th(){return 3}function rh(){return 3496}function nh(){return oh()|0}function ih(){return 2}function oh(){return 3504}function sh(){return ch()|0}function ah(){return 1}function ch(){return 3512}function uh(){return dh()|0}function lh(){return 0}function dh(){return 3520}function fh(){return Ah()|0}function hh(){return 0}function Ah(){return 3528}function ph(){return 3536}function yh(){return 3544}function bh(){return 3576}function mh(){return 3600}function gh(){return 3624}function vh(){return 3648}function Bh(){return _h()|0}function _h(){return 4144}function Th(){return wh()|0}function wh(){return 4136}function Vh(){return Ih()|0}function Ih(){return 4128}function Fh(){return Uh()|0}function Uh(){return 4120}function Sh(){return Mh()|0}function Mh(){return 4112}function Oh(){return Rh()|0}function Rh(){return 4104}function Dh(){return Nh()|0}function Nh(){return 4096}function Zh(){return kh()|0}function kh(){return 4088}function xh(){return jh()|0}function jh(){return 4072}function Wh(){return Ph()|0}function Ph(){return 4080}function zh(){return Eh()|0}function Eh(){return 4064}function Xh(){return 4056}function Ch(){return 4040}function Gh(e){e=e|0;var t=0,r=0,n=0,i=0;t=Q;Q=Q+16|0;r=t+8|0;n=t+4|0;i=t;o[i>>2]=e;o[n>>2]=o[i>>2];o[r>>2]=o[(o[n>>2]|0)+4>>2];e=IA(o[r>>2]|0)|0;Q=t;return e|0}function Lh(){return 21636}function Yh(e){e=e|0;return(e+-48|0)>>>0<10|0}function Jh(){return 5576}function Hh(e,t){e=e|0;t=t|0;var r=0,i=0;r=n[e>>0]|0;i=n[t>>0]|0;if(r<<24>>24==0?1:r<<24>>24!=i<<24>>24)e=i;else{do{e=e+1|0;t=t+1|0;r=n[e>>0]|0;i=n[t>>0]|0}while(!(r<<24>>24==0?1:r<<24>>24!=i<<24>>24));e=i}return(r&255)-(e&255)|0}function Qh(e){e=e|0;var t=0,r=0,i=0;i=e;e:do{if(!(i&3))r=5;else{t=i;while(1){if(!(n[e>>0]|0)){e=t;break e}e=e+1|0;t=e;if(!(t&3)){r=5;break}}}}while(0);if((r|0)==5){while(1){t=o[e>>2]|0;if(!((t&-2139062144^-2139062144)&t+-16843009))e=e+4|0;else break}if((t&255)<<24>>24)do{e=e+1|0}while((n[e>>0]|0)!=0)}return e-i|0}function $h(e){e=e|0;return}function Kh(e){e=e|0;return 1}function qh(e){e=e|0;var t=0,r=0;t=e+74|0;r=n[t>>0]|0;n[t>>0]=r+255|r;t=o[e>>2]|0;if(!(t&8)){o[e+8>>2]=0;o[e+4>>2]=0;r=o[e+44>>2]|0;o[e+28>>2]=r;o[e+20>>2]=r;o[e+16>>2]=r+(o[e+48>>2]|0);e=0}else{o[e>>2]=t|32;e=-1}return e|0}function eA(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0,c=0,u=0;i=r+16|0;s=o[i>>2]|0;if(!s){if(!(qh(r)|0)){s=o[i>>2]|0;a=5}else i=0}else a=5;e:do{if((a|0)==5){u=r+20|0;c=o[u>>2]|0;i=c;if((s-c|0)>>>0<t>>>0){i=Eb[o[r+36>>2]&7](r,e,t)|0;break}t:do{if((n[r+75>>0]|0)<0|(t|0)==0){a=0;s=e}else{c=t;while(1){s=c+-1|0;if((n[e+s>>0]|0)==10)break;if(!s){a=0;s=e;break t}else c=s}i=Eb[o[r+36>>2]&7](r,e,c)|0;if(i>>>0<c>>>0)break e;a=c;s=e+c|0;t=t-c|0;i=o[u>>2]|0}}while(0);db(i|0,s|0,t|0)|0;o[u>>2]=(o[u>>2]|0)+t;i=a+t|0}}while(0);return i|0}function tA(e,t){e=e|0;t=t|0;if(!t)t=0;else t=rA(o[t>>2]|0,o[t+4>>2]|0,e)|0;return((t|0)==0?e:t)|0}function rA(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0;A=(o[e>>2]|0)+1794895138|0;a=nA(o[e+8>>2]|0,A)|0;i=nA(o[e+12>>2]|0,A)|0;s=nA(o[e+16>>2]|0,A)|0;e:do{if((a>>>0<t>>>2>>>0?(h=t-(a<<2)|0,i>>>0<h>>>0&s>>>0<h>>>0):0)?((s|i)&3|0)==0:0){h=i>>>2;f=s>>>2;d=0;while(1){u=a>>>1;l=d+u|0;c=l<<1;s=c+h|0;i=nA(o[e+(s<<2)>>2]|0,A)|0;s=nA(o[e+(s+1<<2)>>2]|0,A)|0;if(!(s>>>0<t>>>0&i>>>0<(t-s|0)>>>0)){i=0;break e}if(n[e+(s+i)>>0]|0){i=0;break e}i=Hh(r,e+s|0)|0;if(!i)break;i=(i|0)<0;if((a|0)==1){i=0;break e}d=i?d:l;a=i?u:a-u|0}i=c+f|0;s=nA(o[e+(i<<2)>>2]|0,A)|0;i=nA(o[e+(i+1<<2)>>2]|0,A)|0;if(i>>>0<t>>>0&s>>>0<(t-i|0)>>>0)i=(n[e+(i+s)>>0]|0)==0?e+i|0:0;else i=0}else i=0}while(0);return i|0}function nA(e,t){e=e|0;t=t|0;var r=0;r=lb(e|0)|0;return((t|0)==0?e:r)|0}function iA(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0;a=t&255;i=(r|0)!=0;e:do{if(i&(e&3|0)!=0){s=t&255;while(1){if((n[e>>0]|0)==s<<24>>24){s=6;break e}e=e+1|0;r=r+-1|0;i=(r|0)!=0;if(!(i&(e&3|0)!=0)){s=5;break}}}else s=5}while(0);if((s|0)==5)if(i)s=6;else e=0;e:do{if((s|0)==6){if((n[e>>0]|0)!=(t&255)<<24>>24){i=g(a,16843009)|0;t:do{if(r>>>0>3)do{a=o[e>>2]^i;if((a&-2139062144^-2139062144)&a+-16843009|0)break t;e=e+4|0;r=r+-4|0}while(r>>>0>3)}while(0)}if(!r)e=0;else{i=t&255;while(1){if((n[e>>0]|0)==i<<24>>24)break e;r=r+-1|0;if(!r){e=0;break}else e=e+1|0}}}}while(0);return e|0}function oA(e,t,r){e=e|0;t=t|0;r=r|0;return cA(e,t,r,1,8)|0}function sA(e,t,r,i,a,c){e=e|0;t=+t;r=r|0;i=i|0;a=a|0;c=c|0;var u=0,l=0,d=0,f=0,h=0,A=0,p=0,y=0.0,b=0,m=0,v=0,B=0,_=0,w=0,V=0,I=0,F=0,U=0,S=0,M=0,O=0,R=0,D=0;D=Q;Q=Q+560|0;d=D+32|0;B=D+536|0;R=D;O=R;f=D+540|0;o[B>>2]=0;M=f+12|0;vA(t)|0;u=T()|0;if((u|0)<0){t=-t;vA(t)|0;S=1;U=20247;u=T()|0}else{S=(a&2049|0)!=0&1;U=(a&2048|0)==0?(a&1|0)==0?20248:20253:20250}do{if(0==0&(u&2146435072|0)==2146435072){R=(c&32|0)!=0;u=S+3|0;yA(e,32,r,u,a&-65537);lA(e,U,S);lA(e,t!=t|0.0!=0.0?R?20274:20278:R?20266:20270,3);yA(e,32,r,u,a^8192)}else{y=+BA(t,B)*2.0;u=y!=0.0;if(u)o[B>>2]=(o[B>>2]|0)+-1;v=c|32;if((v|0)==97){A=c&32;b=(A|0)==0?U:U+9|0;p=S|2;u=12-i|0;do{if(!(i>>>0>11|(u|0)==0)){t=8.0;do{u=u+-1|0;t=t*16.0}while((u|0)!=0);if((n[b>>0]|0)==45){t=-(t+(-y-t));break}else{t=y+t-t;break}}else t=y}while(0);l=o[B>>2]|0;u=(l|0)<0?0-l|0:l;u=pA(u,((u|0)<0)<<31>>31,M)|0;if((u|0)==(M|0)){u=f+11|0;n[u>>0]=48}n[u+-1>>0]=(l>>31&2)+43;h=u+-2|0;n[h>>0]=c+15;l=(i|0)<1;d=(a&8|0)==0;f=R;do{S=~~t;u=f+1|0;n[f>>0]=A|s[640+S>>0];t=(t-+(S|0))*16.0;if((u-O|0)==1?!(d&(l&t==0.0)):0){n[u>>0]=46;f=f+2|0}else f=u}while(t!=0.0);if((i|0)!=0?(-2-O+f|0)<(i|0):0){l=M;d=h;u=i+2+l-d|0}else{l=M;d=h;u=l-O-d+f|0}M=u+p|0;yA(e,32,r,M,a);lA(e,b,p);yA(e,48,r,M,a^65536);O=f-O|0;lA(e,R,O);R=l-d|0;yA(e,48,u-(O+R)|0,0,0);lA(e,h,R);yA(e,32,r,M,a^8192);u=M;break}l=(i|0)<0?6:i;if(u){u=(o[B>>2]|0)+-28|0;o[B>>2]=u;t=y*268435456.0}else{t=y;u=o[B>>2]|0}F=(u|0)<0?d:d+288|0;d=F;do{V=~~t>>>0;o[d>>2]=V;d=d+4|0;t=(t-+(V>>>0))*1.0e9}while(t!=0.0);V=F;if((u|0)>0){A=F;while(1){h=(u|0)<29?u:29;u=d+-4|0;if(u>>>0>=A>>>0){f=0;do{m=cb(o[u>>2]|0,0,h|0)|0;m=rb(m|0,T()|0,f|0,0)|0;_=T()|0;f=sb(m|0,_|0,1e9,0)|0;w=tb(f|0,T()|0,1e9,0)|0;w=nb(m|0,_|0,w|0,T()|0)|0;T()|0;o[u>>2]=w;u=u+-4|0}while(u>>>0>=A>>>0);if(f){w=A+-4|0;o[w>>2]=f;f=w}else f=A}else f=A;e:do{if(d>>>0>f>>>0){u=d;while(1){d=u+-4|0;if(o[d>>2]|0){d=u;break e}if(d>>>0>f>>>0)u=d;else break}}}while(0);u=(o[B>>2]|0)-h|0;o[B>>2]=u;if((u|0)>0)A=f;else break}}else f=F;if((u|0)<0){i=((l+25|0)/9|0)+1|0;m=(v|0)==102;do{b=0-u|0;b=(b|0)<9?b:9;if(f>>>0<d>>>0){h=(1<<b)+-1|0;A=1e9>>>b;p=0;u=f;do{w=o[u>>2]|0;o[u>>2]=(w>>>b)+p;p=g(w&h,A)|0;u=u+4|0}while(u>>>0<d>>>0);f=(o[f>>2]|0)==0?f+4|0:f;if(p){o[d>>2]=p;d=d+4|0}}else f=(o[f>>2]|0)==0?f+4|0:f;u=m?F:f;d=(d-u>>2|0)>(i|0)?u+(i<<2)|0:d;u=(o[B>>2]|0)+b|0;o[B>>2]=u}while((u|0)<0);m=f}else m=f;if(m>>>0<d>>>0){u=(V-m>>2)*9|0;h=o[m>>2]|0;if(h>>>0>=10){f=10;do{f=f*10|0;u=u+1|0}while(h>>>0>=f>>>0)}}else u=0;_=(v|0)==103;w=(l|0)!=0;f=l-((v|0)==102?0:u)+((w&_)<<31>>31)|0;if((f|0)<(((d-V>>2)*9|0)+-9|0)){B=f+9216|0;f=(B|0)/9|0;i=F+4+(f+-1024<<2)|0;f=B-(f*9|0)|0;if((f|0)<8){h=10;while(1){h=h*10|0;if((f|0)<7)f=f+1|0;else break}}else h=10;p=o[i>>2]|0;f=(p>>>0)/(h>>>0)|0;b=p-(g(f,h)|0)|0;A=(i+4|0)==(d|0);if(!(A&(b|0)==0)){y=(f&1|0)==0?9007199254740992.0:9007199254740994.0;B=h>>>1;t=b>>>0<B>>>0?.5:A&(b|0)==(B|0)?1.0:1.5;if(S){B=(n[U>>0]|0)==45;t=B?-t:t;y=B?-y:y}f=p-b|0;o[i>>2]=f;if(y+t!=y){B=f+h|0;o[i>>2]=B;if(B>>>0>999999999){h=i;u=m;while(1){f=h+-4|0;o[h>>2]=0;if(f>>>0<u>>>0){u=u+-4|0;o[u>>2]=0}B=(o[f>>2]|0)+1|0;o[f>>2]=B;if(B>>>0>999999999)h=f;else{h=u;break}}}else{f=i;h=m}u=(V-h>>2)*9|0;p=o[h>>2]|0;if(p>>>0>=10){A=10;do{A=A*10|0;u=u+1|0}while(p>>>0>=A>>>0)}}else{f=i;h=m}}else{f=i;h=m}B=f+4|0;d=d>>>0>B>>>0?B:d}else h=m;i=0-u|0;e:do{if(d>>>0>h>>>0)while(1){f=d+-4|0;if(o[f>>2]|0){B=d;v=1;break e}if(f>>>0>h>>>0)d=f;else{B=f;v=0;break}}else{B=d;v=0}}while(0);do{if(_){l=l+((w^1)&1)|0;if((l|0)>(u|0)&(u|0)>-5){A=c+-1|0;l=l+-1-u|0}else{A=c+-2|0;l=l+-1|0}if(!(a&8)){if(v?(I=o[B+-4>>2]|0,(I|0)!=0):0){if(!((I>>>0)%10|0)){f=0;d=10;do{d=d*10|0;f=f+1|0}while(!((I>>>0)%(d>>>0)|0|0))}else f=0}else f=9;d=((B-V>>2)*9|0)+-9|0;if((A|32|0)==102){c=d-f|0;c=(c|0)>0?c:0;l=(l|0)<(c|0)?l:c;break}else{c=d+u-f|0;c=(c|0)>0?c:0;l=(l|0)<(c|0)?l:c;break}}}else A=c}while(0);m=(l|0)!=0;p=m?1:a>>>3&1;b=(A|32|0)==102;if(b){_=0;u=(u|0)>0?u:0}else{d=(u|0)<0?i:u;d=pA(d,((d|0)<0)<<31>>31,M)|0;f=M;if((f-d|0)<2)do{d=d+-1|0;n[d>>0]=48}while((f-d|0)<2);n[d+-1>>0]=(u>>31&2)+43;u=d+-2|0;n[u>>0]=A;_=u;u=f-u|0}u=S+1+l+p+u|0;yA(e,32,r,u,a);lA(e,U,S);yA(e,48,r,u,a^65536);if(b){p=h>>>0>F>>>0?F:h;b=R+9|0;h=b;A=R+8|0;f=p;do{d=pA(o[f>>2]|0,0,b)|0;if((f|0)==(p|0)){if((d|0)==(b|0)){n[A>>0]=48;d=A}}else if(d>>>0>R>>>0){hb(R|0,48,d-O|0)|0;do{d=d+-1|0}while(d>>>0>R>>>0)}lA(e,d,h-d|0);f=f+4|0}while(f>>>0<=F>>>0);if(!((a&8|0)==0&(m^1)))lA(e,20282,1);if(f>>>0<B>>>0&(l|0)>0)while(1){d=pA(o[f>>2]|0,0,b)|0;if(d>>>0>R>>>0){hb(R|0,48,d-O|0)|0;do{d=d+-1|0}while(d>>>0>R>>>0)}lA(e,d,(l|0)<9?l:9);f=f+4|0;d=l+-9|0;if(!(f>>>0<B>>>0&(l|0)>9)){l=d;break}else l=d}yA(e,48,l+9|0,9,0)}else{B=v?B:h+4|0;if(h>>>0<B>>>0&(l|0)>-1){i=R+9|0;m=(a&8|0)==0;v=i;p=0-O|0;b=R+8|0;A=h;do{d=pA(o[A>>2]|0,0,i)|0;if((d|0)==(i|0)){n[b>>0]=48;d=b}do{if((A|0)==(h|0)){f=d+1|0;lA(e,d,1);if(m&(l|0)<1){d=f;break}lA(e,20282,1);d=f}else{if(d>>>0<=R>>>0)break;hb(R|0,48,d+p|0)|0;do{d=d+-1|0}while(d>>>0>R>>>0)}}while(0);O=v-d|0;lA(e,d,(l|0)>(O|0)?O:l);l=l-O|0;A=A+4|0}while(A>>>0<B>>>0&(l|0)>-1)}yA(e,48,l+18|0,18,0);lA(e,_,M-_|0)}yA(e,32,r,u,a^8192)}}while(0);Q=D;return((u|0)<(r|0)?r:u)|0}function aA(e,t){e=e|0;t=t|0;var r=0.0,n=0;n=(o[t>>2]|0)+(8-1)&~(8-1);r=+u[n>>3];o[t>>2]=n+8;u[e>>3]=r;return}function cA(e,t,r,i,s){e=e|0;t=t|0;r=r|0;i=i|0;s=s|0;var a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0,y=0,b=0,m=0,g=0;g=Q;Q=Q+224|0;p=g+208|0;y=g+160|0;b=g+80|0;m=g;a=y;c=a+40|0;do{o[a>>2]=0;a=a+4|0}while((a|0)<(c|0));o[p>>2]=o[r>>2];if((uA(0,t,p,b,y,i,s)|0)<0)r=-1;else{if((o[e+76>>2]|0)>-1)A=Kh(e)|0;else A=0;r=o[e>>2]|0;h=r&32;if((n[e+74>>0]|0)<1)o[e>>2]=r&-33;a=e+48|0;if(!(o[a>>2]|0)){c=e+44|0;u=o[c>>2]|0;o[c>>2]=m;l=e+28|0;o[l>>2]=m;d=e+20|0;o[d>>2]=m;o[a>>2]=80;f=e+16|0;o[f>>2]=m+80;r=uA(e,t,p,b,y,i,s)|0;if(u){Eb[o[e+36>>2]&7](e,0,0)|0;r=(o[d>>2]|0)==0?-1:r;o[c>>2]=u;o[a>>2]=0;o[f>>2]=0;o[l>>2]=0;o[d>>2]=0}}else r=uA(e,t,p,b,y,i,s)|0;a=o[e>>2]|0;o[e>>2]=a|h;if(A|0)$h(e);r=(a&32|0)==0?r:-1}Q=g;return r|0}function uA(e,t,r,s,a,c,l){e=e|0;t=t|0;r=r|0;s=s|0;a=a|0;c=c|0;l=l|0;var d=0,f=0,h=0,A=0,p=0,y=0,b=0,m=0,g=0,v=0,B=0,_=0,w=0,V=0,I=0,F=0,U=0,S=0,M=0,O=0,R=0,D=0,N=0,Z=0,k=0;Z=Q;Q=Q+64|0;R=Z+56|0;N=Z+40|0;F=Z;S=Z+48|0;M=Z+60|0;o[R>>2]=t;w=(e|0)!=0;V=F+40|0;I=V;F=F+39|0;U=S+4|0;d=0;t=0;h=0;e:while(1){do{do{if((t|0)>-1)if((d|0)>(2147483647-t|0)){o[(Lh()|0)>>2]=61;t=-1;break}else{t=d+t|0;break}}while(0);b=o[R>>2]|0;d=n[b>>0]|0;if(!(d<<24>>24)){_=92;break e}f=b;t:while(1){switch(d<<24>>24){case 37:{_=10;break t}case 0:{d=f;break t}default:{}}B=f+1|0;o[R>>2]=B;d=n[B>>0]|0;f=B}t:do{if((_|0)==10){_=0;d=f;do{if((n[f+1>>0]|0)!=37)break t;d=d+1|0;f=f+2|0;o[R>>2]=f}while((n[f>>0]|0)==37)}}while(0);d=d-b|0;if(w)lA(e,b,d)}while((d|0)!=0);B=(Yh(n[(o[R>>2]|0)+1>>0]|0)|0)==0;f=o[R>>2]|0;if(!B?(n[f+2>>0]|0)==36:0){g=(n[f+1>>0]|0)+-48|0;p=1;d=3}else{g=-1;p=h;d=1}d=f+d|0;o[R>>2]=d;f=n[d>>0]|0;h=(f<<24>>24)+-32|0;if(h>>>0>31|(1<<h&75913|0)==0)A=0;else{A=0;do{A=1<<h|A;d=d+1|0;o[R>>2]=d;f=n[d>>0]|0;h=(f<<24>>24)+-32|0}while(!(h>>>0>31|(1<<h&75913|0)==0))}if(f<<24>>24==42){if((Yh(n[d+1>>0]|0)|0)!=0?(D=o[R>>2]|0,(n[D+2>>0]|0)==36):0){d=D+1|0;o[a+((n[d>>0]|0)+-48<<2)>>2]=10;d=o[s+((n[d>>0]|0)+-48<<3)>>2]|0;h=1;f=D+3|0}else{if(p|0){t=-1;break}if(w){B=(o[r>>2]|0)+(4-1)&~(4-1);d=o[B>>2]|0;o[r>>2]=B+4}else d=0;h=0;f=(o[R>>2]|0)+1|0}o[R>>2]=f;B=(d|0)<0;v=B?0-d|0:d;A=B?A|8192:A;B=h}else{d=dA(R)|0;if((d|0)<0){t=-1;break}v=d;B=p;f=o[R>>2]|0}do{if((n[f>>0]|0)==46){d=f+1|0;if((n[d>>0]|0)!=42){o[R>>2]=d;d=dA(R)|0;f=o[R>>2]|0;break}if(Yh(n[f+2>>0]|0)|0?(O=o[R>>2]|0,(n[O+3>>0]|0)==36):0){d=O+2|0;o[a+((n[d>>0]|0)+-48<<2)>>2]=10;d=o[s+((n[d>>0]|0)+-48<<3)>>2]|0;f=O+4|0;o[R>>2]=f;break}if(B|0){t=-1;break e}if(w){m=(o[r>>2]|0)+(4-1)&~(4-1);d=o[m>>2]|0;o[r>>2]=m+4}else d=0;f=(o[R>>2]|0)+2|0;o[R>>2]=f}else d=-1}while(0);m=0;while(1){if(((n[f>>0]|0)+-65|0)>>>0>57){t=-1;break e}h=f;f=f+1|0;o[R>>2]=f;h=n[(n[h>>0]|0)+-65+(176+(m*58|0))>>0]|0;p=h&255;if((p+-1|0)>>>0>=8)break;else m=p}if(!(h<<24>>24)){t=-1;break}y=(g|0)>-1;do{if(h<<24>>24==19){if(y){t=-1;break e}else _=54}else{if(y){o[a+(g<<2)>>2]=p;y=s+(g<<3)|0;g=o[y+4>>2]|0;_=N;o[_>>2]=o[y>>2];o[_+4>>2]=g;_=54;break}if(!w){t=0;break e}fA(N,p,r,l);f=o[R>>2]|0;_=55}}while(0);if((_|0)==54){_=0;if(w)_=55;else d=0}t:do{if((_|0)==55){_=0;f=n[f+-1>>0]|0;f=(m|0)!=0&(f&15|0)==3?f&-33:f;h=A&-65537;g=(A&8192|0)==0?A:h;r:do{switch(f|0){case 110:switch((m&255)<<24>>24){case 0:{o[o[N>>2]>>2]=t;d=0;break t}case 1:{o[o[N>>2]>>2]=t;d=0;break t}case 2:{d=o[N>>2]|0;o[d>>2]=t;o[d+4>>2]=((t|0)<0)<<31>>31;d=0;break t}case 3:{i[o[N>>2]>>1]=t;d=0;break t}case 4:{n[o[N>>2]>>0]=t;d=0;break t}case 6:{o[o[N>>2]>>2]=t;d=0;break t}case 7:{d=o[N>>2]|0;o[d>>2]=t;o[d+4>>2]=((t|0)<0)<<31>>31;d=0;break t}default:{d=0;break t}}case 112:{f=120;d=d>>>0>8?d:8;h=g|8;_=67;break}case 88:case 120:{h=g;_=67;break}case 111:{y=N;y=AA(o[y>>2]|0,o[y+4>>2]|0,V)|0;h=I-y|0;A=0;p=20230;d=(g&8|0)==0|(d|0)>(h|0)?d:h+1|0;h=g;_=73;break}case 105:case 100:{h=N;f=o[h>>2]|0;h=o[h+4>>2]|0;if((h|0)<0){f=nb(0,0,f|0,h|0)|0;h=T()|0;A=N;o[A>>2]=f;o[A+4>>2]=h;A=1;p=20230;_=72;break r}else{A=(g&2049|0)!=0&1;p=(g&2048|0)==0?(g&1|0)==0?20230:20232:20231;_=72;break r}}case 117:{h=N;A=0;p=20230;f=o[h>>2]|0;h=o[h+4>>2]|0;_=72;break}case 99:{n[F>>0]=o[N>>2];b=F;A=0;p=20230;y=1;f=h;d=I;break}case 115:{m=o[N>>2]|0;m=(m|0)==0?20240:m;g=iA(m,0,d)|0;k=(g|0)==0;b=m;A=0;p=20230;y=k?d:g-m|0;f=h;d=k?m+d|0:g;break}case 67:{o[S>>2]=o[N>>2];o[U>>2]=0;o[N>>2]=S;p=-1;_=79;break}case 83:{if(!d){yA(e,32,v,0,g);d=0;_=89}else{p=d;_=79}break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{d=Pb[c&1](e,+u[N>>3],v,d,g,f)|0;break t}default:{A=0;p=20230;y=d;f=g;d=I}}}while(0);r:do{if((_|0)==67){y=N;y=hA(o[y>>2]|0,o[y+4>>2]|0,V,f&32)|0;p=N;p=(h&8|0)==0|(o[p>>2]|0)==0&(o[p+4>>2]|0)==0;A=p?0:2;p=p?20230:20230+(f>>>4)|0;_=73}else if((_|0)==72){y=pA(f,h,V)|0;h=g;_=73}else if((_|0)==79){_=0;A=o[N>>2]|0;d=0;while(1){f=o[A>>2]|0;if(!f)break;f=bA(M,f)|0;h=(f|0)<0;if(h|f>>>0>(p-d|0)>>>0){_=83;break}d=f+d|0;if(p>>>0>d>>>0)A=A+4|0;else break}if((_|0)==83){_=0;if(h){t=-1;break e}}yA(e,32,v,d,g);if(!d){d=0;_=89}else{h=o[N>>2]|0;A=0;while(1){f=o[h>>2]|0;if(!f){_=89;break r}f=bA(M,f)|0;A=f+A|0;if((A|0)>(d|0)){_=89;break r}lA(e,M,f);if(A>>>0>=d>>>0){_=89;break}else h=h+4|0}}}}while(0);if((_|0)==73){_=0;f=N;f=(o[f>>2]|0)!=0|(o[f+4>>2]|0)!=0;k=(d|0)!=0|f;f=I-y+((f^1)&1)|0;b=k?y:V;y=k?(d|0)>(f|0)?d:f:0;f=(d|0)>-1?h&-65537:h;d=I}else if((_|0)==89){_=0;yA(e,32,v,d,g^8192);d=(v|0)>(d|0)?v:d;break}g=d-b|0;m=(y|0)<(g|0)?g:y;k=m+A|0;d=(v|0)<(k|0)?k:v;yA(e,32,d,k,f);lA(e,p,A);yA(e,48,d,k,f^65536);yA(e,48,m,g,0);lA(e,b,g);yA(e,32,d,k,f^8192)}}while(0);h=B}e:do{if((_|0)==92)if(!e)if(!h)t=0;else{t=1;while(1){d=o[a+(t<<2)>>2]|0;if(!d)break;fA(s+(t<<3)|0,d,r,l);t=t+1|0;if(t>>>0>=10){t=1;break e}}while(1){if(o[a+(t<<2)>>2]|0){t=-1;break e}t=t+1|0;if(t>>>0>=10){t=1;break}}}}while(0);Q=Z;return t|0}function lA(e,t,r){e=e|0;t=t|0;r=r|0;if(!(o[e>>2]&32))eA(t,r,e)|0;return}function dA(e){e=e|0;var t=0,r=0;if(!(Yh(n[o[e>>2]>>0]|0)|0))t=0;else{t=0;do{r=o[e>>2]|0;t=(t*10|0)+-48+(n[r>>0]|0)|0;r=r+1|0;o[e>>2]=r}while((Yh(n[r>>0]|0)|0)!=0)}return t|0}function fA(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,s=0.0;e:do{if(t>>>0<=20)do{switch(t|0){case 9:{t=(o[r>>2]|0)+(4-1)&~(4-1);n=o[t>>2]|0;o[r>>2]=t+4;o[e>>2]=n;break e}case 10:{n=(o[r>>2]|0)+(4-1)&~(4-1);t=o[n>>2]|0;o[r>>2]=n+4;n=e;o[n>>2]=t;o[n+4>>2]=((t|0)<0)<<31>>31;break e}case 11:{n=(o[r>>2]|0)+(4-1)&~(4-1);t=o[n>>2]|0;o[r>>2]=n+4;n=e;o[n>>2]=t;o[n+4>>2]=0;break e}case 12:{n=(o[r>>2]|0)+(8-1)&~(8-1);t=n;i=o[t>>2]|0;t=o[t+4>>2]|0;o[r>>2]=n+8;n=e;o[n>>2]=i;o[n+4>>2]=t;break e}case 13:{i=(o[r>>2]|0)+(4-1)&~(4-1);n=o[i>>2]|0;o[r>>2]=i+4;n=(n&65535)<<16>>16;i=e;o[i>>2]=n;o[i+4>>2]=((n|0)<0)<<31>>31;break e}case 14:{i=(o[r>>2]|0)+(4-1)&~(4-1);n=o[i>>2]|0;o[r>>2]=i+4;i=e;o[i>>2]=n&65535;o[i+4>>2]=0;break e}case 15:{i=(o[r>>2]|0)+(4-1)&~(4-1);n=o[i>>2]|0;o[r>>2]=i+4;n=(n&255)<<24>>24;i=e;o[i>>2]=n;o[i+4>>2]=((n|0)<0)<<31>>31;break e}case 16:{i=(o[r>>2]|0)+(4-1)&~(4-1);n=o[i>>2]|0;o[r>>2]=i+4;i=e;o[i>>2]=n&255;o[i+4>>2]=0;break e}case 17:{i=(o[r>>2]|0)+(8-1)&~(8-1);s=+u[i>>3];o[r>>2]=i+8;u[e>>3]=s;break e}case 18:{Gb[n&15](e,r);break e}default:break e}}while(0)}while(0);return}function hA(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;if(!((e|0)==0&(t|0)==0))do{r=r+-1|0;n[r>>0]=s[640+(e&15)>>0]|0|i;e=ab(e|0,t|0,4)|0;t=T()|0}while(!((e|0)==0&(t|0)==0));return r|0}function AA(e,t,r){e=e|0;t=t|0;r=r|0;if(!((e|0)==0&(t|0)==0))do{r=r+-1|0;n[r>>0]=e&7|48;e=ab(e|0,t|0,3)|0;t=T()|0}while(!((e|0)==0&(t|0)==0));return r|0}function pA(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,o=0,s=0;if(t>>>0>0|(t|0)==0&e>>>0>4294967295){do{i=e;e=sb(e|0,t|0,10,0)|0;o=t;t=T()|0;s=tb(e|0,t|0,10,0)|0;s=nb(i|0,o|0,s|0,T()|0)|0;T()|0;r=r+-1|0;n[r>>0]=s&255|48}while(o>>>0>9|(o|0)==9&i>>>0>4294967295);t=e}else t=e;if(t)do{s=t;t=(t>>>0)/10|0;r=r+-1|0;n[r>>0]=s-(t*10|0)|48}while(s>>>0>=10);return r|0}function yA(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,s=0;s=Q;Q=Q+256|0;o=s;if((r|0)>(n|0)&(i&73728|0)==0){i=r-n|0;hb(o|0,t<<24>>24|0,(i>>>0<256?i:256)|0)|0;if(i>>>0>255){t=r-n|0;do{lA(e,o,256);i=i+-256|0}while(i>>>0>255);i=t&255}lA(e,o,i)}Q=s;return}function bA(e,t){e=e|0;t=t|0;if(!e)e=0;else e=mA(e,t,0)|0;return e|0}function mA(e,t,r){e=e|0;t=t|0;r=r|0;do{if(e){if(t>>>0<128){n[e>>0]=t;e=1;break}if(!(o[o[(gA()|0)+176>>2]>>2]|0))if((t&-128|0)==57216){n[e>>0]=t;e=1;break}else{o[(Lh()|0)>>2]=25;e=-1;break}if(t>>>0<2048){n[e>>0]=t>>>6|192;n[e+1>>0]=t&63|128;e=2;break}if(t>>>0<55296|(t&-8192|0)==57344){n[e>>0]=t>>>12|224;n[e+1>>0]=t>>>6&63|128;n[e+2>>0]=t&63|128;e=3;break}if((t+-65536|0)>>>0<1048576){n[e>>0]=t>>>18|240;n[e+1>>0]=t>>>12&63|128;n[e+2>>0]=t>>>6&63|128;n[e+3>>0]=t&63|128;e=4;break}else{o[(Lh()|0)>>2]=25;e=-1;break}}else e=1}while(0);return e|0}function gA(){return Jh()|0}function vA(e){e=+e;var t=0;u[l>>3]=e;t=o[l>>2]|0;_(o[l+4>>2]|0);return t|0}function BA(e,t){e=+e;t=t|0;var r=0,n=0,i=0;u[l>>3]=e;r=o[l>>2]|0;n=o[l+4>>2]|0;i=ab(r|0,n|0,52)|0;T()|0;switch(i&2047){case 0:{if(e!=0.0){e=+BA(e*18446744073709551616.0,t);r=(o[t>>2]|0)+-64|0}else r=0;o[t>>2]=r;break}case 2047:break;default:{o[t>>2]=(i&2047)+-1022;o[l>>2]=r;o[l+4>>2]=n&-2146435073|1071644672;e=+u[l>>3]}}return+e}function _A(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,o=0;e:do{if(!r)e=0;else{while(1){i=n[e>>0]|0;o=n[t>>0]|0;if(i<<24>>24!=o<<24>>24)break;r=r+-1|0;if(!r){e=0;break e}else{e=e+1|0;t=t+1|0}}e=(i&255)-(o&255)|0}}while(0);return e|0}function TA(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,s=0;i=Q;Q=Q+16|0;s=i;o[s>>2]=n;n=wA(e,t,r,s)|0;Q=i;return n|0}function wA(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var s=0,a=0,c=0,u=0;u=Q;Q=Q+160|0;s=u+144|0;c=u;db(c|0,3672,144)|0;if((t+-1|0)>>>0>2147483646){if(!t){e=s;t=1;a=4}else{o[(Lh()|0)>>2]=61;t=-1}}else a=4;if((a|0)==4){a=-2-e|0;a=t>>>0>a>>>0?a:t;o[c+48>>2]=a;s=c+20|0;o[s>>2]=e;o[c+44>>2]=e;t=e+a|0;e=c+16|0;o[e>>2]=t;o[c+28>>2]=t;t=oA(c,r,i)|0;if(a){c=o[s>>2]|0;n[c+(((c|0)==(o[e>>2]|0))<<31>>31)>>0]=0}}Q=u;return t|0}function VA(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=e+20|0;i=o[n>>2]|0;e=(o[e+16>>2]|0)-i|0;e=e>>>0>r>>>0?r:e;db(i|0,t|0,e|0)|0;o[n>>2]=(o[n>>2]|0)+e;return r|0}function IA(e){e=e|0;var t=0,r=0;t=(Qh(e)|0)+1|0;r=Jy(t)|0;if(!r)e=0;else e=db(r|0,e|0,t|0)|0;return e|0}function FA(e,t){e=e|0;t=t|0;var r=0,i=0;r=0;while(1){if((s[656+r>>0]|0)==(e|0)){i=4;break}r=r+1|0;if((r|0)==87){e=87;i=5;break}}if((i|0)==4)if(!r)r=752;else{e=r;i=5}if((i|0)==5){r=752;do{do{i=r;r=r+1|0}while((n[i>>0]|0)!=0);e=e+-1|0}while((e|0)!=0)}return UA(r,o[t+20>>2]|0)|0}function UA(e,t){e=e|0;t=t|0;return tA(e,t)|0}function SA(e){e=e|0;return FA(e,o[(MA()|0)+176>>2]|0)|0}function MA(){return Jh()|0}function OA(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;i=SA(e)|0;e=Qh(i)|0;if(e>>>0>=r>>>0){e=r+-1|0;if(!r)e=68;else{db(t|0,i|0,e|0)|0;n[t+e>>0]=0;e=68}}else{db(t|0,i|0,e+1|0)|0;e=0}return e|0}function RA(){var e=0,t=0,r=0,n=0,i=0,s=0,a=0;n=Q;Q=Q+48|0;s=n+32|0;t=n+24|0;a=n+16|0;i=n;n=n+36|0;e=DA()|0;if(e|0?(r=o[e>>2]|0,r|0):0){e=r+48|0;if(!(NA(e)|0)){o[t>>2]=20420;kA(20370,t)}t=ZA(e)|0;if((t|0)==1126902529&(T()|0)==1129074247)e=o[r+44>>2]|0;else e=r+80|0;o[n>>2]=e;r=o[r>>2]|0;e=o[r+4>>2]|0;if(Eb[o[(o[954]|0)+16>>2]&7](3816,r,n)|0){a=o[n>>2]|0;a=Wb[o[(o[a>>2]|0)+8>>2]&15](a)|0;o[i>>2]=20420;o[i+4>>2]=e;o[i+8>>2]=a;kA(20284,i)}else{o[a>>2]=20420;o[a+4>>2]=e;kA(20329,a)}}kA(20408,s)}function DA(){return 21640}function NA(e){e=e|0;e=ZA(e)|0;return(e&-256|0)==1126902528&(T()|0)==1129074247|0}function ZA(e){e=e|0;var t=0;t=e;e=o[t>>2]|0;_(o[t+4>>2]|0);return e|0}function kA(e,t){e=e|0;t=t|0;H()}function xA(e){e=e|0;return}function jA(e){e=e|0;xA(e);ep(e);return}function WA(e){e=e|0;return}function PA(e){e=e|0;return}function zA(e,t,r){e=e|0;t=t|0;r=r|0;var s=0,a=0,c=0,u=0,l=0,d=0;d=Q;Q=Q+64|0;u=d;if(!(GA(e,t,0)|0)){if((t|0)!=0?(l=HA(t,3840,3824,0)|0,(l|0)!=0):0){o[u>>2]=l;o[u+4>>2]=0;o[u+8>>2]=e;o[u+12>>2]=-1;e=u+16|0;t=u+24|0;s=u+48|0;a=e;c=a+36|0;do{o[a>>2]=0;a=a+4|0}while((a|0)<(c|0));i[e+36>>1]=0;n[e+38>>0]=0;o[s>>2]=1;Yb[o[(o[l>>2]|0)+28>>2]&7](l,u,o[r>>2]|0,1);if((o[t>>2]|0)==1){o[r>>2]=o[e>>2];e=1}else e=0}else e=0}else e=1;Q=d;return e|0}function EA(e,t,r,n,i,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;s=s|0;if(GA(e,o[t+8>>2]|0,s)|0)JA(0,t,r,n,i);return}function XA(e,t,r,i,s){e=e|0;t=t|0;r=r|0;i=i|0;s=s|0;var a=0;do{if(!(GA(e,o[t+8>>2]|0,s)|0)){if(GA(e,o[t>>2]|0,s)|0){if((o[t+16>>2]|0)!=(r|0)?(a=t+20|0,(o[a>>2]|0)!=(r|0)):0){o[t+32>>2]=i;o[a>>2]=r;s=t+40|0;o[s>>2]=(o[s>>2]|0)+1;if((o[t+36>>2]|0)==1?(o[t+24>>2]|0)==2:0)n[t+54>>0]=1;o[t+44>>2]=4;break}if((i|0)==1)o[t+32>>2]=1}}else YA(0,t,r,i)}while(0);return}function CA(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;if(GA(e,o[t+8>>2]|0,0)|0)LA(0,t,r,n);return}function GA(e,t,r){e=e|0;t=t|0;r=r|0;if(r){if((e|0)==(t|0))e=1;else e=(Hh(o[e+4>>2]|0,o[t+4>>2]|0)|0)==0}else e=(o[e+4>>2]|0)==(o[t+4>>2]|0);return e|0}function LA(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var s=0;e=t+16|0;s=o[e>>2]|0;do{if(s){if((s|0)!=(r|0)){i=t+36|0;o[i>>2]=(o[i>>2]|0)+1;o[t+24>>2]=2;n[t+54>>0]=1;break}e=t+24|0;if((o[e>>2]|0)==2)o[e>>2]=i}else{o[e>>2]=r;o[t+24>>2]=i;o[t+36>>2]=1}}while(0);return}function YA(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;if((o[t+4>>2]|0)==(r|0)?(i=t+28|0,(o[i>>2]|0)!=1):0)o[i>>2]=n;return}function JA(e,t,r,i,s){e=e|0;t=t|0;r=r|0;i=i|0;s=s|0;n[t+53>>0]=1;do{if((o[t+4>>2]|0)==(i|0)){n[t+52>>0]=1;e=t+16|0;i=o[e>>2]|0;if(!i){o[e>>2]=r;o[t+24>>2]=s;o[t+36>>2]=1;if(!((s|0)==1?(o[t+48>>2]|0)==1:0))break;n[t+54>>0]=1;break}if((i|0)!=(r|0)){s=t+36|0;o[s>>2]=(o[s>>2]|0)+1;n[t+54>>0]=1;break}i=t+24|0;e=o[i>>2]|0;if((e|0)==2){o[i>>2]=s;e=s}if((e|0)==1?(o[t+48>>2]|0)==1:0)n[t+54>>0]=1}}while(0);return}function HA(e,t,r,s){e=e|0;t=t|0;r=r|0;s=s|0;var a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0;p=Q;Q=Q+64|0;h=p;f=o[e>>2]|0;A=e+(o[f+-8>>2]|0)|0;f=o[f+-4>>2]|0;o[h>>2]=r;o[h+4>>2]=e;o[h+8>>2]=t;o[h+12>>2]=s;e=h+16|0;t=h+20|0;s=h+24|0;a=h+28|0;c=h+32|0;u=h+40|0;l=e;d=l+36|0;do{o[l>>2]=0;l=l+4|0}while((l|0)<(d|0));i[e+36>>1]=0;n[e+38>>0]=0;e:do{if(GA(f,r,0)|0){o[h+48>>2]=1;Hb[o[(o[f>>2]|0)+20>>2]&3](f,h,A,A,1,0);e=(o[s>>2]|0)==1?A:0}else{Jb[o[(o[f>>2]|0)+24>>2]&3](f,h,A,1,0);switch(o[h+36>>2]|0){case 0:{e=(o[u>>2]|0)==1&(o[a>>2]|0)==1&(o[c>>2]|0)==1?o[t>>2]|0:0;break e}case 1:break;default:{e=0;break e}}if((o[s>>2]|0)!=1?!((o[u>>2]|0)==0&(o[a>>2]|0)==1&(o[c>>2]|0)==1):0){e=0;break}e=o[e>>2]|0}}while(0);Q=p;return e|0}function QA(e){e=e|0;xA(e);ep(e);return}function $A(e,t,r,n,i,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;s=s|0;if(GA(e,o[t+8>>2]|0,s)|0)JA(0,t,r,n,i);else{e=o[e+8>>2]|0;Hb[o[(o[e>>2]|0)+20>>2]&3](e,t,r,n,i,s)}return}function KA(e,t,r,i,s){e=e|0;t=t|0;r=r|0;i=i|0;s=s|0;var a=0,c=0,u=0;e:do{if(!(GA(e,o[t+8>>2]|0,s)|0)){if(!(GA(e,o[t>>2]|0,s)|0)){c=o[e+8>>2]|0;Jb[o[(o[c>>2]|0)+24>>2]&3](c,t,r,i,s);break}if((o[t+16>>2]|0)!=(r|0)?(c=t+20|0,(o[c>>2]|0)!=(r|0)):0){o[t+32>>2]=i;i=t+44|0;do{if((o[i>>2]|0)!=4){a=t+52|0;n[a>>0]=0;u=t+53|0;n[u>>0]=0;e=o[e+8>>2]|0;Hb[o[(o[e>>2]|0)+20>>2]&3](e,t,r,r,1,s);if(n[u>>0]|0){u=(n[a>>0]|0)==0;o[i>>2]=3;if(u)break;else break e}else{o[i>>2]=4;break}}}while(0);o[c>>2]=r;u=t+40|0;o[u>>2]=(o[u>>2]|0)+1;if((o[t+36>>2]|0)!=1)break;if((o[t+24>>2]|0)!=2)break;n[t+54>>0]=1;break}if((i|0)==1)o[t+32>>2]=1}else YA(0,t,r,i)}while(0);return}function qA(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;if(GA(e,o[t+8>>2]|0,0)|0)LA(0,t,r,n);else{e=o[e+8>>2]|0;Yb[o[(o[e>>2]|0)+28>>2]&7](e,t,r,n)}return}function ep(e){e=e|0;Hy(e);return}function tp(e){e|0;return}function rp(){var e=0,t=0;DA()|0;if((e|0?(o[e>>2]|0,t|0):0)?NA(t+48|0)|0:0)np(o[t+12>>2]|0);np(ip()|0)}function np(e){e|0;var t=0;Q;Q=Q+16|0;Xb[e&3]();kA(20559,t)}function ip(){return 2}function op(e){e=e|0;return}function sp(e){e=e|0;ep(e);return}function ap(e){e=e|0;return 20599}function cp(e){e=e|0;o[e>>2]=5916;fp(e+4|0);return}function up(e){e=e|0;cp(e);ep(e);return}function lp(e){e=e|0;return dp(e+4|0)|0}function dp(e){e=e|0;return o[e>>2]|0}function fp(e){e=e|0;var t=0,r=0;if(hp(e)|0?(t=Ap(o[e>>2]|0)|0,r=t+8|0,e=o[r>>2]|0,o[r>>2]=e+-1,(e|0)<1):0)ep(t);return}function hp(e){e=e|0;return 1}function Ap(e){e=e|0;return e+-12|0}function pp(e){e=e|0;o[e>>2]=5936;fp(e+4|0);return}function yp(e){e=e|0;pp(e);ep(e);return}function bp(e){e=e|0;return dp(e+4|0)|0}function mp(e){e=e|0;cp(e);ep(e);return}function gp(e){e=e|0;cp(e);ep(e);return}function vp(){var e=0;e=Q;Q=Q+16|0;kA(20848,e)}function Bp(e){e=e|0;xA(e);ep(e);return}function _p(e,t,r){e=e|0;t=t|0;r=r|0;return GA(e,t,0)|0}function Tp(e){e=e|0;xA(e);ep(e);return}function wp(e,t,r){e=e|0;t=t|0;r=r|0;var s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0;h=Q;Q=Q+64|0;d=h;do{if(!(GA(t,4048,0)|0)){if(Vp(e,t,0)|0){t=o[r>>2]|0;if(!t){t=1;break}o[r>>2]=o[t>>2];t=1;break}if((t|0)!=0?(s=HA(t,3840,3976,0)|0,(s|0)!=0):0){t=o[r>>2]|0;if(t|0)o[r>>2]=o[t>>2];t=o[s+8>>2]|0;c=e+8|0;a=o[c>>2]|0;if((t&7&(a^7)|0)==0?((t&96^96)&a|0)==0:0){a=e+12|0;e=o[a>>2]|0;s=s+12|0;t=o[s>>2]|0;if(!(GA(e,t,0)|0)){if(GA(e,4040,0)|0){if(!t){t=1;break}t=(HA(t,3840,3992,0)|0)==0;break}if(e){t=HA(e,3840,3976,0)|0;if(t|0){if(!(o[c>>2]&1)){t=0;break}t=Ip(t,o[s>>2]|0)|0;break}t=o[a>>2]|0;if(t){t=HA(t,3840,4008,0)|0;if(t|0){if(!(o[c>>2]&1)){t=0;break}t=Fp(t,o[s>>2]|0)|0;break}t=o[a>>2]|0;if((((t|0)!=0?(u=HA(t,3840,3824,0)|0,(u|0)!=0):0)?(l=o[s>>2]|0,(l|0)!=0):0)?(f=HA(l,3840,3824,0)|0,(f|0)!=0):0){o[d>>2]=f;o[d+4>>2]=0;o[d+8>>2]=u;o[d+12>>2]=-1;t=d+16|0;e=d+24|0;s=d+48|0;a=t;c=a+36|0;do{o[a>>2]=0;a=a+4|0}while((a|0)<(c|0));i[t+36>>1]=0;n[t+38>>0]=0;o[s>>2]=1;Yb[o[(o[f>>2]|0)+28>>2]&7](f,d,o[r>>2]|0,1);do{if((o[e>>2]|0)==1){if(!(o[r>>2]|0)){t=1;break}o[r>>2]=o[t>>2];t=1}else t=0}while(0)}else t=0}else t=0}else t=0}else t=1}else t=0}else t=0}else{o[r>>2]=0;t=1}}while(0);Q=h;return t|0}function Vp(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;if(!(o[e+8>>2]&24)){if((t|0)!=0?(n=HA(t,3840,3960,0)|0,(n|0)!=0):0){r=(o[n+8>>2]&24|0)!=0;i=5}else r=0}else{r=1;i=5}if((i|0)==5)r=GA(e,t,r)|0;return r|0}function Ip(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,s=0,a=0;while(1){if(!t){t=0;break}r=HA(t,3840,3976,0)|0;if(!r){t=0;break}i=o[e+8>>2]|0;if(o[r+8>>2]&~i|0){t=0;break}n=e+12|0;t=o[n>>2]|0;r=r+12|0;if(GA(t,o[r>>2]|0,0)|0){t=1;break}if((i&1|0)==0|(t|0)==0){t=0;break}e=HA(t,3840,3976,0)|0;if(!e){a=9;break}t=o[r>>2]|0}if((a|0)==9){t=o[n>>2]|0;if((t|0)!=0?(s=HA(t,3840,4008,0)|0,(s|0)!=0):0)t=Fp(s,o[r>>2]|0)|0;else t=0}return t|0}function Fp(e,t){e=e|0;t=t|0;var r=0;if((((t|0)!=0?(r=HA(t,3840,4008,0)|0,(r|0)!=0):0)?(o[r+8>>2]&~o[e+8>>2]|0)==0:0)?GA(o[e+12>>2]|0,o[r+12>>2]|0,0)|0:0)e=GA(o[e+16>>2]|0,o[r+16>>2]|0,0)|0;else e=0;return e|0}function Up(e){e=e|0;xA(e);ep(e);return}function Sp(e,t,r,i,s,a){e=e|0;t=t|0;r=r|0;i=i|0;s=s|0;a=a|0;var c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0,y=0,b=0;if(GA(e,o[t+8>>2]|0,a)|0)JA(0,t,r,i,s);else{b=t+52|0;u=n[b>>0]|0;y=t+53|0;c=n[y>>0]|0;p=o[e+12>>2]|0;f=e+16+(p<<3)|0;n[b>>0]=0;n[y>>0]=0;Dp(e+16|0,t,r,i,s,a);l=n[b>>0]|0;u=l|u;d=n[y>>0]|0;c=d|c;e:do{if((p|0)>1){h=t+24|0;A=e+8|0;p=t+54|0;e=e+24|0;do{c=c&1;u=u&1;if(n[p>>0]|0)break e;if(!(l<<24>>24)){if(d<<24>>24?(o[A>>2]&1|0)==0:0)break e}else{if((o[h>>2]|0)==1)break e;if(!(o[A>>2]&2))break e}n[b>>0]=0;n[y>>0]=0;Dp(e,t,r,i,s,a);l=n[b>>0]|0;u=l|u;d=n[y>>0]|0;c=d|c;e=e+8|0}while(e>>>0<f>>>0)}}while(0);n[b>>0]=u<<24>>24!=0&1;n[y>>0]=c<<24>>24!=0&1}return}function Mp(e,t,r,i,s){e=e|0;t=t|0;r=r|0;i=i|0;s=s|0;var a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0;e:do{if(!(GA(e,o[t+8>>2]|0,s)|0)){if(!(GA(e,o[t>>2]|0,s)|0)){p=o[e+12>>2]|0;l=e+16+(p<<3)|0;Np(e+16|0,t,r,i,s);a=e+24|0;if((p|0)<=1)break;e=o[e+8>>2]|0;if((e&2|0)==0?(u=t+36|0,(o[u>>2]|0)!=1):0){if(!(e&1)){e=t+54|0;while(1){if(n[e>>0]|0)break e;if((o[u>>2]|0)==1)break e;Np(a,t,r,i,s);a=a+8|0;if(a>>>0>=l>>>0)break e}}e=t+24|0;c=t+54|0;while(1){if(n[c>>0]|0)break e;if((o[u>>2]|0)==1?(o[e>>2]|0)==1:0)break e;Np(a,t,r,i,s);a=a+8|0;if(a>>>0>=l>>>0)break e}}e=t+54|0;while(1){if(n[e>>0]|0)break e;Np(a,t,r,i,s);a=a+8|0;if(a>>>0>=l>>>0)break e}}if((o[t+16>>2]|0)!=(r|0)?(p=t+20|0,(o[p>>2]|0)!=(r|0)):0){o[t+32>>2]=i;A=t+44|0;if((o[A>>2]|0)!=4){u=e+16+(o[e+12>>2]<<3)|0;l=t+52|0;i=t+53|0;d=t+54|0;f=e+8|0;h=t+24|0;a=0;c=e+16|0;e=0;t:while(1){if(c>>>0>=u>>>0){c=18;break}n[l>>0]=0;n[i>>0]=0;Dp(c,t,r,r,1,s);if(n[d>>0]|0){c=18;break}do{if(n[i>>0]|0){if(!(n[l>>0]|0))if(!(o[f>>2]&1)){c=19;break t}else{e=1;break}if((o[h>>2]|0)==1){a=1;c=19;break t}if(!(o[f>>2]&2)){a=1;c=19;break t}else{a=1;e=1}}}while(0);c=c+8|0}if((c|0)==18)if(e)c=19;else e=4;if((c|0)==19)e=3;o[A>>2]=e;if(a&1)break}o[p>>2]=r;r=t+40|0;o[r>>2]=(o[r>>2]|0)+1;if((o[t+36>>2]|0)!=1)break;if((o[t+24>>2]|0)!=2)break;n[t+54>>0]=1;break}if((i|0)==1)o[t+32>>2]=1}else YA(0,t,r,i)}while(0);return}function Op(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var s=0,a=0;e:do{if(!(GA(e,o[t+8>>2]|0,0)|0)){a=o[e+12>>2]|0;s=e+16+(a<<3)|0;Rp(e+16|0,t,r,i);if((a|0)>1){a=t+54|0;e=e+24|0;do{Rp(e,t,r,i);if(n[a>>0]|0)break e;e=e+8|0}while(e>>>0<s>>>0)}}else LA(0,t,r,i)}while(0);return}function Rp(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,s=0;s=o[e+4>>2]|0;if(r){i=s>>8;if(s&1)i=o[(o[r>>2]|0)+i>>2]|0}else i=0;e=o[e>>2]|0;Yb[o[(o[e>>2]|0)+28>>2]&7](e,t,r+i|0,(s&2|0)==0?2:n);return}function Dp(e,t,r,n,i,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;s=s|0;var a=0,c=0;c=o[e+4>>2]|0;a=c>>8;if(c&1)a=o[(o[n>>2]|0)+a>>2]|0;e=o[e>>2]|0;Hb[o[(o[e>>2]|0)+20>>2]&3](e,t,r,n+a|0,(c&2|0)==0?2:i,s);return}function Np(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var s=0,a=0;a=o[e+4>>2]|0;s=a>>8;if(a&1)s=o[(o[r>>2]|0)+s>>2]|0;e=o[e>>2]|0;Jb[o[(o[e>>2]|0)+24>>2]&3](e,t,r+s|0,(a&2|0)==0?2:n,i);return}function Zp(e){e=e|0;o[e>>2]=5896;return}function kp(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;xp(r,e);e=jp(r)|0;Q=t;return e|0}function xp(e,t){e=e|0;t=t|0;Xp(e,t);return}function jp(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;Wp(r,o[e+4>>2]|0);if(!((Pp(r)|0)<<24>>24))e=Ep(zp(e)|0)|0;else e=0;Q=t;return e|0}function Wp(e,t){e=e|0;t=t|0;o[e>>2]=t;return}function Pp(e){e=e|0;return n[o[e>>2]>>0]|0}function zp(e){e=e|0;return e|0}function Ep(e){e=e|0;var t=0,r=0,i=0,s=0;s=Q;Q=Q+16|0;i=s;e=o[e+8>>2]|0;t=n[e>>0]|0;do{if(t<<24>>24!=1){if(!(t&2)){n[e>>0]=2;r=1;break}else kA(20985,i)}else r=0}while(0);Q=s;return r|0}function Xp(e,t){e=e|0;t=t|0;o[e>>2]=t;o[e+4>>2]=t;o[e+8>>2]=t+1;o[e+12>>2]=0;return}function Cp(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;xp(r,e);Gp(r);Q=t;return}function Gp(e){e=e|0;var t=0,r=0;t=Q;Q=Q+16|0;r=t;Wp(r,o[e+4>>2]|0);Lp(r);Yp(zp(e)|0);Q=t;return}function Lp(e){e=e|0;n[o[e>>2]>>0]=1;return}function Yp(e){e=e|0;n[o[e+8>>2]>>0]=1;return}function Jp(){return 0}function Hp(e){e=e|0;var t=0,r=0;r=(e|0)==0?1:e;while(1){t=Jy(r)|0;if(t|0){e=6;break}e=Jp()|0;if(!e){e=5;break}Xb[e&3]()}if((e|0)==5){r=w(4)|0;Zp(r);I(r|0,3880,121)}else if((e|0)==6)return t|0;return 0}function Qp(e){e=e|0;return Hp(e)|0}function $p(e){e=e|0;ep(e);return}function Kp(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=Q;Q=Q+16|0;n=i;o[n>>2]=o[r>>2];e=Eb[o[(o[e>>2]|0)+16>>2]&7](e,t,n)|0;if(e)o[r>>2]=o[n>>2];Q=i;return e&1|0}function qp(e){e=e|0;if(!e)e=0;else e=(HA(e,3840,3976,0)|0)!=0&1;return e|0}function ey(e){e=e|0;return 0}function ty(){return(ry()|0)>0|0}function ry(){return F()|0}function ny(e){e=e|0;return}function iy(e){e=e|0;ny(e);ep(e);return}function oy(e){e=e|0;return 21039}function sy(e){e=e|0;return}function ay(e){e=e|0;var t=0,r=0;t=e+8|0;if(!((o[t>>2]|0)!=0?(r=o[t>>2]|0,o[t>>2]=r+-1,(r|0)!=0):0))Cb[o[(o[e>>2]|0)+16>>2]&255](e);return}function cy(e){e=e|0;e=ey(e)|0;if(!e)return;else Ly(e,21145)}function uy(e){e=e|0;return}function ly(e,t){e=e|0;t=t|0;var r=0,n=0;n=Qh(t)|0;r=Hp(n+13|0)|0;o[r>>2]=n;o[r+4>>2]=n;o[r+8>>2]=0;r=dy(r)|0;db(r|0,t|0,n+1|0)|0;o[e>>2]=r;return}function dy(e){e=e|0;return e+12|0}function fy(e,t){e=e|0;t=t|0;o[e>>2]=5916;ly(e+4|0,t);return}function hy(e,t){e=e|0;t=t|0;o[e>>2]=5936;ly(e+4|0,(n[t+11>>0]|0)<0?o[t>>2]|0:t);return}function Ay(e,t){e=e|0;t=t|0;o[e>>2]=5936;ly(e+4|0,t);return}function py(e){e=e|0;e=w(8)|0;fy(e,21163);o[e>>2]=5956;I(e|0,3928,123)}function yy(e){e=e|0;e=w(8)|0;fy(e,21163);o[e>>2]=5976;I(e|0,3944,123)}function by(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0,c=0;s=Q;Q=Q+16|0;i=s;if(r>>>0>4294967279)py(e);if(r>>>0<11)n[e+11>>0]=r;else{c=r+16&-16;a=Hp(c)|0;o[e>>2]=a;o[e+8>>2]=c|-2147483648;o[e+4>>2]=r;e=a}my(e,t,r)|0;n[i>>0]=0;it(e+r|0,i);Q=s;return}function my(e,t,r){e=e|0;t=t|0;r=r|0;if(r|0)db(e|0,t|0,r|0)|0;return e|0}function gy(e){e=e|0;if((n[e+11>>0]|0)<0)ve(o[e>>2]|0,o[e+8>>2]&2147483647);return}function vy(e,t,r,i,s,a,c,u){e=e|0;t=t|0;r=r|0;i=i|0;s=s|0;a=a|0;c=c|0;u=u|0;var l=0,d=0,f=0,h=0,A=0;A=Q;Q=Q+16|0;h=A;if((-18-t|0)>>>0<r>>>0)py(e);if((n[e+11>>0]|0)<0)f=o[e>>2]|0;else f=e;if(t>>>0<2147483623){l=r+t|0;d=t<<1;l=l>>>0<d>>>0?d:l;l=l>>>0<11?11:l+16&-16}else l=-17;d=Hp(l)|0;if(s|0)my(d,f,s)|0;if(c|0)my(d+s|0,u,c)|0;i=i-a|0;r=i-s|0;if(r|0)my(d+s+c|0,f+s+a|0,r)|0;r=t+1|0;if((r|0)!=11)ve(f,r);o[e>>2]=d;o[e+8>>2]=l|-2147483648;c=i+c|0;o[e+4>>2]=c;n[h>>0]=0;it(d+c|0,h);Q=A;return}function By(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0,c=0,u=0,l=0;l=Q;Q=Q+16|0;c=l;u=e+11|0;i=n[u>>0]|0;a=i<<24>>24<0;if(a){s=(o[e+8>>2]&2147483647)+-1|0;i=o[e+4>>2]|0}else{s=10;i=i&255}if((s-i|0)>>>0>=r>>>0){if(r|0){if(a)s=o[e>>2]|0;else s=e;my(s+i|0,t,r)|0;i=i+r|0;if((n[u>>0]|0)<0)o[e+4>>2]=i;else n[u>>0]=i;n[c>>0]=0;it(s+i|0,c)}}else vy(e,s,i+r-s|0,i,i,0,r,t);Q=l;return e|0}function _y(e,t){e=e|0;t=t|0;return By(e,t,rt(t)|0)|0}function Ty(e,t,r){e=e|0;t=t|0;r=r|0;if(!r)e=0;else e=_A(e,t,r)|0;return e|0}function wy(e,t,r,i,s){e=e|0;t=t|0;r=r|0;i=i|0;s=s|0;var a=0,c=0;a=n[e+11>>0]|0;c=a<<24>>24<0;if(c)a=o[e+4>>2]|0;else a=a&255;if((s|0)==-1|a>>>0<t>>>0)yy(e);a=a-t|0;r=a>>>0<r>>>0?a:r;if(c)e=o[e>>2]|0;a=r>>>0>s>>>0;e=Ty(e+t|0,i,a?s:r)|0;if(!e)return(r>>>0<s>>>0?-1:a&1)|0;else return e|0;return 0}function Vy(e){e=e|0;return}function Iy(e){e=e|0;ep(e);return}function Fy(e){e=e|0;return 21228}function Uy(e,t,r){e=e|0;t=t|0;r=r|0;o[e>>2]=r;o[e+4>>2]=t;return}function Sy(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=Q;Q=Q+16|0;n=i;Lb[o[(o[e>>2]|0)+12>>2]&15](n,e,t);if((o[n+4>>2]|0)==(o[r+4>>2]|0))e=(o[n>>2]|0)==(o[r>>2]|0);else e=0;Q=i;return e|0}function My(e,t,r){e=e|0;t=t|0;r=r|0;return((o[t>>2]|0)==(r|0)?(o[t+4>>2]|0)==(e|0):0)|0}function Oy(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)>256)by(e,21176,rt(21176)|0);else Ry(e,0,r);return}function Ry(e,t,r){e=e|0;t=t|0;r=r|0;Dy(e,r);return}function Dy(e,t){e=e|0;t=t|0;var r=0,i=0,s=0,a=0,c=0;c=Q;Q=Q+1040|0;s=c+1024|0;r=c;a=o[(Lh()|0)>>2]|0;i=Ny(OA(t,r,1024)|0,r)|0;if(!(n[i>>0]|0)){o[s>>2]=t;TA(r,1024,21211,s)|0}else r=i;o[(Lh()|0)>>2]=a;by(e,r,rt(r)|0);Q=c;return}function Ny(e,t){e=e|0;t=t|0;var r=0,n=0;switch(e|0){case 0:{r=t;break}case-1:{e=o[(Lh()|0)>>2]|0;n=3;break}default:n=3}if((n|0)==3)if((e|0)==28)r=22145;else C();return r|0}function Zy(e){e=e|0;ep(e);return}function ky(e){e=e|0;return 21353}function xy(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)>256){Wy()|0;t=6180}else{Py()|0;t=6176}o[e>>2]=r;o[e+4>>2]=t;return}function jy(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)>256)by(e,21319,rt(21319)|0);else Ry(e,0,r);return}function Wy(){if((n[21488]|0)==0?kp(21488)|0:0)Cp(21488);return 6180}function Py(){if((n[21480]|0)==0?kp(21480)|0:0)Cp(21480);return 6176}function zy(e){e=e|0;pp(e);return}function Ey(e){e=e|0;zy(e);ep(e);return}function Xy(e,t){e=e|0;t=t|0;var r=0;r=o[t+4>>2]|0;Lb[o[(o[r>>2]|0)+24>>2]&15](e,r,o[t>>2]|0);return}function Cy(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0;a=Q;Q=Q+16|0;s=a;if(o[t>>2]|0){i=n[r+11>>0]|0;if(i<<24>>24<0)i=o[r+4>>2]|0;else i=i&255;if(i|0)_y(r,21417)|0;Xy(s,t);t=n[s+11>>0]|0;i=t<<24>>24<0;By(r,i?o[s>>2]|0:s,i?o[s+4>>2]|0:t&255)|0;gy(s)}o[e>>2]=o[r>>2];o[e+4>>2]=o[r+4>>2];o[e+8>>2]=o[r+8>>2];i=0;while(1){if((i|0)==3)break;o[r+(i<<2)>>2]=0;i=i+1|0}Q=a;return}function Gy(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,s=0;n=Q;Q=Q+32|0;s=n+12|0;i=n;by(i,r,rt(r)|0);Cy(s,t,i);hy(e,s);gy(s);gy(i);o[e>>2]=6192;i=t;t=o[i+4>>2]|0;r=e+8|0;o[r>>2]=o[i>>2];o[r+4>>2]=t;Q=n;return}function Ly(e,t){e=e|0;t=t|0;var r=0,n=0,i=0;i=Q;Q=Q+16|0;n=i+8|0;r=w(16)|0;Wy()|0;o[i>>2]=e;o[i+4>>2]=6180;o[n>>2]=o[i>>2];o[n+4>>2]=o[i+4>>2];Gy(r,n,t);I(r|0,4272,136)}function Yy(e){e=e|0;e=w(8)|0;fy(e,21420);o[e>>2]=5956;I(e|0,3928,123)}function Jy(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0,y=0,b=0,m=0,g=0,v=0,B=0,_=0;_=Q;Q=Q+16|0;h=_;do{if(e>>>0<245){l=e>>>0<11?16:e+11&-8;e=l>>>3;f=o[5412]|0;r=f>>>e;if(r&3|0){t=(r&1^1)+e|0;e=21688+(t<<1<<2)|0;r=e+8|0;n=o[r>>2]|0;i=n+8|0;s=o[i>>2]|0;if((s|0)==(e|0))o[5412]=f&~(1<<t);else{o[s+12>>2]=e;o[r>>2]=s}B=t<<3;o[n+4>>2]=B|3;B=n+B+4|0;o[B>>2]=o[B>>2]|1;B=i;Q=_;return B|0}d=o[5414]|0;if(l>>>0>d>>>0){if(r|0){t=2<<e;t=r<<e&(t|0-t);t=(t&0-t)+-1|0;c=t>>>12&16;t=t>>>c;r=t>>>5&8;t=t>>>r;s=t>>>2&4;t=t>>>s;e=t>>>1&2;t=t>>>e;n=t>>>1&1;n=(r|c|s|e|n)+(t>>>n)|0;t=21688+(n<<1<<2)|0;e=t+8|0;s=o[e>>2]|0;c=s+8|0;r=o[c>>2]|0;if((r|0)==(t|0)){e=f&~(1<<n);o[5412]=e}else{o[r+12>>2]=t;o[e>>2]=r;e=f}B=n<<3;a=B-l|0;o[s+4>>2]=l|3;i=s+l|0;o[i+4>>2]=a|1;o[s+B>>2]=a;if(d|0){n=o[5417]|0;t=d>>>3;r=21688+(t<<1<<2)|0;t=1<<t;if(!(e&t)){o[5412]=e|t;t=r;e=r+8|0}else{e=r+8|0;t=o[e>>2]|0}o[e>>2]=n;o[t+12>>2]=n;o[n+8>>2]=t;o[n+12>>2]=r}o[5414]=a;o[5417]=i;B=c;Q=_;return B|0}s=o[5413]|0;if(s){r=(s&0-s)+-1|0;i=r>>>12&16;r=r>>>i;n=r>>>5&8;r=r>>>n;a=r>>>2&4;r=r>>>a;c=r>>>1&2;r=r>>>c;u=r>>>1&1;u=o[21952+((n|i|a|c|u)+(r>>>u)<<2)>>2]|0;r=u;c=u;u=(o[u+4>>2]&-8)-l|0;while(1){e=o[r+16>>2]|0;if(!e){e=o[r+20>>2]|0;if(!e)break}a=(o[e+4>>2]&-8)-l|0;i=a>>>0<u>>>0;r=e;c=i?e:c;u=i?a:u}a=c+l|0;if(a>>>0>c>>>0){i=o[c+24>>2]|0;t=o[c+12>>2]|0;do{if((t|0)==(c|0)){e=c+20|0;t=o[e>>2]|0;if(!t){e=c+16|0;t=o[e>>2]|0;if(!t){r=0;break}}while(1){n=t+20|0;r=o[n>>2]|0;if(!r){n=t+16|0;r=o[n>>2]|0;if(!r)break;else{t=r;e=n}}else{t=r;e=n}}o[e>>2]=0;r=t}else{r=o[c+8>>2]|0;o[r+12>>2]=t;o[t+8>>2]=r;r=t}}while(0);do{if(i|0){t=o[c+28>>2]|0;e=21952+(t<<2)|0;if((c|0)==(o[e>>2]|0)){o[e>>2]=r;if(!r){o[5413]=s&~(1<<t);break}}else{B=i+16|0;o[((o[B>>2]|0)==(c|0)?B:i+20|0)>>2]=r;if(!r)break}o[r+24>>2]=i;t=o[c+16>>2]|0;if(t|0){o[r+16>>2]=t;o[t+24>>2]=r}t=o[c+20>>2]|0;if(t|0){o[r+20>>2]=t;o[t+24>>2]=r}}}while(0);if(u>>>0<16){B=u+l|0;o[c+4>>2]=B|3;B=c+B+4|0;o[B>>2]=o[B>>2]|1}else{o[c+4>>2]=l|3;o[a+4>>2]=u|1;o[a+u>>2]=u;if(d|0){n=o[5417]|0;t=d>>>3;r=21688+(t<<1<<2)|0;t=1<<t;if(!(t&f)){o[5412]=t|f;t=r;e=r+8|0}else{e=r+8|0;t=o[e>>2]|0}o[e>>2]=n;o[t+12>>2]=n;o[n+8>>2]=t;o[n+12>>2]=r}o[5414]=u;o[5417]=a}B=c+8|0;Q=_;return B|0}else f=l}else f=l}else f=l}else if(e>>>0<=4294967231){e=e+11|0;l=e&-8;n=o[5413]|0;if(n){i=0-l|0;e=e>>>8;if(e){if(l>>>0>16777215)u=31;else{f=(e+1048320|0)>>>16&8;y=e<<f;c=(y+520192|0)>>>16&4;y=y<<c;u=(y+245760|0)>>>16&2;u=14-(c|f|u)+(y<<u>>>15)|0;u=l>>>(u+7|0)&1|u<<1}}else u=0;r=o[21952+(u<<2)>>2]|0;e:do{if(!r){r=0;e=0;y=61}else{e=0;c=l<<((u|0)==31?0:25-(u>>>1)|0);s=0;while(1){a=(o[r+4>>2]&-8)-l|0;if(a>>>0<i>>>0)if(!a){e=r;i=0;y=65;break e}else{e=r;i=a}y=o[r+20>>2]|0;r=o[r+16+(c>>>31<<2)>>2]|0;s=(y|0)==0|(y|0)==(r|0)?s:y;if(!r){r=s;y=61;break}else c=c<<1}}}while(0);if((y|0)==61){if((r|0)==0&(e|0)==0){e=2<<u;e=(e|0-e)&n;if(!e){f=l;break}f=(e&0-e)+-1|0;a=f>>>12&16;f=f>>>a;s=f>>>5&8;f=f>>>s;c=f>>>2&4;f=f>>>c;u=f>>>1&2;f=f>>>u;r=f>>>1&1;e=0;r=o[21952+((s|a|c|u|r)+(f>>>r)<<2)>>2]|0}if(!r){c=e;a=i}else y=65}if((y|0)==65){s=r;while(1){f=(o[s+4>>2]&-8)-l|0;r=f>>>0<i>>>0;i=r?f:i;e=r?s:e;r=o[s+16>>2]|0;if(!r)r=o[s+20>>2]|0;if(!r){c=e;a=i;break}else s=r}}if(((c|0)!=0?a>>>0<((o[5414]|0)-l|0)>>>0:0)?(d=c+l|0,d>>>0>c>>>0):0){s=o[c+24>>2]|0;t=o[c+12>>2]|0;do{if((t|0)==(c|0)){e=c+20|0;t=o[e>>2]|0;if(!t){e=c+16|0;t=o[e>>2]|0;if(!t){t=0;break}}while(1){i=t+20|0;r=o[i>>2]|0;if(!r){i=t+16|0;r=o[i>>2]|0;if(!r)break;else{t=r;e=i}}else{t=r;e=i}}o[e>>2]=0}else{B=o[c+8>>2]|0;o[B+12>>2]=t;o[t+8>>2]=B}}while(0);do{if(s){e=o[c+28>>2]|0;r=21952+(e<<2)|0;if((c|0)==(o[r>>2]|0)){o[r>>2]=t;if(!t){n=n&~(1<<e);o[5413]=n;break}}else{B=s+16|0;o[((o[B>>2]|0)==(c|0)?B:s+20|0)>>2]=t;if(!t)break}o[t+24>>2]=s;e=o[c+16>>2]|0;if(e|0){o[t+16>>2]=e;o[e+24>>2]=t}e=o[c+20>>2]|0;if(e){o[t+20>>2]=e;o[e+24>>2]=t}}}while(0);e:do{if(a>>>0<16){B=a+l|0;o[c+4>>2]=B|3;B=c+B+4|0;o[B>>2]=o[B>>2]|1}else{o[c+4>>2]=l|3;o[d+4>>2]=a|1;o[d+a>>2]=a;t=a>>>3;if(a>>>0<256){r=21688+(t<<1<<2)|0;e=o[5412]|0;t=1<<t;if(!(e&t)){o[5412]=e|t;t=r;e=r+8|0}else{e=r+8|0;t=o[e>>2]|0}o[e>>2]=d;o[t+12>>2]=d;o[d+8>>2]=t;o[d+12>>2]=r;break}t=a>>>8;if(t){if(a>>>0>16777215)r=31;else{v=(t+1048320|0)>>>16&8;B=t<<v;g=(B+520192|0)>>>16&4;B=B<<g;r=(B+245760|0)>>>16&2;r=14-(g|v|r)+(B<<r>>>15)|0;r=a>>>(r+7|0)&1|r<<1}}else r=0;t=21952+(r<<2)|0;o[d+28>>2]=r;e=d+16|0;o[e+4>>2]=0;o[e>>2]=0;e=1<<r;if(!(n&e)){o[5413]=n|e;o[t>>2]=d;o[d+24>>2]=t;o[d+12>>2]=d;o[d+8>>2]=d;break}t=o[t>>2]|0;t:do{if((o[t+4>>2]&-8|0)!=(a|0)){n=a<<((r|0)==31?0:25-(r>>>1)|0);while(1){r=t+16+(n>>>31<<2)|0;e=o[r>>2]|0;if(!e)break;if((o[e+4>>2]&-8|0)==(a|0)){t=e;break t}else{n=n<<1;t=e}}o[r>>2]=d;o[d+24>>2]=t;o[d+12>>2]=d;o[d+8>>2]=d;break e}}while(0);v=t+8|0;B=o[v>>2]|0;o[B+12>>2]=d;o[v>>2]=d;o[d+8>>2]=B;o[d+12>>2]=t;o[d+24>>2]=0}}while(0);B=c+8|0;Q=_;return B|0}else f=l}else f=l}else f=-1}while(0);r=o[5414]|0;if(r>>>0>=f>>>0){t=r-f|0;e=o[5417]|0;if(t>>>0>15){B=e+f|0;o[5417]=B;o[5414]=t;o[B+4>>2]=t|1;o[e+r>>2]=t;o[e+4>>2]=f|3}else{o[5414]=0;o[5417]=0;o[e+4>>2]=r|3;B=e+r+4|0;o[B>>2]=o[B>>2]|1}B=e+8|0;Q=_;return B|0}a=o[5415]|0;if(a>>>0>f>>>0){g=a-f|0;o[5415]=g;B=o[5418]|0;v=B+f|0;o[5418]=v;o[v+4>>2]=g|1;o[B+4>>2]=f|3;B=B+8|0;Q=_;return B|0}if(!(o[5530]|0)){o[5532]=4096;o[5531]=4096;o[5533]=-1;o[5534]=-1;o[5535]=0;o[5523]=0;o[5530]=h&-16^1431655768;e=4096}else e=o[5532]|0;c=f+48|0;u=f+47|0;s=e+u|0;i=0-e|0;l=s&i;if(l>>>0<=f>>>0){B=0;Q=_;return B|0}e=o[5522]|0;if(e|0?(d=o[5520]|0,h=d+l|0,h>>>0<=d>>>0|h>>>0>e>>>0):0){B=0;Q=_;return B|0}e:do{if(!(o[5523]&4)){r=o[5418]|0;t:do{if(r){n=22096;while(1){h=o[n>>2]|0;if(h>>>0<=r>>>0?(h+(o[n+4>>2]|0)|0)>>>0>r>>>0:0)break;e=o[n+8>>2]|0;if(!e){y=128;break t}else n=e}t=s-a&i;if(t>>>0<2147483647){e=Qy(t)|0;if((e|0)==((o[n>>2]|0)+(o[n+4>>2]|0)|0)){if((e|0)!=(-1|0)){a=t;s=e;y=145;break e}}else{n=e;y=136}}else t=0}else y=128}while(0);do{if((y|0)==128){r=Qy(0)|0;if((r|0)!=(-1|0)?(t=r,A=o[5531]|0,p=A+-1|0,t=((p&t|0)==0?0:(p+t&0-A)-t|0)+l|0,A=o[5520]|0,p=t+A|0,t>>>0>f>>>0&t>>>0<2147483647):0){h=o[5522]|0;if(h|0?p>>>0<=A>>>0|p>>>0>h>>>0:0){t=0;break}e=Qy(t)|0;if((e|0)==(r|0)){a=t;s=r;y=145;break e}else{n=e;y=136}}else t=0}}while(0);do{if((y|0)==136){r=0-t|0;if(!(c>>>0>t>>>0&(t>>>0<2147483647&(n|0)!=(-1|0))))if((n|0)==(-1|0)){t=0;break}else{a=t;s=n;y=145;break e}e=o[5532]|0;e=u-t+e&0-e;if(e>>>0>=2147483647){a=t;s=n;y=145;break e}if((Qy(e)|0)==(-1|0)){Qy(r)|0;t=0;break}else{a=e+t|0;s=n;y=145;break e}}}while(0);o[5523]=o[5523]|4;y=143}else{t=0;y=143}}while(0);if(((y|0)==143?l>>>0<2147483647:0)?(g=Qy(l)|0,p=Qy(0)|0,b=p-g|0,m=b>>>0>(f+40|0)>>>0,!((g|0)==(-1|0)|m^1|g>>>0<p>>>0&((g|0)!=(-1|0)&(p|0)!=(-1|0))^1)):0){a=m?b:t;s=g;y=145}if((y|0)==145){t=(o[5520]|0)+a|0;o[5520]=t;if(t>>>0>(o[5521]|0)>>>0)o[5521]=t;u=o[5418]|0;e:do{if(u){t=22096;while(1){e=o[t>>2]|0;r=o[t+4>>2]|0;if((s|0)==(e+r|0)){y=154;break}n=o[t+8>>2]|0;if(!n)break;else t=n}if(((y|0)==154?(v=t+4|0,(o[t+12>>2]&8|0)==0):0)?s>>>0>u>>>0&e>>>0<=u>>>0:0){o[v>>2]=r+a;B=(o[5415]|0)+a|0;g=u+8|0;g=(g&7|0)==0?0:0-g&7;v=u+g|0;g=B-g|0;o[5418]=v;o[5415]=g;o[v+4>>2]=g|1;o[u+B+4>>2]=40;o[5419]=o[5534];break}if(s>>>0<(o[5416]|0)>>>0)o[5416]=s;r=s+a|0;t=22096;while(1){if((o[t>>2]|0)==(r|0)){y=162;break}e=o[t+8>>2]|0;if(!e)break;else t=e}if((y|0)==162?(o[t+12>>2]&8|0)==0:0){o[t>>2]=s;d=t+4|0;o[d>>2]=(o[d>>2]|0)+a;d=s+8|0;d=s+((d&7|0)==0?0:0-d&7)|0;t=r+8|0;t=r+((t&7|0)==0?0:0-t&7)|0;l=d+f|0;c=t-d-f|0;o[d+4>>2]=f|3;t:do{if((u|0)==(t|0)){B=(o[5415]|0)+c|0;o[5415]=B;o[5418]=l;o[l+4>>2]=B|1}else{if((o[5417]|0)==(t|0)){B=(o[5414]|0)+c|0;o[5414]=B;o[5417]=l;o[l+4>>2]=B|1;o[l+B>>2]=B;break}e=o[t+4>>2]|0;if((e&3|0)==1){a=e&-8;n=e>>>3;r:do{if(e>>>0<256){e=o[t+8>>2]|0;r=o[t+12>>2]|0;if((r|0)==(e|0)){o[5412]=o[5412]&~(1<<n);break}else{o[e+12>>2]=r;o[r+8>>2]=e;break}}else{s=o[t+24>>2]|0;e=o[t+12>>2]|0;do{if((e|0)==(t|0)){r=t+16|0;n=r+4|0;e=o[n>>2]|0;if(!e){e=o[r>>2]|0;if(!e){e=0;break}}else r=n;while(1){i=e+20|0;n=o[i>>2]|0;if(!n){i=e+16|0;n=o[i>>2]|0;if(!n)break;else{e=n;r=i}}else{e=n;r=i}}o[r>>2]=0}else{B=o[t+8>>2]|0;o[B+12>>2]=e;o[e+8>>2]=B}}while(0);if(!s)break;r=o[t+28>>2]|0;n=21952+(r<<2)|0;do{if((o[n>>2]|0)!=(t|0)){B=s+16|0;o[((o[B>>2]|0)==(t|0)?B:s+20|0)>>2]=e;if(!e)break r}else{o[n>>2]=e;if(e|0)break;o[5413]=o[5413]&~(1<<r);break r}}while(0);o[e+24>>2]=s;r=t+16|0;n=o[r>>2]|0;if(n|0){o[e+16>>2]=n;o[n+24>>2]=e}r=o[r+4>>2]|0;if(!r)break;o[e+20>>2]=r;o[r+24>>2]=e}}while(0);t=t+a|0;i=a+c|0}else i=c;t=t+4|0;o[t>>2]=o[t>>2]&-2;o[l+4>>2]=i|1;o[l+i>>2]=i;t=i>>>3;if(i>>>0<256){r=21688+(t<<1<<2)|0;e=o[5412]|0;t=1<<t;if(!(e&t)){o[5412]=e|t;t=r;e=r+8|0}else{e=r+8|0;t=o[e>>2]|0}o[e>>2]=l;o[t+12>>2]=l;o[l+8>>2]=t;o[l+12>>2]=r;break}t=i>>>8;do{if(!t)n=0;else{if(i>>>0>16777215){n=31;break}v=(t+1048320|0)>>>16&8;B=t<<v;g=(B+520192|0)>>>16&4;B=B<<g;n=(B+245760|0)>>>16&2;n=14-(g|v|n)+(B<<n>>>15)|0;n=i>>>(n+7|0)&1|n<<1}}while(0);t=21952+(n<<2)|0;o[l+28>>2]=n;e=l+16|0;o[e+4>>2]=0;o[e>>2]=0;e=o[5413]|0;r=1<<n;if(!(e&r)){o[5413]=e|r;o[t>>2]=l;o[l+24>>2]=t;o[l+12>>2]=l;o[l+8>>2]=l;break}t=o[t>>2]|0;r:do{if((o[t+4>>2]&-8|0)!=(i|0)){n=i<<((n|0)==31?0:25-(n>>>1)|0);while(1){r=t+16+(n>>>31<<2)|0;e=o[r>>2]|0;if(!e)break;if((o[e+4>>2]&-8|0)==(i|0)){t=e;break r}else{n=n<<1;t=e}}o[r>>2]=l;o[l+24>>2]=t;o[l+12>>2]=l;o[l+8>>2]=l;break t}}while(0);v=t+8|0;B=o[v>>2]|0;o[B+12>>2]=l;o[v>>2]=l;o[l+8>>2]=B;o[l+12>>2]=t;o[l+24>>2]=0}}while(0);B=d+8|0;Q=_;return B|0}t=22096;while(1){e=o[t>>2]|0;if(e>>>0<=u>>>0?(B=e+(o[t+4>>2]|0)|0,B>>>0>u>>>0):0)break;t=o[t+8>>2]|0}i=B+-47|0;e=i+8|0;e=i+((e&7|0)==0?0:0-e&7)|0;i=u+16|0;e=e>>>0<i>>>0?u:e;t=e+8|0;r=a+-40|0;g=s+8|0;g=(g&7|0)==0?0:0-g&7;v=s+g|0;g=r-g|0;o[5418]=v;o[5415]=g;o[v+4>>2]=g|1;o[s+r+4>>2]=40;o[5419]=o[5534];r=e+4|0;o[r>>2]=27;o[t>>2]=o[5524];o[t+4>>2]=o[5525];o[t+8>>2]=o[5526];o[t+12>>2]=o[5527];o[5524]=s;o[5525]=a;o[5527]=0;o[5526]=t;t=e+24|0;do{v=t;t=t+4|0;o[t>>2]=7}while((v+8|0)>>>0<B>>>0);if((e|0)!=(u|0)){s=e-u|0;o[r>>2]=o[r>>2]&-2;o[u+4>>2]=s|1;o[e>>2]=s;t=s>>>3;if(s>>>0<256){r=21688+(t<<1<<2)|0;e=o[5412]|0;t=1<<t;if(!(e&t)){o[5412]=e|t;t=r;e=r+8|0}else{e=r+8|0;t=o[e>>2]|0}o[e>>2]=u;o[t+12>>2]=u;o[u+8>>2]=t;o[u+12>>2]=r;break}t=s>>>8;if(t){if(s>>>0>16777215)n=31;else{v=(t+1048320|0)>>>16&8;B=t<<v;g=(B+520192|0)>>>16&4;B=B<<g;n=(B+245760|0)>>>16&2;n=14-(g|v|n)+(B<<n>>>15)|0;n=s>>>(n+7|0)&1|n<<1}}else n=0;r=21952+(n<<2)|0;o[u+28>>2]=n;o[u+20>>2]=0;o[i>>2]=0;t=o[5413]|0;e=1<<n;if(!(t&e)){o[5413]=t|e;o[r>>2]=u;o[u+24>>2]=r;o[u+12>>2]=u;o[u+8>>2]=u;break}t=o[r>>2]|0;t:do{if((o[t+4>>2]&-8|0)!=(s|0)){n=s<<((n|0)==31?0:25-(n>>>1)|0);while(1){r=t+16+(n>>>31<<2)|0;e=o[r>>2]|0;if(!e)break;if((o[e+4>>2]&-8|0)==(s|0)){t=e;break t}else{n=n<<1;t=e}}o[r>>2]=u;o[u+24>>2]=t;o[u+12>>2]=u;o[u+8>>2]=u;break e}}while(0);v=t+8|0;B=o[v>>2]|0;o[B+12>>2]=u;o[v>>2]=u;o[u+8>>2]=B;o[u+12>>2]=t;o[u+24>>2]=0}}else{B=o[5416]|0;if((B|0)==0|s>>>0<B>>>0)o[5416]=s;o[5524]=s;o[5525]=a;o[5527]=0;o[5421]=o[5530];o[5420]=-1;o[5425]=21688;o[5424]=21688;o[5427]=21696;o[5426]=21696;o[5429]=21704;o[5428]=21704;o[5431]=21712;o[5430]=21712;o[5433]=21720;o[5432]=21720;o[5435]=21728;o[5434]=21728;o[5437]=21736;o[5436]=21736;o[5439]=21744;o[5438]=21744;o[5441]=21752;o[5440]=21752;o[5443]=21760;o[5442]=21760;o[5445]=21768;o[5444]=21768;o[5447]=21776;o[5446]=21776;o[5449]=21784;o[5448]=21784;o[5451]=21792;o[5450]=21792;o[5453]=21800;o[5452]=21800;o[5455]=21808;o[5454]=21808;o[5457]=21816;o[5456]=21816;o[5459]=21824;o[5458]=21824;o[5461]=21832;o[5460]=21832;o[5463]=21840;o[5462]=21840;o[5465]=21848;o[5464]=21848;o[5467]=21856;o[5466]=21856;o[5469]=21864;o[5468]=21864;o[5471]=21872;o[5470]=21872;o[5473]=21880;o[5472]=21880;o[5475]=21888;o[5474]=21888;o[5477]=21896;o[5476]=21896;o[5479]=21904;o[5478]=21904;o[5481]=21912;o[5480]=21912;o[5483]=21920;o[5482]=21920;o[5485]=21928;o[5484]=21928;o[5487]=21936;o[5486]=21936;B=a+-40|0;g=s+8|0;g=(g&7|0)==0?0:0-g&7;v=s+g|0;g=B-g|0;o[5418]=v;o[5415]=g;o[v+4>>2]=g|1;o[s+B+4>>2]=40;o[5419]=o[5534]}}while(0);t=o[5415]|0;if(t>>>0>f>>>0){g=t-f|0;o[5415]=g;B=o[5418]|0;v=B+f|0;o[5418]=v;o[v+4>>2]=g|1;o[B+4>>2]=f|3;B=B+8|0;Q=_;return B|0}}o[(Lh()|0)>>2]=48;B=0;Q=_;return B|0}function Hy(e){e=e|0;var t=0,r=0,n=0,i=0,s=0,a=0,c=0,u=0;if(!e)return;r=e+-8|0;i=o[5416]|0;e=o[e+-4>>2]|0;t=e&-8;u=r+t|0;do{if(!(e&1)){n=o[r>>2]|0;if(!(e&3))return;a=r+(0-n)|0;s=n+t|0;if(a>>>0<i>>>0)return;if((o[5417]|0)==(a|0)){e=u+4|0;t=o[e>>2]|0;if((t&3|0)!=3){c=a;t=s;break}o[5414]=s;o[e>>2]=t&-2;o[a+4>>2]=s|1;o[a+s>>2]=s;return}r=n>>>3;if(n>>>0<256){e=o[a+8>>2]|0;t=o[a+12>>2]|0;if((t|0)==(e|0)){o[5412]=o[5412]&~(1<<r);c=a;t=s;break}else{o[e+12>>2]=t;o[t+8>>2]=e;c=a;t=s;break}}i=o[a+24>>2]|0;e=o[a+12>>2]|0;do{if((e|0)==(a|0)){t=a+16|0;r=t+4|0;e=o[r>>2]|0;if(!e){e=o[t>>2]|0;if(!e){e=0;break}}else t=r;while(1){n=e+20|0;r=o[n>>2]|0;if(!r){n=e+16|0;r=o[n>>2]|0;if(!r)break;else{e=r;t=n}}else{e=r;t=n}}o[t>>2]=0}else{c=o[a+8>>2]|0;o[c+12>>2]=e;o[e+8>>2]=c}}while(0);if(i){t=o[a+28>>2]|0;r=21952+(t<<2)|0;if((o[r>>2]|0)==(a|0)){o[r>>2]=e;if(!e){o[5413]=o[5413]&~(1<<t);c=a;t=s;break}}else{c=i+16|0;o[((o[c>>2]|0)==(a|0)?c:i+20|0)>>2]=e;if(!e){c=a;t=s;break}}o[e+24>>2]=i;t=a+16|0;r=o[t>>2]|0;if(r|0){o[e+16>>2]=r;o[r+24>>2]=e}t=o[t+4>>2]|0;if(t){o[e+20>>2]=t;o[t+24>>2]=e;c=a;t=s}else{c=a;t=s}}else{c=a;t=s}}else{c=r;a=r}}while(0);if(a>>>0>=u>>>0)return;e=u+4|0;n=o[e>>2]|0;if(!(n&1))return;if(!(n&2)){if((o[5418]|0)==(u|0)){u=(o[5415]|0)+t|0;o[5415]=u;o[5418]=c;o[c+4>>2]=u|1;if((c|0)!=(o[5417]|0))return;o[5417]=0;o[5414]=0;return}if((o[5417]|0)==(u|0)){u=(o[5414]|0)+t|0;o[5414]=u;o[5417]=a;o[c+4>>2]=u|1;o[a+u>>2]=u;return}i=(n&-8)+t|0;r=n>>>3;do{if(n>>>0<256){t=o[u+8>>2]|0;e=o[u+12>>2]|0;if((e|0)==(t|0)){o[5412]=o[5412]&~(1<<r);break}else{o[t+12>>2]=e;o[e+8>>2]=t;break}}else{s=o[u+24>>2]|0;e=o[u+12>>2]|0;do{if((e|0)==(u|0)){t=u+16|0;r=t+4|0;e=o[r>>2]|0;if(!e){e=o[t>>2]|0;if(!e){r=0;break}}else t=r;while(1){n=e+20|0;r=o[n>>2]|0;if(!r){n=e+16|0;r=o[n>>2]|0;if(!r)break;else{e=r;t=n}}else{e=r;t=n}}o[t>>2]=0;r=e}else{r=o[u+8>>2]|0;o[r+12>>2]=e;o[e+8>>2]=r;r=e}}while(0);if(s|0){e=o[u+28>>2]|0;t=21952+(e<<2)|0;if((o[t>>2]|0)==(u|0)){o[t>>2]=r;if(!r){o[5413]=o[5413]&~(1<<e);break}}else{n=s+16|0;o[((o[n>>2]|0)==(u|0)?n:s+20|0)>>2]=r;if(!r)break}o[r+24>>2]=s;e=u+16|0;t=o[e>>2]|0;if(t|0){o[r+16>>2]=t;o[t+24>>2]=r}e=o[e+4>>2]|0;if(e|0){o[r+20>>2]=e;o[e+24>>2]=r}}}}while(0);o[c+4>>2]=i|1;o[a+i>>2]=i;if((c|0)==(o[5417]|0)){o[5414]=i;return}}else{o[e>>2]=n&-2;o[c+4>>2]=t|1;o[a+t>>2]=t;i=t}e=i>>>3;if(i>>>0<256){r=21688+(e<<1<<2)|0;t=o[5412]|0;e=1<<e;if(!(t&e)){o[5412]=t|e;e=r;t=r+8|0}else{t=r+8|0;e=o[t>>2]|0}o[t>>2]=c;o[e+12>>2]=c;o[c+8>>2]=e;o[c+12>>2]=r;return}e=i>>>8;if(e){if(i>>>0>16777215)n=31;else{a=(e+1048320|0)>>>16&8;u=e<<a;s=(u+520192|0)>>>16&4;u=u<<s;n=(u+245760|0)>>>16&2;n=14-(s|a|n)+(u<<n>>>15)|0;n=i>>>(n+7|0)&1|n<<1}}else n=0;e=21952+(n<<2)|0;o[c+28>>2]=n;o[c+20>>2]=0;o[c+16>>2]=0;t=o[5413]|0;r=1<<n;e:do{if(!(t&r)){o[5413]=t|r;o[e>>2]=c;o[c+24>>2]=e;o[c+12>>2]=c;o[c+8>>2]=c}else{e=o[e>>2]|0;t:do{if((o[e+4>>2]&-8|0)!=(i|0)){n=i<<((n|0)==31?0:25-(n>>>1)|0);while(1){r=e+16+(n>>>31<<2)|0;t=o[r>>2]|0;if(!t)break;if((o[t+4>>2]&-8|0)==(i|0)){e=t;break t}else{n=n<<1;e=t}}o[r>>2]=c;o[c+24>>2]=e;o[c+12>>2]=c;o[c+8>>2]=c;break e}}while(0);a=e+8|0;u=o[a>>2]|0;o[u+12>>2]=c;o[a>>2]=c;o[c+8>>2]=u;o[c+12>>2]=e;o[c+24>>2]=0}}while(0);u=(o[5420]|0)+-1|0;o[5420]=u;if(u|0)return;e=22104;while(1){e=o[e>>2]|0;if(!e)break;else e=e+8|0}o[5420]=-1;return}function Qy(e){e=e|0;var t=0,r=0,n=0;n=e+3&-4;e=ub()|0;t=o[e>>2]|0;r=t+n|0;do{if((n|0)<1|r>>>0>t>>>0){if(r>>>0>(L()|0)>>>0?(J(r|0)|0)==0:0)break;o[e>>2]=r;n=t;return n|0}}while(0);o[(Lh()|0)>>2]=48;n=-1;return n|0}function $y(e){e=e|0;var t=0;t=Q;Q=Q+e|0;Q=Q+15&-16;return t|0}function Ky(e){e=e|0;Q=e}function qy(){return Q|0}function eb(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0;o=e&65535;i=t&65535;r=g(i,o)|0;n=e>>>16;e=(r>>>16)+(g(i,n)|0)|0;i=t>>>16;t=g(i,o)|0;return(_((e>>>16)+(g(i,n)|0)+(((e&65535)+t|0)>>>16)|0),e+t<<16|r&65535|0)|0}function tb(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0;i=e;o=r;r=eb(i,o)|0;e=T()|0;return(_((g(t,o)|0)+(g(n,i)|0)+e|e&0|0),r|0|0)|0}function rb(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;r=e+r>>>0;return(_(t+n+(r>>>0<e>>>0|0)>>>0|0),r|0)|0}function nb(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;n=t-n-(r>>>0>e>>>0|0)>>>0;return(_(n|0),e-r>>>0|0)|0}function ib(e){e=e|0;return(e?31-(v(e^e-1)|0)|0:32)|0}function ob(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var s=0,a=0,c=0,u=0,l=0,d=0,f=0,h=0,A=0,p=0;d=e;u=t;l=u;a=r;h=n;c=h;if(!l){s=(i|0)!=0;if(!c){if(s){o[i>>2]=(d>>>0)%(a>>>0);o[i+4>>2]=0}h=0;i=(d>>>0)/(a>>>0)>>>0;return(_(h|0),i)|0}else{if(!s){h=0;i=0;return(_(h|0),i)|0}o[i>>2]=e|0;o[i+4>>2]=t&0;h=0;i=0;return(_(h|0),i)|0}}s=(c|0)==0;do{if(a){if(!s){s=(v(c|0)|0)-(v(l|0)|0)|0;if(s>>>0<=31){f=s+1|0;c=31-s|0;t=s-31>>31;a=f;e=d>>>(f>>>0)&t|l<<c;t=l>>>(f>>>0)&t;s=0;c=d<<c;break}if(!i){h=0;i=0;return(_(h|0),i)|0}o[i>>2]=e|0;o[i+4>>2]=u|t&0;h=0;i=0;return(_(h|0),i)|0}s=a-1|0;if(s&a|0){c=(v(a|0)|0)+33-(v(l|0)|0)|0;p=64-c|0;f=32-c|0;u=f>>31;A=c-32|0;t=A>>31;a=c;e=f-1>>31&l>>>(A>>>0)|(l<<f|d>>>(c>>>0))&t;t=t&l>>>(c>>>0);s=d<<p&u;c=(l<<p|d>>>(A>>>0))&u|d<<f&c-33>>31;break}if(i|0){o[i>>2]=s&d;o[i+4>>2]=0}if((a|0)==1){A=u|t&0;p=e|0|0;return(_(A|0),p)|0}else{p=ib(a|0)|0;A=l>>>(p>>>0)|0;p=l<<32-p|d>>>(p>>>0)|0;return(_(A|0),p)|0}}else{if(s){if(i|0){o[i>>2]=(l>>>0)%(a>>>0);o[i+4>>2]=0}A=0;p=(l>>>0)/(a>>>0)>>>0;return(_(A|0),p)|0}if(!d){if(i|0){o[i>>2]=0;o[i+4>>2]=(l>>>0)%(c>>>0)}A=0;p=(l>>>0)/(c>>>0)>>>0;return(_(A|0),p)|0}s=c-1|0;if(!(s&c)){if(i|0){o[i>>2]=e|0;o[i+4>>2]=s&l|t&0}A=0;p=l>>>((ib(c|0)|0)>>>0);return(_(A|0),p)|0}s=(v(c|0)|0)-(v(l|0)|0)|0;if(s>>>0<=30){t=s+1|0;c=31-s|0;a=t;e=l<<c|d>>>(t>>>0);t=l>>>(t>>>0);s=0;c=d<<c;break}if(!i){A=0;p=0;return(_(A|0),p)|0}o[i>>2]=e|0;o[i+4>>2]=u|t&0;A=0;p=0;return(_(A|0),p)|0}}while(0);if(!a){l=c;u=0;c=0}else{f=r|0|0;d=h|n&0;l=rb(f|0,d|0,-1,-1)|0;r=T()|0;u=c;c=0;do{n=u;u=s>>>31|u<<1;s=c|s<<1;n=e<<1|n>>>31|0;h=e>>>31|t<<1|0;nb(l|0,r|0,n|0,h|0)|0;p=T()|0;A=p>>31|((p|0)<0?-1:0)<<1;c=A&1;e=nb(n|0,h|0,A&f|0,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&d|0)|0;t=T()|0;a=a-1|0}while((a|0)!=0);l=u;u=0}a=0;if(i|0){o[i>>2]=e;o[i+4>>2]=t}A=(s|0)>>>31|(l|a)<<1|(a<<1|s>>>31)&0|u;p=(s<<1|0>>>31)&-2|c;return(_(A|0),p)|0}function sb(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;return ob(e,t,r,n,0)|0}function ab(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){_(t>>>r|0);return e>>>r|(t&(1<<r)-1)<<32-r}_(0);return t>>>r-32|0}function cb(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){_(t<<r|(e&(1<<r)-1<<32-r)>>>32-r|0);return e<<r}_(e<<r-32|0);return 0}function ub(){return 22176}function lb(e){e=e|0;return(e&255)<<24|(e>>8&255)<<16|(e>>16&255)<<8|e>>>24|0}function db(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0;if((r|0)>=512){Y(e|0,t|0,r|0)|0;return e|0}a=e|0;s=e+r|0;if((e&3)==(t&3)){while(e&3){if(!r)return a|0;n[e>>0]=n[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}r=s&-4|0;i=r-64|0;while((e|0)<=(i|0)){o[e>>2]=o[t>>2];o[e+4>>2]=o[t+4>>2];o[e+8>>2]=o[t+8>>2];o[e+12>>2]=o[t+12>>2];o[e+16>>2]=o[t+16>>2];o[e+20>>2]=o[t+20>>2];o[e+24>>2]=o[t+24>>2];o[e+28>>2]=o[t+28>>2];o[e+32>>2]=o[t+32>>2];o[e+36>>2]=o[t+36>>2];o[e+40>>2]=o[t+40>>2];o[e+44>>2]=o[t+44>>2];o[e+48>>2]=o[t+48>>2];o[e+52>>2]=o[t+52>>2];o[e+56>>2]=o[t+56>>2];o[e+60>>2]=o[t+60>>2];e=e+64|0;t=t+64|0}while((e|0)<(r|0)){o[e>>2]=o[t>>2];e=e+4|0;t=t+4|0}}else{r=s-4|0;while((e|0)<(r|0)){n[e>>0]=n[t>>0]|0;n[e+1>>0]=n[t+1>>0]|0;n[e+2>>0]=n[t+2>>0]|0;n[e+3>>0]=n[t+3>>0]|0;e=e+4|0;t=t+4|0}}while((e|0)<(s|0)){n[e>>0]=n[t>>0]|0;e=e+1|0;t=t+1|0}return a|0}function fb(e,t,r){e=e|0;t=t|0;r=r|0;var i=0;if((t|0)<(e|0)&(e|0)<(t+r|0)){i=e;t=t+r|0;e=e+r|0;while((r|0)>0){e=e-1|0;t=t-1|0;r=r-1|0;n[e>>0]=n[t>>0]|0}e=i}else db(e,t,r)|0;return e|0}function hb(e,t,r){e=e|0;t=t|0;r=r|0;var i=0,s=0,a=0,c=0;a=e+r|0;t=t&255;if((r|0)>=67){while(e&3){n[e>>0]=t;e=e+1|0}i=a&-4|0;c=t|t<<8|t<<16|t<<24;s=i-64|0;while((e|0)<=(s|0)){o[e>>2]=c;o[e+4>>2]=c;o[e+8>>2]=c;o[e+12>>2]=c;o[e+16>>2]=c;o[e+20>>2]=c;o[e+24>>2]=c;o[e+28>>2]=c;o[e+32>>2]=c;o[e+36>>2]=c;o[e+40>>2]=c;o[e+44>>2]=c;o[e+48>>2]=c;o[e+52>>2]=c;o[e+56>>2]=c;o[e+60>>2]=c;e=e+64|0}while((e|0)<(i|0)){o[e>>2]=c;e=e+4|0}}while((e|0)<(a|0)){n[e>>0]=t;e=e+1|0}return a-r|0}function Ab(e){e=e|0;return jb[e&3]()|0}function pb(e,t){e=e|0;t=t|0;return Wb[e&15](t|0)|0}function yb(e,t,r,n,i,o,s){e=e|0;t=t|0;r=+r;n=n|0;i=i|0;o=o|0;s=s|0;return Pb[e&1](t|0,+r,n|0,i|0,o|0,s|0)|0}function bb(e,t,r){e=e|0;t=t|0;r=r|0;return zb[e&63](t|0,r|0)|0}function mb(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;return Eb[e&7](t|0,r|0,n|0)|0}function gb(e){e=e|0;Xb[e&3]()}function vb(e,t){e=e|0;t=t|0;Cb[e&255](t|0)}function Bb(e,t,r){e=e|0;t=t|0;r=r|0;Gb[e&15](t|0,r|0)}function _b(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;Lb[e&15](t|0,r|0,n|0)}function Tb(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;Yb[e&7](t|0,r|0,n|0,i|0)}function wb(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;Jb[e&3](t|0,r|0,n|0,i|0,o|0)}function Vb(e,t,r,n,i,o,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;s=s|0;Hb[e&3](t|0,r|0,n|0,i|0,o|0,s|0)}function Ib(){B(0);return 0}function Fb(e){e=e|0;B(1);return 0}function Ub(e,t,r,n,i,o){e=e|0;t=+t;r=r|0;n=n|0;i=i|0;o=o|0;B(2);return 0}function Sb(e,t){e=e|0;t=t|0;B(3);return 0}function Mb(e,t,r){e=e|0;t=t|0;r=r|0;B(4);return 0}function Ob(){B(5)}function Rb(e){e=e|0;B(6)}function Db(e,t){e=e|0;t=t|0;B(7)}function Nb(e,t,r){e=e|0;t=t|0;r=r|0;B(8)}function Zb(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;B(9)}function kb(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;B(10)}function xb(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;B(11)}var jb=[Ib,Ml,Td,Ib];var Wb=[Fb,bp,yt,_t,ap,lp,oy,Fy,ky,Al,ie,dd,Rl,Vd,Fb,Fb];var Pb=[Ub,sA];var zb=[Sb,me,Fe,Bt,en,On,zn,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,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb,Rb];var Gb=[Db,bt,vt,ne,se,ae,ce,ue,aA,Db,Db,Db,Db,Db,Db,Db];var Lb=[Nb,Uy,Oy,xy,jy,re,oe,Hl,Wd,Gd,Nb,Nb,Nb,Nb,Nb,Nb];var Yb=[Zb,CA,qA,Op,Wl,Rd,Zb,Zb];var Jb=[kb,XA,KA,Mp];var Hb=[xb,EA,$A,Sp];return{__ZSt18uncaught_exceptionv:ty,___cxa_can_catch:Kp,___cxa_is_pointer_type:qp,___embind_register_native_and_builtin_types:ef,___errno_location:Lh,___getTypeName:Gh,___muldi3:tb,___udivdi3:sb,_bitshift64Lshr:ab,_bitshift64Shl:cb,_emscripten_get_sbrk_ptr:ub,_free:Hy,_i64Add:rb,_i64Subtract:nb,_llvm_bswap_i32:lb,_malloc:Jy,_memcpy:db,_memmove:fb,_memset:hb,dynCall_i:Ab,dynCall_ii:pb,dynCall_iidiiii:yb,dynCall_iii:bb,dynCall_iiii:mb,dynCall_v:gb,dynCall_vi:vb,dynCall_vii:Bb,dynCall_viii:_b,dynCall_viiii:Tb,dynCall_viiiii:wb,dynCall_viiiiii:Vb,globalCtors:q,stackAlloc:$y,stackRestore:Ky,stackSave:qy}}(Tr,wr,D),Ir=o.__ZSt18uncaught_exceptionv=Vr.__ZSt18uncaught_exceptionv,Fr=(o.___cxa_can_catch=Vr.___cxa_can_catch,o.___cxa_is_pointer_type=Vr.___cxa_is_pointer_type,o.___embind_register_native_and_builtin_types=Vr.___embind_register_native_and_builtin_types,o.___errno_location=Vr.___errno_location,o.___getTypeName=Vr.___getTypeName),Ur=(o.___muldi3=Vr.___muldi3,o.___udivdi3=Vr.___udivdi3,o._bitshift64Lshr=Vr._bitshift64Lshr,o._bitshift64Shl=Vr._bitshift64Shl,o._emscripten_get_sbrk_ptr=Vr._emscripten_get_sbrk_ptr,o._free=Vr._free),Sr=(o._i64Add=Vr._i64Add,o._i64Subtract=Vr._i64Subtract,o._llvm_bswap_i32=Vr._llvm_bswap_i32,o._malloc=Vr._malloc),Mr=(o._memcpy=Vr._memcpy,o._memmove=Vr._memmove,o._memset=Vr._memset,o.globalCtors=Vr.globalCtors);o.stackAlloc=Vr.stackAlloc,o.stackRestore=Vr.stackRestore,o.stackSave=Vr.stackSave,o.dynCall_i=Vr.dynCall_i,o.dynCall_ii=Vr.dynCall_ii,o.dynCall_iidiiii=Vr.dynCall_iidiiii,o.dynCall_iii=Vr.dynCall_iii,o.dynCall_iiii=Vr.dynCall_iiii,o.dynCall_v=Vr.dynCall_v,o.dynCall_vi=Vr.dynCall_vi,o.dynCall_vii=Vr.dynCall_vii,o.dynCall_viii=Vr.dynCall_viii,o.dynCall_viiii=Vr.dynCall_viiii,o.dynCall_viiiii=Vr.dynCall_viiiii,o.dynCall_viiiiii=Vr.dynCall_viiiiii;if(o.asm=Vr,ye)if(ge(ye)||(ye=m(ye)),l||d){var Or=A(ye);Z.set(Or,w)}else{he();var Rr=function(e){e.byteLength&&(e=new Uint8Array(e)),Z.set(e,w),o.memoryInitializerRequest&&delete o.memoryInitializerRequest.response,Ae()},Dr=function(){h(ye,Rr,(function(){throw new Error("could not load memory initializer "+ye)}))},Nr=Br(ye);if(Nr)Rr(Nr.buffer);else if(o.memoryInitializerRequest){var Zr=function(){var e=o.memoryInitializerRequest,t=e.response;if(200!==e.status&&0!==e.status){var r=Br(o.memoryInitializerRequestURL);if(!r)return console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+e.status+", retrying "+ye),void Dr();t=r.buffer}Rr(t)};o.memoryInitializerRequest.response?setTimeout(Zr,0):o.memoryInitializerRequest.addEventListener("load",Zr)}else Dr()}function kr(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function xr(e){function t(){_r||(_r=!0,o.calledRun=!0,V||(oe(),se(),o.onRuntimeInitialized&&o.onRuntimeInitialized(),ae()))}e=e||a,le>0||(ie(),le>0||(o.setStatus?(o.setStatus("Running..."),setTimeout((function(){setTimeout((function(){o.setStatus("")}),1),t()}),1)):t()))}if(fe=function e(){_r||xr(),_r||(fe=e)},o.run=xr,o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return!0,xr(),o}}).call(this,r(109),"/")},function(e,t,r){(function(t){const n=r(111),i="undefined"==typeof window?t:window;i.loaders=i.loaders||{},e.exports=Object.assign(i.loaders,n)}).call(this,r(88))},,,function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";function n(e,t,r){return t<=e&&e<=r}function i(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function o(e){this.tokens=[].slice.call(e)}o.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};function s(e,t){if(e)throw TypeError("Decoder error");return t||65533}function a(e,t){if(!(this instanceof a))return new a(e,t);if("utf-8"!==(e=void 0!==e?String(e).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");t=i(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(t.fatal),this._ignoreBOM=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function c(e,t){if(!(this instanceof c))return new c(e,t);if("utf-8"!==(e=void 0!==e?String(e).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");t=i(t),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function u(e){var t=e.fatal,r=0,i=0,o=0,a=128,c=191;this.handler=function(e,u){if(-1===u&&0!==o)return o=0,s(t);if(-1===u)return-1;if(0===o){if(n(u,0,127))return u;if(n(u,194,223))o=1,r=u-192;else if(n(u,224,239))224===u&&(a=160),237===u&&(c=159),o=2,r=u-224;else{if(!n(u,240,244))return s(t);240===u&&(a=144),244===u&&(c=143),o=3,r=u-240}return r<<=6*o,null}if(!n(u,a,c))return r=o=i=0,a=128,c=191,e.prepend(u),s(t);if(a=128,c=191,r+=u-128<<6*(o-(i+=1)),i!==o)return null;var l=r;return r=o=i=0,l}}function l(e){e.fatal;this.handler=function(e,t){if(-1===t)return-1;if(n(t,0,127))return t;var r,i;n(t,128,2047)?(r=1,i=192):n(t,2048,65535)?(r=2,i=224):n(t,65536,1114111)&&(r=3,i=240);for(var o=[(t>>6*r)+i];r>0;){var s=t>>6*(r-1);o.push(128|63&s),r-=1}return o}}a.prototype={decode:function(e,t){var r;r="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=i(t),this._streaming||(this._decoder=new u({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var n,s=new o(r),a=[];!s.endOfStream()&&-1!==(n=this._decoder.handler(s,s.read()));)null!==n&&(Array.isArray(n)?a.push.apply(a,n):a.push(n));if(!this._streaming){do{if(-1===(n=this._decoder.handler(s,s.read())))break;null!==n&&(Array.isArray(n)?a.push.apply(a,n):a.push(n))}while(!s.endOfStream());this._decoder=null}return a.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===a[0]?(this._BOMseen=!0,a.shift()):this._BOMseen=!0)),function(e){for(var t="",r=0;r<e.length;++r){var n=e[r];n<=65535?t+=String.fromCharCode(n):(n-=65536,t+=String.fromCharCode(55296+(n>>10),56320+(1023&n)))}return t}(a)}},c.prototype={encode:function(e,t){e=e?String(e):"",t=i(t),this._streaming||(this._encoder=new l(this._options)),this._streaming=Boolean(t.stream);for(var r,n=[],s=new o(function(e){for(var t=String(e),r=t.length,n=0,i=[];n<r;){var o=t.charCodeAt(n);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(n===r-1)i.push(65533);else{var s=e.charCodeAt(n+1);if(56320<=s&&s<=57343){var a=1023&o,c=1023&s;i.push(65536+(a<<10)+c),n+=1}else i.push(65533)}n+=1}return i}(e));!s.endOfStream()&&-1!==(r=this._encoder.handler(s,s.read()));)Array.isArray(r)?n.push.apply(n,r):n.push(r);if(!this._streaming){for(;-1!==(r=this._encoder.handler(s,s.read()));)Array.isArray(r)?n.push.apply(n,r):n.push(r);this._encoder=null}return new Uint8Array(n)}},t.TextEncoder=c,t.TextDecoder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIsValidFunction=void 0;const n=r(40),i=r(9);t.createIsValidFunction=function(e){if(!e||e.length<=0)return function(e){return!0};let t="";const r=e.filter(e=>e==e);return r.length>0&&(t=`\n switch (x) {${r.map(e=>`\n case ${function(e){if("bigint"!=typeof e)return n.valueToString(e);if(i.BigIntAvailable)return n.valueToString(e)+"n";return`"${n.valueToString(e)}"`}(e)}:`).join("")}\n return false;\n }`),e.length!==r.length&&(t="if (x !== x) return false;\n"+t),new Function("x",t+"\nreturn true;")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.GetBuilderCtor=void 0;const n=r(8),i=r(35),o=r(41),s=r(43),a=r(44),c=r(45),u=r(46),l=r(54),d=r(47),f=r(51),h=r(48),A=r(52),p=r(55),y=r(42),b=r(56),m=r(50),g=r(49),v=r(57),B=r(34);class _ extends n.Visitor{visitNull(){return y.NullBuilder}visitBool(){return o.BoolBuilder}visitInt(){return h.IntBuilder}visitInt8(){return h.Int8Builder}visitInt16(){return h.Int16Builder}visitInt32(){return h.Int32Builder}visitInt64(){return h.Int64Builder}visitUint8(){return h.Uint8Builder}visitUint16(){return h.Uint16Builder}visitUint32(){return h.Uint32Builder}visitUint64(){return h.Uint64Builder}visitFloat(){return d.FloatBuilder}visitFloat16(){return d.Float16Builder}visitFloat32(){return d.Float32Builder}visitFloat64(){return d.Float64Builder}visitUtf8(){return B.Utf8Builder}visitBinary(){return i.BinaryBuilder}visitFixedSizeBinary(){return u.FixedSizeBinaryBuilder}visitDate(){return s.DateBuilder}visitDateDay(){return s.DateDayBuilder}visitDateMillisecond(){return s.DateMillisecondBuilder}visitTimestamp(){return m.TimestampBuilder}visitTimestampSecond(){return m.TimestampSecondBuilder}visitTimestampMillisecond(){return m.TimestampMillisecondBuilder}visitTimestampMicrosecond(){return m.TimestampMicrosecondBuilder}visitTimestampNanosecond(){return m.TimestampNanosecondBuilder}visitTime(){return g.TimeBuilder}visitTimeSecond(){return g.TimeSecondBuilder}visitTimeMillisecond(){return g.TimeMillisecondBuilder}visitTimeMicrosecond(){return g.TimeMicrosecondBuilder}visitTimeNanosecond(){return g.TimeNanosecondBuilder}visitDecimal(){return a.DecimalBuilder}visitList(){return A.ListBuilder}visitStruct(){return b.StructBuilder}visitUnion(){return v.UnionBuilder}visitDenseUnion(){return v.DenseUnionBuilder}visitSparseUnion(){return v.SparseUnionBuilder}visitDictionary(){return c.DictionaryBuilder}visitInterval(){return f.IntervalBuilder}visitIntervalDayTime(){return f.IntervalDayTimeBuilder}visitIntervalYearMonth(){return f.IntervalYearMonthBuilder}visitFixedSizeList(){return l.FixedSizeListBuilder}visitMap(){return p.MapBuilder}}t.GetBuilderCtor=_,t.instance=new _},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.Footer=void 0;const n=r(14),i=r(16);class o{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(e,t){return(t||new o).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,t){return e.setPosition(e.position()+n.flatbuffers.SIZE_PREFIX_LENGTH),(t||new o).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):i.MetadataVersion.V1}schema(e){const t=this.bb.__offset(this.bb_pos,6);return t?(e||new i.Schema).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){const r=this.bb.__offset(this.bb_pos,8);return r?(t||new s).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){const r=this.bb.__offset(this.bb_pos,10);return r?(t||new s).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){const r=this.bb.__offset(this.bb_pos,12);return r?(t||new i.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,i.MetadataVersion.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}static createFooter(e,t,r,n,i,s){return o.startFooter(e),o.addVersion(e,t),o.addSchema(e,r),o.addDictionaries(e,n),o.addRecordBatches(e,i),o.addCustomMetadata(e,s),o.endFooter(e)}}t.Footer=o;class s{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static createBlock(e,t,r,n){return e.prep(8,24),e.writeInt64(n),e.pad(4),e.writeInt32(r),e.writeInt64(t),e.offset()}}t.Block=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONVectorLoader=t.VectorLoader=void 0;const n=r(10),i=r(6),o=r(0),s=r(8),a=r(12),c=r(20),u=r(61),l=r(1),d=r(5);class f extends s.Visitor{constructor(e,t,r,n){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=t,this.buffers=r,this.dictionaries=n}visit(e){return super.visit(e instanceof i.Field?e.type:e)}visitNull(e,{length:t}=this.nextFieldNode()){return n.Data.Null(e,0,t)}visitBool(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Bool(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitInt(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Int(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitFloat(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Float(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitUtf8(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Utf8(e,0,t,r,this.readNullBitmap(e,r),this.readOffsets(e),this.readData(e))}visitBinary(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Binary(e,0,t,r,this.readNullBitmap(e,r),this.readOffsets(e),this.readData(e))}visitFixedSizeBinary(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.FixedSizeBinary(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitDate(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Date(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitTimestamp(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Timestamp(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitTime(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Time(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitDecimal(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Decimal(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitList(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.List(e,0,t,r,this.readNullBitmap(e,r),this.readOffsets(e),this.visit(e.children[0]))}visitStruct(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Struct(e,0,t,r,this.readNullBitmap(e,r),this.visitMany(e.children))}visitUnion(e){return e.mode===l.UnionMode.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}visitDenseUnion(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Union(e,0,t,r,this.readNullBitmap(e,r),this.readTypeIds(e),this.readOffsets(e),this.visitMany(e.children))}visitSparseUnion(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Union(e,0,t,r,this.readNullBitmap(e,r),this.readTypeIds(e),this.visitMany(e.children))}visitDictionary(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Dictionary(e,0,t,r,this.readNullBitmap(e,r),this.readData(e.indices),this.readDictionary(e))}visitInterval(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Interval(e,0,t,r,this.readNullBitmap(e,r),this.readData(e))}visitFixedSizeList(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.FixedSizeList(e,0,t,r,this.readNullBitmap(e,r),this.visit(e.children[0]))}visitMap(e,{length:t,nullCount:r}=this.nextFieldNode()){return n.Data.Map(e,0,t,r,this.readNullBitmap(e,r),this.readOffsets(e),this.visit(e.children[0]))}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,t,r=this.nextBufferRange()){return t>0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+t)}readDictionary(e){return this.dictionaries.get(e.id)}}t.VectorLoader=f;t.JSONVectorLoader=class extends f{constructor(e,t,r,n){super(new Uint8Array(0),t,r,n),this.sources=e}readNullBitmap(e,t,{offset:r}=this.nextBufferRange()){return t<=0?new Uint8Array(0):a.packBools(this.sources[r])}readOffsets(e,{offset:t}=this.nextBufferRange()){return d.toArrayBufferView(Uint8Array,d.toArrayBufferView(Int32Array,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return d.toArrayBufferView(Uint8Array,d.toArrayBufferView(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){const{sources:r}=this;return o.DataType.isTimestamp(e)||(o.DataType.isInt(e)||o.DataType.isTime(e))&&64===e.bitWidth||o.DataType.isDate(e)&&e.unit===l.DateUnit.MILLISECOND?d.toArrayBufferView(Uint8Array,u.Int64.convertArray(r[t])):o.DataType.isDecimal(e)?d.toArrayBufferView(Uint8Array,u.Int128.convertArray(r[t])):o.DataType.isBinary(e)||o.DataType.isFixedSizeBinary(e)?function(e){const t=e.join(""),r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e>>1]=parseInt(t.substr(e,2),16);return r}(r[t]):o.DataType.isBool(e)?a.packBools(r[t]):o.DataType.isUtf8(e)?c.encodeUtf8(r[t].join("")):d.toArrayBufferView(Uint8Array,d.toArrayBufferView(e.ArrayType,r[t].map(e=>+e)))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.TypeAssembler=void 0;var n=r(14).flatbuffers.Long;const i=r(8),o=r(16);class s extends i.Visitor{visit(e,t){return null==e||null==t?void 0:super.visit(e,t)}visitNull(e,t){return o.Null.startNull(t),o.Null.endNull(t)}visitInt(e,t){return o.Int.startInt(t),o.Int.addBitWidth(t,e.bitWidth),o.Int.addIsSigned(t,e.isSigned),o.Int.endInt(t)}visitFloat(e,t){return o.FloatingPoint.startFloatingPoint(t),o.FloatingPoint.addPrecision(t,e.precision),o.FloatingPoint.endFloatingPoint(t)}visitBinary(e,t){return o.Binary.startBinary(t),o.Binary.endBinary(t)}visitBool(e,t){return o.Bool.startBool(t),o.Bool.endBool(t)}visitUtf8(e,t){return o.Utf8.startUtf8(t),o.Utf8.endUtf8(t)}visitDecimal(e,t){return o.Decimal.startDecimal(t),o.Decimal.addScale(t,e.scale),o.Decimal.addPrecision(t,e.precision),o.Decimal.endDecimal(t)}visitDate(e,t){return o.Date.startDate(t),o.Date.addUnit(t,e.unit),o.Date.endDate(t)}visitTime(e,t){return o.Time.startTime(t),o.Time.addUnit(t,e.unit),o.Time.addBitWidth(t,e.bitWidth),o.Time.endTime(t)}visitTimestamp(e,t){const r=e.timezone&&t.createString(e.timezone)||void 0;return o.Timestamp.startTimestamp(t),o.Timestamp.addUnit(t,e.unit),void 0!==r&&o.Timestamp.addTimezone(t,r),o.Timestamp.endTimestamp(t)}visitInterval(e,t){return o.Interval.startInterval(t),o.Interval.addUnit(t,e.unit),o.Interval.endInterval(t)}visitList(e,t){return o.List.startList(t),o.List.endList(t)}visitStruct(e,t){return o.Struct_.startStruct_(t),o.Struct_.endStruct_(t)}visitUnion(e,t){o.Union.startTypeIdsVector(t,e.typeIds.length);const r=o.Union.createTypeIdsVector(t,e.typeIds);return o.Union.startUnion(t),o.Union.addMode(t,e.mode),o.Union.addTypeIds(t,r),o.Union.endUnion(t)}visitDictionary(e,t){const r=this.visit(e.indices,t);return o.DictionaryEncoding.startDictionaryEncoding(t),o.DictionaryEncoding.addId(t,new n(e.id,0)),o.DictionaryEncoding.addIsOrdered(t,e.isOrdered),void 0!==r&&o.DictionaryEncoding.addIndexType(t,r),o.DictionaryEncoding.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return o.FixedSizeBinary.startFixedSizeBinary(t),o.FixedSizeBinary.addByteWidth(t,e.byteWidth),o.FixedSizeBinary.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return o.FixedSizeList.startFixedSizeList(t),o.FixedSizeList.addListSize(t,e.listSize),o.FixedSizeList.endFixedSizeList(t)}visitMap(e,t){return o.Map.startMap(t),o.Map.addKeysSorted(t,e.keysSorted),o.Map.endMap(t)}}t.TypeAssembler=s,t.instance=new s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fieldFromJSON=t.dictionaryBatchFromJSON=t.recordBatchFromJSON=t.schemaFromJSON=void 0;const n=r(6),i=r(0),o=r(21),s=r(1);function a(e){return new o.RecordBatch(e.count,function e(t){return(t||[]).reduce((t,r)=>{return[...t,new o.FieldNode(r.count,(n=r.VALIDITY,(n||[]).reduce((e,t)=>e+ +(0===t),0))),...e(r.children)];var n},[])}(e.columns),function e(t,r=[]){for(let n=-1,i=(t||[]).length;++n<i;){const i=t[n];i.VALIDITY&&r.push(new o.BufferRegion(r.length,i.VALIDITY.length)),i.TYPE&&r.push(new o.BufferRegion(r.length,i.TYPE.length)),i.OFFSET&&r.push(new o.BufferRegion(r.length,i.OFFSET.length)),i.DATA&&r.push(new o.BufferRegion(r.length,i.DATA.length)),r=e(i.children,r)}return r}(e.columns))}function c(e,t){return(e.children||[]).filter(Boolean).map(e=>n.Field.fromJSON(e,t))}function u(e){return new Map(Object.entries(e||{}))}function l(e){return new i.Int(e.isSigned,e.bitWidth)}function d(e,t){const r=e.type.name;switch(r){case"NONE":case"null":return new i.Null;case"binary":return new i.Binary;case"utf8":return new i.Utf8;case"bool":return new i.Bool;case"list":return new i.List((t||[])[0]);case"struct":case"struct_":return new i.Struct(t||[])}switch(r){case"int":{const t=e.type;return new i.Int(t.isSigned,t.bitWidth)}case"floatingpoint":{const t=e.type;return new i.Float(s.Precision[t.precision])}case"decimal":{const t=e.type;return new i.Decimal(t.scale,t.precision)}case"date":{const t=e.type;return new i.Date_(s.DateUnit[t.unit])}case"time":{const t=e.type;return new i.Time(s.TimeUnit[t.unit],t.bitWidth)}case"timestamp":{const t=e.type;return new i.Timestamp(s.TimeUnit[t.unit],t.timezone)}case"interval":{const t=e.type;return new i.Interval(s.IntervalUnit[t.unit])}case"union":{const r=e.type;return new i.Union(s.UnionMode[r.mode],r.typeIds||[],t||[])}case"fixedsizebinary":{const t=e.type;return new i.FixedSizeBinary(t.byteWidth)}case"fixedsizelist":{const r=e.type;return new i.FixedSizeList(r.listSize,(t||[])[0])}case"map":{const r=e.type;return new i.Map_((t||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${r}"`)}t.schemaFromJSON=function(e,t=new Map){return new n.Schema(function(e,t){return(e.fields||[]).filter(Boolean).map(e=>n.Field.fromJSON(e,t))}(e,t),u(e.customMetadata),t)},t.recordBatchFromJSON=a,t.dictionaryBatchFromJSON=function(e){return new o.DictionaryBatch(a(e.data),e.id,e.isDelta)},t.fieldFromJSON=function(e,t){let r,o,s,a,f,h;return t&&(a=e.dictionary)?t.has(r=a.id)?(o=(o=a.indexType)?l(o):new i.Int32,h=new i.Dictionary(t.get(r),o,r,a.isOrdered),s=new n.Field(e.name,h,e.nullable,u(e.customMetadata))):(o=(o=a.indexType)?l(o):new i.Int32,t.set(r,f=d(e,c(e,t))),h=new i.Dictionary(f,o,r,a.isOrdered),s=new n.Field(e.name,h,e.nullable,u(e.customMetadata))):(f=d(e,c(e,t)),s=new n.Field(e.name,f,e.nullable,u(e.customMetadata))),s||null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorAssembler=void 0;const n=r(8),i=r(1),o=r(15),s=r(5),a=r(12),c=r(24),u=r(21),l=r(0);class d extends n.Visitor{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...e){const t=new d,r=c.selectVectorChildrenArgs(o.RecordBatch,e),[n=t]=t.visitMany(r);return n}visit(e){if(!l.DataType.isDictionary(e.type)){const{data:t,length:r,nullCount:n}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");l.DataType.isNull(e.type)||f.call(this,n<=0?new Uint8Array(0):a.truncateBitmap(t.offset,r,t.nullBitmap)),this.nodes.push(new u.FieldNode(r,n))}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.indices)}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function f(e){const t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new u.BufferRegion(this._byteLength,t)),this._byteLength+=t,this}function h(e){return f.call(this,e.values.subarray(0,e.length*e.stride))}function A(e){const{length:t,values:r,valueOffsets:n}=e,i=n[0],o=n[t],a=Math.min(o-i,r.byteLength-i);return f.call(this,s.rebaseValueOffsets(-n[0],t,n)),f.call(this,r.subarray(i,i+a)),this}function p(e){const{length:t,valueOffsets:r}=e;return r&&f.call(this,s.rebaseValueOffsets(r[0],t,r)),this.visit(e.getChildAt(0))}function y(e){return this.visitMany(e.type.children.map((t,r)=>e.getChildAt(r)).filter(Boolean))[0]}t.VectorAssembler=d,d.prototype.visitBool=function(e){let t;return e.nullCount>=e.length?f.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?f.call(this,a.truncateBitmap(e.offset,e.length,t)):f.call(this,a.packBools(e))},d.prototype.visitInt=h,d.prototype.visitFloat=h,d.prototype.visitUtf8=A,d.prototype.visitBinary=A,d.prototype.visitFixedSizeBinary=h,d.prototype.visitDate=h,d.prototype.visitTimestamp=h,d.prototype.visitTime=h,d.prototype.visitDecimal=h,d.prototype.visitList=p,d.prototype.visitStruct=y,d.prototype.visitUnion=function(e){const{type:t,length:r,typeIds:n,valueOffsets:o}=e;if(f.call(this,n),t.mode===i.UnionMode.Sparse)return y.call(this,e);if(t.mode===i.UnionMode.Dense){if(e.offset<=0)return f.call(this,o),y.call(this,e);{const i=n.reduce((e,t)=>Math.max(e,t),n[0]),a=new Int32Array(i+1),c=new Int32Array(i+1).fill(-1),u=new Int32Array(r),l=s.rebaseValueOffsets(-o[0],r,o);for(let e,t,i=-1;++i<r;)-1===(t=c[e=n[i]])&&(t=c[e]=l[e]),u[i]=l[i]-t,++a[e];f.call(this,u);for(let n,i=-1,o=t.children.length;++i<o;)if(n=e.getChildAt(i)){const e=t.typeIds[i],o=Math.min(r,a[e]);this.visit(n.slice(c[e],o))}}}return this},d.prototype.visitInterval=h,d.prototype.visitFixedSizeList=p,d.prototype.visitMap=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONTypeAssembler=void 0;const n=r(8),i=r(16),o=r(1);class s extends n.Visitor{visit(e){return null==e?void 0:super.visit(e)}visitNull({typeId:e}){return{name:i.Type[e].toLowerCase()}}visitInt({typeId:e,bitWidth:t,isSigned:r}){return{name:i.Type[e].toLowerCase(),bitWidth:t,isSigned:r}}visitFloat({typeId:e,precision:t}){return{name:i.Type[e].toLowerCase(),precision:o.Precision[t]}}visitBinary({typeId:e}){return{name:i.Type[e].toLowerCase()}}visitBool({typeId:e}){return{name:i.Type[e].toLowerCase()}}visitUtf8({typeId:e}){return{name:i.Type[e].toLowerCase()}}visitDecimal({typeId:e,scale:t,precision:r}){return{name:i.Type[e].toLowerCase(),scale:t,precision:r}}visitDate({typeId:e,unit:t}){return{name:i.Type[e].toLowerCase(),unit:o.DateUnit[t]}}visitTime({typeId:e,unit:t,bitWidth:r}){return{name:i.Type[e].toLowerCase(),unit:o.TimeUnit[t],bitWidth:r}}visitTimestamp({typeId:e,timezone:t,unit:r}){return{name:i.Type[e].toLowerCase(),unit:o.TimeUnit[r],timezone:t}}visitInterval({typeId:e,unit:t}){return{name:i.Type[e].toLowerCase(),unit:o.IntervalUnit[t]}}visitList({typeId:e}){return{name:i.Type[e].toLowerCase()}}visitStruct({typeId:e}){return{name:i.Type[e].toLowerCase()}}visitUnion({typeId:e,mode:t,typeIds:r}){return{name:i.Type[e].toLowerCase(),mode:o.UnionMode[t],typeIds:[...r]}}visitDictionary(e){return this.visit(e.dictionary)}visitFixedSizeBinary({typeId:e,byteWidth:t}){return{name:i.Type[e].toLowerCase(),byteWidth:t}}visitFixedSizeList({typeId:e,listSize:t}){return{name:i.Type[e].toLowerCase(),listSize:t}}visitMap({typeId:e,keysSorted:t}){return{name:i.Type[e].toLowerCase(),keysSorted:t}}}t.JSONTypeAssembler=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONVectorAssembler=void 0;const n=r(27),i=r(23),o=r(3),s=r(8),a=r(1),c=r(15),u=r(1),l=r(12),d=r(24),f=r(0);class h extends s.Visitor{static assemble(...e){return(new h).visitMany(d.selectColumnChildrenArgs(c.RecordBatch,e))}visit(e){const{data:t,name:r,length:n}=e,{offset:i,nullCount:s,nullBitmap:c}=t,u=f.DataType.isDictionary(e.type)?e.type.indices:e.type,d=Object.assign([],t.buffers,{[a.BufferType.VALIDITY]:void 0});return{name:r,count:n,VALIDITY:f.DataType.isNull(u)?void 0:s<=0?Array.from({length:n},()=>1):[...new l.BitIterator(c,i,n,null,l.getBit)],...super.visit(o.Vector.new(t.clone(u,i,n,0,d)))}}visitNull(){return{}}visitBool({values:e,offset:t,length:r}){return{DATA:[...new l.BitIterator(e,t,r,null,l.getBool)]}}visitInt(e){return{DATA:e.type.bitWidth<64?[...e.values]:[...p(e.values,2)]}}visitFloat(e){return{DATA:[...e.values]}}visitUtf8(e){return{DATA:[...e],OFFSET:[...e.valueOffsets]}}visitBinary(e){return{DATA:[...A(e)],OFFSET:[...e.valueOffsets]}}visitFixedSizeBinary(e){return{DATA:[...A(e)]}}visitDate(e){return{DATA:e.type.unit===u.DateUnit.DAY?[...e.values]:[...p(e.values,2)]}}visitTimestamp(e){return{DATA:[...p(e.values,2)]}}visitTime(e){return{DATA:e.type.unit<u.TimeUnit.MICROSECOND?[...e.values]:[...p(e.values,2)]}}visitDecimal(e){return{DATA:[...p(e.values,4)]}}visitList(e){return{OFFSET:[...e.valueOffsets],children:e.type.children.map((t,r)=>this.visit(new i.Column(t,[e.getChildAt(r)])))}}visitStruct(e){return{children:e.type.children.map((t,r)=>this.visit(new i.Column(t,[e.getChildAt(r)])))}}visitUnion(e){return{TYPE:[...e.typeIds],OFFSET:e.type.mode===u.UnionMode.Dense?[...e.valueOffsets]:void 0,children:e.type.children.map((t,r)=>this.visit(new i.Column(t,[e.getChildAt(r)])))}}visitInterval(e){return{DATA:[...e.values]}}visitFixedSizeList(e){return{children:e.type.children.map((t,r)=>this.visit(new i.Column(t,[e.getChildAt(r)])))}}visitMap(e){return{OFFSET:[...e.valueOffsets],children:e.type.children.map((t,r)=>this.visit(new i.Column(t,[e.getChildAt(r)])))}}}function*A(e){for(const t of e)yield t.reduce((e,t)=>`${e}${("0"+(255&t).toString(16)).slice(-2)}`,"").toUpperCase()}function*p(e,t){for(let r=-1,i=e.length/t;++r<i;)yield""+n.BN.new(e.subarray((r+0)*t,(r+1)*t),!1)}t.JSONVectorAssembler=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partial2=t.partial1=t.partial0=void 0,t.partial0=function(e){return function(){return e(this)}},t.partial1=function(e){return function(t){return e(this,t)}},t.partial2=function(e){return function(t,r){return e(this,t,r)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.IndexOfVisitor=void 0;const n=r(8),i=r(12),o=r(30);class s extends n.Visitor{}function a(e,t,r){if(void 0===t)return-1;if(null===t)return function(e,t){const{nullBitmap:r}=e.data;if(!r||e.nullCount<=0)return-1;let n=0;for(const o of new i.BitIterator(r,e.data.offset+(t||0),e.length,r,i.getBool)){if(!o)return n;++n}return-1}(e,r);const n=o.createElementComparator(t);for(let t=(r||0)-1,i=e.length;++t<i;)if(n(e.get(t)))return t;return-1}function c(e,t,r){const n=o.createElementComparator(t);for(let t=(r||0)-1,i=e.length;++t<i;)if(n(e.get(t)))return t;return-1}t.IndexOfVisitor=s,s.prototype.visitNull=function(e,t){return null===t&&e.length>0?0:-1},s.prototype.visitBool=a,s.prototype.visitInt=a,s.prototype.visitInt8=a,s.prototype.visitInt16=a,s.prototype.visitInt32=a,s.prototype.visitInt64=a,s.prototype.visitUint8=a,s.prototype.visitUint16=a,s.prototype.visitUint32=a,s.prototype.visitUint64=a,s.prototype.visitFloat=a,s.prototype.visitFloat16=a,s.prototype.visitFloat32=a,s.prototype.visitFloat64=a,s.prototype.visitUtf8=a,s.prototype.visitBinary=a,s.prototype.visitFixedSizeBinary=a,s.prototype.visitDate=a,s.prototype.visitDateDay=a,s.prototype.visitDateMillisecond=a,s.prototype.visitTimestamp=a,s.prototype.visitTimestampSecond=a,s.prototype.visitTimestampMillisecond=a,s.prototype.visitTimestampMicrosecond=a,s.prototype.visitTimestampNanosecond=a,s.prototype.visitTime=a,s.prototype.visitTimeSecond=a,s.prototype.visitTimeMillisecond=a,s.prototype.visitTimeMicrosecond=a,s.prototype.visitTimeNanosecond=a,s.prototype.visitDecimal=a,s.prototype.visitList=a,s.prototype.visitStruct=a,s.prototype.visitUnion=a,s.prototype.visitDenseUnion=c,s.prototype.visitSparseUnion=c,s.prototype.visitDictionary=a,s.prototype.visitInterval=a,s.prototype.visitIntervalDayTime=a,s.prototype.visitIntervalYearMonth=a,s.prototype.visitFixedSizeList=a,s.prototype.visitMap=a,t.instance=new s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.ToArrayVisitor=void 0;const n=r(1),i=r(8),o=r(81);class s extends i.Visitor{}function a(e){const{type:t,length:r,stride:i}=e;switch(t.typeId){case n.Type.Int:case n.Type.Float:case n.Type.Decimal:case n.Type.Time:case n.Type.Timestamp:return e.data.values.subarray(0,r*i)}return[...o.instance.visit(e)]}t.ToArrayVisitor=s,s.prototype.visitNull=a,s.prototype.visitBool=a,s.prototype.visitInt=a,s.prototype.visitInt8=a,s.prototype.visitInt16=a,s.prototype.visitInt32=a,s.prototype.visitInt64=a,s.prototype.visitUint8=a,s.prototype.visitUint16=a,s.prototype.visitUint32=a,s.prototype.visitUint64=a,s.prototype.visitFloat=a,s.prototype.visitFloat16=a,s.prototype.visitFloat32=a,s.prototype.visitFloat64=a,s.prototype.visitUtf8=a,s.prototype.visitBinary=a,s.prototype.visitFixedSizeBinary=a,s.prototype.visitDate=a,s.prototype.visitDateDay=a,s.prototype.visitDateMillisecond=a,s.prototype.visitTimestamp=a,s.prototype.visitTimestampSecond=a,s.prototype.visitTimestampMillisecond=a,s.prototype.visitTimestampMicrosecond=a,s.prototype.visitTimestampNanosecond=a,s.prototype.visitTime=a,s.prototype.visitTimeSecond=a,s.prototype.visitTimeMillisecond=a,s.prototype.visitTimeMicrosecond=a,s.prototype.visitTimeNanosecond=a,s.prototype.visitDecimal=a,s.prototype.visitList=a,s.prototype.visitStruct=a,s.prototype.visitUnion=a,s.prototype.visitDenseUnion=a,s.prototype.visitSparseUnion=a,s.prototype.visitDictionary=a,s.prototype.visitInterval=a,s.prototype.visitIntervalDayTime=a,s.prototype.visitIntervalYearMonth=a,s.prototype.visitFixedSizeList=a,s.prototype.visitMap=a,t.instance=new s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.ByteWidthVisitor=void 0;const n=r(8),i=r(1),o=(e,t)=>e+t,s=e=>"Cannot compute the byte width of variable-width column "+e;class a extends n.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(s(e))}visitUtf8(e){throw new Error(s(e))}visitBool(e){return 1/8}visitDecimal(e){return 16}visitDate(e){return 4*(e.unit+1)}visitTime(e){return e.bitWidth/8}visitTimestamp(e){return e.unit===i.TimeUnit.SECOND?4:8}visitInterval(e){return 4*(e.unit+1)}visitList(e){throw new Error(s(e))}visitStruct(e){return this.visitFields(e.children).reduce(o,0)}visitUnion(e){return this.visitFields(e.children).reduce(o,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(o,0)}visitMap(e){return this.visitFields(e.children).reduce(o,0)}visitDictionary(e){return this.visit(e.indices)}visitFields(e){return(e||[]).map(e=>this.visit(e.type))}visitSchema(e){return this.visitFields(e.fields).reduce(o,0)}}t.ByteWidthVisitor=a,t.instance=new a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.instance=t.GetVectorConstructor=void 0;const n=r(8),i=r(64),o=r(65),s=r(66),a=r(67),c=r(38),u=r(68),l=r(69),d=r(70),f=r(71),h=r(39),A=r(72),p=r(73),y=r(74),b=r(75),m=r(76),g=r(77),v=r(78),B=r(79);class _ extends n.Visitor{visitNull(){return y.NullVector}visitBool(){return o.BoolVector}visitInt(){return h.IntVector}visitInt8(){return h.Int8Vector}visitInt16(){return h.Int16Vector}visitInt32(){return h.Int32Vector}visitInt64(){return h.Int64Vector}visitUint8(){return h.Uint8Vector}visitUint16(){return h.Uint16Vector}visitUint32(){return h.Uint32Vector}visitUint64(){return h.Uint64Vector}visitFloat(){return d.FloatVector}visitFloat16(){return d.Float16Vector}visitFloat32(){return d.Float32Vector}visitFloat64(){return d.Float64Vector}visitUtf8(){return B.Utf8Vector}visitBinary(){return i.BinaryVector}visitFixedSizeBinary(){return u.FixedSizeBinaryVector}visitDate(){return s.DateVector}visitDateDay(){return s.DateDayVector}visitDateMillisecond(){return s.DateMillisecondVector}visitTimestamp(){return m.TimestampVector}visitTimestampSecond(){return m.TimestampSecondVector}visitTimestampMillisecond(){return m.TimestampMillisecondVector}visitTimestampMicrosecond(){return m.TimestampMicrosecondVector}visitTimestampNanosecond(){return m.TimestampNanosecondVector}visitTime(){return g.TimeVector}visitTimeSecond(){return g.TimeSecondVector}visitTimeMillisecond(){return g.TimeMillisecondVector}visitTimeMicrosecond(){return g.TimeMicrosecondVector}visitTimeNanosecond(){return g.TimeNanosecondVector}visitDecimal(){return a.DecimalVector}visitList(){return A.ListVector}visitStruct(){return b.StructVector}visitUnion(){return v.UnionVector}visitDenseUnion(){return v.DenseUnionVector}visitSparseUnion(){return v.SparseUnionVector}visitDictionary(){return c.DictionaryVector}visitInterval(){return f.IntervalVector}visitIntervalDayTime(){return f.IntervalDayTimeVector}visitIntervalYearMonth(){return f.IntervalYearMonthVector}visitFixedSizeList(){return l.FixedSizeListVector}visitMap(){return p.MapVector}}t.GetVectorConstructor=_,t.instance=new _},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toDOMStream=void 0;const n=r(5),i=r(9);t.toDOMStream=function(e,t){if(i.isAsyncIterable(e))return function(e,t){let r=null;const i=t&&"bytes"===t.type||!1,o=t&&t.highWaterMark||2**24;return new ReadableStream({...t,async start(t){await s(t,r||(r=e[Symbol.asyncIterator]()))},async pull(e){r?await s(e,r):e.close()},async cancel(){r&&r.return&&await r.return(),r=null}},{highWaterMark:i?o:void 0,...t});async function s(e,t){let r,o=null,s=e.desiredSize||null;for(;!(o=await t.next(i?s:null)).done;)if(ArrayBuffer.isView(o.value)&&(r=n.toUint8Array(o.value))&&(null!=s&&i&&(s=s-r.byteLength+1),o.value=r),e.enqueue(o.value),null!=s&&--s<=0)return;e.close()}}(e,t);if(i.isIterable(e))return function(e,t){let r=null;const i=t&&"bytes"===t.type||!1,o=t&&t.highWaterMark||2**24;return new ReadableStream({...t,start(t){s(t,r||(r=e[Symbol.iterator]()))},pull(e){r?s(e,r):e.close()},cancel(){r&&r.return&&r.return(),r=null}},{highWaterMark:i?o:void 0,...t});function s(e,t){let r,o=null,s=e.desiredSize||null;for(;!(o=t.next(i?s:null)).done;)if(ArrayBuffer.isView(o.value)&&(r=n.toUint8Array(o.value))&&(null!=s&&i&&(s=s-r.byteLength+1),o.value=r),e.enqueue(o.value),null!=s&&--s<=0)return;e.close()}}(e,t);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BuilderTransform=t.builderThroughDOMStream=void 0;const n=r(32);t.builderThroughDOMStream=function(e){return new i(e)};class i{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;const{readableStrategy:t,writableStrategy:r,queueingStrategy:i="count",...a}=e;this._controller=null,this._builder=n.Builder.new(a),this._getSize="bytes"!==i?o:s;const{highWaterMark:c=("bytes"===i?16384:1e3)}={...t},{highWaterMark:u=("bytes"===i?16384:1e3)}={...r};this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:e=>{this._maybeFlush(this._builder,this._controller=e)},start:e=>{this._maybeFlush(this._builder,this._controller=e)}},{highWaterMark:c,size:"bytes"!==i?o:s}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:u,size:e=>this._writeValueAndReturnChunkSize(e)})}_writeValueAndReturnChunkSize(e){const t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){null!==t&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,null===t?e.close():e.enqueue(t)}}t.BuilderTransform=i;const o=e=>e.length,s=e=>e.byteLength},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recordBatchReaderThroughDOMStream=void 0;const n=r(18),i=r(28);t.recordBatchReaderThroughDOMStream=function(e,t){const r=new n.AsyncByteQueue;let o=null;const s=new ReadableStream({async cancel(){await r.close()},async start(e){await a(e,o||(o=await async function(){return await(await i.RecordBatchReader.from(r)).open(t)}()))},async pull(e){o?await a(e,o):e.close()}});return{writable:new WritableStream(r,{highWaterMark:16384,...e}),readable:s};async function a(e,t){let r=e.desiredSize,n=null;for(;!(n=await t.next()).done;)if(e.enqueue(n.value),null!=r&&--r<=0)return;e.close()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recordBatchWriterThroughDOMStream=void 0;const n=r(18);t.recordBatchWriterThroughDOMStream=function(e,t){const r=new this(e),i=new n.AsyncByteStream(r),o=new ReadableStream({type:"bytes",async cancel(){await i.cancel()},async pull(e){await s(e)},async start(e){await s(e)}},{highWaterMark:16384,...t});return{writable:new WritableStream(r,e),readable:o};async function s(e){let t=null,r=e.desiredSize;for(;t=await i.read(r||null);)if(e.enqueue(t),null!=r&&(r-=t.byteLength)<=0)return;e.close()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilteredDataFrame=t.CountByResult=t.DataFrame=void 0;const n=r(29),i=r(39),o=r(6),s=r(82),a=r(15),c=r(0);n.Table.prototype.countBy=function(e){return new u(this.chunks).countBy(e)},n.Table.prototype.scan=function(e,t){return new u(this.chunks).scan(e,t)},n.Table.prototype.scanReverse=function(e,t){return new u(this.chunks).scanReverse(e,t)},n.Table.prototype.filter=function(e){return new u(this.chunks).filter(e)};class u extends n.Table{filter(e){return new f(this.chunks,e)}scan(e,t){const r=this.chunks,n=r.length;for(let i=-1;++i<n;){const n=r[i];t&&t(n);for(let t=-1,r=n.length;++t<r;)e(t,n)}}scanReverse(e,t){const r=this.chunks;for(let n=r.length;--n>=0;){const i=r[n];t&&t(i);for(let t=i.length;--t>=0;)e(t,i)}}countBy(e){const t=this.chunks,r=t.length,n="string"==typeof e?new s.Col(e):e;n.bind(t[r-1]);const o=n.vector;if(!c.DataType.isDictionary(o.type))throw new Error("countBy currently only supports dictionary-encoded columns");const a=Math.ceil(Math.log(o.length)/Math.log(256)),u=new(4==a?Uint32Array:a>=2?Uint16Array:Uint8Array)(o.dictionary.length);for(let e=-1;++e<r;){const r=t[e];n.bind(r);const i=n.vector.indices;for(let e=-1,t=r.length;++e<t;){const t=i.get(e);null!==t&&u[t]++}}return new l(o.dictionary,i.IntVector.from(u))}}t.DataFrame=u;class l extends n.Table{constructor(e,t){const r=new o.Schema([new o.Field("values",e.type),new o.Field("counts",t.type)]);super(new a.RecordBatch(r,t.length,[e,t]))}toJSON(){const e=this.getColumnAt(0),t=this.getColumnAt(1),r={};for(let n=-1;++n<this.length;)r[e.get(n)]=t.get(n);return r}}t.CountByResult=l;class d{constructor(e,t){this.batches=e,this.predicate=t,this.batchIndex=0,this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch)}next(){for(;this.batchIndex<this.batches.length;){for(;this.index<this.batch.length;){if(this.predicateFunc(this.index,this.batch))return{value:this.batch.get(this.index++)};this.index++}++this.batchIndex<this.batches.length&&(this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch))}return{done:!0,value:null}}[Symbol.iterator](){return this}}class f extends u{constructor(e,t){super(e),this._predicate=t}scan(e,t){const r=this._chunks,n=r.length;for(let i=-1;++i<n;){const n=r[i],o=this._predicate.bind(n);let s=!1;for(let r=-1,i=n.length;++r<i;)o(r,n)&&(t&&!s&&(t(n),s=!0),e(r,n))}}scanReverse(e,t){const r=this._chunks;for(let n=r.length;--n>=0;){const i=r[n],o=this._predicate.bind(i);let s=!1;for(let r=i.length;--r>=0;)o(r,i)&&(t&&!s&&(t(i),s=!0),e(r,i))}}count(){let e=0;const t=this._chunks,r=t.length;for(let n=-1;++n<r;){const r=t[n],i=this._predicate.bind(r);for(let t=-1,n=r.length;++t<n;)i(t,r)&&++e}return e}[Symbol.iterator](){return new d(this._chunks,this._predicate)}filter(e){return new f(this._chunks,this._predicate.and(e))}countBy(e){const t=this._chunks,r=t.length,n="string"==typeof e?new s.Col(e):e;n.bind(t[r-1]);const o=n.vector;if(!c.DataType.isDictionary(o.type))throw new Error("countBy currently only supports dictionary-encoded columns");const a=Math.ceil(Math.log(o.length)/Math.log(256)),u=new(4==a?Uint32Array:a>=2?Uint16Array:Uint8Array)(o.dictionary.length);for(let e=-1;++e<r;){const r=t[e],i=this._predicate.bind(r);n.bind(r);const o=n.vector.indices;for(let e=-1,t=r.length;++e<t;){const t=o.get(e);null!==t&&i(e,r)&&u[t]++}}return new l(o.dictionary,i.IntVector.from(u))}}t.FilteredDataFrame=f},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var c,u=[],l=!1,d=-1;function f(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&h())}function h(){if(!l){var e=a(f);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function A(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new A(e,t)),1!==u.length||l||a(h)},A.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){},function(e,t,r){"use strict";r.r(t),r.d(t,"LASWorkerLoader",(function(){return n})),r.d(t,"LASLoader",(function(){return re})),r.d(t,"_typecheckLoader",(function(){return ne}));const n={name:"LAS",id:"las",module:"las",version:"3.1.0-alpha.1",worker:!0,extensions:["las","laz"],mimeTypes:["application/octet-stream"],text:!0,binary:!0,tests:["LAS"],options:{las:{shape:"mesh",fp64:!1,skip:1,colorDepth:8}}};var i=r(11),o=r(7);function s(e){switch(e.constructor){case Int8Array:return new o.Int8;case Uint8Array:return new o.Uint8;case Int16Array:return new o.Int16;case Uint16Array:return new o.Uint16;case Int32Array:return new o.Int32;case Uint32Array:return new o.Uint32;case Float32Array:return new o.Float32;case Float64Array:return new o.Float64;default:throw new Error("array type not supported")}}function a(e){switch(e.constructor){case Int8Array:return o.Int8Vector.from(e);case Uint8Array:return o.Uint8Vector.from(e);case Int16Array:return o.Int16Vector.from(e);case Uint16Array:return o.Uint16Vector.from(e);case Int32Array:return o.Int32Vector.from(e);case Uint32Array:return o.Uint32Vector.from(e);case Float32Array:return o.Float32Vector.from(e);case Float64Array:return o.Float64Vector.from(e);default:throw new Error("array type not supported")}}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class u{constructor(e,t){c(this,"fields",void 0),c(this,"metadata",void 0),function(e,t){if(!e)throw new Error(t||"loader assertion failed.")}(Array.isArray(e)),function(e){const t={};for(const r of e)t[r.name]&&console.warn("Schema: duplicated field name",r.name,r),t[r.name]=!0}(e),this.fields=e,this.metadata=t||new Map}compareTo(e){if(this.metadata!==e.metadata)return!1;if(this.fields.length!==e.fields.length)return!1;for(let t=0;t<this.fields.length;++t)if(!this.fields[t].compareTo(e.fields[t]))return!1;return!0}select(...e){const t=Object.create(null);for(const r of e)t[r]=!0;const r=this.fields.filter(e=>t[e.name]);return new u(r,this.metadata)}selectAt(...e){const t=e.map(e=>this.fields[e]).filter(Boolean);return new u(t,this.metadata)}assign(e){let t,r=this.metadata;if(e instanceof u){const n=e;t=n.fields,r=l(l(new Map,this.metadata),n.metadata)}else t=e;const n=Object.create(null);for(const e of this.fields)n[e.name]=e;for(const e of t)n[e.name]=e;const i=Object.values(n);return new u(i,r)}}function l(e,t){return new Map([...e||new Map,...t||new Map])}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class f{constructor(e,t,r=!1,n=new Map){d(this,"name",void 0),d(this,"type",void 0),d(this,"nullable",void 0),d(this,"metadata",void 0),this.name=e,this.type=t,this.nullable=r,this.metadata=n}get typeId(){return this.type&&this.type.typeId}clone(){return new f(this.name,this.type,this.nullable,this.metadata)}compareTo(e){return this.name===e.name&&this.type===e.type&&this.nullable===e.nullable&&this.metadata===e.metadata}toString(){return`${this.type}${this.nullable?", nullable":""}${this.metadata?", metadata: "+this.metadata:""}`}}let h,A,p,y,b,m,g,v,B;function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth"}(h||(h={}));class T{static isNull(e){return e&&e.typeId===h.Null}static isInt(e){return e&&e.typeId===h.Int}static isFloat(e){return e&&e.typeId===h.Float}static isBinary(e){return e&&e.typeId===h.Binary}static isUtf8(e){return e&&e.typeId===h.Utf8}static isBool(e){return e&&e.typeId===h.Bool}static isDecimal(e){return e&&e.typeId===h.Decimal}static isDate(e){return e&&e.typeId===h.Date}static isTime(e){return e&&e.typeId===h.Time}static isTimestamp(e){return e&&e.typeId===h.Timestamp}static isInterval(e){return e&&e.typeId===h.Interval}static isList(e){return e&&e.typeId===h.List}static isStruct(e){return e&&e.typeId===h.Struct}static isUnion(e){return e&&e.typeId===h.Union}static isFixedSizeBinary(e){return e&&e.typeId===h.FixedSizeBinary}static isFixedSizeList(e){return e&&e.typeId===h.FixedSizeList}static isMap(e){return e&&e.typeId===h.Map}static isDictionary(e){return e&&e.typeId===h.Dictionary}get typeId(){return h.NONE}compareTo(e){return this===e}}Symbol.toStringTag;Symbol.toStringTag;A=Symbol.toStringTag;class w extends T{constructor(e,t){super(),_(this,"isSigned",void 0),_(this,"bitWidth",void 0),this.isSigned=e,this.bitWidth=t}get typeId(){return h.Int}get[A](){return"Int"}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}class V extends w{constructor(){super(!0,8)}}class I extends w{constructor(){super(!0,16)}}class F extends w{constructor(){super(!0,32)}}class U extends w{constructor(){super(!1,8)}}class S extends w{constructor(){super(!1,16)}}class M extends w{constructor(){super(!1,32)}}const O=32,R=64;p=Symbol.toStringTag;class D extends T{constructor(e){super(),_(this,"precision",void 0),this.precision=e}get typeId(){return h.Float}get[p](){return"Float"}toString(){return"Float"+this.precision}}class N extends D{constructor(){super(O)}}class Z extends D{constructor(){super(R)}}Symbol.toStringTag;Symbol.toStringTag;y=Symbol.toStringTag;b=Symbol.toStringTag;m=Symbol.toStringTag;g=Symbol.toStringTag;v=Symbol.toStringTag;class k extends T{constructor(e,t){super(),_(this,"listSize",void 0),_(this,"children",void 0),this.listSize=e,this.children=[t]}get typeId(){return h.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get[v](){return"FixedSizeList"}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}B=Symbol.toStringTag;function x(e,t){const r=function(e){const t=[];for(const r in e){const n=e[r];t.push(j(r,n))}return t}(e);return new u(r,t)}function j(e,t,r){const n=function(e){switch(e.constructor){case Int8Array:return new V;case Uint8Array:return new U;case Int16Array:return new I;case Uint16Array:return new S;case Int32Array:return new F;case Uint32Array:return new M;case Float32Array:return new N;case Float64Array:return new Z;default:throw new Error("array type not supported")}}(t.value),i=r||W(t);return new f(e,new k(t.size,new f("value",n)),!1,i)}function W(e){const t=new Map;return"byteOffset"in e&&t.set("byteOffset",e.byteOffset.toString(10)),"byteStride"in e&&t.set("byteStride",e.byteStride.toString(10)),"normalized"in e&&t.set("normalized",e.normalized.toString()),t}function P(e,t){var r;const n=[],o=[];for(const t in e.attributes){const r=e.attributes[t],{value:c,size:u=1}=r,l=s(c),d=a(c),f=new i.FixedSizeList(u,new i.Field("value",l)),h=new i.Field(t,f,!1,W(r)),A=new i.Data(f,0,c.length/u,0,void 0,[d]),p=new i.FixedSizeListVector(A);n.push(p),o.push(h)}const c=new i.Schema(o,(null==e||null===(r=e.schema)||void 0===r?void 0:r.metadata)||new Map),u=new i.RecordBatch(c,n[0].length,n);return new i.Table(c,u)}function z(e,t,r){switch(t||"mesh"){case"mesh":return e;case"columnar-table":return function(e){const t={};for(const[r,n]of Object.entries(e.attributes))t[r]=n.value;return{shape:"columnar-table",schema:e.schema,data:t}}(e);case"arrow-table":return{shape:"arrow-table",data:P(e)};default:throw new Error("Unsupported shape "+(null==r?void 0:r.shape))}}function E(e){let t=1/0,r=1/0,n=1/0,i=-1/0,o=-1/0,s=-1/0;const a=e.POSITION?e.POSITION.value:[],c=a&&a.length;for(let e=0;e<c;e+=3){const c=a[e],u=a[e+1],l=a[e+2];t=c<t?c:t,r=u<r?u:r,n=l<n?l:n,i=c>i?c:i,o=u>o?u:o,s=l>s?l:s}return[[t,r,n],[i,o,s]]}var X=r(84),C=r.n(X);function G(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let L=null;const Y={0:e=>({position:[e.getInt32(0,!0),e.getInt32(4,!0),e.getInt32(8,!0)],intensity:e.getUint16(12,!0),classification:e.getUint8(15)}),1:e=>({position:[e.getInt32(0,!0),e.getInt32(4,!0),e.getInt32(8,!0)],intensity:e.getUint16(12,!0),classification:e.getUint8(15)}),2:e=>({position:[e.getInt32(0,!0),e.getInt32(4,!0),e.getInt32(8,!0)],intensity:e.getUint16(12,!0),classification:e.getUint8(15),color:[e.getUint16(20,!0),e.getUint16(22,!0),e.getUint16(24,!0)]}),3:e=>({position:[e.getInt32(0,!0),e.getInt32(4,!0),e.getInt32(8,!0)],intensity:e.getUint16(12,!0),classification:e.getUint8(15),color:[e.getUint16(28,!0),e.getUint16(30,!0),e.getUint16(32,!0)]})};function J(e,t={},r,n){n=void 0===n||0===n?1:n;const i=new t(e.slice(r,r+t.BYTES_PER_ELEMENT*n));if(1===n)return i[0];const o=[];for(let e=0;e<n;e++)o.push(i[e]);return o}function H(e){let t=131;const r={pointsOffset:J(e,Uint32Array,96),pointsFormatId:J(e,Uint8Array,104),pointsStructSize:J(e,Uint16Array,105),pointsCount:J(e,Uint32Array,107),scale:J(e,Float64Array,t,3)};t+=24,r.offset=J(e,Float64Array,t,3),t+=24;const n=J(e,Float64Array,t,6);return t+=48,r.maxs=[n[0],n[2],n[4]],r.mins=[n[1],n[3],n[5]],r}class Q{constructor(e){G(this,"arraybuffer",void 0),G(this,"readOffset",0),G(this,"header",{pointsOffset:0,pointsFormatId:0,pointsStructSize:0,pointsCount:0,scale:[0,0,0],offset:[0,0,0],maxs:[0],mins:[0],totalToRead:0,totalRead:0,versionAsString:"",isCompressed:!0}),this.arraybuffer=e}open(){return!0}getHeader(){return this.header=H(this.arraybuffer),this.header}readData(e,t){const{header:r,arraybuffer:n}=this;if(!r)throw new Error("Cannot start reading data till a header request is issued");let i,{readOffset:o}=this;if(t<=1){e=Math.min(e,r.pointsCount-o),i=r.pointsOffset+o*r.pointsStructSize;const t=i+e*r.pointsStructSize;return o+=e,this.readOffset=o,{buffer:n.slice(i,t),count:e,hasMoreData:o<r.pointsCount}}const s=Math.min(e*t,r.pointsCount-o),a=Math.ceil(s/t);let c=0;const u=new Uint8Array(a*r.pointsStructSize);for(let e=0;e<s;e++){if(e%t==0){i=r.pointsOffset+o*r.pointsStructSize;const e=new Uint8Array(n,i,r.pointsStructSize);u.set(e,c*r.pointsStructSize),c++}o++}return this.readOffset=o,{buffer:u.buffer,count:c,hasMoreData:o<r.pointsCount}}close(){return this.arraybuffer=null,!0}}class ${constructor(e){G(this,"arraybuffer",void 0),G(this,"instance",null),G(this,"header",null),this.arraybuffer=e,L||(L=C()())}open(){try{const{arraybuffer:e}=this;this.instance=new L.LASZip;const t=new Uint8Array(e),r=L._malloc(e.byteLength);return this.instance.arraybuffer=e,this.instance.buf=r,L.HEAPU8.set(t,r),this.instance.open(r,e.byteLength),this.instance.readOffset=0,!0}catch(e){throw new Error("Failed to open file: "+e.message)}}getHeader(){if(!this.instance)throw new Error("You need to open the file before trying to read header");try{const e=H(this.instance.arraybuffer);return e.pointsFormatId&=63,this.header=e,e}catch(e){throw new Error("Failed to get header: "+e.message)}}readData(e,t,r){if(!this.instance)throw new Error("You need to open the file before trying to read stuff");const{header:n,instance:i}=this;if(!n)throw new Error("You need to query header before reading, I maintain state that way, sorry :(");try{const t=Math.min(e*r,n.pointsCount-i.readOffset),o=Math.ceil(t/r);let s=0;const a=new Uint8Array(o*n.pointsStructSize),c=L._malloc(n.pointsStructSize);for(let e=0;e<t;e++){if(i.getPoint(c),e%r==0){const e=new Uint8Array(L.HEAPU8.buffer,c,n.pointsStructSize);a.set(e,s*n.pointsStructSize),s++}i.readOffset++}return{buffer:a.buffer,count:s,hasMoreData:i.readOffset<n.pointsCount}}catch(e){throw new Error("Failed to read data: "+e.message)}}close(){try{return null!==this.instance&&(this.instance.delete(),this.instance=null),!0}catch(e){throw new Error("Failed to close file: "+e.message)}}}class K{constructor(e,t,r){G(this,"arrayb",void 0),G(this,"decoder",void 0),G(this,"pointsCount",void 0),G(this,"pointSize",void 0),G(this,"scale",void 0),G(this,"offset",void 0),G(this,"mins",void 0),G(this,"maxs",void 0),this.arrayb=e,this.decoder=Y[r.pointsFormatId],this.pointsCount=t,this.pointSize=r.pointsStructSize,this.scale=r.scale,this.offset=r.offset,this.mins=r.mins,this.maxs=r.maxs}getPoint(e){if(e<0||e>=this.pointsCount)throw new Error("Point index out of range");const t=new DataView(this.arrayb,e*this.pointSize,this.pointSize);return this.decoder(t)}}class q{constructor(e){if(G(this,"arraybuffer",void 0),G(this,"formatId",0),G(this,"loader",void 0),G(this,"isCompressed",!0),G(this,"isOpen",!1),G(this,"version",0),G(this,"versionAsString",""),this.arraybuffer=e,this.determineVersion()>13)throw new Error("Only file versions <= 1.3 are supported at this time");if(this.determineFormat(),void 0===Y[this.formatId])throw new Error("The point format ID is not supported");this.loader=this.isCompressed?new $(this.arraybuffer):new Q(this.arraybuffer)}determineFormat(){const e=J(this.arraybuffer,Uint8Array,104),t=(128&e)>>7,r=(64&e)>>6;if(1===t&&1===r)throw new Error("Old style compression not supported");this.formatId=63&e,this.isCompressed=1===t||1===r}determineVersion(){const e=new Int8Array(this.arraybuffer,24,2);return this.version=10*e[0]+e[1],this.versionAsString=`${e[0]}.${e[1]}`,this.version}open(){this.loader.open()&&(this.isOpen=!0)}getHeader(){return this.loader.getHeader()}readData(e,t,r){return this.loader.readData(e,t,r)}close(){this.loader.close()&&(this.isOpen=!1)}getUnpacker(){return K}}function ee(e,t){return x(t,function(e){const t=new Map;t.set("las_pointsOffset",e.pointsOffset.toString(10)),t.set("las_pointsFormatId",e.pointsFormatId.toString(10)),t.set("las_pointsStructSize",e.pointsStructSize.toString(10)),t.set("las_pointsCount",e.pointsCount.toString(10)),t.set("las_scale",JSON.stringify(e.scale)),t.set("las_offset",JSON.stringify(e.offset)),void 0!==e.maxs&&t.set("las_maxs",JSON.stringify(e.maxs));void 0!==e.mins&&t.set("las_mins",JSON.stringify(e.mins));t.set("las_totalToRead",e.totalToRead.toString(10)),t.set("las_pointsFortotalReadmatId",e.totalRead.toString(10)),void 0!==e.versionAsString&&t.set("las_versionAsString",e.versionAsString);void 0!==e.isCompressed&&t.set("las_isCompressed",e.isCompressed.toString());return t}(e))}function te(e,t){var r;return z(function(e,t={}){var r;let n,i,o,s,a,c=0;const l={loader:"las",loaderData:{},schema:new u([]),header:{vertexCount:0,boundingBox:[[0,0,0],[0,0,0]]},attributes:{},topology:"point-list",mode:0};(function(e,t,r={}){const n=new q(e);try{n.open();const e=n.getHeader(),i=n.getUnpacker(),o=Math.ceil(e.pointsCount/Math.max(1,t));e.totalToRead=o;let s=0;for(;;){const a=n.readData(1e5,0,t);s+=a.count,e.totalRead=s,e.versionAsString=a.versionAsString,e.isCompressed=a.isCompressed;const c=new i(a.buffer,a.count,e);if(r(c,e),!a.hasMoreData||s>=o)break}}catch(e){throw e}finally{n.close()}})(e,null===(r=t.las)||void 0===r?void 0:r.skip,(e={},r)=>{var u,d;if(!a){var f;a=r;const e=r.totalToRead,c=null!==(f=t.las)&&void 0!==f&&f.fp64?Float64Array:Float32Array;n=new c(3*e),i=r.pointsFormatId>=2?new Uint8Array(4*e):null,o=new Uint16Array(e),s=new Uint8Array(e),l.loaderData=r,l.attributes={POSITION:{value:n,size:3},intensity:{value:o,size:1},classification:{value:s,size:1}},i&&(l.attributes.COLOR_0={value:i,size:4})}const h=e.pointsCount,{scale:[A,p,y],offset:[b,m,g]}=r,v=function(e={},t,r){let n=!1;switch(r){case 8:n=!1;break;case 16:n=!0;break;case"auto":if(e.getPoint(0).color)for(let r=0;r<t;r++){const{color:t}=e.getPoint(r);(t[0]>255||t[1]>255||t[2]>255)&&(n=!0)}break;default:console.warn("las: illegal value for options.las.colorDepth")}return n}(e,h,null===(u=t.las)||void 0===u?void 0:u.colorDepth);for(let t=0;t<h;t++){const{position:r,color:a,intensity:u,classification:l}=e.getPoint(t);n[3*c]=r[0]*A+b,n[3*c+1]=r[1]*p+m,n[3*c+2]=r[2]*y+g,a&&i&&(v?(i[4*c]=a[0]/256,i[4*c+1]=a[1]/256,i[4*c+2]=a[2]/256):(i[4*c]=a[0],i[4*c+1]=a[1],i[4*c+2]=a[2]),i[4*c+3]=255),o[c]=u,s[c]=l,c++}const B={...l,header:{vertexCount:r.totalRead},progress:r.totalRead/r.totalToRead};null==t||null===(d=t.onProgress)||void 0===d||d.call(t,B)}),l.header={vertexCount:a.totalToRead,boundingBox:E((null==l?void 0:l.attributes)||{})},l&&(l.schema=ee(l.loaderData,l.attributes));return l}(e,t),(null==t||null===(r=t.las)||void 0===r?void 0:r.shape)||"mesh")}const re={...n,parse:async(e,t)=>te(e,t),parseSync:(e,t)=>te(e,t)},ne=re}])}));
2
- //# sourceMappingURL=dist.min.js.map