@css-inline/css-inline-wasm 0.16.0 → 0.18.0
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/index.d.ts +2 -0
- package/index.js +135 -135
- package/index.min.js +2 -2
- package/index.mjs +135 -135
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -29,6 +29,33 @@ module.exports = __toCommonJS(wasm_binding_exports);
|
|
|
29
29
|
|
|
30
30
|
// wasm/dist/index.js
|
|
31
31
|
var wasm;
|
|
32
|
+
var cachedUint8ArrayMemory0 = null;
|
|
33
|
+
function getUint8ArrayMemory0() {
|
|
34
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
35
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
36
|
+
}
|
|
37
|
+
return cachedUint8ArrayMemory0;
|
|
38
|
+
}
|
|
39
|
+
var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
40
|
+
cachedTextDecoder.decode();
|
|
41
|
+
var MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
42
|
+
var numBytesDecoded = 0;
|
|
43
|
+
function decodeText(ptr, len) {
|
|
44
|
+
numBytesDecoded += len;
|
|
45
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
46
|
+
cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
47
|
+
cachedTextDecoder.decode();
|
|
48
|
+
numBytesDecoded = len;
|
|
49
|
+
}
|
|
50
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
51
|
+
}
|
|
52
|
+
function getStringFromWasm0(ptr, len) {
|
|
53
|
+
ptr = ptr >>> 0;
|
|
54
|
+
return decodeText(ptr, len);
|
|
55
|
+
}
|
|
56
|
+
function isLikeNone(x) {
|
|
57
|
+
return x === void 0 || x === null;
|
|
58
|
+
}
|
|
32
59
|
function debugString(val) {
|
|
33
60
|
const type = typeof val;
|
|
34
61
|
if (type == "number" || type == "boolean" || val == null) {
|
|
@@ -86,26 +113,17 @@ ${val.stack}`;
|
|
|
86
113
|
return className;
|
|
87
114
|
}
|
|
88
115
|
var WASM_VECTOR_LEN = 0;
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
} };
|
|
99
|
-
var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
|
|
100
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
101
|
-
} : function(arg, view) {
|
|
102
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
103
|
-
view.set(buf);
|
|
104
|
-
return {
|
|
105
|
-
read: arg.length,
|
|
106
|
-
written: buf.length
|
|
116
|
+
var cachedTextEncoder = new TextEncoder();
|
|
117
|
+
if (!("encodeInto" in cachedTextEncoder)) {
|
|
118
|
+
cachedTextEncoder.encodeInto = function(arg, view) {
|
|
119
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
120
|
+
view.set(buf);
|
|
121
|
+
return {
|
|
122
|
+
read: arg.length,
|
|
123
|
+
written: buf.length
|
|
124
|
+
};
|
|
107
125
|
};
|
|
108
|
-
}
|
|
126
|
+
}
|
|
109
127
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
110
128
|
if (realloc === void 0) {
|
|
111
129
|
const buf = cachedTextEncoder.encode(arg);
|
|
@@ -129,7 +147,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
129
147
|
}
|
|
130
148
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
131
149
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
132
|
-
const ret =
|
|
150
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
133
151
|
offset += ret.written;
|
|
134
152
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
135
153
|
}
|
|
@@ -143,45 +161,27 @@ function getDataViewMemory0() {
|
|
|
143
161
|
}
|
|
144
162
|
return cachedDataViewMemory0;
|
|
145
163
|
}
|
|
146
|
-
|
|
147
|
-
throw Error("TextDecoder not available");
|
|
148
|
-
} };
|
|
149
|
-
if (typeof TextDecoder !== "undefined") {
|
|
150
|
-
cachedTextDecoder.decode();
|
|
151
|
-
}
|
|
152
|
-
function getStringFromWasm0(ptr, len) {
|
|
164
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
153
165
|
ptr = ptr >>> 0;
|
|
154
|
-
return
|
|
166
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
155
167
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
168
|
+
function version() {
|
|
169
|
+
let deferred1_0;
|
|
170
|
+
let deferred1_1;
|
|
171
|
+
try {
|
|
172
|
+
const ret = wasm.version();
|
|
173
|
+
deferred1_0 = ret[0];
|
|
174
|
+
deferred1_1 = ret[1];
|
|
175
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
176
|
+
} finally {
|
|
177
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
178
|
+
}
|
|
158
179
|
}
|
|
159
180
|
function takeFromExternrefTable0(idx) {
|
|
160
|
-
const value = wasm.
|
|
181
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
161
182
|
wasm.__externref_table_dealloc(idx);
|
|
162
183
|
return value;
|
|
163
184
|
}
|
|
164
|
-
function inline(html, options) {
|
|
165
|
-
let deferred3_0;
|
|
166
|
-
let deferred3_1;
|
|
167
|
-
try {
|
|
168
|
-
const ptr0 = passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
169
|
-
const len0 = WASM_VECTOR_LEN;
|
|
170
|
-
const ret = wasm.inline(ptr0, len0, options);
|
|
171
|
-
var ptr2 = ret[0];
|
|
172
|
-
var len2 = ret[1];
|
|
173
|
-
if (ret[3]) {
|
|
174
|
-
ptr2 = 0;
|
|
175
|
-
len2 = 0;
|
|
176
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
177
|
-
}
|
|
178
|
-
deferred3_0 = ptr2;
|
|
179
|
-
deferred3_1 = len2;
|
|
180
|
-
return getStringFromWasm0(ptr2, len2);
|
|
181
|
-
} finally {
|
|
182
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
185
|
function inlineFragment(html, css, options) {
|
|
186
186
|
let deferred4_0;
|
|
187
187
|
let deferred4_1;
|
|
@@ -205,25 +205,36 @@ function inlineFragment(html, css, options) {
|
|
|
205
205
|
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
let
|
|
210
|
-
let
|
|
208
|
+
function inline(html, options) {
|
|
209
|
+
let deferred3_0;
|
|
210
|
+
let deferred3_1;
|
|
211
211
|
try {
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
const ptr0 = passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
213
|
+
const len0 = WASM_VECTOR_LEN;
|
|
214
|
+
const ret = wasm.inline(ptr0, len0, options);
|
|
215
|
+
var ptr2 = ret[0];
|
|
216
|
+
var len2 = ret[1];
|
|
217
|
+
if (ret[3]) {
|
|
218
|
+
ptr2 = 0;
|
|
219
|
+
len2 = 0;
|
|
220
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
221
|
+
}
|
|
222
|
+
deferred3_0 = ptr2;
|
|
223
|
+
deferred3_1 = len2;
|
|
224
|
+
return getStringFromWasm0(ptr2, len2);
|
|
216
225
|
} finally {
|
|
217
|
-
wasm.__wbindgen_free(
|
|
226
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
218
227
|
}
|
|
219
228
|
}
|
|
229
|
+
var EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
|
|
220
230
|
async function __wbg_load(module2, imports) {
|
|
221
231
|
if (typeof Response === "function" && module2 instanceof Response) {
|
|
222
232
|
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
223
233
|
try {
|
|
224
234
|
return await WebAssembly.instantiateStreaming(module2, imports);
|
|
225
235
|
} catch (e) {
|
|
226
|
-
|
|
236
|
+
const validResponse = module2.ok && EXPECTED_RESPONSE_TYPES.has(module2.type);
|
|
237
|
+
if (validResponse && module2.headers.get("Content-Type") !== "application/wasm") {
|
|
227
238
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
228
239
|
} else {
|
|
229
240
|
throw e;
|
|
@@ -244,15 +255,65 @@ async function __wbg_load(module2, imports) {
|
|
|
244
255
|
function __wbg_get_imports() {
|
|
245
256
|
const imports = {};
|
|
246
257
|
imports.wbg = {};
|
|
247
|
-
imports.wbg.
|
|
248
|
-
const ret = arg0
|
|
258
|
+
imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
259
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
260
|
+
return ret;
|
|
261
|
+
};
|
|
262
|
+
imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
|
|
263
|
+
const ret = Number(arg0);
|
|
264
|
+
return ret;
|
|
265
|
+
};
|
|
266
|
+
imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
267
|
+
const v = arg0;
|
|
268
|
+
const ret = typeof v === "boolean" ? v : void 0;
|
|
269
|
+
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
270
|
+
};
|
|
271
|
+
imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
272
|
+
const ret = debugString(arg1);
|
|
273
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
274
|
+
const len1 = WASM_VECTOR_LEN;
|
|
275
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
276
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
277
|
+
};
|
|
278
|
+
imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
|
|
279
|
+
const ret = arg0 in arg1;
|
|
249
280
|
return ret;
|
|
250
281
|
};
|
|
251
|
-
imports.wbg.
|
|
282
|
+
imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
283
|
+
const val = arg0;
|
|
284
|
+
const ret = typeof val === "object" && val !== null;
|
|
285
|
+
return ret;
|
|
286
|
+
};
|
|
287
|
+
imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
288
|
+
const ret = arg0 === void 0;
|
|
289
|
+
return ret;
|
|
290
|
+
};
|
|
291
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
292
|
+
const ret = arg0 == arg1;
|
|
293
|
+
return ret;
|
|
294
|
+
};
|
|
295
|
+
imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
296
|
+
const obj = arg1;
|
|
297
|
+
const ret = typeof obj === "number" ? obj : void 0;
|
|
298
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
299
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
300
|
+
};
|
|
301
|
+
imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
302
|
+
const obj = arg1;
|
|
303
|
+
const ret = typeof obj === "string" ? obj : void 0;
|
|
304
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
305
|
+
var len1 = WASM_VECTOR_LEN;
|
|
306
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
307
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
308
|
+
};
|
|
309
|
+
imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
310
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
311
|
+
};
|
|
312
|
+
imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
252
313
|
const ret = arg0[arg1];
|
|
253
314
|
return ret;
|
|
254
315
|
};
|
|
255
|
-
imports.wbg.
|
|
316
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
256
317
|
let result;
|
|
257
318
|
try {
|
|
258
319
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -262,7 +323,7 @@ function __wbg_get_imports() {
|
|
|
262
323
|
const ret = result;
|
|
263
324
|
return ret;
|
|
264
325
|
};
|
|
265
|
-
imports.wbg.
|
|
326
|
+
imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
266
327
|
let result;
|
|
267
328
|
try {
|
|
268
329
|
result = arg0 instanceof Uint8Array;
|
|
@@ -272,47 +333,27 @@ function __wbg_get_imports() {
|
|
|
272
333
|
const ret = result;
|
|
273
334
|
return ret;
|
|
274
335
|
};
|
|
275
|
-
imports.wbg.
|
|
336
|
+
imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
|
|
276
337
|
const ret = Number.isSafeInteger(arg0);
|
|
277
338
|
return ret;
|
|
278
339
|
};
|
|
279
|
-
imports.wbg.
|
|
340
|
+
imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
280
341
|
const ret = arg0.length;
|
|
281
342
|
return ret;
|
|
282
343
|
};
|
|
283
|
-
imports.wbg.
|
|
344
|
+
imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
284
345
|
const ret = new Uint8Array(arg0);
|
|
285
346
|
return ret;
|
|
286
347
|
};
|
|
287
|
-
imports.wbg.
|
|
288
|
-
|
|
348
|
+
imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
349
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
289
350
|
};
|
|
290
|
-
imports.wbg.
|
|
291
|
-
const ret =
|
|
292
|
-
return ret;
|
|
293
|
-
};
|
|
294
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
295
|
-
const v = arg0;
|
|
296
|
-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
297
|
-
return ret;
|
|
298
|
-
};
|
|
299
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
300
|
-
const ret = debugString(arg1);
|
|
301
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
302
|
-
const len1 = WASM_VECTOR_LEN;
|
|
303
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
304
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
305
|
-
};
|
|
306
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
307
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
308
|
-
return ret;
|
|
309
|
-
};
|
|
310
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
311
|
-
const ret = arg0 in arg1;
|
|
351
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
352
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
312
353
|
return ret;
|
|
313
354
|
};
|
|
314
355
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
315
|
-
const table = wasm.
|
|
356
|
+
const table = wasm.__wbindgen_externrefs;
|
|
316
357
|
const offset = table.grow(4);
|
|
317
358
|
table.set(0, void 0);
|
|
318
359
|
table.set(offset + 0, void 0);
|
|
@@ -321,48 +362,8 @@ function __wbg_get_imports() {
|
|
|
321
362
|
table.set(offset + 3, false);
|
|
322
363
|
;
|
|
323
364
|
};
|
|
324
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
325
|
-
const val = arg0;
|
|
326
|
-
const ret = typeof val === "object" && val !== null;
|
|
327
|
-
return ret;
|
|
328
|
-
};
|
|
329
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
330
|
-
const ret = arg0 === void 0;
|
|
331
|
-
return ret;
|
|
332
|
-
};
|
|
333
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
334
|
-
const ret = arg0 == arg1;
|
|
335
|
-
return ret;
|
|
336
|
-
};
|
|
337
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
338
|
-
const ret = wasm.memory;
|
|
339
|
-
return ret;
|
|
340
|
-
};
|
|
341
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
342
|
-
const obj = arg1;
|
|
343
|
-
const ret = typeof obj === "number" ? obj : void 0;
|
|
344
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
345
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
346
|
-
};
|
|
347
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
348
|
-
const obj = arg1;
|
|
349
|
-
const ret = typeof obj === "string" ? obj : void 0;
|
|
350
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
351
|
-
var len1 = WASM_VECTOR_LEN;
|
|
352
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
353
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
354
|
-
};
|
|
355
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
356
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
357
|
-
return ret;
|
|
358
|
-
};
|
|
359
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
360
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
361
|
-
};
|
|
362
365
|
return imports;
|
|
363
366
|
}
|
|
364
|
-
function __wbg_init_memory(imports, memory) {
|
|
365
|
-
}
|
|
366
367
|
function __wbg_finalize_init(instance, module2) {
|
|
367
368
|
wasm = instance.exports;
|
|
368
369
|
__wbg_init.__wbindgen_wasm_module = module2;
|
|
@@ -387,7 +388,6 @@ async function __wbg_init(module_or_path) {
|
|
|
387
388
|
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
388
389
|
module_or_path = fetch(module_or_path);
|
|
389
390
|
}
|
|
390
|
-
__wbg_init_memory(imports);
|
|
391
391
|
const { instance, module: module2 } = await __wbg_load(await module_or_path, imports);
|
|
392
392
|
return __wbg_finalize_init(instance, module2);
|
|
393
393
|
}
|
package/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var cssInline=(()=>{var
|
|
2
|
-
${e.stack}`:r}var
|
|
1
|
+
"use strict";var cssInline=(()=>{var A=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var k=(e,n)=>{for(var t in n)A(e,t,{get:n[t],enumerable:!0})},B=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of D(n))!N.call(e,i)&&i!==t&&A(e,i,{get:()=>n[i],enumerable:!(r=U(n,i))||r.enumerable});return e};var P=e=>B(A({},"__esModule",{value:!0}),e);var H={};k(H,{initWasm:()=>X,inline:()=>Y,inlineFragment:()=>J,version:()=>G});var o,l=null;function d(){return(l===null||l.byteLength===0)&&(l=new Uint8Array(o.memory.buffer)),l}var h=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});h.decode();var $=2146435072,I=0;function L(e,n){return I+=n,I>=$&&(h=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),h.decode(),I=n),h.decode(d().subarray(e,e+n))}function g(e,n){return e=e>>>0,L(e,n)}function m(e){return e==null}function x(e){let n=typeof e;if(n=="number"||n=="boolean"||e==null)return`${e}`;if(n=="string")return`"${e}"`;if(n=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(n=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,c="[";i>0&&(c+=x(e[0]));for(let s=1;s<i;s++)c+=", "+x(e[s]);return c+="]",c}let t=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(t&&t.length>1)r=t[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:r}var b=0,w=new TextEncoder;"encodeInto"in w||(w.encodeInto=function(e,n){let t=w.encode(e);return n.set(t),{read:e.length,written:t.length}});function y(e,n,t){if(t===void 0){let f=w.encode(e),_=n(f.length,1)>>>0;return d().subarray(_,_+f.length).set(f),b=f.length,_}let r=e.length,i=n(r,1)>>>0,c=d(),s=0;for(;s<r;s++){let f=e.charCodeAt(s);if(f>127)break;c[i+s]=f}if(s!==r){s!==0&&(e=e.slice(s)),i=t(i,r,r=s+e.length*3,1)>>>0;let f=d().subarray(i+s,i+r),_=w.encodeInto(e,f);s+=_.written,i=t(i,r,s,1)>>>0}return b=s,i}var a=null;function u(){return(a===null||a.buffer.detached===!0||a.buffer.detached===void 0&&a.buffer!==o.memory.buffer)&&(a=new DataView(o.memory.buffer)),a}function v(e,n){return e=e>>>0,d().subarray(e/1,e/1+n)}function S(){let e,n;try{let t=o.version();return e=t[0],n=t[1],g(t[0],t[1])}finally{o.__wbindgen_free(e,n,1)}}function E(e){let n=o.__wbindgen_externrefs.get(e);return o.__externref_table_dealloc(e),n}function F(e,n,t){let r,i;try{let f=y(e,o.__wbindgen_malloc,o.__wbindgen_realloc),_=b,M=y(n,o.__wbindgen_malloc,o.__wbindgen_realloc),R=b,p=o.inlineFragment(f,_,M,R,t);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,E(p[2]);return r=c,i=s,g(c,s)}finally{o.__wbindgen_free(r,i,1)}}function O(e,n){let t,r;try{let s=y(e,o.__wbindgen_malloc,o.__wbindgen_realloc),f=b,_=o.inline(s,f,n);var i=_[0],c=_[1];if(_[3])throw i=0,c=0,E(_[2]);return t=i,r=c,g(i,c)}finally{o.__wbindgen_free(t,r,1)}}var C=new Set(["basic","cors","default"]);async function z(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.ok&&C.has(e.type)&&e.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function V(){let e={};return e.wbg={},e.wbg.__wbg_Error_e83987f665cf5504=function(n,t){return Error(g(n,t))},e.wbg.__wbg_Number_bb48ca12f395cd08=function(n){return Number(n)},e.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68=function(n){let t=n,r=typeof t=="boolean"?t:void 0;return m(r)?16777215:r?1:0},e.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763=function(n,t){let r=x(t),i=y(r,o.__wbindgen_malloc,o.__wbindgen_realloc),c=b;u().setInt32(n+4*1,c,!0),u().setInt32(n+4*0,i,!0)},e.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f=function(n,t){return n in t},e.wbg.__wbg___wbindgen_is_object_c818261d21f283a4=function(n){let t=n;return typeof t=="object"&&t!==null},e.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478=function(n){return n===void 0},e.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147=function(n,t){return n==t},e.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d=function(n,t){let r=t,i=typeof r=="number"?r:void 0;u().setFloat64(n+8*1,m(i)?0:i,!0),u().setInt32(n+4*0,!m(i),!0)},e.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b=function(n,t){let r=t,i=typeof r=="string"?r:void 0;var c=m(i)?0:y(i,o.__wbindgen_malloc,o.__wbindgen_realloc),s=b;u().setInt32(n+4*1,s,!0),u().setInt32(n+4*0,c,!0)},e.wbg.__wbg___wbindgen_throw_b855445ff6a94295=function(n,t){throw new Error(g(n,t))},e.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(n,t){return n[t]},e.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38=function(n){let t;try{t=n instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98=function(n){let t;try{t=n instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_isSafeInteger_d216eda7911dde36=function(n){return Number.isSafeInteger(n)},e.wbg.__wbg_length_69bca3cb64fc8748=function(n){return n.length},e.wbg.__wbg_new_5a79be3ab53b8aa5=function(n){return new Uint8Array(n)},e.wbg.__wbg_prototypesetcall_2a6620b6922694b2=function(n,t,r){Uint8Array.prototype.set.call(v(n,t),r)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(n,t){return g(n,t)},e.wbg.__wbindgen_init_externref_table=function(){let n=o.__wbindgen_externrefs,t=n.grow(4);n.set(0,void 0),n.set(t+0,void 0),n.set(t+1,null),n.set(t+2,!0),n.set(t+3,!1)},e}function q(e,n){return o=e.exports,W.__wbindgen_wasm_module=n,a=null,l=null,o.__wbindgen_start(),o}async function W(e){if(o!==void 0)return o;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("index_bg.wasm",void 0));let n=V();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await z(await e,n);return q(t,r)}var j=W;var T=!1,X=async e=>{if(T)throw new Error("Already initialized. The `initWasm()` function can be used only once.");await j(await e),T=!0};function Y(e,n){return O(e,n)}function J(e,n,t){return F(e,n,t)}function G(){return S()}return P(H);})();
|
package/index.mjs
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
// wasm/dist/index.js
|
|
2
2
|
var wasm;
|
|
3
|
+
var cachedUint8ArrayMemory0 = null;
|
|
4
|
+
function getUint8ArrayMemory0() {
|
|
5
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
6
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
7
|
+
}
|
|
8
|
+
return cachedUint8ArrayMemory0;
|
|
9
|
+
}
|
|
10
|
+
var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
11
|
+
cachedTextDecoder.decode();
|
|
12
|
+
var MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
13
|
+
var numBytesDecoded = 0;
|
|
14
|
+
function decodeText(ptr, len) {
|
|
15
|
+
numBytesDecoded += len;
|
|
16
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
17
|
+
cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
18
|
+
cachedTextDecoder.decode();
|
|
19
|
+
numBytesDecoded = len;
|
|
20
|
+
}
|
|
21
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
22
|
+
}
|
|
23
|
+
function getStringFromWasm0(ptr, len) {
|
|
24
|
+
ptr = ptr >>> 0;
|
|
25
|
+
return decodeText(ptr, len);
|
|
26
|
+
}
|
|
27
|
+
function isLikeNone(x) {
|
|
28
|
+
return x === void 0 || x === null;
|
|
29
|
+
}
|
|
3
30
|
function debugString(val) {
|
|
4
31
|
const type = typeof val;
|
|
5
32
|
if (type == "number" || type == "boolean" || val == null) {
|
|
@@ -57,26 +84,17 @@ ${val.stack}`;
|
|
|
57
84
|
return className;
|
|
58
85
|
}
|
|
59
86
|
var WASM_VECTOR_LEN = 0;
|
|
60
|
-
var
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} };
|
|
70
|
-
var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
|
|
71
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
72
|
-
} : function(arg, view) {
|
|
73
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
74
|
-
view.set(buf);
|
|
75
|
-
return {
|
|
76
|
-
read: arg.length,
|
|
77
|
-
written: buf.length
|
|
87
|
+
var cachedTextEncoder = new TextEncoder();
|
|
88
|
+
if (!("encodeInto" in cachedTextEncoder)) {
|
|
89
|
+
cachedTextEncoder.encodeInto = function(arg, view) {
|
|
90
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
91
|
+
view.set(buf);
|
|
92
|
+
return {
|
|
93
|
+
read: arg.length,
|
|
94
|
+
written: buf.length
|
|
95
|
+
};
|
|
78
96
|
};
|
|
79
|
-
}
|
|
97
|
+
}
|
|
80
98
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
81
99
|
if (realloc === void 0) {
|
|
82
100
|
const buf = cachedTextEncoder.encode(arg);
|
|
@@ -100,7 +118,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
100
118
|
}
|
|
101
119
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
102
120
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
103
|
-
const ret =
|
|
121
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
104
122
|
offset += ret.written;
|
|
105
123
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
106
124
|
}
|
|
@@ -114,45 +132,27 @@ function getDataViewMemory0() {
|
|
|
114
132
|
}
|
|
115
133
|
return cachedDataViewMemory0;
|
|
116
134
|
}
|
|
117
|
-
|
|
118
|
-
throw Error("TextDecoder not available");
|
|
119
|
-
} };
|
|
120
|
-
if (typeof TextDecoder !== "undefined") {
|
|
121
|
-
cachedTextDecoder.decode();
|
|
122
|
-
}
|
|
123
|
-
function getStringFromWasm0(ptr, len) {
|
|
135
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
124
136
|
ptr = ptr >>> 0;
|
|
125
|
-
return
|
|
137
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
126
138
|
}
|
|
127
|
-
function
|
|
128
|
-
|
|
139
|
+
function version() {
|
|
140
|
+
let deferred1_0;
|
|
141
|
+
let deferred1_1;
|
|
142
|
+
try {
|
|
143
|
+
const ret = wasm.version();
|
|
144
|
+
deferred1_0 = ret[0];
|
|
145
|
+
deferred1_1 = ret[1];
|
|
146
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
147
|
+
} finally {
|
|
148
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
149
|
+
}
|
|
129
150
|
}
|
|
130
151
|
function takeFromExternrefTable0(idx) {
|
|
131
|
-
const value = wasm.
|
|
152
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
132
153
|
wasm.__externref_table_dealloc(idx);
|
|
133
154
|
return value;
|
|
134
155
|
}
|
|
135
|
-
function inline(html, options) {
|
|
136
|
-
let deferred3_0;
|
|
137
|
-
let deferred3_1;
|
|
138
|
-
try {
|
|
139
|
-
const ptr0 = passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
140
|
-
const len0 = WASM_VECTOR_LEN;
|
|
141
|
-
const ret = wasm.inline(ptr0, len0, options);
|
|
142
|
-
var ptr2 = ret[0];
|
|
143
|
-
var len2 = ret[1];
|
|
144
|
-
if (ret[3]) {
|
|
145
|
-
ptr2 = 0;
|
|
146
|
-
len2 = 0;
|
|
147
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
148
|
-
}
|
|
149
|
-
deferred3_0 = ptr2;
|
|
150
|
-
deferred3_1 = len2;
|
|
151
|
-
return getStringFromWasm0(ptr2, len2);
|
|
152
|
-
} finally {
|
|
153
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
156
|
function inlineFragment(html, css, options) {
|
|
157
157
|
let deferred4_0;
|
|
158
158
|
let deferred4_1;
|
|
@@ -176,25 +176,36 @@ function inlineFragment(html, css, options) {
|
|
|
176
176
|
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
let
|
|
181
|
-
let
|
|
179
|
+
function inline(html, options) {
|
|
180
|
+
let deferred3_0;
|
|
181
|
+
let deferred3_1;
|
|
182
182
|
try {
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
const ptr0 = passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
184
|
+
const len0 = WASM_VECTOR_LEN;
|
|
185
|
+
const ret = wasm.inline(ptr0, len0, options);
|
|
186
|
+
var ptr2 = ret[0];
|
|
187
|
+
var len2 = ret[1];
|
|
188
|
+
if (ret[3]) {
|
|
189
|
+
ptr2 = 0;
|
|
190
|
+
len2 = 0;
|
|
191
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
192
|
+
}
|
|
193
|
+
deferred3_0 = ptr2;
|
|
194
|
+
deferred3_1 = len2;
|
|
195
|
+
return getStringFromWasm0(ptr2, len2);
|
|
187
196
|
} finally {
|
|
188
|
-
wasm.__wbindgen_free(
|
|
197
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
189
198
|
}
|
|
190
199
|
}
|
|
200
|
+
var EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
|
|
191
201
|
async function __wbg_load(module, imports) {
|
|
192
202
|
if (typeof Response === "function" && module instanceof Response) {
|
|
193
203
|
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
194
204
|
try {
|
|
195
205
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
196
206
|
} catch (e) {
|
|
197
|
-
|
|
207
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
208
|
+
if (validResponse && module.headers.get("Content-Type") !== "application/wasm") {
|
|
198
209
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
199
210
|
} else {
|
|
200
211
|
throw e;
|
|
@@ -215,15 +226,65 @@ async function __wbg_load(module, imports) {
|
|
|
215
226
|
function __wbg_get_imports() {
|
|
216
227
|
const imports = {};
|
|
217
228
|
imports.wbg = {};
|
|
218
|
-
imports.wbg.
|
|
219
|
-
const ret = arg0
|
|
229
|
+
imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
230
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
231
|
+
return ret;
|
|
232
|
+
};
|
|
233
|
+
imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
|
|
234
|
+
const ret = Number(arg0);
|
|
235
|
+
return ret;
|
|
236
|
+
};
|
|
237
|
+
imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
238
|
+
const v = arg0;
|
|
239
|
+
const ret = typeof v === "boolean" ? v : void 0;
|
|
240
|
+
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
241
|
+
};
|
|
242
|
+
imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
243
|
+
const ret = debugString(arg1);
|
|
244
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
+
const len1 = WASM_VECTOR_LEN;
|
|
246
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
247
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
248
|
+
};
|
|
249
|
+
imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
|
|
250
|
+
const ret = arg0 in arg1;
|
|
220
251
|
return ret;
|
|
221
252
|
};
|
|
222
|
-
imports.wbg.
|
|
253
|
+
imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
254
|
+
const val = arg0;
|
|
255
|
+
const ret = typeof val === "object" && val !== null;
|
|
256
|
+
return ret;
|
|
257
|
+
};
|
|
258
|
+
imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
259
|
+
const ret = arg0 === void 0;
|
|
260
|
+
return ret;
|
|
261
|
+
};
|
|
262
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
263
|
+
const ret = arg0 == arg1;
|
|
264
|
+
return ret;
|
|
265
|
+
};
|
|
266
|
+
imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
267
|
+
const obj = arg1;
|
|
268
|
+
const ret = typeof obj === "number" ? obj : void 0;
|
|
269
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
270
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
271
|
+
};
|
|
272
|
+
imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
273
|
+
const obj = arg1;
|
|
274
|
+
const ret = typeof obj === "string" ? obj : void 0;
|
|
275
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
276
|
+
var len1 = WASM_VECTOR_LEN;
|
|
277
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
278
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
279
|
+
};
|
|
280
|
+
imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
281
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
282
|
+
};
|
|
283
|
+
imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
223
284
|
const ret = arg0[arg1];
|
|
224
285
|
return ret;
|
|
225
286
|
};
|
|
226
|
-
imports.wbg.
|
|
287
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
227
288
|
let result;
|
|
228
289
|
try {
|
|
229
290
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -233,7 +294,7 @@ function __wbg_get_imports() {
|
|
|
233
294
|
const ret = result;
|
|
234
295
|
return ret;
|
|
235
296
|
};
|
|
236
|
-
imports.wbg.
|
|
297
|
+
imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
237
298
|
let result;
|
|
238
299
|
try {
|
|
239
300
|
result = arg0 instanceof Uint8Array;
|
|
@@ -243,47 +304,27 @@ function __wbg_get_imports() {
|
|
|
243
304
|
const ret = result;
|
|
244
305
|
return ret;
|
|
245
306
|
};
|
|
246
|
-
imports.wbg.
|
|
307
|
+
imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
|
|
247
308
|
const ret = Number.isSafeInteger(arg0);
|
|
248
309
|
return ret;
|
|
249
310
|
};
|
|
250
|
-
imports.wbg.
|
|
311
|
+
imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
251
312
|
const ret = arg0.length;
|
|
252
313
|
return ret;
|
|
253
314
|
};
|
|
254
|
-
imports.wbg.
|
|
315
|
+
imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
255
316
|
const ret = new Uint8Array(arg0);
|
|
256
317
|
return ret;
|
|
257
318
|
};
|
|
258
|
-
imports.wbg.
|
|
259
|
-
|
|
319
|
+
imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
320
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
260
321
|
};
|
|
261
|
-
imports.wbg.
|
|
262
|
-
const ret =
|
|
263
|
-
return ret;
|
|
264
|
-
};
|
|
265
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
266
|
-
const v = arg0;
|
|
267
|
-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
268
|
-
return ret;
|
|
269
|
-
};
|
|
270
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
271
|
-
const ret = debugString(arg1);
|
|
272
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
-
const len1 = WASM_VECTOR_LEN;
|
|
274
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
275
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
276
|
-
};
|
|
277
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
278
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
279
|
-
return ret;
|
|
280
|
-
};
|
|
281
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
282
|
-
const ret = arg0 in arg1;
|
|
322
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
323
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
283
324
|
return ret;
|
|
284
325
|
};
|
|
285
326
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
286
|
-
const table = wasm.
|
|
327
|
+
const table = wasm.__wbindgen_externrefs;
|
|
287
328
|
const offset = table.grow(4);
|
|
288
329
|
table.set(0, void 0);
|
|
289
330
|
table.set(offset + 0, void 0);
|
|
@@ -292,48 +333,8 @@ function __wbg_get_imports() {
|
|
|
292
333
|
table.set(offset + 3, false);
|
|
293
334
|
;
|
|
294
335
|
};
|
|
295
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
296
|
-
const val = arg0;
|
|
297
|
-
const ret = typeof val === "object" && val !== null;
|
|
298
|
-
return ret;
|
|
299
|
-
};
|
|
300
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
301
|
-
const ret = arg0 === void 0;
|
|
302
|
-
return ret;
|
|
303
|
-
};
|
|
304
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
305
|
-
const ret = arg0 == arg1;
|
|
306
|
-
return ret;
|
|
307
|
-
};
|
|
308
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
309
|
-
const ret = wasm.memory;
|
|
310
|
-
return ret;
|
|
311
|
-
};
|
|
312
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
313
|
-
const obj = arg1;
|
|
314
|
-
const ret = typeof obj === "number" ? obj : void 0;
|
|
315
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
316
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
317
|
-
};
|
|
318
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
319
|
-
const obj = arg1;
|
|
320
|
-
const ret = typeof obj === "string" ? obj : void 0;
|
|
321
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
322
|
-
var len1 = WASM_VECTOR_LEN;
|
|
323
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
324
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
325
|
-
};
|
|
326
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
327
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
328
|
-
return ret;
|
|
329
|
-
};
|
|
330
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
331
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
332
|
-
};
|
|
333
336
|
return imports;
|
|
334
337
|
}
|
|
335
|
-
function __wbg_init_memory(imports, memory) {
|
|
336
|
-
}
|
|
337
338
|
function __wbg_finalize_init(instance, module) {
|
|
338
339
|
wasm = instance.exports;
|
|
339
340
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
@@ -358,7 +359,6 @@ async function __wbg_init(module_or_path) {
|
|
|
358
359
|
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
359
360
|
module_or_path = fetch(module_or_path);
|
|
360
361
|
}
|
|
361
|
-
__wbg_init_memory(imports);
|
|
362
362
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
363
363
|
return __wbg_finalize_init(instance, module);
|
|
364
364
|
}
|
package/index_bg.wasm
CHANGED
|
Binary file
|