| 1 |
- const _0x50e3=['readConfigSets','readProjectProfile','generateID','__importDefault','Config\x20file\x20error!\x20(readServiceParam\x20=>\x20readConfigSet)','appConfigMaps','readServiceList','service_id','config_id','./editor','find','settings/service.json','filter','join','readGlobalProfile','Config\x20file\x20error!\x20(wirteEnableService\x20=>\x20readConfigSet)','cid','__esModule','getProjectPath','appid','2.0.0','Config\x20file\x20error!\x20(readEnableServices\x20=>\x20readConfigSet)','writeProjectProfile','length','compareVersion','getLang','existsSync','findIndex','./util','enable','splice','fs-extra','Config\x20file\x20error!\x20(writeServiceParam\x20=>\x20readConfigSet)','lang','filter.','max','services','All','game','writeGlobalProfile','game.app_id','generateConfigSet','app_id','push','name','config_remarks','min','Default','default','use\x20strict','configs'];(function(_0x147494,_0x4dc48a){const _0x50e304=function(_0x2b313d){while(--_0x2b313d){_0x147494['push'](_0x147494['shift']());}};_0x50e304(++_0x4dc48a);}(_0x50e3,0x186));const _0x2b31=function(_0x147494,_0x4dc48a){_0x147494=_0x147494-0x10c;let _0x50e304=_0x50e3[_0x147494];return _0x50e304;};const _0x5b6594=_0x2b31,_0x476f=[_0x5b6594(0x127),'Config\x20file\x20error!\x20(copyConfigSet\x20=>\x20configs.find)',_0x5b6594(0x128),_0x5b6594(0x138),'config_name',_0x5b6594(0x124),_0x5b6594(0x135),_0x5b6594(0x131),_0x5b6594(0x13b),_0x5b6594(0x12e),_0x5b6594(0x12f),_0x5b6594(0x13d),_0x5b6594(0x129),_0x5b6594(0x125),'path',_0x5b6594(0x132),_0x5b6594(0x134),_0x5b6594(0x11d),'cscv','map','writeConfigSet',_0x5b6594(0x133),'config_remarks','readJsonSync',_0x5b6594(0x11b),_0x5b6594(0x112),_0x5b6594(0x111),_0x5b6594(0x139),'param','readGlobalProfile',_0x5b6594(0x10f),_0x5b6594(0x130),_0x5b6594(0x13c),_0x5b6594(0x113),_0x5b6594(0x12a),_0x5b6594(0x11f),_0x5b6594(0x137),'readConfigSets','Config\x20file\x20error!\x20(copyConfigSet\x20=>\x20appConfigMaps.find)',_0x5b6594(0x10c),_0x5b6594(0x115),'UNKNOW',_0x5b6594(0x126),_0x5b6594(0x120),'forEach','push',_0x5b6594(0x123),'readConfigSet',_0x5b6594(0x10e),'Config\x20file\x20error!\x20(deleteConfigSet\x20=>\x20configs.findIndex)',_0x5b6594(0x110),'groups',_0x5b6594(0x122),_0x5b6594(0x114),_0x5b6594(0x136),'Config\x20file\x20error!\x20(wirteEnableService\x20=>\x20config.find)'];(function(_0xb15678,_0x27e789){const _0x404816=function(_0x3c32a1){while(--_0x3c32a1){_0xb15678['push'](_0xb15678['shift']());}};_0x404816(++_0x27e789);}(_0x476f,0x157));const _0x1e22=function(_0x56082e,_0x5ac87e){_0x56082e=_0x56082e-0x1cb;let _0x1e5fec=_0x476f[_0x56082e];return _0x1e5fec;},_0x1b8dc5=_0x1e22;_0x5b6594(0x11c);var __importDefault=this&&this[_0x5b6594(0x121)]||function(_0x3c5293){const _0x212716=_0x1e22;return _0x3c5293&&_0x3c5293[_0x212716(0x1ce)]?_0x3c5293:{'default':_0x3c5293};};Object['defineProperty'](exports,_0x1b8dc5(0x1ce),{'value':!0x0});const editor_1=__importDefault(require(_0x1b8dc5(0x1fc))),util_1=__importDefault(require(_0x5b6594(0x13a))),path_1=require(_0x1b8dc5(0x1d2)),fs_extra_1=require(_0x1b8dc5(0x1cf));let generateConfigItem=(_0x5a679b,_0x108433,_0x30e756=[])=>({'app_id':_0x5a679b,'config_id':_0x108433[_0x1b8dc5(0x1ee)],'config_name':_0x108433[_0x1b8dc5(0x200)],'config_remarks':_0x108433[_0x1b8dc5(0x1da)],'services':_0x30e756}),getConfigSetByConfig=_0x47887d=>({'config_id':_0x47887d[_0x1b8dc5(0x1ee)],'config_name':_0x47887d[_0x1b8dc5(0x200)],'config_remarks':_0x47887d[_0x1b8dc5(0x1da)]});exports[_0x1b8dc5(0x1dc)]={'updateConfigFile':async function(){return new Promise(async(_0x436e01,_0x337b72)=>{const _0x136211=_0x2b31,_0x34b1f2=_0x1e22;let _0x5706a5=async _0x5d2a2e=>{const _0x505ba5=_0x2b31,_0x4d3df8=_0x1e22;_0x5d2a2e[_0x4d3df8(0x1d7)](_0x22c0f7=>{const _0x5c6a97=_0x2b31,_0x595eb4=_0x4d3df8;if(void 0x0!==_0x22c0f7[_0x595eb4(0x1ee)])return;let _0x3a162c=this[_0x595eb4(0x1f9)](_0x5c6a97(0x11a));_0x22c0f7[_0x5c6a97(0x126)]=_0x3a162c[_0x595eb4(0x1ee)],_0x22c0f7[_0x595eb4(0x200)]=_0x3a162c[_0x595eb4(0x200)],_0x22c0f7[_0x595eb4(0x1da)]=_0x3a162c[_0x595eb4(0x1da)];}),await editor_1[_0x505ba5(0x11b)][_0x4d3df8(0x1d4)](_0x4d3df8(0x1d5),_0x5d2a2e);},_0xd48145=async _0xcd44c2=>{const _0x2dd3b9=_0x2b31,_0x34630f=_0x1e22;if(null!=_0xcd44c2){if(void 0x0!==_0xcd44c2[_0x2dd3b9(0x11d)]&&_0xcd44c2[_0x2dd3b9(0x11d)]instanceof Array&&await _0x5706a5(_0xcd44c2[_0x34630f(0x1d5)]),void 0x0!==_0xcd44c2[_0x34630f(0x1de)]){let _0x16007e=_0xcd44c2[_0x34630f(0x1de)];this['writeBindGame']({'app_id':_0x16007e[_0x34630f(0x1cb)]||_0x16007e[_0x34630f(0x1ec)]||_0x34630f(0x1ed),'name':_0x16007e[_0x2dd3b9(0x117)],'c_id':_0x16007e[_0x34630f(0x1cd)]||'0'});}let _0x5c4f27=await editor_1[_0x34630f(0x1dc)][_0x34630f(0x1e7)](_0x34630f(0x1e5)),_0x15b650=await this[_0x34630f(0x1e9)](_0x5c4f27);_0x15b650['length']>0x0&&await editor_1['default'][_0x34630f(0x1d4)]('appConfigMaps',[{'app_id':_0x5c4f27,'config_id':_0x15b650[0x0][_0x34630f(0x1ee)]}]),await editor_1[_0x2dd3b9(0x11b)][_0x34630f(0x1d4)](_0x34630f(0x1d6),_0x34630f(0x1d3));}},_0x215e59=await editor_1['default'][_0x34b1f2(0x1e7)](_0x34b1f2(0x1d6));if(void 0x0!==_0x215e59&&0x0===util_1[_0x34b1f2(0x1dc)][_0x34b1f2(0x1fa)](_0x215e59,_0x34b1f2(0x1d3)))return _0x436e01();let _0x5be79b=path_1[_0x136211(0x12b)](editor_1[_0x34b1f2(0x1dc)][_0x34b1f2(0x1e3)](),_0x34b1f2(0x1d0));if(fs_extra_1[_0x34b1f2(0x1ff)](_0x5be79b)&&(void 0x0===await editor_1[_0x34b1f2(0x1dc)][_0x34b1f2(0x1e7)](_0x34b1f2(0x1de))||null===await editor_1[_0x34b1f2(0x1dc)][_0x34b1f2(0x1e7)](_0x136211(0x111))))try{_0xd48145(fs_extra_1[_0x34b1f2(0x1db)](_0x5be79b));}catch(_0x14e062){return _0x436e01();}_0x436e01();});},'generateConfigSet':function(_0x5ee24d,_0x4754e8=''){const _0x33fb75=_0x1b8dc5;return{'config_id':util_1[_0x33fb75(0x1dc)][_0x33fb75(0x1ef)](_0x5ee24d),'config_name':_0x5ee24d,'config_remarks':_0x4754e8};},'copyConfigSet':async function(_0x28cb39,_0x477e81='',_0x210e8d=''){return new Promise(async(_0x4079fd,_0x3c947)=>{const _0x1ed683=_0x2b31,_0x5ad2e2=_0x1e22;if(''===_0x210e8d&&(_0x210e8d=await editor_1[_0x5ad2e2(0x1dc)][_0x5ad2e2(0x1e7)](_0x5ad2e2(0x1e5))),''===_0x477e81){let _0x453ebd=(await editor_1[_0x5ad2e2(0x1dc)][_0x5ad2e2(0x1e7)](_0x5ad2e2(0x1f2))||[])[_0x5ad2e2(0x1fe)](_0x2b42db=>_0x2b42db[_0x5ad2e2(0x1ec)]===_0x210e8d);if(void 0x0===_0x453ebd)return _0x3c947(_0x5ad2e2(0x1ea));_0x477e81=_0x453ebd[_0x1ed683(0x126)];}let _0x92abc9=await editor_1[_0x5ad2e2(0x1dc)][_0x1ed683(0x11f)]('configs')||[],_0x4da123=_0x92abc9[_0x5ad2e2(0x1fe)](_0x1afc03=>_0x1afc03[_0x5ad2e2(0x1ec)]==_0x210e8d&&_0x1afc03[_0x5ad2e2(0x1ee)]===_0x477e81);if(void 0x0===_0x4da123)return _0x3c947(_0x5ad2e2(0x1fd));let _0x5c16cc=generateConfigItem(_0x210e8d,_0x28cb39,_0x4da123[_0x5ad2e2(0x1e2)]||[]);_0x92abc9[_0x5ad2e2(0x1f1)](_0x5c16cc),await editor_1[_0x5ad2e2(0x1dc)][_0x5ad2e2(0x1d4)](_0x5ad2e2(0x1d5),_0x92abc9),_0x4079fd();});},'deleteConfigSet':async function(_0xfb6352,_0x20cefb=''){return new Promise(async(_0x241c1d,_0x4922b5)=>{const _0x3f2a31=_0x2b31,_0x1516d2=_0x1e22;''===_0x20cefb&&(_0x20cefb=await editor_1[_0x1516d2(0x1dc)]['readProjectProfile'](_0x1516d2(0x1e5)));let _0x3b4a1d=await editor_1[_0x3f2a31(0x11b)][_0x3f2a31(0x11f)]('configs');_0x3b4a1d||(_0x3b4a1d=[]);let _0x6369f9=_0x3b4a1d[_0x1516d2(0x1df)](_0x207945=>_0x207945[_0x1516d2(0x1ec)]==_0x20cefb&&_0x207945[_0x1516d2(0x1ee)]===_0xfb6352);if(_0x6369f9<0x0)return _0x4922b5(_0x1516d2(0x1f5));_0x3b4a1d[_0x1516d2(0x1e4)](_0x6369f9,0x1),await editor_1[_0x1516d2(0x1dc)][_0x3f2a31(0x134)](_0x1516d2(0x1d5),_0x3b4a1d);let _0x28e717=_0x3b4a1d[_0x1516d2(0x1e6)](_0x18083a=>_0x18083a['app_id']===_0x20cefb);_0x241c1d(_0x28e717[Math[_0x1516d2(0x1f4)](Math[_0x3f2a31(0x119)](_0x28e717[_0x3f2a31(0x135)]-0x1,_0x6369f9-0x1),0x0)]);});},'readServiceList':async function(){const _0x15e941=_0x5b6594,_0x1861f2=_0x1b8dc5;return await editor_1[_0x1861f2(0x1dc)][_0x15e941(0x12c)](_0x15e941(0x10f))||[];},'writeServiceList':async function(_0x2ab87a){const _0xaecb43=_0x1b8dc5;return await editor_1['default'][_0xaecb43(0x1dd)](_0xaecb43(0x1eb),editor_1[_0xaecb43(0x1dc)][_0xaecb43(0x1e8)]()),await editor_1[_0xaecb43(0x1dc)]['writeGlobalProfile'](_0xaecb43(0x1e2),_0x2ab87a);},'readServiceGroupList':async function(){const _0x31928c=_0x1b8dc5;return await editor_1[_0x31928c(0x1dc)][_0x31928c(0x1e1)](_0x31928c(0x1f7))||[];},'writeServiceGroupList':async function(_0x441584){const _0x2d3e1e=_0x5b6594,_0x593a03=_0x1b8dc5;return await editor_1['default'][_0x2d3e1e(0x112)](_0x593a03(0x1eb),editor_1[_0x2d3e1e(0x11b)][_0x593a03(0x1e8)]()),await editor_1[_0x593a03(0x1dc)][_0x593a03(0x1dd)](_0x593a03(0x1f7),_0x441584);},'readServiceFilter':async function(){const _0x27324b=_0x5b6594,_0x55cb7a=_0x1b8dc5;return await editor_1[_0x55cb7a(0x1dc)][_0x55cb7a(0x1e1)](_0x27324b(0x10d)+editor_1[_0x27324b(0x11b)][_0x55cb7a(0x1e8)]())||{'status':_0x55cb7a(0x1f6),'platforms':[_0x55cb7a(0x1f6)]};},'writeServiceFilter':async function(_0x390f53){const _0x344864=_0x5b6594,_0x965687=_0x1b8dc5;return await editor_1[_0x965687(0x1dc)][_0x344864(0x112)]('filter.'+editor_1[_0x965687(0x1dc)][_0x965687(0x1e8)](),_0x390f53);},'readBindGame':async function(){const _0x40d39c=_0x5b6594,_0x2c7b5c=_0x1b8dc5;return await editor_1[_0x2c7b5c(0x1dc)][_0x40d39c(0x11f)](_0x2c7b5c(0x1de));},'writeBindGame':async function(_0x47d71a){return new Promise(async(_0xa053f2,_0x117044)=>{const _0x52c66a=_0x2b31,_0x416236=_0x1e22;await editor_1[_0x416236(0x1dc)][_0x416236(0x1d4)](_0x416236(0x1de),_0x47d71a);let _0x41d1b9=await this[_0x416236(0x1f3)](_0x47d71a[_0x416236(0x1ec)]);if(void 0x0===_0x41d1b9){let _0x39b73f=await this[_0x52c66a(0x11e)](_0x47d71a[_0x416236(0x1ec)]);_0x39b73f[_0x416236(0x202)]>0x0&&(_0x41d1b9=_0x39b73f[0x0]);}void 0x0===_0x41d1b9&&(_0x41d1b9=this[_0x416236(0x1f9)]('Default')),await this[_0x416236(0x1d8)](_0x41d1b9,_0x47d71a[_0x416236(0x1ec)]),_0xa053f2();});},'readConfigSet':async function(_0x9f93ad=''){return new Promise(async(_0x20c9b6,_0x27697d)=>{const _0x1857a5=_0x2b31,_0x565caf=_0x1e22;''===_0x9f93ad&&(_0x9f93ad=await editor_1[_0x565caf(0x1dc)][_0x1857a5(0x11f)](_0x565caf(0x1e5)));let _0x24cedb,_0xca40ba=await editor_1[_0x565caf(0x1dc)][_0x565caf(0x1e7)](_0x565caf(0x1f2))||[];do{let _0x27c7cf=_0xca40ba[_0x1857a5(0x128)](_0x219e5e=>_0x219e5e[_0x565caf(0x1ec)]===_0x9f93ad),_0x5d3395=await editor_1[_0x1857a5(0x11b)][_0x1857a5(0x11f)](_0x565caf(0x1d5));if(void 0x0===_0x27c7cf||null===_0x5d3395)break;let _0xcebf7d=_0x5d3395['find'](_0x30ce98=>_0x30ce98[_0x565caf(0x1ec)]==_0x9f93ad&&_0x30ce98['config_id']==(null==_0x27c7cf?void 0x0:_0x27c7cf[_0x565caf(0x1ee)]));if(void 0x0===_0xcebf7d)break;_0x24cedb=getConfigSetByConfig(_0xcebf7d);}while(0x0);_0x20c9b6(_0x24cedb);});},'writeConfigSet':async function(_0x4c10d6,_0xb5cbc7=''){return new Promise(async(_0x3b4125,_0x18b398)=>{const _0x5dd789=_0x2b31,_0x1dab54=_0x1e22;''===_0xb5cbc7&&(_0xb5cbc7=await editor_1[_0x1dab54(0x1dc)][_0x1dab54(0x1e7)](_0x1dab54(0x1e5)));let _0x5cc5a2=await editor_1[_0x1dab54(0x1dc)][_0x1dab54(0x1e7)](_0x5dd789(0x123))||[],_0x3ba0d4=_0x5cc5a2[_0x1dab54(0x1fe)](_0x34ab19=>_0x34ab19[_0x1dab54(0x1ec)]===_0xb5cbc7);void 0x0===_0x3ba0d4?(_0x3ba0d4={'app_id':_0xb5cbc7,'config_id':_0x4c10d6[_0x1dab54(0x1ee)]},_0x5cc5a2[_0x1dab54(0x1f1)](_0x3ba0d4)):_0x3ba0d4[_0x1dab54(0x1ee)]=_0x4c10d6[_0x1dab54(0x1ee)],await editor_1[_0x5dd789(0x11b)][_0x5dd789(0x134)](_0x1dab54(0x1f2),_0x5cc5a2);let _0x4d60da=await editor_1[_0x5dd789(0x11b)][_0x5dd789(0x11f)](_0x1dab54(0x1d5));_0x4d60da||(_0x4d60da=[]);let _0x52a99c=_0x4d60da[_0x1dab54(0x1fe)](_0x1bb3ce=>_0x1bb3ce[_0x1dab54(0x1ec)]==_0xb5cbc7&&_0x1bb3ce[_0x1dab54(0x1ee)]===_0x4c10d6[_0x1dab54(0x1ee)]);void 0x0===_0x52a99c?_0x4d60da[_0x1dab54(0x1f1)](generateConfigItem(_0xb5cbc7,_0x4c10d6)):(_0x52a99c[_0x1dab54(0x1ee)]=_0x4c10d6[_0x1dab54(0x1ee)],_0x52a99c[_0x1dab54(0x200)]=_0x4c10d6[_0x1dab54(0x200)],_0x52a99c[_0x1dab54(0x1da)]=_0x4c10d6[_0x5dd789(0x118)]),await editor_1[_0x1dab54(0x1dc)][_0x1dab54(0x1d4)](_0x1dab54(0x1d5),_0x4d60da),_0x3b4125();});},'readConfigSets':async function(_0x2a4c94=''){return new Promise(async(_0x3f4b61,_0x126e40)=>{const _0x50644e=_0x2b31,_0x48e98b=_0x1e22;''===_0x2a4c94&&(_0x2a4c94=await editor_1[_0x48e98b(0x1dc)][_0x48e98b(0x1e7)](_0x48e98b(0x1e5)));let _0x226920=await editor_1[_0x50644e(0x11b)][_0x50644e(0x11f)](_0x48e98b(0x1d5));_0x226920||(_0x226920=[]);let _0xf9a984=[];_0x226920[_0x48e98b(0x1e6)](_0x30e09c=>_0x30e09c[_0x48e98b(0x1ec)]===_0x2a4c94)[_0x48e98b(0x1f0)](_0x35b9fc=>_0x35b9fc[_0x48e98b(0x1ee)]&&_0xf9a984[_0x48e98b(0x1f1)](getConfigSetByConfig(_0x35b9fc))),_0x3f4b61(_0xf9a984);});},'readEnableServices':async function(_0xaf2eca=''){return new Promise(async(_0x569263,_0x273e1b)=>{const _0xda70e5=_0x2b31,_0x202643=_0x1e22;let _0x59dc8d=await editor_1[_0x202643(0x1dc)][_0x202643(0x1e7)](_0x202643(0x1e5));if(''===_0xaf2eca){let _0xd58f3c=await this[_0x202643(0x1f3)]();if(void 0x0===_0xd58f3c)return _0x273e1b(_0x202643(0x1d9));_0xaf2eca=_0xd58f3c[_0x202643(0x1ee)];}let _0x4e4bdd=await editor_1[_0x202643(0x1dc)][_0xda70e5(0x11f)](_0x202643(0x1d5));_0x4e4bdd||(_0x4e4bdd=[]);let _0x47f569=[];do{let _0x4c6d35=_0x4e4bdd[_0x202643(0x1fe)](_0x2cb7d5=>_0x2cb7d5[_0x202643(0x1ec)]==_0x59dc8d&&_0x2cb7d5[_0x202643(0x1ee)]===_0xaf2eca);if(void 0x0===_0x4c6d35||void 0x0===_0x4c6d35[_0xda70e5(0x10f)]||0x0===_0x4c6d35[_0x202643(0x1e2)][_0xda70e5(0x135)])break;_0x4c6d35[_0x202643(0x1e2)][_0x202643(0x1e6)](_0x5c84be=>_0x5c84be[_0x202643(0x1cc)])[_0x202643(0x1f0)](_0x65f09b=>_0x47f569[_0x202643(0x1f1)](_0x65f09b[_0x202643(0x1d1)]));}while(0x0);_0x569263(_0x47f569);});},'wirteEnableService':async function(_0x35aa18,_0x1c2d75,_0x8f0ef6=''){return new Promise(async(_0x1ba4b1,_0x1088b1)=>{const _0x4f09f5=_0x2b31,_0xef500c=_0x1e22;let _0xcc09cb=await editor_1[_0xef500c(0x1dc)][_0x4f09f5(0x11f)](_0xef500c(0x1e5));if(''===_0x8f0ef6){let _0x2b59bc=await this[_0xef500c(0x1f3)]();if(void 0x0===_0x2b59bc)return _0x1088b1(_0x4f09f5(0x12d));_0x8f0ef6=_0x2b59bc[_0xef500c(0x1ee)];}let _0x1f521d=await editor_1[_0xef500c(0x1dc)]['readProjectProfile'](_0xef500c(0x1d5));_0x1f521d||(_0x1f521d=[]);let _0x387feb=_0x1f521d[_0xef500c(0x1fe)](_0x16114b=>_0x16114b[_0xef500c(0x1ec)]==_0xcc09cb&&_0x16114b[_0xef500c(0x1ee)]===_0x8f0ef6);if(void 0x0===_0x387feb)return _0x1088b1(_0xef500c(0x1fb));void 0x0===_0x387feb[_0xef500c(0x1e2)]&&(_0x387feb[_0x4f09f5(0x10f)]=[]);let _0x304176=_0x387feb[_0x4f09f5(0x10f)][_0x4f09f5(0x128)](_0x104335=>_0x104335[_0xef500c(0x1d1)]===_0x35aa18);void 0x0===_0x304176?(_0x304176={'service_id':_0x35aa18,'enable':_0x1c2d75,'param':{}},_0x387feb[_0xef500c(0x1e2)][_0x4f09f5(0x116)](_0x304176)):_0x304176[_0xef500c(0x1cc)]=_0x1c2d75,await editor_1[_0xef500c(0x1dc)][_0xef500c(0x1d4)](_0xef500c(0x1d5),_0x1f521d),_0x1ba4b1();});},'readServiceParam':async function(_0x3d476a,_0x1a2ab5=''){return new Promise(async(_0x19123d,_0x330ad3)=>{const _0x2e7b9c=_0x2b31,_0xcabb8a=_0x1e22;let _0x1c5c23=await editor_1[_0xcabb8a(0x1dc)][_0x2e7b9c(0x11f)](_0x2e7b9c(0x113));if(''===_0x1a2ab5){let _0x4dead8=await this[_0xcabb8a(0x1f3)]();if(void 0x0===_0x4dead8)return _0x330ad3(_0xcabb8a(0x1f8));_0x1a2ab5=_0x4dead8[_0xcabb8a(0x1ee)];}let _0x15266c=await editor_1[_0x2e7b9c(0x11b)][_0xcabb8a(0x1e7)](_0xcabb8a(0x1d5));_0x15266c||(_0x15266c=[]);let _0x4e2de4={};do{let _0x58c8e7=_0x15266c[_0xcabb8a(0x1fe)](_0x16cfe4=>_0x16cfe4[_0xcabb8a(0x1ec)]==_0x1c5c23&&_0x16cfe4[_0xcabb8a(0x1ee)]===_0x1a2ab5);if(void 0x0===_0x58c8e7||void 0x0===_0x58c8e7[_0xcabb8a(0x1e2)]||0x0===_0x58c8e7[_0xcabb8a(0x1e2)][_0xcabb8a(0x202)])break;let _0xf022bf=_0x58c8e7[_0xcabb8a(0x1e2)][_0xcabb8a(0x1fe)](_0x527d39=>_0x527d39[_0xcabb8a(0x1d1)]===_0x3d476a);void 0x0!==_0xf022bf&&void 0x0!==_0xf022bf[_0xcabb8a(0x1e0)]&&null!==_0xf022bf[_0xcabb8a(0x1e0)]&&(_0x4e2de4=_0xf022bf[_0xcabb8a(0x1e0)]);}while(0x0);_0x19123d(_0x4e2de4);});},'writeServiceParam':async function(_0x48b88f,_0x13e68b,_0x2dc907=''){return new Promise(async(_0xe921d0,_0x355d18)=>{const _0x369464=_0x2b31,_0x3a9f34=_0x1e22;let _0x2f4237=await editor_1[_0x369464(0x11b)][_0x3a9f34(0x1e7)](_0x3a9f34(0x1e5));if(''===_0x2dc907){let _0xc2730a=await this['readConfigSet']();if(void 0x0===_0xc2730a)return _0x355d18(_0x369464(0x13e));_0x2dc907=_0xc2730a[_0x369464(0x126)];}let _0x4b6d81=await editor_1[_0x3a9f34(0x1dc)]['readProjectProfile'](_0x3a9f34(0x1d5));_0x4b6d81||(_0x4b6d81=[]);let _0x2968a1=_0x4b6d81[_0x3a9f34(0x1fe)](_0x432ef1=>_0x432ef1[_0x3a9f34(0x1ec)]==_0x2f4237&&_0x432ef1['config_id']===_0x2dc907);if(void 0x0===_0x2968a1)return _0x355d18('Config\x20file\x20error!\x20(writeServiceParam\x20=>\x20readConfigSet)');void 0x0===_0x2968a1[_0x3a9f34(0x1e2)]&&(_0x2968a1[_0x3a9f34(0x1e2)]=[]);let _0x26c629=_0x2968a1['services'][_0x3a9f34(0x1fe)](_0x221af3=>_0x221af3[_0x3a9f34(0x1d1)]===_0x48b88f);void 0x0===_0x26c629?(_0x26c629={'service_id':_0x48b88f,'enable':!0x1,'param':_0x13e68b},_0x2968a1['services'][_0x3a9f34(0x1f1)](_0x26c629)):_0x26c629[_0x3a9f34(0x1e0)]=_0x13e68b,await editor_1[_0x3a9f34(0x1dc)][_0x3a9f34(0x1d4)](_0x369464(0x11d),_0x4b6d81),_0xe921d0();});},'readDevMode':async function(){const _0x16463f=_0x1b8dc5;return 0x0!==(await this[_0x16463f(0x201)]())[_0x16463f(0x1e6)](_0x140df9=>/service-cocosads/['test'](_0x140df9['service_component_name']))[_0x16463f(0x202)];}};
|