@css-inline/css-inline-wasm 0.14.0 → 0.14.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.js +19 -19
- package/index.min.js +2 -2
- package/index.mjs +19 -19
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -60,6 +60,17 @@ function addHeapObject(obj) {
|
|
|
60
60
|
heap[idx] = obj;
|
|
61
61
|
return idx;
|
|
62
62
|
}
|
|
63
|
+
function dropObject(idx) {
|
|
64
|
+
if (idx < 132)
|
|
65
|
+
return;
|
|
66
|
+
heap[idx] = heap_next;
|
|
67
|
+
heap_next = idx;
|
|
68
|
+
}
|
|
69
|
+
function takeObject(idx) {
|
|
70
|
+
const ret = getObject(idx);
|
|
71
|
+
dropObject(idx);
|
|
72
|
+
return ret;
|
|
73
|
+
}
|
|
63
74
|
var WASM_VECTOR_LEN = 0;
|
|
64
75
|
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
|
|
65
76
|
throw Error("TextEncoder not available");
|
|
@@ -115,17 +126,6 @@ function getInt32Memory0() {
|
|
|
115
126
|
}
|
|
116
127
|
return cachedInt32Memory0;
|
|
117
128
|
}
|
|
118
|
-
function dropObject(idx) {
|
|
119
|
-
if (idx < 132)
|
|
120
|
-
return;
|
|
121
|
-
heap[idx] = heap_next;
|
|
122
|
-
heap_next = idx;
|
|
123
|
-
}
|
|
124
|
-
function takeObject(idx) {
|
|
125
|
-
const ret = getObject(idx);
|
|
126
|
-
dropObject(idx);
|
|
127
|
-
return ret;
|
|
128
|
-
}
|
|
129
129
|
var cachedFloat64Memory0 = null;
|
|
130
130
|
function getFloat64Memory0() {
|
|
131
131
|
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
@@ -321,6 +321,14 @@ function __wbg_get_imports() {
|
|
|
321
321
|
const ret = +getObject(arg0);
|
|
322
322
|
return ret;
|
|
323
323
|
};
|
|
324
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
325
|
+
takeObject(arg0);
|
|
326
|
+
};
|
|
327
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
328
|
+
const v = getObject(arg0);
|
|
329
|
+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
330
|
+
return ret;
|
|
331
|
+
};
|
|
324
332
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
325
333
|
const obj = getObject(arg1);
|
|
326
334
|
const ret = typeof obj === "string" ? obj : void 0;
|
|
@@ -329,14 +337,6 @@ function __wbg_get_imports() {
|
|
|
329
337
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
330
338
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
331
339
|
};
|
|
332
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
333
|
-
const v = getObject(arg0);
|
|
334
|
-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
335
|
-
return ret;
|
|
336
|
-
};
|
|
337
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
338
|
-
takeObject(arg0);
|
|
339
|
-
};
|
|
340
340
|
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
|
|
341
341
|
const ret = getObject(arg0).length;
|
|
342
342
|
return ret;
|
package/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var cssInline=(()=>{var v=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var P=(n,e)=>{for(var t in e)v(n,t,{get:e[t],enumerable:!0})},H=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of z(e))!C.call(n,i)&&i!==t&&v(n,i,{get:()=>e[i],enumerable:!(r=q(e,i))||r.enumerable});return n};var J=n=>H(v({},"__esModule",{value:!0}),n);var rn={};P(rn,{initWasm:()=>Z,inline:()=>nn,inlineFragment:()=>en,version:()=>tn});var o,d=new Array(128).fill(void 0);d.push(void 0,null,!0,!1);function c(n){return d[n]}var M=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&M.decode();var p=null;function S(){return(p===null||p.byteLength===0)&&(p=new Uint8Array(o.memory.buffer)),p}function m(n,e){return n=n>>>0,M.decode(S().subarray(n,n+e))}var x=d.length;function l(n){x===d.length&&d.push(d.length+1);let e=x;return x=d[e],d[e]=n,e}var y=0,j=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},
|
|
2
|
-
${n.stack}`:r}function T(n,e){let t,r;try{let b=o.__wbindgen_add_to_stack_pointer(-16),w=I(n,o.__wbindgen_malloc,o.__wbindgen_realloc),W=y;o.inline(b,w,W,l(e));var i=_()[b/4+0],f=_()[b/4+1],s=_()[b/4+2],a=_()[b/4+3],u=i,g=f;if(a)throw u=0,g=0,F(s);return t=u,r=g,m(u,g)}finally{o.__wbindgen_add_to_stack_pointer(16),o.__wbindgen_free(t,r,1)}}function k(n,e,t){let r,i;try{let w=o.__wbindgen_add_to_stack_pointer(-16),W=I(n,o.__wbindgen_malloc,o.__wbindgen_realloc),D=y,N=I(e,o.__wbindgen_malloc,o.__wbindgen_realloc),B=y;o.inlineFragment(w,W,D,N,B,l(t));var f=_()[w/4+0],s=_()[w/4+1],a=_()[w/4+2],u=_()[w/4+3],g=f,b=s;if(u)throw g=0,b=0,F(a);return r=g,i=b,m(g,b)}finally{o.__wbindgen_add_to_stack_pointer(16),o.__wbindgen_free(r,i,1)}}function U(){let n,e;try{let i=o.__wbindgen_add_to_stack_pointer(-16);o.version(i);var t=_()[i/4+0],r=_()[i/4+1];return n=t,e=r,m(t,r)}finally{o.__wbindgen_add_to_stack_pointer(16),o.__wbindgen_free(n,e,1)}}async function Q(n,e){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,e)}catch(r){if(n.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 n.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{let t=await WebAssembly.instantiate(n,e);return t instanceof WebAssembly.Instance?{instance:t,module:n}:t}}function X(){let n={};return n.wbg={},n.wbg.__wbindgen_is_undefined=function(e){return c(e)===void 0},n.wbg.__wbindgen_string_new=function(e,t){let r=m(e,t);return l(r)},n.wbg.__wbindgen_is_object=function(e){let t=c(e);return typeof t=="object"&&t!==null},n.wbg.__wbindgen_object_clone_ref=function(e){let t=c(e);return l(t)},n.wbg.__wbg_getwithrefkey_edc2c8960f0f1191=function(e,t){let r=c(e)[c(t)];return l(r)},n.wbg.__wbindgen_in=function(e,t){return c(e)in c(t)},n.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2=function(e){return Number.isSafeInteger(c(e))},n.wbg.__wbindgen_as_number=function(e){return+c(e)},n.wbg.__wbindgen_string_get=function(e,t){let r=c(t),i=typeof r=="string"?r:void 0;var f=O(i)?0:I(i,o.__wbindgen_malloc,o.__wbindgen_realloc),s=y;_()[e/4+1]=s,_()[e/4+0]=f},n.wbg.
|
|
1
|
+
"use strict";var cssInline=(()=>{var v=Object.defineProperty;var q=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var P=(n,e)=>{for(var t in e)v(n,t,{get:e[t],enumerable:!0})},H=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of z(e))!C.call(n,i)&&i!==t&&v(n,i,{get:()=>e[i],enumerable:!(r=q(e,i))||r.enumerable});return n};var J=n=>H(v({},"__esModule",{value:!0}),n);var rn={};P(rn,{initWasm:()=>Z,inline:()=>nn,inlineFragment:()=>en,version:()=>tn});var o,d=new Array(128).fill(void 0);d.push(void 0,null,!0,!1);function c(n){return d[n]}var M=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&M.decode();var p=null;function S(){return(p===null||p.byteLength===0)&&(p=new Uint8Array(o.memory.buffer)),p}function m(n,e){return n=n>>>0,M.decode(S().subarray(n,n+e))}var x=d.length;function l(n){x===d.length&&d.push(d.length+1);let e=x;return x=d[e],d[e]=n,e}function V(n){n<132||(d[n]=x,x=n)}function F(n){let e=c(n);return V(n),e}var y=0,j=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},G=typeof j.encodeInto=="function"?function(n,e){return j.encodeInto(n,e)}:function(n,e){let t=j.encode(n);return e.set(t),{read:n.length,written:t.length}};function I(n,e,t){if(t===void 0){let a=j.encode(n),u=e(a.length,1)>>>0;return S().subarray(u,u+a.length).set(a),y=a.length,u}let r=n.length,i=e(r,1)>>>0,f=S(),s=0;for(;s<r;s++){let a=n.charCodeAt(s);if(a>127)break;f[i+s]=a}if(s!==r){s!==0&&(n=n.slice(s)),i=t(i,r,r=s+n.length*3,1)>>>0;let a=S().subarray(i+s,i+r),u=G(n,a);s+=u.written,i=t(i,r,s,1)>>>0}return y=s,i}function O(n){return n==null}var h=null;function _(){return(h===null||h.byteLength===0)&&(h=new Int32Array(o.memory.buffer)),h}var A=null;function K(){return(A===null||A.byteLength===0)&&(A=new Float64Array(o.memory.buffer)),A}function E(n){let e=typeof n;if(e=="number"||e=="boolean"||n==null)return`${n}`;if(e=="string")return`"${n}"`;if(e=="symbol"){let i=n.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){let i=n.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(n)){let i=n.length,f="[";i>0&&(f+=E(n[0]));for(let s=1;s<i;s++)f+=", "+E(n[s]);return f+="]",f}let t=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(t.length>1)r=t[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
2
|
+
${n.stack}`:r}function T(n,e){let t,r;try{let b=o.__wbindgen_add_to_stack_pointer(-16),w=I(n,o.__wbindgen_malloc,o.__wbindgen_realloc),W=y;o.inline(b,w,W,l(e));var i=_()[b/4+0],f=_()[b/4+1],s=_()[b/4+2],a=_()[b/4+3],u=i,g=f;if(a)throw u=0,g=0,F(s);return t=u,r=g,m(u,g)}finally{o.__wbindgen_add_to_stack_pointer(16),o.__wbindgen_free(t,r,1)}}function k(n,e,t){let r,i;try{let w=o.__wbindgen_add_to_stack_pointer(-16),W=I(n,o.__wbindgen_malloc,o.__wbindgen_realloc),D=y,N=I(e,o.__wbindgen_malloc,o.__wbindgen_realloc),B=y;o.inlineFragment(w,W,D,N,B,l(t));var f=_()[w/4+0],s=_()[w/4+1],a=_()[w/4+2],u=_()[w/4+3],g=f,b=s;if(u)throw g=0,b=0,F(a);return r=g,i=b,m(g,b)}finally{o.__wbindgen_add_to_stack_pointer(16),o.__wbindgen_free(r,i,1)}}function U(){let n,e;try{let i=o.__wbindgen_add_to_stack_pointer(-16);o.version(i);var t=_()[i/4+0],r=_()[i/4+1];return n=t,e=r,m(t,r)}finally{o.__wbindgen_add_to_stack_pointer(16),o.__wbindgen_free(n,e,1)}}async function Q(n,e){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,e)}catch(r){if(n.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 n.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{let t=await WebAssembly.instantiate(n,e);return t instanceof WebAssembly.Instance?{instance:t,module:n}:t}}function X(){let n={};return n.wbg={},n.wbg.__wbindgen_is_undefined=function(e){return c(e)===void 0},n.wbg.__wbindgen_string_new=function(e,t){let r=m(e,t);return l(r)},n.wbg.__wbindgen_is_object=function(e){let t=c(e);return typeof t=="object"&&t!==null},n.wbg.__wbindgen_object_clone_ref=function(e){let t=c(e);return l(t)},n.wbg.__wbg_getwithrefkey_edc2c8960f0f1191=function(e,t){let r=c(e)[c(t)];return l(r)},n.wbg.__wbindgen_in=function(e,t){return c(e)in c(t)},n.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2=function(e){return Number.isSafeInteger(c(e))},n.wbg.__wbindgen_as_number=function(e){return+c(e)},n.wbg.__wbindgen_object_drop_ref=function(e){F(e)},n.wbg.__wbindgen_boolean_get=function(e){let t=c(e);return typeof t=="boolean"?t?1:0:2},n.wbg.__wbindgen_string_get=function(e,t){let r=c(t),i=typeof r=="string"?r:void 0;var f=O(i)?0:I(i,o.__wbindgen_malloc,o.__wbindgen_realloc),s=y;_()[e/4+1]=s,_()[e/4+0]=f},n.wbg.__wbg_length_c20a40f15020d68a=function(e){return c(e).length},n.wbg.__wbindgen_memory=function(){let e=o.memory;return l(e)},n.wbg.__wbg_buffer_12d079cc21e14bdb=function(e){let t=c(e).buffer;return l(t)},n.wbg.__wbg_new_63b92bc8671ed464=function(e){let t=new Uint8Array(c(e));return l(t)},n.wbg.__wbg_set_a47bac70306a19a7=function(e,t,r){c(e).set(c(t),r>>>0)},n.wbg.__wbindgen_error_new=function(e,t){let r=new Error(m(e,t));return l(r)},n.wbg.__wbindgen_jsval_loose_eq=function(e,t){return c(e)==c(t)},n.wbg.__wbindgen_number_get=function(e,t){let r=c(t),i=typeof r=="number"?r:void 0;K()[e/8+1]=O(i)?0:i,_()[e/4+0]=!O(i)},n.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6=function(e){let t;try{t=c(e)instanceof Uint8Array}catch{t=!1}return t},n.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2=function(e){let t;try{t=c(e)instanceof ArrayBuffer}catch{t=!1}return t},n.wbg.__wbindgen_debug_string=function(e,t){let r=E(c(t)),i=I(r,o.__wbindgen_malloc,o.__wbindgen_realloc),f=y;_()[e/4+1]=f,_()[e/4+0]=i},n.wbg.__wbindgen_throw=function(e,t){throw new Error(m(e,t))},n}function Y(n,e){return o=n.exports,L.__wbindgen_wasm_module=e,A=null,h=null,p=null,o}async function L(n){if(o!==void 0)return o;typeof n>"u"&&(n=new URL("index_bg.wasm",void 0));let e=X();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));let{instance:t,module:r}=await Q(await n,e);return Y(t,r)}var R=L;var $=!1,Z=async n=>{if($)throw new Error("Already initialized. The `initWasm()` function can be used only once.");await R(await n),$=!0};function nn(n,e){return T(n,e)}function en(n,e,t){return k(n,e,t)}function tn(){return U()}return J(rn);})();
|
package/index.mjs
CHANGED
|
@@ -31,6 +31,17 @@ function addHeapObject(obj) {
|
|
|
31
31
|
heap[idx] = obj;
|
|
32
32
|
return idx;
|
|
33
33
|
}
|
|
34
|
+
function dropObject(idx) {
|
|
35
|
+
if (idx < 132)
|
|
36
|
+
return;
|
|
37
|
+
heap[idx] = heap_next;
|
|
38
|
+
heap_next = idx;
|
|
39
|
+
}
|
|
40
|
+
function takeObject(idx) {
|
|
41
|
+
const ret = getObject(idx);
|
|
42
|
+
dropObject(idx);
|
|
43
|
+
return ret;
|
|
44
|
+
}
|
|
34
45
|
var WASM_VECTOR_LEN = 0;
|
|
35
46
|
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
|
|
36
47
|
throw Error("TextEncoder not available");
|
|
@@ -86,17 +97,6 @@ function getInt32Memory0() {
|
|
|
86
97
|
}
|
|
87
98
|
return cachedInt32Memory0;
|
|
88
99
|
}
|
|
89
|
-
function dropObject(idx) {
|
|
90
|
-
if (idx < 132)
|
|
91
|
-
return;
|
|
92
|
-
heap[idx] = heap_next;
|
|
93
|
-
heap_next = idx;
|
|
94
|
-
}
|
|
95
|
-
function takeObject(idx) {
|
|
96
|
-
const ret = getObject(idx);
|
|
97
|
-
dropObject(idx);
|
|
98
|
-
return ret;
|
|
99
|
-
}
|
|
100
100
|
var cachedFloat64Memory0 = null;
|
|
101
101
|
function getFloat64Memory0() {
|
|
102
102
|
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
@@ -292,6 +292,14 @@ function __wbg_get_imports() {
|
|
|
292
292
|
const ret = +getObject(arg0);
|
|
293
293
|
return ret;
|
|
294
294
|
};
|
|
295
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
296
|
+
takeObject(arg0);
|
|
297
|
+
};
|
|
298
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
299
|
+
const v = getObject(arg0);
|
|
300
|
+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
301
|
+
return ret;
|
|
302
|
+
};
|
|
295
303
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
296
304
|
const obj = getObject(arg1);
|
|
297
305
|
const ret = typeof obj === "string" ? obj : void 0;
|
|
@@ -300,14 +308,6 @@ function __wbg_get_imports() {
|
|
|
300
308
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
301
309
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
302
310
|
};
|
|
303
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
304
|
-
const v = getObject(arg0);
|
|
305
|
-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
306
|
-
return ret;
|
|
307
|
-
};
|
|
308
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
309
|
-
takeObject(arg0);
|
|
310
|
-
};
|
|
311
311
|
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
|
|
312
312
|
const ret = getObject(arg0).length;
|
|
313
313
|
return ret;
|
package/index_bg.wasm
CHANGED
|
Binary file
|