@milaboratories/pl-model-common 1.11.0 → 1.11.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/block_state.d.ts.map +1 -1
- package/dist/driver_kit.d.ts.map +1 -1
- package/dist/drivers/blob.d.ts.map +1 -1
- package/dist/drivers/log.d.ts.map +1 -1
- package/dist/drivers/ls.d.ts.map +1 -1
- package/dist/drivers/pframe/column_filter.d.ts.map +1 -1
- package/dist/drivers/pframe/data.d.ts.map +1 -1
- package/dist/drivers/pframe/driver.d.ts.map +1 -1
- package/dist/drivers/pframe/find_columns.d.ts.map +1 -1
- package/dist/drivers/pframe/pframe.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/anchored_id.d.ts +4 -1
- package/dist/drivers/pframe/spec/anchored_id.d.ts.map +1 -1
- package/dist/drivers/pframe/table.d.ts.map +1 -1
- package/dist/drivers/pframe/table_calculate.d.ts.map +1 -1
- package/dist/drivers/pframe/table_common.d.ts.map +1 -1
- package/dist/drivers/pframe/type_util.d.ts.map +1 -1
- package/dist/drivers/pframe/unique_values.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/dist/pool/entry.d.ts.map +1 -1
- package/dist/pool/query.d.ts.map +1 -1
- package/dist/pool/spec.d.ts.map +1 -1
- package/dist/value_or_error.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/base32-encode.ts +2 -2
- package/src/block_state.ts +3 -3
- package/src/driver_kit.ts +1 -1
- package/src/drivers/blob.ts +3 -4
- package/src/drivers/log.ts +1 -1
- package/src/drivers/ls.ts +14 -14
- package/src/drivers/pframe/column_filter.ts +2 -2
- package/src/drivers/pframe/data.ts +18 -19
- package/src/drivers/pframe/driver.ts +13 -13
- package/src/drivers/pframe/find_columns.ts +2 -2
- package/src/drivers/pframe/pframe.ts +6 -6
- package/src/drivers/pframe/spec/anchored_id.ts +10 -2
- package/src/drivers/pframe/spec/selectors.ts +1 -1
- package/src/drivers/pframe/table.ts +2 -2
- package/src/drivers/pframe/table_calculate.ts +7 -7
- package/src/drivers/pframe/table_common.ts +10 -10
- package/src/drivers/pframe/type_util.ts +4 -2
- package/src/drivers/pframe/unique_values.ts +4 -4
- package/src/navigation.ts +1 -1
- package/src/pool/entry.ts +1 -1
- package/src/pool/query.ts +45 -44
- package/src/pool/spec.ts +7 -7
- package/src/ref.ts +11 -11
- package/src/value_or_error.ts +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_state.d.ts","sourceRoot":"","sources":["../src/block_state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"block_state.d.ts","sourceRoot":"","sources":["../src/block_state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,CACpB,IAAI,GAAG,OAAO,EACd,OAAO,SAAS,gBAAgB,GAAG,gBAAgB,EACnD,OAAO,GAAG,OAAO,EACjB,IAAI,SAAS,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAE,IACtC;IACF,6CAA6C;IAC7C,IAAI,EAAE,IAAI,CAAC;IAEX;kBACc;IACd,EAAE,EAAE,OAAO,CAAC;IAEZ,yCAAyC;IACzC,OAAO,EAAE,OAAO,CAAC;IAEjB,+BAA+B;IAC/B,eAAe,EAAE,eAAe,CAAC,IAAI,CAAC,CAAC;CACxC,CAAC"}
|
package/dist/driver_kit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver_kit.d.ts","sourceRoot":"","sources":["../src/driver_kit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"driver_kit.d.ts","sourceRoot":"","sources":["../src/driver_kit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEhF,qEAAqE;AACrE,MAAM,WAAW,SAAS;IACxB,4CAA4C;IAC5C,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAEhC,oDAAoD;IACpD,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAE/B;;;;;;;SAOK;IACL,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAE5B,2DAA2D;IAC3D,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blob.d.ts","sourceRoot":"","sources":["../../src/drivers/blob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"blob.d.ts","sourceRoot":"","sources":["../../src/drivers/blob.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;uEACuE;AACvE,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAEjE;qCACqC;AACrC,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;AAEnE;0DAC0D;AAC1D,MAAM,WAAW,iBAAiB,CAChC,CAAC,SAAS,eAAe,GAAG,gBAAgB,GAAK,eAAe,GAC9D,gBAAgB;IAElB,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAEnB,0BAA0B;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;6BAG6B;AAC7B,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAC,eAAe,CA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;IAEjB;;4DAEwD;IACxD,WAAW,CAAC,EAAE,MAAM;IAEpB;;+BAE2B;IAC3B,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC;AAED;;;6BAG6B;AAC7B,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,GAAG,kCAAkC,CAAC;AAE/F,MAAM,MAAM,sBAAsB,GAAG;IACnC;6BACyB;IACzB,kBAAkB,EAAE,KAAK,CAAC;IAE1B,+DAA+D;IAC/D,IAAI,EAAE,OAAO,CAAC;IAEd,sCAAsC;IACtC,IAAI,EAAE,UAAU,CAAC;IACjB,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,2DAA2D;AAC3D,MAAM,MAAM,kCAAkC,GAAG;IAC/C,kBAAkB,EAAE,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC"}
|
package/dist/drivers/ls.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls.d.ts","sourceRoot":"","sources":["../../src/drivers/ls.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ls.d.ts","sourceRoot":"","sources":["../../src/drivers/ls.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAK7C,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,MAAM,EAAE,CAAC;AACjE,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,MAAM,EA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;;;;;SAKK;IACL,kBAAkB,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC/D;AAED,8CAA8C;AAC9C,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAYtE;AAMD,8CAA8C;AAC9C,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAEtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column_filter.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/column_filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"column_filter.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/column_filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,+DAA+D;AAC/D,MAAM,WAAW,YAAY;IAC3B;mBACe;IACf,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;IAE5B;mBACe;IACf,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE9C,mFAAmF;IACnF,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAElD;kBACc;IACd,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/data.ts"],"names":[],"mappings":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E,WAAW,CAAC;CACtB,CAAC;AAEF,2DAA2D;AAC3D,wBAAgB,WAAW,CACzB,MAAM,EAAE,YAAY,EACpB,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,eAAoB,GACzB,WAAW,CAwBb;AAED,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":"driver.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/driver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAI9C,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EACV,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,KAAK,EAAE,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
{"version":3,"file":"find_columns.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/find_columns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"find_columns.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/find_columns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE5D;;;;;KAKK;AACL,MAAM,WAAW,kBAAkB;IACjC,0BAA0B;IAC1B,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAEpC,0EAA0E;IAC1E,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC;IAElC;;;;;SAKK;IACL,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;CACtC;AAED,8CAA8C;AAC9C,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,CAAC;CACnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pframe.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/pframe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"pframe.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/pframe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC9E,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,KAAK,EACV,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEjF,gDAAgD;AAChD,MAAM,WAAW,MAAM;IACrB;;;SAGK;IACL,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEvE,kCAAkC;IAClC,aAAa,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEzD,2EAA2E;IAC3E,WAAW,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAE3C,mFAAmF;IACnF,kBAAkB,CAChB,OAAO,EAAE,yBAAyB,CAAC,SAAS,CAAC,GAC5C,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAEvC,yFAAyF;IACzF,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAC9E;AAED,oDAAoD;AACpD,MAAM,MAAM,SAAS,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { PColumnSpec } from './spec';
|
|
2
2
|
import { APColumnId, APColumnSelector, PColumnSelector } from './selectors';
|
|
3
|
+
import { Branded } from '../../../branding';
|
|
4
|
+
/** Canonicalized string representation of an anchored column identifier, either anchored or absolute. */
|
|
5
|
+
export type CanonicalPColumnId = Branded<string, 'CanonicalPColumnId'>;
|
|
3
6
|
/**
|
|
4
7
|
* Context for resolving and generating anchored references to columns and axes
|
|
5
8
|
* Maintains maps of known domain values and axes that can be referenced by anchors
|
|
@@ -34,7 +37,7 @@ export declare class AnchorIdDeriver {
|
|
|
34
37
|
* @param spec Column specification to anchor
|
|
35
38
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
36
39
|
*/
|
|
37
|
-
|
|
40
|
+
deriveCanonical(spec: PColumnSpec): CanonicalPColumnId;
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
43
|
* Resolves anchored references in a column matcher to create a non-anchored matcher
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anchored_id.d.ts","sourceRoot":"","sources":["../../../../src/drivers/pframe/spec/anchored_id.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAU,WAAW,EAAE,MAAM,QAAQ,CAAC;AAElD,OAAO,KAAK,EAAoD,UAAU,EAAE,gBAAgB,EAAgB,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"anchored_id.d.ts","sourceRoot":"","sources":["../../../../src/drivers/pframe/spec/anchored_id.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAU,WAAW,EAAE,MAAM,QAAQ,CAAC;AAElD,OAAO,KAAK,EAAoD,UAAU,EAAE,gBAAgB,EAAgB,eAAe,EAAE,MAAM,aAAa,CAAC;AACjJ,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAkBjD,yGAAyG;AACzG,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEvE;;;GAGG;AACH,qBAAa,eAAe;IAiBd,OAAO,CAAC,QAAQ,CAAC,OAAO;IAhBpC,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;gBAC0B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC;IAwBjE;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,UAAU;IA6CrC;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,kBAAkB;CAIvD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAqC/G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpE;;KAEK;AACL,MAAM,WAAW,MAAM;IACrB,0BAA0B;IAC1B,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IAEjC;;;;;;;;SAQK;IACL,OAAO,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAEvC;;;;;;;SAOK;IACL,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;CAC/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table_calculate.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/table_calculate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"table_calculate.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/table_calculate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG3C,8DAA8D;AAC9D,MAA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E,CAAC;CACnC;AAED,iEAAiE;AACjE,MAAM,MAAM,yBAAyB,CAAC,GAAG,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC;AAE5D,qDAAqD;AACrD,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,EAAE,CAAC;AAEhE,wBAAgB,YAAY,CAAC,EAAE,EAAE,EAAE,EACjC,GAAG,EAAE,SAAS,CAAC,EAAE,CAAC,EAClB,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,GAChB,SAAS,CAAC,EAAE,CAAC,CAEf;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,EAAE,EACjC,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC,EACpB,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,GAChB,SAAS,CAAC,EAAE,CAAC,CAsBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table_common.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/table_common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"table_common.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/table_common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEjE,+CAA+C;AAC/C,MAAM,MAAM,gBAAgB,GACxB;IACA,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,QAAQ,CAAC;CAChB,GACC;IACA,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,EAAE,SAAS,CAAC;IACd,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,EAAE,SAAS,CAAC;CACf,CAAC;AAEF,uCAAuC;AACvC,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type_util.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/type_util.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"type_util.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/type_util.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,CACvB,WAAW,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,EAClC,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,IACrC,CACF,GAAG,IAAI,EAAE,CAAC,GAAG,WAAW,EAAE,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,KAChD,UAAU,CAAC,SAAS,CAAC,CAAC;AAE3B,MAAM,MAAM,wBAAwB,CAClC,SAAS,EACT,WAAW,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,IAChC;KACD,KAAK,IAAI,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,GACtE,aAAa,CAAC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,GAC5C,SAAS,CAAC,KAAK,CAAC;CACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unique_values.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/unique_values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"unique_values.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/unique_values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,yFAAyF;AACzF,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAE7B,uEAAuE;IACvE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEvB,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAEvC,qFAAqF;IACrF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,oBAAoB;IACpB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAE9B,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var G=Object.defineProperty;var Q=(n,t,e)=>t in n?G(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var d=(n,t,e)=>Q(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("canonicalize"),l=require("zod");function Y(n){return n!==void 0&&n.startsWith("log+live://log/")}function w(n){throw new Error("Unexpected object: "+n)}const S="upload://upload/",k="index://index/";function C(n){return n.startsWith(S)}function F(n){return n.startsWith(k)}function $(n){if(F(n)){const t=n.slice(k.length);return JSON.parse(decodeURIComponent(t)).path}else if(C(n)){const t=n.slice(S.length);return JSON.parse(decodeURIComponent(t)).localPath}w(n)}function Z(n){return n.replace(/^.*[\\/]/,"")}function v(n){return Z($(n))}const D=-2147483648,g=-9007199254740991n,O=NaN,U=NaN,R=null,B=null;function p(n,t){switch(t){case"Int":return n===D;case"Long":return n===Number(g)||n===g;case"Float":return n===O;case"Double":return n===U;case"String":return n===R;case"Bytes":return n===B;default:throw Error(`unsupported data type: ${t}`)}}function nn(n){if(!T(n))throw new Error(`Expected not-NA PValue, got ${n}`);return n}function T(n,t){if(!t)return typeof n=="string"||typeof n=="number"&&isFinite(n)||typeof n=="bigint";if(p(n,t))return!1;switch(t){case"Int":return typeof n=="number";case"Long":return typeof n=="number"||typeof n=="bigint";case"Float":return typeof n=="number";case"Double":return typeof n=="number";case"String":return typeof n=="string";case"Bytes":throw Error("Bytes not yet supported");default:throw Error(`unsupported data type: ${t}`)}}function j(n,t){if(!t)return n===null||typeof n=="string"||typeof n=="number"||typeof n=="bigint";if(p(n,t))return!0;switch(t){case"Int":return typeof n=="number";case"Long":return typeof n=="number"||typeof n=="bigint";case"Float":return typeof n=="number";case"Double":return typeof n=="number";case"String":return typeof n=="string";case"Bytes":throw Error("Bytes not yet supported");default:throw Error(`unsupported data type: ${t}`)}}function tn(n){if(n===null||typeof n=="string"||typeof n=="number")return n;if(typeof n=="bigint")return{bigint:n.toString()};throw new Error(`Type ${typeof n} (value ${n}) not yet supported.`)}function L(n,t){if(n===null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"){if(t&&!p(n,t)&&!j(n,t))throw new Error(`Unexpected value type, got ${typeof n}, expected ${t}`);return n}if(typeof n=="object"&&n!==null&&"bigint"in n&&typeof n.bigint=="string"){if(t&&t!=="Long")throw new Error(`Unexpected value type, got serialized bigint, expected ${t}`);return BigInt(n.bigint)}throw new Error(`Unsupported type ${typeof n} (value ${n}).`)}function en(n){if(n=H(n),n===null)throw new Error("Value is null");return n}function H(n){if(n=L(n),n===null)return null;if(typeof n=="string")return n;if(typeof n=="number"){if(!isFinite(n))throw new Error(`Value is not finite (${n})`);return n}if(typeof n=="bigint")return Number(n);throw new Error(`Unexpected value type: ${typeof n}`)}function J(n,t){const e=Math.floor(t/8),r=1<<7-t%8;return(n[e]&r)>0}const M={type:"absent"},_=null;function rn(n){return typeof n=="object"&&n!==null&&n.type==="absent"}function on(n,t,e={}){if(J(n.absent,t))return e.absent===void 0?M:e.absent;const r=n.data[t],o=n.type;if(p(r,o))return e.na===void 0?_:e.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 h(n){const{type:t,name:e,domain:r}=n;return{type:t,name:e,...r&&{domain:r}}}function an(n){return n.map(h)}function sn(n,t){if(n===void 0)return t===void 0;if(t===void 0)return!0;for(const e in t)if(n[e]!==t[e])return!1;return!0}function K(n,t){return n.name===t.name&&sn(n.domain,t.domain)}function un(n,t){return{...n,src:m(n.src,t)}}function m(n,t){switch(n.type){case"column":return{type:"column",column:t(n.column)};case"inner":case"full":return{type:n.type,entries:n.entries.map(e=>m(e,t))};case"outer":return{type:"outer",primary:m(n.primary,t),secondary:n.secondary.map(e=>m(e,t))};default:w(n)}}function I(n){return V(h(n))}function E(n,t){return JSON.stringify([n,t])}class cn{constructor(t){d(this,"domains",new Map);d(this,"axes",new Map);d(this,"domainPacks",[]);d(this,"domainPackToAnchor",new Map);this.anchors=t;const e=Object.entries(t);e.sort((r,o)=>r[0].localeCompare(o[0]));for(const[r,o]of e){for(let i=0;i<o.axesSpec.length;i++){const a=o.axesSpec[i],s=I(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 c=E(a,s);this.domains.set(c,r)}}}}derive(t){const e={name:t.name,axes:[]};let r;if(t.domain!==void 0)n:for(const o of this.domainPacks){const i=[];for(const s of o){const c=t.domain[s];if(c!==void 0)i.push([s,c]);else break n}const a=this.domainPackToAnchor.get(JSON.stringify(i));if(a!==void 0){e.domainAnchor=a,r=new Set(o);break}}for(const[o,i]of Object.entries(t.domain??{})){if(r!==void 0&&r.has(o))continue;const a=E(o,i),s=this.domains.get(a);e.domain??(e.domain={}),e.domain[o]=s?{anchor:s}:i}return e.axes=t.axesSpec.map(o=>{const i=I(o);return this.axes.get(i)??o}),e}deriveString(t){const e=this.derive(t);return V(e)}}function fn(n,t){const e={...t};if(e.domainAnchor!==void 0){const r=n[e.domainAnchor];if(!r)throw new Error(`Anchor "${e.domainAnchor}" not found`);const o=r.domain||{};e.domain={...o,...e.domain},delete e.domainAnchor}if(e.domain){const r={};for(const[o,i]of Object.entries(e.domain))if(typeof i=="string")r[o]=i;else{const a=n[i.anchor];if(!a)throw new Error(`Anchor "${i.anchor}" not found for domain key "${o}"`);if(!a.domain||a.domain[o]===void 0)throw new Error(`Domain key "${o}" not found in anchor "${i.anchor}"`);r[o]=a.domain[o]}e.domain=r}return e.axes&&(e.axes=e.axes.map(r=>dn(n,r))),e}function dn(n,t){if(!ln(t))return t;const e=t.anchor,r=n[e];if(!r)throw new Error(`Anchor "${e}" not found for axis reference`);if("idx"in t){if(t.idx<0||t.idx>=r.axesSpec.length)throw new Error(`Axis index ${t.idx} out of bounds for anchor "${e}"`);return r.axesSpec[t.idx]}else if("name"in t){const o=r.axesSpec.filter(i=>i.name===t.name);if(o.length>1)throw new Error(`Multiple axes with name "${t.name}" found in anchor "${e}"`);if(o.length===0)throw new Error(`Axis with name "${t.name}" not found in anchor "${e}"`);return o[0]}else if("id"in t){const o=r.axesSpec.filter(i=>K(t.id,h(i)));if(o.length>1)throw new Error(`Multiple matching axes found for matcher in anchor "${e}"`);if(o.length===0)throw new Error(`No matching axis found for matcher in anchor "${e}"`);return o[0]}throw new Error("Unsupported axis reference type")}function ln(n){return typeof n=="object"&&"anchor"in n}function u(n){return n.kind==="PColumn"}function z(n){return u(n.spec)}function mn(n){return u(n.obj)}function pn(n){return u(n.obj.spec)}function hn(n){if(!z(n))throw new Error(`not a PColumn (kind = ${n.spec.kind})`);return n}function yn(n,t){return n===void 0?void 0:{...n,data:t(n.data)}}function bn(n){const t=new Map,e=r=>{switch(r.type){case"column":t.set(r.column.id,r.column);return;case"full":case"inner":for(const o of r.entries)e(o);return;case"outer":e(r.primary);for(const o of r.secondary)e(o);return;default:w(r)}};return e(n),[...t.values()]}function gn(n){throw new Error("Unexpected object: "+n)}function y(n,t){switch(n.type){case"and":for(const e of n.operands)if(!y(e,t))return!1;return!0;case"or":for(const e of n.operands)if(y(e,t))return!0;return!1;case"not":return!y(n.operand,t);case"name":return u(t)&&t.name===n.name;case"name_pattern":return u(t)&&!!t.name.match(n.pattern);case"annotation":return u(t)&&t.annotations!==void 0&&t.annotations[n.annotation]===n.value;case"annotation_pattern":return u(t)&&t.annotations!==void 0&&t.annotations[n.annotation]!==void 0&&!!t.annotations[n.annotation].match(n.pattern);case"has_axes":return u(t)&&n.axes.every(e=>t.axesSpec.some(r=>(e.type===void 0||e.type===r.type)&&(e.name===void 0||e.name===r.name)&&(e.domain===void 0||Object.keys(e.domain).length===0||r.domain!==void 0&&Object.entries(e.domain).every(([o,i])=>r.domain[o]===i))));default:gn(n)}}function P(n,t){if(n.name!==void 0&&n.name!==t.name)return!1;if(n.type!==void 0){if(Array.isArray(n.type)){if(!n.type.includes(t.type))return!1}else if(n.type!==t.type)return!1}if(n.domain!==void 0){const e=t.domain||{};for(const[r,o]of Object.entries(n.domain))if(e[r]!==o)return!1}return!0}function A(n,t){if(t.name!==void 0&&n.name!==t.name||t.namePattern!==void 0&&!new RegExp(t.namePattern).test(n.name))return!1;if(t.type!==void 0){if(Array.isArray(t.type)){if(!t.type.includes(n.valueType))return!1}else if(t.type!==n.valueType)return!1}if(t.domain!==void 0){const e=n.domain||{};for(const[r,o]of Object.entries(t.domain))if(e[r]!==o)return!1}if(t.axes!==void 0){const e=n.axesSpec.map(h);if(t.partialAxesMatch){for(const r of t.axes)if(!e.some(o=>P(r,o)))return!1}else{if(e.length!==t.axes.length)return!1;for(let r=0;r<t.axes.length;r++)if(!P(t.axes[r],e[r]))return!1}}if(t.annotations!==void 0){const e=n.annotations||{};for(const[r,o]of Object.entries(t.annotations))if(e[r]!==o)return!1}if(t.annotationPatterns!==void 0){const e=n.annotations||{};for(const[r,o]of Object.entries(t.annotationPatterns)){const i=e[r];if(i===void 0||!new RegExp(o).test(i))return!1}}return!0}function Pn(n){return Array.isArray(n)?t=>n.some(e=>u(t)&&A(t,e)):t=>u(t)&&A(t,n)}const An={href:"/"},wn=l.z.object({__isRef:l.z.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:l.z.string().describe("Upstream block id"),name:l.z.string().describe("Name of the output provided to the upstream block's output context")}).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.").strict().readonly();function xn(n){return typeof n=="object"&&n!==null&&"__isRef"in n&&n.__isRef===!0&&"blockId"in n&&"name"in n}function Nn(n,t){return n.blockId===t.blockId&&n.name===t.name}function In(n,t){return n.ok?{ok:!0,value:t(n.value)}:n}function En(n){if(n instanceof Int8Array||n instanceof Uint8Array||n instanceof Uint8ClampedArray)return new DataView(n.buffer,n.byteOffset,n.byteLength);if(n instanceof ArrayBuffer)return new DataView(n);throw new TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}const Vn="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",Sn="0123456789ABCDEFGHIJKLMNOPQRSTUV",kn="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function W(n,t,e){e=e||{};let r,o;switch(t){case"RFC3548":case"RFC4648":r=Vn,o=!0;break;case"RFC4648-HEX":r=Sn,o=!0;break;case"Crockford":r=kn,o=!1;break;default:throw new Error("Unknown base32 variant: "+t)}const i=e.padding!==void 0?e.padding:o,a=En(n);let s=0,c=0,f="";for(let b=0;b<a.byteLength;b++)for(c=c<<8|a.getUint8(b),s+=8;s>=5;)f+=r[c>>>s-5&31],s-=5;if(s>0&&(f+=r[c<<5-s&31]),i)for(;f.length%8!==0;)f+="=";return f}const x=15,q=24,N=l.z.string().length(q).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");function Cn(){const n=new Uint8Array(x);return crypto.getRandomValues(n),N.parse(W(n,"RFC4648"))}function X(n){if(n.length!==x)throw new Error(`Wrong number of bytes: ${n.length}`);return N.parse(W(n,"RFC4648"))}async function Fn(n){const t=new TextEncoder,e=await crypto.subtle.digest("SHA-256",t.encode(n));return X(new Uint8Array(e.slice(0,15)))}exports.AnchorIdDeriver=cn;exports.DefaultNavigationState=An;exports.PTableAbsent=M;exports.PTableNA=_;exports.PValueBytesNA=B;exports.PValueDoubleNA=U;exports.PValueFloatNA=O;exports.PValueIntNA=D;exports.PValueLongNA=g;exports.PValueStringNA=R;exports.PlId=N;exports.PlIdBytes=x;exports.PlIdLength=q;exports.PlRef=wn;exports.digestPlId=Fn;exports.ensureNotNAPValue=nn;exports.ensurePColumn=hn;exports.executePSpecPredicate=y;exports.extractAllColumns=bn;exports.getAxesId=an;exports.getAxisId=h;exports.getFileNameFromHandle=v;exports.getFilePathFromHandle=$;exports.isImportFileHandleIndex=F;exports.isImportFileHandleUpload=C;exports.isLiveLog=Y;exports.isNotNAPValue=T;exports.isPColumn=z;exports.isPColumnResult=pn;exports.isPColumnSpec=u;exports.isPColumnSpecResult=mn;exports.isPTableAbsent=rn;exports.isPValue=j;exports.isPlRef=xn;exports.isValueAbsent=J;exports.isValueNA=p;exports.mapJoinEntry=m;exports.mapPObjectData=yn;exports.mapPTableDef=un;exports.mapValueInVOE=In;exports.matchAxis=P;exports.matchAxisId=K;exports.matchPColumn=A;exports.pTableValue=on;exports.pValueToStringOrNumber=en;exports.pValueToStringOrNumberOrNull=H;exports.plId=X;exports.plRefsEqual=Nn;exports.resolveAnchors=fn;exports.safeConvertToPValue=L;exports.selectorsToPredicate=Pn;exports.toJsonSafePValue=tn;exports.uniquePlId=Cn;
|
|
1
|
+
"use strict";var G=Object.defineProperty;var Q=(n,t,e)=>t in n?G(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var d=(n,t,e)=>Q(n,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("canonicalize"),l=require("zod");function Y(n){return n!==void 0&&n.startsWith("log+live://log/")}function w(n){throw new Error("Unexpected object: "+n)}const k="upload://upload/",C="index://index/";function S(n){return n.startsWith(k)}function F(n){return n.startsWith(C)}function $(n){if(F(n)){const t=n.slice(C.length);return JSON.parse(decodeURIComponent(t)).path}else if(S(n)){const t=n.slice(k.length);return JSON.parse(decodeURIComponent(t)).localPath}w(n)}function Z(n){return n.replace(/^.*[\\/]/,"")}function v(n){return Z($(n))}const D=-2147483648,g=-9007199254740991n,O=NaN,U=NaN,R=null,B=null;function p(n,t){switch(t){case"Int":return n===D;case"Long":return n===Number(g)||n===g;case"Float":return n===O;case"Double":return n===U;case"String":return n===R;case"Bytes":return n===B;default:throw Error(`unsupported data type: ${t}`)}}function nn(n){if(!T(n))throw new Error(`Expected not-NA PValue, got ${n}`);return n}function T(n,t){if(!t)return typeof n=="string"||typeof n=="number"&&isFinite(n)||typeof n=="bigint";if(p(n,t))return!1;switch(t){case"Int":return typeof n=="number";case"Long":return typeof n=="number"||typeof n=="bigint";case"Float":return typeof n=="number";case"Double":return typeof n=="number";case"String":return typeof n=="string";case"Bytes":throw Error("Bytes not yet supported");default:throw Error(`unsupported data type: ${t}`)}}function j(n,t){if(!t)return n===null||typeof n=="string"||typeof n=="number"||typeof n=="bigint";if(p(n,t))return!0;switch(t){case"Int":return typeof n=="number";case"Long":return typeof n=="number"||typeof n=="bigint";case"Float":return typeof n=="number";case"Double":return typeof n=="number";case"String":return typeof n=="string";case"Bytes":throw Error("Bytes not yet supported");default:throw Error(`unsupported data type: ${t}`)}}function tn(n){if(n===null||typeof n=="string"||typeof n=="number")return n;if(typeof n=="bigint")return{bigint:n.toString()};throw new Error(`Type ${typeof n} (value ${n}) not yet supported.`)}function L(n,t){if(n===null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"){if(t&&!p(n,t)&&!j(n,t))throw new Error(`Unexpected value type, got ${typeof n}, expected ${t}`);return n}if(typeof n=="object"&&n!==null&&"bigint"in n&&typeof n.bigint=="string"){if(t&&t!=="Long")throw new Error(`Unexpected value type, got serialized bigint, expected ${t}`);return BigInt(n.bigint)}throw new Error(`Unsupported type ${typeof n} (value ${n}).`)}function en(n){if(n=H(n),n===null)throw new Error("Value is null");return n}function H(n){if(n=L(n),n===null)return null;if(typeof n=="string")return n;if(typeof n=="number"){if(!isFinite(n))throw new Error(`Value is not finite (${n})`);return n}if(typeof n=="bigint")return Number(n);throw new Error(`Unexpected value type: ${typeof n}`)}function J(n,t){const e=Math.floor(t/8),r=1<<7-t%8;return(n[e]&r)>0}const M={type:"absent"},_=null;function rn(n){return typeof n=="object"&&n!==null&&n.type==="absent"}function on(n,t,e={}){if(J(n.absent,t))return e.absent===void 0?M:e.absent;const r=n.data[t],o=n.type;if(p(r,o))return e.na===void 0?_:e.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 h(n){const{type:t,name:e,domain:r}=n;return{type:t,name:e,...r&&{domain:r}}}function an(n){return n.map(h)}function sn(n,t){if(n===void 0)return t===void 0;if(t===void 0)return!0;for(const e in t)if(n[e]!==t[e])return!1;return!0}function K(n,t){return n.name===t.name&&sn(n.domain,t.domain)}function un(n,t){return{...n,src:m(n.src,t)}}function m(n,t){switch(n.type){case"column":return{type:"column",column:t(n.column)};case"inner":case"full":return{type:n.type,entries:n.entries.map(e=>m(e,t))};case"outer":return{type:"outer",primary:m(n.primary,t),secondary:n.secondary.map(e=>m(e,t))};default:w(n)}}function I(n){return V(h(n))}function E(n,t){return JSON.stringify([n,t])}class cn{constructor(t){d(this,"domains",new Map);d(this,"axes",new Map);d(this,"domainPacks",[]);d(this,"domainPackToAnchor",new Map);this.anchors=t;const e=Object.entries(t);e.sort((r,o)=>r[0].localeCompare(o[0]));for(const[r,o]of e){for(let i=0;i<o.axesSpec.length;i++){const a=o.axesSpec[i],s=I(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 c=E(a,s);this.domains.set(c,r)}}}}derive(t){const e={name:t.name,axes:[]};let r;if(t.domain!==void 0)n:for(const o of this.domainPacks){const i=[];for(const s of o){const c=t.domain[s];if(c!==void 0)i.push([s,c]);else break n}const a=this.domainPackToAnchor.get(JSON.stringify(i));if(a!==void 0){e.domainAnchor=a,r=new Set(o);break}}for(const[o,i]of Object.entries(t.domain??{})){if(r!==void 0&&r.has(o))continue;const a=E(o,i),s=this.domains.get(a);e.domain??(e.domain={}),e.domain[o]=s?{anchor:s}:i}return e.axes=t.axesSpec.map(o=>{const i=I(o);return this.axes.get(i)??o}),e}deriveCanonical(t){const e=this.derive(t);return V(e)}}function fn(n,t){const e={...t};if(e.domainAnchor!==void 0){const r=n[e.domainAnchor];if(!r)throw new Error(`Anchor "${e.domainAnchor}" not found`);const o=r.domain||{};e.domain={...o,...e.domain},delete e.domainAnchor}if(e.domain){const r={};for(const[o,i]of Object.entries(e.domain))if(typeof i=="string")r[o]=i;else{const a=n[i.anchor];if(!a)throw new Error(`Anchor "${i.anchor}" not found for domain key "${o}"`);if(!a.domain||a.domain[o]===void 0)throw new Error(`Domain key "${o}" not found in anchor "${i.anchor}"`);r[o]=a.domain[o]}e.domain=r}return e.axes&&(e.axes=e.axes.map(r=>dn(n,r))),e}function dn(n,t){if(!ln(t))return t;const e=t.anchor,r=n[e];if(!r)throw new Error(`Anchor "${e}" not found for axis reference`);if("idx"in t){if(t.idx<0||t.idx>=r.axesSpec.length)throw new Error(`Axis index ${t.idx} out of bounds for anchor "${e}"`);return r.axesSpec[t.idx]}else if("name"in t){const o=r.axesSpec.filter(i=>i.name===t.name);if(o.length>1)throw new Error(`Multiple axes with name "${t.name}" found in anchor "${e}"`);if(o.length===0)throw new Error(`Axis with name "${t.name}" not found in anchor "${e}"`);return o[0]}else if("id"in t){const o=r.axesSpec.filter(i=>K(t.id,h(i)));if(o.length>1)throw new Error(`Multiple matching axes found for matcher in anchor "${e}"`);if(o.length===0)throw new Error(`No matching axis found for matcher in anchor "${e}"`);return o[0]}throw new Error("Unsupported axis reference type")}function ln(n){return typeof n=="object"&&"anchor"in n}function u(n){return n.kind==="PColumn"}function z(n){return u(n.spec)}function mn(n){return u(n.obj)}function pn(n){return u(n.obj.spec)}function hn(n){if(!z(n))throw new Error(`not a PColumn (kind = ${n.spec.kind})`);return n}function yn(n,t){return n===void 0?void 0:{...n,data:t(n.data)}}function bn(n){const t=new Map,e=r=>{switch(r.type){case"column":t.set(r.column.id,r.column);return;case"full":case"inner":for(const o of r.entries)e(o);return;case"outer":e(r.primary);for(const o of r.secondary)e(o);return;default:w(r)}};return e(n),[...t.values()]}function gn(n){throw new Error("Unexpected object: "+n)}function y(n,t){switch(n.type){case"and":for(const e of n.operands)if(!y(e,t))return!1;return!0;case"or":for(const e of n.operands)if(y(e,t))return!0;return!1;case"not":return!y(n.operand,t);case"name":return u(t)&&t.name===n.name;case"name_pattern":return u(t)&&!!t.name.match(n.pattern);case"annotation":return u(t)&&t.annotations!==void 0&&t.annotations[n.annotation]===n.value;case"annotation_pattern":return u(t)&&t.annotations!==void 0&&t.annotations[n.annotation]!==void 0&&!!t.annotations[n.annotation].match(n.pattern);case"has_axes":return u(t)&&n.axes.every(e=>t.axesSpec.some(r=>(e.type===void 0||e.type===r.type)&&(e.name===void 0||e.name===r.name)&&(e.domain===void 0||Object.keys(e.domain).length===0||r.domain!==void 0&&Object.entries(e.domain).every(([o,i])=>r.domain[o]===i))));default:gn(n)}}function P(n,t){if(n.name!==void 0&&n.name!==t.name)return!1;if(n.type!==void 0){if(Array.isArray(n.type)){if(!n.type.includes(t.type))return!1}else if(n.type!==t.type)return!1}if(n.domain!==void 0){const e=t.domain||{};for(const[r,o]of Object.entries(n.domain))if(e[r]!==o)return!1}return!0}function A(n,t){if(t.name!==void 0&&n.name!==t.name||t.namePattern!==void 0&&!new RegExp(t.namePattern).test(n.name))return!1;if(t.type!==void 0){if(Array.isArray(t.type)){if(!t.type.includes(n.valueType))return!1}else if(t.type!==n.valueType)return!1}if(t.domain!==void 0){const e=n.domain||{};for(const[r,o]of Object.entries(t.domain))if(e[r]!==o)return!1}if(t.axes!==void 0){const e=n.axesSpec.map(h);if(t.partialAxesMatch){for(const r of t.axes)if(!e.some(o=>P(r,o)))return!1}else{if(e.length!==t.axes.length)return!1;for(let r=0;r<t.axes.length;r++)if(!P(t.axes[r],e[r]))return!1}}if(t.annotations!==void 0){const e=n.annotations||{};for(const[r,o]of Object.entries(t.annotations))if(e[r]!==o)return!1}if(t.annotationPatterns!==void 0){const e=n.annotations||{};for(const[r,o]of Object.entries(t.annotationPatterns)){const i=e[r];if(i===void 0||!new RegExp(o).test(i))return!1}}return!0}function Pn(n){return Array.isArray(n)?t=>n.some(e=>u(t)&&A(t,e)):t=>u(t)&&A(t,n)}const An={href:"/"},wn=l.z.object({__isRef:l.z.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:l.z.string().describe("Upstream block id"),name:l.z.string().describe("Name of the output provided to the upstream block's output context")}).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.").strict().readonly();function xn(n){return typeof n=="object"&&n!==null&&"__isRef"in n&&n.__isRef===!0&&"blockId"in n&&"name"in n}function Nn(n,t){return n.blockId===t.blockId&&n.name===t.name}function In(n,t){return n.ok?{ok:!0,value:t(n.value)}:n}function En(n){if(n instanceof Int8Array||n instanceof Uint8Array||n instanceof Uint8ClampedArray)return new DataView(n.buffer,n.byteOffset,n.byteLength);if(n instanceof ArrayBuffer)return new DataView(n);throw new TypeError("Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray")}const Vn="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",kn="0123456789ABCDEFGHIJKLMNOPQRSTUV",Cn="0123456789ABCDEFGHJKMNPQRSTVWXYZ";function W(n,t,e){e=e||{};let r,o;switch(t){case"RFC3548":case"RFC4648":r=Vn,o=!0;break;case"RFC4648-HEX":r=kn,o=!0;break;case"Crockford":r=Cn,o=!1;break;default:throw new Error("Unknown base32 variant: "+t)}const i=e.padding!==void 0?e.padding:o,a=En(n);let s=0,c=0,f="";for(let b=0;b<a.byteLength;b++)for(c=c<<8|a.getUint8(b),s+=8;s>=5;)f+=r[c>>>s-5&31],s-=5;if(s>0&&(f+=r[c<<5-s&31]),i)for(;f.length%8!==0;)f+="=";return f}const x=15,q=24,N=l.z.string().length(q).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");function Sn(){const n=new Uint8Array(x);return crypto.getRandomValues(n),N.parse(W(n,"RFC4648"))}function X(n){if(n.length!==x)throw new Error(`Wrong number of bytes: ${n.length}`);return N.parse(W(n,"RFC4648"))}async function Fn(n){const t=new TextEncoder,e=await crypto.subtle.digest("SHA-256",t.encode(n));return X(new Uint8Array(e.slice(0,15)))}exports.AnchorIdDeriver=cn;exports.DefaultNavigationState=An;exports.PTableAbsent=M;exports.PTableNA=_;exports.PValueBytesNA=B;exports.PValueDoubleNA=U;exports.PValueFloatNA=O;exports.PValueIntNA=D;exports.PValueLongNA=g;exports.PValueStringNA=R;exports.PlId=N;exports.PlIdBytes=x;exports.PlIdLength=q;exports.PlRef=wn;exports.digestPlId=Fn;exports.ensureNotNAPValue=nn;exports.ensurePColumn=hn;exports.executePSpecPredicate=y;exports.extractAllColumns=bn;exports.getAxesId=an;exports.getAxisId=h;exports.getFileNameFromHandle=v;exports.getFilePathFromHandle=$;exports.isImportFileHandleIndex=F;exports.isImportFileHandleUpload=S;exports.isLiveLog=Y;exports.isNotNAPValue=T;exports.isPColumn=z;exports.isPColumnResult=pn;exports.isPColumnSpec=u;exports.isPColumnSpecResult=mn;exports.isPTableAbsent=rn;exports.isPValue=j;exports.isPlRef=xn;exports.isValueAbsent=J;exports.isValueNA=p;exports.mapJoinEntry=m;exports.mapPObjectData=yn;exports.mapPTableDef=un;exports.mapValueInVOE=In;exports.matchAxis=P;exports.matchAxisId=K;exports.matchPColumn=A;exports.pTableValue=on;exports.pValueToStringOrNumber=en;exports.pValueToStringOrNumberOrNull=H;exports.plId=X;exports.plRefsEqual=Nn;exports.resolveAnchors=fn;exports.safeConvertToPValue=L;exports.selectorsToPredicate=Pn;exports.toJsonSafePValue=tn;exports.uniquePlId=Sn;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|