const _0x4dc7c5=_0x592d;(function(_0x43edb7,_0x51b135){const _0x508219=_0x592d,_0x300052=_0x43edb7();while(!![]){try{const _0x207edb=parseInt(_0x508219(0xb1))/0x1+parseInt(_0x508219(0x93))/0x2*(-parseInt(_0x508219(0xb0))/0x3)+-parseInt(_0x508219(0xbb))/0x4+-parseInt(_0x508219(0xc2))/0x5+-parseInt(_0x508219(0xac))/0x6*(-parseInt(_0x508219(0xb9))/0x7)+parseInt(_0x508219(0xbd))/0x8+parseInt(_0x508219(0x95))/0x9;if(_0x207edb===_0x51b135)break;else _0x300052['push'](_0x300052['shift']());}catch(_0xbebc14){_0x300052['push'](_0x300052['shift']());}}}(_0x3f69,0xb026c));let localVideo=document['getElementById'](_0x4dc7c5(0xaa)),remoteVideo=document[_0x4dc7c5(0xa3)](_0x4dc7c5(0xad)),peer,localStream,currentCall;function _0x3f69(){const _0x570fb4=['4SfyMGp','Received\x20remote\x20video\x20stream.','15581466oyrsVI','log','location','call','peer','getTracks','stream','onCallReceived','Failed\x20to\x20create\x20call.','destroy','Incoming\x20call\x20from:\x20','onplaying','srcObject','onPeerConnected','getElementById','close','then','enabled','onAudioToggled','className','forEach','local-video','error','37794NrYjqK','remote-video','mediaDevices','opacity','1884171QrGSiS','1060704QOoTNx','about:blank','stop','Call\x20closed.','onCallEnded','Error\x20accessing\x20media\x20devices:','getAudioTracks','getUserMedia','1064twRIrJ','Starting\x20call\x20to:','5370828nBEAxU','onCallStarted','2265576nqzOmJ','onVideoToggled','open','catch','Closing\x20call...','3561430sNdgel','true','onPeerError','primary-video','secondary-video','style'];_0x3f69=function(){return _0x570fb4;};return _0x3f69();}function _0x592d(_0x197d41,_0x2f9ea8){const _0x3f6943=_0x3f69();return _0x592d=function(_0x592d3d,_0x467aad){_0x592d3d=_0x592d3d-0x91;let _0x3b03f8=_0x3f6943[_0x592d3d];return _0x3b03f8;},_0x592d(_0x197d41,_0x2f9ea8);}localVideo[_0x4dc7c5(0x92)]['opacity']=0x0,remoteVideo[_0x4dc7c5(0x92)][_0x4dc7c5(0xaf)]=0x0,localVideo[_0x4dc7c5(0xa0)]=()=>{const _0x50ddb1=_0x4dc7c5;localVideo[_0x50ddb1(0x92)][_0x50ddb1(0xaf)]=0x1;},remoteVideo[_0x4dc7c5(0xa0)]=()=>{const _0x3a1458=_0x4dc7c5;remoteVideo[_0x3a1458(0x92)][_0x3a1458(0xaf)]=0x1;};function init(_0x372e11){const _0x585220=_0x4dc7c5;peer=new Peer(_0x372e11),peer['on'](_0x585220(0xbf),()=>{const _0x119b6d=_0x585220;console[_0x119b6d(0x96)]('Peer\x20connected:\x20'+peer['id']),Android[_0x119b6d(0xa2)]();}),peer['on'](_0x585220(0x98),_0x345ca2=>{const _0x4e8e82=_0x585220;console['log'](_0x4e8e82(0x9f)+_0x345ca2[_0x4e8e82(0x99)]),navigator['mediaDevices'][_0x4e8e82(0xb8)]({'audio':!![],'video':!![]})[_0x4e8e82(0xa5)](_0x1868ce=>{const _0x1da7c4=_0x4e8e82;localStream=_0x1868ce,localVideo[_0x1da7c4(0xa1)]=_0x1868ce,_0x345ca2['answer'](_0x1868ce),console[_0x1da7c4(0x96)]('Call\x20answered.'),_0x345ca2['on'](_0x1da7c4(0x9b),_0x3de966=>{const _0x213370=_0x1da7c4;console[_0x213370(0x96)]('Received\x20remote\x20stream.'),remoteVideo[_0x213370(0xa1)]=_0x3de966,remoteVideo[_0x213370(0xa8)]=_0x213370(0xc5),localVideo[_0x213370(0xa8)]=_0x213370(0x91),Android[_0x213370(0x9c)]();}),_0x345ca2['on'](_0x1da7c4(0xa4),()=>{const _0x342357=_0x1da7c4;console[_0x342357(0x96)]('Call\x20closed\x20by\x20remote.'),endCall();}),currentCall=_0x345ca2;})[_0x4e8e82(0xc0)](_0x31788b=>{const _0x4107f6=_0x4e8e82;console[_0x4107f6(0xab)](_0x4107f6(0xb6),_0x31788b),Android['onPeerError']();});}),peer['on']('error',_0x3a5ba7=>{const _0x4b5140=_0x585220;console[_0x4b5140(0xab)]('PeerJS\x20Error:',_0x3a5ba7),Android[_0x4b5140(0xc4)]();});}function startCall(_0x1d1aa7){const _0x6d3b66=_0x4dc7c5;console['log'](_0x6d3b66(0xba),_0x1d1aa7),navigator[_0x6d3b66(0xae)]['getUserMedia']({'audio':!![],'video':!![]})[_0x6d3b66(0xa5)](_0x45545e=>{const _0x1a393a=_0x6d3b66;localStream=_0x45545e,localVideo[_0x1a393a(0xa1)]=_0x45545e;const _0x15cf60=peer[_0x1a393a(0x98)](_0x1d1aa7,_0x45545e);if(!_0x15cf60){console[_0x1a393a(0xab)](_0x1a393a(0x9d)),Android[_0x1a393a(0xc4)]();return;}_0x15cf60['on']('stream',_0xcc3d94=>{const _0x9d437=_0x1a393a;console[_0x9d437(0x96)](_0x9d437(0x94)),remoteVideo['srcObject']=_0xcc3d94,remoteVideo['className']=_0x9d437(0xc5),localVideo[_0x9d437(0xa8)]='secondary-video',Android[_0x9d437(0xbc)]();}),_0x15cf60['on'](_0x1a393a(0xa4),()=>{const _0x350eda=_0x1a393a;console[_0x350eda(0x96)](_0x350eda(0xb4)),endCall();}),currentCall=_0x15cf60;})['catch'](_0x4186b0=>{const _0x1fc6a8=_0x6d3b66;console[_0x1fc6a8(0xab)]('Error\x20accessing\x20media\x20devices:',_0x4186b0),Android['onPeerError']();});}function toggleVideo(_0x17fece){const _0x473dde=_0x4dc7c5;_0x17fece=='true'?localStream['getVideoTracks']()[0x0]['enabled']=!![]:localStream['getVideoTracks']()[0x0][_0x473dde(0xa6)]=![],Android[_0x473dde(0xbe)]();}function toggleAudio(_0x2d8cbe){const _0x996573=_0x4dc7c5;_0x2d8cbe==_0x996573(0xc3)?localStream[_0x996573(0xb7)]()[0x0][_0x996573(0xa6)]=!![]:localStream[_0x996573(0xb7)]()[0x0][_0x996573(0xa6)]=![],Android[_0x996573(0xa7)]();}function endCall(){const _0x1559ba=_0x4dc7c5;currentCall&&(console[_0x1559ba(0x96)](_0x1559ba(0xc1)),currentCall[_0x1559ba(0xa4)](),currentCall=null),localStream&&(localStream[_0x1559ba(0x9a)]()['forEach'](_0x399408=>_0x399408[_0x1559ba(0xb3)]()),localVideo['srcObject']=null),remoteVideo[_0x1559ba(0xa1)]&&(remoteVideo['srcObject']['getTracks']()[_0x1559ba(0xa9)](_0x2753fd=>_0x2753fd['stop']()),remoteVideo[_0x1559ba(0xa1)]=null),peer&&peer[_0x1559ba(0x9e)](),console['log']('Call\x20ended.'),Android[_0x1559ba(0xb5)](),window[_0x1559ba(0x97)]['href']=_0x1559ba(0xb2);}