@css-inline/css-inline-wasm 0.18.0 → 0.19.1

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 CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by dts-bundle-generator v9.1.0
1
+ // Generated by dts-bundle-generator v9.5.1
2
2
 
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
@@ -12,6 +12,7 @@ export interface InlineOptions {
12
12
  loadRemoteStylesheets?: boolean;
13
13
  extraCss?: string;
14
14
  preallocateNodeCapacity?: number;
15
+ removeInlinedSelectors?: boolean;
15
16
  }
16
17
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
17
18
  /**
package/index.js CHANGED
@@ -29,33 +29,6 @@ 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
- }
59
32
  function debugString(val) {
60
33
  const type = typeof val;
61
34
  if (type == "number" || type == "boolean" || val == null) {
@@ -112,17 +85,30 @@ ${val.stack}`;
112
85
  }
113
86
  return className;
114
87
  }
115
- var WASM_VECTOR_LEN = 0;
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
- };
125
- };
88
+ function getArrayU8FromWasm0(ptr, len) {
89
+ ptr = ptr >>> 0;
90
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
91
+ }
92
+ var cachedDataViewMemory0 = null;
93
+ function getDataViewMemory0() {
94
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
95
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
96
+ }
97
+ return cachedDataViewMemory0;
98
+ }
99
+ function getStringFromWasm0(ptr, len) {
100
+ ptr = ptr >>> 0;
101
+ return decodeText(ptr, len);
102
+ }
103
+ var cachedUint8ArrayMemory0 = null;
104
+ function getUint8ArrayMemory0() {
105
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
106
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
107
+ }
108
+ return cachedUint8ArrayMemory0;
109
+ }
110
+ function isLikeNone(x) {
111
+ return x === void 0 || x === null;
126
112
  }
127
113
  function passStringToWasm0(arg, malloc, realloc) {
128
114
  if (realloc === void 0) {
@@ -154,34 +140,57 @@ function passStringToWasm0(arg, malloc, realloc) {
154
140
  WASM_VECTOR_LEN = offset;
155
141
  return ptr;
156
142
  }
157
- var cachedDataViewMemory0 = null;
158
- function getDataViewMemory0() {
159
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
160
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
143
+ function takeFromExternrefTable0(idx) {
144
+ const value = wasm.__wbindgen_externrefs.get(idx);
145
+ wasm.__externref_table_dealloc(idx);
146
+ return value;
147
+ }
148
+ var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
149
+ cachedTextDecoder.decode();
150
+ var MAX_SAFARI_DECODE_BYTES = 2146435072;
151
+ var numBytesDecoded = 0;
152
+ function decodeText(ptr, len) {
153
+ numBytesDecoded += len;
154
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
155
+ cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
156
+ cachedTextDecoder.decode();
157
+ numBytesDecoded = len;
161
158
  }
162
- return cachedDataViewMemory0;
159
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
163
160
  }
164
- function getArrayU8FromWasm0(ptr, len) {
165
- ptr = ptr >>> 0;
166
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
161
+ var cachedTextEncoder = new TextEncoder();
162
+ if (!("encodeInto" in cachedTextEncoder)) {
163
+ cachedTextEncoder.encodeInto = function(arg, view) {
164
+ const buf = cachedTextEncoder.encode(arg);
165
+ view.set(buf);
166
+ return {
167
+ read: arg.length,
168
+ written: buf.length
169
+ };
170
+ };
167
171
  }
168
- function version() {
169
- let deferred1_0;
170
- let deferred1_1;
172
+ var WASM_VECTOR_LEN = 0;
173
+ function inline(html, options) {
174
+ let deferred3_0;
175
+ let deferred3_1;
171
176
  try {
172
- const ret = wasm.version();
173
- deferred1_0 = ret[0];
174
- deferred1_1 = ret[1];
175
- return getStringFromWasm0(ret[0], ret[1]);
177
+ const ptr0 = passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
178
+ const len0 = WASM_VECTOR_LEN;
179
+ const ret = wasm.inline(ptr0, len0, options);
180
+ var ptr2 = ret[0];
181
+ var len2 = ret[1];
182
+ if (ret[3]) {
183
+ ptr2 = 0;
184
+ len2 = 0;
185
+ throw takeFromExternrefTable0(ret[2]);
186
+ }
187
+ deferred3_0 = ptr2;
188
+ deferred3_1 = len2;
189
+ return getStringFromWasm0(ptr2, len2);
176
190
  } finally {
177
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
191
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
178
192
  }
179
193
  }
180
- function takeFromExternrefTable0(idx) {
181
- const value = wasm.__wbindgen_externrefs.get(idx);
182
- wasm.__externref_table_dealloc(idx);
183
- return value;
184
- }
185
194
  function inlineFragment(html, css, options) {
186
195
  let deferred4_0;
187
196
  let deferred4_1;
@@ -205,25 +214,16 @@ function inlineFragment(html, css, options) {
205
214
  wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
206
215
  }
207
216
  }
208
- function inline(html, options) {
209
- let deferred3_0;
210
- let deferred3_1;
217
+ function version() {
218
+ let deferred1_0;
219
+ let deferred1_1;
211
220
  try {
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);
221
+ const ret = wasm.version();
222
+ deferred1_0 = ret[0];
223
+ deferred1_1 = ret[1];
224
+ return getStringFromWasm0(ret[0], ret[1]);
225
225
  } finally {
226
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
226
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
227
227
  }
228
228
  }
229
229
  var EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
@@ -255,50 +255,50 @@ async function __wbg_load(module2, imports) {
255
255
  function __wbg_get_imports() {
256
256
  const imports = {};
257
257
  imports.wbg = {};
258
- imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
258
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
259
259
  const ret = Error(getStringFromWasm0(arg0, arg1));
260
260
  return ret;
261
261
  };
262
- imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
262
+ imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
263
263
  const ret = Number(arg0);
264
264
  return ret;
265
265
  };
266
- imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
266
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
267
267
  const v = arg0;
268
268
  const ret = typeof v === "boolean" ? v : void 0;
269
269
  return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
270
270
  };
271
- imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
271
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
272
272
  const ret = debugString(arg1);
273
273
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
274
274
  const len1 = WASM_VECTOR_LEN;
275
275
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
276
276
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
277
277
  };
278
- imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
278
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
279
279
  const ret = arg0 in arg1;
280
280
  return ret;
281
281
  };
282
- imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
282
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
283
283
  const val = arg0;
284
284
  const ret = typeof val === "object" && val !== null;
285
285
  return ret;
286
286
  };
287
- imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
287
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
288
288
  const ret = arg0 === void 0;
289
289
  return ret;
290
290
  };
291
- imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
291
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
292
292
  const ret = arg0 == arg1;
293
293
  return ret;
294
294
  };
295
- imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
295
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
296
296
  const obj = arg1;
297
297
  const ret = typeof obj === "number" ? obj : void 0;
298
298
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
299
299
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
300
300
  };
301
- imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
301
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
302
302
  const obj = arg1;
303
303
  const ret = typeof obj === "string" ? obj : void 0;
304
304
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -306,14 +306,14 @@ function __wbg_get_imports() {
306
306
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
307
307
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
308
308
  };
309
- imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
309
+ imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
310
310
  throw new Error(getStringFromWasm0(arg0, arg1));
311
311
  };
312
312
  imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
313
313
  const ret = arg0[arg1];
314
314
  return ret;
315
315
  };
316
- imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
316
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
317
317
  let result;
318
318
  try {
319
319
  result = arg0 instanceof ArrayBuffer;
@@ -323,7 +323,7 @@ function __wbg_get_imports() {
323
323
  const ret = result;
324
324
  return ret;
325
325
  };
326
- imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
326
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
327
327
  let result;
328
328
  try {
329
329
  result = arg0 instanceof Uint8Array;
@@ -333,19 +333,19 @@ function __wbg_get_imports() {
333
333
  const ret = result;
334
334
  return ret;
335
335
  };
336
- imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
336
+ imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
337
337
  const ret = Number.isSafeInteger(arg0);
338
338
  return ret;
339
339
  };
340
- imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
340
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
341
341
  const ret = arg0.length;
342
342
  return ret;
343
343
  };
344
- imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
344
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
345
345
  const ret = new Uint8Array(arg0);
346
346
  return ret;
347
347
  };
348
- imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
348
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
349
349
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
350
350
  };
351
351
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
@@ -360,7 +360,6 @@ function __wbg_get_imports() {
360
360
  table.set(offset + 1, null);
361
361
  table.set(offset + 2, true);
362
362
  table.set(offset + 3, false);
363
- ;
364
363
  };
365
364
  return imports;
366
365
  }
package/index.min.js CHANGED
@@ -1,2 +1,2 @@
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);})();
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;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}function $(e,n){return e=e>>>0,l().subarray(e/1,e/1+n)}var a=null;function b(){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 g(e,n){return e=e>>>0,v(e,n)}var d=null;function l(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(o.memory.buffer)),d}function m(e){return e==null}function y(e,n,t){if(t===void 0){let f=w.encode(e),_=n(f.length,1)>>>0;return l().subarray(_,_+f.length).set(f),u=f.length,_}let r=e.length,i=n(r,1)>>>0,c=l(),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=l().subarray(i+s,i+r),_=w.encodeInto(e,f);s+=_.written,i=t(i,r,s,1)>>>0}return u=s,i}function S(e){let n=o.__wbindgen_externrefs.get(e);return o.__externref_table_dealloc(e),n}var h=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});h.decode();var L=2146435072,I=0;function v(e,n){return I+=n,I>=L&&(h=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),h.decode(),I=n),h.decode(l().subarray(e,e+n))}var 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}});var u=0;function E(e,n){let t,r;try{let s=y(e,o.__wbindgen_malloc,o.__wbindgen_realloc),f=u,_=o.inline(s,f,n);var i=_[0],c=_[1];if(_[3])throw i=0,c=0,S(_[2]);return t=i,r=c,g(i,c)}finally{o.__wbindgen_free(t,r,1)}}function F(e,n,t){let r,i;try{let f=y(e,o.__wbindgen_malloc,o.__wbindgen_realloc),_=u,M=y(n,o.__wbindgen_malloc,o.__wbindgen_realloc),R=u,p=o.inlineFragment(f,_,M,R,t);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,S(p[2]);return r=c,i=s,g(c,s)}finally{o.__wbindgen_free(r,i,1)}}function O(){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)}}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_52673b7de5a0ca89=function(n,t){return Error(g(n,t))},e.wbg.__wbg_Number_2d1dcfcf4ec51736=function(n){return Number(n)},e.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b=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_adfb662ae34724b6=function(n,t){let r=x(t),i=y(r,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u;b().setInt32(n+4,c,!0),b().setInt32(n+0,i,!0)},e.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317=function(n,t){return n in t},e.wbg.__wbg___wbindgen_is_object_ce774f3490692386=function(n){let t=n;return typeof t=="object"&&t!==null},e.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(n){return n===void 0},e.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d=function(n,t){return n==t},e.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(n,t){let r=t,i=typeof r=="number"?r:void 0;b().setFloat64(n+8,m(i)?0:i,!0),b().setInt32(n+0,!m(i),!0)},e.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42=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=u;b().setInt32(n+4,s,!0),b().setInt32(n+0,c,!0)},e.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=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_f3320d2419cd0355=function(n){let t;try{t=n instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434=function(n){let t;try{t=n instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16=function(n){return Number.isSafeInteger(n)},e.wbg.__wbg_length_22ac23eaec9d8053=function(n){return n.length},e.wbg.__wbg_new_6421f6084cc5bc5a=function(n){return new Uint8Array(n)},e.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd=function(n,t,r){Uint8Array.prototype.set.call($(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,d=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 E(e,n)}function J(e,n,t){return F(e,n,t)}function G(){return O()}return P(H);})();
package/index.mjs CHANGED
@@ -1,32 +1,5 @@
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
- }
30
3
  function debugString(val) {
31
4
  const type = typeof val;
32
5
  if (type == "number" || type == "boolean" || val == null) {
@@ -83,17 +56,30 @@ ${val.stack}`;
83
56
  }
84
57
  return className;
85
58
  }
86
- var WASM_VECTOR_LEN = 0;
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
- };
96
- };
59
+ function getArrayU8FromWasm0(ptr, len) {
60
+ ptr = ptr >>> 0;
61
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
62
+ }
63
+ var cachedDataViewMemory0 = null;
64
+ function getDataViewMemory0() {
65
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
66
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
67
+ }
68
+ return cachedDataViewMemory0;
69
+ }
70
+ function getStringFromWasm0(ptr, len) {
71
+ ptr = ptr >>> 0;
72
+ return decodeText(ptr, len);
73
+ }
74
+ var cachedUint8ArrayMemory0 = null;
75
+ function getUint8ArrayMemory0() {
76
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
77
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
78
+ }
79
+ return cachedUint8ArrayMemory0;
80
+ }
81
+ function isLikeNone(x) {
82
+ return x === void 0 || x === null;
97
83
  }
98
84
  function passStringToWasm0(arg, malloc, realloc) {
99
85
  if (realloc === void 0) {
@@ -125,34 +111,57 @@ function passStringToWasm0(arg, malloc, realloc) {
125
111
  WASM_VECTOR_LEN = offset;
126
112
  return ptr;
127
113
  }
128
- var cachedDataViewMemory0 = null;
129
- function getDataViewMemory0() {
130
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
131
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
114
+ function takeFromExternrefTable0(idx) {
115
+ const value = wasm.__wbindgen_externrefs.get(idx);
116
+ wasm.__externref_table_dealloc(idx);
117
+ return value;
118
+ }
119
+ var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
120
+ cachedTextDecoder.decode();
121
+ var MAX_SAFARI_DECODE_BYTES = 2146435072;
122
+ var numBytesDecoded = 0;
123
+ function decodeText(ptr, len) {
124
+ numBytesDecoded += len;
125
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
126
+ cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
127
+ cachedTextDecoder.decode();
128
+ numBytesDecoded = len;
132
129
  }
133
- return cachedDataViewMemory0;
130
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
134
131
  }
135
- function getArrayU8FromWasm0(ptr, len) {
136
- ptr = ptr >>> 0;
137
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
132
+ var cachedTextEncoder = new TextEncoder();
133
+ if (!("encodeInto" in cachedTextEncoder)) {
134
+ cachedTextEncoder.encodeInto = function(arg, view) {
135
+ const buf = cachedTextEncoder.encode(arg);
136
+ view.set(buf);
137
+ return {
138
+ read: arg.length,
139
+ written: buf.length
140
+ };
141
+ };
138
142
  }
139
- function version() {
140
- let deferred1_0;
141
- let deferred1_1;
143
+ var WASM_VECTOR_LEN = 0;
144
+ function inline(html, options) {
145
+ let deferred3_0;
146
+ let deferred3_1;
142
147
  try {
143
- const ret = wasm.version();
144
- deferred1_0 = ret[0];
145
- deferred1_1 = ret[1];
146
- return getStringFromWasm0(ret[0], ret[1]);
148
+ const ptr0 = passStringToWasm0(html, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
149
+ const len0 = WASM_VECTOR_LEN;
150
+ const ret = wasm.inline(ptr0, len0, options);
151
+ var ptr2 = ret[0];
152
+ var len2 = ret[1];
153
+ if (ret[3]) {
154
+ ptr2 = 0;
155
+ len2 = 0;
156
+ throw takeFromExternrefTable0(ret[2]);
157
+ }
158
+ deferred3_0 = ptr2;
159
+ deferred3_1 = len2;
160
+ return getStringFromWasm0(ptr2, len2);
147
161
  } finally {
148
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
162
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
149
163
  }
150
164
  }
151
- function takeFromExternrefTable0(idx) {
152
- const value = wasm.__wbindgen_externrefs.get(idx);
153
- wasm.__externref_table_dealloc(idx);
154
- return value;
155
- }
156
165
  function inlineFragment(html, css, options) {
157
166
  let deferred4_0;
158
167
  let deferred4_1;
@@ -176,25 +185,16 @@ function inlineFragment(html, css, options) {
176
185
  wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
177
186
  }
178
187
  }
179
- function inline(html, options) {
180
- let deferred3_0;
181
- let deferred3_1;
188
+ function version() {
189
+ let deferred1_0;
190
+ let deferred1_1;
182
191
  try {
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);
192
+ const ret = wasm.version();
193
+ deferred1_0 = ret[0];
194
+ deferred1_1 = ret[1];
195
+ return getStringFromWasm0(ret[0], ret[1]);
196
196
  } finally {
197
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
197
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
198
198
  }
199
199
  }
200
200
  var EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
@@ -226,50 +226,50 @@ async function __wbg_load(module, imports) {
226
226
  function __wbg_get_imports() {
227
227
  const imports = {};
228
228
  imports.wbg = {};
229
- imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
229
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
230
230
  const ret = Error(getStringFromWasm0(arg0, arg1));
231
231
  return ret;
232
232
  };
233
- imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
233
+ imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
234
234
  const ret = Number(arg0);
235
235
  return ret;
236
236
  };
237
- imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
237
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
238
238
  const v = arg0;
239
239
  const ret = typeof v === "boolean" ? v : void 0;
240
240
  return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
241
241
  };
242
- imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
242
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
243
243
  const ret = debugString(arg1);
244
244
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
245
  const len1 = WASM_VECTOR_LEN;
246
246
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
247
247
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
248
248
  };
249
- imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
249
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
250
250
  const ret = arg0 in arg1;
251
251
  return ret;
252
252
  };
253
- imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
253
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
254
254
  const val = arg0;
255
255
  const ret = typeof val === "object" && val !== null;
256
256
  return ret;
257
257
  };
258
- imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
258
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
259
259
  const ret = arg0 === void 0;
260
260
  return ret;
261
261
  };
262
- imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
262
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
263
263
  const ret = arg0 == arg1;
264
264
  return ret;
265
265
  };
266
- imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
266
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
267
267
  const obj = arg1;
268
268
  const ret = typeof obj === "number" ? obj : void 0;
269
269
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
270
270
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
271
271
  };
272
- imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
272
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
273
273
  const obj = arg1;
274
274
  const ret = typeof obj === "string" ? obj : void 0;
275
275
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -277,14 +277,14 @@ function __wbg_get_imports() {
277
277
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
278
278
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
279
279
  };
280
- imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
280
+ imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
281
281
  throw new Error(getStringFromWasm0(arg0, arg1));
282
282
  };
283
283
  imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
284
284
  const ret = arg0[arg1];
285
285
  return ret;
286
286
  };
287
- imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
287
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
288
288
  let result;
289
289
  try {
290
290
  result = arg0 instanceof ArrayBuffer;
@@ -294,7 +294,7 @@ function __wbg_get_imports() {
294
294
  const ret = result;
295
295
  return ret;
296
296
  };
297
- imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
297
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
298
298
  let result;
299
299
  try {
300
300
  result = arg0 instanceof Uint8Array;
@@ -304,19 +304,19 @@ function __wbg_get_imports() {
304
304
  const ret = result;
305
305
  return ret;
306
306
  };
307
- imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
307
+ imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
308
308
  const ret = Number.isSafeInteger(arg0);
309
309
  return ret;
310
310
  };
311
- imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
311
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
312
312
  const ret = arg0.length;
313
313
  return ret;
314
314
  };
315
- imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
315
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
316
316
  const ret = new Uint8Array(arg0);
317
317
  return ret;
318
318
  };
319
- imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
319
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
320
320
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
321
321
  };
322
322
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
@@ -331,7 +331,6 @@ function __wbg_get_imports() {
331
331
  table.set(offset + 1, null);
332
332
  table.set(offset + 2, true);
333
333
  table.set(offset + 3, false);
334
- ;
335
334
  };
336
335
  return imports;
337
336
  }
package/index_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@css-inline/css-inline-wasm",
3
- "version": "0.18.0",
3
+ "version": "0.19.1",
4
4
  "description": "High-performance library for inlining CSS into HTML 'style' attributes",
5
5
  "keywords": [
6
6
  "css",