/* Copyright 2023, Serverless Connect All applicable matarial structure are Intellectual property of Serverless Connect. https://www.serverlessconnect.com/ Updated - 19/Jul/2023 Latest Version - 1.23.7.2 */ var _0x479beb=_0x7eff;(function(_0x136001,_0x2f34e8){var _0x1f2377=_0x7eff;var _0x189a3c=_0x136001();while(!![]){try{var _0x3c68cb=parseInt(_0x1f2377(0x16a))/0x1+-parseInt(_0x1f2377(0x1d0))/0x2+parseInt(_0x1f2377(0x1b1))/0x3+parseInt(_0x1f2377(0x1d5))/0x4+-parseInt(_0x1f2377(0x1b5))/0x5*(-parseInt(_0x1f2377(0x18b))/0x6)+-parseInt(_0x1f2377(0x176))/0x7+-parseInt(_0x1f2377(0x1ec))/0x8;if(_0x3c68cb===_0x2f34e8){break;}else{_0x189a3c['push'](_0x189a3c['shift']());}}catch(_0x170eec){_0x189a3c['push'](_0x189a3c['shift']());}}}(_0x26b7,0x697a0));const cache=caches['default'];const spl='api/authenticate';const mimeURL='https://production.serverlessconnect.com/v1.2/file/mime-types';const cacheMapURL=_0x479beb(0x1a2)+spl;var css='style';var cloud={};const uikit=_0x479beb(0x1d8);const flid=_0x479beb(0x1c9);const return_as_file=[_0x479beb(0x1e1),_0x479beb(0x18f),_0x479beb(0x19c)];const return_base64=[];var cacheRequest=!![];var cachingMap={'routes':[{'route':'/nocache/*','ttl':0x0}],'extension':{'js':0x0,'css':0x0,'png':0xe10,'jpg':0xe10}};var fwwR=null;addEventListener('fetch',_0x28f321=>{var _0xc51245=_0x479beb;_0x28f321['respondWith'](handleRequest(_0x28f321['request'])['catch'](_0x23ba10=>new Response(_0xc51245(0x1b6),{'status':0x193})));});function _0x7eff(_0x5af2fb,_0x526f31){var _0x26b7d0=_0x26b7();_0x7eff=function(_0x7effac,_0x418e81){_0x7effac=_0x7effac-0x162;var _0x3e178e=_0x26b7d0[_0x7effac];return _0x3e178e;};return _0x7eff(_0x5af2fb,_0x526f31);}async function handleRequest(_0x422ed9){var _0x2b061f=_0x479beb;const {protocol:_0x1b1e5c,pathname:_0x1d197b,hostname:_0x2fbf56,searchParams:_0x5c7d87,search:_0x38974c}=new URL(_0x422ed9['url']);var _0xc7e5b3,_0x431bdf;try{if(_0x422ed9[_0x2b061f(0x1b8)]==_0x2b061f(0x17f)){var _0x3fc11e=await _0x422ed9[_0x2b061f(0x167)]();_0xc7e5b3=new URLSearchParams(_0x3fc11e);if(_0x422ed9[_0x2b061f(0x1c3)]['get'](_0x2b061f(0x173))[_0x2b061f(0x181)](_0x2b061f(0x1cd))){var _0x3fc11e={};for(const _0x4aa1dd of _0xc7e5b3[_0x2b061f(0x1c1)]()){_0x3fc11e[_0x4aa1dd[0x0]]=_0x4aa1dd[0x1];}}}}catch(_0x217349){}try{if(_0x1d197b[_0x2b061f(0x1c7)](_0x2b061f(0x199))){if(_0x2fbf56[_0x2b061f(0x182)](_0x2b061f(0x172))>-0x1){if(_0x422ed9[_0x2b061f(0x1b8)]=='POST'){if(await gb(_0x422ed9)==![]){var _0x4ad40e=await uiUx(_0xc7e5b3[_0x2b061f(0x193)]('token')?_0xc7e5b3[_0x2b061f(0x193)]('token'):'',_0x2fbf56,_0x422ed9);if(_0x4ad40e===![]){await cloudHosting[_0x2b061f(0x1e6)](_0x2b061f(0x165)+_0x422ed9[_0x2b061f(0x1c3)][_0x2b061f(0x193)](_0x2b061f(0x190)),await enct(JSON[_0x2b061f(0x164)](Object[_0x2b061f(0x1d2)](_0x422ed9[_0x2b061f(0x1c3)]))),{'expirationTtl':0x12c});return new Response(JSON['stringify']({'ok':![]}),{'headers':{'Content-Type':'application/json'},'status':0xc8});}else if(_0x4ad40e['ok']===!![]){let _0xfa71e2='$';var _0x4bb7fc=_0x2fbf56+'*'+_0x2fbf56['split']('.')[_0x2b061f(0x1c2)](0x1)[_0x2b061f(0x18e)]('.')+'*'+_0x422ed9[_0x2b061f(0x1c3)][_0x2b061f(0x193)](_0x2b061f(0x190))+'*'+_0x422ed9['headers'][_0x2b061f(0x193)](_0x2b061f(0x1be));const _0x4debc8=await dect(_0x4ad40e['s'],_0x4bb7fc);let _0x31bb42=_0x1d197b[_0x2b061f(0x18a)]('/admin/')[0x1];let _0x5db622=JSON[_0x2b061f(0x16b)](_0x4ad40e['r']);fwwR=JSON[_0x2b061f(0x16b)](await dect(_0x4ad40e['f'],_0x4bb7fc));if(css==_0x2fbf56){css='/';_0xfa71e2=css;}if(!_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c))){_0xc7e5b3[_0x2b061f(0x194)]('path',_0xfa71e2);}else{_0xc7e5b3[_0x2b061f(0x194)]('path',_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c))[_0x2b061f(0x1c7)]('~')?_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c)):_0xfa71e2+_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c)));}if(!_0xc7e5b3['get'](_0x2b061f(0x1b4))){_0xc7e5b3[_0x2b061f(0x194)](_0x2b061f(0x1b4),_0xfa71e2);}else{_0xc7e5b3['set'](_0x2b061f(0x1b4),_0xc7e5b3['get'](_0x2b061f(0x1b4))['startsWith']('~')?_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x1b4)):_0xfa71e2+_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x1b4)));}_0x31bb42=_0x31bb42==_0x2b061f(0x1bb)?_0x31bb42:await dect(decodeURIComponent(_0x31bb42),_0x4bb7fc);switch(_0x31bb42){case await dect(_0x5db622[0x0],_0x4bb7fc):return new Response(JSON['stringify']({'ok':!![],'keywords':_0x5db622}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});break;case await dect(_0x5db622[0x1],_0x4bb7fc):let _0x51bb3a=await ik(_0xc7e5b3['get'](_0x2b061f(0x1b4))?_0xc7e5b3['get'](_0x2b061f(0x1b4)):'');return new Response(JSON[_0x2b061f(0x164)]({'ok':!![],'list':_0x51bb3a,'status':_0x2b061f(0x1a1)}),{'headers':{'Content-Type':'application/json'},'status':0xc8});break;case await dect(_0x5db622[0x2],_0x4bb7fc):if(_0xc7e5b3['get'](_0x2b061f(0x18c))){var _0x5277b0='';var _0x1558e7=_0x2b061f(0x1f1);try{if(_0xc7e5b3['get'](_0x2b061f(0x18c))['indexOf']('.')>-0x1){_0x5277b0=_0xc7e5b3['get'](_0x2b061f(0x18c))['split']('.');_0x5277b0=_0x5277b0['reverse']()[0x0];}}catch(_0x3c8fce){}if(_0x5277b0==''||_0x5277b0['length']>0x5){}else{var _0x1558e7=JSON[_0x2b061f(0x16b)](await cloudHosting[_0x2b061f(0x193)](_0x2b061f(0x1c5),{'cacheTtl':0xe10}));_0x1558e7=_0x1558e7[_0x5277b0];}var _0x566fd6={'metadata':{'since':Math[_0x2b061f(0x17c)](new Date()[_0x2b061f(0x1bf)]()),'extension':_0x5277b0,'mime':_0x1558e7,'size':_0xc7e5b3[_0x2b061f(0x193)]('file')[_0x2b061f(0x1ac)],'base64':!![]}};try{if(cloud['xs']['startsWith']('t')){_0x566fd6[_0x2b061f(0x1a5)]=cloud[_0x2b061f(0x169)];}}catch(_0x2f2f20){}await cloudHosting[_0x2b061f(0x1e6)](_0xc7e5b3[_0x2b061f(0x193)]('path'),await enct(_0xc7e5b3['get'](_0x2b061f(0x1dd))),_0x566fd6);return new Response(JSON['stringify']({'ok':!![],'status':_0x2b061f(0x19f)}),{'headers':{'Content-Type':'application/json'},'status':0xc8});}else{return new Response(JSON[_0x2b061f(0x164)]({'ok':![],'status':_0x2b061f(0x198)}),{'headers':{'Content-Type':'application/json'},'status':0xc8});}break;case await dect(_0x5db622[0x3],_0x4bb7fc):var {value:_0x3d66b0,metadata:_0xa6c92e}=await cloudHosting[_0x2b061f(0x1e0)](decodeURIComponent(_0xc7e5b3['get'](_0x2b061f(0x18c))));var _0x444b7d=!![];_0xa6c92e[_0x2b061f(0x1a0)]=_0x444b7d;return new Response(JSON['stringify']({'ok':!![],'metadata':_0xa6c92e,'status':_0x2b061f(0x197)}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});break;case await dect(_0x5db622[0x4],_0x4bb7fc):if(_0xc7e5b3['get'](_0x2b061f(0x18c))){var _0x5277b0=_0x2b061f(0x191);var _0x1558e7='text/html';try{if(_0xc7e5b3['get'](_0x2b061f(0x18c))['indexOf']('.')>-0x1){_0x5277b0=_0xc7e5b3[_0x2b061f(0x193)]('path')[_0x2b061f(0x18a)]('.');_0x5277b0=_0x5277b0[_0x2b061f(0x1da)]()[0x0];}}catch(_0x164eb3){}if(_0x5277b0==''||_0x5277b0[_0x2b061f(0x1ac)]>0x5){}else{var _0x1558e7=JSON[_0x2b061f(0x16b)](await cloudHosting['get'](_0x2b061f(0x1c5),{'cacheTtl':0xe10}));_0x1558e7=_0x1558e7[_0x5277b0];}var _0x566fd6={'metadata':{'since':Math[_0x2b061f(0x17c)](new Date()[_0x2b061f(0x1bf)]()),'extension':_0x5277b0,'mime':_0x1558e7,'size':0x1,'base64':![]}};try{if(cloud['xs'][_0x2b061f(0x1c7)]('t')){_0x566fd6[_0x2b061f(0x1a5)]=cloud[_0x2b061f(0x169)];}}catch(_0x4b0f74){}await cloudHosting['put'](_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c)),await enct('\x20'),_0x566fd6);return new Response(JSON[_0x2b061f(0x164)]({'ok':!![],'status':'Uploaded'}),{'headers':{'Content-Type':'application/json'},'status':0xc8});}else{return new Response(JSON['stringify']({'ok':![],'status':'Failed'}),{'headers':{'Content-Type':'application/json'},'status':0xc8});}break;case await dect(_0x5db622[0x5],_0x4bb7fc):try{await cloudHosting[_0x2b061f(0x1ba)](decodeURIComponent(_0xc7e5b3['get']('path')));return new Response(JSON[_0x2b061f(0x164)]({'ok':!![],'status':_0x2b061f(0x183)}),{'headers':{'Content-Type':'application/json'},'status':0xc8});}catch(_0x3a0ae2){return new Response(JSON[_0x2b061f(0x164)]({'ok':![],'status':_0x2b061f(0x198)}),{'headers':{'Content-Type':'application/json'},'status':0xc8});}break;case await dect(_0x5db622[0x6],_0x4bb7fc):var _0x3d66b0=await dect(await cloudHosting[_0x2b061f(0x193)](decodeURIComponent(_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c)))));return new Response(JSON[_0x2b061f(0x164)]({'ok':!![],'value':_0x3d66b0,'status':_0x2b061f(0x197)}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});break;case await dect(_0x5db622[0x7],_0x4bb7fc):if(_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c))){var _0x5277b0='js';var _0x1558e7='application/javascript';try{if(_0xc7e5b3['get'](_0x2b061f(0x18c))[_0x2b061f(0x182)]('.')>-0x1){_0x5277b0=_0xc7e5b3['get'](_0x2b061f(0x18c))['split']('.');_0x5277b0=_0x5277b0[_0x2b061f(0x1da)]()[0x0];}}catch(_0x3e83ba){}if(_0x5277b0==''||_0x5277b0[_0x2b061f(0x1ac)]>0x5){}else{var _0x1558e7=JSON['parse'](await cloudHosting[_0x2b061f(0x193)](_0x2b061f(0x1c5),{'cacheTtl':0xe10}));_0x1558e7=_0x1558e7[_0x5277b0];}var _0x566fd6={'metadata':{'since':Math['round'](new Date()['getTime']()),'extension':_0x5277b0,'mime':_0x1558e7,'size':0x1,'base64':![],'func':!![]}};try{if(cloud['xs'][_0x2b061f(0x1c7)]('t')){_0x566fd6[_0x2b061f(0x1a5)]=cloud['meta'];}}catch(_0x225c79){}await cloudHosting[_0x2b061f(0x1e6)](_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c)),await enct('\x20'),_0x566fd6);return new Response(JSON[_0x2b061f(0x164)]({'ok':!![],'status':'Uploaded'}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});}else{return new Response(JSON[_0x2b061f(0x164)]({'ok':![],'status':_0x2b061f(0x198)}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});}break;case await dect(_0x5db622[0x8],_0x4bb7fc):if(_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c))){var _0x5277b0='';var _0x1558e7=_0x2b061f(0x1f1);try{if(_0xc7e5b3[_0x2b061f(0x193)]('path')['indexOf']('.')>-0x1){_0x5277b0=_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c))[_0x2b061f(0x18a)]('.');_0x5277b0=_0x5277b0['reverse']()[0x0];}}catch(_0x2eb620){}if(_0x5277b0==''||_0x5277b0[_0x2b061f(0x1ac)]>0x5){}else{var _0x1558e7=JSON[_0x2b061f(0x16b)](await cloudHosting[_0x2b061f(0x193)](_0x2b061f(0x1c5),{'cacheTtl':0xe10}));_0x1558e7=_0x1558e7[_0x5277b0];}var _0x24958e=await cloudHosting[_0x2b061f(0x1e0)](_0xc7e5b3[_0x2b061f(0x193)]('path'));var _0x566fd6={};if(_0x24958e['metadata']){_0x566fd6['metadata']=_0x24958e[_0x2b061f(0x1e5)];}else{_0x566fd6={'metadata':{'since':Math[_0x2b061f(0x17c)](new Date()['getTime']()),'extension':_0x5277b0,'mime':_0x1558e7,'size':_0xc7e5b3[_0x2b061f(0x193)]('file')[_0x2b061f(0x1ac)],'base64':![],'type':_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x1a8))}};}try{if(cloud['xs'][_0x2b061f(0x1c7)]('t')){_0x566fd6[_0x2b061f(0x1a5)]=cloud[_0x2b061f(0x169)];}}catch(_0x19e8e9){}await cloudHosting['put'](_0xc7e5b3[_0x2b061f(0x193)]('path'),await enct(_0xc7e5b3['get'](_0x2b061f(0x1dd))),_0x566fd6);return new Response(JSON[_0x2b061f(0x164)]({'ok':!![],'status':_0x2b061f(0x19f)}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});}else{return new Response(JSON['stringify']({'ok':![],'status':'Failed'}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});}break;case await dect(_0x5db622[0x9],_0x4bb7fc):if(_0xc7e5b3[_0x2b061f(0x193)]('path')){var _0x24958e=await cloudHosting['getWithMetadata'](_0xc7e5b3[_0x2b061f(0x193)]('path'));try{if(!_0x24958e['metadata']){_0x24958e[_0x2b061f(0x1e5)]={};}}catch(_0x2ee125){}_0x24958e[_0x2b061f(0x1e5)][_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x16f))]=_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x1a4));var _0x566fd6={'metadata':_0x24958e[_0x2b061f(0x1e5)]};try{if(cloud['xs'][_0x2b061f(0x1c7)]('t')){_0x566fd6[_0x2b061f(0x1a5)]=cloud[_0x2b061f(0x169)];}}catch(_0x46b3c7){}await cloudHosting[_0x2b061f(0x1e6)](_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c)),_0x24958e[_0x2b061f(0x1a4)],_0x566fd6);return new Response(JSON[_0x2b061f(0x164)]({'ok':!![],'status':_0x2b061f(0x1e4)}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});}else{return new Response(JSON[_0x2b061f(0x164)]({'ok':![],'status':_0x2b061f(0x198)}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});}break;case await dect(_0x5db622[0xa],_0x4bb7fc):if(_0xc7e5b3[_0x2b061f(0x193)](_0x2b061f(0x18c))){var _0x24958e=await cloudHosting['getWithMetadata'](_0xc7e5b3[_0x2b061f(0x193)]('path'));try{if(!_0x24958e[_0x2b061f(0x1e5)]){_0x24958e[_0x2b061f(0x1e5)]={};}}catch(_0x376226){}try{delete _0x24958e['metadata'][_0xc7e5b3['get']('key')];}catch(_0x57a056){return new Response(JSON[_0x2b061f(0x164)]({'ok':![],'status':'Failed'}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});}await cloudHosting[_0x2b061f(0x1e6)](_0xc7e5b3[_0x2b061f(0x193)]('path'),_0x24958e[_0x2b061f(0x1a4)],{'metadata':_0x24958e['metadata']});return new Response(JSON[_0x2b061f(0x164)]({'ok':!![],'status':_0x2b061f(0x183)}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});}else{return new Response(JSON[_0x2b061f(0x164)]({'ok':![],'status':_0x2b061f(0x198)}),{'headers':{'Content-Type':_0x2b061f(0x16d)},'status':0xc8});}break;}}else{return await requestDeny(_0x1d197b);}}else{return await banned(_0x1d197b);}}else{return await requestDeny(_0x1d197b);}}else{return await requestDeny(_0x1d197b);}}else if(_0x1d197b==_0x2b061f(0x1a9)||_0x1d197b['endsWith'](_0x2b061f(0x1a9))&&_0x5c7d87[_0x2b061f(0x193)](_0x2b061f(0x1dc))){if(_0x2fbf56['indexOf'](_0x2b061f(0x172))>-0x1){await scf(_0x422ed9);try{var _0x270c6f=await cloudHosting[_0x2b061f(0x193)](_0x2b061f(0x1f0),{'cacheTtl':0xe10});if(!_0x270c6f){await cloudHosting[_0x2b061f(0x1e6)](_0x2b061f(0x1f0),await enct(JSON[_0x2b061f(0x164)](cachingMap)));}}catch(_0x12df47){console[_0x2b061f(0x1bc)](_0x12df47);return new Response(_0x2b061f(0x1df),{'headers':{'Content-Type':'text/html'},'status':0xc8});}try{var _0x1558e7=JSON[_0x2b061f(0x16b)](await cloudHosting[_0x2b061f(0x193)]('~system-mime-types',{'cacheTtl':0xe10}));if(!_0x1558e7){var _0x1cc414=await fetch(mimeURL,{'cf':{'cacheTtl':0xe10,'cacheEverything':!![]}});_0x1cc414=await gatherResponse(_0x1cc414);await cloudHosting[_0x2b061f(0x1e6)](_0x2b061f(0x1c5),_0x1cc414);}}catch(_0x272e5b){console[_0x2b061f(0x1bc)](_0x272e5b);}return new Response(html,{'headers':{'Content-Type':_0x2b061f(0x1f1)},'status':0xc8});}else{return await requestDeny(_0x1d197b);}}else if(_0x1d197b[_0x2b061f(0x1c7)]('/')&&!_0x1d197b[_0x2b061f(0x1c7)]('/~')){await scf(_0x422ed9);if(_0x1d197b=='/'){return await atc(_0x422ed9,await gf(_0x2b061f(0x196),_0x1d197b,_0x2fbf56,_0x422ed9));}else{var _0x291138=await cloudHosting[_0x2b061f(0x193)](decodeURIComponent(_0x1d197b));if(_0x291138){return await gf(decodeURIComponent(_0x1d197b),_0x1d197b,_0x2fbf56,_0x422ed9);}else{return await requestDeny(_0x1d197b);}}}else{return await requestDeny(_0x1d197b);}}catch(_0x401a9c){console[_0x2b061f(0x1bc)](_0x401a9c);return await requestDeny(_0x1d197b);}}async function requestDeny(_0x55fe04){var _0xa91106=_0x479beb;return new Response('
\x20File\x20not\x20found.