@zappar/zappar-cv 3.0.0-beta.7 → 3.0.1-alpha.2
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.
- package/README.md +2 -2
- package/lib/camera-source.js +8 -4
- package/lib/ceres-worker.d.ts +1 -0
- package/lib/ceres-worker.js +67 -0
- package/lib/direct.js +3 -1
- package/lib/gen/zappar-cwrap.js +4 -3
- package/lib/gen/zappar-native.d.ts +1 -1
- package/lib/mstp-camera-source.d.ts +9 -0
- package/lib/mstp-camera-source.js +79 -6
- package/lib/native.js +5 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/worker-client.d.ts +1 -0
- package/lib/worker-client.js +19 -1
- package/lib/worker-messages.d.ts +10 -0
- package/lib/worker-messages.js +10 -0
- package/lib/worker-server.d.ts +1 -1
- package/lib/worker-server.js +49 -8
- package/lib/worker.js +1 -1
- package/lib/zappar-cv.js +178 -134
- package/lib/zappar-cv.wasm +0 -0
- package/package.json +4 -3
- package/umd/169.zappar-cv.js +1 -1
- package/umd/25.zappar-cv.js +1 -0
- package/umd/36d6b6985808cbeca829.wasm +0 -0
- package/umd/429.zappar-cv.js +1 -0
- package/umd/867.zappar-cv.js +1 -0
- package/umd/zappar-cv.js +1 -1
- package/umd/zappar-cv.worker.js +1 -1
- package/umd/51b1854609f16d933fe2.wasm +0 -0
- package/umd/56.zappar-cv.js +0 -1
package/lib/zappar-cv.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zappar/zappar-cv",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1-alpha.2",
|
|
4
4
|
"description": "Zappar's core computer vision library, supporting image, face and world tracking.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@types/pngjs": "6.0.0",
|
|
38
38
|
"@types/puppeteer": "5.4.3",
|
|
39
39
|
"@types/ua-parser-js": "0.7.33",
|
|
40
|
-
"@zappar/zapworks-cli": "2.0.
|
|
40
|
+
"@zappar/zapworks-cli": "2.0.6",
|
|
41
41
|
"better-npm-audit": "^3.7.3",
|
|
42
42
|
"concurrently": "5.3.0",
|
|
43
43
|
"dat.gui": "0.7.7",
|
|
@@ -52,12 +52,13 @@
|
|
|
52
52
|
"ts-loader": "9.2.6",
|
|
53
53
|
"ts-node": "9.1.1",
|
|
54
54
|
"typescript": "4.0.5",
|
|
55
|
-
"webpack": "5.
|
|
55
|
+
"webpack": "5.89.0",
|
|
56
56
|
"webpack-cli": "4.9.2",
|
|
57
57
|
"webpack-dev-server": "^4.7.3",
|
|
58
58
|
"worker-loader": "^3.0.8"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
+
"@types/w3c-generic-sensor": "^1.0.9",
|
|
61
62
|
"gl-matrix": "3.4.3",
|
|
62
63
|
"ua-parser-js": "1.0.33"
|
|
63
64
|
}
|
package/umd/169.zappar-cv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkZCV=self.webpackChunkZCV||[]).push([[169],{685:(i,e,o)=>{"use strict";o.d(e,{WT:()=>a});var a="undefined"!=typeof Float32Array?Float32Array:Array;Math.random,Math.PI,Math.hypot||(Math.hypot=function(){for(var i=0,e=arguments.length;e--;)i+=arguments[e]*arguments[e];return Math.sqrt(i)})},975:(i,e,o)=>{"use strict";o.d(e,{Ue:()=>r,yR:()=>t,xJ:()=>n});var a=o(685);function r(){var i=new a.WT(16);return a.WT!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0),i[0]=1,i[5]=1,i[10]=1,i[15]=1,i}function t(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}function n(i,e){return i[0]=e[0],i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=e[1],i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=e[2],i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}},238:function(i,e,o){var a;!function(r,t){"use strict";var n="function",s="undefined",b="object",w="string",l="model",d="name",u="type",c="vendor",p="version",m="architecture",h="console",f="mobile",v="tablet",g="smarttv",x="wearable",k="embedded",y="Amazon",_="Apple",T="ASUS",q="BlackBerry",S="Browser",z="Chrome",A="Firefox",N="Google",C="Huawei",E="LG",M="Microsoft",O="Motorola",U="Opera",j="Samsung",R="Sharp",V="Sony",P="Xiaomi",B="Zebra",W="Facebook",F=function(i){for(var e={},o=0;o<i.length;o++)e[i[o].toUpperCase()]=i[o];return e},I=function(i,e){return typeof i===w&&-1!==D(e).indexOf(D(i))},D=function(i){return i.toLowerCase()},Z=function(i,e){if(typeof i===w)return i=i.replace(/^\s\s*/,""),typeof e===s?i:i.substring(0,350)},G=function(i,e){for(var o,a,r,s,w,l,d=0;d<e.length&&!w;){var u=e[d],c=e[d+1];for(o=a=0;o<u.length&&!w;)if(w=u[o++].exec(i))for(r=0;r<c.length;r++)l=w[++a],typeof(s=c[r])===b&&s.length>0?2===s.length?typeof s[1]==n?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==n||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):t:this[s[0]]=l?s[1].call(this,l,s[2]):t:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):t):this[s]=l||t;d+=2}},L=function(i,e){for(var o in e)if(typeof e[o]===b&&e[o].length>0){for(var a=0;a<e[o].length;a++)if(I(e[o][a],i))return"?"===o?t:o}else if(I(e[o],i))return"?"===o?t:o;return i},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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,U+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,U]],[/(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],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+S],p],[/\bfocus\/([\w\.]+)/i],[p,[d,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[p,[d,A]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+S],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,W],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,z+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,z+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,L,{"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],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,A+" 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],[d,p],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,D]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",D]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,D]]],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],[l,[c,j],[u,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[c,j],[u,f]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[c,_],[u,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[c,_],[u,v]],[/(macintosh);/i],[l,[c,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[c,C],[u,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[c,C],[u,f]],[/\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],[[l,/_/g," "],[c,P],[u,f]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[c,P],[u,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[c,"OPPO"],[u,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[c,"Vivo"],[u,f]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[c,"Realme"],[u,f]],[/\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],[l,[c,O],[u,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[c,O],[u,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[c,E],[u,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[c,E],[u,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[c,"Lenovo"],[u,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[c,"Nokia"],[u,f]],[/(pixel c)\b/i],[l,[c,N],[u,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[c,N],[u,f]],[/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],[l,[c,V],[u,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[c,V],[u,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[c,"OnePlus"],[u,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[c,y],[u,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[c,y],[u,f]],[/(playbook);[-\w\),; ]+(rim)/i],[l,c,[u,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[c,q],[u,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[c,T],[u,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[c,T],[u,f]],[/(nexus 9)/i],[l,[c,"HTC"],[u,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[l,/_/g," "],[u,f]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[c,"Acer"],[u,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[c,"Meizu"],[u,f]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[c,R],[u,f]],[/(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],[c,l,[u,f]],[/(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],[c,l,[u,v]],[/(surface duo)/i],[l,[c,M],[u,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[c,"Fairphone"],[u,f]],[/(u304aa)/i],[l,[c,"AT&T"],[u,f]],[/\bsie-(\w*)/i],[l,[c,"Siemens"],[u,f]],[/\b(rct\w+) b/i],[l,[c,"RCA"],[u,v]],[/\b(venue[\d ]{2,7}) b/i],[l,[c,"Dell"],[u,v]],[/\b(q(?:mv|ta)\w+) b/i],[l,[c,"Verizon"],[u,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[c,"Barnes & Noble"],[u,v]],[/\b(tm\d{3}\w+) b/i],[l,[c,"NuVision"],[u,v]],[/\b(k88) b/i],[l,[c,"ZTE"],[u,v]],[/\b(nx\d{3}j) b/i],[l,[c,"ZTE"],[u,f]],[/\b(gen\d{3}) b.+49h/i],[l,[c,"Swiss"],[u,f]],[/\b(zur\d{3}) b/i],[l,[c,"Swiss"],[u,v]],[/\b((zeki)?tb.*\b) b/i],[l,[c,"Zeki"],[u,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],l,[u,v]],[/\b(ns-?\w{0,9}) b/i],[l,[c,"Insignia"],[u,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[c,"NextBook"],[u,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],l,[u,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],l,[u,f]],[/\b(ph-1) /i],[l,[c,"Essential"],[u,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[c,"Envizen"],[u,v]],[/\b(trio[-\w\. ]+) b/i],[l,[c,"MachSpeed"],[u,v]],[/\btu_(1491) b/i],[l,[c,"Rotor"],[u,v]],[/(shield[\w ]+) b/i],[l,[c,"Nvidia"],[u,v]],[/(sprint) (\w+)/i],[c,l,[u,f]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[c,M],[u,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[c,B],[u,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[c,B],[u,f]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,l,[u,h]],[/droid.+; (shield) bui/i],[l,[c,"Nvidia"],[u,h]],[/(playstation [345portablevi]+)/i],[l,[c,V],[u,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[c,M],[u,h]],[/smart-tv.+(samsung)/i],[c,[u,g]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[c,j],[u,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,E],[u,g]],[/(apple) ?tv/i],[c,[l,_+" TV"],[u,g]],[/crkey/i],[[l,z+"cast"],[c,N],[u,g]],[/droid.+aft(\w)( bui|\))/i],[l,[c,y],[u,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[c,R],[u,g]],[/(bravia[\w ]+)( bui|\))/i],[l,[c,V],[u,g]],[/(mitv-\w{5}) bui/i],[l,[c,P],[u,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[c,Z],[l,Z],[u,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,g]],[/((pebble))app/i],[c,l,[u,x]],[/droid.+; (glass) \d/i],[l,[c,N],[u,x]],[/droid.+; (wt63?0{2,3})\)/i],[l,[c,B],[u,x]],[/(quest( 2)?)/i],[l,[c,W],[u,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[u,k]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[u,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[u,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,f]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"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],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,L,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,L,H]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,q]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,z+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(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],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},X=function(i,e){if(typeof i===b&&(e=i,i=t),!(this instanceof X))return new X(i,e).getResult();var o=i||(typeof r!==s&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),a=e?function(i,e){var o={};for(var a in i)e[a]&&e[a].length%2==0?o[a]=e[a].concat(i[a]):o[a]=i[a];return o}($,e):$;return this.getBrowser=function(){var i,e={};return e[d]=t,e[p]=t,G.call(e,o,a.browser),e.major=typeof(i=e.version)===w?i.replace(/[^\d\.]/g,"").split(".")[0]:t,e},this.getCPU=function(){var i={};return i[m]=t,G.call(i,o,a.cpu),i},this.getDevice=function(){var i={};return i[c]=t,i[l]=t,i[u]=t,G.call(i,o,a.device),i},this.getEngine=function(){var i={};return i[d]=t,i[p]=t,G.call(i,o,a.engine),i},this.getOS=function(){var i={};return i[d]=t,i[p]=t,G.call(i,o,a.os),i},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 o},this.setUA=function(i){return o=typeof i===w&&i.length>350?Z(i,350):i,this},this.setUA(o),this};X.VERSION="1.0.33",X.BROWSER=F([d,p,"major"]),X.CPU=F([m]),X.DEVICE=F([l,c,u,h,f,g,v,x,k]),X.ENGINE=X.OS=F([d,p]),typeof e!==s?(i.exports&&(e=i.exports=X),e.UAParser=X):o.amdO?(a=function(){return X}.call(e,o,e,i))===t||(i.exports=a):typeof r!==s&&(r.UAParser=X);var J=typeof r!==s&&(r.jQuery||r.Zepto);if(J&&!J.ua){var K=new X;J.ua=K.getResult(),J.ua.get=function(){return K.getUA()},J.ua.set=function(i){K.setUA(i);var e=K.getResult();for(var o in e)J.ua[o]=e[o]}}}("object"==typeof window?window:this)}}]);
|
|
1
|
+
(self.webpackChunkZCV=self.webpackChunkZCV||[]).push([[169],{685:(i,e,o)=>{"use strict";o.d(e,{WT:()=>a});var a="undefined"!=typeof Float32Array?Float32Array:Array;Math.random,Math.PI,Math.hypot||(Math.hypot=function(){for(var i=0,e=arguments.length;e--;)i+=arguments[e]*arguments[e];return Math.sqrt(i)})},975:(i,e,o)=>{"use strict";o.d(e,{Ue:()=>r,xJ:()=>n,yR:()=>t});var a=o(685);function r(){var i=new a.WT(16);return a.WT!=Float32Array&&(i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[11]=0,i[12]=0,i[13]=0,i[14]=0),i[0]=1,i[5]=1,i[10]=1,i[15]=1,i}function t(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}function n(i,e){return i[0]=e[0],i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=e[1],i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=e[2],i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,i}},238:function(i,e,o){var a;!function(r,t){"use strict";var n="function",s="undefined",b="object",w="string",l="model",d="name",u="type",c="vendor",p="version",m="architecture",h="console",f="mobile",v="tablet",g="smarttv",x="wearable",k="embedded",y="Amazon",_="Apple",T="ASUS",q="BlackBerry",S="Browser",z="Chrome",A="Firefox",N="Google",C="Huawei",E="LG",M="Microsoft",O="Motorola",U="Opera",j="Samsung",R="Sharp",V="Sony",P="Xiaomi",B="Zebra",W="Facebook",F=function(i){for(var e={},o=0;o<i.length;o++)e[i[o].toUpperCase()]=i[o];return e},I=function(i,e){return typeof i===w&&-1!==D(e).indexOf(D(i))},D=function(i){return i.toLowerCase()},Z=function(i,e){if(typeof i===w)return i=i.replace(/^\s\s*/,""),typeof e===s?i:i.substring(0,350)},G=function(i,e){for(var o,a,r,s,w,l,d=0;d<e.length&&!w;){var u=e[d],c=e[d+1];for(o=a=0;o<u.length&&!w;)if(w=u[o++].exec(i))for(r=0;r<c.length;r++)l=w[++a],typeof(s=c[r])===b&&s.length>0?2===s.length?typeof s[1]==n?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==n||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):t:this[s[0]]=l?s[1].call(this,l,s[2]):t:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):t):this[s]=l||t;d+=2}},L=function(i,e){for(var o in e)if(typeof e[o]===b&&e[o].length>0){for(var a=0;a<e[o].length;a++)if(I(e[o][a],i))return"?"===o?t:o}else if(I(e[o],i))return"?"===o?t:o;return i},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"},$={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,U+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[d,U]],[/(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],[d,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+S],p],[/\bfocus\/([\w\.]+)/i],[p,[d,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[p,[d,A]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+S],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,W],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,z+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,z+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,L,{"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],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,A+" 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],[d,p],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,D]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",D]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,D]]],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],[l,[c,j],[u,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[c,j],[u,f]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[c,_],[u,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[c,_],[u,v]],[/(macintosh);/i],[l,[c,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[c,C],[u,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[c,C],[u,f]],[/\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],[[l,/_/g," "],[c,P],[u,f]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[c,P],[u,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[c,"OPPO"],[u,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[c,"Vivo"],[u,f]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[c,"Realme"],[u,f]],[/\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],[l,[c,O],[u,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[c,O],[u,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[c,E],[u,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[c,E],[u,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[c,"Lenovo"],[u,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[c,"Nokia"],[u,f]],[/(pixel c)\b/i],[l,[c,N],[u,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[c,N],[u,f]],[/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],[l,[c,V],[u,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[c,V],[u,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[c,"OnePlus"],[u,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[c,y],[u,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[c,y],[u,f]],[/(playbook);[-\w\),; ]+(rim)/i],[l,c,[u,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[c,q],[u,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[c,T],[u,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[c,T],[u,f]],[/(nexus 9)/i],[l,[c,"HTC"],[u,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[l,/_/g," "],[u,f]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[c,"Acer"],[u,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[c,"Meizu"],[u,f]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[c,R],[u,f]],[/(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],[c,l,[u,f]],[/(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],[c,l,[u,v]],[/(surface duo)/i],[l,[c,M],[u,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[c,"Fairphone"],[u,f]],[/(u304aa)/i],[l,[c,"AT&T"],[u,f]],[/\bsie-(\w*)/i],[l,[c,"Siemens"],[u,f]],[/\b(rct\w+) b/i],[l,[c,"RCA"],[u,v]],[/\b(venue[\d ]{2,7}) b/i],[l,[c,"Dell"],[u,v]],[/\b(q(?:mv|ta)\w+) b/i],[l,[c,"Verizon"],[u,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[c,"Barnes & Noble"],[u,v]],[/\b(tm\d{3}\w+) b/i],[l,[c,"NuVision"],[u,v]],[/\b(k88) b/i],[l,[c,"ZTE"],[u,v]],[/\b(nx\d{3}j) b/i],[l,[c,"ZTE"],[u,f]],[/\b(gen\d{3}) b.+49h/i],[l,[c,"Swiss"],[u,f]],[/\b(zur\d{3}) b/i],[l,[c,"Swiss"],[u,v]],[/\b((zeki)?tb.*\b) b/i],[l,[c,"Zeki"],[u,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],l,[u,v]],[/\b(ns-?\w{0,9}) b/i],[l,[c,"Insignia"],[u,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[c,"NextBook"],[u,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],l,[u,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],l,[u,f]],[/\b(ph-1) /i],[l,[c,"Essential"],[u,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[c,"Envizen"],[u,v]],[/\b(trio[-\w\. ]+) b/i],[l,[c,"MachSpeed"],[u,v]],[/\btu_(1491) b/i],[l,[c,"Rotor"],[u,v]],[/(shield[\w ]+) b/i],[l,[c,"Nvidia"],[u,v]],[/(sprint) (\w+)/i],[c,l,[u,f]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[c,M],[u,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[c,B],[u,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[c,B],[u,f]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,l,[u,h]],[/droid.+; (shield) bui/i],[l,[c,"Nvidia"],[u,h]],[/(playstation [345portablevi]+)/i],[l,[c,V],[u,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[c,M],[u,h]],[/smart-tv.+(samsung)/i],[c,[u,g]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[c,j],[u,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,E],[u,g]],[/(apple) ?tv/i],[c,[l,_+" TV"],[u,g]],[/crkey/i],[[l,z+"cast"],[c,N],[u,g]],[/droid.+aft(\w)( bui|\))/i],[l,[c,y],[u,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[c,R],[u,g]],[/(bravia[\w ]+)( bui|\))/i],[l,[c,V],[u,g]],[/(mitv-\w{5}) bui/i],[l,[c,P],[u,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[c,Z],[l,Z],[u,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,g]],[/((pebble))app/i],[c,l,[u,x]],[/droid.+; (glass) \d/i],[l,[c,N],[u,x]],[/droid.+; (wt63?0{2,3})\)/i],[l,[c,B],[u,x]],[/(quest( 2)?)/i],[l,[c,W],[u,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[u,k]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[u,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[u,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,f]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"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],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[p,L,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[p,L,H]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,q]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,z+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(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],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,p]]},X=function(i,e){if(typeof i===b&&(e=i,i=t),!(this instanceof X))return new X(i,e).getResult();var o=i||(typeof r!==s&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),a=e?function(i,e){var o={};for(var a in i)e[a]&&e[a].length%2==0?o[a]=e[a].concat(i[a]):o[a]=i[a];return o}($,e):$;return this.getBrowser=function(){var i,e={};return e[d]=t,e[p]=t,G.call(e,o,a.browser),e.major=typeof(i=e.version)===w?i.replace(/[^\d\.]/g,"").split(".")[0]:t,e},this.getCPU=function(){var i={};return i[m]=t,G.call(i,o,a.cpu),i},this.getDevice=function(){var i={};return i[c]=t,i[l]=t,i[u]=t,G.call(i,o,a.device),i},this.getEngine=function(){var i={};return i[d]=t,i[p]=t,G.call(i,o,a.engine),i},this.getOS=function(){var i={};return i[d]=t,i[p]=t,G.call(i,o,a.os),i},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 o},this.setUA=function(i){return o=typeof i===w&&i.length>350?Z(i,350):i,this},this.setUA(o),this};X.VERSION="1.0.33",X.BROWSER=F([d,p,"major"]),X.CPU=F([m]),X.DEVICE=F([l,c,u,h,f,g,v,x,k]),X.ENGINE=X.OS=F([d,p]),typeof e!==s?(i.exports&&(e=i.exports=X),e.UAParser=X):o.amdO?(a=function(){return X}.call(e,o,e,i))===t||(i.exports=a):typeof r!==s&&(r.UAParser=X);var J=typeof r!==s&&(r.jQuery||r.Zepto);if(J&&!J.ua){var K=new X;J.ua=K.getResult(),J.ua.get=function(){return K.getUA()},J.ua.set=function(i){K.setUA(i);var e=K.getResult();for(var o in e)J.ua[o]=e[o]}}}("object"==typeof window?window:this)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ZCV=t():e.ZCV=t()}(self,(()=>(()=>{"use strict";var e,t,r={25:(e,t,r)=>{var n=r(604),o=r(581);const a=self;let s=e=>{e&&e.data&&"wasm"===e.data.t&&(!function(e,t,r){var a,s,i,c;a=this,s=void 0,c=function*(){let a=o.Z({locateFile:(t,r)=>t.endsWith("zappar-cv.wasm")?e:r+t,instantiateWasm:(e,r)=>{const n=new WebAssembly.Instance(t,e);return r(n),n.exports},onRuntimeInitialized:()=>{const e=a.cwrap("ceres_worker",null,[]),t=(0,n.g)(a);r.addEventListener("message",(n=>{if("msgsend"!==n.data.t)return;const o=n.data.data,s=n.data.reference,i=a._malloc(o.byteLength);a.HEAPU8.set(o,i),t.worker_message_receive(s,o.byteLength,i),a._free(i),e();const c=t.worker_message_send_count();for(let e=0;e<c;e++){const n=t.worker_message_send_reference(e),o=t.worker_message_send_data_size(e),s=t.worker_message_send_data(e),i=a.HEAPU8.slice(s,s+o);r.postMessage({t:"msgrec",data:i,reference:n},[i.buffer])}t.worker_message_send_clear()})),r.start()}})},new((i=void 0)||(i=Promise))((function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i((function(e){e(o)}))).then(r,n)}o((c=c.apply(a,s||[])).next())}))}(location.href.startsWith("blob")?e.data.url:new URL(r(751),r.b).toString(),e.data.module,e.data.port),a.removeEventListener("message",s))};a.addEventListener("message",s)}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,o),a.exports}return o.m=r,o.x=()=>{var e=o.O(void 0,[867],(()=>o(25)));return o.O(e)},e=[],o.O=(t,r,n,a)=>{if(!r){var s=1/0;for(l=0;l<e.length;l++){for(var[r,n,a]=e[l],i=!0,c=0;c<r.length;c++)(!1&a||s>=a)&&Object.keys(o.O).every((e=>o.O[e](r[c])))?r.splice(c--,1):(i=!1,a<s&&(s=a));if(i){e.splice(l--,1);var f=n();void 0!==f&&(t=f)}}return t}a=a||0;for(var l=e.length;l>0&&e[l-1][2]>a;l--)e[l]=e[l-1];e[l]=[r,n,a]},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>e+".zappar-cv.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&!e;)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{o.b=self.location+"";var e={25:1};o.f.i=(t,r)=>{e[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunkZCV=self.webpackChunkZCV||[],r=t.push.bind(t);t.push=t=>{var[n,a,s]=t;for(var i in a)o.o(a,i)&&(o.m[i]=a[i]);for(s&&s(o);n.length;)e[n.pop()]=1;r(t)}})(),t=o.x,o.x=()=>o.e(867).then(t),o.x()})()));
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ZCV=t():e.ZCV=t()}(self,(()=>(()=>{"use strict";var e,t,r={429:(e,t,r)=>{var i=r(581);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 i=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),i&&this._i32View.set(i.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 _{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 _,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(),i=this._pipeline_by_instance.get(r),a=t.string(),_=this._impl.camera_source_create(i,a);this._camera_source_by_instance.set(e,_),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(),i=this._pipeline_by_instance.get(r),a=this._impl.sequence_source_create(i);this._sequence_source_by_instance.set(e,a),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(),i=this._pipeline_by_instance.get(r),a=this._impl.image_tracker_create(i);this._image_tracker_by_instance.set(e,a),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(),i=this._pipeline_by_instance.get(r),a=this._impl.face_tracker_create(i);this._face_tracker_by_instance.set(e,a),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(),i=this._impl.face_landmark_create(r);this._face_landmark_by_instance.set(e,i);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(),i=this._pipeline_by_instance.get(r),a=this._impl.barcode_finder_create(i);this._barcode_finder_by_instance.set(e,a),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(),i=this._pipeline_by_instance.get(r),a=this._impl.instant_world_tracker_create(i);this._instant_world_tracker_by_instance.set(e,a),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(),i=this._pipeline_by_instance.get(r),a=this._impl.world_tracker_create(i);this._world_tracker_by_instance.set(e,a),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 i=this.serializersByPipelineId.get(r);i&&(i.sendMessage(7,(r=>{r.type(e),r.int(this._impl.pipeline_frame_number(t))})),i.sendMessage(6,(r=>{r.type(e),r.cameraModel(this._impl.pipeline_camera_model(t))})),i.sendMessage(5,(r=>{r.type(e),r.int(this._impl.pipeline_camera_frame_user_data(t))})),i.sendMessage(11,(r=>{r.type(e),r.matrix4x4(this._impl.pipeline_camera_frame_camera_attitude(t))})),i.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 i=this.serializersByPipelineId.get(r);if(i){i.sendMessage(19,(r=>{r.type(e),r.int(this._impl.image_tracker_target_loaded_version(t))})),i.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++)i.sendMessage(2,(i=>{i.type(e),i.int(r),i.string(this._impl.image_tracker_anchor_id(t,r))}));for(let r=0;r<this._impl.image_tracker_anchor_count(t);r++)i.sendMessage(3,(i=>{i.type(e),i.int(r),i.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 i=this.serializersByPipelineId.get(r);if(i){i.sendMessage(18,(r=>{r.type(e),r.int(this._impl.face_tracker_model_loaded_version(t))})),i.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++)i.sendMessage(14,(i=>{i.type(e),i.int(r),i.string(this._impl.face_tracker_anchor_id(t,r))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)i.sendMessage(15,(i=>{i.type(e),i.int(r),i.matrix4x4(this._impl.face_tracker_anchor_pose_raw(t,r))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)i.sendMessage(16,(i=>{i.type(e),i.int(r),i.identityCoefficients(this._impl.face_tracker_anchor_identity_coefficients(t,r))}));for(let r=0;r<this._impl.face_tracker_anchor_count(t);r++)i.sendMessage(17,(i=>{i.type(e),i.int(r),i.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 i=this.serializersByPipelineId.get(r);if(i){i.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++)i.sendMessage(9,(i=>{i.type(e),i.int(r),i.string(this._impl.barcode_finder_found_text(t,r))}));for(let r=0;r<this._impl.barcode_finder_found_number(t);r++)i.sendMessage(10,(i=>{i.type(e),i.int(r),i.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 i=this.serializersByPipelineId.get(r);i&&i.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 i=this.serializersByPipelineId.get(r);if(i){i.sendMessage(27,(r=>{r.type(e),r.int(this._impl.world_tracker_quality(t))})),i.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++)i.sendMessage(22,(i=>{i.type(e),i.int(r),i.matrix4x4(this._impl.world_tracker_plane_pose_raw(t,r))}));i.sendMessage(23,(r=>{r.type(e),r.bool(this._impl.world_tracker_world_anchor_valid(t))})),i.sendMessage(24,(r=>{r.type(e),r.matrix4x4(this._impl.world_tracker_world_anchor_pose_raw(t))})),i.sendMessage(23,(r=>{r.type(e),r.bool(this._impl.world_tracker_ground_anchor_valid(t))})),i.sendMessage(26,(r=>{r.type(e),r.matrix4x4(this._impl.world_tracker_ground_anchor_pose_raw(t))}))}}}}class s{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 c,f,l,u,p,h,m,d=r(975);!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"}(c||(c={})),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"}(f||(f={})),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"}(l||(l={})),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"}(u||(u={})),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"}(p||(p={})),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"}(h||(h={})),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"}(m||(m={}));const b=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,i)=>{this._viewports[this._viewports.length-1]=[e,t,r,i],this._underlyingViewport.call(this._gl,e,t,r,i)}}static get(e){let t=b.get(e);return t||(t=new g(e),b.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 y,w=r(238);!function(e){e[e.OBJECT_URL=0]="OBJECT_URL",e[e.SRC_OBJECT=1]="SRC_OBJECT"}(y||(y={}));let E={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=E,window.location.href.indexOf("_mstppipeline")>=0&&(console.log("Configuring for MSTP camera pipeline (if supported)"),E.preferMediaStreamTrackProcessorCamera=!0),window.location.href.indexOf("_imagebitmappipeline")>=0&&(console.log("Configuring for ImageBitmap camera pipeline (if supported)"),E.preferImageBitmapCamera=!0));let A=new w.UAParser,T=(A.getOS().name||"unknown").toLowerCase(),R=(A.getEngine().name||"unknown").toLowerCase();function k(e){E.forceWindowOrientation=!0,E.preferMediaStreamTrackProcessorCamera=!1,E.intervalMultiplier=1e3,E.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)&&(E.blacklisted=!0),(e<12||12===e&&r<2)&&(E.videoElementInDOM=!0),(12===e&&r>=2||e>=13)&&(E.showGyroPermissionsWarningIfNecessary=!0),e>=13&&(E.showSafariPermissionsResetIfNecessary=!0),(e>=12&&r>1||e>=13)&&navigator.mediaDevices&&navigator.mediaDevices.getSupportedConstraints&&navigator.mediaDevices.getSupportedConstraints().frameRate&&(E.requestHighFrameRate=!0,e<14&&(E.videoHeight=360,E.dataHeight=180)),16===e&&r>=4&&(E.ios164CameraSelection=!0),e>=17&&(E.relyOnConstraintsForCameraSelection=!0)}}function v(e,t,r){let i=e.createShader(t);if(!i)throw new Error("Unable to create shader");e.shaderSource(i,r),e.compileShader(i);let a=e.getShaderInfoLog(i);if(a&&a.trim().length>0)throw new Error("Shader compile error: "+a);return i}"webkit"===R&&"ios"!==T&&(E.deviceMotionMutliplier=1,"undefined"!=typeof window&&void 0!==window.orientation&&k("15.0")),"webkit"===R&&"ios"===T&&(E.deviceMotionMutliplier=1,k(A.getOS().version||"15.0"));class x{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=d.Ue(),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,i){let a=this._gl;const _=g.get(a);_.push();const n=a.isEnabled(a.SCISSOR_TEST),s=a.isEnabled(a.DEPTH_TEST),o=a.isEnabled(a.BLEND),c=a.isEnabled(a.CULL_FACE),f=a.isEnabled(a.STENCIL_TEST),l=a.getParameter(a.ACTIVE_TEXTURE),u=a.getParameter(a.UNPACK_FLIP_Y_WEBGL),p=a.getParameter(a.CURRENT_PROGRAM);a.activeTexture(a.TEXTURE0);const h=a.getParameter(a.TEXTURE_BINDING_2D),m=a.getParameter(a.FRAMEBUFFER_BINDING),d=a.getParameter(a.ARRAY_BUFFER_BINDING),b=a.getParameter(a.ELEMENT_ARRAY_BUFFER_BINDING);a.disable(a.SCISSOR_TEST),a.disable(a.DEPTH_TEST),a.disable(a.BLEND),a.disable(a.CULL_FACE),a.disable(a.STENCIL_TEST),a.pixelStorei(a.UNPACK_FLIP_Y_WEBGL,!1),a.bindTexture(a.TEXTURE_2D,e);const y=a.RGBA,w=a.RGBA,A=a.UNSIGNED_BYTE;a.texImage2D(a.TEXTURE_2D,0,y,w,A,t);let T=0,R=0;"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement?(T=t.videoWidth,R=t.videoHeight):(T=t.width,R=t.height),R>T&&(R=[T,T=R][0]),this._updateTransforms(r,i);let k=this._getFramebuffer(a,E.dataWidth/4,E.dataHeight),v=this._getVertexBuffer(a),x=this._getIndexBuffer(a),L=this._getGreyscaleShader(a);const I=a.getVertexAttrib(L.aVertexPositionLoc,a.VERTEX_ATTRIB_ARRAY_SIZE),F=a.getVertexAttrib(L.aVertexPositionLoc,a.VERTEX_ATTRIB_ARRAY_TYPE),O=a.getVertexAttrib(L.aVertexPositionLoc,a.VERTEX_ATTRIB_ARRAY_NORMALIZED),M=a.getVertexAttrib(L.aVertexPositionLoc,a.VERTEX_ATTRIB_ARRAY_STRIDE),B=a.getVertexAttribOffset(L.aVertexPositionLoc,a.VERTEX_ATTRIB_ARRAY_POINTER),P=a.getVertexAttrib(L.aVertexPositionLoc,a.VERTEX_ATTRIB_ARRAY_ENABLED),V=a.getVertexAttrib(L.aVertexPositionLoc,a.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),C=a.getVertexAttrib(L.aTextureCoordLoc,a.VERTEX_ATTRIB_ARRAY_SIZE),U=a.getVertexAttrib(L.aTextureCoordLoc,a.VERTEX_ATTRIB_ARRAY_TYPE),S=a.getVertexAttrib(L.aTextureCoordLoc,a.VERTEX_ATTRIB_ARRAY_NORMALIZED),N=a.getVertexAttrib(L.aTextureCoordLoc,a.VERTEX_ATTRIB_ARRAY_STRIDE),z=a.getVertexAttribOffset(L.aTextureCoordLoc,a.VERTEX_ATTRIB_ARRAY_POINTER),D=a.getVertexAttrib(L.aTextureCoordLoc,a.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING),G=a.getVertexAttrib(L.aTextureCoordLoc,a.VERTEX_ATTRIB_ARRAY_ENABLED);let W=0,X=0;this._isWebGL2?(W=a.getVertexAttrib(L.aVertexPositionLoc,a.VERTEX_ATTRIB_ARRAY_DIVISOR),X=a.getVertexAttrib(L.aTextureCoordLoc,a.VERTEX_ATTRIB_ARRAY_DIVISOR),a.vertexAttribDivisor(L.aVertexPositionLoc,0),a.vertexAttribDivisor(L.aTextureCoordLoc,0)):this._instancedArraysExtension&&(W=a.getVertexAttrib(L.aVertexPositionLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),X=a.getVertexAttrib(L.aTextureCoordLoc,this._instancedArraysExtension.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE),this._instancedArraysExtension.vertexAttribDivisorANGLE(L.aVertexPositionLoc,0),this._instancedArraysExtension.vertexAttribDivisorANGLE(L.aTextureCoordLoc,0)),a.bindFramebuffer(a.FRAMEBUFFER,k),a.viewport(0,0,this._framebufferWidth,this._framebufferHeight),a.clear(a.COLOR_BUFFER_BIT),a.bindBuffer(a.ARRAY_BUFFER,v),a.vertexAttribPointer(L.aVertexPositionLoc,2,a.FLOAT,!1,16,0),a.enableVertexAttribArray(L.aVertexPositionLoc),a.vertexAttribPointer(L.aTextureCoordLoc,2,a.FLOAT,!1,16,8),a.enableVertexAttribArray(L.aTextureCoordLoc),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,x),a.useProgram(L.program),a.uniform1f(L.uTexWidthLoc,E.dataWidth),a.uniformMatrix4fv(L.uUvTransformLoc,!1,this._cameraUvTransform),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,e),a.uniform1i(L.uSamplerLoc,0),a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0),a.bindBuffer(a.ARRAY_BUFFER,V),a.vertexAttribPointer(L.aVertexPositionLoc,I,F,O,M,B),a.bindBuffer(a.ARRAY_BUFFER,D),a.vertexAttribPointer(L.aTextureCoordLoc,C,U,S,N,z),a.bindBuffer(a.ARRAY_BUFFER,d),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,b),P||a.disableVertexAttribArray(L.aVertexPositionLoc),G||a.disableVertexAttribArray(L.aTextureCoordLoc),this._isWebGL2?(a.vertexAttribDivisor(L.aVertexPositionLoc,W),a.vertexAttribDivisor(L.aTextureCoordLoc,X)):this._instancedArraysExtension&&(this._instancedArraysExtension.vertexAttribDivisorANGLE(L.aVertexPositionLoc,W),this._instancedArraysExtension.vertexAttribDivisorANGLE(L.aTextureCoordLoc,X)),a.bindFramebuffer(a.FRAMEBUFFER,m),a.useProgram(p),a.bindTexture(a.TEXTURE_2D,h),a.activeTexture(l),a.pixelStorei(a.UNPACK_FLIP_Y_WEBGL,u),_.pop(),o&&a.enable(a.BLEND),c&&a.enable(a.CULL_FACE),s&&a.enable(a.DEPTH_TEST),n&&a.enable(a.SCISSOR_TEST),f&&a.enable(a.STENCIL_TEST)}readFrame(e,t){let r=this._gl,i=new Uint8Array(t);const a=r.getParameter(r.FRAMEBUFFER_BINDING);let _=this._getFramebuffer(r,E.dataWidth/4,E.dataHeight);return r.bindFramebuffer(r.FRAMEBUFFER,_),r.readPixels(0,0,this._framebufferWidth,this._framebufferHeight,r.RGBA,r.UNSIGNED_BYTE,i),r.bindFramebuffer(r.FRAMEBUFFER,a),{uvTransform:this._cameraUvTransform,data:t,texture:e,dataWidth:E.dataWidth,dataHeight:E.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 i=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 a=e.checkFramebufferStatus(e.FRAMEBUFFER);if(a!==e.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer not complete: "+a.toString());return this._framebufferWidth=t,this._framebufferHeight=r,e.bindTexture(e.TEXTURE_2D,i),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=v(e,e.VERTEX_SHADER,M),i=v(e,e.FRAGMENT_SHADER,B);e.attachShader(t,r),e.attachShader(t,i),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 a=e.getUniformLocation(t,"uTexWidth");if(!a)throw new Error("Unable to get uniform location uTexWidth");let _=e.getUniformLocation(t,"uUvTransform");if(!_)throw new Error("Unable to get uniform location uUvTransform");let n=e.getUniformLocation(t,"uSampler");if(!n)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:a,uUvTransformLoc:_,uSamplerLoc:n},this._greyscaleShader}}let L,I,F,O,M="\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",B="\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 P=r(604),V=function(e,t,r,i){return new(r||(r=Promise))((function(a,_){function n(e){try{o(i.next(e))}catch(e){_(e)}}function s(e){try{o(i.throw(e))}catch(e){_(e)}}function o(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(n,s)}o((i=i.apply(e,t||[])).next())}))};let C,U=new class{constructor(){this.onOutgoingMessage=new s,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}},S=0,N=!1;const z=new Map;function D(e,t){return V(this,void 0,void 0,(function*(){let r=i.Z({locateFile:(t,r)=>t.endsWith("zappar-cv.wasm")?e:r+t,instantiateWasm:(e,r)=>{const i=new WebAssembly.Instance(t,e);return r(i),i.exports},onRuntimeInitialized:()=>{let e=function(e){let t=e.cwrap("zappar_log_level","number",[]),r=e.cwrap("zappar_log_level_set",null,["number"]),i=e.cwrap("zappar_analytics_project_id_set",null,["string","string"]),a=e.cwrap("zappar_pipeline_create","number",[]),_=e.cwrap("zappar_pipeline_destroy",null,["number"]),n=e.cwrap("zappar_pipeline_camera_frame_data_raw","number",["number"]),s=e.cwrap("zappar_pipeline_camera_frame_data_raw_size","number",["number"]),o=e.cwrap("zappar_pipeline_camera_frame_data_raw_width","number",["number"]),c=e.cwrap("zappar_pipeline_camera_frame_data_raw_height","number",["number"]),f=e.cwrap("zappar_pipeline_frame_update",null,["number"]),l=e.cwrap("zappar_pipeline_frame_number","number",["number"]),u=e.cwrap("zappar_pipeline_camera_model","number",["number"]),p=e.cwrap("zappar_pipeline_camera_frame_user_data","number",["number"]),h=e.cwrap("zappar_pipeline_camera_frame_submit",null,["number","number","number","number","number","number","number","number","number"]),m=e.cwrap("zappar_pipeline_camera_frame_submit_raw_pointer",null,["number","number","number","number","number","number","number","number","number","number","number","number"]),d=e.cwrap("zappar_pipeline_camera_frame_camera_attitude","number",["number"]),b=e.cwrap("zappar_pipeline_camera_frame_device_attitude","number",["number"]),g=e.cwrap("zappar_pipeline_motion_accelerometer_submit",null,["number","number","number","number","number"]),y=e.cwrap("zappar_pipeline_motion_accelerometer_with_gravity_submit_int",null,["number","number","number","number","number","number"]),w=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"]),A=e.cwrap("zappar_pipeline_motion_rotation_rate_submit_int",null,["number","number","number","number","number","number"]),T=e.cwrap("zappar_pipeline_motion_attitude_submit",null,["number","number","number","number","number"]),R=e.cwrap("zappar_pipeline_motion_attitude_submit_int",null,["number","number","number","number","number","number"]),k=e.cwrap("zappar_pipeline_motion_attitude_matrix_submit",null,["number","number"]),v=e.cwrap("zappar_camera_source_create","number",["number","string"]),x=e.cwrap("zappar_camera_source_destroy",null,["number"]),L=e.cwrap("zappar_sequence_source_create","number",["number"]),I=e.cwrap("zappar_sequence_source_destroy",null,["number"]),F=e.cwrap("zappar_image_tracker_create","number",["number"]),O=e.cwrap("zappar_image_tracker_destroy",null,["number"]),M=e.cwrap("zappar_image_tracker_target_load_from_memory",null,["number","number","number"]),B=e.cwrap("zappar_image_tracker_target_loaded_version","number",["number"]),P=e.cwrap("zappar_image_tracker_enabled","number",["number"]),V=e.cwrap("zappar_image_tracker_enabled_set",null,["number","number"]),C=e.cwrap("zappar_image_tracker_anchor_count","number",["number"]),U=e.cwrap("zappar_image_tracker_anchor_id","string",["number","number"]),S=e.cwrap("zappar_image_tracker_anchor_pose_raw","number",["number","number"]),N=e.cwrap("zappar_face_tracker_create","number",["number"]),z=e.cwrap("zappar_face_tracker_destroy",null,["number"]),D=e.cwrap("zappar_face_tracker_model_load_from_memory",null,["number","number","number"]),G=e.cwrap("zappar_face_tracker_model_loaded_version","number",["number"]),W=e.cwrap("zappar_face_tracker_enabled_set",null,["number","number"]),X=e.cwrap("zappar_face_tracker_enabled","number",["number"]),H=e.cwrap("zappar_face_tracker_max_faces_set",null,["number","number"]),Y=e.cwrap("zappar_face_tracker_max_faces","number",["number"]),q=e.cwrap("zappar_face_tracker_anchor_count","number",["number"]),K=e.cwrap("zappar_face_tracker_anchor_id","string",["number","number"]),Z=e.cwrap("zappar_face_tracker_anchor_pose_raw","number",["number","number"]),j=e.cwrap("zappar_face_tracker_anchor_identity_coefficients","number",["number","number"]),Q=e.cwrap("zappar_face_tracker_anchor_expression_coefficients","number",["number","number"]),J=e.cwrap("zappar_face_mesh_create","number",[]),$=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"]),ie=e.cwrap("zappar_barcode_finder_destroy",null,["number"]),ae=e.cwrap("zappar_barcode_finder_enabled_set",null,["number","number"]),_e=e.cwrap("zappar_barcode_finder_enabled","number",["number"]),ne=e.cwrap("zappar_barcode_finder_found_number","number",["number"]),se=e.cwrap("zappar_barcode_finder_found_text","string",["number","number"]),oe=e.cwrap("zappar_barcode_finder_found_format","number",["number","number"]),ce=e.cwrap("zappar_barcode_finder_formats","number",["number"]),fe=e.cwrap("zappar_barcode_finder_formats_set",null,["number","number"]),le=e.cwrap("zappar_instant_world_tracker_create","number",["number"]),ue=e.cwrap("zappar_instant_world_tracker_destroy",null,["number"]),pe=e.cwrap("zappar_instant_world_tracker_enabled_set",null,["number","number"]),he=e.cwrap("zappar_instant_world_tracker_enabled","number",["number"]),me=e.cwrap("zappar_instant_world_tracker_anchor_pose_raw","number",["number"]),de=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"]),ge=e.cwrap("zappar_world_tracker_destroy",null,["number"]),ye=e.cwrap("zappar_world_tracker_enabled","number",["number"]),we=e.cwrap("zappar_world_tracker_enabled_set",null,["number","number"]),Ee=e.cwrap("zappar_world_tracker_quality","number",["number"]),Ae=e.cwrap("zappar_world_tracker_plane_count","number",["number"]),Te=e.cwrap("zappar_world_tracker_plane_pose_raw","number",["number","number"]),Re=e.cwrap("zappar_world_tracker_world_anchor_valid","number",["number"]),ke=e.cwrap("zappar_world_tracker_world_anchor_pose_raw","number",["number"]),ve=e.cwrap("zappar_world_tracker_ground_anchor_valid","number",["number"]),xe=e.cwrap("zappar_world_tracker_ground_anchor_pose_raw","number",["number"]),Le=e.cwrap("zappar_world_tracker_reset",null,["number"]),Ie=32,Fe=e._malloc(Ie),Oe=(e._malloc(64),new Map),Me=(t,r)=>{let i=Oe.get(t);return(!i||i[0]<r)&&(i&&e._free(i[1]),i=[r,e._malloc(r)],Oe.set(t,i)),i[1]};return{log_level:()=>t(),log_level_set:e=>r(e),analytics_project_id_set:(e,t)=>i(e,t),pipeline_create:()=>a(),pipeline_destroy:()=>{_()},pipeline_camera_frame_data_raw:e=>n(e),pipeline_camera_frame_data_raw_size:e=>s(e),pipeline_camera_frame_data_raw_width:e=>o(e),pipeline_camera_frame_data_raw_height:e=>c(e),pipeline_frame_update:e=>f(e),pipeline_frame_number:e=>l(e),pipeline_camera_model:t=>{let r=u(t),i=new Float32Array(6);return i.set(e.HEAPF32.subarray(r/4,6+r/4)),r=i,r},pipeline_camera_frame_user_data:e=>p(e),pipeline_camera_frame_submit:(t,r,i,a,_,n,s,o)=>{Ie<r.byteLength&&(e._free(Fe),Ie=r.byteLength,Fe=e._malloc(Ie));let c=Fe,f=r.byteLength;e.HEAPU8.set(new Uint8Array(r),Fe);let l=i,u=a,p=_,m=Me(4,n.byteLength);e.HEAPF32.set(n,m/4);let d=Me(5,s.byteLength);return e.HEAPF32.set(s,d/4),h(t,c,f,l,u,p,m,d,o?1:0)},pipeline_camera_frame_submit_raw_pointer:(t,r,i,a,_,n,s,o,c,f,l,u)=>{let p=r,h=i,d=a,b=_,g=n,y=s,w=Me(6,o.byteLength);e.HEAPF32.set(o,w/4);let E=c,A=Me(8,f.byteLength);return e.HEAPF32.set(f,A/4),m(t,p,h,d,b,g,y,w,E,A,l?1:0,u)},pipeline_camera_frame_camera_attitude:t=>{let r=d(t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(r/4,16+r/4)),r=i,r},pipeline_camera_frame_device_attitude:t=>{let r=b(t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(r/4,16+r/4)),r=i,r},pipeline_motion_accelerometer_submit:(e,t,r,i,a)=>g(e,t,r,i,a),pipeline_motion_accelerometer_with_gravity_submit_int:(e,t,r,i,a,_)=>y(e,t,r,i,a,_),pipeline_motion_accelerometer_without_gravity_submit_int:(e,t,r,i,a,_)=>w(e,t,r,i,a,_),pipeline_motion_rotation_rate_submit:(e,t,r,i,a)=>E(e,t,r,i,a),pipeline_motion_rotation_rate_submit_int:(e,t,r,i,a,_)=>A(e,t,r,i,a,_),pipeline_motion_attitude_submit:(e,t,r,i,a)=>T(e,t,r,i,a),pipeline_motion_attitude_submit_int:(e,t,r,i,a,_)=>R(e,t,r,i,a,_),pipeline_motion_attitude_matrix_submit:(t,r)=>{let i=Me(0,r.byteLength);return e.HEAPF32.set(r,i/4),k(t,i)},camera_source_create:(e,t)=>v(e,t),camera_source_destroy:()=>{x()},sequence_source_create:e=>L(e),sequence_source_destroy:()=>{I()},image_tracker_create:e=>F(e),image_tracker_destroy:()=>{O()},image_tracker_target_load_from_memory:(t,r)=>{Ie<r.byteLength&&(e._free(Fe),Ie=r.byteLength,Fe=e._malloc(Ie));let i=Fe,a=r.byteLength;return e.HEAPU8.set(new Uint8Array(r),Fe),M(t,i,a)},image_tracker_target_loaded_version:e=>B(e),image_tracker_enabled:e=>{let t=P(e);return t=1===t,t},image_tracker_enabled_set:(e,t)=>V(e,t?1:0),image_tracker_anchor_count:e=>C(e),image_tracker_anchor_id:(e,t)=>U(e,t),image_tracker_anchor_pose_raw:(t,r)=>{let i=S(t,r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(i/4,16+i/4)),i=a,i},face_tracker_create:e=>N(e),face_tracker_destroy:()=>{z()},face_tracker_model_load_from_memory:(t,r)=>{Ie<r.byteLength&&(e._free(Fe),Ie=r.byteLength,Fe=e._malloc(Ie));let i=Fe,a=r.byteLength;return e.HEAPU8.set(new Uint8Array(r),Fe),D(t,i,a)},face_tracker_model_loaded_version:e=>G(e),face_tracker_enabled_set:(e,t)=>W(e,t?1:0),face_tracker_enabled:e=>{let t=X(e);return t=1===t,t},face_tracker_max_faces_set:(e,t)=>H(e,t),face_tracker_max_faces:e=>Y(e),face_tracker_anchor_count:e=>q(e),face_tracker_anchor_id:(e,t)=>K(e,t),face_tracker_anchor_pose_raw:(t,r)=>{let i=Z(t,r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(i/4,16+i/4)),i=a,i},face_tracker_anchor_identity_coefficients:(t,r)=>{let i=j(t,r),a=new Float32Array(50);return a.set(e.HEAPF32.subarray(i/4,50+i/4)),i=a,i},face_tracker_anchor_expression_coefficients:(t,r)=>{let i=Q(t,r),a=new Float32Array(29);return a.set(e.HEAPF32.subarray(i/4,29+i/4)),i=a,i},face_mesh_create:()=>J(),face_mesh_destroy:()=>{$()},face_landmark_create:e=>ee(e),face_landmark_destroy:()=>{te()},barcode_finder_create:e=>re(e),barcode_finder_destroy:()=>{ie()},barcode_finder_enabled_set:(e,t)=>ae(e,t?1:0),barcode_finder_enabled:e=>{let t=_e(e);return t=1===t,t},barcode_finder_found_number:e=>ne(e),barcode_finder_found_text:(e,t)=>se(e,t),barcode_finder_found_format:(e,t)=>oe(e,t),barcode_finder_formats:e=>ce(e),barcode_finder_formats_set:(e,t)=>fe(e,t),instant_world_tracker_create:e=>le(e),instant_world_tracker_destroy:()=>{ue()},instant_world_tracker_enabled_set:(e,t)=>pe(e,t?1:0),instant_world_tracker_enabled:e=>{let t=he(e);return t=1===t,t},instant_world_tracker_anchor_pose_raw:t=>{let r=me(t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(r/4,16+r/4)),r=i,r},instant_world_tracker_anchor_pose_set_from_camera_offset_raw:(e,t,r,i,a)=>de(e,t,r,i,a),world_tracker_create:e=>be(e),world_tracker_destroy:()=>{ge()},world_tracker_enabled:e=>{let t=ye(e);return t=1===t,t},world_tracker_enabled_set:(e,t)=>we(e,t?1:0),world_tracker_quality:e=>Ee(e),world_tracker_plane_count:e=>Ae(e),world_tracker_plane_pose_raw:(t,r)=>{let i=Te(t,r),a=new Float32Array(16);return a.set(e.HEAPF32.subarray(i/4,16+i/4)),i=a,i},world_tracker_world_anchor_valid:e=>{let t=Re(e);return t=1===t,t},world_tracker_world_anchor_pose_raw:t=>{let r=ke(t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(r/4,16+r/4)),r=i,r},world_tracker_ground_anchor_valid:e=>{let t=ve(e);return t=1===t,t},world_tracker_ground_anchor_pose_raw:t=>{let r=xe(t),i=new Float32Array(16);return i.set(e.HEAPF32.subarray(r/4,16+r/4)),r=i,r},world_tracker_reset:e=>Le(e)}}(r);const t=(0,P.g)(r);let i=new n(e,((e,t)=>{U.postOutgoingMessage({p:e,t:"zappar",d:t},[t])}));U.postOutgoingMessage("loaded",[]),U.onIncomingMessage.bind((a=>{var _,n,s;switch(a.t){case"zappar":i.processBuffer(a.d),U.postOutgoingMessage({t:"buf",d:a.d},[a.d]);break;case"buf":null===(_=i.serializersByPipelineId.get(a.p))||void 0===_||_.bufferReturn(a.d);break;case"cameraFrameC2S":{let _,n=a,s=i._pipeline_by_instance.get(n.p);s&&(e.pipeline_camera_frame_submit(s,n.d,n.width,n.height,n.token,n.c2d,n.cm,n.userFacing),e.pipeline_frame_update(s),_=e.pipeline_camera_frame_device_attitude(s),i.exploreState(),Q(r,t));let o={token:n.token,d:n.d,p:n.p,t:"cameraFrameRecycleS2C",att:_};U.postOutgoingMessage(o,[n.d]);break}case"rawenabled":N=a.v;break;case"rawrequest":{const e=a,t=z.get(e.p),r={t:"raw",token:e.token,p:e.p,data:t&&null!==(s=null===(n=t.ready.find((t=>t.token===e.token)))||void 0===n?void 0:n.data)&&void 0!==s?s:null};U.postOutgoingMessage(r,[]);break}case"streamC2S":{let _=a;(function(e,t,r,i,a,_,n,s){return V(this,void 0,void 0,(function*(){for(;;){let o;try{o=yield r.getReader()}catch(e){yield Z(1e3);continue}try{return void(yield K(e,t,o,i,a,_,n,s))}catch(e){}return void(yield Z(1e3))}}))})(r,e,_.s,_.p,_.userFacing,i,_.source,t).then((()=>{let e={t:"streamEndedS2C",p:_.p,source:_.source};U.postOutgoingMessage(e,[])})).catch((e=>{}));break}case"cameraToScreenC2S":S=a.r;break;case"imageBitmapC2S":!function(e,t,r,i){const[a,_]=function(){if(!F||!O){const e=new OffscreenCanvas(1,1);if(O=e.getContext("webgl"),!O)throw new Error("Unable to get offscreen GL context");F=new x(O)}return[F,O]}();if(I||(I=_.createTexture(),_.bindTexture(_.TEXTURE_2D,I),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_S,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_WRAP_T,_.CLAMP_TO_EDGE),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,_.LINEAR)),!I)return;(!L||L.byteLength<E.dataWidth*E.dataHeight)&&(L=new ArrayBuffer(E.dataWidth*E.dataHeight)),a.uploadFrame(I,e.i,e.r,e.userFacing);let n=a.readFrame(I,L),s={t:"imageBitmapS2C",dataWidth:n.dataWidth,dataHeight:n.dataHeight,frame:e.i,userFacing:n.userFacing,uvTransform:n.uvTransform||d.Ue(),tokenId:e.tokenId,p:e.p};i.postOutgoingMessage(s,[e.i]);let o=r._pipeline_by_instance.get(e.p);o&&(t.pipeline_camera_frame_submit(o,L,n.dataWidth,n.dataHeight,e.tokenId,e.cameraToDevice,e.cameraModel,n.userFacing),t.pipeline_frame_update(o),r.exploreState())}(a,e,i,U);break;case"sensorDataC2S":{const t=a,r=i._pipeline_by_instance.get(t.p);if(!r)break;switch(t.sensor){case"accel":e.pipeline_motion_accelerometer_submit(r,t.timestamp,t.x,t.y,t.z);break;case"accel_w_gravity_int":e.pipeline_motion_accelerometer_with_gravity_submit_int(r,t.timestamp,t.interval,t.x,t.y,t.z);break;case"accel_wo_gravity_int":e.pipeline_motion_accelerometer_without_gravity_submit_int(r,t.timestamp,t.interval,t.x,t.y,t.z);break;case"attitude_int":e.pipeline_motion_attitude_submit_int(r,t.timestamp,t.interval,t.x,t.y,t.z);break;case"attitude":e.pipeline_motion_attitude_submit(r,t.timestamp,t.x,t.y,t.z);break;case"rotation_rate_int":e.pipeline_motion_rotation_rate_submit_int(r,t.timestamp,t.interval,t.x,t.y,t.z);break;case"rotation_rate":e.pipeline_motion_rotation_rate_submit(r,t.timestamp,t.x,t.y,t.z)}break}case"attitudeMatrixC2S":{const t=a,r=i._pipeline_by_instance.get(t.p);if(!r)break;e.pipeline_motion_attitude_matrix_submit(r,t.m);break}}}))}})}))}let G=0,W=0,X=1;function H(e){return new Promise(((t,r)=>{const i=setTimeout((()=>{r("Frame timeout")}),2e3);e.read().then((e=>{clearTimeout(i),t(e)}))}))}const Y=d.Ue(),q=new Float32Array([300,300,160,120,0,0]);function K(e,t,r,i,a,_,n,s){var o,c;return V(this,void 0,void 0,(function*(){for(;;){let f=yield H(r);if(f.done)return void(null===(o=f.value)||void 0===o||o.close());let l=f.value,u=l.allocationSize();u>W&&(G>0&&e._free(G),G=e._malloc(u),W=u),yield l.copyTo(e.HEAPU8.subarray(G,G+W));let p=X;X++;const h=l.visibleRect.width,m=l.visibleRect.height;let b,g=h,y=m;switch(S){case 270:b=new Float32Array([0,1,0,0,-1,0,0,0,0,0,1,0,1,0,0,1]),g=m,y=h;break;case 180:b=new Float32Array([-1,0,0,0,0,-1,0,0,0,0,1,0,1,1,0,1]);break;case 90:b=new Float32Array([0,-1,0,0,1,0,0,0,0,0,1,0,0,1,0,1]),g=m,y=h;break;default:b=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}let w=l.clone();a?d.xJ(Y,[-1,1,-1]):d.yR(Y);let A=300*E.dataWidth/320;q[0]=A,q[1]=A,q[2]=.5*E.dataWidth,q[3]=.5*E.dataHeight;const T={token:p,d:w,p:i,t:"videoFrameS2C",userFacing:a,uvTransform:b,w:E.dataWidth,h:E.dataHeight,cameraToDevice:Y,cameraModel:q,source:n};U.postOutgoingMessage(T,[T.d,T.uvTransform.buffer]);const R=_._pipeline_by_instance.get(i);if(R){try{t.pipeline_camera_frame_submit_raw_pointer(R,G,u,j(l.format),h,m,p,Y,S,q,a,null!==(c=l.timestamp)&&void 0!==c?c:-1),Q(e,s)}catch(e){console.log("Exception during camera processing",e)}if(t.pipeline_frame_update(R),N){let r=z.get(i);if(r||(r={available:[],ready:[]},z.set(i,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 a=t.pipeline_camera_frame_data_raw_size(R);let _;for(;!_||_.byteLength<a;)r.available.length<1&&r.available.push(new Uint8Array(a)),_=r.available.pop();const n=t.pipeline_camera_frame_data_raw(R);_.set(e.HEAPU8.subarray(n,n+a)),r.ready.push({token:p,data:{data:_,width:t.pipeline_camera_frame_data_raw_width(i),height:t.pipeline_camera_frame_data_raw_height(i)}})}_.exploreState()}l.close()}}))}function Z(e){return new Promise((t=>{setTimeout(t,e)}))}function j(e){switch(e){case"I420":return p.FRAME_PIXEL_FORMAT_I420;case"I420A":return p.FRAME_PIXEL_FORMAT_I420A;case"I422":return p.FRAME_PIXEL_FORMAT_I422;case"I444":return p.FRAME_PIXEL_FORMAT_I444;case"NV12":return p.FRAME_PIXEL_FORMAT_NV12;case"RGBA":case"RGBX":return p.FRAME_PIXEL_FORMAT_RGBA;case"BGRA":case"BGRX":return p.FRAME_PIXEL_FORMAT_BGRA}return p.FRAME_PIXEL_FORMAT_Y}function Q(e,t){const r=t.worker_message_send_count();if(0!==r){C||(C=new MessageChannel,C.port1.start(),C.port1.addEventListener("message",(r=>{if("msgrec"!==r.data.t)return;const i=r.data.data,a=e._malloc(i.byteLength);e.HEAPU8.set(i,a),t.worker_message_receive(r.data.reference,i.byteLength,a),e._free(a)})),U.postOutgoingMessage({t:"setupCeresWorker",port:C.port2},[C.port2]));for(let i=0;i<r;i++){const r=t.worker_message_send_reference(i),a=t.worker_message_send_data_size(i),_=t.worker_message_send_data(i),n=e.HEAPU8.slice(_,_+a);C.port1.postMessage({t:"msgsend",data:n,reference:r},[n.buffer])}t.worker_message_send_clear()}}const J=self;U.onOutgoingMessage.bind((()=>{let e=U.getOutgoingMessages();for(let t of e)J.postMessage(t.msg,t.transferables)}));let $=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",$))};J.addEventListener("message",$),J.addEventListener("message",(e=>{U.postIncomingMessage(e.data)}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var _=i[e]={exports:{}};return r[e].call(_.exports,_,_.exports,a),_.exports}return a.m=r,a.x=()=>{var e=a.O(void 0,[169,867],(()=>a(429)));return a.O(e)},a.amdO={},e=[],a.O=(t,r,i,_)=>{if(!r){var n=1/0;for(f=0;f<e.length;f++){for(var[r,i,_]=e[f],s=!0,o=0;o<r.length;o++)(!1&_||n>=_)&&Object.keys(a.O).every((e=>a.O[e](r[o])))?r.splice(o--,1):(s=!1,_<n&&(n=_));if(s){e.splice(f--,1);var c=i();void 0!==c&&(t=c)}}return t}_=_||0;for(var f=e.length;f>0&&e[f-1][2]>_;f--)e[f]=e[f-1];e[f]=[r,i,_]},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+".zappar-cv.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var i=r.length-1;i>-1&&!e;)e=r[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{a.b=self.location+"";var e={429:1};a.f.i=(t,r)=>{e[t]||importScripts(a.p+a.u(t))};var t=self.webpackChunkZCV=self.webpackChunkZCV||[],r=t.push.bind(t);t.push=t=>{var[i,_,n]=t;for(var s in _)a.o(_,s)&&(a.m[s]=_[s]);for(n&&n(a);i.length;)e[i.pop()]=1;r(t)}})(),t=a.x,a.x=()=>Promise.all([a.e(169),a.e(867)]).then(t),a.x()})()));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkZCV=self.webpackChunkZCV||[]).push([[867],{604:(e,r,a)=>{function t(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.d(r,{g:()=>t})},581:(e,r,a)=>{var t;a.d(r,{Z:()=>i});const i=(t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){var r,a,i=e;i.ready=new Promise(((e,t)=>{r=e,a=t}));var n,o=Object.assign({},i),_="./this.program",c=(e,r)=>{throw r},s="";s=self.location.href,t&&(s=t),s=s.startsWith("blob:")?"":s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1),n=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)};var h,l=i.print||console.log.bind(console),d=i.printErr||console.error.bind(console);Object.assign(i,o),o=null,i.thisProgram&&(_=i.thisProgram),i.quit&&(c=i.quit),i.wasmBinary&&(h=i.wasmBinary),"object"!=typeof WebAssembly&&A("no native wasm support detected");var u,f,v,p,E,m,b,g,w,y,N=!1;function S(){var e=u.buffer;i.HEAP8=v=new Int8Array(e),i.HEAP16=E=new Int16Array(e),i.HEAPU8=p=new Uint8Array(e),i.HEAPU16=m=new Uint16Array(e),i.HEAP32=b=new Int32Array(e),i.HEAPU32=g=new Uint32Array(e),i.HEAPF32=w=new Float32Array(e),i.HEAPF64=y=new Float64Array(e)}var z=[],I=[],k=[];function L(){var e=i.preRun.shift();z.unshift(e)}var P,j,Z,R=0,K=null,x=null;function M(){R++,i.monitorRunDependencies?.(R)}function C(){if(R--,i.monitorRunDependencies?.(R),0==R&&(null!==K&&(clearInterval(K),K=null),x)){var e=x;x=null,e()}}function A(e){throw i.onAbort?.(e),d(e="Aborted("+e+")"),N=!0,f=1,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}if(!(P="zappar-cv.wasm").startsWith("data:application/octet-stream;base64,")){var F=P;P=i.locateFile?i.locateFile(F,s):s+F}function D(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var T=e=>{for(;0<e.length;)e.shift()(i)},O=i.noExitRuntime||!0,$=[],q=0,U=0;class B{constructor(e){this.ph=e,this.eh=e-24}}var W=e=>{var r=U;if(!r)return da(0),0;var a=new B(r);g[a.eh+16>>2]=r;var t=g[a.eh+4>>2];if(!t)return da(0),r;for(var i in e){var n=e[i];if(0===n||n===t)break;if(ma(n,t,a.eh+16))return da(n),r}return da(t),r},G=()=>{var e=$.pop();e||A("no exception to throw");var r=e.ph;throw 0==v[e.eh+13>>0]&&($.push(e),v[e.eh+13>>0]=1,v[e.eh+12>>0]=0,q++),U=r},H=(e,r)=>{for(var a=0,t=e.length-1;0<=t;t--){var i=e[t];"."===i?e.splice(t,1):".."===i?(e.splice(t,1),a++):a&&(e.splice(t,1),a--)}if(r)for(;a;a--)e.unshift("..");return e},Y=e=>{var r="/"===e.charAt(0),a="/"===e.substr(-1);return(e=H(e.split("/").filter((e=>!!e)),!r).join("/"))||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},V=e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=r[0],r=r[1],e||r?(r&&=r.substr(0,r.length-1),e+r):"."},X=e=>{if("/"===e)return"/";var r=(e=(e=Y(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},J=e=>(J=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);A("initRandomDevice")})())(e);function Q(){for(var e="",r=!1,a=arguments.length-1;-1<=a&&!r;a--){if("string"!=typeof(r=0<=a?arguments[a]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";e=r+"/"+e,r="/"===r.charAt(0)}return(r?"/":"")+(e=H(e.split("/").filter((e=>!!e)),!r).join("/"))||"."}var ee="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,re=(e,r,a)=>{var t=r+a;for(a=r;e[a]&&!(a>=t);)++a;if(16<a-r&&e.buffer&&ee)return ee.decode(e.subarray(r,a));for(t="";r<a;){var i=e[r++];if(128&i){var n=63&e[r++];if(192==(224&i))t+=String.fromCharCode((31&i)<<6|n);else{var o=63&e[r++];65536>(i=224==(240&i)?(15&i)<<12|n<<6|o:(7&i)<<18|n<<12|o<<6|63&e[r++])?t+=String.fromCharCode(i):(i-=65536,t+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else t+=String.fromCharCode(i)}return t},ae=[],te=e=>{for(var r=0,a=0;a<e.length;++a){var t=e.charCodeAt(a);127>=t?r++:2047>=t?r+=2:55296<=t&&57343>=t?(r+=4,++a):r+=3}return r},ie=(e,r,a,t)=>{if(!(0<t))return 0;var i=a;t=a+t-1;for(var n=0;n<e.length;++n){var o=e.charCodeAt(n);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++n)),127>=o){if(a>=t)break;r[a++]=o}else{if(2047>=o){if(a+1>=t)break;r[a++]=192|o>>6}else{if(65535>=o){if(a+2>=t)break;r[a++]=224|o>>12}else{if(a+3>=t)break;r[a++]=240|o>>18,r[a++]=128|o>>12&63}r[a++]=128|o>>6&63}r[a++]=128|63&o}}return r[a]=0,a-i};function ne(e,r){var a=Array(te(e)+1);return e=ie(e,a,0,a.length),r&&(a.length=e),a}var oe=[];function _e(e,r){oe[e]={input:[],fh:[],nh:r},Fe(e,ce)}var ce={open(e){var r=oe[e.node.yh];if(!r)throw new we(43);e.bh=r,e.seekable=!1},close(e){e.bh.nh.Ch(e.bh)},Ch(e){e.bh.nh.Ch(e.bh)},read(e,r,a,t){if(!e.bh||!e.bh.nh.Rh)throw new we(60);for(var i=0,n=0;n<t;n++){try{var o=e.bh.nh.Rh(e.bh)}catch(e){throw new we(29)}if(void 0===o&&0===i)throw new we(6);if(null==o)break;i++,r[a+n]=o}return i&&(e.node.timestamp=Date.now()),i},write(e,r,a,t){if(!e.bh||!e.bh.nh.Mh)throw new we(60);try{for(var i=0;i<t;i++)e.bh.nh.Mh(e.bh,r[a+i])}catch(e){throw new we(29)}return t&&(e.node.timestamp=Date.now()),i}},se={Rh(){e:{if(!ae.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}ae=ne(e,!0)}e=ae.shift()}return e},Mh(e,r){null===r||10===r?(l(re(e.fh,0)),e.fh=[]):0!=r&&e.fh.push(r)},Ch(e){e.fh&&0<e.fh.length&&(l(re(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,r){null===r||10===r?(d(re(e.fh,0)),e.fh=[]):0!=r&&e.fh.push(r)},Ch(e){e.fh&&0<e.fh.length&&(d(re(e.fh,0)),e.fh=[])}};function le(e,r){var a=e.$g?e.$g.length:0;a>=r||(r=Math.max(r,a*(1048576>a?2:1.125)>>>0),0!=a&&(r=Math.max(r,256)),a=e.$g,e.$g=new Uint8Array(r),0<e.dh&&e.$g.set(a.subarray(0,e.dh),0))}var de={jh:null,mh:()=>de.createNode(null,"/",16895,0),createNode(e,r,a,t){if(24576==(61440&a)||4096==(61440&a))throw new we(63);return de.jh||(de.jh={dir:{node:{ih:de.Zg.ih,kh:de.Zg.kh,xh:de.Zg.xh,Dh:de.Zg.Dh,Wh:de.Zg.Wh,Jh:de.Zg.Jh,Fh:de.Zg.Fh,Eh:de.Zg.Eh,Gh:de.Zg.Gh},stream:{rh:de.ah.rh}},file:{node:{ih:de.Zg.ih,kh:de.Zg.kh},stream:{rh:de.ah.rh,read:de.ah.read,write:de.ah.write,Ah:de.ah.Ah,Th:de.ah.Th,Vh:de.ah.Vh}},link:{node:{ih:de.Zg.ih,kh:de.Zg.kh,zh:de.Zg.zh},stream:{}},Ph:{node:{ih:de.Zg.ih,kh:de.Zg.kh},stream:Ae}}),Pe((a=Le(e,r,a,t)).mode)?(a.Zg=de.jh.dir.node,a.ah=de.jh.dir.stream,a.$g={}):32768==(61440&a.mode)?(a.Zg=de.jh.file.node,a.ah=de.jh.file.stream,a.dh=0,a.$g=null):40960==(61440&a.mode)?(a.Zg=de.jh.link.node,a.ah=de.jh.link.stream):8192==(61440&a.mode)&&(a.Zg=de.jh.Ph.node,a.ah=de.jh.Ph.stream),a.timestamp=Date.now(),e&&(e.$g[r]=a,e.timestamp=a.timestamp),a},Fi:e=>e.$g?e.$g.subarray?e.$g.subarray(0,e.dh):new Uint8Array(e.$g):new Uint8Array(0),Zg:{ih(e){var r={};return r.ai=8192==(61440&e.mode)?e.id:1,r.Sh=e.id,r.mode=e.mode,r.mi=1,r.uid=0,r.ci=0,r.yh=e.yh,Pe(e.mode)?r.size=4096:32768==(61440&e.mode)?r.size=e.dh:40960==(61440&e.mode)?r.size=e.link.length:r.size=0,r.Xh=new Date(e.timestamp),r.li=new Date(e.timestamp),r.$h=new Date(e.timestamp),r.Yh=4096,r.Zh=Math.ceil(r.size/r.Yh),r},kh(e,r){if(void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&(r=r.size,e.dh!=r))if(0==r)e.$g=null,e.dh=0;else{var a=e.$g;e.$g=new Uint8Array(r),a&&e.$g.set(a.subarray(0,Math.min(r,e.dh))),e.dh=r}},xh(){throw ye[44]},Dh:(e,r,a,t)=>de.createNode(e,r,a,t),Wh(e,r,a){if(Pe(e.mode)){try{var t=ke(r,a)}catch(e){}if(t)for(var i in t.$g)throw new we(55)}delete e.parent.$g[e.name],e.parent.timestamp=Date.now(),e.name=a,r.$g[a]=e,r.timestamp=e.parent.timestamp,e.parent=r},Jh(e,r){delete e.$g[r],e.timestamp=Date.now()},Fh(e,r){var a,t=ke(e,r);for(a in t.$g)throw new we(55);delete e.$g[r],e.timestamp=Date.now()},Eh(e){var r,a=[".",".."];for(r of Object.keys(e.$g))a.push(r);return a},Gh:(e,r,a)=>((e=de.createNode(e,r,41471,0)).link=a,e),zh(e){if(40960!=(61440&e.mode))throw new we(28);return e.link}},ah:{read(e,r,a,t,i){var n=e.node.$g;if(i>=e.node.dh)return 0;if(8<(e=Math.min(e.node.dh-i,t))&&n.subarray)r.set(n.subarray(i,i+e),a);else for(t=0;t<e;t++)r[a+t]=n[i+t];return e},write(e,r,a,t,i,n){if(r.buffer===v.buffer&&(n=!1),!t)return 0;if((e=e.node).timestamp=Date.now(),r.subarray&&(!e.$g||e.$g.subarray)){if(n)return e.$g=r.subarray(a,a+t),e.dh=t;if(0===e.dh&&0===i)return e.$g=r.slice(a,a+t),e.dh=t;if(i+t<=e.dh)return e.$g.set(r.subarray(a,a+t),i),t}if(le(e,i+t),e.$g.subarray&&r.subarray)e.$g.set(r.subarray(a,a+t),i);else for(n=0;n<t;n++)e.$g[i+n]=r[a+n];return e.dh=Math.max(e.dh,i+t),t},rh(e,r,a){if(1===a?r+=e.position:2===a&&32768==(61440&e.node.mode)&&(r+=e.node.dh),0>r)throw new we(28);return r},Ah(e,r,a){le(e.node,r+a),e.node.dh=Math.max(e.node.dh,r+a)},Th(e,r,a,t,i){if(32768!=(61440&e.node.mode))throw new we(43);if(e=e.node.$g,2&i||e.buffer!==v.buffer){if((0<a||a+r<e.length)&&(e=e.subarray?e.subarray(a,a+r):Array.prototype.slice.call(e,a,a+r)),a=!0,A(),!(r=void 0))throw new we(48);v.set(e,r)}else a=!1,r=e.byteOffset;return{eh:r,uh:a}},Vh:(e,r,a,t)=>(de.ah.write(e,r,0,t,a,!1),0)}},ue=i.preloadPlugins||[],fe=(e,r)=>{var a=0;return e&&(a|=365),r&&(a|=146),a},ve=null,pe={},Ee=[],me=1,be=null,ge=!0,we=class{constructor(e){this.name="ErrnoError",this.gh=e}},ye={};function Ne(e,r={}){if(!(e=Q(e)))return{path:"",node:null};if(8<(r=Object.assign({Qh:!0,Nh:0},r)).Nh)throw new we(32);e=e.split("/").filter((e=>!!e));for(var a=ve,t="/",i=0;i<e.length;i++){var n=i===e.length-1;if(n&&r.parent)break;if(a=ke(a,e[i]),t=Y(t+"/"+e[i]),a.vh&&(!n||n&&r.Qh)&&(a=a.vh.root),!n||r.Bh)for(n=0;40960==(61440&a.mode);)if(a=Ue(t),a=Ne(t=Q(V(t),a),{Nh:r.Nh+1}).node,40<n++)throw new we(32)}return{path:t,node:a}}function Se(e){for(var r;;){if(e===e.parent)return e=e.mh.Uh,r?"/"!==e[e.length-1]?`${e}/${r}`:e+r:e;r=r?`${e.name}/${r}`:e.name,e=e.parent}}function ze(e,r){for(var a=0,t=0;t<r.length;t++)a=(a<<5)-a+r.charCodeAt(t)|0;return(e+a>>>0)%be.length}function Ie(e){var r=ze(e.parent.id,e.name);if(be[r]===e)be[r]=e.wh;else for(r=be[r];r;){if(r.wh===e){r.wh=e.wh;break}r=r.wh}}function ke(e,r){var a=Pe(e.mode)?(a=Ze(e,"x"))?a:e.Zg.xh?0:2:54;if(a)throw new we(a);for(a=be[ze(e.id,r)];a;a=a.wh){var t=a.name;if(a.parent.id===e.id&&t===r)return a}return e.Zg.xh(e,r)}function Le(e,r,a,t){return r=ze((e=new ia(e,r,a,t)).parent.id,e.name),e.wh=be[r],be[r]=e}function Pe(e){return 16384==(61440&e)}function je(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r}function Ze(e,r){return ge?0:!r.includes("r")||292&e.mode?r.includes("w")&&!(146&e.mode)||r.includes("x")&&!(73&e.mode)?2:0:2}function Re(e,r){try{return ke(e,r),20}catch(e){}return Ze(e,"wx")}function Ke(e,r,a){try{var t=ke(e,r)}catch(e){return e.gh}if(e=Ze(e,"wx"))return e;if(a){if(!Pe(t.mode))return 54;if(t===t.parent||"/"===Se(t))return 10}else if(Pe(t.mode))return 31;return 0}function xe(e){if(!(e=Ee[e]))throw new we(8);return e}function Me(e,r=-1){return Ye||((Ye=function(){this.hh={}}).prototype={},Object.defineProperties(Ye.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 Ye,e),-1==r&&(r=function(){for(var e=0;4096>=e;e++)if(!Ee[e])return e;throw new we(33)}()),e.oh=r,Ee[r]=e}var Ce,Ae={open(e){e.ah=pe[e.node.yh].ah,e.ah.open?.(e)},rh(){throw new we(70)}};function Fe(e,r){pe[e]={ah:r}}function De(e,r){var a="/"===r;if(a&&ve)throw new we(10);if(!a&&r){var t=Ne(r,{Qh:!1});if(r=t.path,(t=t.node).vh)throw new we(10);if(!Pe(t.mode))throw new we(54)}r={type:e,Ji:{},Uh:r,ki:[]},(e=e.mh(r)).mh=r,r.root=e,a?ve=e:t&&(t.vh=r,t.mh&&t.mh.ki.push(r))}function Te(e,r,a){var t=Ne(e,{parent:!0}).node;if(!(e=X(e))||"."===e||".."===e)throw new we(28);var i=Re(t,e);if(i)throw new we(i);if(!t.Zg.Dh)throw new we(63);return t.Zg.Dh(t,e,r,a)}function Oe(e){return Te(e,16895,0)}function $e(e,r,a){void 0===a&&(a=r,r=438),Te(e,8192|r,a)}function qe(e,r){if(!Q(e))throw new we(44);var a=Ne(r,{parent:!0}).node;if(!a)throw new we(44);var t=Re(a,r=X(r));if(t)throw new we(t);if(!a.Zg.Gh)throw new we(63);a.Zg.Gh(a,r,e)}function Ue(e){if(!(e=Ne(e).node))throw new we(44);if(!e.Zg.zh)throw new we(28);return Q(Se(e.parent),e.Zg.zh(e))}function Be(e,r,a){if(""===e)throw new we(44);if("string"==typeof r){var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===t)throw Error(`Unknown file open mode: ${r}`);r=t}if(a=64&r?4095&(void 0===a?438:a)|32768:0,"object"==typeof e)var n=e;else{e=Y(e);try{n=Ne(e,{Bh:!(131072&r)}).node}catch(e){}}if(t=!1,64&r)if(n){if(128&r)throw new we(20)}else n=Te(e,a,0),t=!0;if(!n)throw new we(44);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&!Pe(n.mode))throw new we(54);if(!t&&(a=n?40960==(61440&n.mode)?32:Pe(n.mode)&&("r"!==je(r)||512&r)?31:Ze(n,je(r)):44))throw new we(a);if(512&r&&!t){if(!(a="string"==typeof(a=n)?Ne(a,{Bh:!0}).node:a).Zg.kh)throw new we(63);if(Pe(a.mode))throw new we(31);if(32768!=(61440&a.mode))throw new we(28);if(t=Ze(a,"w"))throw new we(t);a.Zg.kh(a,{size:0,timestamp:Date.now()})}return r&=-131713,(n=Me({node:n,path:Se(n),flags:r,seekable:!0,position:0,ah:n.ah,si:[],error:!1})).ah.open&&n.ah.open(n),!i.logReadFiles||1&r||(Ve||={},e in Ve||(Ve[e]=1)),n}function We(e,r,a){if(null===e.oh)throw new we(8);if(!e.seekable||!e.ah.rh)throw new we(70);if(0!=a&&1!=a&&2!=a)throw new we(28);return e.position=e.ah.rh(e,r,a),e.si=[],e.position}function Ge(e,r,a){e=Y("/dev/"+e);var t=fe(!!r,!!a);He||=64;var i=He++<<8|0;Fe(i,{open(e){e.seekable=!1},close(){a?.buffer?.length&&a(10)},read(e,a,t,i){for(var n=0,o=0;o<i;o++){try{var _=r()}catch(e){throw new we(29)}if(void 0===_&&0===n)throw new we(6);if(null==_)break;n++,a[t+o]=_}return n&&(e.node.timestamp=Date.now()),n},write(e,r,t,i){for(var n=0;n<i;n++)try{a(r[t+n])}catch(e){throw new we(29)}return i&&(e.node.timestamp=Date.now()),n}}),$e(e,t,i)}var He,Ye,Ve,Xe={},Je=(e,r)=>e?re(p,e,r):"";function Qe(e,r){if("/"===r.charAt(0))return r;if(e=-100===e?"/":xe(e).path,0==r.length)throw new we(44);return Y(e+"/"+r)}var er=void 0;function rr(){var e=b[+er>>2];return er+=4,e}var ar,tr=e=>0==e%4&&(0!=e%100||0==e%400),ir=[0,31,60,91,121,152,182,213,244,274,305,335],nr=[0,31,59,90,120,151,181,212,243,273,304,334],or=e=>{var r=te(e)+1,a=sa(r);return a&&ie(e,p,a,r),a},_r=e=>{f=e,O||(i.onExit?.(e),N=!0),c(e,new D(e))},cr=e=>{if(!N)try{if(e(),!O)try{f=e=f,_r(e)}catch(e){e instanceof D||"unwind"==e||c(1,e)}}catch(e){e instanceof D||"unwind"==e||c(1,e)}},sr=(e,r)=>{setTimeout((()=>{cr(e)}),r)};ar=()=>performance.now();var hr,lr,dr,ur=!1,fr=null,vr=0,pr=null,Er=0,mr=0,br=0,gr=[],wr={},yr=!1,Nr=!1,Sr=[],zr=!1,Ir=void 0,kr=void 0;function Lr(){return!!yr&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0)}var Pr=0;function jr(e){if("function"==typeof requestAnimationFrame)requestAnimationFrame(e);else{var r=Date.now();if(0===Pr)Pr=r+1e3/60;else for(;r+2>=Pr;)Pr+=1e3/60;setTimeout(e,Math.max(Pr-r,0))}}function Zr(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 Rr=[];function Kr(){var e=i.canvas;Rr.forEach((r=>r(e.width,e.height)))}function xr(e,r,a){r&&a?(e.ti=r,e.di=a):(r=e.ti,a=e.di);var t=r,n=a;if(i.forcedAspectRatio&&0<i.forcedAspectRatio&&(t/n<i.forcedAspectRatio?t=Math.round(n*i.forcedAspectRatio):n=Math.round(t/i.forcedAspectRatio)),(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e.parentNode&&"undefined"!=typeof screen){var o=Math.min(screen.width/t,screen.height/n);t=Math.round(t*o),n=Math.round(n*o)}kr?(e.width!=t&&(e.width=t),e.height!=n&&(e.height=n),void 0!==e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=r&&(e.width=r),e.height!=a&&(e.height=a),void 0!==e.style&&(t!=r||n!=a?(e.style.setProperty("width",t+"px","important"),e.style.setProperty("height",n+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))}var Mr,Cr,Ar,Fr,Dr,Tr=[],Or=e=>{var r=Tr[e];return r||(e>=Tr.length&&(Tr.length=e+1),Tr[e]=r=Ar.get(e)),r};function $r(e,r,a,t,i){function n(){var r=0,a=0;y.response&&b&&0===g[e+12>>2]&&(a=y.response.byteLength),0<a&&(r=sa(a),p.set(new Uint8Array(y.response),r)),g[e+12>>2]=r,qr(e+16,a),qr(e+24,0),(r=y.response?y.response.byteLength:0)&&qr(e+32,r),m[e+40>>1]=y.readyState,m[e+42>>1]=y.status,y.statusText&&ie(y.statusText,p,e+44,64)}var o=g[e+8>>2];if(o){var _=o?re(p,o):"",c=e+112,s=Je(c+0);s||="GET";var h=g[c+56>>2],l=g[c+68>>2],d=g[c+72>>2];o=g[c+76>>2];var u=g[c+80>>2],f=g[c+84>>2],v=g[c+88>>2],E=g[c+52>>2],b=!!(1&E),w=!!(2&E);E=!!(64&E),l=l?l?re(p,l):"":void 0,d=d?d?re(p,d):"":void 0;var y=new XMLHttpRequest;if(y.withCredentials=!!p[c+60>>0],y.open(s,_,!E,l,d),E||(y.timeout=h),y.hh=_,y.responseType="arraybuffer",u&&(_=u?re(p,u):"",y.overrideMimeType(_)),o)for(;(c=g[o>>2])&&(_=g[o+4>>2]);)o+=8,c=c?re(p,c):"",_=_?re(p,_):"",y.setRequestHeader(c,_);var N=Fr.Ah(y);g[e>>2]=N,o=f&&v?p.slice(f,f+v):null,y.onload=t=>{Fr.has(N)&&(n(),200<=y.status&&300>y.status?r?.(e,y,t):a?.(e,y,t))},y.onerror=r=>{Fr.has(N)&&(n(),a?.(e,y,r))},y.ontimeout=r=>{Fr.has(N)&&a?.(e,y,r)},y.onprogress=r=>{if(Fr.has(N)){var a=b&&w&&y.response?y.response.byteLength:0,i=0;0<a&&b&&w&&(i=sa(a),p.set(new Uint8Array(y.response),i)),g[e+12>>2]=i,qr(e+16,a),qr(e+24,r.loaded-a),qr(e+32,r.total),m[e+40>>1]=y.readyState,3<=y.readyState&&0===y.status&&0<r.loaded&&(y.status=200),m[e+42>>1]=y.status,y.statusText&&ie(y.statusText,p,e+44,64),t?.(e,y,r),i&&ca(i)}},y.onreadystatechange=r=>{Fr.has(N)&&(m[e+40>>1]=y.readyState,2<=y.readyState&&(m[e+42>>1]=y.status),i?.(e,y,r))};try{y.send(o)}catch(r){a?.(e,y,r)}}else a(e,0,"no url specified!")}var qr=(e,r)=>{g[e>>2]=r,g[e+4>>2]=(r-g[e>>2])/4294967296};function Ur(e,r,a,t){var i=Dr;if(i){var n=g[e+112+64>>2];n||=g[e+8>>2];var o=n?re(p,n):"";try{var _=i.transaction(["FILES"],"readwrite").objectStore("FILES").put(r,o);_.onsuccess=()=>{m[e+40>>1]=4,m[e+42>>1]=200,ie("OK",p,e+44,64),a(e,0,o)},_.onerror=r=>{m[e+40>>1]=4,m[e+42>>1]=413,ie("Payload Too Large",p,e+44,64),t(e,0,r)}}catch(r){t(e,0,r)}}else t(e,0,"IndexedDB not available!")}var Br,Wr,Gr,Hr={},Yr=()=>{if(!Br){var e,r={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",_:_||"./this.program"};for(e in Hr)void 0===Hr[e]?delete r[e]:r[e]=Hr[e];var a=[];for(e in r)a.push(`${e}=${r[e]}`);Br=a}return Br},Vr=1,Xr=[],Jr=[],Qr=e=>{for(var r=Vr++,a=e.length;a<r;a++)e[a]=null;return r},ea=e=>{if(e||=Gr,!e.ei){e.ei=!0;var r=e.Kh;(e=>{var r=e.getExtension("ANGLE_instanced_arrays");r&&(e.vertexAttribDivisor=(e,a)=>r.vertexAttribDivisorANGLE(e,a),e.drawArraysInstanced=(e,a,t,i)=>r.drawArraysInstancedANGLE(e,a,t,i),e.drawElementsInstanced=(e,a,t,i,n)=>r.drawElementsInstancedANGLE(e,a,t,i,n))})(r),(e=>{var r=e.getExtension("OES_vertex_array_object");r&&(e.createVertexArray=()=>r.createVertexArrayOES(),e.deleteVertexArray=e=>r.deleteVertexArrayOES(e),e.bindVertexArray=e=>r.bindVertexArrayOES(e),e.isVertexArray=e=>r.isVertexArrayOES(e))})(r),(e=>{var r=e.getExtension("WEBGL_draw_buffers");r&&(e.drawBuffers=(e,a)=>r.drawBuffersWEBGL(e,a))})(r),r.Ci=r.getExtension("EXT_disjoint_timer_query"),r.Gi=r.getExtension("WEBGL_multi_draw"),function(e){var r="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=>r.includes(e)))}(r).forEach((e=>{e.includes("lose_context")||e.includes("debug")||r.getExtension(e)}))}},ra={},aa=[31,29,31,30,31,30,31,31,30,31,30,31],ta=[31,28,31,30,31,30,31,31,30,31,30,31];function ia(e,r,a,t){e||=this,this.parent=e,this.mh=e.mh,this.vh=null,this.id=me++,this.name=r,this.mode=a,this.Zg={},this.ah={},this.yh=t}Object.defineProperties(ia.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 we(e),ye[e].stack="<generic error, no stack>"})),be=Array(4096),De(de,"/"),Oe("/tmp"),Oe("/home"),Oe("/home/web_user"),function(){Oe("/dev"),Fe(259,{read:()=>0,write:(e,r,a,t)=>t}),$e("/dev/null",259),_e(1280,se),_e(1536,he),$e("/dev/tty",1280),$e("/dev/tty1",1536);var e=new Uint8Array(1024),r=0,a=()=>(0===r&&(r=J(e).byteLength),e[--r]);Ge("random",a),Ge("urandom",a),Oe("/dev/shm"),Oe("/dev/shm/tmp")}(),function(){Oe("/proc");var e=Oe("/proc/self");Oe("/proc/self/fd"),De({mh(){var r=Le(e,"fd",16895,73);return r.Zg={xh(e,r){var a=xe(+r);return(e={parent:null,mh:{Uh:"fake"},Zg:{zh:()=>a.path}}).parent=e}},r}},"/proc/self/fd")}(),i.requestFullscreen=function(e,r){function a(){yr=!1;var e=t.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e?(t.exitFullscreen=Lr,Ir&&t.requestPointerLock(),yr=!0,kr?("undefined"!=typeof SDL&&(b[SDL.screen>>2]=8388608|g[SDL.screen>>2]),xr(i.canvas),Kr()):xr(t)):(e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e),kr?("undefined"!=typeof SDL&&(b[SDL.screen>>2]=-8388609&g[SDL.screen>>2]),xr(i.canvas),Kr()):xr(t)),i.onFullScreen?.(yr),i.onFullscreen?.(yr)}void 0===(Ir=e)&&(Ir=!0),void 0===(kr=r)&&(kr=!1);var t=i.canvas;zr||(zr=!0,document.addEventListener("fullscreenchange",a,!1),document.addEventListener("mozfullscreenchange",a,!1),document.addEventListener("webkitfullscreenchange",a,!1),document.addEventListener("MSFullscreenChange",a,!1));var n=document.createElement("div");t.parentNode.insertBefore(n,t),n.appendChild(t),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=jr,i.setCanvasSize=function(e,r,a){xr(i.canvas,e,r),a||Kr()},i.pauseMainLoop=function(){fr=null,vr++},i.resumeMainLoop=function(){vr++;var e=Er,r=mr,a=pr;pr=null,(e=>{!pr||A("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."),pr=e;var r=vr;ur=!1,lr=function(){if(!N)if(0<gr.length){var a=gr.shift();if(a.Ei(a.vi),dr){var t=dr,n=0==t%1?t-1:Math.floor(t);dr=a.Bi?n:(8*t+(n+.5))/9}i.setStatus&&(a=i.statusMessage||"Please wait...",n=wr.Di,(t=dr)?t<n?i.setStatus(a+" ("+(n-t)+"/"+n+")"):i.setStatus(a):i.setStatus("")),r<vr||setTimeout(lr,0)}else r<vr||(br=br+1|0,1==Er&&1<mr&&0!=br%mr?fr():(0==Er&&(hr=ar()),N||i.preMainLoop&&!1===i.preMainLoop()||(cr(e),i.postMainLoop?.()),r<vr||("object"==typeof SDL&&SDL.audio?.Ki?.(),fr())))}})(a),((e,r)=>{if(Er=e,mr=r,pr)if(ur||=!0,0==e)fr=function(){var e=0|Math.max(0,hr+r-ar());setTimeout(lr,e)};else if(1==e)fr=function(){jr(lr)};else if(2==e){if(void 0===Mr)if("undefined"==typeof setImmediate){var a=[];addEventListener("message",(e=>{"setimmediate"!==e.data&&"setimmediate"!==e.data.target||(e.stopPropagation(),a.shift()())}),!0),Mr=function(e){a.push(e),void 0===i.setImmediates&&(i.setImmediates=[]),i.setImmediates.push(e),postMessage({target:"setimmediate"})}}else Mr=setImmediate;fr=function(){Mr(lr)}}})(e,r),fr()},i.getUserMedia=function(e){let r;(r=window).getUserMedia||(r.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},i.createContext=function(e,r,a,t){if(r&&i.Lh&&e==i.canvas)return i.Lh;var n;if(r){var o={antialias:!1,alpha:!1,ji:1};if(t)for(var _ in t)o[_]=t[_];if(void 0!==ra&&(n=((e,r)=>{e.hh||(e.hh=e.getContext,e.getContext=function(r,a){return"webgl"==r==(a=e.hh(r,a))instanceof WebGLRenderingContext?a:null});var a=e.getContext("webgl",r);return a?((e,r)=>{var a=Qr(Jr),t={handle:a,attributes:r,version:r.ji,Kh:e};return e.canvas&&(e.canvas.ui=t),Jr[a]=t,(void 0===r.bi||r.bi)&&ea(t),a})(a,r):0})(e,o)))var c=Jr[n].Kh}else c=e.getContext("2d");return c?(a&&(r||void 0===na||A("cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),i.Lh=c,r&&(Gr=Jr[n],i.Lh=na=Gr?.Kh),i.Mi=r,Sr.forEach((e=>e())),function(){function e(){Nr=document.pointerLockElement===i.canvas||document.mozPointerLockElement===i.canvas||document.webkitPointerLockElement===i.canvas||document.msPointerLockElement===i.canvas}if(!Cr){Cr=!0,ue.push({canHandle:function(e){return!i.Ii&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,r,a,t){var i=new Blob([e],{type:Zr(r)});i.size!==e.length&&(i=new Blob([new Uint8Array(e).buffer],{type:Zr(r)}));var n=URL.createObjectURL(i),o=new Image;o.onload=()=>{o.complete||A(`Image ${r} could not be decoded`);var t=document.createElement("canvas");t.width=o.width,t.height=o.height,t.getContext("2d").drawImage(o,0,0),URL.revokeObjectURL(n),a?.(e)},o.onerror=()=>{d(`Image ${n} could not be decoded`),t?.()},o.src=n}}),ue.push({canHandle:function(e){return!i.Hi&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,r,a){function t(){i||(i=!0,a?.(e))}var i=!1,n=URL.createObjectURL(new Blob([e],{type:Zr(r)})),o=new Audio;o.addEventListener("canplaythrough",(()=>t()),!1),o.onerror=function(){if(!i){d(`warning: browser could not fully decode audio ${r}, trying slower base64 approach`);for(var a="",n=0,_=0,c=0;c<e.length;c++)for(n=n<<8|e[c],_+=8;6<=_;){var s=n>>_-6&63;_-=6,a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[s]}2==_?(a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&n)<<4],a+="=="):4==_&&(a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&n)<<2],a+="="),o.src="data:audio/x-"+r.substr(-3)+";base64,"+a,t()}},o.src=n,sr((()=>{t()}),1e4)}});var r=i.canvas;r&&(r.requestPointerLock=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||(()=>{}),r.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),r.exitPointerLock=r.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&&r.addEventListener("click",(e=>{!Nr&&i.canvas.requestPointerLock&&(i.canvas.requestPointerLock(),e.preventDefault())}),!1))}}()),c):null},Fr=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 r=this.hh.pop()||this.uh.length;return this.uh[r]=e,r}},M(),function(e,r){try{var a=indexedDB.open("emscripten_filesystem",1)}catch(e){return void r()}a.onupgradeneeded=e=>{(e=e.target.result).objectStoreNames.contains("FILES")&&e.deleteObjectStore("FILES"),e.createObjectStore("FILES")},a.onsuccess=e=>(e=>{Dr=e,C()})(e.target.result),a.onerror=r}(0,(()=>{Dr=!1,C()}));var na,oa={q:e=>{if(e=new B(e),0==v[e.eh+12>>0]&&(v[e.eh+12>>0]=1,q--),v[e.eh+13>>0]=0,$.push(e),Ea(e.ph),ba(g[e.eh+4>>2]))e=g[e.ph>>2];else{var r=g[e.eh+16>>2];e=0!==r?r:e.ph}return e},Lb:()=>{if(!$.length)return 0;var e=$[$.length-1];return Ea(e.ph),e.ph},y:()=>{la(0,0);var e=$.pop();pa(e.ph),U=0},a:()=>W([]),i:e=>W([e]),G:(e,r)=>W([e,r]),Fa:G,Kb:e=>{e&&(e=new B(e),$.push(e),v[e.eh+13>>0]=1,G())},n:(e,r,a)=>{var t=new B(e);throw g[t.eh+16>>2]=0,g[t.eh+4>>2]=r,g[t.eh+8>>2]=a,q++,U=e},Mb:()=>q,d:e=>{throw U||=e,U},Q:function(e,r,a){er=a;try{var t=xe(e);switch(r){case 0:var i=rr();if(0>i)break;for(;Ee[i];)i++;return Me(t,i).oh;case 1:case 2:case 13:case 14:return 0;case 3:return t.flags;case 4:return i=rr(),t.flags|=i,0;case 12:return i=rr(),E[i+0>>1]=2,0}return-28}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return-e.gh}},Sb:function(e,r,a){try{var t=xe(e);if(!t.qh){var i=Ne(t.path,{Bh:!0}).node;if(!i.Zg.Eh)throw new we(54);var n=i.Zg.Eh(i);t.qh=n}e=0;for(var o=We(t,0,1),_=Math.floor(o/280);_<t.qh.length&&e+280<=a;){var c=t.qh[_];if("."===c)var s=t.node.id,h=4;else if(".."===c)s=Ne(t.path,{parent:!0}).node.id,h=4;else{var l=ke(t.node,c);s=l.id,h=8192==(61440&l.mode)?2:Pe(l.mode)?4:40960==(61440&l.mode)?10:8}Z=[s>>>0,(j=s,1<=+Math.abs(j)?0<j?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],b[r+e>>2]=Z[0],b[r+e+4>>2]=Z[1],Z=[280*(_+1)>>>0,(j=280*(_+1),1<=+Math.abs(j)?0<j?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],b[r+e+8>>2]=Z[0],b[r+e+12>>2]=Z[1],E[r+e+16>>1]=280,v[r+e+18>>0]=h,ie(c,p,r+e+19,256),e+=280,_+=1}return We(t,280*_,0),e}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return-e.gh}},Zb:function(e,r,a){er=a;try{var t=xe(e);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return t.bh?0:-59;case 21505:if(!t.bh)return-59;if(t.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=rr();b[i>>2]=25856,b[i+4>>2]=5,b[i+8>>2]=191,b[i+12>>2]=35387;for(var n=0;32>n;n++)v[i+n+17>>0]=e[n]||0}return 0;case 21506:case 21507:case 21508:if(!t.bh)return-59;if(t.bh.nh.hi)for(i=rr(),e=[],n=0;32>n;n++)e.push(v[i+n+17>>0]);return 0;case 21519:return t.bh?(i=rr(),b[i>>2]=0):-59;case 21520:return t.bh?-28:-59;case 21531:if(i=rr(),!t.ah.fi)throw new we(59);return t.ah.fi(t,r,i);case 21523:return t.bh?(t.bh.nh.ii&&(n=[24,80],i=rr(),E[i>>1]=n[0],E[i+2>>1]=n[1]),0):-59;default:return-28}}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return-e.gh}},Ja:function(e,r,a,t){er=t;try{return Be(r=Qe(e,r=r?re(p,r):""),a,t?rr():0).oh}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return-e.gh}},Qb:function(e,r,a,t){try{if(r=Qe(e,r=r?re(p,r):""),0>=t)return-28;var i=Ue(r),n=Math.min(t,te(i)),o=v[a+n];return ie(i,p,a,t+1),v[a+n]=o,n}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return-e.gh}},Vb:function(e,r){try{var a=Ne(e=e?re(p,e):"",{Bh:!0}).node;if(!a)throw new we(44);if(!a.Zg.ih)throw new we(63);var t=a.Zg.ih(a);b[r>>2]=t.ai,b[r+4>>2]=t.mode,g[r+8>>2]=t.mi,b[r+12>>2]=t.uid,b[r+16>>2]=t.ci,b[r+20>>2]=t.yh,Z=[t.size>>>0,(j=t.size,1<=+Math.abs(j)?0<j?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],b[r+24>>2]=Z[0],b[r+28>>2]=Z[1],b[r+32>>2]=4096,b[r+36>>2]=t.Zh;var i=t.Xh.getTime(),n=t.li.getTime(),o=t.$h.getTime();return Z=[Math.floor(i/1e3)>>>0,(j=Math.floor(i/1e3),1<=+Math.abs(j)?0<j?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],b[r+40>>2]=Z[0],b[r+44>>2]=Z[1],g[r+48>>2]=i%1e3*1e3,Z=[Math.floor(n/1e3)>>>0,(j=Math.floor(n/1e3),1<=+Math.abs(j)?0<j?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],b[r+56>>2]=Z[0],b[r+60>>2]=Z[1],g[r+64>>2]=n%1e3*1e3,Z=[Math.floor(o/1e3)>>>0,(j=Math.floor(o/1e3),1<=+Math.abs(j)?0<j?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],b[r+72>>2]=Z[0],b[r+76>>2]=Z[1],g[r+80>>2]=o%1e3*1e3,Z=[t.Sh>>>0,(j=t.Sh,1<=+Math.abs(j)?0<j?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],b[r+88>>2]=Z[0],b[r+92>>2]=Z[1],0}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return-e.gh}},Rb:function(e,r){try{return qe(e=e?re(p,e):"",r=r?re(p,r):""),0}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return-e.gh}},Ob:function(e,r,a){try{if(r=Qe(e,r=r?re(p,r):""),0===a){var t=r,i=Ne(t,{parent:!0}).node;if(!i)throw new we(44);var n=X(t),o=ke(i,n),_=Ke(i,n,!1);if(_)throw new we(_);if(!i.Zg.Jh)throw new we(63);if(o.vh)throw new we(10);i.Zg.Jh(i,n),Ie(o)}else if(512===a){t=Ne(i=r,{parent:!0}).node;var c=X(i),s=ke(t,c),h=Ke(t,c,!0);if(h)throw new we(h);if(!t.Zg.Fh)throw new we(63);if(s.vh)throw new we(10);t.Zg.Fh(t,c),Ie(s)}else A("Invalid flags passed to unlinkat");return 0}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return-e.gh}},_b:function(e){if(Fr.has(e)){var r=Fr.get(e),a=Fr;a.uh[e]=void 0,a.hh.push(e),0<r.readyState&&4>r.readyState&&r.abort()}},Xb:()=>1,kb:function(e,r,a){e=new Date(1e3*(r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN)),b[a>>2]=e.getUTCSeconds(),b[a+4>>2]=e.getUTCMinutes(),b[a+8>>2]=e.getUTCHours(),b[a+12>>2]=e.getUTCDate(),b[a+16>>2]=e.getUTCMonth(),b[a+20>>2]=e.getUTCFullYear()-1900,b[a+24>>2]=e.getUTCDay(),b[a+28>>2]=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},lb:function(e,r,a){e=new Date(1e3*(r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN)),b[a>>2]=e.getSeconds(),b[a+4>>2]=e.getMinutes(),b[a+8>>2]=e.getHours(),b[a+12>>2]=e.getDate(),b[a+16>>2]=e.getMonth(),b[a+20>>2]=e.getFullYear()-1900,b[a+24>>2]=e.getDay(),b[a+28>>2]=(tr(e.getFullYear())?ir:nr)[e.getMonth()]+e.getDate()-1|0,b[a+36>>2]=-60*e.getTimezoneOffset(),r=new Date(e.getFullYear(),6,1).getTimezoneOffset();var t=new Date(e.getFullYear(),0,1).getTimezoneOffset();b[a+32>>2]=0|(r!=t&&e.getTimezoneOffset()==Math.min(t,r))},Pb:(e,r,a)=>{function t(e){return(e=e.toTimeString().match(/\(([A-Za-z ]+)\)$/))?e[1]:"GMT"}var i=(new Date).getFullYear(),n=new Date(i,0,1),o=new Date(i,6,1);i=n.getTimezoneOffset();var _=o.getTimezoneOffset();g[e>>2]=60*Math.max(i,_),b[r>>2]=Number(i!=_),e=t(n),r=t(o),e=or(e),r=or(r),_<i?(g[a>>2]=e,g[a+4>>2]=r):(g[a>>2]=r,g[a+4>>2]=e)},F:()=>{A("")},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 r=new RegExp("("+String.fromCharCode(92)+".ngrok"+String.fromCharCode(92)+".io)$","i");r.test(e)&&(e="*.ngrok.io"),(r=new RegExp("("+String.fromCharCode(92)+".ngrok-free"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.ngrok.io"),(r=new RegExp("("+String.fromCharCode(92)+".arweb"+String.fromCharCode(92)+".app)$","i")).test(e)&&(e="*.arweb.app")}r=te(e)+1;var a=sa(r);return ie(e,p,a,r+1),a},gb:function(){self.postMessage({t:"licerr"})},Ea:(e,r,a)=>{function t(){Or(e)(r)}0<=a?sr(t,a):function(e){jr((()=>{cr(e)}))}(t)},na:()=>Date.now(),Ib:()=>2147483648,Wb:ar,ac:()=>!1,Yb:(e,r,a)=>p.copyWithin(e,r,r+a),Nb:e=>{var r=p.length;if(2147483648<(e>>>=0))return!1;for(var a=1;4>=a;a*=2){var t=r*(1+.2/a);t=Math.min(t,e+100663296);var i=Math;t=Math.max(e,t);e:{i=(i.min.call(i,2147483648,t+(65536-t%65536)%65536)-u.buffer.byteLength+65535)/65536;try{u.grow(i),S();var n=1;break e}catch(e){}n=void 0}if(n)return!0}return!1},$b:function(e,r,a,t,i){function n(e){d?e():cr(e)}var o=e+112,_=g[o+36>>2],c=g[o+40>>2],s=g[o+44>>2],h=g[o+48>>2],l=g[o+52>>2],d=!!(64&l),u=e=>{n((()=>{_?Or(_)(e):r?.(e)}))},f=e=>{n((()=>{s?Or(s)(e):t?.(e)}))},v=e=>{n((()=>{c?Or(c)(e):a?.(e)}))},E=e=>{n((()=>{h?Or(h)(e):i?.(e)}))},b=e=>{$r(e,u,v,f,E)},w=(e,a)=>{Ur(e,a.response,(e=>{n((()=>{_?Or(_)(e):r?.(e)}))}),(e=>{n((()=>{_?Or(_)(e):r?.(e)}))}))},y=Je(o+0),N=!!(16&l),S=!!(4&l);if(l=!!(32&l),"EM_IDB_STORE"===y)b=g[o+84>>2],Ur(e,p.slice(b,b+g[o+88>>2]),u,v);else if("EM_IDB_DELETE"===y)!function(e,r,a){var t=Dr;if(t){var i=g[e+112+64>>2];i||=g[e+8>>2],i=i?re(p,i):"";try{var n=t.transaction(["FILES"],"readwrite").objectStore("FILES").delete(i);n.onsuccess=a=>{a=a.target.result,g[e+12>>2]=0,qr(e+16,0),qr(e+24,0),qr(e+32,0),m[e+40>>1]=4,m[e+42>>1]=200,ie("OK",p,e+44,64),r(e,0,a)},n.onerror=r=>{m[e+40>>1]=4,m[e+42>>1]=404,ie("Not Found",p,e+44,64),a(e,0,r)}}catch(r){a(e,0,r)}}else a(e,0,"IndexedDB not available!")}(e,u,v);else if(N){if(l)return 0;$r(e,S?w:u,v,f,E)}else!function(e,r,a){var t=Dr;if(t){var i=g[e+112+64>>2];i||=g[e+8>>2],i=i?re(p,i):"";try{var n=t.transaction(["FILES"],"readonly").objectStore("FILES").get(i);n.onsuccess=t=>{if(t.target.result){var i=(t=t.target.result).byteLength||t.length,n=sa(i);p.set(new Uint8Array(t),n),g[e+12>>2]=n,qr(e+16,i),qr(e+24,0),qr(e+32,i),m[e+40>>1]=4,m[e+42>>1]=200,ie("OK",p,e+44,64),r(e,0,t)}else m[e+40>>1]=4,m[e+42>>1]=404,ie("Not Found",p,e+44,64),a(e,0,"no data")},n.onerror=r=>{m[e+40>>1]=4,m[e+42>>1]=404,ie("Not Found",p,e+44,64),a(e,0,r)}}catch(r){a(e,0,r)}}else a(e,0,"IndexedDB not available!")}(e,u,l?v:S?e=>{$r(e,w,v,f,E)}:b);return e},Tb:(e,r)=>{var a=0;return Yr().forEach(((t,i)=>{var n=r+a;for(i=g[e+4*i>>2]=n,n=0;n<t.length;++n)v[i++>>0]=t.charCodeAt(n);v[i>>0]=0,a+=t.length+1})),0},Ub:(e,r)=>{var a=Yr();g[e>>2]=a.length;var t=0;return a.forEach((e=>t+=e.length+1)),g[r>>2]=t,0},cc:e=>{f=e,_r(e)},Z:function(e){try{var r=xe(e);if(null===r.oh)throw new we(8);r.qh&&(r.qh=null);try{r.ah.close&&r.ah.close(r)}catch(e){throw e}finally{Ee[r.oh]=null}return r.oh=null,0}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return e.gh}},Ka:function(e,r,a,t){try{e:{var i=xe(e);e=r;for(var n,o=r=0;o<a;o++){var _=g[e>>2],c=g[e+4>>2];e+=8;var s=i,h=n,l=v;if(0>c||0>h)throw new we(28);if(null===s.oh)throw new we(8);if(1==(2097155&s.flags))throw new we(8);if(Pe(s.node.mode))throw new we(31);if(!s.ah.read)throw new we(28);var d=void 0!==h;if(d){if(!s.seekable)throw new we(70)}else h=s.position;var u=s.ah.read(s,l,_,c,h);d||(s.position+=u);var f=u;if(0>f){var p=-1;break e}if(r+=f,f<c)break;void 0!==n&&(n+=f)}p=r}return g[t>>2]=p,0}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return e.gh}},mb:function(e,r,a,t,i){r=a+2097152>>>0<4194305-!!r?(r>>>0)+4294967296*a:NaN;try{if(isNaN(r))return 61;var n=xe(e);return We(n,r,t),Z=[n.position>>>0,(j=n.position,1<=+Math.abs(j)?0<j?+Math.floor(j/4294967296)>>>0:~~+Math.ceil((j-+(~~j>>>0))/4294967296)>>>0:0)],b[i>>2]=Z[0],b[i+4>>2]=Z[1],n.qh&&0===r&&0===t&&(n.qh=null),0}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return e.gh}},oa:function(e,r,a,t){try{e:{var i=xe(e);e=r;for(var n,o=r=0;o<a;o++){var _=g[e>>2],c=g[e+4>>2];e+=8;var s=i,h=_,l=c,d=n,u=v;if(0>l||0>d)throw new we(28);if(null===s.oh)throw new we(8);if(0==(2097155&s.flags))throw new we(8);if(Pe(s.node.mode))throw new we(31);if(!s.ah.write)throw new we(28);s.seekable&&1024&s.flags&&We(s,0,2);var f=void 0!==d;if(f){if(!s.seekable)throw new we(70)}else d=s.position;var p=s.ah.write(s,u,h,l,d,void 0);f||(s.position+=p);var E=p;if(0>E){var m=-1;break e}r+=E,void 0!==n&&(n+=E)}m=r}return g[t>>2]=m,0}catch(e){if(void 0===Xe||"ErrnoError"!==e.name)throw e;return e.gh}},Ha:(e,r)=>{na.bindTexture(e,Xr[r])},Ia:(e,r)=>{for(var a=0;a<e;a++){var t=na.createTexture(),i=t&&Qr(Xr);t?(t.name=i,Xr[i]=t):Wr||=1282,b[r+4*a>>2]=i}},la:(e,r,a,t,i,n,o,_,c)=>{var s=na,h=s.texImage2D;if(c){var l=_-5120;l=1==l?p:4==l?b:6==l?w:5==l||28922==l?g:m;var d=31-Math.clz32(l.BYTES_PER_ELEMENT);c=l.subarray(c>>d,c+i*(t*({5:3,6:4,8:2,29502:3,29504:4}[o-6402]||1)*(1<<d)+4-1&-4)>>d)}else c=null;h.call(s,e,r,a,t,i,n,o,_,c)},ma:function(e,r,a){na.texParameteri(e,r,a)},w:function(e){var r=ua();try{return Or(e)()}catch(e){if(fa(r),e!==e+0)throw e;la(1,0)}},fa:function(e,r){var a=ua();try{return Or(e)(r)}catch(e){if(fa(a),e!==e+0)throw e;la(1,0)}},bc:function(e,r,a){var t=ua();try{return Or(e)(r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},Aa:function(e,r,a){var t=ua();try{return Or(e)(r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},P:function(e,r,a,t){var i=ua();try{return Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},Ya:function(e,r,a,t,i){var n=ua();try{return Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},da:function(e,r,a,t,i,n,o,_){var c=ua();try{return Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},yb:function(e,r,a,t,i){var n=ua();try{return Za(e,r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},nb:function(e,r,a,t,i){var n=ua();try{return Ta(e,r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},Y:function(e,r){var a=ua();try{return Or(e)(r)}catch(e){if(fa(a),e!==e+0)throw e;la(1,0)}},$:function(e,r,a){var t=ua();try{return Or(e)(r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},Ca:function(e,r,a,t){var i=ua();try{return Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},Sa:function(e,r,a,t,i,n){var o=ua();try{return Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},s:function(e){var r=ua();try{return Or(e)()}catch(e){if(fa(r),e!==e+0)throw e;la(1,0)}},La:function(e,r,a,t,i){var n=ua();try{return Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},ta:function(e,r,a,t,i,n){var o=ua();try{return Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},b:function(e,r){var a=ua();try{return Or(e)(r)}catch(e){if(fa(a),e!==e+0)throw e;la(1,0)}},r:function(e,r,a){var t=ua();try{return Or(e)(r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},ea:function(e,r,a,t){var i=ua();try{return Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},ga:function(e,r,a,t,i){var n=ua();try{return Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},Ra:function(e,r,a,t,i){var n=ua();try{return Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},Pa:function(e,r,a,t){var i=ua();try{return Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},bb:function(e,r,a){var t=ua();try{return Or(e)(r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},wa:function(e,r,a,t,i){var n=ua();try{return Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},ua:function(e,r,a,t,i,n){var o=ua();try{return Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},f:function(e,r,a){var t=ua();try{return Or(e)(r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},T:function(e,r,a,t){var i=ua();try{return Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},Za:function(e,r,a,t,i){var n=ua();try{return Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},ec:function(e,r,a,t,i,n,o,_){var c=ua();try{return Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},sa:function(e,r,a,t,i,n,o,_,c,s,h,l,d){var u=ua();try{return Or(e)(r,a,t,i,n,o,_,c,s,h,l,d)}catch(e){if(fa(u),e!==e+0)throw e;la(1,0)}},xa:function(e,r,a,t,i,n){var o=ua();try{return Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},c:function(e,r,a,t){var i=ua();try{return Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},Oa:function(e,r,a,t,i,n){var o=ua();try{return Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},l:function(e,r,a,t,i){var n=ua();try{return Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},Na:function(e,r,a,t,i,n){var o=ua();try{return Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},u:function(e,r,a,t,i,n){var o=ua();try{return Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},B:function(e,r,a,t,i,n,o){var _=ua();try{return Or(e)(r,a,t,i,n,o)}catch(e){if(fa(_),e!==e+0)throw e;la(1,0)}},x:function(e,r,a,t,i,n,o,_){var c=ua();try{return Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},L:function(e,r,a,t,i,n,o,_,c){var s=ua();try{return Or(e)(r,a,t,i,n,o,_,c)}catch(e){if(fa(s),e!==e+0)throw e;la(1,0)}},_:function(e,r,a,t,i,n,o,_,c,s){var h=ua();try{return Or(e)(r,a,t,i,n,o,_,c,s)}catch(e){if(fa(h),e!==e+0)throw e;la(1,0)}},K:function(e,r,a,t,i,n,o,_,c,s,h){var l=ua();try{return Or(e)(r,a,t,i,n,o,_,c,s,h)}catch(e){if(fa(l),e!==e+0)throw e;la(1,0)}},aa:function(e,r,a,t,i,n,o,_,c,s,h,l){var d=ua();try{return Or(e)(r,a,t,i,n,o,_,c,s,h,l)}catch(e){if(fa(d),e!==e+0)throw e;la(1,0)}},jb:function(e,r,a,t,i,n,o){var _=ua();try{return Oa(e,r,a,t,i,n,o)}catch(e){if(fa(_),e!==e+0)throw e;la(1,0)}},pb:function(e,r,a,t,i,n){var o=ua();try{return Fa(e,r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},wb:function(e,r,a,t,i,n,o,_,c){var s=ua();try{return Ra(e,r,a,t,i,n,o,_,c)}catch(e){if(fa(s),e!==e+0)throw e;la(1,0)}},Ab:function(e,r,a,t,i,n,o,_,c,s,h){var l=ua();try{return La(e,r,a,t,i,n,o,_,c,s,h)}catch(e){if(fa(l),e!==e+0)throw e;la(1,0)}},Fb:function(e,r,a,t){var i=ua();try{return Na(e,r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},Cb:function(e,r,a,t,i){var n=ua();try{return za(e,r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},xb:function(e,r,a,t,i,n,o,_,c,s,h,l,d,u,f){var v=ua();try{return Pa(e,r,a,t,i,n,o,_,c,s,h,l,d,u,f)}catch(e){if(fa(v),e!==e+0)throw e;la(1,0)}},qb:function(e,r,a,t){var i=ua();try{return Aa(e,r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},Gb:function(e){var r=ua();try{return ga(e)}catch(e){if(fa(r),e!==e+0)throw e;la(1,0)}},Bb:function(e,r){var a=ua();try{return ka(e,r)}catch(e){if(fa(a),e!==e+0)throw e;la(1,0)}},ub:function(e,r,a){var t=ua();try{return xa(e,r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},vb:function(e,r,a,t){var i=ua();try{return Ka(e,r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},ib:function(e,r,a,t,i){var n=ua();try{return $a(e,r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},ob:function(e,r,a){var t=ua();try{return Da(e,r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},m:function(e){var r=ua();try{Or(e)()}catch(e){if(fa(r),e!==e+0)throw e;la(1,0)}},ab:function(e,r,a){var t=ua();try{Or(e)(r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},cb:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},g:function(e,r){var a=ua();try{Or(e)(r)}catch(e){if(fa(a),e!==e+0)throw e;la(1,0)}},Qa:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},ca:function(e,r,a,t,i,n,o){var _=ua();try{Or(e)(r,a,t,i,n,o)}catch(e){if(fa(_),e!==e+0)throw e;la(1,0)}},ra:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},Ga:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},dc:function(e,r,a,t){var i=ua();try{Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},S:function(e,r,a,t,i){var n=ua();try{Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},Ma:function(e,r,a,t,i){var n=ua();try{Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},Ua:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},e:function(e,r,a){var t=ua();try{Or(e)(r,a)}catch(e){if(fa(t),e!==e+0)throw e;la(1,0)}},t:function(e,r,a,t){var i=ua();try{Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},R:function(e,r,a,t,i){var n=ua();try{Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},M:function(e,r,a,t){var i=ua();try{Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},X:function(e,r,a,t,i){var n=ua();try{Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},va:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},Va:function(e,r,a,t,i,n,o,_,c){var s=ua();try{Or(e)(r,a,t,i,n,o,_,c)}catch(e){if(fa(s),e!==e+0)throw e;la(1,0)}},N:function(e,r,a,t,i){var n=ua();try{Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},h:function(e,r,a,t){var i=ua();try{Or(e)(r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},ha:function(e,r,a,t,i){var n=ua();try{Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},qa:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},_a:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},Xa:function(e,r,a,t,i,n,o,_){var c=ua();try{Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},Da:function(e,r,a,t,i,n,o,_){var c=ua();try{Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},V:function(e,r,a,t,i,n,o,_,c,s,h,l){var d=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h,l)}catch(e){if(fa(d),e!==e+0)throw e;la(1,0)}},db:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},ja:function(e,r,a,t,i,n,o){var _=ua();try{Or(e)(r,a,t,i,n,o)}catch(e){if(fa(_),e!==e+0)throw e;la(1,0)}},k:function(e,r,a,t,i){var n=ua();try{Or(e)(r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},ya:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},eb:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},Ta:function(e,r,a,t,i,n,o,_,c,s,h){var l=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h)}catch(e){if(fa(l),e!==e+0)throw e;la(1,0)}},ka:function(e,r,a,t,i,n,o){var _=ua();try{Or(e)(r,a,t,i,n,o)}catch(e){if(fa(_),e!==e+0)throw e;la(1,0)}},Wa:function(e,r,a,t,i,n,o,_){var c=ua();try{Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},j:function(e,r,a,t,i,n){var o=ua();try{Or(e)(r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},U:function(e,r,a,t,i,n,o){var _=ua();try{Or(e)(r,a,t,i,n,o)}catch(e){if(fa(_),e!==e+0)throw e;la(1,0)}},$a:function(e,r,a,t,i,n,o,_){var c=ua();try{Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},Ba:function(e,r,a,t,i,n,o,_){var c=ua();try{Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},o:function(e,r,a,t,i,n,o){var _=ua();try{Or(e)(r,a,t,i,n,o)}catch(e){if(fa(_),e!==e+0)throw e;la(1,0)}},z:function(e,r,a,t,i,n,o,_){var c=ua();try{Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},ia:function(e,r,a,t,i,n,o,_){var c=ua();try{Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},p:function(e,r,a,t,i,n,o,_){var c=ua();try{Or(e)(r,a,t,i,n,o,_)}catch(e){if(fa(c),e!==e+0)throw e;la(1,0)}},v:function(e,r,a,t,i,n,o,_,c,s,h,l,d){var u=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h,l,d)}catch(e){if(fa(u),e!==e+0)throw e;la(1,0)}},O:function(e,r,a,t,i,n,o,_,c,s){var h=ua();try{Or(e)(r,a,t,i,n,o,_,c,s)}catch(e){if(fa(h),e!==e+0)throw e;la(1,0)}},W:function(e,r,a,t,i,n,o,_,c,s,h,l,d){var u=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h,l,d)}catch(e){if(fa(u),e!==e+0)throw e;la(1,0)}},C:function(e,r,a,t,i,n,o,_,c){var s=ua();try{Or(e)(r,a,t,i,n,o,_,c)}catch(e){if(fa(s),e!==e+0)throw e;la(1,0)}},E:function(e,r,a,t,i,n,o,_,c,s){var h=ua();try{Or(e)(r,a,t,i,n,o,_,c,s)}catch(e){if(fa(h),e!==e+0)throw e;la(1,0)}},H:function(e,r,a,t,i,n,o,_,c,s,h){var l=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h)}catch(e){if(fa(l),e!==e+0)throw e;la(1,0)}},za:function(e,r,a,t,i,n,o,_,c,s,h,l){var d=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h,l)}catch(e){if(fa(d),e!==e+0)throw e;la(1,0)}},I:function(e,r,a,t,i,n,o,_,c,s,h,l,d,u){var f=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h,l,d,u)}catch(e){if(fa(f),e!==e+0)throw e;la(1,0)}},D:function(e,r,a,t,i,n,o,_,c,s,h,l){var d=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h,l)}catch(e){if(fa(d),e!==e+0)throw e;la(1,0)}},J:function(e,r,a,t,i,n,o,_,c,s,h,l,d){var u=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h,l,d)}catch(e){if(fa(u),e!==e+0)throw e;la(1,0)}},pa:function(e,r,a,t,i,n,o,_,c,s,h,l,d,u,f){var v=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h,l,d,u,f)}catch(e){if(fa(v),e!==e+0)throw e;la(1,0)}},ba:function(e,r,a,t,i,n,o,_,c,s,h,l,d,u,f,v){var p=ua();try{Or(e)(r,a,t,i,n,o,_,c,s,h,l,d,u,f,v)}catch(e){if(fa(p),e!==e+0)throw e;la(1,0)}},Hb:function(e,r,a,t,i){var n=ua();try{wa(e,r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},zb:function(e,r,a,t,i,n){var o=ua();try{ja(e,r,a,t,i,n)}catch(e){if(fa(o),e!==e+0)throw e;la(1,0)}},Db:function(e,r,a,t,i,n,o){var _=ua();try{ya(e,r,a,t,i,n,o)}catch(e){if(fa(_),e!==e+0)throw e;la(1,0)}},Eb:function(e,r,a,t){var i=ua();try{Sa(e,r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},tb:function(e,r,a,t,i){var n=ua();try{Ia(e,r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},rb:function(e,r,a,t){var i=ua();try{Ca(e,r,a,t)}catch(e){if(fa(i),e!==e+0)throw e;la(1,0)}},sb:function(e,r,a,t,i){var n=ua();try{Ma(e,r,a,t,i)}catch(e){if(fa(n),e!==e+0)throw e;la(1,0)}},A:e=>e,Jb:(e,r,a,t)=>((e,r,a,t)=>{function i(e,r,a){for(e="number"==typeof e?e.toString():e||"";e.length<r;)e=a[0]+e;return e}function n(e,r){return i(e,r,"0")}function o(e,r){function a(e){return 0>e?-1:0<e?1:0}var t;return 0===(t=a(e.getFullYear()-r.getFullYear()))&&0===(t=a(e.getMonth()-r.getMonth()))&&(t=a(e.getDate()-r.getDate())),t}function _(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 c(e){var r=e.sh;for(e=new Date(new Date(e.th+1900,0,1).getTime());0<r;){var a=e.getMonth(),t=(tr(e.getFullYear())?aa:ta)[a];if(!(r>t-e.getDate())){e.setDate(e.getDate()+r);break}r-=t-e.getDate()+1,e.setDate(1),11>a?e.setMonth(a+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return a=new Date(e.getFullYear()+1,0,4),r=_(new Date(e.getFullYear(),0,4)),a=_(a),0>=o(r,e)?0>=o(a,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var s=g[t+40>>2];for(var h in t={pi:b[t>>2],oi:b[t+4>>2],Hh:b[t+8>>2],Oh:b[t+12>>2],Ih:b[t+16>>2],th:b[t+20>>2],lh:b[t+24>>2],sh:b[t+28>>2],Li:b[t+32>>2],ni:b[t+36>>2],ri:s&&s?re(p,s):""},a=a?re(p,a):"",s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})a=a.replace(new RegExp(h,"g"),s[h]);var l="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),d="January February March April May June July August September October November December".split(" ");for(h in s={"%a":e=>l[e.lh].substring(0,3),"%A":e=>l[e.lh],"%b":e=>d[e.Ih].substring(0,3),"%B":e=>d[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=>c(e).toString().substring(2),"%G":c,"%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 r=0,a=0;a<=e.Ih-1;r+=(tr(e.th+1900)?aa:ta)[a++]);return n(e.Oh+r,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 r=Math.floor((e.sh+7-(e.lh+6)%7)/7);if(2>=(e.lh+371-e.sh-2)%7&&r++,r)53==r&&(4==(a=(e.lh+371-e.sh)%7)||3==a&&tr(e.th)||(r=1));else{r=52;var a=(e.lh+7-e.sh-1)%7;(4==a||5==a&&tr(e.th%400-1))&&r++}return n(r,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 r=0<=(e=e.ni);return e=Math.abs(e)/60,(r?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":e=>e.ri,"%%":()=>"%"},a=a.replace(/%%/g,"\0\0"),s)a.includes(h)&&(a=a.replace(new RegExp(h,"g"),s[h](t)));return(h=ne(a=a.replace(/\0\0/g,"%"),!1)).length>r?0:(v.set(h,e),h.length-1)})(e,r,a,t)},_a=function(){function e(e){return _a=e.exports,u=_a.fc,S(),Ar=_a.kc,I.unshift(_a.gc),C(),_a}var r={a:oa};if(M(),i.instantiateWasm)try{return i.instantiateWasm(r,e)}catch(e){d(`Module.instantiateWasm callback failed with error: ${e}`),a(e)}return r=function(e){if(P==P&&h)var r=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)';r=n(P)}return r=new WebAssembly.Module(r),[new WebAssembly.Instance(r,e),r]}(r),e(r[0])}();i._zappar_has_initialized=_a.hc,i._zappar_invert=_a.ic,i._zappar_loaded=_a.jc,i._zappar_pipeline_create=_a.lc,i._zappar_pipeline_destroy=_a.mc,i._zappar_pipeline_camera_frame_submit=_a.nc,i._zappar_pipeline_camera_frame_submit_raw_pointer=_a.oc,i._zappar_pipeline_frame_update=_a.pc,i._zappar_pipeline_camera_frame_user_data=_a.qc,i._zappar_pipeline_camera_model=_a.rc,i._zappar_pipeline_frame_number=_a.sc,i._zappar_pipeline_camera_frame_data_raw_size=_a.tc,i._zappar_pipeline_camera_frame_data_raw_width=_a.uc,i._zappar_pipeline_camera_frame_data_raw_height=_a.vc,i._zappar_pipeline_camera_frame_data_raw=_a.wc,i._zappar_pipeline_motion_accelerometer_submit=_a.xc,i._zappar_pipeline_motion_accelerometer_with_gravity_submit_int=_a.yc,i._zappar_pipeline_motion_accelerometer_without_gravity_submit_int=_a.zc,i._zappar_pipeline_motion_rotation_rate_submit_int=_a.Ac,i._zappar_pipeline_motion_attitude_submit_int=_a.Bc,i._zappar_pipeline_motion_rotation_rate_submit=_a.Cc,i._zappar_pipeline_motion_attitude_submit=_a.Dc,i._zappar_pipeline_motion_attitude_matrix_submit=_a.Ec,i._zappar_pipeline_camera_frame_user_facing=_a.Fc,i._zappar_pipeline_camera_frame_texture_matrix=_a.Gc,i._zappar_pipeline_camera_pose_with_attitude=_a.Hc,i._zappar_pipeline_camera_pose_with_origin=_a.Ic,i._zappar_pipeline_camera_frame_camera_attitude=_a.Jc,i._zappar_pipeline_camera_frame_device_attitude=_a.Kc,i._zappar_pipeline_camera_frame_texture_gl=_a.Lc,i._zappar_pipeline_camera_frame_upload_gl=_a.Mc,i._zappar_pipeline_sequence_record_start=_a.Nc,i._zappar_pipeline_sequence_record_stop=_a.Oc,i._zappar_pipeline_sequence_record_clear=_a.Pc,i._zappar_pipeline_sequence_record_device_attitude_matrices_set=_a.Qc,i._zappar_pipeline_sequence_record_data_size=_a.Rc,i._zappar_pipeline_sequence_record_data=_a.Sc,i._zappar_pipeline_process_gl=_a.Tc,i._zappar_pipeline_camera_pose_default=_a.Uc,i._zappar_instant_world_tracker_create=_a.Vc,i._zappar_instant_world_tracker_destroy=_a.Wc,i._zappar_instant_world_tracker_anchor_pose_set_from_camera_offset_raw=_a.Xc,i._zappar_instant_world_tracker_anchor_pose_raw=_a.Yc,i._zappar_instant_world_tracker_enabled_set=_a.Zc,i._zappar_instant_world_tracker_enabled=_a._c,i._zappar_image_tracker_create=_a.$c,i._zappar_image_tracker_destroy=_a.ad,i._zappar_image_tracker_target_load_from_memory=_a.bd,i.__Z42zappar_image_tracker_target_load_from_fileP23zappar_image_tracker_tiPKc=_a.cd;var ca=i._free=_a.dd;i._zappar_image_tracker_anchor_count=_a.ed,i._zappar_image_tracker_anchor_id=_a.fd,i._zappar_image_tracker_anchor_pose_raw=_a.gd,i._zappar_image_tracker_enabled_set=_a.hd,i._zappar_image_tracker_enabled=_a.id,i._zappar_image_tracker_target_loaded_version=_a.jd,i.__Z33zappar_image_tracker_target_countP23zappar_image_tracker_ti=_a.kd,i.__Z46zappar_image_tracker_target_preview_compressedP23zappar_image_tracker_tii=_a.ld,i.__Z51zappar_image_tracker_target_preview_compressed_sizeP23zappar_image_tracker_tii=_a.md,i.__Z55zappar_image_tracker_target_preview_compressed_mimetypeP23zappar_image_tracker_tii=_a.nd,i.__Z40zappar_image_tracker_target_preview_rgbaP23zappar_image_tracker_tii=_a.od,i.__Z45zappar_image_tracker_target_preview_rgba_sizeP23zappar_image_tracker_tii=_a.pd,i.__Z46zappar_image_tracker_target_preview_rgba_widthP23zappar_image_tracker_tii=_a.qd,i.__Z47zappar_image_tracker_target_preview_rgba_heightP23zappar_image_tracker_tii=_a.rd,i.__Z38zappar_image_tracker_target_radius_topP23zappar_image_tracker_tii=_a.sd,i.__Z41zappar_image_tracker_target_radius_bottomP23zappar_image_tracker_tii=_a.td,i.__Z39zappar_image_tracker_target_side_lengthP23zappar_image_tracker_tii=_a.ud,i.__Z49zappar_image_tracker_target_physical_scale_factorP23zappar_image_tracker_tii=_a.vd,i.__Z49zappar_image_tracker_target_preview_mesh_verticesP23zappar_image_tracker_tii=_a.wd,i.__Z48zappar_image_tracker_target_preview_mesh_normalsP23zappar_image_tracker_tii=_a.xd,i.__Z44zappar_image_tracker_target_preview_mesh_uvsP23zappar_image_tracker_tii=_a.yd,i.__Z48zappar_image_tracker_target_preview_mesh_indicesP23zappar_image_tracker_tii=_a.zd,i.__Z54zappar_image_tracker_target_preview_mesh_vertices_sizeP23zappar_image_tracker_tii=_a.Ad,i.__Z53zappar_image_tracker_target_preview_mesh_normals_sizeP23zappar_image_tracker_tii=_a.Bd,i.__Z49zappar_image_tracker_target_preview_mesh_uvs_sizeP23zappar_image_tracker_tii=_a.Cd,i.__Z53zappar_image_tracker_target_preview_mesh_indices_sizeP23zappar_image_tracker_tii=_a.Dd,i.__Z32zappar_image_tracker_target_typeP23zappar_image_tracker_tii=_a.Ed,i._zappar_face_tracker_create=_a.Fd,i._zappar_face_tracker_destroy=_a.Gd,i._zappar_face_tracker_model_load_from_memory=_a.Hd,i._zappar_face_tracker_anchor_count=_a.Id,i._zappar_face_tracker_anchor_id=_a.Jd,i._zappar_face_tracker_anchor_pose_raw=_a.Kd,i._zappar_face_tracker_anchor_identity_coefficients=_a.Ld,i._zappar_face_tracker_anchor_expression_coefficients=_a.Md,i._zappar_face_tracker_enabled_set=_a.Nd,i._zappar_face_tracker_enabled=_a.Od,i._zappar_face_tracker_max_faces_set=_a.Pd,i._zappar_face_tracker_max_faces=_a.Qd,i._zappar_face_tracker_model_loaded_version=_a.Rd,i._zappar_face_landmark_create=_a.Sd,i._zappar_face_landmark_destroy=_a.Td,i.__Z27zappar_face_landmark_updateP23zappar_face_landmark_tiPKfS2_i=_a.Ud,i._zappar_face_landmark_anchor_pose=_a.Vd,i._zappar_barcode_finder_create=_a.Wd,i._zappar_barcode_finder_destroy=_a.Xd,i._zappar_barcode_finder_found_number=_a.Yd,i._zappar_barcode_finder_found_text=_a.Zd,i._zappar_barcode_finder_enabled_set=_a._d,i._zappar_barcode_finder_enabled=_a.$d,i._zappar_barcode_finder_found_format=_a.ae,i._zappar_barcode_finder_formats=_a.be,i._zappar_barcode_finder_formats_set=_a.ce;var sa=i._malloc=_a.de;i._zappar_face_mesh_create=_a.ee,i._zappar_face_mesh_destroy=_a.fe,i.__Z33zappar_face_mesh_load_from_memoryP19zappar_face_mesh_tiPKciiiii=_a.ge,i.__Z29zappar_face_mesh_indices_sizeP19zappar_face_mesh_ti=_a.he,i.__Z25zappar_face_mesh_uvs_sizeP19zappar_face_mesh_ti=_a.ie,i.__Z30zappar_face_mesh_vertices_sizeP19zappar_face_mesh_ti=_a.je,i.__Z31zappar_face_mesh_loaded_versionP19zappar_face_mesh_ti=_a.ke,i.__Z25zappar_face_mesh_verticesP19zappar_face_mesh_ti=_a.le,i.__Z20zappar_face_mesh_uvsP19zappar_face_mesh_ti=_a.me,i.__Z24zappar_face_mesh_indicesP19zappar_face_mesh_ti=_a.ne,i.__Z23zappar_face_mesh_updateP19zappar_face_mesh_tiPKfS2_i=_a.oe,i.__Z29zappar_face_mesh_normals_sizeP19zappar_face_mesh_ti=_a.pe,i.__Z24zappar_face_mesh_normalsP19zappar_face_mesh_ti=_a.qe,i._zappar_camera_source_create=_a.re,i._zappar_camera_source_destroy=_a.se,i._zappar_camera_source_start=_a.te,i._zappar_camera_source_pause=_a.ue,i._zappar_camera_default_device_id=_a.ve,i._zappar_sequence_source_create=_a.we,i.__Z28zappar_sequence_source_startP25zappar_sequence_source_ti=_a.xe,i.__Z39zappar_sequence_source_load_from_memoryP25zappar_sequence_source_tiPKci=_a.ye,i.__Z28zappar_sequence_source_pauseP25zappar_sequence_source_ti=_a.ze,i._zappar_sequence_source_destroy=_a.Ae,i._zappar_sequence_source_max_playback_fps_set=_a.Be,i._zappar_log_level_set=_a.Ce,i._zappar_log_level=_a.De,i.__Z23zappar_log_redirect_setPFv18zappar_log_level_tPKcE=_a.Ee,i._zappar_world_tracker_create=_a.Fe,i._zappar_world_tracker_destroy=_a.Ge,i._zappar_world_tracker_world_anchor_valid=_a.He,i._zappar_world_tracker_plane_count=_a.Ie,i._zappar_world_tracker_plane_pose_raw=_a.Je,i._zappar_world_tracker_world_anchor_pose_raw=_a.Ke,i._zappar_world_tracker_ground_anchor_valid=_a.Le,i._zappar_world_tracker_ground_anchor_pose_raw=_a.Me,i._zappar_world_tracker_reset=_a.Ne,i._zappar_world_tracker_enabled_set=_a.Oe,i._zappar_world_tracker_quality=_a.Pe,i._zappar_world_tracker_enabled=_a.Qe,i._worker_message_send_count=_a.Re,i._worker_message_send_clear=_a.Se,i._worker_message_send_data_size=_a.Te,i._worker_message_send_reference=_a.Ue,i._worker_message_send_data=_a.Ve,i._worker_message_receive=_a.We,i._ceres_worker=_a.Xe,i._zappar_analytics_project_id_set=_a.Ye,i.__ZN5boost13serialization16singleton_module8get_lockEv=_a.Ze,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem19InitializationInputEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a._e,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.$e,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi5FrameEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.af,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE5FrameE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.bf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.cf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.df,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.ef,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam5Pose3EE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.ff,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.gf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.hf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam7imuBias12ConstantBiasEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.jf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26bitsetILm2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.kf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.lf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE3ImuE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.mf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.nf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__24pairIKi12WorldFeatureEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.of,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveE12WorldFeatureE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.pf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.qf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.rf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.sf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.tf,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam7Cal3_S2EE15load_object_ptrERNS1_14basic_iarchiveEPvj=_a.uf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__210shared_ptrIN5gtsam28PreintegrationCombinedParamsEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.vf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam28PreintegrationCombinedParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.wf,i.__ZN5boost13serialization18void_cast_registerIN5gtsam28PreintegrationCombinedParamsENS2_20PreintegrationParamsEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=_a.xf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam20PreintegrationParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.yf,i.__ZN5boost13serialization18void_cast_registerIN5gtsam20PreintegrationParamsENS2_27PreintegratedRotationParamsEEERKNS0_16void_cast_detail11void_casterEPKT_PKT0_=_a.zf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5gtsam27PreintegratedRotationParamsEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.Af,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__28optionalIN5gtsam5Pose3EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.Bf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveENSt3__28optionalIN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.Cf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi3ELi3ELi0ELi3ELi3EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.Df,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.Ef,i.__ZNK5boost7archive6detail19pointer_iserializerINS0_15binary_iarchiveEN5gtsam28PreintegrationCombinedParamsEE15load_object_ptrERNS1_14basic_iarchiveEPvj=_a.Ff,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem10ParametersEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.Gf,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN2cv12TermCriteriaEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.Hf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem20InitializationResultEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.If,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi5FrameNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Jf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi5FrameEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Kf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE5FrameE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Lf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEENS4_4lessIiEENS4_9allocatorINS4_4pairIKiS8_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Mf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKiN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Nf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi2ELi1ELi0ELi2ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Of,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam5Pose3EE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Pf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi6ELi1ELi0ELi6ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Qf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Rf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam7imuBias12ConstantBiasEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Sf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26bitsetILm2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Tf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__26vectorI3ImuNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Uf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE3ImuE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Vf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23mapIi12WorldFeatureNS4_4lessIiEENS4_9allocatorINS4_4pairIKiS6_EEEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Wf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__24pairIKi12WorldFeatureEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Xf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveE12WorldFeatureE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Yf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__23setIiNS4_4lessIiEENS4_9allocatorIiEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.Zf,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem19InitializationInputEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a._f,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam7Cal3_S2EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.$f,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.ag,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi5ELi1ELi0ELi5ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.bg,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam7Cal3_S2EE15save_object_ptrERNS1_14basic_oarchiveEPKv=_a.cg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__210shared_ptrIN5gtsam28PreintegrationCombinedParamsEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.dg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam28PreintegrationCombinedParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.eg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam20PreintegrationParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.fg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5gtsam27PreintegratedRotationParamsEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.gg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__28optionalIN5gtsam5Pose3EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.hg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveENSt3__28optionalIN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.ig,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi3ELi3ELi0ELi3ELi3EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.jg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.kg,i.__ZNK5boost7archive6detail19pointer_oserializerINS0_15binary_oarchiveEN5gtsam28PreintegrationCombinedParamsEE15save_object_ptrERNS1_14basic_oarchiveEPKv=_a.lg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN10SLAMSystem10ParametersEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.mg,i.__ZNK5boost7archive6detail11oserializerINS0_15binary_oarchiveEN2cv12TermCriteriaEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.ng,i.__ZNK5boost7archive6detail11iserializerINS0_15binary_iarchiveEN10SLAMSystem20InitializationResultEE16load_object_dataERNS1_14basic_iarchiveEPvj=_a.og,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE9RecordingE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.pg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveENSt3__26vectorI11SensorEventNS4_9allocatorIS6_EEEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.qg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveE11SensorEventE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.rg,i.__ZNK5boost7archive6detail11oserializerINS0_12xml_oarchiveEN5Eigen6MatrixIdLin1ELi1ELi0ELin1ELi1EEEE16save_object_dataERNS1_14basic_oarchiveEPKv=_a.sg;var ha,la=_a.tg,da=_a.ug,ua=_a.vg,fa=_a.wg,va=_a.xg,pa=_a.yg,Ea=_a.zg,ma=_a.Ag,ba=_a.Bg,ga=i.dynCall_j=_a.Cg,wa=i.dynCall_viij=_a.Dg,ya=i.dynCall_viijii=_a.Eg,Na=i.dynCall_iij=_a.Fg,Sa=i.dynCall_vij=_a.Gg,za=i.dynCall_iiji=_a.Hg,Ia=i.dynCall_viji=_a.Ig,ka=i.dynCall_ji=_a.Jg,La=i.dynCall_iiiijjji=_a.Kg,Pa=i.dynCall_iijjjjjji=_a.Lg,ja=i.dynCall_viiji=_a.Mg,Za=i.dynCall_diji=_a.Ng,Ra=i.dynCall_iiiijji=_a.Og,Ka=i.dynCall_jiii=_a.Pg,xa=i.dynCall_jii=_a.Qg,Ma=i.dynCall_vjii=_a.Rg,Ca=i.dynCall_vji=_a.Sg,Aa=i.dynCall_iji=_a.Tg,Fa=i.dynCall_iiiij=_a.Ug,Da=i.dynCall_jj=_a.Vg,Ta=i.dynCall_djj=_a.Wg,Oa=i.dynCall_iiiiij=_a.Xg,$a=i.dynCall_jiiii=_a.Yg;function qa(){function e(){if(!ha&&(ha=!0,i.calledRun=!0,!N)){if(i.noFSInit||Ce||(Ce=!0,i.stdin=i.stdin,i.stdout=i.stdout,i.stderr=i.stderr,i.stdin?Ge("stdin",i.stdin):qe("/dev/tty","/dev/stdin"),i.stdout?Ge("stdout",null,i.stdout):qe("/dev/tty","/dev/stdout"),i.stderr?Ge("stderr",null,i.stderr):qe("/dev/tty1","/dev/stderr"),Be("/dev/stdin",0),Be("/dev/stdout",1),Be("/dev/stderr",1)),ge=!1,T(I),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();k.unshift(e)}T(k)}}if(!(0<R)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)L();T(z),0<R||(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,r,a,t)=>{var n=!a||a.every((e=>"number"===e||"boolean"===e));return"string"!==r&&n&&!t?i["_"+e]:function(){return((e,r,a,t)=>{var n={string:e=>{var r=0;if(null!=e&&0!==e){r=te(e)+1;var a=va(r);ie(e,p,a,r),r=a}return r},array:e=>{var r=va(e.length);return v.set(e,r),r}};e=i["_"+e];var o,_=[],c=0;if(t)for(var s=0;s<t.length;s++){var h=n[a[s]];h?(0===c&&(c=ua()),_[s]=h(t[s])):_[s]=t[s]}return o=a=e.apply(null,_),0!==c&&fa(c),"string"===r?o?re(p,o):"":"boolean"===r?!!o:o})(e,r,a,arguments)}},i.setValue=function(e,r,a="i8"){switch(a.endsWith("*")&&(a="*"),a){case"i1":case"i8":v[e>>0]=r;break;case"i16":E[e>>1]=r;break;case"i32":b[e>>2]=r;break;case"i64":A("to do setValue(i64) use WASM_BIGINT");case"float":w[e>>2]=r;break;case"double":y[e>>3]=r;break;case"*":g[e>>2]=r;break;default:A(`invalid type for setValue: ${a}`)}},i.getValue=function(e,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":return v[e>>0];case"i16":return E[e>>1];case"i32":return b[e>>2];case"i64":A("to do getValue(i64) use WASM_BIGINT");case"float":return w[e>>2];case"double":return y[e>>3];case"*":return g[e>>2];default:A(`invalid type for getValue: ${r}`)}},i.UTF8ToString=Je,x=function e(){ha||qa(),ha||(x=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return qa(),e})},751:(e,r,a)=>{e.exports=a.p+"36d6b6985808cbeca829.wasm"}}]);
|