libchai 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chai_bg.js DELETED
@@ -1,706 +0,0 @@
1
- let wasm;
2
- export function __wbg_set_wasm(val) {
3
- wasm = val;
4
- }
5
-
6
-
7
- const heap = new Array(128).fill(undefined);
8
-
9
- heap.push(undefined, null, true, false);
10
-
11
- function getObject(idx) { return heap[idx]; }
12
-
13
- let WASM_VECTOR_LEN = 0;
14
-
15
- let cachedUint8ArrayMemory0 = null;
16
-
17
- function getUint8ArrayMemory0() {
18
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
19
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
20
- }
21
- return cachedUint8ArrayMemory0;
22
- }
23
-
24
- const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
25
-
26
- let cachedTextEncoder = new lTextEncoder('utf-8');
27
-
28
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
29
- ? function (arg, view) {
30
- return cachedTextEncoder.encodeInto(arg, view);
31
- }
32
- : function (arg, view) {
33
- const buf = cachedTextEncoder.encode(arg);
34
- view.set(buf);
35
- return {
36
- read: arg.length,
37
- written: buf.length
38
- };
39
- });
40
-
41
- function passStringToWasm0(arg, malloc, realloc) {
42
-
43
- if (realloc === undefined) {
44
- const buf = cachedTextEncoder.encode(arg);
45
- const ptr = malloc(buf.length, 1) >>> 0;
46
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
47
- WASM_VECTOR_LEN = buf.length;
48
- return ptr;
49
- }
50
-
51
- let len = arg.length;
52
- let ptr = malloc(len, 1) >>> 0;
53
-
54
- const mem = getUint8ArrayMemory0();
55
-
56
- let offset = 0;
57
-
58
- for (; offset < len; offset++) {
59
- const code = arg.charCodeAt(offset);
60
- if (code > 0x7F) break;
61
- mem[ptr + offset] = code;
62
- }
63
-
64
- if (offset !== len) {
65
- if (offset !== 0) {
66
- arg = arg.slice(offset);
67
- }
68
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
69
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
70
- const ret = encodeString(arg, view);
71
-
72
- offset += ret.written;
73
- ptr = realloc(ptr, len, offset, 1) >>> 0;
74
- }
75
-
76
- WASM_VECTOR_LEN = offset;
77
- return ptr;
78
- }
79
-
80
- let cachedDataViewMemory0 = null;
81
-
82
- function getDataViewMemory0() {
83
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
84
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
85
- }
86
- return cachedDataViewMemory0;
87
- }
88
-
89
- let heap_next = heap.length;
90
-
91
- function addHeapObject(obj) {
92
- if (heap_next === heap.length) heap.push(heap.length + 1);
93
- const idx = heap_next;
94
- heap_next = heap[idx];
95
-
96
- heap[idx] = obj;
97
- return idx;
98
- }
99
-
100
- function handleError(f, args) {
101
- try {
102
- return f.apply(this, args);
103
- } catch (e) {
104
- wasm.__wbindgen_export_2(addHeapObject(e));
105
- }
106
- }
107
-
108
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
109
-
110
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
111
-
112
- cachedTextDecoder.decode();
113
-
114
- function getStringFromWasm0(ptr, len) {
115
- ptr = ptr >>> 0;
116
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
117
- }
118
-
119
- function dropObject(idx) {
120
- if (idx < 132) return;
121
- heap[idx] = heap_next;
122
- heap_next = idx;
123
- }
124
-
125
- function takeObject(idx) {
126
- const ret = getObject(idx);
127
- dropObject(idx);
128
- return ret;
129
- }
130
-
131
- function isLikeNone(x) {
132
- return x === undefined || x === null;
133
- }
134
-
135
- function debugString(val) {
136
- // primitive types
137
- const type = typeof val;
138
- if (type == 'number' || type == 'boolean' || val == null) {
139
- return `${val}`;
140
- }
141
- if (type == 'string') {
142
- return `"${val}"`;
143
- }
144
- if (type == 'symbol') {
145
- const description = val.description;
146
- if (description == null) {
147
- return 'Symbol';
148
- } else {
149
- return `Symbol(${description})`;
150
- }
151
- }
152
- if (type == 'function') {
153
- const name = val.name;
154
- if (typeof name == 'string' && name.length > 0) {
155
- return `Function(${name})`;
156
- } else {
157
- return 'Function';
158
- }
159
- }
160
- // objects
161
- if (Array.isArray(val)) {
162
- const length = val.length;
163
- let debug = '[';
164
- if (length > 0) {
165
- debug += debugString(val[0]);
166
- }
167
- for(let i = 1; i < length; i++) {
168
- debug += ', ' + debugString(val[i]);
169
- }
170
- debug += ']';
171
- return debug;
172
- }
173
- // Test for built-in
174
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
175
- let className;
176
- if (builtInMatches && builtInMatches.length > 1) {
177
- className = builtInMatches[1];
178
- } else {
179
- // Failed to match the standard '[object ClassName]'
180
- return toString.call(val);
181
- }
182
- if (className == 'Object') {
183
- // we're a user defined class or Object
184
- // JSON.stringify avoids problems with cycles, and is generally much
185
- // easier than looping through ownProperties of `val`.
186
- try {
187
- return 'Object(' + JSON.stringify(val) + ')';
188
- } catch (_) {
189
- return 'Object';
190
- }
191
- }
192
- // errors
193
- if (val instanceof Error) {
194
- return `${val.name}: ${val.message}\n${val.stack}`;
195
- }
196
- // TODO we could test for more things here, like `Set`s and `Map`s.
197
- return className;
198
- }
199
- /**
200
- * 用于在图形界面验证输入的配置是否正确
201
- * @param {any} js_config
202
- * @returns {any}
203
- */
204
- export function validate(js_config) {
205
- try {
206
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
207
- wasm.validate(retptr, addHeapObject(js_config));
208
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
209
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
210
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
211
- if (r2) {
212
- throw takeObject(r1);
213
- }
214
- return takeObject(r0);
215
- } finally {
216
- wasm.__wbindgen_add_to_stack_pointer(16);
217
- }
218
- }
219
-
220
- const WebFinalization = (typeof FinalizationRegistry === 'undefined')
221
- ? { register: () => {}, unregister: () => {} }
222
- : new FinalizationRegistry(ptr => wasm.__wbg_web_free(ptr >>> 0, 1));
223
- /**
224
- * 通过图形界面来使用 libchai 的入口,实现了界面特征
225
- */
226
- export class Web {
227
-
228
- static __wrap(ptr) {
229
- ptr = ptr >>> 0;
230
- const obj = Object.create(Web.prototype);
231
- obj.__wbg_ptr = ptr;
232
- WebFinalization.register(obj, obj.__wbg_ptr, obj);
233
- return obj;
234
- }
235
-
236
- __destroy_into_raw() {
237
- const ptr = this.__wbg_ptr;
238
- this.__wbg_ptr = 0;
239
- WebFinalization.unregister(this);
240
- return ptr;
241
- }
242
-
243
- free() {
244
- const ptr = this.__destroy_into_raw();
245
- wasm.__wbg_web_free(ptr, 0);
246
- }
247
- /**
248
- * @param {Function} 回调
249
- * @returns {Web}
250
- */
251
- static new(回调) {
252
- const ret = wasm.web_new(addHeapObject(回调));
253
- return Web.__wrap(ret);
254
- }
255
- /**
256
- * @param {any} 前端参数
257
- */
258
- sync(前端参数) {
259
- try {
260
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
261
- wasm.web_sync(retptr, this.__wbg_ptr, addHeapObject(前端参数));
262
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
263
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
264
- if (r1) {
265
- throw takeObject(r0);
266
- }
267
- } finally {
268
- wasm.__wbindgen_add_to_stack_pointer(16);
269
- }
270
- }
271
- /**
272
- * @param {any} 前端目标函数配置
273
- * @returns {any}
274
- */
275
- encode_evaluate(前端目标函数配置) {
276
- try {
277
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
278
- wasm.web_encode_evaluate(retptr, this.__wbg_ptr, addHeapObject(前端目标函数配置));
279
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
280
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
281
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
282
- if (r2) {
283
- throw takeObject(r1);
284
- }
285
- return takeObject(r0);
286
- } finally {
287
- wasm.__wbindgen_add_to_stack_pointer(16);
288
- }
289
- }
290
- optimize() {
291
- try {
292
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
293
- wasm.web_optimize(retptr, this.__wbg_ptr);
294
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
295
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
296
- if (r1) {
297
- throw takeObject(r0);
298
- }
299
- } finally {
300
- wasm.__wbindgen_add_to_stack_pointer(16);
301
- }
302
- }
303
- }
304
-
305
- export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
306
- const ret = String(getObject(arg1));
307
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
308
- const len1 = WASM_VECTOR_LEN;
309
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
310
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
311
- };
312
-
313
- export function __wbg_buffer_609cc3eee51ed158(arg0) {
314
- const ret = getObject(arg0).buffer;
315
- return addHeapObject(ret);
316
- };
317
-
318
- export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
319
- const ret = getObject(arg0).call(getObject(arg1));
320
- return addHeapObject(ret);
321
- }, arguments) };
322
-
323
- export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
324
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
325
- return addHeapObject(ret);
326
- }, arguments) };
327
-
328
- export function __wbg_codePointAt_78181f32881e5b59(arg0, arg1) {
329
- const ret = getObject(arg0).codePointAt(arg1 >>> 0);
330
- return addHeapObject(ret);
331
- };
332
-
333
- export function __wbg_crypto_ed58b8e10a292839(arg0) {
334
- const ret = getObject(arg0).crypto;
335
- return addHeapObject(ret);
336
- };
337
-
338
- export function __wbg_done_769e5ede4b31c67b(arg0) {
339
- const ret = getObject(arg0).done;
340
- return ret;
341
- };
342
-
343
- export function __wbg_entries_3265d4158b33e5dc(arg0) {
344
- const ret = Object.entries(getObject(arg0));
345
- return addHeapObject(ret);
346
- };
347
-
348
- export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
349
- let deferred0_0;
350
- let deferred0_1;
351
- try {
352
- deferred0_0 = arg0;
353
- deferred0_1 = arg1;
354
- console.error(getStringFromWasm0(arg0, arg1));
355
- } finally {
356
- wasm.__wbindgen_export_3(deferred0_0, deferred0_1, 1);
357
- }
358
- };
359
-
360
- export function __wbg_fromCodePoint_f37c25c172f2e8b5() { return handleError(function (arg0) {
361
- const ret = String.fromCodePoint(arg0 >>> 0);
362
- return addHeapObject(ret);
363
- }, arguments) };
364
-
365
- export function __wbg_getRandomValues_bcb4912f16000dc4() { return handleError(function (arg0, arg1) {
366
- getObject(arg0).getRandomValues(getObject(arg1));
367
- }, arguments) };
368
-
369
- export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
370
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
371
- return addHeapObject(ret);
372
- }, arguments) };
373
-
374
- export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
375
- const ret = getObject(arg0)[arg1 >>> 0];
376
- return addHeapObject(ret);
377
- };
378
-
379
- export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
380
- const ret = getObject(arg0)[getObject(arg1)];
381
- return addHeapObject(ret);
382
- };
383
-
384
- export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
385
- let result;
386
- try {
387
- result = getObject(arg0) instanceof ArrayBuffer;
388
- } catch (_) {
389
- result = false;
390
- }
391
- const ret = result;
392
- return ret;
393
- };
394
-
395
- export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
396
- let result;
397
- try {
398
- result = getObject(arg0) instanceof Map;
399
- } catch (_) {
400
- result = false;
401
- }
402
- const ret = result;
403
- return ret;
404
- };
405
-
406
- export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
407
- let result;
408
- try {
409
- result = getObject(arg0) instanceof Uint8Array;
410
- } catch (_) {
411
- result = false;
412
- }
413
- const ret = result;
414
- return ret;
415
- };
416
-
417
- export function __wbg_isArray_a1eab7e0d067391b(arg0) {
418
- const ret = Array.isArray(getObject(arg0));
419
- return ret;
420
- };
421
-
422
- export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
423
- const ret = Number.isSafeInteger(getObject(arg0));
424
- return ret;
425
- };
426
-
427
- export function __wbg_iterator_9a24c88df860dc65() {
428
- const ret = Symbol.iterator;
429
- return addHeapObject(ret);
430
- };
431
-
432
- export function __wbg_length_a446193dc22c12f8(arg0) {
433
- const ret = getObject(arg0).length;
434
- return ret;
435
- };
436
-
437
- export function __wbg_length_d56737991078581b(arg0) {
438
- const ret = getObject(arg0).length;
439
- return ret;
440
- };
441
-
442
- export function __wbg_length_e2d2a49132c1b256(arg0) {
443
- const ret = getObject(arg0).length;
444
- return ret;
445
- };
446
-
447
- export function __wbg_msCrypto_0a36e2ec3a343d26(arg0) {
448
- const ret = getObject(arg0).msCrypto;
449
- return addHeapObject(ret);
450
- };
451
-
452
- export function __wbg_new_405e22f390576ce2() {
453
- const ret = new Object();
454
- return addHeapObject(ret);
455
- };
456
-
457
- export function __wbg_new_5e0be73521bc8c17() {
458
- const ret = new Map();
459
- return addHeapObject(ret);
460
- };
461
-
462
- export function __wbg_new_78feb108b6472713() {
463
- const ret = new Array();
464
- return addHeapObject(ret);
465
- };
466
-
467
- export function __wbg_new_8a6f238a6ece86ea() {
468
- const ret = new Error();
469
- return addHeapObject(ret);
470
- };
471
-
472
- export function __wbg_new_a12002a7f91c75be(arg0) {
473
- const ret = new Uint8Array(getObject(arg0));
474
- return addHeapObject(ret);
475
- };
476
-
477
- export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
478
- const ret = new Function(getStringFromWasm0(arg0, arg1));
479
- return addHeapObject(ret);
480
- };
481
-
482
- export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
483
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
484
- return addHeapObject(ret);
485
- };
486
-
487
- export function __wbg_newwithlength_a381634e90c276d4(arg0) {
488
- const ret = new Uint8Array(arg0 >>> 0);
489
- return addHeapObject(ret);
490
- };
491
-
492
- export function __wbg_next_25feadfc0913fea9(arg0) {
493
- const ret = getObject(arg0).next;
494
- return addHeapObject(ret);
495
- };
496
-
497
- export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
498
- const ret = getObject(arg0).next();
499
- return addHeapObject(ret);
500
- }, arguments) };
501
-
502
- export function __wbg_node_02999533c4ea02e3(arg0) {
503
- const ret = getObject(arg0).node;
504
- return addHeapObject(ret);
505
- };
506
-
507
- export function __wbg_process_5c1d670bc53614b8(arg0) {
508
- const ret = getObject(arg0).process;
509
- return addHeapObject(ret);
510
- };
511
-
512
- export function __wbg_randomFillSync_ab2cfe79ebbf2740() { return handleError(function (arg0, arg1) {
513
- getObject(arg0).randomFillSync(takeObject(arg1));
514
- }, arguments) };
515
-
516
- export function __wbg_require_79b1e9274cde3c87() { return handleError(function () {
517
- const ret = module.require;
518
- return addHeapObject(ret);
519
- }, arguments) };
520
-
521
- export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
522
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
523
- };
524
-
525
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
526
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
527
- };
528
-
529
- export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
530
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
531
- };
532
-
533
- export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
534
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
535
- return addHeapObject(ret);
536
- };
537
-
538
- export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
539
- const ret = getObject(arg1).stack;
540
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
541
- const len1 = WASM_VECTOR_LEN;
542
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
543
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
544
- };
545
-
546
- export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
547
- const ret = typeof global === 'undefined' ? null : global;
548
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
549
- };
550
-
551
- export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
552
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
553
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
554
- };
555
-
556
- export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
557
- const ret = typeof self === 'undefined' ? null : self;
558
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
559
- };
560
-
561
- export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
562
- const ret = typeof window === 'undefined' ? null : window;
563
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
564
- };
565
-
566
- export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
567
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
568
- return addHeapObject(ret);
569
- };
570
-
571
- export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
572
- const ret = getObject(arg0).value;
573
- return addHeapObject(ret);
574
- };
575
-
576
- export function __wbg_versions_c71aa1626a93e0a1(arg0) {
577
- const ret = getObject(arg0).versions;
578
- return addHeapObject(ret);
579
- };
580
-
581
- export function __wbindgen_as_number(arg0) {
582
- const ret = +getObject(arg0);
583
- return ret;
584
- };
585
-
586
- export function __wbindgen_bigint_from_i64(arg0) {
587
- const ret = arg0;
588
- return addHeapObject(ret);
589
- };
590
-
591
- export function __wbindgen_bigint_from_u64(arg0) {
592
- const ret = BigInt.asUintN(64, arg0);
593
- return addHeapObject(ret);
594
- };
595
-
596
- export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
597
- const v = getObject(arg1);
598
- const ret = typeof(v) === 'bigint' ? v : undefined;
599
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
600
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
601
- };
602
-
603
- export function __wbindgen_boolean_get(arg0) {
604
- const v = getObject(arg0);
605
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
606
- return ret;
607
- };
608
-
609
- export function __wbindgen_debug_string(arg0, arg1) {
610
- const ret = debugString(getObject(arg1));
611
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
612
- const len1 = WASM_VECTOR_LEN;
613
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
614
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
615
- };
616
-
617
- export function __wbindgen_error_new(arg0, arg1) {
618
- const ret = new Error(getStringFromWasm0(arg0, arg1));
619
- return addHeapObject(ret);
620
- };
621
-
622
- export function __wbindgen_in(arg0, arg1) {
623
- const ret = getObject(arg0) in getObject(arg1);
624
- return ret;
625
- };
626
-
627
- export function __wbindgen_is_bigint(arg0) {
628
- const ret = typeof(getObject(arg0)) === 'bigint';
629
- return ret;
630
- };
631
-
632
- export function __wbindgen_is_function(arg0) {
633
- const ret = typeof(getObject(arg0)) === 'function';
634
- return ret;
635
- };
636
-
637
- export function __wbindgen_is_object(arg0) {
638
- const val = getObject(arg0);
639
- const ret = typeof(val) === 'object' && val !== null;
640
- return ret;
641
- };
642
-
643
- export function __wbindgen_is_string(arg0) {
644
- const ret = typeof(getObject(arg0)) === 'string';
645
- return ret;
646
- };
647
-
648
- export function __wbindgen_is_undefined(arg0) {
649
- const ret = getObject(arg0) === undefined;
650
- return ret;
651
- };
652
-
653
- export function __wbindgen_jsval_eq(arg0, arg1) {
654
- const ret = getObject(arg0) === getObject(arg1);
655
- return ret;
656
- };
657
-
658
- export function __wbindgen_jsval_loose_eq(arg0, arg1) {
659
- const ret = getObject(arg0) == getObject(arg1);
660
- return ret;
661
- };
662
-
663
- export function __wbindgen_memory() {
664
- const ret = wasm.memory;
665
- return addHeapObject(ret);
666
- };
667
-
668
- export function __wbindgen_number_get(arg0, arg1) {
669
- const obj = getObject(arg1);
670
- const ret = typeof(obj) === 'number' ? obj : undefined;
671
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
672
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
673
- };
674
-
675
- export function __wbindgen_number_new(arg0) {
676
- const ret = arg0;
677
- return addHeapObject(ret);
678
- };
679
-
680
- export function __wbindgen_object_clone_ref(arg0) {
681
- const ret = getObject(arg0);
682
- return addHeapObject(ret);
683
- };
684
-
685
- export function __wbindgen_object_drop_ref(arg0) {
686
- takeObject(arg0);
687
- };
688
-
689
- export function __wbindgen_string_get(arg0, arg1) {
690
- const obj = getObject(arg1);
691
- const ret = typeof(obj) === 'string' ? obj : undefined;
692
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
693
- var len1 = WASM_VECTOR_LEN;
694
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
695
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
696
- };
697
-
698
- export function __wbindgen_string_new(arg0, arg1) {
699
- const ret = getStringFromWasm0(arg0, arg1);
700
- return addHeapObject(ret);
701
- };
702
-
703
- export function __wbindgen_throw(arg0, arg1) {
704
- throw new Error(getStringFromWasm0(arg0, arg1));
705
- };
706
-