Newer
Older
safe_production_front / public / js-bak / jessibuca-pro-image-detector-demo.js
dutingting on 8 Apr 105 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 r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r){return t(r={exports:{}},r.exports),r.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:r,createCommonjsModule:e,getCjsExportFromNamespace:function(t){return t&&t.default||t}});function o(t,r){var e=a();return(o=function(t,r){return e[t-=319]})(t,r)}!function(t,r){for(var e=o,n=t();;)try{if(716789===-parseInt(e(320))/1*(parseInt(e(319))/2)+-parseInt(e(321))/3*(parseInt(e(331))/4)+-parseInt(e(328))/5*(-parseInt(e(324))/6)+-parseInt(e(327))/7*(parseInt(e(323))/8)+-parseInt(e(330))/9+-parseInt(e(326))/10+parseInt(e(325))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(a);var i=r(e((function(t){var r=o;t[r(322)]=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t[r(322)][r(329)]=t[r(322)]})));function a(){var t=["exports","8ABNTZG","1904982dOYbXX","23873080PmNHRV","13941540cEvoqx","4745713krISxW","20JxTfKf","default","3088566ufXZIt","44JMiVdK","51168yFQGLB","3jjhUPn","63120OSgaeE"];return(a=function(){return t})()}var s=f;!function(t,r){for(var e=f,n=t();;)try{if(612537===-parseInt(e(301))/1*(-parseInt(e(310))/2)+-parseInt(e(308))/3*(-parseInt(e(306))/4)+parseInt(e(313))/5*(-parseInt(e(309))/6)+-parseInt(e(300))/7*(parseInt(e(314))/8)+parseInt(e(312))/9+parseInt(e(302))/10+parseInt(e(307))/11*(-parseInt(e(305))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(l);var u=n[s(318)]((function(t){var r=s;function e(r){var n=f;return t[n(315)]=e=n(311)==typeof Symbol&&n(317)==typeof Symbol.iterator?function(t){return typeof t}:function(t){var r=n;return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?r(317):typeof t},t[n(315)][n(316)]=!0,t[n(315)][n(303)]=t[n(315)],e(r)}t[r(315)]=e,t[r(315)][r(316)]=!0,t.exports[r(303)]=t[r(315)]})),c=n[s(304)](u);function f(t,r){var e=l();return(f=function(t,r){return e[t-=300]})(t,r)}function l(){var t=["unwrapExports","1716GLZfbq","152bjgaeJ","173239ZLCubF","93414fADatr","7866JhYsnk","1490oHqQkf","function","925389oFUooR","155zxAFjK","2016488dJojrS","exports","__esModule","symbol","createCommonjsModule","14yWPAOb","1237KKPbnM","12017770ixRAod","default"];return(l=function(){return t})()}var p=d;function d(t,r){var e=v();return(d=function(t,r){return e[t-=313]})(t,r)}!function(t,r){for(var e=d,n=t();;)try{if(451656===parseInt(e(323))/1+parseInt(e(329))/2*(-parseInt(e(318))/3)+-parseInt(e(314))/4+-parseInt(e(315))/5*(parseInt(e(316))/6)+parseInt(e(321))/7+parseInt(e(313))/8+parseInt(e(326))/9*(-parseInt(e(320))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(v);var h=n[p(327)]((function(t){var r=p,e=u[r(319)];t.exports=function(t,n){var o=r;if(e(t)!==o(324)||null===t)return t;var i=t[Symbol[o(317)]];if(void 0!==i){var a=i.call(t,n||o(319));if(e(a)!==o(324))return a;throw new TypeError(o(328))}return("string"===n?String:Number)(t)},t[r(322)].__esModule=!0,t[r(322)].default=t[r(322)]}));function v(){var t=["4631494bWtGwJ","exports","327724UwGzCd","object","unwrapExports","92853qHvACJ","createCommonjsModule","@@toPrimitive must return a primitive value.","22OGfqPQ","5752320jfSkVm","1555584szwCXU","3064270nqGSyv","6RFPEQz","toPrimitive","63918HwJOZg","default","20WMNTbM"];return(v=function(){return t})()}n[p(325)](h);var m=g;!function(t,r){for(var e=g,n=t();;)try{if(886944===-parseInt(e(428))/1+-parseInt(e(436))/2+-parseInt(e(432))/3+parseInt(e(433))/4+parseInt(e(427))/5*(-parseInt(e(434))/6)+parseInt(e(437))/7*(-parseInt(e(431))/8)+parseInt(e(425))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(w);var y=n[m(430)]((function(t){var r=m,e=u[r(429)];t[r(439)]=function(t){var n=r,o=h(t,n(426));return e(o)===n(438)?o:String(o)},t[r(439)].__esModule=!0,t[r(439)][r(429)]=t[r(439)]}));function w(){var t=["469488AJuVga","2123565rMyHgx","3905100GamTlf","36dRAfzL","unwrapExports","2324694LRpeTl","63VdmcvA","symbol","exports","28949517mkMIJC","string","191815kIbOeN","677390bDKOdy","default","createCommonjsModule"];return(w=function(){return t})()}function g(t,r){var e=w();return(g=function(t,r){return e[t-=425]})(t,r)}n[m(435)](y);var b=E;function E(t,r){var e=_();return(E=function(t,r){return e[t-=497]})(t,r)}function _(){var t=["__esModule","configurable","2367368WnSsxU","379567HeNqrH","16bOfdBk","createCommonjsModule","554920xfJAPU","prototype","6393744TxotLc","1330WrWiew","defineProperty","writable","480xekaPZ","179361ONDDRZ","1712640eQQcVY","enumerable","value","exports"];return(_=function(){return t})()}!function(t,r){for(var e=E,n=t();;)try{if(234629===parseInt(e(513))/1+parseInt(e(501))/2*(parseInt(e(504))/3)+-parseInt(e(514))/4*(-parseInt(e(498))/5)+parseInt(e(506))/6+parseInt(e(505))/7+-parseInt(e(512))/8+-parseInt(e(500))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(_);var I=r(n[b(497)]((function(t){var r=b;function e(t,r){for(var e=E,n=0;n<r.length;n++){var o=r[n];o[e(507)]=o[e(507)]||!1,o[e(511)]=!0,e(508)in o&&(o[e(503)]=!0),Object[e(502)](t,y(o.key),o)}}t[r(509)]=function(t,r,n){var o=E;return r&&e(t[o(499)],r),n&&e(t,n),Object[o(502)](t,"prototype",{writable:!1}),t},t.exports[r(510)]=!0,t[r(509)].default=t[r(509)]})));function k(t,r){var e=S();return(k=function(t,r){return e[t-=162]})(t,r)}var P=k;function S(){var t=["3048mSuZmr","3580IzVyit","683142zLUIme","this hasn't been initialised - super() hasn't been called","133827kmpJsw","439710QeCvRt","exports","225FKubIQ","1whoPLp","unwrapExports","__esModule","1193087MTrnrI","575056fdHPyD","3340536jQFucA"];return(S=function(){return t})()}!function(t,r){for(var e=k,n=t();;)try{if(290694===parseInt(e(168))/1*(parseInt(e(162))/2)+parseInt(e(164))/3+-parseInt(e(174))/4*(-parseInt(e(175))/5)+parseInt(e(173))/6+-parseInt(e(171))/7+parseInt(e(172))/8+parseInt(e(167))/9*(-parseInt(e(165))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(S);var T=e((function(t){var r=k;t[r(166)]=function(t){if(void 0===t)throw new ReferenceError(k(163));return t},t.exports[r(170)]=!0,t[r(166)].default=t[r(166)]})),C=n[P(169)](T),j=x;function F(){var t=["29442WsBBwG","21hlXbJL","bind","__esModule","3jHxENY","1258264hTiIuo","__proto__","2137708QfEsCs","default","774238kNZLcO","215794eTxzmW","702369wyspke","setPrototypeOf","exports","9455171cqhSHU","65PTYynZ","unwrapExports","10UnzXSS"];return(F=function(){return t})()}!function(t,r){for(var e=x,n=t();;)try{if(303790===-parseInt(e(344))/1+parseInt(e(361))/2+-parseInt(e(356))/3*(-parseInt(e(359))/4)+-parseInt(e(349))/5*(-parseInt(e(352))/6)+parseInt(e(353))/7*(parseInt(e(357))/8)+-parseInt(e(345))/9*(parseInt(e(351))/10)+-parseInt(e(348))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(F);var A=e((function(t){var r=x;function e(r,n){var o=x;return t[o(347)]=e=Object.setPrototypeOf?Object[o(346)][o(354)]():function(t,r){return t[o(358)]=r,t},t[o(347)][o(355)]=!0,t[o(347)][o(360)]=t[o(347)],e(r,n)}t[r(347)]=e,t.exports[r(355)]=!0,t.exports.default=t[r(347)]}));function x(t,r){var e=F();return(x=function(t,r){return e[t-=344]})(t,r)}n[j(350)](A);var D=R;!function(t,r){for(var e=R,n=t();;)try{if(924875===parseInt(e(469))/1+parseInt(e(474))/2+parseInt(e(472))/3+parseInt(e(465))/4+-parseInt(e(466))/5+parseInt(e(468))/6+-parseInt(e(473))/7*(parseInt(e(475))/8))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(M);var O=n[D(460)]((function(t){var r=D;t[r(464)]=function(t,r){var e=R;if(typeof r!==e(463)&&null!==r)throw new TypeError(e(467));t[e(461)]=Object[e(471)](r&&r[e(461)],{constructor:{value:t,writable:!0,configurable:!0}}),Object[e(476)](t,e(461),{writable:!1}),r&&A(t,r)},t[r(464)][r(477)]=!0,t[r(464)][r(462)]=t[r(464)]}));function M(){var t=["create","2374959veWGjC","26198963efvOvQ","1463376ooatfS","8odaCKC","defineProperty","__esModule","createCommonjsModule","prototype","default","function","exports","3885572ZZLSzC","3119810KMYjUB","Super expression must either be null or a function","7477908XuzPyR","1550494jFTvxd","unwrapExports"];return(M=function(){return t})()}function R(t,r){var e=M();return(R=function(t,r){return e[t-=460]})(t,r)}var $=n[D(470)](O),L=B;function U(){var t=["51007awDLFH","2tJxBLM","4545qStAuw","unwrapExports","object","__esModule","createCommonjsModule","7730AsvweU","7024ZEqgKL","exports","default","1267lcnrfh","335334tMmitg","245tHkPzV","305850sGpclx","8644FAuAbY","function","199932uexFMj","732ecWSfd"];return(U=function(){return t})()}function B(t,r){var e=U();return(B=function(t,r){return e[t-=269]})(t,r)}!function(t,r){for(var e=B,n=t();;)try{if(205386===parseInt(e(284))/1*(parseInt(e(281))/2)+parseInt(e(276))/3+-parseInt(e(279))/4*(parseInt(e(277))/5)+parseInt(e(278))/6+parseInt(e(275))/7*(-parseInt(e(272))/8)+parseInt(e(285))/9*(parseInt(e(271))/10)+-parseInt(e(283))/11*(parseInt(e(282))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(U);var W=n[L(270)]((function(t){var r=L,e=u[r(274)];t[r(273)]=function(t,n){var o=r;if(n&&(e(n)===o(287)||typeof n===o(280)))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return T(t)},t[r(273)][r(269)]=!0,t[r(273)][r(274)]=t[r(273)]})),N=n[L(286)](W);function z(){var t=["1143856UBBdMP","605296VjQeMc","875214PHKaJF","exports","12NklwXP","setPrototypeOf","default","2517636cKwTIE","16gBhoeI","1730580PcOjnh","3uwiimS","10heWbTJ","2540061TPqhut","bind","getPrototypeOf","__proto__","__esModule","14318XpoKLv"];return(z=function(){return t})()}!function(t,r){for(var e=V,n=t();;)try{if(567805===-parseInt(e(491))/1+parseInt(e(489))/2*(parseInt(e(500))/3)+-parseInt(e(494))/4*(-parseInt(e(499))/5)+-parseInt(e(492))/6+-parseInt(e(490))/7*(-parseInt(e(498))/8)+parseInt(e(502))/9*(-parseInt(e(501))/10)+parseInt(e(497))/11)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(z);var H=e((function(t){var r=V;function e(r){var n=V;return t[n(493)]=e=Object[n(495)]?Object[n(504)][n(503)]():function(t){return t[n(487)]||Object.getPrototypeOf(t)},t.exports[n(488)]=!0,t[n(493)][n(496)]=t[n(493)],e(r)}t[r(493)]=e,t.exports[r(488)]=!0,t[r(493)][r(496)]=t.exports}));function V(t,r){var e=z();return(V=function(t,r){return e[t-=487]})(t,r)}var G=r(H),q=Y;function Y(t,r){var e=K();return(Y=function(t,r){return e[t-=389]})(t,r)}!function(t,r){for(var e=Y,n=t();;)try{if(435541===parseInt(e(401))/1+-parseInt(e(402))/2+parseInt(e(399))/3+-parseInt(e(403))/4*(parseInt(e(395))/5)+parseInt(e(398))/6*(-parseInt(e(406))/7)+parseInt(e(391))/8*(parseInt(e(393))/9)+parseInt(e(392))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(K);var J=n[q(404)]((function(t){var r=q;t.exports=function(t){var r=Y;try{return-1!==Function.toString[r(400)](t)[r(389)](r(396))}catch(r){return"function"==typeof t}},t[r(397)][r(405)]=!0,t[r(397)][r(390)]=t.exports}));function K(){var t=["default","8fmIpmc","7870900DPYriA","1272105JCJpvt","unwrapExports","186050IaCoiV","[native code]","exports","23262eGAYmg","883104wfyZsP","call","226360SAxIrS","1402290GRUoEY","4IgvCwe","createCommonjsModule","__esModule","497tvzGPA","indexOf"];return(K=function(){return t})()}function X(t,r){var e=tt();return(X=function(t,r){return e[t-=406]})(t,r)}n[q(394)](J);var Z=X;!function(t,r){for(var e=X,n=t();;)try{if(367996===-parseInt(e(418))/1+-parseInt(e(424))/2+-parseInt(e(417))/3*(parseInt(e(408))/4)+parseInt(e(414))/5+-parseInt(e(415))/6*(-parseInt(e(409))/7)+parseInt(e(420))/8*(-parseInt(e(423))/9)+parseInt(e(421))/10*(parseInt(e(411))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(tt);var Q=n[Z(413)]((function(t){var r=Z;t[r(419)]=function(){var t=X;if(typeof Reflect===t(422)||!Reflect[t(410)])return!1;if(Reflect[t(410)][t(407)])return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype[t(412)].call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t[r(419)][r(406)]=!0,t.exports.default=t[r(419)]}));function tt(){var t=["valueOf","createCommonjsModule","2420730MtoNTY","256428zzFSEX","unwrapExports","12yWCspF","363383uaaiHn","exports","8bOChjk","17529370ORBIHG","undefined","4608855PXbTwQ","1009414oTCWAM","__esModule","sham","531640VuODic","7nOPmuv","construct","11EkwfcH"];return(tt=function(){return t})()}function rt(t,r){var e=nt();return(rt=function(t,r){return e[t-=141]})(t,r)}n[Z(416)](Q);var et=rt;function nt(){var t=["1502711geVHjv","push","prototype","construct","exports","11ejTBPq","724038XVCypg","3806976SQyRiz","951JjlQwn","122504tBNDmi","createCommonjsModule","bind","2337090NEtwsL","default","148Hntsbb","__esModule","20vQHfpG","4681602ailmUq","24TUuOPh","apply"];return(nt=function(){return t})()}!function(t,r){for(var e=rt,n=t();;)try{if(319688===parseInt(e(157))/1*(parseInt(e(143))/2)+-parseInt(e(147))/3*(parseInt(e(158))/4)+parseInt(e(145))/5*(-parseInt(e(155))/6)+parseInt(e(149))/7+parseInt(e(156))/8+parseInt(e(146))/9+parseInt(e(141))/10*(-parseInt(e(154))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(nt);var ot=n[et(159)]((function(t){var r=et;function e(r,n,o){var i=rt;return Q()?(t.exports=e=Reflect[i(152)][i(160)](),t.exports.__esModule=!0,t[i(153)][i(142)]=t[i(153)]):(t[i(153)]=e=function(t,r,e){var n=i,o=[null];o[n(150)][n(148)](o,r);var a=new(Function[n(160)][n(148)](t,o));return e&&A(a,e[n(151)]),a},t[i(153)][i(144)]=!0,t[i(153)][i(142)]=t[i(153)]),e[i(148)](null,arguments)}t[r(153)]=e,t[r(153)][r(144)]=!0,t[r(153)][r(142)]=t.exports}));r(ot);var it=st;function at(){var t=["36ToIqfr","create","5SDBfOY","prototype","3247211kFAhxB","2470azrPtS","1643787nPcuVx","function","get","unwrapExports","exports","createCommonjsModule","constructor","2587038nGtKLu","353560qVIcqE","36OVuMQy","40saYKuQ","default","Super expression must either be null or a function","159411BftPKo","undefined","223KXoRGl","__esModule","461600DbDxFW","has"];return(at=function(){return t})()}function st(t,r){var e=at();return(st=function(t,r){return e[t-=267]})(t,r)}!function(t,r){for(var e=st,n=t();;)try{if(341071===-parseInt(e(272))/1*(-parseInt(e(281))/2)+-parseInt(e(282))/3+parseInt(e(290))/4+-parseInt(e(278))/5*(parseInt(e(289))/6)+-parseInt(e(270))/7*(parseInt(e(267))/8)+parseInt(e(291))/9*(parseInt(e(274))/10)+-parseInt(e(280))/11*(-parseInt(e(276))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(at);var ut=n[it(287)]((function(t){var r=it;function e(r){var n=st,o=typeof Map===n(283)?new Map:void 0;return t[n(286)]=e=function(t){var r=n;if(null===t||!J(t))return t;if(typeof t!==r(283))throw new TypeError(r(269));if(typeof o!==r(271)){if(o[r(275)](t))return o[r(284)](t);o.set(t,e)}function e(){var e=r;return ot(t,arguments,H(this)[e(288)])}return e[r(279)]=Object[r(277)](t[r(279)],{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),A(e,t)},t[n(286)][n(273)]=!0,t.exports[n(268)]=t[n(286)],e(r)}t[r(286)]=e,t[r(286)][r(273)]=!0,t[r(286)][r(268)]=t.exports})),ct=n[it(285)](ut);!function(t,r){for(var e=lt,n=t();;)try{if(606887===-parseInt(e(312))/1*(-parseInt(e(325))/2)+-parseInt(e(311))/3+-parseInt(e(309))/4+-parseInt(e(322))/5*(-parseInt(e(326))/6)+parseInt(e(318))/7*(parseInt(e(327))/8)+parseInt(e(315))/9*(-parseInt(e(316))/10)+parseInt(e(317))/11*(parseInt(e(308))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(dt);var ft=e((function(t){var r=lt;function e(t,r,e,n,o,i,a){var s=lt;try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u[s(320)]?r(c):Promise[s(319)](c).then(n,o)}t[r(310)]=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=lt,s=t[a(314)](r,n);function u(t){e(s,o,i,u,c,a(323),t)}function c(t){e(s,o,i,u,c,a(313),t)}u(void 0)}))}},t.exports[r(324)]=!0,t[r(310)][r(321)]=t[r(310)]}));function lt(t,r){var e=dt();return(lt=function(t,r){return e[t-=308]})(t,r)}var pt=r(ft);function dt(){var t=["resolve","done","default","335FklLLj","next","__esModule","4DKRnfN","5202VBgOLA","16TumVVA","12911532FyApgl","1386864ZdNoJE","exports","3538584KnUXxv","83833TTCAZN","throw","apply","63lWihkm","426030fZSwTI","11SWhznk","3953726KfHiAw"];return(dt=function(){return t})()}function ht(){var t=["AsyncIterator","The iterator does not provide a '","558088ZkaBZt","setPrototypeOf","__esModule","getPrototypeOf","keys","normal","call","function","7334QUpjcx","end","__await","isGeneratorFunction","break","dispatchException","wrap","suspendedStart","385sQQSDY","pop","then","GeneratorFunction","' method","prev","completed","tryLoc","arg","object","10LQfDTL","done","root","866193yyWVMB","abrupt","@@toStringTag","18zgfkuY","exports","forEach","slice","complete","completion","length","reset","iterator result is not an object","type","nextLoc","sent","catchLoc","finallyLoc","return","continue","toStringTag","5693596qZBjZl","_invoke","Generator is already running","defineProperty","awrap","values","next","resolve","delegate","12348IiHnNB","toString","prototype","tryEntries","56427bzndZO","[object Generator]","mark","default","displayName","afterLoc","value","method","iterator","rval","create","constructor","throw","25245308IpCBUM","name","asyncIterator","_sent","async","1041vxwUav","charAt"];return(ht=function(){return t})()}function vt(t,r){var e=ht();return(vt=function(t,r){return e[t-=385]})(t,r)}!function(t,r){for(var e=vt,n=t();;)try{if(987958===-parseInt(e(434))/1+parseInt(e(413))/2*(parseInt(e(401))/3)+-parseInt(e(454))/4+parseInt(e(421))/5*(-parseInt(e(463))/6)+parseInt(e(467))/7+parseInt(e(405))/8*(-parseInt(e(437))/9)+-parseInt(e(431))/10*(-parseInt(e(396))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ht);var mt=e((function(t){var r=vt,e=u[r(386)];function n(){var o=r;t[o(438)]=n=function(){return a},t.exports[o(407)]=!0,t[o(438)].default=t[o(438)];var i,a={},s=Object[o(465)],u=s.hasOwnProperty,c=Object[o(457)]||function(t,r,e){t[r]=e.value},f=o(412)==typeof Symbol?Symbol:{},l=f.iterator||"@@iterator",p=f[o(398)]||"@@asyncIterator",d=f[o(453)]||o(436);function h(t,r,e){return Object[o(457)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,e){return t[r]=e}}function v(t,r,e,n){var a,s,u,f,l=o,p=r&&r[l(465)]instanceof _?r:_,d=Object[l(393)](p.prototype),h=new O(n||[]);return c(d,l(455),{value:(a=t,s=e,u=h,f=y,function(t,r){var e=vt;if(f===g)throw new Error(e(456));if(f===b){if("throw"===t)throw r;return{value:i,done:!0}}for(u[e(390)]=t,u[e(429)]=r;;){var n=u[e(462)];if(n){var o=A(n,u);if(o){if(o===E)continue;return o}}if(e(460)===u.method)u.sent=u._sent=u[e(429)];else if("throw"===u[e(390)]){if(f===y)throw f=b,u.arg;u[e(418)](u[e(429)])}else"return"===u.method&&u[e(435)](e(451),u[e(429)]);f=g;var c=m(a,s,u);if(e(410)===c[e(446)]){if(f=u[e(432)]?b:w,c[e(429)]===E)continue;return{value:c.arg,done:u[e(432)]}}e(395)===c[e(446)]&&(f=b,u[e(390)]=e(395),u[e(429)]=c[e(429)])}})}),d}function m(t,r,e){var n=o;try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:n(395),arg:t}}}a[o(419)]=v;var y=o(420),w="suspendedYield",g="executing",b=o(427),E={};function _(){}function I(){}function k(){}var P={};h(P,l,(function(){return this}));var S=Object[o(408)],T=S&&S(S(M([])));T&&T!==s&&u.call(T,l)&&(P=T);var C=k[o(465)]=_[o(465)]=Object.create(P);function j(t){var r=o;[r(460),r(395),"return"][r(439)]((function(r){h(t,r,(function(t){return this[vt(455)](r,t)}))}))}function F(t,r){var n,i=o;function a(n,o,i,s){var c=vt,f=m(t[n],t,o);if(c(395)!==f.type){var l=f[c(429)],p=l.value;return p&&c(430)==e(p)&&u.call(p,c(415))?r[c(461)](p[c(415)])[c(423)]((function(t){a(c(460),t,i,s)}),(function(t){a("throw",t,i,s)})):r[c(461)](p).then((function(t){l[c(389)]=t,i(l)}),(function(t){return a(c(395),t,i,s)}))}s(f[c(429)])}c(this,i(455),{value:function(t,e){function o(){return new r((function(r,n){a(t,e,r,n)}))}return n=n?n[i(423)](o,o):o()}})}function A(t,r){var e=o,n=r[e(390)],a=t[e(391)][n];if(a===i)return r[e(462)]=null,e(395)===n&&t.iterator.return&&(r.method=e(451),r[e(429)]=i,A(t,r),e(395)===r[e(390)])||e(451)!==n&&(r[e(390)]="throw",r[e(429)]=new TypeError(e(404)+n+e(425))),E;var s=m(a,t[e(391)],r.arg);if("throw"===s.type)return r[e(390)]=e(395),r[e(429)]=s[e(429)],r[e(462)]=null,E;var u=s[e(429)];return u?u[e(432)]?(r[t.resultName]=u[e(389)],r.next=t[e(447)],"return"!==r[e(390)]&&(r[e(390)]=e(460),r[e(429)]=i),r[e(462)]=null,E):u:(r[e(390)]="throw",r[e(429)]=new TypeError(e(445)),r[e(462)]=null,E)}function x(t){var r=o,e={tryLoc:t[0]};1 in t&&(e[r(449)]=t[1]),2 in t&&(e.finallyLoc=t[2],e[r(388)]=t[3]),this.tryEntries.push(e)}function D(t){var r=o,e=t.completion||{};e[r(446)]="normal",delete e[r(429)],t[r(442)]=e}function O(t){var r=o;this[r(466)]=[{tryLoc:"root"}],t[r(439)](x,this),this[r(444)](!0)}function M(t){var r=o;if(t||""===t){var n=t[l];if(n)return n[r(411)](t);if(r(412)==typeof t[r(460)])return t;if(!isNaN(t[r(443)])){var a=-1,s=function e(){for(var n=r;++a<t.length;)if(u[n(411)](t,a))return e[n(389)]=t[a],e[n(432)]=!1,e;return e[n(389)]=i,e.done=!0,e};return s[r(460)]=s}}throw new TypeError(e(t)+" is not iterable")}return I[o(465)]=k,c(C,"constructor",{value:k,configurable:!0}),c(k,o(394),{value:I,configurable:!0}),I[o(387)]=h(k,d,o(424)),a[o(416)]=function(t){var r=o,e="function"==typeof t&&t[r(394)];return!!e&&(e===I||r(424)===(e.displayName||e[r(397)]))},a[o(385)]=function(t){var r=o;return Object[r(406)]?Object[r(406)](t,k):(t.__proto__=k,h(t,d,r(424))),t.prototype=Object[r(393)](C),t},a[o(458)]=function(t){return{__await:t}},j(F.prototype),h(F[o(465)],p,(function(){return this})),a[o(403)]=F,a[o(400)]=function(t,r,e,n,i){var s=o;void 0===i&&(i=Promise);var u=new F(v(t,r,e,n),i);return a[s(416)](r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},j(C),h(C,d,"Generator"),h(C,l,(function(){return this})),h(C,o(464),(function(){return o(468)})),a[o(409)]=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(var n=vt;e.length;){var o=e[n(422)]();if(o in r)return t[n(389)]=o,t.done=!1,t}return t[n(432)]=!0,t}},a[o(459)]=M,O.prototype={constructor:O,reset:function(t){var r=o;if(this[r(426)]=0,this.next=0,this[r(448)]=this[r(399)]=i,this[r(432)]=!1,this[r(462)]=null,this[r(390)]=r(460),this[r(429)]=i,this.tryEntries[r(439)](D),!t)for(var e in this)"t"===e[r(402)](0)&&u[r(411)](this,e)&&!isNaN(+e[r(440)](1))&&(this[e]=i)},stop:function(){var t=o;this[t(432)]=!0;var r=this.tryEntries[0][t(442)];if(t(395)===r[t(446)])throw r[t(429)];return this[t(392)]},dispatchException:function(t){var r=o;if(this[r(432)])throw t;var e=this;function n(n,o){var a=r;return c[a(446)]="throw",c[a(429)]=t,e[a(460)]=n,o&&(e[a(390)]=a(460),e[a(429)]=i),!!o}for(var a=this[r(466)][r(443)]-1;a>=0;--a){var s=this[r(466)][a],c=s.completion;if(r(433)===s.tryLoc)return n(r(414));if(s[r(428)]<=this[r(426)]){var f=u[r(411)](s,r(449)),l=u[r(411)](s,r(450));if(f&&l){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this[r(426)]<s[r(450)])return n(s[r(450)])}else if(f){if(this[r(426)]<s[r(449)])return n(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this[r(426)]<s[r(450)])return n(s[r(450)])}}}},abrupt:function(t,r){for(var e=o,n=this.tryEntries.length-1;n>=0;--n){var i=this[e(466)][n];if(i.tryLoc<=this.prev&&u[e(411)](i,e(450))&&this[e(426)]<i[e(450)]){var a=i;break}}a&&(e(417)===t||e(452)===t)&&a[e(428)]<=r&&r<=a[e(450)]&&(a=null);var s=a?a.completion:{};return s[e(446)]=t,s.arg=r,a?(this.method=e(460),this[e(460)]=a[e(450)],E):this[e(441)](s)},complete:function(t,r){var e=o;if(e(395)===t[e(446)])throw t[e(429)];return e(417)===t[e(446)]||e(452)===t[e(446)]?this.next=t[e(429)]:e(451)===t[e(446)]?(this[e(392)]=this.arg=t[e(429)],this.method="return",this[e(460)]=e(414)):e(410)===t[e(446)]&&r&&(this[e(460)]=r),E},finish:function(t){for(var r=o,e=this[r(466)][r(443)]-1;e>=0;--e){var n=this[r(466)][e];if(n.finallyLoc===t)return this.complete(n[r(442)],n.afterLoc),D(n),E}},catch:function(t){for(var r=o,e=this[r(466)][r(443)]-1;e>=0;--e){var n=this[r(466)][e];if(n[r(428)]===t){var i=n[r(442)];if(r(395)===i.type){var a=i[r(429)];D(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){var n=o;return this[n(462)]={iterator:M(t),resultName:r,nextLoc:e},n(460)===this[n(390)]&&(this[n(429)]=i),E}},a}t.exports=n,t[r(438)][r(407)]=!0,t[r(438)][r(386)]=t.exports}));r(mt);var yt=wt;function wt(t,r){var e=Et();return(wt=function(t,r){return e[t-=461]})(t,r)}!function(t,r){for(var e=wt,n=t();;)try{if(426827===-parseInt(e(469))/1*(parseInt(e(473))/2)+parseInt(e(465))/3*(-parseInt(e(461))/4)+-parseInt(e(463))/5*(-parseInt(e(470))/6)+parseInt(e(467))/7+parseInt(e(472))/8+parseInt(e(466))/9+-parseInt(e(468))/10*(-parseInt(e(471))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Et);var gt=mt(),bt=gt;try{regeneratorRuntime=gt}catch(t){typeof globalThis===yt(464)?globalThis[yt(462)]=gt:Function("r","regeneratorRuntime = r")(gt)}function Et(){var t=["2586381hGnHyK","548330lKSUBO","2uwWbdZ","225138rvyJCZ","55SVBdWG","4594576lrMjUE","335948rCWFyn","412744VTkoTM","regeneratorRuntime","15QdMKWf","object","21hgDytp","1390842mUNtop"];return(Et=function(){return t})()}function _t(t){var r=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 e,n=G(t);if(r){var o=G(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return N(this,e)}}var It,kt=(It="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-image-detector-demo.js",document.baseURI).href,pt(bt.mark((function t(){var r,e,n,o,a,s,u,f,l,p,d,h,v,m,y,w,g,b,E,_,k,P,S,T,C,j,F,A,x,D,O,M,R,L,U,B,W,N,z,H,V,G,q,Y,J,K,X,Z,Q,tt,rt,et,nt,ot,it,at,st,ut,ft,lt,pt,dt,ht,vt,mt,yt,wt,gt,Et,kt,Pt,St,Tt,Ct,jt,Ft,At,xt,Dt,Ot,Mt,Rt,$t,Lt,Ut,Bt,Wt,Nt,zt,Ht,Vt,Gt,qt,Yt,Jt,Kt,Xt,Zt,Qt,tr,rr,er,nr,or,ir,ar,sr,ur,cr,fr,lr,pr,dr,hr,vr,mr,yr,wr,gr,br,Er,_r,Ir,kr,Pr,Sr,Tr,Cr,jr,Fr,Ar,xr,Dr,Or,Mr,Rr,$r,Lr,Ur,Br,Wr,Nr,zr,Hr,Vr,Gr,qr,Yr,Jr,Kr,Xr,Zr,Qr,te,re,ee,ne,oe,ie,ae,se,ue,ce,fe,le,pe,de,he,ve,me,ye,we,ge,be,Ee,_e,Ie,ke,Pe,Se,Te,Ce,je,Fe,Ae,xe,De,Oe,Me,Re,$e,Le,Ue,Be,We,Ne,ze,He,Ve,Ge,qe,Ye,Je,Ke,Xe,Ze,Qe,tn,rn,en,nn,on,an,sn,un,cn,fn,ln,pn,dn,hn,vn,mn,yn,wn,gn,bn,En,_n,In,kn,Pn,Sn,Tn,Cn,jn,Fn,An=arguments;return bt.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Fn=function(){function t(){jn||(jn=!0,e.calledRun=!0,T||(z(),n(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),H()))}Y>0||(N(),Y>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),t()}),1)):t()))},ln=function(t,r,e,n){try{var o=rn.getStreamFromFD(t),i=fn(o,r,e);return O[n>>2]=i,0}catch(t){if(void 0===tn||"ErrnoError"!==t.name)throw t;return t.errno}},cn=function(t,r,e,n,o){var i=un(r,e);try{if(isNaN(i))return 61;var a=rn.getStreamFromFD(t);return tn.llseek(a,i,n),lt=[a.position>>>0,(ft=a.position,+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],D[o>>2]=lt[0],D[o+4>>2]=lt[1],a.getdents&&0===i&&0===n&&(a.getdents=null),0}catch(t){if(void 0===tn||"ErrnoError"!==t.name)throw t;return t.errno}},sn=function(t,r,e,n){try{var o=rn.getStreamFromFD(t),i=an(o,r,e);return O[n>>2]=i,0}catch(t){if(void 0===tn||"ErrnoError"!==t.name)throw t;return t.errno}},on=function(t){try{var r=rn.getStreamFromFD(t);return tn.close(r),0}catch(t){if(void 0===tn||"ErrnoError"!==t.name)throw t;return t.errno}},Ne=function(t,r,e){var n=e>0?e:Xr(t)+1,o=new Array(n),i=Jr(t,o,0,o.length);return r&&(o.length=i),o},Wr=function(t){return this.fromWireType(D[t>>2])},Mr=function(){this.allocated=[void 0],this.freelist=[]},Or=function(){Object.assign(Mr.prototype,{get:function(t){return this.allocated[t]},has:function(t){return void 0!==this.allocated[t]},allocate:function(t){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=t,r},free:function(t){this.allocated[t]=void 0,this.freelist.push(t)}})},Fr=function(t,r,e,n,o,i){var a=r.length;a<2&&St("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==e,u=!1,c=1;c<r.length;++c)if(null!==r[c]&&void 0===r[c].destructorFunction){u=!0;break}var f="void"!==r[0].name,l="",p="";for(c=0;c<a-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(a-2,") {\n          throwBindingError('function ").concat(t," called with ' + arguments.length + ' arguments, expected ").concat(a-2,"');\n        }");u&&(d+="var destructors = [];\n");var h=u?"destructors":"null",v=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],m=[St,n,o,Cr,r[0],r[1]];for(s&&(d+="var thisWired = classParam.toWireType("+h+", this);\n"),c=0;c<a-2;++c)d+="var arg"+c+"Wired = argType"+c+".toWireType("+h+", arg"+c+"); // "+r[c+2].name+"\n",v.push("argType"+c),m.push(r[c+2]);if(s&&(p="thisWired"+(p.length>0?", ":"")+p),d+=(f||i?"var rv = ":"")+"invoker(fn"+(p.length>0?", ":"")+p+");\n",u)d+="runDestructors(destructors);\n";else for(c=s?1:2;c<r.length;++c){var y=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==r[c].destructorFunction&&(d+=y+"_dtor("+y+"); // "+r[c].name+"\n",v.push(y+"_dtor"),m.push(r[c].destructorFunction))}f&&(d+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),d+="}\n",v.push(d);var w=jr(Function,v).apply(null,m);return er(t,w)},jr=function(t,r){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type ".concat(c(t)," which is not a function"));var e=er(t.name||"unknownFunctionName",(function(){}));e.prototype=t.prototype;var n=new e,o=t.apply(n,r);return o instanceof Object?o:n},dr=function(t,r,e,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=r,this.isReference=e,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==r.baseClass?this.toWireType=cr:n?(this.toWireType=ur,this.destructorFunction=null):(this.toWireType=fr,this.destructorFunction=null)},lr=function(t){return this.fromWireType(O[t>>2])},fr=function(t,r){if(null===r)return this.isReference&&St("null is not a valid ".concat(this.name)),0;r.$$||St('Cannot pass "'.concat(zr(r),'" as a ').concat(this.name)),r.$$.ptr||St("Cannot pass deleted object as a pointer of type ".concat(this.name)),r.$$.ptrType.isConst&&St("Cannot convert argument of type ".concat(r.$$.ptrType.name," to parameter type ").concat(this.name));var e=r.$$.ptrType.registeredClass;return sr(r.$$.ptr,e,this.registeredClass)},cr=function(t,r){var e;if(null===r)return this.isReference&&St("null is not a valid ".concat(this.name)),this.isSmartPointer?(e=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,e),e):0;r.$$||St('Cannot pass "'.concat(zr(r),'" as a ').concat(this.name)),r.$$.ptr||St("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&r.$$.ptrType.isConst&&St("Cannot convert argument of type ".concat(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name," to parameter type ").concat(this.name));var n=r.$$.ptrType.registeredClass;if(e=sr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&St("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?e=r.$$.smartPtr:St("Cannot convert argument of type ".concat(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:e=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)e=r.$$.smartPtr;else{var o=r.clone();e=this.rawShare(e,Br.toHandle((function(){return o.delete()}))),null!==t&&t.push(this.rawDestructor,e)}break;default:St("Unsupporting sharing policy")}return e},ur=function(t,r){if(null===r)return this.isReference&&St("null is not a valid ".concat(this.name)),0;r.$$||St('Cannot pass "'.concat(zr(r),'" as a ').concat(this.name)),r.$$.ptr||St("Cannot pass deleted object as a pointer of type ".concat(this.name));var e=r.$$.ptrType.registeredClass;return sr(r.$$.ptr,e,this.registeredClass)},ar=function(t,r,e,n,o,i,a,s){this.name=t,this.constructor=r,this.instancePrototype=e,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]},rr=function(){},Zt=function(t){var r=this.getPointee(t);if(!r)return this.destructor(t),null;var e=Kt(this.registeredClass,r);if(void 0!==e){if(0===e.$$.count.value)return e.$$.ptr=r,e.$$.smartPtr=t,e.clone();var n=e.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?Xt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:t}):Xt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(r),s=Bt[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=Ut(r,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?Xt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Xt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})},At=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ft(t,r,e)},Ft=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.name;if(t||St('type "'.concat(n,'" must have a positive integer typeid pointer')),Et.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;St("Cannot register type '".concat(n,"' twice"))}if(Et[t]=r,delete kt[t],gt.hasOwnProperty(t)){var o=gt[t];delete gt[t],o.forEach((function(t){return t()}))}},dt=function(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){O[this.ptr+4>>2]=t},this.get_type=function(){return O[this.ptr+4>>2]},this.set_destructor=function(t){O[this.ptr+8>>2]=t},this.get_destructor=function(){return O[this.ptr+8>>2]},this.set_caught=function(t){t=t?1:0,j[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=j[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,j[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=j[this.ptr+13>>0]},this.init=function(t,r){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(r)},this.set_adjusted_ptr=function(t){O[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return O[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Cn(this.get_type()))return O[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}},ut=function(){var t={a:In};function r(t,r){return kn=t.exports,S=kn.J,L(),yr=kn.L,G(kn.K),Q("wasm-instantiate"),kn}if(Z("wasm-instantiate"),e.instantiateWasm)try{return e.instantiateWasm(t,r)}catch(t){k("Module.instantiateWasm callback failed with error: ".concat(t)),o(t)}return st(P,nt,t,(function(t){r(t.instance)})).catch(o),{}},st=function(t,r,e,n){return t||"function"!=typeof WebAssembly.instantiateStreaming||rt(r)||et(r)||l||"function"!=typeof fetch?at(r,e,n):fetch(r,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(t){return k("wasm streaming compile failed: ".concat(t)),k("falling back to ArrayBuffer instantiation"),at(r,e,n)}))}))},at=function(t,r,e){return it(t).then((function(t){return WebAssembly.instantiate(t,r)})).then((function(t){return t})).then(e,(function(t){k("failed to asynchronously prepare wasm: ".concat(t)),tt(t)}))},it=function(t){if(!P&&(u||f)){if("function"==typeof fetch&&!et(t))return fetch(t,{credentials:"same-origin"}).then((function(r){if(!r.ok)throw"failed to load wasm binary file at '"+t+"'";return r.arrayBuffer()})).catch((function(){return ot(t)}));if(v)return new Promise((function(r,e){v(t,(function(t){return r(new Uint8Array(t))}),e)}))}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){e.onAbort&&e.onAbort(t),k(t="Aborted("+t+")"),T=!0,t+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(t);throw o(r),r},Q=function(t){if(Y--,e.monitorRunDependencies&&e.monitorRunDependencies(Y),0==Y&&(null!==J&&(clearInterval(J),J=null),K)){var r=K;K=null,r()}},Z=function(t){Y++,e.monitorRunDependencies&&e.monitorRunDependencies(Y)},X=function(t){return t},q=function(t){W.unshift(t)},G=function(t){B.unshift(t)},V=function(t){U.unshift(t)},H=function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)q(e.postRun.shift());pt(W)},z=function(){e.noFSInit||tn.init.initialized||tn.init(),tn.ignorePermissions=!1,He.init(),pt(B)},N=function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)V(e.preRun.shift());pt(U)},L=function(){var t=S.buffer;e.HEAP8=j=new Int8Array(t),e.HEAP16=A=new Int16Array(t),e.HEAPU8=F=new Uint8Array(t),e.HEAPU16=x=new Uint16Array(t),e.HEAP32=D=new Int32Array(t),e.HEAPU32=O=new Uint32Array(t),e.HEAPF32=M=new Float32Array(t),e.HEAPF64=R=new Float64Array(t)},C=function(t,r){t||tt(r)},d=function(t){return e.locateFile?e.locateFile(t,p):p+t},(e=r=An.length>0&&void 0!==An[0]?An[0]:{}).ready=new Promise((function(t,r){n=t,o=r})),(e=void 0!==e?e:{}).locateFile=function(t,r){return"jessibuca-pro-image-detector-decoder.wasm"==t&&"undefined"!=typeof JESSIBUCA_PRO_IMAGE_DETECTOR_WASM_URL&&""!=JESSIBUCA_PRO_IMAGE_DETECTOR_WASM_URL?JESSIBUCA_PRO_IMAGE_DETECTOR_WASM_URL:r+t},a=Object.assign({},e),s="./this.program",u="object"==("undefined"==typeof window?"undefined":c(window)),f="function"==typeof importScripts,l="object"==("undefined"==typeof process?"undefined":c(process))&&"object"==c(process.versions)&&"string"==typeof process.versions.node,p="",!l){t.next=71;break}return t.next=56,import("module");case 56:y=t.sent,w=y.createRequire,g=w("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-image-detector-demo.js",document.baseURI).href),b=g("fs"),E=g("path"),p=f?E.dirname(p)+"/":g("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-image-detector-demo.js",document.baseURI).href)),h=function(t,r){return t=et(t)?new URL(t):E.normalize(t),b.readFileSync(t,r?void 0:"utf8")},m=function(t){var r=h(t,!0);return r.buffer||(r=new Uint8Array(r)),r},v=function(t,r,e){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=et(t)?new URL(t):E.normalize(t),b.readFile(t,n?void 0:"utf8",(function(t,o){t?e(t):r(n?o.buffer:o)}))},!e.thisProgram&&process.argv.length>1&&(s=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),e.inspect=function(){return"[Emscripten Module object]"},t.next=72;break;case 71:(u||f)&&(f?p=self.location.href:"undefined"!=typeof document&&document.currentScript&&(p=document.currentScript.src),It&&(p=It),p=0!==p.indexOf("blob:")?p.substr(0,p.replace(/[?#].*/,"").lastIndexOf("/")+1):"",h=function(t){var r=new XMLHttpRequest;return r.open("GET",t,!1),r.send(null),r.responseText},f&&(m=function(t){var r=new XMLHttpRequest;return r.open("GET",t,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),v=function(t,r,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?r(n.response):e()},n.onerror=e,n.send(null)});case 72:if(_=e.print||console.log.bind(console),k=e.printErr||console.error.bind(console),Object.assign(e,a),a=null,e.arguments&&e.arguments,e.thisProgram&&(s=e.thisProgram),e.quit&&e.quit,e.wasmBinary&&(P=e.wasmBinary),"object"!=("undefined"==typeof WebAssembly?"undefined":c(WebAssembly))&&tt("no native wasm support detected"),T=!1,U=[],B=[],W=[],Y=0,J=null,K=null,rt=function(t){return t.startsWith("data:application/octet-stream;base64,")},et=function(t){return t.startsWith("file://")},e.locateFile?rt(nt="jessibuca-pro-image-detector-decoder.wasm")||(nt=d(nt)):nt=new URL("jessibuca-pro-image-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-image-detector-demo.js",document.baseURI).href).href,pt=function(t){for(;t.length>0;)t.shift()(e)},e.noExitRuntime,ht=function(t,r,e){throw new dt(t).init(r,e),t},vt=function(t,r,e,n,o){},mt=function(){for(var t=new Array(256),r=0;r<256;++r)t[r]=String.fromCharCode(r);yt=t},wt=function(t){for(var r="",e=t;F[e];)r+=yt[F[e++]];return r},gt={},Et={},kt={},St=function(t){throw new Pt(t)},Ct=function(t){throw new Tt(t)},jt=function(t,r,e){function n(r){var n=e(r);n.length!==t.length&&Ct("Mismatched type converter count");for(var o=0;o<t.length;++o)At(t[o],n[o])}t.forEach((function(t){kt[t]=r}));var o=new Array(r.length),i=[],a=0;r.forEach((function(t,r){Et.hasOwnProperty(t)?o[r]=Et[t]:(i.push(t),gt.hasOwnProperty(t)||(gt[t]=[]),gt[t].push((function(){o[r]=Et[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)},xt=function(t,r,e,n){r=wt(r),At(t,{name:r,fromWireType:function(t){return!!t},toWireType:function(t,r){return r?e:n},argPackAdvance:8,readValueFromPointer:function(t){return this.fromWireType(F[t])},destructorFunction:null})},Dt=function(t){return{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}},Ot=function(t){St(t.$$.ptrType.registeredClass.name+" instance already deleted")},Mt=!1,Rt=function(t){},$t=function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},Lt=function(t){t.count.value-=1,0===t.count.value&&$t(t)},Ut=function t(r,e,n){if(e===n)return r;if(void 0===n.baseClass)return null;var o=t(r,e,n.baseClass);return null===o?null:n.downcast(o)},Bt={},Wt=function(){return Object.keys(Yt).length},Nt=function(){var t=[];for(var r in Yt)Yt.hasOwnProperty(r)&&t.push(Yt[r]);return t},zt=[],Ht=function(){for(;zt.length;){var t=zt.pop();t.$$.deleteScheduled=!1,t.delete()}},Gt=function(t){Vt=t,zt.length&&Vt&&Vt(Ht)},qt=function(){e.getInheritedInstanceCount=Wt,e.getLiveInheritedInstances=Nt,e.flushPendingDeletes=Ht,e.setDelayFunction=Gt},Yt={},Jt=function(t,r){for(void 0===r&&St("ptr should not be undefined");t.baseClass;)r=t.upcast(r),t=t.baseClass;return r},Kt=function(t,r){return r=Jt(t,r),Yt[r]},Xt=function(t,r){return r.ptrType&&r.ptr||Ct("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&Ct("Both smartPtrType and smartPtr must be specified"),r.count={value:1},Qt(Object.create(t,{$$:{value:r}}))},Qt=function(t){return"undefined"==typeof FinalizationRegistry?(Qt=function(t){return t},t):(Mt=new FinalizationRegistry((function(t){Lt(t.$$)})),Qt=function(t){var r=t.$$;if(r.smartPtr){var e={$$:r};Mt.register(t,e,t)}return t},Rt=function(t){return Mt.unregister(t)},Qt(t))},tr=function(){Object.assign(rr.prototype,{isAliasOf:function(t){if(!(this instanceof rr))return!1;if(!(t instanceof rr))return!1;var r=this.$$.ptrType.registeredClass,e=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,o=t.$$.ptr;r.baseClass;)e=r.upcast(e),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&e===o},clone:function(){if(this.$$.ptr||Ot(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=Qt(Object.create(Object.getPrototypeOf(this),{$$:{value:Dt(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete:function(){this.$$.ptr||Ot(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&St("Object already scheduled for deletion"),Rt(this),Lt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted:function(){return!this.$$.ptr},deleteLater:function(){return this.$$.ptr||Ot(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&St("Object already scheduled for deletion"),zt.push(this),1===zt.length&&Vt&&Vt(Ht),this.$$.deleteScheduled=!0,this}})},er=function(t,r){return Object.defineProperty(r,"name",{value:t})},nr=function(t,r,e){if(void 0===t[r].overloadTable){var n=t[r];t[r]=function(){return t[r].overloadTable.hasOwnProperty(arguments.length)||St("Function '".concat(e,"' called with an invalid number of arguments (").concat(arguments.length,") - expects one of (").concat(t[r].overloadTable,")!")),t[r].overloadTable[arguments.length].apply(this,arguments)},t[r].overloadTable=[],t[r].overloadTable[n.argCount]=n}},or=function(t,r,n){e.hasOwnProperty(t)?((void 0===n||void 0!==e[t].overloadTable&&void 0!==e[t].overloadTable[n])&&St("Cannot register public name '".concat(t,"' twice")),nr(e,t,t),e.hasOwnProperty(n)&&St("Cannot register multiple overloads of a function with the same number of arguments (".concat(n,")!")),e[t].overloadTable[n]=r):(e[t]=r,void 0!==n&&(e[t].numArguments=n))},ir=function(t){if(void 0===t)return"_unknown";var r=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?"_".concat(t):t},sr=function(t,r,e){for(;r!==e;)r.upcast||St("Expected null or instance of ".concat(e.name,", got an instance of ").concat(r.name)),t=r.upcast(t),r=r.baseClass;return t},pr=function(){Object.assign(dr.prototype,{getPointee:function(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor:function(t){this.rawDestructor&&this.rawDestructor(t)},argPackAdvance:8,readValueFromPointer:lr,deleteObject:function(t){null!==t&&t.delete()},fromWireType:Zt})},hr=function(t,r,n){e.hasOwnProperty(t)||Ct("Replacing nonexistant public symbol"),void 0!==e[t].overloadTable&&void 0!==n?e[t].overloadTable[n]=r:(e[t]=r,e[t].argCount=n)},vr=function(t,r,n){var o=e["dynCall_"+t];return n&&n.length?o.apply(null,[r].concat(n)):o.call(null,r)},mr=[],wr=function(t){var r=mr[t];return r||(t>=mr.length&&(mr.length=t+1),mr[t]=r=yr.get(t)),r},gr=function(t,r,e){return t.includes("j")?vr(t,r,e):wr(r).apply(null,e)},br=function(t,r){var e=[];return function(){return e.length=0,Object.assign(e,arguments),gr(t,r,e)}},Er=function(t,r){var e=(t=wt(t)).includes("j")?br(t,r):wr(r);return"function"!=typeof e&&St("unknown function pointer with signature ".concat(t,": ").concat(r)),e},_r=function(t,r){var e=er(r,(function(t){this.name=r,this.message=t;var e=new Error(t).stack;void 0!==e&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},e},kr=function(t){var r=Tn(t),e=wt(r);return Sn(r),e},Pr=function(t,r){var e=[],n={};throw r.forEach((function t(r){n[r]||Et[r]||(kt[r]?kt[r].forEach(t):(e.push(r),n[r]=!0))})),new Ir("".concat(t,": ")+e.map(kr).join([", "]))},Sr=function(t,r,e,n,o,i,a,s,u,c,f,l,p){f=wt(f),i=Er(o,i),s&&(s=Er(a,s)),c&&(c=Er(u,c)),p=Er(l,p);var d=ir(f);or(d,(function(){Pr("Cannot construct ".concat(f," due to unbound types"),[n])})),jt([t,r,e],n?[n]:[],(function(r){var e,o;r=r[0],o=n?(e=r.registeredClass).instancePrototype:rr.prototype;var a=er(f,(function(){if(Object.getPrototypeOf(this)!==u)throw new Pt("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new Pt(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new Pt("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:a}});a.prototype=u;var l=new ar(f,a,u,p,e,i,s,c);l.baseClass&&(void 0===l.baseClass.__derivedClasses&&(l.baseClass.__derivedClasses=[]),l.baseClass.__derivedClasses.push(l));var h=new dr(f,l,!0,!1,!1),v=new dr(f+"*",l,!1,!1,!1),m=new dr(f+" const*",l,!1,!0,!1);return Bt[t]={pointerType:v,constPointerType:m},hr(d,a),[h,v,m]}))},Tr=function(t,r){for(var e=[],n=0;n<t;n++)e.push(O[r+4*n>>2]);return e},Cr=function(t){for(;t.length;){var r=t.pop();t.pop()(r)}},Ar=function(t,r,e,n,o,i){var a=Tr(r,e);o=Er(n,o),jt([],[t],(function(t){t=t[0];var e="constructor ".concat(t.name);if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[r-1])throw new Pt("Cannot register multiple constructors with identical number of parameters (".concat(r-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[r-1]=function(){Pr("Cannot construct ".concat(t.name," due to unbound types"),a)},jt([],a,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[r-1]=Fr(e,n,null,o,i),[]})),[]}))},xr=function(t){var r=(t=t.trim()).indexOf("(");return-1!==r?t.substr(0,r):t},Dr=function(t,r,e,n,o,i,a,s,u){var c=Tr(e,n);r=wt(r),r=xr(r),i=Er(o,i),jt([],[t],(function(t){t=t[0];var n="".concat(t.name,".").concat(r);function o(){Pr("Cannot call ".concat(n," due to unbound types"),c)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(r);var f=t.registeredClass.instancePrototype,l=f[r];return void 0===l||void 0===l.overloadTable&&l.className!==t.name&&l.argCount===e-2?(o.argCount=e-2,o.className=t.name,f[r]=o):(nr(f,r,n),f[r].overloadTable[e-2]=o),jt([],c,(function(o){var s=Fr(n,o,t,i,a,u);return void 0===f[r].overloadTable?(s.argCount=e-2,f[r]=s):f[r].overloadTable[e-2]=s,[]})),[]}))},Rr=new Mr,$r=function(t){t>=Rr.reserved&&0==--Rr.get(t).refcount&&Rr.free(t)},Lr=function(){for(var t=0,r=Rr.reserved;r<Rr.allocated.length;++r)void 0!==Rr.allocated[r]&&++t;return t},Ur=function(){Rr.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),Rr.reserved=Rr.allocated.length,e.count_emval_handles=Lr},Br={toValue:function(t){return t||St("Cannot use deleted val. handle = "+t),Rr.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 Rr.allocate({refcount:1,value:t})}}},Nr=function(t,r){r=wt(r),At(t,{name:r,fromWireType:function(t){var r=Br.toValue(t);return $r(t),r},toWireType:function(t,r){return Br.toHandle(r)},argPackAdvance:8,readValueFromPointer:Wr,destructorFunction:null})},zr=function(t){if(null===t)return"null";var r=c(t);return"object"===r||"array"===r||"function"===r?t.toString():""+t},Hr=function(t,r){switch(r){case 4:return function(t){return this.fromWireType(M[t>>2])};case 8:return function(t){return this.fromWireType(R[t>>3])};default:throw new TypeError("invalid float width (".concat(r,"): ").concat(t))}},Vr=function(t,r,e){r=wt(r),At(t,{name:r,fromWireType:function(t){return t},toWireType:function(t,r){return r},argPackAdvance:8,readValueFromPointer:Hr(r,e),destructorFunction:null})},Gr=function(t,r,e){switch(r){case 1:return e?function(t){return j[t>>0]}:function(t){return F[t>>0]};case 2:return e?function(t){return A[t>>1]}:function(t){return x[t>>1]};case 4:return e?function(t){return D[t>>2]}:function(t){return O[t>>2]};default:throw new TypeError("invalid integer width (".concat(r,"): ").concat(t))}},qr=function(t,r,e,n,o){r=wt(r);var i=function(t){return t};if(0===n){var a=32-8*e;i=function(t){return t<<a>>>a}}var s=r.includes("unsigned");At(t,{name:r,fromWireType:i,toWireType:s?function(t,r){return this.name,r>>>0}:function(t,r){return this.name,r},argPackAdvance:8,readValueFromPointer:Gr(r,e,0!==n),destructorFunction:null})},Yr=function(t,r,e){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(t){var r=O[t>>2],e=O[t+4>>2];return new n(j.buffer,e,r)}e=wt(e),At(t,{name:e,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Jr=function(t,r,e,n){if(!(n>0))return 0;for(var o=e,i=e+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(e>=i)break;r[e++]=s}else if(s<=2047){if(e+1>=i)break;r[e++]=192|s>>6,r[e++]=128|63&s}else if(s<=65535){if(e+2>=i)break;r[e++]=224|s>>12,r[e++]=128|s>>6&63,r[e++]=128|63&s}else{if(e+3>=i)break;r[e++]=240|s>>18,r[e++]=128|s>>12&63,r[e++]=128|s>>6&63,r[e++]=128|63&s}}return r[e]=0,e-o},Kr=function(t,r,e){return Jr(t,F,r,e)},Xr=function(t){for(var r=0,e=0;e<t.length;++e){var n=t.charCodeAt(e);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++e):r+=3}return r},Zr="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Qr=function(t,r,e){for(var n=r+e,o=r;t[o]&&!(o>=n);)++o;if(o-r>16&&t.buffer&&Zr)return Zr.decode(t.subarray(r,o));for(var i="";r<o;){var a=t[r++];if(128&a){var s=63&t[r++];if(192!=(224&a)){var u=63&t[r++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[r++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i},te=function(t,r){return t?Qr(F,t,r):""},re=function(t,r){var e="std::string"===(r=wt(r));At(t,{name:r,fromWireType:function(t){var r,n=O[t>>2],o=t+4;if(e)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==F[s]){var u=te(i,s-i);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),i=s+1}}else{var c=new Array(n);for(a=0;a<n;++a)c[a]=String.fromCharCode(F[o+a]);r=c.join("")}return Sn(t),r},toWireType:function(t,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||St("Cannot pass non-string to std::string"),n=e&&o?Xr(r):r.length;var i=Pn(4+n+1),a=i+4;if(O[i>>2]=n,e&&o)Kr(r,a,n+1);else if(o)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(Sn(a),St("String has UTF-16 code units that do not fit in 8 bits")),F[a+s]=u}else for(s=0;s<n;++s)F[a+s]=r[s];return null!==t&&t.push(Sn,i),i},argPackAdvance:8,readValueFromPointer:lr,destructorFunction:function(t){Sn(t)}})},ee="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,ne=function(t,r){for(var e=t,n=e>>1,o=n+r/2;!(n>=o)&&x[n];)++n;if((e=n<<1)-t>32&&ee)return ee.decode(F.subarray(t,e));for(var i="",a=0;!(a>=r/2);++a){var s=A[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i},oe=function(t,r,e){if(void 0===e&&(e=2147483647),e<2)return 0;for(var n=r,o=(e-=2)<2*t.length?e/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);A[r>>1]=a,r+=2}return A[r>>1]=0,r-n},ie=function(t){return 2*t.length},ae=function(t,r){for(var e=0,n="";!(e>=r/4);){var o=D[t+4*e>>2];if(0==o)break;if(++e,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n},se=function(t,r,e){if(void 0===e&&(e=2147483647),e<4)return 0;for(var n=r,o=n+e-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),D[r>>2]=a,(r+=4)+4>o)break}return D[r>>2]=0,r-n},ue=function(t){for(var r=0,e=0;e<t.length;++e){var n=t.charCodeAt(e);n>=55296&&n<=57343&&++e,r+=4}return r},ce=function(t,r,e){var n,o,i,a,s;e=wt(e),2===r?(n=ne,o=oe,a=ie,i=function(){return x},s=1):4===r&&(n=ae,o=se,a=ue,i=function(){return O},s=2),At(t,{name:e,fromWireType:function(t){for(var e,o=O[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*r;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===e?e=l:(e+=String.fromCharCode(0),e+=l),u=f+r}}return Sn(t),e},toWireType:function(t,n){"string"!=typeof n&&St("Cannot pass non-string to C++ string type ".concat(e));var i=a(n),u=Pn(4+i+r);return O[u>>2]=i>>s,o(n,u+4,i+r),null!==t&&t.push(Sn,u),u},argPackAdvance:8,readValueFromPointer:Wr,destructorFunction:function(t){Sn(t)}})},fe=function(t,r){r=wt(r),At(t,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:function(){},toWireType:function(t,r){}})},le=function(){return 1},pe={},de=function(t){var r=pe[t];return void 0===r?wt(t):r},he=[],ve=function(t,r,e,n,o){return(t=he[t])(r=Br.toValue(r),r[e=de(e)],n,o)},me=function(t){var r=he.length;return he.push(t),r},ye=function(t,r){var e=Et[t];return void 0===e&&St(r+" has unknown type "+kr(t)),e},we=function(t,r){for(var e=new Array(t),n=0;n<t;++n)e[n]=ye(O[r+4*n>>2],"parameter "+n);return e},ge=function(t,r,e){var n=[],o=t.toWireType(n,e);return n.length&&(O[r>>2]=Br.toHandle(n)),o},be=function(t,r,e){var n=we(t,r),o=n.shift();t--;var i="return function (obj, func, destructorsRef, args) {\n",a=0,s=[];0===e&&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]),i+="  var arg".concat(f," = argType").concat(f,".readValueFromPointer(args").concat(a?"+"+a:"",");\n"),a+=n[f].argPackAdvance;for(i+="  var rv = ".concat(1===e?"new func":"func.call","(").concat(s.join(", "),");\n"),f=0;f<t;++f)n[f].deleteObject&&(i+="  argType".concat(f,".deleteObject(arg").concat(f,");\n"));o.isVoid||(u.push("emval_returnValue"),c.push(ge),i+="  return emval_returnValue(retType, destructorsRef, rv);\n"),i+="};\n",u.push(i);var l=jr(Function,u).apply(null,c),p="methodCaller<(".concat(n.map((function(t){return t.name})).join(", "),") => ").concat(o.name,">");return me(er(p,l))},Ee=function(t){t>4&&(Rr.get(t).refcount+=1)},_e=function(t){return Br.toHandle(de(t))},Ie=function(){return Br.toHandle({})},ke=function(t){var r=Br.toValue(t);Cr(r),$r(t)},Pe=function(t,r,e){t=Br.toValue(t),r=Br.toValue(r),e=Br.toValue(e),t[r]=e},Se=function(t,r){var e=(t=ye(t,"_emval_take_value")).readValueFromPointer(r);return Br.toHandle(e)},Te=function(){tt("")},Ce=function(){return Date.now()},je=function(){return performance.now()},Fe=function(t,r,e){return F.copyWithin(t,r,r+e)},Ae=function(t){tt("OOM")},xe=function(t){F.length,Ae()},De={},Oe=function(){return s||"./this.program"},Me=function t(){if(!t.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":c(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Oe()};for(var e in De)void 0===De[e]?delete r[e]:r[e]=De[e];var n=[];for(var e in r)n.push("".concat(e,"=").concat(r[e]));t.strings=n}return t.strings},Re=function(t,r){for(var e=0;e<t.length;++e)j[r++>>0]=t.charCodeAt(e);j[r>>0]=0},$e={isAbs:function(t){return"/"===t.charAt(0)},splitPath:function(t){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1)},normalizeArray:function(t,r){for(var e=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),e++):e&&(t.splice(n,1),e--)}if(r)for(;e;e--)t.unshift("..");return t},normalize:function(t){var r=$e.isAbs(t),e="/"===t.substr(-1);return(t=$e.normalizeArray(t.split("/").filter((function(t){return!!t})),!r).join("/"))||r||(t="."),t&&e&&(t+="/"),(r?"/":"")+t},dirname:function(t){var r=$e.splitPath(t),e=r[0],n=r[1];return e||n?(n&&(n=n.substr(0,n.length-1)),e+n):"."},basename:function(t){if("/"===t)return"/";var r=(t=(t=$e.normalize(t)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?t:t.substr(r+1)},join:function(){var t=Array.prototype.slice.call(arguments);return $e.normalize(t.join("/"))},join2:function(t,r){return $e.normalize(t+"/"+r)}},Le=function(){if("object"==("undefined"==typeof crypto?"undefined":c(crypto))&&"function"==typeof crypto.getRandomValues)return function(t){return crypto.getRandomValues(t)};if(l)try{var t=g("crypto");if(t.randomFillSync)return function(r){return t.randomFillSync(r)};var r=t.randomBytes;return function(t){return t.set(r(t.byteLength)),t}}catch(t){}tt("initRandomDevice")},Ue=function(t){return(Ue=Le())(t)},Be={resolve:function(){for(var t="",r=!1,e=arguments.length-1;e>=-1&&!r;e--){var n=e>=0?arguments[e]:tn.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";t=n+"/"+t,r=$e.isAbs(n)}return(r?"/":"")+(t=$e.normalizeArray(t.split("/").filter((function(t){return!!t})),!r).join("/"))||"."},relative:function(t,r){function e(t){for(var r=0;r<t.length&&""===t[r];r++);for(var e=t.length-1;e>=0&&""===t[e];e--);return r>e?[]:t.slice(r,e-r+1)}t=Be.resolve(t).substr(1),r=Be.resolve(r).substr(1);for(var n=e(t.split("/")),o=e(r.split("/")),i=Math.min(n.length,o.length),a=i,s=0;s<i;s++)if(n[s]!==o[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(a))).join("/")}},We=[],ze=function(){if(!We.length){var t=null;if(l){var r=Buffer.alloc(256),e=0,n=process.stdin.fd;try{e=b.readSync(n,r)}catch(t){if(!t.toString().includes("EOF"))throw t;e=0}t=e>0?r.slice(0,e).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;We=Ne(t,!0)}return We.shift()},He={ttys:[],init:function(){},shutdown:function(){},register:function(t,r){He.ttys[t]={input:[],output:[],ops:r},tn.registerDevice(t,He.stream_ops)},stream_ops:{open:function(t){var r=He.ttys[t.node.rdev];if(!r)throw new tn.ErrnoError(43);t.tty=r,t.seekable=!1},close:function(t){t.tty.ops.fsync(t.tty)},fsync:function(t){t.tty.ops.fsync(t.tty)},read:function(t,r,e,n,o){if(!t.tty||!t.tty.ops.get_char)throw new tn.ErrnoError(60);for(var i=0,a=0;a<n;a++){var s;try{s=t.tty.ops.get_char(t.tty)}catch(t){throw new tn.ErrnoError(29)}if(void 0===s&&0===i)throw new tn.ErrnoError(6);if(null==s)break;i++,r[e+a]=s}return i&&(t.node.timestamp=Date.now()),i},write:function(t,r,e,n,o){if(!t.tty||!t.tty.ops.put_char)throw new tn.ErrnoError(60);try{for(var i=0;i<n;i++)t.tty.ops.put_char(t.tty,r[e+i])}catch(t){throw new tn.ErrnoError(29)}return n&&(t.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(t){return ze()},put_char:function(t,r){null===r||10===r?(_(Qr(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},fsync:function(t){t.output&&t.output.length>0&&(_(Qr(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,r,e){return 0},ioctl_tiocgwinsz:function(t){return[24,80]}},default_tty1_ops:{put_char:function(t,r){null===r||10===r?(k(Qr(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},fsync:function(t){t.output&&t.output.length>0&&(k(Qr(t.output,0)),t.output=[])}}},Ve=function(t){tt()},Ge={ops_table:null,mount:function(t){return Ge.createNode(null,"/",16895,0)},createNode:function(t,r,e,n){if(tn.isBlkdev(e)||tn.isFIFO(e))throw new tn.ErrnoError(63);Ge.ops_table||(Ge.ops_table={dir:{node:{getattr:Ge.node_ops.getattr,setattr:Ge.node_ops.setattr,lookup:Ge.node_ops.lookup,mknod:Ge.node_ops.mknod,rename:Ge.node_ops.rename,unlink:Ge.node_ops.unlink,rmdir:Ge.node_ops.rmdir,readdir:Ge.node_ops.readdir,symlink:Ge.node_ops.symlink},stream:{llseek:Ge.stream_ops.llseek}},file:{node:{getattr:Ge.node_ops.getattr,setattr:Ge.node_ops.setattr},stream:{llseek:Ge.stream_ops.llseek,read:Ge.stream_ops.read,write:Ge.stream_ops.write,allocate:Ge.stream_ops.allocate,mmap:Ge.stream_ops.mmap,msync:Ge.stream_ops.msync}},link:{node:{getattr:Ge.node_ops.getattr,setattr:Ge.node_ops.setattr,readlink:Ge.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Ge.node_ops.getattr,setattr:Ge.node_ops.setattr},stream:tn.chrdev_stream_ops}});var o=tn.createNode(t,r,e,n);return tn.isDir(o.mode)?(o.node_ops=Ge.ops_table.dir.node,o.stream_ops=Ge.ops_table.dir.stream,o.contents={}):tn.isFile(o.mode)?(o.node_ops=Ge.ops_table.file.node,o.stream_ops=Ge.ops_table.file.stream,o.usedBytes=0,o.contents=null):tn.isLink(o.mode)?(o.node_ops=Ge.ops_table.link.node,o.stream_ops=Ge.ops_table.link.stream):tn.isChrdev(o.mode)&&(o.node_ops=Ge.ops_table.chrdev.node,o.stream_ops=Ge.ops_table.chrdev.stream),o.timestamp=Date.now(),t&&(t.contents[r]=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,r){var e=t.contents?t.contents.length:0;if(!(e>=r)){r=Math.max(r,e*(e<1048576?2:1.125)>>>0),0!=e&&(r=Math.max(r,256));var n=t.contents;t.contents=new Uint8Array(r),t.usedBytes>0&&t.contents.set(n.subarray(0,t.usedBytes),0)}},resizeFileStorage:function(t,r){if(t.usedBytes!=r)if(0==r)t.contents=null,t.usedBytes=0;else{var e=t.contents;t.contents=new Uint8Array(r),e&&t.contents.set(e.subarray(0,Math.min(r,t.usedBytes))),t.usedBytes=r}},node_ops:{getattr:function(t){var r={};return r.dev=tn.isChrdev(t.mode)?t.id:1,r.ino=t.id,r.mode=t.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=t.rdev,tn.isDir(t.mode)?r.size=4096:tn.isFile(t.mode)?r.size=t.usedBytes:tn.isLink(t.mode)?r.size=t.link.length:r.size=0,r.atime=new Date(t.timestamp),r.mtime=new Date(t.timestamp),r.ctime=new Date(t.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr:function(t,r){void 0!==r.mode&&(t.mode=r.mode),void 0!==r.timestamp&&(t.timestamp=r.timestamp),void 0!==r.size&&Ge.resizeFileStorage(t,r.size)},lookup:function(t,r){throw tn.genericErrors[44]},mknod:function(t,r,e,n){return Ge.createNode(t,r,e,n)},rename:function(t,r,e){if(tn.isDir(t.mode)){var n;try{n=tn.lookupNode(r,e)}catch(t){}if(n)for(var o in n.contents)throw new tn.ErrnoError(55)}delete t.parent.contents[t.name],t.parent.timestamp=Date.now(),t.name=e,r.contents[e]=t,r.timestamp=t.parent.timestamp,t.parent=r},unlink:function(t,r){delete t.contents[r],t.timestamp=Date.now()},rmdir:function(t,r){var e=tn.lookupNode(t,r);for(var n in e.contents)throw new tn.ErrnoError(55);delete t.contents[r],t.timestamp=Date.now()},readdir:function(t){var r=[".",".."];for(var e in t.contents)t.contents.hasOwnProperty(e)&&r.push(e);return r},symlink:function(t,r,e){var n=Ge.createNode(t,r,41471,0);return n.link=e,n},readlink:function(t){if(!tn.isLink(t.mode))throw new tn.ErrnoError(28);return t.link}},stream_ops:{read:function(t,r,e,n,o){var i=t.node.contents;if(o>=t.node.usedBytes)return 0;var a=Math.min(t.node.usedBytes-o,n);if(a>8&&i.subarray)r.set(i.subarray(o,o+a),e);else for(var s=0;s<a;s++)r[e+s]=i[o+s];return a},write:function(t,r,e,n,o,i){if(!n)return 0;var a=t.node;if(a.timestamp=Date.now(),r.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=r.subarray(e,e+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=r.slice(e,e+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(r.subarray(e,e+n),o),n}if(Ge.expandFileStorage(a,o+n),a.contents.subarray&&r.subarray)a.contents.set(r.subarray(e,e+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=r[e+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(t,r,e){var n=r;if(1===e?n+=t.position:2===e&&tn.isFile(t.node.mode)&&(n+=t.node.usedBytes),n<0)throw new tn.ErrnoError(28);return n},allocate:function(t,r,e){Ge.expandFileStorage(t.node,r+e),t.node.usedBytes=Math.max(t.node.usedBytes,r+e)},mmap:function(t,r,e,n,o){if(!tn.isFile(t.node.mode))throw new tn.ErrnoError(43);var i,a,s=t.node.contents;if(2&o||s.buffer!==j.buffer){if((e>0||e+r<s.length)&&(s=s.subarray?s.subarray(e,e+r):Array.prototype.slice.call(s,e,e+r)),a=!0,!(i=Ve()))throw new tn.ErrnoError(48);j.set(s,i)}else a=!1,i=s.byteOffset;return{ptr:i,allocated:a}},msync:function(t,r,e,n,o){return Ge.stream_ops.write(t,r,0,n,e,!1),0}}},qe=function(t,r,e,n){var o=n?"":X("al ".concat(t));v(t,(function(e){C(e,'Loading data file "'.concat(t,'" failed (no arrayBuffer).')),r(new Uint8Array(e)),o&&Q(o)}),(function(r){if(!e)throw'Loading data file "'.concat(t,'" failed.');e()})),o&&Z(o)},Ye=function(t,r,e,n,o,i){tn.createDataFile(t,r,e,n,o,i)},Je=e.preloadPlugins||[],Ke=function(t,r,e,n){"undefined"!=typeof Browser&&Browser.init();var o=!1;return Je.forEach((function(i){o||i.canHandle(r)&&(i.handle(t,r,e,n),o=!0)})),o},Xe=function(t,r,e,n,o,i,a,s,u,c){var f=r?Be.resolve($e.join2(t,r)):t,l=X("cp ".concat(f));function p(e){function p(e){c&&c(),s||Ye(t,r,e,n,o,u),i&&i(),Q(l)}Ke(e,f,p,(function(){a&&a(),Q(l)}))||p(e)}Z(l),"string"==typeof e?qe(e,(function(t){return p(t)}),a):p(e)},Ze=function(t){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===r)throw new Error("Unknown file open mode: ".concat(t));return r},Qe=function(t,r){var e=0;return t&&(e|=365),r&&(e|=146),e},tn={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 r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t=Be.resolve(t)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new tn.ErrnoError(32);for(var e=t.split("/").filter((function(t){return!!t})),n=tn.root,o="/",i=0;i<e.length;i++){var a=i===e.length-1;if(a&&r.parent)break;if(n=tn.lookupNode(n,e[i]),o=$e.join2(o,e[i]),tn.isMountpoint(n)&&(!a||a&&r.follow_mount)&&(n=n.mounted.root),!a||r.follow)for(var s=0;tn.isLink(n.mode);){var u=tn.readlink(o);if(o=Be.resolve($e.dirname(o),u),n=tn.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new tn.ErrnoError(32)}}return{path:o,node:n}},getPath:function(t){for(var r;;){if(tn.isRoot(t)){var e=t.mount.mountpoint;return r?"/"!==e[e.length-1]?"".concat(e,"/").concat(r):e+r:e}r=r?"".concat(t.name,"/").concat(r):t.name,t=t.parent}},hashName:function(t,r){for(var e=0,n=0;n<r.length;n++)e=(e<<5)-e+r.charCodeAt(n)|0;return(t+e>>>0)%tn.nameTable.length},hashAddNode:function(t){var r=tn.hashName(t.parent.id,t.name);t.name_next=tn.nameTable[r],tn.nameTable[r]=t},hashRemoveNode:function(t){var r=tn.hashName(t.parent.id,t.name);if(tn.nameTable[r]===t)tn.nameTable[r]=t.name_next;else for(var e=tn.nameTable[r];e;){if(e.name_next===t){e.name_next=t.name_next;break}e=e.name_next}},lookupNode:function(t,r){var e=tn.mayLookup(t);if(e)throw new tn.ErrnoError(e,t);for(var n=tn.hashName(t.id,r),o=tn.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===t.id&&i===r)return o}return tn.lookup(t,r)},createNode:function(t,r,e,n){var o=new tn.FSNode(t,r,e,n);return tn.hashAddNode(o),o},destroyNode:function(t){tn.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 r=["r","w","rw"][3&t];return 512&t&&(r+="w"),r},nodePermissions:function(t,r){return tn.ignorePermissions||(!r.includes("r")||292&t.mode)&&(!r.includes("w")||146&t.mode)&&(!r.includes("x")||73&t.mode)?0:2},mayLookup:function(t){var r=tn.nodePermissions(t,"x");return r||(t.node_ops.lookup?0:2)},mayCreate:function(t,r){try{return tn.lookupNode(t,r),20}catch(t){}return tn.nodePermissions(t,"wx")},mayDelete:function(t,r,e){var n;try{n=tn.lookupNode(t,r)}catch(t){return t.errno}var o=tn.nodePermissions(t,"wx");if(o)return o;if(e){if(!tn.isDir(n.mode))return 54;if(tn.isRoot(n)||tn.getPath(n)===tn.cwd())return 10}else if(tn.isDir(n.mode))return 31;return 0},mayOpen:function(t,r){return t?tn.isLink(t.mode)?32:tn.isDir(t.mode)&&("r"!==tn.flagsToPermissionString(r)||512&r)?31:tn.nodePermissions(t,tn.flagsToPermissionString(r)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var t=0;t<=tn.MAX_OPEN_FDS;t++)if(!tn.streams[t])return t;throw new tn.ErrnoError(33)},getStreamChecked:function(t){var r=tn.getStream(t);if(!r)throw new tn.ErrnoError(8);return r},getStream:function(t){return tn.streams[t]},createStream:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return tn.FSStream||(tn.FSStream=function(){this.shared={}},tn.FSStream.prototype={},Object.defineProperties(tn.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 tn.FSStream,t),-1==r&&(r=tn.nextfd()),t.fd=r,tn.streams[r]=t,t},closeStream:function(t){tn.streams[t]=null},chrdev_stream_ops:{open:function(t){var r=tn.getDevice(t.node.rdev);t.stream_ops=r.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new tn.ErrnoError(70)}},major:function(t){return t>>8},minor:function(t){return 255&t},makedev:function(t,r){return t<<8|r},registerDevice:function(t,r){tn.devices[t]={stream_ops:r}},getDevice:function(t){return tn.devices[t]},getMounts:function(t){for(var r=[],e=[t];e.length;){var n=e.pop();r.push(n),e.push.apply(e,n.mounts)}return r},syncfs:function(t,r){"function"==typeof t&&(r=t,t=!1),tn.syncFSRequests++,tn.syncFSRequests>1&&k("warning: ".concat(tn.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var e=tn.getMounts(tn.root.mount),n=0;function o(t){return tn.syncFSRequests--,r(t)}function i(t){if(t)return i.errored?void 0:(i.errored=!0,o(t));++n>=e.length&&o(null)}e.forEach((function(r){if(!r.type.syncfs)return i(null);r.type.syncfs(r,t,i)}))},mount:function(t,r,e){var n,o="/"===e,i=!e;if(o&&tn.root)throw new tn.ErrnoError(10);if(!o&&!i){var a=tn.lookupPath(e,{follow_mount:!1});if(e=a.path,n=a.node,tn.isMountpoint(n))throw new tn.ErrnoError(10);if(!tn.isDir(n.mode))throw new tn.ErrnoError(54)}var s={type:t,opts:r,mountpoint:e,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,o?tn.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(t){var r=tn.lookupPath(t,{follow_mount:!1});if(!tn.isMountpoint(r.node))throw new tn.ErrnoError(28);var e=r.node,n=e.mounted,o=tn.getMounts(n);Object.keys(tn.nameTable).forEach((function(t){for(var r=tn.nameTable[t];r;){var e=r.name_next;o.includes(r.mount)&&tn.destroyNode(r),r=e}})),e.mounted=null;var i=e.mount.mounts.indexOf(n);e.mount.mounts.splice(i,1)},lookup:function(t,r){return t.node_ops.lookup(t,r)},mknod:function(t,r,e){var n=tn.lookupPath(t,{parent:!0}).node,o=$e.basename(t);if(!o||"."===o||".."===o)throw new tn.ErrnoError(28);var i=tn.mayCreate(n,o);if(i)throw new tn.ErrnoError(i);if(!n.node_ops.mknod)throw new tn.ErrnoError(63);return n.node_ops.mknod(n,o,r,e)},create:function(t,r){return r=void 0!==r?r:438,r&=4095,r|=32768,tn.mknod(t,r,0)},mkdir:function(t,r){return r=void 0!==r?r:511,r&=1023,r|=16384,tn.mknod(t,r,0)},mkdirTree:function(t,r){for(var e=t.split("/"),n="",o=0;o<e.length;++o)if(e[o]){n+="/"+e[o];try{tn.mkdir(n,r)}catch(t){if(20!=t.errno)throw t}}},mkdev:function(t,r,e){return void 0===e&&(e=r,r=438),r|=8192,tn.mknod(t,r,e)},symlink:function(t,r){if(!Be.resolve(t))throw new tn.ErrnoError(44);var e=tn.lookupPath(r,{parent:!0}).node;if(!e)throw new tn.ErrnoError(44);var n=$e.basename(r),o=tn.mayCreate(e,n);if(o)throw new tn.ErrnoError(o);if(!e.node_ops.symlink)throw new tn.ErrnoError(63);return e.node_ops.symlink(e,n,t)},rename:function(t,r){var e,n,o=$e.dirname(t),i=$e.dirname(r),a=$e.basename(t),s=$e.basename(r);if(e=tn.lookupPath(t,{parent:!0}).node,n=tn.lookupPath(r,{parent:!0}).node,!e||!n)throw new tn.ErrnoError(44);if(e.mount!==n.mount)throw new tn.ErrnoError(75);var u,c=tn.lookupNode(e,a),f=Be.relative(t,i);if("."!==f.charAt(0))throw new tn.ErrnoError(28);if("."!==(f=Be.relative(r,o)).charAt(0))throw new tn.ErrnoError(55);try{u=tn.lookupNode(n,s)}catch(t){}if(c!==u){var l=tn.isDir(c.mode),p=tn.mayDelete(e,a,l);if(p)throw new tn.ErrnoError(p);if(p=u?tn.mayDelete(n,s,l):tn.mayCreate(n,s))throw new tn.ErrnoError(p);if(!e.node_ops.rename)throw new tn.ErrnoError(63);if(tn.isMountpoint(c)||u&&tn.isMountpoint(u))throw new tn.ErrnoError(10);if(n!==e&&(p=tn.nodePermissions(e,"w")))throw new tn.ErrnoError(p);tn.hashRemoveNode(c);try{e.node_ops.rename(c,n,s)}catch(t){throw t}finally{tn.hashAddNode(c)}}},rmdir:function(t){var r=tn.lookupPath(t,{parent:!0}).node,e=$e.basename(t),n=tn.lookupNode(r,e),o=tn.mayDelete(r,e,!0);if(o)throw new tn.ErrnoError(o);if(!r.node_ops.rmdir)throw new tn.ErrnoError(63);if(tn.isMountpoint(n))throw new tn.ErrnoError(10);r.node_ops.rmdir(r,e),tn.destroyNode(n)},readdir:function(t){var r=tn.lookupPath(t,{follow:!0}).node;if(!r.node_ops.readdir)throw new tn.ErrnoError(54);return r.node_ops.readdir(r)},unlink:function(t){var r=tn.lookupPath(t,{parent:!0}).node;if(!r)throw new tn.ErrnoError(44);var e=$e.basename(t),n=tn.lookupNode(r,e),o=tn.mayDelete(r,e,!1);if(o)throw new tn.ErrnoError(o);if(!r.node_ops.unlink)throw new tn.ErrnoError(63);if(tn.isMountpoint(n))throw new tn.ErrnoError(10);r.node_ops.unlink(r,e),tn.destroyNode(n)},readlink:function(t){var r=tn.lookupPath(t).node;if(!r)throw new tn.ErrnoError(44);if(!r.node_ops.readlink)throw new tn.ErrnoError(28);return Be.resolve(tn.getPath(r.parent),r.node_ops.readlink(r))},stat:function(t,r){var e=tn.lookupPath(t,{follow:!r}).node;if(!e)throw new tn.ErrnoError(44);if(!e.node_ops.getattr)throw new tn.ErrnoError(63);return e.node_ops.getattr(e)},lstat:function(t){return tn.stat(t,!0)},chmod:function(t,r,e){var n;if(!(n="string"==typeof t?tn.lookupPath(t,{follow:!e}).node:t).node_ops.setattr)throw new tn.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod:function(t,r){tn.chmod(t,r,!0)},fchmod:function(t,r){var e=tn.getStreamChecked(t);tn.chmod(e.node,r)},chown:function(t,r,e,n){var o;if(!(o="string"==typeof t?tn.lookupPath(t,{follow:!n}).node:t).node_ops.setattr)throw new tn.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(t,r,e){tn.chown(t,r,e,!0)},fchown:function(t,r,e){var n=tn.getStreamChecked(t);tn.chown(n.node,r,e)},truncate:function(t,r){if(r<0)throw new tn.ErrnoError(28);var e;if(!(e="string"==typeof t?tn.lookupPath(t,{follow:!0}).node:t).node_ops.setattr)throw new tn.ErrnoError(63);if(tn.isDir(e.mode))throw new tn.ErrnoError(31);if(!tn.isFile(e.mode))throw new tn.ErrnoError(28);var n=tn.nodePermissions(e,"w");if(n)throw new tn.ErrnoError(n);e.node_ops.setattr(e,{size:r,timestamp:Date.now()})},ftruncate:function(t,r){var e=tn.getStreamChecked(t);if(0==(2097155&e.flags))throw new tn.ErrnoError(28);tn.truncate(e.node,r)},utime:function(t,r,e){var n=tn.lookupPath(t,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,e)})},open:function(t,r,n){if(""===t)throw new tn.ErrnoError(44);var o;if(n=void 0===n?438:n,n=64&(r="string"==typeof r?Ze(r):r)?4095&n|32768:0,"object"==c(t))o=t;else{t=$e.normalize(t);try{o=tn.lookupPath(t,{follow:!(131072&r)}).node}catch(t){}}var i=!1;if(64&r)if(o){if(128&r)throw new tn.ErrnoError(20)}else o=tn.mknod(t,n,0),i=!0;if(!o)throw new tn.ErrnoError(44);if(tn.isChrdev(o.mode)&&(r&=-513),65536&r&&!tn.isDir(o.mode))throw new tn.ErrnoError(54);if(!i){var a=tn.mayOpen(o,r);if(a)throw new tn.ErrnoError(a)}512&r&&!i&&tn.truncate(o,0),r&=-131713;var s=tn.createStream({node:o,path:tn.getPath(o),flags:r,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!e.logReadFiles||1&r||(tn.readFiles||(tn.readFiles={}),t in tn.readFiles||(tn.readFiles[t]=1)),s},close:function(t){if(tn.isClosed(t))throw new tn.ErrnoError(8);t.getdents&&(t.getdents=null);try{t.stream_ops.close&&t.stream_ops.close(t)}catch(t){throw t}finally{tn.closeStream(t.fd)}t.fd=null},isClosed:function(t){return null===t.fd},llseek:function(t,r,e){if(tn.isClosed(t))throw new tn.ErrnoError(8);if(!t.seekable||!t.stream_ops.llseek)throw new tn.ErrnoError(70);if(0!=e&&1!=e&&2!=e)throw new tn.ErrnoError(28);return t.position=t.stream_ops.llseek(t,r,e),t.ungotten=[],t.position},read:function(t,r,e,n,o){if(n<0||o<0)throw new tn.ErrnoError(28);if(tn.isClosed(t))throw new tn.ErrnoError(8);if(1==(2097155&t.flags))throw new tn.ErrnoError(8);if(tn.isDir(t.node.mode))throw new tn.ErrnoError(31);if(!t.stream_ops.read)throw new tn.ErrnoError(28);var i=void 0!==o;if(i){if(!t.seekable)throw new tn.ErrnoError(70)}else o=t.position;var a=t.stream_ops.read(t,r,e,n,o);return i||(t.position+=a),a},write:function(t,r,e,n,o,i){if(n<0||o<0)throw new tn.ErrnoError(28);if(tn.isClosed(t))throw new tn.ErrnoError(8);if(0==(2097155&t.flags))throw new tn.ErrnoError(8);if(tn.isDir(t.node.mode))throw new tn.ErrnoError(31);if(!t.stream_ops.write)throw new tn.ErrnoError(28);t.seekable&&1024&t.flags&&tn.llseek(t,0,2);var a=void 0!==o;if(a){if(!t.seekable)throw new tn.ErrnoError(70)}else o=t.position;var s=t.stream_ops.write(t,r,e,n,o,i);return a||(t.position+=s),s},allocate:function(t,r,e){if(tn.isClosed(t))throw new tn.ErrnoError(8);if(r<0||e<=0)throw new tn.ErrnoError(28);if(0==(2097155&t.flags))throw new tn.ErrnoError(8);if(!tn.isFile(t.node.mode)&&!tn.isDir(t.node.mode))throw new tn.ErrnoError(43);if(!t.stream_ops.allocate)throw new tn.ErrnoError(138);t.stream_ops.allocate(t,r,e)},mmap:function(t,r,e,n,o){if(0!=(2&n)&&0==(2&o)&&2!=(2097155&t.flags))throw new tn.ErrnoError(2);if(1==(2097155&t.flags))throw new tn.ErrnoError(2);if(!t.stream_ops.mmap)throw new tn.ErrnoError(43);return t.stream_ops.mmap(t,r,e,n,o)},msync:function(t,r,e,n,o){return t.stream_ops.msync?t.stream_ops.msync(t,r,e,n,o):0},munmap:function(t){return 0},ioctl:function(t,r,e){if(!t.stream_ops.ioctl)throw new tn.ErrnoError(59);return t.stream_ops.ioctl(t,r,e)},readFile:function(t){var r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error('Invalid encoding type "'.concat(e.encoding,'"'));var n=tn.open(t,e.flags),o=tn.stat(t).size,i=new Uint8Array(o);return tn.read(n,i,0,o,0),"utf8"===e.encoding?r=Qr(i,0):"binary"===e.encoding&&(r=i),tn.close(n),r},writeFile:function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.flags=e.flags||577;var n=tn.open(t,e.flags,e.mode);if("string"==typeof r){var o=new Uint8Array(Xr(r)+1),i=Jr(r,o,0,o.length);tn.write(n,o,0,i,void 0,e.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");tn.write(n,r,0,r.byteLength,void 0,e.canOwn)}tn.close(n)},cwd:function(){return tn.currentPath},chdir:function(t){var r=tn.lookupPath(t,{follow:!0});if(null===r.node)throw new tn.ErrnoError(44);if(!tn.isDir(r.node.mode))throw new tn.ErrnoError(54);var e=tn.nodePermissions(r.node,"x");if(e)throw new tn.ErrnoError(e);tn.currentPath=r.path},createDefaultDirectories:function(){tn.mkdir("/tmp"),tn.mkdir("/home"),tn.mkdir("/home/web_user")},createDefaultDevices:function(){tn.mkdir("/dev"),tn.registerDevice(tn.makedev(1,3),{read:function(){return 0},write:function(t,r,e,n,o){return n}}),tn.mkdev("/dev/null",tn.makedev(1,3)),He.register(tn.makedev(5,0),He.default_tty_ops),He.register(tn.makedev(6,0),He.default_tty1_ops),tn.mkdev("/dev/tty",tn.makedev(5,0)),tn.mkdev("/dev/tty1",tn.makedev(6,0));var t=new Uint8Array(1024),r=0,e=function(){return 0===r&&(r=Ue(t).byteLength),t[--r]};tn.createDevice("/dev","random",e),tn.createDevice("/dev","urandom",e),tn.mkdir("/dev/shm"),tn.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){tn.mkdir("/proc");var t=tn.mkdir("/proc/self");tn.mkdir("/proc/self/fd"),tn.mount({mount:function(){var r=tn.createNode(t,"fd",16895,73);return r.node_ops={lookup:function(t,r){var e=+r,n=tn.getStreamChecked(e),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams:function(){e.stdin?tn.createDevice("/dev","stdin",e.stdin):tn.symlink("/dev/tty","/dev/stdin"),e.stdout?tn.createDevice("/dev","stdout",null,e.stdout):tn.symlink("/dev/tty","/dev/stdout"),e.stderr?tn.createDevice("/dev","stderr",null,e.stderr):tn.symlink("/dev/tty1","/dev/stderr"),tn.open("/dev/stdin",0),tn.open("/dev/stdout",1),tn.open("/dev/stderr",1)},ensureErrnoError:function(){tn.ErrnoError||(tn.ErrnoError=function(t,r){this.name="ErrnoError",this.node=r,this.setErrno=function(t){this.errno=t},this.setErrno(t),this.message="FS error"},tn.ErrnoError.prototype=new Error,tn.ErrnoError.prototype.constructor=tn.ErrnoError,[44].forEach((function(t){tn.genericErrors[t]=new tn.ErrnoError(t),tn.genericErrors[t].stack="<generic error, no stack>"})))},staticInit:function(){tn.ensureErrnoError(),tn.nameTable=new Array(4096),tn.mount(Ge,{},"/"),tn.createDefaultDirectories(),tn.createDefaultDevices(),tn.createSpecialDirectories(),tn.filesystems={MEMFS:Ge}},init:function(t,r,n){tn.init.initialized=!0,tn.ensureErrnoError(),e.stdin=t||e.stdin,e.stdout=r||e.stdout,e.stderr=n||e.stderr,tn.createStandardStreams()},quit:function(){tn.init.initialized=!1;for(var t=0;t<tn.streams.length;t++){var r=tn.streams[t];r&&tn.close(r)}},findObject:function(t,r){var e=tn.analyzePath(t,r);return e.exists?e.object:null},analyzePath:function(t,r){try{t=(n=tn.lookupPath(t,{follow:!r})).path}catch(t){}var e={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=tn.lookupPath(t,{parent:!0});e.parentExists=!0,e.parentPath=n.path,e.parentObject=n.node,e.name=$e.basename(t),n=tn.lookupPath(t,{follow:!r}),e.exists=!0,e.path=n.path,e.object=n.node,e.name=n.node.name,e.isRoot="/"===n.path}catch(t){e.error=t.errno}return e},createPath:function(t,r,e,n){t="string"==typeof t?t:tn.getPath(t);for(var o=r.split("/").reverse();o.length;){var i=o.pop();if(i){var a=$e.join2(t,i);try{tn.mkdir(a)}catch(t){}t=a}}return a},createFile:function(t,r,e,n,o){var i=$e.join2("string"==typeof t?t:tn.getPath(t),r),a=Qe(n,o);return tn.create(i,a)},createDataFile:function(t,r,e,n,o,i){var a=r;t&&(t="string"==typeof t?t:tn.getPath(t),a=r?$e.join2(t,r):t);var s=Qe(n,o),u=tn.create(a,s);if(e){if("string"==typeof e){for(var c=new Array(e.length),f=0,l=e.length;f<l;++f)c[f]=e.charCodeAt(f);e=c}tn.chmod(u,146|s);var p=tn.open(u,577);tn.write(p,e,0,e.length,0,i),tn.close(p),tn.chmod(u,s)}},createDevice:function(t,r,e,n){var o=$e.join2("string"==typeof t?t:tn.getPath(t),r),i=Qe(!!e,!!n);tn.createDevice.major||(tn.createDevice.major=64);var a=tn.makedev(tn.createDevice.major++,0);return tn.registerDevice(a,{open:function(t){t.seekable=!1},close:function(t){n&&n.buffer&&n.buffer.length&&n(10)},read:function(t,r,n,o,i){for(var a=0,s=0;s<o;s++){var u;try{u=e()}catch(t){throw new tn.ErrnoError(29)}if(void 0===u&&0===a)throw new tn.ErrnoError(6);if(null==u)break;a++,r[n+s]=u}return a&&(t.node.timestamp=Date.now()),a},write:function(t,r,e,o,i){for(var a=0;a<o;a++)try{n(r[e+a])}catch(t){throw new tn.ErrnoError(29)}return o&&(t.node.timestamp=Date.now()),a}}),tn.mkdev(o,i,a)},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=Ne(h(t.url),!0),t.usedBytes=t.contents.length}catch(t){throw new tn.ErrnoError(29)}},createLazyFile:function(t,r,e,n,o){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(t){if(!(t>this.length-1||t<0)){var r=t%this.chunkSize,e=t/this.chunkSize|0;return this.getter(e)[r]}},i.prototype.setDataGetter=function(t){this.getter=t},i.prototype.cacheLength=function(){var t=new XMLHttpRequest;if(t.open("HEAD",e,!1),t.send(null),!(t.status>=200&&t.status<300||304===t.status))throw new Error("Couldn't load "+e+". Status: "+t.status);var r,n=Number(t.getResponseHeader("Content-length")),o=(r=t.getResponseHeader("Accept-Ranges"))&&"bytes"===r,i=(r=t.getResponseHeader("Content-Encoding"))&&"gzip"===r,a=1048576;o||(a=n);var s=this;s.setDataGetter((function(t){var r=t*a,o=(t+1)*a-1;if(o=Math.min(o,n-1),void 0===s.chunks[t]&&(s.chunks[t]=function(t,r){if(t>r)throw new Error("invalid range ("+t+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",e,!1),n!==a&&o.setRequestHeader("Range","bytes="+t+"-"+r),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 "+e+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Ne(o.responseText||"",!0)}(r,o)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,_("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=a,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!f)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a=new i;Object.defineProperties(a,{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:a}}else s={isDevice:!1,url:e};var u=tn.createFile(t,r,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 c={};function l(t,r,e,n,o){var i=t.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(i.slice)for(var s=0;s<a;s++)r[e+s]=i[o+s];else for(s=0;s<a;s++)r[e+s]=i.get(o+s);return a}return Object.keys(u.stream_ops).forEach((function(t){var r=u.stream_ops[t];c[t]=function(){return tn.forceLoadFile(u),r.apply(null,arguments)}})),c.read=function(t,r,e,n,o){return tn.forceLoadFile(u),l(t,r,e,n,o)},c.mmap=function(t,r,e,n,o){tn.forceLoadFile(u);var i=Ve();if(!i)throw new tn.ErrnoError(48);return l(t,j,i,r,e),{ptr:i,allocated:!0}},u.stream_ops=c,u}},rn={DEFAULT_POLLMASK:5,calculateAt:function(t,r,e){if($e.isAbs(r))return r;var n;if(n=-100===t?tn.cwd():rn.getStreamFromFD(t).path,0==r.length){if(!e)throw new tn.ErrnoError(44);return n}return $e.join2(n,r)},doStat:function(t,r,e){try{var n=t(r)}catch(t){if(t&&t.node&&$e.normalize(r)!==$e.normalize(tn.getPath(t.node)))return-54;throw t}D[e>>2]=n.dev,D[e+4>>2]=n.mode,O[e+8>>2]=n.nlink,D[e+12>>2]=n.uid,D[e+16>>2]=n.gid,D[e+20>>2]=n.rdev,lt=[n.size>>>0,(ft=n.size,+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],D[e+24>>2]=lt[0],D[e+28>>2]=lt[1],D[e+32>>2]=4096,D[e+36>>2]=n.blocks;var o=n.atime.getTime(),i=n.mtime.getTime(),a=n.ctime.getTime();return lt=[Math.floor(o/1e3)>>>0,(ft=Math.floor(o/1e3),+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],D[e+40>>2]=lt[0],D[e+44>>2]=lt[1],O[e+48>>2]=o%1e3*1e3,lt=[Math.floor(i/1e3)>>>0,(ft=Math.floor(i/1e3),+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],D[e+56>>2]=lt[0],D[e+60>>2]=lt[1],O[e+64>>2]=i%1e3*1e3,lt=[Math.floor(a/1e3)>>>0,(ft=Math.floor(a/1e3),+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],D[e+72>>2]=lt[0],D[e+76>>2]=lt[1],O[e+80>>2]=a%1e3*1e3,lt=[n.ino>>>0,(ft=n.ino,+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],D[e+88>>2]=lt[0],D[e+92>>2]=lt[1],0},doMsync:function(t,r,e,n,o){if(!tn.isFile(r.node.mode))throw new tn.ErrnoError(43);if(2&n)return 0;var i=F.slice(t,t+e);tn.msync(r,i,o,e,n)},varargs:void 0,get:function(){var t=D[+rn.varargs>>2];return rn.varargs+=4,t},getp:function(){return rn.get()},getStr:function(t){return te(t)},getStreamFromFD:function(t){return tn.getStreamChecked(t)}},en=function(t,r){var e=0;return Me().forEach((function(n,o){var i=r+e;O[t+4*o>>2]=i,Re(n,i),e+=n.length+1})),0},nn=function(t,r){var e=Me();O[t>>2]=e.length;var n=0;return e.forEach((function(t){return n+=t.length+1})),O[r>>2]=n,0},an=function(t,r,e,n){for(var o=0,i=0;i<e;i++){var a=O[r>>2],s=O[r+4>>2];r+=8;var u=tn.read(t,j,a,s,n);if(u<0)return-1;if(o+=u,u<s)break;void 0!==n&&(n+=u)}return o},un=function(t,r){return r+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*r:NaN},fn=function(t,r,e,n){for(var o=0,i=0;i<e;i++){var a=O[r>>2],s=O[r+4>>2];r+=8;var u=tn.write(t,j,a,s,n);if(u<0)return-1;o+=u,void 0!==n&&(n+=u)}return o},pn=function(t){return t%4==0&&(t%100!=0||t%400==0)},dn=function(t,r){for(var e=0,n=0;n<=r;e+=t[n++]);return e},hn=[31,29,31,30,31,30,31,31,30,31,30,31],vn=[31,28,31,30,31,30,31,31,30,31,30,31],mn=function(t,r){for(var e=new Date(t.getTime());r>0;){var n=pn(e.getFullYear()),o=e.getMonth(),i=(n?hn:vn)[o];if(!(r>i-e.getDate()))return e.setDate(e.getDate()+r),e;r-=i-e.getDate()+1,e.setDate(1),o<11?e.setMonth(o+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return e},yn=function(t,r){j.set(t,r)},wn=function(t,r,e,n){var o=O[n+40>>2],i={tm_sec:D[n>>2],tm_min:D[n+4>>2],tm_hour:D[n+8>>2],tm_mday:D[n+12>>2],tm_mon:D[n+16>>2],tm_year:D[n+20>>2],tm_wday:D[n+24>>2],tm_yday:D[n+28>>2],tm_isdst:D[n+32>>2],tm_gmtoff:D[n+36>>2],tm_zone:o?te(o):""},a=te(e),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)a=a.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,r,e){for(var n="number"==typeof t?t.toString():t||"";n.length<r;)n=e[0]+n;return n}function p(t,r){return l(t,r,"0")}function d(t,r){function e(t){return t<0?-1:t>0?1:0}var n;return 0===(n=e(t.getFullYear()-r.getFullYear()))&&0===(n=e(t.getMonth()-r.getMonth()))&&(n=e(t.getDate()-r.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 r=mn(new Date(t.tm_year+1900,0,1),t.tm_yday),e=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),o=h(e),i=h(n);return d(o,r)<=0?d(i,r)<=0?r.getFullYear()+1:r.getFullYear():r.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 r=t.tm_hour;return 0==r?r=12:r>12&&(r-=12),p(r,2)},"%j":function(t){return p(t.tm_mday+dn(pn(t.tm_year+1900)?hn:vn,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 r=t.tm_yday+7-t.tm_wday;return p(Math.floor(r/7),2)},"%V":function(t){var r=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&r++,r){if(53==r){var e=(t.tm_wday+371-t.tm_yday)%7;4==e||3==e&&pn(t.tm_year)||(r=1)}}else{r=52;var n=(t.tm_wday+7-t.tm_yday-1)%7;(4==n||5==n&&pn(t.tm_year%400-1))&&r++}return p(r,2)},"%w":function(t){return t.tm_wday},"%W":function(t){var r=t.tm_yday+7-(t.tm_wday+6)%7;return p(Math.floor(r/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 r=t.tm_gmtoff,e=r>=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(e?"+":"-")+String("0000"+r).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in a=a.replace(/%%/g,"\0\0"),m)a.includes(u)&&(a=a.replace(new RegExp(u,"g"),m[u](i)));a=a.replace(/\0\0/g,"%");var y=Ne(a,!1);return y.length>r?0:(yn(y,t),y.length-1)},gn=function(t,r,e,n,o){return wn(t,r,e,n)},mt(),Pt=e.BindingError=function(t){$(e,t);var r=_t(e);function e(t){var n;return i(this,e),(n=r.call(this,t)).name="BindingError",n}return I(e)}(ct(Error)),Tt=e.InternalError=function(t){$(e,t);var r=_t(e);function e(t){var n;return i(this,e),(n=r.call(this,t)).name="InternalError",n}return I(e)}(ct(Error)),tr(),qt(),pr(),Ir=e.UnboundTypeError=_r(Error,"UnboundTypeError"),Or(),Ur(),bn=function(t,r,e,n){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=tn.nextInode++,this.name=r,this.mode=e,this.node_ops={},this.stream_ops={},this.rdev=n},En=365,_n=146,Object.defineProperties(bn.prototype,{read:{get:function(){return(this.mode&En)===En},set:function(t){t?this.mode|=En:this.mode&=-366}},write:{get:function(){return(this.mode&_n)===_n},set:function(t){t?this.mode|=_n:this.mode&=-147}},isFolder:{get:function(){return tn.isDir(this.mode)}},isDevice:{get:function(){return tn.isChrdev(this.mode)}}}),tn.FSNode=bn,tn.createPreloadedFile=Xe,tn.staticInit(),In={h:ht,s:vt,H:xt,F:Sr,v:Ar,i:Dr,G:Nr,o:Vr,c:qr,b:Yr,p:re,m:ce,I:fe,B:le,l:ve,a:$r,k:be,q:Ee,e:_e,g:Ie,j:ke,f:Pe,d:Se,n:Te,C:Ce,A:je,D:Fe,u:xe,w:en,x:nn,E:on,z:sn,r:cn,y:ln,t:gn},kn=ut(),Pn=function(t){return(Pn=kn.M)(t)},Sn=function(t){return(Sn=kn.N)(t)},Tn=function(t){return(Tn=kn.O)(t)},Cn=function(t){return(Cn=kn.P)(t)},e.dynCall_ji=function(t,r){return(e.dynCall_ji=kn.Q)(t,r)},e.dynCall_jiji=function(t,r,n,o,i){return(e.dynCall_jiji=kn.R)(t,r,n,o,i)},e.dynCall_viijii=function(t,r,n,o,i,a,s){return(e.dynCall_viijii=kn.S)(t,r,n,o,i,a,s)},e.dynCall_iiiiij=function(t,r,n,o,i,a,s){return(e.dynCall_iiiiij=kn.T)(t,r,n,o,i,a,s)},e.dynCall_iiiiijj=function(t,r,n,o,i,a,s,u,c){return(e.dynCall_iiiiijj=kn.U)(t,r,n,o,i,a,s,u,c)},e.dynCall_iiiiiijj=function(t,r,n,o,i,a,s,u,c,f){return(e.dynCall_iiiiiijj=kn.V)(t,r,n,o,i,a,s,u,c,f)},K=function t(){jn||Fn(),jn||(K=t)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return Fn(),t.abrupt("return",r.ready);case 275:case"end":return t.stop()}}),t)})))),Pt=St;function St(t,r){var e=Tt();return(St=function(t,r){return e[t-=293]})(t,r)}function Tt(){var t=["6FKZFAm","2hSqcke","7DWDjbM","11667610hYYyFU","11641527fXmkFL","warn","1308foQAwN","708mQrJbI","debug","152669dJeFhd","4943975bxRFgo","7495336NWtXhf","50237xoUcdi","4528SPFMXm"];return(Tt=function(){return t})()}!function(t,r){for(var e=St,n=t();;)try{if(790906===-parseInt(e(306))/1*(parseInt(e(298))/2)+parseInt(e(304))/3*(parseInt(e(296))/4)+-parseInt(e(293))/5*(-parseInt(e(297))/6)+parseInt(e(299))/7*(-parseInt(e(294))/8)+parseInt(e(301))/9+-parseInt(e(300))/10+parseInt(e(295))/11*(parseInt(e(303))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Tt);var Ct={debug:Pt(305),warn:"warn"},jt={debug:!1,debugLevel:Ct[Pt(302)],debugUuid:""};function Ft(t,r){var e=xt();return(Ft=function(t,r){return e[t-=212]})(t,r)}!function(t,r){for(var e=Ft,n=t();;)try{if(836842===parseInt(e(219))/1+parseInt(e(233))/2*(-parseInt(e(221))/3)+-parseInt(e(217))/4*(parseInt(e(220))/5)+-parseInt(e(227))/6+-parseInt(e(223))/7*(-parseInt(e(230))/8)+-parseInt(e(232))/9+parseInt(e(222))/10*(parseInt(e(212))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(xt);var At=I((function t(r){var e=Ft;i(this,t),this[e(215)]=function(t){var n=e;if(r._opt[n(226)]&&r[n(228)][n(214)]==Ct[n(226)]){for(var o,i=r[n(228)][n(213)]?"["[n(234)](r[n(228)][n(213)],"]"):"",a=arguments[n(224)],s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];(o=console).log[n(235)](o,[n(225)[n(234)](i,n(216))[n(234)](t,"]")][n(234)](s))}},this[e(229)]=function(t){var n=e;if(r[n(228)][n(226)]&&(r[n(228)].debugLevel==Ct.debug||r[n(228)].debugLevel==Ct[n(229)])){for(var o,i=r[n(228)][n(213)]?"["[n(234)](r._opt.debugUuid,"]"):"",a=arguments[n(224)],s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];(o=console)[n(215)].apply(o,[n(225)[n(234)](i,n(218)).concat(t,"]")][n(234)](s))}},this.error=function(t){for(var n,o=e,i=r._opt[o(213)]?"["[o(234)](r[o(228)][o(213)],"]"):"",a=arguments[o(224)],s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];(n=console).error[o(235)](n,["JbPro".concat(i,o(231))[o(234)](t,"]")].concat(s))}}));function xt(){var t=["[❌❌❌][imageDetector][","12279798EFZevv","128382cxxKwY","concat","apply","33QISNWG","debugUuid","debugLevel","log","[✅✅✅][imageDetector][","4RblcMH","[❗❗❗][imageDetector][","1658523QZbdia","1489070NnsKgs","12TxSdHh","4072330pWpuHP","979622FJJFJT","length","JbPro","debug","6624012PiKQGW","_opt","warn","56jnWoyY"];return(xt=function(){return t})()}function Dt(){var t=["9BoYGtU","8811008GrjaZp","push","once","7005410sOGrMl","emit","apply","forEach","ctx","29688jaIjgI","1074829kkBODP","slice","124895BmLpES","198226wZpHYU","3035361xuxhtR","length","162TZnxHF","14kToSYO","off"];return(Dt=function(){return t})()}function Ot(t,r){var e=Dt();return(Ot=function(t,r){return e[t-=105]})(t,r)}!function(t,r){for(var e=Ot,n=t();;)try{if(897814===-parseInt(e(105))/1*(parseInt(e(120))/2)+parseInt(e(121))/3+-parseInt(e(116))/4+-parseInt(e(119))/5*(parseInt(e(123))/6)+parseInt(e(117))/7+parseInt(e(108))/8+-parseInt(e(107))/9*(-parseInt(e(111))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Dt);var Mt=function(){var t=Ot;function r(){i(this,r)}return I(r,[{key:"on",value:function(t,r,e){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:r,ctx:e}),this}},{key:t(110),value:function(t,r,e){var n=this;function o(){var i=Ot;n.off(t,o);for(var a=arguments[i(122)],s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];r[i(113)](e,s)}return o._=r,this.on(t,o,e)}},{key:t(112),value:function(r){for(var e=t,n=((this.e||(this.e={}))[r]||[])[e(118)](),o=arguments[e(122)],i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];for(var s=0;s<n[e(122)];s+=1)n[s].fn[e(113)](n[s][e(115)],i);return this}},{key:t(106),value:function(r,e){var n=t,o=this.e||(this.e={});if(!r)return Object.keys(o)[n(114)]((function(t){delete o[t]})),void delete this.e;var i=o[r],a=[];if(i&&e)for(var s=0,u=i[n(122)];s<u;s+=1)i[s].fn!==e&&i[s].fn._!==e&&a[n(109)](i[s]);return a.length?o[r]=a:delete o[r],this}}]),r}();function Rt(t,r){var e=$t();return(Rt=function(t,r){return e[t-=402]})(t,r)}function $t(){var t=["825027aattvD","42vXHwxy","3070VSxlMN","262VfBKEh","length","parse","762888qGCvHD","27261dXVRTV","562639eUnGpE","3526875ORrbXN","2396032MUYRuu","object","2426jEGoSe"];return($t=function(){return t})()}function Lt(){return function(t){var r=Rt,e="";if(c(t)===r(413))try{e=JSON.stringify(t),e=JSON[r(407)](e)}catch(r){e=t}else e=t;return e}(jt)}!function(t,r){for(var e=Rt,n=t();;)try{if(404096===-parseInt(e(414))/1*(parseInt(e(405))/2)+parseInt(e(402))/3+-parseInt(e(408))/4+parseInt(e(411))/5+parseInt(e(403))/6*(parseInt(e(410))/7)+parseInt(e(412))/8+parseInt(e(409))/9*(-parseInt(e(404))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}($t);var Ut=Wt;function Bt(t){var r=function(){var t=Wt;if("undefined"==typeof Reflect||!Reflect[t(482)])return!1;if(Reflect[t(482)][t(511)])return!1;if(typeof Proxy===t(530))return!0;try{return Boolean[t(544)][t(514)][t(509)](Reflect[t(482)](Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,n=Wt,o=G(t);if(r){var i=G(this)[n(542)];e=Reflect[n(482)](o,arguments,i)}else e=o[n(546)](this,arguments);return N(this,e)}}function Wt(t,r){var e=zt();return(Wt=function(t,r){return e[t-=482]})(t,r)}!function(t,r){for(var e=Wt,n=t();;)try{if(966937===-parseInt(e(521))/1+-parseInt(e(512))/2*(-parseInt(e(508))/3)+-parseInt(e(501))/4+parseInt(e(545))/5*(-parseInt(e(503))/6)+-parseInt(e(485))/7+parseInt(e(522))/8*(parseInt(e(536))/9)+parseInt(e(487))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(zt);var Nt=function(t){var r=Wt;$(n,t);var e=Bt(n);function n(){var t,r=Wt,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,n),(t=e[r(509)](this))[r(533)]={},t[r(532)]="ImageDetector",Object[r(483)](o)[r(526)]((function(t){var e=r;if(void 0===o[t])throw new Error('JbProImageDetector option "'[e(519)](t,e(520)))})),t.originalOptions=o;var a=Lt(),s=Object[r(535)]({},a,o);return t[r(533)]=s,t.debug=new At(C(t)),t[r(524)]=null,t[r(492)]=null,t.startTimestamp=null,t.width=o[r(531)]||0,t[r(517)]=o[r(517)]||0,t[r(504)]=o[r(489)]+"-"+o[r(504)],t[r(527)][r(505)](t.TAG_NAME,r(529),JSON[r(491)](t[r(533)])),console.log(r(499)[r(519)](o[r(504)],":")[r(519)]('"1.0.0"',r(494))),t}return I(n,[{key:r(507),value:function(){var t=r;this[t(506)](),this[t(492)]&&(this.detector.clear(),this.detector[t(500)](),this[t(492)]=null),this[t(524)]&&(this.module=null),this[t(543)]=null,this[t(527)][t(505)](this[t(532)],t(507))}},{key:r(534),value:function(){var t=this;return new Promise((function(r,e){var n=Wt;kt()[n(541)]((function(o){var i=n;t[i(524)]=o,t.module.ImageDetector?(t[i(492)]=new(t[i(524)][i(490)])(t),r()):e(i(523))}))[n(484)]((function(t){var r=n;console[r(498)](t),e(r(516))}))}))}},{key:r(538),value:function(){var t=r,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e[t(531)]&&e[t(517)]&&(this[t(531)]=e[t(531)],this.height=e[t(517)])}},{key:r(515),value:function(t){var e=r,n={blackScreen:e(496),greenScreen:"greenScreen",blurredScreen:e(493),mosaic:e(540)},o={data:!1,type:""};return o[e(510)]=this[e(488)](t[e(510)],t.width,t[e(517)]),o[e(510)]?(o[e(525)]=n[e(496)],o):!o.data&&(o.data=this[e(537)](t[e(510)],t[e(531)],t.height),o[e(510)])?(o[e(525)]=n[e(513)],o):!o[e(510)]&&(o[e(510)]=this._isBlurredScreen(t.data,t[e(531)],t.height),o.data)?(o[e(525)]=n[e(493)],o):!o.data&&(o.data=this._checkMosaic(t[e(510)],t[e(531)],t[e(517)]),o[e(510)])?(o.type=n.mosaic,o):o}},{key:r(488),value:function(t,e,n){return this[r(486)]("isBlackScreen",t,e,n)}},{key:"_isBlurredScreen",value:function(t,e,n){return this[r(486)]("isBlurredScreen",t,e,n)}},{key:r(537),value:function(t,e,n){return this[r(486)]("isGreenScreen",t,e,n)}},{key:r(539),value:function(t,e,n){var o=r;return this[o(486)](o(497),t,e,n)}},{key:r(486),value:function(t,e,n,o){var i=r;if(null==e||null===this[i(492)])return!1;if(!t||!this.detector[t])return!1;if(!(n&&o||this[i(531)]&&this[i(517)]))return!1;var a=n||this.width,s=o||this[i(517)];if(null===this.startTimestamp&&(this[i(543)]=Date[i(495)]()),Date[i(495)]()-this[i(543)]>6e5)return!1;var u=this[i(492)][t](e,a,s,this.buildTime),c=!1;return u&&(c=u[i(502)]),c}},{key:"validatedFailed",value:function(){var t=r;this.debug[t(498)](this[t(532)],t(518))}}]),n}(Mt);function zt(){var t=["mosaic","then","constructor","startTimestamp","prototype","1315BVftBR","apply","construct","keys","catch","29190WwKWcq","_check","24808630QtOcuJ","_isBlackScreen","name","ImageDetector","stringify","detector","blurredScreen"," and is Trial Version[试用版本]","now","blackScreen","checkMosaic","error","JbPro image detector version is ","delete","1683952cDphdR","result","25488HHiwil","buildTime","log","off","destroy","561TPffkY","call","data","sham","1454SvOsdi","greenScreen","valueOf","check","load jessibuca image detector error","height","validatedFailed, please contact the author to get the correct license","concat",'" can not be undefined',"1523743rPQIBS","5000rXIzMt","load jessibuca image detector fail","module","type","forEach","debug","JessibucaProImageDetector","init","function","width","TAG_NAME","_opt","load","assign","20394BLwgWc","_isGreenScreen","updateConfig","_checkMosaic"];return(zt=function(){return t})()}window[Ut(528)]=Nt}));