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.3.0 to 0.3.1

asm.d.ts

4

dist/index.js

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

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};
var jn=Object.create;var fn=Object.defineProperty;var Xn=Object.getOwnPropertyDescriptor;var Yn=Object.getOwnPropertyNames;var Hn=Object.getPrototypeOf,xn=Object.prototype.hasOwnProperty;var cn=(p,m)=>()=>(m||p((m={exports:{}}).exports,m),m.exports);var kn=(p,m,l,w)=>{if(m&&typeof m=="object"||typeof m=="function")for(let v of Yn(m))!xn.call(p,v)&&v!==l&&fn(p,v,{get:()=>m[v],enumerable:!(w=Xn(m,v))||w.enumerable});return p};var Bn=(p,m,l)=>(l=p!=null?jn(Hn(p)):{},kn(m||!p||!p.__esModule?fn(l,"default",{value:p,enumerable:!0}):l,p));var hn=cn((Jn,ln)=>{ln.exports={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_WIDTH:0,DIMENSION_HEIGHT:1,DIRECTION_INHERIT:0,DIRECTION_LTR:1,DIRECTION_RTL:2,DISPLAY_FLEX:0,DISPLAY_NONE:1,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_WEB_FLEX_BASIS:0,EXPERIMENTAL_FEATURE_ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE:1,EXPERIMENTAL_FEATURE_FIX_ABSOLUTE_TRAILING_COLUMN_MARGIN:2,FLEX_DIRECTION_COLUMN:0,FLEX_DIRECTION_COLUMN_REVERSE:1,FLEX_DIRECTION_ROW:2,FLEX_DIRECTION_ROW_REVERSE:3,GUTTER_COLUMN:0,GUTTER_ROW:1,GUTTER_ALL:2,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_ERROR:0,LOG_LEVEL_WARN:1,LOG_LEVEL_INFO:2,LOG_LEVEL_DEBUG:3,LOG_LEVEL_VERBOSE:4,LOG_LEVEL_FATAL:5,MEASURE_MODE_UNDEFINED:0,MEASURE_MODE_EXACTLY:1,MEASURE_MODE_AT_MOST:2,NODE_TYPE_DEFAULT:0,NODE_TYPE_TEXT:1,OVERFLOW_VISIBLE:0,OVERFLOW_HIDDEN:1,OVERFLOW_SCROLL:2,POSITION_TYPE_STATIC:0,POSITION_TYPE_RELATIVE:1,POSITION_TYPE_ABSOLUTE:2,PRINT_OPTIONS_LAYOUT:1,PRINT_OPTIONS_STYLE:2,PRINT_OPTIONS_CHILDREN:4,UNIT_UNDEFINED:0,UNIT_POINT:1,UNIT_PERCENT:2,UNIT_AUTO:3,WRAP_NO_WRAP:0,WRAP_WRAP:1,WRAP_WRAP_REVERSE:2}});var vn=cn((Zn,pn)=>{var Y=hn();pn.exports=p=>{function m(v,g,L){let I=v[g];v[g]=function(..._){return L.call(this,I,..._)}}for(let v of["setPosition","setMargin","setFlexBasis","setWidth","setHeight","setMinWidth","setMinHeight","setMaxWidth","setMaxHeight","setPadding"]){let g={[Y.UNIT_POINT]:p.Node.prototype[v],[Y.UNIT_PERCENT]:p.Node.prototype[`${v}Percent`],[Y.UNIT_AUTO]:p.Node.prototype[`${v}Auto`]};m(p.Node.prototype,v,function(L,...I){let _=I.pop(),C,U;if(_==="auto")C=Y.UNIT_AUTO,U=void 0;else if(typeof _=="object")C=_.unit,U=_.valueOf();else if(C=typeof _=="string"&&_.endsWith("%")?Y.UNIT_PERCENT:Y.UNIT_POINT,U=parseFloat(_),!Number.isNaN(_)&&Number.isNaN(U))throw new Error(`Invalid value ${_} for ${v}`);if(!g[C])throw new Error(`Failed to execute "${v}": Unsupported unit '${_}'`);return U!==void 0?g[C].call(this,...I,U):g[C].call(this,...I)})}function l(v){return p.MeasureCallback.implement({measure:(...g)=>{let{width:L,height:I}=v(...g);return{width:L??NaN,height:I??NaN}}})}m(p.Node.prototype,"setMeasureFunc",function(v,g){return g?v.call(this,l(g)):this.unsetMeasureFunc()});function w(v){return p.DirtiedCallback.implement({dirtied:v})}return m(p.Node.prototype,"setDirtiedFunc",function(v,g){v.call(this,w(g))}),m(p.Config.prototype,"free",function(){p.Config.destroy(this)}),m(p.Node,"create",(v,g)=>g?p.Node.createWithConfig(g):p.Node.createDefault()),m(p.Node.prototype,"free",function(){p.Node.destroy(this)}),m(p.Node.prototype,"freeRecursive",function(){for(let v=0,g=this.getChildCount();v<g;++v)this.getChild(0).freeRecursive();this.free()}),m(p.Node.prototype,"calculateLayout",function(v,g=NaN,L=NaN,I=Y.DIRECTION_LTR){return v.call(this,g,L,I)}),{Config:p.Config,Node:p.Node,...Y}}});var Ft=Bn(vn(),1);var $n=(()=>{var p=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(m={}){var l;l||(l=typeof m<"u"?m:{});var w,v;l.ready=new Promise(function(t,n){w=t,v=n});var g=Object.assign({},l),L="";typeof document<"u"&&document.currentScript&&(L=document.currentScript.src),p&&(L=p),L.indexOf("blob:")!==0?L=L.substr(0,L.replace(/[?#].*/,"").lastIndexOf("/")+1):L="";var I=console.log.bind(console),_=console.warn.bind(console);Object.assign(l,g),g=null,typeof WebAssembly!="object"&&K("no native wasm support detected");var C,U=!1;function Dt(t,n,r){r=n+r;for(var e="";!(n>=r);){var i=t[n++];if(!i)break;if(i&128){var o=t[n++]&63;if((i&224)==192)e+=String.fromCharCode((i&31)<<6|o);else{var a=t[n++]&63;i=(i&240)==224?(i&15)<<12|o<<6|a:(i&7)<<18|o<<12|a<<6|t[n++]&63,65536>i?e+=String.fromCharCode(i):(i-=65536,e+=String.fromCharCode(55296|i>>10,56320|i&1023))}}else e+=String.fromCharCode(i)}return e}var dt,O,B,yt,H,A,Vt,Gt;function jt(){var t=C.buffer;l.HEAP8=dt=new Int8Array(t),l.HEAP16=B=new Int16Array(t),l.HEAP32=H=new Int32Array(t),l.HEAPU8=O=new Uint8Array(t),l.HEAPU16=yt=new Uint16Array(t),l.HEAPU32=A=new Uint32Array(t),l.HEAPF32=Vt=new Float32Array(t),l.HEAPF64=Gt=new Float64Array(t)}var Xt,dn=[],Yt=[],yn=[],Z=0,mt=null,q=null;function K(t){throw t="Aborted("+t+")",_(t),U=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),v(t),t}function Ht(){return x.startsWith("data:application/octet-stream;base64,")}var x;x="yoga.wasm",Ht()||(x=L+x);function xt(){try{throw"both async and sync fetching of the wasm failed"}catch(t){K(t)}}function mn(){return typeof fetch=="function"?fetch(x,{credentials:"same-origin"}).then(function(t){if(!t.ok)throw"failed to load wasm binary file at '"+x+"'";return t.arrayBuffer()}).catch(function(){return xt()}):Promise.resolve().then(function(){return xt()})}function Et(t){for(;0<t.length;)t.shift()(l)}function kt(t){if(t===void 0)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var n=t.charCodeAt(0);return 48<=n&&57>=n?"_"+t:t}function gt(t,n){return t=kt(t),function(){return n.apply(this,arguments)}}var R=[{},{value:void 0},{value:null},{value:!0},{value:!1}],Tt=[];function et(t){var n=Error,r=gt(t,function(e){this.name=t,this.message=e,e=Error(e).stack,e!==void 0&&(this.stack=this.toString()+`
`+e.replace(/^Error(:[^\n]*)?\n/,""))});return r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name:this.name+": "+this.message},r}var $=void 0;function d(t){throw new $(t)}var Q=t=>(t||d("Cannot use deleted val. handle = "+t),R[t].value),it=t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var n=Tt.length?Tt.pop():R.length;return R[n]={fa:1,value:t},n}},Bt=void 0,$t=void 0;function N(t){for(var n="";O[t];)n+=$t[O[t++]];return n}var b=[];function _t(){for(;b.length;){var t=b.pop();t.L.Z=!1,t.delete()}}var tt=void 0,M={};function Nt(t,n){for(n===void 0&&d("ptr should not be undefined");t.P;)n=t.aa(n),t=t.P;return n}var k={};function zt(t){t=on(t);var n=N(t);return V(t),n}function Jt(t,n){var r=k[t];return r===void 0&&d(n+" has unknown type "+zt(t)),r}function ot(){}var Lt=!1;function Zt(t){--t.count.value,t.count.value===0&&(t.S?t.T.V(t.S):t.O.M.V(t.N))}function qt(t,n,r){return n===r?t:r.P===void 0?null:(t=qt(t,n,r.P),t===null?null:r.ma(t))}var Kt={};function En(t,n){return n=Nt(t,n),M[n]}var Qt=void 0;function at(t){throw new Qt(t)}function ut(t,n){return n.O&&n.N||at("makeClassHandle requires ptr and ptrType"),!!n.T!=!!n.S&&at("Both smartPtrType and smartPtr must be specified"),n.count={value:1},z(Object.create(t,{L:{value:n}}))}function z(t){return typeof FinalizationRegistry>"u"?(z=n=>n,t):(Lt=new FinalizationRegistry(n=>{Zt(n.L)}),z=n=>{var r=n.L;return r.S&&Lt.register(n,{L:r},n),n},ot=n=>{Lt.unregister(n)},z(t))}var st={};function At(t){for(;t.length;){var n=t.pop();t.pop()(n)}}function nt(t){return this.fromWireType(H[t>>2])}var J={},ft={};function j(t,n,r){function e(u){u=r(u),u.length!==t.length&&at("Mismatched type converter count");for(var f=0;f<t.length;++f)F(t[f],u[f])}t.forEach(function(u){ft[u]=n});var i=Array(n.length),o=[],a=0;n.forEach((u,f)=>{k.hasOwnProperty(u)?i[f]=k[u]:(o.push(u),J.hasOwnProperty(u)||(J[u]=[]),J[u].push(()=>{i[f]=k[u],++a,a===o.length&&e(i)}))}),o.length===0&&e(i)}function Ot(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 F(t,n,r={}){if(!("argPackAdvance"in n))throw new TypeError("registerType registeredInstance requires argPackAdvance");var e=n.name;if(t||d('type "'+e+'" must have a positive integer typeid pointer'),k.hasOwnProperty(t)){if(r.ta)return;d("Cannot register type '"+e+"' twice")}k[t]=n,delete ft[t],J.hasOwnProperty(t)&&(n=J[t],delete J[t],n.forEach(i=>i()))}function Pt(t){d(t.L.O.M.name+" instance already deleted")}function X(){}function wt(t,n,r){if(t[n].R===void 0){var e=t[n];t[n]=function(){return t[n].R.hasOwnProperty(arguments.length)||d("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[n].R+")!"),t[n].R[arguments.length].apply(this,arguments)},t[n].R=[],t[n].R[e.Y]=e}}function gn(t,n){l.hasOwnProperty(t)?(d("Cannot register public name '"+t+"' twice"),wt(l,t,t),l.hasOwnProperty(void 0)&&d("Cannot register multiple overloads of a function with the same number of arguments (undefined)!"),l[t].R[void 0]=n):l[t]=n}function Tn(t,n,r,e,i,o,a,u){this.name=t,this.constructor=n,this.W=r,this.V=e,this.P=i,this.oa=o,this.aa=a,this.ma=u,this.ia=[]}function It(t,n,r){for(;n!==r;)n.aa||d("Expected null or instance of "+r.name+", got an instance of "+n.name),t=n.aa(t),n=n.P;return t}function _n(t,n){return n===null?(this.da&&d("null is not a valid "+this.name),0):(n.L||d('Cannot pass "'+Wt(n)+'" as a '+this.name),n.L.N||d("Cannot pass deleted object as a pointer of type "+this.name),It(n.L.N,n.L.O.M,this.M))}function Nn(t,n){if(n===null){if(this.da&&d("null is not a valid "+this.name),this.ca){var r=this.ea();return t!==null&&t.push(this.V,r),r}return 0}if(n.L||d('Cannot pass "'+Wt(n)+'" as a '+this.name),n.L.N||d("Cannot pass deleted object as a pointer of type "+this.name),!this.ba&&n.L.O.ba&&d("Cannot convert argument of type "+(n.L.T?n.L.T.name:n.L.O.name)+" to parameter type "+this.name),r=It(n.L.N,n.L.O.M,this.M),this.ca)switch(n.L.S===void 0&&d("Passing raw pointer to smart pointer is illegal"),this.Aa){case 0:n.L.T===this?r=n.L.S:d("Cannot convert argument of type "+(n.L.T?n.L.T.name:n.L.O.name)+" to parameter type "+this.name);break;case 1:r=n.L.S;break;case 2:if(n.L.T===this)r=n.L.S;else{var e=n.clone();r=this.wa(r,it(function(){e.delete()})),t!==null&&t.push(this.V,r)}break;default:d("Unsupporting sharing policy")}return r}function Ln(t,n){return n===null?(this.da&&d("null is not a valid "+this.name),0):(n.L||d('Cannot pass "'+Wt(n)+'" as a '+this.name),n.L.N||d("Cannot pass deleted object as a pointer of type "+this.name),n.L.O.ba&&d("Cannot convert argument of type "+n.L.O.name+" to parameter type "+this.name),It(n.L.N,n.L.O.M,this.M))}function D(t,n,r,e){this.name=t,this.M=n,this.da=r,this.ba=e,this.ca=!1,this.V=this.wa=this.ea=this.ja=this.Aa=this.va=void 0,n.P!==void 0?this.toWireType=Nn:(this.toWireType=e?_n:Ln,this.U=null)}function An(t,n){l.hasOwnProperty(t)||at("Replacing nonexistant public symbol"),l[t]=n,l[t].Y=void 0}var ct=[];function bt(t){var n=ct[t];return n||(t>=ct.length&&(ct.length=t+1),ct[t]=n=Xt.get(t)),n}function On(t,n){var r=[];return function(){if(r.length=0,Object.assign(r,arguments),t.includes("j")){var e=l["dynCall_"+t];e=r&&r.length?e.apply(null,[n].concat(r)):e.call(null,n)}else e=bt(n).apply(null,r);return e}}function S(t,n){t=N(t);var r=t.includes("j")?On(t,n):bt(n);return typeof r!="function"&&d("unknown function pointer with signature "+t+": "+n),r}var tn=void 0;function lt(t,n){function r(o){i[o]||k[o]||(ft[o]?ft[o].forEach(r):(e.push(o),i[o]=!0))}var e=[],i={};throw n.forEach(r),new tn(t+": "+e.map(zt).join([", "]))}function Ct(t,n,r,e,i){var o=n.length;2>o&&d("argTypes array size mismatch! Must at least get return value and 'this' types!");var a=n[1]!==null&&r!==null,u=!1;for(r=1;r<n.length;++r)if(n[r]!==null&&n[r].U===void 0){u=!0;break}var f=n[0].name!=="void",s=o-2,c=Array(s),h=[],y=[];return function(){if(arguments.length!==s&&d("function "+t+" called with "+arguments.length+" arguments, expected "+s+" args!"),y.length=0,h.length=a?2:1,h[0]=i,a){var T=n[1].toWireType(y,this);h[1]=T}for(var E=0;E<s;++E)c[E]=n[E+2].toWireType(y,arguments[E]),h.push(c[E]);if(E=e.apply(null,h),u)At(y);else for(var P=a?1:2;P<n.length;P++){var W=P===1?T:c[P-2];n[P].U!==null&&n[P].U(W)}return T=f?n[0].fromWireType(E):void 0,T}}function Rt(t,n){for(var r=[],e=0;e<t;e++)r.push(A[n+4*e>>2]);return r}function St(t){4<t&&--R[t].fa===0&&(R[t]=void 0,Tt.push(t))}function Wt(t){if(t===null)return"null";var n=typeof t;return n==="object"||n==="array"||n==="function"?t.toString():""+t}function Pn(t,n){switch(n){case 2:return function(r){return this.fromWireType(Vt[r>>2])};case 3:return function(r){return this.fromWireType(Gt[r>>3])};default:throw new TypeError("Unknown float type: "+t)}}function wn(t,n,r){switch(n){case 0:return r?function(e){return dt[e]}:function(e){return O[e]};case 1:return r?function(e){return B[e>>1]}:function(e){return yt[e>>1]};case 2:return r?function(e){return H[e>>2]}:function(e){return A[e>>2]};default:throw new TypeError("Unknown integer type: "+t)}}function In(t,n){for(var r="",e=0;!(e>=n/2);++e){var i=B[t+2*e>>1];if(i==0)break;r+=String.fromCharCode(i)}return r}function Cn(t,n,r){if(r===void 0&&(r=2147483647),2>r)return 0;r-=2;var e=n;r=r<2*t.length?r/2:t.length;for(var i=0;i<r;++i)B[n>>1]=t.charCodeAt(i),n+=2;return B[n>>1]=0,n-e}function Rn(t){return 2*t.length}function Sn(t,n){for(var r=0,e="";!(r>=n/4);){var i=H[t+4*r>>2];if(i==0)break;++r,65536<=i?(i-=65536,e+=String.fromCharCode(55296|i>>10,56320|i&1023)):e+=String.fromCharCode(i)}return e}function Wn(t,n,r){if(r===void 0&&(r=2147483647),4>r)return 0;var e=n;r=e+r-4;for(var i=0;i<t.length;++i){var o=t.charCodeAt(i);if(55296<=o&&57343>=o){var a=t.charCodeAt(++i);o=65536+((o&1023)<<10)|a&1023}if(H[n>>2]=o,n+=4,n+4>r)break}return H[n>>2]=0,n-e}function Un(t){for(var n=0,r=0;r<t.length;++r){var e=t.charCodeAt(r);55296<=e&&57343>=e&&++r,n+=4}return n}var Mn={};function nn(t){var n=Mn[t];return n===void 0?N(t):n}var ht=[];function Fn(t){var n=ht.length;return ht.push(t),n}function Dn(t,n){for(var r=Array(t),e=0;e<t;++e)r[e]=Jt(A[n+4*e>>2],"parameter "+e);return r}var rn=[],Vn=[null,[],[]];$=l.BindingError=et("BindingError"),l.count_emval_handles=function(){for(var t=0,n=5;n<R.length;++n)R[n]!==void 0&&++t;return t},l.get_first_emval=function(){for(var t=5;t<R.length;++t)if(R[t]!==void 0)return R[t];return null},Bt=l.PureVirtualError=et("PureVirtualError");for(var en=Array(256),pt=0;256>pt;++pt)en[pt]=String.fromCharCode(pt);$t=en,l.getInheritedInstanceCount=function(){return Object.keys(M).length},l.getLiveInheritedInstances=function(){var t=[],n;for(n in M)M.hasOwnProperty(n)&&t.push(M[n]);return t},l.flushPendingDeletes=_t,l.setDelayFunction=function(t){tt=t,b.length&&tt&&tt(_t)},Qt=l.InternalError=et("InternalError"),X.prototype.isAliasOf=function(t){if(!(this instanceof X&&t instanceof X))return!1;var n=this.L.O.M,r=this.L.N,e=t.L.O.M;for(t=t.L.N;n.P;)r=n.aa(r),n=n.P;for(;e.P;)t=e.aa(t),e=e.P;return n===e&&r===t},X.prototype.clone=function(){if(this.L.N||Pt(this),this.L.$)return this.L.count.value+=1,this;var t=z,n=Object,r=n.create,e=Object.getPrototypeOf(this),i=this.L;return t=t(r.call(n,e,{L:{value:{count:i.count,Z:i.Z,$:i.$,N:i.N,O:i.O,S:i.S,T:i.T}}})),t.L.count.value+=1,t.L.Z=!1,t},X.prototype.delete=function(){this.L.N||Pt(this),this.L.Z&&!this.L.$&&d("Object already scheduled for deletion"),ot(this),Zt(this.L),this.L.$||(this.L.S=void 0,this.L.N=void 0)},X.prototype.isDeleted=function(){return!this.L.N},X.prototype.deleteLater=function(){return this.L.N||Pt(this),this.L.Z&&!this.L.$&&d("Object already scheduled for deletion"),b.push(this),b.length===1&&tt&&tt(_t),this.L.Z=!0,this},D.prototype.pa=function(t){return this.ja&&(t=this.ja(t)),t},D.prototype.ga=function(t){this.V&&this.V(t)},D.prototype.argPackAdvance=8,D.prototype.readValueFromPointer=nt,D.prototype.deleteObject=function(t){t!==null&&t.delete()},D.prototype.fromWireType=function(t){function n(){return this.ca?ut(this.M.W,{O:this.va,N:r,T:this,S:t}):ut(this.M.W,{O:this,N:t})}var r=this.pa(t);if(!r)return this.ga(t),null;var e=En(this.M,r);if(e!==void 0)return e.L.count.value===0?(e.L.N=r,e.L.S=t,e.clone()):(e=e.clone(),this.ga(t),e);if(e=this.M.oa(r),e=Kt[e],!e)return n.call(this);e=this.ba?e.ka:e.pointerType;var i=qt(r,this.M,e.M);return i===null?n.call(this):this.ca?ut(e.M.W,{O:e,N:i,T:this,S:t}):ut(e.M.W,{O:e,N:i})},tn=l.UnboundTypeError=et("UnboundTypeError");var Gn={q:function(t,n,r){t=N(t),n=Jt(n,"wrapper"),r=Q(r);var e=[].slice,i=n.M,o=i.W,a=i.P.W,u=i.P.constructor;t=gt(t,function(){i.P.ia.forEach(function(s){if(this[s]===a[s])throw new Bt("Pure virtual function "+s+" must be implemented in JavaScript")}.bind(this)),Object.defineProperty(this,"__parent",{value:o}),this.__construct.apply(this,e.call(arguments))}),o.__construct=function(){this===o&&d("Pass correct 'this' to __construct");var s=u.implement.apply(void 0,[this].concat(e.call(arguments)));ot(s);var c=s.L;s.notifyOnDestruction(),c.$=!0,Object.defineProperties(this,{L:{value:c}}),z(this),s=c.N,s=Nt(i,s),M.hasOwnProperty(s)?d("Tried to register registered instance: "+s):M[s]=this},o.__destruct=function(){this===o&&d("Pass correct 'this' to __destruct"),ot(this);var s=this.L.N;s=Nt(i,s),M.hasOwnProperty(s)?delete M[s]:d("Tried to unregister unregistered instance: "+s)},t.prototype=Object.create(o);for(var f in r)t.prototype[f]=r[f];return it(t)},l:function(t){var n=st[t];delete st[t];var r=n.ea,e=n.V,i=n.ha,o=i.map(a=>a.sa).concat(i.map(a=>a.ya));j([t],o,a=>{var u={};return i.forEach((f,s)=>{var c=a[s],h=f.qa,y=f.ra,T=a[s+i.length],E=f.xa,P=f.za;u[f.na]={read:W=>c.fromWireType(h(y,W)),write:(W,rt)=>{var G=[];E(P,W,T.toWireType(G,rt)),At(G)}}}),[{name:n.name,fromWireType:function(f){var s={},c;for(c in u)s[c]=u[c].read(f);return e(f),s},toWireType:function(f,s){for(var c in u)if(!(c in s))throw new TypeError('Missing field: "'+c+'"');var h=r();for(c in u)u[c].write(h,s[c]);return f!==null&&f.push(e,h),h},argPackAdvance:8,readValueFromPointer:nt,U:e}]})},v:function(){},B:function(t,n,r,e,i){var o=Ot(r);n=N(n),F(t,{name:n,fromWireType:function(a){return!!a},toWireType:function(a,u){return u?e:i},argPackAdvance:8,readValueFromPointer:function(a){if(r===1)var u=dt;else if(r===2)u=B;else if(r===4)u=H;else throw new TypeError("Unknown boolean type size: "+n);return this.fromWireType(u[a>>o])},U:null})},h:function(t,n,r,e,i,o,a,u,f,s,c,h,y){c=N(c),o=S(i,o),u&&(u=S(a,u)),s&&(s=S(f,s)),y=S(h,y);var T=kt(c);gn(T,function(){lt("Cannot construct "+c+" due to unbound types",[e])}),j([t,n,r],e?[e]:[],function(E){if(E=E[0],e)var P=E.M,W=P.W;else W=X.prototype;E=gt(T,function(){if(Object.getPrototypeOf(this)!==rt)throw new $("Use 'new' to construct "+c);if(G.X===void 0)throw new $(c+" has no accessible constructor");var sn=G.X[arguments.length];if(sn===void 0)throw new $("Tried to invoke ctor of "+c+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(G.X).toString()+") parameters instead!");return sn.apply(this,arguments)});var rt=Object.create(W,{constructor:{value:E}});E.prototype=rt;var G=new Tn(c,E,rt,y,P,o,u,s);P=new D(c,G,!0,!1),W=new D(c+"*",G,!1,!1);var un=new D(c+" const*",G,!1,!0);return Kt[t]={pointerType:W,ka:un},An(T,E),[P,W,un]})},d:function(t,n,r,e,i,o,a){var u=Rt(r,e);n=N(n),o=S(i,o),j([],[t],function(f){function s(){lt("Cannot call "+c+" due to unbound types",u)}f=f[0];var c=f.name+"."+n;n.startsWith("@@")&&(n=Symbol[n.substring(2)]);var h=f.M.constructor;return h[n]===void 0?(s.Y=r-1,h[n]=s):(wt(h,n,c),h[n].R[r-1]=s),j([],u,function(y){return y=Ct(c,[y[0],null].concat(y.slice(1)),null,o,a),h[n].R===void 0?(y.Y=r-1,h[n]=y):h[n].R[r-1]=y,[]}),[]})},p:function(t,n,r,e,i,o){0<n||K();var a=Rt(n,r);i=S(e,i),j([],[t],function(u){u=u[0];var f="constructor "+u.name;if(u.M.X===void 0&&(u.M.X=[]),u.M.X[n-1]!==void 0)throw new $("Cannot register multiple constructors with identical number of parameters ("+(n-1)+") for class '"+u.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return u.M.X[n-1]=()=>{lt("Cannot construct "+u.name+" due to unbound types",a)},j([],a,function(s){return s.splice(1,0,null),u.M.X[n-1]=Ct(f,s,null,i,o),[]}),[]})},a:function(t,n,r,e,i,o,a,u){var f=Rt(r,e);n=N(n),o=S(i,o),j([],[t],function(s){function c(){lt("Cannot call "+h+" due to unbound types",f)}s=s[0];var h=s.name+"."+n;n.startsWith("@@")&&(n=Symbol[n.substring(2)]),u&&s.M.ia.push(n);var y=s.M.W,T=y[n];return T===void 0||T.R===void 0&&T.className!==s.name&&T.Y===r-2?(c.Y=r-2,c.className=s.name,y[n]=c):(wt(y,n,h),y[n].R[r-2]=c),j([],f,function(E){return E=Ct(h,E,s,o,a),y[n].R===void 0?(E.Y=r-2,y[n]=E):y[n].R[r-2]=E,[]}),[]})},A:function(t,n){n=N(n),F(t,{name:n,fromWireType:function(r){var e=Q(r);return St(r),e},toWireType:function(r,e){return it(e)},argPackAdvance:8,readValueFromPointer:nt,U:null})},n:function(t,n,r){r=Ot(r),n=N(n),F(t,{name:n,fromWireType:function(e){return e},toWireType:function(e,i){return i},argPackAdvance:8,readValueFromPointer:Pn(n,r),U:null})},e:function(t,n,r,e,i){n=N(n),i===-1&&(i=4294967295),i=Ot(r);var o=u=>u;if(e===0){var a=32-8*r;o=u=>u<<a>>>a}r=n.includes("unsigned")?function(u,f){return f>>>0}:function(u,f){return f},F(t,{name:n,fromWireType:o,toWireType:r,argPackAdvance:8,readValueFromPointer:wn(n,i,e!==0),U:null})},b:function(t,n,r){function e(o){o>>=2;var a=A;return new i(a.buffer,a[o+1],a[o])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][n];r=N(r),F(t,{name:r,fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{ta:!0})},o:function(t,n){n=N(n);var r=n==="std::string";F(t,{name:n,fromWireType:function(e){var i=A[e>>2],o=e+4;if(r)for(var a=o,u=0;u<=i;++u){var f=o+u;if(u==i||O[f]==0){if(a=a?Dt(O,a,f-a):"",s===void 0)var s=a;else s+=String.fromCharCode(0),s+=a;a=f+1}}else{for(s=Array(i),u=0;u<i;++u)s[u]=String.fromCharCode(O[o+u]);s=s.join("")}return V(e),s},toWireType:function(e,i){i instanceof ArrayBuffer&&(i=new Uint8Array(i));var o,a=typeof i=="string";if(a||i instanceof Uint8Array||i instanceof Uint8ClampedArray||i instanceof Int8Array||d("Cannot pass non-string to std::string"),r&&a){var u=0;for(o=0;o<i.length;++o){var f=i.charCodeAt(o);127>=f?u++:2047>=f?u+=2:55296<=f&&57343>=f?(u+=4,++o):u+=3}o=u}else o=i.length;if(u=Ut(4+o+1),f=u+4,A[u>>2]=o,r&&a){if(a=f,f=o+1,o=O,0<f){f=a+f-1;for(var s=0;s<i.length;++s){var c=i.charCodeAt(s);if(55296<=c&&57343>=c){var h=i.charCodeAt(++s);c=65536+((c&1023)<<10)|h&1023}if(127>=c){if(a>=f)break;o[a++]=c}else{if(2047>=c){if(a+1>=f)break;o[a++]=192|c>>6}else{if(65535>=c){if(a+2>=f)break;o[a++]=224|c>>12}else{if(a+3>=f)break;o[a++]=240|c>>18,o[a++]=128|c>>12&63}o[a++]=128|c>>6&63}o[a++]=128|c&63}}o[a]=0}}else if(a)for(a=0;a<o;++a)s=i.charCodeAt(a),255<s&&(V(f),d("String has UTF-16 code units that do not fit in 8 bits")),O[f+a]=s;else for(a=0;a<o;++a)O[f+a]=i[a];return e!==null&&e.push(V,u),u},argPackAdvance:8,readValueFromPointer:nt,U:function(e){V(e)}})},k:function(t,n,r){if(r=N(r),n===2)var e=In,i=Cn,o=Rn,a=()=>yt,u=1;else n===4&&(e=Sn,i=Wn,o=Un,a=()=>A,u=2);F(t,{name:r,fromWireType:function(f){for(var s=A[f>>2],c=a(),h,y=f+4,T=0;T<=s;++T){var E=f+4+T*n;(T==s||c[E>>u]==0)&&(y=e(y,E-y),h===void 0?h=y:(h+=String.fromCharCode(0),h+=y),y=E+n)}return V(f),h},toWireType:function(f,s){typeof s!="string"&&d("Cannot pass non-string to C++ string type "+r);var c=o(s),h=Ut(4+c+n);return A[h>>2]=c>>u,i(s,h+4,c+n),f!==null&&f.push(V,h),h},argPackAdvance:8,readValueFromPointer:nt,U:function(f){V(f)}})},m:function(t,n,r,e,i,o){st[t]={name:N(n),ea:S(r,e),V:S(i,o),ha:[]}},c:function(t,n,r,e,i,o,a,u,f,s){st[t].ha.push({na:N(n),sa:r,qa:S(e,i),ra:o,ya:a,xa:S(u,f),za:s})},C:function(t,n){n=N(n),F(t,{ua:!0,name:n,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},t:function(t,n,r,e,i){t=ht[t],n=Q(n),r=nn(r);var o=[];return A[e>>2]=it(o),t(n,r,o,i)},j:function(t,n,r,e){t=ht[t],n=Q(n),r=nn(r),t(n,r,null,e)},f:St,g:function(t,n){var r=Dn(t,n),e=r[0];n=e.name+"_$"+r.slice(1).map(function(a){return a.name}).join("_")+"$";var i=rn[n];if(i!==void 0)return i;var o=Array(t-1);return i=Fn((a,u,f,s)=>{for(var c=0,h=0;h<t-1;++h)o[h]=r[h+1].readValueFromPointer(s+c),c+=r[h+1].argPackAdvance;for(a=a[u].apply(a,o),h=0;h<t-1;++h)r[h+1].la&&r[h+1].la(o[h]);if(!e.ua)return e.toWireType(f,a)}),rn[n]=i},r:function(t){4<t&&(R[t].fa+=1)},s:function(t){var n=Q(t);At(n),St(t)},i:function(){K("")},x:function(t,n,r){O.copyWithin(t,n,n+r)},w:function(t){var n=O.length;if(t>>>=0,2147483648<t)return!1;for(var r=1;4>=r;r*=2){var e=n*(1+.2/r);e=Math.min(e,t+100663296);var i=Math,o=i.min;e=Math.max(t,e),e+=(65536-e%65536)%65536;t:{var a=C.buffer;try{C.grow(o.call(i,2147483648,e)-a.byteLength+65535>>>16),jt();var u=1;break t}catch{}u=void 0}if(u)return!0}return!1},z:function(){return 52},u:function(){return 70},y:function(t,n,r,e){for(var i=0,o=0;o<r;o++){var a=A[n>>2],u=A[n+4>>2];n+=8;for(var f=0;f<u;f++){var s=O[a+f],c=Vn[t];s===0||s===10?((t===1?I:_)(Dt(c,0)),c.length=0):c.push(s)}i+=u}return A[e>>2]=i,0}};(function(){function t(i){l.asm=i.exports,C=l.asm.D,jt(),Xt=l.asm.I,Yt.unshift(l.asm.E),Z--,Z==0&&(mt!==null&&(clearInterval(mt),mt=null),q&&(i=q,q=null,i()))}function n(i){t(i.instance)}function r(i){return mn().then(function(o){return WebAssembly.instantiate(o,e)}).then(function(o){return o}).then(i,function(o){_("failed to asynchronously prepare wasm: "+o),K(o)})}var e={a:Gn};if(Z++,l.instantiateWasm)try{return l.instantiateWasm(e,t)}catch(i){_("Module.instantiateWasm callback failed with error: "+i),v(i)}return function(){return typeof WebAssembly.instantiateStreaming!="function"||Ht()||typeof fetch!="function"?r(n):fetch(x,{credentials:"same-origin"}).then(function(i){return WebAssembly.instantiateStreaming(i,e).then(n,function(o){return _("wasm streaming compile failed: "+o),_("falling back to ArrayBuffer instantiation"),r(n)})})}().catch(v),{}})();var on=l.___getTypeName=function(){return(on=l.___getTypeName=l.asm.F).apply(null,arguments)};l.__embind_initialize_bindings=function(){return(l.__embind_initialize_bindings=l.asm.G).apply(null,arguments)};function Ut(){return(Ut=l.asm.H).apply(null,arguments)}function V(){return(V=l.asm.J).apply(null,arguments)}l.dynCall_jiji=function(){return(l.dynCall_jiji=l.asm.K).apply(null,arguments)};var vt;q=function t(){vt||an(),vt||(q=t)};function an(){0<Z||(Et(dn),0<Z||vt||(vt=!0,l.calledRun=!0,U||(Et(Yt),w(l),Et(yn))))}return an(),m.ready}})(),Mt=$n;async function Qn(p){let m=await Mt({instantiateWasm(l,w){WebAssembly.instantiate(p,l).then(({instance:v})=>{w(v)})}});return(0,Ft.default)(m)}async function bn(p){let m=await Mt({instantiateWasm(l,w){WebAssembly.instantiateStreaming(p,l).then(({instance:v})=>{w(v)})}});return(0,Ft.default)(m)}export{Qn as default,bn as initStreaming};

@@ -1,28 +0,7 @@

import Yoga from "yoga-layout";
import type { Yoga } from "./dist/wrapAsm";
export {
YogaNode,
YogaConfig,
YogaAlign,
YogaDirection,
YogaDisplay,
YogaEdge,
YogaFlexDirection,
YogaExperimentalFeature,
YogaFlexWrap,
YogaJustifyContent,
YogaOverflow,
YogaPositionType,
YogaUnit,
YogaMeasureMode,
} from "yoga-layout"
export * from "./dist/generated/YGEnums";
export * from "./dist/wrapAsm";
export type YogaStatic = typeof Yoga
export type YogaWasm = {
init(filepath?: string): Promise<YogaWasm>
} & YogaStatic
const mod: YogaWasm
export default mod
export default function (wasm: ArrayBuffer): Promise<Yoga>;
export function initStreaming(response: Response): Promise<Yoga>;
{
"name": "yoga-wasm-web",
"version": "0.3.0",
"version": "0.3.1",
"types": "index.d.ts",

@@ -18,13 +18,13 @@ "typings": "index.d.ts",

"index.d.ts",
"asm.d.ts",
"LICENSE"
],
"devDependencies": {
"esbuild": "^0.14.18",
"esbuild-plugin-flow": "^0.3.2",
"vitest": "^0.25.2"
"esbuild": "^0.17.4",
"vitest": "^0.28.2"
},
"scripts": {
"build": "make && node build.js",
"test": "vitest"
"test": "vitest run --dir ./test"
}
}

Sorry, the diff of this file is too big to display

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