@zappar/zappar-cv 3.0.1-alpha.2 → 3.0.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{var e={238:function(e,t,r){var a;!function(i,n){"use strict";var _="function",o="undefined",s="object",c="string",h="model",l="name",f="type",u="vendor",d="version",p="architecture",m="console",b="mobile",w="tablet",g="smarttv",v="wearable",E="embedded",y="Amazon",A="Apple",k="ASUS",R="BlackBerry",N="Browser",S="Chrome",T="Firefox",x="Google",L="Huawei",I="LG",z="Microsoft",P="Motorola",M="Opera",F="Samsung",O="Sharp",C="Sony",B="Xiaomi",U="Zebra",j="Facebook",D=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},V=function(e,t){return typeof e===c&&-1!==Z(t).indexOf(Z(e))},Z=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,350)},G=function(e,t){for(var r,a,i,o,c,h,l=0;l<t.length&&!c;){var f=t[l],u=t[l+1];for(r=a=0;r<f.length&&!c;)if(c=f[r++].exec(e))for(i=0;i<u.length;i++)h=c[++a],typeof(o=u[i])===s&&o.length>0?2===o.length?typeof o[1]==_?this[o[0]]=o[1].call(this,h):this[o[0]]=o[1]:3===o.length?typeof o[1]!==_||o[1].exec&&o[1].test?this[o[0]]=h?h.replace(o[1],o[2]):n:this[o[0]]=h?o[1].call(this,h,o[2]):n:4===o.length&&(this[o[0]]=h?o[3].call(this,h.replace(o[1],o[2])):n):this[o]=h||n;l+=2}},W=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var a=0;a<t[r].length;a++)if(V(t[r][a],e))return"?"===r?n:r}else if(V(t[r],e))return"?"===r?n:r;return e},H={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[d,[l,M]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[d,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+N],d],[/\bfocus\/([\w\.]+)/i],[d,[l,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI "+N]],[/fxios\/([-\w\.]+)/i],[d,[l,T]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 "+N]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 "+N],d],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,j],d],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,W,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,T+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,d],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,Z]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",Z]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[u,F],[f,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[h,[u,F],[f,b]],[/\((ip(?:hone|od)[\w ]*);/i],[h,[u,A],[f,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[u,A],[f,w]],[/(macintosh);/i],[h,[u,A]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[u,L],[f,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[u,L],[f,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[h,/_/g," "],[u,B],[f,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[u,B],[f,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[u,"OPPO"],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[u,"Vivo"],[f,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[h,[u,"Realme"],[f,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[u,P],[f,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[u,P],[f,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[u,I],[f,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[u,I],[f,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[u,"Lenovo"],[f,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[u,"Nokia"],[f,b]],[/(pixel c)\b/i],[h,[u,x],[f,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[u,x],[f,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[u,C],[f,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[u,C],[f,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[u,"OnePlus"],[f,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[u,y],[f,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[u,y],[f,b]],[/(playbook);[-\w\),; ]+(rim)/i],[h,u,[f,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[u,R],[f,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[u,k],[f,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[u,k],[f,b]],[/(nexus 9)/i],[h,[u,"HTC"],[f,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[h,/_/g," "],[f,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[u,"Acer"],[f,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[u,"Meizu"],[f,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[u,O],[f,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,h,[f,b]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,h,[f,w]],[/(surface duo)/i],[h,[u,z],[f,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[u,"Fairphone"],[f,b]],[/(u304aa)/i],[h,[u,"AT&T"],[f,b]],[/\bsie-(\w*)/i],[h,[u,"Siemens"],[f,b]],[/\b(rct\w+) b/i],[h,[u,"RCA"],[f,w]],[/\b(venue[\d ]{2,7}) b/i],[h,[u,"Dell"],[f,w]],[/\b(q(?:mv|ta)\w+) b/i],[h,[u,"Verizon"],[f,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[u,"Barnes & Noble"],[f,w]],[/\b(tm\d{3}\w+) b/i],[h,[u,"NuVision"],[f,w]],[/\b(k88) b/i],[h,[u,"ZTE"],[f,w]],[/\b(nx\d{3}j) b/i],[h,[u,"ZTE"],[f,b]],[/\b(gen\d{3}) b.+49h/i],[h,[u,"Swiss"],[f,b]],[/\b(zur\d{3}) b/i],[h,[u,"Swiss"],[f,w]],[/\b((zeki)?tb.*\b) b/i],[h,[u,"Zeki"],[f,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],h,[f,w]],[/\b(ns-?\w{0,9}) b/i],[h,[u,"Insignia"],[f,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[u,"NextBook"],[f,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],h,[f,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],h,[f,b]],[/\b(ph-1) /i],[h,[u,"Essential"],[f,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[u,"Envizen"],[f,w]],[/\b(trio[-\w\. ]+) b/i],[h,[u,"MachSpeed"],[f,w]],[/\btu_(1491) b/i],[h,[u,"Rotor"],[f,w]],[/(shield[\w ]+) b/i],[h,[u,"Nvidia"],[f,w]],[/(sprint) (\w+)/i],[u,h,[f,b]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[u,z],[f,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[u,U],[f,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[u,U],[f,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,h,[f,m]],[/droid.+; (shield) bui/i],[h,[u,"Nvidia"],[f,m]],[/(playstation [345portablevi]+)/i],[h,[u,C],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[u,z],[f,m]],[/smart-tv.+(samsung)/i],[u,[f,g]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[u,F],[f,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,I],[f,g]],[/(apple) ?tv/i],[u,[h,A+" TV"],[f,g]],[/crkey/i],[[h,S+"cast"],[u,x],[f,g]],[/droid.+aft(\w)( bui|\))/i],[h,[u,y],[f,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[u,O],[f,g]],[/(bravia[\w ]+)( bui|\))/i],[h,[u,C],[f,g]],[/(mitv-\w{5}) bui/i],[h,[u,B],[f,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[u,K],[h,K],[f,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,g]],[/((pebble))app/i],[u,h,[f,v]],[/droid.+; (glass) \d/i],[h,[u,x],[f,v]],[/droid.+; (wt63?0{2,3})\)/i],[h,[u,U],[f,v]],[/(quest( 2)?)/i],[h,[u,j],[f,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[f,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[h,[f,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[f,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,b]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[l,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[d,W,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[d,W,H]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,d],[/\(bb(10);/i],[d,[l,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[d,[l,S+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[l,"Chromium OS"],d],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,d]]},X=function(e,t){if(typeof e===s&&(t=e,e=n),!(this instanceof X))return new X(e,t).getResult();var r=e||(typeof i!==o&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),a=t?function(e,t){var r={};for(var a in e)t[a]&&t[a].length%2==0?r[a]=t[a].concat(e[a]):r[a]=e[a];return r}(Y,t):Y;return this.getBrowser=function(){var e,t={};return t[l]=n,t[d]=n,G.call(t,r,a.browser),t.major=typeof(e=t.version)===c?e.replace(/[^\d\.]/g,"").split(".")[0]:n,t},this.getCPU=function(){var e={};return e[p]=n,G.call(e,r,a.cpu),e},this.getDevice=function(){var e={};return e[u]=n,e[h]=n,e[f]=n,G.call(e,r,a.device),e},this.getEngine=function(){var e={};return e[l]=n,e[d]=n,G.call(e,r,a.engine),e},this.getOS=function(){var e={};return e[l]=n,e[d]=n,G.call(e,r,a.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>350?K(e,350):e,this},this.setUA(r),this};X.VERSION="1.0.33",X.BROWSER=D([l,d,"major"]),X.CPU=D([p]),X.DEVICE=D([h,u,f,m,b,g,w,v,E]),X.ENGINE=X.OS=D([l,d]),typeof t!==o?(e.exports&&(t=e.exports=X),t.UAParser=X):r.amdO?(a=function(){return X}.call(t,r,t,e))===n||(e.exports=a):typeof i!==o&&(i.UAParser=X);var q=typeof i!==o&&(i.jQuery||i.Zepto);if(q&&!q.ua){var $=new X;q.ua=$.getResult(),q.ua.get=function(){return $.getUA()},q.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var r in t)q.ua[r]=t[r]}}}("object"==typeof window?window:this)},751:(e,t,r)=>{"use strict";e.exports=r.p+"36d6b6985808cbeca829.wasm"}},t={};function r(a){var i=t[a];if(void 0!==i)return i.exports;var n=t[a]={exports:{}};return e[a].call(n.exports,n,n.exports,r),n.exports}r.m=e,r.amdO={},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var a=t.getElementsByTagName("script");if(a.length)for(var i=a.length-1;i>-1&&!e;)e=a[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.b=self.location+"",(()=>{"use strict";var e;const t=(e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t={}){var r,a,i=t;i.ready=new Promise(((e,t)=>{r=e,a=t}));var n,_=Object.assign({},i),o="./this.program",s=(e,t)=>{throw t},c="";c=self.location.href,e&&(c=e),c=c.startsWith("blob:")?"":c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1),n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)};var h,l=i.print||console.log.bind(console),f=i.printErr||console.error.bind(console);Object.assign(i,_),_=null,i.thisProgram&&(o=i.thisProgram),i.quit&&(s=i.quit),i.wasmBinary&&(h=i.wasmBinary),"object"!=typeof WebAssembly&&C("no native wasm support detected");var u,d,p,m,b,w,g,v,E,y,A=!1;function k(){var e=u.buffer;i.HEAP8=p=new Int8Array(e),i.HEAP16=b=new Int16Array(e),i.HEAPU8=m=new Uint8Array(e),i.HEAPU16=w=new Uint16Array(e),i.HEAP32=g=new Int32Array(e),i.HEAPU32=v=new Uint32Array(e),i.HEAPF32=E=new Float32Array(e),i.HEAPF64=y=new Float64Array(e)}var R=[],N=[],S=[];function T(){var e=i.preRun.shift();R.unshift(e)}var x,L,I,z=0,P=null,M=null;function F(){z++,i.monitorRunDependencies?.(z)}function O(){if(z--,i.monitorRunDependencies?.(z),0==z&&(null!==P&&(clearInterval(P),P=null),M)){var e=M;M=null,e()}}function C(e){throw i.onAbort?.(e),f(e="Aborted("+e+")"),A=!0,d=1,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}if(!(x="zappar-cv.wasm").startsWith("data:application/octet-stream;base64,")){var B=x;x=i.locateFile?i.locateFile(B,c):c+B}function U(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var j=e=>{for(;0<e.length;)e.shift()(i)},D=i.noExitRuntime||!0,V=[],Z=0,K=0;class G{constructor(e){this.ph=e,this.eh=e-24}}var W=e=>{var t=K;if(!t)return fr(0),0;var r=new G(t);v[r.eh+16>>2]=t;var a=v[r.eh+4>>2];if(!a)return fr(0),t;for(var i in e){var n=e[i];if(0===n||n===a)break;if(wr(n,a,r.eh+16))return fr(n),t}return fr(a),t},H=()=>{var e=V.pop();e||C("no exception to throw");var t=e.ph;throw 0==p[e.eh+13>>0]&&(V.push(e),p[e.eh+13>>0]=1,p[e.eh+12>>0]=0,Z++),K=t},Y=(e,t)=>{for(var r=0,a=e.length-1;0<=a;a--){var i=e[a];"."===i?e.splice(a,1):".."===i?(e.splice(a,1),r++):r&&(e.splice(a,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},X=e=>{var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=Y(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},q=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&=t.substr(0,t.length-1),e+t):"."},$=e=>{if("/"===e)return"/";var t=(e=(e=X(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},J=e=>(J=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);C("initRandomDevice")})())(e);function Q(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=Y(e.split("/").filter((e=>!!e)),!t).join("/"))||"."}var ee="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,te=(e,t,r)=>{var a=t+r;for(r=t;e[r]&&!(r>=a);)++r;if(16<r-t&&e.buffer&&ee)return ee.decode(e.subarray(t,r));for(a="";t<r;){var i=e[t++];if(128&i){var n=63&e[t++];if(192==(224&i))a+=String.fromCharCode((31&i)<<6|n);else{var _=63&e[t++];65536>(i=224==(240&i)?(15&i)<<12|n<<6|_:(7&i)<<18|n<<12|_<<6|63&e[t++])?a+=String.fromCharCode(i):(i-=65536,a+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else a+=String.fromCharCode(i)}return a},re=[],ae=e=>{for(var t=0,r=0;r<e.length;++r){var a=e.charCodeAt(r);127>=a?t++:2047>=a?t+=2:55296<=a&&57343>=a?(t+=4,++r):t+=3}return t},ie=(e,t,r,a)=>{if(!(0<a))return 0;var i=r;a=r+a-1;for(var n=0;n<e.length;++n){var _=e.charCodeAt(n);if(55296<=_&&57343>=_&&(_=65536+((1023&_)<<10)|1023&e.charCodeAt(++n)),127>=_){if(r>=a)break;t[r++]=_}else{if(2047>=_){if(r+1>=a)break;t[r++]=192|_>>6}else{if(65535>=_){if(r+2>=a)break;t[r++]=224|_>>12}else{if(r+3>=a)break;t[r++]=240|_>>18,t[r++]=128|_>>12&63}t[r++]=128|_>>6&63}t[r++]=128|63&_}}return t[r]=0,r-i};function ne(e,t){var r=Array(ae(e)+1);return e=ie(e,r,0,r.length),t&&(r.length=e),r}var _e=[];function oe(e,t){_e[e]={input:[],fh:[],nh:t},Be(e,se)}var se={open(e){var t=_e[e.node.yh];if(!t)throw new Ee(43);e.bh=t,e.seekable=!1},close(e){e.bh.nh.Ch(e.bh)},Ch(e){e.bh.nh.Ch(e.bh)},read(e,t,r,a){if(!e.bh||!e.bh.nh.Rh)throw new Ee(60);for(var i=0,n=0;n<a;n++){try{var _=e.bh.nh.Rh(e.bh)}catch(e){throw new Ee(29)}if(void 0===_&&0===i)throw new Ee(6);if(null==_)break;i++,t[r+n]=_}return i&&(e.node.timestamp=Date.now()),i},write(e,t,r,a){if(!e.bh||!e.bh.nh.Mh)throw new Ee(60);try{for(var i=0;i<a;i++)e.bh.nh.Mh(e.bh,t[r+i])}catch(e){throw new Ee(29)}return a&&(e.node.timestamp=Date.now()),i}},ce={Rh(){e:{if(!re.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e){e=null;break e}re=ne(e,!0)}e=re.shift()}return e},Mh(e,t){null===t||10===t?(l(te(e.fh,0)),e.fh=[]):0!=t&&e.fh.push(t)},Ch(e){e.fh&&0<e.fh.length&&(l(te(e.fh,0)),e.fh=[])},gi:()=>({yi:25856,Ai:5,xi:191,zi:35387,wi:[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]}),hi:()=>0,ii:()=>[24,80]},he={Mh(e,t){null===t||10===t?(f(te(e.fh,0)),e.fh=[]):0!=t&&e.fh.push(t)},Ch(e){e.fh&&0<e.fh.length&&(f(te(e.fh,0)),e.fh=[])}};function le(e,t){var r=e.$g?e.$g.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=e.$g,e.$g=new Uint8Array(t),0<e.dh&&e.$g.set(r.subarray(0,e.dh),0))}var fe={jh:null,mh:()=>fe.createNode(null,"/",16895,0),createNode(e,t,r,a){if(24576==(61440&r)||4096==(61440&r))throw new Ee(63);return fe.jh||(fe.jh={dir:{node:{ih:fe.Zg.ih,kh:fe.Zg.kh,xh:fe.Zg.xh,Dh:fe.Zg.Dh,Wh:fe.Zg.Wh,Jh:fe.Zg.Jh,Fh:fe.Zg.Fh,Eh:fe.Zg.Eh,Gh:fe.Zg.Gh},stream:{rh:fe.ah.rh}},file:{node:{ih:fe.Zg.ih,kh:fe.Zg.kh},stream:{rh:fe.ah.rh,read:fe.ah.read,write:fe.ah.write,Ah:fe.ah.Ah,Th:fe.ah.Th,Vh:fe.ah.Vh}},link:{node:{ih:fe.Zg.ih,kh:fe.Zg.kh,zh:fe.Zg.zh},stream:{}},Ph:{node:{ih:fe.Zg.ih,kh:fe.Zg.kh},stream:Ce}}),xe((r=Te(e,t,r,a)).mode)?(r.Zg=fe.jh.dir.node,r.ah=fe.jh.dir.stream,r.$g={}):32768==(61440&r.mode)?(r.Zg=fe.jh.file.node,r.ah=fe.jh.file.stream,r.dh=0,r.$g=null):40960==(61440&r.mode)?(r.Zg=fe.jh.link.node,r.ah=fe.jh.link.stream):8192==(61440&r.mode)&&(r.Zg=fe.jh.Ph.node,r.ah=fe.jh.Ph.stream),r.timestamp=Date.now(),e&&(e.$g[t]=r,e.timestamp=r.timestamp),r},Fi:e=>e.$g?e.$g.subarray?e.$g.subarray(0,e.dh):new Uint8Array(e.$g):new Uint8Array(0),Zg:{ih(e){var t={};return t.ai=8192==(61440&e.mode)?e.id:1,t.Sh=e.id,t.mode=e.mode,t.mi=1,t.uid=0,t.ci=0,t.yh=e.yh,xe(e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.dh:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.Xh=new Date(e.timestamp),t.li=new Date(e.timestamp),t.$h=new Date(e.timestamp),t.Yh=4096,t.Zh=Math.ceil(t.size/t.Yh),t},kh(e,t){if(void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&(t=t.size,e.dh!=t))if(0==t)e.$g=null,e.dh=0;else{var r=e.$g;e.$g=new Uint8Array(t),r&&e.$g.set(r.subarray(0,Math.min(t,e.dh))),e.dh=t}},xh(){throw ye[44]},Dh:(e,t,r,a)=>fe.createNode(e,t,r,a),Wh(e,t,r){if(xe(e.mode)){try{var a=Se(t,r)}catch(e){}if(a)for(var i in a.$g)throw new Ee(55)}delete e.parent.$g[e.name],e.parent.timestamp=Date.now(),e.name=r,t.$g[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},Jh(e,t){delete e.$g[t],e.timestamp=Date.now()},Fh(e,t){var r,a=Se(e,t);for(r in a.$g)throw new Ee(55);delete e.$g[t],e.timestamp=Date.now()},Eh(e){var t,r=[".",".."];for(t of Object.keys(e.$g))r.push(t);return r},Gh:(e,t,r)=>((e=fe.createNode(e,t,41471,0)).link=r,e),zh(e){if(40960!=(61440&e.mode))throw new Ee(28);return e.link}},ah:{read(e,t,r,a,i){var n=e.node.$g;if(i>=e.node.dh)return 0;if(8<(e=Math.min(e.node.dh-i,a))&&n.subarray)t.set(n.subarray(i,i+e),r);else for(a=0;a<e;a++)t[r+a]=n[i+a];return e},write(e,t,r,a,i,n){if(t.buffer===p.buffer&&(n=!1),!a)return 0;if((e=e.node).timestamp=Date.now(),t.subarray&&(!e.$g||e.$g.subarray)){if(n)return e.$g=t.subarray(r,r+a),e.dh=a;if(0===e.dh&&0===i)return e.$g=t.slice(r,r+a),e.dh=a;if(i+a<=e.dh)return e.$g.set(t.subarray(r,r+a),i),a}if(le(e,i+a),e.$g.subarray&&t.subarray)e.$g.set(t.subarray(r,r+a),i);else for(n=0;n<a;n++)e.$g[i+n]=t[r+n];return e.dh=Math.max(e.dh,i+a),a},rh(e,t,r){if(1===r?t+=e.position:2===r&&32768==(61440&e.node.mode)&&(t+=e.node.dh),0>t)throw new Ee(28);return t},Ah(e,t,r){le(e.node,t+r),e.node.dh=Math.max(e.node.dh,t+r)},Th(e,t,r,a,i){if(32768!=(61440&e.node.mode))throw new Ee(43);if(e=e.node.$g,2&i||e.buffer!==p.buffer){if((0<r||r+t<e.length)&&(e=e.subarray?e.subarray(r,r+t):Array.prototype.slice.call(e,r,r+t)),r=!0,C(),!(t=void 0))throw new Ee(48);p.set(e,t)}else r=!1,t=e.byteOffset;return{eh:t,uh:r}},Vh:(e,t,r,a)=>(fe.ah.write(e,t,0,a,r,!1),0)}},ue=i.preloadPlugins||[],de=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},pe=null,me={},be=[],we=1,ge=null,ve=!0,Ee=class{constructor(e){this.name="ErrnoError",this.gh=e}},ye={};function Ae(e,t={}){if(!(e=Q(e)))return{path:"",node:null};if(8<(t=Object.assign({Qh:!0,Nh:0},t)).Nh)throw new Ee(32);e=e.split("/").filter((e=>!!e));for(var r=pe,a="/",i=0;i<e.length;i++){var n=i===e.length-1;if(n&&t.parent)break;if(r=Se(r,e[i]),a=X(a+"/"+e[i]),r.vh&&(!n||n&&t.Qh)&&(r=r.vh.root),!n||t.Bh)for(n=0;40960==(61440&r.mode);)if(r=Ke(a),r=Ae(a=Q(q(a),r),{Nh:t.Nh+1}).node,40<n++)throw new Ee(32)}return{path:a,node:r}}function ke(e){for(var t;;){if(e===e.parent)return e=e.mh.Uh,t?"/"!==e[e.length-1]?`${e}/${t}`:e+t:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}}function Re(e,t){for(var r=0,a=0;a<t.length;a++)r=(r<<5)-r+t.charCodeAt(a)|0;return(e+r>>>0)%ge.length}function Ne(e){var t=Re(e.parent.id,e.name);if(ge[t]===e)ge[t]=e.wh;else for(t=ge[t];t;){if(t.wh===e){t.wh=e.wh;break}t=t.wh}}function Se(e,t){var r=xe(e.mode)?(r=Ie(e,"x"))?r:e.Zg.xh?0:2:54;if(r)throw new Ee(r);for(r=ge[Re(e.id,t)];r;r=r.wh){var a=r.name;if(r.parent.id===e.id&&a===t)return r}return e.Zg.xh(e,t)}function Te(e,t,r,a){return t=Re((e=new ir(e,t,r,a)).parent.id,e.name),e.wh=ge[t],ge[t]=e}function xe(e){return 16384==(61440&e)}function Le(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t}function Ie(e,t){return ve?0:!t.includes("r")||292&e.mode?t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0:2}function ze(e,t){try{return Se(e,t),20}catch(e){}return Ie(e,"wx")}function Pe(e,t,r){try{var a=Se(e,t)}catch(e){return e.gh}if(e=Ie(e,"wx"))return e;if(r){if(!xe(a.mode))return 54;if(a===a.parent||"/"===ke(a))return 10}else if(xe(a.mode))return 31;return 0}function Me(e){if(!(e=be[e]))throw new Ee(8);return e}function Fe(e,t=-1){return Xe||((Xe=function(){this.hh={}}).prototype={},Object.defineProperties(Xe.prototype,{object:{get(){return this.node},set(e){this.node=e}},flags:{get(){return this.hh.flags},set(e){this.hh.flags=e}},position:{get(){return this.hh.position},set(e){this.hh.position=e}}})),e=Object.assign(new Xe,e),-1==t&&(t=function(){for(var e=0;4096>=e;e++)if(!be[e])return e;throw new Ee(33)}()),e.oh=t,be[t]=e}var Oe,Ce={open(e){e.ah=me[e.node.yh].ah,e.ah.open?.(e)},rh(){throw new Ee(70)}};function Be(e,t){me[e]={ah:t}}function Ue(e,t){var r="/"===t;if(r&&pe)throw new Ee(10);if(!r&&t){var a=Ae(t,{Qh:!1});if(t=a.path,(a=a.node).vh)throw new Ee(10);if(!xe(a.mode))throw new Ee(54)}t={type:e,Ji:{},Uh:t,ki:[]},(e=e.mh(t)).mh=t,t.root=e,r?pe=e:a&&(a.vh=t,a.mh&&a.mh.ki.push(t))}function je(e,t,r){var a=Ae(e,{parent:!0}).node;if(!(e=$(e))||"."===e||".."===e)throw new Ee(28);var i=ze(a,e);if(i)throw new Ee(i);if(!a.Zg.Dh)throw new Ee(63);return a.Zg.Dh(a,e,t,r)}function De(e){return je(e,16895,0)}function Ve(e,t,r){void 0===r&&(r=t,t=438),je(e,8192|t,r)}function Ze(e,t){if(!Q(e))throw new Ee(44);var r=Ae(t,{parent:!0}).node;if(!r)throw new Ee(44);var a=ze(r,t=$(t));if(a)throw new Ee(a);if(!r.Zg.Gh)throw new Ee(63);r.Zg.Gh(r,t,e)}function Ke(e){if(!(e=Ae(e).node))throw new Ee(44);if(!e.Zg.zh)throw new Ee(28);return Q(ke(e.parent),e.Zg.zh(e))}function Ge(e,t,r){if(""===e)throw new Ee(44);if("string"==typeof t){var a={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===a)throw Error(`Unknown file open mode: ${t}`);t=a}if(r=64&t?4095&(void 0===r?438:r)|32768:0,"object"==typeof e)var n=e;else{e=X(e);try{n=Ae(e,{Bh:!(131072&t)}).node}catch(e){}}if(a=!1,64&t)if(n){if(128&t)throw new Ee(20)}else n=je(e,r,0),a=!0;if(!n)throw new Ee(44);if(8192==(61440&n.mode)&&(t&=-513),65536&t&&!xe(n.mode))throw new Ee(54);if(!a&&(r=n?40960==(61440&n.mode)?32:xe(n.mode)&&("r"!==Le(t)||512&t)?31:Ie(n,Le(t)):44))throw new Ee(r);if(512&t&&!a){if(!(r="string"==typeof(r=n)?Ae(r,{Bh:!0}).node:r).Zg.kh)throw new Ee(63);if(xe(r.mode))throw new Ee(31);if(32768!=(61440&r.mode))throw new Ee(28);if(a=Ie(r,"w"))throw new Ee(a);r.Zg.kh(r,{size:0,timestamp:Date.now()})}return t&=-131713,(n=Fe({node:n,path:ke(n),flags:t,seekable:!0,position:0,ah:n.ah,si:[],error:!1})).ah.open&&n.ah.open(n),!i.logReadFiles||1&t||(qe||={},e in qe||(qe[e]=1)),n}function We(e,t,r){if(null===e.oh)throw new Ee(8);if(!e.seekable||!e.ah.rh)throw new Ee(70);if(0!=r&&1!=r&&2!=r)throw new Ee(28);return e.position=e.ah.rh(e,t,r),e.si=[],e.position}function He(e,t,r){e=X("/dev/"+e);var a=de(!!t,!!r);Ye||=64;var i=Ye++<<8|0;Be(i,{open(e){e.seekable=!1},close(){r?.buffer?.length&&r(10)},read(e,r,a,i){for(var n=0,_=0;_<i;_++){try{var o=t()}catch(e){throw new Ee(29)}if(void 0===o&&0===n)throw new Ee(6);if(null==o)break;n++,r[a+_]=o}return n&&(e.node.timestamp=Date.now()),n},write(e,t,a,i){for(var n=0;n<i;n++)try{r(t[a+n])}catch(e){throw new Ee(29)}return i&&(e.node.timestamp=Date.now()),n}}),Ve(e,a,i)}var Ye,Xe,qe,$e={},Je=(e,t)=>e?te(m,e,t):"";function Qe(e,t){if("/"===t.charAt(0))return t;if(e=-100===e?"/":Me(e).path,0==t.length)throw new Ee(44);return X(e+"/"+t)}var et=void 0;function tt(){var e=g[+et>>2];return et+=4,e}var rt,at=e=>0==e%4&&(0!=e%100||0==e%400),it=[0,31,60,91,121,152,182,213,244,274,305,335],nt=[0,31,59,90,120,151,181,212,243,273,304,334],_t=e=>{var t=ae(e)+1,r=cr(t);return r&&ie(e,m,r,t),r},ot=e=>{d=e,D||(i.onExit?.(e),A=!0),s(e,new U(e))},st=e=>{if(!A)try{if(e(),!D)try{d=e=d,ot(e)}catch(e){e instanceof U||"unwind"==e||s(1,e)}}catch(e){e instanceof U||"unwind"==e||s(1,e)}},ct=(e,t)=>{setTimeout((()=>{st(e)}),t)};rt=()=>performance.now();var ht,lt,ft,ut=!1,dt=null,pt=0,mt=null,bt=0,wt=0,gt=0,vt=[],Et={},yt=!1,At=!1,kt=[],Rt=!1,Nt=void 0,St=void 0;function Tt(){return!!yt&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0)}var xt=0;function Lt(e){if("function"==typeof requestAnimationFrame)requestAnimationFrame(e);else{var t=Date.now();if(0===xt)xt=t+1e3/60;else for(;t+2>=xt;)xt+=1e3/60;setTimeout(e,Math.max(xt-t,0))}}function It(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}var zt=[];function Pt(){var e=i.canvas;zt.forEach((t=>t(e.width,e.height)))}function Mt(e,t,r){t&&r?(e.ti=t,e.di=r):(t=e.ti,r=e.di);var a=t,n=r;if(i.forcedAspectRatio&&0<i.forcedAspectRatio&&(a/n<i.forcedAspectRatio?a=Math.round(n*i.forcedAspectRatio):n=Math.round(a/i.forcedAspectRatio)),(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e.parentNode&&"undefined"!=typeof screen){var _=Math.min(screen.width/a,screen.height/n);a=Math.round(a*_),n=Math.round(n*_)}St?(e.width!=a&&(e.width=a),e.height!=n&&(e.height=n),void 0!==e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=t&&(e.width=t),e.height!=r&&(e.height=r),void 0!==e.style&&(a!=t||n!=r?(e.style.setProperty("width",a+"px","important"),e.style.setProperty("height",n+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))}var Ft,Ot,Ct,Bt,Ut,jt=[],Dt=e=>{var t=jt[e];return t||(e>=jt.length&&(jt.length=e+1),jt[e]=t=Ct.get(e)),t};function Vt(e,t,r,a,i){function n(){var t=0,r=0;y.response&&g&&0===v[e+12>>2]&&(r=y.response.byteLength),0<r&&(t=cr(r),m.set(new Uint8Array(y.response),t)),v[e+12>>2]=t,Zt(e+16,r),Zt(e+24,0),(t=y.response?y.response.byteLength:0)&&Zt(e+32,t),w[e+40>>1]=y.readyState,w[e+42>>1]=y.status,y.statusText&&ie(y.statusText,m,e+44,64)}var _=v[e+8>>2];if(_){var o=_?te(m,_):"",s=e+112,c=Je(s+0);c||="GET";var h=v[s+56>>2],l=v[s+68>>2],f=v[s+72>>2];_=v[s+76>>2];var u=v[s+80>>2],d=v[s+84>>2],p=v[s+88>>2],b=v[s+52>>2],g=!!(1&b),E=!!(2&b);b=!!(64&b),l=l?l?te(m,l):"":void 0,f=f?f?te(m,f):"":void 0;var y=new XMLHttpRequest;if(y.withCredentials=!!m[s+60>>0],y.open(c,o,!b,l,f),b||(y.timeout=h),y.hh=o,y.responseType="arraybuffer",u&&(o=u?te(m,u):"",y.overrideMimeType(o)),_)for(;(s=v[_>>2])&&(o=v[_+4>>2]);)_+=8,s=s?te(m,s):"",o=o?te(m,o):"",y.setRequestHeader(s,o);var A=Bt.Ah(y);v[e>>2]=A,_=d&&p?m.slice(d,d+p):null,y.onload=a=>{Bt.has(A)&&(n(),200<=y.status&&300>y.status?t?.(e,y,a):r?.(e,y,a))},y.onerror=t=>{Bt.has(A)&&(n(),r?.(e,y,t))},y.ontimeout=t=>{Bt.has(A)&&r?.(e,y,t)},y.onprogress=t=>{if(Bt.has(A)){var r=g&&E&&y.response?y.response.byteLength:0,i=0;0<r&&g&&E&&(i=cr(r),m.set(new Uint8Array(y.response),i)),v[e+12>>2]=i,Zt(e+16,r),Zt(e+24,t.loaded-r),Zt(e+32,t.total),w[e+40>>1]=y.readyState,3<=y.readyState&&0===y.status&&0<t.loaded&&(y.status=200),w[e+42>>1]=y.status,y.statusText&&ie(y.statusText,m,e+44,64),a?.(e,y,t),i&&sr(i)}},y.onreadystatechange=t=>{Bt.has(A)&&(w[e+40>>1]=y.readyState,2<=y.readyState&&(w[e+42>>1]=y.status),i?.(e,y,t))};try{y.send(_)}catch(t){r?.(e,y,t)}}else r(e,0,"no url specified!")}var Zt=(e,t)=>{v[e>>2]=t,v[e+4>>2]=(t-v[e>>2])/4294967296};function Kt(e,t,r,a){var i=Ut;if(i){var n=v[e+112+64>>2];n||=v[e+8>>2];var _=n?te(m,n):"";try{var o=i.transaction(["FILES"],"readwrite").objectStore("FILES").put(t,_);o.onsuccess=()=>{w[e+40>>1]=4,w[e+42>>1]=200,ie("OK",m,e+44,64),r(e,0,_)},o.onerror=t=>{w[e+40>>1]=4,w[e+42>>1]=413,ie("Payload Too Large",m,e+44,64),a(e,0,t)}}catch(t){a(e,0,t)}}else a(e,0,"IndexedDB not available!")}var Gt,Wt,Ht,Yt={},Xt=()=>{if(!Gt){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:o||"./this.program"};for(e in Yt)void 0===Yt[e]?delete t[e]:t[e]=Yt[e];var r=[];for(e in t)r.push(`${e}=${t[e]}`);Gt=r}return Gt},qt=1,$t=[],Jt=[],Qt=e=>{for(var t=qt++,r=e.length;r<t;r++)e[r]=null;return t},er=e=>{if(e||=Ht,!e.ei){e.ei=!0;var t=e.Kh;(e=>{var t=e.getExtension("ANGLE_instanced_arrays");t&&(e.vertexAttribDivisor=(e,r)=>t.vertexAttribDivisorANGLE(e,r),e.drawArraysInstanced=(e,r,a,i)=>t.drawArraysInstancedANGLE(e,r,a,i),e.drawElementsInstanced=(e,r,a,i,n)=>t.drawElementsInstancedANGLE(e,r,a,i,n))})(t),(e=>{var t=e.getExtension("OES_vertex_array_object");t&&(e.createVertexArray=()=>t.createVertexArrayOES(),e.deleteVertexArray=e=>t.deleteVertexArrayOES(e),e.bindVertexArray=e=>t.bindVertexArrayOES(e),e.isVertexArray=e=>t.isVertexArrayOES(e))})(t),(e=>{var t=e.getExtension("WEBGL_draw_buffers");t&&(e.drawBuffers=(e,r)=>t.drawBuffersWEBGL(e,r))})(t),t.Ci=t.getExtension("EXT_disjoint_timer_query"),t.Gi=t.getExtension("WEBGL_multi_draw"),function(e){var t="ANGLE_instanced_arrays EXT_blend_minmax EXT_disjoint_timer_query EXT_frag_depth EXT_shader_texture_lod EXT_sRGB OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_depth_texture WEBGL_draw_buffers EXT_color_buffer_half_float EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");return(e.getSupportedExtensions()||[]).filter((e=>t.includes(e)))}(t).forEach((e=>{e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}},tr={},rr=[31,29,31,30,31,30,31,31,30,31,30,31],ar=[31,28,31,30,31,30,31,31,30,31,30,31];function ir(e,t,r,a){e||=this,this.parent=e,this.mh=e.mh,this.vh=null,this.id=we++,this.name=t,this.mode=r,this.Zg={},this.ah={},this.yh=a}Object.defineProperties(ir.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}}}),[44].forEach((e=>{ye[e]=new Ee(e),ye[e].stack="<generic error, no stack>"})),ge=Array(4096),Ue(fe,"/"),De("/tmp"),De("/home"),De("/home/web_user"),function(){De("/dev"),Be(259,{read:()=>0,write:(e,t,r,a)=>a}),Ve("/dev/null",259),oe(1280,ce),oe(1536,he),Ve("/dev/tty",1280),Ve("/dev/tty1",1536);var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=J(e).byteLength),e[--t]);He("random",r),He("urandom",r),De("/dev/shm"),De("/dev/shm/tmp")}(),function(){De("/proc");var e=De("/proc/self");De("/proc/self/fd"),Ue({mh(){var t=Te(e,"fd",16895,73);return t.Zg={xh(e,t){var r=Me(+t);return(e={parent:null,mh:{Uh:"fake"},Zg:{zh:()=>r.path}}).parent=e}},t}},"/proc/self/fd")}(),i.requestFullscreen=function(e,t){function r(){yt=!1;var e=a.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e?(a.exitFullscreen=Tt,Nt&&a.requestPointerLock(),yt=!0,St?("undefined"!=typeof SDL&&(g[SDL.screen>>2]=8388608|v[SDL.screen>>2]),Mt(i.canvas),Pt()):Mt(a)):(e.parentNode.insertBefore(a,e),e.parentNode.removeChild(e),St?("undefined"!=typeof SDL&&(g[SDL.screen>>2]=-8388609&v[SDL.screen>>2]),Mt(i.canvas),Pt()):Mt(a)),i.onFullScreen?.(yt),i.onFullscreen?.(yt)}void 0===(Nt=e)&&(Nt=!0),void 0===(St=t)&&(St=!1);var a=i.canvas;Rt||(Rt=!0,document.addEventListener("fullscreenchange",r,!1),document.addEventListener("mozfullscreenchange",r,!1),document.addEventListener("webkitfullscreenchange",r,!1),document.addEventListener("MSFullscreenChange",r,!1));var n=document.createElement("div");a.parentNode.insertBefore(n,a),n.appendChild(a),n.requestFullscreen=n.requestFullscreen||n.mozRequestFullScreen||n.msRequestFullscreen||(n.webkitRequestFullscreen?()=>n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):null)||(n.webkitRequestFullScreen?()=>n.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):null),n.requestFullscreen()},i.requestAnimationFrame=Lt,i.setCanvasSize=function(e,t,r){Mt(i.canvas,e,t),r||Pt()},i.pauseMainLoop=function(){dt=null,pt++},i.resumeMainLoop=function(){pt++;var e=bt,t=wt,r=mt;mt=null,(e=>{!mt||C("emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),mt=e;var t=pt;ut=!1,lt=function(){if(!A)if(0<vt.length){var r=vt.shift();if(r.Ei(r.vi),ft){var a=ft,n=0==a%1?a-1:Math.floor(a);ft=r.Bi?n:(8*a+(n+.5))/9}i.setStatus&&(r=i.statusMessage||"Please wait...",n=Et.Di,(a=ft)?a<n?i.setStatus(r+" ("+(n-a)+"/"+n+")"):i.setStatus(r):i.setStatus("")),t<pt||setTimeout(lt,0)}else t<pt||(gt=gt+1|0,1==bt&&1<wt&&0!=gt%wt?dt():(0==bt&&(ht=rt()),A||i.preMainLoop&&!1===i.preMainLoop()||(st(e),i.postMainLoop?.()),t<pt||("object"==typeof SDL&&SDL.audio?.Ki?.(),dt())))}})(r),((e,t)=>{if(bt=e,wt=t,mt)if(ut||=!0,0==e)dt=function(){var e=0|Math.max(0,ht+t-rt());setTimeout(lt,e)};else if(1==e)dt=function(){Lt(lt)};else if(2==e){if(void 0===Ft)if("undefined"==typeof setImmediate){var r=[];addEventListener("message",(e=>{"setimmediate"!==e.data&&"setimmediate"!==e.data.target||(e.stopPropagation(),r.shift()())}),!0),Ft=function(e){r.push(e),void 0===i.setImmediates&&(i.setImmediates=[]),i.setImmediates.push(e),postMessage({target:"setimmediate"})}}else Ft=setImmediate;dt=function(){Ft(lt)}}})(e,t),dt()},i.getUserMedia=function(e){let t;(t=window).getUserMedia||(t.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},i.createContext=function(e,t,r,a){if(t&&i.Lh&&e==i.canvas)return i.Lh;var n;if(t){var _={antialias:!1,alpha:!1,ji:1};if(a)for(var o in a)_[o]=a[o];if(void 0!==tr&&(n=((e,t)=>{e.hh||(e.hh=e.getContext,e.getContext=function(t,r){return"webgl"==t==(r=e.hh(t,r))instanceof WebGLRenderingContext?r:null});var r=e.getContext("webgl",t);return r?((e,t)=>{var r=Qt(Jt),a={handle:r,attributes:t,version:t.ji,Kh:e};return e.canvas&&(e.canvas.ui=a),Jt[r]=a,(void 0===t.bi||t.bi)&&er(a),r})(r,t):0})(e,_)))var s=Jt[n].Kh}else s=e.getContext("2d");return s?(r&&(t||void 0===nr||C("cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),i.Lh=s,t&&(Ht=Jt[n],i.Lh=nr=Ht?.Kh),i.Mi=t,kt.forEach((e=>e())),function(){function e(){At=document.pointerLockElement===i.canvas||document.mozPointerLockElement===i.canvas||document.webkitPointerLockElement===i.canvas||document.msPointerLockElement===i.canvas}if(!Ot){Ot=!0,ue.push({canHandle:function(e){return!i.Ii&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,t,r,a){var i=new Blob([e],{type:It(t)});i.size!==e.length&&(i=new Blob([new Uint8Array(e).buffer],{type:It(t)}));var n=URL.createObjectURL(i),_=new Image;_.onload=()=>{_.complete||C(`Image ${t} could not be decoded`);var a=document.createElement("canvas");a.width=_.width,a.height=_.height,a.getContext("2d").drawImage(_,0,0),URL.revokeObjectURL(n),r?.(e)},_.onerror=()=>{f(`Image ${n} could not be decoded`),a?.()},_.src=n}}),ue.push({canHandle:function(e){return!i.Hi&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,t,r){function a(){i||(i=!0,r?.(e))}var i=!1,n=URL.createObjectURL(new Blob([e],{type:It(t)})),_=new Audio;_.addEventListener("canplaythrough",(()=>a()),!1),_.onerror=function(){if(!i){f(`warning: browser could not fully decode audio ${t}, trying slower base64 approach`);for(var r="",n=0,o=0,s=0;s<e.length;s++)for(n=n<<8|e[s],o+=8;6<=o;){var c=n>>o-6&63;o-=6,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[c]}2==o?(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&n)<<4],r+="=="):4==o&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&n)<<2],r+="="),_.src="data:audio/x-"+t.substr(-3)+";base64,"+r,a()}},_.src=n,ct((()=>{a()}),1e4)}});var t=i.canvas;t&&(t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock||t.msRequestPointerLock||(()=>{}),t.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),t.exitPointerLock=t.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",e,!1),document.addEventListener("mozpointerlockchange",e,!1),document.addEventListener("webkitpointerlockchange",e,!1),document.addEventListener("mspointerlockchange",e,!1),i.elementPointerLock&&t.addEventListener("click",(e=>{!At&&i.canvas.requestPointerLock&&(i.canvas.requestPointerLock(),e.preventDefault())}),!1))}}()),s):null},Bt=new class{constructor(){this.uh=[void 0],this.hh=[]}get(e){return this.uh[e]}has(e){return void 0!==this.uh[e]}Ah(e){var t=this.hh.pop()||this.uh.length;return this.uh[t]=e,t}},F(),function(e,t){try{var r=indexedDB.open("emscripten_filesystem",1)}catch(e){return void t()}r.onupgradeneeded=e=>{(e=e.target.result).objectStoreNames.contains("FILES")&&e.deleteObjectStore("FILES"),e.createObjectStore("FILES")},r.onsuccess=e=>(e=>{Ut=e,O()})(e.target.result),r.onerror=t}(0,(()=>{Ut=!1,O()}));var nr,_r={q:e=>{if(e=new G(e),0==p[e.eh+12>>0]&&(p[e.eh+12>>0]=1,Z--),p[e.eh+13>>0]=0,V.push(e),br(e.ph),gr(v[e.eh+4>>2]))e=v[e.ph>>2];else{var t=v[e.eh+16>>2];e=0!==t?t:e.ph}return e},Lb:()=>{if(!V.length)return 0;var e=V[V.length-1];return br(e.ph),e.ph},y:()=>{lr(0,0);var e=V.pop();mr(e.ph),K=0},a:()=>W([]),i:e=>W([e]),G:(e,t)=>W([e,t]),Fa:H,Kb:e=>{e&&(e=new G(e),V.push(e),p[e.eh+13>>0]=1,H())},n:(e,t,r)=>{var a=new G(e);throw v[a.eh+16>>2]=0,v[a.eh+4>>2]=t,v[a.eh+8>>2]=r,Z++,K=e},Mb:()=>Z,d:e=>{throw K||=e,K},Q:function(e,t,r){et=r;try{var a=Me(e);switch(t){case 0:var i=tt();if(0>i)break;for(;be[i];)i++;return Fe(a,i).oh;case 1:case 2:case 13:case 14:return 0;case 3:return a.flags;case 4:return i=tt(),a.flags|=i,0;case 12:return i=tt(),b[i+0>>1]=2,0}return-28}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.gh}},Sb:function(e,t,r){try{var a=Me(e);if(!a.qh){var i=Ae(a.path,{Bh:!0}).node;if(!i.Zg.Eh)throw new Ee(54);var n=i.Zg.Eh(i);a.qh=n}e=0;for(var _=We(a,0,1),o=Math.floor(_/280);o<a.qh.length&&e+280<=r;){var s=a.qh[o];if("."===s)var c=a.node.id,h=4;else if(".."===s)c=Ae(a.path,{parent:!0}).node.id,h=4;else{var l=Se(a.node,s);c=l.id,h=8192==(61440&l.mode)?2:xe(l.mode)?4:40960==(61440&l.mode)?10:8}I=[c>>>0,(L=c,1<=+Math.abs(L)?0<L?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],g[t+e>>2]=I[0],g[t+e+4>>2]=I[1],I=[280*(o+1)>>>0,(L=280*(o+1),1<=+Math.abs(L)?0<L?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],g[t+e+8>>2]=I[0],g[t+e+12>>2]=I[1],b[t+e+16>>1]=280,p[t+e+18>>0]=h,ie(s,m,t+e+19,256),e+=280,o+=1}return We(a,280*o,0),e}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.gh}},Zb:function(e,t,r){et=r;try{var a=Me(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return a.bh?0:-59;case 21505:if(!a.bh)return-59;if(a.bh.nh.gi){e=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var i=tt();g[i>>2]=25856,g[i+4>>2]=5,g[i+8>>2]=191,g[i+12>>2]=35387;for(var n=0;32>n;n++)p[i+n+17>>0]=e[n]||0}return 0;case 21506:case 21507:case 21508:if(!a.bh)return-59;if(a.bh.nh.hi)for(i=tt(),e=[],n=0;32>n;n++)e.push(p[i+n+17>>0]);return 0;case 21519:return a.bh?(i=tt(),g[i>>2]=0):-59;case 21520:return a.bh?-28:-59;case 21531:if(i=tt(),!a.ah.fi)throw new Ee(59);return a.ah.fi(a,t,i);case 21523:return a.bh?(a.bh.nh.ii&&(n=[24,80],i=tt(),b[i>>1]=n[0],b[i+2>>1]=n[1]),0):-59;default:return-28}}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.gh}},Ja:function(e,t,r,a){et=a;try{return Ge(t=Qe(e,t=t?te(m,t):""),r,a?tt():0).oh}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.gh}},Qb:function(e,t,r,a){try{if(t=Qe(e,t=t?te(m,t):""),0>=a)return-28;var i=Ke(t),n=Math.min(a,ae(i)),_=p[r+n];return ie(i,m,r,a+1),p[r+n]=_,n}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.gh}},Vb:function(e,t){try{var r=Ae(e=e?te(m,e):"",{Bh:!0}).node;if(!r)throw new Ee(44);if(!r.Zg.ih)throw new Ee(63);var a=r.Zg.ih(r);g[t>>2]=a.ai,g[t+4>>2]=a.mode,v[t+8>>2]=a.mi,g[t+12>>2]=a.uid,g[t+16>>2]=a.ci,g[t+20>>2]=a.yh,I=[a.size>>>0,(L=a.size,1<=+Math.abs(L)?0<L?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],g[t+24>>2]=I[0],g[t+28>>2]=I[1],g[t+32>>2]=4096,g[t+36>>2]=a.Zh;var i=a.Xh.getTime(),n=a.li.getTime(),_=a.$h.getTime();return I=[Math.floor(i/1e3)>>>0,(L=Math.floor(i/1e3),1<=+Math.abs(L)?0<L?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],g[t+40>>2]=I[0],g[t+44>>2]=I[1],v[t+48>>2]=i%1e3*1e3,I=[Math.floor(n/1e3)>>>0,(L=Math.floor(n/1e3),1<=+Math.abs(L)?0<L?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],g[t+56>>2]=I[0],g[t+60>>2]=I[1],v[t+64>>2]=n%1e3*1e3,I=[Math.floor(_/1e3)>>>0,(L=Math.floor(_/1e3),1<=+Math.abs(L)?0<L?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],g[t+72>>2]=I[0],g[t+76>>2]=I[1],v[t+80>>2]=_%1e3*1e3,I=[a.Sh>>>0,(L=a.Sh,1<=+Math.abs(L)?0<L?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],g[t+88>>2]=I[0],g[t+92>>2]=I[1],0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.gh}},Rb:function(e,t){try{return Ze(e=e?te(m,e):"",t=t?te(m,t):""),0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.gh}},Ob:function(e,t,r){try{if(t=Qe(e,t=t?te(m,t):""),0===r){var a=t,i=Ae(a,{parent:!0}).node;if(!i)throw new Ee(44);var n=$(a),_=Se(i,n),o=Pe(i,n,!1);if(o)throw new Ee(o);if(!i.Zg.Jh)throw new Ee(63);if(_.vh)throw new Ee(10);i.Zg.Jh(i,n),Ne(_)}else if(512===r){a=Ae(i=t,{parent:!0}).node;var s=$(i),c=Se(a,s),h=Pe(a,s,!0);if(h)throw new Ee(h);if(!a.Zg.Fh)throw new Ee(63);if(c.vh)throw new Ee(10);a.Zg.Fh(a,s),Ne(c)}else C("Invalid flags passed to unlinkat");return 0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.gh}},_b:function(e){if(Bt.has(e)){var t=Bt.get(e),r=Bt;r.uh[e]=void 0,r.hh.push(e),0<t.readyState&&4>t.readyState&&t.abort()}},Xb:()=>1,kb:function(e,t,r){e=new Date(1e3*(t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN)),g[r>>2]=e.getUTCSeconds(),g[r+4>>2]=e.getUTCMinutes(),g[r+8>>2]=e.getUTCHours(),g[r+12>>2]=e.getUTCDate(),g[r+16>>2]=e.getUTCMonth(),g[r+20>>2]=e.getUTCFullYear()-1900,g[r+24>>2]=e.getUTCDay(),g[r+28>>2]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},lb:function(e,t,r){e=new Date(1e3*(t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN)),g[r>>2]=e.getSeconds(),g[r+4>>2]=e.getMinutes(),g[r+8>>2]=e.getHours(),g[r+12>>2]=e.getDate(),g[r+16>>2]=e.getMonth(),g[r+20>>2]=e.getFullYear()-1900,g[r+24>>2]=e.getDay(),g[r+28>>2]=(at(e.getFullYear())?it:nt)[e.getMonth()]+e.getDate()-1|0,g[r+36>>2]=-60*e.getTimezoneOffset(),t=new Date(e.getFullYear(),6,1).getTimezoneOffset();var a=new Date(e.getFullYear(),0,1).getTimezoneOffset();g[r+32>>2]=0|(t!=a&&e.getTimezoneOffset()==Math.min(a,t))},Pb:(e,t,r)=>{function a(e){return(e=e.toTimeString().match(/\(([A-Za-z ]+)\)$/))?e[1]:"GMT"}var i=(new Date).getFullYear(),n=new Date(i,0,1),_=new Date(i,6,1);i=n.getTimezoneOffset();var o=_.getTimezoneOffset();v[e>>2]=60*Math.max(i,o),g[t>>2]=Number(i!=o),e=a(n),t=a(_),e=_t(e),t=_t(t),o<i?(v[r>>2]=e,v[r+4>>2]=t):(v[r>>2]=t,v[r+4>>2]=e)},F:()=>{C("")},fb:function(){self.postMessage({t:"gfx"})},hb:function(){var e=new URL(location.origin).hostname;if(0===e.length&&(e=new URL(location.href.replace("blob:","")).hostname),/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e))0===e.indexOf("10.")&&(e="10.*"),0===e.indexOf("192.168.")&&(e="192.168.*"),0===e.indexOf("172.")&&(e="172.*"),0===e.indexOf("127.")&&(e="127.*");else{var t=new RegExp("("+String.fromCharCode(92)+".ngrok"+String.fromCharCode(92)+".io)$","i");t.test(e)&&(e="*.ngrok.io"),(t=new RegExp("("+String.fromCharCode(92)+".ngrok-free"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.ngrok.io"),(t=new RegExp("("+String.fromCharCode(92)+".arweb"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.arweb.app")}t=ae(e)+1;var r=cr(t);return ie(e,m,r,t+1),r},gb:function(){self.postMessage({t:"licerr"})},Ea:(e,t,r)=>{function a(){Dt(e)(t)}0<=r?ct(a,r):function(e){Lt((()=>{st(e)}))}(a)},na:()=>Date.now(),Ib:()=>2147483648,Wb:rt,ac:()=>!1,Yb:(e,t,r)=>m.copyWithin(e,t,t+r),Nb:e=>{var t=m.length;if(2147483648<(e>>>=0))return!1;for(var r=1;4>=r;r*=2){var a=t*(1+.2/r);a=Math.min(a,e+100663296);var i=Math;a=Math.max(e,a);e:{i=(i.min.call(i,2147483648,a+(65536-a%65536)%65536)-u.buffer.byteLength+65535)/65536;try{u.grow(i),k();var n=1;break e}catch(e){}n=void 0}if(n)return!0}return!1},$b:function(e,t,r,a,i){function n(e){f?e():st(e)}var _=e+112,o=v[_+36>>2],s=v[_+40>>2],c=v[_+44>>2],h=v[_+48>>2],l=v[_+52>>2],f=!!(64&l),u=e=>{n((()=>{o?Dt(o)(e):t?.(e)}))},d=e=>{n((()=>{c?Dt(c)(e):a?.(e)}))},p=e=>{n((()=>{s?Dt(s)(e):r?.(e)}))},b=e=>{n((()=>{h?Dt(h)(e):i?.(e)}))},g=e=>{Vt(e,u,p,d,b)},E=(e,r)=>{Kt(e,r.response,(e=>{n((()=>{o?Dt(o)(e):t?.(e)}))}),(e=>{n((()=>{o?Dt(o)(e):t?.(e)}))}))},y=Je(_+0),A=!!(16&l),k=!!(4&l);if(l=!!(32&l),"EM_IDB_STORE"===y)g=v[_+84>>2],Kt(e,m.slice(g,g+v[_+88>>2]),u,p);else if("EM_IDB_DELETE"===y)!function(e,t,r){var a=Ut;if(a){var i=v[e+112+64>>2];i||=v[e+8>>2],i=i?te(m,i):"";try{var n=a.transaction(["FILES"],"readwrite").objectStore("FILES").delete(i);n.onsuccess=r=>{r=r.target.result,v[e+12>>2]=0,Zt(e+16,0),Zt(e+24,0),Zt(e+32,0),w[e+40>>1]=4,w[e+42>>1]=200,ie("OK",m,e+44,64),t(e,0,r)},n.onerror=t=>{w[e+40>>1]=4,w[e+42>>1]=404,ie("Not Found",m,e+44,64),r(e,0,t)}}catch(t){r(e,0,t)}}else r(e,0,"IndexedDB not available!")}(e,u,p);else if(A){if(l)return 0;Vt(e,k?E:u,p,d,b)}else!function(e,t,r){var a=Ut;if(a){var i=v[e+112+64>>2];i||=v[e+8>>2],i=i?te(m,i):"";try{var n=a.transaction(["FILES"],"readonly").objectStore("FILES").get(i);n.onsuccess=a=>{if(a.target.result){var i=(a=a.target.result).byteLength||a.length,n=cr(i);m.set(new Uint8Array(a),n),v[e+12>>2]=n,Zt(e+16,i),Zt(e+24,0),Zt(e+32,i),w[e+40>>1]=4,w[e+42>>1]=200,ie("OK",m,e+44,64),t(e,0,a)}else w[e+40>>1]=4,w[e+42>>1]=404,ie("Not Found",m,e+44,64),r(e,0,"no data")},n.onerror=t=>{w[e+40>>1]=4,w[e+42>>1]=404,ie("Not Found",m,e+44,64),r(e,0,t)}}catch(t){r(e,0,t)}}else r(e,0,"IndexedDB not available!")}(e,u,l?p:k?e=>{Vt(e,E,p,d,b)}:g);return e},Tb:(e,t)=>{var r=0;return Xt().forEach(((a,i)=>{var n=t+r;for(i=v[e+4*i>>2]=n,n=0;n<a.length;++n)p[i++>>0]=a.charCodeAt(n);p[i>>0]=0,r+=a.length+1})),0},Ub:(e,t)=>{var r=Xt();v[e>>2]=r.length;var a=0;return r.forEach((e=>a+=e.length+1)),v[t>>2]=a,0},cc:e=>{d=e,ot(e)},Z:function(e){try{var t=Me(e);if(null===t.oh)throw new Ee(8);t.qh&&(t.qh=null);try{t.ah.close&&t.ah.close(t)}catch(e){throw e}finally{be[t.oh]=null}return t.oh=null,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.gh}},Ka:function(e,t,r,a){try{e:{var i=Me(e);e=t;for(var n,_=t=0;_<r;_++){var o=v[e>>2],s=v[e+4>>2];e+=8;var c=i,h=n,l=p;if(0>s||0>h)throw new Ee(28);if(null===c.oh)throw new Ee(8);if(1==(2097155&c.flags))throw new Ee(8);if(xe(c.node.mode))throw new Ee(31);if(!c.ah.read)throw new Ee(28);var f=void 0!==h;if(f){if(!c.seekable)throw new Ee(70)}else h=c.position;var u=c.ah.read(c,l,o,s,h);f||(c.position+=u);var d=u;if(0>d){var m=-1;break e}if(t+=d,d<s)break;void 0!==n&&(n+=d)}m=t}return v[a>>2]=m,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.gh}},mb:function(e,t,r,a,i){t=r+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*r:NaN;try{if(isNaN(t))return 61;var n=Me(e);return We(n,t,a),I=[n.position>>>0,(L=n.position,1<=+Math.abs(L)?0<L?+Math.floor(L/4294967296)>>>0:~~+Math.ceil((L-+(~~L>>>0))/4294967296)>>>0:0)],g[i>>2]=I[0],g[i+4>>2]=I[1],n.qh&&0===t&&0===a&&(n.qh=null),0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.gh}},oa:function(e,t,r,a){try{e:{var i=Me(e);e=t;for(var n,_=t=0;_<r;_++){var o=v[e>>2],s=v[e+4>>2];e+=8;var c=i,h=o,l=s,f=n,u=p;if(0>l||0>f)throw new Ee(28);if(null===c.oh)throw new Ee(8);if(0==(2097155&c.flags))throw new Ee(8);if(xe(c.node.mode))throw new Ee(31);if(!c.ah.write)throw new Ee(28);c.seekable&&1024&c.flags&&We(c,0,2);var d=void 0!==f;if(d){if(!c.seekable)throw new Ee(70)}else f=c.position;var m=c.ah.write(c,u,h,l,f,void 0);d||(c.position+=m);var b=m;if(0>b){var w=-1;break e}t+=b,void 0!==n&&(n+=b)}w=t}return v[a>>2]=w,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.gh}},Ha:(e,t)=>{nr.bindTexture(e,$t[t])},Ia:(e,t)=>{for(var r=0;r<e;r++){var a=nr.createTexture(),i=a&&Qt($t);a?(a.name=i,$t[i]=a):Wt||=1282,g[t+4*r>>2]=i}},la:(e,t,r,a,i,n,_,o,s)=>{var c=nr,h=c.texImage2D;if(s){var l=o-5120;l=1==l?m:4==l?g:6==l?E:5==l||28922==l?v:w;var f=31-Math.clz32(l.BYTES_PER_ELEMENT);s=l.subarray(s>>f,s+i*(a*({5:3,6:4,8:2,29502:3,29504:4}[_-6402]||1)*(1<<f)+4-1&-4)>>f)}else s=null;h.call(c,e,t,r,a,i,n,_,o,s)},ma:function(e,t,r){nr.texParameteri(e,t,r)},w:function(e){var t=ur();try{return Dt(e)()}catch(e){if(dr(t),e!==e+0)throw e;lr(1,0)}},fa:function(e,t){var r=ur();try{return Dt(e)(t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},bc:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},Aa:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},P:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Ya:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},da:function(e,t,r,a,i,n,_,o){var s=ur();try{return Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},yb:function(e,t,r,a,i){var n=ur();try{return Ir(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},nb:function(e,t,r,a,i){var n=ur();try{return jr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Y:function(e,t){var r=ur();try{return Dt(e)(t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},$:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},Ca:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Sa:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},s:function(e){var t=ur();try{return Dt(e)()}catch(e){if(dr(t),e!==e+0)throw e;lr(1,0)}},La:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},ta:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},b:function(e,t){var r=ur();try{return Dt(e)(t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},r:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},ea:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},ga:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Ra:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Pa:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},bb:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},wa:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},ua:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},f:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},T:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Za:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},ec:function(e,t,r,a,i,n,_,o){var s=ur();try{return Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},sa:function(e,t,r,a,i,n,_,o,s,c,h,l,f){var u=ur();try{return Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f)}catch(e){if(dr(u),e!==e+0)throw e;lr(1,0)}},xa:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},c:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Oa:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},l:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Na:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},u:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},B:function(e,t,r,a,i,n,_){var o=ur();try{return Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},x:function(e,t,r,a,i,n,_,o){var s=ur();try{return Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},L:function(e,t,r,a,i,n,_,o,s){var c=ur();try{return Dt(e)(t,r,a,i,n,_,o,s)}catch(e){if(dr(c),e!==e+0)throw e;lr(1,0)}},_:function(e,t,r,a,i,n,_,o,s,c){var h=ur();try{return Dt(e)(t,r,a,i,n,_,o,s,c)}catch(e){if(dr(h),e!==e+0)throw e;lr(1,0)}},K:function(e,t,r,a,i,n,_,o,s,c,h){var l=ur();try{return Dt(e)(t,r,a,i,n,_,o,s,c,h)}catch(e){if(dr(l),e!==e+0)throw e;lr(1,0)}},aa:function(e,t,r,a,i,n,_,o,s,c,h,l){var f=ur();try{return Dt(e)(t,r,a,i,n,_,o,s,c,h,l)}catch(e){if(dr(f),e!==e+0)throw e;lr(1,0)}},jb:function(e,t,r,a,i,n,_){var o=ur();try{return Dr(e,t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},pb:function(e,t,r,a,i,n){var _=ur();try{return Br(e,t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},wb:function(e,t,r,a,i,n,_,o,s){var c=ur();try{return zr(e,t,r,a,i,n,_,o,s)}catch(e){if(dr(c),e!==e+0)throw e;lr(1,0)}},Ab:function(e,t,r,a,i,n,_,o,s,c,h){var l=ur();try{return Tr(e,t,r,a,i,n,_,o,s,c,h)}catch(e){if(dr(l),e!==e+0)throw e;lr(1,0)}},Fb:function(e,t,r,a){var i=ur();try{return Ar(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Cb:function(e,t,r,a,i){var n=ur();try{return Rr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},xb:function(e,t,r,a,i,n,_,o,s,c,h,l,f,u,d){var p=ur();try{return xr(e,t,r,a,i,n,_,o,s,c,h,l,f,u,d)}catch(e){if(dr(p),e!==e+0)throw e;lr(1,0)}},qb:function(e,t,r,a){var i=ur();try{return Cr(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Gb:function(e){var t=ur();try{return vr(e)}catch(e){if(dr(t),e!==e+0)throw e;lr(1,0)}},Bb:function(e,t){var r=ur();try{return Sr(e,t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},ub:function(e,t,r){var a=ur();try{return Mr(e,t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},vb:function(e,t,r,a){var i=ur();try{return Pr(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},ib:function(e,t,r,a,i){var n=ur();try{return Vr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},ob:function(e,t,r){var a=ur();try{return Ur(e,t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},m:function(e){var t=ur();try{Dt(e)()}catch(e){if(dr(t),e!==e+0)throw e;lr(1,0)}},ab:function(e,t,r){var a=ur();try{Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},cb:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},g:function(e,t){var r=ur();try{Dt(e)(t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},Qa:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},ca:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},ra:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Ga:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},dc:function(e,t,r,a){var i=ur();try{Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},S:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Ma:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Ua:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},e:function(e,t,r){var a=ur();try{Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},t:function(e,t,r,a){var i=ur();try{Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},R:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},M:function(e,t,r,a){var i=ur();try{Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},X:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},va:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Va:function(e,t,r,a,i,n,_,o,s){var c=ur();try{Dt(e)(t,r,a,i,n,_,o,s)}catch(e){if(dr(c),e!==e+0)throw e;lr(1,0)}},N:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},h:function(e,t,r,a){var i=ur();try{Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},ha:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},qa:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},_a:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Xa:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},Da:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},V:function(e,t,r,a,i,n,_,o,s,c,h,l){var f=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l)}catch(e){if(dr(f),e!==e+0)throw e;lr(1,0)}},db:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},ja:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},k:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},ya:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},eb:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Ta:function(e,t,r,a,i,n,_,o,s,c,h){var l=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h)}catch(e){if(dr(l),e!==e+0)throw e;lr(1,0)}},ka:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},Wa:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},j:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},U:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},$a:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},Ba:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},o:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},z:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},ia:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},p:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},v:function(e,t,r,a,i,n,_,o,s,c,h,l,f){var u=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f)}catch(e){if(dr(u),e!==e+0)throw e;lr(1,0)}},O:function(e,t,r,a,i,n,_,o,s,c){var h=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c)}catch(e){if(dr(h),e!==e+0)throw e;lr(1,0)}},W:function(e,t,r,a,i,n,_,o,s,c,h,l,f){var u=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f)}catch(e){if(dr(u),e!==e+0)throw e;lr(1,0)}},C:function(e,t,r,a,i,n,_,o,s){var c=ur();try{Dt(e)(t,r,a,i,n,_,o,s)}catch(e){if(dr(c),e!==e+0)throw e;lr(1,0)}},E:function(e,t,r,a,i,n,_,o,s,c){var h=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c)}catch(e){if(dr(h),e!==e+0)throw e;lr(1,0)}},H:function(e,t,r,a,i,n,_,o,s,c,h){var l=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h)}catch(e){if(dr(l),e!==e+0)throw e;lr(1,0)}},za:function(e,t,r,a,i,n,_,o,s,c,h,l){var f=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l)}catch(e){if(dr(f),e!==e+0)throw e;lr(1,0)}},I:function(e,t,r,a,i,n,_,o,s,c,h,l,f,u){var d=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f,u)}catch(e){if(dr(d),e!==e+0)throw e;lr(1,0)}},D:function(e,t,r,a,i,n,_,o,s,c,h,l){var f=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l)}catch(e){if(dr(f),e!==e+0)throw e;lr(1,0)}},J:function(e,t,r,a,i,n,_,o,s,c,h,l,f){var u=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f)}catch(e){if(dr(u),e!==e+0)throw e;lr(1,0)}},pa:function(e,t,r,a,i,n,_,o,s,c,h,l,f,u,d){var p=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f,u,d)}catch(e){if(dr(p),e!==e+0)throw e;lr(1,0)}},ba:function(e,t,r,a,i,n,_,o,s,c,h,l,f,u,d,p){var m=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f,u,d,p)}catch(e){if(dr(m),e!==e+0)throw e;lr(1,0)}},Hb:function(e,t,r,a,i){var n=ur();try{Er(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},zb:function(e,t,r,a,i,n){var _=ur();try{Lr(e,t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Db:function(e,t,r,a,i,n,_){var o=ur();try{yr(e,t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},Eb:function(e,t,r,a){var i=ur();try{kr(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},tb:function(e,t,r,a,i){var n=ur();try{Nr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},rb:function(e,t,r,a){var i=ur();try{Or(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},sb:function(e,t,r,a,i){var n=ur();try{Fr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},A:e=>e,Jb:(e,t,r,a)=>((e,t,r,a)=>{function i(e,t,r){for(e="number"==typeof e?e.toString():e||"";e.length<t;)e=r[0]+e;return e}function n(e,t){return i(e,t,"0")}function _(e,t){function r(e){return 0>e?-1:0<e?1:0}var a;return 0===(a=r(e.getFullYear()-t.getFullYear()))&&0===(a=r(e.getMonth()-t.getMonth()))&&(a=r(e.getDate()-t.getDate())),a}function o(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function s(e){var t=e.sh;for(e=new Date(new Date(e.th+1900,0,1).getTime());0<t;){var r=e.getMonth(),a=(at(e.getFullYear())?rr:ar)[r];if(!(t>a-e.getDate())){e.setDate(e.getDate()+t);break}t-=a-e.getDate()+1,e.setDate(1),11>r?e.setMonth(r+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return r=new Date(e.getFullYear()+1,0,4),t=o(new Date(e.getFullYear(),0,4)),r=o(r),0>=_(t,e)?0>=_(r,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var c=v[a+40>>2];for(var h in a={pi:g[a>>2],oi:g[a+4>>2],Hh:g[a+8>>2],Oh:g[a+12>>2],Ih:g[a+16>>2],th:g[a+20>>2],lh:g[a+24>>2],sh:g[a+28>>2],Li:g[a+32>>2],ni:g[a+36>>2],ri:c&&c?te(m,c):""},r=r?te(m,r):"",c={"%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"})r=r.replace(new RegExp(h,"g"),c[h]);var l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),f="January February March April May June July August September October November December".split(" ");for(h in c={"%a":e=>l[e.lh].substring(0,3),"%A":e=>l[e.lh],"%b":e=>f[e.Ih].substring(0,3),"%B":e=>f[e.Ih],"%C":e=>n((e.th+1900)/100|0,2),"%d":e=>n(e.Oh,2),"%e":e=>i(e.Oh,2," "),"%g":e=>s(e).toString().substring(2),"%G":s,"%H":e=>n(e.Hh,2),"%I":e=>(0==(e=e.Hh)?e=12:12<e&&(e-=12),n(e,2)),"%j":e=>{for(var t=0,r=0;r<=e.Ih-1;t+=(at(e.th+1900)?rr:ar)[r++]);return n(e.Oh+t,3)},"%m":e=>n(e.Ih+1,2),"%M":e=>n(e.oi,2),"%n":()=>"\n","%p":e=>0<=e.Hh&&12>e.Hh?"AM":"PM","%S":e=>n(e.pi,2),"%t":()=>"\t","%u":e=>e.lh||7,"%U":e=>n(Math.floor((e.sh+7-e.lh)/7),2),"%V":e=>{var t=Math.floor((e.sh+7-(e.lh+6)%7)/7);if(2>=(e.lh+371-e.sh-2)%7&&t++,t)53==t&&(4==(r=(e.lh+371-e.sh)%7)||3==r&&at(e.th)||(t=1));else{t=52;var r=(e.lh+7-e.sh-1)%7;(4==r||5==r&&at(e.th%400-1))&&t++}return n(t,2)},"%w":e=>e.lh,"%W":e=>n(Math.floor((e.sh+7-(e.lh+6)%7)/7),2),"%y":e=>(e.th+1900).toString().substring(2),"%Y":e=>e.th+1900,"%z":e=>{var t=0<=(e=e.ni);return e=Math.abs(e)/60,(t?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":e=>e.ri,"%%":()=>"%"},r=r.replace(/%%/g,"\0\0"),c)r.includes(h)&&(r=r.replace(new RegExp(h,"g"),c[h](a)));return(h=ne(r=r.replace(/\0\0/g,"%"),!1)).length>t?0:(p.set(h,e),h.length-1)})(e,t,r,a)},or=function(){function e(e){return or=e.exports,u=or.fc,k(),Ct=or.kc,N.unshift(or.gc),O(),or}var t={a:_r};if(F(),i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(e){f(`Module.instantiateWasm callback failed with error: ${e}`),a(e)}return t=function(e){if(x==x&&h)var t=new Uint8Array(h);else{if(!n)throw'sync fetching of the wasm failed: you can preload it to Module["wasmBinary"] manually, or emcc.py will do that for you when generating HTML (but not JS)';t=n(x)}return t=new WebAssembly.Module(t),[new WebAssembly.Instance(t,e),t]}(t),e(t[0])}();i._zappar_has_initialized=or.hc,i._zappar_invert=or.ic,i._zappar_loaded=or.jc,i._zappar_pipeline_create=or.lc,i._zappar_pipeline_destroy=or.mc,i._zappar_pipeline_camera_frame_submit=or.nc,i._zappar_pipeline_camera_frame_submit_raw_pointer=or.oc,i._zappar_pipeline_frame_update=or.pc,i._zappar_pipeline_camera_frame_user_data=or.qc,i._zappar_pipeline_camera_model=or.rc,i._zappar_pipeline_frame_number=or.sc,i._zappar_pipeline_camera_frame_data_raw_size=or.tc,i._zappar_pipeline_camera_frame_data_raw_width=or.uc,i._zappar_pipeline_camera_frame_data_raw_height=or.vc,i._zappar_pipeline_camera_frame_data_raw=or.wc,i._zappar_pipeline_motion_accelerometer_submit=or.xc,i._zappar_pipeline_motion_accelerometer_with_gravity_submit_int=or.yc,i._zappar_pipeline_motion_accelerometer_without_gravity_submit_int=or.zc,i._zappar_pipeline_motion_rotation_rate_submit_int=or.Ac,i._zappar_pipeline_motion_attitude_submit_int=or.Bc,i._zappar_pipeline_motion_rotation_rate_submit=or.Cc,i._zappar_pipeline_motion_attitude_submit=or.Dc,i._zappar_pipeline_motion_attitude_matrix_submit=or.Ec,i._zappar_pipeline_camera_frame_user_facing=or.Fc,i._zappar_pipeline_camera_frame_texture_matrix=or.Gc,i._zappar_pipeline_camera_pose_with_attitude=or.Hc,i._zappar_pipeline_camera_pose_with_origin=or.Ic,i._zappar_pipeline_camera_frame_camera_attitude=or.Jc,i._zappar_pipeline_camera_frame_device_attitude=or.Kc,i._zappar_pipeline_camera_frame_texture_gl=or.Lc,i._zappar_pipeline_camera_frame_upload_gl=or.Mc,i._zappar_pipeline_sequence_record_start=or.Nc,i._zappar_pipeline_sequence_record_stop=or.Oc,i._zappar_pipeline_sequence_record_clear=or.Pc,i._zappar_pipeline_sequence_record_device_attitude_matrices_set=or.Qc,i._zappar_pipeline_sequence_record_data_size=or.Rc,i._zappar_pipeline_sequence_record_data=or.Sc,i._zappar_pipeline_process_gl=or.Tc,i._zappar_pipeline_camera_pose_default=or.Uc,i._zappar_instant_world_tracker_create=or.Vc,i._zappar_instant_world_tracker_destroy=or.Wc,i._zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw=or.Xc,i._zappar_instant_world_tracker_anchor_pose_raw=or.Yc,i._zappar_instant_world_tracker_enabled_set=or.Zc,i._zappar_instant_world_tracker_enabled=or._c,i._zappar_image_tracker_create=or.$c,i._zappar_image_tracker_destroy=or.ad,i._zappar_image_tracker_target_load_from_memory=or.bd,i.__Z42zappar_image_tracker_target_load_from_fileP23zappar_image_tracker_tiPKc=or.cd;var sr=i._free=or.dd;i._zappar_image_tracker_anchor_count=or.ed,i._zappar_image_tracker_anchor_id=or.fd,i._zappar_image_tracker_anchor_pose_raw=or.gd,i._zappar_image_tracker_enabled_set=or.hd,i._zappar_image_tracker_enabled=or.id,i._zappar_image_tracker_target_loaded_version=or.jd,i.__Z33zappar_image_tracker_target_countP23zappar_image_tracker_ti=or.kd,i.__Z46zappar_image_tracker_target_preview_compressedP23zappar_image_tracker_tii=or.ld,i.__Z51zappar_image_tracker_target_preview_compressed_sizeP23zappar_image_tracker_tii=or.md,i.__Z55zappar_image_tracker_target_preview_compressed_mimetypeP23zappar_image_tracker_tii=or.nd,i.__Z40zappar_image_tracker_target_preview_rgbaP23zappar_image_tracker_tii=or.od,i.__Z45zappar_image_tracker_target_preview_rgba_sizeP23zappar_image_tracker_tii=or.pd,i.__Z46zappar_image_tracker_target_preview_rgba_widthP23zappar_image_tracker_tii=or.qd,i.__Z47zappar_image_tracker_target_preview_rgba_heightP23zappar_image_tracker_tii=or.rd,i.__Z38zappar_image_tracker_target_radius_topP23zappar_image_tracker_tii=or.sd,i.__Z41zappar_image_tracker_target_radius_bottomP23zappar_image_tracker_tii=or.td,i.__Z39zappar_image_tracker_target_side_lengthP23zappar_image_tracker_tii=or.ud,i.__Z49zappar_image_tracker_target_physical_scale_factorP23zappar_image_tracker_tii=or.vd,i.__Z49zappar_image_tracker_target_preview_mesh_verticesP23zappar_image_tracker_tii=or.wd,i.__Z48zappar_image_tracker_target_preview_mesh_normalsP23zappar_image_tracker_tii=or.xd,i.__Z44zappar_image_tracker_target_preview_mesh_uvsP23zappar_image_tracker_tii=or.yd,i.__Z48zappar_image_tracker_target_preview_mesh_indicesP23zappar_image_tracker_tii=or.zd,i.__Z54zappar_image_tracker_target_preview_mesh_vertices_sizeP23zappar_image_tracker_tii=or.Ad,i.__Z53zappar_image_tracker_target_preview_mesh_normals_sizeP23zappar_image_tracker_tii=or.Bd,i.__Z49zappar_image_tracker_target_preview_mesh_uvs_sizeP23zappar_image_tracker_tii=or.Cd,i.__Z53zappar_image_tracker_target_preview_mesh_indices_sizeP23zappar_image_tracker_tii=or.Dd,i.__Z32zappar_image_tracker_target_typeP23zappar_image_tracker_tii=or.Ed,i._zappar_face_tracker_create=or.Fd,i._zappar_face_tracker_destroy=or.Gd,i._zappar_face_tracker_model_load_from_memory=or.Hd,i._zappar_face_tracker_anchor_count=or.Id,i._zappar_face_tracker_anchor_id=or.Jd,i._zappar_face_tracker_anchor_pose_raw=or.Kd,i._zappar_face_tracker_anchor_identity_coefficients=or.Ld,i._zappar_face_tracker_anchor_expression_coefficients=or.Md,i._zappar_face_tracker_enabled_set=or.Nd,i._zappar_face_tracker_enabled=or.Od,i._zappar_face_tracker_max_faces_set=or.Pd,i._zappar_face_tracker_max_faces=or.Qd,i._zappar_face_tracker_model_loaded_version=or.Rd,i._zappar_face_landmark_create=or.Sd,i._zappar_face_landmark_destroy=or.Td,i.__Z27zappar_face_landmark_updateP23zappar_face_landmark_tiPKfS2_i=or.Ud,i._zappar_face_landmark_anchor_pose=or.Vd,i._zappar_barcode_finder_create=or.Wd,i._zappar_barcode_finder_destroy=or.Xd,i._zappar_barcode_finder_found_number=or.Yd,i._zappar_barcode_finder_found_text=or.Zd,i._zappar_barcode_finder_enabled_set=or._d,i._zappar_barcode_finder_enabled=or.$d,i._zappar_barcode_finder_found_format=or.ae,i._zappar_barcode_finder_formats=or.be,i._zappar_barcode_finder_formats_set=or.ce;var cr=i._malloc=or.de;i._zappar_face_mesh_create=or.ee,i._zappar_face_mesh_destroy=or.fe,i.__Z33zappar_face_mesh_load_from_memoryP19zappar_face_mesh_tiPKciiiii=or.ge,i.__Z29zappar_face_mesh_indices_sizeP19zappar_face_mesh_ti=or.he,i.__Z25zappar_face_mesh_uvs_sizeP19zappar_face_mesh_ti=or.ie,i.__Z30zappar_face_mesh_vertices_sizeP19zappar_face_mesh_ti=or.je,i.__Z31zappar_face_mesh_loaded_versionP19zappar_face_mesh_ti=or.ke,i.__Z25zappar_face_mesh_verticesP19zappar_face_mesh_ti=or.le,i.__Z20zappar_face_mesh_uvsP19zappar_face_mesh_ti=or.me,i.__Z24zappar_face_mesh_indicesP19zappar_face_mesh_ti=or.ne,i.__Z23zappar_face_mesh_updateP19zappar_face_mesh_tiPKfS2_i=or.oe,i.__Z29zappar_face_mesh_normals_sizeP19zappar_face_mesh_ti=or.pe,i.__Z24zappar_face_mesh_normalsP19zappar_face_mesh_ti=or.qe,i._zappar_camera_source_create=or.re,i._zappar_camera_source_destroy=or.se,i._zappar_camera_source_start=or.te,i._zappar_camera_source_pause=or.ue,i._zappar_camera_default_device_id=or.ve,i._zappar_sequence_source_create=or.we,i.__Z28zappar_sequence_source_startP25zappar_sequence_source_ti=or.xe,i.__Z39zappar_sequence_source_load_from_memoryP25zappar_sequence_source_tiPKci=or.ye,i.__Z28zappar_sequence_source_pauseP25zappar_sequence_source_ti=or.ze,i._zappar_sequence_source_destroy=or.Ae,i._zappar_sequence_source_max_playback_fps_set=or.Be,i._zappar_log_level_set=or.Ce,i._zappar_log_level=or.De,i.__Z23zappar_log_redirect_setPFv18zappar_log_level_tPKcE=or.Ee,i._zappar_world_tracker_create=or.Fe,i._zappar_world_tracker_destroy=or.Ge,i._zappar_world_tracker_world_anchor_valid=or.He,i._zappar_world_tracker_plane_count=or.Ie,i._zappar_world_tracker_plane_pose_raw=or.Je,i._zappar_world_tracker_world_anchor_pose_raw=or.Ke,i._zappar_world_tracker_ground_anchor_valid=or.Le,i._zappar_world_tracker_ground_anchor_pose_raw=or.Me,i._zappar_world_tracker_reset=or.Ne,i._zappar_world_tracker_enabled_set=or.Oe,i._zappar_world_tracker_quality=or.Pe,i._zappar_world_tracker_enabled=or.Qe,i._worker_message_send_count=or.Re,i._worker_message_send_clear=or.Se,i._worker_message_send_data_size=or.Te,i._worker_message_send_reference=or.Ue,i._worker_message_send_data=or.Ve,i._worker_message_receive=or.We,i._ceres_worker=or.Xe,i._zappar_analytics_project_id_set=or.Ye,i.__ZN5boost13serialization16singleton_module8get_lockEv=or.Ze,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem19InitializationInputEE16load_object_dataERNS1_14basic_iarchiveEPvj=or._e,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.$e,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi5FrameEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.af,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE5FrameE16load_object_dataERNS1_14basic_iarchiveEPvj=or.bf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.cf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.df,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.ef,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam5Pose3EE16load_object_dataERNS1_14basic_iarchiveEPvj=or.ff,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.gf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.hf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam7imuBias12ConstantBiasEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.jf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26bitsetILm2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.kf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.lf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE3ImuE16load_object_dataERNS1_14basic_iarchiveEPvj=or.mf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.nf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi12WorldFeatureEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.of,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE12WorldFeatureE16load_object_dataERNS1_14basic_iarchiveEPvj=or.pf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.qf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.rf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE16load_object_dataERNS1_14basic_iarchiveEPvj=or.sf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.tf,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE15load_object_ptrERNS1_14basic_iarchiveEPvj=or.uf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam28PreintegrationCombinedParamsEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.vf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam28PreintegrationCombinedParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.wf,i.__ZN5boost13serialization18void_cast_registerIN5gtsam28PreintegrationCombinedParamsENS2_20PreintegrationParamsEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=or.xf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam20PreintegrationParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.yf,i.__ZN5boost13serialization18void_cast_registerIN5gtsam20PreintegrationParamsENS2_27PreintegratedRotationParamsEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=or.zf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam27PreintegratedRotationParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Af,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__28optionalIN5gtsam5Pose3EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Bf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__28optionalIN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Cf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi3ELi3ELi0ELi3ELi3EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Df,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Ef,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam28PreintegrationCombinedParamsEE15load_object_ptrERNS1_14basic_iarchiveEPvj=or.Ff,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem10ParametersEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Gf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN2cv12TermCriteriaEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Hf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem20InitializationResultEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.If,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Jf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi5FrameEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Kf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE5FrameE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Lf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Mf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Nf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Of,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam5Pose3EE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Pf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Qf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Rf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam7imuBias12ConstantBiasEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Sf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26bitsetILm2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Tf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Uf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE3ImuE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Vf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Wf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi12WorldFeatureEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Xf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE12WorldFeatureE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Yf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Zf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem19InitializationInputEE16save_object_dataERNS1_14basic_oarchiveEPKv=or._f,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.$f,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE16save_object_dataERNS1_14basic_oarchiveEPKv=or.ag,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.bg,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE15save_object_ptrERNS1_14basic_oarchiveEPKv=or.cg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam28PreintegrationCombinedParamsEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.dg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam28PreintegrationCombinedParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.eg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam20PreintegrationParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.fg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam27PreintegratedRotationParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.gg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__28optionalIN5gtsam5Pose3EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.hg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__28optionalIN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.ig,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi3ELi3ELi0ELi3ELi3EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.jg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.kg,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam28PreintegrationCombinedParamsEE15save_object_ptrERNS1_14basic_oarchiveEPKv=or.lg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem10ParametersEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.mg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN2cv12TermCriteriaEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.ng,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem20InitializationResultEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.og,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE9RecordingE16save_object_dataERNS1_14basic_oarchiveEPKv=or.pg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26vectorI11SensorEventNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.qg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE11SensorEventE16save_object_dataERNS1_14basic_oarchiveEPKv=or.rg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.sg;var hr,lr=or.tg,fr=or.ug,ur=or.vg,dr=or.wg,pr=or.xg,mr=or.yg,br=or.zg,wr=or.Ag,gr=or.Bg,vr=i.dynCall_j=or.Cg,Er=i.dynCall_viij=or.Dg,yr=i.dynCall_viijii=or.Eg,Ar=i.dynCall_iij=or.Fg,kr=i.dynCall_vij=or.Gg,Rr=i.dynCall_iiji=or.Hg,Nr=i.dynCall_viji=or.Ig,Sr=i.dynCall_ji=or.Jg,Tr=i.dynCall_iiiijjji=or.Kg,xr=i.dynCall_iijjjjjji=or.Lg,Lr=i.dynCall_viiji=or.Mg,Ir=i.dynCall_diji=or.Ng,zr=i.dynCall_iiiijji=or.Og,Pr=i.dynCall_jiii=or.Pg,Mr=i.dynCall_jii=or.Qg,Fr=i.dynCall_vjii=or.Rg,Or=i.dynCall_vji=or.Sg,Cr=i.dynCall_iji=or.Tg,Br=i.dynCall_iiiij=or.Ug,Ur=i.dynCall_jj=or.Vg,jr=i.dynCall_djj=or.Wg,Dr=i.dynCall_iiiiij=or.Xg,Vr=i.dynCall_jiiii=or.Yg;function Zr(){function e(){if(!hr&&(hr=!0,i.calledRun=!0,!A)){if(i.noFSInit||Oe||(Oe=!0,i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?He("stdin",i.stdin):Ze("/dev/tty","/dev/stdin"),i.stdout?He("stdout",null,i.stdout):Ze("/dev/tty","/dev/stdout"),i.stderr?He("stderr",null,i.stderr):Ze("/dev/tty1","/dev/stderr"),Ge("/dev/stdin",0),Ge("/dev/stdout",1),Ge("/dev/stderr",1)),ve=!1,j(N),r(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();S.unshift(e)}j(S)}}if(!(0<z)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)T();j(R),0<z||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e())}}if(i.___start_em_js=624444,i.___stop_em_js=625609,i.cwrap=(e,t,r,a)=>{var n=!r||r.every((e=>"number"===e||"boolean"===e));return"string"!==t&&n&&!a?i["_"+e]:function(){return((e,t,r,a)=>{var n={string:e=>{var t=0;if(null!=e&&0!==e){t=ae(e)+1;var r=pr(t);ie(e,m,r,t),t=r}return t},array:e=>{var t=pr(e.length);return p.set(e,t),t}};e=i["_"+e];var _,o=[],s=0;if(a)for(var c=0;c<a.length;c++){var h=n[r[c]];h?(0===s&&(s=ur()),o[c]=h(a[c])):o[c]=a[c]}return _=r=e.apply(null,o),0!==s&&dr(s),"string"===t?_?te(m,_):"":"boolean"===t?!!_:_})(e,t,r,arguments)}},i.setValue=function(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":p[e>>0]=t;break;case"i16":b[e>>1]=t;break;case"i32":g[e>>2]=t;break;case"i64":C("to do setValue(i64) use WASM_BIGINT");case"float":E[e>>2]=t;break;case"double":y[e>>3]=t;break;case"*":v[e>>2]=t;break;default:C(`invalid type for setValue: ${r}`)}},i.getValue=function(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return p[e>>0];case"i16":return b[e>>1];case"i32":return g[e>>2];case"i64":C("to do getValue(i64) use WASM_BIGINT");case"float":return E[e>>2];case"double":return y[e>>3];case"*":return v[e>>2];default:C(`invalid type for getValue: ${t}`)}},i.UTF8ToString=Je,M=function e(){hr||Zr(),hr||(M=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return Zr(),t});class a{constructor(e){this._messageSender=e,this._freeBufferPool=[],this._buffer=new ArrayBuffer(16),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=1,this._startOffset=-1,this._timeoutSet=!1,this._appender={int:e=>this.int(e),bool:e=>this.int(e?1:0),float:e=>this.float(e),string:e=>this.string(e),dataWithLength:e=>this.arrayBuffer(e),type:e=>this.int(e),matrix4x4:e=>this.float32ArrayBuffer(e),matrix3x3:e=>this.float32ArrayBuffer(e),identityCoefficients:e=>this.float32ArrayBuffer(e),expressionCoefficients:e=>this.float32ArrayBuffer(e),cameraModel:e=>this.float32ArrayBuffer(e),timestamp:e=>this.double(e),barcodeFormat:e=>this.int(e),faceLandmarkName:e=>this.int(e),instantTrackerTransformOrientation:e=>this.int(e),logLevel:e=>this.int(e)},this._freeBufferPool.push(new ArrayBuffer(16)),this._freeBufferPool.push(new ArrayBuffer(16))}bufferReturn(e){this._freeBufferPool.push(e)}_ensureArrayBuffer(e){let t,r=4*(this._offset+e+8);if(this._buffer&&this._buffer.byteLength>=r)return;if(!t){let e=r;e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,t=new ArrayBuffer(e)}let a=this._buffer?this._i32View:void 0;this._buffer=t,this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),a&&this._i32View.set(a.subarray(0,this._offset))}sendMessage(e,t){this._ensureArrayBuffer(4),this._startOffset=this._offset,this._i32View[this._offset+1]=e,this._offset+=2,t(this._appender),this._i32View[this._startOffset]=this._offset-this._startOffset,this._startOffset=-1,this._sendOneTime()}_sendOneTime(){!1===this._timeoutSet&&(this._timeoutSet=!0,setTimeout((()=>{this._timeoutSet=!1,this._send()}),0))}_send(){0!==this._freeBufferPool.length?(this._i32View[0]=this._offset,this._messageSender(this._buffer),this._buffer=void 0,this._buffer=this._freeBufferPool.pop(),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=1,this._startOffset=-1):this._sendOneTime()}int(e){this._ensureArrayBuffer(1),this._i32View[this._offset]=e,this._offset++}double(e){this._ensureArrayBuffer(2),this._offset%2==1&&this._offset++,this._f64View[this._offset/2]=e,this._offset+=2}float(e){this._ensureArrayBuffer(1),this._f32View[this._offset]=e,this._offset++}int32Array(e){this._ensureArrayBuffer(e.length);for(let t=0;t<e.length;++t)this._i32View[this._offset+t]=e[t];this._offset+=e.length}float32Array(e){this._ensureArrayBuffer(e.length);for(let t=0;t<e.length;++t)this._f32View[this._offset+t]=e[t];this._offset+=e.length}booleanArray(e){this._ensureArrayBuffer(e.length);for(let t=0;t<e.length;++t)this._i32View[this._offset+t]=e[t]?1:0;this._offset+=e.length}uint8ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.byteLength,this._offset++,this._u8View.set(e,4*this._offset),this._offset+=e.byteLength>>2,0!=(3&e.byteLength)&&this._offset++}arrayBuffer(e){let t=new Uint8Array(e);this.uint8ArrayBuffer(t)}uint8ClampedArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.byteLength,this._offset++,this._u8cView.set(e,4*this._offset),this._offset+=e.byteLength>>2,0!=(3&e.byteLength)&&this._offset++}float32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._f32View.set(e,this._offset),this._offset+=e.length}uint16ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++;let t=2*this._offset;this._u16View.set(e,t),this._offset+=e.length>>1,0!=(1&e.length)&&this._offset++}int32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._i32View.set(e,this._offset),this._offset+=e.length}uint32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._u32View.set(e,this._offset),this._offset+=e.length}string(e){let t=(new TextEncoder).encode(e);this._ensureArrayBuffer(t.byteLength/4),this._i32View[this._offset]=t.byteLength,this._offset++,this._u8View.set(t,4*this._offset),this._offset+=t.byteLength>>2,0!=(3&t.byteLength)&&this._offset++}}class i{constructor(){this._buffer=new ArrayBuffer(0),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=0,this._length=0,this._startOffset=-1,this._processor={int:()=>this._i32View[this._startOffset++],bool:()=>1===this._i32View[this._startOffset++],type:()=>this._i32View[this._startOffset++],float:()=>this._f32View[this._startOffset++],timestamp:()=>{this._startOffset%2==1&&this._startOffset++;let e=this._f64View[this._startOffset/2];return this._startOffset+=2,e},string:()=>{let e=this._i32View[this._startOffset++],t=(new TextDecoder).decode(new Uint8Array(this._buffer,4*this._startOffset,e));return this._startOffset+=e>>2,0!=(3&e)&&this._startOffset++,t},dataWithLength:()=>{let e=this._i32View[this._startOffset++],t=new Uint8Array(e);return t.set(this._u8View.subarray(4*this._startOffset,4*this._startOffset+e)),this._startOffset+=t.byteLength>>2,0!=(3&t.byteLength)&&this._startOffset++,t.buffer},matrix4x4:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+16)),this._startOffset+=e,t},matrix3x3:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+9)),this._startOffset+=e,t},identityCoefficients:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+50)),this._startOffset+=e,t},expressionCoefficients:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+29)),this._startOffset+=e,t},cameraModel:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+6)),this._startOffset+=e,t},barcodeFormat:()=>this._i32View[this._startOffset++],faceLandmarkName:()=>this._i32View[this._startOffset++],instantTrackerTransformOrientation:()=>this._i32View[this._startOffset++],logLevel:()=>this._i32View[this._startOffset++]}}setData(e){this._buffer=e,this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=0,this._length=0,e.byteLength>=4&&(this._offset=1,this._length=this._i32View[0]),this._startOffset=-1}hasMessage(){return this._offset+1<this._length}forMessages(e){for(;this.hasMessage();){let t=this._i32View[this._offset],r=this._i32View[this._offset+1];this._startOffset=this._offset+2,this._offset+=t,e(r,this._processor)}}}class n{constructor(e,t){this._impl=e,this._sender=t,this._deserializer=new i,this.serializersByPipelineId=new Map,this._pipeline_id_by_pipeline_id=new Map,this._pipeline_by_instance=new Map,this._pipeline_id_by_camera_source_id=new Map,this._camera_source_by_instance=new Map,this._pipeline_id_by_sequence_source_id=new Map,this._sequence_source_by_instance=new Map,this._pipeline_id_by_image_tracker_id=new Map,this._image_tracker_by_instance=new Map,this._pipeline_id_by_face_tracker_id=new Map,this._face_tracker_by_instance=new Map,this._pipeline_id_by_face_mesh_id=new Map,this._face_mesh_by_instance=new Map,this._pipeline_id_by_face_landmark_id=new Map,this._face_landmark_by_instance=new Map,this._pipeline_id_by_barcode_finder_id=new Map,this._barcode_finder_by_instance=new Map,this._pipeline_id_by_instant_world_tracker_id=new Map,this._instant_world_tracker_by_instance=new Map,this._pipeline_id_by_world_tracker_id=new Map,this._world_tracker_by_instance=new Map}processBuffer(e){this._deserializer.setData(e),this._deserializer.forMessages(((e,t)=>{switch(e){case 38:this._impl.log_level_set(t.logLevel());break;case 35:this._impl.analytics_project_id_set(t.string(),t.string());break;case 31:{let e=t.type(),r=this._impl.pipeline_create();this._pipeline_by_instance.set(e,r),this._pipeline_id_by_pipeline_id.set(e,e),this.serializersByPipelineId.set(e,new a((t=>{this._sender(e,t)})));break}case 32:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_destroy(r),this._pipeline_by_instance.delete(e);break}case 9:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_frame_update(r);break}case 8:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_camera_frame_submit(r,t.dataWithLength(),t.int(),t.int(),t.int(),t.matrix4x4(),t.cameraModel(),t.bool());break}case 10:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_accelerometer_submit(r,t.timestamp(),t.float(),t.float(),t.float());break}case 12:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_accelerometer_with_gravity_submit_int(r,t.timestamp(),t.timestamp(),t.float(),t.float(),t.float());break}case 11:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_accelerometer_without_gravity_submit_int(r,t.timestamp(),t.timestamp(),t.float(),t.float(),t.float());break}case 15:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_rotation_rate_submit(r,t.timestamp(),t.float(),t.float(),t.float());break}case 13:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_rotation_rate_submit_int(r,t.timestamp(),t.timestamp(),t.float(),t.float(),t.float());break}case 16:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_attitude_submit(r,t.timestamp(),t.float(),t.float(),t.float());break}case 14:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_attitude_submit_int(r,t.timestamp(),t.timestamp(),t.float(),t.float(),t.float());break}case 17:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_attitude_matrix_submit(r,t.matrix4x4());break}case 33:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=t.string(),n=this._impl.camera_source_create(a,i);this._camera_source_by_instance.set(e,n),this._pipeline_id_by_camera_source_id.set(e,r);break}case 34:{let e=t.type(),r=this._camera_source_by_instance.get(e);if(void 0===r)return;this._impl.camera_source_destroy(r),this._camera_source_by_instance.delete(e);break}case 39:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.sequence_source_create(a);this._sequence_source_by_instance.set(e,i),this._pipeline_id_by_sequence_source_id.set(e,r);break}case 40:{let e=t.type(),r=this._sequence_source_by_instance.get(e);if(void 0===r)return;this._impl.sequence_source_destroy(r),this._sequence_source_by_instance.delete(e);break}case 2:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.image_tracker_create(a);this._image_tracker_by_instance.set(e,i),this._pipeline_id_by_image_tracker_id.set(e,r);break}case 18:{let e=t.type(),r=this._image_tracker_by_instance.get(e);if(void 0===r)return;this._impl.image_tracker_destroy(r),this._image_tracker_by_instance.delete(e);break}case 4:{let e=t.type(),r=this._image_tracker_by_instance.get(e);if(void 0===r)return;this._impl.image_tracker_target_load_from_memory(r,t.dataWithLength());break}case 3:{let e=t.type(),r=this._image_tracker_by_instance.get(e);if(void 0===r)return;this._impl.image_tracker_enabled_set(r,t.bool());break}case 24:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.face_tracker_create(a);this._face_tracker_by_instance.set(e,i),this._pipeline_id_by_face_tracker_id.set(e,r);break}case 25:{let e=t.type(),r=this._face_tracker_by_instance.get(e);if(void 0===r)return;this._impl.face_tracker_destroy(r),this._face_tracker_by_instance.delete(e);break}case 26:{let e=t.type(),r=this._face_tracker_by_instance.get(e);if(void 0===r)return;this._impl.face_tracker_model_load_from_memory(r,t.dataWithLength());break}case 27:{let e=t.type(),r=this._face_tracker_by_instance.get(e);if(void 0===r)return;this._impl.face_tracker_enabled_set(r,t.bool());break}case 28:{let e=t.type(),r=this._face_tracker_by_instance.get(e);if(void 0===r)return;this._impl.face_tracker_max_faces_set(r,t.int());break}case 29:{let e=t.type(),r=this._impl.face_mesh_create();this._face_mesh_by_instance.set(e,r);break}case 30:{let e=t.type(),r=this._face_mesh_by_instance.get(e);if(void 0===r)return;this._impl.face_mesh_destroy(r),this._face_mesh_by_instance.delete(e);break}case 36:{let e=t.type(),r=t.faceLandmarkName(),a=this._impl.face_landmark_create(r);this._face_landmark_by_instance.set(e,a);break}case 37:{let e=t.type(),r=this._face_landmark_by_instance.get(e);if(void 0===r)return;this._impl.face_landmark_destroy(r),this._face_landmark_by_instance.delete(e);break}case 20:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.barcode_finder_create(a);this._barcode_finder_by_instance.set(e,i),this._pipeline_id_by_barcode_finder_id.set(e,r);break}case 21:{let e=t.type(),r=this._barcode_finder_by_instance.get(e);if(void 0===r)return;this._impl.barcode_finder_destroy(r),this._barcode_finder_by_instance.delete(e);break}case 22:{let e=t.type(),r=this._barcode_finder_by_instance.get(e);if(void 0===r)return;this._impl.barcode_finder_enabled_set(r,t.bool());break}case 23:{let e=t.type(),r=this._barcode_finder_by_instance.get(e);if(void 0===r)return;this._impl.barcode_finder_formats_set(r,t.barcodeFormat());break}case 5:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.instant_world_tracker_create(a);this._instant_world_tracker_by_instance.set(e,i),this._pipeline_id_by_instant_world_tracker_id.set(e,r);break}case 19:{let e=t.type(),r=this._instant_world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.instant_world_tracker_destroy(r),this._instant_world_tracker_by_instance.delete(e);break}case 6:{let e=t.type(),r=this._instant_world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.instant_world_tracker_enabled_set(r,t.bool());break}case 7:{let e=t.type(),r=this._instant_world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.instant_world_tracker_anchor_pose_set_from_camera_offset_raw(r,t.float(),t.float(),t.float(),t.instantTrackerTransformOrientation());break}case 41:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.world_tracker_create(a);this._world_tracker_by_instance.set(e,i),this._pipeline_id_by_world_tracker_id.set(e,r);break}case 42:{let e=t.type(),r=this._world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.world_tracker_destroy(r),this._world_tracker_by_instance.delete(e);break}case 43:{let e=t.type(),r=this._world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.world_tracker_enabled_set(r,t.bool());break}case 44:{let e=t.type(),r=this._world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.world_tracker_reset(r);break}}}))}exploreState(){for(let[e,t]of this._pipeline_by_instance){let r=this._pipeline_id_by_pipeline_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);a&&(a.sendMessage(7,(r=>{r.type(e),r.int(this._impl.pipeline_frame_number(t))})),a.sendMessage(6,(r=>{r.type(e),r.cameraModel(this._impl.pipeline_camera_model(t))})),a.sendMessage(5,(r=>{r.type(e),r.int(this._impl.pipeline_camera_frame_user_data(t))})),a.sendMessage(11,(r=>{r.type(e),r.matrix4x4(this._impl.pipeline_camera_frame_camera_attitude(t))})),a.sendMessage(12,(r=>{r.type(e),r.matrix4x4(this._impl.pipeline_camera_frame_device_attitude(t))})))}for(let[e,t]of this._camera_source_by_instance){let t=this._pipeline_id_by_camera_source_id.get(e);t&&this.serializersByPipelineId.get(t)}for(let[e,t]of this._sequence_source_by_instance){let t=this._pipeline_id_by_sequence_source_id.get(e);t&&this.serializersByPipelineId.get(t)}for(let[e,t]of this._image_tracker_by_instance){let r=this._pipeline_id_by_image_tracker_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);if(a){a.sendMessage(19,(r=>{r.type(e),r.int(this._impl.image_tracker_target_loaded_version(t))})),a.sendMessage(1,(r=>{r.type(e),r.int(this._impl.image_tracker_anchor_count(t))}));for(let r=0;r<this._impl.image_tracker_anchor_count(t);r++)a.sendMessage(2,(a=>{a.type(e),a.int(r),a.string(this._impl.image_tracker_anchor_id(t,r))}));for(let r=0;r<this._impl.image_tracker_anchor_count(t);r++)a.sendMessage(3,(a=>{a.type(e),a.int(r),a.matrix4x4(this._impl.image_tracker_anchor_pose_raw(t,r))}))}}for(let[e,t]of this._face_tracker_by_instance){let r=this._pipeline_id_by_face_tracker_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);if(a){a.sendMessage(18,(r=>{r.type(e),r.int(this._impl.face_tracker_model_loaded_version(t))})),a.sendMessage(13,(r=>{r.type(e),r.int(this._impl.face_tracker_anchor_count(t))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)a.sendMessage(14,(a=>{a.type(e),a.int(r),a.string(this._impl.face_tracker_anchor_id(t,r))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)a.sendMessage(15,(a=>{a.type(e),a.int(r),a.matrix4x4(this._impl.face_tracker_anchor_pose_raw(t,r))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)a.sendMessage(16,(a=>{a.type(e),a.int(r),a.identityCoefficients(this._impl.face_tracker_anchor_identity_coefficients(t,r))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)a.sendMessage(17,(a=>{a.type(e),a.int(r),a.expressionCoefficients(this._impl.face_tracker_anchor_expression_coefficients(t,r))}))}}for(let[e,t]of this._face_mesh_by_instance){let t=this._pipeline_id_by_face_mesh_id.get(e);t&&this.serializersByPipelineId.get(t)}for(let[e,t]of this._face_landmark_by_instance){let t=this._pipeline_id_by_face_landmark_id.get(e);t&&this.serializersByPipelineId.get(t)}for(let[e,t]of this._barcode_finder_by_instance){let r=this._pipeline_id_by_barcode_finder_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);if(a){a.sendMessage(8,(r=>{r.type(e),r.int(this._impl.barcode_finder_found_number(t))}));for(let r=0;r<this._impl.barcode_finder_found_number(t);r++)a.sendMessage(9,(a=>{a.type(e),a.int(r),a.string(this._impl.barcode_finder_found_text(t,r))}));for(let r=0;r<this._impl.barcode_finder_found_number(t);r++)a.sendMessage(10,(a=>{a.type(e),a.int(r),a.barcodeFormat(this._impl.barcode_finder_found_format(t,r))}))}}for(let[e,t]of this._instant_world_tracker_by_instance){let r=this._pipeline_id_by_instant_world_tracker_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);a&&a.sendMessage(4,(r=>{r.type(e),r.matrix4x4(this._impl.instant_world_tracker_anchor_pose_raw(t))}))}for(let[e,t]of this._world_tracker_by_instance){let r=this._pipeline_id_by_world_tracker_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);if(a){a.sendMessage(27,(r=>{r.type(e),r.int(this._impl.world_tracker_quality(t))})),a.sendMessage(21,(r=>{r.type(e),r.int(this._impl.world_tracker_plane_count(t))}));for(let r=0;r<this._impl.world_tracker_plane_count(t);r++)a.sendMessage(22,(a=>{a.type(e),a.int(r),a.matrix4x4(this._impl.world_tracker_plane_pose_raw(t,r))}));a.sendMessage(23,(r=>{r.type(e),r.bool(this._impl.world_tracker_world_anchor_valid(t))})),a.sendMessage(24,(r=>{r.type(e),r.matrix4x4(this._impl.world_tracker_world_anchor_pose_raw(t))})),a.sendMessage(23,(r=>{r.type(e),r.bool(this._impl.world_tracker_ground_anchor_valid(t))})),a.sendMessage(26,(r=>{r.type(e),r.matrix4x4(this._impl.world_tracker_ground_anchor_pose_raw(t))}))}}}}class _{constructor(){this._funcs=[]}bind(e){this._funcs.push(e)}unbind(e){let t=this._funcs.indexOf(e);t>-1&&this._funcs.splice(t,1)}emit(){for(var e=0,t=this._funcs.length;e<t;e++)this._funcs[e]()}}class o{constructor(){this._funcs=[]}bind(e){this._funcs.push(e)}unbind(e){let t=this._funcs.indexOf(e);t>-1&&this._funcs.splice(t,1)}emit(e){for(var t=0,r=this._funcs.length;t<r;t++)this._funcs[t](e)}}var s,c,h,l,f,u,d,p="undefined"!=typeof Float32Array?Float32Array:Array;function m(){var e=new p(16);return p!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function b(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}Math.random,Math.PI,Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)}),function(e){e[e.UNKNOWN=131072]="UNKNOWN",e[e.AZTEC=1]="AZTEC",e[e.CODABAR=2]="CODABAR",e[e.CODE_39=4]="CODE_39",e[e.CODE_93=8]="CODE_93",e[e.CODE_128=16]="CODE_128",e[e.DATA_MATRIX=32]="DATA_MATRIX",e[e.EAN_8=64]="EAN_8",e[e.EAN_13=128]="EAN_13",e[e.ITF=256]="ITF",e[e.MAXICODE=512]="MAXICODE",e[e.PDF_417=1024]="PDF_417",e[e.QR_CODE=2048]="QR_CODE",e[e.RSS_14=4096]="RSS_14",e[e.RSS_EXPANDED=8192]="RSS_EXPANDED",e[e.UPC_A=16384]="UPC_A",e[e.UPC_E=32768]="UPC_E",e[e.UPC_EAN_EXTENSION=65536]="UPC_EAN_EXTENSION",e[e.ALL=131071]="ALL"}(s||(s={})),function(e){e[e.EYE_LEFT=0]="EYE_LEFT",e[e.EYE_RIGHT=1]="EYE_RIGHT",e[e.EAR_LEFT=2]="EAR_LEFT",e[e.EAR_RIGHT=3]="EAR_RIGHT",e[e.NOSE_BRIDGE=4]="NOSE_BRIDGE",e[e.NOSE_TIP=5]="NOSE_TIP",e[e.NOSE_BASE=6]="NOSE_BASE",e[e.LIP_TOP=7]="LIP_TOP",e[e.LIP_BOTTOM=8]="LIP_BOTTOM",e[e.MOUTH_CENTER=9]="MOUTH_CENTER",e[e.CHIN=10]="CHIN",e[e.EYEBROW_LEFT=11]="EYEBROW_LEFT",e[e.EYEBROW_RIGHT=12]="EYEBROW_RIGHT"}(c||(c={})),function(e){e[e.WORLD=3]="WORLD",e[e.MINUS_Z_AWAY_FROM_USER=4]="MINUS_Z_AWAY_FROM_USER",e[e.MINUS_Z_HEADING=5]="MINUS_Z_HEADING",e[e.UNCHANGED=6]="UNCHANGED"}(h||(h={})),function(e){e[e.LOG_LEVEL_NONE=0]="LOG_LEVEL_NONE",e[e.LOG_LEVEL_ERROR=1]="LOG_LEVEL_ERROR",e[e.LOG_LEVEL_WARNING=2]="LOG_LEVEL_WARNING",e[e.LOG_LEVEL_VERBOSE=3]="LOG_LEVEL_VERBOSE"}(l||(l={})),function(e){e[e.FRAME_PIXEL_FORMAT_I420=0]="FRAME_PIXEL_FORMAT_I420",e[e.FRAME_PIXEL_FORMAT_I420A=1]="FRAME_PIXEL_FORMAT_I420A",e[e.FRAME_PIXEL_FORMAT_I422=2]="FRAME_PIXEL_FORMAT_I422",e[e.FRAME_PIXEL_FORMAT_I444=3]="FRAME_PIXEL_FORMAT_I444",e[e.FRAME_PIXEL_FORMAT_NV12=4]="FRAME_PIXEL_FORMAT_NV12",e[e.FRAME_PIXEL_FORMAT_RGBA=5]="FRAME_PIXEL_FORMAT_RGBA",e[e.FRAME_PIXEL_FORMAT_BGRA=6]="FRAME_PIXEL_FORMAT_BGRA",e[e.FRAME_PIXEL_FORMAT_Y=7]="FRAME_PIXEL_FORMAT_Y"}(f||(f={})),function(e){e[e.IMAGE_TRACKER_TYPE_PLANAR=0]="IMAGE_TRACKER_TYPE_PLANAR",e[e.IMAGE_TRACKER_TYPE_CYLINDRICAL=1]="IMAGE_TRACKER_TYPE_CYLINDRICAL",e[e.IMAGE_TRACKER_TYPE_CONICAL=2]="IMAGE_TRACKER_TYPE_CONICAL"}(u||(u={})),function(e){e[e.WORLD_TRACKER_QUALITY_INITIALIZING=0]="WORLD_TRACKER_QUALITY_INITIALIZING",e[e.WORLD_TRACKER_QUALITY_GOOD=1]="WORLD_TRACKER_QUALITY_GOOD",e[e.WORLD_TRACKER_QUALITY_ORIENTATION_ONLY=2]="WORLD_TRACKER_QUALITY_ORIENTATION_ONLY"}(d||(d={}));const w=new Map;class g{constructor(e){this._gl=e,this._viewports=[],this._underlyingViewport=this._gl.viewport,this._viewports.push(this._gl.getParameter(this._gl.VIEWPORT)),this._gl.viewport=(e,t,r,a)=>{this._viewports[this._viewports.length-1]=[e,t,r,a],this._underlyingViewport.call(this._gl,e,t,r,a)}}static get(e){let t=w.get(e);return t||(t=new g(e),w.set(e,t)),t}push(){this._viewports.push(this._viewports[this._viewports.length-1])}pop(){const e=this._viewports.pop(),t=this._viewports[this._viewports.length-1];e&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]||this._underlyingViewport.call(this._gl,t[0],t[1],t[2],t[3])}}var v,E=r(238);!function(e){e[e.OBJECT_URL=0]="OBJECT_URL",e[e.SRC_OBJECT=1]="SRC_OBJECT"}(v||(v={}));let y={deviceMotionMutliplier:-1,blacklisted:!1,showGyroPermissionsWarningIfNecessary:!1,showSafariPermissionsResetIfNecessary:!1,requestHighFrameRate:!1,videoWidth:640,videoHeight:480,dataWidth:320,dataHeight:240,videoElementInDOM:!1,preferMediaStreamTrackProcessorCamera:!0,preferImageBitmapCamera:!1,ios164CameraSelection:!1,relyOnConstraintsForCameraSelection:!1,forceWindowOrientation:!1,intervalMultiplier:1,trustSensorIntervals:!1};"undefined"!=typeof window&&(window.zeeProfile=y,window.location.href.indexOf("_mstppipeline")>=0&&(console.log("Configuring for MSTP camera pipeline (if supported)"),y.preferMediaStreamTrackProcessorCamera=!0),window.location.href.indexOf("_imagebitmappipeline")>=0&&(console.log("Configuring for ImageBitmap camera pipeline (if supported)"),y.preferImageBitmapCamera=!0));let A=new E.UAParser,k=(A.getOS().name||"unknown").toLowerCase(),R=(A.getEngine().name||"unknown").toLowerCase();function N(e){y.forceWindowOrientation=!0,y.preferMediaStreamTrackProcessorCamera=!1,y.intervalMultiplier=1e3,y.trustSensorIntervals=!0;let t=e.split(".");if(t.length>=2){const e=parseInt(t[0]),r=parseInt(t[1]);(e<11||11===e&&r<3)&&(y.blacklisted=!0),(e<12||12===e&&r<2)&&(y.videoElementInDOM=!0),(12===e&&r>=2||e>=13)&&(y.showGyroPermissionsWarningIfNecessary=!0),e>=13&&(y.showSafariPermissionsResetIfNecessary=!0),(e>=12&&r>1||e>=13)&&navigator.mediaDevices&&navigator.mediaDevices.getSupportedConstraints&&navigator.mediaDevices.getSupportedConstraints().frameRate&&(y.requestHighFrameRate=!0,e<14&&(y.videoHeight=360,y.dataHeight=180)),16===e&&r>=4&&(y.ios164CameraSelection=!0),e>=17&&(y.relyOnConstraintsForCameraSelection=!0)}}function S(e,t,r){let a=e.createShader(t);if(!a)throw new Error("Unable to create shader");e.shaderSource(a,r),e.compileShader(a);let i=e.getShaderInfoLog(a);if(i&&i.trim().length>0)throw new Error("Shader compile error: "+i);return a}"webkit"===R&&"ios"!==k&&(y.deviceMotionMutliplier=1,"undefined"!=typeof window&&void 0!==window.orientation&&N("15.0")),"webkit"===R&&"ios"===k&&(y.deviceMotionMutliplier=1,N(A.getOS().version||"15.0"));class T{constructor(e){this._gl=e,this._isPaused=!0,this._hadFrames=!1,this._isUserFacing=!1,this._cameraToScreenRotation=0,this._isUploadFrame=!0,this._computedTransformRotation=-1,this._computedFrontCameraRotation=!1,this._cameraUvTransform=m(),this._framebufferWidth=0,this._framebufferHeight=0,this._framebufferId=null,this._renderTexture=null,this._isWebGL2=!1,this._isWebGL2=e.getParameter(e.VERSION).indexOf("WebGL 2")>=0,this._isWebGL2||(this._instancedArraysExtension=this._gl.getExtension("ANGLE_instanced_arrays"))}resetGLContext(){this._framebufferId=null,this._renderTexture=null,this._vertexBuffer=void 0,this._indexBuffer=void 0,this._greyscaleShader=void 0}destroy(){this.resetGLContext()}uploadFrame(e,t,r,a){let i=this._gl;const n=g.get(i);n.push();const _=i.isEnabled(i.SCISSOR_TEST),o=i.isEnabled(i.DEPTH_TEST),s=i.isEnabled(i.BLEND),c=i.isEnabled(i.CULL_FACE),h=i.isEnabled(i.STENCIL_TEST),l=i.getParameter(i.ACTIVE_TEXTURE),f=i.getParameter(i.UNPACK_FLIP_Y_WEBGL),u=i.getParameter(i.CURRENT_PROGRAM);i.activeTexture(i.TEXTURE0);const d=i.getParameter(i.TEXTURE_BINDING_2D),p=i.getParameter(i.FRAMEBUFFER_BINDING),m=i.getParameter(i.ARRAY_BUFFER_BINDING),b=i.getParameter(i.ELEMENT_ARRAY_BUFFER_BINDING);i.disable(i.SCISSOR_TEST),i.disable(i.DEPTH_TEST),i.disable(i.BLEND),i.disable(i.CULL_FACE),i.disable(i.STENCIL_TEST),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1),i.bindTexture(i.TEXTURE_2D,e);const w=i.RGBA,v=i.RGBA,E=i.UNSIGNED_BYTE;i.texImage2D(i.TEXTURE_2D,0,w,v,E,t);let A=0,k=0;"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement?(A=t.videoWidth,k=t.videoHeight):(A=t.width,k=t.height),k>A&&(k=[A,A=k][0]),this._updateTransforms(r,a);let R=this._getFramebuffer(i,y.dataWidth/4,y.dataHeight),N=this._getVertexBuffer(i),S=this._getIndexBuffer(i),T=this._getGreyscaleShader(i);const x=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_SIZE),L=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_TYPE),I=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_NORMALIZED),z=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_STRIDE),P=i.getVertexAttribOffset(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_POINTER),M=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_ENABLED),F=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),O=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_SIZE),C=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_TYPE),B=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_NORMALIZED),U=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_STRIDE),j=i.getVertexAttribOffset(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_POINTER),D=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),V=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_ENABLED);let Z=0,K=0;this._isWebGL2?(Z=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_DIVISOR),K=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_DIVISOR),i.vertexAttribDivisor(T.aVertexPositionLoc,0),i.vertexAttribDivisor(T.aTextureCoordLoc,0)):this._instancedArraysExtension&&(Z=i.getVertexAttrib(T.aVertexPositionLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),K=i.getVertexAttrib(T.aTextureCoordLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),this._instancedArraysExtension.vertexAttribDivisorANGLE(T.aVertexPositionLoc,0),this._instancedArraysExtension.vertexAttribDivisorANGLE(T.aTextureCoordLoc,0)),i.bindFramebuffer(i.FRAMEBUFFER,R),i.viewport(0,0,this._framebufferWidth,this._framebufferHeight),i.clear(i.COLOR_BUFFER_BIT),i.bindBuffer(i.ARRAY_BUFFER,N),i.vertexAttribPointer(T.aVertexPositionLoc,2,i.FLOAT,!1,16,0),i.enableVertexAttribArray(T.aVertexPositionLoc),i.vertexAttribPointer(T.aTextureCoordLoc,2,i.FLOAT,!1,16,8),i.enableVertexAttribArray(T.aTextureCoordLoc),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,S),i.useProgram(T.program),i.uniform1f(T.uTexWidthLoc,y.dataWidth),i.uniformMatrix4fv(T.uUvTransformLoc,!1,this._cameraUvTransform),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,e),i.uniform1i(T.uSamplerLoc,0),i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0),i.bindBuffer(i.ARRAY_BUFFER,F),i.vertexAttribPointer(T.aVertexPositionLoc,x,L,I,z,P),i.bindBuffer(i.ARRAY_BUFFER,D),i.vertexAttribPointer(T.aTextureCoordLoc,O,C,B,U,j),i.bindBuffer(i.ARRAY_BUFFER,m),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,b),M||i.disableVertexAttribArray(T.aVertexPositionLoc),V||i.disableVertexAttribArray(T.aTextureCoordLoc),this._isWebGL2?(i.vertexAttribDivisor(T.aVertexPositionLoc,Z),i.vertexAttribDivisor(T.aTextureCoordLoc,K)):this._instancedArraysExtension&&(this._instancedArraysExtension.vertexAttribDivisorANGLE(T.aVertexPositionLoc,Z),this._instancedArraysExtension.vertexAttribDivisorANGLE(T.aTextureCoordLoc,K)),i.bindFramebuffer(i.FRAMEBUFFER,p),i.useProgram(u),i.bindTexture(i.TEXTURE_2D,d),i.activeTexture(l),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,f),n.pop(),s&&i.enable(i.BLEND),c&&i.enable(i.CULL_FACE),o&&i.enable(i.DEPTH_TEST),_&&i.enable(i.SCISSOR_TEST),h&&i.enable(i.STENCIL_TEST)}readFrame(e,t){let r=this._gl,a=new Uint8Array(t);const i=r.getParameter(r.FRAMEBUFFER_BINDING);let n=this._getFramebuffer(r,y.dataWidth/4,y.dataHeight);return r.bindFramebuffer(r.FRAMEBUFFER,n),r.readPixels(0,0,this._framebufferWidth,this._framebufferHeight,r.RGBA,r.UNSIGNED_BYTE,a),r.bindFramebuffer(r.FRAMEBUFFER,i),{uvTransform:this._cameraUvTransform,data:t,texture:e,dataWidth:y.dataWidth,dataHeight:y.dataHeight,userFacing:this._computedFrontCameraRotation}}_updateTransforms(e,t){e==this._computedTransformRotation&&t==this._computedFrontCameraRotation||(this._computedTransformRotation=e,this._computedFrontCameraRotation=t,this._cameraUvTransform=this._getCameraUvTransform())}_getCameraUvTransform(){switch(this._computedTransformRotation){case 270:return new Float32Array([0,1,0,0,-1,0,0,0,0,0,1,0,1,0,0,1]);case 180:return new Float32Array([-1,0,0,0,0,-1,0,0,0,0,1,0,1,1,0,1]);case 90:return new Float32Array([0,-1,0,0,1,0,0,0,0,0,1,0,0,1,0,1])}return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}_getFramebuffer(e,t,r){if(this._framebufferWidth===t&&this._framebufferHeight===r&&this._framebufferId)return this._framebufferId;if(this._framebufferId&&(e.deleteFramebuffer(this._framebufferId),this._framebufferId=null),this._renderTexture&&(e.deleteTexture(this._renderTexture),this._renderTexture=null),this._framebufferId=e.createFramebuffer(),!this._framebufferId)throw new Error("Unable to create framebuffer");if(e.bindFramebuffer(e.FRAMEBUFFER,this._framebufferId),this._renderTexture=e.createTexture(),!this._renderTexture)throw new Error("Unable to create render texture");e.activeTexture(e.TEXTURE0);const a=e.getParameter(e.TEXTURE_BINDING_2D);e.bindTexture(e.TEXTURE_2D,this._renderTexture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,r,0,e.RGBA,e.UNSIGNED_BYTE,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameterf(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this._renderTexture,0);let i=e.checkFramebufferStatus(e.FRAMEBUFFER);if(i!==e.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer not complete: "+i.toString());return this._framebufferWidth=t,this._framebufferHeight=r,e.bindTexture(e.TEXTURE_2D,a),e.bindFramebuffer(e.FRAMEBUFFER,null),this._framebufferId}_getVertexBuffer(e){if(this._vertexBuffer)return this._vertexBuffer;if(this._vertexBuffer=e.createBuffer(),!this._vertexBuffer)throw new Error("Unable to create vertex buffer");e.bindBuffer(e.ARRAY_BUFFER,this._vertexBuffer);let t=new Float32Array([-1,-1,0,0,-1,1,0,1,1,1,1,1,1,-1,1,0]);return e.bufferData(e.ARRAY_BUFFER,t,e.STATIC_DRAW),this._vertexBuffer}_getIndexBuffer(e){if(this._indexBuffer)return this._indexBuffer;if(this._indexBuffer=e.createBuffer(),!this._indexBuffer)throw new Error("Unable to create index buffer");e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this._indexBuffer);let t=new Uint16Array([0,1,2,0,2,3]);return e.bufferData(e.ELEMENT_ARRAY_BUFFER,t,e.STATIC_DRAW),this._indexBuffer}_getGreyscaleShader(e){if(this._greyscaleShader)return this._greyscaleShader;let t=e.createProgram();if(!t)throw new Error("Unable to create program");let r=S(e,e.VERTEX_SHADER,P),a=S(e,e.FRAGMENT_SHADER,M);e.attachShader(t,r),e.attachShader(t,a),function(e,t){e.linkProgram(t);let r=e.getProgramInfoLog(t);if(r&&r.trim().length>0)throw new Error("Unable to link: "+r)}(e,t);let i=e.getUniformLocation(t,"uTexWidth");if(!i)throw new Error("Unable to get uniform location uTexWidth");let n=e.getUniformLocation(t,"uUvTransform");if(!n)throw new Error("Unable to get uniform location uUvTransform");let _=e.getUniformLocation(t,"uSampler");if(!_)throw new Error("Unable to get uniform location uSampler");return this._greyscaleShader={program:t,aVertexPositionLoc:e.getAttribLocation(t,"aVertexPosition"),aTextureCoordLoc:e.getAttribLocation(t,"aTextureCoord"),uTexWidthLoc:i,uUvTransformLoc:n,uSamplerLoc:_},this._greyscaleShader}}let x,L,I,z,P="\n attribute vec4 aVertexPosition;\n attribute vec2 aTextureCoord;\n\n varying highp vec2 vTextureCoord1;\n varying highp vec2 vTextureCoord2;\n varying highp vec2 vTextureCoord3;\n varying highp vec2 vTextureCoord4;\n\n uniform float uTexWidth;\n\tuniform mat4 uUvTransform;\n\n void main(void) {\n highp vec2 offset1 = vec2(1.5 / uTexWidth, 0);\n highp vec2 offset2 = vec2(0.5 / uTexWidth, 0);\n\n gl_Position = aVertexPosition;\n vTextureCoord1 = (uUvTransform * vec4(aTextureCoord - offset1, 0, 1)).xy;\n vTextureCoord2 = (uUvTransform * vec4(aTextureCoord - offset2, 0, 1)).xy;\n vTextureCoord3 = (uUvTransform * vec4(aTextureCoord + offset2, 0, 1)).xy;\n vTextureCoord4 = (uUvTransform * vec4(aTextureCoord + offset1, 0, 1)).xy;\n }\n",M="\n varying highp vec2 vTextureCoord1;\n varying highp vec2 vTextureCoord2;\n varying highp vec2 vTextureCoord3;\n varying highp vec2 vTextureCoord4;\n\n uniform sampler2D uSampler;\n\n const lowp vec3 colorWeights = vec3(77.0 / 256.0, 150.0 / 256.0, 29.0 / 256.0);\n\n void main(void) {\n lowp vec4 outpx;\n\n outpx.r = dot(colorWeights, texture2D(uSampler, vTextureCoord1).xyz);\n outpx.g = dot(colorWeights, texture2D(uSampler, vTextureCoord2).xyz);\n outpx.b = dot(colorWeights, texture2D(uSampler, vTextureCoord3).xyz);\n outpx.a = dot(colorWeights, texture2D(uSampler, vTextureCoord4).xyz);\n\n gl_FragColor = outpx;\n }\n";var F=function(e,t,r,a){return new(r||(r=Promise))((function(i,n){function _(e){try{s(a.next(e))}catch(e){n(e)}}function o(e){try{s(a.throw(e))}catch(e){n(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(_,o)}s((a=a.apply(e,t||[])).next())}))};let O,C=new class{constructor(){this.onOutgoingMessage=new _,this.onIncomingMessage=new o,this._outgoingMessages=[]}postIncomingMessage(e){this.onIncomingMessage.emit(e)}postOutgoingMessage(e,t){this._outgoingMessages.push({msg:e,transferables:t}),this.onOutgoingMessage.emit()}getOutgoingMessages(){let e=this._outgoingMessages;return this._outgoingMessages=[],e}},B=0,U=!1;const j=new Map;function D(e,r){return F(this,void 0,void 0,(function*(){let a=t({locateFile:(t,r)=>t.endsWith("zappar-cv.wasm")?e:r+t,instantiateWasm:(e,t)=>{const a=new WebAssembly.Instance(r,e);return t(a),a.exports},onRuntimeInitialized:()=>{let e=function(e){let t=e.cwrap("zappar_log_level","number",[]),r=e.cwrap("zappar_log_level_set",null,["number"]),a=e.cwrap("zappar_analytics_project_id_set",null,["string","string"]),i=e.cwrap("zappar_pipeline_create","number",[]),n=e.cwrap("zappar_pipeline_destroy",null,["number"]),_=e.cwrap("zappar_pipeline_camera_frame_data_raw","number",["number"]),o=e.cwrap("zappar_pipeline_camera_frame_data_raw_size","number",["number"]),s=e.cwrap("zappar_pipeline_camera_frame_data_raw_width","number",["number"]),c=e.cwrap("zappar_pipeline_camera_frame_data_raw_height","number",["number"]),h=e.cwrap("zappar_pipeline_frame_update",null,["number"]),l=e.cwrap("zappar_pipeline_frame_number","number",["number"]),f=e.cwrap("zappar_pipeline_camera_model","number",["number"]),u=e.cwrap("zappar_pipeline_camera_frame_user_data","number",["number"]),d=e.cwrap("zappar_pipeline_camera_frame_submit",null,["number","number","number","number","number","number","number","number","number"]),p=e.cwrap("zappar_pipeline_camera_frame_submit_raw_pointer",null,["number","number","number","number","number","number","number","number","number","number","number","number"]),m=e.cwrap("zappar_pipeline_camera_frame_camera_attitude","number",["number"]),b=e.cwrap("zappar_pipeline_camera_frame_device_attitude","number",["number"]),w=e.cwrap("zappar_pipeline_motion_accelerometer_submit",null,["number","number","number","number","number"]),g=e.cwrap("zappar_pipeline_motion_accelerometer_with_gravity_submit_int",null,["number","number","number","number","number","number"]),v=e.cwrap("zappar_pipeline_motion_accelerometer_without_gravity_submit_int",null,["number","number","number","number","number","number"]),E=e.cwrap("zappar_pipeline_motion_rotation_rate_submit",null,["number","number","number","number","number"]),y=e.cwrap("zappar_pipeline_motion_rotation_rate_submit_int",null,["number","number","number","number","number","number"]),A=e.cwrap("zappar_pipeline_motion_attitude_submit",null,["number","number","number","number","number"]),k=e.cwrap("zappar_pipeline_motion_attitude_submit_int",null,["number","number","number","number","number","number"]),R=e.cwrap("zappar_pipeline_motion_attitude_matrix_submit",null,["number","number"]),N=e.cwrap("zappar_camera_source_create","number",["number","string"]),S=e.cwrap("zappar_camera_source_destroy",null,["number"]),T=e.cwrap("zappar_sequence_source_create","number",["number"]),x=e.cwrap("zappar_sequence_source_destroy",null,["number"]),L=e.cwrap("zappar_image_tracker_create","number",["number"]),I=e.cwrap("zappar_image_tracker_destroy",null,["number"]),z=e.cwrap("zappar_image_tracker_target_load_from_memory",null,["number","number","number"]),P=e.cwrap("zappar_image_tracker_target_loaded_version","number",["number"]),M=e.cwrap("zappar_image_tracker_enabled","number",["number"]),F=e.cwrap("zappar_image_tracker_enabled_set",null,["number","number"]),O=e.cwrap("zappar_image_tracker_anchor_count","number",["number"]),C=e.cwrap("zappar_image_tracker_anchor_id","string",["number","number"]),B=e.cwrap("zappar_image_tracker_anchor_pose_raw","number",["number","number"]),U=e.cwrap("zappar_face_tracker_create","number",["number"]),j=e.cwrap("zappar_face_tracker_destroy",null,["number"]),D=e.cwrap("zappar_face_tracker_model_load_from_memory",null,["number","number","number"]),V=e.cwrap("zappar_face_tracker_model_loaded_version","number",["number"]),Z=e.cwrap("zappar_face_tracker_enabled_set",null,["number","number"]),K=e.cwrap("zappar_face_tracker_enabled","number",["number"]),G=e.cwrap("zappar_face_tracker_max_faces_set",null,["number","number"]),W=e.cwrap("zappar_face_tracker_max_faces","number",["number"]),H=e.cwrap("zappar_face_tracker_anchor_count","number",["number"]),Y=e.cwrap("zappar_face_tracker_anchor_id","string",["number","number"]),X=e.cwrap("zappar_face_tracker_anchor_pose_raw","number",["number","number"]),q=e.cwrap("zappar_face_tracker_anchor_identity_coefficients","number",["number","number"]),$=e.cwrap("zappar_face_tracker_anchor_expression_coefficients","number",["number","number"]),J=e.cwrap("zappar_face_mesh_create","number",[]),Q=e.cwrap("zappar_face_mesh_destroy",null,["number"]),ee=e.cwrap("zappar_face_landmark_create","number",["number"]),te=e.cwrap("zappar_face_landmark_destroy",null,["number"]),re=e.cwrap("zappar_barcode_finder_create","number",["number"]),ae=e.cwrap("zappar_barcode_finder_destroy",null,["number"]),ie=e.cwrap("zappar_barcode_finder_enabled_set",null,["number","number"]),ne=e.cwrap("zappar_barcode_finder_enabled","number",["number"]),_e=e.cwrap("zappar_barcode_finder_found_number","number",["number"]),oe=e.cwrap("zappar_barcode_finder_found_text","string",["number","number"]),se=e.cwrap("zappar_barcode_finder_found_format","number",["number","number"]),ce=e.cwrap("zappar_barcode_finder_formats","number",["number"]),he=e.cwrap("zappar_barcode_finder_formats_set",null,["number","number"]),le=e.cwrap("zappar_instant_world_tracker_create","number",["number"]),fe=e.cwrap("zappar_instant_world_tracker_destroy",null,["number"]),ue=e.cwrap("zappar_instant_world_tracker_enabled_set",null,["number","number"]),de=e.cwrap("zappar_instant_world_tracker_enabled","number",["number"]),pe=e.cwrap("zappar_instant_world_tracker_anchor_pose_raw","number",["number"]),me=e.cwrap("zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw",null,["number","number","number","number","number"]),be=e.cwrap("zappar_world_tracker_create","number",["number"]),we=e.cwrap("zappar_world_tracker_destroy",null,["number"]),ge=e.cwrap("zappar_world_tracker_enabled","number",["number"]),ve=e.cwrap("zappar_world_tracker_enabled_set",null,["number","number"]),Ee=e.cwrap("zappar_world_tracker_quality","number",["number"]),ye=e.cwrap("zappar_world_tracker_plane_count","number",["number"]),Ae=e.cwrap("zappar_world_tracker_plane_pose_raw","number",["number","number"]),ke=e.cwrap("zappar_world_tracker_world_anchor_valid","number",["number"]),Re=e.cwrap("zappar_world_tracker_world_anchor_pose_raw","number",["number"]),Ne=e.cwrap("zappar_world_tracker_ground_anchor_valid","number",["number"]),Se=e.cwrap("zappar_world_tracker_ground_anchor_pose_raw","number",["number"]),Te=e.cwrap("zappar_world_tracker_reset",null,["number"]),xe=32,Le=e._malloc(xe),Ie=(e._malloc(64),new Map),ze=(t,r)=>{let a=Ie.get(t);return(!a||a[0]<r)&&(a&&e._free(a[1]),a=[r,e._malloc(r)],Ie.set(t,a)),a[1]};return{log_level:()=>t(),log_level_set:e=>r(e),analytics_project_id_set:(e,t)=>a(e,t),pipeline_create:()=>i(),pipeline_destroy:()=>{n()},pipeline_camera_frame_data_raw:e=>_(e),pipeline_camera_frame_data_raw_size:e=>o(e),pipeline_camera_frame_data_raw_width:e=>s(e),pipeline_camera_frame_data_raw_height:e=>c(e),pipeline_frame_update:e=>h(e),pipeline_frame_number:e=>l(e),pipeline_camera_model:t=>{let r=f(t),a=new Float32Array(6);return a.set(e.HEAPF32.subarray(r/4,6+r/4)),r=a,r},pipeline_camera_frame_user_data:e=>u(e),pipeline_camera_frame_submit:(t,r,a,i,n,_,o,s)=>{xe<r.byteLength&&(e._free(Le),xe=r.byteLength,Le=e._malloc(xe));let c=Le,h=r.byteLength;e.HEAPU8.set(new Uint8Array(r),Le);let l=a,f=i,u=n,p=ze(4,_.byteLength);e.HEAPF32.set(_,p/4);let m=ze(5,o.byteLength);return e.HEAPF32.set(o,m/4),d(t,c,h,l,f,u,p,m,s?1:0)},pipeline_camera_frame_submit_raw_pointer:(t,r,a,i,n,_,o,s,c,h,l,f)=>{let u=r,d=a,m=i,b=n,w=_,g=o,v=ze(6,s.byteLength);e.HEAPF32.set(s,v/4);let E=c,y=ze(8,h.byteLength);return e.HEAPF32.set(h,y/4),p(t,u,d,m,b,w,g,v,E,y,l?1:0,f)},pipeline_camera_frame_camera_attitude:t=>{let r=m(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},pipeline_camera_frame_device_attitude:t=>{let r=b(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},pipeline_motion_accelerometer_submit:(e,t,r,a,i)=>w(e,t,r,a,i),pipeline_motion_accelerometer_with_gravity_submit_int:(e,t,r,a,i,n)=>g(e,t,r,a,i,n),pipeline_motion_accelerometer_without_gravity_submit_int:(e,t,r,a,i,n)=>v(e,t,r,a,i,n),pipeline_motion_rotation_rate_submit:(e,t,r,a,i)=>E(e,t,r,a,i),pipeline_motion_rotation_rate_submit_int:(e,t,r,a,i,n)=>y(e,t,r,a,i,n),pipeline_motion_attitude_submit:(e,t,r,a,i)=>A(e,t,r,a,i),pipeline_motion_attitude_submit_int:(e,t,r,a,i,n)=>k(e,t,r,a,i,n),pipeline_motion_attitude_matrix_submit:(t,r)=>{let a=ze(0,r.byteLength);return e.HEAPF32.set(r,a/4),R(t,a)},camera_source_create:(e,t)=>N(e,t),camera_source_destroy:()=>{S()},sequence_source_create:e=>T(e),sequence_source_destroy:()=>{x()},image_tracker_create:e=>L(e),image_tracker_destroy:()=>{I()},image_tracker_target_load_from_memory:(t,r)=>{xe<r.byteLength&&(e._free(Le),xe=r.byteLength,Le=e._malloc(xe));let a=Le,i=r.byteLength;return e.HEAPU8.set(new Uint8Array(r),Le),z(t,a,i)},image_tracker_target_loaded_version:e=>P(e),image_tracker_enabled:e=>{let t=M(e);return t=1===t,t},image_tracker_enabled_set:(e,t)=>F(e,t?1:0),image_tracker_anchor_count:e=>O(e),image_tracker_anchor_id:(e,t)=>C(e,t),image_tracker_anchor_pose_raw:(t,r)=>{let a=B(t,r),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},face_tracker_create:e=>U(e),face_tracker_destroy:()=>{j()},face_tracker_model_load_from_memory:(t,r)=>{xe<r.byteLength&&(e._free(Le),xe=r.byteLength,Le=e._malloc(xe));let a=Le,i=r.byteLength;return e.HEAPU8.set(new Uint8Array(r),Le),D(t,a,i)},face_tracker_model_loaded_version:e=>V(e),face_tracker_enabled_set:(e,t)=>Z(e,t?1:0),face_tracker_enabled:e=>{let t=K(e);return t=1===t,t},face_tracker_max_faces_set:(e,t)=>G(e,t),face_tracker_max_faces:e=>W(e),face_tracker_anchor_count:e=>H(e),face_tracker_anchor_id:(e,t)=>Y(e,t),face_tracker_anchor_pose_raw:(t,r)=>{let a=X(t,r),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},face_tracker_anchor_identity_coefficients:(t,r)=>{let a=q(t,r),i=new Float32Array(50);return i.set(e.HEAPF32.subarray(a/4,50+a/4)),a=i,a},face_tracker_anchor_expression_coefficients:(t,r)=>{let a=$(t,r),i=new Float32Array(29);return i.set(e.HEAPF32.subarray(a/4,29+a/4)),a=i,a},face_mesh_create:()=>J(),face_mesh_destroy:()=>{Q()},face_landmark_create:e=>ee(e),face_landmark_destroy:()=>{te()},barcode_finder_create:e=>re(e),barcode_finder_destroy:()=>{ae()},barcode_finder_enabled_set:(e,t)=>ie(e,t?1:0),barcode_finder_enabled:e=>{let t=ne(e);return t=1===t,t},barcode_finder_found_number:e=>_e(e),barcode_finder_found_text:(e,t)=>oe(e,t),barcode_finder_found_format:(e,t)=>se(e,t),barcode_finder_formats:e=>ce(e),barcode_finder_formats_set:(e,t)=>he(e,t),instant_world_tracker_create:e=>le(e),instant_world_tracker_destroy:()=>{fe()},instant_world_tracker_enabled_set:(e,t)=>ue(e,t?1:0),instant_world_tracker_enabled:e=>{let t=de(e);return t=1===t,t},instant_world_tracker_anchor_pose_raw:t=>{let r=pe(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},instant_world_tracker_anchor_pose_set_from_camera_offset_raw:(e,t,r,a,i)=>me(e,t,r,a,i),world_tracker_create:e=>be(e),world_tracker_destroy:()=>{we()},world_tracker_enabled:e=>{let t=ge(e);return t=1===t,t},world_tracker_enabled_set:(e,t)=>ve(e,t?1:0),world_tracker_quality:e=>Ee(e),world_tracker_plane_count:e=>ye(e),world_tracker_plane_pose_raw:(t,r)=>{let a=Ae(t,r),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},world_tracker_world_anchor_valid:e=>{let t=ke(e);return t=1===t,t},world_tracker_world_anchor_pose_raw:t=>{let r=Re(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},world_tracker_ground_anchor_valid:e=>{let t=Ne(e);return t=1===t,t},world_tracker_ground_anchor_pose_raw:t=>{let r=Se(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},world_tracker_reset:e=>Te(e)}}(a);const t=function(e){return{worker_message_send_count:e.cwrap("worker_message_send_count","number",[]),worker_message_send_clear:e.cwrap("worker_message_send_clear",null,[]),worker_message_send_data_size:e.cwrap("worker_message_send_data_size","number",["number"]),worker_message_send_data:e.cwrap("worker_message_send_data","number",["number"]),worker_message_send_reference:e.cwrap("worker_message_send_reference","number",["number"]),worker_message_receive:e.cwrap("worker_message_receive",null,["number","number","number"])}}(a);let r=new n(e,((e,t)=>{C.postOutgoingMessage({p:e,t:"zappar",d:t},[t])}));C.postOutgoingMessage("loaded",[]),C.onIncomingMessage.bind((i=>{var n,_,o;switch(i.t){case"zappar":r.processBuffer(i.d),C.postOutgoingMessage({t:"buf",d:i.d},[i.d]);break;case"buf":null===(n=r.serializersByPipelineId.get(i.p))||void 0===n||n.bufferReturn(i.d);break;case"cameraFrameC2S":{let n,_=i,o=r._pipeline_by_instance.get(_.p);o&&(e.pipeline_camera_frame_submit(o,_.d,_.width,_.height,_.token,_.c2d,_.cm,_.userFacing),e.pipeline_frame_update(o),n=e.pipeline_camera_frame_device_attitude(o),r.exploreState(),$(a,t));let s={token:_.token,d:_.d,p:_.p,t:"cameraFrameRecycleS2C",att:n};C.postOutgoingMessage(s,[_.d]);break}case"rawenabled":U=i.v;break;case"rawrequest":{const e=i,t=j.get(e.p),r={t:"raw",token:e.token,p:e.p,data:t&&null!==(o=null===(_=t.ready.find((t=>t.token===e.token)))||void 0===_?void 0:_.data)&&void 0!==o?o:null};C.postOutgoingMessage(r,[]);break}case"streamC2S":{let n=i;(function(e,t,r,a,i,n,_,o){return F(this,void 0,void 0,(function*(){for(;;){let s;try{s=yield r.getReader()}catch(e){yield X(1e3);continue}try{return void(yield Y(e,t,s,a,i,n,_,o))}catch(e){}return void(yield X(1e3))}}))})(a,e,n.s,n.p,n.userFacing,r,n.source,t).then((()=>{let e={t:"streamEndedS2C",p:n.p,source:n.source};C.postOutgoingMessage(e,[])})).catch((e=>{}));break}case"cameraToScreenC2S":B=i.r;break;case"imageBitmapC2S":!function(e,t,r,a){const[i,n]=function(){if(!I||!z){const e=new OffscreenCanvas(1,1);if(z=e.getContext("webgl"),!z)throw new Error("Unable to get offscreen GL context");I=new T(z)}return[I,z]}();if(L||(L=n.createTexture(),n.bindTexture(n.TEXTURE_2D,L),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR)),!L)return;(!x||x.byteLength<y.dataWidth*y.dataHeight)&&(x=new ArrayBuffer(y.dataWidth*y.dataHeight)),i.uploadFrame(L,e.i,e.r,e.userFacing);let _=i.readFrame(L,x),o={t:"imageBitmapS2C",dataWidth:_.dataWidth,dataHeight:_.dataHeight,frame:e.i,userFacing:_.userFacing,uvTransform:_.uvTransform||m(),tokenId:e.tokenId,p:e.p};a.postOutgoingMessage(o,[e.i]);let s=r._pipeline_by_instance.get(e.p);s&&(t.pipeline_camera_frame_submit(s,x,_.dataWidth,_.dataHeight,e.tokenId,e.cameraToDevice,e.cameraModel,_.userFacing),t.pipeline_frame_update(s),r.exploreState())}(i,e,r,C);break;case"sensorDataC2S":{const t=i,a=r._pipeline_by_instance.get(t.p);if(!a)break;switch(t.sensor){case"accel":e.pipeline_motion_accelerometer_submit(a,t.timestamp,t.x,t.y,t.z);break;case"accel_w_gravity_int":e.pipeline_motion_accelerometer_with_gravity_submit_int(a,t.timestamp,t.interval,t.x,t.y,t.z);break;case"accel_wo_gravity_int":e.pipeline_motion_accelerometer_without_gravity_submit_int(a,t.timestamp,t.interval,t.x,t.y,t.z);break;case"attitude_int":e.pipeline_motion_attitude_submit_int(a,t.timestamp,t.interval,t.x,t.y,t.z);break;case"attitude":e.pipeline_motion_attitude_submit(a,t.timestamp,t.x,t.y,t.z);break;case"rotation_rate_int":e.pipeline_motion_rotation_rate_submit_int(a,t.timestamp,t.interval,t.x,t.y,t.z);break;case"rotation_rate":e.pipeline_motion_rotation_rate_submit(a,t.timestamp,t.x,t.y,t.z)}break}case"attitudeMatrixC2S":{const t=i,a=r._pipeline_by_instance.get(t.p);if(!a)break;e.pipeline_motion_attitude_matrix_submit(a,t.m);break}}}))}})}))}let V=0,Z=0,K=1;function G(e){return new Promise(((t,r)=>{const a=setTimeout((()=>{r("Frame timeout")}),2e3);e.read().then((e=>{clearTimeout(a),t(e)}))}))}const W=m(),H=new Float32Array([300,300,160,120,0,0]);function Y(e,t,r,a,i,n,_,o){var s,c;return F(this,void 0,void 0,(function*(){for(;;){let f=yield G(r);if(f.done)return void(null===(s=f.value)||void 0===s||s.close());let u=f.value,d=u.allocationSize();d>Z&&(V>0&&e._free(V),V=e._malloc(d),Z=d),yield u.copyTo(e.HEAPU8.subarray(V,V+Z));let p=K;K++;const m=u.visibleRect.width,w=u.visibleRect.height;let g,v=m,E=w;switch(B){case 270:g=new Float32Array([0,1,0,0,-1,0,0,0,0,0,1,0,1,0,0,1]),v=w,E=m;break;case 180:g=new Float32Array([-1,0,0,0,0,-1,0,0,0,0,1,0,1,1,0,1]);break;case 90:g=new Float32Array([0,-1,0,0,1,0,0,0,0,0,1,0,0,1,0,1]),v=w,E=m;break;default:g=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}let A=u.clone();i?(l=[-1,1,-1],(h=W)[0]=l[0],h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=l[1],h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=l[2],h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1):b(W);let k=300*y.dataWidth/320;H[0]=k,H[1]=k,H[2]=.5*y.dataWidth,H[3]=.5*y.dataHeight;const R={token:p,d:A,p:a,t:"videoFrameS2C",userFacing:i,uvTransform:g,w:y.dataWidth,h:y.dataHeight,cameraToDevice:W,cameraModel:H,source:_};C.postOutgoingMessage(R,[R.d,R.uvTransform.buffer]);const N=n._pipeline_by_instance.get(a);if(N){try{t.pipeline_camera_frame_submit_raw_pointer(N,V,d,q(u.format),m,w,p,W,B,H,i,null!==(c=u.timestamp)&&void 0!==c?c:-1),$(e,o)}catch(e){console.log("Exception during camera processing",e)}if(t.pipeline_frame_update(N),U){let r=j.get(a);if(r||(r={available:[],ready:[]},j.set(a,r)),r.ready.length>4){const e=r.ready.splice(0,1);for(const t of e)r.available.push(new Uint8Array(t.data.data))}const i=t.pipeline_camera_frame_data_raw_size(N);let n;for(;!n||n.byteLength<i;)r.available.length<1&&r.available.push(new Uint8Array(i)),n=r.available.pop();const _=t.pipeline_camera_frame_data_raw(N);n.set(e.HEAPU8.subarray(_,_+i)),r.ready.push({token:p,data:{data:n,width:t.pipeline_camera_frame_data_raw_width(a),height:t.pipeline_camera_frame_data_raw_height(a)}})}n.exploreState()}u.close()}var h,l}))}function X(e){return new Promise((t=>{setTimeout(t,e)}))}function q(e){switch(e){case"I420":return f.FRAME_PIXEL_FORMAT_I420;case"I420A":return f.FRAME_PIXEL_FORMAT_I420A;case"I422":return f.FRAME_PIXEL_FORMAT_I422;case"I444":return f.FRAME_PIXEL_FORMAT_I444;case"NV12":return f.FRAME_PIXEL_FORMAT_NV12;case"RGBA":case"RGBX":return f.FRAME_PIXEL_FORMAT_RGBA;case"BGRA":case"BGRX":return f.FRAME_PIXEL_FORMAT_BGRA}return f.FRAME_PIXEL_FORMAT_Y}function $(e,t){const r=t.worker_message_send_count();if(0!==r){O||(O=new MessageChannel,O.port1.start(),O.port1.addEventListener("message",(r=>{if("msgrec"!==r.data.t)return;const a=r.data.data,i=e._malloc(a.byteLength);e.HEAPU8.set(a,i),t.worker_message_receive(r.data.reference,a.byteLength,i),e._free(i)})),C.postOutgoingMessage({t:"setupCeresWorker",port:O.port2},[O.port2]));for(let a=0;a<r;a++){const r=t.worker_message_send_reference(a),i=t.worker_message_send_data_size(a),n=t.worker_message_send_data(a),_=e.HEAPU8.slice(n,n+i);O.port1.postMessage({t:"msgsend",data:_,reference:r},[_.buffer])}t.worker_message_send_clear()}}const J=self;C.onOutgoingMessage.bind((()=>{let e=C.getOutgoingMessages();for(let t of e)J.postMessage(t.msg,t.transferables)}));let Q=e=>{e&&e.data&&"wasm"===e.data.t&&(D(location.href.startsWith("blob")?e.data.url:new URL(r(751),r.b).toString(),e.data.module),J.removeEventListener("message",Q))};J.addEventListener("message",Q),J.addEventListener("message",(e=>{C.postIncomingMessage(e.data)}))})()})();
1
+ (()=>{var e={238:function(e,t,r){var a;!function(i,n){"use strict";var _="function",o="undefined",s="object",c="string",h="model",l="name",f="type",u="vendor",d="version",p="architecture",m="console",b="mobile",w="tablet",v="smarttv",E="wearable",g="embedded",y="Amazon",k="Apple",A="ASUS",R="BlackBerry",N="Browser",S="Chrome",T="Firefox",x="Google",z="Huawei",L="LG",I="Microsoft",P="Motorola",M="Opera",F="Samsung",O="Sharp",C="Sony",B="Xiaomi",U="Zebra",j="Facebook",D=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},V=function(e,t){return typeof e===c&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},Z=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,350)},G=function(e,t){for(var r,a,i,o,c,h,l=0;l<t.length&&!c;){var f=t[l],u=t[l+1];for(r=a=0;r<f.length&&!c;)if(c=f[r++].exec(e))for(i=0;i<u.length;i++)h=c[++a],typeof(o=u[i])===s&&o.length>0?2===o.length?typeof o[1]==_?this[o[0]]=o[1].call(this,h):this[o[0]]=o[1]:3===o.length?typeof o[1]!==_||o[1].exec&&o[1].test?this[o[0]]=h?h.replace(o[1],o[2]):n:this[o[0]]=h?o[1].call(this,h,o[2]):n:4===o.length&&(this[o[0]]=h?o[3].call(this,h.replace(o[1],o[2])):n):this[o]=h||n;l+=2}},W=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var a=0;a<t[r].length;a++)if(V(t[r][a],e))return"?"===r?n:r}else if(V(t[r],e))return"?"===r?n:r;return e},H={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,d],[/opios[\/ ]+([\w\.]+)/i],[d,[l,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[d,[l,M]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[l,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[l,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[d,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+N],d],[/\bfocus\/([\w\.]+)/i],[d,[l,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[l,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[l,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[l,"MIUI "+N]],[/fxios\/([-\w\.]+)/i],[d,[l,T]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 "+N]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 "+N],d],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,j],d],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[l,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[l,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[d,W,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[l,T+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,d],[/(cobalt)\/([\w\.]+)/i],[l,[d,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,K]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[u,F],[f,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[h,[u,F],[f,b]],[/\((ip(?:hone|od)[\w ]*);/i],[h,[u,k],[f,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[u,k],[f,w]],[/(macintosh);/i],[h,[u,k]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[u,z],[f,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[u,z],[f,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[h,/_/g," "],[u,B],[f,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[u,B],[f,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[u,"OPPO"],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[u,"Vivo"],[f,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[h,[u,"Realme"],[f,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[u,P],[f,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[u,P],[f,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[u,L],[f,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[u,L],[f,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[u,"Lenovo"],[f,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[u,"Nokia"],[f,b]],[/(pixel c)\b/i],[h,[u,x],[f,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[u,x],[f,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[u,C],[f,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[u,C],[f,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[u,"OnePlus"],[f,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[u,y],[f,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[u,y],[f,b]],[/(playbook);[-\w\),; ]+(rim)/i],[h,u,[f,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[u,R],[f,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[u,A],[f,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[u,A],[f,b]],[/(nexus 9)/i],[h,[u,"HTC"],[f,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[h,/_/g," "],[f,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[u,"Acer"],[f,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[u,"Meizu"],[f,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[u,O],[f,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,h,[f,b]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,h,[f,w]],[/(surface duo)/i],[h,[u,I],[f,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[u,"Fairphone"],[f,b]],[/(u304aa)/i],[h,[u,"AT&T"],[f,b]],[/\bsie-(\w*)/i],[h,[u,"Siemens"],[f,b]],[/\b(rct\w+) b/i],[h,[u,"RCA"],[f,w]],[/\b(venue[\d ]{2,7}) b/i],[h,[u,"Dell"],[f,w]],[/\b(q(?:mv|ta)\w+) b/i],[h,[u,"Verizon"],[f,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[u,"Barnes & Noble"],[f,w]],[/\b(tm\d{3}\w+) b/i],[h,[u,"NuVision"],[f,w]],[/\b(k88) b/i],[h,[u,"ZTE"],[f,w]],[/\b(nx\d{3}j) b/i],[h,[u,"ZTE"],[f,b]],[/\b(gen\d{3}) b.+49h/i],[h,[u,"Swiss"],[f,b]],[/\b(zur\d{3}) b/i],[h,[u,"Swiss"],[f,w]],[/\b((zeki)?tb.*\b) b/i],[h,[u,"Zeki"],[f,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],h,[f,w]],[/\b(ns-?\w{0,9}) b/i],[h,[u,"Insignia"],[f,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[u,"NextBook"],[f,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],h,[f,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],h,[f,b]],[/\b(ph-1) /i],[h,[u,"Essential"],[f,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[u,"Envizen"],[f,w]],[/\b(trio[-\w\. ]+) b/i],[h,[u,"MachSpeed"],[f,w]],[/\btu_(1491) b/i],[h,[u,"Rotor"],[f,w]],[/(shield[\w ]+) b/i],[h,[u,"Nvidia"],[f,w]],[/(sprint) (\w+)/i],[u,h,[f,b]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[u,I],[f,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[u,U],[f,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[u,U],[f,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,h,[f,m]],[/droid.+; (shield) bui/i],[h,[u,"Nvidia"],[f,m]],[/(playstation [345portablevi]+)/i],[h,[u,C],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[u,I],[f,m]],[/smart-tv.+(samsung)/i],[u,[f,v]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[u,F],[f,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,L],[f,v]],[/(apple) ?tv/i],[u,[h,k+" TV"],[f,v]],[/crkey/i],[[h,S+"cast"],[u,x],[f,v]],[/droid.+aft(\w)( bui|\))/i],[h,[u,y],[f,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[u,O],[f,v]],[/(bravia[\w ]+)( bui|\))/i],[h,[u,C],[f,v]],[/(mitv-\w{5}) bui/i],[h,[u,B],[f,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[u,Z],[h,Z],[f,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,v]],[/((pebble))app/i],[u,h,[f,E]],[/droid.+; (glass) \d/i],[h,[u,x],[f,E]],[/droid.+; (wt63?0{2,3})\)/i],[h,[u,U],[f,E]],[/(quest( 2)?)/i],[h,[u,j],[f,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[f,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[h,[f,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[f,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,b]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[l,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[d,W,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[d,W,H]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,d],[/\(bb(10);/i],[d,[l,R]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[l,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[d,[l,S+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[l,"Chromium OS"],d],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,d],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,d]]},q=function(e,t){if(typeof e===s&&(t=e,e=n),!(this instanceof q))return new q(e,t).getResult();var r=e||(typeof i!==o&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),a=t?function(e,t){var r={};for(var a in e)t[a]&&t[a].length%2==0?r[a]=t[a].concat(e[a]):r[a]=e[a];return r}(Y,t):Y;return this.getBrowser=function(){var e,t={};return t[l]=n,t[d]=n,G.call(t,r,a.browser),t.major=typeof(e=t.version)===c?e.replace(/[^\d\.]/g,"").split(".")[0]:n,t},this.getCPU=function(){var e={};return e[p]=n,G.call(e,r,a.cpu),e},this.getDevice=function(){var e={};return e[u]=n,e[h]=n,e[f]=n,G.call(e,r,a.device),e},this.getEngine=function(){var e={};return e[l]=n,e[d]=n,G.call(e,r,a.engine),e},this.getOS=function(){var e={};return e[l]=n,e[d]=n,G.call(e,r,a.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>350?Z(e,350):e,this},this.setUA(r),this};q.VERSION="1.0.33",q.BROWSER=D([l,d,"major"]),q.CPU=D([p]),q.DEVICE=D([h,u,f,m,b,v,w,E,g]),q.ENGINE=q.OS=D([l,d]),typeof t!==o?(e.exports&&(t=e.exports=q),t.UAParser=q):r.amdO?(a=function(){return q}.call(t,r,t,e))===n||(e.exports=a):typeof i!==o&&(i.UAParser=q);var X=typeof i!==o&&(i.jQuery||i.Zepto);if(X&&!X.ua){var $=new q;X.ua=$.getResult(),X.ua.get=function(){return $.getUA()},X.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var r in t)X.ua[r]=t[r]}}}("object"==typeof window?window:this)},751:(e,t,r)=>{"use strict";e.exports=r.p+"a5f074b0d01366261164.wasm"}},t={};function r(a){var i=t[a];if(void 0!==i)return i.exports;var n=t[a]={exports:{}};return e[a].call(n.exports,n,n.exports,r),n.exports}r.m=e,r.amdO={},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var a=t.getElementsByTagName("script");if(a.length)for(var i=a.length-1;i>-1&&!e;)e=a[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.b=self.location+"",(()=>{"use strict";var e;const t=(e="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(t={}){var r,a,i=t;i.ready=new Promise(((e,t)=>{r=e,a=t}));var n,_=Object.assign({},i),o="./this.program",s=(e,t)=>{throw t},c="";c=self.location.href,e&&(c=e),c=c.startsWith("blob:")?"":c.substr(0,c.replace(/[?#].*/,"").lastIndexOf("/")+1),n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)};var h,l=i.print||console.log.bind(console),f=i.printErr||console.error.bind(console);Object.assign(i,_),_=null,i.thisProgram&&(o=i.thisProgram),i.quit&&(s=i.quit),i.wasmBinary&&(h=i.wasmBinary),"object"!=typeof WebAssembly&&C("no native wasm support detected");var u,d,p,m,b,w,v,E,g,y,k=!1;function A(){var e=u.buffer;i.HEAP8=p=new Int8Array(e),i.HEAP16=b=new Int16Array(e),i.HEAPU8=m=new Uint8Array(e),i.HEAPU16=w=new Uint16Array(e),i.HEAP32=v=new Int32Array(e),i.HEAPU32=E=new Uint32Array(e),i.HEAPF32=g=new Float32Array(e),i.HEAPF64=y=new Float64Array(e)}var R=[],N=[],S=[];function T(){var e=i.preRun.shift();R.unshift(e)}var x,z,L,I=0,P=null,M=null;function F(){I++,i.monitorRunDependencies?.(I)}function O(){if(I--,i.monitorRunDependencies?.(I),0==I&&(null!==P&&(clearInterval(P),P=null),M)){var e=M;M=null,e()}}function C(e){throw i.onAbort?.(e),f(e="Aborted("+e+")"),k=!0,d=1,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}if(!(x="zappar-cv.wasm").startsWith("data:application/octet-stream;base64,")){var B=x;x=i.locateFile?i.locateFile(B,c):c+B}function U(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var j=e=>{for(;0<e.length;)e.shift()(i)},D=i.noExitRuntime||!0,V=[],K=0,Z=0;class G{constructor(e){this.uh=e,this.jh=e-24}}var W=e=>{var t=Z;if(!t)return fr(0),0;var r=new G(t);E[r.jh+16>>2]=t;var a=E[r.jh+4>>2];if(!a)return fr(0),t;for(var i in e){var n=e[i];if(0===n||n===a)break;if(wr(n,a,r.jh+16))return fr(n),t}return fr(a),t},H=()=>{var e=V.pop();e||C("no exception to throw");var t=e.uh;throw 0==p[e.jh+13>>0]&&(V.push(e),p[e.jh+13>>0]=1,p[e.jh+12>>0]=0,K++),Z=t},Y=(e,t)=>{for(var r=0,a=e.length-1;0<=a;a--){var i=e[a];"."===i?e.splice(a,1):".."===i?(e.splice(a,1),r++):r&&(e.splice(a,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},q=e=>{var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=Y(e.split("/").filter((e=>!!e)),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},X=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&=t.substr(0,t.length-1),e+t):"."},$=e=>{if("/"===e)return"/";var t=(e=(e=q(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},J=e=>(J=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);C("initRandomDevice")})())(e);function Q(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=Y(e.split("/").filter((e=>!!e)),!t).join("/"))||"."}var ee="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,te=(e,t,r)=>{var a=t+r;for(r=t;e[r]&&!(r>=a);)++r;if(16<r-t&&e.buffer&&ee)return ee.decode(e.subarray(t,r));for(a="";t<r;){var i=e[t++];if(128&i){var n=63&e[t++];if(192==(224&i))a+=String.fromCharCode((31&i)<<6|n);else{var _=63&e[t++];65536>(i=224==(240&i)?(15&i)<<12|n<<6|_:(7&i)<<18|n<<12|_<<6|63&e[t++])?a+=String.fromCharCode(i):(i-=65536,a+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else a+=String.fromCharCode(i)}return a},re=[],ae=e=>{for(var t=0,r=0;r<e.length;++r){var a=e.charCodeAt(r);127>=a?t++:2047>=a?t+=2:55296<=a&&57343>=a?(t+=4,++r):t+=3}return t},ie=(e,t,r,a)=>{if(!(0<a))return 0;var i=r;a=r+a-1;for(var n=0;n<e.length;++n){var _=e.charCodeAt(n);if(55296<=_&&57343>=_&&(_=65536+((1023&_)<<10)|1023&e.charCodeAt(++n)),127>=_){if(r>=a)break;t[r++]=_}else{if(2047>=_){if(r+1>=a)break;t[r++]=192|_>>6}else{if(65535>=_){if(r+2>=a)break;t[r++]=224|_>>12}else{if(r+3>=a)break;t[r++]=240|_>>18,t[r++]=128|_>>12&63}t[r++]=128|_>>6&63}t[r++]=128|63&_}}return t[r]=0,r-i};function ne(e,t){var r=Array(ae(e)+1);return e=ie(e,r,0,r.length),t&&(r.length=e),r}var _e=[];function oe(e,t){_e[e]={input:[],kh:[],sh:t},Be(e,se)}var se={open(e){var t=_e[e.node.Dh];if(!t)throw new ge(43);e.hh=t,e.seekable=!1},close(e){e.hh.sh.Hh(e.hh)},Hh(e){e.hh.sh.Hh(e.hh)},read(e,t,r,a){if(!e.hh||!e.hh.sh.Wh)throw new ge(60);for(var i=0,n=0;n<a;n++){try{var _=e.hh.sh.Wh(e.hh)}catch(e){throw new ge(29)}if(void 0===_&&0===i)throw new ge(6);if(null==_)break;i++,t[r+n]=_}return i&&(e.node.timestamp=Date.now()),i},write(e,t,r,a){if(!e.hh||!e.hh.sh.Rh)throw new ge(60);try{for(var i=0;i<a;i++)e.hh.sh.Rh(e.hh,t[r+i])}catch(e){throw new ge(29)}return a&&(e.node.timestamp=Date.now()),i}},ce={Wh(){e:{if(!re.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e){e=null;break e}re=ne(e,!0)}e=re.shift()}return e},Rh(e,t){null===t||10===t?(l(te(e.kh,0)),e.kh=[]):0!=t&&e.kh.push(t)},Hh(e){e.kh&&0<e.kh.length&&(l(te(e.kh,0)),e.kh=[])},li:()=>({Di:25856,Fi:5,Ci:191,Ei:35387,Bi:[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]}),mi:()=>0,ni:()=>[24,80]},he={Rh(e,t){null===t||10===t?(f(te(e.kh,0)),e.kh=[]):0!=t&&e.kh.push(t)},Hh(e){e.kh&&0<e.kh.length&&(f(te(e.kh,0)),e.kh=[])}};function le(e,t){var r=e.fh?e.fh.length:0;r>=t||(t=Math.max(t,r*(1048576>r?2:1.125)>>>0),0!=r&&(t=Math.max(t,256)),r=e.fh,e.fh=new Uint8Array(t),0<e.ih&&e.fh.set(r.subarray(0,e.ih),0))}var fe={oh:null,rh:()=>fe.createNode(null,"/",16895,0),createNode(e,t,r,a){if(24576==(61440&r)||4096==(61440&r))throw new ge(63);return fe.oh||(fe.oh={dir:{node:{nh:fe.eh.nh,ph:fe.eh.ph,Ch:fe.eh.Ch,Ih:fe.eh.Ih,ai:fe.eh.ai,Oh:fe.eh.Oh,Kh:fe.eh.Kh,Jh:fe.eh.Jh,Lh:fe.eh.Lh},stream:{wh:fe.gh.wh}},file:{node:{nh:fe.eh.nh,ph:fe.eh.ph},stream:{wh:fe.gh.wh,read:fe.gh.read,write:fe.gh.write,Fh:fe.gh.Fh,Yh:fe.gh.Yh,$h:fe.gh.$h}},link:{node:{nh:fe.eh.nh,ph:fe.eh.ph,Eh:fe.eh.Eh},stream:{}},Uh:{node:{nh:fe.eh.nh,ph:fe.eh.ph},stream:Ce}}),xe((r=Te(e,t,r,a)).mode)?(r.eh=fe.oh.dir.node,r.gh=fe.oh.dir.stream,r.fh={}):32768==(61440&r.mode)?(r.eh=fe.oh.file.node,r.gh=fe.oh.file.stream,r.ih=0,r.fh=null):40960==(61440&r.mode)?(r.eh=fe.oh.link.node,r.gh=fe.oh.link.stream):8192==(61440&r.mode)&&(r.eh=fe.oh.Uh.node,r.gh=fe.oh.Uh.stream),r.timestamp=Date.now(),e&&(e.fh[t]=r,e.timestamp=r.timestamp),r},Ki:e=>e.fh?e.fh.subarray?e.fh.subarray(0,e.ih):new Uint8Array(e.fh):new Uint8Array(0),eh:{nh(e){var t={};return t.fi=8192==(61440&e.mode)?e.id:1,t.Xh=e.id,t.mode=e.mode,t.si=1,t.uid=0,t.hi=0,t.Dh=e.Dh,xe(e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.ih:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.bi=new Date(e.timestamp),t.ri=new Date(e.timestamp),t.ei=new Date(e.timestamp),t.ci=4096,t.di=Math.ceil(t.size/t.ci),t},ph(e,t){if(void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&(t=t.size,e.ih!=t))if(0==t)e.fh=null,e.ih=0;else{var r=e.fh;e.fh=new Uint8Array(t),r&&e.fh.set(r.subarray(0,Math.min(t,e.ih))),e.ih=t}},Ch(){throw ye[44]},Ih:(e,t,r,a)=>fe.createNode(e,t,r,a),ai(e,t,r){if(xe(e.mode)){try{var a=Se(t,r)}catch(e){}if(a)for(var i in a.fh)throw new ge(55)}delete e.parent.fh[e.name],e.parent.timestamp=Date.now(),e.name=r,t.fh[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},Oh(e,t){delete e.fh[t],e.timestamp=Date.now()},Kh(e,t){var r,a=Se(e,t);for(r in a.fh)throw new ge(55);delete e.fh[t],e.timestamp=Date.now()},Jh(e){var t,r=[".",".."];for(t of Object.keys(e.fh))r.push(t);return r},Lh:(e,t,r)=>((e=fe.createNode(e,t,41471,0)).link=r,e),Eh(e){if(40960!=(61440&e.mode))throw new ge(28);return e.link}},gh:{read(e,t,r,a,i){var n=e.node.fh;if(i>=e.node.ih)return 0;if(8<(e=Math.min(e.node.ih-i,a))&&n.subarray)t.set(n.subarray(i,i+e),r);else for(a=0;a<e;a++)t[r+a]=n[i+a];return e},write(e,t,r,a,i,n){if(t.buffer===p.buffer&&(n=!1),!a)return 0;if((e=e.node).timestamp=Date.now(),t.subarray&&(!e.fh||e.fh.subarray)){if(n)return e.fh=t.subarray(r,r+a),e.ih=a;if(0===e.ih&&0===i)return e.fh=t.slice(r,r+a),e.ih=a;if(i+a<=e.ih)return e.fh.set(t.subarray(r,r+a),i),a}if(le(e,i+a),e.fh.subarray&&t.subarray)e.fh.set(t.subarray(r,r+a),i);else for(n=0;n<a;n++)e.fh[i+n]=t[r+n];return e.ih=Math.max(e.ih,i+a),a},wh(e,t,r){if(1===r?t+=e.position:2===r&&32768==(61440&e.node.mode)&&(t+=e.node.ih),0>t)throw new ge(28);return t},Fh(e,t,r){le(e.node,t+r),e.node.ih=Math.max(e.node.ih,t+r)},Yh(e,t,r,a,i){if(32768!=(61440&e.node.mode))throw new ge(43);if(e=e.node.fh,2&i||e.buffer!==p.buffer){if((0<r||r+t<e.length)&&(e=e.subarray?e.subarray(r,r+t):Array.prototype.slice.call(e,r,r+t)),r=!0,C(),!(t=void 0))throw new ge(48);p.set(e,t)}else r=!1,t=e.byteOffset;return{jh:t,zh:r}},$h:(e,t,r,a)=>(fe.gh.write(e,t,0,a,r,!1),0)}},ue=i.preloadPlugins||[],de=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},pe=null,me={},be=[],we=1,ve=null,Ee=!0,ge=class{constructor(e){this.name="ErrnoError",this.lh=e}},ye={};function ke(e,t={}){if(!(e=Q(e)))return{path:"",node:null};if(8<(t=Object.assign({Vh:!0,Sh:0},t)).Sh)throw new ge(32);e=e.split("/").filter((e=>!!e));for(var r=pe,a="/",i=0;i<e.length;i++){var n=i===e.length-1;if(n&&t.parent)break;if(r=Se(r,e[i]),a=q(a+"/"+e[i]),r.Ah&&(!n||n&&t.Vh)&&(r=r.Ah.root),!n||t.Gh)for(n=0;40960==(61440&r.mode);)if(r=Ze(a),r=ke(a=Q(X(a),r),{Sh:t.Sh+1}).node,40<n++)throw new ge(32)}return{path:a,node:r}}function Ae(e){for(var t;;){if(e===e.parent)return e=e.rh.Zh,t?"/"!==e[e.length-1]?`${e}/${t}`:e+t:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}}function Re(e,t){for(var r=0,a=0;a<t.length;a++)r=(r<<5)-r+t.charCodeAt(a)|0;return(e+r>>>0)%ve.length}function Ne(e){var t=Re(e.parent.id,e.name);if(ve[t]===e)ve[t]=e.Bh;else for(t=ve[t];t;){if(t.Bh===e){t.Bh=e.Bh;break}t=t.Bh}}function Se(e,t){var r=xe(e.mode)?(r=Le(e,"x"))?r:e.eh.Ch?0:2:54;if(r)throw new ge(r);for(r=ve[Re(e.id,t)];r;r=r.Bh){var a=r.name;if(r.parent.id===e.id&&a===t)return r}return e.eh.Ch(e,t)}function Te(e,t,r,a){return t=Re((e=new ir(e,t,r,a)).parent.id,e.name),e.Bh=ve[t],ve[t]=e}function xe(e){return 16384==(61440&e)}function ze(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t}function Le(e,t){return Ee?0:!t.includes("r")||292&e.mode?t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0:2}function Ie(e,t){try{return Se(e,t),20}catch(e){}return Le(e,"wx")}function Pe(e,t,r){try{var a=Se(e,t)}catch(e){return e.lh}if(e=Le(e,"wx"))return e;if(r){if(!xe(a.mode))return 54;if(a===a.parent||"/"===Ae(a))return 10}else if(xe(a.mode))return 31;return 0}function Me(e){if(!(e=be[e]))throw new ge(8);return e}function Fe(e,t=-1){return qe||((qe=function(){this.mh={}}).prototype={},Object.defineProperties(qe.prototype,{object:{get(){return this.node},set(e){this.node=e}},flags:{get(){return this.mh.flags},set(e){this.mh.flags=e}},position:{get(){return this.mh.position},set(e){this.mh.position=e}}})),e=Object.assign(new qe,e),-1==t&&(t=function(){for(var e=0;4096>=e;e++)if(!be[e])return e;throw new ge(33)}()),e.th=t,be[t]=e}var Oe,Ce={open(e){e.gh=me[e.node.Dh].gh,e.gh.open?.(e)},wh(){throw new ge(70)}};function Be(e,t){me[e]={gh:t}}function Ue(e,t){var r="/"===t;if(r&&pe)throw new ge(10);if(!r&&t){var a=ke(t,{Vh:!1});if(t=a.path,(a=a.node).Ah)throw new ge(10);if(!xe(a.mode))throw new ge(54)}t={type:e,Oi:{},Zh:t,pi:[]},(e=e.rh(t)).rh=t,t.root=e,r?pe=e:a&&(a.Ah=t,a.rh&&a.rh.pi.push(t))}function je(e,t,r){var a=ke(e,{parent:!0}).node;if(!(e=$(e))||"."===e||".."===e)throw new ge(28);var i=Ie(a,e);if(i)throw new ge(i);if(!a.eh.Ih)throw new ge(63);return a.eh.Ih(a,e,t,r)}function De(e){return je(e,16895,0)}function Ve(e,t,r){void 0===r&&(r=t,t=438),je(e,8192|t,r)}function Ke(e,t){if(!Q(e))throw new ge(44);var r=ke(t,{parent:!0}).node;if(!r)throw new ge(44);var a=Ie(r,t=$(t));if(a)throw new ge(a);if(!r.eh.Lh)throw new ge(63);r.eh.Lh(r,t,e)}function Ze(e){if(!(e=ke(e).node))throw new ge(44);if(!e.eh.Eh)throw new ge(28);return Q(Ae(e.parent),e.eh.Eh(e))}function Ge(e,t,r){if(""===e)throw new ge(44);if("string"==typeof t){var a={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(void 0===a)throw Error(`Unknown file open mode: ${t}`);t=a}if(r=64&t?4095&(void 0===r?438:r)|32768:0,"object"==typeof e)var n=e;else{e=q(e);try{n=ke(e,{Gh:!(131072&t)}).node}catch(e){}}if(a=!1,64&t)if(n){if(128&t)throw new ge(20)}else n=je(e,r,0),a=!0;if(!n)throw new ge(44);if(8192==(61440&n.mode)&&(t&=-513),65536&t&&!xe(n.mode))throw new ge(54);if(!a&&(r=n?40960==(61440&n.mode)?32:xe(n.mode)&&("r"!==ze(t)||512&t)?31:Le(n,ze(t)):44))throw new ge(r);if(512&t&&!a){if(!(r="string"==typeof(r=n)?ke(r,{Gh:!0}).node:r).eh.ph)throw new ge(63);if(xe(r.mode))throw new ge(31);if(32768!=(61440&r.mode))throw new ge(28);if(a=Le(r,"w"))throw new ge(a);r.eh.ph(r,{size:0,timestamp:Date.now()})}return t&=-131713,(n=Fe({node:n,path:Ae(n),flags:t,seekable:!0,position:0,gh:n.gh,xi:[],error:!1})).gh.open&&n.gh.open(n),!i.logReadFiles||1&t||(Xe||={},e in Xe||(Xe[e]=1)),n}function We(e,t,r){if(null===e.th)throw new ge(8);if(!e.seekable||!e.gh.wh)throw new ge(70);if(0!=r&&1!=r&&2!=r)throw new ge(28);return e.position=e.gh.wh(e,t,r),e.xi=[],e.position}function He(e,t,r){e=q("/dev/"+e);var a=de(!!t,!!r);Ye||=64;var i=Ye++<<8|0;Be(i,{open(e){e.seekable=!1},close(){r?.buffer?.length&&r(10)},read(e,r,a,i){for(var n=0,_=0;_<i;_++){try{var o=t()}catch(e){throw new ge(29)}if(void 0===o&&0===n)throw new ge(6);if(null==o)break;n++,r[a+_]=o}return n&&(e.node.timestamp=Date.now()),n},write(e,t,a,i){for(var n=0;n<i;n++)try{r(t[a+n])}catch(e){throw new ge(29)}return i&&(e.node.timestamp=Date.now()),n}}),Ve(e,a,i)}var Ye,qe,Xe,$e={},Je=(e,t)=>e?te(m,e,t):"";function Qe(e,t){if("/"===t.charAt(0))return t;if(e=-100===e?"/":Me(e).path,0==t.length)throw new ge(44);return q(e+"/"+t)}var et=void 0;function tt(){var e=v[+et>>2];return et+=4,e}var rt,at=e=>0==e%4&&(0!=e%100||0==e%400),it=[0,31,60,91,121,152,182,213,244,274,305,335],nt=[0,31,59,90,120,151,181,212,243,273,304,334],_t=e=>{var t=ae(e)+1,r=cr(t);return r&&ie(e,m,r,t),r},ot=e=>{d=e,D||(i.onExit?.(e),k=!0),s(e,new U(e))},st=e=>{if(!k)try{if(e(),!D)try{d=e=d,ot(e)}catch(e){e instanceof U||"unwind"==e||s(1,e)}}catch(e){e instanceof U||"unwind"==e||s(1,e)}},ct=(e,t)=>{setTimeout((()=>{st(e)}),t)};rt=()=>performance.now();var ht,lt,ft,ut=!1,dt=null,pt=0,mt=null,bt=0,wt=0,vt=0,Et=[],gt={},yt=!1,kt=!1,At=[],Rt=!1,Nt=void 0,St=void 0;function Tt(){return!!yt&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0)}var xt=0;function zt(e){if("function"==typeof requestAnimationFrame)requestAnimationFrame(e);else{var t=Date.now();if(0===xt)xt=t+1e3/60;else for(;t+2>=xt;)xt+=1e3/60;setTimeout(e,Math.max(xt-t,0))}}function Lt(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}var It=[];function Pt(){var e=i.canvas;It.forEach((t=>t(e.width,e.height)))}function Mt(e,t,r){t&&r?(e.yi=t,e.ii=r):(t=e.yi,r=e.ii);var a=t,n=r;if(i.forcedAspectRatio&&0<i.forcedAspectRatio&&(a/n<i.forcedAspectRatio?a=Math.round(n*i.forcedAspectRatio):n=Math.round(a/i.forcedAspectRatio)),(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e.parentNode&&"undefined"!=typeof screen){var _=Math.min(screen.width/a,screen.height/n);a=Math.round(a*_),n=Math.round(n*_)}St?(e.width!=a&&(e.width=a),e.height!=n&&(e.height=n),void 0!==e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=t&&(e.width=t),e.height!=r&&(e.height=r),void 0!==e.style&&(a!=t||n!=r?(e.style.setProperty("width",a+"px","important"),e.style.setProperty("height",n+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))}var Ft,Ot,Ct,Bt,Ut,jt=[],Dt=e=>{var t=jt[e];return t||(e>=jt.length&&(jt.length=e+1),jt[e]=t=Ct.get(e)),t};function Vt(e,t,r,a,i){function n(){var t=0,r=0;y.response&&v&&0===E[e+12>>2]&&(r=y.response.byteLength),0<r&&(t=cr(r),m.set(new Uint8Array(y.response),t)),E[e+12>>2]=t,Kt(e+16,r),Kt(e+24,0),(t=y.response?y.response.byteLength:0)&&Kt(e+32,t),w[e+40>>1]=y.readyState,w[e+42>>1]=y.status,y.statusText&&ie(y.statusText,m,e+44,64)}var _=E[e+8>>2];if(_){var o=_?te(m,_):"",s=e+112,c=Je(s+0);c||="GET";var h=E[s+56>>2],l=E[s+68>>2],f=E[s+72>>2];_=E[s+76>>2];var u=E[s+80>>2],d=E[s+84>>2],p=E[s+88>>2],b=E[s+52>>2],v=!!(1&b),g=!!(2&b);b=!!(64&b),l=l?l?te(m,l):"":void 0,f=f?f?te(m,f):"":void 0;var y=new XMLHttpRequest;if(y.withCredentials=!!m[s+60>>0],y.open(c,o,!b,l,f),b||(y.timeout=h),y.mh=o,y.responseType="arraybuffer",u&&(o=u?te(m,u):"",y.overrideMimeType(o)),_)for(;(s=E[_>>2])&&(o=E[_+4>>2]);)_+=8,s=s?te(m,s):"",o=o?te(m,o):"",y.setRequestHeader(s,o);var k=Bt.Fh(y);E[e>>2]=k,_=d&&p?m.slice(d,d+p):null,y.onload=a=>{Bt.has(k)&&(n(),200<=y.status&&300>y.status?t?.(e,y,a):r?.(e,y,a))},y.onerror=t=>{Bt.has(k)&&(n(),r?.(e,y,t))},y.ontimeout=t=>{Bt.has(k)&&r?.(e,y,t)},y.onprogress=t=>{if(Bt.has(k)){var r=v&&g&&y.response?y.response.byteLength:0,i=0;0<r&&v&&g&&(i=cr(r),m.set(new Uint8Array(y.response),i)),E[e+12>>2]=i,Kt(e+16,r),Kt(e+24,t.loaded-r),Kt(e+32,t.total),w[e+40>>1]=y.readyState,3<=y.readyState&&0===y.status&&0<t.loaded&&(y.status=200),w[e+42>>1]=y.status,y.statusText&&ie(y.statusText,m,e+44,64),a?.(e,y,t),i&&sr(i)}},y.onreadystatechange=t=>{Bt.has(k)&&(w[e+40>>1]=y.readyState,2<=y.readyState&&(w[e+42>>1]=y.status),i?.(e,y,t))};try{y.send(_)}catch(t){r?.(e,y,t)}}else r(e,0,"no url specified!")}var Kt=(e,t)=>{E[e>>2]=t,E[e+4>>2]=(t-E[e>>2])/4294967296};function Zt(e,t,r,a){var i=Ut;if(i){var n=E[e+112+64>>2];n||=E[e+8>>2];var _=n?te(m,n):"";try{var o=i.transaction(["FILES"],"readwrite").objectStore("FILES").put(t,_);o.onsuccess=()=>{w[e+40>>1]=4,w[e+42>>1]=200,ie("OK",m,e+44,64),r(e,0,_)},o.onerror=t=>{w[e+40>>1]=4,w[e+42>>1]=413,ie("Payload Too Large",m,e+44,64),a(e,0,t)}}catch(t){a(e,0,t)}}else a(e,0,"IndexedDB not available!")}var Gt,Wt,Ht,Yt={},qt=()=>{if(!Gt){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:o||"./this.program"};for(e in Yt)void 0===Yt[e]?delete t[e]:t[e]=Yt[e];var r=[];for(e in t)r.push(`${e}=${t[e]}`);Gt=r}return Gt},Xt=1,$t=[],Jt=[],Qt=e=>{for(var t=Xt++,r=e.length;r<t;r++)e[r]=null;return t},er=e=>{if(e||=Ht,!e.ji){e.ji=!0;var t=e.Ph;(e=>{var t=e.getExtension("ANGLE_instanced_arrays");t&&(e.vertexAttribDivisor=(e,r)=>t.vertexAttribDivisorANGLE(e,r),e.drawArraysInstanced=(e,r,a,i)=>t.drawArraysInstancedANGLE(e,r,a,i),e.drawElementsInstanced=(e,r,a,i,n)=>t.drawElementsInstancedANGLE(e,r,a,i,n))})(t),(e=>{var t=e.getExtension("OES_vertex_array_object");t&&(e.createVertexArray=()=>t.createVertexArrayOES(),e.deleteVertexArray=e=>t.deleteVertexArrayOES(e),e.bindVertexArray=e=>t.bindVertexArrayOES(e),e.isVertexArray=e=>t.isVertexArrayOES(e))})(t),(e=>{var t=e.getExtension("WEBGL_draw_buffers");t&&(e.drawBuffers=(e,r)=>t.drawBuffersWEBGL(e,r))})(t),t.Hi=t.getExtension("EXT_disjoint_timer_query"),t.Li=t.getExtension("WEBGL_multi_draw"),function(e){var t="ANGLE_instanced_arrays EXT_blend_minmax EXT_disjoint_timer_query EXT_frag_depth EXT_shader_texture_lod EXT_sRGB OES_element_index_uint OES_fbo_render_mipmap OES_standard_derivatives OES_texture_float OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_depth_texture WEBGL_draw_buffers EXT_color_buffer_half_float EXT_float_blend EXT_texture_compression_bptc EXT_texture_compression_rgtc EXT_texture_filter_anisotropic KHR_parallel_shader_compile OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context WEBGL_multi_draw".split(" ");return(e.getSupportedExtensions()||[]).filter((e=>t.includes(e)))}(t).forEach((e=>{e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}},tr={},rr=[31,29,31,30,31,30,31,31,30,31,30,31],ar=[31,28,31,30,31,30,31,31,30,31,30,31];function ir(e,t,r,a){e||=this,this.parent=e,this.rh=e.rh,this.Ah=null,this.id=we++,this.name=t,this.mode=r,this.eh={},this.gh={},this.Dh=a}Object.defineProperties(ir.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}}}),[44].forEach((e=>{ye[e]=new ge(e),ye[e].stack="<generic error, no stack>"})),ve=Array(4096),Ue(fe,"/"),De("/tmp"),De("/home"),De("/home/web_user"),function(){De("/dev"),Be(259,{read:()=>0,write:(e,t,r,a)=>a}),Ve("/dev/null",259),oe(1280,ce),oe(1536,he),Ve("/dev/tty",1280),Ve("/dev/tty1",1536);var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=J(e).byteLength),e[--t]);He("random",r),He("urandom",r),De("/dev/shm"),De("/dev/shm/tmp")}(),function(){De("/proc");var e=De("/proc/self");De("/proc/self/fd"),Ue({rh(){var t=Te(e,"fd",16895,73);return t.eh={Ch(e,t){var r=Me(+t);return(e={parent:null,rh:{Zh:"fake"},eh:{Eh:()=>r.path}}).parent=e}},t}},"/proc/self/fd")}(),i.requestFullscreen=function(e,t){function r(){yt=!1;var e=a.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e?(a.exitFullscreen=Tt,Nt&&a.requestPointerLock(),yt=!0,St?("undefined"!=typeof SDL&&(v[SDL.screen>>2]=8388608|E[SDL.screen>>2]),Mt(i.canvas),Pt()):Mt(a)):(e.parentNode.insertBefore(a,e),e.parentNode.removeChild(e),St?("undefined"!=typeof SDL&&(v[SDL.screen>>2]=-8388609&E[SDL.screen>>2]),Mt(i.canvas),Pt()):Mt(a)),i.onFullScreen?.(yt),i.onFullscreen?.(yt)}void 0===(Nt=e)&&(Nt=!0),void 0===(St=t)&&(St=!1);var a=i.canvas;Rt||(Rt=!0,document.addEventListener("fullscreenchange",r,!1),document.addEventListener("mozfullscreenchange",r,!1),document.addEventListener("webkitfullscreenchange",r,!1),document.addEventListener("MSFullscreenChange",r,!1));var n=document.createElement("div");a.parentNode.insertBefore(n,a),n.appendChild(a),n.requestFullscreen=n.requestFullscreen||n.mozRequestFullScreen||n.msRequestFullscreen||(n.webkitRequestFullscreen?()=>n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):null)||(n.webkitRequestFullScreen?()=>n.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):null),n.requestFullscreen()},i.requestAnimationFrame=zt,i.setCanvasSize=function(e,t,r){Mt(i.canvas,e,t),r||Pt()},i.pauseMainLoop=function(){dt=null,pt++},i.resumeMainLoop=function(){pt++;var e=bt,t=wt,r=mt;mt=null,(e=>{!mt||C("emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),mt=e;var t=pt;ut=!1,lt=function(){if(!k)if(0<Et.length){var r=Et.shift();if(r.Ji(r.Ai),ft){var a=ft,n=0==a%1?a-1:Math.floor(a);ft=r.Gi?n:(8*a+(n+.5))/9}i.setStatus&&(r=i.statusMessage||"Please wait...",n=gt.Ii,(a=ft)?a<n?i.setStatus(r+" ("+(n-a)+"/"+n+")"):i.setStatus(r):i.setStatus("")),t<pt||setTimeout(lt,0)}else t<pt||(vt=vt+1|0,1==bt&&1<wt&&0!=vt%wt?dt():(0==bt&&(ht=rt()),k||i.preMainLoop&&!1===i.preMainLoop()||(st(e),i.postMainLoop?.()),t<pt||("object"==typeof SDL&&SDL.audio?.Pi?.(),dt())))}})(r),((e,t)=>{if(bt=e,wt=t,mt)if(ut||=!0,0==e)dt=function(){var e=0|Math.max(0,ht+t-rt());setTimeout(lt,e)};else if(1==e)dt=function(){zt(lt)};else if(2==e){if(void 0===Ft)if("undefined"==typeof setImmediate){var r=[];addEventListener("message",(e=>{"setimmediate"!==e.data&&"setimmediate"!==e.data.target||(e.stopPropagation(),r.shift()())}),!0),Ft=function(e){r.push(e),void 0===i.setImmediates&&(i.setImmediates=[]),i.setImmediates.push(e),postMessage({target:"setimmediate"})}}else Ft=setImmediate;dt=function(){Ft(lt)}}})(e,t),dt()},i.getUserMedia=function(e){let t;(t=window).getUserMedia||(t.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},i.createContext=function(e,t,r,a){if(t&&i.Qh&&e==i.canvas)return i.Qh;var n;if(t){var _={antialias:!1,alpha:!1,oi:1};if(a)for(var o in a)_[o]=a[o];if(void 0!==tr&&(n=((e,t)=>{e.mh||(e.mh=e.getContext,e.getContext=function(t,r){return"webgl"==t==(r=e.mh(t,r))instanceof WebGLRenderingContext?r:null});var r=e.getContext("webgl",t);return r?((e,t)=>{var r=Qt(Jt),a={handle:r,attributes:t,version:t.oi,Ph:e};return e.canvas&&(e.canvas.zi=a),Jt[r]=a,(void 0===t.gi||t.gi)&&er(a),r})(r,t):0})(e,_)))var s=Jt[n].Ph}else s=e.getContext("2d");return s?(r&&(t||void 0===nr||C("cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),i.Qh=s,t&&(Ht=Jt[n],i.Qh=nr=Ht?.Ph),i.Ri=t,At.forEach((e=>e())),function(){function e(){kt=document.pointerLockElement===i.canvas||document.mozPointerLockElement===i.canvas||document.webkitPointerLockElement===i.canvas||document.msPointerLockElement===i.canvas}if(!Ot){Ot=!0,ue.push({canHandle:function(e){return!i.Ni&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,t,r,a){var i=new Blob([e],{type:Lt(t)});i.size!==e.length&&(i=new Blob([new Uint8Array(e).buffer],{type:Lt(t)}));var n=URL.createObjectURL(i),_=new Image;_.onload=()=>{_.complete||C(`Image ${t} could not be decoded`);var a=document.createElement("canvas");a.width=_.width,a.height=_.height,a.getContext("2d").drawImage(_,0,0),URL.revokeObjectURL(n),r?.(e)},_.onerror=()=>{f(`Image ${n} could not be decoded`),a?.()},_.src=n}}),ue.push({canHandle:function(e){return!i.Mi&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,t,r){function a(){i||(i=!0,r?.(e))}var i=!1,n=URL.createObjectURL(new Blob([e],{type:Lt(t)})),_=new Audio;_.addEventListener("canplaythrough",(()=>a()),!1),_.onerror=function(){if(!i){f(`warning: browser could not fully decode audio ${t}, trying slower base64 approach`);for(var r="",n=0,o=0,s=0;s<e.length;s++)for(n=n<<8|e[s],o+=8;6<=o;){var c=n>>o-6&63;o-=6,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[c]}2==o?(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&n)<<4],r+="=="):4==o&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&n)<<2],r+="="),_.src="data:audio/x-"+t.substr(-3)+";base64,"+r,a()}},_.src=n,ct((()=>{a()}),1e4)}});var t=i.canvas;t&&(t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock||t.msRequestPointerLock||(()=>{}),t.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),t.exitPointerLock=t.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",e,!1),document.addEventListener("mozpointerlockchange",e,!1),document.addEventListener("webkitpointerlockchange",e,!1),document.addEventListener("mspointerlockchange",e,!1),i.elementPointerLock&&t.addEventListener("click",(e=>{!kt&&i.canvas.requestPointerLock&&(i.canvas.requestPointerLock(),e.preventDefault())}),!1))}}()),s):null},Bt=new class{constructor(){this.zh=[void 0],this.mh=[]}get(e){return this.zh[e]}has(e){return void 0!==this.zh[e]}Fh(e){var t=this.mh.pop()||this.zh.length;return this.zh[t]=e,t}},F(),function(e,t){try{var r=indexedDB.open("emscripten_filesystem",1)}catch(e){return void t()}r.onupgradeneeded=e=>{(e=e.target.result).objectStoreNames.contains("FILES")&&e.deleteObjectStore("FILES"),e.createObjectStore("FILES")},r.onsuccess=e=>(e=>{Ut=e,O()})(e.target.result),r.onerror=t}(0,(()=>{Ut=!1,O()}));var nr,_r={q:e=>{if(e=new G(e),0==p[e.jh+12>>0]&&(p[e.jh+12>>0]=1,K--),p[e.jh+13>>0]=0,V.push(e),br(e.uh),vr(E[e.jh+4>>2]))e=E[e.uh>>2];else{var t=E[e.jh+16>>2];e=0!==t?t:e.uh}return e},Mb:()=>{if(!V.length)return 0;var e=V[V.length-1];return br(e.uh),e.uh},y:()=>{lr(0,0);var e=V.pop();mr(e.uh),Z=0},a:()=>W([]),i:e=>W([e]),G:(e,t)=>W([e,t]),Fa:H,Lb:e=>{e&&(e=new G(e),V.push(e),p[e.jh+13>>0]=1,H())},n:(e,t,r)=>{var a=new G(e);throw E[a.jh+16>>2]=0,E[a.jh+4>>2]=t,E[a.jh+8>>2]=r,K++,Z=e},Nb:()=>K,d:e=>{throw Z||=e,Z},R:function(e,t,r){et=r;try{var a=Me(e);switch(t){case 0:var i=tt();if(0>i)break;for(;be[i];)i++;return Fe(a,i).th;case 1:case 2:case 13:case 14:return 0;case 3:return a.flags;case 4:return i=tt(),a.flags|=i,0;case 12:return i=tt(),b[i+0>>1]=2,0}return-28}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.lh}},Tb:function(e,t,r){try{var a=Me(e);if(!a.vh){var i=ke(a.path,{Gh:!0}).node;if(!i.eh.Jh)throw new ge(54);var n=i.eh.Jh(i);a.vh=n}e=0;for(var _=We(a,0,1),o=Math.floor(_/280);o<a.vh.length&&e+280<=r;){var s=a.vh[o];if("."===s)var c=a.node.id,h=4;else if(".."===s)c=ke(a.path,{parent:!0}).node.id,h=4;else{var l=Se(a.node,s);c=l.id,h=8192==(61440&l.mode)?2:xe(l.mode)?4:40960==(61440&l.mode)?10:8}L=[c>>>0,(z=c,1<=+Math.abs(z)?0<z?+Math.floor(z/4294967296)>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],v[t+e>>2]=L[0],v[t+e+4>>2]=L[1],L=[280*(o+1)>>>0,(z=280*(o+1),1<=+Math.abs(z)?0<z?+Math.floor(z/4294967296)>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],v[t+e+8>>2]=L[0],v[t+e+12>>2]=L[1],b[t+e+16>>1]=280,p[t+e+18>>0]=h,ie(s,m,t+e+19,256),e+=280,o+=1}return We(a,280*o,0),e}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.lh}},_b:function(e,t,r){et=r;try{var a=Me(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return a.hh?0:-59;case 21505:if(!a.hh)return-59;if(a.hh.sh.li){e=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var i=tt();v[i>>2]=25856,v[i+4>>2]=5,v[i+8>>2]=191,v[i+12>>2]=35387;for(var n=0;32>n;n++)p[i+n+17>>0]=e[n]||0}return 0;case 21506:case 21507:case 21508:if(!a.hh)return-59;if(a.hh.sh.mi)for(i=tt(),e=[],n=0;32>n;n++)e.push(p[i+n+17>>0]);return 0;case 21519:return a.hh?(i=tt(),v[i>>2]=0):-59;case 21520:return a.hh?-28:-59;case 21531:if(i=tt(),!a.gh.ki)throw new ge(59);return a.gh.ki(a,t,i);case 21523:return a.hh?(a.hh.sh.ni&&(n=[24,80],i=tt(),b[i>>1]=n[0],b[i+2>>1]=n[1]),0):-59;default:return-28}}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.lh}},Ja:function(e,t,r,a){et=a;try{return Ge(t=Qe(e,t=t?te(m,t):""),r,a?tt():0).th}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.lh}},Rb:function(e,t,r,a){try{if(t=Qe(e,t=t?te(m,t):""),0>=a)return-28;var i=Ze(t),n=Math.min(a,ae(i)),_=p[r+n];return ie(i,m,r,a+1),p[r+n]=_,n}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.lh}},Wb:function(e,t){try{var r=ke(e=e?te(m,e):"",{Gh:!0}).node;if(!r)throw new ge(44);if(!r.eh.nh)throw new ge(63);var a=r.eh.nh(r);v[t>>2]=a.fi,v[t+4>>2]=a.mode,E[t+8>>2]=a.si,v[t+12>>2]=a.uid,v[t+16>>2]=a.hi,v[t+20>>2]=a.Dh,L=[a.size>>>0,(z=a.size,1<=+Math.abs(z)?0<z?+Math.floor(z/4294967296)>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],v[t+24>>2]=L[0],v[t+28>>2]=L[1],v[t+32>>2]=4096,v[t+36>>2]=a.di;var i=a.bi.getTime(),n=a.ri.getTime(),_=a.ei.getTime();return L=[Math.floor(i/1e3)>>>0,(z=Math.floor(i/1e3),1<=+Math.abs(z)?0<z?+Math.floor(z/4294967296)>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],v[t+40>>2]=L[0],v[t+44>>2]=L[1],E[t+48>>2]=i%1e3*1e3,L=[Math.floor(n/1e3)>>>0,(z=Math.floor(n/1e3),1<=+Math.abs(z)?0<z?+Math.floor(z/4294967296)>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],v[t+56>>2]=L[0],v[t+60>>2]=L[1],E[t+64>>2]=n%1e3*1e3,L=[Math.floor(_/1e3)>>>0,(z=Math.floor(_/1e3),1<=+Math.abs(z)?0<z?+Math.floor(z/4294967296)>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],v[t+72>>2]=L[0],v[t+76>>2]=L[1],E[t+80>>2]=_%1e3*1e3,L=[a.Xh>>>0,(z=a.Xh,1<=+Math.abs(z)?0<z?+Math.floor(z/4294967296)>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],v[t+88>>2]=L[0],v[t+92>>2]=L[1],0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.lh}},Sb:function(e,t){try{return Ke(e=e?te(m,e):"",t=t?te(m,t):""),0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.lh}},Pb:function(e,t,r){try{if(t=Qe(e,t=t?te(m,t):""),0===r){var a=t,i=ke(a,{parent:!0}).node;if(!i)throw new ge(44);var n=$(a),_=Se(i,n),o=Pe(i,n,!1);if(o)throw new ge(o);if(!i.eh.Oh)throw new ge(63);if(_.Ah)throw new ge(10);i.eh.Oh(i,n),Ne(_)}else if(512===r){a=ke(i=t,{parent:!0}).node;var s=$(i),c=Se(a,s),h=Pe(a,s,!0);if(h)throw new ge(h);if(!a.eh.Kh)throw new ge(63);if(c.Ah)throw new ge(10);a.eh.Kh(a,s),Ne(c)}else C("Invalid flags passed to unlinkat");return 0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return-e.lh}},$b:function(e){if(Bt.has(e)){var t=Bt.get(e),r=Bt;r.zh[e]=void 0,r.mh.push(e),0<t.readyState&&4>t.readyState&&t.abort()}},Yb:()=>1,lb:function(e,t,r){e=new Date(1e3*(t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN)),v[r>>2]=e.getUTCSeconds(),v[r+4>>2]=e.getUTCMinutes(),v[r+8>>2]=e.getUTCHours(),v[r+12>>2]=e.getUTCDate(),v[r+16>>2]=e.getUTCMonth(),v[r+20>>2]=e.getUTCFullYear()-1900,v[r+24>>2]=e.getUTCDay(),v[r+28>>2]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},mb:function(e,t,r){e=new Date(1e3*(t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN)),v[r>>2]=e.getSeconds(),v[r+4>>2]=e.getMinutes(),v[r+8>>2]=e.getHours(),v[r+12>>2]=e.getDate(),v[r+16>>2]=e.getMonth(),v[r+20>>2]=e.getFullYear()-1900,v[r+24>>2]=e.getDay(),v[r+28>>2]=(at(e.getFullYear())?it:nt)[e.getMonth()]+e.getDate()-1|0,v[r+36>>2]=-60*e.getTimezoneOffset(),t=new Date(e.getFullYear(),6,1).getTimezoneOffset();var a=new Date(e.getFullYear(),0,1).getTimezoneOffset();v[r+32>>2]=0|(t!=a&&e.getTimezoneOffset()==Math.min(a,t))},Qb:(e,t,r)=>{function a(e){return(e=e.toTimeString().match(/\(([A-Za-z ]+)\)$/))?e[1]:"GMT"}var i=(new Date).getFullYear(),n=new Date(i,0,1),_=new Date(i,6,1);i=n.getTimezoneOffset();var o=_.getTimezoneOffset();E[e>>2]=60*Math.max(i,o),v[t>>2]=Number(i!=o),e=a(n),t=a(_),e=_t(e),t=_t(t),o<i?(E[r>>2]=e,E[r+4>>2]=t):(E[r>>2]=t,E[r+4>>2]=e)},F:()=>{C("")},gb:function(){self.postMessage({t:"gfx"})},ib:function(){var e=new URL(location.origin).hostname;if(0===e.length&&(e=new URL(location.href.replace("blob:","")).hostname),/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e))0===e.indexOf("10.")&&(e="10.*"),0===e.indexOf("192.168.")&&(e="192.168.*"),0===e.indexOf("172.")&&(e="172.*"),0===e.indexOf("127.")&&(e="127.*");else{var t=new RegExp("("+String.fromCharCode(92)+".ngrok"+String.fromCharCode(92)+".io)$","i");t.test(e)&&(e="*.ngrok.io"),(t=new RegExp("("+String.fromCharCode(92)+".ngrok-free"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.ngrok.io"),(t=new RegExp("("+String.fromCharCode(92)+".arweb"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.arweb.app")}t=ae(e)+1;var r=cr(t);return ie(e,m,r,t+1),r},hb:function(){self.postMessage({t:"licerr"})},Ea:(e,t,r)=>{function a(){Dt(e)(t)}0<=r?ct(a,r):function(e){zt((()=>{st(e)}))}(a)},ma:()=>Date.now(),Jb:()=>2147483648,Xb:rt,bc:()=>!1,Zb:(e,t,r)=>m.copyWithin(e,t,t+r),Ob:e=>{var t=m.length;if(2147483648<(e>>>=0))return!1;for(var r=1;4>=r;r*=2){var a=t*(1+.2/r);a=Math.min(a,e+100663296);var i=Math;a=Math.max(e,a);e:{i=(i.min.call(i,2147483648,a+(65536-a%65536)%65536)-u.buffer.byteLength+65535)/65536;try{u.grow(i),A();var n=1;break e}catch(e){}n=void 0}if(n)return!0}return!1},ac:function(e,t,r,a,i){function n(e){f?e():st(e)}var _=e+112,o=E[_+36>>2],s=E[_+40>>2],c=E[_+44>>2],h=E[_+48>>2],l=E[_+52>>2],f=!!(64&l),u=e=>{n((()=>{o?Dt(o)(e):t?.(e)}))},d=e=>{n((()=>{c?Dt(c)(e):a?.(e)}))},p=e=>{n((()=>{s?Dt(s)(e):r?.(e)}))},b=e=>{n((()=>{h?Dt(h)(e):i?.(e)}))},v=e=>{Vt(e,u,p,d,b)},g=(e,r)=>{Zt(e,r.response,(e=>{n((()=>{o?Dt(o)(e):t?.(e)}))}),(e=>{n((()=>{o?Dt(o)(e):t?.(e)}))}))},y=Je(_+0),k=!!(16&l),A=!!(4&l);if(l=!!(32&l),"EM_IDB_STORE"===y)v=E[_+84>>2],Zt(e,m.slice(v,v+E[_+88>>2]),u,p);else if("EM_IDB_DELETE"===y)!function(e,t,r){var a=Ut;if(a){var i=E[e+112+64>>2];i||=E[e+8>>2],i=i?te(m,i):"";try{var n=a.transaction(["FILES"],"readwrite").objectStore("FILES").delete(i);n.onsuccess=r=>{r=r.target.result,E[e+12>>2]=0,Kt(e+16,0),Kt(e+24,0),Kt(e+32,0),w[e+40>>1]=4,w[e+42>>1]=200,ie("OK",m,e+44,64),t(e,0,r)},n.onerror=t=>{w[e+40>>1]=4,w[e+42>>1]=404,ie("Not Found",m,e+44,64),r(e,0,t)}}catch(t){r(e,0,t)}}else r(e,0,"IndexedDB not available!")}(e,u,p);else if(k){if(l)return 0;Vt(e,A?g:u,p,d,b)}else!function(e,t,r){var a=Ut;if(a){var i=E[e+112+64>>2];i||=E[e+8>>2],i=i?te(m,i):"";try{var n=a.transaction(["FILES"],"readonly").objectStore("FILES").get(i);n.onsuccess=a=>{if(a.target.result){var i=(a=a.target.result).byteLength||a.length,n=cr(i);m.set(new Uint8Array(a),n),E[e+12>>2]=n,Kt(e+16,i),Kt(e+24,0),Kt(e+32,i),w[e+40>>1]=4,w[e+42>>1]=200,ie("OK",m,e+44,64),t(e,0,a)}else w[e+40>>1]=4,w[e+42>>1]=404,ie("Not Found",m,e+44,64),r(e,0,"no data")},n.onerror=t=>{w[e+40>>1]=4,w[e+42>>1]=404,ie("Not Found",m,e+44,64),r(e,0,t)}}catch(t){r(e,0,t)}}else r(e,0,"IndexedDB not available!")}(e,u,l?p:A?e=>{Vt(e,g,p,d,b)}:v);return e},Ub:(e,t)=>{var r=0;return qt().forEach(((a,i)=>{var n=t+r;for(i=E[e+4*i>>2]=n,n=0;n<a.length;++n)p[i++>>0]=a.charCodeAt(n);p[i>>0]=0,r+=a.length+1})),0},Vb:(e,t)=>{var r=qt();E[e>>2]=r.length;var a=0;return r.forEach((e=>a+=e.length+1)),E[t>>2]=a,0},dc:e=>{d=e,ot(e)},_:function(e){try{var t=Me(e);if(null===t.th)throw new ge(8);t.vh&&(t.vh=null);try{t.gh.close&&t.gh.close(t)}catch(e){throw e}finally{be[t.th]=null}return t.th=null,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.lh}},Ka:function(e,t,r,a){try{e:{var i=Me(e);e=t;for(var n,_=t=0;_<r;_++){var o=E[e>>2],s=E[e+4>>2];e+=8;var c=i,h=n,l=p;if(0>s||0>h)throw new ge(28);if(null===c.th)throw new ge(8);if(1==(2097155&c.flags))throw new ge(8);if(xe(c.node.mode))throw new ge(31);if(!c.gh.read)throw new ge(28);var f=void 0!==h;if(f){if(!c.seekable)throw new ge(70)}else h=c.position;var u=c.gh.read(c,l,o,s,h);f||(c.position+=u);var d=u;if(0>d){var m=-1;break e}if(t+=d,d<s)break;void 0!==n&&(n+=d)}m=t}return E[a>>2]=m,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.lh}},nb:function(e,t,r,a,i){t=r+2097152>>>0<4194305-!!t?(t>>>0)+4294967296*r:NaN;try{if(isNaN(t))return 61;var n=Me(e);return We(n,t,a),L=[n.position>>>0,(z=n.position,1<=+Math.abs(z)?0<z?+Math.floor(z/4294967296)>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],v[i>>2]=L[0],v[i+4>>2]=L[1],n.vh&&0===t&&0===a&&(n.vh=null),0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.lh}},na:function(e,t,r,a){try{e:{var i=Me(e);e=t;for(var n,_=t=0;_<r;_++){var o=E[e>>2],s=E[e+4>>2];e+=8;var c=i,h=o,l=s,f=n,u=p;if(0>l||0>f)throw new ge(28);if(null===c.th)throw new ge(8);if(0==(2097155&c.flags))throw new ge(8);if(xe(c.node.mode))throw new ge(31);if(!c.gh.write)throw new ge(28);c.seekable&&1024&c.flags&&We(c,0,2);var d=void 0!==f;if(d){if(!c.seekable)throw new ge(70)}else f=c.position;var m=c.gh.write(c,u,h,l,f,void 0);d||(c.position+=m);var b=m;if(0>b){var w=-1;break e}t+=b,void 0!==n&&(n+=b)}w=t}return E[a>>2]=w,0}catch(e){if(void 0===$e||"ErrnoError"!==e.name)throw e;return e.lh}},Ha:(e,t)=>{nr.bindTexture(e,$t[t])},Ia:(e,t)=>{for(var r=0;r<e;r++){var a=nr.createTexture(),i=a&&Qt($t);a?(a.name=i,$t[i]=a):Wt||=1282,v[t+4*r>>2]=i}},ka:(e,t,r,a,i,n,_,o,s)=>{var c=nr,h=c.texImage2D;if(s){var l=o-5120;l=1==l?m:4==l?v:6==l?g:5==l||28922==l?E:w;var f=31-Math.clz32(l.BYTES_PER_ELEMENT);s=l.subarray(s>>f,s+i*(a*({5:3,6:4,8:2,29502:3,29504:4}[_-6402]||1)*(1<<f)+4-1&-4)>>f)}else s=null;h.call(c,e,t,r,a,i,n,_,o,s)},la:function(e,t,r){nr.texParameteri(e,t,r)},w:function(e){var t=ur();try{return Dt(e)()}catch(e){if(dr(t),e!==e+0)throw e;lr(1,0)}},ea:function(e,t){var r=ur();try{return Dt(e)(t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},cc:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},Aa:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},O:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Za:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},qa:function(e,t,r,a,i,n,_,o){var s=ur();try{return Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},zb:function(e,t,r,a,i){var n=ur();try{return Ir(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},ob:function(e,t,r,a,i){var n=ur();try{return jr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Z:function(e,t){var r=ur();try{return Dt(e)(t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},aa:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},Ca:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Sa:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},s:function(e){var t=ur();try{return Dt(e)()}catch(e){if(dr(t),e!==e+0)throw e;lr(1,0)}},La:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},ta:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},b:function(e,t){var r=ur();try{return Dt(e)(t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},r:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},Y:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},fa:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Ra:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Pa:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},cb:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},va:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},ua:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},f:function(e,t,r){var a=ur();try{return Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},T:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},_a:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},fc:function(e,t,r,a,i,n,_,o){var s=ur();try{return Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},sa:function(e,t,r,a,i,n,_,o,s,c,h,l,f){var u=ur();try{return Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f)}catch(e){if(dr(u),e!==e+0)throw e;lr(1,0)}},wa:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},c:function(e,t,r,a){var i=ur();try{return Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Oa:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},l:function(e,t,r,a,i){var n=ur();try{return Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Na:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},u:function(e,t,r,a,i,n){var _=ur();try{return Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},B:function(e,t,r,a,i,n,_){var o=ur();try{return Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},x:function(e,t,r,a,i,n,_,o){var s=ur();try{return Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},L:function(e,t,r,a,i,n,_,o,s){var c=ur();try{return Dt(e)(t,r,a,i,n,_,o,s)}catch(e){if(dr(c),e!==e+0)throw e;lr(1,0)}},$:function(e,t,r,a,i,n,_,o,s,c){var h=ur();try{return Dt(e)(t,r,a,i,n,_,o,s,c)}catch(e){if(dr(h),e!==e+0)throw e;lr(1,0)}},K:function(e,t,r,a,i,n,_,o,s,c,h){var l=ur();try{return Dt(e)(t,r,a,i,n,_,o,s,c,h)}catch(e){if(dr(l),e!==e+0)throw e;lr(1,0)}},ba:function(e,t,r,a,i,n,_,o,s,c,h,l){var f=ur();try{return Dt(e)(t,r,a,i,n,_,o,s,c,h,l)}catch(e){if(dr(f),e!==e+0)throw e;lr(1,0)}},kb:function(e,t,r,a,i,n,_){var o=ur();try{return Dr(e,t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},qb:function(e,t,r,a,i,n){var _=ur();try{return Br(e,t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},yb:function(e,t,r,a,i,n,_,o,s){var c=ur();try{return xr(e,t,r,a,i,n,_,o,s)}catch(e){if(dr(c),e!==e+0)throw e;lr(1,0)}},Bb:function(e,t,r,a,i,n,_,o,s,c,h){var l=ur();try{return Tr(e,t,r,a,i,n,_,o,s,c,h)}catch(e){if(dr(l),e!==e+0)throw e;lr(1,0)}},Gb:function(e,t,r,a){var i=ur();try{return kr(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Db:function(e,t,r,a,i){var n=ur();try{return Rr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},xb:function(e,t,r,a,i,n,_,o,s,c,h,l,f,u,d){var p=ur();try{return zr(e,t,r,a,i,n,_,o,s,c,h,l,f,u,d)}catch(e){if(dr(p),e!==e+0)throw e;lr(1,0)}},rb:function(e,t,r,a){var i=ur();try{return Cr(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Hb:function(e){var t=ur();try{return Er(e)}catch(e){if(dr(t),e!==e+0)throw e;lr(1,0)}},Cb:function(e,t){var r=ur();try{return Sr(e,t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},vb:function(e,t,r){var a=ur();try{return Mr(e,t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},wb:function(e,t,r,a){var i=ur();try{return Pr(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},jb:function(e,t,r,a,i){var n=ur();try{return Vr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},pb:function(e,t,r){var a=ur();try{return Ur(e,t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},m:function(e){var t=ur();try{Dt(e)()}catch(e){if(dr(t),e!==e+0)throw e;lr(1,0)}},bb:function(e,t,r){var a=ur();try{Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},db:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},g:function(e,t){var r=ur();try{Dt(e)(t)}catch(e){if(dr(r),e!==e+0)throw e;lr(1,0)}},Qa:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},da:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},ra:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Ga:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},ec:function(e,t,r,a){var i=ur();try{Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},S:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Ma:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Ua:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},e:function(e,t,r){var a=ur();try{Dt(e)(t,r)}catch(e){if(dr(a),e!==e+0)throw e;lr(1,0)}},t:function(e,t,r,a){var i=ur();try{Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},Q:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},M:function(e,t,r,a){var i=ur();try{Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},X:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},xa:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Va:function(e,t,r,a,i,n,_,o,s){var c=ur();try{Dt(e)(t,r,a,i,n,_,o,s)}catch(e){if(dr(c),e!==e+0)throw e;lr(1,0)}},N:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},h:function(e,t,r,a){var i=ur();try{Dt(e)(t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},ga:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},pa:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},$a:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Ya:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},Xa:function(e,t,r,a,i,n,_,o,s){var c=ur();try{Dt(e)(t,r,a,i,n,_,o,s)}catch(e){if(dr(c),e!==e+0)throw e;lr(1,0)}},Da:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},V:function(e,t,r,a,i,n,_,o,s,c,h,l){var f=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l)}catch(e){if(dr(f),e!==e+0)throw e;lr(1,0)}},eb:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},ia:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},k:function(e,t,r,a,i){var n=ur();try{Dt(e)(t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},ya:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},fb:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Ta:function(e,t,r,a,i,n,_,o,s,c,h){var l=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h)}catch(e){if(dr(l),e!==e+0)throw e;lr(1,0)}},ja:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},Wa:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},j:function(e,t,r,a,i,n){var _=ur();try{Dt(e)(t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},U:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},ab:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},Ba:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},o:function(e,t,r,a,i,n,_){var o=ur();try{Dt(e)(t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},z:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},ha:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},p:function(e,t,r,a,i,n,_,o){var s=ur();try{Dt(e)(t,r,a,i,n,_,o)}catch(e){if(dr(s),e!==e+0)throw e;lr(1,0)}},v:function(e,t,r,a,i,n,_,o,s,c,h,l,f){var u=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f)}catch(e){if(dr(u),e!==e+0)throw e;lr(1,0)}},P:function(e,t,r,a,i,n,_,o,s,c){var h=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c)}catch(e){if(dr(h),e!==e+0)throw e;lr(1,0)}},W:function(e,t,r,a,i,n,_,o,s,c,h,l,f){var u=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f)}catch(e){if(dr(u),e!==e+0)throw e;lr(1,0)}},C:function(e,t,r,a,i,n,_,o,s){var c=ur();try{Dt(e)(t,r,a,i,n,_,o,s)}catch(e){if(dr(c),e!==e+0)throw e;lr(1,0)}},E:function(e,t,r,a,i,n,_,o,s,c){var h=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c)}catch(e){if(dr(h),e!==e+0)throw e;lr(1,0)}},H:function(e,t,r,a,i,n,_,o,s,c,h){var l=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h)}catch(e){if(dr(l),e!==e+0)throw e;lr(1,0)}},za:function(e,t,r,a,i,n,_,o,s,c,h,l){var f=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l)}catch(e){if(dr(f),e!==e+0)throw e;lr(1,0)}},I:function(e,t,r,a,i,n,_,o,s,c,h,l,f,u){var d=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f,u)}catch(e){if(dr(d),e!==e+0)throw e;lr(1,0)}},D:function(e,t,r,a,i,n,_,o,s,c,h,l){var f=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l)}catch(e){if(dr(f),e!==e+0)throw e;lr(1,0)}},J:function(e,t,r,a,i,n,_,o,s,c,h,l,f){var u=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f)}catch(e){if(dr(u),e!==e+0)throw e;lr(1,0)}},oa:function(e,t,r,a,i,n,_,o,s,c,h,l,f,u,d){var p=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f,u,d)}catch(e){if(dr(p),e!==e+0)throw e;lr(1,0)}},ca:function(e,t,r,a,i,n,_,o,s,c,h,l,f,u,d,p){var m=ur();try{Dt(e)(t,r,a,i,n,_,o,s,c,h,l,f,u,d,p)}catch(e){if(dr(m),e!==e+0)throw e;lr(1,0)}},Ib:function(e,t,r,a,i){var n=ur();try{gr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},Ab:function(e,t,r,a,i,n){var _=ur();try{Lr(e,t,r,a,i,n)}catch(e){if(dr(_),e!==e+0)throw e;lr(1,0)}},Eb:function(e,t,r,a,i,n,_){var o=ur();try{yr(e,t,r,a,i,n,_)}catch(e){if(dr(o),e!==e+0)throw e;lr(1,0)}},Fb:function(e,t,r,a){var i=ur();try{Ar(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},ub:function(e,t,r,a,i){var n=ur();try{Nr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},sb:function(e,t,r,a){var i=ur();try{Or(e,t,r,a)}catch(e){if(dr(i),e!==e+0)throw e;lr(1,0)}},tb:function(e,t,r,a,i){var n=ur();try{Fr(e,t,r,a,i)}catch(e){if(dr(n),e!==e+0)throw e;lr(1,0)}},A:e=>e,Kb:(e,t,r,a)=>((e,t,r,a)=>{function i(e,t,r){for(e="number"==typeof e?e.toString():e||"";e.length<t;)e=r[0]+e;return e}function n(e,t){return i(e,t,"0")}function _(e,t){function r(e){return 0>e?-1:0<e?1:0}var a;return 0===(a=r(e.getFullYear()-t.getFullYear()))&&0===(a=r(e.getMonth()-t.getMonth()))&&(a=r(e.getDate()-t.getDate())),a}function o(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function s(e){var t=e.xh;for(e=new Date(new Date(e.yh+1900,0,1).getTime());0<t;){var r=e.getMonth(),a=(at(e.getFullYear())?rr:ar)[r];if(!(t>a-e.getDate())){e.setDate(e.getDate()+t);break}t-=a-e.getDate()+1,e.setDate(1),11>r?e.setMonth(r+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return r=new Date(e.getFullYear()+1,0,4),t=o(new Date(e.getFullYear(),0,4)),r=o(r),0>=_(t,e)?0>=_(r,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var c=E[a+40>>2];for(var h in a={vi:v[a>>2],ui:v[a+4>>2],Mh:v[a+8>>2],Th:v[a+12>>2],Nh:v[a+16>>2],yh:v[a+20>>2],qh:v[a+24>>2],xh:v[a+28>>2],Qi:v[a+32>>2],ti:v[a+36>>2],wi:c&&c?te(m,c):""},r=r?te(m,r):"",c={"%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"})r=r.replace(new RegExp(h,"g"),c[h]);var l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),f="January February March April May June July August September October November December".split(" ");for(h in c={"%a":e=>l[e.qh].substring(0,3),"%A":e=>l[e.qh],"%b":e=>f[e.Nh].substring(0,3),"%B":e=>f[e.Nh],"%C":e=>n((e.yh+1900)/100|0,2),"%d":e=>n(e.Th,2),"%e":e=>i(e.Th,2," "),"%g":e=>s(e).toString().substring(2),"%G":s,"%H":e=>n(e.Mh,2),"%I":e=>(0==(e=e.Mh)?e=12:12<e&&(e-=12),n(e,2)),"%j":e=>{for(var t=0,r=0;r<=e.Nh-1;t+=(at(e.yh+1900)?rr:ar)[r++]);return n(e.Th+t,3)},"%m":e=>n(e.Nh+1,2),"%M":e=>n(e.ui,2),"%n":()=>"\n","%p":e=>0<=e.Mh&&12>e.Mh?"AM":"PM","%S":e=>n(e.vi,2),"%t":()=>"\t","%u":e=>e.qh||7,"%U":e=>n(Math.floor((e.xh+7-e.qh)/7),2),"%V":e=>{var t=Math.floor((e.xh+7-(e.qh+6)%7)/7);if(2>=(e.qh+371-e.xh-2)%7&&t++,t)53==t&&(4==(r=(e.qh+371-e.xh)%7)||3==r&&at(e.yh)||(t=1));else{t=52;var r=(e.qh+7-e.xh-1)%7;(4==r||5==r&&at(e.yh%400-1))&&t++}return n(t,2)},"%w":e=>e.qh,"%W":e=>n(Math.floor((e.xh+7-(e.qh+6)%7)/7),2),"%y":e=>(e.yh+1900).toString().substring(2),"%Y":e=>e.yh+1900,"%z":e=>{var t=0<=(e=e.ti);return e=Math.abs(e)/60,(t?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":e=>e.wi,"%%":()=>"%"},r=r.replace(/%%/g,"\0\0"),c)r.includes(h)&&(r=r.replace(new RegExp(h,"g"),c[h](a)));return(h=ne(r=r.replace(/\0\0/g,"%"),!1)).length>t?0:(p.set(h,e),h.length-1)})(e,t,r,a)},or=function(){function e(e){return or=e.exports,u=or.gc,A(),Ct=or.lc,N.unshift(or.hc),O(),or}var t={a:_r};if(F(),i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(e){f(`Module.instantiateWasm callback failed with error: ${e}`),a(e)}return t=function(e){if(x==x&&h)var t=new Uint8Array(h);else{if(!n)throw'sync fetching of the wasm failed: you can preload it to Module["wasmBinary"] manually, or emcc.py will do that for you when generating HTML (but not JS)';t=n(x)}return t=new WebAssembly.Module(t),[new WebAssembly.Instance(t,e),t]}(t),e(t[0])}();i._zappar_has_initialized=or.ic,i._zappar_invert=or.jc,i._zappar_loaded=or.kc,i._zappar_pipeline_create=or.mc,i._zappar_pipeline_destroy=or.nc,i._zappar_pipeline_camera_frame_submit=or.oc,i._zappar_pipeline_camera_frame_submit_raw_pointer=or.pc,i._zappar_pipeline_frame_update=or.qc,i._zappar_pipeline_camera_frame_user_data=or.rc,i._zappar_pipeline_camera_model=or.sc,i._zappar_pipeline_frame_number=or.tc,i._zappar_pipeline_camera_frame_data_raw_size=or.uc,i._zappar_pipeline_camera_frame_data_raw_width=or.vc,i._zappar_pipeline_camera_frame_data_raw_height=or.wc,i._zappar_pipeline_camera_frame_data_raw=or.xc,i._zappar_pipeline_motion_accelerometer_submit=or.yc,i._zappar_pipeline_motion_accelerometer_with_gravity_submit_int=or.zc,i._zappar_pipeline_motion_accelerometer_without_gravity_submit_int=or.Ac,i._zappar_pipeline_motion_rotation_rate_submit_int=or.Bc,i._zappar_pipeline_motion_attitude_submit_int=or.Cc,i._zappar_pipeline_motion_rotation_rate_submit=or.Dc,i._zappar_pipeline_motion_attitude_submit=or.Ec,i._zappar_pipeline_motion_attitude_matrix_submit=or.Fc,i._zappar_pipeline_camera_frame_user_facing=or.Gc,i._zappar_pipeline_camera_frame_texture_matrix=or.Hc,i._zappar_pipeline_camera_pose_with_attitude=or.Ic,i._zappar_pipeline_camera_pose_with_origin=or.Jc,i._zappar_pipeline_camera_frame_camera_attitude=or.Kc,i._zappar_pipeline_camera_frame_device_attitude=or.Lc,i._zappar_pipeline_camera_frame_texture_gl=or.Mc,i._zappar_pipeline_camera_frame_upload_gl=or.Nc,i._zappar_pipeline_sequence_record_start=or.Oc,i._zappar_pipeline_sequence_record_stop=or.Pc,i._zappar_pipeline_sequence_record_clear=or.Qc,i._zappar_pipeline_sequence_record_device_attitude_matrices_set=or.Rc,i._zappar_pipeline_sequence_record_data_size=or.Sc,i._zappar_pipeline_sequence_record_data=or.Tc,i._zappar_pipeline_process_gl=or.Uc,i._zappar_pipeline_camera_pose_default=or.Vc,i._zappar_instant_world_tracker_create=or.Wc,i._zappar_instant_world_tracker_destroy=or.Xc,i._zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw=or.Yc,i._zappar_instant_world_tracker_anchor_pose_raw=or.Zc,i._zappar_instant_world_tracker_enabled_set=or._c,i._zappar_instant_world_tracker_enabled=or.$c,i._zappar_image_tracker_create=or.ad,i._zappar_image_tracker_destroy=or.bd,i._zappar_image_tracker_target_load_from_memory=or.cd,i.__Z42zappar_image_tracker_target_load_from_fileP23zappar_image_tracker_tiPKc=or.dd;var sr=i._free=or.ed;i._zappar_image_tracker_anchor_count=or.fd,i._zappar_image_tracker_anchor_id=or.gd,i._zappar_image_tracker_anchor_pose_raw=or.hd,i._zappar_image_tracker_enabled_set=or.id,i._zappar_image_tracker_enabled=or.jd,i._zappar_image_tracker_target_loaded_version=or.kd,i.__Z33zappar_image_tracker_target_countP23zappar_image_tracker_ti=or.ld,i.__Z46zappar_image_tracker_target_preview_compressedP23zappar_image_tracker_tii=or.md,i.__Z51zappar_image_tracker_target_preview_compressed_sizeP23zappar_image_tracker_tii=or.nd,i.__Z55zappar_image_tracker_target_preview_compressed_mimetypeP23zappar_image_tracker_tii=or.od,i.__Z40zappar_image_tracker_target_preview_rgbaP23zappar_image_tracker_tii=or.pd,i.__Z45zappar_image_tracker_target_preview_rgba_sizeP23zappar_image_tracker_tii=or.qd,i.__Z46zappar_image_tracker_target_preview_rgba_widthP23zappar_image_tracker_tii=or.rd,i.__Z47zappar_image_tracker_target_preview_rgba_heightP23zappar_image_tracker_tii=or.sd,i.__Z38zappar_image_tracker_target_radius_topP23zappar_image_tracker_tii=or.td,i.__Z41zappar_image_tracker_target_radius_bottomP23zappar_image_tracker_tii=or.ud,i.__Z39zappar_image_tracker_target_side_lengthP23zappar_image_tracker_tii=or.vd,i.__Z49zappar_image_tracker_target_physical_scale_factorP23zappar_image_tracker_tii=or.wd,i.__Z49zappar_image_tracker_target_preview_mesh_verticesP23zappar_image_tracker_tii=or.xd,i.__Z48zappar_image_tracker_target_preview_mesh_normalsP23zappar_image_tracker_tii=or.yd,i.__Z44zappar_image_tracker_target_preview_mesh_uvsP23zappar_image_tracker_tii=or.zd,i.__Z48zappar_image_tracker_target_preview_mesh_indicesP23zappar_image_tracker_tii=or.Ad,i.__Z54zappar_image_tracker_target_preview_mesh_vertices_sizeP23zappar_image_tracker_tii=or.Bd,i.__Z53zappar_image_tracker_target_preview_mesh_normals_sizeP23zappar_image_tracker_tii=or.Cd,i.__Z49zappar_image_tracker_target_preview_mesh_uvs_sizeP23zappar_image_tracker_tii=or.Dd,i.__Z53zappar_image_tracker_target_preview_mesh_indices_sizeP23zappar_image_tracker_tii=or.Ed,i.__Z32zappar_image_tracker_target_typeP23zappar_image_tracker_tii=or.Fd,i._zappar_face_tracker_create=or.Gd,i._zappar_face_tracker_destroy=or.Hd,i._zappar_face_tracker_model_load_from_memory=or.Id,i._zappar_face_tracker_anchor_count=or.Jd,i._zappar_face_tracker_anchor_id=or.Kd,i._zappar_face_tracker_anchor_pose_raw=or.Ld,i._zappar_face_tracker_anchor_identity_coefficients=or.Md,i._zappar_face_tracker_anchor_expression_coefficients=or.Nd,i._zappar_face_tracker_enabled_set=or.Od,i._zappar_face_tracker_enabled=or.Pd,i._zappar_face_tracker_max_faces_set=or.Qd,i._zappar_face_tracker_max_faces=or.Rd,i._zappar_face_tracker_model_loaded_version=or.Sd,i._zappar_face_landmark_create=or.Td,i._zappar_face_landmark_destroy=or.Ud,i.__Z27zappar_face_landmark_updateP23zappar_face_landmark_tiPKfS2_i=or.Vd,i._zappar_face_landmark_anchor_pose=or.Wd,i._zappar_barcode_finder_create=or.Xd,i._zappar_barcode_finder_destroy=or.Yd,i._zappar_barcode_finder_found_number=or.Zd,i._zappar_barcode_finder_found_text=or._d,i._zappar_barcode_finder_enabled_set=or.$d,i._zappar_barcode_finder_enabled=or.ae,i._zappar_barcode_finder_found_format=or.be,i._zappar_barcode_finder_formats=or.ce,i._zappar_barcode_finder_formats_set=or.de;var cr=i._malloc=or.ee;i._zappar_face_mesh_create=or.fe,i._zappar_face_mesh_destroy=or.ge,i.__Z33zappar_face_mesh_load_from_memoryP19zappar_face_mesh_tiPKciiiii=or.he,i.__Z29zappar_face_mesh_indices_sizeP19zappar_face_mesh_ti=or.ie,i.__Z25zappar_face_mesh_uvs_sizeP19zappar_face_mesh_ti=or.je,i.__Z30zappar_face_mesh_vertices_sizeP19zappar_face_mesh_ti=or.ke,i.__Z31zappar_face_mesh_loaded_versionP19zappar_face_mesh_ti=or.le,i.__Z25zappar_face_mesh_verticesP19zappar_face_mesh_ti=or.me,i.__Z20zappar_face_mesh_uvsP19zappar_face_mesh_ti=or.ne,i.__Z24zappar_face_mesh_indicesP19zappar_face_mesh_ti=or.oe,i.__Z23zappar_face_mesh_updateP19zappar_face_mesh_tiPKfS2_i=or.pe,i.__Z29zappar_face_mesh_normals_sizeP19zappar_face_mesh_ti=or.qe,i.__Z24zappar_face_mesh_normalsP19zappar_face_mesh_ti=or.re,i._zappar_camera_source_create=or.se,i._zappar_camera_source_destroy=or.te,i._zappar_camera_source_start=or.ue,i._zappar_camera_source_pause=or.ve,i._zappar_camera_default_device_id=or.we,i._zappar_sequence_source_create=or.xe,i.__Z28zappar_sequence_source_startP25zappar_sequence_source_ti=or.ye,i.__Z39zappar_sequence_source_load_from_memoryP25zappar_sequence_source_tiPKci=or.ze,i.__Z28zappar_sequence_source_pauseP25zappar_sequence_source_ti=or.Ae,i._zappar_sequence_source_destroy=or.Be,i._zappar_sequence_source_max_playback_fps_set=or.Ce,i._zappar_log_level_set=or.De,i._zappar_log_level=or.Ee,i.__Z23zappar_log_redirect_setPFv18zappar_log_level_tPKcE=or.Fe,i._zappar_world_tracker_create=or.Ge,i._zappar_world_tracker_destroy=or.He,i._zappar_world_tracker_world_anchor_valid=or.Ie,i._zappar_world_tracker_plane_count=or.Je,i._zappar_world_tracker_plane_pose_raw=or.Ke,i._zappar_world_tracker_world_anchor_pose_raw=or.Le,i._zappar_world_tracker_ground_anchor_valid=or.Me,i._zappar_world_tracker_ground_anchor_pose_raw=or.Ne,i._zappar_world_tracker_reset=or.Oe,i._zappar_world_tracker_enabled_set=or.Pe,i._zappar_world_tracker_quality=or.Qe,i._zappar_world_tracker_enabled=or.Re,i._zappar_world_tracker_debug_enabled=or.Se,i._zappar_world_tracker_debug_enabled_set=or.Te,i._zappar_world_tracker_debug_tracks_data=or.Ue,i._zappar_world_tracker_debug_tracks_data_size=or.Ve,i._zappar_world_tracker_debug_projections_data=or.We,i._zappar_world_tracker_debug_projections_data_size=or.Xe,i._worker_message_send_count=or.Ye,i._worker_message_send_clear=or.Ze,i._worker_message_send_data_size=or._e,i._worker_message_send_reference=or.$e,i._worker_message_send_data=or.af,i._worker_message_receive=or.bf,i._ceres_worker=or.cf,i._zappar_analytics_project_id_set=or.df,i.__ZN5boost13serialization16singleton_module8get_lockEv=or.ef,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem19InitializationInputEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.ff,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.gf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi5FrameEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.hf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE5FrameE16load_object_dataERNS1_14basic_iarchiveEPvj=or.jf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.kf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.lf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.mf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam5Pose3EE16load_object_dataERNS1_14basic_iarchiveEPvj=or.nf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.of,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.pf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam7imuBias12ConstantBiasEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.qf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26bitsetILm2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.rf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.sf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE3ImuE16load_object_dataERNS1_14basic_iarchiveEPvj=or.tf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.uf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi12WorldFeatureEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.vf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE12WorldFeatureE16load_object_dataERNS1_14basic_iarchiveEPvj=or.wf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.xf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.yf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE16load_object_dataERNS1_14basic_iarchiveEPvj=or.zf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Af,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE15load_object_ptrERNS1_14basic_iarchiveEPvj=or.Bf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam28PreintegrationCombinedParamsEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Cf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam28PreintegrationCombinedParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Df,i.__ZN5boost13serialization18void_cast_registerIN5gtsam28PreintegrationCombinedParamsENS2_20PreintegrationParamsEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=or.Ef,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam20PreintegrationParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Ff,i.__ZN5boost13serialization18void_cast_registerIN5gtsam20PreintegrationParamsENS2_27PreintegratedRotationParamsEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=or.Gf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam27PreintegratedRotationParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Hf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__28optionalIN5gtsam5Pose3EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.If,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__28optionalIN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Jf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi3ELi3ELi0ELi3ELi3EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Kf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Lf,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam28PreintegrationCombinedParamsEE15load_object_ptrERNS1_14basic_iarchiveEPvj=or.Mf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem10ParametersEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Nf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN2cv12TermCriteriaEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.Of,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem20InitializationResultEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Pf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Qf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi5FrameEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Rf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE5FrameE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Sf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Tf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Uf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Vf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam5Pose3EE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Wf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Xf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Yf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam7imuBias12ConstantBiasEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.Zf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26bitsetILm2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or._f,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.$f,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE3ImuE16save_object_dataERNS1_14basic_oarchiveEPKv=or.ag,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.bg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi12WorldFeatureEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.cg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE12WorldFeatureE16save_object_dataERNS1_14basic_oarchiveEPKv=or.dg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.eg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem19InitializationInputEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.fg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.gg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE16save_object_dataERNS1_14basic_oarchiveEPKv=or.hg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.ig,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE15save_object_ptrERNS1_14basic_oarchiveEPKv=or.jg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam28PreintegrationCombinedParamsEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.kg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam28PreintegrationCombinedParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.lg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam20PreintegrationParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.mg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam27PreintegratedRotationParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.ng,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__28optionalIN5gtsam5Pose3EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.og,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__28optionalIN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.pg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi3ELi3ELi0ELi3ELi3EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.qg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.rg,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam28PreintegrationCombinedParamsEE15save_object_ptrERNS1_14basic_oarchiveEPKv=or.sg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem10ParametersEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.tg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN2cv12TermCriteriaEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.ug,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem20InitializationResultEE16load_object_dataERNS1_14basic_iarchiveEPvj=or.vg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE9RecordingE16save_object_dataERNS1_14basic_oarchiveEPKv=or.wg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26vectorI11SensorEventNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.xg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE11SensorEventE16save_object_dataERNS1_14basic_oarchiveEPKv=or.yg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=or.zg;var hr,lr=or.Ag,fr=or.Bg,ur=or.Cg,dr=or.Dg,pr=or.Eg,mr=or.Fg,br=or.Gg,wr=or.Hg,vr=or.Ig,Er=i.dynCall_j=or.Jg,gr=i.dynCall_viij=or.Kg,yr=i.dynCall_viijii=or.Lg,kr=i.dynCall_iij=or.Mg,Ar=i.dynCall_vij=or.Ng,Rr=i.dynCall_iiji=or.Og,Nr=i.dynCall_viji=or.Pg,Sr=i.dynCall_ji=or.Qg,Tr=i.dynCall_iiiijjji=or.Rg,xr=i.dynCall_iiiijji=or.Sg,zr=i.dynCall_iijjjjjji=or.Tg,Lr=i.dynCall_viiji=or.Ug,Ir=i.dynCall_diji=or.Vg,Pr=i.dynCall_jiii=or.Wg,Mr=i.dynCall_jii=or.Xg,Fr=i.dynCall_vjii=or.Yg,Or=i.dynCall_vji=or.Zg,Cr=i.dynCall_iji=or._g,Br=i.dynCall_iiiij=or.$g,Ur=i.dynCall_jj=or.ah,jr=i.dynCall_djj=or.bh,Dr=i.dynCall_iiiiij=or.ch,Vr=i.dynCall_jiiii=or.dh;function Kr(){function e(){if(!hr&&(hr=!0,i.calledRun=!0,!k)){if(i.noFSInit||Oe||(Oe=!0,i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?He("stdin",i.stdin):Ke("/dev/tty","/dev/stdin"),i.stdout?He("stdout",null,i.stdout):Ke("/dev/tty","/dev/stdout"),i.stderr?He("stderr",null,i.stderr):Ke("/dev/tty1","/dev/stderr"),Ge("/dev/stdin",0),Ge("/dev/stdout",1),Ge("/dev/stderr",1)),Ee=!1,j(N),r(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();S.unshift(e)}j(S)}}if(!(0<I)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)T();j(R),0<I||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e())}}if(i.___start_em_js=629308,i.___stop_em_js=630473,i.cwrap=(e,t,r,a)=>{var n=!r||r.every((e=>"number"===e||"boolean"===e));return"string"!==t&&n&&!a?i["_"+e]:function(){return((e,t,r,a)=>{var n={string:e=>{var t=0;if(null!=e&&0!==e){t=ae(e)+1;var r=pr(t);ie(e,m,r,t),t=r}return t},array:e=>{var t=pr(e.length);return p.set(e,t),t}};e=i["_"+e];var _,o=[],s=0;if(a)for(var c=0;c<a.length;c++){var h=n[r[c]];h?(0===s&&(s=ur()),o[c]=h(a[c])):o[c]=a[c]}return _=r=e.apply(null,o),0!==s&&dr(s),"string"===t?_?te(m,_):"":"boolean"===t?!!_:_})(e,t,r,arguments)}},i.setValue=function(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":p[e>>0]=t;break;case"i16":b[e>>1]=t;break;case"i32":v[e>>2]=t;break;case"i64":C("to do setValue(i64) use WASM_BIGINT");case"float":g[e>>2]=t;break;case"double":y[e>>3]=t;break;case"*":E[e>>2]=t;break;default:C(`invalid type for setValue: ${r}`)}},i.getValue=function(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return p[e>>0];case"i16":return b[e>>1];case"i32":return v[e>>2];case"i64":C("to do getValue(i64) use WASM_BIGINT");case"float":return g[e>>2];case"double":return y[e>>3];case"*":return E[e>>2];default:C(`invalid type for getValue: ${t}`)}},i.UTF8ToString=Je,M=function e(){hr||Kr(),hr||(M=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return Kr(),t});class a{constructor(e){this._messageSender=e,this._freeBufferPool=[],this._buffer=new ArrayBuffer(16),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=1,this._startOffset=-1,this._timeoutSet=!1,this._appender={int:e=>this.int(e),bool:e=>this.int(e?1:0),float:e=>this.float(e),string:e=>this.string(e),dataWithLength:e=>this.arrayBuffer(e),type:e=>this.int(e),matrix4x4:e=>this.float32ArrayBuffer(e),matrix3x3:e=>this.float32ArrayBuffer(e),floatArray:e=>this.float32ArrayBuffer(e),identityCoefficients:e=>this.float32ArrayBuffer(e),expressionCoefficients:e=>this.float32ArrayBuffer(e),cameraModel:e=>this.float32ArrayBuffer(e),timestamp:e=>this.double(e),barcodeFormat:e=>this.int(e),faceLandmarkName:e=>this.int(e),instantTrackerTransformOrientation:e=>this.int(e),logLevel:e=>this.int(e)},this._freeBufferPool.push(new ArrayBuffer(16)),this._freeBufferPool.push(new ArrayBuffer(16))}bufferReturn(e){this._freeBufferPool.push(e)}_ensureArrayBuffer(e){let t,r=4*(this._offset+e+8);if(this._buffer&&this._buffer.byteLength>=r)return;if(!t){let e=r;e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e++,t=new ArrayBuffer(e)}let a=this._buffer?this._i32View:void 0;this._buffer=t,this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),a&&this._i32View.set(a.subarray(0,this._offset))}sendMessage(e,t){this._ensureArrayBuffer(4),this._startOffset=this._offset,this._i32View[this._offset+1]=e,this._offset+=2,t(this._appender),this._i32View[this._startOffset]=this._offset-this._startOffset,this._startOffset=-1,this._sendOneTime()}_sendOneTime(){!1===this._timeoutSet&&(this._timeoutSet=!0,setTimeout((()=>{this._timeoutSet=!1,this._send()}),0))}_send(){0!==this._freeBufferPool.length?(this._i32View[0]=this._offset,this._messageSender(this._buffer),this._buffer=void 0,this._buffer=this._freeBufferPool.pop(),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u8cView=new Uint8ClampedArray(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=1,this._startOffset=-1):this._sendOneTime()}int(e){this._ensureArrayBuffer(1),this._i32View[this._offset]=e,this._offset++}double(e){this._ensureArrayBuffer(2),this._offset%2==1&&this._offset++,this._f64View[this._offset/2]=e,this._offset+=2}float(e){this._ensureArrayBuffer(1),this._f32View[this._offset]=e,this._offset++}int32Array(e){this._ensureArrayBuffer(e.length);for(let t=0;t<e.length;++t)this._i32View[this._offset+t]=e[t];this._offset+=e.length}float32Array(e){this._ensureArrayBuffer(e.length);for(let t=0;t<e.length;++t)this._f32View[this._offset+t]=e[t];this._offset+=e.length}booleanArray(e){this._ensureArrayBuffer(e.length);for(let t=0;t<e.length;++t)this._i32View[this._offset+t]=e[t]?1:0;this._offset+=e.length}uint8ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.byteLength,this._offset++,this._u8View.set(e,4*this._offset),this._offset+=e.byteLength>>2,0!=(3&e.byteLength)&&this._offset++}arrayBuffer(e){let t=new Uint8Array(e);this.uint8ArrayBuffer(t)}uint8ClampedArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.byteLength,this._offset++,this._u8cView.set(e,4*this._offset),this._offset+=e.byteLength>>2,0!=(3&e.byteLength)&&this._offset++}float32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._f32View.set(e,this._offset),this._offset+=e.length}uint16ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++;let t=2*this._offset;this._u16View.set(e,t),this._offset+=e.length>>1,0!=(1&e.length)&&this._offset++}int32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._i32View.set(e,this._offset),this._offset+=e.length}uint32ArrayBuffer(e){this._ensureArrayBuffer(e.byteLength/4),this._i32View[this._offset]=e.length,this._offset++,this._u32View.set(e,this._offset),this._offset+=e.length}string(e){let t=(new TextEncoder).encode(e);this._ensureArrayBuffer(t.byteLength/4),this._i32View[this._offset]=t.byteLength,this._offset++,this._u8View.set(t,4*this._offset),this._offset+=t.byteLength>>2,0!=(3&t.byteLength)&&this._offset++}}class i{constructor(){this._buffer=new ArrayBuffer(0),this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=0,this._length=0,this._startOffset=-1,this._processor={int:()=>this._i32View[this._startOffset++],bool:()=>1===this._i32View[this._startOffset++],type:()=>this._i32View[this._startOffset++],float:()=>this._f32View[this._startOffset++],timestamp:()=>{this._startOffset%2==1&&this._startOffset++;let e=this._f64View[this._startOffset/2];return this._startOffset+=2,e},string:()=>{let e=this._i32View[this._startOffset++],t=(new TextDecoder).decode(new Uint8Array(this._buffer,4*this._startOffset,e));return this._startOffset+=e>>2,0!=(3&e)&&this._startOffset++,t},dataWithLength:()=>{let e=this._i32View[this._startOffset++],t=new Uint8Array(e);return t.set(this._u8View.subarray(4*this._startOffset,4*this._startOffset+e)),this._startOffset+=t.byteLength>>2,0!=(3&t.byteLength)&&this._startOffset++,t.buffer},floatArray:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+e)),this._startOffset+=e,t},matrix4x4:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+16)),this._startOffset+=e,t},matrix3x3:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+9)),this._startOffset+=e,t},identityCoefficients:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+50)),this._startOffset+=e,t},expressionCoefficients:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+29)),this._startOffset+=e,t},cameraModel:()=>{let e=this._i32View[this._startOffset++],t=new Float32Array(e);return t.set(this._f32View.subarray(this._startOffset,this._startOffset+6)),this._startOffset+=e,t},barcodeFormat:()=>this._i32View[this._startOffset++],faceLandmarkName:()=>this._i32View[this._startOffset++],instantTrackerTransformOrientation:()=>this._i32View[this._startOffset++],logLevel:()=>this._i32View[this._startOffset++]}}setData(e){this._buffer=e,this._i32View=new Int32Array(this._buffer),this._f32View=new Float32Array(this._buffer),this._f64View=new Float64Array(this._buffer),this._u8View=new Uint8Array(this._buffer),this._u16View=new Uint16Array(this._buffer),this._u32View=new Uint32Array(this._buffer),this._offset=0,this._length=0,e.byteLength>=4&&(this._offset=1,this._length=this._i32View[0]),this._startOffset=-1}hasMessage(){return this._offset+1<this._length}forMessages(e){for(;this.hasMessage();){let t=this._i32View[this._offset],r=this._i32View[this._offset+1];this._startOffset=this._offset+2,this._offset+=t,e(r,this._processor)}}}class n{constructor(e,t){this._impl=e,this._sender=t,this._deserializer=new i,this.serializersByPipelineId=new Map,this._pipeline_id_by_pipeline_id=new Map,this._pipeline_by_instance=new Map,this._pipeline_id_by_camera_source_id=new Map,this._camera_source_by_instance=new Map,this._pipeline_id_by_sequence_source_id=new Map,this._sequence_source_by_instance=new Map,this._pipeline_id_by_image_tracker_id=new Map,this._image_tracker_by_instance=new Map,this._pipeline_id_by_face_tracker_id=new Map,this._face_tracker_by_instance=new Map,this._pipeline_id_by_face_mesh_id=new Map,this._face_mesh_by_instance=new Map,this._pipeline_id_by_face_landmark_id=new Map,this._face_landmark_by_instance=new Map,this._pipeline_id_by_barcode_finder_id=new Map,this._barcode_finder_by_instance=new Map,this._pipeline_id_by_instant_world_tracker_id=new Map,this._instant_world_tracker_by_instance=new Map,this._pipeline_id_by_world_tracker_id=new Map,this._world_tracker_by_instance=new Map}processBuffer(e){this._deserializer.setData(e),this._deserializer.forMessages(((e,t)=>{switch(e){case 38:this._impl.log_level_set(t.logLevel());break;case 35:this._impl.analytics_project_id_set(t.string(),t.string());break;case 31:{let e=t.type(),r=this._impl.pipeline_create();this._pipeline_by_instance.set(e,r),this._pipeline_id_by_pipeline_id.set(e,e),this.serializersByPipelineId.set(e,new a((t=>{this._sender(e,t)})));break}case 32:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_destroy(r),this._pipeline_by_instance.delete(e);break}case 9:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_frame_update(r);break}case 8:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_camera_frame_submit(r,t.dataWithLength(),t.int(),t.int(),t.int(),t.matrix4x4(),t.cameraModel(),t.bool());break}case 10:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_accelerometer_submit(r,t.timestamp(),t.float(),t.float(),t.float());break}case 12:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_accelerometer_with_gravity_submit_int(r,t.timestamp(),t.timestamp(),t.float(),t.float(),t.float());break}case 11:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_accelerometer_without_gravity_submit_int(r,t.timestamp(),t.timestamp(),t.float(),t.float(),t.float());break}case 15:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_rotation_rate_submit(r,t.timestamp(),t.float(),t.float(),t.float());break}case 13:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_rotation_rate_submit_int(r,t.timestamp(),t.timestamp(),t.float(),t.float(),t.float());break}case 16:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_attitude_submit(r,t.timestamp(),t.float(),t.float(),t.float());break}case 14:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_attitude_submit_int(r,t.timestamp(),t.timestamp(),t.float(),t.float(),t.float());break}case 17:{let e=t.type(),r=this._pipeline_by_instance.get(e);if(void 0===r)return;this._impl.pipeline_motion_attitude_matrix_submit(r,t.matrix4x4());break}case 33:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=t.string(),n=this._impl.camera_source_create(a,i);this._camera_source_by_instance.set(e,n),this._pipeline_id_by_camera_source_id.set(e,r);break}case 34:{let e=t.type(),r=this._camera_source_by_instance.get(e);if(void 0===r)return;this._impl.camera_source_destroy(r),this._camera_source_by_instance.delete(e);break}case 39:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.sequence_source_create(a);this._sequence_source_by_instance.set(e,i),this._pipeline_id_by_sequence_source_id.set(e,r);break}case 40:{let e=t.type(),r=this._sequence_source_by_instance.get(e);if(void 0===r)return;this._impl.sequence_source_destroy(r),this._sequence_source_by_instance.delete(e);break}case 2:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.image_tracker_create(a);this._image_tracker_by_instance.set(e,i),this._pipeline_id_by_image_tracker_id.set(e,r);break}case 18:{let e=t.type(),r=this._image_tracker_by_instance.get(e);if(void 0===r)return;this._impl.image_tracker_destroy(r),this._image_tracker_by_instance.delete(e);break}case 4:{let e=t.type(),r=this._image_tracker_by_instance.get(e);if(void 0===r)return;this._impl.image_tracker_target_load_from_memory(r,t.dataWithLength());break}case 3:{let e=t.type(),r=this._image_tracker_by_instance.get(e);if(void 0===r)return;this._impl.image_tracker_enabled_set(r,t.bool());break}case 24:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.face_tracker_create(a);this._face_tracker_by_instance.set(e,i),this._pipeline_id_by_face_tracker_id.set(e,r);break}case 25:{let e=t.type(),r=this._face_tracker_by_instance.get(e);if(void 0===r)return;this._impl.face_tracker_destroy(r),this._face_tracker_by_instance.delete(e);break}case 26:{let e=t.type(),r=this._face_tracker_by_instance.get(e);if(void 0===r)return;this._impl.face_tracker_model_load_from_memory(r,t.dataWithLength());break}case 27:{let e=t.type(),r=this._face_tracker_by_instance.get(e);if(void 0===r)return;this._impl.face_tracker_enabled_set(r,t.bool());break}case 28:{let e=t.type(),r=this._face_tracker_by_instance.get(e);if(void 0===r)return;this._impl.face_tracker_max_faces_set(r,t.int());break}case 29:{let e=t.type(),r=this._impl.face_mesh_create();this._face_mesh_by_instance.set(e,r);break}case 30:{let e=t.type(),r=this._face_mesh_by_instance.get(e);if(void 0===r)return;this._impl.face_mesh_destroy(r),this._face_mesh_by_instance.delete(e);break}case 36:{let e=t.type(),r=t.faceLandmarkName(),a=this._impl.face_landmark_create(r);this._face_landmark_by_instance.set(e,a);break}case 37:{let e=t.type(),r=this._face_landmark_by_instance.get(e);if(void 0===r)return;this._impl.face_landmark_destroy(r),this._face_landmark_by_instance.delete(e);break}case 20:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.barcode_finder_create(a);this._barcode_finder_by_instance.set(e,i),this._pipeline_id_by_barcode_finder_id.set(e,r);break}case 21:{let e=t.type(),r=this._barcode_finder_by_instance.get(e);if(void 0===r)return;this._impl.barcode_finder_destroy(r),this._barcode_finder_by_instance.delete(e);break}case 22:{let e=t.type(),r=this._barcode_finder_by_instance.get(e);if(void 0===r)return;this._impl.barcode_finder_enabled_set(r,t.bool());break}case 23:{let e=t.type(),r=this._barcode_finder_by_instance.get(e);if(void 0===r)return;this._impl.barcode_finder_formats_set(r,t.barcodeFormat());break}case 5:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.instant_world_tracker_create(a);this._instant_world_tracker_by_instance.set(e,i),this._pipeline_id_by_instant_world_tracker_id.set(e,r);break}case 19:{let e=t.type(),r=this._instant_world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.instant_world_tracker_destroy(r),this._instant_world_tracker_by_instance.delete(e);break}case 6:{let e=t.type(),r=this._instant_world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.instant_world_tracker_enabled_set(r,t.bool());break}case 7:{let e=t.type(),r=this._instant_world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.instant_world_tracker_anchor_pose_set_from_camera_offset_raw(r,t.float(),t.float(),t.float(),t.instantTrackerTransformOrientation());break}case 41:{let e=t.type(),r=t.type(),a=this._pipeline_by_instance.get(r),i=this._impl.world_tracker_create(a);this._world_tracker_by_instance.set(e,i),this._pipeline_id_by_world_tracker_id.set(e,r);break}case 42:{let e=t.type(),r=this._world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.world_tracker_destroy(r),this._world_tracker_by_instance.delete(e);break}case 43:{let e=t.type(),r=this._world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.world_tracker_enabled_set(r,t.bool());break}case 44:{let e=t.type(),r=this._world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.world_tracker_reset(r);break}case 45:{let e=t.type(),r=this._world_tracker_by_instance.get(e);if(void 0===r)return;this._impl.world_tracker_debug_enabled_set(r,t.bool());break}}}))}exploreState(){for(let[e,t]of this._pipeline_by_instance){let r=this._pipeline_id_by_pipeline_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);a&&(a.sendMessage(7,(r=>{r.type(e),r.int(this._impl.pipeline_frame_number(t))})),a.sendMessage(6,(r=>{r.type(e),r.cameraModel(this._impl.pipeline_camera_model(t))})),a.sendMessage(5,(r=>{r.type(e),r.int(this._impl.pipeline_camera_frame_user_data(t))})),a.sendMessage(11,(r=>{r.type(e),r.matrix4x4(this._impl.pipeline_camera_frame_camera_attitude(t))})),a.sendMessage(12,(r=>{r.type(e),r.matrix4x4(this._impl.pipeline_camera_frame_device_attitude(t))})))}for(let[e,t]of this._camera_source_by_instance){let t=this._pipeline_id_by_camera_source_id.get(e);t&&this.serializersByPipelineId.get(t)}for(let[e,t]of this._sequence_source_by_instance){let t=this._pipeline_id_by_sequence_source_id.get(e);t&&this.serializersByPipelineId.get(t)}for(let[e,t]of this._image_tracker_by_instance){let r=this._pipeline_id_by_image_tracker_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);if(a){a.sendMessage(19,(r=>{r.type(e),r.int(this._impl.image_tracker_target_loaded_version(t))})),a.sendMessage(1,(r=>{r.type(e),r.int(this._impl.image_tracker_anchor_count(t))}));for(let r=0;r<this._impl.image_tracker_anchor_count(t);r++)a.sendMessage(2,(a=>{a.type(e),a.int(r),a.string(this._impl.image_tracker_anchor_id(t,r))}));for(let r=0;r<this._impl.image_tracker_anchor_count(t);r++)a.sendMessage(3,(a=>{a.type(e),a.int(r),a.matrix4x4(this._impl.image_tracker_anchor_pose_raw(t,r))}))}}for(let[e,t]of this._face_tracker_by_instance){let r=this._pipeline_id_by_face_tracker_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);if(a){a.sendMessage(18,(r=>{r.type(e),r.int(this._impl.face_tracker_model_loaded_version(t))})),a.sendMessage(13,(r=>{r.type(e),r.int(this._impl.face_tracker_anchor_count(t))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)a.sendMessage(14,(a=>{a.type(e),a.int(r),a.string(this._impl.face_tracker_anchor_id(t,r))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)a.sendMessage(15,(a=>{a.type(e),a.int(r),a.matrix4x4(this._impl.face_tracker_anchor_pose_raw(t,r))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)a.sendMessage(16,(a=>{a.type(e),a.int(r),a.identityCoefficients(this._impl.face_tracker_anchor_identity_coefficients(t,r))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)a.sendMessage(17,(a=>{a.type(e),a.int(r),a.expressionCoefficients(this._impl.face_tracker_anchor_expression_coefficients(t,r))}))}}for(let[e,t]of this._face_mesh_by_instance){let t=this._pipeline_id_by_face_mesh_id.get(e);t&&this.serializersByPipelineId.get(t)}for(let[e,t]of this._face_landmark_by_instance){let t=this._pipeline_id_by_face_landmark_id.get(e);t&&this.serializersByPipelineId.get(t)}for(let[e,t]of this._barcode_finder_by_instance){let r=this._pipeline_id_by_barcode_finder_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);if(a){a.sendMessage(8,(r=>{r.type(e),r.int(this._impl.barcode_finder_found_number(t))}));for(let r=0;r<this._impl.barcode_finder_found_number(t);r++)a.sendMessage(9,(a=>{a.type(e),a.int(r),a.string(this._impl.barcode_finder_found_text(t,r))}));for(let r=0;r<this._impl.barcode_finder_found_number(t);r++)a.sendMessage(10,(a=>{a.type(e),a.int(r),a.barcodeFormat(this._impl.barcode_finder_found_format(t,r))}))}}for(let[e,t]of this._instant_world_tracker_by_instance){let r=this._pipeline_id_by_instant_world_tracker_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);a&&a.sendMessage(4,(r=>{r.type(e),r.matrix4x4(this._impl.instant_world_tracker_anchor_pose_raw(t))}))}for(let[e,t]of this._world_tracker_by_instance){let r=this._pipeline_id_by_world_tracker_id.get(e);if(!r)continue;let a=this.serializersByPipelineId.get(r);if(a){a.sendMessage(27,(r=>{r.type(e),r.int(this._impl.world_tracker_quality(t))})),a.sendMessage(21,(r=>{r.type(e),r.int(this._impl.world_tracker_plane_count(t))}));for(let r=0;r<this._impl.world_tracker_plane_count(t);r++)a.sendMessage(22,(a=>{a.type(e),a.int(r),a.matrix4x4(this._impl.world_tracker_plane_pose_raw(t,r))}));a.sendMessage(23,(r=>{r.type(e),r.bool(this._impl.world_tracker_world_anchor_valid(t))})),a.sendMessage(24,(r=>{r.type(e),r.matrix4x4(this._impl.world_tracker_world_anchor_pose_raw(t))})),a.sendMessage(23,(r=>{r.type(e),r.bool(this._impl.world_tracker_ground_anchor_valid(t))})),a.sendMessage(26,(r=>{r.type(e),r.matrix4x4(this._impl.world_tracker_ground_anchor_pose_raw(t))})),a.sendMessage(29,(r=>{r.type(e),r.int(this._impl.world_tracker_debug_tracks_data_size(t))})),a.sendMessage(28,(r=>{r.type(e),r.floatArray(this._impl.world_tracker_debug_tracks_data(t))})),a.sendMessage(31,(r=>{r.type(e),r.int(this._impl.world_tracker_debug_projections_data_size(t))})),a.sendMessage(30,(r=>{r.type(e),r.floatArray(this._impl.world_tracker_debug_projections_data(t))}))}}}}class _{constructor(){this._funcs=[]}bind(e){this._funcs.push(e)}unbind(e){let t=this._funcs.indexOf(e);t>-1&&this._funcs.splice(t,1)}emit(){for(var e=0,t=this._funcs.length;e<t;e++)this._funcs[e]()}}class o{constructor(){this._funcs=[]}bind(e){this._funcs.push(e)}unbind(e){let t=this._funcs.indexOf(e);t>-1&&this._funcs.splice(t,1)}emit(e){for(var t=0,r=this._funcs.length;t<r;t++)this._funcs[t](e)}}var s,c,h,l,f,u,d,p="undefined"!=typeof Float32Array?Float32Array:Array;function m(){var e=new p(16);return p!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function b(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}Math.random,Math.PI,Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)}),function(e){e[e.UNKNOWN=131072]="UNKNOWN",e[e.AZTEC=1]="AZTEC",e[e.CODABAR=2]="CODABAR",e[e.CODE_39=4]="CODE_39",e[e.CODE_93=8]="CODE_93",e[e.CODE_128=16]="CODE_128",e[e.DATA_MATRIX=32]="DATA_MATRIX",e[e.EAN_8=64]="EAN_8",e[e.EAN_13=128]="EAN_13",e[e.ITF=256]="ITF",e[e.MAXICODE=512]="MAXICODE",e[e.PDF_417=1024]="PDF_417",e[e.QR_CODE=2048]="QR_CODE",e[e.RSS_14=4096]="RSS_14",e[e.RSS_EXPANDED=8192]="RSS_EXPANDED",e[e.UPC_A=16384]="UPC_A",e[e.UPC_E=32768]="UPC_E",e[e.UPC_EAN_EXTENSION=65536]="UPC_EAN_EXTENSION",e[e.ALL=131071]="ALL"}(s||(s={})),function(e){e[e.EYE_LEFT=0]="EYE_LEFT",e[e.EYE_RIGHT=1]="EYE_RIGHT",e[e.EAR_LEFT=2]="EAR_LEFT",e[e.EAR_RIGHT=3]="EAR_RIGHT",e[e.NOSE_BRIDGE=4]="NOSE_BRIDGE",e[e.NOSE_TIP=5]="NOSE_TIP",e[e.NOSE_BASE=6]="NOSE_BASE",e[e.LIP_TOP=7]="LIP_TOP",e[e.LIP_BOTTOM=8]="LIP_BOTTOM",e[e.MOUTH_CENTER=9]="MOUTH_CENTER",e[e.CHIN=10]="CHIN",e[e.EYEBROW_LEFT=11]="EYEBROW_LEFT",e[e.EYEBROW_RIGHT=12]="EYEBROW_RIGHT"}(c||(c={})),function(e){e[e.WORLD=3]="WORLD",e[e.MINUS_Z_AWAY_FROM_USER=4]="MINUS_Z_AWAY_FROM_USER",e[e.MINUS_Z_HEADING=5]="MINUS_Z_HEADING",e[e.UNCHANGED=6]="UNCHANGED"}(h||(h={})),function(e){e[e.LOG_LEVEL_NONE=0]="LOG_LEVEL_NONE",e[e.LOG_LEVEL_ERROR=1]="LOG_LEVEL_ERROR",e[e.LOG_LEVEL_WARNING=2]="LOG_LEVEL_WARNING",e[e.LOG_LEVEL_VERBOSE=3]="LOG_LEVEL_VERBOSE"}(l||(l={})),function(e){e[e.FRAME_PIXEL_FORMAT_I420=0]="FRAME_PIXEL_FORMAT_I420",e[e.FRAME_PIXEL_FORMAT_I420A=1]="FRAME_PIXEL_FORMAT_I420A",e[e.FRAME_PIXEL_FORMAT_I422=2]="FRAME_PIXEL_FORMAT_I422",e[e.FRAME_PIXEL_FORMAT_I444=3]="FRAME_PIXEL_FORMAT_I444",e[e.FRAME_PIXEL_FORMAT_NV12=4]="FRAME_PIXEL_FORMAT_NV12",e[e.FRAME_PIXEL_FORMAT_RGBA=5]="FRAME_PIXEL_FORMAT_RGBA",e[e.FRAME_PIXEL_FORMAT_BGRA=6]="FRAME_PIXEL_FORMAT_BGRA",e[e.FRAME_PIXEL_FORMAT_Y=7]="FRAME_PIXEL_FORMAT_Y"}(f||(f={})),function(e){e[e.IMAGE_TRACKER_TYPE_PLANAR=0]="IMAGE_TRACKER_TYPE_PLANAR",e[e.IMAGE_TRACKER_TYPE_CYLINDRICAL=1]="IMAGE_TRACKER_TYPE_CYLINDRICAL",e[e.IMAGE_TRACKER_TYPE_CONICAL=2]="IMAGE_TRACKER_TYPE_CONICAL"}(u||(u={})),function(e){e[e.WORLD_TRACKER_QUALITY_INITIALIZING=0]="WORLD_TRACKER_QUALITY_INITIALIZING",e[e.WORLD_TRACKER_QUALITY_GOOD=1]="WORLD_TRACKER_QUALITY_GOOD",e[e.WORLD_TRACKER_QUALITY_ORIENTATION_ONLY=2]="WORLD_TRACKER_QUALITY_ORIENTATION_ONLY"}(d||(d={}));const w=new Map;class v{constructor(e){this._gl=e,this._viewports=[],this._underlyingViewport=this._gl.viewport,this._viewports.push(this._gl.getParameter(this._gl.VIEWPORT)),this._gl.viewport=(e,t,r,a)=>{this._viewports[this._viewports.length-1]=[e,t,r,a],this._underlyingViewport.call(this._gl,e,t,r,a)}}static get(e){let t=w.get(e);return t||(t=new v(e),w.set(e,t)),t}push(){this._viewports.push(this._viewports[this._viewports.length-1])}pop(){const e=this._viewports.pop(),t=this._viewports[this._viewports.length-1];e&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]||this._underlyingViewport.call(this._gl,t[0],t[1],t[2],t[3])}}var E,g=r(238);!function(e){e[e.OBJECT_URL=0]="OBJECT_URL",e[e.SRC_OBJECT=1]="SRC_OBJECT"}(E||(E={}));let y={deviceMotionMutliplier:-1,blacklisted:!1,showGyroPermissionsWarningIfNecessary:!1,showSafariPermissionsResetIfNecessary:!1,requestHighFrameRate:!1,videoWidth:640,videoHeight:480,dataWidth:320,dataHeight:240,videoElementInDOM:!1,preferMediaStreamTrackProcessorCamera:!0,preferImageBitmapCamera:!1,ios164CameraSelection:!1,relyOnConstraintsForCameraSelection:!1,forceWindowOrientation:!1,intervalMultiplier:1,trustSensorIntervals:!1};"undefined"!=typeof window&&(window.zeeProfile=y,window.location.href.indexOf("_mstppipeline")>=0&&(console.log("Configuring for MSTP camera pipeline (if supported)"),y.preferMediaStreamTrackProcessorCamera=!0),window.location.href.indexOf("_imagebitmappipeline")>=0&&(console.log("Configuring for ImageBitmap camera pipeline (if supported)"),y.preferImageBitmapCamera=!0));let k=new g.UAParser,A=(k.getOS().name||"unknown").toLowerCase(),R=(k.getEngine().name||"unknown").toLowerCase();function N(e){y.forceWindowOrientation=!0,y.preferMediaStreamTrackProcessorCamera=!1,y.intervalMultiplier=1e3,y.trustSensorIntervals=!0;let t=e.split(".");if(t.length>=2){const e=parseInt(t[0]),r=parseInt(t[1]);(e<11||11===e&&r<3)&&(y.blacklisted=!0),(e<12||12===e&&r<2)&&(y.videoElementInDOM=!0),(12===e&&r>=2||e>=13)&&(y.showGyroPermissionsWarningIfNecessary=!0),e>=13&&(y.showSafariPermissionsResetIfNecessary=!0),(e>=12&&r>1||e>=13)&&navigator.mediaDevices&&navigator.mediaDevices.getSupportedConstraints&&navigator.mediaDevices.getSupportedConstraints().frameRate&&(y.requestHighFrameRate=!0,e<14&&(y.videoHeight=360,y.dataHeight=180)),16===e&&r>=4&&(y.ios164CameraSelection=!0),e>=17&&(y.relyOnConstraintsForCameraSelection=!0)}}function S(e,t,r){let a=e.createShader(t);if(!a)throw new Error("Unable to create shader");e.shaderSource(a,r),e.compileShader(a);let i=e.getShaderInfoLog(a);if(i&&i.trim().length>0)throw new Error("Shader compile error: "+i);return a}"webkit"===R&&"ios"!==A&&(y.deviceMotionMutliplier=1,"undefined"!=typeof window&&void 0!==window.orientation&&N("15.0")),"webkit"===R&&"ios"===A&&(y.deviceMotionMutliplier=1,N(k.getOS().version||"15.0"));class T{constructor(e){this._gl=e,this._isPaused=!0,this._hadFrames=!1,this._isUserFacing=!1,this._cameraToScreenRotation=0,this._isUploadFrame=!0,this._computedTransformRotation=-1,this._computedFrontCameraRotation=!1,this._cameraUvTransform=m(),this._framebufferWidth=0,this._framebufferHeight=0,this._framebufferId=null,this._renderTexture=null,this._isWebGL2=!1,this._isWebGL2=e.getParameter(e.VERSION).indexOf("WebGL 2")>=0,this._isWebGL2||(this._instancedArraysExtension=this._gl.getExtension("ANGLE_instanced_arrays"))}resetGLContext(){this._framebufferId=null,this._renderTexture=null,this._vertexBuffer=void 0,this._indexBuffer=void 0,this._greyscaleShader=void 0}destroy(){this.resetGLContext()}uploadFrame(e,t,r,a){let i=this._gl;const n=v.get(i);n.push();const _=i.isEnabled(i.SCISSOR_TEST),o=i.isEnabled(i.DEPTH_TEST),s=i.isEnabled(i.BLEND),c=i.isEnabled(i.CULL_FACE),h=i.isEnabled(i.STENCIL_TEST),l=i.getParameter(i.ACTIVE_TEXTURE),f=i.getParameter(i.UNPACK_FLIP_Y_WEBGL),u=i.getParameter(i.CURRENT_PROGRAM);i.activeTexture(i.TEXTURE0);const d=i.getParameter(i.TEXTURE_BINDING_2D),p=i.getParameter(i.FRAMEBUFFER_BINDING),m=i.getParameter(i.ARRAY_BUFFER_BINDING),b=i.getParameter(i.ELEMENT_ARRAY_BUFFER_BINDING);i.disable(i.SCISSOR_TEST),i.disable(i.DEPTH_TEST),i.disable(i.BLEND),i.disable(i.CULL_FACE),i.disable(i.STENCIL_TEST),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1),i.bindTexture(i.TEXTURE_2D,e);const w=i.RGBA,E=i.RGBA,g=i.UNSIGNED_BYTE;i.texImage2D(i.TEXTURE_2D,0,w,E,g,t);let k=0,A=0;"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement?(k=t.videoWidth,A=t.videoHeight):(k=t.width,A=t.height),A>k&&(A=[k,k=A][0]),this._updateTransforms(r,a);let R=this._getFramebuffer(i,y.dataWidth/4,y.dataHeight),N=this._getVertexBuffer(i),S=this._getIndexBuffer(i),T=this._getGreyscaleShader(i);const x=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_SIZE),z=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_TYPE),L=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_NORMALIZED),I=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_STRIDE),P=i.getVertexAttribOffset(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_POINTER),M=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_ENABLED),F=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),O=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_SIZE),C=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_TYPE),B=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_NORMALIZED),U=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_STRIDE),j=i.getVertexAttribOffset(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_POINTER),D=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),V=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_ENABLED);let K=0,Z=0;this._isWebGL2?(K=i.getVertexAttrib(T.aVertexPositionLoc,i.VERTEX_ATTRIB_ARRAY_DIVISOR),Z=i.getVertexAttrib(T.aTextureCoordLoc,i.VERTEX_ATTRIB_ARRAY_DIVISOR),i.vertexAttribDivisor(T.aVertexPositionLoc,0),i.vertexAttribDivisor(T.aTextureCoordLoc,0)):this._instancedArraysExtension&&(K=i.getVertexAttrib(T.aVertexPositionLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),Z=i.getVertexAttrib(T.aTextureCoordLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),this._instancedArraysExtension.vertexAttribDivisorANGLE(T.aVertexPositionLoc,0),this._instancedArraysExtension.vertexAttribDivisorANGLE(T.aTextureCoordLoc,0)),i.bindFramebuffer(i.FRAMEBUFFER,R),i.viewport(0,0,this._framebufferWidth,this._framebufferHeight),i.clear(i.COLOR_BUFFER_BIT),i.bindBuffer(i.ARRAY_BUFFER,N),i.vertexAttribPointer(T.aVertexPositionLoc,2,i.FLOAT,!1,16,0),i.enableVertexAttribArray(T.aVertexPositionLoc),i.vertexAttribPointer(T.aTextureCoordLoc,2,i.FLOAT,!1,16,8),i.enableVertexAttribArray(T.aTextureCoordLoc),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,S),i.useProgram(T.program),i.uniform1f(T.uTexWidthLoc,y.dataWidth),i.uniformMatrix4fv(T.uUvTransformLoc,!1,this._cameraUvTransform),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,e),i.uniform1i(T.uSamplerLoc,0),i.drawElements(i.TRIANGLES,6,i.UNSIGNED_SHORT,0),i.bindBuffer(i.ARRAY_BUFFER,F),i.vertexAttribPointer(T.aVertexPositionLoc,x,z,L,I,P),i.bindBuffer(i.ARRAY_BUFFER,D),i.vertexAttribPointer(T.aTextureCoordLoc,O,C,B,U,j),i.bindBuffer(i.ARRAY_BUFFER,m),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,b),M||i.disableVertexAttribArray(T.aVertexPositionLoc),V||i.disableVertexAttribArray(T.aTextureCoordLoc),this._isWebGL2?(i.vertexAttribDivisor(T.aVertexPositionLoc,K),i.vertexAttribDivisor(T.aTextureCoordLoc,Z)):this._instancedArraysExtension&&(this._instancedArraysExtension.vertexAttribDivisorANGLE(T.aVertexPositionLoc,K),this._instancedArraysExtension.vertexAttribDivisorANGLE(T.aTextureCoordLoc,Z)),i.bindFramebuffer(i.FRAMEBUFFER,p),i.useProgram(u),i.bindTexture(i.TEXTURE_2D,d),i.activeTexture(l),i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,f),n.pop(),s&&i.enable(i.BLEND),c&&i.enable(i.CULL_FACE),o&&i.enable(i.DEPTH_TEST),_&&i.enable(i.SCISSOR_TEST),h&&i.enable(i.STENCIL_TEST)}readFrame(e,t){let r=this._gl,a=new Uint8Array(t);const i=r.getParameter(r.FRAMEBUFFER_BINDING);let n=this._getFramebuffer(r,y.dataWidth/4,y.dataHeight);return r.bindFramebuffer(r.FRAMEBUFFER,n),r.readPixels(0,0,this._framebufferWidth,this._framebufferHeight,r.RGBA,r.UNSIGNED_BYTE,a),r.bindFramebuffer(r.FRAMEBUFFER,i),{uvTransform:this._cameraUvTransform,data:t,texture:e,dataWidth:y.dataWidth,dataHeight:y.dataHeight,userFacing:this._computedFrontCameraRotation}}_updateTransforms(e,t){e==this._computedTransformRotation&&t==this._computedFrontCameraRotation||(this._computedTransformRotation=e,this._computedFrontCameraRotation=t,this._cameraUvTransform=this._getCameraUvTransform())}_getCameraUvTransform(){switch(this._computedTransformRotation){case 270:return new Float32Array([0,1,0,0,-1,0,0,0,0,0,1,0,1,0,0,1]);case 180:return new Float32Array([-1,0,0,0,0,-1,0,0,0,0,1,0,1,1,0,1]);case 90:return new Float32Array([0,-1,0,0,1,0,0,0,0,0,1,0,0,1,0,1])}return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}_getFramebuffer(e,t,r){if(this._framebufferWidth===t&&this._framebufferHeight===r&&this._framebufferId)return this._framebufferId;if(this._framebufferId&&(e.deleteFramebuffer(this._framebufferId),this._framebufferId=null),this._renderTexture&&(e.deleteTexture(this._renderTexture),this._renderTexture=null),this._framebufferId=e.createFramebuffer(),!this._framebufferId)throw new Error("Unable to create framebuffer");if(e.bindFramebuffer(e.FRAMEBUFFER,this._framebufferId),this._renderTexture=e.createTexture(),!this._renderTexture)throw new Error("Unable to create render texture");e.activeTexture(e.TEXTURE0);const a=e.getParameter(e.TEXTURE_BINDING_2D);e.bindTexture(e.TEXTURE_2D,this._renderTexture),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,r,0,e.RGBA,e.UNSIGNED_BYTE,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameterf(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,this._renderTexture,0);let i=e.checkFramebufferStatus(e.FRAMEBUFFER);if(i!==e.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer not complete: "+i.toString());return this._framebufferWidth=t,this._framebufferHeight=r,e.bindTexture(e.TEXTURE_2D,a),e.bindFramebuffer(e.FRAMEBUFFER,null),this._framebufferId}_getVertexBuffer(e){if(this._vertexBuffer)return this._vertexBuffer;if(this._vertexBuffer=e.createBuffer(),!this._vertexBuffer)throw new Error("Unable to create vertex buffer");e.bindBuffer(e.ARRAY_BUFFER,this._vertexBuffer);let t=new Float32Array([-1,-1,0,0,-1,1,0,1,1,1,1,1,1,-1,1,0]);return e.bufferData(e.ARRAY_BUFFER,t,e.STATIC_DRAW),this._vertexBuffer}_getIndexBuffer(e){if(this._indexBuffer)return this._indexBuffer;if(this._indexBuffer=e.createBuffer(),!this._indexBuffer)throw new Error("Unable to create index buffer");e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this._indexBuffer);let t=new Uint16Array([0,1,2,0,2,3]);return e.bufferData(e.ELEMENT_ARRAY_BUFFER,t,e.STATIC_DRAW),this._indexBuffer}_getGreyscaleShader(e){if(this._greyscaleShader)return this._greyscaleShader;let t=e.createProgram();if(!t)throw new Error("Unable to create program");let r=S(e,e.VERTEX_SHADER,P),a=S(e,e.FRAGMENT_SHADER,M);e.attachShader(t,r),e.attachShader(t,a),function(e,t){e.linkProgram(t);let r=e.getProgramInfoLog(t);if(r&&r.trim().length>0)throw new Error("Unable to link: "+r)}(e,t);let i=e.getUniformLocation(t,"uTexWidth");if(!i)throw new Error("Unable to get uniform location uTexWidth");let n=e.getUniformLocation(t,"uUvTransform");if(!n)throw new Error("Unable to get uniform location uUvTransform");let _=e.getUniformLocation(t,"uSampler");if(!_)throw new Error("Unable to get uniform location uSampler");return this._greyscaleShader={program:t,aVertexPositionLoc:e.getAttribLocation(t,"aVertexPosition"),aTextureCoordLoc:e.getAttribLocation(t,"aTextureCoord"),uTexWidthLoc:i,uUvTransformLoc:n,uSamplerLoc:_},this._greyscaleShader}}let x,z,L,I,P="\n attribute vec4 aVertexPosition;\n attribute vec2 aTextureCoord;\n\n varying highp vec2 vTextureCoord1;\n varying highp vec2 vTextureCoord2;\n varying highp vec2 vTextureCoord3;\n varying highp vec2 vTextureCoord4;\n\n uniform float uTexWidth;\n\tuniform mat4 uUvTransform;\n\n void main(void) {\n highp vec2 offset1 = vec2(1.5 / uTexWidth, 0);\n highp vec2 offset2 = vec2(0.5 / uTexWidth, 0);\n\n gl_Position = aVertexPosition;\n vTextureCoord1 = (uUvTransform * vec4(aTextureCoord - offset1, 0, 1)).xy;\n vTextureCoord2 = (uUvTransform * vec4(aTextureCoord - offset2, 0, 1)).xy;\n vTextureCoord3 = (uUvTransform * vec4(aTextureCoord + offset2, 0, 1)).xy;\n vTextureCoord4 = (uUvTransform * vec4(aTextureCoord + offset1, 0, 1)).xy;\n }\n",M="\n varying highp vec2 vTextureCoord1;\n varying highp vec2 vTextureCoord2;\n varying highp vec2 vTextureCoord3;\n varying highp vec2 vTextureCoord4;\n\n uniform sampler2D uSampler;\n\n const lowp vec3 colorWeights = vec3(77.0 / 256.0, 150.0 / 256.0, 29.0 / 256.0);\n\n void main(void) {\n lowp vec4 outpx;\n\n outpx.r = dot(colorWeights, texture2D(uSampler, vTextureCoord1).xyz);\n outpx.g = dot(colorWeights, texture2D(uSampler, vTextureCoord2).xyz);\n outpx.b = dot(colorWeights, texture2D(uSampler, vTextureCoord3).xyz);\n outpx.a = dot(colorWeights, texture2D(uSampler, vTextureCoord4).xyz);\n\n gl_FragColor = outpx;\n }\n";var F=function(e,t,r,a){return new(r||(r=Promise))((function(i,n){function _(e){try{s(a.next(e))}catch(e){n(e)}}function o(e){try{s(a.throw(e))}catch(e){n(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(_,o)}s((a=a.apply(e,t||[])).next())}))};let O,C=new class{constructor(){this.onOutgoingMessage=new _,this.onIncomingMessage=new o,this._outgoingMessages=[]}postIncomingMessage(e){this.onIncomingMessage.emit(e)}postOutgoingMessage(e,t){this._outgoingMessages.push({msg:e,transferables:t}),this.onOutgoingMessage.emit()}getOutgoingMessages(){let e=this._outgoingMessages;return this._outgoingMessages=[],e}},B=0,U=!1;const j=new Map;function D(e,r){return F(this,void 0,void 0,(function*(){let a=t({locateFile:(t,r)=>t.endsWith("zappar-cv.wasm")?e:r+t,instantiateWasm:(e,t)=>{const a=new WebAssembly.Instance(r,e);return t(a),a.exports},onRuntimeInitialized:()=>{let e=function(e){let t=e.cwrap("zappar_log_level","number",[]),r=e.cwrap("zappar_log_level_set",null,["number"]),a=e.cwrap("zappar_analytics_project_id_set",null,["string","string"]),i=e.cwrap("zappar_pipeline_create","number",[]),n=e.cwrap("zappar_pipeline_destroy",null,["number"]),_=e.cwrap("zappar_pipeline_camera_frame_data_raw","number",["number"]),o=e.cwrap("zappar_pipeline_camera_frame_data_raw_size","number",["number"]),s=e.cwrap("zappar_pipeline_camera_frame_data_raw_width","number",["number"]),c=e.cwrap("zappar_pipeline_camera_frame_data_raw_height","number",["number"]),h=e.cwrap("zappar_pipeline_frame_update",null,["number"]),l=e.cwrap("zappar_pipeline_frame_number","number",["number"]),f=e.cwrap("zappar_pipeline_camera_model","number",["number"]),u=e.cwrap("zappar_pipeline_camera_frame_user_data","number",["number"]),d=e.cwrap("zappar_pipeline_camera_frame_submit",null,["number","number","number","number","number","number","number","number","number"]),p=e.cwrap("zappar_pipeline_camera_frame_submit_raw_pointer",null,["number","number","number","number","number","number","number","number","number","number","number","number"]),m=e.cwrap("zappar_pipeline_camera_frame_camera_attitude","number",["number"]),b=e.cwrap("zappar_pipeline_camera_frame_device_attitude","number",["number"]),w=e.cwrap("zappar_pipeline_motion_accelerometer_submit",null,["number","number","number","number","number"]),v=e.cwrap("zappar_pipeline_motion_accelerometer_with_gravity_submit_int",null,["number","number","number","number","number","number"]),E=e.cwrap("zappar_pipeline_motion_accelerometer_without_gravity_submit_int",null,["number","number","number","number","number","number"]),g=e.cwrap("zappar_pipeline_motion_rotation_rate_submit",null,["number","number","number","number","number"]),y=e.cwrap("zappar_pipeline_motion_rotation_rate_submit_int",null,["number","number","number","number","number","number"]),k=e.cwrap("zappar_pipeline_motion_attitude_submit",null,["number","number","number","number","number"]),A=e.cwrap("zappar_pipeline_motion_attitude_submit_int",null,["number","number","number","number","number","number"]),R=e.cwrap("zappar_pipeline_motion_attitude_matrix_submit",null,["number","number"]),N=e.cwrap("zappar_camera_source_create","number",["number","string"]),S=e.cwrap("zappar_camera_source_destroy",null,["number"]),T=e.cwrap("zappar_sequence_source_create","number",["number"]),x=e.cwrap("zappar_sequence_source_destroy",null,["number"]),z=e.cwrap("zappar_image_tracker_create","number",["number"]),L=e.cwrap("zappar_image_tracker_destroy",null,["number"]),I=e.cwrap("zappar_image_tracker_target_load_from_memory",null,["number","number","number"]),P=e.cwrap("zappar_image_tracker_target_loaded_version","number",["number"]),M=e.cwrap("zappar_image_tracker_enabled","number",["number"]),F=e.cwrap("zappar_image_tracker_enabled_set",null,["number","number"]),O=e.cwrap("zappar_image_tracker_anchor_count","number",["number"]),C=e.cwrap("zappar_image_tracker_anchor_id","string",["number","number"]),B=e.cwrap("zappar_image_tracker_anchor_pose_raw","number",["number","number"]),U=e.cwrap("zappar_face_tracker_create","number",["number"]),j=e.cwrap("zappar_face_tracker_destroy",null,["number"]),D=e.cwrap("zappar_face_tracker_model_load_from_memory",null,["number","number","number"]),V=e.cwrap("zappar_face_tracker_model_loaded_version","number",["number"]),K=e.cwrap("zappar_face_tracker_enabled_set",null,["number","number"]),Z=e.cwrap("zappar_face_tracker_enabled","number",["number"]),G=e.cwrap("zappar_face_tracker_max_faces_set",null,["number","number"]),W=e.cwrap("zappar_face_tracker_max_faces","number",["number"]),H=e.cwrap("zappar_face_tracker_anchor_count","number",["number"]),Y=e.cwrap("zappar_face_tracker_anchor_id","string",["number","number"]),q=e.cwrap("zappar_face_tracker_anchor_pose_raw","number",["number","number"]),X=e.cwrap("zappar_face_tracker_anchor_identity_coefficients","number",["number","number"]),$=e.cwrap("zappar_face_tracker_anchor_expression_coefficients","number",["number","number"]),J=e.cwrap("zappar_face_mesh_create","number",[]),Q=e.cwrap("zappar_face_mesh_destroy",null,["number"]),ee=e.cwrap("zappar_face_landmark_create","number",["number"]),te=e.cwrap("zappar_face_landmark_destroy",null,["number"]),re=e.cwrap("zappar_barcode_finder_create","number",["number"]),ae=e.cwrap("zappar_barcode_finder_destroy",null,["number"]),ie=e.cwrap("zappar_barcode_finder_enabled_set",null,["number","number"]),ne=e.cwrap("zappar_barcode_finder_enabled","number",["number"]),_e=e.cwrap("zappar_barcode_finder_found_number","number",["number"]),oe=e.cwrap("zappar_barcode_finder_found_text","string",["number","number"]),se=e.cwrap("zappar_barcode_finder_found_format","number",["number","number"]),ce=e.cwrap("zappar_barcode_finder_formats","number",["number"]),he=e.cwrap("zappar_barcode_finder_formats_set",null,["number","number"]),le=e.cwrap("zappar_instant_world_tracker_create","number",["number"]),fe=e.cwrap("zappar_instant_world_tracker_destroy",null,["number"]),ue=e.cwrap("zappar_instant_world_tracker_enabled_set",null,["number","number"]),de=e.cwrap("zappar_instant_world_tracker_enabled","number",["number"]),pe=e.cwrap("zappar_instant_world_tracker_anchor_pose_raw","number",["number"]),me=e.cwrap("zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw",null,["number","number","number","number","number"]),be=e.cwrap("zappar_world_tracker_create","number",["number"]),we=e.cwrap("zappar_world_tracker_destroy",null,["number"]),ve=e.cwrap("zappar_world_tracker_enabled","number",["number"]),Ee=e.cwrap("zappar_world_tracker_enabled_set",null,["number","number"]),ge=e.cwrap("zappar_world_tracker_quality","number",["number"]),ye=e.cwrap("zappar_world_tracker_plane_count","number",["number"]),ke=e.cwrap("zappar_world_tracker_plane_pose_raw","number",["number","number"]),Ae=e.cwrap("zappar_world_tracker_world_anchor_valid","number",["number"]),Re=e.cwrap("zappar_world_tracker_world_anchor_pose_raw","number",["number"]),Ne=e.cwrap("zappar_world_tracker_ground_anchor_valid","number",["number"]),Se=e.cwrap("zappar_world_tracker_ground_anchor_pose_raw","number",["number"]),Te=e.cwrap("zappar_world_tracker_reset",null,["number"]),xe=e.cwrap("zappar_world_tracker_debug_enabled","number",["number"]),ze=e.cwrap("zappar_world_tracker_debug_enabled_set",null,["number","number"]),Le=e.cwrap("zappar_world_tracker_debug_tracks_data_size","number",["number"]),Ie=e.cwrap("zappar_world_tracker_debug_tracks_data","number",["number"]),Pe=e.cwrap("zappar_world_tracker_debug_projections_data_size","number",["number"]),Me=e.cwrap("zappar_world_tracker_debug_projections_data","number",["number"]),Fe=32,Oe=e._malloc(Fe),Ce=(e._malloc(64),new Map),Be=(t,r)=>{let a=Ce.get(t);return(!a||a[0]<r)&&(a&&e._free(a[1]),a=[r,e._malloc(r)],Ce.set(t,a)),a[1]};return{log_level:()=>t(),log_level_set:e=>r(e),analytics_project_id_set:(e,t)=>a(e,t),pipeline_create:()=>i(),pipeline_destroy:()=>{n()},pipeline_camera_frame_data_raw:e=>_(e),pipeline_camera_frame_data_raw_size:e=>o(e),pipeline_camera_frame_data_raw_width:e=>s(e),pipeline_camera_frame_data_raw_height:e=>c(e),pipeline_frame_update:e=>h(e),pipeline_frame_number:e=>l(e),pipeline_camera_model:t=>{let r=f(t),a=new Float32Array(6);return a.set(e.HEAPF32.subarray(r/4,6+r/4)),r=a,r},pipeline_camera_frame_user_data:e=>u(e),pipeline_camera_frame_submit:(t,r,a,i,n,_,o,s)=>{Fe<r.byteLength&&(e._free(Oe),Fe=r.byteLength,Oe=e._malloc(Fe));let c=Oe,h=r.byteLength;e.HEAPU8.set(new Uint8Array(r),Oe);let l=a,f=i,u=n,p=Be(4,_.byteLength);e.HEAPF32.set(_,p/4);let m=Be(5,o.byteLength);return e.HEAPF32.set(o,m/4),d(t,c,h,l,f,u,p,m,s?1:0)},pipeline_camera_frame_submit_raw_pointer:(t,r,a,i,n,_,o,s,c,h,l,f)=>{let u=r,d=a,m=i,b=n,w=_,v=o,E=Be(6,s.byteLength);e.HEAPF32.set(s,E/4);let g=c,y=Be(8,h.byteLength);return e.HEAPF32.set(h,y/4),p(t,u,d,m,b,w,v,E,g,y,l?1:0,f)},pipeline_camera_frame_camera_attitude:t=>{let r=m(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},pipeline_camera_frame_device_attitude:t=>{let r=b(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},pipeline_motion_accelerometer_submit:(e,t,r,a,i)=>w(e,t,r,a,i),pipeline_motion_accelerometer_with_gravity_submit_int:(e,t,r,a,i,n)=>v(e,t,r,a,i,n),pipeline_motion_accelerometer_without_gravity_submit_int:(e,t,r,a,i,n)=>E(e,t,r,a,i,n),pipeline_motion_rotation_rate_submit:(e,t,r,a,i)=>g(e,t,r,a,i),pipeline_motion_rotation_rate_submit_int:(e,t,r,a,i,n)=>y(e,t,r,a,i,n),pipeline_motion_attitude_submit:(e,t,r,a,i)=>k(e,t,r,a,i),pipeline_motion_attitude_submit_int:(e,t,r,a,i,n)=>A(e,t,r,a,i,n),pipeline_motion_attitude_matrix_submit:(t,r)=>{let a=Be(0,r.byteLength);return e.HEAPF32.set(r,a/4),R(t,a)},camera_source_create:(e,t)=>N(e,t),camera_source_destroy:()=>{S()},sequence_source_create:e=>T(e),sequence_source_destroy:()=>{x()},image_tracker_create:e=>z(e),image_tracker_destroy:()=>{L()},image_tracker_target_load_from_memory:(t,r)=>{Fe<r.byteLength&&(e._free(Oe),Fe=r.byteLength,Oe=e._malloc(Fe));let a=Oe,i=r.byteLength;return e.HEAPU8.set(new Uint8Array(r),Oe),I(t,a,i)},image_tracker_target_loaded_version:e=>P(e),image_tracker_enabled:e=>{let t=M(e);return t=1===t,t},image_tracker_enabled_set:(e,t)=>F(e,t?1:0),image_tracker_anchor_count:e=>O(e),image_tracker_anchor_id:(e,t)=>C(e,t),image_tracker_anchor_pose_raw:(t,r)=>{let a=B(t,r),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},face_tracker_create:e=>U(e),face_tracker_destroy:()=>{j()},face_tracker_model_load_from_memory:(t,r)=>{Fe<r.byteLength&&(e._free(Oe),Fe=r.byteLength,Oe=e._malloc(Fe));let a=Oe,i=r.byteLength;return e.HEAPU8.set(new Uint8Array(r),Oe),D(t,a,i)},face_tracker_model_loaded_version:e=>V(e),face_tracker_enabled_set:(e,t)=>K(e,t?1:0),face_tracker_enabled:e=>{let t=Z(e);return t=1===t,t},face_tracker_max_faces_set:(e,t)=>G(e,t),face_tracker_max_faces:e=>W(e),face_tracker_anchor_count:e=>H(e),face_tracker_anchor_id:(e,t)=>Y(e,t),face_tracker_anchor_pose_raw:(t,r)=>{let a=q(t,r),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},face_tracker_anchor_identity_coefficients:(t,r)=>{let a=X(t,r),i=new Float32Array(50);return i.set(e.HEAPF32.subarray(a/4,50+a/4)),a=i,a},face_tracker_anchor_expression_coefficients:(t,r)=>{let a=$(t,r),i=new Float32Array(29);return i.set(e.HEAPF32.subarray(a/4,29+a/4)),a=i,a},face_mesh_create:()=>J(),face_mesh_destroy:()=>{Q()},face_landmark_create:e=>ee(e),face_landmark_destroy:()=>{te()},barcode_finder_create:e=>re(e),barcode_finder_destroy:()=>{ae()},barcode_finder_enabled_set:(e,t)=>ie(e,t?1:0),barcode_finder_enabled:e=>{let t=ne(e);return t=1===t,t},barcode_finder_found_number:e=>_e(e),barcode_finder_found_text:(e,t)=>oe(e,t),barcode_finder_found_format:(e,t)=>se(e,t),barcode_finder_formats:e=>ce(e),barcode_finder_formats_set:(e,t)=>he(e,t),instant_world_tracker_create:e=>le(e),instant_world_tracker_destroy:()=>{fe()},instant_world_tracker_enabled_set:(e,t)=>ue(e,t?1:0),instant_world_tracker_enabled:e=>{let t=de(e);return t=1===t,t},instant_world_tracker_anchor_pose_raw:t=>{let r=pe(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},instant_world_tracker_anchor_pose_set_from_camera_offset_raw:(e,t,r,a,i)=>me(e,t,r,a,i),world_tracker_create:e=>be(e),world_tracker_destroy:()=>{we()},world_tracker_enabled:e=>{let t=ve(e);return t=1===t,t},world_tracker_enabled_set:(e,t)=>Ee(e,t?1:0),world_tracker_quality:e=>ge(e),world_tracker_plane_count:e=>ye(e),world_tracker_plane_pose_raw:(t,r)=>{let a=ke(t,r),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(a/4,16+a/4)),a=i,a},world_tracker_world_anchor_valid:e=>{let t=Ae(e);return t=1===t,t},world_tracker_world_anchor_pose_raw:t=>{let r=Re(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},world_tracker_ground_anchor_valid:e=>{let t=Ne(e);return t=1===t,t},world_tracker_ground_anchor_pose_raw:t=>{let r=Se(t),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(r/4,16+r/4)),r=a,r},world_tracker_reset:e=>Te(e),world_tracker_debug_enabled:e=>{let t=xe(e);return t=1===t,t},world_tracker_debug_enabled_set:(e,t)=>ze(e,t?1:0),world_tracker_debug_tracks_data_size:e=>Le(e),world_tracker_debug_tracks_data:t=>{let r=Ie(t),a=Le(t),i=new Float32Array(a);return i.set(e.HEAPF32.subarray(r/4,a+r/4)),r=i,r},world_tracker_debug_projections_data_size:e=>Pe(e),world_tracker_debug_projections_data:t=>{let r=Me(t),a=Pe(t),i=new Float32Array(a);return i.set(e.HEAPF32.subarray(r/4,a+r/4)),r=i,r}}}(a);const t=function(e){return{worker_message_send_count:e.cwrap("worker_message_send_count","number",[]),worker_message_send_clear:e.cwrap("worker_message_send_clear",null,[]),worker_message_send_data_size:e.cwrap("worker_message_send_data_size","number",["number"]),worker_message_send_data:e.cwrap("worker_message_send_data","number",["number"]),worker_message_send_reference:e.cwrap("worker_message_send_reference","number",["number"]),worker_message_receive:e.cwrap("worker_message_receive",null,["number","number","number"])}}(a);let r=new n(e,((e,t)=>{C.postOutgoingMessage({p:e,t:"zappar",d:t},[t])}));C.postOutgoingMessage("loaded",[]),C.onIncomingMessage.bind((i=>{var n,_,o;switch(i.t){case"zappar":r.processBuffer(i.d),C.postOutgoingMessage({t:"buf",d:i.d},[i.d]);break;case"buf":null===(n=r.serializersByPipelineId.get(i.p))||void 0===n||n.bufferReturn(i.d);break;case"cameraFrameC2S":{let n,_=i,o=r._pipeline_by_instance.get(_.p);o&&(e.pipeline_camera_frame_submit(o,_.d,_.width,_.height,_.token,_.c2d,_.cm,_.userFacing),e.pipeline_frame_update(o),n=e.pipeline_camera_frame_device_attitude(o),r.exploreState(),$(a,t));let s={token:_.token,d:_.d,p:_.p,t:"cameraFrameRecycleS2C",att:n};C.postOutgoingMessage(s,[_.d]);break}case"rawenabled":U=i.v;break;case"rawrequest":{const e=i,t=j.get(e.p),r={t:"raw",token:e.token,p:e.p,data:t&&null!==(o=null===(_=t.ready.find((t=>t.token===e.token)))||void 0===_?void 0:_.data)&&void 0!==o?o:null};C.postOutgoingMessage(r,[]);break}case"streamC2S":{let n=i;(function(e,t,r,a,i,n,_,o){return F(this,void 0,void 0,(function*(){for(;;){let s;try{s=yield r.getReader()}catch(e){yield q(1e3);continue}try{return void(yield Y(e,t,s,a,i,n,_,o))}catch(e){}return void(yield q(1e3))}}))})(a,e,n.s,n.p,n.userFacing,r,n.source,t).then((()=>{let e={t:"streamEndedS2C",p:n.p,source:n.source};C.postOutgoingMessage(e,[])})).catch((e=>{}));break}case"cameraToScreenC2S":B=i.r;break;case"imageBitmapC2S":!function(e,t,r,a){const[i,n]=function(){if(!L||!I){const e=new OffscreenCanvas(1,1);if(I=e.getContext("webgl"),!I)throw new Error("Unable to get offscreen GL context");L=new T(I)}return[L,I]}();if(z||(z=n.createTexture(),n.bindTexture(n.TEXTURE_2D,z),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR)),!z)return;(!x||x.byteLength<y.dataWidth*y.dataHeight)&&(x=new ArrayBuffer(y.dataWidth*y.dataHeight)),i.uploadFrame(z,e.i,e.r,e.userFacing);let _=i.readFrame(z,x),o={t:"imageBitmapS2C",dataWidth:_.dataWidth,dataHeight:_.dataHeight,frame:e.i,userFacing:_.userFacing,uvTransform:_.uvTransform||m(),tokenId:e.tokenId,p:e.p};a.postOutgoingMessage(o,[e.i]);let s=r._pipeline_by_instance.get(e.p);s&&(t.pipeline_camera_frame_submit(s,x,_.dataWidth,_.dataHeight,e.tokenId,e.cameraToDevice,e.cameraModel,_.userFacing),t.pipeline_frame_update(s),r.exploreState())}(i,e,r,C);break;case"sensorDataC2S":{const t=i,a=r._pipeline_by_instance.get(t.p);if(!a)break;switch(t.sensor){case"accel":e.pipeline_motion_accelerometer_submit(a,t.timestamp,t.x,t.y,t.z);break;case"accel_w_gravity_int":e.pipeline_motion_accelerometer_with_gravity_submit_int(a,t.timestamp,t.interval,t.x,t.y,t.z);break;case"accel_wo_gravity_int":e.pipeline_motion_accelerometer_without_gravity_submit_int(a,t.timestamp,t.interval,t.x,t.y,t.z);break;case"attitude_int":e.pipeline_motion_attitude_submit_int(a,t.timestamp,t.interval,t.x,t.y,t.z);break;case"attitude":e.pipeline_motion_attitude_submit(a,t.timestamp,t.x,t.y,t.z);break;case"rotation_rate_int":e.pipeline_motion_rotation_rate_submit_int(a,t.timestamp,t.interval,t.x,t.y,t.z);break;case"rotation_rate":e.pipeline_motion_rotation_rate_submit(a,t.timestamp,t.x,t.y,t.z)}break}case"attitudeMatrixC2S":{const t=i,a=r._pipeline_by_instance.get(t.p);if(!a)break;e.pipeline_motion_attitude_matrix_submit(a,t.m);break}}}))}})}))}let V=0,K=0,Z=1;function G(e){return new Promise(((t,r)=>{const a=setTimeout((()=>{r("Frame timeout")}),2e3);e.read().then((e=>{clearTimeout(a),t(e)}))}))}const W=m(),H=new Float32Array([300,300,160,120,0,0]);function Y(e,t,r,a,i,n,_,o){var s,c;return F(this,void 0,void 0,(function*(){for(;;){let f=yield G(r);if(f.done)return void(null===(s=f.value)||void 0===s||s.close());let u=f.value,d=u.allocationSize();d>K&&(V>0&&e._free(V),V=e._malloc(d),K=d),yield u.copyTo(e.HEAPU8.subarray(V,V+K));let p=Z;Z++;const m=u.visibleRect.width,w=u.visibleRect.height;let v,E=m,g=w;switch(B){case 270:v=new Float32Array([0,1,0,0,-1,0,0,0,0,0,1,0,1,0,0,1]),E=w,g=m;break;case 180:v=new Float32Array([-1,0,0,0,0,-1,0,0,0,0,1,0,1,1,0,1]);break;case 90:v=new Float32Array([0,-1,0,0,1,0,0,0,0,0,1,0,0,1,0,1]),E=w,g=m;break;default:v=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}let k=u.clone();i?(l=[-1,1,-1],(h=W)[0]=l[0],h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=l[1],h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=l[2],h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1):b(W);let A=300*y.dataWidth/320;H[0]=A,H[1]=A,H[2]=.5*y.dataWidth,H[3]=.5*y.dataHeight;const R={token:p,d:k,p:a,t:"videoFrameS2C",userFacing:i,uvTransform:v,w:y.dataWidth,h:y.dataHeight,cameraToDevice:W,cameraModel:H,source:_};C.postOutgoingMessage(R,[R.d,R.uvTransform.buffer]);const N=n._pipeline_by_instance.get(a);if(N){try{t.pipeline_camera_frame_submit_raw_pointer(N,V,d,X(u.format),m,w,p,W,B,H,i,null!==(c=u.timestamp)&&void 0!==c?c:-1),$(e,o)}catch(e){console.log("Exception during camera processing",e)}if(t.pipeline_frame_update(N),U){let r=j.get(a);if(r||(r={available:[],ready:[]},j.set(a,r)),r.ready.length>4){const e=r.ready.splice(0,1);for(const t of e)r.available.push(new Uint8Array(t.data.data))}const i=t.pipeline_camera_frame_data_raw_size(N);let n;for(;!n||n.byteLength<i;)r.available.length<1&&r.available.push(new Uint8Array(i)),n=r.available.pop();const _=t.pipeline_camera_frame_data_raw(N);n.set(e.HEAPU8.subarray(_,_+i)),r.ready.push({token:p,data:{data:n,width:t.pipeline_camera_frame_data_raw_width(a),height:t.pipeline_camera_frame_data_raw_height(a)}})}n.exploreState()}u.close()}var h,l}))}function q(e){return new Promise((t=>{setTimeout(t,e)}))}function X(e){switch(e){case"I420":return f.FRAME_PIXEL_FORMAT_I420;case"I420A":return f.FRAME_PIXEL_FORMAT_I420A;case"I422":return f.FRAME_PIXEL_FORMAT_I422;case"I444":return f.FRAME_PIXEL_FORMAT_I444;case"NV12":return f.FRAME_PIXEL_FORMAT_NV12;case"RGBA":case"RGBX":return f.FRAME_PIXEL_FORMAT_RGBA;case"BGRA":case"BGRX":return f.FRAME_PIXEL_FORMAT_BGRA}return f.FRAME_PIXEL_FORMAT_Y}function $(e,t){const r=t.worker_message_send_count();if(0!==r){O||(O=new MessageChannel,O.port1.start(),O.port1.addEventListener("message",(r=>{if("msgrec"!==r.data.t)return;const a=r.data.data,i=e._malloc(a.byteLength);e.HEAPU8.set(a,i),t.worker_message_receive(r.data.reference,a.byteLength,i),e._free(i)})),C.postOutgoingMessage({t:"setupCeresWorker",port:O.port2},[O.port2]));for(let a=0;a<r;a++){const r=t.worker_message_send_reference(a),i=t.worker_message_send_data_size(a),n=t.worker_message_send_data(a),_=e.HEAPU8.slice(n,n+i);O.port1.postMessage({t:"msgsend",data:_,reference:r},[_.buffer])}t.worker_message_send_clear()}}const J=self;C.onOutgoingMessage.bind((()=>{let e=C.getOutgoingMessages();for(let t of e)J.postMessage(t.msg,t.transferables)}));let Q=e=>{e&&e.data&&"wasm"===e.data.t&&(D(location.href.startsWith("blob")?e.data.url:new URL(r(751),r.b).toString(),e.data.module),J.removeEventListener("message",Q))};J.addEventListener("message",Q),J.addEventListener("message",(e=>{C.postIncomingMessage(e.data)}))})()})();