jessibuca-pro-object-detector-demo.js
112 KB
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}var n=Object.freeze({__proto__:null,commonjsGlobal:t,commonjsRequire:function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")},unwrapExports:e,createCommonjsModule:r,getCjsExportFromNamespace:function(t){return t&&t.default||t}}),o=a;function a(t,e){var r=s();return(a=function(t,e){return r[t-=126]})(t,e)}!function(t,e){for(var r=a,n=t();;)try{if(251773===parseInt(r(138))/1*(parseInt(r(129))/2)+-parseInt(r(128))/3+parseInt(r(135))/4*(parseInt(r(136))/5)+-parseInt(r(134))/6+-parseInt(r(131))/7+-parseInt(r(130))/8+parseInt(r(127))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(s);var i=n[o(133)]((function(t){var e=o;t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t[e(132)][e(126)]=!0,t[e(132)].default=t[e(132)]}));function s(){var t=["1zmPFQV","__esModule","5623461pqWCXo","675096jhgVaP","856072bbzPIl","3883376sXYjkk","1808443YujXbJ","exports","createCommonjsModule","1131852ChGbAj","1425412rhYaNC","5YdGhsp","unwrapExports"];return(s=function(){return t})()}var u=n[o(137)](i),c=f;function f(t,e){var r=d();return(f=function(t,e){return r[t-=348]})(t,e)}!function(t,e){for(var r=f,n=t();;)try{if(924401===parseInt(r(358))/1*(parseInt(r(361))/2)+-parseInt(r(351))/3+-parseInt(r(357))/4*(parseInt(r(359))/5)+parseInt(r(356))/6+-parseInt(r(353))/7+-parseInt(r(354))/8+parseInt(r(363))/9*(parseInt(r(352))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(d);var l=r((function(t){var e=f;function r(e){var n=f;return t[n(365)]=r=n(360)==typeof Symbol&&n(362)==typeof Symbol[n(348)]?function(t){return typeof t}:function(t){var e=n;return t&&e(360)==typeof Symbol&&t[e(364)]===Symbol&&t!==Symbol[e(349)]?e(362):typeof t},t[n(365)][n(350)]=!0,t[n(365)][n(366)]=t[n(365)],r(e)}t[e(365)]=r,t.exports[e(350)]=!0,t[e(365)][e(366)]=t[e(365)]})),p=n[c(355)](l);function d(){var t=["exports","default","iterator","prototype","__esModule","5150487xloYjx","10izhJEg","8664950VkOwaC","7050400swQIbM","unwrapExports","6578208TzkEKm","1336MYICyP","1BxjZKh","14595eGyYzC","function","1239042vgwbzc","symbol","36174933ApJUFQ","constructor"];return(d=function(){return t})()}var h=m;!function(t,e){for(var r=m,n=t();;)try{if(839427===-parseInt(r(359))/1*(-parseInt(r(347))/2)+-parseInt(r(351))/3*(-parseInt(r(358))/4)+parseInt(r(354))/5+parseInt(r(348))/6+-parseInt(r(344))/7*(-parseInt(r(357))/8)+parseInt(r(340))/9+parseInt(r(352))/10*(-parseInt(r(342))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(y);var v=n[h(353)]((function(t){var e=h,r=l[e(356)];t.exports=function(t,n){var o=e;if("object"!==r(t)||null===t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a[o(345)](t,n||o(356));if(r(i)!==o(343))return i;throw new TypeError(o(346))}return(n===o(349)?String:Number)(t)},t[e(350)][e(355)]=!0,t[e(350)][e(356)]=t[e(350)]}));function m(t,e){var r=y();return(m=function(t,e){return r[t-=340]})(t,e)}function y(){var t=["@@toPrimitive must return a primitive value.","2523992dtnCYb","5643048pddrxZ","string","exports","209541EfOonG","39841700lnGOBk","createCommonjsModule","4172165lVjvMS","__esModule","default","8hkTRda","28LImMii","1zxWKbS","1954467iJqvZF","unwrapExports","11OeauRs","object","7563976fTlqAj","call"];return(y=function(){return t})()}n[h(341)](v);var g=w;function w(t,e){var r=b();return(w=function(t,e){return r[t-=352]})(t,e)}function b(){var t=["371GJfvVi","default","3014224gobyXu","8174175tMYePc","686124hxyIcd","string","8216412yjLuyX","createCommonjsModule","157144FdVxYF","symbol","__esModule","exports","86259cBzVTZ","55456065gQIAGN","148apWtfD"];return(b=function(){return t})()}!function(t,e){for(var r=w,n=t();;)try{if(941530===-parseInt(r(363))/1+-parseInt(r(361))/2+parseInt(r(356))/3*(-parseInt(r(358))/4)+-parseInt(r(362))/5+-parseInt(r(365))/6+parseInt(r(359))/7*(parseInt(r(352))/8)+parseInt(r(357))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(b);var _=n[g(366)]((function(t){var e=g,r=l[e(360)];t.exports=function(t){var n=e,o=v(t,n(364));return r(o)===n(353)?o:String(o)},t[e(355)][e(354)]=!0,t.exports[e(360)]=t.exports}));function E(t,e){var r=k();return(E=function(t,e){return r[t-=434]})(t,e)}function k(){var t=["120578PSySFA","key","length","value","prototype","749317dHFinu","7067511ShXIyu","__esModule","enumerable","3813515nZvHnO","8TuNqhw","12186585arQdCb","2600220cUeLiC","42DtFUwy","10006969OatRHd","exports","configurable","8lchhRq","defineProperty","60ierBjR"];return(k=function(){return t})()}e(_),function(t,e){for(var r=E,n=t();;)try{if(982131===-parseInt(r(442))/1+parseInt(r(437))/2*(parseInt(r(450))/3)+parseInt(r(447))/4*(parseInt(r(446))/5)+parseInt(r(449))/6+parseInt(r(451))/7*(parseInt(r(434))/8)+parseInt(r(448))/9+parseInt(r(436))/10*(-parseInt(r(443))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(k);var I=e(r((function(t){var e=E;function r(t,e){for(var r=E,n=0;n<e[r(439)];n++){var o=e[n];o[r(445)]=o[r(445)]||!1,o[r(453)]=!0,r(440)in o&&(o.writable=!0),Object.defineProperty(t,_(o[r(438)]),o)}}t[e(452)]=function(t,e,n){var o=E;return e&&r(t[o(441)],e),n&&r(t,n),Object[o(435)](t,"prototype",{writable:!1}),t},t[e(452)][e(444)]=!0,t[e(452)].default=t[e(452)]}))),P=F;!function(t,e){for(var r=F,n=t();;)try{if(104975===parseInt(r(223))/1+parseInt(r(218))/2*(parseInt(r(213))/3)+-parseInt(r(211))/4*(-parseInt(r(221))/5)+-parseInt(r(216))/6*(parseInt(r(222))/7)+parseInt(r(225))/8*(parseInt(r(217))/9)+parseInt(r(219))/10+-parseInt(r(220))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(T);var C=n[P(226)]((function(t){var e=P;t[e(224)]=function(t){if(void 0===t)throw new ReferenceError(F(212));return t},t.exports[e(215)]=!0,t.exports[e(214)]=t.exports}));function T(){var t=["4150850evLetU","15710qpUfCG","119VEWMdg","6720Dyqnkm","exports","24xqWyNA","createCommonjsModule","60tGEHUq","this hasn't been initialised - super() hasn't been called","3hdNgnq","default","__esModule","7482gKQZRY","510885qqnoTa","329686viPSEt","1145360VWlKnY"];return(T=function(){return t})()}function F(t,e){var r=T();return(F=function(t,e){return r[t-=211]})(t,e)}var S=e(C);!function(t,e){for(var r=D,n=t();;)try{if(291031===parseInt(r(396))/1*(parseInt(r(394))/2)+parseInt(r(404))/3*(-parseInt(r(403))/4)+parseInt(r(397))/5+-parseInt(r(401))/6+parseInt(r(407))/7*(-parseInt(r(399))/8)+parseInt(r(406))/9*(-parseInt(r(395))/10)+-parseInt(r(408))/11*(-parseInt(r(405))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(x);var j=r((function(t){var e=D;function r(e,n){var o=D;return t.exports=r=Object[o(393)]?Object[o(393)][o(402)]():function(t,e){return t[o(409)]=e,t},t[o(410)].__esModule=!0,t.exports.default=t.exports,r(e,n)}t[e(410)]=r,t[e(410)][e(398)]=!0,t[e(410)][e(400)]=t[e(410)]}));function D(t,e){var r=x();return(D=function(t,e){return r[t-=393]})(t,e)}function x(){var t=["20iGACZw","257995eIZFDe","2667500VDTKlB","__esModule","7312NhyHbO","default","1455096gpucgg","bind","716QLyBJR","8769HPQwvK","75360oisKyq","1254735IHExzE","3388lMWGxN","1276MFewOm","__proto__","exports","setPrototypeOf","4GvcSUn"];return(x=function(){return t})()}e(j);var O=R;!function(t,e){for(var r=R,n=t();;)try{if(711498===parseInt(r(447))/1*(parseInt(r(446))/2)+-parseInt(r(453))/3+-parseInt(r(450))/4*(-parseInt(r(462))/5)+-parseInt(r(464))/6*(parseInt(r(456))/7)+parseInt(r(457))/8+parseInt(r(461))/9+-parseInt(r(459))/10*(parseInt(r(452))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}($);var A=n[O(455)]((function(t){var e=O;t[e(454)]=function(t,e){var r=R;if("function"!=typeof e&&null!==e)throw new TypeError(r(463));t[r(448)]=Object[r(460)](e&&e[r(448)],{constructor:{value:t,writable:!0,configurable:!0}}),Object[r(458)](t,r(448),{writable:!1}),e&&j(t,e)},t[e(454)][e(449)]=!0,t.exports.default=t[e(454)]})),M=n[O(451)](A);function R(t,e){var r=$();return(R=function(t,e){return r[t-=446]})(t,e)}function $(){var t=["11NetYth","4088409vejnNr","exports","createCommonjsModule","7NOyWBR","10150512XSmYSN","defineProperty","17125630LqVDae","create","11263140VSiGxu","42695yyXaqj","Super expression must either be null or a function","738534NYFpEk","1126sazYAK","1801VeUoMQ","prototype","__esModule","176wwWIvI","unwrapExports"];return($=function(){return t})()}function z(t,e){var r=N();return(z=function(t,e){return r[t-=228]})(t,e)}var L=z;function N(){var t=["unwrapExports","default","796515pUyaCL","__esModule","Derived constructors may only return object or undefined","createCommonjsModule","905512sYlLNq","434mPDESZ","546qDQOUh","exports","9OCOlMu","600000LEXBFz","502530MzODpz","503885FbaCQG","197LWvVOM","623hdNvtf"];return(N=function(){return t})()}!function(t,e){for(var r=z,n=t();;)try{if(136055===-parseInt(r(239))/1*(parseInt(r(232))/2)+-parseInt(r(243))/3+parseInt(r(231))/4+parseInt(r(238))/5+parseInt(r(233))/6*(-parseInt(r(240))/7)+parseInt(r(236))/8+parseInt(r(235))/9*(parseInt(r(237))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(N);var W=n[L(230)]((function(t){var e=L,r=l[e(242)];t.exports=function(t,n){var o=e;if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError(o(229));return C(t)},t.exports[e(228)]=!0,t[e(234)][e(242)]=t[e(234)]})),U=n[L(241)](W);function B(t,e){var r=H();return(B=function(t,e){return r[t-=124]})(t,e)}function H(){var t=["17167LKtTni","5HXqFrI","__proto__","16YgGJUn","getPrototypeOf","1797160HPnaiq","bind","12FBoKkJ","334364lpfftw","592422hCWfQM","default","createCommonjsModule","654759VgnkyZ","3szyWmK","4717130IYQfee","exports","setPrototypeOf","__esModule","816508IGGxEk"];return(H=function(){return t})()}var Y=B;!function(t,e){for(var r=B,n=t();;)try{if(102108===-parseInt(r(142))/1*(parseInt(r(130))/2)+parseInt(r(136))/3*(parseInt(r(131))/4)+parseInt(r(124))/5*(-parseInt(r(132))/6)+parseInt(r(141))/7+-parseInt(r(126))/8*(parseInt(r(135))/9)+-parseInt(r(128))/10+parseInt(r(137))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(H);var V=n[Y(134)]((function(t){var e=Y;function r(e){var n=B;return t[n(138)]=r=Object[n(139)]?Object[n(127)][n(129)]():function(t){var e=n;return t[e(125)]||Object[e(127)](t)},t[n(138)][n(140)]=!0,t[n(138)][n(133)]=t[n(138)],r(e)}t[e(138)]=r,t.exports[e(140)]=!0,t[e(138)].default=t.exports})),q=e(V),G=K;function X(){var t=["2316DbbjAv","1807821jeWimt","[native code]","2733147SLImEl","4bLlQOi","exports","174zuNlap","57211GjRKLT","default","call","unwrapExports","609cBlYbe","24216ElWqVr","1591878wMYaTg","1rAicex","115970kUiqGd","toString","10891380GiJvut","indexOf","__esModule"];return(X=function(){return t})()}!function(t,e){for(var r=K,n=t();;)try{if(604973===parseInt(r(164))/1*(-parseInt(r(163))/2)+-parseInt(r(151))/3*(-parseInt(r(154))/4)+parseInt(r(165))/5*(parseInt(r(156))/6)+-parseInt(r(161))/7*(parseInt(r(162))/8)+parseInt(r(153))/9+parseInt(r(167))/10+parseInt(r(157))/11*(-parseInt(r(150))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(X);var J=r((function(t){var e=K;t[e(155)]=function(t){var e=K;return-1!==Function[e(166)][e(159)](t)[e(168)](e(152))},t.exports[e(149)]=!0,t.exports[e(158)]=t[e(155)]}));function K(t,e){var r=X();return(K=function(t,e){return r[t-=149]})(t,e)}function Q(t,e){var r=et();return(Q=function(t,e){return r[t-=204]})(t,e)}n[G(160)](J);var Z=Q;!function(t,e){for(var r=Q,n=t();;)try{if(446766===-parseInt(r(216))/1+-parseInt(r(207))/2+parseInt(r(217))/3+-parseInt(r(214))/4+parseInt(r(218))/5+parseInt(r(220))/6*(parseInt(r(204))/7)+-parseInt(r(212))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(et);var tt=n[Z(211)]((function(t){var e=Z;t[e(213)]=function(){var t=Q;if("undefined"==typeof Reflect||!Reflect[t(209)])return!1;if(Reflect[t(209)].sham)return!1;if(typeof Proxy===t(219))return!0;try{return Boolean[t(206)][t(215)][t(221)](Reflect[t(209)](Boolean,[],(function(){}))),!0}catch(t){return!1}},t[e(213)][e(210)]=!0,t[e(213)][e(205)]=t[e(213)]}));function et(){var t=["3336nwZgQz","call","1183DOSGaK","default","prototype","558516yVhapR","unwrapExports","construct","__esModule","createCommonjsModule","1611664gpIPmk","exports","1438912IeQkAd","valueOf","217575hzfRnk","2663628qIDqle","2614725mkozIG","function"];return(et=function(){return t})()}n[Z(208)](tt);var rt=ot;function nt(){var t=["createCommonjsModule","10RfwzyG","71656ppkTTR","968742otJxqF","__esModule","1467270cIIoFZ","exports","3muAnSq","3670NNPmAb","bind","546038kUzutB","push","28nOwhRF","apply","696qaWDau","2581337ohqTyZ","default","unwrapExports","525720MuMZLB"];return(nt=function(){return t})()}function ot(t,e){var r=nt();return(ot=function(t,e){return r[t-=427]})(t,e)}!function(t,e){for(var r=ot,n=t();;)try{if(263621===parseInt(r(442))/1+-parseInt(r(434))/2*(-parseInt(r(431))/3)+-parseInt(r(438))/4*(parseInt(r(432))/5)+-parseInt(r(429))/6+-parseInt(r(436))/7*(parseInt(r(445))/8)+parseInt(r(427))/9+parseInt(r(444))/10*(-parseInt(r(439))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(nt);var at=n[rt(443)]((function(t){var e=rt;function r(e,n,o){var a=ot;return tt()?(t.exports=r=Reflect.construct[a(433)](),t.exports[a(428)]=!0,t[a(430)][a(440)]=t[a(430)]):(t.exports=r=function(t,e,r){var n=a,o=[null];o[n(435)][n(437)](o,e);var i=new(Function.bind[n(437)](t,o));return r&&j(i,r.prototype),i},t[a(430)][a(428)]=!0,t[a(430)][a(440)]=t[a(430)]),r[a(437)](null,arguments)}t[e(430)]=r,t[e(430)][e(428)]=!0,t.exports[e(440)]=t[e(430)]}));n[rt(441)](at);var it=ut;function st(){var t=["has","createCommonjsModule","set","8490XrVgZw","9KFpbhD","358375oDiwiB","2646693nBdpqR","Super expression must either be null or a function","7028104jYdCzN","constructor","350autwYk","create","function","undefined","__esModule","get","exports","prototype","13189wwvFys","120126HBmyry","5773484aUmwHz","default","1430860xyXNPR","2PCviQc"];return(st=function(){return t})()}function ut(t,e){var r=st();return(ut=function(t,e){return r[t-=365]})(t,e)}!function(t,e){for(var r=ut,n=t();;)try{if(812007===-parseInt(r(367))/1+-parseInt(r(385))/2*(parseInt(r(368))/3)+parseInt(r(382))/4+-parseInt(r(384))/5+-parseInt(r(381))/6*(parseInt(r(372))/7)+-parseInt(r(370))/8*(-parseInt(r(366))/9)+parseInt(r(365))/10*(parseInt(r(380))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(st);var ct=n[it(387)]((function(t){var e=it;function r(e){var n=ut,o=typeof Map===n(374)?new Map:void 0;return t[n(378)]=r=function(t){var e=n;if(null===t||!J(t))return t;if(typeof t!==e(374))throw new TypeError(e(369));if(typeof o!==e(375)){if(o[e(386)](t))return o[e(377)](t);o[e(388)](t,r)}function r(){var r=e;return at(t,arguments,V(this)[r(371)])}return r[e(379)]=Object[e(373)](t[e(379)],{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),j(r,t)},t[n(378)][n(376)]=!0,t[n(378)].default=t[n(378)],r(e)}t.exports=r,t[e(378)][e(376)]=!0,t[e(378)][e(383)]=t.exports})),ft=e(ct);function lt(t,e){var r=dt();return(lt=function(t,e){return r[t-=429]})(t,e)}var pt=lt;function dt(){var t=["next","2175475WpjmVE","14026599sQSqtd","unwrapExports","__esModule","88GqXdOs","993796LlmFXd","6gHrtEA","value","exports","1495164zVjWNG","throw","305046WebecY","default","apply","then","443305MuZhpK","486320YGVain"];return(dt=function(){return t})()}!function(t,e){for(var r=lt,n=t();;)try{if(290111===parseInt(r(429))/1+parseInt(r(430))/2+parseInt(r(438))/3*(parseInt(r(437))/4)+parseInt(r(432))/5+-parseInt(r(441))/6+parseInt(r(443))/7*(parseInt(r(436))/8)+-parseInt(r(433))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(dt);var ht=r((function(t){var e=lt;function r(t,e,r,n,o,a,i){var s=lt;try{var u=t[a](i),c=u[s(439)]}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c)[s(446)](n,o)}t[e(440)]=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=lt,s=t[i(445)](e,n);function u(t){r(s,o,a,u,c,i(431),t)}function c(t){r(s,o,a,u,c,i(442),t)}u(void 0)}))}},t.exports[e(435)]=!0,t[e(440)][e(444)]=t[e(440)]})),vt=n[pt(434)](ht),mt=wt;!function(t,e){for(var r=wt,n=t();;)try{if(936424===-parseInt(r(392))/1+parseInt(r(354))/2+-parseInt(r(382))/3*(-parseInt(r(387))/4)+-parseInt(r(373))/5*(-parseInt(r(424))/6)+parseInt(r(421))/7+-parseInt(r(428))/8*(parseInt(r(415))/9)+-parseInt(r(366))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(gt);var yt=n[mt(388)]((function(t){var e=mt,r=l.default;function n(){var e=wt;t[e(408)]=n=function(){return o},t[e(408)][e(365)]=!0,t[e(408)][e(374)]=t.exports;var o={},a=Object.prototype,i=a.hasOwnProperty,s=Object[e(386)]||function(t,r,n){var o=e;t[r]=n[o(383)]},u=e(395)==typeof Symbol?Symbol:{},c=u[e(420)]||e(434),f=u[e(369)]||e(400),l=u[e(397)]||e(405);function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(t){p=function(t,e,r){return t[e]=r}}function d(t,r,n,o){var a,i,u,c,f=e,l=r&&r[f(404)]instanceof m?r:m,p=Object[f(368)](l[f(404)]),d=new F(o||[]);return s(p,"_invoke",{value:(a=t,i=n,u=d,c="suspendedStart",function(t,e){var r=wt;if(r(419)===c)throw new Error(r(399));if(r(431)===c){if(r(353)===t)throw e;return j()}for(u.method=t,u.arg=e;;){var n=u[r(433)];if(n){var o=P(n,u);if(o){if(o===v)continue;return o}}if(r(371)===u[r(398)])u[r(363)]=u[r(377)]=u[r(427)];else if(r(353)===u[r(398)]){if(r(380)===c)throw c=r(431),u[r(427)];u[r(375)](u.arg)}else r(378)===u[r(398)]&&u[r(422)](r(378),u[r(427)]);c=r(419);var s=h(a,i,u);if(r(430)===s[r(409)]){if(c=u[r(356)]?r(431):r(412),s[r(427)]===v)continue;return{value:s[r(427)],done:u.done}}"throw"===s[r(409)]&&(c=r(431),u[r(398)]=r(353),u.arg=s[r(427)])}})}),p}function h(t,r,n){var o=e;try{return{type:o(430),arg:t.call(r,n)}}catch(t){return{type:o(353),arg:t}}}o.wrap=d;var v={};function m(){}function y(){}function g(){}var w={};p(w,c,(function(){return this}));var b=Object[e(401)],_=b&&b(b(S([])));_&&_!==a&&i.call(_,c)&&(w=_);var E=g[e(404)]=m[e(404)]=Object[e(368)](w);function k(t){var r=e;["next","throw",r(378)][r(403)]((function(e){p(t,e,(function(t){return this[wt(407)](e,t)}))}))}function I(t,n){var o,a=e;function u(e,o,a,s){var c=wt,f=h(t[e],t,o);if("throw"!==f.type){var l=f[c(427)],p=l[c(383)];return p&&c(425)==r(p)&&i.call(p,c(410))?n[c(390)](p[c(410)])[c(436)]((function(t){u(c(371),t,a,s)}),(function(t){u(c(353),t,a,s)})):n[c(390)](p)[c(436)]((function(t){l[c(383)]=t,a(l)}),(function(t){return u(c(353),t,a,s)}))}s(f[c(427)])}s(this,a(407),{value:function(t,e){function r(){return new n((function(r,n){u(t,e,r,n)}))}return o=o?o[a(436)](r,r):r()}})}function P(t,r){var n=e,o=r[n(398)],a=t[n(420)][o];if(void 0===a)return r[n(433)]=null,n(353)===o&&t[n(420)][n(378)]&&(r.method=n(378),r.arg=void 0,P(t,r),n(353)===r[n(398)])||n(378)!==o&&(r[n(398)]=n(353),r[n(427)]=new TypeError("The iterator does not provide a '"+o+n(359))),v;var i=h(a,t[n(420)],r.arg);if(n(353)===i[n(409)])return r[n(398)]=n(353),r.arg=i[n(427)],r.delegate=null,v;var s=i[n(427)];return s?s[n(356)]?(r[t.resultName]=s[n(383)],r[n(371)]=t.nextLoc,n(378)!==r[n(398)]&&(r[n(398)]="next",r[n(427)]=void 0),r[n(433)]=null,v):s:(r[n(398)]=n(353),r[n(427)]=new TypeError(n(357)),r[n(433)]=null,v)}function C(t){var r=e,n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n[r(435)]=t[2],n[r(361)]=t[3]),this[r(389)][r(385)](n)}function T(t){var r=e,n=t[r(355)]||{};n[r(409)]=r(430),delete n.arg,t[r(355)]=n}function F(t){var r=e;this[r(389)]=[{tryLoc:"root"}],t.forEach(C,this),this[r(367)](!0)}function S(t){var r=e;if(t){var n=t[c];if(n)return n[r(414)](t);if(r(395)==typeof t[r(371)])return t;if(!isNaN(t[r(429)])){var o=-1,a=function e(){for(var n=r;++o<t[n(429)];)if(i.call(t,o))return e[n(383)]=t[o],e[n(356)]=!1,e;return e.value=void 0,e.done=!0,e};return a[r(371)]=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return y[e(404)]=g,s(E,e(417),{value:g,configurable:!0}),s(g,"constructor",{value:y,configurable:!0}),y[e(406)]=p(g,l,e(384)),o[e(376)]=function(t){var r=e,n=r(395)==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n[r(426)]))},o[e(418)]=function(t){var r=e;return Object[r(432)]?Object[r(432)](t,g):(t.__proto__=g,p(t,l,r(384))),t[r(404)]=Object[r(368)](E),t},o.awrap=function(t){return{__await:t}},k(I[e(404)]),p(I.prototype,f,(function(){return this})),o[e(423)]=I,o[e(364)]=function(t,r,n,a,i){var s=e;void 0===i&&(i=Promise);var u=new I(d(t,r,n,a),i);return o.isGeneratorFunction(r)?u:u[s(371)]()[s(436)]((function(t){var e=s;return t[e(356)]?t.value:u[e(371)]()}))},k(E),p(E,l,"Generator"),p(E,c,(function(){return this})),p(E,e(370),(function(){return e(416)})),o[e(372)]=function(t){var r=e,n=Object(t),o=[];for(var a in n)o[r(385)](a);return o.reverse(),function t(){for(var e=r;o[e(429)];){var a=o.pop();if(a in n)return t[e(383)]=a,t.done=!1,t}return t[e(356)]=!0,t}},o[e(413)]=S,F[e(404)]={constructor:F,reset:function(t){var r=e;if(this[r(396)]=0,this[r(371)]=0,this[r(363)]=this[r(377)]=void 0,this[r(356)]=!1,this[r(433)]=null,this[r(398)]=r(371),this[r(427)]=void 0,this[r(389)][r(403)](T),!t)for(var n in this)"t"===n.charAt(0)&&i[r(414)](this,n)&&!isNaN(+n[r(381)](1))&&(this[n]=void 0)},stop:function(){var t=e;this[t(356)]=!0;var r=this[t(389)][0][t(355)];if(t(353)===r[t(409)])throw r.arg;return this[t(411)]},dispatchException:function(t){var r=e;if(this.done)throw t;var n=this;function o(e,r){var o=wt;return u[o(409)]=o(353),u.arg=t,n[o(371)]=e,r&&(n[o(398)]=o(371),n[o(427)]=void 0),!!r}for(var a=this[r(389)][r(429)]-1;a>=0;--a){var s=this.tryEntries[a],u=s.completion;if(r(358)===s.tryLoc)return o(r(402));if(s[r(437)]<=this[r(396)]){var c=i.call(s,r(391)),f=i[r(414)](s,r(435));if(c&&f){if(this[r(396)]<s[r(391)])return o(s[r(391)],!0);if(this.prev<s[r(435)])return o(s[r(435)])}else if(c){if(this[r(396)]<s.catchLoc)return o(s[r(391)],!0)}else{if(!f)throw new Error(r(379));if(this.prev<s.finallyLoc)return o(s.finallyLoc)}}}},abrupt:function(t,r){for(var n=e,o=this[n(389)][n(429)]-1;o>=0;--o){var a=this[n(389)][o];if(a.tryLoc<=this.prev&&i.call(a,n(435))&&this[n(396)]<a.finallyLoc){var s=a;break}}s&&(n(394)===t||n(438)===t)&&s[n(437)]<=r&&r<=s.finallyLoc&&(s=null);var u=s?s.completion:{};return u[n(409)]=t,u[n(427)]=r,s?(this.method=n(371),this[n(371)]=s[n(435)],v):this.complete(u)},complete:function(t,r){var n=e;if(n(353)===t[n(409)])throw t[n(427)];return"break"===t[n(409)]||n(438)===t.type?this.next=t[n(427)]:n(378)===t[n(409)]?(this[n(411)]=this.arg=t[n(427)],this[n(398)]=n(378),this[n(371)]=n(402)):n(430)===t[n(409)]&&r&&(this[n(371)]=r),v},finish:function(t){for(var r=e,n=this[r(389)].length-1;n>=0;--n){var o=this[r(389)][n];if(o[r(435)]===t)return this[r(362)](o[r(355)],o.afterLoc),T(o),v}},catch:function(t){for(var r=e,n=this[r(389)][r(429)]-1;n>=0;--n){var o=this[r(389)][n];if(o[r(437)]===t){var a=o[r(355)];if("throw"===a[r(409)]){var i=a[r(427)];T(o)}return i}}throw new Error(r(393))},delegateYield:function(t,r,n){var o=e;return this.delegate={iterator:S(t),resultName:r,nextLoc:n},o(371)===this.method&&(this[o(427)]=void 0),v}},o}t[e(408)]=n,t[e(408)][e(365)]=!0,t[e(408)][e(374)]=t[e(408)]}));function gt(){var t=["prototype","@@toStringTag","displayName","_invoke","exports","type","__await","rval","suspendedYield","values","call","16464501kKicJW","[object Generator]","constructor","mark","executing","iterator","4208638cNjNxC","abrupt","AsyncIterator","140298IjAkYm","object","name","arg","8vIjkUX","length","normal","completed","setPrototypeOf","delegate","@@iterator","finallyLoc","then","tryLoc","continue","throw","1097848mkEfMY","completion","done","iterator result is not an object","root","' method","unwrapExports","afterLoc","complete","sent","async","__esModule","6849560JzSgNP","reset","create","asyncIterator","toString","next","keys","385VaMsXF","default","dispatchException","isGeneratorFunction","_sent","return","try statement without catch or finally","suspendedStart","slice","785163kkrINV","value","GeneratorFunction","push","defineProperty","20QbIXdL","createCommonjsModule","tryEntries","resolve","catchLoc","808485knDwXz","illegal catch attempt","break","function","prev","toStringTag","method","Generator is already running","@@asyncIterator","getPrototypeOf","end","forEach"];return(gt=function(){return t})()}function wt(t,e){var r=gt();return(wt=function(t,e){return r[t-=353]})(t,e)}function bt(){var t=["12621100VLcMMo","4021785lNpDlr","object","regeneratorRuntime = r","36YMiGoB","613705UBEOvJ","768oDAqSX","8834OStAFC","regeneratorRuntime","14WEBAdN","186996YoWinY","998322tbvjkM","391688JgyywN"];return(bt=function(){return t})()}n[mt(360)](yt);var _t=It;!function(t,e){for(var r=It,n=t();;)try{if(628556===parseInt(r(236))/1+parseInt(r(232))/2*(parseInt(r(231))/3)+-parseInt(r(235))/4+-parseInt(r(243))/5*(parseInt(r(242))/6)+parseInt(r(234))/7*(parseInt(r(237))/8)+parseInt(r(239))/9+-parseInt(r(238))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(bt);var Et=yt(),kt=Et;try{regeneratorRuntime=Et}catch(t){typeof globalThis===_t(240)?globalThis[_t(233)]=Et:Function("r",_t(241))(Et)}function It(t,e){var r=bt();return(It=function(t,e){return r[t-=231]})(t,e)}function Pt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=q(t);if(e){var o=q(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return U(this,r)}}var Ct,Tt=(Ct="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-object-detector-demo.js",document.baseURI).href,vt(kt.mark((function t(){var e,r,n,o,a,i,s,c,f,l,d,h,v,m,y,g,w,b,_,E,k,P,C,T,F,S,j,D,x,O,A,R,$,z,L,N,W,U,B,H,Y,V,q,G,X,J,K,Q,Z,tt,et,rt,nt,ot,at,it,st,ut,ct,lt,pt,dt,ht,vt,mt,yt,gt,wt,bt,_t,Et,It,Tt,Ft,St,jt,Dt,xt,Ot,At,Mt,Rt,$t,zt,Lt,Nt,Wt,Ut,Bt,Ht,Yt,Vt,qt,Gt,Xt,Jt,Kt,Qt,Zt,te,ee,re,ne,oe,ae,ie,se,ue,ce,fe,le,pe,de,he,ve,me,ye,ge,we,be,_e,Ee,ke,Ie,Pe,Ce,Te,Fe,Se,je,De,xe,Oe,Ae,Me,Re,$e,ze,Le,Ne,We,Ue,Be,He,Ye,Ve,qe,Ge,Xe,Je,Ke,Qe,Ze,tr,er,rr,nr,or,ar,ir,sr,ur,cr,fr,lr,pr,dr,hr,vr,mr,yr,gr,wr,br,_r,Er,kr,Ir,Pr,Cr,Tr,Fr,Sr,jr,Dr,xr,Or,Ar,Mr,Rr,$r,zr,Lr,Nr,Wr,Ur,Br,Hr,Yr,Vr,qr,Gr,Xr,Jr,Kr,Qr,Zr,tn,en,rn,nn,on,an,sn,un,cn,fn,ln,pn,dn,hn,vn,mn,yn,gn,wn,bn,_n,En,kn,In,Pn,Cn,Tn,Fn,Sn,jn,Dn,xn,On,An,Mn,Rn,$n,zn,Ln,Nn,Wn,Un,Bn,Hn,Yn,Vn,qn,Gn,Xn,Jn,Kn,Qn,Zn=arguments;return kt.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Qn=function(){function t(){Kn||(Kn=!0,r.calledRun=!0,T||(B(),n(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),H()))}G>0||(U(),G>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))},On=function(t,e,r,n){try{var o=Ut.getStreamFromFD(t),a=xn(o,e,r);return A[n>>2]=a,0}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return t.errno}},Dn=function(t,e,r,n,o){var a=pn(e,r);try{if(isNaN(a))return 61;var i=Ut.getStreamFromFD(t);return Nt.llseek(i,a,n),lt=[i.position>>>0,(ct=i.position,+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],O[o>>2]=lt[0],O[o+4>>2]=lt[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return t.errno}},jn=function(t,e,r,n){try{var o=Ut.getStreamFromFD(t),a=Sn(o,e,r);return A[n>>2]=a,0}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return t.errno}},Fn=function(t){try{var e=Ut.getStreamFromFD(t);return Nt.close(e),0}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return t.errno}},dn=function(t,e,r){var n=pn(t,e),o=new Date(1e3*n);O[r>>2]=o.getSeconds(),O[r+4>>2]=o.getMinutes(),O[r+8>>2]=o.getHours(),O[r+12>>2]=o.getDate(),O[r+16>>2]=o.getMonth(),O[r+20>>2]=o.getFullYear()-1900,O[r+24>>2]=o.getDay();var a=0|ln(o);O[r+28>>2]=a,O[r+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));O[r+32>>2]=c},dr=function(){this.allocated=[void 0],this.freelist=[]},pr=function(){Object.assign(dr.prototype,{get:function(t){return this.allocated[t]},has:function(t){return void 0!==this.allocated[t]},allocate:function(t){var e=this.freelist.pop()||this.allocated.length;return this.allocated[e]=t,e},free:function(t){this.allocated[t]=void 0,this.freelist.push(t)}})},ur=function(t,e,r,n,o,a){var i=e.length;i<2&&se("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==e[1]&&null!==r,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="",p="";for(c=0;c<i-2;++c)l+=(0!==c?", ":"")+"arg"+c,p+=(0!==c?", ":"")+"arg"+c+"Wired";var d="\n return function (".concat(l,") {\n if (arguments.length !== ").concat(i-2,") {\n throwBindingError('function ").concat(t," called with ' + arguments.length + ' arguments, expected ").concat(i-2,"');\n }");u&&(d+="var destructors = [];\n");var h=u?"destructors":"null",v=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],m=[se,n,o,qt,e[0],e[1]];for(s&&(d+="var thisWired = classParam.toWireType("+h+", this);\n"),c=0;c<i-2;++c)d+="var arg"+c+"Wired = argType"+c+".toWireType("+h+", arg"+c+"); // "+e[c+2].name+"\n",v.push("argType"+c),m.push(e[c+2]);if(s&&(p="thisWired"+(p.length>0?", ":"")+p),d+=(f||a?"var rv = ":"")+"invoker(fn"+(p.length>0?", ":"")+p+");\n",u)d+="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&&(d+=y+"_dtor("+y+"); // "+e[c].name+"\n",v.push(y+"_dtor"),m.push(e[c].destructorFunction))}f&&(d+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),d+="}\n",v.push(d);var g=sr(Function,v).apply(null,m);return Me(t,g)},sr=function(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type ".concat(p(t)," which is not a function"));var r=Me(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n},Ve=function(t,e,r,n,o,a,i,s,u,c,f){this.name=t,this.registeredClass=e,this.isReference=r,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=Ue:n?(this.toWireType=We,this.destructorFunction=null):(this.toWireType=Be,this.destructorFunction=null)},He=function(t){return this.fromWireType(A[t>>2])},Be=function(t,e){if(null===e)return this.isReference&&se("null is not a valid ".concat(this.name)),0;e.$$||se('Cannot pass "'.concat(br(e),'" as a ').concat(this.name)),e.$$.ptr||se("Cannot pass deleted object as a pointer of type ".concat(this.name)),e.$$.ptrType.isConst&&se("Cannot convert argument of type ".concat(e.$$.ptrType.name," to parameter type ").concat(this.name));var r=e.$$.ptrType.registeredClass;return Ne(e.$$.ptr,r,this.registeredClass)},Ue=function(t,e){var r;if(null===e)return this.isReference&&se("null is not a valid ".concat(this.name)),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||se('Cannot pass "'.concat(br(e),'" as a ').concat(this.name)),e.$$.ptr||se("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&e.$$.ptrType.isConst&&se("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(r=Ne(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&se("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:se("Cannot convert argument of type ".concat(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var o=e.clone();r=this.rawShare(r,gr.toHandle((function(){return o.delete()}))),null!==t&&t.push(this.rawDestructor,r)}break;default:se("Unsupporting sharing policy")}return r},We=function(t,e){if(null===e)return this.isReference&&se("null is not a valid ".concat(this.name)),0;e.$$||se('Cannot pass "'.concat(br(e),'" as a ').concat(this.name)),e.$$.ptr||se("Cannot pass deleted object as a pointer of type ".concat(this.name));var r=e.$$.ptrType.registeredClass;return Ne(e.$$.ptr,r,this.registeredClass)},Le=function(t,e,r,n,o,a,i,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]},Ae=function(){},De=function(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Se(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?je(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):je(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var a,i=this.registeredClass.getActualType(e),s=we[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var u=ge(e,this.registeredClass,a.registeredClass);return null===u?o.call(this):this.isSmartPointer?je(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:t}):je(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})},ce=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return ue(t,e,r)},ue=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e.name;if(t||se('type "'.concat(n,'" must have a positive integer typeid pointer')),Jt.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;se("Cannot register type '".concat(n,"' twice"))}if(Jt[t]=e,delete Kt[t],Xt.hasOwnProperty(t)){var o=Xt[t];delete Xt[t],o.forEach((function(t){return t()}))}},Gt=function(t){return this.fromWireType(O[t>>2])},Yt=function(t,e,r,n){Ut.varargs=n;try{e=Ut.getStr(e),e=Ut.calculateAt(t,e);var o=n?Ut.get():0;return Nt.open(e,r,o).fd}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return-t.errno}},Ht=function(t,e,r){Ut.varargs=r;try{var n=Ut.getStreamFromFD(t);switch(e){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=Ut.getp();O[a>>2]=o.c_iflag||0,O[a+4>>2]=o.c_oflag||0,O[a+8>>2]=o.c_cflag||0,O[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)S[a+i+17>>0]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=Ut.getp();var s=O[a>>2],u=O[a+4>>2],c=O[a+8>>2],f=O[a+12>>2],l=[];for(i=0;i<32;i++)l.push(S[a+i+17>>0]);return n.tty.ops.ioctl_tcsets(n.tty,e,{c_iflag:s,c_oflag:u,c_cflag:c,c_lflag:f,c_cc:l})}return 0;case 21519:return n.tty?(a=Ut.getp(),O[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=Ut.getp(),Nt.ioctl(n,e,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var p=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=Ut.getp(),D[a>>1]=p[0],D[a+2>>1]=p[1]}return 0;default:return-28}}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return-t.errno}},Bt=function(t,e,r){Ut.varargs=r;try{var n=Ut.getStreamFromFD(t);switch(e){case 0:if((o=Ut.get())<0)return-28;for(;Nt.streams[o];)o++;return Nt.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=Ut.get();return n.flags|=o,0;case 5:return o=Ut.getp(),D[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return vt(28),-1}}catch(t){if(void 0===Nt||"ErrnoError"!==t.name)throw t;return-t.errno}},Ft=function(t,e,r){var n=r>0?r:It(t)+1,o=new Array(n),a=Tt(t,o,0,o.length);return e&&(o.length=a),o},dt=function(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){A[this.ptr+4>>2]=t},this.get_type=function(){return A[this.ptr+4>>2]},this.set_destructor=function(t){A[this.ptr+8>>2]=t},this.get_destructor=function(){return A[this.ptr+8>>2]},this.set_caught=function(t){t=t?1:0,S[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=S[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,S[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=S[this.ptr+13>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)},this.set_adjusted_ptr=function(t){A[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return A[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Jn(this.get_type()))return A[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}},ut=function(){var t={a:Hn};function e(t,e){return Yn=t.exports,C=Yn.W,z(),Je=Yn._,V(Yn.X),Z("wasm-instantiate"),Yn}if(Q("wasm-instantiate"),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(t){k("Module.instantiateWasm callback failed with error: ".concat(t)),o(t)}return st(P,nt,t,(function(t){e(t.instance)})).catch(o),{}},st=function(t,e,r,n){return t||"function"!=typeof WebAssembly.instantiateStreaming||et(e)||rt(e)||f||"function"!=typeof fetch?it(e,r,n):fetch(e,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,r).then(n,(function(t){return k("wasm streaming compile failed: ".concat(t)),k("falling back to ArrayBuffer instantiation"),it(e,r,n)}))}))},it=function(t,e,r){return at(t).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(t){return t})).then(r,(function(t){k("failed to asynchronously prepare wasm: ".concat(t)),tt(t)}))},at=function(t){if(!P&&(s||c)){if("function"==typeof fetch&&!rt(t))return fetch(t,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+t+"'";return e.arrayBuffer()})).catch((function(){return ot(t)}));if(v)return new Promise((function(e,r){v(t,(function(t){return e(new Uint8Array(t))}),r)}))}return Promise.resolve().then((function(){return ot(t)}))},ot=function(t){if(t==nt&&P)return new Uint8Array(P);if(m)return m(t);throw"both async and sync fetching of the wasm failed"},tt=function(t){r.onAbort&&r.onAbort(t),k(t="Aborted("+t+")"),T=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw o(e),e},Z=function(t){if(G--,r.monitorRunDependencies&&r.monitorRunDependencies(G),0==G&&(null!==X&&(clearInterval(X),X=null),J)){var e=J;J=null,e()}},Q=function(t){G++,r.monitorRunDependencies&&r.monitorRunDependencies(G)},K=function(t){return t},q=function(t){W.unshift(t)},V=function(t){N.unshift(t)},Y=function(t){L.unshift(t)},H=function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)q(r.postRun.shift());pt(W)},B=function(){r.noFSInit||Nt.init.initialized||Nt.init(),Nt.ignorePermissions=!1,jt.init(),pt(N)},U=function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)Y(r.preRun.shift());pt(L)},z=function(){var t=C.buffer;r.HEAP8=S=new Int8Array(t),r.HEAP16=D=new Int16Array(t),r.HEAPU8=j=new Uint8Array(t),r.HEAPU16=x=new Uint16Array(t),r.HEAP32=O=new Int32Array(t),r.HEAPU32=A=new Uint32Array(t),r.HEAPF32=R=new Float32Array(t),r.HEAPF64=$=new Float64Array(t)},F=function(t,e){t||tt(e)},d=function(t){return r.locateFile?r.locateFile(t,l):l+t},(r=e=Zn.length>0&&void 0!==Zn[0]?Zn[0]:{}).ready=new Promise((function(t,e){n=t,o=e})),(r=void 0!==r?r:{}).locateFile=function(t,e){return"jessibuca-pro-object-detector-decoder.wasm"==t&&"undefined"!=typeof JESSIBUCA_PRO_OBJECT_DETECTOR_WASM_URL&&""!=JESSIBUCA_PRO_OBJECT_DETECTOR_WASM_URL?JESSIBUCA_PRO_OBJECT_DETECTOR_WASM_URL:e+t},a=Object.assign({},r),i="./this.program",s="object"==("undefined"==typeof window?"undefined":p(window)),c="function"==typeof importScripts,f="object"==("undefined"==typeof process?"undefined":p(process))&&"object"==p(process.versions)&&"string"==typeof process.versions.node,l="",!f){t.next=75;break}return t.next=60,import("module");case 60:y=t.sent,g=y.createRequire,w=g("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-object-detector-demo.js",document.baseURI).href),b=w("fs"),_=w("path"),l=c?_.dirname(l)+"/":w("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-object-detector-demo.js",document.baseURI).href)),h=function(t,e){return t=rt(t)?new URL(t):_.normalize(t),b.readFileSync(t,e?void 0:"utf8")},m=function(t){var e=h(t,!0);return e.buffer||(e=new Uint8Array(e)),e},v=function(t,e,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=rt(t)?new URL(t):_.normalize(t),b.readFile(t,n?void 0:"utf8",(function(t,o){t?r(t):e(n?o.buffer:o)}))},!r.thisProgram&&process.argv.length>1&&(i=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),r.inspect=function(){return"[Emscripten Module object]"},t.next=76;break;case 75:(s||c)&&(c?l=self.location.href:"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),Ct&&(l=Ct),l=0!==l.indexOf("blob:")?l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1):"",h=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},c&&(m=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),v=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});case 76:if(E=r.print||console.log.bind(console),k=r.printErr||console.error.bind(console),Object.assign(r,a),a=null,r.arguments&&r.arguments,r.thisProgram&&(i=r.thisProgram),r.quit&&r.quit,r.wasmBinary&&(P=r.wasmBinary),"object"!=("undefined"==typeof WebAssembly?"undefined":p(WebAssembly))&&tt("no native wasm support detected"),T=!1,L=[],N=[],W=[],G=0,X=null,J=null,et=function(t){return t.startsWith("data:application/octet-stream;base64,")},rt=function(t){return t.startsWith("file://")},r.locateFile?et(nt="jessibuca-pro-object-detector-decoder.wasm")||(nt=d(nt)):nt=new URL("jessibuca-pro-object-detector-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-object-detector-demo.js",document.baseURI).href).href,pt=function(t){for(;t.length>0;)t.shift()(r)},r.noExitRuntime,ht=function(t,e,r){throw new dt(t).init(e,r),t},vt=function(t){return O[Gn()>>2]=t,t},mt={isAbs:function(t){return"/"===t.charAt(0)},splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,e){for(var r=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r;r--)t.unshift("..");return t},normalize:function(t){var e=mt.isAbs(t),r="/"===t.substr(-1);return(t=mt.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||e||(t="."),t&&r&&(t+="/"),(e?"/":"")+t},dirname:function(t){var e=mt.splitPath(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:function(t){if("/"===t)return"/";var e=(t=(t=mt.normalize(t)).replace(/\/$/,"")).lastIndexOf("/");return-1===e?t:t.substr(e+1)},join:function(){var t=Array.prototype.slice.call(arguments);return mt.normalize(t.join("/"))},join2:function(t,e){return mt.normalize(t+"/"+e)}},yt=function(){if("object"==("undefined"==typeof crypto?"undefined":p(crypto))&&"function"==typeof crypto.getRandomValues)return function(t){return crypto.getRandomValues(t)};if(f)try{var t=w("crypto");if(t.randomFillSync)return function(e){return t.randomFillSync(e)};var e=t.randomBytes;return function(t){return t.set(e(t.byteLength)),t}}catch(t){}tt("initRandomDevice")},gt=function(t){return(gt=yt())(t)},wt={resolve:function(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?arguments[r]:Nt.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";t=n+"/"+t,e=mt.isAbs(n)}return(e?"/":"")+(t=mt.normalizeArray(t.split("/").filter((function(t){return!!t})),!e).join("/"))||"."},relative:function(t,e){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var r=t.length-1;r>=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=wt.resolve(t).substr(1),e=wt.resolve(e).substr(1);for(var n=r(t.split("/")),o=r(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("/")}},bt="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,_t=function(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.buffer&&bt)return bt.decode(t.subarray(e,o));for(var a="";e<o;){var i=t[e++];if(128&i){var s=63&t[e++];if(192!=(224&i)){var u=63&t[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&t[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},Et=[],It=function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e},Tt=function(t,e,r,n){if(!(n>0))return 0;for(var o=r,a=r+n-1,i=0;i<t.length;++i){var s=t.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++i)),s<=127){if(r>=a)break;e[r++]=s}else if(s<=2047){if(r+1>=a)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=a)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=a)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-o},St=function(){if(!Et.length){var t=null;if(f){var e=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=b.readSync(n,e)}catch(t){if(!t.toString().includes("EOF"))throw t;r=0}t=r>0?e.slice(0,r).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n");if(!t)return null;Et=Ft(t,!0)}return Et.shift()},jt={ttys:[],init:function(){},shutdown:function(){},register:function(t,e){jt.ttys[t]={input:[],output:[],ops:e},Nt.registerDevice(t,jt.stream_ops)},stream_ops:{open:function(t){var e=jt.ttys[t.node.rdev];if(!e)throw new Nt.ErrnoError(43);t.tty=e,t.seekable=!1},close:function(t){t.tty.ops.fsync(t.tty)},fsync:function(t){t.tty.ops.fsync(t.tty)},read:function(t,e,r,n,o){if(!t.tty||!t.tty.ops.get_char)throw new Nt.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=t.tty.ops.get_char(t.tty)}catch(t){throw new Nt.ErrnoError(29)}if(void 0===s&&0===a)throw new Nt.ErrnoError(6);if(null==s)break;a++,e[r+i]=s}return a&&(t.node.timestamp=Date.now()),a},write:function(t,e,r,n,o){if(!t.tty||!t.tty.ops.put_char)throw new Nt.ErrnoError(60);try{for(var a=0;a<n;a++)t.tty.ops.put_char(t.tty,e[r+a])}catch(t){throw new Nt.ErrnoError(29)}return n&&(t.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:function(t){return St()},put_char:function(t,e){null===e||10===e?(E(_t(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},fsync:function(t){t.output&&t.output.length>0&&(E(_t(t.output,0)),t.output=[])},ioctl_tcgets:function(t){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(t,e,r){return 0},ioctl_tiocgwinsz:function(t){return[24,80]}},default_tty1_ops:{put_char:function(t,e){null===e||10===e?(k(_t(t.output,0)),t.output=[]):0!=e&&t.output.push(e)},fsync:function(t){t.output&&t.output.length>0&&(k(_t(t.output,0)),t.output=[])}}},Dt=function(t){tt()},xt={ops_table:null,mount:function(t){return xt.createNode(null,"/",16895,0)},createNode:function(t,e,r,n){if(Nt.isBlkdev(r)||Nt.isFIFO(r))throw new Nt.ErrnoError(63);xt.ops_table||(xt.ops_table={dir:{node:{getattr:xt.node_ops.getattr,setattr:xt.node_ops.setattr,lookup:xt.node_ops.lookup,mknod:xt.node_ops.mknod,rename:xt.node_ops.rename,unlink:xt.node_ops.unlink,rmdir:xt.node_ops.rmdir,readdir:xt.node_ops.readdir,symlink:xt.node_ops.symlink},stream:{llseek:xt.stream_ops.llseek}},file:{node:{getattr:xt.node_ops.getattr,setattr:xt.node_ops.setattr},stream:{llseek:xt.stream_ops.llseek,read:xt.stream_ops.read,write:xt.stream_ops.write,allocate:xt.stream_ops.allocate,mmap:xt.stream_ops.mmap,msync:xt.stream_ops.msync}},link:{node:{getattr:xt.node_ops.getattr,setattr:xt.node_ops.setattr,readlink:xt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:xt.node_ops.getattr,setattr:xt.node_ops.setattr},stream:Nt.chrdev_stream_ops}});var o=Nt.createNode(t,e,r,n);return Nt.isDir(o.mode)?(o.node_ops=xt.ops_table.dir.node,o.stream_ops=xt.ops_table.dir.stream,o.contents={}):Nt.isFile(o.mode)?(o.node_ops=xt.ops_table.file.node,o.stream_ops=xt.ops_table.file.stream,o.usedBytes=0,o.contents=null):Nt.isLink(o.mode)?(o.node_ops=xt.ops_table.link.node,o.stream_ops=xt.ops_table.link.stream):Nt.isChrdev(o.mode)&&(o.node_ops=xt.ops_table.chrdev.node,o.stream_ops=xt.ops_table.chrdev.stream),o.timestamp=Date.now(),t&&(t.contents[e]=o,t.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(t){return t.contents?t.contents.subarray?t.contents.subarray(0,t.usedBytes):new Uint8Array(t.contents):new Uint8Array(0)},expandFileStorage:function(t,e){var r=t.contents?t.contents.length:0;if(!(r>=e)){e=Math.max(e,r*(r<1048576?2:1.125)>>>0),0!=r&&(e=Math.max(e,256));var n=t.contents;t.contents=new Uint8Array(e),t.usedBytes>0&&t.contents.set(n.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,e){if(t.usedBytes!=e)if(0==e)t.contents=null,t.usedBytes=0;else{var r=t.contents;t.contents=new Uint8Array(e),r&&t.contents.set(r.subarray(0,Math.min(e,t.usedBytes))),t.usedBytes=e}},node_ops:{getattr:function(t){var e={};return e.dev=Nt.isChrdev(t.mode)?t.id:1,e.ino=t.id,e.mode=t.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=t.rdev,Nt.isDir(t.mode)?e.size=4096:Nt.isFile(t.mode)?e.size=t.usedBytes:Nt.isLink(t.mode)?e.size=t.link.length:e.size=0,e.atime=new Date(t.timestamp),e.mtime=new Date(t.timestamp),e.ctime=new Date(t.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(t,e){void 0!==e.mode&&(t.mode=e.mode),void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.size&&xt.resizeFileStorage(t,e.size)},lookup:function(t,e){throw Nt.genericErrors[44]},mknod:function(t,e,r,n){return xt.createNode(t,e,r,n)},rename:function(t,e,r){if(Nt.isDir(t.mode)){var n;try{n=Nt.lookupNode(e,r)}catch(t){}if(n)for(var o in n.contents)throw new Nt.ErrnoError(55)}delete t.parent.contents[t.name],t.parent.timestamp=Date.now(),t.name=r,e.contents[r]=t,e.timestamp=t.parent.timestamp,t.parent=e},unlink:function(t,e){delete t.contents[e],t.timestamp=Date.now()},rmdir:function(t,e){var r=Nt.lookupNode(t,e);for(var n in r.contents)throw new Nt.ErrnoError(55);delete t.contents[e],t.timestamp=Date.now()},readdir:function(t){var e=[".",".."];for(var r in t.contents)t.contents.hasOwnProperty(r)&&e.push(r);return e},symlink:function(t,e,r){var n=xt.createNode(t,e,41471,0);return n.link=r,n},readlink:function(t){if(!Nt.isLink(t.mode))throw new Nt.ErrnoError(28);return t.link}},stream_ops:{read:function(t,e,r,n,o){var a=t.node.contents;if(o>=t.node.usedBytes)return 0;var i=Math.min(t.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),r);else for(var s=0;s<i;s++)e[r+s]=a[o+s];return i},write:function(t,e,r,n,o,a){if(!n)return 0;var i=t.node;if(i.timestamp=Date.now(),e.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=e.subarray(r,r+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=e.slice(r,r+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(e.subarray(r,r+n),o),n}if(xt.expandFileStorage(i,o+n),i.contents.subarray&&e.subarray)i.contents.set(e.subarray(r,r+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=e[r+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek:function(t,e,r){var n=e;if(1===r?n+=t.position:2===r&&Nt.isFile(t.node.mode)&&(n+=t.node.usedBytes),n<0)throw new Nt.ErrnoError(28);return n},allocate:function(t,e,r){xt.expandFileStorage(t.node,e+r),t.node.usedBytes=Math.max(t.node.usedBytes,e+r)},mmap:function(t,e,r,n,o){if(!Nt.isFile(t.node.mode))throw new Nt.ErrnoError(43);var a,i,s=t.node.contents;if(2&o||s.buffer!==S.buffer){if((r>0||r+e<s.length)&&(s=s.subarray?s.subarray(r,r+e):Array.prototype.slice.call(s,r,r+e)),i=!0,!(a=Dt()))throw new Nt.ErrnoError(48);S.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:function(t,e,r,n,o){return xt.stream_ops.write(t,e,0,n,r,!1),0}}},Ot=function(t,e,r,n){var o=n?"":K("al ".concat(t));v(t,(function(r){F(r,'Loading data file "'.concat(t,'" failed (no arrayBuffer).')),e(new Uint8Array(r)),o&&Z(o)}),(function(e){if(!r)throw'Loading data file "'.concat(t,'" failed.');r()})),o&&Q(o)},At=function(t,e,r,n,o,a){Nt.createDataFile(t,e,r,n,o,a)},Mt=r.preloadPlugins||[],Rt=function(t,e,r,n){"undefined"!=typeof Browser&&Browser.init();var o=!1;return Mt.forEach((function(a){o||a.canHandle(e)&&(a.handle(t,e,r,n),o=!0)})),o},$t=function(t,e,r,n,o,a,i,s,u,c){var f=e?wt.resolve(mt.join2(t,e)):t,l=K("cp ".concat(f));function p(r){function p(r){c&&c(),s||At(t,e,r,n,o,u),a&&a(),Z(l)}Rt(r,f,p,(function(){i&&i(),Z(l)}))||p(r)}Q(l),"string"==typeof r?Ot(r,(function(t){return p(t)}),i):p(r)},zt=function(t){var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===e)throw new Error("Unknown file open mode: ".concat(t));return e},Lt=function(t,e){var r=0;return t&&(r|=365),e&&(r|=146),r},Nt={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t=wt.resolve(t)))return{path:"",node:null};if((e=Object.assign({follow_mount:!0,recurse_count:0},e)).recurse_count>8)throw new Nt.ErrnoError(32);for(var r=t.split("/").filter((function(t){return!!t})),n=Nt.root,o="/",a=0;a<r.length;a++){var i=a===r.length-1;if(i&&e.parent)break;if(n=Nt.lookupNode(n,r[a]),o=mt.join2(o,r[a]),Nt.isMountpoint(n)&&(!i||i&&e.follow_mount)&&(n=n.mounted.root),!i||e.follow)for(var s=0;Nt.isLink(n.mode);){var u=Nt.readlink(o);if(o=wt.resolve(mt.dirname(o),u),n=Nt.lookupPath(o,{recurse_count:e.recurse_count+1}).node,s++>40)throw new Nt.ErrnoError(32)}}return{path:o,node:n}},getPath:function(t){for(var e;;){if(Nt.isRoot(t)){var r=t.mount.mountpoint;return e?"/"!==r[r.length-1]?"".concat(r,"/").concat(e):r+e:r}e=e?"".concat(t.name,"/").concat(e):t.name,t=t.parent}},hashName:function(t,e){for(var r=0,n=0;n<e.length;n++)r=(r<<5)-r+e.charCodeAt(n)|0;return(t+r>>>0)%Nt.nameTable.length},hashAddNode:function(t){var e=Nt.hashName(t.parent.id,t.name);t.name_next=Nt.nameTable[e],Nt.nameTable[e]=t},hashRemoveNode:function(t){var e=Nt.hashName(t.parent.id,t.name);if(Nt.nameTable[e]===t)Nt.nameTable[e]=t.name_next;else for(var r=Nt.nameTable[e];r;){if(r.name_next===t){r.name_next=t.name_next;break}r=r.name_next}},lookupNode:function(t,e){var r=Nt.mayLookup(t);if(r)throw new Nt.ErrnoError(r,t);for(var n=Nt.hashName(t.id,e),o=Nt.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===t.id&&a===e)return o}return Nt.lookup(t,e)},createNode:function(t,e,r,n){var o=new Nt.FSNode(t,e,r,n);return Nt.hashAddNode(o),o},destroyNode:function(t){Nt.hashRemoveNode(t)},isRoot:function(t){return t===t.parent},isMountpoint:function(t){return!!t.mounted},isFile:function(t){return 32768==(61440&t)},isDir:function(t){return 16384==(61440&t)},isLink:function(t){return 40960==(61440&t)},isChrdev:function(t){return 8192==(61440&t)},isBlkdev:function(t){return 24576==(61440&t)},isFIFO:function(t){return 4096==(61440&t)},isSocket:function(t){return 49152==(49152&t)},flagsToPermissionString:function(t){var e=["r","w","rw"][3&t];return 512&t&&(e+="w"),e},nodePermissions:function(t,e){return Nt.ignorePermissions||(!e.includes("r")||292&t.mode)&&(!e.includes("w")||146&t.mode)&&(!e.includes("x")||73&t.mode)?0:2},mayLookup:function(t){var e=Nt.nodePermissions(t,"x");return e||(t.node_ops.lookup?0:2)},mayCreate:function(t,e){try{return Nt.lookupNode(t,e),20}catch(t){}return Nt.nodePermissions(t,"wx")},mayDelete:function(t,e,r){var n;try{n=Nt.lookupNode(t,e)}catch(t){return t.errno}var o=Nt.nodePermissions(t,"wx");if(o)return o;if(r){if(!Nt.isDir(n.mode))return 54;if(Nt.isRoot(n)||Nt.getPath(n)===Nt.cwd())return 10}else if(Nt.isDir(n.mode))return 31;return 0},mayOpen:function(t,e){return t?Nt.isLink(t.mode)?32:Nt.isDir(t.mode)&&("r"!==Nt.flagsToPermissionString(e)||512&e)?31:Nt.nodePermissions(t,Nt.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var t=0;t<=Nt.MAX_OPEN_FDS;t++)if(!Nt.streams[t])return t;throw new Nt.ErrnoError(33)},getStreamChecked:function(t){var e=Nt.getStream(t);if(!e)throw new Nt.ErrnoError(8);return e},getStream:function(t){return Nt.streams[t]},createStream:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return Nt.FSStream||(Nt.FSStream=function(){this.shared={}},Nt.FSStream.prototype={},Object.defineProperties(Nt.FSStream.prototype,{object:{get:function(){return this.node},set:function(t){this.node=t}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}},flags:{get:function(){return this.shared.flags},set:function(t){this.shared.flags=t}},position:{get:function(){return this.shared.position},set:function(t){this.shared.position=t}}})),t=Object.assign(new Nt.FSStream,t),-1==e&&(e=Nt.nextfd()),t.fd=e,Nt.streams[e]=t,t},closeStream:function(t){Nt.streams[t]=null},chrdev_stream_ops:{open:function(t){var e=Nt.getDevice(t.node.rdev);t.stream_ops=e.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new Nt.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,e){return t<<8|e},registerDevice:function(t,e){Nt.devices[t]={stream_ops:e}},getDevice:function(t){return Nt.devices[t]},getMounts:function(t){for(var e=[],r=[t];r.length;){var n=r.pop();e.push(n),r.push.apply(r,n.mounts)}return e},syncfs:function(t,e){"function"==typeof t&&(e=t,t=!1),Nt.syncFSRequests++,Nt.syncFSRequests>1&&k("warning: ".concat(Nt.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var r=Nt.getMounts(Nt.root.mount),n=0;function o(t){return Nt.syncFSRequests--,e(t)}function a(t){if(t)return a.errored?void 0:(a.errored=!0,o(t));++n>=r.length&&o(null)}r.forEach((function(e){if(!e.type.syncfs)return a(null);e.type.syncfs(e,t,a)}))},mount:function(t,e,r){var n,o="/"===r,a=!r;if(o&&Nt.root)throw new Nt.ErrnoError(10);if(!o&&!a){var i=Nt.lookupPath(r,{follow_mount:!1});if(r=i.path,n=i.node,Nt.isMountpoint(n))throw new Nt.ErrnoError(10);if(!Nt.isDir(n.mode))throw new Nt.ErrnoError(54)}var s={type:t,opts:e,mountpoint:r,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,o?Nt.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(t){var e=Nt.lookupPath(t,{follow_mount:!1});if(!Nt.isMountpoint(e.node))throw new Nt.ErrnoError(28);var r=e.node,n=r.mounted,o=Nt.getMounts(n);Object.keys(Nt.nameTable).forEach((function(t){for(var e=Nt.nameTable[t];e;){var r=e.name_next;o.includes(e.mount)&&Nt.destroyNode(e),e=r}})),r.mounted=null;var a=r.mount.mounts.indexOf(n);r.mount.mounts.splice(a,1)},lookup:function(t,e){return t.node_ops.lookup(t,e)},mknod:function(t,e,r){var n=Nt.lookupPath(t,{parent:!0}).node,o=mt.basename(t);if(!o||"."===o||".."===o)throw new Nt.ErrnoError(28);var a=Nt.mayCreate(n,o);if(a)throw new Nt.ErrnoError(a);if(!n.node_ops.mknod)throw new Nt.ErrnoError(63);return n.node_ops.mknod(n,o,e,r)},create:function(t,e){return e=void 0!==e?e:438,e&=4095,e|=32768,Nt.mknod(t,e,0)},mkdir:function(t,e){return e=void 0!==e?e:511,e&=1023,e|=16384,Nt.mknod(t,e,0)},mkdirTree:function(t,e){for(var r=t.split("/"),n="",o=0;o<r.length;++o)if(r[o]){n+="/"+r[o];try{Nt.mkdir(n,e)}catch(t){if(20!=t.errno)throw t}}},mkdev:function(t,e,r){return void 0===r&&(r=e,e=438),e|=8192,Nt.mknod(t,e,r)},symlink:function(t,e){if(!wt.resolve(t))throw new Nt.ErrnoError(44);var r=Nt.lookupPath(e,{parent:!0}).node;if(!r)throw new Nt.ErrnoError(44);var n=mt.basename(e),o=Nt.mayCreate(r,n);if(o)throw new Nt.ErrnoError(o);if(!r.node_ops.symlink)throw new Nt.ErrnoError(63);return r.node_ops.symlink(r,n,t)},rename:function(t,e){var r,n,o=mt.dirname(t),a=mt.dirname(e),i=mt.basename(t),s=mt.basename(e);if(r=Nt.lookupPath(t,{parent:!0}).node,n=Nt.lookupPath(e,{parent:!0}).node,!r||!n)throw new Nt.ErrnoError(44);if(r.mount!==n.mount)throw new Nt.ErrnoError(75);var u,c=Nt.lookupNode(r,i),f=wt.relative(t,a);if("."!==f.charAt(0))throw new Nt.ErrnoError(28);if("."!==(f=wt.relative(e,o)).charAt(0))throw new Nt.ErrnoError(55);try{u=Nt.lookupNode(n,s)}catch(t){}if(c!==u){var l=Nt.isDir(c.mode),p=Nt.mayDelete(r,i,l);if(p)throw new Nt.ErrnoError(p);if(p=u?Nt.mayDelete(n,s,l):Nt.mayCreate(n,s))throw new Nt.ErrnoError(p);if(!r.node_ops.rename)throw new Nt.ErrnoError(63);if(Nt.isMountpoint(c)||u&&Nt.isMountpoint(u))throw new Nt.ErrnoError(10);if(n!==r&&(p=Nt.nodePermissions(r,"w")))throw new Nt.ErrnoError(p);Nt.hashRemoveNode(c);try{r.node_ops.rename(c,n,s)}catch(t){throw t}finally{Nt.hashAddNode(c)}}},rmdir:function(t){var e=Nt.lookupPath(t,{parent:!0}).node,r=mt.basename(t),n=Nt.lookupNode(e,r),o=Nt.mayDelete(e,r,!0);if(o)throw new Nt.ErrnoError(o);if(!e.node_ops.rmdir)throw new Nt.ErrnoError(63);if(Nt.isMountpoint(n))throw new Nt.ErrnoError(10);e.node_ops.rmdir(e,r),Nt.destroyNode(n)},readdir:function(t){var e=Nt.lookupPath(t,{follow:!0}).node;if(!e.node_ops.readdir)throw new Nt.ErrnoError(54);return e.node_ops.readdir(e)},unlink:function(t){var e=Nt.lookupPath(t,{parent:!0}).node;if(!e)throw new Nt.ErrnoError(44);var r=mt.basename(t),n=Nt.lookupNode(e,r),o=Nt.mayDelete(e,r,!1);if(o)throw new Nt.ErrnoError(o);if(!e.node_ops.unlink)throw new Nt.ErrnoError(63);if(Nt.isMountpoint(n))throw new Nt.ErrnoError(10);e.node_ops.unlink(e,r),Nt.destroyNode(n)},readlink:function(t){var e=Nt.lookupPath(t).node;if(!e)throw new Nt.ErrnoError(44);if(!e.node_ops.readlink)throw new Nt.ErrnoError(28);return wt.resolve(Nt.getPath(e.parent),e.node_ops.readlink(e))},stat:function(t,e){var r=Nt.lookupPath(t,{follow:!e}).node;if(!r)throw new Nt.ErrnoError(44);if(!r.node_ops.getattr)throw new Nt.ErrnoError(63);return r.node_ops.getattr(r)},lstat:function(t){return Nt.stat(t,!0)},chmod:function(t,e,r){var n;if(!(n="string"==typeof t?Nt.lookupPath(t,{follow:!r}).node:t).node_ops.setattr)throw new Nt.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,timestamp:Date.now()})},lchmod:function(t,e){Nt.chmod(t,e,!0)},fchmod:function(t,e){var r=Nt.getStreamChecked(t);Nt.chmod(r.node,e)},chown:function(t,e,r,n){var o;if(!(o="string"==typeof t?Nt.lookupPath(t,{follow:!n}).node:t).node_ops.setattr)throw new Nt.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(t,e,r){Nt.chown(t,e,r,!0)},fchown:function(t,e,r){var n=Nt.getStreamChecked(t);Nt.chown(n.node,e,r)},truncate:function(t,e){if(e<0)throw new Nt.ErrnoError(28);var r;if(!(r="string"==typeof t?Nt.lookupPath(t,{follow:!0}).node:t).node_ops.setattr)throw new Nt.ErrnoError(63);if(Nt.isDir(r.mode))throw new Nt.ErrnoError(31);if(!Nt.isFile(r.mode))throw new Nt.ErrnoError(28);var n=Nt.nodePermissions(r,"w");if(n)throw new Nt.ErrnoError(n);r.node_ops.setattr(r,{size:e,timestamp:Date.now()})},ftruncate:function(t,e){var r=Nt.getStreamChecked(t);if(0==(2097155&r.flags))throw new Nt.ErrnoError(28);Nt.truncate(r.node,e)},utime:function(t,e,r){var n=Nt.lookupPath(t,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(e,r)})},open:function(t,e,n){if(""===t)throw new Nt.ErrnoError(44);var o;if(n=void 0===n?438:n,n=64&(e="string"==typeof e?zt(e):e)?4095&n|32768:0,"object"==p(t))o=t;else{t=mt.normalize(t);try{o=Nt.lookupPath(t,{follow:!(131072&e)}).node}catch(t){}}var a=!1;if(64&e)if(o){if(128&e)throw new Nt.ErrnoError(20)}else o=Nt.mknod(t,n,0),a=!0;if(!o)throw new Nt.ErrnoError(44);if(Nt.isChrdev(o.mode)&&(e&=-513),65536&e&&!Nt.isDir(o.mode))throw new Nt.ErrnoError(54);if(!a){var i=Nt.mayOpen(o,e);if(i)throw new Nt.ErrnoError(i)}512&e&&!a&&Nt.truncate(o,0),e&=-131713;var s=Nt.createStream({node:o,path:Nt.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),!r.logReadFiles||1&e||(Nt.readFiles||(Nt.readFiles={}),t in Nt.readFiles||(Nt.readFiles[t]=1)),s},close:function(t){if(Nt.isClosed(t))throw new Nt.ErrnoError(8);t.getdents&&(t.getdents=null);try{t.stream_ops.close&&t.stream_ops.close(t)}catch(t){throw t}finally{Nt.closeStream(t.fd)}t.fd=null},isClosed:function(t){return null===t.fd},llseek:function(t,e,r){if(Nt.isClosed(t))throw new Nt.ErrnoError(8);if(!t.seekable||!t.stream_ops.llseek)throw new Nt.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new Nt.ErrnoError(28);return t.position=t.stream_ops.llseek(t,e,r),t.ungotten=[],t.position},read:function(t,e,r,n,o){if(n<0||o<0)throw new Nt.ErrnoError(28);if(Nt.isClosed(t))throw new Nt.ErrnoError(8);if(1==(2097155&t.flags))throw new Nt.ErrnoError(8);if(Nt.isDir(t.node.mode))throw new Nt.ErrnoError(31);if(!t.stream_ops.read)throw new Nt.ErrnoError(28);var a=void 0!==o;if(a){if(!t.seekable)throw new Nt.ErrnoError(70)}else o=t.position;var i=t.stream_ops.read(t,e,r,n,o);return a||(t.position+=i),i},write:function(t,e,r,n,o,a){if(n<0||o<0)throw new Nt.ErrnoError(28);if(Nt.isClosed(t))throw new Nt.ErrnoError(8);if(0==(2097155&t.flags))throw new Nt.ErrnoError(8);if(Nt.isDir(t.node.mode))throw new Nt.ErrnoError(31);if(!t.stream_ops.write)throw new Nt.ErrnoError(28);t.seekable&&1024&t.flags&&Nt.llseek(t,0,2);var i=void 0!==o;if(i){if(!t.seekable)throw new Nt.ErrnoError(70)}else o=t.position;var s=t.stream_ops.write(t,e,r,n,o,a);return i||(t.position+=s),s},allocate:function(t,e,r){if(Nt.isClosed(t))throw new Nt.ErrnoError(8);if(e<0||r<=0)throw new Nt.ErrnoError(28);if(0==(2097155&t.flags))throw new Nt.ErrnoError(8);if(!Nt.isFile(t.node.mode)&&!Nt.isDir(t.node.mode))throw new Nt.ErrnoError(43);if(!t.stream_ops.allocate)throw new Nt.ErrnoError(138);t.stream_ops.allocate(t,e,r)},mmap:function(t,e,r,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&t.flags))throw new Nt.ErrnoError(2);if(1==(2097155&t.flags))throw new Nt.ErrnoError(2);if(!t.stream_ops.mmap)throw new Nt.ErrnoError(43);return t.stream_ops.mmap(t,e,r,n,o)},msync:function(t,e,r,n,o){return t.stream_ops.msync?t.stream_ops.msync(t,e,r,n,o):0},munmap:function(t){return 0},ioctl:function(t,e,r){if(!t.stream_ops.ioctl)throw new Nt.ErrnoError(59);return t.stream_ops.ioctl(t,e,r)},readFile:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error('Invalid encoding type "'.concat(r.encoding,'"'));var n=Nt.open(t,r.flags),o=Nt.stat(t).size,a=new Uint8Array(o);return Nt.read(n,a,0,o,0),"utf8"===r.encoding?e=_t(a,0):"binary"===r.encoding&&(e=a),Nt.close(n),e},writeFile:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.flags=r.flags||577;var n=Nt.open(t,r.flags,r.mode);if("string"==typeof e){var o=new Uint8Array(It(e)+1),a=Tt(e,o,0,o.length);Nt.write(n,o,0,a,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error("Unsupported data type");Nt.write(n,e,0,e.byteLength,void 0,r.canOwn)}Nt.close(n)},cwd:function(){return Nt.currentPath},chdir:function(t){var e=Nt.lookupPath(t,{follow:!0});if(null===e.node)throw new Nt.ErrnoError(44);if(!Nt.isDir(e.node.mode))throw new Nt.ErrnoError(54);var r=Nt.nodePermissions(e.node,"x");if(r)throw new Nt.ErrnoError(r);Nt.currentPath=e.path},createDefaultDirectories:function(){Nt.mkdir("/tmp"),Nt.mkdir("/home"),Nt.mkdir("/home/web_user")},createDefaultDevices:function(){Nt.mkdir("/dev"),Nt.registerDevice(Nt.makedev(1,3),{read:function(){return 0},write:function(t,e,r,n,o){return n}}),Nt.mkdev("/dev/null",Nt.makedev(1,3)),jt.register(Nt.makedev(5,0),jt.default_tty_ops),jt.register(Nt.makedev(6,0),jt.default_tty1_ops),Nt.mkdev("/dev/tty",Nt.makedev(5,0)),Nt.mkdev("/dev/tty1",Nt.makedev(6,0));var t=new Uint8Array(1024),e=0,r=function(){return 0===e&&(e=gt(t).byteLength),t[--e]};Nt.createDevice("/dev","random",r),Nt.createDevice("/dev","urandom",r),Nt.mkdir("/dev/shm"),Nt.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){Nt.mkdir("/proc");var t=Nt.mkdir("/proc/self");Nt.mkdir("/proc/self/fd"),Nt.mount({mount:function(){var e=Nt.createNode(t,"fd",16895,73);return e.node_ops={lookup:function(t,e){var r=+e,n=Nt.getStreamChecked(r),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}}};return o.parent=o,o}},e}},{},"/proc/self/fd")},createStandardStreams:function(){r.stdin?Nt.createDevice("/dev","stdin",r.stdin):Nt.symlink("/dev/tty","/dev/stdin"),r.stdout?Nt.createDevice("/dev","stdout",null,r.stdout):Nt.symlink("/dev/tty","/dev/stdout"),r.stderr?Nt.createDevice("/dev","stderr",null,r.stderr):Nt.symlink("/dev/tty1","/dev/stderr"),Nt.open("/dev/stdin",0),Nt.open("/dev/stdout",1),Nt.open("/dev/stderr",1)},ensureErrnoError:function(){Nt.ErrnoError||(Nt.ErrnoError=function(t,e){this.name="ErrnoError",this.node=e,this.setErrno=function(t){this.errno=t},this.setErrno(t),this.message="FS error"},Nt.ErrnoError.prototype=new Error,Nt.ErrnoError.prototype.constructor=Nt.ErrnoError,[44].forEach((function(t){Nt.genericErrors[t]=new Nt.ErrnoError(t),Nt.genericErrors[t].stack="<generic error, no stack>"})))},staticInit:function(){Nt.ensureErrnoError(),Nt.nameTable=new Array(4096),Nt.mount(xt,{},"/"),Nt.createDefaultDirectories(),Nt.createDefaultDevices(),Nt.createSpecialDirectories(),Nt.filesystems={MEMFS:xt}},init:function(t,e,n){Nt.init.initialized=!0,Nt.ensureErrnoError(),r.stdin=t||r.stdin,r.stdout=e||r.stdout,r.stderr=n||r.stderr,Nt.createStandardStreams()},quit:function(){Nt.init.initialized=!1;for(var t=0;t<Nt.streams.length;t++){var e=Nt.streams[t];e&&Nt.close(e)}},findObject:function(t,e){var r=Nt.analyzePath(t,e);return r.exists?r.object:null},analyzePath:function(t,e){try{t=(n=Nt.lookupPath(t,{follow:!e})).path}catch(t){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Nt.lookupPath(t,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=mt.basename(t),n=Nt.lookupPath(t,{follow:!e}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(t){r.error=t.errno}return r},createPath:function(t,e,r,n){t="string"==typeof t?t:Nt.getPath(t);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=mt.join2(t,a);try{Nt.mkdir(i)}catch(t){}t=i}}return i},createFile:function(t,e,r,n,o){var a=mt.join2("string"==typeof t?t:Nt.getPath(t),e),i=Lt(n,o);return Nt.create(a,i)},createDataFile:function(t,e,r,n,o,a){var i=e;t&&(t="string"==typeof t?t:Nt.getPath(t),i=e?mt.join2(t,e):t);var s=Lt(n,o),u=Nt.create(i,s);if(r){if("string"==typeof r){for(var c=new Array(r.length),f=0,l=r.length;f<l;++f)c[f]=r.charCodeAt(f);r=c}Nt.chmod(u,146|s);var p=Nt.open(u,577);Nt.write(p,r,0,r.length,0,a),Nt.close(p),Nt.chmod(u,s)}},createDevice:function(t,e,r,n){var o=mt.join2("string"==typeof t?t:Nt.getPath(t),e),a=Lt(!!r,!!n);Nt.createDevice.major||(Nt.createDevice.major=64);var i=Nt.makedev(Nt.createDevice.major++,0);return Nt.registerDevice(i,{open:function(t){t.seekable=!1},close:function(t){n&&n.buffer&&n.buffer.length&&n(10)},read:function(t,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=r()}catch(t){throw new Nt.ErrnoError(29)}if(void 0===u&&0===i)throw new Nt.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(t.node.timestamp=Date.now()),i},write:function(t,e,r,o,a){for(var i=0;i<o;i++)try{n(e[r+i])}catch(t){throw new Nt.ErrnoError(29)}return o&&(t.node.timestamp=Date.now()),i}}),Nt.mkdev(o,a,i)},forceLoadFile:function(t){if(t.isDevice||t.isFolder||t.link||t.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{t.contents=Ft(h(t.url),!0),t.usedBytes=t.contents.length}catch(t){throw new Nt.ErrnoError(29)}},createLazyFile:function(t,e,r,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(t){if(!(t>this.length-1||t<0)){var e=t%this.chunkSize,r=t/this.chunkSize|0;return this.getter(r)[e]}},a.prototype.setDataGetter=function(t){this.getter=t},a.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",r,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+r+". Status: "+t.status);var e,n=Number(t.getResponseHeader("Content-length")),o=(e=t.getResponseHeader("Accept-Ranges"))&&"bytes"===e,a=(e=t.getResponseHeader("Content-Encoding"))&&"gzip"===e,i=1048576;o||(i=n);var s=this;s.setDataGetter((function(t){var e=t*i,o=(t+1)*i-1;if(o=Math.min(o,n-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,e){if(t>e)throw new Error("invalid range ("+t+", "+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",r,!1),n!==i&&o.setRequestHeader("Range","bytes="+t+"-"+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 "+r+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Ft(o.responseText||"",!0)}(e,o)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,E("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:r};var u=Nt.createFile(t,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(t,e,r,n,o){var a=t.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[r+s]=a[o+s];else for(s=0;s<i;s++)e[r+s]=a.get(o+s);return i}return Object.keys(u.stream_ops).forEach((function(t){var e=u.stream_ops[t];f[t]=function(){return Nt.forceLoadFile(u),e.apply(null,arguments)}})),f.read=function(t,e,r,n,o){return Nt.forceLoadFile(u),l(t,e,r,n,o)},f.mmap=function(t,e,r,n,o){Nt.forceLoadFile(u);var a=Dt();if(!a)throw new Nt.ErrnoError(48);return l(t,S,a,e,r),{ptr:a,allocated:!0}},u.stream_ops=f,u}},Wt=function(t,e){return t?_t(j,t,e):""},Ut={DEFAULT_POLLMASK:5,calculateAt:function(t,e,r){if(mt.isAbs(e))return e;var n;if(n=-100===t?Nt.cwd():Ut.getStreamFromFD(t).path,0==e.length){if(!r)throw new Nt.ErrnoError(44);return n}return mt.join2(n,e)},doStat:function(t,e,r){try{var n=t(e)}catch(t){if(t&&t.node&&mt.normalize(e)!==mt.normalize(Nt.getPath(t.node)))return-54;throw t}O[r>>2]=n.dev,O[r+4>>2]=n.mode,A[r+8>>2]=n.nlink,O[r+12>>2]=n.uid,O[r+16>>2]=n.gid,O[r+20>>2]=n.rdev,lt=[n.size>>>0,(ct=n.size,+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],O[r+24>>2]=lt[0],O[r+28>>2]=lt[1],O[r+32>>2]=4096,O[r+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return lt=[Math.floor(o/1e3)>>>0,(ct=Math.floor(o/1e3),+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],O[r+40>>2]=lt[0],O[r+44>>2]=lt[1],A[r+48>>2]=o%1e3*1e3,lt=[Math.floor(a/1e3)>>>0,(ct=Math.floor(a/1e3),+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],O[r+56>>2]=lt[0],O[r+60>>2]=lt[1],A[r+64>>2]=a%1e3*1e3,lt=[Math.floor(i/1e3)>>>0,(ct=Math.floor(i/1e3),+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],O[r+72>>2]=lt[0],O[r+76>>2]=lt[1],A[r+80>>2]=i%1e3*1e3,lt=[n.ino>>>0,(ct=n.ino,+Math.abs(ct)>=1?ct>0?+Math.floor(ct/4294967296)>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],O[r+88>>2]=lt[0],O[r+92>>2]=lt[1],0},doMsync:function(t,e,r,n,o){if(!Nt.isFile(e.node.mode))throw new Nt.ErrnoError(43);if(2&n)return 0;var a=j.slice(t,t+r);Nt.msync(e,a,o,r,n)},varargs:void 0,get:function(){var t=O[+Ut.varargs>>2];return Ut.varargs+=4,t},getp:function(){return Ut.get()},getStr:function(t){return Wt(t)},getStreamFromFD:function(t){return Nt.getStreamChecked(t)}},Vt={},qt=function(t){for(;t.length;){var e=t.pop();t.pop()(e)}},Xt={},Jt={},Kt={},Zt=function(t){throw new Qt(t)},te=function(t,e,r){function n(e){var n=r(e);n.length!==t.length&&Zt("Mismatched type converter count");for(var o=0;o<t.length;++o)ce(t[o],n[o])}t.forEach((function(t){Kt[t]=e}));var o=new Array(e.length),a=[],i=0;e.forEach((function(t,e){Jt.hasOwnProperty(t)?o[e]=Jt[t]:(a.push(t),Xt.hasOwnProperty(t)||(Xt[t]=[]),Xt[t].push((function(){o[e]=Jt[t],++i===a.length&&n(o)})))})),0===a.length&&n(o)},ee=function(t){var e=Vt[t];delete Vt[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields,a=o.map((function(t){return t.getterReturnType})).concat(o.map((function(t){return t.setterArgumentType})));te([t],a,(function(t){var a={};return o.forEach((function(e,r){var n=e.fieldName,i=t[r],s=e.getter,u=e.getterContext,c=t[r+o.length],f=e.setter,l=e.setterContext;a[n]={read:function(t){return i.fromWireType(s(u,t))},write:function(t,e){var r=[];f(l,t,c.toWireType(r,e)),qt(r)}}})),[{name:e.name,fromWireType:function(t){var e={};for(var r in a)e[r]=a[r].read(t);return n(t),e},toWireType:function(t,e){for(var o in a)if(!(o in e))throw new TypeError('Missing field: "'.concat(o,'"'));var i=r();for(o in a)a[o].write(i,e[o]);return null!==t&&t.push(n,i),i},argPackAdvance:fe,readValueFromPointer:Gt,destructorFunction:n}]}))},re=function(t,e,r,n,o){},ne=function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);oe=t},ae=function(t){for(var e="",r=t;j[r];)e+=oe[j[r++]];return e},se=function(t){throw new ie(t)},fe=8,le=function(t,e,r,n){e=ae(e),ce(t,{name:e,fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:n},argPackAdvance:fe,readValueFromPointer:function(t){return this.fromWireType(j[t])},destructorFunction:null})},pe=function(t){return{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}},de=function(t){se(t.$$.ptrType.registeredClass.name+" instance already deleted")},he=!1,ve=function(t){},me=function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},ye=function(t){t.count.value-=1,0===t.count.value&&me(t)},ge=function t(e,r,n){if(r===n)return e;if(void 0===n.baseClass)return null;var o=t(e,r,n.baseClass);return null===o?null:n.downcast(o)},we={},be=function(){return Object.keys(Te).length},_e=function(){var t=[];for(var e in Te)Te.hasOwnProperty(e)&&t.push(Te[e]);return t},Ee=[],ke=function(){for(;Ee.length;){var t=Ee.pop();t.$$.deleteScheduled=!1,t.delete()}},Pe=function(t){Ie=t,Ee.length&&Ie&&Ie(ke)},Ce=function(){r.getInheritedInstanceCount=be,r.getLiveInheritedInstances=_e,r.flushPendingDeletes=ke,r.setDelayFunction=Pe},Te={},Fe=function(t,e){for(void 0===e&&se("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e},Se=function(t,e){return e=Fe(t,e),Te[e]},je=function(t,e){return e.ptrType&&e.ptr||Zt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&Zt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},xe(Object.create(t,{$$:{value:e}}))},xe=function(t){return"undefined"==typeof FinalizationRegistry?(xe=function(t){return t},t):(he=new FinalizationRegistry((function(t){ye(t.$$)})),xe=function(t){var e=t.$$;if(e.smartPtr){var r={$$:e};he.register(t,r,t)}return t},ve=function(t){return he.unregister(t)},xe(t))},Oe=function(){Object.assign(Ae.prototype,{isAliasOf:function(t){if(!(this instanceof Ae))return!1;if(!(t instanceof Ae))return!1;var e=this.$$.ptrType.registeredClass,r=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o},clone:function(){if(this.$$.ptr||de(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=xe(Object.create(Object.getPrototypeOf(this),{$$:{value:pe(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete:function(){this.$$.ptr||de(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&se("Object already scheduled for deletion"),ve(this),ye(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted:function(){return!this.$$.ptr},deleteLater:function(){return this.$$.ptr||de(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&se("Object already scheduled for deletion"),Ee.push(this),1===Ee.length&&Ie&&Ie(ke),this.$$.deleteScheduled=!0,this}})},Me=function(t,e){return Object.defineProperty(e,"name",{value:t})},Re=function(t,e,r){if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||se("Function '".concat(r,"' called with an invalid number of arguments (").concat(arguments.length,") - expects one of (").concat(t[e].overloadTable,")!")),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}},$e=function(t,e,n){r.hasOwnProperty(t)?((void 0===n||void 0!==r[t].overloadTable&&void 0!==r[t].overloadTable[n])&&se("Cannot register public name '".concat(t,"' twice")),Re(r,t,t),r.hasOwnProperty(n)&&se("Cannot register multiple overloads of a function with the same number of arguments (".concat(n,")!")),r[t].overloadTable[n]=e):(r[t]=e,void 0!==n&&(r[t].numArguments=n))},ze=function(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_".concat(t):t},Ne=function(t,e,r){for(;e!==r;)e.upcast||se("Expected null or instance of ".concat(r.name,", got an instance of ").concat(e.name)),t=e.upcast(t),e=e.baseClass;return t},Ye=function(){Object.assign(Ve.prototype,{getPointee:function(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor:function(t){this.rawDestructor&&this.rawDestructor(t)},argPackAdvance:fe,readValueFromPointer:He,deleteObject:function(t){null!==t&&t.delete()},fromWireType:De})},qe=function(t,e,n){r.hasOwnProperty(t)||Zt("Replacing nonexistant public symbol"),void 0!==r[t].overloadTable&&void 0!==n?r[t].overloadTable[n]=e:(r[t]=e,r[t].argCount=n)},Ge=function(t,e,n){var o=r["dynCall_"+t];return n&&n.length?o.apply(null,[e].concat(n)):o.call(null,e)},Xe=[],Ke=function(t){var e=Xe[t];return e||(t>=Xe.length&&(Xe.length=t+1),Xe[t]=e=Je.get(t)),e},Qe=function(t,e,r){return t.includes("j")?Ge(t,e,r):Ke(e).apply(null,r)},Ze=function(t,e){var r=[];return function(){return r.length=0,Object.assign(r,arguments),Qe(t,e,r)}},tr=function(t,e){var r=(t=ae(t)).includes("j")?Ze(t,e):Ke(e);return"function"!=typeof r&&se("unknown function pointer with signature ".concat(t,": ").concat(e)),r},er=function(t,e){var r=Me(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},r},nr=function(t){var e=Xn(t),r=ae(e);return qn(e),r},or=function(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||Jt[e]||(Kt[e]?Kt[e].forEach(t):(r.push(e),n[e]=!0))})),new rr("".concat(t,": ")+r.map(nr).join([", "]))},ar=function(t,e,r,n,o,a,i,s,u,c,f,l,p){f=ae(f),a=tr(o,a),s&&(s=tr(i,s)),c&&(c=tr(u,c)),p=tr(l,p);var d=ze(f);$e(d,(function(){or("Cannot construct ".concat(f," due to unbound types"),[n])})),te([t,e,r],n?[n]:[],(function(e){var r,o;e=e[0],o=n?(r=e.registeredClass).instancePrototype:Ae.prototype;var i=Me(f,(function(){if(Object.getPrototypeOf(this)!==u)throw new ie("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new ie(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new ie("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 t.apply(this,arguments)})),u=Object.create(o,{constructor:{value:i}});i.prototype=u;var l=new Le(f,i,u,p,r,a,s,c);l.baseClass&&(void 0===l.baseClass.__derivedClasses&&(l.baseClass.__derivedClasses=[]),l.baseClass.__derivedClasses.push(l));var h=new Ve(f,l,!0,!1,!1),v=new Ve(f+"*",l,!1,!1,!1),m=new Ve(f+" const*",l,!1,!0,!1);return we[t]={pointerType:v,constPointerType:m},qe(d,i),[h,v,m]}))},ir=function(t,e){for(var r=[],n=0;n<t;n++)r.push(A[e+4*n>>2]);return r},cr=function(t,e,r,n,o,a){var i=ir(e,r);o=tr(n,o),te([],[t],(function(t){t=t[0];var r="constructor ".concat(t.name);if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new ie("Cannot register multiple constructors with identical number of parameters (".concat(e-1,") for class '").concat(t.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return t.registeredClass.constructor_body[e-1]=function(){or("Cannot construct ".concat(t.name," due to unbound types"),i)},te([],i,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=ur(r,n,null,o,a),[]})),[]}))},fr=function(t){var e=(t=t.trim()).indexOf("(");return-1!==e?t.substr(0,e):t},lr=function(t,e,r,n,o,a,i,s,u){var c=ir(r,n);e=ae(e),e=fr(e),a=tr(o,a),te([],[t],(function(t){t=t[0];var n="".concat(t.name,".").concat(e);function o(){or("Cannot call ".concat(n," due to unbound types"),c)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var f=t.registeredClass.instancePrototype,l=f[e];return void 0===l||void 0===l.overloadTable&&l.className!==t.name&&l.argCount===r-2?(o.argCount=r-2,o.className=t.name,f[e]=o):(Re(f,e,n),f[e].overloadTable[r-2]=o),te([],c,(function(o){var s=ur(n,o,t,a,i,u);return void 0===f[e].overloadTable?(s.argCount=r-2,f[e]=s):f[e].overloadTable[r-2]=s,[]})),[]}))},hr=new dr,vr=function(t){t>=hr.reserved&&0==--hr.get(t).refcount&&hr.free(t)},mr=function(){for(var t=0,e=hr.reserved;e<hr.allocated.length;++e)void 0!==hr.allocated[e]&&++t;return t},yr=function(){hr.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),hr.reserved=hr.allocated.length,r.count_emval_handles=mr},gr={toValue:function(t){return t||se("Cannot use deleted val. handle = "+t),hr.get(t).value},toHandle:function(t){switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return hr.allocate({refcount:1,value:t})}}},wr=function(t,e){e=ae(e),ce(t,{name:e,fromWireType:function(t){var e=gr.toValue(t);return vr(t),e},toWireType:function(t,e){return gr.toHandle(e)},argPackAdvance:fe,readValueFromPointer:Gt,destructorFunction:null})},br=function(t){if(null===t)return"null";var e=p(t);return"object"===e||"array"===e||"function"===e?t.toString():""+t},_r=function(t,e){switch(e){case 4:return function(t){return this.fromWireType(R[t>>2])};case 8:return function(t){return this.fromWireType($[t>>3])};default:throw new TypeError("invalid float width (".concat(e,"): ").concat(t))}},Er=function(t,e,r){e=ae(e),ce(t,{name:e,fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:fe,readValueFromPointer:_r(e,r),destructorFunction:null})},kr=function(t,e,r){switch(e){case 1:return r?function(t){return S[t>>0]}:function(t){return j[t>>0]};case 2:return r?function(t){return D[t>>1]}:function(t){return x[t>>1]};case 4:return r?function(t){return O[t>>2]}:function(t){return A[t>>2]};default:throw new TypeError("invalid integer width (".concat(e,"): ").concat(t))}},Ir=function(t,e,r,n,o){e=ae(e);var a=function(t){return t};if(0===n){var i=32-8*r;a=function(t){return t<<i>>>i}}var s=e.includes("unsigned");ce(t,{name:e,fromWireType:a,toWireType:s?function(t,e){return this.name,e>>>0}:function(t,e){return this.name,e},argPackAdvance:fe,readValueFromPointer:kr(e,r,0!==n),destructorFunction:null})},Pr=function(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=A[t>>2],r=A[t+4>>2];return new n(S.buffer,r,e)}r=ae(r),ce(t,{name:r,fromWireType:o,argPackAdvance:fe,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Cr=function(t,e,r){return Tt(t,j,e,r)},Tr=function(t,e){var r="std::string"===(e=ae(e));ce(t,{name:e,fromWireType:function(t){var e,n=A[t>>2],o=t+4;if(r)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==j[s]){var u=Wt(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(j[o+i]);e=c.join("")}return qn(t),e},toWireType:function(t,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||se("Cannot pass non-string to std::string"),n=r&&o?It(e):e.length;var a=Vn(4+n+1),i=a+4;if(A[a>>2]=n,r&&o)Cr(e,i,n+1);else if(o)for(var s=0;s<n;++s){var u=e.charCodeAt(s);u>255&&(qn(i),se("String has UTF-16 code units that do not fit in 8 bits")),j[i+s]=u}else for(s=0;s<n;++s)j[i+s]=e[s];return null!==t&&t.push(qn,a),a},argPackAdvance:fe,readValueFromPointer:He,destructorFunction:function(t){qn(t)}})},Fr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Sr=function(t,e){for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&x[n];)++n;if((r=n<<1)-t>32&&Fr)return Fr.decode(j.subarray(t,r));for(var a="",i=0;!(i>=e/2);++i){var s=D[t+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},jr=function(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=e,o=(r-=2)<2*t.length?r/2:t.length,a=0;a<o;++a){var i=t.charCodeAt(a);D[e>>1]=i,e+=2}return D[e>>1]=0,e-n},Dr=function(t){return 2*t.length},xr=function(t,e){for(var r=0,n="";!(r>=e/4);){var o=O[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Or=function(t,e,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=e,o=n+r-4,a=0;a<t.length;++a){var i=t.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&t.charCodeAt(++a)),O[e>>2]=i,(e+=4)+4>o)break}return O[e>>2]=0,e-n},Ar=function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e},Mr=function(t,e,r){var n,o,a,i,s;r=ae(r),2===e?(n=Sr,o=jr,i=Dr,a=function(){return x},s=1):4===e&&(n=xr,o=Or,i=Ar,a=function(){return A},s=2),ce(t,{name:r,fromWireType:function(t){for(var r,o=A[t>>2],i=a(),u=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==i[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+e}}return qn(t),r},toWireType:function(t,n){"string"!=typeof n&&se("Cannot pass non-string to C++ string type ".concat(r));var a=i(n),u=Vn(4+a+e);return A[u>>2]=a>>s,o(n,u+4,a+e),null!==t&&t.push(qn,u),u},argPackAdvance:fe,readValueFromPointer:Gt,destructorFunction:function(t){qn(t)}})},Rr=function(t,e,r,n,o,a){Vt[t]={name:ae(e),rawConstructor:tr(r,n),rawDestructor:tr(o,a),fields:[]}},$r=function(t,e,r,n,o,a,i,s,u,c){Vt[t].fields.push({fieldName:ae(e),getterReturnType:r,getter:tr(n,o),getterContext:a,setterArgumentType:i,setter:tr(s,u),setterContext:c})},zr=function(t,e){e=ae(e),ce(t,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},Lr=function(t){do{var e=A[t>>2],r=A[(t+=4)>>2],n=A[(t+=4)>>2];t+=4;var o=Wt(e);Nt.createPath("/",mt.dirname(o),!0,!0),Nt.createDataFile(o,null,S.subarray(n,n+r),!0,!0,!0)}while(A[t>>2])},Nr=function(){return 1},Wr=function(t,e){var r=Jt[t];return void 0===r&&se(e+" has unknown type "+nr(t)),r},Ur=function(t,e,r){var n=[],o=t.toWireType(n,r);return n.length&&(A[e>>2]=gr.toHandle(n)),o},Br=function(t,e,r){return t=gr.toValue(t),e=Wr(e,"emval::as"),Ur(e,r,t)},Hr={},Yr=function(t){var e=Hr[t];return void 0===e?ae(t):e},Vr=[],qr=function(t,e,r,n,o){return(t=Vr[t])(e=gr.toValue(e),e[r=Yr(r)],n,o)},Gr=function(){return"object"==("undefined"==typeof globalThis?"undefined":p(globalThis))?globalThis:Function("return this")()},Xr=function(t){return 0===t?gr.toHandle(Gr()):(t=Yr(t),gr.toHandle(Gr()[t]))},Jr=function(t){var e=Vr.length;return Vr.push(t),e},Kr=function(t,e){for(var r=new Array(t),n=0;n<t;++n)r[n]=Wr(A[e+4*n>>2],"parameter "+n);return r},Qr=function(t,e,r){var n=Kr(t,e),o=n.shift();t--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===r&&s.push("obj");for(var u=["retType"],c=[o],f=0;f<t;++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===r?"new func":"func.call","(").concat(s.join(", "),");\n"),f=0;f<t;++f)n[f].deleteObject&&(a+=" argType".concat(f,".deleteObject(arg").concat(f,");\n"));o.isVoid||(u.push("emval_returnValue"),c.push(Ur),a+=" return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",u.push(a);var l=sr(Function,u).apply(null,c),p="methodCaller<(".concat(n.map((function(t){return t.name})).join(", "),") => ").concat(o.name,">");return Jr(Me(p,l))},Zr=function(t,e){return t=gr.toValue(t),e=gr.toValue(e),gr.toHandle(t[e])},tn=function(t){t>4&&(hr.get(t).refcount+=1)},en=function(){return gr.toHandle([])},rn=function(t){return gr.toHandle(Yr(t))},nn=function(){return gr.toHandle({})},on=function(t){var e=gr.toValue(t);qt(e),vr(t)},an=function(t,e,r){t=gr.toValue(t),e=gr.toValue(e),r=gr.toValue(r),t[e]=r},sn=function(t,e){var r=(t=Wr(t,"_emval_take_value")).readValueFromPointer(e);return gr.toHandle(r)},un=function(t){return t%4==0&&(t%100!=0||t%400==0)},cn=[0,31,60,91,121,152,182,213,244,274,305,335],fn=[0,31,59,90,120,151,181,212,243,273,304,334],ln=function(t){return(un(t.getFullYear())?cn:fn)[t.getMonth()]+t.getDate()-1},pn=function(t,e){return e+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*e:NaN},hn=function(t){var e=It(t)+1,r=Vn(e);return r&&Cr(t,r,e),r},vn=function(t,e,r){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(t){var e=t.toTimeString().match(/\(([A-Za-z ]+)\)$/);return e?e[1]:"GMT"}A[t>>2]=60*u,O[e>>2]=Number(i!=s);var f=c(o),l=c(a),p=hn(f),d=hn(l);s<i?(A[r>>2]=p,A[r+4>>2]=d):(A[r>>2]=d,A[r+4>>2]=p)},mn=function(){tt("")},yn=function(){return Date.now()},gn=function(){return performance.now()},wn=function(t,e,r){return j.copyWithin(t,e,e+r)},bn=function(t){tt("OOM")},_n=function(t){j.length,bn()},En={},kn=function(){return i||"./this.program"},In=function t(){if(!t.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":p(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:kn()};for(var r in En)void 0===En[r]?delete e[r]:e[r]=En[r];var n=[];for(var r in e)n.push("".concat(r,"=").concat(e[r]));t.strings=n}return t.strings},Pn=function(t,e){for(var r=0;r<t.length;++r)S[e++>>0]=t.charCodeAt(r);S[e>>0]=0},Cn=function(t,e){var r=0;return In().forEach((function(n,o){var a=e+r;A[t+4*o>>2]=a,Pn(n,a),r+=n.length+1})),0},Tn=function(t,e){var r=In();A[t>>2]=r.length;var n=0;return r.forEach((function(t){return n+=t.length+1})),A[e>>2]=n,0},Sn=function(t,e,r,n){for(var o=0,a=0;a<r;a++){var i=A[e>>2],s=A[e+4>>2];e+=8;var u=Nt.read(t,S,i,s,n);if(u<0)return-1;if(o+=u,u<s)break;void 0!==n&&(n+=u)}return o},xn=function(t,e,r,n){for(var o=0,a=0;a<r;a++){var i=A[e>>2],s=A[e+4>>2];e+=8;var u=Nt.write(t,S,i,s,n);if(u<0)return-1;o+=u,void 0!==n&&(n+=u)}return o},An=function(t,e){for(var r=0,n=0;n<=e;r+=t[n++]);return r},Mn=[31,29,31,30,31,30,31,31,30,31,30,31],Rn=[31,28,31,30,31,30,31,31,30,31,30,31],$n=function(t,e){for(var r=new Date(t.getTime());e>0;){var n=un(r.getFullYear()),o=r.getMonth(),a=(n?Mn:Rn)[o];if(!(e>a-r.getDate()))return r.setDate(r.getDate()+e),r;e-=a-r.getDate()+1,r.setDate(1),o<11?r.setMonth(o+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r},zn=function(t,e){S.set(t,e)},Ln=function(t,e,r,n){var o=A[n+40>>2],a={tm_sec:O[n>>2],tm_min:O[n+4>>2],tm_hour:O[n+8>>2],tm_mday:O[n+12>>2],tm_mon:O[n+16>>2],tm_year:O[n+20>>2],tm_wday:O[n+24>>2],tm_yday:O[n+28>>2],tm_isdst:O[n+32>>2],tm_gmtoff:O[n+36>>2],tm_zone:o?Wt(o):""},i=Wt(r),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)i=i.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(t,e,r){for(var n="number"==typeof t?t.toString():t||"";n.length<e;)n=r[0]+n;return n}function p(t,e){return l(t,e,"0")}function d(t,e){function r(t){return t<0?-1:t>0?1:0}var n;return 0===(n=r(t.getFullYear()-e.getFullYear()))&&0===(n=r(t.getMonth()-e.getMonth()))&&(n=r(t.getDate()-e.getDate())),n}function h(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function v(t){var e=$n(new Date(t.tm_year+1900,0,1),t.tm_yday),r=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),o=h(r),a=h(n);return d(o,e)<=0?d(a,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m={"%a":function(t){return c[t.tm_wday].substring(0,3)},"%A":function(t){return c[t.tm_wday]},"%b":function(t){return f[t.tm_mon].substring(0,3)},"%B":function(t){return f[t.tm_mon]},"%C":function(t){return p((t.tm_year+1900)/100|0,2)},"%d":function(t){return p(t.tm_mday,2)},"%e":function(t){return l(t.tm_mday,2," ")},"%g":function(t){return v(t).toString().substring(2)},"%G":function(t){return v(t)},"%H":function(t){return p(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),p(e,2)},"%j":function(t){return p(t.tm_mday+An(un(t.tm_year+1900)?Mn:Rn,t.tm_mon-1),3)},"%m":function(t){return p(t.tm_mon+1,2)},"%M":function(t){return p(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return p(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=t.tm_yday+7-t.tm_wday;return p(Math.floor(e/7),2)},"%V":function(t){var e=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&e++,e){if(53==e){var r=(t.tm_wday+371-t.tm_yday)%7;4==r||3==r&&un(t.tm_year)||(e=1)}}else{e=52;var n=(t.tm_wday+7-t.tm_yday-1)%7;(4==n||5==n&&un(t.tm_year%400-1))&&e++}return p(e,2)},"%w":function(t){return t.tm_wday},"%W":function(t){var e=t.tm_yday+7-(t.tm_wday+6)%7;return p(Math.floor(e/7),2)},"%y":function(t){return(t.tm_year+1900).toString().substring(2)},"%Y":function(t){return t.tm_year+1900},"%z":function(t){var e=t.tm_gmtoff,r=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(r?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in i=i.replace(/%%/g,"\0\0"),m)i.includes(u)&&(i=i.replace(new RegExp(u,"g"),m[u](a)));i=i.replace(/\0\0/g,"%");var y=Ft(i,!1);return y.length>e?0:(zn(y,t),y.length-1)},Nn=function(t,e,r,n,o){return Ln(t,e,r,n)},Wn=function(t,e,r,n){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=Nt.nextInode++,this.name=e,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},Un=365,Bn=146,Object.defineProperties(Wn.prototype,{read:{get:function(){return(this.mode&Un)===Un},set:function(t){t?this.mode|=Un:this.mode&=-366}},write:{get:function(){return(this.mode&Bn)===Bn},set:function(t){t?this.mode|=Bn:this.mode&=-147}},isFolder:{get:function(){return Nt.isDir(this.mode)}},isDevice:{get:function(){return Nt.isChrdev(this.mode)}}}),Nt.FSNode=Wn,Nt.createPreloadedFile=$t,Nt.staticInit(),r.FS_createPath=Nt.createPath,r.FS_createDataFile=Nt.createDataFile,r.FS_createPreloadedFile=Nt.createPreloadedFile,r.FS_unlink=Nt.unlink,r.FS_createLazyFile=Nt.createLazyFile,r.FS_createDevice=Nt.createDevice,Qt=r.InternalError=function(t){M(r,t);var e=Pt(r);function r(t){var n;return u(this,r),(n=e.call(this,t)).name="InternalError",n}return I(r)}(ft(Error)),ne(),ie=r.BindingError=function(t){M(r,t);var e=Pt(r);function r(t){var n;return u(this,r),(n=e.call(this,t)).name="BindingError",n}return I(r)}(ft(Error)),Oe(),Ce(),Ye(),rr=r.UnboundTypeError=er(Error,"UnboundTypeError"),pr(),yr(),Hn={i:ht,t:Bt,K:Ht,s:Yt,x:ee,E:re,P:le,A:ar,z:cr,l:lr,O:wr,v:Er,f:Ir,b:Pr,w:Tr,o:Mr,y:Rr,h:$r,Q:zr,R:Lr,M:Nr,g:Br,k:qr,a:vr,V:Xr,j:Qr,e:Zr,m:tn,U:en,c:rn,B:nn,d:on,T:an,S:sn,C:dn,H:vn,p:mn,u:yn,L:gn,N:wn,G:_n,I:Cn,J:Tn,n:Fn,r:jn,D:Dn,q:On,F:Nn},Yn=ut(),Vn=function(t){return(Vn=Yn.Y)(t)},qn=function(t){return(qn=Yn.Z)(t)},Gn=function(){return(Gn=Yn.$)()},Xn=function(t){return(Xn=Yn.aa)(t)},Jn=function(t){return(Jn=Yn.ba)(t)},r.dynCall_ji=function(t,e){return(r.dynCall_ji=Yn.ca)(t,e)},r.dynCall_jiii=function(t,e,n,o){return(r.dynCall_jiii=Yn.da)(t,e,n,o)},r.dynCall_jiji=function(t,e,n,o,a){return(r.dynCall_jiji=Yn.ea)(t,e,n,o,a)},r.dynCall_viijii=function(t,e,n,o,a,i,s){return(r.dynCall_viijii=Yn.fa)(t,e,n,o,a,i,s)},r.dynCall_iiiiij=function(t,e,n,o,a,i,s){return(r.dynCall_iiiiij=Yn.ga)(t,e,n,o,a,i,s)},r.dynCall_iiiiijj=function(t,e,n,o,a,i,s,u,c){return(r.dynCall_iiiiijj=Yn.ha)(t,e,n,o,a,i,s,u,c)},r.dynCall_iiiiiijj=function(t,e,n,o,a,i,s,u,c,f){return(r.dynCall_iiiiiijj=Yn.ia)(t,e,n,o,a,i,s,u,c,f)},r.___emscripten_embedded_file_data=3932108,r.addRunDependency=Q,r.removeRunDependency=Z,r.FS_createPath=Nt.createPath,r.FS_createLazyFile=Nt.createLazyFile,r.FS_createDevice=Nt.createDevice,r.FS_createPreloadedFile=Nt.createPreloadedFile,r.FS_createDataFile=Nt.createDataFile,r.FS_unlink=Nt.unlink,J=function t(){Kn||Qn(),Kn||(J=t)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();return Qn(),t.abrupt("return",e.ready);case 311:case"end":return t.stop()}}),t)}))));function Ft(){var t=["769756hKVnXc","forEach","2532120HcgnPn","744PTinwK","9927HdMOdW","12XsBXef","apply","emit","length","449zdzEJs","805413IVrNse","319470YzXnSg","650972PFqxaz","slice","1774QOEWJM","push","once"];return(Ft=function(){return t})()}!function(t,e){for(var r=jt,n=t();;)try{if(222978===parseInt(r(384))/1*(parseInt(r(372))/2)+-parseInt(r(385))/3+parseInt(r(375))/4+-parseInt(r(386))/5+parseInt(r(380))/6*(-parseInt(r(387))/7)+-parseInt(r(378))/8*(parseInt(r(379))/9)+parseInt(r(377))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ft);var St=function(){var t=jt;function e(){u(this,e)}return I(e,[{key:"on",value:function(t,e,r){var n=jt,o=this.e||(this.e={});return(o[t]||(o[t]=[]))[n(373)]({fn:e,ctx:r}),this}},{key:t(374),value:function(t,e,r){var n=this;function o(){var a=jt;n.off(t,o);for(var i=arguments[a(383)],s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];e.apply(r,s)}return o._=e,this.on(t,o,r)}},{key:t(382),value:function(e){for(var r=t,n=((this.e||(this.e={}))[e]||[])[r(371)](),o=arguments[r(383)],a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];for(var s=0;s<n[r(383)];s+=1)n[s].fn[r(381)](n[s].ctx,a);return this}},{key:"off",value:function(e,r){var n=t,o=this.e||(this.e={});if(!e)return Object.keys(o)[n(376)]((function(t){delete o[t]})),void delete this.e;var a=o[e],i=[];if(a&&r)for(var s=0,u=a[n(383)];s<u;s+=1)a[s].fn!==r&&a[s].fn._!==r&&i[n(373)](a[s]);return i[n(383)]?o[e]=i:delete o[e],this}}]),e}();function jt(t,e){var r=Ft();return(jt=function(t,e){return r[t-=371]})(t,e)}var Dt=Mt;!function(t,e){for(var r=Mt,n=t();;)try{if(242435===-parseInt(r(287))/1+parseInt(r(293))/2+-parseInt(r(285))/3*(-parseInt(r(284))/4)+parseInt(r(291))/5+-parseInt(r(286))/6+-parseInt(r(292))/7+parseInt(r(283))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ot);var xt={debug:Dt(288),warn:Dt(290)};function Ot(){var t=["12jMpWOt","2715390oYGVRo","107204fyEhTc","debug",'"1.0.1"',"warn","199175zYLOad","2275126eVvINq","520902KKuxmO","3462592Cgsykh","394112slisSH"];return(Ot=function(){return t})()}var At={debug:!1,debugLevel:xt[Dt(290)],debugUuid:""};function Mt(t,e){var r=Ot();return(Mt=function(t,e){return r[t-=283]})(t,e)}var Rt=Dt(289);function $t(){var t=["1170166tuRvHo","stringify","length","4fjmAFw","120zSbatE","object","15708kAycfH","2637815BgeXiD","1884617TQohmB","17312740FeiLkS","107721vtYmWI","2358669rwKLfm","1lxTSte"];return($t=function(){return t})()}function zt(t){return!(null==t)}function Lt(t,e){var r=$t();return(Lt=function(t,e){return r[t-=110]})(t,e)}function Nt(t){return r=Lt,!((e=t)&&0===Object.keys(e)[r(121)]);var e,r}function Wt(){return function(t){var e=Lt,r="";if(p(t)===e(111))try{r=JSON[e(120)](t),r=JSON.parse(r)}catch(e){r=t}else r=t;return r}(At)}function Ut(t,e){var r=Bt();return(Ut=function(t,e){return r[t-=195]})(t,e)}function Bt(){var t=["1152428CkZiaR","114038WSHcaC","apply","debug","196235TEMBXY","[✅✅✅][imageDetector][","32094HxHNHv","_opt","concat","4681593SPQwrl","log","JbPro","debugLevel","length","753900zlBEJY","debugUuid","1274178kopHAc","error"];return(Bt=function(){return t})()}!function(t,e){for(var r=Lt,n=t();;)try{if(441383===-parseInt(r(118))/1*(parseInt(r(119))/2)+parseInt(r(117))/3*(-parseInt(r(122))/4)+parseInt(r(113))/5+parseInt(r(112))/6+-parseInt(r(114))/7+-parseInt(r(110))/8*(parseInt(r(116))/9)+parseInt(r(115))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}($t),function(t,e){for(var r=Ut,n=t();;)try{if(173809===parseInt(r(211))/1+parseInt(r(198))/2+parseInt(r(206))/3+parseInt(r(210))/4+-parseInt(r(196))/5+parseInt(r(208))/6+-parseInt(r(201))/7)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Bt);var Ht=I((function t(e){var r=Ut;u(this,t),this[r(202)]=function(t){var n=r;if(e[n(199)][n(195)]&&e[n(199)][n(204)]==xt.debug){for(var o,a=e[n(199)].debugUuid?"[".concat(e[n(199)][n(207)],"]"):"",i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(o=console).log.apply(o,[n(203)[n(200)](a,n(197)).concat(t,"]")].concat(s))}},this.warn=function(t){var n=r;if(e._opt[n(195)]&&(e[n(199)].debugLevel==xt.debug||e._opt[n(204)]==xt.warn)){for(var o,a=e[n(199)][n(207)]?"["[n(200)](e[n(199)][n(207)],"]"):"",i=arguments[n(205)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(o=console)[n(202)].apply(o,[n(203).concat(a,"[❗❗❗][imageDetector][")[n(200)](t,"]")][n(200)](s))}},this[r(209)]=function(t){for(var n,o=r,a=e[o(199)].debugUuid?"["[o(200)](e._opt[o(207)],"]"):"",i=arguments[o(205)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(n=console).error[o(212)](n,[o(203)[o(200)](a,"[❌❌❌][imageDetector][")[o(200)](t,"]")].concat(s))}})),Yt=Jt;function Vt(){var t=["emit","prototype","JbPro object detector version is ","clear","setDetectWidth","烤面包机","assign","运动球","validatedFailed, please contact the author(wx:bosswancheng) to get the correct license","棒球手套","valueOf","outObjectYUV","load jessibuca object detector error","遥控器","729992xOLJVn","rectangleColor","destroy","电视机","2022824rQHTNs","now","delete"," ","call","then","1812711RadRGN","construct","setParams","公共汽车","currentTs","catch","detectWidth","西兰花","JessibucaProObjectDetector","5074415tRwpvs","红酒杯","胡萝卜","自行车","className","detector","undefined","length","load jessibuca object detector fail","sham","height","比萨饼","吹风机","timeEnd, please contact the author(wx:bosswancheng) to get the new version","textColor","网球拍","_opt","log","手提包","startTimestamp","4LRFgKc","TAG_NAME","detect","1231363LsPNbJ","停车收费表","1860509lbKXyD","HEAPU8","停止标志","buildTime","box","load","constructor","6AaXcXU","data","module","name","微波炉","摩托车","function","width","棒球棒","showRect","1430oojjSw","off","concat","originalOptions","ObjectDetector","debug","notifyDetectInfo","list","16623AiFxWj","冲浪板","甜甜圈","error","笔记本电脑"];return(Vt=function(){return t})()}function qt(t){var e=function(){var t=Jt;if(typeof Reflect===t(464)||!Reflect[t(450)])return!1;if(Reflect.construct[t(467)])return!1;if(typeof Proxy===t(496))return!0;try{return Boolean[t(426)][t(435)][t(447)](Reflect[t(450)](Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Jt,o=q(t);if(e){var a=q(this)[n(489)];r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return U(this,r)}}!function(t,e){for(var r=Jt,n=t();;)try{if(732776===parseInt(r(481))/1+-parseInt(r(439))/2+parseInt(r(449))/3+-parseInt(r(478))/4*(parseInt(r(458))/5)+-parseInt(r(490))/6*(-parseInt(r(483))/7)+-parseInt(r(443))/8+-parseInt(r(420))/9*(-parseInt(r(500))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Vt);var Gt={person:"人",bicycle:Yt(461),car:"汽车",motorbike:Yt(495),aeroplane:"飞机",bus:Yt(452),train:"火车",truck:"卡车",boat:"船","traffic light":"交通灯","fire hydrant":"消防栓","stop sign":Yt(485),"parking meter":Yt(482),bench:"长凳",bird:"鸟",cat:"猫",dog:"狗",horse:"马",sheep:"绵羊",cow:"牛",elephant:"大象",bear:"熊",zebra:"斑马",giraffe:"长颈鹿",backpack:"背包",umbrella:"雨伞",handbag:Yt(476),tie:"领带",suitcase:"手提箱",frisbee:"飞盘",skis:"滑雪板",snowboard:"雪板","sports ball":Yt(432),kite:"风筝","baseball bat":Yt(498),"baseball glove":Yt(434),skateboard:"滑板",surfboard:Yt(421),"tennis racket":Yt(473),bottle:"瓶子","wine glass":Yt(459),cup:"杯子",fork:"叉子",knife:"刀子",spoon:"勺子",bowl:"碗",banana:"香蕉",apple:"苹果",sandwich:"三明治",orange:"橙子",broccoli:Yt(456),carrot:Yt(460),"hot dog":"热狗",pizza:Yt(469),donut:Yt(422),cake:"蛋糕",chair:"椅子",sofa:"沙发",pottedplant:"盆栽",bed:"床",diningtable:"餐桌",toilet:"厕所",tvmonitor:Yt(442),laptop:Yt(424),mouse:"鼠标",remote:Yt(438),keyboard:"键盘","cell phone":"手机",microwave:Yt(494),oven:"烤箱",toaster:Yt(430),sink:"水槽",refrigerator:"冰箱",book:"书",clock:"时钟",vase:"花瓶",scissors:"剪刀","teddy bear":"熊","hair drier":Yt(470),toothbrush:"牙刷"},Xt=function(t){var e=Yt;M(n,t);var r=qt(n);function n(){var t,e=Jt,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,n),(t=r[e(447)](this))[e(415)]=o;var a=Wt(),i=Object[e(431)]({},a,o);return t[e(474)]=i,t[e(417)]=new Ht(S(t)),t.TAG_NAME=e(416),t[e(492)]=null,t.detector=null,t[e(477)]=null,t.detectWidth=o[e(455)]||192,t.showRect=!1!==o.showRect,t[e(486)]=o[e(493)]+"-"+o[e(486)],t[e(472)]=o.textColor||{r:0,g:255,b:0},t[e(440)]=o[e(440)]||{r:0,g:0,b:255},t[e(453)]=null,console[e(475)](e(427)[e(414)](o[e(486)],":")[e(414)](Rt,e(446))),t}return I(n,[{key:e(441),value:function(){var t=e;this[t(413)](),this[t(463)]&&(this[t(463)][t(428)](),this.detector[t(445)]()),this[t(492)]&&(this[t(492)]=null),this[t(477)]=null,this[t(453)]=null}},{key:e(488),value:function(){var t=this;return new Promise((function(e,r){var n=Jt;Tt()[n(448)]((function(o){var a=n;t[a(492)]=o,t[a(492)][a(416)]?(t[a(463)]=new(t[a(492)][a(416)])(t),t[a(463)][a(429)](t[a(455)]),t.detector[a(451)]({showInfo:t[a(499)],rectangleColor:t[a(440)],textColor:t[a(472)]}),e()):r(a(466))}))[n(454)]((function(t){var e=n;console[e(423)](t),r(e(437))}))}))}},{key:"updateConfig",value:function(){var t=e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r[t(455)]&&(this[t(455)]=r[t(455)],this[t(463)]&&this[t(463)][t(429)](this[t(455)]));var n={};zt(r[t(499)])&&(this[t(499)]=r.showRect,n.showInfo=r[t(499)]),zt(r[t(440)])&&(this.rectangleColor=r[t(440)],n.rectangleColor=r.rectangleColor),zt(r.textColor)&&(this[t(472)]=r.textColor,n[t(472)]=r[t(472)]),Nt(n)&&this[t(463)]&&this[t(463)].setParams(n)}},{key:e(418),value:function(t){var r=e;if(this[r(463)]){var n={list:[],ts:this[r(453)]||0};n[r(419)]=(t||[]).map((function(t){var e=r;return{en:t[e(462)],zh:Gt[t.className]||t[e(462)],rect:t[e(487)],confidence:t.confidence}})),this[r(425)]("jessibuca-pro-object-detector-info",n)}}},{key:e(480),value:function(t){var r=e,n=arguments[r(465)]>1&&void 0!==arguments[1]?arguments[1]:0;if(!this[r(463)])return t[r(491)];if(null===this[r(477)]&&(this.startTimestamp=Date.now()),Date[r(444)]()-this.startTimestamp>6e5)return t.data;this[r(453)]=t.ts;var o=this[r(463)].detect(t[r(491)],t[r(497)],t[r(468)],n,this[r(486)]);if(o&&o[r(436)]){var a=o.outObjectYUV,i=a+3*(t.width*t[r(468)])/2;return this.module[r(484)].subarray(a,i)}return t[r(491)]}},{key:"validatedFailed",value:function(){var t=e;this[t(417)][t(423)](this[t(479)],t(433))}},{key:"timeEnd",value:function(){var t=e;this[t(417)][t(423)](this[t(479)],t(471))}}]),n}(St);function Jt(t,e){var r=Vt();return(Jt=function(t,e){return r[t-=413]})(t,e)}window[Yt(457)]=Xt}));