@loaders.gl/parquet 4.2.0-alpha.4 → 4.2.0-alpha.5
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/index.cjs +269 -616
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.ts +12 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/lib/arrow/convert-columns-to-row-group.js +1 -2
- package/dist/lib/arrow/convert-row-group-to-columns.js +8 -6
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts +3 -3
- package/dist/lib/arrow/convert-schema-from-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-from-parquet.js +71 -82
- package/dist/lib/arrow/convert-schema-to-parquet.d.ts +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.d.ts.map +1 -1
- package/dist/lib/arrow/convert-schema-to-parquet.js +65 -35
- package/dist/lib/constants.js +14 -1
- package/dist/lib/parsers/get-parquet-schema.d.ts +1 -1
- package/dist/lib/parsers/get-parquet-schema.d.ts.map +1 -1
- package/dist/lib/parsers/get-parquet-schema.js +9 -7
- package/dist/lib/parsers/parse-geoparquet.d.ts +1 -1
- package/dist/lib/parsers/parse-geoparquet.d.ts.map +1 -1
- package/dist/lib/parsers/parse-geoparquet.js +47 -45
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet-to-columns.js +36 -25
- package/dist/lib/parsers/parse-parquet.d.ts +1 -1
- package/dist/lib/parsers/parse-parquet.d.ts.map +1 -1
- package/dist/lib/parsers/parse-parquet.js +62 -50
- package/dist/lib/wasm/encode-parquet-wasm.d.ts +1 -1
- package/dist/lib/wasm/encode-parquet-wasm.d.ts.map +1 -1
- package/dist/lib/wasm/encode-parquet-wasm.js +49 -12
- package/dist/lib/wasm/load-wasm.js +13 -10
- package/dist/lib/wasm/parse-parquet-wasm.d.ts +1 -1
- package/dist/lib/wasm/parse-parquet-wasm.d.ts.map +1 -1
- package/dist/lib/wasm/parse-parquet-wasm.js +19 -15
- package/dist/parquet-loader.d.ts +1 -1
- package/dist/parquet-loader.d.ts.map +1 -1
- package/dist/parquet-loader.js +77 -64
- package/dist/parquet-wasm-loader.js +25 -28
- package/dist/parquet-wasm-writer.js +19 -23
- package/dist/parquet-writer.js +16 -12
- package/dist/parquetjs/codecs/declare.d.ts +1 -1
- package/dist/parquetjs/codecs/declare.d.ts.map +1 -1
- package/dist/parquetjs/codecs/declare.js +0 -1
- package/dist/parquetjs/codecs/dictionary.js +4 -8
- package/dist/parquetjs/codecs/index.d.ts +3 -3
- package/dist/parquetjs/codecs/index.d.ts.map +1 -1
- package/dist/parquetjs/codecs/index.js +20 -17
- package/dist/parquetjs/codecs/plain.d.ts +2 -2
- package/dist/parquetjs/codecs/plain.d.ts.map +1 -1
- package/dist/parquetjs/codecs/plain.js +166 -162
- package/dist/parquetjs/codecs/rle.d.ts +2 -2
- package/dist/parquetjs/codecs/rle.d.ts.map +1 -1
- package/dist/parquetjs/codecs/rle.js +124 -105
- package/dist/parquetjs/compression.d.ts +1 -1
- package/dist/parquetjs/compression.d.ts.map +1 -1
- package/dist/parquetjs/compression.js +157 -43
- package/dist/parquetjs/encoder/parquet-encoder.d.ts +3 -3
- package/dist/parquetjs/encoder/parquet-encoder.d.ts.map +1 -1
- package/dist/parquetjs/encoder/parquet-encoder.js +406 -275
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.js +12 -7
- package/dist/parquetjs/parquet-thrift/BsonType.js +31 -27
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js +175 -166
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js +178 -166
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts +6 -6
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js +359 -333
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js +73 -68
- package/dist/parquetjs/parquet-thrift/CompressionCodec.js +17 -12
- package/dist/parquetjs/parquet-thrift/ConvertedType.js +31 -26
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/DataPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js +136 -124
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js +198 -181
- package/dist/parquetjs/parquet-thrift/DateType.js +31 -27
- package/dist/parquetjs/parquet-thrift/DecimalType.js +76 -69
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js +93 -86
- package/dist/parquetjs/parquet-thrift/Encoding.js +17 -12
- package/dist/parquetjs/parquet-thrift/EnumType.js +31 -27
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js +12 -7
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts +4 -4
- package/dist/parquetjs/parquet-thrift/FileMetaData.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/FileMetaData.js +217 -205
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js +31 -27
- package/dist/parquetjs/parquet-thrift/IntType.js +76 -69
- package/dist/parquetjs/parquet-thrift/JsonType.js +31 -27
- package/dist/parquetjs/parquet-thrift/KeyValue.js +73 -67
- package/dist/parquetjs/parquet-thrift/ListType.js +31 -27
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts +13 -13
- package/dist/parquetjs/parquet-thrift/LogicalType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js +325 -344
- package/dist/parquetjs/parquet-thrift/MapType.js +31 -27
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js +31 -27
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js +31 -27
- package/dist/parquetjs/parquet-thrift/NullType.js +31 -27
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js +66 -60
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js +98 -88
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts +5 -5
- package/dist/parquetjs/parquet-thrift/PageHeader.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js +185 -175
- package/dist/parquetjs/parquet-thrift/PageLocation.js +108 -96
- package/dist/parquetjs/parquet-thrift/PageType.js +13 -8
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/RowGroup.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/RowGroup.js +145 -133
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts +4 -4
- package/dist/parquetjs/parquet-thrift/SchemaElement.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js +211 -205
- package/dist/parquetjs/parquet-thrift/SortingColumn.js +98 -88
- package/dist/parquetjs/parquet-thrift/Statistics.js +143 -137
- package/dist/parquetjs/parquet-thrift/StringType.js +31 -27
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeType.js +76 -69
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts +2 -2
- package/dist/parquetjs/parquet-thrift/TimeUnit.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js +94 -91
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.js +76 -69
- package/dist/parquetjs/parquet-thrift/Type.js +17 -12
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js +31 -27
- package/dist/parquetjs/parquet-thrift/UUIDType.js +31 -27
- package/dist/parquetjs/parquet-thrift/index.d.ts +44 -44
- package/dist/parquetjs/parquet-thrift/index.d.ts.map +1 -1
- package/dist/parquetjs/parquet-thrift/index.js +6 -1
- package/dist/parquetjs/parser/decoders.d.ts +3 -3
- package/dist/parquetjs/parser/decoders.d.ts.map +1 -1
- package/dist/parquetjs/parser/decoders.js +306 -242
- package/dist/parquetjs/parser/parquet-reader.d.ts +3 -3
- package/dist/parquetjs/parser/parquet-reader.d.ts.map +1 -1
- package/dist/parquetjs/parser/parquet-reader.js +179 -157
- package/dist/parquetjs/schema/declare.d.ts +1 -1
- package/dist/parquetjs/schema/declare.d.ts.map +1 -1
- package/dist/parquetjs/schema/declare.js +6 -9
- package/dist/parquetjs/schema/schema.d.ts +1 -1
- package/dist/parquetjs/schema/schema.d.ts.map +1 -1
- package/dist/parquetjs/schema/schema.js +139 -120
- package/dist/parquetjs/schema/shred.d.ts +2 -2
- package/dist/parquetjs/schema/shred.d.ts.map +1 -1
- package/dist/parquetjs/schema/shred.js +301 -204
- package/dist/parquetjs/schema/types.d.ts +1 -1
- package/dist/parquetjs/schema/types.d.ts.map +1 -1
- package/dist/parquetjs/schema/types.js +328 -314
- package/dist/parquetjs/utils/file-utils.js +24 -23
- package/dist/parquetjs/utils/read-utils.d.ts +1 -1
- package/dist/parquetjs/utils/read-utils.d.ts.map +1 -1
- package/dist/parquetjs/utils/read-utils.js +79 -69
- package/dist/polyfills/buffer/buffer-polyfill.browser.js +8 -3
- package/dist/polyfills/buffer/buffer-polyfill.node.js +13 -8
- package/dist/polyfills/buffer/buffer.js +1750 -1367
- package/dist/polyfills/buffer/index.d.ts +3 -3
- package/dist/polyfills/buffer/index.d.ts.map +1 -1
- package/dist/polyfills/buffer/index.js +5 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.js +2 -1
- package/dist/polyfills/util.js +4 -1
- package/dist/workers/parquet-worker.js +3 -1
- package/package.json +15 -13
- package/src/index.ts +1 -1
- package/src/lib/parsers/parse-parquet-to-columns.ts +1 -1
- package/src/lib/parsers/parse-parquet.ts +1 -1
- package/src/parquetjs/encoder/parquet-encoder.ts +2 -2
- package/src/parquetjs/parser/decoders.ts +2 -2
- package/src/parquetjs/parser/parquet-reader.ts +1 -1
- package/src/parquetjs/schema/schema.ts +1 -1
- package/src/parquetjs/utils/read-utils.ts +2 -2
- package/dist/index.js.map +0 -1
- package/dist/lib/arrow/convert-columns-to-row-group.js.map +0 -1
- package/dist/lib/arrow/convert-row-group-to-columns.js.map +0 -1
- package/dist/lib/arrow/convert-schema-from-parquet.js.map +0 -1
- package/dist/lib/arrow/convert-schema-to-parquet.js.map +0 -1
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/parsers/get-parquet-schema.js.map +0 -1
- package/dist/lib/parsers/parse-geoparquet.js.map +0 -1
- package/dist/lib/parsers/parse-parquet-to-columns.js.map +0 -1
- package/dist/lib/parsers/parse-parquet.js.map +0 -1
- package/dist/lib/wasm/encode-parquet-wasm.js.map +0 -1
- package/dist/lib/wasm/load-wasm.js.map +0 -1
- package/dist/lib/wasm/parse-parquet-wasm.js.map +0 -1
- package/dist/lib/wip/convert-schema-deep.java.disabled +0 -910
- package/dist/lib/wip/convert-schema-deep.rs.disabled +0 -976
- package/dist/parquet-loader.js.map +0 -1
- package/dist/parquet-wasm-loader.js.map +0 -1
- package/dist/parquet-wasm-writer.js.map +0 -1
- package/dist/parquet-writer.js.map +0 -1
- package/dist/parquetjs/LICENSE +0 -20
- package/dist/parquetjs/codecs/declare.js.map +0 -1
- package/dist/parquetjs/codecs/dictionary.js.map +0 -1
- package/dist/parquetjs/codecs/index.js.map +0 -1
- package/dist/parquetjs/codecs/plain.js.map +0 -1
- package/dist/parquetjs/codecs/rle.js.map +0 -1
- package/dist/parquetjs/compression.js.map +0 -1
- package/dist/parquetjs/encoder/parquet-encoder.js.map +0 -1
- package/dist/parquetjs/modules.d.ts +0 -21
- package/dist/parquetjs/parquet-thrift/BoundaryOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/BsonType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnChunk.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnIndex.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnMetaData.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ColumnOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/CompressionCodec.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ConvertedType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DataPageHeaderV2.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DateType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DecimalType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/DictionaryPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Encoding.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/EnumType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/FieldRepetitionType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/FileMetaData.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/IndexPageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/IntType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/JsonType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/KeyValue.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/ListType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/LogicalType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MapType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MicroSeconds.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/MilliSeconds.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/NullType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/OffsetIndex.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageEncodingStats.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageHeader.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageLocation.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/PageType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/RowGroup.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/SchemaElement.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/SortingColumn.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Statistics.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/StringType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimeType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimeUnit.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TimestampType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/Type.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/TypeDefinedOrder.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/UUIDType.js.map +0 -1
- package/dist/parquetjs/parquet-thrift/index.js.map +0 -1
- package/dist/parquetjs/parser/decoders.js.map +0 -1
- package/dist/parquetjs/parser/parquet-reader.js.map +0 -1
- package/dist/parquetjs/schema/declare.js.map +0 -1
- package/dist/parquetjs/schema/schema.js.map +0 -1
- package/dist/parquetjs/schema/shred.js.map +0 -1
- package/dist/parquetjs/schema/types.js.map +0 -1
- package/dist/parquetjs/utils/file-utils.js.map +0 -1
- package/dist/parquetjs/utils/read-utils.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.browser.js.map +0 -1
- package/dist/polyfills/buffer/buffer-polyfill.node.js.map +0 -1
- package/dist/polyfills/buffer/buffer.js.map +0 -1
- package/dist/polyfills/buffer/index.js.map +0 -1
- package/dist/polyfills/buffer/install-buffer-polyfill.js.map +0 -1
- package/dist/polyfills/util.js.map +0 -1
- package/dist/workers/parquet-worker.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decoders.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parser/decoders.ts"],"names":[],"mappings":";AACA,OAAO,EAEL,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EAGf,gBAAgB,EACjB,
|
|
1
|
+
{"version":3,"file":"decoders.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parser/decoders.ts"],"names":[],"mappings":";AACA,OAAO,EAEL,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EAGf,gBAAgB,EACjB,6BAA0B;AAC3B,OAAO,EAAC,YAAY,EAAsC,2BAAwB;AAClF,OAAO,EAML,aAAa,EAEd,mCAAgC;AAKjC;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,kBAAkB,CAAC,CAmD7B;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,eAAe,CAAC,CA0B1B;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,cAAc,EAAE,aAAa,EAAE,EAC/B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,GACV;IACD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CA4DA"}
|
|
@@ -3,267 +3,331 @@ import { ConvertedType, Encoding, FieldRepetitionType, PageType, Type } from "..
|
|
|
3
3
|
import { decompress } from "../compression.js";
|
|
4
4
|
import { PARQUET_RDLVL_TYPE, PARQUET_RDLVL_ENCODING } from "../../lib/constants.js";
|
|
5
5
|
import { decodePageHeader, getThriftEnum, getBitWidth } from "../utils/read-utils.js";
|
|
6
|
+
/**
|
|
7
|
+
* Decode data pages
|
|
8
|
+
* @param buffer - input data
|
|
9
|
+
* @param column - parquet column
|
|
10
|
+
* @param compression - compression type
|
|
11
|
+
* @returns parquet data page data
|
|
12
|
+
*/
|
|
6
13
|
export async function decodeDataPages(buffer, context) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
14
|
+
const cursor = {
|
|
15
|
+
buffer,
|
|
16
|
+
offset: 0,
|
|
17
|
+
size: buffer.length
|
|
18
|
+
};
|
|
19
|
+
const data = {
|
|
20
|
+
rlevels: [],
|
|
21
|
+
dlevels: [],
|
|
22
|
+
values: [],
|
|
23
|
+
pageHeaders: [],
|
|
24
|
+
count: 0
|
|
25
|
+
};
|
|
26
|
+
let dictionary = context.dictionary || [];
|
|
27
|
+
while (
|
|
28
|
+
// @ts-ignore size can be undefined
|
|
29
|
+
cursor.offset < cursor.size &&
|
|
30
|
+
(!context.numValues || data.dlevels.length < Number(context.numValues))) {
|
|
31
|
+
// Looks like we have to decode these in sequence due to cursor updates?
|
|
32
|
+
const page = await decodePage(cursor, context);
|
|
33
|
+
if (page.dictionary) {
|
|
34
|
+
dictionary = page.dictionary;
|
|
35
|
+
// eslint-disable-next-line no-continue
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
if (dictionary.length) {
|
|
39
|
+
// eslint-disable-next-line no-loop-func
|
|
40
|
+
page.values = page.values.map((value) => dictionary[value]);
|
|
41
|
+
}
|
|
42
|
+
for (let index = 0; index < page.rlevels.length; index++) {
|
|
43
|
+
data.rlevels.push(page.rlevels[index]);
|
|
44
|
+
data.dlevels.push(page.dlevels[index]);
|
|
45
|
+
const value = page.values[index];
|
|
46
|
+
if (value !== undefined) {
|
|
47
|
+
data.values.push(value);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
data.count += page.count;
|
|
51
|
+
data.pageHeaders.push(page.pageHeader);
|
|
36
52
|
}
|
|
37
|
-
data
|
|
38
|
-
data.pageHeaders.push(page.pageHeader);
|
|
39
|
-
}
|
|
40
|
-
return data;
|
|
53
|
+
return data;
|
|
41
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Decode parquet page based on page type
|
|
57
|
+
* @param cursor
|
|
58
|
+
* @param context
|
|
59
|
+
*/
|
|
42
60
|
export async function decodePage(cursor, context) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
throw new Error(`invalid page type: ${pageType}`);
|
|
65
|
-
}
|
|
66
|
-
return page;
|
|
61
|
+
let page;
|
|
62
|
+
const { pageHeader, length } = decodePageHeader(cursor.buffer, cursor.offset);
|
|
63
|
+
cursor.offset += length;
|
|
64
|
+
const pageType = getThriftEnum(PageType, pageHeader.type);
|
|
65
|
+
switch (pageType) {
|
|
66
|
+
case 'DATA_PAGE':
|
|
67
|
+
page = await decodeDataPage(cursor, pageHeader, context);
|
|
68
|
+
break;
|
|
69
|
+
case 'DATA_PAGE_V2':
|
|
70
|
+
page = await decodeDataPageV2(cursor, pageHeader, context);
|
|
71
|
+
break;
|
|
72
|
+
case 'DICTIONARY_PAGE':
|
|
73
|
+
page = {
|
|
74
|
+
dictionary: await decodeDictionaryPage(cursor, pageHeader, context),
|
|
75
|
+
pageHeader
|
|
76
|
+
};
|
|
77
|
+
break;
|
|
78
|
+
default:
|
|
79
|
+
throw new Error(`invalid page type: ${pageType}`);
|
|
80
|
+
}
|
|
81
|
+
return page;
|
|
67
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Decode parquet schema
|
|
85
|
+
* @param schemaElements input schema elements data
|
|
86
|
+
* @param offset offset to read from
|
|
87
|
+
* @param len length of data
|
|
88
|
+
* @returns result.offset
|
|
89
|
+
* result.next - offset at the end of function
|
|
90
|
+
* result.schema - schema read from the input data
|
|
91
|
+
* @todo output offset is the same as input - possibly excess output field
|
|
92
|
+
*/
|
|
68
93
|
export function decodeSchema(schemaElements, offset, len) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
94
|
+
const schema = {};
|
|
95
|
+
let next = offset;
|
|
96
|
+
for (let i = 0; i < len; i++) {
|
|
97
|
+
const schemaElement = schemaElements[next];
|
|
98
|
+
const repetitionType = next > 0 ? getThriftEnum(FieldRepetitionType, schemaElement.repetition_type) : 'ROOT';
|
|
99
|
+
let optional = false;
|
|
100
|
+
let repeated = false;
|
|
101
|
+
switch (repetitionType) {
|
|
102
|
+
case 'REQUIRED':
|
|
103
|
+
break;
|
|
104
|
+
case 'OPTIONAL':
|
|
105
|
+
optional = true;
|
|
106
|
+
break;
|
|
107
|
+
case 'REPEATED':
|
|
108
|
+
repeated = true;
|
|
109
|
+
break;
|
|
110
|
+
default:
|
|
111
|
+
throw new Error('parquet: unknown repetition type');
|
|
112
|
+
}
|
|
113
|
+
if (schemaElement.num_children > 0) {
|
|
114
|
+
const res = decodeSchema(schemaElements, next + 1, schemaElement.num_children);
|
|
115
|
+
next = res.next;
|
|
116
|
+
schema[schemaElement.name] = {
|
|
117
|
+
// type: undefined,
|
|
118
|
+
optional,
|
|
119
|
+
repeated,
|
|
120
|
+
fields: res.schema
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
const type = getThriftEnum(Type, schemaElement.type);
|
|
125
|
+
let logicalType = type;
|
|
126
|
+
if (schemaElement.converted_type) {
|
|
127
|
+
logicalType = getThriftEnum(ConvertedType, schemaElement.converted_type);
|
|
128
|
+
}
|
|
129
|
+
switch (logicalType) {
|
|
130
|
+
case 'DECIMAL':
|
|
131
|
+
logicalType = `${logicalType}_${type}`;
|
|
132
|
+
break;
|
|
133
|
+
default:
|
|
134
|
+
}
|
|
135
|
+
schema[schemaElement.name] = {
|
|
136
|
+
type: logicalType,
|
|
137
|
+
typeLength: schemaElement.type_length,
|
|
138
|
+
presision: schemaElement.precision,
|
|
139
|
+
scale: schemaElement.scale,
|
|
140
|
+
optional,
|
|
141
|
+
repeated
|
|
142
|
+
};
|
|
143
|
+
next++;
|
|
144
|
+
}
|
|
117
145
|
}
|
|
118
|
-
|
|
119
|
-
return {
|
|
120
|
-
schema,
|
|
121
|
-
offset,
|
|
122
|
-
next
|
|
123
|
-
};
|
|
146
|
+
return { schema, offset, next };
|
|
124
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Decode a consecutive array of data using one of the parquet encodings
|
|
150
|
+
*/
|
|
125
151
|
function decodeValues(type, encoding, cursor, count, opts) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
152
|
+
if (!(encoding in PARQUET_CODECS)) {
|
|
153
|
+
throw new Error(`invalid encoding: ${encoding}`);
|
|
154
|
+
}
|
|
155
|
+
return PARQUET_CODECS[encoding].decodeValues(type, cursor, count, opts);
|
|
130
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Do decoding of parquet dataPage from column chunk
|
|
159
|
+
* @param cursor
|
|
160
|
+
* @param header
|
|
161
|
+
* @param options
|
|
162
|
+
*/
|
|
131
163
|
async function decodeDataPage(cursor, header, context) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
rLevels =
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
164
|
+
const cursorEnd = cursor.offset + header.compressed_page_size;
|
|
165
|
+
const valueCount = header.data_page_header?.num_values;
|
|
166
|
+
/* uncompress page */
|
|
167
|
+
let dataCursor = cursor;
|
|
168
|
+
if (context.compression !== 'UNCOMPRESSED') {
|
|
169
|
+
const valuesBuf = await decompress(context.compression, cursor.buffer.slice(cursor.offset, cursorEnd), header.uncompressed_page_size);
|
|
170
|
+
dataCursor = {
|
|
171
|
+
buffer: valuesBuf,
|
|
172
|
+
offset: 0,
|
|
173
|
+
size: valuesBuf.length
|
|
174
|
+
};
|
|
175
|
+
cursor.offset = cursorEnd;
|
|
176
|
+
}
|
|
177
|
+
/* read repetition levels */
|
|
178
|
+
const rLevelEncoding = getThriftEnum(Encoding, header.data_page_header?.repetition_level_encoding);
|
|
179
|
+
// tslint:disable-next-line:prefer-array-literal
|
|
180
|
+
let rLevels = new Array(valueCount);
|
|
181
|
+
if (context.column.rLevelMax > 0) {
|
|
182
|
+
rLevels = decodeValues(PARQUET_RDLVL_TYPE, rLevelEncoding, dataCursor, valueCount, {
|
|
183
|
+
bitWidth: getBitWidth(context.column.rLevelMax),
|
|
184
|
+
disableEnvelope: false
|
|
185
|
+
// column: opts.column
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
rLevels.fill(0);
|
|
190
|
+
}
|
|
191
|
+
/* read definition levels */
|
|
192
|
+
const dLevelEncoding = getThriftEnum(Encoding, header.data_page_header?.definition_level_encoding);
|
|
193
|
+
// tslint:disable-next-line:prefer-array-literal
|
|
194
|
+
let dLevels = new Array(valueCount);
|
|
195
|
+
if (context.column.dLevelMax > 0) {
|
|
196
|
+
dLevels = decodeValues(PARQUET_RDLVL_TYPE, dLevelEncoding, dataCursor, valueCount, {
|
|
197
|
+
bitWidth: getBitWidth(context.column.dLevelMax),
|
|
198
|
+
disableEnvelope: false
|
|
199
|
+
// column: opts.column
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
dLevels.fill(0);
|
|
169
204
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
205
|
+
let valueCountNonNull = 0;
|
|
206
|
+
for (const dlvl of dLevels) {
|
|
207
|
+
if (dlvl === context.column.dLevelMax) {
|
|
208
|
+
valueCountNonNull++;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/* read values */
|
|
212
|
+
const valueEncoding = getThriftEnum(Encoding, header.data_page_header?.encoding);
|
|
213
|
+
const decodeOptions = {
|
|
214
|
+
typeLength: context.column.typeLength,
|
|
215
|
+
bitWidth: context.column.typeLength
|
|
216
|
+
};
|
|
217
|
+
const values = decodeValues(context.column.primitiveType, valueEncoding, dataCursor, valueCountNonNull, decodeOptions);
|
|
218
|
+
return {
|
|
219
|
+
dlevels: dLevels,
|
|
220
|
+
rlevels: rLevels,
|
|
221
|
+
values,
|
|
222
|
+
count: valueCount,
|
|
223
|
+
pageHeader: header
|
|
224
|
+
};
|
|
184
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* Do decoding of parquet dataPage in version 2 from column chunk
|
|
228
|
+
* @param cursor
|
|
229
|
+
* @param header
|
|
230
|
+
* @param opts
|
|
231
|
+
* @returns
|
|
232
|
+
*/
|
|
185
233
|
async function decodeDataPageV2(cursor, header, context) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
rLevels =
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
234
|
+
const cursorEnd = cursor.offset + header.compressed_page_size;
|
|
235
|
+
const valueCount = header.data_page_header_v2?.num_values;
|
|
236
|
+
// @ts-ignore
|
|
237
|
+
const valueCountNonNull = valueCount - header.data_page_header_v2?.num_nulls;
|
|
238
|
+
const valueEncoding = getThriftEnum(Encoding, header.data_page_header_v2?.encoding);
|
|
239
|
+
/* read repetition levels */
|
|
240
|
+
// tslint:disable-next-line:prefer-array-literal
|
|
241
|
+
let rLevels = new Array(valueCount);
|
|
242
|
+
if (context.column.rLevelMax > 0) {
|
|
243
|
+
rLevels = decodeValues(PARQUET_RDLVL_TYPE, PARQUET_RDLVL_ENCODING, cursor, valueCount, {
|
|
244
|
+
bitWidth: getBitWidth(context.column.rLevelMax),
|
|
245
|
+
disableEnvelope: true
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
rLevels.fill(0);
|
|
250
|
+
}
|
|
251
|
+
/* read definition levels */
|
|
252
|
+
// tslint:disable-next-line:prefer-array-literal
|
|
253
|
+
let dLevels = new Array(valueCount);
|
|
254
|
+
if (context.column.dLevelMax > 0) {
|
|
255
|
+
dLevels = decodeValues(PARQUET_RDLVL_TYPE, PARQUET_RDLVL_ENCODING, cursor, valueCount, {
|
|
256
|
+
bitWidth: getBitWidth(context.column.dLevelMax),
|
|
257
|
+
disableEnvelope: true
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
dLevels.fill(0);
|
|
262
|
+
}
|
|
263
|
+
/* read values */
|
|
264
|
+
let valuesBufCursor = cursor;
|
|
265
|
+
if (header.data_page_header_v2?.is_compressed) {
|
|
266
|
+
const valuesBuf = await decompress(context.compression, cursor.buffer.slice(cursor.offset, cursorEnd), header.uncompressed_page_size);
|
|
267
|
+
valuesBufCursor = {
|
|
268
|
+
buffer: valuesBuf,
|
|
269
|
+
offset: 0,
|
|
270
|
+
size: valuesBuf.length
|
|
271
|
+
};
|
|
272
|
+
cursor.offset = cursorEnd;
|
|
273
|
+
}
|
|
274
|
+
const decodeOptions = {
|
|
275
|
+
typeLength: context.column.typeLength,
|
|
276
|
+
bitWidth: context.column.typeLength
|
|
277
|
+
};
|
|
278
|
+
const values = decodeValues(context.column.primitiveType, valueEncoding, valuesBufCursor, valueCountNonNull, decodeOptions);
|
|
279
|
+
return {
|
|
280
|
+
dlevels: dLevels,
|
|
281
|
+
rlevels: rLevels,
|
|
282
|
+
values,
|
|
283
|
+
count: valueCount,
|
|
284
|
+
pageHeader: header
|
|
216
285
|
};
|
|
217
|
-
cursor.offset = cursorEnd;
|
|
218
|
-
}
|
|
219
|
-
const decodeOptions = {
|
|
220
|
-
typeLength: context.column.typeLength,
|
|
221
|
-
bitWidth: context.column.typeLength
|
|
222
|
-
};
|
|
223
|
-
const values = decodeValues(context.column.primitiveType, valueEncoding, valuesBufCursor, valueCountNonNull, decodeOptions);
|
|
224
|
-
return {
|
|
225
|
-
dlevels: dLevels,
|
|
226
|
-
rlevels: rLevels,
|
|
227
|
-
values,
|
|
228
|
-
count: valueCount,
|
|
229
|
-
pageHeader: header
|
|
230
|
-
};
|
|
231
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* Do decoding of dictionary page which helps to iterate over all indexes and get dataPage values.
|
|
289
|
+
* @param cursor
|
|
290
|
+
* @param pageHeader
|
|
291
|
+
* @param context
|
|
292
|
+
*/
|
|
232
293
|
async function decodeDictionaryPage(cursor, pageHeader, context) {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
size: cursorEnd - cursor.offset
|
|
239
|
-
};
|
|
240
|
-
cursor.offset = cursorEnd;
|
|
241
|
-
if (context.compression !== 'UNCOMPRESSED') {
|
|
242
|
-
const valuesBuf = await decompress(context.compression, dictCursor.buffer.slice(dictCursor.offset, cursorEnd), pageHeader.uncompressed_page_size);
|
|
243
|
-
dictCursor = {
|
|
244
|
-
buffer: valuesBuf,
|
|
245
|
-
offset: 0,
|
|
246
|
-
size: valuesBuf.length
|
|
294
|
+
const cursorEnd = cursor.offset + pageHeader.compressed_page_size;
|
|
295
|
+
let dictCursor = {
|
|
296
|
+
offset: 0,
|
|
297
|
+
buffer: cursor.buffer.slice(cursor.offset, cursorEnd),
|
|
298
|
+
size: cursorEnd - cursor.offset
|
|
247
299
|
};
|
|
248
300
|
cursor.offset = cursorEnd;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
301
|
+
if (context.compression !== 'UNCOMPRESSED') {
|
|
302
|
+
const valuesBuf = await decompress(context.compression, dictCursor.buffer.slice(dictCursor.offset, cursorEnd), pageHeader.uncompressed_page_size);
|
|
303
|
+
dictCursor = {
|
|
304
|
+
buffer: valuesBuf,
|
|
305
|
+
offset: 0,
|
|
306
|
+
size: valuesBuf.length
|
|
307
|
+
};
|
|
308
|
+
cursor.offset = cursorEnd;
|
|
309
|
+
}
|
|
310
|
+
const numValues = pageHeader?.dictionary_page_header?.num_values || 0;
|
|
311
|
+
const decodedDictionaryValues = decodeValues(context.column.primitiveType, context.column.encoding, dictCursor, numValues,
|
|
312
|
+
// TODO - this looks wrong?
|
|
313
|
+
context);
|
|
314
|
+
// Makes it look a little easier
|
|
315
|
+
let values;
|
|
316
|
+
if (context?.preserveBinary) {
|
|
317
|
+
values = decodedDictionaryValues.map((d) => preserveBinary(d));
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
values = decodedDictionaryValues.map((d) => d.toString());
|
|
321
|
+
}
|
|
322
|
+
return values;
|
|
259
323
|
}
|
|
260
324
|
function preserveBinary(d) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
325
|
+
if (ArrayBuffer.isView(d)) {
|
|
326
|
+
return d;
|
|
327
|
+
}
|
|
328
|
+
// Convert to ArrayBuffer
|
|
329
|
+
if (Buffer.isBuffer(d)) {
|
|
330
|
+
return d.buffer.slice(d.byteOffset, d.byteLength);
|
|
331
|
+
}
|
|
332
|
+
return d.toString();
|
|
268
333
|
}
|
|
269
|
-
//# sourceMappingURL=decoders.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReadableFile } from '@loaders.gl/loader-utils';
|
|
2
|
-
import { ParquetSchema } from
|
|
3
|
-
import { ColumnChunk, FileMetaData, RowGroup } from
|
|
4
|
-
import { ParquetRowGroup, ParquetColumnChunk, ParquetReaderContext } from
|
|
2
|
+
import { ParquetSchema } from "../schema/schema.js";
|
|
3
|
+
import { ColumnChunk, FileMetaData, RowGroup } from "../parquet-thrift/index.js";
|
|
4
|
+
import { ParquetRowGroup, ParquetColumnChunk, ParquetReaderContext } from "../schema/declare.js";
|
|
5
5
|
export type ParquetReaderProps = {
|
|
6
6
|
defaultDictionarySize?: number;
|
|
7
7
|
preserveBinary?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parquet-reader.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parser/parquet-reader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAC,aAAa,EAAC,
|
|
1
|
+
{"version":3,"file":"parquet-reader.d.ts","sourceRoot":"","sources":["../../../src/parquetjs/parser/parquet-reader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAC,aAAa,EAAC,4BAAyB;AAK/C,OAAO,EAAC,WAAW,EAAoB,YAAY,EAAE,QAAQ,EAAO,mCAAgC;AACpG,OAAO,EACL,eAAe,EAEf,kBAAkB,EAElB,oBAAoB,EACrB,6BAA0B;AAI3B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,0DAA0D;AAC1D,MAAM,MAAM,qBAAqB,GAAG;IAClC,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,CAAC;CACpC,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,aAAa;IACxB,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAG/C;IAEF,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IACpC,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAAQ;gBAElC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,EAAE,kBAAkB;IAK1D,KAAK,IAAI,IAAI;IAOb,8BAA8B;IACvB,WAAW,CAAC,KAAK,CAAC,EAAE,qBAAqB;IAShD,wCAAwC;IACjC,gBAAgB,CAAC,KAAK,CAAC,EAAE,qBAAqB;IAOrD,sCAAsC;IAC/B,gBAAgB,CAAC,KAAK,CAAC,EAAE,qBAAqB;IAqB/C,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAK9B,SAAS,IAAI,OAAO,CAAC,aAAa,CAAC;IAQzC;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IASpD,eAAe,IAAI,OAAO,CAAC,YAAY,CAAC;IAU9C,uCAAuC;IACjC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAcjC,uCAAuC;IACjC,UAAU,IAAI,OAAO,CAAC,YAAY,CAAC;IAyBzC,4EAA4E;IACtE,YAAY,CAChB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,MAAM,EAAE,EAAE,GACrB,OAAO,CAAC,eAAe,CAAC;IAgB3B;;OAEG;IACG,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAuDhG;;;;;;OAMG;IACG,aAAa,CACjB,oBAAoB,EAAE,MAAM,EAC5B,OAAO,EAAE,oBAAoB,EAC7B,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,EAAE,CAAC;CAwBrB"}
|