jessibuca-pro-mp4-recorder-decoder.js 95.5 KB
!function(r){"function"==typeof define&&define.amd?define(r):r()}(function(){"use strict";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function t(r,e){return r(e={exports:{}},e.exports),e.exports}var n=Object.freeze({__proto__:null,commonjsGlobal:r,commonjsRequire:function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")},unwrapExports:e,createCommonjsModule:t,getCjsExportFromNamespace:function(r){return r&&r.default||r}}),o=u;!function(r){for(var e=u,t=r();;)try{if(111896===parseInt(e(137))/1+-parseInt(e(129))/2+-parseInt(e(131))/3+parseInt(e(134))/4*(-parseInt(e(136))/5)+-parseInt(e(135))/6+parseInt(e(126))/7+-parseInt(e(133))/8*(-parseInt(e(132))/9))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(i);var a=n[o(118)](function(r){var e=o;function t(r,e){for(var t=u,n=0;n<e[t(124)];n++){var o=e[n];o[t(121)]=o[t(121)]||!1,o[t(119)]=!0,t(138)in o&&(o[t(127)]=!0),Object[t(128)](r,o[t(120)],o)}}r[e(122)]=function(r,e,n){var o=u;return e&&t(r.prototype,e),n&&t(r,n),Object.defineProperty(r,o(123),{writable:!1}),r},r[e(122)][e(125)]=!0,r[e(122)][e(139)]=r[e(122)]});function i(){var r=["prototype","length","__esModule","1303834RusOxW","writable","defineProperty","112358pkSWPu","unwrapExports","268671IIEyrs","997047QlEVHm","16mnUpUd","30168lWcVHW","1308324JdAjuL","15wBWwZy","90484rOWoWs","value","default","createCommonjsModule","configurable","key","enumerable","exports"];return(i=function(){return r})()}var s=n[o(130)](a);function u(r,e){var t=i();return(u=function(r,e){return t[r-=118]})(r,e)}function c(r,e){var t=d();return(c=function(r,e){return t[r-=315]})(r,e)}var f=c;!function(r){for(var e=c,t=r();;)try{if(496172===-parseInt(e(330))/1*(-parseInt(e(322))/2)+parseInt(e(315))/3*(parseInt(e(316))/4)+-parseInt(e(328))/5*(parseInt(e(323))/6)+parseInt(e(326))/7+parseInt(e(327))/8+parseInt(e(319))/9*(-parseInt(e(320))/10)+parseInt(e(321))/11*(parseInt(e(325))/12))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(d);var l=e(n[f(329)](function(r){var e=f;r[e(317)]=function(r,e){if(!(r instanceof e))throw new TypeError(c(331))},r[e(317)][e(324)]=!0,r[e(317)][e(318)]=r[e(317)]}));function d(){var r=["createCommonjsModule","16855LEKMoV","Cannot call a class as a function","3IjLoxT","1508492hoUQVB","exports","default","198bcakph","369690ZUbwRN","11vbDqit","28eklQLV","42kdXgJs","__esModule","12172476wMRrzs","1381520WSsgmY","1221000SHITIu","477115stQxrL"];return(d=function(){return r})()}var p=y;function h(){var r=["5228151adzNLp","iterator","1218645bQTDqS","exports","default","243173MCVbJt","16203060gHpbNk","function","prototype","10hQPzsk","createCommonjsModule","symbol","1pUXfWw","24TUURyM","16926041AWTHrz","291932fulHkV","2486480QoDleD","156wLdAxU","__esModule"];return(h=function(){return r})()}!function(r){for(var e=y,t=r();;)try{if(934078===-parseInt(e(104))/1*(parseInt(e(107))/2)+parseInt(e(111))/3+parseInt(e(105))/4*(parseInt(e(113))/5)+parseInt(e(109))/6*(parseInt(e(116))/7)+parseInt(e(108))/8+-parseInt(e(117))/9+-parseInt(e(101))/10*(parseInt(e(106))/11))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(h);var m=n[p(102)](function(r){var e=p;function t(e){var n=y;return r[n(114)]=t=n(118)==typeof Symbol&&n(103)==typeof Symbol[n(112)]?function(r){return typeof r}:function(r){var e=n;return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol[e(100)]?e(103):typeof r},r[n(114)][n(110)]=!0,r[n(114)].default=r[n(114)],t(e)}r[e(114)]=t,r[e(114)].__esModule=!0,r[e(114)][e(115)]=r.exports}),v=e(m);function y(r,e){var t=h();return(y=function(r,e){return t[r-=100]})(r,e)}var g=b;!function(r){for(var e=b,t=r();;)try{if(619747===parseInt(e(454))/1*(parseInt(e(447))/2)+-parseInt(e(448))/3+-parseInt(e(444))/4*(-parseInt(e(446))/5)+parseInt(e(453))/6*(parseInt(e(450))/7)+-parseInt(e(443))/8*(-parseInt(e(449))/9)+-parseInt(e(456))/10+parseInt(e(442))/11)break;t.push(t.shift())}catch(r){t.push(t.shift())}}(E);var w=n[g(451)](function(r){var e=g;r[e(452)]=function(r){if(void 0===r)throw new ReferenceError(b(445));return r},r[e(452)].__esModule=!0,r[e(452)][e(457)]=r[e(452)]});function b(r,e){var t=E();return(b=function(r,e){return t[r-=442]})(r,e)}function E(){var r=["515GwqLdC","762452uQtQww","3700449TmCEZh","7389387jhWqNy","21uxBWWE","createCommonjsModule","exports","285000tjgMeL","1mEBVRo","unwrapExports","4288720swtFku","default","1533312ezFKaH","8tHhkcv","30988IMAwfw","this hasn't been initialised - super() hasn't been called"];return(E=function(){return r})()}n[g(455)](w);var _=T;function k(){var r=["__esModule","11029086Xllaph","996eekxna","1148530RFHdxH","createCommonjsModule","8JxsYLe","default","1881930mQGifk","28973hkgkFc","exports","113614pFlTFH","function","1727976BtcJZz","Derived constructors may only return object or undefined","unwrapExports","90mLCgWJ","241407GqYgRk"];return(k=function(){return r})()}!function(r){for(var e=T,t=r();;)try{if(983668===-parseInt(e(486))/1+parseInt(e(480))/2*(parseInt(e(485))/3)+-parseInt(e(482))/4+parseInt(e(477))/5+-parseInt(e(489))/6*(-parseInt(e(478))/7)+parseInt(e(475))/8*(-parseInt(e(488))/9)+parseInt(e(473))/10)break;t.push(t.shift())}catch(r){t.push(t.shift())}}(k);var I=n[_(474)](function(r){var e=_,t=m.default;r[e(479)]=function(r,e){var n=T;if(e&&("object"===t(e)||typeof e===n(481)))return e;if(void 0!==e)throw new TypeError(n(483));return w(r)},r[e(479)][e(487)]=!0,r.exports[e(476)]=r[e(479)]}),P=n[_(484)](I);function T(r,e){var t=k();return(T=function(r,e){return t[r-=473]})(r,e)}var C=S;function S(r,e){var t=M();return(S=function(r,e){return t[r-=277]})(r,e)}!function(r){for(var e=S,t=r();;)try{if(241394===parseInt(e(289))/1*(-parseInt(e(285))/2)+parseInt(e(286))/3+parseInt(e(280))/4+parseInt(e(287))/5+parseInt(e(282))/6*(-parseInt(e(281))/7)+parseInt(e(288))/8*(parseInt(e(291))/9)+-parseInt(e(292))/10*(parseInt(e(293))/11))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(M);var F=n[C(283)](function(r){var e=C;function t(e){var n=S;return r[n(277)]=t=Object[n(279)]?Object[n(294)].bind():function(r){var e=n;return r.__proto__||Object[e(294)](r)},r.exports.__esModule=!0,r[n(277)].default=r.exports,t(e)}r[e(277)]=t,r.exports[e(290)]=!0,r[e(277)][e(278)]=r.exports}),A=n[C(284)](F);function M(){var r=["1875715admMSv","2240ptaAko","3VVKVVL","__esModule","2826lKTMut","20630PdcITb","869jjaeqO","getPrototypeOf","exports","default","setPrototypeOf","657948McZOYk","483OyyWOh","24834QSNXMh","createCommonjsModule","unwrapExports","258134dWlrCB","1348839aloPfx"];return(M=function(){return r})()}var R=x;function D(){var r=["createCommonjsModule","__esModule","561358YyHbTu","1268748lXvzCw","196810ZIhGbf","exports","4543533cfwvsj","28uhPzAC","default","3582648kwvAxs","bind","20823lFYRxE","164xDKlhS","275284Xtodvf","unwrapExports","setPrototypeOf"];return(D=function(){return r})()}!function(r){for(var e=x,t=r();;)try{if(334266===parseInt(e(493))/1+parseInt(e(492))/2*(parseInt(e(491))/3)+-parseInt(e(487))/4*(parseInt(e(484))/5)+-parseInt(e(483))/6+-parseInt(e(482))/7+-parseInt(e(489))/8+parseInt(e(486))/9)break;t.push(t.shift())}catch(r){t.push(t.shift())}}(D);var j=n[R(496)](function(r){var e=R;function t(e,n){var o=x;return r[o(485)]=t=Object.setPrototypeOf?Object[o(495)][o(490)]():function(r,e){return r.__proto__=e,r},r.exports[o(497)]=!0,r.exports[o(488)]=r[o(485)],t(e,n)}r[e(485)]=t,r[e(485)][e(497)]=!0,r[e(485)][e(488)]=r.exports});function x(r,e){var t=D();return(x=function(r,e){return t[r-=482]})(r,e)}n[R(494)](j);var O=U;function $(){var r=["exports","371749bHDGgT","16xgsUFH","__esModule","create","unwrapExports","30druPNt","325730pLTvVx","219016kTDiyT","Super expression must either be null or a function","2830RJuESY","834735zXzwaS","63hBcSWb","prototype","createCommonjsModule","defineProperty","575128QDmsnS","function","55396NGZJcR","default","345795lPIIMD"];return($=function(){return r})()}function U(r,e){var t=$();return(U=function(r,e){return t[r-=105]})(r,e)}!function(r){for(var e=U,t=r();;)try{if(183117===-parseInt(e(108))/1+-parseInt(e(117))/2+-parseInt(e(112))/3+parseInt(e(124))/4*(-parseInt(e(121))/5)+parseInt(e(107))/6*(-parseInt(e(123))/7)+-parseInt(e(109))/8*(-parseInt(e(113))/9)+parseInt(e(111))/10*(parseInt(e(119))/11))break;t.push(t.shift())}catch(r){t.push(t.shift())}}($);var L=n[O(115)](function(r){var e=O;r[e(122)]=function(r,e){var t=U;if(typeof e!==t(118)&&null!==e)throw new TypeError(t(110));r[t(114)]=Object[t(105)](e&&e[t(114)],{constructor:{value:r,writable:!0,configurable:!0}}),Object[t(116)](r,t(114),{writable:!1}),e&&j(r,e)},r.exports[e(125)]=!0,r.exports[e(120)]=r[e(122)]}),W=n[O(106)](L),z=H;!function(r){for(var e=H,t=r();;)try{if(167923===parseInt(e(304))/1+parseInt(e(300))/2+-parseInt(e(303))/3*(-parseInt(e(310))/4)+-parseInt(e(301))/5+-parseInt(e(297))/6+parseInt(e(308))/7+-parseInt(e(305))/8*(parseInt(e(312))/9))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(B);var N=n[z(295)](function(r){var e=z;r.exports=function(r){var e=H;return-1!==Function[e(307)][e(296)](r)[e(299)](e(309))},r[e(302)][e(311)]=!0,r[e(302)][e(306)]=r.exports});function H(r,e){var t=B();return(H=function(r,e){return t[r-=295]})(r,e)}function B(){var r=["194724YOnFYE","__esModule","65637MxPSpT","createCommonjsModule","call","1528668RmAiVl","unwrapExports","indexOf","163798AokCGS","886280gQknhU","exports","6WyGloU","225030pPoHfL","56ZetgAD","default","toString","1727019CUDnHp","[native code]"];return(B=function(){return r})()}function V(r,e){var t=X();return(V=function(r,e){return t[r-=193]})(r,e)}n[z(298)](N);var G=V;!function(r){for(var e=V,t=r();;)try{if(831926===-parseInt(e(205))/1+-parseInt(e(195))/2*(parseInt(e(197))/3)+-parseInt(e(214))/4*(-parseInt(e(211))/5)+parseInt(e(198))/6*(parseInt(e(200))/7)+-parseInt(e(210))/8*(-parseInt(e(193))/9)+-parseInt(e(208))/10*(parseInt(e(213))/11)+-parseInt(e(209))/12*(-parseInt(e(201))/13))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(X);var q=n[G(204)](function(r){var e=G;r.exports=function(){var r=V;if(typeof Reflect===r(206)||!Reflect.construct)return!1;if(Reflect[r(194)][r(202)])return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype[r(203)][r(199)](Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}},r.exports.__esModule=!0,r[e(196)][e(212)]=r[e(196)]});function X(){var r=["valueOf","createCommonjsModule","1560126mlBkuT","undefined","unwrapExports","7510eCJbKz","10134408HBGGlp","54344HySEJI","6915895frENJU","default","9515fGjibM","4fQbmxU","1116KJmUnw","construct","1295266HwVNMm","exports","6iWbIZo","72yuXfAP","call","739018KfaXPY","13UWBdGd","sham"];return(X=function(){return r})()}n[G(207)](q);var Y=J;function J(r,e){var t=Q();return(J=function(r,e){return t[r-=252]})(r,e)}function Q(){var r=["apply","6503130OplvxQ","bind","exports","67iGypab","1147048vouBfi","1512738nmoIhy","default","1645518mNNyLH","1852140BnHwkZ","10QyUZcp","1200cXsclQ","2201944ZqGbuI","construct","__esModule","prototype","unwrapExports","5fnEtUO"];return(Q=function(){return r})()}!function(r){for(var e=J,t=r();;)try{if(263259===-parseInt(e(252))/1*(parseInt(e(259))/2)+-parseInt(e(254))/3+parseInt(e(253))/4+parseInt(e(265))/5*(parseInt(e(257))/6)+-parseInt(e(256))/7+-parseInt(e(260))/8+-parseInt(e(267))/9*(-parseInt(e(258))/10))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(Q);var K=t(function(r){var e=J;function t(e,n,o){var a=J;return q()?(r[a(269)]=t=Reflect[a(261)][a(268)](),r.exports[a(262)]=!0,r[a(269)].default=r[a(269)]):(r.exports=t=function(r,e,t){var n=a,o=[null];o.push[n(266)](o,e);var i=new(Function[n(268)][n(266)](r,o));return t&&j(i,t[n(263)]),i},r.exports[a(262)]=!0,r[a(269)][a(255)]=r[a(269)]),t.apply(null,arguments)}r.exports=t,r[e(269)].__esModule=!0,r[e(269)][e(255)]=r[e(269)]});n[Y(264)](K);var Z=rr;function rr(r,e){var t=er();return(rr=function(r,e){return t[r-=481]})(r,e)}function er(){var r=["18355616SBGjhp","createCommonjsModule","__esModule","3524395zeVGTn","1062iFooDo","2160360EHqeYB","2551912ghcWGy","constructor","unwrapExports","prototype","function","default","Super expression must either be null or a function","exports","869374VtXAMW","31495HOjqWK","2382524iXPxBk","get"];return(er=function(){return r})()}!function(r){for(var e=rr,t=r();;)try{if(773845===-parseInt(e(485))/1+parseInt(e(495))/2+-parseInt(e(494))/3+-parseInt(e(487))/4+parseInt(e(486))/5*(-parseInt(e(493))/6)+parseInt(e(492))/7+parseInt(e(489))/8)break;t.push(t.shift())}catch(r){t.push(t.shift())}}(er);var tr=n[Z(490)](function(r){var e=Z;function t(e){var n=rr,o=typeof Map===n(481)?new Map:void 0;return r[n(484)]=t=function(r){var e=n;if(null===r||!N(r))return r;if("function"!=typeof r)throw new TypeError(e(483));if(void 0!==o){if(o.has(r))return o[e(488)](r);o.set(r,t)}function t(){var t=e;return K(r,arguments,F(this)[t(496)])}return t.prototype=Object.create(r[e(498)],{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),j(t,r)},r[n(484)][n(491)]=!0,r.exports[n(482)]=r[n(484)],t(e)}r[e(484)]=t,r.exports[e(491)]=!0,r[e(484)].default=r[e(484)]}),nr=n[Z(497)](tr),or=sr;!function(r){for(var e=sr,t=r();;)try{if(762153===-parseInt(e(457))/1+parseInt(e(467))/2+-parseInt(e(461))/3+-parseInt(e(465))/4+parseInt(e(462))/5*(-parseInt(e(466))/6)+-parseInt(e(460))/7*(parseInt(e(458))/8)+-parseInt(e(468))/9*(-parseInt(e(455))/10))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(ur);var ar=n[or(456)](function(r){var e=or;function t(r,e,t,n,o,a,i){var s=sr;try{var u=r[a](i),c=u[s(452)]}catch(r){return void t(r)}u[s(453)]?e(c):Promise.resolve(c).then(n,o)}r.exports=function(r){return function(){var e=this,n=arguments;return new Promise(function(o,a){var i=r.apply(e,n);function s(r){t(i,o,a,s,u,"next",r)}function u(r){t(i,o,a,s,u,"throw",r)}s(void 0)})}},r[e(459)][e(463)]=!0,r[e(459)][e(464)]=r[e(459)]}),ir=n[or(454)](ar);function sr(r,e){var t=ur();return(sr=function(r,e){return t[r-=452]})(r,e)}function ur(){var r=["5SlmZJi","__esModule","default","4792076Fzvwkk","8673498caiMqL","2749700BYnFLd","27LPFGFi","value","done","unwrapExports","16301070PfGlRv","createCommonjsModule","873710VRrTsJ","9668896gJJxYH","exports","7wGHnuR","2331282ZOjMhD"];return(ur=function(){return r})()}function cr(){var r,e,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",o=t.toStringTag||"@@toStringTag";function a(t,n,o,a){var u=n&&n.prototype instanceof s?n:s,c=Object.create(u.prototype);return fr(c,"_invoke",function(t,n,o){var a,s,u,c=0,f=o||[],l=!1,d={p:0,n:0,v:r,a:p,f:p.bind(r,4),d:function(e,t){return a=e,s=0,u=r,d.n=t,i}};function p(t,n){for(s=t,u=n,e=0;!l&&c&&!o&&e<f.length;e++){var o,a=f[e],p=d.p,h=a[2];t>3?(o=h===n)&&(u=a[(s=a[4])?5:(s=3,3)],a[4]=a[5]=r):a[0]<=p&&((o=t<2&&p<a[1])?(s=0,d.v=n,d.n=a[1]):p<h&&(o=t<3||a[0]>n||n>h)&&(a[4]=t,a[5]=n,d.n=h,s=0))}if(o||t>1)return i;throw l=!0,n}return function(o,f,h){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&p(f,h),s=f,u=h;(e=s<2?r:u)||!l;){a||(s?s<3?(s>1&&(d.n=-1),p(s,u)):d.n=u:d.v=u);try{if(c=2,a){if(s||(o="next"),e=a[o]){if(!(e=e.call(a,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=a.return)&&e.call(a),s<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),s=1);a=r}else if((e=(l=d.n<0)?u:t.call(n,d))!==i)break}catch(e){a=r,s=1,u=e}finally{c=1}}return{value:e,done:l}}}(t,o,a),!0),c}var i={};function s(){}function u(){}function c(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(fr(e={},n,function(){return this}),e),l=c.prototype=s.prototype=Object.create(f);function d(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,c):(r.__proto__=c,fr(r,o,"GeneratorFunction")),r.prototype=Object.create(l),r}return u.prototype=c,fr(l,"constructor",c),fr(c,"constructor",u),u.displayName="GeneratorFunction",fr(c,o,"GeneratorFunction"),fr(l),fr(l,o,"Generator"),fr(l,n,function(){return this}),fr(l,"toString",function(){return"[object Generator]"}),(cr=function(){return{w:a,m:d}})()}function fr(r,e,t,n){var o=Object.defineProperty;try{o({},"",{})}catch(r){o=0}fr=function(r,e,t,n){if(e)o?o(r,e,{value:t,enumerable:!n,configurable:!n,writable:!n}):r[e]=t;else{var a=function(e,t){fr(r,e,function(r){return this._invoke(e,t,r)})};a("next",0),a("throw",1),a("return",2)}},fr(r,e,t,n)}function lr(r,e,t){return e=A(e),P(r,dr()?Reflect.construct(e,t||[],A(r).constructor):e.apply(r,t))}function dr(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(dr=function(){return!!r})()}var pr,hr=(pr="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-mp4-recorder-decoder.js",document.baseURI).href,ir(cr().m(function r(){var e,t,n,o,a,i,u,c,f,d,p,h,m,y,g,w,b,E,_,k,I,P,T,C,S,F,A,M,R,D,j,x,O,$,U,L,z,N,H,B,V,G,q,X,Y,J,Q,K,Z,rr,er,tr,or,ar,ir,sr,ur,fr,dr,hr,mr,vr,yr,gr,wr,br,Er,_r,kr,Ir,Pr,Tr,Cr,Sr,Fr,Ar,Mr,Rr,Dr,jr,xr,Or,$r,Ur,Lr,Wr,zr,Nr,Hr,Br,Vr,Gr,qr,Xr,Yr,Jr,Qr,Kr,Zr,re,ee,te,ne,oe,ae,ie,se,ue,ce,fe,le,de,pe,he,me,ve,ye,ge,we,be,Ee,_e,ke,Ie,Pe,Te,Ce,Se,Fe,Ae,Me,Re,De,je,xe,Oe,$e,Ue,Le,We,ze,Ne,He,Be,Ve,Ge,qe,Xe,Ye,Je,Qe,Ke,Ze,rt,et,tt,nt,ot,at,it,st,ut,ct,ft,lt,dt,pt,ht,mt,vt,yt,gt,wt,bt,Et,_t,kt,It,Pt,Tt,Ct,St,Ft,At,Mt,Rt,Dt,jt,xt,Ot,$t,Ut,Lt,Wt,zt,Nt,Ht,Bt,Vt,Gt,qt,Xt,Yt,Jt,Qt,Kt,Zt,rn,en,tn,nn,on,an,sn,un,cn,fn,ln,dn,pn,hn,mn,vn,yn,gn,wn,bn,En,_n,kn,In,Pn,Tn,Cn,Sn,Fn,An,Mn,Rn,Dn,jn,xn,On,$n,Un,Ln,Wn,zn,Nn=arguments;return cr().w(function(r){for(;;)switch(r.n){case 0:if(zn=function(){function r(){Wn||(Wn=!0,t.calledRun=!0,C||(H(),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),B()))}X>0||(N(),X>0||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),r()},1)):r()))},Sn=function(r,e,t,n){try{var o=Nr.getStreamFromFD(r),a=Cn(o,e,t);return j[n>>2]=a,0}catch(r){if(void 0===Wr||"ErrnoError"!==r.name)throw r;return r.errno}},Tn=function(r,e,t,n,o){var a=Zt(e,t);try{if(isNaN(a))return 61;var i=Nr.getStreamFromFD(r);return Wr.llseek(i,a,n),hr=[i.position>>>0,(dr=i.position,+Math.abs(dr)>=1?dr>0?+Math.floor(dr/4294967296)>>>0:~~+Math.ceil((dr-+(~~dr>>>0))/4294967296)>>>0:0)],D[o>>2]=hr[0],D[o+4>>2]=hr[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(r){if(void 0===Wr||"ErrnoError"!==r.name)throw r;return r.errno}},Pn=function(r,e,t,n){try{var o=Nr.getStreamFromFD(r),a=In(o,e,t);return j[n>>2]=a,0}catch(r){if(void 0===Wr||"ErrnoError"!==r.name)throw r;return r.errno}},kn=function(r,e){try{var t=Nr.getStreamFromFD(r),n=t.tty?2:Wr.isDir(t.mode)?3:Wr.isLink(t.mode)?7:4;return F[0|e]=n,M[e+2>>1]=0,hr=[0,(dr=0,+Math.abs(dr)>=1?dr>0?+Math.floor(dr/4294967296)>>>0:~~+Math.ceil((dr-+(~~dr>>>0))/4294967296)>>>0:0)],D[e+8>>2]=hr[0],D[e+12>>2]=hr[1],hr=[0,(dr=0,+Math.abs(dr)>=1?dr>0?+Math.floor(dr/4294967296)>>>0:~~+Math.ceil((dr-+(~~dr>>>0))/4294967296)>>>0:0)],D[e+16>>2]=hr[0],D[e+20>>2]=hr[1],0}catch(r){if(void 0===Wr||"ErrnoError"!==r.name)throw r;return r.errno}},_n=function(r){try{var e=Nr.getStreamFromFD(r);return Wr.close(e),0}catch(r){if(void 0===Wr||"ErrnoError"!==r.name)throw r;return r.errno}},an=function(r,e,t){var n=Zt(r,e),o=new Date(1e3*n);D[t>>2]=o.getSeconds(),D[t+4>>2]=o.getMinutes(),D[t+8>>2]=o.getHours(),D[t+12>>2]=o.getDate(),D[t+16>>2]=o.getMonth(),D[t+20>>2]=o.getFullYear()-1900,D[t+24>>2]=o.getDay();var a=0|on(o);D[t+28>>2]=a,D[t+36>>2]=-60*o.getTimezoneOffset();var i=new Date(o.getFullYear(),0,1),s=new Date(o.getFullYear(),6,1).getTimezoneOffset(),u=i.getTimezoneOffset(),c=0|(s!=u&&o.getTimezoneOffset()==Math.min(u,s));D[t+32>>2]=c},rn=function(r,e,t){var n=Zt(r,e),o=new Date(1e3*n);D[t>>2]=o.getUTCSeconds(),D[t+4>>2]=o.getUTCMinutes(),D[t+8>>2]=o.getUTCHours(),D[t+12>>2]=o.getUTCDate(),D[t+16>>2]=o.getUTCMonth(),D[t+20>>2]=o.getUTCFullYear()-1900,D[t+24>>2]=o.getUTCDay();var a=Date.UTC(o.getUTCFullYear(),0,1,0,0,0,0),i=(o.getTime()-a)/864e5|0;D[t+28>>2]=i},ht=function(r){return this.fromWireType(D[r>>2])},ut=function(){this.allocated=[void 0],this.freelist=[]},st=function(){Object.assign(ut.prototype,{get:function(r){return this.allocated[r]},has:function(r){return void 0!==this.allocated[r]},allocate:function(r){var e=this.freelist.pop()||this.allocated.length;return this.allocated[e]=r,e},free:function(r){this.allocated[r]=void 0,this.freelist.push(r)}})},nt=function(r,e,t,n,o,a){var i=e.length;i<2&&Zr("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&null!==t,u=!1,c=1;c<e.length;++c)if(null!==e[c]&&void 0===e[c].destructorFunction){u=!0;break}var f="void"!==e[0].name,l="",d="";for(c=0;c<i-2;++c)l+=(0!==c?", ":"")+"arg"+c,d+=(0!==c?", ":"")+"arg"+c+"Wired";var p="\n        return function (".concat(l,") {\n        if (arguments.length !== ").concat(i-2,") {\n          throwBindingError('function ").concat(r," called with ' + arguments.length + ' arguments, expected ").concat(i-2,"');\n        }");u&&(p+="var destructors = [];\n");var h=u?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[Zr,n,o,et,e[0],e[1]];for(s&&(p+="var thisWired = classParam.toWireType("+h+", this);\n"),c=0;c<i-2;++c)p+="var arg"+c+"Wired = argType"+c+".toWireType("+h+", arg"+c+"); // "+e[c+2].name+"\n",m.push("argType"+c),v.push(e[c+2]);if(s&&(d="thisWired"+(d.length>0?", ":"")+d),p+=(f||a?"var rv = ":"")+"invoker(fn"+(d.length>0?", ":"")+d+");\n",u)p+="runDestructors(destructors);\n";else for(c=s?1:2;c<e.length;++c){var y=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==e[c].destructorFunction&&(p+=y+"_dtor("+y+"); // "+e[c].name+"\n",m.push(y+"_dtor"),v.push(e[c].destructorFunction))}f&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",m.push(p);var g=tt(Function,m).apply(null,v);return Fe(r,g)},tt=function(r,e){if(!(r instanceof Function))throw new TypeError("new_ called with constructor type ".concat(v(r)," which is not a function"));var t=Fe(r.name||"unknownFunctionName",function(){});t.prototype=r.prototype;var n=new t,o=r.apply(n,e);return o instanceof Object?o:n},We=function(r,e,t,n,o,a,i,s,u,c,f){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Oe:n?(this.toWireType=xe,this.destructorFunction=null):(this.toWireType=$e,this.destructorFunction=null)},Ue=function(r){return this.fromWireType(j[r>>2])},$e=function(r,e){if(null===e)return this.isReference&&Zr("null is not a valid ".concat(this.name)),0;e.$$||Zr('Cannot pass "'.concat(vt(e),'" as a ').concat(this.name)),e.$$.ptr||Zr("Cannot pass deleted object as a pointer of type ".concat(this.name)),e.$$.ptrType.isConst&&Zr("Cannot convert argument of type ".concat(e.$$.ptrType.name," to parameter type ").concat(this.name));var t=e.$$.ptrType.registeredClass;return je(e.$$.ptr,t,this.registeredClass)},Oe=function(r,e){var t;if(null===e)return this.isReference&&Zr("null is not a valid ".concat(this.name)),this.isSmartPointer?(t=this.rawConstructor(),null!==r&&r.push(this.rawDestructor,t),t):0;e.$$||Zr('Cannot pass "'.concat(vt(e),'" as a ').concat(this.name)),e.$$.ptr||Zr("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&e.$$.ptrType.isConst&&Zr("Cannot convert argument of type ".concat(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name," to parameter type ").concat(this.name));var n=e.$$.ptrType.registeredClass;if(t=je(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&Zr("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:Zr("Cannot convert argument of type ".concat(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var o=e.clone();t=this.rawShare(t,pt.toHandle(function(){return o.delete()})),null!==r&&r.push(this.rawDestructor,t)}break;default:Zr("Unsupporting sharing policy")}return t},xe=function(r,e){if(null===e)return this.isReference&&Zr("null is not a valid ".concat(this.name)),0;e.$$||Zr('Cannot pass "'.concat(vt(e),'" as a ').concat(this.name)),e.$$.ptr||Zr("Cannot pass deleted object as a pointer of type ".concat(this.name));var t=e.$$.ptrType.registeredClass;return je(e.$$.ptr,t,this.registeredClass)},De=function(r,e,t,n,o,a,i,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]},Se=function(){},Pe=function(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=ke(this.registeredClass,e);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function o(){return this.isSmartPointer?Ie(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Ie(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var a,i=this.registeredClass.getActualType(e),s=pe[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var u=de(e,this.registeredClass,a.registeredClass);return null===u?o.call(this):this.isSmartPointer?Ie(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:r}):Ie(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})},oe=function(r,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return ne(r,e,t)},ne=function(r,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.name;if(r||Zr('type "'.concat(n,'" must have a positive integer typeid pointer')),Jr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;Zr("Cannot register type '".concat(n,"' twice"))}if(Jr[r]=e,delete Qr[r],Yr.hasOwnProperty(r)){var o=Yr[r];delete Yr[r],o.forEach(function(r){return r()})}},Br=function(r,e,t,n){Nr.varargs=n;try{e=Nr.getStr(e),e=Nr.calculateAt(r,e);var o=n?Nr.get():0;return Wr.open(e,t,o).fd}catch(r){if(void 0===Wr||"ErrnoError"!==r.name)throw r;return-r.errno}},Hr=function(r,e,t){Nr.varargs=t;try{var n=Nr.getStreamFromFD(r);switch(e){case 0:if((o=Nr.get())<0)return-28;for(;Wr.streams[o];)o++;return Wr.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=Nr.get();return n.flags|=o,0;case 5:return o=Nr.getp(),M[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return gr(28),-1}}catch(r){if(void 0===Wr||"ErrnoError"!==r.name)throw r;return-r.errno}},Sr=function(r,e,t){var n=t>0?t:Tr(r)+1,o=new Array(n),a=Cr(r,o,0,o.length);return e&&(o.length=a),o},vr=function(r){this.excPtr=r,this.ptr=r-24,this.set_type=function(r){j[this.ptr+4>>2]=r},this.get_type=function(){return j[this.ptr+4>>2]},this.set_destructor=function(r){j[this.ptr+8>>2]=r},this.get_destructor=function(){return j[this.ptr+8>>2]},this.set_caught=function(r){r=r?1:0,F[this.ptr+12|0]=r},this.get_caught=function(){return 0!=F[this.ptr+12|0]},this.set_rethrown=function(r){r=r?1:0,F[this.ptr+13|0]=r},this.get_rethrown=function(){return 0!=F[this.ptr+13|0]},this.init=function(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)},this.set_adjusted_ptr=function(r){j[this.ptr+16>>2]=r},this.get_adjusted_ptr=function(){return j[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ln(this.get_type()))return j[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}},fr=function(){var r={a:Rn};function e(r,e){return Dn=r.exports,T=Dn.S,$(),Be=Dn.W,G(Dn.T),Z("wasm-instantiate"),Dn}if(K("wasm-instantiate"),t.instantiateWasm)try{return t.instantiateWasm(r,e)}catch(r){I("Module.instantiateWasm callback failed with error: ".concat(r)),o(r)}return ur(P,or,r,function(r){e(r.instance)}).catch(o),{}},ur=function(r,e,t,n){return r||"function"!=typeof WebAssembly.instantiateStreaming||er(e)||tr(e)||f||"function"!=typeof fetch?sr(e,t,n):fetch(e,{credentials:"same-origin"}).then(function(r){return WebAssembly.instantiateStreaming(r,t).then(n,function(r){return I("wasm streaming compile failed: ".concat(r)),I("falling back to ArrayBuffer instantiation"),sr(e,t,n)})})},sr=function(r,e,t){return ir(r).then(function(r){return WebAssembly.instantiate(r,e)}).then(function(r){return r}).then(t,function(r){I("failed to asynchronously prepare wasm: ".concat(r)),rr(r)})},ir=function(r){if(!P&&(u||c)){if("function"==typeof fetch&&!tr(r))return fetch(r,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+r+"'";return e.arrayBuffer()}).catch(function(){return ar(r)});if(m)return new Promise(function(e,t){m(r,function(r){return e(new Uint8Array(r))},t)})}return Promise.resolve().then(function(){return ar(r)})},ar=function(r){if(r==or&&P)return new Uint8Array(P);if(y)return y(r);throw"both async and sync fetching of the wasm failed"},rr=function(r){t.onAbort&&t.onAbort(r),I(r="Aborted("+r+")"),C=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw o(e),e},Z=function(r){if(X--,t.monitorRunDependencies&&t.monitorRunDependencies(X),0==X&&(null!==Y&&(clearInterval(Y),Y=null),J)){var e=J;J=null,e()}},K=function(r){X++,t.monitorRunDependencies&&t.monitorRunDependencies(X)},Q=function(r){return r},q=function(r){z.unshift(r)},G=function(r){L.unshift(r)},V=function(r){U.unshift(r)},B=function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)q(t.postRun.shift());mr(z)},H=function(){t.noFSInit||Wr.init.initialized||Wr.init(),Wr.ignorePermissions=!1,Ar.init(),mr(L)},N=function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)V(t.preRun.shift());mr(U)},$=function(){var r=T.buffer;t.HEAP8=F=new Int8Array(r),t.HEAP16=M=new Int16Array(r),t.HEAPU8=A=new Uint8Array(r),t.HEAPU16=R=new Uint16Array(r),t.HEAP32=D=new Int32Array(r),t.HEAPU32=j=new Uint32Array(r),t.HEAPF32=x=new Float32Array(r),t.HEAPF64=O=new Float64Array(r)},S=function(r,e){r||rr(e)},p=function(r){return t.locateFile?t.locateFile(r,d):d+r},(t=e=Nn.length>0&&void 0!==Nn[0]?Nn[0]:{}).ready=new Promise(function(r,e){n=r,o=e}),(t=void 0!==t?t:{}).locateFile=function(r,e){return"decoder-pro-mp4-recorder-decoder.wasm"==r&&"undefined"!=typeof JESSIBUCA_PRO_MP4_RECORDER_WASM_URL&&""!=JESSIBUCA_PRO_MP4_RECORDER_WASM_URL?JESSIBUCA_PRO_MP4_RECORDER_WASM_URL:e+r},a=Object.assign({},t),i="./this.program",u="object"==("undefined"==typeof window?"undefined":v(window)),c="function"==typeof importScripts,f="object"==("undefined"==typeof process?"undefined":v(process))&&"object"==v(process.versions)&&"string"==typeof process.versions.node,d="",!f){r.n=2;break}return r.n=1,import("module");case 1:g=r.v,w=g.createRequire,b=w("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-mp4-recorder-decoder.js",document.baseURI).href),E=b("fs"),_=b("path"),d=c?_.dirname(d)+"/":b("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-mp4-recorder-decoder.js",document.baseURI).href)),h=function(r,e){return r=tr(r)?new URL(r):_.normalize(r),E.readFileSync(r,e?void 0:"utf8")},y=function(r){var e=h(r,!0);return e.buffer||(e=new Uint8Array(e)),e},m=function(r,e,t){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];r=tr(r)?new URL(r):_.normalize(r),E.readFile(r,n?void 0:"utf8",function(r,o){r?t(r):e(n?o.buffer:o)})},!t.thisProgram&&process.argv.length>1&&(i=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),t.inspect=function(){return"[Emscripten Module object]"},r.n=3;break;case 2:(u||c)&&(c?d=self.location.href:"undefined"!=typeof document&&document.currentScript&&(d=document.currentScript.src),pr&&(d=pr),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"",h=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.send(null),e.responseText},c&&(y=function(r){var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),m=function(r,e,t){var n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)});case 3:if(k=t.print||console.log.bind(console),I=t.printErr||console.error.bind(console),Object.assign(t,a),a=null,t.arguments&&t.arguments,t.thisProgram&&(i=t.thisProgram),t.quit&&t.quit,t.wasmBinary&&(P=t.wasmBinary),"object"!=("undefined"==typeof WebAssembly?"undefined":v(WebAssembly))&&rr("no native wasm support detected"),C=!1,U=[],L=[],z=[],X=0,Y=null,J=null,er=function(r){return r.startsWith("data:application/octet-stream;base64,")},tr=function(r){return r.startsWith("file://")},t.locateFile?er(or="jessibuca-pro-mp4-recorder-decoder.wasm")||(or=p(or)):or=new URL("jessibuca-pro-mp4-recorder-decoder.wasm","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-mp4-recorder-decoder.js",document.baseURI).href).href,mr=function(r){for(;r.length>0;)r.shift()(t)},t.noExitRuntime,yr=function(r,e,t){throw new vr(r).init(e,t),r},gr=function(r){return D[On()>>2]=r,r},wr={isAbs:function(r){return"/"===r.charAt(0)},splitPath:function(r){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1)},normalizeArray:function(r,e){for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:function(r){var e=wr.isAbs(r),t="/"===r.substr(-1);return(r=wr.normalizeArray(r.split("/").filter(function(r){return!!r}),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:function(r){var e=wr.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:function(r){if("/"===r)return"/";var e=(r=(r=wr.normalize(r)).replace(/\/$/,"")).lastIndexOf("/");return-1===e?r:r.substr(e+1)},join:function(){var r=Array.prototype.slice.call(arguments);return wr.normalize(r.join("/"))},join2:function(r,e){return wr.normalize(r+"/"+e)}},br=function(){if("object"==("undefined"==typeof crypto?"undefined":v(crypto))&&"function"==typeof crypto.getRandomValues)return function(r){return crypto.getRandomValues(r)};if(f)try{var r=b("crypto");if(r.randomFillSync)return function(e){return r.randomFillSync(e)};var e=r.randomBytes;return function(r){return r.set(e(r.byteLength)),r}}catch(r){}rr("initRandomDevice")},Er=function(r){return(Er=br())(r)},_r={resolve:function(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:Wr.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";r=n+"/"+r,e=wr.isAbs(n)}return(e?"/":"")+(r=wr.normalizeArray(r.split("/").filter(function(r){return!!r}),!e).join("/"))||"."},relative:function(r,e){function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=_r.resolve(r).substr(1),e=_r.resolve(e).substr(1);for(var n=t(r.split("/")),o=t(e.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},kr="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Ir=function(r,e,t){for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&kr)return kr.decode(r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Pr=[],Tr=function(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Cr=function(r,e,t,n){if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&r.charCodeAt(++i)),s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}return e[t]=0,t-o},Fr=function(){if(!Pr.length){var r=null;if(f){var e=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=E.readSync(n,e)}catch(r){if(!r.toString().includes("EOF"))throw r;t=0}r=t>0?e.slice(0,t).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(r=window.prompt("Input: "))&&(r+="\n"):"function"==typeof readline&&null!==(r=readline())&&(r+="\n");if(!r)return null;Pr=Sr(r,!0)}return Pr.shift()},Ar={ttys:[],init:function(){},shutdown:function(){},register:function(r,e){Ar.ttys[r]={input:[],output:[],ops:e},Wr.registerDevice(r,Ar.stream_ops)},stream_ops:{open:function(r){var e=Ar.ttys[r.node.rdev];if(!e)throw new Wr.ErrnoError(43);r.tty=e,r.seekable=!1},close:function(r){r.tty.ops.fsync(r.tty)},fsync:function(r){r.tty.ops.fsync(r.tty)},read:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new Wr.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new Wr.ErrnoError(29)}if(void 0===s&&0===a)throw new Wr.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.timestamp=Date.now()),a},write:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new Wr.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new Wr.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:function(r){return Fr()},put_char:function(r,e){null===e||10===e?(k(Ir(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},fsync:function(r){r.output&&r.output.length>0&&(k(Ir(r.output,0)),r.output=[])},ioctl_tcgets:function(r){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[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]}},ioctl_tcsets:function(r,e,t){return 0},ioctl_tiocgwinsz:function(r){return[24,80]}},default_tty1_ops:{put_char:function(r,e){null===e||10===e?(I(Ir(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},fsync:function(r){r.output&&r.output.length>0&&(I(Ir(r.output,0)),r.output=[])}}},Mr=function(r){rr()},Rr={ops_table:null,mount:function(r){return Rr.createNode(null,"/",16895,0)},createNode:function(r,e,t,n){if(Wr.isBlkdev(t)||Wr.isFIFO(t))throw new Wr.ErrnoError(63);Rr.ops_table||(Rr.ops_table={dir:{node:{getattr:Rr.node_ops.getattr,setattr:Rr.node_ops.setattr,lookup:Rr.node_ops.lookup,mknod:Rr.node_ops.mknod,rename:Rr.node_ops.rename,unlink:Rr.node_ops.unlink,rmdir:Rr.node_ops.rmdir,readdir:Rr.node_ops.readdir,symlink:Rr.node_ops.symlink},stream:{llseek:Rr.stream_ops.llseek}},file:{node:{getattr:Rr.node_ops.getattr,setattr:Rr.node_ops.setattr},stream:{llseek:Rr.stream_ops.llseek,read:Rr.stream_ops.read,write:Rr.stream_ops.write,allocate:Rr.stream_ops.allocate,mmap:Rr.stream_ops.mmap,msync:Rr.stream_ops.msync}},link:{node:{getattr:Rr.node_ops.getattr,setattr:Rr.node_ops.setattr,readlink:Rr.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Rr.node_ops.getattr,setattr:Rr.node_ops.setattr},stream:Wr.chrdev_stream_ops}});var o=Wr.createNode(r,e,t,n);return Wr.isDir(o.mode)?(o.node_ops=Rr.ops_table.dir.node,o.stream_ops=Rr.ops_table.dir.stream,o.contents={}):Wr.isFile(o.mode)?(o.node_ops=Rr.ops_table.file.node,o.stream_ops=Rr.ops_table.file.stream,o.usedBytes=0,o.contents=null):Wr.isLink(o.mode)?(o.node_ops=Rr.ops_table.link.node,o.stream_ops=Rr.ops_table.link.stream):Wr.isChrdev(o.mode)&&(o.node_ops=Rr.ops_table.chrdev.node,o.stream_ops=Rr.ops_table.chrdev.stream),o.timestamp=Date.now(),r&&(r.contents[e]=o,r.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(r){return r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0)},expandFileStorage:function(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage:function(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr:function(r){var e={};return e.dev=Wr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,Wr.isDir(r.mode)?e.size=4096:Wr.isFile(r.mode)?e.size=r.usedBytes:Wr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.timestamp),e.mtime=new Date(r.timestamp),e.ctime=new Date(r.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(r,e){void 0!==e.mode&&(r.mode=e.mode),void 0!==e.timestamp&&(r.timestamp=e.timestamp),void 0!==e.size&&Rr.resizeFileStorage(r,e.size)},lookup:function(r,e){throw Wr.genericErrors[44]},mknod:function(r,e,t,n){return Rr.createNode(r,e,t,n)},rename:function(r,e,t){if(Wr.isDir(r.mode)){var n;try{n=Wr.lookupNode(e,t)}catch(r){}if(n)for(var o in n.contents)throw new Wr.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=t,e.contents[t]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink:function(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir:function(r,e){var t=Wr.lookupNode(r,e);for(var n in t.contents)throw new Wr.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir:function(r){var e=[".",".."];for(var t in r.contents)r.contents.hasOwnProperty(t)&&e.push(t);return e},symlink:function(r,e,t){var n=Rr.createNode(r,e,41471,0);return n.link=t,n},readlink:function(r){if(!Wr.isLink(r.mode))throw new Wr.ErrnoError(28);return r.link}},stream_ops:{read:function(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write:function(r,e,t,n,o,a){if(e.buffer===F.buffer&&(a=!1),!n)return 0;var i=r.node;if(i.timestamp=Date.now(),e.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=e.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=e.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(e.subarray(t,t+n),o),n}if(Rr.expandFileStorage(i,o+n),i.contents.subarray&&e.subarray)i.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=e[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek:function(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&Wr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new Wr.ErrnoError(28);return n},allocate:function(r,e,t){Rr.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap:function(r,e,t,n,o){if(!Wr.isFile(r.node.mode))throw new Wr.ErrnoError(43);var a,i,s=r.node.contents;if(2&o||s.buffer!==F.buffer){if((t>0||t+e<s.length)&&(s=s.subarray?s.subarray(t,t+e):Array.prototype.slice.call(s,t,t+e)),i=!0,!(a=Mr()))throw new Wr.ErrnoError(48);F.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:function(r,e,t,n,o){return Rr.stream_ops.write(r,e,0,n,t,!1),0}}},Dr=function(r,e,t,n){var o=n?"":Q("al ".concat(r));m(r,function(t){S(t,'Loading data file "'.concat(r,'" failed (no arrayBuffer).')),e(new Uint8Array(t)),o&&Z(o)},function(e){if(!t)throw'Loading data file "'.concat(r,'" failed.');t()}),o&&K(o)},jr=function(r,e,t,n,o,a){Wr.createDataFile(r,e,t,n,o,a)},xr=t.preloadPlugins||[],Or=function(r,e,t,n){"undefined"!=typeof Browser&&Browser.init();var o=!1;return xr.forEach(function(a){o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)}),o},$r=function(r,e,t,n,o,a,i,s,u,c){var f=e?_r.resolve(wr.join2(r,e)):r,l=Q("cp ".concat(f));function d(t){function d(t){c&&c(),s||jr(r,e,t,n,o,u),a&&a(),Z(l)}Or(t,f,d,function(){i&&i(),Z(l)})||d(t)}K(l),"string"==typeof t?Dr(t,function(r){return d(r)},i):d(t)},Ur=function(r){var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===e)throw new Error("Unknown file open mode: ".concat(r));return e},Lr=function(r,e){var t=0;return r&&(t|=365),e&&(t|=146),t},Wr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(r=_r.resolve(r)))return{path:"",node:null};if((e=Object.assign({follow_mount:!0,recurse_count:0},e)).recurse_count>8)throw new Wr.ErrnoError(32);for(var t=r.split("/").filter(function(r){return!!r}),n=Wr.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&e.parent)break;if(n=Wr.lookupNode(n,t[a]),o=wr.join2(o,t[a]),Wr.isMountpoint(n)&&(!i||i&&e.follow_mount)&&(n=n.mounted.root),!i||e.follow)for(var s=0;Wr.isLink(n.mode);){var u=Wr.readlink(o);if(o=_r.resolve(wr.dirname(o),u),n=Wr.lookupPath(o,{recurse_count:e.recurse_count+1}).node,s++>40)throw new Wr.ErrnoError(32)}}return{path:o,node:n}},getPath:function(r){for(var e;;){if(Wr.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?"".concat(t,"/").concat(e):t+e:t}e=e?"".concat(r.name,"/").concat(e):r.name,r=r.parent}},hashName:function(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%Wr.nameTable.length},hashAddNode:function(r){var e=Wr.hashName(r.parent.id,r.name);r.name_next=Wr.nameTable[e],Wr.nameTable[e]=r},hashRemoveNode:function(r){var e=Wr.hashName(r.parent.id,r.name);if(Wr.nameTable[e]===r)Wr.nameTable[e]=r.name_next;else for(var t=Wr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode:function(r,e){var t=Wr.mayLookup(r);if(t)throw new Wr.ErrnoError(t,r);for(var n=Wr.hashName(r.id,e),o=Wr.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return Wr.lookup(r,e)},createNode:function(r,e,t,n){var o=new Wr.FSNode(r,e,t,n);return Wr.hashAddNode(o),o},destroyNode:function(r){Wr.hashRemoveNode(r)},isRoot:function(r){return r===r.parent},isMountpoint:function(r){return!!r.mounted},isFile:function(r){return 32768==(61440&r)},isDir:function(r){return 16384==(61440&r)},isLink:function(r){return 40960==(61440&r)},isChrdev:function(r){return 8192==(61440&r)},isBlkdev:function(r){return 24576==(61440&r)},isFIFO:function(r){return 4096==(61440&r)},isSocket:function(r){return!(49152&~r)},flagsToPermissionString:function(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:function(r,e){return Wr.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2},mayLookup:function(r){var e=Wr.nodePermissions(r,"x");return e||(r.node_ops.lookup?0:2)},mayCreate:function(r,e){try{return Wr.lookupNode(r,e),20}catch(r){}return Wr.nodePermissions(r,"wx")},mayDelete:function(r,e,t){var n;try{n=Wr.lookupNode(r,e)}catch(r){return r.errno}var o=Wr.nodePermissions(r,"wx");if(o)return o;if(t){if(!Wr.isDir(n.mode))return 54;if(Wr.isRoot(n)||Wr.getPath(n)===Wr.cwd())return 10}else if(Wr.isDir(n.mode))return 31;return 0},mayOpen:function(r,e){return r?Wr.isLink(r.mode)?32:Wr.isDir(r.mode)&&("r"!==Wr.flagsToPermissionString(e)||512&e)?31:Wr.nodePermissions(r,Wr.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var r=0;r<=Wr.MAX_OPEN_FDS;r++)if(!Wr.streams[r])return r;throw new Wr.ErrnoError(33)},getStreamChecked:function(r){var e=Wr.getStream(r);if(!e)throw new Wr.ErrnoError(8);return e},getStream:function(r){return Wr.streams[r]},createStream:function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return Wr.FSStream||(Wr.FSStream=function(){this.shared={}},Wr.FSStream.prototype={},Object.defineProperties(Wr.FSStream.prototype,{object:{get:function(){return this.node},set:function(r){this.node=r}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return!!(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(r){this.shared.flags=r}},position:{get:function(){return this.shared.position},set:function(r){this.shared.position=r}}})),r=Object.assign(new Wr.FSStream,r),-1==e&&(e=Wr.nextfd()),r.fd=e,Wr.streams[e]=r,r},closeStream:function(r){Wr.streams[r]=null},chrdev_stream_ops:{open:function(r){var e=Wr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek:function(){throw new Wr.ErrnoError(70)}},major:function(r){return r>>8},minor:function(r){return 255&r},makedev:function(r,e){return r<<8|e},registerDevice:function(r,e){Wr.devices[r]={stream_ops:e}},getDevice:function(r){return Wr.devices[r]},getMounts:function(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push.apply(t,n.mounts)}return e},syncfs:function(r,e){"function"==typeof r&&(e=r,r=!1),Wr.syncFSRequests++,Wr.syncFSRequests>1&&I("warning: ".concat(Wr.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var t=Wr.getMounts(Wr.root.mount),n=0;function o(r){return Wr.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach(function(e){if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)})},mount:function(r,e,t){var n,o="/"===t,a=!t;if(o&&Wr.root)throw new Wr.ErrnoError(10);if(!o&&!a){var i=Wr.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,Wr.isMountpoint(n))throw new Wr.ErrnoError(10);if(!Wr.isDir(n.mode))throw new Wr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?Wr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(r){var e=Wr.lookupPath(r,{follow_mount:!1});if(!Wr.isMountpoint(e.node))throw new Wr.ErrnoError(28);var t=e.node,n=t.mounted,o=Wr.getMounts(n);Object.keys(Wr.nameTable).forEach(function(r){for(var e=Wr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&Wr.destroyNode(e),e=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:function(r,e){return r.node_ops.lookup(r,e)},mknod:function(r,e,t){var n=Wr.lookupPath(r,{parent:!0}).node,o=wr.basename(r);if(!o||"."===o||".."===o)throw new Wr.ErrnoError(28);var a=Wr.mayCreate(n,o);if(a)throw new Wr.ErrnoError(a);if(!n.node_ops.mknod)throw new Wr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},create:function(r,e){return e=void 0!==e?e:438,e&=4095,e|=32768,Wr.mknod(r,e,0)},mkdir:function(r,e){return e=void 0!==e?e:511,e&=1023,e|=16384,Wr.mknod(r,e,0)},mkdirTree:function(r,e){for(var t=r.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{Wr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:function(r,e,t){return void 0===t&&(t=e,e=438),e|=8192,Wr.mknod(r,e,t)},symlink:function(r,e){if(!_r.resolve(r))throw new Wr.ErrnoError(44);var t=Wr.lookupPath(e,{parent:!0}).node;if(!t)throw new Wr.ErrnoError(44);var n=wr.basename(e),o=Wr.mayCreate(t,n);if(o)throw new Wr.ErrnoError(o);if(!t.node_ops.symlink)throw new Wr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename:function(r,e){var t,n,o=wr.dirname(r),a=wr.dirname(e),i=wr.basename(r),s=wr.basename(e);if(t=Wr.lookupPath(r,{parent:!0}).node,n=Wr.lookupPath(e,{parent:!0}).node,!t||!n)throw new Wr.ErrnoError(44);if(t.mount!==n.mount)throw new Wr.ErrnoError(75);var u,c=Wr.lookupNode(t,i),f=_r.relative(r,a);if("."!==f.charAt(0))throw new Wr.ErrnoError(28);if("."!==(f=_r.relative(e,o)).charAt(0))throw new Wr.ErrnoError(55);try{u=Wr.lookupNode(n,s)}catch(r){}if(c!==u){var l=Wr.isDir(c.mode),d=Wr.mayDelete(t,i,l);if(d)throw new Wr.ErrnoError(d);if(d=u?Wr.mayDelete(n,s,l):Wr.mayCreate(n,s))throw new Wr.ErrnoError(d);if(!t.node_ops.rename)throw new Wr.ErrnoError(63);if(Wr.isMountpoint(c)||u&&Wr.isMountpoint(u))throw new Wr.ErrnoError(10);if(n!==t&&(d=Wr.nodePermissions(t,"w")))throw new Wr.ErrnoError(d);Wr.hashRemoveNode(c);try{t.node_ops.rename(c,n,s)}catch(r){throw r}finally{Wr.hashAddNode(c)}}},rmdir:function(r){var e=Wr.lookupPath(r,{parent:!0}).node,t=wr.basename(r),n=Wr.lookupNode(e,t),o=Wr.mayDelete(e,t,!0);if(o)throw new Wr.ErrnoError(o);if(!e.node_ops.rmdir)throw new Wr.ErrnoError(63);if(Wr.isMountpoint(n))throw new Wr.ErrnoError(10);e.node_ops.rmdir(e,t),Wr.destroyNode(n)},readdir:function(r){var e=Wr.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new Wr.ErrnoError(54);return e.node_ops.readdir(e)},unlink:function(r){var e=Wr.lookupPath(r,{parent:!0}).node;if(!e)throw new Wr.ErrnoError(44);var t=wr.basename(r),n=Wr.lookupNode(e,t),o=Wr.mayDelete(e,t,!1);if(o)throw new Wr.ErrnoError(o);if(!e.node_ops.unlink)throw new Wr.ErrnoError(63);if(Wr.isMountpoint(n))throw new Wr.ErrnoError(10);e.node_ops.unlink(e,t),Wr.destroyNode(n)},readlink:function(r){var e=Wr.lookupPath(r).node;if(!e)throw new Wr.ErrnoError(44);if(!e.node_ops.readlink)throw new Wr.ErrnoError(28);return _r.resolve(Wr.getPath(e.parent),e.node_ops.readlink(e))},stat:function(r,e){var t=Wr.lookupPath(r,{follow:!e}).node;if(!t)throw new Wr.ErrnoError(44);if(!t.node_ops.getattr)throw new Wr.ErrnoError(63);return t.node_ops.getattr(t)},lstat:function(r){return Wr.stat(r,!0)},chmod:function(r,e,t){var n;if(!(n="string"==typeof r?Wr.lookupPath(r,{follow:!t}).node:r).node_ops.setattr)throw new Wr.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,timestamp:Date.now()})},lchmod:function(r,e){Wr.chmod(r,e,!0)},fchmod:function(r,e){var t=Wr.getStreamChecked(r);Wr.chmod(t.node,e)},chown:function(r,e,t,n){var o;if(!(o="string"==typeof r?Wr.lookupPath(r,{follow:!n}).node:r).node_ops.setattr)throw new Wr.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(r,e,t){Wr.chown(r,e,t,!0)},fchown:function(r,e,t){var n=Wr.getStreamChecked(r);Wr.chown(n.node,e,t)},truncate:function(r,e){if(e<0)throw new Wr.ErrnoError(28);var t;if(!(t="string"==typeof r?Wr.lookupPath(r,{follow:!0}).node:r).node_ops.setattr)throw new Wr.ErrnoError(63);if(Wr.isDir(t.mode))throw new Wr.ErrnoError(31);if(!Wr.isFile(t.mode))throw new Wr.ErrnoError(28);var n=Wr.nodePermissions(t,"w");if(n)throw new Wr.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate:function(r,e){var t=Wr.getStreamChecked(r);if(!(2097155&t.flags))throw new Wr.ErrnoError(28);Wr.truncate(t.node,e)},utime:function(r,e,t){var n=Wr.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(e,t)})},open:function(r,e,n){if(""===r)throw new Wr.ErrnoError(44);var o;if(n=void 0===n?438:n,n=64&(e="string"==typeof e?Ur(e):e)?4095&n|32768:0,"object"==v(r))o=r;else{r=wr.normalize(r);try{o=Wr.lookupPath(r,{follow:!(131072&e)}).node}catch(r){}}var a=!1;if(64&e)if(o){if(128&e)throw new Wr.ErrnoError(20)}else o=Wr.mknod(r,n,0),a=!0;if(!o)throw new Wr.ErrnoError(44);if(Wr.isChrdev(o.mode)&&(e&=-513),65536&e&&!Wr.isDir(o.mode))throw new Wr.ErrnoError(54);if(!a){var i=Wr.mayOpen(o,e);if(i)throw new Wr.ErrnoError(i)}512&e&&!a&&Wr.truncate(o,0),e&=-131713;var s=Wr.createStream({node:o,path:Wr.getPath(o),flags:e,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!t.logReadFiles||1&e||(Wr.readFiles||(Wr.readFiles={}),r in Wr.readFiles||(Wr.readFiles[r]=1)),s},close:function(r){if(Wr.isClosed(r))throw new Wr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{Wr.closeStream(r.fd)}r.fd=null},isClosed:function(r){return null===r.fd},llseek:function(r,e,t){if(Wr.isClosed(r))throw new Wr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new Wr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new Wr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read:function(r,e,t,n,o){if(n<0||o<0)throw new Wr.ErrnoError(28);if(Wr.isClosed(r))throw new Wr.ErrnoError(8);if(1==(2097155&r.flags))throw new Wr.ErrnoError(8);if(Wr.isDir(r.node.mode))throw new Wr.ErrnoError(31);if(!r.stream_ops.read)throw new Wr.ErrnoError(28);var a=void 0!==o;if(a){if(!r.seekable)throw new Wr.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write:function(r,e,t,n,o,a){if(n<0||o<0)throw new Wr.ErrnoError(28);if(Wr.isClosed(r))throw new Wr.ErrnoError(8);if(!(2097155&r.flags))throw new Wr.ErrnoError(8);if(Wr.isDir(r.node.mode))throw new Wr.ErrnoError(31);if(!r.stream_ops.write)throw new Wr.ErrnoError(28);r.seekable&&1024&r.flags&&Wr.llseek(r,0,2);var i=void 0!==o;if(i){if(!r.seekable)throw new Wr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},allocate:function(r,e,t){if(Wr.isClosed(r))throw new Wr.ErrnoError(8);if(e<0||t<=0)throw new Wr.ErrnoError(28);if(!(2097155&r.flags))throw new Wr.ErrnoError(8);if(!Wr.isFile(r.node.mode)&&!Wr.isDir(r.node.mode))throw new Wr.ErrnoError(43);if(!r.stream_ops.allocate)throw new Wr.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap:function(r,e,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&r.flags))throw new Wr.ErrnoError(2);if(1==(2097155&r.flags))throw new Wr.ErrnoError(2);if(!r.stream_ops.mmap)throw new Wr.ErrnoError(43);return r.stream_ops.mmap(r,e,t,n,o)},msync:function(r,e,t,n,o){return r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0},munmap:function(r){return 0},ioctl:function(r,e,t){if(!r.stream_ops.ioctl)throw new Wr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile:function(r){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'.concat(t.encoding,'"'));var n=Wr.open(r,t.flags),o=Wr.stat(r).size,a=new Uint8Array(o);return Wr.read(n,a,0,o,0),"utf8"===t.encoding?e=Ir(a,0):"binary"===t.encoding&&(e=a),Wr.close(n),e},writeFile:function(r,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t.flags=t.flags||577;var n=Wr.open(r,t.flags,t.mode);if("string"==typeof e){var o=new Uint8Array(Tr(e)+1),a=Cr(e,o,0,o.length);Wr.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error("Unsupported data type");Wr.write(n,e,0,e.byteLength,void 0,t.canOwn)}Wr.close(n)},cwd:function(){return Wr.currentPath},chdir:function(r){var e=Wr.lookupPath(r,{follow:!0});if(null===e.node)throw new Wr.ErrnoError(44);if(!Wr.isDir(e.node.mode))throw new Wr.ErrnoError(54);var t=Wr.nodePermissions(e.node,"x");if(t)throw new Wr.ErrnoError(t);Wr.currentPath=e.path},createDefaultDirectories:function(){Wr.mkdir("/tmp"),Wr.mkdir("/home"),Wr.mkdir("/home/web_user")},createDefaultDevices:function(){Wr.mkdir("/dev"),Wr.registerDevice(Wr.makedev(1,3),{read:function(){return 0},write:function(r,e,t,n,o){return n}}),Wr.mkdev("/dev/null",Wr.makedev(1,3)),Ar.register(Wr.makedev(5,0),Ar.default_tty_ops),Ar.register(Wr.makedev(6,0),Ar.default_tty1_ops),Wr.mkdev("/dev/tty",Wr.makedev(5,0)),Wr.mkdev("/dev/tty1",Wr.makedev(6,0));var r=new Uint8Array(1024),e=0,t=function(){return 0===e&&(e=Er(r).byteLength),r[--e]};Wr.createDevice("/dev","random",t),Wr.createDevice("/dev","urandom",t),Wr.mkdir("/dev/shm"),Wr.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){Wr.mkdir("/proc");var r=Wr.mkdir("/proc/self");Wr.mkdir("/proc/self/fd"),Wr.mount({mount:function(){var e=Wr.createNode(r,"fd",16895,73);return e.node_ops={lookup:function(r,e){var t=+e,n=Wr.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}}};return o.parent=o,o}},e}},{},"/proc/self/fd")},createStandardStreams:function(){t.stdin?Wr.createDevice("/dev","stdin",t.stdin):Wr.symlink("/dev/tty","/dev/stdin"),t.stdout?Wr.createDevice("/dev","stdout",null,t.stdout):Wr.symlink("/dev/tty","/dev/stdout"),t.stderr?Wr.createDevice("/dev","stderr",null,t.stderr):Wr.symlink("/dev/tty1","/dev/stderr"),Wr.open("/dev/stdin",0),Wr.open("/dev/stdout",1),Wr.open("/dev/stderr",1)},ensureErrnoError:function(){Wr.ErrnoError||(Wr.ErrnoError=function(r,e){this.name="ErrnoError",this.node=e,this.setErrno=function(r){this.errno=r},this.setErrno(r),this.message="FS error"},Wr.ErrnoError.prototype=new Error,Wr.ErrnoError.prototype.constructor=Wr.ErrnoError,[44].forEach(function(r){Wr.genericErrors[r]=new Wr.ErrnoError(r),Wr.genericErrors[r].stack="<generic error, no stack>"}))},staticInit:function(){Wr.ensureErrnoError(),Wr.nameTable=new Array(4096),Wr.mount(Rr,{},"/"),Wr.createDefaultDirectories(),Wr.createDefaultDevices(),Wr.createSpecialDirectories(),Wr.filesystems={MEMFS:Rr}},init:function(r,e,n){Wr.init.initialized=!0,Wr.ensureErrnoError(),t.stdin=r||t.stdin,t.stdout=e||t.stdout,t.stderr=n||t.stderr,Wr.createStandardStreams()},quit:function(){Wr.init.initialized=!1;for(var r=0;r<Wr.streams.length;r++){var e=Wr.streams[r];e&&Wr.close(e)}},findObject:function(r,e){var t=Wr.analyzePath(r,e);return t.exists?t.object:null},analyzePath:function(r,e){try{r=(n=Wr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Wr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=wr.basename(r),n=Wr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath:function(r,e,t,n){r="string"==typeof r?r:Wr.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=wr.join2(r,a);try{Wr.mkdir(i)}catch(r){}r=i}}return i},createFile:function(r,e,t,n,o){var a=wr.join2("string"==typeof r?r:Wr.getPath(r),e),i=Lr(n,o);return Wr.create(a,i)},createDataFile:function(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:Wr.getPath(r),i=e?wr.join2(r,e):r);var s=Lr(n,o),u=Wr.create(i,s);if(t){if("string"==typeof t){for(var c=new Array(t.length),f=0,l=t.length;f<l;++f)c[f]=t.charCodeAt(f);t=c}Wr.chmod(u,146|s);var d=Wr.open(u,577);Wr.write(d,t,0,t.length,0,a),Wr.close(d),Wr.chmod(u,s)}},createDevice:function(r,e,t,n){var o=wr.join2("string"==typeof r?r:Wr.getPath(r),e),a=Lr(!!t,!!n);Wr.createDevice.major||(Wr.createDevice.major=64);var i=Wr.makedev(Wr.createDevice.major++,0);return Wr.registerDevice(i,{open:function(r){r.seekable=!1},close:function(r){n&&n.buffer&&n.buffer.length&&n(10)},read:function(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new Wr.ErrnoError(29)}if(void 0===u&&0===i)throw new Wr.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.timestamp=Date.now()),i},write:function(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new Wr.ErrnoError(29)}return o&&(r.node.timestamp=Date.now()),i}}),Wr.mkdev(o,a,i)},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!h)throw new Error("Cannot load without read() or XMLHttpRequest.");try{r.contents=Sr(h(r.url),!0),r.usedBytes=r.contents.length}catch(r){throw new Wr.ErrnoError(29)}},createLazyFile:function(r,e,t,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(r){if(!(r>this.length-1||r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}},a.prototype.setDataGetter=function(r){this.getter=r},a.prototype.cacheLength=function(){var r=new XMLHttpRequest;if(r.open("HEAD",t,!1),r.send(null),!(r.status>=200&&r.status<300||304===r.status))throw new Error("Couldn't load "+t+". Status: "+r.status);var e,n=Number(r.getResponseHeader("Content-length")),o=(e=r.getResponseHeader("Accept-Ranges"))&&"bytes"===e,a=(e=r.getResponseHeader("Content-Encoding"))&&"gzip"===e,i=1048576;o||(i=n);var s=this;s.setDataGetter(function(r){var e=r*i,o=(r+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[r]&&(s.chunks[r]=function(r,e){if(r>e)throw new Error("invalid range ("+r+", "+e+") or no bytes requested!");if(e>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+r+"-"+e),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Sr(o.responseText||"",!0)}(e,o)),void 0===s.chunks[r])throw new Error("doXHR failed!");return s.chunks[r]}),!a&&n||(i=n=1,n=this.getter(0).length,i=n,k("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!c)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:t};var u=Wr.createFile(r,e,s,n,o);s.contents?u.contents=s.contents:s.url&&(u.contents=null,u.url=s.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var f={};function l(r,e,t,n,o){var a=r.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(u.stream_ops).forEach(function(r){var e=u.stream_ops[r];f[r]=function(){return Wr.forceLoadFile(u),e.apply(null,arguments)}}),f.read=function(r,e,t,n,o){return Wr.forceLoadFile(u),l(r,e,t,n,o)},f.mmap=function(r,e,t,n,o){Wr.forceLoadFile(u);var a=Mr();if(!a)throw new Wr.ErrnoError(48);return l(r,F,a,e,t),{ptr:a,allocated:!0}},u.stream_ops=f,u}},zr=function(r,e){return r?Ir(A,r,e):""},Nr={DEFAULT_POLLMASK:5,calculateAt:function(r,e,t){if(wr.isAbs(e))return e;var n;if(n=-100===r?Wr.cwd():Nr.getStreamFromFD(r).path,0==e.length){if(!t)throw new Wr.ErrnoError(44);return n}return wr.join2(n,e)},doStat:function(r,e,t){try{var n=r(e)}catch(r){if(r&&r.node&&wr.normalize(e)!==wr.normalize(Wr.getPath(r.node)))return-54;throw r}D[t>>2]=n.dev,D[t+4>>2]=n.mode,j[t+8>>2]=n.nlink,D[t+12>>2]=n.uid,D[t+16>>2]=n.gid,D[t+20>>2]=n.rdev,hr=[n.size>>>0,(dr=n.size,+Math.abs(dr)>=1?dr>0?+Math.floor(dr/4294967296)>>>0:~~+Math.ceil((dr-+(~~dr>>>0))/4294967296)>>>0:0)],D[t+24>>2]=hr[0],D[t+28>>2]=hr[1],D[t+32>>2]=4096,D[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return hr=[Math.floor(o/1e3)>>>0,(dr=Math.floor(o/1e3),+Math.abs(dr)>=1?dr>0?+Math.floor(dr/4294967296)>>>0:~~+Math.ceil((dr-+(~~dr>>>0))/4294967296)>>>0:0)],D[t+40>>2]=hr[0],D[t+44>>2]=hr[1],j[t+48>>2]=o%1e3*1e3,hr=[Math.floor(a/1e3)>>>0,(dr=Math.floor(a/1e3),+Math.abs(dr)>=1?dr>0?+Math.floor(dr/4294967296)>>>0:~~+Math.ceil((dr-+(~~dr>>>0))/4294967296)>>>0:0)],D[t+56>>2]=hr[0],D[t+60>>2]=hr[1],j[t+64>>2]=a%1e3*1e3,hr=[Math.floor(i/1e3)>>>0,(dr=Math.floor(i/1e3),+Math.abs(dr)>=1?dr>0?+Math.floor(dr/4294967296)>>>0:~~+Math.ceil((dr-+(~~dr>>>0))/4294967296)>>>0:0)],D[t+72>>2]=hr[0],D[t+76>>2]=hr[1],j[t+80>>2]=i%1e3*1e3,hr=[n.ino>>>0,(dr=n.ino,+Math.abs(dr)>=1?dr>0?+Math.floor(dr/4294967296)>>>0:~~+Math.ceil((dr-+(~~dr>>>0))/4294967296)>>>0:0)],D[t+88>>2]=hr[0],D[t+92>>2]=hr[1],0},doMsync:function(r,e,t,n,o){if(!Wr.isFile(e.node.mode))throw new Wr.ErrnoError(43);if(2&n)return 0;var a=A.slice(r,r+t);Wr.msync(e,a,o,t,n)},varargs:void 0,get:function(){var r=D[+Nr.varargs>>2];return Nr.varargs+=4,r},getp:function(){return Nr.get()},getStr:function(r){return zr(r)},getStreamFromFD:function(r){return Wr.getStreamChecked(r)}},Vr=function(r,e,t,n,o){},Gr=function(){for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);qr=r},Xr=function(r){for(var e="",t=r;A[t];)e+=qr[A[t++]];return e},Yr={},Jr={},Qr={},Zr=function(r){throw new Kr(r)},ee=function(r){throw new re(r)},te=function(r,e,t){function n(e){var n=t(e);n.length!==r.length&&ee("Mismatched type converter count");for(var o=0;o<r.length;++o)oe(r[o],n[o])}r.forEach(function(r){Qr[r]=e});var o=new Array(e.length),a=[],i=0;e.forEach(function(r,e){Jr.hasOwnProperty(r)?o[e]=Jr[r]:(a.push(r),Yr.hasOwnProperty(r)||(Yr[r]=[]),Yr[r].push(function(){o[e]=Jr[r],++i===a.length&&n(o)}))}),0===a.length&&n(o)},ae=function(r,e,t,n){e=Xr(e),oe(r,{name:e,fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(A[r])},destructorFunction:null})},ie=function(r){return{count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}},se=function(r){Zr(r.$$.ptrType.registeredClass.name+" instance already deleted")},ue=!1,ce=function(r){},fe=function(r){r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},le=function(r){r.count.value-=1,0===r.count.value&&fe(r)},de=function(r,e,t){if(e===t)return r;if(void 0===t.baseClass)return null;var n=de(r,e,t.baseClass);return null===n?null:t.downcast(n)},pe={},he=function(){return Object.keys(Ee).length},me=function(){var r=[];for(var e in Ee)Ee.hasOwnProperty(e)&&r.push(Ee[e]);return r},ve=[],ye=function(){for(;ve.length;){var r=ve.pop();r.$$.deleteScheduled=!1,r.delete()}},we=function(r){ge=r,ve.length&&ge&&ge(ye)},be=function(){t.getInheritedInstanceCount=he,t.getLiveInheritedInstances=me,t.flushPendingDeletes=ye,t.setDelayFunction=we},Ee={},_e=function(r,e){for(void 0===e&&Zr("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},ke=function(r,e){return e=_e(r,e),Ee[e]},Ie=function(r,e){return e.ptrType&&e.ptr||ee("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&ee("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Te(Object.create(r,{$$:{value:e}}))},Te=function(r){return"undefined"==typeof FinalizationRegistry?(Te=function(r){return r},r):(ue=new FinalizationRegistry(function(r){le(r.$$)}),Te=function(r){var e=r.$$;if(e.smartPtr){var t={$$:e};ue.register(r,t,r)}return r},ce=function(r){return ue.unregister(r)},Te(r))},Ce=function(){Object.assign(Se.prototype,{isAliasOf:function(r){if(!(this instanceof Se))return!1;if(!(r instanceof Se))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,o=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&t===o},clone:function(){if(this.$$.ptr||se(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=Te(Object.create(Object.getPrototypeOf(this),{$$:{value:ie(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete:function(){this.$$.ptr||se(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Zr("Object already scheduled for deletion"),ce(this),le(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted:function(){return!this.$$.ptr},deleteLater:function(){return this.$$.ptr||se(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Zr("Object already scheduled for deletion"),ve.push(this),1===ve.length&&ge&&ge(ye),this.$$.deleteScheduled=!0,this}})},Fe=function(r,e){return Object.defineProperty(e,"name",{value:r})},Ae=function(r,e,t){if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(){return r[e].overloadTable.hasOwnProperty(arguments.length)||Zr("Function '".concat(t,"' called with an invalid number of arguments (").concat(arguments.length,") - expects one of (").concat(r[e].overloadTable,")!")),r[e].overloadTable[arguments.length].apply(this,arguments)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Me=function(r,e,n){t.hasOwnProperty(r)?((void 0===n||void 0!==t[r].overloadTable&&void 0!==t[r].overloadTable[n])&&Zr("Cannot register public name '".concat(r,"' twice")),Ae(t,r,r),t.hasOwnProperty(n)&&Zr("Cannot register multiple overloads of a function with the same number of arguments (".concat(n,")!")),t[r].overloadTable[n]=e):(t[r]=e,void 0!==n&&(t[r].numArguments=n))},Re=function(r){if(void 0===r)return"_unknown";var e=(r=r.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_".concat(r):r},je=function(r,e,t){for(;e!==t;)e.upcast||Zr("Expected null or instance of ".concat(t.name,", got an instance of ").concat(e.name)),r=e.upcast(r),e=e.baseClass;return r},Le=function(){Object.assign(We.prototype,{getPointee:function(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor:function(r){this.rawDestructor&&this.rawDestructor(r)},argPackAdvance:8,readValueFromPointer:Ue,deleteObject:function(r){null!==r&&r.delete()},fromWireType:Pe})},ze=function(r,e,n){t.hasOwnProperty(r)||ee("Replacing nonexistant public symbol"),void 0!==t[r].overloadTable&&void 0!==n?t[r].overloadTable[n]=e:(t[r]=e,t[r].argCount=n)},Ne=function(r,e,n){var o=t["dynCall_"+r];return n&&n.length?o.apply(null,[e].concat(n)):o.call(null,e)},He=[],Ve=function(r){var e=He[r];return e||(r>=He.length&&(He.length=r+1),He[r]=e=Be.get(r)),e},Ge=function(r,e,t){return r.includes("j")?Ne(r,e,t):Ve(e).apply(null,t)},qe=function(r,e){var t=[];return function(){return t.length=0,Object.assign(t,arguments),Ge(r,e,t)}},Xe=function(r,e){var t=(r=Xr(r)).includes("j")?qe(r,e):Ve(e);return"function"!=typeof t&&Zr("unknown function pointer with signature ".concat(r,": ").concat(e)),t},Ye=function(r,e){var t=Fe(e,function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},t},Qe=function(r){var e=$n(r),t=Xr(e);return xn(e),t},Ke=function(r,e){var t=[],n={};throw e.forEach(function r(e){n[e]||Jr[e]||(Qr[e]?Qr[e].forEach(r):(t.push(e),n[e]=!0))}),new Je("".concat(r,": ")+t.map(Qe).join([", "]))},Ze=function(r,e,t,n,o,a,i,s,u,c,f,l,d){f=Xr(f),a=Xe(o,a),s&&(s=Xe(i,s)),c&&(c=Xe(u,c)),d=Xe(l,d);var p=Re(f);Me(p,function(){Ke("Cannot construct ".concat(f," due to unbound types"),[n])}),te([r,e,t],n?[n]:[],function(e){var t,o;e=e[0],o=n?(t=e.registeredClass).instancePrototype:Se.prototype;var i=Fe(f,function(){if(Object.getPrototypeOf(this)!==u)throw new Kr("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new Kr(f+" has no accessible constructor");var r=l.constructor_body[arguments.length];if(void 0===r)throw new Kr("Tried to invoke ctor of ".concat(f," with invalid number of parameters (").concat(arguments.length,") - expected (").concat(Object.keys(l.constructor_body).toString(),") parameters instead!"));return r.apply(this,arguments)}),u=Object.create(o,{constructor:{value:i}});i.prototype=u;var l=new De(f,i,u,d,t,a,s,c);l.baseClass&&(void 0===l.baseClass.__derivedClasses&&(l.baseClass.__derivedClasses=[]),l.baseClass.__derivedClasses.push(l));var h=new We(f,l,!0,!1,!1),m=new We(f+"*",l,!1,!1,!1),v=new We(f+" const*",l,!1,!0,!1);return pe[r]={pointerType:m,constPointerType:v},ze(p,i),[h,m,v]})},rt=function(r,e){for(var t=[],n=0;n<r;n++)t.push(j[e+4*n>>2]);return t},et=function(r){for(;r.length;){var e=r.pop();r.pop()(e)}},ot=function(r,e,t,n,o,a){var i=rt(e,t);o=Xe(n,o),te([],[r],function(r){r=r[0];var t="constructor ".concat(r.name);if(void 0===r.registeredClass.constructor_body&&(r.registeredClass.constructor_body=[]),void 0!==r.registeredClass.constructor_body[e-1])throw new Kr("Cannot register multiple constructors with identical number of parameters (".concat(e-1,") for class '").concat(r.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return r.registeredClass.constructor_body[e-1]=function(){Ke("Cannot construct ".concat(r.name," due to unbound types"),i)},te([],i,function(n){return n.splice(1,0,null),r.registeredClass.constructor_body[e-1]=nt(t,n,null,o,a),[]}),[]})},at=function(r){var e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r},it=function(r,e,t,n,o,a,i,s,u){var c=rt(t,n);e=Xr(e),e=at(e),a=Xe(o,a),te([],[r],function(r){r=r[0];var n="".concat(r.name,".").concat(e);function o(){Ke("Cannot call ".concat(n," due to unbound types"),c)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&r.registeredClass.pureVirtualFunctions.push(e);var f=r.registeredClass.instancePrototype,l=f[e];return void 0===l||void 0===l.overloadTable&&l.className!==r.name&&l.argCount===t-2?(o.argCount=t-2,o.className=r.name,f[e]=o):(Ae(f,e,n),f[e].overloadTable[t-2]=o),te([],c,function(o){var s=nt(n,o,r,a,i,u);return void 0===f[e].overloadTable?(s.argCount=t-2,f[e]=s):f[e].overloadTable[t-2]=s,[]}),[]})},ct=new ut,ft=function(r){r>=ct.reserved&&0===--ct.get(r).refcount&&ct.free(r)},lt=function(){for(var r=0,e=ct.reserved;e<ct.allocated.length;++e)void 0!==ct.allocated[e]&&++r;return r},dt=function(){ct.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),ct.reserved=ct.allocated.length,t.count_emval_handles=lt},pt={toValue:function(r){return r||Zr("Cannot use deleted val. handle = "+r),ct.get(r).value},toHandle:function(r){switch(r){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return ct.allocate({refcount:1,value:r})}}},mt=function(r,e){e=Xr(e),oe(r,{name:e,fromWireType:function(r){var e=pt.toValue(r);return ft(r),e},toWireType:function(r,e){return pt.toHandle(e)},argPackAdvance:8,readValueFromPointer:ht,destructorFunction:null})},vt=function(r){if(null===r)return"null";var e=v(r);return"object"===e||"array"===e||"function"===e?r.toString():""+r},yt=function(r,e){switch(e){case 4:return function(r){return this.fromWireType(x[r>>2])};case 8:return function(r){return this.fromWireType(O[r>>3])};default:throw new TypeError("invalid float width (".concat(e,"): ").concat(r))}},gt=function(r,e,t){e=Xr(e),oe(r,{name:e,fromWireType:function(r){return r},toWireType:function(r,e){return e},argPackAdvance:8,readValueFromPointer:yt(e,t),destructorFunction:null})},wt=function(r,e,t){switch(e){case 1:return t?function(r){return F[0|r]}:function(r){return A[0|r]};case 2:return t?function(r){return M[r>>1]}:function(r){return R[r>>1]};case 4:return t?function(r){return D[r>>2]}:function(r){return j[r>>2]};default:throw new TypeError("invalid integer width (".concat(e,"): ").concat(r))}},bt=function(r,e,t,n,o){e=Xr(e);var a=function(r){return r};if(0===n){var i=32-8*t;a=function(r){return r<<i>>>i}}var s=e.includes("unsigned");oe(r,{name:e,fromWireType:a,toWireType:s?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:wt(e,t,0!==n),destructorFunction:null})},Et=function(r,e,t){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(r){var e=j[r>>2],t=j[r+4>>2];return new n(F.buffer,t,e)}t=Xr(t),oe(r,{name:t,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},_t=function(r,e,t){return Cr(r,A,e,t)},kt=function(r,e){var t="std::string"===(e=Xr(e));oe(r,{name:e,fromWireType:function(r){var e,n=j[r>>2],o=r+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==A[s]){var u=zr(a,s-a);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),a=s+1}}else{var c=new Array(n);for(i=0;i<n;++i)c[i]=String.fromCharCode(A[o+i]);e=c.join("")}return xn(r),e},toWireType:function(r,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var o="string"==typeof e;o||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Zr("Cannot pass non-string to std::string"),n=t&&o?Tr(e):e.length;var a=jn(4+n+1),i=a+4;if(j[a>>2]=n,t&&o)_t(e,i,n+1);else if(o)for(var s=0;s<n;++s){var u=e.charCodeAt(s);u>255&&(xn(i),Zr("String has UTF-16 code units that do not fit in 8 bits")),A[i+s]=u}else for(s=0;s<n;++s)A[i+s]=e[s];return null!==r&&r.push(xn,a),a},argPackAdvance:8,readValueFromPointer:Ue,destructorFunction:function(r){xn(r)}})},It="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Pt=function(r,e){for(var t=r,n=t>>1,o=n+e/2;!(n>=o)&&R[n];)++n;if((t=n<<1)-r>32&&It)return It.decode(A.subarray(r,t));for(var a="",i=0;!(i>=e/2);++i){var s=M[r+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},Tt=function(r,e,t){if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,a=0;a<o;++a){var i=r.charCodeAt(a);M[e>>1]=i,e+=2}return M[e>>1]=0,e-n},Ct=function(r){return 2*r.length},St=function(r,e){for(var t=0,n="";!(t>=e/4);){var o=D[r+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Ft=function(r,e,t){if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var i=r.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++a)),D[e>>2]=i,(e+=4)+4>o)break}return D[e>>2]=0,e-n},At=function(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Mt=function(r,e,t){var n,o,a,i,s;t=Xr(t),2===e?(n=Pt,o=Tt,i=Ct,a=function(){return R},s=1):4===e&&(n=St,o=Ft,i=At,a=function(){return j},s=2),oe(r,{name:t,fromWireType:function(r){for(var t,o=j[r>>2],i=a(),u=r+4,c=0;c<=o;++c){var f=r+4+c*e;if(c==o||0==i[f>>s]){var l=n(u,f-u);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),u=f+e}}return xn(r),t},toWireType:function(r,n){"string"!=typeof n&&Zr("Cannot pass non-string to C++ string type ".concat(t));var a=i(n),u=jn(4+a+e);return j[u>>2]=a>>s,o(n,u+4,a+e),null!==r&&r.push(xn,u),u},argPackAdvance:8,readValueFromPointer:ht,destructorFunction:function(r){xn(r)}})},Rt=function(r,e){e=Xr(e),oe(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:function(){},toWireType:function(r,e){}})},Dt=function(){return 1},jt=function(r,e){var t=Jr[r];return void 0===t&&Zr(e+" has unknown type "+Qe(r)),t},xt=function(r,e,t){var n=[],o=r.toWireType(n,t);return n.length&&(j[e>>2]=pt.toHandle(n)),o},Ot=function(r,e,t){return r=pt.toValue(r),e=jt(e,"emval::as"),xt(e,t,r)},$t={},Ut=function(r){var e=$t[r];return void 0===e?Xr(r):e},Lt=[],Wt=function(r,e,t,n,o){return(r=Lt[r])(e=pt.toValue(e),e[t=Ut(t)],n,o)},zt=function(){return"object"==("undefined"==typeof globalThis?"undefined":v(globalThis))?globalThis:Function("return this")()},Nt=function(r){return 0===r?pt.toHandle(zt()):(r=Ut(r),pt.toHandle(zt()[r]))},Ht=function(r){var e=Lt.length;return Lt.push(r),e},Bt=function(r,e){for(var t=new Array(r),n=0;n<r;++n)t[n]=jt(j[e+4*n>>2],"parameter "+n);return t},Vt=function(r,e,t){var n=Bt(r,e),o=n.shift();r--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var u=["retType"],c=[o],f=0;f<r;++f)s.push("arg"+f),u.push("argType"+f),c.push(n[f]),a+="  var arg".concat(f," = argType").concat(f,".readValueFromPointer(args").concat(i?"+"+i:"",");\n"),i+=n[f].argPackAdvance;for(a+="  var rv = ".concat(1===t?"new func":"func.call","(").concat(s.join(", "),");\n"),f=0;f<r;++f)n[f].deleteObject&&(a+="  argType".concat(f,".deleteObject(arg").concat(f,");\n"));o.isVoid||(u.push("emval_returnValue"),c.push(xt),a+="  return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",u.push(a);var l=tt(Function,u).apply(null,c),d="methodCaller<(".concat(n.map(function(r){return r.name}).join(", "),") => ").concat(o.name,">");return Ht(Fe(d,l))},Gt=function(r,e){return r=pt.toValue(r),e=pt.toValue(e),pt.toHandle(r[e])},qt=function(r){r>4&&(ct.get(r).refcount+=1)},Xt=function(r){return pt.toHandle(Ut(r))},Yt=function(){return pt.toHandle({})},Jt=function(r){var e=pt.toValue(r);et(e),ft(r)},Qt=function(r,e,t){r=pt.toValue(r),e=pt.toValue(e),t=pt.toValue(t),r[e]=t},Kt=function(r,e){var t=(r=jt(r,"_emval_take_value")).readValueFromPointer(e);return pt.toHandle(t)},Zt=function(r,e){return e+2097152>>>0<4194305-!!r?(r>>>0)+4294967296*e:NaN},en=function(r){return r%4==0&&(r%100!=0||r%400==0)},tn=[0,31,60,91,121,152,182,213,244,274,305,335],nn=[0,31,59,90,120,151,181,212,243,273,304,334],on=function(r){return(en(r.getFullYear())?tn:nn)[r.getMonth()]+r.getDate()-1},sn=function(r){var e=function(){var e=new Date(D[r+20>>2]+1900,D[r+16>>2],D[r+12>>2],D[r+8>>2],D[r+4>>2],D[r>>2],0),t=D[r+32>>2],n=e.getTimezoneOffset(),o=new Date(e.getFullYear(),0,1),a=new Date(e.getFullYear(),6,1).getTimezoneOffset(),i=o.getTimezoneOffset(),s=Math.min(i,a);if(t<0)D[r+32>>2]=Number(a!=i&&s==n);else if(t>0!=(s==n)){var u=Math.max(i,a),c=t>0?s:u;e.setTime(e.getTime()+6e4*(c-n))}D[r+24>>2]=e.getDay();var f=0|on(e);D[r+28>>2]=f,D[r>>2]=e.getSeconds(),D[r+4>>2]=e.getMinutes(),D[r+8>>2]=e.getHours(),D[r+12>>2]=e.getDate(),D[r+16>>2]=e.getMonth(),D[r+20>>2]=e.getYear();var l=e.getTime();return isNaN(l)?(gr(61),-1):l/1e3}();return Un((dr=e,+Math.abs(dr)>=1?dr>0?+Math.floor(dr/4294967296)>>>0:~~+Math.ceil((dr-+(~~dr>>>0))/4294967296)>>>0:0)),e>>>0},un=function(r){var e=Tr(r)+1,t=jn(e);return t&&_t(r,t,e),t},cn=function(r,e,t){var n=(new Date).getFullYear(),o=new Date(n,0,1),a=new Date(n,6,1),i=o.getTimezoneOffset(),s=a.getTimezoneOffset(),u=Math.max(i,s);function c(r){var e=r.toTimeString().match(/\(([A-Za-z ]+)\)$/);return e?e[1]:"GMT"}j[r>>2]=60*u,D[e>>2]=Number(i!=s);var f=c(o),l=c(a),d=un(f),p=un(l);s<i?(j[t>>2]=d,j[t+4>>2]=p):(j[t>>2]=p,j[t+4>>2]=d)},fn=function(){rr("")},ln=function(){return Date.now()},dn=function(){return performance.now()},pn=function(r,e,t){return A.copyWithin(r,e,e+t)},hn=function(r){var e=(r-T.buffer.byteLength+65535)/65536;try{return T.grow(e),$(),1}catch(r){}},mn=function(r){var e=A.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=function(r,e){return r+(e-r%e)%e},o=1;o<=4;o*=2){var a=e*(1+.2/o);a=Math.min(a,r+100663296);var i=Math.min(t,n(Math.max(r,a),65536));if(hn(i))return!0}return!1},vn={},yn=function(){return i||"./this.program"},gn=function(){if(!gn.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":v(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:yn()};for(var e in vn)void 0===vn[e]?delete r[e]:r[e]=vn[e];var t=[];for(var e in r)t.push("".concat(e,"=").concat(r[e]));gn.strings=t}return gn.strings},wn=function(r,e){for(var t=0;t<r.length;++t)F[0|e++]=r.charCodeAt(t);F[0|e]=0},bn=function(r,e){var t=0;return gn().forEach(function(n,o){var a=e+t;j[r+4*o>>2]=a,wn(n,a),t+=n.length+1}),0},En=function(r,e){var t=gn();j[r>>2]=t.length;var n=0;return t.forEach(function(r){return n+=r.length+1}),j[e>>2]=n,0},In=function(r,e,t,n){for(var o=0,a=0;a<t;a++){var i=j[e>>2],s=j[e+4>>2];e+=8;var u=Wr.read(r,F,i,s,n);if(u<0)return-1;if(o+=u,u<s)break;void 0!==n&&(n+=u)}return o},Cn=function(r,e,t,n){for(var o=0,a=0;a<t;a++){var i=j[e>>2],s=j[e+4>>2];e+=8;var u=Wr.write(r,F,i,s,n);if(u<0)return-1;o+=u,void 0!==n&&(n+=u)}return o},Fn=function(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=Wr.nextInode++,this.name=e,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},An=365,Mn=146,Object.defineProperties(Fn.prototype,{read:{get:function(){return(this.mode&An)===An},set:function(r){r?this.mode|=An:this.mode&=-366}},write:{get:function(){return(this.mode&Mn)===Mn},set:function(r){r?this.mode|=Mn:this.mode&=-147}},isFolder:{get:function(){return Wr.isDir(this.mode)}},isDevice:{get:function(){return Wr.isChrdev(this.mode)}}}),Wr.FSNode=Fn,Wr.createPreloadedFile=$r,Wr.staticInit(),Gr(),Kr=t.BindingError=function(r){function e(r){var t;return l(this,e),(t=lr(this,e,[r])).name="BindingError",t}return W(e,r),s(e)}(nr(Error)),re=t.InternalError=function(r){function e(r){var t;return l(this,e),(t=lr(this,e,[r])).name="InternalError",t}return W(e,r),s(e)}(nr(Error)),Ce(),be(),Le(),Je=t.UnboundTypeError=Ye(Error,"UnboundTypeError"),st(),dt(),Rn={P:yr,L:Hr,D:Br,A:Vr,N:ae,u:Ze,Q:ot,i:it,M:mt,s:gt,h:bt,d:Et,t:kt,p:Mt,O:Rt,H:Dt,g:Ot,k:Wt,b:ft,R:Nt,j:Vt,f:Gt,q:qt,c:Xt,v:Yt,e:Jt,n:Qt,m:Kt,w:rn,x:an,y:sn,C:cn,a:fn,l:ln,o:dn,I:pn,B:mn,F:bn,G:En,r:_n,E:kn,K:Pn,z:Tn,J:Sn},Dn=fr(),jn=function(r){return(jn=Dn.U)(r)},xn=function(r){return(xn=Dn.V)(r)},On=function(){return(On=Dn.X)()},$n=function(r){return($n=Dn.Y)(r)},Un=function(r){return(Un=Dn.Z)(r)},Ln=function(r){return(Ln=Dn._)(r)},t.dynCall_jiji=function(r,e,n,o,a){return(t.dynCall_jiji=Dn.$)(r,e,n,o,a)},t._ff_h264_cabac_tables=129452,J=function r(){Wn||zn(),Wn||(J=r)},t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return zn(),r.a(2,e.ready)}},r)}))),mr=br;!function(r){for(var e=br,t=r();;)try{if(976321===-parseInt(e(243))/1+-parseInt(e(231))/2*(-parseInt(e(237))/3)+parseInt(e(238))/4+-parseInt(e(245))/5*(parseInt(e(246))/6)+-parseInt(e(250))/7*(parseInt(e(236))/8)+-parseInt(e(234))/9*(parseInt(e(240))/10)+parseInt(e(242))/11)break;t.push(t.shift())}catch(r){t.push(t.shift())}}(Er);var vr={debug:mr(256),warn:mr(249)},yr={debug:!1,debugLevel:vr[mr(249)],debugUuid:"",decoder:mr(233)},gr={init:mr(235),startRecord:"startRecord",stopRecord:mr(244),videoFrame:"videoFrame",audioFrame:mr(251),destroy:mr(255)},wr={init:mr(235),startRecordError:mr(248),startRecordSuccess:mr(247),recordEnd:mr(253),stopRecordError:"stopRecordError",recordTimestamp:"recordTimestamp",destroyEnd:"destroyEnd"};function br(r,e){var t=Er();return(br=function(r,e){return t[r-=231]})(r,e)}function Er(){var r=["startRecordError","warn","98749zGSDQv","audioFrame","recordingTimestamp","recordEnd","stopRecordError","destroy","debug","2TdNEsX","load","jessibuca-pro-mp4-recorder-decoder.js","3734847hdwMFW","init","24wQptHX","4308207APfJkF","3664436OFVERA",'"1.0.0"',"10FDfWUn","workerError","22637923uPJgOY","1286955pfjDnE","stopRecord","15xawIUD","3379182cfKVGG","startRecordSuccess"];return(Er=function(){return r})()}function _r(r,e){var t=Ir();return(_r=function(r,e){return t[r-=237]})(r,e)}function kr(r){return!0!==r&&r!==_r(247)}function Ir(){var r=["54IaSVHa","582308YTsFJC","171655VbVOzj","stringify","1737908VdGQjA","5KrwsgO","parse","2RZufFu","190odfIiC","126880qHcZNp","4116621CRiboF","true","object","852xARdWi","1284311amVoNV","423846zlAoXE"];return(Ir=function(){return r})()}function Pr(){var r=["JbPro","[✅✅✅][wasmMp4Recorder][","[❗❗❗][wasmMp4Recorder][","[❌❌❌][wasmMp4Recorder][","466904pQGYeo","debugUuid","concat","length","195952PuMJXF","1531219zSHeGc","debug","4152648tBwGkX","_opt","11927279tUgSmX","720eivLkE","27363582rYiqsH","9aYAICZ","apply","error","41035iiDyvP","debugLevel","log","warn"];return(Pr=function(){return r})()}function Tr(r,e){var t=Pr();return(Tr=function(r,e){return t[r-=373]})(r,e)}mr(232),mr(241),mr(247),mr(254),mr(252),mr(239),function(r){for(var e=_r,t=r();;)try{if(878622===parseInt(e(240))/1+-parseInt(e(243))/2*(parseInt(e(246))/3)+parseInt(e(237))/4*(parseInt(e(241))/5)+-parseInt(e(252))/6*(parseInt(e(250))/7)+parseInt(e(245))/8+-parseInt(e(251))/9*(-parseInt(e(244))/10)+parseInt(e(238))/11*(parseInt(e(249))/12))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(Ir),function(r){for(var e=Tr,t=r();;)try{if(912679===parseInt(e(386))/1+-parseInt(e(385))/2+-parseInt(e(393))/3*(-parseInt(e(381))/4)+-parseInt(e(373))/5*(-parseInt(e(391))/6)+parseInt(e(390))/7+-parseInt(e(388))/8+-parseInt(e(392))/9)break;t.push(t.shift())}catch(r){t.push(t.shift())}}(Pr);var Cr=s(function r(e){var t=Tr;l(this,r),this[t(375)]=function(r){var n=t;if(e[n(389)][n(387)]&&e[n(389)][n(374)]==vr[n(387)]){for(var o,a=e[n(389)][n(382)]?"[".concat(e._opt[n(382)],"]"):"",i=arguments[n(384)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(o=console)[n(375)].apply(o,[n(377)[n(383)](a,n(378))[n(383)](r,"]")][n(383)](s))}},this[t(376)]=function(r){var n=t;if(e._opt[n(387)]&&(e[n(389)].debugLevel==vr.debug||e._opt[n(374)]==vr[n(376)])){for(var o,a=e[n(389)][n(382)]?"["[n(383)](e[n(389)][n(382)],"]"):"",i=arguments[n(384)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(o=console)[n(375)][n(394)](o,[n(377)[n(383)](a,n(379))[n(383)](r,"]")][n(383)](s))}},this[t(395)]=function(r){for(var n,o=t,a=e._opt.debugUuid?"[".concat(e._opt[o(382)],"]"):"",i=arguments[o(384)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(n=console).error[o(394)](n,[o(377)[o(383)](a,o(380))[o(383)](r,"]")].concat(s))}});function Sr(){var r=["writeAudioFrame","validatedFailed, please contact the author(wx:bosswancheng) to get the correct license","subarray","startRecord()","streamInfo","stopRecord() and not start record","call startRecord error","50KWSSjK","debugLevel","log","concat","Recorder","startRecord","7QsKEGN","recordTimestamp","type","buffer","recordingTimestampUpdate()","debugLog","buildTime","audioFrame","1509vutEOA","isRecording","startRecordSuccess","1073350eNBGjG","_opt","debug","isValidatedFailed","1103228usdlGK","cmd","apply","stopRecord()","mp4-recorder-worker","pts","audio","stopRecord","297409BQyVAc","hasAudio","459666OyLIpC","destroy","video","1355192sUEDLY","destroy()","2XMghlR","hasVideo","startRecordError","isIFrame","opt","then","videoFrame","mp4Recorder not init","stopRecordError","stringify","assign","init","data","onmessage","hasInitStreamInfo","not start record","debugError","length","streamInfo not init","outBufferLen","recordEnd","TAG_NAME","stop record error","1060074TaJcfW","parse","writeVFrame","setStreamInfo","error"];return(Sr=function(){return r})()}var Fr=Ar;function Ar(r,e){var t=Sr();return(Ar=function(r,e){return t[r-=345]})(r,e)}!function(r){for(var e=Ar,t=r();;)try{if(150355===parseInt(e(375))/1*(parseInt(e(382))/2)+parseInt(e(360))/3+-parseInt(e(367))/4+-parseInt(e(363))/5+-parseInt(e(377))/6+parseInt(e(352))/7*(-parseInt(e(380))/8)+parseInt(e(405))/9*(parseInt(e(346))/10))break;t.push(t.shift())}catch(r){t.push(t.shift())}}(Sr),hr()[Fr(387)](function(r){var e=Fr,t={hasInitStreamInfo:!1,hasAudio:!1,hasVideo:!1,isRecording:!1,isValidatedFailed:!1,TAG_NAME:e(371),_opt:{debug:yr.debug,debugLevel:yr[e(347)],debugUuid:yr.debugUuid},destroy:function(){var r=e;t[r(357)](t[r(403)],r(381)),n&&(n.clear(),n=null),t[r(361)]=!1,t[r(396)]=!1,t[r(376)]=!1,t[r(383)]=!1,t[r(366)]=!1},startRecord:function(r,o){var a=e;if(!n)return t.debugError(t[a(403)],"startRecord() and mp4Recorder not init"),void postMessage({cmd:wr[a(384)],msg:a(389)});if(t[a(408)](r),t[a(396)]){var i=n.startRecord(o);t[a(357)](t[a(403)],a(413),i),0==i?(t[a(361)]=!0,postMessage({cmd:wr[a(362)]})):postMessage({cmd:wr[a(384)],msg:a(345)})}else postMessage({cmd:wr[a(384)],msg:a(400)})},stopRecord:function(){var o=e;if(kr(t[o(396)]))return t[o(398)](t.TAG_NAME,"stopRecord() and streamInfo not init"),void postMessage({cmd:wr.stopRecordError,msg:o(400)});if(kr(t[o(361)]))return t[o(398)](t[o(403)],o(415)),void postMessage({cmd:wr[o(390)],msg:o(397)});var a=n[o(374)]();if(t.debugLog(t.TAG_NAME,o(370),JSON[o(391)](a)),a&&a.outBuffer){var i=a.outBuffer,s=a[o(401)],u=r.HEAPU8[o(412)](i,i+s),c=new Uint8Array(u);postMessage({cmd:wr[o(402)],data:c},[c[o(355)]])}else postMessage({cmd:wr.stopRecordError,msg:o(404)})},setStreamInfo:function(r){var o=e;r[o(373)]&&r[o(373)][o(354)]&&(t[o(376)]=!0),r[o(379)]&&r[o(379)][o(354)]&&(t[o(383)]=!0),(t[o(383)]||t[o(376)])&&(n.setStreamsInfo(r),t[o(396)]=!0)},writeVideoFrame:function(r){var o=e;kr(t[o(396)])||t[o(383)]&&n[o(407)](r[o(394)],r[o(385)]?1:0,r.dts,r[o(372)])},writeAudioFrame:function(r){var o=e;kr(t.hasInitStreamInfo)||t[o(376)]&&n.writeAFrame(r[o(394)],r.ts)},recordingTimestampUpdate:function(r){var n=e;t[n(357)](t[n(403)],n(356),r),postMessage({cmd:wr[n(353)],msg:r})},validatedFailed:function(){var r=e;t[r(398)](t[r(403)],r(411)),t.isValidatedFailed=!0},timeEnd:function(){t[e(398)](t.TAG_NAME,"timeEnd, please contact the author(wx:bosswancheng) to get the new version")},debugLog:function(r){var n=e;if(t._opt[n(365)]&&t[n(365)]){for(var o,a=arguments[n(399)],i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];(o=t.debug)[n(348)][n(369)](o,[r][n(349)](i))}},debugWarn:function(r){var n=e;if(t[n(364)][n(365)]&&t[n(365)]){for(var o,a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];(o=t[n(365)]).warn[n(369)](o,[r][n(349)](i))}},debugError:function(r){var n=e;if(t[n(364)][n(365)]&&t[n(365)]){for(var o,a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];(o=t.debug)[n(409)][n(369)](o,[r].concat(i))}}};t[e(365)]=new Cr(t);var n=null;r[e(350)]&&(n=new(r[e(350)])(t)),postMessage({cmd:wr[e(393)]}),self[e(395)]=function(r){var n=e,o=r.data;switch(o[n(368)]){case gr[n(393)]:try{t[n(364)]=Object[n(392)](t[n(364)],JSON[n(406)](o[n(386)]))}catch(r){}break;case gr[n(351)]:t[n(351)](o[n(414)],o[n(358)]);break;case gr[n(374)]:t[n(374)]();break;case gr[n(359)]:t[n(410)](o);break;case gr[n(388)]:t.writeVideoFrame(o);break;case gr.destroy:t[n(378)](),t=null}}})});