!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-=367]})(t,r)}function a(){var t=["unwrapExports","exports","7cduTGx","228639GxNDkQ","14jeROPI","644666bcjHEZ","5DAgXBg","35116708qtwVGB","24176AZRaPJ","__esModule","576FMcmco","305036nLCrRq","6840470HPyPOg","3761538LVCChB","default"];return(a=function(){return t})()}var i=o;!function(t){for(var r=o,e=t();;)try{if(433634===-parseInt(r(368))/1+-parseInt(r(367))/2*(parseInt(r(381))/3)+parseInt(r(374))/4*(-parseInt(r(369))/5)+parseInt(r(376))/6*(-parseInt(r(380))/7)+-parseInt(r(371))/8*(parseInt(r(373))/9)+-parseInt(r(375))/10+parseInt(r(370))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(a);var s=e((function(t){var r=o;t[r(379)]=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t[r(379)][r(372)]=!0,t[r(379)][r(377)]=t[r(379)]})),u=n[i(378)](s);function c(){var t=["symbol","114830hbcjxD","constructor","4lbDXxs","createCommonjsModule","8168715gzfdHW","705941cKDDjd","5495455NpImSn","2swZwIO","175133gkhAWe","function","248541xsMINp","160CvbJxO","__esModule","1639rOXnif","default","1136190DtdnOH","unwrapExports","exports","prototype"];return(c=function(){return t})()}function f(t,r){var e=c();return(f=function(t,r){return e[t-=233]})(t,r)}var l=f;!function(t){for(var r=f,e=t();;)try{if(585402===-parseInt(r(239))/1+-parseInt(r(241))/2*(-parseInt(r(244))/3)+parseInt(r(236))/4*(-parseInt(r(240))/5)+parseInt(r(249))/6+-parseInt(r(242))/7*(parseInt(r(245))/8)+parseInt(r(238))/9+-parseInt(r(234))/10*(-parseInt(r(247))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(c);var p=n[l(237)]((function(t){var r=l;function e(r){var n=f;return t[n(251)]=e=n(243)==typeof Symbol&&n(233)==typeof Symbol.iterator?function(t){return typeof t}:function(t){var r=n;return t&&r(243)==typeof Symbol&&t[r(235)]===Symbol&&t!==Symbol[r(252)]?r(233):typeof t},t[n(251)][n(246)]=!0,t[n(251)][n(248)]=t[n(251)],e(r)}t[r(251)]=e,t[r(251)][r(246)]=!0,t[r(251)][r(248)]=t[r(251)]})),d=n[l(250)](p),h=v;function v(t,r){var e=m();return(v=function(t,r){return e[t-=330]})(t,r)}function m(){var t=["3726569QjyAFL","call","108mFTBDm","__esModule","1422540gsVgDq","195750icyNAu","default","274576FJctxx","@@toPrimitive must return a primitive value.","6IuYaPC","2793427uFCHZP","object","67245BAaXHo","unwrapExports","string","52LWCwMk","363340TcVESH","exports","30rlxRPf","createCommonjsModule"];return(m=function(){return t})()}!function(t){for(var r=v,e=t();;)try{if(212605===parseInt(r(330))/1+-parseInt(r(341))/2+parseInt(r(337))/3*(-parseInt(r(340))/4)+parseInt(r(349))/5+-parseInt(r(334))/6*(parseInt(r(335))/7)+-parseInt(r(332))/8*(parseInt(r(347))/9)+-parseInt(r(343))/10*(-parseInt(r(345))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(m);var y=n[h(344)]((function(t){var r=h,e=p[r(331)];t[r(342)]=function(t,n){var o=r;if("object"!=e(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a[o(346)](t,n||o(331));if(o(336)!=e(i))return i;throw new TypeError(o(333))}return(o(339)===n?String:Number)(t)},t[r(342)][r(348)]=!0,t.exports[r(331)]=t[r(342)]}));function g(){var t=["default","646728uMdYPJ","1555BfOJXB","6770ElBPnJ","__esModule","126OXTEon","2084612veRCFR","17369uNxXRI","1938ejrgnX","2490030ZWJuUx","exports","1PLOAbo","string","64240548qvSgpO","2205oixsQP","symbol","5836SfUdNe"];return(g=function(){return t})()}function w(t,r){var e=g();return(w=function(t,r){return e[t-=384]})(t,r)}n[h(338)](y),function(t){for(var r=w,e=t();;)try{if(928302===-parseInt(r(388))/1*(parseInt(r(400))/2)+-parseInt(r(386))/3+-parseInt(r(393))/4*(parseInt(r(396))/5)+-parseInt(r(385))/6*(-parseInt(r(391))/7)+parseInt(r(395))/8*(-parseInt(r(399))/9)+parseInt(r(397))/10*(-parseInt(r(384))/11)+parseInt(r(390))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(g);var b=e((function(t){var r=w,e=p[r(394)];t.exports=function(t){var n=r,o=y(t,n(389));return n(392)==e(o)?o:o+""},t[r(387)][r(398)]=!0,t[r(387)][r(394)]=t[r(387)]}));r(b);var _=I;function E(){var t=["72wAaSrB","exports","prototype","default","enumerable","18588yOhnTO","36EUDOMo","key","289640kFQGeF","251520cRmmzE","defineProperty","1275381yBcixC","configurable","createCommonjsModule","116382ZfEswo","179965wGhHeh","216209vuAEDJ","value","__esModule"];return(E=function(){return t})()}function I(t,r){var e=E();return(I=function(t,r){return e[t-=332]})(t,r)}!function(t){for(var r=I,e=t();;)try{if(153240===-parseInt(r(339))/1+parseInt(r(343))/2+parseInt(r(348))/3+-parseInt(r(342))/4+-parseInt(r(349))/5*(-parseInt(r(340))/6)+parseInt(r(350))/7*(-parseInt(r(334))/8)+parseInt(r(345))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(E);var k=r(n[_(347)]((function(t){var r=_;function e(t,r){for(var e=I,n=0;n<r.length;n++){var o=r[n];o[e(338)]=o[e(338)]||!1,o[e(346)]=!0,e(332)in o&&(o.writable=!0),Object[e(344)](t,b(o[e(341)]),o)}}t.exports=function(t,r,n){var o=I;return r&&e(t[o(336)],r),n&&e(t,n),Object[o(344)](t,o(336),{writable:!1}),t},t[r(335)][r(333)]=!0,t[r(335)][r(337)]=t[r(335)]})));function P(){var t=["362900rAfGus","unwrapExports","1173179zbIWSH","1099076oTxpZQ","2316141FgKPLC","22497sXGIzx","exports","66wGoJgP","createCommonjsModule","30aXxaxT","__esModule","44hOvONy","default","this hasn't been initialised - super() hasn't been called","5723296vfNAhI","2991410AJItxf","33CMCEup"];return(P=function(){return t})()}var C=T;function T(t,r){var e=P();return(T=function(t,r){return e[t-=163]})(t,r)}!function(t){for(var r=T,e=t();;)try{if(570730===parseInt(r(166))/1+parseInt(r(170))/2*(-parseInt(r(168))/3)+-parseInt(r(174))/4*(parseInt(r(163))/5)+-parseInt(r(172))/6*(parseInt(r(165))/7)+parseInt(r(177))/8+-parseInt(r(167))/9+-parseInt(r(178))/10*(-parseInt(r(179))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(P);var F=n[C(171)]((function(t){var r=C;t[r(169)]=function(t){if(void 0===t)throw new ReferenceError(T(176));return t},t[r(169)][r(173)]=!0,t[r(169)][r(175)]=t[r(169)]}));n[C(164)](F);var S=j;function j(t,r){var e=D();return(j=function(t,r){return e[t-=117]})(t,r)}function D(){var t=["146577ymHYlb","3109518UVZXCe","object","5039083bwMbDf","exports","function","10LYUopV","unwrapExports","3192774qqerrd","36EfMQRn","2746768LAclri","default","912282fppuMy","__esModule","Derived constructors may only return object or undefined","1036674FZkyBH"];return(D=function(){return t})()}!function(t){for(var r=j,e=t();;)try{if(761707===-parseInt(r(131))/1+parseInt(r(128))/2+-parseInt(r(132))/3*(parseInt(r(125))/4)+parseInt(r(122))/5*(parseInt(r(124))/6)+parseInt(r(119))/7+parseInt(r(126))/8+-parseInt(r(117))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(D);var A=e((function(t){var r=j,e=p[r(127)];t.exports=function(t,n){var o=r;if(n&&(o(118)==e(n)||o(121)==typeof n))return n;if(void 0!==n)throw new TypeError(o(130));return F(t)},t[r(120)][r(129)]=!0,t[r(120)][r(127)]=t[r(120)]})),x=n[S(123)](A);!function(t){for(var r=$,e=t();;)try{if(941557===-parseInt(r(348))/1+parseInt(r(346))/2+-parseInt(r(353))/3*(-parseInt(r(349))/4)+-parseInt(r(342))/5*(parseInt(r(351))/6)+-parseInt(r(356))/7+parseInt(r(343))/8*(-parseInt(r(347))/9)+parseInt(r(355))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(R);var O=e((function(t){var r=$;function e(r){var n=$;return t[n(344)]=e=Object[n(341)]?Object[n(352)][n(345)]():function(t){var r=n;return t.__proto__||Object[r(352)](t)},t[n(344)][n(354)]=!0,t[n(344)][n(350)]=t[n(344)],e(r)}t.exports=e,t.exports[r(354)]=!0,t[r(344)].default=t.exports})),M=r(O);function R(){var t=["1151132qPTjDN","3783861awXzqf","1405702dpZHyE","358316jrUZgT","default","1555266vaVuiY","getPrototypeOf","9VLzMRZ","__esModule","38010580yhbaCw","4757277jsQiCb","setPrototypeOf","15bbDTvW","16QinuUh","exports","bind"];return(R=function(){return t})()}function $(t,r){var e=R();return($=function(t,r){return e[t-=341]})(t,r)}var L=U;function U(t,r){var e=z();return(U=function(t,r){return e[t-=444]})(t,r)}function z(){var t=["exports","__proto__","15ZshISK","__esModule","936654tFneZW","48SWDdUa","3739396JNJxvO","setPrototypeOf","unwrapExports","default","1091251zuxVHZ","3122070IKTVjT","30QVIFap","436409PeMehX","151192EJnIbc","8227215ihEKAU"];return(z=function(){return t})()}!function(t){for(var r=U,e=t();;)try{if(479154===parseInt(r(446))/1+parseInt(r(447))/2*(parseInt(r(451))/3)+parseInt(r(455))/4+-parseInt(r(445))/5*(parseInt(r(453))/6)+parseInt(r(459))/7*(-parseInt(r(454))/8)+parseInt(r(448))/9+-parseInt(r(444))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(z);var B=e((function(t){var r=U;function e(r,n){var o=U;return t.exports=e=Object[o(456)]?Object[o(456)].bind():function(t,r){return t[o(450)]=r,t},t[o(449)][o(452)]=!0,t[o(449)][o(458)]=t[o(449)],e(r,n)}t[r(449)]=e,t[r(449)][r(452)]=!0,t[r(449)].default=t[r(449)]}));n[L(457)](B);var N=W;function W(t,r){var e=H();return(W=function(t,r){return e[t-=284]})(t,r)}function H(){var t=["942ecdBwp","Super expression must either be null or a function","exports","unwrapExports","function","3855kaarxJ","357351sTkBdy","1336LYsJkm","936970ZibYcZ","__esModule","1761rpgeoX","1360320IKeJLY","154MzYzoX","54153Cbcosh","create","6594JllhwH","defineProperty","2908129NJfqjX","createCommonjsModule","default","prototype"];return(H=function(){return t})()}!function(t){for(var r=W,e=t();;)try{if(545917===parseInt(r(290))/1+-parseInt(r(284))/2*(parseInt(r(294))/3)+parseInt(r(295))/4+-parseInt(r(289))/5*(-parseInt(r(299))/6)+-parseInt(r(301))/7+-parseInt(r(291))/8*(-parseInt(r(297))/9)+parseInt(r(292))/10*(-parseInt(r(296))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(H);var V=n[N(302)]((function(t){var r=N;t[r(286)]=function(t,r){var e=W;if(e(288)!=typeof r&&null!==r)throw new TypeError(e(285));t[e(304)]=Object[e(298)](r&&r[e(304)],{constructor:{value:t,writable:!0,configurable:!0}}),Object[e(300)](t,e(304),{writable:!1}),r&&B(t,r)},t[r(286)][r(293)]=!0,t[r(286)][r(303)]=t[r(286)]})),J=n[N(287)](V),X=G;!function(t){for(var r=G,e=t();;)try{if(185027===-parseInt(r(356))/1*(parseInt(r(354))/2)+-parseInt(r(358))/3+-parseInt(r(361))/4+parseInt(r(367))/5+-parseInt(r(364))/6*(parseInt(r(363))/7)+-parseInt(r(352))/8+parseInt(r(355))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Y);var q=n[X(365)]((function(t){var r=X;t.exports=function(t){var r=G;try{return-1!==Function[r(366)].call(t)[r(353)](r(362))}catch(e){return r(359)==typeof t}},t.exports[r(357)]=!0,t.exports.default=t[r(368)]}));function G(t,r){var e=Y();return(G=function(t,r){return e[t-=352]})(t,r)}function Y(){var t=["686060DMApLJ","[native code]","343lajPEE","34716MiiGwR","createCommonjsModule","toString","633590voqMEU","exports","2093328hhCVLW","indexOf","102GpWJpT","11207628ZNXnoi","4695ehOZvd","__esModule","692529ArRztt","function","unwrapExports"];return(Y=function(){return t})()}n[X(360)](q);var Z=Q;function K(){var t=["2447910SGyjjU","exports","1444280joTyGE","134962cJueLa","7FxYFXk","3906FmrrUa","3970uCMZME","construct","prototype","323508vdhdli","7799taXPcB","__esModule","6NLjHZA","createCommonjsModule","valueOf","48327VAyxpH","25530oKcQiE","default","call","unwrapExports"];return(K=function(){return t})()}function Q(t,r){var e=K();return(Q=function(t,r){return e[t-=275]})(t,r)}!function(t){for(var r=Q,e=t();;)try{if(338786===parseInt(r(275))/1*(-parseInt(r(286))/2)+-parseInt(r(278))/3+-parseInt(r(292))/4+parseInt(r(289))/5*(-parseInt(r(288))/6)+-parseInt(r(287))/7*(parseInt(r(285))/8)+-parseInt(r(283))/9+-parseInt(r(279))/10*(-parseInt(r(293))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(K);var tt=n[Z(276)]((function(t){var r=Z;function e(){var r=Q;try{var n=!Boolean[r(291)][r(277)][r(281)](Reflect[r(290)](Boolean,[],(function(){})))}catch(t){}return(t[r(284)]=e=function(){return!!n},t[r(284)][r(294)]=!0,t[r(284)][r(280)]=t[r(284)])()}t[r(284)]=e,t[r(284)][r(294)]=!0,t[r(284)].default=t[r(284)]}));n[Z(282)](tt);var rt=nt;function et(){var t=["bind","apply","construct","exports","45366hDzDCn","176xXzoUQ","createCommonjsModule","default","8MbsCBs","57022YEKkgC","3213612lBgiIs","91535ZFFZwi","50muDQzK","15597lCkBvz","unwrapExports","11YwqhLM","push","24ZevSfi","41874FuGJBI","210134sttNGQ","__esModule"];return(et=function(){return t})()}function nt(t,r){var e=et();return(nt=function(t,r){return e[t-=441]})(t,r)}!function(t){for(var r=nt,e=t();;)try{if(168945===parseInt(r(461))/1+-parseInt(r(459))/2*(parseInt(r(460))/3)+-parseInt(r(450))/4*(-parseInt(r(453))/5)+-parseInt(r(446))/6+parseInt(r(451))/7*(-parseInt(r(447))/8)+-parseInt(r(455))/9*(-parseInt(r(454))/10)+-parseInt(r(457))/11*(-parseInt(r(452))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(et);var ot=n[rt(448)]((function(t){var r=rt;t[r(445)]=function(t,r,e){var n=nt;if(tt())return Reflect[n(444)][n(443)](null,arguments);var o=[null];o[n(458)].apply(o,r);var a=new(t[n(442)][n(443)](t,o));return e&&B(a,e.prototype),a},t.exports[r(441)]=!0,t[r(445)][r(449)]=t[r(445)]}));n[rt(456)](ot);var at=it;function it(t,r){var e=ct();return(it=function(t,r){return e[t-=385]})(t,r)}!function(t){for(var r=it,e=t();;)try{if(451621===-parseInt(r(390))/1+parseInt(r(402))/2*(-parseInt(r(406))/3)+-parseInt(r(404))/4+-parseInt(r(386))/5*(-parseInt(r(401))/6)+-parseInt(r(396))/7+-parseInt(r(392))/8+parseInt(r(399))/9*(parseInt(r(400))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(ct);var st=n[at(403)]((function(t){var r=at;function e(r){var n=it,o=n(387)==typeof Map?new Map:void 0;return t[n(395)]=e=function(t){var r=n;if(null===t||!q(t))return t;if("function"!=typeof t)throw new TypeError(r(388));if(void 0!==o){if(o[r(391)](t))return o[r(393)](t);o[r(385)](t,e)}function e(){var e=r;return ot(t,arguments,O(this)[e(405)])}return e[r(389)]=Object.create(t[r(389)],{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),B(e,t)},t[n(395)][n(394)]=!0,t[n(395)][n(397)]=t.exports,e(r)}t.exports=e,t[r(395)][r(394)]=!0,t.exports[r(397)]=t.exports})),ut=n[at(398)](st);function ct(){var t=["679411HRZAmR","has","7061592RmfeyX","get","__esModule","exports","4132765lZnzVu","default","unwrapExports","719289DIXjng","430clRiOh","20148zGJkXc","1746JOTxGy","createCommonjsModule","3140168kfFqHX","constructor","1767eOospY","set","695qkIfUm","function","Super expression must either be null or a function","prototype"];return(ct=function(){return t})()}function ft(){var t=["91evrruh","268496dlgrUH","next","2404kjjIoM","throw","exports","1172810ASjsrM","apply","done","867450zZYvNM","then","363xIOzvg","createCommonjsModule","default","278614kpDPOW","unwrapExports","3910644iiThPr","202004Pezccr"];return(ft=function(){return t})()}var lt=pt;function pt(t,r){var e=ft();return(pt=function(t,r){return e[t-=444]})(t,r)}!function(t){for(var r=pt,e=t();;)try{if(338530===parseInt(r(459))/1+-parseInt(r(444))/2+parseInt(r(456))/3*(parseInt(r(448))/4)+parseInt(r(451))/5+-parseInt(r(454))/6+parseInt(r(445))/7*(-parseInt(r(446))/8)+parseInt(r(461))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(ft);var dt=n[lt(457)]((function(t){var r=lt;function e(t,r,e,n,o,a,i){var s=pt;try{var u=t[a](i),c=u.value}catch(t){return void e(t)}u[s(453)]?r(c):Promise.resolve(c)[s(455)](n,o)}t.exports=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=pt,s=t[i(452)](r,n);function u(t){e(s,o,a,u,c,i(447),t)}function c(t){e(s,o,a,u,c,i(449),t)}u(void 0)}))}},t[r(450)].__esModule=!0,t[r(450)][r(458)]=t[r(450)]})),ht=n[lt(460)](dt),vt=yt;function mt(){var t=["push","return","completion","constructor","rval","Generator is already running","4325SmYwdT","prev","charAt","isGeneratorFunction","method","tryLoc","createCommonjsModule","7YUuBtv","resolve","10wfSlPV","pop","awrap","nextLoc","[object Generator]","26102FLKJAQ","illegal catch attempt","then","dispatchException","toString","keys","prototype","complete","async","toStringTag","wrap","@@toStringTag","3340416ULqtpR","slice","name","normal","@@iterator","tryEntries","The iterator does not provide a '","sent","reverse","continue","resultName","defineProperty","Generator","next","value","default","length","@@asyncIterator","iterator","reset","iterator result is not an object","function","661347yOjvUH"," is not iterable","done","completed","__proto__","root","GeneratorFunction","call","type","try statement without catch or finally","throw","mark","_invoke","displayName","abrupt","forEach","object","_sent","arg","177dtowro","7164CsjprB","delegate","unwrapExports","__await","suspendedStart","values","setPrototypeOf","11436584AXXRZo","catchLoc","break","__esModule","258150txIGId","finallyLoc","exports","21778867vxGJlV","hasOwnProperty"];return(mt=function(){return t})()}function yt(t,r){var e=mt();return(yt=function(t,r){return e[t-=452]})(t,r)}!function(t){for(var r=yt,e=t();;)try{if(937960===-parseInt(r(453))/1+-parseInt(r(478))/2*(-parseInt(r(531))/3)+parseInt(r(490))/4+parseInt(r(464))/5*(-parseInt(r(532))/6)+parseInt(r(471))/7*(-parseInt(r(539))/8)+parseInt(r(512))/9+-parseInt(r(473))/10*(-parseInt(r(456))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(mt);var gt=n[vt(470)]((function(t){var r=vt,e=p.default;function n(){var r=yt;t[r(455)]=n=function(){return a},t[r(455)].__esModule=!0,t[r(455)][r(505)]=t.exports;var o,a={},i=Object[r(484)],s=i[r(457)],u=Object[r(501)]||function(t,e,n){var o=r;t[e]=n[o(504)]},c=r(511)==typeof Symbol?Symbol:{},f=c.iterator||r(494),l=c.asyncIterator||r(507),p=c[r(487)]||r(489);function d(t,e,n){return Object[r(501)](t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,r,e){return t[r]=e}}function h(t,e,n,a){var i,s,c,f,l=r,p=e&&e.prototype instanceof _?e:_,d=Object.create(p.prototype),h=new x(a||[]);return u(d,l(524),{value:(i=t,s=n,c=h,f=m,function(t,r){var e=yt;if(f===g)throw Error(e(463));if(f===w){if(e(522)===t)throw r;return{value:o,done:!0}}for(c[e(468)]=t,c[e(530)]=r;;){var n=c.delegate;if(n){var a=j(n,c);if(a){if(a===b)continue;return a}}if(e(503)===c[e(468)])c[e(497)]=c[e(529)]=c[e(530)];else if(e(522)===c[e(468)]){if(f===m)throw f=w,c.arg;c[e(481)](c[e(530)])}else e(459)===c.method&&c[e(526)]("return",c[e(530)]);f=g;var u=v(i,s,c);if(e(493)===u[e(520)]){if(f=c[e(514)]?w:y,u[e(530)]===b)continue;return{value:u[e(530)],done:c[e(514)]}}"throw"===u[e(520)]&&(f=w,c.method=e(522),c[e(530)]=u[e(530)])}})}),d}function v(t,e,n){var o=r;try{return{type:o(493),arg:t[o(519)](e,n)}}catch(t){return{type:"throw",arg:t}}}a[r(488)]=h;var m=r(536),y="suspendedYield",g="executing",w=r(515),b={};function _(){}function E(){}function I(){}var k={};d(k,f,(function(){return this}));var P=Object.getPrototypeOf,C=P&&P(P(O([])));C&&C!==i&&s[r(519)](C,f)&&(k=C);var T=I[r(484)]=_[r(484)]=Object.create(k);function F(t){var e=r;[e(503),e(522),e(459)][e(527)]((function(r){d(t,r,(function(t){return this._invoke(r,t)}))}))}function S(t,r){function n(o,a,i,u){var c=yt,f=v(t[o],t,a);if("throw"!==f[c(520)]){var l=f[c(530)],p=l[c(504)];return p&&c(528)==e(p)&&s[c(519)](p,c(535))?r[c(472)](p[c(535)])[c(480)]((function(t){n(c(503),t,i,u)}),(function(t){n("throw",t,i,u)})):r[c(472)](p).then((function(t){l[c(504)]=t,i(l)}),(function(t){return n(c(522),t,i,u)}))}u(f[c(530)])}var o;u(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(a,a):a()}})}function j(t,e){var n=r,a=e[n(468)],i=t.iterator[a];if(i===o)return e[n(533)]=null,n(522)===a&&t[n(508)][n(459)]&&(e[n(468)]=n(459),e[n(530)]=o,j(t,e),n(522)===e[n(468)])||n(459)!==a&&(e.method="throw",e[n(530)]=new TypeError(n(496)+a+"' method")),b;var s=v(i,t[n(508)],e[n(530)]);if(n(522)===s[n(520)])return e[n(468)]="throw",e[n(530)]=s[n(530)],e[n(533)]=null,b;var u=s[n(530)];return u?u[n(514)]?(e[t[n(500)]]=u.value,e.next=t[n(476)],n(459)!==e[n(468)]&&(e[n(468)]=n(503),e[n(530)]=o),e[n(533)]=null,b):u:(e[n(468)]=n(522),e[n(530)]=new TypeError(n(510)),e.delegate=null,b)}function D(t){var e=r,n={tryLoc:t[0]};1 in t&&(n[e(540)]=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries[e(458)](n)}function A(t){var e=r,n=t[e(460)]||{};n.type=e(493),delete n[e(530)],t[e(460)]=n}function x(t){var e=r;this.tryEntries=[{tryLoc:e(517)}],t.forEach(D,this),this[e(509)](!0)}function O(t){var n=r;if(t||""===t){var a=t[f];if(a)return a[n(519)](t);if("function"==typeof t[n(503)])return t;if(!isNaN(t.length)){var i=-1,u=function r(){for(var e=n;++i<t[e(506)];)if(s[e(519)](t,i))return r[e(504)]=t[i],r[e(514)]=!1,r;return r[e(504)]=o,r[e(514)]=!0,r};return u[n(503)]=u}}throw new TypeError(e(t)+n(513))}return E.prototype=I,u(T,r(461),{value:I,configurable:!0}),u(I,r(461),{value:E,configurable:!0}),E[r(525)]=d(I,p,r(518)),a[r(467)]=function(t){var e=r,n=e(511)==typeof t&&t[e(461)];return!!n&&(n===E||e(518)===(n[e(525)]||n[e(492)]))},a[r(523)]=function(t){var e=r;return Object.setPrototypeOf?Object[e(538)](t,I):(t[e(516)]=I,d(t,p,"GeneratorFunction")),t.prototype=Object.create(T),t},a[r(475)]=function(t){return{__await:t}},F(S[r(484)]),d(S[r(484)],l,(function(){return this})),a.AsyncIterator=S,a[r(486)]=function(t,e,n,o,i){var s=r;void 0===i&&(i=Promise);var u=new S(h(t,e,n,o),i);return a[s(467)](e)?u:u[s(503)]()[s(480)]((function(t){var r=s;return t[r(514)]?t[r(504)]:u[r(503)]()}))},F(T),d(T,p,r(502)),d(T,f,(function(){return this})),d(T,r(482),(function(){return r(477)})),a[r(483)]=function(t){var e=r,n=Object(t),o=[];for(var a in n)o.push(a);return o[e(498)](),function t(){for(var r=e;o[r(506)];){var a=o[r(474)]();if(a in n)return t.value=a,t[r(514)]=!1,t}return t.done=!0,t}},a[r(537)]=O,x.prototype={constructor:x,reset:function(t){var e=r;if(this[e(465)]=0,this.next=0,this[e(497)]=this._sent=o,this[e(514)]=!1,this[e(533)]=null,this[e(468)]=e(503),this.arg=o,this[e(495)][e(527)](A),!t)for(var n in this)"t"===n[e(466)](0)&&s[e(519)](this,n)&&!isNaN(+n[e(491)](1))&&(this[n]=o)},stop:function(){var t=r;this[t(514)]=!0;var e=this[t(495)][0].completion;if(t(522)===e.type)throw e.arg;return this[t(462)]},dispatchException:function(t){var e=r;if(this[e(514)])throw t;var n=this;function a(r,a){var i=e;return c[i(520)]=i(522),c.arg=t,n.next=r,a&&(n[i(468)]=i(503),n[i(530)]=o),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this[e(495)][i],c=u[e(460)];if(e(517)===u[e(469)])return a("end");if(u[e(469)]<=this[e(465)]){var f=s[e(519)](u,"catchLoc"),l=s[e(519)](u,"finallyLoc");if(f&&l){if(this[e(465)]<u[e(540)])return a(u[e(540)],!0);if(this[e(465)]<u[e(454)])return a(u[e(454)])}else if(f){if(this.prev<u[e(540)])return a(u[e(540)],!0)}else{if(!l)throw Error(e(521));if(this[e(465)]<u.finallyLoc)return a(u[e(454)])}}}},abrupt:function(t,e){for(var n=r,o=this.tryEntries[n(506)]-1;o>=0;--o){var a=this[n(495)][o];if(a[n(469)]<=this[n(465)]&&s[n(519)](a,n(454))&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||n(499)===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i[n(460)]:{};return u[n(520)]=t,u[n(530)]=e,i?(this[n(468)]=n(503),this.next=i.finallyLoc,b):this.complete(u)},complete:function(t,e){var n=r;if(n(522)===t.type)throw t.arg;return n(541)===t.type||"continue"===t[n(520)]?this.next=t[n(530)]:n(459)===t.type?(this.rval=this[n(530)]=t[n(530)],this.method="return",this[n(503)]="end"):n(493)===t[n(520)]&&e&&(this[n(503)]=e),b},finish:function(t){for(var e=r,n=this[e(495)].length-1;n>=0;--n){var o=this[e(495)][n];if(o[e(454)]===t)return this[e(485)](o[e(460)],o.afterLoc),A(o),b}},catch:function(t){for(var e=r,n=this[e(495)][e(506)]-1;n>=0;--n){var o=this.tryEntries[n];if(o[e(469)]===t){var a=o[e(460)];if("throw"===a[e(520)]){var i=a.arg;A(o)}return i}}throw Error(e(479))},delegateYield:function(t,e,n){var a=r;return this[a(533)]={iterator:O(t),resultName:e,nextLoc:n},a(503)===this.method&&(this[a(530)]=o),b}},a}t[r(455)]=n,t[r(455)][r(452)]=!0,t[r(455)][r(505)]=t[r(455)]}));n[vt(534)](gt);var wt=It;!function(t){for(var r=It,e=t();;)try{if(493168===-parseInt(r(370))/1+parseInt(r(372))/2*(-parseInt(r(366))/3)+parseInt(r(371))/4+parseInt(r(375))/5+-parseInt(r(367))/6+parseInt(r(369))/7*(-parseInt(r(374))/8)+parseInt(r(368))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Et);var bt=gt(),_t=bt;function Et(){var t=["2543478xgTjbY","4834449BnJLRl","36169JHHXFo","277258rXAQYS","547600DDyPnz","103126BBqoAT","regeneratorRuntime = r","152wleKAw","4123515aSqGwO","12caXQLb"];return(Et=function(){return t})()}try{regeneratorRuntime=bt}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=bt:Function("r",wt(373))(bt)}function It(t,r){var e=Et();return(It=function(t,r){return e[t-=366]})(t,r)}function kt(t,r,e){return r=M(r),x(t,Pt()?Reflect.construct(r,e||[],M(t).constructor):r.apply(t,e))}function Pt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Pt=function(){return!!t})()}var Ct,Tt=(Ct="undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-face-detector-demo.js",document.baseURI).href,ht(_t.mark((function t(){var r,e,n,o,a,i,s,c,f,l,p,h,v,m,y,g,w,b,_,E,I,P,C,T,F,S,j,D,A,x,O,M,R,$,L,U,z,B,N,W,H,V,X,q,G,Y,Z,K,Q,tt,rt,et,nt,ot,at,it,st,ct,ft,lt,pt,dt,ht,vt,mt,yt,gt,wt,bt,Et,It,Pt,Tt,Ft,St,jt,Dt,At,xt,Ot,Mt,Rt,$t,Lt,Ut,zt,Bt,Nt,Wt,Ht,Vt,Jt,Xt,qt,Gt,Yt,Zt,Kt,Qt,tr,rr,er,nr,or,ar,ir,sr,ur,cr,fr,lr,pr,dr,hr,vr,mr,yr,gr,wr,br,_r,Er,Ir,kr,Pr,Cr,Tr,Fr,Sr,jr,Dr,Ar,xr,Or,Mr,Rr,$r,Lr,Ur,zr,Br,Nr,Wr,Hr,Vr,Jr,Xr,qr,Gr,Yr,Zr,Kr,Qr,te,re,ee,ne,oe,ae,ie,se,ue,ce,fe,le,pe,de,he,ve,me,ye,ge,we,be,_e,Ee,Ie,ke,Pe,Ce,Te,Fe,Se,je,De,Ae,xe,Oe,Me,Re,$e,Le,Ue,ze,Be,Ne,We,He,Ve,Je,Xe,qe,Ge,Ye,Ze,Ke,Qe,tn,rn,en,nn,on,an,sn,un,cn,fn,ln,pn,dn,hn,vn,mn,yn,gn,wn,bn,_n,En,In,kn,Pn,Cn,Tn,Fn,Sn,jn,Dn,An,xn,On,Mn,Rn,$n,Ln,Un,zn,Bn,Nn,Wn,Hn,Vn,Jn,Xn,qn=arguments;return _t.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Xn=function(){function t(){Jn||(Jn=!0,e.calledRun=!0,T||(N(),n(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),W()))}q>0||(B(),q>0||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),t()}),1)):t()))},Tn=function(t,r,e,n){try{var o=Wt.getStreamFromFD(t),a=Cn(o,r,e);return O[n>>2]=a,0}catch(t){if(void 0===Bt||"ErrnoError"!==t.name)throw t;return t.errno}},Pn=function(t,r,e,n,o){var a=kn(r,e);try{if(isNaN(a))return 61;var i=Wt.getStreamFromFD(t);return Bt.llseek(i,a,n),lt=[i.position>>>0,(ft=i.position,+Math.abs(ft)>=1?ft>0?+Math.floor(ft/4294967296)>>>0:~~+Math.ceil((ft-+(~~ft>>>0))/4294967296)>>>0:0)],x[o>>2]=lt[0],x[o+4>>2]=lt[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(t){if(void 0===Bt||"ErrnoError"!==t.name)throw t;return t.errno}},In=function(t,r,e,n){try{var o=Wt.getStreamFromFD(t),a=En(o,r,e);return O[n>>2]=a,0}catch(t){if(void 0===Bt||"ErrnoError"!==t.name)throw t;return t.errno}},_n=function(t){try{var r=Wt.getStreamFromFD(t);return Bt.close(r),0}catch(t){if(void 0===Bt||"ErrnoError"!==t.name)throw t;return t.errno}},he=function(){this.allocated=[void 0],this.freelist=[]},de=function(){Object.assign(he.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)}})},ce=function(t,r,e,n,o,a){var i=r.length;i<2&&ur("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<i-2;++c)l+=(0!==c?", ":"")+"arg"+c,p+=(0!==c?", ":"")+"arg"+c+"Wired";var d="\n return function (".concat(l,") {\n if (arguments.length !== ").concat(i-2,") {\n throwBindingError('function ").concat(t," called with ' + arguments.length + ' arguments, expected ").concat(i-2,"');\n }");u&&(d+="var destructors = [];\n");var h=u?"destructors":"null",v=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],m=[ur,n,o,qt,r[0],r[1]];for(s&&(d+="var thisWired = classParam.toWireType("+h+", this);\n"),c=0;c<i-2;++c)d+="var arg"+c+"Wired = argType"+c+".toWireType("+h+", arg"+c+"); // "+r[c+2].name+"\n",v.push("argType"+c),m.push(r[c+2]);if(s&&(p="thisWired"+(p.length>0?", ":"")+p),d+=(f||a?"var rv = ":"")+"invoker(fn"+(p.length>0?", ":"")+p+");\n",u)d+="runDestructors(destructors);\n";else for(c=s?1:2;c<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 g=ue(Function,v).apply(null,m);return Rr(t,g)},ue=function(t,r){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type ".concat(d(t)," which is not a function"));var e=Rr(t.name||"unknownFunctionName",(function(){}));e.prototype=t.prototype;var n=new e,o=t.apply(n,r);return o instanceof Object?o:n},Xr=function(t,r,e,n,o,a,i,s,u,c,f){this.name=t,this.registeredClass=r,this.isReference=e,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==r.baseClass?this.toWireType=Wr:n?(this.toWireType=Nr,this.destructorFunction=null):(this.toWireType=Hr,this.destructorFunction=null)},Vr=function(t){return this.fromWireType(O[t>>2])},Hr=function(t,r){if(null===r)return this.isReference&&ur("null is not a valid ".concat(this.name)),0;r.$$||ur('Cannot pass "'.concat(_e(r),'" as a ').concat(this.name)),r.$$.ptr||ur("Cannot pass deleted object as a pointer of type ".concat(this.name)),r.$$.ptrType.isConst&&ur("Cannot convert argument of type ".concat(r.$$.ptrType.name," to parameter type ").concat(this.name));var e=r.$$.ptrType.registeredClass;return Br(r.$$.ptr,e,this.registeredClass)},Wr=function(t,r){var e;if(null===r)return this.isReference&&ur("null is not a valid ".concat(this.name)),this.isSmartPointer?(e=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,e),e):0;r.$$||ur('Cannot pass "'.concat(_e(r),'" as a ').concat(this.name)),r.$$.ptr||ur("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&r.$$.ptrType.isConst&&ur("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=Br(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&ur("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?e=r.$$.smartPtr:ur("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,we.toHandle((function(){return o.delete()}))),null!==t&&t.push(this.rawDestructor,e)}break;default:ur("Unsupporting sharing policy")}return e},Nr=function(t,r){if(null===r)return this.isReference&&ur("null is not a valid ".concat(this.name)),0;r.$$||ur('Cannot pass "'.concat(_e(r),'" as a ').concat(this.name)),r.$$.ptr||ur("Cannot pass deleted object as a pointer of type ".concat(this.name));var e=r.$$.ptrType.registeredClass;return Br(r.$$.ptr,e,this.registeredClass)},zr=function(t,r,e,n,o,a,i,s){this.name=t,this.constructor=r,this.instancePrototype=e,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]},Mr=function(){},Ar=function(t){var r=this.getPointee(t);if(!r)return this.destructor(t),null;var e=jr(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?Dr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:t}):Dr(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var a,i=this.registeredClass.getActualType(r),s=br[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var u=wr(r,this.registeredClass,a.registeredClass);return null===u?o.call(this):this.isSmartPointer?Dr(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:t}):Dr(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})},fr=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 cr(t,r,e)},cr=function(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.name;if(t||ur('type "'.concat(n,'" must have a positive integer typeid pointer')),Zt.hasOwnProperty(t)){if(e.ignoreDuplicateRegistrations)return;ur("Cannot register type '".concat(n,"' twice"))}if(Zt[t]=r,delete Kt[t],Yt.hasOwnProperty(t)){var o=Yt[t];delete Yt[t],o.forEach((function(t){return t()}))}},Gt=function(t){return this.fromWireType(x[t>>2])},Jt=function(t,r,e,n){Wt.varargs=n;try{r=Wt.getStr(r),r=Wt.calculateAt(t,r);var o=n?Wt.get():0;return Bt.open(r,e,o).fd}catch(t){if(void 0===Bt||"ErrnoError"!==t.name)throw t;return-t.errno}},Vt=function(t,r,e){Wt.varargs=e;try{var n=Wt.getStreamFromFD(t);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=Wt.getp();x[a>>2]=o.c_iflag||0,x[a+4>>2]=o.c_oflag||0,x[a+8>>2]=o.c_cflag||0,x[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)S[a+i+17|0]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=Wt.getp();var s=x[a>>2],u=x[a+4>>2],c=x[a+8>>2],f=x[a+12>>2],l=[];for(i=0;i<32;i++)l.push(S[a+i+17|0]);return n.tty.ops.ioctl_tcsets(n.tty,r,{c_iflag:s,c_oflag:u,c_cflag:c,c_lflag:f,c_cc:l})}return 0;case 21519:return n.tty?(a=Wt.getp(),x[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=Wt.getp(),Bt.ioctl(n,r,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var p=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=Wt.getp(),D[a>>1]=p[0],D[a+2>>1]=p[1]}return 0;default:return-28}}catch(t){if(void 0===Bt||"ErrnoError"!==t.name)throw t;return-t.errno}},Ht=function(t,r,e){Wt.varargs=e;try{var n=Wt.getStreamFromFD(t);switch(r){case 0:if((o=Wt.get())<0)return-28;for(;Bt.streams[o];)o++;return Bt.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=Wt.get();return n.flags|=o,0;case 5:return o=Wt.getp(),D[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return mt(28),-1}}catch(t){if(void 0===Bt||"ErrnoError"!==t.name)throw t;return-t.errno}},St=function(t,r,e){var n=e>0?e:Tt(t)+1,o=new Array(n),a=Ft(t,o,0,o.length);return r&&(o.length=a),o},ht=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,S[this.ptr+12|0]=t},this.get_caught=function(){return 0!=S[this.ptr+12|0]},this.set_rethrown=function(t){t=t?1:0,S[this.ptr+13|0]=t},this.get_rethrown=function(){return 0!=S[this.ptr+13|0]},this.init=function(t,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(Vn(this.get_type()))return O[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}},dt=function(){tt("missing function: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm")},ct=function(){var t={a:Un};function r(t,r){return zn=t.exports,C=zn.V,$(),Zr=zn.Y,V(zn.W),Q("wasm-instantiate"),zn}if(K("wasm-instantiate"),e.instantiateWasm)try{return e.instantiateWasm(t,r)}catch(t){I("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)||f||"function"!=typeof fetch?it(r,e,n):fetch(r,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(t){return I("wasm streaming compile failed: ".concat(t)),I("falling back to ArrayBuffer instantiation"),it(r,e,n)}))}))},it=function(t,r,e){return at(t).then((function(t){return WebAssembly.instantiate(t,r)})).then((function(t){return t})).then(e,(function(t){I("failed to asynchronously prepare wasm: ".concat(t)),tt(t)}))},at=function(t){if(!P&&(s||c)){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),I(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(q--,e.monitorRunDependencies&&e.monitorRunDependencies(q),0==q&&(null!==G&&(clearInterval(G),G=null),Y)){var r=Y;Y=null,r()}},K=function(t){q++,e.monitorRunDependencies&&e.monitorRunDependencies(q)},Z=function(t){return t},X=function(t){z.unshift(t)},V=function(t){U.unshift(t)},H=function(t){L.unshift(t)},W=function(){if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)X(e.postRun.shift());pt(z)},N=function(){e.noFSInit||Bt.init.initialized||Bt.init(),Bt.ignorePermissions=!1,Dt.init(),pt(U)},B=function(){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)H(e.preRun.shift());pt(L)},$=function(){var t=C.buffer;e.HEAP8=S=new Int8Array(t),e.HEAP16=D=new Int16Array(t),e.HEAPU8=j=new Uint8Array(t),e.HEAPU16=A=new Uint16Array(t),e.HEAP32=x=new Int32Array(t),e.HEAPU32=O=new Uint32Array(t),e.HEAPF32=M=new Float32Array(t),e.HEAPF64=R=new Float64Array(t)},F=function(t,r){t||tt(r)},p=function(t){return e.locateFile?e.locateFile(t,l):l+t},(e=r=qn.length>0&&void 0!==qn[0]?qn[0]:{}).ready=new Promise((function(t,r){n=t,o=r})),(e=void 0!==e?e:{}).locateFile=function(t,r){return"jessibuca-pro-face-detector-decoder.wasm"==t&&"undefined"!=typeof JESSIBUCA_PRO_FACE_DETECTOR_WASM_URL&&""!=JESSIBUCA_PRO_FACE_DETECTOR_WASM_URL?JESSIBUCA_PRO_FACE_DETECTOR_WASM_URL:r+t},a=Object.assign({},e),i="./this.program",s="object"==("undefined"==typeof window?"undefined":d(window)),c="function"==typeof importScripts,f="object"==("undefined"==typeof process?"undefined":d(process))&&"object"==d(process.versions)&&"string"==typeof process.versions.node,l="",!f){t.next=75;break}return t.next=60,import("module");case 60:y=t.sent,g=y.createRequire,w=g("undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-face-detector-demo.js",document.baseURI).href),b=w("fs"),_=w("path"),l=c?_.dirname(l)+"/":w("url").fileURLToPath(new URL("./","undefined"==typeof document&&"undefined"==typeof location?new(require("url").URL)("file:"+__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("jessibuca-pro-face-detector-demo.js",document.baseURI).href)),h=function(t,r){return t=et(t)?new URL(t):_.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):_.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&&(i=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),e.inspect=function(){return"[Emscripten Module object]"},t.next=76;break;case 75:(s||c)&&(c?l=self.location.href:"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),Ct&&(l=Ct),l=0!==l.indexOf("blob:")?l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1):"",h=function(t){var r=new XMLHttpRequest;return r.open("GET",t,!1),r.send(null),r.responseText},c&&(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 76:if(E=e.print||console.log.bind(console),I=e.printErr||console.error.bind(console),Object.assign(e,a),a=null,e.arguments&&e.arguments,e.thisProgram&&(i=e.thisProgram),e.quit&&e.quit,e.wasmBinary&&(P=e.wasmBinary),"object"!=("undefined"==typeof WebAssembly?"undefined":d(WebAssembly))&&tt("no native wasm support detected"),T=!1,L=[],U=[],z=[],q=0,G=null,Y=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-face-detector-decoder.wasm")||(nt=p(nt)):nt=new URL("jessibuca-pro-face-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-face-detector-demo.js",document.baseURI).href).href,pt=function(t){for(;t.length>0;)t.shift()(e)},e.noExitRuntime,dt.stub=!0,vt=function(t,r,e){throw new ht(t).init(r,e),t},mt=function(t){return x[Wn()>>2]=t,t},yt={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=yt.isAbs(t),e="/"===t.substr(-1);return(t=yt.normalizeArray(t.split("/").filter((function(t){return!!t})),!r).join("/"))||r||(t="."),t&&e&&(t+="/"),(r?"/":"")+t},dirname:function(t){var r=yt.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=yt.normalize(t)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?t:t.substr(r+1)},join:function(){var t=Array.prototype.slice.call(arguments);return yt.normalize(t.join("/"))},join2:function(t,r){return yt.normalize(t+"/"+r)}},gt=function(){if("object"==("undefined"==typeof crypto?"undefined":d(crypto))&&"function"==typeof crypto.getRandomValues)return function(t){return crypto.getRandomValues(t)};if(f)try{var t=w("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")},wt=function(t){return(wt=gt())(t)},bt={resolve:function(){for(var t="",r=!1,e=arguments.length-1;e>=-1&&!r;e--){var n=e>=0?arguments[e]:Bt.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";t=n+"/"+t,r=yt.isAbs(n)}return(r?"/":"")+(t=yt.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=bt.resolve(t).substr(1),r=bt.resolve(r).substr(1);for(var n=e(t.split("/")),o=e(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},Et="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,It=function(t,r,e){for(var n=r+e,o=r;t[o]&&!(o>=n);)++o;if(o-r>16&&t.buffer&&Et)return Et.decode(t.subarray(r,o));for(var a="";r<o;){var i=t[r++];if(128&i){var s=63&t[r++];if(192!=(224&i)){var u=63&t[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&t[r++])<65536)a+=String.fromCharCode(i);else{var c=i-65536;a+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},Pt=[],Tt=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},Ft=function(t,r,e,n){if(!(n>0))return 0;for(var o=e,a=e+n-1,i=0;i<t.length;++i){var s=t.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++i)),s<=127){if(e>=a)break;r[e++]=s}else if(s<=2047){if(e+1>=a)break;r[e++]=192|s>>6,r[e++]=128|63&s}else if(s<=65535){if(e+2>=a)break;r[e++]=224|s>>12,r[e++]=128|s>>6&63,r[e++]=128|63&s}else{if(e+3>=a)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},jt=function(){if(!Pt.length){var t=null;if(f){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;Pt=St(t,!0)}return Pt.shift()},Dt={ttys:[],init:function(){},shutdown:function(){},register:function(t,r){Dt.ttys[t]={input:[],output:[],ops:r},Bt.registerDevice(t,Dt.stream_ops)},stream_ops:{open:function(t){var r=Dt.ttys[t.node.rdev];if(!r)throw new Bt.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 Bt.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=t.tty.ops.get_char(t.tty)}catch(t){throw new Bt.ErrnoError(29)}if(void 0===s&&0===a)throw new Bt.ErrnoError(6);if(null==s)break;a++,r[e+i]=s}return a&&(t.node.timestamp=Date.now()),a},write:function(t,r,e,n,o){if(!t.tty||!t.tty.ops.put_char)throw new Bt.ErrnoError(60);try{for(var a=0;a<n;a++)t.tty.ops.put_char(t.tty,r[e+a])}catch(t){throw new Bt.ErrnoError(29)}return n&&(t.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:function(t){return jt()},put_char:function(t,r){null===r||10===r?(E(It(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},fsync:function(t){t.output&&t.output.length>0&&(E(It(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?(I(It(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},fsync:function(t){t.output&&t.output.length>0&&(I(It(t.output,0)),t.output=[])}}},At=function(t){tt()},xt={ops_table:null,mount:function(t){return xt.createNode(null,"/",16895,0)},createNode:function(t,r,e,n){if(Bt.isBlkdev(e)||Bt.isFIFO(e))throw new Bt.ErrnoError(63);xt.ops_table||(xt.ops_table={dir:{node:{getattr:xt.node_ops.getattr,setattr:xt.node_ops.setattr,lookup:xt.node_ops.lookup,mknod:xt.node_ops.mknod,rename:xt.node_ops.rename,unlink:xt.node_ops.unlink,rmdir:xt.node_ops.rmdir,readdir:xt.node_ops.readdir,symlink:xt.node_ops.symlink},stream:{llseek:xt.stream_ops.llseek}},file:{node:{getattr:xt.node_ops.getattr,setattr:xt.node_ops.setattr},stream:{llseek:xt.stream_ops.llseek,read:xt.stream_ops.read,write:xt.stream_ops.write,allocate:xt.stream_ops.allocate,mmap:xt.stream_ops.mmap,msync:xt.stream_ops.msync}},link:{node:{getattr:xt.node_ops.getattr,setattr:xt.node_ops.setattr,readlink:xt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:xt.node_ops.getattr,setattr:xt.node_ops.setattr},stream:Bt.chrdev_stream_ops}});var o=Bt.createNode(t,r,e,n);return Bt.isDir(o.mode)?(o.node_ops=xt.ops_table.dir.node,o.stream_ops=xt.ops_table.dir.stream,o.contents={}):Bt.isFile(o.mode)?(o.node_ops=xt.ops_table.file.node,o.stream_ops=xt.ops_table.file.stream,o.usedBytes=0,o.contents=null):Bt.isLink(o.mode)?(o.node_ops=xt.ops_table.link.node,o.stream_ops=xt.ops_table.link.stream):Bt.isChrdev(o.mode)&&(o.node_ops=xt.ops_table.chrdev.node,o.stream_ops=xt.ops_table.chrdev.stream),o.timestamp=Date.now(),t&&(t.contents[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=Bt.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,Bt.isDir(t.mode)?r.size=4096:Bt.isFile(t.mode)?r.size=t.usedBytes:Bt.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&&xt.resizeFileStorage(t,r.size)},lookup:function(t,r){throw Bt.genericErrors[44]},mknod:function(t,r,e,n){return xt.createNode(t,r,e,n)},rename:function(t,r,e){if(Bt.isDir(t.mode)){var n;try{n=Bt.lookupNode(r,e)}catch(t){}if(n)for(var o in n.contents)throw new Bt.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=Bt.lookupNode(t,r);for(var n in e.contents)throw new Bt.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=xt.createNode(t,r,41471,0);return n.link=e,n},readlink:function(t){if(!Bt.isLink(t.mode))throw new Bt.ErrnoError(28);return t.link}},stream_ops:{read:function(t,r,e,n,o){var a=t.node.contents;if(o>=t.node.usedBytes)return 0;var i=Math.min(t.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),e);else for(var s=0;s<i;s++)r[e+s]=a[o+s];return i},write:function(t,r,e,n,o,a){if(!n)return 0;var i=t.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(e,e+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(e,e+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(e,e+n),o),n}if(xt.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(e,e+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[e+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek:function(t,r,e){var n=r;if(1===e?n+=t.position:2===e&&Bt.isFile(t.node.mode)&&(n+=t.node.usedBytes),n<0)throw new Bt.ErrnoError(28);return n},allocate:function(t,r,e){xt.expandFileStorage(t.node,r+e),t.node.usedBytes=Math.max(t.node.usedBytes,r+e)},mmap:function(t,r,e,n,o){if(!Bt.isFile(t.node.mode))throw new Bt.ErrnoError(43);var a,i,s=t.node.contents;if(2&o||s.buffer!==S.buffer){if((e>0||e+r<s.length)&&(s=s.subarray?s.subarray(e,e+r):Array.prototype.slice.call(s,e,e+r)),i=!0,!(a=At()))throw new Bt.ErrnoError(48);S.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:function(t,r,e,n,o){return xt.stream_ops.write(t,r,0,n,e,!1),0}}},Ot=function(t,r,e,n){var o=n?"":Z("al ".concat(t));v(t,(function(e){F(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&&K(o)},Mt=function(t,r,e,n,o,a){Bt.createDataFile(t,r,e,n,o,a)},Rt=e.preloadPlugins||[],$t=function(t,r,e,n){"undefined"!=typeof Browser&&Browser.init();var o=!1;return Rt.forEach((function(a){o||a.canHandle(r)&&(a.handle(t,r,e,n),o=!0)})),o},Lt=function(t,r,e,n,o,a,i,s,u,c){var f=r?bt.resolve(yt.join2(t,r)):t,l=Z("cp ".concat(f));function p(e){function p(e){c&&c(),s||Mt(t,r,e,n,o,u),a&&a(),Q(l)}$t(e,f,p,(function(){i&&i(),Q(l)}))||p(e)}K(l),"string"==typeof e?Ot(e,(function(t){return p(t)}),i):p(e)},Ut=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},zt=function(t,r){var e=0;return t&&(e|=365),r&&(e|=146),e},Bt={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=bt.resolve(t)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new Bt.ErrnoError(32);for(var e=t.split("/").filter((function(t){return!!t})),n=Bt.root,o="/",a=0;a<e.length;a++){var i=a===e.length-1;if(i&&r.parent)break;if(n=Bt.lookupNode(n,e[a]),o=yt.join2(o,e[a]),Bt.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;Bt.isLink(n.mode);){var u=Bt.readlink(o);if(o=bt.resolve(yt.dirname(o),u),n=Bt.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new Bt.ErrnoError(32)}}return{path:o,node:n}},getPath:function(t){for(var r;;){if(Bt.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)%Bt.nameTable.length},hashAddNode:function(t){var r=Bt.hashName(t.parent.id,t.name);t.name_next=Bt.nameTable[r],Bt.nameTable[r]=t},hashRemoveNode:function(t){var r=Bt.hashName(t.parent.id,t.name);if(Bt.nameTable[r]===t)Bt.nameTable[r]=t.name_next;else for(var e=Bt.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=Bt.mayLookup(t);if(e)throw new Bt.ErrnoError(e,t);for(var n=Bt.hashName(t.id,r),o=Bt.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===t.id&&a===r)return o}return Bt.lookup(t,r)},createNode:function(t,r,e,n){var o=new Bt.FSNode(t,r,e,n);return Bt.hashAddNode(o),o},destroyNode:function(t){Bt.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&~t)},flagsToPermissionString:function(t){var r=["r","w","rw"][3&t];return 512&t&&(r+="w"),r},nodePermissions:function(t,r){return Bt.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=Bt.nodePermissions(t,"x");return r||(t.node_ops.lookup?0:2)},mayCreate:function(t,r){try{return Bt.lookupNode(t,r),20}catch(t){}return Bt.nodePermissions(t,"wx")},mayDelete:function(t,r,e){var n;try{n=Bt.lookupNode(t,r)}catch(t){return t.errno}var o=Bt.nodePermissions(t,"wx");if(o)return o;if(e){if(!Bt.isDir(n.mode))return 54;if(Bt.isRoot(n)||Bt.getPath(n)===Bt.cwd())return 10}else if(Bt.isDir(n.mode))return 31;return 0},mayOpen:function(t,r){return t?Bt.isLink(t.mode)?32:Bt.isDir(t.mode)&&("r"!==Bt.flagsToPermissionString(r)||512&r)?31:Bt.nodePermissions(t,Bt.flagsToPermissionString(r)):44},MAX_OPEN_FDS:4096,nextfd:function(){for(var t=0;t<=Bt.MAX_OPEN_FDS;t++)if(!Bt.streams[t])return t;throw new Bt.ErrnoError(33)},getStreamChecked:function(t){var r=Bt.getStream(t);if(!r)throw new Bt.ErrnoError(8);return r},getStream:function(t){return Bt.streams[t]},createStream:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return Bt.FSStream||(Bt.FSStream=function(){this.shared={}},Bt.FSStream.prototype={},Object.defineProperties(Bt.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!!(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 Bt.FSStream,t),-1==r&&(r=Bt.nextfd()),t.fd=r,Bt.streams[r]=t,t},closeStream:function(t){Bt.streams[t]=null},chrdev_stream_ops:{open:function(t){var r=Bt.getDevice(t.node.rdev);t.stream_ops=r.stream_ops,t.stream_ops.open&&t.stream_ops.open(t)},llseek:function(){throw new Bt.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){Bt.devices[t]={stream_ops:r}},getDevice:function(t){return Bt.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),Bt.syncFSRequests++,Bt.syncFSRequests>1&&I("warning: ".concat(Bt.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var e=Bt.getMounts(Bt.root.mount),n=0;function o(t){return Bt.syncFSRequests--,r(t)}function a(t){if(t)return a.errored?void 0:(a.errored=!0,o(t));++n>=e.length&&o(null)}e.forEach((function(r){if(!r.type.syncfs)return a(null);r.type.syncfs(r,t,a)}))},mount:function(t,r,e){var n,o="/"===e,a=!e;if(o&&Bt.root)throw new Bt.ErrnoError(10);if(!o&&!a){var i=Bt.lookupPath(e,{follow_mount:!1});if(e=i.path,n=i.node,Bt.isMountpoint(n))throw new Bt.ErrnoError(10);if(!Bt.isDir(n.mode))throw new Bt.ErrnoError(54)}var s={type:t,opts:r,mountpoint:e,mounts:[]},u=t.mount(s);return u.mount=s,s.root=u,o?Bt.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(t){var r=Bt.lookupPath(t,{follow_mount:!1});if(!Bt.isMountpoint(r.node))throw new Bt.ErrnoError(28);var e=r.node,n=e.mounted,o=Bt.getMounts(n);Object.keys(Bt.nameTable).forEach((function(t){for(var r=Bt.nameTable[t];r;){var e=r.name_next;o.includes(r.mount)&&Bt.destroyNode(r),r=e}})),e.mounted=null;var a=e.mount.mounts.indexOf(n);e.mount.mounts.splice(a,1)},lookup:function(t,r){return t.node_ops.lookup(t,r)},mknod:function(t,r,e){var n=Bt.lookupPath(t,{parent:!0}).node,o=yt.basename(t);if(!o||"."===o||".."===o)throw new Bt.ErrnoError(28);var a=Bt.mayCreate(n,o);if(a)throw new Bt.ErrnoError(a);if(!n.node_ops.mknod)throw new Bt.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,Bt.mknod(t,r,0)},mkdir:function(t,r){return r=void 0!==r?r:511,r&=1023,r|=16384,Bt.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{Bt.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,Bt.mknod(t,r,e)},symlink:function(t,r){if(!bt.resolve(t))throw new Bt.ErrnoError(44);var e=Bt.lookupPath(r,{parent:!0}).node;if(!e)throw new Bt.ErrnoError(44);var n=yt.basename(r),o=Bt.mayCreate(e,n);if(o)throw new Bt.ErrnoError(o);if(!e.node_ops.symlink)throw new Bt.ErrnoError(63);return e.node_ops.symlink(e,n,t)},rename:function(t,r){var e,n,o=yt.dirname(t),a=yt.dirname(r),i=yt.basename(t),s=yt.basename(r);if(e=Bt.lookupPath(t,{parent:!0}).node,n=Bt.lookupPath(r,{parent:!0}).node,!e||!n)throw new Bt.ErrnoError(44);if(e.mount!==n.mount)throw new Bt.ErrnoError(75);var u,c=Bt.lookupNode(e,i),f=bt.relative(t,a);if("."!==f.charAt(0))throw new Bt.ErrnoError(28);if("."!==(f=bt.relative(r,o)).charAt(0))throw new Bt.ErrnoError(55);try{u=Bt.lookupNode(n,s)}catch(t){}if(c!==u){var l=Bt.isDir(c.mode),p=Bt.mayDelete(e,i,l);if(p)throw new Bt.ErrnoError(p);if(p=u?Bt.mayDelete(n,s,l):Bt.mayCreate(n,s))throw new Bt.ErrnoError(p);if(!e.node_ops.rename)throw new Bt.ErrnoError(63);if(Bt.isMountpoint(c)||u&&Bt.isMountpoint(u))throw new Bt.ErrnoError(10);if(n!==e&&(p=Bt.nodePermissions(e,"w")))throw new Bt.ErrnoError(p);Bt.hashRemoveNode(c);try{e.node_ops.rename(c,n,s)}catch(t){throw t}finally{Bt.hashAddNode(c)}}},rmdir:function(t){var r=Bt.lookupPath(t,{parent:!0}).node,e=yt.basename(t),n=Bt.lookupNode(r,e),o=Bt.mayDelete(r,e,!0);if(o)throw new Bt.ErrnoError(o);if(!r.node_ops.rmdir)throw new Bt.ErrnoError(63);if(Bt.isMountpoint(n))throw new Bt.ErrnoError(10);r.node_ops.rmdir(r,e),Bt.destroyNode(n)},readdir:function(t){var r=Bt.lookupPath(t,{follow:!0}).node;if(!r.node_ops.readdir)throw new Bt.ErrnoError(54);return r.node_ops.readdir(r)},unlink:function(t){var r=Bt.lookupPath(t,{parent:!0}).node;if(!r)throw new Bt.ErrnoError(44);var e=yt.basename(t),n=Bt.lookupNode(r,e),o=Bt.mayDelete(r,e,!1);if(o)throw new Bt.ErrnoError(o);if(!r.node_ops.unlink)throw new Bt.ErrnoError(63);if(Bt.isMountpoint(n))throw new Bt.ErrnoError(10);r.node_ops.unlink(r,e),Bt.destroyNode(n)},readlink:function(t){var r=Bt.lookupPath(t).node;if(!r)throw new Bt.ErrnoError(44);if(!r.node_ops.readlink)throw new Bt.ErrnoError(28);return bt.resolve(Bt.getPath(r.parent),r.node_ops.readlink(r))},stat:function(t,r){var e=Bt.lookupPath(t,{follow:!r}).node;if(!e)throw new Bt.ErrnoError(44);if(!e.node_ops.getattr)throw new Bt.ErrnoError(63);return e.node_ops.getattr(e)},lstat:function(t){return Bt.stat(t,!0)},chmod:function(t,r,e){var n;if(!(n="string"==typeof t?Bt.lookupPath(t,{follow:!e}).node:t).node_ops.setattr)throw new Bt.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod:function(t,r){Bt.chmod(t,r,!0)},fchmod:function(t,r){var e=Bt.getStreamChecked(t);Bt.chmod(e.node,r)},chown:function(t,r,e,n){var o;if(!(o="string"==typeof t?Bt.lookupPath(t,{follow:!n}).node:t).node_ops.setattr)throw new Bt.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(t,r,e){Bt.chown(t,r,e,!0)},fchown:function(t,r,e){var n=Bt.getStreamChecked(t);Bt.chown(n.node,r,e)},truncate:function(t,r){if(r<0)throw new Bt.ErrnoError(28);var e;if(!(e="string"==typeof t?Bt.lookupPath(t,{follow:!0}).node:t).node_ops.setattr)throw new Bt.ErrnoError(63);if(Bt.isDir(e.mode))throw new Bt.ErrnoError(31);if(!Bt.isFile(e.mode))throw new Bt.ErrnoError(28);var n=Bt.nodePermissions(e,"w");if(n)throw new Bt.ErrnoError(n);e.node_ops.setattr(e,{size:r,timestamp:Date.now()})},ftruncate:function(t,r){var e=Bt.getStreamChecked(t);if(!(2097155&e.flags))throw new Bt.ErrnoError(28);Bt.truncate(e.node,r)},utime:function(t,r,e){var n=Bt.lookupPath(t,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,e)})},open:function(t,r,n){if(""===t)throw new Bt.ErrnoError(44);var o;if(n=void 0===n?438:n,n=64&(r="string"==typeof r?Ut(r):r)?4095&n|32768:0,"object"==d(t))o=t;else{t=yt.normalize(t);try{o=Bt.lookupPath(t,{follow:!(131072&r)}).node}catch(t){}}var a=!1;if(64&r)if(o){if(128&r)throw new Bt.ErrnoError(20)}else o=Bt.mknod(t,n,0),a=!0;if(!o)throw new Bt.ErrnoError(44);if(Bt.isChrdev(o.mode)&&(r&=-513),65536&r&&!Bt.isDir(o.mode))throw new Bt.ErrnoError(54);if(!a){var i=Bt.mayOpen(o,r);if(i)throw new Bt.ErrnoError(i)}512&r&&!a&&Bt.truncate(o,0),r&=-131713;var s=Bt.createStream({node:o,path:Bt.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||(Bt.readFiles||(Bt.readFiles={}),t in Bt.readFiles||(Bt.readFiles[t]=1)),s},close:function(t){if(Bt.isClosed(t))throw new Bt.ErrnoError(8);t.getdents&&(t.getdents=null);try{t.stream_ops.close&&t.stream_ops.close(t)}catch(t){throw t}finally{Bt.closeStream(t.fd)}t.fd=null},isClosed:function(t){return null===t.fd},llseek:function(t,r,e){if(Bt.isClosed(t))throw new Bt.ErrnoError(8);if(!t.seekable||!t.stream_ops.llseek)throw new Bt.ErrnoError(70);if(0!=e&&1!=e&&2!=e)throw new Bt.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 Bt.ErrnoError(28);if(Bt.isClosed(t))throw new Bt.ErrnoError(8);if(1==(2097155&t.flags))throw new Bt.ErrnoError(8);if(Bt.isDir(t.node.mode))throw new Bt.ErrnoError(31);if(!t.stream_ops.read)throw new Bt.ErrnoError(28);var a=void 0!==o;if(a){if(!t.seekable)throw new Bt.ErrnoError(70)}else o=t.position;var i=t.stream_ops.read(t,r,e,n,o);return a||(t.position+=i),i},write:function(t,r,e,n,o,a){if(n<0||o<0)throw new Bt.ErrnoError(28);if(Bt.isClosed(t))throw new Bt.ErrnoError(8);if(!(2097155&t.flags))throw new Bt.ErrnoError(8);if(Bt.isDir(t.node.mode))throw new Bt.ErrnoError(31);if(!t.stream_ops.write)throw new Bt.ErrnoError(28);t.seekable&&1024&t.flags&&Bt.llseek(t,0,2);var i=void 0!==o;if(i){if(!t.seekable)throw new Bt.ErrnoError(70)}else o=t.position;var s=t.stream_ops.write(t,r,e,n,o,a);return i||(t.position+=s),s},allocate:function(t,r,e){if(Bt.isClosed(t))throw new Bt.ErrnoError(8);if(r<0||e<=0)throw new Bt.ErrnoError(28);if(!(2097155&t.flags))throw new Bt.ErrnoError(8);if(!Bt.isFile(t.node.mode)&&!Bt.isDir(t.node.mode))throw new Bt.ErrnoError(43);if(!t.stream_ops.allocate)throw new Bt.ErrnoError(138);t.stream_ops.allocate(t,r,e)},mmap:function(t,r,e,n,o){if(2&n&&!(2&o)&&2!=(2097155&t.flags))throw new Bt.ErrnoError(2);if(1==(2097155&t.flags))throw new Bt.ErrnoError(2);if(!t.stream_ops.mmap)throw new Bt.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 Bt.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=Bt.open(t,e.flags),o=Bt.stat(t).size,a=new Uint8Array(o);return Bt.read(n,a,0,o,0),"utf8"===e.encoding?r=It(a,0):"binary"===e.encoding&&(r=a),Bt.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=Bt.open(t,e.flags,e.mode);if("string"==typeof r){var o=new Uint8Array(Tt(r)+1),a=Ft(r,o,0,o.length);Bt.write(n,o,0,a,void 0,e.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");Bt.write(n,r,0,r.byteLength,void 0,e.canOwn)}Bt.close(n)},cwd:function(){return Bt.currentPath},chdir:function(t){var r=Bt.lookupPath(t,{follow:!0});if(null===r.node)throw new Bt.ErrnoError(44);if(!Bt.isDir(r.node.mode))throw new Bt.ErrnoError(54);var e=Bt.nodePermissions(r.node,"x");if(e)throw new Bt.ErrnoError(e);Bt.currentPath=r.path},createDefaultDirectories:function(){Bt.mkdir("/tmp"),Bt.mkdir("/home"),Bt.mkdir("/home/web_user")},createDefaultDevices:function(){Bt.mkdir("/dev"),Bt.registerDevice(Bt.makedev(1,3),{read:function(){return 0},write:function(t,r,e,n,o){return n}}),Bt.mkdev("/dev/null",Bt.makedev(1,3)),Dt.register(Bt.makedev(5,0),Dt.default_tty_ops),Dt.register(Bt.makedev(6,0),Dt.default_tty1_ops),Bt.mkdev("/dev/tty",Bt.makedev(5,0)),Bt.mkdev("/dev/tty1",Bt.makedev(6,0));var t=new Uint8Array(1024),r=0,e=function(){return 0===r&&(r=wt(t).byteLength),t[--r]};Bt.createDevice("/dev","random",e),Bt.createDevice("/dev","urandom",e),Bt.mkdir("/dev/shm"),Bt.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){Bt.mkdir("/proc");var t=Bt.mkdir("/proc/self");Bt.mkdir("/proc/self/fd"),Bt.mount({mount:function(){var r=Bt.createNode(t,"fd",16895,73);return r.node_ops={lookup:function(t,r){var e=+r,n=Bt.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?Bt.createDevice("/dev","stdin",e.stdin):Bt.symlink("/dev/tty","/dev/stdin"),e.stdout?Bt.createDevice("/dev","stdout",null,e.stdout):Bt.symlink("/dev/tty","/dev/stdout"),e.stderr?Bt.createDevice("/dev","stderr",null,e.stderr):Bt.symlink("/dev/tty1","/dev/stderr"),Bt.open("/dev/stdin",0),Bt.open("/dev/stdout",1),Bt.open("/dev/stderr",1)},ensureErrnoError:function(){Bt.ErrnoError||(Bt.ErrnoError=function(t,r){this.name="ErrnoError",this.node=r,this.setErrno=function(t){this.errno=t},this.setErrno(t),this.message="FS error"},Bt.ErrnoError.prototype=new Error,Bt.ErrnoError.prototype.constructor=Bt.ErrnoError,[44].forEach((function(t){Bt.genericErrors[t]=new Bt.ErrnoError(t),Bt.genericErrors[t].stack="<generic error, no stack>"})))},staticInit:function(){Bt.ensureErrnoError(),Bt.nameTable=new Array(4096),Bt.mount(xt,{},"/"),Bt.createDefaultDirectories(),Bt.createDefaultDevices(),Bt.createSpecialDirectories(),Bt.filesystems={MEMFS:xt}},init:function(t,r,n){Bt.init.initialized=!0,Bt.ensureErrnoError(),e.stdin=t||e.stdin,e.stdout=r||e.stdout,e.stderr=n||e.stderr,Bt.createStandardStreams()},quit:function(){Bt.init.initialized=!1;for(var t=0;t<Bt.streams.length;t++){var r=Bt.streams[t];r&&Bt.close(r)}},findObject:function(t,r){var e=Bt.analyzePath(t,r);return e.exists?e.object:null},analyzePath:function(t,r){try{t=(n=Bt.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=Bt.lookupPath(t,{parent:!0});e.parentExists=!0,e.parentPath=n.path,e.parentObject=n.node,e.name=yt.basename(t),n=Bt.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:Bt.getPath(t);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=yt.join2(t,a);try{Bt.mkdir(i)}catch(t){}t=i}}return i},createFile:function(t,r,e,n,o){var a=yt.join2("string"==typeof t?t:Bt.getPath(t),r),i=zt(n,o);return Bt.create(a,i)},createDataFile:function(t,r,e,n,o,a){var i=r;t&&(t="string"==typeof t?t:Bt.getPath(t),i=r?yt.join2(t,r):t);var s=zt(n,o),u=Bt.create(i,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}Bt.chmod(u,146|s);var p=Bt.open(u,577);Bt.write(p,e,0,e.length,0,a),Bt.close(p),Bt.chmod(u,s)}},createDevice:function(t,r,e,n){var o=yt.join2("string"==typeof t?t:Bt.getPath(t),r),a=zt(!!e,!!n);Bt.createDevice.major||(Bt.createDevice.major=64);var i=Bt.makedev(Bt.createDevice.major++,0);return Bt.registerDevice(i,{open:function(t){t.seekable=!1},close:function(t){n&&n.buffer&&n.buffer.length&&n(10)},read:function(t,r,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=e()}catch(t){throw new Bt.ErrnoError(29)}if(void 0===u&&0===i)throw new Bt.ErrnoError(6);if(null==u)break;i++,r[n+s]=u}return i&&(t.node.timestamp=Date.now()),i},write:function(t,r,e,o,a){for(var i=0;i<o;i++)try{n(r[e+i])}catch(t){throw new Bt.ErrnoError(29)}return o&&(t.node.timestamp=Date.now()),i}}),Bt.mkdev(o,a,i)},forceLoadFile:function(t){if(t.isDevice||t.isFolder||t.link||t.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!h)throw new Error("Cannot load without read() or XMLHttpRequest.");try{t.contents=St(h(t.url),!0),t.usedBytes=t.contents.length}catch(t){throw new Bt.ErrnoError(29)}},createLazyFile:function(t,r,e,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.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]}},a.prototype.setDataGetter=function(t){this.getter=t},a.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,a=(r=t.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=this;s.setDataGetter((function(t){var r=t*i,o=(t+1)*i-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!==i&&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||[]):St(o.responseText||"",!0)}(r,o)),void 0===s.chunks[t])throw new Error("doXHR failed!");return s.chunks[t]})),!a&&n||(i=n=1,n=this.getter(0).length,i=n,E("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!c)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:e};var u=Bt.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 f={};function l(t,r,e,n,o){var a=t.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[e+s]=a[o+s];else for(s=0;s<i;s++)r[e+s]=a.get(o+s);return i}return Object.keys(u.stream_ops).forEach((function(t){var r=u.stream_ops[t];f[t]=function(){return Bt.forceLoadFile(u),r.apply(null,arguments)}})),f.read=function(t,r,e,n,o){return Bt.forceLoadFile(u),l(t,r,e,n,o)},f.mmap=function(t,r,e,n,o){Bt.forceLoadFile(u);var a=At();if(!a)throw new Bt.ErrnoError(48);return l(t,S,a,r,e),{ptr:a,allocated:!0}},u.stream_ops=f,u}},Nt=function(t,r){return t?It(j,t,r):""},Wt={DEFAULT_POLLMASK:5,calculateAt:function(t,r,e){if(yt.isAbs(r))return r;var n;if(n=-100===t?Bt.cwd():Wt.getStreamFromFD(t).path,0==r.length){if(!e)throw new Bt.ErrnoError(44);return n}return yt.join2(n,r)},doStat:function(t,r,e){try{var n=t(r)}catch(t){if(t&&t.node&&yt.normalize(r)!==yt.normalize(Bt.getPath(t.node)))return-54;throw t}x[e>>2]=n.dev,x[e+4>>2]=n.mode,O[e+8>>2]=n.nlink,x[e+12>>2]=n.uid,x[e+16>>2]=n.gid,x[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)],x[e+24>>2]=lt[0],x[e+28>>2]=lt[1],x[e+32>>2]=4096,x[e+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=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)],x[e+40>>2]=lt[0],x[e+44>>2]=lt[1],O[e+48>>2]=o%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)],x[e+56>>2]=lt[0],x[e+60>>2]=lt[1],O[e+64>>2]=a%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)],x[e+72>>2]=lt[0],x[e+76>>2]=lt[1],O[e+80>>2]=i%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)],x[e+88>>2]=lt[0],x[e+92>>2]=lt[1],0},doMsync:function(t,r,e,n,o){if(!Bt.isFile(r.node.mode))throw new Bt.ErrnoError(43);if(2&n)return 0;var a=j.slice(t,t+e);Bt.msync(r,a,o,e,n)},varargs:void 0,get:function(){var t=x[+Wt.varargs>>2];return Wt.varargs+=4,t},getp:function(){return Wt.get()},getStr:function(t){return Nt(t)},getStreamFromFD:function(t){return Bt.getStreamChecked(t)}},Xt={},qt=function(t){for(;t.length;){var r=t.pop();t.pop()(r)}},Yt={},Zt={},Kt={},tr=function(t){throw new Qt(t)},rr=function(t,r,e){function n(r){var n=e(r);n.length!==t.length&&tr("Mismatched type converter count");for(var o=0;o<t.length;++o)fr(t[o],n[o])}t.forEach((function(t){Kt[t]=r}));var o=new Array(r.length),a=[],i=0;r.forEach((function(t,r){Zt.hasOwnProperty(t)?o[r]=Zt[t]:(a.push(t),Yt.hasOwnProperty(t)||(Yt[t]=[]),Yt[t].push((function(){o[r]=Zt[t],++i===a.length&&n(o)})))})),0===a.length&&n(o)},er=function(t){var r=Xt[t];delete Xt[t];var e=r.rawConstructor,n=r.rawDestructor,o=r.fields,a=o.map((function(t){return t.getterReturnType})).concat(o.map((function(t){return t.setterArgumentType})));rr([t],a,(function(t){var a={};return o.forEach((function(r,e){var n=r.fieldName,i=t[e],s=r.getter,u=r.getterContext,c=t[e+o.length],f=r.setter,l=r.setterContext;a[n]={read:function(t){return i.fromWireType(s(u,t))},write:function(t,r){var e=[];f(l,t,c.toWireType(e,r)),qt(e)}}})),[{name:r.name,fromWireType:function(t){var r={};for(var e in a)r[e]=a[e].read(t);return n(t),r},toWireType:function(t,r){for(var o in a)if(!(o in r))throw new TypeError('Missing field: "'.concat(o,'"'));var i=e();for(o in a)a[o].write(i,r[o]);return null!==t&&t.push(n,i),i},argPackAdvance:lr,readValueFromPointer:Gt,destructorFunction:n}]}))},nr=function(t,r,e,n,o){},or=function(){for(var t=new Array(256),r=0;r<256;++r)t[r]=String.fromCharCode(r);ar=t},ir=function(t){for(var r="",e=t;j[e];)r+=ar[j[e++]];return r},ur=function(t){throw new sr(t)},lr=8,pr=function(t,r,e,n){r=ir(r),fr(t,{name:r,fromWireType:function(t){return!!t},toWireType:function(t,r){return r?e:n},argPackAdvance:lr,readValueFromPointer:function(t){return this.fromWireType(j[t])},destructorFunction:null})},dr=function(t){return{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}},hr=function(t){ur(t.$$.ptrType.registeredClass.name+" instance already deleted")},vr=!1,mr=function(t){},yr=function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},gr=function(t){t.count.value-=1,0===t.count.value&&yr(t)},wr=function(t,r,e){if(r===e)return t;if(void 0===e.baseClass)return null;var n=wr(t,r,e.baseClass);return null===n?null:e.downcast(n)},br={},_r=function(){return Object.keys(Fr).length},Er=function(){var t=[];for(var r in Fr)Fr.hasOwnProperty(r)&&t.push(Fr[r]);return t},Ir=[],kr=function(){for(;Ir.length;){var t=Ir.pop();t.$$.deleteScheduled=!1,t.delete()}},Cr=function(t){Pr=t,Ir.length&&Pr&&Pr(kr)},Tr=function(){e.getInheritedInstanceCount=_r,e.getLiveInheritedInstances=Er,e.flushPendingDeletes=kr,e.setDelayFunction=Cr},Fr={},Sr=function(t,r){for(void 0===r&&ur("ptr should not be undefined");t.baseClass;)r=t.upcast(r),t=t.baseClass;return r},jr=function(t,r){return r=Sr(t,r),Fr[r]},Dr=function(t,r){return r.ptrType&&r.ptr||tr("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&tr("Both smartPtrType and smartPtr must be specified"),r.count={value:1},xr(Object.create(t,{$$:{value:r}}))},xr=function(t){return"undefined"==typeof FinalizationRegistry?(xr=function(t){return t},t):(vr=new FinalizationRegistry((function(t){gr(t.$$)})),xr=function(t){var r=t.$$;if(r.smartPtr){var e={$$:r};vr.register(t,e,t)}return t},mr=function(t){return vr.unregister(t)},xr(t))},Or=function(){Object.assign(Mr.prototype,{isAliasOf:function(t){if(!(this instanceof Mr))return!1;if(!(t instanceof Mr))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||hr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=xr(Object.create(Object.getPrototypeOf(this),{$$:{value:dr(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete:function(){this.$$.ptr||hr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ur("Object already scheduled for deletion"),mr(this),gr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted:function(){return!this.$$.ptr},deleteLater:function(){return this.$$.ptr||hr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ur("Object already scheduled for deletion"),Ir.push(this),1===Ir.length&&Pr&&Pr(kr),this.$$.deleteScheduled=!0,this}})},Rr=function(t,r){return Object.defineProperty(r,"name",{value:t})},$r=function(t,r,e){if(void 0===t[r].overloadTable){var n=t[r];t[r]=function(){return t[r].overloadTable.hasOwnProperty(arguments.length)||ur("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}},Lr=function(t,r,n){e.hasOwnProperty(t)?((void 0===n||void 0!==e[t].overloadTable&&void 0!==e[t].overloadTable[n])&&ur("Cannot register public name '".concat(t,"' twice")),$r(e,t,t),e.hasOwnProperty(n)&&ur("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))},Ur=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},Br=function(t,r,e){for(;r!==e;)r.upcast||ur("Expected null or instance of ".concat(e.name,", got an instance of ").concat(r.name)),t=r.upcast(t),r=r.baseClass;return t},Jr=function(){Object.assign(Xr.prototype,{getPointee:function(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor:function(t){this.rawDestructor&&this.rawDestructor(t)},argPackAdvance:lr,readValueFromPointer:Vr,deleteObject:function(t){null!==t&&t.delete()},fromWireType:Ar})},qr=function(t,r,n){e.hasOwnProperty(t)||tr("Replacing nonexistant public symbol"),void 0!==e[t].overloadTable&&void 0!==n?e[t].overloadTable[n]=r:(e[t]=r,e[t].argCount=n)},Gr=function(t,r,n){var o=e["dynCall_"+t];return n&&n.length?o.apply(null,[r].concat(n)):o.call(null,r)},Yr=[],Kr=function(t){var r=Yr[t];return r||(t>=Yr.length&&(Yr.length=t+1),Yr[t]=r=Zr.get(t)),r},Qr=function(t,r,e){return t.includes("j")?Gr(t,r,e):Kr(r).apply(null,e)},te=function(t,r){var e=[];return function(){return e.length=0,Object.assign(e,arguments),Qr(t,r,e)}},re=function(t,r){var e=(t=ir(t)).includes("j")?te(t,r):Kr(r);return"function"!=typeof e&&ur("unknown function pointer with signature ".concat(t,": ").concat(r)),e},ee=function(t,r){var e=Rr(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},oe=function(t){var r=Hn(t),e=ir(r);return Nn(r),e},ae=function(t,r){var e=[],n={};throw r.forEach((function t(r){n[r]||Zt[r]||(Kt[r]?Kt[r].forEach(t):(e.push(r),n[r]=!0))})),new ne("".concat(t,": ")+e.map(oe).join([", "]))},ie=function(t,r,e,n,o,a,i,s,u,c,f,l,p){f=ir(f),a=re(o,a),s&&(s=re(i,s)),c&&(c=re(u,c)),p=re(l,p);var d=Ur(f);Lr(d,(function(){ae("Cannot construct ".concat(f," due to unbound types"),[n])})),rr([t,r,e],n?[n]:[],(function(r){var e,o;r=r[0],o=n?(e=r.registeredClass).instancePrototype:Mr.prototype;var i=Rr(f,(function(){if(Object.getPrototypeOf(this)!==u)throw new sr("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new sr(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new sr("Tried to invoke ctor of ".concat(f," with invalid number of parameters (").concat(arguments.length,") - expected (").concat(Object.keys(l.constructor_body).toString(),") parameters instead!"));return t.apply(this,arguments)})),u=Object.create(o,{constructor:{value:i}});i.prototype=u;var l=new zr(f,i,u,p,e,a,s,c);l.baseClass&&(void 0===l.baseClass.__derivedClasses&&(l.baseClass.__derivedClasses=[]),l.baseClass.__derivedClasses.push(l));var h=new Xr(f,l,!0,!1,!1),v=new Xr(f+"*",l,!1,!1,!1),m=new Xr(f+" const*",l,!1,!0,!1);return br[t]={pointerType:v,constPointerType:m},qr(d,i),[h,v,m]}))},se=function(t,r){for(var e=[],n=0;n<t;n++)e.push(O[r+4*n>>2]);return e},fe=function(t,r,e,n,o,a){var i=se(r,e);o=re(n,o),rr([],[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 sr("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(){ae("Cannot construct ".concat(t.name," due to unbound types"),i)},rr([],i,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[r-1]=ce(e,n,null,o,a),[]})),[]}))},le=function(t){var r=(t=t.trim()).indexOf("(");return-1!==r?t.substr(0,r):t},pe=function(t,r,e,n,o,a,i,s,u){var c=se(e,n);r=ir(r),r=le(r),a=re(o,a),rr([],[t],(function(t){t=t[0];var n="".concat(t.name,".").concat(r);function o(){ae("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):($r(f,r,n),f[r].overloadTable[e-2]=o),rr([],c,(function(o){var s=ce(n,o,t,a,i,u);return void 0===f[r].overloadTable?(s.argCount=e-2,f[r]=s):f[r].overloadTable[e-2]=s,[]})),[]}))},ve=new he,me=function(t){t>=ve.reserved&&0==--ve.get(t).refcount&&ve.free(t)},ye=function(){for(var t=0,r=ve.reserved;r<ve.allocated.length;++r)void 0!==ve.allocated[r]&&++t;return t},ge=function(){ve.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),ve.reserved=ve.allocated.length,e.count_emval_handles=ye},we={toValue:function(t){return t||ur("Cannot use deleted val. handle = "+t),ve.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 ve.allocate({refcount:1,value:t})}}},be=function(t,r){r=ir(r),fr(t,{name:r,fromWireType:function(t){var r=we.toValue(t);return me(t),r},toWireType:function(t,r){return we.toHandle(r)},argPackAdvance:lr,readValueFromPointer:Gt,destructorFunction:null})},_e=function(t){if(null===t)return"null";var r=d(t);return"object"===r||"array"===r||"function"===r?t.toString():""+t},Ee=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))}},Ie=function(t,r,e){r=ir(r),fr(t,{name:r,fromWireType:function(t){return t},toWireType:function(t,r){return r},argPackAdvance:lr,readValueFromPointer:Ee(r,e),destructorFunction:null})},ke=function(t,r,e){switch(r){case 1:return e?function(t){return S[0|t]}:function(t){return j[0|t]};case 2:return e?function(t){return D[t>>1]}:function(t){return A[t>>1]};case 4:return e?function(t){return x[t>>2]}:function(t){return O[t>>2]};default:throw new TypeError("invalid integer width (".concat(r,"): ").concat(t))}},Pe=function(t,r,e,n,o){r=ir(r);var a=function(t){return t};if(0===n){var i=32-8*e;a=function(t){return t<<i>>>i}}var s=r.includes("unsigned");fr(t,{name:r,fromWireType:a,toWireType:s?function(t,r){return this.name,r>>>0}:function(t,r){return this.name,r},argPackAdvance:lr,readValueFromPointer:ke(r,e,0!==n),destructorFunction:null})},Ce=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(S.buffer,e,r)}e=ir(e),fr(t,{name:e,fromWireType:o,argPackAdvance:lr,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Te=function(t,r,e){return Ft(t,j,r,e)},Fe=function(t,r){var e="std::string"===(r=ir(r));fr(t,{name:r,fromWireType:function(t){var r,n=O[t>>2],o=t+4;if(e)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==j[s]){var u=Nt(a,s-a);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),a=s+1}}else{var c=new Array(n);for(i=0;i<n;++i)c[i]=String.fromCharCode(j[o+i]);r=c.join("")}return Nn(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||ur("Cannot pass non-string to std::string"),n=e&&o?Tt(r):r.length;var a=Bn(4+n+1),i=a+4;if(O[a>>2]=n,e&&o)Te(r,i,n+1);else if(o)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(Nn(i),ur("String has UTF-16 code units that do not fit in 8 bits")),j[i+s]=u}else for(s=0;s<n;++s)j[i+s]=r[s];return null!==t&&t.push(Nn,a),a},argPackAdvance:lr,readValueFromPointer:Vr,destructorFunction:function(t){Nn(t)}})},Se="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,je=function(t,r){for(var e=t,n=e>>1,o=n+r/2;!(n>=o)&&A[n];)++n;if((e=n<<1)-t>32&&Se)return Se.decode(j.subarray(t,e));for(var a="",i=0;!(i>=r/2);++i){var s=D[t+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},De=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,a=0;a<o;++a){var i=t.charCodeAt(a);D[r>>1]=i,r+=2}return D[r>>1]=0,r-n},Ae=function(t){return 2*t.length},xe=function(t,r){for(var e=0,n="";!(e>=r/4);){var o=x[t+4*e>>2];if(0==o)break;if(++e,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},Oe=function(t,r,e){if(void 0===e&&(e=2147483647),e<4)return 0;for(var n=r,o=n+e-4,a=0;a<t.length;++a){var i=t.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&t.charCodeAt(++a)),x[r>>2]=i,(r+=4)+4>o)break}return x[r>>2]=0,r-n},Me=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},Re=function(t,r,e){var n,o,a,i,s;e=ir(e),2===r?(n=je,o=De,i=Ae,a=function(){return A},s=1):4===r&&(n=xe,o=Oe,i=Me,a=function(){return O},s=2),fr(t,{name:e,fromWireType:function(t){for(var e,o=O[t>>2],i=a(),u=t+4,c=0;c<=o;++c){var f=t+4+c*r;if(c==o||0==i[f>>s]){var l=n(u,f-u);void 0===e?e=l:(e+=String.fromCharCode(0),e+=l),u=f+r}}return Nn(t),e},toWireType:function(t,n){"string"!=typeof n&&ur("Cannot pass non-string to C++ string type ".concat(e));var a=i(n),u=Bn(4+a+r);return O[u>>2]=a>>s,o(n,u+4,a+r),null!==t&&t.push(Nn,u),u},argPackAdvance:lr,readValueFromPointer:Gt,destructorFunction:function(t){Nn(t)}})},$e=function(t,r,e,n,o,a){Xt[t]={name:ir(r),rawConstructor:re(e,n),rawDestructor:re(o,a),fields:[]}},Le=function(t,r,e,n,o,a,i,s,u,c){Xt[t].fields.push({fieldName:ir(r),getterReturnType:e,getter:re(n,o),getterContext:a,setterArgumentType:i,setter:re(s,u),setterContext:c})},Ue=function(t,r){r=ir(r),fr(t,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:function(){},toWireType:function(t,r){}})},ze=function(t){do{var r=O[t>>2],e=O[(t+=4)>>2],n=O[(t+=4)>>2];t+=4;var o=Nt(r);Bt.createPath("/",yt.dirname(o),!0,!0),Bt.createDataFile(o,null,S.subarray(n,n+e),!0,!0,!0)}while(O[t>>2])},Be=function(){return 1},Ne=function(t,r){var e=Zt[t];return void 0===e&&ur(r+" has unknown type "+oe(t)),e},We=function(t,r,e){var n=[],o=t.toWireType(n,e);return n.length&&(O[r>>2]=we.toHandle(n)),o},He=function(t,r,e){return t=we.toValue(t),r=Ne(r,"emval::as"),We(r,e,t)},Ve={},Je=function(t){var r=Ve[t];return void 0===r?ir(t):r},Xe=[],qe=function(t,r,e,n,o){return(t=Xe[t])(r=we.toValue(r),r[e=Je(e)],n,o)},Ge=function(){return"object"==("undefined"==typeof globalThis?"undefined":d(globalThis))?globalThis:Function("return this")()},Ye=function(t){return 0===t?we.toHandle(Ge()):(t=Je(t),we.toHandle(Ge()[t]))},Ze=function(t){var r=Xe.length;return Xe.push(t),r},Ke=function(t,r){for(var e=new Array(t),n=0;n<t;++n)e[n]=Ne(O[r+4*n>>2],"parameter "+n);return e},Qe=function(t,r,e){var n=Ke(t,r),o=n.shift();t--;var a="return function (obj, func, destructorsRef, args) {\n",i=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]),a+=" var arg".concat(f," = argType").concat(f,".readValueFromPointer(args").concat(i?"+"+i:"",");\n"),i+=n[f].argPackAdvance;for(a+=" var rv = ".concat(1===e?"new func":"func.call","(").concat(s.join(", "),");\n"),f=0;f<t;++f)n[f].deleteObject&&(a+=" argType".concat(f,".deleteObject(arg").concat(f,");\n"));o.isVoid||(u.push("emval_returnValue"),c.push(We),a+=" return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",u.push(a);var l=ue(Function,u).apply(null,c),p="methodCaller<(".concat(n.map((function(t){return t.name})).join(", "),") => ").concat(o.name,">");return Ze(Rr(p,l))},tn=function(t,r){return t=we.toValue(t),r=we.toValue(r),we.toHandle(t[r])},rn=function(t){t>4&&(ve.get(t).refcount+=1)},en=function(){return we.toHandle([])},nn=function(t){return we.toHandle(Je(t))},on=function(){return we.toHandle({})},an=function(t){var r=we.toValue(t);qt(r),me(t)},sn=function(t,r,e){t=we.toValue(t),r=we.toValue(r),e=we.toValue(e),t[r]=e},un=function(t,r){var e=(t=Ne(t,"_emval_take_value")).readValueFromPointer(r);return we.toHandle(e)},cn=function(){tt("")},fn=function(){return Date.now()},ln=function(){return performance.now()},pn=function(t,r,e){return j.copyWithin(t,r,r+e)},dn=function(t){tt("OOM")},hn=function(t){j.length,dn()},vn={},mn=function(){return i||"./this.program"},yn=function(){if(!yn.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==("undefined"==typeof navigator?"undefined":d(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:mn()};for(var r in vn)void 0===vn[r]?delete t[r]:t[r]=vn[r];var e=[];for(var r in t)e.push("".concat(r,"=").concat(t[r]));yn.strings=e}return yn.strings},gn=function(t,r){for(var e=0;e<t.length;++e)S[0|r++]=t.charCodeAt(e);S[0|r]=0},wn=function(t,r){var e=0;return yn().forEach((function(n,o){var a=r+e;O[t+4*o>>2]=a,gn(n,a),e+=n.length+1})),0},bn=function(t,r){var e=yn();O[t>>2]=e.length;var n=0;return e.forEach((function(t){return n+=t.length+1})),O[r>>2]=n,0},En=function(t,r,e,n){for(var o=0,a=0;a<e;a++){var i=O[r>>2],s=O[r+4>>2];r+=8;var u=Bt.read(t,S,i,s,n);if(u<0)return-1;if(o+=u,u<s)break;void 0!==n&&(n+=u)}return o},kn=function(t,r){return r+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*r:NaN},Cn=function(t,r,e,n){for(var o=0,a=0;a<e;a++){var i=O[r>>2],s=O[r+4>>2];r+=8;var u=Bt.write(t,S,i,s,n);if(u<0)return-1;o+=u,void 0!==n&&(n+=u)}return o},Fn=function(t){return t%4==0&&(t%100!=0||t%400==0)},Sn=function(t,r){for(var e=0,n=0;n<=r;e+=t[n++]);return e},jn=[31,29,31,30,31,30,31,31,30,31,30,31],Dn=[31,28,31,30,31,30,31,31,30,31,30,31],An=function(t,r){for(var e=new Date(t.getTime());r>0;){var n=Fn(e.getFullYear()),o=e.getMonth(),a=(n?jn:Dn)[o];if(!(r>a-e.getDate()))return e.setDate(e.getDate()+r),e;r-=a-e.getDate()+1,e.setDate(1),o<11?e.setMonth(o+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return e},xn=function(t,r){S.set(t,r)},On=function(t,r,e,n){var o=O[n+40>>2],a={tm_sec:x[n>>2],tm_min:x[n+4>>2],tm_hour:x[n+8>>2],tm_mday:x[n+12>>2],tm_mon:x[n+16>>2],tm_year:x[n+20>>2],tm_wday:x[n+24>>2],tm_yday:x[n+28>>2],tm_isdst:x[n+32>>2],tm_gmtoff:x[n+36>>2],tm_zone:o?Nt(o):""},i=Nt(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)i=i.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],f=["January","February","March","April","May","June","July","August","September","October","November","December"];function l(t,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=An(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),a=h(n);return d(o,r)<=0?d(a,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+Sn(Fn(t.tm_year+1900)?jn:Dn,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&&Fn(t.tm_year)||(r=1)}}else{r=52;var n=(t.tm_wday+7-t.tm_yday-1)%7;(4==n||5==n&&Fn(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 i=i.replace(/%%/g,"\0\0"),m)i.includes(u)&&(i=i.replace(new RegExp(u,"g"),m[u](a)));i=i.replace(/\0\0/g,"%");var y=St(i,!1);return y.length>r?0:(xn(y,t),y.length-1)},Mn=function(t,r,e,n,o){return On(t,r,e,n)},Rn=function(t,r,e,n){t||(t=this),this.parent=t,this.mount=t.mount,this.mounted=null,this.id=Bt.nextInode++,this.name=r,this.mode=e,this.node_ops={},this.stream_ops={},this.rdev=n},$n=365,Ln=146,Object.defineProperties(Rn.prototype,{read:{get:function(){return(this.mode&$n)===$n},set:function(t){t?this.mode|=$n:this.mode&=-366}},write:{get:function(){return(this.mode&Ln)===Ln},set:function(t){t?this.mode|=Ln:this.mode&=-147}},isFolder:{get:function(){return Bt.isDir(this.mode)}},isDevice:{get:function(){return Bt.isChrdev(this.mode)}}}),Bt.FSNode=Rn,Bt.createPreloadedFile=Lt,Bt.staticInit(),e.FS_createPath=Bt.createPath,e.FS_createDataFile=Bt.createDataFile,e.FS_createPreloadedFile=Bt.createPreloadedFile,e.FS_unlink=Bt.unlink,e.FS_createLazyFile=Bt.createLazyFile,e.FS_createDevice=Bt.createDevice,Qt=e.InternalError=function(t){function r(t){var e;return u(this,r),(e=kt(this,r,[t])).name="InternalError",e}return J(r,t),k(r)}(ut(Error)),or(),sr=e.BindingError=function(t){function r(t){var e;return u(this,r),(e=kt(this,r,[t])).name="BindingError",e}return J(r,t),k(r)}(ut(Error)),Or(),Tr(),Jr(),ne=e.UnboundTypeError=ee(Error,"UnboundTypeError"),de(),ge(),Un={O:dt,e:vt,t:Ht,F:Vt,s:Jt,R:er,A:nr,L:pr,x:ie,T:fe,j:pe,K:be,u:Ie,d:Pe,b:Ce,v:Fe,o:Re,S:$e,i:Le,M:Ue,N:ze,H:Be,h:He,l:qe,a:me,U:Ye,k:Qe,g:tn,n:rn,Q:en,c:nn,y:on,f:an,w:sn,P:un,p:cn,I:fn,G:ln,J:pn,C:hn,D:wn,E:bn,m:_n,r:In,z:Pn,q:Tn,B:Mn},zn=ct(),Bn=function(t){return(Bn=zn.X)(t)},Nn=function(t){return(Nn=zn.Z)(t)},Wn=function(){return(Wn=zn._)()},Hn=function(t){return(Hn=zn.$)(t)},Vn=function(t){return(Vn=zn.aa)(t)},e.dynCall_ji=function(t,r){return(e.dynCall_ji=zn.ba)(t,r)},e.dynCall_jiii=function(t,r,n,o){return(e.dynCall_jiii=zn.ca)(t,r,n,o)},e.dynCall_jii=function(t,r,n){return(e.dynCall_jii=zn.da)(t,r,n)},e.dynCall_viji=function(t,r,n,o,a){return(e.dynCall_viji=zn.ea)(t,r,n,o,a)},e.dynCall_jiji=function(t,r,n,o,a){return(e.dynCall_jiji=zn.fa)(t,r,n,o,a)},e.dynCall_viijii=function(t,r,n,o,a,i,s){return(e.dynCall_viijii=zn.ga)(t,r,n,o,a,i,s)},e.dynCall_iiiiij=function(t,r,n,o,a,i,s){return(e.dynCall_iiiiij=zn.ha)(t,r,n,o,a,i,s)},e.dynCall_iiiiijj=function(t,r,n,o,a,i,s,u,c){return(e.dynCall_iiiiijj=zn.ia)(t,r,n,o,a,i,s,u,c)},e.dynCall_iiiiiijj=function(t,r,n,o,a,i,s,u,c,f){return(e.dynCall_iiiiiijj=zn.ja)(t,r,n,o,a,i,s,u,c,f)},e.___emscripten_embedded_file_data=804200,e.addRunDependency=K,e.removeRunDependency=Q,e.FS_createPath=Bt.createPath,e.FS_createLazyFile=Bt.createLazyFile,e.FS_createDevice=Bt.createDevice,e.FS_createPreloadedFile=Bt.createPreloadedFile,e.FS_createDataFile=Bt.createDataFile,e.FS_unlink=Bt.unlink,Y=function t(){Jn||Xn(),Jn||(Y=t)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return Xn(),t.abrupt("return",r.ready);case 309:case"end":return t.stop()}}),t)}))));function Ft(t,r){var e=St();return(Ft=function(t,r){return e[t-=149]})(t,r)}function St(){var t=["314502JTBXKI","3765279jaTJhn","push","5bxQSQF","61762TCmMsT","emit","once","75gEDSDi","399699CCbxBH","5383614HrNdQO","slice","ctx","off","length","2885864BQJXvv","apply","1364632HwhPyM","250BkXBvr","keys"];return(St=function(){return t})()}!function(t){for(var r=Ft,e=t();;)try{if(508925===parseInt(r(162))/1+-parseInt(r(166))/2*(-parseInt(r(150))/3)+parseInt(r(157))/4+parseInt(r(165))/5*(-parseInt(r(152))/6)+parseInt(r(163))/7+parseInt(r(159))/8+parseInt(r(151))/9*(-parseInt(r(160))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(St);var jt,Dt=k((function t(){u(this,t)}),[{key:"on",value:function(t,r,e){var n=Ft,o=this.e||(this.e={});return(o[t]||(o[t]=[]))[n(164)]({fn:r,ctx:e}),this}},{key:(jt=Ft)(149),value:function(t,r,e){var n=this;function o(){var a=Ft;n[a(155)](t,o);for(var i=arguments[a(156)],s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];r[a(158)](e,s)}return o._=r,this.on(t,o,e)}},{key:jt(167),value:function(t){for(var r=jt,e=((this.e||(this.e={}))[t]||[])[r(153)](),n=arguments[r(156)],o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];for(var i=0;i<e[r(156)];i+=1)e[i].fn.apply(e[i][r(154)],o);return this}},{key:jt(155),value:function(t,r){var e=jt,n=this.e||(this.e={});if(!t)return Object[e(161)](n).forEach((function(t){delete n[t]})),void delete this.e;var o=n[t],a=[];if(o&&r)for(var i=0,s=o[e(156)];i<s;i+=1)o[i].fn!==r&&o[i].fn._!==r&&a[e(164)](o[i]);return a[e(156)]?n[t]=a:delete n[t],this}}]),At=Rt;!function(t){for(var r=Rt,e=t();;)try{if(268464===-parseInt(r(427))/1+parseInt(r(437))/2*(parseInt(r(438))/3)+-parseInt(r(436))/4*(-parseInt(r(433))/5)+parseInt(r(432))/6+-parseInt(r(434))/7+parseInt(r(428))/8+-parseInt(r(429))/9*(parseInt(r(430))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Mt);var xt={debug:"debug",warn:At(435)},Ot={debug:!1,debugLevel:xt[At(435)],debugUuid:""};function Mt(){var t=['"1.0.0"',"3134496khqBic","25rQxeCW","3202738OPKsPr","warn","371216qjZVvu","688798hvvGLr","3aayVBa","112638UEQAUT","429392IgPSHR","4912857TVJjvg","10DXQKwR"];return(Mt=function(){return t})()}function Rt(t,r){var e=Mt();return(Rt=function(t,r){return e[t-=427]})(t,r)}var $t=At(431);function Lt(t){return!(null==t)}function Ut(){var t=["length","2ftrXXR","keys","16111722dgPpdK","1858522PiOMJG","15owBGKz","40DMCWJI","object","5634573IgBrMw","canvas","14905179ibzqTp","stringify","79875036rZMiVH","fillStyle","8sJpmPA","height","getContext","data","createElement","fillRect","width","402980kZeZMf","substring","parse","432918nykgrK","10lIyNJJ"];return(Ut=function(){return t})()}function zt(t,r){var e=Ut();return(zt=function(t,r){return e[t-=146]})(t,r)}function Bt(t){return e=zt,!((r=t)&&0===Object[e(165)](r)[e(163)]);var r,e}function Nt(){return function(t){var r=zt,e="";if(d(t)===r(170))try{e=JSON[r(148)](t),e=JSON[r(160)](e)}catch(r){e=t}else e=t;return e}(Ot)}function Wt(){var t=["debugUuid","825QcZwCO","10032ukUTuR","3693312KmpJds","8qIBCvX","apply","[✅✅✅][imageDetector][","debug","561843yfvukL","error","221448GKqJVx","JbPro","7468263OSoZBK","length","_opt","debugLevel","[❌❌❌][imageDetector][","15sFHWry","11NLLtJd","18089630rMBgzx","warn","log","[❗❗❗][imageDetector][","5649343OEsiOp","concat"];return(Wt=function(){return t})()}function Ht(t,r){var e=Wt();return(Ht=function(t,r){return e[t-=365]})(t,r)}!function(t){for(var r=zt,e=t();;)try{if(945458===parseInt(r(164))/1*(-parseInt(r(167))/2)+parseInt(r(168))/3*(-parseInt(r(158))/4)+parseInt(r(169))/5*(parseInt(r(161))/6)+parseInt(r(171))/7*(-parseInt(r(151))/8)+-parseInt(r(147))/9+parseInt(r(162))/10*(-parseInt(r(166))/11)+parseInt(r(149))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Ut),function(t){for(var r=Ht,e=t();;)try{if(483564===parseInt(r(379))/1+-parseInt(r(381))/2*(parseInt(r(388))/3)+parseInt(r(374))/4+parseInt(r(372))/5*(-parseInt(r(373))/6)+-parseInt(r(369))/7*(-parseInt(r(375))/8)+parseInt(r(383))/9+-parseInt(r(365))/10*(parseInt(r(389))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Wt);var Vt=k((function t(r){var e=Ht;u(this,t),this[e(367)]=function(t){var n=e;if(r._opt.debug&&r[n(385)][n(386)]==xt[n(378)]){for(var o,a=r._opt.debugUuid?"["[n(370)](r[n(385)][n(371)],"]"):"",i=arguments[n(384)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(o=console)[n(367)][n(376)](o,[n(382)[n(370)](a,n(377))[n(370)](t,"]")].concat(s))}},this[e(366)]=function(t){var n=e;if(r[n(385)][n(378)]&&(r[n(385)][n(386)]==xt[n(378)]||r[n(385)].debugLevel==xt[n(366)])){for(var o,a=r[n(385)][n(371)]?"["[n(370)](r[n(385)][n(371)],"]"):"",i=arguments[n(384)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(o=console)[n(367)][n(376)](o,["JbPro"[n(370)](a,n(368)).concat(t,"]")][n(370)](s))}},this.error=function(t){for(var n,o=e,a=r[o(385)][o(371)]?"[".concat(r[o(385)][o(371)],"]"):"",i=arguments[o(384)],s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];(n=console)[o(380)].apply(n,["JbPro"[o(370)](a,o(387))[o(370)](t,"]")][o(370)](s))}}));function Jt(){var t=["subarray","load jessibuca face detector fail","height","error","call","3759717GuTBDW","catch","1060042vtVeap","2Qcpeve","then","1810MQkEwX","185SnkdYw","outFaceYUV","70704oAfwkS","now","showRect","1507667NPCLmz","width","prototype","updateConfig","emit","HEAPU8","debug","length","JessibucaProFaceDetector","startTimestamp","detector","detectWidth","clear","module","setParams","TAG_NAME","_opt","construct","validatedFailed, please contact the author to get the correct license","name","6089728fLfJxe"," and is Trial Version[试用版本]","constructor","data","assign","detect","jessibuca-pro-face-detector-info","faces","concat","buildTime","off","valueOf","originalOptions","6551802KfgQJw","log","rectangleColor","setDetectWidth","46143KsIzRN"];return(Jt=function(){return t})()}function Xt(t,r){var e=Jt();return(Xt=function(t,r){return e[t-=422]})(t,r)}var qt=Xt;function Gt(){var t=Xt;try{var r=!Boolean[t(461)][t(436)][t(447)](Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gt=function(){return!!r})()}!function(t){for(var r=Xt,e=t();;)try{if(846652===parseInt(r(451))/1*(parseInt(r(450))/2)+parseInt(r(448))/3+-parseInt(r(456))/4*(parseInt(r(454))/5)+parseInt(r(438))/6+-parseInt(r(459))/7+-parseInt(r(425))/8+parseInt(r(442))/9*(-parseInt(r(453))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(Jt);var Yt=function(t){var r=Xt;function e(){var t,r,n,o,a,i=Xt,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),r=this,a=Xt,n=M(n=e),(t=x(r,Gt()?Reflect[a(422)](n,o||[],M(r)[a(427)]):n.apply(r,o)))[i(437)]=s;var c=Nt(),f=Object[i(429)]({},c,s);return t[i(475)]=f,t[i(465)]=new Vt(t),t[i(474)]="FaceDetector",t[i(472)]=null,t.detector=null,t[i(468)]=null,t[i(470)]=s[i(470)]||192,t[i(458)]=!1!==s.showRect,t.buildTime=s[i(424)]+"-"+s[i(434)],t[i(440)]=s[i(440)]||{r:0,g:255,b:0},console[i(439)]("JbPro face detector version is "[i(433)](s[i(434)],":")[i(433)]($t,i(426))),t}return J(e,t),k(e,[{key:"destroy",value:function(){var t=Xt;this[t(435)](),this[t(469)]&&(this[t(469)][t(471)](),this[t(469)].delete()),this[t(472)]&&(this[t(472)]=null),this[t(468)]=null}},{key:"load",value:function(){var t=this;return new Promise((function(r,e){var n=Xt;Tt()[n(452)]((function(o){var a=n;t[a(472)]=o,t[a(472)].FaceDetector?(t.detector=new(t[a(472)].FaceDetector)(t),t[a(469)].setDetectWidth(t.detectWidth),t[a(469)][a(473)]({showInfo:t[a(458)],rectangleColor:t.rectangleColor}),r()):e(a(444))}))[n(449)]((function(t){console[n(446)](t),e("load jessibuca face detector error")}))}))}},{key:r(462),value:function(){var t=r,e=arguments[t(466)]>0&&void 0!==arguments[0]?arguments[0]:{};e[t(470)]&&(this[t(470)]=e[t(470)],this[t(469)]&&this[t(469)][t(441)](this[t(470)]));var n={};Lt(e.showRect)&&(this.showRect=e[t(458)],n.showInfo=e[t(458)]),Lt(e[t(440)])&&(this[t(440)]=e.rectangleColor,n[t(440)]=e.rectangleColor),Bt(n)&&this[t(469)]&&this[t(469)][t(473)](n)}},{key:r(430),value:function(t){var e=r;if(!this[e(469)])return t[e(428)];if(null===this[e(468)]&&(this[e(468)]=Date.now()),Date[e(457)]()-this[e(468)]>6e5)return t[e(428)];var n=this[e(469)][e(430)](t[e(428)],t.width,t[e(445)],this[e(434)]);if(n){var o=n[e(432)]||[];if(this[e(463)](e(431),{ts:t.ts,list:o}),n[e(455)]){var a=n.outFaceYUV,i=a+3*(t[e(460)]*t[e(445)])/2;return this[e(472)][e(464)][e(443)](a,i)}}return t[e(428)]}},{key:"validatedFailed",value:function(){var t=r;this.debug[t(446)](this[t(474)],t(423))}}])}(Dt);window[qt(467)]=Yt}));