@milaboratories/pl-model-common 1.19.0 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/drivers/pframe/data_info.d.ts +51 -0
- package/dist/drivers/pframe/data_info.d.ts.map +1 -1
- package/dist/drivers/pframe/data_types.d.ts +86 -82
- package/dist/drivers/pframe/data_types.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/anchored.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/filtered_column.d.ts +4 -3
- package/dist/drivers/pframe/spec/filtered_column.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/spec.d.ts +7 -1
- package/dist/drivers/pframe/spec/spec.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +474 -546
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/drivers/pframe/data_info.ts +64 -0
- package/src/drivers/pframe/data_types.ts +278 -244
- package/src/drivers/pframe/spec/anchored.ts +2 -3
- package/src/drivers/pframe/spec/filtered_column.ts +5 -3
- package/src/drivers/pframe/spec/spec.ts +14 -1
|
@@ -70,6 +70,56 @@ export type BinaryPartitionedDataInfo<Blob> = {
|
|
|
70
70
|
/** Map of stringified partition keys to binary chunks */
|
|
71
71
|
parts: Record<string, BinaryChunk<Blob>>;
|
|
72
72
|
};
|
|
73
|
+
type ParquetPartitionInfoMappingAxis = {
|
|
74
|
+
/** Data type (matches PColumn axis types) */
|
|
75
|
+
type: 'Int' | 'Long' | 'String';
|
|
76
|
+
/** Field name in the Parquet file */
|
|
77
|
+
id: string;
|
|
78
|
+
};
|
|
79
|
+
type ParquetPartitionInfoMappingColumn = {
|
|
80
|
+
/** Data type (matches PColumn value type) */
|
|
81
|
+
type: 'Int' | 'Long' | 'Float' | 'Double' | 'String';
|
|
82
|
+
/** Field name in the Parquet file */
|
|
83
|
+
id: string;
|
|
84
|
+
};
|
|
85
|
+
type ParquetPartitionInfoMapping = {
|
|
86
|
+
/** Axes mappings - Parquet file is sorted by these fields in this order */
|
|
87
|
+
axes: ParquetPartitionInfoMappingAxis[];
|
|
88
|
+
/** Column mapping */
|
|
89
|
+
column: ParquetPartitionInfoMappingColumn;
|
|
90
|
+
};
|
|
91
|
+
type ParquetPartitionInfoData<Blob> = {
|
|
92
|
+
/** Parquet file (PTable) containing column data */
|
|
93
|
+
data: Blob;
|
|
94
|
+
/** Content hash calculated for the specific axes and data this partition represents */
|
|
95
|
+
dataDigest?: string;
|
|
96
|
+
/** Pre-computed statistics for optimization without blob download */
|
|
97
|
+
stats?: {
|
|
98
|
+
/** Number of rows in the column */
|
|
99
|
+
numberOfRows?: number;
|
|
100
|
+
/** Byte size information for storage optimization and query planning */
|
|
101
|
+
numberOfBytes?: {
|
|
102
|
+
/** Byte sizes for each axis column in the same order as axes mapping */
|
|
103
|
+
axes: number[];
|
|
104
|
+
/** Byte size for the data column */
|
|
105
|
+
column: number;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export type ParquetChunk<Blob> = {
|
|
110
|
+
/** Mapping of column names to their data */
|
|
111
|
+
mapping: ParquetPartitionInfoMapping;
|
|
112
|
+
/** Data for this partition */
|
|
113
|
+
data: ParquetPartitionInfoData<Blob>;
|
|
114
|
+
};
|
|
115
|
+
export type ParquetPartitionedDataInfo<Blob> = {
|
|
116
|
+
/** Identifier for this data format ('ParquetPartitioned') */
|
|
117
|
+
type: 'ParquetPartitioned';
|
|
118
|
+
/** Number of leading axes used for partitioning */
|
|
119
|
+
partitionKeyLength: number;
|
|
120
|
+
/** Map of stringified partition keys to parquet files */
|
|
121
|
+
parts: Record<string, ParquetChunk<Blob>>;
|
|
122
|
+
};
|
|
73
123
|
/**
|
|
74
124
|
* Union type representing all possible data storage formats for PColumn data.
|
|
75
125
|
* The specific format used depends on data size, access patterns, and performance requirements.
|
|
@@ -184,4 +234,5 @@ export declare function entriesToDataInfo<Blob>(dataInfoEntries: DataInfoEntries
|
|
|
184
234
|
* @returns A new DataInfoEntries object with transformed blob references
|
|
185
235
|
*/
|
|
186
236
|
export declare function mapDataInfoEntries<B1, B2>(dataInfoEntries: DataInfoEntries<B1>, mapFn: (blob: B1) => B2): DataInfoEntries<B2>;
|
|
237
|
+
export {};
|
|
187
238
|
//# sourceMappingURL=data_info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data_info.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/data_info.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAElD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,wBAAwB;IACxB,GAAG,EAAE,UAAU,CAAC;IAEhB,oCAAoC;IACpC,KAAK,EAAE,CAAC,CAAC;CACV,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IAEb,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;CACpC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,CAAC,IAAI,IAAI;IAC1C,0DAA0D;IAC1D,IAAI,EAAE,iBAAiB,CAAC;IAExB,mDAAmD;IACnD,kBAAkB,EAAE,MAAM,CAAC;IAE3B,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,IAAI,IAAI;IAC9B,0DAA0D;IAC1D,KAAK,EAAE,IAAI,CAAC;IAEZ,+C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E,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,GACtB,eAAe,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -1,102 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const PValueLongNA = -9007199254740991n;
|
|
4
|
-
export declare const PValueFloatNA: number;
|
|
5
|
-
export declare const PValueDoubleNA: number;
|
|
6
|
-
export declare const PValueStringNA: null;
|
|
7
|
-
export declare const PValueBytesNA: null;
|
|
8
|
-
export type PValueInt = number;
|
|
9
|
-
export type PValueLong = number | bigint;
|
|
10
|
-
export type PValueFloat = number;
|
|
11
|
-
export type PValueDouble = number;
|
|
12
|
-
export type PValueString = string | null;
|
|
13
|
-
export type PValueBytes = Uint8Array | null;
|
|
14
|
-
export type NotNAPValueInt = number;
|
|
15
|
-
export type NotNAPValueLong = number | bigint;
|
|
16
|
-
export type NotNAPValueFloat = number;
|
|
17
|
-
export type NotNAPValueDouble = number;
|
|
18
|
-
export type NotNAPValueString = string;
|
|
19
|
-
export type NotNAPValue = number | bigint | string;
|
|
20
|
-
export type PValue = PValueInt | PValueLong | PValueString | PValueBytes;
|
|
21
|
-
export declare function isValueNA(value: unknown, valueType: ValueType): boolean;
|
|
22
|
-
export declare function ensureNotNAPValue(value: string): string;
|
|
23
|
-
export declare function ensureNotNAPValue(value: number): number;
|
|
24
|
-
export declare function ensureNotNAPValue(value: bigint): bigint;
|
|
25
|
-
export declare function ensureNotNAPValue(value: unknown): NotNAPValue;
|
|
26
|
-
export declare function isNotNAPValue(value: unknown, valueType: 'Int'): value is number;
|
|
27
|
-
export declare function isNotNAPValue(value: unknown, valueType: 'Long'): value is number | bigint;
|
|
28
|
-
export declare function isNotNAPValue(value: unknown, valueType: 'Float'): value is number;
|
|
29
|
-
export declare function isNotNAPValue(value: unknown, valueType: 'Double'): value is number;
|
|
30
|
-
export declare function isNotNAPValue(value: unknown, valueType: 'String'): value is string;
|
|
31
|
-
export declare function isNotNAPValue(value: unknown, valueType: ValueType): value is NotNAPValue;
|
|
32
|
-
export declare function isNotNAPValue(value: unknown): value is NotNAPValue;
|
|
33
|
-
export declare function isPValue(value: unknown, valueType: 'Int'): value is PValueInt;
|
|
34
|
-
export declare function isPValue(value: unknown, valueType: 'Long'): value is PValueLong;
|
|
35
|
-
export declare function isPValue(value: unknown, valueType: 'Float'): value is PValueFloat;
|
|
36
|
-
export declare function isPValue(value: unknown, valueType: 'Double'): value is PValueDouble;
|
|
37
|
-
export declare function isPValue(value: unknown, valueType: 'String'): value is PValueString;
|
|
38
|
-
export declare function isPValue(value: unknown, valueType: ValueType): value is PValue;
|
|
39
|
-
export declare function isPValue(value: unknown): value is PValue;
|
|
40
|
-
export type PValueLongJsonSafe = {
|
|
41
|
-
bigint: string;
|
|
42
|
-
};
|
|
43
|
-
export type PValueJsonSafe = number | string | null | PValueLongJsonSafe;
|
|
44
|
-
/**
|
|
45
|
-
* Converts PValue to value that can be safely serialized by standard JSON.stringify
|
|
46
|
-
* method. Use {@link safeConvertToPValue} to "deserialize" the value back to runtime
|
|
47
|
-
* PValue representation.
|
|
48
|
-
*/
|
|
49
|
-
export declare function toJsonSafePValue(value: PValue): PValueJsonSafe;
|
|
50
|
-
/**
|
|
51
|
-
* Can be used to "deserialize" result of {@link toJsonSafePValue} or to
|
|
52
|
-
* safely cast any unknown value to actual runtime PValue representation.
|
|
53
|
-
*/
|
|
54
|
-
export declare function safeConvertToPValue(value: unknown, checkType?: ValueType): PValue;
|
|
55
|
-
export declare function pValueToStringOrNumber(value: string): string;
|
|
56
|
-
export declare function pValueToStringOrNumber(value: number | bigint): number;
|
|
57
|
-
export declare function pValueToStringOrNumber(value: PValue | PValueJsonSafe): string | number;
|
|
58
|
-
export declare function pValueToStringOrNumberOrNull(value: string | null): string;
|
|
59
|
-
export declare function pValueToStringOrNumberOrNull(value: number | bigint | null): number;
|
|
60
|
-
export declare function pValueToStringOrNumberOrNull(value: PValue | PValueJsonSafe): string | number | null;
|
|
1
|
+
import { Branded } from '../../branding';
|
|
2
|
+
import { ValueType, ValueTypeBytes } from './spec/spec';
|
|
61
3
|
export type PVectorDataInt = Int32Array;
|
|
62
4
|
export type PVectorDataLong = BigInt64Array;
|
|
63
5
|
export type PVectorDataFloat = Float32Array;
|
|
64
6
|
export type PVectorDataDouble = Float64Array;
|
|
65
|
-
export type PVectorDataString =
|
|
66
|
-
export type PVectorDataBytes =
|
|
67
|
-
export type
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
* outer join operation. This information is encoded in {@link absent} field. */
|
|
71
|
-
export interface PTableVector {
|
|
7
|
+
export type PVectorDataString = (null | string)[];
|
|
8
|
+
export type PVectorDataBytes = (null | Uint8Array)[];
|
|
9
|
+
export type PVectorDataTyped<DataType extends ValueType> = DataType extends 'Int' ? PVectorDataInt : DataType extends 'Long' ? PVectorDataLong : DataType extends 'Float' ? PVectorDataFloat : DataType extends 'Double' ? PVectorDataDouble : DataType extends 'String' ? PVectorDataString : DataType extends 'Bytes' ? PVectorDataBytes : never;
|
|
10
|
+
export type PVectorData = PVectorDataTyped<ValueType>;
|
|
11
|
+
export type PTableVectorTyped<DataType extends ValueType> = {
|
|
72
12
|
/** Stored data type */
|
|
73
|
-
readonly type:
|
|
13
|
+
readonly type: DataType;
|
|
74
14
|
/** Values for present positions, absent positions have NA values */
|
|
75
|
-
readonly data:
|
|
15
|
+
readonly data: PVectorDataTyped<DataType>;
|
|
16
|
+
/**
|
|
17
|
+
* Encoded bit array marking some elements of this vector as NA,
|
|
18
|
+
* call {@link bitSet} to read the data.
|
|
19
|
+
* In old desktop versions NA values are encoded as magic values in data array.
|
|
20
|
+
* */
|
|
21
|
+
readonly isNA?: Uint8Array;
|
|
76
22
|
/**
|
|
77
23
|
* Encoded bit array marking some elements of this vector as absent,
|
|
78
|
-
* call {@link
|
|
24
|
+
* call {@link bitSet} to read the data.
|
|
79
25
|
* */
|
|
80
26
|
readonly absent: Uint8Array;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
|
|
27
|
+
};
|
|
28
|
+
/** Table column data in comparison to the data stored in a separate PColumn
|
|
29
|
+
* may have some of the values "absent", i.e. as a result of missing record in
|
|
30
|
+
* outer join operation. This information is encoded in {@link absent} field. */
|
|
31
|
+
export type PTableVector = PTableVectorTyped<ValueType>;
|
|
84
32
|
export declare const PTableAbsent: {
|
|
85
33
|
readonly type: "absent";
|
|
86
34
|
};
|
|
87
35
|
export type PTableAbsent = typeof PTableAbsent;
|
|
36
|
+
/** Type guard for absent value */
|
|
37
|
+
export declare function isPTableAbsent(value: unknown): value is PTableAbsent;
|
|
88
38
|
export declare const PTableNA: null;
|
|
89
39
|
export type PTableNA = typeof PTableNA;
|
|
90
|
-
/**
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
export
|
|
94
|
-
export type
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
40
|
+
/** Type guard for NA value */
|
|
41
|
+
export declare function isPTableNA(value: unknown): value is PTableNA;
|
|
42
|
+
export type ValueTypeSupported = Exclude<ValueType, ValueTypeBytes>;
|
|
43
|
+
export type PTableValueInt = number;
|
|
44
|
+
export type PTableValueLong = number;
|
|
45
|
+
export type PTableValueFloat = number;
|
|
46
|
+
export type PTableValueDouble = number;
|
|
47
|
+
export type PTableValueString = string;
|
|
48
|
+
export type PTableValueData<DataType extends ValueTypeSupported> = DataType extends 'Int' ? PTableValueInt : DataType extends 'Long' ? PTableValueLong : DataType extends 'Float' ? PTableValueFloat : DataType extends 'Double' ? PTableValueDouble : DataType extends 'String' ? PTableValueString : never;
|
|
49
|
+
export type PTableValueDataBranded<DataType extends ValueTypeSupported> = Branded<PTableValueData<DataType>, DataType>;
|
|
50
|
+
export type PTableValue<Absent = PTableAbsent, NA = PTableNA, DataType extends ValueTypeSupported = ValueTypeSupported> = Absent | NA | PTableValueData<DataType>;
|
|
51
|
+
export type PTableValueBranded<Absent = PTableAbsent, NA = PTableNA, DataType extends ValueTypeSupported = ValueTypeSupported> = Absent | NA | PTableValueDataBranded<DataType>;
|
|
52
|
+
export type PTableValueAxis<Absent = PTableAbsent, DataType extends ValueTypeSupported = ValueTypeSupported> = PTableValue<Absent, never, DataType>;
|
|
53
|
+
export declare function isPTableValueAxis<Absent, NA, DataType extends ValueTypeSupported>(value: PTableValue<Absent, NA, DataType>, isNA: (value: PTableValue<Absent, NA, DataType>) => value is NA): value is PTableValueAxis<Absent, DataType>;
|
|
54
|
+
export declare function isPTableValueAxis<Absent, DataType extends ValueTypeSupported>(value: PTableValue<Absent, PTableNA, DataType>): value is PTableValueAxis<Absent, DataType>;
|
|
98
55
|
/** Read PTableValue from PTable column at specified row */
|
|
99
|
-
export declare function pTableValue(column:
|
|
56
|
+
export declare function pTableValue<DataType extends ValueType>(column: PTableVectorTyped<DataType>, row: number): DataType extends ValueTypeSupported ? PTableValue<PTableAbsent, PTableNA, DataType> : never;
|
|
57
|
+
export declare function pTableValue<FillAbsent, DataType extends ValueType>(column: PTableVectorTyped<DataType>, row: number, options: {
|
|
58
|
+
absent: FillAbsent;
|
|
59
|
+
}): DataType extends ValueTypeSupported ? PTableValue<FillAbsent, PTableNA, DataType> : never;
|
|
60
|
+
export declare function pTableValue<FillNA, DataType extends ValueType>(column: PTableVectorTyped<DataType>, row: number, options: {
|
|
61
|
+
na: FillNA;
|
|
62
|
+
}): DataType extends ValueTypeSupported ? PTableValue<PTableAbsent, FillNA, DataType> : never;
|
|
63
|
+
export declare function pTableValue<FillNA, FillAbsent, DataType extends ValueType>(column: PTableVectorTyped<DataType>, row: number, options: {
|
|
64
|
+
absent: FillAbsent;
|
|
65
|
+
na: FillNA;
|
|
66
|
+
}): DataType extends ValueTypeSupported ? PTableValue<FillAbsent, FillNA, DataType> : never;
|
|
67
|
+
export declare function pTableValue<FillAbsent, DataType extends ValueTypeSupported>(column: PTableVectorTyped<ValueType>, row: number, options: {
|
|
68
|
+
absent: FillAbsent;
|
|
69
|
+
dataType: DataType;
|
|
70
|
+
}): PTableValue<FillAbsent, PTableNA>;
|
|
71
|
+
export declare function pTableValue<FillNA, DataType extends ValueTypeSupported>(column: PTableVectorTyped<ValueType>, row: number, options: {
|
|
72
|
+
na: FillNA;
|
|
73
|
+
dataType: DataType;
|
|
74
|
+
}): PTableValue<PTableAbsent, FillNA, DataType>;
|
|
75
|
+
export declare function pTableValue<FillNA, FillAbsent, DataType extends ValueTypeSupported>(column: PTableVectorTyped<ValueType>, row: number, options: {
|
|
76
|
+
absent: FillAbsent;
|
|
77
|
+
na: FillNA;
|
|
78
|
+
dataType: DataType;
|
|
79
|
+
}): PTableValue<FillAbsent, FillNA, DataType>;
|
|
80
|
+
export declare function pTableValueBranded<DataType extends ValueType>(column: PTableVectorTyped<DataType>, row: number): DataType extends ValueTypeSupported ? PTableValueBranded<PTableAbsent, PTableNA, DataType> : never;
|
|
81
|
+
export declare function pTableValueBranded<FillAbsent, DataType extends ValueType>(column: PTableVectorTyped<DataType>, row: number, options: {
|
|
82
|
+
absent: FillAbsent;
|
|
83
|
+
}): DataType extends ValueTypeSupported ? PTableValueBranded<FillAbsent, PTableNA, DataType> : never;
|
|
84
|
+
export declare function pTableValueBranded<FillNA, DataType extends ValueType>(column: PTableVectorTyped<DataType>, row: number, options: {
|
|
85
|
+
na: FillNA;
|
|
86
|
+
}): DataType extends ValueTypeSupported ? PTableValueBranded<PTableAbsent, FillNA, DataType> : never;
|
|
87
|
+
export declare function pTableValueBranded<FillNA, FillAbsent, DataType extends ValueType>(column: PTableVectorTyped<DataType>, row: number, options: {
|
|
88
|
+
absent: FillAbsent;
|
|
89
|
+
na: FillNA;
|
|
90
|
+
}): DataType extends ValueTypeSupported ? PTableValueBranded<FillAbsent, FillNA, DataType> : never;
|
|
91
|
+
export declare function pTableValueBranded<FillAbsent, DataType extends ValueTypeSupported>(column: PTableVectorTyped<ValueType>, row: number, options: {
|
|
92
|
+
absent: FillAbsent;
|
|
93
|
+
dataType: DataType;
|
|
94
|
+
}): PTableValueBranded<FillAbsent, PTableNA>;
|
|
95
|
+
export declare function pTableValueBranded<FillNA, DataType extends ValueTypeSupported>(column: PTableVectorTyped<ValueType>, row: number, options: {
|
|
96
|
+
na: FillNA;
|
|
97
|
+
dataType: DataType;
|
|
98
|
+
}): PTableValueBranded<PTableAbsent, FillNA, DataType>;
|
|
99
|
+
export declare function pTableValueBranded<FillNA, FillAbsent, DataType extends ValueTypeSupported>(column: PTableVectorTyped<ValueType>, row: number, options: {
|
|
100
|
+
absent: FillAbsent;
|
|
101
|
+
na: FillNA;
|
|
102
|
+
dataType: DataType;
|
|
103
|
+
}): PTableValueBranded<FillAbsent, FillNA, DataType>;
|
|
100
104
|
/** Used in requests to partially retrieve table's data */
|
|
101
105
|
export type TableRange = {
|
|
102
106
|
/** Index of the first record to retrieve */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data_types.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/data_types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"data_types.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/data_types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC;AACxC,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC;AAC5C,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAC5C,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAC7C,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC;AAClD,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,GAAG,UAAU,CAAC,EAAE,CAAC;AACrD,MAAM,MAAM,gBAAgB,CAAC,QAAQ,SAAS,SAAS,IACrD,QAAQ,SAAS,KAAK,GAAG,cAAc,GACrC,QAAQ,SAA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BAAkB,EAC5E,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,EACpC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;IACP,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACA,kBAAkB,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;AACtD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,SAAS,kBAAkB,EACxF,MAAM,EAAE,iBAAiB,CAAC,SAAS,CAAC,EACpC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;IACP,MAAM,EAAE,UAAU,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,QAAQ,CAAC;CACpB,GACA,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;AAiBpD,0DAA0D;AAC1D,MAAM,MAAM,UAAU,GAAG;IACvB,4CAA4C;IAC5C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,mBAAmB;IACnB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,4CAA4C;AAC5C,MAAM,MAAM,WAAW,GAAG;IACxB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAEhB,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anchored.d.ts","sourceRoot":"","sources":["../../../../src/drivers/pframe/spec/anchored.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"anchored.d.ts","sourceRoot":"","sources":["../../../../src/drivers/pframe/spec/anchored.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,mBAAmB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,KAAK,EAAoD,iBAAiB,EAAE,uBAAuB,EAAgB,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/J,OAAO,KAAK,EAAU,WAAW,EAAE,MAAM,QAAQ,CAAC;AAelD;;;GAGG;AACH,qBAAa,iBAAiB;aAiBA,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;IAhBhE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IACrD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyC;IAC9D;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkB;IAC9C;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA6B;IAEhE;;;OAGG;gBACyB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;IAwBhE;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,iBAAiB;IAE5C;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,kBAAkB;IAoFzE;;;;;OAKG;IACH,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,mBAAmB;CAG5E;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,eAAe,CAyCvJ"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { PValue } from '../data_types';
|
|
2
1
|
import { AnchoredPColumnId } from './selectors';
|
|
2
|
+
/** Value of an axis filter */
|
|
3
|
+
export type AxisFilterValue = number | string;
|
|
3
4
|
/** Axis filter by index */
|
|
4
|
-
export type AxisFilterByIdx = [number,
|
|
5
|
+
export type AxisFilterByIdx = [number, AxisFilterValue];
|
|
5
6
|
/** Axis filter by name */
|
|
6
|
-
export type AxisFilterByName = [string,
|
|
7
|
+
export type AxisFilterByName = [string, AxisFilterValue];
|
|
7
8
|
/** Axis filter */
|
|
8
9
|
export type AxisFilter = AxisFilterByIdx | AxisFilterByName;
|
|
9
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filtered_column.d.ts","sourceRoot":"","sources":["../../../../src/drivers/pframe/spec/filtered_column.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"filtered_column.d.ts","sourceRoot":"","sources":["../../../../src/drivers/pframe/spec/filtered_column.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,8BAA8B;AAC9B,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9C,2BAA2B;AAC3B,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAExD,0BAA0B;AAC1B,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAEzD,kBAAkB;AAClB,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,gBAAgB,CAAC;AAE5D;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,GAAG,GAAG,iBAAiB,EAAE,GAAG,GAAG,UAAU,IAAI;IACvE,qCAAqC;IACrC,MAAM,EAAE,GAAG,CAAC;IAEZ;;;;;OAKG;IACH,WAAW,EAAE,GAAG,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;AAEpF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,eAAe,CAEpE"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { PObject, PObjectId, PObjectSpec } from '../../../pool';
|
|
2
|
+
export type ValueTypeInt = 'Int';
|
|
3
|
+
export type ValueTypeLong = 'Long';
|
|
4
|
+
export type ValueTypeFloat = 'Float';
|
|
5
|
+
export type ValueTypeDouble = 'Double';
|
|
6
|
+
export type ValueTypeString = 'String';
|
|
7
|
+
export type ValueTypeBytes = 'Bytes';
|
|
2
8
|
/** PFrame columns and axes within them may store one of these types. */
|
|
3
|
-
export type ValueType =
|
|
9
|
+
export type ValueType = ValueTypeInt | ValueTypeLong | ValueTypeFloat | ValueTypeDouble | ValueTypeString | ValueTypeBytes;
|
|
4
10
|
/**
|
|
5
11
|
* Specification of an individual axis.
|
|
6
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../../../src/drivers/pframe/spec/spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGrE,
|
|
1
|
+
{"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../../../src/drivers/pframe/spec/spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGrE,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC;AACjC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AACnC,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;AACrC,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AACvC,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AACvC,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;AAErC,wEAAwE;AACxE,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,aAAa,GACb,cAAc,GACd,eAAe,GACf,eAAe,GACf,cAAc,CAAC;AAEn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M,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,wBAAwB;AACxB,MAAM,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC;AAE9B,uCAAuC;AACvC,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAOhD;AAED,8DAA8D;AAC9D,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,CAEhD;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAErD;AAYD,qEAAqE;AACrE,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAElE"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var ae=Object.defineProperty;var ue=(e,n,t)=>n in e?ae(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var l=(e,n,t)=>ue(e,typeof n!="symbol"?n+"":n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("zod"),g=require("canonicalize");function ce(e){if(e.code!==void 0)return{code:e.code,sdkVersion:e.sdkVersion,featureFlags:e.featureFlags}}function y(e){if(e!==void 0)return typeof e=="string"?{__renderLambda:!0,handle:e,retentive:!1}:e}function fe(e){if(e.v3!==void 0){const{initialArgs:n,initialUiState:t,inputsValid:r,outputs:o,renderingMode:i,sdkVersion:a,featureFlags:s,sections:u,title:c,enrichmentTargets:f}=e.v3,{code:se}=e;return{initialArgs:n,initialUiState:t,inputsValid:r,outputs:o,renderingMode:i,sdkVersion:a,featureFlags:s,sections:u,title:c,code:se,enrichmentTargets:f}}else if(e.inputsValid!==void 0){const{sdkVersion:n,renderingMode:t,outputs:r,inputsValid:o,sections:i,initialArgs:a,code:s}=e,u=Object.keys(e);if(n===void 0||t===void 0||r===void 0||o===void 0||i===void 0||a===void 0)throw new Error(`Malformed config v2. SDK version ${n}; Fields = ${u.join(", ")}`);return{sdkVersion:n,renderingMode:t,initialArgs:a,outputs:Object.fromEntries(Object.entries(r).map(([c,f])=>[c,y(f)])),inputsValid:y(o),sections:y(i),initialUiState:void 0,code:s}}else if(e.renderingMode!==void 0){const{sdkVersion:n,canRun:t,renderingMode:r,outputs:o,sections:i,initialArgs:a,code:s}=e,u=Object.keys(e);if(r===void 0||o===void 0||t===void 0||i===void 0||a===void 0)throw new Error(`Malformed config v1. SDK version ${n}; Fields = ${u.join(", ")}`);return{sdkVersion:n??"unknown",renderingMode:r,initialArgs:a,outputs:Object.fromEntries(Object.entries(o).map(([c,f])=>[c,y(f)])),inputsValid:y(t),sections:y(i),initialUiState:void 0,code:s}}else{const{sdkVersion:n}=e,t=Object.keys(e);throw new Error(`Config format not supported: SDK = ${n}; Fields = ${t.join(", ")}`)}}function de(e){return new URL(e).protocol=="plblob+folder:"}function le(e){return new URL(e).protocol=="block-ui:"}const pe=p.z.object({from:p.z.number(),to:p.z.number()});function me(e,n){if(!(e==null||n==null))return{from:e,to:n}}function ye(e,n){if(e.from<0||e.to<0||e.from>=e.to)throw new Error(`${n}: invalid bytes range: ${e}`)}function he(e){return e!==void 0&&e.startsWith("log+live://log/")}function S(e){throw new Error("Unexpected object: "+e)}const R="upload://upload/",D="index://index/";function $(e){return e.startsWith(R)}function J(e){return e.startsWith(D)}function j(e){if(J(e)){const n=e.slice(D.length);return JSON.parse(decodeURIComponent(n)).path}else if($(e)){const n=e.slice(R.length);return JSON.parse(decodeURIComponent(n)).localPath}S(e)}function ge(e){return e.replace(/^.*[\\/]/,"")}function be(e){return ge(j(e))}function we(e){if(!e||typeof e!="object")return!1;const n=e;if(!("type"in n))return!1;switch(n.type){case"Json":return typeof n.keyLength=="number"&&n.data!==void 0&&typeof n.data=="object";case"JsonPartitioned":return typeof n.partitionKeyLength=="number"&&n.parts!==void 0&&typeof n.parts=="object";case"BinaryPartitioned":return typeof n.partitionKeyLength=="number"&&n.parts!==void 0&&typeof n.parts=="object";default:return!1}}function Pe(e,n){if(e!==void 0)switch(e.type){case"Json":return e;case"JsonPartitioned":{const t={};for(const[r,o]of Object.entries(e.parts))t[r]=n(o);return{...e,parts:t}}case"BinaryPartitioned":{const t={};for(const[r,o]of Object.entries(e.parts))t[r]={index:n(o.index),values:n(o.values)};return{...e,parts:t}}}}function Ae(e,n){switch(e.type){case"Json":break;case"JsonPartitioned":{for(const[t,r]of Object.entries(e.parts))n(r);break}case"BinaryPartitioned":{for(const[t,r]of Object.entries(e.parts))n(r.index),n(r.values);break}}}function L(e){if(!e||typeof e!="object")return!1;const n=e;if(!("type"in n))return!1;switch(n.type){case"Json":return typeof n.keyLength=="number"&&Array.isArray(n.data);case"JsonPartitioned":return typeof n.partitionKeyLength=="number"&&Array.isArray(n.parts);case"BinaryPartitioned":return typeof n.partitionKeyLength=="number"&&Array.isArray(n.parts);default:return!1}}function Ee(e){return L(e)?e.type==="JsonPartitioned"||e.type==="BinaryPartitioned":!1}function xe(e){switch(e.type){case"Json":{const n=Object.entries(e.data).map(([t,r])=>({key:JSON.parse(t),value:r}));return{type:"Json",keyLength:e.keyLength,data:n}}case"JsonPartitioned":{const n=Object.entries(e.parts).map(([t,r])=>({key:JSON.parse(t),value:r}));return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength,parts:n}}case"BinaryPartitioned":{const n=Object.entries(e.parts).map(([t,r])=>({key:JSON.parse(t),value:r}));return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength,parts:n}}}}function ke(e){switch(e.type){case"Json":{const n={};for(const t of e.data)n[JSON.stringify(t.key)]=t.value;return{type:"Json",keyLength:e.keyLength,data:n}}case"JsonPartitioned":{const n={};for(const t of e.parts)n[JSON.stringify(t.key)]=t.value;return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength,parts:n}}case"BinaryPartitioned":{const n={};for(const t of e.parts)n[JSON.stringify(t.key)]=t.value;return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength,parts:n}}}}function Se(e,n){if(e!==void 0)switch(e.type){case"Json":return e;case"JsonPartitioned":{const t=e.parts.map(r=>({key:r.key,value:n(r.value)}));return{...e,parts:t}}case"BinaryPartitioned":{const t=e.parts.map(r=>({key:r.key,value:{index:n(r.value.index),values:n(r.value.values)}}));return{...e,parts:t}}}}const B=-2147483648,E=-9007199254740991n,ve=NaN,Ie=NaN,U=null,z=null;function b(e,n){switch(n){case"Int":return e===B;case"Long":return e===Number(E)||e===E;case"Float":return Number.isNaN(e);case"Double":return Number.isNaN(e);case"String":return e===U;case"Bytes":return e===z;default:throw Error(`unsupported data type: ${n}`)}}function Ne(e){if(!T(e))throw new Error(`Expected not-NA PValue, got ${e}`);return e}function T(e,n){if(!n)return typeof e=="string"||typeof e=="number"&&isFinite(e)||typeof e=="bigint";if(b(e,n))return!1;switch(n){case"Int":return typeof e=="number";case"Long":return typeof e=="number"||typeof e=="bigint";case"Float":return typeof e=="number";case"Double":return typeof e=="number";case"String":return typeof e=="string";case"Bytes":throw Error("Bytes not yet supported");default:throw Error(`unsupported data type: ${n}`)}}function M(e,n){if(!n)return e===null||typeof e=="string"||typeof e=="number"||typeof e=="bigint";if(b(e,n))return!0;switch(n){case"Int":return typeof e=="number";case"Long":return typeof e=="number"||typeof e=="bigint";case"Float":return typeof e=="number";case"Double":return typeof e=="number";case"String":return typeof e=="string";case"Bytes":throw Error("Bytes not yet supported");default:throw Error(`unsupported data type: ${n}`)}}function Fe(e){if(e===null||typeof e=="string"||typeof e=="number")return e;if(typeof e=="bigint")return{bigint:e.toString()};throw new Error(`Type ${typeof e} (value ${e}) not yet supported.`)}function K(e,n){if(e===null||typeof e=="string"||typeof e=="number"||typeof e=="bigint"){if(n&&!b(e,n)&&!M(e,n))throw new Error(`Unexpected value type, got ${typeof e}, expected ${n}`);return e}if(typeof e=="object"&&e!==null&&"bigint"in e&&typeof e.bigint=="string"){if(n&&n!=="Long")throw new Error(`Unexpected value type, got serialized bigint, expected ${n}`);return BigInt(e.bigint)}throw new Error(`Unsupported type ${typeof e} (value ${e}).`)}function Ce(e){if(e=q(e),e===null)throw new Error("Value is null");return e}function q(e){if(e=K(e),e===null)return null;if(typeof e=="string")return e;if(typeof e=="number"){if(!isFinite(e))throw new Error(`Value is not finite (${e})`);return e}if(typeof e=="bigint")return Number(e);throw new Error(`Unexpected value type: ${typeof e}`)}function _(e,n){const t=Math.floor(n/8),r=1<<7-n%8;return(e[t]&r)>0}const H={type:"absent"},W=null;function Ve(e){return typeof e=="object"&&e!==null&&e.type==="absent"}function Oe(e,n,t={}){if(_(e.absent,n))return t.absent===void 0?H:t.absent;const r=e.data[n],o=e.type;if(b(r,o))return t.na===void 0?W:t.na;switch(o){case"Int":return r;case"Long":return Number(r);case"Float":return r;case"Double":return r;case"String":return r;case"Bytes":throw Error("Bytes not yet supported");default:throw Error(`unsupported data type: ${o}`)}}function Re(e){return{kind:e.kind,valueType:e.valueType,name:e.name,domain:e.domain,parentAxes:e.parentAxes,axesId:v(e.axesSpec)}}function De(e){return{columnId:e.id,spec:e.spec}}function m(e){const{type:n,name:t,domain:r}=e,o={type:n,name:t};return r&&Object.entries(r).length>0&&Object.assign(o,{domain:r}),o}function v(e){return e.map(m)}function $e(e){return g(m(e))}function Je(e,n){if(e===void 0)return n===void 0;if(n===void 0)return!0;for(const t in n)if(e[t]!==n[t])return!1;return!0}function G(e,n){return e.name===n.name&&Je(e.domain,n.domain)}function je(e,n){return{...e,src:h(e.src,n)}}function h(e,n){switch(e.type){case"column":return{type:"column",column:n(e.column)};case"slicedColumn":return{type:"slicedColumn",column:n(e.column),newId:e.newId,axisFilters:e.axisFilters};case"inlineColumn":return e;case"inner":case"full":return{type:e.type,entries:e.entries.map(t=>h(t,n))};case"outer":return{type:"outer",primary:h(e.primary,n),secondary:e.secondary.map(t=>h(t,n))};default:S(e)}}function Le(e){switch(e.type){case"axis":return{type:"axis",id:e.id};case"column":return{type:"column",id:e.id}}}function X(e){return g(e)}function Be(e){return JSON.parse(e)}function V(e){return g(m(e))}function O(e,n){return JSON.stringify([e,n])}class Ue{constructor(n){l(this,"domains",new Map);l(this,"axes",new Map);l(this,"domainPacks",[]);l(this,"domainPackToAnchor",new Map);this.anchors=n;const t=Object.entries(n);t.sort((r,o)=>r[0].localeCompare(o[0]));for(const[r,o]of t){for(let i=0;i<o.axesSpec.length;i++){const a=o.axesSpec[i],s=V(a);this.axes.set(s,{anchor:r,idx:i})}if(o.domain!==void 0){const i=Object.entries(o.domain);i.sort((a,s)=>a[0].localeCompare(s[0])),this.domainPackToAnchor.set(JSON.stringify(i),r),this.domainPacks.push(i.map(([a])=>a));for(const[a,s]of i){const u=O(a,s);this.domains.set(u,r)}}}}derive(n,t){const r={name:n.name,axes:[]};let o;if(n.domain!==void 0)e:for(const a of this.domainPacks){const s=[];for(const c of a){const f=n.domain[c];if(f!==void 0)s.push([c,f]);else break e}const u=this.domainPackToAnchor.get(JSON.stringify(s));if(u!==void 0){r.domainAnchor=u,o=new Set(a);break}}for(const[a,s]of Object.entries(n.domain??{})){if(o!==void 0&&o.has(a))continue;const u=O(a,s),c=this.domains.get(u);r.domain??(r.domain={}),r.domain[a]=c?{anchor:c}:s}if(r.axes=n.axesSpec.map(a=>{const s=V(a),u=this.axes.get(s);return u===void 0?m(a):u}),!t||t.length===0)return r;const i=[];for(const a of t){const[s,u]=a;if(typeof s=="number"){if(s<0||s>=n.axesSpec.length)throw new Error(`Axis index ${s} is out of bounds (0-${n.axesSpec.length-1})`);i.push([s,u])}else{const c=n.axesSpec.findIndex(f=>f.name===s);if(c===-1)throw new Error(`Axis with name "${s}" not found in the column specification`);i.push([c,u])}}return i.sort((a,s)=>a[0]-s[0]),{source:r,axisFilters:i}}deriveS(n,t){return X(this.derive(n,t))}}function ze(e,n,t){const r={...n},o=(t==null?void 0:t.ignoreMissingDomains)??!1;if(r.domainAnchor!==void 0){const i=e[r.domainAnchor];if(!i)throw new Error(`Anchor "${r.domainAnchor}" not found`);const a=i.domain||{};r.domain={...a,...r.domain},delete r.domainAnchor}if(r.domain){const i={};for(const[a,s]of Object.entries(r.domain))if(typeof s=="string")i[a]=s;else{const u=e[s.anchor];if(!u)throw new Error(`Anchor "${s.anchor}" not found for domain key "${a}"`);if(!u.domain||u.domain[a]===void 0){if(!o)throw new Error(`Domain key "${a}" not found in anchor "${s.anchor}"`);continue}i[a]=u.domain[a]}r.domain=i}return r.axes&&(r.axes=r.axes.map(i=>Te(e,i))),r}function Te(e,n){if(!Me(n))return n;const t=n.anchor,r=e[t];if(!r)throw new Error(`Anchor "${t}" not found for axis reference`);if("idx"in n){if(n.idx<0||n.idx>=r.axesSpec.length)throw new Error(`Axis index ${n.idx} out of bounds for anchor "${t}"`);return r.axesSpec[n.idx]}else if("name"in n){const o=r.axesSpec.filter(i=>i.name===n.name);if(o.length>1)throw new Error(`Multiple axes with name "${n.name}" found in anchor "${t}"`);if(o.length===0)throw new Error(`Axis with name "${n.name}" not found in anchor "${t}"`);return o[0]}else if("id"in n){const o=r.axesSpec.filter(i=>G(n.id,m(i)));if(o.length>1)throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);if(o.length===0)throw new Error(`No matching axis found for matcher in anchor "${t}"`);return o[0]}throw new Error("Unsupported axis reference type")}function Me(e){return typeof e=="object"&&"anchor"in e}function Ke(e){return typeof e=="object"&&e!==null&&"source"in e&&"axisFilters"in e}function d(e){return e.kind==="PColumn"}function Q(e){return d(e.spec)}function qe(e){return d(e.obj)}function _e(e){return d(e.obj.spec)}function He(e){if(!Q(e))throw new Error(`not a PColumn (kind = ${e.spec.kind})`);return e}function We(e,n){return e===void 0?void 0:{...e,data:n(e.data)}}function Ge(e){const n=new Map,t=r=>{switch(r.type){case"column":n.set(r.column.id,r.column);return;case"slicedColumn":n.set(r.column.id,r.column);return;case"inlineColumn":return;case"full":case"inner":for(const o of r.entries)t(o);return;case"outer":t(r.primary);for(const o of r.secondary)t(o);return;default:S(r)}};return t(e),[...n.values()]}function Xe(e){throw new Error("Unexpected object: "+e)}function w(e,n){switch(e.type){case"and":for(const t of e.operands)if(!w(t,n))return!1;return!0;case"or":for(const t of e.operands)if(w(t,n))return!0;return!1;case"not":return!w(e.operand,n);case"name":return d(n)&&n.name===e.name;case"name_pattern":return d(n)&&!!n.name.match(e.pattern);case"annotation":return d(n)&&n.annotations!==void 0&&n.annotations[e.annotation]===e.value;case"annotation_pattern":return d(n)&&n.annotations!==void 0&&n.annotations[e.annotation]!==void 0&&!!n.annotations[e.annotation].match(e.pattern);case"has_axes":return d(n)&&e.axes.every(t=>n.axesSpec.some(r=>(t.type===void 0||t.type===r.type)&&(t.name===void 0||t.name===r.name)&&(t.domain===void 0||Object.keys(t.domain).length===0||r.domain!==void 0&&Object.entries(t.domain).every(([o,i])=>r.domain[o]===i))));default:Xe(e)}}function x(e,n){if(e.name!==void 0&&e.name!==n.name)return!1;if(e.type!==void 0){if(Array.isArray(e.type)){if(!e.type.includes(n.type))return!1}else if(e.type!==n.type)return!1}if(e.domain!==void 0){const t=n.domain||{};for(const[r,o]of Object.entries(e.domain))if(t[r]!==o)return!1}return!0}function k(e,n){if(n.name!==void 0&&e.name!==n.name||n.namePattern!==void 0&&!new RegExp(n.namePattern).test(e.name))return!1;if(n.type!==void 0){if(Array.isArray(n.type)){if(!n.type.includes(e.valueType))return!1}else if(n.type!==e.valueType)return!1}if(n.domain!==void 0){const t=e.domain||{};for(const[r,o]of Object.entries(n.domain))if(t[r]!==o)return!1}if(n.axes!==void 0){const t=e.axesSpec.map(m);if(n.partialAxesMatch){for(const r of n.axes)if(!t.some(o=>x(r,o)))return!1}else{if(t.length!==n.axes.length)return!1;for(let r=0;r<n.axes.length;r++)if(!x(n.axes[r],t[r]))return!1}}if(n.annotations!==void 0){const t=e.annotations||{};for(const[r,o]of Object.entries(n.annotations))if(t[r]!==o)return!1}if(n.annotationPatterns!==void 0){const t=e.annotations||{};for(const[r,o]of Object.entries(n.annotationPatterns)){const i=t[r];if(i===void 0||!new RegExp(o).test(i))return!1}}return!0}function Qe(e){return Array.isArray(e)?n=>e.some(t=>d(n)&&k(n,t)):n=>d(n)&&k(n,e)}function Ye(e){const n={kind:e.kind,name:e.name};return e.domain!==void 0&&(n.domain=e.domain),d(e)&&(n.axesSpec=v(e.axesSpec)),g(n)}const Ze={href:"/"},en=p.z.object({__isRef:p.z.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:p.z.string().describe("Upstream block id"),name:p.z.string().describe("Name of the output provided to the upstream block's output context"),requireEnrichments:p.z.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").readonly();function nn(e){return typeof e=="object"&&e!==null&&"__isRef"in e&&e.__isRef===!0&&"blockId"in e&&"name"in e}function tn(e,n,t=!1){return t?{__isRef:!0,blockId:e,name:n,requireEnrichments:!0}:{__isRef:!0,blockId:e,name:n}}function rn(e,n=!0){if(n)return{...e,requireEnrichments:!0};{const{requireEnrichments:t,...r}=e;return r}}function on(e,n,t=!1){return e.blockId===n.blockId&&e.name===n.name&&(t||e.requireEnrichments===n.requireEnrichments)}function sn(e,n){return e.ok?{ok:!0,value:n(e.value)}:e}function an(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw new TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}const un="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",cn="0123456789ABCDEFGHIJKLMNOPQRSTUV",fn="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function Y(e,n,t){t=t||{};let r,o;switch(n){case"RFC3548":case"RFC4648":r=un,o=!0;break;case"RFC4648-HEX":r=cn,o=!0;break;case"Crockford":r=fn,o=!1;break;default:throw new Error("Unknown base32 variant: "+String(n))}const i=t.padding!==void 0?t.padding:o,a=an(e);let s=0,u=0,c="";for(let f=0;f<a.byteLength;f++)for(u=u<<8|a.getUint8(f),s+=8;s>=5;)c+=r[u>>>s-5&31],s-=5;if(s>0&&(c+=r[u<<5-s&31]),i)for(;c.length%8!==0;)c+="=";return c}const I=15,Z=24,N=p.z.string().length(Z).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");function dn(){const e=new Uint8Array(I);return crypto.getRandomValues(e),N.parse(Y(e,"RFC4648"))}function ee(e){if(e.length!==I)throw new Error(`Wrong number of bytes: ${e.length}`);return N.parse(Y(e,"RFC4648"))}async function ln(e){const n=new TextEncoder,t=await crypto.subtle.digest("SHA-256",n.encode(e));return ee(new Uint8Array(t.slice(0,15)))}function pn(e){return JSON.stringify(e)}function mn(e){return g(e)}function yn(e){return JSON.parse(e)}class hn extends Error{constructor(){super(...arguments);l(this,"name","AbortError")}}class gn extends Error{constructor(){super(...arguments);l(this,"name","UiError")}}function bn(e){return e instanceof Error&&e.name==="AbortError"}function ne(e){return e instanceof Error?e.name==="AbortError"||ne(e.cause):!1}function wn(e){return e instanceof Error&&e.name==="AggregateError"}class te extends Error{constructor(){super(...arguments);l(this,"name","PFrameError")}}function Pn(e){return e instanceof Error&&e.name==="PFrameError"}class An extends te{constructor(){super(...arguments);l(this,"name","PFrameError.Driver")}}function En(e){return e instanceof Error&&e.name==="PFrameError.Driver"}function xn(e){if(typeof e=="string")return`String value was thrown: ${e}`;if(e&&typeof e=="object")try{return`Plain object was thrown: ${JSON.stringify(e)}`}catch(n){return`Non-serializable object was thrown (JSON.stringify failed: ${n instanceof Error?n.message:String(n)}): ${String(e)}`}return`Non-Error value (${typeof e}) was thrown: ${e}`}function P(e){return e instanceof Error?e:new Error(xn(e))}function A(e){const n=e.cause?A(e.cause):void 0,t=new Error(e.message,n!==void 0?{cause:n}:void 0);return t.name=e.name||"Error",t.stack=e.stack,t}function F(e){const n=P(e),t=n.cause?F(n.cause):void 0;return{name:n.name,message:n.message,stack:n.stack,...n.cause!==void 0&&{cause:t}}}function kn(e){if(e.error)throw e.error instanceof Error?e.error:A(e.error);return e.value}function C(e){return e.error?{error:F(e.error)}:{value:e.value}}function Sn(e){return e.error?{error:A(e.error)}:{value:e.value}}function re(e){try{return{value:e()}}catch(n){return{error:P(n)}}}async function oe(e){try{return{value:await e()}}catch(n){return{error:P(n)}}}function vn(e){const n=re(e);return C(n)}async function In(e){const n=await oe(e);return C(n)}const Nn=["supportsLazyState"],Fn=["requiresUIAPIVersion","requiresModelAPIVersion"];function Cn(e,n,t=!0){return e===void 0?!1:e[n]===t}function Vn(e){return e===void 0?new Set:new Set(Object.entries(e).filter(([n,t])=>n.startsWith("requires")&&t===!0).map(([n])=>n))}function On(e){return e===void 0?new Set:new Set(Object.entries(e).filter(([n,t])=>n.startsWith("supports")&&t===!0).map(([n])=>n))}class ie extends Error{constructor(t){super(`Some of the block requirements are not supported by the runtime: ${Array.from(t.entries()).map(([r,o])=>`${r}: ${o}`).join(", ")}`);l(this,"name","IncompatibleFlagsError");this.incompatibleFlags=t}}class Rn{constructor(){l(this,"supportedRequirements",new Map)}addSupportedRequirement(n,t=!0){return this.supportedRequirements.has(n)||this.supportedRequirements.set(n,new Set),this.supportedRequirements.get(n).add(t),this}getIncompatibleFlags(n){if(n===void 0)return;const t=new Map;for(const[r,o]of Object.entries(n))if(r.startsWith("requires")){if(o===void 0)continue;const i=this.supportedRequirements.get(r);(i===void 0||!i.has(o))&&t.set(r,o)}return t.size===0?void 0:t}checkCompatibility(n){return this.getIncompatibleFlags(n)===void 0}throwIfIncompatible(n){const t=this.getIncompatibleFlags(n);if(t!==void 0)throw new ie(t)}}exports.AbortError=hn;exports.AllRequiresFeatureFlags=Fn;exports.AllSupportsFeatureFlags=Nn;exports.AnchoredIdDeriver=Ue;exports.DefaultNavigationState=Ze;exports.IncompatibleFlagsError=ie;exports.PFrameDriverError=An;exports.PFrameError=te;exports.PTableAbsent=H;exports.PTableNA=W;exports.PValueBytesNA=z;exports.PValueDoubleNA=Ie;exports.PValueFloatNA=ve;exports.PValueIntNA=B;exports.PValueLongNA=E;exports.PValueStringNA=U;exports.PlId=N;exports.PlIdBytes=I;exports.PlIdLength=Z;exports.PlRef=en;exports.RangeBytes=pe;exports.RuntimeCapabilities=Rn;exports.UiError=gn;exports.canonicalizeAxisId=$e;exports.canonicalizeJson=mn;exports.checkBlockFlag=Cn;exports.createPlRef=tn;exports.dataInfoToEntries=xe;exports.deriveNativeId=Ye;exports.deserializeError=A;exports.deserializeResult=Sn;exports.digestPlId=ln;exports.ensureError=P;exports.ensureNotNAPValue=Ne;exports.ensurePColumn=He;exports.entriesToDataInfo=ke;exports.executePSpecPredicate=w;exports.extractAllColumns=Ge;exports.extractAllRequirements=Vn;exports.extractAllSupports=On;exports.extractCodeWithInfo=ce;exports.extractConfigGeneric=fe;exports.getAxesId=v;exports.getAxisId=m;exports.getColumnIdAndSpec=De;exports.getFileNameFromHandle=be;exports.getFilePathFromHandle=j;exports.getPColumnSpecId=Re;exports.getPTableColumnId=Le;exports.hasAbortError=ne;exports.isAbortError=bn;exports.isAggregateError=wn;exports.isBlockUIURL=le;exports.isDataInfo=we;exports.isDataInfoEntries=L;exports.isFilteredPColumn=Ke;exports.isFolderURL=de;exports.isImportFileHandleIndex=J;exports.isImportFileHandleUpload=$;exports.isLiveLog=he;exports.isNotNAPValue=T;exports.isPColumn=Q;exports.isPColumnResult=_e;exports.isPColumnSpec=d;exports.isPColumnSpecResult=qe;exports.isPFrameDriverError=En;exports.isPFrameError=Pn;exports.isPTableAbsent=Ve;exports.isPValue=M;exports.isPartitionedDataInfoEntries=Ee;exports.isPlRef=nn;exports.isValueAbsent=_;exports.isValueNA=b;exports.mapDataInfo=Pe;exports.mapDataInfoEntries=Se;exports.mapJoinEntry=h;exports.mapPObjectData=We;exports.mapPTableDef=je;exports.mapValueInVOE=sn;exports.matchAxis=x;exports.matchAxisId=G;exports.matchPColumn=k;exports.newRangeBytesOpt=me;exports.pTableValue=Oe;exports.pValueToStringOrNumber=Ce;exports.pValueToStringOrNumberOrNull=q;exports.parseColumnId=Be;exports.parseJson=yn;exports.plId=ee;exports.plRefsEqual=on;exports.resolveAnchors=ze;exports.safeConvertToPValue=K;exports.selectorsToPredicate=Qe;exports.serializeError=F;exports.serializeResult=C;exports.stringifyColumnId=X;exports.stringifyJson=pn;exports.toJsonSafePValue=Fe;exports.uniquePlId=dn;exports.unwrapResult=kn;exports.validateRangeBytes=ye;exports.visitDataInfo=Ae;exports.withEnrichments=rn;exports.wrapAndSerialize=vn;exports.wrapAndSerializeAsync=In;exports.wrapAsyncCallback=oe;exports.wrapCallback=re;
|
|
1
|
+
"use strict";var ee=Object.defineProperty;var ne=(e,n,r)=>n in e?ee(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var f=(e,n,r)=>ne(e,typeof n!="symbol"?n+"":n,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("zod"),b=require("canonicalize");function re(e){if(e.code!==void 0)return{code:e.code,sdkVersion:e.sdkVersion,featureFlags:e.featureFlags}}function h(e){if(e!==void 0)return typeof e=="string"?{__renderLambda:!0,handle:e,retentive:!1}:e}function te(e){if(e.v3!==void 0){const{initialArgs:n,initialUiState:r,inputsValid:t,outputs:i,renderingMode:o,sdkVersion:s,featureFlags:a,sections:u,title:c,enrichmentTargets:l}=e.v3,{code:Z}=e;return{initialArgs:n,initialUiState:r,inputsValid:t,outputs:i,renderingMode:o,sdkVersion:s,featureFlags:a,sections:u,title:c,code:Z,enrichmentTargets:l}}else if(e.inputsValid!==void 0){const{sdkVersion:n,renderingMode:r,outputs:t,inputsValid:i,sections:o,initialArgs:s,code:a}=e,u=Object.keys(e);if(n===void 0||r===void 0||t===void 0||i===void 0||o===void 0||s===void 0)throw new Error(`Malformed config v2. SDK version ${n}; Fields = ${u.join(", ")}`);return{sdkVersion:n,renderingMode:r,initialArgs:s,outputs:Object.fromEntries(Object.entries(t).map(([c,l])=>[c,h(l)])),inputsValid:h(i),sections:h(o),initialUiState:void 0,code:a}}else if(e.renderingMode!==void 0){const{sdkVersion:n,canRun:r,renderingMode:t,outputs:i,sections:o,initialArgs:s,code:a}=e,u=Object.keys(e);if(t===void 0||i===void 0||r===void 0||o===void 0||s===void 0)throw new Error(`Malformed config v1. SDK version ${n}; Fields = ${u.join(", ")}`);return{sdkVersion:n??"unknown",renderingMode:t,initialArgs:s,outputs:Object.fromEntries(Object.entries(i).map(([c,l])=>[c,h(l)])),inputsValid:h(r),sections:h(o),initialUiState:void 0,code:a}}else{const{sdkVersion:n}=e,r=Object.keys(e);throw new Error(`Config format not supported: SDK = ${n}; Fields = ${r.join(", ")}`)}}function ie(e){return new URL(e).protocol=="plblob+folder:"}function oe(e){return new URL(e).protocol=="block-ui:"}const ae=m.z.object({from:m.z.number(),to:m.z.number()});function se(e,n){if(!(e==null||n==null))return{from:e,to:n}}function ue(e,n){if(e.from<0||e.to<0||e.from>=e.to)throw new Error(`${n}: invalid bytes range: ${e}`)}function ce(e){return e!==void 0&&e.startsWith("log+live://log/")}function k(e){throw new Error("Unexpected object: "+e)}const D="upload://upload/",j="index://index/";function J(e){return e.startsWith(D)}function T(e){return e.startsWith(j)}function N(e){if(T(e)){const n=e.slice(j.length);return JSON.parse(decodeURIComponent(n)).path}else if(J(e)){const n=e.slice(D.length);return JSON.parse(decodeURIComponent(n)).localPath}k(e)}function le(e){return e.replace(/^.*[\\/]/,"")}function de(e){return le(N(e))}function fe(e){if(!e||typeof e!="object")return!1;const n=e;if(!("type"in n))return!1;switch(n.type){case"Json":return typeof n.keyLength=="number"&&n.data!==void 0&&typeof n.data=="object";case"JsonPartitioned":return typeof n.partitionKeyLength=="number"&&n.parts!==void 0&&typeof n.parts=="object";case"BinaryPartitioned":return typeof n.partitionKeyLength=="number"&&n.parts!==void 0&&typeof n.parts=="object";default:return!1}}function me(e,n){if(e!==void 0)switch(e.type){case"Json":return e;case"JsonPartitioned":{const r={};for(const[t,i]of Object.entries(e.parts))r[t]=n(i);return{...e,parts:r}}case"BinaryPartitioned":{const r={};for(const[t,i]of Object.entries(e.parts))r[t]={index:n(i.index),values:n(i.values)};return{...e,parts:r}}}}function pe(e,n){switch(e.type){case"Json":break;case"JsonPartitioned":{for(const[r,t]of Object.entries(e.parts))n(t);break}case"BinaryPartitioned":{for(const[r,t]of Object.entries(e.parts))n(t.index),n(t.values);break}}}function L(e){if(!e||typeof e!="object")return!1;const n=e;if(!("type"in n))return!1;switch(n.type){case"Json":return typeof n.keyLength=="number"&&Array.isArray(n.data);case"JsonPartitioned":return typeof n.partitionKeyLength=="number"&&Array.isArray(n.parts);case"BinaryPartitioned":return typeof n.partitionKeyLength=="number"&&Array.isArray(n.parts);default:return!1}}function he(e){return L(e)?e.type==="JsonPartitioned"||e.type==="BinaryPartitioned":!1}function ye(e){switch(e.type){case"Json":{const n=Object.entries(e.data).map(([r,t])=>({key:JSON.parse(r),value:t}));return{type:"Json",keyLength:e.keyLength,data:n}}case"JsonPartitioned":{const n=Object.entries(e.parts).map(([r,t])=>({key:JSON.parse(r),value:t}));return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength,parts:n}}case"BinaryPartitioned":{const n=Object.entries(e.parts).map(([r,t])=>({key:JSON.parse(r),value:t}));return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength,parts:n}}}}function be(e){switch(e.type){case"Json":{const n={};for(const r of e.data)n[JSON.stringify(r.key)]=r.value;return{type:"Json",keyLength:e.keyLength,data:n}}case"JsonPartitioned":{const n={};for(const r of e.parts)n[JSON.stringify(r.key)]=r.value;return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength,parts:n}}case"BinaryPartitioned":{const n={};for(const r of e.parts)n[JSON.stringify(r.key)]=r.value;return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength,parts:n}}}}function ge(e,n){if(e!==void 0)switch(e.type){case"Json":return e;case"JsonPartitioned":{const r=e.parts.map(t=>({key:t.key,value:n(t.value)}));return{...e,parts:r}}case"BinaryPartitioned":{const r=e.parts.map(t=>({key:t.key,value:{index:n(t.value.index),values:n(t.value.values)}}));return{...e,parts:r}}}}function V(e,n){const r=Math.floor(n/8),t=1<<7-n%8;return(e[r]&t)>0}function ve(e,n){return V(e.absent,n)}function we(e,n){if(e.isNA)return V(e.isNA,n);const r=e.type,t=e.data[n];switch(r){case"Int":return t===-2147483648;case"Long":return t===-9007199254740991n;case"Float":return Number.isNaN(t);case"Double":return Number.isNaN(t);case"String":return t===null;case"Bytes":return t===null;default:throw Error(`unsupported data type: ${r}`)}}const $={type:"absent"};function Ae(e){return typeof e=="object"&&e!==null&&"type"in e&&e.type==="absent"}const E=null;function B(e){return e===E}function Pe(e,n){return!(n?n(e):B(e))}function U(e,n,r){const t=e.type;if(t==="Bytes")throw Error("Bytes not yet supported");if(r&&"dataType"in r&&r.dataType!==void 0&&r.dataType!==t)throw Error(`expected column of type ${r.dataType}, got ${t}`);if(ve(e,n))return(r==null?void 0:r.absent)!==void 0?r.absent:$;if(we(e,n))return(r==null?void 0:r.na)!==void 0?r.na:E;const i=e.data[n];switch(t){case"Int":return i;case"Long":return Number(i);case"Float":return i;case"Double":return i;case"String":return i}}function ke(e,n,r){return U(e,n,r)}function Ee(e,n,r){return U(e,n,r)}function xe(e){return{kind:e.kind,valueType:e.valueType,name:e.name,domain:e.domain,parentAxes:e.parentAxes,axesId:x(e.axesSpec)}}function Se(e){return{columnId:e.id,spec:e.spec}}function p(e){const{type:n,name:r,domain:t}=e,i={type:n,name:r};return t&&Object.entries(t).length>0&&Object.assign(i,{domain:t}),i}function x(e){return e.map(p)}function Ie(e){return b(p(e))}function Ce(e,n){if(e===void 0)return n===void 0;if(n===void 0)return!0;for(const r in n)if(e[r]!==n[r])return!1;return!0}function z(e,n){return e.name===n.name&&Ce(e.domain,n.domain)}function Fe(e,n){return{...e,src:y(e.src,n)}}function y(e,n){switch(e.type){case"column":return{type:"column",column:n(e.column)};case"slicedColumn":return{type:"slicedColumn",column:n(e.column),newId:e.newId,axisFilters:e.axisFilters};case"inlineColumn":return e;case"inner":case"full":return{type:e.type,entries:e.entries.map(r=>y(r,n))};case"outer":return{type:"outer",primary:y(e.primary,n),secondary:e.secondary.map(r=>y(r,n))};default:k(e)}}function Re(e){switch(e.type){case"axis":return{type:"axis",id:e.id};case"column":return{type:"column",id:e.id}}}function M(e){return b(e)}function Oe(e){return JSON.parse(e)}function R(e){return b(p(e))}function O(e,n){return JSON.stringify([e,n])}class De{constructor(n){f(this,"domains",new Map);f(this,"axes",new Map);f(this,"domainPacks",[]);f(this,"domainPackToAnchor",new Map);this.anchors=n;const r=Object.entries(n);r.sort((t,i)=>t[0].localeCompare(i[0]));for(const[t,i]of r){for(let o=0;o<i.axesSpec.length;o++){const s=i.axesSpec[o],a=R(s);this.axes.set(a,{anchor:t,idx:o})}if(i.domain!==void 0){const o=Object.entries(i.domain);o.sort((s,a)=>s[0].localeCompare(a[0])),this.domainPackToAnchor.set(JSON.stringify(o),t),this.domainPacks.push(o.map(([s])=>s));for(const[s,a]of o){const u=O(s,a);this.domains.set(u,t)}}}}derive(n,r){const t={name:n.name,axes:[]};let i;if(n.domain!==void 0)e:for(const s of this.domainPacks){const a=[];for(const c of s){const l=n.domain[c];if(l!==void 0)a.push([c,l]);else break e}const u=this.domainPackToAnchor.get(JSON.stringify(a));if(u!==void 0){t.domainAnchor=u,i=new Set(s);break}}for(const[s,a]of Object.entries(n.domain??{})){if(i!==void 0&&i.has(s))continue;const u=O(s,a),c=this.domains.get(u);t.domain??(t.domain={}),t.domain[s]=c?{anchor:c}:a}if(t.axes=n.axesSpec.map(s=>{const a=R(s),u=this.axes.get(a);return u===void 0?p(s):u}),!r||r.length===0)return t;const o=[];for(const s of r){const[a,u]=s;if(typeof a=="number"){if(a<0||a>=n.axesSpec.length)throw new Error(`Axis index ${a} is out of bounds (0-${n.axesSpec.length-1})`);o.push([a,u])}else{const c=n.axesSpec.findIndex(l=>l.name===a);if(c===-1)throw new Error(`Axis with name "${a}" not found in the column specification`);o.push([c,u])}}return o.sort((s,a)=>s[0]-a[0]),{source:t,axisFilters:o}}deriveS(n,r){return M(this.derive(n,r))}}function je(e,n,r){const t={...n},i=(r==null?void 0:r.ignoreMissingDomains)??!1;if(t.domainAnchor!==void 0){const o=e[t.domainAnchor];if(!o)throw new Error(`Anchor "${t.domainAnchor}" not found`);const s=o.domain||{};t.domain={...s,...t.domain},delete t.domainAnchor}if(t.domain){const o={};for(const[s,a]of Object.entries(t.domain))if(typeof a=="string")o[s]=a;else{const u=e[a.anchor];if(!u)throw new Error(`Anchor "${a.anchor}" not found for domain key "${s}"`);if(!u.domain||u.domain[s]===void 0){if(!i)throw new Error(`Domain key "${s}" not found in anchor "${a.anchor}"`);continue}o[s]=u.domain[s]}t.domain=o}return t.axes&&(t.axes=t.axes.map(o=>Je(e,o))),t}function Je(e,n){if(!Te(n))return n;const r=n.anchor,t=e[r];if(!t)throw new Error(`Anchor "${r}" not found for axis reference`);if("idx"in n){if(n.idx<0||n.idx>=t.axesSpec.length)throw new Error(`Axis index ${n.idx} out of bounds for anchor "${r}"`);return t.axesSpec[n.idx]}else if("name"in n){const i=t.axesSpec.filter(o=>o.name===n.name);if(i.length>1)throw new Error(`Multiple axes with name "${n.name}" found in anchor "${r}"`);if(i.length===0)throw new Error(`Axis with name "${n.name}" not found in anchor "${r}"`);return i[0]}else if("id"in n){const i=t.axesSpec.filter(o=>z(n.id,p(o)));if(i.length>1)throw new Error(`Multiple matching axes found for matcher in anchor "${r}"`);if(i.length===0)throw new Error(`No matching axis found for matcher in anchor "${r}"`);return i[0]}throw new Error("Unsupported axis reference type")}function Te(e){return typeof e=="object"&&"anchor"in e}function Ne(e){return typeof e=="object"&&e!==null&&"source"in e&&"axisFilters"in e}function d(e){return e.kind==="PColumn"}function K(e){return d(e.spec)}function Le(e){return d(e.obj)}function Ve(e){return d(e.obj.spec)}function $e(e){if(!K(e))throw new Error(`not a PColumn (kind = ${e.spec.kind})`);return e}function Be(e,n){return e===void 0?void 0:{...e,data:n(e.data)}}function Ue(e){const n=new Map,r=t=>{switch(t.type){case"column":n.set(t.column.id,t.column);return;case"slicedColumn":n.set(t.column.id,t.column);return;case"inlineColumn":return;case"full":case"inner":for(const i of t.entries)r(i);return;case"outer":r(t.primary);for(const i of t.secondary)r(i);return;default:k(t)}};return r(e),[...n.values()]}function ze(e){throw new Error("Unexpected object: "+e)}function g(e,n){switch(e.type){case"and":for(const r of e.operands)if(!g(r,n))return!1;return!0;case"or":for(const r of e.operands)if(g(r,n))return!0;return!1;case"not":return!g(e.operand,n);case"name":return d(n)&&n.name===e.name;case"name_pattern":return d(n)&&!!n.name.match(e.pattern);case"annotation":return d(n)&&n.annotations!==void 0&&n.annotations[e.annotation]===e.value;case"annotation_pattern":return d(n)&&n.annotations!==void 0&&n.annotations[e.annotation]!==void 0&&!!n.annotations[e.annotation].match(e.pattern);case"has_axes":return d(n)&&e.axes.every(r=>n.axesSpec.some(t=>(r.type===void 0||r.type===t.type)&&(r.name===void 0||r.name===t.name)&&(r.domain===void 0||Object.keys(r.domain).length===0||t.domain!==void 0&&Object.entries(r.domain).every(([i,o])=>t.domain[i]===o))));default:ze(e)}}function A(e,n){if(e.name!==void 0&&e.name!==n.name)return!1;if(e.type!==void 0){if(Array.isArray(e.type)){if(!e.type.includes(n.type))return!1}else if(e.type!==n.type)return!1}if(e.domain!==void 0){const r=n.domain||{};for(const[t,i]of Object.entries(e.domain))if(r[t]!==i)return!1}return!0}function P(e,n){if(n.name!==void 0&&e.name!==n.name||n.namePattern!==void 0&&!new RegExp(n.namePattern).test(e.name))return!1;if(n.type!==void 0){if(Array.isArray(n.type)){if(!n.type.includes(e.valueType))return!1}else if(n.type!==e.valueType)return!1}if(n.domain!==void 0){const r=e.domain||{};for(const[t,i]of Object.entries(n.domain))if(r[t]!==i)return!1}if(n.axes!==void 0){const r=e.axesSpec.map(p);if(n.partialAxesMatch){for(const t of n.axes)if(!r.some(i=>A(t,i)))return!1}else{if(r.length!==n.axes.length)return!1;for(let t=0;t<n.axes.length;t++)if(!A(n.axes[t],r[t]))return!1}}if(n.annotations!==void 0){const r=e.annotations||{};for(const[t,i]of Object.entries(n.annotations))if(r[t]!==i)return!1}if(n.annotationPatterns!==void 0){const r=e.annotations||{};for(const[t,i]of Object.entries(n.annotationPatterns)){const o=r[t];if(o===void 0||!new RegExp(i).test(o))return!1}}return!0}function Me(e){return Array.isArray(e)?n=>e.some(r=>d(n)&&P(n,r)):n=>d(n)&&P(n,e)}function Ke(e){const n={kind:e.kind,name:e.name};return e.domain!==void 0&&(n.domain=e.domain),d(e)&&(n.axesSpec=x(e.axesSpec)),b(n)}const qe={href:"/"},_e=m.z.object({__isRef:m.z.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:m.z.string().describe("Upstream block id"),name:m.z.string().describe("Name of the output provided to the upstream block's output context"),requireEnrichments:m.z.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").readonly();function He(e){return typeof e=="object"&&e!==null&&"__isRef"in e&&e.__isRef===!0&&"blockId"in e&&"name"in e}function We(e,n,r=!1){return r?{__isRef:!0,blockId:e,name:n,requireEnrichments:!0}:{__isRef:!0,blockId:e,name:n}}function Ge(e,n=!0){if(n)return{...e,requireEnrichments:!0};{const{requireEnrichments:r,...t}=e;return t}}function Xe(e,n,r=!1){return e.blockId===n.blockId&&e.name===n.name&&(r||e.requireEnrichments===n.requireEnrichments)}function Qe(e,n){return e.ok?{ok:!0,value:n(e.value)}:e}function Ye(e){if(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray)return new DataView(e.buffer,e.byteOffset,e.byteLength);if(e instanceof ArrayBuffer)return new DataView(e);throw new TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}const Ze="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",en="0123456789ABCDEFGHIJKLMNOPQRSTUV",nn="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function q(e,n,r){r=r||{};let t,i;switch(n){case"RFC3548":case"RFC4648":t=Ze,i=!0;break;case"RFC4648-HEX":t=en,i=!0;break;case"Crockford":t=nn,i=!1;break;default:throw new Error("Unknown base32 variant: "+String(n))}const o=r.padding!==void 0?r.padding:i,s=Ye(e);let a=0,u=0,c="";for(let l=0;l<s.byteLength;l++)for(u=u<<8|s.getUint8(l),a+=8;a>=5;)c+=t[u>>>a-5&31],a-=5;if(a>0&&(c+=t[u<<5-a&31]),o)for(;c.length%8!==0;)c+="=";return c}const S=15,_=24,I=m.z.string().length(_).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");function rn(){const e=new Uint8Array(S);return crypto.getRandomValues(e),I.parse(q(e,"RFC4648"))}function H(e){if(e.length!==S)throw new Error(`Wrong number of bytes: ${e.length}`);return I.parse(q(e,"RFC4648"))}async function tn(e){const n=new TextEncoder,r=await crypto.subtle.digest("SHA-256",n.encode(e));return H(new Uint8Array(r.slice(0,15)))}function on(e){return JSON.stringify(e)}function an(e){return b(e)}function sn(e){return JSON.parse(e)}class un extends Error{constructor(){super(...arguments);f(this,"name","AbortError")}}class cn extends Error{constructor(){super(...arguments);f(this,"name","UiError")}}function ln(e){return e instanceof Error&&e.name==="AbortError"}function W(e){return e instanceof Error?e.name==="AbortError"||W(e.cause):!1}function dn(e){return e instanceof Error&&e.name==="AggregateError"}class G extends Error{constructor(){super(...arguments);f(this,"name","PFrameError")}}function fn(e){return e instanceof Error&&e.name==="PFrameError"}class mn extends G{constructor(){super(...arguments);f(this,"name","PFrameError.Driver")}}function pn(e){return e instanceof Error&&e.name==="PFrameError.Driver"}function hn(e){if(typeof e=="string")return`String value was thrown: ${e}`;if(e&&typeof e=="object")try{return`Plain object was thrown: ${JSON.stringify(e)}`}catch(n){return`Non-serializable object was thrown (JSON.stringify failed: ${n instanceof Error?n.message:String(n)}): ${String(e)}`}return`Non-Error value (${typeof e}) was thrown: ${e}`}function v(e){return e instanceof Error?e:new Error(hn(e))}function w(e){const n=e.cause?w(e.cause):void 0,r=new Error(e.message,n!==void 0?{cause:n}:void 0);return r.name=e.name||"Error",r.stack=e.stack,r}function C(e){const n=v(e),r=n.cause?C(n.cause):void 0;return{name:n.name,message:n.message,stack:n.stack,...n.cause!==void 0&&{cause:r}}}function yn(e){if(e.error)throw e.error instanceof Error?e.error:w(e.error);return e.value}function F(e){return e.error?{error:C(e.error)}:{value:e.value}}function bn(e){return e.error?{error:w(e.error)}:{value:e.value}}function X(e){try{return{value:e()}}catch(n){return{error:v(n)}}}async function Q(e){try{return{value:await e()}}catch(n){return{error:v(n)}}}function gn(e){const n=X(e);return F(n)}async function vn(e){const n=await Q(e);return F(n)}const wn=["supportsLazyState"],An=["requiresUIAPIVersion","requiresModelAPIVersion"];function Pn(e,n,r=!0){return e===void 0?!1:e[n]===r}function kn(e){return e===void 0?new Set:new Set(Object.entries(e).filter(([n,r])=>n.startsWith("requires")&&r===!0).map(([n])=>n))}function En(e){return e===void 0?new Set:new Set(Object.entries(e).filter(([n,r])=>n.startsWith("supports")&&r===!0).map(([n])=>n))}class Y extends Error{constructor(r){super(`Some of the block requirements are not supported by the runtime: ${Array.from(r.entries()).map(([t,i])=>`${t}: ${i}`).join(", ")}`);f(this,"name","IncompatibleFlagsError");this.incompatibleFlags=r}}class xn{constructor(){f(this,"supportedRequirements",new Map)}addSupportedRequirement(n,r=!0){return this.supportedRequirements.has(n)||this.supportedRequirements.set(n,new Set),this.supportedRequirements.get(n).add(r),this}getIncompatibleFlags(n){if(n===void 0)return;const r=new Map;for(const[t,i]of Object.entries(n))if(t.startsWith("requires")){if(i===void 0)continue;const o=this.supportedRequirements.get(t);(o===void 0||!o.has(i))&&r.set(t,i)}return r.size===0?void 0:r}checkCompatibility(n){return this.getIncompatibleFlags(n)===void 0}throwIfIncompatible(n){const r=this.getIncompatibleFlags(n);if(r!==void 0)throw new Y(r)}}exports.AbortError=un;exports.AllRequiresFeatureFlags=An;exports.AllSupportsFeatureFlags=wn;exports.AnchoredIdDeriver=De;exports.DefaultNavigationState=qe;exports.IncompatibleFlagsError=Y;exports.PFrameDriverError=mn;exports.PFrameError=G;exports.PTableAbsent=$;exports.PTableNA=E;exports.PlId=I;exports.PlIdBytes=S;exports.PlIdLength=_;exports.PlRef=_e;exports.RangeBytes=ae;exports.RuntimeCapabilities=xn;exports.UiError=cn;exports.canonicalizeAxisId=Ie;exports.canonicalizeJson=an;exports.checkBlockFlag=Pn;exports.createPlRef=We;exports.dataInfoToEntries=ye;exports.deriveNativeId=Ke;exports.deserializeError=w;exports.deserializeResult=bn;exports.digestPlId=tn;exports.ensureError=v;exports.ensurePColumn=$e;exports.entriesToDataInfo=be;exports.executePSpecPredicate=g;exports.extractAllColumns=Ue;exports.extractAllRequirements=kn;exports.extractAllSupports=En;exports.extractCodeWithInfo=re;exports.extractConfigGeneric=te;exports.getAxesId=x;exports.getAxisId=p;exports.getColumnIdAndSpec=Se;exports.getFileNameFromHandle=de;exports.getFilePathFromHandle=N;exports.getPColumnSpecId=xe;exports.getPTableColumnId=Re;exports.hasAbortError=W;exports.isAbortError=ln;exports.isAggregateError=dn;exports.isBlockUIURL=oe;exports.isDataInfo=fe;exports.isDataInfoEntries=L;exports.isFilteredPColumn=Ne;exports.isFolderURL=ie;exports.isImportFileHandleIndex=T;exports.isImportFileHandleUpload=J;exports.isLiveLog=ce;exports.isPColumn=K;exports.isPColumnResult=Ve;exports.isPColumnSpec=d;exports.isPColumnSpecResult=Le;exports.isPFrameDriverError=pn;exports.isPFrameError=fn;exports.isPTableAbsent=Ae;exports.isPTableNA=B;exports.isPTableValueAxis=Pe;exports.isPartitionedDataInfoEntries=he;exports.isPlRef=He;exports.mapDataInfo=me;exports.mapDataInfoEntries=ge;exports.mapJoinEntry=y;exports.mapPObjectData=Be;exports.mapPTableDef=Fe;exports.mapValueInVOE=Qe;exports.matchAxis=A;exports.matchAxisId=z;exports.matchPColumn=P;exports.newRangeBytesOpt=se;exports.pTableValue=ke;exports.pTableValueBranded=Ee;exports.parseColumnId=Oe;exports.parseJson=sn;exports.plId=H;exports.plRefsEqual=Xe;exports.resolveAnchors=je;exports.selectorsToPredicate=Me;exports.serializeError=C;exports.serializeResult=F;exports.stringifyColumnId=M;exports.stringifyJson=on;exports.uniquePlId=rn;exports.unwrapResult=yn;exports.validateRangeBytes=ue;exports.visitDataInfo=pe;exports.withEnrichments=Ge;exports.wrapAndSerialize=gn;exports.wrapAndSerializeAsync=vn;exports.wrapAsyncCallback=Q;exports.wrapCallback=X;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|