@moss-dev/moss-wasm 0.10.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/moss_wasm.d.ts +70 -8
- package/moss_wasm.js +536 -137
- package/moss_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/moss_wasm.d.ts
CHANGED
|
@@ -8,10 +8,16 @@ export class IndexManager {
|
|
|
8
8
|
hasIndex(index_name: string): Promise<any>;
|
|
9
9
|
loadIndex(index_name: string): Promise<any>;
|
|
10
10
|
constructor(project_id: string, project_key: string);
|
|
11
|
-
query(index_name: string, query_text: string, query_embedding: Float32Array, top_k: number | null | undefined, alpha: number | null | undefined, filter: any): Promise<any>;
|
|
11
|
+
query(index_name: string, query_text: string, query_embedding: Float32Array, top_k: number | null | undefined, alpha: number | null | undefined, filter: any, tuning: any): Promise<any>;
|
|
12
|
+
queryMultiIndex(index_names: string[], query_text: string, query_embedding: Float32Array, top_k: number | null | undefined, alpha: number | null | undefined, filter: any, tuning: any): Promise<any>;
|
|
13
|
+
queryMultiIndexWithModelIdentity(index_names: string[], query_text: string, query_embedding: Float32Array, model_id: string, model_artifact_version: string, manifest_sha256: string, top_k: number | null | undefined, alpha: number | null | undefined, filter: any, tuning: any): Promise<any>;
|
|
14
|
+
queryWithModelIdentity(index_name: string, query_text: string, query_embedding: Float32Array, model_id: string, model_artifact_version: string, manifest_sha256: string, top_k: number | null | undefined, alpha: number | null | undefined, filter: any, tuning: any): Promise<any>;
|
|
12
15
|
refreshIndex(index_name: string): Promise<any>;
|
|
13
16
|
unloadIndex(index_name: string): Promise<any>;
|
|
17
|
+
unloadIndexes(index_names: string[]): Promise<any>;
|
|
18
|
+
static withAuthenticator(project_id: string, get_auth_header: Function, invalidate_cache?: Function | null, base_url?: string | null): IndexManager;
|
|
14
19
|
static withBaseUrl(project_id: string, project_key: string, base_url: string): IndexManager;
|
|
20
|
+
static withBaseUrls(project_id: string, project_key: string, base_url: string, auth_url: string): IndexManager;
|
|
15
21
|
}
|
|
16
22
|
|
|
17
23
|
export class ManageClient {
|
|
@@ -27,9 +33,41 @@ export class ManageClient {
|
|
|
27
33
|
getJobStatus(job_id: string): Promise<any>;
|
|
28
34
|
listIndexes(): Promise<any>;
|
|
29
35
|
constructor(project_id: string, project_key: string);
|
|
36
|
+
static withAuthenticator(project_id: string, get_auth_header: Function, invalidate_cache?: Function | null, base_url?: string | null): ManageClient;
|
|
30
37
|
static withBaseUrl(project_id: string, project_key: string, base_url: string): ManageClient;
|
|
31
38
|
}
|
|
32
39
|
|
|
40
|
+
export class ModelContentKeys {
|
|
41
|
+
private constructor();
|
|
42
|
+
free(): void;
|
|
43
|
+
[Symbol.dispose](): void;
|
|
44
|
+
readonly keyId: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class ModelKeyExchange {
|
|
48
|
+
free(): void;
|
|
49
|
+
[Symbol.dispose](): void;
|
|
50
|
+
capabilityQuery(sku: string): string;
|
|
51
|
+
constructor();
|
|
52
|
+
unwrap(response_json: string, sku: string, project_id: string): ModelContentKeys;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export class ProjectKeyAuthenticator {
|
|
56
|
+
free(): void;
|
|
57
|
+
[Symbol.dispose](): void;
|
|
58
|
+
getAuthHeader(): Promise<any>;
|
|
59
|
+
invalidate(): Promise<any>;
|
|
60
|
+
constructor(project_id: string, project_key: string);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export class SealedModel {
|
|
64
|
+
private constructor();
|
|
65
|
+
free(): void;
|
|
66
|
+
[Symbol.dispose](): void;
|
|
67
|
+
takeGraph(): Uint8Array;
|
|
68
|
+
takeTokenizer(): Tokenizer;
|
|
69
|
+
}
|
|
70
|
+
|
|
33
71
|
export class Tokenizer {
|
|
34
72
|
free(): void;
|
|
35
73
|
[Symbol.dispose](): void;
|
|
@@ -37,6 +75,8 @@ export class Tokenizer {
|
|
|
37
75
|
tokenize(text: string): any;
|
|
38
76
|
}
|
|
39
77
|
|
|
78
|
+
export function openSealedModel(bytes: Uint8Array, keys: ModelContentKeys, sku: string): SealedModel;
|
|
79
|
+
|
|
40
80
|
export function poolAndNormalize(token_embeddings: Float32Array, attention_mask: Int32Array, hidden_dim: number): Float32Array;
|
|
41
81
|
|
|
42
82
|
export function sdk_version(): string;
|
|
@@ -45,17 +85,27 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
45
85
|
|
|
46
86
|
export interface InitOutput {
|
|
47
87
|
readonly memory: WebAssembly.Memory;
|
|
48
|
-
readonly poolAndNormalize: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
49
88
|
readonly __wbg_indexmanager_free: (a: number, b: number) => void;
|
|
89
|
+
readonly __wbg_manageclient_free: (a: number, b: number) => void;
|
|
90
|
+
readonly __wbg_modelcontentkeys_free: (a: number, b: number) => void;
|
|
91
|
+
readonly __wbg_modelkeyexchange_free: (a: number, b: number) => void;
|
|
92
|
+
readonly __wbg_projectkeyauthenticator_free: (a: number, b: number) => void;
|
|
93
|
+
readonly __wbg_sealedmodel_free: (a: number, b: number) => void;
|
|
94
|
+
readonly __wbg_tokenizer_free: (a: number, b: number) => void;
|
|
50
95
|
readonly indexmanager_getIndexInfo: (a: number, b: number, c: number) => any;
|
|
51
96
|
readonly indexmanager_hasIndex: (a: number, b: number, c: number) => any;
|
|
52
97
|
readonly indexmanager_loadIndex: (a: number, b: number, c: number) => any;
|
|
53
98
|
readonly indexmanager_new: (a: number, b: number, c: number, d: number) => number;
|
|
54
|
-
readonly indexmanager_query: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: any) => any;
|
|
99
|
+
readonly indexmanager_query: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: any, k: any) => any;
|
|
100
|
+
readonly indexmanager_queryMultiIndex: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: any, k: any) => any;
|
|
101
|
+
readonly indexmanager_queryMultiIndexWithModelIdentity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: any, q: any) => any;
|
|
102
|
+
readonly indexmanager_queryWithModelIdentity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: any, q: any) => any;
|
|
55
103
|
readonly indexmanager_refreshIndex: (a: number, b: number, c: number) => any;
|
|
56
104
|
readonly indexmanager_unloadIndex: (a: number, b: number, c: number) => any;
|
|
105
|
+
readonly indexmanager_unloadIndexes: (a: number, b: number, c: number) => any;
|
|
106
|
+
readonly indexmanager_withAuthenticator: (a: number, b: number, c: any, d: number, e: number, f: number) => number;
|
|
57
107
|
readonly indexmanager_withBaseUrl: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
58
|
-
readonly
|
|
108
|
+
readonly indexmanager_withBaseUrls: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
59
109
|
readonly manageclient_addDocs: (a: number, b: number, c: number, d: any, e: number) => any;
|
|
60
110
|
readonly manageclient_createIndex: (a: number, b: number, c: number, d: any, e: number, f: number) => any;
|
|
61
111
|
readonly manageclient_createIndexFromFiles: (a: number, b: number, c: number, d: any, e: number, f: number) => any;
|
|
@@ -66,21 +116,33 @@ export interface InitOutput {
|
|
|
66
116
|
readonly manageclient_getJobStatus: (a: number, b: number, c: number) => any;
|
|
67
117
|
readonly manageclient_listIndexes: (a: number) => any;
|
|
68
118
|
readonly manageclient_new: (a: number, b: number, c: number, d: number) => number;
|
|
119
|
+
readonly manageclient_withAuthenticator: (a: number, b: number, c: any, d: number, e: number, f: number) => number;
|
|
69
120
|
readonly manageclient_withBaseUrl: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
121
|
+
readonly modelcontentkeys_keyId: (a: number) => number;
|
|
122
|
+
readonly modelkeyexchange_capabilityQuery: (a: number, b: number, c: number) => [number, number];
|
|
123
|
+
readonly modelkeyexchange_new: () => [number, number, number];
|
|
124
|
+
readonly modelkeyexchange_unwrap: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
125
|
+
readonly openSealedModel: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
126
|
+
readonly poolAndNormalize: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
127
|
+
readonly projectkeyauthenticator_getAuthHeader: (a: number) => any;
|
|
128
|
+
readonly projectkeyauthenticator_invalidate: (a: number) => any;
|
|
129
|
+
readonly projectkeyauthenticator_new: (a: number, b: number, c: number, d: number) => number;
|
|
70
130
|
readonly sdk_version: () => [number, number];
|
|
71
|
-
readonly
|
|
131
|
+
readonly sealedmodel_takeGraph: (a: number) => [number, number, number];
|
|
132
|
+
readonly sealedmodel_takeTokenizer: (a: number) => [number, number, number];
|
|
72
133
|
readonly tokenizer_new: (a: number, b: number) => [number, number, number];
|
|
73
134
|
readonly tokenizer_tokenize: (a: number, b: number, c: number) => [number, number, number];
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
135
|
+
readonly wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke___wasm_bindgen_9e362b674ca4cea___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_9e362b674ca4cea___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
136
|
+
readonly wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
137
|
+
readonly wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
76
138
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
77
139
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
78
140
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
79
141
|
readonly __externref_table_alloc: () => number;
|
|
80
142
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
81
143
|
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
82
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
83
144
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
145
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
84
146
|
readonly __wbindgen_start: () => void;
|
|
85
147
|
}
|
|
86
148
|
|
package/moss_wasm.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
export class IndexManager {
|
|
4
4
|
static __wrap(ptr) {
|
|
5
|
-
ptr = ptr >>> 0;
|
|
6
5
|
const obj = Object.create(IndexManager.prototype);
|
|
7
6
|
obj.__wbg_ptr = ptr;
|
|
8
7
|
IndexManagerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -58,7 +57,7 @@ export class IndexManager {
|
|
|
58
57
|
const ptr1 = passStringToWasm0(project_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
59
58
|
const len1 = WASM_VECTOR_LEN;
|
|
60
59
|
const ret = wasm.indexmanager_new(ptr0, len0, ptr1, len1);
|
|
61
|
-
this.__wbg_ptr = ret
|
|
60
|
+
this.__wbg_ptr = ret;
|
|
62
61
|
IndexManagerFinalization.register(this, this.__wbg_ptr, this);
|
|
63
62
|
return this;
|
|
64
63
|
}
|
|
@@ -69,16 +68,95 @@ export class IndexManager {
|
|
|
69
68
|
* @param {number | null | undefined} top_k
|
|
70
69
|
* @param {number | null | undefined} alpha
|
|
71
70
|
* @param {any} filter
|
|
71
|
+
* @param {any} tuning
|
|
72
72
|
* @returns {Promise<any>}
|
|
73
73
|
*/
|
|
74
|
-
query(index_name, query_text, query_embedding, top_k, alpha, filter) {
|
|
74
|
+
query(index_name, query_text, query_embedding, top_k, alpha, filter, tuning) {
|
|
75
75
|
const ptr0 = passStringToWasm0(index_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
76
76
|
const len0 = WASM_VECTOR_LEN;
|
|
77
77
|
const ptr1 = passStringToWasm0(query_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
78
78
|
const len1 = WASM_VECTOR_LEN;
|
|
79
79
|
const ptr2 = passArrayF32ToWasm0(query_embedding, wasm.__wbindgen_malloc);
|
|
80
80
|
const len2 = WASM_VECTOR_LEN;
|
|
81
|
-
const ret = wasm.indexmanager_query(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(top_k) ?
|
|
81
|
+
const ret = wasm.indexmanager_query(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(top_k) ? Number.MAX_SAFE_INTEGER : (top_k) >>> 0, isLikeNone(alpha) ? Number.MAX_SAFE_INTEGER : Math.fround(alpha), filter, tuning);
|
|
82
|
+
return ret;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @param {string[]} index_names
|
|
86
|
+
* @param {string} query_text
|
|
87
|
+
* @param {Float32Array} query_embedding
|
|
88
|
+
* @param {number | null | undefined} top_k
|
|
89
|
+
* @param {number | null | undefined} alpha
|
|
90
|
+
* @param {any} filter
|
|
91
|
+
* @param {any} tuning
|
|
92
|
+
* @returns {Promise<any>}
|
|
93
|
+
*/
|
|
94
|
+
queryMultiIndex(index_names, query_text, query_embedding, top_k, alpha, filter, tuning) {
|
|
95
|
+
const ptr0 = passArrayJsValueToWasm0(index_names, wasm.__wbindgen_malloc);
|
|
96
|
+
const len0 = WASM_VECTOR_LEN;
|
|
97
|
+
const ptr1 = passStringToWasm0(query_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
98
|
+
const len1 = WASM_VECTOR_LEN;
|
|
99
|
+
const ptr2 = passArrayF32ToWasm0(query_embedding, wasm.__wbindgen_malloc);
|
|
100
|
+
const len2 = WASM_VECTOR_LEN;
|
|
101
|
+
const ret = wasm.indexmanager_queryMultiIndex(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(top_k) ? Number.MAX_SAFE_INTEGER : (top_k) >>> 0, isLikeNone(alpha) ? Number.MAX_SAFE_INTEGER : Math.fround(alpha), filter, tuning);
|
|
102
|
+
return ret;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @param {string[]} index_names
|
|
106
|
+
* @param {string} query_text
|
|
107
|
+
* @param {Float32Array} query_embedding
|
|
108
|
+
* @param {string} model_id
|
|
109
|
+
* @param {string} model_artifact_version
|
|
110
|
+
* @param {string} manifest_sha256
|
|
111
|
+
* @param {number | null | undefined} top_k
|
|
112
|
+
* @param {number | null | undefined} alpha
|
|
113
|
+
* @param {any} filter
|
|
114
|
+
* @param {any} tuning
|
|
115
|
+
* @returns {Promise<any>}
|
|
116
|
+
*/
|
|
117
|
+
queryMultiIndexWithModelIdentity(index_names, query_text, query_embedding, model_id, model_artifact_version, manifest_sha256, top_k, alpha, filter, tuning) {
|
|
118
|
+
const ptr0 = passArrayJsValueToWasm0(index_names, wasm.__wbindgen_malloc);
|
|
119
|
+
const len0 = WASM_VECTOR_LEN;
|
|
120
|
+
const ptr1 = passStringToWasm0(query_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
121
|
+
const len1 = WASM_VECTOR_LEN;
|
|
122
|
+
const ptr2 = passArrayF32ToWasm0(query_embedding, wasm.__wbindgen_malloc);
|
|
123
|
+
const len2 = WASM_VECTOR_LEN;
|
|
124
|
+
const ptr3 = passStringToWasm0(model_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
125
|
+
const len3 = WASM_VECTOR_LEN;
|
|
126
|
+
const ptr4 = passStringToWasm0(model_artifact_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
127
|
+
const len4 = WASM_VECTOR_LEN;
|
|
128
|
+
const ptr5 = passStringToWasm0(manifest_sha256, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
129
|
+
const len5 = WASM_VECTOR_LEN;
|
|
130
|
+
const ret = wasm.indexmanager_queryMultiIndexWithModelIdentity(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, isLikeNone(top_k) ? Number.MAX_SAFE_INTEGER : (top_k) >>> 0, isLikeNone(alpha) ? Number.MAX_SAFE_INTEGER : Math.fround(alpha), filter, tuning);
|
|
131
|
+
return ret;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @param {string} index_name
|
|
135
|
+
* @param {string} query_text
|
|
136
|
+
* @param {Float32Array} query_embedding
|
|
137
|
+
* @param {string} model_id
|
|
138
|
+
* @param {string} model_artifact_version
|
|
139
|
+
* @param {string} manifest_sha256
|
|
140
|
+
* @param {number | null | undefined} top_k
|
|
141
|
+
* @param {number | null | undefined} alpha
|
|
142
|
+
* @param {any} filter
|
|
143
|
+
* @param {any} tuning
|
|
144
|
+
* @returns {Promise<any>}
|
|
145
|
+
*/
|
|
146
|
+
queryWithModelIdentity(index_name, query_text, query_embedding, model_id, model_artifact_version, manifest_sha256, top_k, alpha, filter, tuning) {
|
|
147
|
+
const ptr0 = passStringToWasm0(index_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
148
|
+
const len0 = WASM_VECTOR_LEN;
|
|
149
|
+
const ptr1 = passStringToWasm0(query_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
150
|
+
const len1 = WASM_VECTOR_LEN;
|
|
151
|
+
const ptr2 = passArrayF32ToWasm0(query_embedding, wasm.__wbindgen_malloc);
|
|
152
|
+
const len2 = WASM_VECTOR_LEN;
|
|
153
|
+
const ptr3 = passStringToWasm0(model_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
154
|
+
const len3 = WASM_VECTOR_LEN;
|
|
155
|
+
const ptr4 = passStringToWasm0(model_artifact_version, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
156
|
+
const len4 = WASM_VECTOR_LEN;
|
|
157
|
+
const ptr5 = passStringToWasm0(manifest_sha256, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
158
|
+
const len5 = WASM_VECTOR_LEN;
|
|
159
|
+
const ret = wasm.indexmanager_queryWithModelIdentity(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, isLikeNone(top_k) ? Number.MAX_SAFE_INTEGER : (top_k) >>> 0, isLikeNone(alpha) ? Number.MAX_SAFE_INTEGER : Math.fround(alpha), filter, tuning);
|
|
82
160
|
return ret;
|
|
83
161
|
}
|
|
84
162
|
/**
|
|
@@ -101,6 +179,31 @@ export class IndexManager {
|
|
|
101
179
|
const ret = wasm.indexmanager_unloadIndex(this.__wbg_ptr, ptr0, len0);
|
|
102
180
|
return ret;
|
|
103
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* @param {string[]} index_names
|
|
184
|
+
* @returns {Promise<any>}
|
|
185
|
+
*/
|
|
186
|
+
unloadIndexes(index_names) {
|
|
187
|
+
const ptr0 = passArrayJsValueToWasm0(index_names, wasm.__wbindgen_malloc);
|
|
188
|
+
const len0 = WASM_VECTOR_LEN;
|
|
189
|
+
const ret = wasm.indexmanager_unloadIndexes(this.__wbg_ptr, ptr0, len0);
|
|
190
|
+
return ret;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* @param {string} project_id
|
|
194
|
+
* @param {Function} get_auth_header
|
|
195
|
+
* @param {Function | null} [invalidate_cache]
|
|
196
|
+
* @param {string | null} [base_url]
|
|
197
|
+
* @returns {IndexManager}
|
|
198
|
+
*/
|
|
199
|
+
static withAuthenticator(project_id, get_auth_header, invalidate_cache, base_url) {
|
|
200
|
+
const ptr0 = passStringToWasm0(project_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
201
|
+
const len0 = WASM_VECTOR_LEN;
|
|
202
|
+
var ptr1 = isLikeNone(base_url) ? 0 : passStringToWasm0(base_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
203
|
+
var len1 = WASM_VECTOR_LEN;
|
|
204
|
+
const ret = wasm.indexmanager_withAuthenticator(ptr0, len0, get_auth_header, isLikeNone(invalidate_cache) ? 0 : addToExternrefTable0(invalidate_cache), ptr1, len1);
|
|
205
|
+
return IndexManager.__wrap(ret);
|
|
206
|
+
}
|
|
104
207
|
/**
|
|
105
208
|
* @param {string} project_id
|
|
106
209
|
* @param {string} project_key
|
|
@@ -117,12 +220,30 @@ export class IndexManager {
|
|
|
117
220
|
const ret = wasm.indexmanager_withBaseUrl(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
118
221
|
return IndexManager.__wrap(ret);
|
|
119
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* @param {string} project_id
|
|
225
|
+
* @param {string} project_key
|
|
226
|
+
* @param {string} base_url
|
|
227
|
+
* @param {string} auth_url
|
|
228
|
+
* @returns {IndexManager}
|
|
229
|
+
*/
|
|
230
|
+
static withBaseUrls(project_id, project_key, base_url, auth_url) {
|
|
231
|
+
const ptr0 = passStringToWasm0(project_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
232
|
+
const len0 = WASM_VECTOR_LEN;
|
|
233
|
+
const ptr1 = passStringToWasm0(project_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
234
|
+
const len1 = WASM_VECTOR_LEN;
|
|
235
|
+
const ptr2 = passStringToWasm0(base_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
236
|
+
const len2 = WASM_VECTOR_LEN;
|
|
237
|
+
const ptr3 = passStringToWasm0(auth_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
238
|
+
const len3 = WASM_VECTOR_LEN;
|
|
239
|
+
const ret = wasm.indexmanager_withBaseUrls(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
240
|
+
return IndexManager.__wrap(ret);
|
|
241
|
+
}
|
|
120
242
|
}
|
|
121
243
|
if (Symbol.dispose) IndexManager.prototype[Symbol.dispose] = IndexManager.prototype.free;
|
|
122
244
|
|
|
123
245
|
export class ManageClient {
|
|
124
246
|
static __wrap(ptr) {
|
|
125
|
-
ptr = ptr >>> 0;
|
|
126
247
|
const obj = Object.create(ManageClient.prototype);
|
|
127
248
|
obj.__wbg_ptr = ptr;
|
|
128
249
|
ManageClientFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -251,10 +372,25 @@ export class ManageClient {
|
|
|
251
372
|
const ptr1 = passStringToWasm0(project_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
252
373
|
const len1 = WASM_VECTOR_LEN;
|
|
253
374
|
const ret = wasm.manageclient_new(ptr0, len0, ptr1, len1);
|
|
254
|
-
this.__wbg_ptr = ret
|
|
375
|
+
this.__wbg_ptr = ret;
|
|
255
376
|
ManageClientFinalization.register(this, this.__wbg_ptr, this);
|
|
256
377
|
return this;
|
|
257
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* @param {string} project_id
|
|
381
|
+
* @param {Function} get_auth_header
|
|
382
|
+
* @param {Function | null} [invalidate_cache]
|
|
383
|
+
* @param {string | null} [base_url]
|
|
384
|
+
* @returns {ManageClient}
|
|
385
|
+
*/
|
|
386
|
+
static withAuthenticator(project_id, get_auth_header, invalidate_cache, base_url) {
|
|
387
|
+
const ptr0 = passStringToWasm0(project_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
|
+
const len0 = WASM_VECTOR_LEN;
|
|
389
|
+
var ptr1 = isLikeNone(base_url) ? 0 : passStringToWasm0(base_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
390
|
+
var len1 = WASM_VECTOR_LEN;
|
|
391
|
+
const ret = wasm.manageclient_withAuthenticator(ptr0, len0, get_auth_header, isLikeNone(invalidate_cache) ? 0 : addToExternrefTable0(invalidate_cache), ptr1, len1);
|
|
392
|
+
return ManageClient.__wrap(ret);
|
|
393
|
+
}
|
|
258
394
|
/**
|
|
259
395
|
* @param {string} project_id
|
|
260
396
|
* @param {string} project_key
|
|
@@ -274,7 +410,183 @@ export class ManageClient {
|
|
|
274
410
|
}
|
|
275
411
|
if (Symbol.dispose) ManageClient.prototype[Symbol.dispose] = ManageClient.prototype.free;
|
|
276
412
|
|
|
413
|
+
export class ModelContentKeys {
|
|
414
|
+
static __wrap(ptr) {
|
|
415
|
+
const obj = Object.create(ModelContentKeys.prototype);
|
|
416
|
+
obj.__wbg_ptr = ptr;
|
|
417
|
+
ModelContentKeysFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
418
|
+
return obj;
|
|
419
|
+
}
|
|
420
|
+
__destroy_into_raw() {
|
|
421
|
+
const ptr = this.__wbg_ptr;
|
|
422
|
+
this.__wbg_ptr = 0;
|
|
423
|
+
ModelContentKeysFinalization.unregister(this);
|
|
424
|
+
return ptr;
|
|
425
|
+
}
|
|
426
|
+
free() {
|
|
427
|
+
const ptr = this.__destroy_into_raw();
|
|
428
|
+
wasm.__wbg_modelcontentkeys_free(ptr, 0);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @returns {number}
|
|
432
|
+
*/
|
|
433
|
+
get keyId() {
|
|
434
|
+
const ret = wasm.modelcontentkeys_keyId(this.__wbg_ptr);
|
|
435
|
+
return ret >>> 0;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
if (Symbol.dispose) ModelContentKeys.prototype[Symbol.dispose] = ModelContentKeys.prototype.free;
|
|
439
|
+
|
|
440
|
+
export class ModelKeyExchange {
|
|
441
|
+
__destroy_into_raw() {
|
|
442
|
+
const ptr = this.__wbg_ptr;
|
|
443
|
+
this.__wbg_ptr = 0;
|
|
444
|
+
ModelKeyExchangeFinalization.unregister(this);
|
|
445
|
+
return ptr;
|
|
446
|
+
}
|
|
447
|
+
free() {
|
|
448
|
+
const ptr = this.__destroy_into_raw();
|
|
449
|
+
wasm.__wbg_modelkeyexchange_free(ptr, 0);
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* @param {string} sku
|
|
453
|
+
* @returns {string}
|
|
454
|
+
*/
|
|
455
|
+
capabilityQuery(sku) {
|
|
456
|
+
let deferred2_0;
|
|
457
|
+
let deferred2_1;
|
|
458
|
+
try {
|
|
459
|
+
const ptr0 = passStringToWasm0(sku, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
460
|
+
const len0 = WASM_VECTOR_LEN;
|
|
461
|
+
const ret = wasm.modelkeyexchange_capabilityQuery(this.__wbg_ptr, ptr0, len0);
|
|
462
|
+
deferred2_0 = ret[0];
|
|
463
|
+
deferred2_1 = ret[1];
|
|
464
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
465
|
+
} finally {
|
|
466
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
constructor() {
|
|
470
|
+
const ret = wasm.modelkeyexchange_new();
|
|
471
|
+
if (ret[2]) {
|
|
472
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
473
|
+
}
|
|
474
|
+
this.__wbg_ptr = ret[0];
|
|
475
|
+
ModelKeyExchangeFinalization.register(this, this.__wbg_ptr, this);
|
|
476
|
+
return this;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* @param {string} response_json
|
|
480
|
+
* @param {string} sku
|
|
481
|
+
* @param {string} project_id
|
|
482
|
+
* @returns {ModelContentKeys}
|
|
483
|
+
*/
|
|
484
|
+
unwrap(response_json, sku, project_id) {
|
|
485
|
+
const ptr = this.__destroy_into_raw();
|
|
486
|
+
const ptr0 = passStringToWasm0(response_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
487
|
+
const len0 = WASM_VECTOR_LEN;
|
|
488
|
+
const ptr1 = passStringToWasm0(sku, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
489
|
+
const len1 = WASM_VECTOR_LEN;
|
|
490
|
+
const ptr2 = passStringToWasm0(project_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
491
|
+
const len2 = WASM_VECTOR_LEN;
|
|
492
|
+
const ret = wasm.modelkeyexchange_unwrap(ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
493
|
+
if (ret[2]) {
|
|
494
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
495
|
+
}
|
|
496
|
+
return ModelContentKeys.__wrap(ret[0]);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
if (Symbol.dispose) ModelKeyExchange.prototype[Symbol.dispose] = ModelKeyExchange.prototype.free;
|
|
500
|
+
|
|
501
|
+
export class ProjectKeyAuthenticator {
|
|
502
|
+
__destroy_into_raw() {
|
|
503
|
+
const ptr = this.__wbg_ptr;
|
|
504
|
+
this.__wbg_ptr = 0;
|
|
505
|
+
ProjectKeyAuthenticatorFinalization.unregister(this);
|
|
506
|
+
return ptr;
|
|
507
|
+
}
|
|
508
|
+
free() {
|
|
509
|
+
const ptr = this.__destroy_into_raw();
|
|
510
|
+
wasm.__wbg_projectkeyauthenticator_free(ptr, 0);
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* @returns {Promise<any>}
|
|
514
|
+
*/
|
|
515
|
+
getAuthHeader() {
|
|
516
|
+
const ret = wasm.projectkeyauthenticator_getAuthHeader(this.__wbg_ptr);
|
|
517
|
+
return ret;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* @returns {Promise<any>}
|
|
521
|
+
*/
|
|
522
|
+
invalidate() {
|
|
523
|
+
const ret = wasm.projectkeyauthenticator_invalidate(this.__wbg_ptr);
|
|
524
|
+
return ret;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* @param {string} project_id
|
|
528
|
+
* @param {string} project_key
|
|
529
|
+
*/
|
|
530
|
+
constructor(project_id, project_key) {
|
|
531
|
+
const ptr0 = passStringToWasm0(project_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
532
|
+
const len0 = WASM_VECTOR_LEN;
|
|
533
|
+
const ptr1 = passStringToWasm0(project_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
534
|
+
const len1 = WASM_VECTOR_LEN;
|
|
535
|
+
const ret = wasm.projectkeyauthenticator_new(ptr0, len0, ptr1, len1);
|
|
536
|
+
this.__wbg_ptr = ret;
|
|
537
|
+
ProjectKeyAuthenticatorFinalization.register(this, this.__wbg_ptr, this);
|
|
538
|
+
return this;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
if (Symbol.dispose) ProjectKeyAuthenticator.prototype[Symbol.dispose] = ProjectKeyAuthenticator.prototype.free;
|
|
542
|
+
|
|
543
|
+
export class SealedModel {
|
|
544
|
+
static __wrap(ptr) {
|
|
545
|
+
const obj = Object.create(SealedModel.prototype);
|
|
546
|
+
obj.__wbg_ptr = ptr;
|
|
547
|
+
SealedModelFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
548
|
+
return obj;
|
|
549
|
+
}
|
|
550
|
+
__destroy_into_raw() {
|
|
551
|
+
const ptr = this.__wbg_ptr;
|
|
552
|
+
this.__wbg_ptr = 0;
|
|
553
|
+
SealedModelFinalization.unregister(this);
|
|
554
|
+
return ptr;
|
|
555
|
+
}
|
|
556
|
+
free() {
|
|
557
|
+
const ptr = this.__destroy_into_raw();
|
|
558
|
+
wasm.__wbg_sealedmodel_free(ptr, 0);
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* @returns {Uint8Array}
|
|
562
|
+
*/
|
|
563
|
+
takeGraph() {
|
|
564
|
+
const ret = wasm.sealedmodel_takeGraph(this.__wbg_ptr);
|
|
565
|
+
if (ret[2]) {
|
|
566
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
567
|
+
}
|
|
568
|
+
return takeFromExternrefTable0(ret[0]);
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* @returns {Tokenizer}
|
|
572
|
+
*/
|
|
573
|
+
takeTokenizer() {
|
|
574
|
+
const ret = wasm.sealedmodel_takeTokenizer(this.__wbg_ptr);
|
|
575
|
+
if (ret[2]) {
|
|
576
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
577
|
+
}
|
|
578
|
+
return Tokenizer.__wrap(ret[0]);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
if (Symbol.dispose) SealedModel.prototype[Symbol.dispose] = SealedModel.prototype.free;
|
|
582
|
+
|
|
277
583
|
export class Tokenizer {
|
|
584
|
+
static __wrap(ptr) {
|
|
585
|
+
const obj = Object.create(Tokenizer.prototype);
|
|
586
|
+
obj.__wbg_ptr = ptr;
|
|
587
|
+
TokenizerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
588
|
+
return obj;
|
|
589
|
+
}
|
|
278
590
|
__destroy_into_raw() {
|
|
279
591
|
const ptr = this.__wbg_ptr;
|
|
280
592
|
this.__wbg_ptr = 0;
|
|
@@ -295,7 +607,7 @@ export class Tokenizer {
|
|
|
295
607
|
if (ret[2]) {
|
|
296
608
|
throw takeFromExternrefTable0(ret[1]);
|
|
297
609
|
}
|
|
298
|
-
this.__wbg_ptr = ret[0]
|
|
610
|
+
this.__wbg_ptr = ret[0];
|
|
299
611
|
TokenizerFinalization.register(this, this.__wbg_ptr, this);
|
|
300
612
|
return this;
|
|
301
613
|
}
|
|
@@ -315,6 +627,25 @@ export class Tokenizer {
|
|
|
315
627
|
}
|
|
316
628
|
if (Symbol.dispose) Tokenizer.prototype[Symbol.dispose] = Tokenizer.prototype.free;
|
|
317
629
|
|
|
630
|
+
/**
|
|
631
|
+
* @param {Uint8Array} bytes
|
|
632
|
+
* @param {ModelContentKeys} keys
|
|
633
|
+
* @param {string} sku
|
|
634
|
+
* @returns {SealedModel}
|
|
635
|
+
*/
|
|
636
|
+
export function openSealedModel(bytes, keys, sku) {
|
|
637
|
+
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
638
|
+
const len0 = WASM_VECTOR_LEN;
|
|
639
|
+
_assertClass(keys, ModelContentKeys);
|
|
640
|
+
const ptr1 = passStringToWasm0(sku, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
641
|
+
const len1 = WASM_VECTOR_LEN;
|
|
642
|
+
const ret = wasm.openSealedModel(ptr0, len0, keys.__wbg_ptr, ptr1, len1);
|
|
643
|
+
if (ret[2]) {
|
|
644
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
645
|
+
}
|
|
646
|
+
return SealedModel.__wrap(ret[0]);
|
|
647
|
+
}
|
|
648
|
+
|
|
318
649
|
/**
|
|
319
650
|
* @param {Float32Array} token_embeddings
|
|
320
651
|
* @param {Int32Array} attention_mask
|
|
@@ -353,11 +684,11 @@ export function sdk_version() {
|
|
|
353
684
|
function __wbg_get_imports() {
|
|
354
685
|
const import0 = {
|
|
355
686
|
__proto__: null,
|
|
356
|
-
|
|
687
|
+
__wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
|
|
357
688
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
358
689
|
return ret;
|
|
359
690
|
},
|
|
360
|
-
|
|
691
|
+
__wbg_Number_9a4e0ecb0fa16705: function(arg0) {
|
|
361
692
|
const ret = Number(arg0);
|
|
362
693
|
return ret;
|
|
363
694
|
},
|
|
@@ -368,68 +699,68 @@ function __wbg_get_imports() {
|
|
|
368
699
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
369
700
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
370
701
|
},
|
|
371
|
-
|
|
702
|
+
__wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
|
|
372
703
|
const v = arg1;
|
|
373
704
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
374
705
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
375
706
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
376
707
|
},
|
|
377
|
-
|
|
708
|
+
__wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
|
|
378
709
|
const v = arg0;
|
|
379
710
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
380
711
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
381
712
|
},
|
|
382
|
-
|
|
713
|
+
__wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
|
|
383
714
|
const ret = debugString(arg1);
|
|
384
715
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
385
716
|
const len1 = WASM_VECTOR_LEN;
|
|
386
717
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
387
718
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
388
719
|
},
|
|
389
|
-
|
|
720
|
+
__wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
|
|
390
721
|
const ret = arg0 in arg1;
|
|
391
722
|
return ret;
|
|
392
723
|
},
|
|
393
|
-
|
|
724
|
+
__wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
|
|
394
725
|
const ret = typeof(arg0) === 'bigint';
|
|
395
726
|
return ret;
|
|
396
727
|
},
|
|
397
|
-
|
|
728
|
+
__wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
|
|
398
729
|
const ret = typeof(arg0) === 'function';
|
|
399
730
|
return ret;
|
|
400
731
|
},
|
|
401
|
-
|
|
732
|
+
__wbg___wbindgen_is_null_ea9085d691f535d3: function(arg0) {
|
|
402
733
|
const ret = arg0 === null;
|
|
403
734
|
return ret;
|
|
404
735
|
},
|
|
405
|
-
|
|
736
|
+
__wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
|
|
406
737
|
const val = arg0;
|
|
407
738
|
const ret = typeof(val) === 'object' && val !== null;
|
|
408
739
|
return ret;
|
|
409
740
|
},
|
|
410
|
-
|
|
741
|
+
__wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
|
|
411
742
|
const ret = typeof(arg0) === 'string';
|
|
412
743
|
return ret;
|
|
413
744
|
},
|
|
414
|
-
|
|
745
|
+
__wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
|
|
415
746
|
const ret = arg0 === undefined;
|
|
416
747
|
return ret;
|
|
417
748
|
},
|
|
418
|
-
|
|
749
|
+
__wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
|
|
419
750
|
const ret = arg0 === arg1;
|
|
420
751
|
return ret;
|
|
421
752
|
},
|
|
422
|
-
|
|
753
|
+
__wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
|
|
423
754
|
const ret = arg0 == arg1;
|
|
424
755
|
return ret;
|
|
425
756
|
},
|
|
426
|
-
|
|
757
|
+
__wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
|
|
427
758
|
const obj = arg1;
|
|
428
759
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
429
760
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
430
761
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
431
762
|
},
|
|
432
|
-
|
|
763
|
+
__wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
|
|
433
764
|
const obj = arg1;
|
|
434
765
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
435
766
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -437,73 +768,80 @@ function __wbg_get_imports() {
|
|
|
437
768
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
438
769
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
439
770
|
},
|
|
440
|
-
|
|
771
|
+
__wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
|
|
441
772
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
442
773
|
},
|
|
443
|
-
|
|
774
|
+
__wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
|
|
444
775
|
arg0._wbg_cb_unref();
|
|
445
776
|
},
|
|
446
|
-
|
|
777
|
+
__wbg_abort_8bae0f33e7833997: function(arg0) {
|
|
447
778
|
arg0.abort();
|
|
448
779
|
},
|
|
449
|
-
|
|
780
|
+
__wbg_abort_eee9248a6d680839: function(arg0, arg1) {
|
|
781
|
+
arg0.abort(arg1);
|
|
782
|
+
},
|
|
783
|
+
__wbg_append_01c74e5c6b58aa64: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
450
784
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
451
785
|
}, arguments); },
|
|
452
|
-
|
|
786
|
+
__wbg_arrayBuffer_3b637f0fa65c5351: function() { return handleError(function (arg0) {
|
|
453
787
|
const ret = arg0.arrayBuffer();
|
|
454
788
|
return ret;
|
|
455
789
|
}, arguments); },
|
|
456
|
-
|
|
790
|
+
__wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
|
|
457
791
|
const ret = arg0.call(arg1);
|
|
458
792
|
return ret;
|
|
459
793
|
}, arguments); },
|
|
460
|
-
|
|
794
|
+
__wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
|
|
461
795
|
const ret = arg0.call(arg1, arg2);
|
|
462
796
|
return ret;
|
|
463
797
|
}, arguments); },
|
|
464
|
-
|
|
798
|
+
__wbg_call_e3b662382210db98: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
465
799
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
466
800
|
return ret;
|
|
467
801
|
}, arguments); },
|
|
468
|
-
|
|
802
|
+
__wbg_clearTimeout_6b8d9a38b9263d65: function(arg0) {
|
|
803
|
+
const ret = clearTimeout(arg0);
|
|
804
|
+
return ret;
|
|
805
|
+
},
|
|
806
|
+
__wbg_done_89b2b13e91a60321: function(arg0) {
|
|
469
807
|
const ret = arg0.done;
|
|
470
808
|
return ret;
|
|
471
809
|
},
|
|
472
|
-
|
|
810
|
+
__wbg_entries_015dc610cd81ede0: function(arg0) {
|
|
473
811
|
const ret = Object.entries(arg0);
|
|
474
812
|
return ret;
|
|
475
813
|
},
|
|
476
|
-
|
|
477
|
-
const ret =
|
|
814
|
+
__wbg_fetch_9dad4fe911207b37: function(arg0) {
|
|
815
|
+
const ret = fetch(arg0);
|
|
478
816
|
return ret;
|
|
479
817
|
},
|
|
480
|
-
|
|
481
|
-
const ret = fetch(
|
|
818
|
+
__wbg_fetch_b5951fc96f52f786: function(arg0, arg1) {
|
|
819
|
+
const ret = arg0.fetch(arg1);
|
|
482
820
|
return ret;
|
|
483
821
|
},
|
|
484
822
|
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
485
823
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
486
824
|
}, arguments); },
|
|
487
|
-
|
|
825
|
+
__wbg_getRandomValues_bf16787eede473f5: function() { return handleError(function (arg0, arg1) {
|
|
488
826
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
489
827
|
}, arguments); },
|
|
490
|
-
|
|
828
|
+
__wbg_getTime_d6f070c088c9b5ed: function(arg0) {
|
|
491
829
|
const ret = arg0.getTime();
|
|
492
830
|
return ret;
|
|
493
831
|
},
|
|
494
|
-
|
|
832
|
+
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
833
|
+
const ret = arg0[arg1 >>> 0];
|
|
834
|
+
return ret;
|
|
835
|
+
},
|
|
836
|
+
__wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
|
|
495
837
|
const ret = Reflect.get(arg0, arg1);
|
|
496
838
|
return ret;
|
|
497
839
|
}, arguments); },
|
|
498
|
-
|
|
840
|
+
__wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
|
|
499
841
|
const ret = Reflect.get(arg0, arg1);
|
|
500
842
|
return ret;
|
|
501
843
|
}, arguments); },
|
|
502
|
-
|
|
503
|
-
const ret = arg0[arg1 >>> 0];
|
|
504
|
-
return ret;
|
|
505
|
-
},
|
|
506
|
-
__wbg_get_unchecked_17f53dad852b9588: function(arg0, arg1) {
|
|
844
|
+
__wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
|
|
507
845
|
const ret = arg0[arg1 >>> 0];
|
|
508
846
|
return ret;
|
|
509
847
|
},
|
|
@@ -511,15 +849,15 @@ function __wbg_get_imports() {
|
|
|
511
849
|
const ret = arg0[arg1];
|
|
512
850
|
return ret;
|
|
513
851
|
},
|
|
514
|
-
|
|
852
|
+
__wbg_has_8374cf06984d8bfc: function() { return handleError(function (arg0, arg1) {
|
|
515
853
|
const ret = Reflect.has(arg0, arg1);
|
|
516
854
|
return ret;
|
|
517
855
|
}, arguments); },
|
|
518
|
-
|
|
856
|
+
__wbg_headers_cf9c80f30e2a4eff: function(arg0) {
|
|
519
857
|
const ret = arg0.headers;
|
|
520
858
|
return ret;
|
|
521
859
|
},
|
|
522
|
-
|
|
860
|
+
__wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
|
|
523
861
|
let result;
|
|
524
862
|
try {
|
|
525
863
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -529,7 +867,17 @@ function __wbg_get_imports() {
|
|
|
529
867
|
const ret = result;
|
|
530
868
|
return ret;
|
|
531
869
|
},
|
|
532
|
-
|
|
870
|
+
__wbg_instanceof_Error_1fdac9f13a8181ba: function(arg0) {
|
|
871
|
+
let result;
|
|
872
|
+
try {
|
|
873
|
+
result = arg0 instanceof Error;
|
|
874
|
+
} catch (_) {
|
|
875
|
+
result = false;
|
|
876
|
+
}
|
|
877
|
+
const ret = result;
|
|
878
|
+
return ret;
|
|
879
|
+
},
|
|
880
|
+
__wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
|
|
533
881
|
let result;
|
|
534
882
|
try {
|
|
535
883
|
result = arg0 instanceof Map;
|
|
@@ -539,7 +887,17 @@ function __wbg_get_imports() {
|
|
|
539
887
|
const ret = result;
|
|
540
888
|
return ret;
|
|
541
889
|
},
|
|
542
|
-
|
|
890
|
+
__wbg_instanceof_Promise_4cb210c0b8f8c959: function(arg0) {
|
|
891
|
+
let result;
|
|
892
|
+
try {
|
|
893
|
+
result = arg0 instanceof Promise;
|
|
894
|
+
} catch (_) {
|
|
895
|
+
result = false;
|
|
896
|
+
}
|
|
897
|
+
const ret = result;
|
|
898
|
+
return ret;
|
|
899
|
+
},
|
|
900
|
+
__wbg_instanceof_Response_c8b64b2256f01bec: function(arg0) {
|
|
543
901
|
let result;
|
|
544
902
|
try {
|
|
545
903
|
result = arg0 instanceof Response;
|
|
@@ -549,7 +907,7 @@ function __wbg_get_imports() {
|
|
|
549
907
|
const ret = result;
|
|
550
908
|
return ret;
|
|
551
909
|
},
|
|
552
|
-
|
|
910
|
+
__wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
|
|
553
911
|
let result;
|
|
554
912
|
try {
|
|
555
913
|
result = arg0 instanceof Uint8Array;
|
|
@@ -559,34 +917,58 @@ function __wbg_get_imports() {
|
|
|
559
917
|
const ret = result;
|
|
560
918
|
return ret;
|
|
561
919
|
},
|
|
562
|
-
|
|
920
|
+
__wbg_isArray_0677c962b281d01a: function(arg0) {
|
|
563
921
|
const ret = Array.isArray(arg0);
|
|
564
922
|
return ret;
|
|
565
923
|
},
|
|
566
|
-
|
|
924
|
+
__wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
|
|
567
925
|
const ret = Number.isSafeInteger(arg0);
|
|
568
926
|
return ret;
|
|
569
927
|
},
|
|
570
|
-
|
|
928
|
+
__wbg_iterator_6f722e4a93058b71: function() {
|
|
571
929
|
const ret = Symbol.iterator;
|
|
572
930
|
return ret;
|
|
573
931
|
},
|
|
574
|
-
|
|
932
|
+
__wbg_length_1f0964f4a5e2c6d8: function(arg0) {
|
|
575
933
|
const ret = arg0.length;
|
|
576
934
|
return ret;
|
|
577
935
|
},
|
|
578
|
-
|
|
936
|
+
__wbg_length_370319915dc99107: function(arg0) {
|
|
579
937
|
const ret = arg0.length;
|
|
580
938
|
return ret;
|
|
581
939
|
},
|
|
582
|
-
|
|
940
|
+
__wbg_message_8326fb1d549bebc5: function(arg0) {
|
|
941
|
+
const ret = arg0.message;
|
|
942
|
+
return ret;
|
|
943
|
+
},
|
|
944
|
+
__wbg_new_0_3da9e97f24fc69be: function() {
|
|
945
|
+
const ret = new Date();
|
|
946
|
+
return ret;
|
|
947
|
+
},
|
|
948
|
+
__wbg_new_0d809930cd1354c6: function() { return handleError(function () {
|
|
949
|
+
const ret = new Headers();
|
|
950
|
+
return ret;
|
|
951
|
+
}, arguments); },
|
|
952
|
+
__wbg_new_32b398fb48b6d94a: function() {
|
|
953
|
+
const ret = new Array();
|
|
954
|
+
return ret;
|
|
955
|
+
},
|
|
956
|
+
__wbg_new_4339b2a2675a03e3: function() { return handleError(function () {
|
|
957
|
+
const ret = new AbortController();
|
|
958
|
+
return ret;
|
|
959
|
+
}, arguments); },
|
|
960
|
+
__wbg_new_7796ffc7ed656783: function() {
|
|
961
|
+
const ret = new Map();
|
|
962
|
+
return ret;
|
|
963
|
+
},
|
|
964
|
+
__wbg_new_aec3e25493d729fe: function(arg0, arg1) {
|
|
583
965
|
try {
|
|
584
966
|
var state0 = {a: arg0, b: arg1};
|
|
585
967
|
var cb0 = (arg0, arg1) => {
|
|
586
968
|
const a = state0.a;
|
|
587
969
|
state0.a = 0;
|
|
588
970
|
try {
|
|
589
|
-
return
|
|
971
|
+
return wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
590
972
|
} finally {
|
|
591
973
|
state0.a = a;
|
|
592
974
|
}
|
|
@@ -597,46 +979,26 @@ function __wbg_get_imports() {
|
|
|
597
979
|
state0.a = 0;
|
|
598
980
|
}
|
|
599
981
|
},
|
|
600
|
-
|
|
601
|
-
const ret = new Date();
|
|
602
|
-
return ret;
|
|
603
|
-
},
|
|
604
|
-
__wbg_new_0c7403db6e782f19: function(arg0) {
|
|
982
|
+
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
605
983
|
const ret = new Uint8Array(arg0);
|
|
606
984
|
return ret;
|
|
607
985
|
},
|
|
608
|
-
|
|
609
|
-
const ret = new Headers();
|
|
610
|
-
return ret;
|
|
611
|
-
}, arguments); },
|
|
612
|
-
__wbg_new_34d45cc8e36aaead: function() {
|
|
613
|
-
const ret = new Map();
|
|
614
|
-
return ret;
|
|
615
|
-
},
|
|
616
|
-
__wbg_new_682678e2f47e32bc: function() {
|
|
617
|
-
const ret = new Array();
|
|
618
|
-
return ret;
|
|
619
|
-
},
|
|
620
|
-
__wbg_new_98c22165a42231aa: function() { return handleError(function () {
|
|
621
|
-
const ret = new AbortController();
|
|
622
|
-
return ret;
|
|
623
|
-
}, arguments); },
|
|
624
|
-
__wbg_new_aa8d0fa9762c29bd: function() {
|
|
986
|
+
__wbg_new_da52cf8fe3429cb2: function() {
|
|
625
987
|
const ret = new Object();
|
|
626
988
|
return ret;
|
|
627
989
|
},
|
|
628
|
-
|
|
990
|
+
__wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) {
|
|
629
991
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
630
992
|
return ret;
|
|
631
993
|
},
|
|
632
|
-
|
|
994
|
+
__wbg_new_typed_1824d93f294193e5: function(arg0, arg1) {
|
|
633
995
|
try {
|
|
634
996
|
var state0 = {a: arg0, b: arg1};
|
|
635
997
|
var cb0 = (arg0, arg1) => {
|
|
636
998
|
const a = state0.a;
|
|
637
999
|
state0.a = 0;
|
|
638
1000
|
try {
|
|
639
|
-
return
|
|
1001
|
+
return wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
640
1002
|
} finally {
|
|
641
1003
|
state0.a = a;
|
|
642
1004
|
}
|
|
@@ -647,136 +1009,148 @@ function __wbg_get_imports() {
|
|
|
647
1009
|
state0.a = 0;
|
|
648
1010
|
}
|
|
649
1011
|
},
|
|
650
|
-
|
|
1012
|
+
__wbg_new_with_str_and_init_d95cbe11ce28e65e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
651
1013
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
652
1014
|
return ret;
|
|
653
1015
|
}, arguments); },
|
|
654
|
-
|
|
655
|
-
const ret = arg0.next();
|
|
656
|
-
return ret;
|
|
657
|
-
}, arguments); },
|
|
658
|
-
__wbg_next_7646edaa39458ef7: function(arg0) {
|
|
1016
|
+
__wbg_next_6dbf2c0ac8cde20f: function(arg0) {
|
|
659
1017
|
const ret = arg0.next;
|
|
660
1018
|
return ret;
|
|
661
1019
|
},
|
|
662
|
-
|
|
1020
|
+
__wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
|
|
1021
|
+
const ret = arg0.next();
|
|
1022
|
+
return ret;
|
|
1023
|
+
}, arguments); },
|
|
1024
|
+
__wbg_now_86c0d4ba3fa605b8: function() {
|
|
663
1025
|
const ret = Date.now();
|
|
664
1026
|
return ret;
|
|
665
1027
|
},
|
|
666
|
-
|
|
1028
|
+
__wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
|
|
667
1029
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
668
1030
|
},
|
|
669
|
-
|
|
670
|
-
queueMicrotask(arg0);
|
|
671
|
-
},
|
|
672
|
-
__wbg_queueMicrotask_f8819e5ffc402f36: function(arg0) {
|
|
1031
|
+
__wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
|
|
673
1032
|
const ret = arg0.queueMicrotask;
|
|
674
1033
|
return ret;
|
|
675
1034
|
},
|
|
676
|
-
|
|
1035
|
+
__wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
|
|
1036
|
+
queueMicrotask(arg0);
|
|
1037
|
+
},
|
|
1038
|
+
__wbg_resolve_2191a4dfe481c25b: function(arg0) {
|
|
677
1039
|
const ret = Promise.resolve(arg0);
|
|
678
1040
|
return ret;
|
|
679
1041
|
},
|
|
680
|
-
|
|
681
|
-
|
|
1042
|
+
__wbg_setTimeout_f757f00851f76c42: function(arg0, arg1) {
|
|
1043
|
+
const ret = setTimeout(arg0, arg1);
|
|
1044
|
+
return ret;
|
|
1045
|
+
},
|
|
1046
|
+
__wbg_set_575dd786d51585f8: function(arg0, arg1, arg2) {
|
|
1047
|
+
const ret = arg0.set(arg1, arg2);
|
|
1048
|
+
return ret;
|
|
682
1049
|
},
|
|
683
1050
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
684
1051
|
arg0[arg1] = arg2;
|
|
685
1052
|
},
|
|
686
|
-
|
|
1053
|
+
__wbg_set_8a16b38e4805b298: function(arg0, arg1, arg2) {
|
|
1054
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1055
|
+
},
|
|
1056
|
+
__wbg_set_body_029f2d171e0a005f: function(arg0, arg1) {
|
|
687
1057
|
arg0.body = arg1;
|
|
688
1058
|
},
|
|
689
|
-
|
|
690
|
-
arg0.
|
|
1059
|
+
__wbg_set_cache_b4a740b195c051f4: function(arg0, arg1) {
|
|
1060
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
691
1061
|
},
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
return ret;
|
|
1062
|
+
__wbg_set_credentials_bb34a40189e3b43b: function(arg0, arg1) {
|
|
1063
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
695
1064
|
},
|
|
696
|
-
|
|
1065
|
+
__wbg_set_headers_9c61d123c3ee1f10: function(arg0, arg1) {
|
|
697
1066
|
arg0.headers = arg1;
|
|
698
1067
|
},
|
|
699
|
-
|
|
1068
|
+
__wbg_set_method_5532d59b92d76467: function(arg0, arg1, arg2) {
|
|
700
1069
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
701
1070
|
},
|
|
702
|
-
|
|
1071
|
+
__wbg_set_mode_66c79886ad78fc05: function(arg0, arg1) {
|
|
703
1072
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
704
1073
|
},
|
|
705
|
-
|
|
1074
|
+
__wbg_set_signal_c4ef8faddb4c1446: function(arg0, arg1) {
|
|
706
1075
|
arg0.signal = arg1;
|
|
707
1076
|
},
|
|
708
|
-
|
|
1077
|
+
__wbg_signal_dad7cb35193abd31: function(arg0) {
|
|
709
1078
|
const ret = arg0.signal;
|
|
710
1079
|
return ret;
|
|
711
1080
|
},
|
|
712
|
-
|
|
1081
|
+
__wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
|
|
713
1082
|
const ret = typeof global === 'undefined' ? null : global;
|
|
714
1083
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
715
1084
|
},
|
|
716
|
-
|
|
1085
|
+
__wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
|
|
717
1086
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
718
1087
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
719
1088
|
},
|
|
720
|
-
|
|
1089
|
+
__wbg_static_accessor_SELF_146583524fe1469b: function() {
|
|
721
1090
|
const ret = typeof self === 'undefined' ? null : self;
|
|
722
1091
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
723
1092
|
},
|
|
724
|
-
|
|
1093
|
+
__wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
|
|
725
1094
|
const ret = typeof window === 'undefined' ? null : window;
|
|
726
1095
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
727
1096
|
},
|
|
728
|
-
|
|
1097
|
+
__wbg_status_c45b3b9b3033184a: function(arg0) {
|
|
729
1098
|
const ret = arg0.status;
|
|
730
1099
|
return ret;
|
|
731
1100
|
},
|
|
732
|
-
|
|
1101
|
+
__wbg_stringify_b54333f60f1e4dad: function() { return handleError(function (arg0) {
|
|
733
1102
|
const ret = JSON.stringify(arg0);
|
|
734
1103
|
return ret;
|
|
735
1104
|
}, arguments); },
|
|
736
|
-
|
|
1105
|
+
__wbg_text_d3a29f7525a132c3: function() { return handleError(function (arg0) {
|
|
737
1106
|
const ret = arg0.text();
|
|
738
1107
|
return ret;
|
|
739
1108
|
}, arguments); },
|
|
740
|
-
|
|
1109
|
+
__wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
|
|
741
1110
|
const ret = arg0.then(arg1, arg2);
|
|
742
1111
|
return ret;
|
|
743
1112
|
},
|
|
744
|
-
|
|
1113
|
+
__wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) {
|
|
745
1114
|
const ret = arg0.then(arg1);
|
|
746
1115
|
return ret;
|
|
747
1116
|
},
|
|
748
|
-
|
|
1117
|
+
__wbg_url_abdb8fb08377f8c0: function(arg0, arg1) {
|
|
749
1118
|
const ret = arg1.url;
|
|
750
1119
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
751
1120
|
const len1 = WASM_VECTOR_LEN;
|
|
752
1121
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
753
1122
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
754
1123
|
},
|
|
755
|
-
|
|
1124
|
+
__wbg_value_a5d5488a9589444a: function(arg0) {
|
|
756
1125
|
const ret = arg0.value;
|
|
757
1126
|
return ret;
|
|
758
1127
|
},
|
|
759
1128
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
760
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
761
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1129
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 156, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1130
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke___wasm_bindgen_9e362b674ca4cea___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_9e362b674ca4cea___JsError___true_);
|
|
762
1131
|
return ret;
|
|
763
1132
|
},
|
|
764
|
-
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
1133
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1134
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 306, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1135
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke_______true_);
|
|
1136
|
+
return ret;
|
|
1137
|
+
},
|
|
1138
|
+
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
765
1139
|
// Cast intrinsic for `F64 -> Externref`.
|
|
766
1140
|
const ret = arg0;
|
|
767
1141
|
return ret;
|
|
768
1142
|
},
|
|
769
|
-
|
|
1143
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
770
1144
|
// Cast intrinsic for `I64 -> Externref`.
|
|
771
1145
|
const ret = arg0;
|
|
772
1146
|
return ret;
|
|
773
1147
|
},
|
|
774
|
-
|
|
1148
|
+
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
775
1149
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
776
1150
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
777
1151
|
return ret;
|
|
778
1152
|
},
|
|
779
|
-
|
|
1153
|
+
__wbindgen_cast_0000000000000006: function(arg0) {
|
|
780
1154
|
// Cast intrinsic for `U64 -> Externref`.
|
|
781
1155
|
const ret = BigInt.asUintN(64, arg0);
|
|
782
1156
|
return ret;
|
|
@@ -797,31 +1171,50 @@ function __wbg_get_imports() {
|
|
|
797
1171
|
};
|
|
798
1172
|
}
|
|
799
1173
|
|
|
800
|
-
function
|
|
801
|
-
|
|
1174
|
+
function wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
1175
|
+
wasm.wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke_______true_(arg0, arg1);
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
function wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke___wasm_bindgen_9e362b674ca4cea___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_9e362b674ca4cea___JsError___true_(arg0, arg1, arg2) {
|
|
1179
|
+
const ret = wasm.wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke___wasm_bindgen_9e362b674ca4cea___JsValue__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_9e362b674ca4cea___JsError___true_(arg0, arg1, arg2);
|
|
802
1180
|
if (ret[1]) {
|
|
803
1181
|
throw takeFromExternrefTable0(ret[0]);
|
|
804
1182
|
}
|
|
805
1183
|
}
|
|
806
1184
|
|
|
807
|
-
function
|
|
808
|
-
wasm.
|
|
1185
|
+
function wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1186
|
+
wasm.wasm_bindgen_9e362b674ca4cea___convert__closures_____invoke___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined___js_sys_77b4e3062c519671___Function_fn_wasm_bindgen_9e362b674ca4cea___JsValue_____wasm_bindgen_9e362b674ca4cea___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
809
1187
|
}
|
|
810
1188
|
|
|
811
1189
|
|
|
1190
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
1191
|
+
|
|
1192
|
+
|
|
812
1193
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
813
1194
|
|
|
814
1195
|
|
|
815
1196
|
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
816
1197
|
const IndexManagerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
817
1198
|
? { register: () => {}, unregister: () => {} }
|
|
818
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_indexmanager_free(ptr
|
|
1199
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_indexmanager_free(ptr, 1));
|
|
819
1200
|
const ManageClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
820
1201
|
? { register: () => {}, unregister: () => {} }
|
|
821
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_manageclient_free(ptr
|
|
1202
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_manageclient_free(ptr, 1));
|
|
1203
|
+
const ModelContentKeysFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1204
|
+
? { register: () => {}, unregister: () => {} }
|
|
1205
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_modelcontentkeys_free(ptr, 1));
|
|
1206
|
+
const ModelKeyExchangeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1207
|
+
? { register: () => {}, unregister: () => {} }
|
|
1208
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_modelkeyexchange_free(ptr, 1));
|
|
1209
|
+
const ProjectKeyAuthenticatorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1210
|
+
? { register: () => {}, unregister: () => {} }
|
|
1211
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_projectkeyauthenticator_free(ptr, 1));
|
|
1212
|
+
const SealedModelFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1213
|
+
? { register: () => {}, unregister: () => {} }
|
|
1214
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_sealedmodel_free(ptr, 1));
|
|
822
1215
|
const TokenizerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
823
1216
|
? { register: () => {}, unregister: () => {} }
|
|
824
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_tokenizer_free(ptr
|
|
1217
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_tokenizer_free(ptr, 1));
|
|
825
1218
|
|
|
826
1219
|
function addToExternrefTable0(obj) {
|
|
827
1220
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -829,6 +1222,12 @@ function addToExternrefTable0(obj) {
|
|
|
829
1222
|
return idx;
|
|
830
1223
|
}
|
|
831
1224
|
|
|
1225
|
+
function _assertClass(instance, klass) {
|
|
1226
|
+
if (!(instance instanceof klass)) {
|
|
1227
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
|
|
832
1231
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
833
1232
|
? { register: () => {}, unregister: () => {} }
|
|
834
1233
|
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
@@ -925,8 +1324,7 @@ function getFloat32ArrayMemory0() {
|
|
|
925
1324
|
}
|
|
926
1325
|
|
|
927
1326
|
function getStringFromWasm0(ptr, len) {
|
|
928
|
-
|
|
929
|
-
return decodeText(ptr, len);
|
|
1327
|
+
return decodeText(ptr >>> 0, len);
|
|
930
1328
|
}
|
|
931
1329
|
|
|
932
1330
|
let cachedUint32ArrayMemory0 = null;
|
|
@@ -1089,8 +1487,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
1089
1487
|
|
|
1090
1488
|
let WASM_VECTOR_LEN = 0;
|
|
1091
1489
|
|
|
1092
|
-
let wasmModule, wasm;
|
|
1490
|
+
let wasmModule, wasmInstance, wasm;
|
|
1093
1491
|
function __wbg_finalize_init(instance, module) {
|
|
1492
|
+
wasmInstance = instance;
|
|
1094
1493
|
wasm = instance.exports;
|
|
1095
1494
|
wasmModule = module;
|
|
1096
1495
|
cachedDataViewMemory0 = null;
|
package/moss_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED