arcamera.js 17 KB

1
  1. var a0_0x54df57=a0_0x5d2c;(function(_0x127487,_0x590fd7){var _0x1718be=a0_0x5d2c,_0x5228d3=_0x127487();while(!![]){try{var _0x59b8d6=-parseInt(_0x1718be(0x1c0))/0x1+parseInt(_0x1718be(0x231))/0x2*(parseInt(_0x1718be(0x1ec))/0x3)+parseInt(_0x1718be(0x1b7))/0x4*(-parseInt(_0x1718be(0x1ed))/0x5)+parseInt(_0x1718be(0x1fd))/0x6+-parseInt(_0x1718be(0x236))/0x7+-parseInt(_0x1718be(0x1d6))/0x8*(parseInt(_0x1718be(0x1b3))/0x9)+parseInt(_0x1718be(0x1c9))/0xa;if(_0x59b8d6===_0x590fd7)break;else _0x5228d3['push'](_0x5228d3['shift']());}catch(_0x4a2932){_0x5228d3['push'](_0x5228d3['shift']());}}}(a0_0x451e,0x95006));function a0_0x5d2c(_0x2e6d35,_0x3cbf0d){var _0x39891f=a0_0x451e();return a0_0x5d2c=function(_0xae042d,_0x20efd9){_0xae042d=_0xae042d-0x1ad;var _0x451e1f=_0x39891f[_0xae042d];return _0x451e1f;},a0_0x5d2c(_0x2e6d35,_0x3cbf0d);}var a0_0x20efd9=(function(){var _0x235c07=!![];return function(_0x1c4685,_0x2121a0){var _0x12d401=_0x235c07?function(){if(_0x2121a0){var _0x3b442d=_0x2121a0['apply'](_0x1c4685,arguments);return _0x2121a0=null,_0x3b442d;}}:function(){};return _0x235c07=![],_0x12d401;};}()),a0_0xae042d=a0_0x20efd9(this,function(){var _0x740d8b=a0_0x5d2c;return a0_0xae042d['toString']()['search'](_0x740d8b(0x1ba))['toString']()['constructor'](a0_0xae042d)[_0x740d8b(0x1bc)]('(((.+)+)+)+$');});a0_0xae042d();class ARCamera{#p000;[a0_0x54df57(0x21d)];constructor(_0x239d06,_0x59b943){var _0x42b4c9=a0_0x54df57;this[_0x42b4c9(0x206)]=_0x239d06,this[_0x42b4c9(0x229)]=_0x59b943,this[_0x42b4c9(0x1af)]=this[_0x42b4c9(0x229)][_0x42b4c9(0x224)]('2d'),this[_0x42b4c9(0x1c4)]=![],this[_0x42b4c9(0x1e5)]=0x32,this[_0x42b4c9(0x1ea)]=0x1e,this[_0x42b4c9(0x21d)]=[],this[_0x42b4c9(0x21f)]=0x12c,this['videoCapture']=document[_0x42b4c9(0x221)](_0x42b4c9(0x1ce)),this[_0x42b4c9(0x1bf)]['id']=_0x42b4c9(0x1bf),document[_0x42b4c9(0x1ef)]['appendChild'](this[_0x42b4c9(0x1bf)]),this[_0x42b4c9(0x203)]=this[_0x42b4c9(0x1bf)][_0x42b4c9(0x224)]('2d'),this['videoCapture'][_0x42b4c9(0x234)][_0x42b4c9(0x1f3)]=_0x42b4c9(0x1f2),this[_0x42b4c9(0x1bf)][_0x42b4c9(0x234)][_0x42b4c9(0x217)]=_0x42b4c9(0x1da),this[_0x42b4c9(0x1bf)][_0x42b4c9(0x234)][_0x42b4c9(0x207)]=_0x42b4c9(0x215),this[_0x42b4c9(0x226)](this[_0x42b4c9(0x21f)]),this['usingUnityVideoPlane']=![],this[_0x42b4c9(0x1b1)]=[],this[_0x42b4c9(0x1d3)]=[],this[_0x42b4c9(0x1df)]=window['matchMedia'](_0x42b4c9(0x1bb))[_0x42b4c9(0x1d8)]?'PORTRAIT':_0x42b4c9(0x1d9),window[_0x42b4c9(0x1f5)]('resize',this[_0x42b4c9(0x23a)],!![]);;}[a0_0x54df57(0x1dd)](_0x46acd5){var _0x4c3200=a0_0x54df57;this[_0x4c3200(0x229)][_0x4c3200(0x234)][_0x4c3200(0x20e)]=_0x46acd5?_0x4c3200(0x1be):'',window['unityInstance'][_0x4c3200(0x233)](_0x4c3200(0x1e4),_0x4c3200(0x1c5),_0x46acd5?'true':_0x4c3200(0x201));}[a0_0x54df57(0x220)](){var _0x135702=a0_0x54df57;this['cameraPaused']=!![],this[_0x135702(0x1d5)]['pause']();}['unpauseCamera'](){var _0x2bbc37=a0_0x54df57;this[_0x2bbc37(0x1ad)]=![],this[_0x2bbc37(0x1d5)][_0x2bbc37(0x22d)]();}[a0_0x54df57(0x1e8)](_0x33e914){var _0x4407b9=a0_0x54df57;;var _0x253436=JSON[_0x4407b9(0x1f6)](_0x33e914);Object[_0x4407b9(0x20b)](_0x253436)['forEach'](_0x52db43=>{var _0x460a9f=_0x4407b9;if(_0x460a9f(0x1c2)!==_0x460a9f(0x1e1)){if(_0x52db43 in this&&this[_0x52db43]!=_0x253436[_0x52db43]){this[_0x52db43]=_0x253436[_0x52db43];;}}else this[_0x460a9f(0x229)]['style'][_0x460a9f(0x20e)]=_0x20a108?_0x460a9f(0x1be):'',_0x458052[_0x460a9f(0x1d4)][_0x460a9f(0x233)]('ARCamera',_0x460a9f(0x1c5),_0x30390?_0x460a9f(0x235):'false');});}async['startWebcam'](_0x3cedbe){var _0x1261ed=a0_0x54df57;;this[_0x1261ed(0x1d5)]=_0x3cedbe;try{if(_0x1261ed(0x1b6)==='ZNNAZ'){await _0x3cedbe[_0x1261ed(0x22d)]();;if(!this[_0x1261ed(0x1bf)]){if(_0x1261ed(0x1f9)===_0x1261ed(0x20f))_0x2da8d6[_0x1261ed(0x1d4)][_0x1261ed(0x233)]('ARCamera',_0x1261ed(0x216),_0x101462),this[_0x1261ed(0x1df)]=_0x5ec193;else{var _0x32e1d3=_0x1261ed(0x1fc);return Promise['reject'](_0x32e1d3);}}else{if(!this[_0x1261ed(0x206)]){if(_0x1261ed(0x230)===_0x1261ed(0x230)){var _0x32e1d3=_0x1261ed(0x1e7);return Promise[_0x1261ed(0x1fe)](_0x32e1d3);}else{;_0x382167[_0x1261ed(0x223)]=_0x3416a9[_0x1261ed(0x218)],_0x41272b[_0x1261ed(0x1c1)]=_0x46e2e6['innerHeight'],_0x3ad0a4=0x0;}}}return this['resizeCanvas'](),this[_0x1261ed(0x237)]=Date[_0x1261ed(0x21c)](),this[_0x1261ed(0x20d)]=Date[_0x1261ed(0x21c)](),this['lastMatchTrackTime']=Date[_0x1261ed(0x21c)](),this.#p000=setInterval(this.#f000,0x1/this[_0x1261ed(0x1ea)]*0x3e8),this[_0x1261ed(0x1f8)]=!![],Promise[_0x1261ed(0x214)]();}else this[_0x1261ed(0x1ad)]=!![],this['VIDEO'][_0x1261ed(0x1cc)]();}catch(_0x47b27c){if(_0x1261ed(0x1eb)===_0x1261ed(0x1eb))return Promise[_0x1261ed(0x1fe)](_0x47b27c);else _0x323018['style']['display']='';}}[a0_0x54df57(0x21e)](){var _0x4b8435=a0_0x54df57;const _0x4c1b89=this[_0x4b8435(0x1d5)][_0x4b8435(0x21a)][_0x4b8435(0x1fb)]();_0x4c1b89[_0x4b8435(0x205)](_0xb07d12=>_0xb07d12[_0x4b8435(0x21b)]()),this[_0x4b8435(0x1d5)]['srcObject']=null,clearInterval(this.#p000);}#f000(){var _0x5a9cdd=a0_0x54df57;if(arCamera['cameraPaused']){if(_0x5a9cdd(0x1b8)===_0x5a9cdd(0x1b8)){;return;}else _0x120721['SUBSCRIBED_TRACKERS'][_0x5a9cdd(0x205)](_0x2aea11=>{var _0x259474=_0x5a9cdd;_0x2aea11[_0x259474(0x239)]();}),_0x521619[_0x5a9cdd(0x1e3)]=![];}if(!arCamera[_0x5a9cdd(0x1d5)]){if(_0x5a9cdd(0x208)!==_0x5a9cdd(0x208)){this[_0x5a9cdd(0x206)]=_0x10f735,this[_0x5a9cdd(0x229)]=_0x57a10f,this[_0x5a9cdd(0x1af)]=this['videoCanvas'][_0x5a9cdd(0x224)]('2d'),this[_0x5a9cdd(0x1c4)]=![],this['RESIZE_DELAY']=0x32,this['FRAMERATE']=0x1e,this['SUBSCRIBED_TRACKERS']=[],this[_0x5a9cdd(0x21f)]=0x12c,this['videoCapture']=_0x124416['createElement'](_0x5a9cdd(0x1ce)),this[_0x5a9cdd(0x1bf)]['id']=_0x5a9cdd(0x1bf),_0x4211d7[_0x5a9cdd(0x1ef)][_0x5a9cdd(0x1fa)](this[_0x5a9cdd(0x1bf)]),this[_0x5a9cdd(0x203)]=this[_0x5a9cdd(0x1bf)][_0x5a9cdd(0x224)]('2d'),this[_0x5a9cdd(0x1bf)]['style']['position']=_0x5a9cdd(0x1f2),this[_0x5a9cdd(0x1bf)][_0x5a9cdd(0x234)][_0x5a9cdd(0x217)]=_0x5a9cdd(0x1da),this['videoCapture'][_0x5a9cdd(0x234)]['zIndex']='-100',this[_0x5a9cdd(0x226)](this[_0x5a9cdd(0x21f)]),this[_0x5a9cdd(0x238)]=![],this[_0x5a9cdd(0x1b1)]=[],this[_0x5a9cdd(0x1d3)]=[],this['lastOrientation']=_0x5a376f[_0x5a9cdd(0x1bd)](_0x5a9cdd(0x1bb))['matches']?_0x5a9cdd(0x1dc):_0x5a9cdd(0x1d9),_0x5653b4[_0x5a9cdd(0x1f5)](_0x5a9cdd(0x204),this[_0x5a9cdd(0x23a)],!![]);;}else{;return;}}var _0x13239b=arCamera['VIDEO'],_0x1045ee=arCamera[_0x5a9cdd(0x1bf)],_0x33069f=arCamera[_0x5a9cdd(0x229)],_0x22b2fe=_0x1045ee['width']/_0x13239b['videoWidth'],_0x4bd8d7=_0x1045ee[_0x5a9cdd(0x209)]/_0x13239b[_0x5a9cdd(0x228)],_0x7fd12d=Math['max'](_0x22b2fe,_0x4bd8d7),_0xf514e=(_0x1045ee['width']-_0x13239b[_0x5a9cdd(0x1d2)]*_0x7fd12d)/0x2,_0x46feca=(_0x1045ee['height']-_0x13239b[_0x5a9cdd(0x228)]*_0x7fd12d)/0x2;arCamera[_0x5a9cdd(0x203)][_0x5a9cdd(0x210)](0x0,0x0,_0x1045ee[_0x5a9cdd(0x1e6)],_0x1045ee[_0x5a9cdd(0x209)]),arCamera[_0x5a9cdd(0x203)][_0x5a9cdd(0x22f)](_0x7fd12d,0x0,0x0,_0x7fd12d,_0xf514e,_0x46feca),arCamera[_0x5a9cdd(0x203)]['drawImage'](arCamera[_0x5a9cdd(0x1d5)],0x0,0x0);if(!arCamera['UNITY_VIDEOPLANE']){_0x33069f[_0x5a9cdd(0x1e6)]=window[_0x5a9cdd(0x218)],_0x33069f[_0x5a9cdd(0x209)]=window[_0x5a9cdd(0x1d7)];var _0x2560a8=_0x33069f['width']/_0x13239b[_0x5a9cdd(0x1d2)],_0x483966=_0x33069f[_0x5a9cdd(0x209)]/_0x13239b[_0x5a9cdd(0x228)],_0x51f336=Math[_0x5a9cdd(0x202)](_0x2560a8,_0x483966),_0x342147=(_0x33069f[_0x5a9cdd(0x1e6)]-_0x13239b[_0x5a9cdd(0x1d2)]*_0x51f336)/0x2,_0x3f19a1=(_0x33069f[_0x5a9cdd(0x209)]-_0x13239b[_0x5a9cdd(0x228)]*_0x51f336)/0x2;arCamera[_0x5a9cdd(0x1af)][_0x5a9cdd(0x210)](0x0,0x0,_0x33069f[_0x5a9cdd(0x1e6)],_0x33069f[_0x5a9cdd(0x209)]),arCamera[_0x5a9cdd(0x1af)][_0x5a9cdd(0x22f)](_0x51f336,0x0,0x0,_0x51f336,_0x342147,_0x3f19a1),arCamera[_0x5a9cdd(0x1af)][_0x5a9cdd(0x22b)](arCamera['VIDEO'],0x0,0x0);}arCamera[_0x5a9cdd(0x21d)][_0x5a9cdd(0x205)](_0x228576=>{var _0x14b167=_0x5a9cdd;if(_0x14b167(0x1c8)!=='pVqtb')return _0x1d4954['toString']()['search']('(((.+)+)+)+$')[_0x14b167(0x23c)]()[_0x14b167(0x1e9)](_0x33c438)[_0x14b167(0x1bc)](_0x14b167(0x1ba));else _0x228576[_0x14b167(0x212)]();});if(arCamera['updateUnityVideoTextureCallback']){if(_0x5a9cdd(0x1b2)===_0x5a9cdd(0x225)){;return;}else arCamera[_0x5a9cdd(0x1b4)]();}}['subscribeToWebcamUpdates'](_0x469628,_0x2cf172){var _0xf56b39=a0_0x54df57;if(this[_0xf56b39(0x21d)][_0xf56b39(0x22e)](_0x469628)){;return;}this['SUBSCRIBED_TRACKERS'][_0xf56b39(0x1b5)](_0x469628);}[a0_0x54df57(0x226)](_0x1c34c4){var _0x1d1559=a0_0x54df57;;this[_0x1d1559(0x21f)]=_0x1c34c4;var _0x180402=this[_0x1d1559(0x1bf)],_0x212de6=this['VIDEO'];if(!_0x212de6||_0x212de6['videoWidth']<=0x0||_0x212de6['videoHeight']<=0x0)return;const _0x2ecc8d=Math[_0x1d1559(0x1ae)](this['maxFrameSize']/_0x212de6[_0x1d1559(0x1d2)],this[_0x1d1559(0x21f)]/_0x212de6[_0x1d1559(0x228)]);;_0x180402[_0x1d1559(0x1e6)]=_0x2ecc8d*_0x212de6[_0x1d1559(0x1d2)],_0x180402[_0x1d1559(0x209)]=_0x2ecc8d*_0x212de6[_0x1d1559(0x228)];;}[a0_0x54df57(0x213)](_0x8b53b8){var _0x39a397=a0_0x54df57;this['FRAMERATE']=_0x8b53b8,clearInterval(this.#p000),this.#p000=setInterval(this.#f000,0x1/this[_0x39a397(0x1ea)]*0x3e8);}[a0_0x54df57(0x23a)](_0x184dd7){var _0x103a53=a0_0x54df57;if(_0x184dd7!=null&&_0x184dd7[_0x103a53(0x1b9)]!=window)return;if(!arCamera[_0x103a53(0x206)][_0x103a53(0x211)]||!arCamera['unityCanvas'][_0x103a53(0x211)]['style'])return;if(arCamera[_0x103a53(0x1e3)])return;arCamera['isResizing']=!![],arCamera['SUBSCRIBED_TRACKERS'][_0x103a53(0x205)](_0x32c718=>{var _0x30a3ab=_0x103a53;if(_0x30a3ab(0x1c3)!==_0x30a3ab(0x1c3)){;return;}else _0x32c718[_0x30a3ab(0x22a)]();});var _0x4634ea=arCamera[_0x103a53(0x1e5)],_0x2b1c1f=0xa,_0x5c790c=0x0;setTimeout(()=>{var _0x4fcb91=_0x103a53;arCamera[_0x4fcb91(0x1ff)]=Date[_0x4fcb91(0x21c)](),arCamera[_0x4fcb91(0x223)]=window[_0x4fcb91(0x218)],arCamera[_0x4fcb91(0x1c1)]=window[_0x4fcb91(0x1d7)],arCamera['debounceInterval']=setInterval(()=>{var _0x3c8310=_0x4fcb91;;if(arCamera[_0x3c8310(0x223)]==window['innerWidth']&&arCamera[_0x3c8310(0x1c1)]==window[_0x3c8310(0x1d7)])_0x3c8310(0x1cf)!==_0x3c8310(0x23b)?_0x5c790c++:_0x1ec56c['updateUnityVideoTextureCallback']();else{;arCamera[_0x3c8310(0x223)]=window[_0x3c8310(0x218)],arCamera[_0x3c8310(0x1c1)]=window[_0x3c8310(0x1d7)],_0x5c790c=0x0;}if(_0x5c790c>=0x5){;arCamera[_0x3c8310(0x227)]();var _0x4c105b=arCamera[_0x3c8310(0x206)][_0x3c8310(0x211)];setTimeout(()=>{var _0xec37ab=_0x3c8310;_0x4c105b[_0xec37ab(0x234)][_0xec37ab(0x1cb)]='none';},0x5),setTimeout(()=>{var _0x4a0b9f=_0x3c8310;_0x4c105b[_0x4a0b9f(0x234)][_0x4a0b9f(0x1cb)]='';},0x32),setTimeout(()=>{var _0x19dde7=_0x3c8310;arCamera[_0x19dde7(0x21d)]['forEach'](_0x5ae758=>{var _0x213ee2=_0x19dde7;_0x5ae758[_0x213ee2(0x239)]();}),arCamera[_0x19dde7(0x1e3)]=![];},0x64),clearInterval(arCamera[_0x3c8310(0x1f4)]);}},_0x2b1c1f);},_0x4634ea);}[a0_0x54df57(0x1ee)](_0x13670b){var _0x1081b3=a0_0x54df57;if(_0x13670b!=null&&_0x13670b[_0x1081b3(0x1b9)]!=window)return;if(!arCamera['unityCanvas'][_0x1081b3(0x211)]||!arCamera[_0x1081b3(0x206)][_0x1081b3(0x211)][_0x1081b3(0x234)])return;var _0x5c9f48=arCamera[_0x1081b3(0x1e5)];;arCamera[_0x1081b3(0x21d)][_0x1081b3(0x205)](_0x2516a6=>{var _0x4a8bdc=_0x1081b3;'vAOAj'!==_0x4a8bdc(0x1db)?_0x53c4f0(_0x2c2716[_0x4a8bdc(0x1cd)]):_0x2516a6[_0x4a8bdc(0x22a)]();}),arCamera['unityCanvas'][_0x1081b3(0x234)]['opacity']=0x0,arCamera['videoCanvas']['style']['opacity']=0x0,setTimeout(()=>{arCamera['resizeCanvas']();},_0x5c9f48);var _0x28ef08=arCamera['unityCanvas'][_0x1081b3(0x211)];setTimeout(()=>{var _0x3eea01=_0x1081b3;_0x28ef08[_0x3eea01(0x234)][_0x3eea01(0x1cb)]=_0x3eea01(0x1de);},_0x5c9f48+0x5),setTimeout(()=>{var _0x200267=_0x1081b3;'qAcpS'!==_0x200267(0x219)?_0x16eab1[_0x200267(0x234)][_0x200267(0x1cb)]='':_0x28ef08[_0x200267(0x234)]['display']='';},_0x5c9f48+0x32),console[_0x1081b3(0x1d1)](_0x1081b3(0x1c7)+arCamera['onFinishedResizeCallbacks'][_0x1081b3(0x22c)]),setTimeout(()=>{var _0x34defd=_0x1081b3;arCamera[_0x34defd(0x21d)]['forEach'](_0x1776aa=>{var _0x15a03c=_0x34defd;_0x1776aa[_0x15a03c(0x239)]();});var _0x28349e=0x1f4,_0x35ad63=0xa;arCamera[_0x34defd(0x1cd)]&&clearInterval(arCamera[_0x34defd(0x1cd)]),arCamera[_0x34defd(0x1cd)]=setInterval(()=>{var _0x562097=_0x34defd;if('CptLO'===_0x562097(0x1c6)){var _0x2f2410=parseFloat(arCamera[_0x562097(0x206)][_0x562097(0x234)][_0x562097(0x232)]);_0x2f2410+=0x1/(_0x28349e/_0x35ad63),_0x2f2410=Math[_0x562097(0x1ae)](_0x2f2410,0x1),arCamera[_0x562097(0x206)][_0x562097(0x234)]['opacity']=_0x2f2410,arCamera[_0x562097(0x229)][_0x562097(0x234)][_0x562097(0x232)]=_0x2f2410,_0x2f2410>=0x1&&clearInterval(arCamera[_0x562097(0x1cd)]);}else{var _0x4b2cf6=_0x2ed06e(_0x2c66d7[_0x562097(0x206)][_0x562097(0x234)][_0x562097(0x232)]);_0x4b2cf6+=0x1/(_0x3b5954/_0x24f5de),_0x4b2cf6=_0x36ece0[_0x562097(0x1ae)](_0x4b2cf6,0x1),_0x2dbc51['unityCanvas'][_0x562097(0x234)]['opacity']=_0x4b2cf6,_0x192f22[_0x562097(0x229)][_0x562097(0x234)][_0x562097(0x232)]=_0x4b2cf6,_0x4b2cf6>=0x1&&_0x33f467(_0x45eb6f['fadeId']);}},_0x35ad63);},_0x5c9f48+0x64);}[a0_0x54df57(0x227)](){var _0x583755=a0_0x54df57;;if(!window[_0x583755(0x1ca)])window['arCamera']=this;var _0x275e72=this[_0x583755(0x1bf)],_0x371503=this[_0x583755(0x1d5)];if(!_0x275e72||!_0x371503||_0x371503[_0x583755(0x1d2)]<=0x0||_0x371503[_0x583755(0x228)]<=0x0)return;;var _0xaafae6=window[_0x583755(0x218)]/window[_0x583755(0x1d7)];console[_0x583755(0x1d1)]('aspectRatio\x20=\x20'+_0xaafae6,_0x583755(0x200)+window[_0x583755(0x218)]+','+window[_0x583755(0x1d7)]+')'),this[_0x583755(0x226)](this[_0x583755(0x21f)]),this[_0x583755(0x21d)][_0x583755(0x205)](_0x5b1605=>{var _0x509b27=_0x583755;_0x5b1605['setCamDims'](_0x275e72['width'],_0x275e72[_0x509b27(0x209)]);}),this.#f001(),window['unityInstance'][_0x583755(0x233)]('ARCamera','Resize',_0x371503[_0x583755(0x1d2)]+','+_0x371503[_0x583755(0x228)]);var _0x108f2c=window[_0x583755(0x1bd)](_0x583755(0x1bb))['matches']?_0x583755(0x1dc):_0x583755(0x1d9);this[_0x583755(0x1df)]!=_0x108f2c&&(window[_0x583755(0x1d4)][_0x583755(0x233)](_0x583755(0x1e4),'SetOrientationMessage',_0x108f2c),this['lastOrientation']=_0x108f2c);}#f001(){var _0xeaaa31=a0_0x54df57,_0x179bf6=this[_0xeaaa31(0x206)],_0x1a0413=this[_0xeaaa31(0x1bf)],_0x3d624a=this[_0xeaaa31(0x1d5)];if(!_0x3d624a||_0x3d624a['videoWidth']<=0x0||_0x3d624a[_0xeaaa31(0x228)]<=0x0)return;var _0x52ca86=window[_0xeaaa31(0x218)]/window[_0xeaaa31(0x1d7)],_0x4697e9=_0x3d624a[_0xeaaa31(0x1d2)]/_0x3d624a[_0xeaaa31(0x228)];_0x179bf6[_0xeaaa31(0x234)][_0xeaaa31(0x1e6)]=_0xeaaa31(0x1f0),_0x179bf6[_0xeaaa31(0x234)]['height']=_0xeaaa31(0x1f0);var _0xfa5d33=this['videoCapture'][_0xeaaa31(0x1e0)]();;var _0x3bd593=window[_0xeaaa31(0x218)],_0x5b7fbd=window[_0xeaaa31(0x1d7)],_0xbbe1b4=0.5/Math[_0xeaaa31(0x202)](_0x4697e9,_0x52ca86),_0x595a7f=0x1,_0x56641d=0x2*Math[_0xeaaa31(0x1f7)](_0xbbe1b4/_0x595a7f)*0xb4/Math['PI'];this['FOV']=_0x56641d;;if(window['unityInstance']){if(_0xeaaa31(0x1d0)===_0xeaaa31(0x20c)){if(_0x4df664){var _0x42a69e=_0x18dccc[_0xeaaa31(0x222)](_0x4dee22,arguments);return _0x9db045=null,_0x42a69e;}}else window[_0xeaaa31(0x1d4)][_0xeaaa31(0x233)](_0xeaaa31(0x1e4),_0xeaaa31(0x1b0),_0x56641d);}}[a0_0x54df57(0x1f1)](_0x4bc873){var _0x49ab84=a0_0x54df57,_0x7dde55=this[_0x49ab84(0x1bf)],_0x4dbb3c=_0x7dde55[_0x49ab84(0x20a)](_0x4bc873);return _0x4dbb3c;}[a0_0x54df57(0x1e2)](){var _0x3daa4a=a0_0x54df57;return this[_0x3daa4a(0x1d5)][_0x3daa4a(0x1d2)]+','+this[_0x3daa4a(0x1d5)][_0x3daa4a(0x228)];}};function a0_0x451e(){var _0x582420=['cameraPaused','min','video_ctx','SetCameraFov','onStartResizeCallbacks','WFLst','63ieJbjf','updateUnityVideoTextureCallback','push','ZNNAZ','4UKGQTx','Ahuqj','target','(((.+)+)+)+$','(orientation:\x20portrait)','search','matchMedia','scaleX(-1)','videoCapture','727065kaOzbD','debounceInnerHeight','BFtNw','mdpNx','UNITY_VIDEOPLANE','SetFlippedMessage','CptLO','invoking\x20finished_resize\x20Callbacks\x20-\x20','pVqtb','11087450bjgoWm','arCamera','display','pause','fadeId','canvas','tdbIX','hTiHh','log','videoWidth','onFinishedResizeCallbacks','unityInstance','VIDEO','1147032WBRvsf','innerHeight','matches','LANDSCAPE','200%','vAOAj','PORTRAIT','setFlipped','none','lastOrientation','getBoundingClientRect','qaIpl','getVideoDims','isResizing','ARCamera','RESIZE_DELAY','width','unityCanvas\x20is\x20null.\x20Please\x20call\x20new\x20ARCamera(unityCanvas,\x20videoCapture)\x20properly\x20before\x20starting\x20the\x20Webcam','setARCameraSettings','constructor','FRAMERATE','UFFrJ','81PDWKDh','221570qOKzoK','resizeWithDelay222','body','100%','getCameraTexture','absolute','position','debounceInterval','addEventListener','parse','atan','isCameraStarted','poupD','appendChild','getTracks','videoCapture\x20canvas\x20is\x20null.\x20Please\x20call\x20new\x20ARCamera(unityCanvas,\x20videoCapture)\x20properly\x20before\x20starting\x20the\x20Webcam','3995976UXtbnL','reject','debounceStartTime','inner\x20=\x20(','false','max','capture_ctx','resize','forEach','unityCanvas','zIndex','MlpYj','height','toDataURL','keys','whkZd','lastDetectTime','transform','YXEyi','clearRect','parentElement','update','setFramerate','resolve','-100','SetOrientationMessage','top','innerWidth','qAcpS','srcObject','stop','now','SUBSCRIBED_TRACKERS','stopWebcam','maxFrameSize','pauseCamera','createElement','apply','debounceInnerWidth','getContext','ZIwlK','setFrameSize','resizeCanvas','videoHeight','videoCanvas','onStartResize','drawImage','length','play','includes','setTransform','unzxD','48560cMnDFs','opacity','SendMessage','style','true','314713oyfUmX','lastUpdateTime','usingUnityVideoPlane','onFinishedResize','resizeWithDelay','AoxjY','toString'];a0_0x451e=function(){return _0x582420;};return a0_0x451e();}