ms-toollib 1.4.19-alpha → 1.5.2-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ms_toollib.d.ts +90 -15
- package/ms_toollib.js +641 -368
- package/ms_toollib_bg.wasm +0 -0
- package/package.json +1 -1
package/ms_toollib.js
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
1
|
|
|
2
2
|
let imports = {};
|
|
3
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
-
|
|
5
|
-
const {
|
|
4
|
+
|
|
5
|
+
const { inspect } = require(`util`);
|
|
6
6
|
|
|
7
7
|
function addToExternrefTable0(obj) {
|
|
8
8
|
const idx = wasm.__externref_table_alloc();
|
|
9
|
-
wasm.
|
|
9
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
10
10
|
return idx;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} catch (e) {
|
|
17
|
-
const idx = addToExternrefTable0(e);
|
|
18
|
-
wasm.__wbindgen_exn_store(idx);
|
|
19
|
-
}
|
|
13
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
14
|
+
ptr = ptr >>> 0;
|
|
15
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
20
16
|
}
|
|
21
17
|
|
|
22
|
-
let
|
|
18
|
+
let cachedDataViewMemory0 = null;
|
|
19
|
+
function getDataViewMemory0() {
|
|
20
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
21
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
22
|
+
}
|
|
23
|
+
return cachedDataViewMemory0;
|
|
24
|
+
}
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
function getStringFromWasm0(ptr, len) {
|
|
27
|
+
ptr = ptr >>> 0;
|
|
28
|
+
return decodeText(ptr, len);
|
|
29
|
+
}
|
|
25
30
|
|
|
26
31
|
let cachedUint8ArrayMemory0 = null;
|
|
27
|
-
|
|
28
32
|
function getUint8ArrayMemory0() {
|
|
29
33
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
30
34
|
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
@@ -32,43 +36,27 @@ function getUint8ArrayMemory0() {
|
|
|
32
36
|
return cachedUint8ArrayMemory0;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
|
|
39
|
+
function handleError(f, args) {
|
|
40
|
+
try {
|
|
41
|
+
return f.apply(this, args);
|
|
42
|
+
} catch (e) {
|
|
43
|
+
const idx = addToExternrefTable0(e);
|
|
44
|
+
wasm.__wbindgen_exn_store(idx);
|
|
45
|
+
}
|
|
38
46
|
}
|
|
39
47
|
|
|
40
48
|
function isLikeNone(x) {
|
|
41
49
|
return x === undefined || x === null;
|
|
42
50
|
}
|
|
43
51
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
return cachedDataViewMemory0;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
let WASM_VECTOR_LEN = 0;
|
|
54
|
-
|
|
55
|
-
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
56
|
-
|
|
57
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
58
|
-
? function (arg, view) {
|
|
59
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
52
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
53
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
54
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
55
|
+
WASM_VECTOR_LEN = arg.length;
|
|
56
|
+
return ptr;
|
|
60
57
|
}
|
|
61
|
-
: function (arg, view) {
|
|
62
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
63
|
-
view.set(buf);
|
|
64
|
-
return {
|
|
65
|
-
read: arg.length,
|
|
66
|
-
written: buf.length
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
58
|
|
|
70
59
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
71
|
-
|
|
72
60
|
if (realloc === undefined) {
|
|
73
61
|
const buf = cachedTextEncoder.encode(arg);
|
|
74
62
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
@@ -89,14 +77,13 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
89
77
|
if (code > 0x7F) break;
|
|
90
78
|
mem[ptr + offset] = code;
|
|
91
79
|
}
|
|
92
|
-
|
|
93
80
|
if (offset !== len) {
|
|
94
81
|
if (offset !== 0) {
|
|
95
82
|
arg = arg.slice(offset);
|
|
96
83
|
}
|
|
97
84
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
98
85
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
99
|
-
const ret =
|
|
86
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
100
87
|
|
|
101
88
|
offset += ret.written;
|
|
102
89
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -106,113 +93,92 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
106
93
|
return ptr;
|
|
107
94
|
}
|
|
108
95
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
return ptr;
|
|
96
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
97
|
+
cachedTextDecoder.decode();
|
|
98
|
+
function decodeText(ptr, len) {
|
|
99
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
114
100
|
}
|
|
115
101
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
102
|
+
const cachedTextEncoder = new TextEncoder();
|
|
103
|
+
|
|
104
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
105
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
106
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
107
|
+
view.set(buf);
|
|
108
|
+
return {
|
|
109
|
+
read: arg.length,
|
|
110
|
+
written: buf.length
|
|
111
|
+
};
|
|
112
|
+
}
|
|
119
113
|
}
|
|
120
|
-
/**
|
|
121
|
-
* @param {any} js_board
|
|
122
|
-
* @returns {number}
|
|
123
|
-
*/
|
|
124
|
-
module.exports.cal_bbbv = function(js_board) {
|
|
125
|
-
const ret = wasm.cal_bbbv(js_board);
|
|
126
|
-
return ret >>> 0;
|
|
127
|
-
};
|
|
128
114
|
|
|
129
|
-
|
|
130
|
-
* @param {any} js_board
|
|
131
|
-
* @returns {number}
|
|
132
|
-
*/
|
|
133
|
-
module.exports.cal_op = function(js_board) {
|
|
134
|
-
const ret = wasm.cal_op(js_board);
|
|
135
|
-
return ret >>> 0;
|
|
136
|
-
};
|
|
115
|
+
let WASM_VECTOR_LEN = 0;
|
|
137
116
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
* @returns {any}
|
|
142
|
-
*/
|
|
143
|
-
module.exports.cal_probability_onboard = function(js_board, mine_num) {
|
|
144
|
-
const ret = wasm.cal_probability_onboard(js_board, mine_num);
|
|
145
|
-
return ret;
|
|
146
|
-
};
|
|
117
|
+
const AvfVideoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
118
|
+
? { register: () => {}, unregister: () => {} }
|
|
119
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_avfvideo_free(ptr >>> 0, 1));
|
|
147
120
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
* @param {number} mine_num
|
|
152
|
-
* @param {number} x0
|
|
153
|
-
* @param {number} y0
|
|
154
|
-
* @returns {any}
|
|
155
|
-
*/
|
|
156
|
-
module.exports.laymine = function(row, column, mine_num, x0, y0) {
|
|
157
|
-
const ret = wasm.laymine(row, column, mine_num, x0, y0);
|
|
158
|
-
return ret;
|
|
159
|
-
};
|
|
121
|
+
const BoardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
122
|
+
? { register: () => {}, unregister: () => {} }
|
|
123
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_board_free(ptr >>> 0, 1));
|
|
160
124
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
* @param {number} mine_num
|
|
165
|
-
* @param {number} x0
|
|
166
|
-
* @param {number} y0
|
|
167
|
-
* @returns {any}
|
|
168
|
-
*/
|
|
169
|
-
module.exports.laymine_op = function(row, column, mine_num, x0, y0) {
|
|
170
|
-
const ret = wasm.laymine_op(row, column, mine_num, x0, y0);
|
|
171
|
-
return ret;
|
|
172
|
-
};
|
|
125
|
+
const BoardEventFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
126
|
+
? { register: () => {}, unregister: () => {} }
|
|
127
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_boardevent_free(ptr >>> 0, 1));
|
|
173
128
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
* @param {number} mine_num
|
|
178
|
-
* @param {number} x0
|
|
179
|
-
* @param {number} y0
|
|
180
|
-
* @param {number} max_times
|
|
181
|
-
* @returns {any}
|
|
182
|
-
*/
|
|
183
|
-
module.exports.laymine_solvable = function(row, column, mine_num, x0, y0, max_times) {
|
|
184
|
-
const ret = wasm.laymine_solvable(row, column, mine_num, x0, y0, max_times);
|
|
185
|
-
return ret;
|
|
186
|
-
};
|
|
129
|
+
const CursorPosFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
130
|
+
? { register: () => {}, unregister: () => {} }
|
|
131
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cursorpos_free(ptr >>> 0, 1));
|
|
187
132
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
* @param {number} y0
|
|
192
|
-
* @returns {boolean}
|
|
193
|
-
*/
|
|
194
|
-
module.exports.is_solvable = function(js_board, x0, y0) {
|
|
195
|
-
const ret = wasm.is_solvable(js_board, x0, y0);
|
|
196
|
-
return ret !== 0;
|
|
197
|
-
};
|
|
133
|
+
const EventFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
134
|
+
? { register: () => {}, unregister: () => {} }
|
|
135
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_event_free(ptr >>> 0, 1));
|
|
198
136
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
*/
|
|
203
|
-
module.exports.valid_time_period = function(software) {
|
|
204
|
-
const ptr0 = passStringToWasm0(software, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
205
|
-
const len0 = WASM_VECTOR_LEN;
|
|
206
|
-
const ret = wasm.valid_time_period(ptr0, len0);
|
|
207
|
-
return TimePeriod.__wrap(ret);
|
|
208
|
-
};
|
|
137
|
+
const EvfVideoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
138
|
+
? { register: () => {}, unregister: () => {} }
|
|
139
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_evfvideo_free(ptr >>> 0, 1));
|
|
209
140
|
|
|
210
|
-
const
|
|
141
|
+
const GameBoardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
211
142
|
? { register: () => {}, unregister: () => {} }
|
|
212
|
-
: new FinalizationRegistry(ptr => wasm.
|
|
143
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_gameboard_free(ptr >>> 0, 1));
|
|
213
144
|
|
|
214
|
-
|
|
145
|
+
const GameStateEventFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
146
|
+
? { register: () => {}, unregister: () => {} }
|
|
147
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_gamestateevent_free(ptr >>> 0, 1));
|
|
148
|
+
|
|
149
|
+
const IndexEventFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
150
|
+
? { register: () => {}, unregister: () => {} }
|
|
151
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_indexevent_free(ptr >>> 0, 1));
|
|
152
|
+
|
|
153
|
+
const KeyDynamicParamsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
154
|
+
? { register: () => {}, unregister: () => {} }
|
|
155
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_keydynamicparams_free(ptr >>> 0, 1));
|
|
156
|
+
|
|
157
|
+
const MinesweeperBoardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
158
|
+
? { register: () => {}, unregister: () => {} }
|
|
159
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_minesweeperboard_free(ptr >>> 0, 1));
|
|
160
|
+
|
|
161
|
+
const MouseEventFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
162
|
+
? { register: () => {}, unregister: () => {} }
|
|
163
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_mouseevent_free(ptr >>> 0, 1));
|
|
164
|
+
|
|
165
|
+
const MvfVideoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
166
|
+
? { register: () => {}, unregister: () => {} }
|
|
167
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_mvfvideo_free(ptr >>> 0, 1));
|
|
168
|
+
|
|
169
|
+
const RmvVideoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
170
|
+
? { register: () => {}, unregister: () => {} }
|
|
171
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rmvvideo_free(ptr >>> 0, 1));
|
|
172
|
+
|
|
173
|
+
const TimePeriodFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
174
|
+
? { register: () => {}, unregister: () => {} }
|
|
175
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_timeperiod_free(ptr >>> 0, 1));
|
|
215
176
|
|
|
177
|
+
const VideoActionStateRecorderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
178
|
+
? { register: () => {}, unregister: () => {} }
|
|
179
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_videoactionstaterecorder_free(ptr >>> 0, 1));
|
|
180
|
+
|
|
181
|
+
class AvfVideo {
|
|
216
182
|
toJSON() {
|
|
217
183
|
return {
|
|
218
184
|
raw_data: this.raw_data,
|
|
@@ -284,22 +250,18 @@ class AvfVideo {
|
|
|
284
250
|
pix_size: this.pix_size,
|
|
285
251
|
};
|
|
286
252
|
}
|
|
287
|
-
|
|
288
253
|
toString() {
|
|
289
254
|
return JSON.stringify(this);
|
|
290
255
|
}
|
|
291
|
-
|
|
292
256
|
[inspect.custom]() {
|
|
293
257
|
return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
|
|
294
258
|
}
|
|
295
|
-
|
|
296
259
|
__destroy_into_raw() {
|
|
297
260
|
const ptr = this.__wbg_ptr;
|
|
298
261
|
this.__wbg_ptr = 0;
|
|
299
262
|
AvfVideoFinalization.unregister(this);
|
|
300
263
|
return ptr;
|
|
301
264
|
}
|
|
302
|
-
|
|
303
265
|
free() {
|
|
304
266
|
const ptr = this.__destroy_into_raw();
|
|
305
267
|
wasm.__wbg_avfvideo_free(ptr, 0);
|
|
@@ -318,8 +280,8 @@ class AvfVideo {
|
|
|
318
280
|
AvfVideoFinalization.register(this, this.__wbg_ptr, this);
|
|
319
281
|
return this;
|
|
320
282
|
}
|
|
321
|
-
|
|
322
|
-
wasm.
|
|
283
|
+
parse() {
|
|
284
|
+
wasm.avfvideo_parse(this.__wbg_ptr);
|
|
323
285
|
}
|
|
324
286
|
analyse() {
|
|
325
287
|
wasm.avfvideo_analyse(this.__wbg_ptr);
|
|
@@ -861,21 +823,16 @@ class AvfVideo {
|
|
|
861
823
|
return ret;
|
|
862
824
|
}
|
|
863
825
|
}
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
const BoardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
867
|
-
? { register: () => {}, unregister: () => {} }
|
|
868
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_board_free(ptr >>> 0, 1));
|
|
826
|
+
if (Symbol.dispose) AvfVideo.prototype[Symbol.dispose] = AvfVideo.prototype.free;
|
|
827
|
+
exports.AvfVideo = AvfVideo;
|
|
869
828
|
|
|
870
829
|
class Board {
|
|
871
|
-
|
|
872
830
|
__destroy_into_raw() {
|
|
873
831
|
const ptr = this.__wbg_ptr;
|
|
874
832
|
this.__wbg_ptr = 0;
|
|
875
833
|
BoardFinalization.unregister(this);
|
|
876
834
|
return ptr;
|
|
877
835
|
}
|
|
878
|
-
|
|
879
836
|
free() {
|
|
880
837
|
const ptr = this.__destroy_into_raw();
|
|
881
838
|
wasm.__wbg_board_free(ptr, 0);
|
|
@@ -974,14 +931,74 @@ class Board {
|
|
|
974
931
|
return ret >>> 0;
|
|
975
932
|
}
|
|
976
933
|
}
|
|
977
|
-
|
|
934
|
+
if (Symbol.dispose) Board.prototype[Symbol.dispose] = Board.prototype.free;
|
|
935
|
+
exports.Board = Board;
|
|
978
936
|
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
937
|
+
class BoardEvent {
|
|
938
|
+
static __wrap(ptr) {
|
|
939
|
+
ptr = ptr >>> 0;
|
|
940
|
+
const obj = Object.create(BoardEvent.prototype);
|
|
941
|
+
obj.__wbg_ptr = ptr;
|
|
942
|
+
BoardEventFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
943
|
+
return obj;
|
|
944
|
+
}
|
|
945
|
+
__destroy_into_raw() {
|
|
946
|
+
const ptr = this.__wbg_ptr;
|
|
947
|
+
this.__wbg_ptr = 0;
|
|
948
|
+
BoardEventFinalization.unregister(this);
|
|
949
|
+
return ptr;
|
|
950
|
+
}
|
|
951
|
+
free() {
|
|
952
|
+
const ptr = this.__destroy_into_raw();
|
|
953
|
+
wasm.__wbg_boardevent_free(ptr, 0);
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* @param {string} board
|
|
957
|
+
* @param {number} row_id
|
|
958
|
+
* @param {number} column_id
|
|
959
|
+
*/
|
|
960
|
+
constructor(board, row_id, column_id) {
|
|
961
|
+
const ptr0 = passStringToWasm0(board, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
962
|
+
const len0 = WASM_VECTOR_LEN;
|
|
963
|
+
const ret = wasm.boardevent_new(ptr0, len0, row_id, column_id);
|
|
964
|
+
this.__wbg_ptr = ret >>> 0;
|
|
965
|
+
BoardEventFinalization.register(this, this.__wbg_ptr, this);
|
|
966
|
+
return this;
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* @returns {string}
|
|
970
|
+
*/
|
|
971
|
+
get board() {
|
|
972
|
+
let deferred1_0;
|
|
973
|
+
let deferred1_1;
|
|
974
|
+
try {
|
|
975
|
+
const ret = wasm.boardevent_get_board(this.__wbg_ptr);
|
|
976
|
+
deferred1_0 = ret[0];
|
|
977
|
+
deferred1_1 = ret[1];
|
|
978
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
979
|
+
} finally {
|
|
980
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* @returns {number}
|
|
985
|
+
*/
|
|
986
|
+
get row_id() {
|
|
987
|
+
const ret = wasm.boardevent_get_row_id(this.__wbg_ptr);
|
|
988
|
+
return ret;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* @returns {number}
|
|
992
|
+
*/
|
|
993
|
+
get column_id() {
|
|
994
|
+
const ret = wasm.boardevent_get_column_id(this.__wbg_ptr);
|
|
995
|
+
return ret;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
if (Symbol.dispose) BoardEvent.prototype[Symbol.dispose] = BoardEvent.prototype.free;
|
|
999
|
+
exports.BoardEvent = BoardEvent;
|
|
982
1000
|
|
|
983
1001
|
class CursorPos {
|
|
984
|
-
|
|
985
1002
|
static __wrap(ptr) {
|
|
986
1003
|
ptr = ptr >>> 0;
|
|
987
1004
|
const obj = Object.create(CursorPos.prototype);
|
|
@@ -989,14 +1006,12 @@ class CursorPos {
|
|
|
989
1006
|
CursorPosFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
990
1007
|
return obj;
|
|
991
1008
|
}
|
|
992
|
-
|
|
993
1009
|
__destroy_into_raw() {
|
|
994
1010
|
const ptr = this.__wbg_ptr;
|
|
995
1011
|
this.__wbg_ptr = 0;
|
|
996
1012
|
CursorPosFinalization.unregister(this);
|
|
997
1013
|
return ptr;
|
|
998
1014
|
}
|
|
999
|
-
|
|
1000
1015
|
free() {
|
|
1001
1016
|
const ptr = this.__destroy_into_raw();
|
|
1002
1017
|
wasm.__wbg_cursorpos_free(ptr, 0);
|
|
@@ -1028,14 +1043,88 @@ class CursorPos {
|
|
|
1028
1043
|
wasm.__wbg_set_cursorpos_y(this.__wbg_ptr, arg0);
|
|
1029
1044
|
}
|
|
1030
1045
|
}
|
|
1031
|
-
|
|
1046
|
+
if (Symbol.dispose) CursorPos.prototype[Symbol.dispose] = CursorPos.prototype.free;
|
|
1047
|
+
exports.CursorPos = CursorPos;
|
|
1032
1048
|
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1049
|
+
class Event {
|
|
1050
|
+
static __wrap(ptr) {
|
|
1051
|
+
ptr = ptr >>> 0;
|
|
1052
|
+
const obj = Object.create(Event.prototype);
|
|
1053
|
+
obj.__wbg_ptr = ptr;
|
|
1054
|
+
EventFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1055
|
+
return obj;
|
|
1056
|
+
}
|
|
1057
|
+
__destroy_into_raw() {
|
|
1058
|
+
const ptr = this.__wbg_ptr;
|
|
1059
|
+
this.__wbg_ptr = 0;
|
|
1060
|
+
EventFinalization.unregister(this);
|
|
1061
|
+
return ptr;
|
|
1062
|
+
}
|
|
1063
|
+
free() {
|
|
1064
|
+
const ptr = this.__destroy_into_raw();
|
|
1065
|
+
wasm.__wbg_event_free(ptr, 0);
|
|
1066
|
+
}
|
|
1067
|
+
/**
|
|
1068
|
+
* @returns {boolean}
|
|
1069
|
+
*/
|
|
1070
|
+
is_mouse() {
|
|
1071
|
+
const ret = wasm.event_is_mouse(this.__wbg_ptr);
|
|
1072
|
+
return ret !== 0;
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* @returns {boolean}
|
|
1076
|
+
*/
|
|
1077
|
+
is_game_state() {
|
|
1078
|
+
const ret = wasm.event_is_game_state(this.__wbg_ptr);
|
|
1079
|
+
return ret !== 0;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* @returns {boolean}
|
|
1083
|
+
*/
|
|
1084
|
+
is_board() {
|
|
1085
|
+
const ret = wasm.event_is_board(this.__wbg_ptr);
|
|
1086
|
+
return ret !== 0;
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* @returns {boolean}
|
|
1090
|
+
*/
|
|
1091
|
+
is_index() {
|
|
1092
|
+
const ret = wasm.event_is_index(this.__wbg_ptr);
|
|
1093
|
+
return ret !== 0;
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* @returns {MouseEvent}
|
|
1097
|
+
*/
|
|
1098
|
+
unwrap_mouse() {
|
|
1099
|
+
const ret = wasm.event_unwrap_mouse(this.__wbg_ptr);
|
|
1100
|
+
return MouseEvent.__wrap(ret);
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* @returns {BoardEvent}
|
|
1104
|
+
*/
|
|
1105
|
+
unwrap_board() {
|
|
1106
|
+
const ret = wasm.event_unwrap_board(this.__wbg_ptr);
|
|
1107
|
+
return BoardEvent.__wrap(ret);
|
|
1108
|
+
}
|
|
1109
|
+
/**
|
|
1110
|
+
* @returns {IndexEvent}
|
|
1111
|
+
*/
|
|
1112
|
+
unwrap_index() {
|
|
1113
|
+
const ret = wasm.event_unwrap_index(this.__wbg_ptr);
|
|
1114
|
+
return IndexEvent.__wrap(ret);
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* @returns {GameStateEvent}
|
|
1118
|
+
*/
|
|
1119
|
+
unwrap_game_state() {
|
|
1120
|
+
const ret = wasm.event_unwrap_game_state(this.__wbg_ptr);
|
|
1121
|
+
return GameStateEvent.__wrap(ret);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
|
|
1125
|
+
exports.Event = Event;
|
|
1036
1126
|
|
|
1037
1127
|
class EvfVideo {
|
|
1038
|
-
|
|
1039
1128
|
toJSON() {
|
|
1040
1129
|
return {
|
|
1041
1130
|
raw_data: this.raw_data,
|
|
@@ -1107,22 +1196,18 @@ class EvfVideo {
|
|
|
1107
1196
|
pix_size: this.pix_size,
|
|
1108
1197
|
};
|
|
1109
1198
|
}
|
|
1110
|
-
|
|
1111
1199
|
toString() {
|
|
1112
1200
|
return JSON.stringify(this);
|
|
1113
1201
|
}
|
|
1114
|
-
|
|
1115
1202
|
[inspect.custom]() {
|
|
1116
1203
|
return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
|
|
1117
1204
|
}
|
|
1118
|
-
|
|
1119
1205
|
__destroy_into_raw() {
|
|
1120
1206
|
const ptr = this.__wbg_ptr;
|
|
1121
1207
|
this.__wbg_ptr = 0;
|
|
1122
1208
|
EvfVideoFinalization.unregister(this);
|
|
1123
1209
|
return ptr;
|
|
1124
1210
|
}
|
|
1125
|
-
|
|
1126
1211
|
free() {
|
|
1127
1212
|
const ptr = this.__destroy_into_raw();
|
|
1128
1213
|
wasm.__wbg_evfvideo_free(ptr, 0);
|
|
@@ -1141,8 +1226,8 @@ class EvfVideo {
|
|
|
1141
1226
|
EvfVideoFinalization.register(this, this.__wbg_ptr, this);
|
|
1142
1227
|
return this;
|
|
1143
1228
|
}
|
|
1144
|
-
|
|
1145
|
-
wasm.
|
|
1229
|
+
parse() {
|
|
1230
|
+
wasm.evfvideo_parse(this.__wbg_ptr);
|
|
1146
1231
|
}
|
|
1147
1232
|
analyse() {
|
|
1148
1233
|
wasm.evfvideo_analyse(this.__wbg_ptr);
|
|
@@ -1684,14 +1769,10 @@ class EvfVideo {
|
|
|
1684
1769
|
return ret;
|
|
1685
1770
|
}
|
|
1686
1771
|
}
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
const GameBoardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1690
|
-
? { register: () => {}, unregister: () => {} }
|
|
1691
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_gameboard_free(ptr >>> 0, 1));
|
|
1772
|
+
if (Symbol.dispose) EvfVideo.prototype[Symbol.dispose] = EvfVideo.prototype.free;
|
|
1773
|
+
exports.EvfVideo = EvfVideo;
|
|
1692
1774
|
|
|
1693
1775
|
class GameBoard {
|
|
1694
|
-
|
|
1695
1776
|
static __wrap(ptr) {
|
|
1696
1777
|
ptr = ptr >>> 0;
|
|
1697
1778
|
const obj = Object.create(GameBoard.prototype);
|
|
@@ -1699,14 +1780,12 @@ class GameBoard {
|
|
|
1699
1780
|
GameBoardFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1700
1781
|
return obj;
|
|
1701
1782
|
}
|
|
1702
|
-
|
|
1703
1783
|
__destroy_into_raw() {
|
|
1704
1784
|
const ptr = this.__wbg_ptr;
|
|
1705
1785
|
this.__wbg_ptr = 0;
|
|
1706
1786
|
GameBoardFinalization.unregister(this);
|
|
1707
1787
|
return ptr;
|
|
1708
1788
|
}
|
|
1709
|
-
|
|
1710
1789
|
free() {
|
|
1711
1790
|
const ptr = this.__destroy_into_raw();
|
|
1712
1791
|
wasm.__wbg_gameboard_free(ptr, 0);
|
|
@@ -1769,14 +1848,114 @@ class GameBoard {
|
|
|
1769
1848
|
return ret;
|
|
1770
1849
|
}
|
|
1771
1850
|
}
|
|
1772
|
-
|
|
1851
|
+
if (Symbol.dispose) GameBoard.prototype[Symbol.dispose] = GameBoard.prototype.free;
|
|
1852
|
+
exports.GameBoard = GameBoard;
|
|
1773
1853
|
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1854
|
+
class GameStateEvent {
|
|
1855
|
+
static __wrap(ptr) {
|
|
1856
|
+
ptr = ptr >>> 0;
|
|
1857
|
+
const obj = Object.create(GameStateEvent.prototype);
|
|
1858
|
+
obj.__wbg_ptr = ptr;
|
|
1859
|
+
GameStateEventFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1860
|
+
return obj;
|
|
1861
|
+
}
|
|
1862
|
+
__destroy_into_raw() {
|
|
1863
|
+
const ptr = this.__wbg_ptr;
|
|
1864
|
+
this.__wbg_ptr = 0;
|
|
1865
|
+
GameStateEventFinalization.unregister(this);
|
|
1866
|
+
return ptr;
|
|
1867
|
+
}
|
|
1868
|
+
free() {
|
|
1869
|
+
const ptr = this.__destroy_into_raw();
|
|
1870
|
+
wasm.__wbg_gamestateevent_free(ptr, 0);
|
|
1871
|
+
}
|
|
1872
|
+
/**
|
|
1873
|
+
* @param {string} game_state
|
|
1874
|
+
*/
|
|
1875
|
+
constructor(game_state) {
|
|
1876
|
+
const ptr0 = passStringToWasm0(game_state, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1877
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1878
|
+
const ret = wasm.gamestateevent_new(ptr0, len0);
|
|
1879
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1880
|
+
GameStateEventFinalization.register(this, this.__wbg_ptr, this);
|
|
1881
|
+
return this;
|
|
1882
|
+
}
|
|
1883
|
+
/**
|
|
1884
|
+
* @returns {string}
|
|
1885
|
+
*/
|
|
1886
|
+
get game_state() {
|
|
1887
|
+
let deferred1_0;
|
|
1888
|
+
let deferred1_1;
|
|
1889
|
+
try {
|
|
1890
|
+
const ret = wasm.gamestateevent_get_game_state(this.__wbg_ptr);
|
|
1891
|
+
deferred1_0 = ret[0];
|
|
1892
|
+
deferred1_1 = ret[1];
|
|
1893
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1894
|
+
} finally {
|
|
1895
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
if (Symbol.dispose) GameStateEvent.prototype[Symbol.dispose] = GameStateEvent.prototype.free;
|
|
1900
|
+
exports.GameStateEvent = GameStateEvent;
|
|
1777
1901
|
|
|
1778
|
-
class
|
|
1902
|
+
class IndexEvent {
|
|
1903
|
+
static __wrap(ptr) {
|
|
1904
|
+
ptr = ptr >>> 0;
|
|
1905
|
+
const obj = Object.create(IndexEvent.prototype);
|
|
1906
|
+
obj.__wbg_ptr = ptr;
|
|
1907
|
+
IndexEventFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1908
|
+
return obj;
|
|
1909
|
+
}
|
|
1910
|
+
__destroy_into_raw() {
|
|
1911
|
+
const ptr = this.__wbg_ptr;
|
|
1912
|
+
this.__wbg_ptr = 0;
|
|
1913
|
+
IndexEventFinalization.unregister(this);
|
|
1914
|
+
return ptr;
|
|
1915
|
+
}
|
|
1916
|
+
free() {
|
|
1917
|
+
const ptr = this.__destroy_into_raw();
|
|
1918
|
+
wasm.__wbg_indexevent_free(ptr, 0);
|
|
1919
|
+
}
|
|
1920
|
+
/**
|
|
1921
|
+
* @param {string} key
|
|
1922
|
+
* @param {any} value
|
|
1923
|
+
*/
|
|
1924
|
+
constructor(key, value) {
|
|
1925
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1926
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1927
|
+
const ret = wasm.indexevent_new(ptr0, len0, value);
|
|
1928
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1929
|
+
IndexEventFinalization.register(this, this.__wbg_ptr, this);
|
|
1930
|
+
return this;
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
* @returns {string}
|
|
1934
|
+
*/
|
|
1935
|
+
get key() {
|
|
1936
|
+
let deferred1_0;
|
|
1937
|
+
let deferred1_1;
|
|
1938
|
+
try {
|
|
1939
|
+
const ret = wasm.indexevent_get_key(this.__wbg_ptr);
|
|
1940
|
+
deferred1_0 = ret[0];
|
|
1941
|
+
deferred1_1 = ret[1];
|
|
1942
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1943
|
+
} finally {
|
|
1944
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* @returns {any}
|
|
1949
|
+
*/
|
|
1950
|
+
get value() {
|
|
1951
|
+
const ret = wasm.indexevent_get_value(this.__wbg_ptr);
|
|
1952
|
+
return ret;
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
if (Symbol.dispose) IndexEvent.prototype[Symbol.dispose] = IndexEvent.prototype.free;
|
|
1956
|
+
exports.IndexEvent = IndexEvent;
|
|
1779
1957
|
|
|
1958
|
+
class KeyDynamicParams {
|
|
1780
1959
|
static __wrap(ptr) {
|
|
1781
1960
|
ptr = ptr >>> 0;
|
|
1782
1961
|
const obj = Object.create(KeyDynamicParams.prototype);
|
|
@@ -1784,14 +1963,12 @@ class KeyDynamicParams {
|
|
|
1784
1963
|
KeyDynamicParamsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1785
1964
|
return obj;
|
|
1786
1965
|
}
|
|
1787
|
-
|
|
1788
1966
|
__destroy_into_raw() {
|
|
1789
1967
|
const ptr = this.__wbg_ptr;
|
|
1790
1968
|
this.__wbg_ptr = 0;
|
|
1791
1969
|
KeyDynamicParamsFinalization.unregister(this);
|
|
1792
1970
|
return ptr;
|
|
1793
1971
|
}
|
|
1794
|
-
|
|
1795
1972
|
free() {
|
|
1796
1973
|
const ptr = this.__destroy_into_raw();
|
|
1797
1974
|
wasm.__wbg_keydynamicparams_free(ptr, 0);
|
|
@@ -1867,21 +2044,16 @@ class KeyDynamicParams {
|
|
|
1867
2044
|
return ret >>> 0;
|
|
1868
2045
|
}
|
|
1869
2046
|
}
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
const MinesweeperBoardFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1873
|
-
? { register: () => {}, unregister: () => {} }
|
|
1874
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_minesweeperboard_free(ptr >>> 0, 1));
|
|
2047
|
+
if (Symbol.dispose) KeyDynamicParams.prototype[Symbol.dispose] = KeyDynamicParams.prototype.free;
|
|
2048
|
+
exports.KeyDynamicParams = KeyDynamicParams;
|
|
1875
2049
|
|
|
1876
2050
|
class MinesweeperBoard {
|
|
1877
|
-
|
|
1878
2051
|
__destroy_into_raw() {
|
|
1879
2052
|
const ptr = this.__wbg_ptr;
|
|
1880
2053
|
this.__wbg_ptr = 0;
|
|
1881
2054
|
MinesweeperBoardFinalization.unregister(this);
|
|
1882
2055
|
return ptr;
|
|
1883
2056
|
}
|
|
1884
|
-
|
|
1885
2057
|
free() {
|
|
1886
2058
|
const ptr = this.__destroy_into_raw();
|
|
1887
2059
|
wasm.__wbg_minesweeperboard_free(ptr, 0);
|
|
@@ -2017,26 +2189,86 @@ class MinesweeperBoard {
|
|
|
2017
2189
|
/**
|
|
2018
2190
|
* @returns {number}
|
|
2019
2191
|
*/
|
|
2020
|
-
get game_board_state() {
|
|
2021
|
-
const ret = wasm.minesweeperboard_get_game_board_state(this.__wbg_ptr);
|
|
2022
|
-
return ret >>> 0;
|
|
2192
|
+
get game_board_state() {
|
|
2193
|
+
const ret = wasm.minesweeperboard_get_game_board_state(this.__wbg_ptr);
|
|
2194
|
+
return ret >>> 0;
|
|
2195
|
+
}
|
|
2196
|
+
/**
|
|
2197
|
+
* @returns {number}
|
|
2198
|
+
*/
|
|
2199
|
+
get mouse_state() {
|
|
2200
|
+
const ret = wasm.minesweeperboard_get_mouse_state(this.__wbg_ptr);
|
|
2201
|
+
return ret >>> 0;
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
if (Symbol.dispose) MinesweeperBoard.prototype[Symbol.dispose] = MinesweeperBoard.prototype.free;
|
|
2205
|
+
exports.MinesweeperBoard = MinesweeperBoard;
|
|
2206
|
+
|
|
2207
|
+
class MouseEvent {
|
|
2208
|
+
static __wrap(ptr) {
|
|
2209
|
+
ptr = ptr >>> 0;
|
|
2210
|
+
const obj = Object.create(MouseEvent.prototype);
|
|
2211
|
+
obj.__wbg_ptr = ptr;
|
|
2212
|
+
MouseEventFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2213
|
+
return obj;
|
|
2214
|
+
}
|
|
2215
|
+
__destroy_into_raw() {
|
|
2216
|
+
const ptr = this.__wbg_ptr;
|
|
2217
|
+
this.__wbg_ptr = 0;
|
|
2218
|
+
MouseEventFinalization.unregister(this);
|
|
2219
|
+
return ptr;
|
|
2220
|
+
}
|
|
2221
|
+
free() {
|
|
2222
|
+
const ptr = this.__destroy_into_raw();
|
|
2223
|
+
wasm.__wbg_mouseevent_free(ptr, 0);
|
|
2224
|
+
}
|
|
2225
|
+
/**
|
|
2226
|
+
* @param {string} mouse
|
|
2227
|
+
* @param {number} x
|
|
2228
|
+
* @param {number} y
|
|
2229
|
+
*/
|
|
2230
|
+
constructor(mouse, x, y) {
|
|
2231
|
+
const ptr0 = passStringToWasm0(mouse, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2232
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2233
|
+
const ret = wasm.mouseevent_new(ptr0, len0, x, y);
|
|
2234
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2235
|
+
MouseEventFinalization.register(this, this.__wbg_ptr, this);
|
|
2236
|
+
return this;
|
|
2237
|
+
}
|
|
2238
|
+
/**
|
|
2239
|
+
* @returns {string}
|
|
2240
|
+
*/
|
|
2241
|
+
get mouse() {
|
|
2242
|
+
let deferred1_0;
|
|
2243
|
+
let deferred1_1;
|
|
2244
|
+
try {
|
|
2245
|
+
const ret = wasm.mouseevent_get_mouse(this.__wbg_ptr);
|
|
2246
|
+
deferred1_0 = ret[0];
|
|
2247
|
+
deferred1_1 = ret[1];
|
|
2248
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2249
|
+
} finally {
|
|
2250
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
/**
|
|
2254
|
+
* @returns {number}
|
|
2255
|
+
*/
|
|
2256
|
+
get x() {
|
|
2257
|
+
const ret = wasm.mouseevent_get_x(this.__wbg_ptr);
|
|
2258
|
+
return ret;
|
|
2023
2259
|
}
|
|
2024
2260
|
/**
|
|
2025
2261
|
* @returns {number}
|
|
2026
2262
|
*/
|
|
2027
|
-
get
|
|
2028
|
-
const ret = wasm.
|
|
2029
|
-
return ret
|
|
2263
|
+
get y() {
|
|
2264
|
+
const ret = wasm.mouseevent_get_y(this.__wbg_ptr);
|
|
2265
|
+
return ret;
|
|
2030
2266
|
}
|
|
2031
2267
|
}
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
const MvfVideoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2035
|
-
? { register: () => {}, unregister: () => {} }
|
|
2036
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_mvfvideo_free(ptr >>> 0, 1));
|
|
2268
|
+
if (Symbol.dispose) MouseEvent.prototype[Symbol.dispose] = MouseEvent.prototype.free;
|
|
2269
|
+
exports.MouseEvent = MouseEvent;
|
|
2037
2270
|
|
|
2038
2271
|
class MvfVideo {
|
|
2039
|
-
|
|
2040
2272
|
toJSON() {
|
|
2041
2273
|
return {
|
|
2042
2274
|
raw_data: this.raw_data,
|
|
@@ -2108,22 +2340,18 @@ class MvfVideo {
|
|
|
2108
2340
|
pix_size: this.pix_size,
|
|
2109
2341
|
};
|
|
2110
2342
|
}
|
|
2111
|
-
|
|
2112
2343
|
toString() {
|
|
2113
2344
|
return JSON.stringify(this);
|
|
2114
2345
|
}
|
|
2115
|
-
|
|
2116
2346
|
[inspect.custom]() {
|
|
2117
2347
|
return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
|
|
2118
2348
|
}
|
|
2119
|
-
|
|
2120
2349
|
__destroy_into_raw() {
|
|
2121
2350
|
const ptr = this.__wbg_ptr;
|
|
2122
2351
|
this.__wbg_ptr = 0;
|
|
2123
2352
|
MvfVideoFinalization.unregister(this);
|
|
2124
2353
|
return ptr;
|
|
2125
2354
|
}
|
|
2126
|
-
|
|
2127
2355
|
free() {
|
|
2128
2356
|
const ptr = this.__destroy_into_raw();
|
|
2129
2357
|
wasm.__wbg_mvfvideo_free(ptr, 0);
|
|
@@ -2142,8 +2370,8 @@ class MvfVideo {
|
|
|
2142
2370
|
MvfVideoFinalization.register(this, this.__wbg_ptr, this);
|
|
2143
2371
|
return this;
|
|
2144
2372
|
}
|
|
2145
|
-
|
|
2146
|
-
wasm.
|
|
2373
|
+
parse() {
|
|
2374
|
+
wasm.mvfvideo_parse(this.__wbg_ptr);
|
|
2147
2375
|
}
|
|
2148
2376
|
analyse() {
|
|
2149
2377
|
wasm.mvfvideo_analyse(this.__wbg_ptr);
|
|
@@ -2685,14 +2913,10 @@ class MvfVideo {
|
|
|
2685
2913
|
return ret;
|
|
2686
2914
|
}
|
|
2687
2915
|
}
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
const RmvVideoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
2691
|
-
? { register: () => {}, unregister: () => {} }
|
|
2692
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_rmvvideo_free(ptr >>> 0, 1));
|
|
2916
|
+
if (Symbol.dispose) MvfVideo.prototype[Symbol.dispose] = MvfVideo.prototype.free;
|
|
2917
|
+
exports.MvfVideo = MvfVideo;
|
|
2693
2918
|
|
|
2694
2919
|
class RmvVideo {
|
|
2695
|
-
|
|
2696
2920
|
toJSON() {
|
|
2697
2921
|
return {
|
|
2698
2922
|
raw_data: this.raw_data,
|
|
@@ -2764,22 +2988,18 @@ class RmvVideo {
|
|
|
2764
2988
|
pix_size: this.pix_size,
|
|
2765
2989
|
};
|
|
2766
2990
|
}
|
|
2767
|
-
|
|
2768
2991
|
toString() {
|
|
2769
2992
|
return JSON.stringify(this);
|
|
2770
2993
|
}
|
|
2771
|
-
|
|
2772
2994
|
[inspect.custom]() {
|
|
2773
2995
|
return Object.assign(Object.create({constructor: this.constructor}), this.toJSON());
|
|
2774
2996
|
}
|
|
2775
|
-
|
|
2776
2997
|
__destroy_into_raw() {
|
|
2777
2998
|
const ptr = this.__wbg_ptr;
|
|
2778
2999
|
this.__wbg_ptr = 0;
|
|
2779
3000
|
RmvVideoFinalization.unregister(this);
|
|
2780
3001
|
return ptr;
|
|
2781
3002
|
}
|
|
2782
|
-
|
|
2783
3003
|
free() {
|
|
2784
3004
|
const ptr = this.__destroy_into_raw();
|
|
2785
3005
|
wasm.__wbg_rmvvideo_free(ptr, 0);
|
|
@@ -2798,8 +3018,8 @@ class RmvVideo {
|
|
|
2798
3018
|
RmvVideoFinalization.register(this, this.__wbg_ptr, this);
|
|
2799
3019
|
return this;
|
|
2800
3020
|
}
|
|
2801
|
-
|
|
2802
|
-
wasm.
|
|
3021
|
+
parse() {
|
|
3022
|
+
wasm.rmvvideo_parse(this.__wbg_ptr);
|
|
2803
3023
|
}
|
|
2804
3024
|
analyse() {
|
|
2805
3025
|
wasm.rmvvideo_analyse(this.__wbg_ptr);
|
|
@@ -3341,14 +3561,10 @@ class RmvVideo {
|
|
|
3341
3561
|
return ret;
|
|
3342
3562
|
}
|
|
3343
3563
|
}
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
const TimePeriodFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3347
|
-
? { register: () => {}, unregister: () => {} }
|
|
3348
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_timeperiod_free(ptr >>> 0, 1));
|
|
3564
|
+
if (Symbol.dispose) RmvVideo.prototype[Symbol.dispose] = RmvVideo.prototype.free;
|
|
3565
|
+
exports.RmvVideo = RmvVideo;
|
|
3349
3566
|
|
|
3350
3567
|
class TimePeriod {
|
|
3351
|
-
|
|
3352
3568
|
static __wrap(ptr) {
|
|
3353
3569
|
ptr = ptr >>> 0;
|
|
3354
3570
|
const obj = Object.create(TimePeriod.prototype);
|
|
@@ -3356,14 +3572,12 @@ class TimePeriod {
|
|
|
3356
3572
|
TimePeriodFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3357
3573
|
return obj;
|
|
3358
3574
|
}
|
|
3359
|
-
|
|
3360
3575
|
__destroy_into_raw() {
|
|
3361
3576
|
const ptr = this.__wbg_ptr;
|
|
3362
3577
|
this.__wbg_ptr = 0;
|
|
3363
3578
|
TimePeriodFinalization.unregister(this);
|
|
3364
3579
|
return ptr;
|
|
3365
3580
|
}
|
|
3366
|
-
|
|
3367
3581
|
free() {
|
|
3368
3582
|
const ptr = this.__destroy_into_raw();
|
|
3369
3583
|
wasm.__wbg_timeperiod_free(ptr, 0);
|
|
@@ -3415,14 +3629,10 @@ class TimePeriod {
|
|
|
3415
3629
|
wasm.__wbg_set_timeperiod_end_time(this.__wbg_ptr, ptr0, len0);
|
|
3416
3630
|
}
|
|
3417
3631
|
}
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
const VideoActionStateRecorderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3421
|
-
? { register: () => {}, unregister: () => {} }
|
|
3422
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_videoactionstaterecorder_free(ptr >>> 0, 1));
|
|
3632
|
+
if (Symbol.dispose) TimePeriod.prototype[Symbol.dispose] = TimePeriod.prototype.free;
|
|
3633
|
+
exports.TimePeriod = TimePeriod;
|
|
3423
3634
|
|
|
3424
3635
|
class VideoActionStateRecorder {
|
|
3425
|
-
|
|
3426
3636
|
static __wrap(ptr) {
|
|
3427
3637
|
ptr = ptr >>> 0;
|
|
3428
3638
|
const obj = Object.create(VideoActionStateRecorder.prototype);
|
|
@@ -3430,14 +3640,12 @@ class VideoActionStateRecorder {
|
|
|
3430
3640
|
VideoActionStateRecorderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3431
3641
|
return obj;
|
|
3432
3642
|
}
|
|
3433
|
-
|
|
3434
3643
|
__destroy_into_raw() {
|
|
3435
3644
|
const ptr = this.__wbg_ptr;
|
|
3436
3645
|
this.__wbg_ptr = 0;
|
|
3437
3646
|
VideoActionStateRecorderFinalization.unregister(this);
|
|
3438
3647
|
return ptr;
|
|
3439
3648
|
}
|
|
3440
|
-
|
|
3441
3649
|
free() {
|
|
3442
3650
|
const ptr = this.__destroy_into_raw();
|
|
3443
3651
|
wasm.__wbg_videoactionstaterecorder_free(ptr, 0);
|
|
@@ -3450,33 +3658,11 @@ class VideoActionStateRecorder {
|
|
|
3450
3658
|
return ret;
|
|
3451
3659
|
}
|
|
3452
3660
|
/**
|
|
3453
|
-
* @returns {
|
|
3454
|
-
*/
|
|
3455
|
-
get x() {
|
|
3456
|
-
const ret = wasm.videoactionstaterecorder_get_x(this.__wbg_ptr);
|
|
3457
|
-
return ret;
|
|
3458
|
-
}
|
|
3459
|
-
/**
|
|
3460
|
-
* @returns {number}
|
|
3461
|
-
*/
|
|
3462
|
-
get y() {
|
|
3463
|
-
const ret = wasm.videoactionstaterecorder_get_y(this.__wbg_ptr);
|
|
3464
|
-
return ret;
|
|
3465
|
-
}
|
|
3466
|
-
/**
|
|
3467
|
-
* @returns {string}
|
|
3661
|
+
* @returns {Event}
|
|
3468
3662
|
*/
|
|
3469
|
-
get
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
try {
|
|
3473
|
-
const ret = wasm.videoactionstaterecorder_get_mouse(this.__wbg_ptr);
|
|
3474
|
-
deferred1_0 = ret[0];
|
|
3475
|
-
deferred1_1 = ret[1];
|
|
3476
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
3477
|
-
} finally {
|
|
3478
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
3479
|
-
}
|
|
3663
|
+
get event() {
|
|
3664
|
+
const ret = wasm.videoactionstaterecorder_get_event(this.__wbg_ptr);
|
|
3665
|
+
return Event.__wrap(ret);
|
|
3480
3666
|
}
|
|
3481
3667
|
/**
|
|
3482
3668
|
* @returns {number}
|
|
@@ -3536,223 +3722,310 @@ class VideoActionStateRecorder {
|
|
|
3536
3722
|
return KeyDynamicParams.__wrap(ret);
|
|
3537
3723
|
}
|
|
3538
3724
|
}
|
|
3539
|
-
|
|
3725
|
+
if (Symbol.dispose) VideoActionStateRecorder.prototype[Symbol.dispose] = VideoActionStateRecorder.prototype.free;
|
|
3726
|
+
exports.VideoActionStateRecorder = VideoActionStateRecorder;
|
|
3727
|
+
|
|
3728
|
+
/**
|
|
3729
|
+
* @param {any} js_board
|
|
3730
|
+
* @returns {number}
|
|
3731
|
+
*/
|
|
3732
|
+
function cal_bbbv(js_board) {
|
|
3733
|
+
const ret = wasm.cal_bbbv(js_board);
|
|
3734
|
+
return ret >>> 0;
|
|
3735
|
+
}
|
|
3736
|
+
exports.cal_bbbv = cal_bbbv;
|
|
3737
|
+
|
|
3738
|
+
/**
|
|
3739
|
+
* @param {any} js_board
|
|
3740
|
+
* @returns {number}
|
|
3741
|
+
*/
|
|
3742
|
+
function cal_op(js_board) {
|
|
3743
|
+
const ret = wasm.cal_op(js_board);
|
|
3744
|
+
return ret >>> 0;
|
|
3745
|
+
}
|
|
3746
|
+
exports.cal_op = cal_op;
|
|
3747
|
+
|
|
3748
|
+
/**
|
|
3749
|
+
* @param {any} js_board
|
|
3750
|
+
* @param {number} mine_num
|
|
3751
|
+
* @returns {any}
|
|
3752
|
+
*/
|
|
3753
|
+
function cal_probability_onboard(js_board, mine_num) {
|
|
3754
|
+
const ret = wasm.cal_probability_onboard(js_board, mine_num);
|
|
3755
|
+
return ret;
|
|
3756
|
+
}
|
|
3757
|
+
exports.cal_probability_onboard = cal_probability_onboard;
|
|
3758
|
+
|
|
3759
|
+
/**
|
|
3760
|
+
* @param {any} js_board
|
|
3761
|
+
* @param {number} x0
|
|
3762
|
+
* @param {number} y0
|
|
3763
|
+
* @returns {boolean}
|
|
3764
|
+
*/
|
|
3765
|
+
function is_solvable(js_board, x0, y0) {
|
|
3766
|
+
const ret = wasm.is_solvable(js_board, x0, y0);
|
|
3767
|
+
return ret !== 0;
|
|
3768
|
+
}
|
|
3769
|
+
exports.is_solvable = is_solvable;
|
|
3770
|
+
|
|
3771
|
+
/**
|
|
3772
|
+
* @param {number} row
|
|
3773
|
+
* @param {number} column
|
|
3774
|
+
* @param {number} mine_num
|
|
3775
|
+
* @param {number} x0
|
|
3776
|
+
* @param {number} y0
|
|
3777
|
+
* @returns {any}
|
|
3778
|
+
*/
|
|
3779
|
+
function laymine(row, column, mine_num, x0, y0) {
|
|
3780
|
+
const ret = wasm.laymine(row, column, mine_num, x0, y0);
|
|
3781
|
+
return ret;
|
|
3782
|
+
}
|
|
3783
|
+
exports.laymine = laymine;
|
|
3784
|
+
|
|
3785
|
+
/**
|
|
3786
|
+
* @param {number} row
|
|
3787
|
+
* @param {number} column
|
|
3788
|
+
* @param {number} mine_num
|
|
3789
|
+
* @param {number} x0
|
|
3790
|
+
* @param {number} y0
|
|
3791
|
+
* @returns {any}
|
|
3792
|
+
*/
|
|
3793
|
+
function laymine_op(row, column, mine_num, x0, y0) {
|
|
3794
|
+
const ret = wasm.laymine_op(row, column, mine_num, x0, y0);
|
|
3795
|
+
return ret;
|
|
3796
|
+
}
|
|
3797
|
+
exports.laymine_op = laymine_op;
|
|
3798
|
+
|
|
3799
|
+
/**
|
|
3800
|
+
* @param {number} row
|
|
3801
|
+
* @param {number} column
|
|
3802
|
+
* @param {number} mine_num
|
|
3803
|
+
* @param {number} x0
|
|
3804
|
+
* @param {number} y0
|
|
3805
|
+
* @param {number} max_times
|
|
3806
|
+
* @returns {any}
|
|
3807
|
+
*/
|
|
3808
|
+
function laymine_solvable(row, column, mine_num, x0, y0, max_times) {
|
|
3809
|
+
const ret = wasm.laymine_solvable(row, column, mine_num, x0, y0, max_times);
|
|
3810
|
+
return ret;
|
|
3811
|
+
}
|
|
3812
|
+
exports.laymine_solvable = laymine_solvable;
|
|
3813
|
+
|
|
3814
|
+
/**
|
|
3815
|
+
* @param {string} software
|
|
3816
|
+
* @returns {TimePeriod}
|
|
3817
|
+
*/
|
|
3818
|
+
function valid_time_period(software) {
|
|
3819
|
+
const ptr0 = passStringToWasm0(software, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3820
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3821
|
+
const ret = wasm.valid_time_period(ptr0, len0);
|
|
3822
|
+
return TimePeriod.__wrap(ret);
|
|
3823
|
+
}
|
|
3824
|
+
exports.valid_time_period = valid_time_period;
|
|
3540
3825
|
|
|
3541
|
-
|
|
3542
|
-
const ret = arg0
|
|
3826
|
+
exports.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
3827
|
+
const ret = typeof(arg0) === 'function';
|
|
3543
3828
|
return ret;
|
|
3544
3829
|
};
|
|
3545
3830
|
|
|
3546
|
-
|
|
3547
|
-
const
|
|
3831
|
+
exports.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
3832
|
+
const val = arg0;
|
|
3833
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
3548
3834
|
return ret;
|
|
3549
|
-
}
|
|
3835
|
+
};
|
|
3836
|
+
|
|
3837
|
+
exports.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
3838
|
+
const ret = typeof(arg0) === 'string';
|
|
3839
|
+
return ret;
|
|
3840
|
+
};
|
|
3841
|
+
|
|
3842
|
+
exports.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
3843
|
+
const ret = arg0 === undefined;
|
|
3844
|
+
return ret;
|
|
3845
|
+
};
|
|
3846
|
+
|
|
3847
|
+
exports.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
3848
|
+
const obj = arg1;
|
|
3849
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
3850
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
3851
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
3852
|
+
};
|
|
3853
|
+
|
|
3854
|
+
exports.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
3855
|
+
const obj = arg1;
|
|
3856
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
3857
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3858
|
+
var len1 = WASM_VECTOR_LEN;
|
|
3859
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3860
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3861
|
+
};
|
|
3862
|
+
|
|
3863
|
+
exports.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
3864
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
3865
|
+
};
|
|
3550
3866
|
|
|
3551
|
-
|
|
3867
|
+
exports.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
3552
3868
|
const ret = arg0.call(arg1, arg2);
|
|
3553
3869
|
return ret;
|
|
3554
3870
|
}, arguments) };
|
|
3555
3871
|
|
|
3556
|
-
|
|
3872
|
+
exports.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
3873
|
+
const ret = arg0.call(arg1);
|
|
3874
|
+
return ret;
|
|
3875
|
+
}, arguments) };
|
|
3876
|
+
|
|
3877
|
+
exports.__wbg_crypto_ab727e271e83bfb9 = function(arg0) {
|
|
3557
3878
|
const ret = arg0.crypto;
|
|
3558
3879
|
return ret;
|
|
3559
3880
|
};
|
|
3560
3881
|
|
|
3561
|
-
|
|
3882
|
+
exports.__wbg_from_29a8414a7a7cd19d = function(arg0) {
|
|
3562
3883
|
const ret = Array.from(arg0);
|
|
3563
3884
|
return ret;
|
|
3564
3885
|
};
|
|
3565
3886
|
|
|
3566
|
-
|
|
3887
|
+
exports.__wbg_getRandomValues_e2aed5b1dc8645ee = function() { return handleError(function (arg0, arg1) {
|
|
3567
3888
|
arg0.getRandomValues(arg1);
|
|
3568
3889
|
}, arguments) };
|
|
3569
3890
|
|
|
3570
|
-
|
|
3891
|
+
exports.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
3571
3892
|
const ret = arg0[arg1 >>> 0];
|
|
3572
3893
|
return ret;
|
|
3573
3894
|
};
|
|
3574
3895
|
|
|
3575
|
-
|
|
3896
|
+
exports.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
3576
3897
|
const ret = arg0.length;
|
|
3577
3898
|
return ret;
|
|
3578
3899
|
};
|
|
3579
3900
|
|
|
3580
|
-
|
|
3581
|
-
const ret = arg0.
|
|
3901
|
+
exports.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
3902
|
+
const ret = arg0.length;
|
|
3582
3903
|
return ret;
|
|
3583
3904
|
};
|
|
3584
3905
|
|
|
3585
|
-
|
|
3586
|
-
const ret =
|
|
3906
|
+
exports.__wbg_msCrypto_858989c3e8f87e60 = function(arg0) {
|
|
3907
|
+
const ret = arg0.msCrypto;
|
|
3587
3908
|
return ret;
|
|
3588
3909
|
};
|
|
3589
3910
|
|
|
3590
|
-
|
|
3591
|
-
const ret = new
|
|
3911
|
+
exports.__wbg_new_25f239778d6112b9 = function() {
|
|
3912
|
+
const ret = new Array();
|
|
3592
3913
|
return ret;
|
|
3593
3914
|
};
|
|
3594
3915
|
|
|
3595
|
-
|
|
3916
|
+
exports.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
3596
3917
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
3597
3918
|
return ret;
|
|
3598
3919
|
};
|
|
3599
3920
|
|
|
3600
|
-
|
|
3601
|
-
const ret = new
|
|
3921
|
+
exports.__wbg_new_with_length_12c6de4fac33117a = function(arg0) {
|
|
3922
|
+
const ret = new Array(arg0 >>> 0);
|
|
3602
3923
|
return ret;
|
|
3603
3924
|
};
|
|
3604
3925
|
|
|
3605
|
-
|
|
3926
|
+
exports.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
|
|
3606
3927
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
3607
3928
|
return ret;
|
|
3608
3929
|
};
|
|
3609
3930
|
|
|
3610
|
-
|
|
3611
|
-
const ret = new Array(arg0 >>> 0);
|
|
3612
|
-
return ret;
|
|
3613
|
-
};
|
|
3614
|
-
|
|
3615
|
-
module.exports.__wbg_node_a1a2feca7a914889 = function(arg0) {
|
|
3931
|
+
exports.__wbg_node_a1a2feca7a914889 = function(arg0) {
|
|
3616
3932
|
const ret = arg0.node;
|
|
3617
3933
|
return ret;
|
|
3618
3934
|
};
|
|
3619
3935
|
|
|
3620
|
-
|
|
3936
|
+
exports.__wbg_process_ad7fb702cc30e9d3 = function(arg0) {
|
|
3621
3937
|
const ret = arg0.process;
|
|
3622
3938
|
return ret;
|
|
3623
3939
|
};
|
|
3624
3940
|
|
|
3625
|
-
|
|
3941
|
+
exports.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
3942
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
3943
|
+
};
|
|
3944
|
+
|
|
3945
|
+
exports.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
3626
3946
|
const ret = arg0.push(arg1);
|
|
3627
3947
|
return ret;
|
|
3628
3948
|
};
|
|
3629
3949
|
|
|
3630
|
-
|
|
3950
|
+
exports.__wbg_randomFillSync_e9c0014ab6e905fd = function() { return handleError(function (arg0, arg1) {
|
|
3631
3951
|
arg0.randomFillSync(arg1);
|
|
3632
3952
|
}, arguments) };
|
|
3633
3953
|
|
|
3634
|
-
|
|
3954
|
+
exports.__wbg_require_be7c9aaf6587f97e = function() { return handleError(function () {
|
|
3635
3955
|
const ret = module.require;
|
|
3636
3956
|
return ret;
|
|
3637
3957
|
}, arguments) };
|
|
3638
3958
|
|
|
3639
|
-
|
|
3959
|
+
exports.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
3640
3960
|
arg0[arg1 >>> 0] = arg2;
|
|
3641
3961
|
};
|
|
3642
3962
|
|
|
3643
|
-
|
|
3644
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
3645
|
-
};
|
|
3646
|
-
|
|
3647
|
-
module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
3963
|
+
exports.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
3648
3964
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3649
3965
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3650
3966
|
};
|
|
3651
3967
|
|
|
3652
|
-
|
|
3968
|
+
exports.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
3653
3969
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3654
3970
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3655
3971
|
};
|
|
3656
3972
|
|
|
3657
|
-
|
|
3973
|
+
exports.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
3658
3974
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3659
3975
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3660
3976
|
};
|
|
3661
3977
|
|
|
3662
|
-
|
|
3978
|
+
exports.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
3663
3979
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3664
3980
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3665
3981
|
};
|
|
3666
3982
|
|
|
3667
|
-
|
|
3983
|
+
exports.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
|
|
3668
3984
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
3669
3985
|
return ret;
|
|
3670
3986
|
};
|
|
3671
3987
|
|
|
3672
|
-
|
|
3988
|
+
exports.__wbg_versions_32faad06f7206ef9 = function(arg0) {
|
|
3673
3989
|
const ret = arg0.versions;
|
|
3674
3990
|
return ret;
|
|
3675
3991
|
};
|
|
3676
3992
|
|
|
3677
|
-
|
|
3993
|
+
exports.__wbg_videoactionstaterecorder_new = function(arg0) {
|
|
3678
3994
|
const ret = VideoActionStateRecorder.__wrap(arg0);
|
|
3679
3995
|
return ret;
|
|
3680
3996
|
};
|
|
3681
3997
|
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
const
|
|
3685
|
-
table.set(0, undefined);
|
|
3686
|
-
table.set(offset + 0, undefined);
|
|
3687
|
-
table.set(offset + 1, null);
|
|
3688
|
-
table.set(offset + 2, true);
|
|
3689
|
-
table.set(offset + 3, false);
|
|
3690
|
-
;
|
|
3691
|
-
};
|
|
3692
|
-
|
|
3693
|
-
module.exports.__wbindgen_is_function = function(arg0) {
|
|
3694
|
-
const ret = typeof(arg0) === 'function';
|
|
3695
|
-
return ret;
|
|
3696
|
-
};
|
|
3697
|
-
|
|
3698
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
3699
|
-
const val = arg0;
|
|
3700
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
3701
|
-
return ret;
|
|
3702
|
-
};
|
|
3703
|
-
|
|
3704
|
-
module.exports.__wbindgen_is_string = function(arg0) {
|
|
3705
|
-
const ret = typeof(arg0) === 'string';
|
|
3706
|
-
return ret;
|
|
3707
|
-
};
|
|
3708
|
-
|
|
3709
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
3710
|
-
const ret = arg0 === undefined;
|
|
3998
|
+
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
3999
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
4000
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
3711
4001
|
return ret;
|
|
3712
4002
|
};
|
|
3713
4003
|
|
|
3714
|
-
|
|
3715
|
-
|
|
4004
|
+
exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
4005
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
4006
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3716
4007
|
return ret;
|
|
3717
4008
|
};
|
|
3718
4009
|
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
3722
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
3723
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
3724
|
-
};
|
|
3725
|
-
|
|
3726
|
-
module.exports.__wbindgen_number_new = function(arg0) {
|
|
4010
|
+
exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
4011
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
3727
4012
|
const ret = arg0;
|
|
3728
4013
|
return ret;
|
|
3729
4014
|
};
|
|
3730
4015
|
|
|
3731
|
-
|
|
3732
|
-
const
|
|
3733
|
-
const
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
3741
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
3742
|
-
return ret;
|
|
3743
|
-
};
|
|
3744
|
-
|
|
3745
|
-
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
3746
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
4016
|
+
exports.__wbindgen_init_externref_table = function() {
|
|
4017
|
+
const table = wasm.__wbindgen_externrefs;
|
|
4018
|
+
const offset = table.grow(4);
|
|
4019
|
+
table.set(0, undefined);
|
|
4020
|
+
table.set(offset + 0, undefined);
|
|
4021
|
+
table.set(offset + 1, null);
|
|
4022
|
+
table.set(offset + 2, true);
|
|
4023
|
+
table.set(offset + 3, false);
|
|
3747
4024
|
};
|
|
3748
4025
|
|
|
3749
|
-
const
|
|
3750
|
-
const
|
|
3751
|
-
|
|
3752
|
-
const
|
|
3753
|
-
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
3754
|
-
wasm = wasmInstance.exports;
|
|
3755
|
-
module.exports.__wasm = wasm;
|
|
4026
|
+
const wasmPath = `${__dirname}/ms_toollib_bg.wasm`;
|
|
4027
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
4028
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
4029
|
+
const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
|
|
3756
4030
|
|
|
3757
4031
|
wasm.__wbindgen_start();
|
|
3758
|
-
|