From 5fedcfc44448207a5e5a3ec541874819700a7d40 Mon Sep 17 00:00:00 2001 From: Son Hoang Tuan Date: Mon, 21 Oct 2024 13:19:35 +0700 Subject: [PATCH] v2.22 --- build.sh | 1 - docs/index.html | 2 +- docs/src/js/cloud.js | 2 +- docs/src/js/gamepad.js | 2 +- docs/src/js/global.js | 2 +- docs/src/js/main.js | 2 +- docs/src/js/ocr.js | 2 +- docs/src/js/setting.js | 2 +- docs/src/js/state.js | 2 +- docs/src/js/storage.js | 2 +- docs/src/js/welcome.js | 2 +- docs/sw.js | 2 +- index.html | 2 +- sw.js | 2 +- 14 files changed, 13 insertions(+), 14 deletions(-) diff --git a/build.sh b/build.sh index e7a6280..6a8abe8 100755 --- a/build.sh +++ b/build.sh @@ -47,7 +47,6 @@ if [ $minor_version -ge 100 ]; then minor_version=0 major_version=$((major_version + 1)) fi - new_game_version="V${major_version}.$(printf "%02d" $minor_version)" # Update version in index.html diff --git a/docs/index.html b/docs/index.html index 38428c1..4ec6325 100644 --- a/docs/index.html +++ b/docs/index.html @@ -351,7 +351,7 @@
- + diff --git a/docs/src/js/cloud.js b/docs/src/js/cloud.js index c7ed259..2ce9678 100644 --- a/docs/src/js/cloud.js +++ b/docs/src/js/cloud.js @@ -1 +1 @@ -var a0_0x50cb15=a0_0x2bec;(function(_0x39ea19,_0xc9f946){var _0x132668=a0_0x2bec,_0x3e4523=_0x39ea19();while(!![]){try{var _0x457f71=-parseInt(_0x132668(0x160))/0x1*(parseInt(_0x132668(0x121))/0x2)+parseInt(_0x132668(0x10e))/0x3+-parseInt(_0x132668(0x114))/0x4+parseInt(_0x132668(0x14d))/0x5*(-parseInt(_0x132668(0x155))/0x6)+parseInt(_0x132668(0x115))/0x7+-parseInt(_0x132668(0x13b))/0x8*(parseInt(_0x132668(0x113))/0x9)+parseInt(_0x132668(0x15a))/0xa*(parseInt(_0x132668(0x161))/0xb);if(_0x457f71===_0xc9f946)break;else _0x3e4523['push'](_0x3e4523['shift']());}catch(_0xa38802){_0x3e4523['push'](_0x3e4523['shift']());}}}(a0_0x1663,0xad53a));import*as a0_0x2adfbb from'./main.js';import{localStorageFile}from'./storage.js';var clientId=a0_0x50cb15(0x11c),clientSecret='nwb3dnfh09rhs31';function authorizeWithDropbox(){var _0x2eb71a=a0_0x50cb15,_0x52dd56=window[_0x2eb71a(0x154)]['href']['split']('?')[0x0],_0x4781ce='code',_0x58718a='offline',_0x5df184=_0x2eb71a(0x149)+clientId+_0x2eb71a(0x14e)+_0x4781ce+_0x2eb71a(0xfc)+_0x58718a+_0x2eb71a(0x144)+encodeURIComponent(_0x52dd56);window[_0x2eb71a(0x154)][_0x2eb71a(0x107)]=_0x5df184;}function a0_0x1663(){var _0x411609=['code','status','remove','Download\x20failed,\x20unknown\x20http\x20status:','Bearer\x20','href','save','.ss0','Do\x20you\x20want\x20to\x20logout?','uploadSaveOrSaveState','gba','stringify','2479062gXKvpi','.gba_slot','DOMContentLoaded','uId','alert','1870326VypWZZ','3670364VEkMnL','8206576LUPCiW','.txt','active','.ss6','name','overwrite','refreshToken','knh3uz2mx2hp2eu','Restoring...','addEventListener','Cloud\x20↦\x20Kabu\x20storage\x20◆','log','10qRIdVz','search','substring','length','slice','classList','_imageState','accessToken','application/octet-stream','https://content.dropboxapi.com/2/files/download','filter','Restore\x20canceled\x20by\x20user.','status:\x20','toUpperCase','entries','application/x-www-form-urlencoded','setItem','getItem','Upload\x20failed,\x20unknown\x20http\x20status:\x20','FSSync','.ss5','.tag','Failed\x20to\x20refresh\x20Dropbox\x20token.','open','\x20files\x20in\x20Cloud?','responseText','24vVqTvj','code=','split','_dateState','click','text/plain','Backing\x20up...','send','access_token','&redirect_uri=','.gba_dateState','confirm','text','blob','https://www.dropbox.com/oauth2/authorize?client_id=','Download\x20failed,\x20unknown\x20http\x20status:\x20','POST','=([^&#]*)','886405fXVfSg','&response_type=','file','.ss3','application/json','&client_secret=','parse','location','6xkuTxO','list','endsWith','https://content.dropboxapi.com/2/files/upload','Content-Type','570unwVDV','error_description','charAt','lastIndexOf','https://api.dropbox.com/oauth2/token','Do\x20not\x20receive\x20authorization','12406fdBSKs','94864ivWTDl','Unable\x20to\x20refresh\x20token','Kabu\x20storage\x20↦\x20Cloud\x20◆','Error\x20while\x20refreshing\x20token:','replace','.gba_imageState','Refreshing\x20token...','json','onload','&grant_type=refresh_token&client_id=knh3uz2mx2hp2eu&client_secret=nwb3dnfh09rhs31','&token_access_type=','state','https://api.dropboxapi.com/2/files/list_folder','Cloud\x20login\x20required!','[\x5c?&#]','Failed\x20to\x20upload\x20file\x20'];a0_0x1663=function(){return _0x411609;};return a0_0x1663();}function handleDropboxCallback(){var _0x5a4611=a0_0x50cb15,_0x17d73e=getUrlParameter(_0x5a4611(0x102));_0x17d73e?(getAccessToken(_0x17d73e),console[_0x5a4611(0x120)]('Authorization\x20Code:',_0x17d73e)):console[_0x5a4611(0x120)](_0x5a4611(0x15f));}function getUrlParameter(_0x101829){var _0x4e774f=a0_0x50cb15;_0x101829=_0x101829['replace'](/[\[]/,'\x5c[')[_0x4e774f(0xf6)](/[\]]/,'\x5c]');var _0x5eabe6=new RegExp(_0x4e774f(0x100)+_0x101829+_0x4e774f(0x14c)),_0x2084ee=_0x5eabe6['exec'](location[_0x4e774f(0x122)]);return _0x2084ee===null?'':decodeURIComponent(_0x2084ee[0x1]['replace'](/\+/g,'\x20'));}function a0_0x2bec(_0x40ba2b,_0x211b77){var _0x1663a8=a0_0x1663();return a0_0x2bec=function(_0x2bec8a,_0xaf8dee){_0x2bec8a=_0x2bec8a-0xf5;var _0x362372=_0x1663a8[_0x2bec8a];return _0x362372;},a0_0x2bec(_0x40ba2b,_0x211b77);}function getAccessToken(_0x563017){var _0x22ddf3=a0_0x50cb15,_0x422b8b='authorization_code',_0x32c7a2=window['location'][_0x22ddf3(0x107)][_0x22ddf3(0x13d)]('?')[0x0],_0x40cc8c=new XMLHttpRequest();_0x40cc8c[_0x22ddf3(0x138)](_0x22ddf3(0x14b),_0x22ddf3(0x15e)),_0x40cc8c['setRequestHeader'](_0x22ddf3(0x159),_0x22ddf3(0x130)),_0x40cc8c[_0x22ddf3(0xfa)]=function(){var _0x3906c0=_0x22ddf3;if(_0x40cc8c[_0x3906c0(0x103)]===0xc8){var _0x51ac8b=JSON[_0x3906c0(0x153)](_0x40cc8c[_0x3906c0(0x13a)]),_0x4d9626=_0x51ac8b['access_token'],_0x3d45ac=_0x51ac8b['refresh_token'],_0xe8cce4=_0x51ac8b['uid'];localStorage['setItem'](_0x3906c0(0x128),_0x4d9626),localStorage[_0x3906c0(0x131)]('refreshToken',_0x3d45ac),localStorage[_0x3906c0(0x131)](_0x3906c0(0x111),_0xe8cce4);}else console[_0x3906c0(0x120)]('Do\x20not\x20receive\x20access\x20token\x20&\x20refresh\x20token');},_0x40cc8c[_0x22ddf3(0x142)](_0x22ddf3(0x13c)+_0x563017+'&grant_type='+_0x422b8b+'&client_id='+clientId+_0x22ddf3(0x152)+clientSecret+'&redirect_uri='+encodeURIComponent(_0x32c7a2));}export async function dpRefreshToken(){var _0x2e30ac=a0_0x50cb15;if(!localStorage[_0x2e30ac(0x132)](_0x2e30ac(0x11b)))throw'No\x20refresh\x20token';try{const _0x1bcd5c=await fetch('https://api.dropboxapi.com/oauth2/token',{'method':_0x2e30ac(0x14b),'headers':{'Content-Type':_0x2e30ac(0x130)},'body':'refresh_token='+localStorage[_0x2e30ac(0x132)](_0x2e30ac(0x11b))+_0x2e30ac(0xfb)}),_0xfa120e=await _0x1bcd5c[_0x2e30ac(0xf9)]();if(!_0xfa120e['error'])return localStorage[_0x2e30ac(0x131)](_0x2e30ac(0x128),_0xfa120e[_0x2e30ac(0x143)]),await lockNoti('',_0x2e30ac(0xf8),0xbb8),await delay(0x3e8),!![];else alert(_0xfa120e[_0x2e30ac(0x15b)]||_0x2e30ac(0x137));}catch(_0x5d0700){console['error'](_0x2e30ac(0xf5),_0x5d0700);}return![];}export async function dpUploadFile(_0x73fc79,_0x5bba06){var _0x18db21=a0_0x50cb15;const _0x3bfc05=localStorage[_0x18db21(0x132)](_0x18db21(0x111));var _0x19ec71=JSON[_0x18db21(0x10d)]({'autorename':!![],'mode':_0x18db21(0x11a),'mute':!![],'strict_conflict':![],'path':'/'+_0x3bfc05+'/'+_0x73fc79}),_0x381189=new Blob([_0x5bba06],{'type':_0x18db21(0x129)});for(var _0x238dd0=0x0;_0x238dd0<0x2;_0x238dd0++){var _0x305609=await fetch(_0x18db21(0x158),{'method':_0x18db21(0x14b),'headers':{'Authorization':_0x18db21(0x106)+localStorage['getItem'](_0x18db21(0x128)),'Dropbox-API-Arg':_0x19ec71,'Content-Type':'application/octet-stream'},'body':_0x381189});if(_0x305609[_0x18db21(0x103)]!=0xc8){if(_0x305609[_0x18db21(0x103)]==0x191){var _0x3b338f=await dpRefreshToken();if(!_0x3b338f)throw _0x18db21(0x162);continue;}else throw _0x18db21(0x133)+_0x305609[_0x18db21(0x103)];}else{var _0x212c5e=await _0x305609['json']();return console[_0x18db21(0x120)](_0x18db21(0x163),_0x73fc79),_0x212c5e;}}return![];}async function dpDownloadFile(_0x4c67d2){var _0x130198=a0_0x50cb15;const _0x566540=localStorage[_0x130198(0x132)]('uId');var _0x5836cd=JSON[_0x130198(0x10d)]({'path':'/'+_0x566540+'/'+_0x4c67d2});for(var _0x7f4504=0x0;_0x7f4504<0x2;_0x7f4504++){var _0x3a155b=await fetch(_0x130198(0x12a),{'method':_0x130198(0x14b),'headers':{'Authorization':_0x130198(0x106)+localStorage[_0x130198(0x132)](_0x130198(0x128)),'Dropbox-API-Arg':_0x5836cd}});if(_0x3a155b[_0x130198(0x103)]!=0xc8){if(_0x3a155b[_0x130198(0x103)]==0x191){var _0x948eac=await dpRefreshToken();if(!_0x948eac)throw _0x130198(0x162);continue;}else throw _0x130198(0x105)+_0x3a155b['status'];}const _0x2d0b2e=new File([await _0x3a155b[_0x130198(0x148)]()],_0x4c67d2);console['log'](_0x130198(0x11f),_0x2d0b2e[_0x130198(0x119)]);if(_0x4c67d2[_0x130198(0x157)](_0x130198(0x116))){const _0x3b117a=await _0x2d0b2e[_0x130198(0x147)](),[_0xf1ba58,_0xbf7a23]=_0x3b117a[_0x130198(0x13d)]('\x0a\x0a'),_0x597fb1=_0x4c67d2['substring'](0x0,_0x4c67d2[_0x130198(0x15d)](_0x130198(0x10c))+0x3),_0xc70ac9=_0x4c67d2[_0x130198(0x15c)](_0x4c67d2[_0x130198(0x124)]-0x5);localStorage[_0x130198(0x131)](_0x597fb1+_0x130198(0x13e)+_0xc70ac9,_0xbf7a23),localStorage[_0x130198(0x131)](_0x597fb1+_0x130198(0x127)+_0xc70ac9,_0xf1ba58);}else a0_0x2adfbb[_0x130198(0x10b)](_0x2d0b2e,()=>{var _0x221b5c=_0x130198;localStorageFile(),Module[_0x221b5c(0x134)]();});return _0x2d0b2e;}return![];}document[a0_0x50cb15(0x11e)](a0_0x50cb15(0x110),function(){var _0x119581=a0_0x50cb15;dropboxRestore[_0x119581(0x11e)](_0x119581(0x13f),async function(){var _0x463f02=_0x119581;const _0x37579d=localStorage[_0x463f02(0x132)](_0x463f02(0x111));if(_0x37579d===null||_0x37579d==='')window[_0x463f02(0x112)]('Cloud\x20login\x20required!');else{var _0x1262b9={'path':'/'+_0x37579d};for(var _0xb08219=0x0;_0xb08219<0x2;_0xb08219++){var _0x4b1ced=await fetch(_0x463f02(0xfe),{'method':_0x463f02(0x14b),'headers':{'Authorization':_0x463f02(0x106)+localStorage[_0x463f02(0x132)](_0x463f02(0x128)),'Content-Type':_0x463f02(0x151)},'body':JSON[_0x463f02(0x10d)](_0x1262b9)});console[_0x463f02(0x120)](_0x463f02(0x12d),_0x4b1ced[_0x463f02(0x103)]);if(_0x4b1ced[_0x463f02(0x103)]!=0xc8){if(_0x4b1ced[_0x463f02(0x103)]==0x191){var _0x20745f=await dpRefreshToken();if(!_0x20745f)throw _0x463f02(0x162);continue;}else throw _0x463f02(0x14a)+_0x4b1ced['status'];}else{const _0x42fd78=await _0x4b1ced[_0x463f02(0xf9)](),_0x4731af=_0x42fd78[_0x463f02(0x12f)][_0x463f02(0x12b)](_0x4d2801=>_0x4d2801[_0x463f02(0x136)]===_0x463f02(0x14f))[_0x463f02(0x124)],_0x32c774='Do\x20you\x20want\x20to\x20restore\x20'+_0x4731af+_0x463f02(0x139);if(window[_0x463f02(0x146)](_0x32c774))for(const _0x568d1d of _0x42fd78[_0x463f02(0x12f)]){_0x568d1d['.tag']===_0x463f02(0x14f)&&(await lockNoti(_0x463f02(0x11d),_0x568d1d[_0x463f02(0x119)],0xbb8),await dpDownloadFile(_0x568d1d[_0x463f02(0x119)]));}else console[_0x463f02(0x120)](_0x463f02(0x12c));return!![];}}return![];}}),dropboxBackup[_0x119581(0x11e)](_0x119581(0x13f),async function(){var _0x3cc8b9=_0x119581;const _0x9b9e93=localStorage['getItem']('uId');if(_0x9b9e93===null||_0x9b9e93==='')window['alert'](_0x3cc8b9(0xff));else{const _0x27257f=[_0x3cc8b9(0xfd),_0x3cc8b9(0x108)];let _0x39b5d0=0x0;for(const _0x448428 of _0x27257f){const _0x1077fe=a0_0x2adfbb[_0x3cc8b9(0x156)+(_0x448428['charAt'](0x0)['toUpperCase']()+_0x448428[_0x3cc8b9(0x125)](0x1))]();_0x39b5d0+=_0x1077fe[_0x3cc8b9(0x124)];}if(window['confirm']('Do\x20you\x20want\x20to\x20backup\x20'+_0x39b5d0+'\x20files\x20in\x20Kabu?'))for(const _0x5dc16b of _0x27257f){const _0x87f805=a0_0x2adfbb[_0x3cc8b9(0x156)+(_0x5dc16b['charAt'](0x0)[_0x3cc8b9(0x12e)]()+_0x5dc16b[_0x3cc8b9(0x125)](0x1))]();for(const _0x34282d of _0x87f805){const _0x2f57b3=await a0_0x2adfbb['downloadFileInCloud']('/data/'+_0x5dc16b+'s/'+_0x34282d);try{await lockNoti(_0x3cc8b9(0x141),_0x34282d,0xbb8),await dpUploadFile(_0x34282d,_0x2f57b3);if(_0x34282d[_0x3cc8b9(0x157)](_0x3cc8b9(0x109))||_0x34282d[_0x3cc8b9(0x157)]('.ss1')||_0x34282d['endsWith']('.ss2')||_0x34282d[_0x3cc8b9(0x157)](_0x3cc8b9(0x150))||_0x34282d[_0x3cc8b9(0x157)]('.ss4')||_0x34282d[_0x3cc8b9(0x157)](_0x3cc8b9(0x135))||_0x34282d[_0x3cc8b9(0x157)](_0x3cc8b9(0x118))||_0x34282d[_0x3cc8b9(0x157)]('.ss7')){const _0x456a88=_0x34282d[_0x3cc8b9(0x123)](0x0,_0x34282d[_0x3cc8b9(0x15d)]('.')),_0x3b977a=_0x34282d[_0x3cc8b9(0x15c)](_0x34282d[_0x3cc8b9(0x124)]-0x1),_0x5a410b=localStorage['getItem'](_0x456a88+_0x3cc8b9(0xf7)+_0x3b977a),_0x5dd866=localStorage[_0x3cc8b9(0x132)](_0x456a88+_0x3cc8b9(0x145)+_0x3b977a);if(_0x5a410b!==null){const _0xd5b861=_0x5a410b+'\x0a\x0a'+_0x5dd866,_0x22f9e4=new Blob([_0xd5b861],{'type':_0x3cc8b9(0x140)});await lockNoti('Backing\x20up...',_0x456a88+'.gba_slot'+_0x3b977a+_0x3cc8b9(0x116),0xbb8),await dpUploadFile(_0x456a88+_0x3cc8b9(0x10f)+_0x3b977a+'.txt',_0x22f9e4);}}}catch(_0x5619cc){console['error'](_0x3cc8b9(0x101)+_0x34282d+':',_0x5619cc);}}}else console[_0x3cc8b9(0x120)]('Restore\x20canceled\x20by\x20user.');}}),dropboxCloud['addEventListener'](_0x119581(0x13f),function(){var _0x241498=_0x119581;const _0x36b2fa=localStorage['getItem'](_0x241498(0x111));_0x36b2fa===null||_0x36b2fa===''?authorizeWithDropbox():window['confirm'](_0x241498(0x10a))&&(localStorage[_0x241498(0x131)]('uId',''),dropboxRestore[_0x241498(0x126)][_0x241498(0x104)]('active'),dropboxBackup['classList'][_0x241498(0x104)](_0x241498(0x117)),dropboxCloud[_0x241498(0x126)]['remove'](_0x241498(0x117)));}),handleDropboxCallback();}); \ No newline at end of file +var a0_0x5f3467=a0_0x3787;(function(_0x403839,_0x5d1dde){var _0x1fa03c=a0_0x3787,_0x2dc50f=_0x403839();while(!![]){try{var _0x39bd70=-parseInt(_0x1fa03c(0x1c5))/0x1*(-parseInt(_0x1fa03c(0x1af))/0x2)+parseInt(_0x1fa03c(0x19b))/0x3*(parseInt(_0x1fa03c(0x184))/0x4)+-parseInt(_0x1fa03c(0x196))/0x5+parseInt(_0x1fa03c(0x1ca))/0x6*(-parseInt(_0x1fa03c(0x1da))/0x7)+parseInt(_0x1fa03c(0x1d8))/0x8+-parseInt(_0x1fa03c(0x1a2))/0x9+-parseInt(_0x1fa03c(0x1e3))/0xa;if(_0x39bd70===_0x5d1dde)break;else _0x2dc50f['push'](_0x2dc50f['shift']());}catch(_0xda2192){_0x2dc50f['push'](_0x2dc50f['shift']());}}}(a0_0x449c,0x9e5ff));import*as a0_0x2067cc from'./main.js';import{localStorageFile}from'./storage.js';var clientId=a0_0x5f3467(0x19e),clientSecret=a0_0x5f3467(0x1b6);function authorizeWithDropbox(){var _0x42833f=a0_0x5f3467,_0x2d03c4=window[_0x42833f(0x1c2)][_0x42833f(0x1dc)][_0x42833f(0x186)]('?')[0x0],_0x482a76=_0x42833f(0x1d5),_0x3d7a7f=_0x42833f(0x19f),_0x151ff7='https://www.dropbox.com/oauth2/authorize?client_id='+clientId+_0x42833f(0x1db)+_0x482a76+'&token_access_type='+_0x3d7a7f+'&redirect_uri='+encodeURIComponent(_0x2d03c4);window['location'][_0x42833f(0x1dc)]=_0x151ff7;}function handleDropboxCallback(){var _0x26cd83=a0_0x5f3467,_0x371a34=getUrlParameter(_0x26cd83(0x1d5));_0x371a34?(getAccessToken(_0x371a34),console[_0x26cd83(0x1d4)](_0x26cd83(0x1e2),_0x371a34)):console['log'](_0x26cd83(0x181));}function getUrlParameter(_0x51fc89){var _0x247151=a0_0x5f3467;_0x51fc89=_0x51fc89[_0x247151(0x199)](/[\[]/,'\x5c[')[_0x247151(0x199)](/[\]]/,'\x5c]');var _0x4ea4a9=new RegExp(_0x247151(0x1cb)+_0x51fc89+_0x247151(0x1ae)),_0x437593=_0x4ea4a9[_0x247151(0x1b0)](location[_0x247151(0x1d0)]);return _0x437593===null?'':decodeURIComponent(_0x437593[0x1][_0x247151(0x199)](/\+/g,'\x20'));}function getAccessToken(_0x4e6602){var _0x595f72=a0_0x5f3467,_0x281e36=_0x595f72(0x178),_0x497905=window[_0x595f72(0x1c2)][_0x595f72(0x1dc)][_0x595f72(0x186)]('?')[0x0],_0x2f217a=new XMLHttpRequest();_0x2f217a[_0x595f72(0x18a)]('POST',_0x595f72(0x18c)),_0x2f217a[_0x595f72(0x1bc)]('Content-Type',_0x595f72(0x1b9)),_0x2f217a['onload']=function(){var _0x56b861=_0x595f72;if(_0x2f217a[_0x56b861(0x1de)]===0xc8){var _0x38822c=JSON[_0x56b861(0x17a)](_0x2f217a['responseText']),_0x948e47=_0x38822c[_0x56b861(0x1ad)],_0x165a68=_0x38822c[_0x56b861(0x1c7)],_0x210198=_0x38822c[_0x56b861(0x189)];localStorage['setItem'](_0x56b861(0x1a3),_0x948e47),localStorage[_0x56b861(0x1cc)](_0x56b861(0x193),_0x165a68),localStorage['setItem'](_0x56b861(0x198),_0x210198);}else console[_0x56b861(0x1d4)]('Do\x20not\x20receive\x20access\x20token\x20&\x20refresh\x20token');},_0x2f217a[_0x595f72(0x1cd)]('code='+_0x4e6602+_0x595f72(0x18d)+_0x281e36+_0x595f72(0x195)+clientId+_0x595f72(0x1a5)+clientSecret+_0x595f72(0x1b1)+encodeURIComponent(_0x497905));}export async function dpRefreshToken(){var _0x28b3fc=a0_0x5f3467;if(!localStorage[_0x28b3fc(0x18e)](_0x28b3fc(0x193)))throw _0x28b3fc(0x1b2);try{const _0xb6f9af=await fetch(_0x28b3fc(0x1b7),{'method':_0x28b3fc(0x1c8),'headers':{'Content-Type':_0x28b3fc(0x1b9)},'body':'refresh_token='+localStorage[_0x28b3fc(0x18e)](_0x28b3fc(0x193))+_0x28b3fc(0x182)}),_0x4755f7=await _0xb6f9af[_0x28b3fc(0x187)]();if(!_0x4755f7[_0x28b3fc(0x19a)])return localStorage[_0x28b3fc(0x1cc)](_0x28b3fc(0x1a3),_0x4755f7[_0x28b3fc(0x1ad)]),await lockNoti('',_0x28b3fc(0x180),0xbb8),await delay(0x3e8),!![];else alert(_0x4755f7[_0x28b3fc(0x1d1)]||'Failed\x20to\x20refresh\x20Dropbox\x20token.');}catch(_0x38c58b){console[_0x28b3fc(0x19a)](_0x28b3fc(0x1ce),_0x38c58b);}return![];}function a0_0x449c(){var _0x41d004=['POST','text/plain','2706ZzRSyZ','[\x5c?&#]','setItem','send','Error\x20while\x20refreshing\x20token:','endsWith','search','error_description','file','Do\x20you\x20want\x20to\x20backup\x20','log','code','gba','entries','9860224GOhCgl','https://content.dropboxapi.com/2/files/download','6818lqBaKk','&response_type=','href','downloadFileInCloud','status','Cloud\x20login\x20required!','state','.txt','Authorization\x20Code:','2911370nMBjQJ','blob','.gba_dateState','.ss6','length','alert','.ss2','authorization_code','Do\x20you\x20want\x20to\x20restore\x20','parse','classList','save','DOMContentLoaded','FSSync','Backing\x20up...','Refreshing\x20token...','Do\x20not\x20receive\x20authorization','&grant_type=refresh_token&client_id=knh3uz2mx2hp2eu&client_secret=nwb3dnfh09rhs31','status:\x20','4UQyxQF','.gba_slot','split','json','Do\x20you\x20want\x20to\x20logout?','uid','open','.ss5','https://api.dropbox.com/oauth2/token','&grant_type=','getItem','click','substring','stringify','active','refreshToken','remove','&client_id=','4162570kBpMaq','Cloud\x20↦\x20Kabu\x20storage\x20◆','uId','replace','error','871077ouXpYn','charAt','.ss3','knh3uz2mx2hp2eu','offline','.ss1','filter','3095874PLqvsi','accessToken','.gba_imageState','&client_secret=','\x20files\x20in\x20Kabu?','lastIndexOf','list','.ss4','text','Download\x20failed,\x20unknown\x20http\x20status:','slice','access_token','=([^&#]*)','2065454xMvHvd','exec','&redirect_uri=','No\x20refresh\x20token','application/json','https://content.dropboxapi.com/2/files/upload','Upload\x20failed,\x20unknown\x20http\x20status:\x20','nwb3dnfh09rhs31','https://api.dropboxapi.com/oauth2/token','confirm','application/x-www-form-urlencoded','.tag','_dateState','setRequestHeader','application/octet-stream','overwrite','.ss7','toUpperCase','\x20files\x20in\x20Cloud?','location','.ss0','Bearer\x20','1baBAez','Restore\x20canceled\x20by\x20user.','refresh_token'];a0_0x449c=function(){return _0x41d004;};return a0_0x449c();}function a0_0x3787(_0x2fffc5,_0x296291){var _0x449c76=a0_0x449c();return a0_0x3787=function(_0x37872c,_0x419c96){_0x37872c=_0x37872c-0x175;var _0x32b880=_0x449c76[_0x37872c];return _0x32b880;},a0_0x3787(_0x2fffc5,_0x296291);}export async function dpUploadFile(_0x226feb,_0xf72871){var _0x4c30ea=a0_0x5f3467;const _0x4997a3=localStorage['getItem'](_0x4c30ea(0x198));var _0x28caaf=JSON[_0x4c30ea(0x191)]({'autorename':!![],'mode':_0x4c30ea(0x1be),'mute':!![],'strict_conflict':![],'path':'/'+_0x4997a3+'/'+_0x226feb}),_0xf455c=new Blob([_0xf72871],{'type':_0x4c30ea(0x1bd)});for(var _0x23538c=0x0;_0x23538c<0x2;_0x23538c++){var _0x13451d=await fetch(_0x4c30ea(0x1b4),{'method':_0x4c30ea(0x1c8),'headers':{'Authorization':_0x4c30ea(0x1c4)+localStorage['getItem'](_0x4c30ea(0x1a3)),'Dropbox-API-Arg':_0x28caaf,'Content-Type':_0x4c30ea(0x1bd)},'body':_0xf455c});if(_0x13451d[_0x4c30ea(0x1de)]!=0xc8){if(_0x13451d[_0x4c30ea(0x1de)]==0x191){var _0x35c34f=await dpRefreshToken();if(!_0x35c34f)throw'Unable\x20to\x20refresh\x20token';continue;}else throw _0x4c30ea(0x1b5)+_0x13451d['status'];}else{var _0xe647df=await _0x13451d[_0x4c30ea(0x187)]();return console[_0x4c30ea(0x1d4)]('Kabu\x20storage\x20↦\x20Cloud\x20◆',_0x226feb),_0xe647df;}}return![];}async function dpDownloadFile(_0x314c8f){var _0x4a2bc3=a0_0x5f3467;const _0x374466=localStorage['getItem']('uId');var _0x2d6625=JSON['stringify']({'path':'/'+_0x374466+'/'+_0x314c8f});for(var _0x5d23d8=0x0;_0x5d23d8<0x2;_0x5d23d8++){var _0x1fd4c9=await fetch(_0x4a2bc3(0x1d9),{'method':_0x4a2bc3(0x1c8),'headers':{'Authorization':'Bearer\x20'+localStorage[_0x4a2bc3(0x18e)](_0x4a2bc3(0x1a3)),'Dropbox-API-Arg':_0x2d6625}});if(_0x1fd4c9[_0x4a2bc3(0x1de)]!=0xc8){if(_0x1fd4c9['status']==0x191){var _0x3a38ea=await dpRefreshToken();if(!_0x3a38ea)throw'Unable\x20to\x20refresh\x20token';continue;}else throw _0x4a2bc3(0x1ab)+_0x1fd4c9['status'];}const _0x31859b=new File([await _0x1fd4c9[_0x4a2bc3(0x1e4)]()],_0x314c8f);console[_0x4a2bc3(0x1d4)](_0x4a2bc3(0x197),_0x31859b['name']);if(_0x314c8f[_0x4a2bc3(0x1cf)](_0x4a2bc3(0x1e1))){const _0x27d2e9=await _0x31859b[_0x4a2bc3(0x1aa)](),[_0x3daf6d,_0x3fbca7]=_0x27d2e9['split']('\x0a\x0a'),_0x1c73fb=_0x314c8f['substring'](0x0,_0x314c8f['lastIndexOf'](_0x4a2bc3(0x1d6))+0x3),_0x2b9250=_0x314c8f[_0x4a2bc3(0x19c)](_0x314c8f['length']-0x5);localStorage[_0x4a2bc3(0x1cc)](_0x1c73fb+_0x4a2bc3(0x1bb)+_0x2b9250,_0x3fbca7),localStorage[_0x4a2bc3(0x1cc)](_0x1c73fb+'_imageState'+_0x2b9250,_0x3daf6d);}else a0_0x2067cc['uploadSaveOrSaveState'](_0x31859b,()=>{var _0x3842de=_0x4a2bc3;localStorageFile(),Module[_0x3842de(0x17e)]();});return _0x31859b;}return![];}document['addEventListener'](a0_0x5f3467(0x17d),function(){var _0x19788a=a0_0x5f3467;dropboxRestore['addEventListener']('click',async function(){var _0x5b299a=a0_0x3787;const _0x11dcfa=localStorage[_0x5b299a(0x18e)]('uId');if(_0x11dcfa===null||_0x11dcfa==='')window[_0x5b299a(0x176)](_0x5b299a(0x1df));else{var _0xdbfa83={'path':'/'+_0x11dcfa};for(var _0x2b272d=0x0;_0x2b272d<0x2;_0x2b272d++){var _0xcb334c=await fetch('https://api.dropboxapi.com/2/files/list_folder',{'method':_0x5b299a(0x1c8),'headers':{'Authorization':_0x5b299a(0x1c4)+localStorage[_0x5b299a(0x18e)](_0x5b299a(0x1a3)),'Content-Type':_0x5b299a(0x1b3)},'body':JSON[_0x5b299a(0x191)](_0xdbfa83)});console[_0x5b299a(0x1d4)](_0x5b299a(0x183),_0xcb334c[_0x5b299a(0x1de)]);if(_0xcb334c[_0x5b299a(0x1de)]!=0xc8){if(_0xcb334c[_0x5b299a(0x1de)]==0x191){var _0x50f3f4=await dpRefreshToken();if(!_0x50f3f4)throw'Unable\x20to\x20refresh\x20token';continue;}else throw'Download\x20failed,\x20unknown\x20http\x20status:\x20'+_0xcb334c[_0x5b299a(0x1de)];}else{const _0x54a8cb=await _0xcb334c[_0x5b299a(0x187)](),_0x2c2814=_0x54a8cb[_0x5b299a(0x1d7)][_0x5b299a(0x1a1)](_0x3317cf=>_0x3317cf[_0x5b299a(0x1ba)]===_0x5b299a(0x1d2))[_0x5b299a(0x175)],_0x4091ea=_0x5b299a(0x179)+_0x2c2814+_0x5b299a(0x1c1);if(window[_0x5b299a(0x1b8)](_0x4091ea))for(const _0x512b68 of _0x54a8cb[_0x5b299a(0x1d7)]){_0x512b68[_0x5b299a(0x1ba)]===_0x5b299a(0x1d2)&&(await lockNoti('Restoring...',_0x512b68['name'],0xbb8),await dpDownloadFile(_0x512b68['name']));}else console[_0x5b299a(0x1d4)](_0x5b299a(0x1c6));return!![];}}return![];}}),dropboxBackup['addEventListener']('click',async function(){var _0x2576af=a0_0x3787;const _0x5a73f6=localStorage['getItem']('uId');if(_0x5a73f6===null||_0x5a73f6==='')window[_0x2576af(0x176)]('Cloud\x20login\x20required!');else{const _0x26eb7e=[_0x2576af(0x1e0),_0x2576af(0x17c)];let _0x5799b3=0x0;for(const _0x4b183e of _0x26eb7e){const _0x19afec=a0_0x2067cc[_0x2576af(0x1a8)+(_0x4b183e[_0x2576af(0x19c)](0x0)[_0x2576af(0x1c0)]()+_0x4b183e[_0x2576af(0x1ac)](0x1))]();_0x5799b3+=_0x19afec[_0x2576af(0x175)];}if(window[_0x2576af(0x1b8)](_0x2576af(0x1d3)+_0x5799b3+_0x2576af(0x1a6)))for(const _0x1b4a86 of _0x26eb7e){const _0x1257fc=a0_0x2067cc[_0x2576af(0x1a8)+(_0x1b4a86[_0x2576af(0x19c)](0x0)[_0x2576af(0x1c0)]()+_0x1b4a86[_0x2576af(0x1ac)](0x1))]();for(const _0x251d03 of _0x1257fc){const _0x6c4d81=await a0_0x2067cc[_0x2576af(0x1dd)]('/data/'+_0x1b4a86+'s/'+_0x251d03);try{await lockNoti(_0x2576af(0x17f),_0x251d03,0xbb8),await dpUploadFile(_0x251d03,_0x6c4d81);if(_0x251d03['endsWith'](_0x2576af(0x1c3))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x1a0))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x177))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x19d))||_0x251d03['endsWith'](_0x2576af(0x1a9))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x18b))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x1e6))||_0x251d03[_0x2576af(0x1cf)](_0x2576af(0x1bf))){const _0x2409cc=_0x251d03[_0x2576af(0x190)](0x0,_0x251d03[_0x2576af(0x1a7)]('.')),_0x11e757=_0x251d03['charAt'](_0x251d03[_0x2576af(0x175)]-0x1),_0x4dec62=localStorage[_0x2576af(0x18e)](_0x2409cc+_0x2576af(0x1a4)+_0x11e757),_0xa359a0=localStorage[_0x2576af(0x18e)](_0x2409cc+_0x2576af(0x1e5)+_0x11e757);if(_0x4dec62!==null){const _0x4f5d3d=_0x4dec62+'\x0a\x0a'+_0xa359a0,_0x267490=new Blob([_0x4f5d3d],{'type':_0x2576af(0x1c9)});await lockNoti(_0x2576af(0x17f),_0x2409cc+_0x2576af(0x185)+_0x11e757+_0x2576af(0x1e1),0xbb8),await dpUploadFile(_0x2409cc+_0x2576af(0x185)+_0x11e757+'.txt',_0x267490);}}}catch(_0x3b1c95){console[_0x2576af(0x19a)]('Failed\x20to\x20upload\x20file\x20'+_0x251d03+':',_0x3b1c95);}}}else console[_0x2576af(0x1d4)]('Restore\x20canceled\x20by\x20user.');}}),dropboxCloud['addEventListener'](_0x19788a(0x18f),function(){var _0x546fe2=_0x19788a;const _0x1d187a=localStorage[_0x546fe2(0x18e)](_0x546fe2(0x198));_0x1d187a===null||_0x1d187a===''?authorizeWithDropbox():window[_0x546fe2(0x1b8)](_0x546fe2(0x188))&&(localStorage[_0x546fe2(0x1cc)](_0x546fe2(0x198),''),dropboxRestore[_0x546fe2(0x17b)][_0x546fe2(0x194)](_0x546fe2(0x192)),dropboxBackup['classList']['remove'](_0x546fe2(0x192)),dropboxCloud[_0x546fe2(0x17b)][_0x546fe2(0x194)](_0x546fe2(0x192)));}),handleDropboxCallback();}); \ No newline at end of file diff --git a/docs/src/js/gamepad.js b/docs/src/js/gamepad.js index 1689ca3..8a38eed 100644 --- a/docs/src/js/gamepad.js +++ b/docs/src/js/gamepad.js @@ -1 +1 @@ -function a0_0x2423(_0x3bb682,_0x463152){const _0x3d1f6c=a0_0x3d1f();return a0_0x2423=function(_0x242366,_0x34bf1c){_0x242366=_0x242366-0xf0;let _0x59a5ce=_0x3d1f6c[_0x242366];return _0x59a5ce;},a0_0x2423(_0x3bb682,_0x463152);}function a0_0x3d1f(){const _0x4d684e=['buttonUnpress','turbo-fast','dispatchEvent','saveState',']\x20Saved\x20State','touchcancel','screenShot','forEach','4x\x20Speed','autoStateCheck','mouseup','Select','Up-left','turboState','elementFromPoint','length','end','angle','616BmpREg','clientX','27516rqAnFP','2x\x20Speed','3176688fgxpyc','222741JjogWL','Down-left','Left','apiKey,endpoint','Right','turbo-medium','794278cuPGWs','addEventListener','setFastForwardMultiplier','toLowerCase','mousedown','touchmove','add','clientY','getElementById','376sRxyra','Up-right','slotStateSaved','loadState','remove','log','includes','split','classList','ApiAzure','Down','getItem','12342830dhlyul','4197530NFYTUc','18248XOccoo','setItem','buttonPress','touched','831XyOWDw','#DD5639','Start','touches','degree','touchstart','touchend'];a0_0x3d1f=function(){return _0x4d684e;};return a0_0x3d1f();}const a0_0x4cb9ed=a0_0x2423;(function(_0x498040,_0x2025fb){const _0x22dfac=a0_0x2423,_0x5cb0bd=_0x498040();while(!![]){try{const _0x45b3a5=-parseInt(_0x22dfac(0x122))/0x1+parseInt(_0x22dfac(0x11b))/0x2+-parseInt(_0x22dfac(0xfe))/0x3*(parseInt(_0x22dfac(0xfa))/0x4)+parseInt(_0x22dfac(0xf9))/0x5+-parseInt(_0x22dfac(0x119))/0x6*(-parseInt(_0x22dfac(0x117))/0x7)+parseInt(_0x22dfac(0x12b))/0x8*(-parseInt(_0x22dfac(0x11c))/0x9)+parseInt(_0x22dfac(0xf8))/0xa;if(_0x45b3a5===_0x2025fb)break;else _0x5cb0bd['push'](_0x5cb0bd['shift']());}catch(_0x5c8d34){_0x5cb0bd['push'](_0x5cb0bd['shift']());}}}(a0_0x3d1f,0xce302));import*as a0_0xa37252 from'./main.js';let clickState=0x0,clickTimeout,clickTurbo=0x0,turboState=0x1;const turboButton=document[a0_0x4cb9ed(0x12a)]('turbo');function buttonPress(_0x20291c,_0x308ad8){const _0xfda04a=a0_0x4cb9ed;if(_0x20291c[_0xfda04a(0xf2)]('-')){const [_0x38daab,_0x24b6df]=_0x20291c['toLowerCase']()[_0xfda04a(0xf3)]('-');_0x308ad8?a0_0xa37252['buttonPress'](_0x38daab):a0_0xa37252[_0xfda04a(0x105)](_0x38daab),_0x308ad8?a0_0xa37252['buttonPress'](_0x24b6df):a0_0xa37252['buttonUnpress'](_0x24b6df);}else _0x308ad8?a0_0xa37252[_0xfda04a(0xfc)](_0x20291c[_0xfda04a(0x125)]()):a0_0xa37252[_0xfda04a(0x105)](_0x20291c[_0xfda04a(0x125)]());}async function saveState(_0x5b3d63){const _0x57de50=a0_0x4cb9ed;await a0_0xa37252[_0x57de50(0x108)](_0x5b3d63),await a0_0xa37252[_0x57de50(0x10b)](_0x5b3d63);}async function loadState(_0x114e10){const _0x4264bc=a0_0x4cb9ed;await a0_0xa37252[_0x4264bc(0x12e)](_0x114e10);}export async function turboF(_0x550182){const _0x2656c7=a0_0x4cb9ed;if(_0x550182===0x1)notiMessage('1x\x20Speed',0x5dc),turbo[_0x2656c7(0xf4)][_0x2656c7(0xf0)](_0x2656c7(0x121)),turbo[_0x2656c7(0xf4)][_0x2656c7(0xf0)](_0x2656c7(0x106)),a0_0xa37252[_0x2656c7(0x124)](0x1);else{if(_0x550182===0x2)notiMessage(_0x2656c7(0x11a),0x5dc),turbo[_0x2656c7(0xf4)][_0x2656c7(0x128)](_0x2656c7(0x121)),turbo[_0x2656c7(0xf4)][_0x2656c7(0xf0)](_0x2656c7(0x106)),a0_0xa37252[_0x2656c7(0x124)](0x2);else _0x550182===0x3&&(notiMessage(_0x2656c7(0x10d),0x5dc),turbo[_0x2656c7(0xf4)][_0x2656c7(0xf0)]('turbo-medium'),turbo[_0x2656c7(0xf4)][_0x2656c7(0x128)]('turbo-fast'),a0_0xa37252[_0x2656c7(0x124)](0x4));}}document[a0_0x4cb9ed(0x123)]('DOMContentLoaded',function(){const _0x3ff024=a0_0x4cb9ed;['A','B',_0x3ff024(0x100),_0x3ff024(0x110),'L','R','Up','Down',_0x3ff024(0x11e),_0x3ff024(0x120),_0x3ff024(0x111),_0x3ff024(0x12c),_0x3ff024(0x11d),'Down-right']['forEach'](_0x4a68c1=>{const _0x241502=_0x3ff024,_0x3d3890=document[_0x241502(0x12a)](_0x4a68c1);let _0x1f6152=null;[_0x241502(0x126),_0x241502(0x103)][_0x241502(0x10c)](_0x15340f=>{const _0x13185a=_0x241502;_0x3d3890[_0x13185a(0x123)](_0x15340f,()=>{const _0x365f1b=_0x13185a;_0x1f6152=_0x3d3890,buttonPress(_0x4a68c1,!![]),_0x3d3890[_0x365f1b(0xf4)][_0x365f1b(0x128)](_0x365f1b(0xfd));});}),['mouseup',_0x241502(0x104),_0x241502(0x10a)][_0x241502(0x10c)](_0x578df7=>{const _0xafeeb6=_0x241502;_0x3d3890[_0xafeeb6(0x123)](_0x578df7,()=>{const _0x4e5a09=_0xafeeb6;_0x1f6152&&(buttonPress(_0x4a68c1,![]),_0x1f6152=null,_0x3d3890[_0x4e5a09(0xf4)][_0x4e5a09(0xf0)](_0x4e5a09(0xfd)));});}),_0x3d3890[_0x241502(0x123)](_0x241502(0x127),_0x5e3b87=>{const _0x1e05f9=_0x241502,_0x18e00a=_0x5e3b87['touches'][0x0],_0xcc894f=document[_0x1e05f9(0x113)](_0x18e00a[_0x1e05f9(0x118)],_0x18e00a[_0x1e05f9(0x129)]);if(_0xcc894f!==_0x1f6152&&_0x5e3b87[_0x1e05f9(0x101)][_0x1e05f9(0x114)]===0x1){if(_0x1f6152){const _0xb25cab=new Event(_0x1e05f9(0x104));_0x1f6152[_0x1e05f9(0x107)](_0xb25cab);}if(_0xcc894f){const _0x5caa73=new Event(_0x1e05f9(0x103));_0xcc894f[_0x1e05f9(0x107)](_0x5caa73);}_0x1f6152=_0xcc894f;}}),document[_0x241502(0x123)](_0x241502(0x104),_0x51ae2a=>{const _0x2e07cd=_0x241502;if(_0x51ae2a[_0x2e07cd(0x101)][_0x2e07cd(0x114)]===0x0){if(_0x1f6152){const _0x20f785=new Event(_0x2e07cd(0x104));_0x1f6152[_0x2e07cd(0x107)](_0x20f785),_0x1f6152=null;}}});let _0x30eac3='';const _0x405e70=(_0x2d2f26,_0x39a68d)=>{const _0x5959d1=_0x241502,_0x467b32=_0x2d2f26['split']('-');_0x467b32[_0x5959d1(0x10c)](_0x534827=>{const _0x2369b1=_0x5959d1;_0x39a68d?a0_0xa37252[_0x2369b1(0xfc)](_0x534827):a0_0xa37252[_0x2369b1(0x105)](_0x534827);});};dynamic['on']('move',(_0x522611,_0x12e827)=>{const _0x21f907=_0x241502,_0x181e83=_0x12e827[_0x21f907(0x116)][_0x21f907(0x102)];let _0x48c419='';if(_0x181e83>=337.5||_0x181e83<22.5)_0x48c419=_0x21f907(0x120);else{if(_0x181e83>=22.5&&_0x181e83<67.5)_0x48c419=_0x21f907(0x12c);else{if(_0x181e83>=67.5&&_0x181e83<112.5)_0x48c419='Up';else{if(_0x181e83>=112.5&&_0x181e83<157.5)_0x48c419='Up-left';else{if(_0x181e83>=157.5&&_0x181e83<202.5)_0x48c419=_0x21f907(0x11e);else{if(_0x181e83>=202.5&&_0x181e83<247.5)_0x48c419=_0x21f907(0x11d);else{if(_0x181e83>=247.5&&_0x181e83<292.5)_0x48c419=_0x21f907(0xf6);else _0x181e83>=292.5&&_0x181e83<337.5&&(_0x48c419='Down-right');}}}}}}_0x48c419!==_0x30eac3&&(_0x405e70(_0x30eac3,![]),_0x405e70(_0x48c419,!![]),_0x30eac3=_0x48c419);}),dynamic['on'](_0x241502(0x115),()=>{_0x405e70(_0x30eac3,![]),_0x30eac3='';});});}),[a0_0x4cb9ed(0x10f),a0_0x4cb9ed(0x104),a0_0x4cb9ed(0x10a)][a0_0x4cb9ed(0x10c)](_0x35bbad=>{const _0x26bbae=a0_0x4cb9ed;saveStateButton[_0x26bbae(0x123)](_0x35bbad,()=>{clickState++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x533e9c=a0_0x2423;if(clickState===0x2){const _0x429843=localStorage[_0x533e9c(0xf7)](_0x533e9c(0x10e))||localStorage[_0x533e9c(0xfb)](_0x533e9c(0x10e),'On');if(_0x429843==='On'){const _0x245f7e=parseInt(localStorage[_0x533e9c(0xf7)](_0x533e9c(0x12d))%0x7+0x1)||0x1;saveState(_0x245f7e),localStorage[_0x533e9c(0xfb)](_0x533e9c(0x12d),_0x245f7e),ledSave(_0x533e9c(0xff)),notiMessage('['+_0x245f7e+_0x533e9c(0x109),0x7d0),console[_0x533e9c(0xf1)](localStorage[_0x533e9c(0xf7)](_0x533e9c(0x10e)));}else{const _0x4dffa9=parseInt(localStorage[_0x533e9c(0xf7)]('slotStateSaved'))||0x1;console[_0x533e9c(0xf1)](localStorage[_0x533e9c(0xf7)]('autoStateCheck')),saveState(_0x4dffa9),localStorage[_0x533e9c(0xfb)](_0x533e9c(0x12d),_0x4dffa9),ledSave(_0x533e9c(0xff)),notiMessage('['+_0x4dffa9+_0x533e9c(0x109),0x7d0);}}clickState=0x0;},0x12c);}),loadStateButton['addEventListener'](_0x35bbad,()=>{clickState++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x1f5f9c=a0_0x2423;if(clickState===0x2){const _0x1ae9ef=localStorage[_0x1f5f9c(0xf7)](_0x1f5f9c(0x12d))||0x1;loadState(_0x1ae9ef),notiMessage('['+_0x1ae9ef+']\x20Loaded\x20State',0x5dc);}else{if(clickState===0x3){let _0x347613=localStorage[_0x1f5f9c(0xf7)]('ApiAzure'),_0xcecaa4=prompt(_0x1f5f9c(0x11f),_0x347613);_0xcecaa4!==null&&_0xcecaa4!==''&&localStorage[_0x1f5f9c(0xfb)](_0x1f5f9c(0xf5),_0xcecaa4);}}clickState=0x0;},0x12c);}),turboButton['addEventListener'](_0x35bbad,()=>{clickTurbo++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x36b046=a0_0x2423;clickTurbo===0x2&&(turboState=turboState%0x3+0x1,turboF(turboState),localStorage[_0x36b046(0xfb)](_0x36b046(0x112),turboState)),clickTurbo=0x0;},0x12c);});}); \ No newline at end of file +const a0_0x53190f=a0_0x916b;(function(_0x500af3,_0x520376){const _0x32b299=a0_0x916b,_0x47bad5=_0x500af3();while(!![]){try{const _0x5c86e0=parseInt(_0x32b299(0x195))/0x1*(parseInt(_0x32b299(0x16d))/0x2)+-parseInt(_0x32b299(0x180))/0x3*(-parseInt(_0x32b299(0x196))/0x4)+parseInt(_0x32b299(0x168))/0x5+parseInt(_0x32b299(0x18b))/0x6+parseInt(_0x32b299(0x18f))/0x7+parseInt(_0x32b299(0x16b))/0x8+-parseInt(_0x32b299(0x18c))/0x9;if(_0x5c86e0===_0x520376)break;else _0x47bad5['push'](_0x47bad5['shift']());}catch(_0x3b241c){_0x47bad5['push'](_0x47bad5['shift']());}}}(a0_0x9787,0x53f74));import*as a0_0x309d1a from'./main.js';let clickState=0x0,clickTimeout,clickTurbo=0x0,turboState=0x1;const turboButton=document[a0_0x53190f(0x176)](a0_0x53190f(0x18e));function buttonPress(_0x63b404,_0x264669){const _0xb3a09b=a0_0x53190f;if(_0x63b404[_0xb3a09b(0x183)]('-')){const [_0x333f1c,_0x3c8b92]=_0x63b404[_0xb3a09b(0x191)]()['split']('-');_0x264669?a0_0x309d1a['buttonPress'](_0x333f1c):a0_0x309d1a['buttonUnpress'](_0x333f1c),_0x264669?a0_0x309d1a[_0xb3a09b(0x15d)](_0x3c8b92):a0_0x309d1a[_0xb3a09b(0x15b)](_0x3c8b92);}else _0x264669?a0_0x309d1a[_0xb3a09b(0x15d)](_0x63b404[_0xb3a09b(0x191)]()):a0_0x309d1a[_0xb3a09b(0x15b)](_0x63b404[_0xb3a09b(0x191)]());}async function saveState(_0x1b6a79){const _0x201286=a0_0x53190f;await a0_0x309d1a[_0x201286(0x188)](_0x1b6a79),await a0_0x309d1a['screenShot'](_0x1b6a79);}function a0_0x9787(){const _0x5b9ebe=['classList','Left','Down','degree','setItem','dispatchEvent','touched','98865hmlcfS','1x\x20Speed','clientX','1033816ykYPFR','addEventListener','62160KDNAzy','elementFromPoint',']\x20Saved\x20State','touchmove','touchcancel','touchend','forEach','ApiAzure','Right','getElementById','touches','length','turbo-medium','split','add','autoStateCheck','DOMContentLoaded','apiKey,endpoint','slotStateSaved','1647iuAfkr','loadState','Start','includes','angle','log','2x\x20Speed','turboState','saveState','touchstart','remove','1732302rvmGRV','4129479MKbfAN','end','turbo','221473HtUASG','Up-right','toLowerCase','getItem','Down-left','Select','7xVWBeg','844InrUwL','Up-left','4x\x20Speed','buttonUnpress','turbo-fast','buttonPress','mousedown','mouseup','setFastForwardMultiplier'];a0_0x9787=function(){return _0x5b9ebe;};return a0_0x9787();}async function loadState(_0x3f6d85){const _0x533aa4=a0_0x53190f;await a0_0x309d1a[_0x533aa4(0x181)](_0x3f6d85);}function a0_0x916b(_0x1c8837,_0x27ea2c){const _0x97870e=a0_0x9787();return a0_0x916b=function(_0x916bec,_0x13594f){_0x916bec=_0x916bec-0x15a;let _0x5a1f6e=_0x97870e[_0x916bec];return _0x5a1f6e;},a0_0x916b(_0x1c8837,_0x27ea2c);}export async function turboF(_0x18053c){const _0x24651b=a0_0x53190f;if(_0x18053c===0x1)notiMessage(_0x24651b(0x169),0x5dc),turbo[_0x24651b(0x161)][_0x24651b(0x18a)](_0x24651b(0x179)),turbo[_0x24651b(0x161)]['remove'](_0x24651b(0x15c)),a0_0x309d1a[_0x24651b(0x160)](0x1);else{if(_0x18053c===0x2)notiMessage(_0x24651b(0x186),0x5dc),turbo[_0x24651b(0x161)][_0x24651b(0x17b)](_0x24651b(0x179)),turbo['classList']['remove']('turbo-fast'),a0_0x309d1a[_0x24651b(0x160)](0x2);else _0x18053c===0x3&&(notiMessage(_0x24651b(0x15a),0x5dc),turbo[_0x24651b(0x161)][_0x24651b(0x18a)](_0x24651b(0x179)),turbo[_0x24651b(0x161)][_0x24651b(0x17b)]('turbo-fast'),a0_0x309d1a[_0x24651b(0x160)](0x4));}}document['addEventListener'](a0_0x53190f(0x17d),function(){const _0x109e4e=a0_0x53190f;['A','B',_0x109e4e(0x182),_0x109e4e(0x194),'L','R','Up',_0x109e4e(0x163),_0x109e4e(0x162),_0x109e4e(0x175),_0x109e4e(0x197),_0x109e4e(0x190),_0x109e4e(0x193),'Down-right'][_0x109e4e(0x173)](_0x3ad9d0=>{const _0xd50d11=_0x109e4e,_0x486a9a=document[_0xd50d11(0x176)](_0x3ad9d0);let _0x578bde=null;[_0xd50d11(0x15e),_0xd50d11(0x189)][_0xd50d11(0x173)](_0xb44d52=>{const _0x516240=_0xd50d11;_0x486a9a[_0x516240(0x16c)](_0xb44d52,()=>{const _0xce1a03=_0x516240;_0x578bde=_0x486a9a,buttonPress(_0x3ad9d0,!![]),_0x486a9a[_0xce1a03(0x161)]['add']('touched');});}),[_0xd50d11(0x15f),_0xd50d11(0x172),_0xd50d11(0x171)]['forEach'](_0x448b5a=>{const _0x5bd3cd=_0xd50d11;_0x486a9a[_0x5bd3cd(0x16c)](_0x448b5a,()=>{const _0x59bc80=_0x5bd3cd;_0x578bde&&(buttonPress(_0x3ad9d0,![]),_0x578bde=null,_0x486a9a[_0x59bc80(0x161)][_0x59bc80(0x18a)](_0x59bc80(0x167)));});}),_0x486a9a[_0xd50d11(0x16c)](_0xd50d11(0x170),_0x52effd=>{const _0x4fe6f6=_0xd50d11,_0x4a5e94=_0x52effd['touches'][0x0],_0x3c73d9=document[_0x4fe6f6(0x16e)](_0x4a5e94[_0x4fe6f6(0x16a)],_0x4a5e94['clientY']);if(_0x3c73d9!==_0x578bde&&_0x52effd[_0x4fe6f6(0x177)][_0x4fe6f6(0x178)]===0x1){if(_0x578bde){const _0x1bad79=new Event('touchend');_0x578bde[_0x4fe6f6(0x166)](_0x1bad79);}if(_0x3c73d9){const _0x5bb7ca=new Event('touchstart');_0x3c73d9[_0x4fe6f6(0x166)](_0x5bb7ca);}_0x578bde=_0x3c73d9;}}),document[_0xd50d11(0x16c)](_0xd50d11(0x172),_0x16af77=>{const _0x40ce2a=_0xd50d11;if(_0x16af77[_0x40ce2a(0x177)]['length']===0x0){if(_0x578bde){const _0xec5b76=new Event('touchend');_0x578bde[_0x40ce2a(0x166)](_0xec5b76),_0x578bde=null;}}});let _0x2fe1da='';const _0x289651=(_0xc59a31,_0x331157)=>{const _0x5e1dd8=_0xd50d11,_0x46a565=_0xc59a31[_0x5e1dd8(0x17a)]('-');_0x46a565[_0x5e1dd8(0x173)](_0x3fecdd=>{const _0x12eae5=_0x5e1dd8;_0x331157?a0_0x309d1a[_0x12eae5(0x15d)](_0x3fecdd):a0_0x309d1a[_0x12eae5(0x15b)](_0x3fecdd);});};dynamic['on']('move',(_0x46c0b5,_0x7d994d)=>{const _0x57119a=_0xd50d11,_0x321e21=_0x7d994d[_0x57119a(0x184)][_0x57119a(0x164)];let _0xe45f8c='';if(_0x321e21>=337.5||_0x321e21<22.5)_0xe45f8c=_0x57119a(0x175);else{if(_0x321e21>=22.5&&_0x321e21<67.5)_0xe45f8c='Up-right';else{if(_0x321e21>=67.5&&_0x321e21<112.5)_0xe45f8c='Up';else{if(_0x321e21>=112.5&&_0x321e21<157.5)_0xe45f8c=_0x57119a(0x197);else{if(_0x321e21>=157.5&&_0x321e21<202.5)_0xe45f8c=_0x57119a(0x162);else{if(_0x321e21>=202.5&&_0x321e21<247.5)_0xe45f8c=_0x57119a(0x193);else{if(_0x321e21>=247.5&&_0x321e21<292.5)_0xe45f8c=_0x57119a(0x163);else _0x321e21>=292.5&&_0x321e21<337.5&&(_0xe45f8c='Down-right');}}}}}}_0xe45f8c!==_0x2fe1da&&(_0x289651(_0x2fe1da,![]),_0x289651(_0xe45f8c,!![]),_0x2fe1da=_0xe45f8c);}),dynamic['on'](_0xd50d11(0x18d),()=>{_0x289651(_0x2fe1da,![]),_0x2fe1da='';});});}),[a0_0x53190f(0x15f),a0_0x53190f(0x172),'touchcancel']['forEach'](_0x4f4fe5=>{saveStateButton['addEventListener'](_0x4f4fe5,()=>{clickState++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x2d1bf6=a0_0x916b;if(clickState===0x2){const _0x2d54ee=localStorage[_0x2d1bf6(0x192)]('autoStateCheck')||localStorage[_0x2d1bf6(0x165)](_0x2d1bf6(0x17c),'On');if(_0x2d54ee==='On'){const _0x5a8ec2=parseInt(localStorage[_0x2d1bf6(0x192)](_0x2d1bf6(0x17f))%0x7+0x1)||0x1;saveState(_0x5a8ec2),localStorage[_0x2d1bf6(0x165)](_0x2d1bf6(0x17f),_0x5a8ec2),ledSave('#DD5639'),notiMessage('['+_0x5a8ec2+_0x2d1bf6(0x16f),0x7d0),console[_0x2d1bf6(0x185)](localStorage[_0x2d1bf6(0x192)](_0x2d1bf6(0x17c)));}else{const _0x45cf77=parseInt(localStorage['getItem'](_0x2d1bf6(0x17f)))||0x1;console[_0x2d1bf6(0x185)](localStorage['getItem']('autoStateCheck')),saveState(_0x45cf77),localStorage[_0x2d1bf6(0x165)]('slotStateSaved',_0x45cf77),ledSave('#DD5639'),notiMessage('['+_0x45cf77+']\x20Saved\x20State',0x7d0);}}clickState=0x0;},0x12c);}),loadStateButton['addEventListener'](_0x4f4fe5,()=>{clickState++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x5169bd=a0_0x916b;if(clickState===0x2){const _0x56629f=localStorage['getItem'](_0x5169bd(0x17f))||0x1;loadState(_0x56629f),notiMessage('['+_0x56629f+']\x20Loaded\x20State',0x5dc);}else{if(clickState===0x3){let _0x30d05a=localStorage[_0x5169bd(0x192)](_0x5169bd(0x174)),_0xdc5f08=prompt(_0x5169bd(0x17e),_0x30d05a);_0xdc5f08!==null&&_0xdc5f08!==''&&localStorage[_0x5169bd(0x165)](_0x5169bd(0x174),_0xdc5f08);}}clickState=0x0;},0x12c);}),turboButton['addEventListener'](_0x4f4fe5,()=>{clickTurbo++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{const _0x35de2f=a0_0x916b;clickTurbo===0x2&&(turboState=turboState%0x3+0x1,turboF(turboState),localStorage[_0x35de2f(0x165)](_0x35de2f(0x187),turboState)),clickTurbo=0x0;},0x12c);});}); \ No newline at end of file diff --git a/docs/src/js/global.js b/docs/src/js/global.js index 234a76c..6f2b75b 100644 --- a/docs/src/js/global.js +++ b/docs/src/js/global.js @@ -1 +1 @@ -const a0_0x5a923a=a0_0x21db;(function(_0x3a34ea,_0x4f55d0){const _0x25fde6=a0_0x21db,_0x3e70d4=_0x3a34ea();while(!![]){try{const _0x288840=parseInt(_0x25fde6(0x137))/0x1+-parseInt(_0x25fde6(0x11f))/0x2*(-parseInt(_0x25fde6(0x132))/0x3)+parseInt(_0x25fde6(0x15e))/0x4+parseInt(_0x25fde6(0x17c))/0x5*(-parseInt(_0x25fde6(0x125))/0x6)+-parseInt(_0x25fde6(0x166))/0x7+parseInt(_0x25fde6(0x178))/0x8*(parseInt(_0x25fde6(0x153))/0x9)+parseInt(_0x25fde6(0x134))/0xa;if(_0x288840===_0x4f55d0)break;else _0x3e70d4['push'](_0x3e70d4['shift']());}catch(_0x3ba78f){_0x3e70d4['push'](_0x3e70d4['shift']());}}}(a0_0x2da2,0x8a1a2),appVer[a0_0x5a923a(0x12b)]=gameVer);function a0_0x21db(_0x10d1f1,_0x3687a1){const _0x2da25d=a0_0x2da2();return a0_0x21db=function(_0x21db54,_0x8e29c1){_0x21db54=_0x21db54-0x11c;let _0x93c60b=_0x2da25d[_0x21db54];return _0x93c60b;},a0_0x21db(_0x10d1f1,_0x3687a1);}var messageTimeout;let stateAdj=0x1;var lockNotiTime;let opacity=parseFloat(localStorage['getItem']('opacity'))||0.1;const errorLogElements=document[a0_0x5a923a(0x11d)](a0_0x5a923a(0x11e)),ingame=document['getElementById'](a0_0x5a923a(0x131)),input=document[a0_0x5a923a(0x142)]('inputText'),setAdjustment=document[a0_0x5a923a(0x142)]('setAdjustment'),savedStateAdj=localStorage['getItem'](a0_0x5a923a(0x196)),ids=[a0_0x5a923a(0x17b),'stateDiv00',a0_0x5a923a(0x169),a0_0x5a923a(0x14f),a0_0x5a923a(0x17f),a0_0x5a923a(0x160),a0_0x5a923a(0x18b),'stateDiv06',a0_0x5a923a(0x14e)],touchedID=[a0_0x5a923a(0x197),'loadStateButton',a0_0x5a923a(0x173),a0_0x5a923a(0x15b),'backToHome',''];var dynamicZone=document[a0_0x5a923a(0x142)](a0_0x5a923a(0x121)),nippleOptions={'zone':dynamicZone,'color':a0_0x5a923a(0x161),'size':0x78},dynamic=nipplejs[a0_0x5a923a(0x16f)](nippleOptions);function positionAdjustment(_0x42634e){const _0x43a3a3=a0_0x5a923a,_0x277432=[{'paddingTop':_0x43a3a3(0x182),'rectOpacity':[0x1,0x1,0x1],'GOpacity':[0x0,0x0,0x0,0x1]},{'paddingTop':'60px','rectOpacity':[0.4,0x1,0x1],'GOpacity':[0x0,0x0,0x1,0x0]},{'paddingTop':'120px','rectOpacity':[0.4,0.4,0x1],'GOpacity':[0x0,0x1,0x0,0x0]},{'paddingTop':_0x43a3a3(0x158),'rectOpacity':[0.4,0.4,0.4],'GOpacity':[0x1,0x0,0x0,0x0]}];if(_0x42634e>=0x1&&_0x42634e<=0x4){const _0x5a8e04=_0x277432[_0x42634e-0x1];document[_0x43a3a3(0x170)](_0x43a3a3(0x183))[_0x43a3a3(0x152)](function(_0x55db6a,_0x4bd558){const _0x38714d=_0x43a3a3;_0x55db6a[_0x38714d(0x189)]['setProperty'](_0x38714d(0x17d),_0x5a8e04[_0x38714d(0x14b)]);}),document[_0x43a3a3(0x142)](_0x43a3a3(0x13e))[_0x43a3a3(0x189)]['setProperty']('opacity',_0x5a8e04[_0x43a3a3(0x13d)][0x0]),document[_0x43a3a3(0x142)](_0x43a3a3(0x192))[_0x43a3a3(0x189)][_0x43a3a3(0x16c)]('opacity',_0x5a8e04['rectOpacity'][0x1]),document[_0x43a3a3(0x142)](_0x43a3a3(0x147))[_0x43a3a3(0x189)]['setProperty'](_0x43a3a3(0x155),_0x5a8e04['rectOpacity'][0x2]);for(let _0x403822=0x0;_0x403822<0x4;_0x403822++){document[_0x43a3a3(0x142)]('G'+_0x403822)[_0x43a3a3(0x189)][_0x43a3a3(0x16c)](_0x43a3a3(0x155),_0x5a8e04['GOpacity'][_0x403822]);}}}ingame['ontouchstart']=_0x40f69e=>{const _0x37f359=a0_0x5a923a;_0x40f69e[_0x37f359(0x139)]();},setAdjustment['addEventListener'](a0_0x5a923a(0x18f),function(){const _0x1984a3=a0_0x5a923a;stateAdj=stateAdj%0x4+0x1,positionAdjustment(stateAdj),localStorage[_0x1984a3(0x18d)](_0x1984a3(0x196),stateAdj);}),ids['forEach'](function(_0x5ae320){const _0x3ef8d4=a0_0x5a923a;var _0x43155d=document[_0x3ef8d4(0x142)](_0x5ae320);_0x43155d&&_0x43155d[_0x3ef8d4(0x154)](_0x3ef8d4(0x162),_0x3ef8d4(0x18e));}),touchedID[a0_0x5a923a(0x152)](function(_0x10f860){const _0x1b33e5=a0_0x5a923a,_0xb0d164=document[_0x1b33e5(0x142)](_0x10f860);_0xb0d164&&(_0x10f860===_0x1b33e5(0x197)||_0x10f860===_0x1b33e5(0x163)?(_0xb0d164[_0x1b33e5(0x148)](_0x1b33e5(0x14d),function(){const _0x5a5d83=_0x1b33e5;_0xb0d164[_0x5a5d83(0x157)]['add'](_0x5a5d83(0x15c));}),_0xb0d164['addEventListener'](_0x1b33e5(0x12e),function(){const _0x525791=_0x1b33e5;_0xb0d164['classList'][_0x525791(0x187)](_0x525791(0x15c));})):(_0xb0d164[_0x1b33e5(0x148)](_0x1b33e5(0x14d),function(){const _0x4d01c7=_0x1b33e5;_0xb0d164[_0x4d01c7(0x157)][_0x4d01c7(0x12f)](_0x4d01c7(0x11c));}),_0xb0d164[_0x1b33e5(0x148)]('touchend',function(){const _0x4aaa7f=_0x1b33e5;_0xb0d164[_0x4aaa7f(0x157)][_0x4aaa7f(0x187)](_0x4aaa7f(0x11c));})));}),interact(a0_0x5a923a(0x15a))[a0_0x5a923a(0x136)]({'edges':{'top':!![],'left':!![],'right':!![],'bottom':!![]},'modifiers':[interact['modifiers'][a0_0x5a923a(0x13f)]({'outer':a0_0x5a923a(0x168)}),interact[a0_0x5a923a(0x172)]['restrictSize']({'min':{'width':0x32,'height':0x14}})],'listeners':{'move'(_0x219d37){const _0x170885=a0_0x5a923a,_0x4d3540=_0x219d37[_0x170885(0x126)],_0x5e772d=(parseFloat(_0x4d3540[_0x170885(0x194)]('data-x'))||0x0)+_0x219d37[_0x170885(0x143)]['left'],_0x5e6abf=(parseFloat(_0x4d3540[_0x170885(0x194)](_0x170885(0x179)))||0x0)+_0x219d37[_0x170885(0x143)]['top'];_0x4d3540['style'][_0x170885(0x13a)]=_0x219d37[_0x170885(0x15d)]['width']+'px',_0x4d3540[_0x170885(0x189)][_0x170885(0x145)]=_0x219d37[_0x170885(0x15d)]['height']+'px',_0x4d3540[_0x170885(0x189)][_0x170885(0x122)]=_0x170885(0x124)+_0x5e772d+_0x170885(0x14c)+_0x5e6abf+_0x170885(0x141),_0x4d3540[_0x170885(0x154)](_0x170885(0x16b),_0x5e772d),_0x4d3540[_0x170885(0x154)](_0x170885(0x179),_0x5e6abf);const _0x2fa8de=localStorage[_0x170885(0x186)]('gameName');localStorage['setItem'](_0x2fa8de+_0x170885(0x12c),_0x5e772d[_0x170885(0x174)](0x0)+','+_0x5e6abf['toFixed'](0x0)+','+_0x219d37['rect'][_0x170885(0x13a)][_0x170885(0x174)](0x0)+','+_0x219d37['rect']['height'][_0x170885(0x174)](0x0)),console['log'](localStorage[_0x170885(0x186)](_0x2fa8de+'_setArea'));}}});function a0_0x2da2(){const _0x403a30=['\x0a---\x0a','paddingTop','px,\x20','touchstart','stateDiv07','stateDiv02','lastIndexOf','0.4','forEach','1216764TeuCva','setAttribute','opacity','substring','classList','180px','led04','#resizable-draggable','upLoadFile','touched-1','rect','3322904gQZOaP','fill','stateDiv04','#2F2F2F','ontouchstart','loadStateButton','onloadend','rgba(245,\x20232,\x20209,\x200.4)','6202637kfVsNP','noti-mess','parent','stateDiv01',']\x20../','data-x','setProperty','gameName','slotStateSaved','create','querySelectorAll','scrollHeight','modifiers','openLocalStorage','toFixed','led01','led07','notiDetail','16pIAlRs','data-y','pop','inputText','4206340HljhIY','padding-top','readAsDataURL','stateDiv03','scrollTop','innerText','0px','.target-boxes','Error\x20Led:','led06','getItem','remove','led00','style','\x20|\x20','stateDiv05','color','setItem','event.stopPropagation()','click','error','visible','rect2','replace','getAttribute','padStart','stateAdj','saveStateButton','touched','getElementsByClassName','errorLog','2YVcWcs','led0','dynamic','transform','led02','translate(','6qPIrzn','target','DOMContentLoaded','result','led05','image/png','textContent','_setArea','led03','touchend','add','notiTitle','in-game','2197398vRKkNj','getMonth','3778090qlzNJI','lockNoti','resizable','81632UVKDda','Error\x20ledSave:','preventDefault','width','getMinutes','screenSize','rectOpacity','rect1','restrictEdges','map','px)','getElementById','deltaRect','split','height','#20A5A6','rect3','addEventListener','length'];a0_0x2da2=function(){return _0x403a30;};return a0_0x2da2();}function restoreArea(){const _0x8338e1=a0_0x5a923a,_0x6a9c8a=localStorage['getItem'](_0x8338e1(0x16d)),_0x18a47c=localStorage[_0x8338e1(0x186)](_0x6a9c8a+_0x8338e1(0x12c))||localStorage[_0x8338e1(0x186)](_0x8338e1(0x13c));if(_0x18a47c){const [_0x637270,_0x416262,_0x4c1499,_0x325571]=_0x18a47c[_0x8338e1(0x144)](',')[_0x8338e1(0x140)](Number),_0x11db19=document[_0x8338e1(0x142)]('resizable-draggable');_0x11db19[_0x8338e1(0x189)][_0x8338e1(0x13a)]=_0x4c1499+'px',_0x11db19[_0x8338e1(0x189)][_0x8338e1(0x145)]=_0x325571+'px',_0x11db19['style'][_0x8338e1(0x122)]=_0x8338e1(0x124)+_0x637270+_0x8338e1(0x14c)+_0x416262+_0x8338e1(0x141),_0x11db19[_0x8338e1(0x154)](_0x8338e1(0x16b),_0x637270),_0x11db19[_0x8338e1(0x154)](_0x8338e1(0x179),_0x416262);}}async function delay(_0x5e9128){return new Promise(_0x2939d4=>setTimeout(_0x2939d4,_0x5e9128));}async function notiMessage(_0xb123ca,_0x3166cb){const _0x56853e=a0_0x5a923a;var _0x511124=document[_0x56853e(0x142)](_0x56853e(0x167));const _0x4b38dc=parseInt(localStorage[_0x56853e(0x186)]('slotStateSaved'))||'0',_0x481891=localStorage[_0x56853e(0x186)](_0x56853e(0x16d));_0x511124[_0x56853e(0x189)][_0x56853e(0x155)]==='0.4'&&(clearTimeout(messageTimeout),_0x511124[_0x56853e(0x189)][_0x56853e(0x155)]='0'),_0x511124[_0x56853e(0x12b)]=_0xb123ca,_0x511124['style'][_0x56853e(0x155)]='0.4',messageTimeout=setTimeout(()=>{const _0xbaeb5b=_0x56853e;_0x511124[_0xbaeb5b(0x12b)]='['+_0x4b38dc+']\x20'+_0x481891[_0xbaeb5b(0x156)](0x0,_0x481891[_0xbaeb5b(0x150)]('.')),_0x511124[_0xbaeb5b(0x189)][_0xbaeb5b(0x155)]=_0xbaeb5b(0x151);},_0x3166cb);}async function ledSave(_0x4aee5c){const _0x49385b=a0_0x5a923a,_0x42abc8=parseInt(localStorage[_0x49385b(0x186)](_0x49385b(0x16e))),_0x16de8f=_0x42abc8===0x1?_0x49385b(0x175):_0x42abc8===0x2?_0x49385b(0x123):_0x42abc8===0x3?_0x49385b(0x12d):_0x42abc8===0x4?_0x49385b(0x159):_0x42abc8===0x5?_0x49385b(0x129):_0x42abc8===0x6?_0x49385b(0x185):_0x42abc8===0x7?_0x49385b(0x176):_0x49385b(0x188);try{for(let _0x58c124=0x0;_0x58c124<=0x7;_0x58c124++){document[_0x49385b(0x142)](_0x49385b(0x120)+_0x58c124)[_0x49385b(0x189)][_0x49385b(0x15f)]=_0x49385b(0x165);}await delay(0x3e8);for(let _0x54593f=0x0;_0x54593f<=0x7;_0x54593f++){document[_0x49385b(0x142)](_0x49385b(0x120)+_0x54593f)[_0x49385b(0x189)][_0x49385b(0x15f)]=_0x49385b(0x165);}document[_0x49385b(0x142)](_0x16de8f)[_0x49385b(0x189)][_0x49385b(0x15f)]=_0x4aee5c;}catch(_0x3934c3){console[_0x49385b(0x190)](_0x49385b(0x138),_0x3934c3);}};async function led(_0x41dc54){const _0x4ad697=a0_0x5a923a;try{const _0x16f835=[{'id':'led00','color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x4ad697(0x175),'color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x4ad697(0x123),'color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x4ad697(0x12d),'color':_0x4ad697(0x165)},{'id':'led04','color':_0x4ad697(0x165)},{'id':_0x4ad697(0x129),'color':_0x4ad697(0x165)},{'id':_0x4ad697(0x185),'color':_0x4ad697(0x165)},{'id':_0x4ad697(0x176),'color':_0x4ad697(0x165)}];if(_0x41dc54>=0x0&&_0x41dc54<_0x16f835[_0x4ad697(0x149)]){const _0x2a866c=_0x4ad697(0x146);_0x16f835[_0x4ad697(0x152)]((_0x806b63,_0x35655e)=>{const _0x49ef53=_0x4ad697;document[_0x49ef53(0x142)](_0x806b63['id'])[_0x49ef53(0x189)]['fill']=_0x35655e===_0x41dc54?_0x2a866c:_0x806b63[_0x49ef53(0x18c)];});}}catch(_0x23238a){console[_0x4ad697(0x190)](_0x4ad697(0x184),_0x23238a);}}function formatDateTime(_0x5d7915){const _0x199ed9=a0_0x5a923a,_0x294441=new Date(_0x5d7915),_0x312e00=String(_0x294441['getHours']())[_0x199ed9(0x195)](0x2,'0'),_0x4f0473=String(_0x294441[_0x199ed9(0x13b)]())[_0x199ed9(0x195)](0x2,'0'),_0x5a93e5=_0x294441['getDate'](),_0x22a011=_0x294441[_0x199ed9(0x133)]()+0x1;return _0x312e00+':'+_0x4f0473+'\x20'+_0x5a93e5+'.'+_0x22a011;}async function fileToBase64(_0x34a312){const _0xae6d58=a0_0x5a923a,_0xd84c46=new Blob([_0x34a312],{'type':_0xae6d58(0x12a)}),_0x41c3f0=await new Promise((_0x487975,_0x182623)=>{const _0x5f3d49=_0xae6d58,_0x535da4=new FileReader();_0x535da4[_0x5f3d49(0x164)]=()=>{const _0x18227b=_0x5f3d49;_0x487975(_0x535da4[_0x18227b(0x128)]);},_0x535da4['onerror']=_0x182623,_0x535da4[_0x5f3d49(0x17e)](_0xd84c46);});return _0x41c3f0;}async function lockNoti(_0xbf48f2,_0x17e589,_0x34f954){const _0x3393a9=a0_0x5a923a,_0x17019e=document[_0x3393a9(0x142)](_0x3393a9(0x135)),_0x457a1d=document[_0x3393a9(0x142)](_0x3393a9(0x130)),_0x223b0c=document[_0x3393a9(0x142)](_0x3393a9(0x177));lockNotiTime&&clearTimeout(lockNotiTime),_0x457a1d[_0x3393a9(0x12b)]=_0xbf48f2,_0x223b0c[_0x3393a9(0x12b)]=_0x17e589,_0x17019e[_0x3393a9(0x157)][_0x3393a9(0x187)](_0x3393a9(0x191)),lockNotiTime=setTimeout(()=>{const _0x512fe6=_0x3393a9;_0x17019e[_0x512fe6(0x157)][_0x512fe6(0x12f)]('visible');},_0x34f954);}function logError(_0x5a10fd){const _0x4db53d=a0_0x5a923a;if(errorLogElements[_0x4db53d(0x149)]>0x0){const _0x40c140=errorLogElements[0x0];_0x40c140[_0x4db53d(0x181)]+=_0x5a10fd+_0x4db53d(0x14a),_0x40c140[_0x4db53d(0x180)]=_0x40c140[_0x4db53d(0x171)];}}window['onerror']=function(_0x4dc547,_0x3dac90,_0x3a866e){const _0x1d8d70=a0_0x5a923a,_0x1e4739=_0x3dac90?_0x3dac90[_0x1d8d70(0x144)]('/')[_0x1d8d70(0x17a)]():'unknown\x20source',_0x40d32e=_0x4dc547[_0x1d8d70(0x193)](/^(Uncaught\s(?:ReferenceError|Error|TypeError|SyntaxError|RangeError):?\s*)/i,''),_0x1e8839='[Err]\x20['+_0x3a866e+_0x1d8d70(0x16a)+_0x1e4739+_0x1d8d70(0x18a)+_0x40d32e+'.';return logError(_0x1e8839),![];},document[a0_0x5a923a(0x148)](a0_0x5a923a(0x127),function(){savedStateAdj!==null&&(stateAdj=parseInt(savedStateAdj),positionAdjustment(stateAdj));}); \ No newline at end of file +const a0_0x19d326=a0_0xf44b;(function(_0x33d314,_0x4e1f37){const _0x3d36e7=a0_0xf44b,_0x82f272=_0x33d314();while(!![]){try{const _0x4052ca=parseInt(_0x3d36e7(0x204))/0x1+-parseInt(_0x3d36e7(0x1fd))/0x2*(parseInt(_0x3d36e7(0x1ce))/0x3)+parseInt(_0x3d36e7(0x20b))/0x4+-parseInt(_0x3d36e7(0x21e))/0x5*(-parseInt(_0x3d36e7(0x1be))/0x6)+-parseInt(_0x3d36e7(0x1f4))/0x7*(parseInt(_0x3d36e7(0x22c))/0x8)+parseInt(_0x3d36e7(0x1f2))/0x9+parseInt(_0x3d36e7(0x1e5))/0xa*(parseInt(_0x3d36e7(0x1dd))/0xb);if(_0x4052ca===_0x4e1f37)break;else _0x82f272['push'](_0x82f272['shift']());}catch(_0x5326a7){_0x82f272['push'](_0x82f272['shift']());}}}(a0_0x54c6,0x77a0b),appVer[a0_0x19d326(0x1db)]=gameVer);var messageTimeout;let stateAdj=0x1;function a0_0xf44b(_0xaef7cf,_0x36663c){const _0x54c6a7=a0_0x54c6();return a0_0xf44b=function(_0xf44b90,_0x1fce4f){_0xf44b90=_0xf44b90-0x1b7;let _0x272eff=_0x54c6a7[_0xf44b90];return _0x272eff;},a0_0xf44b(_0xaef7cf,_0x36663c);}function a0_0x54c6(){const _0x47fe1b=['.target-boxes','transform','fill','touchstart','led0','preventDefault','lastIndexOf','resizable-draggable','px,\x20','top','led01','dynamic','66RjhGMT','onerror','180px','60px','modifiers','map','restrictEdges','rect','0.4','led06','stateDiv07','translate(','stateDiv04','px)','parent','scrollTop','5880jGRDYJ','length','stateAdj','color','setItem','rgba(245,\x20232,\x20209,\x200.4)','\x0a---\x0a','touched','addEventListener','data-x','log','0px','forEach','textContent','toFixed','393305dyTOlz','GOpacity','rect3','paddingTop','stateDiv01','click','innerText','getDate','40KTfyyd','ontouchstart','rectOpacity','setAdjustment','screenSize','left','substring','padding-top','led07','led00','restrictSize','visible','Error\x20Led:','1145322BcREUd','stateDiv05','7iahkOC','style','gameName','#2F2F2F','led04','event.stopPropagation()','touched-1','upLoadFile','rect1','686hNWgdM','getItem','in-game','inputText','led03','getHours','backToHome','910249HuJQSU','slotStateSaved','deltaRect','[Err]\x20[','stateDiv02','errorLog','remove','250640QkWlYn','pop','scrollHeight','readAsDataURL','getAttribute','onloadend','setAttribute','stateDiv03','height','replace','getMonth','add','error','Error\x20ledSave:','led02','notiDetail','padStart',']\x20../','led05','14955SycmzF','width','result','unknown\x20source','saveStateButton','classList','setProperty','data-y','opacity','loadStateButton','DOMContentLoaded','querySelectorAll','image/png','getElementById','910504SvIqEs','_setArea'];a0_0x54c6=function(){return _0x47fe1b;};return a0_0x54c6();}var lockNotiTime;let opacity=parseFloat(localStorage[a0_0x19d326(0x1fe)]('opacity'))||0.1;const errorLogElements=document['getElementsByClassName'](a0_0x19d326(0x209)),ingame=document[a0_0x19d326(0x22b)](a0_0x19d326(0x1ff)),input=document['getElementById'](a0_0x19d326(0x200)),setAdjustment=document['getElementById'](a0_0x19d326(0x1e8)),savedStateAdj=localStorage['getItem'](a0_0x19d326(0x1d0)),ids=[a0_0x19d326(0x200),'stateDiv00',a0_0x19d326(0x1e1),a0_0x19d326(0x208),a0_0x19d326(0x212),a0_0x19d326(0x1ca),a0_0x19d326(0x1f3),'stateDiv06',a0_0x19d326(0x1c8)],touchedID=[a0_0x19d326(0x222),'loadStateButton','openLocalStorage',a0_0x19d326(0x1fb),a0_0x19d326(0x203),''];var dynamicZone=document['getElementById'](a0_0x19d326(0x1bd)),nippleOptions={'zone':dynamicZone,'color':a0_0x19d326(0x1f7),'size':0x78},dynamic=nipplejs['create'](nippleOptions);function positionAdjustment(_0x543ee0){const _0x544f45=a0_0x19d326,_0x461057=[{'paddingTop':_0x544f45(0x1d9),'rectOpacity':[0x1,0x1,0x1],'GOpacity':[0x0,0x0,0x0,0x1]},{'paddingTop':_0x544f45(0x1c1),'rectOpacity':[0.4,0x1,0x1],'GOpacity':[0x0,0x0,0x1,0x0]},{'paddingTop':'120px','rectOpacity':[0.4,0.4,0x1],'GOpacity':[0x0,0x1,0x0,0x0]},{'paddingTop':_0x544f45(0x1c0),'rectOpacity':[0.4,0.4,0.4],'GOpacity':[0x1,0x0,0x0,0x0]}];if(_0x543ee0>=0x1&&_0x543ee0<=0x4){const _0xdcabe0=_0x461057[_0x543ee0-0x1];document[_0x544f45(0x229)](_0x544f45(0x22e))[_0x544f45(0x1da)](function(_0x287cd8,_0x58fa08){const _0x536804=_0x544f45;_0x287cd8[_0x536804(0x1f5)][_0x536804(0x224)](_0x536804(0x1ec),_0xdcabe0[_0x536804(0x1e0)]);}),document[_0x544f45(0x22b)](_0x544f45(0x1fc))[_0x544f45(0x1f5)][_0x544f45(0x224)](_0x544f45(0x226),_0xdcabe0[_0x544f45(0x1e7)][0x0]),document[_0x544f45(0x22b)]('rect2')[_0x544f45(0x1f5)][_0x544f45(0x224)](_0x544f45(0x226),_0xdcabe0[_0x544f45(0x1e7)][0x1]),document[_0x544f45(0x22b)](_0x544f45(0x1df))['style'][_0x544f45(0x224)](_0x544f45(0x226),_0xdcabe0[_0x544f45(0x1e7)][0x2]);for(let _0x3b2f3a=0x0;_0x3b2f3a<0x4;_0x3b2f3a++){document['getElementById']('G'+_0x3b2f3a)[_0x544f45(0x1f5)][_0x544f45(0x224)](_0x544f45(0x226),_0xdcabe0[_0x544f45(0x1de)][_0x3b2f3a]);}}}ingame[a0_0x19d326(0x1e6)]=_0x4ab843=>{const _0x3dfbc6=a0_0x19d326;_0x4ab843[_0x3dfbc6(0x1b7)]();},setAdjustment['addEventListener'](a0_0x19d326(0x1e2),function(){const _0x3bd5eb=a0_0x19d326;stateAdj=stateAdj%0x4+0x1,positionAdjustment(stateAdj),localStorage[_0x3bd5eb(0x1d2)](_0x3bd5eb(0x1d0),stateAdj);}),ids['forEach'](function(_0x52b8d1){const _0x324060=a0_0x19d326;var _0x109da2=document['getElementById'](_0x52b8d1);_0x109da2&&_0x109da2['setAttribute'](_0x324060(0x1e6),_0x324060(0x1f9));}),touchedID['forEach'](function(_0x96e6c7){const _0x3aab5f=a0_0x19d326,_0x2b01f3=document[_0x3aab5f(0x22b)](_0x96e6c7);_0x2b01f3&&(_0x96e6c7===_0x3aab5f(0x222)||_0x96e6c7===_0x3aab5f(0x227)?(_0x2b01f3[_0x3aab5f(0x1d6)]('touchstart',function(){const _0x309149=_0x3aab5f;_0x2b01f3[_0x309149(0x223)][_0x309149(0x216)](_0x309149(0x1fa));}),_0x2b01f3['addEventListener']('touchend',function(){const _0x1c9635=_0x3aab5f;_0x2b01f3[_0x1c9635(0x223)][_0x1c9635(0x20a)]('touched-1');})):(_0x2b01f3[_0x3aab5f(0x1d6)](_0x3aab5f(0x231),function(){const _0x1660b6=_0x3aab5f;_0x2b01f3[_0x1660b6(0x223)]['add'](_0x1660b6(0x1d5));}),_0x2b01f3[_0x3aab5f(0x1d6)]('touchend',function(){const _0x16b25e=_0x3aab5f;_0x2b01f3['classList'][_0x16b25e(0x20a)](_0x16b25e(0x1d5));})));}),interact('#resizable-draggable')['resizable']({'edges':{'top':!![],'left':!![],'right':!![],'bottom':!![]},'modifiers':[interact[a0_0x19d326(0x1c2)][a0_0x19d326(0x1c4)]({'outer':a0_0x19d326(0x1cc)}),interact['modifiers'][a0_0x19d326(0x1ef)]({'min':{'width':0x32,'height':0x14}})],'listeners':{'move'(_0x4464c9){const _0x2ddbfd=a0_0x19d326,_0x170caf=_0x4464c9['target'],_0x5da700=(parseFloat(_0x170caf['getAttribute'](_0x2ddbfd(0x1d7)))||0x0)+_0x4464c9[_0x2ddbfd(0x206)][_0x2ddbfd(0x1ea)],_0x1e1a0e=(parseFloat(_0x170caf[_0x2ddbfd(0x20f)](_0x2ddbfd(0x225)))||0x0)+_0x4464c9['deltaRect'][_0x2ddbfd(0x1bb)];_0x170caf[_0x2ddbfd(0x1f5)]['width']=_0x4464c9[_0x2ddbfd(0x1c5)][_0x2ddbfd(0x21f)]+'px',_0x170caf[_0x2ddbfd(0x1f5)]['height']=_0x4464c9[_0x2ddbfd(0x1c5)][_0x2ddbfd(0x213)]+'px',_0x170caf[_0x2ddbfd(0x1f5)][_0x2ddbfd(0x22f)]=_0x2ddbfd(0x1c9)+_0x5da700+_0x2ddbfd(0x1ba)+_0x1e1a0e+'px)',_0x170caf[_0x2ddbfd(0x211)]('data-x',_0x5da700),_0x170caf[_0x2ddbfd(0x211)]('data-y',_0x1e1a0e);const _0x5dd59f=localStorage[_0x2ddbfd(0x1fe)]('gameName');localStorage[_0x2ddbfd(0x1d2)](_0x5dd59f+_0x2ddbfd(0x22d),_0x5da700[_0x2ddbfd(0x1dc)](0x0)+','+_0x1e1a0e[_0x2ddbfd(0x1dc)](0x0)+','+_0x4464c9[_0x2ddbfd(0x1c5)][_0x2ddbfd(0x21f)][_0x2ddbfd(0x1dc)](0x0)+','+_0x4464c9[_0x2ddbfd(0x1c5)][_0x2ddbfd(0x213)][_0x2ddbfd(0x1dc)](0x0)),console[_0x2ddbfd(0x1d8)](localStorage[_0x2ddbfd(0x1fe)](_0x5dd59f+'_setArea'));}}});function restoreArea(){const _0x511b94=a0_0x19d326,_0x5e3c5b=localStorage['getItem'](_0x511b94(0x1f6)),_0x395e0a=localStorage[_0x511b94(0x1fe)](_0x5e3c5b+_0x511b94(0x22d))||localStorage[_0x511b94(0x1fe)](_0x511b94(0x1e9));if(_0x395e0a){const [_0x53ca49,_0x23bf81,_0xa8ab2c,_0x269fb4]=_0x395e0a['split'](',')[_0x511b94(0x1c3)](Number),_0x1bc39c=document[_0x511b94(0x22b)](_0x511b94(0x1b9));_0x1bc39c[_0x511b94(0x1f5)][_0x511b94(0x21f)]=_0xa8ab2c+'px',_0x1bc39c[_0x511b94(0x1f5)][_0x511b94(0x213)]=_0x269fb4+'px',_0x1bc39c[_0x511b94(0x1f5)][_0x511b94(0x22f)]=_0x511b94(0x1c9)+_0x53ca49+_0x511b94(0x1ba)+_0x23bf81+_0x511b94(0x1cb),_0x1bc39c['setAttribute'](_0x511b94(0x1d7),_0x53ca49),_0x1bc39c[_0x511b94(0x211)](_0x511b94(0x225),_0x23bf81);}}async function delay(_0x41a1a7){return new Promise(_0x15b8ae=>setTimeout(_0x15b8ae,_0x41a1a7));}async function notiMessage(_0x1681b1,_0x624f98){const _0x11395b=a0_0x19d326;var _0x20e8b8=document[_0x11395b(0x22b)]('noti-mess');const _0x1c85ae=parseInt(localStorage[_0x11395b(0x1fe)]('slotStateSaved'))||'0',_0xcf906a=localStorage[_0x11395b(0x1fe)](_0x11395b(0x1f6));_0x20e8b8[_0x11395b(0x1f5)]['opacity']==='0.4'&&(clearTimeout(messageTimeout),_0x20e8b8[_0x11395b(0x1f5)][_0x11395b(0x226)]='0'),_0x20e8b8[_0x11395b(0x1db)]=_0x1681b1,_0x20e8b8[_0x11395b(0x1f5)]['opacity']=_0x11395b(0x1c6),messageTimeout=setTimeout(()=>{const _0x3ae0d3=_0x11395b;_0x20e8b8[_0x3ae0d3(0x1db)]='['+_0x1c85ae+']\x20'+_0xcf906a[_0x3ae0d3(0x1eb)](0x0,_0xcf906a[_0x3ae0d3(0x1b8)]('.')),_0x20e8b8['style'][_0x3ae0d3(0x226)]=_0x3ae0d3(0x1c6);},_0x624f98);}async function ledSave(_0x2bfe16){const _0x1ffed3=a0_0x19d326,_0x550cd3=parseInt(localStorage[_0x1ffed3(0x1fe)](_0x1ffed3(0x205))),_0x4356db=_0x550cd3===0x1?_0x1ffed3(0x1bc):_0x550cd3===0x2?_0x1ffed3(0x219):_0x550cd3===0x3?_0x1ffed3(0x201):_0x550cd3===0x4?_0x1ffed3(0x1f8):_0x550cd3===0x5?_0x1ffed3(0x21d):_0x550cd3===0x6?_0x1ffed3(0x1c7):_0x550cd3===0x7?'led07':_0x1ffed3(0x1ee);try{for(let _0x25fe3d=0x0;_0x25fe3d<=0x7;_0x25fe3d++){document[_0x1ffed3(0x22b)](_0x1ffed3(0x232)+_0x25fe3d)[_0x1ffed3(0x1f5)]['fill']='rgba(245,\x20232,\x20209,\x200.4)';}await delay(0x3e8);for(let _0xdc6f41=0x0;_0xdc6f41<=0x7;_0xdc6f41++){document[_0x1ffed3(0x22b)](_0x1ffed3(0x232)+_0xdc6f41)[_0x1ffed3(0x1f5)][_0x1ffed3(0x230)]=_0x1ffed3(0x1d3);}document[_0x1ffed3(0x22b)](_0x4356db)['style'][_0x1ffed3(0x230)]=_0x2bfe16;}catch(_0x54ccb8){console['error'](_0x1ffed3(0x218),_0x54ccb8);}};async function led(_0x34f5f2){const _0x593929=a0_0x19d326;try{const _0x131561=[{'id':_0x593929(0x1ee),'color':_0x593929(0x1d3)},{'id':_0x593929(0x1bc),'color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x593929(0x219),'color':_0x593929(0x1d3)},{'id':_0x593929(0x201),'color':_0x593929(0x1d3)},{'id':_0x593929(0x1f8),'color':_0x593929(0x1d3)},{'id':_0x593929(0x21d),'color':'rgba(245,\x20232,\x20209,\x200.4)'},{'id':_0x593929(0x1c7),'color':_0x593929(0x1d3)},{'id':_0x593929(0x1ed),'color':_0x593929(0x1d3)}];if(_0x34f5f2>=0x0&&_0x34f5f2<_0x131561[_0x593929(0x1cf)]){const _0x5b6de5='#20A5A6';_0x131561['forEach']((_0x54fa94,_0x34e212)=>{const _0x353f3f=_0x593929;document['getElementById'](_0x54fa94['id'])[_0x353f3f(0x1f5)][_0x353f3f(0x230)]=_0x34e212===_0x34f5f2?_0x5b6de5:_0x54fa94[_0x353f3f(0x1d1)];});}}catch(_0x4972e2){console[_0x593929(0x217)](_0x593929(0x1f1),_0x4972e2);}}function formatDateTime(_0x4f40dd){const _0x295a52=a0_0x19d326,_0x4b7a85=new Date(_0x4f40dd),_0x2a983d=String(_0x4b7a85[_0x295a52(0x202)]())['padStart'](0x2,'0'),_0x4b568c=String(_0x4b7a85['getMinutes']())[_0x295a52(0x21b)](0x2,'0'),_0x41ac2f=_0x4b7a85[_0x295a52(0x1e4)](),_0x56ef73=_0x4b7a85[_0x295a52(0x215)]()+0x1;return _0x2a983d+':'+_0x4b568c+'\x20'+_0x41ac2f+'.'+_0x56ef73;}async function fileToBase64(_0x30effb){const _0x11cf20=a0_0x19d326,_0x58d6f6=new Blob([_0x30effb],{'type':_0x11cf20(0x22a)}),_0xbc6f06=await new Promise((_0x189119,_0xf58ed6)=>{const _0x302456=_0x11cf20,_0x243e77=new FileReader();_0x243e77[_0x302456(0x210)]=()=>{const _0x225e12=_0x302456;_0x189119(_0x243e77[_0x225e12(0x220)]);},_0x243e77[_0x302456(0x1bf)]=_0xf58ed6,_0x243e77[_0x302456(0x20e)](_0x58d6f6);});return _0xbc6f06;}async function lockNoti(_0x2b7425,_0x585ab1,_0x2d06dc){const _0x474bea=a0_0x19d326,_0x5ebedd=document['getElementById']('lockNoti'),_0x2b3905=document[_0x474bea(0x22b)]('notiTitle'),_0x197e2c=document[_0x474bea(0x22b)](_0x474bea(0x21a));lockNotiTime&&clearTimeout(lockNotiTime),_0x2b3905[_0x474bea(0x1db)]=_0x2b7425,_0x197e2c['textContent']=_0x585ab1,_0x5ebedd['classList'][_0x474bea(0x20a)](_0x474bea(0x1f0)),lockNotiTime=setTimeout(()=>{const _0x54e617=_0x474bea;_0x5ebedd[_0x54e617(0x223)]['add'](_0x54e617(0x1f0));},_0x2d06dc);}function logError(_0x5697de){const _0x708ac1=a0_0x19d326;if(errorLogElements[_0x708ac1(0x1cf)]>0x0){const _0x2bb553=errorLogElements[0x0];_0x2bb553[_0x708ac1(0x1e3)]+=_0x5697de+_0x708ac1(0x1d4),_0x2bb553[_0x708ac1(0x1cd)]=_0x2bb553[_0x708ac1(0x20d)];}}window['onerror']=function(_0x49b170,_0x2c5c1e,_0x2dde71){const _0x4f9f8d=a0_0x19d326,_0x547238=_0x2c5c1e?_0x2c5c1e['split']('/')[_0x4f9f8d(0x20c)]():_0x4f9f8d(0x221),_0x4982a2=_0x49b170[_0x4f9f8d(0x214)](/^(Uncaught\s(?:ReferenceError|Error|TypeError|SyntaxError|RangeError):?\s*)/i,''),_0x3872ef=_0x4f9f8d(0x207)+_0x2dde71+_0x4f9f8d(0x21c)+_0x547238+'\x20|\x20'+_0x4982a2+'.';return logError(_0x3872ef),![];},document[a0_0x19d326(0x1d6)](a0_0x19d326(0x228),function(){savedStateAdj!==null&&(stateAdj=parseInt(savedStateAdj),positionAdjustment(stateAdj));}); \ No newline at end of file diff --git a/docs/src/js/main.js b/docs/src/js/main.js index 9cfed92..64c516d 100644 --- a/docs/src/js/main.js +++ b/docs/src/js/main.js @@ -1 +1 @@ -const a0_0x1f6ac5=a0_0x32b5;(function(_0x41d189,_0x5ac92d){const _0x5c9b02=a0_0x32b5,_0x30211a=_0x41d189();while(!![]){try{const _0x441955=parseInt(_0x5c9b02(0xf4))/0x1*(parseInt(_0x5c9b02(0xf1))/0x2)+parseInt(_0x5c9b02(0x110))/0x3+parseInt(_0x5c9b02(0x100))/0x4+-parseInt(_0x5c9b02(0x109))/0x5+parseInt(_0x5c9b02(0xec))/0x6*(-parseInt(_0x5c9b02(0x10c))/0x7)+-parseInt(_0x5c9b02(0xd5))/0x8+parseInt(_0x5c9b02(0xc9))/0x9;if(_0x441955===_0x5ac92d)break;else _0x30211a['push'](_0x30211a['shift']());}catch(_0x337b0d){_0x30211a['push'](_0x30211a['shift']());}}}(a0_0x3ea1,0x68264));import a0_0x22d7c4 from'../core/mgba.js';import*as a0_0x2c6650 from'./gamepad.js';function a0_0x32b5(_0x39475f,_0x4adc18){const _0x3ea106=a0_0x3ea1();return a0_0x32b5=function(_0x32b5de,_0x50ac6c){_0x32b5de=_0x32b5de-0xc6;let _0x11b6bc=_0x3ea106[_0x32b5de];return _0x11b6bc;},a0_0x32b5(_0x39475f,_0x4adc18);}import{localStorageFile}from'./storage.js';import{dpUploadFile,dpRefreshToken}from'./cloud.js';const Module={'canvas':document[a0_0x1f6ac5(0x11b)](a0_0x1f6ac5(0xe0))};function initializeCore(_0x42cb49,_0x30d7c5){const _0x3e7f8d=a0_0x1f6ac5;_0x42cb49(_0x30d7c5)[_0x3e7f8d(0xf0)](function(_0x1216f8){_0x1216f8['FSInit']();});}initializeCore(a0_0x22d7c4,Module);let countAutoSave=0x0,turboState=0x1,countUpload=0x0;const canvas=document[a0_0x1f6ac5(0x11b)]('canvas'),savedTurboState=localStorage[a0_0x1f6ac5(0xd9)](a0_0x1f6ac5(0x10b)),controlSetting=document['getElementById'](a0_0x1f6ac5(0xf3));function handleVisibilityChange(_0x15b5ad){const _0xa60f63=a0_0x1f6ac5;document[_0xa60f63(0xd8)]===_0xa60f63(0xf7)||_0x15b5ad?.[_0xa60f63(0xe1)]===_0xa60f63(0x12d)||_0x15b5ad?.[_0xa60f63(0xd0)]?(pauseGame(),canvas[_0xa60f63(0x103)]['add'](_0xa60f63(0xf8))):(setTimeout(()=>{const _0x1d1e08=_0xa60f63;canvas[_0x1d1e08(0x103)][_0x1d1e08(0xc8)](_0x1d1e08(0xf8));},0x258),controlSetting[_0xa60f63(0x103)][_0xa60f63(0x114)](_0xa60f63(0xf8))&&resumeGame());}async function statusShow(){const _0x36c946=a0_0x1f6ac5;document[_0x36c946(0x116)](_0x36c946(0x124),handleVisibilityChange),document[_0x36c946(0x116)]('visibilitychange',handleVisibilityChange),window[_0x36c946(0x116)](_0x36c946(0x12d),handleVisibilityChange),restoreArea(),startTimer(),savedTurboState!==null&&(turboState=parseInt(savedTurboState),await a0_0x2c6650[_0x36c946(0xfa)](turboState)),await delay(0x3e8),await led(parseInt(localStorage[_0x36c946(0xd9)](_0x36c946(0x108)))),await notiMessage(gameVer,0x3e8);}function a0_0x3ea1(){const _0x1dbb66=['createObjectURL','revokeObjectURL','click','beforeunload','/data/screenshots/','body','remove','9435240teXpat','Resumed!','uId','now','replace','uploadRom','.gbc','persisted','listCheats','innerWidth','listStates','log','4180368owfSLT','Paused!','listScreenshots','visibilityState','getItem','\x20time(s)','_savedCheats','listGames','buttonUnpress','_dateState','FSSync','canvas','type','files','Cheat\x20Enabled!','setItem','#E0C068','#20A5A6','.ss0','Error\x20uploadSavSta:','screenSize','Save/State\x20uploaded\x20successfully:','deleteFile','4261836WVVnKb','/data/states/','pauseGame','Do\x20you\x20want\x20to\x20load\x20save\x20state?','then','86chotsA','uploadSaveOrSaveState','control-setting','7492voyDRx','gbc1','setFastForwardMultiplier','hidden','visible','endsWith','turboF','bottom','_imageState0','Unable\x20to\x20upload\x20to\x20Cloud!','name','error','1676344oiuHVb','gameName','add','classList','appendChild','Online!','fileSize','Error\x20uploadCheat:','slotStateSaved','2176890jwulRq','resumeGame','turboState','7VUMMjd','application/octet-stream','downloadFile','timer','915672gazikF','includes','autoLoadCheats','_imageState','contains','text/plain','addEventListener','saveState','onLine','screenshot','No\x20screenshot!','getElementById','disable','_dateState0','0,0,','textContent','_slot0.txt','Auto\x20save\x20','.png','loadState','pagehide','gbc','toString','padStart','SDL2','listSaves'];a0_0x3ea1=function(){return _0x1dbb66;};return a0_0x3ea1();}async function saveStatePeriodically(){const _0x21b3c0=a0_0x1f6ac5;await ledSave(_0x21b3c0(0xe6)),await Module['saveState'](0x0),await Module[_0x21b3c0(0xdf)](),await screenShot(0x0),console[_0x21b3c0(0xd4)](_0x21b3c0(0x121)+ ++countAutoSave+'\x20time(s)');}async function saveStateInCloud(){const _0x3f2dce=a0_0x1f6ac5,_0x13a998=localStorage['getItem'](_0x3f2dce(0x101)),_0x4698c6=_0x13a998['replace']('.gba',_0x3f2dce(0xe7)),_0x1de9b8=localStorage['getItem'](_0x3f2dce(0xcb)),_0x463f54=localStorage[_0x3f2dce(0xd9)](_0x13a998+_0x3f2dce(0xfc)),_0x2e2c5e=localStorage[_0x3f2dce(0xd9)](_0x13a998+_0x3f2dce(0x11d));if(navigator[_0x3f2dce(0x118)]){if(_0x1de9b8){await ledSave(_0x3f2dce(0xe5)),await delay(0x3e8),await dpUploadFile(_0x4698c6,Module['downloadFile'](_0x3f2dce(0xed)+_0x4698c6));if(_0x463f54!==null){const _0x8d5fb9=_0x463f54+'\x0a\x0a'+_0x2e2c5e,_0x29ae06=new Blob([_0x8d5fb9],{'type':_0x3f2dce(0x115)});await dpUploadFile(_0x13a998+_0x3f2dce(0x120),_0x29ae06);}else console['log'](_0x3f2dce(0x11a));await lockNoti('','Cloud\x20upload\x20'+ ++countUpload+_0x3f2dce(0xda),0x7d0);}else console[_0x3f2dce(0xd4)](_0x3f2dce(0xfd));}else console[_0x3f2dce(0xd4)](_0x3f2dce(0x105));}function startTimer(){let [_0x18a9e9,_0x258ca5,_0x116337,_0x13be6d,_0x2202f5]=[0x0,0x0,0x0,0x0,0x0];setInterval(()=>{const _0xb183ff=a0_0x32b5;_0x116337++,_0x13be6d++,_0x2202f5++;if(_0x116337===0x3c)[_0x116337,_0x258ca5]=[0x0,_0x258ca5+0x1];if(_0x258ca5===0x3c)[_0x258ca5,_0x18a9e9]=[0x0,_0x18a9e9+0x1];document[_0xb183ff(0x11b)](_0xb183ff(0x10f))[_0xb183ff(0x11f)]=_0x18a9e9+'h'+_0x258ca5[_0xb183ff(0x126)]()['padStart'](0x2,'0')+'.'+_0x116337[_0xb183ff(0x126)]()[_0xb183ff(0x127)](0x2,'0');_0x13be6d===0x3c&&(saveStatePeriodically(),_0x13be6d=0x0);;_0x13be6d===0xe10&&(saveStateInCloud(),_0x2202f5=0x0);;},0x3e8);}export async function uploadGame(_0xcb932b){const _0x3e3dda=a0_0x1f6ac5,_0x1e9314=_0xcb932b['files'][0x0];Module[_0x3e3dda(0xce)](_0x1e9314,()=>{const _0x4226fb=_0x3e3dda;Module[_0x4226fb(0xdf)]();});}export async function loadGame(_0xcea4ce){const _0x328631=a0_0x1f6ac5,_0x5011c9=_0xcea4ce[_0x328631(0xcd)](/\.(gba|gbc|gb|zip)$/,_0x328631(0xe7)),_0x40981e=Module[_0x328631(0xd3)]();intro[_0x328631(0x103)][_0x328631(0x102)](_0x328631(0x11c)),errorLogElements[0x0]['style'][_0x328631(0xfb)]='0',ingame[_0x328631(0x103)][_0x328631(0xc8)](_0x328631(0x11c)),_0xcea4ce[_0x328631(0xf9)](_0x328631(0xcf))||_0xcea4ce[_0x328631(0xf9)]('.gb')?(canvas['classList'][_0x328631(0x102)](_0x328631(0x125)),areaTrans[_0x328631(0x103)]['add'](_0x328631(0xf5)),localStorage[_0x328631(0xe4)]('screenSize',_0x328631(0x11e)+(window['innerWidth']-0xe6)+','+(window['innerWidth']-0xe6)*0x9/0xa)):localStorage[_0x328631(0xe4)](_0x328631(0xe9),_0x328631(0x11e)+(window['innerWidth']-0x96)+','+(window[_0x328631(0xd2)]-0x96)*0x2/0x3),_0x40981e[_0x328631(0x111)](_0x5011c9)?(await Module['loadGame']('/data/games/'+_0xcea4ce),confirm(_0x328631(0xef))&&(await Module[_0x328631(0x123)](0x0),localStorage[_0x328631(0xe4)](_0x328631(0x101),_0xcea4ce),console['log'](_0xcea4ce))):(await Module['loadGame']('/data/games/'+_0xcea4ce),localStorage[_0x328631(0xe4)](_0x328631(0x101),_0xcea4ce)),await statusShow();}export async function saveState(_0x1fbdea){const _0x233ef4=a0_0x1f6ac5;await Module[_0x233ef4(0x117)](_0x1fbdea),await Module[_0x233ef4(0xdf)]();}export async function loadState(_0x317432){const _0x5c91c8=a0_0x1f6ac5;await Module[_0x5c91c8(0x123)](_0x317432);}export async function downloadFile(_0x4b61c8,_0x5edb77){const _0x405893=a0_0x1f6ac5,_0xb1eaa1=Module[_0x405893(0x10e)](_0x4b61c8),_0x22b548=document['createElement']('a');document[_0x405893(0xc7)][_0x405893(0x104)](_0x22b548),_0x22b548['download']=_0x5edb77;const _0x5e8edf=new Blob([_0xb1eaa1],{'type':_0x405893(0x10d)});_0x22b548['href']=URL[_0x405893(0x12a)](_0x5e8edf),_0x22b548[_0x405893(0x12c)](),URL[_0x405893(0x12b)](_0x5e8edf),_0x22b548['remove']();}export function downloadFileInCloud(_0x2e3fe9){const _0x42b7aa=a0_0x1f6ac5,_0x508758=Module[_0x42b7aa(0x10e)](_0x2e3fe9);return _0x508758;}export async function uploadFile(_0x27c012){const _0x34800a=a0_0x1f6ac5,_0x1a0597=_0x27c012['files'][0x0];Module[_0x34800a(0xf2)](_0x1a0597,()=>{const _0x2ce726=_0x34800a;Module[_0x2ce726(0xdf)]();});}export async function editFile(_0x24ef27,_0x4d3167,_0x565c3f){const _0x201812=a0_0x1f6ac5;await Module['editFileName'](_0x24ef27,_0x4d3167,_0x565c3f),await Module[_0x201812(0xdf)]();}export async function deleteFile(_0x4a89ef){const _0x3fe7c9=a0_0x1f6ac5;await Module[_0x3fe7c9(0xeb)](_0x4a89ef),await Module[_0x3fe7c9(0xdf)]();}export function listGame(){const _0x689237=a0_0x1f6ac5,_0x40b982=Module[_0x689237(0xdc)]();return _0x40b982;}export function listSave(){const _0x263a45=a0_0x1f6ac5,_0x3be3c4=Module[_0x263a45(0x129)]();return _0x3be3c4;}export function listState(){const _0xf7fbd7=a0_0x1f6ac5,_0x2109b7=Module[_0xf7fbd7(0xd3)]();return _0x2109b7;}export function listCheat(){const _0x5945d4=a0_0x1f6ac5,_0x4d09f5=Module[_0x5945d4(0xd1)]();return _0x4d09f5;}export function listScreenshot(){const _0x2a4318=a0_0x1f6ac5,_0x5a5532=Module[_0x2a4318(0xd7)]();return _0x5a5532;}export function fileSize(_0x41eb0f){const _0x165ac3=a0_0x1f6ac5,_0xf51c2=Module[_0x165ac3(0x106)](_0x41eb0f);return _0xf51c2;}export async function uploadCheat(_0x49375c){const _0x223420=a0_0x1f6ac5;try{const _0x3d7303=_0x49375c['files'][0x0];await Module['uploadCheats'](_0x3d7303,()=>{const _0x143ef8=a0_0x32b5;console[_0x143ef8(0xd4)]('Cheat\x20uploaded\x20successfully:',_0x3d7303[_0x143ef8(0xfe)]),localStorageFile(),Module[_0x143ef8(0xdf)]();});}catch(_0x548bbf){console[_0x223420(0xff)](_0x223420(0x107),_0x548bbf);}}export async function uploadSavSta(_0x15a058){const _0x205d64=a0_0x1f6ac5;try{const _0x33e14c=_0x15a058[_0x205d64(0xe2)][0x0];await Module[_0x205d64(0xf2)](_0x33e14c,()=>{const _0x5b0ad6=_0x205d64;console['log'](_0x5b0ad6(0xea),_0x33e14c[_0x5b0ad6(0xfe)]),localStorageFile(),Module[_0x5b0ad6(0xdf)]();});}catch(_0x55617c){console[_0x205d64(0xff)](_0x205d64(0xe8),_0x55617c);}}export async function uploadSaveOrSaveState(_0xf67f27){const _0x264981=a0_0x1f6ac5;Module[_0x264981(0xf2)](_0xf67f27,()=>{const _0x5dfa87=_0x264981;localStorageFile(),Module[_0x5dfa87(0xdf)]();});}export async function resumeGame(){const _0x4125d1=a0_0x1f6ac5;Module[_0x4125d1(0x10a)](),Module[_0x4125d1(0x128)](),notiMessage(_0x4125d1(0xca),0x7d0);}export async function pauseGame(){const _0x36e46f=a0_0x1f6ac5;Module[_0x36e46f(0xee)](),Module[_0x36e46f(0x128)](),notiMessage(_0x36e46f(0xd6),0x7d0);}export async function buttonPress(_0x25dcab){Module['buttonPress'](_0x25dcab);}export async function buttonUnpress(_0x39f1d8){const _0x2ae86d=a0_0x1f6ac5;Module[_0x2ae86d(0xdd)](_0x39f1d8);}export async function screenShot(_0x124b2d){const _0x304344=a0_0x1f6ac5,_0x560d89=localStorage['getItem'](_0x304344(0x101)),_0x1650b7=_0x560d89[_0x304344(0xcd)](/\.(gba|gbc|gb|zip)$/,'_');await Module[_0x304344(0x119)](''+_0x1650b7+_0x124b2d+_0x304344(0x122)),await Module['FSSync']();const _0x1c1192=await fileToBase64(Module[_0x304344(0x10e)]('/data/screenshots/'+_0x1650b7+_0x124b2d+_0x304344(0x122))),_0x1a514c=Date[_0x304344(0xcc)](),_0x6a052b=formatDateTime(_0x1a514c);localStorage[_0x304344(0xe4)](_0x560d89+_0x304344(0xde)+_0x124b2d,_0x6a052b),localStorage[_0x304344(0xe4)](_0x560d89+_0x304344(0x113)+_0x124b2d,_0x1c1192);}export async function captureOCR(_0x52e871){const _0x66985=a0_0x1f6ac5;Module[_0x66985(0x119)](_0x52e871);const _0x2bd1e7=Module[_0x66985(0x10e)](_0x66985(0xc6)+_0x52e871);return _0x2bd1e7;}export async function setFastForwardMultiplier(_0x96067e){const _0x4ee0a0=a0_0x1f6ac5;Module[_0x4ee0a0(0xf6)](_0x96067e);}export function uploadCheats(_0x519493,_0x525666,_0x4179d1,_0x218cc7,_0x90a326){Module['uploadCheats'](_0x519493,()=>{const _0x34f95e=a0_0x32b5;Module[_0x34f95e(0x112)](),setTimeout(()=>{const _0x4c15aa=_0x34f95e;Module[_0x4c15aa(0xdf)]();},0x1f4),_0x218cc7&&(localStorage[_0x34f95e(0xe4)](_0x525666+_0x34f95e(0xdb),_0x4179d1),notiMessage(_0x34f95e(0xe3),0x5dc)),_0x90a326[_0x34f95e(0x11f)]=localStorage[_0x34f95e(0xd9)](_0x525666+_0x34f95e(0xdb)||'Off');});} \ No newline at end of file +const a0_0x4f002e=a0_0x223e;(function(_0x2099b9,_0x1f1145){const _0x1687f0=a0_0x223e,_0x1ceeb5=_0x2099b9();while(!![]){try{const _0x1ed35a=parseInt(_0x1687f0(0x1ea))/0x1*(-parseInt(_0x1687f0(0x1f8))/0x2)+-parseInt(_0x1687f0(0x1f7))/0x3+parseInt(_0x1687f0(0x1cf))/0x4+parseInt(_0x1687f0(0x223))/0x5+parseInt(_0x1687f0(0x215))/0x6+parseInt(_0x1687f0(0x20d))/0x7+parseInt(_0x1687f0(0x1fd))/0x8*(-parseInt(_0x1687f0(0x1d0))/0x9);if(_0x1ed35a===_0x1f1145)break;else _0x1ceeb5['push'](_0x1ceeb5['shift']());}catch(_0x13a643){_0x1ceeb5['push'](_0x1ceeb5['shift']());}}}(a0_0x3c69,0xdf714));import a0_0x3b6031 from'../core/mgba.js';import*as a0_0x5cf4fc from'./gamepad.js';import{localStorageFile}from'./storage.js';import{dpUploadFile,dpRefreshToken}from'./cloud.js';const Module={'canvas':document[a0_0x4f002e(0x1e7)](a0_0x4f002e(0x225))};function a0_0x3c69(){const _0x376437=['uploadCheats','Error\x20uploadCheat:','getElementById','.gbc','saveState','65215nYZlin','visible','listSaves','pagehide','toString','setItem','innerWidth','listGames','visibilitychange','replace','resumeGame','.ss0','_savedCheats','2990943sMRNUZ','32UAFJmt','/data/screenshots/','loadGame','turboState','hidden','43336wSeRTt','uploadSaveOrSaveState','add','screenshot','files','createObjectURL','editFileName','SDL2','now','deleteFile','onLine','turboF','slotStateSaved','application/octet-stream','screenSize','/data/states/','12046587TIkzVP','uploadRom','FSInit','disable','.png','Online!','control-setting','visibilityState','8375094HolvlX','body','log','addEventListener','createElement','\x20time(s)','timer','downloadFile','.gb','Error\x20uploadSavSta:','Cheat\x20uploaded\x20successfully:','listScreenshots','#E0C068','href','2001930RjhEGX','loadState','canvas','Off','Do\x20you\x20want\x20to\x20load\x20save\x20state?','_imageState0','error','revokeObjectURL','endsWith','uId','persisted','remove','name','Auto\x20save\x20','FSSync','4297596QSbyni','2718jJuMZQ','textContent','getItem','_dateState','Resumed!','.gba','padStart','listStates','gameName','No\x20screenshot!','0,0,','style','#20A5A6','beforeunload','click','classList','download','_dateState0','gbc1','buttonPress','_slot0.txt'];a0_0x3c69=function(){return _0x376437;};return a0_0x3c69();}function initializeCore(_0x195678,_0x3dcf93){_0x195678(_0x3dcf93)['then'](function(_0xbd2dc1){const _0x25dbdc=a0_0x223e;_0xbd2dc1[_0x25dbdc(0x20f)]();});}initializeCore(a0_0x3b6031,Module);let countAutoSave=0x0,turboState=0x1,countUpload=0x0;const canvas=document[a0_0x4f002e(0x1e7)]('canvas'),savedTurboState=localStorage['getItem'](a0_0x4f002e(0x1fb)),controlSetting=document[a0_0x4f002e(0x1e7)](a0_0x4f002e(0x213));function handleVisibilityChange(_0x21646c){const _0x56a55a=a0_0x4f002e;document[_0x56a55a(0x214)]===_0x56a55a(0x1fc)||_0x21646c?.['type']===_0x56a55a(0x1dd)||_0x21646c?.[_0x56a55a(0x1ca)]?(pauseGame(),canvas[_0x56a55a(0x1df)]['add'](_0x56a55a(0x1eb))):(setTimeout(()=>{const _0x1962d0=_0x56a55a;canvas[_0x1962d0(0x1df)]['remove'](_0x1962d0(0x1eb));},0x258),controlSetting['classList']['contains'](_0x56a55a(0x1eb))&&resumeGame());}async function statusShow(){const _0x3a61c8=a0_0x4f002e;document[_0x3a61c8(0x218)](_0x3a61c8(0x1ed),handleVisibilityChange),document['addEventListener'](_0x3a61c8(0x1f2),handleVisibilityChange),window['addEventListener'](_0x3a61c8(0x1dd),handleVisibilityChange),restoreArea(),startTimer(),savedTurboState!==null&&(turboState=parseInt(savedTurboState),await a0_0x5cf4fc[_0x3a61c8(0x208)](turboState)),await delay(0x3e8),await led(parseInt(localStorage[_0x3a61c8(0x1d2)](_0x3a61c8(0x209)))),await notiMessage(gameVer,0x3e8);}async function saveStatePeriodically(){const _0x58d8c8=a0_0x4f002e;await ledSave(_0x58d8c8(0x1dc)),await Module[_0x58d8c8(0x1e9)](0x0),await Module[_0x58d8c8(0x1ce)](),await screenShot(0x0),console[_0x58d8c8(0x217)](_0x58d8c8(0x1cd)+ ++countAutoSave+_0x58d8c8(0x21a));}async function saveStateInCloud(){const _0x182ea0=a0_0x4f002e,_0x550112=localStorage[_0x182ea0(0x1d2)]('gameName'),_0x127e4b=_0x550112[_0x182ea0(0x1f3)](_0x182ea0(0x1d5),'.ss0'),_0x4ecf6a=localStorage[_0x182ea0(0x1d2)](_0x182ea0(0x1c9)),_0x44333b=localStorage[_0x182ea0(0x1d2)](_0x550112+_0x182ea0(0x228)),_0x9a364e=localStorage[_0x182ea0(0x1d2)](_0x550112+_0x182ea0(0x1e1));if(navigator[_0x182ea0(0x207)]){if(_0x4ecf6a){await ledSave(_0x182ea0(0x221)),await delay(0x3e8),await dpUploadFile(_0x127e4b,Module[_0x182ea0(0x21c)](_0x182ea0(0x20c)+_0x127e4b));if(_0x44333b!==null){const _0x1a8ea0=_0x44333b+'\x0a\x0a'+_0x9a364e,_0x3d474d=new Blob([_0x1a8ea0],{'type':'text/plain'});await dpUploadFile(_0x550112+_0x182ea0(0x1e4),_0x3d474d);}else console[_0x182ea0(0x217)](_0x182ea0(0x1d9));await lockNoti('','Cloud\x20upload\x20'+ ++countUpload+_0x182ea0(0x21a),0x7d0);}else console[_0x182ea0(0x217)]('Unable\x20to\x20upload\x20to\x20Cloud!');}else console[_0x182ea0(0x217)](_0x182ea0(0x212));}function startTimer(){let [_0x34dbef,_0x525a4a,_0x3f0a2a,_0x2d8f5a,_0x2349bd]=[0x0,0x0,0x0,0x0,0x0];setInterval(()=>{const _0x405905=a0_0x223e;_0x3f0a2a++,_0x2d8f5a++,_0x2349bd++;if(_0x3f0a2a===0x3c)[_0x3f0a2a,_0x525a4a]=[0x0,_0x525a4a+0x1];if(_0x525a4a===0x3c)[_0x525a4a,_0x34dbef]=[0x0,_0x34dbef+0x1];document[_0x405905(0x1e7)](_0x405905(0x21b))['textContent']=_0x34dbef+'h'+_0x525a4a[_0x405905(0x1ee)]()['padStart'](0x2,'0')+'.'+_0x3f0a2a['toString']()[_0x405905(0x1d6)](0x2,'0');_0x2d8f5a===0x3c&&(saveStatePeriodically(),_0x2d8f5a=0x0);;_0x2d8f5a===0xe10&&(saveStateInCloud(),_0x2349bd=0x0);;},0x3e8);}export async function uploadGame(_0x3f85c3){const _0x275f25=a0_0x4f002e,_0x37b3fa=_0x3f85c3['files'][0x0];Module[_0x275f25(0x20e)](_0x37b3fa,()=>{const _0x5a7ac2=_0x275f25;Module[_0x5a7ac2(0x1ce)]();});}export async function loadGame(_0x42b0e8){const _0x584036=a0_0x4f002e,_0x2ea0e5=_0x42b0e8['replace'](/\.(gba|gbc|gb|zip)$/,_0x584036(0x1f5)),_0x1bc30c=Module[_0x584036(0x1d7)]();intro['classList'][_0x584036(0x1ff)]('disable'),errorLogElements[0x0][_0x584036(0x1db)]['bottom']='0',ingame[_0x584036(0x1df)][_0x584036(0x1cb)](_0x584036(0x210)),_0x42b0e8[_0x584036(0x1c8)](_0x584036(0x1e8))||_0x42b0e8['endsWith'](_0x584036(0x21d))?(canvas[_0x584036(0x1df)]['add']('gbc'),areaTrans[_0x584036(0x1df)]['add'](_0x584036(0x1e2)),localStorage[_0x584036(0x1ef)]('screenSize',_0x584036(0x1da)+(window[_0x584036(0x1f0)]-0xe6)+','+(window['innerWidth']-0xe6)*0x9/0xa)):localStorage['setItem'](_0x584036(0x20b),_0x584036(0x1da)+(window[_0x584036(0x1f0)]-0x96)+','+(window['innerWidth']-0x96)*0x2/0x3),_0x1bc30c['includes'](_0x2ea0e5)?(await Module[_0x584036(0x1fa)]('/data/games/'+_0x42b0e8),confirm(_0x584036(0x227))&&(await Module[_0x584036(0x224)](0x0),localStorage[_0x584036(0x1ef)](_0x584036(0x1d8),_0x42b0e8),console[_0x584036(0x217)](_0x42b0e8))):(await Module[_0x584036(0x1fa)]('/data/games/'+_0x42b0e8),localStorage[_0x584036(0x1ef)](_0x584036(0x1d8),_0x42b0e8)),await statusShow();}export async function saveState(_0x20cb9f){const _0x26ef45=a0_0x4f002e;await Module['saveState'](_0x20cb9f),await Module[_0x26ef45(0x1ce)]();}export async function loadState(_0x293214){const _0x23921d=a0_0x4f002e;await Module[_0x23921d(0x224)](_0x293214);}export async function downloadFile(_0x2f6e31,_0x3d2d9c){const _0x4bf2d2=a0_0x4f002e,_0x26800d=Module[_0x4bf2d2(0x21c)](_0x2f6e31),_0x58359b=document[_0x4bf2d2(0x219)]('a');document[_0x4bf2d2(0x216)]['appendChild'](_0x58359b),_0x58359b[_0x4bf2d2(0x1e0)]=_0x3d2d9c;const _0x3050dc=new Blob([_0x26800d],{'type':_0x4bf2d2(0x20a)});_0x58359b[_0x4bf2d2(0x222)]=URL[_0x4bf2d2(0x202)](_0x3050dc),_0x58359b[_0x4bf2d2(0x1de)](),URL[_0x4bf2d2(0x22a)](_0x3050dc),_0x58359b[_0x4bf2d2(0x1cb)]();}export function downloadFileInCloud(_0x417dd9){const _0x4338e4=a0_0x4f002e,_0x566316=Module[_0x4338e4(0x21c)](_0x417dd9);return _0x566316;}export async function uploadFile(_0x35900e){const _0x2fa96e=a0_0x4f002e,_0x4c4c30=_0x35900e[_0x2fa96e(0x201)][0x0];Module[_0x2fa96e(0x1fe)](_0x4c4c30,()=>{const _0x1cc09d=_0x2fa96e;Module[_0x1cc09d(0x1ce)]();});}export async function editFile(_0x3bb26f,_0x212be5,_0x565535){const _0x9a5196=a0_0x4f002e;await Module[_0x9a5196(0x203)](_0x3bb26f,_0x212be5,_0x565535),await Module[_0x9a5196(0x1ce)]();}export async function deleteFile(_0x51f70b){const _0x47f986=a0_0x4f002e;await Module[_0x47f986(0x206)](_0x51f70b),await Module[_0x47f986(0x1ce)]();}export function listGame(){const _0x2bbadd=a0_0x4f002e,_0x2ee643=Module[_0x2bbadd(0x1f1)]();return _0x2ee643;}export function listSave(){const _0x44419b=a0_0x4f002e,_0x51ef80=Module[_0x44419b(0x1ec)]();return _0x51ef80;}export function listState(){const _0x26b0b1=a0_0x4f002e,_0x14db6e=Module[_0x26b0b1(0x1d7)]();return _0x14db6e;}export function listCheat(){const _0x2e0ced=Module['listCheats']();return _0x2e0ced;}export function listScreenshot(){const _0xa46451=a0_0x4f002e,_0x33815e=Module[_0xa46451(0x220)]();return _0x33815e;}export function fileSize(_0x4b2634){const _0x35de74=Module['fileSize'](_0x4b2634);return _0x35de74;}export async function uploadCheat(_0x4d25ed){const _0x2b1eaf=a0_0x4f002e;try{const _0x558e4c=_0x4d25ed[_0x2b1eaf(0x201)][0x0];await Module[_0x2b1eaf(0x1e5)](_0x558e4c,()=>{const _0x5086db=_0x2b1eaf;console['log'](_0x5086db(0x21f),_0x558e4c[_0x5086db(0x1cc)]),localStorageFile(),Module[_0x5086db(0x1ce)]();});}catch(_0x3a1495){console[_0x2b1eaf(0x229)](_0x2b1eaf(0x1e6),_0x3a1495);}}export async function uploadSavSta(_0x5b22f1){const _0x2dc4f7=a0_0x4f002e;try{const _0xcceb42=_0x5b22f1[_0x2dc4f7(0x201)][0x0];await Module[_0x2dc4f7(0x1fe)](_0xcceb42,()=>{const _0x1b476d=_0x2dc4f7;console[_0x1b476d(0x217)]('Save/State\x20uploaded\x20successfully:',_0xcceb42[_0x1b476d(0x1cc)]),localStorageFile(),Module['FSSync']();});}catch(_0xac8b17){console[_0x2dc4f7(0x229)](_0x2dc4f7(0x21e),_0xac8b17);}}export async function uploadSaveOrSaveState(_0x172707){const _0x5bd82e=a0_0x4f002e;Module[_0x5bd82e(0x1fe)](_0x172707,()=>{localStorageFile(),Module['FSSync']();});}export async function resumeGame(){const _0x448d2b=a0_0x4f002e;Module[_0x448d2b(0x1f4)](),Module['SDL2'](),notiMessage(_0x448d2b(0x1d4),0x7d0);}export async function pauseGame(){const _0x4a7bf5=a0_0x4f002e;Module['pauseGame'](),Module[_0x4a7bf5(0x204)](),notiMessage('Paused!',0x7d0);}function a0_0x223e(_0x450d4a,_0x4c3e67){const _0x3c6964=a0_0x3c69();return a0_0x223e=function(_0x223e67,_0x4f05ce){_0x223e67=_0x223e67-0x1c8;let _0x5a58ae=_0x3c6964[_0x223e67];return _0x5a58ae;},a0_0x223e(_0x450d4a,_0x4c3e67);}export async function buttonPress(_0x2520e4){const _0x4aac63=a0_0x4f002e;Module[_0x4aac63(0x1e3)](_0x2520e4);}export async function buttonUnpress(_0x40b3e9){Module['buttonUnpress'](_0x40b3e9);}export async function screenShot(_0x573cf7){const _0x180b7e=a0_0x4f002e,_0x2282ff=localStorage[_0x180b7e(0x1d2)](_0x180b7e(0x1d8)),_0x55aedf=_0x2282ff[_0x180b7e(0x1f3)](/\.(gba|gbc|gb|zip)$/,'_');await Module[_0x180b7e(0x200)](''+_0x55aedf+_0x573cf7+_0x180b7e(0x211)),await Module['FSSync']();const _0x4ae9ed=await fileToBase64(Module[_0x180b7e(0x21c)]('/data/screenshots/'+_0x55aedf+_0x573cf7+_0x180b7e(0x211))),_0x3c538c=Date[_0x180b7e(0x205)](),_0x4588b8=formatDateTime(_0x3c538c);localStorage[_0x180b7e(0x1ef)](_0x2282ff+_0x180b7e(0x1d3)+_0x573cf7,_0x4588b8),localStorage[_0x180b7e(0x1ef)](_0x2282ff+'_imageState'+_0x573cf7,_0x4ae9ed);}export async function captureOCR(_0x39781a){const _0x1c9ec9=a0_0x4f002e;Module[_0x1c9ec9(0x200)](_0x39781a);const _0x132e67=Module['downloadFile'](_0x1c9ec9(0x1f9)+_0x39781a);return _0x132e67;}export async function setFastForwardMultiplier(_0x1b734a){Module['setFastForwardMultiplier'](_0x1b734a);}export function uploadCheats(_0x1a22b6,_0x59267c,_0x454b4c,_0x2b4b01,_0x1c569c){const _0x1bb2da=a0_0x4f002e;Module[_0x1bb2da(0x1e5)](_0x1a22b6,()=>{const _0x9269b=_0x1bb2da;Module['autoLoadCheats'](),setTimeout(()=>{const _0x470198=a0_0x223e;Module[_0x470198(0x1ce)]();},0x1f4),_0x2b4b01&&(localStorage[_0x9269b(0x1ef)](_0x59267c+_0x9269b(0x1f6),_0x454b4c),notiMessage('Cheat\x20Enabled!',0x5dc)),_0x1c569c[_0x9269b(0x1d1)]=localStorage[_0x9269b(0x1d2)](_0x59267c+_0x9269b(0x1f6)||_0x9269b(0x226));});} \ No newline at end of file diff --git a/docs/src/js/ocr.js b/docs/src/js/ocr.js index e9eda56..2f4ebd7 100644 --- a/docs/src/js/ocr.js +++ b/docs/src/js/ocr.js @@ -1 +1 @@ -const a0_0x1bcede=a0_0x4f07;(function(_0x417377,_0x54704b){const _0x412a55=a0_0x4f07,_0x22b3f7=_0x417377();while(!![]){try{const _0x58ef0d=-parseInt(_0x412a55(0x163))/0x1*(parseInt(_0x412a55(0x142))/0x2)+parseInt(_0x412a55(0x11d))/0x3*(-parseInt(_0x412a55(0x144))/0x4)+parseInt(_0x412a55(0x137))/0x5*(parseInt(_0x412a55(0x13a))/0x6)+-parseInt(_0x412a55(0x131))/0x7*(-parseInt(_0x412a55(0x15c))/0x8)+-parseInt(_0x412a55(0x15a))/0x9+-parseInt(_0x412a55(0x135))/0xa+parseInt(_0x412a55(0x117))/0xb;if(_0x58ef0d===_0x54704b)break;else _0x22b3f7['push'](_0x22b3f7['shift']());}catch(_0x55bb9f){_0x22b3f7['push'](_0x22b3f7['shift']());}}}(a0_0x4f7e,0xcbad2));function a0_0x4f07(_0x1a70e3,_0xafe5bc){const _0x4f7e6d=a0_0x4f7e();return a0_0x4f07=function(_0x4f07b1,_0x72faf7){_0x4f07b1=_0x4f07b1-0x112;let _0x14da4e=_0x4f7e6d[_0x4f07b1];return _0x14da4e;},a0_0x4f07(_0x1a70e3,_0xafe5bc);}import*as a0_0x421d74 from'./main.js';var scrollAmount=0x0,scrollSpeed=0.5,runCount=0x0;let isFunctionARunning=![];var maxRunCount=0x2;let clickTurbo=0x0,clickTimeout;const inputText=document['getElementById']('inputText'),input=document[a0_0x1bcede(0x124)](a0_0x1bcede(0x166)),turbo=document[a0_0x1bcede(0x124)](a0_0x1bcede(0x127)),ID=['A','B','R','L'];async function getImage(){const _0x59f7cc=a0_0x1bcede;turbo[_0x59f7cc(0x13e)][_0x59f7cc(0x143)](_0x59f7cc(0x15e));try{const _0x31cd34=localStorage[_0x59f7cc(0x122)](_0x59f7cc(0x11b)),_0x2c44b6=_0x31cd34[_0x59f7cc(0x15f)](/\.(gba|gbc|gb|zip)$/,_0x59f7cc(0x123)),_0x47852e=await a0_0x421d74['captureOCR'](_0x2c44b6);console[_0x59f7cc(0x121)](_0x47852e);const _0xbf1aaf=new Blob([_0x47852e],{'type':_0x59f7cc(0x133)}),_0x49f932=await new Promise((_0xce3d9b,_0x3de5c5)=>{const _0x4617dd=_0x59f7cc,_0x1eb8ee=new FileReader();_0x1eb8ee[_0x4617dd(0x145)]=()=>_0xce3d9b(_0x1eb8ee['result']),_0x1eb8ee[_0x4617dd(0x13c)]=_0x3de5c5,_0x1eb8ee[_0x4617dd(0x150)](_0xbf1aaf);}),_0x307f09=new Image();console['log'](_0x49f932),_0x307f09[_0x59f7cc(0x161)]=_0x49f932,_0x307f09['onload']=()=>{const _0x57cf6c=_0x59f7cc,_0x42296d=document[_0x57cf6c(0x12b)]('canvas'),_0x20a0ce=_0x42296d[_0x57cf6c(0x129)]('2d'),_0x494a48=0x4;let _0x3d2b66;_0x31cd34[_0x57cf6c(0x16e)](_0x57cf6c(0x159))||_0x31cd34['endsWith'](_0x57cf6c(0x16f))?(_0x3d2b66=Math[_0x57cf6c(0x12e)](0xa0/(window['innerWidth']-0xe6)),console['log']('gbc',_0x3d2b66)):(_0x3d2b66=Math[_0x57cf6c(0x12e)](0xf0/(window[_0x57cf6c(0x156)]-0x96)),console[_0x57cf6c(0x121)]('gba',_0x3d2b66));const _0x232808=localStorage[_0x57cf6c(0x122)](_0x31cd34+'_setArea')||localStorage[_0x57cf6c(0x122)](_0x57cf6c(0x136)),[_0x3577d1,_0x2b2638,_0x3165ad,_0x5a5a0f]=_0x232808[_0x57cf6c(0x12a)](',')['map'](Number);_0x42296d['width']=_0x3165ad*_0x3d2b66*_0x494a48,_0x42296d[_0x57cf6c(0x116)]=_0x5a5a0f*_0x3d2b66*_0x494a48,_0x20a0ce[_0x57cf6c(0x141)](_0x307f09,_0x3577d1*_0x3d2b66,_0x2b2638*_0x3d2b66,_0x3165ad*_0x3d2b66,_0x5a5a0f*_0x3d2b66,0x0,0x0,_0x3165ad*_0x3d2b66*_0x494a48,_0x5a5a0f*_0x3d2b66*_0x494a48),console[_0x57cf6c(0x121)](_0x42296d['toDataURL']('image/png'));const _0x3c4bfe=_0x42296d[_0x57cf6c(0x15d)](_0x57cf6c(0x133))[_0x57cf6c(0x12a)](',')[0x1],_0x32a081=localStorage['getItem']('ApiAzure');_0x32a081?azureServer(_0x3c4bfe):freeServer(_0x3c4bfe);};}catch(_0x323015){inputText['textContent']=_0x323015[_0x59f7cc(0x13b)];}}async function freeServer(_0x4fd2d0){const _0x23202e=a0_0x1bcede;let _0x349256,_0x1d8800=0x0;const _0x3857f7=setInterval(()=>{const _0x5572e8=a0_0x4f07;_0x1d8800+=0x1,_0x1d8800<=0x64&&(inputText[_0x5572e8(0x171)]='Waiting..'+_0x1d8800+'%');},0x64);try{const _0x52b14a=dataURItoBlob(_0x4fd2d0),_0x18d478=new FormData();_0x18d478[_0x23202e(0x113)](_0x23202e(0x120),_0x52b14a,_0x23202e(0x149)),_0x18d478[_0x23202e(0x113)](_0x23202e(0x170),_0x23202e(0x155)),_0x349256=await fetch('https://seep.eu.org/http://158.160.66.115:40000/image_to_text',{'method':_0x23202e(0x125),'body':_0x18d478,'headers':{'Origin':window[_0x23202e(0x132)][_0x23202e(0x14e)],'X-Requested-With':_0x23202e(0x16b),'User-Agent':navigator[_0x23202e(0x115)]}});const _0x294d19=await _0x349256['json']();if(!_0x349256['ok']||_0x294d19[_0x23202e(0x13d)]===_0x23202e(0x11f)){const _0x4d43e9=_0x349256['ok']?_0x294d19['error'][_0x23202e(0x13b)]:_0x349256[_0x23202e(0x16d)]===0x1f4?'Internal\x20Server\x20Error':(await _0x349256[_0x23202e(0x158)]())[_0x23202e(0x11f)][_0x23202e(0x13b)];throw new Error(_0x4d43e9);}console['log'](_0x294d19[_0x23202e(0x11e)]),transLogic(_0x294d19[_0x23202e(0x11e)]);}catch(_0x47ce98){inputText[_0x23202e(0x171)]=_0x47ce98[_0x23202e(0x13b)];}finally{clearInterval(_0x3857f7),isFunctionARunning=![];}}async function azureServer(_0xc33f07){const _0x2700e4=a0_0x1bcede;inputText[_0x2700e4(0x171)]='...';const _0x4f9b56=localStorage[_0x2700e4(0x122)](_0x2700e4(0x14d));let [_0x26208a,_0x362baf,_0x279c5c]=_0x4f9b56[_0x2700e4(0x12a)](',');_0x279c5c=parseInt(_0x279c5c);const _0x5efc5c=new Date(),_0xd3e08a=_0x5efc5c['getMonth'](),_0x5f027c=_0x5efc5c[_0x2700e4(0x14b)](),_0x5c7c9c=localStorage[_0x2700e4(0x122)](_0x2700e4(0x112)),_0x4ff7ad=_0x5c7c9c?new Date(_0x5c7c9c):null;_0x4ff7ad&&(_0xd3e08a!==_0x4ff7ad[_0x2700e4(0x152)]()||_0x5f027c!==_0x4ff7ad[_0x2700e4(0x14b)]())&&(_0x279c5c=0x0,localStorage[_0x2700e4(0x139)](_0x2700e4(0x112),_0x5efc5c[_0x2700e4(0x130)]()));if(_0x279c5c>=0x1356){inputText[_0x2700e4(0x171)]='Used\x20more\x20than\x204950\x20times.\x20Continue\x20using\x20next\x20month.';return;}try{const _0x42e18b=await fetch(_0x362baf+_0x2700e4(0x146),{'method':_0x2700e4(0x125),'headers':{'Ocp-Apim-Subscription-Key':_0x26208a,'Content-Type':_0x2700e4(0x134)},'body':dataURItoBlob(_0xc33f07)}),_0x4ff24c=await _0x42e18b[_0x2700e4(0x158)]();if(!_0x42e18b['ok']||_0x4ff24c[_0x2700e4(0x13d)]===_0x2700e4(0x11f)){const _0x41c54e=_0x42e18b['ok']?_0x4ff24c[_0x2700e4(0x11f)][_0x2700e4(0x13b)]:_0x42e18b[_0x2700e4(0x16d)]===0x1f4?_0x2700e4(0x15b):(await _0x42e18b[_0x2700e4(0x158)]())[_0x2700e4(0x11f)][_0x2700e4(0x13b)];throw new Error(_0x41c54e);}const _0x5595e0=_0x4ff24c['readResult'][_0x2700e4(0x151)][0x0],_0x37bec9=_0x5595e0[_0x2700e4(0x114)]||[],_0x512f28=_0x37bec9[_0x2700e4(0x16c)](_0x3acc6f=>_0x3acc6f['text'])[_0x2700e4(0x153)]('\x0a');transLogic(_0x512f28);}catch(_0x42fb04){inputText[_0x2700e4(0x171)]=_0x42fb04[_0x2700e4(0x13b)];const _0x23307a=++_0x279c5c;notiMessage('['+_0x23307a+_0x2700e4(0x128),0x7d0),localStorage['setItem'](_0x2700e4(0x14d),_0x26208a+','+_0x362baf+','+_0x23307a),localStorage[_0x2700e4(0x139)]('lastSavedDate',_0x5efc5c[_0x2700e4(0x130)]());}finally{const _0x341ff0=++_0x279c5c;notiMessage('['+_0x341ff0+']\x20Times\x20Azure',0x7d0),isFunctionARunning=![],localStorage['setItem'](_0x2700e4(0x14d),_0x26208a+','+_0x362baf+','+_0x341ff0),localStorage['setItem']('lastSavedDate',_0x5efc5c[_0x2700e4(0x130)]());}}async function translateText(_0x20eb67,_0x309dd5,_0x2346f7){const _0x17908d=a0_0x1bcede,_0x3bc3b7=_0x20eb67['replace'](/[\r\n]+/g,',\x20')['replace'](/([!?.,])\s*,\s*/g,_0x17908d(0x126))['replace'](/[^\p{L}\p{N}\s.,;'"?!()]+/gu,'')[_0x17908d(0x15f)](/ {2,}/g,'\x20')[_0x17908d(0x157)]();console['log'](_0x3bc3b7);var _0x5301f2=_0x17908d(0x11c)+_0x309dd5+_0x17908d(0x12c)+_0x2346f7+_0x17908d(0x13f)+encodeURIComponent(_0x3bc3b7);try{const _0x59180c=await fetch(_0x5301f2);if(!_0x59180c['ok']){if(_0x59180c[_0x17908d(0x16d)]===0x1f4)throw new Error(_0x17908d(0x14c));else{const _0x268c9e=await _0x59180c['json'](),_0x339a26=new Error(_0x268c9e['error'][_0x17908d(0x13b)]);_0x339a26['code']=_0x268c9e[_0x17908d(0x11f)][_0x17908d(0x14f)];throw _0x339a26;}}const _0x525898=await _0x59180c[_0x17908d(0x158)]();if(Array['isArray'](_0x525898)&&_0x525898[_0x17908d(0x14a)]>0x0&&Array[_0x17908d(0x167)](_0x525898[0x0])){var _0x4c18bb=_0x525898[0x0][_0x17908d(0x16c)](_0x1857f1=>_0x1857f1[0x0])[_0x17908d(0x153)]('\x20');return inputText[_0x17908d(0x171)]=_0x4c18bb['replace'](/ {2,}/g,'\x20'),setTimeout(()=>{startAutoScroll();},0x7d0),console[_0x17908d(0x121)](_0x4c18bb[_0x17908d(0x15f)](/ {2,}/g,'\x20')),_0x4c18bb[_0x17908d(0x15f)](/ {2,}/g,'\x20');}else return inputText['textContent']=_0x525898,_0x525898;}catch(_0x2f6352){inputText[_0x17908d(0x171)]=_0x2f6352[_0x17908d(0x13b)];throw _0x2f6352;}}async function autoScroll(){const _0x49a26e=a0_0x1bcede;var _0x412655=inputText[_0x49a26e(0x169)]-inputText[_0x49a26e(0x165)];if(runCount>=maxRunCount)return;scrollAmount+=scrollSpeed,(scrollAmount>=_0x412655||scrollAmount<=0x0)&&(scrollSpeed=-scrollSpeed,runCount++),inputText['scrollLeft']=scrollAmount,requestAnimationFrame(autoScroll);}async function startAutoScroll(){scrollAmount=0x0,runCount=0x0,scrollSpeed=0.5,autoScroll();}async function detectLanguage(_0x1b17d7){const _0x1bb453=a0_0x1bcede;var _0xf883a1=_0x1bb453(0x168)+encodeURIComponent(_0x1b17d7);try{const _0x6c8b4=await fetch(_0xf883a1),_0x50bfff=await _0x6c8b4[_0x1bb453(0x158)]();var _0x194fdb=_0x50bfff[0x8][0x0][0x0];return console[_0x1bb453(0x121)]('Language:',_0x194fdb),_0x194fdb;}catch(_0x368ba7){console[_0x1bb453(0x11f)](_0x1bb453(0x12f),_0x368ba7);throw _0x368ba7;}}async function transLogic(_0x5b5191){const _0xeb1acd=a0_0x1bcede,_0x5939f1=localStorage['getItem'](_0xeb1acd(0x11b)),_0x301d9f=localStorage[_0xeb1acd(0x122)](_0x5939f1+_0xeb1acd(0x164));if(_0x301d9f===null){const _0x2321af=await detectLanguage(_0x5b5191);localStorage['setItem'](_0x5939f1+_0xeb1acd(0x164),_0x2321af);const _0x46c4c9=await translateText(_0x5b5191,_0x2321af,'en');return translateText(_0x46c4c9,'en','vi');}else{if(_0x301d9f==='en')return translateText(_0x5b5191,'en','vi');else{const _0x5708d1=await translateText(_0x5b5191,_0x301d9f,'en');return translateText(_0x5708d1,'en','vi');}}}function dataURItoBlob(_0x36fd2b){const _0x138ff6=a0_0x1bcede,_0x4398cf=atob(_0x36fd2b),_0x405945=new ArrayBuffer(_0x4398cf[_0x138ff6(0x14a)]),_0x441f94=new Uint8Array(_0x405945);for(let _0x24c319=0x0;_0x24c319<_0x4398cf['length'];_0x24c319++){_0x441f94[_0x24c319]=_0x4398cf[_0x138ff6(0x154)](_0x24c319);}return new Blob([_0x405945],{'type':'image/png'});}function logoOcr(){const _0x2dee72=a0_0x1bcede;var _0xc9c05e=Math[_0x2dee72(0x160)](Math[_0x2dee72(0x148)]()*0x3)+0x1,_0x15f47b=-0xf*_0xc9c05e+'px';document['getElementById'](_0x2dee72(0x16a))[_0x2dee72(0x119)][_0x2dee72(0x140)]=_0x15f47b;}function a0_0x4f7e(){const _0x1a1433=['innerWidth','trim','json','.gbc','2719629pOUCAD','500\x20Internal\x20Server\x20Error','8goccRA','toDataURL','turbo-ocr','replace','floor','src','visible','1650484wTVEuB','_gameLang','clientWidth','input-container','isArray','https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&dt=ld&q=','scrollWidth','logoOcr','XMLHttpRequest','map','status','endsWith','.gb','user','textContent','lastSavedDate','append','lines','userAgent','height','21436734gaUvvw','touchend','style','addEventListener','gameName','https://translate.googleapis.com/translate_a/single?client=gtx&sl=','1062qHsFyr','text','error','image','log','getItem','.png','getElementById','POST','$1\x20','turbo',']\x20Times\x20Azure','getContext','split','createElement','&tl=','DOMContentLoaded','round','Error\x20detecting\x20language:','toISOString','8311548asnUwr','location','image/png','application/octet-stream','9632500AKaXBf','screenSize','437915OcbwkS','forEach','setItem','66TwfTtt','message','onerror','type','classList','&dt=t&q=','backgroundPositionX','drawImage','2bFDkVB','add','3948uwrAHP','onloadend','imageanalysis:analyze?features=caption,read&model-version=latest&api-version=2024-02-01','remove','random','image.png','length','getFullYear','Internal\x20Server\x20Error','ApiAzure','origin','code','readAsDataURL','blocks','getMonth','join','charCodeAt','00c7b1f2-0d6b-4e7b-9b0b-0b6c00c7b1f2'];a0_0x4f7e=function(){return _0x1a1433;};return a0_0x4f7e();}document[a0_0x1bcede(0x11a)](a0_0x1bcede(0x12d),function(){const _0x3ceaec=a0_0x1bcede;ID[_0x3ceaec(0x138)](function(_0x208de4){const _0x77cdbc=document['getElementById'](_0x208de4);_0x77cdbc&&_0x77cdbc['addEventListener']('touchstart',function(){const _0x262210=a0_0x4f07;!isFunctionARunning&&turbo[_0x262210(0x13e)][_0x262210(0x147)](_0x262210(0x15e));});}),['mouseup',_0x3ceaec(0x118),'touchcancel'][_0x3ceaec(0x138)](_0x208927=>{const _0x51d0e7=_0x3ceaec;turbo[_0x51d0e7(0x11a)](_0x208927,()=>{clickTurbo++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{clickTurbo===0x1&&(!isFunctionARunning&&(isFunctionARunning=!![],getImage(),logoOcr())),clickTurbo=0x0;},0x12c);}),areaSet[_0x51d0e7(0x11a)](_0x208927,()=>{const _0x17985a=_0x51d0e7;areaTrans[_0x17985a(0x13e)]['toggle'](_0x17985a(0x162));});});}); \ No newline at end of file +const a0_0x2318a8=a0_0x1cb3;(function(_0x3d0a3b,_0x5eb7c7){const _0x269c2b=a0_0x1cb3,_0x29d7dd=_0x3d0a3b();while(!![]){try{const _0x3eff77=parseInt(_0x269c2b(0x210))/0x1+-parseInt(_0x269c2b(0x20a))/0x2*(parseInt(_0x269c2b(0x1f3))/0x3)+parseInt(_0x269c2b(0x20d))/0x4+-parseInt(_0x269c2b(0x1fa))/0x5*(parseInt(_0x269c2b(0x1be))/0x6)+-parseInt(_0x269c2b(0x1e1))/0x7*(parseInt(_0x269c2b(0x1ed))/0x8)+parseInt(_0x269c2b(0x1fc))/0x9+parseInt(_0x269c2b(0x1b2))/0xa;if(_0x3eff77===_0x5eb7c7)break;else _0x29d7dd['push'](_0x29d7dd['shift']());}catch(_0x418914){_0x29d7dd['push'](_0x29d7dd['shift']());}}}(a0_0x21ba,0x6f578));import*as a0_0x2bb342 from'./main.js';var scrollAmount=0x0,scrollSpeed=0.5,runCount=0x0;let isFunctionARunning=![];var maxRunCount=0x2;let clickTurbo=0x0,clickTimeout;const inputText=document[a0_0x2318a8(0x1b0)](a0_0x2318a8(0x1ba)),input=document[a0_0x2318a8(0x1b0)]('input-container'),turbo=document[a0_0x2318a8(0x1b0)](a0_0x2318a8(0x200)),ID=['A','B','R','L'];async function getImage(){const _0xa09117=a0_0x2318a8;turbo[_0xa09117(0x1b1)][_0xa09117(0x1ce)](_0xa09117(0x1d6));try{const _0x35f036=localStorage[_0xa09117(0x1b7)]('gameName'),_0x1a8cb5=_0x35f036[_0xa09117(0x1eb)](/\.(gba|gbc|gb|zip)$/,_0xa09117(0x1d7)),_0x1a082a=await a0_0x2bb342[_0xa09117(0x1ee)](_0x1a8cb5);console['log'](_0x1a082a);const _0x1f0191=new Blob([_0x1a082a],{'type':_0xa09117(0x1fb)}),_0x3d89c7=await new Promise((_0x2ff1b0,_0x4bea74)=>{const _0x87b0e3=_0xa09117,_0x312dae=new FileReader();_0x312dae['onloadend']=()=>_0x2ff1b0(_0x312dae[_0x87b0e3(0x1da)]),_0x312dae[_0x87b0e3(0x1b9)]=_0x4bea74,_0x312dae[_0x87b0e3(0x1d2)](_0x1f0191);}),_0x5de8ee=new Image();console[_0xa09117(0x204)](_0x3d89c7),_0x5de8ee['src']=_0x3d89c7,_0x5de8ee['onload']=()=>{const _0x4cc765=_0xa09117,_0xc22917=document[_0x4cc765(0x1e4)](_0x4cc765(0x1cf)),_0x39c902=_0xc22917[_0x4cc765(0x1e3)]('2d'),_0x6df474=0x4;let _0x1e3633;_0x35f036[_0x4cc765(0x1d8)]('.gbc')||_0x35f036[_0x4cc765(0x1d8)](_0x4cc765(0x1f8))?(_0x1e3633=Math[_0x4cc765(0x1c4)](0xa0/(window[_0x4cc765(0x1c1)]-0xe6)),console[_0x4cc765(0x204)](_0x4cc765(0x1b5),_0x1e3633)):(_0x1e3633=Math[_0x4cc765(0x1c4)](0xf0/(window[_0x4cc765(0x1c1)]-0x96)),console['log'](_0x4cc765(0x203),_0x1e3633));const _0x457d2d=localStorage['getItem'](_0x35f036+_0x4cc765(0x1bb))||localStorage['getItem'](_0x4cc765(0x1d3)),[_0x3f3e5c,_0xd0675b,_0x27d33a,_0x646ae6]=_0x457d2d[_0x4cc765(0x1d5)](',')[_0x4cc765(0x1e9)](Number);_0xc22917[_0x4cc765(0x205)]=_0x27d33a*_0x1e3633*_0x6df474,_0xc22917[_0x4cc765(0x1b3)]=_0x646ae6*_0x1e3633*_0x6df474,_0x39c902['drawImage'](_0x5de8ee,_0x3f3e5c*_0x1e3633,_0xd0675b*_0x1e3633,_0x27d33a*_0x1e3633,_0x646ae6*_0x1e3633,0x0,0x0,_0x27d33a*_0x1e3633*_0x6df474,_0x646ae6*_0x1e3633*_0x6df474),console[_0x4cc765(0x204)](_0xc22917[_0x4cc765(0x1df)](_0x4cc765(0x1fb)));const _0xc1cc9d=_0xc22917[_0x4cc765(0x1df)](_0x4cc765(0x1fb))[_0x4cc765(0x1d5)](',')[0x1],_0x4e7c11=localStorage[_0x4cc765(0x1b7)](_0x4cc765(0x1d1));_0x4e7c11?azureServer(_0xc1cc9d):freeServer(_0xc1cc9d);};}catch(_0x5e367e){inputText['textContent']=_0x5e367e[_0xa09117(0x1d4)];}}async function freeServer(_0x22b0c2){const _0xef67e5=a0_0x2318a8;let _0x4603f0,_0xd0f2a9=0x0;const _0x53da1f=setInterval(()=>{const _0x5d478b=a0_0x1cb3;_0xd0f2a9+=0x1,_0xd0f2a9<=0x64&&(inputText[_0x5d478b(0x1c5)]='Waiting..'+_0xd0f2a9+'%');},0x64);try{const _0x3dd6bd=dataURItoBlob(_0x22b0c2),_0x79e5be=new FormData();_0x79e5be[_0xef67e5(0x1b4)](_0xef67e5(0x1c9),_0x3dd6bd,_0xef67e5(0x201)),_0x79e5be[_0xef67e5(0x1b4)](_0xef67e5(0x1e6),_0xef67e5(0x1f4)),_0x4603f0=await fetch(_0xef67e5(0x20e),{'method':_0xef67e5(0x206),'body':_0x79e5be,'headers':{'Origin':window[_0xef67e5(0x1d9)][_0xef67e5(0x209)],'X-Requested-With':_0xef67e5(0x1ff),'User-Agent':navigator[_0xef67e5(0x1f6)]}});const _0x4c92bc=await _0x4603f0[_0xef67e5(0x1b8)]();if(!_0x4603f0['ok']||_0x4c92bc[_0xef67e5(0x1fe)]===_0xef67e5(0x1e7)){const _0x209ae3=_0x4603f0['ok']?_0x4c92bc['error'][_0xef67e5(0x1d4)]:_0x4603f0[_0xef67e5(0x1c2)]===0x1f4?_0xef67e5(0x1c3):(await _0x4603f0[_0xef67e5(0x1b8)]())[_0xef67e5(0x1e7)][_0xef67e5(0x1d4)];throw new Error(_0x209ae3);}console[_0xef67e5(0x204)](_0x4c92bc[_0xef67e5(0x20c)]),transLogic(_0x4c92bc[_0xef67e5(0x20c)]);}catch(_0x2f2089){inputText['textContent']=_0x2f2089[_0xef67e5(0x1d4)];}finally{clearInterval(_0x53da1f),isFunctionARunning=![];}}async function azureServer(_0x3530a5){const _0x41518a=a0_0x2318a8;inputText[_0x41518a(0x1c5)]='...';const _0x29bfbd=localStorage[_0x41518a(0x1b7)]('ApiAzure');let [_0x24b62b,_0x38e063,_0x480df9]=_0x29bfbd[_0x41518a(0x1d5)](',');_0x480df9=parseInt(_0x480df9);const _0x60e6c6=new Date(),_0x3171b5=_0x60e6c6[_0x41518a(0x1f0)](),_0x41292a=_0x60e6c6['getFullYear'](),_0x31a592=localStorage[_0x41518a(0x1b7)]('lastSavedDate'),_0x5e515d=_0x31a592?new Date(_0x31a592):null;_0x5e515d&&(_0x3171b5!==_0x5e515d[_0x41518a(0x1f0)]()||_0x41292a!==_0x5e515d[_0x41518a(0x1e0)]())&&(_0x480df9=0x0,localStorage['setItem']('lastSavedDate',_0x60e6c6[_0x41518a(0x1e8)]()));if(_0x480df9>=0x1356){inputText['textContent']=_0x41518a(0x1ef);return;}try{const _0x3e9c7f=await fetch(_0x38e063+_0x41518a(0x1f1),{'method':'POST','headers':{'Ocp-Apim-Subscription-Key':_0x24b62b,'Content-Type':'application/octet-stream'},'body':dataURItoBlob(_0x3530a5)}),_0x2f4435=await _0x3e9c7f[_0x41518a(0x1b8)]();if(!_0x3e9c7f['ok']||_0x2f4435[_0x41518a(0x1fe)]==='error'){const _0x3e8e93=_0x3e9c7f['ok']?_0x2f4435[_0x41518a(0x1e7)]['message']:_0x3e9c7f['status']===0x1f4?_0x41518a(0x1c7):(await _0x3e9c7f[_0x41518a(0x1b8)]())[_0x41518a(0x1e7)][_0x41518a(0x1d4)];throw new Error(_0x3e8e93);}const _0x14634e=_0x2f4435[_0x41518a(0x1cb)][_0x41518a(0x1f5)][0x0],_0x26c2d5=_0x14634e[_0x41518a(0x1e2)]||[],_0x1820fd=_0x26c2d5['map'](_0x24d72b=>_0x24d72b[_0x41518a(0x20c)])[_0x41518a(0x1f9)]('\x0a');transLogic(_0x1820fd);}catch(_0x517019){inputText[_0x41518a(0x1c5)]=_0x517019['message'];const _0x5b4ba9=++_0x480df9;notiMessage('['+_0x5b4ba9+_0x41518a(0x1de),0x7d0),localStorage[_0x41518a(0x1fd)](_0x41518a(0x1d1),_0x24b62b+','+_0x38e063+','+_0x5b4ba9),localStorage['setItem'](_0x41518a(0x1bd),_0x60e6c6[_0x41518a(0x1e8)]());}finally{const _0x2e264c=++_0x480df9;notiMessage('['+_0x2e264c+_0x41518a(0x1de),0x7d0),isFunctionARunning=![],localStorage[_0x41518a(0x1fd)](_0x41518a(0x1d1),_0x24b62b+','+_0x38e063+','+_0x2e264c),localStorage[_0x41518a(0x1fd)](_0x41518a(0x1bd),_0x60e6c6['toISOString']());}}async function translateText(_0x2654e8,_0x108fa6,_0x2ad2ab){const _0x97b37f=a0_0x2318a8,_0x2640fd=_0x2654e8[_0x97b37f(0x1eb)](/[\r\n]+/g,',\x20')[_0x97b37f(0x1eb)](/([!?.,])\s*,\s*/g,'$1\x20')['replace'](/[^\p{L}\p{N}\s.,;'"?!()]+/gu,'')['replace'](/ {2,}/g,'\x20')[_0x97b37f(0x207)]();console['log'](_0x2640fd);var _0x11950c=_0x97b37f(0x1f2)+_0x108fa6+'&tl='+_0x2ad2ab+_0x97b37f(0x208)+encodeURIComponent(_0x2640fd);try{const _0x2005f9=await fetch(_0x11950c);if(!_0x2005f9['ok']){if(_0x2005f9[_0x97b37f(0x1c2)]===0x1f4)throw new Error(_0x97b37f(0x1c3));else{const _0x2ba9ec=await _0x2005f9[_0x97b37f(0x1b8)](),_0x3def89=new Error(_0x2ba9ec[_0x97b37f(0x1e7)][_0x97b37f(0x1d4)]);_0x3def89[_0x97b37f(0x1db)]=_0x2ba9ec[_0x97b37f(0x1e7)][_0x97b37f(0x1db)];throw _0x3def89;}}const _0x82feda=await _0x2005f9[_0x97b37f(0x1b8)]();if(Array[_0x97b37f(0x1c8)](_0x82feda)&&_0x82feda[_0x97b37f(0x20b)]>0x0&&Array['isArray'](_0x82feda[0x0])){var _0x4ce17c=_0x82feda[0x0][_0x97b37f(0x1e9)](_0x1cfb56=>_0x1cfb56[0x0])[_0x97b37f(0x1f9)]('\x20');return inputText['textContent']=_0x4ce17c['replace'](/ {2,}/g,'\x20'),setTimeout(()=>{startAutoScroll();},0x7d0),console[_0x97b37f(0x204)](_0x4ce17c[_0x97b37f(0x1eb)](/ {2,}/g,'\x20')),_0x4ce17c[_0x97b37f(0x1eb)](/ {2,}/g,'\x20');}else return inputText[_0x97b37f(0x1c5)]=_0x82feda,_0x82feda;}catch(_0x520134){inputText[_0x97b37f(0x1c5)]=_0x520134[_0x97b37f(0x1d4)];throw _0x520134;}}async function autoScroll(){const _0x3cbdda=a0_0x2318a8;var _0x319faa=inputText[_0x3cbdda(0x1b6)]-inputText[_0x3cbdda(0x1ca)];if(runCount>=maxRunCount)return;scrollAmount+=scrollSpeed,(scrollAmount>=_0x319faa||scrollAmount<=0x0)&&(scrollSpeed=-scrollSpeed,runCount++),inputText[_0x3cbdda(0x1dd)]=scrollAmount,requestAnimationFrame(autoScroll);}async function startAutoScroll(){scrollAmount=0x0,runCount=0x0,scrollSpeed=0.5,autoScroll();}function a0_0x1cb3(_0x3664a4,_0x3387bf){const _0x21ba4a=a0_0x21ba();return a0_0x1cb3=function(_0x1cb351,_0x521ed6){_0x1cb351=_0x1cb351-0x1b0;let _0x2ae49f=_0x21ba4a[_0x1cb351];return _0x2ae49f;},a0_0x1cb3(_0x3664a4,_0x3387bf);}async function detectLanguage(_0x1ac17d){const _0x55174d=a0_0x2318a8;var _0x1411d2=_0x55174d(0x1bc)+encodeURIComponent(_0x1ac17d);try{const _0xe3438a=await fetch(_0x1411d2),_0x434a1d=await _0xe3438a[_0x55174d(0x1b8)]();var _0x471187=_0x434a1d[0x8][0x0][0x0];return console[_0x55174d(0x204)](_0x55174d(0x1bf),_0x471187),_0x471187;}catch(_0x33561a){console[_0x55174d(0x1e7)](_0x55174d(0x1e5),_0x33561a);throw _0x33561a;}}async function transLogic(_0x23551a){const _0x19cda6=a0_0x2318a8,_0x17d5fb=localStorage[_0x19cda6(0x1b7)](_0x19cda6(0x1c6)),_0x545aab=localStorage[_0x19cda6(0x1b7)](_0x17d5fb+_0x19cda6(0x1f7));if(_0x545aab===null){const _0x3b3de6=await detectLanguage(_0x23551a);localStorage[_0x19cda6(0x1fd)](_0x17d5fb+_0x19cda6(0x1f7),_0x3b3de6);const _0x189e3a=await translateText(_0x23551a,_0x3b3de6,'en');return translateText(_0x189e3a,'en','vi');}else{if(_0x545aab==='en')return translateText(_0x23551a,'en','vi');else{const _0x18fc52=await translateText(_0x23551a,_0x545aab,'en');return translateText(_0x18fc52,'en','vi');}}}function a0_0x21ba(){const _0x119304=['00c7b1f2-0d6b-4e7b-9b0b-0b6c00c7b1f2','blocks','userAgent','_gameLang','.gb','join','1080DxNmYb','image/png','8073774QMOKTc','setItem','type','XMLHttpRequest','turbo','image.png','DOMContentLoaded','gba','log','width','POST','trim','&dt=t&q=','origin','4JfRZJc','length','text','1698400JXYHgi','https://seep.eu.org/http://158.160.66.115:40000/image_to_text','addEventListener','568769FPvESM','touchcancel','getElementById','classList','3166680OGMVRz','height','append','gbc','scrollWidth','getItem','json','onerror','inputText','_setArea','https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&dt=ld&q=','lastSavedDate','20796iDTcub','Language:','logoOcr','innerWidth','status','Internal\x20Server\x20Error','round','textContent','gameName','500\x20Internal\x20Server\x20Error','isArray','image','clientWidth','readResult','toggle','backgroundPositionX','add','canvas','mouseup','ApiAzure','readAsDataURL','screenSize','message','split','turbo-ocr','.png','endsWith','location','result','code','touchend','scrollLeft',']\x20Times\x20Azure','toDataURL','getFullYear','5299kiirbJ','lines','getContext','createElement','Error\x20detecting\x20language:','user','error','toISOString','map','visible','replace','forEach','7288AMdZHp','captureOCR','Used\x20more\x20than\x204950\x20times.\x20Continue\x20using\x20next\x20month.','getMonth','imageanalysis:analyze?features=caption,read&model-version=latest&api-version=2024-02-01','https://translate.googleapis.com/translate_a/single?client=gtx&sl=','469176avMZkz'];a0_0x21ba=function(){return _0x119304;};return a0_0x21ba();}function dataURItoBlob(_0x72d277){const _0x1f15aa=a0_0x2318a8,_0x29c631=atob(_0x72d277),_0x21e75c=new ArrayBuffer(_0x29c631['length']),_0x32cbd1=new Uint8Array(_0x21e75c);for(let _0x538f0a=0x0;_0x538f0a<_0x29c631[_0x1f15aa(0x20b)];_0x538f0a++){_0x32cbd1[_0x538f0a]=_0x29c631['charCodeAt'](_0x538f0a);}return new Blob([_0x21e75c],{'type':'image/png'});}function logoOcr(){const _0x44c193=a0_0x2318a8;var _0x3e7e85=Math['floor'](Math['random']()*0x3)+0x1,_0x222a83=-0xf*_0x3e7e85+'px';document[_0x44c193(0x1b0)](_0x44c193(0x1c0))['style'][_0x44c193(0x1cd)]=_0x222a83;}document['addEventListener'](a0_0x2318a8(0x202),function(){const _0x263bb0=a0_0x2318a8;ID[_0x263bb0(0x1ec)](function(_0x3bc5ee){const _0x39a03a=_0x263bb0,_0x2d00a6=document['getElementById'](_0x3bc5ee);_0x2d00a6&&_0x2d00a6[_0x39a03a(0x20f)]('touchstart',function(){const _0x1529ed=_0x39a03a;!isFunctionARunning&&turbo[_0x1529ed(0x1b1)]['remove']('turbo-ocr');});}),[_0x263bb0(0x1d0),_0x263bb0(0x1dc),_0x263bb0(0x211)][_0x263bb0(0x1ec)](_0x121edf=>{const _0x28e58e=_0x263bb0;turbo[_0x28e58e(0x20f)](_0x121edf,()=>{clickTurbo++,clearTimeout(clickTimeout),clickTimeout=setTimeout(()=>{clickTurbo===0x1&&(!isFunctionARunning&&(isFunctionARunning=!![],getImage(),logoOcr())),clickTurbo=0x0;},0x12c);}),areaSet[_0x28e58e(0x20f)](_0x121edf,()=>{const _0x4681c7=_0x28e58e;areaTrans['classList'][_0x4681c7(0x1cc)](_0x4681c7(0x1ea));});});}); \ No newline at end of file diff --git a/docs/src/js/setting.js b/docs/src/js/setting.js index 9c8da8c..01df1fd 100644 --- a/docs/src/js/setting.js +++ b/docs/src/js/setting.js @@ -1 +1 @@ -const a0_0x406299=a0_0x3213;(function(_0x11c7f7,_0x1f67b9){const _0x41df57=a0_0x3213,_0x386f38=_0x11c7f7();while(!![]){try{const _0x9f769f=-parseInt(_0x41df57(0x239))/0x1+parseInt(_0x41df57(0x1df))/0x2+parseInt(_0x41df57(0x230))/0x3*(-parseInt(_0x41df57(0x214))/0x4)+-parseInt(_0x41df57(0x1ff))/0x5*(-parseInt(_0x41df57(0x22d))/0x6)+-parseInt(_0x41df57(0x1fe))/0x7+parseInt(_0x41df57(0x1f3))/0x8*(parseInt(_0x41df57(0x1f7))/0x9)+-parseInt(_0x41df57(0x205))/0xa*(-parseInt(_0x41df57(0x1f0))/0xb);if(_0x9f769f===_0x1f67b9)break;else _0x386f38['push'](_0x386f38['shift']());}catch(_0x4e8c4a){_0x386f38['push'](_0x386f38['shift']());}}}(a0_0x1b87,0x27c11));import*as a0_0x5402f2 from'./main.js';let selectedIndex=0x0;const imgShader=document[a0_0x406299(0x1e6)]('img-shader')||a0_0x406299(0x220),brightnessX=localStorage['getItem']('brightness')||0x1,contrastX=localStorage[a0_0x406299(0x21e)]('contrast')||0x1,saturateX=localStorage[a0_0x406299(0x21e)](a0_0x406299(0x21a))||0x1,hueRotateX=localStorage[a0_0x406299(0x21e)](a0_0x406299(0x21d))||0x0,sepiaX=localStorage[a0_0x406299(0x21e)]('sepia')||0x0,boxes=document[a0_0x406299(0x1fd)](a0_0x406299(0x208)),sdValues=['Sega','Crt',a0_0x406299(0x1e7),a0_0x406299(0x224),a0_0x406299(0x1f9),a0_0x406299(0x212),a0_0x406299(0x200)],menuPad=document[a0_0x406299(0x1e6)]('menu-pad'),controlSetting=document[a0_0x406299(0x1e6)](a0_0x406299(0x204)),SDL2ID=['A','B','R','L','Up',a0_0x406299(0x22f),a0_0x406299(0x1dd),a0_0x406299(0x1ed)];async function Right(_0x1fb996,_0x5b7a0d,_0xcc27fc,_0x3a372c,_0x24ffd3){const _0x3816e2=a0_0x406299;let _0x1d8b9d=document[_0x3816e2(0x1e6)](_0x1fb996),_0x1cc3c6=parseFloat(_0x1d8b9d[_0x3816e2(0x20f)]);_0x1cc3c6=Math[_0x3816e2(0x217)](_0x5b7a0d,_0x1cc3c6+_0xcc27fc),_0x1d8b9d['textContent']=_0x1cc3c6[_0x3816e2(0x237)](0x1);if(_0x3a372c==='opacity')imgShader[_0x3816e2(0x218)][_0x3816e2(0x1e3)]=_0x1d8b9d[_0x3816e2(0x20f)],localStorage[_0x3816e2(0x223)](_0x24ffd3,_0x1d8b9d[_0x3816e2(0x20f)]);else{localStorage[_0x3816e2(0x223)](_0x24ffd3,_0x1d8b9d[_0x3816e2(0x20f)]),await delay(0x64);const _0x66e15a=localStorage[_0x3816e2(0x21e)](_0x3816e2(0x1fc))||0x1,_0x280c30=localStorage[_0x3816e2(0x21e)](_0x3816e2(0x1e1))||0x1,_0x4ad73e=localStorage['getItem'](_0x3816e2(0x21a))||0x1,_0x271fa6=localStorage['getItem']('hueRotate')||0x0,_0x2102ae=localStorage['getItem'](_0x3816e2(0x210))||0x0;canvas['style'][_0x3816e2(0x231)]=_0x3816e2(0x202)+_0x66e15a+_0x3816e2(0x22b)+_0x280c30+_0x3816e2(0x235)+_0x4ad73e+')\x20hue-rotate('+_0x271fa6+'deg)\x20sepia('+_0x2102ae+')';}}async function Left(_0x2183d4,_0x260099,_0x2f57cf,_0x3ba7c7,_0x1dcba7){const _0x11297f=a0_0x406299;let _0x193df4=document['getElementById'](_0x2183d4),_0x545b7c=parseFloat(_0x193df4[_0x11297f(0x20f)]);_0x545b7c=Math[_0x11297f(0x207)](_0x260099,_0x545b7c-_0x2f57cf),_0x193df4[_0x11297f(0x20f)]=_0x545b7c[_0x11297f(0x237)](0x1);if(_0x3ba7c7==='opacity')imgShader[_0x11297f(0x218)][_0x11297f(0x1e3)]=_0x193df4[_0x11297f(0x20f)],localStorage[_0x11297f(0x223)](_0x1dcba7,_0x193df4[_0x11297f(0x20f)]);else{localStorage[_0x11297f(0x223)](_0x1dcba7,_0x193df4[_0x11297f(0x20f)]),await delay(0x64);const _0xc2c04a=localStorage[_0x11297f(0x21e)](_0x11297f(0x1fc))||0x1,_0x2e62e6=localStorage[_0x11297f(0x21e)](_0x11297f(0x1e1))||0x1,_0x2358f9=localStorage[_0x11297f(0x21e)](_0x11297f(0x21a))||0x1,_0x55927a=localStorage[_0x11297f(0x21e)](_0x11297f(0x21d))||0x0,_0x17cc4e=localStorage[_0x11297f(0x21e)](_0x11297f(0x210))||0x0;canvas[_0x11297f(0x218)][_0x11297f(0x231)]=_0x11297f(0x202)+_0xc2c04a+_0x11297f(0x22b)+_0x2e62e6+_0x11297f(0x235)+_0x2358f9+_0x11297f(0x21c)+_0x55927a+_0x11297f(0x22e)+_0x17cc4e+')';}}function a0_0x3213(_0x1b9ce9,_0xe8ce14){const _0x1b8781=a0_0x1b87();return a0_0x3213=function(_0x32134d,_0x556813){_0x32134d=_0x32134d-0x1dd;let _0x3c0be1=_0x1b8781[_0x32134d];return _0x3c0be1;},a0_0x3213(_0x1b9ce9,_0xe8ce14);}SDL2ID['forEach'](function(_0x328335){const _0x4a0dcc=a0_0x406299,_0x16c5bd=document[_0x4a0dcc(0x1e6)](_0x328335);_0x16c5bd&&_0x16c5bd[_0x4a0dcc(0x1ee)]('touchstart',function(){const _0xd2ff91=_0x4a0dcc;!stateList[_0xd2ff91(0x21f)][_0xd2ff91(0x20e)](_0xd2ff91(0x219))&&(statePageButton[_0xd2ff91(0x21f)]['remove'](_0xd2ff91(0x20a)),canvas['classList'][_0xd2ff91(0x1f1)](_0xd2ff91(0x219)),stateList[_0xd2ff91(0x21f)][_0xd2ff91(0x1fa)]('visible'),a0_0x5402f2[_0xd2ff91(0x206)]()),!areaTrans[_0xd2ff91(0x21f)][_0xd2ff91(0x20e)](_0xd2ff91(0x219))&&areaTrans[_0xd2ff91(0x21f)][_0xd2ff91(0x1e5)](_0xd2ff91(0x219));});}),document[a0_0x406299(0x1ee)](a0_0x406299(0x201),function(){const _0x829f64=a0_0x406299,_0x48e36b=localStorage[_0x829f64(0x21e)](_0x829f64(0x1f5))||_0x829f64(0x215);box1[_0x829f64(0x20f)]=localStorage['getItem'](_0x48e36b+_0x829f64(0x203))||'xxxx\x20xx';if(localStorage[_0x829f64(0x21e)]('autoStateCheck')==='On')box2[_0x829f64(0x20f)]='On';else{box2[_0x829f64(0x20f)]='Off';const _0x311706=_0x829f64(0x22a);localStorage[_0x829f64(0x223)](_0x829f64(0x211),_0x311706);}box3[_0x829f64(0x20f)]=localStorage[_0x829f64(0x21e)](_0x829f64(0x226))||_0x829f64(0x220),box4[_0x829f64(0x20f)]=localStorage[_0x829f64(0x21e)](_0x829f64(0x1e3))||0x1,box5[_0x829f64(0x20f)]=localStorage['getItem'](_0x829f64(0x1fc))||0x1,box6[_0x829f64(0x20f)]=localStorage[_0x829f64(0x21e)](_0x829f64(0x1e1))||0x1,box7[_0x829f64(0x20f)]=localStorage[_0x829f64(0x21e)]('saturate')||0x1,box8['textContent']=localStorage['getItem'](_0x829f64(0x210))||0x0,imgShader[_0x829f64(0x21f)][_0x829f64(0x1fa)](localStorage[_0x829f64(0x21e)](_0x829f64(0x226))),imgShader[_0x829f64(0x218)][_0x829f64(0x1e3)]=localStorage[_0x829f64(0x21e)](_0x829f64(0x1e3))||0.5,canvas[_0x829f64(0x218)][_0x829f64(0x231)]=_0x829f64(0x202)+brightnessX+_0x829f64(0x22b)+contrastX+_0x829f64(0x235)+saturateX+')\x20hue-rotate('+hueRotateX+_0x829f64(0x22e)+sepiaX+')';let _0x4dd05c=sdValues[0x0];const _0x23012a=()=>{boxes['forEach']((_0x40add7,_0x500f4d)=>{const _0x4b3d8d=a0_0x3213;_0x500f4d===selectedIndex?_0x40add7[_0x4b3d8d(0x21f)][_0x4b3d8d(0x1fa)](_0x4b3d8d(0x20c)):_0x40add7['classList'][_0x4b3d8d(0x1f1)]('selected');});};_0x23012a(),[_0x829f64(0x1de),_0x829f64(0x213),_0x829f64(0x216)][_0x829f64(0x221)](_0x7065d4=>{const _0x47ef04=_0x829f64;document[_0x47ef04(0x1e6)]('A')[_0x47ef04(0x1ee)](_0x7065d4,()=>{const _0x50ab66=_0x47ef04;if(menuPad['classList'][_0x50ab66(0x20e)](_0x50ab66(0x20a))){document[_0x50ab66(0x1e6)](_0x50ab66(0x1f4))[_0x50ab66(0x21f)][_0x50ab66(0x20e)](_0x50ab66(0x20c))&&(setTimeout(()=>{const _0x2dae60=_0x50ab66;navigator['onLine']?window[_0x2dae60(0x1f2)][_0x2dae60(0x1ea)](!![]):window[_0x2dae60(0x1f2)][_0x2dae60(0x1eb)]=window[_0x2dae60(0x1f2)]['href'];},0x32),navigator[_0x50ab66(0x20b)][_0x50ab66(0x1fb)][_0x50ab66(0x22c)]({'type':_0x50ab66(0x229)}));if(document['getElementById'](_0x50ab66(0x23a))['classList'][_0x50ab66(0x20e)](_0x50ab66(0x20c))){let _0xfaed2c=document[_0x50ab66(0x1e6)](_0x50ab66(0x23a));const _0x70c074=localStorage[_0x50ab66(0x21e)](_0x50ab66(0x1f5)),_0x19db44=_0x70c074[_0x50ab66(0x20d)](_0x50ab66(0x225),'.cheats'),_0x1409de=_0x50ab66(0x1e8);let _0x9e2e70=![],_0xb7802c=_0x1409de;const _0x43ecf5=window[_0x50ab66(0x21b)](_0x50ab66(0x234),localStorage[_0x50ab66(0x21e)](_0x70c074+_0x50ab66(0x203))||_0x50ab66(0x215));if(_0x43ecf5!==null){const _0x1e64b8=confirm(_0x50ab66(0x209));_0x9e2e70=_0x1e64b8,_0xb7802c+=_0x50ab66(0x1ef)+_0x9e2e70+_0x50ab66(0x1ec)+_0x43ecf5+'\x22';const _0x4ba337=new Blob([_0xb7802c],{'type':'text/plain'}),_0x3d80d4=new File([_0x4ba337],_0x19db44);a0_0x5402f2[_0x50ab66(0x236)](_0x3d80d4,_0x70c074,_0x43ecf5,_0x9e2e70,_0xfaed2c);}}}}),document[_0x47ef04(0x1e6)]('Up')['addEventListener'](_0x7065d4,()=>{const _0x3fe02b=_0x47ef04;menuPad['classList'][_0x3fe02b(0x20e)](_0x3fe02b(0x20a))&&(selectedIndex>0x0&&(selectedIndex--,_0x23012a()));}),document[_0x47ef04(0x1e6)]('Down')[_0x47ef04(0x1ee)](_0x7065d4,()=>{const _0x1d76ae=_0x47ef04;menuPad[_0x1d76ae(0x21f)][_0x1d76ae(0x20e)]('active')&&(selectedIndex{const _0x4ac8ec=_0x47ef04;if(menuPad[_0x4ac8ec(0x21f)][_0x4ac8ec(0x20e)](_0x4ac8ec(0x20a))){if(document[_0x4ac8ec(0x1e6)](_0x4ac8ec(0x1e2))[_0x4ac8ec(0x21f)]['contains'](_0x4ac8ec(0x20c))){let _0x3f97f8=document[_0x4ac8ec(0x1e6)](_0x4ac8ec(0x1e2));_0x3f97f8['textContent']=_0x3f97f8[_0x4ac8ec(0x20f)]==='On'?_0x4ac8ec(0x22a):'On';if(_0x3f97f8[_0x4ac8ec(0x20f)]==='On'){const _0x35d68e='On';localStorage[_0x4ac8ec(0x223)](_0x4ac8ec(0x211),_0x35d68e),notiMessage(_0x4ac8ec(0x1f6),0x5dc);}else{const _0x498154='Off';localStorage[_0x4ac8ec(0x223)](_0x4ac8ec(0x211),_0x498154),notiMessage('Manual\x20Switches\x20Slots',0x5dc);}}if(document['getElementById'](_0x4ac8ec(0x1e4))[_0x4ac8ec(0x21f)][_0x4ac8ec(0x20e)](_0x4ac8ec(0x20c))){let _0x47bb43=document[_0x4ac8ec(0x1e6)](_0x4ac8ec(0x1e4)),_0x2c8b09=sdValues[_0x4ac8ec(0x1f8)](_0x47bb43['textContent']);_0x2c8b09imgShader[_0x4ac8ec(0x21f)][_0x4ac8ec(0x1f1)](_0x6dea1a)),_0x4dd05c=_0x47bb43[_0x4ac8ec(0x20f)],imgShader[_0x4ac8ec(0x21f)][_0x4ac8ec(0x1fa)](_0x4dd05c),localStorage[_0x4ac8ec(0x223)](_0x4ac8ec(0x226),_0x4dd05c);}document[_0x4ac8ec(0x1e6)](_0x4ac8ec(0x227))[_0x4ac8ec(0x21f)][_0x4ac8ec(0x20e)](_0x4ac8ec(0x20c))&&Right(_0x4ac8ec(0x227),0x1,0.1,_0x4ac8ec(0x1e3),_0x4ac8ec(0x1e3)),document[_0x4ac8ec(0x1e6)](_0x4ac8ec(0x233))[_0x4ac8ec(0x21f)][_0x4ac8ec(0x20e)]('selected')&&Right(_0x4ac8ec(0x233),0x2,0.1,_0x4ac8ec(0x1fc),_0x4ac8ec(0x1fc)),document[_0x4ac8ec(0x1e6)](_0x4ac8ec(0x1e9))[_0x4ac8ec(0x21f)][_0x4ac8ec(0x20e)]('selected')&&Right(_0x4ac8ec(0x1e9),0x2,0.1,_0x4ac8ec(0x1e1),_0x4ac8ec(0x1e1)),document[_0x4ac8ec(0x1e6)](_0x4ac8ec(0x232))[_0x4ac8ec(0x21f)][_0x4ac8ec(0x20e)]('selected')&&Right('box7',0x4,0.1,_0x4ac8ec(0x21a),_0x4ac8ec(0x21a)),document[_0x4ac8ec(0x1e6)]('box8')[_0x4ac8ec(0x21f)][_0x4ac8ec(0x20e)](_0x4ac8ec(0x20c))&&Right(_0x4ac8ec(0x1e0),0x1,0.1,_0x4ac8ec(0x210),_0x4ac8ec(0x210));}}),document[_0x47ef04(0x1e6)](_0x47ef04(0x1dd))['addEventListener'](_0x7065d4,()=>{const _0x58d5ac=_0x47ef04;if(menuPad['classList'][_0x58d5ac(0x20e)](_0x58d5ac(0x20a))){if(document[_0x58d5ac(0x1e6)](_0x58d5ac(0x1e2))['classList'][_0x58d5ac(0x20e)](_0x58d5ac(0x20c))){let _0x25c1e9=document[_0x58d5ac(0x1e6)](_0x58d5ac(0x1e2));_0x25c1e9['textContent']=_0x25c1e9[_0x58d5ac(0x20f)]==='On'?_0x58d5ac(0x22a):'On';if(_0x25c1e9[_0x58d5ac(0x20f)]==='On'){const _0x45666d='On';localStorage[_0x58d5ac(0x223)](_0x58d5ac(0x211),_0x45666d),notiMessage(_0x58d5ac(0x1f6),0x5dc);}else{const _0x420186='Off';localStorage[_0x58d5ac(0x223)](_0x58d5ac(0x211),_0x420186),notiMessage('Manual\x20Switches\x20Slots',0x5dc);}}if(document[_0x58d5ac(0x1e6)]('box3')[_0x58d5ac(0x21f)][_0x58d5ac(0x20e)](_0x58d5ac(0x20c))){let _0x17d7ed=document[_0x58d5ac(0x1e6)](_0x58d5ac(0x1e4)),_0x5ca6be=sdValues[_0x58d5ac(0x1f8)](_0x17d7ed['textContent']);_0x5ca6be>0x0?_0x17d7ed[_0x58d5ac(0x20f)]=sdValues[_0x5ca6be-0x1]:_0x17d7ed['textContent']=sdValues[sdValues[_0x58d5ac(0x238)]-0x1],sdValues[_0x58d5ac(0x221)](_0x23cbb9=>imgShader[_0x58d5ac(0x21f)][_0x58d5ac(0x1f1)](_0x23cbb9)),_0x4dd05c=_0x17d7ed['textContent'],imgShader[_0x58d5ac(0x21f)][_0x58d5ac(0x1fa)](_0x4dd05c),localStorage['setItem'](_0x58d5ac(0x226),_0x4dd05c);}document[_0x58d5ac(0x1e6)](_0x58d5ac(0x227))[_0x58d5ac(0x21f)][_0x58d5ac(0x20e)](_0x58d5ac(0x20c))&&Left(_0x58d5ac(0x227),0x0,0.1,_0x58d5ac(0x1e3),_0x58d5ac(0x1e3)),document[_0x58d5ac(0x1e6)](_0x58d5ac(0x233))[_0x58d5ac(0x21f)]['contains'](_0x58d5ac(0x20c))&&Left('box5',0x0,0.1,_0x58d5ac(0x1fc),_0x58d5ac(0x1fc)),document[_0x58d5ac(0x1e6)](_0x58d5ac(0x1e9))[_0x58d5ac(0x21f)][_0x58d5ac(0x20e)]('selected')&&Left(_0x58d5ac(0x1e9),0x0,0.1,_0x58d5ac(0x1e1),_0x58d5ac(0x1e1)),document[_0x58d5ac(0x1e6)]('box7')[_0x58d5ac(0x21f)][_0x58d5ac(0x20e)](_0x58d5ac(0x20c))&&Left('box7',0x0,0.1,_0x58d5ac(0x21a),_0x58d5ac(0x21a)),document[_0x58d5ac(0x1e6)](_0x58d5ac(0x1e0))['classList']['contains']('selected')&&Left(_0x58d5ac(0x1e0),0x0,0.1,'sepia',_0x58d5ac(0x210));}}),menuPad['addEventListener'](_0x7065d4,()=>{const _0x228381=_0x47ef04;menuPad[_0x228381(0x21f)]['toggle']('active'),controlSetting[_0x228381(0x21f)][_0x228381(0x1e5)](_0x228381(0x219)),controlSetting['classList'][_0x228381(0x20e)]('visible')?(a0_0x5402f2[_0x228381(0x206)](),notiMessage(_0x228381(0x228),0x7d0)):(a0_0x5402f2['pauseGame'](),notiMessage(_0x228381(0x222),0x7d0));});});});function a0_0x1b87(){const _0x3dfff7=['reload','href','\x0acheat0_code\x20=\x20\x22','Right','addEventListener','cheat0_enable\x20=\x20','710116TyyLLM','remove','location','168mXskdH','box0','gameName','Auto\x20Switches\x20Slots','24669kFSVxj','indexOf','Gt-3','add','controller','brightness','querySelectorAll','2176216yeWIEi','17165RemQvO','Line','DOMContentLoaded','brightness(','_savedCheats','control-setting','90cbxnxA','resumeGame','max','.box','CANCEL\x20is\x20disable\x20a\x20cheat\x20/\x20OK\x20is\x20enable\x20a\x20cheat','active','serviceWorker','selected','replace','contains','textContent','sepia','autoStateCheck','Gt-4','touchend','3164nWiDtj','xxxx\x20xx','touchcancel','min','style','visible','saturate','prompt',')\x20hue-rotate(','hueRotate','getItem','classList','Sega','forEach','Paused!','setItem','Gt-2','.gba','selectedShader','box4','Resumed!','DELETE_CACHE','Off',')\x20contrast(','postMessage','96ZoXczg','deg)\x20sepia(','Down','1203WcJFDF','filter','box7','box5','Edit\x20cheat\x20code',')\x20saturate(','uploadCheats','toFixed','length','84813JOZRxY','box1','Left','mouseup','364464JHAflL','box8','contrast','box2','opacity','box3','toggle','getElementById','Gt-1','cheats\x20=\x201\x0a','box6'];a0_0x1b87=function(){return _0x3dfff7;};return a0_0x1b87();} \ No newline at end of file +function a0_0x4789(){const _0x568c4c=['deg)\x20sepia(','brightness','uploadCheats','1722jAnRAM','box8','Gt-4','indexOf','Auto\x20Switches\x20Slots','Line','box6','contrast','replace','classList','selected','autoStateCheck','xxxx\x20xx','visible','cheat0_enable\x20=\x20','reload','cheats\x20=\x201\x0a','contains',')\x20saturate(','_savedCheats','style','forEach','box3','remove','length','Gt-1','setItem','DELETE_CACHE','mouseup','location','onLine','img-shader','box7','box4','18nbaWBn','getItem','1280875XIODmE','box2','.cheats','2135844FTLNqB','saturate','touchstart','7713270ClgxPL','gameName','14306roysVM','active','Resumed!','brightness(','href','Sega','Off','Right','30fSUaKK','Crt','39416dhMwfu','.box','2939949xIxCNc','pauseGame','filter','hueRotate','log','add','CANCEL\x20is\x20disable\x20a\x20cheat\x20/\x20OK\x20is\x20enable\x20a\x20cheat','selectedShader','prompt','controller','addEventListener','opacity','box5','serviceWorker','4427468lqWhXj','toFixed','postMessage',')\x20contrast(','toggle','textContent','min','box0','DOMContentLoaded','Left','sepia','touchcancel','.gba','Gt-2',')\x20hue-rotate(','Manual\x20Switches\x20Slots','box1','getElementById','querySelectorAll'];a0_0x4789=function(){return _0x568c4c;};return a0_0x4789();}const a0_0x4d24d8=a0_0x1ea0;function a0_0x1ea0(_0x50d2c6,_0x3bc0aa){const _0x478962=a0_0x4789();return a0_0x1ea0=function(_0x1ea02a,_0x1a4d47){_0x1ea02a=_0x1ea02a-0x1bd;let _0x22dd1f=_0x478962[_0x1ea02a];return _0x22dd1f;},a0_0x1ea0(_0x50d2c6,_0x3bc0aa);}(function(_0x4ddf73,_0x139d12){const _0x2010dd=a0_0x1ea0,_0x8de634=_0x4ddf73();while(!![]){try{const _0x25f73b=-parseInt(_0x2010dd(0x1d5))/0x1*(parseInt(_0x2010dd(0x1cb))/0x2)+-parseInt(_0x2010dd(0x1e1))/0x3+-parseInt(_0x2010dd(0x1ef))/0x4+-parseInt(_0x2010dd(0x1cd))/0x5*(-parseInt(_0x2010dd(0x1dd))/0x6)+parseInt(_0x2010dd(0x205))/0x7*(parseInt(_0x2010dd(0x1df))/0x8)+-parseInt(_0x2010dd(0x1d0))/0x9+parseInt(_0x2010dd(0x1d3))/0xa;if(_0x25f73b===_0x139d12)break;else _0x8de634['push'](_0x8de634['shift']());}catch(_0x362156){_0x8de634['push'](_0x8de634['shift']());}}}(a0_0x4789,0xc613c));import*as a0_0x3960bc from'./main.js';let selectedIndex=0x0;const imgShader=document['getElementById'](a0_0x4d24d8(0x1c8))||'Sega',brightnessX=localStorage['getItem'](a0_0x4d24d8(0x203))||0x1,contrastX=localStorage['getItem']('contrast')||0x1,saturateX=localStorage[a0_0x4d24d8(0x1cc)](a0_0x4d24d8(0x1d1))||0x1,hueRotateX=localStorage[a0_0x4d24d8(0x1cc)](a0_0x4d24d8(0x1e4))||0x0,sepiaX=localStorage[a0_0x4d24d8(0x1cc)](a0_0x4d24d8(0x1f9))||0x0,boxes=document[a0_0x4d24d8(0x201)](a0_0x4d24d8(0x1e0)),sdValues=['Sega',a0_0x4d24d8(0x1de),a0_0x4d24d8(0x1c2),a0_0x4d24d8(0x1fc),'Gt-3',a0_0x4d24d8(0x207),a0_0x4d24d8(0x20a)],menuPad=document['getElementById']('menu-pad'),controlSetting=document[a0_0x4d24d8(0x200)]('control-setting'),SDL2ID=['A','B','R','L','Up','Down',a0_0x4d24d8(0x1f8),a0_0x4d24d8(0x1dc)];async function Right(_0x5c6acf,_0x50b6b5,_0x177e95,_0x502dd4,_0x369b86){const _0x4698a3=a0_0x4d24d8;let _0x2568bd=document[_0x4698a3(0x200)](_0x5c6acf),_0x423e75=parseFloat(_0x2568bd[_0x4698a3(0x1f4)]);_0x423e75=Math[_0x4698a3(0x1f5)](_0x50b6b5,_0x423e75+_0x177e95),_0x2568bd['textContent']=_0x423e75[_0x4698a3(0x1f0)](0x1);if(_0x502dd4===_0x4698a3(0x1ec))imgShader[_0x4698a3(0x1bd)][_0x4698a3(0x1ec)]=_0x2568bd[_0x4698a3(0x1f4)],localStorage[_0x4698a3(0x1c3)](_0x369b86,_0x2568bd['textContent']);else{localStorage[_0x4698a3(0x1c3)](_0x369b86,_0x2568bd[_0x4698a3(0x1f4)]),await delay(0x64);const _0x3d42b9=localStorage['getItem']('brightness')||0x1,_0xe28549=localStorage[_0x4698a3(0x1cc)](_0x4698a3(0x20c))||0x1,_0x47bc38=localStorage[_0x4698a3(0x1cc)]('saturate')||0x1,_0x4d6a29=localStorage[_0x4698a3(0x1cc)](_0x4698a3(0x1e4))||0x0,_0xcd7094=localStorage[_0x4698a3(0x1cc)](_0x4698a3(0x1f9))||0x0;canvas[_0x4698a3(0x1bd)][_0x4698a3(0x1e3)]=_0x4698a3(0x1d8)+_0x3d42b9+_0x4698a3(0x1f2)+_0xe28549+_0x4698a3(0x217)+_0x47bc38+_0x4698a3(0x1fd)+_0x4d6a29+'deg)\x20sepia('+_0xcd7094+')';}}async function Left(_0x1d8d8c,_0x23e9ee,_0x33256d,_0x1b4409,_0x43c7fc){const _0x3b6b8b=a0_0x4d24d8;let _0x154822=document['getElementById'](_0x1d8d8c),_0x184129=parseFloat(_0x154822[_0x3b6b8b(0x1f4)]);_0x184129=Math['max'](_0x23e9ee,_0x184129-_0x33256d),_0x154822['textContent']=_0x184129['toFixed'](0x1);if(_0x1b4409==='opacity')imgShader[_0x3b6b8b(0x1bd)]['opacity']=_0x154822[_0x3b6b8b(0x1f4)],localStorage[_0x3b6b8b(0x1c3)](_0x43c7fc,_0x154822[_0x3b6b8b(0x1f4)]);else{localStorage[_0x3b6b8b(0x1c3)](_0x43c7fc,_0x154822[_0x3b6b8b(0x1f4)]),await delay(0x64);const _0x5ea93f=localStorage[_0x3b6b8b(0x1cc)](_0x3b6b8b(0x203))||0x1,_0x445a65=localStorage[_0x3b6b8b(0x1cc)]('contrast')||0x1,_0x5f4f8c=localStorage[_0x3b6b8b(0x1cc)]('saturate')||0x1,_0x261fcb=localStorage[_0x3b6b8b(0x1cc)](_0x3b6b8b(0x1e4))||0x0,_0x213ec5=localStorage['getItem'](_0x3b6b8b(0x1f9))||0x0;canvas[_0x3b6b8b(0x1bd)][_0x3b6b8b(0x1e3)]=_0x3b6b8b(0x1d8)+_0x5ea93f+_0x3b6b8b(0x1f2)+_0x445a65+_0x3b6b8b(0x217)+_0x5f4f8c+_0x3b6b8b(0x1fd)+_0x261fcb+_0x3b6b8b(0x202)+_0x213ec5+')';}}SDL2ID[a0_0x4d24d8(0x1be)](function(_0x2151d3){const _0x583c05=a0_0x4d24d8,_0x3aec4f=document[_0x583c05(0x200)](_0x2151d3);_0x3aec4f&&_0x3aec4f['addEventListener'](_0x583c05(0x1d2),function(){const _0x1db657=_0x583c05;!stateList['classList'][_0x1db657(0x216)](_0x1db657(0x212))&&(statePageButton[_0x1db657(0x20e)]['remove']('active'),canvas[_0x1db657(0x20e)][_0x1db657(0x1c0)](_0x1db657(0x212)),stateList['classList'][_0x1db657(0x1e6)]('visible'),a0_0x3960bc['resumeGame']()),!areaTrans[_0x1db657(0x20e)]['contains'](_0x1db657(0x212))&&areaTrans['classList'][_0x1db657(0x1f3)](_0x1db657(0x212));});}),document[a0_0x4d24d8(0x1eb)](a0_0x4d24d8(0x1f7),function(){const _0x38e382=a0_0x4d24d8,_0x5a7b3e=localStorage[_0x38e382(0x1cc)](_0x38e382(0x1d4))||_0x38e382(0x211);box1['textContent']=localStorage[_0x38e382(0x1cc)](_0x5a7b3e+_0x38e382(0x218))||'xxxx\x20xx';if(localStorage[_0x38e382(0x1cc)](_0x38e382(0x210))==='On')box2[_0x38e382(0x1f4)]='On';else{box2['textContent']=_0x38e382(0x1db);const _0x32942b='Off';localStorage[_0x38e382(0x1c3)](_0x38e382(0x210),_0x32942b);}box3['textContent']=localStorage[_0x38e382(0x1cc)](_0x38e382(0x1e8))||_0x38e382(0x1da),box4[_0x38e382(0x1f4)]=localStorage[_0x38e382(0x1cc)](_0x38e382(0x1ec))||0x1,box5[_0x38e382(0x1f4)]=localStorage['getItem']('brightness')||0x1,box6[_0x38e382(0x1f4)]=localStorage[_0x38e382(0x1cc)]('contrast')||0x1,box7[_0x38e382(0x1f4)]=localStorage[_0x38e382(0x1cc)]('saturate')||0x1,box8[_0x38e382(0x1f4)]=localStorage[_0x38e382(0x1cc)](_0x38e382(0x1f9))||0x0,imgShader['classList']['add'](localStorage[_0x38e382(0x1cc)](_0x38e382(0x1e8))),imgShader[_0x38e382(0x1bd)][_0x38e382(0x1ec)]=localStorage[_0x38e382(0x1cc)]('opacity')||0.5,canvas[_0x38e382(0x1bd)][_0x38e382(0x1e3)]=_0x38e382(0x1d8)+brightnessX+')\x20contrast('+contrastX+_0x38e382(0x217)+saturateX+_0x38e382(0x1fd)+hueRotateX+_0x38e382(0x202)+sepiaX+')';let _0x51c747=sdValues[0x0];const _0x213bd7=()=>{const _0x50bc28=_0x38e382;boxes[_0x50bc28(0x1be)]((_0x430c7f,_0x2f3028)=>{const _0x11c669=_0x50bc28;_0x2f3028===selectedIndex?_0x430c7f[_0x11c669(0x20e)][_0x11c669(0x1e6)](_0x11c669(0x20f)):_0x430c7f[_0x11c669(0x20e)][_0x11c669(0x1c0)](_0x11c669(0x20f));});};_0x213bd7(),[_0x38e382(0x1c5),'touchend',_0x38e382(0x1fa)][_0x38e382(0x1be)](_0x5192e7=>{const _0x5c02dc=_0x38e382;document[_0x5c02dc(0x200)]('A')[_0x5c02dc(0x1eb)](_0x5192e7,()=>{const _0x230eaf=_0x5c02dc;if(menuPad[_0x230eaf(0x20e)][_0x230eaf(0x216)](_0x230eaf(0x1d6))){document[_0x230eaf(0x200)](_0x230eaf(0x1f6))[_0x230eaf(0x20e)][_0x230eaf(0x216)](_0x230eaf(0x20f))&&(setTimeout(()=>{const _0x5624ec=_0x230eaf;navigator[_0x5624ec(0x1c7)]?window['location'][_0x5624ec(0x214)](!![]):window[_0x5624ec(0x1c6)][_0x5624ec(0x1d9)]=window['location'][_0x5624ec(0x1d9)];},0x32),navigator[_0x230eaf(0x1ee)][_0x230eaf(0x1ea)][_0x230eaf(0x1f1)]({'type':_0x230eaf(0x1c4)}));if(document['getElementById']('box1')[_0x230eaf(0x20e)]['contains'](_0x230eaf(0x20f))){let _0xf84739=document['getElementById'](_0x230eaf(0x1ff));const _0x336294=localStorage[_0x230eaf(0x1cc)](_0x230eaf(0x1d4)),_0x1e3ee1=_0x336294[_0x230eaf(0x20d)](_0x230eaf(0x1fb),_0x230eaf(0x1cf)),_0x1e18b9=_0x230eaf(0x215);let _0x3b4345=![],_0x1f8421=_0x1e18b9;const _0x40b68f=window[_0x230eaf(0x1e9)]('Edit\x20cheat\x20code',localStorage['getItem'](_0x336294+'_savedCheats')||_0x230eaf(0x211));if(_0x40b68f!==null){const _0x2a21b7=confirm(_0x230eaf(0x1e7));_0x3b4345=_0x2a21b7,_0x1f8421+=_0x230eaf(0x213)+_0x3b4345+'\x0acheat0_code\x20=\x20\x22'+_0x40b68f+'\x22';const _0xb6e02f=new Blob([_0x1f8421],{'type':'text/plain'}),_0x5d6254=new File([_0xb6e02f],_0x1e3ee1);a0_0x3960bc[_0x230eaf(0x204)](_0x5d6254,_0x336294,_0x40b68f,_0x3b4345,_0xf84739);}}}}),document[_0x5c02dc(0x200)]('Up')['addEventListener'](_0x5192e7,()=>{const _0xfb7127=_0x5c02dc;menuPad['classList'][_0xfb7127(0x216)](_0xfb7127(0x1d6))&&(selectedIndex>0x0&&(selectedIndex--,_0x213bd7()));}),document[_0x5c02dc(0x200)]('Down')['addEventListener'](_0x5192e7,()=>{const _0xdba527=_0x5c02dc;menuPad[_0xdba527(0x20e)][_0xdba527(0x216)](_0xdba527(0x1d6))&&(selectedIndex{const _0xfec7e2=_0x5c02dc;if(menuPad[_0xfec7e2(0x20e)]['contains'](_0xfec7e2(0x1d6))){if(document[_0xfec7e2(0x200)](_0xfec7e2(0x1ce))['classList'][_0xfec7e2(0x216)](_0xfec7e2(0x20f))){let _0x41b3b4=document[_0xfec7e2(0x200)](_0xfec7e2(0x1ce));_0x41b3b4[_0xfec7e2(0x1f4)]=_0x41b3b4[_0xfec7e2(0x1f4)]==='On'?_0xfec7e2(0x1db):'On';if(_0x41b3b4[_0xfec7e2(0x1f4)]==='On'){const _0x57c01b='On';localStorage[_0xfec7e2(0x1c3)](_0xfec7e2(0x210),_0x57c01b),notiMessage(_0xfec7e2(0x209),0x5dc);}else{const _0x2713d9='Off';localStorage[_0xfec7e2(0x1c3)]('autoStateCheck',_0x2713d9),notiMessage(_0xfec7e2(0x1fe),0x5dc);}}if(document[_0xfec7e2(0x200)](_0xfec7e2(0x1bf))[_0xfec7e2(0x20e)][_0xfec7e2(0x216)]('selected')){let _0x3d14b4=document[_0xfec7e2(0x200)](_0xfec7e2(0x1bf)),_0x22725c=sdValues[_0xfec7e2(0x208)](_0x3d14b4[_0xfec7e2(0x1f4)]);_0x22725cimgShader[_0xfec7e2(0x20e)][_0xfec7e2(0x1c0)](_0x408e3f)),_0x51c747=_0x3d14b4[_0xfec7e2(0x1f4)],imgShader[_0xfec7e2(0x20e)][_0xfec7e2(0x1e6)](_0x51c747),localStorage[_0xfec7e2(0x1c3)]('selectedShader',_0x51c747);}document['getElementById'](_0xfec7e2(0x1ca))['classList'][_0xfec7e2(0x216)](_0xfec7e2(0x20f))&&Right(_0xfec7e2(0x1ca),0x1,0.1,_0xfec7e2(0x1ec),_0xfec7e2(0x1ec)),document[_0xfec7e2(0x200)](_0xfec7e2(0x1ed))[_0xfec7e2(0x20e)][_0xfec7e2(0x216)](_0xfec7e2(0x20f))&&Right(_0xfec7e2(0x1ed),0x2,0.1,_0xfec7e2(0x203),_0xfec7e2(0x203)),document[_0xfec7e2(0x200)]('box6')[_0xfec7e2(0x20e)][_0xfec7e2(0x216)](_0xfec7e2(0x20f))&&Right(_0xfec7e2(0x20b),0x2,0.1,_0xfec7e2(0x20c),'contrast'),document[_0xfec7e2(0x200)]('box7')[_0xfec7e2(0x20e)][_0xfec7e2(0x216)]('selected')&&Right('box7',0x4,0.1,_0xfec7e2(0x1d1),_0xfec7e2(0x1d1)),document['getElementById'](_0xfec7e2(0x206))['classList']['contains'](_0xfec7e2(0x20f))&&Right(_0xfec7e2(0x206),0x1,0.1,_0xfec7e2(0x1f9),_0xfec7e2(0x1f9));}}),document['getElementById'](_0x5c02dc(0x1f8))[_0x5c02dc(0x1eb)](_0x5192e7,()=>{const _0x1b3fed=_0x5c02dc;if(menuPad[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x1d6))){if(document[_0x1b3fed(0x200)]('box2')[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))){let _0x101264=document[_0x1b3fed(0x200)]('box2');_0x101264['textContent']=_0x101264[_0x1b3fed(0x1f4)]==='On'?_0x1b3fed(0x1db):'On';if(_0x101264[_0x1b3fed(0x1f4)]==='On'){const _0x4383d4='On';localStorage[_0x1b3fed(0x1c3)](_0x1b3fed(0x210),_0x4383d4),notiMessage(_0x1b3fed(0x209),0x5dc);}else{const _0x2acdfb=_0x1b3fed(0x1db);localStorage[_0x1b3fed(0x1c3)](_0x1b3fed(0x210),_0x2acdfb),notiMessage(_0x1b3fed(0x1fe),0x5dc);}}if(document[_0x1b3fed(0x200)](_0x1b3fed(0x1bf))[_0x1b3fed(0x20e)]['contains'](_0x1b3fed(0x20f))){let _0x251456=document['getElementById'](_0x1b3fed(0x1bf)),_0x592d49=sdValues['indexOf'](_0x251456[_0x1b3fed(0x1f4)]);_0x592d49>0x0?_0x251456[_0x1b3fed(0x1f4)]=sdValues[_0x592d49-0x1]:_0x251456['textContent']=sdValues[sdValues['length']-0x1],sdValues[_0x1b3fed(0x1be)](_0x45e3b2=>imgShader[_0x1b3fed(0x20e)][_0x1b3fed(0x1c0)](_0x45e3b2)),_0x51c747=_0x251456[_0x1b3fed(0x1f4)],imgShader[_0x1b3fed(0x20e)][_0x1b3fed(0x1e6)](_0x51c747),localStorage['setItem'](_0x1b3fed(0x1e8),_0x51c747);}document[_0x1b3fed(0x200)]('box4')[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))&&Left(_0x1b3fed(0x1ca),0x0,0.1,_0x1b3fed(0x1ec),_0x1b3fed(0x1ec)),document['getElementById'](_0x1b3fed(0x1ed))[_0x1b3fed(0x20e)][_0x1b3fed(0x216)]('selected')&&Left(_0x1b3fed(0x1ed),0x0,0.1,_0x1b3fed(0x203),'brightness'),document[_0x1b3fed(0x200)](_0x1b3fed(0x20b))[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))&&Left(_0x1b3fed(0x20b),0x0,0.1,_0x1b3fed(0x20c),_0x1b3fed(0x20c)),document['getElementById'](_0x1b3fed(0x1c9))[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))&&Left(_0x1b3fed(0x1c9),0x0,0.1,_0x1b3fed(0x1d1),_0x1b3fed(0x1d1)),document[_0x1b3fed(0x200)](_0x1b3fed(0x206))[_0x1b3fed(0x20e)][_0x1b3fed(0x216)](_0x1b3fed(0x20f))&&Left('box8',0x0,0.1,'sepia','sepia');}}),menuPad[_0x5c02dc(0x1eb)](_0x5192e7,()=>{const _0x394d70=_0x5c02dc;menuPad[_0x394d70(0x20e)]['toggle']('active'),controlSetting[_0x394d70(0x20e)][_0x394d70(0x1f3)](_0x394d70(0x212)),controlSetting[_0x394d70(0x20e)]['contains'](_0x394d70(0x212))?(a0_0x3960bc['resumeGame'](),notiMessage(_0x394d70(0x1d7),0x7d0)):(a0_0x3960bc[_0x394d70(0x1e2)](),notiMessage('Paused!',0x7d0));});});}); \ No newline at end of file diff --git a/docs/src/js/state.js b/docs/src/js/state.js index e8bc4f1..e5763b6 100644 --- a/docs/src/js/state.js +++ b/docs/src/js/state.js @@ -1 +1 @@ -function a0_0x22dc(){const _0x890a1f=['background','dateState07','state02','getElementById','state04','_imageState','982923curUnL','24fHVSEu','201272pTtxRE','357834sJxScC','57332YYPOny','/data/states/','dateState00','stateDiv02','url(\x27','18RQAUer','getItem','stateDiv00','dateState06','stateDiv03','_dateState','dateState02','contains','touchstart','deleteFile','visible','backgroundPosition','touchend','DOMContentLoaded','dateState05','setItem','stateDiv04','Do\x20not\x20have\x20State!',']\x20Loaded\x20State','98SHCpjd','stateDiv05','slotStateSaved','touchcancel','backgroundImage','state07','state03','data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA2MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMEg2MFY0MEgwVjBaIiBmaWxsPSIjMTYxNjE2Ii8+CjxwYXRoIG9wYWNpdHk9IjAuNCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNCAxNkgyNlYyNEgzNFYxNlpNMzMgMTdIMzJWMThIMzFWMTlIMzBWMjBIMjlWMjFIMjhWMjJIMjdWMjNIMzNWMTdaIiBmaWxsPSIjRkZGRkY1Ii8+Cjwvc3ZnPgo=','state01','loadState','onclick','addEventListener','removeItem','active','149052DXbtBa','1480HTZrxy','stateDiv01','state05','4RGecko','10924776ixyxGk','stateDiv06','replace','.ss','Deleted\x20State!','dateState03','backgroundSize','color','no-repeat','cover','toggle','resumeGame','#20A5A6','3112295RAodVP','style','.gba','textContent','classList','gameName','#F5E8D1'];a0_0x22dc=function(){return _0x890a1f;};return a0_0x22dc();}const a0_0x42e5ed=a0_0x5ed6;(function(_0x26938c,_0x5a8800){const _0x4c31ec=a0_0x5ed6,_0x5b04d1=_0x26938c();while(!![]){try{const _0x5880a9=parseInt(_0x4c31ec(0xbe))/0x1+parseInt(_0x4c31ec(0xbf))/0x2*(-parseInt(_0x4c31ec(0xe8))/0x3)+parseInt(_0x4c31ec(0xec))/0x4*(-parseInt(_0x4c31ec(0xb1))/0x5)+parseInt(_0x4c31ec(0xc1))/0x6*(parseInt(_0x4c31ec(0xda))/0x7)+parseInt(_0x4c31ec(0xc0))/0x8*(parseInt(_0x4c31ec(0xc7))/0x9)+-parseInt(_0x4c31ec(0xe9))/0xa*(-parseInt(_0x4c31ec(0xc2))/0xb)+-parseInt(_0x4c31ec(0xed))/0xc;if(_0x5880a9===_0x5a8800)break;else _0x5b04d1['push'](_0x5b04d1['shift']());}catch(_0x203ae8){_0x5b04d1['push'](_0x5b04d1['shift']());}}}(a0_0x22dc,0x7ca22));import*as a0_0x210390 from'./main.js';let clickTimer,clickedOver1s=![];function a0_0x5ed6(_0x225fd8,_0xd4d71d){const _0x22dc7d=a0_0x22dc();return a0_0x5ed6=function(_0x5ed6e1,_0x528c02){_0x5ed6e1=_0x5ed6e1-0xa5;let _0x17fd5f=_0x22dc7d[_0x5ed6e1];return _0x17fd5f;},a0_0x5ed6(_0x225fd8,_0xd4d71d);}function LoadstateInPage(_0x38d141,_0x497f9c,_0x4b7cf8,_0x420c04){const _0x131de7=a0_0x5ed6,_0x1f72eb=document[_0x131de7(0xbb)](_0x497f9c),_0x2f91e4=localStorage['getItem'](_0x131de7(0xdc)),_0x284a35=document[_0x131de7(0xbb)](_0x420c04),_0x14efe9=localStorage['getItem'](_0x131de7(0xb6)),_0x924e3e=_0x131de7(0xe1),_0x195751=_0x14efe9[_0x131de7(0xa6)](_0x131de7(0xb3),_0x131de7(0xa7)+_0x38d141),_0x44faa2=localStorage[_0x131de7(0xc8)](_0x14efe9+_0x131de7(0xbd)+_0x38d141)||_0x924e3e,_0x2f0e81=localStorage[_0x131de7(0xc8)](_0x14efe9+_0x131de7(0xcc)+_0x38d141);_0x1f72eb[_0x131de7(0xb2)][_0x131de7(0xde)]=_0x131de7(0xc6)+_0x44faa2+'\x27)',_0x1f72eb[_0x131de7(0xb2)][_0x131de7(0xaa)]=_0x131de7(0xad),_0x1f72eb[_0x131de7(0xb2)]['backgroundRepeat']=_0x131de7(0xac),_0x1f72eb['style'][_0x131de7(0xd2)]='center\x20center',document[_0x131de7(0xbb)](_0x4b7cf8)[_0x131de7(0xb4)]=_0x2f0e81||'__',parseInt(_0x2f91e4)===parseInt(_0x38d141)?(_0x284a35[_0x131de7(0xb2)]['color']=_0x131de7(0xb0),_0x284a35[_0x131de7(0xb2)][_0x131de7(0xb8)]='rgba(32,\x20165,\x20166,\x200.06)'):(_0x284a35['style'][_0x131de7(0xab)]=_0x131de7(0xb7),_0x284a35[_0x131de7(0xb2)][_0x131de7(0xb8)]='rgba(32,\x20165,\x20166,\x200)'),_0x284a35['addEventListener'](_0x131de7(0xcf),function(){const _0xb60780=_0x131de7;localStorage['getItem'](_0x14efe9+'_imageState'+_0x38d141)?(clearTimeout(clickTimer),clickTimer=setTimeout(function(){const _0x53f389=a0_0x5ed6;a0_0x210390[_0x53f389(0xd0)](_0x53f389(0xc3)+_0x195751),localStorage[_0x53f389(0xe6)](_0x14efe9+_0x53f389(0xcc)+_0x38d141),localStorage[_0x53f389(0xe6)](_0x14efe9+_0x53f389(0xbd)+_0x38d141),setTimeout(()=>{const _0x3aae5e=_0x53f389;notiMessage(_0x3aae5e(0xa8),0x5dc),_0x1f72eb['style'][_0x3aae5e(0xde)]=_0x3aae5e(0xc6)+_0x924e3e+'\x27)',document[_0x3aae5e(0xbb)](_0x4b7cf8)[_0x3aae5e(0xb4)]=localStorage[_0x3aae5e(0xc8)](_0x14efe9+'_dateState'+_0x38d141)||'__';},0xc8);},0x5dc)):notiMessage(_0xb60780(0xd8),0x5dc);}),_0x284a35['addEventListener'](_0x131de7(0xd3),function(){const _0x359af2=_0x131de7;clearTimeout(clickTimer),!clickedOver1s&&(_0x284a35[_0x359af2(0xe4)]=()=>{const _0x52dc65=_0x359af2;stateList['classList']['toggle'](_0x52dc65(0xd1)),statePageButton[_0x52dc65(0xb5)][_0x52dc65(0xae)](_0x52dc65(0xe7)),led(_0x38d141),a0_0x210390[_0x52dc65(0xe3)](_0x38d141),a0_0x210390[_0x52dc65(0xaf)](),localStorage[_0x52dc65(0xd6)](_0x52dc65(0xdc),_0x38d141),notiMessage('['+_0x38d141+_0x52dc65(0xd9),0x5dc);}),clickedOver1s=![];});}document[a0_0x42e5ed(0xe5)](a0_0x42e5ed(0xd4),function(){const _0x233800=a0_0x42e5ed;['mouseup',_0x233800(0xd3),_0x233800(0xdd)]['forEach'](_0x9366fd=>{const _0x3586fa=_0x233800;statePageButton[_0x3586fa(0xe5)](_0x9366fd,()=>{const _0x12124e=_0x3586fa;LoadstateInPage(0x0,'state00',_0x12124e(0xc4),_0x12124e(0xc9)),LoadstateInPage(0x1,_0x12124e(0xe2),'dateState01',_0x12124e(0xea)),LoadstateInPage(0x2,_0x12124e(0xba),_0x12124e(0xcd),_0x12124e(0xc5)),LoadstateInPage(0x3,_0x12124e(0xe0),_0x12124e(0xa9),_0x12124e(0xcb)),LoadstateInPage(0x4,_0x12124e(0xbc),'dateState04',_0x12124e(0xd7)),LoadstateInPage(0x5,_0x12124e(0xeb),_0x12124e(0xd5),_0x12124e(0xdb)),LoadstateInPage(0x6,'state06',_0x12124e(0xca),_0x12124e(0xa5)),LoadstateInPage(0x7,_0x12124e(0xdf),_0x12124e(0xb9),'stateDiv07'),stateList[_0x12124e(0xb5)]['toggle'](_0x12124e(0xd1)),statePageButton[_0x12124e(0xb5)][_0x12124e(0xae)](_0x12124e(0xe7)),stateList[_0x12124e(0xb5)][_0x12124e(0xce)]('visible')?a0_0x210390[_0x12124e(0xaf)]():a0_0x210390['pauseGame']();});});}); \ No newline at end of file +function a0_0x5a2c(){const _0x37be8d=['rgba(32,\x20165,\x20166,\x200)','active','.ss','classList','backgroundRepeat','backgroundSize','stateDiv04','dateState00','textContent','no-repeat','/data/states/','addEventListener','pauseGame','state04','setItem','forEach','contains','cover','stateDiv06','removeItem','dateState07','7AgLNXP','resumeGame','state00','6462744Psctil','stateDiv05',']\x20Loaded\x20State','908754NPOYHZ','_imageState','6aLJnHQ','state05','.gba','loadState','url(\x27','_dateState','1345445GRXose','dateState02','backgroundPosition','dateState05','1833804mICRtk','touchcancel','slotStateSaved','8OTTwTE','#20A5A6','stateDiv02','center\x20center','14066570dOcOKu','state03','state02','mouseup','color','rgba(32,\x20165,\x20166,\x200.06)','style','Do\x20not\x20have\x20State!','dateState04','toggle','66569CRgqMQ','DOMContentLoaded','background','stateDiv01','visible','state07','#F5E8D1','Deleted\x20State!','stateDiv00','touchstart','1007385vKLiYQ','touchend','getElementById','state01','state06','getItem'];a0_0x5a2c=function(){return _0x37be8d;};return a0_0x5a2c();}const a0_0x492be3=a0_0xb348;(function(_0x1690a2,_0x179e79){const _0x15b665=a0_0xb348,_0x44f33d=_0x1690a2();while(!![]){try{const _0x2edd51=-parseInt(_0x15b665(0x12e))/0x1*(parseInt(_0x15b665(0x15b))/0x2)+-parseInt(_0x15b665(0x138))/0x3+-parseInt(_0x15b665(0x120))/0x4*(-parseInt(_0x15b665(0x119))/0x5)+parseInt(_0x15b665(0x159))/0x6+parseInt(_0x15b665(0x153))/0x7*(-parseInt(_0x15b665(0x156))/0x8)+-parseInt(_0x15b665(0x11d))/0x9+parseInt(_0x15b665(0x124))/0xa;if(_0x2edd51===_0x179e79)break;else _0x44f33d['push'](_0x44f33d['shift']());}catch(_0x26bd2e){_0x44f33d['push'](_0x44f33d['shift']());}}}(a0_0x5a2c,0x86149));function a0_0xb348(_0x566803,_0x5caeb7){const _0x5a2c9d=a0_0x5a2c();return a0_0xb348=function(_0xb348de,_0x43294e){_0xb348de=_0xb348de-0x118;let _0x2960d1=_0x5a2c9d[_0xb348de];return _0x2960d1;},a0_0xb348(_0x566803,_0x5caeb7);}import*as a0_0x46f82c from'./main.js';let clickTimer,clickedOver1s=![];function LoadstateInPage(_0x46263c,_0x7e8431,_0x3e2444,_0x54e53c){const _0x43bdc9=a0_0xb348,_0x11ea02=document[_0x43bdc9(0x13a)](_0x7e8431),_0x36d2aa=localStorage['getItem'](_0x43bdc9(0x11f)),_0x5d1e52=document[_0x43bdc9(0x13a)](_0x54e53c),_0x590887=localStorage['getItem']('gameName'),_0x54d3a9='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA2MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAgMEg2MFY0MEgwVjBaIiBmaWxsPSIjMTYxNjE2Ii8+CjxwYXRoIG9wYWNpdHk9IjAuNCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zNCAxNkgyNlYyNEgzNFYxNlpNMzMgMTdIMzJWMThIMzFWMTlIMzBWMjBIMjlWMjFIMjhWMjJIMjdWMjNIMzNWMTdaIiBmaWxsPSIjRkZGRkY1Ii8+Cjwvc3ZnPgo=',_0x48aab4=_0x590887['replace'](_0x43bdc9(0x15d),_0x43bdc9(0x140)+_0x46263c),_0x973024=localStorage[_0x43bdc9(0x13d)](_0x590887+_0x43bdc9(0x15a)+_0x46263c)||_0x54d3a9,_0x391be4=localStorage['getItem'](_0x590887+_0x43bdc9(0x118)+_0x46263c);_0x11ea02['style']['backgroundImage']=_0x43bdc9(0x15f)+_0x973024+'\x27)',_0x11ea02[_0x43bdc9(0x12a)][_0x43bdc9(0x143)]=_0x43bdc9(0x14f),_0x11ea02[_0x43bdc9(0x12a)][_0x43bdc9(0x142)]=_0x43bdc9(0x147),_0x11ea02[_0x43bdc9(0x12a)][_0x43bdc9(0x11b)]=_0x43bdc9(0x123),document[_0x43bdc9(0x13a)](_0x3e2444)['textContent']=_0x391be4||'__',parseInt(_0x36d2aa)===parseInt(_0x46263c)?(_0x5d1e52[_0x43bdc9(0x12a)]['color']=_0x43bdc9(0x121),_0x5d1e52[_0x43bdc9(0x12a)]['background']=_0x43bdc9(0x129)):(_0x5d1e52[_0x43bdc9(0x12a)][_0x43bdc9(0x128)]=_0x43bdc9(0x134),_0x5d1e52['style'][_0x43bdc9(0x130)]=_0x43bdc9(0x13e)),_0x5d1e52[_0x43bdc9(0x149)](_0x43bdc9(0x137),function(){const _0x2e1aff=_0x43bdc9;localStorage[_0x2e1aff(0x13d)](_0x590887+'_imageState'+_0x46263c)?(clearTimeout(clickTimer),clickTimer=setTimeout(function(){const _0x329e14=_0x2e1aff;a0_0x46f82c['deleteFile'](_0x329e14(0x148)+_0x48aab4),localStorage[_0x329e14(0x151)](_0x590887+_0x329e14(0x118)+_0x46263c),localStorage[_0x329e14(0x151)](_0x590887+_0x329e14(0x15a)+_0x46263c),setTimeout(()=>{const _0x5e8497=_0x329e14;notiMessage(_0x5e8497(0x135),0x5dc),_0x11ea02[_0x5e8497(0x12a)]['backgroundImage']=_0x5e8497(0x15f)+_0x54d3a9+'\x27)',document[_0x5e8497(0x13a)](_0x3e2444)[_0x5e8497(0x146)]=localStorage[_0x5e8497(0x13d)](_0x590887+_0x5e8497(0x118)+_0x46263c)||'__';},0xc8);},0x5dc)):notiMessage(_0x2e1aff(0x12b),0x5dc);}),_0x5d1e52[_0x43bdc9(0x149)]('touchend',function(){clearTimeout(clickTimer),!clickedOver1s&&(_0x5d1e52['onclick']=()=>{const _0x1a567b=a0_0xb348;stateList[_0x1a567b(0x141)][_0x1a567b(0x12d)](_0x1a567b(0x132)),statePageButton['classList'][_0x1a567b(0x12d)](_0x1a567b(0x13f)),led(_0x46263c),a0_0x46f82c[_0x1a567b(0x15e)](_0x46263c),a0_0x46f82c[_0x1a567b(0x154)](),localStorage[_0x1a567b(0x14c)](_0x1a567b(0x11f),_0x46263c),notiMessage('['+_0x46263c+_0x1a567b(0x158),0x5dc);}),clickedOver1s=![];});}document[a0_0x492be3(0x149)](a0_0x492be3(0x12f),function(){const _0x260693=a0_0x492be3;[_0x260693(0x127),_0x260693(0x139),_0x260693(0x11e)][_0x260693(0x14d)](_0x3936db=>{const _0x184863=_0x260693;statePageButton[_0x184863(0x149)](_0x3936db,()=>{const _0x1bdf30=_0x184863;LoadstateInPage(0x0,_0x1bdf30(0x155),_0x1bdf30(0x145),_0x1bdf30(0x136)),LoadstateInPage(0x1,_0x1bdf30(0x13b),'dateState01',_0x1bdf30(0x131)),LoadstateInPage(0x2,_0x1bdf30(0x126),_0x1bdf30(0x11a),_0x1bdf30(0x122)),LoadstateInPage(0x3,_0x1bdf30(0x125),'dateState03','stateDiv03'),LoadstateInPage(0x4,_0x1bdf30(0x14b),_0x1bdf30(0x12c),_0x1bdf30(0x144)),LoadstateInPage(0x5,_0x1bdf30(0x15c),_0x1bdf30(0x11c),_0x1bdf30(0x157)),LoadstateInPage(0x6,_0x1bdf30(0x13c),'dateState06',_0x1bdf30(0x150)),LoadstateInPage(0x7,_0x1bdf30(0x133),_0x1bdf30(0x152),'stateDiv07'),stateList[_0x1bdf30(0x141)][_0x1bdf30(0x12d)](_0x1bdf30(0x132)),statePageButton[_0x1bdf30(0x141)]['toggle'](_0x1bdf30(0x13f)),stateList[_0x1bdf30(0x141)][_0x1bdf30(0x14e)](_0x1bdf30(0x132))?a0_0x46f82c[_0x1bdf30(0x154)]():a0_0x46f82c[_0x1bdf30(0x14a)]();});});}); \ No newline at end of file diff --git a/docs/src/js/storage.js b/docs/src/js/storage.js index 5b52591..71ff606 100644 --- a/docs/src/js/storage.js +++ b/docs/src/js/storage.js @@ -1 +1 @@ -function a0_0x47cb(){const _0x2cddbd=['YiB','listGame','storage','createElement','setItem','romsFile','removeItem','DOMContentLoaded','toFixed','rom-item','2138UKlcTz','TiB','11214840pgFeyh','addEventListener','endsWith','replace','.gba','screenshotsFile','appendChild','deleteFile','span','_dateState','ZiB','7pkBsgu','getItem','64mLdAMh','237786iNSgmQ','add','div','11baLlth','showModal','1118648wlnkUY','close','gap-16','/data/games/','uploadCheat','/data/saves/','10950165upprqG','editFile','fileSize','savesFile','listScreenshot','textContent','/data/cheats/','prompt','142647taoNSf','getElementById','downloadFile','uploadSavSta','_imageState','rename','files','GiB','169PtCSLr','/data/states/','Delete\x20this\x20file?','292318AOAmPT','55qnOvqB','PiB','gap-10','change','.cheats','classList','listCheat','length','Edit\x20filename','home','slice','statesFile','download','active','flex-1','click','mib','remove','disable','1044NotIll','firstChild','onclick','opacity0','confirm','name','delete','actionDiv'];a0_0x47cb=function(){return _0x2cddbd;};return a0_0x47cb();}const a0_0x1fb9b1=a0_0x5509;(function(_0x5bb2c3,_0x1ebe35){const _0x2be2e6=a0_0x5509,_0x4a714c=_0x5bb2c3();while(!![]){try{const _0x52232e=parseInt(_0x2be2e6(0x1c7))/0x1*(-parseInt(_0x2be2e6(0x1f0))/0x2)+parseInt(_0x2be2e6(0x213))/0x3*(-parseInt(_0x2be2e6(0x1ff))/0x4)+-parseInt(_0x2be2e6(0x1cb))/0x5*(parseInt(_0x2be2e6(0x200))/0x6)+-parseInt(_0x2be2e6(0x1fd))/0x7*(-parseInt(_0x2be2e6(0x205))/0x8)+parseInt(_0x2be2e6(0x20b))/0x9+parseInt(_0x2be2e6(0x1f2))/0xa*(-parseInt(_0x2be2e6(0x203))/0xb)+parseInt(_0x2be2e6(0x1de))/0xc*(parseInt(_0x2be2e6(0x1ca))/0xd);if(_0x52232e===_0x1ebe35)break;else _0x4a714c['push'](_0x4a714c['shift']());}catch(_0x1ebd11){_0x4a714c['push'](_0x4a714c['shift']());}}}(a0_0x47cb,0xc6b68));function a0_0x5509(_0xca25c1,_0x3b6323){const _0x47cba1=a0_0x47cb();return a0_0x5509=function(_0x550992,_0x462e8a){_0x550992=_0x550992-0x1c7;let _0x4a59db=_0x47cba1[_0x550992];return _0x4a59db;},a0_0x5509(_0xca25c1,_0x3b6323);}import*as a0_0x485ea1 from'./main.js';const mgbaStorage=document[a0_0x1fb9b1(0x214)]('mgba-storage'),savesFile=document[a0_0x1fb9b1(0x214)](a0_0x1fb9b1(0x20e)),romsFile=document[a0_0x1fb9b1(0x214)](a0_0x1fb9b1(0x1eb)),statesFile=document[a0_0x1fb9b1(0x214)](a0_0x1fb9b1(0x1d6)),screenshotsFile=document[a0_0x1fb9b1(0x214)](a0_0x1fb9b1(0x1f7));function humanFileSize(_0x37dcf6,_0x374d29=![],_0x54436b=0x1){const _0x97c943=a0_0x1fb9b1,_0x538ee2=_0x374d29?0x3e8:0x400,_0x401da4=_0x374d29?['kB','MB','GB','TB','PB','EB','ZB','YB']:['KiB','MiB',_0x97c943(0x21a),_0x97c943(0x1f1),_0x97c943(0x1cc),'EiB',_0x97c943(0x1fc),_0x97c943(0x1e6)];let _0x8ddf38=-0x1;do{_0x37dcf6/=_0x538ee2,++_0x8ddf38;}while(Math['abs'](_0x37dcf6)>=_0x538ee2&&_0x8ddf38<_0x401da4[_0x97c943(0x1d2)]-0x1);return _0x37dcf6[_0x97c943(0x1ee)](_0x54436b)+'\x20'+_0x401da4[_0x8ddf38];}function createElementStorage(_0xe2a52b,_0xce896b,_0x4d1517){const _0x48386d=a0_0x1fb9b1,_0x49addb=document[_0x48386d(0x1e9)](_0x48386d(0x202));_0x49addb[_0x48386d(0x1d0)]['add'](_0x48386d(0x1d9),_0x48386d(0x1ef),'rom'),_0xe2a52b['appendChild'](_0x49addb);const _0x2c08ea=document['createElement'](_0x48386d(0x1fa));_0x2c08ea[_0x48386d(0x210)]=_0xce896b,_0x2c08ea[_0x48386d(0x1d0)]['add'](_0x48386d(0x1d9)),_0x49addb[_0x48386d(0x1f8)](_0x2c08ea),_0x2c08ea['onclick']=()=>{const _0x496b9c=_0x48386d,_0x1f6161=document[_0x496b9c(0x1e9)]('dialog');_0x1f6161['onclose']=()=>_0x1f6161['remove'](),_0xe2a52b['appendChild'](_0x1f6161);const _0x3909eb=document[_0x496b9c(0x1e9)](_0x496b9c(0x202));_0x3909eb[_0x496b9c(0x1d0)][_0x496b9c(0x201)](_0x496b9c(0x1e8),'right',_0x496b9c(0x1cd)),_0x1f6161[_0x496b9c(0x1f8)](_0x3909eb);const _0x207644=document[_0x496b9c(0x1e9)](_0x496b9c(0x202));_0x207644[_0x496b9c(0x1d0)][_0x496b9c(0x201)](_0x496b9c(0x1d4),'bc',_0x496b9c(0x1d9)),_0x3909eb[_0x496b9c(0x1f8)](_0x207644);const _0x11cca4=document['createElement'](_0x496b9c(0x202));_0x11cca4['classList']['add'](_0x496b9c(0x1d9)),_0x3909eb[_0x496b9c(0x1f8)](_0x11cca4);const _0x1783c0=document['createElement'](_0x496b9c(0x202));_0x1783c0[_0x496b9c(0x1d0)]['add'](_0x496b9c(0x1d9)),_0x3909eb[_0x496b9c(0x1f8)](_0x1783c0);const _0x3a8eb0=document[_0x496b9c(0x1e9)](_0x496b9c(0x202));_0x3a8eb0[_0x496b9c(0x1d0)][_0x496b9c(0x201)]('flex-1'),_0x3909eb[_0x496b9c(0x1f8)](_0x3a8eb0),mgbaStorage[_0x496b9c(0x1d0)][_0x496b9c(0x201)]('opacity0'),_0x207644[_0x496b9c(0x1e0)]=()=>{const _0x41700c=_0x496b9c;_0x1f6161[_0x41700c(0x206)](),_0x1f6161[_0x41700c(0x1dc)](),mgbaStorage[_0x41700c(0x1d0)][_0x41700c(0x1dc)](_0x41700c(0x1e1));};const _0x44dbe2=document['createElement'](_0x496b9c(0x202));_0x44dbe2[_0x496b9c(0x1d0)]['add'](_0x496b9c(0x1d9),'rom-item','hw','cw'),_0x44dbe2['textContent']=_0xce896b,_0x1f6161[_0x496b9c(0x1f8)](_0x44dbe2);const _0x50ca56=document['createElement'](_0x496b9c(0x202));_0x50ca56['classList'][_0x496b9c(0x201)](_0x496b9c(0x1e5),'hw','cw',_0x496b9c(0x207)),_0x1f6161[_0x496b9c(0x1f8)](_0x50ca56);const _0x2af67f=document[_0x496b9c(0x1e9)](_0x496b9c(0x202));_0x2af67f['classList'][_0x496b9c(0x201)](_0x496b9c(0x1d7),'bc'),_0x50ca56['appendChild'](_0x2af67f),_0x2af67f[_0x496b9c(0x1e0)]=()=>{const _0x559ea4=_0x496b9c;a0_0x485ea1[_0x559ea4(0x215)](_0x4d1517,_0xce896b);};const _0x1fc001=document[_0x496b9c(0x1e9)](_0x496b9c(0x202));_0x1fc001[_0x496b9c(0x1d0)][_0x496b9c(0x201)](_0x496b9c(0x1e4),'bc'),_0x50ca56[_0x496b9c(0x1f8)](_0x1fc001),_0x1fc001[_0x496b9c(0x1e0)]=async()=>{const _0x2af910=_0x496b9c;if(window[_0x2af910(0x1e2)](_0x2af910(0x1c9)+_0xce896b)){const _0x10df64=_0xce896b['replace'](/\....$/,_0x2af910(0x1f6));a0_0x485ea1[_0x2af910(0x1f9)](_0x4d1517),localStorage[_0x2af910(0x1ec)](_0x10df64+_0x2af910(0x1fb)+_0xce896b[_0x2af910(0x1d5)](-0x1)),localStorage[_0x2af910(0x1ec)](_0x10df64+_0x2af910(0x217)+_0xce896b[_0x2af910(0x1d5)](-0x1)),localStorageFile(),_0x1f6161[_0x2af910(0x206)](),_0x1f6161[_0x2af910(0x1dc)](),mgbaStorage['classList']['remove'](_0x2af910(0x1e1));}};const _0x1044d9=document[_0x496b9c(0x1e9)](_0x496b9c(0x202));_0x1044d9[_0x496b9c(0x1d0)]['add'](_0x496b9c(0x218),'bc'),_0x50ca56[_0x496b9c(0x1f8)](_0x1044d9),_0x1044d9[_0x496b9c(0x1e0)]=async()=>{const _0x3d4639=_0x496b9c,_0x29e5f6=window[_0x3d4639(0x212)](_0x3d4639(0x1d3),_0xce896b);if(_0x29e5f6!==null){const _0x44d1f0=_0xce896b[_0x3d4639(0x1f5)](/\....$/,_0x3d4639(0x1f6)),_0x1577c1=_0x29e5f6[_0x3d4639(0x1f5)](/\....$/,_0x3d4639(0x1f6)),_0x181d52=_0x44d1f0+_0x3d4639(0x1fb)+_0xce896b[_0x3d4639(0x1d5)](-0x1),_0x185352=_0x44d1f0+_0x3d4639(0x217)+_0xce896b[_0x3d4639(0x1d5)](-0x1),_0x4341a9=_0x1577c1+_0x3d4639(0x1fb)+_0x29e5f6['slice'](-0x1),_0x143ea8=_0x1577c1+_0x3d4639(0x217)+_0x29e5f6[_0x3d4639(0x1d5)](-0x1),_0x143005=localStorage[_0x3d4639(0x1fe)](_0x181d52),_0x56800a=localStorage[_0x3d4639(0x1fe)](_0x185352);_0x143005!==null&&(localStorage[_0x3d4639(0x1ea)](_0x4341a9,_0x143005),localStorage[_0x3d4639(0x1ec)](_0x181d52)),_0x56800a!==null&&(localStorage['setItem'](_0x143ea8,_0x56800a),localStorage[_0x3d4639(0x1ec)](_0x185352)),a0_0x485ea1[_0x3d4639(0x20c)](_0x4d1517,_0xce896b,_0x29e5f6),localStorageFile(),_0x1f6161['close'](),_0x1f6161[_0x3d4639(0x1dc)](),mgbaStorage[_0x3d4639(0x1d0)][_0x3d4639(0x1dc)](_0x3d4639(0x1e1));}},_0x1f6161[_0x496b9c(0x204)]();};const _0x553619=document['createElement']('span');_0x553619[_0x48386d(0x210)]=humanFileSize(a0_0x485ea1[_0x48386d(0x20d)](_0x4d1517)),_0x553619['classList'][_0x48386d(0x201)](_0x48386d(0x1db)),_0x49addb['appendChild'](_0x553619);}export function localStorageFile(){const _0x4bec5a=a0_0x1fb9b1,_0x4039d6=a0_0x485ea1[_0x4bec5a(0x1e7)](),_0x2cbdc7=a0_0x485ea1['listSave'](),_0x1b0573=a0_0x485ea1['listState'](),_0x30d894=a0_0x485ea1[_0x4bec5a(0x1d1)](),_0x11a681=a0_0x485ea1[_0x4bec5a(0x20f)](),_0x5e6474=[romsFile,savesFile,statesFile,cheatsFile,screenshotsFile];for(const _0x19e12b of _0x5e6474){while(_0x19e12b[_0x4bec5a(0x1df)]){_0x19e12b['lastChild'][_0x4bec5a(0x1dc)]();}}for(const _0x3d55f2 of _0x4039d6){createElementStorage(romsFile,_0x3d55f2,_0x4bec5a(0x208)+_0x3d55f2);}for(const _0x1d6fd5 of _0x1b0573){createElementStorage(statesFile,_0x1d6fd5,_0x4bec5a(0x1c8)+_0x1d6fd5);}for(const _0x208783 of _0x2cbdc7){createElementStorage(savesFile,_0x208783,_0x4bec5a(0x20a)+_0x208783);}for(const _0x552428 of _0x30d894){createElementStorage(cheatsFile,_0x552428,_0x4bec5a(0x211)+_0x552428);}for(const _0x224930 of _0x11a681){createElementStorage(screenshotsFile,_0x224930,'/data/screenshots/'+_0x224930);}}document[a0_0x1fb9b1(0x1f3)](a0_0x1fb9b1(0x1ed),function(){const _0x176d0c=a0_0x1fb9b1;upLoadFile['addEventListener'](_0x176d0c(0x1ce),function(){const _0x5b21bd=_0x176d0c,_0x362686=upLoadFile[_0x5b21bd(0x219)][0x0][_0x5b21bd(0x1e3)];if(_0x362686[_0x5b21bd(0x1f4)](_0x5b21bd(0x1cf)))a0_0x485ea1[_0x5b21bd(0x209)](upLoadFile);else _0x362686['endsWith'](_0x5b21bd(0x1f6))||_0x362686[_0x5b21bd(0x1f4)]('.gbc')||_0x362686[_0x5b21bd(0x1f4)]('.bc')?a0_0x485ea1['uploadGame'](upLoadFile):a0_0x485ea1[_0x5b21bd(0x216)](upLoadFile);}),openLocalStorage[_0x176d0c(0x1f3)](_0x176d0c(0x1da),function(){const _0x2232a0=_0x176d0c,_0xf28c74=localStorage['getItem']('uId');storage[_0x2232a0(0x1d0)][_0x2232a0(0x1dc)](_0x2232a0(0x1dd)),intro['classList'][_0x2232a0(0x201)](_0x2232a0(0x1dd)),ingame[_0x2232a0(0x1d0)][_0x2232a0(0x201)]('disable'),_0xf28c74===null||_0xf28c74===''?(dropboxRestore['classList']['remove'](_0x2232a0(0x1d8)),dropboxBackup[_0x2232a0(0x1d0)]['remove'](_0x2232a0(0x1d8)),dropboxCloud[_0x2232a0(0x1d0)]['remove'](_0x2232a0(0x1d8))):(dropboxRestore[_0x2232a0(0x1d0)][_0x2232a0(0x201)](_0x2232a0(0x1d8)),dropboxBackup[_0x2232a0(0x1d0)][_0x2232a0(0x201)](_0x2232a0(0x1d8)),dropboxCloud['classList'][_0x2232a0(0x201)](_0x2232a0(0x1d8)));}),setTimeout(()=>{localStorageFile();},0xbb8);}); \ No newline at end of file +const a0_0x1b505a=a0_0x4ef9;function a0_0x27fb(){const _0x38748b=['listGame','click','statesFile','40RPwJhq','ZiB','lastChild','flex-1','KiB','add','slice','disable','.bc','PiB','listScreenshot','.gba','onclick','_dateState','Edit\x20filename','close','opacity0','confirm','gap-16','listState','removeItem','remove','fileSize','/data/states/','YiB','/data/screenshots/','classList','home','editFile','uploadCheat','length','firstChild','6TDCWxN','EiB','listCheat','getElementById','endsWith','name','onclose','files','setItem','.cheats','uId','rom','appendChild','div','mib','175736vaBGJY','prompt','1879424JkyTNW','span','Delete\x20this\x20file?','/data/games/','delete','mgba-storage','right','275590IrPZWa','textContent','screenshotsFile','downloadFile','7LgOsdM','toFixed','replace','createElement','active','getItem','actionDiv','savesFile','storage','download','229369mKtpMl','1377834UTkOOh','193725PpzyJT','915669pDrHUS','addEventListener','TiB','_imageState','rom-item'];a0_0x27fb=function(){return _0x38748b;};return a0_0x27fb();}(function(_0x4b7646,_0x427f4d){const _0x5b3080=a0_0x4ef9,_0x708ff=_0x4b7646();while(!![]){try{const _0x1205fa=parseInt(_0x5b3080(0x229))/0x1+parseInt(_0x5b3080(0x212))/0x2*(-parseInt(_0x5b3080(0x203))/0x3)+-parseInt(_0x5b3080(0x214))/0x4+parseInt(_0x5b3080(0x1da))/0x5+-parseInt(_0x5b3080(0x22a))/0x6*(-parseInt(_0x5b3080(0x21f))/0x7)+-parseInt(_0x5b3080(0x1e3))/0x8*(-parseInt(_0x5b3080(0x1db))/0x9)+-parseInt(_0x5b3080(0x21b))/0xa;if(_0x1205fa===_0x427f4d)break;else _0x708ff['push'](_0x708ff['shift']());}catch(_0x292108){_0x708ff['push'](_0x708ff['shift']());}}}(a0_0x27fb,0x515fb));import*as a0_0x1b0558 from'./main.js';const mgbaStorage=document[a0_0x1b505a(0x206)](a0_0x1b505a(0x219)),savesFile=document[a0_0x1b505a(0x206)](a0_0x1b505a(0x226)),romsFile=document[a0_0x1b505a(0x206)]('romsFile'),statesFile=document[a0_0x1b505a(0x206)](a0_0x1b505a(0x1e2)),screenshotsFile=document['getElementById'](a0_0x1b505a(0x21d));function humanFileSize(_0x3d3ab3,_0x41f222=![],_0x1d0734=0x1){const _0x2d6a23=a0_0x1b505a,_0x1eeb81=_0x41f222?0x3e8:0x400,_0x24fd1d=_0x41f222?['kB','MB','GB','TB','PB','EB','ZB','YB']:[_0x2d6a23(0x1e7),'MiB','GiB',_0x2d6a23(0x1dd),_0x2d6a23(0x1ec),_0x2d6a23(0x204),_0x2d6a23(0x1e4),_0x2d6a23(0x1fb)];let _0x4a928f=-0x1;do{_0x3d3ab3/=_0x1eeb81,++_0x4a928f;}while(Math['abs'](_0x3d3ab3)>=_0x1eeb81&&_0x4a928f<_0x24fd1d[_0x2d6a23(0x201)]-0x1);return _0x3d3ab3[_0x2d6a23(0x220)](_0x1d0734)+'\x20'+_0x24fd1d[_0x4a928f];}function createElementStorage(_0x41fc65,_0x18587f,_0x5de7b5){const _0x309282=a0_0x1b505a,_0x4c9599=document[_0x309282(0x222)](_0x309282(0x210));_0x4c9599['classList']['add']('flex-1',_0x309282(0x1df),_0x309282(0x20e)),_0x41fc65[_0x309282(0x20f)](_0x4c9599);const _0x39291e=document['createElement'](_0x309282(0x215));_0x39291e['textContent']=_0x18587f,_0x39291e[_0x309282(0x1fd)][_0x309282(0x1e8)](_0x309282(0x1e6)),_0x4c9599[_0x309282(0x20f)](_0x39291e),_0x39291e[_0x309282(0x1ef)]=()=>{const _0x2c01cc=_0x309282,_0x53e8e3=document[_0x2c01cc(0x222)]('dialog');_0x53e8e3[_0x2c01cc(0x209)]=()=>_0x53e8e3[_0x2c01cc(0x1f8)](),_0x41fc65[_0x2c01cc(0x20f)](_0x53e8e3);const _0x8ee9c4=document[_0x2c01cc(0x222)](_0x2c01cc(0x210));_0x8ee9c4['classList'][_0x2c01cc(0x1e8)](_0x2c01cc(0x227),_0x2c01cc(0x21a),'gap-10'),_0x53e8e3[_0x2c01cc(0x20f)](_0x8ee9c4);const _0x5831f4=document['createElement'](_0x2c01cc(0x210));_0x5831f4[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)](_0x2c01cc(0x1fe),'bc',_0x2c01cc(0x1e6)),_0x8ee9c4[_0x2c01cc(0x20f)](_0x5831f4);const _0x5ef77d=document[_0x2c01cc(0x222)]('div');_0x5ef77d[_0x2c01cc(0x1fd)]['add'](_0x2c01cc(0x1e6)),_0x8ee9c4[_0x2c01cc(0x20f)](_0x5ef77d);const _0x1f5a08=document[_0x2c01cc(0x222)](_0x2c01cc(0x210));_0x1f5a08[_0x2c01cc(0x1fd)]['add'](_0x2c01cc(0x1e6)),_0x8ee9c4[_0x2c01cc(0x20f)](_0x1f5a08);const _0x176e91=document['createElement'](_0x2c01cc(0x210));_0x176e91['classList'][_0x2c01cc(0x1e8)](_0x2c01cc(0x1e6)),_0x8ee9c4[_0x2c01cc(0x20f)](_0x176e91),mgbaStorage[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)]('opacity0'),_0x5831f4[_0x2c01cc(0x1ef)]=()=>{const _0xc5f8ba=_0x2c01cc;_0x53e8e3['close'](),_0x53e8e3['remove'](),mgbaStorage['classList'][_0xc5f8ba(0x1f8)](_0xc5f8ba(0x1f3));};const _0x4fe751=document[_0x2c01cc(0x222)]('div');_0x4fe751[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)](_0x2c01cc(0x1e6),_0x2c01cc(0x1df),'hw','cw'),_0x4fe751[_0x2c01cc(0x21c)]=_0x18587f,_0x53e8e3[_0x2c01cc(0x20f)](_0x4fe751);const _0x545068=document[_0x2c01cc(0x222)]('div');_0x545068[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)](_0x2c01cc(0x225),'hw','cw',_0x2c01cc(0x1f5)),_0x53e8e3[_0x2c01cc(0x20f)](_0x545068);const _0x521ef5=document['createElement']('div');_0x521ef5[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)](_0x2c01cc(0x228),'bc'),_0x545068['appendChild'](_0x521ef5),_0x521ef5[_0x2c01cc(0x1ef)]=()=>{const _0x3506cc=_0x2c01cc;a0_0x1b0558[_0x3506cc(0x21e)](_0x5de7b5,_0x18587f);};const _0x324820=document[_0x2c01cc(0x222)](_0x2c01cc(0x210));_0x324820['classList'][_0x2c01cc(0x1e8)](_0x2c01cc(0x218),'bc'),_0x545068['appendChild'](_0x324820),_0x324820['onclick']=async()=>{const _0x202db9=_0x2c01cc;if(window[_0x202db9(0x1f4)](_0x202db9(0x216)+_0x18587f)){const _0x84d41b=_0x18587f[_0x202db9(0x221)](/\....$/,'.gba');a0_0x1b0558['deleteFile'](_0x5de7b5),localStorage[_0x202db9(0x1f7)](_0x84d41b+_0x202db9(0x1f0)+_0x18587f[_0x202db9(0x1e9)](-0x1)),localStorage[_0x202db9(0x1f7)](_0x84d41b+_0x202db9(0x1de)+_0x18587f[_0x202db9(0x1e9)](-0x1)),localStorageFile(),_0x53e8e3[_0x202db9(0x1f2)](),_0x53e8e3[_0x202db9(0x1f8)](),mgbaStorage['classList']['remove'](_0x202db9(0x1f3));}};const _0x38d8f1=document[_0x2c01cc(0x222)](_0x2c01cc(0x210));_0x38d8f1[_0x2c01cc(0x1fd)][_0x2c01cc(0x1e8)]('rename','bc'),_0x545068[_0x2c01cc(0x20f)](_0x38d8f1),_0x38d8f1[_0x2c01cc(0x1ef)]=async()=>{const _0x397748=_0x2c01cc,_0x594dab=window[_0x397748(0x213)](_0x397748(0x1f1),_0x18587f);if(_0x594dab!==null){const _0x44a931=_0x18587f[_0x397748(0x221)](/\....$/,_0x397748(0x1ee)),_0x57bc13=_0x594dab[_0x397748(0x221)](/\....$/,_0x397748(0x1ee)),_0x389c73=_0x44a931+_0x397748(0x1f0)+_0x18587f[_0x397748(0x1e9)](-0x1),_0x1232d6=_0x44a931+'_imageState'+_0x18587f[_0x397748(0x1e9)](-0x1),_0x30e5ab=_0x57bc13+'_dateState'+_0x594dab[_0x397748(0x1e9)](-0x1),_0x2702ba=_0x57bc13+'_imageState'+_0x594dab[_0x397748(0x1e9)](-0x1),_0x56927a=localStorage[_0x397748(0x224)](_0x389c73),_0x22540f=localStorage['getItem'](_0x1232d6);_0x56927a!==null&&(localStorage['setItem'](_0x30e5ab,_0x56927a),localStorage[_0x397748(0x1f7)](_0x389c73)),_0x22540f!==null&&(localStorage[_0x397748(0x20b)](_0x2702ba,_0x22540f),localStorage[_0x397748(0x1f7)](_0x1232d6)),a0_0x1b0558[_0x397748(0x1ff)](_0x5de7b5,_0x18587f,_0x594dab),localStorageFile(),_0x53e8e3[_0x397748(0x1f2)](),_0x53e8e3['remove'](),mgbaStorage['classList'][_0x397748(0x1f8)](_0x397748(0x1f3));}},_0x53e8e3['showModal']();};const _0xabaf9c=document[_0x309282(0x222)](_0x309282(0x215));_0xabaf9c['textContent']=humanFileSize(a0_0x1b0558[_0x309282(0x1f9)](_0x5de7b5)),_0xabaf9c[_0x309282(0x1fd)][_0x309282(0x1e8)](_0x309282(0x211)),_0x4c9599['appendChild'](_0xabaf9c);}export function localStorageFile(){const _0x3fde63=a0_0x1b505a,_0x36906d=a0_0x1b0558[_0x3fde63(0x1e0)](),_0x567aed=a0_0x1b0558['listSave'](),_0x5431d0=a0_0x1b0558[_0x3fde63(0x1f6)](),_0x3b63c4=a0_0x1b0558[_0x3fde63(0x205)](),_0x2b12c2=a0_0x1b0558[_0x3fde63(0x1ed)](),_0x2ce886=[romsFile,savesFile,statesFile,cheatsFile,screenshotsFile];for(const _0xdb1bdb of _0x2ce886){while(_0xdb1bdb[_0x3fde63(0x202)]){_0xdb1bdb[_0x3fde63(0x1e5)][_0x3fde63(0x1f8)]();}}for(const _0x3ecd51 of _0x36906d){createElementStorage(romsFile,_0x3ecd51,_0x3fde63(0x217)+_0x3ecd51);}for(const _0x5d8958 of _0x5431d0){createElementStorage(statesFile,_0x5d8958,_0x3fde63(0x1fa)+_0x5d8958);}for(const _0x4960a7 of _0x567aed){createElementStorage(savesFile,_0x4960a7,'/data/saves/'+_0x4960a7);}for(const _0x4c7c5b of _0x3b63c4){createElementStorage(cheatsFile,_0x4c7c5b,'/data/cheats/'+_0x4c7c5b);}for(const _0x147794 of _0x2b12c2){createElementStorage(screenshotsFile,_0x147794,_0x3fde63(0x1fc)+_0x147794);}}function a0_0x4ef9(_0x22c25c,_0x21eb21){const _0x27fbbf=a0_0x27fb();return a0_0x4ef9=function(_0x4ef9fd,_0x35473a){_0x4ef9fd=_0x4ef9fd-0x1da;let _0xee1b93=_0x27fbbf[_0x4ef9fd];return _0xee1b93;},a0_0x4ef9(_0x22c25c,_0x21eb21);}document[a0_0x1b505a(0x1dc)]('DOMContentLoaded',function(){const _0x32c8a0=a0_0x1b505a;upLoadFile[_0x32c8a0(0x1dc)]('change',function(){const _0x3850a2=_0x32c8a0,_0xa5cf44=upLoadFile[_0x3850a2(0x20a)][0x0][_0x3850a2(0x208)];if(_0xa5cf44['endsWith'](_0x3850a2(0x20c)))a0_0x1b0558[_0x3850a2(0x200)](upLoadFile);else _0xa5cf44[_0x3850a2(0x207)](_0x3850a2(0x1ee))||_0xa5cf44[_0x3850a2(0x207)]('.gbc')||_0xa5cf44[_0x3850a2(0x207)](_0x3850a2(0x1eb))?a0_0x1b0558['uploadGame'](upLoadFile):a0_0x1b0558['uploadSavSta'](upLoadFile);}),openLocalStorage[_0x32c8a0(0x1dc)](_0x32c8a0(0x1e1),function(){const _0x556aa1=_0x32c8a0,_0x36b473=localStorage[_0x556aa1(0x224)](_0x556aa1(0x20d));storage[_0x556aa1(0x1fd)][_0x556aa1(0x1f8)]('disable'),intro[_0x556aa1(0x1fd)][_0x556aa1(0x1e8)](_0x556aa1(0x1ea)),ingame[_0x556aa1(0x1fd)]['add'](_0x556aa1(0x1ea)),_0x36b473===null||_0x36b473===''?(dropboxRestore['classList'][_0x556aa1(0x1f8)](_0x556aa1(0x223)),dropboxBackup['classList']['remove'](_0x556aa1(0x223)),dropboxCloud[_0x556aa1(0x1fd)][_0x556aa1(0x1f8)](_0x556aa1(0x223))):(dropboxRestore[_0x556aa1(0x1fd)][_0x556aa1(0x1e8)](_0x556aa1(0x223)),dropboxBackup[_0x556aa1(0x1fd)][_0x556aa1(0x1e8)](_0x556aa1(0x223)),dropboxCloud[_0x556aa1(0x1fd)][_0x556aa1(0x1e8)](_0x556aa1(0x223)));}),setTimeout(()=>{localStorageFile();},0xbb8);}); \ No newline at end of file diff --git a/docs/src/js/welcome.js b/docs/src/js/welcome.js index 35b3a17..212d518 100644 --- a/docs/src/js/welcome.js +++ b/docs/src/js/welcome.js @@ -1 +1 @@ -const a0_0x4b41eb=a0_0xf017;(function(_0x29bcf2,_0x4ce20d){const _0x1917dd=a0_0xf017,_0x1b13a5=_0x29bcf2();while(!![]){try{const _0x308457=parseInt(_0x1917dd(0x19c))/0x1*(parseInt(_0x1917dd(0x195))/0x2)+-parseInt(_0x1917dd(0x1a7))/0x3+-parseInt(_0x1917dd(0x1a6))/0x4*(parseInt(_0x1917dd(0x1a0))/0x5)+parseInt(_0x1917dd(0x187))/0x6*(-parseInt(_0x1917dd(0x199))/0x7)+-parseInt(_0x1917dd(0x18b))/0x8*(parseInt(_0x1917dd(0x1a1))/0x9)+parseInt(_0x1917dd(0x189))/0xa*(parseInt(_0x1917dd(0x194))/0xb)+parseInt(_0x1917dd(0x190))/0xc;if(_0x308457===_0x4ce20d)break;else _0x1b13a5['push'](_0x1b13a5['shift']());}catch(_0x2f403c){_0x1b13a5['push'](_0x1b13a5['shift']());}}}(a0_0x5941,0x982a0));import*as a0_0x3cb4b9 from'./main.js';function a0_0x5941(){const _0x54d66c=['4429395KeklUL','9ralrAa','listGame','uploadGame','remove','DOMContentLoaded','4lCRmXZ','2215995jnqfbb','flex-1','firstChild','gameName','6MHHDsd','getElementById','40wprzGp','insertBefore','6033880xbtZgR','createElement','forEach','classList','name','16412844ElYsCL','addEventListener','add','setItem','3156791lyyegY','14AoWxEx','rom-list','loadGame','removeChild','2632567oCajMh','assign','change','123209cSflvJ','disable','fileInput','click'];a0_0x5941=function(){return _0x54d66c;};return a0_0x5941();}function a0_0xf017(_0x9e345,_0x4b33e8){const _0x594138=a0_0x5941();return a0_0xf017=function(_0xf017ea,_0x41d4ec){_0xf017ea=_0xf017ea-0x185;let _0x40cf8d=_0x594138[_0xf017ea];return _0x40cf8d;},a0_0xf017(_0x9e345,_0x4b33e8);}const romlist=document[a0_0x4b41eb(0x188)](a0_0x4b41eb(0x196)),romInput=document[a0_0x4b41eb(0x188)](a0_0x4b41eb(0x19e));async function romList(){const _0x3faa47=a0_0x4b41eb;await a0_0x3cb4b9[_0x3faa47(0x1a2)]()[_0x3faa47(0x18d)](_0x5d7d00=>{const _0x43e422=_0x3faa47,_0x4d7548=Object[_0x43e422(0x19a)](document[_0x43e422(0x18c)]('div'),{'className':_0x43e422(0x1a8),'textContent':_0x5d7d00,'onclick':()=>{const _0x30b93c=_0x43e422;a0_0x3cb4b9[_0x30b93c(0x197)](_0x5d7d00),localStorage[_0x30b93c(0x193)](_0x30b93c(0x186),_0x5d7d00);}});romlist[_0x43e422(0x18a)](_0x4d7548,romlist['firstChild']);});}async function inputGame(_0x2a4f24){const _0x180dc7=a0_0x4b41eb,_0x320d3e=_0x2a4f24['files'][0x0][_0x180dc7(0x18f)];localStorage[_0x180dc7(0x193)]('gameName',_0x320d3e),await a0_0x3cb4b9[_0x180dc7(0x1a3)](romInput),await delay(0x1f4),await a0_0x3cb4b9[_0x180dc7(0x197)](_0x320d3e);}document[a0_0x4b41eb(0x191)](a0_0x4b41eb(0x1a5),function(){const _0x4a1730=a0_0x4b41eb;setTimeout(()=>{romList();},0x7d0),romInput[_0x4a1730(0x191)](_0x4a1730(0x19b),function(){inputGame(romInput);}),backToHome[_0x4a1730(0x191)](_0x4a1730(0x19f),function(){const _0x4ed757=_0x4a1730;storage[_0x4ed757(0x18e)]['add'](_0x4ed757(0x19d)),intro[_0x4ed757(0x18e)][_0x4ed757(0x1a4)]('disable'),ingame[_0x4ed757(0x18e)][_0x4ed757(0x192)](_0x4ed757(0x19d));while(romlist[_0x4ed757(0x185)]){romlist[_0x4ed757(0x198)](romlist[_0x4ed757(0x185)]);}setTimeout(()=>{romList();},0x64);});}); \ No newline at end of file +const a0_0x329007=a0_0x4105;(function(_0x3e408e,_0x44e600){const _0x5e5d1c=a0_0x4105,_0x4835b5=_0x3e408e();while(!![]){try{const _0x1c0f69=parseInt(_0x5e5d1c(0x1cd))/0x1*(parseInt(_0x5e5d1c(0x1c7))/0x2)+parseInt(_0x5e5d1c(0x1c0))/0x3*(-parseInt(_0x5e5d1c(0x1d7))/0x4)+-parseInt(_0x5e5d1c(0x1d0))/0x5+parseInt(_0x5e5d1c(0x1d5))/0x6+parseInt(_0x5e5d1c(0x1d2))/0x7*(parseInt(_0x5e5d1c(0x1d8))/0x8)+-parseInt(_0x5e5d1c(0x1e0))/0x9+parseInt(_0x5e5d1c(0x1de))/0xa*(-parseInt(_0x5e5d1c(0x1cf))/0xb);if(_0x1c0f69===_0x44e600)break;else _0x4835b5['push'](_0x4835b5['shift']());}catch(_0x56a634){_0x4835b5['push'](_0x4835b5['shift']());}}}(a0_0x1b74,0x80716));function a0_0x1b74(){const _0x3fca3f=['4382973shrjWc','3kGrAvv','createElement','name','files','disable','add','classList','2JTrLmQ','rom-list','loadGame','addEventListener','change','removeChild','932903RoSNcf','firstChild','66VFutFJ','2401830wXVVcD','div','7YEaIaw','flex-1','getElementById','3963906YPFofy','gameName','2452996nGqGGc','5534768SetTNn','uploadGame','insertBefore','setItem','click','remove','297810lNCzNX','listGame'];a0_0x1b74=function(){return _0x3fca3f;};return a0_0x1b74();}import*as a0_0x32fd13 from'./main.js';const romlist=document[a0_0x329007(0x1d4)](a0_0x329007(0x1c8)),romInput=document[a0_0x329007(0x1d4)]('fileInput');async function romList(){const _0x1dbd6e=a0_0x329007;await a0_0x32fd13[_0x1dbd6e(0x1df)]()['forEach'](_0x1228a6=>{const _0x37f8e4=_0x1dbd6e,_0x4cb017=Object['assign'](document[_0x37f8e4(0x1c1)](_0x37f8e4(0x1d1)),{'className':_0x37f8e4(0x1d3),'textContent':_0x1228a6,'onclick':()=>{const _0x443f45=_0x37f8e4;a0_0x32fd13[_0x443f45(0x1c9)](_0x1228a6),localStorage[_0x443f45(0x1db)]('gameName',_0x1228a6);}});romlist[_0x37f8e4(0x1da)](_0x4cb017,romlist[_0x37f8e4(0x1ce)]);});}async function inputGame(_0x2fe76c){const _0x2a029e=a0_0x329007,_0x5510d5=_0x2fe76c[_0x2a029e(0x1c3)][0x0][_0x2a029e(0x1c2)];localStorage[_0x2a029e(0x1db)](_0x2a029e(0x1d6),_0x5510d5),await a0_0x32fd13[_0x2a029e(0x1d9)](romInput),await delay(0x1f4),await a0_0x32fd13[_0x2a029e(0x1c9)](_0x5510d5);}function a0_0x4105(_0x2cf7dc,_0x2f0659){const _0x1b74c7=a0_0x1b74();return a0_0x4105=function(_0x4105e0,_0x156b97){_0x4105e0=_0x4105e0-0x1c0;let _0x135849=_0x1b74c7[_0x4105e0];return _0x135849;},a0_0x4105(_0x2cf7dc,_0x2f0659);}document[a0_0x329007(0x1ca)]('DOMContentLoaded',function(){const _0x366ae9=a0_0x329007;setTimeout(()=>{romList();},0x7d0),romInput[_0x366ae9(0x1ca)](_0x366ae9(0x1cb),function(){inputGame(romInput);}),backToHome[_0x366ae9(0x1ca)](_0x366ae9(0x1dc),function(){const _0x5183ef=_0x366ae9;storage['classList'][_0x5183ef(0x1c5)](_0x5183ef(0x1c4)),intro[_0x5183ef(0x1c6)][_0x5183ef(0x1dd)](_0x5183ef(0x1c4)),ingame['classList'][_0x5183ef(0x1c5)](_0x5183ef(0x1c4));while(romlist[_0x5183ef(0x1ce)]){romlist[_0x5183ef(0x1cc)](romlist[_0x5183ef(0x1ce)]);}setTimeout(()=>{romList();},0x64);});}); \ No newline at end of file diff --git a/docs/sw.js b/docs/sw.js index 8efb153..d7f3079 100644 --- a/docs/sw.js +++ b/docs/sw.js @@ -1,4 +1,4 @@ -let revision = 'V2.14'; +let revision = 'V2.22'; importScripts('https://storage.googleapis.com/workbox-cdn/releases/7.1.0/workbox-sw.js'); workbox.setConfig({ debug: false }); revision = (parseInt(revision) + 1).toString(); diff --git a/index.html b/index.html index 38428c1..4ec6325 100644 --- a/index.html +++ b/index.html @@ -351,7 +351,7 @@
- + diff --git a/sw.js b/sw.js index 8efb153..d7f3079 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -let revision = 'V2.14'; +let revision = 'V2.22'; importScripts('https://storage.googleapis.com/workbox-cdn/releases/7.1.0/workbox-sw.js'); workbox.setConfig({ debug: false }); revision = (parseInt(revision) + 1).toString();