ms-toollib 1.4.0 → 1.4.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.
@@ -0,0 +1,3600 @@
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 heap_next = heap.length;
14
+
15
+ function dropObject(idx) {
16
+ if (idx < 132) return;
17
+ heap[idx] = heap_next;
18
+ heap_next = idx;
19
+ }
20
+
21
+ function takeObject(idx) {
22
+ const ret = getObject(idx);
23
+ dropObject(idx);
24
+ return ret;
25
+ }
26
+
27
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
28
+
29
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
30
+
31
+ cachedTextDecoder.decode();
32
+
33
+ let cachedUint8Memory0 = null;
34
+
35
+ function getUint8Memory0() {
36
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
37
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
38
+ }
39
+ return cachedUint8Memory0;
40
+ }
41
+
42
+ function getStringFromWasm0(ptr, len) {
43
+ ptr = ptr >>> 0;
44
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
45
+ }
46
+
47
+ function addHeapObject(obj) {
48
+ if (heap_next === heap.length) heap.push(heap.length + 1);
49
+ const idx = heap_next;
50
+ heap_next = heap[idx];
51
+
52
+ heap[idx] = obj;
53
+ return idx;
54
+ }
55
+
56
+ let WASM_VECTOR_LEN = 0;
57
+
58
+ const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
59
+
60
+ let cachedTextEncoder = new lTextEncoder('utf-8');
61
+
62
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
63
+ ? function (arg, view) {
64
+ return cachedTextEncoder.encodeInto(arg, view);
65
+ }
66
+ : function (arg, view) {
67
+ const buf = cachedTextEncoder.encode(arg);
68
+ view.set(buf);
69
+ return {
70
+ read: arg.length,
71
+ written: buf.length
72
+ };
73
+ });
74
+
75
+ function passStringToWasm0(arg, malloc, realloc) {
76
+
77
+ if (realloc === undefined) {
78
+ const buf = cachedTextEncoder.encode(arg);
79
+ const ptr = malloc(buf.length, 1) >>> 0;
80
+ getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
81
+ WASM_VECTOR_LEN = buf.length;
82
+ return ptr;
83
+ }
84
+
85
+ let len = arg.length;
86
+ let ptr = malloc(len, 1) >>> 0;
87
+
88
+ const mem = getUint8Memory0();
89
+
90
+ let offset = 0;
91
+
92
+ for (; offset < len; offset++) {
93
+ const code = arg.charCodeAt(offset);
94
+ if (code > 0x7F) break;
95
+ mem[ptr + offset] = code;
96
+ }
97
+
98
+ if (offset !== len) {
99
+ if (offset !== 0) {
100
+ arg = arg.slice(offset);
101
+ }
102
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
103
+ const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
104
+ const ret = encodeString(arg, view);
105
+
106
+ offset += ret.written;
107
+ }
108
+
109
+ WASM_VECTOR_LEN = offset;
110
+ return ptr;
111
+ }
112
+
113
+ let cachedInt32Memory0 = null;
114
+
115
+ function getInt32Memory0() {
116
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
117
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
118
+ }
119
+ return cachedInt32Memory0;
120
+ }
121
+
122
+ function passArray8ToWasm0(arg, malloc) {
123
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
124
+ getUint8Memory0().set(arg, ptr / 1);
125
+ WASM_VECTOR_LEN = arg.length;
126
+ return ptr;
127
+ }
128
+
129
+ function getArrayU8FromWasm0(ptr, len) {
130
+ ptr = ptr >>> 0;
131
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
132
+ }
133
+ /**
134
+ * @param {string} board_json
135
+ * @returns {number}
136
+ */
137
+ export function cal_bbbv(board_json) {
138
+ const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
139
+ const len0 = WASM_VECTOR_LEN;
140
+ const ret = wasm.cal_bbbv(ptr0, len0);
141
+ return ret;
142
+ }
143
+
144
+ /**
145
+ * @param {string} board_json
146
+ * @returns {number}
147
+ */
148
+ export function cal_op(board_json) {
149
+ const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
150
+ const len0 = WASM_VECTOR_LEN;
151
+ const ret = wasm.cal_op(ptr0, len0);
152
+ return ret;
153
+ }
154
+
155
+ /**
156
+ * @param {string} board_json
157
+ * @param {number} mine_num
158
+ * @returns {string}
159
+ */
160
+ export function cal_possibility_onboard(board_json, mine_num) {
161
+ let deferred2_0;
162
+ let deferred2_1;
163
+ try {
164
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
165
+ const ptr0 = passStringToWasm0(board_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
166
+ const len0 = WASM_VECTOR_LEN;
167
+ wasm.cal_possibility_onboard(retptr, ptr0, len0, mine_num);
168
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
169
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
170
+ deferred2_0 = r0;
171
+ deferred2_1 = r1;
172
+ return getStringFromWasm0(r0, r1);
173
+ } finally {
174
+ wasm.__wbindgen_add_to_stack_pointer(16);
175
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
176
+ }
177
+ }
178
+
179
+ /**
180
+ * @param {number} row
181
+ * @param {number} column
182
+ * @param {number} mine_num
183
+ * @param {number} x0
184
+ * @param {number} y0
185
+ * @returns {string}
186
+ */
187
+ export function laymine_number(row, column, mine_num, x0, y0) {
188
+ let deferred1_0;
189
+ let deferred1_1;
190
+ try {
191
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
192
+ wasm.laymine_number(retptr, row, column, mine_num, x0, y0);
193
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
194
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
195
+ deferred1_0 = r0;
196
+ deferred1_1 = r1;
197
+ return getStringFromWasm0(r0, r1);
198
+ } finally {
199
+ wasm.__wbindgen_add_to_stack_pointer(16);
200
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
201
+ }
202
+ }
203
+
204
+ /**
205
+ * @param {number} row
206
+ * @param {number} column
207
+ * @param {number} mine_num
208
+ * @param {number} x0
209
+ * @param {number} y0
210
+ * @returns {string}
211
+ */
212
+ export function laymine_op_number(row, column, mine_num, x0, y0) {
213
+ let deferred1_0;
214
+ let deferred1_1;
215
+ try {
216
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
217
+ wasm.laymine_op_number(retptr, row, column, mine_num, x0, y0);
218
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
219
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
220
+ deferred1_0 = r0;
221
+ deferred1_1 = r1;
222
+ return getStringFromWasm0(r0, r1);
223
+ } finally {
224
+ wasm.__wbindgen_add_to_stack_pointer(16);
225
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
226
+ }
227
+ }
228
+
229
+ /**
230
+ * @param {number} row
231
+ * @param {number} column
232
+ * @param {number} mine_num
233
+ * @param {number} x0
234
+ * @param {number} y0
235
+ * @param {number} max_times
236
+ * @returns {string}
237
+ */
238
+ export function laymine_solvable(row, column, mine_num, x0, y0, max_times) {
239
+ let deferred1_0;
240
+ let deferred1_1;
241
+ try {
242
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
243
+ wasm.laymine_solvable(retptr, row, column, mine_num, x0, y0, max_times);
244
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
245
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
246
+ deferred1_0 = r0;
247
+ deferred1_1 = r1;
248
+ return getStringFromWasm0(r0, r1);
249
+ } finally {
250
+ wasm.__wbindgen_add_to_stack_pointer(16);
251
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
252
+ }
253
+ }
254
+
255
+ function handleError(f, args) {
256
+ try {
257
+ return f.apply(this, args);
258
+ } catch (e) {
259
+ wasm.__wbindgen_exn_store(addHeapObject(e));
260
+ }
261
+ }
262
+ /**
263
+ */
264
+ export class AvfVideo {
265
+
266
+ static __wrap(ptr) {
267
+ ptr = ptr >>> 0;
268
+ const obj = Object.create(AvfVideo.prototype);
269
+ obj.__wbg_ptr = ptr;
270
+
271
+ return obj;
272
+ }
273
+
274
+ toJSON() {
275
+ return {
276
+ get_raw_data: this.get_raw_data,
277
+ get_software: this.get_software,
278
+ get_row: this.get_row,
279
+ get_column: this.get_column,
280
+ get_level: this.get_level,
281
+ get_mode: this.get_mode,
282
+ get_is_completed: this.get_is_completed,
283
+ get_is_offical: this.get_is_offical,
284
+ get_is_fair: this.get_is_fair,
285
+ get_mine_num: this.get_mine_num,
286
+ get_player_designator: this.get_player_designator,
287
+ get_race_designator: this.get_race_designator,
288
+ get_uniqueness_designator: this.get_uniqueness_designator,
289
+ get_country: this.get_country,
290
+ get_bbbv: this.get_bbbv,
291
+ get_start_time: this.get_start_time,
292
+ get_end_time: this.get_end_time,
293
+ get_op: this.get_op,
294
+ get_isl: this.get_isl,
295
+ get_hizi: this.get_hizi,
296
+ get_cell0: this.get_cell0,
297
+ get_cell1: this.get_cell1,
298
+ get_cell2: this.get_cell2,
299
+ get_cell3: this.get_cell3,
300
+ get_cell4: this.get_cell4,
301
+ get_cell5: this.get_cell5,
302
+ get_cell6: this.get_cell6,
303
+ get_cell7: this.get_cell7,
304
+ get_cell8: this.get_cell8,
305
+ get_rtime: this.get_rtime,
306
+ get_rtime_ms: this.get_rtime_ms,
307
+ get_etime: this.get_etime,
308
+ get_video_time: this.get_video_time,
309
+ get_bbbv_s: this.get_bbbv_s,
310
+ get_stnb: this.get_stnb,
311
+ get_rqp: this.get_rqp,
312
+ get_left: this.get_left,
313
+ get_right: this.get_right,
314
+ get_double: this.get_double,
315
+ get_cl: this.get_cl,
316
+ get_flag: this.get_flag,
317
+ get_bbbv_solved: this.get_bbbv_solved,
318
+ get_ce: this.get_ce,
319
+ get_left_s: this.get_left_s,
320
+ get_right_s: this.get_right_s,
321
+ get_double_s: this.get_double_s,
322
+ get_cl_s: this.get_cl_s,
323
+ get_flag_s: this.get_flag_s,
324
+ get_path: this.get_path,
325
+ get_ce_s: this.get_ce_s,
326
+ get_ioe: this.get_ioe,
327
+ get_thrp: this.get_thrp,
328
+ get_corr: this.get_corr,
329
+ get_events_len: this.get_events_len,
330
+ get_current_event_id: this.get_current_event_id,
331
+ get_game_board: this.get_game_board,
332
+ get_game_board_poss: this.get_game_board_poss,
333
+ get_mouse_state: this.get_mouse_state,
334
+ get_game_board_state: this.get_game_board_state,
335
+ get_x_y: this.get_x_y,
336
+ get_checksum: this.get_checksum,
337
+ };
338
+ }
339
+
340
+ toString() {
341
+ return JSON.stringify(this);
342
+ }
343
+
344
+ __destroy_into_raw() {
345
+ const ptr = this.__wbg_ptr;
346
+ this.__wbg_ptr = 0;
347
+
348
+ return ptr;
349
+ }
350
+
351
+ free() {
352
+ const ptr = this.__destroy_into_raw();
353
+ wasm.__wbg_avfvideo_free(ptr);
354
+ }
355
+ /**
356
+ * @param {Uint8Array} data
357
+ * @param {string} file_name
358
+ * @returns {AvfVideo}
359
+ */
360
+ static new(data, file_name) {
361
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
362
+ const len0 = WASM_VECTOR_LEN;
363
+ const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
364
+ const len1 = WASM_VECTOR_LEN;
365
+ const ret = wasm.avfvideo_new(ptr0, len0, ptr1, len1);
366
+ return AvfVideo.__wrap(ret);
367
+ }
368
+ /**
369
+ */
370
+ parse_video() {
371
+ wasm.avfvideo_parse_video(this.__wbg_ptr);
372
+ }
373
+ /**
374
+ */
375
+ analyse() {
376
+ wasm.avfvideo_analyse(this.__wbg_ptr);
377
+ }
378
+ /**
379
+ * @returns {Uint8Array}
380
+ */
381
+ get get_raw_data() {
382
+ try {
383
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
384
+ wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
385
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
386
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
387
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
388
+ wasm.__wbindgen_free(r0, r1 * 1);
389
+ return v1;
390
+ } finally {
391
+ wasm.__wbindgen_add_to_stack_pointer(16);
392
+ }
393
+ }
394
+ /**
395
+ * @returns {Uint8Array}
396
+ */
397
+ get get_software() {
398
+ try {
399
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
400
+ wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
401
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
402
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
403
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
404
+ wasm.__wbindgen_free(r0, r1 * 1);
405
+ return v1;
406
+ } finally {
407
+ wasm.__wbindgen_add_to_stack_pointer(16);
408
+ }
409
+ }
410
+ /**
411
+ * @returns {number}
412
+ */
413
+ get get_row() {
414
+ const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
415
+ return ret >>> 0;
416
+ }
417
+ /**
418
+ * @returns {number}
419
+ */
420
+ get get_column() {
421
+ const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
422
+ return ret >>> 0;
423
+ }
424
+ /**
425
+ * @returns {number}
426
+ */
427
+ get get_level() {
428
+ const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
429
+ return ret;
430
+ }
431
+ /**
432
+ * @returns {number}
433
+ */
434
+ get get_mode() {
435
+ const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
436
+ return ret;
437
+ }
438
+ /**
439
+ * @returns {boolean}
440
+ */
441
+ get get_is_completed() {
442
+ const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
443
+ return ret !== 0;
444
+ }
445
+ /**
446
+ * @returns {boolean}
447
+ */
448
+ get get_is_offical() {
449
+ const ret = wasm.avfvideo_get_is_offical(this.__wbg_ptr);
450
+ return ret !== 0;
451
+ }
452
+ /**
453
+ * @returns {boolean}
454
+ */
455
+ get get_is_fair() {
456
+ const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
457
+ return ret !== 0;
458
+ }
459
+ /**
460
+ * @returns {number}
461
+ */
462
+ get get_mine_num() {
463
+ const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
464
+ return ret >>> 0;
465
+ }
466
+ /**
467
+ * @returns {Uint8Array}
468
+ */
469
+ get get_player_designator() {
470
+ try {
471
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
472
+ wasm.avfvideo_get_player_designator(retptr, this.__wbg_ptr);
473
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
474
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
475
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
476
+ wasm.__wbindgen_free(r0, r1 * 1);
477
+ return v1;
478
+ } finally {
479
+ wasm.__wbindgen_add_to_stack_pointer(16);
480
+ }
481
+ }
482
+ /**
483
+ * @returns {Uint8Array}
484
+ */
485
+ get get_race_designator() {
486
+ try {
487
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
488
+ wasm.avfvideo_get_race_designator(retptr, this.__wbg_ptr);
489
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
490
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
491
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
492
+ wasm.__wbindgen_free(r0, r1 * 1);
493
+ return v1;
494
+ } finally {
495
+ wasm.__wbindgen_add_to_stack_pointer(16);
496
+ }
497
+ }
498
+ /**
499
+ * @returns {Uint8Array}
500
+ */
501
+ get get_uniqueness_designator() {
502
+ try {
503
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
504
+ wasm.avfvideo_get_uniqueness_designator(retptr, this.__wbg_ptr);
505
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
506
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
507
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
508
+ wasm.__wbindgen_free(r0, r1 * 1);
509
+ return v1;
510
+ } finally {
511
+ wasm.__wbindgen_add_to_stack_pointer(16);
512
+ }
513
+ }
514
+ /**
515
+ * @returns {Uint8Array}
516
+ */
517
+ get get_country() {
518
+ try {
519
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
520
+ wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
521
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
522
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
523
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
524
+ wasm.__wbindgen_free(r0, r1 * 1);
525
+ return v1;
526
+ } finally {
527
+ wasm.__wbindgen_add_to_stack_pointer(16);
528
+ }
529
+ }
530
+ /**
531
+ * @returns {number}
532
+ */
533
+ get get_bbbv() {
534
+ const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
535
+ return ret >>> 0;
536
+ }
537
+ /**
538
+ * @returns {Uint8Array}
539
+ */
540
+ get get_start_time() {
541
+ try {
542
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
543
+ wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
544
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
545
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
546
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
547
+ wasm.__wbindgen_free(r0, r1 * 1);
548
+ return v1;
549
+ } finally {
550
+ wasm.__wbindgen_add_to_stack_pointer(16);
551
+ }
552
+ }
553
+ /**
554
+ * @returns {Uint8Array}
555
+ */
556
+ get get_end_time() {
557
+ try {
558
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
559
+ wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
560
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
561
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
562
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
563
+ wasm.__wbindgen_free(r0, r1 * 1);
564
+ return v1;
565
+ } finally {
566
+ wasm.__wbindgen_add_to_stack_pointer(16);
567
+ }
568
+ }
569
+ /**
570
+ * @returns {number}
571
+ */
572
+ get get_op() {
573
+ const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
574
+ return ret >>> 0;
575
+ }
576
+ /**
577
+ * @returns {number}
578
+ */
579
+ get get_isl() {
580
+ const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
581
+ return ret >>> 0;
582
+ }
583
+ /**
584
+ * @returns {number}
585
+ */
586
+ get get_hizi() {
587
+ const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
588
+ return ret >>> 0;
589
+ }
590
+ /**
591
+ * @returns {number}
592
+ */
593
+ get get_cell0() {
594
+ const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
595
+ return ret >>> 0;
596
+ }
597
+ /**
598
+ * @returns {number}
599
+ */
600
+ get get_cell1() {
601
+ const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
602
+ return ret >>> 0;
603
+ }
604
+ /**
605
+ * @returns {number}
606
+ */
607
+ get get_cell2() {
608
+ const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
609
+ return ret >>> 0;
610
+ }
611
+ /**
612
+ * @returns {number}
613
+ */
614
+ get get_cell3() {
615
+ const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
616
+ return ret >>> 0;
617
+ }
618
+ /**
619
+ * @returns {number}
620
+ */
621
+ get get_cell4() {
622
+ const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
623
+ return ret >>> 0;
624
+ }
625
+ /**
626
+ * @returns {number}
627
+ */
628
+ get get_cell5() {
629
+ const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
630
+ return ret >>> 0;
631
+ }
632
+ /**
633
+ * @returns {number}
634
+ */
635
+ get get_cell6() {
636
+ const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
637
+ return ret >>> 0;
638
+ }
639
+ /**
640
+ * @returns {number}
641
+ */
642
+ get get_cell7() {
643
+ const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
644
+ return ret >>> 0;
645
+ }
646
+ /**
647
+ * @returns {number}
648
+ */
649
+ get get_cell8() {
650
+ const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
651
+ return ret >>> 0;
652
+ }
653
+ /**
654
+ * @returns {number}
655
+ */
656
+ get get_rtime() {
657
+ const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
658
+ return ret;
659
+ }
660
+ /**
661
+ * @returns {number}
662
+ */
663
+ get get_rtime_ms() {
664
+ const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
665
+ return ret >>> 0;
666
+ }
667
+ /**
668
+ * @returns {number}
669
+ */
670
+ get get_etime() {
671
+ const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
672
+ return ret;
673
+ }
674
+ /**
675
+ * @returns {number}
676
+ */
677
+ get get_video_time() {
678
+ const ret = wasm.avfvideo_get_video_time(this.__wbg_ptr);
679
+ return ret;
680
+ }
681
+ /**
682
+ * @returns {number}
683
+ */
684
+ get get_bbbv_s() {
685
+ const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
686
+ return ret;
687
+ }
688
+ /**
689
+ * @returns {number}
690
+ */
691
+ get get_stnb() {
692
+ const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
693
+ return ret;
694
+ }
695
+ /**
696
+ * @returns {number}
697
+ */
698
+ get get_rqp() {
699
+ const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
700
+ return ret;
701
+ }
702
+ /**
703
+ * @returns {number}
704
+ */
705
+ get get_left() {
706
+ const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
707
+ return ret >>> 0;
708
+ }
709
+ /**
710
+ * @returns {number}
711
+ */
712
+ get get_right() {
713
+ const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
714
+ return ret >>> 0;
715
+ }
716
+ /**
717
+ * @returns {number}
718
+ */
719
+ get get_double() {
720
+ const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
721
+ return ret >>> 0;
722
+ }
723
+ /**
724
+ * @returns {number}
725
+ */
726
+ get get_cl() {
727
+ const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
728
+ return ret >>> 0;
729
+ }
730
+ /**
731
+ * @returns {number}
732
+ */
733
+ get get_flag() {
734
+ const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
735
+ return ret >>> 0;
736
+ }
737
+ /**
738
+ * @returns {number}
739
+ */
740
+ get get_bbbv_solved() {
741
+ const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
742
+ return ret >>> 0;
743
+ }
744
+ /**
745
+ * @returns {number}
746
+ */
747
+ get get_ce() {
748
+ const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
749
+ return ret >>> 0;
750
+ }
751
+ /**
752
+ * @returns {number}
753
+ */
754
+ get get_left_s() {
755
+ const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
756
+ return ret;
757
+ }
758
+ /**
759
+ * @returns {number}
760
+ */
761
+ get get_right_s() {
762
+ const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
763
+ return ret;
764
+ }
765
+ /**
766
+ * @returns {number}
767
+ */
768
+ get get_double_s() {
769
+ const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
770
+ return ret;
771
+ }
772
+ /**
773
+ * @returns {number}
774
+ */
775
+ get get_cl_s() {
776
+ const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
777
+ return ret;
778
+ }
779
+ /**
780
+ * @returns {number}
781
+ */
782
+ get get_flag_s() {
783
+ const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
784
+ return ret;
785
+ }
786
+ /**
787
+ * @returns {number}
788
+ */
789
+ get get_path() {
790
+ const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
791
+ return ret;
792
+ }
793
+ /**
794
+ * @returns {number}
795
+ */
796
+ get get_ce_s() {
797
+ const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
798
+ return ret;
799
+ }
800
+ /**
801
+ * @returns {number}
802
+ */
803
+ get get_ioe() {
804
+ const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
805
+ return ret;
806
+ }
807
+ /**
808
+ * @returns {number}
809
+ */
810
+ get get_thrp() {
811
+ const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
812
+ return ret;
813
+ }
814
+ /**
815
+ * @returns {number}
816
+ */
817
+ get get_corr() {
818
+ const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
819
+ return ret;
820
+ }
821
+ /**
822
+ * @returns {number}
823
+ */
824
+ get get_events_len() {
825
+ const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
826
+ return ret >>> 0;
827
+ }
828
+ /**
829
+ * @param {number} index
830
+ * @returns {number}
831
+ */
832
+ events_time(index) {
833
+ const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
834
+ return ret;
835
+ }
836
+ /**
837
+ * @param {number} index
838
+ * @returns {string}
839
+ */
840
+ events_mouse(index) {
841
+ let deferred1_0;
842
+ let deferred1_1;
843
+ try {
844
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
845
+ wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
846
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
847
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
848
+ deferred1_0 = r0;
849
+ deferred1_1 = r1;
850
+ return getStringFromWasm0(r0, r1);
851
+ } finally {
852
+ wasm.__wbindgen_add_to_stack_pointer(16);
853
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
854
+ }
855
+ }
856
+ /**
857
+ * @param {number} index
858
+ * @returns {number}
859
+ */
860
+ events_x(index) {
861
+ const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
862
+ return ret;
863
+ }
864
+ /**
865
+ * @param {number} index
866
+ * @returns {number}
867
+ */
868
+ events_y(index) {
869
+ const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
870
+ return ret;
871
+ }
872
+ /**
873
+ * @param {number} index
874
+ * @returns {number}
875
+ */
876
+ events_useful_level(index) {
877
+ const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
878
+ return ret;
879
+ }
880
+ /**
881
+ * @param {number} index
882
+ * @returns {number}
883
+ */
884
+ events_mouse_state(index) {
885
+ const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
886
+ return ret >>> 0;
887
+ }
888
+ /**
889
+ * @returns {number}
890
+ */
891
+ get get_current_event_id() {
892
+ const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
893
+ return ret >>> 0;
894
+ }
895
+ /**
896
+ * @param {number} id
897
+ */
898
+ set current_event_id(id) {
899
+ wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
900
+ }
901
+ /**
902
+ * @returns {string}
903
+ */
904
+ get get_game_board() {
905
+ let deferred1_0;
906
+ let deferred1_1;
907
+ try {
908
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
909
+ wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
910
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
911
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
912
+ deferred1_0 = r0;
913
+ deferred1_1 = r1;
914
+ return getStringFromWasm0(r0, r1);
915
+ } finally {
916
+ wasm.__wbindgen_add_to_stack_pointer(16);
917
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
918
+ }
919
+ }
920
+ /**
921
+ * @returns {string}
922
+ */
923
+ get get_game_board_poss() {
924
+ let deferred1_0;
925
+ let deferred1_1;
926
+ try {
927
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
928
+ wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
929
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
930
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
931
+ deferred1_0 = r0;
932
+ deferred1_1 = r1;
933
+ return getStringFromWasm0(r0, r1);
934
+ } finally {
935
+ wasm.__wbindgen_add_to_stack_pointer(16);
936
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
937
+ }
938
+ }
939
+ /**
940
+ * @returns {number}
941
+ */
942
+ get get_mouse_state() {
943
+ const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
944
+ return ret >>> 0;
945
+ }
946
+ /**
947
+ * 局面状态
948
+ * @returns {number}
949
+ */
950
+ get get_game_board_state() {
951
+ const ret = wasm.avfvideo_get_game_board_state(this.__wbg_ptr);
952
+ return ret >>> 0;
953
+ }
954
+ /**
955
+ * 返回当前光标的位置,播放录像用
956
+ * @returns {CursorPos}
957
+ */
958
+ get get_x_y() {
959
+ const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
960
+ return CursorPos.__wrap(ret);
961
+ }
962
+ /**
963
+ * @returns {Uint8Array}
964
+ */
965
+ get get_checksum() {
966
+ try {
967
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
968
+ wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
969
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
970
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
971
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
972
+ wasm.__wbindgen_free(r0, r1 * 1);
973
+ return v1;
974
+ } finally {
975
+ wasm.__wbindgen_add_to_stack_pointer(16);
976
+ }
977
+ }
978
+ /**
979
+ * @param {number} time
980
+ */
981
+ set current_time(time) {
982
+ wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
983
+ }
984
+ /**
985
+ * @returns {number}
986
+ */
987
+ is_valid() {
988
+ const ret = wasm.avfvideo_is_valid(this.__wbg_ptr);
989
+ return ret;
990
+ }
991
+ }
992
+ /**
993
+ */
994
+ export class CursorPos {
995
+
996
+ static __wrap(ptr) {
997
+ ptr = ptr >>> 0;
998
+ const obj = Object.create(CursorPos.prototype);
999
+ obj.__wbg_ptr = ptr;
1000
+
1001
+ return obj;
1002
+ }
1003
+
1004
+ __destroy_into_raw() {
1005
+ const ptr = this.__wbg_ptr;
1006
+ this.__wbg_ptr = 0;
1007
+
1008
+ return ptr;
1009
+ }
1010
+
1011
+ free() {
1012
+ const ptr = this.__destroy_into_raw();
1013
+ wasm.__wbg_cursorpos_free(ptr);
1014
+ }
1015
+ /**
1016
+ * @returns {number}
1017
+ */
1018
+ get 0() {
1019
+ const ret = wasm.__wbg_get_cursorpos_0(this.__wbg_ptr);
1020
+ return ret;
1021
+ }
1022
+ /**
1023
+ * @param {number} arg0
1024
+ */
1025
+ set 0(arg0) {
1026
+ wasm.__wbg_set_cursorpos_0(this.__wbg_ptr, arg0);
1027
+ }
1028
+ /**
1029
+ * @returns {number}
1030
+ */
1031
+ get 1() {
1032
+ const ret = wasm.__wbg_get_cursorpos_1(this.__wbg_ptr);
1033
+ return ret;
1034
+ }
1035
+ /**
1036
+ * @param {number} arg0
1037
+ */
1038
+ set 1(arg0) {
1039
+ wasm.__wbg_set_cursorpos_1(this.__wbg_ptr, arg0);
1040
+ }
1041
+ }
1042
+ /**
1043
+ */
1044
+ export class EvfVideo {
1045
+
1046
+ static __wrap(ptr) {
1047
+ ptr = ptr >>> 0;
1048
+ const obj = Object.create(EvfVideo.prototype);
1049
+ obj.__wbg_ptr = ptr;
1050
+
1051
+ return obj;
1052
+ }
1053
+
1054
+ toJSON() {
1055
+ return {
1056
+ get_raw_data: this.get_raw_data,
1057
+ get_software: this.get_software,
1058
+ get_row: this.get_row,
1059
+ get_column: this.get_column,
1060
+ get_level: this.get_level,
1061
+ get_mode: this.get_mode,
1062
+ get_is_completed: this.get_is_completed,
1063
+ get_is_offical: this.get_is_offical,
1064
+ get_is_fair: this.get_is_fair,
1065
+ get_mine_num: this.get_mine_num,
1066
+ get_player_designator: this.get_player_designator,
1067
+ get_race_designator: this.get_race_designator,
1068
+ get_uniqueness_designator: this.get_uniqueness_designator,
1069
+ get_country: this.get_country,
1070
+ get_bbbv: this.get_bbbv,
1071
+ get_start_time: this.get_start_time,
1072
+ get_end_time: this.get_end_time,
1073
+ get_op: this.get_op,
1074
+ get_isl: this.get_isl,
1075
+ get_hizi: this.get_hizi,
1076
+ get_cell0: this.get_cell0,
1077
+ get_cell1: this.get_cell1,
1078
+ get_cell2: this.get_cell2,
1079
+ get_cell3: this.get_cell3,
1080
+ get_cell4: this.get_cell4,
1081
+ get_cell5: this.get_cell5,
1082
+ get_cell6: this.get_cell6,
1083
+ get_cell7: this.get_cell7,
1084
+ get_cell8: this.get_cell8,
1085
+ get_rtime: this.get_rtime,
1086
+ get_rtime_ms: this.get_rtime_ms,
1087
+ get_etime: this.get_etime,
1088
+ get_video_time: this.get_video_time,
1089
+ get_bbbv_s: this.get_bbbv_s,
1090
+ get_stnb: this.get_stnb,
1091
+ get_rqp: this.get_rqp,
1092
+ get_left: this.get_left,
1093
+ get_right: this.get_right,
1094
+ get_double: this.get_double,
1095
+ get_cl: this.get_cl,
1096
+ get_flag: this.get_flag,
1097
+ get_bbbv_solved: this.get_bbbv_solved,
1098
+ get_ce: this.get_ce,
1099
+ get_left_s: this.get_left_s,
1100
+ get_right_s: this.get_right_s,
1101
+ get_double_s: this.get_double_s,
1102
+ get_cl_s: this.get_cl_s,
1103
+ get_flag_s: this.get_flag_s,
1104
+ get_path: this.get_path,
1105
+ get_ce_s: this.get_ce_s,
1106
+ get_ioe: this.get_ioe,
1107
+ get_thrp: this.get_thrp,
1108
+ get_corr: this.get_corr,
1109
+ get_events_len: this.get_events_len,
1110
+ get_current_event_id: this.get_current_event_id,
1111
+ get_game_board: this.get_game_board,
1112
+ get_game_board_poss: this.get_game_board_poss,
1113
+ get_mouse_state: this.get_mouse_state,
1114
+ get_game_board_state: this.get_game_board_state,
1115
+ get_x_y: this.get_x_y,
1116
+ get_checksum: this.get_checksum,
1117
+ };
1118
+ }
1119
+
1120
+ toString() {
1121
+ return JSON.stringify(this);
1122
+ }
1123
+
1124
+ __destroy_into_raw() {
1125
+ const ptr = this.__wbg_ptr;
1126
+ this.__wbg_ptr = 0;
1127
+
1128
+ return ptr;
1129
+ }
1130
+
1131
+ free() {
1132
+ const ptr = this.__destroy_into_raw();
1133
+ wasm.__wbg_evfvideo_free(ptr);
1134
+ }
1135
+ /**
1136
+ * @param {Uint8Array} data
1137
+ * @param {string} file_name
1138
+ * @returns {EvfVideo}
1139
+ */
1140
+ static new(data, file_name) {
1141
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
1142
+ const len0 = WASM_VECTOR_LEN;
1143
+ const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1144
+ const len1 = WASM_VECTOR_LEN;
1145
+ const ret = wasm.evfvideo_new(ptr0, len0, ptr1, len1);
1146
+ return EvfVideo.__wrap(ret);
1147
+ }
1148
+ /**
1149
+ */
1150
+ parse_video() {
1151
+ wasm.evfvideo_parse_video(this.__wbg_ptr);
1152
+ }
1153
+ /**
1154
+ */
1155
+ analyse() {
1156
+ wasm.avfvideo_analyse(this.__wbg_ptr);
1157
+ }
1158
+ /**
1159
+ * @returns {Uint8Array}
1160
+ */
1161
+ get get_raw_data() {
1162
+ try {
1163
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1164
+ wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
1165
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1166
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1167
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1168
+ wasm.__wbindgen_free(r0, r1 * 1);
1169
+ return v1;
1170
+ } finally {
1171
+ wasm.__wbindgen_add_to_stack_pointer(16);
1172
+ }
1173
+ }
1174
+ /**
1175
+ * @returns {Uint8Array}
1176
+ */
1177
+ get get_software() {
1178
+ try {
1179
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1180
+ wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
1181
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1182
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1183
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1184
+ wasm.__wbindgen_free(r0, r1 * 1);
1185
+ return v1;
1186
+ } finally {
1187
+ wasm.__wbindgen_add_to_stack_pointer(16);
1188
+ }
1189
+ }
1190
+ /**
1191
+ * @returns {number}
1192
+ */
1193
+ get get_row() {
1194
+ const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
1195
+ return ret >>> 0;
1196
+ }
1197
+ /**
1198
+ * @returns {number}
1199
+ */
1200
+ get get_column() {
1201
+ const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
1202
+ return ret >>> 0;
1203
+ }
1204
+ /**
1205
+ * @returns {number}
1206
+ */
1207
+ get get_level() {
1208
+ const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
1209
+ return ret;
1210
+ }
1211
+ /**
1212
+ * @returns {number}
1213
+ */
1214
+ get get_mode() {
1215
+ const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
1216
+ return ret;
1217
+ }
1218
+ /**
1219
+ * @returns {boolean}
1220
+ */
1221
+ get get_is_completed() {
1222
+ const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
1223
+ return ret !== 0;
1224
+ }
1225
+ /**
1226
+ * @returns {boolean}
1227
+ */
1228
+ get get_is_offical() {
1229
+ const ret = wasm.avfvideo_get_is_offical(this.__wbg_ptr);
1230
+ return ret !== 0;
1231
+ }
1232
+ /**
1233
+ * @returns {boolean}
1234
+ */
1235
+ get get_is_fair() {
1236
+ const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
1237
+ return ret !== 0;
1238
+ }
1239
+ /**
1240
+ * @returns {number}
1241
+ */
1242
+ get get_mine_num() {
1243
+ const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
1244
+ return ret >>> 0;
1245
+ }
1246
+ /**
1247
+ * @returns {Uint8Array}
1248
+ */
1249
+ get get_player_designator() {
1250
+ try {
1251
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1252
+ wasm.avfvideo_get_player_designator(retptr, this.__wbg_ptr);
1253
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1254
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1255
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1256
+ wasm.__wbindgen_free(r0, r1 * 1);
1257
+ return v1;
1258
+ } finally {
1259
+ wasm.__wbindgen_add_to_stack_pointer(16);
1260
+ }
1261
+ }
1262
+ /**
1263
+ * @returns {Uint8Array}
1264
+ */
1265
+ get get_race_designator() {
1266
+ try {
1267
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1268
+ wasm.avfvideo_get_race_designator(retptr, this.__wbg_ptr);
1269
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1270
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1271
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1272
+ wasm.__wbindgen_free(r0, r1 * 1);
1273
+ return v1;
1274
+ } finally {
1275
+ wasm.__wbindgen_add_to_stack_pointer(16);
1276
+ }
1277
+ }
1278
+ /**
1279
+ * @returns {Uint8Array}
1280
+ */
1281
+ get get_uniqueness_designator() {
1282
+ try {
1283
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1284
+ wasm.avfvideo_get_uniqueness_designator(retptr, this.__wbg_ptr);
1285
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1286
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1287
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1288
+ wasm.__wbindgen_free(r0, r1 * 1);
1289
+ return v1;
1290
+ } finally {
1291
+ wasm.__wbindgen_add_to_stack_pointer(16);
1292
+ }
1293
+ }
1294
+ /**
1295
+ * @returns {Uint8Array}
1296
+ */
1297
+ get get_country() {
1298
+ try {
1299
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1300
+ wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
1301
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1302
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1303
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1304
+ wasm.__wbindgen_free(r0, r1 * 1);
1305
+ return v1;
1306
+ } finally {
1307
+ wasm.__wbindgen_add_to_stack_pointer(16);
1308
+ }
1309
+ }
1310
+ /**
1311
+ * @returns {number}
1312
+ */
1313
+ get get_bbbv() {
1314
+ const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
1315
+ return ret >>> 0;
1316
+ }
1317
+ /**
1318
+ * @returns {Uint8Array}
1319
+ */
1320
+ get get_start_time() {
1321
+ try {
1322
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1323
+ wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
1324
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1325
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1326
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1327
+ wasm.__wbindgen_free(r0, r1 * 1);
1328
+ return v1;
1329
+ } finally {
1330
+ wasm.__wbindgen_add_to_stack_pointer(16);
1331
+ }
1332
+ }
1333
+ /**
1334
+ * @returns {Uint8Array}
1335
+ */
1336
+ get get_end_time() {
1337
+ try {
1338
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1339
+ wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
1340
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1341
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1342
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1343
+ wasm.__wbindgen_free(r0, r1 * 1);
1344
+ return v1;
1345
+ } finally {
1346
+ wasm.__wbindgen_add_to_stack_pointer(16);
1347
+ }
1348
+ }
1349
+ /**
1350
+ * @returns {number}
1351
+ */
1352
+ get get_op() {
1353
+ const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
1354
+ return ret >>> 0;
1355
+ }
1356
+ /**
1357
+ * @returns {number}
1358
+ */
1359
+ get get_isl() {
1360
+ const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
1361
+ return ret >>> 0;
1362
+ }
1363
+ /**
1364
+ * @returns {number}
1365
+ */
1366
+ get get_hizi() {
1367
+ const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
1368
+ return ret >>> 0;
1369
+ }
1370
+ /**
1371
+ * @returns {number}
1372
+ */
1373
+ get get_cell0() {
1374
+ const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
1375
+ return ret >>> 0;
1376
+ }
1377
+ /**
1378
+ * @returns {number}
1379
+ */
1380
+ get get_cell1() {
1381
+ const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
1382
+ return ret >>> 0;
1383
+ }
1384
+ /**
1385
+ * @returns {number}
1386
+ */
1387
+ get get_cell2() {
1388
+ const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
1389
+ return ret >>> 0;
1390
+ }
1391
+ /**
1392
+ * @returns {number}
1393
+ */
1394
+ get get_cell3() {
1395
+ const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
1396
+ return ret >>> 0;
1397
+ }
1398
+ /**
1399
+ * @returns {number}
1400
+ */
1401
+ get get_cell4() {
1402
+ const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
1403
+ return ret >>> 0;
1404
+ }
1405
+ /**
1406
+ * @returns {number}
1407
+ */
1408
+ get get_cell5() {
1409
+ const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
1410
+ return ret >>> 0;
1411
+ }
1412
+ /**
1413
+ * @returns {number}
1414
+ */
1415
+ get get_cell6() {
1416
+ const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
1417
+ return ret >>> 0;
1418
+ }
1419
+ /**
1420
+ * @returns {number}
1421
+ */
1422
+ get get_cell7() {
1423
+ const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
1424
+ return ret >>> 0;
1425
+ }
1426
+ /**
1427
+ * @returns {number}
1428
+ */
1429
+ get get_cell8() {
1430
+ const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
1431
+ return ret >>> 0;
1432
+ }
1433
+ /**
1434
+ * @returns {number}
1435
+ */
1436
+ get get_rtime() {
1437
+ const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
1438
+ return ret;
1439
+ }
1440
+ /**
1441
+ * @returns {number}
1442
+ */
1443
+ get get_rtime_ms() {
1444
+ const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
1445
+ return ret >>> 0;
1446
+ }
1447
+ /**
1448
+ * @returns {number}
1449
+ */
1450
+ get get_etime() {
1451
+ const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
1452
+ return ret;
1453
+ }
1454
+ /**
1455
+ * @returns {number}
1456
+ */
1457
+ get get_video_time() {
1458
+ const ret = wasm.avfvideo_get_video_time(this.__wbg_ptr);
1459
+ return ret;
1460
+ }
1461
+ /**
1462
+ * @returns {number}
1463
+ */
1464
+ get get_bbbv_s() {
1465
+ const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
1466
+ return ret;
1467
+ }
1468
+ /**
1469
+ * @returns {number}
1470
+ */
1471
+ get get_stnb() {
1472
+ const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
1473
+ return ret;
1474
+ }
1475
+ /**
1476
+ * @returns {number}
1477
+ */
1478
+ get get_rqp() {
1479
+ const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
1480
+ return ret;
1481
+ }
1482
+ /**
1483
+ * @returns {number}
1484
+ */
1485
+ get get_left() {
1486
+ const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
1487
+ return ret >>> 0;
1488
+ }
1489
+ /**
1490
+ * @returns {number}
1491
+ */
1492
+ get get_right() {
1493
+ const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
1494
+ return ret >>> 0;
1495
+ }
1496
+ /**
1497
+ * @returns {number}
1498
+ */
1499
+ get get_double() {
1500
+ const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
1501
+ return ret >>> 0;
1502
+ }
1503
+ /**
1504
+ * @returns {number}
1505
+ */
1506
+ get get_cl() {
1507
+ const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
1508
+ return ret >>> 0;
1509
+ }
1510
+ /**
1511
+ * @returns {number}
1512
+ */
1513
+ get get_flag() {
1514
+ const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
1515
+ return ret >>> 0;
1516
+ }
1517
+ /**
1518
+ * @returns {number}
1519
+ */
1520
+ get get_bbbv_solved() {
1521
+ const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
1522
+ return ret >>> 0;
1523
+ }
1524
+ /**
1525
+ * @returns {number}
1526
+ */
1527
+ get get_ce() {
1528
+ const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
1529
+ return ret >>> 0;
1530
+ }
1531
+ /**
1532
+ * @returns {number}
1533
+ */
1534
+ get get_left_s() {
1535
+ const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
1536
+ return ret;
1537
+ }
1538
+ /**
1539
+ * @returns {number}
1540
+ */
1541
+ get get_right_s() {
1542
+ const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
1543
+ return ret;
1544
+ }
1545
+ /**
1546
+ * @returns {number}
1547
+ */
1548
+ get get_double_s() {
1549
+ const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
1550
+ return ret;
1551
+ }
1552
+ /**
1553
+ * @returns {number}
1554
+ */
1555
+ get get_cl_s() {
1556
+ const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
1557
+ return ret;
1558
+ }
1559
+ /**
1560
+ * @returns {number}
1561
+ */
1562
+ get get_flag_s() {
1563
+ const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
1564
+ return ret;
1565
+ }
1566
+ /**
1567
+ * @returns {number}
1568
+ */
1569
+ get get_path() {
1570
+ const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
1571
+ return ret;
1572
+ }
1573
+ /**
1574
+ * @returns {number}
1575
+ */
1576
+ get get_ce_s() {
1577
+ const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
1578
+ return ret;
1579
+ }
1580
+ /**
1581
+ * @returns {number}
1582
+ */
1583
+ get get_ioe() {
1584
+ const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
1585
+ return ret;
1586
+ }
1587
+ /**
1588
+ * @returns {number}
1589
+ */
1590
+ get get_thrp() {
1591
+ const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
1592
+ return ret;
1593
+ }
1594
+ /**
1595
+ * @returns {number}
1596
+ */
1597
+ get get_corr() {
1598
+ const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
1599
+ return ret;
1600
+ }
1601
+ /**
1602
+ * @returns {number}
1603
+ */
1604
+ get get_events_len() {
1605
+ const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
1606
+ return ret >>> 0;
1607
+ }
1608
+ /**
1609
+ * @param {number} index
1610
+ * @returns {number}
1611
+ */
1612
+ events_time(index) {
1613
+ const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
1614
+ return ret;
1615
+ }
1616
+ /**
1617
+ * @param {number} index
1618
+ * @returns {string}
1619
+ */
1620
+ events_mouse(index) {
1621
+ let deferred1_0;
1622
+ let deferred1_1;
1623
+ try {
1624
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1625
+ wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
1626
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1627
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1628
+ deferred1_0 = r0;
1629
+ deferred1_1 = r1;
1630
+ return getStringFromWasm0(r0, r1);
1631
+ } finally {
1632
+ wasm.__wbindgen_add_to_stack_pointer(16);
1633
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1634
+ }
1635
+ }
1636
+ /**
1637
+ * @param {number} index
1638
+ * @returns {number}
1639
+ */
1640
+ events_x(index) {
1641
+ const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
1642
+ return ret;
1643
+ }
1644
+ /**
1645
+ * @param {number} index
1646
+ * @returns {number}
1647
+ */
1648
+ events_y(index) {
1649
+ const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
1650
+ return ret;
1651
+ }
1652
+ /**
1653
+ * @param {number} index
1654
+ * @returns {number}
1655
+ */
1656
+ events_useful_level(index) {
1657
+ const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
1658
+ return ret;
1659
+ }
1660
+ /**
1661
+ * @param {number} index
1662
+ * @returns {number}
1663
+ */
1664
+ events_mouse_state(index) {
1665
+ const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
1666
+ return ret >>> 0;
1667
+ }
1668
+ /**
1669
+ * @returns {number}
1670
+ */
1671
+ get get_current_event_id() {
1672
+ const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
1673
+ return ret >>> 0;
1674
+ }
1675
+ /**
1676
+ * @param {number} id
1677
+ */
1678
+ set current_event_id(id) {
1679
+ wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
1680
+ }
1681
+ /**
1682
+ * @returns {string}
1683
+ */
1684
+ get get_game_board() {
1685
+ let deferred1_0;
1686
+ let deferred1_1;
1687
+ try {
1688
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1689
+ wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
1690
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1691
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1692
+ deferred1_0 = r0;
1693
+ deferred1_1 = r1;
1694
+ return getStringFromWasm0(r0, r1);
1695
+ } finally {
1696
+ wasm.__wbindgen_add_to_stack_pointer(16);
1697
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1698
+ }
1699
+ }
1700
+ /**
1701
+ * @returns {string}
1702
+ */
1703
+ get get_game_board_poss() {
1704
+ let deferred1_0;
1705
+ let deferred1_1;
1706
+ try {
1707
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1708
+ wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
1709
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1710
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1711
+ deferred1_0 = r0;
1712
+ deferred1_1 = r1;
1713
+ return getStringFromWasm0(r0, r1);
1714
+ } finally {
1715
+ wasm.__wbindgen_add_to_stack_pointer(16);
1716
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1717
+ }
1718
+ }
1719
+ /**
1720
+ * @returns {number}
1721
+ */
1722
+ get get_mouse_state() {
1723
+ const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
1724
+ return ret >>> 0;
1725
+ }
1726
+ /**
1727
+ * 局面状态
1728
+ * @returns {number}
1729
+ */
1730
+ get get_game_board_state() {
1731
+ const ret = wasm.evfvideo_get_game_board_state(this.__wbg_ptr);
1732
+ return ret >>> 0;
1733
+ }
1734
+ /**
1735
+ * 返回当前光标的位置,播放录像用
1736
+ * @returns {CursorPos}
1737
+ */
1738
+ get get_x_y() {
1739
+ const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
1740
+ return CursorPos.__wrap(ret);
1741
+ }
1742
+ /**
1743
+ * @returns {Uint8Array}
1744
+ */
1745
+ get get_checksum() {
1746
+ try {
1747
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1748
+ wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
1749
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1750
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1751
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
1752
+ wasm.__wbindgen_free(r0, r1 * 1);
1753
+ return v1;
1754
+ } finally {
1755
+ wasm.__wbindgen_add_to_stack_pointer(16);
1756
+ }
1757
+ }
1758
+ /**
1759
+ * @param {number} time
1760
+ */
1761
+ set current_time(time) {
1762
+ wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
1763
+ }
1764
+ /**
1765
+ * @returns {number}
1766
+ */
1767
+ is_valid() {
1768
+ const ret = wasm.avfvideo_is_valid(this.__wbg_ptr);
1769
+ return ret;
1770
+ }
1771
+ }
1772
+ /**
1773
+ */
1774
+ export class MinesweeperBoard {
1775
+
1776
+ static __wrap(ptr) {
1777
+ ptr = ptr >>> 0;
1778
+ const obj = Object.create(MinesweeperBoard.prototype);
1779
+ obj.__wbg_ptr = ptr;
1780
+
1781
+ return obj;
1782
+ }
1783
+
1784
+ toJSON() {
1785
+ return {
1786
+ get_board: this.get_board,
1787
+ get_game_board: this.get_game_board,
1788
+ get_left: this.get_left,
1789
+ get_right: this.get_right,
1790
+ get_double: this.get_double,
1791
+ get_ce: this.get_ce,
1792
+ get_flag: this.get_flag,
1793
+ get_bbbv_solved: this.get_bbbv_solved,
1794
+ get_row: this.get_row,
1795
+ get_column: this.get_column,
1796
+ get_game_board_state: this.get_game_board_state,
1797
+ get_mouse_state: this.get_mouse_state,
1798
+ };
1799
+ }
1800
+
1801
+ toString() {
1802
+ return JSON.stringify(this);
1803
+ }
1804
+
1805
+ __destroy_into_raw() {
1806
+ const ptr = this.__wbg_ptr;
1807
+ this.__wbg_ptr = 0;
1808
+
1809
+ return ptr;
1810
+ }
1811
+
1812
+ free() {
1813
+ const ptr = this.__destroy_into_raw();
1814
+ wasm.__wbg_minesweeperboard_free(ptr);
1815
+ }
1816
+ /**
1817
+ * @param {string} board
1818
+ * @returns {MinesweeperBoard}
1819
+ */
1820
+ static new(board) {
1821
+ const ptr0 = passStringToWasm0(board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1822
+ const len0 = WASM_VECTOR_LEN;
1823
+ const ret = wasm.minesweeperboard_new(ptr0, len0);
1824
+ return MinesweeperBoard.__wrap(ret);
1825
+ }
1826
+ /**
1827
+ * @param {string} e
1828
+ * @param {number} x
1829
+ * @param {number} y
1830
+ */
1831
+ step(e, x, y) {
1832
+ const ptr0 = passStringToWasm0(e, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1833
+ const len0 = WASM_VECTOR_LEN;
1834
+ wasm.minesweeperboard_step(this.__wbg_ptr, ptr0, len0, x, y);
1835
+ }
1836
+ /**
1837
+ * @param {string} operation
1838
+ */
1839
+ step_flow(operation) {
1840
+ const ptr0 = passStringToWasm0(operation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1841
+ const len0 = WASM_VECTOR_LEN;
1842
+ wasm.minesweeperboard_step_flow(this.__wbg_ptr, ptr0, len0);
1843
+ }
1844
+ /**
1845
+ * @param {string} board
1846
+ */
1847
+ set board(board) {
1848
+ const ptr0 = passStringToWasm0(board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1849
+ const len0 = WASM_VECTOR_LEN;
1850
+ wasm.minesweeperboard_set_board(this.__wbg_ptr, ptr0, len0);
1851
+ }
1852
+ /**
1853
+ * @param {string} game_board
1854
+ */
1855
+ set game_board(game_board) {
1856
+ const ptr0 = passStringToWasm0(game_board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1857
+ const len0 = WASM_VECTOR_LEN;
1858
+ wasm.minesweeperboard_set_game_board(this.__wbg_ptr, ptr0, len0);
1859
+ }
1860
+ /**
1861
+ * @returns {string}
1862
+ */
1863
+ get get_board() {
1864
+ let deferred1_0;
1865
+ let deferred1_1;
1866
+ try {
1867
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1868
+ wasm.minesweeperboard_get_board(retptr, this.__wbg_ptr);
1869
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1870
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1871
+ deferred1_0 = r0;
1872
+ deferred1_1 = r1;
1873
+ return getStringFromWasm0(r0, r1);
1874
+ } finally {
1875
+ wasm.__wbindgen_add_to_stack_pointer(16);
1876
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1877
+ }
1878
+ }
1879
+ /**
1880
+ * @returns {string}
1881
+ */
1882
+ get get_game_board() {
1883
+ let deferred1_0;
1884
+ let deferred1_1;
1885
+ try {
1886
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1887
+ wasm.minesweeperboard_get_game_board(retptr, this.__wbg_ptr);
1888
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
1889
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
1890
+ deferred1_0 = r0;
1891
+ deferred1_1 = r1;
1892
+ return getStringFromWasm0(r0, r1);
1893
+ } finally {
1894
+ wasm.__wbindgen_add_to_stack_pointer(16);
1895
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1896
+ }
1897
+ }
1898
+ /**
1899
+ * @returns {number}
1900
+ */
1901
+ get get_left() {
1902
+ const ret = wasm.minesweeperboard_get_left(this.__wbg_ptr);
1903
+ return ret >>> 0;
1904
+ }
1905
+ /**
1906
+ * @returns {number}
1907
+ */
1908
+ get get_right() {
1909
+ const ret = wasm.minesweeperboard_get_right(this.__wbg_ptr);
1910
+ return ret >>> 0;
1911
+ }
1912
+ /**
1913
+ * @returns {number}
1914
+ */
1915
+ get get_double() {
1916
+ const ret = wasm.minesweeperboard_get_double(this.__wbg_ptr);
1917
+ return ret >>> 0;
1918
+ }
1919
+ /**
1920
+ * @returns {number}
1921
+ */
1922
+ get get_ce() {
1923
+ const ret = wasm.minesweeperboard_get_ce(this.__wbg_ptr);
1924
+ return ret >>> 0;
1925
+ }
1926
+ /**
1927
+ * @returns {number}
1928
+ */
1929
+ get get_flag() {
1930
+ const ret = wasm.minesweeperboard_get_flag(this.__wbg_ptr);
1931
+ return ret >>> 0;
1932
+ }
1933
+ /**
1934
+ * @returns {number}
1935
+ */
1936
+ get get_bbbv_solved() {
1937
+ const ret = wasm.minesweeperboard_get_bbbv_solved(this.__wbg_ptr);
1938
+ return ret >>> 0;
1939
+ }
1940
+ /**
1941
+ * @returns {number}
1942
+ */
1943
+ get get_row() {
1944
+ const ret = wasm.minesweeperboard_get_row(this.__wbg_ptr);
1945
+ return ret >>> 0;
1946
+ }
1947
+ /**
1948
+ * @returns {number}
1949
+ */
1950
+ get get_column() {
1951
+ const ret = wasm.minesweeperboard_get_column(this.__wbg_ptr);
1952
+ return ret >>> 0;
1953
+ }
1954
+ /**
1955
+ * @returns {number}
1956
+ */
1957
+ get get_game_board_state() {
1958
+ const ret = wasm.minesweeperboard_get_game_board_state(this.__wbg_ptr);
1959
+ return ret >>> 0;
1960
+ }
1961
+ /**
1962
+ * @returns {number}
1963
+ */
1964
+ get get_mouse_state() {
1965
+ const ret = wasm.minesweeperboard_get_mouse_state(this.__wbg_ptr);
1966
+ return ret >>> 0;
1967
+ }
1968
+ }
1969
+ /**
1970
+ */
1971
+ export class MvfVideo {
1972
+
1973
+ static __wrap(ptr) {
1974
+ ptr = ptr >>> 0;
1975
+ const obj = Object.create(MvfVideo.prototype);
1976
+ obj.__wbg_ptr = ptr;
1977
+
1978
+ return obj;
1979
+ }
1980
+
1981
+ toJSON() {
1982
+ return {
1983
+ get_raw_data: this.get_raw_data,
1984
+ get_software: this.get_software,
1985
+ get_row: this.get_row,
1986
+ get_column: this.get_column,
1987
+ get_level: this.get_level,
1988
+ get_mode: this.get_mode,
1989
+ get_is_completed: this.get_is_completed,
1990
+ get_is_offical: this.get_is_offical,
1991
+ get_is_fair: this.get_is_fair,
1992
+ get_mine_num: this.get_mine_num,
1993
+ get_player_designator: this.get_player_designator,
1994
+ get_race_designator: this.get_race_designator,
1995
+ get_uniqueness_designator: this.get_uniqueness_designator,
1996
+ get_country: this.get_country,
1997
+ get_bbbv: this.get_bbbv,
1998
+ get_start_time: this.get_start_time,
1999
+ get_end_time: this.get_end_time,
2000
+ get_op: this.get_op,
2001
+ get_isl: this.get_isl,
2002
+ get_hizi: this.get_hizi,
2003
+ get_cell0: this.get_cell0,
2004
+ get_cell1: this.get_cell1,
2005
+ get_cell2: this.get_cell2,
2006
+ get_cell3: this.get_cell3,
2007
+ get_cell4: this.get_cell4,
2008
+ get_cell5: this.get_cell5,
2009
+ get_cell6: this.get_cell6,
2010
+ get_cell7: this.get_cell7,
2011
+ get_cell8: this.get_cell8,
2012
+ get_rtime: this.get_rtime,
2013
+ get_rtime_ms: this.get_rtime_ms,
2014
+ get_etime: this.get_etime,
2015
+ get_video_time: this.get_video_time,
2016
+ get_bbbv_s: this.get_bbbv_s,
2017
+ get_stnb: this.get_stnb,
2018
+ get_rqp: this.get_rqp,
2019
+ get_left: this.get_left,
2020
+ get_right: this.get_right,
2021
+ get_double: this.get_double,
2022
+ get_cl: this.get_cl,
2023
+ get_flag: this.get_flag,
2024
+ get_bbbv_solved: this.get_bbbv_solved,
2025
+ get_ce: this.get_ce,
2026
+ get_left_s: this.get_left_s,
2027
+ get_right_s: this.get_right_s,
2028
+ get_double_s: this.get_double_s,
2029
+ get_cl_s: this.get_cl_s,
2030
+ get_flag_s: this.get_flag_s,
2031
+ get_path: this.get_path,
2032
+ get_ce_s: this.get_ce_s,
2033
+ get_ioe: this.get_ioe,
2034
+ get_thrp: this.get_thrp,
2035
+ get_corr: this.get_corr,
2036
+ get_events_len: this.get_events_len,
2037
+ get_current_event_id: this.get_current_event_id,
2038
+ get_game_board: this.get_game_board,
2039
+ get_game_board_poss: this.get_game_board_poss,
2040
+ get_mouse_state: this.get_mouse_state,
2041
+ get_game_board_state: this.get_game_board_state,
2042
+ get_x_y: this.get_x_y,
2043
+ get_checksum: this.get_checksum,
2044
+ };
2045
+ }
2046
+
2047
+ toString() {
2048
+ return JSON.stringify(this);
2049
+ }
2050
+
2051
+ __destroy_into_raw() {
2052
+ const ptr = this.__wbg_ptr;
2053
+ this.__wbg_ptr = 0;
2054
+
2055
+ return ptr;
2056
+ }
2057
+
2058
+ free() {
2059
+ const ptr = this.__destroy_into_raw();
2060
+ wasm.__wbg_mvfvideo_free(ptr);
2061
+ }
2062
+ /**
2063
+ * @param {Uint8Array} data
2064
+ * @param {string} file_name
2065
+ * @returns {MvfVideo}
2066
+ */
2067
+ static new(data, file_name) {
2068
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
2069
+ const len0 = WASM_VECTOR_LEN;
2070
+ const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2071
+ const len1 = WASM_VECTOR_LEN;
2072
+ const ret = wasm.mvfvideo_new(ptr0, len0, ptr1, len1);
2073
+ return MvfVideo.__wrap(ret);
2074
+ }
2075
+ /**
2076
+ */
2077
+ parse_video() {
2078
+ wasm.mvfvideo_parse_video(this.__wbg_ptr);
2079
+ }
2080
+ /**
2081
+ */
2082
+ analyse() {
2083
+ wasm.avfvideo_analyse(this.__wbg_ptr);
2084
+ }
2085
+ /**
2086
+ * @returns {Uint8Array}
2087
+ */
2088
+ get get_raw_data() {
2089
+ try {
2090
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2091
+ wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
2092
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2093
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2094
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2095
+ wasm.__wbindgen_free(r0, r1 * 1);
2096
+ return v1;
2097
+ } finally {
2098
+ wasm.__wbindgen_add_to_stack_pointer(16);
2099
+ }
2100
+ }
2101
+ /**
2102
+ * @returns {Uint8Array}
2103
+ */
2104
+ get get_software() {
2105
+ try {
2106
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2107
+ wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
2108
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2109
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2110
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2111
+ wasm.__wbindgen_free(r0, r1 * 1);
2112
+ return v1;
2113
+ } finally {
2114
+ wasm.__wbindgen_add_to_stack_pointer(16);
2115
+ }
2116
+ }
2117
+ /**
2118
+ * @returns {number}
2119
+ */
2120
+ get get_row() {
2121
+ const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
2122
+ return ret >>> 0;
2123
+ }
2124
+ /**
2125
+ * @returns {number}
2126
+ */
2127
+ get get_column() {
2128
+ const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
2129
+ return ret >>> 0;
2130
+ }
2131
+ /**
2132
+ * @returns {number}
2133
+ */
2134
+ get get_level() {
2135
+ const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
2136
+ return ret;
2137
+ }
2138
+ /**
2139
+ * @returns {number}
2140
+ */
2141
+ get get_mode() {
2142
+ const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
2143
+ return ret;
2144
+ }
2145
+ /**
2146
+ * @returns {boolean}
2147
+ */
2148
+ get get_is_completed() {
2149
+ const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
2150
+ return ret !== 0;
2151
+ }
2152
+ /**
2153
+ * @returns {boolean}
2154
+ */
2155
+ get get_is_offical() {
2156
+ const ret = wasm.avfvideo_get_is_offical(this.__wbg_ptr);
2157
+ return ret !== 0;
2158
+ }
2159
+ /**
2160
+ * @returns {boolean}
2161
+ */
2162
+ get get_is_fair() {
2163
+ const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
2164
+ return ret !== 0;
2165
+ }
2166
+ /**
2167
+ * @returns {number}
2168
+ */
2169
+ get get_mine_num() {
2170
+ const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
2171
+ return ret >>> 0;
2172
+ }
2173
+ /**
2174
+ * @returns {Uint8Array}
2175
+ */
2176
+ get get_player_designator() {
2177
+ try {
2178
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2179
+ wasm.avfvideo_get_player_designator(retptr, this.__wbg_ptr);
2180
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2181
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2182
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2183
+ wasm.__wbindgen_free(r0, r1 * 1);
2184
+ return v1;
2185
+ } finally {
2186
+ wasm.__wbindgen_add_to_stack_pointer(16);
2187
+ }
2188
+ }
2189
+ /**
2190
+ * @returns {Uint8Array}
2191
+ */
2192
+ get get_race_designator() {
2193
+ try {
2194
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2195
+ wasm.avfvideo_get_race_designator(retptr, this.__wbg_ptr);
2196
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2197
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2198
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2199
+ wasm.__wbindgen_free(r0, r1 * 1);
2200
+ return v1;
2201
+ } finally {
2202
+ wasm.__wbindgen_add_to_stack_pointer(16);
2203
+ }
2204
+ }
2205
+ /**
2206
+ * @returns {Uint8Array}
2207
+ */
2208
+ get get_uniqueness_designator() {
2209
+ try {
2210
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2211
+ wasm.avfvideo_get_uniqueness_designator(retptr, this.__wbg_ptr);
2212
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2213
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2214
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2215
+ wasm.__wbindgen_free(r0, r1 * 1);
2216
+ return v1;
2217
+ } finally {
2218
+ wasm.__wbindgen_add_to_stack_pointer(16);
2219
+ }
2220
+ }
2221
+ /**
2222
+ * @returns {Uint8Array}
2223
+ */
2224
+ get get_country() {
2225
+ try {
2226
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2227
+ wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
2228
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2229
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2230
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2231
+ wasm.__wbindgen_free(r0, r1 * 1);
2232
+ return v1;
2233
+ } finally {
2234
+ wasm.__wbindgen_add_to_stack_pointer(16);
2235
+ }
2236
+ }
2237
+ /**
2238
+ * @returns {number}
2239
+ */
2240
+ get get_bbbv() {
2241
+ const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
2242
+ return ret >>> 0;
2243
+ }
2244
+ /**
2245
+ * @returns {Uint8Array}
2246
+ */
2247
+ get get_start_time() {
2248
+ try {
2249
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2250
+ wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
2251
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2252
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2253
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2254
+ wasm.__wbindgen_free(r0, r1 * 1);
2255
+ return v1;
2256
+ } finally {
2257
+ wasm.__wbindgen_add_to_stack_pointer(16);
2258
+ }
2259
+ }
2260
+ /**
2261
+ * @returns {Uint8Array}
2262
+ */
2263
+ get get_end_time() {
2264
+ try {
2265
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2266
+ wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
2267
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2268
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2269
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2270
+ wasm.__wbindgen_free(r0, r1 * 1);
2271
+ return v1;
2272
+ } finally {
2273
+ wasm.__wbindgen_add_to_stack_pointer(16);
2274
+ }
2275
+ }
2276
+ /**
2277
+ * @returns {number}
2278
+ */
2279
+ get get_op() {
2280
+ const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
2281
+ return ret >>> 0;
2282
+ }
2283
+ /**
2284
+ * @returns {number}
2285
+ */
2286
+ get get_isl() {
2287
+ const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
2288
+ return ret >>> 0;
2289
+ }
2290
+ /**
2291
+ * @returns {number}
2292
+ */
2293
+ get get_hizi() {
2294
+ const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
2295
+ return ret >>> 0;
2296
+ }
2297
+ /**
2298
+ * @returns {number}
2299
+ */
2300
+ get get_cell0() {
2301
+ const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
2302
+ return ret >>> 0;
2303
+ }
2304
+ /**
2305
+ * @returns {number}
2306
+ */
2307
+ get get_cell1() {
2308
+ const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
2309
+ return ret >>> 0;
2310
+ }
2311
+ /**
2312
+ * @returns {number}
2313
+ */
2314
+ get get_cell2() {
2315
+ const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
2316
+ return ret >>> 0;
2317
+ }
2318
+ /**
2319
+ * @returns {number}
2320
+ */
2321
+ get get_cell3() {
2322
+ const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
2323
+ return ret >>> 0;
2324
+ }
2325
+ /**
2326
+ * @returns {number}
2327
+ */
2328
+ get get_cell4() {
2329
+ const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
2330
+ return ret >>> 0;
2331
+ }
2332
+ /**
2333
+ * @returns {number}
2334
+ */
2335
+ get get_cell5() {
2336
+ const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
2337
+ return ret >>> 0;
2338
+ }
2339
+ /**
2340
+ * @returns {number}
2341
+ */
2342
+ get get_cell6() {
2343
+ const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
2344
+ return ret >>> 0;
2345
+ }
2346
+ /**
2347
+ * @returns {number}
2348
+ */
2349
+ get get_cell7() {
2350
+ const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
2351
+ return ret >>> 0;
2352
+ }
2353
+ /**
2354
+ * @returns {number}
2355
+ */
2356
+ get get_cell8() {
2357
+ const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
2358
+ return ret >>> 0;
2359
+ }
2360
+ /**
2361
+ * @returns {number}
2362
+ */
2363
+ get get_rtime() {
2364
+ const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
2365
+ return ret;
2366
+ }
2367
+ /**
2368
+ * @returns {number}
2369
+ */
2370
+ get get_rtime_ms() {
2371
+ const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
2372
+ return ret >>> 0;
2373
+ }
2374
+ /**
2375
+ * @returns {number}
2376
+ */
2377
+ get get_etime() {
2378
+ const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
2379
+ return ret;
2380
+ }
2381
+ /**
2382
+ * @returns {number}
2383
+ */
2384
+ get get_video_time() {
2385
+ const ret = wasm.avfvideo_get_video_time(this.__wbg_ptr);
2386
+ return ret;
2387
+ }
2388
+ /**
2389
+ * @returns {number}
2390
+ */
2391
+ get get_bbbv_s() {
2392
+ const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
2393
+ return ret;
2394
+ }
2395
+ /**
2396
+ * @returns {number}
2397
+ */
2398
+ get get_stnb() {
2399
+ const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
2400
+ return ret;
2401
+ }
2402
+ /**
2403
+ * @returns {number}
2404
+ */
2405
+ get get_rqp() {
2406
+ const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
2407
+ return ret;
2408
+ }
2409
+ /**
2410
+ * @returns {number}
2411
+ */
2412
+ get get_left() {
2413
+ const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
2414
+ return ret >>> 0;
2415
+ }
2416
+ /**
2417
+ * @returns {number}
2418
+ */
2419
+ get get_right() {
2420
+ const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
2421
+ return ret >>> 0;
2422
+ }
2423
+ /**
2424
+ * @returns {number}
2425
+ */
2426
+ get get_double() {
2427
+ const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
2428
+ return ret >>> 0;
2429
+ }
2430
+ /**
2431
+ * @returns {number}
2432
+ */
2433
+ get get_cl() {
2434
+ const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
2435
+ return ret >>> 0;
2436
+ }
2437
+ /**
2438
+ * @returns {number}
2439
+ */
2440
+ get get_flag() {
2441
+ const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
2442
+ return ret >>> 0;
2443
+ }
2444
+ /**
2445
+ * @returns {number}
2446
+ */
2447
+ get get_bbbv_solved() {
2448
+ const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
2449
+ return ret >>> 0;
2450
+ }
2451
+ /**
2452
+ * @returns {number}
2453
+ */
2454
+ get get_ce() {
2455
+ const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
2456
+ return ret >>> 0;
2457
+ }
2458
+ /**
2459
+ * @returns {number}
2460
+ */
2461
+ get get_left_s() {
2462
+ const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
2463
+ return ret;
2464
+ }
2465
+ /**
2466
+ * @returns {number}
2467
+ */
2468
+ get get_right_s() {
2469
+ const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
2470
+ return ret;
2471
+ }
2472
+ /**
2473
+ * @returns {number}
2474
+ */
2475
+ get get_double_s() {
2476
+ const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
2477
+ return ret;
2478
+ }
2479
+ /**
2480
+ * @returns {number}
2481
+ */
2482
+ get get_cl_s() {
2483
+ const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
2484
+ return ret;
2485
+ }
2486
+ /**
2487
+ * @returns {number}
2488
+ */
2489
+ get get_flag_s() {
2490
+ const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
2491
+ return ret;
2492
+ }
2493
+ /**
2494
+ * @returns {number}
2495
+ */
2496
+ get get_path() {
2497
+ const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
2498
+ return ret;
2499
+ }
2500
+ /**
2501
+ * @returns {number}
2502
+ */
2503
+ get get_ce_s() {
2504
+ const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
2505
+ return ret;
2506
+ }
2507
+ /**
2508
+ * @returns {number}
2509
+ */
2510
+ get get_ioe() {
2511
+ const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
2512
+ return ret;
2513
+ }
2514
+ /**
2515
+ * @returns {number}
2516
+ */
2517
+ get get_thrp() {
2518
+ const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
2519
+ return ret;
2520
+ }
2521
+ /**
2522
+ * @returns {number}
2523
+ */
2524
+ get get_corr() {
2525
+ const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
2526
+ return ret;
2527
+ }
2528
+ /**
2529
+ * @returns {number}
2530
+ */
2531
+ get get_events_len() {
2532
+ const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
2533
+ return ret >>> 0;
2534
+ }
2535
+ /**
2536
+ * @param {number} index
2537
+ * @returns {number}
2538
+ */
2539
+ events_time(index) {
2540
+ const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
2541
+ return ret;
2542
+ }
2543
+ /**
2544
+ * @param {number} index
2545
+ * @returns {string}
2546
+ */
2547
+ events_mouse(index) {
2548
+ let deferred1_0;
2549
+ let deferred1_1;
2550
+ try {
2551
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2552
+ wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
2553
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2554
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2555
+ deferred1_0 = r0;
2556
+ deferred1_1 = r1;
2557
+ return getStringFromWasm0(r0, r1);
2558
+ } finally {
2559
+ wasm.__wbindgen_add_to_stack_pointer(16);
2560
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2561
+ }
2562
+ }
2563
+ /**
2564
+ * @param {number} index
2565
+ * @returns {number}
2566
+ */
2567
+ events_x(index) {
2568
+ const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
2569
+ return ret;
2570
+ }
2571
+ /**
2572
+ * @param {number} index
2573
+ * @returns {number}
2574
+ */
2575
+ events_y(index) {
2576
+ const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
2577
+ return ret;
2578
+ }
2579
+ /**
2580
+ * @param {number} index
2581
+ * @returns {number}
2582
+ */
2583
+ events_useful_level(index) {
2584
+ const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
2585
+ return ret;
2586
+ }
2587
+ /**
2588
+ * @param {number} index
2589
+ * @returns {number}
2590
+ */
2591
+ events_mouse_state(index) {
2592
+ const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
2593
+ return ret >>> 0;
2594
+ }
2595
+ /**
2596
+ * @returns {number}
2597
+ */
2598
+ get get_current_event_id() {
2599
+ const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
2600
+ return ret >>> 0;
2601
+ }
2602
+ /**
2603
+ * @param {number} id
2604
+ */
2605
+ set current_event_id(id) {
2606
+ wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
2607
+ }
2608
+ /**
2609
+ * @returns {string}
2610
+ */
2611
+ get get_game_board() {
2612
+ let deferred1_0;
2613
+ let deferred1_1;
2614
+ try {
2615
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2616
+ wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
2617
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2618
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2619
+ deferred1_0 = r0;
2620
+ deferred1_1 = r1;
2621
+ return getStringFromWasm0(r0, r1);
2622
+ } finally {
2623
+ wasm.__wbindgen_add_to_stack_pointer(16);
2624
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2625
+ }
2626
+ }
2627
+ /**
2628
+ * @returns {string}
2629
+ */
2630
+ get get_game_board_poss() {
2631
+ let deferred1_0;
2632
+ let deferred1_1;
2633
+ try {
2634
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2635
+ wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
2636
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2637
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2638
+ deferred1_0 = r0;
2639
+ deferred1_1 = r1;
2640
+ return getStringFromWasm0(r0, r1);
2641
+ } finally {
2642
+ wasm.__wbindgen_add_to_stack_pointer(16);
2643
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2644
+ }
2645
+ }
2646
+ /**
2647
+ * @returns {number}
2648
+ */
2649
+ get get_mouse_state() {
2650
+ const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
2651
+ return ret >>> 0;
2652
+ }
2653
+ /**
2654
+ * 局面状态
2655
+ * @returns {number}
2656
+ */
2657
+ get get_game_board_state() {
2658
+ const ret = wasm.mvfvideo_get_game_board_state(this.__wbg_ptr);
2659
+ return ret >>> 0;
2660
+ }
2661
+ /**
2662
+ * 返回当前光标的位置,播放录像用
2663
+ * @returns {CursorPos}
2664
+ */
2665
+ get get_x_y() {
2666
+ const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
2667
+ return CursorPos.__wrap(ret);
2668
+ }
2669
+ /**
2670
+ * @returns {Uint8Array}
2671
+ */
2672
+ get get_checksum() {
2673
+ try {
2674
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2675
+ wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
2676
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2677
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2678
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2679
+ wasm.__wbindgen_free(r0, r1 * 1);
2680
+ return v1;
2681
+ } finally {
2682
+ wasm.__wbindgen_add_to_stack_pointer(16);
2683
+ }
2684
+ }
2685
+ /**
2686
+ * @param {number} time
2687
+ */
2688
+ set current_time(time) {
2689
+ wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
2690
+ }
2691
+ /**
2692
+ * @returns {number}
2693
+ */
2694
+ is_valid() {
2695
+ const ret = wasm.avfvideo_is_valid(this.__wbg_ptr);
2696
+ return ret;
2697
+ }
2698
+ }
2699
+ /**
2700
+ */
2701
+ export class RmvVideo {
2702
+
2703
+ static __wrap(ptr) {
2704
+ ptr = ptr >>> 0;
2705
+ const obj = Object.create(RmvVideo.prototype);
2706
+ obj.__wbg_ptr = ptr;
2707
+
2708
+ return obj;
2709
+ }
2710
+
2711
+ toJSON() {
2712
+ return {
2713
+ get_raw_data: this.get_raw_data,
2714
+ get_software: this.get_software,
2715
+ get_row: this.get_row,
2716
+ get_column: this.get_column,
2717
+ get_level: this.get_level,
2718
+ get_mode: this.get_mode,
2719
+ get_is_completed: this.get_is_completed,
2720
+ get_is_offical: this.get_is_offical,
2721
+ get_is_fair: this.get_is_fair,
2722
+ get_mine_num: this.get_mine_num,
2723
+ get_player_designator: this.get_player_designator,
2724
+ get_race_designator: this.get_race_designator,
2725
+ get_uniqueness_designator: this.get_uniqueness_designator,
2726
+ get_country: this.get_country,
2727
+ get_bbbv: this.get_bbbv,
2728
+ get_start_time: this.get_start_time,
2729
+ get_end_time: this.get_end_time,
2730
+ get_op: this.get_op,
2731
+ get_isl: this.get_isl,
2732
+ get_hizi: this.get_hizi,
2733
+ get_cell0: this.get_cell0,
2734
+ get_cell1: this.get_cell1,
2735
+ get_cell2: this.get_cell2,
2736
+ get_cell3: this.get_cell3,
2737
+ get_cell4: this.get_cell4,
2738
+ get_cell5: this.get_cell5,
2739
+ get_cell6: this.get_cell6,
2740
+ get_cell7: this.get_cell7,
2741
+ get_cell8: this.get_cell8,
2742
+ get_rtime: this.get_rtime,
2743
+ get_rtime_ms: this.get_rtime_ms,
2744
+ get_etime: this.get_etime,
2745
+ get_video_time: this.get_video_time,
2746
+ get_bbbv_s: this.get_bbbv_s,
2747
+ get_stnb: this.get_stnb,
2748
+ get_rqp: this.get_rqp,
2749
+ get_left: this.get_left,
2750
+ get_right: this.get_right,
2751
+ get_double: this.get_double,
2752
+ get_cl: this.get_cl,
2753
+ get_flag: this.get_flag,
2754
+ get_bbbv_solved: this.get_bbbv_solved,
2755
+ get_ce: this.get_ce,
2756
+ get_left_s: this.get_left_s,
2757
+ get_right_s: this.get_right_s,
2758
+ get_double_s: this.get_double_s,
2759
+ get_cl_s: this.get_cl_s,
2760
+ get_flag_s: this.get_flag_s,
2761
+ get_path: this.get_path,
2762
+ get_ce_s: this.get_ce_s,
2763
+ get_ioe: this.get_ioe,
2764
+ get_thrp: this.get_thrp,
2765
+ get_corr: this.get_corr,
2766
+ get_events_len: this.get_events_len,
2767
+ get_current_event_id: this.get_current_event_id,
2768
+ get_game_board: this.get_game_board,
2769
+ get_game_board_poss: this.get_game_board_poss,
2770
+ get_mouse_state: this.get_mouse_state,
2771
+ get_game_board_state: this.get_game_board_state,
2772
+ get_x_y: this.get_x_y,
2773
+ get_checksum: this.get_checksum,
2774
+ };
2775
+ }
2776
+
2777
+ toString() {
2778
+ return JSON.stringify(this);
2779
+ }
2780
+
2781
+ __destroy_into_raw() {
2782
+ const ptr = this.__wbg_ptr;
2783
+ this.__wbg_ptr = 0;
2784
+
2785
+ return ptr;
2786
+ }
2787
+
2788
+ free() {
2789
+ const ptr = this.__destroy_into_raw();
2790
+ wasm.__wbg_rmvvideo_free(ptr);
2791
+ }
2792
+ /**
2793
+ * @param {Uint8Array} data
2794
+ * @param {string} file_name
2795
+ * @returns {RmvVideo}
2796
+ */
2797
+ static new(data, file_name) {
2798
+ const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
2799
+ const len0 = WASM_VECTOR_LEN;
2800
+ const ptr1 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2801
+ const len1 = WASM_VECTOR_LEN;
2802
+ const ret = wasm.rmvvideo_new(ptr0, len0, ptr1, len1);
2803
+ return RmvVideo.__wrap(ret);
2804
+ }
2805
+ /**
2806
+ */
2807
+ parse_video() {
2808
+ wasm.rmvvideo_parse_video(this.__wbg_ptr);
2809
+ }
2810
+ /**
2811
+ */
2812
+ analyse() {
2813
+ wasm.avfvideo_analyse(this.__wbg_ptr);
2814
+ }
2815
+ /**
2816
+ * @returns {Uint8Array}
2817
+ */
2818
+ get get_raw_data() {
2819
+ try {
2820
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2821
+ wasm.avfvideo_get_raw_data(retptr, this.__wbg_ptr);
2822
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2823
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2824
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2825
+ wasm.__wbindgen_free(r0, r1 * 1);
2826
+ return v1;
2827
+ } finally {
2828
+ wasm.__wbindgen_add_to_stack_pointer(16);
2829
+ }
2830
+ }
2831
+ /**
2832
+ * @returns {Uint8Array}
2833
+ */
2834
+ get get_software() {
2835
+ try {
2836
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2837
+ wasm.avfvideo_get_software(retptr, this.__wbg_ptr);
2838
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2839
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2840
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2841
+ wasm.__wbindgen_free(r0, r1 * 1);
2842
+ return v1;
2843
+ } finally {
2844
+ wasm.__wbindgen_add_to_stack_pointer(16);
2845
+ }
2846
+ }
2847
+ /**
2848
+ * @returns {number}
2849
+ */
2850
+ get get_row() {
2851
+ const ret = wasm.avfvideo_get_row(this.__wbg_ptr);
2852
+ return ret >>> 0;
2853
+ }
2854
+ /**
2855
+ * @returns {number}
2856
+ */
2857
+ get get_column() {
2858
+ const ret = wasm.avfvideo_get_column(this.__wbg_ptr);
2859
+ return ret >>> 0;
2860
+ }
2861
+ /**
2862
+ * @returns {number}
2863
+ */
2864
+ get get_level() {
2865
+ const ret = wasm.avfvideo_get_level(this.__wbg_ptr);
2866
+ return ret;
2867
+ }
2868
+ /**
2869
+ * @returns {number}
2870
+ */
2871
+ get get_mode() {
2872
+ const ret = wasm.avfvideo_get_mode(this.__wbg_ptr);
2873
+ return ret;
2874
+ }
2875
+ /**
2876
+ * @returns {boolean}
2877
+ */
2878
+ get get_is_completed() {
2879
+ const ret = wasm.avfvideo_get_is_completed(this.__wbg_ptr);
2880
+ return ret !== 0;
2881
+ }
2882
+ /**
2883
+ * @returns {boolean}
2884
+ */
2885
+ get get_is_offical() {
2886
+ const ret = wasm.avfvideo_get_is_offical(this.__wbg_ptr);
2887
+ return ret !== 0;
2888
+ }
2889
+ /**
2890
+ * @returns {boolean}
2891
+ */
2892
+ get get_is_fair() {
2893
+ const ret = wasm.avfvideo_get_is_fair(this.__wbg_ptr);
2894
+ return ret !== 0;
2895
+ }
2896
+ /**
2897
+ * @returns {number}
2898
+ */
2899
+ get get_mine_num() {
2900
+ const ret = wasm.avfvideo_get_mine_num(this.__wbg_ptr);
2901
+ return ret >>> 0;
2902
+ }
2903
+ /**
2904
+ * @returns {Uint8Array}
2905
+ */
2906
+ get get_player_designator() {
2907
+ try {
2908
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2909
+ wasm.avfvideo_get_player_designator(retptr, this.__wbg_ptr);
2910
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2911
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2912
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2913
+ wasm.__wbindgen_free(r0, r1 * 1);
2914
+ return v1;
2915
+ } finally {
2916
+ wasm.__wbindgen_add_to_stack_pointer(16);
2917
+ }
2918
+ }
2919
+ /**
2920
+ * @returns {Uint8Array}
2921
+ */
2922
+ get get_race_designator() {
2923
+ try {
2924
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2925
+ wasm.avfvideo_get_race_designator(retptr, this.__wbg_ptr);
2926
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2927
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2928
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2929
+ wasm.__wbindgen_free(r0, r1 * 1);
2930
+ return v1;
2931
+ } finally {
2932
+ wasm.__wbindgen_add_to_stack_pointer(16);
2933
+ }
2934
+ }
2935
+ /**
2936
+ * @returns {Uint8Array}
2937
+ */
2938
+ get get_uniqueness_designator() {
2939
+ try {
2940
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2941
+ wasm.avfvideo_get_uniqueness_designator(retptr, this.__wbg_ptr);
2942
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2943
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2944
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2945
+ wasm.__wbindgen_free(r0, r1 * 1);
2946
+ return v1;
2947
+ } finally {
2948
+ wasm.__wbindgen_add_to_stack_pointer(16);
2949
+ }
2950
+ }
2951
+ /**
2952
+ * @returns {Uint8Array}
2953
+ */
2954
+ get get_country() {
2955
+ try {
2956
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2957
+ wasm.avfvideo_get_country(retptr, this.__wbg_ptr);
2958
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2959
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2960
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2961
+ wasm.__wbindgen_free(r0, r1 * 1);
2962
+ return v1;
2963
+ } finally {
2964
+ wasm.__wbindgen_add_to_stack_pointer(16);
2965
+ }
2966
+ }
2967
+ /**
2968
+ * @returns {number}
2969
+ */
2970
+ get get_bbbv() {
2971
+ const ret = wasm.avfvideo_get_bbbv(this.__wbg_ptr);
2972
+ return ret >>> 0;
2973
+ }
2974
+ /**
2975
+ * @returns {Uint8Array}
2976
+ */
2977
+ get get_start_time() {
2978
+ try {
2979
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2980
+ wasm.avfvideo_get_start_time(retptr, this.__wbg_ptr);
2981
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2982
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2983
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
2984
+ wasm.__wbindgen_free(r0, r1 * 1);
2985
+ return v1;
2986
+ } finally {
2987
+ wasm.__wbindgen_add_to_stack_pointer(16);
2988
+ }
2989
+ }
2990
+ /**
2991
+ * @returns {Uint8Array}
2992
+ */
2993
+ get get_end_time() {
2994
+ try {
2995
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2996
+ wasm.avfvideo_get_end_time(retptr, this.__wbg_ptr);
2997
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
2998
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
2999
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
3000
+ wasm.__wbindgen_free(r0, r1 * 1);
3001
+ return v1;
3002
+ } finally {
3003
+ wasm.__wbindgen_add_to_stack_pointer(16);
3004
+ }
3005
+ }
3006
+ /**
3007
+ * @returns {number}
3008
+ */
3009
+ get get_op() {
3010
+ const ret = wasm.avfvideo_get_op(this.__wbg_ptr);
3011
+ return ret >>> 0;
3012
+ }
3013
+ /**
3014
+ * @returns {number}
3015
+ */
3016
+ get get_isl() {
3017
+ const ret = wasm.avfvideo_get_isl(this.__wbg_ptr);
3018
+ return ret >>> 0;
3019
+ }
3020
+ /**
3021
+ * @returns {number}
3022
+ */
3023
+ get get_hizi() {
3024
+ const ret = wasm.avfvideo_get_hizi(this.__wbg_ptr);
3025
+ return ret >>> 0;
3026
+ }
3027
+ /**
3028
+ * @returns {number}
3029
+ */
3030
+ get get_cell0() {
3031
+ const ret = wasm.avfvideo_get_cell0(this.__wbg_ptr);
3032
+ return ret >>> 0;
3033
+ }
3034
+ /**
3035
+ * @returns {number}
3036
+ */
3037
+ get get_cell1() {
3038
+ const ret = wasm.avfvideo_get_cell1(this.__wbg_ptr);
3039
+ return ret >>> 0;
3040
+ }
3041
+ /**
3042
+ * @returns {number}
3043
+ */
3044
+ get get_cell2() {
3045
+ const ret = wasm.avfvideo_get_cell2(this.__wbg_ptr);
3046
+ return ret >>> 0;
3047
+ }
3048
+ /**
3049
+ * @returns {number}
3050
+ */
3051
+ get get_cell3() {
3052
+ const ret = wasm.avfvideo_get_cell3(this.__wbg_ptr);
3053
+ return ret >>> 0;
3054
+ }
3055
+ /**
3056
+ * @returns {number}
3057
+ */
3058
+ get get_cell4() {
3059
+ const ret = wasm.avfvideo_get_cell4(this.__wbg_ptr);
3060
+ return ret >>> 0;
3061
+ }
3062
+ /**
3063
+ * @returns {number}
3064
+ */
3065
+ get get_cell5() {
3066
+ const ret = wasm.avfvideo_get_cell5(this.__wbg_ptr);
3067
+ return ret >>> 0;
3068
+ }
3069
+ /**
3070
+ * @returns {number}
3071
+ */
3072
+ get get_cell6() {
3073
+ const ret = wasm.avfvideo_get_cell6(this.__wbg_ptr);
3074
+ return ret >>> 0;
3075
+ }
3076
+ /**
3077
+ * @returns {number}
3078
+ */
3079
+ get get_cell7() {
3080
+ const ret = wasm.avfvideo_get_cell7(this.__wbg_ptr);
3081
+ return ret >>> 0;
3082
+ }
3083
+ /**
3084
+ * @returns {number}
3085
+ */
3086
+ get get_cell8() {
3087
+ const ret = wasm.avfvideo_get_cell8(this.__wbg_ptr);
3088
+ return ret >>> 0;
3089
+ }
3090
+ /**
3091
+ * @returns {number}
3092
+ */
3093
+ get get_rtime() {
3094
+ const ret = wasm.avfvideo_get_rtime(this.__wbg_ptr);
3095
+ return ret;
3096
+ }
3097
+ /**
3098
+ * @returns {number}
3099
+ */
3100
+ get get_rtime_ms() {
3101
+ const ret = wasm.avfvideo_get_rtime_ms(this.__wbg_ptr);
3102
+ return ret >>> 0;
3103
+ }
3104
+ /**
3105
+ * @returns {number}
3106
+ */
3107
+ get get_etime() {
3108
+ const ret = wasm.avfvideo_get_etime(this.__wbg_ptr);
3109
+ return ret;
3110
+ }
3111
+ /**
3112
+ * @returns {number}
3113
+ */
3114
+ get get_video_time() {
3115
+ const ret = wasm.avfvideo_get_video_time(this.__wbg_ptr);
3116
+ return ret;
3117
+ }
3118
+ /**
3119
+ * @returns {number}
3120
+ */
3121
+ get get_bbbv_s() {
3122
+ const ret = wasm.avfvideo_get_bbbv_s(this.__wbg_ptr);
3123
+ return ret;
3124
+ }
3125
+ /**
3126
+ * @returns {number}
3127
+ */
3128
+ get get_stnb() {
3129
+ const ret = wasm.avfvideo_get_stnb(this.__wbg_ptr);
3130
+ return ret;
3131
+ }
3132
+ /**
3133
+ * @returns {number}
3134
+ */
3135
+ get get_rqp() {
3136
+ const ret = wasm.avfvideo_get_rqp(this.__wbg_ptr);
3137
+ return ret;
3138
+ }
3139
+ /**
3140
+ * @returns {number}
3141
+ */
3142
+ get get_left() {
3143
+ const ret = wasm.avfvideo_get_left(this.__wbg_ptr);
3144
+ return ret >>> 0;
3145
+ }
3146
+ /**
3147
+ * @returns {number}
3148
+ */
3149
+ get get_right() {
3150
+ const ret = wasm.avfvideo_get_right(this.__wbg_ptr);
3151
+ return ret >>> 0;
3152
+ }
3153
+ /**
3154
+ * @returns {number}
3155
+ */
3156
+ get get_double() {
3157
+ const ret = wasm.avfvideo_get_double(this.__wbg_ptr);
3158
+ return ret >>> 0;
3159
+ }
3160
+ /**
3161
+ * @returns {number}
3162
+ */
3163
+ get get_cl() {
3164
+ const ret = wasm.avfvideo_get_cl(this.__wbg_ptr);
3165
+ return ret >>> 0;
3166
+ }
3167
+ /**
3168
+ * @returns {number}
3169
+ */
3170
+ get get_flag() {
3171
+ const ret = wasm.avfvideo_get_flag(this.__wbg_ptr);
3172
+ return ret >>> 0;
3173
+ }
3174
+ /**
3175
+ * @returns {number}
3176
+ */
3177
+ get get_bbbv_solved() {
3178
+ const ret = wasm.avfvideo_get_bbbv_solved(this.__wbg_ptr);
3179
+ return ret >>> 0;
3180
+ }
3181
+ /**
3182
+ * @returns {number}
3183
+ */
3184
+ get get_ce() {
3185
+ const ret = wasm.avfvideo_get_ce(this.__wbg_ptr);
3186
+ return ret >>> 0;
3187
+ }
3188
+ /**
3189
+ * @returns {number}
3190
+ */
3191
+ get get_left_s() {
3192
+ const ret = wasm.avfvideo_get_left_s(this.__wbg_ptr);
3193
+ return ret;
3194
+ }
3195
+ /**
3196
+ * @returns {number}
3197
+ */
3198
+ get get_right_s() {
3199
+ const ret = wasm.avfvideo_get_right_s(this.__wbg_ptr);
3200
+ return ret;
3201
+ }
3202
+ /**
3203
+ * @returns {number}
3204
+ */
3205
+ get get_double_s() {
3206
+ const ret = wasm.avfvideo_get_double_s(this.__wbg_ptr);
3207
+ return ret;
3208
+ }
3209
+ /**
3210
+ * @returns {number}
3211
+ */
3212
+ get get_cl_s() {
3213
+ const ret = wasm.avfvideo_get_cl_s(this.__wbg_ptr);
3214
+ return ret;
3215
+ }
3216
+ /**
3217
+ * @returns {number}
3218
+ */
3219
+ get get_flag_s() {
3220
+ const ret = wasm.avfvideo_get_flag_s(this.__wbg_ptr);
3221
+ return ret;
3222
+ }
3223
+ /**
3224
+ * @returns {number}
3225
+ */
3226
+ get get_path() {
3227
+ const ret = wasm.avfvideo_get_path(this.__wbg_ptr);
3228
+ return ret;
3229
+ }
3230
+ /**
3231
+ * @returns {number}
3232
+ */
3233
+ get get_ce_s() {
3234
+ const ret = wasm.avfvideo_get_ce_s(this.__wbg_ptr);
3235
+ return ret;
3236
+ }
3237
+ /**
3238
+ * @returns {number}
3239
+ */
3240
+ get get_ioe() {
3241
+ const ret = wasm.avfvideo_get_ioe(this.__wbg_ptr);
3242
+ return ret;
3243
+ }
3244
+ /**
3245
+ * @returns {number}
3246
+ */
3247
+ get get_thrp() {
3248
+ const ret = wasm.avfvideo_get_thrp(this.__wbg_ptr);
3249
+ return ret;
3250
+ }
3251
+ /**
3252
+ * @returns {number}
3253
+ */
3254
+ get get_corr() {
3255
+ const ret = wasm.avfvideo_get_corr(this.__wbg_ptr);
3256
+ return ret;
3257
+ }
3258
+ /**
3259
+ * @returns {number}
3260
+ */
3261
+ get get_events_len() {
3262
+ const ret = wasm.avfvideo_get_events_len(this.__wbg_ptr);
3263
+ return ret >>> 0;
3264
+ }
3265
+ /**
3266
+ * @param {number} index
3267
+ * @returns {number}
3268
+ */
3269
+ events_time(index) {
3270
+ const ret = wasm.avfvideo_events_time(this.__wbg_ptr, index);
3271
+ return ret;
3272
+ }
3273
+ /**
3274
+ * @param {number} index
3275
+ * @returns {string}
3276
+ */
3277
+ events_mouse(index) {
3278
+ let deferred1_0;
3279
+ let deferred1_1;
3280
+ try {
3281
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3282
+ wasm.avfvideo_events_mouse(retptr, this.__wbg_ptr, index);
3283
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
3284
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
3285
+ deferred1_0 = r0;
3286
+ deferred1_1 = r1;
3287
+ return getStringFromWasm0(r0, r1);
3288
+ } finally {
3289
+ wasm.__wbindgen_add_to_stack_pointer(16);
3290
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3291
+ }
3292
+ }
3293
+ /**
3294
+ * @param {number} index
3295
+ * @returns {number}
3296
+ */
3297
+ events_x(index) {
3298
+ const ret = wasm.avfvideo_events_x(this.__wbg_ptr, index);
3299
+ return ret;
3300
+ }
3301
+ /**
3302
+ * @param {number} index
3303
+ * @returns {number}
3304
+ */
3305
+ events_y(index) {
3306
+ const ret = wasm.avfvideo_events_y(this.__wbg_ptr, index);
3307
+ return ret;
3308
+ }
3309
+ /**
3310
+ * @param {number} index
3311
+ * @returns {number}
3312
+ */
3313
+ events_useful_level(index) {
3314
+ const ret = wasm.avfvideo_events_useful_level(this.__wbg_ptr, index);
3315
+ return ret;
3316
+ }
3317
+ /**
3318
+ * @param {number} index
3319
+ * @returns {number}
3320
+ */
3321
+ events_mouse_state(index) {
3322
+ const ret = wasm.avfvideo_events_mouse_state(this.__wbg_ptr, index);
3323
+ return ret >>> 0;
3324
+ }
3325
+ /**
3326
+ * @returns {number}
3327
+ */
3328
+ get get_current_event_id() {
3329
+ const ret = wasm.avfvideo_get_current_event_id(this.__wbg_ptr);
3330
+ return ret >>> 0;
3331
+ }
3332
+ /**
3333
+ * @param {number} id
3334
+ */
3335
+ set current_event_id(id) {
3336
+ wasm.avfvideo_set_current_event_id(this.__wbg_ptr, id);
3337
+ }
3338
+ /**
3339
+ * @returns {string}
3340
+ */
3341
+ get get_game_board() {
3342
+ let deferred1_0;
3343
+ let deferred1_1;
3344
+ try {
3345
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3346
+ wasm.avfvideo_get_game_board(retptr, this.__wbg_ptr);
3347
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
3348
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
3349
+ deferred1_0 = r0;
3350
+ deferred1_1 = r1;
3351
+ return getStringFromWasm0(r0, r1);
3352
+ } finally {
3353
+ wasm.__wbindgen_add_to_stack_pointer(16);
3354
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3355
+ }
3356
+ }
3357
+ /**
3358
+ * @returns {string}
3359
+ */
3360
+ get get_game_board_poss() {
3361
+ let deferred1_0;
3362
+ let deferred1_1;
3363
+ try {
3364
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3365
+ wasm.avfvideo_get_game_board_poss(retptr, this.__wbg_ptr);
3366
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
3367
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
3368
+ deferred1_0 = r0;
3369
+ deferred1_1 = r1;
3370
+ return getStringFromWasm0(r0, r1);
3371
+ } finally {
3372
+ wasm.__wbindgen_add_to_stack_pointer(16);
3373
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3374
+ }
3375
+ }
3376
+ /**
3377
+ * @returns {number}
3378
+ */
3379
+ get get_mouse_state() {
3380
+ const ret = wasm.avfvideo_get_mouse_state(this.__wbg_ptr);
3381
+ return ret >>> 0;
3382
+ }
3383
+ /**
3384
+ * 局面状态
3385
+ * @returns {number}
3386
+ */
3387
+ get get_game_board_state() {
3388
+ const ret = wasm.rmvvideo_get_game_board_state(this.__wbg_ptr);
3389
+ return ret >>> 0;
3390
+ }
3391
+ /**
3392
+ * 返回当前光标的位置,播放录像用
3393
+ * @returns {CursorPos}
3394
+ */
3395
+ get get_x_y() {
3396
+ const ret = wasm.avfvideo_get_x_y(this.__wbg_ptr);
3397
+ return CursorPos.__wrap(ret);
3398
+ }
3399
+ /**
3400
+ * @returns {Uint8Array}
3401
+ */
3402
+ get get_checksum() {
3403
+ try {
3404
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3405
+ wasm.avfvideo_get_checksum(retptr, this.__wbg_ptr);
3406
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
3407
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
3408
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
3409
+ wasm.__wbindgen_free(r0, r1 * 1);
3410
+ return v1;
3411
+ } finally {
3412
+ wasm.__wbindgen_add_to_stack_pointer(16);
3413
+ }
3414
+ }
3415
+ /**
3416
+ * @param {number} time
3417
+ */
3418
+ set current_time(time) {
3419
+ wasm.avfvideo_set_current_time(this.__wbg_ptr, time);
3420
+ }
3421
+ /**
3422
+ * @returns {number}
3423
+ */
3424
+ is_valid() {
3425
+ const ret = wasm.avfvideo_is_valid(this.__wbg_ptr);
3426
+ return ret;
3427
+ }
3428
+ }
3429
+
3430
+ export function __wbg_new_abda76e883ba8a5f() {
3431
+ const ret = new Error();
3432
+ return addHeapObject(ret);
3433
+ };
3434
+
3435
+ export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
3436
+ const ret = getObject(arg1).stack;
3437
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3438
+ const len1 = WASM_VECTOR_LEN;
3439
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
3440
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
3441
+ };
3442
+
3443
+ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
3444
+ let deferred0_0;
3445
+ let deferred0_1;
3446
+ try {
3447
+ deferred0_0 = arg0;
3448
+ deferred0_1 = arg1;
3449
+ console.error(getStringFromWasm0(arg0, arg1));
3450
+ } finally {
3451
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3452
+ }
3453
+ };
3454
+
3455
+ export function __wbindgen_object_drop_ref(arg0) {
3456
+ takeObject(arg0);
3457
+ };
3458
+
3459
+ export function __wbg_crypto_c48a774b022d20ac(arg0) {
3460
+ const ret = getObject(arg0).crypto;
3461
+ return addHeapObject(ret);
3462
+ };
3463
+
3464
+ export function __wbindgen_is_object(arg0) {
3465
+ const val = getObject(arg0);
3466
+ const ret = typeof(val) === 'object' && val !== null;
3467
+ return ret;
3468
+ };
3469
+
3470
+ export function __wbg_process_298734cf255a885d(arg0) {
3471
+ const ret = getObject(arg0).process;
3472
+ return addHeapObject(ret);
3473
+ };
3474
+
3475
+ export function __wbg_versions_e2e78e134e3e5d01(arg0) {
3476
+ const ret = getObject(arg0).versions;
3477
+ return addHeapObject(ret);
3478
+ };
3479
+
3480
+ export function __wbg_node_1cd7a5d853dbea79(arg0) {
3481
+ const ret = getObject(arg0).node;
3482
+ return addHeapObject(ret);
3483
+ };
3484
+
3485
+ export function __wbindgen_is_string(arg0) {
3486
+ const ret = typeof(getObject(arg0)) === 'string';
3487
+ return ret;
3488
+ };
3489
+
3490
+ export function __wbg_require_8f08ceecec0f4fee() { return handleError(function () {
3491
+ const ret = module.require;
3492
+ return addHeapObject(ret);
3493
+ }, arguments) };
3494
+
3495
+ export function __wbindgen_string_new(arg0, arg1) {
3496
+ const ret = getStringFromWasm0(arg0, arg1);
3497
+ return addHeapObject(ret);
3498
+ };
3499
+
3500
+ export function __wbg_msCrypto_bcb970640f50a1e8(arg0) {
3501
+ const ret = getObject(arg0).msCrypto;
3502
+ return addHeapObject(ret);
3503
+ };
3504
+
3505
+ export function __wbg_randomFillSync_dc1e9a60c158336d() { return handleError(function (arg0, arg1) {
3506
+ getObject(arg0).randomFillSync(takeObject(arg1));
3507
+ }, arguments) };
3508
+
3509
+ export function __wbg_getRandomValues_37fa2ca9e4e07fab() { return handleError(function (arg0, arg1) {
3510
+ getObject(arg0).getRandomValues(getObject(arg1));
3511
+ }, arguments) };
3512
+
3513
+ export function __wbindgen_is_function(arg0) {
3514
+ const ret = typeof(getObject(arg0)) === 'function';
3515
+ return ret;
3516
+ };
3517
+
3518
+ export function __wbg_newnoargs_581967eacc0e2604(arg0, arg1) {
3519
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
3520
+ return addHeapObject(ret);
3521
+ };
3522
+
3523
+ export function __wbg_call_cb65541d95d71282() { return handleError(function (arg0, arg1) {
3524
+ const ret = getObject(arg0).call(getObject(arg1));
3525
+ return addHeapObject(ret);
3526
+ }, arguments) };
3527
+
3528
+ export function __wbg_self_1ff1d729e9aae938() { return handleError(function () {
3529
+ const ret = self.self;
3530
+ return addHeapObject(ret);
3531
+ }, arguments) };
3532
+
3533
+ export function __wbg_window_5f4faef6c12b79ec() { return handleError(function () {
3534
+ const ret = window.window;
3535
+ return addHeapObject(ret);
3536
+ }, arguments) };
3537
+
3538
+ export function __wbg_globalThis_1d39714405582d3c() { return handleError(function () {
3539
+ const ret = globalThis.globalThis;
3540
+ return addHeapObject(ret);
3541
+ }, arguments) };
3542
+
3543
+ export function __wbg_global_651f05c6a0944d1c() { return handleError(function () {
3544
+ const ret = global.global;
3545
+ return addHeapObject(ret);
3546
+ }, arguments) };
3547
+
3548
+ export function __wbindgen_is_undefined(arg0) {
3549
+ const ret = getObject(arg0) === undefined;
3550
+ return ret;
3551
+ };
3552
+
3553
+ export function __wbg_call_01734de55d61e11d() { return handleError(function (arg0, arg1, arg2) {
3554
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
3555
+ return addHeapObject(ret);
3556
+ }, arguments) };
3557
+
3558
+ export function __wbg_buffer_085ec1f694018c4f(arg0) {
3559
+ const ret = getObject(arg0).buffer;
3560
+ return addHeapObject(ret);
3561
+ };
3562
+
3563
+ export function __wbg_newwithbyteoffsetandlength_6da8e527659b86aa(arg0, arg1, arg2) {
3564
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
3565
+ return addHeapObject(ret);
3566
+ };
3567
+
3568
+ export function __wbg_new_8125e318e6245eed(arg0) {
3569
+ const ret = new Uint8Array(getObject(arg0));
3570
+ return addHeapObject(ret);
3571
+ };
3572
+
3573
+ export function __wbg_set_5cf90238115182c3(arg0, arg1, arg2) {
3574
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
3575
+ };
3576
+
3577
+ export function __wbg_newwithlength_e5d69174d6984cd7(arg0) {
3578
+ const ret = new Uint8Array(arg0 >>> 0);
3579
+ return addHeapObject(ret);
3580
+ };
3581
+
3582
+ export function __wbg_subarray_13db269f57aa838d(arg0, arg1, arg2) {
3583
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
3584
+ return addHeapObject(ret);
3585
+ };
3586
+
3587
+ export function __wbindgen_object_clone_ref(arg0) {
3588
+ const ret = getObject(arg0);
3589
+ return addHeapObject(ret);
3590
+ };
3591
+
3592
+ export function __wbindgen_throw(arg0, arg1) {
3593
+ throw new Error(getStringFromWasm0(arg0, arg1));
3594
+ };
3595
+
3596
+ export function __wbindgen_memory() {
3597
+ const ret = wasm.memory;
3598
+ return addHeapObject(ret);
3599
+ };
3600
+