Socket
Socket
Sign inDemoInstall

yoga-wasm-web

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yoga-wasm-web - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

dist/asm.js

4

dist/index.js

@@ -1,2 +0,2 @@

var Un=Object.create;var mt=Object.defineProperty;var Ln=Object.getOwnPropertyDescriptor;var Dn=Object.getOwnPropertyNames;var Wn=Object.getPrototypeOf,Vn=Object.prototype.hasOwnProperty;var Et=(T,l)=>()=>(l||T((l={exports:{}}).exports,l),l.exports);var Hn=(T,l,f,y)=>{if(l&&typeof l=="object"||typeof l=="function")for(let g of Dn(l))!Vn.call(T,g)&&g!==f&&mt(T,g,{get:()=>l[g],enumerable:!(y=Ln(l,g))||y.enumerable});return T};var Pt=(T,l,f)=>(f=T!=null?Un(Wn(T)):{},Hn(l||!T||!T.__esModule?mt(f,"default",{value:T,enumerable:!0}):f,T));var bt=Et((Bn,Ct)=>{var kn={ALIGN_COUNT:8,ALIGN_AUTO:0,ALIGN_FLEX_START:1,ALIGN_CENTER:2,ALIGN_FLEX_END:3,ALIGN_STRETCH:4,ALIGN_BASELINE:5,ALIGN_SPACE_BETWEEN:6,ALIGN_SPACE_AROUND:7,DIMENSION_COUNT:2,DIMENSION_WIDTH:0,DIMENSION_HEIGHT:1,DIRECTION_COUNT:3,DIRECTION_INHERIT:0,DIRECTION_LTR:1,DIRECTION_RTL:2,DISPLAY_COUNT:2,DISPLAY_FLEX:0,DISPLAY_NONE:1,EDGE_COUNT:9,EDGE_LEFT:0,EDGE_TOP:1,EDGE_RIGHT:2,EDGE_BOTTOM:3,EDGE_START:4,EDGE_END:5,EDGE_HORIZONTAL:6,EDGE_VERTICAL:7,EDGE_ALL:8,EXPERIMENTAL_FEATURE_COUNT:1,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:0,FLEX_DIRECTION_COUNT:4,FLEX_DIRECTION_COLUMN:0,FLEX_DIRECTION_COLUMN_REVERSE:1,FLEX_DIRECTION_ROW:2,FLEX_DIRECTION_ROW_REVERSE:3,GUTTER_COUNT:3,GUTTER_COLUMN:0,GUTTER_ROW:1,GUTTER_ALL:2,JUSTIFY_COUNT:6,JUSTIFY_FLEX_START:0,JUSTIFY_CENTER:1,JUSTIFY_FLEX_END:2,JUSTIFY_SPACE_BETWEEN:3,JUSTIFY_SPACE_AROUND:4,JUSTIFY_SPACE_EVENLY:5,LOG_LEVEL_COUNT:6,LOG_LEVEL_ERROR:0,LOG_LEVEL_WARN:1,LOG_LEVEL_INFO:2,LOG_LEVEL_DEBUG:3,LOG_LEVEL_VERBOSE:4,LOG_LEVEL_FATAL:5,MEASURE_MODE_COUNT:3,MEASURE_MODE_UNDEFINED:0,MEASURE_MODE_EXACTLY:1,MEASURE_MODE_AT_MOST:2,NODE_TYPE_COUNT:2,NODE_TYPE_DEFAULT:0,NODE_TYPE_TEXT:1,OVERFLOW_COUNT:3,OVERFLOW_VISIBLE:0,OVERFLOW_HIDDEN:1,OVERFLOW_SCROLL:2,POSITION_TYPE_COUNT:3,POSITION_TYPE_STATIC:0,POSITION_TYPE_RELATIVE:1,POSITION_TYPE_ABSOLUTE:2,PRINT_OPTIONS_COUNT:3,PRINT_OPTIONS_LAYOUT:1,PRINT_OPTIONS_STYLE:2,PRINT_OPTIONS_CHILDREN:4,UNIT_COUNT:4,UNIT_UNDEFINED:0,UNIT_POINT:1,UNIT_PERCENT:2,UNIT_AUTO:3,WRAP_COUNT:3,WRAP_NO_WRAP:0,WRAP_WRAP:1,WRAP_WRAP_REVERSE:2};Ct.exports=kn});var At=Et((Yn,wt)=>{var $=Pt(bt()),Me=class{left;right;top;bottom;width;height;constructor(l,f,y,g,Y,W){this.left=l,this.right=f,this.top=y,this.bottom=g,this.width=Y,this.height=W}fromJS(l){l(this.left,this.right,this.top,this.bottom,this.width,this.height)}toString(){return`<Layout#${this.left}:${this.right};${this.top}:${this.bottom};${this.width}:${this.height}>`}},oe=class{static fromJS({width:l,height:f}){return new oe(l,f)}width;height;constructor(l,f){this.width=l,this.height=f}fromJS(l){l(this.width,this.height)}toString(){return`<Size#${this.width}x${this.height}>`}},Pe=class{unit;value;constructor(l,f){this.unit=l,this.value=f}fromJS(l){l(this.unit,this.value)}toString(){switch(this.unit){case $.default.UNIT_POINT:return String(this.value);case $.default.UNIT_PERCENT:return`${this.value}%`;case $.default.UNIT_AUTO:return"auto";default:return`${this.value}?`}}valueOf(){return this.value}};function z(T,l,f){let y=T[l];T[l]=function(...g){return f.call(this,y,...g)}}wt.exports=(T,l)=>{for(let y of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){let g={[$.default.UNIT_POINT]:l.Node.prototype[y],[$.default.UNIT_PERCENT]:l.Node.prototype[`${y}Percent`],[$.default.UNIT_AUTO]:l.Node.prototype[`${y}Auto`]};z(l.Node.prototype,y,function(Y,...W){let I=W.pop(),R,b;if(I==="auto")R=$.default.UNIT_AUTO,b=void 0;else if(I instanceof Pe)R=I.unit,b=I.valueOf();else if(R=typeof I=="string"&&I.endsWith("%")?$.default.UNIT_PERCENT:$.default.UNIT_POINT,b=parseFloat(I),!Number.isNaN(I)&&Number.isNaN(b))throw new Error(`Invalid value ${I} for ${y}`);if(!g[R])throw new Error(`Failed to execute "${y}": Unsupported unit '${I}'`);return b!==void 0?g[R].call(this,...W,b):g[R].call(this,...W)})}z(l.Config.prototype,"free",function(){l.Config.destroy(this)}),z(l.Node,"create",function(y,g){return g?l.Node.createWithConfig(g):l.Node.createDefault()}),z(l.Node.prototype,"free",function(){l.Node.destroy(this)}),z(l.Node.prototype,"freeRecursive",function(){for(let y=0,g=this.getChildCount();y<g;++y)this.getChild(0).freeRecursive();this.free()});function f(y){return l.MeasureCallback.implement({measure:y})}return z(l.Node.prototype,"setMeasureFunc",function(y,g){y.call(this,f(g))}),z(l.Node.prototype,"calculateLayout",function(y,g=NaN,Y=NaN,W=$.default.DIRECTION_LTR){return y.call(this,g,Y,W)}),{Config:l.Config,Node:l.Node,Layout:T("Layout",Me),Size:T("Size",oe),Value:T("Value",Pe),...$.default}}});var Ge=Pt(At(),1);var Mn=(()=>{var T=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(l){l=l||{};var f;f||(f=typeof l<"u"?l:{});var y,g;f.ready=new Promise(function(t,e){y=t,g=e});var Y=Object.assign({},f),W=[],I=!0,R=!1,b="";function It(t){return f.locateFile?f.locateFile(t,b):b+t}var $t,Rt,Ce,Nt;(I||R)&&(R?b=self.location.href:typeof document<"u"&&document.currentScript&&(b=document.currentScript.src),T&&(b=T),b.indexOf("blob:")!==0?b=b.substr(0,b.replace(/[?#].*/,"").lastIndexOf("/")+1):b="",$t=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},R&&(Ce=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),Rt=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{if(n.status==200||n.status==0&&n.response){e(n.response);return}r()},n.onerror=r,n.send(null)},Nt=t=>document.title=t);var St=console.log.bind(console),q=console.warn.bind(console);Object.assign(f,Y),Y=null;var Ft=4,se;typeof WebAssembly!="object"&&re("no native wasm support detected");var ue,Be=!1,Ut;function Lt(t,e){t||re(e)}function Ye(t,e,r){for(var n=e+r,i="";!(e>=n);){var o=t[e++];if(!o)return i;if(!(o&128)){i+=String.fromCharCode(o);continue}var s=t[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var a=t[e++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|a:o=(o&7)<<18|s<<12|a<<6|t[e++]&63,o<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|u&1023)}}return i}function xe(t,e){return t?Ye(A,t,e):""}function Dt(t,e,r,n){if(!(n>0))return 0;for(var i=r,o=r+n-1,s=0;s<t.length;++s){var a=t.charCodeAt(s);if(a>=55296&&a<=57343){var u=t.charCodeAt(++s);a=65536+((a&1023)<<10)|u&1023}if(a<=127){if(r>=o)break;e[r++]=a}else if(a<=2047){if(r+1>=o)break;e[r++]=192|a>>6,e[r++]=128|a&63}else if(a<=65535){if(r+2>=o)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|a&63}else{if(r+3>=o)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|a&63}}return e[r]=0,r-i}function Wt(t,e,r){return Dt(t,A,e,r)}function Vt(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}var be,j,A,x,fe,O,m,Xe,Je;function ze(t){be=t,f.HEAP8=j=new Int8Array(t),f.HEAP16=x=new Int16Array(t),f.HEAP32=O=new Int32Array(t),f.HEAPU8=A=new Uint8Array(t),f.HEAPU16=fe=new Uint16Array(t),f.HEAPU32=m=new Uint32Array(t),f.HEAPF32=Xe=new Float32Array(t),f.HEAPF64=Je=new Float64Array(t)}var qe,Ht=[],Ze=[],kt=[],Mt=!1;function jt(){Ae(Ht)}function Gt(){Mt=!0,Ae(Ze)}function Bt(){Ae(kt)}function Yt(t){Ze.unshift(t)}var ee=0,we=null,te=null;function xt(t){ee++}function Xt(t){if(ee--,ee==0&&(we!==null&&(clearInterval(we),we=null),te)){var e=te;te=null,e()}}function re(t){t="Aborted("+t+")",q(t),Be=!0,Ut=1,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw g(e),e}var Jt="data:application/octet-stream;base64,";function Ke(t){return t.startsWith(Jt)}var N;N="yoga.wasm",Ke(N)||(N=It(N));function Qe(t){try{if(t==N&&se)return new Uint8Array(se);if(Ce)return Ce(t);throw"both async and sync fetching of the wasm failed"}catch(e){re(e)}}function zt(){return!se&&(I||R)&&typeof fetch=="function"?fetch(N,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+N+"'";return t.arrayBuffer()}).catch(function(){return Qe(N)}):Promise.resolve().then(function(){return Qe(N)})}function qt(){var t={a:Rn};function e(s,a){var u=s.exports;f.asm=u,ue=f.asm.H,ze(ue.buffer),qe=f.asm.M,Yt(f.asm.I),Xt("wasm-instantiate")}xt("wasm-instantiate");function r(s){e(s.instance)}function n(s){return zt().then(function(a){return WebAssembly.instantiate(a,t)}).then(function(a){return a}).then(s,function(a){q("failed to asynchronously prepare wasm: "+a),re(a)})}function i(){return!se&&typeof WebAssembly.instantiateStreaming=="function"&&!Ke(N)&&typeof fetch=="function"?fetch(N,{credentials:"same-origin"}).then(function(s){var a=WebAssembly.instantiateStreaming(s,t);return a.then(r,function(u){return q("wasm streaming compile failed: "+u),q("falling back to ArrayBuffer instantiation"),n(r)})}):n(r)}if(f.instantiateWasm)try{var o=f.instantiateWasm(t,e);return o}catch(s){q("Module.instantiateWasm callback failed with error: "+s),g(s)}return i().catch(g),{}}function Ae(t){for(;t.length>0;)t.shift()(f)}function Zt(t){return me(t+24)+24}function Kt(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(e){m[this.ptr+4>>2]=e},this.get_type=function(){return m[this.ptr+4>>2]},this.set_destructor=function(e){m[this.ptr+8>>2]=e},this.get_destructor=function(){return m[this.ptr+8>>2]},this.set_refcount=function(e){O[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,j[this.ptr+12>>0]=e},this.get_caught=function(){return j[this.ptr+12>>0]!=0},this.set_rethrown=function(e){e=e?1:0,j[this.ptr+13>>0]=e},this.get_rethrown=function(){return j[this.ptr+13>>0]!=0},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=O[this.ptr>>2];O[this.ptr>>2]=e+1},this.release_ref=function(){var e=O[this.ptr>>2];return O[this.ptr>>2]=e-1,e===1},this.set_adjusted_ptr=function(e){m[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return m[this.ptr+16>>2]},this.get_exception_ptr=function(){var e=pt(this.get_type());if(e)return m[this.excPtr>>2];var r=this.get_adjusted_ptr();return r!==0?r:this.excPtr}}var Qt=0,er=0;function tr(t,e,r){var n=new Kt(t);throw n.init(e,r),Qt=t,er++,t}var rr=48,nr=57;function et(t){if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return e>=rr&&e<=nr?"_"+t:t}function ce(t,e){return t=et(t),function(){"use strict";return e.apply(this,arguments)}}var S=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Oe=[];function le(t,e){var r=ce(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+`
`+i.replace(/^Error(:[^\n]*)?\n/,""))});return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},r}var Z=void 0;function h(t){throw new Z(t)}function ir(){for(var t=0,e=5;e<S.length;++e)S[e]!==void 0&&++t;return t}function ar(){for(var t=5;t<S.length;++t)if(S[t]!==void 0)return S[t];return null}function or(){f.count_emval_handles=ir,f.get_first_emval=ar}var V={toValue:t=>(t||h("Cannot use deleted val. handle = "+t),S[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:{var e=Oe.length?Oe.pop():S.length;return S[e]={refcount:1,value:t},e}}}},tt=void 0;function sr(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);rt=t}var rt=void 0;function P(t){for(var e="",r=t;A[r];)e+=rt[A[r++]];return e}function ur(){return Object.keys(H).length}function fr(){var t=[];for(var e in H)H.hasOwnProperty(e)&&t.push(H[e]);return t}var ne=[];function Ie(){for(;ne.length;){var t=ne.pop();t.$$.deleteScheduled=!1,t.delete()}}var ie=void 0;function cr(t){ie=t,ne.length&&ie&&ie(Ie)}function lr(){f.getInheritedInstanceCount=ur,f.getLiveInheritedInstances=fr,f.flushPendingDeletes=Ie,f.setDelayFunction=cr}var H={};function $e(t,e){for(e===void 0&&h("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}function dr(t,e,r){e=$e(t,e),H.hasOwnProperty(e)?h("Tried to register registered instance: "+e):H[e]=r}var X={};function nt(t){var e=vt(t),r=P(e);return M(e),r}function Re(t,e){var r=X[t];return r===void 0&&h(e+" has unknown type "+nt(t)),r}function _r(t,e){e=$e(t,e),H.hasOwnProperty(e)?delete H[e]:h("Tried to unregister unregistered instance: "+e)}function de(t){}var Ne=!1;function vr(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}function it(t){t.count.value-=1;var e=t.count.value===0;e&&vr(t)}function at(t,e,r){if(e===r)return t;if(r.baseClass===void 0)return null;var n=at(t,e,r.baseClass);return n===null?null:r.downcast(n)}var ot={};function pr(t,e){return e=$e(t,e),H[e]}var st=void 0;function _e(t){throw new st(t)}function ve(t,e){(!e.ptrType||!e.ptr)&&_e("makeClassHandle requires ptr and ptrType");var r=!!e.smartPtrType,n=!!e.smartPtr;return r!==n&&_e("Both smartPtrType and smartPtr must be specified"),e.count={value:1},K(Object.create(t,{$$:{value:e}}))}function hr(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=pr(this.registeredClass,e);if(r!==void 0){if(r.$$.count.value===0)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function i(){return this.isSmartPointer?ve(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):ve(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=this.registeredClass.getActualType(e),s=ot[o];if(!s)return i.call(this);var a;this.isConst?a=s.constPointerType:a=s.pointerType;var u=at(e,this.registeredClass,a.registeredClass);return u===null?i.call(this):this.isSmartPointer?ve(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:t}):ve(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})}function K(t){return typeof FinalizationRegistry>"u"?(K=e=>e,t):(Ne=new FinalizationRegistry(e=>{it(e.$$)}),K=e=>{var r=e.$$,n=!!r.smartPtr;if(n){var i={$$:r};Ne.register(e,i,e)}return e},de=e=>Ne.unregister(e),K(t))}function gr(t,e,r){t=P(t),e=Re(e,"wrapper"),r=V.toValue(r);var n=[].slice,i=e.registeredClass,o=i.instancePrototype,s=i.baseClass,a=s.instancePrototype,u=i.baseClass.constructor,c=ce(t,function(){i.baseClass.pureVirtualFunctions.forEach(function(_){if(this[_]===a[_])throw new tt("Pure virtual function "+_+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:o}),this.__construct.apply(this,n.call(arguments))});o.__construct=function(){this===o&&h("Pass correct 'this' to __construct");var v=u.implement.apply(void 0,[this].concat(n.call(arguments)));de(v);var p=v.$$;v.notifyOnDestruction(),p.preservePointerOnDelete=!0,Object.defineProperties(this,{$$:{value:p}}),K(this),dr(i,p.ptr,this)},o.__destruct=function(){this===o&&h("Pass correct 'this' to __destruct"),de(this),_r(i,this.$$.ptr)},c.prototype=Object.create(o);for(var d in r)c.prototype[d]=r[d];return V.toHandle(c)}var pe={};function Se(t){for(;t.length;){var e=t.pop(),r=t.pop();r(e)}}function ae(t){return this.fromWireType(O[t>>2])}var Q={},he={};function G(t,e,r){t.forEach(function(a){he[a]=e});function n(a){var u=r(a);u.length!==t.length&&_e("Mismatched type converter count");for(var c=0;c<t.length;++c)U(t[c],u[c])}var i=new Array(e.length),o=[],s=0;e.forEach((a,u)=>{X.hasOwnProperty(a)?i[u]=X[a]:(o.push(a),Q.hasOwnProperty(a)||(Q[a]=[]),Q[a].push(()=>{i[u]=X[a],++s,s===o.length&&n(i)}))}),o.length===0&&n(i)}function yr(t){var e=pe[t];delete pe[t];var r=e.rawConstructor,n=e.rawDestructor,i=e.fields,o=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));G([t],o,s=>{var a={};return i.forEach((u,c)=>{var d=u.fieldName,_=s[c],v=u.getter,p=u.getterContext,E=s[c+i.length],C=u.setter,L=u.setterContext;a[d]={read:D=>_.fromWireType(v(p,D)),write:(D,J)=>{var w=[];C(L,D,E.toWireType(w,J)),Se(w)}}}),[{name:e.name,fromWireType:function(u){var c={};for(var d in a)c[d]=a[d].read(u);return n(u),c},toWireType:function(u,c){for(var d in a)if(!(d in c))throw new TypeError('Missing field: "'+d+'"');var _=r();for(d in a)a[d].write(_,c[d]);return u!==null&&u.push(n,_),_},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:n}]})}function Tr(t,e,r,n,i){}function ge(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}function U(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||h('type "'+n+'" must have a positive integer typeid pointer'),X.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;h("Cannot register type '"+n+"' twice")}if(X[t]=e,delete he[t],Q.hasOwnProperty(t)){var i=Q[t];delete Q[t],i.forEach(o=>o())}}function mr(t,e,r,n,i){var o=ge(r);e=P(e),U(t,{name:e,fromWireType:function(s){return!!s},toWireType:function(s,a){return a?n:i},argPackAdvance:8,readValueFromPointer:function(s){var a;if(r===1)a=j;else if(r===2)a=x;else if(r===4)a=O;else throw new TypeError("Unknown boolean type size: "+e);return this.fromWireType(a[s>>o])},destructorFunction:null})}function Er(t){if(!(this instanceof B)||!(t instanceof B))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,i=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&r===i}function Pr(t){return{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}}function Fe(t){function e(r){return r.$$.ptrType.registeredClass.name}h(e(t)+" instance already deleted")}function Cr(){if(this.$$.ptr||Fe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=K(Object.create(Object.getPrototypeOf(this),{$$:{value:Pr(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t}function br(){this.$$.ptr||Fe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&h("Object already scheduled for deletion"),de(this),it(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function wr(){return!this.$$.ptr}function Ar(){return this.$$.ptr||Fe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&h("Object already scheduled for deletion"),ne.push(this),ne.length===1&&ie&&ie(Ie),this.$$.deleteScheduled=!0,this}function Or(){B.prototype.isAliasOf=Er,B.prototype.clone=Cr,B.prototype.delete=br,B.prototype.isDeleted=wr,B.prototype.deleteLater=Ar}function B(){}function Ue(t,e,r){if(t[e].overloadTable===void 0){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||h("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function ut(t,e,r){f.hasOwnProperty(t)?((r===void 0||f[t].overloadTable!==void 0&&f[t].overloadTable[r]!==void 0)&&h("Cannot register public name '"+t+"' twice"),Ue(f,t,t),f.hasOwnProperty(r)&&h("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),f[t].overloadTable[r]=e):(f[t]=e,r!==void 0&&(f[t].numArguments=r))}function Ir(t,e,r,n,i,o,s,a){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=s,this.downcast=a,this.pureVirtualFunctions=[]}function Le(t,e,r){for(;e!==r;)e.upcast||h("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function $r(t,e){if(e===null)return this.isReference&&h("null is not a valid "+this.name),0;e.$$||h('Cannot pass "'+He(e)+'" as a '+this.name),e.$$.ptr||h("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass,n=Le(e.$$.ptr,r,this.registeredClass);return n}function Rr(t,e){var r;if(e===null)return this.isReference&&h("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),t!==null&&t.push(this.rawDestructor,r),r):0;e.$$||h('Cannot pass "'+He(e)+'" as a '+this.name),e.$$.ptr||h("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&h("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=Le(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&h("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:h("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var i=e.clone();r=this.rawShare(r,V.toHandle(function(){i.delete()})),t!==null&&t.push(this.rawDestructor,r)}break;default:h("Unsupporting sharing policy")}return r}function Nr(t,e){if(e===null)return this.isReference&&h("null is not a valid "+this.name),0;e.$$||h('Cannot pass "'+He(e)+'" as a '+this.name),e.$$.ptr||h("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&h("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass,n=Le(e.$$.ptr,r,this.registeredClass);return n}function Sr(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Fr(t){this.rawDestructor&&this.rawDestructor(t)}function Ur(t){t!==null&&t.delete()}function Lr(){k.prototype.getPointee=Sr,k.prototype.destructor=Fr,k.prototype.argPackAdvance=8,k.prototype.readValueFromPointer=ae,k.prototype.deleteObject=Ur,k.prototype.fromWireType=hr}function k(t,e,r,n,i,o,s,a,u,c,d){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=s,this.rawGetPointee=a,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=d,!i&&e.baseClass===void 0?n?(this.toWireType=$r,this.destructorFunction=null):(this.toWireType=Nr,this.destructorFunction=null):this.toWireType=Rr}function Dr(t,e,r){f.hasOwnProperty(t)||_e("Replacing nonexistant public symbol"),f[t].overloadTable!==void 0&&r!==void 0?f[t].overloadTable[r]=e:(f[t]=e,f[t].argCount=r)}function Wr(t,e,r){var n=f["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}function ft(t){return qe.get(t)}function Vr(t,e,r){if(t.includes("j"))return Wr(t,e,r);var n=ft(e).apply(null,r);return n}function Hr(t,e){var r=[];return function(){return r.length=0,Object.assign(r,arguments),Vr(t,e,r)}}function F(t,e){t=P(t);function r(){return t.includes("j")?Hr(t,e):ft(e)}var n=r();return typeof n!="function"&&h("unknown function pointer with signature "+t+": "+e),n}var ct=void 0;function ye(t,e){var r=[],n={};function i(o){if(!n[o]&&!X[o]){if(he[o]){he[o].forEach(i);return}r.push(o),n[o]=!0}}throw e.forEach(i),new ct(t+": "+r.map(nt).join([", "]))}function kr(t,e,r,n,i,o,s,a,u,c,d,_,v){d=P(d),o=F(i,o),a&&(a=F(s,a)),c&&(c=F(u,c)),v=F(_,v);var p=et(d);ut(p,function(){ye("Cannot construct "+d+" due to unbound types",[n])}),G([t,e,r],n?[n]:[],function(E){E=E[0];var C,L;n?(C=E.registeredClass,L=C.instancePrototype):L=B.prototype;var D=ce(p,function(){if(Object.getPrototypeOf(this)!==J)throw new Z("Use 'new' to construct "+d);if(w.constructor_body===void 0)throw new Z(d+" has no accessible constructor");var Tt=w.constructor_body[arguments.length];if(Tt===void 0)throw new Z("Tried to invoke ctor of "+d+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(w.constructor_body).toString()+") parameters instead!");return Tt.apply(this,arguments)}),J=Object.create(L,{constructor:{value:D}});D.prototype=J;var w=new Ir(d,D,J,v,C,o,a,c),ke=new k(d,w,!0,!1,!1),gt=new k(d+"*",w,!1,!1,!1),yt=new k(d+" const*",w,!1,!0,!1);return ot[t]={pointerType:gt,constPointerType:yt},Dr(p,D),[ke,gt,yt]})}function De(t,e,r,n,i){var o=e.length;o<2&&h("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=e[1]!==null&&r!==null,a=!1,u=1;u<e.length;++u)if(e[u]!==null&&e[u].destructorFunction===void 0){a=!0;break}var c=e[0].name!=="void",d=o-2,_=new Array(d),v=[],p=[];return function(){arguments.length!==d&&h("function "+t+" called with "+arguments.length+" arguments, expected "+d+" args!"),p.length=0;var E;v.length=s?2:1,v[0]=i,s&&(E=e[1].toWireType(p,this),v[1]=E);for(var C=0;C<d;++C)_[C]=e[C+2].toWireType(p,arguments[C]),v.push(_[C]);var L=n.apply(null,v);function D(J){if(a)Se(p);else for(var w=s?1:2;w<e.length;w++){var ke=w===1?E:_[w-2];e[w].destructorFunction!==null&&e[w].destructorFunction(ke)}if(c)return e[0].fromWireType(J)}return D(L)}}function We(t,e){for(var r=[],n=0;n<t;n++)r.push(m[e+n*4>>2]);return r}function Mr(t,e,r,n,i,o,s){var a=We(r,n);e=P(e),o=F(i,o),G([],[t],function(u){u=u[0];var c=u.name+"."+e;function d(){ye("Cannot call "+c+" due to unbound types",a)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]);var _=u.registeredClass.constructor;return _[e]===void 0?(d.argCount=r-1,_[e]=d):(Ue(_,e,c),_[e].overloadTable[r-1]=d),G([],a,function(v){var p=[v[0],null].concat(v.slice(1)),E=De(c,p,null,o,s);return _[e].overloadTable===void 0?(E.argCount=r-1,_[e]=E):_[e].overloadTable[r-1]=E,[]}),[]})}function jr(t,e,r,n,i,o){Lt(e>0);var s=We(e,r);i=F(n,i),G([],[t],function(a){a=a[0];var u="constructor "+a.name;if(a.registeredClass.constructor_body===void 0&&(a.registeredClass.constructor_body=[]),a.registeredClass.constructor_body[e-1]!==void 0)throw new Z("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+a.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return a.registeredClass.constructor_body[e-1]=()=>{ye("Cannot construct "+a.name+" due to unbound types",s)},G([],s,function(c){return c.splice(1,0,null),a.registeredClass.constructor_body[e-1]=De(u,c,null,i,o),[]}),[]})}function Gr(t,e,r,n,i,o,s,a){var u=We(r,n);e=P(e),o=F(i,o),G([],[t],function(c){c=c[0];var d=c.name+"."+e;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),a&&c.registeredClass.pureVirtualFunctions.push(e);function _(){ye("Cannot call "+d+" due to unbound types",u)}var v=c.registeredClass.instancePrototype,p=v[e];return p===void 0||p.overloadTable===void 0&&p.className!==c.name&&p.argCount===r-2?(_.argCount=r-2,_.className=c.name,v[e]=_):(Ue(v,e,d),v[e].overloadTable[r-2]=_),G([],u,function(E){var C=De(d,E,c,o,s);return v[e].overloadTable===void 0?(C.argCount=r-2,v[e]=C):v[e].overloadTable[r-2]=C,[]}),[]})}function Ve(t){t>4&&--S[t].refcount===0&&(S[t]=void 0,Oe.push(t))}function Br(t,e){e=P(e),U(t,{name:e,fromWireType:function(r){var n=V.toValue(r);return Ve(r),n},toWireType:function(r,n){return V.toHandle(n)},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:null})}function Yr(t,e,r){switch(e){case 0:return function(n){var i=r?j:A;return this.fromWireType(i[n])};case 1:return function(n){var i=r?x:fe;return this.fromWireType(i[n>>1])};case 2:return function(n){var i=r?O:m;return this.fromWireType(i[n>>2])};default:throw new TypeError("Unknown integer type: "+t)}}function xr(t,e,r,n){var i=ge(r);e=P(e);function o(){}o.values={},U(t,{name:e,constructor:o,fromWireType:function(s){return this.constructor.values[s]},toWireType:function(s,a){return a.value},argPackAdvance:8,readValueFromPointer:Yr(e,i,n),destructorFunction:null}),ut(e,o)}function Xr(t,e,r){var n=Re(t,"enum");e=P(e);var i=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:ce(n.name+"_"+e,function(){})}});i.values[r]=o,i[e]=o}function He(t){if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t}function Jr(t,e){switch(e){case 2:return function(r){return this.fromWireType(Xe[r>>2])};case 3:return function(r){return this.fromWireType(Je[r>>3])};default:throw new TypeError("Unknown float type: "+t)}}function zr(t,e,r){var n=ge(r);e=P(e),U(t,{name:e,fromWireType:function(i){return i},toWireType:function(i,o){return o},argPackAdvance:8,readValueFromPointer:Jr(e,n),destructorFunction:null})}function qr(t,e,r){switch(e){case 0:return r?function(i){return j[i]}:function(i){return A[i]};case 1:return r?function(i){return x[i>>1]}:function(i){return fe[i>>1]};case 2:return r?function(i){return O[i>>2]}:function(i){return m[i>>2]};default:throw new TypeError("Unknown integer type: "+t)}}function Zr(t,e,r,n,i){e=P(e),i===-1&&(i=4294967295);var o=ge(r),s=_=>_;if(n===0){var a=32-8*r;s=_=>_<<a>>>a}var u=e.includes("unsigned"),c=(_,v)=>{},d;u?d=function(_,v){return c(v,this.name),v>>>0}:d=function(_,v){return c(v,this.name),v},U(t,{name:e,fromWireType:s,toWireType:d,argPackAdvance:8,readValueFromPointer:qr(e,o,n!==0),destructorFunction:null})}function Kr(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function o(s){s=s>>2;var a=m,u=a[s],c=a[s+1];return new i(be,c,u)}r=P(r),U(t,{name:r,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function Qr(t,e){e=P(e);var r=e==="std::string";U(t,{name:e,fromWireType:function(n){var i=m[n>>2],o=n+4,s;if(r)for(var a=o,u=0;u<=i;++u){var c=o+u;if(u==i||A[c]==0){var d=c-a,_=xe(a,d);s===void 0?s=_:(s+=String.fromCharCode(0),s+=_),a=c+1}}else{for(var v=new Array(i),u=0;u<i;++u)v[u]=String.fromCharCode(A[o+u]);s=v.join("")}return M(n),s},toWireType:function(n,i){i instanceof ArrayBuffer&&(i=new Uint8Array(i));var o,s=typeof i=="string";s||i instanceof Uint8Array||i instanceof Uint8ClampedArray||i instanceof Int8Array||h("Cannot pass non-string to std::string"),r&&s?o=Vt(i):o=i.length;var a=me(4+o+1),u=a+4;if(m[a>>2]=o,r&&s)Wt(i,u,o+1);else if(s)for(var c=0;c<o;++c){var d=i.charCodeAt(c);d>255&&(M(u),h("String has UTF-16 code units that do not fit in 8 bits")),A[u+c]=d}else for(var c=0;c<o;++c)A[u+c]=i[c];return n!==null&&n.push(M,a),a},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:function(n){M(n)}})}function en(t,e){for(var r="",n=0;!(n>=e/2);++n){var i=x[t+n*2>>1];if(i==0)break;r+=String.fromCharCode(i)}return r}function tn(t,e,r){if(r===void 0&&(r=2147483647),r<2)return 0;r-=2;for(var n=e,i=r<t.length*2?r/2:t.length,o=0;o<i;++o){var s=t.charCodeAt(o);x[e>>1]=s,e+=2}return x[e>>1]=0,e-n}function rn(t){return t.length*2}function nn(t,e){for(var r=0,n="";!(r>=e/4);){var i=O[t+r*4>>2];if(i==0)break;if(++r,i>=65536){var o=i-65536;n+=String.fromCharCode(55296|o>>10,56320|o&1023)}else n+=String.fromCharCode(i)}return n}function an(t,e,r){if(r===void 0&&(r=2147483647),r<4)return 0;for(var n=e,i=n+r-4,o=0;o<t.length;++o){var s=t.charCodeAt(o);if(s>=55296&&s<=57343){var a=t.charCodeAt(++o);s=65536+((s&1023)<<10)|a&1023}if(O[e>>2]=s,e+=4,e+4>i)break}return O[e>>2]=0,e-n}function on(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}function sn(t,e,r){r=P(r);var n,i,o,s,a;e===2?(n=en,i=tn,s=rn,o=()=>fe,a=1):e===4&&(n=nn,i=an,s=on,o=()=>m,a=2),U(t,{name:r,fromWireType:function(u){for(var c=m[u>>2],d=o(),_,v=u+4,p=0;p<=c;++p){var E=u+4+p*e;if(p==c||d[E>>a]==0){var C=E-v,L=n(v,C);_===void 0?_=L:(_+=String.fromCharCode(0),_+=L),v=E+e}}return M(u),_},toWireType:function(u,c){typeof c!="string"&&h("Cannot pass non-string to C++ string type "+r);var d=s(c),_=me(4+d+e);return m[_>>2]=d>>a,i(c,_+4,d+e),u!==null&&u.push(M,_),_},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:function(u){M(u)}})}function un(t,e,r,n,i,o){pe[t]={name:P(e),rawConstructor:F(r,n),rawDestructor:F(i,o),fields:[]}}function fn(t,e,r,n,i,o,s,a,u,c){pe[t].fields.push({fieldName:P(e),getterReturnType:r,getter:F(n,i),getterContext:o,setterArgumentType:s,setter:F(a,u),setterContext:c})}function cn(t,e){e=P(e),U(t,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:function(){},toWireType:function(r,n){}})}function ln(t){var e=[];return m[t>>2]=V.toHandle(e),e}var dn={};function lt(t){var e=dn[t];return e===void 0?P(t):e}var Te=[];function _n(t,e,r,n,i){return t=Te[t],e=V.toValue(e),r=lt(r),t(e,r,ln(n),i)}function vn(t,e,r,n){t=Te[t],e=V.toValue(e),r=lt(r),t(e,r,null,n)}function pn(t){var e=Te.length;return Te.push(t),e}function hn(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=Re(m[e+n*Ft>>2],"parameter "+n);return r}var dt=[];function gn(t,e){var r=hn(t,e),n=r[0],i=n.name+"_$"+r.slice(1).map(function(u){return u.name}).join("_")+"$",o=dt[i];if(o!==void 0)return o;var s=new Array(t-1),a=(u,c,d,_)=>{for(var v=0,p=0;p<t-1;++p)s[p]=r[p+1].readValueFromPointer(_+v),v+=r[p+1].argPackAdvance;for(var E=u[c].apply(u,s),p=0;p<t-1;++p)r[p+1].deleteObject&&r[p+1].deleteObject(s[p]);if(!n.isVoid)return n.toWireType(d,E)};return o=pn(a),dt[i]=o,o}function yn(t){t>4&&(S[t].refcount+=1)}function Tn(t){var e=V.toValue(t);Se(e),Ve(t)}function mn(){re("")}function En(t,e,r){A.copyWithin(t,e,e+r)}function Pn(){return 2147483648}function Cn(t){try{return ue.grow(t-be.byteLength+65535>>>16),ze(ue.buffer),1}catch{}}function bn(t){var e=A.length;t=t>>>0;var r=Pn();if(t>r)return!1;let n=(u,c)=>u+(c-u%c)%c;for(var i=1;i<=4;i*=2){var o=e*(1+.2/i);o=Math.min(o,t+100663296);var s=Math.min(r,n(Math.max(t,o),65536)),a=Cn(s);if(a)return!0}return!1}var _t={varargs:void 0,get:function(){_t.varargs+=4;var t=O[_t.varargs-4>>2];return t},getStr:function(t){var e=xe(t);return e}};function wn(t){return 52}function An(t,e,r,n,i){return 70}var On=[null,[],[]];function In(t,e){var r=On[t];e===0||e===10?((t===1?St:q)(Ye(r,0)),r.length=0):r.push(e)}function $n(t,e,r,n){for(var i=0,o=0;o<r;o++){var s=m[e>>2],a=m[e+4>>2];e+=8;for(var u=0;u<a;u++)In(t,A[s+u]);i+=a}return m[n>>2]=i,0}Z=f.BindingError=le(Error,"BindingError"),or(),tt=f.PureVirtualError=le(Error,"PureVirtualError"),sr(),lr(),st=f.InternalError=le(Error,"InternalError"),Or(),Lr(),ct=f.UnboundTypeError=le(Error,"UnboundTypeError");var Rn={j:Zt,i:tr,s:gr,n:yr,v:Tr,B:mr,f:kr,e:Mr,o:jr,a:Gr,A:Br,m:xr,c:Xr,q:zr,d:Zr,b:Kr,r:Qr,l:sn,k:un,h:fn,C:cn,F:_n,G:vn,g:Ve,t:gn,D:yn,E:Tn,p:mn,x:En,w:bn,z:wn,u:An,y:$n},jn=qt(),Nn=f.___wasm_call_ctors=function(){return(Nn=f.___wasm_call_ctors=f.asm.I).apply(null,arguments)},vt=f.___getTypeName=function(){return(vt=f.___getTypeName=f.asm.J).apply(null,arguments)},Sn=f.__embind_initialize_bindings=function(){return(Sn=f.__embind_initialize_bindings=f.asm.K).apply(null,arguments)},me=f._malloc=function(){return(me=f._malloc=f.asm.L).apply(null,arguments)},M=f._free=function(){return(M=f._free=f.asm.N).apply(null,arguments)},pt=f.___cxa_is_pointer_type=function(){return(pt=f.___cxa_is_pointer_type=f.asm.O).apply(null,arguments)},Fn=f.dynCall_jiji=function(){return(Fn=f.dynCall_jiji=f.asm.P).apply(null,arguments)},Ee;te=function t(){Ee||ht(),Ee||(te=t)};function ht(t){if(t=t||W,ee>0||(jt(),ee>0))return;function e(){Ee||(Ee=!0,f.calledRun=!0,!Be&&(Gt(),y(f),Bt()))}e()}return ht(),l.ready}})(),je=Mn;function Ot(T,l){return l}async function Jn(T){let l=await je({instantiateWasm(f,y){return WebAssembly.instantiate(T,f).then(g=>{y(g.instance||g)}),{}},locateFile(){return""}});return(0,Ge.default)(Ot,l)}async function zn(T){let l=await je({instantiateWasm(f,y){return WebAssembly.instantiateStreaming(T,f).then(g=>{y(g.instance||g)}),{}},locateFile(){return""}});return(0,Ge.default)(Ot,l)}export{Jn as default,zn as initStreaming};
var Nn=Object.create;var He=Object.defineProperty;var Sn=Object.getOwnPropertyDescriptor;var Fn=Object.getOwnPropertyNames;var Un=Object.getPrototypeOf,Ln=Object.prototype.hasOwnProperty;var Dn=y=>He(y,"__esModule",{value:!0});var Tt=(y,l)=>()=>(l||y((l={exports:{}}).exports,l),l.exports);var Wn=(y,l,f,T)=>{if(l&&typeof l=="object"||typeof l=="function")for(let g of Fn(l))!Ln.call(y,g)&&(f||g!=="default")&&He(y,g,{get:()=>l[g],enumerable:!(T=Sn(l,g))||T.enumerable});return y},mt=(y,l)=>Wn(Dn(He(y!=null?Nn(Un(y)):{},"default",!l&&y&&y.__esModule?{get:()=>y.default,enumerable:!0}:{value:y,enumerable:!0})),y);var Pt=Tt((jn,Et)=>{var Vn={ALIGN_COUNT:8,ALIGN_AUTO:0,ALIGN_FLEX_START:1,ALIGN_CENTER:2,ALIGN_FLEX_END:3,ALIGN_STRETCH:4,ALIGN_BASELINE:5,ALIGN_SPACE_BETWEEN:6,ALIGN_SPACE_AROUND:7,DIMENSION_COUNT:2,DIMENSION_WIDTH:0,DIMENSION_HEIGHT:1,DIRECTION_COUNT:3,DIRECTION_INHERIT:0,DIRECTION_LTR:1,DIRECTION_RTL:2,DISPLAY_COUNT:2,DISPLAY_FLEX:0,DISPLAY_NONE:1,EDGE_COUNT:9,EDGE_LEFT:0,EDGE_TOP:1,EDGE_RIGHT:2,EDGE_BOTTOM:3,EDGE_START:4,EDGE_END:5,EDGE_HORIZONTAL:6,EDGE_VERTICAL:7,EDGE_ALL:8,EXPERIMENTAL_FEATURE_COUNT:1,EXPERIMENTAL_FEATURE_WEB_FLEX_BASIS:0,FLEX_DIRECTION_COUNT:4,FLEX_DIRECTION_COLUMN:0,FLEX_DIRECTION_COLUMN_REVERSE:1,FLEX_DIRECTION_ROW:2,FLEX_DIRECTION_ROW_REVERSE:3,GUTTER_COUNT:3,GUTTER_COLUMN:0,GUTTER_ROW:1,GUTTER_ALL:2,JUSTIFY_COUNT:6,JUSTIFY_FLEX_START:0,JUSTIFY_CENTER:1,JUSTIFY_FLEX_END:2,JUSTIFY_SPACE_BETWEEN:3,JUSTIFY_SPACE_AROUND:4,JUSTIFY_SPACE_EVENLY:5,LOG_LEVEL_COUNT:6,LOG_LEVEL_ERROR:0,LOG_LEVEL_WARN:1,LOG_LEVEL_INFO:2,LOG_LEVEL_DEBUG:3,LOG_LEVEL_VERBOSE:4,LOG_LEVEL_FATAL:5,MEASURE_MODE_COUNT:3,MEASURE_MODE_UNDEFINED:0,MEASURE_MODE_EXACTLY:1,MEASURE_MODE_AT_MOST:2,NODE_TYPE_COUNT:2,NODE_TYPE_DEFAULT:0,NODE_TYPE_TEXT:1,OVERFLOW_COUNT:3,OVERFLOW_VISIBLE:0,OVERFLOW_HIDDEN:1,OVERFLOW_SCROLL:2,POSITION_TYPE_COUNT:3,POSITION_TYPE_STATIC:0,POSITION_TYPE_RELATIVE:1,POSITION_TYPE_ABSOLUTE:2,PRINT_OPTIONS_COUNT:3,PRINT_OPTIONS_LAYOUT:1,PRINT_OPTIONS_STYLE:2,PRINT_OPTIONS_CHILDREN:4,UNIT_COUNT:4,UNIT_UNDEFINED:0,UNIT_POINT:1,UNIT_PERCENT:2,UNIT_AUTO:3,WRAP_COUNT:3,WRAP_NO_WRAP:0,WRAP_WRAP:1,WRAP_WRAP_REVERSE:2};Et.exports=Vn});var wt=Tt((Gn,bt)=>{var $=mt(Pt()),Ct=class{left;right;top;bottom;width;height;constructor(l,f,T,g,W,R){this.left=l,this.right=f,this.top=T,this.bottom=g,this.width=W,this.height=R}fromJS(l){l(this.left,this.right,this.top,this.bottom,this.width,this.height)}toString(){return`<Layout#${this.left}:${this.right};${this.top}:${this.bottom};${this.width}:${this.height}>`}},ye=class{static fromJS({width:l,height:f}){return new ye(l,f)}width;height;constructor(l,f){this.width=l,this.height=f}fromJS(l){l(this.width,this.height)}toString(){return`<Size#${this.width}x${this.height}>`}},ke=class{unit;value;constructor(l,f){this.unit=l,this.value=f}fromJS(l){l(this.unit,this.value)}toString(){switch(this.unit){case $.default.UNIT_POINT:return String(this.value);case $.default.UNIT_PERCENT:return`${this.value}%`;case $.default.UNIT_AUTO:return"auto";default:return`${this.value}?`}}valueOf(){return this.value}};function J(y,l,f){let T=y[l];y[l]=function(...g){return f.call(this,T,...g)}}bt.exports=(y,l)=>{for(let T of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){let g={[$.default.UNIT_POINT]:l.Node.prototype[T],[$.default.UNIT_PERCENT]:l.Node.prototype[`${T}Percent`],[$.default.UNIT_AUTO]:l.Node.prototype[`${T}Auto`]};J(l.Node.prototype,T,function(W,...R){let A=R.pop(),N,C;if(A==="auto")N=$.default.UNIT_AUTO,C=void 0;else if(A instanceof ke)N=A.unit,C=A.valueOf();else if(N=typeof A=="string"&&A.endsWith("%")?$.default.UNIT_PERCENT:$.default.UNIT_POINT,C=parseFloat(A),!Number.isNaN(A)&&Number.isNaN(C))throw new Error(`Invalid value ${A} for ${T}`);if(!g[N])throw new Error(`Failed to execute "${T}": Unsupported unit '${A}'`);return C!==void 0?g[N].call(this,...R,C):g[N].call(this,...R)})}J(l.Config.prototype,"free",function(){l.Config.destroy(this)}),J(l.Node,"create",function(T,g){return g?l.Node.createWithConfig(g):l.Node.createDefault()}),J(l.Node.prototype,"free",function(){l.Node.destroy(this)}),J(l.Node.prototype,"freeRecursive",function(){for(let T=0,g=this.getChildCount();T<g;++T)this.getChild(0).freeRecursive();this.free()});function f(T){return l.MeasureCallback.implement({measure:(...g)=>{let{width:W,height:R}=T(...g);return{width:W??0,height:R??0}}})}return J(l.Node.prototype,"setMeasureFunc",function(T,g){T.call(this,f(g))}),J(l.Node.prototype,"calculateLayout",function(T,g=NaN,W=NaN,R=$.default.DIRECTION_LTR){return T.call(this,g,W,R)}),{Config:l.Config,Node:l.Node,Layout:y("Layout",Ct),Size:y("Size",ye),Value:y("Value",ke),...$.default}}});var je=mt(wt(),1);var Hn=(()=>{var y=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(l){l=l||{};var f;f||(f=typeof l<"u"?l:{});var T,g;f.ready=new Promise(function(t,e){T=t,g=e});var W=Object.assign({},f),R=[],A=!0,N=!1,C="";function Ot(t){return f.locateFile?f.locateFile(t,C):C+t}var It,$t,Te,Rt;(A||N)&&(N?C=self.location.href:typeof document<"u"&&document.currentScript&&(C=document.currentScript.src),y&&(C=y),C.indexOf("blob:")!==0?C=C.substr(0,C.replace(/[?#].*/,"").lastIndexOf("/")+1):C="",It=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},N&&(Te=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),$t=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{if(n.status==200||n.status==0&&n.response){e(n.response);return}r()},n.onerror=r,n.send(null)},Rt=t=>document.title=t);var Nt=console.log.bind(console),z=console.warn.bind(console);Object.assign(f,W),W=null;var St=4,oe;typeof WebAssembly!="object"&&re("no native wasm support detected");var se,Ge=!1,Ft;function Ut(t,e){t||re(e)}function Be(t,e,r){for(var n=e+r,i="";!(e>=n);){var o=t[e++];if(!o)return i;if(!(o&128)){i+=String.fromCharCode(o);continue}var s=t[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var a=t[e++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|a:o=(o&7)<<18|s<<12|a<<6|t[e++]&63,o<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|u&1023)}}return i}function Ye(t,e){return t?Be(O,t,e):""}function Lt(t,e,r,n){if(!(n>0))return 0;for(var i=r,o=r+n-1,s=0;s<t.length;++s){var a=t.charCodeAt(s);if(a>=55296&&a<=57343){var u=t.charCodeAt(++s);a=65536+((a&1023)<<10)|u&1023}if(a<=127){if(r>=o)break;e[r++]=a}else if(a<=2047){if(r+1>=o)break;e[r++]=192|a>>6,e[r++]=128|a&63}else if(a<=65535){if(r+2>=o)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|a&63}else{if(r+3>=o)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|a&63}}return e[r]=0,r-i}function Dt(t,e,r){return Lt(t,O,e,r)}function Wt(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}var me,Y,O,q,Ee,I,m,xe,Xe;function Je(t){me=t,f.HEAP8=Y=new Int8Array(t),f.HEAP16=q=new Int16Array(t),f.HEAP32=I=new Int32Array(t),f.HEAPU8=O=new Uint8Array(t),f.HEAPU16=Ee=new Uint16Array(t),f.HEAPU32=m=new Uint32Array(t),f.HEAPF32=xe=new Float32Array(t),f.HEAPF64=Xe=new Float64Array(t)}var ze,Vt=[],qe=[],Ht=[],kt=!1;function Mt(){Ce(Vt)}function jt(){kt=!0,Ce(qe)}function Gt(){Ce(Ht)}function Bt(t){qe.unshift(t)}var ee=0,Pe=null,te=null;function Yt(t){ee++}function xt(t){if(ee--,ee==0&&(Pe!==null&&(clearInterval(Pe),Pe=null),te)){var e=te;te=null,e()}}function re(t){t="Aborted("+t+")",z(t),Ge=!0,Ft=1,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw g(e),e}var Xt="data:application/octet-stream;base64,";function Ze(t){return t.startsWith(Xt)}var S;S="yoga.wasm",Ze(S)||(S=Ot(S));function Ke(t){try{if(t==S&&oe)return new Uint8Array(oe);if(Te)return Te(t);throw"both async and sync fetching of the wasm failed"}catch(e){re(e)}}function Jt(){return!oe&&(A||N)&&typeof fetch=="function"?fetch(S,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+S+"'";return t.arrayBuffer()}).catch(function(){return Ke(S)}):Promise.resolve().then(function(){return Ke(S)})}function zt(){var t={a:On};function e(s,a){var u=s.exports;f.asm=u,se=f.asm.F,Je(se.buffer),ze=f.asm.K,Bt(f.asm.G),xt("wasm-instantiate")}Yt("wasm-instantiate");function r(s){e(s.instance)}function n(s){return Jt().then(function(a){return WebAssembly.instantiate(a,t)}).then(function(a){return a}).then(s,function(a){z("failed to asynchronously prepare wasm: "+a),re(a)})}function i(){return!oe&&typeof WebAssembly.instantiateStreaming=="function"&&!Ze(S)&&typeof fetch=="function"?fetch(S,{credentials:"same-origin"}).then(function(s){var a=WebAssembly.instantiateStreaming(s,t);return a.then(r,function(u){return z("wasm streaming compile failed: "+u),z("falling back to ArrayBuffer instantiation"),n(r)})}):n(r)}if(f.instantiateWasm)try{var o=f.instantiateWasm(t,e);return o}catch(s){z("Module.instantiateWasm callback failed with error: "+s),g(s)}return i().catch(g),{}}function Ce(t){for(;t.length>0;)t.shift()(f)}function qt(t){return ve(t+24)+24}function Zt(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(e){m[this.ptr+4>>2]=e},this.get_type=function(){return m[this.ptr+4>>2]},this.set_destructor=function(e){m[this.ptr+8>>2]=e},this.get_destructor=function(){return m[this.ptr+8>>2]},this.set_refcount=function(e){I[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,Y[this.ptr+12>>0]=e},this.get_caught=function(){return Y[this.ptr+12>>0]!=0},this.set_rethrown=function(e){e=e?1:0,Y[this.ptr+13>>0]=e},this.get_rethrown=function(){return Y[this.ptr+13>>0]!=0},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=I[this.ptr>>2];I[this.ptr>>2]=e+1},this.release_ref=function(){var e=I[this.ptr>>2];return I[this.ptr>>2]=e-1,e===1},this.set_adjusted_ptr=function(e){m[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return m[this.ptr+16>>2]},this.get_exception_ptr=function(){var e=ht(this.get_type());if(e)return m[this.excPtr>>2];var r=this.get_adjusted_ptr();return r!==0?r:this.excPtr}}var Kt=0,Qt=0;function er(t,e,r){var n=new Zt(t);throw n.init(e,r),Kt=t,Qt++,t}var tr=48,rr=57;function Qe(t){if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return e>=tr&&e<=rr?"_"+t:t}function be(t,e){return t=Qe(t),function(){return e.apply(this,arguments)}}var F=[{},{value:void 0},{value:null},{value:!0},{value:!1}],we=[];function ue(t,e){var r=be(e,function(n){this.name=e,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+`
`+i.replace(/^Error(:[^\n]*)?\n/,""))});return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},r}var Z=void 0;function v(t){throw new Z(t)}function nr(){for(var t=0,e=5;e<F.length;++e)F[e]!==void 0&&++t;return t}function ir(){for(var t=5;t<F.length;++t)if(F[t]!==void 0)return F[t];return null}function ar(){f.count_emval_handles=nr,f.get_first_emval=ir}var V={toValue:t=>(t||v("Cannot use deleted val. handle = "+t),F[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:{var e=we.length?we.pop():F.length;return F[e]={refcount:1,value:t},e}}}},et=void 0;function or(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);tt=t}var tt=void 0;function b(t){for(var e="",r=t;O[r];)e+=tt[O[r++]];return e}function sr(){return Object.keys(H).length}function ur(){var t=[];for(var e in H)H.hasOwnProperty(e)&&t.push(H[e]);return t}var ne=[];function Ae(){for(;ne.length;){var t=ne.pop();t.$$.deleteScheduled=!1,t.delete()}}var ie=void 0;function fr(t){ie=t,ne.length&&ie&&ie(Ae)}function cr(){f.getInheritedInstanceCount=sr,f.getLiveInheritedInstances=ur,f.flushPendingDeletes=Ae,f.setDelayFunction=fr}var H={};function Oe(t,e){for(e===void 0&&v("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}function lr(t,e,r){e=Oe(t,e),H.hasOwnProperty(e)?v("Tried to register registered instance: "+e):H[e]=r}var x={};function rt(t){var e=_t(t),r=b(e);return j(e),r}function nt(t,e){var r=x[t];return r===void 0&&v(e+" has unknown type "+rt(t)),r}function dr(t,e){e=Oe(t,e),H.hasOwnProperty(e)?delete H[e]:v("Tried to unregister unregistered instance: "+e)}function fe(t){}var Ie=!1;function _r(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}function it(t){t.count.value-=1;var e=t.count.value===0;e&&_r(t)}function at(t,e,r){if(e===r)return t;if(r.baseClass===void 0)return null;var n=at(t,e,r.baseClass);return n===null?null:r.downcast(n)}var ot={};function hr(t,e){return e=Oe(t,e),H[e]}var st=void 0;function ce(t){throw new st(t)}function le(t,e){(!e.ptrType||!e.ptr)&&ce("makeClassHandle requires ptr and ptrType");var r=!!e.smartPtrType,n=!!e.smartPtr;return r!==n&&ce("Both smartPtrType and smartPtr must be specified"),e.count={value:1},K(Object.create(t,{$$:{value:e}}))}function pr(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=hr(this.registeredClass,e);if(r!==void 0){if(r.$$.count.value===0)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function i(){return this.isSmartPointer?le(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):le(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o=this.registeredClass.getActualType(e),s=ot[o];if(!s)return i.call(this);var a;this.isConst?a=s.constPointerType:a=s.pointerType;var u=at(e,this.registeredClass,a.registeredClass);return u===null?i.call(this):this.isSmartPointer?le(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:t}):le(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})}function K(t){return typeof FinalizationRegistry>"u"?(K=e=>e,t):(Ie=new FinalizationRegistry(e=>{it(e.$$)}),K=e=>{var r=e.$$,n=!!r.smartPtr;if(n){var i={$$:r};Ie.register(e,i,e)}return e},fe=e=>Ie.unregister(e),K(t))}function vr(t,e,r){t=b(t),e=nt(e,"wrapper"),r=V.toValue(r);var n=[].slice,i=e.registeredClass,o=i.instancePrototype,s=i.baseClass,a=s.instancePrototype,u=i.baseClass.constructor,c=be(t,function(){i.baseClass.pureVirtualFunctions.forEach(function(_){if(this[_]===a[_])throw new et("Pure virtual function "+_+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:o}),this.__construct.apply(this,n.call(arguments))});o.__construct=function(){this===o&&v("Pass correct 'this' to __construct");var h=u.implement.apply(void 0,[this].concat(n.call(arguments)));fe(h);var p=h.$$;h.notifyOnDestruction(),p.preservePointerOnDelete=!0,Object.defineProperties(this,{$$:{value:p}}),K(this),lr(i,p.ptr,this)},o.__destruct=function(){this===o&&v("Pass correct 'this' to __destruct"),fe(this),dr(i,this.$$.ptr)},c.prototype=Object.create(o);for(var d in r)c.prototype[d]=r[d];return V.toHandle(c)}var de={};function $e(t){for(;t.length;){var e=t.pop(),r=t.pop();r(e)}}function ae(t){return this.fromWireType(I[t>>2])}var Q={},_e={};function G(t,e,r){t.forEach(function(a){_e[a]=e});function n(a){var u=r(a);u.length!==t.length&&ce("Mismatched type converter count");for(var c=0;c<t.length;++c)k(t[c],u[c])}var i=new Array(e.length),o=[],s=0;e.forEach((a,u)=>{x.hasOwnProperty(a)?i[u]=x[a]:(o.push(a),Q.hasOwnProperty(a)||(Q[a]=[]),Q[a].push(()=>{i[u]=x[a],++s,s===o.length&&n(i)}))}),o.length===0&&n(i)}function gr(t){var e=de[t];delete de[t];var r=e.rawConstructor,n=e.rawDestructor,i=e.fields,o=i.map(s=>s.getterReturnType).concat(i.map(s=>s.setterArgumentType));G([t],o,s=>{var a={};return i.forEach((u,c)=>{var d=u.fieldName,_=s[c],h=u.getter,p=u.getterContext,E=s[c+i.length],P=u.setter,L=u.setterContext;a[d]={read:D=>_.fromWireType(h(p,D)),write:(D,X)=>{var w=[];P(L,D,E.toWireType(w,X)),$e(w)}}}),[{name:e.name,fromWireType:function(u){var c={};for(var d in a)c[d]=a[d].read(u);return n(u),c},toWireType:function(u,c){for(var d in a)if(!(d in c))throw new TypeError('Missing field: "'+d+'"');var _=r();for(d in a)a[d].write(_,c[d]);return u!==null&&u.push(n,_),_},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:n}]})}function yr(t,e,r,n,i){}function Re(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}function k(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||v('type "'+n+'" must have a positive integer typeid pointer'),x.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;v("Cannot register type '"+n+"' twice")}if(x[t]=e,delete _e[t],Q.hasOwnProperty(t)){var i=Q[t];delete Q[t],i.forEach(o=>o())}}function Tr(t,e,r,n,i){var o=Re(r);e=b(e),k(t,{name:e,fromWireType:function(s){return!!s},toWireType:function(s,a){return a?n:i},argPackAdvance:8,readValueFromPointer:function(s){var a;if(r===1)a=Y;else if(r===2)a=q;else if(r===4)a=I;else throw new TypeError("Unknown boolean type size: "+e);return this.fromWireType(a[s>>o])},destructorFunction:null})}function mr(t){if(!(this instanceof B)||!(t instanceof B))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,i=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&r===i}function Er(t){return{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}}function Ne(t){function e(r){return r.$$.ptrType.registeredClass.name}v(e(t)+" instance already deleted")}function Pr(){if(this.$$.ptr||Ne(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=K(Object.create(Object.getPrototypeOf(this),{$$:{value:Er(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t}function Cr(){this.$$.ptr||Ne(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&v("Object already scheduled for deletion"),fe(this),it(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function br(){return!this.$$.ptr}function wr(){return this.$$.ptr||Ne(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&v("Object already scheduled for deletion"),ne.push(this),ne.length===1&&ie&&ie(Ae),this.$$.deleteScheduled=!0,this}function Ar(){B.prototype.isAliasOf=mr,B.prototype.clone=Pr,B.prototype.delete=Cr,B.prototype.isDeleted=br,B.prototype.deleteLater=wr}function B(){}function Se(t,e,r){if(t[e].overloadTable===void 0){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||v("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function Or(t,e,r){f.hasOwnProperty(t)?((r===void 0||f[t].overloadTable!==void 0&&f[t].overloadTable[r]!==void 0)&&v("Cannot register public name '"+t+"' twice"),Se(f,t,t),f.hasOwnProperty(r)&&v("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),f[t].overloadTable[r]=e):(f[t]=e,r!==void 0&&(f[t].numArguments=r))}function Ir(t,e,r,n,i,o,s,a){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=s,this.downcast=a,this.pureVirtualFunctions=[]}function Fe(t,e,r){for(;e!==r;)e.upcast||v("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function $r(t,e){if(e===null)return this.isReference&&v("null is not a valid "+this.name),0;e.$$||v('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||v("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass,n=Fe(e.$$.ptr,r,this.registeredClass);return n}function Rr(t,e){var r;if(e===null)return this.isReference&&v("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),t!==null&&t.push(this.rawDestructor,r),r):0;e.$$||v('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||v("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&v("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=Fe(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&v("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:v("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var i=e.clone();r=this.rawShare(r,V.toHandle(function(){i.delete()})),t!==null&&t.push(this.rawDestructor,r)}break;default:v("Unsupporting sharing policy")}return r}function Nr(t,e){if(e===null)return this.isReference&&v("null is not a valid "+this.name),0;e.$$||v('Cannot pass "'+We(e)+'" as a '+this.name),e.$$.ptr||v("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&v("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass,n=Fe(e.$$.ptr,r,this.registeredClass);return n}function Sr(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Fr(t){this.rawDestructor&&this.rawDestructor(t)}function Ur(t){t!==null&&t.delete()}function Lr(){M.prototype.getPointee=Sr,M.prototype.destructor=Fr,M.prototype.argPackAdvance=8,M.prototype.readValueFromPointer=ae,M.prototype.deleteObject=Ur,M.prototype.fromWireType=pr}function M(t,e,r,n,i,o,s,a,u,c,d){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=s,this.rawGetPointee=a,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=d,!i&&e.baseClass===void 0?n?(this.toWireType=$r,this.destructorFunction=null):(this.toWireType=Nr,this.destructorFunction=null):this.toWireType=Rr}function Dr(t,e,r){f.hasOwnProperty(t)||ce("Replacing nonexistant public symbol"),f[t].overloadTable!==void 0&&r!==void 0?f[t].overloadTable[r]=e:(f[t]=e,f[t].argCount=r)}function Wr(t,e,r){var n=f["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}function ut(t){return ze.get(t)}function Vr(t,e,r){if(t.includes("j"))return Wr(t,e,r);var n=ut(e).apply(null,r);return n}function Hr(t,e){var r=[];return function(){return r.length=0,Object.assign(r,arguments),Vr(t,e,r)}}function U(t,e){t=b(t);function r(){return t.includes("j")?Hr(t,e):ut(e)}var n=r();return typeof n!="function"&&v("unknown function pointer with signature "+t+": "+e),n}var ft=void 0;function he(t,e){var r=[],n={};function i(o){if(!n[o]&&!x[o]){if(_e[o]){_e[o].forEach(i);return}r.push(o),n[o]=!0}}throw e.forEach(i),new ft(t+": "+r.map(rt).join([", "]))}function kr(t,e,r,n,i,o,s,a,u,c,d,_,h){d=b(d),o=U(i,o),a&&(a=U(s,a)),c&&(c=U(u,c)),h=U(_,h);var p=Qe(d);Or(p,function(){he("Cannot construct "+d+" due to unbound types",[n])}),G([t,e,r],n?[n]:[],function(E){E=E[0];var P,L;n?(P=E.registeredClass,L=P.instancePrototype):L=B.prototype;var D=be(p,function(){if(Object.getPrototypeOf(this)!==X)throw new Z("Use 'new' to construct "+d);if(w.constructor_body===void 0)throw new Z(d+" has no accessible constructor");var yt=w.constructor_body[arguments.length];if(yt===void 0)throw new Z("Tried to invoke ctor of "+d+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(w.constructor_body).toString()+") parameters instead!");return yt.apply(this,arguments)}),X=Object.create(L,{constructor:{value:D}});D.prototype=X;var w=new Ir(d,D,X,h,P,o,a,c),Ve=new M(d,w,!0,!1,!1),vt=new M(d+"*",w,!1,!1,!1),gt=new M(d+" const*",w,!1,!0,!1);return ot[t]={pointerType:vt,constPointerType:gt},Dr(p,D),[Ve,vt,gt]})}function Ue(t,e,r,n,i){var o=e.length;o<2&&v("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=e[1]!==null&&r!==null,a=!1,u=1;u<e.length;++u)if(e[u]!==null&&e[u].destructorFunction===void 0){a=!0;break}var c=e[0].name!=="void",d=o-2,_=new Array(d),h=[],p=[];return function(){arguments.length!==d&&v("function "+t+" called with "+arguments.length+" arguments, expected "+d+" args!"),p.length=0;var E;h.length=s?2:1,h[0]=i,s&&(E=e[1].toWireType(p,this),h[1]=E);for(var P=0;P<d;++P)_[P]=e[P+2].toWireType(p,arguments[P]),h.push(_[P]);var L=n.apply(null,h);function D(X){if(a)$e(p);else for(var w=s?1:2;w<e.length;w++){var Ve=w===1?E:_[w-2];e[w].destructorFunction!==null&&e[w].destructorFunction(Ve)}if(c)return e[0].fromWireType(X)}return D(L)}}function Le(t,e){for(var r=[],n=0;n<t;n++)r.push(m[e+n*4>>2]);return r}function Mr(t,e,r,n,i,o,s){var a=Le(r,n);e=b(e),o=U(i,o),G([],[t],function(u){u=u[0];var c=u.name+"."+e;function d(){he("Cannot call "+c+" due to unbound types",a)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]);var _=u.registeredClass.constructor;return _[e]===void 0?(d.argCount=r-1,_[e]=d):(Se(_,e,c),_[e].overloadTable[r-1]=d),G([],a,function(h){var p=[h[0],null].concat(h.slice(1)),E=Ue(c,p,null,o,s);return _[e].overloadTable===void 0?(E.argCount=r-1,_[e]=E):_[e].overloadTable[r-1]=E,[]}),[]})}function jr(t,e,r,n,i,o){Ut(e>0);var s=Le(e,r);i=U(n,i),G([],[t],function(a){a=a[0];var u="constructor "+a.name;if(a.registeredClass.constructor_body===void 0&&(a.registeredClass.constructor_body=[]),a.registeredClass.constructor_body[e-1]!==void 0)throw new Z("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+a.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return a.registeredClass.constructor_body[e-1]=()=>{he("Cannot construct "+a.name+" due to unbound types",s)},G([],s,function(c){return c.splice(1,0,null),a.registeredClass.constructor_body[e-1]=Ue(u,c,null,i,o),[]}),[]})}function Gr(t,e,r,n,i,o,s,a){var u=Le(r,n);e=b(e),o=U(i,o),G([],[t],function(c){c=c[0];var d=c.name+"."+e;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),a&&c.registeredClass.pureVirtualFunctions.push(e);function _(){he("Cannot call "+d+" due to unbound types",u)}var h=c.registeredClass.instancePrototype,p=h[e];return p===void 0||p.overloadTable===void 0&&p.className!==c.name&&p.argCount===r-2?(_.argCount=r-2,_.className=c.name,h[e]=_):(Se(h,e,d),h[e].overloadTable[r-2]=_),G([],u,function(E){var P=Ue(d,E,c,o,s);return h[e].overloadTable===void 0?(P.argCount=r-2,h[e]=P):h[e].overloadTable[r-2]=P,[]}),[]})}function De(t){t>4&&--F[t].refcount===0&&(F[t]=void 0,we.push(t))}function Br(t,e){e=b(e),k(t,{name:e,fromWireType:function(r){var n=V.toValue(r);return De(r),n},toWireType:function(r,n){return V.toHandle(n)},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:null})}function We(t){if(t===null)return"null";var e=typeof t;return e==="object"||e==="array"||e==="function"?t.toString():""+t}function Yr(t,e){switch(e){case 2:return function(r){return this.fromWireType(xe[r>>2])};case 3:return function(r){return this.fromWireType(Xe[r>>3])};default:throw new TypeError("Unknown float type: "+t)}}function xr(t,e,r){var n=Re(r);e=b(e),k(t,{name:e,fromWireType:function(i){return i},toWireType:function(i,o){return o},argPackAdvance:8,readValueFromPointer:Yr(e,n),destructorFunction:null})}function Xr(t,e,r){switch(e){case 0:return r?function(i){return Y[i]}:function(i){return O[i]};case 1:return r?function(i){return q[i>>1]}:function(i){return Ee[i>>1]};case 2:return r?function(i){return I[i>>2]}:function(i){return m[i>>2]};default:throw new TypeError("Unknown integer type: "+t)}}function Jr(t,e,r,n,i){e=b(e),i===-1&&(i=4294967295);var o=Re(r),s=_=>_;if(n===0){var a=32-8*r;s=_=>_<<a>>>a}var u=e.includes("unsigned"),c=(_,h)=>{},d;u?d=function(_,h){return c(h,this.name),h>>>0}:d=function(_,h){return c(h,this.name),h},k(t,{name:e,fromWireType:s,toWireType:d,argPackAdvance:8,readValueFromPointer:Xr(e,o,n!==0),destructorFunction:null})}function zr(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function o(s){s=s>>2;var a=m,u=a[s],c=a[s+1];return new i(me,c,u)}r=b(r),k(t,{name:r,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function qr(t,e){e=b(e);var r=e==="std::string";k(t,{name:e,fromWireType:function(n){var i=m[n>>2],o=n+4,s;if(r)for(var a=o,u=0;u<=i;++u){var c=o+u;if(u==i||O[c]==0){var d=c-a,_=Ye(a,d);s===void 0?s=_:(s+=String.fromCharCode(0),s+=_),a=c+1}}else{for(var h=new Array(i),u=0;u<i;++u)h[u]=String.fromCharCode(O[o+u]);s=h.join("")}return j(n),s},toWireType:function(n,i){i instanceof ArrayBuffer&&(i=new Uint8Array(i));var o,s=typeof i=="string";s||i instanceof Uint8Array||i instanceof Uint8ClampedArray||i instanceof Int8Array||v("Cannot pass non-string to std::string"),r&&s?o=Wt(i):o=i.length;var a=ve(4+o+1),u=a+4;if(m[a>>2]=o,r&&s)Dt(i,u,o+1);else if(s)for(var c=0;c<o;++c){var d=i.charCodeAt(c);d>255&&(j(u),v("String has UTF-16 code units that do not fit in 8 bits")),O[u+c]=d}else for(var c=0;c<o;++c)O[u+c]=i[c];return n!==null&&n.push(j,a),a},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:function(n){j(n)}})}function Zr(t,e){for(var r="",n=0;!(n>=e/2);++n){var i=q[t+n*2>>1];if(i==0)break;r+=String.fromCharCode(i)}return r}function Kr(t,e,r){if(r===void 0&&(r=2147483647),r<2)return 0;r-=2;for(var n=e,i=r<t.length*2?r/2:t.length,o=0;o<i;++o){var s=t.charCodeAt(o);q[e>>1]=s,e+=2}return q[e>>1]=0,e-n}function Qr(t){return t.length*2}function en(t,e){for(var r=0,n="";!(r>=e/4);){var i=I[t+r*4>>2];if(i==0)break;if(++r,i>=65536){var o=i-65536;n+=String.fromCharCode(55296|o>>10,56320|o&1023)}else n+=String.fromCharCode(i)}return n}function tn(t,e,r){if(r===void 0&&(r=2147483647),r<4)return 0;for(var n=e,i=n+r-4,o=0;o<t.length;++o){var s=t.charCodeAt(o);if(s>=55296&&s<=57343){var a=t.charCodeAt(++o);s=65536+((s&1023)<<10)|a&1023}if(I[e>>2]=s,e+=4,e+4>i)break}return I[e>>2]=0,e-n}function rn(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}function nn(t,e,r){r=b(r);var n,i,o,s,a;e===2?(n=Zr,i=Kr,s=Qr,o=()=>Ee,a=1):e===4&&(n=en,i=tn,s=rn,o=()=>m,a=2),k(t,{name:r,fromWireType:function(u){for(var c=m[u>>2],d=o(),_,h=u+4,p=0;p<=c;++p){var E=u+4+p*e;if(p==c||d[E>>a]==0){var P=E-h,L=n(h,P);_===void 0?_=L:(_+=String.fromCharCode(0),_+=L),h=E+e}}return j(u),_},toWireType:function(u,c){typeof c!="string"&&v("Cannot pass non-string to C++ string type "+r);var d=s(c),_=ve(4+d+e);return m[_>>2]=d>>a,i(c,_+4,d+e),u!==null&&u.push(j,_),_},argPackAdvance:8,readValueFromPointer:ae,destructorFunction:function(u){j(u)}})}function an(t,e,r,n,i,o){de[t]={name:b(e),rawConstructor:U(r,n),rawDestructor:U(i,o),fields:[]}}function on(t,e,r,n,i,o,s,a,u,c){de[t].fields.push({fieldName:b(e),getterReturnType:r,getter:U(n,i),getterContext:o,setterArgumentType:s,setter:U(a,u),setterContext:c})}function sn(t,e){e=b(e),k(t,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:function(){},toWireType:function(r,n){}})}function un(t){var e=[];return m[t>>2]=V.toHandle(e),e}var fn={};function ct(t){var e=fn[t];return e===void 0?b(t):e}var pe=[];function cn(t,e,r,n,i){return t=pe[t],e=V.toValue(e),r=ct(r),t(e,r,un(n),i)}function ln(t,e,r,n){t=pe[t],e=V.toValue(e),r=ct(r),t(e,r,null,n)}function dn(t){var e=pe.length;return pe.push(t),e}function _n(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=nt(m[e+n*St>>2],"parameter "+n);return r}var lt=[];function hn(t,e){var r=_n(t,e),n=r[0],i=n.name+"_$"+r.slice(1).map(function(u){return u.name}).join("_")+"$",o=lt[i];if(o!==void 0)return o;var s=new Array(t-1),a=(u,c,d,_)=>{for(var h=0,p=0;p<t-1;++p)s[p]=r[p+1].readValueFromPointer(_+h),h+=r[p+1].argPackAdvance;for(var E=u[c].apply(u,s),p=0;p<t-1;++p)r[p+1].deleteObject&&r[p+1].deleteObject(s[p]);if(!n.isVoid)return n.toWireType(d,E)};return o=dn(a),lt[i]=o,o}function pn(t){t>4&&(F[t].refcount+=1)}function vn(t){var e=V.toValue(t);$e(e),De(t)}function gn(){re("")}function yn(t,e,r){O.copyWithin(t,e,e+r)}function Tn(){return 2147483648}function mn(t){try{return se.grow(t-me.byteLength+65535>>>16),Je(se.buffer),1}catch{}}function En(t){var e=O.length;t=t>>>0;var r=Tn();if(t>r)return!1;let n=(u,c)=>u+(c-u%c)%c;for(var i=1;i<=4;i*=2){var o=e*(1+.2/i);o=Math.min(o,t+100663296);var s=Math.min(r,n(Math.max(t,o),65536)),a=mn(s);if(a)return!0}return!1}var dt={varargs:void 0,get:function(){dt.varargs+=4;var t=I[dt.varargs-4>>2];return t},getStr:function(t){var e=Ye(t);return e}};function Pn(t){return 52}function Cn(t,e,r,n,i){return 70}var bn=[null,[],[]];function wn(t,e){var r=bn[t];e===0||e===10?((t===1?Nt:z)(Be(r,0)),r.length=0):r.push(e)}function An(t,e,r,n){for(var i=0,o=0;o<r;o++){var s=m[e>>2],a=m[e+4>>2];e+=8;for(var u=0;u<a;u++)wn(t,O[s+u]);i+=a}return m[n>>2]=i,0}Z=f.BindingError=ue(Error,"BindingError"),ar(),et=f.PureVirtualError=ue(Error,"PureVirtualError"),or(),cr(),st=f.InternalError=ue(Error,"InternalError"),Ar(),Lr(),ft=f.UnboundTypeError=ue(Error,"UnboundTypeError");var On={h:qt,g:er,p:vr,i:gr,t:yr,z:Tr,e:kr,d:Mr,l:jr,a:Gr,y:Br,n:xr,c:Jr,b:zr,o:qr,k:nn,j:an,f:on,A:sn,D:cn,r:ln,E:De,q:hn,B:pn,C:vn,m:gn,v:yn,u:En,x:Pn,s:Cn,w:An},kn=zt(),In=f.___wasm_call_ctors=function(){return(In=f.___wasm_call_ctors=f.asm.G).apply(null,arguments)},_t=f.___getTypeName=function(){return(_t=f.___getTypeName=f.asm.H).apply(null,arguments)},$n=f.__embind_initialize_bindings=function(){return($n=f.__embind_initialize_bindings=f.asm.I).apply(null,arguments)},ve=f._malloc=function(){return(ve=f._malloc=f.asm.J).apply(null,arguments)},j=f._free=function(){return(j=f._free=f.asm.L).apply(null,arguments)},ht=f.___cxa_is_pointer_type=function(){return(ht=f.___cxa_is_pointer_type=f.asm.M).apply(null,arguments)},Rn=f.dynCall_jiji=function(){return(Rn=f.dynCall_jiji=f.asm.N).apply(null,arguments)},ge;te=function t(){ge||pt(),ge||(te=t)};function pt(t){if(t=t||R,ee>0||(Mt(),ee>0))return;function e(){ge||(ge=!0,f.calledRun=!0,!Ge&&(jt(),T(f),Gt()))}e()}return pt(),l.ready}})(),Me=Hn;function At(y,l){return l}async function xn(y){let l=await Me({instantiateWasm(f,T){return WebAssembly.instantiate(y,f).then(g=>{T(g.instance||g)}),{}},locateFile(){return""}});return(0,je.default)(At,l)}async function Xn(y){let l=await Me({instantiateWasm(f,T){return WebAssembly.instantiateStreaming(y,f).then(g=>{T(g.instance||g)}),{}},locateFile(){return""}});return(0,je.default)(At,l)}export{xn as default,Xn as initStreaming};
{
"name": "yoga-wasm-web",
"version": "0.2.0",
"main": "dist/index.js",
"version": "0.3.0",
"types": "index.d.ts",
"typings": "index.d.ts",
"type": "module",
"scripts": {
"build": "make && node build.js"
"exports": {
"./package.json": "./package.json",
".": "./dist/index.js",
"./asm": "./dist/asm.js"
},

@@ -21,4 +22,9 @@ "repository": "shuding/yoga-wasm-web",

"esbuild": "^0.14.18",
"esbuild-plugin-flow": "^0.3.2"
"esbuild-plugin-flow": "^0.3.2",
"vitest": "^0.25.2"
},
"scripts": {
"build": "make && node build.js",
"test": "vitest"
}
}
}
# yoga-wasm-web
[Yoga](https://github.com/facebook/yoga) but in WebAssembly. This is an **opinionated** fork from [pinqy520/yoga-layout-wasm](https://github.com/pinqy520/yoga-layout-wasm) with the following changes:
[Yoga](https://github.com/facebook/yoga) but in WebAssembly and ASM.js. This is an **opinionated** fork from [pinqy520/yoga-layout-wasm](https://github.com/pinqy520/yoga-layout-wasm) with the following changes:
- Stick to commit 5dd33acc of Yoga, which supports `gap`.
- Stick to commit eea87c3 of Yoga, which supports `gap`.
- Fix missing `YGMeasureMode` binding.

@@ -16,1 +16,42 @@ - Fix missing `YGUnit` binding.

- Enable SIMD128.
## Install & Build
To develop this project locally, you need to clone the repo and fetch the yoga submodule first. Also, [emcc](https://emscripten.org/docs/getting_started/downloads.html) is required to build this project too.
After that, install npm dependencies:
```sh
pnpm i
```
And run the build script:
```sh
pnpm build
```
## WASM
To use the WASM build (take Node.js as an example):
```js
import fs from 'fs'
import initYoga from 'yoga-wasm-web'
const yoga = await initYoga(
fs.readFileSync('./node_modules/yoga-wasm-web/dist/yoga.wasm')
)
```
You can use other ways to provide the WASM binary too.
## ASM.js
To use the ASM.js build:
```js
import initYoga from 'yoga-wasm-web/asm'
const yoga = initYoga()
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc