@uwdata/mosaic-core 0.2.0 → 0.3.2

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.
@@ -916,7 +916,7 @@ function decimalToString(a) {
916
916
  } while (checks[0] || checks[1] || checks[2] || checks[3]);
917
917
  return digits !== null && digits !== void 0 ? digits : `0`;
918
918
  }
919
- var BN = class {
919
+ var BN = class _BN {
920
920
  /** @nocollapse */
921
921
  static new(num, isSigned) {
922
922
  switch (isSigned) {
@@ -950,7 +950,7 @@ var BN = class {
950
950
  return new DecimalBigNum(num);
951
951
  }
952
952
  constructor(num, isSigned) {
953
- return BN.new(num, isSigned);
953
+ return _BN.new(num, isSigned);
954
954
  }
955
955
  };
956
956
 
@@ -982,7 +982,7 @@ var _r;
982
982
  var _s;
983
983
  var _t;
984
984
  var _u;
985
- var DataType = class {
985
+ var DataType = class _DataType {
986
986
  /** @nocollapse */
987
987
  static isNull(x2) {
988
988
  return (x2 === null || x2 === void 0 ? void 0 : x2.typeId) === Type.Null;
@@ -1057,11 +1057,11 @@ var DataType = class {
1057
1057
  }
1058
1058
  /** @nocollapse */
1059
1059
  static isDenseUnion(x2) {
1060
- return DataType.isUnion(x2) && x2.mode === UnionMode.Dense;
1060
+ return _DataType.isUnion(x2) && x2.mode === UnionMode.Dense;
1061
1061
  }
1062
1062
  /** @nocollapse */
1063
1063
  static isSparseUnion(x2) {
1064
- return DataType.isUnion(x2) && x2.mode === UnionMode.Sparse;
1064
+ return _DataType.isUnion(x2) && x2.mode === UnionMode.Sparse;
1065
1065
  }
1066
1066
  get typeId() {
1067
1067
  return Type.NONE;
@@ -2856,7 +2856,7 @@ function popcnt_uint32(uint32) {
2856
2856
 
2857
2857
  // node_modules/apache-arrow/data.mjs
2858
2858
  var kUnknownNullCount = -1;
2859
- var Data = class {
2859
+ var Data = class _Data {
2860
2860
  get typeId() {
2861
2861
  return this.type.typeId;
2862
2862
  }
@@ -2891,7 +2891,7 @@ var Data = class {
2891
2891
  this.length = Math.floor(Math.max(length2 || 0, 0));
2892
2892
  this._nullCount = Math.floor(Math.max(nullCount || 0, -1));
2893
2893
  let buffer;
2894
- if (buffers instanceof Data) {
2894
+ if (buffers instanceof _Data) {
2895
2895
  this.stride = buffers.stride;
2896
2896
  this.values = buffers.values;
2897
2897
  this.typeIds = buffers.typeIds;
@@ -2932,7 +2932,7 @@ var Data = class {
2932
2932
  return value;
2933
2933
  }
2934
2934
  clone(type = this.type, offset = this.offset, length2 = this.length, nullCount = this._nullCount, buffers = this, children = this.children) {
2935
- return new Data(type, offset, length2, nullCount, buffers, children, this.dictionary);
2935
+ return new _Data(type, offset, length2, nullCount, buffers, children, this.dictionary);
2936
2936
  }
2937
2937
  slice(offset, length2) {
2938
2938
  const { stride, typeId, children } = this;
@@ -2976,7 +2976,7 @@ var Data = class {
2976
2976
  }
2977
2977
  };
2978
2978
  Data.prototype.children = Object.freeze([]);
2979
- var MakeDataVisitor = class extends Visitor {
2979
+ var MakeDataVisitor = class _MakeDataVisitor extends Visitor {
2980
2980
  visit(props) {
2981
2981
  return this.getVisitFn(props["type"]).call(this, props);
2982
2982
  }
@@ -3084,7 +3084,7 @@ var MakeDataVisitor = class extends Visitor {
3084
3084
  const { ["type"]: type, ["offset"]: offset = 0 } = props;
3085
3085
  const nullBitmap = toUint8Array(props["nullBitmap"]);
3086
3086
  const data = toArrayBufferView(type.indices.ArrayType, props["data"]);
3087
- const { ["dictionary"]: dictionary = new Vector([new MakeDataVisitor().visit({ type: type.dictionary })]) } = props;
3087
+ const { ["dictionary"]: dictionary = new Vector([new _MakeDataVisitor().visit({ type: type.dictionary })]) } = props;
3088
3088
  const { ["length"]: length2 = data.length, ["nullCount"]: nullCount = props["nullBitmap"] ? -1 : 0 } = props;
3089
3089
  return new Data(type, offset, length2, nullCount, [void 0, data, nullBitmap], [], dictionary);
3090
3090
  }
@@ -3096,13 +3096,13 @@ var MakeDataVisitor = class extends Visitor {
3096
3096
  return new Data(type, offset, length2, nullCount, [void 0, data, nullBitmap]);
3097
3097
  }
3098
3098
  visitFixedSizeList(props) {
3099
- const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new MakeDataVisitor().visit({ type: type.valueType }) } = props;
3099
+ const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new _MakeDataVisitor().visit({ type: type.valueType }) } = props;
3100
3100
  const nullBitmap = toUint8Array(props["nullBitmap"]);
3101
3101
  const { ["length"]: length2 = child.length / strideForType(type), ["nullCount"]: nullCount = props["nullBitmap"] ? -1 : 0 } = props;
3102
3102
  return new Data(type, offset, length2, nullCount, [void 0, void 0, nullBitmap], [child]);
3103
3103
  }
3104
3104
  visitMap(props) {
3105
- const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new MakeDataVisitor().visit({ type: type.childType }) } = props;
3105
+ const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new _MakeDataVisitor().visit({ type: type.childType }) } = props;
3106
3106
  const nullBitmap = toUint8Array(props["nullBitmap"]);
3107
3107
  const valueOffsets = toInt32Array(props["valueOffsets"]);
3108
3108
  const { ["length"]: length2 = valueOffsets.length - 1, ["nullCount"]: nullCount = props["nullBitmap"] ? -1 : 0 } = props;
@@ -3497,10 +3497,10 @@ var instance5 = new GetByteLengthVisitor();
3497
3497
  var _a2;
3498
3498
  var visitorsByTypeId = {};
3499
3499
  var vectorPrototypesByTypeId = {};
3500
- var Vector = class {
3500
+ var Vector = class _Vector {
3501
3501
  constructor(input) {
3502
3502
  var _b3, _c3, _d3;
3503
- const data = input[0] instanceof Vector ? input.flatMap((x2) => x2.data) : input;
3503
+ const data = input[0] instanceof _Vector ? input.flatMap((x2) => x2.data) : input;
3504
3504
  if (data.length === 0 || data.some((x2) => !(x2 instanceof Data))) {
3505
3505
  throw new TypeError("Vector constructor expects an Array of Data instances.");
3506
3506
  }
@@ -3624,7 +3624,7 @@ var Vector = class {
3624
3624
  * @param others Additional Vectors to add to the end of this Vector.
3625
3625
  */
3626
3626
  concat(...others) {
3627
- return new Vector(this.data.concat(others.flatMap((x2) => x2.data).flat(Number.POSITIVE_INFINITY)));
3627
+ return new _Vector(this.data.concat(others.flatMap((x2) => x2.data).flat(Number.POSITIVE_INFINITY)));
3628
3628
  }
3629
3629
  /**
3630
3630
  * Return a zero-copy sub-section of this Vector.
@@ -3632,7 +3632,7 @@ var Vector = class {
3632
3632
  * @param end The end of the specified portion of the Vector. This is exclusive of the element at the index 'end'.
3633
3633
  */
3634
3634
  slice(begin, end) {
3635
- return new Vector(clampRange(this, begin, end, ({ data, _offsets }, begin2, end2) => sliceChunks(data, _offsets, begin2, end2)));
3635
+ return new _Vector(clampRange(this, begin, end, ({ data, _offsets }, begin2, end2) => sliceChunks(data, _offsets, begin2, end2)));
3636
3636
  }
3637
3637
  toJSON() {
3638
3638
  return [...this];
@@ -3693,7 +3693,7 @@ var Vector = class {
3693
3693
  */
3694
3694
  getChildAt(index) {
3695
3695
  if (index > -1 && index < this.numChildren) {
3696
- return new Vector(this.data.map(({ children }) => children[index]));
3696
+ return new _Vector(this.data.map(({ children }) => children[index]));
3697
3697
  }
3698
3698
  return null;
3699
3699
  }
@@ -3722,7 +3722,7 @@ var Vector = class {
3722
3722
  cloned.dictionary = dictionary;
3723
3723
  return cloned;
3724
3724
  });
3725
- return new Vector(newData);
3725
+ return new _Vector(newData);
3726
3726
  }
3727
3727
  return new MemoizedVector(this);
3728
3728
  }
@@ -3740,7 +3740,7 @@ var Vector = class {
3740
3740
  newData2.dictionary = dictionary;
3741
3741
  return newData2;
3742
3742
  });
3743
- return new Vector(newData);
3743
+ return new _Vector(newData);
3744
3744
  }
3745
3745
  return this;
3746
3746
  }
@@ -3756,7 +3756,7 @@ Vector[_a2] = ((proto) => {
3756
3756
  proto._byteLength = -1;
3757
3757
  proto._offsets = new Uint32Array([0]);
3758
3758
  proto[Symbol.isConcatSpreadable] = true;
3759
- const typeIds = Object.keys(Type).map((T) => Type[T]).filter((T) => typeof T === "number" && T !== Type.NONE);
3759
+ const typeIds = Object.keys(Type).map((T2) => Type[T2]).filter((T2) => typeof T2 === "number" && T2 !== Type.NONE);
3760
3760
  for (const typeId of typeIds) {
3761
3761
  const get = instance2.getVisitFnByTypeId(typeId);
3762
3762
  const set = instance.getVisitFnByTypeId(typeId);
@@ -3773,7 +3773,7 @@ Vector[_a2] = ((proto) => {
3773
3773
  }
3774
3774
  return "Vector";
3775
3775
  })(Vector.prototype);
3776
- var MemoizedVector = class extends Vector {
3776
+ var MemoizedVector = class _MemoizedVector extends Vector {
3777
3777
  constructor(vector) {
3778
3778
  super(vector.data);
3779
3779
  const get = this.get;
@@ -3798,7 +3798,7 @@ var MemoizedVector = class extends Vector {
3798
3798
  }
3799
3799
  });
3800
3800
  Object.defineProperty(this, "slice", {
3801
- value: (begin, end) => new MemoizedVector(slice.call(this, begin, end))
3801
+ value: (begin, end) => new _MemoizedVector(slice.call(this, begin, end))
3802
3802
  });
3803
3803
  Object.defineProperty(this, "isMemoized", { value: true });
3804
3804
  Object.defineProperty(this, "unmemoize", {
@@ -4284,7 +4284,7 @@ var Encoding;
4284
4284
  })(Encoding || (Encoding = {}));
4285
4285
 
4286
4286
  // node_modules/flatbuffers/mjs/byte-buffer.js
4287
- var ByteBuffer = class {
4287
+ var ByteBuffer = class _ByteBuffer {
4288
4288
  /**
4289
4289
  * Create a new ByteBuffer with a given array of bytes (`Uint8Array`)
4290
4290
  */
@@ -4297,7 +4297,7 @@ var ByteBuffer = class {
4297
4297
  * Create and allocate a new ByteBuffer with a given size.
4298
4298
  */
4299
4299
  static allocate(byte_size) {
4300
- return new ByteBuffer(new Uint8Array(byte_size));
4300
+ return new _ByteBuffer(new Uint8Array(byte_size));
4301
4301
  }
4302
4302
  clear() {
4303
4303
  this.position_ = 0;
@@ -4528,7 +4528,7 @@ var ByteBuffer = class {
4528
4528
  };
4529
4529
 
4530
4530
  // node_modules/flatbuffers/mjs/builder.js
4531
- var Builder2 = class {
4531
+ var Builder2 = class _Builder {
4532
4532
  /**
4533
4533
  * Create a FlatBufferBuilder.
4534
4534
  */
@@ -4606,7 +4606,7 @@ var Builder2 = class {
4606
4606
  const align_size = ~(this.bb.capacity() - this.space + additional_bytes) + 1 & size - 1;
4607
4607
  while (this.space < align_size + size + additional_bytes) {
4608
4608
  const old_buf_size = this.bb.capacity();
4609
- this.bb = Builder2.growByteBuffer(this.bb);
4609
+ this.bb = _Builder.growByteBuffer(this.bb);
4610
4610
  this.space += this.bb.capacity() - old_buf_size;
4611
4611
  }
4612
4612
  this.pad(align_size);
@@ -5013,7 +5013,7 @@ var Builder2 = class {
5013
5013
  };
5014
5014
 
5015
5015
  // node_modules/apache-arrow/fb/key-value.mjs
5016
- var KeyValue = class {
5016
+ var KeyValue = class _KeyValue {
5017
5017
  constructor() {
5018
5018
  this.bb = null;
5019
5019
  this.bb_pos = 0;
@@ -5024,11 +5024,11 @@ var KeyValue = class {
5024
5024
  return this;
5025
5025
  }
5026
5026
  static getRootAsKeyValue(bb, obj) {
5027
- return (obj || new KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5027
+ return (obj || new _KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5028
5028
  }
5029
5029
  static getSizePrefixedRootAsKeyValue(bb, obj) {
5030
5030
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5031
- return (obj || new KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5031
+ return (obj || new _KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5032
5032
  }
5033
5033
  key(optionalEncoding) {
5034
5034
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -5052,10 +5052,10 @@ var KeyValue = class {
5052
5052
  return offset;
5053
5053
  }
5054
5054
  static createKeyValue(builder, keyOffset, valueOffset) {
5055
- KeyValue.startKeyValue(builder);
5056
- KeyValue.addKey(builder, keyOffset);
5057
- KeyValue.addValue(builder, valueOffset);
5058
- return KeyValue.endKeyValue(builder);
5055
+ _KeyValue.startKeyValue(builder);
5056
+ _KeyValue.addKey(builder, keyOffset);
5057
+ _KeyValue.addValue(builder, valueOffset);
5058
+ return _KeyValue.endKeyValue(builder);
5059
5059
  }
5060
5060
  };
5061
5061
 
@@ -5083,7 +5083,7 @@ var DictionaryKind;
5083
5083
  })(DictionaryKind || (DictionaryKind = {}));
5084
5084
 
5085
5085
  // node_modules/apache-arrow/fb/int.mjs
5086
- var Int = class {
5086
+ var Int = class _Int {
5087
5087
  constructor() {
5088
5088
  this.bb = null;
5089
5089
  this.bb_pos = 0;
@@ -5094,11 +5094,11 @@ var Int = class {
5094
5094
  return this;
5095
5095
  }
5096
5096
  static getRootAsInt(bb, obj) {
5097
- return (obj || new Int()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5097
+ return (obj || new _Int()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5098
5098
  }
5099
5099
  static getSizePrefixedRootAsInt(bb, obj) {
5100
5100
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5101
- return (obj || new Int()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5101
+ return (obj || new _Int()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5102
5102
  }
5103
5103
  bitWidth() {
5104
5104
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -5122,15 +5122,15 @@ var Int = class {
5122
5122
  return offset;
5123
5123
  }
5124
5124
  static createInt(builder, bitWidth, isSigned) {
5125
- Int.startInt(builder);
5126
- Int.addBitWidth(builder, bitWidth);
5127
- Int.addIsSigned(builder, isSigned);
5128
- return Int.endInt(builder);
5125
+ _Int.startInt(builder);
5126
+ _Int.addBitWidth(builder, bitWidth);
5127
+ _Int.addIsSigned(builder, isSigned);
5128
+ return _Int.endInt(builder);
5129
5129
  }
5130
5130
  };
5131
5131
 
5132
5132
  // node_modules/apache-arrow/fb/dictionary-encoding.mjs
5133
- var DictionaryEncoding = class {
5133
+ var DictionaryEncoding = class _DictionaryEncoding {
5134
5134
  constructor() {
5135
5135
  this.bb = null;
5136
5136
  this.bb_pos = 0;
@@ -5141,11 +5141,11 @@ var DictionaryEncoding = class {
5141
5141
  return this;
5142
5142
  }
5143
5143
  static getRootAsDictionaryEncoding(bb, obj) {
5144
- return (obj || new DictionaryEncoding()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5144
+ return (obj || new _DictionaryEncoding()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5145
5145
  }
5146
5146
  static getSizePrefixedRootAsDictionaryEncoding(bb, obj) {
5147
5147
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5148
- return (obj || new DictionaryEncoding()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5148
+ return (obj || new _DictionaryEncoding()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5149
5149
  }
5150
5150
  /**
5151
5151
  * The known dictionary id in the application where this data is used. In
@@ -5203,7 +5203,7 @@ var DictionaryEncoding = class {
5203
5203
  };
5204
5204
 
5205
5205
  // node_modules/apache-arrow/fb/binary.mjs
5206
- var Binary2 = class {
5206
+ var Binary2 = class _Binary {
5207
5207
  constructor() {
5208
5208
  this.bb = null;
5209
5209
  this.bb_pos = 0;
@@ -5214,11 +5214,11 @@ var Binary2 = class {
5214
5214
  return this;
5215
5215
  }
5216
5216
  static getRootAsBinary(bb, obj) {
5217
- return (obj || new Binary2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5217
+ return (obj || new _Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5218
5218
  }
5219
5219
  static getSizePrefixedRootAsBinary(bb, obj) {
5220
5220
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5221
- return (obj || new Binary2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5221
+ return (obj || new _Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5222
5222
  }
5223
5223
  static startBinary(builder) {
5224
5224
  builder.startObject(0);
@@ -5228,13 +5228,13 @@ var Binary2 = class {
5228
5228
  return offset;
5229
5229
  }
5230
5230
  static createBinary(builder) {
5231
- Binary2.startBinary(builder);
5232
- return Binary2.endBinary(builder);
5231
+ _Binary.startBinary(builder);
5232
+ return _Binary.endBinary(builder);
5233
5233
  }
5234
5234
  };
5235
5235
 
5236
5236
  // node_modules/apache-arrow/fb/bool.mjs
5237
- var Bool2 = class {
5237
+ var Bool2 = class _Bool {
5238
5238
  constructor() {
5239
5239
  this.bb = null;
5240
5240
  this.bb_pos = 0;
@@ -5245,11 +5245,11 @@ var Bool2 = class {
5245
5245
  return this;
5246
5246
  }
5247
5247
  static getRootAsBool(bb, obj) {
5248
- return (obj || new Bool2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5248
+ return (obj || new _Bool()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5249
5249
  }
5250
5250
  static getSizePrefixedRootAsBool(bb, obj) {
5251
5251
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5252
- return (obj || new Bool2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5252
+ return (obj || new _Bool()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5253
5253
  }
5254
5254
  static startBool(builder) {
5255
5255
  builder.startObject(0);
@@ -5259,8 +5259,8 @@ var Bool2 = class {
5259
5259
  return offset;
5260
5260
  }
5261
5261
  static createBool(builder) {
5262
- Bool2.startBool(builder);
5263
- return Bool2.endBool(builder);
5262
+ _Bool.startBool(builder);
5263
+ return _Bool.endBool(builder);
5264
5264
  }
5265
5265
  };
5266
5266
 
@@ -5272,7 +5272,7 @@ var DateUnit2;
5272
5272
  })(DateUnit2 || (DateUnit2 = {}));
5273
5273
 
5274
5274
  // node_modules/apache-arrow/fb/date.mjs
5275
- var Date2 = class {
5275
+ var Date2 = class _Date {
5276
5276
  constructor() {
5277
5277
  this.bb = null;
5278
5278
  this.bb_pos = 0;
@@ -5283,11 +5283,11 @@ var Date2 = class {
5283
5283
  return this;
5284
5284
  }
5285
5285
  static getRootAsDate(bb, obj) {
5286
- return (obj || new Date2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5286
+ return (obj || new _Date()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5287
5287
  }
5288
5288
  static getSizePrefixedRootAsDate(bb, obj) {
5289
5289
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5290
- return (obj || new Date2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5290
+ return (obj || new _Date()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5291
5291
  }
5292
5292
  unit() {
5293
5293
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -5304,14 +5304,14 @@ var Date2 = class {
5304
5304
  return offset;
5305
5305
  }
5306
5306
  static createDate(builder, unit) {
5307
- Date2.startDate(builder);
5308
- Date2.addUnit(builder, unit);
5309
- return Date2.endDate(builder);
5307
+ _Date.startDate(builder);
5308
+ _Date.addUnit(builder, unit);
5309
+ return _Date.endDate(builder);
5310
5310
  }
5311
5311
  };
5312
5312
 
5313
5313
  // node_modules/apache-arrow/fb/decimal.mjs
5314
- var Decimal2 = class {
5314
+ var Decimal2 = class _Decimal {
5315
5315
  constructor() {
5316
5316
  this.bb = null;
5317
5317
  this.bb_pos = 0;
@@ -5322,11 +5322,11 @@ var Decimal2 = class {
5322
5322
  return this;
5323
5323
  }
5324
5324
  static getRootAsDecimal(bb, obj) {
5325
- return (obj || new Decimal2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5325
+ return (obj || new _Decimal()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5326
5326
  }
5327
5327
  static getSizePrefixedRootAsDecimal(bb, obj) {
5328
5328
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5329
- return (obj || new Decimal2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5329
+ return (obj || new _Decimal()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5330
5330
  }
5331
5331
  /**
5332
5332
  * Total number of decimal digits
@@ -5367,11 +5367,11 @@ var Decimal2 = class {
5367
5367
  return offset;
5368
5368
  }
5369
5369
  static createDecimal(builder, precision, scale, bitWidth) {
5370
- Decimal2.startDecimal(builder);
5371
- Decimal2.addPrecision(builder, precision);
5372
- Decimal2.addScale(builder, scale);
5373
- Decimal2.addBitWidth(builder, bitWidth);
5374
- return Decimal2.endDecimal(builder);
5370
+ _Decimal.startDecimal(builder);
5371
+ _Decimal.addPrecision(builder, precision);
5372
+ _Decimal.addScale(builder, scale);
5373
+ _Decimal.addBitWidth(builder, bitWidth);
5374
+ return _Decimal.endDecimal(builder);
5375
5375
  }
5376
5376
  };
5377
5377
 
@@ -5385,7 +5385,7 @@ var TimeUnit2;
5385
5385
  })(TimeUnit2 || (TimeUnit2 = {}));
5386
5386
 
5387
5387
  // node_modules/apache-arrow/fb/fixed-size-binary.mjs
5388
- var FixedSizeBinary2 = class {
5388
+ var FixedSizeBinary2 = class _FixedSizeBinary {
5389
5389
  constructor() {
5390
5390
  this.bb = null;
5391
5391
  this.bb_pos = 0;
@@ -5396,11 +5396,11 @@ var FixedSizeBinary2 = class {
5396
5396
  return this;
5397
5397
  }
5398
5398
  static getRootAsFixedSizeBinary(bb, obj) {
5399
- return (obj || new FixedSizeBinary2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5399
+ return (obj || new _FixedSizeBinary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5400
5400
  }
5401
5401
  static getSizePrefixedRootAsFixedSizeBinary(bb, obj) {
5402
5402
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5403
- return (obj || new FixedSizeBinary2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5403
+ return (obj || new _FixedSizeBinary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5404
5404
  }
5405
5405
  /**
5406
5406
  * Number of bytes per value
@@ -5420,14 +5420,14 @@ var FixedSizeBinary2 = class {
5420
5420
  return offset;
5421
5421
  }
5422
5422
  static createFixedSizeBinary(builder, byteWidth) {
5423
- FixedSizeBinary2.startFixedSizeBinary(builder);
5424
- FixedSizeBinary2.addByteWidth(builder, byteWidth);
5425
- return FixedSizeBinary2.endFixedSizeBinary(builder);
5423
+ _FixedSizeBinary.startFixedSizeBinary(builder);
5424
+ _FixedSizeBinary.addByteWidth(builder, byteWidth);
5425
+ return _FixedSizeBinary.endFixedSizeBinary(builder);
5426
5426
  }
5427
5427
  };
5428
5428
 
5429
5429
  // node_modules/apache-arrow/fb/fixed-size-list.mjs
5430
- var FixedSizeList2 = class {
5430
+ var FixedSizeList2 = class _FixedSizeList {
5431
5431
  constructor() {
5432
5432
  this.bb = null;
5433
5433
  this.bb_pos = 0;
@@ -5438,11 +5438,11 @@ var FixedSizeList2 = class {
5438
5438
  return this;
5439
5439
  }
5440
5440
  static getRootAsFixedSizeList(bb, obj) {
5441
- return (obj || new FixedSizeList2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5441
+ return (obj || new _FixedSizeList()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5442
5442
  }
5443
5443
  static getSizePrefixedRootAsFixedSizeList(bb, obj) {
5444
5444
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5445
- return (obj || new FixedSizeList2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5445
+ return (obj || new _FixedSizeList()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5446
5446
  }
5447
5447
  /**
5448
5448
  * Number of list items per value
@@ -5462,9 +5462,9 @@ var FixedSizeList2 = class {
5462
5462
  return offset;
5463
5463
  }
5464
5464
  static createFixedSizeList(builder, listSize) {
5465
- FixedSizeList2.startFixedSizeList(builder);
5466
- FixedSizeList2.addListSize(builder, listSize);
5467
- return FixedSizeList2.endFixedSizeList(builder);
5465
+ _FixedSizeList.startFixedSizeList(builder);
5466
+ _FixedSizeList.addListSize(builder, listSize);
5467
+ return _FixedSizeList.endFixedSizeList(builder);
5468
5468
  }
5469
5469
  };
5470
5470
 
@@ -5477,7 +5477,7 @@ var Precision2;
5477
5477
  })(Precision2 || (Precision2 = {}));
5478
5478
 
5479
5479
  // node_modules/apache-arrow/fb/floating-point.mjs
5480
- var FloatingPoint = class {
5480
+ var FloatingPoint = class _FloatingPoint {
5481
5481
  constructor() {
5482
5482
  this.bb = null;
5483
5483
  this.bb_pos = 0;
@@ -5488,11 +5488,11 @@ var FloatingPoint = class {
5488
5488
  return this;
5489
5489
  }
5490
5490
  static getRootAsFloatingPoint(bb, obj) {
5491
- return (obj || new FloatingPoint()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5491
+ return (obj || new _FloatingPoint()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5492
5492
  }
5493
5493
  static getSizePrefixedRootAsFloatingPoint(bb, obj) {
5494
5494
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5495
- return (obj || new FloatingPoint()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5495
+ return (obj || new _FloatingPoint()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5496
5496
  }
5497
5497
  precision() {
5498
5498
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -5509,9 +5509,9 @@ var FloatingPoint = class {
5509
5509
  return offset;
5510
5510
  }
5511
5511
  static createFloatingPoint(builder, precision) {
5512
- FloatingPoint.startFloatingPoint(builder);
5513
- FloatingPoint.addPrecision(builder, precision);
5514
- return FloatingPoint.endFloatingPoint(builder);
5512
+ _FloatingPoint.startFloatingPoint(builder);
5513
+ _FloatingPoint.addPrecision(builder, precision);
5514
+ return _FloatingPoint.endFloatingPoint(builder);
5515
5515
  }
5516
5516
  };
5517
5517
 
@@ -5524,7 +5524,7 @@ var IntervalUnit2;
5524
5524
  })(IntervalUnit2 || (IntervalUnit2 = {}));
5525
5525
 
5526
5526
  // node_modules/apache-arrow/fb/interval.mjs
5527
- var Interval = class {
5527
+ var Interval = class _Interval {
5528
5528
  constructor() {
5529
5529
  this.bb = null;
5530
5530
  this.bb_pos = 0;
@@ -5535,11 +5535,11 @@ var Interval = class {
5535
5535
  return this;
5536
5536
  }
5537
5537
  static getRootAsInterval(bb, obj) {
5538
- return (obj || new Interval()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5538
+ return (obj || new _Interval()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5539
5539
  }
5540
5540
  static getSizePrefixedRootAsInterval(bb, obj) {
5541
5541
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5542
- return (obj || new Interval()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5542
+ return (obj || new _Interval()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5543
5543
  }
5544
5544
  unit() {
5545
5545
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -5556,14 +5556,14 @@ var Interval = class {
5556
5556
  return offset;
5557
5557
  }
5558
5558
  static createInterval(builder, unit) {
5559
- Interval.startInterval(builder);
5560
- Interval.addUnit(builder, unit);
5561
- return Interval.endInterval(builder);
5559
+ _Interval.startInterval(builder);
5560
+ _Interval.addUnit(builder, unit);
5561
+ return _Interval.endInterval(builder);
5562
5562
  }
5563
5563
  };
5564
5564
 
5565
5565
  // node_modules/apache-arrow/fb/list.mjs
5566
- var List2 = class {
5566
+ var List2 = class _List {
5567
5567
  constructor() {
5568
5568
  this.bb = null;
5569
5569
  this.bb_pos = 0;
@@ -5574,11 +5574,11 @@ var List2 = class {
5574
5574
  return this;
5575
5575
  }
5576
5576
  static getRootAsList(bb, obj) {
5577
- return (obj || new List2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5577
+ return (obj || new _List()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5578
5578
  }
5579
5579
  static getSizePrefixedRootAsList(bb, obj) {
5580
5580
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5581
- return (obj || new List2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5581
+ return (obj || new _List()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5582
5582
  }
5583
5583
  static startList(builder) {
5584
5584
  builder.startObject(0);
@@ -5588,13 +5588,13 @@ var List2 = class {
5588
5588
  return offset;
5589
5589
  }
5590
5590
  static createList(builder) {
5591
- List2.startList(builder);
5592
- return List2.endList(builder);
5591
+ _List.startList(builder);
5592
+ return _List.endList(builder);
5593
5593
  }
5594
5594
  };
5595
5595
 
5596
5596
  // node_modules/apache-arrow/fb/map.mjs
5597
- var Map2 = class {
5597
+ var Map2 = class _Map {
5598
5598
  constructor() {
5599
5599
  this.bb = null;
5600
5600
  this.bb_pos = 0;
@@ -5605,11 +5605,11 @@ var Map2 = class {
5605
5605
  return this;
5606
5606
  }
5607
5607
  static getRootAsMap(bb, obj) {
5608
- return (obj || new Map2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5608
+ return (obj || new _Map()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5609
5609
  }
5610
5610
  static getSizePrefixedRootAsMap(bb, obj) {
5611
5611
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5612
- return (obj || new Map2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5612
+ return (obj || new _Map()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5613
5613
  }
5614
5614
  /**
5615
5615
  * Set to true if the keys within each value are sorted
@@ -5629,14 +5629,14 @@ var Map2 = class {
5629
5629
  return offset;
5630
5630
  }
5631
5631
  static createMap(builder, keysSorted) {
5632
- Map2.startMap(builder);
5633
- Map2.addKeysSorted(builder, keysSorted);
5634
- return Map2.endMap(builder);
5632
+ _Map.startMap(builder);
5633
+ _Map.addKeysSorted(builder, keysSorted);
5634
+ return _Map.endMap(builder);
5635
5635
  }
5636
5636
  };
5637
5637
 
5638
5638
  // node_modules/apache-arrow/fb/null.mjs
5639
- var Null2 = class {
5639
+ var Null2 = class _Null {
5640
5640
  constructor() {
5641
5641
  this.bb = null;
5642
5642
  this.bb_pos = 0;
@@ -5647,11 +5647,11 @@ var Null2 = class {
5647
5647
  return this;
5648
5648
  }
5649
5649
  static getRootAsNull(bb, obj) {
5650
- return (obj || new Null2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5650
+ return (obj || new _Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5651
5651
  }
5652
5652
  static getSizePrefixedRootAsNull(bb, obj) {
5653
5653
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5654
- return (obj || new Null2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5654
+ return (obj || new _Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5655
5655
  }
5656
5656
  static startNull(builder) {
5657
5657
  builder.startObject(0);
@@ -5661,13 +5661,13 @@ var Null2 = class {
5661
5661
  return offset;
5662
5662
  }
5663
5663
  static createNull(builder) {
5664
- Null2.startNull(builder);
5665
- return Null2.endNull(builder);
5664
+ _Null.startNull(builder);
5665
+ return _Null.endNull(builder);
5666
5666
  }
5667
5667
  };
5668
5668
 
5669
5669
  // node_modules/apache-arrow/fb/struct-.mjs
5670
- var Struct_ = class {
5670
+ var Struct_ = class _Struct_ {
5671
5671
  constructor() {
5672
5672
  this.bb = null;
5673
5673
  this.bb_pos = 0;
@@ -5678,11 +5678,11 @@ var Struct_ = class {
5678
5678
  return this;
5679
5679
  }
5680
5680
  static getRootAsStruct_(bb, obj) {
5681
- return (obj || new Struct_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5681
+ return (obj || new _Struct_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5682
5682
  }
5683
5683
  static getSizePrefixedRootAsStruct_(bb, obj) {
5684
5684
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5685
- return (obj || new Struct_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5685
+ return (obj || new _Struct_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5686
5686
  }
5687
5687
  static startStruct_(builder) {
5688
5688
  builder.startObject(0);
@@ -5692,13 +5692,13 @@ var Struct_ = class {
5692
5692
  return offset;
5693
5693
  }
5694
5694
  static createStruct_(builder) {
5695
- Struct_.startStruct_(builder);
5696
- return Struct_.endStruct_(builder);
5695
+ _Struct_.startStruct_(builder);
5696
+ return _Struct_.endStruct_(builder);
5697
5697
  }
5698
5698
  };
5699
5699
 
5700
5700
  // node_modules/apache-arrow/fb/time.mjs
5701
- var Time = class {
5701
+ var Time = class _Time {
5702
5702
  constructor() {
5703
5703
  this.bb = null;
5704
5704
  this.bb_pos = 0;
@@ -5709,11 +5709,11 @@ var Time = class {
5709
5709
  return this;
5710
5710
  }
5711
5711
  static getRootAsTime(bb, obj) {
5712
- return (obj || new Time()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5712
+ return (obj || new _Time()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5713
5713
  }
5714
5714
  static getSizePrefixedRootAsTime(bb, obj) {
5715
5715
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5716
- return (obj || new Time()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5716
+ return (obj || new _Time()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5717
5717
  }
5718
5718
  unit() {
5719
5719
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -5737,15 +5737,15 @@ var Time = class {
5737
5737
  return offset;
5738
5738
  }
5739
5739
  static createTime(builder, unit, bitWidth) {
5740
- Time.startTime(builder);
5741
- Time.addUnit(builder, unit);
5742
- Time.addBitWidth(builder, bitWidth);
5743
- return Time.endTime(builder);
5740
+ _Time.startTime(builder);
5741
+ _Time.addUnit(builder, unit);
5742
+ _Time.addBitWidth(builder, bitWidth);
5743
+ return _Time.endTime(builder);
5744
5744
  }
5745
5745
  };
5746
5746
 
5747
5747
  // node_modules/apache-arrow/fb/timestamp.mjs
5748
- var Timestamp = class {
5748
+ var Timestamp = class _Timestamp {
5749
5749
  constructor() {
5750
5750
  this.bb = null;
5751
5751
  this.bb_pos = 0;
@@ -5756,11 +5756,11 @@ var Timestamp = class {
5756
5756
  return this;
5757
5757
  }
5758
5758
  static getRootAsTimestamp(bb, obj) {
5759
- return (obj || new Timestamp()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5759
+ return (obj || new _Timestamp()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5760
5760
  }
5761
5761
  static getSizePrefixedRootAsTimestamp(bb, obj) {
5762
5762
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5763
- return (obj || new Timestamp()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5763
+ return (obj || new _Timestamp()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5764
5764
  }
5765
5765
  unit() {
5766
5766
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -5784,10 +5784,10 @@ var Timestamp = class {
5784
5784
  return offset;
5785
5785
  }
5786
5786
  static createTimestamp(builder, unit, timezoneOffset) {
5787
- Timestamp.startTimestamp(builder);
5788
- Timestamp.addUnit(builder, unit);
5789
- Timestamp.addTimezone(builder, timezoneOffset);
5790
- return Timestamp.endTimestamp(builder);
5787
+ _Timestamp.startTimestamp(builder);
5788
+ _Timestamp.addUnit(builder, unit);
5789
+ _Timestamp.addTimezone(builder, timezoneOffset);
5790
+ return _Timestamp.endTimestamp(builder);
5791
5791
  }
5792
5792
  };
5793
5793
 
@@ -5799,7 +5799,7 @@ var UnionMode2;
5799
5799
  })(UnionMode2 || (UnionMode2 = {}));
5800
5800
 
5801
5801
  // node_modules/apache-arrow/fb/union.mjs
5802
- var Union = class {
5802
+ var Union = class _Union {
5803
5803
  constructor() {
5804
5804
  this.bb = null;
5805
5805
  this.bb_pos = 0;
@@ -5810,11 +5810,11 @@ var Union = class {
5810
5810
  return this;
5811
5811
  }
5812
5812
  static getRootAsUnion(bb, obj) {
5813
- return (obj || new Union()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5813
+ return (obj || new _Union()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5814
5814
  }
5815
5815
  static getSizePrefixedRootAsUnion(bb, obj) {
5816
5816
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5817
- return (obj || new Union()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5817
+ return (obj || new _Union()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5818
5818
  }
5819
5819
  mode() {
5820
5820
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -5856,15 +5856,15 @@ var Union = class {
5856
5856
  return offset;
5857
5857
  }
5858
5858
  static createUnion(builder, mode2, typeIdsOffset) {
5859
- Union.startUnion(builder);
5860
- Union.addMode(builder, mode2);
5861
- Union.addTypeIds(builder, typeIdsOffset);
5862
- return Union.endUnion(builder);
5859
+ _Union.startUnion(builder);
5860
+ _Union.addMode(builder, mode2);
5861
+ _Union.addTypeIds(builder, typeIdsOffset);
5862
+ return _Union.endUnion(builder);
5863
5863
  }
5864
5864
  };
5865
5865
 
5866
5866
  // node_modules/apache-arrow/fb/utf8.mjs
5867
- var Utf82 = class {
5867
+ var Utf82 = class _Utf8 {
5868
5868
  constructor() {
5869
5869
  this.bb = null;
5870
5870
  this.bb_pos = 0;
@@ -5875,11 +5875,11 @@ var Utf82 = class {
5875
5875
  return this;
5876
5876
  }
5877
5877
  static getRootAsUtf8(bb, obj) {
5878
- return (obj || new Utf82()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5878
+ return (obj || new _Utf8()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5879
5879
  }
5880
5880
  static getSizePrefixedRootAsUtf8(bb, obj) {
5881
5881
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5882
- return (obj || new Utf82()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5882
+ return (obj || new _Utf8()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5883
5883
  }
5884
5884
  static startUtf8(builder) {
5885
5885
  builder.startObject(0);
@@ -5889,8 +5889,8 @@ var Utf82 = class {
5889
5889
  return offset;
5890
5890
  }
5891
5891
  static createUtf8(builder) {
5892
- Utf82.startUtf8(builder);
5893
- return Utf82.endUtf8(builder);
5892
+ _Utf8.startUtf8(builder);
5893
+ return _Utf8.endUtf8(builder);
5894
5894
  }
5895
5895
  };
5896
5896
 
@@ -5923,7 +5923,7 @@ var Type2;
5923
5923
  })(Type2 || (Type2 = {}));
5924
5924
 
5925
5925
  // node_modules/apache-arrow/fb/field.mjs
5926
- var Field = class {
5926
+ var Field = class _Field {
5927
5927
  constructor() {
5928
5928
  this.bb = null;
5929
5929
  this.bb_pos = 0;
@@ -5934,11 +5934,11 @@ var Field = class {
5934
5934
  return this;
5935
5935
  }
5936
5936
  static getRootAsField(bb, obj) {
5937
- return (obj || new Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5937
+ return (obj || new _Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5938
5938
  }
5939
5939
  static getSizePrefixedRootAsField(bb, obj) {
5940
5940
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
5941
- return (obj || new Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5941
+ return (obj || new _Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
5942
5942
  }
5943
5943
  name(optionalEncoding) {
5944
5944
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -5975,7 +5975,7 @@ var Field = class {
5975
5975
  */
5976
5976
  children(index, obj) {
5977
5977
  const offset = this.bb.__offset(this.bb_pos, 14);
5978
- return offset ? (obj || new Field()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
5978
+ return offset ? (obj || new _Field()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
5979
5979
  }
5980
5980
  childrenLength() {
5981
5981
  const offset = this.bb.__offset(this.bb_pos, 14);
@@ -6043,7 +6043,7 @@ var Field = class {
6043
6043
  };
6044
6044
 
6045
6045
  // node_modules/apache-arrow/fb/schema.mjs
6046
- var Schema = class {
6046
+ var Schema = class _Schema {
6047
6047
  constructor() {
6048
6048
  this.bb = null;
6049
6049
  this.bb_pos = 0;
@@ -6054,11 +6054,11 @@ var Schema = class {
6054
6054
  return this;
6055
6055
  }
6056
6056
  static getRootAsSchema(bb, obj) {
6057
- return (obj || new Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
6057
+ return (obj || new _Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
6058
6058
  }
6059
6059
  static getSizePrefixedRootAsSchema(bb, obj) {
6060
6060
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
6061
- return (obj || new Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
6061
+ return (obj || new _Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
6062
6062
  }
6063
6063
  /**
6064
6064
  * endianness of the buffer
@@ -6152,17 +6152,17 @@ var Schema = class {
6152
6152
  builder.finish(offset, void 0, true);
6153
6153
  }
6154
6154
  static createSchema(builder, endianness, fieldsOffset, customMetadataOffset, featuresOffset) {
6155
- Schema.startSchema(builder);
6156
- Schema.addEndianness(builder, endianness);
6157
- Schema.addFields(builder, fieldsOffset);
6158
- Schema.addCustomMetadata(builder, customMetadataOffset);
6159
- Schema.addFeatures(builder, featuresOffset);
6160
- return Schema.endSchema(builder);
6155
+ _Schema.startSchema(builder);
6156
+ _Schema.addEndianness(builder, endianness);
6157
+ _Schema.addFields(builder, fieldsOffset);
6158
+ _Schema.addCustomMetadata(builder, customMetadataOffset);
6159
+ _Schema.addFeatures(builder, featuresOffset);
6160
+ return _Schema.endSchema(builder);
6161
6161
  }
6162
6162
  };
6163
6163
 
6164
6164
  // node_modules/apache-arrow/fb/footer.mjs
6165
- var Footer = class {
6165
+ var Footer = class _Footer {
6166
6166
  constructor() {
6167
6167
  this.bb = null;
6168
6168
  this.bb_pos = 0;
@@ -6173,11 +6173,11 @@ var Footer = class {
6173
6173
  return this;
6174
6174
  }
6175
6175
  static getRootAsFooter(bb, obj) {
6176
- return (obj || new Footer()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
6176
+ return (obj || new _Footer()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
6177
6177
  }
6178
6178
  static getSizePrefixedRootAsFooter(bb, obj) {
6179
6179
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
6180
- return (obj || new Footer()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
6180
+ return (obj || new _Footer()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
6181
6181
  }
6182
6182
  version() {
6183
6183
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -6261,7 +6261,7 @@ var Footer = class {
6261
6261
  };
6262
6262
 
6263
6263
  // node_modules/apache-arrow/schema.mjs
6264
- var Schema2 = class {
6264
+ var Schema2 = class _Schema {
6265
6265
  constructor(fields = [], metadata, dictionaries) {
6266
6266
  this.fields = fields || [];
6267
6267
  this.metadata = metadata || /* @__PURE__ */ new Map();
@@ -6288,7 +6288,7 @@ var Schema2 = class {
6288
6288
  select(fieldNames) {
6289
6289
  const names = new Set(fieldNames);
6290
6290
  const fields = this.fields.filter((f2) => names.has(f2.name));
6291
- return new Schema2(fields, this.metadata);
6291
+ return new _Schema(fields, this.metadata);
6292
6292
  }
6293
6293
  /**
6294
6294
  * Construct a new Schema containing only fields at the specified indices.
@@ -6298,10 +6298,10 @@ var Schema2 = class {
6298
6298
  */
6299
6299
  selectAt(fieldIndices) {
6300
6300
  const fields = fieldIndices.map((i2) => this.fields[i2]).filter(Boolean);
6301
- return new Schema2(fields, this.metadata);
6301
+ return new _Schema(fields, this.metadata);
6302
6302
  }
6303
6303
  assign(...args) {
6304
- const other = args[0] instanceof Schema2 ? args[0] : Array.isArray(args[0]) ? new Schema2(args[0]) : new Schema2(args);
6304
+ const other = args[0] instanceof _Schema ? args[0] : Array.isArray(args[0]) ? new _Schema(args[0]) : new _Schema(args);
6305
6305
  const curFields = [...this.fields];
6306
6306
  const metadata = mergeMaps(mergeMaps(/* @__PURE__ */ new Map(), this.metadata), other.metadata);
6307
6307
  const newFields = other.fields.filter((f2) => {
@@ -6311,13 +6311,13 @@ var Schema2 = class {
6311
6311
  })) && false : true;
6312
6312
  });
6313
6313
  const newDictionaries = generateDictionaryMap(newFields, /* @__PURE__ */ new Map());
6314
- return new Schema2([...curFields, ...newFields], metadata, new Map([...this.dictionaries, ...newDictionaries]));
6314
+ return new _Schema([...curFields, ...newFields], metadata, new Map([...this.dictionaries, ...newDictionaries]));
6315
6315
  }
6316
6316
  };
6317
6317
  Schema2.prototype.fields = null;
6318
6318
  Schema2.prototype.metadata = null;
6319
6319
  Schema2.prototype.dictionaries = null;
6320
- var Field2 = class {
6320
+ var Field2 = class _Field {
6321
6321
  /** @nocollapse */
6322
6322
  static new(...args) {
6323
6323
  let [name, type, nullable, metadata] = args;
@@ -6327,7 +6327,7 @@ var Field2 = class {
6327
6327
  nullable === void 0 && (nullable = args[0].nullable);
6328
6328
  metadata === void 0 && (metadata = args[0].metadata);
6329
6329
  }
6330
- return new Field2(`${name}`, type, nullable, metadata);
6330
+ return new _Field(`${name}`, type, nullable, metadata);
6331
6331
  }
6332
6332
  constructor(name, type, nullable = false, metadata) {
6333
6333
  this.name = name;
@@ -6347,7 +6347,7 @@ var Field2 = class {
6347
6347
  clone(...args) {
6348
6348
  let [name, type, nullable, metadata] = args;
6349
6349
  !args[0] || typeof args[0] !== "object" ? [name = this.name, type = this.type, nullable = this.nullable, metadata = this.metadata] = args : { name = this.name, type = this.type, nullable = this.nullable, metadata = this.metadata } = args[0];
6350
- return Field2.new(name, type, nullable, metadata);
6350
+ return _Field.new(name, type, nullable, metadata);
6351
6351
  }
6352
6352
  };
6353
6353
  Field2.prototype.type = null;
@@ -6471,10 +6471,10 @@ var OffHeapFooter = class extends Footer_ {
6471
6471
  return null;
6472
6472
  }
6473
6473
  };
6474
- var FileBlock = class {
6474
+ var FileBlock = class _FileBlock {
6475
6475
  /** @nocollapse */
6476
6476
  static decode(block) {
6477
- return new FileBlock(block.metaDataLength(), block.bodyLength(), block.offset());
6477
+ return new _FileBlock(block.metaDataLength(), block.bodyLength(), block.offset());
6478
6478
  }
6479
6479
  /** @nocollapse */
6480
6480
  static encode(b2, fileBlock) {
@@ -6680,9 +6680,9 @@ var ByteStream = class {
6680
6680
  return this.source.read(size);
6681
6681
  }
6682
6682
  };
6683
- var AsyncByteStream = class {
6683
+ var AsyncByteStream = class _AsyncByteStream {
6684
6684
  constructor(source) {
6685
- if (source instanceof AsyncByteStream) {
6685
+ if (source instanceof _AsyncByteStream) {
6686
6686
  this.source = source.source;
6687
6687
  } else if (source instanceof AsyncByteQueue) {
6688
6688
  this.source = new AsyncByteStreamSource(adapters_default.fromAsyncIterable(source));
@@ -6961,24 +6961,24 @@ var BaseInt64 = class {
6961
6961
  this.buffer[0] >>> 16,
6962
6962
  this.buffer[0] & 65535
6963
6963
  ]);
6964
- const R2 = new Uint32Array([
6964
+ const R = new Uint32Array([
6965
6965
  other.buffer[1] >>> 16,
6966
6966
  other.buffer[1] & 65535,
6967
6967
  other.buffer[0] >>> 16,
6968
6968
  other.buffer[0] & 65535
6969
6969
  ]);
6970
- let product2 = L2[3] * R2[3];
6970
+ let product2 = L2[3] * R[3];
6971
6971
  this.buffer[0] = product2 & 65535;
6972
6972
  let sum4 = product2 >>> 16;
6973
- product2 = L2[2] * R2[3];
6973
+ product2 = L2[2] * R[3];
6974
6974
  sum4 += product2;
6975
- product2 = L2[3] * R2[2] >>> 0;
6975
+ product2 = L2[3] * R[2] >>> 0;
6976
6976
  sum4 += product2;
6977
6977
  this.buffer[0] += sum4 << 16;
6978
6978
  this.buffer[1] = sum4 >>> 0 < product2 ? carryBit16 : 0;
6979
6979
  this.buffer[1] += sum4 >>> 16;
6980
- this.buffer[1] += L2[1] * R2[3] + L2[2] * R2[2] + L2[3] * R2[1];
6981
- this.buffer[1] += L2[0] * R2[3] + L2[1] * R2[2] + L2[2] * R2[1] + L2[3] * R2[0] << 16;
6980
+ this.buffer[1] += L2[1] * R[3] + L2[2] * R[2] + L2[3] * R[1];
6981
+ this.buffer[1] += L2[0] * R[3] + L2[1] * R[2] + L2[2] * R[1] + L2[3] * R[0] << 16;
6982
6982
  return this;
6983
6983
  }
6984
6984
  _plus(other) {
@@ -7002,7 +7002,7 @@ var BaseInt64 = class {
7002
7002
  return `${intAsHex(this.buffer[1])} ${intAsHex(this.buffer[0])}`;
7003
7003
  }
7004
7004
  };
7005
- var Uint642 = class extends BaseInt64 {
7005
+ var Uint642 = class _Uint64 extends BaseInt64 {
7006
7006
  times(other) {
7007
7007
  this._times(other);
7008
7008
  return this;
@@ -7013,20 +7013,20 @@ var Uint642 = class extends BaseInt64 {
7013
7013
  }
7014
7014
  /** @nocollapse */
7015
7015
  static from(val, out_buffer = new Uint32Array(2)) {
7016
- return Uint642.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
7016
+ return _Uint64.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
7017
7017
  }
7018
7018
  /** @nocollapse */
7019
7019
  static fromNumber(num, out_buffer = new Uint32Array(2)) {
7020
- return Uint642.fromString(num.toString(), out_buffer);
7020
+ return _Uint64.fromString(num.toString(), out_buffer);
7021
7021
  }
7022
7022
  /** @nocollapse */
7023
7023
  static fromString(str, out_buffer = new Uint32Array(2)) {
7024
7024
  const length2 = str.length;
7025
- const out = new Uint642(out_buffer);
7025
+ const out = new _Uint64(out_buffer);
7026
7026
  for (let posn = 0; posn < length2; ) {
7027
7027
  const group = kInt32DecimalDigits < length2 - posn ? kInt32DecimalDigits : length2 - posn;
7028
- const chunk = new Uint642(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
7029
- const multiple = new Uint642(new Uint32Array([kPowersOfTen[group], 0]));
7028
+ const chunk = new _Uint64(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
7029
+ const multiple = new _Uint64(new Uint32Array([kPowersOfTen[group], 0]));
7030
7030
  out.times(multiple);
7031
7031
  out.plus(chunk);
7032
7032
  posn += group;
@@ -7037,22 +7037,22 @@ var Uint642 = class extends BaseInt64 {
7037
7037
  static convertArray(values) {
7038
7038
  const data = new Uint32Array(values.length * 2);
7039
7039
  for (let i2 = -1, n = values.length; ++i2 < n; ) {
7040
- Uint642.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 2 * i2 * 4, 2));
7040
+ _Uint64.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 2 * i2 * 4, 2));
7041
7041
  }
7042
7042
  return data;
7043
7043
  }
7044
7044
  /** @nocollapse */
7045
7045
  static multiply(left, right) {
7046
- const rtrn = new Uint642(new Uint32Array(left.buffer));
7046
+ const rtrn = new _Uint64(new Uint32Array(left.buffer));
7047
7047
  return rtrn.times(right);
7048
7048
  }
7049
7049
  /** @nocollapse */
7050
7050
  static add(left, right) {
7051
- const rtrn = new Uint642(new Uint32Array(left.buffer));
7051
+ const rtrn = new _Uint64(new Uint32Array(left.buffer));
7052
7052
  return rtrn.plus(right);
7053
7053
  }
7054
7054
  };
7055
- var Int642 = class extends BaseInt64 {
7055
+ var Int642 = class _Int64 extends BaseInt64 {
7056
7056
  negate() {
7057
7057
  this.buffer[0] = ~this.buffer[0] + 1;
7058
7058
  this.buffer[1] = ~this.buffer[1];
@@ -7076,21 +7076,21 @@ var Int642 = class extends BaseInt64 {
7076
7076
  }
7077
7077
  /** @nocollapse */
7078
7078
  static from(val, out_buffer = new Uint32Array(2)) {
7079
- return Int642.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
7079
+ return _Int64.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
7080
7080
  }
7081
7081
  /** @nocollapse */
7082
7082
  static fromNumber(num, out_buffer = new Uint32Array(2)) {
7083
- return Int642.fromString(num.toString(), out_buffer);
7083
+ return _Int64.fromString(num.toString(), out_buffer);
7084
7084
  }
7085
7085
  /** @nocollapse */
7086
7086
  static fromString(str, out_buffer = new Uint32Array(2)) {
7087
7087
  const negate = str.startsWith("-");
7088
7088
  const length2 = str.length;
7089
- const out = new Int642(out_buffer);
7089
+ const out = new _Int64(out_buffer);
7090
7090
  for (let posn = negate ? 1 : 0; posn < length2; ) {
7091
7091
  const group = kInt32DecimalDigits < length2 - posn ? kInt32DecimalDigits : length2 - posn;
7092
- const chunk = new Int642(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
7093
- const multiple = new Int642(new Uint32Array([kPowersOfTen[group], 0]));
7092
+ const chunk = new _Int64(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
7093
+ const multiple = new _Int64(new Uint32Array([kPowersOfTen[group], 0]));
7094
7094
  out.times(multiple);
7095
7095
  out.plus(chunk);
7096
7096
  posn += group;
@@ -7101,22 +7101,22 @@ var Int642 = class extends BaseInt64 {
7101
7101
  static convertArray(values) {
7102
7102
  const data = new Uint32Array(values.length * 2);
7103
7103
  for (let i2 = -1, n = values.length; ++i2 < n; ) {
7104
- Int642.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 2 * i2 * 4, 2));
7104
+ _Int64.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 2 * i2 * 4, 2));
7105
7105
  }
7106
7106
  return data;
7107
7107
  }
7108
7108
  /** @nocollapse */
7109
7109
  static multiply(left, right) {
7110
- const rtrn = new Int642(new Uint32Array(left.buffer));
7110
+ const rtrn = new _Int64(new Uint32Array(left.buffer));
7111
7111
  return rtrn.times(right);
7112
7112
  }
7113
7113
  /** @nocollapse */
7114
7114
  static add(left, right) {
7115
- const rtrn = new Int642(new Uint32Array(left.buffer));
7115
+ const rtrn = new _Int64(new Uint32Array(left.buffer));
7116
7116
  return rtrn.plus(right);
7117
7117
  }
7118
7118
  };
7119
- var Int128 = class {
7119
+ var Int128 = class _Int128 {
7120
7120
  constructor(buffer) {
7121
7121
  this.buffer = buffer;
7122
7122
  }
@@ -7192,31 +7192,31 @@ var Int128 = class {
7192
7192
  }
7193
7193
  /** @nocollapse */
7194
7194
  static multiply(left, right) {
7195
- const rtrn = new Int128(new Uint32Array(left.buffer));
7195
+ const rtrn = new _Int128(new Uint32Array(left.buffer));
7196
7196
  return rtrn.times(right);
7197
7197
  }
7198
7198
  /** @nocollapse */
7199
7199
  static add(left, right) {
7200
- const rtrn = new Int128(new Uint32Array(left.buffer));
7200
+ const rtrn = new _Int128(new Uint32Array(left.buffer));
7201
7201
  return rtrn.plus(right);
7202
7202
  }
7203
7203
  /** @nocollapse */
7204
7204
  static from(val, out_buffer = new Uint32Array(4)) {
7205
- return Int128.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
7205
+ return _Int128.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
7206
7206
  }
7207
7207
  /** @nocollapse */
7208
7208
  static fromNumber(num, out_buffer = new Uint32Array(4)) {
7209
- return Int128.fromString(num.toString(), out_buffer);
7209
+ return _Int128.fromString(num.toString(), out_buffer);
7210
7210
  }
7211
7211
  /** @nocollapse */
7212
7212
  static fromString(str, out_buffer = new Uint32Array(4)) {
7213
7213
  const negate = str.startsWith("-");
7214
7214
  const length2 = str.length;
7215
- const out = new Int128(out_buffer);
7215
+ const out = new _Int128(out_buffer);
7216
7216
  for (let posn = negate ? 1 : 0; posn < length2; ) {
7217
7217
  const group = kInt32DecimalDigits < length2 - posn ? kInt32DecimalDigits : length2 - posn;
7218
- const chunk = new Int128(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0, 0, 0]));
7219
- const multiple = new Int128(new Uint32Array([kPowersOfTen[group], 0, 0, 0]));
7218
+ const chunk = new _Int128(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0, 0, 0]));
7219
+ const multiple = new _Int128(new Uint32Array([kPowersOfTen[group], 0, 0, 0]));
7220
7220
  out.times(multiple);
7221
7221
  out.plus(chunk);
7222
7222
  posn += group;
@@ -7227,7 +7227,7 @@ var Int128 = class {
7227
7227
  static convertArray(values) {
7228
7228
  const data = new Uint32Array(values.length * 4);
7229
7229
  for (let i2 = -1, n = values.length; ++i2 < n; ) {
7230
- Int128.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 4 * 4 * i2, 4));
7230
+ _Int128.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 4 * 4 * i2, 4));
7231
7231
  }
7232
7232
  return data;
7233
7233
  }
@@ -8131,7 +8131,7 @@ function distributeChildren(fields, batchLength, children, columns, memo) {
8131
8131
 
8132
8132
  // node_modules/apache-arrow/table.mjs
8133
8133
  var _a3;
8134
- var Table = class {
8134
+ var Table = class _Table {
8135
8135
  constructor(...args) {
8136
8136
  var _b3, _c3;
8137
8137
  if (args.length === 0) {
@@ -8152,7 +8152,7 @@ var Table = class {
8152
8152
  if (x2) {
8153
8153
  if (x2 instanceof RecordBatch) {
8154
8154
  return [x2];
8155
- } else if (x2 instanceof Table) {
8155
+ } else if (x2 instanceof _Table) {
8156
8156
  return x2.batches;
8157
8157
  } else if (x2 instanceof Data) {
8158
8158
  if (x2.type instanceof Struct) {
@@ -8297,7 +8297,7 @@ var Table = class {
8297
8297
  concat(...others) {
8298
8298
  const schema = this.schema;
8299
8299
  const data = this.data.concat(others.flatMap(({ data: data2 }) => data2));
8300
- return new Table(schema, data.map((data2) => new RecordBatch(schema, data2)));
8300
+ return new _Table(schema, data.map((data2) => new RecordBatch(schema, data2)));
8301
8301
  }
8302
8302
  /**
8303
8303
  * Return a zero-copy sub-section of this Table.
@@ -8309,7 +8309,7 @@ var Table = class {
8309
8309
  const schema = this.schema;
8310
8310
  [begin, end] = clampRange({ length: this.numRows }, begin, end);
8311
8311
  const data = sliceChunks(this.data, this._offsets, begin, end);
8312
- return new Table(schema, data.map((chunk) => new RecordBatch(schema, chunk)));
8312
+ return new _Table(schema, data.map((chunk) => new RecordBatch(schema, chunk)));
8313
8313
  }
8314
8314
  /**
8315
8315
  * Returns a child Vector by name, or null if this Vector has no child with the given name.
@@ -8359,7 +8359,7 @@ var Table = class {
8359
8359
  [fields[index], children[index]] = [field, child];
8360
8360
  [schema, batches] = distributeVectorsIntoRecordBatches(schema, children);
8361
8361
  }
8362
- return new Table(schema, batches);
8362
+ return new _Table(schema, batches);
8363
8363
  }
8364
8364
  /**
8365
8365
  * Construct a new Table containing only specified columns.
@@ -8380,7 +8380,7 @@ var Table = class {
8380
8380
  selectAt(columnIndices) {
8381
8381
  const schema = this.schema.selectAt(columnIndices);
8382
8382
  const data = this.batches.map((batch) => batch.selectAt(columnIndices));
8383
- return new Table(schema, data);
8383
+ return new _Table(schema, data);
8384
8384
  }
8385
8385
  assign(other) {
8386
8386
  const fields = this.schema.fields;
@@ -8395,7 +8395,7 @@ var Table = class {
8395
8395
  ...fields.map((_2, i2) => [i2, oldToNew[i2]]).map(([i2, j2]) => j2 === void 0 ? this.getChildAt(i2) : other.getChildAt(j2)),
8396
8396
  ...indices.map((i2) => other.getChildAt(i2))
8397
8397
  ].filter(Boolean);
8398
- return new Table(...distributeVectorsIntoRecordBatches(schema, columns));
8398
+ return new _Table(...distributeVectorsIntoRecordBatches(schema, columns));
8399
8399
  }
8400
8400
  };
8401
8401
  _a3 = Symbol.toStringTag;
@@ -8415,7 +8415,7 @@ Table[_a3] = ((proto) => {
8415
8415
 
8416
8416
  // node_modules/apache-arrow/recordbatch.mjs
8417
8417
  var _a4;
8418
- var RecordBatch = class {
8418
+ var RecordBatch = class _RecordBatch {
8419
8419
  constructor(...args) {
8420
8420
  switch (args.length) {
8421
8421
  case 2: {
@@ -8543,7 +8543,7 @@ var RecordBatch = class {
8543
8543
  */
8544
8544
  slice(begin, end) {
8545
8545
  const [slice] = new Vector([this.data]).slice(begin, end).data;
8546
- return new RecordBatch(this.schema, slice);
8546
+ return new _RecordBatch(this.schema, slice);
8547
8547
  }
8548
8548
  /**
8549
8549
  * Returns a child Vector by name, or null if this Vector has no child with the given name.
@@ -8586,7 +8586,7 @@ var RecordBatch = class {
8586
8586
  schema = new Schema2(fields, new Map(this.schema.metadata));
8587
8587
  data = makeData({ type: new Struct(fields), children });
8588
8588
  }
8589
- return new RecordBatch(schema, data);
8589
+ return new _RecordBatch(schema, data);
8590
8590
  }
8591
8591
  /**
8592
8592
  * Construct a new RecordBatch containing only specified columns.
@@ -8604,7 +8604,7 @@ var RecordBatch = class {
8604
8604
  children[index] = this.data.children[index];
8605
8605
  }
8606
8606
  }
8607
- return new RecordBatch(schema, makeData({ type, length: this.numRows, children }));
8607
+ return new _RecordBatch(schema, makeData({ type, length: this.numRows, children }));
8608
8608
  }
8609
8609
  /**
8610
8610
  * Construct a new RecordBatch containing only columns at the specified indices.
@@ -8616,7 +8616,7 @@ var RecordBatch = class {
8616
8616
  const schema = this.schema.selectAt(columnIndices);
8617
8617
  const children = columnIndices.map((i2) => this.data.children[i2]).filter(Boolean);
8618
8618
  const subset = makeData({ type: new Struct(schema.fields), length: this.numRows, children });
8619
- return new RecordBatch(schema, subset);
8619
+ return new _RecordBatch(schema, subset);
8620
8620
  }
8621
8621
  };
8622
8622
  _a4 = Symbol.toStringTag;
@@ -8689,7 +8689,7 @@ var CompressionType;
8689
8689
  })(CompressionType || (CompressionType = {}));
8690
8690
 
8691
8691
  // node_modules/apache-arrow/fb/body-compression.mjs
8692
- var BodyCompression = class {
8692
+ var BodyCompression = class _BodyCompression {
8693
8693
  constructor() {
8694
8694
  this.bb = null;
8695
8695
  this.bb_pos = 0;
@@ -8700,11 +8700,11 @@ var BodyCompression = class {
8700
8700
  return this;
8701
8701
  }
8702
8702
  static getRootAsBodyCompression(bb, obj) {
8703
- return (obj || new BodyCompression()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8703
+ return (obj || new _BodyCompression()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8704
8704
  }
8705
8705
  static getSizePrefixedRootAsBodyCompression(bb, obj) {
8706
8706
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
8707
- return (obj || new BodyCompression()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8707
+ return (obj || new _BodyCompression()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8708
8708
  }
8709
8709
  /**
8710
8710
  * Compressor library.
@@ -8735,10 +8735,10 @@ var BodyCompression = class {
8735
8735
  return offset;
8736
8736
  }
8737
8737
  static createBodyCompression(builder, codec, method) {
8738
- BodyCompression.startBodyCompression(builder);
8739
- BodyCompression.addCodec(builder, codec);
8740
- BodyCompression.addMethod(builder, method);
8741
- return BodyCompression.endBodyCompression(builder);
8738
+ _BodyCompression.startBodyCompression(builder);
8739
+ _BodyCompression.addCodec(builder, codec);
8740
+ _BodyCompression.addMethod(builder, method);
8741
+ return _BodyCompression.endBodyCompression(builder);
8742
8742
  }
8743
8743
  };
8744
8744
 
@@ -8819,7 +8819,7 @@ var FieldNode = class {
8819
8819
  };
8820
8820
 
8821
8821
  // node_modules/apache-arrow/fb/record-batch.mjs
8822
- var RecordBatch2 = class {
8822
+ var RecordBatch2 = class _RecordBatch {
8823
8823
  constructor() {
8824
8824
  this.bb = null;
8825
8825
  this.bb_pos = 0;
@@ -8830,11 +8830,11 @@ var RecordBatch2 = class {
8830
8830
  return this;
8831
8831
  }
8832
8832
  static getRootAsRecordBatch(bb, obj) {
8833
- return (obj || new RecordBatch2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8833
+ return (obj || new _RecordBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8834
8834
  }
8835
8835
  static getSizePrefixedRootAsRecordBatch(bb, obj) {
8836
8836
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
8837
- return (obj || new RecordBatch2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8837
+ return (obj || new _RecordBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8838
8838
  }
8839
8839
  /**
8840
8840
  * number of records / rows. The arrays in the batch should all have this
@@ -8906,7 +8906,7 @@ var RecordBatch2 = class {
8906
8906
  };
8907
8907
 
8908
8908
  // node_modules/apache-arrow/fb/dictionary-batch.mjs
8909
- var DictionaryBatch = class {
8909
+ var DictionaryBatch = class _DictionaryBatch {
8910
8910
  constructor() {
8911
8911
  this.bb = null;
8912
8912
  this.bb_pos = 0;
@@ -8917,11 +8917,11 @@ var DictionaryBatch = class {
8917
8917
  return this;
8918
8918
  }
8919
8919
  static getRootAsDictionaryBatch(bb, obj) {
8920
- return (obj || new DictionaryBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8920
+ return (obj || new _DictionaryBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8921
8921
  }
8922
8922
  static getSizePrefixedRootAsDictionaryBatch(bb, obj) {
8923
8923
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
8924
- return (obj || new DictionaryBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8924
+ return (obj || new _DictionaryBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8925
8925
  }
8926
8926
  id() {
8927
8927
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -8970,7 +8970,7 @@ var MessageHeader2;
8970
8970
  })(MessageHeader2 || (MessageHeader2 = {}));
8971
8971
 
8972
8972
  // node_modules/apache-arrow/fb/message.mjs
8973
- var Message = class {
8973
+ var Message = class _Message {
8974
8974
  constructor() {
8975
8975
  this.bb = null;
8976
8976
  this.bb_pos = 0;
@@ -8981,11 +8981,11 @@ var Message = class {
8981
8981
  return this;
8982
8982
  }
8983
8983
  static getRootAsMessage(bb, obj) {
8984
- return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8984
+ return (obj || new _Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8985
8985
  }
8986
8986
  static getSizePrefixedRootAsMessage(bb, obj) {
8987
8987
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH);
8988
- return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8988
+ return (obj || new _Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
8989
8989
  }
8990
8990
  version() {
8991
8991
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -9050,13 +9050,13 @@ var Message = class {
9050
9050
  builder.finish(offset, void 0, true);
9051
9051
  }
9052
9052
  static createMessage(builder, version, headerType, headerOffset, bodyLength, customMetadataOffset) {
9053
- Message.startMessage(builder);
9054
- Message.addVersion(builder, version);
9055
- Message.addHeaderType(builder, headerType);
9056
- Message.addHeader(builder, headerOffset);
9057
- Message.addBodyLength(builder, bodyLength);
9058
- Message.addCustomMetadata(builder, customMetadataOffset);
9059
- return Message.endMessage(builder);
9053
+ _Message.startMessage(builder);
9054
+ _Message.addVersion(builder, version);
9055
+ _Message.addHeaderType(builder, headerType);
9056
+ _Message.addHeader(builder, headerOffset);
9057
+ _Message.addBodyLength(builder, bodyLength);
9058
+ _Message.addCustomMetadata(builder, customMetadataOffset);
9059
+ return _Message.endMessage(builder);
9060
9060
  }
9061
9061
  };
9062
9062
 
@@ -9305,10 +9305,10 @@ function typeFromJSON(f2, children) {
9305
9305
  // node_modules/apache-arrow/ipc/metadata/message.mjs
9306
9306
  var Builder4 = Builder2;
9307
9307
  var ByteBuffer3 = ByteBuffer;
9308
- var Message2 = class {
9308
+ var Message2 = class _Message {
9309
9309
  /** @nocollapse */
9310
9310
  static fromJSON(msg, headerType) {
9311
- const message = new Message2(0, MetadataVersion.V4, headerType);
9311
+ const message = new _Message(0, MetadataVersion.V4, headerType);
9312
9312
  message._createHeader = messageHeaderFromJSON(msg, headerType);
9313
9313
  return message;
9314
9314
  }
@@ -9319,7 +9319,7 @@ var Message2 = class {
9319
9319
  const bodyLength = _message.bodyLength();
9320
9320
  const version = _message.version();
9321
9321
  const headerType = _message.headerType();
9322
- const message = new Message2(bodyLength, version, headerType);
9322
+ const message = new _Message(bodyLength, version, headerType);
9323
9323
  message._createHeader = decodeMessageHeader(_message, headerType);
9324
9324
  return message;
9325
9325
  }
@@ -9345,13 +9345,13 @@ var Message2 = class {
9345
9345
  /** @nocollapse */
9346
9346
  static from(header, bodyLength = 0) {
9347
9347
  if (header instanceof Schema2) {
9348
- return new Message2(0, MetadataVersion.V4, MessageHeader.Schema, header);
9348
+ return new _Message(0, MetadataVersion.V4, MessageHeader.Schema, header);
9349
9349
  }
9350
9350
  if (header instanceof RecordBatch3) {
9351
- return new Message2(bodyLength, MetadataVersion.V4, MessageHeader.RecordBatch, header);
9351
+ return new _Message(bodyLength, MetadataVersion.V4, MessageHeader.RecordBatch, header);
9352
9352
  }
9353
9353
  if (header instanceof DictionaryBatch2) {
9354
- return new Message2(bodyLength, MetadataVersion.V4, MessageHeader.DictionaryBatch, header);
9354
+ return new _Message(bodyLength, MetadataVersion.V4, MessageHeader.DictionaryBatch, header);
9355
9355
  }
9356
9356
  throw new Error(`Unrecognized Message header: ${header}`);
9357
9357
  }
@@ -10002,7 +10002,7 @@ var magicAndPadding = magicLength + PADDING;
10002
10002
  var magicX2AndPadding = magicLength * 2 + PADDING;
10003
10003
 
10004
10004
  // node_modules/apache-arrow/ipc/reader.mjs
10005
- var RecordBatchReader = class extends ReadableInterop {
10005
+ var RecordBatchReader = class _RecordBatchReader extends ReadableInterop {
10006
10006
  constructor(impl) {
10007
10007
  super();
10008
10008
  this._impl = impl;
@@ -10088,7 +10088,7 @@ var RecordBatchReader = class extends ReadableInterop {
10088
10088
  }
10089
10089
  /** @nocollapse */
10090
10090
  static from(source) {
10091
- if (source instanceof RecordBatchReader) {
10091
+ if (source instanceof _RecordBatchReader) {
10092
10092
  return source;
10093
10093
  } else if (isArrowJSON(source)) {
10094
10094
  return fromArrowJSON(source);
@@ -10096,7 +10096,7 @@ var RecordBatchReader = class extends ReadableInterop {
10096
10096
  return fromFileHandle(source);
10097
10097
  } else if (isPromise(source)) {
10098
10098
  return (() => __awaiter(this, void 0, void 0, function* () {
10099
- return yield RecordBatchReader.from(yield source);
10099
+ return yield _RecordBatchReader.from(yield source);
10100
10100
  }))();
10101
10101
  } else if (isFetchResponse(source) || isReadableDOMStream(source) || isReadableNodeStream(source) || isAsyncIterable(source)) {
10102
10102
  return fromAsyncByteStream(new AsyncByteStream(source));
@@ -10105,7 +10105,7 @@ var RecordBatchReader = class extends ReadableInterop {
10105
10105
  }
10106
10106
  /** @nocollapse */
10107
10107
  static readAll(source) {
10108
- if (source instanceof RecordBatchReader) {
10108
+ if (source instanceof _RecordBatchReader) {
10109
10109
  return source.isSync() ? readAllSync(source) : readAllAsync(source);
10110
10110
  } else if (isArrowJSON(source) || ArrayBuffer.isView(source) || isIterable(source) || isIteratorResult(source)) {
10111
10111
  return readAllSync(source);
@@ -10619,7 +10619,7 @@ function fromArrowJSON(source) {
10619
10619
  }
10620
10620
  function fromByteStream(source) {
10621
10621
  const bytes = source.peek(magicLength + 7 & ~7);
10622
- return bytes && bytes.byteLength >= 4 ? !checkForMagicArrowString(bytes) ? new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(source)) : new RecordBatchFileReader(new RecordBatchFileReaderImpl(source.read())) : new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(function* () {
10622
+ return bytes && bytes.byteLength >= 4 ? !checkForMagicArrowString(bytes) ? new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(source)) : new RecordBatchFileReader(new RecordBatchFileReaderImpl(source.read())) : new RecordBatchStreamReader(new RecordBatchStreamReaderImpl(/* @__PURE__ */ function* () {
10623
10623
  }()));
10624
10624
  }
10625
10625
  function fromAsyncByteStream(source) {
@@ -10643,11 +10643,11 @@ function fromFileHandle(source) {
10643
10643
  }
10644
10644
 
10645
10645
  // node_modules/apache-arrow/visitor/vectorassembler.mjs
10646
- var VectorAssembler = class extends Visitor {
10646
+ var VectorAssembler = class _VectorAssembler extends Visitor {
10647
10647
  /** @nocollapse */
10648
10648
  static assemble(...args) {
10649
10649
  const unwrap = (nodes) => nodes.flatMap((node) => Array.isArray(node) ? unwrap(node) : node instanceof RecordBatch ? node.data.children : node.data);
10650
- const assembler = new VectorAssembler();
10650
+ const assembler = new _VectorAssembler();
10651
10651
  assembler.visitMany(unwrap(args));
10652
10652
  return assembler;
10653
10653
  }
@@ -10985,10 +10985,10 @@ var RecordBatchWriter = class extends ReadableInterop {
10985
10985
  return this;
10986
10986
  }
10987
10987
  };
10988
- var RecordBatchStreamWriter = class extends RecordBatchWriter {
10988
+ var RecordBatchStreamWriter = class _RecordBatchStreamWriter extends RecordBatchWriter {
10989
10989
  /** @nocollapse */
10990
10990
  static writeAll(input, options) {
10991
- const writer = new RecordBatchStreamWriter(options);
10991
+ const writer = new _RecordBatchStreamWriter(options);
10992
10992
  if (isPromise(input)) {
10993
10993
  return input.then((x2) => writer.writeAll(x2));
10994
10994
  } else if (isAsyncIterable(input)) {
@@ -10997,10 +10997,10 @@ var RecordBatchStreamWriter = class extends RecordBatchWriter {
10997
10997
  return writeAll(writer, input);
10998
10998
  }
10999
10999
  };
11000
- var RecordBatchFileWriter = class extends RecordBatchWriter {
11000
+ var RecordBatchFileWriter = class _RecordBatchFileWriter extends RecordBatchWriter {
11001
11001
  /** @nocollapse */
11002
11002
  static writeAll(input) {
11003
- const writer = new RecordBatchFileWriter();
11003
+ const writer = new _RecordBatchFileWriter();
11004
11004
  if (isPromise(input)) {
11005
11005
  return input.then((x2) => writer.writeAll(x2));
11006
11006
  } else if (isAsyncIterable(input)) {
@@ -11414,44 +11414,6 @@ function socketConnector(uri = "ws://localhost:3000/") {
11414
11414
  };
11415
11415
  }
11416
11416
 
11417
- // src/util/js-type.js
11418
- function jsType(type) {
11419
- switch (type) {
11420
- case "BIGINT":
11421
- case "HUGEINT":
11422
- case "INTEGER":
11423
- case "SMALLINT":
11424
- case "TINYINT":
11425
- case "UBIGINT":
11426
- case "UINTEGER":
11427
- case "USMALLINT":
11428
- case "UTINYINT":
11429
- case "DOUBLE":
11430
- case "FLOAT":
11431
- case "REAL":
11432
- case "DECIMAL":
11433
- return "number";
11434
- case "DATE":
11435
- case "TIMESTAMP":
11436
- case "TIMESTAMPTZ":
11437
- case "TIME":
11438
- return "date";
11439
- case "BOOLEAN":
11440
- return "boolean";
11441
- case "VARCHAR":
11442
- case "UUID":
11443
- return "string";
11444
- case "LIST":
11445
- return "array";
11446
- case "BLOB":
11447
- case "STRUCT":
11448
- case "MAP":
11449
- return "object";
11450
- default:
11451
- throw new Error(`Unsupported type: ${type}`);
11452
- }
11453
- }
11454
-
11455
11417
  // ../sql/src/ref.js
11456
11418
  var Ref = class {
11457
11419
  /**
@@ -11480,12 +11442,16 @@ var Ref = class {
11480
11442
  const { table, column: column2 } = this;
11481
11443
  if (column2) {
11482
11444
  const col = column2.startsWith("*") ? column2 : `"${column2}"`;
11483
- return `${table ? `"${table}".` : ""}${col}`;
11445
+ return `${table ? `${quoteTableName(table)}.` : ""}${col}`;
11484
11446
  } else {
11485
- return table ? `"${table}"` : "NULL";
11447
+ return table ? quoteTableName(table) : "NULL";
11486
11448
  }
11487
11449
  }
11488
11450
  };
11451
+ function quoteTableName(table) {
11452
+ const pieces = table.split(".");
11453
+ return pieces.map((p2) => `"${p2}"`).join(".");
11454
+ }
11489
11455
  function isColumnRefFor(ref, name) {
11490
11456
  return ref instanceof Ref && ref.column === name;
11491
11457
  }
@@ -11716,7 +11682,7 @@ var isFinite = functionCall("ISFINITE");
11716
11682
  var isInfinite = functionCall("ISINF");
11717
11683
 
11718
11684
  // ../sql/src/windows.js
11719
- var WindowFunction = class extends SQLExpression {
11685
+ var WindowFunction = class _WindowFunction extends SQLExpression {
11720
11686
  constructor(op, func, type, name, group = "", order = "", frame = "") {
11721
11687
  let expr;
11722
11688
  const noWindowParams = !(group || order || frame);
@@ -11742,7 +11708,7 @@ var WindowFunction = class extends SQLExpression {
11742
11708
  }
11743
11709
  over(name) {
11744
11710
  const { window: op, func, type, group, order, frame } = this;
11745
- return new WindowFunction(op, func, type, name, group, order, frame);
11711
+ return new _WindowFunction(op, func, type, name, group, order, frame);
11746
11712
  }
11747
11713
  partitionby(...expr) {
11748
11714
  const exprs = expr.flat().filter((x2) => x2).map(asColumn);
@@ -11751,7 +11717,7 @@ var WindowFunction = class extends SQLExpression {
11751
11717
  ...exprs
11752
11718
  );
11753
11719
  const { window: op, func, type, name, order, frame } = this;
11754
- return new WindowFunction(op, func, type, name, group, order, frame);
11720
+ return new _WindowFunction(op, func, type, name, group, order, frame);
11755
11721
  }
11756
11722
  orderby(...expr) {
11757
11723
  const exprs = expr.flat().filter((x2) => x2).map(asColumn);
@@ -11760,17 +11726,17 @@ var WindowFunction = class extends SQLExpression {
11760
11726
  ...exprs
11761
11727
  );
11762
11728
  const { window: op, func, type, name, group, frame } = this;
11763
- return new WindowFunction(op, func, type, name, group, order, frame);
11729
+ return new _WindowFunction(op, func, type, name, group, order, frame);
11764
11730
  }
11765
11731
  rows(expr) {
11766
11732
  const frame = windowFrame("ROWS", expr);
11767
11733
  const { window: op, func, type, name, group, order } = this;
11768
- return new WindowFunction(op, func, type, name, group, order, frame);
11734
+ return new _WindowFunction(op, func, type, name, group, order, frame);
11769
11735
  }
11770
11736
  range(expr) {
11771
11737
  const frame = windowFrame("RANGE", expr);
11772
11738
  const { window: op, func, type, name, group, order } = this;
11773
- return new WindowFunction(op, func, type, name, group, order, frame);
11739
+ return new _WindowFunction(op, func, type, name, group, order, frame);
11774
11740
  }
11775
11741
  };
11776
11742
  function windowFrame(type, frame) {
@@ -11806,7 +11772,7 @@ var last_value = winf("LAST_VALUE");
11806
11772
  var nth_value = winf("NTH_VALUE");
11807
11773
 
11808
11774
  // ../sql/src/aggregates.js
11809
- var AggregateFunction = class extends SQLExpression {
11775
+ var AggregateFunction = class _AggregateFunction extends SQLExpression {
11810
11776
  constructor(op, args, type, isDistinct2, filter) {
11811
11777
  args = (args || []).map(asColumn);
11812
11778
  const { strings, exprs } = aggExpr(op, args, type, isDistinct2, filter);
@@ -11824,15 +11790,15 @@ var AggregateFunction = class extends SQLExpression {
11824
11790
  }
11825
11791
  distinct() {
11826
11792
  const { aggregate: op, args, type, filter } = this;
11827
- return new AggregateFunction(op, args, type, true, filter);
11793
+ return new _AggregateFunction(op, args, type, true, filter);
11828
11794
  }
11829
11795
  where(filter) {
11830
11796
  const { aggregate: op, args, type, isDistinct: isDistinct2 } = this;
11831
- return new AggregateFunction(op, args, type, isDistinct2, filter);
11797
+ return new _AggregateFunction(op, args, type, isDistinct2, filter);
11832
11798
  }
11833
11799
  window() {
11834
11800
  const { aggregate: op, args, type, isDistinct: isDistinct2 } = this;
11835
- const func = new AggregateFunction(op, args, null, isDistinct2);
11801
+ const func = new _AggregateFunction(op, args, null, isDistinct2);
11836
11802
  return new WindowFunction(op, func, type);
11837
11803
  }
11838
11804
  partitionby(...expr) {
@@ -11914,15 +11880,15 @@ var epoch_ms = (expr) => {
11914
11880
  };
11915
11881
 
11916
11882
  // ../sql/src/Query.js
11917
- var Query = class {
11883
+ var Query = class _Query {
11918
11884
  static select(...expr) {
11919
- return new Query().select(...expr);
11885
+ return new _Query().select(...expr);
11920
11886
  }
11921
11887
  static from(...expr) {
11922
- return new Query().from(...expr);
11888
+ return new _Query().from(...expr);
11923
11889
  }
11924
11890
  static with(...expr) {
11925
- return new Query().with(...expr);
11891
+ return new _Query().with(...expr);
11926
11892
  }
11927
11893
  static union(...queries) {
11928
11894
  return new SetOperation("UNION", queries.flat());
@@ -11950,7 +11916,7 @@ var Query = class {
11950
11916
  };
11951
11917
  }
11952
11918
  clone() {
11953
- const q2 = new Query();
11919
+ const q2 = new _Query();
11954
11920
  q2.query = { ...this.query };
11955
11921
  return q2;
11956
11922
  }
@@ -12048,7 +12014,7 @@ var Query = class {
12048
12014
  } else {
12049
12015
  let spec = value;
12050
12016
  if (typeof value === "number") {
12051
- spec = value > 0 && value < 1 ? { perc: 100 * value, method } : { rows: Math.round(value, method) };
12017
+ spec = value > 0 && value < 1 ? { perc: 100 * value, method } : { rows: Math.round(value), method };
12052
12018
  }
12053
12019
  query.sample = spec;
12054
12020
  return this;
@@ -12080,6 +12046,10 @@ var Query = class {
12080
12046
  return this;
12081
12047
  }
12082
12048
  }
12049
+ $groupby(...expr) {
12050
+ this.query.groupby = [];
12051
+ return this.groupby(...expr);
12052
+ }
12083
12053
  having(...expr) {
12084
12054
  const { query } = this;
12085
12055
  if (expr.length === 0) {
@@ -12236,14 +12206,14 @@ var Query = class {
12236
12206
  return sql2.join(" ");
12237
12207
  }
12238
12208
  };
12239
- var SetOperation = class {
12209
+ var SetOperation = class _SetOperation {
12240
12210
  constructor(op, queries) {
12241
12211
  this.op = op;
12242
12212
  this.queries = queries.map((q2) => q2.clone());
12243
12213
  this.query = { orderby: [] };
12244
12214
  }
12245
12215
  clone() {
12246
- const q2 = new SetOperation(this.op, this.queries);
12216
+ const q2 = new _SetOperation(this.op, this.queries);
12247
12217
  q2.query = { ...this.query };
12248
12218
  return q2;
12249
12219
  }
@@ -12307,6 +12277,53 @@ function isDoubleQuoted(s) {
12307
12277
  return s[0] === '"' && s[s.length - 1] === '"';
12308
12278
  }
12309
12279
 
12280
+ // ../sql/src/load/create.js
12281
+ function create(name, query, {
12282
+ replace = false,
12283
+ temp = true,
12284
+ view = false
12285
+ } = {}) {
12286
+ return "CREATE" + (replace ? " OR REPLACE " : " ") + (temp ? "TEMP " : "") + (view ? "VIEW" : "TABLE") + (replace ? " " : " IF NOT EXISTS ") + name + " AS " + query;
12287
+ }
12288
+
12289
+ // src/util/js-type.js
12290
+ function jsType(type) {
12291
+ switch (type) {
12292
+ case "BIGINT":
12293
+ case "HUGEINT":
12294
+ case "INTEGER":
12295
+ case "SMALLINT":
12296
+ case "TINYINT":
12297
+ case "UBIGINT":
12298
+ case "UINTEGER":
12299
+ case "USMALLINT":
12300
+ case "UTINYINT":
12301
+ case "DOUBLE":
12302
+ case "FLOAT":
12303
+ case "REAL":
12304
+ case "DECIMAL":
12305
+ return "number";
12306
+ case "DATE":
12307
+ case "TIMESTAMP":
12308
+ case "TIMESTAMPTZ":
12309
+ case "TIME":
12310
+ return "date";
12311
+ case "BOOLEAN":
12312
+ return "boolean";
12313
+ case "VARCHAR":
12314
+ case "UUID":
12315
+ return "string";
12316
+ case "LIST":
12317
+ return "array";
12318
+ case "BLOB":
12319
+ case "STRUCT":
12320
+ case "MAP":
12321
+ return "object";
12322
+ default:
12323
+ throw new Error(`Unsupported type: ${type}`);
12324
+ }
12325
+ }
12326
+
12310
12327
  // src/util/summarize.js
12311
12328
  var Count = "count";
12312
12329
  var Nulls = "nulls";
@@ -12334,28 +12351,16 @@ var Catalog = class {
12334
12351
  clear() {
12335
12352
  this.tables = object();
12336
12353
  }
12337
- async tableInfo(table) {
12354
+ tableInfo(table) {
12338
12355
  const cache = this.tables;
12339
12356
  if (cache[table]) {
12340
12357
  return cache[table];
12341
12358
  }
12342
- const q2 = this.mc.query(
12343
- `DESCRIBE "${table}"`,
12344
- { type: "json", cache: false }
12345
- );
12346
- return cache[table] = q2.then((result) => {
12347
- const columns = object();
12348
- for (const entry of result) {
12349
- columns[entry.column_name] = {
12350
- table,
12351
- column: entry.column_name,
12352
- sqlType: entry.column_type,
12353
- type: jsType(entry.column_type),
12354
- nullable: entry.null === "YES"
12355
- };
12356
- }
12357
- return columns;
12359
+ const infoPromise = getTableInfo(this.mc, table).catch((err) => {
12360
+ cache[table] = null;
12361
+ throw err;
12358
12362
  });
12363
+ return cache[table] = infoPromise;
12359
12364
  }
12360
12365
  async fieldInfo({ table, column: column2, stats }) {
12361
12366
  const tableInfo = await this.tableInfo(table);
@@ -12383,6 +12388,23 @@ var Catalog = class {
12383
12388
  return data.filter((x2) => x2);
12384
12389
  }
12385
12390
  };
12391
+ async function getTableInfo(mc, table) {
12392
+ const result = await mc.query(
12393
+ `DESCRIBE ${asRelation(table)}`,
12394
+ { type: "json", cache: false }
12395
+ );
12396
+ const columns = object();
12397
+ for (const entry of result) {
12398
+ columns[entry.column_name] = {
12399
+ table,
12400
+ column: entry.column_name,
12401
+ sqlType: entry.column_type,
12402
+ type: jsType(entry.column_type),
12403
+ nullable: entry.null === "YES"
12404
+ };
12405
+ }
12406
+ return columns;
12407
+ }
12386
12408
  async function resolveFields(catalog, list) {
12387
12409
  return list.length === 1 && list[0].column === "*" ? Object.values(await catalog.tableInfo(list[0].table)) : list;
12388
12410
  }
@@ -12411,12 +12433,18 @@ function fnv_mix(a) {
12411
12433
  return a & 4294967295;
12412
12434
  }
12413
12435
 
12414
- // src/DataTileIndexer.js
12436
+ // src/DataCubeIndexer.js
12415
12437
  var identity = (x2) => x2;
12416
- var DataTileIndexer = class {
12417
- constructor(mc, selection) {
12438
+ var DataCubeIndexer = class {
12439
+ /**
12440
+ *
12441
+ * @param {import('./Coordinator.js').Coordinator} mc a Mosaic coordinator
12442
+ * @param {*} options Options hash to configure the data cube indexes and pass selections to the coordinator.
12443
+ */
12444
+ constructor(mc, { selection, temp = true }) {
12418
12445
  this.mc = mc;
12419
12446
  this.selection = selection;
12447
+ this.temp = temp;
12420
12448
  this.reset();
12421
12449
  }
12422
12450
  reset() {
@@ -12452,9 +12480,10 @@ var DataTileIndexer = class {
12452
12480
  const activeView = this.activeView = getActiveView(active);
12453
12481
  if (!activeView)
12454
12482
  return false;
12455
- this.mc.logger().warn("DATA TILE INDEX CONSTRUCTION");
12483
+ this.mc.logger().warn("DATA CUBE INDEX CONSTRUCTION");
12456
12484
  const sel = this.selection.remove(source);
12457
12485
  const indices = this.indices = /* @__PURE__ */ new Map();
12486
+ const { mc, temp } = this;
12458
12487
  for (const client of clients) {
12459
12488
  if (sel.skip(client, active))
12460
12489
  continue;
@@ -12467,8 +12496,8 @@ var DataTileIndexer = class {
12467
12496
  }
12468
12497
  const sql2 = query.toString();
12469
12498
  const id = (fnv_hash(sql2) >>> 0).toString(16);
12470
- const table = `tile_index_${id}`;
12471
- const result = createIndex(this.mc, table, sql2);
12499
+ const table = `cube_index_${id}`;
12500
+ const result = mc.exec(create(table, sql2, { temp }));
12472
12501
  indices.set(client, { table, result, ...index });
12473
12502
  }
12474
12503
  }
@@ -12554,9 +12583,6 @@ function binFunction(domain, range, pixelSize, lift, toSql) {
12554
12583
  const s = pixelSize === 1 ? "" : `${pixelSize}::INTEGER * `;
12555
12584
  return (value) => sql`${s}FLOOR(${a}::DOUBLE * (${toSql(value)} - ${lo}::DOUBLE))::INTEGER`;
12556
12585
  }
12557
- function createIndex(mc, table, query) {
12558
- return mc.exec(`CREATE TEMP TABLE IF NOT EXISTS ${table} AS ${query}`);
12559
- }
12560
12586
  var NO_INDEX = { from: NaN };
12561
12587
  function getIndexColumns(client) {
12562
12588
  if (!client.filterIndexable)
@@ -12634,11 +12660,17 @@ function subqueryPushdown(query, cols) {
12634
12660
 
12635
12661
  // src/FilterGroup.js
12636
12662
  var FilterGroup = class {
12663
+ /**
12664
+ * @param {import('./Coordinator.js').Coordinator} coordinator The Mosaic coordinator.
12665
+ * @param {*} selection The shared filter selection.
12666
+ * @param {*} index Boolean flag or options hash for data cube indexer.
12667
+ * Falsy values disable indexing.
12668
+ */
12637
12669
  constructor(coordinator2, selection, index = true) {
12638
12670
  this.mc = coordinator2;
12639
12671
  this.selection = selection;
12640
12672
  this.clients = /* @__PURE__ */ new Set();
12641
- this.indexer = index ? new DataTileIndexer(this.mc, selection) : null;
12673
+ this.indexer = index ? new DataCubeIndexer(this.mc, { ...index, selection }) : null;
12642
12674
  const { value, activate } = this.handlers = {
12643
12675
  value: () => this.update(),
12644
12676
  activate: (clause) => this.indexer?.index(this.clients, clause)
@@ -12678,6 +12710,164 @@ function defaultUpdate(mc, clients, selection) {
12678
12710
  }));
12679
12711
  }
12680
12712
 
12713
+ // src/util/query-result.js
12714
+ function queryResult() {
12715
+ let resolve;
12716
+ let reject;
12717
+ const p2 = new Promise((r, e) => {
12718
+ resolve = r;
12719
+ reject = e;
12720
+ });
12721
+ p2.fulfill = (value) => (resolve(value), p2);
12722
+ p2.reject = (err) => (reject(err), p2);
12723
+ return p2;
12724
+ }
12725
+
12726
+ // src/QueryConsolidator.js
12727
+ function consolidator(enqueue, cache, record) {
12728
+ let pending = [];
12729
+ let id = 0;
12730
+ function run() {
12731
+ const groups = entryGroups(pending, cache);
12732
+ pending = [];
12733
+ id = 0;
12734
+ for (const group of groups) {
12735
+ consolidate(group, enqueue, record);
12736
+ processResults(group, cache);
12737
+ }
12738
+ }
12739
+ return {
12740
+ add(entry, priority) {
12741
+ if (entry.request.type === "arrow") {
12742
+ id = id || requestAnimationFrame(() => run());
12743
+ pending.push({ entry, priority, index: pending.length });
12744
+ } else {
12745
+ enqueue(entry, priority);
12746
+ }
12747
+ }
12748
+ };
12749
+ }
12750
+ function entryGroups(entries, cache) {
12751
+ const groups = [];
12752
+ const groupMap = /* @__PURE__ */ new Map();
12753
+ for (const query of entries) {
12754
+ const { entry: { request } } = query;
12755
+ const key = consolidationKey(request.query, cache);
12756
+ if (!groupMap.has(key)) {
12757
+ const list = [];
12758
+ groups.push(list);
12759
+ groupMap.set(key, list);
12760
+ }
12761
+ groupMap.get(key).push(query);
12762
+ }
12763
+ return groups;
12764
+ }
12765
+ function consolidationKey(query, cache) {
12766
+ const sql2 = `${query}`;
12767
+ if (query instanceof Query && !cache.get(sql2)) {
12768
+ if (query.orderby().length || query.where().length || query.qualify().length || query.having().length) {
12769
+ return sql2;
12770
+ }
12771
+ const q2 = query.clone().$select("*");
12772
+ const groupby = query.groupby();
12773
+ if (groupby.length) {
12774
+ const map = {};
12775
+ query.select().forEach(({ as, expr }) => map[as] = expr);
12776
+ q2.$groupby(groupby.map((e) => e instanceof Ref && map[e.column] || e));
12777
+ }
12778
+ return `${q2}`;
12779
+ } else {
12780
+ return sql2;
12781
+ }
12782
+ }
12783
+ function consolidate(group, enqueue, record) {
12784
+ if (shouldConsolidate(group)) {
12785
+ enqueue({
12786
+ request: {
12787
+ type: "arrow",
12788
+ cache: false,
12789
+ record: false,
12790
+ query: consolidatedQuery(group, record)
12791
+ },
12792
+ result: group.result = queryResult()
12793
+ });
12794
+ } else {
12795
+ for (const { entry, priority } of group) {
12796
+ enqueue(entry, priority);
12797
+ }
12798
+ }
12799
+ }
12800
+ function shouldConsolidate(group) {
12801
+ if (group.length > 1) {
12802
+ const sql2 = `${group[0].entry.request.query}`;
12803
+ for (let i2 = 1; i2 < group.length; ++i2) {
12804
+ if (sql2 !== `${group[i2].entry.request.query}`) {
12805
+ return true;
12806
+ }
12807
+ }
12808
+ }
12809
+ return false;
12810
+ }
12811
+ function consolidatedQuery(group, record) {
12812
+ const maps = group.maps = [];
12813
+ const fields = /* @__PURE__ */ new Map();
12814
+ for (const item of group) {
12815
+ const { query: query2 } = item.entry.request;
12816
+ const fieldMap = [];
12817
+ maps.push(fieldMap);
12818
+ for (const { as, expr } of query2.select()) {
12819
+ const e = `${expr}`;
12820
+ if (!fields.has(e)) {
12821
+ fields.set(e, [`col${fields.size}`, expr]);
12822
+ }
12823
+ const [name] = fields.get(e);
12824
+ fieldMap.push([name, as]);
12825
+ }
12826
+ record(`${query2}`);
12827
+ }
12828
+ const query = group[0].entry.request.query.clone();
12829
+ const groupby = query.groupby();
12830
+ if (groupby.length) {
12831
+ const map = {};
12832
+ group.maps[0].forEach(([name, as]) => map[as] = name);
12833
+ query.$groupby(groupby.map((e) => e instanceof Ref && map[e.column] || e));
12834
+ }
12835
+ return query.$select(Array.from(fields.values()));
12836
+ }
12837
+ async function processResults(group, cache) {
12838
+ const { maps, result } = group;
12839
+ if (!maps)
12840
+ return;
12841
+ let data;
12842
+ try {
12843
+ data = await result;
12844
+ } catch (err) {
12845
+ for (const { entry } of group) {
12846
+ entry.result.reject(err);
12847
+ }
12848
+ return;
12849
+ }
12850
+ group.forEach(({ entry }, index) => {
12851
+ const { request, result: result2 } = entry;
12852
+ const projected = projectResult(data, maps[index]);
12853
+ if (request.cache) {
12854
+ cache.set(String(request.query), projected);
12855
+ }
12856
+ result2.fulfill(projected);
12857
+ });
12858
+ }
12859
+ function projectResult(data, map) {
12860
+ if (map) {
12861
+ const cols = {};
12862
+ for (const [name, as] of map) {
12863
+ cols[as] = data.getChild(name);
12864
+ }
12865
+ return new data.constructor(cols);
12866
+ } else {
12867
+ return data;
12868
+ }
12869
+ }
12870
+
12681
12871
  // src/util/cache.js
12682
12872
  var requestIdle = typeof requestIdleCallback !== "undefined" ? requestIdleCallback : setTimeout;
12683
12873
  var voidCache = () => ({
@@ -12817,6 +13007,7 @@ function QueryManager() {
12817
13007
  let logger;
12818
13008
  let recorders = [];
12819
13009
  let pending = null;
13010
+ let consolidate2;
12820
13011
  function next() {
12821
13012
  if (pending || queue.isEmpty())
12822
13013
  return;
@@ -12827,12 +13018,21 @@ function QueryManager() {
12827
13018
  next();
12828
13019
  });
12829
13020
  }
13021
+ function enqueue(entry, priority = Priority.Normal) {
13022
+ queue.insert(entry, priority);
13023
+ next();
13024
+ }
13025
+ function recordQuery(sql2) {
13026
+ if (recorders.length && sql2) {
13027
+ recorders.forEach((rec) => rec.add(sql2));
13028
+ }
13029
+ }
12830
13030
  async function submit(request, result) {
12831
13031
  try {
12832
- const { query, type, cache = false, options } = request;
12833
- const sql2 = query ? String(query) : null;
12834
- if (recorders.length && sql2) {
12835
- recorders.forEach((rec) => rec.add(sql2));
13032
+ const { query, type, cache = false, record = true, options } = request;
13033
+ const sql2 = query ? `${query}` : null;
13034
+ if (record) {
13035
+ recordQuery(sql2);
12836
13036
  }
12837
13037
  if (cache) {
12838
13038
  const cached = clientCache.get(sql2);
@@ -12862,16 +13062,33 @@ function QueryManager() {
12862
13062
  connector(connector) {
12863
13063
  return connector ? db = connector : db;
12864
13064
  },
13065
+ consolidate(flag) {
13066
+ if (flag && !consolidate2) {
13067
+ consolidate2 = consolidator(enqueue, clientCache, recordQuery);
13068
+ } else if (!flag && consolidate2) {
13069
+ consolidate2 = null;
13070
+ }
13071
+ },
12865
13072
  request(request, priority = Priority.Normal) {
12866
13073
  const result = queryResult();
12867
- queue.insert({ request, result }, priority);
12868
- next();
13074
+ const entry = { request, result };
13075
+ if (consolidate2) {
13076
+ consolidate2.add(entry, priority);
13077
+ } else {
13078
+ enqueue(entry, priority);
13079
+ }
12869
13080
  return result;
12870
13081
  },
12871
13082
  cancel(requests) {
12872
13083
  const set = new Set(requests);
12873
13084
  queue.remove(({ result }) => set.has(result));
12874
13085
  },
13086
+ clear() {
13087
+ queue.remove(({ result }) => {
13088
+ result.reject("Cleared");
13089
+ return true;
13090
+ });
13091
+ },
12875
13092
  record() {
12876
13093
  let state = [];
12877
13094
  const recorder = {
@@ -12894,17 +13111,6 @@ function QueryManager() {
12894
13111
  }
12895
13112
  };
12896
13113
  }
12897
- function queryResult() {
12898
- let resolve;
12899
- let reject;
12900
- const p2 = new Promise((r, e) => {
12901
- resolve = r;
12902
- reject = e;
12903
- });
12904
- p2.fulfill = (value) => (resolve(value), p2);
12905
- p2.reject = (err) => (reject(err), p2);
12906
- return p2;
12907
- }
12908
13114
 
12909
13115
  // src/util/void-logger.js
12910
13116
  function voidLogger() {
@@ -12940,7 +13146,6 @@ var Coordinator = class {
12940
13146
  this.configure(options);
12941
13147
  this.databaseConnector(db);
12942
13148
  this.clear();
12943
- this._recorders = [];
12944
13149
  }
12945
13150
  logger(logger) {
12946
13151
  if (arguments.length) {
@@ -12949,11 +13154,13 @@ var Coordinator = class {
12949
13154
  }
12950
13155
  return this._logger;
12951
13156
  }
12952
- configure({ cache = true, indexes = true }) {
13157
+ configure({ cache = true, consolidate: consolidate2 = true, indexes = true }) {
12953
13158
  this.manager.cache(cache);
13159
+ this.manager.consolidate(consolidate2);
12954
13160
  this.indexes = indexes;
12955
13161
  }
12956
13162
  clear({ clients = true, cache = true, catalog = false } = {}) {
13163
+ this.manager.clear();
12957
13164
  if (clients) {
12958
13165
  this.clients?.forEach((client) => this.disconnect(client));
12959
13166
  this.filterGroups?.forEach((group) => group.finalize());
@@ -13009,6 +13216,11 @@ var Coordinator = class {
13009
13216
  this.filterGroups.get(client.filterBy)?.reset();
13010
13217
  return query ? this.updateClient(client, query) : client.update();
13011
13218
  }
13219
+ /**
13220
+ * Connect a client to the coordinator.
13221
+ *
13222
+ * @param {import('./MosaicClient.js').MosaicClient} client the client to disconnect
13223
+ */
13012
13224
  async connect(client) {
13013
13225
  const { catalog, clients, filterGroups, indexes } = this;
13014
13226
  if (clients.has(client)) {
@@ -13030,6 +13242,11 @@ var Coordinator = class {
13030
13242
  }
13031
13243
  client.requestQuery();
13032
13244
  }
13245
+ /**
13246
+ * Disconnect a client from the coordinator.
13247
+ *
13248
+ * @param {import('./MosaicClient.js').MosaicClient} client the client to disconnect
13249
+ */
13033
13250
  disconnect(client) {
13034
13251
  const { clients, filterGroups } = this;
13035
13252
  if (!clients.has(client))
@@ -13108,10 +13325,10 @@ var MosaicClient = class {
13108
13325
  return null;
13109
13326
  }
13110
13327
  /**
13111
- * Called by the coordinator to set the field statistics for this client.
13328
+ * Called by the coordinator to set the field info for this client.
13112
13329
  * @returns {this}
13113
13330
  */
13114
- fieldStats() {
13331
+ fieldInfo() {
13115
13332
  return this;
13116
13333
  }
13117
13334
  /**
@@ -13128,6 +13345,9 @@ var MosaicClient = class {
13128
13345
  }
13129
13346
  /**
13130
13347
  * Called by the coordinator to return a query result.
13348
+ *
13349
+ * @param {*} data the query result
13350
+ * @returns {this}
13131
13351
  */
13132
13352
  queryResult() {
13133
13353
  return this;
@@ -13341,7 +13561,7 @@ function distinctArray(a, b2) {
13341
13561
  function isParam(x2) {
13342
13562
  return x2 instanceof Param;
13343
13563
  }
13344
- var Param = class extends AsyncDispatch {
13564
+ var Param = class _Param extends AsyncDispatch {
13345
13565
  /**
13346
13566
  * Create a new Param instance.
13347
13567
  * @param {*} value The initial value of the Param.
@@ -13356,7 +13576,7 @@ var Param = class extends AsyncDispatch {
13356
13576
  * @returns {Param} The new Param instance.
13357
13577
  */
13358
13578
  static value(value) {
13359
- return new Param(value);
13579
+ return new _Param(value);
13360
13580
  }
13361
13581
  /**
13362
13582
  * Create a new Param instance over an array of initial values,
@@ -13366,13 +13586,13 @@ var Param = class extends AsyncDispatch {
13366
13586
  */
13367
13587
  static array(values) {
13368
13588
  if (values.some((v2) => isParam(v2))) {
13369
- const p2 = new Param();
13589
+ const p2 = new _Param();
13370
13590
  const update2 = () => p2.update(values.map((v2) => isParam(v2) ? v2.value : v2));
13371
13591
  update2();
13372
13592
  values.forEach((v2) => isParam(v2) ? v2.addEventListener("value", update2) : 0);
13373
13593
  return p2;
13374
13594
  }
13375
- return new Param(values);
13595
+ return new _Param(values);
13376
13596
  }
13377
13597
  /**
13378
13598
  * The current value of the Param.
@@ -13416,7 +13636,7 @@ var Param = class extends AsyncDispatch {
13416
13636
  function isSelection(x2) {
13417
13637
  return x2 instanceof Selection;
13418
13638
  }
13419
- var Selection = class extends Param {
13639
+ var Selection = class _Selection extends Param {
13420
13640
  /**
13421
13641
  * Create a new Selection instance with an
13422
13642
  * intersect (conjunction) resolution strategy.
@@ -13427,7 +13647,7 @@ var Selection = class extends Param {
13427
13647
  * @returns {Selection} The new Selection instance.
13428
13648
  */
13429
13649
  static intersect({ cross = false } = {}) {
13430
- return new Selection(new SelectionResolver({ cross }));
13650
+ return new _Selection(new SelectionResolver({ cross }));
13431
13651
  }
13432
13652
  /**
13433
13653
  * Create a new Selection instance with a
@@ -13439,7 +13659,7 @@ var Selection = class extends Param {
13439
13659
  * @returns {Selection} The new Selection instance.
13440
13660
  */
13441
13661
  static union({ cross = false } = {}) {
13442
- return new Selection(new SelectionResolver({ cross, union: true }));
13662
+ return new _Selection(new SelectionResolver({ cross, union: true }));
13443
13663
  }
13444
13664
  /**
13445
13665
  * Create a new Selection instance with a singular resolution strategy
@@ -13451,7 +13671,7 @@ var Selection = class extends Param {
13451
13671
  * @returns {Selection} The new Selection instance.
13452
13672
  */
13453
13673
  static single({ cross = false } = {}) {
13454
- return new Selection(new SelectionResolver({ cross, single: true }));
13674
+ return new _Selection(new SelectionResolver({ cross, single: true }));
13455
13675
  }
13456
13676
  /**
13457
13677
  * Create a new Selection instance with a
@@ -13459,7 +13679,7 @@ var Selection = class extends Param {
13459
13679
  * @returns {Selection} The new Selection instance.
13460
13680
  */
13461
13681
  static crossfilter() {
13462
- return new Selection(new SelectionResolver({ cross: true }));
13682
+ return new _Selection(new SelectionResolver({ cross: true }));
13463
13683
  }
13464
13684
  /**
13465
13685
  * Create a new Selection instance.
@@ -13476,7 +13696,7 @@ var Selection = class extends Param {
13476
13696
  * @returns {this} A clone of this selection.
13477
13697
  */
13478
13698
  clone() {
13479
- const s = new Selection(this._resolver);
13699
+ const s = new _Selection(this._resolver);
13480
13700
  s._value = s._resolved = this._value;
13481
13701
  return s;
13482
13702
  }
@@ -13511,6 +13731,12 @@ var Selection = class extends Param {
13511
13731
  get clauses() {
13512
13732
  return super.value;
13513
13733
  }
13734
+ /**
13735
+ * Indicate if this selection has a single resolution strategy.
13736
+ */
13737
+ get single() {
13738
+ return this._resolver.single;
13739
+ }
13514
13740
  /**
13515
13741
  * Emit an activate event with the given selection clause.
13516
13742
  * @param {*} clause The clause repesenting the potential activation.
@@ -14468,7 +14694,7 @@ function decimalToString2(a) {
14468
14694
  } while (checks[0] || checks[1] || checks[2] || checks[3]);
14469
14695
  return digits !== null && digits !== void 0 ? digits : `0`;
14470
14696
  }
14471
- var BN2 = class {
14697
+ var BN2 = class _BN {
14472
14698
  /** @nocollapse */
14473
14699
  static new(num, isSigned) {
14474
14700
  switch (isSigned) {
@@ -14502,7 +14728,7 @@ var BN2 = class {
14502
14728
  return new DecimalBigNum2(num);
14503
14729
  }
14504
14730
  constructor(num, isSigned) {
14505
- return BN2.new(num, isSigned);
14731
+ return _BN.new(num, isSigned);
14506
14732
  }
14507
14733
  };
14508
14734
 
@@ -14526,7 +14752,7 @@ var _r2;
14526
14752
  var _s2;
14527
14753
  var _t2;
14528
14754
  var _u2;
14529
- var DataType2 = class {
14755
+ var DataType2 = class _DataType {
14530
14756
  /** @nocollapse */
14531
14757
  static isNull(x2) {
14532
14758
  return (x2 === null || x2 === void 0 ? void 0 : x2.typeId) === Type3.Null;
@@ -14601,11 +14827,11 @@ var DataType2 = class {
14601
14827
  }
14602
14828
  /** @nocollapse */
14603
14829
  static isDenseUnion(x2) {
14604
- return DataType2.isUnion(x2) && x2.mode === UnionMode3.Dense;
14830
+ return _DataType.isUnion(x2) && x2.mode === UnionMode3.Dense;
14605
14831
  }
14606
14832
  /** @nocollapse */
14607
14833
  static isSparseUnion(x2) {
14608
- return DataType2.isUnion(x2) && x2.mode === UnionMode3.Sparse;
14834
+ return _DataType.isUnion(x2) && x2.mode === UnionMode3.Sparse;
14609
14835
  }
14610
14836
  get typeId() {
14611
14837
  return Type3.NONE;
@@ -16400,7 +16626,7 @@ function popcnt_uint322(uint32) {
16400
16626
 
16401
16627
  // ../../node_modules/apache-arrow/data.mjs
16402
16628
  var kUnknownNullCount2 = -1;
16403
- var Data2 = class {
16629
+ var Data2 = class _Data {
16404
16630
  constructor(type, offset, length2, nullCount, buffers, children = [], dictionary) {
16405
16631
  this.type = type;
16406
16632
  this.children = children;
@@ -16409,7 +16635,7 @@ var Data2 = class {
16409
16635
  this.length = Math.floor(Math.max(length2 || 0, 0));
16410
16636
  this._nullCount = Math.floor(Math.max(nullCount || 0, -1));
16411
16637
  let buffer;
16412
- if (buffers instanceof Data2) {
16638
+ if (buffers instanceof _Data) {
16413
16639
  this.stride = buffers.stride;
16414
16640
  this.values = buffers.values;
16415
16641
  this.typeIds = buffers.typeIds;
@@ -16476,7 +16702,7 @@ var Data2 = class {
16476
16702
  return value;
16477
16703
  }
16478
16704
  clone(type = this.type, offset = this.offset, length2 = this.length, nullCount = this._nullCount, buffers = this, children = this.children) {
16479
- return new Data2(type, offset, length2, nullCount, buffers, children, this.dictionary);
16705
+ return new _Data(type, offset, length2, nullCount, buffers, children, this.dictionary);
16480
16706
  }
16481
16707
  slice(offset, length2) {
16482
16708
  const { stride, typeId, children } = this;
@@ -16520,7 +16746,7 @@ var Data2 = class {
16520
16746
  }
16521
16747
  };
16522
16748
  Data2.prototype.children = Object.freeze([]);
16523
- var MakeDataVisitor2 = class extends Visitor2 {
16749
+ var MakeDataVisitor2 = class _MakeDataVisitor extends Visitor2 {
16524
16750
  visit(props) {
16525
16751
  return this.getVisitFn(props["type"]).call(this, props);
16526
16752
  }
@@ -16628,7 +16854,7 @@ var MakeDataVisitor2 = class extends Visitor2 {
16628
16854
  const { ["type"]: type, ["offset"]: offset = 0 } = props;
16629
16855
  const nullBitmap = toUint8Array2(props["nullBitmap"]);
16630
16856
  const data = toArrayBufferView2(type.indices.ArrayType, props["data"]);
16631
- const { ["dictionary"]: dictionary = new Vector2([new MakeDataVisitor2().visit({ type: type.dictionary })]) } = props;
16857
+ const { ["dictionary"]: dictionary = new Vector2([new _MakeDataVisitor().visit({ type: type.dictionary })]) } = props;
16632
16858
  const { ["length"]: length2 = data.length, ["nullCount"]: nullCount = props["nullBitmap"] ? -1 : 0 } = props;
16633
16859
  return new Data2(type, offset, length2, nullCount, [void 0, data, nullBitmap], [], dictionary);
16634
16860
  }
@@ -16640,13 +16866,13 @@ var MakeDataVisitor2 = class extends Visitor2 {
16640
16866
  return new Data2(type, offset, length2, nullCount, [void 0, data, nullBitmap]);
16641
16867
  }
16642
16868
  visitFixedSizeList(props) {
16643
- const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new MakeDataVisitor2().visit({ type: type.valueType }) } = props;
16869
+ const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new _MakeDataVisitor().visit({ type: type.valueType }) } = props;
16644
16870
  const nullBitmap = toUint8Array2(props["nullBitmap"]);
16645
16871
  const { ["length"]: length2 = child.length / strideForType2(type), ["nullCount"]: nullCount = props["nullBitmap"] ? -1 : 0 } = props;
16646
16872
  return new Data2(type, offset, length2, nullCount, [void 0, void 0, nullBitmap], [child]);
16647
16873
  }
16648
16874
  visitMap(props) {
16649
- const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new MakeDataVisitor2().visit({ type: type.childType }) } = props;
16875
+ const { ["type"]: type, ["offset"]: offset = 0, ["child"]: child = new _MakeDataVisitor().visit({ type: type.childType }) } = props;
16650
16876
  const nullBitmap = toUint8Array2(props["nullBitmap"]);
16651
16877
  const valueOffsets = toInt32Array2(props["valueOffsets"]);
16652
16878
  const { ["length"]: length2 = valueOffsets.length - 1, ["nullCount"]: nullCount = props["nullBitmap"] ? -1 : 0 } = props;
@@ -17041,10 +17267,10 @@ var instance13 = new GetByteLengthVisitor2();
17041
17267
  var _a6;
17042
17268
  var visitorsByTypeId2 = {};
17043
17269
  var vectorPrototypesByTypeId2 = {};
17044
- var Vector2 = class {
17270
+ var Vector2 = class _Vector {
17045
17271
  constructor(input) {
17046
17272
  var _b3, _c3, _d3;
17047
- const data = input[0] instanceof Vector2 ? input.flatMap((x2) => x2.data) : input;
17273
+ const data = input[0] instanceof _Vector ? input.flatMap((x2) => x2.data) : input;
17048
17274
  if (data.length === 0 || data.some((x2) => !(x2 instanceof Data2))) {
17049
17275
  throw new TypeError("Vector constructor expects an Array of Data instances.");
17050
17276
  }
@@ -17168,7 +17394,7 @@ var Vector2 = class {
17168
17394
  * @param others Additional Vectors to add to the end of this Vector.
17169
17395
  */
17170
17396
  concat(...others) {
17171
- return new Vector2(this.data.concat(others.flatMap((x2) => x2.data).flat(Number.POSITIVE_INFINITY)));
17397
+ return new _Vector(this.data.concat(others.flatMap((x2) => x2.data).flat(Number.POSITIVE_INFINITY)));
17172
17398
  }
17173
17399
  /**
17174
17400
  * Return a zero-copy sub-section of this Vector.
@@ -17176,7 +17402,7 @@ var Vector2 = class {
17176
17402
  * @param end The end of the specified portion of the Vector. This is exclusive of the element at the index 'end'.
17177
17403
  */
17178
17404
  slice(begin, end) {
17179
- return new Vector2(clampRange2(this, begin, end, ({ data, _offsets }, begin2, end2) => sliceChunks2(data, _offsets, begin2, end2)));
17405
+ return new _Vector(clampRange2(this, begin, end, ({ data, _offsets }, begin2, end2) => sliceChunks2(data, _offsets, begin2, end2)));
17180
17406
  }
17181
17407
  toJSON() {
17182
17408
  return [...this];
@@ -17237,7 +17463,7 @@ var Vector2 = class {
17237
17463
  */
17238
17464
  getChildAt(index) {
17239
17465
  if (index > -1 && index < this.numChildren) {
17240
- return new Vector2(this.data.map(({ children }) => children[index]));
17466
+ return new _Vector(this.data.map(({ children }) => children[index]));
17241
17467
  }
17242
17468
  return null;
17243
17469
  }
@@ -17266,7 +17492,7 @@ var Vector2 = class {
17266
17492
  cloned.dictionary = dictionary;
17267
17493
  return cloned;
17268
17494
  });
17269
- return new Vector2(newData);
17495
+ return new _Vector(newData);
17270
17496
  }
17271
17497
  return new MemoizedVector2(this);
17272
17498
  }
@@ -17284,7 +17510,7 @@ var Vector2 = class {
17284
17510
  newData2.dictionary = dictionary;
17285
17511
  return newData2;
17286
17512
  });
17287
- return new Vector2(newData);
17513
+ return new _Vector(newData);
17288
17514
  }
17289
17515
  return this;
17290
17516
  }
@@ -17300,7 +17526,7 @@ Vector2[_a6] = ((proto) => {
17300
17526
  proto._byteLength = -1;
17301
17527
  proto._offsets = new Uint32Array([0]);
17302
17528
  proto[Symbol.isConcatSpreadable] = true;
17303
- const typeIds = Object.keys(Type3).map((T) => Type3[T]).filter((T) => typeof T === "number" && T !== Type3.NONE);
17529
+ const typeIds = Object.keys(Type3).map((T2) => Type3[T2]).filter((T2) => typeof T2 === "number" && T2 !== Type3.NONE);
17304
17530
  for (const typeId of typeIds) {
17305
17531
  const get = instance10.getVisitFnByTypeId(typeId);
17306
17532
  const set = instance9.getVisitFnByTypeId(typeId);
@@ -17317,7 +17543,7 @@ Vector2[_a6] = ((proto) => {
17317
17543
  }
17318
17544
  return "Vector";
17319
17545
  })(Vector2.prototype);
17320
- var MemoizedVector2 = class extends Vector2 {
17546
+ var MemoizedVector2 = class _MemoizedVector extends Vector2 {
17321
17547
  constructor(vector) {
17322
17548
  super(vector.data);
17323
17549
  const get = this.get;
@@ -17342,7 +17568,7 @@ var MemoizedVector2 = class extends Vector2 {
17342
17568
  }
17343
17569
  });
17344
17570
  Object.defineProperty(this, "slice", {
17345
- value: (begin, end) => new MemoizedVector2(slice.call(this, begin, end))
17571
+ value: (begin, end) => new _MemoizedVector(slice.call(this, begin, end))
17346
17572
  });
17347
17573
  Object.defineProperty(this, "isMemoized", { value: true });
17348
17574
  Object.defineProperty(this, "unmemoize", {
@@ -17823,13 +18049,13 @@ var float642 = new Float64Array(int322.buffer);
17823
18049
  var isLittleEndian2 = new Uint16Array(new Uint8Array([1, 0]).buffer)[0] === 1;
17824
18050
 
17825
18051
  // ../../node_modules/flatbuffers/mjs/long.js
17826
- var Long = class {
18052
+ var Long = class _Long {
17827
18053
  constructor(low, high) {
17828
18054
  this.low = low | 0;
17829
18055
  this.high = high | 0;
17830
18056
  }
17831
18057
  static create(low, high) {
17832
- return low == 0 && high == 0 ? Long.ZERO : new Long(low, high);
18058
+ return low == 0 && high == 0 ? _Long.ZERO : new _Long(low, high);
17833
18059
  }
17834
18060
  toFloat64() {
17835
18061
  return (this.low >>> 0) + this.high * 4294967296;
@@ -17848,7 +18074,7 @@ var Encoding2;
17848
18074
  })(Encoding2 || (Encoding2 = {}));
17849
18075
 
17850
18076
  // ../../node_modules/flatbuffers/mjs/byte-buffer.js
17851
- var ByteBuffer4 = class {
18077
+ var ByteBuffer4 = class _ByteBuffer {
17852
18078
  /**
17853
18079
  * Create a new ByteBuffer with a given array of bytes (`Uint8Array`)
17854
18080
  */
@@ -17860,7 +18086,7 @@ var ByteBuffer4 = class {
17860
18086
  * Create and allocate a new ByteBuffer with a given size.
17861
18087
  */
17862
18088
  static allocate(byte_size) {
17863
- return new ByteBuffer4(new Uint8Array(byte_size));
18089
+ return new _ByteBuffer(new Uint8Array(byte_size));
17864
18090
  }
17865
18091
  clear() {
17866
18092
  this.position_ = 0;
@@ -18124,7 +18350,7 @@ var ByteBuffer4 = class {
18124
18350
  };
18125
18351
 
18126
18352
  // ../../node_modules/flatbuffers/mjs/builder.js
18127
- var Builder6 = class {
18353
+ var Builder6 = class _Builder {
18128
18354
  /**
18129
18355
  * Create a FlatBufferBuilder.
18130
18356
  */
@@ -18201,7 +18427,7 @@ var Builder6 = class {
18201
18427
  const align_size = ~(this.bb.capacity() - this.space + additional_bytes) + 1 & size - 1;
18202
18428
  while (this.space < align_size + size + additional_bytes) {
18203
18429
  const old_buf_size = this.bb.capacity();
18204
- this.bb = Builder6.growByteBuffer(this.bb);
18430
+ this.bb = _Builder.growByteBuffer(this.bb);
18205
18431
  this.space += this.bb.capacity() - old_buf_size;
18206
18432
  }
18207
18433
  this.pad(align_size);
@@ -18640,7 +18866,7 @@ var Builder6 = class {
18640
18866
  };
18641
18867
 
18642
18868
  // ../../node_modules/apache-arrow/fb/key-value.mjs
18643
- var KeyValue2 = class {
18869
+ var KeyValue2 = class _KeyValue {
18644
18870
  constructor() {
18645
18871
  this.bb = null;
18646
18872
  this.bb_pos = 0;
@@ -18651,11 +18877,11 @@ var KeyValue2 = class {
18651
18877
  return this;
18652
18878
  }
18653
18879
  static getRootAsKeyValue(bb, obj) {
18654
- return (obj || new KeyValue2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18880
+ return (obj || new _KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18655
18881
  }
18656
18882
  static getSizePrefixedRootAsKeyValue(bb, obj) {
18657
18883
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
18658
- return (obj || new KeyValue2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18884
+ return (obj || new _KeyValue()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18659
18885
  }
18660
18886
  key(optionalEncoding) {
18661
18887
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -18679,10 +18905,10 @@ var KeyValue2 = class {
18679
18905
  return offset;
18680
18906
  }
18681
18907
  static createKeyValue(builder, keyOffset, valueOffset) {
18682
- KeyValue2.startKeyValue(builder);
18683
- KeyValue2.addKey(builder, keyOffset);
18684
- KeyValue2.addValue(builder, valueOffset);
18685
- return KeyValue2.endKeyValue(builder);
18908
+ _KeyValue.startKeyValue(builder);
18909
+ _KeyValue.addKey(builder, keyOffset);
18910
+ _KeyValue.addValue(builder, valueOffset);
18911
+ return _KeyValue.endKeyValue(builder);
18686
18912
  }
18687
18913
  };
18688
18914
 
@@ -18710,7 +18936,7 @@ var DictionaryKind2;
18710
18936
  })(DictionaryKind2 || (DictionaryKind2 = {}));
18711
18937
 
18712
18938
  // ../../node_modules/apache-arrow/fb/int.mjs
18713
- var Int2 = class {
18939
+ var Int2 = class _Int {
18714
18940
  constructor() {
18715
18941
  this.bb = null;
18716
18942
  this.bb_pos = 0;
@@ -18721,11 +18947,11 @@ var Int2 = class {
18721
18947
  return this;
18722
18948
  }
18723
18949
  static getRootAsInt(bb, obj) {
18724
- return (obj || new Int2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18950
+ return (obj || new _Int()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18725
18951
  }
18726
18952
  static getSizePrefixedRootAsInt(bb, obj) {
18727
18953
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
18728
- return (obj || new Int2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18954
+ return (obj || new _Int()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18729
18955
  }
18730
18956
  bitWidth() {
18731
18957
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -18749,15 +18975,15 @@ var Int2 = class {
18749
18975
  return offset;
18750
18976
  }
18751
18977
  static createInt(builder, bitWidth, isSigned) {
18752
- Int2.startInt(builder);
18753
- Int2.addBitWidth(builder, bitWidth);
18754
- Int2.addIsSigned(builder, isSigned);
18755
- return Int2.endInt(builder);
18978
+ _Int.startInt(builder);
18979
+ _Int.addBitWidth(builder, bitWidth);
18980
+ _Int.addIsSigned(builder, isSigned);
18981
+ return _Int.endInt(builder);
18756
18982
  }
18757
18983
  };
18758
18984
 
18759
18985
  // ../../node_modules/apache-arrow/fb/dictionary-encoding.mjs
18760
- var DictionaryEncoding2 = class {
18986
+ var DictionaryEncoding2 = class _DictionaryEncoding {
18761
18987
  constructor() {
18762
18988
  this.bb = null;
18763
18989
  this.bb_pos = 0;
@@ -18768,11 +18994,11 @@ var DictionaryEncoding2 = class {
18768
18994
  return this;
18769
18995
  }
18770
18996
  static getRootAsDictionaryEncoding(bb, obj) {
18771
- return (obj || new DictionaryEncoding2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18997
+ return (obj || new _DictionaryEncoding()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18772
18998
  }
18773
18999
  static getSizePrefixedRootAsDictionaryEncoding(bb, obj) {
18774
19000
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
18775
- return (obj || new DictionaryEncoding2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19001
+ return (obj || new _DictionaryEncoding()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18776
19002
  }
18777
19003
  /**
18778
19004
  * The known dictionary id in the application where this data is used. In
@@ -18830,7 +19056,7 @@ var DictionaryEncoding2 = class {
18830
19056
  };
18831
19057
 
18832
19058
  // ../../node_modules/apache-arrow/fb/binary.mjs
18833
- var Binary4 = class {
19059
+ var Binary4 = class _Binary {
18834
19060
  constructor() {
18835
19061
  this.bb = null;
18836
19062
  this.bb_pos = 0;
@@ -18841,11 +19067,11 @@ var Binary4 = class {
18841
19067
  return this;
18842
19068
  }
18843
19069
  static getRootAsBinary(bb, obj) {
18844
- return (obj || new Binary4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19070
+ return (obj || new _Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18845
19071
  }
18846
19072
  static getSizePrefixedRootAsBinary(bb, obj) {
18847
19073
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
18848
- return (obj || new Binary4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19074
+ return (obj || new _Binary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18849
19075
  }
18850
19076
  static startBinary(builder) {
18851
19077
  builder.startObject(0);
@@ -18855,13 +19081,13 @@ var Binary4 = class {
18855
19081
  return offset;
18856
19082
  }
18857
19083
  static createBinary(builder) {
18858
- Binary4.startBinary(builder);
18859
- return Binary4.endBinary(builder);
19084
+ _Binary.startBinary(builder);
19085
+ return _Binary.endBinary(builder);
18860
19086
  }
18861
19087
  };
18862
19088
 
18863
19089
  // ../../node_modules/apache-arrow/fb/bool.mjs
18864
- var Bool4 = class {
19090
+ var Bool4 = class _Bool {
18865
19091
  constructor() {
18866
19092
  this.bb = null;
18867
19093
  this.bb_pos = 0;
@@ -18872,11 +19098,11 @@ var Bool4 = class {
18872
19098
  return this;
18873
19099
  }
18874
19100
  static getRootAsBool(bb, obj) {
18875
- return (obj || new Bool4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19101
+ return (obj || new _Bool()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18876
19102
  }
18877
19103
  static getSizePrefixedRootAsBool(bb, obj) {
18878
19104
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
18879
- return (obj || new Bool4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19105
+ return (obj || new _Bool()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18880
19106
  }
18881
19107
  static startBool(builder) {
18882
19108
  builder.startObject(0);
@@ -18886,8 +19112,8 @@ var Bool4 = class {
18886
19112
  return offset;
18887
19113
  }
18888
19114
  static createBool(builder) {
18889
- Bool4.startBool(builder);
18890
- return Bool4.endBool(builder);
19115
+ _Bool.startBool(builder);
19116
+ return _Bool.endBool(builder);
18891
19117
  }
18892
19118
  };
18893
19119
 
@@ -18899,7 +19125,7 @@ var DateUnit4;
18899
19125
  })(DateUnit4 || (DateUnit4 = {}));
18900
19126
 
18901
19127
  // ../../node_modules/apache-arrow/fb/date.mjs
18902
- var Date3 = class {
19128
+ var Date3 = class _Date {
18903
19129
  constructor() {
18904
19130
  this.bb = null;
18905
19131
  this.bb_pos = 0;
@@ -18910,11 +19136,11 @@ var Date3 = class {
18910
19136
  return this;
18911
19137
  }
18912
19138
  static getRootAsDate(bb, obj) {
18913
- return (obj || new Date3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19139
+ return (obj || new _Date()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18914
19140
  }
18915
19141
  static getSizePrefixedRootAsDate(bb, obj) {
18916
19142
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
18917
- return (obj || new Date3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19143
+ return (obj || new _Date()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18918
19144
  }
18919
19145
  unit() {
18920
19146
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -18931,14 +19157,14 @@ var Date3 = class {
18931
19157
  return offset;
18932
19158
  }
18933
19159
  static createDate(builder, unit) {
18934
- Date3.startDate(builder);
18935
- Date3.addUnit(builder, unit);
18936
- return Date3.endDate(builder);
19160
+ _Date.startDate(builder);
19161
+ _Date.addUnit(builder, unit);
19162
+ return _Date.endDate(builder);
18937
19163
  }
18938
19164
  };
18939
19165
 
18940
19166
  // ../../node_modules/apache-arrow/fb/decimal.mjs
18941
- var Decimal4 = class {
19167
+ var Decimal4 = class _Decimal {
18942
19168
  constructor() {
18943
19169
  this.bb = null;
18944
19170
  this.bb_pos = 0;
@@ -18949,11 +19175,11 @@ var Decimal4 = class {
18949
19175
  return this;
18950
19176
  }
18951
19177
  static getRootAsDecimal(bb, obj) {
18952
- return (obj || new Decimal4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19178
+ return (obj || new _Decimal()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18953
19179
  }
18954
19180
  static getSizePrefixedRootAsDecimal(bb, obj) {
18955
19181
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
18956
- return (obj || new Decimal4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19182
+ return (obj || new _Decimal()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
18957
19183
  }
18958
19184
  /**
18959
19185
  * Total number of decimal digits
@@ -18994,11 +19220,11 @@ var Decimal4 = class {
18994
19220
  return offset;
18995
19221
  }
18996
19222
  static createDecimal(builder, precision, scale, bitWidth) {
18997
- Decimal4.startDecimal(builder);
18998
- Decimal4.addPrecision(builder, precision);
18999
- Decimal4.addScale(builder, scale);
19000
- Decimal4.addBitWidth(builder, bitWidth);
19001
- return Decimal4.endDecimal(builder);
19223
+ _Decimal.startDecimal(builder);
19224
+ _Decimal.addPrecision(builder, precision);
19225
+ _Decimal.addScale(builder, scale);
19226
+ _Decimal.addBitWidth(builder, bitWidth);
19227
+ return _Decimal.endDecimal(builder);
19002
19228
  }
19003
19229
  };
19004
19230
 
@@ -19012,7 +19238,7 @@ var TimeUnit4;
19012
19238
  })(TimeUnit4 || (TimeUnit4 = {}));
19013
19239
 
19014
19240
  // ../../node_modules/apache-arrow/fb/fixed-size-binary.mjs
19015
- var FixedSizeBinary4 = class {
19241
+ var FixedSizeBinary4 = class _FixedSizeBinary {
19016
19242
  constructor() {
19017
19243
  this.bb = null;
19018
19244
  this.bb_pos = 0;
@@ -19023,11 +19249,11 @@ var FixedSizeBinary4 = class {
19023
19249
  return this;
19024
19250
  }
19025
19251
  static getRootAsFixedSizeBinary(bb, obj) {
19026
- return (obj || new FixedSizeBinary4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19252
+ return (obj || new _FixedSizeBinary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19027
19253
  }
19028
19254
  static getSizePrefixedRootAsFixedSizeBinary(bb, obj) {
19029
19255
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19030
- return (obj || new FixedSizeBinary4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19256
+ return (obj || new _FixedSizeBinary()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19031
19257
  }
19032
19258
  /**
19033
19259
  * Number of bytes per value
@@ -19047,14 +19273,14 @@ var FixedSizeBinary4 = class {
19047
19273
  return offset;
19048
19274
  }
19049
19275
  static createFixedSizeBinary(builder, byteWidth) {
19050
- FixedSizeBinary4.startFixedSizeBinary(builder);
19051
- FixedSizeBinary4.addByteWidth(builder, byteWidth);
19052
- return FixedSizeBinary4.endFixedSizeBinary(builder);
19276
+ _FixedSizeBinary.startFixedSizeBinary(builder);
19277
+ _FixedSizeBinary.addByteWidth(builder, byteWidth);
19278
+ return _FixedSizeBinary.endFixedSizeBinary(builder);
19053
19279
  }
19054
19280
  };
19055
19281
 
19056
19282
  // ../../node_modules/apache-arrow/fb/fixed-size-list.mjs
19057
- var FixedSizeList4 = class {
19283
+ var FixedSizeList4 = class _FixedSizeList {
19058
19284
  constructor() {
19059
19285
  this.bb = null;
19060
19286
  this.bb_pos = 0;
@@ -19065,11 +19291,11 @@ var FixedSizeList4 = class {
19065
19291
  return this;
19066
19292
  }
19067
19293
  static getRootAsFixedSizeList(bb, obj) {
19068
- return (obj || new FixedSizeList4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19294
+ return (obj || new _FixedSizeList()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19069
19295
  }
19070
19296
  static getSizePrefixedRootAsFixedSizeList(bb, obj) {
19071
19297
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19072
- return (obj || new FixedSizeList4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19298
+ return (obj || new _FixedSizeList()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19073
19299
  }
19074
19300
  /**
19075
19301
  * Number of list items per value
@@ -19089,9 +19315,9 @@ var FixedSizeList4 = class {
19089
19315
  return offset;
19090
19316
  }
19091
19317
  static createFixedSizeList(builder, listSize) {
19092
- FixedSizeList4.startFixedSizeList(builder);
19093
- FixedSizeList4.addListSize(builder, listSize);
19094
- return FixedSizeList4.endFixedSizeList(builder);
19318
+ _FixedSizeList.startFixedSizeList(builder);
19319
+ _FixedSizeList.addListSize(builder, listSize);
19320
+ return _FixedSizeList.endFixedSizeList(builder);
19095
19321
  }
19096
19322
  };
19097
19323
 
@@ -19104,7 +19330,7 @@ var Precision4;
19104
19330
  })(Precision4 || (Precision4 = {}));
19105
19331
 
19106
19332
  // ../../node_modules/apache-arrow/fb/floating-point.mjs
19107
- var FloatingPoint2 = class {
19333
+ var FloatingPoint2 = class _FloatingPoint {
19108
19334
  constructor() {
19109
19335
  this.bb = null;
19110
19336
  this.bb_pos = 0;
@@ -19115,11 +19341,11 @@ var FloatingPoint2 = class {
19115
19341
  return this;
19116
19342
  }
19117
19343
  static getRootAsFloatingPoint(bb, obj) {
19118
- return (obj || new FloatingPoint2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19344
+ return (obj || new _FloatingPoint()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19119
19345
  }
19120
19346
  static getSizePrefixedRootAsFloatingPoint(bb, obj) {
19121
19347
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19122
- return (obj || new FloatingPoint2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19348
+ return (obj || new _FloatingPoint()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19123
19349
  }
19124
19350
  precision() {
19125
19351
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -19136,9 +19362,9 @@ var FloatingPoint2 = class {
19136
19362
  return offset;
19137
19363
  }
19138
19364
  static createFloatingPoint(builder, precision) {
19139
- FloatingPoint2.startFloatingPoint(builder);
19140
- FloatingPoint2.addPrecision(builder, precision);
19141
- return FloatingPoint2.endFloatingPoint(builder);
19365
+ _FloatingPoint.startFloatingPoint(builder);
19366
+ _FloatingPoint.addPrecision(builder, precision);
19367
+ return _FloatingPoint.endFloatingPoint(builder);
19142
19368
  }
19143
19369
  };
19144
19370
 
@@ -19151,7 +19377,7 @@ var IntervalUnit4;
19151
19377
  })(IntervalUnit4 || (IntervalUnit4 = {}));
19152
19378
 
19153
19379
  // ../../node_modules/apache-arrow/fb/interval.mjs
19154
- var Interval2 = class {
19380
+ var Interval2 = class _Interval {
19155
19381
  constructor() {
19156
19382
  this.bb = null;
19157
19383
  this.bb_pos = 0;
@@ -19162,11 +19388,11 @@ var Interval2 = class {
19162
19388
  return this;
19163
19389
  }
19164
19390
  static getRootAsInterval(bb, obj) {
19165
- return (obj || new Interval2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19391
+ return (obj || new _Interval()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19166
19392
  }
19167
19393
  static getSizePrefixedRootAsInterval(bb, obj) {
19168
19394
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19169
- return (obj || new Interval2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19395
+ return (obj || new _Interval()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19170
19396
  }
19171
19397
  unit() {
19172
19398
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -19183,14 +19409,14 @@ var Interval2 = class {
19183
19409
  return offset;
19184
19410
  }
19185
19411
  static createInterval(builder, unit) {
19186
- Interval2.startInterval(builder);
19187
- Interval2.addUnit(builder, unit);
19188
- return Interval2.endInterval(builder);
19412
+ _Interval.startInterval(builder);
19413
+ _Interval.addUnit(builder, unit);
19414
+ return _Interval.endInterval(builder);
19189
19415
  }
19190
19416
  };
19191
19417
 
19192
19418
  // ../../node_modules/apache-arrow/fb/list.mjs
19193
- var List4 = class {
19419
+ var List4 = class _List {
19194
19420
  constructor() {
19195
19421
  this.bb = null;
19196
19422
  this.bb_pos = 0;
@@ -19201,11 +19427,11 @@ var List4 = class {
19201
19427
  return this;
19202
19428
  }
19203
19429
  static getRootAsList(bb, obj) {
19204
- return (obj || new List4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19430
+ return (obj || new _List()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19205
19431
  }
19206
19432
  static getSizePrefixedRootAsList(bb, obj) {
19207
19433
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19208
- return (obj || new List4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19434
+ return (obj || new _List()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19209
19435
  }
19210
19436
  static startList(builder) {
19211
19437
  builder.startObject(0);
@@ -19215,13 +19441,13 @@ var List4 = class {
19215
19441
  return offset;
19216
19442
  }
19217
19443
  static createList(builder) {
19218
- List4.startList(builder);
19219
- return List4.endList(builder);
19444
+ _List.startList(builder);
19445
+ return _List.endList(builder);
19220
19446
  }
19221
19447
  };
19222
19448
 
19223
19449
  // ../../node_modules/apache-arrow/fb/map.mjs
19224
- var Map3 = class {
19450
+ var Map3 = class _Map {
19225
19451
  constructor() {
19226
19452
  this.bb = null;
19227
19453
  this.bb_pos = 0;
@@ -19232,11 +19458,11 @@ var Map3 = class {
19232
19458
  return this;
19233
19459
  }
19234
19460
  static getRootAsMap(bb, obj) {
19235
- return (obj || new Map3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19461
+ return (obj || new _Map()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19236
19462
  }
19237
19463
  static getSizePrefixedRootAsMap(bb, obj) {
19238
19464
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19239
- return (obj || new Map3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19465
+ return (obj || new _Map()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19240
19466
  }
19241
19467
  /**
19242
19468
  * Set to true if the keys within each value are sorted
@@ -19256,14 +19482,14 @@ var Map3 = class {
19256
19482
  return offset;
19257
19483
  }
19258
19484
  static createMap(builder, keysSorted) {
19259
- Map3.startMap(builder);
19260
- Map3.addKeysSorted(builder, keysSorted);
19261
- return Map3.endMap(builder);
19485
+ _Map.startMap(builder);
19486
+ _Map.addKeysSorted(builder, keysSorted);
19487
+ return _Map.endMap(builder);
19262
19488
  }
19263
19489
  };
19264
19490
 
19265
19491
  // ../../node_modules/apache-arrow/fb/null.mjs
19266
- var Null4 = class {
19492
+ var Null4 = class _Null {
19267
19493
  constructor() {
19268
19494
  this.bb = null;
19269
19495
  this.bb_pos = 0;
@@ -19274,11 +19500,11 @@ var Null4 = class {
19274
19500
  return this;
19275
19501
  }
19276
19502
  static getRootAsNull(bb, obj) {
19277
- return (obj || new Null4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19503
+ return (obj || new _Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19278
19504
  }
19279
19505
  static getSizePrefixedRootAsNull(bb, obj) {
19280
19506
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19281
- return (obj || new Null4()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19507
+ return (obj || new _Null()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19282
19508
  }
19283
19509
  static startNull(builder) {
19284
19510
  builder.startObject(0);
@@ -19288,13 +19514,13 @@ var Null4 = class {
19288
19514
  return offset;
19289
19515
  }
19290
19516
  static createNull(builder) {
19291
- Null4.startNull(builder);
19292
- return Null4.endNull(builder);
19517
+ _Null.startNull(builder);
19518
+ return _Null.endNull(builder);
19293
19519
  }
19294
19520
  };
19295
19521
 
19296
19522
  // ../../node_modules/apache-arrow/fb/struct_.mjs
19297
- var Struct_2 = class {
19523
+ var Struct_2 = class _Struct_ {
19298
19524
  constructor() {
19299
19525
  this.bb = null;
19300
19526
  this.bb_pos = 0;
@@ -19305,11 +19531,11 @@ var Struct_2 = class {
19305
19531
  return this;
19306
19532
  }
19307
19533
  static getRootAsStruct_(bb, obj) {
19308
- return (obj || new Struct_2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19534
+ return (obj || new _Struct_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19309
19535
  }
19310
19536
  static getSizePrefixedRootAsStruct_(bb, obj) {
19311
19537
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19312
- return (obj || new Struct_2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19538
+ return (obj || new _Struct_()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19313
19539
  }
19314
19540
  static startStruct_(builder) {
19315
19541
  builder.startObject(0);
@@ -19319,13 +19545,13 @@ var Struct_2 = class {
19319
19545
  return offset;
19320
19546
  }
19321
19547
  static createStruct_(builder) {
19322
- Struct_2.startStruct_(builder);
19323
- return Struct_2.endStruct_(builder);
19548
+ _Struct_.startStruct_(builder);
19549
+ return _Struct_.endStruct_(builder);
19324
19550
  }
19325
19551
  };
19326
19552
 
19327
19553
  // ../../node_modules/apache-arrow/fb/time.mjs
19328
- var Time2 = class {
19554
+ var Time2 = class _Time {
19329
19555
  constructor() {
19330
19556
  this.bb = null;
19331
19557
  this.bb_pos = 0;
@@ -19336,11 +19562,11 @@ var Time2 = class {
19336
19562
  return this;
19337
19563
  }
19338
19564
  static getRootAsTime(bb, obj) {
19339
- return (obj || new Time2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19565
+ return (obj || new _Time()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19340
19566
  }
19341
19567
  static getSizePrefixedRootAsTime(bb, obj) {
19342
19568
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19343
- return (obj || new Time2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19569
+ return (obj || new _Time()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19344
19570
  }
19345
19571
  unit() {
19346
19572
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -19364,15 +19590,15 @@ var Time2 = class {
19364
19590
  return offset;
19365
19591
  }
19366
19592
  static createTime(builder, unit, bitWidth) {
19367
- Time2.startTime(builder);
19368
- Time2.addUnit(builder, unit);
19369
- Time2.addBitWidth(builder, bitWidth);
19370
- return Time2.endTime(builder);
19593
+ _Time.startTime(builder);
19594
+ _Time.addUnit(builder, unit);
19595
+ _Time.addBitWidth(builder, bitWidth);
19596
+ return _Time.endTime(builder);
19371
19597
  }
19372
19598
  };
19373
19599
 
19374
19600
  // ../../node_modules/apache-arrow/fb/timestamp.mjs
19375
- var Timestamp2 = class {
19601
+ var Timestamp2 = class _Timestamp {
19376
19602
  constructor() {
19377
19603
  this.bb = null;
19378
19604
  this.bb_pos = 0;
@@ -19383,11 +19609,11 @@ var Timestamp2 = class {
19383
19609
  return this;
19384
19610
  }
19385
19611
  static getRootAsTimestamp(bb, obj) {
19386
- return (obj || new Timestamp2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19612
+ return (obj || new _Timestamp()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19387
19613
  }
19388
19614
  static getSizePrefixedRootAsTimestamp(bb, obj) {
19389
19615
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19390
- return (obj || new Timestamp2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19616
+ return (obj || new _Timestamp()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19391
19617
  }
19392
19618
  unit() {
19393
19619
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -19411,10 +19637,10 @@ var Timestamp2 = class {
19411
19637
  return offset;
19412
19638
  }
19413
19639
  static createTimestamp(builder, unit, timezoneOffset) {
19414
- Timestamp2.startTimestamp(builder);
19415
- Timestamp2.addUnit(builder, unit);
19416
- Timestamp2.addTimezone(builder, timezoneOffset);
19417
- return Timestamp2.endTimestamp(builder);
19640
+ _Timestamp.startTimestamp(builder);
19641
+ _Timestamp.addUnit(builder, unit);
19642
+ _Timestamp.addTimezone(builder, timezoneOffset);
19643
+ return _Timestamp.endTimestamp(builder);
19418
19644
  }
19419
19645
  };
19420
19646
 
@@ -19426,7 +19652,7 @@ var UnionMode4;
19426
19652
  })(UnionMode4 || (UnionMode4 = {}));
19427
19653
 
19428
19654
  // ../../node_modules/apache-arrow/fb/union.mjs
19429
- var Union2 = class {
19655
+ var Union2 = class _Union {
19430
19656
  constructor() {
19431
19657
  this.bb = null;
19432
19658
  this.bb_pos = 0;
@@ -19437,11 +19663,11 @@ var Union2 = class {
19437
19663
  return this;
19438
19664
  }
19439
19665
  static getRootAsUnion(bb, obj) {
19440
- return (obj || new Union2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19666
+ return (obj || new _Union()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19441
19667
  }
19442
19668
  static getSizePrefixedRootAsUnion(bb, obj) {
19443
19669
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19444
- return (obj || new Union2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19670
+ return (obj || new _Union()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19445
19671
  }
19446
19672
  mode() {
19447
19673
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -19483,15 +19709,15 @@ var Union2 = class {
19483
19709
  return offset;
19484
19710
  }
19485
19711
  static createUnion(builder, mode2, typeIdsOffset) {
19486
- Union2.startUnion(builder);
19487
- Union2.addMode(builder, mode2);
19488
- Union2.addTypeIds(builder, typeIdsOffset);
19489
- return Union2.endUnion(builder);
19712
+ _Union.startUnion(builder);
19713
+ _Union.addMode(builder, mode2);
19714
+ _Union.addTypeIds(builder, typeIdsOffset);
19715
+ return _Union.endUnion(builder);
19490
19716
  }
19491
19717
  };
19492
19718
 
19493
19719
  // ../../node_modules/apache-arrow/fb/utf8.mjs
19494
- var Utf84 = class {
19720
+ var Utf84 = class _Utf8 {
19495
19721
  constructor() {
19496
19722
  this.bb = null;
19497
19723
  this.bb_pos = 0;
@@ -19502,11 +19728,11 @@ var Utf84 = class {
19502
19728
  return this;
19503
19729
  }
19504
19730
  static getRootAsUtf8(bb, obj) {
19505
- return (obj || new Utf84()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19731
+ return (obj || new _Utf8()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19506
19732
  }
19507
19733
  static getSizePrefixedRootAsUtf8(bb, obj) {
19508
19734
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19509
- return (obj || new Utf84()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19735
+ return (obj || new _Utf8()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19510
19736
  }
19511
19737
  static startUtf8(builder) {
19512
19738
  builder.startObject(0);
@@ -19516,8 +19742,8 @@ var Utf84 = class {
19516
19742
  return offset;
19517
19743
  }
19518
19744
  static createUtf8(builder) {
19519
- Utf84.startUtf8(builder);
19520
- return Utf84.endUtf8(builder);
19745
+ _Utf8.startUtf8(builder);
19746
+ return _Utf8.endUtf8(builder);
19521
19747
  }
19522
19748
  };
19523
19749
 
@@ -19549,7 +19775,7 @@ var Type4;
19549
19775
  })(Type4 || (Type4 = {}));
19550
19776
 
19551
19777
  // ../../node_modules/apache-arrow/fb/field.mjs
19552
- var Field3 = class {
19778
+ var Field3 = class _Field {
19553
19779
  constructor() {
19554
19780
  this.bb = null;
19555
19781
  this.bb_pos = 0;
@@ -19560,11 +19786,11 @@ var Field3 = class {
19560
19786
  return this;
19561
19787
  }
19562
19788
  static getRootAsField(bb, obj) {
19563
- return (obj || new Field3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19789
+ return (obj || new _Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19564
19790
  }
19565
19791
  static getSizePrefixedRootAsField(bb, obj) {
19566
19792
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19567
- return (obj || new Field3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19793
+ return (obj || new _Field()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19568
19794
  }
19569
19795
  name(optionalEncoding) {
19570
19796
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -19602,7 +19828,7 @@ var Field3 = class {
19602
19828
  */
19603
19829
  children(index, obj) {
19604
19830
  const offset = this.bb.__offset(this.bb_pos, 14);
19605
- return offset ? (obj || new Field3()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
19831
+ return offset ? (obj || new _Field()).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos + offset) + index * 4), this.bb) : null;
19606
19832
  }
19607
19833
  childrenLength() {
19608
19834
  const offset = this.bb.__offset(this.bb_pos, 14);
@@ -19670,7 +19896,7 @@ var Field3 = class {
19670
19896
  };
19671
19897
 
19672
19898
  // ../../node_modules/apache-arrow/fb/schema.mjs
19673
- var Schema3 = class {
19899
+ var Schema3 = class _Schema {
19674
19900
  constructor() {
19675
19901
  this.bb = null;
19676
19902
  this.bb_pos = 0;
@@ -19681,11 +19907,11 @@ var Schema3 = class {
19681
19907
  return this;
19682
19908
  }
19683
19909
  static getRootAsSchema(bb, obj) {
19684
- return (obj || new Schema3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19910
+ return (obj || new _Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19685
19911
  }
19686
19912
  static getSizePrefixedRootAsSchema(bb, obj) {
19687
19913
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19688
- return (obj || new Schema3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19914
+ return (obj || new _Schema()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19689
19915
  }
19690
19916
  /**
19691
19917
  * endianness of the buffer
@@ -19779,17 +20005,17 @@ var Schema3 = class {
19779
20005
  builder.finish(offset, void 0, true);
19780
20006
  }
19781
20007
  static createSchema(builder, endianness, fieldsOffset, customMetadataOffset, featuresOffset) {
19782
- Schema3.startSchema(builder);
19783
- Schema3.addEndianness(builder, endianness);
19784
- Schema3.addFields(builder, fieldsOffset);
19785
- Schema3.addCustomMetadata(builder, customMetadataOffset);
19786
- Schema3.addFeatures(builder, featuresOffset);
19787
- return Schema3.endSchema(builder);
20008
+ _Schema.startSchema(builder);
20009
+ _Schema.addEndianness(builder, endianness);
20010
+ _Schema.addFields(builder, fieldsOffset);
20011
+ _Schema.addCustomMetadata(builder, customMetadataOffset);
20012
+ _Schema.addFeatures(builder, featuresOffset);
20013
+ return _Schema.endSchema(builder);
19788
20014
  }
19789
20015
  };
19790
20016
 
19791
20017
  // ../../node_modules/apache-arrow/fb/footer.mjs
19792
- var Footer2 = class {
20018
+ var Footer2 = class _Footer {
19793
20019
  constructor() {
19794
20020
  this.bb = null;
19795
20021
  this.bb_pos = 0;
@@ -19800,11 +20026,11 @@ var Footer2 = class {
19800
20026
  return this;
19801
20027
  }
19802
20028
  static getRootAsFooter(bb, obj) {
19803
- return (obj || new Footer2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
20029
+ return (obj || new _Footer()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19804
20030
  }
19805
20031
  static getSizePrefixedRootAsFooter(bb, obj) {
19806
20032
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
19807
- return (obj || new Footer2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
20033
+ return (obj || new _Footer()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19808
20034
  }
19809
20035
  version() {
19810
20036
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -19888,7 +20114,7 @@ var Footer2 = class {
19888
20114
  };
19889
20115
 
19890
20116
  // ../../node_modules/apache-arrow/schema.mjs
19891
- var Schema4 = class {
20117
+ var Schema4 = class _Schema {
19892
20118
  constructor(fields = [], metadata, dictionaries) {
19893
20119
  this.fields = fields || [];
19894
20120
  this.metadata = metadata || /* @__PURE__ */ new Map();
@@ -19915,7 +20141,7 @@ var Schema4 = class {
19915
20141
  select(fieldNames) {
19916
20142
  const names = new Set(fieldNames);
19917
20143
  const fields = this.fields.filter((f2) => names.has(f2.name));
19918
- return new Schema4(fields, this.metadata);
20144
+ return new _Schema(fields, this.metadata);
19919
20145
  }
19920
20146
  /**
19921
20147
  * Construct a new Schema containing only fields at the specified indices.
@@ -19925,10 +20151,10 @@ var Schema4 = class {
19925
20151
  */
19926
20152
  selectAt(fieldIndices) {
19927
20153
  const fields = fieldIndices.map((i2) => this.fields[i2]).filter(Boolean);
19928
- return new Schema4(fields, this.metadata);
20154
+ return new _Schema(fields, this.metadata);
19929
20155
  }
19930
20156
  assign(...args) {
19931
- const other = args[0] instanceof Schema4 ? args[0] : Array.isArray(args[0]) ? new Schema4(args[0]) : new Schema4(args);
20157
+ const other = args[0] instanceof _Schema ? args[0] : Array.isArray(args[0]) ? new _Schema(args[0]) : new _Schema(args);
19932
20158
  const curFields = [...this.fields];
19933
20159
  const metadata = mergeMaps2(mergeMaps2(/* @__PURE__ */ new Map(), this.metadata), other.metadata);
19934
20160
  const newFields = other.fields.filter((f2) => {
@@ -19938,13 +20164,13 @@ var Schema4 = class {
19938
20164
  })) && false : true;
19939
20165
  });
19940
20166
  const newDictionaries = generateDictionaryMap2(newFields, /* @__PURE__ */ new Map());
19941
- return new Schema4([...curFields, ...newFields], metadata, new Map([...this.dictionaries, ...newDictionaries]));
20167
+ return new _Schema([...curFields, ...newFields], metadata, new Map([...this.dictionaries, ...newDictionaries]));
19942
20168
  }
19943
20169
  };
19944
20170
  Schema4.prototype.fields = null;
19945
20171
  Schema4.prototype.metadata = null;
19946
20172
  Schema4.prototype.dictionaries = null;
19947
- var Field4 = class {
20173
+ var Field4 = class _Field {
19948
20174
  constructor(name, type, nullable = false, metadata) {
19949
20175
  this.name = name;
19950
20176
  this.type = type;
@@ -19960,7 +20186,7 @@ var Field4 = class {
19960
20186
  nullable === void 0 && (nullable = args[0].nullable);
19961
20187
  metadata === void 0 && (metadata = args[0].metadata);
19962
20188
  }
19963
- return new Field4(`${name}`, type, nullable, metadata);
20189
+ return new _Field(`${name}`, type, nullable, metadata);
19964
20190
  }
19965
20191
  get typeId() {
19966
20192
  return this.type.typeId;
@@ -19974,7 +20200,7 @@ var Field4 = class {
19974
20200
  clone(...args) {
19975
20201
  let [name, type, nullable, metadata] = args;
19976
20202
  !args[0] || typeof args[0] !== "object" ? [name = this.name, type = this.type, nullable = this.nullable, metadata = this.metadata] = args : { name = this.name, type = this.type, nullable = this.nullable, metadata = this.metadata } = args[0];
19977
- return Field4.new(name, type, nullable, metadata);
20203
+ return _Field.new(name, type, nullable, metadata);
19978
20204
  }
19979
20205
  };
19980
20206
  Field4.prototype.type = null;
@@ -20099,7 +20325,7 @@ var OffHeapFooter2 = class extends Footer_2 {
20099
20325
  return null;
20100
20326
  }
20101
20327
  };
20102
- var FileBlock2 = class {
20328
+ var FileBlock2 = class _FileBlock {
20103
20329
  constructor(metaDataLength, bodyLength, offset) {
20104
20330
  this.metaDataLength = metaDataLength;
20105
20331
  this.offset = typeof offset === "number" ? offset : offset.low;
@@ -20107,7 +20333,7 @@ var FileBlock2 = class {
20107
20333
  }
20108
20334
  /** @nocollapse */
20109
20335
  static decode(block) {
20110
- return new FileBlock2(block.metaDataLength(), block.bodyLength(), block.offset());
20336
+ return new _FileBlock(block.metaDataLength(), block.bodyLength(), block.offset());
20111
20337
  }
20112
20338
  /** @nocollapse */
20113
20339
  static encode(b2, fileBlock) {
@@ -20302,9 +20528,9 @@ var ByteStream2 = class {
20302
20528
  return this.source.read(size);
20303
20529
  }
20304
20530
  };
20305
- var AsyncByteStream2 = class {
20531
+ var AsyncByteStream2 = class _AsyncByteStream {
20306
20532
  constructor(source) {
20307
- if (source instanceof AsyncByteStream2) {
20533
+ if (source instanceof _AsyncByteStream) {
20308
20534
  this.source = source.source;
20309
20535
  } else if (source instanceof AsyncByteQueue2) {
20310
20536
  this.source = new AsyncByteStreamSource2(adapters_default2.fromAsyncIterable(source));
@@ -20583,24 +20809,24 @@ var BaseInt642 = class {
20583
20809
  this.buffer[0] >>> 16,
20584
20810
  this.buffer[0] & 65535
20585
20811
  ]);
20586
- const R2 = new Uint32Array([
20812
+ const R = new Uint32Array([
20587
20813
  other.buffer[1] >>> 16,
20588
20814
  other.buffer[1] & 65535,
20589
20815
  other.buffer[0] >>> 16,
20590
20816
  other.buffer[0] & 65535
20591
20817
  ]);
20592
- let product2 = L2[3] * R2[3];
20818
+ let product2 = L2[3] * R[3];
20593
20819
  this.buffer[0] = product2 & 65535;
20594
20820
  let sum4 = product2 >>> 16;
20595
- product2 = L2[2] * R2[3];
20821
+ product2 = L2[2] * R[3];
20596
20822
  sum4 += product2;
20597
- product2 = L2[3] * R2[2] >>> 0;
20823
+ product2 = L2[3] * R[2] >>> 0;
20598
20824
  sum4 += product2;
20599
20825
  this.buffer[0] += sum4 << 16;
20600
20826
  this.buffer[1] = sum4 >>> 0 < product2 ? carryBit162 : 0;
20601
20827
  this.buffer[1] += sum4 >>> 16;
20602
- this.buffer[1] += L2[1] * R2[3] + L2[2] * R2[2] + L2[3] * R2[1];
20603
- this.buffer[1] += L2[0] * R2[3] + L2[1] * R2[2] + L2[2] * R2[1] + L2[3] * R2[0] << 16;
20828
+ this.buffer[1] += L2[1] * R[3] + L2[2] * R[2] + L2[3] * R[1];
20829
+ this.buffer[1] += L2[0] * R[3] + L2[1] * R[2] + L2[2] * R[1] + L2[3] * R[0] << 16;
20604
20830
  return this;
20605
20831
  }
20606
20832
  _plus(other) {
@@ -20624,7 +20850,7 @@ var BaseInt642 = class {
20624
20850
  return `${intAsHex2(this.buffer[1])} ${intAsHex2(this.buffer[0])}`;
20625
20851
  }
20626
20852
  };
20627
- var Uint644 = class extends BaseInt642 {
20853
+ var Uint644 = class _Uint64 extends BaseInt642 {
20628
20854
  times(other) {
20629
20855
  this._times(other);
20630
20856
  return this;
@@ -20635,20 +20861,20 @@ var Uint644 = class extends BaseInt642 {
20635
20861
  }
20636
20862
  /** @nocollapse */
20637
20863
  static from(val, out_buffer = new Uint32Array(2)) {
20638
- return Uint644.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
20864
+ return _Uint64.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
20639
20865
  }
20640
20866
  /** @nocollapse */
20641
20867
  static fromNumber(num, out_buffer = new Uint32Array(2)) {
20642
- return Uint644.fromString(num.toString(), out_buffer);
20868
+ return _Uint64.fromString(num.toString(), out_buffer);
20643
20869
  }
20644
20870
  /** @nocollapse */
20645
20871
  static fromString(str, out_buffer = new Uint32Array(2)) {
20646
20872
  const length2 = str.length;
20647
- const out = new Uint644(out_buffer);
20873
+ const out = new _Uint64(out_buffer);
20648
20874
  for (let posn = 0; posn < length2; ) {
20649
20875
  const group = kInt32DecimalDigits2 < length2 - posn ? kInt32DecimalDigits2 : length2 - posn;
20650
- const chunk = new Uint644(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
20651
- const multiple = new Uint644(new Uint32Array([kPowersOfTen2[group], 0]));
20876
+ const chunk = new _Uint64(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
20877
+ const multiple = new _Uint64(new Uint32Array([kPowersOfTen2[group], 0]));
20652
20878
  out.times(multiple);
20653
20879
  out.plus(chunk);
20654
20880
  posn += group;
@@ -20659,22 +20885,22 @@ var Uint644 = class extends BaseInt642 {
20659
20885
  static convertArray(values) {
20660
20886
  const data = new Uint32Array(values.length * 2);
20661
20887
  for (let i2 = -1, n = values.length; ++i2 < n; ) {
20662
- Uint644.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 2 * i2 * 4, 2));
20888
+ _Uint64.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 2 * i2 * 4, 2));
20663
20889
  }
20664
20890
  return data;
20665
20891
  }
20666
20892
  /** @nocollapse */
20667
20893
  static multiply(left, right) {
20668
- const rtrn = new Uint644(new Uint32Array(left.buffer));
20894
+ const rtrn = new _Uint64(new Uint32Array(left.buffer));
20669
20895
  return rtrn.times(right);
20670
20896
  }
20671
20897
  /** @nocollapse */
20672
20898
  static add(left, right) {
20673
- const rtrn = new Uint644(new Uint32Array(left.buffer));
20899
+ const rtrn = new _Uint64(new Uint32Array(left.buffer));
20674
20900
  return rtrn.plus(right);
20675
20901
  }
20676
20902
  };
20677
- var Int644 = class extends BaseInt642 {
20903
+ var Int644 = class _Int64 extends BaseInt642 {
20678
20904
  negate() {
20679
20905
  this.buffer[0] = ~this.buffer[0] + 1;
20680
20906
  this.buffer[1] = ~this.buffer[1];
@@ -20698,21 +20924,21 @@ var Int644 = class extends BaseInt642 {
20698
20924
  }
20699
20925
  /** @nocollapse */
20700
20926
  static from(val, out_buffer = new Uint32Array(2)) {
20701
- return Int644.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
20927
+ return _Int64.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
20702
20928
  }
20703
20929
  /** @nocollapse */
20704
20930
  static fromNumber(num, out_buffer = new Uint32Array(2)) {
20705
- return Int644.fromString(num.toString(), out_buffer);
20931
+ return _Int64.fromString(num.toString(), out_buffer);
20706
20932
  }
20707
20933
  /** @nocollapse */
20708
20934
  static fromString(str, out_buffer = new Uint32Array(2)) {
20709
20935
  const negate = str.startsWith("-");
20710
20936
  const length2 = str.length;
20711
- const out = new Int644(out_buffer);
20937
+ const out = new _Int64(out_buffer);
20712
20938
  for (let posn = negate ? 1 : 0; posn < length2; ) {
20713
20939
  const group = kInt32DecimalDigits2 < length2 - posn ? kInt32DecimalDigits2 : length2 - posn;
20714
- const chunk = new Int644(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
20715
- const multiple = new Int644(new Uint32Array([kPowersOfTen2[group], 0]));
20940
+ const chunk = new _Int64(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0]));
20941
+ const multiple = new _Int64(new Uint32Array([kPowersOfTen2[group], 0]));
20716
20942
  out.times(multiple);
20717
20943
  out.plus(chunk);
20718
20944
  posn += group;
@@ -20723,22 +20949,22 @@ var Int644 = class extends BaseInt642 {
20723
20949
  static convertArray(values) {
20724
20950
  const data = new Uint32Array(values.length * 2);
20725
20951
  for (let i2 = -1, n = values.length; ++i2 < n; ) {
20726
- Int644.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 2 * i2 * 4, 2));
20952
+ _Int64.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 2 * i2 * 4, 2));
20727
20953
  }
20728
20954
  return data;
20729
20955
  }
20730
20956
  /** @nocollapse */
20731
20957
  static multiply(left, right) {
20732
- const rtrn = new Int644(new Uint32Array(left.buffer));
20958
+ const rtrn = new _Int64(new Uint32Array(left.buffer));
20733
20959
  return rtrn.times(right);
20734
20960
  }
20735
20961
  /** @nocollapse */
20736
20962
  static add(left, right) {
20737
- const rtrn = new Int644(new Uint32Array(left.buffer));
20963
+ const rtrn = new _Int64(new Uint32Array(left.buffer));
20738
20964
  return rtrn.plus(right);
20739
20965
  }
20740
20966
  };
20741
- var Int1282 = class {
20967
+ var Int1282 = class _Int128 {
20742
20968
  constructor(buffer) {
20743
20969
  this.buffer = buffer;
20744
20970
  }
@@ -20814,31 +21040,31 @@ var Int1282 = class {
20814
21040
  }
20815
21041
  /** @nocollapse */
20816
21042
  static multiply(left, right) {
20817
- const rtrn = new Int1282(new Uint32Array(left.buffer));
21043
+ const rtrn = new _Int128(new Uint32Array(left.buffer));
20818
21044
  return rtrn.times(right);
20819
21045
  }
20820
21046
  /** @nocollapse */
20821
21047
  static add(left, right) {
20822
- const rtrn = new Int1282(new Uint32Array(left.buffer));
21048
+ const rtrn = new _Int128(new Uint32Array(left.buffer));
20823
21049
  return rtrn.plus(right);
20824
21050
  }
20825
21051
  /** @nocollapse */
20826
21052
  static from(val, out_buffer = new Uint32Array(4)) {
20827
- return Int1282.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
21053
+ return _Int128.fromString(typeof val === "string" ? val : val.toString(), out_buffer);
20828
21054
  }
20829
21055
  /** @nocollapse */
20830
21056
  static fromNumber(num, out_buffer = new Uint32Array(4)) {
20831
- return Int1282.fromString(num.toString(), out_buffer);
21057
+ return _Int128.fromString(num.toString(), out_buffer);
20832
21058
  }
20833
21059
  /** @nocollapse */
20834
21060
  static fromString(str, out_buffer = new Uint32Array(4)) {
20835
21061
  const negate = str.startsWith("-");
20836
21062
  const length2 = str.length;
20837
- const out = new Int1282(out_buffer);
21063
+ const out = new _Int128(out_buffer);
20838
21064
  for (let posn = negate ? 1 : 0; posn < length2; ) {
20839
21065
  const group = kInt32DecimalDigits2 < length2 - posn ? kInt32DecimalDigits2 : length2 - posn;
20840
- const chunk = new Int1282(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0, 0, 0]));
20841
- const multiple = new Int1282(new Uint32Array([kPowersOfTen2[group], 0, 0, 0]));
21066
+ const chunk = new _Int128(new Uint32Array([Number.parseInt(str.slice(posn, posn + group), 10), 0, 0, 0]));
21067
+ const multiple = new _Int128(new Uint32Array([kPowersOfTen2[group], 0, 0, 0]));
20842
21068
  out.times(multiple);
20843
21069
  out.plus(chunk);
20844
21070
  posn += group;
@@ -20849,7 +21075,7 @@ var Int1282 = class {
20849
21075
  static convertArray(values) {
20850
21076
  const data = new Uint32Array(values.length * 4);
20851
21077
  for (let i2 = -1, n = values.length; ++i2 < n; ) {
20852
- Int1282.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 4 * 4 * i2, 4));
21078
+ _Int128.from(values[i2], new Uint32Array(data.buffer, data.byteOffset + 4 * 4 * i2, 4));
20853
21079
  }
20854
21080
  return data;
20855
21081
  }
@@ -21753,7 +21979,7 @@ function distributeChildren2(fields, batchLength, children, columns, memo) {
21753
21979
 
21754
21980
  // ../../node_modules/apache-arrow/table.mjs
21755
21981
  var _a7;
21756
- var Table2 = class {
21982
+ var Table2 = class _Table {
21757
21983
  constructor(...args) {
21758
21984
  var _b3, _c3;
21759
21985
  if (args.length === 0) {
@@ -21774,7 +22000,7 @@ var Table2 = class {
21774
22000
  if (x2) {
21775
22001
  if (x2 instanceof RecordBatch4) {
21776
22002
  return [x2];
21777
- } else if (x2 instanceof Table2) {
22003
+ } else if (x2 instanceof _Table) {
21778
22004
  return x2.batches;
21779
22005
  } else if (x2 instanceof Data2) {
21780
22006
  if (x2.type instanceof Struct2) {
@@ -21919,7 +22145,7 @@ var Table2 = class {
21919
22145
  concat(...others) {
21920
22146
  const schema = this.schema;
21921
22147
  const data = this.data.concat(others.flatMap(({ data: data2 }) => data2));
21922
- return new Table2(schema, data.map((data2) => new RecordBatch4(schema, data2)));
22148
+ return new _Table(schema, data.map((data2) => new RecordBatch4(schema, data2)));
21923
22149
  }
21924
22150
  /**
21925
22151
  * Return a zero-copy sub-section of this Table.
@@ -21931,7 +22157,7 @@ var Table2 = class {
21931
22157
  const schema = this.schema;
21932
22158
  [begin, end] = clampRange2({ length: this.numRows }, begin, end);
21933
22159
  const data = sliceChunks2(this.data, this._offsets, begin, end);
21934
- return new Table2(schema, data.map((chunk) => new RecordBatch4(schema, chunk)));
22160
+ return new _Table(schema, data.map((chunk) => new RecordBatch4(schema, chunk)));
21935
22161
  }
21936
22162
  /**
21937
22163
  * Returns a child Vector by name, or null if this Vector has no child with the given name.
@@ -21981,7 +22207,7 @@ var Table2 = class {
21981
22207
  [fields[index], children[index]] = [field, child];
21982
22208
  [schema, batches] = distributeVectorsIntoRecordBatches2(schema, children);
21983
22209
  }
21984
- return new Table2(schema, batches);
22210
+ return new _Table(schema, batches);
21985
22211
  }
21986
22212
  /**
21987
22213
  * Construct a new Table containing only specified columns.
@@ -22002,7 +22228,7 @@ var Table2 = class {
22002
22228
  selectAt(columnIndices) {
22003
22229
  const schema = this.schema.selectAt(columnIndices);
22004
22230
  const data = this.batches.map((batch) => batch.selectAt(columnIndices));
22005
- return new Table2(schema, data);
22231
+ return new _Table(schema, data);
22006
22232
  }
22007
22233
  assign(other) {
22008
22234
  const fields = this.schema.fields;
@@ -22017,7 +22243,7 @@ var Table2 = class {
22017
22243
  ...fields.map((_2, i2) => [i2, oldToNew[i2]]).map(([i2, j2]) => j2 === void 0 ? this.getChildAt(i2) : other.getChildAt(j2)),
22018
22244
  ...indices.map((i2) => other.getChildAt(i2))
22019
22245
  ].filter(Boolean);
22020
- return new Table2(...distributeVectorsIntoRecordBatches2(schema, columns));
22246
+ return new _Table(...distributeVectorsIntoRecordBatches2(schema, columns));
22021
22247
  }
22022
22248
  };
22023
22249
  _a7 = Symbol.toStringTag;
@@ -22037,7 +22263,7 @@ Table2[_a7] = ((proto) => {
22037
22263
 
22038
22264
  // ../../node_modules/apache-arrow/recordbatch.mjs
22039
22265
  var _a8;
22040
- var RecordBatch4 = class {
22266
+ var RecordBatch4 = class _RecordBatch {
22041
22267
  constructor(...args) {
22042
22268
  switch (args.length) {
22043
22269
  case 2: {
@@ -22165,7 +22391,7 @@ var RecordBatch4 = class {
22165
22391
  */
22166
22392
  slice(begin, end) {
22167
22393
  const [slice] = new Vector2([this.data]).slice(begin, end).data;
22168
- return new RecordBatch4(this.schema, slice);
22394
+ return new _RecordBatch(this.schema, slice);
22169
22395
  }
22170
22396
  /**
22171
22397
  * Returns a child Vector by name, or null if this Vector has no child with the given name.
@@ -22208,7 +22434,7 @@ var RecordBatch4 = class {
22208
22434
  schema = new Schema4(fields, new Map(this.schema.metadata));
22209
22435
  data = makeData2({ type: new Struct2(fields), children });
22210
22436
  }
22211
- return new RecordBatch4(schema, data);
22437
+ return new _RecordBatch(schema, data);
22212
22438
  }
22213
22439
  /**
22214
22440
  * Construct a new RecordBatch containing only specified columns.
@@ -22226,7 +22452,7 @@ var RecordBatch4 = class {
22226
22452
  children[index] = this.data.children[index];
22227
22453
  }
22228
22454
  }
22229
- return new RecordBatch4(schema, makeData2({ type, length: this.numRows, children }));
22455
+ return new _RecordBatch(schema, makeData2({ type, length: this.numRows, children }));
22230
22456
  }
22231
22457
  /**
22232
22458
  * Construct a new RecordBatch containing only columns at the specified indices.
@@ -22238,7 +22464,7 @@ var RecordBatch4 = class {
22238
22464
  const schema = this.schema.selectAt(columnIndices);
22239
22465
  const children = columnIndices.map((i2) => this.data.children[i2]).filter(Boolean);
22240
22466
  const subset = makeData2({ type: new Struct2(schema.fields), length: this.numRows, children });
22241
- return new RecordBatch4(schema, subset);
22467
+ return new _RecordBatch(schema, subset);
22242
22468
  }
22243
22469
  };
22244
22470
  _a8 = Symbol.toStringTag;
@@ -22311,7 +22537,7 @@ var CompressionType2;
22311
22537
  })(CompressionType2 || (CompressionType2 = {}));
22312
22538
 
22313
22539
  // ../../node_modules/apache-arrow/fb/body-compression.mjs
22314
- var BodyCompression2 = class {
22540
+ var BodyCompression2 = class _BodyCompression {
22315
22541
  constructor() {
22316
22542
  this.bb = null;
22317
22543
  this.bb_pos = 0;
@@ -22322,11 +22548,11 @@ var BodyCompression2 = class {
22322
22548
  return this;
22323
22549
  }
22324
22550
  static getRootAsBodyCompression(bb, obj) {
22325
- return (obj || new BodyCompression2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22551
+ return (obj || new _BodyCompression()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22326
22552
  }
22327
22553
  static getSizePrefixedRootAsBodyCompression(bb, obj) {
22328
22554
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
22329
- return (obj || new BodyCompression2()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22555
+ return (obj || new _BodyCompression()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22330
22556
  }
22331
22557
  /**
22332
22558
  * Compressor library.
@@ -22357,10 +22583,10 @@ var BodyCompression2 = class {
22357
22583
  return offset;
22358
22584
  }
22359
22585
  static createBodyCompression(builder, codec, method) {
22360
- BodyCompression2.startBodyCompression(builder);
22361
- BodyCompression2.addCodec(builder, codec);
22362
- BodyCompression2.addMethod(builder, method);
22363
- return BodyCompression2.endBodyCompression(builder);
22586
+ _BodyCompression.startBodyCompression(builder);
22587
+ _BodyCompression.addCodec(builder, codec);
22588
+ _BodyCompression.addMethod(builder, method);
22589
+ return _BodyCompression.endBodyCompression(builder);
22364
22590
  }
22365
22591
  };
22366
22592
 
@@ -22441,7 +22667,7 @@ var FieldNode3 = class {
22441
22667
  };
22442
22668
 
22443
22669
  // ../../node_modules/apache-arrow/fb/record-batch.mjs
22444
- var RecordBatch5 = class {
22670
+ var RecordBatch5 = class _RecordBatch {
22445
22671
  constructor() {
22446
22672
  this.bb = null;
22447
22673
  this.bb_pos = 0;
@@ -22452,11 +22678,11 @@ var RecordBatch5 = class {
22452
22678
  return this;
22453
22679
  }
22454
22680
  static getRootAsRecordBatch(bb, obj) {
22455
- return (obj || new RecordBatch5()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22681
+ return (obj || new _RecordBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22456
22682
  }
22457
22683
  static getSizePrefixedRootAsRecordBatch(bb, obj) {
22458
22684
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
22459
- return (obj || new RecordBatch5()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22685
+ return (obj || new _RecordBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22460
22686
  }
22461
22687
  /**
22462
22688
  * number of records / rows. The arrays in the batch should all have this
@@ -22528,7 +22754,7 @@ var RecordBatch5 = class {
22528
22754
  };
22529
22755
 
22530
22756
  // ../../node_modules/apache-arrow/fb/dictionary-batch.mjs
22531
- var DictionaryBatch3 = class {
22757
+ var DictionaryBatch3 = class _DictionaryBatch {
22532
22758
  constructor() {
22533
22759
  this.bb = null;
22534
22760
  this.bb_pos = 0;
@@ -22539,11 +22765,11 @@ var DictionaryBatch3 = class {
22539
22765
  return this;
22540
22766
  }
22541
22767
  static getRootAsDictionaryBatch(bb, obj) {
22542
- return (obj || new DictionaryBatch3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22768
+ return (obj || new _DictionaryBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22543
22769
  }
22544
22770
  static getSizePrefixedRootAsDictionaryBatch(bb, obj) {
22545
22771
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
22546
- return (obj || new DictionaryBatch3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22772
+ return (obj || new _DictionaryBatch()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22547
22773
  }
22548
22774
  id() {
22549
22775
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -22592,7 +22818,7 @@ var MessageHeader4;
22592
22818
  })(MessageHeader4 || (MessageHeader4 = {}));
22593
22819
 
22594
22820
  // ../../node_modules/apache-arrow/fb/message.mjs
22595
- var Message3 = class {
22821
+ var Message3 = class _Message {
22596
22822
  constructor() {
22597
22823
  this.bb = null;
22598
22824
  this.bb_pos = 0;
@@ -22603,11 +22829,11 @@ var Message3 = class {
22603
22829
  return this;
22604
22830
  }
22605
22831
  static getRootAsMessage(bb, obj) {
22606
- return (obj || new Message3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22832
+ return (obj || new _Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22607
22833
  }
22608
22834
  static getSizePrefixedRootAsMessage(bb, obj) {
22609
22835
  bb.setPosition(bb.position() + SIZE_PREFIX_LENGTH2);
22610
- return (obj || new Message3()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22836
+ return (obj || new _Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22611
22837
  }
22612
22838
  version() {
22613
22839
  const offset = this.bb.__offset(this.bb_pos, 4);
@@ -22673,13 +22899,13 @@ var Message3 = class {
22673
22899
  builder.finish(offset, void 0, true);
22674
22900
  }
22675
22901
  static createMessage(builder, version, headerType, headerOffset, bodyLength, customMetadataOffset) {
22676
- Message3.startMessage(builder);
22677
- Message3.addVersion(builder, version);
22678
- Message3.addHeaderType(builder, headerType);
22679
- Message3.addHeader(builder, headerOffset);
22680
- Message3.addBodyLength(builder, bodyLength);
22681
- Message3.addCustomMetadata(builder, customMetadataOffset);
22682
- return Message3.endMessage(builder);
22902
+ _Message.startMessage(builder);
22903
+ _Message.addVersion(builder, version);
22904
+ _Message.addHeaderType(builder, headerType);
22905
+ _Message.addHeader(builder, headerOffset);
22906
+ _Message.addBodyLength(builder, bodyLength);
22907
+ _Message.addCustomMetadata(builder, customMetadataOffset);
22908
+ return _Message.endMessage(builder);
22683
22909
  }
22684
22910
  };
22685
22911
 
@@ -22930,7 +23156,7 @@ function typeFromJSON2(f2, children) {
22930
23156
  var Long4 = Long;
22931
23157
  var Builder8 = Builder6;
22932
23158
  var ByteBuffer6 = ByteBuffer4;
22933
- var Message4 = class {
23159
+ var Message4 = class _Message {
22934
23160
  constructor(bodyLength, version, headerType, header) {
22935
23161
  this._version = version;
22936
23162
  this._headerType = headerType;
@@ -22940,7 +23166,7 @@ var Message4 = class {
22940
23166
  }
22941
23167
  /** @nocollapse */
22942
23168
  static fromJSON(msg, headerType) {
22943
- const message = new Message4(0, MetadataVersion3.V4, headerType);
23169
+ const message = new _Message(0, MetadataVersion3.V4, headerType);
22944
23170
  message._createHeader = messageHeaderFromJSON2(msg, headerType);
22945
23171
  return message;
22946
23172
  }
@@ -22951,7 +23177,7 @@ var Message4 = class {
22951
23177
  const bodyLength = _message.bodyLength();
22952
23178
  const version = _message.version();
22953
23179
  const headerType = _message.headerType();
22954
- const message = new Message4(bodyLength, version, headerType);
23180
+ const message = new _Message(bodyLength, version, headerType);
22955
23181
  message._createHeader = decodeMessageHeader2(_message, headerType);
22956
23182
  return message;
22957
23183
  }
@@ -22977,13 +23203,13 @@ var Message4 = class {
22977
23203
  /** @nocollapse */
22978
23204
  static from(header, bodyLength = 0) {
22979
23205
  if (header instanceof Schema4) {
22980
- return new Message4(0, MetadataVersion3.V4, MessageHeader3.Schema, header);
23206
+ return new _Message(0, MetadataVersion3.V4, MessageHeader3.Schema, header);
22981
23207
  }
22982
23208
  if (header instanceof RecordBatch6) {
22983
- return new Message4(bodyLength, MetadataVersion3.V4, MessageHeader3.RecordBatch, header);
23209
+ return new _Message(bodyLength, MetadataVersion3.V4, MessageHeader3.RecordBatch, header);
22984
23210
  }
22985
23211
  if (header instanceof DictionaryBatch4) {
22986
- return new Message4(bodyLength, MetadataVersion3.V4, MessageHeader3.DictionaryBatch, header);
23212
+ return new _Message(bodyLength, MetadataVersion3.V4, MessageHeader3.DictionaryBatch, header);
22987
23213
  }
22988
23214
  throw new Error(`Unrecognized Message header: ${header}`);
22989
23215
  }
@@ -23627,7 +23853,7 @@ var magicAndPadding2 = magicLength2 + PADDING2;
23627
23853
  var magicX2AndPadding2 = magicLength2 * 2 + PADDING2;
23628
23854
 
23629
23855
  // ../../node_modules/apache-arrow/ipc/reader.mjs
23630
- var RecordBatchReader2 = class extends ReadableInterop2 {
23856
+ var RecordBatchReader2 = class _RecordBatchReader extends ReadableInterop2 {
23631
23857
  constructor(impl) {
23632
23858
  super();
23633
23859
  this._impl = impl;
@@ -23713,7 +23939,7 @@ var RecordBatchReader2 = class extends ReadableInterop2 {
23713
23939
  }
23714
23940
  /** @nocollapse */
23715
23941
  static from(source) {
23716
- if (source instanceof RecordBatchReader2) {
23942
+ if (source instanceof _RecordBatchReader) {
23717
23943
  return source;
23718
23944
  } else if (isArrowJSON2(source)) {
23719
23945
  return fromArrowJSON2(source);
@@ -23721,7 +23947,7 @@ var RecordBatchReader2 = class extends ReadableInterop2 {
23721
23947
  return fromFileHandle2(source);
23722
23948
  } else if (isPromise2(source)) {
23723
23949
  return (() => __awaiter(this, void 0, void 0, function* () {
23724
- return yield RecordBatchReader2.from(yield source);
23950
+ return yield _RecordBatchReader.from(yield source);
23725
23951
  }))();
23726
23952
  } else if (isFetchResponse2(source) || isReadableDOMStream2(source) || isReadableNodeStream2(source) || isAsyncIterable2(source)) {
23727
23953
  return fromAsyncByteStream2(new AsyncByteStream2(source));
@@ -23730,7 +23956,7 @@ var RecordBatchReader2 = class extends ReadableInterop2 {
23730
23956
  }
23731
23957
  /** @nocollapse */
23732
23958
  static readAll(source) {
23733
- if (source instanceof RecordBatchReader2) {
23959
+ if (source instanceof _RecordBatchReader) {
23734
23960
  return source.isSync() ? readAllSync2(source) : readAllAsync2(source);
23735
23961
  } else if (isArrowJSON2(source) || ArrayBuffer.isView(source) || isIterable2(source) || isIteratorResult2(source)) {
23736
23962
  return readAllSync2(source);
@@ -24238,7 +24464,7 @@ function fromArrowJSON2(source) {
24238
24464
  }
24239
24465
  function fromByteStream2(source) {
24240
24466
  const bytes = source.peek(magicLength2 + 7 & ~7);
24241
- return bytes && bytes.byteLength >= 4 ? !checkForMagicArrowString2(bytes) ? new RecordBatchStreamReader2(new RecordBatchStreamReaderImpl2(source)) : new RecordBatchFileReader2(new RecordBatchFileReaderImpl2(source.read())) : new RecordBatchStreamReader2(new RecordBatchStreamReaderImpl2(function* () {
24467
+ return bytes && bytes.byteLength >= 4 ? !checkForMagicArrowString2(bytes) ? new RecordBatchStreamReader2(new RecordBatchStreamReaderImpl2(source)) : new RecordBatchFileReader2(new RecordBatchFileReaderImpl2(source.read())) : new RecordBatchStreamReader2(new RecordBatchStreamReaderImpl2(/* @__PURE__ */ function* () {
24242
24468
  }()));
24243
24469
  }
24244
24470
  function fromAsyncByteStream2(source) {
@@ -24262,7 +24488,7 @@ function fromFileHandle2(source) {
24262
24488
  }
24263
24489
 
24264
24490
  // ../../node_modules/apache-arrow/visitor/vectorassembler.mjs
24265
- var VectorAssembler2 = class extends Visitor2 {
24491
+ var VectorAssembler2 = class _VectorAssembler extends Visitor2 {
24266
24492
  constructor() {
24267
24493
  super();
24268
24494
  this._byteLength = 0;
@@ -24273,7 +24499,7 @@ var VectorAssembler2 = class extends Visitor2 {
24273
24499
  /** @nocollapse */
24274
24500
  static assemble(...args) {
24275
24501
  const unwrap = (nodes) => nodes.flatMap((node) => Array.isArray(node) ? unwrap(node) : node instanceof RecordBatch4 ? node.data.children : node.data);
24276
- const assembler = new VectorAssembler2();
24502
+ const assembler = new _VectorAssembler();
24277
24503
  assembler.visitMany(unwrap(args));
24278
24504
  return assembler;
24279
24505
  }
@@ -24604,10 +24830,10 @@ var RecordBatchWriter2 = class extends ReadableInterop2 {
24604
24830
  return this;
24605
24831
  }
24606
24832
  };
24607
- var RecordBatchStreamWriter2 = class extends RecordBatchWriter2 {
24833
+ var RecordBatchStreamWriter2 = class _RecordBatchStreamWriter extends RecordBatchWriter2 {
24608
24834
  /** @nocollapse */
24609
24835
  static writeAll(input, options) {
24610
- const writer = new RecordBatchStreamWriter2(options);
24836
+ const writer = new _RecordBatchStreamWriter(options);
24611
24837
  if (isPromise2(input)) {
24612
24838
  return input.then((x2) => writer.writeAll(x2));
24613
24839
  } else if (isAsyncIterable2(input)) {
@@ -24616,10 +24842,10 @@ var RecordBatchStreamWriter2 = class extends RecordBatchWriter2 {
24616
24842
  return writeAll2(writer, input);
24617
24843
  }
24618
24844
  };
24619
- var RecordBatchFileWriter2 = class extends RecordBatchWriter2 {
24845
+ var RecordBatchFileWriter2 = class _RecordBatchFileWriter extends RecordBatchWriter2 {
24620
24846
  /** @nocollapse */
24621
24847
  static writeAll(input) {
24622
- const writer = new RecordBatchFileWriter2();
24848
+ const writer = new _RecordBatchFileWriter();
24623
24849
  if (isPromise2(input)) {
24624
24850
  return input.then((x2) => writer.writeAll(x2));
24625
24851
  } else if (isAsyncIterable2(input)) {
@@ -24950,23 +25176,24 @@ var V = Object.prototype.hasOwnProperty;
24950
25176
  var z = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports);
24951
25177
  var J = (s, e, r, t) => {
24952
25178
  if (e && typeof e == "object" || typeof e == "function")
24953
- for (let o of j(e))
24954
- !V.call(s, o) && o !== r && N(s, o, { get: () => e[o], enumerable: !(t = H(e, o)) || t.enumerable });
25179
+ for (let n of j(e))
25180
+ !V.call(s, n) && n !== r && N(s, n, { get: () => e[n], enumerable: !(t = H(e, n)) || t.enumerable });
24955
25181
  return s;
24956
25182
  };
24957
25183
  var $ = (s, e, r) => (r = s != null ? Y(K(s)) : {}, J(e || !s || !s.__esModule ? N(r, "default", { value: s, enumerable: true }) : r, s));
24958
- var x = z((Be, G) => {
25184
+ var x = z((xe, G) => {
24959
25185
  G.exports = Worker;
24960
25186
  });
24961
- var Z = ((c) => (c[c.NONE = 0] = "NONE", c[c.DEBUG = 1] = "DEBUG", c[c.INFO = 2] = "INFO", c[c.WARNING = 3] = "WARNING", c[c.ERROR = 4] = "ERROR", c))(Z || {});
24962
- var X = ((n) => (n[n.NONE = 0] = "NONE", n[n.CONNECT = 1] = "CONNECT", n[n.DISCONNECT = 2] = "DISCONNECT", n[n.OPEN = 3] = "OPEN", n[n.QUERY = 4] = "QUERY", n[n.INSTANTIATE = 5] = "INSTANTIATE", n))(X || {});
24963
- var ee = ((n) => (n[n.NONE = 0] = "NONE", n[n.OK = 1] = "OK", n[n.ERROR = 2] = "ERROR", n[n.START = 3] = "START", n[n.RUN = 4] = "RUN", n[n.CAPTURE = 5] = "CAPTURE", n))(ee || {});
24964
- var re = ((c) => (c[c.NONE = 0] = "NONE", c[c.WEB_WORKER = 1] = "WEB_WORKER", c[c.NODE_WORKER = 2] = "NODE_WORKER", c[c.BINDINGS = 3] = "BINDINGS", c[c.ASYNC_DUCKDB = 4] = "ASYNC_DUCKDB", c))(re || {});
25187
+ var Z = ((n) => (n[n.UNDEFINED = 0] = "UNDEFINED", n[n.AUTOMATIC = 1] = "AUTOMATIC", n[n.READ_ONLY = 2] = "READ_ONLY", n[n.READ_WRITE = 3] = "READ_WRITE", n))(Z || {});
25188
+ var X = ((c) => (c[c.NONE = 0] = "NONE", c[c.DEBUG = 1] = "DEBUG", c[c.INFO = 2] = "INFO", c[c.WARNING = 3] = "WARNING", c[c.ERROR = 4] = "ERROR", c))(X || {});
25189
+ var ee = ((o) => (o[o.NONE = 0] = "NONE", o[o.CONNECT = 1] = "CONNECT", o[o.DISCONNECT = 2] = "DISCONNECT", o[o.OPEN = 3] = "OPEN", o[o.QUERY = 4] = "QUERY", o[o.INSTANTIATE = 5] = "INSTANTIATE", o))(ee || {});
25190
+ var re = ((o) => (o[o.NONE = 0] = "NONE", o[o.OK = 1] = "OK", o[o.ERROR = 2] = "ERROR", o[o.START = 3] = "START", o[o.RUN = 4] = "RUN", o[o.CAPTURE = 5] = "CAPTURE", o))(re || {});
25191
+ var te = ((c) => (c[c.NONE = 0] = "NONE", c[c.WEB_WORKER = 1] = "WEB_WORKER", c[c.NODE_WORKER = 2] = "NODE_WORKER", c[c.BINDINGS = 3] = "BINDINGS", c[c.ASYNC_DUCKDB = 4] = "ASYNC_DUCKDB", c))(te || {});
24965
25192
  var A = class {
24966
25193
  log(e) {
24967
25194
  }
24968
25195
  };
24969
- var L = class {
25196
+ var P = class {
24970
25197
  constructor(e = 2) {
24971
25198
  this.level = e;
24972
25199
  }
@@ -24974,7 +25201,7 @@ var L = class {
24974
25201
  e.level >= this.level && console.log(e);
24975
25202
  }
24976
25203
  };
24977
- var te = ((e) => (e[e.SUCCESS = 0] = "SUCCESS", e))(te || {});
25204
+ var se = ((e) => (e[e.SUCCESS = 0] = "SUCCESS", e))(se || {});
24978
25205
  var E = class {
24979
25206
  constructor(e, r) {
24980
25207
  this._bindings = e, this._conn = r;
@@ -24998,8 +25225,8 @@ var E = class {
24998
25225
  let r = await this._bindings.startPendingQuery(this._conn, e);
24999
25226
  for (; r == null; )
25000
25227
  r = await this._bindings.pollPendingQuery(this._conn);
25001
- let t = new p(this._bindings, this._conn, r), o = await RecordBatchReader2.from(t);
25002
- return console.assert(o.isAsync()), console.assert(o.isStream()), o;
25228
+ let t = new p(this._bindings, this._conn, r), n = await RecordBatchReader2.from(t);
25229
+ return console.assert(n.isAsync()), console.assert(n.isStream()), n;
25003
25230
  }
25004
25231
  async cancelSent() {
25005
25232
  return await this._bindings.cancelPendingQuery(this._conn);
@@ -25056,24 +25283,24 @@ var b = class {
25056
25283
  return console.assert(t.isSync()), console.assert(t.isFile()), new Table2(t);
25057
25284
  }
25058
25285
  async send(...e) {
25059
- let r = await this.bindings.sendPrepared(this.connectionId, this.statementId, e), t = new p(this.bindings, this.connectionId, r), o = await RecordBatchReader2.from(t);
25060
- return console.assert(o.isAsync()), console.assert(o.isStream()), o;
25286
+ let r = await this.bindings.sendPrepared(this.connectionId, this.statementId, e), t = new p(this.bindings, this.connectionId, r), n = await RecordBatchReader2.from(t);
25287
+ return console.assert(n.isAsync()), console.assert(n.isStream()), n;
25061
25288
  }
25062
25289
  };
25063
- var P = ((d) => (d.CANCEL_PENDING_QUERY = "CANCEL_PENDING_QUERY", d.CLOSE_PREPARED = "CLOSE_PREPARED", d.COLLECT_FILE_STATISTICS = "COLLECT_FILE_STATISTICS", d.CONNECT = "CONNECT", d.COPY_FILE_TO_BUFFER = "COPY_FILE_TO_BUFFER", d.COPY_FILE_TO_PATH = "COPY_FILE_TO_PATH", d.CREATE_PREPARED = "CREATE_PREPARED", d.DISCONNECT = "DISCONNECT", d.DROP_FILE = "DROP_FILE", d.DROP_FILES = "DROP_FILES", d.EXPORT_FILE_STATISTICS = "EXPORT_FILE_STATISTICS", d.FETCH_QUERY_RESULTS = "FETCH_QUERY_RESULTS", d.FLUSH_FILES = "FLUSH_FILES", d.GET_FEATURE_FLAGS = "GET_FEATURE_FLAGS", d.GET_TABLE_NAMES = "GET_TABLE_NAMES", d.GET_VERSION = "GET_VERSION", d.GLOB_FILE_INFOS = "GLOB_FILE_INFOS", d.INSERT_ARROW_FROM_IPC_STREAM = "INSERT_ARROW_FROM_IPC_STREAM", d.INSERT_CSV_FROM_PATH = "IMPORT_CSV_FROM_PATH", d.INSERT_JSON_FROM_PATH = "IMPORT_JSON_FROM_PATH", d.INSTANTIATE = "INSTANTIATE", d.OPEN = "OPEN", d.PING = "PING", d.POLL_PENDING_QUERY = "POLL_PENDING_QUERY", d.REGISTER_FILE_BUFFER = "REGISTER_FILE_BUFFER", d.REGISTER_FILE_HANDLE = "REGISTER_FILE_HANDLE", d.REGISTER_FILE_URL = "REGISTER_FILE_URL", d.RESET = "RESET", d.RUN_PREPARED = "RUN_PREPARED", d.RUN_QUERY = "RUN_QUERY", d.SEND_PREPARED = "SEND_PREPARED", d.START_PENDING_QUERY = "START_PENDING_QUERY", d.TOKENIZE = "TOKENIZE", d))(P || {});
25064
- var w = ((u) => (u.CONNECTION_INFO = "CONNECTION_INFO", u.ERROR = "ERROR", u.FEATURE_FLAGS = "FEATURE_FLAGS", u.FILE_BUFFER = "FILE_BUFFER", u.FILE_INFOS = "FILE_INFOS", u.FILE_SIZE = "FILE_SIZE", u.FILE_STATISTICS = "FILE_STATISTICS", u.INSTANTIATE_PROGRESS = "INSTANTIATE_PROGRESS", u.LOG = "LOG", u.OK = "OK", u.PREPARED_STATEMENT_ID = "PREPARED_STATEMENT_ID", u.QUERY_PLAN = "QUERY_PLAN", u.QUERY_RESULT = "QUERY_RESULT", u.QUERY_RESULT_CHUNK = "QUERY_RESULT_CHUNK", u.QUERY_RESULT_HEADER = "QUERY_RESULT_HEADER", u.QUERY_RESULT_HEADER_OR_NULL = "QUERY_RESULT_HEADER_OR_NULL", u.REGISTERED_FILE = "REGISTERED_FILE", u.SCRIPT_TOKENS = "SCRIPT_TOKENS", u.SUCCESS = "SUCCESS", u.TABLE_NAMES = "TABLE_NAMES", u.VERSION_STRING = "VERSION_STRING", u))(w || {});
25290
+ var L = ((d) => (d.CANCEL_PENDING_QUERY = "CANCEL_PENDING_QUERY", d.CLOSE_PREPARED = "CLOSE_PREPARED", d.COLLECT_FILE_STATISTICS = "COLLECT_FILE_STATISTICS", d.CONNECT = "CONNECT", d.COPY_FILE_TO_BUFFER = "COPY_FILE_TO_BUFFER", d.COPY_FILE_TO_PATH = "COPY_FILE_TO_PATH", d.CREATE_PREPARED = "CREATE_PREPARED", d.DISCONNECT = "DISCONNECT", d.DROP_FILE = "DROP_FILE", d.DROP_FILES = "DROP_FILES", d.EXPORT_FILE_STATISTICS = "EXPORT_FILE_STATISTICS", d.FETCH_QUERY_RESULTS = "FETCH_QUERY_RESULTS", d.FLUSH_FILES = "FLUSH_FILES", d.GET_FEATURE_FLAGS = "GET_FEATURE_FLAGS", d.GET_TABLE_NAMES = "GET_TABLE_NAMES", d.GET_VERSION = "GET_VERSION", d.GLOB_FILE_INFOS = "GLOB_FILE_INFOS", d.INSERT_ARROW_FROM_IPC_STREAM = "INSERT_ARROW_FROM_IPC_STREAM", d.INSERT_CSV_FROM_PATH = "IMPORT_CSV_FROM_PATH", d.INSERT_JSON_FROM_PATH = "IMPORT_JSON_FROM_PATH", d.INSTANTIATE = "INSTANTIATE", d.OPEN = "OPEN", d.PING = "PING", d.POLL_PENDING_QUERY = "POLL_PENDING_QUERY", d.REGISTER_FILE_BUFFER = "REGISTER_FILE_BUFFER", d.REGISTER_FILE_HANDLE = "REGISTER_FILE_HANDLE", d.REGISTER_FILE_URL = "REGISTER_FILE_URL", d.RESET = "RESET", d.RUN_PREPARED = "RUN_PREPARED", d.RUN_QUERY = "RUN_QUERY", d.SEND_PREPARED = "SEND_PREPARED", d.START_PENDING_QUERY = "START_PENDING_QUERY", d.TOKENIZE = "TOKENIZE", d))(L || {});
25291
+ var D = ((u) => (u.CONNECTION_INFO = "CONNECTION_INFO", u.ERROR = "ERROR", u.FEATURE_FLAGS = "FEATURE_FLAGS", u.FILE_BUFFER = "FILE_BUFFER", u.FILE_INFOS = "FILE_INFOS", u.FILE_SIZE = "FILE_SIZE", u.FILE_STATISTICS = "FILE_STATISTICS", u.INSTANTIATE_PROGRESS = "INSTANTIATE_PROGRESS", u.LOG = "LOG", u.OK = "OK", u.PREPARED_STATEMENT_ID = "PREPARED_STATEMENT_ID", u.QUERY_PLAN = "QUERY_PLAN", u.QUERY_RESULT = "QUERY_RESULT", u.QUERY_RESULT_CHUNK = "QUERY_RESULT_CHUNK", u.QUERY_RESULT_HEADER = "QUERY_RESULT_HEADER", u.QUERY_RESULT_HEADER_OR_NULL = "QUERY_RESULT_HEADER_OR_NULL", u.REGISTERED_FILE = "REGISTERED_FILE", u.SCRIPT_TOKENS = "SCRIPT_TOKENS", u.SUCCESS = "SUCCESS", u.TABLE_NAMES = "TABLE_NAMES", u.VERSION_STRING = "VERSION_STRING", u))(D || {});
25065
25292
  var i = class {
25066
25293
  constructor(e, r) {
25067
25294
  this.promiseResolver = () => {
25068
25295
  };
25069
25296
  this.promiseRejecter = () => {
25070
25297
  };
25071
- this.type = e, this.data = r, this.promise = new Promise((t, o) => {
25072
- this.promiseResolver = t, this.promiseRejecter = o;
25298
+ this.type = e, this.data = r, this.promise = new Promise((t, n) => {
25299
+ this.promiseResolver = t, this.promiseRejecter = n;
25073
25300
  });
25074
25301
  }
25075
25302
  };
25076
- function _(s) {
25303
+ function m(s) {
25077
25304
  switch (s.typeId) {
25078
25305
  case Type3.Binary:
25079
25306
  return { sqlType: "binary" };
@@ -25118,7 +25345,7 @@ function _(s) {
25118
25345
  case Type3.IntervalYearMonth:
25119
25346
  return { sqlType: "interval[m]" };
25120
25347
  case Type3.List:
25121
- return { sqlType: "list", valueType: _(s.valueType) };
25348
+ return { sqlType: "list", valueType: m(s.valueType) };
25122
25349
  case Type3.FixedSizeBinary:
25123
25350
  return { sqlType: "fixedsizebinary", byteWidth: s.byteWidth };
25124
25351
  case Type3.Null:
@@ -25126,10 +25353,10 @@ function _(s) {
25126
25353
  case Type3.Utf8:
25127
25354
  return { sqlType: "utf8" };
25128
25355
  case Type3.Struct:
25129
- return { sqlType: "struct", fields: s.children.map((r) => R(r.name, r.type)) };
25356
+ return { sqlType: "struct", fields: s.children.map((r) => T(r.name, r.type)) };
25130
25357
  case Type3.Map: {
25131
25358
  let e = s;
25132
- return { sqlType: "map", keyType: _(e.keyType), valueType: _(e.valueType) };
25359
+ return { sqlType: "map", keyType: m(e.keyType), valueType: m(e.valueType) };
25133
25360
  }
25134
25361
  case Type3.Time:
25135
25362
  return { sqlType: "time[s]" };
@@ -25154,12 +25381,12 @@ function _(s) {
25154
25381
  }
25155
25382
  throw new Error(`unsupported arrow type: ${s.toString()}`);
25156
25383
  }
25157
- function R(s, e) {
25158
- let r = _(e);
25384
+ function T(s, e) {
25385
+ let r = m(e);
25159
25386
  return r.name = s, r;
25160
25387
  }
25161
- var se = new TextEncoder();
25162
- var D = class {
25388
+ var ne = new TextEncoder();
25389
+ var w = class {
25163
25390
  constructor(e, r = null) {
25164
25391
  this._onInstantiationProgress = [];
25165
25392
  this._worker = null;
@@ -25202,8 +25429,8 @@ var D = class {
25202
25429
  return;
25203
25430
  }
25204
25431
  case "INSTANTIATE_PROGRESS": {
25205
- for (let o of this._onInstantiationProgress)
25206
- o(r.data);
25432
+ for (let n of this._onInstantiationProgress)
25433
+ n(r.data);
25207
25434
  return;
25208
25435
  }
25209
25436
  }
@@ -25213,8 +25440,8 @@ var D = class {
25213
25440
  return;
25214
25441
  }
25215
25442
  if (this._pendingRequests.delete(r.requestId), r.type == "ERROR") {
25216
- let o = new Error(r.data.message);
25217
- o.name = r.data.name, o.stack = r.data.stack, t.promiseRejecter(o);
25443
+ let n = new Error(r.data.message);
25444
+ n.name = r.data.name, n.stack = r.data.stack, t.promiseRejecter(n);
25218
25445
  return;
25219
25446
  }
25220
25447
  switch (t.type) {
@@ -25369,11 +25596,11 @@ var D = class {
25369
25596
  let e = new i("FLUSH_FILES", null);
25370
25597
  return await this.postTask(e);
25371
25598
  }
25372
- async instantiate(e, r = null, t = (o) => {
25599
+ async instantiate(e, r = null, t = (n) => {
25373
25600
  }) {
25374
25601
  this._onInstantiationProgress.push(t);
25375
- let o = new i("INSTANTIATE", [e, r]);
25376
- return await this.postTask(o);
25602
+ let n = new i("INSTANTIATE", [e, r]);
25603
+ return await this.postTask(n);
25377
25604
  }
25378
25605
  async getVersion() {
25379
25606
  let e = new i("GET_VERSION", null);
@@ -25436,24 +25663,24 @@ var D = class {
25436
25663
  await this.postTask(t);
25437
25664
  }
25438
25665
  async runPrepared(e, r, t) {
25439
- let o = new i("RUN_PREPARED", [e, r, t]);
25440
- return await this.postTask(o);
25666
+ let n = new i("RUN_PREPARED", [e, r, t]);
25667
+ return await this.postTask(n);
25441
25668
  }
25442
25669
  async sendPrepared(e, r, t) {
25443
- let o = new i("SEND_PREPARED", [e, r, t]);
25444
- return await this.postTask(o);
25670
+ let n = new i("SEND_PREPARED", [e, r, t]);
25671
+ return await this.postTask(n);
25445
25672
  }
25446
25673
  async globFiles(e) {
25447
25674
  let r = new i("GLOB_FILE_INFOS", e);
25448
25675
  return await this.postTask(r);
25449
25676
  }
25450
25677
  async registerFileText(e, r) {
25451
- let t = se.encode(r);
25678
+ let t = ne.encode(r);
25452
25679
  await this.registerFileBuffer(e, t);
25453
25680
  }
25454
- async registerFileURL(e, r, t, o) {
25681
+ async registerFileURL(e, r, t, n) {
25455
25682
  r === void 0 && (r = e);
25456
- let c = new i("REGISTER_FILE_URL", [e, r, t, o]);
25683
+ let c = new i("REGISTER_FILE_URL", [e, r, t, n]);
25457
25684
  await this.postTask(c);
25458
25685
  }
25459
25686
  async registerEmptyFileBuffer(e) {
@@ -25464,8 +25691,8 @@ var D = class {
25464
25691
  let t = new i("REGISTER_FILE_BUFFER", [e, r]);
25465
25692
  await this.postTask(t, [r.buffer]);
25466
25693
  }
25467
- async registerFileHandle(e, r, t, o) {
25468
- let c = new i("REGISTER_FILE_HANDLE", [e, r, t, o]);
25694
+ async registerFileHandle(e, r, t, n) {
25695
+ let c = new i("REGISTER_FILE_HANDLE", [e, r, t, n]);
25469
25696
  await this.postTask(c, []);
25470
25697
  }
25471
25698
  async collectFileStatistics(e, r) {
@@ -25487,32 +25714,32 @@ var D = class {
25487
25714
  async insertArrowFromIPCStream(e, r, t) {
25488
25715
  if (r.length == 0)
25489
25716
  return;
25490
- let o = new i("INSERT_ARROW_FROM_IPC_STREAM", [e, r, t]);
25491
- await this.postTask(o, [r.buffer]);
25717
+ let n = new i("INSERT_ARROW_FROM_IPC_STREAM", [e, r, t]);
25718
+ await this.postTask(n, [r.buffer]);
25492
25719
  }
25493
25720
  async insertCSVFromPath(e, r, t) {
25494
25721
  if (t.columns !== void 0) {
25495
25722
  let c = [];
25496
- for (let n in t.columns) {
25497
- let T = t.columns[n];
25498
- c.push(R(n, T));
25723
+ for (let o in t.columns) {
25724
+ let R = t.columns[o];
25725
+ c.push(T(o, R));
25499
25726
  }
25500
25727
  t.columnsFlat = c, delete t.columns;
25501
25728
  }
25502
- let o = new i("IMPORT_CSV_FROM_PATH", [e, r, t]);
25503
- await this.postTask(o);
25729
+ let n = new i("IMPORT_CSV_FROM_PATH", [e, r, t]);
25730
+ await this.postTask(n);
25504
25731
  }
25505
25732
  async insertJSONFromPath(e, r, t) {
25506
25733
  if (t.columns !== void 0) {
25507
25734
  let c = [];
25508
- for (let n in t.columns) {
25509
- let T = t.columns[n];
25510
- c.push(R(n, T));
25735
+ for (let o in t.columns) {
25736
+ let R = t.columns[o];
25737
+ c.push(T(o, R));
25511
25738
  }
25512
25739
  t.columnsFlat = c, delete t.columns;
25513
25740
  }
25514
- let o = new i("IMPORT_JSON_FROM_PATH", [e, r, t]);
25515
- await this.postTask(o);
25741
+ let n = new i("IMPORT_JSON_FROM_PATH", [e, r, t]);
25742
+ await this.postTask(n);
25516
25743
  }
25517
25744
  };
25518
25745
  var F = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 3, 1, 0, 1, 10, 14, 1, 12, 0, 65, 0, 65, 0, 65, 0, 252, 10, 0, 0, 11]));
@@ -25525,15 +25752,15 @@ var C = () => (async (s) => {
25525
25752
  return false;
25526
25753
  }
25527
25754
  })(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5, 4, 1, 3, 1, 1, 10, 11, 1, 9, 0, 65, 0, 254, 16, 2, 0, 26, 11]));
25528
- var m = { name: "@duckdb/duckdb-wasm", version: "1.25.0", description: "DuckDB powered by WebAssembly", license: "MIT", repository: { type: "git", url: "https://github.com/duckdb/duckdb-wasm.git" }, keywords: ["sql", "duckdb", "relational", "database", "data", "query", "wasm", "analytics", "olap", "arrow", "parquet", "json", "csv"], dependencies: { "apache-arrow": "^11.0.0" }, devDependencies: { "@types/emscripten": "^1.39.6", "@types/jasmine": "^4.3.1", "@typescript-eslint/eslint-plugin": "^5.53.0", "@typescript-eslint/parser": "^5.49.0", esbuild: "^0.15.12", eslint: "^8.35.0", "eslint-plugin-jasmine": "^4.1.3", "eslint-plugin-react": "^7.32.2", "fast-glob": "^3.2.12", jasmine: "^4.5.0", "jasmine-core": "^4.3.0", "jasmine-spec-reporter": "^7.0.0", "js-sha256": "^0.9.0", karma: "^6.4.1", "karma-chrome-launcher": "^3.1.1", "karma-coverage": "^2.2.0", "karma-firefox-launcher": "^2.1.2", "karma-jasmine": "^5.1.0", "karma-jasmine-html-reporter": "^2.0.0", "karma-sourcemap-loader": "^0.3.8", "karma-spec-reporter": "^0.0.36", "make-dir": "^3.1.0", nyc: "^15.1.0", prettier: "^2.8.4", puppeteer: "^19.7.2", rimraf: "^4.3.0", s3rver: "^3.7.1", typedoc: "^0.23.27", typescript: "^4.8.4", "wasm-feature-detect": "^1.4.0", "web-worker": "^1.2.0" }, scripts: { "build:debug": "node bundle.mjs debug && tsc --emitDeclarationOnly", "build:release": "node bundle.mjs release && tsc --emitDeclarationOnly", docs: "typedoc", report: "node ./coverage.mjs", "test:node": "node --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs", "test:node:debug": "node --inspect-brk --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs", "test:node:coverage": "nyc -r json --report-dir ./coverage/node node --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs", "test:firefox": "karma start ./karma/tests-firefox.cjs", "test:chrome": "karma start ./karma/tests-chrome.cjs", "test:chrome:eh": "karma start ./karma/tests-chrome-eh.cjs", "test:chrome:coverage": "karma start ./karma/tests-chrome-coverage.cjs", "test:browser": "karma start ./karma/tests-all.cjs", "test:browser:debug": "karma start ./karma/tests-debug.cjs", test: "npm run test:chrome && npm run test:node", "test:coverage": "npm run test:chrome:coverage && npm run test:node:coverage && npm run report", lint: "eslint src test" }, files: ["dist", "!dist/types/test"], main: "dist/duckdb-browser.cjs", module: "dist/duckdb-browser.mjs", types: "dist/duckdb-browser.d.ts", jsdelivr: "dist/duckdb-browser.cjs", unpkg: "dist/duckdb-browser.mjs", sideEffects: false, browser: { fs: false, path: false, perf_hooks: false, os: false, worker_threads: false }, exports: { "./dist/duckdb-mvp.wasm": "./dist/duckdb-mvp.wasm", "./dist/duckdb-eh.wasm": "./dist/duckdb-eh.wasm", "./dist/duckdb-coi.wasm": "./dist/duckdb-coi.wasm", "./dist/duckdb-browser": "./dist/duckdb-browser.mjs", "./dist/duckdb-browser.cjs": "./dist/duckdb-browser.cjs", "./dist/duckdb-browser.mjs": "./dist/duckdb-browser.mjs", "./dist/duckdb-browser-blocking": "./dist/duckdb-browser-blocking.mjs", "./dist/duckdb-browser-blocking.mjs": "./dist/duckdb-browser-blocking.mjs", "./dist/duckdb-browser-blocking.cjs": "./dist/duckdb-browser-blocking.cjs", "./dist/duckdb-browser-coi.pthread.worker.js": "./dist/duckdb-browser-coi.pthread.worker.js", "./dist/duckdb-browser-coi.worker.js": "./dist/duckdb-browser-coi.worker.js", "./dist/duckdb-browser-eh.worker.js": "./dist/duckdb-browser-eh.worker.js", "./dist/duckdb-browser-mvp.worker.js": "./dist/duckdb-browser-mvp.worker.js", "./dist/duckdb-node": "./dist/duckdb-node.cjs", "./dist/duckdb-node.cjs": "./dist/duckdb-node.cjs", "./dist/duckdb-node-blocking": "./dist/duckdb-node-blocking.cjs", "./dist/duckdb-node-blocking.cjs": "./dist/duckdb-node-blocking.cjs", "./dist/duckdb-node-eh.worker.cjs": "./dist/duckdb-node-eh.worker.cjs", "./dist/duckdb-node-mvp.worker.cjs": "./dist/duckdb-node-mvp.worker.cjs", "./blocking": { browser: { types: "./dist/duckdb-browser-blocking.d.ts", import: "./dist/duckdb-browser-blocking.mjs", require: "./dist/duckdb-browser-blocking.cjs" }, node: { types: "./dist/duckdb-node-blocking.d.ts", require: "./dist/duckdb-node-blocking.cjs", import: "./dist/duckdb-node-blocking.cjs" }, types: "./dist/duckdb-browser-blocking.d.ts", import: "./dist/duckdb-browser-blocking.mjs", require: "./dist/duckdb-browser-blocking.cjs" }, ".": { browser: { types: "./dist/duckdb-browser.d.ts", import: "./dist/duckdb-browser.mjs", require: "./dist/duckdb-browser.cjs" }, node: { types: "./dist/duckdb-node.d.ts", import: "./dist/duckdb-node.cjs", require: "./dist/duckdb-node.cjs" }, types: "./dist/duckdb-browser.d.ts", import: "./dist/duckdb-browser.mjs", require: "./dist/duckdb-browser.cjs" } } };
25529
- var W = m.name;
25530
- var v = m.version;
25531
- var k = m.version.split(".");
25532
- var we = k[0];
25533
- var De = k[1];
25534
- var Oe = k[2];
25535
- var M = () => typeof navigator > "u";
25536
- function We() {
25755
+ var _ = { name: "@duckdb/duckdb-wasm", version: "1.27.0", description: "DuckDB powered by WebAssembly", license: "MIT", repository: { type: "git", url: "https://github.com/duckdb/duckdb-wasm.git" }, keywords: ["sql", "duckdb", "relational", "database", "data", "query", "wasm", "analytics", "olap", "arrow", "parquet", "json", "csv"], dependencies: { "apache-arrow": "^11.0.0" }, devDependencies: { "@types/emscripten": "^1.39.6", "@types/jasmine": "^4.3.1", "@typescript-eslint/eslint-plugin": "^5.53.0", "@typescript-eslint/parser": "^5.49.0", esbuild: "^0.15.12", eslint: "^8.35.0", "eslint-plugin-jasmine": "^4.1.3", "eslint-plugin-react": "^7.32.2", "fast-glob": "^3.2.12", jasmine: "^4.5.0", "jasmine-core": "^5.0.0", "jasmine-spec-reporter": "^7.0.0", "js-sha256": "^0.9.0", karma: "^6.4.2", "karma-chrome-launcher": "^3.1.1", "karma-coverage": "^2.2.0", "karma-firefox-launcher": "^2.1.2", "karma-jasmine": "^5.1.0", "karma-jasmine-html-reporter": "^2.0.0", "karma-sourcemap-loader": "^0.3.8", "karma-spec-reporter": "^0.0.36", "make-dir": "^3.1.0", nyc: "^15.1.0", prettier: "^2.8.4", puppeteer: "^19.10.0", rimraf: "^4.3.0", s3rver: "^3.7.1", typedoc: "^0.24.8", typescript: "^4.8.4", "wasm-feature-detect": "^1.5.1", "web-worker": "^1.2.0" }, scripts: { "build:debug": "node bundle.mjs debug && tsc --emitDeclarationOnly", "build:release": "node bundle.mjs release && tsc --emitDeclarationOnly", docs: "typedoc", report: "node ./coverage.mjs", "test:node": "node --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs", "test:node:debug": "node --inspect-brk --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs", "test:node:coverage": "nyc -r json --report-dir ./coverage/node node --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs", "test:firefox": "karma start ./karma/tests-firefox.cjs", "test:chrome": "karma start ./karma/tests-chrome.cjs", "test:chrome:eh": "karma start ./karma/tests-chrome-eh.cjs", "test:chrome:coverage": "karma start ./karma/tests-chrome-coverage.cjs", "test:browser": "karma start ./karma/tests-all.cjs", "test:browser:debug": "karma start ./karma/tests-debug.cjs", test: "npm run test:chrome && npm run test:node", "test:coverage": "npm run test:chrome:coverage && npm run test:node:coverage && npm run report", lint: "eslint src test" }, files: ["dist", "!dist/types/test"], main: "dist/duckdb-browser.cjs", module: "dist/duckdb-browser.mjs", types: "dist/duckdb-browser.d.ts", jsdelivr: "dist/duckdb-browser.cjs", unpkg: "dist/duckdb-browser.mjs", sideEffects: false, browser: { fs: false, path: false, perf_hooks: false, os: false, worker_threads: false }, exports: { "./dist/duckdb-mvp.wasm": "./dist/duckdb-mvp.wasm", "./dist/duckdb-eh.wasm": "./dist/duckdb-eh.wasm", "./dist/duckdb-coi.wasm": "./dist/duckdb-coi.wasm", "./dist/duckdb-browser": "./dist/duckdb-browser.mjs", "./dist/duckdb-browser.cjs": "./dist/duckdb-browser.cjs", "./dist/duckdb-browser.mjs": "./dist/duckdb-browser.mjs", "./dist/duckdb-browser-blocking": "./dist/duckdb-browser-blocking.mjs", "./dist/duckdb-browser-blocking.mjs": "./dist/duckdb-browser-blocking.mjs", "./dist/duckdb-browser-blocking.cjs": "./dist/duckdb-browser-blocking.cjs", "./dist/duckdb-browser-coi.pthread.worker.js": "./dist/duckdb-browser-coi.pthread.worker.js", "./dist/duckdb-browser-coi.worker.js": "./dist/duckdb-browser-coi.worker.js", "./dist/duckdb-browser-eh.worker.js": "./dist/duckdb-browser-eh.worker.js", "./dist/duckdb-browser-mvp.worker.js": "./dist/duckdb-browser-mvp.worker.js", "./dist/duckdb-node": "./dist/duckdb-node.cjs", "./dist/duckdb-node.cjs": "./dist/duckdb-node.cjs", "./dist/duckdb-node-blocking": "./dist/duckdb-node-blocking.cjs", "./dist/duckdb-node-blocking.cjs": "./dist/duckdb-node-blocking.cjs", "./dist/duckdb-node-eh.worker.cjs": "./dist/duckdb-node-eh.worker.cjs", "./dist/duckdb-node-mvp.worker.cjs": "./dist/duckdb-node-mvp.worker.cjs", "./blocking": { browser: { types: "./dist/duckdb-browser-blocking.d.ts", import: "./dist/duckdb-browser-blocking.mjs", require: "./dist/duckdb-browser-blocking.cjs" }, node: { types: "./dist/duckdb-node-blocking.d.ts", require: "./dist/duckdb-node-blocking.cjs", import: "./dist/duckdb-node-blocking.cjs" }, types: "./dist/duckdb-browser-blocking.d.ts", import: "./dist/duckdb-browser-blocking.mjs", require: "./dist/duckdb-browser-blocking.cjs" }, ".": { browser: { types: "./dist/duckdb-browser.d.ts", import: "./dist/duckdb-browser.mjs", require: "./dist/duckdb-browser.cjs" }, node: { types: "./dist/duckdb-node.d.ts", import: "./dist/duckdb-node.cjs", require: "./dist/duckdb-node.cjs" }, types: "./dist/duckdb-browser.d.ts", import: "./dist/duckdb-browser.mjs", require: "./dist/duckdb-browser.cjs" } } };
25756
+ var W = _.name;
25757
+ var v = _.version;
25758
+ var k = _.version.split(".");
25759
+ var Oe = k[0];
25760
+ var Fe = k[1];
25761
+ var fe = k[2];
25762
+ var B = () => typeof navigator > "u";
25763
+ function Be() {
25537
25764
  let s = `https://cdn.jsdelivr.net/npm/${W}@${v}/dist/`;
25538
25765
  return { mvp: { mainModule: `${s}duckdb-mvp.wasm`, mainWorker: `${s}duckdb-browser-mvp.worker.js` }, eh: { mainModule: `${s}duckdb-eh.wasm`, mainWorker: `${s}duckdb-browser-eh.worker.js` } };
25539
25766
  }
@@ -25542,11 +25769,11 @@ var y = null;
25542
25769
  var g = null;
25543
25770
  var S = null;
25544
25771
  var h = null;
25545
- async function ie() {
25546
- return I == null && (I = typeof BigInt64Array < "u"), y == null && (y = await f()), g == null && (g = await C()), S == null && (S = await U()), h == null && (h = await F()), { bigInt64Array: I, crossOriginIsolated: M() || globalThis.crossOriginIsolated || false, wasmExceptions: y, wasmSIMD: S, wasmThreads: g, wasmBulkMemory: h };
25772
+ async function ae() {
25773
+ return I == null && (I = typeof BigInt64Array < "u"), y == null && (y = await f()), g == null && (g = await C()), S == null && (S = await U()), h == null && (h = await F()), { bigInt64Array: I, crossOriginIsolated: B() || globalThis.crossOriginIsolated || false, wasmExceptions: y, wasmSIMD: S, wasmThreads: g, wasmBulkMemory: h };
25547
25774
  }
25548
- async function ve(s) {
25549
- let e = await ie();
25775
+ async function Me(s) {
25776
+ let e = await ae();
25550
25777
  if (e.wasmExceptions) {
25551
25778
  if (e.wasmSIMD && e.wasmThreads && e.crossOriginIsolated && s.coi)
25552
25779
  return { mainModule: s.coi.mainModule, mainWorker: s.coi.mainWorker, pthreadWorker: s.coi.pthreadWorker };
@@ -25556,12 +25783,12 @@ async function ve(s) {
25556
25783
  return { mainModule: s.mvp.mainModule, mainWorker: s.mvp.mainWorker, pthreadWorker: null };
25557
25784
  }
25558
25785
  var Q = $(x());
25559
- function ae() {
25786
+ function de() {
25560
25787
  let s = new TextDecoder();
25561
25788
  return (e) => (typeof SharedArrayBuffer < "u" && e.buffer instanceof SharedArrayBuffer && (e = new Uint8Array(e)), s.decode(e));
25562
25789
  }
25563
- var Qe = ae();
25564
- var q = ((n) => (n[n.BUFFER = 0] = "BUFFER", n[n.NODE_FS = 1] = "NODE_FS", n[n.BROWSER_FILEREADER = 2] = "BROWSER_FILEREADER", n[n.BROWSER_FSACCESS = 3] = "BROWSER_FSACCESS", n[n.HTTP = 4] = "HTTP", n[n.S3 = 5] = "S3", n))(q || {});
25790
+ var Ye = de();
25791
+ var q = ((o) => (o[o.BUFFER = 0] = "BUFFER", o[o.NODE_FS = 1] = "NODE_FS", o[o.BROWSER_FILEREADER = 2] = "BROWSER_FILEREADER", o[o.BROWSER_FSACCESS = 3] = "BROWSER_FSACCESS", o[o.HTTP = 4] = "HTTP", o[o.S3 = 5] = "S3", o))(q || {});
25565
25792
 
25566
25793
  // src/connectors/wasm.js
25567
25794
  async function wasmConnector(options) {
@@ -25580,14 +25807,14 @@ async function wasmConnector(options) {
25580
25807
  async function initDatabase({
25581
25808
  log = false
25582
25809
  } = {}) {
25583
- const JSDELIVR_BUNDLES = We();
25584
- const bundle = await ve(JSDELIVR_BUNDLES);
25810
+ const JSDELIVR_BUNDLES = Be();
25811
+ const bundle = await Me(JSDELIVR_BUNDLES);
25585
25812
  const worker_url = URL.createObjectURL(
25586
25813
  new Blob([`importScripts("${bundle.mainWorker}");`], { type: "text/javascript" })
25587
25814
  );
25588
25815
  const worker = new Worker(worker_url);
25589
- const logger = log ? new L() : new A();
25590
- const db = new D(logger, worker);
25816
+ const logger = log ? new P() : new A();
25817
+ const db = new w(logger, worker);
25591
25818
  await db.instantiate(bundle.mainModule, bundle.pthreadWorker);
25592
25819
  URL.revokeObjectURL(worker_url);
25593
25820
  return db;