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