
var RiveNative = (() => {
  var _scriptName = typeof document != 'undefined' ? document.currentScript?.src : undefined;
  if (typeof __filename != 'undefined') _scriptName ||= __filename;
  return (
function(moduleArg = {}) {
  var moduleRtn;

var d=moduleArg,aa,ba,ca=new Promise((a,b)=>{aa=a;ba=b}),da="object"==typeof window,ea="function"==typeof importScripts,fa="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;
d.onRuntimeInitialized=function(){function a(q,t=!1){t={alpha:!0,depth:t,stencil:t,antialias:t,premultipliedAlpha:!0,preserveDrawingBuffer:1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:!1,explicitSwapControl:0,renderViaOffscreenBackBuffer:0};var l=q.getContext("webgl2",t);if(!l)return null;var u=ha(g),x={handle:u,attributes:t,version:t.hj,nh:l};l.canvas&&(l.canvas.Vi=x);g[u]=x;("undefined"==typeof t.Ei||t.Ei)&&ia(x);ja(u);return{_ptr:b(q.width,q.height),
zi:u,yi:q,ei:q.width,di:q.height,vh:l}}const b=d.makeRenderer;let c=null;d.makeRenderer=function(q){if(!c){function t(l){var u=document.createElement("canvas");u.width=1;u.height=1;c=a(u,l);c.Ai=!!c.vh.getExtension("WEBGL_shader_pixel_local_storage");c.Wi=Math.min(c.vh.getParameter(c.vh.MAX_RENDERBUFFER_SIZE),c.vh.getParameter(c.vh.MAX_TEXTURE_SIZE));c.Oh=!c.Ai;if(l=c.vh.getExtension("WEBGL_debug_renderer_info"))u=c.vh.getParameter(l.UNMASKED_RENDERER_WEBGL),c.vh.getParameter(l.UNMASKED_VENDOR_WEBGL).includes("Google")&&
u.includes("ANGLE Metal Renderer")&&(c.Oh=!1);return c}c=t(!0);c.Oh||(c=t(!1))}return a(q,c.Oh)};const e=d.clearRenderer,f=d.resizeRenderer;d.clearRenderer=function(q,t){ja(q.zi);const l=q.yi,u=l.clientWidth*window.devicePixelRatio||1,x=l.clientHeight*window.devicePixelRatio||1;if(q.ei!=u||q.di!=x)l.width=u,l.height=x,f(q._ptr,l.width,l.height),q.ei=u,q.di=x;e(q._ptr,t)};d.stringViewU8=function(q){var t=d.wasmMemory,l=t?t.buffer:d.HEAPU8.buffer;t=t?new Uint8Array(l,l.byteOffset,l.byteLength):d.HEAPU8;
for(var u=q;0!=t[u]&&u<l.byteLength;)u++;return new Uint8Array(l,q,u-q)};var h=d.makeGlyphPath;d.makeGlyphPath=function(q,t){q=h(q,t);t=q[1];var l=d.heapViewU8(q[2],q[3]);let u=0;for(var x of l)switch(x){case 0:case 1:u++;break;case 2:u+=2;break;case 4:u+=3}return{rawPath:q[0],verbs:l,points:d.heapViewF32(t>>2,2*u)}};var k=d.shapeText;d.shapeText=function(q,t,l){q=k(q,t,l);return{rawResult:q,results:d.heapViewU8(q)}};var m=d.breakLines;d.breakLines=function(q,t,l,u){q=m(q,t,l,u);return{rawResult:q,
results:d.heapViewU8(q)}};var p=d.fontFeatures;d.fontFeatures=function(q){q=p(q);var t=d.heap(),l=new DataView(t,q),u=l.getUint32(0,!0);l=l.getUint32(4,!0);t=new DataView(t,u);u=[];for(var x=0;x<l;x++){var A=t.getUint32(4*x,!0);u.push(A)}d.deleteFontFeatures(q);return u};d.heap=function(){var q=d.wasmMemory;return q?q.buffer:d.HEAPU8.buffer};d.heapViewU8=function(q,t){var l=d.wasmMemory;return l?new Uint8Array(l.buffer,q,t):new Uint8Array(d.HEAPU8.buffer,q,t)};d.heapViewF32=function(q,t){var l=d.wasmMemory;
return l?new Float32Array(l.buffer,q<<2,t):new Float32Array(d.HEAPF32.buffer,q<<2,t)};d.heapViewU32=function(q,t){var l=d.wasmMemory;return l?new Uint32Array(l.buffer,q<<2,t):new Uint32Array(d.HEAPU32.buffer,q<<2,t)};var n=d.scriptingWorkspaceResponse;d.scriptingWorkspaceResponse=function(q,t){var l=n(q,t);q=l[0];t=l[1];l=l[2];t=q?d.heapViewU8(t,l):null;return{available:q,data:t}};var v=d.scriptingWorkspaceHighlightRow;d.scriptingWorkspaceHighlightRow=function(q,t,l){q=v(q,t,l);return d.heapViewU32(q[1]>>
2,q[0])}};var ka=Object.assign({},d),la="./this.program",r="",ma,na,oa;
if(fa){var fs=require("fs"),pa=require("path");r=__dirname+"/";ma=(a,b)=>{a=qa(a)?new URL(a):pa.normalize(a);return fs.readFileSync(a,b?void 0:"utf8")};oa=a=>{a=ma(a,!0);a.buffer||(a=new Uint8Array(a));return a};na=(a,b,c)=>{a=qa(a)?new URL(a):pa.normalize(a);fs.readFile(a,void 0,(e,f)=>{e?c(e):b(f.buffer)})};!d.thisProgram&&1<process.argv.length&&(la=process.argv[1].replace(/\\/g,"/"));process.argv.slice(2)}else if(da||ea)ea?r=self.location.href:"undefined"!=typeof document&&document.currentScript&&
(r=document.currentScript.src),_scriptName&&(r=_scriptName),r.startsWith("blob:")?r="":r=r.substr(0,r.replace(/[?#].*/,"").lastIndexOf("/")+1),ma=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText},ea&&(oa=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),na=(a,b,c)=>{if(qa(a)){var e=new XMLHttpRequest;e.open("GET",a,!0);e.responseType="arraybuffer";e.onload=()=>{200==e.status||0==e.status&&
e.response?b(e.response):c()};e.onerror=c;e.send(null)}else fetch(a,{credentials:"same-origin"}).then(f=>f.ok?f.arrayBuffer():Promise.reject(Error(f.status+" : "+f.url))).then(b,c)};var ra=console.log.bind(console),w=console.error.bind(console);Object.assign(d,ka);ka=null;var sa,ta=!1,y,z,B,ua,C,D,va,wa,xa,ya;
function za(){var a=sa.buffer;d.HEAP8=y=new Int8Array(a);d.HEAP16=B=new Int16Array(a);d.HEAPU8=z=new Uint8Array(a);d.HEAPU16=ua=new Uint16Array(a);d.HEAP32=C=new Int32Array(a);d.HEAPU32=D=new Uint32Array(a);d.HEAPF32=va=new Float32Array(a);d.HEAPF64=ya=new Float64Array(a);d.HEAP64=wa=new BigInt64Array(a);d.HEAPU64=xa=new BigUint64Array(a)}var Aa=[],Ba=[],Ca=[],Da=0,Ea=null,Fa=null;
function Ga(a){a="Aborted("+a+")";w(a);ta=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}var Ha=a=>a.startsWith("data:application/octet-stream;base64,"),qa=a=>a.startsWith("file://"),Ia;function Ja(a){return new Promise((b,c)=>{na(a,e=>b(new Uint8Array(e)),()=>{try{if(oa)var e=oa(a);else throw"both async and sync fetching of the wasm failed";b(e)}catch(f){c(f)}})})}
function Ka(a,b,c){return Ja(a).then(e=>WebAssembly.instantiate(e,b)).then(c,e=>{w(`failed to asynchronously prepare wasm: ${e}`);Ga(e)})}function La(a,b){var c=Ia;return"function"!=typeof WebAssembly.instantiateStreaming||Ha(c)||qa(c)||fa||"function"!=typeof fetch?Ka(c,a,b):fetch(c,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,a).then(b,function(f){w(`wasm streaming compile failed: ${f}`);w("falling back to ArrayBuffer instantiation");return Ka(c,a,b)}))}
var Pa={248694:(a,b,c,e,f)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.fh){window.fh={Kh:0};window.fh.lh={};window.fh.lh.Jh=a;window.fh.lh.capture=b;window.fh.lh.Qh=c;window.fh.Ch={};window.fh.Ch.stopped=e;window.fh.Ch.ti=f;let h=window.fh;h.kh=[];h.Ti=function(k){for(var m=0;m<h.kh.length;++m)if(null==h.kh[m])return h.kh[m]=k,m;h.kh.push(k);return h.kh.length-1};h.xi=function(k){for(h.kh[k]=null;0<h.kh.length;)if(null==
h.kh[h.kh.length-1])h.kh.pop();else break};h.qj=function(k){for(var m=0;m<h.kh.length;++m)if(h.kh[m]==k)return h.xi(m)};h.Fh=function(k){return h.kh[k]};h.wi=["touchend","click"];h.unlock=function(){for(var k=0;k<h.kh.length;++k){var m=h.kh[k];null!=m&&null!=m.mh&&m.state===h.Ch.ti&&m.mh.resume().then(()=>{Ma(m.ri)},p=>{console.error("Failed to resume audiocontext",p)})}h.wi.map(function(p){document.removeEventListener(p,h.unlock,!0)})};h.wi.map(function(k){document.addEventListener(k,h.unlock,!0)})}window.fh.Kh+=
1;return 1},250872:()=>{"undefined"!==typeof window.fh&&(--window.fh.Kh,0===window.fh.Kh&&delete window.fh)},251036:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,251140:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},251311:(a,b,c,e,f,h)=>{if("undefined"===typeof window.fh)return-1;var k={},m={};a==window.fh.lh.Jh&&0!=c&&(m.sampleRate=c);k.mh=new (window.AudioContext||window.webkitAudioContext)(m);
k.mh.suspend();k.state=window.fh.Ch.stopped;c=0;a!=window.fh.lh.Jh&&(c=b);k.xh=k.mh.createScriptProcessor(e,c,b);k.xh.onaudioprocess=function(p){if(null==k.Gh||0==k.Gh.length)k.Gh=new Float32Array(va.buffer,f,e*b);if(a==window.fh.lh.capture||a==window.fh.lh.Qh){for(var n=0;n<b;n+=1)for(var v=p.inputBuffer.getChannelData(n),q=k.Gh,t=0;t<e;t+=1)q[t*b+n]=v[t];Na(h,e,f)}if(a==window.fh.lh.Jh||a==window.fh.lh.Qh)for(Oa(h,e,f),n=0;n<p.outputBuffer.numberOfChannels;++n)for(v=p.outputBuffer.getChannelData(n),
q=k.Gh,t=0;t<e;t+=1)v[t]=q[t*b+n];else for(n=0;n<p.outputBuffer.numberOfChannels;++n)p.outputBuffer.getChannelData(n).fill(0)};a!=window.fh.lh.capture&&a!=window.fh.lh.Qh||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(p){k.Lh=k.mh.createMediaStreamSource(p);k.Lh.connect(k.xh);k.xh.connect(k.mh.destination)}).catch(function(p){console.log("Failed to get user media: "+p)});a==window.fh.lh.Jh&&k.xh.connect(k.mh.destination);k.ri=h;return window.fh.Ti(k)},254188:a=>window.fh.Fh(a).mh.sampleRate,
254261:a=>{a=window.fh.Fh(a);void 0!==a.xh&&(a.xh.onaudioprocess=function(){},a.xh.disconnect(),a.xh=void 0);void 0!==a.Lh&&(a.Lh.disconnect(),a.Lh=void 0);a.mh.close();a.mh=void 0;a.ri=void 0},254661:a=>{window.fh.xi(a)},254711:a=>{a=window.fh.Fh(a);a.mh.resume();a.state=window.fh.Ch.ti},254850:a=>{a=window.fh.Fh(a);a.mh.suspend();a.state=window.fh.Ch.stopped}};function E(){var a=C[+Qa>>2];Qa+=4;return a}
var Ra=(a,b)=>{for(var c=0,e=a.length-1;0<=e;e--){var f=a[e];"."===f?a.splice(e,1):".."===f?(a.splice(e,1),c++):c&&(a.splice(e,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},Sa=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ra(a.split("/").filter(e=>!!e),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Ta=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&=b.substr(0,b.length-1);return a+b},Ua=a=>{if("/"===
a)return"/";a=Sa(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},Va=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return c=>crypto.getRandomValues(c);if(fa)try{var a=require("crypto");if(a.randomFillSync)return c=>a.randomFillSync(c);var b=a.randomBytes;return c=>(c.set(b(c.byteLength)),c)}catch(c){}Ga("initRandomDevice")},Wa=a=>(Wa=Va())(a),Xa=(...a)=>{for(var b="",c=!1,e=a.length-1;-1<=e&&!c;e--){c=0<=e?a[e]:"/";if("string"!=typeof c)throw new TypeError("Arguments to path.resolve must be strings");
if(!c)return"";b=c+"/"+b;c="/"===c.charAt(0)}b=Ra(b.split("/").filter(f=>!!f),!c).join("/");return(c?"/":"")+b||"."},Ya="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,F=(a,b,c)=>{var e=b+c;for(c=b;a[c]&&!(c>=e);)++c;if(16<c-b&&a.buffer&&Ya)return Ya.decode(a.subarray(b,c));for(e="";b<c;){var f=a[b++];if(f&128){var h=a[b++]&63;if(192==(f&224))e+=String.fromCharCode((f&31)<<6|h);else{var k=a[b++]&63;f=224==(f&240)?(f&15)<<12|h<<6|k:(f&7)<<18|h<<12|k<<6|a[b++]&63;65536>f?e+=String.fromCharCode(f):
(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023))}}else e+=String.fromCharCode(f)}return e},Za=[],$a=a=>{for(var b=0,c=0;c<a.length;++c){var e=a.charCodeAt(c);127>=e?b++:2047>=e?b+=2:55296<=e&&57343>=e?(b+=4,++c):b+=3}return b},ab=(a,b,c,e)=>{if(!(0<e))return 0;var f=c;e=c+e-1;for(var h=0;h<a.length;++h){var k=a.charCodeAt(h);if(55296<=k&&57343>=k){var m=a.charCodeAt(++h);k=65536+((k&1023)<<10)|m&1023}if(127>=k){if(c>=e)break;b[c++]=k}else{if(2047>=k){if(c+1>=e)break;b[c++]=192|k>>6}else{if(65535>=
k){if(c+2>=e)break;b[c++]=224|k>>12}else{if(c+3>=e)break;b[c++]=240|k>>18;b[c++]=128|k>>12&63}b[c++]=128|k>>6&63}b[c++]=128|k&63}}b[c]=0;return c-f};function bb(a,b){var c=Array($a(a)+1);a=ab(a,c,0,c.length);b&&(c.length=a);return c}var cb=[];function db(a,b){cb[a]={input:[],output:[],uh:b};eb(a,fb)}
var fb={open(a){var b=cb[a.node.rdev];if(!b)throw new G(43);a.tty=b;a.seekable=!1},close(a){a.tty.uh.fsync(a.tty)},fsync(a){a.tty.uh.fsync(a.tty)},read(a,b,c,e){if(!a.tty||!a.tty.uh.mi)throw new G(60);for(var f=0,h=0;h<e;h++){try{var k=a.tty.uh.mi(a.tty)}catch(m){throw new G(29);}if(void 0===k&&0===f)throw new G(6);if(null===k||void 0===k)break;f++;b[c+h]=k}f&&(a.node.timestamp=Date.now());return f},write(a,b,c,e){if(!a.tty||!a.tty.uh.Vh)throw new G(60);try{for(var f=0;f<e;f++)a.tty.uh.Vh(a.tty,b[c+
f])}catch(h){throw new G(29);}e&&(a.node.timestamp=Date.now());return f}},gb={mi(){a:{if(!Za.length){var a=null;if(fa){var b=Buffer.alloc(256),c=0,e=process.stdin.fd;try{c=fs.readSync(e,b,0,256)}catch(f){if(f.toString().includes("EOF"))c=0;else throw f;}0<c&&(a=b.slice(0,c).toString("utf-8"))}else"undefined"!=typeof window&&"function"==typeof window.prompt&&(a=window.prompt("Input: "),null!==a&&(a+="\n"));if(!a){a=null;break a}Za=bb(a,!0)}a=Za.shift()}return a},Vh(a,b){null===b||10===b?(ra(F(a.output,
0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(ra(F(a.output,0)),a.output=[])},Ji(){return{$i:25856,bj:5,Zi:191,aj:35387,Yi:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},Ki(){return 0},Li(){return[24,80]}},hb={Vh(a,b){null===b||10===b?(w(F(a.output,0)),a.output=[]):0!=b&&a.output.push(b)},fsync(a){a.output&&0<a.output.length&&(w(F(a.output,0)),a.output=[])}};
function ib(a,b){var c=a.hh?a.hh.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.hh,a.hh=new Uint8Array(b),0<a.jh&&a.hh.set(c.subarray(0,a.jh),0))}
var H={ph:null,th(){return H.createNode(null,"/",16895,0)},createNode(a,b,c,e){if(24576===(c&61440)||4096===(c&61440))throw new G(63);H.ph||(H.ph={dir:{node:{wh:H.gh.wh,rh:H.gh.rh,lookup:H.gh.lookup,Hh:H.gh.Hh,rename:H.gh.rename,unlink:H.gh.unlink,rmdir:H.gh.rmdir,readdir:H.gh.readdir,symlink:H.gh.symlink},stream:{zh:H.ih.zh}},file:{node:{wh:H.gh.wh,rh:H.gh.rh},stream:{zh:H.ih.zh,read:H.ih.read,write:H.ih.write,fi:H.ih.fi,ni:H.ih.ni,pi:H.ih.pi}},link:{node:{wh:H.gh.wh,rh:H.gh.rh,readlink:H.gh.readlink},
stream:{}},gi:{node:{wh:H.gh.wh,rh:H.gh.rh},stream:jb}});c=kb(a,b,c,e);16384===(c.mode&61440)?(c.gh=H.ph.dir.node,c.ih=H.ph.dir.stream,c.hh={}):32768===(c.mode&61440)?(c.gh=H.ph.file.node,c.ih=H.ph.file.stream,c.jh=0,c.hh=null):40960===(c.mode&61440)?(c.gh=H.ph.link.node,c.ih=H.ph.link.stream):8192===(c.mode&61440)&&(c.gh=H.ph.gi.node,c.ih=H.ph.gi.stream);c.timestamp=Date.now();a&&(a.hh[b]=c,a.timestamp=c.timestamp);return c},fj(a){return a.hh?a.hh.subarray?a.hh.subarray(0,a.jh):new Uint8Array(a.hh):
new Uint8Array(0)},gh:{wh(a){var b={};b.dev=8192===(a.mode&61440)?a.id:1;b.ino=a.id;b.mode=a.mode;b.nlink=1;b.uid=0;b.gid=0;b.rdev=a.rdev;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.jh:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.atime=new Date(a.timestamp);b.mtime=new Date(a.timestamp);b.ctime=new Date(a.timestamp);b.Ci=4096;b.blocks=Math.ceil(b.size/b.Ci);return b},rh(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);if(void 0!==
b.size&&(b=b.size,a.jh!=b))if(0==b)a.hh=null,a.jh=0;else{var c=a.hh;a.hh=new Uint8Array(b);c&&a.hh.set(c.subarray(0,Math.min(b,a.jh)));a.jh=b}},lookup(){throw lb[44];},Hh(a,b,c,e){return H.createNode(a,b,c,e)},rename(a,b,c){if(16384===(a.mode&61440)){try{var e=mb(b,c)}catch(h){}if(e)for(var f in e.hh)throw new G(55);}delete a.parent.hh[a.name];a.parent.timestamp=Date.now();a.name=c;b.hh[c]=a;b.timestamp=a.parent.timestamp},unlink(a,b){delete a.hh[b];a.timestamp=Date.now()},rmdir(a,b){var c=mb(a,b),
e;for(e in c.hh)throw new G(55);delete a.hh[b];a.timestamp=Date.now()},readdir(a){var b=[".",".."],c;for(c of Object.keys(a.hh))b.push(c);return b},symlink(a,b,c){a=H.createNode(a,b,41471,0);a.link=c;return a},readlink(a){if(40960!==(a.mode&61440))throw new G(28);return a.link}},ih:{read(a,b,c,e,f){var h=a.node.hh;if(f>=a.node.jh)return 0;a=Math.min(a.node.jh-f,e);if(8<a&&h.subarray)b.set(h.subarray(f,f+a),c);else for(e=0;e<a;e++)b[c+e]=h[f+e];return a},write(a,b,c,e,f,h){b.buffer===y.buffer&&(h=
!1);if(!e)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.hh||a.hh.subarray)){if(h)return a.hh=b.subarray(c,c+e),a.jh=e;if(0===a.jh&&0===f)return a.hh=b.slice(c,c+e),a.jh=e;if(f+e<=a.jh)return a.hh.set(b.subarray(c,c+e),f),e}ib(a,f+e);if(a.hh.subarray&&b.subarray)a.hh.set(b.subarray(c,c+e),f);else for(h=0;h<e;h++)a.hh[f+h]=b[c+h];a.jh=Math.max(a.jh,f+e);return e},zh(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.jh);if(0>b)throw new G(28);return b},fi(a,b,c){ib(a.node,
b+c);a.node.jh=Math.max(a.node.jh,b+c)},ni(a,b,c,e,f){if(32768!==(a.node.mode&61440))throw new G(43);a=a.node.hh;if(f&2||a.buffer!==y.buffer){if(0<c||c+b<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;Ga();b=void 0;if(!b)throw new G(48);y.set(a,b)}else c=!1,b=a.byteOffset;return{oj:b,Xi:c}},pi(a,b,c,e){H.ih.write(a,b,0,e,c,!1);return 0}}},nb=(a,b)=>{var c=0;a&&(c|=365);b&&(c|=146);return c},ob=null,pb={},qb=[],rb=1,sb=null,tb=!0,G=class{constructor(a){this.name=
"ErrnoError";this.yh=a}},lb={},ub=class{constructor(){this.fh={};this.node=null}get flags(){return this.fh.flags}set flags(a){this.fh.flags=a}get position(){return this.fh.position}set position(a){this.fh.position=a}},vb=class{constructor(a,b,c,e){a||=this;this.parent=a;this.th=a.th;this.Ih=null;this.id=rb++;this.name=b;this.mode=c;this.gh={};this.ih={};this.rdev=e}get read(){return 365===(this.mode&365)}set read(a){a?this.mode|=365:this.mode&=-366}get write(){return 146===(this.mode&146)}set write(a){a?
this.mode|=146:this.mode&=-147}};function I(a,b={}){a=Xa(a);if(!a)return{path:"",node:null};b=Object.assign({li:!0,Yh:0},b);if(8<b.Yh)throw new G(32);a=a.split("/").filter(k=>!!k);for(var c=ob,e="/",f=0;f<a.length;f++){var h=f===a.length-1;if(h&&b.parent)break;c=mb(c,a[f]);e=Sa(e+"/"+a[f]);c.Ih&&(!h||h&&b.li)&&(c=c.Ih.root);if(!h||b.ki)for(h=0;40960===(c.mode&61440);)if(c=wb(e),e=Xa(Ta(e),c),c=I(e,{Yh:b.Yh+1}).node,40<h++)throw new G(32);}return{path:e,node:c}}
function xb(a){for(var b;;){if(a===a.parent)return a=a.th.oi,b?"/"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}}function yb(a,b){for(var c=0,e=0;e<b.length;e++)c=(c<<5)-c+b.charCodeAt(e)|0;return(a+c>>>0)%sb.length}function mb(a,b){var c=16384===(a.mode&61440)?(c=zb(a,"x"))?c:a.gh.lookup?0:2:54;if(c)throw new G(c);for(c=sb[yb(a.id,b)];c;c=c.Oi){var e=c.name;if(c.parent.id===a.id&&e===b)return c}return a.gh.lookup(a,b)}
function kb(a,b,c,e){a=new vb(a,b,c,e);b=yb(a.parent.id,a.name);a.Oi=sb[b];return sb[b]=a}function Ab(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function zb(a,b){if(tb)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0}function Bb(a,b){try{return mb(a,b),20}catch(c){}return zb(a,"wx")}function K(a){a=qb[a];if(!a)throw new G(8);return a}
function Cb(a,b=-1){a=Object.assign(new ub,a);if(-1==b)a:{for(b=0;4096>=b;b++)if(!qb[b])break a;throw new G(33);}a.fd=b;return qb[b]=a}function Db(a,b=-1){a=Cb(a,b);a.ih?.ej?.(a);return a}var jb={open(a){a.ih=pb[a.node.rdev].ih;a.ih.open?.(a)},zh(){throw new G(70);}};function eb(a,b){pb[a]={ih:b}}
function Eb(a,b){var c="/"===b;if(c&&ob)throw new G(10);if(!c&&b){var e=I(b,{li:!1});b=e.path;e=e.node;if(e.Ih)throw new G(10);if(16384!==(e.mode&61440))throw new G(54);}b={type:a,nj:{},oi:b,Mi:[]};a=a.th(b);a.th=b;b.root=a;c?ob=a:e&&(e.Ih=b,e.th&&e.th.Mi.push(b))}function Fb(a,b,c){var e=I(a,{parent:!0}).node;a=Ua(a);if(!a||"."===a||".."===a)throw new G(28);var f=Bb(e,a);if(f)throw new G(f);if(!e.gh.Hh)throw new G(63);return e.gh.Hh(e,a,b,c)}function L(a){return Fb(a,16895,0)}
function Gb(a,b,c){"undefined"==typeof c&&(c=b,b=438);Fb(a,b|8192,c)}function Hb(a,b){if(!Xa(a))throw new G(44);var c=I(b,{parent:!0}).node;if(!c)throw new G(44);b=Ua(b);var e=Bb(c,b);if(e)throw new G(e);if(!c.gh.symlink)throw new G(63);c.gh.symlink(c,b,a)}function wb(a){a=I(a).node;if(!a)throw new G(44);if(!a.gh.readlink)throw new G(28);return Xa(xb(a.parent),a.gh.readlink(a))}
function Ib(a,b,c){if(""===a)throw new G(44);if("string"==typeof b){var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof e)throw Error(`Unknown file open mode: ${b}`);b=e}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var f=a;else{a=Sa(a);try{f=I(a,{ki:!(b&131072)}).node}catch(h){}}e=!1;if(b&64)if(f){if(b&128)throw new G(20);}else f=Fb(a,c,0),e=!0;if(!f)throw new G(44);8192===(f.mode&61440)&&(b&=-513);if(b&65536&&16384!==(f.mode&61440))throw new G(54);
if(!e&&(c=f?40960===(f.mode&61440)?32:16384===(f.mode&61440)&&("r"!==Ab(b)||b&512)?31:zb(f,Ab(b)):44))throw new G(c);if(b&512&&!e){c=f;c="string"==typeof c?I(c,{ki:!0}).node:c;if(!c.gh.rh)throw new G(63);if(16384===(c.mode&61440))throw new G(31);if(32768!==(c.mode&61440))throw new G(28);if(e=zb(c,"w"))throw new G(e);c.gh.rh(c,{size:0,timestamp:Date.now()})}b&=-131713;f=Cb({node:f,path:xb(f),flags:b,seekable:!0,position:0,ih:f.ih,Ui:[],error:!1});f.ih.open&&f.ih.open(f);!d.logReadFiles||b&1||(Jb||=
{},a in Jb||(Jb[a]=1));return f}function Kb(a,b,c){if(null===a.fd)throw new G(8);if(!a.seekable||!a.ih.zh)throw new G(70);if(0!=c&&1!=c&&2!=c)throw new G(28);a.position=a.ih.zh(a,b,c);a.Ui=[]}var Lb;
function Mb(a,b,c){a=Sa("/dev/"+a);var e=nb(!!b,!!c);Nb||=64;var f=Nb++<<8|0;eb(f,{open(h){h.seekable=!1},close(){c?.buffer?.length&&c(10)},read(h,k,m,p){for(var n=0,v=0;v<p;v++){try{var q=b()}catch(t){throw new G(29);}if(void 0===q&&0===n)throw new G(6);if(null===q||void 0===q)break;n++;k[m+v]=q}n&&(h.node.timestamp=Date.now());return n},write(h,k,m,p){for(var n=0;n<p;n++)try{c(k[m+n])}catch(v){throw new G(29);}p&&(h.node.timestamp=Date.now());return n}});Gb(a,e,f)}
var Nb,M={},Jb,Qa=void 0,Ob={},Pb=a=>{for(;a.length;){var b=a.pop();a.pop()(b)}};function Qb(a){return this.fromWireType(D[a>>2])}
var Rb={},N={},Sb={},Tb,Ub=(a,b,c)=>{function e(m){m=c(m);if(m.length!==a.length)throw new Tb("Mismatched type converter count");for(var p=0;p<a.length;++p)O(a[p],m[p])}a.forEach(function(m){Sb[m]=b});var f=Array(b.length),h=[],k=0;b.forEach((m,p)=>{N.hasOwnProperty(m)?f[p]=N[m]:(h.push(m),Rb.hasOwnProperty(m)||(Rb[m]=[]),Rb[m].push(()=>{f[p]=N[m];++k;k===h.length&&e(f)}))});0===h.length&&e(f)},Vb={},Wb,P=a=>{for(var b="";z[a];)b+=Wb[z[a++]];return b},Q;
function Xb(a,b,c={}){var e=b.name;if(!a)throw new Q(`type "${e}" must have a positive integer typeid pointer`);if(N.hasOwnProperty(a)){if(c.Gi)return;throw new Q(`Cannot register type '${e}' twice`);}N[a]=b;delete Sb[a];Rb.hasOwnProperty(a)&&(b=Rb[a],delete Rb[a],b.forEach(f=>f()))}function O(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Xb(a,b,c)}
var Yb=(a,b,c)=>{switch(b){case 1:return c?e=>y[e]:e=>z[e];case 2:return c?e=>B[e>>1]:e=>ua[e>>1];case 4:return c?e=>C[e>>2]:e=>D[e>>2];case 8:return c?e=>wa[e>>3]:e=>xa[e>>3];default:throw new TypeError(`invalid integer width (${b}): ${a}`);}},Zb=[],R=[],$b=a=>{9<a&&0===--R[a+1]&&(R[a]=void 0,Zb.push(a))},S=a=>{if(!a)throw new Q("Cannot use deleted val. handle = "+a);return R[a]},ac=a=>{switch(a){case void 0:return 2;case null:return 4;case !0:return 6;case !1:return 8;default:const b=Zb.pop()||
R.length;R[b]=a;R[b+1]=1;return b}},bc={name:"emscripten::val",fromWireType:a=>{var b=S(a);$b(a);return b},toWireType:(a,b)=>ac(b),argPackAdvance:8,readValueFromPointer:Qb,oh:null},cc=(a,b)=>{switch(b){case 4:return function(c){return this.fromWireType(va[c>>2])};case 8:return function(c){return this.fromWireType(ya[c>>3])};default:throw new TypeError(`invalid float width (${b}): ${a}`);}},dc=(a,b)=>Object.defineProperty(b,"name",{value:a});
function ec(a){for(var b=1;b<a.length;++b)if(null!==a[b]&&void 0===a[b].oh)return!0;return!1}
function fc(a,b,c,e){var f=b.length;if(2>f)throw new Q("argTypes array size mismatch! Must at least get return value and 'this' types!");var h=null!==b[1]&&!1,k=ec(b),m="void"!==b[0].name,p=f-2,n=Array(p),v=[],q=[];return dc(a,function(...t){if(t.length!==p)throw new Q(`function ${a} called with ${t.length} arguments, expected ${p}`);q.length=0;v.length=h?2:1;v[0]=e;if(h){var l=b[1].toWireType(q,this);v[1]=l}for(var u=0;u<p;++u)n[u]=b[u+2].toWireType(q,t[u]),v.push(n[u]);t=c(...v);if(k)Pb(q);else for(u=
h?1:2;u<b.length;u++){var x=1===u?l:n[u-2];null!==b[u].oh&&b[u].oh(x)}l=m?b[0].fromWireType(t):void 0;return l})}
var gc=(a,b)=>{if(void 0===d[a].qh){var c=d[a];d[a]=function(...e){if(!d[a].qh.hasOwnProperty(e.length))throw new Q(`Function '${b}' called with an invalid number of arguments (${e.length}) - expects one of (${d[a].qh})!`);return d[a].qh[e.length].apply(this,e)};d[a].qh=[];d[a].qh[c.Bi]=c}},hc=(a,b,c)=>{if(d.hasOwnProperty(a)){if(void 0===c||void 0!==d[a].qh&&void 0!==d[a].qh[c])throw new Q(`Cannot register public name '${a}' twice`);gc(a,a);if(d.hasOwnProperty(c))throw new Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`);
d[a].qh[c]=b}else d[a]=b,void 0!==c&&(d[a].mj=c)},ic=(a,b)=>{for(var c=[],e=0;e<a;e++)c.push(D[b+4*e>>2]);return c},jc=[],kc,T=(a,b)=>{a=P(a);var c=jc[b];c||(b>=jc.length&&(jc.length=b+1),jc[b]=c=kc.get(b));if("function"!=typeof c)throw new Q(`unknown function pointer with signature ${a}: ${b}`);return c},lc,nc=a=>{a=mc(a);var b=P(a);V(a);return b},oc=(a,b)=>{function c(h){f[h]||N[h]||(Sb[h]?Sb[h].forEach(c):(e.push(h),f[h]=!0))}var e=[],f={};b.forEach(c);throw new lc(`${a}: `+e.map(nc).join([", "]));
},pc=a=>{a=a.trim();const b=a.indexOf("(");return-1!==b?a.substr(0,b):a},qc="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,rc=(a,b)=>{var c=a>>1;for(var e=c+b/2;!(c>=e)&&ua[c];)++c;c<<=1;if(32<c-a&&qc)return qc.decode(z.subarray(a,c));c="";for(e=0;!(e>=b/2);++e){var f=B[a+2*e>>1];if(0==f)break;c+=String.fromCharCode(f)}return c},sc=(a,b,c)=>{c??=2147483647;if(2>c)return 0;c-=2;var e=b;c=c<2*a.length?c/2:a.length;for(var f=0;f<c;++f)B[b>>1]=a.charCodeAt(f),b+=2;B[b>>1]=0;return b-
e},tc=a=>2*a.length,uc=(a,b)=>{for(var c=0,e="";!(c>=b/4);){var f=C[a+4*c>>2];if(0==f)break;++c;65536<=f?(f-=65536,e+=String.fromCharCode(55296|f>>10,56320|f&1023)):e+=String.fromCharCode(f)}return e},vc=(a,b,c)=>{c??=2147483647;if(4>c)return 0;var e=b;c=e+c-4;for(var f=0;f<a.length;++f){var h=a.charCodeAt(f);if(55296<=h&&57343>=h){var k=a.charCodeAt(++f);h=65536+((h&1023)<<10)|k&1023}C[b>>2]=h;b+=4;if(b+4>c)break}C[b>>2]=0;return b-e},wc=a=>{for(var b=0,c=0;c<a.length;++c){var e=a.charCodeAt(c);
55296<=e&&57343>=e&&++c;b+=4}return b},xc=(a,b)=>{var c=N[a];if(void 0===c)throw a=`${b} has unknown type ${nc(a)}`,new Q(a);return c},yc=(a,b,c)=>{var e=[];a=a.toWireType(e,c);e.length&&(D[b>>2]=ac(e));return a},zc=[],Ac={},Bc=a=>{var b=Ac[a];return void 0===b?P(a):b},Cc=a=>{var b=zc.length;zc.push(a);return b},Dc=(a,b)=>{for(var c=Array(a),e=0;e<a;++e)c[e]=xc(D[b+4*e>>2],"parameter "+e);return c},Ec=Reflect.construct,Fc=[],Gc=a=>{a.dj=a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance")},
Hc=a=>{a.lj=a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance")},Ic=a=>{var b="EXT_color_buffer_float EXT_conservative_depth EXT_disjoint_timer_query_webgl2 EXT_texture_norm16 NV_shader_noperspective_interpolation WEBGL_clip_cull_distance EXT_color_buffer_half_float EXT_depth_clamp EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_blend_func_extended WEBGL_compressed_texture_astc WEBGL_compressed_texture_etc WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");
return(a.getSupportedExtensions()||[]).filter(c=>b.includes(c))},Jc=1,Kc=[],W=[],Lc=[],Mc=[],Nc=[],Oc=[],Pc=[],g=[],Qc={},Rc=4,Sc=0,ha=a=>{for(var b=Jc++,c=a.length;c<b;c++)a[c]=null;return b},Tc=(a,b,c,e)=>{for(var f=0;f<a;f++){var h=X[c](),k=h&&ha(e);h?(h.name=k,e[k]=h):Y||=1282;C[b+4*f>>2]=k}},ja=a=>{Uc=g[a];d.cj=X=Uc?.nh;return!(a&&!X)},ia=a=>{a||=Uc;if(!a.Hi){a.Hi=!0;var b=a.nh;Gc(b);Hc(b);2<=a.version&&(b.ii=b.getExtension("EXT_disjoint_timer_query_webgl2"));if(2>a.version||!b.ii)b.ii=b.getExtension("EXT_disjoint_timer_query");
b.Ni=b.getExtension("WEBGL_multi_draw");Ic(b).forEach(c=>{c.includes("lose_context")||c.includes("debug")||b.getExtension(c)})}},Y,Uc,Vc={},Xc=()=>{if(!Wc){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:la||"./this.program"},b;for(b in Vc)void 0===Vc[b]?delete a[b]:a[b]=Vc[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);Wc=c}return Wc},Wc,Yc=[];
function Zc(){var a=Ic(X);return a=a.concat(a.map(b=>"GL_"+b))}
var $c=(a,b)=>{if(b){var c=void 0;switch(a){case 36346:c=1;break;case 36344:return;case 34814:case 36345:c=0;break;case 34466:var e=X.getParameter(34467);c=e?e.length:0;break;case 33309:if(2>Uc.version){Y||=1282;return}c=Zc().length;break;case 33307:case 33308:if(2>Uc.version){Y||=1280;return}c=33307==a?3:0}if(void 0===c)switch(e=X.getParameter(a),typeof e){case "number":c=e;break;case "boolean":c=e?1:0;break;case "string":Y||=1280;return;case "object":if(null===e)switch(a){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:c=
0;break;default:Y||=1280;return}else{if(e instanceof Float32Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Array){for(a=0;a<e.length;++a)C[b+4*a>>2]=e[a];return}try{c=e.name|0}catch(f){Y||=1280;w(`GL_INVALID_ENUM in glGet${0}v: Unknown object returned from WebGL getParameter(${a})! (error: ${f})`);return}}break;default:Y||=1280;w(`GL_INVALID_ENUM in glGet${0}v: Native code calling glGet${0}v(${a}) and it returns ${e} of type ${typeof e}!`);return}C[b>>2]=c}else Y||=1281},bd=
a=>{var b=$a(a)+1,c=ad(b);c&&ab(a,z,c,b);return c},cd=a=>"]"==a.slice(-1)&&a.lastIndexOf("["),dd=a=>{a-=5120;return 0==a?y:1==a?z:2==a?B:4==a?C:6==a?va:5==a||28922==a||28520==a||30779==a||30782==a?D:ua},ed=a=>0===a%4&&(0!==a%100||0===a%400),fd=[31,29,31,30,31,30,31,31,30,31,30,31],gd=[31,28,31,30,31,30,31,31,30,31,30,31],hd=(a,b,c,e)=>{function f(l,u,x){for(l="number"==typeof l?l.toString():l||"";l.length<u;)l=x[0]+l;return l}function h(l,u){return f(l,u,"0")}function k(l,u){function x(J){return 0>
J?-1:0<J?1:0}var A;0===(A=x(l.getFullYear()-u.getFullYear()))&&0===(A=x(l.getMonth()-u.getMonth()))&&(A=x(l.getDate()-u.getDate()));return A}function m(l){switch(l.getDay()){case 0:return new Date(l.getFullYear()-1,11,29);case 1:return l;case 2:return new Date(l.getFullYear(),0,3);case 3:return new Date(l.getFullYear(),0,2);case 4:return new Date(l.getFullYear(),0,1);case 5:return new Date(l.getFullYear()-1,11,31);case 6:return new Date(l.getFullYear()-1,11,30)}}function p(l){var u=l.Ah;for(l=new Date((new Date(l.Bh+
1900,0,1)).getTime());0<u;){var x=l.getMonth(),A=(ed(l.getFullYear())?fd:gd)[x];if(u>A-l.getDate())u-=A-l.getDate()+1,l.setDate(1),11>x?l.setMonth(x+1):(l.setMonth(0),l.setFullYear(l.getFullYear()+1));else{l.setDate(l.getDate()+u);break}}x=new Date(l.getFullYear()+1,0,4);u=m(new Date(l.getFullYear(),0,4));x=m(x);return 0>=k(u,l)?0>=k(x,l)?l.getFullYear()+1:l.getFullYear():l.getFullYear()-1}var n=D[e+40>>2];e={Ri:C[e>>2],Qi:C[e+4>>2],Mh:C[e+8>>2],bi:C[e+12>>2],Nh:C[e+16>>2],Bh:C[e+20>>2],sh:C[e+24>>
2],Ah:C[e+28>>2],pj:C[e+32>>2],Pi:C[e+36>>2],Si:n?n?F(z,n):"":""};c=c?F(z,c):"";n={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var v in n)c=c.replace(new RegExp(v,"g"),n[v]);
var q="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),t="January February March April May June July August September October November December".split(" ");n={"%a":l=>q[l.sh].substring(0,3),"%A":l=>q[l.sh],"%b":l=>t[l.Nh].substring(0,3),"%B":l=>t[l.Nh],"%C":l=>h((l.Bh+1900)/100|0,2),"%d":l=>h(l.bi,2),"%e":l=>f(l.bi,2," "),"%g":l=>p(l).toString().substring(2),"%G":p,"%H":l=>h(l.Mh,2),"%I":l=>{l=l.Mh;0==l?l=12:12<l&&(l-=12);return h(l,2)},"%j":l=>{for(var u=0,x=0;x<=l.Nh-1;u+=(ed(l.Bh+
1900)?fd:gd)[x++]);return h(l.bi+u,3)},"%m":l=>h(l.Nh+1,2),"%M":l=>h(l.Qi,2),"%n":()=>"\n","%p":l=>0<=l.Mh&&12>l.Mh?"AM":"PM","%S":l=>h(l.Ri,2),"%t":()=>"\t","%u":l=>l.sh||7,"%U":l=>h(Math.floor((l.Ah+7-l.sh)/7),2),"%V":l=>{var u=Math.floor((l.Ah+7-(l.sh+6)%7)/7);2>=(l.sh+371-l.Ah-2)%7&&u++;if(u)53==u&&(x=(l.sh+371-l.Ah)%7,4==x||3==x&&ed(l.Bh)||(u=1));else{u=52;var x=(l.sh+7-l.Ah-1)%7;(4==x||5==x&&ed(l.Bh%400-1))&&u++}return h(u,2)},"%w":l=>l.sh,"%W":l=>h(Math.floor((l.Ah+7-(l.sh+6)%7)/7),2),"%y":l=>
(l.Bh+1900).toString().substring(2),"%Y":l=>l.Bh+1900,"%z":l=>{l=l.Pi;var u=0<=l;l=Math.abs(l)/60;return(u?"+":"-")+String("0000"+(l/60*100+l%60)).slice(-4)},"%Z":l=>l.Si,"%%":()=>"%"};c=c.replace(/%%/g,"\x00\x00");for(v in n)c.includes(v)&&(c=c.replace(new RegExp(v,"g"),n[v](e)));c=c.replace(/\0\0/g,"%");v=bb(c,!1);if(v.length>b)return 0;y.set(v,a);return v.length-1};[44].forEach(a=>{lb[a]=new G(a);lb[a].stack="<generic error, no stack>"});sb=Array(4096);Eb(H,"/");L("/tmp");L("/home");L("/home/web_user");
(function(){L("/dev");eb(259,{read:()=>0,write:(e,f,h,k)=>k});Gb("/dev/null",259);db(1280,gb);db(1536,hb);Gb("/dev/tty",1280);Gb("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Wa(a).byteLength);return a[--b]};Mb("random",c);Mb("urandom",c);L("/dev/shm");L("/dev/shm/tmp")})();
(function(){L("/proc");var a=L("/proc/self");L("/proc/self/fd");Eb({th(){var b=kb(a,"fd",16895,73);b.gh={lookup(c,e){var f=K(+e);c={parent:null,th:{oi:"fake"},gh:{readlink:()=>f.path}};return c.parent=c}};return b}},"/proc/self/fd")})();Tb=d.InternalError=class extends Error{constructor(a){super(a);this.name="InternalError"}};for(var jd=Array(256),kd=0;256>kd;++kd)jd[kd]=String.fromCharCode(kd);Wb=jd;Q=d.BindingError=class extends Error{constructor(a){super(a);this.name="BindingError"}};
R.push(0,1,void 0,1,null,1,!0,1,!1,1);d.count_emval_handles=()=>R.length/2-5-Zb.length;lc=d.UnboundTypeError=((a,b)=>{var c=dc(b,function(e){this.name=b;this.message=e;e=Error(e).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(a.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`};return c})(Error,"UnboundTypeError");for(var X,ld=0;32>ld;++ld)Yc.push(Array(ld));
var md={ua:function(a,b,c){Qa=c;try{var e=K(a);switch(b){case 0:var f=E();if(0>f)break;for(;qb[f];)f++;return Db(e,f).fd;case 1:case 2:return 0;case 3:return e.flags;case 4:return f=E(),e.flags|=f,0;case 12:return f=E(),B[f+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(h){if("undefined"==typeof M||"ErrnoError"!==h.name)throw h;return-h.yh}},ob:function(a,b,c){Qa=c;try{var e=K(a);switch(b){case 21509:return e.tty?0:-59;case 21505:if(!e.tty)return-59;if(e.tty.uh.Ji){a=[3,28,127,21,4,0,1,0,17,19,
26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var f=E();C[f>>2]=25856;C[f+4>>2]=5;C[f+8>>2]=191;C[f+12>>2]=35387;for(var h=0;32>h;h++)y[f+h+17]=a[h]||0}return 0;case 21510:case 21511:case 21512:return e.tty?0:-59;case 21506:case 21507:case 21508:if(!e.tty)return-59;if(e.tty.uh.Ki)for(f=E(),a=[],h=0;32>h;h++)a.push(y[f+h+17]);return 0;case 21519:if(!e.tty)return-59;f=E();return C[f>>2]=0;case 21520:return e.tty?-28:-59;case 21531:f=E();if(!e.ih.Ii)throw new G(59);return e.ih.Ii(e,b,f);case 21523:if(!e.tty)return-59;
e.tty.uh.Li&&(h=[24,80],f=E(),B[f>>1]=h[0],B[f+2>>1]=h[1]);return 0;case 21524:return e.tty?0:-59;case 21515:return e.tty?0:-59;default:return-28}}catch(k){if("undefined"==typeof M||"ErrnoError"!==k.name)throw k;return-k.yh}},pb:function(a,b,c,e){Qa=e;try{b=b?F(z,b):"";var f=b;if("/"===f.charAt(0))b=f;else{var h=-100===a?"/":K(a).path;if(0==f.length)throw new G(44);b=Sa(h+"/"+f)}var k=e?E():0;return Ib(b,c,k).fd}catch(m){if("undefined"==typeof M||"ErrnoError"!==m.name)throw m;return-m.yh}},qb:()=>
{Ga("")},sa:a=>{var b=Ob[a];delete Ob[a];var c=b.elements,e=c.length,f=c.map(m=>m.Uh).concat(c.map(m=>m.$h)),h=b.Wh,k=b.Xh;Ub([a],f,m=>{c.forEach((p,n)=>{var v=m[n],q=p.Sh,t=p.Th,l=m[n+e],u=p.Zh,x=p.ai;p.read=A=>v.fromWireType(q(t,A));p.write=(A,J)=>{var U=[];u(x,A,l.toWireType(U,J));Pb(U)}});return[{name:b.name,fromWireType:p=>{for(var n=Array(e),v=0;v<e;++v)n[v]=c[v].read(p);k(p);return n},toWireType:(p,n)=>{if(e!==n.length)throw new TypeError(`Incorrect number of tuple elements for ${b.name}: expected=${e}, actual=${n.length}`);
for(var v=h(),q=0;q<e;++q)c[q].write(v,n[q]);null!==p&&p.push(k,v);return v},argPackAdvance:8,readValueFromPointer:Qb,oh:k}]})},B:a=>{var b=Vb[a];delete Vb[a];var c=b.Wh,e=b.Xh,f=b.ji,h=f.map(k=>k.Uh).concat(f.map(k=>k.$h));Ub([a],h,k=>{var m={};f.forEach((p,n)=>{var v=k[n],q=p.Sh,t=p.Th,l=k[n+f.length],u=p.Zh,x=p.ai;m[p.Fi]={read:A=>v.fromWireType(q(t,A)),write:(A,J)=>{var U=[];u(x,A,l.toWireType(U,J));Pb(U)}}});return[{name:b.name,fromWireType:p=>{var n={},v;for(v in m)n[v]=m[v].read(p);e(p);return n},
toWireType:(p,n)=>{for(var v in m)if(!(v in n))throw new TypeError(`Missing field: "${v}"`);var q=c();for(v in m)m[v].write(q,n[v]);null!==p&&p.push(e,q);return q},argPackAdvance:8,readValueFromPointer:Qb,oh:e}]})},na:(a,b,c)=>{b=P(b);O(a,{name:b,fromWireType:e=>e,toWireType:function(e,f){if("bigint"!=typeof f&&"number"!=typeof f)throw null===f?f="null":(e=typeof f,f="object"===e||"array"===e||"function"===e?f.toString():""+f),new TypeError(`Cannot convert "${f}" to ${this.name}`);"number"==typeof f&&
(f=BigInt(f));return f},argPackAdvance:8,readValueFromPointer:Yb(b,c,-1==b.indexOf("u")),oh:null})},$a:(a,b,c,e)=>{b=P(b);O(a,{name:b,fromWireType:function(f){return!!f},toWireType:function(f,h){return h?c:e},argPackAdvance:8,readValueFromPointer:function(f){return this.fromWireType(z[f])},oh:null})},_a:a=>O(a,bc),ma:(a,b,c)=>{b=P(b);O(a,{name:b,fromWireType:e=>e,toWireType:(e,f)=>f,argPackAdvance:8,readValueFromPointer:cc(b,c),oh:null})},a:(a,b,c,e,f,h)=>{var k=ic(b,c);a=P(a);a=pc(a);f=T(e,f);hc(a,
function(){oc(`Cannot call ${a} due to unbound types`,k)},b-1);Ub([],k,m=>{var p=[m[0],null].concat(m.slice(1));m=a;p=fc(a,p,f,h);var n=b-1;if(!d.hasOwnProperty(m))throw new Tb("Replacing nonexistent public symbol");void 0!==d[m].qh&&void 0!==n?d[m].qh[n]=p:(d[m]=p,d[m].Bi=n);return[]})},l:(a,b,c,e,f)=>{b=P(b);-1===f&&(f=4294967295);f=m=>m;if(0===e){var h=32-8*c;f=m=>m<<h>>>h}var k=b.includes("unsigned")?function(m,p){return p>>>0}:function(m,p){return p};O(a,{name:b,fromWireType:f,toWireType:k,argPackAdvance:8,
readValueFromPointer:Yb(b,c,0!==e),oh:null})},e:(a,b,c)=>{function e(h){return new f(y.buffer,D[h+4>>2],D[h>>2])}var f=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][b];c=P(c);O(a,{name:c,fromWireType:e,argPackAdvance:8,readValueFromPointer:e},{Gi:!0})},la:(a,b)=>{b=P(b);var c="std::string"===b;O(a,{name:b,fromWireType:function(e){var f=D[e>>2],h=e+4;if(c)for(var k=h,m=0;m<=f;++m){var p=h+m;if(m==f||0==z[p]){k=k?F(z,k,p-
k):"";if(void 0===n)var n=k;else n+=String.fromCharCode(0),n+=k;k=p+1}}else{n=Array(f);for(m=0;m<f;++m)n[m]=String.fromCharCode(z[h+m]);n=n.join("")}V(e);return n},toWireType:function(e,f){f instanceof ArrayBuffer&&(f=new Uint8Array(f));var h="string"==typeof f;if(!(h||f instanceof Uint8Array||f instanceof Uint8ClampedArray||f instanceof Int8Array))throw new Q("Cannot pass non-string to std::string");var k=c&&h?$a(f):f.length;var m=ad(4+k+1),p=m+4;D[m>>2]=k;if(c&&h)ab(f,z,p,k+1);else if(h)for(h=0;h<
k;++h){var n=f.charCodeAt(h);if(255<n)throw V(p),new Q("String has UTF-16 code units that do not fit in 8 bits");z[p+h]=n}else for(h=0;h<k;++h)z[p+h]=f[h];null!==e&&e.push(V,m);return m},argPackAdvance:8,readValueFromPointer:Qb,oh(e){V(e)}})},X:(a,b,c)=>{c=P(c);if(2===b){var e=rc;var f=sc;var h=tc;var k=m=>ua[m>>1]}else 4===b&&(e=uc,f=vc,h=wc,k=m=>D[m>>2]);O(a,{name:c,fromWireType:m=>{for(var p=D[m>>2],n,v=m+4,q=0;q<=p;++q){var t=m+4+q*b;if(q==p||0==k(t))v=e(v,t-v),void 0===n?n=v:(n+=String.fromCharCode(0),
n+=v),v=t+b}V(m);return n},toWireType:(m,p)=>{if("string"!=typeof p)throw new Q(`Cannot pass non-string to C++ string type ${c}`);var n=h(p),v=ad(4+n+b);D[v>>2]=n/b;f(p,v+4,n+b);null!==m&&m.push(V,v);return v},argPackAdvance:8,readValueFromPointer:Qb,oh(m){V(m)}})},qa:(a,b,c,e,f,h)=>{Ob[a]={name:P(b),Wh:T(c,e),Xh:T(f,h),elements:[]}},Q:(a,b,c,e,f,h,k,m,p)=>{Ob[a].elements.push({Uh:b,Sh:T(c,e),Th:f,$h:h,Zh:T(k,m),ai:p})},I:(a,b,c,e,f,h)=>{Vb[a]={name:P(b),Wh:T(c,e),Xh:T(f,h),ji:[]}},m:(a,b,c,e,f,h,
k,m,p,n)=>{Vb[a].ji.push({Fi:P(b),Uh:c,Sh:T(e,f),Th:h,$h:k,Zh:T(m,p),ai:n})},ab:(a,b)=>{b=P(b);O(a,{gj:!0,name:b,argPackAdvance:0,fromWireType:()=>{},toWireType:()=>{}})},hb:()=>1,V:(a,b,c)=>{a=S(a);b=xc(b,"emval::as");return yc(b,c,a)},c:(a,b,c,e)=>{a=zc[a];b=S(b);return a(null,b,c,e)},eb:(a,b,c,e,f)=>{a=zc[a];b=S(b);c=Bc(c);return a(b,b[c],e,f)},ub:$b,b:(a,b,c)=>{var e=Dc(a,b),f=e.shift();a--;var h=Array(a);b=`methodCaller<(${e.map(k=>k.name).join(", ")}) => ${f.name}>`;return Cc(dc(b,(k,m,p,n)=>
{for(var v=0,q=0;q<a;++q)h[q]=e[q].readValueFromPointer(n+v),v+=e[q].argPackAdvance;k=1===c?Ec(m,h):m.apply(k,h);return yc(f,p,k)}))},ga:(a,b)=>{a=S(a);b=S(b);return ac(a[b])},Ca:a=>{9<a&&(R[a+1]+=1)},fb:a=>ac(Bc(a)),Ya:a=>{var b=S(a);Pb(b);$b(a)},D:(a,b)=>{a=xc(a,"_emval_take_value");a=a.readValueFromPointer(b);return ac(a)},Na:function(a,b,c){(a=g[a].nh.Dh)&&a.beginPixelLocalStorageWEBGL(d.HEAPU32.subarray(c,c+b))},cb:function(a,b,c){var e=d.images;e||(e=new Map,d.images=e);var f=new Image;e.set(a,
f);b=d.HEAP8.subarray(b,b+c);c=new Uint8Array(c);c.set(b);f.src=URL.createObjectURL(new Blob([c],{type:"image/png"}));f.onload=function(){d._setWebImage(a,f.width,f.height)}},bb:function(a){var b=d.images;b&&b.get(a)&&b.delete(a)},k:(a,b,c)=>{Fc.length=0;for(var e;e=z[b++];){var f=105!=e;f&=112!=e;c+=f&&c%8?4:0;Fc.push(112==e?D[c>>2]:106==e?wa[c>>3]:105==e?C[c>>2]:ya[c>>3]);c+=f?8:4}return Pa[a](...Fc)},kb:()=>performance.now(),ib:a=>{var b=z.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=
c;c*=2){var e=b*(1+.2/c);e=Math.min(e,a+100663296);var f=Math;e=Math.max(a,e);a:{f=(f.min.call(f,2147483648,e+(65536-e%65536)%65536)-sa.buffer.byteLength+65535)/65536;try{sa.grow(f);za();var h=1;break a}catch(k){}h=void 0}if(h)return!0}return!1},G:(a,b)=>{a=g[a];b=b?F(z,b):"";b.startsWith("GL_")&&(b=b.substr(3));"WEBGL_draw_instanced_base_vertex_base_instance"==b&&Gc(X);"WEBGL_multi_draw_instanced_base_vertex_base_instance"==b&&Hc(X);"WEBGL_multi_draw"==b&&(X.Ni=X.getExtension("WEBGL_multi_draw"));
return!!a.nh.getExtension(b)},g:()=>Uc?Uc.handle:0,oa:a=>ja(a)?0:-5,Pa:function(a){a=g[a].nh;a.si=a.getExtension("WEBGL_provoking_vertex");return!!a.si},Qa:function(a){a=g[a].nh;a.Dh=a.getExtension("WEBGL_shader_pixel_local_storage");return!(!a.Dh||!a.Dh.isCoherent())},Ma:function(a,b,c){(a=g[a].nh.Dh)&&a.endPixelLocalStorageWEBGL(d.HEAPU32.subarray(c,c+b))},lb:(a,b)=>{var c=0;Xc().forEach((e,f)=>{var h=b+c;f=D[a+4*f>>2]=h;for(h=0;h<e.length;++h)y[f++]=e.charCodeAt(h);y[f]=0;c+=e.length+1});return 0},
mb:(a,b)=>{var c=Xc();D[a>>2]=c.length;var e=0;c.forEach(f=>e+=f.length+1);D[b>>2]=e;return 0},ra:function(a){try{var b=K(a);if(null===b.fd)throw new G(8);b.Rh&&(b.Rh=null);try{b.ih.close&&b.ih.close(b)}catch(c){throw c;}finally{qb[b.fd]=null}b.fd=null;return 0}catch(c){if("undefined"==typeof M||"ErrnoError"!==c.name)throw c;return c.yh}},nb:function(a,b,c,e){try{a:{var f=K(a);a=b;for(var h,k=b=0;k<c;k++){var m=D[a>>2],p=D[a+4>>2];a+=8;var n=f,v=h,q=y;if(0>p||0>v)throw new G(28);if(null===n.fd)throw new G(8);
if(1===(n.flags&2097155))throw new G(8);if(16384===(n.node.mode&61440))throw new G(31);if(!n.ih.read)throw new G(28);var t="undefined"!=typeof v;if(!t)v=n.position;else if(!n.seekable)throw new G(70);var l=n.ih.read(n,q,m,p,v);t||(n.position+=l);var u=l;if(0>u){var x=-1;break a}b+=u;if(u<p)break;"undefined"!=typeof h&&(h+=u)}x=b}D[e>>2]=x;return 0}catch(A){if("undefined"==typeof M||"ErrnoError"!==A.name)throw A;return A.yh}},jb:function(a,b,c,e){b=-9007199254740992>b||9007199254740992<b?NaN:Number(b);
try{if(isNaN(b))return 61;var f=K(a);Kb(f,b,c);wa[e>>3]=BigInt(f.position);f.Rh&&0===b&&0===c&&(f.Rh=null);return 0}catch(h){if("undefined"==typeof M||"ErrnoError"!==h.name)throw h;return h.yh}},ta:function(a,b,c,e){try{a:{var f=K(a);a=b;for(var h,k=b=0;k<c;k++){var m=D[a>>2],p=D[a+4>>2];a+=8;var n=f,v=m,q=p,t=h,l=y;if(0>q||0>t)throw new G(28);if(null===n.fd)throw new G(8);if(0===(n.flags&2097155))throw new G(8);if(16384===(n.node.mode&61440))throw new G(31);if(!n.ih.write)throw new G(28);n.seekable&&
n.flags&1024&&Kb(n,0,2);var u="undefined"!=typeof t;if(!u)t=n.position;else if(!n.seekable)throw new G(70);var x=n.ih.write(n,l,v,q,t,void 0);u||(n.position+=x);var A=x;if(0>A){var J=-1;break a}b+=A;"undefined"!=typeof h&&(h+=A)}J=b}D[e>>2]=J;return 0}catch(U){if("undefined"==typeof M||"ErrnoError"!==U.name)throw U;return U.yh}},Oa:function(a,b,c,e,f,h){(a=g[a].nh.Dh)&&a.framebufferPixelLocalClearValuefvWEBGL(b,[c,e,f,h])},O:function(a,b,c,e,f){(a=g[a].nh.Dh)&&a.framebufferTexturePixelLocalStorageWEBGL(b,
Nc[c],e,f)},j:a=>X.activeTexture(a),N:(a,b)=>{X.attachShader(W[a],Oc[b])},P:(a,b)=>{35051==a?X.hi=b:35052==a&&(X.Ph=b);X.bindBuffer(a,Kc[b])},L:(a,b,c,e,f)=>{X.bindBufferRange(a,b,Kc[c],e,f)},h:(a,b)=>{X.bindFramebuffer(a,Lc[b])},xa:(a,b)=>{X.bindRenderbuffer(a,Mc[b])},i:(a,b)=>{X.bindTexture(a,Nc[b])},Ra:a=>{X.bindVertexArray(Pc[a])},f:a=>X.blendEquation(a),W:(a,b)=>X.blendFunc(a,b),Ha:(a,b,c,e,f,h,k,m,p,n)=>X.blitFramebuffer(a,b,c,e,f,h,k,m,p,n),t:(a,b,c,e)=>{c&&b?X.bufferData(a,z,e,c,b):X.bufferData(a,
b,e)},ba:(a,b,c,e)=>{c&&X.bufferSubData(a,b,z,e,c)},Z:a=>X.clear(a),_:(a,b,c,e)=>X.clearColor(a,b,c,e),Va:a=>X.clearDepth(a),Ua:a=>X.clearStencil(a),ka:(a,b,c,e)=>{X.colorMask(!!a,!!b,!!c,!!e)},Ia:a=>{X.compileShader(Oc[a])},M:()=>{var a=ha(W),b=X.createProgram();b.name=a;b.kj=b.ij=b.jj=0;b.ci=1;W[a]=b;return a},Ka:a=>{var b=ha(Oc);Oc[b]=X.createShader(a);return b},Ta:a=>X.cullFace(a),x:(a,b)=>{for(var c=0;c<a;c++){var e=C[b+4*c>>2],f=Kc[e];f&&(X.deleteBuffer(f),f.name=0,Kc[e]=null,e==X.hi&&(X.hi=
0),e==X.Ph&&(X.Ph=0))}},tb:(a,b)=>{for(var c=0;c<a;++c){var e=C[b+4*c>>2],f=Lc[e];f&&(X.deleteFramebuffer(f),f.name=0,Lc[e]=null)}},ha:a=>{if(a){var b=W[a];b?(X.deleteProgram(b),b.name=0,W[a]=null):Y||=1281}},rb:(a,b)=>{for(var c=0;c<a;c++){var e=C[b+4*c>>2],f=Mc[e];f&&(X.deleteRenderbuffer(f),f.name=0,Mc[e]=null)}},fa:a=>{if(a){var b=Oc[a];b?(X.deleteShader(b),Oc[a]=null):Y||=1281}},w:(a,b)=>{for(var c=0;c<a;c++){var e=C[b+4*c>>2],f=Nc[e];f&&(X.deleteTexture(f),f.name=0,Nc[e]=null)}},v:(a,b)=>{for(var c=
0;c<a;c++){var e=C[b+4*c>>2];X.deleteVertexArray(Pc[e]);Pc[e]=null}},Wa:a=>X.depthFunc(a),ja:a=>{X.depthMask(!!a)},Xa:(a,b)=>X.depthRange(a,b),d:a=>X.disable(a),R:(a,b,c)=>{X.drawArrays(a,b,c)},Ea:(a,b,c,e)=>{X.drawArraysInstanced(a,b,c,e)},ya:(a,b)=>{for(var c=Yc[a],e=0;e<a;e++)c[e]=C[b+4*e>>2];X.drawBuffers(c)},Aa:(a,b,c,e)=>{X.drawElements(a,b,c,e)},$:(a,b,c,e,f)=>{X.drawElementsInstanced(a,b,c,e,f)},o:a=>X.enable(a),n:a=>{X.enableVertexAttribArray(a)},Da:()=>X.flush(),va:(a,b,c,e)=>{X.framebufferRenderbuffer(a,
b,c,Mc[e])},r:(a,b,c,e,f)=>{X.framebufferTexture2D(a,b,c,Nc[e],f)},Za:a=>X.frontFace(a),T:(a,b)=>{Tc(a,b,"createBuffer",Kc)},Fa:(a,b)=>{Tc(a,b,"createFramebuffer",Lc)},sb:(a,b)=>{Tc(a,b,"createRenderbuffer",Mc)},y:(a,b)=>{Tc(a,b,"createTexture",Nc)},Ga:(a,b)=>{Tc(a,b,"createVertexArray",Pc)},pa:a=>X.generateMipmap(a),Y:(a,b)=>$c(a,b),za:a=>{var b=Qc[a];if(!b){switch(a){case 7939:b=bd(Zc().join(" "));break;case 7936:case 7937:case 37445:case 37446:(b=X.getParameter(a))||(Y||=1280);b=b?bd(b):0;break;
case 7938:b=bd(`OpenGL ES 3.0 (${X.getParameter(7938)})`);break;case 35724:b=X.getParameter(35724);var c=b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==c&&(3==c[1].length&&(c[1]+="0"),b=`OpenGL ES GLSL ES ${c[1]} (${b})`);b=bd(b);break;default:Y||=1280}Qc[a]=b}return b},F:(a,b)=>X.getUniformBlockIndex(W[a],b?F(z,b):""),U:(a,b)=>{b=b?F(z,b):"";if(a=W[a]){var c=a,e=c.Eh,f=c.vi,h;if(!e)for(c.Eh=e={},c.ui={},h=0;h<X.getProgramParameter(c,35718);++h){var k=X.getActiveUniform(c,h);var m=
k.name;k=k.size;var p=cd(m);p=0<p?m.slice(0,p):m;var n=c.ci;c.ci+=k;f[p]=[k,n];for(m=0;m<k;++m)e[n]=m,c.ui[n++]=p}c=a.Eh;e=0;f=b;h=cd(b);0<h&&(e=parseInt(b.slice(h+1))>>>0,f=b.slice(0,h));if((f=a.vi[f])&&e<f[0]&&(e+=f[1],c[e]=c[e]||X.getUniformLocation(a,b)))return e}else Y||=1281;return-1},A:(a,b,c)=>{for(var e=Yc[b],f=0;f<b;f++)e[f]=C[c+4*f>>2];X.invalidateFramebuffer(a,e)},ea:a=>{a=W[a];X.linkProgram(a);a.Eh=0;a.vi={}},p:(a,b)=>{3317==a?Rc=b:3314==a&&(Sc=b);X.pixelStorei(a,b)},wa:(a,b,c,e,f)=>
X.renderbufferStorageMultisample(a,b,c,e,f),J:(a,b,c,e)=>X.scissor(a,b,c,e),Ja:(a,b,c,e)=>{for(var f="",h=0;h<b;++h){var k=(k=D[c+4*h>>2])?F(z,k,e?D[e+4*h>>2]:void 0):"";f+=k}X.shaderSource(Oc[a],f)},z:(a,b,c)=>X.stencilFunc(a,b,c),Ba:(a,b,c,e)=>X.stencilFuncSeparate(a,b,c,e),ia:a=>X.stencilMask(a),H:(a,b,c)=>X.stencilOp(a,b,c),S:(a,b,c,e)=>X.stencilOpSeparate(a,b,c,e),q:(a,b,c)=>X.texParameteri(a,b,c),u:(a,b,c,e,f)=>X.texStorage2D(a,b,c,e,f),C:(a,b,c,e,f,h,k,m,p)=>{if(X.Ph)X.texSubImage2D(a,b,c,
e,f,h,k,m,p);else if(p){var n=dd(m);X.texSubImage2D(a,b,c,e,f,h,k,m,n,p>>>31-Math.clz32(n.BYTES_PER_ELEMENT))}else{if(p){n=dd(m);var v=h*((Sc||f)*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[k-6402]||1)*n.BYTES_PER_ELEMENT+Rc-1&-Rc);p=n.subarray(p>>>31-Math.clz32(n.BYTES_PER_ELEMENT),p+v>>>31-Math.clz32(n.BYTES_PER_ELEMENT))}else p=null;X.texSubImage2D(a,b,c,e,f,h,k,m,p)}},da:(a,b)=>{var c=X,e=c.uniform1i;var f=X.Di;if(f){var h=f.Eh[a];"number"==typeof h&&(f.Eh[a]=h=X.getUniformLocation(f,
f.ui[a]+(0<h?`[${h}]`:"")));a=h}else Y||=1282,a=void 0;e.call(c,a,b)},E:(a,b,c)=>{a=W[a];X.uniformBlockBinding(a,b,c)},Sa:a=>{a=W[a];X.useProgram(a);X.Di=a},ca:(a,b)=>{X.vertexAttribDivisor(a,b)},aa:(a,b,c,e,f)=>{X.vertexAttribIPointer(a,b,c,e,f)},s:(a,b,c,e,f,h)=>{X.vertexAttribPointer(a,b,c,!!e,f,h)},K:(a,b,c,e)=>X.viewport(a,b,c,e),La:function(a,b){(a=g[a].nh.si)&&a.provokingVertexWEBGL(b)},gb:(a,b,c,e)=>hd(a,b,c,e),db:function(a,b){var c=d.images;c&&(b=c.get(b))&&(a=g[a].nh,a.texImage2D(a.TEXTURE_2D,
0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b))}},Z=function(){function a(c){Z=c.exports;sa=Z.vb;d.wasmMemory=sa;za();kc=Z.Fb;Ba.unshift(Z.wb);Da--;0==Da&&(null!==Ea&&(clearInterval(Ea),Ea=null),Fa&&(c=Fa,Fa=null,c()));return Z}var b={a:md};Da++;if(d.instantiateWasm)try{return d.instantiateWasm(b,a)}catch(c){w(`Module.instantiateWasm callback failed with error: ${c}`),ba(c)}Ia||=Ha("rive_native.wasm")?"rive_native.wasm":r+"rive_native.wasm";La(b,function(c){a(c.instance)}).catch(ba);return{}}();
d._initFactoryCallbacks=(a,b,c,e,f,h,k,m,p,n,v,q,t,l,u,x,A,J)=>(d._initFactoryCallbacks=Z.xb)(a,b,c,e,f,h,k,m,p,n,v,q,t,l,u,x,A,J);d._renderImageSetSize=(a,b,c)=>(d._renderImageSetSize=Z.yb)(a,b,c);d._makeFlutterRenderImage=()=>(d._makeFlutterRenderImage=Z.zb)();d._flutterRenderImageId=a=>(d._flutterRenderImageId=Z.Ab)(a);d._makeFlutterRenderer=()=>(d._makeFlutterRenderer=Z.Bb)();d._deleteFlutterRenderer=a=>(d._deleteFlutterRenderer=Z.Cb)(a);d._makeFlutterFactory=()=>(d._makeFlutterFactory=Z.Db)();
d._deleteFlutterFactory=a=>(d._deleteFlutterFactory=Z.Eb)(a);d._makeYogaStyle=()=>(d._makeYogaStyle=Z.Gb)();d._disposeYogaStyle=a=>(d._disposeYogaStyle=Z.Hb)(a);d._yogaStyleGetAlignContent=a=>(d._yogaStyleGetAlignContent=Z.Ib)(a);d._yogaStyleSetAlignContent=(a,b)=>(d._yogaStyleSetAlignContent=Z.Jb)(a,b);d._yogaStyleGetDirection=a=>(d._yogaStyleGetDirection=Z.Kb)(a);d._yogaStyleSetDirection=(a,b)=>(d._yogaStyleSetDirection=Z.Lb)(a,b);d._yogaStyleGetFlexDirection=a=>(d._yogaStyleGetFlexDirection=Z.Mb)(a);
d._yogaStyleSetFlexDirection=(a,b)=>(d._yogaStyleSetFlexDirection=Z.Nb)(a,b);d._yogaStyleGetJustifyContent=a=>(d._yogaStyleGetJustifyContent=Z.Ob)(a);d._yogaStyleSetJustifyContent=(a,b)=>(d._yogaStyleSetJustifyContent=Z.Pb)(a,b);d._yogaStyleGetAlignItems=a=>(d._yogaStyleGetAlignItems=Z.Qb)(a);d._yogaStyleSetAlignItems=(a,b)=>(d._yogaStyleSetAlignItems=Z.Rb)(a,b);d._yogaStyleGetAlignSelf=a=>(d._yogaStyleGetAlignSelf=Z.Sb)(a);d._yogaStyleSetAlignSelf=(a,b)=>(d._yogaStyleSetAlignSelf=Z.Tb)(a,b);
d._yogaStyleGetPositionType=a=>(d._yogaStyleGetPositionType=Z.Ub)(a);d._yogaStyleSetPositionType=(a,b)=>(d._yogaStyleSetPositionType=Z.Vb)(a,b);d._yogaStyleGetFlexWrap=a=>(d._yogaStyleGetFlexWrap=Z.Wb)(a);d._yogaStyleSetFlexWrap=(a,b)=>(d._yogaStyleSetFlexWrap=Z.Xb)(a,b);d._yogaStyleGetOverflow=a=>(d._yogaStyleGetOverflow=Z.Yb)(a);d._yogaStyleSetOverflow=(a,b)=>(d._yogaStyleSetOverflow=Z.Zb)(a,b);d._yogaStyleGetDisplay=a=>(d._yogaStyleGetDisplay=Z._b)(a);
d._yogaStyleSetDisplay=(a,b)=>(d._yogaStyleSetDisplay=Z.$b)(a,b);d._yogaStyleGetFlex=a=>(d._yogaStyleGetFlex=Z.ac)(a);d._yogaStyleSetFlex=(a,b)=>(d._yogaStyleSetFlex=Z.bc)(a,b);d._yogaStyleGetFlexGrow=a=>(d._yogaStyleGetFlexGrow=Z.cc)(a);d._yogaStyleSetFlexGrow=(a,b)=>(d._yogaStyleSetFlexGrow=Z.dc)(a,b);d._yogaStyleGetFlexShrink=a=>(d._yogaStyleGetFlexShrink=Z.ec)(a);d._yogaStyleSetFlexShrink=(a,b)=>(d._yogaStyleSetFlexShrink=Z.fc)(a,b);
d._yogaStyleSetFlexBasis=(a,b,c)=>(d._yogaStyleSetFlexBasis=Z.gc)(a,b,c);d._yogaStyleSetMargin=(a,b,c,e)=>(d._yogaStyleSetMargin=Z.hc)(a,b,c,e);d._yogaStyleSetPosition=(a,b,c,e)=>(d._yogaStyleSetPosition=Z.ic)(a,b,c,e);d._yogaStyleSetPadding=(a,b,c,e)=>(d._yogaStyleSetPadding=Z.jc)(a,b,c,e);d._yogaStyleSetBorder=(a,b,c,e)=>(d._yogaStyleSetBorder=Z.kc)(a,b,c,e);d._yogaStyleSetGap=(a,b,c,e)=>(d._yogaStyleSetGap=Z.lc)(a,b,c,e);
d._yogaStyleSetDimension=(a,b,c,e)=>(d._yogaStyleSetDimension=Z.mc)(a,b,c,e);d._yogaStyleSetMinDimension=(a,b,c,e)=>(d._yogaStyleSetMinDimension=Z.nc)(a,b,c,e);d._yogaStyleSetMaxDimension=(a,b,c,e)=>(d._yogaStyleSetMaxDimension=Z.oc)(a,b,c,e);d._makeYogaNode=()=>(d._makeYogaNode=Z.pc)();d._yogaNodeCheckAndResetUpdated=a=>(d._yogaNodeCheckAndResetUpdated=Z.qc)(a);d._yogaNodeSetStyle=(a,b)=>(d._yogaNodeSetStyle=Z.rc)(a,b);d._yogaNodeGetType=a=>(d._yogaNodeGetType=Z.sc)(a);
d._yogaNodeSetType=(a,b)=>(d._yogaNodeSetType=Z.tc)(a,b);d._yogaNodeInsertChild=(a,b,c)=>(d._yogaNodeInsertChild=Z.uc)(a,b,c);d._yogaNodeRemoveChild=(a,b)=>(d._yogaNodeRemoveChild=Z.vc)(a,b);d._yogaNodeClearChildren=a=>(d._yogaNodeClearChildren=Z.wc)(a);d._yogaNodeCalculateLayout=(a,b,c,e)=>(d._yogaNodeCalculateLayout=Z.xc)(a,b,c,e);d._yogaNodeMarkDirty=a=>(d._yogaNodeMarkDirty=Z.yc)(a);d._yogaNodeSetMeasureFunc=(a,b)=>(d._yogaNodeSetMeasureFunc=Z.zc)(a,b);
d._yogaNodeClearMeasureFunc=a=>(d._yogaNodeClearMeasureFunc=Z.Ac)(a);d._yogaNodeSetBaselineFunc=(a,b)=>(d._yogaNodeSetBaselineFunc=Z.Bc)(a,b);d._yogaNodeClearBaselineFunc=a=>(d._yogaNodeClearBaselineFunc=Z.Cc)(a);d._disposeYogaNode=a=>(d._disposeYogaNode=Z.Dc)(a);d._appendCommands=(a,b)=>(d._appendCommands=Z.Ec)(a,b);d._dashPathEffectPath=(a,b,c)=>(d._dashPathEffectPath=Z.Fc)(a,b,c);d._makeDashPathEffect=()=>(d._makeDashPathEffect=Z.Gc)();d._deleteDashPathEffect=a=>(d._deleteDashPathEffect=Z.Hc)(a);
d._dashPathEffectGetPathLength=a=>(d._dashPathEffectGetPathLength=Z.Ic)(a);d._dashPathEffectSetOffset=(a,b)=>(d._dashPathEffectSetOffset=Z.Jc)(a,b);d._dashPathEffectGetOffset=a=>(d._dashPathEffectGetOffset=Z.Kc)(a);d._dashPathEffectSetOffsetIsPercentage=(a,b)=>(d._dashPathEffectSetOffsetIsPercentage=Z.Lc)(a,b);d._dashPathEffectGetOffsetIsPercentage=a=>(d._dashPathEffectGetOffsetIsPercentage=Z.Mc)(a);d._dashPathClearDashes=a=>(d._dashPathClearDashes=Z.Nc)(a);
d._dashPathAddDash=(a,b,c)=>(d._dashPathAddDash=Z.Oc)(a,b,c);d._dashPathInvalidate=a=>(d._dashPathInvalidate=Z.Pc)(a);d._makeTrimPathEffect=()=>(d._makeTrimPathEffect=Z.Qc)();d._trimPathEffectSetStart=(a,b)=>(d._trimPathEffectSetStart=Z.Rc)(a,b);d._trimPathEffectGetStart=a=>(d._trimPathEffectGetStart=Z.Sc)(a);d._trimPathEffectSetEnd=(a,b)=>(d._trimPathEffectSetEnd=Z.Tc)(a,b);d._trimPathEffectGetEnd=a=>(d._trimPathEffectGetEnd=Z.Uc)(a);
d._trimPathEffectSetOffset=(a,b)=>(d._trimPathEffectSetOffset=Z.Vc)(a,b);d._trimPathEffectGetOffset=a=>(d._trimPathEffectGetOffset=Z.Wc)(a);d._trimPathEffectSetMode=(a,b)=>(d._trimPathEffectSetMode=Z.Xc)(a,b);d._trimPathEffectGetMode=a=>(d._trimPathEffectGetMode=Z.Yc)(a);d._trimPathEffectInvalidate=a=>(d._trimPathEffectInvalidate=Z.Zc)(a);d._deleteTrimPathEffect=a=>(d._deleteTrimPathEffect=Z._c)(a);d._trimPathEffectPath=(a,b,c)=>(d._trimPathEffectPath=Z.$c)(a,b,c);
d._deleteRenderPath=a=>(d._deleteRenderPath=Z.ad)(a);d._makeRenderPath=a=>(d._makeRenderPath=Z.bd)(a);d._appendRenderPath=a=>(d._appendRenderPath=Z.cd)(a);d._makeEmptyRenderPath=a=>(d._makeEmptyRenderPath=Z.dd)(a);d._rewindRenderPath=a=>(d._rewindRenderPath=Z.ed)(a);d._renderPathSetFillRule=(a,b)=>(d._renderPathSetFillRule=Z.fd)(a,b);d._drawPath=(a,b,c)=>(d._drawPath=Z.gd)(a,b,c);d._drawImage=(a,b,c,e)=>(d._drawImage=Z.hd)(a,b,c,e);
d._drawImageMesh=(a,b,c,e,f,h,k,m,p)=>(d._drawImageMesh=Z.id)(a,b,c,e,f,h,k,m,p);d._clipPath=(a,b)=>(d._clipPath=Z.jd)(a,b);d._save=a=>(d._save=Z.kd)(a);d._restore=a=>(d._restore=Z.ld)(a);d._transform=(a,b,c,e,f,h,k)=>(d._transform=Z.md)(a,b,c,e,f,h,k);d._addRawPath=(a,b)=>(d._addRawPath=Z.nd)(a,b);d._addRawPathWithTransform=(a,b,c,e,f,h,k,m)=>(d._addRawPathWithTransform=Z.od)(a,b,c,e,f,h,k,m);
d._addRawPathWithTransformClockwise=(a,b,c,e,f,h,k,m)=>(d._addRawPathWithTransformClockwise=Z.pd)(a,b,c,e,f,h,k,m);d._addPath=(a,b,c,e,f,h,k,m)=>(d._addPath=Z.qd)(a,b,c,e,f,h,k,m);d._addPathBackwards=(a,b,c,e,f,h,k,m,p)=>(d._addPathBackwards=Z.rd)(a,b,c,e,f,h,k,m,p);d._makeRenderPaint=a=>(d._makeRenderPaint=Z.sd)(a);d._deleteRenderPaint=a=>(d._deleteRenderPaint=Z.td)(a);d._updatePaint=(a,b,c,e,f)=>(d._updatePaint=Z.ud)(a,b,c,e,f);d._decodeRenderImage=(a,b,c)=>(d._decodeRenderImage=Z.vd)(a,b,c);
d._renderImageWidth=a=>(d._renderImageWidth=Z.wd)(a);d._renderImageHeight=a=>(d._renderImageHeight=Z.xd)(a);d._deleteRenderImage=a=>(d._deleteRenderImage=Z.yd)(a);d._makeVertexRenderBuffer=(a,b)=>(d._makeVertexRenderBuffer=Z.zd)(a,b);d._makeIndexRenderBuffer=(a,b)=>(d._makeIndexRenderBuffer=Z.Ad)(a,b);d._mapRenderBuffer=a=>(d._mapRenderBuffer=Z.Bd)(a);d._unmapRenderBuffer=a=>(d._unmapRenderBuffer=Z.Cd)(a);d._deleteRenderBuffer=a=>(d._deleteRenderBuffer=Z.Dd)(a);
d._renderPathHitTest=(a,b,c,e,f,h,k,m,p,n,v)=>(d._renderPathHitTest=Z.Ed)(a,b,c,e,f,h,k,m,p,n,v);d._renderPathIsClockwise=(a,b,c)=>(d._renderPathIsClockwise=Z.Fd)(a,b,c);d._makePathMeasure=(a,b,c)=>(d._makePathMeasure=Z.Gd)(a,b,c);d._deletePathMeasure=a=>(d._deletePathMeasure=Z.Hd)(a);d._pathMeasureAtDistance=(a,b,c)=>(d._pathMeasureAtDistance=Z.Id)(a,b,c);d._pathMeasureAtPercentage=(a,b,c)=>(d._pathMeasureAtPercentage=Z.Jd)(a,b,c);d._pathMeasureLength=a=>(d._pathMeasureLength=Z.Kd)(a);
d._renderPathPreciseBounds=(a,b,c,e,f,h,k,m,p)=>(d._renderPathPreciseBounds=Z.Ld)(a,b,c,e,f,h,k,m,p);d._renderPathBounds=(a,b,c,e,f,h,k,m,p)=>(d._renderPathBounds=Z.Md)(a,b,c,e,f,h,k,m,p);d._renderPathPreciseLength=(a,b,c,e,f,h,k,m)=>(d._renderPathPreciseLength=Z.Nd)(a,b,c,e,f,h,k,m);d._renderPathColinearCheck=(a,b,c)=>(d._renderPathColinearCheck=Z.Od)(a,b,c);d._renderPathIsClosed=(a,b)=>(d._renderPathIsClosed=Z.Pd)(a,b);d._renderPathHasBounds=(a,b)=>(d._renderPathHasBounds=Z.Qd)(a,b);
d._renderPathCopyBuffers=(a,b,c,e,f,h)=>(d._renderPathCopyBuffers=Z.Rd)(a,b,c,e,f,h);d._allocateBuffer=a=>(d._allocateBuffer=Z.Sd)(a);d._deleteBuffer=a=>(d._deleteBuffer=Z.Td)(a);var ad=a=>(ad=Z.Ud)(a),V=a=>(V=Z.Vd)(a);d._freeString=a=>(d._freeString=Z.Wd)(a);d._loadRiveFile=(a,b,c,e)=>(d._loadRiveFile=Z.Xd)(a,b,c,e);d._deleteRiveFile=a=>(d._deleteRiveFile=Z.Yd)(a);d._riveFileArtboardDefault=(a,b)=>(d._riveFileArtboardDefault=Z.Zd)(a,b);
d._riveFileArtboardNamed=(a,b,c)=>(d._riveFileArtboardNamed=Z._d)(a,b,c);d._riveFileArtboardByIndex=(a,b,c)=>(d._riveFileArtboardByIndex=Z.$d)(a,b,c);d._riveFileAssetId=a=>(d._riveFileAssetId=Z.ae)(a);d._riveFileAssetCoreType=a=>(d._riveFileAssetCoreType=Z.be)(a);d._riveFileAssetSetRenderImage=(a,b)=>(d._riveFileAssetSetRenderImage=Z.ce)(a,b);d._riveFileAssetSetAudioSource=(a,b)=>(d._riveFileAssetSetAudioSource=Z.de)(a,b);d._riveFileAssetSetFont=(a,b)=>(d._riveFileAssetSetFont=Z.ee)(a,b);
d._riveDataContext=(a,b,c)=>(d._riveDataContext=Z.fe)(a,b,c);d._deleteDataContext=a=>(d._deleteDataContext=Z.ge)(a);d._riveDataContextViewModelInstance=a=>(d._riveDataContextViewModelInstance=Z.he)(a);d._artboardDataContextFromInstance=(a,b,c)=>(d._artboardDataContextFromInstance=Z.ie)(a,b,c);d._artboardDataContext=a=>(d._artboardDataContext=Z.je)(a);d._artboardInternalDataContext=(a,b)=>(d._artboardInternalDataContext=Z.ke)(a,b);d._artboardClearDataContext=a=>(d._artboardClearDataContext=Z.le)(a);
d._stateMachineDataContextFromInstance=(a,b)=>(d._stateMachineDataContextFromInstance=Z.me)(a,b);d._stateMachineDataContext=(a,b)=>(d._stateMachineDataContext=Z.ne)(a,b);d._viewModelInstancePropertyValue=(a,b)=>(d._viewModelInstancePropertyValue=Z.oe)(a,b);d._deleteViewModelInstance=a=>(d._deleteViewModelInstance=Z.pe)(a);d._deleteViewModelInstanceValue=a=>(d._deleteViewModelInstanceValue=Z.qe)(a);d._artboardTotalDataBinds=a=>(d._artboardTotalDataBinds=Z.re)(a);
d._artboardCollectDataBinds=a=>(d._artboardCollectDataBinds=Z.se)(a);d._artboardDataBindAt=(a,b)=>(d._artboardDataBindAt=Z.te)(a,b);d._viewModelInstanceReferenceViewModel=a=>(d._viewModelInstanceReferenceViewModel=Z.ue)(a);d._setViewModelInstanceNumberValue=(a,b)=>(d._setViewModelInstanceNumberValue=Z.ve)(a,b);d._setViewModelInstanceTriggerValue=(a,b)=>(d._setViewModelInstanceTriggerValue=Z.we)(a,b);d._setViewModelInstanceEnumValue=(a,b)=>(d._setViewModelInstanceEnumValue=Z.xe)(a,b);
d._setViewModelInstanceBooleanValue=(a,b)=>(d._setViewModelInstanceBooleanValue=Z.ye)(a,b);d._setViewModelInstanceColorValue=(a,b)=>(d._setViewModelInstanceColorValue=Z.ze)(a,b);d._setViewModelInstanceStringValue=(a,b)=>(d._setViewModelInstanceStringValue=Z.Ae)(a,b);d._riveDataBindDirt=a=>(d._riveDataBindDirt=Z.Be)(a);d._riveDataBindSetDirt=(a,b)=>(d._riveDataBindSetDirt=Z.Ce)(a,b);d._riveDataBindFlags=a=>(d._riveDataBindFlags=Z.De)(a);d._riveDataBindUpdate=(a,b)=>(d._riveDataBindUpdate=Z.Ee)(a,b);
d._riveDataBindUpdateSourceBinding=a=>(d._riveDataBindUpdateSourceBinding=Z.Fe)(a);d._artboardDraw=(a,b)=>(d._artboardDraw=Z.Ge)(a,b);d._artboardAnimationCount=a=>(d._artboardAnimationCount=Z.He)(a);d._artboardStateMachineCount=a=>(d._artboardStateMachineCount=Z.Ie)(a);d._artboardAnimationAt=(a,b)=>(d._artboardAnimationAt=Z.Je)(a,b);d._artboardComponentNamed=(a,b)=>(d._artboardComponentNamed=Z.Ke)(a,b);d._deleteComponent=a=>(d._deleteComponent=Z.Le)(a);
d._componentGetWorldTransform=(a,b)=>(d._componentGetWorldTransform=Z.Me)(a,b);d._componentSetWorldTransform=(a,b,c,e,f,h,k)=>(d._componentSetWorldTransform=Z.Ne)(a,b,c,e,f,h,k);d._artboardGetRenderTransform=(a,b)=>(d._artboardGetRenderTransform=Z.Oe)(a,b);d._artboardSetRenderTransform=(a,b,c,e,f,h,k)=>(d._artboardSetRenderTransform=Z.Pe)(a,b,c,e,f,h,k);d._componentGetScaleX=a=>(d._componentGetScaleX=Z.Qe)(a);d._componentSetScaleX=(a,b)=>(d._componentSetScaleX=Z.Re)(a,b);
d._componentGetX=a=>(d._componentGetX=Z.Se)(a);d._componentSetX=(a,b)=>(d._componentSetX=Z.Te)(a,b);d._componentGetY=a=>(d._componentGetY=Z.Ue)(a);d._componentSetY=(a,b)=>(d._componentSetY=Z.Ve)(a,b);d._componentGetScaleY=a=>(d._componentGetScaleY=Z.We)(a);d._componentSetScaleY=(a,b)=>(d._componentSetScaleY=Z.Xe)(a,b);d._componentGetRotation=a=>(d._componentGetRotation=Z.Ye)(a);d._componentSetRotation=(a,b)=>(d._componentSetRotation=Z.Ze)(a,b);
d._componentSetLocalFromWorld=(a,b,c,e,f,h,k)=>(d._componentSetLocalFromWorld=Z._e)(a,b,c,e,f,h,k);d._artboardAnimationNamed=(a,b)=>(d._artboardAnimationNamed=Z.$e)(a,b);d._artboardSetFrameOrigin=(a,b)=>(d._artboardSetFrameOrigin=Z.af)(a,b);d._artboardGetFrameOrigin=a=>(d._artboardGetFrameOrigin=Z.bf)(a);d._animationInstanceAdvance=(a,b,c)=>(d._animationInstanceAdvance=Z.cf)(a,b,c);d._animationInstanceApply=(a,b)=>(d._animationInstanceApply=Z.df)(a,b);
d._animationInstanceAdvanceAndApply=(a,b)=>(d._animationInstanceAdvanceAndApply=Z.ef)(a,b);d._animationInstanceGetLocalSeconds=(a,b)=>(d._animationInstanceGetLocalSeconds=Z.ff)(a,b);d._animationInstanceGetDuration=(a,b)=>(d._animationInstanceGetDuration=Z.gf)(a,b);d._animationInstanceGetTime=a=>(d._animationInstanceGetTime=Z.hf)(a);d._animationInstanceSetTime=(a,b)=>(d._animationInstanceSetTime=Z.jf)(a,b);d._animationInstanceDelete=a=>(d._animationInstanceDelete=Z.kf)(a);
d._artboardAddToRenderPath=(a,b,c,e,f,h,k,m)=>(d._artboardAddToRenderPath=Z.lf)(a,b,c,e,f,h,k,m);d._artboardBounds=(a,b)=>(d._artboardBounds=Z.mf)(a,b);d._artboardLayoutBounds=(a,b)=>(d._artboardLayoutBounds=Z.nf)(a,b);d._artboardTakeLayoutNode=a=>(d._artboardTakeLayoutNode=Z.of)(a);d._artboardSyncStyleChanges=a=>(d._artboardSyncStyleChanges=Z.pf)(a);d._artboardWidthOverride=(a,b,c,e)=>(d._artboardWidthOverride=Z.qf)(a,b,c,e);
d._artboardHeightOverride=(a,b,c,e)=>(d._artboardHeightOverride=Z.rf)(a,b,c,e);d._artboardWidthIntrinsicallySizeOverride=(a,b)=>(d._artboardWidthIntrinsicallySizeOverride=Z.sf)(a,b);d._artboardHeightIntrinsicallySizeOverride=(a,b)=>(d._artboardHeightIntrinsicallySizeOverride=Z.tf)(a,b);d._updateLayoutBounds=(a,b)=>(d._updateLayoutBounds=Z.uf)(a,b);d._cascadeLayoutStyle=(a,b)=>(d._cascadeLayoutStyle=Z.vf)(a,b);d._riveArtboardAdvance=(a,b,c)=>(d._riveArtboardAdvance=Z.wf)(a,b,c);
d._riveArtboardGetOpacity=a=>(d._riveArtboardGetOpacity=Z.xf)(a);d._riveArtboardUpdatePass=a=>(d._riveArtboardUpdatePass=Z.yf)(a);d._riveArtboardHasComponentDirt=a=>(d._riveArtboardHasComponentDirt=Z.zf)(a);d._riveArtboardSetOpacity=(a,b)=>(d._riveArtboardSetOpacity=Z.Af)(a,b);d._riveArtboardGetWidth=a=>(d._riveArtboardGetWidth=Z.Bf)(a);d._riveArtboardSetWidth=(a,b)=>(d._riveArtboardSetWidth=Z.Cf)(a,b);d._riveArtboardGetHeight=a=>(d._riveArtboardGetHeight=Z.Df)(a);
d._riveArtboardSetHeight=(a,b)=>(d._riveArtboardSetHeight=Z.Ef)(a,b);d._riveArtboardGetOriginalWidth=a=>(d._riveArtboardGetOriginalWidth=Z.Ff)(a);d._riveArtboardGetOriginalHeight=a=>(d._riveArtboardGetOriginalHeight=Z.Gf)(a);d._riveArtboardStateMachineDefault=a=>(d._riveArtboardStateMachineDefault=Z.Hf)(a);d._riveArtboardStateMachineNamed=(a,b)=>(d._riveArtboardStateMachineNamed=Z.If)(a,b);d._riveArtboardStateMachineAt=(a,b)=>(d._riveArtboardStateMachineAt=Z.Jf)(a,b);
d._artboardSetText=(a,b,c,e)=>(d._artboardSetText=Z.Kf)(a,b,c,e);d._artboardGetText=(a,b,c)=>(d._artboardGetText=Z.Lf)(a,b,c);d._stateMachineInstanceAdvance=(a,b,c)=>(d._stateMachineInstanceAdvance=Z.Mf)(a,b,c);d._stateMachineInstanceAdvanceAndApply=(a,b)=>(d._stateMachineInstanceAdvanceAndApply=Z.Nf)(a,b);d._stateMachineInstanceHitTest=(a,b,c)=>(d._stateMachineInstanceHitTest=Z.Of)(a,b,c);d._stateMachineInstancePointerDown=(a,b,c)=>(d._stateMachineInstancePointerDown=Z.Pf)(a,b,c);
d._stateMachineInstancePointerExit=(a,b,c)=>(d._stateMachineInstancePointerExit=Z.Qf)(a,b,c);d._stateMachineInstancePointerMove=(a,b,c)=>(d._stateMachineInstancePointerMove=Z.Rf)(a,b,c);d._stateMachineInstancePointerUp=(a,b,c)=>(d._stateMachineInstancePointerUp=Z.Sf)(a,b,c);d._stateMachineGetReportedEventCount=a=>(d._stateMachineGetReportedEventCount=Z.Tf)(a);d._getEventCustomProperty=(a,b,c)=>(d._getEventCustomProperty=Z.Uf)(a,b,c);d._deleteEvent=a=>(d._deleteEvent=Z.Vf)(a);
d._deleteCustomProperty=a=>(d._deleteCustomProperty=Z.Wf)(a);d._getEventName=a=>(d._getEventName=Z.Xf)(a);d._getOpenUrlEventTarget=a=>(d._getOpenUrlEventTarget=Z.Yf)(a);d._getOpenUrlEventUrl=a=>(d._getOpenUrlEventUrl=Z.Zf)(a);d._getEventCustomPropertyCount=a=>(d._getEventCustomPropertyCount=Z._f)(a);d._getCustomPropertyNumber=a=>(d._getCustomPropertyNumber=Z.$f)(a);d._getCustomPropertyBoolean=a=>(d._getCustomPropertyBoolean=Z.ag)(a);d._getCustomPropertyString=a=>(d._getCustomPropertyString=Z.bg)(a);
d._setArtboardLayoutChangedCallback=(a,b)=>(d._setArtboardLayoutChangedCallback=Z.cg)(a,b);d._setArtboardLayoutDirtyCallback=(a,b)=>(d._setArtboardLayoutDirtyCallback=Z.dg)(a,b);d._setArtboardEventCallback=(a,b)=>(d._setArtboardEventCallback=Z.eg)(a,b);d._setStateMachineInputChangedCallback=(a,b)=>(d._setStateMachineInputChangedCallback=Z.fg)(a,b);d._setViewModelInstanceNumberCallback=a=>(d._setViewModelInstanceNumberCallback=Z.gg)(a);
d._setViewModelInstanceBooleanCallback=a=>(d._setViewModelInstanceBooleanCallback=Z.hg)(a);d._setViewModelInstanceColorCallback=a=>(d._setViewModelInstanceColorCallback=Z.ig)(a);d._setViewModelInstanceStringCallback=a=>(d._setViewModelInstanceStringCallback=Z.jg)(a);d._setViewModelInstanceTriggerCallback=a=>(d._setViewModelInstanceTriggerCallback=Z.kg)(a);d._setViewModelInstanceTriggerAdvanced=a=>(d._setViewModelInstanceTriggerAdvanced=Z.lg)(a);
d._setViewModelInstanceEnumCallback=a=>(d._setViewModelInstanceEnumCallback=Z.mg)(a);d._deleteArtboardInstance=a=>(d._deleteArtboardInstance=Z.ng)(a);d._deleteStateMachineInstance=a=>(d._deleteStateMachineInstance=Z.og)(a);d._stateMachineInput=(a,b)=>(d._stateMachineInput=Z.pg)(a,b);d._stateMachineInputName=a=>(d._stateMachineInputName=Z.qg)(a);d._stateMachineInputType=a=>(d._stateMachineInputType=Z.rg)(a);d._stateMachineInstanceNumber=(a,b,c)=>(d._stateMachineInstanceNumber=Z.sg)(a,b,c);
d._stateMachineInstanceDone=a=>(d._stateMachineInstanceDone=Z.tg)(a);d._getNumberValue=a=>(d._getNumberValue=Z.ug)(a);d._setNumberValue=(a,b)=>(d._setNumberValue=Z.vg)(a,b);d._stateMachineInstanceBoolean=(a,b,c)=>(d._stateMachineInstanceBoolean=Z.wg)(a,b,c);d._getBooleanValue=a=>(d._getBooleanValue=Z.xg)(a);d._setBooleanValue=(a,b)=>(d._setBooleanValue=Z.yg)(a,b);d._stateMachineInstanceTrigger=(a,b,c)=>(d._stateMachineInstanceTrigger=Z.zg)(a,b,c);d._fireTrigger=a=>(d._fireTrigger=Z.Ag)(a);
d._deleteInput=a=>(d._deleteInput=Z.Bg)(a);d._initBindingCallbacks=(a,b,c,e,f,h)=>(d._initBindingCallbacks=Z.Cg)(a,b,c,e,f,h);d._stateMachineInstanceBatchAdvance=(a,b,c)=>(d._stateMachineInstanceBatchAdvance=Z.Dg)(a,b,c);d._stateMachineInstanceBatchAdvanceAndRender=(a,b,c,e)=>(d._stateMachineInstanceBatchAdvanceAndRender=Z.Eg)(a,b,c,e);d._wasmStateMachineInstanceBatchAdvance=(a,b,c)=>(d._wasmStateMachineInstanceBatchAdvance=Z.Fg)(a,b,c);
d._wasmStateMachineInstanceBatchAdvanceAndRender=(a,b,c,e)=>(d._wasmStateMachineInstanceBatchAdvanceAndRender=Z.Gg)(a,b,c,e);d._makeRawText=a=>(d._makeRawText=Z.Hg)(a);d._deleteRawText=a=>(d._deleteRawText=Z.Ig)(a);d._rawTextAppend=(a,b,c,e,f,h,k)=>(d._rawTextAppend=Z.Jg)(a,b,c,e,f,h,k);d._rawTextClear=a=>(d._rawTextClear=Z.Kg)(a);d._rawTextIsEmpty=a=>(d._rawTextIsEmpty=Z.Lg)(a);d._rawTextGetSizing=a=>(d._rawTextGetSizing=Z.Mg)(a);d._rawTextSetSizing=(a,b)=>(d._rawTextSetSizing=Z.Ng)(a,b);
d._rawTextGetOverflow=a=>(d._rawTextGetOverflow=Z.Og)(a);d._rawTextSetOverflow=(a,b)=>(d._rawTextSetOverflow=Z.Pg)(a,b);d._rawTextGetAlign=a=>(d._rawTextGetAlign=Z.Qg)(a);d._rawTextSetAlign=(a,b)=>(d._rawTextSetAlign=Z.Rg)(a,b);d._rawTextGetMaxWidth=a=>(d._rawTextGetMaxWidth=Z.Sg)(a);d._rawTextSetMaxWidth=(a,b)=>(d._rawTextSetMaxWidth=Z.Tg)(a,b);d._rawTextGetMaxHeight=a=>(d._rawTextGetMaxHeight=Z.Ug)(a);d._rawTextSetMaxHeight=(a,b)=>(d._rawTextSetMaxHeight=Z.Vg)(a,b);
d._rawTextGetParagraphSpacing=a=>(d._rawTextGetParagraphSpacing=Z.Wg)(a);d._rawTextSetParagraphSpacing=(a,b)=>(d._rawTextSetParagraphSpacing=Z.Xg)(a,b);d._rawTextBounds=(a,b)=>(d._rawTextBounds=Z.Yg)(a,b);d._rawTextRender=(a,b,c)=>(d._rawTextRender=Z.Zg)(a,b,c);d._setWebImage=(a,b,c)=>(d._setWebImage=Z._g)(a,b,c);var mc=a=>(mc=Z.$g)(a),Ma=d._ma_device__on_notification_unlocked=a=>(Ma=d._ma_device__on_notification_unlocked=Z.ah)(a);d._ma_malloc_emscripten=(a,b)=>(d._ma_malloc_emscripten=Z.bh)(a,b);
d._ma_free_emscripten=(a,b)=>(d._ma_free_emscripten=Z.ch)(a,b);var Na=d._ma_device_process_pcm_frames_capture__webaudio=(a,b,c)=>(Na=d._ma_device_process_pcm_frames_capture__webaudio=Z.dh)(a,b,c),Oa=d._ma_device_process_pcm_frames_playback__webaudio=(a,b,c)=>(Oa=d._ma_device_process_pcm_frames_playback__webaudio=Z.eh)(a,b,c);d.wasmMemory=sa;var nd;Fa=function od(){nd||pd();nd||(Fa=od)};
function pd(){if(!(0<Da)){for(;0<Aa.length;)Aa.shift()(d);if(!(0<Da||nd||(nd=!0,d.calledRun=!0,ta))){d.noFSInit||Lb||(Lb=!0,d.stdin=d.stdin,d.stdout=d.stdout,d.stderr=d.stderr,d.stdin?Mb("stdin",d.stdin):Hb("/dev/tty","/dev/stdin"),d.stdout?Mb("stdout",null,d.stdout):Hb("/dev/tty","/dev/stdout"),d.stderr?Mb("stderr",null,d.stderr):Hb("/dev/tty1","/dev/stderr"),Ib("/dev/stdin",0),Ib("/dev/stdout",1),Ib("/dev/stderr",1));for(tb=!1;0<Ba.length;)Ba.shift()(d);aa(d);if(d.onRuntimeInitialized)d.onRuntimeInitialized();
for(;0<Ca.length;)Ca.shift()(d)}}}pd();moduleRtn=ca;


  return moduleRtn;
}
);
})();
if (typeof exports === 'object' && typeof module === 'object')
  module.exports = RiveNative;
else if (typeof define === 'function' && define['amd'])
  define([], () => RiveNative);
