@mirascript/mirascript 0.1.61 → 0.1.62-alpha.7
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/LICENSE +21 -0
- package/package.json +4 -4
- package/dist/chunk-6CAGNGY6.js +0 -3980
- package/dist/chunk-6CAGNGY6.js.map +0 -6
- package/dist/chunk-VRGQ23AK.js +0 -1815
- package/dist/chunk-VRGQ23AK.js.map +0 -6
- package/dist/compiler/compile-fast.d.ts +0 -7
- package/dist/compiler/compile-fast.d.ts.map +0 -1
- package/dist/compiler/create-script.d.ts +0 -20
- package/dist/compiler/create-script.d.ts.map +0 -1
- package/dist/compiler/diagnostic.d.ts +0 -71
- package/dist/compiler/diagnostic.d.ts.map +0 -1
- package/dist/compiler/emit/constants.d.ts +0 -5
- package/dist/compiler/emit/constants.d.ts.map +0 -1
- package/dist/compiler/emit/consts.d.ts +0 -6
- package/dist/compiler/emit/consts.d.ts.map +0 -1
- package/dist/compiler/emit/index.d.ts +0 -62
- package/dist/compiler/emit/index.d.ts.map +0 -1
- package/dist/compiler/emit/sourcemap.d.ts +0 -6
- package/dist/compiler/emit/sourcemap.d.ts.map +0 -1
- package/dist/compiler/emit-script.d.ts +0 -10
- package/dist/compiler/emit-script.d.ts.map +0 -1
- package/dist/compiler/generate-bytecode.d.ts +0 -12
- package/dist/compiler/generate-bytecode.d.ts.map +0 -1
- package/dist/compiler/index.d.ts +0 -14
- package/dist/compiler/index.d.ts.map +0 -1
- package/dist/compiler/load-module.d.ts +0 -2
- package/dist/compiler/load-module.d.ts.map +0 -1
- package/dist/compiler/types.d.ts +0 -16
- package/dist/compiler/types.d.ts.map +0 -1
- package/dist/compiler/worker-manager.d.ts +0 -11
- package/dist/compiler/worker-manager.d.ts.map +0 -1
- package/dist/compiler/worker.d.ts +0 -10
- package/dist/compiler/worker.d.ts.map +0 -1
- package/dist/compiler/worker.js +0 -31
- package/dist/compiler/worker.js.map +0 -6
- package/dist/helpers/analyze.d.ts +0 -8
- package/dist/helpers/analyze.d.ts.map +0 -1
- package/dist/helpers/constants.d.ts +0 -20
- package/dist/helpers/constants.d.ts.map +0 -1
- package/dist/helpers/convert/index.d.ts +0 -5
- package/dist/helpers/convert/index.d.ts.map +0 -1
- package/dist/helpers/convert/to-boolean.d.ts +0 -4
- package/dist/helpers/convert/to-boolean.d.ts.map +0 -1
- package/dist/helpers/convert/to-format.d.ts +0 -4
- package/dist/helpers/convert/to-format.d.ts.map +0 -1
- package/dist/helpers/convert/to-number.d.ts +0 -4
- package/dist/helpers/convert/to-number.d.ts.map +0 -1
- package/dist/helpers/convert/to-string.d.ts +0 -6
- package/dist/helpers/convert/to-string.d.ts.map +0 -1
- package/dist/helpers/error.d.ts +0 -11
- package/dist/helpers/error.d.ts.map +0 -1
- package/dist/helpers/serialize.d.ts +0 -63
- package/dist/helpers/serialize.d.ts.map +0 -1
- package/dist/helpers/types.d.ts +0 -54
- package/dist/helpers/types.d.ts.map +0 -1
- package/dist/helpers/utils.d.ts +0 -37
- package/dist/helpers/utils.d.ts.map +0 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -243
- package/dist/index.js.map +0 -6
- package/dist/subtle.d.ts +0 -14
- package/dist/subtle.d.ts.map +0 -1
- package/dist/subtle.js +0 -122
- package/dist/subtle.js.map +0 -6
- package/dist/vm/checkpoint.d.ts +0 -9
- package/dist/vm/checkpoint.d.ts.map +0 -1
- package/dist/vm/index.d.ts +0 -5
- package/dist/vm/index.d.ts.map +0 -1
- package/dist/vm/lib/global/bit.d.ts +0 -8
- package/dist/vm/lib/global/bit.d.ts.map +0 -1
- package/dist/vm/lib/global/debug.d.ts +0 -38
- package/dist/vm/lib/global/debug.d.ts.map +0 -1
- package/dist/vm/lib/global/index.d.ts +0 -9
- package/dist/vm/lib/global/index.d.ts.map +0 -1
- package/dist/vm/lib/global/json.d.ts +0 -3
- package/dist/vm/lib/global/json.d.ts.map +0 -1
- package/dist/vm/lib/global/math/arr.d.ts +0 -7
- package/dist/vm/lib/global/math/arr.d.ts.map +0 -1
- package/dist/vm/lib/global/math/const.d.ts +0 -31
- package/dist/vm/lib/global/math/const.d.ts.map +0 -1
- package/dist/vm/lib/global/math/gamma.d.ts +0 -3
- package/dist/vm/lib/global/math/gamma.d.ts.map +0 -1
- package/dist/vm/lib/global/math/index.d.ts +0 -9
- package/dist/vm/lib/global/math/index.d.ts.map +0 -1
- package/dist/vm/lib/global/math/round.d.ts +0 -6
- package/dist/vm/lib/global/math/round.d.ts.map +0 -1
- package/dist/vm/lib/global/math/unary.d.ts +0 -24
- package/dist/vm/lib/global/math/unary.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/all-any.d.ts +0 -3
- package/dist/vm/lib/global/sequence/all-any.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/entries.d.ts +0 -11
- package/dist/vm/lib/global/sequence/entries.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/find.d.ts +0 -9
- package/dist/vm/lib/global/sequence/find.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/flatten.d.ts +0 -2
- package/dist/vm/lib/global/sequence/flatten.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/index.d.ts +0 -14
- package/dist/vm/lib/global/sequence/index.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/len.d.ts +0 -2
- package/dist/vm/lib/global/sequence/len.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/map-filter.d.ts +0 -8
- package/dist/vm/lib/global/sequence/map-filter.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/new.d.ts +0 -4
- package/dist/vm/lib/global/sequence/new.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/repeat.d.ts +0 -3
- package/dist/vm/lib/global/sequence/repeat.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/reverse.d.ts +0 -2
- package/dist/vm/lib/global/sequence/reverse.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/sort.d.ts +0 -4
- package/dist/vm/lib/global/sequence/sort.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/unique.d.ts +0 -4
- package/dist/vm/lib/global/sequence/unique.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/with.d.ts +0 -4
- package/dist/vm/lib/global/sequence/with.d.ts.map +0 -1
- package/dist/vm/lib/global/sequence/zip.d.ts +0 -3
- package/dist/vm/lib/global/sequence/zip.d.ts.map +0 -1
- package/dist/vm/lib/global/string/case.d.ts +0 -3
- package/dist/vm/lib/global/string/case.d.ts.map +0 -1
- package/dist/vm/lib/global/string/index.d.ts +0 -8
- package/dist/vm/lib/global/string/index.d.ts.map +0 -1
- package/dist/vm/lib/global/string/search.d.ts +0 -4
- package/dist/vm/lib/global/string/search.d.ts.map +0 -1
- package/dist/vm/lib/global/string/trim.d.ts +0 -4
- package/dist/vm/lib/global/string/trim.d.ts.map +0 -1
- package/dist/vm/lib/global/time.d.ts +0 -4
- package/dist/vm/lib/global/time.d.ts.map +0 -1
- package/dist/vm/lib/global/to-primitive.d.ts +0 -4
- package/dist/vm/lib/global/to-primitive.d.ts.map +0 -1
- package/dist/vm/lib/helpers.d.ts +0 -57
- package/dist/vm/lib/helpers.d.ts.map +0 -1
- package/dist/vm/lib/index.d.ts +0 -4
- package/dist/vm/lib/index.d.ts.map +0 -1
- package/dist/vm/lib/loader.d.ts +0 -23
- package/dist/vm/lib/loader.d.ts.map +0 -1
- package/dist/vm/lib/mod/index.d.ts +0 -2
- package/dist/vm/lib/mod/index.d.ts.map +0 -1
- package/dist/vm/lib/mod/matrix.d.ts +0 -15
- package/dist/vm/lib/mod/matrix.d.ts.map +0 -1
- package/dist/vm/operations/call.d.ts +0 -9
- package/dist/vm/operations/call.d.ts.map +0 -1
- package/dist/vm/operations/common.d.ts +0 -4
- package/dist/vm/operations/common.d.ts.map +0 -1
- package/dist/vm/operations/compound.d.ts +0 -22
- package/dist/vm/operations/compound.d.ts.map +0 -1
- package/dist/vm/operations/convert.d.ts +0 -10
- package/dist/vm/operations/convert.d.ts.map +0 -1
- package/dist/vm/operations/cp.d.ts +0 -2
- package/dist/vm/operations/cp.d.ts.map +0 -1
- package/dist/vm/operations/helpers.d.ts +0 -24
- package/dist/vm/operations/helpers.d.ts.map +0 -1
- package/dist/vm/operations/index.d.ts +0 -10
- package/dist/vm/operations/index.d.ts.map +0 -1
- package/dist/vm/operations/operator.d.ts +0 -46
- package/dist/vm/operations/operator.d.ts.map +0 -1
- package/dist/vm/operations/slice.d.ts +0 -6
- package/dist/vm/operations/slice.d.ts.map +0 -1
- package/dist/vm/operations/type-check.d.ts +0 -16
- package/dist/vm/operations/type-check.d.ts.map +0 -1
- package/dist/vm/operations/utils.d.ts +0 -11
- package/dist/vm/operations/utils.d.ts.map +0 -1
- package/dist/vm/types/boundary.d.ts +0 -13
- package/dist/vm/types/boundary.d.ts.map +0 -1
- package/dist/vm/types/context.d.ts +0 -33
- package/dist/vm/types/context.d.ts.map +0 -1
- package/dist/vm/types/extern.d.ts +0 -44
- package/dist/vm/types/extern.d.ts.map +0 -1
- package/dist/vm/types/function.d.ts +0 -50
- package/dist/vm/types/function.d.ts.map +0 -1
- package/dist/vm/types/index.d.ts +0 -58
- package/dist/vm/types/index.d.ts.map +0 -1
- package/dist/vm/types/module.d.ts +0 -25
- package/dist/vm/types/module.d.ts.map +0 -1
- package/dist/vm/types/wrapper.d.ts +0 -25
- package/dist/vm/types/wrapper.d.ts.map +0 -1
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { VmAny } from '../../types/index.js';
|
|
2
|
-
/** 序列化格式 */
|
|
3
|
-
type SerializeFormat =
|
|
4
|
-
/** 表示未指定格式 */
|
|
5
|
-
''
|
|
6
|
-
/** 以 `%` 开头的格式占位符 */
|
|
7
|
-
| `%${string}`;
|
|
8
|
-
/** 格式化结果 */
|
|
9
|
-
interface FormatResult {
|
|
10
|
-
/** 模板字符串数组 */
|
|
11
|
-
templates: readonly string[];
|
|
12
|
-
/** 值数组,长度为 {@link templates}.length - 1 */
|
|
13
|
-
values: readonly VmAny[];
|
|
14
|
-
/** 格式化字符串数组,与 {@link values} 一一对应 */
|
|
15
|
-
formats: readonly SerializeFormat[];
|
|
16
|
-
}
|
|
17
|
-
/** 打印输出选项 */
|
|
18
|
-
type PrintOptions = {
|
|
19
|
-
/** 输出时的固定前缀 */
|
|
20
|
-
prefix: readonly [prefix?: string, ...additional: readonly string[]];
|
|
21
|
-
/**
|
|
22
|
-
* 序列化函数
|
|
23
|
-
* @param arg 要序列化的值
|
|
24
|
-
* @param format 序列化格式
|
|
25
|
-
* @returns 序列化后的字符串,或 null 表示直接将原值传递给 {@link printer}
|
|
26
|
-
*/
|
|
27
|
-
serializer: (this: PrintOptions, arg: VmAny, format: SerializeFormat) => string | null | PromiseLike<string>;
|
|
28
|
-
/** 解析函数,解析输入并使用 {@link serializer} 序列化值,供 {@link formatter} 使用 */
|
|
29
|
-
parser: (this: PrintOptions, args: readonly VmAny[]) => FormatResult;
|
|
30
|
-
/** 格式化函数,进一步处理解析结果,供 {@link logger} 使用 */
|
|
31
|
-
formatter: (this: PrintOptions, format: FormatResult) => unknown[] | PromiseLike<unknown[]>;
|
|
32
|
-
/** 打印函数,打印格式化结果 */
|
|
33
|
-
logger: (this: PrintOptions, ...args: unknown[]) => void;
|
|
34
|
-
};
|
|
35
|
-
export declare const debug_print: ((...args: readonly (import("../../types/index.js").VmValue | undefined)[]) => undefined) & import("../helpers.js").VmLibOption & PrintOptions;
|
|
36
|
-
export declare const panic: ((message: VmAny) => never) & import("../helpers.js").VmLibOption & PrintOptions;
|
|
37
|
-
export {};
|
|
38
|
-
//# sourceMappingURL=debug.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/debug.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,YAAY;AACZ,KAAK,eAAe;AAChB,cAAc;AACZ,EAAE;AACJ,qBAAqB;GACnB,IAAI,MAAM,EAAE,CAAC;AAOnB,YAAY;AACZ,UAAU,YAAY;IAClB,cAAc;IACd,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,2CAA2C;IAC3C,MAAM,EAAE,SAAS,KAAK,EAAE,CAAC;IACzB,qCAAqC;IACrC,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;CACvC;AAiJD,aAAa;AACb,KAAK,YAAY,GAAG;IAChB,eAAe;IACf,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;IACrE;;;;;OAKG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,KAAK,MAAM,GAAG,IAAI,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7G,kEAAkE;IAClE,MAAM,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,KAAK,EAAE,KAAK,YAAY,CAAC;IACrE,0CAA0C;IAC1C,SAAS,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,KAAK,OAAO,EAAE,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IAC5F,mBAAmB;IACnB,MAAM,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CAC5D,CAAC;AAQF,eAAO,MAAM,WAAW,gJAavB,CAAC;AAEF,eAAO,MAAM,KAAK,aACJ,KAAK,gEAelB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './math/index.js';
|
|
2
|
-
export * from './bit.js';
|
|
3
|
-
export * from './sequence/index.js';
|
|
4
|
-
export * from './debug.js';
|
|
5
|
-
export * from './json.js';
|
|
6
|
-
export * from './to-primitive.js';
|
|
7
|
-
export * from './string/index.js';
|
|
8
|
-
export * from './time.js';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const to_json: ((data: import("../../types/index.js").VmValue | undefined) => string | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const from_json: ((json: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => string | number | boolean | import("../../types/index.js").VmRecord | import("../../types/index.js").VmArray | import("../../types/function.js").VmFunction | import("../../types/module.js").VmModule<Record<string, import("../../types/index.js").VmImmutable>> | import("../../types/extern.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/json.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,4IAoBnB,CAAC;AAEF,eAAO,MAAM,SAAS,yfAiBrB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { VmAny } from '../../../types/index.js';
|
|
2
|
-
export declare const max: ((...values: readonly VmAny[]) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const min: ((...values: readonly VmAny[]) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
export declare const hypot: ((...values: readonly VmAny[]) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
-
export declare const sum: ((...values: readonly VmAny[]) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
-
export declare const product: ((...values: readonly VmAny[]) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
-
//# sourceMappingURL=arr.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arr.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/arr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAWrD,eAAO,MAAM,GAAG,eAPyD,SAAS,KAAK,EAAE,KAAK,MAAM,iEAalG,CAAC;AAEH,eAAO,MAAM,GAAG,eAfyD,SAAS,KAAK,EAAE,KAAK,MAAM,iEAqBlG,CAAC;AAEH,eAAO,MAAM,KAAK,eAvBuD,SAAS,KAAK,EAAE,KAAK,MAAM,iEA6BlG,CAAC;AAEH,eAAO,MAAM,GAAG,eACA,SAAS,KAAK,EAAE,4EAW/B,CAAC;AAEF,eAAO,MAAM,OAAO,eACJ,SAAS,KAAK,EAAE,4EAW/B,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const PI: {
|
|
2
|
-
value: number;
|
|
3
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
export declare const E: {
|
|
5
|
-
value: number;
|
|
6
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
-
export declare const pi: {
|
|
8
|
-
value: number;
|
|
9
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
10
|
-
export declare const e: {
|
|
11
|
-
value: number;
|
|
12
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
13
|
-
export declare const SQRT1_2: {
|
|
14
|
-
value: number;
|
|
15
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
16
|
-
export declare const SQRT2: {
|
|
17
|
-
value: number;
|
|
18
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
19
|
-
export declare const LN2: {
|
|
20
|
-
value: number;
|
|
21
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
22
|
-
export declare const LN10: {
|
|
23
|
-
value: number;
|
|
24
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
25
|
-
export declare const LOG2E: {
|
|
26
|
-
value: number;
|
|
27
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
28
|
-
export declare const LOG10E: {
|
|
29
|
-
value: number;
|
|
30
|
-
} & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
31
|
-
//# sourceMappingURL=const.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/const.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,EAAE;;iEAGb,CAAC;AACH,eAAO,MAAM,CAAC;;iEAGZ,CAAC;AACH,eAAO,MAAM,EAAE;;iEAOb,CAAC;AACH,eAAO,MAAM,CAAC;;iEAOZ,CAAC;AACH,eAAO,MAAM,OAAO;;iEAGlB,CAAC;AACH,eAAO,MAAM,KAAK;;iEAGhB,CAAC;AACH,eAAO,MAAM,GAAG;;iEAGd,CAAC;AACH,eAAO,MAAM,IAAI;;iEAGf,CAAC;AACH,eAAO,MAAM,KAAK;;iEAGhB,CAAC;AACH,eAAO,MAAM,MAAM;;iEAGjB,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const gamma: ((x: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const factorial: ((x: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
//# sourceMappingURL=gamma.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gamma.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/gamma.ts"],"names":[],"mappings":"AA2MA,eAAO,MAAM,KAAK,kIAYjB,CAAC;AAgBF,eAAO,MAAM,SAAS,2DACb,MAAM,iEAYd,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const atan2: ((x: import("../../../index.js").VmValue | undefined, y: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const pow: ((x: import("../../../index.js").VmValue | undefined, y: import("../../../index.js").VmValue | undefined) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const random: (() => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
export * from './arr.js';
|
|
5
|
-
export * from './const.js';
|
|
6
|
-
export * from './unary.js';
|
|
7
|
-
export * from './round.js';
|
|
8
|
-
export { gamma, factorial } from './gamma.js';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,sLAKhB,CAAC;AACH,eAAO,MAAM,GAAG,sLAKd,CAAC;AACH,eAAO,MAAM,MAAM,gFAKjB,CAAC;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { VmAny } from '../../../index.js';
|
|
2
|
-
export declare const trunc: ((x: VmAny, n: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const floor: ((x: VmAny, n: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
export declare const ceil: ((x: VmAny, n: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
-
export declare const round: ((x: VmAny, n: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
-
//# sourceMappingURL=round.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"round.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/round.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAc/C,eAAO,MAAM,KAAK,OAV4B,KAAK,KAAK,KAAK,KAAK,MAAM,iEAetE,CAAC;AACH,eAAO,MAAM,KAAK,OAhB4B,KAAK,KAAK,KAAK,KAAK,MAAM,iEAqBtE,CAAC;AACH,eAAO,MAAM,IAAI,OAtB6B,KAAK,KAAK,KAAK,KAAK,MAAM,iEA2BtE,CAAC;AAGH,eAAO,MAAM,KAAK,OA9B4B,KAAK,KAAK,KAAK,KAAK,MAAM,iEA8CvE,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { VmAny } from '../../../index.js';
|
|
2
|
-
export declare const sign: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const abs: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
export declare const acos: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
-
export declare const acosh: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
-
export declare const asin: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
-
export declare const asinh: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
8
|
-
export declare const atan: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
9
|
-
export declare const atanh: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
10
|
-
export declare const cos: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
11
|
-
export declare const cosh: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
12
|
-
export declare const sin: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
13
|
-
export declare const sinh: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
14
|
-
export declare const tan: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
15
|
-
export declare const tanh: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
16
|
-
export declare const exp: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
17
|
-
export declare const expm1: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
18
|
-
export declare const log: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
19
|
-
export declare const log10: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
20
|
-
export declare const log1p: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
21
|
-
export declare const log2: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
22
|
-
export declare const sqrt: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
23
|
-
export declare const cbrt: ((x: VmAny) => number) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
24
|
-
//# sourceMappingURL=unary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unary.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/math/unary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAU/C,eAAO,MA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M,IAAI,OA1H6B,KAAK,KAAK,MAAM,iEA+H5D,CAAC;AAEH,eAAO,MAAM,IAAI,OAjI6B,KAAK,KAAK,MAAM,iEAsI5D,CAAC;AACH,eAAO,MAAM,IAAI,OAvI6B,KAAK,KAAK,MAAM,iEA4I5D,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const all: ((data: import("../../../types/index.js").VmValue | undefined, predicate: import("../../../types/index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const any: ((data: import("../../../types/index.js").VmValue | undefined, predicate: import("../../../types/index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
//# sourceMappingURL=all-any.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"all-any.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/all-any.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,GAAG,8MAkCf,CAAC;AAEF,eAAO,MAAM,GAAG,8MAkCf,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const keys: ((data: import("../../../types/index.js").VmValue | undefined) => string[] | number[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const values: ((data: import("../../../types/index.js").VmValue | undefined) => import("../../../types/index.js").VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
export declare const entries: ((data: import("../../../types/index.js").VmValue | undefined) => {
|
|
5
|
-
0: number;
|
|
6
|
-
1: VmConst;
|
|
7
|
-
}[] | {
|
|
8
|
-
0: string;
|
|
9
|
-
1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
|
|
10
|
-
}[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
11
|
-
//# sourceMappingURL=entries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/entries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAI9E,eAAO,MAAM,IAAI,wJAuBhB,CAAC;AAEF,eAAO,MAAM,MAAM,8KAelB,CAAC;AAEF,eAAO,MAAM,OAAO;OAIc,MAAM;OAAK,OAAO;;;;oEAgBnD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type VmValue } from '../../../types/index.js';
|
|
2
|
-
export declare const find: ((data: VmValue | undefined, predicate: VmValue | undefined) => {
|
|
3
|
-
0: number;
|
|
4
|
-
1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
|
|
5
|
-
} | {
|
|
6
|
-
0: string;
|
|
7
|
-
1: string | number | boolean | import("../../../types/index.js").VmRecord | import("../../../types/index.js").VmArray | null;
|
|
8
|
-
} | null) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
9
|
-
//# sourceMappingURL=find.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/find.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAA2B,MAAM,yBAAyB,CAAC;AAGhF,eAAO,MAAM,IAAI;;;;;;yEA4ChB,CAAC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const flatten: ((data: import("../../../index.js").VmValue | undefined, depth?: import("../../../index.js").VmValue | undefined) => (string | number | boolean | import("../../../index.js").VmRecord | import("../../../index.js").VmArray | null | undefined)[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
//# sourceMappingURL=flatten.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/flatten.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,qTAYnB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './with.js';
|
|
2
|
-
export * from './entries.js';
|
|
3
|
-
export * from './len.js';
|
|
4
|
-
export * from './map-filter.js';
|
|
5
|
-
export * from './find.js';
|
|
6
|
-
export * from './flatten.js';
|
|
7
|
-
export * from './reverse.js';
|
|
8
|
-
export * from './zip.js';
|
|
9
|
-
export * from './all-any.js';
|
|
10
|
-
export * from './sort.js';
|
|
11
|
-
export * from './unique.js';
|
|
12
|
-
export * from './repeat.js';
|
|
13
|
-
export * from './new.js';
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"len.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/len.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG,0IAkBf,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type VmValue } from '../../../types/index.js';
|
|
2
|
-
export * from './with.js';
|
|
3
|
-
export * from './entries.js';
|
|
4
|
-
export * from './len.js';
|
|
5
|
-
export declare const map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
-
export declare const filter: ((data: VmValue | undefined, predicate: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
-
export declare const filter_map: ((data: VmValue | undefined, f: VmValue | undefined) => VmValue) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
8
|
-
//# sourceMappingURL=map-filter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"map-filter.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/map-filter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAG9E,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AAkBzB,eAAO,MAAM,GAAG,kIAef,CAAC;AAEF,eAAO,MAAM,MAAM,0IAmBlB,CAAC;AAEF,eAAO,MAAM,UAAU,kIAmBtB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { VmArray, VmRecord } from '../../../types/index.js';
|
|
2
|
-
export declare const new_record: ((size: import("../../../types/index.js").VmValue | undefined, generator: import("../../../types/index.js").VmValue | undefined) => VmRecord) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const new_array: ((length: import("../../../types/index.js").VmValue | undefined, generator: import("../../../types/index.js").VmValue | undefined) => VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
//# sourceMappingURL=new.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/new.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAW,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAO1E,eAAO,MAAM,UAAU,sIACA,QAAQ,iEAoB9B,CAAC;AAEF,eAAO,MAAM,SAAS,wIACG,OAAO,iEAgB/B,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const repeat: ((data: import("../../../types/index.js").VmValue | undefined, times: import("../../../types/index.js").VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
//# sourceMappingURL=repeat.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/repeat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,MAAM,4MAsBlB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reverse.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/reverse.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,iLAcnB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { VmConst, VmValue } from '../../../types/index.js';
|
|
2
|
-
export declare const sort: ((data: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const sort_by: ((data: VmValue | undefined, key: VmValue | undefined, comparator: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
//# sourceMappingURL=sort.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/sort.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AA+BvE,eAAO,MAAM,IAAI,6IAwBhB,CAAC;AAEF,eAAO,MAAM,OAAO,uKAgCnB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { VmConst, VmValue } from '../../../types/index.js';
|
|
2
|
-
export declare const unique: ((data: VmValue | undefined, equal: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const unique_by: ((data: VmValue | undefined, key: VmValue | undefined, equal: VmValue | undefined) => VmConst[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
//# sourceMappingURL=unique.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/unique.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAS,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAkBvE,eAAO,MAAM,MAAM,wIA8BlB,CAAC;AAEF,eAAO,MAAM,SAAS,kKAyCrB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { VmArray, VmValue } from '../../../types/index.js';
|
|
2
|
-
declare const _with: ((data: VmValue | undefined, ...entries: (VmValue | undefined)[]) => import("../../../types/index.js").VmRecord | VmArray) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export { _with as 'with' };
|
|
4
|
-
//# sourceMappingURL=with.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"with.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/with.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAW,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAuEzE,QAAA,MAAM,KAAK,4LA4DV,CAAC;AACF,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type VmConst } from '../../../types/index.js';
|
|
2
|
-
export declare const zip: ((data: import("../../../types/index.js").VmValue | undefined) => Record<string | number, VmConst>[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
//# sourceMappingURL=zip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/sequence/zip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,OAAO,EAAgB,MAAM,yBAAyB,CAAC;AAIhF,eAAO,MAAM,GAAG,uKAiCf,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const to_uppercase: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const to_lowercase: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
//# sourceMappingURL=case.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"case.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/case.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,oIAWxB,CAAC;AAEF,eAAO,MAAM,YAAY,oIAWxB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './trim.js';
|
|
2
|
-
export * from './case.js';
|
|
3
|
-
export * from './search.js';
|
|
4
|
-
export declare const chars: ((str: import("../../../index.js").VmValue | undefined) => string[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
-
export declare const replace: ((str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined, replacement?: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
-
export declare const split: ((str: import("../../../index.js").VmValue | undefined, separator?: import("../../../index.js").VmValue | undefined) => string[]) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
-
export declare const join: ((arr: import("../../../index.js").VmValue | undefined, separator?: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAE5B,eAAO,MAAM,KAAK,sIAWjB,CAAC;AAEF,eAAO,MAAM,OAAO,4PAcnB,CAAC;AAEF,eAAO,MAAM,KAAK,mMAcjB,CAAC;AAEF,eAAO,MAAM,IAAI,iMAahB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const starts_with: ((str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const ends_with: ((str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const contains: ((str: import("../../../index.js").VmValue | undefined, search: import("../../../index.js").VmValue | undefined) => boolean) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/search.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,8LAWvB,CAAC;AACF,eAAO,MAAM,SAAS,8LAWrB,CAAC;AAEF,eAAO,MAAM,QAAQ,8LAWpB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const trim_start: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const trim_end: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const trim: ((str: import("../../../index.js").VmValue | undefined) => string) & import("../../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
//# sourceMappingURL=trim.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trim.d.ts","sourceRoot":"","sources":["../../../../../src/vm/lib/global/string/trim.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,oIAWtB,CAAC;AAEF,eAAO,MAAM,QAAQ,oIAWpB,CAAC;AAEF,eAAO,MAAM,IAAI,oIAWhB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const to_timestamp: ((datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const to_datetime: ((datetime: import("../../types/index.js").VmValue | undefined, offset: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const to_iso8601: ((datetime: import("../../types/index.js").VmValue | undefined, fallback: import("../../types/index.js").VmValue | undefined) => import("../../types/index.js").VmValue | undefined) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
//# sourceMappingURL=time.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/time.ts"],"names":[],"mappings":"AAkCA,eAAO,MAAM,YAAY,mPAgBxB,CAAC;AAEF,eAAO,MAAM,WAAW,+SAuCvB,CAAC;AAEF,eAAO,MAAM,UAAU,mPAgBtB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const to_string: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
2
|
-
export declare const to_number: ((data: import("../../index.js").VmValue | undefined, fallback: import("../../index.js").VmValue | undefined) => string | number | boolean | import("../../index.js").VmRecord | import("../../index.js").VmArray | import("../../index.js").VmFunction | import("../../index.js").VmModule<Record<string, import("../../index.js").VmImmutable>> | import("../../index.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const format: ((data: import("../../index.js").VmValue | undefined, format: import("../../index.js").VmValue | undefined) => string) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
//# sourceMappingURL=to-primitive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to-primitive.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/global/to-primitive.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS,ocAerB,CAAC;AAEF,eAAO,MAAM,SAAS,ocAerB,CAAC;AAuBF,eAAO,MAAM,MAAM,qLAYlB,CAAC"}
|
package/dist/vm/lib/helpers.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { VmExtern, VmFunction, VmAny, VmArray, VmValue, VmRecord, VmModule, VmConst, VmFunctionLike, VmFunctionOption } from '../types/index.js';
|
|
2
|
-
/** 抛出异常 */
|
|
3
|
-
export declare function throwError(message: string, recovered: VmAny | (() => VmAny)): never;
|
|
4
|
-
/** 描述参数 */
|
|
5
|
-
type ParamIndex = number | string | null;
|
|
6
|
-
/** 描述参数 */
|
|
7
|
-
export declare function describeParam(name: ParamIndex): string;
|
|
8
|
-
/** 抛出预期外类型异常 */
|
|
9
|
-
export declare function throwUnexpectedTypeError(name: ParamIndex, expected: string, value: VmAny, recovered: VmAny | (() => VmAny)): never;
|
|
10
|
-
/** 抛出预期外类型异常 */
|
|
11
|
-
export declare function throwUnconvertedTypeError(name: ParamIndex, expected: string, value: VmAny, recovered: VmAny | (() => VmAny)): never;
|
|
12
|
-
/** 重新抛出异常 */
|
|
13
|
-
export declare function rethrowError(prefix: string, error: unknown, recovered: VmAny | (() => VmAny)): never;
|
|
14
|
-
/** 标记参数为必须项 */
|
|
15
|
-
export declare function required<const T = VmValue>(name: ParamIndex, value: T | undefined, recovered: VmAny | (() => VmAny)): asserts value is T;
|
|
16
|
-
/** 标记并转换参数为数字 */
|
|
17
|
-
export declare function expectNumber(name: ParamIndex, value: VmAny): number;
|
|
18
|
-
/** 标记并转换参数为数字 */
|
|
19
|
-
export declare function expectNumberRange(name: ParamIndex, value: VmAny, min: number, max: number): number;
|
|
20
|
-
/** 标记并转换参数为整数 */
|
|
21
|
-
export declare function expectIntegerRange(name: ParamIndex, value: VmAny, min: number, max: number): number;
|
|
22
|
-
/** 标记并转换参数为整数 */
|
|
23
|
-
export declare function expectInteger(name: ParamIndex, value: VmAny): number;
|
|
24
|
-
/** 标记并转换参数为布尔值 */
|
|
25
|
-
export declare function expectBoolean(name: ParamIndex, value: VmAny): boolean;
|
|
26
|
-
/** 标记并转换参数为字符串 */
|
|
27
|
-
export declare function expectString(name: ParamIndex, value: VmAny): string;
|
|
28
|
-
/** 标记参数为数组 */
|
|
29
|
-
export declare function expectArray(name: ParamIndex, value: VmAny, recovered: VmAny | (() => VmAny)): asserts value is VmArray;
|
|
30
|
-
/** 标记参数为记录 */
|
|
31
|
-
export declare function expectRecord(name: ParamIndex, value: VmAny, recovered: VmAny | (() => VmAny)): asserts value is VmRecord;
|
|
32
|
-
/** 标记参数为数组或记录 */
|
|
33
|
-
export declare function expectArrayOrRecord(name: ParamIndex, value: VmAny, recovered: VmAny | (() => VmAny)): asserts value is VmArray | VmRecord;
|
|
34
|
-
/** 标记参数为复合类型 */
|
|
35
|
-
export declare function expectCompound(name: ParamIndex, value: VmAny, recovered: VmAny | (() => VmAny)): asserts value is VmArray | VmRecord | VmModule | VmExtern;
|
|
36
|
-
/** 标记参数为常量 */
|
|
37
|
-
export declare function expectConst(name: ParamIndex, value: VmAny, recovered: VmAny | (() => VmAny)): asserts value is VmConst;
|
|
38
|
-
/** 标记为可调用 */
|
|
39
|
-
export declare function expectCallable(name: ParamIndex, value: VmAny, recovered: VmAny | (() => VmAny)): asserts value is VmFunction | VmExtern;
|
|
40
|
-
/** Get numbers from the arguments. */
|
|
41
|
-
export declare function getNumbers(args: readonly VmAny[]): number[];
|
|
42
|
-
/** 将值转为数组长度 */
|
|
43
|
-
export declare function arrayLen(len: number | null | undefined): number;
|
|
44
|
-
/** 应用映射函数 */
|
|
45
|
-
export declare function map(data: VmConst,
|
|
46
|
-
/** 返回 `undefined` 表示跳过该元素 */
|
|
47
|
-
mapper: (value: VmConst, index: number | string | null, data: VmConst) => VmConst | undefined): VmConst;
|
|
48
|
-
/** 库函数选项 */
|
|
49
|
-
export type VmLibOption = Pick<VmFunctionOption, 'summary' | 'params' | 'paramsType' | 'returns' | 'returnsType' | 'examples' | 'deprecated'>;
|
|
50
|
-
/** 库函数 */
|
|
51
|
-
export type VmLib<T extends VmFunctionLike | VmConst = VmFunctionLike> = (T extends VmFunctionLike ? T : {
|
|
52
|
-
value: T;
|
|
53
|
-
}) & VmLibOption;
|
|
54
|
-
/** 创建库函数 */
|
|
55
|
-
export declare function VmLib<const T extends VmFunctionLike | VmConst, P extends Record<string, unknown> = Record<never, never>>(value: T, option: VmLibOption, properties?: P): VmLib<T> & P;
|
|
56
|
-
export {};
|
|
57
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/vm/lib/helpers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,QAAQ,EACR,UAAU,EACV,KAAK,EACL,OAAO,EACP,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,cAAc,EACd,gBAAgB,EACnB,MAAM,mBAAmB,CAA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c,GAAG,OAAO,EACxC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,EAC1D,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAgB7D"}
|
package/dist/vm/lib/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vm/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAkBvC,eAAO,MAAM,GAAG,EAAE,QAAQ,CAAC,OAAO,MAAM,GAAG,OAAO,IAAI,CAA4D,CAAC"}
|
package/dist/vm/lib/loader.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VmFunction, VmModule, type VmConst, type VmFunctionLike, type VmImmutable } from '../types/index.js';
|
|
2
|
-
import type { VmLib } from './helpers.js';
|
|
3
|
-
/** 内置模块 */
|
|
4
|
-
declare class VmBuiltinModule<const T extends Record<string, VmImmutable> = Record<string, VmImmutable>> extends VmModule<T> {
|
|
5
|
-
readonly descriptions: Record<keyof T, string | undefined>;
|
|
6
|
-
constructor(name: string, value: T, descriptions: Record<keyof T, string | undefined>);
|
|
7
|
-
/** @inheritdoc */
|
|
8
|
-
describe(key: string): string | undefined;
|
|
9
|
-
}
|
|
10
|
-
/** 原始值 */
|
|
11
|
-
export type RawValue = VmLib<VmFunctionLike | VmConst> | VmBuiltinModule;
|
|
12
|
-
/** 包装值 */
|
|
13
|
-
type ToWrappedValue<V extends RawValue> = V extends VmLib<infer C> ? (C extends VmFunctionLike ? VmFunction<C> : C) : V;
|
|
14
|
-
/** 包装值 */
|
|
15
|
-
export declare function wrapEntry<const T extends RawValue>(name: string, value: T, module: string): [value: ToWrappedValue<T>, description: string | undefined];
|
|
16
|
-
/** 创建模块 */
|
|
17
|
-
export type ToWrappedModule<T extends Record<string, RawValue>> = VmBuiltinModule<{
|
|
18
|
-
[key in keyof T]: ToWrappedValue<T[key]>;
|
|
19
|
-
}>;
|
|
20
|
-
/** 创建模块 */
|
|
21
|
-
export declare function createModule<const T extends Record<string, RawValue>>(name: string, lib: T): ToWrappedModule<T>;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/vm/lib/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,UAAU,EACV,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,WAAW,EACnB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,WAAW;AACX,cAAM,eAAe,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAE,SAAQ,QAAQ,CAAC,CAAC,CAAC;IAI5G,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAF1D,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,EACC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAI9D,kBAAkB;IACT,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAGrD;AAED,UAAU;AACV,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,eAAe,CAAC;AACzE,UAAU;AACV,KAAK,cAAc,CAAC,CAAC,SAAS,QAAQ,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,cAAc,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AACxH,UAAU;AACV,wBAAgB,SAAS,CAAC,KAAK,CAAC,CAAC,SAAS,QAAQ,EAC9C,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,MAAM,GACf,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC,CAgB7D;AAED,WAAW;AACX,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,eAAe,CAAC;KAC7E,GAAG,IAAI,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CAC3C,CAAC,CAAC;AAEH,WAAW;AACX,wBAAgB,YAAY,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAS/G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/mod/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type VmArray, type VmConst, type VmValue } from '../../types/index.js';
|
|
2
|
-
export declare const size: ((matrix: VmValue | undefined) => [] | [number, number] | [number]) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
3
|
-
export declare const transpose: ((matrix: VmValue | undefined) => string | number | boolean | import("../../types/index.js").VmRecord | VmArray | import("../../types/function.js").VmFunction | import("../../types/module.js").VmModule<Record<string, import("../../types/index.js").VmImmutable>> | import("../../types/extern.js").VmExtern<object> | null) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
4
|
-
export declare const entrywise: ((a: VmValue | undefined, b: VmValue | undefined, f: VmValue | undefined) => VmConst) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
5
|
-
export declare const add: ((a: VmValue | undefined, b: VmValue | undefined) => VmConst) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
6
|
-
export declare const subtract: ((a: VmValue | undefined, b: VmValue | undefined) => VmConst) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
7
|
-
export declare const entrywise_multiply: ((a: VmValue | undefined, b: VmValue | undefined) => VmConst) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
8
|
-
export declare const entrywise_divide: ((a: VmValue | undefined, b: VmValue | undefined) => VmConst) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
9
|
-
export declare const multiply: ((a: VmValue | undefined, b: VmValue | undefined) => VmConst) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
10
|
-
export declare const invert: ((a: VmValue | undefined) => VmConst) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
11
|
-
export declare const zeros: ((...size: readonly (VmValue | undefined)[]) => VmArray) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
12
|
-
export declare const ones: ((...size: readonly (VmValue | undefined)[]) => VmArray) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
13
|
-
export declare const identity: ((...size: readonly (VmValue | undefined)[]) => number[][]) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
14
|
-
export declare const diagonal: ((x: VmValue | undefined, k?: VmValue | undefined) => VmConst[]) & import("../helpers.js").VmLibOption & Record<never, never>;
|
|
15
|
-
//# sourceMappingURL=matrix.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../../src/vm/lib/mod/matrix.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoC,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAsClH,eAAO,MAAM,IAAI,kIAYhB,CAAC;AAEF,eAAO,MAAM,SAAS,+XA0BrB,CAAC;AA8HF,eAAO,MAAM,SAAS,oJAmBrB,CAAC;AAEF,eAAO,MAAM,GAAG,4HAaf,CAAC;AAEF,eAAO,MAAM,QAAQ,4HAapB,CAAC;AAEF,eAAO,MAAM,kBAAkB,4HAa9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,4HAa5B,CAAC;AAEF,eAAO,MAAM,QAAQ,4HAiEpB,CAAC;AAEF,eAAO,MAAM,MAAM,oGAsHlB,CAAC;AAkBF,eAAO,MAAM,KAAK,uHAMhB,CAAC;AAEH,eAAO,MAAM,IAAI,uHAMf,CAAC;AAEH,eAAO,MAAM,QAAQ,0HA0BpB,CAAC;AAEF,eAAO,MAAM,QAAQ,+HA4CpB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { VmExtern, VmFunction, VmAny, VmArray, VmValue } from '../types/index.js';
|
|
2
|
-
/** 调用返回类型 */
|
|
3
|
-
type CallReturn<T extends VmValue> = T extends VmFunction<infer F> ? F extends (...args: readonly VmAny[]) => infer R ? R extends void | undefined ? null : R : VmValue : T extends VmExtern<infer E> ? E extends (...args: readonly VmAny[]) => infer R ? R extends void | undefined ? null : R extends VmValue ? R : R extends object ? VmExtern<R> : VmValue : VmValue : VmValue;
|
|
4
|
-
/** 调用函数 */
|
|
5
|
-
export declare function $Call<T extends VmValue, A extends readonly VmValue[]>(func: T, args: A): CallReturn<T>;
|
|
6
|
-
/** 过滤剩余参数数组 */
|
|
7
|
-
export declare function $VArgs(varags: VmAny[]): VmArray;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=call.d.ts.map
|