webslm 0.6.0 → 0.9.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.
Files changed (45) hide show
  1. package/README.md +86 -3
  2. package/dist/ai-sdk/embedding-model.d.ts +52 -0
  3. package/dist/ai-sdk/embedding-model.js +112 -0
  4. package/dist/ai-sdk/image-model.d.ts +53 -0
  5. package/dist/ai-sdk/image-model.js +148 -0
  6. package/dist/ai-sdk/index.d.ts +39 -0
  7. package/dist/ai-sdk/index.js +66 -11
  8. package/dist/client.d.ts +6 -0
  9. package/dist/client.js +8 -1
  10. package/dist/download.js +2 -2
  11. package/dist/engine.js +187 -0
  12. package/dist/errors.d.ts +5 -0
  13. package/dist/errors.js +1 -0
  14. package/dist/fit.d.ts +2 -2
  15. package/dist/fit.js +5 -2
  16. package/dist/hub.d.ts +38 -3
  17. package/dist/hub.js +87 -8
  18. package/dist/image.d.ts +201 -0
  19. package/dist/image.js +353 -0
  20. package/dist/index.d.ts +6 -4
  21. package/dist/index.js +5 -3
  22. package/dist/memory.d.ts +24 -7
  23. package/dist/memory.js +49 -11
  24. package/dist/models.d.ts +19 -1
  25. package/dist/models.js +64 -7
  26. package/dist/native.d.ts +28 -0
  27. package/dist/protocol.d.ts +79 -2
  28. package/dist/simple.d.ts +4 -1
  29. package/dist/simple.js +9 -2
  30. package/dist/types.d.ts +87 -0
  31. package/dist/wasm.d.ts +2 -0
  32. package/native-manifest.json +29 -29
  33. package/package.json +1 -1
  34. package/wasm/relaxed/webslm_wasm.d.ts +72 -7
  35. package/wasm/relaxed/webslm_wasm.js +165 -19
  36. package/wasm/relaxed/webslm_wasm_bg.wasm +0 -0
  37. package/wasm/relaxed/webslm_wasm_bg.wasm.d.ts +10 -3
  38. package/wasm/simd/webslm_wasm.d.ts +72 -7
  39. package/wasm/simd/webslm_wasm.js +165 -19
  40. package/wasm/simd/webslm_wasm_bg.wasm +0 -0
  41. package/wasm/simd/webslm_wasm_bg.wasm.d.ts +10 -3
  42. package/wasm/threads/webslm_wasm.d.ts +73 -8
  43. package/wasm/threads/webslm_wasm.js +171 -25
  44. package/wasm/threads/webslm_wasm_bg.wasm +0 -0
  45. package/wasm/threads/webslm_wasm_bg.wasm.d.ts +11 -4
@@ -49,9 +49,41 @@ export class Sha256Hasher {
49
49
  update(bytes: Uint8Array): void;
50
50
  }
51
51
 
52
+ /**
53
+ * A loaded text-to-image pipeline.
54
+ */
55
+ export class WasmImageModel {
56
+ private constructor();
57
+ free(): void;
58
+ [Symbol.dispose](): void;
59
+ /**
60
+ * Generates an image of `prompt`. `options_json`: `{ width?, height?,
61
+ * steps?, guidance?, seed?, negativePrompt? }` (see `ImageOptionsJs`).
62
+ * `on_progress(phase, step, steps)` is called before encoding the
63
+ * prompt, before each denoising step and before decoding; returning
64
+ * `false` stops the generation (it rejects with `"ABORTED"`).
65
+ * Resolves to `{ width, height, seed, rgba: Uint8Array }` (row-major
66
+ * 8-bit RGBA).
67
+ */
68
+ generate(prompt: string, options_json: string, on_progress?: Function | null): Promise<any>;
69
+ /**
70
+ * Describes the pipeline (see [`ImageModelInfo`]).
71
+ */
72
+ info(): any;
73
+ /**
74
+ * Loads a pipeline from `source`. `options_json`:
75
+ * `{ format?: "f16" | "f32" | "bf16" | "q8" | ..., device?: "cpu" |
76
+ * "webgpu" | "auto" }` (defaults: f16 weights, `auto`). `decoder`,
77
+ * when given, serves a standalone autoencoder (`config.json` and
78
+ * `diffusion_pytorch_model.safetensors`, e.g. `madebyollin/taesd`)
79
+ * that replaces the pipeline's decoder.
80
+ */
81
+ static load(source: JsSource, options_json: string, decoder?: JsSource | null): Promise<WasmImageModel>;
82
+ }
83
+
52
84
  /**
53
85
  * A loaded checkpoint, with a default session used by `chat` and
54
- * `generate`.
86
+ * `generate` (language models), or an encoder answering `embed`.
55
87
  */
