@oppo-minigame/cli
Version:
Command line interface for rapid OPPO minigame development
1 lines • 4.13 kB
JavaScript
const _0xa1ba16=_0x22c0;(function(_0x9e5fc9,_0x5accff){const _0x459235=_0x22c0,_0x54338b=_0x9e5fc9();while(!![]){try{const _0x5d7f48=-parseInt(_0x459235(0x150))/0x1*(-parseInt(_0x459235(0x162))/0x2)+-parseInt(_0x459235(0x166))/0x3+parseInt(_0x459235(0x152))/0x4+parseInt(_0x459235(0x14d))/0x5*(parseInt(_0x459235(0x151))/0x6)+-parseInt(_0x459235(0x15a))/0x7*(parseInt(_0x459235(0x153))/0x8)+-parseInt(_0x459235(0x14f))/0x9*(parseInt(_0x459235(0x163))/0xa)+parseInt(_0x459235(0x167))/0xb*(-parseInt(_0x459235(0x14e))/0xc);if(_0x5d7f48===_0x5accff)break;else _0x54338b['push'](_0x54338b['shift']());}catch(_0x4da2fe){_0x54338b['push'](_0x54338b['shift']());}}}(_0xc9d3,0xec119));function _0x22c0(_0x366f52,_0xf8870a){const _0xc9d3c3=_0xc9d3();return _0x22c0=function(_0x22c0e9,_0x4e7f44){_0x22c0e9=_0x22c0e9-0x14b;let _0x399e54=_0xc9d3c3[_0x22c0e9];return _0x399e54;},_0x22c0(_0x366f52,_0xf8870a);}const LOG_TAG=_0xa1ba16(0x168);let cacheConfig,isInit=![];function log(_0x2332e1){const _0x3f28ab=_0xa1ba16;console[_0x3f28ab(0x164)]('['+LOG_TAG+']\x20'+_0x2332e1);}function logError(_0x243912){const _0x11aa3a=_0xa1ba16;console[_0x11aa3a(0x160)]('['+LOG_TAG+']\x20'+_0x243912);}function isCacheConfigValid(){const _0x4aa374=_0xa1ba16;return cacheConfig&&cacheConfig['cdn']&&typeof cacheConfig[_0x4aa374(0x165)]==='string';}const audioStreamCache={'init'(_0x2ead38){const _0x4f06da=_0xa1ba16;if(isInit||!_0x2ead38||typeof _0x2ead38!==_0x4f06da(0x15c))return;cacheConfig=_0x2ead38;const _0x1def59=new Map(),_0x2e5964=window['qg'][_0x4f06da(0x158)];window['qg'][_0x4f06da(0x158)]=()=>{const _0x44f1a4=_0x4f06da,_0x60b13c=_0x2e5964[_0x44f1a4(0x169)](window['qg']),_0x59f75a=Object['getOwnPropertyDescriptor'](_0x60b13c['__proto__'],'src'),_0x5e2fa3=_0x59f75a[_0x44f1a4(0x14b)],_0x348ba7=_0x59f75a[_0x44f1a4(0x16a)];return Object['defineProperty'](_0x60b13c,_0x44f1a4(0x15b),{'set'(_0x1f7892){const _0x30c149=_0x44f1a4;if(isCacheConfigValid()&&_0x1f7892[_0x30c149(0x155)](_0x30c149(0x16b))){if(_0x1def59[_0x30c149(0x156)](_0x1f7892))_0x5e2fa3[_0x30c149(0x169)](this,_0x1def59[_0x30c149(0x16a)](_0x1f7892)),log(_0x30c149(0x157)+_0x1def59['get'](_0x1f7892));else{const _0x365efb=cacheConfig['cdn'][_0x30c149(0x15d)](/[.*+?^${}()|[\]\\]/g,_0x30c149(0x159)),_0x1341bf=new RegExp(_0x30c149(0x16f)+_0x365efb+_0x30c149(0x16e)),_0x48c6ca=_0x1f7892[_0x30c149(0x15e)](_0x1341bf);let _0x4cac1e=_0x48c6ca?_0x48c6ca[0x1]:'';if(_0x4cac1e){_0x4cac1e=_0x4cac1e['replace'](/^\/+/,'');var _0xb0935e=window['qg'][_0x30c149(0x15f)]['USER_DATA_PATH']+'/'+_0x4cac1e;try{window['qg'][_0x30c149(0x16d)]()[_0x30c149(0x16c)](_0xb0935e),_0x1def59[_0x30c149(0x14b)](_0x1f7892,_0xb0935e),_0x5e2fa3[_0x30c149(0x169)](this,_0xb0935e),log('load\x20cache\x20success:\x20'+_0xb0935e);}catch{var _0x575392=_0xb0935e[_0x30c149(0x154)](0x0,_0xb0935e['lastIndexOf']('/'));try{window['qg'][_0x30c149(0x16d)]()[_0x30c149(0x16c)](_0x575392);}catch{window['qg'][_0x30c149(0x16d)]()[_0x30c149(0x14c)](_0x575392,!![]);}const _0x934ce5=this;window['qg']['downloadFile']({'url':_0x1f7892,'filePath':_0xb0935e,'success':function(){const _0x41942e=_0x30c149;log('downloadFile\x20success:\x20'+_0x1f7892),_0x5e2fa3[_0x41942e(0x169)](_0x934ce5,_0xb0935e),_0x1def59[_0x41942e(0x14b)](_0x1f7892,_0xb0935e);},'fail':function(_0x4a89d5){const _0x37fb9b=_0x30c149;logError(_0x37fb9b(0x161)+_0x1f7892),_0x5e2fa3[_0x37fb9b(0x169)](_0x934ce5,_0x1f7892);}});}}}}else _0x5e2fa3['call'](this,_0x1f7892);},'get'(){const _0x1a5e3d=_0x44f1a4;return _0x348ba7[_0x1a5e3d(0x169)](this);}}),_0x60b13c;},isInit=!![];}};module.exports=audioStreamCache;function _0xc9d3(){const _0x415deb=['log','cdn','510249ZQyLGl','11EOhXLN','audioStreamCache','call','get','http','accessSync','getFileSystemManager',')([^?#]*)','(?:','set','mkdirSync','75765dnyiOD','4167612zIojtc','9KPzUMJ','2eqFhii','534DmiSQg','5550996loEcbF','10391720VyIIYQ','substring','startsWith','has','load\x20cache\x20success:\x20','createInnerAudioContext','\x5c$&','7ujjOie','src','object','replace','match','env','error','download\x20failed:\x20','1645306OWfHhF','15983860yAheJd'];_0xc9d3=function(){return _0x415deb;};return _0xc9d3();}