precision-dashwidgets 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{duckdb-browser-Ca3YTI3y-DK4Qsf1I.mjs → duckdb-browser-CI2dpY-v-CoCsU0kJ.mjs} +690 -690
- package/dist/precision-dashwidgets.es.js +111175 -2124
- package/dist/precision-dashwidgets.umd.js +3921 -19
- package/dist/style.css +1 -1
- package/dist/useGetToken-DaxIvkvl-BZdrKpSJ.mjs +18 -0
- package/package.json +2 -2
- package/dist/useGetToken-BB_WoWij-DUKO7RtR.mjs +0 -18
|
@@ -5,22 +5,22 @@ function T(s, t, e, n) {
|
|
|
5
5
|
});
|
|
6
6
|
}
|
|
7
7
|
return new (e || (e = Promise))(function(i, o) {
|
|
8
|
-
function a(
|
|
8
|
+
function a(d) {
|
|
9
9
|
try {
|
|
10
|
-
u(n.next(
|
|
11
|
-
} catch (
|
|
12
|
-
o(
|
|
10
|
+
u(n.next(d));
|
|
11
|
+
} catch (h) {
|
|
12
|
+
o(h);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function c(d) {
|
|
16
16
|
try {
|
|
17
|
-
u(n.throw(
|
|
18
|
-
} catch (
|
|
19
|
-
o(
|
|
17
|
+
u(n.throw(d));
|
|
18
|
+
} catch (h) {
|
|
19
|
+
o(h);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
function u(
|
|
23
|
-
|
|
22
|
+
function u(d) {
|
|
23
|
+
d.done ? i(d.value) : r(d.value).then(a, c);
|
|
24
24
|
}
|
|
25
25
|
u((n = n.apply(s, t || [])).next());
|
|
26
26
|
});
|
|
@@ -46,17 +46,17 @@ function Tt(s, t, e) {
|
|
|
46
46
|
}, r;
|
|
47
47
|
function o(R) {
|
|
48
48
|
return function(nt) {
|
|
49
|
-
return Promise.resolve(nt).then(R,
|
|
49
|
+
return Promise.resolve(nt).then(R, h);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
function a(R, nt) {
|
|
53
53
|
n[R] && (r[R] = function(te) {
|
|
54
54
|
return new Promise(function(Pt, zs) {
|
|
55
|
-
i.push([R, te, Pt, zs]) > 1 ||
|
|
55
|
+
i.push([R, te, Pt, zs]) > 1 || c(R, te);
|
|
56
56
|
});
|
|
57
57
|
}, nt && (r[R] = nt(r[R])));
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function c(R, nt) {
|
|
60
60
|
try {
|
|
61
61
|
u(n[R](nt));
|
|
62
62
|
} catch (te) {
|
|
@@ -64,16 +64,16 @@ function Tt(s, t, e) {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
function u(R) {
|
|
67
|
-
R.value instanceof E ? Promise.resolve(R.value.v).then(
|
|
68
|
-
}
|
|
69
|
-
function h(R) {
|
|
70
|
-
l("next", R);
|
|
67
|
+
R.value instanceof E ? Promise.resolve(R.value.v).then(d, h) : j(i[0][2], R);
|
|
71
68
|
}
|
|
72
69
|
function d(R) {
|
|
73
|
-
|
|
70
|
+
c("next", R);
|
|
71
|
+
}
|
|
72
|
+
function h(R) {
|
|
73
|
+
c("throw", R);
|
|
74
74
|
}
|
|
75
75
|
function j(R, nt) {
|
|
76
|
-
R(nt), i.shift(), i.length &&
|
|
76
|
+
R(nt), i.shift(), i.length && c(i[0][0], i[0][1]);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
function He(s) {
|
|
@@ -97,13 +97,13 @@ function Qt(s) {
|
|
|
97
97
|
}, e);
|
|
98
98
|
function n(i) {
|
|
99
99
|
e[i] = s[i] && function(o) {
|
|
100
|
-
return new Promise(function(a,
|
|
101
|
-
o = s[i](o), r(a,
|
|
100
|
+
return new Promise(function(a, c) {
|
|
101
|
+
o = s[i](o), r(a, c, o.done, o.value);
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function r(i, o, a,
|
|
106
|
-
Promise.resolve(
|
|
105
|
+
function r(i, o, a, c) {
|
|
106
|
+
Promise.resolve(c).then(function(u) {
|
|
107
107
|
i({ value: u, done: a });
|
|
108
108
|
}, o);
|
|
109
109
|
}
|
|
@@ -112,8 +112,8 @@ const So = new TextDecoder("utf-8"), Xs = (s) => So.decode(s), To = new TextEnco
|
|
|
112
112
|
function Do(s) {
|
|
113
113
|
const t = s[0] ? [s[0]] : [];
|
|
114
114
|
let e, n, r, i;
|
|
115
|
-
for (let o, a,
|
|
116
|
-
if (o = t[u], a = s[
|
|
115
|
+
for (let o, a, c = 0, u = 0, d = s.length; ++c < d; ) {
|
|
116
|
+
if (o = t[u], a = s[c], !o || !a || o.buffer !== a.buffer || a.byteOffset < o.byteOffset) {
|
|
117
117
|
a && (t[++u] = a);
|
|
118
118
|
continue;
|
|
119
119
|
}
|
|
@@ -130,17 +130,17 @@ function Yn(s, t, e = 0, n = t.byteLength) {
|
|
|
130
130
|
return i.set(o, e), s;
|
|
131
131
|
}
|
|
132
132
|
function Ot(s, t) {
|
|
133
|
-
const e = Do(s), n = e.reduce((
|
|
134
|
-
let r, i, o, a = 0,
|
|
133
|
+
const e = Do(s), n = e.reduce((d, h) => d + h.byteLength, 0);
|
|
134
|
+
let r, i, o, a = 0, c = -1;
|
|
135
135
|
const u = Math.min(t || Number.POSITIVE_INFINITY, n);
|
|
136
|
-
for (const
|
|
137
|
-
if (r = e[
|
|
138
|
-
i.length < r.length ? e[
|
|
136
|
+
for (const d = e.length; ++c < d; ) {
|
|
137
|
+
if (r = e[c], i = r.subarray(0, Math.min(r.length, u - a)), u <= a + i.length) {
|
|
138
|
+
i.length < r.length ? e[c] = r.subarray(i.length) : i.length === r.length && c++, o ? Yn(o, i, a) : o = i;
|
|
139
139
|
break;
|
|
140
140
|
}
|
|
141
141
|
Yn(o || (o = new Uint8Array(u)), i, a), a += i.length;
|
|
142
142
|
}
|
|
143
|
-
return [o || new Uint8Array(0), e.slice(
|
|
143
|
+
return [o || new Uint8Array(0), e.slice(c), n - (o ? o.byteLength : 0)];
|
|
144
144
|
}
|
|
145
145
|
function x(s, t) {
|
|
146
146
|
let e = gr(t) ? t.value : t;
|
|
@@ -211,7 +211,7 @@ function Lo(s, t) {
|
|
|
211
211
|
while (++e < n);
|
|
212
212
|
return !0;
|
|
213
213
|
}
|
|
214
|
-
const
|
|
214
|
+
const ct = {
|
|
215
215
|
fromIterable(s) {
|
|
216
216
|
return Ge(Uo(s));
|
|
217
217
|
},
|
|
@@ -235,7 +235,7 @@ const lt = {
|
|
|
235
235
|
}, Ge = (s) => (s.next(), s);
|
|
236
236
|
function* Uo(s) {
|
|
237
237
|
let t, e = !1, n = [], r, i, o, a = 0;
|
|
238
|
-
function
|
|
238
|
+
function c() {
|
|
239
239
|
return i === "peek" ? Ot(n, o)[0] : ([r, n, a] = Ot(n, o), r);
|
|
240
240
|
}
|
|
241
241
|
({ cmd: i, size: o } = (yield null) || { cmd: "read", size: 0 });
|
|
@@ -244,11 +244,11 @@ function* Uo(s) {
|
|
|
244
244
|
do
|
|
245
245
|
if ({ done: t, value: r } = Number.isNaN(o - a) ? u.next() : u.next(o - a), !t && r.byteLength > 0 && (n.push(r), a += r.byteLength), t || o <= a)
|
|
246
246
|
do
|
|
247
|
-
({ cmd: i, size: o } = yield
|
|
247
|
+
({ cmd: i, size: o } = yield c());
|
|
248
248
|
while (o < a);
|
|
249
249
|
while (!t);
|
|
250
|
-
} catch (
|
|
251
|
-
(e = !0) && typeof u.throw == "function" && u.throw(
|
|
250
|
+
} catch (d) {
|
|
251
|
+
(e = !0) && typeof u.throw == "function" && u.throw(d);
|
|
252
252
|
} finally {
|
|
253
253
|
e === !1 && typeof u.return == "function" && u.return(null);
|
|
254
254
|
}
|
|
@@ -257,7 +257,7 @@ function* Uo(s) {
|
|
|
257
257
|
function Mo(s) {
|
|
258
258
|
return Tt(this, arguments, function* () {
|
|
259
259
|
let t, e = !1, n = [], r, i, o, a = 0;
|
|
260
|
-
function
|
|
260
|
+
function c() {
|
|
261
261
|
return i === "peek" ? Ot(n, o)[0] : ([r, n, a] = Ot(n, o), r);
|
|
262
262
|
}
|
|
263
263
|
({ cmd: i, size: o } = (yield yield E(null)) || { cmd: "read", size: 0 });
|
|
@@ -266,11 +266,11 @@ function Mo(s) {
|
|
|
266
266
|
do
|
|
267
267
|
if ({ done: t, value: r } = Number.isNaN(o - a) ? yield E(u.next()) : yield E(u.next(o - a)), !t && r.byteLength > 0 && (n.push(r), a += r.byteLength), t || o <= a)
|
|
268
268
|
do
|
|
269
|
-
({ cmd: i, size: o } = yield yield E(
|
|
269
|
+
({ cmd: i, size: o } = yield yield E(c()));
|
|
270
270
|
while (o < a);
|
|
271
271
|
while (!t);
|
|
272
|
-
} catch (
|
|
273
|
-
(e = !0) && typeof u.throw == "function" && (yield E(u.throw(
|
|
272
|
+
} catch (d) {
|
|
273
|
+
(e = !0) && typeof u.throw == "function" && (yield E(u.throw(d)));
|
|
274
274
|
} finally {
|
|
275
275
|
e === !1 && typeof u.return == "function" && (yield E(u.return(new Uint8Array(0))));
|
|
276
276
|
}
|
|
@@ -280,7 +280,7 @@ function Mo(s) {
|
|
|
280
280
|
function Co(s) {
|
|
281
281
|
return Tt(this, arguments, function* () {
|
|
282
282
|
let t = !1, e = !1, n = [], r, i, o, a = 0;
|
|
283
|
-
function
|
|
283
|
+
function c() {
|
|
284
284
|
return i === "peek" ? Ot(n, o)[0] : ([r, n, a] = Ot(n, o), r);
|
|
285
285
|
}
|
|
286
286
|
({ cmd: i, size: o } = (yield yield E(null)) || { cmd: "read", size: 0 });
|
|
@@ -289,11 +289,11 @@ function Co(s) {
|
|
|
289
289
|
do
|
|
290
290
|
if ({ done: t, value: r } = Number.isNaN(o - a) ? yield E(u.read()) : yield E(u.read(o - a)), !t && r.byteLength > 0 && (n.push(D(r)), a += r.byteLength), t || o <= a)
|
|
291
291
|
do
|
|
292
|
-
({ cmd: i, size: o } = yield yield E(
|
|
292
|
+
({ cmd: i, size: o } = yield yield E(c()));
|
|
293
293
|
while (o < a);
|
|
294
294
|
while (!t);
|
|
295
|
-
} catch (
|
|
296
|
-
(e = !0) && (yield E(u.cancel(
|
|
295
|
+
} catch (d) {
|
|
296
|
+
(e = !0) && (yield E(u.cancel(d)));
|
|
297
297
|
} finally {
|
|
298
298
|
e === !1 ? yield E(u.cancel()) : s.locked && u.releaseLock();
|
|
299
299
|
}
|
|
@@ -336,9 +336,9 @@ const js = (s, t) => {
|
|
|
336
336
|
function Po(s) {
|
|
337
337
|
return Tt(this, arguments, function* () {
|
|
338
338
|
const t = [];
|
|
339
|
-
let e = "error", n = !1, r = null, i, o, a = 0,
|
|
340
|
-
function
|
|
341
|
-
return i === "peek" ? Ot(
|
|
339
|
+
let e = "error", n = !1, r = null, i, o, a = 0, c = [], u;
|
|
340
|
+
function d() {
|
|
341
|
+
return i === "peek" ? Ot(c, o)[0] : ([u, c, a] = Ot(c, o), u);
|
|
342
342
|
}
|
|
343
343
|
if ({ cmd: i, size: o } = (yield yield E(null)) || { cmd: "read", size: 0 }, s.isTTY)
|
|
344
344
|
return yield yield E(new Uint8Array(0)), yield E(null);
|
|
@@ -347,17 +347,17 @@ function Po(s) {
|
|
|
347
347
|
do {
|
|
348
348
|
if (t[2] = js(s, "readable"), [e, r] = yield E(Promise.race(t.map((j) => j[2]))), e === "error")
|
|
349
349
|
break;
|
|
350
|
-
if ((n = e === "end") || (Number.isFinite(o - a) ? (u = D(s.read(o - a)), u.byteLength < o - a && (u = D(s.read()))) : u = D(s.read()), u.byteLength > 0 && (
|
|
350
|
+
if ((n = e === "end") || (Number.isFinite(o - a) ? (u = D(s.read(o - a)), u.byteLength < o - a && (u = D(s.read()))) : u = D(s.read()), u.byteLength > 0 && (c.push(u), a += u.byteLength)), n || o <= a)
|
|
351
351
|
do
|
|
352
|
-
({ cmd: i, size: o } = yield yield E(
|
|
352
|
+
({ cmd: i, size: o } = yield yield E(d()));
|
|
353
353
|
while (o < a);
|
|
354
354
|
} while (!n);
|
|
355
355
|
} finally {
|
|
356
|
-
yield E(
|
|
356
|
+
yield E(h(t, e === "error" ? r : null));
|
|
357
357
|
}
|
|
358
358
|
return yield E(null);
|
|
359
|
-
function
|
|
360
|
-
return u =
|
|
359
|
+
function h(j, R) {
|
|
360
|
+
return u = c = null, new Promise((nt, te) => {
|
|
361
361
|
for (const [Pt, zs] of j)
|
|
362
362
|
s.off(Pt, zs);
|
|
363
363
|
try {
|
|
@@ -843,10 +843,10 @@ let ge = class Sr {
|
|
|
843
843
|
let o = 0;
|
|
844
844
|
const a = this.space;
|
|
845
845
|
t: for (e = 0; e < this.vtables.length; e++) {
|
|
846
|
-
const
|
|
847
|
-
if (i == this.bb.readInt16(
|
|
846
|
+
const c = this.bb.capacity() - this.vtables[e];
|
|
847
|
+
if (i == this.bb.readInt16(c)) {
|
|
848
848
|
for (let u = Ys; u < i; u += Ys)
|
|
849
|
-
if (this.bb.readInt16(a + u) != this.bb.readInt16(
|
|
849
|
+
if (this.bb.readInt16(a + u) != this.bb.readInt16(c + u))
|
|
850
850
|
continue t;
|
|
851
851
|
o = this.vtables[e];
|
|
852
852
|
break;
|
|
@@ -1700,7 +1700,7 @@ let qn = class Ae {
|
|
|
1700
1700
|
static createList(t) {
|
|
1701
1701
|
return De.startList(t), De.endList(t);
|
|
1702
1702
|
}
|
|
1703
|
-
}, Xe = class
|
|
1703
|
+
}, Xe = class le {
|
|
1704
1704
|
constructor() {
|
|
1705
1705
|
this.bb = null, this.bb_pos = 0;
|
|
1706
1706
|
}
|
|
@@ -1708,10 +1708,10 @@ let qn = class Ae {
|
|
|
1708
1708
|
return this.bb_pos = t, this.bb = e, this;
|
|
1709
1709
|
}
|
|
1710
1710
|
static getRootAsMap(t, e) {
|
|
1711
|
-
return (e || new
|
|
1711
|
+
return (e || new le()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1712
1712
|
}
|
|
1713
1713
|
static getSizePrefixedRootAsMap(t, e) {
|
|
1714
|
-
return t.setPosition(t.position() + U), (e || new
|
|
1714
|
+
return t.setPosition(t.position() + U), (e || new le()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1715
1715
|
}
|
|
1716
1716
|
/**
|
|
1717
1717
|
* Set to true if the keys within each value are sorted
|
|
@@ -1730,7 +1730,7 @@ let qn = class Ae {
|
|
|
1730
1730
|
return t.endObject();
|
|
1731
1731
|
}
|
|
1732
1732
|
static createMap(t, e) {
|
|
1733
|
-
return
|
|
1733
|
+
return le.startMap(t), le.addKeysSorted(t, e), le.endMap(t);
|
|
1734
1734
|
}
|
|
1735
1735
|
}, Zn = class Be {
|
|
1736
1736
|
constructor() {
|
|
@@ -1815,7 +1815,7 @@ class ut {
|
|
|
1815
1815
|
return ut.startTime(t), ut.addUnit(t, e), ut.addBitWidth(t, n), ut.endTime(t);
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
|
-
class
|
|
1818
|
+
class dt {
|
|
1819
1819
|
constructor() {
|
|
1820
1820
|
this.bb = null, this.bb_pos = 0;
|
|
1821
1821
|
}
|
|
@@ -1823,10 +1823,10 @@ class ht {
|
|
|
1823
1823
|
return this.bb_pos = t, this.bb = e, this;
|
|
1824
1824
|
}
|
|
1825
1825
|
static getRootAsTimestamp(t, e) {
|
|
1826
|
-
return (e || new
|
|
1826
|
+
return (e || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1827
1827
|
}
|
|
1828
1828
|
static getSizePrefixedRootAsTimestamp(t, e) {
|
|
1829
|
-
return t.setPosition(t.position() + U), (e || new
|
|
1829
|
+
return t.setPosition(t.position() + U), (e || new dt()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1830
1830
|
}
|
|
1831
1831
|
unit() {
|
|
1832
1832
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1849,7 +1849,7 @@ class ht {
|
|
|
1849
1849
|
return t.endObject();
|
|
1850
1850
|
}
|
|
1851
1851
|
static createTimestamp(t, e, n) {
|
|
1852
|
-
return
|
|
1852
|
+
return dt.startTimestamp(t), dt.addUnit(t, e), dt.addTimezone(t, n), dt.endTimestamp(t);
|
|
1853
1853
|
}
|
|
1854
1854
|
}
|
|
1855
1855
|
class X {
|
|
@@ -2151,10 +2151,10 @@ var N;
|
|
|
2151
2151
|
(function(s) {
|
|
2152
2152
|
s[s.NONE = 0] = "NONE", s[s.Schema = 1] = "Schema", s[s.DictionaryBatch = 2] = "DictionaryBatch", s[s.RecordBatch = 3] = "RecordBatch", s[s.Tensor = 4] = "Tensor", s[s.SparseTensor = 5] = "SparseTensor";
|
|
2153
2153
|
})(N || (N = {}));
|
|
2154
|
-
var
|
|
2154
|
+
var l;
|
|
2155
2155
|
(function(s) {
|
|
2156
2156
|
s[s.NONE = 0] = "NONE", s[s.Null = 1] = "Null", s[s.Int = 2] = "Int", s[s.Float = 3] = "Float", s[s.Binary = 4] = "Binary", s[s.Utf8 = 5] = "Utf8", s[s.Bool = 6] = "Bool", s[s.Decimal = 7] = "Decimal", s[s.Date = 8] = "Date", s[s.Time = 9] = "Time", s[s.Timestamp = 10] = "Timestamp", s[s.Interval = 11] = "Interval", s[s.List = 12] = "List", s[s.Struct = 13] = "Struct", s[s.Union = 14] = "Union", s[s.FixedSizeBinary = 15] = "FixedSizeBinary", s[s.FixedSizeList = 16] = "FixedSizeList", s[s.Map = 17] = "Map", s[s.Duration = 18] = "Duration", s[s.LargeBinary = 19] = "LargeBinary", s[s.LargeUtf8 = 20] = "LargeUtf8", s[s.Dictionary = -1] = "Dictionary", s[s.Int8 = -2] = "Int8", s[s.Int16 = -3] = "Int16", s[s.Int32 = -4] = "Int32", s[s.Int64 = -5] = "Int64", s[s.Uint8 = -6] = "Uint8", s[s.Uint16 = -7] = "Uint16", s[s.Uint32 = -8] = "Uint32", s[s.Uint64 = -9] = "Uint64", s[s.Float16 = -10] = "Float16", s[s.Float32 = -11] = "Float32", s[s.Float64 = -12] = "Float64", s[s.DateDay = -13] = "DateDay", s[s.DateMillisecond = -14] = "DateMillisecond", s[s.TimestampSecond = -15] = "TimestampSecond", s[s.TimestampMillisecond = -16] = "TimestampMillisecond", s[s.TimestampMicrosecond = -17] = "TimestampMicrosecond", s[s.TimestampNanosecond = -18] = "TimestampNanosecond", s[s.TimeSecond = -19] = "TimeSecond", s[s.TimeMillisecond = -20] = "TimeMillisecond", s[s.TimeMicrosecond = -21] = "TimeMicrosecond", s[s.TimeNanosecond = -22] = "TimeNanosecond", s[s.DenseUnion = -23] = "DenseUnion", s[s.SparseUnion = -24] = "SparseUnion", s[s.IntervalDayTime = -25] = "IntervalDayTime", s[s.IntervalYearMonth = -26] = "IntervalYearMonth", s[s.DurationSecond = -27] = "DurationSecond", s[s.DurationMillisecond = -28] = "DurationMillisecond", s[s.DurationMicrosecond = -29] = "DurationMicrosecond", s[s.DurationNanosecond = -30] = "DurationNanosecond";
|
|
2157
|
-
})(
|
|
2157
|
+
})(l || (l = {}));
|
|
2158
2158
|
var Nt;
|
|
2159
2159
|
(function(s) {
|
|
2160
2160
|
s[s.OFFSET = 0] = "OFFSET", s[s.DATA = 1] = "DATA", s[s.VALIDITY = 2] = "VALIDITY", s[s.TYPE = 3] = "TYPE";
|
|
@@ -2226,19 +2226,19 @@ Object.assign(Me.prototype, gt.prototype, { constructor: Me, signed: !0, TypedAr
|
|
|
2226
2226
|
const zo = BigInt(4294967296) * BigInt(4294967296), jo = zo - BigInt(1);
|
|
2227
2227
|
function Dr(s, t) {
|
|
2228
2228
|
const { buffer: e, byteOffset: n, byteLength: r, signed: i } = s, o = new BigUint64Array(e, n, r / 8), a = i && o.at(-1) & BigInt(1) << BigInt(63);
|
|
2229
|
-
let
|
|
2229
|
+
let c = BigInt(0), u = 0;
|
|
2230
2230
|
if (a) {
|
|
2231
|
-
for (const
|
|
2232
|
-
|
|
2233
|
-
|
|
2231
|
+
for (const d of o)
|
|
2232
|
+
c |= (d ^ jo) * (BigInt(1) << BigInt(64 * u++));
|
|
2233
|
+
c *= BigInt(-1), c -= BigInt(1);
|
|
2234
2234
|
} else
|
|
2235
|
-
for (const
|
|
2236
|
-
|
|
2235
|
+
for (const d of o)
|
|
2236
|
+
c |= d * (BigInt(1) << BigInt(64 * u++));
|
|
2237
2237
|
if (typeof t == "number") {
|
|
2238
|
-
const
|
|
2239
|
-
return P(
|
|
2238
|
+
const d = BigInt(Math.pow(10, t)), h = c / d, j = c % d;
|
|
2239
|
+
return P(h) + P(j) / P(d);
|
|
2240
2240
|
}
|
|
2241
|
-
return P(
|
|
2241
|
+
return P(c);
|
|
2242
2242
|
}
|
|
2243
2243
|
function Ce(s) {
|
|
2244
2244
|
if (s.byteLength === 8)
|
|
@@ -2311,87 +2311,87 @@ var Br, Nr, Fr, Lr, Ur, Mr, Cr, xr, Pr, kr, Vr, zr, jr, Yr, Wr, Gr, $r, Kr, Hr,
|
|
|
2311
2311
|
class p {
|
|
2312
2312
|
/** @nocollapse */
|
|
2313
2313
|
static isNull(t) {
|
|
2314
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2314
|
+
return (t == null ? void 0 : t.typeId) === l.Null;
|
|
2315
2315
|
}
|
|
2316
2316
|
/** @nocollapse */
|
|
2317
2317
|
static isInt(t) {
|
|
2318
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2318
|
+
return (t == null ? void 0 : t.typeId) === l.Int;
|
|
2319
2319
|
}
|
|
2320
2320
|
/** @nocollapse */
|
|
2321
2321
|
static isFloat(t) {
|
|
2322
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2322
|
+
return (t == null ? void 0 : t.typeId) === l.Float;
|
|
2323
2323
|
}
|
|
2324
2324
|
/** @nocollapse */
|
|
2325
2325
|
static isBinary(t) {
|
|
2326
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2326
|
+
return (t == null ? void 0 : t.typeId) === l.Binary;
|
|
2327
2327
|
}
|
|
2328
2328
|
/** @nocollapse */
|
|
2329
2329
|
static isLargeBinary(t) {
|
|
2330
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2330
|
+
return (t == null ? void 0 : t.typeId) === l.LargeBinary;
|
|
2331
2331
|
}
|
|
2332
2332
|
/** @nocollapse */
|
|
2333
2333
|
static isUtf8(t) {
|
|
2334
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2334
|
+
return (t == null ? void 0 : t.typeId) === l.Utf8;
|
|
2335
2335
|
}
|
|
2336
2336
|
/** @nocollapse */
|
|
2337
2337
|
static isLargeUtf8(t) {
|
|
2338
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2338
|
+
return (t == null ? void 0 : t.typeId) === l.LargeUtf8;
|
|
2339
2339
|
}
|
|
2340
2340
|
/** @nocollapse */
|
|
2341
2341
|
static isBool(t) {
|
|
2342
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2342
|
+
return (t == null ? void 0 : t.typeId) === l.Bool;
|
|
2343
2343
|
}
|
|
2344
2344
|
/** @nocollapse */
|
|
2345
2345
|
static isDecimal(t) {
|
|
2346
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2346
|
+
return (t == null ? void 0 : t.typeId) === l.Decimal;
|
|
2347
2347
|
}
|
|
2348
2348
|
/** @nocollapse */
|
|
2349
2349
|
static isDate(t) {
|
|
2350
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2350
|
+
return (t == null ? void 0 : t.typeId) === l.Date;
|
|
2351
2351
|
}
|
|
2352
2352
|
/** @nocollapse */
|
|
2353
2353
|
static isTime(t) {
|
|
2354
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2354
|
+
return (t == null ? void 0 : t.typeId) === l.Time;
|
|
2355
2355
|
}
|
|
2356
2356
|
/** @nocollapse */
|
|
2357
2357
|
static isTimestamp(t) {
|
|
2358
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2358
|
+
return (t == null ? void 0 : t.typeId) === l.Timestamp;
|
|
2359
2359
|
}
|
|
2360
2360
|
/** @nocollapse */
|
|
2361
2361
|
static isInterval(t) {
|
|
2362
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2362
|
+
return (t == null ? void 0 : t.typeId) === l.Interval;
|
|
2363
2363
|
}
|
|
2364
2364
|
/** @nocollapse */
|
|
2365
2365
|
static isDuration(t) {
|
|
2366
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2366
|
+
return (t == null ? void 0 : t.typeId) === l.Duration;
|
|
2367
2367
|
}
|
|
2368
2368
|
/** @nocollapse */
|
|
2369
2369
|
static isList(t) {
|
|
2370
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2370
|
+
return (t == null ? void 0 : t.typeId) === l.List;
|
|
2371
2371
|
}
|
|
2372
2372
|
/** @nocollapse */
|
|
2373
2373
|
static isStruct(t) {
|
|
2374
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2374
|
+
return (t == null ? void 0 : t.typeId) === l.Struct;
|
|
2375
2375
|
}
|
|
2376
2376
|
/** @nocollapse */
|
|
2377
2377
|
static isUnion(t) {
|
|
2378
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2378
|
+
return (t == null ? void 0 : t.typeId) === l.Union;
|
|
2379
2379
|
}
|
|
2380
2380
|
/** @nocollapse */
|
|
2381
2381
|
static isFixedSizeBinary(t) {
|
|
2382
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2382
|
+
return (t == null ? void 0 : t.typeId) === l.FixedSizeBinary;
|
|
2383
2383
|
}
|
|
2384
2384
|
/** @nocollapse */
|
|
2385
2385
|
static isFixedSizeList(t) {
|
|
2386
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2386
|
+
return (t == null ? void 0 : t.typeId) === l.FixedSizeList;
|
|
2387
2387
|
}
|
|
2388
2388
|
/** @nocollapse */
|
|
2389
2389
|
static isMap(t) {
|
|
2390
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2390
|
+
return (t == null ? void 0 : t.typeId) === l.Map;
|
|
2391
2391
|
}
|
|
2392
2392
|
/** @nocollapse */
|
|
2393
2393
|
static isDictionary(t) {
|
|
2394
|
-
return (t == null ? void 0 : t.typeId) ===
|
|
2394
|
+
return (t == null ? void 0 : t.typeId) === l.Dictionary;
|
|
2395
2395
|
}
|
|
2396
2396
|
/** @nocollapse */
|
|
2397
2397
|
static isDenseUnion(t) {
|
|
@@ -2409,7 +2409,7 @@ Br = Symbol.toStringTag;
|
|
|
2409
2409
|
p[Br] = ((s) => (s.children = null, s.ArrayType = Array, s.OffsetArrayType = Int32Array, s[Symbol.toStringTag] = "DataType"))(p.prototype);
|
|
2410
2410
|
class Yt extends p {
|
|
2411
2411
|
constructor() {
|
|
2412
|
-
super(
|
|
2412
|
+
super(l.Null);
|
|
2413
2413
|
}
|
|
2414
2414
|
toString() {
|
|
2415
2415
|
return "Null";
|
|
@@ -2419,7 +2419,7 @@ Nr = Symbol.toStringTag;
|
|
|
2419
2419
|
Yt[Nr] = ((s) => s[Symbol.toStringTag] = "Null")(Yt.prototype);
|
|
2420
2420
|
class Zt extends p {
|
|
2421
2421
|
constructor(t, e) {
|
|
2422
|
-
super(
|
|
2422
|
+
super(l.Int), this.isSigned = t, this.bitWidth = e;
|
|
2423
2423
|
}
|
|
2424
2424
|
get ArrayType() {
|
|
2425
2425
|
switch (this.bitWidth) {
|
|
@@ -2449,9 +2449,9 @@ class xe extends Zt {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
}
|
|
2451
2451
|
Object.defineProperty(xe.prototype, "ArrayType", { value: Int32Array });
|
|
2452
|
-
class
|
|
2452
|
+
class ls extends p {
|
|
2453
2453
|
constructor(t) {
|
|
2454
|
-
super(
|
|
2454
|
+
super(l.Float), this.precision = t;
|
|
2455
2455
|
}
|
|
2456
2456
|
get ArrayType() {
|
|
2457
2457
|
switch (this.precision) {
|
|
@@ -2469,20 +2469,20 @@ class cs extends p {
|
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
2471
|
Lr = Symbol.toStringTag;
|
|
2472
|
-
|
|
2473
|
-
class
|
|
2472
|
+
ls[Lr] = ((s) => (s.precision = null, s[Symbol.toStringTag] = "Float"))(ls.prototype);
|
|
2473
|
+
class cs extends p {
|
|
2474
2474
|
constructor() {
|
|
2475
|
-
super(
|
|
2475
|
+
super(l.Binary);
|
|
2476
2476
|
}
|
|
2477
2477
|
toString() {
|
|
2478
2478
|
return "Binary";
|
|
2479
2479
|
}
|
|
2480
2480
|
}
|
|
2481
2481
|
Ur = Symbol.toStringTag;
|
|
2482
|
-
|
|
2482
|
+
cs[Ur] = ((s) => (s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "Binary"))(cs.prototype);
|
|
2483
2483
|
class us extends p {
|
|
2484
2484
|
constructor() {
|
|
2485
|
-
super(
|
|
2485
|
+
super(l.LargeBinary);
|
|
2486
2486
|
}
|
|
2487
2487
|
toString() {
|
|
2488
2488
|
return "LargeBinary";
|
|
@@ -2490,29 +2490,29 @@ class us extends p {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
Mr = Symbol.toStringTag;
|
|
2492
2492
|
us[Mr] = ((s) => (s.ArrayType = Uint8Array, s.OffsetArrayType = BigInt64Array, s[Symbol.toStringTag] = "LargeBinary"))(us.prototype);
|
|
2493
|
-
class
|
|
2493
|
+
class ds extends p {
|
|
2494
2494
|
constructor() {
|
|
2495
|
-
super(
|
|
2495
|
+
super(l.Utf8);
|
|
2496
2496
|
}
|
|
2497
2497
|
toString() {
|
|
2498
2498
|
return "Utf8";
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
2501
|
Cr = Symbol.toStringTag;
|
|
2502
|
-
|
|
2503
|
-
class
|
|
2502
|
+
ds[Cr] = ((s) => (s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "Utf8"))(ds.prototype);
|
|
2503
|
+
class hs extends p {
|
|
2504
2504
|
constructor() {
|
|
2505
|
-
super(
|
|
2505
|
+
super(l.LargeUtf8);
|
|
2506
2506
|
}
|
|
2507
2507
|
toString() {
|
|
2508
2508
|
return "LargeUtf8";
|
|
2509
2509
|
}
|
|
2510
2510
|
}
|
|
2511
2511
|
xr = Symbol.toStringTag;
|
|
2512
|
-
|
|
2512
|
+
hs[xr] = ((s) => (s.ArrayType = Uint8Array, s.OffsetArrayType = BigInt64Array, s[Symbol.toStringTag] = "LargeUtf8"))(hs.prototype);
|
|
2513
2513
|
class ps extends p {
|
|
2514
2514
|
constructor() {
|
|
2515
|
-
super(
|
|
2515
|
+
super(l.Bool);
|
|
2516
2516
|
}
|
|
2517
2517
|
toString() {
|
|
2518
2518
|
return "Bool";
|
|
@@ -2522,7 +2522,7 @@ Pr = Symbol.toStringTag;
|
|
|
2522
2522
|
ps[Pr] = ((s) => (s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "Bool"))(ps.prototype);
|
|
2523
2523
|
class fs extends p {
|
|
2524
2524
|
constructor(t, e, n = 128) {
|
|
2525
|
-
super(
|
|
2525
|
+
super(l.Decimal), this.scale = t, this.precision = e, this.bitWidth = n;
|
|
2526
2526
|
}
|
|
2527
2527
|
toString() {
|
|
2528
2528
|
return `Decimal[${this.precision}e${this.scale > 0 ? "+" : ""}${this.scale}]`;
|
|
@@ -2532,7 +2532,7 @@ kr = Symbol.toStringTag;
|
|
|
2532
2532
|
fs[kr] = ((s) => (s.scale = null, s.precision = null, s.ArrayType = Uint32Array, s[Symbol.toStringTag] = "Decimal"))(fs.prototype);
|
|
2533
2533
|
class ys extends p {
|
|
2534
2534
|
constructor(t) {
|
|
2535
|
-
super(
|
|
2535
|
+
super(l.Date), this.unit = t;
|
|
2536
2536
|
}
|
|
2537
2537
|
toString() {
|
|
2538
2538
|
return `Date${(this.unit + 1) * 32}<${pt[this.unit]}>`;
|
|
@@ -2545,7 +2545,7 @@ Vr = Symbol.toStringTag;
|
|
|
2545
2545
|
ys[Vr] = ((s) => (s.unit = null, s[Symbol.toStringTag] = "Date"))(ys.prototype);
|
|
2546
2546
|
class bs extends p {
|
|
2547
2547
|
constructor(t, e) {
|
|
2548
|
-
super(
|
|
2548
|
+
super(l.Time), this.unit = t, this.bitWidth = e;
|
|
2549
2549
|
}
|
|
2550
2550
|
toString() {
|
|
2551
2551
|
return `Time${this.bitWidth}<${m[this.unit]}>`;
|
|
@@ -2564,7 +2564,7 @@ zr = Symbol.toStringTag;
|
|
|
2564
2564
|
bs[zr] = ((s) => (s.unit = null, s.bitWidth = null, s[Symbol.toStringTag] = "Time"))(bs.prototype);
|
|
2565
2565
|
class gs extends p {
|
|
2566
2566
|
constructor(t, e) {
|
|
2567
|
-
super(
|
|
2567
|
+
super(l.Timestamp), this.unit = t, this.timezone = e;
|
|
2568
2568
|
}
|
|
2569
2569
|
toString() {
|
|
2570
2570
|
return `Timestamp<${m[this.unit]}${this.timezone ? `, ${this.timezone}` : ""}>`;
|
|
@@ -2574,7 +2574,7 @@ jr = Symbol.toStringTag;
|
|
|
2574
2574
|
gs[jr] = ((s) => (s.unit = null, s.timezone = null, s.ArrayType = BigInt64Array, s[Symbol.toStringTag] = "Timestamp"))(gs.prototype);
|
|
2575
2575
|
class ms extends p {
|
|
2576
2576
|
constructor(t) {
|
|
2577
|
-
super(
|
|
2577
|
+
super(l.Interval), this.unit = t;
|
|
2578
2578
|
}
|
|
2579
2579
|
toString() {
|
|
2580
2580
|
return `Interval<${At[this.unit]}>`;
|
|
@@ -2584,7 +2584,7 @@ Yr = Symbol.toStringTag;
|
|
|
2584
2584
|
ms[Yr] = ((s) => (s.unit = null, s.ArrayType = Int32Array, s[Symbol.toStringTag] = "Interval"))(ms.prototype);
|
|
2585
2585
|
class _s extends p {
|
|
2586
2586
|
constructor(t) {
|
|
2587
|
-
super(
|
|
2587
|
+
super(l.Duration), this.unit = t;
|
|
2588
2588
|
}
|
|
2589
2589
|
toString() {
|
|
2590
2590
|
return `Duration<${m[this.unit]}>`;
|
|
@@ -2594,7 +2594,7 @@ Wr = Symbol.toStringTag;
|
|
|
2594
2594
|
_s[Wr] = ((s) => (s.unit = null, s.ArrayType = BigInt64Array, s[Symbol.toStringTag] = "Duration"))(_s.prototype);
|
|
2595
2595
|
class vs extends p {
|
|
2596
2596
|
constructor(t) {
|
|
2597
|
-
super(
|
|
2597
|
+
super(l.List), this.children = [t];
|
|
2598
2598
|
}
|
|
2599
2599
|
toString() {
|
|
2600
2600
|
return `List<${this.valueType}>`;
|
|
@@ -2613,7 +2613,7 @@ Gr = Symbol.toStringTag;
|
|
|
2613
2613
|
vs[Gr] = ((s) => (s.children = null, s[Symbol.toStringTag] = "List"))(vs.prototype);
|
|
2614
2614
|
class Q extends p {
|
|
2615
2615
|
constructor(t) {
|
|
2616
|
-
super(
|
|
2616
|
+
super(l.Struct), this.children = t;
|
|
2617
2617
|
}
|
|
2618
2618
|
toString() {
|
|
2619
2619
|
return `Struct<{${this.children.map((t) => `${t.name}:${t.type}`).join(", ")}}>`;
|
|
@@ -2623,7 +2623,7 @@ $r = Symbol.toStringTag;
|
|
|
2623
2623
|
Q[$r] = ((s) => (s.children = null, s[Symbol.toStringTag] = "Struct"))(Q.prototype);
|
|
2624
2624
|
class Is extends p {
|
|
2625
2625
|
constructor(t, e, n) {
|
|
2626
|
-
super(
|
|
2626
|
+
super(l.Union), this.mode = t, this.children = n, this.typeIds = e = Int32Array.from(e), this.typeIdToChildIndex = e.reduce((r, i, o) => (r[i] = o) && r || r, /* @__PURE__ */ Object.create(null));
|
|
2627
2627
|
}
|
|
2628
2628
|
toString() {
|
|
2629
2629
|
return `${this[Symbol.toStringTag]}<${this.children.map((t) => `${t.type}`).join(" | ")}>`;
|
|
@@ -2633,7 +2633,7 @@ Kr = Symbol.toStringTag;
|
|
|
2633
2633
|
Is[Kr] = ((s) => (s.mode = null, s.typeIds = null, s.children = null, s.typeIdToChildIndex = null, s.ArrayType = Int8Array, s[Symbol.toStringTag] = "Union"))(Is.prototype);
|
|
2634
2634
|
class ws extends p {
|
|
2635
2635
|
constructor(t) {
|
|
2636
|
-
super(
|
|
2636
|
+
super(l.FixedSizeBinary), this.byteWidth = t;
|
|
2637
2637
|
}
|
|
2638
2638
|
toString() {
|
|
2639
2639
|
return `FixedSizeBinary[${this.byteWidth}]`;
|
|
@@ -2643,7 +2643,7 @@ Hr = Symbol.toStringTag;
|
|
|
2643
2643
|
ws[Hr] = ((s) => (s.byteWidth = null, s.ArrayType = Uint8Array, s[Symbol.toStringTag] = "FixedSizeBinary"))(ws.prototype);
|
|
2644
2644
|
class Ss extends p {
|
|
2645
2645
|
constructor(t, e) {
|
|
2646
|
-
super(
|
|
2646
|
+
super(l.FixedSizeList), this.listSize = t, this.children = [e];
|
|
2647
2647
|
}
|
|
2648
2648
|
get valueType() {
|
|
2649
2649
|
return this.children[0].type;
|
|
@@ -2663,7 +2663,7 @@ Ss[qr] = ((s) => (s.children = null, s.listSize = null, s[Symbol.toStringTag] =
|
|
|
2663
2663
|
class Ts extends p {
|
|
2664
2664
|
constructor(t, e = !1) {
|
|
2665
2665
|
var n, r, i;
|
|
2666
|
-
if (super(
|
|
2666
|
+
if (super(l.Map), this.children = [t], this.keysSorted = e, t && (t.name = "entries", !((n = t == null ? void 0 : t.type) === null || n === void 0) && n.children)) {
|
|
2667
2667
|
const o = (r = t == null ? void 0 : t.type) === null || r === void 0 ? void 0 : r.children[0];
|
|
2668
2668
|
o && (o.name = "key");
|
|
2669
2669
|
const a = (i = t == null ? void 0 : t.type) === null || i === void 0 ? void 0 : i.children[1];
|
|
@@ -2688,7 +2688,7 @@ Ts[Qr] = ((s) => (s.children = null, s.keysSorted = null, s[Symbol.toStringTag]
|
|
|
2688
2688
|
const Wo = /* @__PURE__ */ ((s) => () => ++s)(-1);
|
|
2689
2689
|
class _e extends p {
|
|
2690
2690
|
constructor(t, e, n, r) {
|
|
2691
|
-
super(
|
|
2691
|
+
super(l.Dictionary), this.indices = e, this.dictionary = t, this.isOrdered = r || !1, this.id = n == null ? Wo() : P(n);
|
|
2692
2692
|
}
|
|
2693
2693
|
get children() {
|
|
2694
2694
|
return this.dictionary.children;
|
|
@@ -2708,15 +2708,15 @@ _e[Jr] = ((s) => (s.id = null, s.indices = null, s.isOrdered = null, s.dictionar
|
|
|
2708
2708
|
function Ft(s) {
|
|
2709
2709
|
const t = s;
|
|
2710
2710
|
switch (s.typeId) {
|
|
2711
|
-
case
|
|
2711
|
+
case l.Decimal:
|
|
2712
2712
|
return s.bitWidth / 32;
|
|
2713
|
-
case
|
|
2713
|
+
case l.Interval:
|
|
2714
2714
|
return 1 + t.unit;
|
|
2715
2715
|
// case Type.Int: return 1 + +((t as Int_).bitWidth > 32);
|
|
2716
2716
|
// case Type.Time: return 1 + +((t as Time_).bitWidth > 32);
|
|
2717
|
-
case
|
|
2717
|
+
case l.FixedSizeList:
|
|
2718
2718
|
return t.listSize;
|
|
2719
|
-
case
|
|
2719
|
+
case l.FixedSizeBinary:
|
|
2720
2720
|
return t.byteWidth;
|
|
2721
2721
|
default:
|
|
2722
2722
|
return 1;
|
|
@@ -2733,7 +2733,7 @@ class O {
|
|
|
2733
2733
|
return Go(this, t, e);
|
|
2734
2734
|
}
|
|
2735
2735
|
getVisitFnByTypeId(t, e = !0) {
|
|
2736
|
-
return
|
|
2736
|
+
return ce(this, t, e);
|
|
2737
2737
|
}
|
|
2738
2738
|
visitNull(t, ...e) {
|
|
2739
2739
|
return null;
|
|
@@ -2800,159 +2800,159 @@ class O {
|
|
|
2800
2800
|
}
|
|
2801
2801
|
}
|
|
2802
2802
|
function Go(s, t, e = !0) {
|
|
2803
|
-
return typeof t == "number" ?
|
|
2803
|
+
return typeof t == "number" ? ce(s, t, e) : typeof t == "string" && t in l ? ce(s, l[t], e) : t && t instanceof p ? ce(s, tr(t), e) : t != null && t.type && t.type instanceof p ? ce(s, tr(t.type), e) : ce(s, l.NONE, e);
|
|
2804
2804
|
}
|
|
2805
|
-
function
|
|
2805
|
+
function ce(s, t, e = !0) {
|
|
2806
2806
|
let n = null;
|
|
2807
2807
|
switch (t) {
|
|
2808
|
-
case
|
|
2808
|
+
case l.Null:
|
|
2809
2809
|
n = s.visitNull;
|
|
2810
2810
|
break;
|
|
2811
|
-
case
|
|
2811
|
+
case l.Bool:
|
|
2812
2812
|
n = s.visitBool;
|
|
2813
2813
|
break;
|
|
2814
|
-
case
|
|
2814
|
+
case l.Int:
|
|
2815
2815
|
n = s.visitInt;
|
|
2816
2816
|
break;
|
|
2817
|
-
case
|
|
2817
|
+
case l.Int8:
|
|
2818
2818
|
n = s.visitInt8 || s.visitInt;
|
|
2819
2819
|
break;
|
|
2820
|
-
case
|
|
2820
|
+
case l.Int16:
|
|
2821
2821
|
n = s.visitInt16 || s.visitInt;
|
|
2822
2822
|
break;
|
|
2823
|
-
case
|
|
2823
|
+
case l.Int32:
|
|
2824
2824
|
n = s.visitInt32 || s.visitInt;
|
|
2825
2825
|
break;
|
|
2826
|
-
case
|
|
2826
|
+
case l.Int64:
|
|
2827
2827
|
n = s.visitInt64 || s.visitInt;
|
|
2828
2828
|
break;
|
|
2829
|
-
case
|
|
2829
|
+
case l.Uint8:
|
|
2830
2830
|
n = s.visitUint8 || s.visitInt;
|
|
2831
2831
|
break;
|
|
2832
|
-
case
|
|
2832
|
+
case l.Uint16:
|
|
2833
2833
|
n = s.visitUint16 || s.visitInt;
|
|
2834
2834
|
break;
|
|
2835
|
-
case
|
|
2835
|
+
case l.Uint32:
|
|
2836
2836
|
n = s.visitUint32 || s.visitInt;
|
|
2837
2837
|
break;
|
|
2838
|
-
case
|
|
2838
|
+
case l.Uint64:
|
|
2839
2839
|
n = s.visitUint64 || s.visitInt;
|
|
2840
2840
|
break;
|
|
2841
|
-
case
|
|
2841
|
+
case l.Float:
|
|
2842
2842
|
n = s.visitFloat;
|
|
2843
2843
|
break;
|
|
2844
|
-
case
|
|
2844
|
+
case l.Float16:
|
|
2845
2845
|
n = s.visitFloat16 || s.visitFloat;
|
|
2846
2846
|
break;
|
|
2847
|
-
case
|
|
2847
|
+
case l.Float32:
|
|
2848
2848
|
n = s.visitFloat32 || s.visitFloat;
|
|
2849
2849
|
break;
|
|
2850
|
-
case
|
|
2850
|
+
case l.Float64:
|
|
2851
2851
|
n = s.visitFloat64 || s.visitFloat;
|
|
2852
2852
|
break;
|
|
2853
|
-
case
|
|
2853
|
+
case l.Utf8:
|
|
2854
2854
|
n = s.visitUtf8;
|
|
2855
2855
|
break;
|
|
2856
|
-
case
|
|
2856
|
+
case l.LargeUtf8:
|
|
2857
2857
|
n = s.visitLargeUtf8;
|
|
2858
2858
|
break;
|
|
2859
|
-
case
|
|
2859
|
+
case l.Binary:
|
|
2860
2860
|
n = s.visitBinary;
|
|
2861
2861
|
break;
|
|
2862
|
-
case
|
|
2862
|
+
case l.LargeBinary:
|
|
2863
2863
|
n = s.visitLargeBinary;
|
|
2864
2864
|
break;
|
|
2865
|
-
case
|
|
2865
|
+
case l.FixedSizeBinary:
|
|
2866
2866
|
n = s.visitFixedSizeBinary;
|
|
2867
2867
|
break;
|
|
2868
|
-
case
|
|
2868
|
+
case l.Date:
|
|
2869
2869
|
n = s.visitDate;
|
|
2870
2870
|
break;
|
|
2871
|
-
case
|
|
2871
|
+
case l.DateDay:
|
|
2872
2872
|
n = s.visitDateDay || s.visitDate;
|
|
2873
2873
|
break;
|
|
2874
|
-
case
|
|
2874
|
+
case l.DateMillisecond:
|
|
2875
2875
|
n = s.visitDateMillisecond || s.visitDate;
|
|
2876
2876
|
break;
|
|
2877
|
-
case
|
|
2877
|
+
case l.Timestamp:
|
|
2878
2878
|
n = s.visitTimestamp;
|
|
2879
2879
|
break;
|
|
2880
|
-
case
|
|
2880
|
+
case l.TimestampSecond:
|
|
2881
2881
|
n = s.visitTimestampSecond || s.visitTimestamp;
|
|
2882
2882
|
break;
|
|
2883
|
-
case
|
|
2883
|
+
case l.TimestampMillisecond:
|
|
2884
2884
|
n = s.visitTimestampMillisecond || s.visitTimestamp;
|
|
2885
2885
|
break;
|
|
2886
|
-
case
|
|
2886
|
+
case l.TimestampMicrosecond:
|
|
2887
2887
|
n = s.visitTimestampMicrosecond || s.visitTimestamp;
|
|
2888
2888
|
break;
|
|
2889
|
-
case
|
|
2889
|
+
case l.TimestampNanosecond:
|
|
2890
2890
|
n = s.visitTimestampNanosecond || s.visitTimestamp;
|
|
2891
2891
|
break;
|
|
2892
|
-
case
|
|
2892
|
+
case l.Time:
|
|
2893
2893
|
n = s.visitTime;
|
|
2894
2894
|
break;
|
|
2895
|
-
case
|
|
2895
|
+
case l.TimeSecond:
|
|
2896
2896
|
n = s.visitTimeSecond || s.visitTime;
|
|
2897
2897
|
break;
|
|
2898
|
-
case
|
|
2898
|
+
case l.TimeMillisecond:
|
|
2899
2899
|
n = s.visitTimeMillisecond || s.visitTime;
|
|
2900
2900
|
break;
|
|
2901
|
-
case
|
|
2901
|
+
case l.TimeMicrosecond:
|
|
2902
2902
|
n = s.visitTimeMicrosecond || s.visitTime;
|
|
2903
2903
|
break;
|
|
2904
|
-
case
|
|
2904
|
+
case l.TimeNanosecond:
|
|
2905
2905
|
n = s.visitTimeNanosecond || s.visitTime;
|
|
2906
2906
|
break;
|
|
2907
|
-
case
|
|
2907
|
+
case l.Decimal:
|
|
2908
2908
|
n = s.visitDecimal;
|
|
2909
2909
|
break;
|
|
2910
|
-
case
|
|
2910
|
+
case l.List:
|
|
2911
2911
|
n = s.visitList;
|
|
2912
2912
|
break;
|
|
2913
|
-
case
|
|
2913
|
+
case l.Struct:
|
|
2914
2914
|
n = s.visitStruct;
|
|
2915
2915
|
break;
|
|
2916
|
-
case
|
|
2916
|
+
case l.Union:
|
|
2917
2917
|
n = s.visitUnion;
|
|
2918
2918
|
break;
|
|
2919
|
-
case
|
|
2919
|
+
case l.DenseUnion:
|
|
2920
2920
|
n = s.visitDenseUnion || s.visitUnion;
|
|
2921
2921
|
break;
|
|
2922
|
-
case
|
|
2922
|
+
case l.SparseUnion:
|
|
2923
2923
|
n = s.visitSparseUnion || s.visitUnion;
|
|
2924
2924
|
break;
|
|
2925
|
-
case
|
|
2925
|
+
case l.Dictionary:
|
|
2926
2926
|
n = s.visitDictionary;
|
|
2927
2927
|
break;
|
|
2928
|
-
case
|
|
2928
|
+
case l.Interval:
|
|
2929
2929
|
n = s.visitInterval;
|
|
2930
2930
|
break;
|
|
2931
|
-
case
|
|
2931
|
+
case l.IntervalDayTime:
|
|
2932
2932
|
n = s.visitIntervalDayTime || s.visitInterval;
|
|
2933
2933
|
break;
|
|
2934
|
-
case
|
|
2934
|
+
case l.IntervalYearMonth:
|
|
2935
2935
|
n = s.visitIntervalYearMonth || s.visitInterval;
|
|
2936
2936
|
break;
|
|
2937
|
-
case
|
|
2937
|
+
case l.Duration:
|
|
2938
2938
|
n = s.visitDuration;
|
|
2939
2939
|
break;
|
|
2940
|
-
case
|
|
2940
|
+
case l.DurationSecond:
|
|
2941
2941
|
n = s.visitDurationSecond || s.visitDuration;
|
|
2942
2942
|
break;
|
|
2943
|
-
case
|
|
2943
|
+
case l.DurationMillisecond:
|
|
2944
2944
|
n = s.visitDurationMillisecond || s.visitDuration;
|
|
2945
2945
|
break;
|
|
2946
|
-
case
|
|
2946
|
+
case l.DurationMicrosecond:
|
|
2947
2947
|
n = s.visitDurationMicrosecond || s.visitDuration;
|
|
2948
2948
|
break;
|
|
2949
|
-
case
|
|
2949
|
+
case l.DurationNanosecond:
|
|
2950
2950
|
n = s.visitDurationNanosecond || s.visitDuration;
|
|
2951
2951
|
break;
|
|
2952
|
-
case
|
|
2952
|
+
case l.FixedSizeList:
|
|
2953
2953
|
n = s.visitFixedSizeList;
|
|
2954
2954
|
break;
|
|
2955
|
-
case
|
|
2955
|
+
case l.Map:
|
|
2956
2956
|
n = s.visitMap;
|
|
2957
2957
|
break;
|
|
2958
2958
|
}
|
|
@@ -2960,122 +2960,122 @@ function le(s, t, e = !0) {
|
|
|
2960
2960
|
return n;
|
|
2961
2961
|
if (!e)
|
|
2962
2962
|
return () => null;
|
|
2963
|
-
throw new Error(`Unrecognized type '${
|
|
2963
|
+
throw new Error(`Unrecognized type '${l[t]}'`);
|
|
2964
2964
|
}
|
|
2965
2965
|
function tr(s) {
|
|
2966
2966
|
switch (s.typeId) {
|
|
2967
|
-
case
|
|
2968
|
-
return
|
|
2969
|
-
case
|
|
2967
|
+
case l.Null:
|
|
2968
|
+
return l.Null;
|
|
2969
|
+
case l.Int: {
|
|
2970
2970
|
const { bitWidth: t, isSigned: e } = s;
|
|
2971
2971
|
switch (t) {
|
|
2972
2972
|
case 8:
|
|
2973
|
-
return e ?
|
|
2973
|
+
return e ? l.Int8 : l.Uint8;
|
|
2974
2974
|
case 16:
|
|
2975
|
-
return e ?
|
|
2975
|
+
return e ? l.Int16 : l.Uint16;
|
|
2976
2976
|
case 32:
|
|
2977
|
-
return e ?
|
|
2977
|
+
return e ? l.Int32 : l.Uint32;
|
|
2978
2978
|
case 64:
|
|
2979
|
-
return e ?
|
|
2979
|
+
return e ? l.Int64 : l.Uint64;
|
|
2980
2980
|
}
|
|
2981
|
-
return
|
|
2981
|
+
return l.Int;
|
|
2982
2982
|
}
|
|
2983
|
-
case
|
|
2983
|
+
case l.Float:
|
|
2984
2984
|
switch (s.precision) {
|
|
2985
2985
|
case K.HALF:
|
|
2986
|
-
return
|
|
2986
|
+
return l.Float16;
|
|
2987
2987
|
case K.SINGLE:
|
|
2988
|
-
return
|
|
2988
|
+
return l.Float32;
|
|
2989
2989
|
case K.DOUBLE:
|
|
2990
|
-
return
|
|
2990
|
+
return l.Float64;
|
|
2991
2991
|
}
|
|
2992
|
-
return
|
|
2993
|
-
case
|
|
2994
|
-
return
|
|
2995
|
-
case
|
|
2996
|
-
return
|
|
2997
|
-
case
|
|
2998
|
-
return
|
|
2999
|
-
case
|
|
3000
|
-
return
|
|
3001
|
-
case
|
|
3002
|
-
return
|
|
3003
|
-
case
|
|
3004
|
-
return
|
|
3005
|
-
case
|
|
2992
|
+
return l.Float;
|
|
2993
|
+
case l.Binary:
|
|
2994
|
+
return l.Binary;
|
|
2995
|
+
case l.LargeBinary:
|
|
2996
|
+
return l.LargeBinary;
|
|
2997
|
+
case l.Utf8:
|
|
2998
|
+
return l.Utf8;
|
|
2999
|
+
case l.LargeUtf8:
|
|
3000
|
+
return l.LargeUtf8;
|
|
3001
|
+
case l.Bool:
|
|
3002
|
+
return l.Bool;
|
|
3003
|
+
case l.Decimal:
|
|
3004
|
+
return l.Decimal;
|
|
3005
|
+
case l.Time:
|
|
3006
3006
|
switch (s.unit) {
|
|
3007
3007
|
case m.SECOND:
|
|
3008
|
-
return
|
|
3008
|
+
return l.TimeSecond;
|
|
3009
3009
|
case m.MILLISECOND:
|
|
3010
|
-
return
|
|
3010
|
+
return l.TimeMillisecond;
|
|
3011
3011
|
case m.MICROSECOND:
|
|
3012
|
-
return
|
|
3012
|
+
return l.TimeMicrosecond;
|
|
3013
3013
|
case m.NANOSECOND:
|
|
3014
|
-
return
|
|
3014
|
+
return l.TimeNanosecond;
|
|
3015
3015
|
}
|
|
3016
|
-
return
|
|
3017
|
-
case
|
|
3016
|
+
return l.Time;
|
|
3017
|
+
case l.Timestamp:
|
|
3018
3018
|
switch (s.unit) {
|
|
3019
3019
|
case m.SECOND:
|
|
3020
|
-
return
|
|
3020
|
+
return l.TimestampSecond;
|
|
3021
3021
|
case m.MILLISECOND:
|
|
3022
|
-
return
|
|
3022
|
+
return l.TimestampMillisecond;
|
|
3023
3023
|
case m.MICROSECOND:
|
|
3024
|
-
return
|
|
3024
|
+
return l.TimestampMicrosecond;
|
|
3025
3025
|
case m.NANOSECOND:
|
|
3026
|
-
return
|
|
3026
|
+
return l.TimestampNanosecond;
|
|
3027
3027
|
}
|
|
3028
|
-
return
|
|
3029
|
-
case
|
|
3028
|
+
return l.Timestamp;
|
|
3029
|
+
case l.Date:
|
|
3030
3030
|
switch (s.unit) {
|
|
3031
3031
|
case pt.DAY:
|
|
3032
|
-
return
|
|
3032
|
+
return l.DateDay;
|
|
3033
3033
|
case pt.MILLISECOND:
|
|
3034
|
-
return
|
|
3034
|
+
return l.DateMillisecond;
|
|
3035
3035
|
}
|
|
3036
|
-
return
|
|
3037
|
-
case
|
|
3036
|
+
return l.Date;
|
|
3037
|
+
case l.Interval:
|
|
3038
3038
|
switch (s.unit) {
|
|
3039
3039
|
case At.DAY_TIME:
|
|
3040
|
-
return
|
|
3040
|
+
return l.IntervalDayTime;
|
|
3041
3041
|
case At.YEAR_MONTH:
|
|
3042
|
-
return
|
|
3042
|
+
return l.IntervalYearMonth;
|
|
3043
3043
|
}
|
|
3044
|
-
return
|
|
3045
|
-
case
|
|
3044
|
+
return l.Interval;
|
|
3045
|
+
case l.Duration:
|
|
3046
3046
|
switch (s.unit) {
|
|
3047
3047
|
case m.SECOND:
|
|
3048
|
-
return
|
|
3048
|
+
return l.DurationSecond;
|
|
3049
3049
|
case m.MILLISECOND:
|
|
3050
|
-
return
|
|
3050
|
+
return l.DurationMillisecond;
|
|
3051
3051
|
case m.MICROSECOND:
|
|
3052
|
-
return
|
|
3052
|
+
return l.DurationMicrosecond;
|
|
3053
3053
|
case m.NANOSECOND:
|
|
3054
|
-
return
|
|
3054
|
+
return l.DurationNanosecond;
|
|
3055
3055
|
}
|
|
3056
|
-
return
|
|
3057
|
-
case
|
|
3058
|
-
return
|
|
3059
|
-
case
|
|
3060
|
-
return
|
|
3061
|
-
case
|
|
3062
|
-
return
|
|
3063
|
-
case
|
|
3056
|
+
return l.Duration;
|
|
3057
|
+
case l.Map:
|
|
3058
|
+
return l.Map;
|
|
3059
|
+
case l.List:
|
|
3060
|
+
return l.List;
|
|
3061
|
+
case l.Struct:
|
|
3062
|
+
return l.Struct;
|
|
3063
|
+
case l.Union:
|
|
3064
3064
|
switch (s.mode) {
|
|
3065
3065
|
case H.Dense:
|
|
3066
|
-
return
|
|
3066
|
+
return l.DenseUnion;
|
|
3067
3067
|
case H.Sparse:
|
|
3068
|
-
return
|
|
3068
|
+
return l.SparseUnion;
|
|
3069
3069
|
}
|
|
3070
|
-
return
|
|
3071
|
-
case
|
|
3072
|
-
return
|
|
3073
|
-
case
|
|
3074
|
-
return
|
|
3075
|
-
case
|
|
3076
|
-
return
|
|
3070
|
+
return l.Union;
|
|
3071
|
+
case l.FixedSizeBinary:
|
|
3072
|
+
return l.FixedSizeBinary;
|
|
3073
|
+
case l.FixedSizeList:
|
|
3074
|
+
return l.FixedSizeList;
|
|
3075
|
+
case l.Dictionary:
|
|
3076
|
+
return l.Dictionary;
|
|
3077
3077
|
}
|
|
3078
|
-
throw new Error(`Unrecognized type '${
|
|
3078
|
+
throw new Error(`Unrecognized type '${l[s.typeId]}'`);
|
|
3079
3079
|
}
|
|
3080
3080
|
O.prototype.visitInt8 = null;
|
|
3081
3081
|
O.prototype.visitInt16 = null;
|
|
@@ -3170,9 +3170,9 @@ const Ko = (s, t, e) => {
|
|
|
3170
3170
|
s[t] = BigInt(e / 1e3);
|
|
3171
3171
|
}, ai = ({ values: s }, t, e) => {
|
|
3172
3172
|
s[t] = BigInt(e);
|
|
3173
|
-
}, ci = ({ values: s }, t, e) => {
|
|
3174
|
-
s[t] = BigInt(e * 1e3);
|
|
3175
3173
|
}, li = ({ values: s }, t, e) => {
|
|
3174
|
+
s[t] = BigInt(e * 1e3);
|
|
3175
|
+
}, ci = ({ values: s }, t, e) => {
|
|
3176
3176
|
s[t] = BigInt(e * 1e6);
|
|
3177
3177
|
}, Zo = (s, t, e) => {
|
|
3178
3178
|
switch (s.type.unit) {
|
|
@@ -3181,16 +3181,16 @@ const Ko = (s, t, e) => {
|
|
|
3181
3181
|
case m.MILLISECOND:
|
|
3182
3182
|
return ai(s, t, e);
|
|
3183
3183
|
case m.MICROSECOND:
|
|
3184
|
-
return ci(s, t, e);
|
|
3185
|
-
case m.NANOSECOND:
|
|
3186
3184
|
return li(s, t, e);
|
|
3185
|
+
case m.NANOSECOND:
|
|
3186
|
+
return ci(s, t, e);
|
|
3187
3187
|
}
|
|
3188
3188
|
}, ui = ({ values: s }, t, e) => {
|
|
3189
3189
|
s[t] = e;
|
|
3190
|
-
}, hi = ({ values: s }, t, e) => {
|
|
3191
|
-
s[t] = e;
|
|
3192
3190
|
}, di = ({ values: s }, t, e) => {
|
|
3193
3191
|
s[t] = e;
|
|
3192
|
+
}, hi = ({ values: s }, t, e) => {
|
|
3193
|
+
s[t] = e;
|
|
3194
3194
|
}, pi = ({ values: s }, t, e) => {
|
|
3195
3195
|
s[t] = e;
|
|
3196
3196
|
}, Xo = (s, t, e) => {
|
|
@@ -3198,9 +3198,9 @@ const Ko = (s, t, e) => {
|
|
|
3198
3198
|
case m.SECOND:
|
|
3199
3199
|
return ui(s, t, e);
|
|
3200
3200
|
case m.MILLISECOND:
|
|
3201
|
-
return hi(s, t, e);
|
|
3202
|
-
case m.MICROSECOND:
|
|
3203
3201
|
return di(s, t, e);
|
|
3202
|
+
case m.MICROSECOND:
|
|
3203
|
+
return hi(s, t, e);
|
|
3204
3204
|
case m.NANOSECOND:
|
|
3205
3205
|
return pi(s, t, e);
|
|
3206
3206
|
}
|
|
@@ -3209,22 +3209,22 @@ const Ko = (s, t, e) => {
|
|
|
3209
3209
|
}, ea = (s, t, e) => {
|
|
3210
3210
|
const n = s.children[0], r = s.valueOffsets, i = ft.getVisitFn(n);
|
|
3211
3211
|
if (Array.isArray(e))
|
|
3212
|
-
for (let o = -1, a = r[t],
|
|
3212
|
+
for (let o = -1, a = r[t], c = r[t + 1]; a < c; )
|
|
3213
3213
|
i(n, a++, e[++o]);
|
|
3214
3214
|
else
|
|
3215
|
-
for (let o = -1, a = r[t],
|
|
3215
|
+
for (let o = -1, a = r[t], c = r[t + 1]; a < c; )
|
|
3216
3216
|
i(n, a++, e.get(++o));
|
|
3217
3217
|
}, sa = (s, t, e) => {
|
|
3218
3218
|
const n = s.children[0], { valueOffsets: r } = s, i = ft.getVisitFn(n);
|
|
3219
3219
|
let { [t]: o, [t + 1]: a } = r;
|
|
3220
|
-
const
|
|
3221
|
-
for (const u of
|
|
3220
|
+
const c = e instanceof Map ? e.entries() : Object.entries(e);
|
|
3221
|
+
for (const u of c)
|
|
3222
3222
|
if (i(n, o, u), ++o >= a)
|
|
3223
3223
|
break;
|
|
3224
3224
|
}, na = (s, t) => (e, n, r, i) => n && e(n, s, t[i]), ra = (s, t) => (e, n, r, i) => n && e(n, s, t.get(i)), ia = (s, t) => (e, n, r, i) => n && e(n, s, t.get(r.name)), oa = (s, t) => (e, n, r, i) => n && e(n, s, t[r.name]), aa = (s, t, e) => {
|
|
3225
3225
|
const n = s.type.children.map((i) => ft.getVisitFn(i.type)), r = e instanceof Map ? ia(t, e) : e instanceof F ? ra(t, e) : Array.isArray(e) ? na(t, e) : oa(t, e);
|
|
3226
3226
|
s.type.children.forEach((i, o) => r(n[o], s.children[o], i, o));
|
|
3227
|
-
},
|
|
3227
|
+
}, la = (s, t, e) => {
|
|
3228
3228
|
s.type.mode === H.Dense ? fi(s, t, e) : yi(s, t, e);
|
|
3229
3229
|
}, fi = (s, t, e) => {
|
|
3230
3230
|
const n = s.type.typeIdToChildIndex[s.typeIds[t]], r = s.children[n];
|
|
@@ -3232,7 +3232,7 @@ const Ko = (s, t, e) => {
|
|
|
3232
3232
|
}, yi = (s, t, e) => {
|
|
3233
3233
|
const n = s.type.typeIdToChildIndex[s.typeIds[t]], r = s.children[n];
|
|
3234
3234
|
ft.visit(r, t, e);
|
|
3235
|
-
},
|
|
3235
|
+
}, ca = (s, t, e) => {
|
|
3236
3236
|
var n;
|
|
3237
3237
|
(n = s.dictionary) === null || n === void 0 || n.set(s.values[t], e);
|
|
3238
3238
|
}, ua = (s, t, e) => {
|
|
@@ -3249,7 +3249,7 @@ const Ko = (s, t, e) => {
|
|
|
3249
3249
|
s[t] = e;
|
|
3250
3250
|
}, Ii = ({ values: s }, t, e) => {
|
|
3251
3251
|
s[t] = e;
|
|
3252
|
-
},
|
|
3252
|
+
}, da = (s, t, e) => {
|
|
3253
3253
|
switch (s.type.unit) {
|
|
3254
3254
|
case m.SECOND:
|
|
3255
3255
|
return mi(s, t, e);
|
|
@@ -3260,7 +3260,7 @@ const Ko = (s, t, e) => {
|
|
|
3260
3260
|
case m.NANOSECOND:
|
|
3261
3261
|
return Ii(s, t, e);
|
|
3262
3262
|
}
|
|
3263
|
-
},
|
|
3263
|
+
}, ha = (s, t, e) => {
|
|
3264
3264
|
const { stride: n } = s, r = s.children[0], i = ft.getVisitFn(r);
|
|
3265
3265
|
if (Array.isArray(e))
|
|
3266
3266
|
for (let o = -1, a = t * n; ++o < n; )
|
|
@@ -3294,29 +3294,29 @@ _.prototype.visitDateMillisecond = w(ni);
|
|
|
3294
3294
|
_.prototype.visitTimestamp = w(Zo);
|
|
3295
3295
|
_.prototype.visitTimestampSecond = w(oi);
|
|
3296
3296
|
_.prototype.visitTimestampMillisecond = w(ai);
|
|
3297
|
-
_.prototype.visitTimestampMicrosecond = w(
|
|
3298
|
-
_.prototype.visitTimestampNanosecond = w(
|
|
3297
|
+
_.prototype.visitTimestampMicrosecond = w(li);
|
|
3298
|
+
_.prototype.visitTimestampNanosecond = w(ci);
|
|
3299
3299
|
_.prototype.visitTime = w(Xo);
|
|
3300
3300
|
_.prototype.visitTimeSecond = w(ui);
|
|
3301
|
-
_.prototype.visitTimeMillisecond = w(
|
|
3302
|
-
_.prototype.visitTimeMicrosecond = w(
|
|
3301
|
+
_.prototype.visitTimeMillisecond = w(di);
|
|
3302
|
+
_.prototype.visitTimeMicrosecond = w(hi);
|
|
3303
3303
|
_.prototype.visitTimeNanosecond = w(pi);
|
|
3304
3304
|
_.prototype.visitDecimal = w(ta);
|
|
3305
3305
|
_.prototype.visitList = w(ea);
|
|
3306
3306
|
_.prototype.visitStruct = w(aa);
|
|
3307
|
-
_.prototype.visitUnion = w(
|
|
3307
|
+
_.prototype.visitUnion = w(la);
|
|
3308
3308
|
_.prototype.visitDenseUnion = w(fi);
|
|
3309
3309
|
_.prototype.visitSparseUnion = w(yi);
|
|
3310
|
-
_.prototype.visitDictionary = w(
|
|
3310
|
+
_.prototype.visitDictionary = w(ca);
|
|
3311
3311
|
_.prototype.visitInterval = w(ua);
|
|
3312
3312
|
_.prototype.visitIntervalDayTime = w(bi);
|
|
3313
3313
|
_.prototype.visitIntervalYearMonth = w(gi);
|
|
3314
|
-
_.prototype.visitDuration = w(
|
|
3314
|
+
_.prototype.visitDuration = w(da);
|
|
3315
3315
|
_.prototype.visitDurationSecond = w(mi);
|
|
3316
3316
|
_.prototype.visitDurationMillisecond = w(_i);
|
|
3317
3317
|
_.prototype.visitDurationMicrosecond = w(vi);
|
|
3318
3318
|
_.prototype.visitDurationNanosecond = w(Ii);
|
|
3319
|
-
_.prototype.visitFixedSizeList = w(
|
|
3319
|
+
_.prototype.visitFixedSizeList = w(ha);
|
|
3320
3320
|
_.prototype.visitMap = w(sa);
|
|
3321
3321
|
const ft = new _(), yt = Symbol.for("parent"), ye = Symbol.for("rowIndex");
|
|
3322
3322
|
class _n {
|
|
@@ -3520,13 +3520,13 @@ f.prototype.visitDurationMicrosecond = v(ji);
|
|
|
3520
3520
|
f.prototype.visitDurationNanosecond = v(Yi);
|
|
3521
3521
|
f.prototype.visitFixedSizeList = v(La);
|
|
3522
3522
|
f.prototype.visitMap = v(Aa);
|
|
3523
|
-
const st = new f(), ue = Symbol.for("keys"), be = Symbol.for("vals"),
|
|
3523
|
+
const st = new f(), ue = Symbol.for("keys"), be = Symbol.for("vals"), de = Symbol.for("kKeysAsStrings"), on = Symbol.for("_kKeysAsStrings");
|
|
3524
3524
|
class vn {
|
|
3525
3525
|
constructor(t) {
|
|
3526
3526
|
return this[ue] = new F([t.children[0]]).memoize(), this[be] = t.children[1], new Proxy(this, new Ma());
|
|
3527
3527
|
}
|
|
3528
3528
|
/** @ignore */
|
|
3529
|
-
get [
|
|
3529
|
+
get [de]() {
|
|
3530
3530
|
return this[on] || (this[on] = Array.from(this[ue].toArray(), String));
|
|
3531
3531
|
}
|
|
3532
3532
|
[Symbol.iterator]() {
|
|
@@ -3580,26 +3580,26 @@ class Ma {
|
|
|
3580
3580
|
return !0;
|
|
3581
3581
|
}
|
|
3582
3582
|
ownKeys(t) {
|
|
3583
|
-
return t[
|
|
3583
|
+
return t[de];
|
|
3584
3584
|
}
|
|
3585
3585
|
has(t, e) {
|
|
3586
|
-
return t[
|
|
3586
|
+
return t[de].includes(e);
|
|
3587
3587
|
}
|
|
3588
3588
|
getOwnPropertyDescriptor(t, e) {
|
|
3589
|
-
if (t[
|
|
3589
|
+
if (t[de].indexOf(e) !== -1)
|
|
3590
3590
|
return { writable: !0, enumerable: !0, configurable: !0 };
|
|
3591
3591
|
}
|
|
3592
3592
|
get(t, e) {
|
|
3593
3593
|
if (Reflect.has(t, e))
|
|
3594
3594
|
return t[e];
|
|
3595
|
-
const n = t[
|
|
3595
|
+
const n = t[de].indexOf(e);
|
|
3596
3596
|
if (n !== -1) {
|
|
3597
3597
|
const r = st.visit(Reflect.get(t, be), n);
|
|
3598
3598
|
return Reflect.set(t, e, r), r;
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
set(t, e, n) {
|
|
3602
|
-
const r = t[
|
|
3602
|
+
const r = t[de].indexOf(e);
|
|
3603
3603
|
return r !== -1 ? (ft.visit(Reflect.get(t, be), r, n), Reflect.set(t, e, n)) : Reflect.has(t, e) ? Reflect.set(t, e, n) : !1;
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
@@ -3693,10 +3693,10 @@ function nr(s, t, e) {
|
|
|
3693
3693
|
const n = e[Symbol.iterator](), r = t instanceof Map ? t.keys() : Object.keys(t)[Symbol.iterator](), i = t instanceof Map ? t.values() : Object.values(t)[Symbol.iterator]();
|
|
3694
3694
|
let o = 0;
|
|
3695
3695
|
const a = s.length;
|
|
3696
|
-
let
|
|
3697
|
-
for (; o < a && !u.done && !
|
|
3696
|
+
let c = i.next(), u = n.next(), d = r.next();
|
|
3697
|
+
for (; o < a && !u.done && !d.done && !c.done && !(u.value !== d.value || !s[o](c.value)); ++o, u = n.next(), d = r.next(), c = i.next())
|
|
3698
3698
|
;
|
|
3699
|
-
return o === a && u.done &&
|
|
3699
|
+
return o === a && u.done && d.done && c.done ? !0 : (n.return && n.return(), r.return && r.return(), i.return && i.return(), !1);
|
|
3700
3700
|
}
|
|
3701
3701
|
function Gi(s, t, e, n) {
|
|
3702
3702
|
return (e & 1 << n) !== 0;
|
|
@@ -3803,8 +3803,8 @@ class M {
|
|
|
3803
3803
|
}
|
|
3804
3804
|
constructor(t, e, n, r, i, o = [], a) {
|
|
3805
3805
|
this.type = t, this.children = o, this.dictionary = a, this.offset = Math.floor(Math.max(e || 0, 0)), this.length = Math.floor(Math.max(n || 0, 0)), this._nullCount = Math.floor(Math.max(r || 0, -1));
|
|
3806
|
-
let
|
|
3807
|
-
i instanceof M ? (this.stride = i.stride, this.values = i.values, this.typeIds = i.typeIds, this.nullBitmap = i.nullBitmap, this.valueOffsets = i.valueOffsets) : (this.stride = Ft(t), i && ((
|
|
3806
|
+
let c;
|
|
3807
|
+
i instanceof M ? (this.stride = i.stride, this.values = i.values, this.typeIds = i.typeIds, this.nullBitmap = i.nullBitmap, this.valueOffsets = i.valueOffsets) : (this.stride = Ft(t), i && ((c = i[0]) && (this.valueOffsets = c), (c = i[1]) && (this.values = c), (c = i[2]) && (this.nullBitmap = c), (c = i[3]) && (this.typeIds = c)));
|
|
3808
3808
|
}
|
|
3809
3809
|
getValid(t) {
|
|
3810
3810
|
const { type: e } = this;
|
|
@@ -3826,10 +3826,10 @@ class M {
|
|
|
3826
3826
|
n = o.getValid(a), o.setValid(a, e);
|
|
3827
3827
|
} else {
|
|
3828
3828
|
let { nullBitmap: i } = this;
|
|
3829
|
-
const { offset: o, length: a } = this,
|
|
3830
|
-
(!i || i.byteLength <=
|
|
3831
|
-
const
|
|
3832
|
-
n = (
|
|
3829
|
+
const { offset: o, length: a } = this, c = o + t, u = 1 << c % 8, d = c >> 3;
|
|
3830
|
+
(!i || i.byteLength <= d) && (i = new Uint8Array((o + a + 63 & -64) >> 3).fill(255), this.nullCount > 0 ? (i.set(Es(o, a, this.nullBitmap), 0), Object.assign(this, { nullBitmap: i })) : Object.assign(this, { nullBitmap: i, _nullCount: 0 }));
|
|
3831
|
+
const h = i[d];
|
|
3832
|
+
n = (h & u) !== 0, i[d] = e ? h | u : h & ~u;
|
|
3833
3833
|
}
|
|
3834
3834
|
return n !== !!e && (this._nullCount = this.nullCount + (e ? -1 : 1)), e;
|
|
3835
3835
|
}
|
|
@@ -3837,19 +3837,19 @@ class M {
|
|
|
3837
3837
|
return new M(t, e, n, r, i, o, this.dictionary);
|
|
3838
3838
|
}
|
|
3839
3839
|
slice(t, e) {
|
|
3840
|
-
const { stride: n, typeId: r, children: i } = this, o = +(this._nullCount === 0) - 1, a = r === 16 ? n : 1,
|
|
3840
|
+
const { stride: n, typeId: r, children: i } = this, o = +(this._nullCount === 0) - 1, a = r === 16 ? n : 1, c = this._sliceBuffers(t, e, n, r);
|
|
3841
3841
|
return this.clone(
|
|
3842
3842
|
this.type,
|
|
3843
3843
|
this.offset + t,
|
|
3844
3844
|
e,
|
|
3845
3845
|
o,
|
|
3846
|
-
|
|
3846
|
+
c,
|
|
3847
3847
|
// Don't slice children if we have value offsets (the variable-width types)
|
|
3848
3848
|
i.length === 0 || this.valueOffsets ? i : this._sliceChildren(i, a * t, a * e)
|
|
3849
3849
|
);
|
|
3850
3850
|
}
|
|
3851
3851
|
_changeLengthAndBackfillNullBitmap(t) {
|
|
3852
|
-
if (this.typeId ===
|
|
3852
|
+
if (this.typeId === l.Null)
|
|
3853
3853
|
return this.clone(this.type, 0, t, 0);
|
|
3854
3854
|
const { length: e, nullCount: n } = this, r = new Uint8Array((t + 63 & -64) >> 3).fill(255, 0, e >> 3);
|
|
3855
3855
|
r[e >> 3] = (1 << e - (e & -8)) - 1, n > 0 && r.set(Es(this.offset, e, this.nullBitmap), 0);
|
|
@@ -3888,20 +3888,20 @@ class Le extends O {
|
|
|
3888
3888
|
return new M(e, n, o, a, [void 0, i, r]);
|
|
3889
3889
|
}
|
|
3890
3890
|
visitUtf8(t) {
|
|
3891
|
-
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]:
|
|
3892
|
-
return new M(e, n, a,
|
|
3891
|
+
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
|
|
3892
|
+
return new M(e, n, a, c, [o, r, i]);
|
|
3893
3893
|
}
|
|
3894
3894
|
visitLargeUtf8(t) {
|
|
3895
|
-
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Wn(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]:
|
|
3896
|
-
return new M(e, n, a,
|
|
3895
|
+
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Wn(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
|
|
3896
|
+
return new M(e, n, a, c, [o, r, i]);
|
|
3897
3897
|
}
|
|
3898
3898
|
visitBinary(t) {
|
|
3899
|
-
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]:
|
|
3900
|
-
return new M(e, n, a,
|
|
3899
|
+
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
|
|
3900
|
+
return new M(e, n, a, c, [o, r, i]);
|
|
3901
3901
|
}
|
|
3902
3902
|
visitLargeBinary(t) {
|
|
3903
|
-
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Wn(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]:
|
|
3904
|
-
return new M(e, n, a,
|
|
3903
|
+
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.data), i = D(t.nullBitmap), o = Wn(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
|
|
3904
|
+
return new M(e, n, a, c, [o, r, i]);
|
|
3905
3905
|
}
|
|
3906
3906
|
visitFixedSizeBinary(t) {
|
|
3907
3907
|
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.nullBitmap), i = x(e.ArrayType, t.data), { ["length"]: o = i.length / Ft(e), ["nullCount"]: a = t.nullBitmap ? -1 : 0 } = t;
|
|
@@ -3924,23 +3924,23 @@ class Le extends O {
|
|
|
3924
3924
|
return new M(e, n, o, a, [void 0, i, r]);
|
|
3925
3925
|
}
|
|
3926
3926
|
visitList(t) {
|
|
3927
|
-
const { ["type"]: e, ["offset"]: n = 0, ["child"]: r } = t, i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]:
|
|
3928
|
-
return new M(e, n, a,
|
|
3927
|
+
const { ["type"]: e, ["offset"]: n = 0, ["child"]: r } = t, i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
|
|
3928
|
+
return new M(e, n, a, c, [o, void 0, i], [r]);
|
|
3929
3929
|
}
|
|
3930
3930
|
visitStruct(t) {
|
|
3931
|
-
const { ["type"]: e, ["offset"]: n = 0, ["children"]: r = [] } = t, i = D(t.nullBitmap), { length: o = r.reduce((
|
|
3931
|
+
const { ["type"]: e, ["offset"]: n = 0, ["children"]: r = [] } = t, i = D(t.nullBitmap), { length: o = r.reduce((c, { length: u }) => Math.max(c, u), 0), nullCount: a = t.nullBitmap ? -1 : 0 } = t;
|
|
3932
3932
|
return new M(e, n, o, a, [void 0, void 0, i], r);
|
|
3933
3933
|
}
|
|
3934
3934
|
visitUnion(t) {
|
|
3935
3935
|
const { ["type"]: e, ["offset"]: n = 0, ["children"]: r = [] } = t, i = x(e.ArrayType, t.typeIds), { ["length"]: o = i.length, ["nullCount"]: a = -1 } = t;
|
|
3936
3936
|
if (p.isSparseUnion(e))
|
|
3937
3937
|
return new M(e, n, o, a, [void 0, void 0, void 0, i], r);
|
|
3938
|
-
const
|
|
3939
|
-
return new M(e, n, o, a, [
|
|
3938
|
+
const c = Te(t.valueOffsets);
|
|
3939
|
+
return new M(e, n, o, a, [c, void 0, void 0, i], r);
|
|
3940
3940
|
}
|
|
3941
3941
|
visitDictionary(t) {
|
|
3942
|
-
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.nullBitmap), i = x(e.indices.ArrayType, t.data), { ["dictionary"]: o = new F([new Le().visit({ type: e.dictionary })]) } = t, { ["length"]: a = i.length, ["nullCount"]:
|
|
3943
|
-
return new M(e, n, a,
|
|
3942
|
+
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.nullBitmap), i = x(e.indices.ArrayType, t.data), { ["dictionary"]: o = new F([new Le().visit({ type: e.dictionary })]) } = t, { ["length"]: a = i.length, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
|
|
3943
|
+
return new M(e, n, a, c, [void 0, i, r], [], o);
|
|
3944
3944
|
}
|
|
3945
3945
|
visitInterval(t) {
|
|
3946
3946
|
const { ["type"]: e, ["offset"]: n = 0 } = t, r = D(t.nullBitmap), i = x(e.ArrayType, t.data), { ["length"]: o = i.length / Ft(e), ["nullCount"]: a = t.nullBitmap ? -1 : 0 } = t;
|
|
@@ -3955,8 +3955,8 @@ class Le extends O {
|
|
|
3955
3955
|
return new M(e, n, o, a, [void 0, void 0, i], [r]);
|
|
3956
3956
|
}
|
|
3957
3957
|
visitMap(t) {
|
|
3958
|
-
const { ["type"]: e, ["offset"]: n = 0, ["child"]: r = new Le().visit({ type: e.childType }) } = t, i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]:
|
|
3959
|
-
return new M(e, n, a,
|
|
3958
|
+
const { ["type"]: e, ["offset"]: n = 0, ["child"]: r = new Le().visit({ type: e.childType }) } = t, i = D(t.nullBitmap), o = Te(t.valueOffsets), { ["length"]: a = o.length - 1, ["nullCount"]: c = t.nullBitmap ? -1 : 0 } = t;
|
|
3959
|
+
return new M(e, n, a, c, [o, void 0, i], [r]);
|
|
3960
3960
|
}
|
|
3961
3961
|
}
|
|
3962
3962
|
const Ga = new Le();
|
|
@@ -3992,17 +3992,17 @@ function Ki(s) {
|
|
|
3992
3992
|
function Hi(s, t, e, n) {
|
|
3993
3993
|
const r = [];
|
|
3994
3994
|
for (let i = -1, o = s.length; ++i < o; ) {
|
|
3995
|
-
const a = s[i],
|
|
3996
|
-
if (
|
|
3995
|
+
const a = s[i], c = t[i], { length: u } = a;
|
|
3996
|
+
if (c >= n)
|
|
3997
3997
|
break;
|
|
3998
|
-
if (e >=
|
|
3998
|
+
if (e >= c + u)
|
|
3999
3999
|
continue;
|
|
4000
|
-
if (
|
|
4000
|
+
if (c >= e && c + u <= n) {
|
|
4001
4001
|
r.push(a);
|
|
4002
4002
|
continue;
|
|
4003
4003
|
}
|
|
4004
|
-
const
|
|
4005
|
-
r.push(a.slice(
|
|
4004
|
+
const d = Math.max(0, e - c), h = Math.min(n - c, u);
|
|
4005
|
+
r.push(a.slice(d, h - d));
|
|
4006
4006
|
}
|
|
4007
4007
|
return r.length === 0 && r.push(s[0].slice(0, 0)), r;
|
|
4008
4008
|
}
|
|
@@ -4041,12 +4041,12 @@ function qi(s) {
|
|
|
4041
4041
|
function Qi(s) {
|
|
4042
4042
|
let t;
|
|
4043
4043
|
function e(n, r, i) {
|
|
4044
|
-
let o = i, a = 0,
|
|
4045
|
-
for (let u = r - 1,
|
|
4046
|
-
const
|
|
4047
|
-
if (~(a = s(
|
|
4048
|
-
return
|
|
4049
|
-
o = 0,
|
|
4044
|
+
let o = i, a = 0, c = 0;
|
|
4045
|
+
for (let u = r - 1, d = n.length; ++u < d; ) {
|
|
4046
|
+
const h = n[u];
|
|
4047
|
+
if (~(a = s(h, t, o)))
|
|
4048
|
+
return c + a;
|
|
4049
|
+
o = 0, c += h.length;
|
|
4050
4050
|
}
|
|
4051
4051
|
return -1;
|
|
4052
4052
|
}
|
|
@@ -4079,10 +4079,10 @@ function S(s, t, e) {
|
|
|
4079
4079
|
if (t === null)
|
|
4080
4080
|
switch (s.typeId) {
|
|
4081
4081
|
// Unions don't have a nullBitmap of its own, so compare the `searchElement` to `get()`.
|
|
4082
|
-
case
|
|
4082
|
+
case l.Union:
|
|
4083
4083
|
break;
|
|
4084
4084
|
// Dictionaries do have a nullBitmap, but their dictionary could also have null elements.
|
|
4085
|
-
case
|
|
4085
|
+
case l.Dictionary:
|
|
4086
4086
|
break;
|
|
4087
4087
|
// All other types can iterate the null bitmap
|
|
4088
4088
|
default:
|
|
@@ -4247,8 +4247,8 @@ class F {
|
|
|
4247
4247
|
this._offsets = [0];
|
|
4248
4248
|
break;
|
|
4249
4249
|
case 1: {
|
|
4250
|
-
const { get: a, set:
|
|
4251
|
-
this.isValid = (
|
|
4250
|
+
const { get: a, set: c, indexOf: u } = Xi[o.typeId], d = i[0];
|
|
4251
|
+
this.isValid = (h) => Tn(d, h), this.get = (h) => a(d, h), this.set = (h, j) => c(d, h, j), this.indexOf = (h) => u(d, h), this._offsets = [0, d.length];
|
|
4252
4252
|
break;
|
|
4253
4253
|
}
|
|
4254
4254
|
default:
|
|
@@ -4292,7 +4292,7 @@ class F {
|
|
|
4292
4292
|
* The name of this Vector.
|
|
4293
4293
|
*/
|
|
4294
4294
|
get VectorName() {
|
|
4295
|
-
return `${
|
|
4295
|
+
return `${l[this.type.typeId]}Vector`;
|
|
4296
4296
|
}
|
|
4297
4297
|
/**
|
|
4298
4298
|
* Check whether an element is null.
|
|
@@ -4375,18 +4375,18 @@ class F {
|
|
|
4375
4375
|
toArray() {
|
|
4376
4376
|
const { type: t, data: e, length: n, stride: r, ArrayType: i } = this;
|
|
4377
4377
|
switch (t.typeId) {
|
|
4378
|
-
case
|
|
4379
|
-
case
|
|
4380
|
-
case
|
|
4381
|
-
case
|
|
4382
|
-
case
|
|
4378
|
+
case l.Int:
|
|
4379
|
+
case l.Float:
|
|
4380
|
+
case l.Decimal:
|
|
4381
|
+
case l.Time:
|
|
4382
|
+
case l.Timestamp:
|
|
4383
4383
|
switch (e.length) {
|
|
4384
4384
|
case 0:
|
|
4385
4385
|
return new i();
|
|
4386
4386
|
case 1:
|
|
4387
4387
|
return e[0].values.subarray(0, n * r);
|
|
4388
4388
|
default:
|
|
4389
|
-
return e.reduce((o, { values: a, length:
|
|
4389
|
+
return e.reduce((o, { values: a, length: c }) => (o.array.set(a.subarray(0, c * r), o.offset), o.offset += c * r, o), { array: new i(n * r), offset: 0 }).array;
|
|
4390
4390
|
}
|
|
4391
4391
|
}
|
|
4392
4392
|
return [...this];
|
|
@@ -4458,7 +4458,7 @@ class F {
|
|
|
4458
4458
|
Zi = Symbol.toStringTag;
|
|
4459
4459
|
F[Zi] = ((s) => {
|
|
4460
4460
|
s.type = p.prototype, s.data = [], s.length = 0, s.stride = 1, s.numChildren = 0, s._offsets = new Uint32Array([0]), s[Symbol.isConcatSpreadable] = !0;
|
|
4461
|
-
const t = Object.keys(
|
|
4461
|
+
const t = Object.keys(l).map((e) => l[e]).filter((e) => typeof e == "number" && e !== l.NONE);
|
|
4462
4462
|
for (const e of t) {
|
|
4463
4463
|
const n = st.getVisitFnByTypeId(e), r = ft.getVisitFnByTypeId(e), i = Rs.getVisitFnByTypeId(e);
|
|
4464
4464
|
Xi[e] = { get: n, set: r, indexOf: i }, to[e] = Object.create(s, {
|
|
@@ -4479,8 +4479,8 @@ class Ds extends F {
|
|
|
4479
4479
|
const a = i[o];
|
|
4480
4480
|
if (a !== void 0)
|
|
4481
4481
|
return a;
|
|
4482
|
-
const
|
|
4483
|
-
return i[o] =
|
|
4482
|
+
const c = e.call(this, o);
|
|
4483
|
+
return i[o] = c, c;
|
|
4484
4484
|
}
|
|
4485
4485
|
}), Object.defineProperty(this, "set", {
|
|
4486
4486
|
value(o, a) {
|
|
@@ -4495,7 +4495,7 @@ class Ds extends F {
|
|
|
4495
4495
|
});
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
4498
|
-
class
|
|
4498
|
+
class ln {
|
|
4499
4499
|
constructor() {
|
|
4500
4500
|
this.bb = null, this.bb_pos = 0;
|
|
4501
4501
|
}
|
|
@@ -4551,7 +4551,7 @@ class rt {
|
|
|
4551
4551
|
}
|
|
4552
4552
|
dictionaries(t, e) {
|
|
4553
4553
|
const n = this.bb.__offset(this.bb_pos, 8);
|
|
4554
|
-
return n ? (e || new
|
|
4554
|
+
return n ? (e || new ln()).__init(this.bb.__vector(this.bb_pos + n) + t * 24, this.bb) : null;
|
|
4555
4555
|
}
|
|
4556
4556
|
dictionariesLength() {
|
|
4557
4557
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
@@ -4559,7 +4559,7 @@ class rt {
|
|
|
4559
4559
|
}
|
|
4560
4560
|
recordBatches(t, e) {
|
|
4561
4561
|
const n = this.bb.__offset(this.bb_pos, 10);
|
|
4562
|
-
return n ? (e || new
|
|
4562
|
+
return n ? (e || new ln()).__init(this.bb.__vector(this.bb_pos + n) + t * 24, this.bb) : null;
|
|
4563
4563
|
}
|
|
4564
4564
|
recordBatchesLength() {
|
|
4565
4565
|
const t = this.bb.__offset(this.bb_pos, 10);
|
|
@@ -4621,7 +4621,7 @@ class rt {
|
|
|
4621
4621
|
}
|
|
4622
4622
|
class L {
|
|
4623
4623
|
constructor(t = [], e, n, r = Y.V5) {
|
|
4624
|
-
this.fields = t || [], this.metadata = e || /* @__PURE__ */ new Map(), n || (n =
|
|
4624
|
+
this.fields = t || [], this.metadata = e || /* @__PURE__ */ new Map(), n || (n = cn(this.fields)), this.dictionaries = n, this.metadataVersion = r;
|
|
4625
4625
|
}
|
|
4626
4626
|
get [Symbol.toStringTag]() {
|
|
4627
4627
|
return "Schema";
|
|
@@ -4654,11 +4654,11 @@ class L {
|
|
|
4654
4654
|
}
|
|
4655
4655
|
assign(...t) {
|
|
4656
4656
|
const e = t[0] instanceof L ? t[0] : Array.isArray(t[0]) ? new L(t[0]) : new L(t), n = [...this.fields], r = Ke(Ke(/* @__PURE__ */ new Map(), this.metadata), e.metadata), i = e.fields.filter((a) => {
|
|
4657
|
-
const
|
|
4658
|
-
return ~
|
|
4659
|
-
metadata: Ke(Ke(/* @__PURE__ */ new Map(), n[
|
|
4657
|
+
const c = n.findIndex((u) => u.name === a.name);
|
|
4658
|
+
return ~c ? (n[c] = a.clone({
|
|
4659
|
+
metadata: Ke(Ke(/* @__PURE__ */ new Map(), n[c].metadata), a.metadata)
|
|
4660
4660
|
})) && !1 : !0;
|
|
4661
|
-
}), o =
|
|
4661
|
+
}), o = cn(i, /* @__PURE__ */ new Map());
|
|
4662
4662
|
return new L([...n, ...i], r, new Map([...this.dictionaries, ...o]));
|
|
4663
4663
|
}
|
|
4664
4664
|
}
|
|
@@ -4695,7 +4695,7 @@ V.prototype.metadata = null;
|
|
|
4695
4695
|
function Ke(s, t) {
|
|
4696
4696
|
return new Map([...s || /* @__PURE__ */ new Map(), ...t || /* @__PURE__ */ new Map()]);
|
|
4697
4697
|
}
|
|
4698
|
-
function
|
|
4698
|
+
function cn(s, t = /* @__PURE__ */ new Map()) {
|
|
4699
4699
|
for (let e = -1, n = s.length; ++e < n; ) {
|
|
4700
4700
|
const r = s[e].type;
|
|
4701
4701
|
if (p.isDictionary(r)) {
|
|
@@ -4704,7 +4704,7 @@ function ln(s, t = /* @__PURE__ */ new Map()) {
|
|
|
4704
4704
|
else if (t.get(r.id) !== r.dictionary)
|
|
4705
4705
|
throw new Error("Cannot create Schema containing two different dictionaries with the same Id");
|
|
4706
4706
|
}
|
|
4707
|
-
r.children && r.children.length > 0 &&
|
|
4707
|
+
r.children && r.children.length > 0 && cn(r.children, t);
|
|
4708
4708
|
}
|
|
4709
4709
|
return t;
|
|
4710
4710
|
}
|
|
@@ -4788,7 +4788,7 @@ class Wt {
|
|
|
4788
4788
|
/** @nocollapse */
|
|
4789
4789
|
static encode(t, e) {
|
|
4790
4790
|
const { metaDataLength: n } = e, r = BigInt(e.offset), i = BigInt(e.bodyLength);
|
|
4791
|
-
return
|
|
4791
|
+
return ln.createBlock(t, r, n, i);
|
|
4792
4792
|
}
|
|
4793
4793
|
constructor(t, e, n) {
|
|
4794
4794
|
this.metaDataLength = t, this.offset = P(n), this.bodyLength = P(e);
|
|
@@ -4859,10 +4859,10 @@ class Xa extends On {
|
|
|
4859
4859
|
return this;
|
|
4860
4860
|
}
|
|
4861
4861
|
toDOMStream(t) {
|
|
4862
|
-
return
|
|
4862
|
+
return ct.toDOMStream(this._closedPromiseResolve || this._error ? this : this._values, t);
|
|
4863
4863
|
}
|
|
4864
4864
|
toNodeStream(t) {
|
|
4865
|
-
return
|
|
4865
|
+
return ct.toNodeStream(this._closedPromiseResolve || this._error ? this : this._values, t);
|
|
4866
4866
|
}
|
|
4867
4867
|
throw(t) {
|
|
4868
4868
|
return T(this, void 0, void 0, function* () {
|
|
@@ -4909,16 +4909,16 @@ class es extends Xa {
|
|
|
4909
4909
|
const o = [];
|
|
4910
4910
|
let a = 0;
|
|
4911
4911
|
try {
|
|
4912
|
-
for (var
|
|
4913
|
-
i =
|
|
4914
|
-
const
|
|
4915
|
-
o.push(
|
|
4912
|
+
for (var c = !0, u = Qt(this), d; d = yield u.next(), e = d.done, !e; c = !0) {
|
|
4913
|
+
i = d.value, c = !1;
|
|
4914
|
+
const h = i;
|
|
4915
|
+
o.push(h), a += h.byteLength;
|
|
4916
4916
|
}
|
|
4917
|
-
} catch (
|
|
4918
|
-
n = { error:
|
|
4917
|
+
} catch (h) {
|
|
4918
|
+
n = { error: h };
|
|
4919
4919
|
} finally {
|
|
4920
4920
|
try {
|
|
4921
|
-
!
|
|
4921
|
+
!c && !e && (r = u.return) && (yield r.call(u));
|
|
4922
4922
|
} finally {
|
|
4923
4923
|
if (n) throw n.error;
|
|
4924
4924
|
}
|
|
@@ -4929,7 +4929,7 @@ class es extends Xa {
|
|
|
4929
4929
|
}
|
|
4930
4930
|
class Bs {
|
|
4931
4931
|
constructor(t) {
|
|
4932
|
-
t && (this.source = new
|
|
4932
|
+
t && (this.source = new tl(ct.fromIterable(t)));
|
|
4933
4933
|
}
|
|
4934
4934
|
[Symbol.iterator]() {
|
|
4935
4935
|
return this;
|
|
@@ -4952,7 +4952,7 @@ class Bs {
|
|
|
4952
4952
|
}
|
|
4953
4953
|
class ve {
|
|
4954
4954
|
constructor(t) {
|
|
4955
|
-
t instanceof ve ? this.source = t.source : t instanceof es ? this.source = new Ht(
|
|
4955
|
+
t instanceof ve ? this.source = t.source : t instanceof es ? this.source = new Ht(ct.fromAsyncIterable(t)) : vr(t) ? this.source = new Ht(ct.fromNodeStream(t)) : yn(t) ? this.source = new Ht(ct.fromDOMStream(t)) : _r(t) ? this.source = new Ht(ct.fromDOMStream(t.body)) : Ve(t) ? this.source = new Ht(ct.fromIterable(t)) : Jt(t) ? this.source = new Ht(ct.fromAsyncIterable(t)) : we(t) && (this.source = new Ht(ct.fromAsyncIterable(t)));
|
|
4956
4956
|
}
|
|
4957
4957
|
[Symbol.asyncIterator]() {
|
|
4958
4958
|
return this;
|
|
@@ -4979,7 +4979,7 @@ class ve {
|
|
|
4979
4979
|
return this.source.read(t);
|
|
4980
4980
|
}
|
|
4981
4981
|
}
|
|
4982
|
-
class
|
|
4982
|
+
class tl {
|
|
4983
4983
|
constructor(t) {
|
|
4984
4984
|
this.source = t;
|
|
4985
4985
|
}
|
|
@@ -5095,8 +5095,8 @@ class Ns extends ve {
|
|
|
5095
5095
|
if (e && r < n) {
|
|
5096
5096
|
typeof t != "number" && (t = Number.POSITIVE_INFINITY);
|
|
5097
5097
|
let i = r, o = 0, a = 0;
|
|
5098
|
-
const
|
|
5099
|
-
for (; (i += a) <
|
|
5098
|
+
const c = Math.min(n, i + Math.min(n - i, t)), u = new Uint8Array(Math.max(0, (this.position = c) - i));
|
|
5099
|
+
for (; (i += a) < c && (o += a) < u.byteLength; )
|
|
5100
5100
|
({ bytesRead: a } = yield e.read(u, o, u.byteLength - o, i));
|
|
5101
5101
|
return u;
|
|
5102
5102
|
}
|
|
@@ -5131,8 +5131,8 @@ class Ns extends ve {
|
|
|
5131
5131
|
});
|
|
5132
5132
|
}
|
|
5133
5133
|
}
|
|
5134
|
-
const
|
|
5135
|
-
function
|
|
5134
|
+
const el = 65536;
|
|
5135
|
+
function he(s) {
|
|
5136
5136
|
return s < 0 && (s = 4294967295 + s + 1), `0x${s.toString(16)}`;
|
|
5137
5137
|
}
|
|
5138
5138
|
const Ie = 8, An = [
|
|
@@ -5171,7 +5171,7 @@ class eo {
|
|
|
5171
5171
|
let r = e[3] * n[3];
|
|
5172
5172
|
this.buffer[0] = r & 65535;
|
|
5173
5173
|
let i = r >>> 16;
|
|
5174
|
-
return r = e[2] * n[3], i += r, r = e[3] * n[2] >>> 0, i += r, this.buffer[0] += i << 16, this.buffer[1] = i >>> 0 < r ?
|
|
5174
|
+
return r = e[2] * n[3], i += r, r = e[3] * n[2] >>> 0, i += r, this.buffer[0] += i << 16, this.buffer[1] = i >>> 0 < r ? el : 0, this.buffer[1] += i >>> 16, this.buffer[1] += e[1] * n[3] + e[2] * n[2] + e[3] * n[1], this.buffer[1] += e[0] * n[3] + e[1] * n[2] + e[2] * n[1] + e[3] * n[0] << 16, this;
|
|
5175
5175
|
}
|
|
5176
5176
|
_plus(t) {
|
|
5177
5177
|
const e = this.buffer[0] + t.buffer[0] >>> 0;
|
|
@@ -5187,7 +5187,7 @@ class eo {
|
|
|
5187
5187
|
return t.lessThan(this);
|
|
5188
5188
|
}
|
|
5189
5189
|
hex() {
|
|
5190
|
-
return `${
|
|
5190
|
+
return `${he(this.buffer[1])} ${he(this.buffer[0])}`;
|
|
5191
5191
|
}
|
|
5192
5192
|
}
|
|
5193
5193
|
class C extends eo {
|
|
@@ -5209,8 +5209,8 @@ class C extends eo {
|
|
|
5209
5209
|
static fromString(t, e = new Uint32Array(2)) {
|
|
5210
5210
|
const n = t.length, r = new C(e);
|
|
5211
5211
|
for (let i = 0; i < n; ) {
|
|
5212
|
-
const o = Ie < n - i ? Ie : n - i, a = new C(new Uint32Array([Number.parseInt(t.slice(i, i + o), 10), 0])),
|
|
5213
|
-
r.times(
|
|
5212
|
+
const o = Ie < n - i ? Ie : n - i, a = new C(new Uint32Array([Number.parseInt(t.slice(i, i + o), 10), 0])), c = new C(new Uint32Array([An[o], 0]));
|
|
5213
|
+
r.times(c), r.plus(a), i += o;
|
|
5214
5214
|
}
|
|
5215
5215
|
return r;
|
|
5216
5216
|
}
|
|
@@ -5230,7 +5230,7 @@ class C extends eo {
|
|
|
5230
5230
|
return new C(new Uint32Array(t.buffer)).plus(e);
|
|
5231
5231
|
}
|
|
5232
5232
|
}
|
|
5233
|
-
class
|
|
5233
|
+
class lt extends eo {
|
|
5234
5234
|
negate() {
|
|
5235
5235
|
return this.buffer[0] = ~this.buffer[0] + 1, this.buffer[1] = ~this.buffer[1], this.buffer[0] == 0 && ++this.buffer[1], this;
|
|
5236
5236
|
}
|
|
@@ -5246,18 +5246,18 @@ class ct extends eo {
|
|
|
5246
5246
|
}
|
|
5247
5247
|
/** @nocollapse */
|
|
5248
5248
|
static from(t, e = new Uint32Array(2)) {
|
|
5249
|
-
return
|
|
5249
|
+
return lt.fromString(typeof t == "string" ? t : t.toString(), e);
|
|
5250
5250
|
}
|
|
5251
5251
|
/** @nocollapse */
|
|
5252
5252
|
static fromNumber(t, e = new Uint32Array(2)) {
|
|
5253
|
-
return
|
|
5253
|
+
return lt.fromString(t.toString(), e);
|
|
5254
5254
|
}
|
|
5255
5255
|
/** @nocollapse */
|
|
5256
5256
|
static fromString(t, e = new Uint32Array(2)) {
|
|
5257
|
-
const n = t.startsWith("-"), r = t.length, i = new
|
|
5257
|
+
const n = t.startsWith("-"), r = t.length, i = new lt(e);
|
|
5258
5258
|
for (let o = n ? 1 : 0; o < r; ) {
|
|
5259
|
-
const a = Ie < r - o ? Ie : r - o,
|
|
5260
|
-
i.times(u), i.plus(
|
|
5259
|
+
const a = Ie < r - o ? Ie : r - o, c = new lt(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0])), u = new lt(new Uint32Array([An[a], 0]));
|
|
5260
|
+
i.times(u), i.plus(c), o += a;
|
|
5261
5261
|
}
|
|
5262
5262
|
return n ? i.negate() : i;
|
|
5263
5263
|
}
|
|
@@ -5265,16 +5265,16 @@ class ct extends eo {
|
|
|
5265
5265
|
static convertArray(t) {
|
|
5266
5266
|
const e = new Uint32Array(t.length * 2);
|
|
5267
5267
|
for (let n = -1, r = t.length; ++n < r; )
|
|
5268
|
-
|
|
5268
|
+
lt.from(t[n], new Uint32Array(e.buffer, e.byteOffset + 2 * n * 4, 2));
|
|
5269
5269
|
return e;
|
|
5270
5270
|
}
|
|
5271
5271
|
/** @nocollapse */
|
|
5272
5272
|
static multiply(t, e) {
|
|
5273
|
-
return new
|
|
5273
|
+
return new lt(new Uint32Array(t.buffer)).times(e);
|
|
5274
5274
|
}
|
|
5275
5275
|
/** @nocollapse */
|
|
5276
5276
|
static add(t, e) {
|
|
5277
|
-
return new
|
|
5277
|
+
return new lt(new Uint32Array(t.buffer)).plus(e);
|
|
5278
5278
|
}
|
|
5279
5279
|
}
|
|
5280
5280
|
class vt {
|
|
@@ -5282,27 +5282,27 @@ class vt {
|
|
|
5282
5282
|
this.buffer = t;
|
|
5283
5283
|
}
|
|
5284
5284
|
high() {
|
|
5285
|
-
return new
|
|
5285
|
+
return new lt(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset + 8, 2));
|
|
5286
5286
|
}
|
|
5287
5287
|
low() {
|
|
5288
|
-
return new
|
|
5288
|
+
return new lt(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset, 2));
|
|
5289
5289
|
}
|
|
5290
5290
|
negate() {
|
|
5291
5291
|
return this.buffer[0] = ~this.buffer[0] + 1, this.buffer[1] = ~this.buffer[1], this.buffer[2] = ~this.buffer[2], this.buffer[3] = ~this.buffer[3], this.buffer[0] == 0 && ++this.buffer[1], this.buffer[1] == 0 && ++this.buffer[2], this.buffer[2] == 0 && ++this.buffer[3], this;
|
|
5292
5292
|
}
|
|
5293
5293
|
times(t) {
|
|
5294
|
-
const e = new C(new Uint32Array([this.buffer[3], 0])), n = new C(new Uint32Array([this.buffer[2], 0])), r = new C(new Uint32Array([this.buffer[1], 0])), i = new C(new Uint32Array([this.buffer[0], 0])), o = new C(new Uint32Array([t.buffer[3], 0])), a = new C(new Uint32Array([t.buffer[2], 0])),
|
|
5295
|
-
let
|
|
5296
|
-
this.buffer[0] =
|
|
5297
|
-
const
|
|
5298
|
-
return
|
|
5294
|
+
const e = new C(new Uint32Array([this.buffer[3], 0])), n = new C(new Uint32Array([this.buffer[2], 0])), r = new C(new Uint32Array([this.buffer[1], 0])), i = new C(new Uint32Array([this.buffer[0], 0])), o = new C(new Uint32Array([t.buffer[3], 0])), a = new C(new Uint32Array([t.buffer[2], 0])), c = new C(new Uint32Array([t.buffer[1], 0])), u = new C(new Uint32Array([t.buffer[0], 0]));
|
|
5295
|
+
let d = C.multiply(i, u);
|
|
5296
|
+
this.buffer[0] = d.low();
|
|
5297
|
+
const h = new C(new Uint32Array([d.high(), 0]));
|
|
5298
|
+
return d = C.multiply(r, u), h.plus(d), d = C.multiply(i, c), h.plus(d), this.buffer[1] = h.low(), this.buffer[3] = h.lessThan(d) ? 1 : 0, this.buffer[2] = h.high(), new C(new Uint32Array(this.buffer.buffer, this.buffer.byteOffset + 8, 2)).plus(C.multiply(n, u)).plus(C.multiply(r, c)).plus(C.multiply(i, a)), this.buffer[3] += C.multiply(e, u).plus(C.multiply(n, c)).plus(C.multiply(r, a)).plus(C.multiply(i, o)).low(), this;
|
|
5299
5299
|
}
|
|
5300
5300
|
plus(t) {
|
|
5301
5301
|
const e = new Uint32Array(4);
|
|
5302
5302
|
return e[3] = this.buffer[3] + t.buffer[3] >>> 0, e[2] = this.buffer[2] + t.buffer[2] >>> 0, e[1] = this.buffer[1] + t.buffer[1] >>> 0, e[0] = this.buffer[0] + t.buffer[0] >>> 0, e[0] < this.buffer[0] >>> 0 && ++e[1], e[1] < this.buffer[1] >>> 0 && ++e[2], e[2] < this.buffer[2] >>> 0 && ++e[3], this.buffer[3] = e[3], this.buffer[2] = e[2], this.buffer[1] = e[1], this.buffer[0] = e[0], this;
|
|
5303
5303
|
}
|
|
5304
5304
|
hex() {
|
|
5305
|
-
return `${
|
|
5305
|
+
return `${he(this.buffer[3])} ${he(this.buffer[2])} ${he(this.buffer[1])} ${he(this.buffer[0])}`;
|
|
5306
5306
|
}
|
|
5307
5307
|
/** @nocollapse */
|
|
5308
5308
|
static multiply(t, e) {
|
|
@@ -5324,8 +5324,8 @@ class vt {
|
|
|
5324
5324
|
static fromString(t, e = new Uint32Array(4)) {
|
|
5325
5325
|
const n = t.startsWith("-"), r = t.length, i = new vt(e);
|
|
5326
5326
|
for (let o = n ? 1 : 0; o < r; ) {
|
|
5327
|
-
const a = Ie < r - o ? Ie : r - o,
|
|
5328
|
-
i.times(u), i.plus(
|
|
5327
|
+
const a = Ie < r - o ? Ie : r - o, c = new vt(new Uint32Array([Number.parseInt(t.slice(o, o + a), 10), 0, 0, 0])), u = new vt(new Uint32Array([An[a], 0, 0, 0]));
|
|
5328
|
+
i.times(u), i.plus(c), o += a;
|
|
5329
5329
|
}
|
|
5330
5330
|
return n ? i.negate() : i;
|
|
5331
5331
|
}
|
|
@@ -5435,7 +5435,7 @@ class so extends O {
|
|
|
5435
5435
|
return this.dictionaries.get(t.id);
|
|
5436
5436
|
}
|
|
5437
5437
|
}
|
|
5438
|
-
class
|
|
5438
|
+
class sl extends so {
|
|
5439
5439
|
constructor(t, e, n, r, i) {
|
|
5440
5440
|
super(new Uint8Array(0), e, n, r, i), this.sources = t;
|
|
5441
5441
|
}
|
|
@@ -5450,10 +5450,10 @@ class sc extends so {
|
|
|
5450
5450
|
}
|
|
5451
5451
|
readData(t, { offset: e } = this.nextBufferRange()) {
|
|
5452
5452
|
const { sources: n } = this;
|
|
5453
|
-
return p.isTimestamp(t) || (p.isInt(t) || p.isTime(t)) && t.bitWidth === 64 || p.isDuration(t) || p.isDate(t) && t.unit === pt.MILLISECOND ? x(Uint8Array,
|
|
5453
|
+
return p.isTimestamp(t) || (p.isInt(t) || p.isTime(t)) && t.bitWidth === 64 || p.isDuration(t) || p.isDate(t) && t.unit === pt.MILLISECOND ? x(Uint8Array, lt.convertArray(n[e])) : p.isDecimal(t) ? x(Uint8Array, vt.convertArray(n[e])) : p.isBinary(t) || p.isLargeBinary(t) || p.isFixedSizeBinary(t) ? nl(n[e]) : p.isBool(t) ? Os(n[e]) : p.isUtf8(t) || p.isLargeUtf8(t) ? fn(n[e].join("")) : x(Uint8Array, x(t.ArrayType, n[e].map((r) => +r)));
|
|
5454
5454
|
}
|
|
5455
5455
|
}
|
|
5456
|
-
function
|
|
5456
|
+
function nl(s) {
|
|
5457
5457
|
const t = s.join(""), e = new Uint8Array(t.length / 2);
|
|
5458
5458
|
for (let n = 0; n < t.length; n += 2)
|
|
5459
5459
|
e[n >> 1] = Number.parseInt(t.slice(n, n + 2), 16);
|
|
@@ -5482,7 +5482,7 @@ function Ct(s, t) {
|
|
|
5482
5482
|
function Ps(s, t) {
|
|
5483
5483
|
return s === t || Z(s, t) && s.precision === t.precision;
|
|
5484
5484
|
}
|
|
5485
|
-
function
|
|
5485
|
+
function rl(s, t) {
|
|
5486
5486
|
return s === t || Z(s, t) && s.byteWidth === t.byteWidth;
|
|
5487
5487
|
}
|
|
5488
5488
|
function Rn(s, t) {
|
|
@@ -5494,16 +5494,16 @@ function ze(s, t) {
|
|
|
5494
5494
|
function je(s, t) {
|
|
5495
5495
|
return s === t || Z(s, t) && s.unit === t.unit && s.bitWidth === t.bitWidth;
|
|
5496
5496
|
}
|
|
5497
|
-
function
|
|
5497
|
+
function il(s, t) {
|
|
5498
5498
|
return s === t || Z(s, t) && s.children.length === t.children.length && Gt.compareManyFields(s.children, t.children);
|
|
5499
5499
|
}
|
|
5500
|
-
function
|
|
5500
|
+
function ol(s, t) {
|
|
5501
5501
|
return s === t || Z(s, t) && s.children.length === t.children.length && Gt.compareManyFields(s.children, t.children);
|
|
5502
5502
|
}
|
|
5503
5503
|
function Dn(s, t) {
|
|
5504
5504
|
return s === t || Z(s, t) && s.mode === t.mode && s.typeIds.every((e, n) => e === t.typeIds[n]) && Gt.compareManyFields(s.children, t.children);
|
|
5505
5505
|
}
|
|
5506
|
-
function
|
|
5506
|
+
function al(s, t) {
|
|
5507
5507
|
return s === t || Z(s, t) && s.id === t.id && s.isOrdered === t.isOrdered && Gt.visit(s.indices, t.indices) && Gt.visit(s.dictionary, t.dictionary);
|
|
5508
5508
|
}
|
|
5509
5509
|
function Bn(s, t) {
|
|
@@ -5512,10 +5512,10 @@ function Bn(s, t) {
|
|
|
5512
5512
|
function Ye(s, t) {
|
|
5513
5513
|
return s === t || Z(s, t) && s.unit === t.unit;
|
|
5514
5514
|
}
|
|
5515
|
-
function
|
|
5515
|
+
function ll(s, t) {
|
|
5516
5516
|
return s === t || Z(s, t) && s.listSize === t.listSize && s.children.length === t.children.length && Gt.compareManyFields(s.children, t.children);
|
|
5517
5517
|
}
|
|
5518
|
-
function
|
|
5518
|
+
function cl(s, t) {
|
|
5519
5519
|
return s === t || Z(s, t) && s.keysSorted === t.keysSorted && s.children.length === t.children.length && Gt.compareManyFields(s.children, t.children);
|
|
5520
5520
|
}
|
|
5521
5521
|
g.prototype.visitNull = Xt;
|
|
@@ -5537,7 +5537,7 @@ g.prototype.visitUtf8 = Xt;
|
|
|
5537
5537
|
g.prototype.visitLargeUtf8 = Xt;
|
|
5538
5538
|
g.prototype.visitBinary = Xt;
|
|
5539
5539
|
g.prototype.visitLargeBinary = Xt;
|
|
5540
|
-
g.prototype.visitFixedSizeBinary =
|
|
5540
|
+
g.prototype.visitFixedSizeBinary = rl;
|
|
5541
5541
|
g.prototype.visitDate = Rn;
|
|
5542
5542
|
g.prototype.visitDateDay = Rn;
|
|
5543
5543
|
g.prototype.visitDateMillisecond = Rn;
|
|
@@ -5552,12 +5552,12 @@ g.prototype.visitTimeMillisecond = je;
|
|
|
5552
5552
|
g.prototype.visitTimeMicrosecond = je;
|
|
5553
5553
|
g.prototype.visitTimeNanosecond = je;
|
|
5554
5554
|
g.prototype.visitDecimal = Xt;
|
|
5555
|
-
g.prototype.visitList =
|
|
5556
|
-
g.prototype.visitStruct =
|
|
5555
|
+
g.prototype.visitList = il;
|
|
5556
|
+
g.prototype.visitStruct = ol;
|
|
5557
5557
|
g.prototype.visitUnion = Dn;
|
|
5558
5558
|
g.prototype.visitDenseUnion = Dn;
|
|
5559
5559
|
g.prototype.visitSparseUnion = Dn;
|
|
5560
|
-
g.prototype.visitDictionary =
|
|
5560
|
+
g.prototype.visitDictionary = al;
|
|
5561
5561
|
g.prototype.visitInterval = Bn;
|
|
5562
5562
|
g.prototype.visitIntervalDayTime = Bn;
|
|
5563
5563
|
g.prototype.visitIntervalYearMonth = Bn;
|
|
@@ -5566,46 +5566,46 @@ g.prototype.visitDurationSecond = Ye;
|
|
|
5566
5566
|
g.prototype.visitDurationMillisecond = Ye;
|
|
5567
5567
|
g.prototype.visitDurationMicrosecond = Ye;
|
|
5568
5568
|
g.prototype.visitDurationNanosecond = Ye;
|
|
5569
|
-
g.prototype.visitFixedSizeList =
|
|
5570
|
-
g.prototype.visitMap =
|
|
5569
|
+
g.prototype.visitFixedSizeList = ll;
|
|
5570
|
+
g.prototype.visitMap = cl;
|
|
5571
5571
|
const Gt = new g();
|
|
5572
5572
|
function un(s, t) {
|
|
5573
5573
|
return Gt.compareSchemas(s, t);
|
|
5574
5574
|
}
|
|
5575
5575
|
function $s(s, t) {
|
|
5576
|
-
return
|
|
5576
|
+
return ul(s, t.map((e) => e.data.concat()));
|
|
5577
5577
|
}
|
|
5578
|
-
function
|
|
5579
|
-
const e = [...s.fields], n = [], r = { numBatches: t.reduce((
|
|
5578
|
+
function ul(s, t) {
|
|
5579
|
+
const e = [...s.fields], n = [], r = { numBatches: t.reduce((h, j) => Math.max(h, j.length), 0) };
|
|
5580
5580
|
let i = 0, o = 0, a = -1;
|
|
5581
|
-
const
|
|
5582
|
-
let u,
|
|
5581
|
+
const c = t.length;
|
|
5582
|
+
let u, d = [];
|
|
5583
5583
|
for (; r.numBatches-- > 0; ) {
|
|
5584
|
-
for (o = Number.POSITIVE_INFINITY, a = -1; ++a <
|
|
5585
|
-
|
|
5586
|
-
Number.isFinite(o) && (
|
|
5584
|
+
for (o = Number.POSITIVE_INFINITY, a = -1; ++a < c; )
|
|
5585
|
+
d[a] = u = t[a].shift(), o = Math.min(o, u ? u.length : o);
|
|
5586
|
+
Number.isFinite(o) && (d = dl(e, o, d, t, r), o > 0 && (n[i++] = A({
|
|
5587
5587
|
type: new Q(e),
|
|
5588
5588
|
length: o,
|
|
5589
5589
|
nullCount: 0,
|
|
5590
|
-
children:
|
|
5590
|
+
children: d.slice()
|
|
5591
5591
|
})));
|
|
5592
5592
|
}
|
|
5593
5593
|
return [
|
|
5594
5594
|
s = s.assign(e),
|
|
5595
|
-
n.map((
|
|
5595
|
+
n.map((h) => new tt(s, h))
|
|
5596
5596
|
];
|
|
5597
5597
|
}
|
|
5598
|
-
function
|
|
5598
|
+
function dl(s, t, e, n, r) {
|
|
5599
5599
|
var i;
|
|
5600
5600
|
const o = (t + 63 & -64) >> 3;
|
|
5601
|
-
for (let a = -1,
|
|
5602
|
-
const u = e[a],
|
|
5603
|
-
if (
|
|
5604
|
-
|
|
5601
|
+
for (let a = -1, c = n.length; ++a < c; ) {
|
|
5602
|
+
const u = e[a], d = u == null ? void 0 : u.length;
|
|
5603
|
+
if (d >= t)
|
|
5604
|
+
d === t ? e[a] = u : (e[a] = u.slice(0, t), r.numBatches = Math.max(r.numBatches, n[a].unshift(u.slice(t, d - t))));
|
|
5605
5605
|
else {
|
|
5606
|
-
const
|
|
5607
|
-
s[a] =
|
|
5608
|
-
type:
|
|
5606
|
+
const h = s[a];
|
|
5607
|
+
s[a] = h.clone({ nullable: !0 }), e[a] = (i = u == null ? void 0 : u._changeLengthAndBackfillNullBitmap(t)) !== null && i !== void 0 ? i : A({
|
|
5608
|
+
type: h.type,
|
|
5609
5609
|
length: t,
|
|
5610
5610
|
nullCount: t,
|
|
5611
5611
|
nullBitmap: new Uint8Array(o)
|
|
@@ -5622,34 +5622,34 @@ class q {
|
|
|
5622
5622
|
return this.batches = [], this.schema = new L([]), this._offsets = [0], this;
|
|
5623
5623
|
let r, i;
|
|
5624
5624
|
t[0] instanceof L && (r = t.shift()), t.at(-1) instanceof Uint32Array && (i = t.pop());
|
|
5625
|
-
const o = (
|
|
5626
|
-
if (
|
|
5627
|
-
if (
|
|
5628
|
-
return [
|
|
5629
|
-
if (
|
|
5630
|
-
return
|
|
5631
|
-
if (
|
|
5632
|
-
if (
|
|
5633
|
-
return [new tt(new L(
|
|
5625
|
+
const o = (c) => {
|
|
5626
|
+
if (c) {
|
|
5627
|
+
if (c instanceof tt)
|
|
5628
|
+
return [c];
|
|
5629
|
+
if (c instanceof q)
|
|
5630
|
+
return c.batches;
|
|
5631
|
+
if (c instanceof M) {
|
|
5632
|
+
if (c.type instanceof Q)
|
|
5633
|
+
return [new tt(new L(c.type.children), c)];
|
|
5634
5634
|
} else {
|
|
5635
|
-
if (Array.isArray(
|
|
5636
|
-
return
|
|
5637
|
-
if (typeof
|
|
5638
|
-
return [...
|
|
5639
|
-
if (typeof
|
|
5640
|
-
const u = Object.keys(
|
|
5641
|
-
return j.length === 0 ? [new tt(
|
|
5635
|
+
if (Array.isArray(c))
|
|
5636
|
+
return c.flatMap((u) => o(u));
|
|
5637
|
+
if (typeof c[Symbol.iterator] == "function")
|
|
5638
|
+
return [...c].flatMap((u) => o(u));
|
|
5639
|
+
if (typeof c == "object") {
|
|
5640
|
+
const u = Object.keys(c), d = u.map((R) => new F([c[R]])), h = r ?? new L(u.map((R, nt) => new V(String(R), d[nt].type, d[nt].nullable))), [, j] = $s(h, d);
|
|
5641
|
+
return j.length === 0 ? [new tt(c)] : j;
|
|
5642
5642
|
}
|
|
5643
5643
|
}
|
|
5644
5644
|
}
|
|
5645
5645
|
return [];
|
|
5646
|
-
}, a = t.flatMap((
|
|
5646
|
+
}, a = t.flatMap((c) => o(c));
|
|
5647
5647
|
if (r = (n = r ?? ((e = a[0]) === null || e === void 0 ? void 0 : e.schema)) !== null && n !== void 0 ? n : new L([]), !(r instanceof L))
|
|
5648
5648
|
throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");
|
|
5649
|
-
for (const
|
|
5650
|
-
if (!(
|
|
5649
|
+
for (const c of a) {
|
|
5650
|
+
if (!(c instanceof tt))
|
|
5651
5651
|
throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");
|
|
5652
|
-
if (!un(r,
|
|
5652
|
+
if (!un(r, c.schema))
|
|
5653
5653
|
throw new TypeError("Table and inner RecordBatch schemas must be equivalent.");
|
|
5654
5654
|
}
|
|
5655
5655
|
this.schema = r, this.batches = a, this._offsets = i ?? Ki(this.data);
|
|
@@ -5807,7 +5807,7 @@ class q {
|
|
|
5807
5807
|
let n = this.schema, r = [...this.batches];
|
|
5808
5808
|
if (t > -1 && t < this.numCols) {
|
|
5809
5809
|
e || (e = new F([A({ type: new Yt(), length: this.numRows })]));
|
|
5810
|
-
const i = n.fields.slice(), o = i[t].clone({ type: e.type }), a = this.schema.fields.map((
|
|
5810
|
+
const i = n.fields.slice(), o = i[t].clone({ type: e.type }), a = this.schema.fields.map((c, u) => this.getChildAt(u));
|
|
5811
5811
|
[i[t], a[t]] = [o, e], [n, r] = $s(n, a);
|
|
5812
5812
|
}
|
|
5813
5813
|
return new q(n, r);
|
|
@@ -5833,18 +5833,18 @@ class q {
|
|
|
5833
5833
|
return new q(e, n);
|
|
5834
5834
|
}
|
|
5835
5835
|
assign(t) {
|
|
5836
|
-
const e = this.schema.fields, [n, r] = t.schema.fields.reduce((a,
|
|
5837
|
-
const [
|
|
5838
|
-
return ~j ?
|
|
5836
|
+
const e = this.schema.fields, [n, r] = t.schema.fields.reduce((a, c, u) => {
|
|
5837
|
+
const [d, h] = a, j = e.findIndex((R) => R.name === c.name);
|
|
5838
|
+
return ~j ? h[j] = u : d.push(u), a;
|
|
5839
5839
|
}, [[], []]), i = this.schema.assign(t.schema), o = [
|
|
5840
|
-
...e.map((a,
|
|
5840
|
+
...e.map((a, c) => [c, r[c]]).map(([a, c]) => c === void 0 ? this.getChildAt(a) : t.getChildAt(c)),
|
|
5841
5841
|
...n.map((a) => t.getChildAt(a))
|
|
5842
5842
|
].filter(Boolean);
|
|
5843
5843
|
return new q(...$s(i, o));
|
|
5844
5844
|
}
|
|
5845
5845
|
}
|
|
5846
5846
|
no = Symbol.toStringTag;
|
|
5847
|
-
q[no] = ((s) => (s.schema = null, s.batches = [], s._offsets = new Uint32Array([0]), s._nullCount = -1, s[Symbol.isConcatSpreadable] = !0, s.isValid = As(Tn), s.get = As(st.getVisitFn(
|
|
5847
|
+
q[no] = ((s) => (s.schema = null, s.batches = [], s._offsets = new Uint32Array([0]), s._nullCount = -1, s[Symbol.isConcatSpreadable] = !0, s.isValid = As(Tn), s.get = As(st.getVisitFn(l.Struct)), s.set = qi(ft.getVisitFn(l.Struct)), s.indexOf = Qi(Rs.getVisitFn(l.Struct)), "Table"))(q.prototype);
|
|
5848
5848
|
var ro;
|
|
5849
5849
|
let tt = class Fe {
|
|
5850
5850
|
constructor(...t) {
|
|
@@ -5865,7 +5865,7 @@ let tt = class Fe {
|
|
|
5865
5865
|
break;
|
|
5866
5866
|
}
|
|
5867
5867
|
case 1: {
|
|
5868
|
-
const [e] = t, { fields: n, children: r, length: i } = Object.keys(e).reduce((
|
|
5868
|
+
const [e] = t, { fields: n, children: r, length: i } = Object.keys(e).reduce((c, u, d) => (c.children[d] = e[u], c.length = Math.max(c.length, e[u].length), c.fields[d] = V.new({ name: u, type: e[u].type, nullable: !0 }), c), {
|
|
5869
5869
|
length: 0,
|
|
5870
5870
|
fields: new Array(),
|
|
5871
5871
|
children: new Array()
|
|
@@ -6027,10 +6027,10 @@ tt[ro] = ((s) => (s._nullCount = -1, s[Symbol.isConcatSpreadable] = !0, "RecordB
|
|
|
6027
6027
|
function ar(s, t, e = t.reduce((n, r) => Math.max(n, r.length), 0)) {
|
|
6028
6028
|
var n;
|
|
6029
6029
|
const r = [...s.fields], i = [...t], o = (e + 63 & -64) >> 3;
|
|
6030
|
-
for (const [a,
|
|
6030
|
+
for (const [a, c] of s.fields.entries()) {
|
|
6031
6031
|
const u = t[a];
|
|
6032
|
-
(!u || u.length !== e) && (r[a] =
|
|
6033
|
-
type:
|
|
6032
|
+
(!u || u.length !== e) && (r[a] = c.clone({ nullable: !0 }), i[a] = (n = u == null ? void 0 : u._changeLengthAndBackfillNullBitmap(e)) !== null && n !== void 0 ? n : A({
|
|
6033
|
+
type: c.type,
|
|
6034
6034
|
length: e,
|
|
6035
6035
|
nullCount: e,
|
|
6036
6036
|
nullBitmap: new Uint8Array(o)
|
|
@@ -6045,14 +6045,14 @@ function io(s, t, e = /* @__PURE__ */ new Map()) {
|
|
|
6045
6045
|
var n, r;
|
|
6046
6046
|
if (((n = s == null ? void 0 : s.length) !== null && n !== void 0 ? n : 0) > 0 && (s == null ? void 0 : s.length) === (t == null ? void 0 : t.length))
|
|
6047
6047
|
for (let i = -1, o = s.length; ++i < o; ) {
|
|
6048
|
-
const { type: a } = s[i],
|
|
6049
|
-
for (const u of [
|
|
6048
|
+
const { type: a } = s[i], c = t[i];
|
|
6049
|
+
for (const u of [c, ...((r = c == null ? void 0 : c.dictionary) === null || r === void 0 ? void 0 : r.data) || []])
|
|
6050
6050
|
io(a.children, u == null ? void 0 : u.children, e);
|
|
6051
6051
|
if (p.isDictionary(a)) {
|
|
6052
6052
|
const { id: u } = a;
|
|
6053
6053
|
if (!e.has(u))
|
|
6054
|
-
|
|
6055
|
-
else if (e.get(u) !==
|
|
6054
|
+
c != null && c.dictionary && e.set(u, c.dictionary);
|
|
6055
|
+
else if (e.get(u) !== c.dictionary)
|
|
6056
6056
|
throw new Error("Cannot create Schema containing two different dictionaries with the same Id");
|
|
6057
6057
|
}
|
|
6058
6058
|
}
|
|
@@ -6141,7 +6141,7 @@ let kt = class mt {
|
|
|
6141
6141
|
return mt.startMessage(t), mt.addVersion(t, e), mt.addHeaderType(t, n), mt.addHeader(t, r), mt.addBodyLength(t, i), mt.addCustomMetadata(t, o), mt.endMessage(t);
|
|
6142
6142
|
}
|
|
6143
6143
|
};
|
|
6144
|
-
class
|
|
6144
|
+
class hl extends O {
|
|
6145
6145
|
visit(t, e) {
|
|
6146
6146
|
return t == null || e == null ? void 0 : super.visit(t, e);
|
|
6147
6147
|
}
|
|
@@ -6180,7 +6180,7 @@ class dc extends O {
|
|
|
6180
6180
|
}
|
|
6181
6181
|
visitTimestamp(t, e) {
|
|
6182
6182
|
const n = t.timezone && e.createString(t.timezone) || void 0;
|
|
6183
|
-
return
|
|
6183
|
+
return dt.startTimestamp(e), dt.addUnit(e, t.unit), n !== void 0 && dt.addTimezone(e, n), dt.endTimestamp(e);
|
|
6184
6184
|
}
|
|
6185
6185
|
visitInterval(t, e) {
|
|
6186
6186
|
return St.startInterval(e), St.addUnit(e, t.unit), St.endInterval(e);
|
|
@@ -6213,47 +6213,47 @@ class dc extends O {
|
|
|
6213
6213
|
return Xe.startMap(e), Xe.addKeysSorted(e, t.keysSorted), Xe.endMap(e);
|
|
6214
6214
|
}
|
|
6215
6215
|
}
|
|
6216
|
-
const Ks = new
|
|
6217
|
-
function
|
|
6218
|
-
return new L(
|
|
6216
|
+
const Ks = new hl();
|
|
6217
|
+
function pl(s, t = /* @__PURE__ */ new Map()) {
|
|
6218
|
+
return new L(yl(s, t), ss(s.metadata), t);
|
|
6219
6219
|
}
|
|
6220
6220
|
function oo(s) {
|
|
6221
|
-
return new ot(s.count, ao(s.columns),
|
|
6221
|
+
return new ot(s.count, ao(s.columns), lo(s.columns));
|
|
6222
6222
|
}
|
|
6223
|
-
function
|
|
6223
|
+
function fl(s) {
|
|
6224
6224
|
return new Rt(oo(s.data), s.id, s.isDelta);
|
|
6225
6225
|
}
|
|
6226
|
-
function
|
|
6226
|
+
function yl(s, t) {
|
|
6227
6227
|
return (s.fields || []).filter(Boolean).map((e) => V.fromJSON(e, t));
|
|
6228
6228
|
}
|
|
6229
|
-
function
|
|
6229
|
+
function lr(s, t) {
|
|
6230
6230
|
return (s.children || []).filter(Boolean).map((e) => V.fromJSON(e, t));
|
|
6231
6231
|
}
|
|
6232
6232
|
function ao(s) {
|
|
6233
6233
|
return (s || []).reduce((t, e) => [
|
|
6234
6234
|
...t,
|
|
6235
|
-
new $t(e.count,
|
|
6235
|
+
new $t(e.count, bl(e.VALIDITY)),
|
|
6236
6236
|
...ao(e.children)
|
|
6237
6237
|
], []);
|
|
6238
6238
|
}
|
|
6239
|
-
function
|
|
6239
|
+
function lo(s, t = []) {
|
|
6240
6240
|
for (let e = -1, n = (s || []).length; ++e < n; ) {
|
|
6241
6241
|
const r = s[e];
|
|
6242
|
-
r.VALIDITY && t.push(new Et(t.length, r.VALIDITY.length)), r.TYPE_ID && t.push(new Et(t.length, r.TYPE_ID.length)), r.OFFSET && t.push(new Et(t.length, r.OFFSET.length)), r.DATA && t.push(new Et(t.length, r.DATA.length)), t =
|
|
6242
|
+
r.VALIDITY && t.push(new Et(t.length, r.VALIDITY.length)), r.TYPE_ID && t.push(new Et(t.length, r.TYPE_ID.length)), r.OFFSET && t.push(new Et(t.length, r.OFFSET.length)), r.DATA && t.push(new Et(t.length, r.DATA.length)), t = lo(r.children, t);
|
|
6243
6243
|
}
|
|
6244
6244
|
return t;
|
|
6245
6245
|
}
|
|
6246
|
-
function
|
|
6246
|
+
function bl(s) {
|
|
6247
6247
|
return (s || []).reduce((t, e) => t + +(e === 0), 0);
|
|
6248
6248
|
}
|
|
6249
|
-
function
|
|
6249
|
+
function gl(s, t) {
|
|
6250
6250
|
let e, n, r, i, o, a;
|
|
6251
|
-
return !t || !(i = s.dictionary) ? (o = ur(s,
|
|
6251
|
+
return !t || !(i = s.dictionary) ? (o = ur(s, lr(s, t)), r = new V(s.name, o, s.nullable, ss(s.metadata))) : t.has(e = i.id) ? (n = (n = i.indexType) ? cr(n) : new xe(), a = new _e(t.get(e), n, e, i.isOrdered), r = new V(s.name, a, s.nullable, ss(s.metadata))) : (n = (n = i.indexType) ? cr(n) : new xe(), t.set(e, o = ur(s, lr(s, t))), a = new _e(o, n, e, i.isOrdered), r = new V(s.name, a, s.nullable, ss(s.metadata))), r || null;
|
|
6252
6252
|
}
|
|
6253
6253
|
function ss(s = []) {
|
|
6254
6254
|
return new Map(s.map(({ key: t, value: e }) => [t, e]));
|
|
6255
6255
|
}
|
|
6256
|
-
function
|
|
6256
|
+
function cr(s) {
|
|
6257
6257
|
return new Zt(s.isSigned, s.bitWidth);
|
|
6258
6258
|
}
|
|
6259
6259
|
function ur(s, t) {
|
|
@@ -6264,13 +6264,13 @@ function ur(s, t) {
|
|
|
6264
6264
|
case "null":
|
|
6265
6265
|
return new Yt();
|
|
6266
6266
|
case "binary":
|
|
6267
|
-
return new
|
|
6267
|
+
return new cs();
|
|
6268
6268
|
case "largebinary":
|
|
6269
6269
|
return new us();
|
|
6270
6270
|
case "utf8":
|
|
6271
|
-
return new hs();
|
|
6272
|
-
case "largeutf8":
|
|
6273
6271
|
return new ds();
|
|
6272
|
+
case "largeutf8":
|
|
6273
|
+
return new hs();
|
|
6274
6274
|
case "bool":
|
|
6275
6275
|
return new ps();
|
|
6276
6276
|
case "list":
|
|
@@ -6287,7 +6287,7 @@ function ur(s, t) {
|
|
|
6287
6287
|
}
|
|
6288
6288
|
case "floatingpoint": {
|
|
6289
6289
|
const n = s.type;
|
|
6290
|
-
return new
|
|
6290
|
+
return new ls(K[n.precision]);
|
|
6291
6291
|
}
|
|
6292
6292
|
case "decimal": {
|
|
6293
6293
|
const n = s.type;
|
|
@@ -6332,22 +6332,22 @@ function ur(s, t) {
|
|
|
6332
6332
|
}
|
|
6333
6333
|
throw new Error(`Unrecognized type: "${e}"`);
|
|
6334
6334
|
}
|
|
6335
|
-
var
|
|
6335
|
+
var ml = Tr, _l = ge;
|
|
6336
6336
|
class J {
|
|
6337
6337
|
/** @nocollapse */
|
|
6338
6338
|
static fromJSON(t, e) {
|
|
6339
6339
|
const n = new J(0, Y.V5, e);
|
|
6340
|
-
return n._createHeader =
|
|
6340
|
+
return n._createHeader = vl(t, e), n;
|
|
6341
6341
|
}
|
|
6342
6342
|
/** @nocollapse */
|
|
6343
6343
|
static decode(t) {
|
|
6344
|
-
t = new
|
|
6344
|
+
t = new _l(D(t));
|
|
6345
6345
|
const e = kt.getRootAsMessage(t), n = e.bodyLength(), r = e.version(), i = e.headerType(), o = new J(n, r, i);
|
|
6346
|
-
return o._createHeader =
|
|
6346
|
+
return o._createHeader = Il(e, i), o;
|
|
6347
6347
|
}
|
|
6348
6348
|
/** @nocollapse */
|
|
6349
6349
|
static encode(t) {
|
|
6350
|
-
const e = new
|
|
6350
|
+
const e = new ml();
|
|
6351
6351
|
let n = -1;
|
|
6352
6352
|
return t.isSchema() ? n = L.encode(e, t.header()) : t.isRecordBatch() ? n = ot.encode(e, t.header()) : t.isDictionaryBatch() && (n = Rt.encode(e, t.header())), kt.startMessage(e), kt.addVersion(e, Y.V5), kt.addHeader(e, n), kt.addHeaderType(e, t.headerType), kt.addBodyLength(e, BigInt(t.bodyLength)), kt.finishMessageBuffer(e, kt.endMessage(e)), e.asUint8Array();
|
|
6353
6353
|
}
|
|
@@ -6436,7 +6436,7 @@ class $t {
|
|
|
6436
6436
|
this.length = P(t), this.nullCount = P(e);
|
|
6437
6437
|
}
|
|
6438
6438
|
}
|
|
6439
|
-
function
|
|
6439
|
+
function vl(s, t) {
|
|
6440
6440
|
return (() => {
|
|
6441
6441
|
switch (t) {
|
|
6442
6442
|
case N.Schema:
|
|
@@ -6449,7 +6449,7 @@ function vc(s, t) {
|
|
|
6449
6449
|
throw new Error(`Unrecognized Message type: { name: ${N[t]}, type: ${t} }`);
|
|
6450
6450
|
});
|
|
6451
6451
|
}
|
|
6452
|
-
function
|
|
6452
|
+
function Il(s, t) {
|
|
6453
6453
|
return (() => {
|
|
6454
6454
|
switch (t) {
|
|
6455
6455
|
case N.Schema:
|
|
@@ -6462,67 +6462,67 @@ function Ic(s, t) {
|
|
|
6462
6462
|
throw new Error(`Unrecognized Message type: { name: ${N[t]}, type: ${t} }`);
|
|
6463
6463
|
});
|
|
6464
6464
|
}
|
|
6465
|
-
V.encode =
|
|
6466
|
-
V.decode =
|
|
6467
|
-
V.fromJSON =
|
|
6468
|
-
L.encode =
|
|
6469
|
-
L.decode =
|
|
6470
|
-
L.fromJSON =
|
|
6471
|
-
ot.encode =
|
|
6472
|
-
ot.decode =
|
|
6465
|
+
V.encode = Fl;
|
|
6466
|
+
V.decode = Bl;
|
|
6467
|
+
V.fromJSON = gl;
|
|
6468
|
+
L.encode = Nl;
|
|
6469
|
+
L.decode = wl;
|
|
6470
|
+
L.fromJSON = pl;
|
|
6471
|
+
ot.encode = Ll;
|
|
6472
|
+
ot.decode = Sl;
|
|
6473
6473
|
ot.fromJSON = oo;
|
|
6474
|
-
Rt.encode =
|
|
6475
|
-
Rt.decode =
|
|
6476
|
-
Rt.fromJSON =
|
|
6477
|
-
$t.encode =
|
|
6478
|
-
$t.decode =
|
|
6479
|
-
Et.encode =
|
|
6480
|
-
Et.decode =
|
|
6481
|
-
function
|
|
6482
|
-
const n =
|
|
6474
|
+
Rt.encode = Ul;
|
|
6475
|
+
Rt.decode = Tl;
|
|
6476
|
+
Rt.fromJSON = fl;
|
|
6477
|
+
$t.encode = Ml;
|
|
6478
|
+
$t.decode = Ol;
|
|
6479
|
+
Et.encode = Cl;
|
|
6480
|
+
Et.decode = El;
|
|
6481
|
+
function wl(s, t = /* @__PURE__ */ new Map(), e = Y.V5) {
|
|
6482
|
+
const n = Dl(s, t);
|
|
6483
6483
|
return new L(n, ns(s), t, e);
|
|
6484
6484
|
}
|
|
6485
|
-
function
|
|
6485
|
+
function Sl(s, t = Y.V5) {
|
|
6486
6486
|
if (s.compression() !== null)
|
|
6487
6487
|
throw new Error("Record batch compression not implemented");
|
|
6488
|
-
return new ot(s.length(),
|
|
6488
|
+
return new ot(s.length(), Al(s), Rl(s, t));
|
|
6489
6489
|
}
|
|
6490
|
-
function
|
|
6490
|
+
function Tl(s, t = Y.V5) {
|
|
6491
6491
|
return new Rt(ot.decode(s.data(), t), s.id(), s.isDelta());
|
|
6492
6492
|
}
|
|
6493
|
-
function
|
|
6493
|
+
function El(s) {
|
|
6494
6494
|
return new Et(s.offset(), s.length());
|
|
6495
6495
|
}
|
|
6496
|
-
function
|
|
6496
|
+
function Ol(s) {
|
|
6497
6497
|
return new $t(s.length(), s.nullCount());
|
|
6498
6498
|
}
|
|
6499
|
-
function
|
|
6499
|
+
function Al(s) {
|
|
6500
6500
|
const t = [];
|
|
6501
6501
|
for (let e, n = -1, r = -1, i = s.nodesLength(); ++n < i; )
|
|
6502
6502
|
(e = s.nodes(n)) && (t[++r] = $t.decode(e));
|
|
6503
6503
|
return t;
|
|
6504
6504
|
}
|
|
6505
|
-
function
|
|
6505
|
+
function Rl(s, t) {
|
|
6506
6506
|
const e = [];
|
|
6507
6507
|
for (let n, r = -1, i = -1, o = s.buffersLength(); ++r < o; )
|
|
6508
6508
|
(n = s.buffers(r)) && (t < Y.V4 && (n.bb_pos += 8 * (r + 1)), e[++i] = Et.decode(n));
|
|
6509
6509
|
return e;
|
|
6510
6510
|
}
|
|
6511
|
-
function
|
|
6511
|
+
function Dl(s, t) {
|
|
6512
6512
|
const e = [];
|
|
6513
6513
|
for (let n, r = -1, i = -1, o = s.fieldsLength(); ++r < o; )
|
|
6514
6514
|
(n = s.fields(r)) && (e[++i] = V.decode(n, t));
|
|
6515
6515
|
return e;
|
|
6516
6516
|
}
|
|
6517
|
-
function
|
|
6517
|
+
function dr(s, t) {
|
|
6518
6518
|
const e = [];
|
|
6519
6519
|
for (let n, r = -1, i = -1, o = s.childrenLength(); ++r < o; )
|
|
6520
6520
|
(n = s.children(r)) && (e[++i] = V.decode(n, t));
|
|
6521
6521
|
return e;
|
|
6522
6522
|
}
|
|
6523
|
-
function
|
|
6523
|
+
function Bl(s, t) {
|
|
6524
6524
|
let e, n, r, i, o, a;
|
|
6525
|
-
return !t || !(a = s.dictionary()) ? (r = pr(s,
|
|
6525
|
+
return !t || !(a = s.dictionary()) ? (r = pr(s, dr(s, t)), n = new V(s.name(), r, s.nullable(), ns(s))) : t.has(e = P(a.id())) ? (i = (i = a.indexType()) ? hr(i) : new xe(), o = new _e(t.get(e), i, e, a.isOrdered()), n = new V(s.name(), o, s.nullable(), ns(s))) : (i = (i = a.indexType()) ? hr(i) : new xe(), t.set(e, r = pr(s, dr(s, t))), o = new _e(r, i, e, a.isOrdered()), n = new V(s.name(), o, s.nullable(), ns(s))), n || null;
|
|
6526
6526
|
}
|
|
6527
6527
|
function ns(s) {
|
|
6528
6528
|
const t = /* @__PURE__ */ new Map();
|
|
@@ -6531,7 +6531,7 @@ function ns(s) {
|
|
|
6531
6531
|
(e = s.customMetadata(r)) && (n = e.key()) != null && t.set(n, e.value());
|
|
6532
6532
|
return t;
|
|
6533
6533
|
}
|
|
6534
|
-
function
|
|
6534
|
+
function hr(s) {
|
|
6535
6535
|
return new Zt(s.isSigned(), s.bitWidth());
|
|
6536
6536
|
}
|
|
6537
6537
|
function pr(s, t) {
|
|
@@ -6542,13 +6542,13 @@ function pr(s, t) {
|
|
|
6542
6542
|
case k.Null:
|
|
6543
6543
|
return new Yt();
|
|
6544
6544
|
case k.Binary:
|
|
6545
|
-
return new
|
|
6545
|
+
return new cs();
|
|
6546
6546
|
case k.LargeBinary:
|
|
6547
6547
|
return new us();
|
|
6548
6548
|
case k.Utf8:
|
|
6549
|
-
return new hs();
|
|
6550
|
-
case k.LargeUtf8:
|
|
6551
6549
|
return new ds();
|
|
6550
|
+
case k.LargeUtf8:
|
|
6551
|
+
return new hs();
|
|
6552
6552
|
case k.Bool:
|
|
6553
6553
|
return new ps();
|
|
6554
6554
|
case k.List:
|
|
@@ -6563,7 +6563,7 @@ function pr(s, t) {
|
|
|
6563
6563
|
}
|
|
6564
6564
|
case k.FloatingPoint: {
|
|
6565
6565
|
const n = s.type(new wt());
|
|
6566
|
-
return new
|
|
6566
|
+
return new ls(n.precision());
|
|
6567
6567
|
}
|
|
6568
6568
|
case k.Decimal: {
|
|
6569
6569
|
const n = s.type(new re());
|
|
@@ -6578,7 +6578,7 @@ function pr(s, t) {
|
|
|
6578
6578
|
return new bs(n.unit(), n.bitWidth());
|
|
6579
6579
|
}
|
|
6580
6580
|
case k.Timestamp: {
|
|
6581
|
-
const n = s.type(new
|
|
6581
|
+
const n = s.type(new dt());
|
|
6582
6582
|
return new gs(n.unit(), n.timezone());
|
|
6583
6583
|
}
|
|
6584
6584
|
case k.Interval: {
|
|
@@ -6608,27 +6608,27 @@ function pr(s, t) {
|
|
|
6608
6608
|
}
|
|
6609
6609
|
throw new Error(`Unrecognized type: "${k[e]}" (${e})`);
|
|
6610
6610
|
}
|
|
6611
|
-
function
|
|
6611
|
+
function Nl(s, t) {
|
|
6612
6612
|
const e = t.fields.map((i) => V.encode(s, i));
|
|
6613
6613
|
_t.startFieldsVector(s, e.length);
|
|
6614
6614
|
const n = _t.createFieldsVector(s, e), r = t.metadata && t.metadata.size > 0 ? _t.createCustomMetadataVector(s, [...t.metadata].map(([i, o]) => {
|
|
6615
|
-
const a = s.createString(`${i}`),
|
|
6616
|
-
return G.startKeyValue(s), G.addKey(s, a), G.addValue(s,
|
|
6615
|
+
const a = s.createString(`${i}`), c = s.createString(`${o}`);
|
|
6616
|
+
return G.startKeyValue(s), G.addKey(s, a), G.addValue(s, c), G.endKeyValue(s);
|
|
6617
6617
|
})) : -1;
|
|
6618
|
-
return _t.startSchema(s), _t.addFields(s, n), _t.addEndianness(s,
|
|
6618
|
+
return _t.startSchema(s), _t.addFields(s, n), _t.addEndianness(s, xl ? me.Little : me.Big), r !== -1 && _t.addCustomMetadata(s, r), _t.endSchema(s);
|
|
6619
6619
|
}
|
|
6620
|
-
function
|
|
6620
|
+
function Fl(s, t) {
|
|
6621
6621
|
let e = -1, n = -1, r = -1;
|
|
6622
6622
|
const i = t.type;
|
|
6623
6623
|
let o = t.typeId;
|
|
6624
6624
|
p.isDictionary(i) ? (o = i.dictionary.typeId, r = Ks.visit(i, s), n = Ks.visit(i.dictionary, s)) : n = Ks.visit(i, s);
|
|
6625
|
-
const a = (i.children || []).map((
|
|
6626
|
-
const j = s.createString(`${
|
|
6625
|
+
const a = (i.children || []).map((d) => V.encode(s, d)), c = at.createChildrenVector(s, a), u = t.metadata && t.metadata.size > 0 ? at.createCustomMetadataVector(s, [...t.metadata].map(([d, h]) => {
|
|
6626
|
+
const j = s.createString(`${d}`), R = s.createString(`${h}`);
|
|
6627
6627
|
return G.startKeyValue(s), G.addKey(s, j), G.addValue(s, R), G.endKeyValue(s);
|
|
6628
6628
|
})) : -1;
|
|
6629
|
-
return t.name && (e = s.createString(t.name)), at.startField(s), at.addType(s, n), at.addTypeType(s, o), at.addChildren(s,
|
|
6629
|
+
return t.name && (e = s.createString(t.name)), at.startField(s), at.addType(s, n), at.addTypeType(s, o), at.addChildren(s, c), at.addNullable(s, !!t.nullable), e !== -1 && at.addName(s, e), r !== -1 && at.addDictionary(s, r), u !== -1 && at.addCustomMetadata(s, u), at.endField(s);
|
|
6630
6630
|
}
|
|
6631
|
-
function
|
|
6631
|
+
function Ll(s, t) {
|
|
6632
6632
|
const e = t.nodes || [], n = t.buffers || [];
|
|
6633
6633
|
Bt.startNodesVector(s, e.length);
|
|
6634
6634
|
for (const o of e.slice().reverse())
|
|
@@ -6640,17 +6640,17 @@ function Lc(s, t) {
|
|
|
6640
6640
|
const i = s.endVector();
|
|
6641
6641
|
return Bt.startRecordBatch(s), Bt.addLength(s, BigInt(t.length)), Bt.addNodes(s, r), Bt.addBuffers(s, i), Bt.endRecordBatch(s);
|
|
6642
6642
|
}
|
|
6643
|
-
function
|
|
6643
|
+
function Ul(s, t) {
|
|
6644
6644
|
const e = ot.encode(s, t.data);
|
|
6645
6645
|
return se.startDictionaryBatch(s), se.addId(s, BigInt(t.id)), se.addIsDelta(s, t.isDelta), se.addData(s, e), se.endDictionaryBatch(s);
|
|
6646
6646
|
}
|
|
6647
|
-
function
|
|
6647
|
+
function Ml(s, t) {
|
|
6648
6648
|
return Ar.createFieldNode(s, BigInt(t.length), BigInt(t.nullCount));
|
|
6649
6649
|
}
|
|
6650
|
-
function
|
|
6650
|
+
function Cl(s, t) {
|
|
6651
6651
|
return Or.createBuffer(s, BigInt(t.offset), BigInt(t.length));
|
|
6652
6652
|
}
|
|
6653
|
-
const
|
|
6653
|
+
const xl = (() => {
|
|
6654
6654
|
const s = new ArrayBuffer(2);
|
|
6655
6655
|
return new DataView(s).setInt16(
|
|
6656
6656
|
0,
|
|
@@ -6658,7 +6658,7 @@ const xc = (() => {
|
|
|
6658
6658
|
!0
|
|
6659
6659
|
/* littleEndian */
|
|
6660
6660
|
), new Int16Array(s)[0] === 256;
|
|
6661
|
-
})(), Fn = (s) => `Expected ${N[s]} Message in stream, but was null or length 0.`, Ln = (s) => `Header pointer of flatbuffer-encoded ${N[s]} Message is null or length 0.`,
|
|
6661
|
+
})(), Fn = (s) => `Expected ${N[s]} Message in stream, but was null or length 0.`, Ln = (s) => `Header pointer of flatbuffer-encoded ${N[s]} Message is null or length 0.`, co = (s, t) => `Expected to read ${s} metadata bytes, but only read ${t}.`, uo = (s, t) => `Expected to read ${s} bytes for message body, but only read ${t}.`;
|
|
6662
6662
|
class ho {
|
|
6663
6663
|
constructor(t) {
|
|
6664
6664
|
this.source = t instanceof Bs ? t : new Bs(t);
|
|
@@ -6711,11 +6711,11 @@ class ho {
|
|
|
6711
6711
|
if (!e)
|
|
6712
6712
|
return $;
|
|
6713
6713
|
if (e.byteLength < t)
|
|
6714
|
-
throw new Error(
|
|
6714
|
+
throw new Error(co(t, e.byteLength));
|
|
6715
6715
|
return { done: !1, value: J.decode(e) };
|
|
6716
6716
|
}
|
|
6717
6717
|
}
|
|
6718
|
-
class
|
|
6718
|
+
class Pl {
|
|
6719
6719
|
constructor(t, e) {
|
|
6720
6720
|
this.source = t instanceof ve ? t : mr(t) ? new Ns(t, e) : new ve(t);
|
|
6721
6721
|
}
|
|
@@ -6782,12 +6782,12 @@ class Pc {
|
|
|
6782
6782
|
if (!e)
|
|
6783
6783
|
return $;
|
|
6784
6784
|
if (e.byteLength < t)
|
|
6785
|
-
throw new Error(
|
|
6785
|
+
throw new Error(co(t, e.byteLength));
|
|
6786
6786
|
return { done: !1, value: J.decode(e) };
|
|
6787
6787
|
});
|
|
6788
6788
|
}
|
|
6789
6789
|
}
|
|
6790
|
-
class
|
|
6790
|
+
class kl extends ho {
|
|
6791
6791
|
constructor(t) {
|
|
6792
6792
|
super(new Uint8Array(0)), this._schema = !1, this._body = [], this._batchIndex = 0, this._dictionaryIndex = 0, this._json = t instanceof ir ? t : new ir(t);
|
|
6793
6793
|
}
|
|
@@ -6833,17 +6833,17 @@ class kc extends ho {
|
|
|
6833
6833
|
return n;
|
|
6834
6834
|
}
|
|
6835
6835
|
}
|
|
6836
|
-
const ks = 4,
|
|
6837
|
-
for (let s = 0; s <
|
|
6838
|
-
ke[s] =
|
|
6836
|
+
const ks = 4, dn = "ARROW1", ke = new Uint8Array(dn.length);
|
|
6837
|
+
for (let s = 0; s < dn.length; s += 1)
|
|
6838
|
+
ke[s] = dn.codePointAt(s);
|
|
6839
6839
|
function Un(s, t = 0) {
|
|
6840
6840
|
for (let e = -1, n = ke.length; ++e < n; )
|
|
6841
6841
|
if (ke[e] !== s[t + e])
|
|
6842
6842
|
return !1;
|
|
6843
6843
|
return !0;
|
|
6844
6844
|
}
|
|
6845
|
-
const We = ke.length, po = We + ks,
|
|
6846
|
-
class
|
|
6845
|
+
const We = ke.length, po = We + ks, Vl = We * 2 + ks;
|
|
6846
|
+
class ht extends On {
|
|
6847
6847
|
constructor(t) {
|
|
6848
6848
|
super(), this._impl = t;
|
|
6849
6849
|
}
|
|
@@ -6909,10 +6909,10 @@ class dt extends On {
|
|
|
6909
6909
|
return this._impl[Symbol.asyncIterator]();
|
|
6910
6910
|
}
|
|
6911
6911
|
toDOMStream() {
|
|
6912
|
-
return
|
|
6912
|
+
return ct.toDOMStream(this.isSync() ? { [Symbol.iterator]: () => this } : { [Symbol.asyncIterator]: () => this });
|
|
6913
6913
|
}
|
|
6914
6914
|
toNodeStream() {
|
|
6915
|
-
return
|
|
6915
|
+
return ct.toNodeStream(this.isSync() ? { [Symbol.iterator]: () => this } : { [Symbol.asyncIterator]: () => this }, { objectMode: !0 });
|
|
6916
6916
|
}
|
|
6917
6917
|
/** @nocollapse */
|
|
6918
6918
|
// @ts-ignore
|
|
@@ -6925,16 +6925,16 @@ class dt extends On {
|
|
|
6925
6925
|
}
|
|
6926
6926
|
/** @nocollapse */
|
|
6927
6927
|
static from(t) {
|
|
6928
|
-
return t instanceof
|
|
6929
|
-
return yield
|
|
6930
|
-
}) : _r(t) || yn(t) || vr(t) || we(t) ? $
|
|
6928
|
+
return t instanceof ht ? t : tn(t) ? Wl(t) : mr(t) ? Kl(t) : Jt(t) ? T(this, void 0, void 0, function* () {
|
|
6929
|
+
return yield ht.from(yield t);
|
|
6930
|
+
}) : _r(t) || yn(t) || vr(t) || we(t) ? $l(new ve(t)) : Gl(new Bs(t));
|
|
6931
6931
|
}
|
|
6932
6932
|
/** @nocollapse */
|
|
6933
6933
|
static readAll(t) {
|
|
6934
|
-
return t instanceof
|
|
6934
|
+
return t instanceof ht ? t.isSync() ? fr(t) : yr(t) : tn(t) || ArrayBuffer.isView(t) || Ve(t) || gr(t) ? fr(t) : yr(t);
|
|
6935
6935
|
}
|
|
6936
6936
|
}
|
|
6937
|
-
class Fs extends
|
|
6937
|
+
class Fs extends ht {
|
|
6938
6938
|
constructor(t) {
|
|
6939
6939
|
super(t), this._impl = t;
|
|
6940
6940
|
}
|
|
@@ -6950,7 +6950,7 @@ class Fs extends dt {
|
|
|
6950
6950
|
});
|
|
6951
6951
|
}
|
|
6952
6952
|
}
|
|
6953
|
-
class Ls extends
|
|
6953
|
+
class Ls extends ht {
|
|
6954
6954
|
constructor(t) {
|
|
6955
6955
|
super(t), this._impl = t;
|
|
6956
6956
|
}
|
|
@@ -6959,8 +6959,8 @@ class Ls extends dt {
|
|
|
6959
6959
|
var t, e, n, r;
|
|
6960
6960
|
const i = new Array();
|
|
6961
6961
|
try {
|
|
6962
|
-
for (var o = !0, a = Qt(this),
|
|
6963
|
-
r =
|
|
6962
|
+
for (var o = !0, a = Qt(this), c; c = yield a.next(), t = c.done, !t; o = !0) {
|
|
6963
|
+
r = c.value, o = !1;
|
|
6964
6964
|
const u = r;
|
|
6965
6965
|
i.push(u);
|
|
6966
6966
|
}
|
|
@@ -6988,7 +6988,7 @@ class fo extends Fs {
|
|
|
6988
6988
|
super(t), this._impl = t;
|
|
6989
6989
|
}
|
|
6990
6990
|
}
|
|
6991
|
-
class
|
|
6991
|
+
class zl extends Ls {
|
|
6992
6992
|
constructor(t) {
|
|
6993
6993
|
super(t), this._impl = t;
|
|
6994
6994
|
}
|
|
@@ -7023,7 +7023,7 @@ class yo {
|
|
|
7023
7023
|
return new tt(this.schema, r);
|
|
7024
7024
|
}
|
|
7025
7025
|
_loadDictionaryBatch(t, e) {
|
|
7026
|
-
const { id: n, isDelta: r } = t, { dictionaries: i, schema: o } = this, a = i.get(n),
|
|
7026
|
+
const { id: n, isDelta: r } = t, { dictionaries: i, schema: o } = this, a = i.get(n), c = o.dictionaries.get(n), u = this._loadVectors(t.data, e, [c]);
|
|
7027
7027
|
return (a && r ? a.concat(new F(u)) : new F(u)).memoize();
|
|
7028
7028
|
}
|
|
7029
7029
|
_loadVectors(t, e, n) {
|
|
@@ -7032,7 +7032,7 @@ class yo {
|
|
|
7032
7032
|
}
|
|
7033
7033
|
class Us extends yo {
|
|
7034
7034
|
constructor(t, e) {
|
|
7035
|
-
super(e), this._reader = tn(t) ? new
|
|
7035
|
+
super(e), this._reader = tn(t) ? new kl(this._handle = t) : new ho(this._handle = t);
|
|
7036
7036
|
}
|
|
7037
7037
|
isSync() {
|
|
7038
7038
|
return !0;
|
|
@@ -7080,7 +7080,7 @@ class Us extends yo {
|
|
|
7080
7080
|
}
|
|
7081
7081
|
class Ms extends yo {
|
|
7082
7082
|
constructor(t, e) {
|
|
7083
|
-
super(e), this._reader = new
|
|
7083
|
+
super(e), this._reader = new Pl(this._handle = t);
|
|
7084
7084
|
}
|
|
7085
7085
|
isAsync() {
|
|
7086
7086
|
return !0;
|
|
@@ -7205,7 +7205,7 @@ class bo extends Us {
|
|
|
7205
7205
|
return null;
|
|
7206
7206
|
}
|
|
7207
7207
|
}
|
|
7208
|
-
class
|
|
7208
|
+
class jl extends Ms {
|
|
7209
7209
|
get footer() {
|
|
7210
7210
|
return this._footer;
|
|
7211
7211
|
}
|
|
@@ -7287,19 +7287,19 @@ class jc extends Ms {
|
|
|
7287
7287
|
});
|
|
7288
7288
|
}
|
|
7289
7289
|
}
|
|
7290
|
-
class
|
|
7290
|
+
class Yl extends Us {
|
|
7291
7291
|
constructor(t, e) {
|
|
7292
7292
|
super(t, e);
|
|
7293
7293
|
}
|
|
7294
7294
|
_loadVectors(t, e, n) {
|
|
7295
|
-
return new
|
|
7295
|
+
return new sl(e, t.nodes, t.buffers, this.dictionaries, this.schema.metadataVersion).visitMany(n);
|
|
7296
7296
|
}
|
|
7297
7297
|
}
|
|
7298
7298
|
function go(s, t) {
|
|
7299
7299
|
return t && typeof t.autoDestroy == "boolean" ? t.autoDestroy : s.autoDestroy;
|
|
7300
7300
|
}
|
|
7301
7301
|
function* fr(s) {
|
|
7302
|
-
const t =
|
|
7302
|
+
const t = ht.from(s);
|
|
7303
7303
|
try {
|
|
7304
7304
|
if (!t.open({ autoDestroy: !1 }).closed)
|
|
7305
7305
|
do
|
|
@@ -7311,7 +7311,7 @@ function* fr(s) {
|
|
|
7311
7311
|
}
|
|
7312
7312
|
function yr(s) {
|
|
7313
7313
|
return Tt(this, arguments, function* () {
|
|
7314
|
-
const t = yield E(
|
|
7314
|
+
const t = yield E(ht.from(s));
|
|
7315
7315
|
try {
|
|
7316
7316
|
if (!(yield E(t.open({ autoDestroy: !1 }))).closed)
|
|
7317
7317
|
do
|
|
@@ -7322,15 +7322,15 @@ function yr(s) {
|
|
|
7322
7322
|
}
|
|
7323
7323
|
});
|
|
7324
7324
|
}
|
|
7325
|
-
function
|
|
7326
|
-
return new Fs(new
|
|
7325
|
+
function Wl(s) {
|
|
7326
|
+
return new Fs(new Yl(s));
|
|
7327
7327
|
}
|
|
7328
|
-
function
|
|
7328
|
+
function Gl(s) {
|
|
7329
7329
|
const t = s.peek(We + 7 & -8);
|
|
7330
7330
|
return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(s.read())) : new Fs(new Us(s)) : new Fs(new Us((function* () {
|
|
7331
7331
|
})()));
|
|
7332
7332
|
}
|
|
7333
|
-
function $
|
|
7333
|
+
function $l(s) {
|
|
7334
7334
|
return T(this, void 0, void 0, function* () {
|
|
7335
7335
|
const t = yield s.peek(We + 7 & -8);
|
|
7336
7336
|
return t && t.byteLength >= 4 ? Un(t) ? new fo(new bo(yield s.read())) : new Ls(new Ms(s)) : new Ls(new Ms((function() {
|
|
@@ -7339,10 +7339,10 @@ function $c(s) {
|
|
|
7339
7339
|
})()));
|
|
7340
7340
|
});
|
|
7341
7341
|
}
|
|
7342
|
-
function
|
|
7342
|
+
function Kl(s) {
|
|
7343
7343
|
return T(this, void 0, void 0, function* () {
|
|
7344
7344
|
const { size: t } = yield s.stat(), e = new Ns(s, t);
|
|
7345
|
-
return t >=
|
|
7345
|
+
return t >= Vl && Un(yield e.readAt(0, We + 7 & -8)) ? new zl(new jl(e)) : new Ls(new Ms(e));
|
|
7346
7346
|
});
|
|
7347
7347
|
}
|
|
7348
7348
|
class z extends O {
|
|
@@ -7394,27 +7394,27 @@ function bt(s) {
|
|
|
7394
7394
|
const t = s.byteLength + 7 & -8;
|
|
7395
7395
|
return this.buffers.push(s), this.bufferRegions.push(new Et(this._byteLength, t)), this._byteLength += t, this;
|
|
7396
7396
|
}
|
|
7397
|
-
function
|
|
7397
|
+
function Hl(s) {
|
|
7398
7398
|
var t;
|
|
7399
7399
|
const { type: e, length: n, typeIds: r, valueOffsets: i } = s;
|
|
7400
7400
|
if (bt.call(this, r), e.mode === H.Sparse)
|
|
7401
|
-
return
|
|
7401
|
+
return hn.call(this, s);
|
|
7402
7402
|
if (e.mode === H.Dense) {
|
|
7403
7403
|
if (s.offset <= 0)
|
|
7404
|
-
return bt.call(this, i),
|
|
7404
|
+
return bt.call(this, i), hn.call(this, s);
|
|
7405
7405
|
{
|
|
7406
|
-
const o = new Int32Array(n), a = /* @__PURE__ */ Object.create(null),
|
|
7407
|
-
for (let u,
|
|
7408
|
-
(u = r[
|
|
7409
|
-
bt.call(this, o), this.visitMany(s.children.map((u,
|
|
7410
|
-
const
|
|
7406
|
+
const o = new Int32Array(n), a = /* @__PURE__ */ Object.create(null), c = /* @__PURE__ */ Object.create(null);
|
|
7407
|
+
for (let u, d, h = -1; ++h < n; )
|
|
7408
|
+
(u = r[h]) !== void 0 && ((d = a[u]) === void 0 && (d = a[u] = i[h]), o[h] = i[h] - d, c[u] = ((t = c[u]) !== null && t !== void 0 ? t : 0) + 1);
|
|
7409
|
+
bt.call(this, o), this.visitMany(s.children.map((u, d) => {
|
|
7410
|
+
const h = e.typeIds[d], j = a[h], R = c[h];
|
|
7411
7411
|
return u.slice(j, Math.min(n, R));
|
|
7412
7412
|
}));
|
|
7413
7413
|
}
|
|
7414
7414
|
}
|
|
7415
7415
|
return this;
|
|
7416
7416
|
}
|
|
7417
|
-
function
|
|
7417
|
+
function ql(s) {
|
|
7418
7418
|
let t;
|
|
7419
7419
|
return s.nullCount >= s.length ? bt.call(this, new Uint8Array(0)) : (t = s.values) instanceof Uint8Array ? bt.call(this, Es(s.offset, s.length, t)) : bt.call(this, Os(s.values));
|
|
7420
7420
|
}
|
|
@@ -7433,10 +7433,10 @@ function Mn(s) {
|
|
|
7433
7433
|
}
|
|
7434
7434
|
return this.visit(s.children[0]);
|
|
7435
7435
|
}
|
|
7436
|
-
function
|
|
7436
|
+
function hn(s) {
|
|
7437
7437
|
return this.visitMany(s.type.children.map((t, e) => s.children[e]).filter(Boolean))[0];
|
|
7438
7438
|
}
|
|
7439
|
-
z.prototype.visitBool =
|
|
7439
|
+
z.prototype.visitBool = ql;
|
|
7440
7440
|
z.prototype.visitInt = xt;
|
|
7441
7441
|
z.prototype.visitFloat = xt;
|
|
7442
7442
|
z.prototype.visitUtf8 = Vs;
|
|
@@ -7449,8 +7449,8 @@ z.prototype.visitTimestamp = xt;
|
|
|
7449
7449
|
z.prototype.visitTime = xt;
|
|
7450
7450
|
z.prototype.visitDecimal = xt;
|
|
7451
7451
|
z.prototype.visitList = Mn;
|
|
7452
|
-
z.prototype.visitStruct =
|
|
7453
|
-
z.prototype.visitUnion =
|
|
7452
|
+
z.prototype.visitStruct = hn;
|
|
7453
|
+
z.prototype.visitUnion = Hl;
|
|
7454
7454
|
z.prototype.visitInterval = xt;
|
|
7455
7455
|
z.prototype.visitDuration = xt;
|
|
7456
7456
|
z.prototype.visitFixedSizeList = Mn;
|
|
@@ -7519,8 +7519,8 @@ class mo extends On {
|
|
|
7519
7519
|
t instanceof tt ? t instanceof Nn || this._writeRecordBatch(t) : t instanceof q ? this.writeAll(t.batches) : Ve(t) && this.writeAll(t);
|
|
7520
7520
|
}
|
|
7521
7521
|
_writeMessage(t, e = 8) {
|
|
7522
|
-
const n = e - 1, r = J.encode(t), i = r.byteLength, o = this._writeLegacyIpcFormat ? 4 : 8, a = i + o + n & ~n,
|
|
7523
|
-
return t.headerType === N.RecordBatch ? this._recordBatchBlocks.push(new Wt(a, t.bodyLength, this._position)) : t.headerType === N.DictionaryBatch && this._dictionaryBlocks.push(new Wt(a, t.bodyLength, this._position)), this._writeLegacyIpcFormat || this._write(Int32Array.of(-1)), this._write(Int32Array.of(a - o)), i > 0 && this._write(r), this._writePadding(
|
|
7522
|
+
const n = e - 1, r = J.encode(t), i = r.byteLength, o = this._writeLegacyIpcFormat ? 4 : 8, a = i + o + n & ~n, c = a - i - o;
|
|
7523
|
+
return t.headerType === N.RecordBatch ? this._recordBatchBlocks.push(new Wt(a, t.bodyLength, this._position)) : t.headerType === N.DictionaryBatch && this._dictionaryBlocks.push(new Wt(a, t.bodyLength, this._position)), this._writeLegacyIpcFormat || this._write(Int32Array.of(-1)), this._write(Int32Array.of(a - o)), i > 0 && this._write(r), this._writePadding(c);
|
|
7524
7524
|
}
|
|
7525
7525
|
_write(t) {
|
|
7526
7526
|
if (this._started) {
|
|
@@ -7547,8 +7547,8 @@ class mo extends On {
|
|
|
7547
7547
|
return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(i);
|
|
7548
7548
|
}
|
|
7549
7549
|
_writeDictionaryBatch(t, e, n = !1) {
|
|
7550
|
-
const { byteLength: r, nodes: i, bufferRegions: o, buffers: a } = z.assemble(new F([t])),
|
|
7551
|
-
return this._writeMessage(
|
|
7550
|
+
const { byteLength: r, nodes: i, bufferRegions: o, buffers: a } = z.assemble(new F([t])), c = new ot(t.length, i, o), u = new Rt(c, e, n), d = J.from(u, r);
|
|
7551
|
+
return this._writeMessage(d)._writeBodyBuffers(a);
|
|
7552
7552
|
}
|
|
7553
7553
|
_writeBodyBuffers(t) {
|
|
7554
7554
|
let e, n, r;
|
|
@@ -7559,12 +7559,12 @@ class mo extends On {
|
|
|
7559
7559
|
_writeDictionaries(t) {
|
|
7560
7560
|
var e, n;
|
|
7561
7561
|
for (const [r, i] of t.dictionaries) {
|
|
7562
|
-
const o = (e = i == null ? void 0 : i.data) !== null && e !== void 0 ? e : [], a = this._seenDictionaries.get(r),
|
|
7562
|
+
const o = (e = i == null ? void 0 : i.data) !== null && e !== void 0 ? e : [], a = this._seenDictionaries.get(r), c = (n = this._dictionaryDeltaOffsets.get(r)) !== null && n !== void 0 ? n : 0;
|
|
7563
7563
|
if (!a || a.data[0] !== o[0])
|
|
7564
|
-
for (const [u,
|
|
7565
|
-
this._writeDictionaryBatch(
|
|
7566
|
-
else if (
|
|
7567
|
-
for (const u of o.slice(
|
|
7564
|
+
for (const [u, d] of o.entries())
|
|
7565
|
+
this._writeDictionaryBatch(d, r, u > 0);
|
|
7566
|
+
else if (c < o.length)
|
|
7567
|
+
for (const u of o.slice(c))
|
|
7568
7568
|
this._writeDictionaryBatch(u, r, !0);
|
|
7569
7569
|
this._seenDictionaries.set(r, i), this._dictionaryDeltaOffsets.set(r, o.length);
|
|
7570
7570
|
}
|
|
@@ -7610,11 +7610,11 @@ function Pn(s, t) {
|
|
|
7610
7610
|
}
|
|
7611
7611
|
function kn(s, t) {
|
|
7612
7612
|
return T(this, void 0, void 0, function* () {
|
|
7613
|
-
var e, n, r, i, o, a,
|
|
7613
|
+
var e, n, r, i, o, a, c;
|
|
7614
7614
|
try {
|
|
7615
7615
|
for (e = !0, n = Qt(t); r = yield n.next(), i = r.done, !i; e = !0) {
|
|
7616
|
-
|
|
7617
|
-
const u =
|
|
7616
|
+
c = r.value, e = !1;
|
|
7617
|
+
const u = c;
|
|
7618
7618
|
s.write(u);
|
|
7619
7619
|
}
|
|
7620
7620
|
} catch (u) {
|
|
@@ -7629,18 +7629,18 @@ function kn(s, t) {
|
|
|
7629
7629
|
return s.finish();
|
|
7630
7630
|
});
|
|
7631
7631
|
}
|
|
7632
|
-
function
|
|
7632
|
+
function Ql(s, t = "stream") {
|
|
7633
7633
|
return (t === "stream" ? Cn : xn).writeAll(s).toUint8Array(!0);
|
|
7634
7634
|
}
|
|
7635
|
-
var
|
|
7636
|
-
if (t && typeof t == "object" || typeof t == "function") for (let r of
|
|
7635
|
+
var Jl = Object.create, _o = Object.defineProperty, Zl = Object.getOwnPropertyDescriptor, Xl = Object.getOwnPropertyNames, tc = Object.getPrototypeOf, ec = Object.prototype.hasOwnProperty, sc = (s, t) => () => (t || s((t = { exports: {} }).exports, t), t.exports), nc = (s, t, e, n) => {
|
|
7636
|
+
if (t && typeof t == "object" || typeof t == "function") for (let r of Xl(t)) !ec.call(s, r) && r !== e && _o(s, r, { get: () => t[r], enumerable: !(n = Zl(t, r)) || n.enumerable });
|
|
7637
7637
|
return s;
|
|
7638
|
-
},
|
|
7638
|
+
}, rc = (s, t, e) => (e = s != null ? Jl(tc(s)) : {}, nc(!s || !s.__esModule ? _o(e, "default", { value: s, enumerable: !0 }) : e, s)), ic = sc((s, t) => {
|
|
7639
7639
|
t.exports = Worker;
|
|
7640
|
-
}),
|
|
7640
|
+
}), oc = ((s) => (s[s.UNDEFINED = 0] = "UNDEFINED", s[s.AUTOMATIC = 1] = "AUTOMATIC", s[s.READ_ONLY = 2] = "READ_ONLY", s[s.READ_WRITE = 3] = "READ_WRITE", s))(oc || {}), ac = ((s) => (s[s.IDENTIFIER = 0] = "IDENTIFIER", s[s.NUMERIC_CONSTANT = 1] = "NUMERIC_CONSTANT", s[s.STRING_CONSTANT = 2] = "STRING_CONSTANT", s[s.OPERATOR = 3] = "OPERATOR", s[s.KEYWORD = 4] = "KEYWORD", s[s.COMMENT = 5] = "COMMENT", s))(ac || {}), lc = ((s) => (s[s.NONE = 0] = "NONE", s[s.DEBUG = 1] = "DEBUG", s[s.INFO = 2] = "INFO", s[s.WARNING = 3] = "WARNING", s[s.ERROR = 4] = "ERROR", s))(lc || {}), cc = ((s) => (s[s.NONE = 0] = "NONE", s[s.CONNECT = 1] = "CONNECT", s[s.DISCONNECT = 2] = "DISCONNECT", s[s.OPEN = 3] = "OPEN", s[s.QUERY = 4] = "QUERY", s[s.INSTANTIATE = 5] = "INSTANTIATE", s))(cc || {}), uc = ((s) => (s[s.NONE = 0] = "NONE", s[s.OK = 1] = "OK", s[s.ERROR = 2] = "ERROR", s[s.START = 3] = "START", s[s.RUN = 4] = "RUN", s[s.CAPTURE = 5] = "CAPTURE", s))(uc || {}), dc = ((s) => (s[s.NONE = 0] = "NONE", s[s.WEB_WORKER = 1] = "WEB_WORKER", s[s.NODE_WORKER = 2] = "NODE_WORKER", s[s.BINDINGS = 3] = "BINDINGS", s[s.ASYNC_DUCKDB = 4] = "ASYNC_DUCKDB", s))(dc || {}), Rc = class {
|
|
7641
7641
|
log(s) {
|
|
7642
7642
|
}
|
|
7643
|
-
},
|
|
7643
|
+
}, Dc = class {
|
|
7644
7644
|
constructor(s = 2) {
|
|
7645
7645
|
this.level = s;
|
|
7646
7646
|
}
|
|
@@ -7648,7 +7648,7 @@ var Jc = Object.create, _o = Object.defineProperty, Zc = Object.getOwnPropertyDe
|
|
|
7648
7648
|
s.level >= this.level && console.log(s);
|
|
7649
7649
|
}
|
|
7650
7650
|
};
|
|
7651
|
-
function
|
|
7651
|
+
function Bc(s) {
|
|
7652
7652
|
switch (s) {
|
|
7653
7653
|
case 0:
|
|
7654
7654
|
return "NONE";
|
|
@@ -7664,7 +7664,7 @@ function Bl(s) {
|
|
|
7664
7664
|
return "?";
|
|
7665
7665
|
}
|
|
7666
7666
|
}
|
|
7667
|
-
function
|
|
7667
|
+
function Nc(s) {
|
|
7668
7668
|
switch (s) {
|
|
7669
7669
|
case 0:
|
|
7670
7670
|
return "NONE";
|
|
@@ -7682,7 +7682,7 @@ function Nl(s) {
|
|
|
7682
7682
|
return "?";
|
|
7683
7683
|
}
|
|
7684
7684
|
}
|
|
7685
|
-
function
|
|
7685
|
+
function Fc(s) {
|
|
7686
7686
|
switch (s) {
|
|
7687
7687
|
case 1:
|
|
7688
7688
|
return "CONNECT";
|
|
@@ -7698,7 +7698,7 @@ function Fl(s) {
|
|
|
7698
7698
|
return "?";
|
|
7699
7699
|
}
|
|
7700
7700
|
}
|
|
7701
|
-
function
|
|
7701
|
+
function Lc(s) {
|
|
7702
7702
|
switch (s) {
|
|
7703
7703
|
case 0:
|
|
7704
7704
|
return "NONE";
|
|
@@ -7714,7 +7714,7 @@ function Ll(s) {
|
|
|
7714
7714
|
return "?";
|
|
7715
7715
|
}
|
|
7716
7716
|
}
|
|
7717
|
-
var
|
|
7717
|
+
var hc = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(hc || {}), pc = class {
|
|
7718
7718
|
constructor(s, t) {
|
|
7719
7719
|
this._bindings = s, this._conn = t;
|
|
7720
7720
|
}
|
|
@@ -7729,14 +7729,14 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
|
|
|
7729
7729
|
}
|
|
7730
7730
|
async query(s) {
|
|
7731
7731
|
this._bindings.logger.log({ timestamp: /* @__PURE__ */ new Date(), level: 2, origin: 4, topic: 4, event: 4, value: s });
|
|
7732
|
-
let t = await this._bindings.runQuery(this._conn, s), e =
|
|
7732
|
+
let t = await this._bindings.runQuery(this._conn, s), e = ht.from(t);
|
|
7733
7733
|
return console.assert(e.isSync(), "Reader is not sync"), console.assert(e.isFile(), "Reader is not file"), new q(e);
|
|
7734
7734
|
}
|
|
7735
7735
|
async send(s, t = !1) {
|
|
7736
7736
|
this._bindings.logger.log({ timestamp: /* @__PURE__ */ new Date(), level: 2, origin: 4, topic: 4, event: 4, value: s });
|
|
7737
7737
|
let e = await this._bindings.startPendingQuery(this._conn, s, t);
|
|
7738
7738
|
for (; e == null; ) e = await this._bindings.pollPendingQuery(this._conn);
|
|
7739
|
-
let n = new vo(this._bindings, this._conn, e), r = await
|
|
7739
|
+
let n = new vo(this._bindings, this._conn, e), r = await ht.from(n);
|
|
7740
7740
|
return console.assert(r.isAsync()), console.assert(r.isStream()), r;
|
|
7741
7741
|
}
|
|
7742
7742
|
async cancelSent() {
|
|
@@ -7747,10 +7747,10 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
|
|
|
7747
7747
|
}
|
|
7748
7748
|
async prepare(s) {
|
|
7749
7749
|
let t = await this._bindings.createPrepared(this._conn, s);
|
|
7750
|
-
return new
|
|
7750
|
+
return new fc(this._bindings, this._conn, t);
|
|
7751
7751
|
}
|
|
7752
7752
|
async insertArrowTable(s, t) {
|
|
7753
|
-
let e =
|
|
7753
|
+
let e = Ql(s, "stream");
|
|
7754
7754
|
await this.insertArrowFromIPCStream(e, t);
|
|
7755
7755
|
}
|
|
7756
7756
|
async insertArrowFromIPCStream(s, t) {
|
|
@@ -7775,7 +7775,7 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
|
|
|
7775
7775
|
[Symbol.asyncIterator]() {
|
|
7776
7776
|
return this;
|
|
7777
7777
|
}
|
|
7778
|
-
},
|
|
7778
|
+
}, fc = class {
|
|
7779
7779
|
constructor(s, t, e) {
|
|
7780
7780
|
this.bindings = s, this.connectionId = t, this.statementId = e;
|
|
7781
7781
|
}
|
|
@@ -7783,14 +7783,14 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
|
|
|
7783
7783
|
await this.bindings.closePrepared(this.connectionId, this.statementId);
|
|
7784
7784
|
}
|
|
7785
7785
|
async query(...s) {
|
|
7786
|
-
let t = await this.bindings.runPrepared(this.connectionId, this.statementId, s), e =
|
|
7786
|
+
let t = await this.bindings.runPrepared(this.connectionId, this.statementId, s), e = ht.from(t);
|
|
7787
7787
|
return console.assert(e.isSync()), console.assert(e.isFile()), new q(e);
|
|
7788
7788
|
}
|
|
7789
7789
|
async send(...s) {
|
|
7790
|
-
let t = await this.bindings.sendPrepared(this.connectionId, this.statementId, s), e = new vo(this.bindings, this.connectionId, t), n = await
|
|
7790
|
+
let t = await this.bindings.sendPrepared(this.connectionId, this.statementId, s), e = new vo(this.bindings, this.connectionId, t), n = await ht.from(e);
|
|
7791
7791
|
return console.assert(n.isAsync()), console.assert(n.isStream()), n;
|
|
7792
7792
|
}
|
|
7793
|
-
},
|
|
7793
|
+
}, yc = ((s) => (s.CANCEL_PENDING_QUERY = "CANCEL_PENDING_QUERY", s.CLOSE_PREPARED = "CLOSE_PREPARED", s.COLLECT_FILE_STATISTICS = "COLLECT_FILE_STATISTICS", s.REGISTER_OPFS_FILE_NAME = "REGISTER_OPFS_FILE_NAME", s.CONNECT = "CONNECT", s.COPY_FILE_TO_BUFFER = "COPY_FILE_TO_BUFFER", s.COPY_FILE_TO_PATH = "COPY_FILE_TO_PATH", s.CREATE_PREPARED = "CREATE_PREPARED", s.DISCONNECT = "DISCONNECT", s.DROP_FILE = "DROP_FILE", s.DROP_FILES = "DROP_FILES", s.EXPORT_FILE_STATISTICS = "EXPORT_FILE_STATISTICS", s.FETCH_QUERY_RESULTS = "FETCH_QUERY_RESULTS", s.FLUSH_FILES = "FLUSH_FILES", s.GET_FEATURE_FLAGS = "GET_FEATURE_FLAGS", s.GET_TABLE_NAMES = "GET_TABLE_NAMES", s.GET_VERSION = "GET_VERSION", s.GLOB_FILE_INFOS = "GLOB_FILE_INFOS", s.INSERT_ARROW_FROM_IPC_STREAM = "INSERT_ARROW_FROM_IPC_STREAM", s.INSERT_CSV_FROM_PATH = "IMPORT_CSV_FROM_PATH", s.INSERT_JSON_FROM_PATH = "IMPORT_JSON_FROM_PATH", s.INSTANTIATE = "INSTANTIATE", s.OPEN = "OPEN", s.PING = "PING", s.POLL_PENDING_QUERY = "POLL_PENDING_QUERY", s.REGISTER_FILE_BUFFER = "REGISTER_FILE_BUFFER", s.REGISTER_FILE_HANDLE = "REGISTER_FILE_HANDLE", s.REGISTER_FILE_URL = "REGISTER_FILE_URL", s.RESET = "RESET", s.RUN_PREPARED = "RUN_PREPARED", s.RUN_QUERY = "RUN_QUERY", s.SEND_PREPARED = "SEND_PREPARED", s.START_PENDING_QUERY = "START_PENDING_QUERY", s.TOKENIZE = "TOKENIZE", s))(yc || {}), bc = ((s) => (s.CONNECTION_INFO = "CONNECTION_INFO", s.ERROR = "ERROR", s.FEATURE_FLAGS = "FEATURE_FLAGS", s.FILE_BUFFER = "FILE_BUFFER", s.FILE_INFOS = "FILE_INFOS", s.FILE_SIZE = "FILE_SIZE", s.FILE_STATISTICS = "FILE_STATISTICS", s.INSTANTIATE_PROGRESS = "INSTANTIATE_PROGRESS", s.LOG = "LOG", s.PROGRESS_UPDATE = "PROGRESS_UPDATE", s.OK = "OK", s.PREPARED_STATEMENT_ID = "PREPARED_STATEMENT_ID", s.QUERY_PLAN = "QUERY_PLAN", s.QUERY_RESULT = "QUERY_RESULT", s.QUERY_RESULT_CHUNK = "QUERY_RESULT_CHUNK", s.QUERY_RESULT_HEADER = "QUERY_RESULT_HEADER", s.QUERY_RESULT_HEADER_OR_NULL = "QUERY_RESULT_HEADER_OR_NULL", s.REGISTERED_FILE = "REGISTERED_FILE", s.SCRIPT_TOKENS = "SCRIPT_TOKENS", s.SUCCESS = "SUCCESS", s.TABLE_NAMES = "TABLE_NAMES", s.VERSION_STRING = "VERSION_STRING", s))(bc || {}), B = class {
|
|
7794
7794
|
constructor(s, t) {
|
|
7795
7795
|
this.promiseResolver = () => {
|
|
7796
7796
|
}, this.promiseRejecter = () => {
|
|
@@ -7801,81 +7801,81 @@ var dl = ((s) => (s[s.SUCCESS = 0] = "SUCCESS", s))(dl || {}), pl = class {
|
|
|
7801
7801
|
};
|
|
7802
7802
|
function rs(s) {
|
|
7803
7803
|
switch (s.typeId) {
|
|
7804
|
-
case
|
|
7804
|
+
case l.Binary:
|
|
7805
7805
|
return { sqlType: "binary" };
|
|
7806
|
-
case
|
|
7806
|
+
case l.Bool:
|
|
7807
7807
|
return { sqlType: "bool" };
|
|
7808
|
-
case
|
|
7808
|
+
case l.Date:
|
|
7809
7809
|
return { sqlType: "date" };
|
|
7810
|
-
case
|
|
7810
|
+
case l.DateDay:
|
|
7811
7811
|
return { sqlType: "date32[d]" };
|
|
7812
|
-
case
|
|
7812
|
+
case l.DateMillisecond:
|
|
7813
7813
|
return { sqlType: "date64[ms]" };
|
|
7814
|
-
case
|
|
7814
|
+
case l.Decimal: {
|
|
7815
7815
|
let t = s;
|
|
7816
7816
|
return { sqlType: "decimal", precision: t.precision, scale: t.scale };
|
|
7817
7817
|
}
|
|
7818
|
-
case
|
|
7818
|
+
case l.Float:
|
|
7819
7819
|
return { sqlType: "float" };
|
|
7820
|
-
case
|
|
7820
|
+
case l.Float16:
|
|
7821
7821
|
return { sqlType: "float16" };
|
|
7822
|
-
case
|
|
7822
|
+
case l.Float32:
|
|
7823
7823
|
return { sqlType: "float32" };
|
|
7824
|
-
case
|
|
7824
|
+
case l.Float64:
|
|
7825
7825
|
return { sqlType: "float64" };
|
|
7826
|
-
case
|
|
7826
|
+
case l.Int:
|
|
7827
7827
|
return { sqlType: "int32" };
|
|
7828
|
-
case
|
|
7828
|
+
case l.Int16:
|
|
7829
7829
|
return { sqlType: "int16" };
|
|
7830
|
-
case
|
|
7830
|
+
case l.Int32:
|
|
7831
7831
|
return { sqlType: "int32" };
|
|
7832
|
-
case
|
|
7832
|
+
case l.Int64:
|
|
7833
7833
|
return { sqlType: "int64" };
|
|
7834
|
-
case
|
|
7834
|
+
case l.Uint16:
|
|
7835
7835
|
return { sqlType: "uint16" };
|
|
7836
|
-
case
|
|
7836
|
+
case l.Uint32:
|
|
7837
7837
|
return { sqlType: "uint32" };
|
|
7838
|
-
case
|
|
7838
|
+
case l.Uint64:
|
|
7839
7839
|
return { sqlType: "uint64" };
|
|
7840
|
-
case
|
|
7840
|
+
case l.Uint8:
|
|
7841
7841
|
return { sqlType: "uint8" };
|
|
7842
|
-
case
|
|
7842
|
+
case l.IntervalDayTime:
|
|
7843
7843
|
return { sqlType: "interval[dt]" };
|
|
7844
|
-
case
|
|
7844
|
+
case l.IntervalYearMonth:
|
|
7845
7845
|
return { sqlType: "interval[m]" };
|
|
7846
|
-
case
|
|
7846
|
+
case l.List:
|
|
7847
7847
|
return { sqlType: "list", valueType: rs(s.valueType) };
|
|
7848
|
-
case
|
|
7848
|
+
case l.FixedSizeBinary:
|
|
7849
7849
|
return { sqlType: "fixedsizebinary", byteWidth: s.byteWidth };
|
|
7850
|
-
case
|
|
7850
|
+
case l.Null:
|
|
7851
7851
|
return { sqlType: "null" };
|
|
7852
|
-
case
|
|
7852
|
+
case l.Utf8:
|
|
7853
7853
|
return { sqlType: "utf8" };
|
|
7854
|
-
case
|
|
7854
|
+
case l.Struct:
|
|
7855
7855
|
return { sqlType: "struct", fields: s.children.map((t) => pn(t.name, t.type)) };
|
|
7856
|
-
case
|
|
7856
|
+
case l.Map: {
|
|
7857
7857
|
let t = s;
|
|
7858
7858
|
return { sqlType: "map", keyType: rs(t.keyType), valueType: rs(t.valueType) };
|
|
7859
7859
|
}
|
|
7860
|
-
case
|
|
7860
|
+
case l.Time:
|
|
7861
7861
|
return { sqlType: "time[s]" };
|
|
7862
|
-
case
|
|
7862
|
+
case l.TimeMicrosecond:
|
|
7863
7863
|
return { sqlType: "time[us]" };
|
|
7864
|
-
case
|
|
7864
|
+
case l.TimeMillisecond:
|
|
7865
7865
|
return { sqlType: "time[ms]" };
|
|
7866
|
-
case
|
|
7866
|
+
case l.TimeNanosecond:
|
|
7867
7867
|
return { sqlType: "time[ns]" };
|
|
7868
|
-
case
|
|
7868
|
+
case l.TimeSecond:
|
|
7869
7869
|
return { sqlType: "time[s]" };
|
|
7870
|
-
case
|
|
7870
|
+
case l.Timestamp:
|
|
7871
7871
|
return { sqlType: "timestamp", timezone: s.timezone || void 0 };
|
|
7872
|
-
case
|
|
7872
|
+
case l.TimestampSecond:
|
|
7873
7873
|
return { sqlType: "timestamp[s]", timezone: s.timezone || void 0 };
|
|
7874
|
-
case
|
|
7874
|
+
case l.TimestampMicrosecond:
|
|
7875
7875
|
return { sqlType: "timestamp[us]", timezone: s.timezone || void 0 };
|
|
7876
|
-
case
|
|
7876
|
+
case l.TimestampNanosecond:
|
|
7877
7877
|
return { sqlType: "timestamp[ns]", timezone: s.timezone || void 0 };
|
|
7878
|
-
case
|
|
7878
|
+
case l.TimestampMillisecond:
|
|
7879
7879
|
return { sqlType: "timestamp[ms]", timezone: s.timezone || void 0 };
|
|
7880
7880
|
}
|
|
7881
7881
|
throw new Error("unsupported arrow type: ".concat(s.toString()));
|
|
@@ -7884,7 +7884,7 @@ function pn(s, t) {
|
|
|
7884
7884
|
let e = rs(t);
|
|
7885
7885
|
return e.name = s, e;
|
|
7886
7886
|
}
|
|
7887
|
-
var
|
|
7887
|
+
var gc = new TextEncoder(), Uc = class {
|
|
7888
7888
|
constructor(s, t = null) {
|
|
7889
7889
|
this._onInstantiationProgress = [], this._onExecutionProgress = [], this._worker = null, this._workerShutdownPromise = null, this._workerShutdownResolver = () => {
|
|
7890
7890
|
}, this._nextMessageId = 0, this._pendingRequests = /* @__PURE__ */ new Map(), this._logger = s, this._onMessageHandler = this.onMessage.bind(this), this._onErrorHandler = this.onError.bind(this), this._onCloseHandler = this.onClose.bind(this), t != null && this.attach(t);
|
|
@@ -8121,7 +8121,7 @@ var gl = new TextEncoder(), Ul = class {
|
|
|
8121
8121
|
}
|
|
8122
8122
|
async connect() {
|
|
8123
8123
|
let s = await this.connectInternal();
|
|
8124
|
-
return new
|
|
8124
|
+
return new pc(this, s);
|
|
8125
8125
|
}
|
|
8126
8126
|
async disconnect(s) {
|
|
8127
8127
|
let t = new B("DISCONNECT", s);
|
|
@@ -8172,7 +8172,7 @@ var gl = new TextEncoder(), Ul = class {
|
|
|
8172
8172
|
return await this.postTask(t);
|
|
8173
8173
|
}
|
|
8174
8174
|
async registerFileText(s, t) {
|
|
8175
|
-
let e =
|
|
8175
|
+
let e = gc.encode(t);
|
|
8176
8176
|
await this.registerFileBuffer(s, e);
|
|
8177
8177
|
}
|
|
8178
8178
|
async registerFileURL(s, t, e, n) {
|
|
@@ -8240,12 +8240,12 @@ var gl = new TextEncoder(), Ul = class {
|
|
|
8240
8240
|
await this.postTask(n);
|
|
8241
8241
|
}
|
|
8242
8242
|
};
|
|
8243
|
-
function
|
|
8243
|
+
function mc() {
|
|
8244
8244
|
let s = new TextDecoder();
|
|
8245
8245
|
return (t) => (typeof SharedArrayBuffer < "u" && t.buffer instanceof SharedArrayBuffer && (t = new Uint8Array(t)), s.decode(t));
|
|
8246
8246
|
}
|
|
8247
|
-
|
|
8248
|
-
var
|
|
8247
|
+
mc();
|
|
8248
|
+
var _c = ((s) => (s[s.BUFFER = 0] = "BUFFER", s[s.NODE_FS = 1] = "NODE_FS", s[s.BROWSER_FILEREADER = 2] = "BROWSER_FILEREADER", s[s.BROWSER_FSACCESS = 3] = "BROWSER_FSACCESS", s[s.HTTP = 4] = "HTTP", s[s.S3 = 5] = "S3", s))(_c || {}), Mc = class {
|
|
8249
8249
|
constructor() {
|
|
8250
8250
|
this._bindings = null, this._nextMessageId = 0;
|
|
8251
8251
|
}
|
|
@@ -8412,67 +8412,67 @@ var _l = ((s) => (s[s.BUFFER = 0] = "BUFFER", s[s.NODE_FS = 1] = "NODE_FS", s[s.
|
|
|
8412
8412
|
return console.log(t), this.failWith(s, t);
|
|
8413
8413
|
}
|
|
8414
8414
|
}
|
|
8415
|
-
},
|
|
8415
|
+
}, vc = 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])), Ic = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 8, 1, 6, 0, 6, 64, 25, 11, 11])), wc = async () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11])), Sc = () => (async (s) => {
|
|
8416
8416
|
try {
|
|
8417
8417
|
return typeof MessageChannel < "u" && new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)), WebAssembly.validate(s);
|
|
8418
8418
|
} catch {
|
|
8419
8419
|
return !1;
|
|
8420
8420
|
}
|
|
8421
|
-
})(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])), Vn = { name: "@duckdb/duckdb-wasm", version: "1.29.1-dev132.0" },
|
|
8422
|
-
function
|
|
8423
|
-
let s = "https://cdn.jsdelivr.net/npm/".concat(
|
|
8421
|
+
})(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])), Vn = { name: "@duckdb/duckdb-wasm", version: "1.29.1-dev132.0" }, Tc = Vn.name, Ec = Vn.version, zn = Vn.version.split("."), Cc = zn[0], xc = zn[1], Pc = zn[2], Io = () => typeof navigator > "u", wo = () => Io() ? "node" : navigator.userAgent, kc = () => wo().includes("Firefox"), Vc = () => /^((?!chrome|android).)*safari/i.test(wo());
|
|
8422
|
+
function zc() {
|
|
8423
|
+
let s = "https://cdn.jsdelivr.net/npm/".concat(Tc, "@").concat(Ec, "/dist/");
|
|
8424
8424
|
return { mvp: { mainModule: "".concat(s, "duckdb-mvp.wasm"), mainWorker: "".concat(s, "duckdb-browser-mvp.worker.js") }, eh: { mainModule: "".concat(s, "duckdb-eh.wasm"), mainWorker: "".concat(s, "duckdb-browser-eh.worker.js") } };
|
|
8425
8425
|
}
|
|
8426
8426
|
var Hs = null, qs = null, Qs = null, Js = null, Zs = null;
|
|
8427
|
-
async function
|
|
8428
|
-
return Hs == null && (Hs = typeof BigInt64Array < "u"), qs == null && (qs = await
|
|
8427
|
+
async function Oc() {
|
|
8428
|
+
return Hs == null && (Hs = typeof BigInt64Array < "u"), qs == null && (qs = await Ic()), Qs == null && (Qs = await Sc()), Js == null && (Js = await wc()), Zs == null && (Zs = await vc()), { bigInt64Array: Hs, crossOriginIsolated: Io() || globalThis.crossOriginIsolated || !1, wasmExceptions: qs, wasmSIMD: Js, wasmThreads: Qs, wasmBulkMemory: Zs };
|
|
8429
8429
|
}
|
|
8430
|
-
async function
|
|
8431
|
-
let t = await
|
|
8430
|
+
async function jc(s) {
|
|
8431
|
+
let t = await Oc();
|
|
8432
8432
|
if (t.wasmExceptions) {
|
|
8433
8433
|
if (t.wasmSIMD && t.wasmThreads && t.crossOriginIsolated && s.coi) return { mainModule: s.coi.mainModule, mainWorker: s.coi.mainWorker, pthreadWorker: s.coi.pthreadWorker };
|
|
8434
8434
|
if (s.eh) return { mainModule: s.eh.mainModule, mainWorker: s.eh.mainWorker, pthreadWorker: null };
|
|
8435
8435
|
}
|
|
8436
8436
|
return { mainModule: s.mvp.mainModule, mainWorker: s.mvp.mainWorker, pthreadWorker: null };
|
|
8437
8437
|
}
|
|
8438
|
-
var
|
|
8439
|
-
async function
|
|
8438
|
+
var Ac = rc(ic());
|
|
8439
|
+
async function Yc(s) {
|
|
8440
8440
|
let t = new Request(s), e = await fetch(t), n = URL.createObjectURL(await e.blob());
|
|
8441
|
-
return new
|
|
8441
|
+
return new Ac.default(n);
|
|
8442
8442
|
}
|
|
8443
8443
|
export {
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8444
|
+
Uc as AsyncDuckDB,
|
|
8445
|
+
pc as AsyncDuckDBConnection,
|
|
8446
|
+
Mc as AsyncDuckDBDispatcher,
|
|
8447
|
+
fc as AsyncPreparedStatement,
|
|
8448
8448
|
vo as AsyncResultStreamIterator,
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8449
|
+
Dc as ConsoleLogger,
|
|
8450
|
+
oc as DuckDBAccessMode,
|
|
8451
|
+
_c as DuckDBDataProtocol,
|
|
8452
|
+
uc as LogEvent,
|
|
8453
|
+
lc as LogLevel,
|
|
8454
|
+
dc as LogOrigin,
|
|
8455
|
+
cc as LogTopic,
|
|
8456
|
+
Tc as PACKAGE_NAME,
|
|
8457
|
+
Ec as PACKAGE_VERSION,
|
|
8458
|
+
Cc as PACKAGE_VERSION_MAJOR,
|
|
8459
|
+
xc as PACKAGE_VERSION_MINOR,
|
|
8460
|
+
Pc as PACKAGE_VERSION_PATCH,
|
|
8461
|
+
hc as StatusCode,
|
|
8462
|
+
ac as TokenType,
|
|
8463
|
+
Rc as VoidLogger,
|
|
8464
|
+
yc as WorkerRequestType,
|
|
8465
|
+
bc as WorkerResponseType,
|
|
8466
8466
|
B as WorkerTask,
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8467
|
+
Yc as createWorker,
|
|
8468
|
+
zc as getJsDelivrBundles,
|
|
8469
|
+
Nc as getLogEventLabel,
|
|
8470
|
+
Bc as getLogLevelLabel,
|
|
8471
|
+
Lc as getLogOriginLabel,
|
|
8472
|
+
Fc as getLogTopicLabel,
|
|
8473
|
+
Oc as getPlatformFeatures,
|
|
8474
|
+
kc as isFirefox,
|
|
8475
8475
|
Io as isNode,
|
|
8476
|
-
|
|
8477
|
-
|
|
8476
|
+
Vc as isSafari,
|
|
8477
|
+
jc as selectBundle
|
|
8478
8478
|
};
|