56
88
  export class WasmModel {
57
89
  private constructor();
@@ -84,6 +116,17 @@ export class WasmModel {
84
116
  * Decodes token ids into text.
85
117
  */
86
118
  detokenize(ids: Uint32Array, skip_special_tokens: boolean): string;
119
+ /**
120
+ * Embeds texts with an encoder. `texts_json` is a JSON array of
121
+ * strings; `options_json`: `{ pooling?: "cls" | "mean" | "max" |
122
+ * "mean_sqrt_len_tokens" | "weightedmean" | "lasttoken", normalize?:
123
+ * boolean }` (defaults: the model's sentence-transformers settings).
124
+ * Resolves to `{ data: Float32Array, dimensions: number, tokens:
125
+ * number[] }`: the vectors one after the other, and the number of
126
+ * tokens read from each text (texts longer than the model's limit are
127
+ * cut). Rejects with `UNSUPPORTED_TASK` on a language model.
128
+ */
129
+ embed(texts_json: string, options_json: string): Promise<any>;
87
130
  /**
88
131
  * Completes raw text in the default session; see
89
132
  * [`WasmSession::generate`].
@@ -99,7 +142,8 @@ export class WasmModel {
99
142
  * contextLength?: number, deterministic?: boolean,
100
143
  * activations?: "quantized" | "f32", device?: "cpu" | "webgpu" | "auto",
101
144
  * adapterScale?: number, adapterMode?: "unmerged" | "merged",
102
- * vision?: boolean }` (`vision: false` skips the vision encoder of a
145
+ * vision?: boolean, kvCache?: "f32" | "int8", kvResidual?: number,
146
+ * kvBudget?: number }` (`vision: false` skips the vision encoder of a
103
147
  * vision-language checkpoint).
104
148
  *
105
149
  * `device` defaults to `"cpu"`. `"auto"` picks WebGPU when an adapter
@@ -125,6 +169,9 @@ export class WasmModel {
125
169
  * `format`, a pre-quantized checkpoint (a `Q8_0` GGUF file, a
126
170
  * `webslm export` checkpoint) loads in its own format, its blocks
127
171
  * unchanged; weights already in the load format skip `weightCache`.
172
+ *
173
+ * An encoder loads in f32 unless `format` says otherwise, and takes
174
+ * no `lora`.
128
175
  */
129
176
  static load(source: JsSource, options_json: string, lora?: JsSource | null, weight_cache?: JsWeightCache | null): Promise<WasmModel>;
130
177
  /**
@@ -141,13 +188,18 @@ export class WasmModel {
141
188
  */
142
189
  renderChat(messages_json: string, kwargs_json: string): string;
143
190
  /**
144
- * Clears the default session.
191
+ * Clears the default session (nothing to clear for an encoder).
145
192
  */
146
193
  reset(): void;
147
194
  /**
148
- * Encodes text into token ids.
195
+ * Encodes text into token ids (an encoder's tokenizer cuts texts at
196
+ * its limit, as `embed` does).
149
197
  */
150
198
  tokenize(text: string, add_special_tokens: boolean): Uint32Array;
199
+ /**
200
+ * Whether the model is an encoder (it answers `embed`, not `chat`).
201
+ */
202
+ readonly isEncoder: boolean;
151
203
  }
152
204
 
153
205
  /**
@@ -287,6 +339,12 @@ export function parseSafetensorsHeader(bytes: Uint8Array): any;
287
339
  */
288
340
  export function startThreadPool(threads: number): Promise<void>;
289
341
 
342
+ /**
343
+ * `model_type` values of the encoders this build embeds with (models
344
+ * whose `WasmModel` answers `embed`).
345
+ */
346
+ export function supportedEncoderTypes(): string[];
347
+
290
348
  /**
291
349
  * `model_type` values (from `config.json`) of the architectures this build
292
350
  * can run.
@@ -315,6 +373,7 @@ export interface InitOutput {
315
373
  readonly __wbg_jssource_free: (a: number, b: number) => void;
316
374
  readonly __wbg_jsweightcache_free: (a: number, b: number) => void;
317
375
  readonly __wbg_sha256hasher_free: (a: number, b: number) => void;
376
+ readonly __wbg_wasmimagemodel_free: (a: number, b: number) => void;
318
377
  readonly __wbg_wasmmodel_free: (a: number, b: number) => void;
319
378
  readonly __wbg_wasmsession_free: (a: number, b: number) => void;
320
379
  readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
@@ -327,15 +386,21 @@ export interface InitOutput {
327
386
  readonly sha256hasher_new: () => number;
328
387
  readonly sha256hasher_update: (a: number, b: number, c: number) => void;
329
388
  readonly startThreadPool: (a: number) => any;
389
+ readonly supportedEncoderTypes: () => [number, number];
330
390
  readonly supportedModelTypes: () => [number, number];
331
391
  readonly version: () => [number, number];
392
+ readonly wasmimagemodel_generate: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
393
+ readonly wasmimagemodel_info: (a: number) => [number, number, number];
394
+ readonly wasmimagemodel_load: (a: number, b: number, c: number, d: number) => any;
332
395
  readonly wasmmodel_applyAdapter: (a: number, b: number, c: number, d: number) => any;
333
396
  readonly wasmmodel_chat: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
334
397
  readonly wasmmodel_chatWithMedia: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: any, k: number) => any;
335
398
  readonly wasmmodel_createSession: (a: number) => [number, number, number];
336
399
  readonly wasmmodel_detokenize: (a: number, b: number, c: number, d: number) => [number, number, number, number];
400
+ readonly wasmmodel_embed: (a: number, b: number, c: number, d: number, e: number) => any;
337
401
  readonly wasmmodel_generate: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
338
402
  readonly wasmmodel_info: (a: number) => [number, number, number];
403
+ readonly wasmmodel_isEncoder: (a: number) => number;
339
404
  readonly wasmmodel_load: (a: number, b: number, c: number, d: number, e: number) => any;
340
405
  readonly wasmmodel_removeAdapter: (a: number) => any;
341
406
  readonly wasmmodel_renderChat: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
@@ -362,12 +427,12 @@ export interface InitOutput {
362
427
  readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___Function_fn_wasm_bindgen_3c612a990bfab728___JsValue_____wasm_bindgen_3c612a990bfab728___sys__Undefined___js_sys_b608be85a12bc1d0___Function_fn_wasm_bindgen_3c612a990bfab728___JsValue_____wasm_bindgen_3c612a990bfab728___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
363
428
  readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue__core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_: (a: number, b: number, c: any) => [number, number];
364
429
  readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_: (a: number, b: number, c: any) => [number, number];
365
- readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__48: (a: number, b: number, c: any) => [number, number];
366
- readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__49: (a: number, b: number, c: any) => [number, number];
430
+ readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__54: (a: number, b: number, c: any) => [number, number];
431
+ readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__55: (a: number, b: number, c: any) => [number, number];
367
432
  readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_: (a: number, b: number, c: any) => void;
368
433
  readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true_: (a: number, b: number, c: any) => void;
369
- readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__46: (a: number, b: number, c: any) => void;
370
- readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__47: (a: number, b: number, c: any) => void;
434
+ readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__52: (a: number, b: number, c: any) => void;
435
+ readonly wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__53: (a: number, b: number, c: any) => void;
371
436
  readonly memory: WebAssembly.Memory;
372
437
  readonly __wbindgen_malloc: (a: number, b: number) => number;
373
438
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -119,9 +119,89 @@ export class Sha256Hasher {
119
119
  }
120
120
  if (Symbol.dispose) Sha256Hasher.prototype[Symbol.dispose] = Sha256Hasher.prototype.free;
121
121
 
122
+ /**
123
+ * A loaded text-to-image pipeline.
124
+ */
125
+ export class WasmImageModel {
126
+ static __wrap(ptr) {
127
+ const obj = Object.create(WasmImageModel.prototype);
128
+ obj.__wbg_ptr = ptr;
129
+ WasmImageModelFinalization.register(obj, obj.__wbg_ptr, obj);
130
+ return obj;
131
+ }
132
+ __destroy_into_raw() {
133
+ const ptr = this.__wbg_ptr;
134
+ this.__wbg_ptr = 0;
135
+ WasmImageModelFinalization.unregister(this);
136
+ return ptr;
137
+ }
138
+ free() {
139
+ const ptr = this.__destroy_into_raw();
140
+ wasm.__wbg_wasmimagemodel_free(ptr, 0);
141
+ }
142
+ /**
143
+ * Generates an image of `prompt`. `options_json`: `{ width?, height?,
144
+ * steps?, guidance?, seed?, negativePrompt? }` (see `ImageOptionsJs`).
145
+ * `on_progress(phase, step, steps)` is called before encoding the
146
+ * prompt, before each denoising step and before decoding; returning
147
+ * `false` stops the generation (it rejects with `"ABORTED"`).
148
+ * Resolves to `{ width, height, seed, rgba: Uint8Array }` (row-major
149
+ * 8-bit RGBA).
150
+ * @param {string} prompt
151
+ * @param {string} options_json
152
+ * @param {Function | null} [on_progress]
153
+ * @returns {Promise<any>}
154
+ */
155
+ generate(prompt, options_json, on_progress) {
156
+ const ptr0 = passStringToWasm0(prompt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
157
+ const len0 = WASM_VECTOR_LEN;
158
+ const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
159
+ const len1 = WASM_VECTOR_LEN;
160
+ const ret = wasm.wasmimagemodel_generate(this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(on_progress) ? 0 : addToExternrefTable0(on_progress));
161
+ return ret;
162
+ }
163
+ /**
164
+ * Describes the pipeline (see [`ImageModelInfo`]).
165
+ * @returns {any}
166
+ */
167
+ info() {
168
+ const ret = wasm.wasmimagemodel_info(this.__wbg_ptr);
169
+ if (ret[2]) {
170
+ throw takeFromExternrefTable0(ret[1]);
171
+ }
172
+ return takeFromExternrefTable0(ret[0]);
173
+ }
174
+ /**
175
+ * Loads a pipeline from `source`. `options_json`:
176
+ * `{ format?: "f16" | "f32" | "bf16" | "q8" | ..., device?: "cpu" |
177
+ * "webgpu" | "auto" }` (defaults: f16 weights, `auto`). `decoder`,
178
+ * when given, serves a standalone autoencoder (`config.json` and
179
+ * `diffusion_pytorch_model.safetensors`, e.g. `madebyollin/taesd`)
180
+ * that replaces the pipeline's decoder.
181
+ * @param {JsSource} source
182
+ * @param {string} options_json
183
+ * @param {JsSource | null} [decoder]
184
+ * @returns {Promise<WasmImageModel>}
185
+ */
186
+ static load(source, options_json, decoder) {
187
+ _assertClass(source, JsSource);
188
+ var ptr0 = source.__destroy_into_raw();
189
+ const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
190
+ const len1 = WASM_VECTOR_LEN;
191
+ let ptr2 = 0;
192
+ if (!isLikeNone(decoder)) {
193
+ _assertClass(decoder, JsSource);
194
+ ptr2 = decoder.__destroy_into_raw();
195
+ }
196
+ const ret = wasm.wasmimagemodel_load(ptr0, ptr1, len1, ptr2);
197
+ return ret;
198
+ }
199
+ }
200
+ if (Symbol.dispose) WasmImageModel.prototype[Symbol.dispose] = WasmImageModel.prototype.free;
201
+
122
202
  /**
123
203
  * A loaded checkpoint, with a default session used by `chat` and
124
- * `generate`.
204
+ * `generate` (language models), or an encoder answering `embed`.
125
205
  */
126
206
  export class WasmModel {
127
207
  static __wrap(ptr) {
@@ -236,6 +316,27 @@ export class WasmModel {
236
316
  wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
237
317
  }
238
318
  }
319
+ /**
320
+ * Embeds texts with an encoder. `texts_json` is a JSON array of
321
+ * strings; `options_json`: `{ pooling?: "cls" | "mean" | "max" |
322
+ * "mean_sqrt_len_tokens" | "weightedmean" | "lasttoken", normalize?:
323
+ * boolean }` (defaults: the model's sentence-transformers settings).
324
+ * Resolves to `{ data: Float32Array, dimensions: number, tokens:
325
+ * number[] }`: the vectors one after the other, and the number of
326
+ * tokens read from each text (texts longer than the model's limit are
327
+ * cut). Rejects with `UNSUPPORTED_TASK` on a language model.
328
+ * @param {string} texts_json
329
+ * @param {string} options_json
330
+ * @returns {Promise<any>}
331
+ */
332
+ embed(texts_json, options_json) {
333
+ const ptr0 = passStringToWasm0(texts_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
334
+ const len0 = WASM_VECTOR_LEN;
335
+ const ptr1 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
336
+ const len1 = WASM_VECTOR_LEN;
337
+ const ret = wasm.wasmmodel_embed(this.__wbg_ptr, ptr0, len0, ptr1, len1);
338
+ return ret;
339
+ }
239
340
  /**
240
341
  * Completes raw text in the default session; see
241
342
  * [`WasmSession::generate`].
@@ -264,13 +365,22 @@ export class WasmModel {
264
365
  }
265
366
  return takeFromExternrefTable0(ret[0]);
266
367
  }
368
+ /**
369
+ * Whether the model is an encoder (it answers `embed`, not `chat`).
370
+ * @returns {boolean}
371
+ */
372
+ get isEncoder() {
373
+ const ret = wasm.wasmmodel_isEncoder(this.__wbg_ptr);
374
+ return ret !== 0;
375
+ }
267
376
  /**
268
377
  * Loads a checkpoint from `source`. `options_json` is a JSON object:
269
378
  * `{ format?: "q8" | "q4" | "q4_0" | "f32" | "f16" | "bf16",
270
379
  * contextLength?: number, deterministic?: boolean,
271
380
  * activations?: "quantized" | "f32", device?: "cpu" | "webgpu" | "auto",
272
381
  * adapterScale?: number, adapterMode?: "unmerged" | "merged",
273
- * vision?: boolean }` (`vision: false` skips the vision encoder of a
382
+ * vision?: boolean, kvCache?: "f32" | "int8", kvResidual?: number,
383
+ * kvBudget?: number }` (`vision: false` skips the vision encoder of a
274
384
  * vision-language checkpoint).
275
385
  *
276
386
  * `device` defaults to `"cpu"`. `"auto"` picks WebGPU when an adapter
@@ -296,6 +406,9 @@ export class WasmModel {
296
406
  * `format`, a pre-quantized checkpoint (a `Q8_0` GGUF file, a
297
407
  * `webslm export` checkpoint) loads in its own format, its blocks
298
408
  * unchanged; weights already in the load format skip `weightCache`.
409
+ *
410
+ * An encoder loads in f32 unless `format` says otherwise, and takes
411
+ * no `lora`.
299
412
  * @param {JsSource} source
300
413
  * @param {string} options_json
301
414
  * @param {JsSource | null} [lora]
@@ -362,7 +475,7 @@ export class WasmModel {
362
475
  }
363
476
  }
364
477
  /**
365
- * Clears the default session.
478
+ * Clears the default session (nothing to clear for an encoder).
366
479
  */
367
480
  reset() {
368
481
  const ret = wasm.wasmmodel_reset(this.__wbg_ptr);
@@ -371,7 +484,8 @@ export class WasmModel {
371
484
  }
372
485
  }
373
486
  /**
374
- * Encodes text into token ids.
487
+ * Encodes text into token ids (an encoder's tokenizer cuts texts at
488
+ * its limit, as `embed` does).
375
489
  * @param {string} text
376
490
  * @param {boolean} add_special_tokens
377
491
  * @returns {Uint32Array}
@@ -691,6 +805,18 @@ export function startThreadPool(threads) {
691
805
  return ret;
692
806
  }
693
807
 
808
+ /**
809
+ * `model_type` values of the encoders this build embeds with (models
810
+ * whose `WasmModel` answers `embed`).
811
+ * @returns {string[]}
812
+ */
813
+ export function supportedEncoderTypes() {
814
+ const ret = wasm.supportedEncoderTypes();
815
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
816
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
817
+ return v1;
818
+ }
819
+
694
820
  /**
695
821
  * `model_type` values (from `config.json`) of the architectures this build
696
822
  * can run.
@@ -785,6 +911,11 @@ function __wbg_get_imports(memory) {
785
911
  const ret = arg0.WorkerGlobalScope;
786
912
  return ret;
787
913
  },
914
+ __wbg___wbindgen_boolean_get_7a12af2b3f899c5a: function(arg0) {
915
+ const v = arg0;
916
+ const ret = typeof(v) === 'boolean' ? v : undefined;
917
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
918
+ },
788
919
  __wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
789
920
  const ret = debugString(arg1);
790
921
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1269,6 +1400,10 @@ function __wbg_get_imports(memory) {
1269
1400
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1270
1401
  return ret;
1271
1402
  },
1403
+ __wbg_new_from_slice_a500ec81601be48f: function(arg0, arg1) {
1404
+ const ret = new Uint32Array(getArrayU32FromWasm0(arg0, arg1));
1405
+ return ret;
1406
+ },
1272
1407
  __wbg_new_typed_6f8b0d724fe26c07: function(arg0, arg1) {
1273
1408
  try {
1274
1409
  var state0 = {a: arg0, b: arg1};
@@ -1347,6 +1482,10 @@ function __wbg_get_imports(memory) {
1347
1482
  const ret = arg0.reason;
1348
1483
  return (__wbindgen_enum_GpuDeviceLostReason.indexOf(ret) + 1 || 3) - 1;
1349
1484
  },
1485
+ __wbg_reject_bea6d825081bd4d7: function(arg0) {
1486
+ const ret = Promise.reject(arg0);
1487
+ return ret;
1488
+ },
1350
1489
  __wbg_requestAdapter_2cb1006baf7abd60: function(arg0) {
1351
1490
  const ret = arg0.requestAdapter();
1352
1491
  return ret;
@@ -1635,6 +1774,10 @@ function __wbg_get_imports(memory) {
1635
1774
  const ret = Atomics.waitAsync;
1636
1775
  return ret;
1637
1776
  },
1777
+ __wbg_wasmimagemodel_new: function(arg0) {
1778
+ const ret = WasmImageModel.__wrap(arg0);
1779
+ return ret;
1780
+ },
1638
1781
  __wbg_wasmmodel_new: function(arg0) {
1639
1782
  const ret = WasmModel.__wrap(arg0);
1640
1783
  return ret;
@@ -1643,43 +1786,43 @@ function __wbg_get_imports(memory) {
1643
1786
  arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
1644
1787
  }, arguments); },
1645
1788
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
1646
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1789
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 434, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1647
1790
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true_);
1648
1791
  return ret;
1649
1792
  },
1650
1793
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
1651
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 931, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1794
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 981, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1652
1795
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue__core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_);
1653
1796
  return ret;
1654
1797
  },
1655
1798
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
1656
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 933, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1799
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 983, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1657
1800
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_);
1658
1801
  return ret;
1659
1802
  },
1660
1803
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
1661
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 389, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1804
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 432, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1662
1805
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_);
1663
1806
  return ret;
1664
1807
  },
1665
1808
  __wbindgen_generic_0000000000000005: function(arg0, arg1) {
1666
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1667
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__46);
1809
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 434, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1810
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__52);
1668
1811
  return ret;
1669
1812
  },
1670
1813
  __wbindgen_generic_0000000000000006: function(arg0, arg1) {
1671
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1672
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__47);
1814
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 434, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1815
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__53);
1673
1816
  return ret;
1674
1817
  },
1675
1818
  __wbindgen_generic_0000000000000007: function(arg0, arg1) {
1676
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 389, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1677
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__48);
1819
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 432, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1820
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__54);
1678
1821
  return ret;
1679
1822
  },
1680
1823
  __wbindgen_generic_0000000000000008: function(arg0, arg1) {
1681
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 389, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1682
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__49);
1824
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 432, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1825
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__55);
1683
1826
  return ret;
1684
1827
  },
1685
1828
  __wbindgen_generic_0000000000000009: function(arg0) {
@@ -1725,7 +1868,7 @@ function __wbg_get_imports(memory) {
1725
1868
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1726
1869
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1727
1870
  },
1728
- memory: memory || new WebAssembly.Memory({initial:29,maximum:65536,shared:true}),
1871
+ memory: memory || new WebAssembly.Memory({initial:30,maximum:65536,shared:true}),
1729
1872
  };
1730
1873
  return {
1731
1874
  __proto__: null,
@@ -1741,12 +1884,12 @@ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b
1741
1884
  wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_(arg0, arg1, arg2);
1742
1885
  }
1743
1886
 
1744
- function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__46(arg0, arg1, arg2) {
1745
- wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__46(arg0, arg1, arg2);
1887
+ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__52(arg0, arg1, arg2) {
1888
+ wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__52(arg0, arg1, arg2);
1746
1889
  }
1747
1890
 
1748
- function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__47(arg0, arg1, arg2) {
1749
- wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__47(arg0, arg1, arg2);
1891
+ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__53(arg0, arg1, arg2) {
1892
+ wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__53(arg0, arg1, arg2);
1750
1893
  }
1751
1894
 
1752
1895
  function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue__core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_(arg0, arg1, arg2) {
@@ -1763,15 +1906,15 @@ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bin
1763
1906
  }
1764
1907
  }
1765
1908
 
1766
- function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__48(arg0, arg1, arg2) {
1767
- const ret = wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__48(arg0, arg1, arg2);
1909
+ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__54(arg0, arg1, arg2) {
1910
+ const ret = wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__54(arg0, arg1, arg2);
1768
1911
  if (ret[1]) {
1769
1912
  throw takeFromExternrefTable0(ret[0]);
1770
1913
  }
1771
1914
  }
1772
1915
 
1773
- function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__49(arg0, arg1, arg2) {
1774
- const ret = wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__49(arg0, arg1, arg2);
1916
+ function wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__55(arg0, arg1, arg2) {
1917
+ const ret = wasm.wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__55(arg0, arg1, arg2);
1775
1918
  if (ret[1]) {
1776
1919
  throw takeFromExternrefTable0(ret[0]);
1777
1920
  }
@@ -1819,6 +1962,9 @@ const JsWeightCacheFinalization = (typeof FinalizationRegistry === 'undefined')
1819
1962
  const Sha256HasherFinalization = (typeof FinalizationRegistry === 'undefined')
1820
1963
  ? { register: () => {}, unregister: () => {} }
1821
1964
  : new FinalizationRegistry(ptr => wasm.__wbg_sha256hasher_free(ptr, 1));
1965
+ const WasmImageModelFinalization = (typeof FinalizationRegistry === 'undefined')
1966
+ ? { register: () => {}, unregister: () => {} }
1967
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmimagemodel_free(ptr, 1));
1822
1968
  const WasmModelFinalization = (typeof FinalizationRegistry === 'undefined')
1823
1969
  ? { register: () => {}, unregister: () => {} }
1824
1970
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmmodel_free(ptr, 1));
Binary file
@@ -3,6 +3,7 @@
3
3
  export const __wbg_jssource_free: (a: number, b: number) => void;
4
4
  export const __wbg_jsweightcache_free: (a: number, b: number) => void;
5
5
  export const __wbg_sha256hasher_free: (a: number, b: number) => void;
6
+ export const __wbg_wasmimagemodel_free: (a: number, b: number) => void;
6
7
  export const __wbg_wasmmodel_free: (a: number, b: number) => void;
7
8
  export const __wbg_wasmsession_free: (a: number, b: number) => void;
8
9
  export const __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
@@ -15,15 +16,21 @@ export const sha256hasher_finish: (a: number) => [number, number];
15
16
  export const sha256hasher_new: () => number;
16
17
  export const sha256hasher_update: (a: number, b: number, c: number) => void;
17
18
  export const startThreadPool: (a: number) => any;
19
+ export const supportedEncoderTypes: () => [number, number];
18
20
  export const supportedModelTypes: () => [number, number];
19
21
  export const version: () => [number, number];
22
+ export const wasmimagemodel_generate: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
23
+ export const wasmimagemodel_info: (a: number) => [number, number, number];
24
+ export const wasmimagemodel_load: (a: number, b: number, c: number, d: number) => any;
20
25
  export const wasmmodel_applyAdapter: (a: number, b: number, c: number, d: number) => any;
21
26
  export const wasmmodel_chat: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
22
27
  export const wasmmodel_chatWithMedia: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: any, k: number) => any;
23
28
  export const wasmmodel_createSession: (a: number) => [number, number, number];
24
29
  export const wasmmodel_detokenize: (a: number, b: number, c: number, d: number) => [number, number, number, number];
30
+ export const wasmmodel_embed: (a: number, b: number, c: number, d: number, e: number) => any;
25
31
  export const wasmmodel_generate: (a: number, b: number, c: number, d: number, e: number, f: any, g: number) => any;
26
32
  export const wasmmodel_info: (a: number) => [number, number, number];
33
+ export const wasmmodel_isEncoder: (a: number) => number;
27
34
  export const wasmmodel_load: (a: number, b: number, c: number, d: number, e: number) => any;
28
35
  export const wasmmodel_removeAdapter: (a: number) => any;
29
36
  export const wasmmodel_renderChat: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
@@ -50,12 +57,12 @@ export const wbg_rayon_start_worker: (a: number) => void;
50
57
  export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___Function_fn_wasm_bindgen_3c612a990bfab728___JsValue_____wasm_bindgen_3c612a990bfab728___sys__Undefined___js_sys_b608be85a12bc1d0___Function_fn_wasm_bindgen_3c612a990bfab728___JsValue_____wasm_bindgen_3c612a990bfab728___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
51
58
  export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue__core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_: (a: number, b: number, c: any) => [number, number];
52
59
  export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true_: (a: number, b: number, c: any) => [number, number];
53
- export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__48: (a: number, b: number, c: any) => [number, number];
54
- export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__49: (a: number, b: number, c: any) => [number, number];
60
+ export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__54: (a: number, b: number, c: any) => [number, number];
61
+ export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___sys__JsNullable_wgpu_4ecf802b864e9046___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_2b10d7c4e784534e___result__Result_____wasm_bindgen_3c612a990bfab728___JsError___true__55: (a: number, b: number, c: any) => [number, number];
55
62
  export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___js_sys_b608be85a12bc1d0___futures__task__wait_async_polyfill__MessageEvent______true_: (a: number, b: number, c: any) => void;
56
63
  export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true_: (a: number, b: number, c: any) => void;
57
- export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__46: (a: number, b: number, c: any) => void;
58
- export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__47: (a: number, b: number, c: any) => void;
64
+ export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__52: (a: number, b: number, c: any) => void;
65
+ export const wasm_bindgen_3c612a990bfab728___convert__closures_____invoke___wasm_bindgen_3c612a990bfab728___JsValue______true__53: (a: number, b: number, c: any) => void;
59
66
  export const memory: WebAssembly.Memory;
60
67
  export const __wbindgen_malloc: (a: number, b: number) => number;
61
68
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;