@kreuzberg/html-to-markdown-wasm 3.1.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/html_to_markdown_wasm.d.ts +481 -33
- package/dist/html_to_markdown_wasm_bg.js +4207 -308
- package/dist/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist/html_to_markdown_wasm_bg.wasm.d.ts +378 -4
- package/dist/package.json +2 -12
- package/dist-node/html_to_markdown_wasm.d.ts +481 -33
- package/dist-node/html_to_markdown_wasm.js +4244 -311
- package/dist-node/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-node/html_to_markdown_wasm_bg.wasm.d.ts +378 -4
- package/dist-node/package.json +3 -13
- package/dist-web/html_to_markdown_wasm.d.ts +859 -37
- package/dist-web/html_to_markdown_wasm.js +4208 -310
- package/dist-web/html_to_markdown_wasm_bg.wasm +0 -0
- package/dist-web/html_to_markdown_wasm_bg.wasm.d.ts +378 -4
- package/dist-web/package.json +2 -12
- package/package.json +3 -3
- package/LICENSE +0 -21
- package/README.md +0 -586
- package/dist/LICENSE +0 -21
- package/dist/README.md +0 -154
- package/dist-node/LICENSE +0 -21
- package/dist-node/README.md +0 -154
- package/dist-web/LICENSE +0 -21
- package/dist-web/README.md +0 -154
|
@@ -1,32 +1,4045 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
2
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8}
|
|
3
|
+
*/
|
|
4
|
+
export const WasmAnnotationKind = Object.freeze({
|
|
5
|
+
Bold: 0, "0": "Bold",
|
|
6
|
+
Italic: 1, "1": "Italic",
|
|
7
|
+
Underline: 2, "2": "Underline",
|
|
8
|
+
Strikethrough: 3, "3": "Strikethrough",
|
|
9
|
+
Code: 4, "4": "Code",
|
|
10
|
+
Subscript: 5, "5": "Subscript",
|
|
11
|
+
Superscript: 6, "6": "Superscript",
|
|
12
|
+
Highlight: 7, "7": "Highlight",
|
|
13
|
+
Link: 8, "8": "Link",
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @enum {0 | 1 | 2}
|
|
18
|
+
*/
|
|
19
|
+
export const WasmCodeBlockStyle = Object.freeze({
|
|
20
|
+
Indented: 0, "0": "Indented",
|
|
21
|
+
Backticks: 1, "1": "Backticks",
|
|
22
|
+
Tildes: 2, "2": "Tildes",
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export class WasmConversionOptions {
|
|
26
|
+
static __wrap(ptr) {
|
|
27
|
+
ptr = ptr >>> 0;
|
|
28
|
+
const obj = Object.create(WasmConversionOptions.prototype);
|
|
29
|
+
obj.__wbg_ptr = ptr;
|
|
30
|
+
WasmConversionOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
31
|
+
return obj;
|
|
32
|
+
}
|
|
33
|
+
__destroy_into_raw() {
|
|
34
|
+
const ptr = this.__wbg_ptr;
|
|
35
|
+
this.__wbg_ptr = 0;
|
|
36
|
+
WasmConversionOptionsFinalization.unregister(this);
|
|
37
|
+
return ptr;
|
|
38
|
+
}
|
|
39
|
+
free() {
|
|
40
|
+
const ptr = this.__destroy_into_raw();
|
|
41
|
+
wasm.__wbg_wasmconversionoptions_free(ptr, 0);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @returns {boolean}
|
|
45
|
+
*/
|
|
46
|
+
get autolinks() {
|
|
47
|
+
const ret = wasm.wasmconversionoptions_autolinks(this.__wbg_ptr);
|
|
48
|
+
return ret !== 0;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @returns {boolean}
|
|
52
|
+
*/
|
|
53
|
+
get brInTables() {
|
|
54
|
+
const ret = wasm.wasmconversionoptions_brInTables(this.__wbg_ptr);
|
|
55
|
+
return ret !== 0;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
59
|
+
*/
|
|
60
|
+
static builder() {
|
|
61
|
+
const ret = wasm.wasmconversionoptions_builder();
|
|
62
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @returns {string}
|
|
66
|
+
*/
|
|
67
|
+
get bullets() {
|
|
68
|
+
let deferred1_0;
|
|
69
|
+
let deferred1_1;
|
|
70
|
+
try {
|
|
71
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
72
|
+
wasm.wasmconversionoptions_bullets(retptr, this.__wbg_ptr);
|
|
73
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
74
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
75
|
+
deferred1_0 = r0;
|
|
76
|
+
deferred1_1 = r1;
|
|
77
|
+
return getStringFromWasm0(r0, r1);
|
|
78
|
+
} finally {
|
|
79
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
80
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @returns {boolean}
|
|
85
|
+
*/
|
|
86
|
+
get captureSvg() {
|
|
87
|
+
const ret = wasm.wasmconversionoptions_captureSvg(this.__wbg_ptr);
|
|
88
|
+
return ret !== 0;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* @returns {WasmCodeBlockStyle}
|
|
92
|
+
*/
|
|
93
|
+
get codeBlockStyle() {
|
|
94
|
+
const ret = wasm.wasmconversionoptions_codeBlockStyle(this.__wbg_ptr);
|
|
95
|
+
return ret;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @returns {string}
|
|
99
|
+
*/
|
|
100
|
+
get codeLanguage() {
|
|
101
|
+
let deferred1_0;
|
|
102
|
+
let deferred1_1;
|
|
103
|
+
try {
|
|
104
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
105
|
+
wasm.wasmconversionoptions_codeLanguage(retptr, this.__wbg_ptr);
|
|
106
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
107
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
108
|
+
deferred1_0 = r0;
|
|
109
|
+
deferred1_1 = r1;
|
|
110
|
+
return getStringFromWasm0(r0, r1);
|
|
111
|
+
} finally {
|
|
112
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
113
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @returns {boolean}
|
|
118
|
+
*/
|
|
119
|
+
get convertAsInline() {
|
|
120
|
+
const ret = wasm.wasmconversionoptions_convertAsInline(this.__wbg_ptr);
|
|
121
|
+
return ret !== 0;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @returns {boolean}
|
|
125
|
+
*/
|
|
126
|
+
get debug() {
|
|
127
|
+
const ret = wasm.wasmconversionoptions_debug(this.__wbg_ptr);
|
|
128
|
+
return ret !== 0;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @returns {WasmConversionOptions}
|
|
132
|
+
*/
|
|
133
|
+
static default() {
|
|
134
|
+
const ret = wasm.wasmconversionoptions_default();
|
|
135
|
+
return WasmConversionOptions.__wrap(ret);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @returns {boolean}
|
|
139
|
+
*/
|
|
140
|
+
get defaultTitle() {
|
|
141
|
+
const ret = wasm.wasmconversionoptions_defaultTitle(this.__wbg_ptr);
|
|
142
|
+
return ret !== 0;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @returns {string}
|
|
146
|
+
*/
|
|
147
|
+
get encoding() {
|
|
148
|
+
let deferred1_0;
|
|
149
|
+
let deferred1_1;
|
|
150
|
+
try {
|
|
151
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
152
|
+
wasm.wasmconversionoptions_encoding(retptr, this.__wbg_ptr);
|
|
153
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
154
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
155
|
+
deferred1_0 = r0;
|
|
156
|
+
deferred1_1 = r1;
|
|
157
|
+
return getStringFromWasm0(r0, r1);
|
|
158
|
+
} finally {
|
|
159
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
160
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @returns {boolean}
|
|
165
|
+
*/
|
|
166
|
+
get escapeAscii() {
|
|
167
|
+
const ret = wasm.wasmconversionoptions_escapeAscii(this.__wbg_ptr);
|
|
168
|
+
return ret !== 0;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @returns {boolean}
|
|
172
|
+
*/
|
|
173
|
+
get escapeAsterisks() {
|
|
174
|
+
const ret = wasm.wasmconversionoptions_escapeAsterisks(this.__wbg_ptr);
|
|
175
|
+
return ret !== 0;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @returns {boolean}
|
|
179
|
+
*/
|
|
180
|
+
get escapeMisc() {
|
|
181
|
+
const ret = wasm.wasmconversionoptions_escapeMisc(this.__wbg_ptr);
|
|
182
|
+
return ret !== 0;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* @returns {boolean}
|
|
186
|
+
*/
|
|
187
|
+
get escapeUnderscores() {
|
|
188
|
+
const ret = wasm.wasmconversionoptions_escapeUnderscores(this.__wbg_ptr);
|
|
189
|
+
return ret !== 0;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @returns {boolean}
|
|
193
|
+
*/
|
|
194
|
+
get extractImages() {
|
|
195
|
+
const ret = wasm.wasmconversionoptions_extractImages(this.__wbg_ptr);
|
|
196
|
+
return ret !== 0;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* @returns {boolean}
|
|
200
|
+
*/
|
|
201
|
+
get extractMetadata() {
|
|
202
|
+
const ret = wasm.wasmconversionoptions_extractMetadata(this.__wbg_ptr);
|
|
203
|
+
return ret !== 0;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* @returns {WasmHeadingStyle}
|
|
207
|
+
*/
|
|
208
|
+
get headingStyle() {
|
|
209
|
+
const ret = wasm.wasmconversionoptions_headingStyle(this.__wbg_ptr);
|
|
210
|
+
return ret;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* @returns {WasmHighlightStyle}
|
|
214
|
+
*/
|
|
215
|
+
get highlightStyle() {
|
|
216
|
+
const ret = wasm.wasmconversionoptions_highlightStyle(this.__wbg_ptr);
|
|
217
|
+
return ret;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* @returns {boolean}
|
|
221
|
+
*/
|
|
222
|
+
get includeDocumentStructure() {
|
|
223
|
+
const ret = wasm.wasmconversionoptions_includeDocumentStructure(this.__wbg_ptr);
|
|
224
|
+
return ret !== 0;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* @returns {boolean}
|
|
228
|
+
*/
|
|
229
|
+
get inferDimensions() {
|
|
230
|
+
const ret = wasm.wasmconversionoptions_inferDimensions(this.__wbg_ptr);
|
|
231
|
+
return ret !== 0;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* @returns {string[]}
|
|
235
|
+
*/
|
|
236
|
+
get keepInlineImagesIn() {
|
|
237
|
+
try {
|
|
238
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
239
|
+
wasm.wasmconversionoptions_keepInlineImagesIn(retptr, this.__wbg_ptr);
|
|
240
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
241
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
242
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
243
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
244
|
+
return v1;
|
|
245
|
+
} finally {
|
|
246
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @returns {WasmLinkStyle}
|
|
251
|
+
*/
|
|
252
|
+
get linkStyle() {
|
|
253
|
+
const ret = wasm.wasmconversionoptions_linkStyle(this.__wbg_ptr);
|
|
254
|
+
return ret;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @returns {WasmListIndentType}
|
|
258
|
+
*/
|
|
259
|
+
get listIndentType() {
|
|
260
|
+
const ret = wasm.wasmconversionoptions_listIndentType(this.__wbg_ptr);
|
|
261
|
+
return ret;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* @returns {number}
|
|
265
|
+
*/
|
|
266
|
+
get listIndentWidth() {
|
|
267
|
+
const ret = wasm.wasmconversionoptions_listIndentWidth(this.__wbg_ptr);
|
|
268
|
+
return ret >>> 0;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* @returns {bigint}
|
|
272
|
+
*/
|
|
273
|
+
get maxImageSize() {
|
|
274
|
+
const ret = wasm.wasmconversionoptions_maxImageSize(this.__wbg_ptr);
|
|
275
|
+
return BigInt.asUintN(64, ret);
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* @param {WasmHeadingStyle | null} [heading_style]
|
|
279
|
+
* @param {WasmListIndentType | null} [list_indent_type]
|
|
280
|
+
* @param {number | null} [list_indent_width]
|
|
281
|
+
* @param {string | null} [bullets]
|
|
282
|
+
* @param {string | null} [strong_em_symbol]
|
|
283
|
+
* @param {boolean | null} [escape_asterisks]
|
|
284
|
+
* @param {boolean | null} [escape_underscores]
|
|
285
|
+
* @param {boolean | null} [escape_misc]
|
|
286
|
+
* @param {boolean | null} [escape_ascii]
|
|
287
|
+
* @param {string | null} [code_language]
|
|
288
|
+
* @param {boolean | null} [autolinks]
|
|
289
|
+
* @param {boolean | null} [default_title]
|
|
290
|
+
* @param {boolean | null} [br_in_tables]
|
|
291
|
+
* @param {WasmHighlightStyle | null} [highlight_style]
|
|
292
|
+
* @param {boolean | null} [extract_metadata]
|
|
293
|
+
* @param {WasmWhitespaceMode | null} [whitespace_mode]
|
|
294
|
+
* @param {boolean | null} [strip_newlines]
|
|
295
|
+
* @param {boolean | null} [wrap]
|
|
296
|
+
* @param {number | null} [wrap_width]
|
|
297
|
+
* @param {boolean | null} [convert_as_inline]
|
|
298
|
+
* @param {string | null} [sub_symbol]
|
|
299
|
+
* @param {string | null} [sup_symbol]
|
|
300
|
+
* @param {WasmNewlineStyle | null} [newline_style]
|
|
301
|
+
* @param {WasmCodeBlockStyle | null} [code_block_style]
|
|
302
|
+
* @param {string[] | null} [keep_inline_images_in]
|
|
303
|
+
* @param {WasmPreprocessingOptions | null} [preprocessing]
|
|
304
|
+
* @param {string | null} [encoding]
|
|
305
|
+
* @param {boolean | null} [debug]
|
|
306
|
+
* @param {string[] | null} [strip_tags]
|
|
307
|
+
* @param {string[] | null} [preserve_tags]
|
|
308
|
+
* @param {boolean | null} [skip_images]
|
|
309
|
+
* @param {WasmLinkStyle | null} [link_style]
|
|
310
|
+
* @param {WasmOutputFormat | null} [output_format]
|
|
311
|
+
* @param {boolean | null} [include_document_structure]
|
|
312
|
+
* @param {boolean | null} [extract_images]
|
|
313
|
+
* @param {bigint | null} [max_image_size]
|
|
314
|
+
* @param {boolean | null} [capture_svg]
|
|
315
|
+
* @param {boolean | null} [infer_dimensions]
|
|
316
|
+
*/
|
|
317
|
+
constructor(heading_style, list_indent_type, list_indent_width, bullets, strong_em_symbol, escape_asterisks, escape_underscores, escape_misc, escape_ascii, code_language, autolinks, default_title, br_in_tables, highlight_style, extract_metadata, whitespace_mode, strip_newlines, wrap, wrap_width, convert_as_inline, sub_symbol, sup_symbol, newline_style, code_block_style, keep_inline_images_in, preprocessing, encoding, debug, strip_tags, preserve_tags, skip_images, link_style, output_format, include_document_structure, extract_images, max_image_size, capture_svg, infer_dimensions) {
|
|
318
|
+
var ptr0 = isLikeNone(bullets) ? 0 : passStringToWasm0(bullets, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
319
|
+
var len0 = WASM_VECTOR_LEN;
|
|
320
|
+
var ptr1 = isLikeNone(strong_em_symbol) ? 0 : passStringToWasm0(strong_em_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
321
|
+
var len1 = WASM_VECTOR_LEN;
|
|
322
|
+
var ptr2 = isLikeNone(code_language) ? 0 : passStringToWasm0(code_language, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
323
|
+
var len2 = WASM_VECTOR_LEN;
|
|
324
|
+
var ptr3 = isLikeNone(sub_symbol) ? 0 : passStringToWasm0(sub_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
325
|
+
var len3 = WASM_VECTOR_LEN;
|
|
326
|
+
var ptr4 = isLikeNone(sup_symbol) ? 0 : passStringToWasm0(sup_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
327
|
+
var len4 = WASM_VECTOR_LEN;
|
|
328
|
+
var ptr5 = isLikeNone(keep_inline_images_in) ? 0 : passArrayJsValueToWasm0(keep_inline_images_in, wasm.__wbindgen_export);
|
|
329
|
+
var len5 = WASM_VECTOR_LEN;
|
|
330
|
+
let ptr6 = 0;
|
|
331
|
+
if (!isLikeNone(preprocessing)) {
|
|
332
|
+
_assertClass(preprocessing, WasmPreprocessingOptions);
|
|
333
|
+
ptr6 = preprocessing.__destroy_into_raw();
|
|
334
|
+
}
|
|
335
|
+
var ptr7 = isLikeNone(encoding) ? 0 : passStringToWasm0(encoding, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
336
|
+
var len7 = WASM_VECTOR_LEN;
|
|
337
|
+
var ptr8 = isLikeNone(strip_tags) ? 0 : passArrayJsValueToWasm0(strip_tags, wasm.__wbindgen_export);
|
|
338
|
+
var len8 = WASM_VECTOR_LEN;
|
|
339
|
+
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
340
|
+
var len9 = WASM_VECTOR_LEN;
|
|
341
|
+
const ret = wasm.wasmconversionoptions_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? 0x100000001 : (list_indent_width) >>> 0, ptr0, len0, ptr1, len1, isLikeNone(escape_asterisks) ? 0xFFFFFF : escape_asterisks ? 1 : 0, isLikeNone(escape_underscores) ? 0xFFFFFF : escape_underscores ? 1 : 0, isLikeNone(escape_misc) ? 0xFFFFFF : escape_misc ? 1 : 0, isLikeNone(escape_ascii) ? 0xFFFFFF : escape_ascii ? 1 : 0, ptr2, len2, isLikeNone(autolinks) ? 0xFFFFFF : autolinks ? 1 : 0, isLikeNone(default_title) ? 0xFFFFFF : default_title ? 1 : 0, isLikeNone(br_in_tables) ? 0xFFFFFF : br_in_tables ? 1 : 0, isLikeNone(highlight_style) ? 4 : highlight_style, isLikeNone(extract_metadata) ? 0xFFFFFF : extract_metadata ? 1 : 0, isLikeNone(whitespace_mode) ? 2 : whitespace_mode, isLikeNone(strip_newlines) ? 0xFFFFFF : strip_newlines ? 1 : 0, isLikeNone(wrap) ? 0xFFFFFF : wrap ? 1 : 0, isLikeNone(wrap_width) ? 0x100000001 : (wrap_width) >>> 0, isLikeNone(convert_as_inline) ? 0xFFFFFF : convert_as_inline ? 1 : 0, ptr3, len3, ptr4, len4, isLikeNone(newline_style) ? 2 : newline_style, isLikeNone(code_block_style) ? 3 : code_block_style, ptr5, len5, ptr6, ptr7, len7, isLikeNone(debug) ? 0xFFFFFF : debug ? 1 : 0, ptr8, len8, ptr9, len9, isLikeNone(skip_images) ? 0xFFFFFF : skip_images ? 1 : 0, isLikeNone(link_style) ? 2 : link_style, isLikeNone(output_format) ? 3 : output_format, isLikeNone(include_document_structure) ? 0xFFFFFF : include_document_structure ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, !isLikeNone(max_image_size), isLikeNone(max_image_size) ? BigInt(0) : max_image_size, isLikeNone(capture_svg) ? 0xFFFFFF : capture_svg ? 1 : 0, isLikeNone(infer_dimensions) ? 0xFFFFFF : infer_dimensions ? 1 : 0);
|
|
342
|
+
this.__wbg_ptr = ret >>> 0;
|
|
343
|
+
WasmConversionOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
344
|
+
return this;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* @returns {WasmNewlineStyle}
|
|
348
|
+
*/
|
|
349
|
+
get newlineStyle() {
|
|
350
|
+
const ret = wasm.wasmconversionoptions_newlineStyle(this.__wbg_ptr);
|
|
351
|
+
return ret;
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* @returns {WasmOutputFormat}
|
|
355
|
+
*/
|
|
356
|
+
get outputFormat() {
|
|
357
|
+
const ret = wasm.wasmconversionoptions_outputFormat(this.__wbg_ptr);
|
|
358
|
+
return ret;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @returns {WasmPreprocessingOptions}
|
|
362
|
+
*/
|
|
363
|
+
get preprocessing() {
|
|
364
|
+
const ret = wasm.wasmconversionoptions_preprocessing(this.__wbg_ptr);
|
|
365
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* @returns {string[]}
|
|
369
|
+
*/
|
|
370
|
+
get preserveTags() {
|
|
371
|
+
try {
|
|
372
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
373
|
+
wasm.wasmconversionoptions_preserveTags(retptr, this.__wbg_ptr);
|
|
374
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
375
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
376
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
377
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
378
|
+
return v1;
|
|
379
|
+
} finally {
|
|
380
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* @param {boolean} value
|
|
385
|
+
*/
|
|
386
|
+
set autolinks(value) {
|
|
387
|
+
wasm.wasmconversionoptions_set_autolinks(this.__wbg_ptr, value);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* @param {boolean} value
|
|
391
|
+
*/
|
|
392
|
+
set brInTables(value) {
|
|
393
|
+
wasm.wasmconversionoptions_set_brInTables(this.__wbg_ptr, value);
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* @param {string} value
|
|
397
|
+
*/
|
|
398
|
+
set bullets(value) {
|
|
399
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
400
|
+
const len0 = WASM_VECTOR_LEN;
|
|
401
|
+
wasm.wasmconversionoptions_set_bullets(this.__wbg_ptr, ptr0, len0);
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @param {boolean} value
|
|
405
|
+
*/
|
|
406
|
+
set captureSvg(value) {
|
|
407
|
+
wasm.wasmconversionoptions_set_captureSvg(this.__wbg_ptr, value);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @param {WasmCodeBlockStyle} value
|
|
411
|
+
*/
|
|
412
|
+
set codeBlockStyle(value) {
|
|
413
|
+
wasm.wasmconversionoptions_set_codeBlockStyle(this.__wbg_ptr, value);
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* @param {string} value
|
|
417
|
+
*/
|
|
418
|
+
set codeLanguage(value) {
|
|
419
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
420
|
+
const len0 = WASM_VECTOR_LEN;
|
|
421
|
+
wasm.wasmconversionoptions_set_codeLanguage(this.__wbg_ptr, ptr0, len0);
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @param {boolean} value
|
|
425
|
+
*/
|
|
426
|
+
set convertAsInline(value) {
|
|
427
|
+
wasm.wasmconversionoptions_set_convertAsInline(this.__wbg_ptr, value);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* @param {boolean} value
|
|
431
|
+
*/
|
|
432
|
+
set debug(value) {
|
|
433
|
+
wasm.wasmconversionoptions_set_debug(this.__wbg_ptr, value);
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* @param {boolean} value
|
|
437
|
+
*/
|
|
438
|
+
set defaultTitle(value) {
|
|
439
|
+
wasm.wasmconversionoptions_set_defaultTitle(this.__wbg_ptr, value);
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* @param {string} value
|
|
443
|
+
*/
|
|
444
|
+
set encoding(value) {
|
|
445
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
446
|
+
const len0 = WASM_VECTOR_LEN;
|
|
447
|
+
wasm.wasmconversionoptions_set_encoding(this.__wbg_ptr, ptr0, len0);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* @param {boolean} value
|
|
451
|
+
*/
|
|
452
|
+
set escapeAscii(value) {
|
|
453
|
+
wasm.wasmconversionoptions_set_escapeAscii(this.__wbg_ptr, value);
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* @param {boolean} value
|
|
457
|
+
*/
|
|
458
|
+
set escapeAsterisks(value) {
|
|
459
|
+
wasm.wasmconversionoptions_set_escapeAsterisks(this.__wbg_ptr, value);
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* @param {boolean} value
|
|
463
|
+
*/
|
|
464
|
+
set escapeMisc(value) {
|
|
465
|
+
wasm.wasmconversionoptions_set_escapeMisc(this.__wbg_ptr, value);
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* @param {boolean} value
|
|
469
|
+
*/
|
|
470
|
+
set escapeUnderscores(value) {
|
|
471
|
+
wasm.wasmconversionoptions_set_escapeUnderscores(this.__wbg_ptr, value);
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* @param {boolean} value
|
|
475
|
+
*/
|
|
476
|
+
set extractImages(value) {
|
|
477
|
+
wasm.wasmconversionoptions_set_extractImages(this.__wbg_ptr, value);
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @param {boolean} value
|
|
481
|
+
*/
|
|
482
|
+
set extractMetadata(value) {
|
|
483
|
+
wasm.wasmconversionoptions_set_extractMetadata(this.__wbg_ptr, value);
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* @param {WasmHeadingStyle} value
|
|
487
|
+
*/
|
|
488
|
+
set headingStyle(value) {
|
|
489
|
+
wasm.wasmconversionoptions_set_headingStyle(this.__wbg_ptr, value);
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* @param {WasmHighlightStyle} value
|
|
493
|
+
*/
|
|
494
|
+
set highlightStyle(value) {
|
|
495
|
+
wasm.wasmconversionoptions_set_highlightStyle(this.__wbg_ptr, value);
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* @param {boolean} value
|
|
499
|
+
*/
|
|
500
|
+
set includeDocumentStructure(value) {
|
|
501
|
+
wasm.wasmconversionoptions_set_includeDocumentStructure(this.__wbg_ptr, value);
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* @param {boolean} value
|
|
505
|
+
*/
|
|
506
|
+
set inferDimensions(value) {
|
|
507
|
+
wasm.wasmconversionoptions_set_inferDimensions(this.__wbg_ptr, value);
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* @param {string[]} value
|
|
511
|
+
*/
|
|
512
|
+
set keepInlineImagesIn(value) {
|
|
513
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
514
|
+
const len0 = WASM_VECTOR_LEN;
|
|
515
|
+
wasm.wasmconversionoptions_set_keepInlineImagesIn(this.__wbg_ptr, ptr0, len0);
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* @param {WasmLinkStyle} value
|
|
519
|
+
*/
|
|
520
|
+
set linkStyle(value) {
|
|
521
|
+
wasm.wasmconversionoptions_set_linkStyle(this.__wbg_ptr, value);
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* @param {WasmListIndentType} value
|
|
525
|
+
*/
|
|
526
|
+
set listIndentType(value) {
|
|
527
|
+
wasm.wasmconversionoptions_set_listIndentType(this.__wbg_ptr, value);
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* @param {number} value
|
|
531
|
+
*/
|
|
532
|
+
set listIndentWidth(value) {
|
|
533
|
+
wasm.wasmconversionoptions_set_listIndentWidth(this.__wbg_ptr, value);
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* @param {bigint} value
|
|
537
|
+
*/
|
|
538
|
+
set maxImageSize(value) {
|
|
539
|
+
wasm.wasmconversionoptions_set_maxImageSize(this.__wbg_ptr, value);
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* @param {WasmNewlineStyle} value
|
|
543
|
+
*/
|
|
544
|
+
set newlineStyle(value) {
|
|
545
|
+
wasm.wasmconversionoptions_set_newlineStyle(this.__wbg_ptr, value);
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @param {WasmOutputFormat} value
|
|
549
|
+
*/
|
|
550
|
+
set outputFormat(value) {
|
|
551
|
+
wasm.wasmconversionoptions_set_outputFormat(this.__wbg_ptr, value);
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* @param {WasmPreprocessingOptions} value
|
|
555
|
+
*/
|
|
556
|
+
set preprocessing(value) {
|
|
557
|
+
_assertClass(value, WasmPreprocessingOptions);
|
|
558
|
+
var ptr0 = value.__destroy_into_raw();
|
|
559
|
+
wasm.wasmconversionoptions_set_preprocessing(this.__wbg_ptr, ptr0);
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* @param {string[]} value
|
|
563
|
+
*/
|
|
564
|
+
set preserveTags(value) {
|
|
565
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
566
|
+
const len0 = WASM_VECTOR_LEN;
|
|
567
|
+
wasm.wasmconversionoptions_set_preserveTags(this.__wbg_ptr, ptr0, len0);
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* @param {boolean} value
|
|
571
|
+
*/
|
|
572
|
+
set skipImages(value) {
|
|
573
|
+
wasm.wasmconversionoptions_set_skipImages(this.__wbg_ptr, value);
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* @param {boolean} value
|
|
577
|
+
*/
|
|
578
|
+
set stripNewlines(value) {
|
|
579
|
+
wasm.wasmconversionoptions_set_stripNewlines(this.__wbg_ptr, value);
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* @param {string[]} value
|
|
583
|
+
*/
|
|
584
|
+
set stripTags(value) {
|
|
585
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
586
|
+
const len0 = WASM_VECTOR_LEN;
|
|
587
|
+
wasm.wasmconversionoptions_set_stripTags(this.__wbg_ptr, ptr0, len0);
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* @param {string} value
|
|
591
|
+
*/
|
|
592
|
+
set strongEmSymbol(value) {
|
|
593
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
594
|
+
const len0 = WASM_VECTOR_LEN;
|
|
595
|
+
wasm.wasmconversionoptions_set_strongEmSymbol(this.__wbg_ptr, ptr0, len0);
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* @param {string} value
|
|
599
|
+
*/
|
|
600
|
+
set subSymbol(value) {
|
|
601
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
602
|
+
const len0 = WASM_VECTOR_LEN;
|
|
603
|
+
wasm.wasmconversionoptions_set_subSymbol(this.__wbg_ptr, ptr0, len0);
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* @param {string} value
|
|
607
|
+
*/
|
|
608
|
+
set supSymbol(value) {
|
|
609
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
610
|
+
const len0 = WASM_VECTOR_LEN;
|
|
611
|
+
wasm.wasmconversionoptions_set_supSymbol(this.__wbg_ptr, ptr0, len0);
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* @param {WasmWhitespaceMode} value
|
|
615
|
+
*/
|
|
616
|
+
set whitespaceMode(value) {
|
|
617
|
+
wasm.wasmconversionoptions_set_whitespaceMode(this.__wbg_ptr, value);
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* @param {boolean} value
|
|
621
|
+
*/
|
|
622
|
+
set wrap(value) {
|
|
623
|
+
wasm.wasmconversionoptions_set_wrap(this.__wbg_ptr, value);
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* @param {number} value
|
|
627
|
+
*/
|
|
628
|
+
set wrapWidth(value) {
|
|
629
|
+
wasm.wasmconversionoptions_set_wrapWidth(this.__wbg_ptr, value);
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* @returns {boolean}
|
|
633
|
+
*/
|
|
634
|
+
get skipImages() {
|
|
635
|
+
const ret = wasm.wasmconversionoptions_skipImages(this.__wbg_ptr);
|
|
636
|
+
return ret !== 0;
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* @returns {boolean}
|
|
640
|
+
*/
|
|
641
|
+
get stripNewlines() {
|
|
642
|
+
const ret = wasm.wasmconversionoptions_stripNewlines(this.__wbg_ptr);
|
|
643
|
+
return ret !== 0;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* @returns {string[]}
|
|
647
|
+
*/
|
|
648
|
+
get stripTags() {
|
|
649
|
+
try {
|
|
650
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
651
|
+
wasm.wasmconversionoptions_stripTags(retptr, this.__wbg_ptr);
|
|
652
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
653
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
654
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
655
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
656
|
+
return v1;
|
|
657
|
+
} finally {
|
|
658
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* @returns {string}
|
|
663
|
+
*/
|
|
664
|
+
get strongEmSymbol() {
|
|
665
|
+
let deferred1_0;
|
|
666
|
+
let deferred1_1;
|
|
667
|
+
try {
|
|
668
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
669
|
+
wasm.wasmconversionoptions_strongEmSymbol(retptr, this.__wbg_ptr);
|
|
670
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
671
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
672
|
+
deferred1_0 = r0;
|
|
673
|
+
deferred1_1 = r1;
|
|
674
|
+
return getStringFromWasm0(r0, r1);
|
|
675
|
+
} finally {
|
|
676
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
677
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* @returns {string}
|
|
682
|
+
*/
|
|
683
|
+
get subSymbol() {
|
|
684
|
+
let deferred1_0;
|
|
685
|
+
let deferred1_1;
|
|
686
|
+
try {
|
|
687
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
688
|
+
wasm.wasmconversionoptions_subSymbol(retptr, this.__wbg_ptr);
|
|
689
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
690
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
691
|
+
deferred1_0 = r0;
|
|
692
|
+
deferred1_1 = r1;
|
|
693
|
+
return getStringFromWasm0(r0, r1);
|
|
694
|
+
} finally {
|
|
695
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
696
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* @returns {string}
|
|
701
|
+
*/
|
|
702
|
+
get supSymbol() {
|
|
703
|
+
let deferred1_0;
|
|
704
|
+
let deferred1_1;
|
|
705
|
+
try {
|
|
706
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
707
|
+
wasm.wasmconversionoptions_supSymbol(retptr, this.__wbg_ptr);
|
|
708
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
709
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
710
|
+
deferred1_0 = r0;
|
|
711
|
+
deferred1_1 = r1;
|
|
712
|
+
return getStringFromWasm0(r0, r1);
|
|
713
|
+
} finally {
|
|
714
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
715
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* @returns {WasmWhitespaceMode}
|
|
720
|
+
*/
|
|
721
|
+
get whitespaceMode() {
|
|
722
|
+
const ret = wasm.wasmconversionoptions_whitespaceMode(this.__wbg_ptr);
|
|
723
|
+
return ret;
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* @returns {boolean}
|
|
727
|
+
*/
|
|
728
|
+
get wrap() {
|
|
729
|
+
const ret = wasm.wasmconversionoptions_wrap(this.__wbg_ptr);
|
|
730
|
+
return ret !== 0;
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* @returns {number}
|
|
734
|
+
*/
|
|
735
|
+
get wrapWidth() {
|
|
736
|
+
const ret = wasm.wasmconversionoptions_wrapWidth(this.__wbg_ptr);
|
|
737
|
+
return ret >>> 0;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
if (Symbol.dispose) WasmConversionOptions.prototype[Symbol.dispose] = WasmConversionOptions.prototype.free;
|
|
741
|
+
|
|
742
|
+
export class WasmConversionOptionsBuilder {
|
|
743
|
+
static __wrap(ptr) {
|
|
744
|
+
ptr = ptr >>> 0;
|
|
745
|
+
const obj = Object.create(WasmConversionOptionsBuilder.prototype);
|
|
746
|
+
obj.__wbg_ptr = ptr;
|
|
747
|
+
WasmConversionOptionsBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
748
|
+
return obj;
|
|
749
|
+
}
|
|
750
|
+
__destroy_into_raw() {
|
|
751
|
+
const ptr = this.__wbg_ptr;
|
|
752
|
+
this.__wbg_ptr = 0;
|
|
753
|
+
WasmConversionOptionsBuilderFinalization.unregister(this);
|
|
754
|
+
return ptr;
|
|
755
|
+
}
|
|
756
|
+
free() {
|
|
757
|
+
const ptr = this.__destroy_into_raw();
|
|
758
|
+
wasm.__wbg_wasmconversionoptionsbuilder_free(ptr, 0);
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* @returns {WasmConversionOptions}
|
|
762
|
+
*/
|
|
763
|
+
build() {
|
|
764
|
+
const ret = wasm.wasmconversionoptionsbuilder_build(this.__wbg_ptr);
|
|
765
|
+
return WasmConversionOptions.__wrap(ret);
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* @param {string[]} tags
|
|
769
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
770
|
+
*/
|
|
771
|
+
keepInlineImagesIn(tags) {
|
|
772
|
+
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
773
|
+
const len0 = WASM_VECTOR_LEN;
|
|
774
|
+
const ret = wasm.wasmconversionoptionsbuilder_keepInlineImagesIn(this.__wbg_ptr, ptr0, len0);
|
|
775
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* @param {WasmPreprocessingOptions} preprocessing
|
|
779
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
780
|
+
*/
|
|
781
|
+
preprocessing(preprocessing) {
|
|
782
|
+
_assertClass(preprocessing, WasmPreprocessingOptions);
|
|
783
|
+
var ptr0 = preprocessing.__destroy_into_raw();
|
|
784
|
+
const ret = wasm.wasmconversionoptionsbuilder_preprocessing(this.__wbg_ptr, ptr0);
|
|
785
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* @param {string[]} tags
|
|
789
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
790
|
+
*/
|
|
791
|
+
preserveTags(tags) {
|
|
792
|
+
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
793
|
+
const len0 = WASM_VECTOR_LEN;
|
|
794
|
+
const ret = wasm.wasmconversionoptionsbuilder_preserveTags(this.__wbg_ptr, ptr0, len0);
|
|
795
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* @param {string[]} tags
|
|
799
|
+
* @returns {WasmConversionOptionsBuilder}
|
|
800
|
+
*/
|
|
801
|
+
stripTags(tags) {
|
|
802
|
+
const ptr0 = passArrayJsValueToWasm0(tags, wasm.__wbindgen_export);
|
|
803
|
+
const len0 = WASM_VECTOR_LEN;
|
|
804
|
+
const ret = wasm.wasmconversionoptionsbuilder_stripTags(this.__wbg_ptr, ptr0, len0);
|
|
805
|
+
return WasmConversionOptionsBuilder.__wrap(ret);
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
if (Symbol.dispose) WasmConversionOptionsBuilder.prototype[Symbol.dispose] = WasmConversionOptionsBuilder.prototype.free;
|
|
809
|
+
|
|
810
|
+
export class WasmConversionOptionsUpdate {
|
|
811
|
+
__destroy_into_raw() {
|
|
812
|
+
const ptr = this.__wbg_ptr;
|
|
813
|
+
this.__wbg_ptr = 0;
|
|
814
|
+
WasmConversionOptionsUpdateFinalization.unregister(this);
|
|
815
|
+
return ptr;
|
|
816
|
+
}
|
|
817
|
+
free() {
|
|
818
|
+
const ptr = this.__destroy_into_raw();
|
|
819
|
+
wasm.__wbg_wasmconversionoptionsupdate_free(ptr, 0);
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* @returns {boolean | undefined}
|
|
823
|
+
*/
|
|
824
|
+
get autolinks() {
|
|
825
|
+
const ret = wasm.wasmconversionoptionsupdate_autolinks(this.__wbg_ptr);
|
|
826
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* @returns {boolean | undefined}
|
|
830
|
+
*/
|
|
831
|
+
get brInTables() {
|
|
832
|
+
const ret = wasm.wasmconversionoptionsupdate_brInTables(this.__wbg_ptr);
|
|
833
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* @returns {string | undefined}
|
|
837
|
+
*/
|
|
838
|
+
get bullets() {
|
|
839
|
+
try {
|
|
840
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
841
|
+
wasm.wasmconversionoptionsupdate_bullets(retptr, this.__wbg_ptr);
|
|
842
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
843
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
844
|
+
let v1;
|
|
845
|
+
if (r0 !== 0) {
|
|
846
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
847
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
848
|
+
}
|
|
849
|
+
return v1;
|
|
850
|
+
} finally {
|
|
851
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* @returns {boolean | undefined}
|
|
856
|
+
*/
|
|
857
|
+
get captureSvg() {
|
|
858
|
+
const ret = wasm.wasmconversionoptionsupdate_captureSvg(this.__wbg_ptr);
|
|
859
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* @returns {WasmCodeBlockStyle | undefined}
|
|
863
|
+
*/
|
|
864
|
+
get codeBlockStyle() {
|
|
865
|
+
const ret = wasm.wasmconversionoptionsupdate_codeBlockStyle(this.__wbg_ptr);
|
|
866
|
+
return ret === 3 ? undefined : ret;
|
|
867
|
+
}
|
|
868
|
+
/**
|
|
869
|
+
* @returns {string | undefined}
|
|
870
|
+
*/
|
|
871
|
+
get codeLanguage() {
|
|
872
|
+
try {
|
|
873
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
874
|
+
wasm.wasmconversionoptionsupdate_codeLanguage(retptr, this.__wbg_ptr);
|
|
875
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
876
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
877
|
+
let v1;
|
|
878
|
+
if (r0 !== 0) {
|
|
879
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
880
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
881
|
+
}
|
|
882
|
+
return v1;
|
|
883
|
+
} finally {
|
|
884
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* @returns {boolean | undefined}
|
|
889
|
+
*/
|
|
890
|
+
get convertAsInline() {
|
|
891
|
+
const ret = wasm.wasmconversionoptionsupdate_convertAsInline(this.__wbg_ptr);
|
|
892
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* @returns {boolean | undefined}
|
|
896
|
+
*/
|
|
897
|
+
get debug() {
|
|
898
|
+
const ret = wasm.wasmconversionoptionsupdate_debug(this.__wbg_ptr);
|
|
899
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* @returns {boolean | undefined}
|
|
903
|
+
*/
|
|
904
|
+
get defaultTitle() {
|
|
905
|
+
const ret = wasm.wasmconversionoptionsupdate_defaultTitle(this.__wbg_ptr);
|
|
906
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* @returns {string | undefined}
|
|
910
|
+
*/
|
|
911
|
+
get encoding() {
|
|
912
|
+
try {
|
|
913
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
914
|
+
wasm.wasmconversionoptionsupdate_encoding(retptr, this.__wbg_ptr);
|
|
915
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
916
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
917
|
+
let v1;
|
|
918
|
+
if (r0 !== 0) {
|
|
919
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
920
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
921
|
+
}
|
|
922
|
+
return v1;
|
|
923
|
+
} finally {
|
|
924
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* @returns {boolean | undefined}
|
|
929
|
+
*/
|
|
930
|
+
get escapeAscii() {
|
|
931
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeAscii(this.__wbg_ptr);
|
|
932
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* @returns {boolean | undefined}
|
|
936
|
+
*/
|
|
937
|
+
get escapeAsterisks() {
|
|
938
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeAsterisks(this.__wbg_ptr);
|
|
939
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* @returns {boolean | undefined}
|
|
943
|
+
*/
|
|
944
|
+
get escapeMisc() {
|
|
945
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeMisc(this.__wbg_ptr);
|
|
946
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* @returns {boolean | undefined}
|
|
950
|
+
*/
|
|
951
|
+
get escapeUnderscores() {
|
|
952
|
+
const ret = wasm.wasmconversionoptionsupdate_escapeUnderscores(this.__wbg_ptr);
|
|
953
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* @returns {boolean | undefined}
|
|
957
|
+
*/
|
|
958
|
+
get extractImages() {
|
|
959
|
+
const ret = wasm.wasmconversionoptionsupdate_extractImages(this.__wbg_ptr);
|
|
960
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
961
|
+
}
|
|
962
|
+
/**
|
|
963
|
+
* @returns {boolean | undefined}
|
|
964
|
+
*/
|
|
965
|
+
get extractMetadata() {
|
|
966
|
+
const ret = wasm.wasmconversionoptionsupdate_extractMetadata(this.__wbg_ptr);
|
|
967
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* @returns {WasmHeadingStyle | undefined}
|
|
971
|
+
*/
|
|
972
|
+
get headingStyle() {
|
|
973
|
+
const ret = wasm.wasmconversionoptionsupdate_headingStyle(this.__wbg_ptr);
|
|
974
|
+
return ret === 3 ? undefined : ret;
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* @returns {WasmHighlightStyle | undefined}
|
|
978
|
+
*/
|
|
979
|
+
get highlightStyle() {
|
|
980
|
+
const ret = wasm.wasmconversionoptionsupdate_highlightStyle(this.__wbg_ptr);
|
|
981
|
+
return ret === 4 ? undefined : ret;
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* @returns {boolean | undefined}
|
|
985
|
+
*/
|
|
986
|
+
get includeDocumentStructure() {
|
|
987
|
+
const ret = wasm.wasmconversionoptionsupdate_includeDocumentStructure(this.__wbg_ptr);
|
|
988
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* @returns {boolean | undefined}
|
|
992
|
+
*/
|
|
993
|
+
get inferDimensions() {
|
|
994
|
+
const ret = wasm.wasmconversionoptionsupdate_inferDimensions(this.__wbg_ptr);
|
|
995
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* @returns {string[] | undefined}
|
|
999
|
+
*/
|
|
1000
|
+
get keepInlineImagesIn() {
|
|
1001
|
+
try {
|
|
1002
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1003
|
+
wasm.wasmconversionoptionsupdate_keepInlineImagesIn(retptr, this.__wbg_ptr);
|
|
1004
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1005
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1006
|
+
let v1;
|
|
1007
|
+
if (r0 !== 0) {
|
|
1008
|
+
v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1009
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
1010
|
+
}
|
|
1011
|
+
return v1;
|
|
1012
|
+
} finally {
|
|
1013
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* @returns {WasmLinkStyle | undefined}
|
|
1018
|
+
*/
|
|
1019
|
+
get linkStyle() {
|
|
1020
|
+
const ret = wasm.wasmconversionoptionsupdate_linkStyle(this.__wbg_ptr);
|
|
1021
|
+
return ret === 2 ? undefined : ret;
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* @returns {WasmListIndentType | undefined}
|
|
1025
|
+
*/
|
|
1026
|
+
get listIndentType() {
|
|
1027
|
+
const ret = wasm.wasmconversionoptionsupdate_listIndentType(this.__wbg_ptr);
|
|
1028
|
+
return ret === 2 ? undefined : ret;
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* @returns {number | undefined}
|
|
1032
|
+
*/
|
|
1033
|
+
get listIndentWidth() {
|
|
1034
|
+
const ret = wasm.wasmconversionoptionsupdate_listIndentWidth(this.__wbg_ptr);
|
|
1035
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* @returns {bigint | undefined}
|
|
1039
|
+
*/
|
|
1040
|
+
get maxImageSize() {
|
|
1041
|
+
try {
|
|
1042
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1043
|
+
wasm.wasmconversionoptionsupdate_maxImageSize(retptr, this.__wbg_ptr);
|
|
1044
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1045
|
+
var r2 = getDataViewMemory0().getBigInt64(retptr + 8 * 1, true);
|
|
1046
|
+
return r0 === 0 ? undefined : BigInt.asUintN(64, r2);
|
|
1047
|
+
} finally {
|
|
1048
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* @param {WasmHeadingStyle | null} [heading_style]
|
|
1053
|
+
* @param {WasmListIndentType | null} [list_indent_type]
|
|
1054
|
+
* @param {number | null} [list_indent_width]
|
|
1055
|
+
* @param {string | null} [bullets]
|
|
1056
|
+
* @param {string | null} [strong_em_symbol]
|
|
1057
|
+
* @param {boolean | null} [escape_asterisks]
|
|
1058
|
+
* @param {boolean | null} [escape_underscores]
|
|
1059
|
+
* @param {boolean | null} [escape_misc]
|
|
1060
|
+
* @param {boolean | null} [escape_ascii]
|
|
1061
|
+
* @param {string | null} [code_language]
|
|
1062
|
+
* @param {boolean | null} [autolinks]
|
|
1063
|
+
* @param {boolean | null} [default_title]
|
|
1064
|
+
* @param {boolean | null} [br_in_tables]
|
|
1065
|
+
* @param {WasmHighlightStyle | null} [highlight_style]
|
|
1066
|
+
* @param {boolean | null} [extract_metadata]
|
|
1067
|
+
* @param {WasmWhitespaceMode | null} [whitespace_mode]
|
|
1068
|
+
* @param {boolean | null} [strip_newlines]
|
|
1069
|
+
* @param {boolean | null} [wrap]
|
|
1070
|
+
* @param {number | null} [wrap_width]
|
|
1071
|
+
* @param {boolean | null} [convert_as_inline]
|
|
1072
|
+
* @param {string | null} [sub_symbol]
|
|
1073
|
+
* @param {string | null} [sup_symbol]
|
|
1074
|
+
* @param {WasmNewlineStyle | null} [newline_style]
|
|
1075
|
+
* @param {WasmCodeBlockStyle | null} [code_block_style]
|
|
1076
|
+
* @param {string[] | null} [keep_inline_images_in]
|
|
1077
|
+
* @param {WasmPreprocessingOptionsUpdate | null} [preprocessing]
|
|
1078
|
+
* @param {string | null} [encoding]
|
|
1079
|
+
* @param {boolean | null} [debug]
|
|
1080
|
+
* @param {string[] | null} [strip_tags]
|
|
1081
|
+
* @param {string[] | null} [preserve_tags]
|
|
1082
|
+
* @param {boolean | null} [skip_images]
|
|
1083
|
+
* @param {WasmLinkStyle | null} [link_style]
|
|
1084
|
+
* @param {WasmOutputFormat | null} [output_format]
|
|
1085
|
+
* @param {boolean | null} [include_document_structure]
|
|
1086
|
+
* @param {boolean | null} [extract_images]
|
|
1087
|
+
* @param {bigint | null} [max_image_size]
|
|
1088
|
+
* @param {boolean | null} [capture_svg]
|
|
1089
|
+
* @param {boolean | null} [infer_dimensions]
|
|
1090
|
+
*/
|
|
1091
|
+
constructor(heading_style, list_indent_type, list_indent_width, bullets, strong_em_symbol, escape_asterisks, escape_underscores, escape_misc, escape_ascii, code_language, autolinks, default_title, br_in_tables, highlight_style, extract_metadata, whitespace_mode, strip_newlines, wrap, wrap_width, convert_as_inline, sub_symbol, sup_symbol, newline_style, code_block_style, keep_inline_images_in, preprocessing, encoding, debug, strip_tags, preserve_tags, skip_images, link_style, output_format, include_document_structure, extract_images, max_image_size, capture_svg, infer_dimensions) {
|
|
1092
|
+
var ptr0 = isLikeNone(bullets) ? 0 : passStringToWasm0(bullets, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1093
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1094
|
+
var ptr1 = isLikeNone(strong_em_symbol) ? 0 : passStringToWasm0(strong_em_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1095
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1096
|
+
var ptr2 = isLikeNone(code_language) ? 0 : passStringToWasm0(code_language, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1097
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1098
|
+
var ptr3 = isLikeNone(sub_symbol) ? 0 : passStringToWasm0(sub_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1099
|
+
var len3 = WASM_VECTOR_LEN;
|
|
1100
|
+
var ptr4 = isLikeNone(sup_symbol) ? 0 : passStringToWasm0(sup_symbol, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1101
|
+
var len4 = WASM_VECTOR_LEN;
|
|
1102
|
+
var ptr5 = isLikeNone(keep_inline_images_in) ? 0 : passArrayJsValueToWasm0(keep_inline_images_in, wasm.__wbindgen_export);
|
|
1103
|
+
var len5 = WASM_VECTOR_LEN;
|
|
1104
|
+
let ptr6 = 0;
|
|
1105
|
+
if (!isLikeNone(preprocessing)) {
|
|
1106
|
+
_assertClass(preprocessing, WasmPreprocessingOptionsUpdate);
|
|
1107
|
+
ptr6 = preprocessing.__destroy_into_raw();
|
|
1108
|
+
}
|
|
1109
|
+
var ptr7 = isLikeNone(encoding) ? 0 : passStringToWasm0(encoding, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1110
|
+
var len7 = WASM_VECTOR_LEN;
|
|
1111
|
+
var ptr8 = isLikeNone(strip_tags) ? 0 : passArrayJsValueToWasm0(strip_tags, wasm.__wbindgen_export);
|
|
1112
|
+
var len8 = WASM_VECTOR_LEN;
|
|
1113
|
+
var ptr9 = isLikeNone(preserve_tags) ? 0 : passArrayJsValueToWasm0(preserve_tags, wasm.__wbindgen_export);
|
|
1114
|
+
var len9 = WASM_VECTOR_LEN;
|
|
1115
|
+
const ret = wasm.wasmconversionoptionsupdate_new(isLikeNone(heading_style) ? 3 : heading_style, isLikeNone(list_indent_type) ? 2 : list_indent_type, isLikeNone(list_indent_width) ? 0x100000001 : (list_indent_width) >>> 0, ptr0, len0, ptr1, len1, isLikeNone(escape_asterisks) ? 0xFFFFFF : escape_asterisks ? 1 : 0, isLikeNone(escape_underscores) ? 0xFFFFFF : escape_underscores ? 1 : 0, isLikeNone(escape_misc) ? 0xFFFFFF : escape_misc ? 1 : 0, isLikeNone(escape_ascii) ? 0xFFFFFF : escape_ascii ? 1 : 0, ptr2, len2, isLikeNone(autolinks) ? 0xFFFFFF : autolinks ? 1 : 0, isLikeNone(default_title) ? 0xFFFFFF : default_title ? 1 : 0, isLikeNone(br_in_tables) ? 0xFFFFFF : br_in_tables ? 1 : 0, isLikeNone(highlight_style) ? 4 : highlight_style, isLikeNone(extract_metadata) ? 0xFFFFFF : extract_metadata ? 1 : 0, isLikeNone(whitespace_mode) ? 2 : whitespace_mode, isLikeNone(strip_newlines) ? 0xFFFFFF : strip_newlines ? 1 : 0, isLikeNone(wrap) ? 0xFFFFFF : wrap ? 1 : 0, isLikeNone(wrap_width) ? 0x100000001 : (wrap_width) >>> 0, isLikeNone(convert_as_inline) ? 0xFFFFFF : convert_as_inline ? 1 : 0, ptr3, len3, ptr4, len4, isLikeNone(newline_style) ? 2 : newline_style, isLikeNone(code_block_style) ? 3 : code_block_style, ptr5, len5, ptr6, ptr7, len7, isLikeNone(debug) ? 0xFFFFFF : debug ? 1 : 0, ptr8, len8, ptr9, len9, isLikeNone(skip_images) ? 0xFFFFFF : skip_images ? 1 : 0, isLikeNone(link_style) ? 2 : link_style, isLikeNone(output_format) ? 3 : output_format, isLikeNone(include_document_structure) ? 0xFFFFFF : include_document_structure ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, !isLikeNone(max_image_size), isLikeNone(max_image_size) ? BigInt(0) : max_image_size, isLikeNone(capture_svg) ? 0xFFFFFF : capture_svg ? 1 : 0, isLikeNone(infer_dimensions) ? 0xFFFFFF : infer_dimensions ? 1 : 0);
|
|
1116
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1117
|
+
WasmConversionOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
1118
|
+
return this;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* @returns {WasmNewlineStyle | undefined}
|
|
1122
|
+
*/
|
|
1123
|
+
get newlineStyle() {
|
|
1124
|
+
const ret = wasm.wasmconversionoptionsupdate_newlineStyle(this.__wbg_ptr);
|
|
1125
|
+
return ret === 2 ? undefined : ret;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* @returns {WasmOutputFormat | undefined}
|
|
1129
|
+
*/
|
|
1130
|
+
get outputFormat() {
|
|
1131
|
+
const ret = wasm.wasmconversionoptionsupdate_outputFormat(this.__wbg_ptr);
|
|
1132
|
+
return ret === 3 ? undefined : ret;
|
|
1133
|
+
}
|
|
1134
|
+
/**
|
|
1135
|
+
* @returns {WasmPreprocessingOptionsUpdate | undefined}
|
|
1136
|
+
*/
|
|
1137
|
+
get preprocessing() {
|
|
1138
|
+
const ret = wasm.wasmconversionoptionsupdate_preprocessing(this.__wbg_ptr);
|
|
1139
|
+
return ret === 0 ? undefined : WasmPreprocessingOptionsUpdate.__wrap(ret);
|
|
1140
|
+
}
|
|
1141
|
+
/**
|
|
1142
|
+
* @returns {string[] | undefined}
|
|
1143
|
+
*/
|
|
1144
|
+
get preserveTags() {
|
|
1145
|
+
try {
|
|
1146
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1147
|
+
wasm.wasmconversionoptionsupdate_preserveTags(retptr, this.__wbg_ptr);
|
|
1148
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1149
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1150
|
+
let v1;
|
|
1151
|
+
if (r0 !== 0) {
|
|
1152
|
+
v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1153
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
1154
|
+
}
|
|
1155
|
+
return v1;
|
|
1156
|
+
} finally {
|
|
1157
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* @param {boolean | null} [value]
|
|
1162
|
+
*/
|
|
1163
|
+
set autolinks(value) {
|
|
1164
|
+
wasm.wasmconversionoptionsupdate_set_autolinks(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* @param {boolean | null} [value]
|
|
1168
|
+
*/
|
|
1169
|
+
set brInTables(value) {
|
|
1170
|
+
wasm.wasmconversionoptionsupdate_set_brInTables(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* @param {string | null} [value]
|
|
1174
|
+
*/
|
|
1175
|
+
set bullets(value) {
|
|
1176
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1177
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1178
|
+
wasm.wasmconversionoptionsupdate_set_bullets(this.__wbg_ptr, ptr0, len0);
|
|
1179
|
+
}
|
|
1180
|
+
/**
|
|
1181
|
+
* @param {boolean | null} [value]
|
|
1182
|
+
*/
|
|
1183
|
+
set captureSvg(value) {
|
|
1184
|
+
wasm.wasmconversionoptionsupdate_set_captureSvg(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* @param {WasmCodeBlockStyle | null} [value]
|
|
1188
|
+
*/
|
|
1189
|
+
set codeBlockStyle(value) {
|
|
1190
|
+
wasm.wasmconversionoptionsupdate_set_codeBlockStyle(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* @param {string | null} [value]
|
|
1194
|
+
*/
|
|
1195
|
+
set codeLanguage(value) {
|
|
1196
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1197
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1198
|
+
wasm.wasmconversionoptionsupdate_set_codeLanguage(this.__wbg_ptr, ptr0, len0);
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
* @param {boolean | null} [value]
|
|
1202
|
+
*/
|
|
1203
|
+
set convertAsInline(value) {
|
|
1204
|
+
wasm.wasmconversionoptionsupdate_set_convertAsInline(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* @param {boolean | null} [value]
|
|
1208
|
+
*/
|
|
1209
|
+
set debug(value) {
|
|
1210
|
+
wasm.wasmconversionoptionsupdate_set_debug(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* @param {boolean | null} [value]
|
|
1214
|
+
*/
|
|
1215
|
+
set defaultTitle(value) {
|
|
1216
|
+
wasm.wasmconversionoptionsupdate_set_defaultTitle(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
* @param {string | null} [value]
|
|
1220
|
+
*/
|
|
1221
|
+
set encoding(value) {
|
|
1222
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1223
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1224
|
+
wasm.wasmconversionoptionsupdate_set_encoding(this.__wbg_ptr, ptr0, len0);
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* @param {boolean | null} [value]
|
|
1228
|
+
*/
|
|
1229
|
+
set escapeAscii(value) {
|
|
1230
|
+
wasm.wasmconversionoptionsupdate_set_escapeAscii(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* @param {boolean | null} [value]
|
|
1234
|
+
*/
|
|
1235
|
+
set escapeAsterisks(value) {
|
|
1236
|
+
wasm.wasmconversionoptionsupdate_set_escapeAsterisks(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* @param {boolean | null} [value]
|
|
1240
|
+
*/
|
|
1241
|
+
set escapeMisc(value) {
|
|
1242
|
+
wasm.wasmconversionoptionsupdate_set_escapeMisc(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1243
|
+
}
|
|
1244
|
+
/**
|
|
1245
|
+
* @param {boolean | null} [value]
|
|
1246
|
+
*/
|
|
1247
|
+
set escapeUnderscores(value) {
|
|
1248
|
+
wasm.wasmconversionoptionsupdate_set_escapeUnderscores(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* @param {boolean | null} [value]
|
|
1252
|
+
*/
|
|
1253
|
+
set extractImages(value) {
|
|
1254
|
+
wasm.wasmconversionoptionsupdate_set_extractImages(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* @param {boolean | null} [value]
|
|
1258
|
+
*/
|
|
1259
|
+
set extractMetadata(value) {
|
|
1260
|
+
wasm.wasmconversionoptionsupdate_set_extractMetadata(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* @param {WasmHeadingStyle | null} [value]
|
|
1264
|
+
*/
|
|
1265
|
+
set headingStyle(value) {
|
|
1266
|
+
wasm.wasmconversionoptionsupdate_set_headingStyle(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* @param {WasmHighlightStyle | null} [value]
|
|
1270
|
+
*/
|
|
1271
|
+
set highlightStyle(value) {
|
|
1272
|
+
wasm.wasmconversionoptionsupdate_set_highlightStyle(this.__wbg_ptr, isLikeNone(value) ? 4 : value);
|
|
1273
|
+
}
|
|
1274
|
+
/**
|
|
1275
|
+
* @param {boolean | null} [value]
|
|
1276
|
+
*/
|
|
1277
|
+
set includeDocumentStructure(value) {
|
|
1278
|
+
wasm.wasmconversionoptionsupdate_set_includeDocumentStructure(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* @param {boolean | null} [value]
|
|
1282
|
+
*/
|
|
1283
|
+
set inferDimensions(value) {
|
|
1284
|
+
wasm.wasmconversionoptionsupdate_set_inferDimensions(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* @param {string[] | null} [value]
|
|
1288
|
+
*/
|
|
1289
|
+
set keepInlineImagesIn(value) {
|
|
1290
|
+
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1291
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1292
|
+
wasm.wasmconversionoptionsupdate_set_keepInlineImagesIn(this.__wbg_ptr, ptr0, len0);
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* @param {WasmLinkStyle | null} [value]
|
|
1296
|
+
*/
|
|
1297
|
+
set linkStyle(value) {
|
|
1298
|
+
wasm.wasmconversionoptionsupdate_set_linkStyle(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* @param {WasmListIndentType | null} [value]
|
|
1302
|
+
*/
|
|
1303
|
+
set listIndentType(value) {
|
|
1304
|
+
wasm.wasmconversionoptionsupdate_set_listIndentType(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* @param {number | null} [value]
|
|
1308
|
+
*/
|
|
1309
|
+
set listIndentWidth(value) {
|
|
1310
|
+
wasm.wasmconversionoptionsupdate_set_listIndentWidth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* @param {bigint | null} [value]
|
|
1314
|
+
*/
|
|
1315
|
+
set maxImageSize(value) {
|
|
1316
|
+
wasm.wasmconversionoptionsupdate_set_maxImageSize(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? BigInt(0) : value);
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* @param {WasmNewlineStyle | null} [value]
|
|
1320
|
+
*/
|
|
1321
|
+
set newlineStyle(value) {
|
|
1322
|
+
wasm.wasmconversionoptionsupdate_set_newlineStyle(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* @param {WasmOutputFormat | null} [value]
|
|
1326
|
+
*/
|
|
1327
|
+
set outputFormat(value) {
|
|
1328
|
+
wasm.wasmconversionoptionsupdate_set_outputFormat(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1331
|
+
* @param {WasmPreprocessingOptionsUpdate | null} [value]
|
|
1332
|
+
*/
|
|
1333
|
+
set preprocessing(value) {
|
|
1334
|
+
let ptr0 = 0;
|
|
1335
|
+
if (!isLikeNone(value)) {
|
|
1336
|
+
_assertClass(value, WasmPreprocessingOptionsUpdate);
|
|
1337
|
+
ptr0 = value.__destroy_into_raw();
|
|
1338
|
+
}
|
|
1339
|
+
wasm.wasmconversionoptionsupdate_set_preprocessing(this.__wbg_ptr, ptr0);
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* @param {string[] | null} [value]
|
|
1343
|
+
*/
|
|
1344
|
+
set preserveTags(value) {
|
|
1345
|
+
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1346
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1347
|
+
wasm.wasmconversionoptionsupdate_set_preserveTags(this.__wbg_ptr, ptr0, len0);
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* @param {boolean | null} [value]
|
|
1351
|
+
*/
|
|
1352
|
+
set skipImages(value) {
|
|
1353
|
+
wasm.wasmconversionoptionsupdate_set_skipImages(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* @param {boolean | null} [value]
|
|
1357
|
+
*/
|
|
1358
|
+
set stripNewlines(value) {
|
|
1359
|
+
wasm.wasmconversionoptionsupdate_set_stripNewlines(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* @param {string[] | null} [value]
|
|
1363
|
+
*/
|
|
1364
|
+
set stripTags(value) {
|
|
1365
|
+
var ptr0 = isLikeNone(value) ? 0 : passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1366
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1367
|
+
wasm.wasmconversionoptionsupdate_set_stripTags(this.__wbg_ptr, ptr0, len0);
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* @param {string | null} [value]
|
|
1371
|
+
*/
|
|
1372
|
+
set strongEmSymbol(value) {
|
|
1373
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1374
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1375
|
+
wasm.wasmconversionoptionsupdate_set_strongEmSymbol(this.__wbg_ptr, ptr0, len0);
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* @param {string | null} [value]
|
|
1379
|
+
*/
|
|
1380
|
+
set subSymbol(value) {
|
|
1381
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1382
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1383
|
+
wasm.wasmconversionoptionsupdate_set_subSymbol(this.__wbg_ptr, ptr0, len0);
|
|
1384
|
+
}
|
|
1385
|
+
/**
|
|
1386
|
+
* @param {string | null} [value]
|
|
1387
|
+
*/
|
|
1388
|
+
set supSymbol(value) {
|
|
1389
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1390
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1391
|
+
wasm.wasmconversionoptionsupdate_set_supSymbol(this.__wbg_ptr, ptr0, len0);
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* @param {WasmWhitespaceMode | null} [value]
|
|
1395
|
+
*/
|
|
1396
|
+
set whitespaceMode(value) {
|
|
1397
|
+
wasm.wasmconversionoptionsupdate_set_whitespaceMode(this.__wbg_ptr, isLikeNone(value) ? 2 : value);
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* @param {boolean | null} [value]
|
|
1401
|
+
*/
|
|
1402
|
+
set wrap(value) {
|
|
1403
|
+
wasm.wasmconversionoptionsupdate_set_wrap(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* @param {number | null} [value]
|
|
1407
|
+
*/
|
|
1408
|
+
set wrapWidth(value) {
|
|
1409
|
+
wasm.wasmconversionoptionsupdate_set_wrapWidth(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
1410
|
+
}
|
|
1411
|
+
/**
|
|
1412
|
+
* @returns {boolean | undefined}
|
|
1413
|
+
*/
|
|
1414
|
+
get skipImages() {
|
|
1415
|
+
const ret = wasm.wasmconversionoptionsupdate_skipImages(this.__wbg_ptr);
|
|
1416
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* @returns {boolean | undefined}
|
|
1420
|
+
*/
|
|
1421
|
+
get stripNewlines() {
|
|
1422
|
+
const ret = wasm.wasmconversionoptionsupdate_stripNewlines(this.__wbg_ptr);
|
|
1423
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* @returns {string[] | undefined}
|
|
1427
|
+
*/
|
|
1428
|
+
get stripTags() {
|
|
1429
|
+
try {
|
|
1430
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1431
|
+
wasm.wasmconversionoptionsupdate_stripTags(retptr, this.__wbg_ptr);
|
|
1432
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1433
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1434
|
+
let v1;
|
|
1435
|
+
if (r0 !== 0) {
|
|
1436
|
+
v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1437
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
1438
|
+
}
|
|
1439
|
+
return v1;
|
|
1440
|
+
} finally {
|
|
1441
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
/**
|
|
1445
|
+
* @returns {string | undefined}
|
|
1446
|
+
*/
|
|
1447
|
+
get strongEmSymbol() {
|
|
1448
|
+
try {
|
|
1449
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1450
|
+
wasm.wasmconversionoptionsupdate_strongEmSymbol(retptr, this.__wbg_ptr);
|
|
1451
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1452
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1453
|
+
let v1;
|
|
1454
|
+
if (r0 !== 0) {
|
|
1455
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1456
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1457
|
+
}
|
|
1458
|
+
return v1;
|
|
1459
|
+
} finally {
|
|
1460
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* @returns {string | undefined}
|
|
1465
|
+
*/
|
|
1466
|
+
get subSymbol() {
|
|
1467
|
+
try {
|
|
1468
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1469
|
+
wasm.wasmconversionoptionsupdate_subSymbol(retptr, this.__wbg_ptr);
|
|
1470
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1471
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1472
|
+
let v1;
|
|
1473
|
+
if (r0 !== 0) {
|
|
1474
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1475
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1476
|
+
}
|
|
1477
|
+
return v1;
|
|
1478
|
+
} finally {
|
|
1479
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* @returns {string | undefined}
|
|
1484
|
+
*/
|
|
1485
|
+
get supSymbol() {
|
|
1486
|
+
try {
|
|
1487
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1488
|
+
wasm.wasmconversionoptionsupdate_supSymbol(retptr, this.__wbg_ptr);
|
|
1489
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1490
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1491
|
+
let v1;
|
|
1492
|
+
if (r0 !== 0) {
|
|
1493
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1494
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1495
|
+
}
|
|
1496
|
+
return v1;
|
|
1497
|
+
} finally {
|
|
1498
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
/**
|
|
1502
|
+
* @returns {WasmWhitespaceMode | undefined}
|
|
1503
|
+
*/
|
|
1504
|
+
get whitespaceMode() {
|
|
1505
|
+
const ret = wasm.wasmconversionoptionsupdate_whitespaceMode(this.__wbg_ptr);
|
|
1506
|
+
return ret === 2 ? undefined : ret;
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* @returns {boolean | undefined}
|
|
1510
|
+
*/
|
|
1511
|
+
get wrap() {
|
|
1512
|
+
const ret = wasm.wasmconversionoptionsupdate_wrap(this.__wbg_ptr);
|
|
1513
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* @returns {number | undefined}
|
|
1517
|
+
*/
|
|
1518
|
+
get wrapWidth() {
|
|
1519
|
+
const ret = wasm.wasmconversionoptionsupdate_wrapWidth(this.__wbg_ptr);
|
|
1520
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
if (Symbol.dispose) WasmConversionOptionsUpdate.prototype[Symbol.dispose] = WasmConversionOptionsUpdate.prototype.free;
|
|
1524
|
+
|
|
1525
|
+
export class WasmConversionResult {
|
|
1526
|
+
static __wrap(ptr) {
|
|
1527
|
+
ptr = ptr >>> 0;
|
|
1528
|
+
const obj = Object.create(WasmConversionResult.prototype);
|
|
1529
|
+
obj.__wbg_ptr = ptr;
|
|
1530
|
+
WasmConversionResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1531
|
+
return obj;
|
|
1532
|
+
}
|
|
1533
|
+
__destroy_into_raw() {
|
|
1534
|
+
const ptr = this.__wbg_ptr;
|
|
1535
|
+
this.__wbg_ptr = 0;
|
|
1536
|
+
WasmConversionResultFinalization.unregister(this);
|
|
1537
|
+
return ptr;
|
|
1538
|
+
}
|
|
1539
|
+
free() {
|
|
1540
|
+
const ptr = this.__destroy_into_raw();
|
|
1541
|
+
wasm.__wbg_wasmconversionresult_free(ptr, 0);
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* @returns {string | undefined}
|
|
1545
|
+
*/
|
|
1546
|
+
get content() {
|
|
1547
|
+
try {
|
|
1548
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1549
|
+
wasm.wasmconversionresult_content(retptr, this.__wbg_ptr);
|
|
1550
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1551
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1552
|
+
let v1;
|
|
1553
|
+
if (r0 !== 0) {
|
|
1554
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1555
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1556
|
+
}
|
|
1557
|
+
return v1;
|
|
1558
|
+
} finally {
|
|
1559
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
/**
|
|
1563
|
+
* @returns {WasmDocumentStructure | undefined}
|
|
1564
|
+
*/
|
|
1565
|
+
get document() {
|
|
1566
|
+
const ret = wasm.wasmconversionresult_document(this.__wbg_ptr);
|
|
1567
|
+
return ret === 0 ? undefined : WasmDocumentStructure.__wrap(ret);
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* @returns {string[]}
|
|
1571
|
+
*/
|
|
1572
|
+
get images() {
|
|
1573
|
+
try {
|
|
1574
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1575
|
+
wasm.wasmconversionresult_images(retptr, this.__wbg_ptr);
|
|
1576
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1577
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1578
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1579
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
1580
|
+
return v1;
|
|
1581
|
+
} finally {
|
|
1582
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1586
|
+
* @returns {WasmHtmlMetadata}
|
|
1587
|
+
*/
|
|
1588
|
+
get metadata() {
|
|
1589
|
+
const ret = wasm.wasmconversionresult_metadata(this.__wbg_ptr);
|
|
1590
|
+
return WasmHtmlMetadata.__wrap(ret);
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* @param {WasmHtmlMetadata | null} [metadata]
|
|
1594
|
+
* @param {WasmTableData[] | null} [tables]
|
|
1595
|
+
* @param {string[] | null} [images]
|
|
1596
|
+
* @param {WasmProcessingWarning[] | null} [warnings]
|
|
1597
|
+
* @param {string | null} [content]
|
|
1598
|
+
* @param {WasmDocumentStructure | null} [document]
|
|
1599
|
+
*/
|
|
1600
|
+
constructor(metadata, tables, images, warnings, content, document) {
|
|
1601
|
+
let ptr0 = 0;
|
|
1602
|
+
if (!isLikeNone(metadata)) {
|
|
1603
|
+
_assertClass(metadata, WasmHtmlMetadata);
|
|
1604
|
+
ptr0 = metadata.__destroy_into_raw();
|
|
1605
|
+
}
|
|
1606
|
+
var ptr1 = isLikeNone(tables) ? 0 : passArrayJsValueToWasm0(tables, wasm.__wbindgen_export);
|
|
1607
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1608
|
+
var ptr2 = isLikeNone(images) ? 0 : passArrayJsValueToWasm0(images, wasm.__wbindgen_export);
|
|
1609
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1610
|
+
var ptr3 = isLikeNone(warnings) ? 0 : passArrayJsValueToWasm0(warnings, wasm.__wbindgen_export);
|
|
1611
|
+
var len3 = WASM_VECTOR_LEN;
|
|
1612
|
+
var ptr4 = isLikeNone(content) ? 0 : passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1613
|
+
var len4 = WASM_VECTOR_LEN;
|
|
1614
|
+
let ptr5 = 0;
|
|
1615
|
+
if (!isLikeNone(document)) {
|
|
1616
|
+
_assertClass(document, WasmDocumentStructure);
|
|
1617
|
+
ptr5 = document.__destroy_into_raw();
|
|
1618
|
+
}
|
|
1619
|
+
const ret = wasm.wasmconversionresult_new(ptr0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5);
|
|
1620
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1621
|
+
WasmConversionResultFinalization.register(this, this.__wbg_ptr, this);
|
|
1622
|
+
return this;
|
|
1623
|
+
}
|
|
1624
|
+
/**
|
|
1625
|
+
* @param {string | null} [value]
|
|
1626
|
+
*/
|
|
1627
|
+
set content(value) {
|
|
1628
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1629
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1630
|
+
wasm.wasmconversionresult_set_content(this.__wbg_ptr, ptr0, len0);
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* @param {WasmDocumentStructure | null} [value]
|
|
1634
|
+
*/
|
|
1635
|
+
set document(value) {
|
|
1636
|
+
let ptr0 = 0;
|
|
1637
|
+
if (!isLikeNone(value)) {
|
|
1638
|
+
_assertClass(value, WasmDocumentStructure);
|
|
1639
|
+
ptr0 = value.__destroy_into_raw();
|
|
1640
|
+
}
|
|
1641
|
+
wasm.wasmconversionresult_set_document(this.__wbg_ptr, ptr0);
|
|
1642
|
+
}
|
|
1643
|
+
/**
|
|
1644
|
+
* @param {string[]} value
|
|
1645
|
+
*/
|
|
1646
|
+
set images(value) {
|
|
1647
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1648
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1649
|
+
wasm.wasmconversionresult_set_images(this.__wbg_ptr, ptr0, len0);
|
|
1650
|
+
}
|
|
1651
|
+
/**
|
|
1652
|
+
* @param {WasmHtmlMetadata} value
|
|
1653
|
+
*/
|
|
1654
|
+
set metadata(value) {
|
|
1655
|
+
_assertClass(value, WasmHtmlMetadata);
|
|
1656
|
+
var ptr0 = value.__destroy_into_raw();
|
|
1657
|
+
wasm.wasmconversionresult_set_metadata(this.__wbg_ptr, ptr0);
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* @param {WasmTableData[]} value
|
|
1661
|
+
*/
|
|
1662
|
+
set tables(value) {
|
|
1663
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1664
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1665
|
+
wasm.wasmconversionresult_set_tables(this.__wbg_ptr, ptr0, len0);
|
|
1666
|
+
}
|
|
1667
|
+
/**
|
|
1668
|
+
* @param {WasmProcessingWarning[]} value
|
|
1669
|
+
*/
|
|
1670
|
+
set warnings(value) {
|
|
1671
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1672
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1673
|
+
wasm.wasmconversionresult_set_warnings(this.__wbg_ptr, ptr0, len0);
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
* @returns {WasmTableData[]}
|
|
1677
|
+
*/
|
|
1678
|
+
get tables() {
|
|
1679
|
+
try {
|
|
1680
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1681
|
+
wasm.wasmconversionresult_tables(retptr, this.__wbg_ptr);
|
|
1682
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1683
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1684
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1685
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
1686
|
+
return v1;
|
|
1687
|
+
} finally {
|
|
1688
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* @returns {WasmProcessingWarning[]}
|
|
1693
|
+
*/
|
|
1694
|
+
get warnings() {
|
|
1695
|
+
try {
|
|
1696
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1697
|
+
wasm.wasmconversionresult_warnings(retptr, this.__wbg_ptr);
|
|
1698
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1699
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1700
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1701
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
1702
|
+
return v1;
|
|
1703
|
+
} finally {
|
|
1704
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
if (Symbol.dispose) WasmConversionResult.prototype[Symbol.dispose] = WasmConversionResult.prototype.free;
|
|
1709
|
+
|
|
1710
|
+
export class WasmDocumentMetadata {
|
|
1711
|
+
static __wrap(ptr) {
|
|
1712
|
+
ptr = ptr >>> 0;
|
|
1713
|
+
const obj = Object.create(WasmDocumentMetadata.prototype);
|
|
1714
|
+
obj.__wbg_ptr = ptr;
|
|
1715
|
+
WasmDocumentMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1716
|
+
return obj;
|
|
1717
|
+
}
|
|
1718
|
+
__destroy_into_raw() {
|
|
1719
|
+
const ptr = this.__wbg_ptr;
|
|
1720
|
+
this.__wbg_ptr = 0;
|
|
1721
|
+
WasmDocumentMetadataFinalization.unregister(this);
|
|
1722
|
+
return ptr;
|
|
1723
|
+
}
|
|
1724
|
+
free() {
|
|
1725
|
+
const ptr = this.__destroy_into_raw();
|
|
1726
|
+
wasm.__wbg_wasmdocumentmetadata_free(ptr, 0);
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* @returns {string | undefined}
|
|
1730
|
+
*/
|
|
1731
|
+
get author() {
|
|
1732
|
+
try {
|
|
1733
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1734
|
+
wasm.wasmdocumentmetadata_author(retptr, this.__wbg_ptr);
|
|
1735
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1736
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1737
|
+
let v1;
|
|
1738
|
+
if (r0 !== 0) {
|
|
1739
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1740
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1741
|
+
}
|
|
1742
|
+
return v1;
|
|
1743
|
+
} finally {
|
|
1744
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
/**
|
|
1748
|
+
* @returns {string | undefined}
|
|
1749
|
+
*/
|
|
1750
|
+
get baseHref() {
|
|
1751
|
+
try {
|
|
1752
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1753
|
+
wasm.wasmdocumentmetadata_baseHref(retptr, this.__wbg_ptr);
|
|
1754
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1755
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1756
|
+
let v1;
|
|
1757
|
+
if (r0 !== 0) {
|
|
1758
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1759
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1760
|
+
}
|
|
1761
|
+
return v1;
|
|
1762
|
+
} finally {
|
|
1763
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
* @returns {string | undefined}
|
|
1768
|
+
*/
|
|
1769
|
+
get canonicalUrl() {
|
|
1770
|
+
try {
|
|
1771
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1772
|
+
wasm.wasmdocumentmetadata_canonicalUrl(retptr, this.__wbg_ptr);
|
|
1773
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1774
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1775
|
+
let v1;
|
|
1776
|
+
if (r0 !== 0) {
|
|
1777
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1778
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1779
|
+
}
|
|
1780
|
+
return v1;
|
|
1781
|
+
} finally {
|
|
1782
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* @returns {string | undefined}
|
|
1787
|
+
*/
|
|
1788
|
+
get description() {
|
|
1789
|
+
try {
|
|
1790
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1791
|
+
wasm.wasmdocumentmetadata_description(retptr, this.__wbg_ptr);
|
|
1792
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1793
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1794
|
+
let v1;
|
|
1795
|
+
if (r0 !== 0) {
|
|
1796
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1797
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1798
|
+
}
|
|
1799
|
+
return v1;
|
|
1800
|
+
} finally {
|
|
1801
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
* @returns {string[]}
|
|
1806
|
+
*/
|
|
1807
|
+
get keywords() {
|
|
1808
|
+
try {
|
|
1809
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1810
|
+
wasm.wasmdocumentmetadata_keywords(retptr, this.__wbg_ptr);
|
|
1811
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1812
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1813
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
1814
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
1815
|
+
return v1;
|
|
1816
|
+
} finally {
|
|
1817
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
/**
|
|
1821
|
+
* @returns {string | undefined}
|
|
1822
|
+
*/
|
|
1823
|
+
get language() {
|
|
1824
|
+
try {
|
|
1825
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1826
|
+
wasm.wasmdocumentmetadata_language(retptr, this.__wbg_ptr);
|
|
1827
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1828
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1829
|
+
let v1;
|
|
1830
|
+
if (r0 !== 0) {
|
|
1831
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1832
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1833
|
+
}
|
|
1834
|
+
return v1;
|
|
1835
|
+
} finally {
|
|
1836
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
/**
|
|
1840
|
+
* @returns {WasmConversionResult}
|
|
1841
|
+
*/
|
|
1842
|
+
get metaTags() {
|
|
1843
|
+
const ret = wasm.wasmdocumentmetadata_metaTags(this.__wbg_ptr);
|
|
1844
|
+
return takeObject(ret);
|
|
1845
|
+
}
|
|
1846
|
+
/**
|
|
1847
|
+
* @param {string[] | null} [keywords]
|
|
1848
|
+
* @param {any | null} [open_graph]
|
|
1849
|
+
* @param {any | null} [twitter_card]
|
|
1850
|
+
* @param {any | null} [meta_tags]
|
|
1851
|
+
* @param {string | null} [title]
|
|
1852
|
+
* @param {string | null} [description]
|
|
1853
|
+
* @param {string | null} [author]
|
|
1854
|
+
* @param {string | null} [canonical_url]
|
|
1855
|
+
* @param {string | null} [base_href]
|
|
1856
|
+
* @param {string | null} [language]
|
|
1857
|
+
* @param {WasmTextDirection | null} [text_direction]
|
|
1858
|
+
*/
|
|
1859
|
+
constructor(keywords, open_graph, twitter_card, meta_tags, title, description, author, canonical_url, base_href, language, text_direction) {
|
|
1860
|
+
var ptr0 = isLikeNone(keywords) ? 0 : passArrayJsValueToWasm0(keywords, wasm.__wbindgen_export);
|
|
1861
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1862
|
+
var ptr1 = isLikeNone(title) ? 0 : passStringToWasm0(title, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1863
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1864
|
+
var ptr2 = isLikeNone(description) ? 0 : passStringToWasm0(description, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1865
|
+
var len2 = WASM_VECTOR_LEN;
|
|
1866
|
+
var ptr3 = isLikeNone(author) ? 0 : passStringToWasm0(author, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1867
|
+
var len3 = WASM_VECTOR_LEN;
|
|
1868
|
+
var ptr4 = isLikeNone(canonical_url) ? 0 : passStringToWasm0(canonical_url, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1869
|
+
var len4 = WASM_VECTOR_LEN;
|
|
1870
|
+
var ptr5 = isLikeNone(base_href) ? 0 : passStringToWasm0(base_href, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1871
|
+
var len5 = WASM_VECTOR_LEN;
|
|
1872
|
+
var ptr6 = isLikeNone(language) ? 0 : passStringToWasm0(language, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1873
|
+
var len6 = WASM_VECTOR_LEN;
|
|
1874
|
+
const ret = wasm.wasmdocumentmetadata_new(ptr0, len0, isLikeNone(open_graph) ? 0 : addHeapObject(open_graph), isLikeNone(twitter_card) ? 0 : addHeapObject(twitter_card), isLikeNone(meta_tags) ? 0 : addHeapObject(meta_tags), ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, isLikeNone(text_direction) ? 3 : text_direction);
|
|
1875
|
+
this.__wbg_ptr = ret >>> 0;
|
|
1876
|
+
WasmDocumentMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
1877
|
+
return this;
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* @returns {WasmConversionResult}
|
|
1881
|
+
*/
|
|
1882
|
+
get openGraph() {
|
|
1883
|
+
const ret = wasm.wasmdocumentmetadata_openGraph(this.__wbg_ptr);
|
|
1884
|
+
return takeObject(ret);
|
|
1885
|
+
}
|
|
1886
|
+
/**
|
|
1887
|
+
* @param {string | null} [value]
|
|
1888
|
+
*/
|
|
1889
|
+
set author(value) {
|
|
1890
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1891
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1892
|
+
wasm.wasmdocumentmetadata_set_author(this.__wbg_ptr, ptr0, len0);
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* @param {string | null} [value]
|
|
1896
|
+
*/
|
|
1897
|
+
set baseHref(value) {
|
|
1898
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1899
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1900
|
+
wasm.wasmdocumentmetadata_set_baseHref(this.__wbg_ptr, ptr0, len0);
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* @param {string | null} [value]
|
|
1904
|
+
*/
|
|
1905
|
+
set canonicalUrl(value) {
|
|
1906
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1907
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1908
|
+
wasm.wasmdocumentmetadata_set_canonicalUrl(this.__wbg_ptr, ptr0, len0);
|
|
1909
|
+
}
|
|
1910
|
+
/**
|
|
1911
|
+
* @param {string | null} [value]
|
|
1912
|
+
*/
|
|
1913
|
+
set description(value) {
|
|
1914
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1915
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1916
|
+
wasm.wasmdocumentmetadata_set_description(this.__wbg_ptr, ptr0, len0);
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
* @param {string[]} value
|
|
1920
|
+
*/
|
|
1921
|
+
set keywords(value) {
|
|
1922
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
1923
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1924
|
+
wasm.wasmdocumentmetadata_set_keywords(this.__wbg_ptr, ptr0, len0);
|
|
1925
|
+
}
|
|
1926
|
+
/**
|
|
1927
|
+
* @param {string | null} [value]
|
|
1928
|
+
*/
|
|
1929
|
+
set language(value) {
|
|
1930
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1931
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1932
|
+
wasm.wasmdocumentmetadata_set_language(this.__wbg_ptr, ptr0, len0);
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
* @param {any} value
|
|
1936
|
+
*/
|
|
1937
|
+
set metaTags(value) {
|
|
1938
|
+
wasm.wasmdocumentmetadata_set_metaTags(this.__wbg_ptr, addHeapObject(value));
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* @param {any} value
|
|
1942
|
+
*/
|
|
1943
|
+
set openGraph(value) {
|
|
1944
|
+
wasm.wasmdocumentmetadata_set_openGraph(this.__wbg_ptr, addHeapObject(value));
|
|
1945
|
+
}
|
|
1946
|
+
/**
|
|
1947
|
+
* @param {WasmTextDirection | null} [value]
|
|
1948
|
+
*/
|
|
1949
|
+
set textDirection(value) {
|
|
1950
|
+
wasm.wasmdocumentmetadata_set_textDirection(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
1951
|
+
}
|
|
1952
|
+
/**
|
|
1953
|
+
* @param {string | null} [value]
|
|
1954
|
+
*/
|
|
1955
|
+
set title(value) {
|
|
1956
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
1957
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1958
|
+
wasm.wasmdocumentmetadata_set_title(this.__wbg_ptr, ptr0, len0);
|
|
1959
|
+
}
|
|
1960
|
+
/**
|
|
1961
|
+
* @param {any} value
|
|
1962
|
+
*/
|
|
1963
|
+
set twitterCard(value) {
|
|
1964
|
+
wasm.wasmdocumentmetadata_set_twitterCard(this.__wbg_ptr, addHeapObject(value));
|
|
1965
|
+
}
|
|
1966
|
+
/**
|
|
1967
|
+
* @returns {WasmTextDirection | undefined}
|
|
1968
|
+
*/
|
|
1969
|
+
get textDirection() {
|
|
1970
|
+
const ret = wasm.wasmdocumentmetadata_textDirection(this.__wbg_ptr);
|
|
1971
|
+
return ret === 3 ? undefined : ret;
|
|
1972
|
+
}
|
|
1973
|
+
/**
|
|
1974
|
+
* @returns {string | undefined}
|
|
1975
|
+
*/
|
|
1976
|
+
get title() {
|
|
1977
|
+
try {
|
|
1978
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1979
|
+
wasm.wasmdocumentmetadata_title(retptr, this.__wbg_ptr);
|
|
1980
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1981
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1982
|
+
let v1;
|
|
1983
|
+
if (r0 !== 0) {
|
|
1984
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
1985
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
1986
|
+
}
|
|
1987
|
+
return v1;
|
|
1988
|
+
} finally {
|
|
1989
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
/**
|
|
1993
|
+
* @returns {WasmConversionResult}
|
|
1994
|
+
*/
|
|
1995
|
+
get twitterCard() {
|
|
1996
|
+
const ret = wasm.wasmdocumentmetadata_twitterCard(this.__wbg_ptr);
|
|
1997
|
+
return takeObject(ret);
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
if (Symbol.dispose) WasmDocumentMetadata.prototype[Symbol.dispose] = WasmDocumentMetadata.prototype.free;
|
|
2001
|
+
|
|
2002
|
+
export class WasmDocumentNode {
|
|
2003
|
+
static __wrap(ptr) {
|
|
2004
|
+
ptr = ptr >>> 0;
|
|
2005
|
+
const obj = Object.create(WasmDocumentNode.prototype);
|
|
2006
|
+
obj.__wbg_ptr = ptr;
|
|
2007
|
+
WasmDocumentNodeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2008
|
+
return obj;
|
|
2009
|
+
}
|
|
2010
|
+
static __unwrap(jsValue) {
|
|
2011
|
+
if (!(jsValue instanceof WasmDocumentNode)) {
|
|
2012
|
+
return 0;
|
|
2013
|
+
}
|
|
2014
|
+
return jsValue.__destroy_into_raw();
|
|
2015
|
+
}
|
|
2016
|
+
__destroy_into_raw() {
|
|
2017
|
+
const ptr = this.__wbg_ptr;
|
|
2018
|
+
this.__wbg_ptr = 0;
|
|
2019
|
+
WasmDocumentNodeFinalization.unregister(this);
|
|
2020
|
+
return ptr;
|
|
2021
|
+
}
|
|
2022
|
+
free() {
|
|
2023
|
+
const ptr = this.__destroy_into_raw();
|
|
2024
|
+
wasm.__wbg_wasmdocumentnode_free(ptr, 0);
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* @returns {WasmTextAnnotation[]}
|
|
2028
|
+
*/
|
|
2029
|
+
get annotations() {
|
|
2030
|
+
try {
|
|
2031
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2032
|
+
wasm.wasmdocumentnode_annotations(retptr, this.__wbg_ptr);
|
|
2033
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2034
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2035
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2036
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
2037
|
+
return v1;
|
|
2038
|
+
} finally {
|
|
2039
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
/**
|
|
2043
|
+
* @returns {any | undefined}
|
|
2044
|
+
*/
|
|
2045
|
+
get attributes() {
|
|
2046
|
+
const ret = wasm.wasmdocumentnode_attributes(this.__wbg_ptr);
|
|
2047
|
+
return takeObject(ret);
|
|
2048
|
+
}
|
|
2049
|
+
/**
|
|
2050
|
+
* @returns {Uint32Array}
|
|
2051
|
+
*/
|
|
2052
|
+
get children() {
|
|
2053
|
+
try {
|
|
2054
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2055
|
+
wasm.wasmdocumentnode_children(retptr, this.__wbg_ptr);
|
|
2056
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2057
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2058
|
+
var v1 = getArrayU32FromWasm0(r0, r1).slice();
|
|
2059
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
2060
|
+
return v1;
|
|
2061
|
+
} finally {
|
|
2062
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* @returns {WasmNodeContent}
|
|
2067
|
+
*/
|
|
2068
|
+
get content() {
|
|
2069
|
+
const ret = wasm.wasmdocumentnode_content(this.__wbg_ptr);
|
|
2070
|
+
return ret;
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* @returns {string}
|
|
2074
|
+
*/
|
|
2075
|
+
get id() {
|
|
2076
|
+
let deferred1_0;
|
|
2077
|
+
let deferred1_1;
|
|
2078
|
+
try {
|
|
2079
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2080
|
+
wasm.wasmdocumentnode_id(retptr, this.__wbg_ptr);
|
|
2081
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2082
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2083
|
+
deferred1_0 = r0;
|
|
2084
|
+
deferred1_1 = r1;
|
|
2085
|
+
return getStringFromWasm0(r0, r1);
|
|
2086
|
+
} finally {
|
|
2087
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2088
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
/**
|
|
2092
|
+
* @param {string} id
|
|
2093
|
+
* @param {WasmNodeContent} content
|
|
2094
|
+
* @param {Uint32Array} children
|
|
2095
|
+
* @param {WasmTextAnnotation[]} annotations
|
|
2096
|
+
* @param {number | null} [parent]
|
|
2097
|
+
* @param {any | null} [attributes]
|
|
2098
|
+
*/
|
|
2099
|
+
constructor(id, content, children, annotations, parent, attributes) {
|
|
2100
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2101
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2102
|
+
const ptr1 = passArray32ToWasm0(children, wasm.__wbindgen_export);
|
|
2103
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2104
|
+
const ptr2 = passArrayJsValueToWasm0(annotations, wasm.__wbindgen_export);
|
|
2105
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2106
|
+
const ret = wasm.wasmdocumentnode_new(ptr0, len0, content, ptr1, len1, ptr2, len2, isLikeNone(parent) ? 0x100000001 : (parent) >>> 0, isLikeNone(attributes) ? 0 : addHeapObject(attributes));
|
|
2107
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2108
|
+
WasmDocumentNodeFinalization.register(this, this.__wbg_ptr, this);
|
|
2109
|
+
return this;
|
|
2110
|
+
}
|
|
2111
|
+
/**
|
|
2112
|
+
* @returns {number | undefined}
|
|
2113
|
+
*/
|
|
2114
|
+
get parent() {
|
|
2115
|
+
const ret = wasm.wasmdocumentnode_parent(this.__wbg_ptr);
|
|
2116
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
2117
|
+
}
|
|
2118
|
+
/**
|
|
2119
|
+
* @param {WasmTextAnnotation[]} value
|
|
2120
|
+
*/
|
|
2121
|
+
set annotations(value) {
|
|
2122
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2123
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2124
|
+
wasm.wasmdocumentnode_set_annotations(this.__wbg_ptr, ptr0, len0);
|
|
2125
|
+
}
|
|
2126
|
+
/**
|
|
2127
|
+
* @param {any | null} [value]
|
|
2128
|
+
*/
|
|
2129
|
+
set attributes(value) {
|
|
2130
|
+
wasm.wasmdocumentnode_set_attributes(this.__wbg_ptr, isLikeNone(value) ? 0 : addHeapObject(value));
|
|
2131
|
+
}
|
|
2132
|
+
/**
|
|
2133
|
+
* @param {Uint32Array} value
|
|
2134
|
+
*/
|
|
2135
|
+
set children(value) {
|
|
2136
|
+
const ptr0 = passArray32ToWasm0(value, wasm.__wbindgen_export);
|
|
2137
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2138
|
+
wasm.wasmdocumentnode_set_children(this.__wbg_ptr, ptr0, len0);
|
|
2139
|
+
}
|
|
2140
|
+
/**
|
|
2141
|
+
* @param {WasmNodeContent} value
|
|
2142
|
+
*/
|
|
2143
|
+
set content(value) {
|
|
2144
|
+
wasm.wasmdocumentnode_set_content(this.__wbg_ptr, value);
|
|
2145
|
+
}
|
|
2146
|
+
/**
|
|
2147
|
+
* @param {string} value
|
|
2148
|
+
*/
|
|
2149
|
+
set id(value) {
|
|
2150
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2151
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2152
|
+
wasm.wasmdocumentnode_set_id(this.__wbg_ptr, ptr0, len0);
|
|
2153
|
+
}
|
|
2154
|
+
/**
|
|
2155
|
+
* @param {number | null} [value]
|
|
2156
|
+
*/
|
|
2157
|
+
set parent(value) {
|
|
2158
|
+
wasm.wasmdocumentnode_set_parent(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
if (Symbol.dispose) WasmDocumentNode.prototype[Symbol.dispose] = WasmDocumentNode.prototype.free;
|
|
2162
|
+
|
|
2163
|
+
export class WasmDocumentStructure {
|
|
2164
|
+
static __wrap(ptr) {
|
|
2165
|
+
ptr = ptr >>> 0;
|
|
2166
|
+
const obj = Object.create(WasmDocumentStructure.prototype);
|
|
2167
|
+
obj.__wbg_ptr = ptr;
|
|
2168
|
+
WasmDocumentStructureFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2169
|
+
return obj;
|
|
2170
|
+
}
|
|
2171
|
+
__destroy_into_raw() {
|
|
2172
|
+
const ptr = this.__wbg_ptr;
|
|
2173
|
+
this.__wbg_ptr = 0;
|
|
2174
|
+
WasmDocumentStructureFinalization.unregister(this);
|
|
2175
|
+
return ptr;
|
|
2176
|
+
}
|
|
2177
|
+
free() {
|
|
2178
|
+
const ptr = this.__destroy_into_raw();
|
|
2179
|
+
wasm.__wbg_wasmdocumentstructure_free(ptr, 0);
|
|
2180
|
+
}
|
|
2181
|
+
/**
|
|
2182
|
+
* @param {WasmDocumentNode[]} nodes
|
|
2183
|
+
* @param {string | null} [source_format]
|
|
2184
|
+
*/
|
|
2185
|
+
constructor(nodes, source_format) {
|
|
2186
|
+
const ptr0 = passArrayJsValueToWasm0(nodes, wasm.__wbindgen_export);
|
|
2187
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2188
|
+
var ptr1 = isLikeNone(source_format) ? 0 : passStringToWasm0(source_format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2189
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2190
|
+
const ret = wasm.wasmdocumentstructure_new(ptr0, len0, ptr1, len1);
|
|
2191
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2192
|
+
WasmDocumentStructureFinalization.register(this, this.__wbg_ptr, this);
|
|
2193
|
+
return this;
|
|
2194
|
+
}
|
|
2195
|
+
/**
|
|
2196
|
+
* @returns {WasmDocumentNode[]}
|
|
2197
|
+
*/
|
|
2198
|
+
get nodes() {
|
|
2199
|
+
try {
|
|
2200
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2201
|
+
wasm.wasmdocumentstructure_nodes(retptr, this.__wbg_ptr);
|
|
2202
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2203
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2204
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2205
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
2206
|
+
return v1;
|
|
2207
|
+
} finally {
|
|
2208
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
/**
|
|
2212
|
+
* @param {WasmDocumentNode[]} value
|
|
2213
|
+
*/
|
|
2214
|
+
set nodes(value) {
|
|
2215
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2216
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2217
|
+
wasm.wasmdocumentstructure_set_nodes(this.__wbg_ptr, ptr0, len0);
|
|
2218
|
+
}
|
|
2219
|
+
/**
|
|
2220
|
+
* @param {string | null} [value]
|
|
2221
|
+
*/
|
|
2222
|
+
set sourceFormat(value) {
|
|
2223
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2224
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2225
|
+
wasm.wasmdocumentstructure_set_sourceFormat(this.__wbg_ptr, ptr0, len0);
|
|
2226
|
+
}
|
|
2227
|
+
/**
|
|
2228
|
+
* @returns {string | undefined}
|
|
2229
|
+
*/
|
|
2230
|
+
get sourceFormat() {
|
|
2231
|
+
try {
|
|
2232
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2233
|
+
wasm.wasmdocumentstructure_sourceFormat(retptr, this.__wbg_ptr);
|
|
2234
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2235
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2236
|
+
let v1;
|
|
2237
|
+
if (r0 !== 0) {
|
|
2238
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
2239
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
2240
|
+
}
|
|
2241
|
+
return v1;
|
|
2242
|
+
} finally {
|
|
2243
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
if (Symbol.dispose) WasmDocumentStructure.prototype[Symbol.dispose] = WasmDocumentStructure.prototype.free;
|
|
2248
|
+
|
|
2249
|
+
export class WasmGridCell {
|
|
2250
|
+
static __wrap(ptr) {
|
|
2251
|
+
ptr = ptr >>> 0;
|
|
2252
|
+
const obj = Object.create(WasmGridCell.prototype);
|
|
2253
|
+
obj.__wbg_ptr = ptr;
|
|
2254
|
+
WasmGridCellFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2255
|
+
return obj;
|
|
2256
|
+
}
|
|
2257
|
+
static __unwrap(jsValue) {
|
|
2258
|
+
if (!(jsValue instanceof WasmGridCell)) {
|
|
2259
|
+
return 0;
|
|
2260
|
+
}
|
|
2261
|
+
return jsValue.__destroy_into_raw();
|
|
2262
|
+
}
|
|
2263
|
+
__destroy_into_raw() {
|
|
2264
|
+
const ptr = this.__wbg_ptr;
|
|
2265
|
+
this.__wbg_ptr = 0;
|
|
2266
|
+
WasmGridCellFinalization.unregister(this);
|
|
2267
|
+
return ptr;
|
|
2268
|
+
}
|
|
2269
|
+
free() {
|
|
2270
|
+
const ptr = this.__destroy_into_raw();
|
|
2271
|
+
wasm.__wbg_wasmgridcell_free(ptr, 0);
|
|
2272
|
+
}
|
|
2273
|
+
/**
|
|
2274
|
+
* @returns {number}
|
|
2275
|
+
*/
|
|
2276
|
+
get col() {
|
|
2277
|
+
const ret = wasm.wasmgridcell_col(this.__wbg_ptr);
|
|
2278
|
+
return ret >>> 0;
|
|
2279
|
+
}
|
|
2280
|
+
/**
|
|
2281
|
+
* @returns {number}
|
|
2282
|
+
*/
|
|
2283
|
+
get colSpan() {
|
|
2284
|
+
const ret = wasm.wasmgridcell_colSpan(this.__wbg_ptr);
|
|
2285
|
+
return ret >>> 0;
|
|
2286
|
+
}
|
|
2287
|
+
/**
|
|
2288
|
+
* @returns {string}
|
|
2289
|
+
*/
|
|
2290
|
+
get content() {
|
|
2291
|
+
let deferred1_0;
|
|
2292
|
+
let deferred1_1;
|
|
2293
|
+
try {
|
|
2294
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2295
|
+
wasm.wasmgridcell_content(retptr, this.__wbg_ptr);
|
|
2296
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2297
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2298
|
+
deferred1_0 = r0;
|
|
2299
|
+
deferred1_1 = r1;
|
|
2300
|
+
return getStringFromWasm0(r0, r1);
|
|
2301
|
+
} finally {
|
|
2302
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2303
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
/**
|
|
2307
|
+
* @returns {boolean}
|
|
2308
|
+
*/
|
|
2309
|
+
get isHeader() {
|
|
2310
|
+
const ret = wasm.wasmgridcell_isHeader(this.__wbg_ptr);
|
|
2311
|
+
return ret !== 0;
|
|
2312
|
+
}
|
|
2313
|
+
/**
|
|
2314
|
+
* @param {string} content
|
|
2315
|
+
* @param {number} row
|
|
2316
|
+
* @param {number} col
|
|
2317
|
+
* @param {number} row_span
|
|
2318
|
+
* @param {number} col_span
|
|
2319
|
+
* @param {boolean} is_header
|
|
2320
|
+
*/
|
|
2321
|
+
constructor(content, row, col, row_span, col_span, is_header) {
|
|
2322
|
+
const ptr0 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2323
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2324
|
+
const ret = wasm.wasmgridcell_new(ptr0, len0, row, col, row_span, col_span, is_header);
|
|
2325
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2326
|
+
WasmGridCellFinalization.register(this, this.__wbg_ptr, this);
|
|
2327
|
+
return this;
|
|
2328
|
+
}
|
|
2329
|
+
/**
|
|
2330
|
+
* @returns {number}
|
|
2331
|
+
*/
|
|
2332
|
+
get row() {
|
|
2333
|
+
const ret = wasm.wasmgridcell_row(this.__wbg_ptr);
|
|
2334
|
+
return ret >>> 0;
|
|
2335
|
+
}
|
|
2336
|
+
/**
|
|
2337
|
+
* @returns {number}
|
|
2338
|
+
*/
|
|
2339
|
+
get rowSpan() {
|
|
2340
|
+
const ret = wasm.wasmgridcell_rowSpan(this.__wbg_ptr);
|
|
2341
|
+
return ret >>> 0;
|
|
2342
|
+
}
|
|
2343
|
+
/**
|
|
2344
|
+
* @param {number} value
|
|
2345
|
+
*/
|
|
2346
|
+
set col(value) {
|
|
2347
|
+
wasm.wasmgridcell_set_col(this.__wbg_ptr, value);
|
|
2348
|
+
}
|
|
2349
|
+
/**
|
|
2350
|
+
* @param {number} value
|
|
2351
|
+
*/
|
|
2352
|
+
set colSpan(value) {
|
|
2353
|
+
wasm.wasmgridcell_set_colSpan(this.__wbg_ptr, value);
|
|
2354
|
+
}
|
|
2355
|
+
/**
|
|
2356
|
+
* @param {string} value
|
|
2357
|
+
*/
|
|
2358
|
+
set content(value) {
|
|
2359
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2360
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2361
|
+
wasm.wasmgridcell_set_content(this.__wbg_ptr, ptr0, len0);
|
|
2362
|
+
}
|
|
2363
|
+
/**
|
|
2364
|
+
* @param {boolean} value
|
|
2365
|
+
*/
|
|
2366
|
+
set isHeader(value) {
|
|
2367
|
+
wasm.wasmgridcell_set_isHeader(this.__wbg_ptr, value);
|
|
2368
|
+
}
|
|
2369
|
+
/**
|
|
2370
|
+
* @param {number} value
|
|
2371
|
+
*/
|
|
2372
|
+
set row(value) {
|
|
2373
|
+
wasm.wasmgridcell_set_row(this.__wbg_ptr, value);
|
|
2374
|
+
}
|
|
2375
|
+
/**
|
|
2376
|
+
* @param {number} value
|
|
2377
|
+
*/
|
|
2378
|
+
set rowSpan(value) {
|
|
2379
|
+
wasm.wasmgridcell_set_rowSpan(this.__wbg_ptr, value);
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
if (Symbol.dispose) WasmGridCell.prototype[Symbol.dispose] = WasmGridCell.prototype.free;
|
|
2383
|
+
|
|
2384
|
+
export class WasmHeaderMetadata {
|
|
2385
|
+
static __wrap(ptr) {
|
|
2386
|
+
ptr = ptr >>> 0;
|
|
2387
|
+
const obj = Object.create(WasmHeaderMetadata.prototype);
|
|
2388
|
+
obj.__wbg_ptr = ptr;
|
|
2389
|
+
WasmHeaderMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2390
|
+
return obj;
|
|
2391
|
+
}
|
|
2392
|
+
static __unwrap(jsValue) {
|
|
2393
|
+
if (!(jsValue instanceof WasmHeaderMetadata)) {
|
|
2394
|
+
return 0;
|
|
2395
|
+
}
|
|
2396
|
+
return jsValue.__destroy_into_raw();
|
|
2397
|
+
}
|
|
2398
|
+
__destroy_into_raw() {
|
|
2399
|
+
const ptr = this.__wbg_ptr;
|
|
2400
|
+
this.__wbg_ptr = 0;
|
|
2401
|
+
WasmHeaderMetadataFinalization.unregister(this);
|
|
2402
|
+
return ptr;
|
|
2403
|
+
}
|
|
2404
|
+
free() {
|
|
2405
|
+
const ptr = this.__destroy_into_raw();
|
|
2406
|
+
wasm.__wbg_wasmheadermetadata_free(ptr, 0);
|
|
2407
|
+
}
|
|
2408
|
+
/**
|
|
2409
|
+
* @returns {number}
|
|
2410
|
+
*/
|
|
2411
|
+
get depth() {
|
|
2412
|
+
const ret = wasm.wasmheadermetadata_depth(this.__wbg_ptr);
|
|
2413
|
+
return ret >>> 0;
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* @returns {number}
|
|
2417
|
+
*/
|
|
2418
|
+
get htmlOffset() {
|
|
2419
|
+
const ret = wasm.wasmheadermetadata_htmlOffset(this.__wbg_ptr);
|
|
2420
|
+
return ret >>> 0;
|
|
2421
|
+
}
|
|
2422
|
+
/**
|
|
2423
|
+
* @returns {string | undefined}
|
|
2424
|
+
*/
|
|
2425
|
+
get id() {
|
|
2426
|
+
try {
|
|
2427
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2428
|
+
wasm.wasmheadermetadata_id(retptr, this.__wbg_ptr);
|
|
2429
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2430
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2431
|
+
let v1;
|
|
2432
|
+
if (r0 !== 0) {
|
|
2433
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
2434
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
2435
|
+
}
|
|
2436
|
+
return v1;
|
|
2437
|
+
} finally {
|
|
2438
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
/**
|
|
2442
|
+
* @returns {boolean}
|
|
2443
|
+
*/
|
|
2444
|
+
isValid() {
|
|
2445
|
+
const ret = wasm.wasmheadermetadata_isValid(this.__wbg_ptr);
|
|
2446
|
+
return ret !== 0;
|
|
2447
|
+
}
|
|
2448
|
+
/**
|
|
2449
|
+
* @returns {number}
|
|
2450
|
+
*/
|
|
2451
|
+
get level() {
|
|
2452
|
+
const ret = wasm.wasmheadermetadata_level(this.__wbg_ptr);
|
|
2453
|
+
return ret;
|
|
2454
|
+
}
|
|
2455
|
+
/**
|
|
2456
|
+
* @param {number} level
|
|
2457
|
+
* @param {string} text
|
|
2458
|
+
* @param {number} depth
|
|
2459
|
+
* @param {number} html_offset
|
|
2460
|
+
* @param {string | null} [id]
|
|
2461
|
+
*/
|
|
2462
|
+
constructor(level, text, depth, html_offset, id) {
|
|
2463
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2464
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2465
|
+
var ptr1 = isLikeNone(id) ? 0 : passStringToWasm0(id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2466
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2467
|
+
const ret = wasm.wasmheadermetadata_new(level, ptr0, len0, depth, html_offset, ptr1, len1);
|
|
2468
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2469
|
+
WasmHeaderMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2470
|
+
return this;
|
|
2471
|
+
}
|
|
2472
|
+
/**
|
|
2473
|
+
* @param {number} value
|
|
2474
|
+
*/
|
|
2475
|
+
set depth(value) {
|
|
2476
|
+
wasm.wasmheadermetadata_set_depth(this.__wbg_ptr, value);
|
|
2477
|
+
}
|
|
2478
|
+
/**
|
|
2479
|
+
* @param {number} value
|
|
2480
|
+
*/
|
|
2481
|
+
set htmlOffset(value) {
|
|
2482
|
+
wasm.wasmheadermetadata_set_htmlOffset(this.__wbg_ptr, value);
|
|
2483
|
+
}
|
|
2484
|
+
/**
|
|
2485
|
+
* @param {string | null} [value]
|
|
2486
|
+
*/
|
|
2487
|
+
set id(value) {
|
|
2488
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2489
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2490
|
+
wasm.wasmheadermetadata_set_id(this.__wbg_ptr, ptr0, len0);
|
|
2491
|
+
}
|
|
2492
|
+
/**
|
|
2493
|
+
* @param {number} value
|
|
2494
|
+
*/
|
|
2495
|
+
set level(value) {
|
|
2496
|
+
wasm.wasmheadermetadata_set_level(this.__wbg_ptr, value);
|
|
2497
|
+
}
|
|
2498
|
+
/**
|
|
2499
|
+
* @param {string} value
|
|
2500
|
+
*/
|
|
2501
|
+
set text(value) {
|
|
2502
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2503
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2504
|
+
wasm.wasmheadermetadata_set_text(this.__wbg_ptr, ptr0, len0);
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* @returns {string}
|
|
2508
|
+
*/
|
|
2509
|
+
get text() {
|
|
2510
|
+
let deferred1_0;
|
|
2511
|
+
let deferred1_1;
|
|
2512
|
+
try {
|
|
2513
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2514
|
+
wasm.wasmheadermetadata_text(retptr, this.__wbg_ptr);
|
|
2515
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2516
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2517
|
+
deferred1_0 = r0;
|
|
2518
|
+
deferred1_1 = r1;
|
|
2519
|
+
return getStringFromWasm0(r0, r1);
|
|
2520
|
+
} finally {
|
|
2521
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2522
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
}
|
|
2526
|
+
if (Symbol.dispose) WasmHeaderMetadata.prototype[Symbol.dispose] = WasmHeaderMetadata.prototype.free;
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
* @enum {0 | 1 | 2}
|
|
2530
|
+
*/
|
|
2531
|
+
export const WasmHeadingStyle = Object.freeze({
|
|
2532
|
+
Underlined: 0, "0": "Underlined",
|
|
2533
|
+
Atx: 1, "1": "Atx",
|
|
2534
|
+
AtxClosed: 2, "2": "AtxClosed",
|
|
2535
|
+
});
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* @enum {0 | 1 | 2 | 3}
|
|
2539
|
+
*/
|
|
2540
|
+
export const WasmHighlightStyle = Object.freeze({
|
|
2541
|
+
DoubleEqual: 0, "0": "DoubleEqual",
|
|
2542
|
+
Html: 1, "1": "Html",
|
|
2543
|
+
Bold: 2, "2": "Bold",
|
|
2544
|
+
None: 3, "3": "None",
|
|
2545
|
+
});
|
|
2546
|
+
|
|
2547
|
+
export class WasmHtmlMetadata {
|
|
2548
|
+
static __wrap(ptr) {
|
|
2549
|
+
ptr = ptr >>> 0;
|
|
2550
|
+
const obj = Object.create(WasmHtmlMetadata.prototype);
|
|
2551
|
+
obj.__wbg_ptr = ptr;
|
|
2552
|
+
WasmHtmlMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2553
|
+
return obj;
|
|
2554
|
+
}
|
|
2555
|
+
__destroy_into_raw() {
|
|
2556
|
+
const ptr = this.__wbg_ptr;
|
|
2557
|
+
this.__wbg_ptr = 0;
|
|
2558
|
+
WasmHtmlMetadataFinalization.unregister(this);
|
|
2559
|
+
return ptr;
|
|
2560
|
+
}
|
|
2561
|
+
free() {
|
|
2562
|
+
const ptr = this.__destroy_into_raw();
|
|
2563
|
+
wasm.__wbg_wasmhtmlmetadata_free(ptr, 0);
|
|
2564
|
+
}
|
|
2565
|
+
/**
|
|
2566
|
+
* @returns {WasmDocumentMetadata}
|
|
2567
|
+
*/
|
|
2568
|
+
get document() {
|
|
2569
|
+
const ret = wasm.wasmhtmlmetadata_document(this.__wbg_ptr);
|
|
2570
|
+
return WasmDocumentMetadata.__wrap(ret);
|
|
2571
|
+
}
|
|
2572
|
+
/**
|
|
2573
|
+
* @returns {WasmHeaderMetadata[]}
|
|
2574
|
+
*/
|
|
2575
|
+
get headers() {
|
|
2576
|
+
try {
|
|
2577
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2578
|
+
wasm.wasmhtmlmetadata_headers(retptr, this.__wbg_ptr);
|
|
2579
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2580
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2581
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2582
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
2583
|
+
return v1;
|
|
2584
|
+
} finally {
|
|
2585
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
/**
|
|
2589
|
+
* @returns {WasmImageMetadata[]}
|
|
2590
|
+
*/
|
|
2591
|
+
get images() {
|
|
2592
|
+
try {
|
|
2593
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2594
|
+
wasm.wasmhtmlmetadata_images(retptr, this.__wbg_ptr);
|
|
2595
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2596
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2597
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2598
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
2599
|
+
return v1;
|
|
2600
|
+
} finally {
|
|
2601
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
/**
|
|
2605
|
+
* @returns {WasmLinkMetadata[]}
|
|
2606
|
+
*/
|
|
2607
|
+
get links() {
|
|
2608
|
+
try {
|
|
2609
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2610
|
+
wasm.wasmhtmlmetadata_links(retptr, this.__wbg_ptr);
|
|
2611
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2612
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2613
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2614
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
2615
|
+
return v1;
|
|
2616
|
+
} finally {
|
|
2617
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
/**
|
|
2621
|
+
* @param {WasmDocumentMetadata | null} [document]
|
|
2622
|
+
* @param {WasmHeaderMetadata[] | null} [headers]
|
|
2623
|
+
* @param {WasmLinkMetadata[] | null} [links]
|
|
2624
|
+
* @param {WasmImageMetadata[] | null} [images]
|
|
2625
|
+
* @param {WasmStructuredData[] | null} [structured_data]
|
|
2626
|
+
*/
|
|
2627
|
+
constructor(document, headers, links, images, structured_data) {
|
|
2628
|
+
let ptr0 = 0;
|
|
2629
|
+
if (!isLikeNone(document)) {
|
|
2630
|
+
_assertClass(document, WasmDocumentMetadata);
|
|
2631
|
+
ptr0 = document.__destroy_into_raw();
|
|
2632
|
+
}
|
|
2633
|
+
var ptr1 = isLikeNone(headers) ? 0 : passArrayJsValueToWasm0(headers, wasm.__wbindgen_export);
|
|
2634
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2635
|
+
var ptr2 = isLikeNone(links) ? 0 : passArrayJsValueToWasm0(links, wasm.__wbindgen_export);
|
|
2636
|
+
var len2 = WASM_VECTOR_LEN;
|
|
2637
|
+
var ptr3 = isLikeNone(images) ? 0 : passArrayJsValueToWasm0(images, wasm.__wbindgen_export);
|
|
2638
|
+
var len3 = WASM_VECTOR_LEN;
|
|
2639
|
+
var ptr4 = isLikeNone(structured_data) ? 0 : passArrayJsValueToWasm0(structured_data, wasm.__wbindgen_export);
|
|
2640
|
+
var len4 = WASM_VECTOR_LEN;
|
|
2641
|
+
const ret = wasm.wasmhtmlmetadata_new(ptr0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
2642
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2643
|
+
WasmHtmlMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2644
|
+
return this;
|
|
2645
|
+
}
|
|
2646
|
+
/**
|
|
2647
|
+
* @param {WasmDocumentMetadata} value
|
|
2648
|
+
*/
|
|
2649
|
+
set document(value) {
|
|
2650
|
+
_assertClass(value, WasmDocumentMetadata);
|
|
2651
|
+
var ptr0 = value.__destroy_into_raw();
|
|
2652
|
+
wasm.wasmhtmlmetadata_set_document(this.__wbg_ptr, ptr0);
|
|
2653
|
+
}
|
|
2654
|
+
/**
|
|
2655
|
+
* @param {WasmHeaderMetadata[]} value
|
|
2656
|
+
*/
|
|
2657
|
+
set headers(value) {
|
|
2658
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2659
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2660
|
+
wasm.wasmhtmlmetadata_set_headers(this.__wbg_ptr, ptr0, len0);
|
|
2661
|
+
}
|
|
2662
|
+
/**
|
|
2663
|
+
* @param {WasmImageMetadata[]} value
|
|
2664
|
+
*/
|
|
2665
|
+
set images(value) {
|
|
2666
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2667
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2668
|
+
wasm.wasmhtmlmetadata_set_images(this.__wbg_ptr, ptr0, len0);
|
|
2669
|
+
}
|
|
2670
|
+
/**
|
|
2671
|
+
* @param {WasmLinkMetadata[]} value
|
|
2672
|
+
*/
|
|
2673
|
+
set links(value) {
|
|
2674
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2675
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2676
|
+
wasm.wasmhtmlmetadata_set_links(this.__wbg_ptr, ptr0, len0);
|
|
2677
|
+
}
|
|
2678
|
+
/**
|
|
2679
|
+
* @param {WasmStructuredData[]} value
|
|
2680
|
+
*/
|
|
2681
|
+
set structuredData(value) {
|
|
2682
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
2683
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2684
|
+
wasm.wasmhtmlmetadata_set_structuredData(this.__wbg_ptr, ptr0, len0);
|
|
2685
|
+
}
|
|
2686
|
+
/**
|
|
2687
|
+
* @returns {WasmStructuredData[]}
|
|
2688
|
+
*/
|
|
2689
|
+
get structuredData() {
|
|
2690
|
+
try {
|
|
2691
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2692
|
+
wasm.wasmhtmlmetadata_structuredData(retptr, this.__wbg_ptr);
|
|
2693
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2694
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2695
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2696
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
2697
|
+
return v1;
|
|
2698
|
+
} finally {
|
|
2699
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
if (Symbol.dispose) WasmHtmlMetadata.prototype[Symbol.dispose] = WasmHtmlMetadata.prototype.free;
|
|
2704
|
+
|
|
2705
|
+
export class WasmImageMetadata {
|
|
2706
|
+
static __wrap(ptr) {
|
|
2707
|
+
ptr = ptr >>> 0;
|
|
2708
|
+
const obj = Object.create(WasmImageMetadata.prototype);
|
|
2709
|
+
obj.__wbg_ptr = ptr;
|
|
2710
|
+
WasmImageMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2711
|
+
return obj;
|
|
2712
|
+
}
|
|
2713
|
+
static __unwrap(jsValue) {
|
|
2714
|
+
if (!(jsValue instanceof WasmImageMetadata)) {
|
|
2715
|
+
return 0;
|
|
2716
|
+
}
|
|
2717
|
+
return jsValue.__destroy_into_raw();
|
|
2718
|
+
}
|
|
2719
|
+
__destroy_into_raw() {
|
|
2720
|
+
const ptr = this.__wbg_ptr;
|
|
2721
|
+
this.__wbg_ptr = 0;
|
|
2722
|
+
WasmImageMetadataFinalization.unregister(this);
|
|
2723
|
+
return ptr;
|
|
2724
|
+
}
|
|
2725
|
+
free() {
|
|
2726
|
+
const ptr = this.__destroy_into_raw();
|
|
2727
|
+
wasm.__wbg_wasmimagemetadata_free(ptr, 0);
|
|
2728
|
+
}
|
|
2729
|
+
/**
|
|
2730
|
+
* @returns {string | undefined}
|
|
2731
|
+
*/
|
|
2732
|
+
get alt() {
|
|
2733
|
+
try {
|
|
2734
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2735
|
+
wasm.wasmimagemetadata_alt(retptr, this.__wbg_ptr);
|
|
2736
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2737
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2738
|
+
let v1;
|
|
2739
|
+
if (r0 !== 0) {
|
|
2740
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
2741
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
2742
|
+
}
|
|
2743
|
+
return v1;
|
|
2744
|
+
} finally {
|
|
2745
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
/**
|
|
2749
|
+
* @returns {WasmConversionResult}
|
|
2750
|
+
*/
|
|
2751
|
+
get attributes() {
|
|
2752
|
+
const ret = wasm.wasmimagemetadata_attributes(this.__wbg_ptr);
|
|
2753
|
+
return takeObject(ret);
|
|
2754
|
+
}
|
|
2755
|
+
/**
|
|
2756
|
+
* @returns {string | undefined}
|
|
2757
|
+
*/
|
|
2758
|
+
get dimensions() {
|
|
2759
|
+
try {
|
|
2760
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2761
|
+
wasm.wasmimagemetadata_dimensions(retptr, this.__wbg_ptr);
|
|
2762
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2763
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2764
|
+
let v1;
|
|
2765
|
+
if (r0 !== 0) {
|
|
2766
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
2767
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
2768
|
+
}
|
|
2769
|
+
return v1;
|
|
2770
|
+
} finally {
|
|
2771
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
/**
|
|
2775
|
+
* @returns {WasmImageType}
|
|
2776
|
+
*/
|
|
2777
|
+
get imageType() {
|
|
2778
|
+
const ret = wasm.wasmimagemetadata_imageType(this.__wbg_ptr);
|
|
2779
|
+
return ret;
|
|
2780
|
+
}
|
|
2781
|
+
/**
|
|
2782
|
+
* @param {string} src
|
|
2783
|
+
* @param {WasmImageType} image_type
|
|
2784
|
+
* @param {any} attributes
|
|
2785
|
+
* @param {string | null} [alt]
|
|
2786
|
+
* @param {string | null} [title]
|
|
2787
|
+
* @param {string | null} [dimensions]
|
|
2788
|
+
*/
|
|
2789
|
+
constructor(src, image_type, attributes, alt, title, dimensions) {
|
|
2790
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2791
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2792
|
+
var ptr1 = isLikeNone(alt) ? 0 : passStringToWasm0(alt, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2793
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2794
|
+
var ptr2 = isLikeNone(title) ? 0 : passStringToWasm0(title, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2795
|
+
var len2 = WASM_VECTOR_LEN;
|
|
2796
|
+
var ptr3 = isLikeNone(dimensions) ? 0 : passStringToWasm0(dimensions, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2797
|
+
var len3 = WASM_VECTOR_LEN;
|
|
2798
|
+
const ret = wasm.wasmimagemetadata_new(ptr0, len0, image_type, addHeapObject(attributes), ptr1, len1, ptr2, len2, ptr3, len3);
|
|
2799
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2800
|
+
WasmImageMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2801
|
+
return this;
|
|
2802
|
+
}
|
|
2803
|
+
/**
|
|
2804
|
+
* @param {string | null} [value]
|
|
2805
|
+
*/
|
|
2806
|
+
set alt(value) {
|
|
2807
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2808
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2809
|
+
wasm.wasmimagemetadata_set_alt(this.__wbg_ptr, ptr0, len0);
|
|
2810
|
+
}
|
|
2811
|
+
/**
|
|
2812
|
+
* @param {any} value
|
|
2813
|
+
*/
|
|
2814
|
+
set attributes(value) {
|
|
2815
|
+
wasm.wasmimagemetadata_set_attributes(this.__wbg_ptr, addHeapObject(value));
|
|
2816
|
+
}
|
|
2817
|
+
/**
|
|
2818
|
+
* @param {string | null} [value]
|
|
2819
|
+
*/
|
|
2820
|
+
set dimensions(value) {
|
|
2821
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2822
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2823
|
+
wasm.wasmimagemetadata_set_dimensions(this.__wbg_ptr, ptr0, len0);
|
|
2824
|
+
}
|
|
2825
|
+
/**
|
|
2826
|
+
* @param {WasmImageType} value
|
|
2827
|
+
*/
|
|
2828
|
+
set imageType(value) {
|
|
2829
|
+
wasm.wasmimagemetadata_set_imageType(this.__wbg_ptr, value);
|
|
2830
|
+
}
|
|
2831
|
+
/**
|
|
2832
|
+
* @param {string} value
|
|
2833
|
+
*/
|
|
2834
|
+
set src(value) {
|
|
2835
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2836
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2837
|
+
wasm.wasmimagemetadata_set_src(this.__wbg_ptr, ptr0, len0);
|
|
2838
|
+
}
|
|
2839
|
+
/**
|
|
2840
|
+
* @param {string | null} [value]
|
|
2841
|
+
*/
|
|
2842
|
+
set title(value) {
|
|
2843
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2844
|
+
var len0 = WASM_VECTOR_LEN;
|
|
2845
|
+
wasm.wasmimagemetadata_set_title(this.__wbg_ptr, ptr0, len0);
|
|
2846
|
+
}
|
|
2847
|
+
/**
|
|
2848
|
+
* @returns {string}
|
|
2849
|
+
*/
|
|
2850
|
+
get src() {
|
|
2851
|
+
let deferred1_0;
|
|
2852
|
+
let deferred1_1;
|
|
2853
|
+
try {
|
|
2854
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2855
|
+
wasm.wasmimagemetadata_src(retptr, this.__wbg_ptr);
|
|
2856
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2857
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2858
|
+
deferred1_0 = r0;
|
|
2859
|
+
deferred1_1 = r1;
|
|
2860
|
+
return getStringFromWasm0(r0, r1);
|
|
2861
|
+
} finally {
|
|
2862
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2863
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
/**
|
|
2867
|
+
* @returns {string | undefined}
|
|
2868
|
+
*/
|
|
2869
|
+
get title() {
|
|
2870
|
+
try {
|
|
2871
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2872
|
+
wasm.wasmimagemetadata_title(retptr, this.__wbg_ptr);
|
|
2873
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2874
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2875
|
+
let v1;
|
|
2876
|
+
if (r0 !== 0) {
|
|
2877
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
2878
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
2879
|
+
}
|
|
2880
|
+
return v1;
|
|
2881
|
+
} finally {
|
|
2882
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
if (Symbol.dispose) WasmImageMetadata.prototype[Symbol.dispose] = WasmImageMetadata.prototype.free;
|
|
2887
|
+
|
|
2888
|
+
/**
|
|
2889
|
+
* @enum {0 | 1 | 2 | 3}
|
|
2890
|
+
*/
|
|
2891
|
+
export const WasmImageType = Object.freeze({
|
|
2892
|
+
DataUri: 0, "0": "DataUri",
|
|
2893
|
+
InlineSvg: 1, "1": "InlineSvg",
|
|
2894
|
+
External: 2, "2": "External",
|
|
2895
|
+
Relative: 3, "3": "Relative",
|
|
2896
|
+
});
|
|
2897
|
+
|
|
2898
|
+
export class WasmLinkMetadata {
|
|
2899
|
+
static __wrap(ptr) {
|
|
2900
|
+
ptr = ptr >>> 0;
|
|
2901
|
+
const obj = Object.create(WasmLinkMetadata.prototype);
|
|
2902
|
+
obj.__wbg_ptr = ptr;
|
|
2903
|
+
WasmLinkMetadataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
2904
|
+
return obj;
|
|
2905
|
+
}
|
|
2906
|
+
static __unwrap(jsValue) {
|
|
2907
|
+
if (!(jsValue instanceof WasmLinkMetadata)) {
|
|
2908
|
+
return 0;
|
|
2909
|
+
}
|
|
2910
|
+
return jsValue.__destroy_into_raw();
|
|
2911
|
+
}
|
|
2912
|
+
__destroy_into_raw() {
|
|
2913
|
+
const ptr = this.__wbg_ptr;
|
|
2914
|
+
this.__wbg_ptr = 0;
|
|
2915
|
+
WasmLinkMetadataFinalization.unregister(this);
|
|
2916
|
+
return ptr;
|
|
2917
|
+
}
|
|
2918
|
+
free() {
|
|
2919
|
+
const ptr = this.__destroy_into_raw();
|
|
2920
|
+
wasm.__wbg_wasmlinkmetadata_free(ptr, 0);
|
|
2921
|
+
}
|
|
2922
|
+
/**
|
|
2923
|
+
* @returns {WasmConversionResult}
|
|
2924
|
+
*/
|
|
2925
|
+
get attributes() {
|
|
2926
|
+
const ret = wasm.wasmlinkmetadata_attributes(this.__wbg_ptr);
|
|
2927
|
+
return takeObject(ret);
|
|
2928
|
+
}
|
|
2929
|
+
/**
|
|
2930
|
+
* @param {string} href
|
|
2931
|
+
* @returns {WasmLinkType}
|
|
2932
|
+
*/
|
|
2933
|
+
static classifyLink(href) {
|
|
2934
|
+
const ptr0 = passStringToWasm0(href, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2935
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2936
|
+
const ret = wasm.wasmlinkmetadata_classifyLink(ptr0, len0);
|
|
2937
|
+
return ret;
|
|
2938
|
+
}
|
|
2939
|
+
/**
|
|
2940
|
+
* @returns {string}
|
|
2941
|
+
*/
|
|
2942
|
+
get href() {
|
|
2943
|
+
let deferred1_0;
|
|
2944
|
+
let deferred1_1;
|
|
2945
|
+
try {
|
|
2946
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2947
|
+
wasm.wasmlinkmetadata_href(retptr, this.__wbg_ptr);
|
|
2948
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2949
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2950
|
+
deferred1_0 = r0;
|
|
2951
|
+
deferred1_1 = r1;
|
|
2952
|
+
return getStringFromWasm0(r0, r1);
|
|
2953
|
+
} finally {
|
|
2954
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
2955
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
/**
|
|
2959
|
+
* @returns {WasmLinkType}
|
|
2960
|
+
*/
|
|
2961
|
+
get linkType() {
|
|
2962
|
+
const ret = wasm.wasmlinkmetadata_linkType(this.__wbg_ptr);
|
|
2963
|
+
return ret;
|
|
2964
|
+
}
|
|
2965
|
+
/**
|
|
2966
|
+
* @param {string} href
|
|
2967
|
+
* @param {string} text
|
|
2968
|
+
* @param {WasmLinkType} link_type
|
|
2969
|
+
* @param {string[]} rel
|
|
2970
|
+
* @param {any} attributes
|
|
2971
|
+
* @param {string | null} [title]
|
|
2972
|
+
*/
|
|
2973
|
+
constructor(href, text, link_type, rel, attributes, title) {
|
|
2974
|
+
const ptr0 = passStringToWasm0(href, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2975
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2976
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2977
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2978
|
+
const ptr2 = passArrayJsValueToWasm0(rel, wasm.__wbindgen_export);
|
|
2979
|
+
const len2 = WASM_VECTOR_LEN;
|
|
2980
|
+
var ptr3 = isLikeNone(title) ? 0 : passStringToWasm0(title, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
2981
|
+
var len3 = WASM_VECTOR_LEN;
|
|
2982
|
+
const ret = wasm.wasmlinkmetadata_new(ptr0, len0, ptr1, len1, link_type, ptr2, len2, addHeapObject(attributes), ptr3, len3);
|
|
2983
|
+
this.__wbg_ptr = ret >>> 0;
|
|
2984
|
+
WasmLinkMetadataFinalization.register(this, this.__wbg_ptr, this);
|
|
2985
|
+
return this;
|
|
2986
|
+
}
|
|
2987
|
+
/**
|
|
2988
|
+
* @returns {string[]}
|
|
2989
|
+
*/
|
|
2990
|
+
get rel() {
|
|
2991
|
+
try {
|
|
2992
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
2993
|
+
wasm.wasmlinkmetadata_rel(retptr, this.__wbg_ptr);
|
|
2994
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
2995
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
2996
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
2997
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
2998
|
+
return v1;
|
|
2999
|
+
} finally {
|
|
3000
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
/**
|
|
3004
|
+
* @param {any} value
|
|
3005
|
+
*/
|
|
3006
|
+
set attributes(value) {
|
|
3007
|
+
wasm.wasmlinkmetadata_set_attributes(this.__wbg_ptr, addHeapObject(value));
|
|
3008
|
+
}
|
|
3009
|
+
/**
|
|
3010
|
+
* @param {string} value
|
|
3011
|
+
*/
|
|
3012
|
+
set href(value) {
|
|
3013
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3014
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3015
|
+
wasm.wasmlinkmetadata_set_href(this.__wbg_ptr, ptr0, len0);
|
|
3016
|
+
}
|
|
3017
|
+
/**
|
|
3018
|
+
* @param {WasmLinkType} value
|
|
3019
|
+
*/
|
|
3020
|
+
set linkType(value) {
|
|
3021
|
+
wasm.wasmlinkmetadata_set_linkType(this.__wbg_ptr, value);
|
|
3022
|
+
}
|
|
3023
|
+
/**
|
|
3024
|
+
* @param {string[]} value
|
|
3025
|
+
*/
|
|
3026
|
+
set rel(value) {
|
|
3027
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
3028
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3029
|
+
wasm.wasmlinkmetadata_set_rel(this.__wbg_ptr, ptr0, len0);
|
|
3030
|
+
}
|
|
3031
|
+
/**
|
|
3032
|
+
* @param {string} value
|
|
3033
|
+
*/
|
|
3034
|
+
set text(value) {
|
|
3035
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3036
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3037
|
+
wasm.wasmlinkmetadata_set_text(this.__wbg_ptr, ptr0, len0);
|
|
3038
|
+
}
|
|
3039
|
+
/**
|
|
3040
|
+
* @param {string | null} [value]
|
|
3041
|
+
*/
|
|
3042
|
+
set title(value) {
|
|
3043
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3044
|
+
var len0 = WASM_VECTOR_LEN;
|
|
3045
|
+
wasm.wasmlinkmetadata_set_title(this.__wbg_ptr, ptr0, len0);
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3048
|
+
* @returns {string}
|
|
3049
|
+
*/
|
|
3050
|
+
get text() {
|
|
3051
|
+
let deferred1_0;
|
|
3052
|
+
let deferred1_1;
|
|
3053
|
+
try {
|
|
3054
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3055
|
+
wasm.wasmlinkmetadata_text(retptr, this.__wbg_ptr);
|
|
3056
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3057
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3058
|
+
deferred1_0 = r0;
|
|
3059
|
+
deferred1_1 = r1;
|
|
3060
|
+
return getStringFromWasm0(r0, r1);
|
|
3061
|
+
} finally {
|
|
3062
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3063
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
/**
|
|
3067
|
+
* @returns {string | undefined}
|
|
3068
|
+
*/
|
|
3069
|
+
get title() {
|
|
3070
|
+
try {
|
|
3071
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3072
|
+
wasm.wasmlinkmetadata_title(retptr, this.__wbg_ptr);
|
|
3073
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3074
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3075
|
+
let v1;
|
|
3076
|
+
if (r0 !== 0) {
|
|
3077
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
3078
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
3079
|
+
}
|
|
3080
|
+
return v1;
|
|
3081
|
+
} finally {
|
|
3082
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
if (Symbol.dispose) WasmLinkMetadata.prototype[Symbol.dispose] = WasmLinkMetadata.prototype.free;
|
|
3087
|
+
|
|
3088
|
+
/**
|
|
3089
|
+
* @enum {0 | 1}
|
|
3090
|
+
*/
|
|
3091
|
+
export const WasmLinkStyle = Object.freeze({
|
|
3092
|
+
Inline: 0, "0": "Inline",
|
|
3093
|
+
Reference: 1, "1": "Reference",
|
|
3094
|
+
});
|
|
3095
|
+
|
|
3096
|
+
/**
|
|
3097
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5}
|
|
3098
|
+
*/
|
|
3099
|
+
export const WasmLinkType = Object.freeze({
|
|
3100
|
+
Anchor: 0, "0": "Anchor",
|
|
3101
|
+
Internal: 1, "1": "Internal",
|
|
3102
|
+
External: 2, "2": "External",
|
|
3103
|
+
Email: 3, "3": "Email",
|
|
3104
|
+
Phone: 4, "4": "Phone",
|
|
3105
|
+
Other: 5, "5": "Other",
|
|
3106
|
+
});
|
|
3107
|
+
|
|
3108
|
+
/**
|
|
3109
|
+
* @enum {0 | 1}
|
|
3110
|
+
*/
|
|
3111
|
+
export const WasmListIndentType = Object.freeze({
|
|
3112
|
+
Spaces: 0, "0": "Spaces",
|
|
3113
|
+
Tabs: 1, "1": "Tabs",
|
|
3114
|
+
});
|
|
3115
|
+
|
|
3116
|
+
export class WasmMetadataConfig {
|
|
3117
|
+
static __wrap(ptr) {
|
|
3118
|
+
ptr = ptr >>> 0;
|
|
3119
|
+
const obj = Object.create(WasmMetadataConfig.prototype);
|
|
3120
|
+
obj.__wbg_ptr = ptr;
|
|
3121
|
+
WasmMetadataConfigFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3122
|
+
return obj;
|
|
3123
|
+
}
|
|
3124
|
+
__destroy_into_raw() {
|
|
3125
|
+
const ptr = this.__wbg_ptr;
|
|
3126
|
+
this.__wbg_ptr = 0;
|
|
3127
|
+
WasmMetadataConfigFinalization.unregister(this);
|
|
3128
|
+
return ptr;
|
|
3129
|
+
}
|
|
3130
|
+
free() {
|
|
3131
|
+
const ptr = this.__destroy_into_raw();
|
|
3132
|
+
wasm.__wbg_wasmmetadataconfig_free(ptr, 0);
|
|
3133
|
+
}
|
|
3134
|
+
/**
|
|
3135
|
+
* @returns {boolean}
|
|
3136
|
+
*/
|
|
3137
|
+
anyEnabled() {
|
|
3138
|
+
const ret = wasm.wasmmetadataconfig_anyEnabled(this.__wbg_ptr);
|
|
3139
|
+
return ret !== 0;
|
|
3140
|
+
}
|
|
3141
|
+
/**
|
|
3142
|
+
* @returns {WasmMetadataConfig}
|
|
3143
|
+
*/
|
|
3144
|
+
static default() {
|
|
3145
|
+
const ret = wasm.wasmmetadataconfig_default();
|
|
3146
|
+
return WasmMetadataConfig.__wrap(ret);
|
|
3147
|
+
}
|
|
3148
|
+
/**
|
|
3149
|
+
* @returns {boolean}
|
|
3150
|
+
*/
|
|
3151
|
+
get extractDocument() {
|
|
3152
|
+
const ret = wasm.wasmmetadataconfig_extractDocument(this.__wbg_ptr);
|
|
3153
|
+
return ret !== 0;
|
|
3154
|
+
}
|
|
3155
|
+
/**
|
|
3156
|
+
* @returns {boolean}
|
|
3157
|
+
*/
|
|
3158
|
+
get extractHeaders() {
|
|
3159
|
+
const ret = wasm.wasmmetadataconfig_extractHeaders(this.__wbg_ptr);
|
|
3160
|
+
return ret !== 0;
|
|
3161
|
+
}
|
|
3162
|
+
/**
|
|
3163
|
+
* @returns {boolean}
|
|
3164
|
+
*/
|
|
3165
|
+
get extractImages() {
|
|
3166
|
+
const ret = wasm.wasmmetadataconfig_extractImages(this.__wbg_ptr);
|
|
3167
|
+
return ret !== 0;
|
|
3168
|
+
}
|
|
3169
|
+
/**
|
|
3170
|
+
* @returns {boolean}
|
|
3171
|
+
*/
|
|
3172
|
+
get extractLinks() {
|
|
3173
|
+
const ret = wasm.wasmmetadataconfig_extractLinks(this.__wbg_ptr);
|
|
3174
|
+
return ret !== 0;
|
|
3175
|
+
}
|
|
3176
|
+
/**
|
|
3177
|
+
* @returns {boolean}
|
|
3178
|
+
*/
|
|
3179
|
+
get extractStructuredData() {
|
|
3180
|
+
const ret = wasm.wasmmetadataconfig_extractStructuredData(this.__wbg_ptr);
|
|
3181
|
+
return ret !== 0;
|
|
3182
|
+
}
|
|
3183
|
+
/**
|
|
3184
|
+
* @returns {number}
|
|
3185
|
+
*/
|
|
3186
|
+
get maxStructuredDataSize() {
|
|
3187
|
+
const ret = wasm.wasmmetadataconfig_maxStructuredDataSize(this.__wbg_ptr);
|
|
3188
|
+
return ret >>> 0;
|
|
3189
|
+
}
|
|
3190
|
+
/**
|
|
3191
|
+
* @param {boolean | null} [extract_document]
|
|
3192
|
+
* @param {boolean | null} [extract_headers]
|
|
3193
|
+
* @param {boolean | null} [extract_links]
|
|
3194
|
+
* @param {boolean | null} [extract_images]
|
|
3195
|
+
* @param {boolean | null} [extract_structured_data]
|
|
3196
|
+
* @param {number | null} [max_structured_data_size]
|
|
3197
|
+
*/
|
|
3198
|
+
constructor(extract_document, extract_headers, extract_links, extract_images, extract_structured_data, max_structured_data_size) {
|
|
3199
|
+
const ret = wasm.wasmmetadataconfig_new(isLikeNone(extract_document) ? 0xFFFFFF : extract_document ? 1 : 0, isLikeNone(extract_headers) ? 0xFFFFFF : extract_headers ? 1 : 0, isLikeNone(extract_links) ? 0xFFFFFF : extract_links ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, isLikeNone(extract_structured_data) ? 0xFFFFFF : extract_structured_data ? 1 : 0, isLikeNone(max_structured_data_size) ? 0x100000001 : (max_structured_data_size) >>> 0);
|
|
3200
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3201
|
+
WasmMetadataConfigFinalization.register(this, this.__wbg_ptr, this);
|
|
3202
|
+
return this;
|
|
3203
|
+
}
|
|
3204
|
+
/**
|
|
3205
|
+
* @param {boolean} value
|
|
3206
|
+
*/
|
|
3207
|
+
set extractDocument(value) {
|
|
3208
|
+
wasm.wasmmetadataconfig_set_extractDocument(this.__wbg_ptr, value);
|
|
3209
|
+
}
|
|
3210
|
+
/**
|
|
3211
|
+
* @param {boolean} value
|
|
3212
|
+
*/
|
|
3213
|
+
set extractHeaders(value) {
|
|
3214
|
+
wasm.wasmmetadataconfig_set_extractHeaders(this.__wbg_ptr, value);
|
|
3215
|
+
}
|
|
3216
|
+
/**
|
|
3217
|
+
* @param {boolean} value
|
|
3218
|
+
*/
|
|
3219
|
+
set extractImages(value) {
|
|
3220
|
+
wasm.wasmmetadataconfig_set_extractImages(this.__wbg_ptr, value);
|
|
3221
|
+
}
|
|
3222
|
+
/**
|
|
3223
|
+
* @param {boolean} value
|
|
3224
|
+
*/
|
|
3225
|
+
set extractLinks(value) {
|
|
3226
|
+
wasm.wasmmetadataconfig_set_extractLinks(this.__wbg_ptr, value);
|
|
3227
|
+
}
|
|
3228
|
+
/**
|
|
3229
|
+
* @param {boolean} value
|
|
3230
|
+
*/
|
|
3231
|
+
set extractStructuredData(value) {
|
|
3232
|
+
wasm.wasmmetadataconfig_set_extractStructuredData(this.__wbg_ptr, value);
|
|
3233
|
+
}
|
|
3234
|
+
/**
|
|
3235
|
+
* @param {number} value
|
|
3236
|
+
*/
|
|
3237
|
+
set maxStructuredDataSize(value) {
|
|
3238
|
+
wasm.wasmmetadataconfig_set_maxStructuredDataSize(this.__wbg_ptr, value);
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3241
|
+
if (Symbol.dispose) WasmMetadataConfig.prototype[Symbol.dispose] = WasmMetadataConfig.prototype.free;
|
|
3242
|
+
|
|
3243
|
+
export class WasmMetadataConfigUpdate {
|
|
3244
|
+
__destroy_into_raw() {
|
|
3245
|
+
const ptr = this.__wbg_ptr;
|
|
3246
|
+
this.__wbg_ptr = 0;
|
|
3247
|
+
WasmMetadataConfigUpdateFinalization.unregister(this);
|
|
3248
|
+
return ptr;
|
|
3249
|
+
}
|
|
3250
|
+
free() {
|
|
3251
|
+
const ptr = this.__destroy_into_raw();
|
|
3252
|
+
wasm.__wbg_wasmmetadataconfigupdate_free(ptr, 0);
|
|
3253
|
+
}
|
|
3254
|
+
/**
|
|
3255
|
+
* @returns {boolean | undefined}
|
|
3256
|
+
*/
|
|
3257
|
+
get extractDocument() {
|
|
3258
|
+
const ret = wasm.wasmmetadataconfigupdate_extractDocument(this.__wbg_ptr);
|
|
3259
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3260
|
+
}
|
|
3261
|
+
/**
|
|
3262
|
+
* @returns {boolean | undefined}
|
|
3263
|
+
*/
|
|
3264
|
+
get extractHeaders() {
|
|
3265
|
+
const ret = wasm.wasmmetadataconfigupdate_extractHeaders(this.__wbg_ptr);
|
|
3266
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3267
|
+
}
|
|
3268
|
+
/**
|
|
3269
|
+
* @returns {boolean | undefined}
|
|
3270
|
+
*/
|
|
3271
|
+
get extractImages() {
|
|
3272
|
+
const ret = wasm.wasmmetadataconfigupdate_extractImages(this.__wbg_ptr);
|
|
3273
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3274
|
+
}
|
|
3275
|
+
/**
|
|
3276
|
+
* @returns {boolean | undefined}
|
|
3277
|
+
*/
|
|
3278
|
+
get extractLinks() {
|
|
3279
|
+
const ret = wasm.wasmmetadataconfigupdate_extractLinks(this.__wbg_ptr);
|
|
3280
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3281
|
+
}
|
|
3282
|
+
/**
|
|
3283
|
+
* @returns {boolean | undefined}
|
|
3284
|
+
*/
|
|
3285
|
+
get extractStructuredData() {
|
|
3286
|
+
const ret = wasm.wasmmetadataconfigupdate_extractStructuredData(this.__wbg_ptr);
|
|
3287
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3288
|
+
}
|
|
3289
|
+
/**
|
|
3290
|
+
* @returns {number | undefined}
|
|
3291
|
+
*/
|
|
3292
|
+
get maxStructuredDataSize() {
|
|
3293
|
+
const ret = wasm.wasmmetadataconfigupdate_maxStructuredDataSize(this.__wbg_ptr);
|
|
3294
|
+
return ret === 0x100000001 ? undefined : ret;
|
|
3295
|
+
}
|
|
3296
|
+
/**
|
|
3297
|
+
* @param {boolean | null} [extract_document]
|
|
3298
|
+
* @param {boolean | null} [extract_headers]
|
|
3299
|
+
* @param {boolean | null} [extract_links]
|
|
3300
|
+
* @param {boolean | null} [extract_images]
|
|
3301
|
+
* @param {boolean | null} [extract_structured_data]
|
|
3302
|
+
* @param {number | null} [max_structured_data_size]
|
|
3303
|
+
*/
|
|
3304
|
+
constructor(extract_document, extract_headers, extract_links, extract_images, extract_structured_data, max_structured_data_size) {
|
|
3305
|
+
const ret = wasm.wasmmetadataconfigupdate_new(isLikeNone(extract_document) ? 0xFFFFFF : extract_document ? 1 : 0, isLikeNone(extract_headers) ? 0xFFFFFF : extract_headers ? 1 : 0, isLikeNone(extract_links) ? 0xFFFFFF : extract_links ? 1 : 0, isLikeNone(extract_images) ? 0xFFFFFF : extract_images ? 1 : 0, isLikeNone(extract_structured_data) ? 0xFFFFFF : extract_structured_data ? 1 : 0, isLikeNone(max_structured_data_size) ? 0x100000001 : (max_structured_data_size) >>> 0);
|
|
3306
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3307
|
+
WasmMetadataConfigUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
3308
|
+
return this;
|
|
3309
|
+
}
|
|
3310
|
+
/**
|
|
3311
|
+
* @param {boolean | null} [value]
|
|
3312
|
+
*/
|
|
3313
|
+
set extractDocument(value) {
|
|
3314
|
+
wasm.wasmmetadataconfigupdate_set_extractDocument(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3315
|
+
}
|
|
3316
|
+
/**
|
|
3317
|
+
* @param {boolean | null} [value]
|
|
3318
|
+
*/
|
|
3319
|
+
set extractHeaders(value) {
|
|
3320
|
+
wasm.wasmmetadataconfigupdate_set_extractHeaders(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3321
|
+
}
|
|
3322
|
+
/**
|
|
3323
|
+
* @param {boolean | null} [value]
|
|
3324
|
+
*/
|
|
3325
|
+
set extractImages(value) {
|
|
3326
|
+
wasm.wasmmetadataconfigupdate_set_extractImages(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3327
|
+
}
|
|
3328
|
+
/**
|
|
3329
|
+
* @param {boolean | null} [value]
|
|
3330
|
+
*/
|
|
3331
|
+
set extractLinks(value) {
|
|
3332
|
+
wasm.wasmmetadataconfigupdate_set_extractLinks(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3333
|
+
}
|
|
3334
|
+
/**
|
|
3335
|
+
* @param {boolean | null} [value]
|
|
3336
|
+
*/
|
|
3337
|
+
set extractStructuredData(value) {
|
|
3338
|
+
wasm.wasmmetadataconfigupdate_set_extractStructuredData(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3339
|
+
}
|
|
3340
|
+
/**
|
|
3341
|
+
* @param {number | null} [value]
|
|
3342
|
+
*/
|
|
3343
|
+
set maxStructuredDataSize(value) {
|
|
3344
|
+
wasm.wasmmetadataconfigupdate_set_maxStructuredDataSize(this.__wbg_ptr, isLikeNone(value) ? 0x100000001 : (value) >>> 0);
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
if (Symbol.dispose) WasmMetadataConfigUpdate.prototype[Symbol.dispose] = WasmMetadataConfigUpdate.prototype.free;
|
|
3348
|
+
|
|
3349
|
+
/**
|
|
3350
|
+
* @enum {0 | 1}
|
|
3351
|
+
*/
|
|
3352
|
+
export const WasmNewlineStyle = Object.freeze({
|
|
3353
|
+
Spaces: 0, "0": "Spaces",
|
|
3354
|
+
Backslash: 1, "1": "Backslash",
|
|
3355
|
+
});
|
|
3356
|
+
|
|
3357
|
+
/**
|
|
3358
|
+
* @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}
|
|
3359
|
+
*/
|
|
3360
|
+
export const WasmNodeContent = Object.freeze({
|
|
3361
|
+
Heading: 0, "0": "Heading",
|
|
3362
|
+
Paragraph: 1, "1": "Paragraph",
|
|
3363
|
+
List: 2, "2": "List",
|
|
3364
|
+
ListItem: 3, "3": "ListItem",
|
|
3365
|
+
Table: 4, "4": "Table",
|
|
3366
|
+
Image: 5, "5": "Image",
|
|
3367
|
+
Code: 6, "6": "Code",
|
|
3368
|
+
Quote: 7, "7": "Quote",
|
|
3369
|
+
DefinitionList: 8, "8": "DefinitionList",
|
|
3370
|
+
DefinitionItem: 9, "9": "DefinitionItem",
|
|
3371
|
+
RawBlock: 10, "10": "RawBlock",
|
|
3372
|
+
MetadataBlock: 11, "11": "MetadataBlock",
|
|
3373
|
+
Group: 12, "12": "Group",
|
|
3374
|
+
});
|
|
3375
|
+
|
|
3376
|
+
/**
|
|
3377
|
+
* @enum {0 | 1 | 2}
|
|
3378
|
+
*/
|
|
3379
|
+
export const WasmOutputFormat = Object.freeze({
|
|
3380
|
+
Markdown: 0, "0": "Markdown",
|
|
3381
|
+
Djot: 1, "1": "Djot",
|
|
3382
|
+
Plain: 2, "2": "Plain",
|
|
3383
|
+
});
|
|
3384
|
+
|
|
3385
|
+
export class WasmPreprocessingOptions {
|
|
3386
|
+
static __wrap(ptr) {
|
|
3387
|
+
ptr = ptr >>> 0;
|
|
3388
|
+
const obj = Object.create(WasmPreprocessingOptions.prototype);
|
|
3389
|
+
obj.__wbg_ptr = ptr;
|
|
3390
|
+
WasmPreprocessingOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3391
|
+
return obj;
|
|
3392
|
+
}
|
|
3393
|
+
__destroy_into_raw() {
|
|
3394
|
+
const ptr = this.__wbg_ptr;
|
|
3395
|
+
this.__wbg_ptr = 0;
|
|
3396
|
+
WasmPreprocessingOptionsFinalization.unregister(this);
|
|
3397
|
+
return ptr;
|
|
3398
|
+
}
|
|
3399
|
+
free() {
|
|
3400
|
+
const ptr = this.__destroy_into_raw();
|
|
3401
|
+
wasm.__wbg_wasmpreprocessingoptions_free(ptr, 0);
|
|
3402
|
+
}
|
|
3403
|
+
/**
|
|
3404
|
+
* @returns {WasmPreprocessingOptions}
|
|
3405
|
+
*/
|
|
3406
|
+
static default() {
|
|
3407
|
+
const ret = wasm.wasmpreprocessingoptions_default();
|
|
3408
|
+
return WasmPreprocessingOptions.__wrap(ret);
|
|
3409
|
+
}
|
|
3410
|
+
/**
|
|
3411
|
+
* @returns {boolean}
|
|
3412
|
+
*/
|
|
3413
|
+
get enabled() {
|
|
3414
|
+
const ret = wasm.wasmpreprocessingoptions_enabled(this.__wbg_ptr);
|
|
3415
|
+
return ret !== 0;
|
|
3416
|
+
}
|
|
3417
|
+
/**
|
|
3418
|
+
* @param {boolean | null} [enabled]
|
|
3419
|
+
* @param {WasmPreprocessingPreset | null} [preset]
|
|
3420
|
+
* @param {boolean | null} [remove_navigation]
|
|
3421
|
+
* @param {boolean | null} [remove_forms]
|
|
3422
|
+
*/
|
|
3423
|
+
constructor(enabled, preset, remove_navigation, remove_forms) {
|
|
3424
|
+
const ret = wasm.wasmpreprocessingoptions_new(isLikeNone(enabled) ? 0xFFFFFF : enabled ? 1 : 0, isLikeNone(preset) ? 3 : preset, isLikeNone(remove_navigation) ? 0xFFFFFF : remove_navigation ? 1 : 0, isLikeNone(remove_forms) ? 0xFFFFFF : remove_forms ? 1 : 0);
|
|
3425
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3426
|
+
WasmPreprocessingOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
3427
|
+
return this;
|
|
3428
|
+
}
|
|
3429
|
+
/**
|
|
3430
|
+
* @returns {WasmPreprocessingPreset}
|
|
3431
|
+
*/
|
|
3432
|
+
get preset() {
|
|
3433
|
+
const ret = wasm.wasmpreprocessingoptions_preset(this.__wbg_ptr);
|
|
3434
|
+
return ret;
|
|
3435
|
+
}
|
|
3436
|
+
/**
|
|
3437
|
+
* @returns {boolean}
|
|
3438
|
+
*/
|
|
3439
|
+
get removeForms() {
|
|
3440
|
+
const ret = wasm.wasmpreprocessingoptions_removeForms(this.__wbg_ptr);
|
|
3441
|
+
return ret !== 0;
|
|
3442
|
+
}
|
|
3443
|
+
/**
|
|
3444
|
+
* @returns {boolean}
|
|
3445
|
+
*/
|
|
3446
|
+
get removeNavigation() {
|
|
3447
|
+
const ret = wasm.wasmpreprocessingoptions_removeNavigation(this.__wbg_ptr);
|
|
3448
|
+
return ret !== 0;
|
|
3449
|
+
}
|
|
3450
|
+
/**
|
|
3451
|
+
* @param {boolean} value
|
|
3452
|
+
*/
|
|
3453
|
+
set enabled(value) {
|
|
3454
|
+
wasm.wasmpreprocessingoptions_set_enabled(this.__wbg_ptr, value);
|
|
3455
|
+
}
|
|
3456
|
+
/**
|
|
3457
|
+
* @param {WasmPreprocessingPreset} value
|
|
3458
|
+
*/
|
|
3459
|
+
set preset(value) {
|
|
3460
|
+
wasm.wasmpreprocessingoptions_set_preset(this.__wbg_ptr, value);
|
|
3461
|
+
}
|
|
3462
|
+
/**
|
|
3463
|
+
* @param {boolean} value
|
|
3464
|
+
*/
|
|
3465
|
+
set removeForms(value) {
|
|
3466
|
+
wasm.wasmpreprocessingoptions_set_removeForms(this.__wbg_ptr, value);
|
|
3467
|
+
}
|
|
3468
|
+
/**
|
|
3469
|
+
* @param {boolean} value
|
|
3470
|
+
*/
|
|
3471
|
+
set removeNavigation(value) {
|
|
3472
|
+
wasm.wasmpreprocessingoptions_set_removeNavigation(this.__wbg_ptr, value);
|
|
3473
|
+
}
|
|
3474
|
+
}
|
|
3475
|
+
if (Symbol.dispose) WasmPreprocessingOptions.prototype[Symbol.dispose] = WasmPreprocessingOptions.prototype.free;
|
|
3476
|
+
|
|
3477
|
+
export class WasmPreprocessingOptionsUpdate {
|
|
3478
|
+
static __wrap(ptr) {
|
|
3479
|
+
ptr = ptr >>> 0;
|
|
3480
|
+
const obj = Object.create(WasmPreprocessingOptionsUpdate.prototype);
|
|
3481
|
+
obj.__wbg_ptr = ptr;
|
|
3482
|
+
WasmPreprocessingOptionsUpdateFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3483
|
+
return obj;
|
|
3484
|
+
}
|
|
3485
|
+
__destroy_into_raw() {
|
|
3486
|
+
const ptr = this.__wbg_ptr;
|
|
3487
|
+
this.__wbg_ptr = 0;
|
|
3488
|
+
WasmPreprocessingOptionsUpdateFinalization.unregister(this);
|
|
3489
|
+
return ptr;
|
|
3490
|
+
}
|
|
3491
|
+
free() {
|
|
3492
|
+
const ptr = this.__destroy_into_raw();
|
|
3493
|
+
wasm.__wbg_wasmpreprocessingoptionsupdate_free(ptr, 0);
|
|
3494
|
+
}
|
|
3495
|
+
/**
|
|
3496
|
+
* @returns {boolean | undefined}
|
|
3497
|
+
*/
|
|
3498
|
+
get enabled() {
|
|
3499
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_enabled(this.__wbg_ptr);
|
|
3500
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3501
|
+
}
|
|
3502
|
+
/**
|
|
3503
|
+
* @param {boolean | null} [enabled]
|
|
3504
|
+
* @param {WasmPreprocessingPreset | null} [preset]
|
|
3505
|
+
* @param {boolean | null} [remove_navigation]
|
|
3506
|
+
* @param {boolean | null} [remove_forms]
|
|
3507
|
+
*/
|
|
3508
|
+
constructor(enabled, preset, remove_navigation, remove_forms) {
|
|
3509
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_new(isLikeNone(enabled) ? 0xFFFFFF : enabled ? 1 : 0, isLikeNone(preset) ? 3 : preset, isLikeNone(remove_navigation) ? 0xFFFFFF : remove_navigation ? 1 : 0, isLikeNone(remove_forms) ? 0xFFFFFF : remove_forms ? 1 : 0);
|
|
3510
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3511
|
+
WasmPreprocessingOptionsUpdateFinalization.register(this, this.__wbg_ptr, this);
|
|
3512
|
+
return this;
|
|
3513
|
+
}
|
|
3514
|
+
/**
|
|
3515
|
+
* @returns {WasmPreprocessingPreset | undefined}
|
|
3516
|
+
*/
|
|
3517
|
+
get preset() {
|
|
3518
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_preset(this.__wbg_ptr);
|
|
3519
|
+
return ret === 3 ? undefined : ret;
|
|
3520
|
+
}
|
|
3521
|
+
/**
|
|
3522
|
+
* @returns {boolean | undefined}
|
|
3523
|
+
*/
|
|
3524
|
+
get removeForms() {
|
|
3525
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_removeForms(this.__wbg_ptr);
|
|
3526
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3527
|
+
}
|
|
3528
|
+
/**
|
|
3529
|
+
* @returns {boolean | undefined}
|
|
3530
|
+
*/
|
|
3531
|
+
get removeNavigation() {
|
|
3532
|
+
const ret = wasm.wasmpreprocessingoptionsupdate_removeNavigation(this.__wbg_ptr);
|
|
3533
|
+
return ret === 0xFFFFFF ? undefined : ret !== 0;
|
|
3534
|
+
}
|
|
3535
|
+
/**
|
|
3536
|
+
* @param {boolean | null} [value]
|
|
3537
|
+
*/
|
|
3538
|
+
set enabled(value) {
|
|
3539
|
+
wasm.wasmpreprocessingoptionsupdate_set_enabled(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3540
|
+
}
|
|
3541
|
+
/**
|
|
3542
|
+
* @param {WasmPreprocessingPreset | null} [value]
|
|
3543
|
+
*/
|
|
3544
|
+
set preset(value) {
|
|
3545
|
+
wasm.wasmpreprocessingoptionsupdate_set_preset(this.__wbg_ptr, isLikeNone(value) ? 3 : value);
|
|
3546
|
+
}
|
|
3547
|
+
/**
|
|
3548
|
+
* @param {boolean | null} [value]
|
|
3549
|
+
*/
|
|
3550
|
+
set removeForms(value) {
|
|
3551
|
+
wasm.wasmpreprocessingoptionsupdate_set_removeForms(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3552
|
+
}
|
|
3553
|
+
/**
|
|
3554
|
+
* @param {boolean | null} [value]
|
|
3555
|
+
*/
|
|
3556
|
+
set removeNavigation(value) {
|
|
3557
|
+
wasm.wasmpreprocessingoptionsupdate_set_removeNavigation(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
|
|
3558
|
+
}
|
|
3559
|
+
}
|
|
3560
|
+
if (Symbol.dispose) WasmPreprocessingOptionsUpdate.prototype[Symbol.dispose] = WasmPreprocessingOptionsUpdate.prototype.free;
|
|
3561
|
+
|
|
3562
|
+
/**
|
|
3563
|
+
* @enum {0 | 1 | 2}
|
|
3564
|
+
*/
|
|
3565
|
+
export const WasmPreprocessingPreset = Object.freeze({
|
|
3566
|
+
Minimal: 0, "0": "Minimal",
|
|
3567
|
+
Standard: 1, "1": "Standard",
|
|
3568
|
+
Aggressive: 2, "2": "Aggressive",
|
|
3569
|
+
});
|
|
3570
|
+
|
|
3571
|
+
export class WasmProcessingWarning {
|
|
3572
|
+
static __wrap(ptr) {
|
|
3573
|
+
ptr = ptr >>> 0;
|
|
3574
|
+
const obj = Object.create(WasmProcessingWarning.prototype);
|
|
3575
|
+
obj.__wbg_ptr = ptr;
|
|
3576
|
+
WasmProcessingWarningFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3577
|
+
return obj;
|
|
3578
|
+
}
|
|
3579
|
+
static __unwrap(jsValue) {
|
|
3580
|
+
if (!(jsValue instanceof WasmProcessingWarning)) {
|
|
3581
|
+
return 0;
|
|
3582
|
+
}
|
|
3583
|
+
return jsValue.__destroy_into_raw();
|
|
3584
|
+
}
|
|
3585
|
+
__destroy_into_raw() {
|
|
3586
|
+
const ptr = this.__wbg_ptr;
|
|
3587
|
+
this.__wbg_ptr = 0;
|
|
3588
|
+
WasmProcessingWarningFinalization.unregister(this);
|
|
3589
|
+
return ptr;
|
|
3590
|
+
}
|
|
3591
|
+
free() {
|
|
3592
|
+
const ptr = this.__destroy_into_raw();
|
|
3593
|
+
wasm.__wbg_wasmprocessingwarning_free(ptr, 0);
|
|
3594
|
+
}
|
|
3595
|
+
/**
|
|
3596
|
+
* @returns {WasmWarningKind}
|
|
3597
|
+
*/
|
|
3598
|
+
get kind() {
|
|
3599
|
+
const ret = wasm.wasmprocessingwarning_kind(this.__wbg_ptr);
|
|
3600
|
+
return ret;
|
|
3601
|
+
}
|
|
3602
|
+
/**
|
|
3603
|
+
* @returns {string}
|
|
3604
|
+
*/
|
|
3605
|
+
get message() {
|
|
3606
|
+
let deferred1_0;
|
|
3607
|
+
let deferred1_1;
|
|
3608
|
+
try {
|
|
3609
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3610
|
+
wasm.wasmprocessingwarning_message(retptr, this.__wbg_ptr);
|
|
3611
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3612
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3613
|
+
deferred1_0 = r0;
|
|
3614
|
+
deferred1_1 = r1;
|
|
3615
|
+
return getStringFromWasm0(r0, r1);
|
|
3616
|
+
} finally {
|
|
3617
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3618
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
3619
|
+
}
|
|
3620
|
+
}
|
|
3621
|
+
/**
|
|
3622
|
+
* @param {string} message
|
|
3623
|
+
* @param {WasmWarningKind} kind
|
|
3624
|
+
*/
|
|
3625
|
+
constructor(message, kind) {
|
|
3626
|
+
const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3627
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3628
|
+
const ret = wasm.wasmprocessingwarning_new(ptr0, len0, kind);
|
|
3629
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3630
|
+
WasmProcessingWarningFinalization.register(this, this.__wbg_ptr, this);
|
|
3631
|
+
return this;
|
|
3632
|
+
}
|
|
3633
|
+
/**
|
|
3634
|
+
* @param {WasmWarningKind} value
|
|
3635
|
+
*/
|
|
3636
|
+
set kind(value) {
|
|
3637
|
+
wasm.wasmprocessingwarning_set_kind(this.__wbg_ptr, value);
|
|
3638
|
+
}
|
|
3639
|
+
/**
|
|
3640
|
+
* @param {string} value
|
|
3641
|
+
*/
|
|
3642
|
+
set message(value) {
|
|
3643
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3644
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3645
|
+
wasm.wasmprocessingwarning_set_message(this.__wbg_ptr, ptr0, len0);
|
|
3646
|
+
}
|
|
3647
|
+
}
|
|
3648
|
+
if (Symbol.dispose) WasmProcessingWarning.prototype[Symbol.dispose] = WasmProcessingWarning.prototype.free;
|
|
3649
|
+
|
|
3650
|
+
export class WasmStructuredData {
|
|
3651
|
+
static __wrap(ptr) {
|
|
3652
|
+
ptr = ptr >>> 0;
|
|
3653
|
+
const obj = Object.create(WasmStructuredData.prototype);
|
|
3654
|
+
obj.__wbg_ptr = ptr;
|
|
3655
|
+
WasmStructuredDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3656
|
+
return obj;
|
|
3657
|
+
}
|
|
3658
|
+
static __unwrap(jsValue) {
|
|
3659
|
+
if (!(jsValue instanceof WasmStructuredData)) {
|
|
3660
|
+
return 0;
|
|
3661
|
+
}
|
|
3662
|
+
return jsValue.__destroy_into_raw();
|
|
3663
|
+
}
|
|
3664
|
+
__destroy_into_raw() {
|
|
3665
|
+
const ptr = this.__wbg_ptr;
|
|
3666
|
+
this.__wbg_ptr = 0;
|
|
3667
|
+
WasmStructuredDataFinalization.unregister(this);
|
|
3668
|
+
return ptr;
|
|
3669
|
+
}
|
|
3670
|
+
free() {
|
|
3671
|
+
const ptr = this.__destroy_into_raw();
|
|
3672
|
+
wasm.__wbg_wasmstructureddata_free(ptr, 0);
|
|
3673
|
+
}
|
|
3674
|
+
/**
|
|
3675
|
+
* @returns {WasmStructuredDataType}
|
|
3676
|
+
*/
|
|
3677
|
+
get dataType() {
|
|
3678
|
+
const ret = wasm.wasmstructureddata_dataType(this.__wbg_ptr);
|
|
3679
|
+
return ret;
|
|
3680
|
+
}
|
|
3681
|
+
/**
|
|
3682
|
+
* @param {WasmStructuredDataType} data_type
|
|
3683
|
+
* @param {string} raw_json
|
|
3684
|
+
* @param {string | null} [schema_type]
|
|
3685
|
+
*/
|
|
3686
|
+
constructor(data_type, raw_json, schema_type) {
|
|
3687
|
+
const ptr0 = passStringToWasm0(raw_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3688
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3689
|
+
var ptr1 = isLikeNone(schema_type) ? 0 : passStringToWasm0(schema_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3690
|
+
var len1 = WASM_VECTOR_LEN;
|
|
3691
|
+
const ret = wasm.wasmstructureddata_new(data_type, ptr0, len0, ptr1, len1);
|
|
3692
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3693
|
+
WasmStructuredDataFinalization.register(this, this.__wbg_ptr, this);
|
|
3694
|
+
return this;
|
|
3695
|
+
}
|
|
3696
|
+
/**
|
|
3697
|
+
* @returns {string}
|
|
3698
|
+
*/
|
|
3699
|
+
get rawJson() {
|
|
3700
|
+
let deferred1_0;
|
|
3701
|
+
let deferred1_1;
|
|
3702
|
+
try {
|
|
3703
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3704
|
+
wasm.wasmstructureddata_rawJson(retptr, this.__wbg_ptr);
|
|
3705
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3706
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3707
|
+
deferred1_0 = r0;
|
|
3708
|
+
deferred1_1 = r1;
|
|
3709
|
+
return getStringFromWasm0(r0, r1);
|
|
3710
|
+
} finally {
|
|
3711
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3712
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
/**
|
|
3716
|
+
* @returns {string | undefined}
|
|
3717
|
+
*/
|
|
3718
|
+
get schemaType() {
|
|
3719
|
+
try {
|
|
3720
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3721
|
+
wasm.wasmstructureddata_schemaType(retptr, this.__wbg_ptr);
|
|
3722
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3723
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3724
|
+
let v1;
|
|
3725
|
+
if (r0 !== 0) {
|
|
3726
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
3727
|
+
wasm.__wbindgen_export3(r0, r1 * 1, 1);
|
|
3728
|
+
}
|
|
3729
|
+
return v1;
|
|
3730
|
+
} finally {
|
|
3731
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
/**
|
|
3735
|
+
* @param {WasmStructuredDataType} value
|
|
3736
|
+
*/
|
|
3737
|
+
set dataType(value) {
|
|
3738
|
+
wasm.wasmstructureddata_set_dataType(this.__wbg_ptr, value);
|
|
3739
|
+
}
|
|
3740
|
+
/**
|
|
3741
|
+
* @param {string} value
|
|
3742
|
+
*/
|
|
3743
|
+
set rawJson(value) {
|
|
3744
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3745
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3746
|
+
wasm.wasmstructureddata_set_rawJson(this.__wbg_ptr, ptr0, len0);
|
|
3747
|
+
}
|
|
3748
|
+
/**
|
|
3749
|
+
* @param {string | null} [value]
|
|
3750
|
+
*/
|
|
3751
|
+
set schemaType(value) {
|
|
3752
|
+
var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3753
|
+
var len0 = WASM_VECTOR_LEN;
|
|
3754
|
+
wasm.wasmstructureddata_set_schemaType(this.__wbg_ptr, ptr0, len0);
|
|
3755
|
+
}
|
|
3756
|
+
}
|
|
3757
|
+
if (Symbol.dispose) WasmStructuredData.prototype[Symbol.dispose] = WasmStructuredData.prototype.free;
|
|
3758
|
+
|
|
3759
|
+
/**
|
|
3760
|
+
* @enum {0 | 1 | 2}
|
|
3761
|
+
*/
|
|
3762
|
+
export const WasmStructuredDataType = Object.freeze({
|
|
3763
|
+
JsonLd: 0, "0": "JsonLd",
|
|
3764
|
+
Microdata: 1, "1": "Microdata",
|
|
3765
|
+
RDFa: 2, "2": "RDFa",
|
|
3766
|
+
});
|
|
3767
|
+
|
|
3768
|
+
export class WasmTableData {
|
|
3769
|
+
static __wrap(ptr) {
|
|
3770
|
+
ptr = ptr >>> 0;
|
|
3771
|
+
const obj = Object.create(WasmTableData.prototype);
|
|
3772
|
+
obj.__wbg_ptr = ptr;
|
|
3773
|
+
WasmTableDataFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3774
|
+
return obj;
|
|
3775
|
+
}
|
|
3776
|
+
static __unwrap(jsValue) {
|
|
3777
|
+
if (!(jsValue instanceof WasmTableData)) {
|
|
3778
|
+
return 0;
|
|
3779
|
+
}
|
|
3780
|
+
return jsValue.__destroy_into_raw();
|
|
3781
|
+
}
|
|
3782
|
+
__destroy_into_raw() {
|
|
3783
|
+
const ptr = this.__wbg_ptr;
|
|
3784
|
+
this.__wbg_ptr = 0;
|
|
3785
|
+
WasmTableDataFinalization.unregister(this);
|
|
3786
|
+
return ptr;
|
|
3787
|
+
}
|
|
3788
|
+
free() {
|
|
3789
|
+
const ptr = this.__destroy_into_raw();
|
|
3790
|
+
wasm.__wbg_wasmtabledata_free(ptr, 0);
|
|
3791
|
+
}
|
|
3792
|
+
/**
|
|
3793
|
+
* @returns {WasmTableGrid}
|
|
3794
|
+
*/
|
|
3795
|
+
get grid() {
|
|
3796
|
+
const ret = wasm.wasmtabledata_grid(this.__wbg_ptr);
|
|
3797
|
+
return WasmTableGrid.__wrap(ret);
|
|
3798
|
+
}
|
|
3799
|
+
/**
|
|
3800
|
+
* @returns {string}
|
|
3801
|
+
*/
|
|
3802
|
+
get markdown() {
|
|
3803
|
+
let deferred1_0;
|
|
3804
|
+
let deferred1_1;
|
|
3805
|
+
try {
|
|
3806
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3807
|
+
wasm.wasmtabledata_markdown(retptr, this.__wbg_ptr);
|
|
3808
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3809
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3810
|
+
deferred1_0 = r0;
|
|
3811
|
+
deferred1_1 = r1;
|
|
3812
|
+
return getStringFromWasm0(r0, r1);
|
|
3813
|
+
} finally {
|
|
3814
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3815
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3818
|
+
/**
|
|
3819
|
+
* @param {WasmTableGrid} grid
|
|
3820
|
+
* @param {string} markdown
|
|
3821
|
+
*/
|
|
3822
|
+
constructor(grid, markdown) {
|
|
3823
|
+
_assertClass(grid, WasmTableGrid);
|
|
3824
|
+
var ptr0 = grid.__destroy_into_raw();
|
|
3825
|
+
const ptr1 = passStringToWasm0(markdown, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3826
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3827
|
+
const ret = wasm.wasmtabledata_new(ptr0, ptr1, len1);
|
|
3828
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3829
|
+
WasmTableDataFinalization.register(this, this.__wbg_ptr, this);
|
|
3830
|
+
return this;
|
|
3831
|
+
}
|
|
3832
|
+
/**
|
|
3833
|
+
* @param {WasmTableGrid} value
|
|
3834
|
+
*/
|
|
3835
|
+
set grid(value) {
|
|
3836
|
+
_assertClass(value, WasmTableGrid);
|
|
3837
|
+
var ptr0 = value.__destroy_into_raw();
|
|
3838
|
+
wasm.wasmtabledata_set_grid(this.__wbg_ptr, ptr0);
|
|
3839
|
+
}
|
|
3840
|
+
/**
|
|
3841
|
+
* @param {string} value
|
|
3842
|
+
*/
|
|
3843
|
+
set markdown(value) {
|
|
3844
|
+
const ptr0 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
3845
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3846
|
+
wasm.wasmtabledata_set_markdown(this.__wbg_ptr, ptr0, len0);
|
|
3847
|
+
}
|
|
3848
|
+
}
|
|
3849
|
+
if (Symbol.dispose) WasmTableData.prototype[Symbol.dispose] = WasmTableData.prototype.free;
|
|
3850
|
+
|
|
3851
|
+
export class WasmTableGrid {
|
|
3852
|
+
static __wrap(ptr) {
|
|
3853
|
+
ptr = ptr >>> 0;
|
|
3854
|
+
const obj = Object.create(WasmTableGrid.prototype);
|
|
3855
|
+
obj.__wbg_ptr = ptr;
|
|
3856
|
+
WasmTableGridFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3857
|
+
return obj;
|
|
3858
|
+
}
|
|
3859
|
+
__destroy_into_raw() {
|
|
3860
|
+
const ptr = this.__wbg_ptr;
|
|
3861
|
+
this.__wbg_ptr = 0;
|
|
3862
|
+
WasmTableGridFinalization.unregister(this);
|
|
3863
|
+
return ptr;
|
|
3864
|
+
}
|
|
3865
|
+
free() {
|
|
3866
|
+
const ptr = this.__destroy_into_raw();
|
|
3867
|
+
wasm.__wbg_wasmtablegrid_free(ptr, 0);
|
|
3868
|
+
}
|
|
3869
|
+
/**
|
|
3870
|
+
* @returns {WasmGridCell[]}
|
|
3871
|
+
*/
|
|
3872
|
+
get cells() {
|
|
3873
|
+
try {
|
|
3874
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3875
|
+
wasm.wasmtablegrid_cells(retptr, this.__wbg_ptr);
|
|
3876
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3877
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3878
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
3879
|
+
wasm.__wbindgen_export3(r0, r1 * 4, 4);
|
|
3880
|
+
return v1;
|
|
3881
|
+
} finally {
|
|
3882
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
/**
|
|
3886
|
+
* @returns {number}
|
|
3887
|
+
*/
|
|
3888
|
+
get cols() {
|
|
3889
|
+
const ret = wasm.wasmtablegrid_cols(this.__wbg_ptr);
|
|
3890
|
+
return ret >>> 0;
|
|
3891
|
+
}
|
|
3892
|
+
/**
|
|
3893
|
+
* @param {number | null} [rows]
|
|
3894
|
+
* @param {number | null} [cols]
|
|
3895
|
+
* @param {WasmGridCell[] | null} [cells]
|
|
3896
|
+
*/
|
|
3897
|
+
constructor(rows, cols, cells) {
|
|
3898
|
+
var ptr0 = isLikeNone(cells) ? 0 : passArrayJsValueToWasm0(cells, wasm.__wbindgen_export);
|
|
3899
|
+
var len0 = WASM_VECTOR_LEN;
|
|
3900
|
+
const ret = wasm.wasmtablegrid_new(isLikeNone(rows) ? 0x100000001 : (rows) >>> 0, isLikeNone(cols) ? 0x100000001 : (cols) >>> 0, ptr0, len0);
|
|
3901
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3902
|
+
WasmTableGridFinalization.register(this, this.__wbg_ptr, this);
|
|
3903
|
+
return this;
|
|
3904
|
+
}
|
|
3905
|
+
/**
|
|
3906
|
+
* @returns {number}
|
|
3907
|
+
*/
|
|
3908
|
+
get rows() {
|
|
3909
|
+
const ret = wasm.wasmtablegrid_rows(this.__wbg_ptr);
|
|
3910
|
+
return ret >>> 0;
|
|
3911
|
+
}
|
|
3912
|
+
/**
|
|
3913
|
+
* @param {WasmGridCell[]} value
|
|
3914
|
+
*/
|
|
3915
|
+
set cells(value) {
|
|
3916
|
+
const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_export);
|
|
3917
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3918
|
+
wasm.wasmtablegrid_set_cells(this.__wbg_ptr, ptr0, len0);
|
|
3919
|
+
}
|
|
3920
|
+
/**
|
|
3921
|
+
* @param {number} value
|
|
3922
|
+
*/
|
|
3923
|
+
set cols(value) {
|
|
3924
|
+
wasm.wasmtablegrid_set_cols(this.__wbg_ptr, value);
|
|
3925
|
+
}
|
|
3926
|
+
/**
|
|
3927
|
+
* @param {number} value
|
|
3928
|
+
*/
|
|
3929
|
+
set rows(value) {
|
|
3930
|
+
wasm.wasmtablegrid_set_rows(this.__wbg_ptr, value);
|
|
3931
|
+
}
|
|
3932
|
+
}
|
|
3933
|
+
if (Symbol.dispose) WasmTableGrid.prototype[Symbol.dispose] = WasmTableGrid.prototype.free;
|
|
3934
|
+
|
|
3935
|
+
export class WasmTextAnnotation {
|
|
3936
|
+
static __wrap(ptr) {
|
|
3937
|
+
ptr = ptr >>> 0;
|
|
3938
|
+
const obj = Object.create(WasmTextAnnotation.prototype);
|
|
3939
|
+
obj.__wbg_ptr = ptr;
|
|
3940
|
+
WasmTextAnnotationFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
3941
|
+
return obj;
|
|
3942
|
+
}
|
|
3943
|
+
static __unwrap(jsValue) {
|
|
3944
|
+
if (!(jsValue instanceof WasmTextAnnotation)) {
|
|
3945
|
+
return 0;
|
|
3946
|
+
}
|
|
3947
|
+
return jsValue.__destroy_into_raw();
|
|
3948
|
+
}
|
|
3949
|
+
__destroy_into_raw() {
|
|
3950
|
+
const ptr = this.__wbg_ptr;
|
|
3951
|
+
this.__wbg_ptr = 0;
|
|
3952
|
+
WasmTextAnnotationFinalization.unregister(this);
|
|
3953
|
+
return ptr;
|
|
3954
|
+
}
|
|
3955
|
+
free() {
|
|
3956
|
+
const ptr = this.__destroy_into_raw();
|
|
3957
|
+
wasm.__wbg_wasmtextannotation_free(ptr, 0);
|
|
3958
|
+
}
|
|
3959
|
+
/**
|
|
3960
|
+
* @returns {number}
|
|
3961
|
+
*/
|
|
3962
|
+
get end() {
|
|
3963
|
+
const ret = wasm.wasmtextannotation_end(this.__wbg_ptr);
|
|
3964
|
+
return ret >>> 0;
|
|
3965
|
+
}
|
|
3966
|
+
/**
|
|
3967
|
+
* @returns {WasmAnnotationKind}
|
|
3968
|
+
*/
|
|
3969
|
+
get kind() {
|
|
3970
|
+
const ret = wasm.wasmtextannotation_kind(this.__wbg_ptr);
|
|
3971
|
+
return ret;
|
|
3972
|
+
}
|
|
3973
|
+
/**
|
|
3974
|
+
* @param {number} start
|
|
3975
|
+
* @param {number} end
|
|
3976
|
+
* @param {WasmAnnotationKind} kind
|
|
3977
|
+
*/
|
|
3978
|
+
constructor(start, end, kind) {
|
|
3979
|
+
const ret = wasm.wasmtextannotation_new(start, end, kind);
|
|
3980
|
+
this.__wbg_ptr = ret >>> 0;
|
|
3981
|
+
WasmTextAnnotationFinalization.register(this, this.__wbg_ptr, this);
|
|
3982
|
+
return this;
|
|
3983
|
+
}
|
|
3984
|
+
/**
|
|
3985
|
+
* @param {number} value
|
|
3986
|
+
*/
|
|
3987
|
+
set end(value) {
|
|
3988
|
+
wasm.wasmtextannotation_set_end(this.__wbg_ptr, value);
|
|
3989
|
+
}
|
|
3990
|
+
/**
|
|
3991
|
+
* @param {WasmAnnotationKind} value
|
|
3992
|
+
*/
|
|
3993
|
+
set kind(value) {
|
|
3994
|
+
wasm.wasmtextannotation_set_kind(this.__wbg_ptr, value);
|
|
3995
|
+
}
|
|
3996
|
+
/**
|
|
3997
|
+
* @param {number} value
|
|
3998
|
+
*/
|
|
3999
|
+
set start(value) {
|
|
4000
|
+
wasm.wasmtextannotation_set_start(this.__wbg_ptr, value);
|
|
4001
|
+
}
|
|
4002
|
+
/**
|
|
4003
|
+
* @returns {number}
|
|
4004
|
+
*/
|
|
4005
|
+
get start() {
|
|
4006
|
+
const ret = wasm.wasmtextannotation_start(this.__wbg_ptr);
|
|
4007
|
+
return ret >>> 0;
|
|
4008
|
+
}
|
|
4009
|
+
}
|
|
4010
|
+
if (Symbol.dispose) WasmTextAnnotation.prototype[Symbol.dispose] = WasmTextAnnotation.prototype.free;
|
|
4011
|
+
|
|
4012
|
+
/**
|
|
4013
|
+
* @enum {0 | 1 | 2}
|
|
4014
|
+
*/
|
|
4015
|
+
export const WasmTextDirection = Object.freeze({
|
|
4016
|
+
LeftToRight: 0, "0": "LeftToRight",
|
|
4017
|
+
RightToLeft: 1, "1": "RightToLeft",
|
|
4018
|
+
Auto: 2, "2": "Auto",
|
|
4019
|
+
});
|
|
4020
|
+
|
|
4021
|
+
/**
|
|
4022
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
|
4023
|
+
*/
|
|
4024
|
+
export const WasmWarningKind = Object.freeze({
|
|
4025
|
+
ImageExtractionFailed: 0, "0": "ImageExtractionFailed",
|
|
4026
|
+
EncodingFallback: 1, "1": "EncodingFallback",
|
|
4027
|
+
TruncatedInput: 2, "2": "TruncatedInput",
|
|
4028
|
+
MalformedHtml: 3, "3": "MalformedHtml",
|
|
4029
|
+
SanitizationApplied: 4, "4": "SanitizationApplied",
|
|
4030
|
+
});
|
|
4031
|
+
|
|
4032
|
+
/**
|
|
4033
|
+
* @enum {0 | 1}
|
|
4034
|
+
*/
|
|
4035
|
+
export const WasmWhitespaceMode = Object.freeze({
|
|
4036
|
+
Normalized: 0, "0": "Normalized",
|
|
4037
|
+
Strict: 1, "1": "Strict",
|
|
4038
|
+
});
|
|
4039
|
+
|
|
4040
|
+
/**
|
|
28
4041
|
* @param {string} html
|
|
29
|
-
* @param {WasmConversionOptions | null
|
|
4042
|
+
* @param {WasmConversionOptions | null} [options]
|
|
30
4043
|
* @returns {WasmConversionResult}
|
|
31
4044
|
*/
|
|
32
4045
|
export function convert(html, options) {
|
|
@@ -34,102 +4047,36 @@ export function convert(html, options) {
|
|
|
34
4047
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
35
4048
|
const ptr0 = passStringToWasm0(html, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
36
4049
|
const len0 = WASM_VECTOR_LEN;
|
|
37
|
-
|
|
4050
|
+
let ptr1 = 0;
|
|
4051
|
+
if (!isLikeNone(options)) {
|
|
4052
|
+
_assertClass(options, WasmConversionOptions);
|
|
4053
|
+
ptr1 = options.__destroy_into_raw();
|
|
4054
|
+
}
|
|
4055
|
+
wasm.convert(retptr, ptr0, len0, ptr1);
|
|
38
4056
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
39
4057
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
40
4058
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
41
4059
|
if (r2) {
|
|
42
4060
|
throw takeObject(r1);
|
|
43
4061
|
}
|
|
44
|
-
return
|
|
4062
|
+
return WasmConversionResult.__wrap(r0);
|
|
45
4063
|
} finally {
|
|
46
4064
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
47
4065
|
}
|
|
48
4066
|
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Initialize panic hook for better error messages in the browser
|
|
52
|
-
*/
|
|
53
|
-
export function init() {
|
|
54
|
-
wasm.init();
|
|
55
|
-
}
|
|
56
|
-
export function __wbg_Error_2e59b1b37a9a34c3(arg0, arg1) {
|
|
4067
|
+
export function __wbg_Error_960c155d3d49e4c2(arg0, arg1) {
|
|
57
4068
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
58
4069
|
return addHeapObject(ret);
|
|
59
4070
|
}
|
|
60
|
-
export function
|
|
61
|
-
const ret = Number(getObject(arg0));
|
|
62
|
-
return ret;
|
|
63
|
-
}
|
|
64
|
-
export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
65
|
-
const ret = String(getObject(arg1));
|
|
66
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
67
|
-
const len1 = WASM_VECTOR_LEN;
|
|
68
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
69
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
70
|
-
}
|
|
71
|
-
export function __wbg___wbindgen_bigint_get_as_i64_2c5082002e4826e2(arg0, arg1) {
|
|
72
|
-
const v = getObject(arg1);
|
|
73
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
74
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
75
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
76
|
-
}
|
|
77
|
-
export function __wbg___wbindgen_boolean_get_a86c216575a75c30(arg0) {
|
|
78
|
-
const v = getObject(arg0);
|
|
79
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
80
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
81
|
-
}
|
|
82
|
-
export function __wbg___wbindgen_debug_string_dd5d2d07ce9e6c57(arg0, arg1) {
|
|
83
|
-
const ret = debugString(getObject(arg1));
|
|
84
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
85
|
-
const len1 = WASM_VECTOR_LEN;
|
|
86
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
87
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
88
|
-
}
|
|
89
|
-
export function __wbg___wbindgen_in_4bd7a57e54337366(arg0, arg1) {
|
|
90
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
91
|
-
return ret;
|
|
92
|
-
}
|
|
93
|
-
export function __wbg___wbindgen_is_bigint_6c98f7e945dacdde(arg0) {
|
|
94
|
-
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
95
|
-
return ret;
|
|
96
|
-
}
|
|
97
|
-
export function __wbg___wbindgen_is_function_49868bde5eb1e745(arg0) {
|
|
98
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
99
|
-
return ret;
|
|
100
|
-
}
|
|
101
|
-
export function __wbg___wbindgen_is_null_344c8750a8525473(arg0) {
|
|
102
|
-
const ret = getObject(arg0) === null;
|
|
103
|
-
return ret;
|
|
104
|
-
}
|
|
105
|
-
export function __wbg___wbindgen_is_object_40c5a80572e8f9d3(arg0) {
|
|
106
|
-
const val = getObject(arg0);
|
|
107
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
108
|
-
return ret;
|
|
109
|
-
}
|
|
110
|
-
export function __wbg___wbindgen_is_string_b29b5c5a8065ba1a(arg0) {
|
|
4071
|
+
export function __wbg___wbindgen_is_string_6df3bf7ef1164ed3(arg0) {
|
|
111
4072
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
112
4073
|
return ret;
|
|
113
4074
|
}
|
|
114
|
-
export function
|
|
4075
|
+
export function __wbg___wbindgen_is_undefined_29a43b4d42920abd(arg0) {
|
|
115
4076
|
const ret = getObject(arg0) === undefined;
|
|
116
4077
|
return ret;
|
|
117
4078
|
}
|
|
118
|
-
export function
|
|
119
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
120
|
-
return ret;
|
|
121
|
-
}
|
|
122
|
-
export function __wbg___wbindgen_jsval_loose_eq_3a72ae764d46d944(arg0, arg1) {
|
|
123
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
124
|
-
return ret;
|
|
125
|
-
}
|
|
126
|
-
export function __wbg___wbindgen_number_get_7579aab02a8a620c(arg0, arg1) {
|
|
127
|
-
const obj = getObject(arg1);
|
|
128
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
129
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
130
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
131
|
-
}
|
|
132
|
-
export function __wbg___wbindgen_string_get_914df97fcfa788f2(arg0, arg1) {
|
|
4079
|
+
export function __wbg___wbindgen_string_get_7ed5322991caaec5(arg0, arg1) {
|
|
133
4080
|
const obj = getObject(arg1);
|
|
134
4081
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
135
4082
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -137,181 +4084,101 @@ export function __wbg___wbindgen_string_get_914df97fcfa788f2(arg0, arg1) {
|
|
|
137
4084
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
138
4085
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
139
4086
|
}
|
|
140
|
-
export function
|
|
4087
|
+
export function __wbg___wbindgen_throw_6b64449b9b9ed33c(arg0, arg1) {
|
|
141
4088
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
142
4089
|
}
|
|
143
|
-
export function
|
|
144
|
-
const ret =
|
|
145
|
-
return addHeapObject(ret);
|
|
146
|
-
}, arguments); }
|
|
147
|
-
export function __wbg_codePointAt_944099a761b59b26(arg0, arg1) {
|
|
148
|
-
const ret = getObject(arg0).codePointAt(arg1 >>> 0);
|
|
4090
|
+
export function __wbg_new_34d45cc8e36aaead() {
|
|
4091
|
+
const ret = new Map();
|
|
149
4092
|
return addHeapObject(ret);
|
|
150
4093
|
}
|
|
151
|
-
export function
|
|
152
|
-
const ret =
|
|
153
|
-
return ret;
|
|
4094
|
+
export function __wbg_new_aa8d0fa9762c29bd() {
|
|
4095
|
+
const ret = new Object();
|
|
4096
|
+
return addHeapObject(ret);
|
|
154
4097
|
}
|
|
155
|
-
export function
|
|
156
|
-
|
|
157
|
-
let deferred0_1;
|
|
158
|
-
try {
|
|
159
|
-
deferred0_0 = arg0;
|
|
160
|
-
deferred0_1 = arg1;
|
|
161
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
162
|
-
} finally {
|
|
163
|
-
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
164
|
-
}
|
|
4098
|
+
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
4099
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
165
4100
|
}
|
|
166
|
-
export function
|
|
167
|
-
const ret =
|
|
168
|
-
return addHeapObject(ret);
|
|
169
|
-
}, arguments); }
|
|
170
|
-
export function __wbg_get_unchecked_7d7babe32e9e6a54(arg0, arg1) {
|
|
171
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
4101
|
+
export function __wbg_set_fde2cec06c23692b(arg0, arg1, arg2) {
|
|
4102
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
172
4103
|
return addHeapObject(ret);
|
|
173
4104
|
}
|
|
174
|
-
export function
|
|
175
|
-
const ret =
|
|
4105
|
+
export function __wbg_wasmdocumentnode_new(arg0) {
|
|
4106
|
+
const ret = WasmDocumentNode.__wrap(arg0);
|
|
176
4107
|
return addHeapObject(ret);
|
|
177
4108
|
}
|
|
178
|
-
export function
|
|
179
|
-
|
|
180
|
-
try {
|
|
181
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
182
|
-
} catch (_) {
|
|
183
|
-
result = false;
|
|
184
|
-
}
|
|
185
|
-
const ret = result;
|
|
186
|
-
return ret;
|
|
187
|
-
}
|
|
188
|
-
export function __wbg_instanceof_Object_72ee0c53dd8f0726(arg0) {
|
|
189
|
-
let result;
|
|
190
|
-
try {
|
|
191
|
-
result = getObject(arg0) instanceof Object;
|
|
192
|
-
} catch (_) {
|
|
193
|
-
result = false;
|
|
194
|
-
}
|
|
195
|
-
const ret = result;
|
|
196
|
-
return ret;
|
|
197
|
-
}
|
|
198
|
-
export function __wbg_instanceof_Uint8Array_4b8da683deb25d72(arg0) {
|
|
199
|
-
let result;
|
|
200
|
-
try {
|
|
201
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
202
|
-
} catch (_) {
|
|
203
|
-
result = false;
|
|
204
|
-
}
|
|
205
|
-
const ret = result;
|
|
206
|
-
return ret;
|
|
207
|
-
}
|
|
208
|
-
export function __wbg_isArray_db61795ad004c139(arg0) {
|
|
209
|
-
const ret = Array.isArray(getObject(arg0));
|
|
210
|
-
return ret;
|
|
211
|
-
}
|
|
212
|
-
export function __wbg_isSafeInteger_ea83862ba994770c(arg0) {
|
|
213
|
-
const ret = Number.isSafeInteger(getObject(arg0));
|
|
4109
|
+
export function __wbg_wasmdocumentnode_unwrap(arg0) {
|
|
4110
|
+
const ret = WasmDocumentNode.__unwrap(getObject(arg0));
|
|
214
4111
|
return ret;
|
|
215
4112
|
}
|
|
216
|
-
export function
|
|
217
|
-
const ret =
|
|
218
|
-
return addHeapObject(ret);
|
|
219
|
-
}
|
|
220
|
-
export function __wbg_keys_e611eeb7873788db(arg0) {
|
|
221
|
-
const ret = Object.keys(getObject(arg0));
|
|
4113
|
+
export function __wbg_wasmgridcell_new(arg0) {
|
|
4114
|
+
const ret = WasmGridCell.__wrap(arg0);
|
|
222
4115
|
return addHeapObject(ret);
|
|
223
4116
|
}
|
|
224
|
-
export function
|
|
225
|
-
const ret = getObject(arg0)
|
|
4117
|
+
export function __wbg_wasmgridcell_unwrap(arg0) {
|
|
4118
|
+
const ret = WasmGridCell.__unwrap(getObject(arg0));
|
|
226
4119
|
return ret;
|
|
227
4120
|
}
|
|
228
|
-
export function
|
|
229
|
-
const ret =
|
|
230
|
-
return ret;
|
|
4121
|
+
export function __wbg_wasmheadermetadata_new(arg0) {
|
|
4122
|
+
const ret = WasmHeaderMetadata.__wrap(arg0);
|
|
4123
|
+
return addHeapObject(ret);
|
|
231
4124
|
}
|
|
232
|
-
export function
|
|
233
|
-
const ret = getObject(arg0)
|
|
4125
|
+
export function __wbg_wasmheadermetadata_unwrap(arg0) {
|
|
4126
|
+
const ret = WasmHeaderMetadata.__unwrap(getObject(arg0));
|
|
234
4127
|
return ret;
|
|
235
4128
|
}
|
|
236
|
-
export function
|
|
237
|
-
const ret =
|
|
238
|
-
return addHeapObject(ret);
|
|
239
|
-
}
|
|
240
|
-
export function __wbg_new_4f9fafbb3909af72() {
|
|
241
|
-
const ret = new Object();
|
|
4129
|
+
export function __wbg_wasmimagemetadata_new(arg0) {
|
|
4130
|
+
const ret = WasmImageMetadata.__wrap(arg0);
|
|
242
4131
|
return addHeapObject(ret);
|
|
243
4132
|
}
|
|
244
|
-
export function
|
|
245
|
-
const ret =
|
|
246
|
-
return
|
|
4133
|
+
export function __wbg_wasmimagemetadata_unwrap(arg0) {
|
|
4134
|
+
const ret = WasmImageMetadata.__unwrap(getObject(arg0));
|
|
4135
|
+
return ret;
|
|
247
4136
|
}
|
|
248
|
-
export function
|
|
249
|
-
const ret =
|
|
4137
|
+
export function __wbg_wasmlinkmetadata_new(arg0) {
|
|
4138
|
+
const ret = WasmLinkMetadata.__wrap(arg0);
|
|
250
4139
|
return addHeapObject(ret);
|
|
251
4140
|
}
|
|
252
|
-
export function
|
|
253
|
-
const ret =
|
|
254
|
-
return
|
|
4141
|
+
export function __wbg_wasmlinkmetadata_unwrap(arg0) {
|
|
4142
|
+
const ret = WasmLinkMetadata.__unwrap(getObject(arg0));
|
|
4143
|
+
return ret;
|
|
255
4144
|
}
|
|
256
|
-
export function
|
|
257
|
-
const ret =
|
|
4145
|
+
export function __wbg_wasmprocessingwarning_new(arg0) {
|
|
4146
|
+
const ret = WasmProcessingWarning.__wrap(arg0);
|
|
258
4147
|
return addHeapObject(ret);
|
|
259
4148
|
}
|
|
260
|
-
export function
|
|
261
|
-
const ret = getObject(arg0)
|
|
262
|
-
return
|
|
4149
|
+
export function __wbg_wasmprocessingwarning_unwrap(arg0) {
|
|
4150
|
+
const ret = WasmProcessingWarning.__unwrap(getObject(arg0));
|
|
4151
|
+
return ret;
|
|
263
4152
|
}
|
|
264
|
-
export function
|
|
265
|
-
const ret =
|
|
4153
|
+
export function __wbg_wasmstructureddata_new(arg0) {
|
|
4154
|
+
const ret = WasmStructuredData.__wrap(arg0);
|
|
266
4155
|
return addHeapObject(ret);
|
|
267
|
-
}, arguments); }
|
|
268
|
-
export function __wbg_prototypesetcall_3e05eb9545565046(arg0, arg1, arg2) {
|
|
269
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
270
4156
|
}
|
|
271
|
-
export function
|
|
272
|
-
const ret =
|
|
4157
|
+
export function __wbg_wasmstructureddata_unwrap(arg0) {
|
|
4158
|
+
const ret = WasmStructuredData.__unwrap(getObject(arg0));
|
|
273
4159
|
return ret;
|
|
274
4160
|
}
|
|
275
|
-
export function
|
|
276
|
-
const ret =
|
|
4161
|
+
export function __wbg_wasmtabledata_new(arg0) {
|
|
4162
|
+
const ret = WasmTableData.__wrap(arg0);
|
|
277
4163
|
return addHeapObject(ret);
|
|
278
4164
|
}
|
|
279
|
-
export function
|
|
280
|
-
getObject(arg0)
|
|
281
|
-
}
|
|
282
|
-
export function __wbg_set_6c60b2e8ad0e9383(arg0, arg1, arg2) {
|
|
283
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
284
|
-
}
|
|
285
|
-
export function __wbg_set_8ee2d34facb8466e() { return handleError(function (arg0, arg1, arg2) {
|
|
286
|
-
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
4165
|
+
export function __wbg_wasmtabledata_unwrap(arg0) {
|
|
4166
|
+
const ret = WasmTableData.__unwrap(getObject(arg0));
|
|
287
4167
|
return ret;
|
|
288
|
-
}, arguments); }
|
|
289
|
-
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
290
|
-
const ret = getObject(arg1).stack;
|
|
291
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
292
|
-
const len1 = WASM_VECTOR_LEN;
|
|
293
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
294
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
295
4168
|
}
|
|
296
|
-
export function
|
|
297
|
-
const ret =
|
|
4169
|
+
export function __wbg_wasmtextannotation_new(arg0) {
|
|
4170
|
+
const ret = WasmTextAnnotation.__wrap(arg0);
|
|
298
4171
|
return addHeapObject(ret);
|
|
299
4172
|
}
|
|
300
|
-
export function
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
return addHeapObject(ret);
|
|
4173
|
+
export function __wbg_wasmtextannotation_unwrap(arg0) {
|
|
4174
|
+
const ret = WasmTextAnnotation.__unwrap(getObject(arg0));
|
|
4175
|
+
return ret;
|
|
304
4176
|
}
|
|
305
|
-
export function
|
|
4177
|
+
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
306
4178
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
307
4179
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
308
4180
|
return addHeapObject(ret);
|
|
309
4181
|
}
|
|
310
|
-
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
311
|
-
// Cast intrinsic for `U64 -> Externref`.
|
|
312
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
313
|
-
return addHeapObject(ret);
|
|
314
|
-
}
|
|
315
4182
|
export function __wbindgen_object_clone_ref(arg0) {
|
|
316
4183
|
const ret = getObject(arg0);
|
|
317
4184
|
return addHeapObject(ret);
|
|
@@ -319,6 +4186,70 @@ export function __wbindgen_object_clone_ref(arg0) {
|
|
|
319
4186
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
320
4187
|
takeObject(arg0);
|
|
321
4188
|
}
|
|
4189
|
+
const WasmConversionOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4190
|
+
? { register: () => {}, unregister: () => {} }
|
|
4191
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptions_free(ptr >>> 0, 1));
|
|
4192
|
+
const WasmConversionOptionsBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4193
|
+
? { register: () => {}, unregister: () => {} }
|
|
4194
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsbuilder_free(ptr >>> 0, 1));
|
|
4195
|
+
const WasmConversionOptionsUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4196
|
+
? { register: () => {}, unregister: () => {} }
|
|
4197
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionoptionsupdate_free(ptr >>> 0, 1));
|
|
4198
|
+
const WasmConversionResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4199
|
+
? { register: () => {}, unregister: () => {} }
|
|
4200
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmconversionresult_free(ptr >>> 0, 1));
|
|
4201
|
+
const WasmDocumentMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4202
|
+
? { register: () => {}, unregister: () => {} }
|
|
4203
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentmetadata_free(ptr >>> 0, 1));
|
|
4204
|
+
const WasmDocumentNodeFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4205
|
+
? { register: () => {}, unregister: () => {} }
|
|
4206
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentnode_free(ptr >>> 0, 1));
|
|
4207
|
+
const WasmDocumentStructureFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4208
|
+
? { register: () => {}, unregister: () => {} }
|
|
4209
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocumentstructure_free(ptr >>> 0, 1));
|
|
4210
|
+
const WasmGridCellFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4211
|
+
? { register: () => {}, unregister: () => {} }
|
|
4212
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmgridcell_free(ptr >>> 0, 1));
|
|
4213
|
+
const WasmHeaderMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4214
|
+
? { register: () => {}, unregister: () => {} }
|
|
4215
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmheadermetadata_free(ptr >>> 0, 1));
|
|
4216
|
+
const WasmHtmlMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4217
|
+
? { register: () => {}, unregister: () => {} }
|
|
4218
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmhtmlmetadata_free(ptr >>> 0, 1));
|
|
4219
|
+
const WasmImageMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4220
|
+
? { register: () => {}, unregister: () => {} }
|
|
4221
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmimagemetadata_free(ptr >>> 0, 1));
|
|
4222
|
+
const WasmLinkMetadataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4223
|
+
? { register: () => {}, unregister: () => {} }
|
|
4224
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmlinkmetadata_free(ptr >>> 0, 1));
|
|
4225
|
+
const WasmMetadataConfigFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4226
|
+
? { register: () => {}, unregister: () => {} }
|
|
4227
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmetadataconfig_free(ptr >>> 0, 1));
|
|
4228
|
+
const WasmMetadataConfigUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4229
|
+
? { register: () => {}, unregister: () => {} }
|
|
4230
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmmetadataconfigupdate_free(ptr >>> 0, 1));
|
|
4231
|
+
const WasmPreprocessingOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4232
|
+
? { register: () => {}, unregister: () => {} }
|
|
4233
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptions_free(ptr >>> 0, 1));
|
|
4234
|
+
const WasmPreprocessingOptionsUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4235
|
+
? { register: () => {}, unregister: () => {} }
|
|
4236
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmpreprocessingoptionsupdate_free(ptr >>> 0, 1));
|
|
4237
|
+
const WasmProcessingWarningFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4238
|
+
? { register: () => {}, unregister: () => {} }
|
|
4239
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmprocessingwarning_free(ptr >>> 0, 1));
|
|
4240
|
+
const WasmStructuredDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4241
|
+
? { register: () => {}, unregister: () => {} }
|
|
4242
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmstructureddata_free(ptr >>> 0, 1));
|
|
4243
|
+
const WasmTableDataFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4244
|
+
? { register: () => {}, unregister: () => {} }
|
|
4245
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtabledata_free(ptr >>> 0, 1));
|
|
4246
|
+
const WasmTableGridFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4247
|
+
? { register: () => {}, unregister: () => {} }
|
|
4248
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtablegrid_free(ptr >>> 0, 1));
|
|
4249
|
+
const WasmTextAnnotationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4250
|
+
? { register: () => {}, unregister: () => {} }
|
|
4251
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtextannotation_free(ptr >>> 0, 1));
|
|
4252
|
+
|
|
322
4253
|
function addHeapObject(obj) {
|
|
323
4254
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
324
4255
|
const idx = heap_next;
|
|
@@ -328,69 +4259,10 @@ function addHeapObject(obj) {
|
|
|
328
4259
|
return idx;
|
|
329
4260
|
}
|
|
330
4261
|
|
|
331
|
-
function
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
335
|
-
return `${val}`;
|
|
336
|
-
}
|
|
337
|
-
if (type == 'string') {
|
|
338
|
-
return `"${val}"`;
|
|
339
|
-
}
|
|
340
|
-
if (type == 'symbol') {
|
|
341
|
-
const description = val.description;
|
|
342
|
-
if (description == null) {
|
|
343
|
-
return 'Symbol';
|
|
344
|
-
} else {
|
|
345
|
-
return `Symbol(${description})`;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
if (type == 'function') {
|
|
349
|
-
const name = val.name;
|
|
350
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
351
|
-
return `Function(${name})`;
|
|
352
|
-
} else {
|
|
353
|
-
return 'Function';
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
// objects
|
|
357
|
-
if (Array.isArray(val)) {
|
|
358
|
-
const length = val.length;
|
|
359
|
-
let debug = '[';
|
|
360
|
-
if (length > 0) {
|
|
361
|
-
debug += debugString(val[0]);
|
|
362
|
-
}
|
|
363
|
-
for(let i = 1; i < length; i++) {
|
|
364
|
-
debug += ', ' + debugString(val[i]);
|
|
365
|
-
}
|
|
366
|
-
debug += ']';
|
|
367
|
-
return debug;
|
|
368
|
-
}
|
|
369
|
-
// Test for built-in
|
|
370
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
371
|
-
let className;
|
|
372
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
373
|
-
className = builtInMatches[1];
|
|
374
|
-
} else {
|
|
375
|
-
// Failed to match the standard '[object ClassName]'
|
|
376
|
-
return toString.call(val);
|
|
377
|
-
}
|
|
378
|
-
if (className == 'Object') {
|
|
379
|
-
// we're a user defined class or Object
|
|
380
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
381
|
-
// easier than looping through ownProperties of `val`.
|
|
382
|
-
try {
|
|
383
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
384
|
-
} catch (_) {
|
|
385
|
-
return 'Object';
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
// errors
|
|
389
|
-
if (val instanceof Error) {
|
|
390
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
4262
|
+
function _assertClass(instance, klass) {
|
|
4263
|
+
if (!(instance instanceof klass)) {
|
|
4264
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
391
4265
|
}
|
|
392
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
393
|
-
return className;
|
|
394
4266
|
}
|
|
395
4267
|
|
|
396
4268
|
function dropObject(idx) {
|
|
@@ -399,9 +4271,19 @@ function dropObject(idx) {
|
|
|
399
4271
|
heap_next = idx;
|
|
400
4272
|
}
|
|
401
4273
|
|
|
402
|
-
function
|
|
4274
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
4275
|
+
ptr = ptr >>> 0;
|
|
4276
|
+
const mem = getDataViewMemory0();
|
|
4277
|
+
const result = [];
|
|
4278
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
4279
|
+
result.push(takeObject(mem.getUint32(i, true)));
|
|
4280
|
+
}
|
|
4281
|
+
return result;
|
|
4282
|
+
}
|
|
4283
|
+
|
|
4284
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
403
4285
|
ptr = ptr >>> 0;
|
|
404
|
-
return
|
|
4286
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
405
4287
|
}
|
|
406
4288
|
|
|
407
4289
|
let cachedDataViewMemory0 = null;
|
|
@@ -417,6 +4299,14 @@ function getStringFromWasm0(ptr, len) {
|
|
|
417
4299
|
return decodeText(ptr, len);
|
|
418
4300
|
}
|
|
419
4301
|
|
|
4302
|
+
let cachedUint32ArrayMemory0 = null;
|
|
4303
|
+
function getUint32ArrayMemory0() {
|
|
4304
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
4305
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
4306
|
+
}
|
|
4307
|
+
return cachedUint32ArrayMemory0;
|
|
4308
|
+
}
|
|
4309
|
+
|
|
420
4310
|
let cachedUint8ArrayMemory0 = null;
|
|
421
4311
|
function getUint8ArrayMemory0() {
|
|
422
4312
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -427,14 +4317,6 @@ function getUint8ArrayMemory0() {
|
|
|
427
4317
|
|
|
428
4318
|
function getObject(idx) { return heap[idx]; }
|
|
429
4319
|
|
|
430
|
-
function handleError(f, args) {
|
|
431
|
-
try {
|
|
432
|
-
return f.apply(this, args);
|
|
433
|
-
} catch (e) {
|
|
434
|
-
wasm.__wbindgen_export3(addHeapObject(e));
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
|
|
438
4320
|
let heap = new Array(1024).fill(undefined);
|
|
439
4321
|
heap.push(undefined, null, true, false);
|
|
440
4322
|
|
|
@@ -444,6 +4326,23 @@ function isLikeNone(x) {
|
|
|
444
4326
|
return x === undefined || x === null;
|
|
445
4327
|
}
|
|
446
4328
|
|
|
4329
|
+
function passArray32ToWasm0(arg, malloc) {
|
|
4330
|
+
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
4331
|
+
getUint32ArrayMemory0().set(arg, ptr / 4);
|
|
4332
|
+
WASM_VECTOR_LEN = arg.length;
|
|
4333
|
+
return ptr;
|
|
4334
|
+
}
|
|
4335
|
+
|
|
4336
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
4337
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
4338
|
+
const mem = getDataViewMemory0();
|
|
4339
|
+
for (let i = 0; i < array.length; i++) {
|
|
4340
|
+
mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
|
|
4341
|
+
}
|
|
4342
|
+
WASM_VECTOR_LEN = array.length;
|
|
4343
|
+
return ptr;
|
|
4344
|
+
}
|
|
4345
|
+
|
|
447
4346
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
448
4347
|
if (realloc === undefined) {
|
|
449
4348
|
const buf = cachedTextEncoder.encode(arg);
|