@sparrowai/sparrow-mcp 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/scripts/mcp-test/mcp-client.js +1 -1
  3. package/dist/scripts/test-runner/check-failed-tests.js +1 -1
  4. package/dist/scripts/test-runner/compare-responses.js +1 -1
  5. package/dist/scripts/test-runner/standalone-test-fixed-header.js +1 -1
  6. package/dist/scripts/test-runner/standalone-test.js +1 -1
  7. package/dist/src/config/appConfig.js +1 -1
  8. package/dist/src/config/constants.js +1 -1
  9. package/dist/src/controllers/__tests__/analysis.controller.test.js +1 -1
  10. package/dist/src/controllers/__tests__/sast.controller.test.js +1 -1
  11. package/dist/src/controllers/__tests__/sca.controller.test.js +1 -1
  12. package/dist/src/controllers/__tests__/security.controller.test.js +1 -1
  13. package/dist/src/controllers/__tests__/system.controller.test.js +1 -1
  14. package/dist/src/controllers/analysis.controller.js +1 -1
  15. package/dist/src/controllers/sast.controller.d.ts +8 -4
  16. package/dist/src/controllers/sast.controller.js +1 -1
  17. package/dist/src/controllers/sca.controller.d.ts +8 -4
  18. package/dist/src/controllers/sca.controller.js +1 -1
  19. package/dist/src/controllers/security.controller.js +1 -1
  20. package/dist/src/controllers/system.controller.js +1 -1
  21. package/dist/src/schemas/tool.schemas.d.ts +8 -0
  22. package/dist/src/schemas/tool.schemas.js +1 -1
  23. package/dist/src/server.js +1 -1
  24. package/dist/src/services/__tests__/checker.service.test.js +1 -1
  25. package/dist/src/services/__tests__/llm.service.test.js +1 -1
  26. package/dist/src/services/__tests__/s3.service.test.js +1 -1
  27. package/dist/src/services/__tests__/sparrow.service.test.js +1 -1
  28. package/dist/src/services/analysis.service.d.ts +20 -23
  29. package/dist/src/services/analysis.service.js +1 -1
  30. package/dist/src/services/checker.service.js +1 -1
  31. package/dist/src/services/llm/AnthropicProvider.js +1 -1
  32. package/dist/src/services/llm/BedrockProvider.js +1 -1
  33. package/dist/src/services/llm/GeminiProvider.js +1 -1
  34. package/dist/src/services/llm/LLMFactory.js +1 -1
  35. package/dist/src/services/llm/LLMProvider.js +1 -1
  36. package/dist/src/services/llm/OllamaProvider.js +1 -1
  37. package/dist/src/services/llm/OpenAIProvider.js +1 -1
  38. package/dist/src/services/llm.service.js +1 -1
  39. package/dist/src/services/s3.service.js +1 -1
  40. package/dist/src/services/sparrow.service.js +1 -1
  41. package/dist/src/types/types.d.ts +5 -0
  42. package/dist/src/types/types.js +1 -1
  43. package/dist/src/utils/__tests__/crypto.util.test.js +1 -1
  44. package/dist/src/utils/__tests__/diff.util.test.js +1 -1
  45. package/dist/src/utils/__tests__/fileManager.test.js +1 -1
  46. package/dist/src/utils/__tests__/fileManagerSecure.test.js +1 -1
  47. package/dist/src/utils/__tests__/logger.test.js +1 -1
  48. package/dist/src/utils/crypto.util.js +1 -1
  49. package/dist/src/utils/diff.util.js +1 -1
  50. package/dist/src/utils/fileManager.js +1 -1
  51. package/dist/src/utils/fileManagerSecure.js +1 -1
  52. package/dist/src/utils/logger.js +1 -1
  53. package/package.json +1 -1
@@ -1 +1 @@
1
- const a34_0x3b9275=a34_0xa3d4;(function(_0x4dfcaf,_0x111ad4){const _0x43523f=a34_0xa3d4,_0x2b8a58=_0x4dfcaf();while(!![]){try{const _0x332b86=parseInt(_0x43523f(0x168))/0x1+parseInt(_0x43523f(0x130))/0x2*(parseInt(_0x43523f(0x152))/0x3)+parseInt(_0x43523f(0x128))/0x4*(-parseInt(_0x43523f(0x145))/0x5)+parseInt(_0x43523f(0x169))/0x6*(-parseInt(_0x43523f(0x13f))/0x7)+-parseInt(_0x43523f(0x12a))/0x8+-parseInt(_0x43523f(0x154))/0x9+-parseInt(_0x43523f(0x14f))/0xa*(-parseInt(_0x43523f(0x12b))/0xb);if(_0x332b86===_0x111ad4)break;else _0x2b8a58['push'](_0x2b8a58['shift']());}catch(_0x1ec490){_0x2b8a58['push'](_0x2b8a58['shift']());}}}(a34_0x5c93,0x70f84));const a34_0x416b55=(function(){let _0x2040bc=!![];return function(_0x37e7ce,_0x12ba6e){const _0x34ca2c=_0x2040bc?function(){if(_0x12ba6e){const _0x4d912e=_0x12ba6e['apply'](_0x37e7ce,arguments);return _0x12ba6e=null,_0x4d912e;}}:function(){};return _0x2040bc=![],_0x34ca2c;};}()),a34_0x3929b6=a34_0x416b55(this,function(){const _0x2a3923=a34_0xa3d4;return a34_0x3929b6[_0x2a3923(0x172)]()[_0x2a3923(0x144)](_0x2a3923(0x164)+'+$')['toString']()[_0x2a3923(0x147)+'r'](a34_0x3929b6)['search']('(((.+)+)+)'+'+$');});a34_0x3929b6();import{jest,describe,it,expect,beforeEach}from'@jest/globals';function a34_0xa3d4(_0x4d5621,_0x5eb8cd){_0x4d5621=_0x4d5621-0x128;const _0x53b984=a34_0x5c93();let _0x3929b6=_0x53b984[_0x4d5621];return _0x3929b6;}const mockPost=jest['fn'](),mockGet=jest['fn'](),mockIsAxiosError=jest['fn'](),a34_0x2c3de5={};a34_0x2c3de5['post']=mockPost,a34_0x2c3de5[a34_0x3b9275(0x13b)]=mockGet,a34_0x2c3de5[a34_0x3b9275(0x13e)+'or']=mockIsAxiosError,jest[a34_0x3b9275(0x16a)+a34_0x3b9275(0x140)](a34_0x3b9275(0x160),()=>({'default':a34_0x2c3de5}));const {SparrowService}=await import(a34_0x3b9275(0x134)+'.service.j'+'s');function a34_0x5c93(){const _0x6efab1=['message','toString','116972gLafHH','aining','5508168qDOnxI','4345POBigN','status','isCompleti','toContain','requestAna','634LNQIrd','analysisId','alysis/too','vice','../sparrow','mockResolv','requestId','edValue','p\x20polling\x20','/api/v1/an','all\x20to\x20req','get','fileName','result','isAxiosErr','3261566Trlrux','ockModule','uest\x20analy','an-123','mpletion','search','65tyJAhG','CalledTime','constructo','\x20{}','l/sast','class\x20Test','RECEIVED','SparrowSer','getAnalysi','sis','28810LFkYQR','Kzvhb','nyLON','7026mRQrOl','stringCont','3470328HOXsTl','PROCESSING','urn\x20status','data','l\x20until\x20co','ANALYSIS','should\x20pol','on\x20timeout','fileConten','should\x20sto','req-123','objectCont','axios','key/test.j','s3Key','anything','(((.+)+)+)','lysis','test.java','pollAnalys','502525rydXFM','6mwTdvD','unstable_m','sStatus','aMKmD','toBe','COMPLETE','edValueOnc','SUCCESS'];a34_0x5c93=function(){return _0x6efab1;};return a34_0x5c93();}describe(a34_0x3b9275(0x14c)+a34_0x3b9275(0x133),()=>{const _0x3bbe40=a34_0x3b9275,_0x50c696={};_0x50c696[_0x3bbe40(0x151)]='should\x20ret'+_0x3bbe40(0x156),_0x50c696[_0x3bbe40(0x150)]=_0x3bbe40(0x155),_0x50c696[_0x3bbe40(0x16c)]=_0x3bbe40(0x170);const _0x904db5=_0x50c696;let _0x24afee;beforeEach(()=>{jest['clearAllMo'+'cks'](),_0x24afee=new SparrowService();}),describe(_0x3bbe40(0x12f)+_0x3bbe40(0x165),()=>{const _0x46c393=_0x3bbe40;it('should\x20mak'+'e\x20an\x20API\x20c'+_0x46c393(0x13a)+_0x46c393(0x141)+_0x46c393(0x14e),async()=>{const _0x39a68a=_0x46c393,_0x112c78={};_0x112c78[_0x39a68a(0x136)]='req-123',_0x112c78['status']=_0x39a68a(0x14b);const _0x275117={};_0x275117[_0x39a68a(0x157)]=_0x112c78;const _0xd5db90=_0x275117;mockPost['mockResolv'+_0x39a68a(0x137)](_0xd5db90);const _0x52af5a={};_0x52af5a[_0x39a68a(0x13c)]=_0x39a68a(0x166),_0x52af5a[_0x39a68a(0x15c)+'t']=_0x39a68a(0x14a)+_0x39a68a(0x148),_0x52af5a[_0x39a68a(0x162)]=_0x39a68a(0x161)+'ava';const _0x2de6ef=await _0x24afee[_0x39a68a(0x12f)+_0x39a68a(0x165)](_0x52af5a);expect(_0x2de6ef[_0x39a68a(0x136)])[_0x39a68a(0x16d)]('req-123'),expect(mockPost)['toHaveBeen'+'CalledWith'](expect['stringCont'+_0x39a68a(0x129)](_0x39a68a(0x139)+_0x39a68a(0x132)+_0x39a68a(0x149)),expect[_0x39a68a(0x15f)+'aining']({'memo':expect[_0x39a68a(0x153)+'aining'](_0x39a68a(0x166))}),expect[_0x39a68a(0x163)]());});}),describe(_0x3bbe40(0x14d)+_0x3bbe40(0x16b),()=>{const _0x2b54c9=_0x3bbe40;it(_0x904db5[_0x2b54c9(0x151)],async()=>{const _0x51a43d=_0x2b54c9,_0x5e2cd0={};_0x5e2cd0[_0x51a43d(0x131)]=_0x51a43d(0x142),_0x5e2cd0[_0x51a43d(0x12c)]='ANALYSIS',_0x5e2cd0[_0x51a43d(0x13d)]=_0x51a43d(0x155);const _0x6de7ab={};_0x6de7ab[_0x51a43d(0x157)]=_0x5e2cd0;const _0x49e83a=_0x6de7ab;mockGet[_0x51a43d(0x135)+_0x51a43d(0x137)](_0x49e83a);const _0x1561bf=await _0x24afee['getAnalysi'+'sStatus'](_0x51a43d(0x15e));expect(_0x1561bf[_0x51a43d(0x12c)])[_0x51a43d(0x16d)](_0x51a43d(0x159));});}),describe(_0x3bbe40(0x167)+_0x3bbe40(0x12d)+'on',()=>{const _0x1582ba=_0x3bbe40;it(_0x1582ba(0x15a)+_0x1582ba(0x158)+_0x1582ba(0x143),async()=>{const _0x3177a0=_0x1582ba,_0x300419={};_0x300419[_0x3177a0(0x12c)]=_0x3177a0(0x159),_0x300419[_0x3177a0(0x13d)]=_0x904db5[_0x3177a0(0x150)];const _0x2a2fbd={};_0x2a2fbd['data']=_0x300419;const _0x322789={};_0x322789['status']=_0x3177a0(0x159),_0x322789[_0x3177a0(0x13d)]='PROCESSING';const _0xfc947e={};_0xfc947e['data']=_0x322789;const _0x47642c={};_0x47642c[_0x3177a0(0x12c)]=_0x3177a0(0x16e),_0x47642c[_0x3177a0(0x13d)]=_0x904db5[_0x3177a0(0x16c)];const _0x44a0bc={};_0x44a0bc['data']=_0x47642c,mockGet['mockResolv'+'edValueOnc'+'e'](_0x2a2fbd)[_0x3177a0(0x135)+_0x3177a0(0x16f)+'e'](_0xfc947e)[_0x3177a0(0x135)+_0x3177a0(0x137)](_0x44a0bc);const _0x457227=await _0x24afee[_0x3177a0(0x167)+_0x3177a0(0x12d)+'on'](_0x3177a0(0x15e),0x5,0xa);expect(_0x457227[_0x3177a0(0x12c)])[_0x3177a0(0x16d)](_0x3177a0(0x16e)),expect(mockGet)['toHaveBeen'+_0x3177a0(0x146)+'s'](0x3);}),it(_0x1582ba(0x15d)+_0x1582ba(0x138)+_0x1582ba(0x15b),async()=>{const _0x1abbe3=_0x1582ba,_0x4bb75c={};_0x4bb75c[_0x1abbe3(0x12c)]=_0x1abbe3(0x159),_0x4bb75c[_0x1abbe3(0x13d)]=_0x1abbe3(0x155);const _0x2fd607={};_0x2fd607[_0x1abbe3(0x157)]=_0x4bb75c,mockGet[_0x1abbe3(0x135)+_0x1abbe3(0x137)](_0x2fd607);try{await _0x24afee['pollAnalys'+_0x1abbe3(0x12d)+'on'](_0x1abbe3(0x15e),0x3,0xa);}catch(_0x70e3ef){expect(_0x70e3ef[_0x1abbe3(0x171)])[_0x1abbe3(0x12e)]('초과');}});});});
1
+ const a34_0x922f90=a34_0x295e;(function(_0x1a5728,_0x162e74){const _0x243013=a34_0x295e,_0x586986=_0x1a5728();while(!![]){try{const _0xd90742=parseInt(_0x243013(0x1d8))/0x1*(parseInt(_0x243013(0x1cc))/0x2)+-parseInt(_0x243013(0x206))/0x3*(parseInt(_0x243013(0x204))/0x4)+-parseInt(_0x243013(0x1db))/0x5+parseInt(_0x243013(0x1d5))/0x6*(-parseInt(_0x243013(0x1d4))/0x7)+parseInt(_0x243013(0x1cd))/0x8+parseInt(_0x243013(0x207))/0x9*(-parseInt(_0x243013(0x20a))/0xa)+-parseInt(_0x243013(0x1be))/0xb*(parseInt(_0x243013(0x1e1))/0xc);if(_0xd90742===_0x162e74)break;else _0x586986['push'](_0x586986['shift']());}catch(_0x3b45b8){_0x586986['push'](_0x586986['shift']());}}}(a34_0x1063,0x227f1));const a34_0x5ca60c=(function(){let _0xa7fb99=!![];return function(_0x6106f3,_0x14c20b){const _0x1ebcbd=_0xa7fb99?function(){const _0x5df72=a34_0x295e;if(_0x14c20b){const _0x24a138=_0x14c20b[_0x5df72(0x1c5)](_0x6106f3,arguments);return _0x14c20b=null,_0x24a138;}}:function(){};return _0xa7fb99=![],_0x1ebcbd;};}()),a34_0x3469a7=a34_0x5ca60c(this,function(){const _0x3c326e=a34_0x295e;return a34_0x3469a7['toString']()[_0x3c326e(0x212)](_0x3c326e(0x1fe)+'+$')[_0x3c326e(0x20e)]()[_0x3c326e(0x205)+'r'](a34_0x3469a7)[_0x3c326e(0x212)](_0x3c326e(0x1fe)+'+$');});a34_0x3469a7();import{jest,describe,it,expect,beforeEach}from'@jest/globals';function a34_0x295e(_0x5f3d31,_0x40d457){_0x5f3d31=_0x5f3d31-0x1be;const _0x4295ad=a34_0x1063();let _0x3469a7=_0x4295ad[_0x5f3d31];return _0x3469a7;}const mockPost=jest['fn'](),mockGet=jest['fn'](),mockIsAxiosError=jest['fn'](),a34_0x20fb4c={};function a34_0x1063(){const _0xff6673=['req-memo','NQTNe','225855wQTUJm','umjUO','result','should\x20use','fileConten','memo\x20if\x20av','30828UWruMp','ailable','../sparrow','pollAnalys','elmOI','edValueOnc','stringCont','p\x20polling\x20','sStatus','fileName','an-123','getAnalysi','isCompleti','s3Key','.service.j','unstable_m','post','should\x20sto','aining','requestAna','vice','isAxiosErr','\x20{}','key/test.j','uest\x20analy','CalledTime','req-123','/api/v1/an','data','(((.+)+)+)','jlVBE','RECEIVED','on\x20timeout','JWihr','ANALYSIS','4uTUMJC','constructo','8682UFtUBb','20601lSEnJZ','\x20provided\x20','message','820wOzDbE','mockResolv','requestId','edValue','toString','anything','class\x20Test','yoBNt','search','lysis','mpletion','should\x20pol','66XLkhmu','COMPLETE','toBe','clearAllMo','toHaveBeen','PROCESSING','objectCont','apply','Custom\x20Mem','alysis/too','SparrowSer','oPVqU','test.java','status','164866GeRQNf','1433528DtOaDl','CalledWith','l/sast','ockModule','fCOFl','sis','should\x20mak','56kuCAlI','25512UokMeq','analysisId','l\x20until\x20co','3frqbql'];a34_0x1063=function(){return _0xff6673;};return a34_0x1063();}a34_0x20fb4c[a34_0x922f90(0x1f1)]=mockPost,a34_0x20fb4c['get']=mockGet,a34_0x20fb4c[a34_0x922f90(0x1f6)+'or']=mockIsAxiosError,jest[a34_0x922f90(0x1f0)+a34_0x922f90(0x1d0)]('axios',()=>({'default':a34_0x20fb4c}));const {SparrowService}=await import(a34_0x922f90(0x1e3)+a34_0x922f90(0x1ef)+'s');describe(a34_0x922f90(0x1c8)+a34_0x922f90(0x1f5),()=>{const _0x203f79=a34_0x922f90,_0x3ccac5={'elmOI':_0x203f79(0x210)+'\x20{}','JWihr':function(_0x2fb409,_0x2a8997){return _0x2fb409(_0x2a8997);},'oPVqU':'/api/v1/an'+_0x203f79(0x1c7)+_0x203f79(0x1cf),'fCOFl':_0x203f79(0x1fb),'jlVBE':function(_0x4e3ff8,_0x24725a,_0x15c688){return _0x4e3ff8(_0x24725a,_0x15c688);},'umjUO':_0x203f79(0x203),'yoBNt':_0x203f79(0x1ec)+_0x203f79(0x1e9)};let _0x33fe47;beforeEach(()=>{const _0x5bfee3=_0x203f79;jest[_0x5bfee3(0x1c1)+'cks'](),_0x33fe47=new SparrowService();}),describe(_0x203f79(0x1f4)+_0x203f79(0x213),()=>{const _0x5b3ad8=_0x203f79;it(_0x5b3ad8(0x1d3)+'e\x20an\x20API\x20c'+'all\x20to\x20req'+_0x5b3ad8(0x1f9)+_0x5b3ad8(0x1d2),async()=>{const _0x5e3056=_0x5b3ad8,_0x443af2={};_0x443af2[_0x5e3056(0x20c)]=_0x5e3056(0x1fb),_0x443af2[_0x5e3056(0x1cb)]=_0x5e3056(0x200);const _0x3010af={};_0x3010af[_0x5e3056(0x1fd)]=_0x443af2;const _0x4887c0=_0x3010af;mockPost[_0x5e3056(0x20b)+_0x5e3056(0x20d)](_0x4887c0);const _0x411fb7={};_0x411fb7[_0x5e3056(0x1ea)]=_0x5e3056(0x1ca),_0x411fb7[_0x5e3056(0x1df)+'t']=_0x3ccac5[_0x5e3056(0x1e5)],_0x411fb7['s3Key']=_0x5e3056(0x1f8)+'ava';const _0x5adada=await _0x33fe47[_0x5e3056(0x1f4)+'lysis'](_0x411fb7);_0x3ccac5[_0x5e3056(0x202)](expect,_0x5adada['requestId'])[_0x5e3056(0x1c0)](_0x5e3056(0x1fb)),_0x3ccac5[_0x5e3056(0x202)](expect,mockPost)[_0x5e3056(0x1c2)+_0x5e3056(0x1ce)](expect[_0x5e3056(0x1e7)+'aining'](_0x3ccac5[_0x5e3056(0x1c9)]),expect[_0x5e3056(0x1c4)+_0x5e3056(0x1f3)]({'memo':expect['stringCont'+_0x5e3056(0x1f3)](_0x5e3056(0x1ca))}),expect['anything']());}),it(_0x5b3ad8(0x1de)+_0x5b3ad8(0x208)+_0x5b3ad8(0x1e0)+_0x5b3ad8(0x1e2),async()=>{const _0x589e5f=_0x5b3ad8,_0x16bc47={};_0x16bc47['requestId']=_0x589e5f(0x1d9),_0x16bc47[_0x589e5f(0x1cb)]=_0x589e5f(0x200);const _0x1ba31a={};_0x1ba31a[_0x589e5f(0x1fd)]=_0x16bc47;const _0x37b62d=_0x1ba31a;mockPost[_0x589e5f(0x20b)+_0x589e5f(0x20d)](_0x37b62d);const _0x48e046={};_0x48e046[_0x589e5f(0x1ea)]=_0x589e5f(0x1ca),_0x48e046[_0x589e5f(0x1df)+'t']=_0x589e5f(0x210)+_0x589e5f(0x1f7),_0x48e046[_0x589e5f(0x1ee)]=_0x589e5f(0x1f8)+'ava',_0x48e046['memo']='Custom\x20Mem'+'o';const _0x37fb97=await _0x33fe47['requestAna'+_0x589e5f(0x213)](_0x48e046),_0x2e88eb={};_0x2e88eb['memo']=_0x589e5f(0x1c6)+'o',expect(mockPost)['toHaveBeen'+_0x589e5f(0x1ce)](expect[_0x589e5f(0x1e7)+_0x589e5f(0x1f3)](_0x589e5f(0x1fc)+_0x589e5f(0x1c7)+_0x589e5f(0x1cf)),expect['objectCont'+_0x589e5f(0x1f3)](_0x2e88eb),expect[_0x589e5f(0x20f)]());});}),describe(_0x3ccac5[_0x203f79(0x211)],()=>{const _0x2ff4f5=_0x203f79;_0x3ccac5[_0x2ff4f5(0x1ff)](it,'should\x20ret'+'urn\x20status',async()=>{const _0x1acba0=_0x2ff4f5,_0x5e5c05={};_0x5e5c05[_0x1acba0(0x1d6)]=_0x1acba0(0x1eb),_0x5e5c05[_0x1acba0(0x1cb)]=_0x1acba0(0x203),_0x5e5c05[_0x1acba0(0x1dd)]='PROCESSING';const _0x4b9ac1={};_0x4b9ac1[_0x1acba0(0x1fd)]=_0x5e5c05;const _0x1d5527=_0x4b9ac1;mockGet['mockResolv'+_0x1acba0(0x20d)](_0x1d5527);const _0x14ebb9=await _0x33fe47['getAnalysi'+_0x1acba0(0x1e9)](_0x3ccac5[_0x1acba0(0x1d1)]);expect(_0x14ebb9['status'])['toBe'](_0x1acba0(0x203));});}),describe('pollAnalys'+_0x203f79(0x1ed)+'on',()=>{const _0x5625a3=_0x203f79,_0x296503={};_0x296503['NQTNe']='PROCESSING';const _0x1448ed=_0x296503;it(_0x5625a3(0x215)+_0x5625a3(0x1d7)+_0x5625a3(0x214),async()=>{const _0x40d02f=_0x5625a3,_0x53c72b={};_0x53c72b[_0x40d02f(0x1cb)]=_0x40d02f(0x203),_0x53c72b[_0x40d02f(0x1dd)]=_0x1448ed[_0x40d02f(0x1da)];const _0x5e0b84={};_0x5e0b84['data']=_0x53c72b;const _0xcdce22={};_0xcdce22[_0x40d02f(0x1cb)]='ANALYSIS',_0xcdce22['result']=_0x40d02f(0x1c3);const _0x14306={};_0x14306[_0x40d02f(0x1fd)]=_0xcdce22;const _0x2f063e={};_0x2f063e[_0x40d02f(0x1cb)]=_0x40d02f(0x1bf),_0x2f063e['result']='SUCCESS';const _0x2d0fc8={};_0x2d0fc8[_0x40d02f(0x1fd)]=_0x2f063e,mockGet[_0x40d02f(0x20b)+_0x40d02f(0x1e6)+'e'](_0x5e0b84)[_0x40d02f(0x20b)+'edValueOnc'+'e'](_0x14306)[_0x40d02f(0x20b)+'edValue'](_0x2d0fc8);const _0x2accfb=await _0x33fe47[_0x40d02f(0x1e4)+_0x40d02f(0x1ed)+'on']('req-123',0x5,0xa);expect(_0x2accfb[_0x40d02f(0x1cb)])[_0x40d02f(0x1c0)](_0x40d02f(0x1bf)),expect(mockGet)[_0x40d02f(0x1c2)+_0x40d02f(0x1fa)+'s'](0x3);}),it(_0x5625a3(0x1f2)+_0x5625a3(0x1e8)+_0x5625a3(0x201),async()=>{const _0x5d7009=_0x5625a3,_0x2fbf7a={};_0x2fbf7a[_0x5d7009(0x1cb)]=_0x3ccac5[_0x5d7009(0x1dc)],_0x2fbf7a['result']=_0x5d7009(0x1c3);const _0x511107={};_0x511107[_0x5d7009(0x1fd)]=_0x2fbf7a,mockGet[_0x5d7009(0x20b)+'edValue'](_0x511107);try{await _0x33fe47[_0x5d7009(0x1e4)+_0x5d7009(0x1ed)+'on']('req-123',0x3,0xa);}catch(_0x5d373c){_0x3ccac5['JWihr'](expect,_0x5d373c[_0x5d7009(0x209)])['toContain']('초과');}});});});
@@ -13,60 +13,57 @@ export declare class AnalysisService {
13
13
  analysisId: string;
14
14
  status: string;
15
15
  }>;
16
- getAnalysisStatus(analysisId: string): Promise<{
17
- status: string;
18
- result?: string;
19
- progress?: number;
20
- message?: string;
21
- }>;
22
- getAnalysisResults(analysisId: string): Promise<AnalysisResult>;
23
- generateSecureCodeFromAnalysis(analysisId: string, originalCode: string): Promise<{
24
- secureCode: string;
25
- secureCodeBrief: string;
26
- diff: string;
27
- }>;
28
- private parseVulnerabilities;
29
- private buildVulnerabilityDescription;
30
- private mapSeverityFromRisk;
31
16
  analyzeMultipleFilesSecurity(request: MultiFileAnalysisRequest): Promise<{
32
17
  analysisId: string;
33
18
  status: string;
34
19
  }>;
35
- analyzeMultipleFilesFromPaths(filePaths: string[], zipFileName?: string): Promise<{
20
+ analyzeMultipleFilesFromPaths(filePaths: string[], zipFileName?: string, memo?: string): Promise<{
36
21
  analysisId: string;
37
22
  status: string;
38
23
  }>;
39
- analyzeZipFile(zipFilePath: string, zipFileName?: string): Promise<{
24
+ analyzeZipFile(zipFilePath: string, zipFileName?: string, memo?: string): Promise<{
40
25
  analysisId: string;
41
26
  status: string;
42
27
  }>;
43
- analyzeFolder(folderPath: string, zipFileName?: string): Promise<{
28
+ analyzeFolder(folderPath: string, zipFileName?: string, memo?: string): Promise<{
44
29
  analysisId: string;
45
30
  status: string;
46
31
  skippedFolders?: string[];
47
32
  }>;
48
- analyzeFileSca(filePath: string, zipFileName?: string): Promise<{
33
+ analyzeFileSca(filePath: string, zipFileName?: string, memo?: string): Promise<{
49
34
  analysisId: string;
50
35
  status: string;
51
36
  analysisType: string;
52
37
  }>;
53
- analyzeFilesSca(filePaths: string[], zipFileName?: string): Promise<{
38
+ analyzeFilesSca(filePaths: string[], zipFileName?: string, memo?: string): Promise<{
54
39
  analysisId: string;
55
40
  status: string;
56
41
  analysisType: string;
57
42
  }>;
58
- analyzeFolderSca(folderPath: string, zipFileName?: string): Promise<{
43
+ analyzeFolderSca(folderPath: string, zipFileName?: string, memo?: string): Promise<{
59
44
  analysisId: string;
60
45
  status: string;
61
46
  analysisType: string;
62
47
  skippedFolders?: string[];
63
48
  }>;
64
- analyzeZipSca(zipFilePath: string, zipFileName?: string): Promise<{
49
+ analyzeZipSca(zipFilePath: string, zipFileName?: string, memo?: string): Promise<{
65
50
  analysisId: string;
66
51
  status: string;
67
52
  analysisType: string;
68
53
  }>;
69
- private mapSeverity;
54
+ mapSeverity(severity: string): 'HIGH' | 'MEDIUM' | 'LOW';
55
+ getAnalysisStatus(analysisId: string): Promise<{
56
+ status: string;
57
+ result?: string;
58
+ progress?: number;
59
+ message?: string;
60
+ }>;
61
+ getAnalysisResults(analysisId: string): Promise<AnalysisResult>;
62
+ generateSecureCodeFromAnalysis(analysisId: string, fileContent: string): Promise<{
63
+ secureCode: string;
64
+ secureCodeBrief: string;
65
+ diff: string;
66
+ }>;
70
67
  getScaAnalysisResults(analysisId: string): Promise<ScaAnalysisResult>;
71
68
  private parseScaComponents;
72
69
  private mapScaSeverity;
@@ -1 +1 @@
1
- const a19_0x4e6b7b=a19_0x95ad;function a19_0x4805(){const _0x20ef7b=['파일\x20경로\x20기반\x20분','uploadZipF','generateAn','개\x20컴포넌트,\x20','ptjfT','analysisBr','folder.zip','폴더\x20기반\x20SCA\x20','전처리\x20중입니다.','폴더\x20경로가\x20제공되','석\x20시작:\x20','사용\x20라이선스:\x20','result','분석\x20결과\x20조회:\x20','add','lowCount','dutyL','309594YLcLRT','code.java','rabilities','분석\x20상태\x20조회\x20실','lineNumber','parseVulne','mponents','confidence','Unknown','filePath','eSca','준비\x20중입니다.','입니다.','from','조치\x20권장:\x20보안\x20','sparrowSer','\x20->\x20실제\x20','분석이\x20실패했습니다','name','폴더\x20압축\x20및\x20업로','폴더\x20기반\x20분석\x20요','isCompleti','지\x20않았습니다.','Score','alysisBrie','ucRYw','message','dUDCP','tipleFiles','ile','180ojTdWn','vulnerabil','join','eSecurity','ders','DfggM','ZIP\x20파일\x20업로드','analyzeMul','s3Key','안전한\x20코드\x20브리핑','INIT','FromPaths','mapScaSeve','ANALYSIS','개\x20파일\x20경로','료:\x20','kpoCr','cvssScore','완료\x20(분석\x20ID:','mgBkC','omAnalysis','개\x20취약점','buildVulne','rity','getChecker','전반적\x20보안\x20상태\x20','다운로드\x20시작:\x20','COMPLETE','fileConten','분석\x20중입니다.','unt','지:\x20원본\x20','number','JYgRz','publishedD','YcjeZ','issues','파일\x20업로드\x20실패:','NgqQy','filter','DzsXG','messages','llmService','analyzeZip','단일\x20파일\x20SCA\x20','repository','size','uploadFile','downloadAn','폴더\x20기반\x20보안\x20분','없습니다.)','Uri','initialize','Cache','lOXms','vice','spdxId','analyzeFil','Hzvxy','score','Details:\x20','getAnalysi','(((.+)+)+)','rabilityDe','matchType','니다.','toUpperCas','risk','51092fLwmgG','input.zip','basename','files','석\x20요청\x20완료:\x20','completed','version','esSca','ief','53520TEbzUp','derSca','totalVulne','분석\x20요청\x20완료:\x20','STOP','set','중지\x20요청을\x20받아\x20','UNKNOWN','\x20실패:\x20','checkerSer','SCA\x20분석\x20시작:','MEDIUM','ities','드\x20실패:\x20','File','sion','료하지\x20못하고\x20실패','enrichVuln','CA\x20분석\x20시작:\x20','severity','generateSc','업데이트\x20검토\x20필요','checkerKey','aYvyT','개\x20중\x20','Risk\x20Level','sStatus','scaResults',',\x20Low:\x20','HoUGD','\x20(SUCCESS가','CRITICAL','analysisId','HIGH','\x20제공되지\x20않았습니','contexts','progress','PRE_PROCES','\x20아니므로\x20안전한\x20','Analysis','sResults','toString','method','SCA\x20분석\x20결과\x20','캐시\x20히트:\x20','parseScaCo','isArray','IIdbJ','highCount','파일\x20경로\x20기반\x20보','중\x20파일\x20보안\x20분석','error','requestId','summary','scription','string','mediumCoun','.\x20result=','cureCodeFr','pollAnalys','secureCode','Checker:\x20','requestSca','SCA','분석할\x20파일이\x20없습','파일\x20경로\x20기반\x20S','생성\x20완료:\x20','failed','석\x20요청\x20실패:','파일\x20경로\x20기반\x20다','cureCode','sWithCheck','170deXUqH','849231DqfXPZ','분석\x20ID:\x20','slice','분석할\x20파일\x20경로가','push','lts','다중\x20파일\x20보안\x20분','안전한\x20코드\x20생성\x20','fileName','info','alysisResu','LOW','s3Service','ZIP\x20파일\x20기반\x20','READY','skippedFol','105024kJxzbo','\x20시작:\x20','status','2OUUSuo','258573MyubfB','FAIL','\x20실패했습니다.','보안\x20분석\x20요청\x20실','분석\x20브리핑\x20생성에','분석이\x20진행\x20중입니','DeMto','분석\x20결과\x20다운로드','criticalCo','16ZOegzO','INFO','초기화\x20중입니다.','der','ZSYQP','DZvpa','analyzeFol','success','안\x20분석\x20요청\x20실패','length','분석이\x20성공적으로\x20','다중\x20파일\x20분석\x20요','getScaAnal','실패:','generateUn','cveId','yFromRisk','sFromPaths',').\x20','설명\x20없음','분석\x20요청\x20실패:','licenses','erabilitie','ZIP\x20파일\x20경로가','aReportBri','\x20없습니다.','보안\x20분석\x20시작:\x20','erAsZip','423885AETZHE','코드를\x20생성할\x20수\x20','ate','mapSeverit','lysis','ipleFiles','ysisResult','cRWix','취약점이\x20발견되었습','content','조회\x20실패:','purl','analysisTy','조회:\x20','patchedVer','라이브러리\x20버전\x20업','url','descriptio','POST_PROCE','긴급\x20조치\x20필요:\x20','SCA\x20분석\x20요청\x20','uploadFold','key','개\x20취약점\x20(Cri','\x20외\x20','requestAna','generateSe','filePaths','eventMsgs','분석\x20시작:\x20','분석\x20ID\x20변경\x20감','청\x20완료:\x20','zipFileNam'];a19_0x4805=function(){return _0x20ef7b;};return a19_0x4805();}(function(_0x4297be,_0x4a24f5){const _0x25ee43=a19_0x95ad,_0x1ff97=_0x4297be();while(!![]){try{const _0x414d27=-parseInt(_0x25ee43(0x18b))/0x1*(parseInt(_0x25ee43(0x133))/0x2)+parseInt(_0x25ee43(0x130))/0x3+parseInt(_0x25ee43(0xce))/0x4+parseInt(_0x25ee43(0x1a9))/0x5*(-parseInt(_0x25ee43(0xd7))/0x6)+parseInt(_0x25ee43(0x134))/0x7*(parseInt(_0x25ee43(0x13d))/0x8)+parseInt(_0x25ee43(0x120))/0x9+parseInt(_0x25ee43(0x11f))/0xa*(parseInt(_0x25ee43(0x159))/0xb);if(_0x414d27===_0x4a24f5)break;else _0x1ff97['push'](_0x1ff97['shift']());}catch(_0x40ff8c){_0x1ff97['push'](_0x1ff97['shift']());}}}(a19_0x4805,0x3ab0f));const a19_0x997d44=(function(){const _0x4b2c5a=a19_0x95ad,_0x5518cb={};_0x5518cb['DzsXG']=_0x4b2c5a(0x1ae);const _0xcde107=_0x5518cb;let _0x335b07=!![];return function(_0x40086a,_0x3338c5){const _0x31670e=_0x4b2c5a;if('DfggM'!==_0xcde107[_0x31670e(0x1d1)])_0x2e2ddd='분석을\x20올바르게\x20완'+_0x31670e(0xe7)+'한\x20상태입니다.';else{const _0x6cd2e0=_0x335b07?function(){if(_0x3338c5){const _0x435fcc=_0x3338c5['apply'](_0x40086a,arguments);return _0x3338c5=null,_0x435fcc;}}:function(){};return _0x335b07=![],_0x6cd2e0;}};}()),a19_0x4968ec=a19_0x997d44(this,function(){const _0x4036b8=a19_0x95ad;return a19_0x4968ec[_0x4036b8(0x100)]()['search'](_0x4036b8(0xc8)+'+$')['toString']()['constructo'+'r'](a19_0x4968ec)['search'](_0x4036b8(0xc8)+'+$');});function a19_0x95ad(_0xa897b,_0x3fb663){_0xa897b=_0xa897b-0xc7;const _0x19b490=a19_0x4805();let _0x4968ec=_0x19b490[_0xa897b];return _0x4968ec;}a19_0x4968ec();import{LLMService}from'./llm.service.js';import{SparrowService}from'./sparrow.service.js';import{S3Service}from'./s3.service.js';import{CheckerService}from'./checker.service.js';import{DiffUtil}from'../utils/diff.util.js';import{logger}from'../utils/logger.js';import a19_0x4b663a from'path';export class AnalysisService{[a19_0x4e6b7b(0x1d3)];['sparrowSer'+a19_0x4e6b7b(0x1e0)];[a19_0x4e6b7b(0x12c)];[a19_0x4e6b7b(0xe0)+a19_0x4e6b7b(0x1e0)];[a19_0x4e6b7b(0xf2)+a19_0x4e6b7b(0x1de)]=new Map();constructor(){const _0x4010c8=a19_0x4e6b7b;this[_0x4010c8(0x1d3)]=new LLMService(),this[_0x4010c8(0x19a)+_0x4010c8(0x1e0)]=new SparrowService(),this['s3Service']=new S3Service(),this[_0x4010c8(0xe0)+'vice']=new CheckerService();}async['initialize'+'CheckerSer'+a19_0x4e6b7b(0x1e0)](){const _0x30c9e4=a19_0x4e6b7b;await this[_0x30c9e4(0xe0)+_0x30c9e4(0x1e0)][_0x30c9e4(0x1dd)]();}[a19_0x4e6b7b(0x1c1)+'Service'](){const _0x249ee7=a19_0x4e6b7b;return this[_0x249ee7(0xe0)+_0x249ee7(0x1e0)];}async[a19_0x4e6b7b(0x1e2)+a19_0x4e6b7b(0x1ac)](_0x456ae0){const _0x423129=a19_0x4e6b7b;try{logger['info'](_0x423129(0x157)+_0x456ae0[_0x423129(0x128)]);const _0x13b7f9=await this[_0x423129(0x12c)]['uploadFile'](_0x456ae0[_0x423129(0x1c5)+'t'],_0x456ae0[_0x423129(0x128)]);if(!_0x13b7f9[_0x423129(0x144)])throw new Error(_0x423129(0x1ce)+'\x20'+_0x13b7f9[_0x423129(0x10a)]);const _0x544604={};_0x544604[_0x423129(0x128)]=_0x456ae0[_0x423129(0x128)],_0x544604[_0x423129(0x1c5)+'t']=_0x456ae0[_0x423129(0x1c5)+'t'],_0x544604[_0x423129(0x1b1)]=_0x13b7f9[_0x423129(0x16f)];const _0x506238=_0x544604,_0x4f3410=await this[_0x423129(0x19a)+_0x423129(0x1e0)][_0x423129(0x172)+_0x423129(0x15d)](_0x506238);logger[_0x423129(0x129)](_0x423129(0xda)+_0x4f3410[_0x423129(0x10b)]);const _0x4bcde6={};return _0x4bcde6[_0x423129(0xf7)]=_0x4f3410[_0x423129(0xf7)]||_0x4f3410['requestId'],_0x4bcde6[_0x423129(0x132)]=_0x4f3410['status'],_0x4bcde6;}catch(_0x3510b6){logger['error']('보안\x20분석\x20요청\x20실'+'패:',_0x3510b6);throw _0x3510b6;}}async['getAnalysi'+a19_0x4e6b7b(0xf1)](_0x4aea19){const _0x409208=a19_0x4e6b7b,_0x26da01={'Hzvxy':_0x409208(0x1c4),'ptjfT':function(_0x1894be,_0x36e1c3){return _0x1894be(_0x36e1c3);},'ZSYQP':function(_0x3bed7f,_0xe4af6a){return _0x3bed7f===_0xe4af6a;},'dutyL':_0x409208(0xdd)+'분석이\x20중지된\x20상태'+_0x409208(0x197),'HoUGD':_0x409208(0x1c6)};try{const _0x1b5a3b=await this[_0x409208(0x19a)+'vice']['getAnalysi'+_0x409208(0xf1)](_0x4aea19);let _0x17a7a4=_0x1b5a3b['progress'];if(_0x17a7a4===undefined){const _0x4bc01f=String(_0x1b5a3b['status'])[_0x409208(0xcc)+'e']();if(_0x4bc01f===_0x26da01['Hzvxy'])_0x17a7a4=0x64;else{if(_0x4bc01f===_0x409208(0x1b6))_0x17a7a4=undefined;else{if(_0x4bc01f===_0x409208(0x1b3)||_0x4bc01f===_0x409208(0x12e))_0x17a7a4=0x0;else{if(_0x4bc01f===_0x409208(0xfc)+'S')_0x17a7a4=0xa;else _0x4bc01f===_0x409208(0x16b)+'SS'&&(_0x17a7a4=0x5a);}}}}const _0x22c391=_0x26da01[_0x409208(0x17e)](String,_0x1b5a3b[_0x409208(0x132)])['toUpperCas'+'e']();let _0x410026;if(_0x26da01[_0x409208(0x141)](_0x22c391,_0x409208(0x1c4))){const _0x58db2e=_0x1b5a3b[_0x409208(0x186)]?String(_0x1b5a3b[_0x409208(0x186)])[_0x409208(0xcc)+'e']():undefined;if(_0x58db2e==='SUCCESS')_0x410026=_0x409208(0x147)+'완료되었습니다.';else{if(_0x58db2e===_0x409208(0x135))_0x410026='분석을\x20올바르게\x20완'+'료하지\x20못하고\x20실패'+'한\x20상태입니다.';else _0x58db2e==='STOP'?_0x410026=_0x26da01[_0x409208(0x18a)]:_0x410026='분석이\x20완료되었습니'+'다.';}}else{const _0x5799c2={};_0x5799c2[_0x409208(0x1b3)]=_0x409208(0x13f),_0x5799c2[_0x409208(0x12e)]=_0x409208(0x196),_0x5799c2['PRE_PROCES'+'S']=_0x409208(0x182),_0x5799c2[_0x409208(0x1b6)]=_0x26da01[_0x409208(0xf4)],_0x5799c2[_0x409208(0x16b)+'SS']='후처리\x20중입니다.',_0x5799c2[_0x409208(0x135)]=_0x409208(0x19c)+'.',_0x5799c2['FAILED']='분석이\x20실패했습니다'+'.';const _0x33c0f5=_0x5799c2;_0x410026=_0x33c0f5[_0x22c391]||_0x409208(0x139)+'다.';}let _0x563925=_0x1b5a3b[_0x409208(0x132)];_0x22c391===_0x26da01[_0x409208(0x1e3)]&&_0x1b5a3b[_0x409208(0x186)]&&(_0x563925=_0x1b5a3b[_0x409208(0x186)]);const _0x3d3025={};return _0x3d3025[_0x409208(0x132)]=_0x563925,_0x3d3025[_0x409208(0x186)]=_0x1b5a3b['result'],_0x3d3025[_0x409208(0xfb)]=_0x17a7a4,_0x3d3025[_0x409208(0x1a5)]=_0x410026,_0x3d3025;}catch(_0x36d93b){logger[_0x409208(0x10a)](_0x409208(0x18e)+'패:',_0x36d93b);throw _0x36d93b;}}async[a19_0x4e6b7b(0xc7)+a19_0x4e6b7b(0xff)](_0x576e19){const _0x2b9d6f=a19_0x4e6b7b,_0x329fb0={};_0x329fb0[_0x2b9d6f(0x1a6)]=function(_0x48f20e,_0x43c29f){return _0x48f20e!==_0x43c29f;};const _0x29d816=_0x329fb0;try{logger[_0x2b9d6f(0x129)](_0x2b9d6f(0x187)+_0x576e19);const _0x4e9376=await this[_0x2b9d6f(0x19a)+_0x2b9d6f(0x1e0)][_0x2b9d6f(0x112)+_0x2b9d6f(0x1a0)+'on'](_0x576e19),_0x506b05=_0x4e9376[_0x2b9d6f(0x186)]?String(_0x4e9376['result'])['toUpperCas'+'e']():undefined;let _0x1bf6af;_0x506b05===_0x2b9d6f(0x135)||_0x506b05==='STOP'?_0x1bf6af=_0x2b9d6f(0x11a):_0x1bf6af=_0x2b9d6f(0xd3);const _0x111520=_0x4e9376[_0x2b9d6f(0xf7)]||_0x576e19;_0x29d816[_0x2b9d6f(0x1a6)](_0x111520,_0x576e19)&&logger[_0x2b9d6f(0x129)](_0x2b9d6f(0x177)+_0x2b9d6f(0x1c8)+_0x576e19+_0x2b9d6f(0x19b)+_0x111520);logger['info'](_0x2b9d6f(0x13b)+_0x2b9d6f(0x131)+_0x111520);const _0xaa41ab=await this[_0x2b9d6f(0x19a)+'vice'][_0x2b9d6f(0x1d9)+_0x2b9d6f(0x12a)+_0x2b9d6f(0x125)](_0x111520),_0x280385=this[_0x2b9d6f(0x190)+'rabilities'](_0xaa41ab),_0x2ffb87=this[_0x2b9d6f(0xe0)+_0x2b9d6f(0x1e0)][_0x2b9d6f(0xe8)+_0x2b9d6f(0x153)+_0x2b9d6f(0x11e)+'erInfo'](_0x280385,'ko'),_0x54cf82=await this[_0x2b9d6f(0x1d3)][_0x2b9d6f(0x17c)+_0x2b9d6f(0x1a3)+'f'](_0xaa41ab),_0x4af73a=_0x54cf82[_0x2b9d6f(0x144)]?_0x54cf82[_0x2b9d6f(0x162)]:_0x2b9d6f(0x138)+_0x2b9d6f(0x136);logger[_0x2b9d6f(0x129)]('분석\x20결과\x20생성\x20완'+'료:\x20'+_0x280385[_0x2b9d6f(0x146)]+('개\x20취약점\x20발견\x20('+_0x2b9d6f(0x121))+_0x111520+')');const _0x2ccbfe={};return _0x2ccbfe[_0x2b9d6f(0xf7)]=_0x111520,_0x2ccbfe['status']=_0x1bf6af,_0x2ccbfe[_0x2b9d6f(0x186)]=_0x506b05,_0x2ccbfe[_0x2b9d6f(0x1aa)+'ities']=_0x2ffb87,_0x2ccbfe[_0x2b9d6f(0x17f)+_0x2b9d6f(0xd6)]=_0x4af73a,_0x2ccbfe;}catch(_0x44dc41){logger[_0x2b9d6f(0x10a)]('분석\x20결과\x20조회\x20실'+'패:',_0x44dc41);throw _0x44dc41;}}async[a19_0x4e6b7b(0x173)+a19_0x4e6b7b(0x111)+a19_0x4e6b7b(0x1bd)](_0x3f2fad,_0x118a0e){const _0x5f291d=a19_0x4e6b7b,_0x5c4c0e={};_0x5c4c0e[_0x5f291d(0x1b9)]=_0x5f291d(0x1b2)+'\x20생성에\x20실패했습니'+'다.';const _0x17878c=_0x5c4c0e;try{logger[_0x5f291d(0x129)](_0x5f291d(0x127)+'시작:\x20'+_0x3f2fad);const _0x454d18=await this[_0x5f291d(0x19a)+_0x5f291d(0x1e0)][_0x5f291d(0x112)+'isCompleti'+'on'](_0x3f2fad),_0x446413=_0x454d18[_0x5f291d(0x186)]?String(_0x454d18[_0x5f291d(0x186)])[_0x5f291d(0xcc)+'e']():undefined;if(_0x446413&&_0x446413!=='SUCCESS')throw new Error(_0x5f291d(0x147)+'완료되지\x20않았습니다'+_0x5f291d(0x110)+_0x446413+(_0x5f291d(0xf5)+_0x5f291d(0xfd)+_0x5f291d(0x15a)+_0x5f291d(0x1db)));const _0x514511=_0x454d18[_0x5f291d(0xf7)]||_0x3f2fad;logger['info'](_0x5f291d(0x13b)+_0x5f291d(0x131)+_0x514511);const _0x8fcb7b=await this['sparrowSer'+'vice'][_0x5f291d(0x1d9)+_0x5f291d(0x12a)+'lts'](_0x514511),_0x3e3cb7=this[_0x5f291d(0x190)+'rabilities'](_0x8fcb7b),_0x1deb45=await this[_0x5f291d(0x1d3)]['generateSe'+_0x5f291d(0x11d)](_0x118a0e,_0x3e3cb7),_0x55cab1=_0x1deb45[_0x5f291d(0x144)]?_0x1deb45[_0x5f291d(0x162)]:_0x118a0e,_0x1d18d4=await this[_0x5f291d(0x1d3)]['generateSe'+'cureCodeBr'+_0x5f291d(0xd6)](_0x118a0e,_0x55cab1),_0x111f5f=_0x1d18d4['success']?_0x1d18d4[_0x5f291d(0x162)]:_0x17878c['kpoCr'],_0x3c0eef=DiffUtil[_0x5f291d(0x14b)+'ifiedDiff'](_0x118a0e,_0x55cab1,_0x5f291d(0x18c));logger[_0x5f291d(0x129)]('안전한\x20코드\x20생성\x20'+_0x5f291d(0x1bb)+'\x20'+_0x514511+')');const _0x44d21b={};return _0x44d21b['secureCode']=_0x55cab1,_0x44d21b[_0x5f291d(0x113)+'Brief']=_0x111f5f,_0x44d21b['diff']=_0x3c0eef,_0x44d21b;}catch(_0x207391){logger[_0x5f291d(0x10a)](_0x5f291d(0x127)+_0x5f291d(0x14a),_0x207391);throw _0x207391;}}[a19_0x4e6b7b(0x190)+a19_0x4e6b7b(0x18d)](_0x59db99){const _0x4f881a=a19_0x4e6b7b,_0x6dfc92={};_0x6dfc92['YcjeZ']='설명\x20없음';const _0x4bb63d=_0x6dfc92,_0x172678=[];for(const _0x210483 of _0x59db99){if(Array[_0x4f881a(0x105)](_0x210483))for(const _0x3c1cd8 of _0x210483){'xXoSq'!=='kalPE'?_0x3c1cd8[_0x4f881a(0xed)]&&_0x172678[_0x4f881a(0x124)]({'checkerKey':_0x3c1cd8[_0x4f881a(0xed)]||'UNKNOWN','description':this[_0x4f881a(0x1bf)+_0x4f881a(0xc9)+_0x4f881a(0x10d)](_0x3c1cd8),'severity':this[_0x4f881a(0x15c)+_0x4f881a(0x14d)](_0x3c1cd8[_0x4f881a(0xcd)]),'lineNumber':_0x3c1cd8[_0x4f881a(0x18f)],'filePath':_0x3c1cd8['filePaths']&&_0x3c1cd8[_0x4f881a(0x174)]['length']>0x0?_0x3c1cd8[_0x4f881a(0x174)][0x0]:undefined}):_0x3388f9[_0x4f881a(0x124)]({'checkerKey':_0x2eea51[_0x4f881a(0xed)]||_0x4f881a(0xde),'description':_0x556b49[_0x4f881a(0x16a)+'n']||_0x28dd8e[_0x4f881a(0x1a5)]||_0x4f881a(0x150),'severity':this[_0x4f881a(0x15c)+'y'](_0x284cc0['severity']),'lineNumber':_0x9ac510[_0x4f881a(0x18f)],'filePath':_0x2c14b2['filePath']});}else{if(_0x210483[_0x4f881a(0x1aa)+_0x4f881a(0xe3)]&&Array[_0x4f881a(0x105)](_0x210483['vulnerabil'+_0x4f881a(0xe3)]))for(const _0x29f710 of _0x210483[_0x4f881a(0x1aa)+_0x4f881a(0xe3)]){_0x172678[_0x4f881a(0x124)]({'checkerKey':_0x29f710['checkerKey']||_0x4f881a(0xde),'description':_0x29f710[_0x4f881a(0x16a)+'n']||_0x29f710[_0x4f881a(0x1a5)]||_0x4bb63d[_0x4f881a(0x1cc)],'severity':this[_0x4f881a(0x15c)+'y'](_0x29f710['severity']),'lineNumber':_0x29f710[_0x4f881a(0x18f)],'filePath':_0x29f710[_0x4f881a(0x194)]});}}}return _0x172678;}[a19_0x4e6b7b(0x1bf)+a19_0x4e6b7b(0xc9)+a19_0x4e6b7b(0x10d)](_0x3bb5e6){const _0x1e8839=a19_0x4e6b7b,_0x2f9d9b=[];_0x3bb5e6[_0x1e8839(0xed)]&&_0x2f9d9b[_0x1e8839(0x124)](_0x1e8839(0x114)+_0x3bb5e6[_0x1e8839(0xed)]);_0x3bb5e6[_0x1e8839(0x101)]&&_0x2f9d9b[_0x1e8839(0x124)]('Method:\x20'+_0x3bb5e6[_0x1e8839(0x101)]);_0x3bb5e6['filePaths']&&_0x3bb5e6[_0x1e8839(0x174)][_0x1e8839(0x146)]>0x0&&_0x2f9d9b[_0x1e8839(0x124)]('File:\x20'+_0x3bb5e6['filePaths'][0x0]);_0x3bb5e6['lineNumber']&&_0x2f9d9b[_0x1e8839(0x124)]('Line:\x20'+_0x3bb5e6[_0x1e8839(0x18f)]);_0x3bb5e6[_0x1e8839(0xcd)]&&_0x2f9d9b[_0x1e8839(0x124)](_0x1e8839(0xf0)+':\x20'+_0x3bb5e6['risk']);if(_0x3bb5e6[_0x1e8839(0xfa)]&&Array[_0x1e8839(0x105)](_0x3bb5e6['contexts'])){const _0x436f24=[];for(const _0x4501c6 of _0x3bb5e6[_0x1e8839(0xfa)]){if(_0x4501c6['eventMsgs']&&Array[_0x1e8839(0x105)](_0x4501c6[_0x1e8839(0x175)]))for(const _0x2e1595 of _0x4501c6[_0x1e8839(0x175)]){if(_0x2e1595[_0x1e8839(0x1d2)]&&Array[_0x1e8839(0x105)](_0x2e1595[_0x1e8839(0x1d2)]))for(const _0x38167b of _0x2e1595[_0x1e8839(0x1d2)]){_0x38167b['message']&&_0x436f24[_0x1e8839(0x124)](_0x38167b[_0x1e8839(0x1a5)]);}}}_0x436f24[_0x1e8839(0x146)]>0x0&&_0x2f9d9b[_0x1e8839(0x124)](_0x1e8839(0x1e5)+_0x436f24[_0x1e8839(0x1ab)](';\x20'));}return _0x2f9d9b[_0x1e8839(0x146)]>0x0?_0x2f9d9b[_0x1e8839(0x1ab)](',\x20'):_0x1e8839(0x161)+'니다.';}[a19_0x4e6b7b(0x15c)+a19_0x4e6b7b(0x14d)](_0x4a466a){const _0x32c3ec=a19_0x4e6b7b,_0x32b755={};_0x32b755[_0x32c3ec(0xee)]=_0x32c3ec(0xe2),_0x32b755[_0x32c3ec(0x142)]=_0x32c3ec(0x12b);const _0x5e99d9=_0x32b755,_0x5bb15f=typeof _0x4a466a===_0x32c3ec(0x10e)?parseInt(_0x4a466a):_0x4a466a;if(_0x5bb15f<=0x2)return _0x32c3ec(0xf8);else return _0x5bb15f===0x3?_0x5e99d9['aYvyT']:_0x5e99d9[_0x32c3ec(0x142)];}async[a19_0x4e6b7b(0x1b0)+a19_0x4e6b7b(0x1a7)+'Security'](_0x5ecda5){const _0x258393=a19_0x4e6b7b;try{logger[_0x258393(0x129)](_0x258393(0x126)+'석\x20시작:\x20'+_0x5ecda5[_0x258393(0xd1)][_0x258393(0x146)]+'개\x20파일');if(!_0x5ecda5['files']||_0x5ecda5[_0x258393(0xd1)][_0x258393(0x146)]===0x0)throw new Error(_0x258393(0x117)+_0x258393(0xcb));const _0x1b47cd=await this[_0x258393(0x12c)]['uploadMult'+_0x258393(0x15e)](_0x5ecda5[_0x258393(0xd1)],_0x5ecda5[_0x258393(0x179)+'e']);if(!_0x1b47cd[_0x258393(0x144)])throw new Error(_0x258393(0x1ce)+'\x20'+_0x1b47cd['error']);const _0x506559=_0x5ecda5[_0x258393(0xd1)][0x0]?.['fileName']||_0x258393(0xcf),_0x2a1f47={};_0x2a1f47[_0x258393(0x128)]=_0x5ecda5[_0x258393(0x179)+'e']||_0x506559,_0x2a1f47[_0x258393(0x1c5)+'t']='',_0x2a1f47[_0x258393(0x1b1)]=_0x1b47cd['key'];const _0x14c17c=_0x2a1f47,_0x554695=await this[_0x258393(0x19a)+_0x258393(0x1e0)]['requestAna'+'lysis'](_0x14c17c);logger[_0x258393(0x129)](_0x258393(0x148)+_0x258393(0x178)+_0x554695['requestId']);const _0x3332d7={};return _0x3332d7[_0x258393(0xf7)]=_0x554695[_0x258393(0xf7)]||_0x554695[_0x258393(0x10b)],_0x3332d7['status']=_0x554695[_0x258393(0x132)],_0x3332d7;}catch(_0xc91498){logger['error']('다중\x20파일\x20보안\x20분'+_0x258393(0x11b),_0xc91498);throw _0xc91498;}}async[a19_0x4e6b7b(0x1b0)+a19_0x4e6b7b(0x1a7)+a19_0x4e6b7b(0x1b4)](_0x4c6e36,_0x244080){const _0xcdb14d=a19_0x4e6b7b;try{logger[_0xcdb14d(0x129)](_0xcdb14d(0x11c)+_0xcdb14d(0x109)+_0xcdb14d(0x131)+_0x4c6e36['length']+'개\x20파일\x20경로');if(!_0x4c6e36||_0x4c6e36[_0xcdb14d(0x146)]===0x0)throw new Error(_0xcdb14d(0x123)+_0xcdb14d(0x156));const _0xcb9bfc=await this[_0xcdb14d(0x12c)][_0xcdb14d(0x1d8)+_0xcdb14d(0x14e)](_0x4c6e36,_0x244080);if(!_0xcb9bfc[_0xcdb14d(0x144)])throw new Error(_0xcdb14d(0x1ce)+'\x20'+_0xcb9bfc['error']);const _0x13ebf3=a19_0x4b663a['basename'](_0x4c6e36[0x0])||_0xcdb14d(0xcf),_0x9b22b6={};_0x9b22b6['fileName']=_0x244080||_0x13ebf3,_0x9b22b6[_0xcdb14d(0x1c5)+'t']='',_0x9b22b6[_0xcdb14d(0x1b1)]=_0xcb9bfc['key'];const _0x43be37=_0x9b22b6,_0x3a7cd7=await this['sparrowSer'+_0xcdb14d(0x1e0)][_0xcdb14d(0x172)+_0xcdb14d(0x15d)](_0x43be37);logger[_0xcdb14d(0x129)](_0xcdb14d(0x17a)+_0xcdb14d(0xd2)+_0x3a7cd7[_0xcdb14d(0x10b)]);const _0x2f4d7b={};return _0x2f4d7b['analysisId']=_0x3a7cd7[_0xcdb14d(0xf7)]||_0x3a7cd7[_0xcdb14d(0x10b)],_0x2f4d7b['status']=_0x3a7cd7[_0xcdb14d(0x132)],_0x2f4d7b;}catch(_0x15e22b){logger[_0xcdb14d(0x10a)](_0xcdb14d(0x108)+_0xcdb14d(0x145)+':',_0x15e22b);throw _0x15e22b;}}async[a19_0x4e6b7b(0x1d4)+a19_0x4e6b7b(0xe5)](_0x2f8ec2,_0x3d822d){const _0x320081=a19_0x4e6b7b,_0x28cd67={};_0x28cd67[_0x320081(0x1cf)]=_0x320081(0xcf);const _0x460a50=_0x28cd67;try{logger['info']('ZIP\x20파일\x20기반\x20'+_0x320081(0x157)+_0x2f8ec2);if(!_0x2f8ec2)throw new Error(_0x320081(0x154)+'\x20제공되지\x20않았습니'+'다.');const _0x5ce954=await this[_0x320081(0x12c)][_0x320081(0x17b)+_0x320081(0x1a8)](_0x2f8ec2);if(!_0x5ce954[_0x320081(0x144)])throw new Error(_0x320081(0x1af)+_0x320081(0xdf)+_0x5ce954['error']);const _0xaa986f=_0x3d822d||a19_0x4b663a[_0x320081(0xd0)](_0x2f8ec2)||_0x460a50[_0x320081(0x1cf)],_0x117784={};_0x117784['fileName']=_0xaa986f,_0x117784['fileConten'+'t']='',_0x117784['s3Key']=_0x5ce954['key'];const _0x5c7a9f=_0x117784,_0x2a1f88=await this[_0x320081(0x19a)+'vice'][_0x320081(0x172)+_0x320081(0x15d)](_0x5c7a9f);logger[_0x320081(0x129)](_0x320081(0x12d)+'분석\x20요청\x20완료:\x20'+_0x2a1f88[_0x320081(0x10b)]);const _0x5d7af2={};return _0x5d7af2[_0x320081(0xf7)]=_0x2a1f88[_0x320081(0xf7)]||_0x2a1f88['requestId'],_0x5d7af2[_0x320081(0x132)]=_0x2a1f88[_0x320081(0x132)],_0x5d7af2;}catch(_0x4dd996){logger[_0x320081(0x10a)](_0x320081(0x12d)+_0x320081(0x137)+'패:',_0x4dd996);throw _0x4dd996;}}async[a19_0x4e6b7b(0x143)+a19_0x4e6b7b(0x140)](_0x2cd071,_0x35904b){const _0x53f5d4=a19_0x4e6b7b;try{logger['info']('폴더\x20기반\x20보안\x20분'+_0x53f5d4(0x184)+_0x2cd071);if(!_0x2cd071){if(_0x53f5d4(0x106)==='IIdbJ')throw new Error(_0x53f5d4(0x183)+'지\x20않았습니다.');else _0x33e9c5[_0x53f5d4(0x1a5)]&&_0x545030[_0x53f5d4(0x124)](_0x55d7c7[_0x53f5d4(0x1a5)]);}const _0x527ff4=await this[_0x53f5d4(0x12c)]['uploadFold'+_0x53f5d4(0x158)](_0x2cd071,_0x35904b);if(!_0x527ff4[_0x53f5d4(0x144)])throw new Error(_0x53f5d4(0x19e)+_0x53f5d4(0xe4)+_0x527ff4[_0x53f5d4(0x10a)]);const _0x3864ba=_0x35904b||a19_0x4b663a[_0x53f5d4(0xd0)](_0x2cd071)||_0x53f5d4(0x180),_0xd52561={};_0xd52561['fileName']=_0x3864ba,_0xd52561[_0x53f5d4(0x1c5)+'t']='',_0xd52561[_0x53f5d4(0x1b1)]=_0x527ff4[_0x53f5d4(0x16f)];const _0x26868a=_0xd52561,_0x1e9210=await this[_0x53f5d4(0x19a)+_0x53f5d4(0x1e0)][_0x53f5d4(0x172)+_0x53f5d4(0x15d)](_0x26868a);logger[_0x53f5d4(0x129)](_0x53f5d4(0x19f)+_0x53f5d4(0x178)+_0x1e9210[_0x53f5d4(0x10b)]);const _0x5571fb={};return _0x5571fb[_0x53f5d4(0xf7)]=_0x1e9210[_0x53f5d4(0xf7)]||_0x1e9210['requestId'],_0x5571fb[_0x53f5d4(0x132)]=_0x1e9210['status'],_0x5571fb[_0x53f5d4(0x12f)+_0x53f5d4(0x1ad)]=_0x527ff4[_0x53f5d4(0x12f)+_0x53f5d4(0x1ad)],_0x5571fb;}catch(_0x4892c3){logger['error'](_0x53f5d4(0x1da)+_0x53f5d4(0x11b),_0x4892c3);throw _0x4892c3;}}async[a19_0x4e6b7b(0x1e2)+a19_0x4e6b7b(0x195)](_0x1101e3,_0x4cc8c1){const _0x583602=a19_0x4e6b7b,_0x121d05={};_0x121d05[_0x583602(0x160)]=function(_0x350239,_0xc613c9){return _0x350239||_0xc613c9;};const _0x353ea9=_0x121d05;try{logger[_0x583602(0x129)]('단일\x20파일\x20SCA\x20'+_0x583602(0x176)+_0x1101e3);if(!_0x1101e3)throw new Error(_0x583602(0x123)+_0x583602(0x156));const _0x34a0af=await this[_0x583602(0x12c)][_0x583602(0x1d8)+_0x583602(0x14e)]([_0x1101e3],_0x4cc8c1);if(!_0x34a0af['success'])throw new Error('파일\x20업로드\x20실패:'+'\x20'+_0x34a0af[_0x583602(0x10a)]);const _0x28e22e=a19_0x4b663a[_0x583602(0xd0)](_0x1101e3)||_0x583602(0xcf),_0x3aa125={'fileName':_0x353ea9[_0x583602(0x160)](_0x4cc8c1,_0x28e22e),'fileContent':'','s3Key':_0x34a0af[_0x583602(0x16f)]},_0x58f9e6=await this[_0x583602(0x19a)+_0x583602(0x1e0)]['requestSca'+_0x583602(0xfe)](_0x3aa125);logger[_0x583602(0x129)](_0x583602(0x1d5)+_0x583602(0xda)+_0x58f9e6[_0x583602(0x10b)]);const _0xf2a2df={};return _0xf2a2df[_0x583602(0xf7)]=_0x58f9e6['analysisId']||_0x58f9e6[_0x583602(0x10b)],_0xf2a2df[_0x583602(0x132)]=_0x58f9e6['status'],_0xf2a2df[_0x583602(0x165)+'pe']=_0x583602(0x116),_0xf2a2df;}catch(_0x311744){logger[_0x583602(0x10a)]('단일\x20파일\x20SCA\x20'+_0x583602(0x151),_0x311744);throw _0x311744;}}async['analyzeFil'+a19_0x4e6b7b(0xd5)](_0x5975dc,_0x2a7408){const _0x34e96f=a19_0x4e6b7b;try{logger['info'](_0x34e96f(0x118)+_0x34e96f(0xe9)+_0x5975dc[_0x34e96f(0x146)]+_0x34e96f(0x1b7));if(!_0x5975dc||_0x5975dc[_0x34e96f(0x146)]===0x0)throw new Error('분석할\x20파일\x20경로가'+'\x20없습니다.');const _0x3eadc9=await this['s3Service'][_0x34e96f(0x1d8)+_0x34e96f(0x14e)](_0x5975dc,_0x2a7408);if(!_0x3eadc9[_0x34e96f(0x144)])throw new Error(_0x34e96f(0x1ce)+'\x20'+_0x3eadc9[_0x34e96f(0x10a)]);const _0xc3d862=a19_0x4b663a[_0x34e96f(0xd0)](_0x5975dc[0x0])||_0x34e96f(0xcf),_0x16f719={};_0x16f719[_0x34e96f(0x128)]=_0x2a7408||_0xc3d862,_0x16f719['fileConten'+'t']='',_0x16f719[_0x34e96f(0x1b1)]=_0x3eadc9[_0x34e96f(0x16f)];const _0x1930a8=_0x16f719,_0x507c21=await this[_0x34e96f(0x19a)+_0x34e96f(0x1e0)][_0x34e96f(0x115)+_0x34e96f(0xfe)](_0x1930a8);logger[_0x34e96f(0x129)](_0x34e96f(0x118)+'CA\x20분석\x20요청\x20완'+_0x34e96f(0x1b8)+_0x507c21[_0x34e96f(0x10b)]);const _0x46aca7={};return _0x46aca7[_0x34e96f(0xf7)]=_0x507c21['analysisId']||_0x507c21[_0x34e96f(0x10b)],_0x46aca7[_0x34e96f(0x132)]=_0x507c21[_0x34e96f(0x132)],_0x46aca7[_0x34e96f(0x165)+'pe']=_0x34e96f(0x116),_0x46aca7;}catch(_0x3c8149){logger['error'](_0x34e96f(0x118)+'CA\x20분석\x20요청\x20실'+'패:',_0x3c8149);throw _0x3c8149;}}async[a19_0x4e6b7b(0x143)+a19_0x4e6b7b(0xd8)](_0x3bd88f,_0x44a7cd){const _0x5d239d=a19_0x4e6b7b;try{logger['info'](_0x5d239d(0x181)+'분석\x20시작:\x20'+_0x3bd88f);if(!_0x3bd88f)throw new Error(_0x5d239d(0x183)+_0x5d239d(0x1a1));const _0x41a86e=await this['s3Service'][_0x5d239d(0x16e)+'erAsZip'](_0x3bd88f,_0x44a7cd);if(!_0x41a86e['success'])throw new Error(_0x5d239d(0x19e)+_0x5d239d(0xe4)+_0x41a86e[_0x5d239d(0x10a)]);const _0x21d1ee=_0x44a7cd||a19_0x4b663a['basename'](_0x3bd88f)||_0x5d239d(0x180),_0x5b9600={};_0x5b9600[_0x5d239d(0x128)]=_0x21d1ee,_0x5b9600[_0x5d239d(0x1c5)+'t']='',_0x5b9600[_0x5d239d(0x1b1)]=_0x41a86e[_0x5d239d(0x16f)];const _0xc4097c=_0x5b9600,_0x59474f=await this[_0x5d239d(0x19a)+_0x5d239d(0x1e0)]['requestSca'+'Analysis'](_0xc4097c);logger[_0x5d239d(0x129)](_0x5d239d(0x181)+_0x5d239d(0xda)+_0x59474f['requestId']);const _0x506dec={};return _0x506dec['analysisId']=_0x59474f['analysisId']||_0x59474f[_0x5d239d(0x10b)],_0x506dec[_0x5d239d(0x132)]=_0x59474f[_0x5d239d(0x132)],_0x506dec[_0x5d239d(0x165)+'pe']=_0x5d239d(0x116),_0x506dec[_0x5d239d(0x12f)+_0x5d239d(0x1ad)]=_0x41a86e[_0x5d239d(0x12f)+_0x5d239d(0x1ad)],_0x506dec;}catch(_0xa65c39){logger[_0x5d239d(0x10a)](_0x5d239d(0x181)+_0x5d239d(0x151),_0xa65c39);throw _0xa65c39;}}async[a19_0x4e6b7b(0x1d4)+'Sca'](_0x1e8146,_0x3214d1){const _0x509d26=a19_0x4e6b7b,_0x56a2e6={};_0x56a2e6[_0x509d26(0x1df)]=_0x509d26(0x116);const _0x486f17=_0x56a2e6;try{logger['info']('ZIP\x20파일\x20기반\x20'+_0x509d26(0xe1)+'\x20'+_0x1e8146);if(!_0x1e8146)throw new Error('ZIP\x20파일\x20경로가'+_0x509d26(0xf9)+'다.');const _0x1a125e=await this['s3Service'][_0x509d26(0x17b)+_0x509d26(0x1a8)](_0x1e8146);if(!_0x1a125e[_0x509d26(0x144)])throw new Error('ZIP\x20파일\x20업로드'+'\x20실패:\x20'+_0x1a125e[_0x509d26(0x10a)]);const _0x12104b=_0x3214d1||a19_0x4b663a[_0x509d26(0xd0)](_0x1e8146)||_0x509d26(0xcf),_0x41e58b={};_0x41e58b[_0x509d26(0x128)]=_0x12104b,_0x41e58b['fileConten'+'t']='',_0x41e58b[_0x509d26(0x1b1)]=_0x1a125e[_0x509d26(0x16f)];const _0x2edc8f=_0x41e58b,_0xba0970=await this['sparrowSer'+'vice'][_0x509d26(0x115)+'Analysis'](_0x2edc8f);logger[_0x509d26(0x129)](_0x509d26(0x12d)+_0x509d26(0x16d)+'완료:\x20'+_0xba0970['requestId']);const _0x305906={};return _0x305906[_0x509d26(0xf7)]=_0xba0970[_0x509d26(0xf7)]||_0xba0970[_0x509d26(0x10b)],_0x305906[_0x509d26(0x132)]=_0xba0970['status'],_0x305906[_0x509d26(0x165)+'pe']=_0x486f17[_0x509d26(0x1df)],_0x305906;}catch(_0x5670c5){logger['error'](_0x509d26(0x12d)+_0x509d26(0x16d)+_0x509d26(0x14a),_0x5670c5);throw _0x5670c5;}}[a19_0x4e6b7b(0x15c)+'y'](_0x18c3bf){const _0x38e2cb=a19_0x4e6b7b,_0x9245b9={};_0x9245b9[_0x38e2cb(0xf8)]=_0x38e2cb(0xf8),_0x9245b9[_0x38e2cb(0xf6)]='HIGH',_0x9245b9['MEDIUM']=_0x38e2cb(0xe2),_0x9245b9[_0x38e2cb(0x12b)]='LOW',_0x9245b9[_0x38e2cb(0x13e)]=_0x38e2cb(0x12b);const _0x1df6b2=_0x9245b9;return _0x1df6b2[_0x18c3bf?.[_0x38e2cb(0xcc)+'e']()]||_0x38e2cb(0xe2);}async[a19_0x4e6b7b(0x149)+a19_0x4e6b7b(0x15f)+'s'](_0x33d296){const _0x3e257a=a19_0x4e6b7b,_0x42fac9={};_0x42fac9[_0x3e257a(0x1a4)]='SCA\x20분석\x20결과\x20'+_0x3e257a(0x163);const _0x59fb42=_0x42fac9;try{if(this[_0x3e257a(0xf2)+_0x3e257a(0x1de)]['has'](_0x33d296))return logger[_0x3e257a(0x129)]('SCA\x20분석\x20결과\x20'+_0x3e257a(0x103)+_0x33d296),this[_0x3e257a(0xf2)+_0x3e257a(0x1de)]['get'](_0x33d296);logger[_0x3e257a(0x129)]('SCA\x20분석\x20결과\x20'+_0x3e257a(0x166)+_0x33d296);const _0xe1ccc1=await this[_0x3e257a(0x19a)+'vice'][_0x3e257a(0x112)+_0x3e257a(0x1a0)+'on'](_0x33d296),_0x2b5c1e=_0xe1ccc1[_0x3e257a(0x186)]?String(_0xe1ccc1['result'])[_0x3e257a(0xcc)+'e']():undefined;let _0x3a1507;_0x2b5c1e===_0x3e257a(0x135)||_0x2b5c1e===_0x3e257a(0xdb)?_0x3a1507=_0x3e257a(0x11a):_0x3a1507='completed';const _0x371fcf=_0xe1ccc1[_0x3e257a(0xf7)]||_0x33d296;logger['info'](_0x3e257a(0x102)+_0x3e257a(0x1c3)+_0x371fcf);const _0x5e7799=await this[_0x3e257a(0x19a)+'vice'][_0x3e257a(0x1d9)+_0x3e257a(0x12a)+'lts'](_0x371fcf),_0x37584e=this[_0x3e257a(0x104)+_0x3e257a(0x191)](_0x5e7799);let _0x768db9=0x0,_0x5f5221=0x0,_0x336582=0x0,_0x4898ad=0x0;for(const _0x2a7dde of _0x37584e){for(const _0x215c2d of _0x2a7dde[_0x3e257a(0x1cd)]){switch(_0x215c2d[_0x3e257a(0xea)]){case _0x3e257a(0xf6):_0x768db9++;break;case'HIGH':_0x5f5221++;break;case _0x3e257a(0xe2):_0x336582++;break;case _0x3e257a(0x12b):_0x4898ad++;break;}}}const _0x388bb9=_0x768db9+_0x5f5221+_0x336582+_0x4898ad,_0x122e2d=this[_0x3e257a(0xeb)+_0x3e257a(0x155)+'ef'](_0x37584e,_0x388bb9,_0x768db9,_0x5f5221,_0x336582,_0x4898ad),_0x18e28d={};_0x18e28d[_0x3e257a(0xf7)]=_0x371fcf,_0x18e28d['status']=_0x3a1507,_0x18e28d[_0x3e257a(0x186)]=_0x2b5c1e,_0x18e28d['components']=_0x37584e,_0x18e28d[_0x3e257a(0xd9)+_0x3e257a(0x18d)]=_0x388bb9,_0x18e28d[_0x3e257a(0x13c)+_0x3e257a(0x1c7)]=_0x768db9,_0x18e28d[_0x3e257a(0x107)]=_0x5f5221,_0x18e28d[_0x3e257a(0x10f)+'t']=_0x336582,_0x18e28d[_0x3e257a(0x189)]=_0x4898ad,_0x18e28d['analysisBr'+_0x3e257a(0xd6)]=_0x122e2d;const _0x392b5c=_0x18e28d;return this['scaResults'+_0x3e257a(0x1de)][_0x3e257a(0xdc)](_0x33d296,_0x392b5c),_0x371fcf!==_0x33d296&&this[_0x3e257a(0xf2)+_0x3e257a(0x1de)][_0x3e257a(0xdc)](_0x371fcf,_0x392b5c),logger[_0x3e257a(0x129)](_0x3e257a(0x102)+_0x3e257a(0x119)+_0x37584e[_0x3e257a(0x146)]+_0x3e257a(0x17d)+_0x388bb9+_0x3e257a(0x1be)),_0x392b5c;}catch(_0x55c084){logger[_0x3e257a(0x10a)](_0x59fb42[_0x3e257a(0x1a4)],_0x55c084);throw _0x55c084;}}[a19_0x4e6b7b(0x104)+a19_0x4e6b7b(0x191)](_0x3e9430){const _0x52e4cd=a19_0x4e6b7b,_0x355ba5={};_0x355ba5['JYgRz']=_0x52e4cd(0x193);const _0x2ffd16=_0x355ba5,_0x4db733=[];for(const _0x2705ee of _0x3e9430){if(_0x2705ee[_0x52e4cd(0x19d)]&&_0x2705ee[_0x52e4cd(0xd4)]!==undefined){const _0x550517=[];if(_0x2705ee[_0x52e4cd(0x152)]&&Array['isArray'](_0x2705ee[_0x52e4cd(0x152)]))for(const _0x5aced2 of _0x2705ee[_0x52e4cd(0x152)]){const _0x2733f3={};_0x2733f3['name']=_0x5aced2['name']||_0x5aced2[_0x52e4cd(0x1e1)]||_0x2ffd16[_0x52e4cd(0x1ca)],_0x2733f3[_0x52e4cd(0x1e1)]=_0x5aced2[_0x52e4cd(0x1e1)],_0x2733f3[_0x52e4cd(0x169)]=_0x5aced2['url'],_0x550517[_0x52e4cd(0x124)](_0x2733f3);}const _0x1bcb95=[];if(_0x2705ee[_0x52e4cd(0x1cd)]&&Array['isArray'](_0x2705ee[_0x52e4cd(0x1cd)]))for(const _0x454746 of _0x2705ee['issues']){_0x1bcb95[_0x52e4cd(0x124)]({'cveId':_0x454746[_0x52e4cd(0x14c)]||_0x454746['id']||_0x2ffd16['JYgRz'],'severity':this[_0x52e4cd(0x1b5)+_0x52e4cd(0x1c0)](_0x454746[_0x52e4cd(0xea)]||_0x454746[_0x52e4cd(0xcd)]),'cvssScore':_0x454746[_0x52e4cd(0x1ba)]||_0x454746[_0x52e4cd(0x1e4)],'description':_0x454746[_0x52e4cd(0x16a)+'n']||_0x454746[_0x52e4cd(0x10c)],'fixedVersion':_0x454746['fixedVersi'+'on']||_0x454746[_0x52e4cd(0x167)+_0x52e4cd(0xe6)]});}const _0x164c51={};_0x164c51[_0x52e4cd(0x19d)]=_0x2705ee['name'],_0x164c51[_0x52e4cd(0xd4)]=_0x2705ee[_0x52e4cd(0xd4)]||_0x2ffd16[_0x52e4cd(0x1ca)],_0x164c51[_0x52e4cd(0x164)]=_0x2705ee[_0x52e4cd(0x164)],_0x164c51['repository']=_0x2705ee['repository'],_0x164c51[_0x52e4cd(0x1d6)+_0x52e4cd(0x1dc)]=_0x2705ee['repository'+_0x52e4cd(0x1dc)],_0x164c51[_0x52e4cd(0xca)]=_0x2705ee['matchType'],_0x164c51[_0x52e4cd(0x152)]=_0x550517,_0x164c51[_0x52e4cd(0x1cd)]=_0x1bcb95,_0x164c51[_0x52e4cd(0x192)+_0x52e4cd(0x1a2)]=_0x2705ee[_0x52e4cd(0x192)+_0x52e4cd(0x1a2)],_0x164c51[_0x52e4cd(0x1cb)+_0x52e4cd(0x15b)]=_0x2705ee[_0x52e4cd(0x1cb)+_0x52e4cd(0x15b)],_0x4db733[_0x52e4cd(0x124)](_0x164c51);}else{if(Array[_0x52e4cd(0x105)](_0x2705ee))for(const _0x4e8cf8 of _0x2705ee){if(_0x4e8cf8[_0x52e4cd(0x19d)]&&_0x4e8cf8[_0x52e4cd(0xd4)]!==undefined){const _0x2ec69f=[];if(_0x4e8cf8[_0x52e4cd(0x152)]&&Array[_0x52e4cd(0x105)](_0x4e8cf8[_0x52e4cd(0x152)]))for(const _0x56edec of _0x4e8cf8[_0x52e4cd(0x152)]){const _0x592796={};_0x592796[_0x52e4cd(0x19d)]=_0x56edec['name']||_0x56edec[_0x52e4cd(0x1e1)]||_0x52e4cd(0x193),_0x592796[_0x52e4cd(0x1e1)]=_0x56edec[_0x52e4cd(0x1e1)],_0x592796[_0x52e4cd(0x169)]=_0x56edec[_0x52e4cd(0x169)],_0x2ec69f[_0x52e4cd(0x124)](_0x592796);}const _0x3ff26c=[];if(_0x4e8cf8['issues']&&Array[_0x52e4cd(0x105)](_0x4e8cf8['issues']))for(const _0x11881d of _0x4e8cf8[_0x52e4cd(0x1cd)]){_0x3ff26c['push']({'cveId':_0x11881d[_0x52e4cd(0x14c)]||_0x11881d['id']||'Unknown','severity':this[_0x52e4cd(0x1b5)+'rity'](_0x11881d[_0x52e4cd(0xea)]||_0x11881d[_0x52e4cd(0xcd)]),'cvssScore':_0x11881d[_0x52e4cd(0x1ba)]||_0x11881d[_0x52e4cd(0x1e4)],'description':_0x11881d['descriptio'+'n']||_0x11881d['summary'],'fixedVersion':_0x11881d['fixedVersi'+'on']||_0x11881d['patchedVer'+_0x52e4cd(0xe6)]});}const _0x118e8c={};_0x118e8c[_0x52e4cd(0x19d)]=_0x4e8cf8[_0x52e4cd(0x19d)],_0x118e8c[_0x52e4cd(0xd4)]=_0x4e8cf8[_0x52e4cd(0xd4)]||_0x52e4cd(0x193),_0x118e8c[_0x52e4cd(0x164)]=_0x4e8cf8[_0x52e4cd(0x164)],_0x118e8c[_0x52e4cd(0x1d6)]=_0x4e8cf8['repository'],_0x118e8c[_0x52e4cd(0x1d6)+_0x52e4cd(0x1dc)]=_0x4e8cf8[_0x52e4cd(0x1d6)+_0x52e4cd(0x1dc)],_0x118e8c[_0x52e4cd(0xca)]=_0x4e8cf8['matchType'],_0x118e8c[_0x52e4cd(0x152)]=_0x2ec69f,_0x118e8c[_0x52e4cd(0x1cd)]=_0x3ff26c,_0x118e8c[_0x52e4cd(0x192)+'Score']=_0x4e8cf8[_0x52e4cd(0x192)+'Score'],_0x118e8c[_0x52e4cd(0x1cb)+'ate']=_0x4e8cf8[_0x52e4cd(0x1cb)+_0x52e4cd(0x15b)],_0x4db733[_0x52e4cd(0x124)](_0x118e8c);}}}}return _0x4db733;}[a19_0x4e6b7b(0x1b5)+a19_0x4e6b7b(0x1c0)](_0x12c2b2){const _0x41bcf5=a19_0x4e6b7b,_0x139d3f={};_0x139d3f[_0x41bcf5(0x1bc)]=function(_0x24c406,_0x16d0b1){return _0x24c406===_0x16d0b1;},_0x139d3f[_0x41bcf5(0x13a)]=function(_0x37a8b3,_0x39919e){return _0x37a8b3>=_0x39919e;};const _0x2ab919=_0x139d3f;if(_0x2ab919[_0x41bcf5(0x1bc)](typeof _0x12c2b2,_0x41bcf5(0x1c9))){if(_0x12c2b2>=0x9)return'CRITICAL';if(_0x2ab919[_0x41bcf5(0x13a)](_0x12c2b2,0x7))return'HIGH';if(_0x12c2b2>=0x4)return'MEDIUM';return _0x41bcf5(0x12b);}const _0xdaae96={};_0xdaae96['CRITICAL']=_0x41bcf5(0xf6),_0xdaae96[_0x41bcf5(0xf8)]=_0x41bcf5(0xf8),_0xdaae96[_0x41bcf5(0xe2)]=_0x41bcf5(0xe2),_0xdaae96['LOW']=_0x41bcf5(0x12b),_0xdaae96[_0x41bcf5(0x13e)]='LOW';const _0x100a1c=_0xdaae96;return _0x100a1c[_0x12c2b2?.[_0x41bcf5(0xcc)+'e']()]||_0x41bcf5(0xe2);}[a19_0x4e6b7b(0xeb)+'aReportBri'+'ef'](_0x4cd2de,_0x433d1d,_0x1a3bea,_0x2c4810,_0x377787,_0x14547f){const _0x37763b=a19_0x4e6b7b,_0x20ced7=_0x4cd2de[_0x37763b(0x1d0)](_0x53d484=>_0x53d484[_0x37763b(0x1cd)][_0x37763b(0x146)]>0x0),_0xfd1dd8=new Set();for(const _0xab5608 of _0x4cd2de){for(const _0x2e8313 of _0xab5608[_0x37763b(0x152)]){_0xfd1dd8[_0x37763b(0x188)](_0x2e8313[_0x37763b(0x19d)]);}}let _0x562095='식별된\x20컴포넌트\x20'+_0x4cd2de['length']+_0x37763b(0xef)+_0x20ced7[_0x37763b(0x146)]+('개에서\x20취약점\x20발견'+'.\x20');_0x562095+='총\x20'+_0x433d1d+(_0x37763b(0x170)+'tical:\x20')+_0x1a3bea+',\x20High:\x20'+_0x2c4810+',\x20Medium:\x20'+_0x377787+_0x37763b(0xf3)+_0x14547f+_0x37763b(0x14f);_0xfd1dd8[_0x37763b(0x1d7)]>0x0&&(_0x562095+=_0x37763b(0x185)+Array[_0x37763b(0x198)](_0xfd1dd8)[_0x37763b(0x122)](0x0,0x5)[_0x37763b(0x1ab)](',\x20')+(_0xfd1dd8['size']>0x5?_0x37763b(0x171)+(_0xfd1dd8[_0x37763b(0x1d7)]-0x5)+'개':'')+'.\x20');if(_0x1a3bea>0x0||_0x2c4810>0x0)_0x562095+=_0x37763b(0x16c)+_0x37763b(0x168)+'데이트\x20권장.';else _0x377787>0x0?_0x562095+=_0x37763b(0x199)+_0x37763b(0xec)+'.':_0x562095+=_0x37763b(0x1c2)+'양호.';return _0x562095;}}
1
+ const a19_0x567618=a19_0x3ba0;(function(_0x19ff40,_0x89a34b){const _0x3d0a6a=a19_0x3ba0,_0x5ce31d=_0x19ff40();while(!![]){try{const _0x1d8287=-parseInt(_0x3d0a6a(0xdc))/0x1+parseInt(_0x3d0a6a(0x193))/0x2*(-parseInt(_0x3d0a6a(0xb4))/0x3)+-parseInt(_0x3d0a6a(0xce))/0x4+parseInt(_0x3d0a6a(0xbf))/0x5*(-parseInt(_0x3d0a6a(0x113))/0x6)+parseInt(_0x3d0a6a(0x16d))/0x7*(-parseInt(_0x3d0a6a(0xfb))/0x8)+-parseInt(_0x3d0a6a(0xb6))/0x9+parseInt(_0x3d0a6a(0x17c))/0xa;if(_0x1d8287===_0x89a34b)break;else _0x5ce31d['push'](_0x5ce31d['shift']());}catch(_0x349b4c){_0x5ce31d['push'](_0x5ce31d['shift']());}}}(a19_0xf40f,0x43909));const a19_0x49ff7b=(function(){let _0x1780b4=!![];return function(_0x31a60b,_0x259207){const _0x4236ba=_0x1780b4?function(){const _0x5b5000=a19_0x3ba0;if(_0x259207){const _0x2e1968=_0x259207[_0x5b5000(0x185)](_0x31a60b,arguments);return _0x259207=null,_0x2e1968;}}:function(){};return _0x1780b4=![],_0x4236ba;};}()),a19_0x385b4c=a19_0x49ff7b(this,function(){const _0x5c4cb1=a19_0x3ba0;return a19_0x385b4c[_0x5c4cb1(0xc4)]()['search'](_0x5c4cb1(0x174)+'+$')[_0x5c4cb1(0xc4)]()[_0x5c4cb1(0x178)+'r'](a19_0x385b4c)[_0x5c4cb1(0x13d)]('(((.+)+)+)'+'+$');});a19_0x385b4c();import{LLMService}from'./llm.service.js';import{SparrowService}from'./sparrow.service.js';import{S3Service}from'./s3.service.js';function a19_0x3ba0(_0x4b0dca,_0x166e39){_0x4b0dca=_0x4b0dca-0xaf;const _0x407a18=a19_0xf40f();let _0x385b4c=_0x407a18[_0x4b0dca];return _0x385b4c;}import{CheckerService}from'./checker.service.js';import{DiffUtil}from'../utils/diff.util.js';function a19_0xf40f(){const _0x5150e8=['analyzeFil','analysisBr','downloadAn','\x20시작:\x20','404435sEXJdH','parseScaCo','분석할\x20파일\x20경로가','Service','content','toString','name','개에서\x20취약점\x20발견','개\x20취약점\x20(Cri','omAnalysis','result','filter','zipFileNam','get','식별된\x20컴포넌트\x20','1735716sYrDYn','폴더\x20기반\x20보안\x20분','s3Service','mediumCoun','mponents','requestId','success','input.zip','Analysis\x20n','vulnerabil','alysisResu','getScaAnal','summary','skippedFol','392508sIanxZ','단일\x20파일\x20SCA\x20','risk','ifiedDiff','ot\x20success','s3Key','getAnalysi','getChecker','eSecurity','toUpperCas','CA\x20분석\x20시작:\x20','FAIL','개\x20파일\x20경로','SCA\x20분석\x20시작:','tipleFiles','publishedD','checkerSer','rity','Brief','repository','fileConten','requestAna','nd.\x20(High:','CA\x20분석\x20요청\x20실','사용\x20라이선스:\x20','failed','uploadZipF','analyzeMul','HIGH','pollAnalys','cureCode','16RSdEhj','llmService','unt','aReportBri','generateUn','안\x20분석\x20요청\x20실패','mapScaSeve','보안\x20분석\x20시작:\x20','zDElW','cureCodeBr','석\x20요청\x20완료:\x20','sion','vice','ysisResult','\x20없습니다.','size','OyZFo','fixedVersi','matchType','analysisTy','files','analyzeFol','analyzeZip','폴더\x20기반\x20분석\x20요','6lFVXaj','message','lysis','sparrowSer','CA\x20분석\x20요청\x20완','version','Cache','\x20제공되지\x20않았습니','push','sResults','descriptio',').\x20','nalysis\x20re','다중\x20파일\x20분석\x20요','긴급\x20조치\x20필요:\x20','개\x20컴포넌트,\x20','aAVzz','progress','캐시\x20히트:\x20','SOyYp','양호.','\x20실패:\x20','ate','lts','basename','SCA\x20분석\x20결과\x20','Total\x20','폴더\x20기반\x20SCA\x20','tion','니다.','isArray',',\x20Result:\x20','scaResults','analysisId','lineNumber','분석\x20요청\x20완료:\x20','CRITICAL','checker','mjTjt','etailed\x20re','uploadFold','der','search','LOW','Unknown','조회:\x20','ful.\x20Statu','다중\x20파일\x20보안\x20분','url','has','eJtoM','tical:\x20','number','료:\x20','No\x20descrip','파일\x20경로\x20기반\x20보','set','드\x20실패:\x20','derSca',',\x20Medium:\x20','initialize','score','라이브러리\x20버전\x20업','ipleFiles','severity','SUCCESS','SMLCc','ief','파일\x20경로\x20기반\x20S','SCA','분석\x20요청\x20실패:','분석\x20시작:\x20','cureCodeFr','MEDIUM','STOP','cveId','retrieve\x20d','청\x20완료:\x20','COMPLETE','checkerNam','sFromPaths','rabilities','confidence','석\x20요청\x20실패:','uploadMult','licenses','sults\x20for\x20','fileName','생성\x20완료:\x20','ities','1609279lNOBHG','파일\x20경로\x20기반\x20분','length','wyZxE','Score','status','폴더\x20압축\x20및\x20업로','(((.+)+)+)','ders','ptYzQ','info','constructo','파일\x20경로\x20기반\x20다','completed','cvssScore','22251830rMdMKq','eSca','CheckerSer','전반적\x20보안\x20상태\x20','ZIP\x20파일\x20경로가','Failed\x20to\x20','folder.zip','ZIP\x20파일\x20기반\x20','개\x20파일','apply','보안\x20분석\x20요청\x20실','requestSca','조치\x20권장:\x20보안\x20','code.java','lXBCU','diff','SCA\x20분석\x20요청\x20','FromPaths','key','error','issues','uploadFile','spdxId','536506vyUTjf','Analysis','download\x20a','from','generateSc','mapSeverit','데이트\x20권장.','memo','폴더\x20경로가\x20제공되','generateSe',',\x20Low:\x20','esSca','6RFzQkv','업데이트\x20검토\x20필요','403326ORlOxF','Uri','파일\x20업로드\x20실패:','ZIP\x20파일\x20업로드','purl'];a19_0xf40f=function(){return _0x5150e8;};return a19_0xf40f();}import{logger}from'../utils/logger.js';import a19_0x1be371 from'path';export class AnalysisService{[a19_0x567618(0xfc)];[a19_0x567618(0x116)+'vice'];[a19_0x567618(0xd0)];['checkerSer'+a19_0x567618(0x107)];['scaResults'+a19_0x567618(0x119)]=new Map();constructor(){const _0x46ffc0=a19_0x567618;this['llmService']=new LLMService(),this[_0x46ffc0(0x116)+_0x46ffc0(0x107)]=new SparrowService(),this['s3Service']=new S3Service(),this[_0x46ffc0(0xec)+_0x46ffc0(0x107)]=new CheckerService();}async['initialize'+a19_0x567618(0x17e)+a19_0x567618(0x107)](){const _0x2ac01=a19_0x567618;await this['checkerSer'+_0x2ac01(0x107)][_0x2ac01(0x14f)]();}[a19_0x567618(0xe3)+a19_0x567618(0xc2)](){return this['checkerSer'+'vice'];}async['analyzeFil'+a19_0x567618(0xe4)](_0x36af28){const _0x519439=a19_0x567618;try{logger[_0x519439(0x177)](_0x519439(0x102)+_0x36af28[_0x519439(0x16a)]);const _0x19575f=await this[_0x519439(0xd0)][_0x519439(0x191)](_0x36af28[_0x519439(0xf0)+'t'],_0x36af28[_0x519439(0x16a)]);if(!_0x19575f['success'])throw new Error(_0x519439(0xb8)+'\x20'+_0x19575f['error']);const _0x27f02e={};_0x27f02e[_0x519439(0x16a)]=_0x36af28[_0x519439(0x16a)],_0x27f02e[_0x519439(0xf0)+'t']=_0x36af28['fileConten'+'t'],_0x27f02e['s3Key']=_0x19575f[_0x519439(0x18e)],_0x27f02e[_0x519439(0xaf)]=_0x36af28[_0x519439(0xaf)];const _0x4864c8=_0x27f02e,_0x18de23=await this[_0x519439(0x116)+_0x519439(0x107)][_0x519439(0xf1)+_0x519439(0x115)](_0x4864c8);logger['info'](_0x519439(0x136)+_0x18de23[_0x519439(0xd3)]);const _0x36485f={};return _0x36485f[_0x519439(0x134)]=_0x18de23[_0x519439(0x134)]||_0x18de23[_0x519439(0xd3)],_0x36485f[_0x519439(0x172)]=_0x18de23['status'],_0x36485f;}catch(_0x4eaf26){logger[_0x519439(0x18f)](_0x519439(0x186)+'패:',_0x4eaf26);throw _0x4eaf26;}}async['analyzeMul'+'tipleFiles'+'Security'](_0x20221d){const _0x167828=a19_0x567618,_0x9c1934={};_0x9c1934[_0x167828(0x176)]=_0x167828(0xd5);const _0x374426=_0x9c1934;try{logger[_0x167828(0x177)]('다중\x20파일\x20보안\x20분'+'석\x20시작:\x20'+_0x20221d['files'][_0x167828(0x16f)]+_0x167828(0x184));if(!_0x20221d[_0x167828(0x10f)]||_0x20221d[_0x167828(0x10f)][_0x167828(0x16f)]===0x0)throw new Error('분석할\x20파일이\x20없습'+_0x167828(0x130));const _0x2e10b4=await this[_0x167828(0xd0)][_0x167828(0x167)+_0x167828(0x152)](_0x20221d[_0x167828(0x10f)],_0x20221d['zipFileNam'+'e']);if(!_0x2e10b4[_0x167828(0xd4)])throw new Error(_0x167828(0xb8)+'\x20'+_0x2e10b4[_0x167828(0x18f)]);const _0x28d3ac=_0x20221d['files'][0x0]?.[_0x167828(0x16a)]||_0x374426[_0x167828(0x176)],_0x40c75e={};_0x40c75e['fileName']=_0x20221d[_0x167828(0xcb)+'e']||_0x28d3ac,_0x40c75e[_0x167828(0xf0)+'t']='',_0x40c75e[_0x167828(0xe1)]=_0x2e10b4[_0x167828(0x18e)],_0x40c75e[_0x167828(0xaf)]=_0x20221d[_0x167828(0xaf)];const _0x4b4282=_0x40c75e,_0x50dc80=await this[_0x167828(0x116)+'vice'][_0x167828(0xf1)+'lysis'](_0x4b4282);logger['info'](_0x167828(0x120)+_0x167828(0x160)+_0x50dc80['requestId']);const _0x16d8c5={};return _0x16d8c5[_0x167828(0x134)]=_0x50dc80[_0x167828(0x134)]||_0x50dc80[_0x167828(0xd3)],_0x16d8c5['status']=_0x50dc80[_0x167828(0x172)],_0x16d8c5;}catch(_0x400e9e){logger[_0x167828(0x18f)](_0x167828(0x142)+_0x167828(0x166),_0x400e9e);throw _0x400e9e;}}async[a19_0x567618(0xf7)+a19_0x567618(0xea)+a19_0x567618(0x18d)](_0x4b2b45,_0x804745,_0x2325e6){const _0x1b54da=a19_0x567618,_0x3ddf6e={};_0x3ddf6e['cqiYH']=_0x1b54da(0x155);const _0x378588=_0x3ddf6e;try{if(_0x378588['cqiYH']!==_0x1b54da(0x139)){logger[_0x1b54da(0x177)](_0x1b54da(0x179)+'중\x20파일\x20보안\x20분석'+_0x1b54da(0xbe)+_0x4b2b45[_0x1b54da(0x16f)]+'개\x20파일\x20경로');if(!_0x4b2b45||_0x4b2b45[_0x1b54da(0x16f)]===0x0)throw new Error('분석할\x20파일\x20경로가'+_0x1b54da(0x109));const _0x50f7b3=await this['s3Service'][_0x1b54da(0x191)+_0x1b54da(0x163)](_0x4b2b45,_0x804745);if(!_0x50f7b3[_0x1b54da(0xd4)])throw new Error(_0x1b54da(0xb8)+'\x20'+_0x50f7b3[_0x1b54da(0x18f)]);const _0x14e60a=a19_0x1be371[_0x1b54da(0x12b)](_0x4b2b45[0x0])||_0x1b54da(0xd5),_0x360471={};_0x360471[_0x1b54da(0x16a)]=_0x804745||_0x14e60a,_0x360471[_0x1b54da(0xf0)+'t']='',_0x360471[_0x1b54da(0xe1)]=_0x50f7b3[_0x1b54da(0x18e)],_0x360471[_0x1b54da(0xaf)]=_0x2325e6;const _0x5ebf31=_0x360471,_0x5162a8=await this[_0x1b54da(0x116)+_0x1b54da(0x107)][_0x1b54da(0xf1)+_0x1b54da(0x115)](_0x5ebf31);logger['info'](_0x1b54da(0x16e)+_0x1b54da(0x105)+_0x5162a8[_0x1b54da(0xd3)]);const _0x425a18={};return _0x425a18[_0x1b54da(0x134)]=_0x5162a8['analysisId']||_0x5162a8[_0x1b54da(0xd3)],_0x425a18[_0x1b54da(0x172)]=_0x5162a8[_0x1b54da(0x172)],_0x425a18;}else throw new _0x506863(_0x1b54da(0xc1)+'\x20없습니다.');}catch(_0x5a037f){logger[_0x1b54da(0x18f)](_0x1b54da(0x14a)+_0x1b54da(0x100)+':',_0x5a037f);throw _0x5a037f;}}async[a19_0x567618(0x111)+'File'](_0x19d64a,_0x589dec,_0x5cc8b9){const _0x12b1aa=a19_0x567618,_0x3038a7={};_0x3038a7['eJtoM']=_0x12b1aa(0xd5);const _0x3fe5e1=_0x3038a7;try{logger[_0x12b1aa(0x177)](_0x12b1aa(0x183)+_0x12b1aa(0x102)+_0x19d64a);if(!_0x19d64a)throw new Error(_0x12b1aa(0x180)+_0x12b1aa(0x11a)+'다.');const _0x52bb41=await this['s3Service']['uploadZipF'+'ile'](_0x19d64a);if(!_0x52bb41[_0x12b1aa(0xd4)])throw new Error(_0x12b1aa(0xb9)+_0x12b1aa(0x128)+_0x52bb41['error']);const _0x39266c=_0x589dec||a19_0x1be371[_0x12b1aa(0x12b)](_0x19d64a)||_0x3fe5e1[_0x12b1aa(0x145)],_0x3ee4ef={};_0x3ee4ef[_0x12b1aa(0x16a)]=_0x39266c,_0x3ee4ef[_0x12b1aa(0xf0)+'t']='',_0x3ee4ef[_0x12b1aa(0xe1)]=_0x52bb41[_0x12b1aa(0x18e)],_0x3ee4ef[_0x12b1aa(0xaf)]=_0x5cc8b9;const _0x27faec=_0x3ee4ef,_0x3e1757=await this['sparrowSer'+'vice']['requestAna'+_0x12b1aa(0x115)](_0x27faec);logger['info'](_0x12b1aa(0x183)+_0x12b1aa(0x136)+_0x3e1757[_0x12b1aa(0xd3)]);const _0x4ff42a={};return _0x4ff42a['analysisId']=_0x3e1757[_0x12b1aa(0x134)]||_0x3e1757[_0x12b1aa(0xd3)],_0x4ff42a['status']=_0x3e1757[_0x12b1aa(0x172)],_0x4ff42a;}catch(_0x45b814){logger[_0x12b1aa(0x18f)](_0x12b1aa(0x183)+'보안\x20분석\x20요청\x20실'+'패:',_0x45b814);throw _0x45b814;}}async[a19_0x567618(0x110)+a19_0x567618(0x13c)](_0x205a14,_0x5bfbcf,_0xcab0a1){const _0x106df3=a19_0x567618;try{logger[_0x106df3(0x177)](_0x106df3(0xcf)+'석\x20시작:\x20'+_0x205a14);if(!_0x205a14)throw new Error(_0x106df3(0xb0)+'지\x20않았습니다.');const _0x3317c2=await this[_0x106df3(0xd0)][_0x106df3(0x13b)+'erAsZip'](_0x205a14,_0x5bfbcf);if(!_0x3317c2['success'])throw new Error('폴더\x20압축\x20및\x20업로'+_0x106df3(0x14c)+_0x3317c2[_0x106df3(0x18f)]);const _0x4de3a6=_0x5bfbcf||a19_0x1be371[_0x106df3(0x12b)](_0x205a14)||_0x106df3(0x182),_0x143271={};_0x143271[_0x106df3(0x16a)]=_0x4de3a6,_0x143271['fileConten'+'t']='',_0x143271[_0x106df3(0xe1)]=_0x3317c2[_0x106df3(0x18e)],_0x143271['memo']=_0xcab0a1;const _0x4d246a=_0x143271,_0x140a4f=await this[_0x106df3(0x116)+_0x106df3(0x107)][_0x106df3(0xf1)+'lysis'](_0x4d246a);logger['info'](_0x106df3(0x112)+_0x106df3(0x160)+_0x140a4f[_0x106df3(0xd3)]);const _0x340c63={};return _0x340c63[_0x106df3(0x134)]=_0x140a4f['analysisId']||_0x140a4f[_0x106df3(0xd3)],_0x340c63[_0x106df3(0x172)]=_0x140a4f[_0x106df3(0x172)],_0x340c63[_0x106df3(0xdb)+'ders']=_0x3317c2[_0x106df3(0xdb)+'ders'],_0x340c63;}catch(_0x19e26d){logger['error'](_0x106df3(0xcf)+_0x106df3(0x166),_0x19e26d);throw _0x19e26d;}}async[a19_0x567618(0xbb)+a19_0x567618(0x17d)](_0x5f1400,_0x44aa2e,_0x47e95d){const _0x540fe0=a19_0x567618;try{logger[_0x540fe0(0x177)](_0x540fe0(0xdd)+_0x540fe0(0x15a)+_0x5f1400);if(!_0x5f1400)throw new Error(_0x540fe0(0xc1)+_0x540fe0(0x109));const _0x28e4f8=await this[_0x540fe0(0xd0)][_0x540fe0(0x191)+_0x540fe0(0x163)]([_0x5f1400],_0x44aa2e);if(!_0x28e4f8[_0x540fe0(0xd4)])throw new Error(_0x540fe0(0xb8)+'\x20'+_0x28e4f8[_0x540fe0(0x18f)]);const _0x221b04=a19_0x1be371[_0x540fe0(0x12b)](_0x5f1400)||_0x540fe0(0xd5),_0x3cd084={};_0x3cd084['fileName']=_0x44aa2e||_0x221b04,_0x3cd084['fileConten'+'t']='',_0x3cd084[_0x540fe0(0xe1)]=_0x28e4f8['key'],_0x3cd084['memo']=_0x47e95d;const _0x1f127c=_0x3cd084,_0x5014e8=await this[_0x540fe0(0x116)+_0x540fe0(0x107)]['requestSca'+'Analysis'](_0x1f127c);logger[_0x540fe0(0x177)](_0x540fe0(0xdd)+_0x540fe0(0x136)+_0x5014e8[_0x540fe0(0xd3)]);const _0x512396={};return _0x512396['analysisId']=_0x5014e8[_0x540fe0(0x134)]||_0x5014e8[_0x540fe0(0xd3)],_0x512396[_0x540fe0(0x172)]=_0x5014e8[_0x540fe0(0x172)],_0x512396[_0x540fe0(0x10e)+'pe']='SCA',_0x512396;}catch(_0x20da3b){logger[_0x540fe0(0x18f)](_0x540fe0(0xdd)+_0x540fe0(0x159),_0x20da3b);throw _0x20da3b;}}async['analyzeFil'+a19_0x567618(0xb3)](_0x169e85,_0x579633,_0x18939f){const _0x5657ac=a19_0x567618;try{logger[_0x5657ac(0x177)](_0x5657ac(0x157)+_0x5657ac(0xe6)+_0x169e85[_0x5657ac(0x16f)]+_0x5657ac(0xe8));if(!_0x169e85||_0x169e85[_0x5657ac(0x16f)]===0x0)throw new Error(_0x5657ac(0xc1)+'\x20없습니다.');const _0x16c4fe=await this[_0x5657ac(0xd0)][_0x5657ac(0x191)+'sFromPaths'](_0x169e85,_0x579633);if(!_0x16c4fe['success'])throw new Error(_0x5657ac(0xb8)+'\x20'+_0x16c4fe[_0x5657ac(0x18f)]);const _0x18f7cf=a19_0x1be371[_0x5657ac(0x12b)](_0x169e85[0x0])||_0x5657ac(0xd5),_0x2f2e20={};_0x2f2e20[_0x5657ac(0x16a)]=_0x579633||_0x18f7cf,_0x2f2e20['fileConten'+'t']='',_0x2f2e20[_0x5657ac(0xe1)]=_0x16c4fe[_0x5657ac(0x18e)],_0x2f2e20[_0x5657ac(0xaf)]=_0x18939f;const _0x2fb113=_0x2f2e20,_0x4bb1cb=await this[_0x5657ac(0x116)+_0x5657ac(0x107)][_0x5657ac(0x187)+'Analysis'](_0x2fb113);logger['info']('파일\x20경로\x20기반\x20S'+_0x5657ac(0x117)+_0x5657ac(0x148)+_0x4bb1cb['requestId']);const _0x328c64={};return _0x328c64[_0x5657ac(0x134)]=_0x4bb1cb[_0x5657ac(0x134)]||_0x4bb1cb[_0x5657ac(0xd3)],_0x328c64[_0x5657ac(0x172)]=_0x4bb1cb[_0x5657ac(0x172)],_0x328c64[_0x5657ac(0x10e)+'pe']=_0x5657ac(0x158),_0x328c64;}catch(_0x3a3b6a){logger[_0x5657ac(0x18f)](_0x5657ac(0x157)+_0x5657ac(0xf3)+'패:',_0x3a3b6a);throw _0x3a3b6a;}}async[a19_0x567618(0x110)+a19_0x567618(0x14d)](_0x336d11,_0x2ed5f2,_0x34534d){const _0x55e0c3=a19_0x567618;try{logger[_0x55e0c3(0x177)](_0x55e0c3(0x12e)+'분석\x20시작:\x20'+_0x336d11);if(!_0x336d11)throw new Error(_0x55e0c3(0xb0)+'지\x20않았습니다.');const _0x259a98=await this[_0x55e0c3(0xd0)][_0x55e0c3(0x13b)+'erAsZip'](_0x336d11,_0x2ed5f2);if(!_0x259a98[_0x55e0c3(0xd4)])throw new Error(_0x55e0c3(0x173)+'드\x20실패:\x20'+_0x259a98['error']);const _0x237880=_0x2ed5f2||a19_0x1be371[_0x55e0c3(0x12b)](_0x336d11)||_0x55e0c3(0x182),_0x5c4fc7={};_0x5c4fc7['fileName']=_0x237880,_0x5c4fc7[_0x55e0c3(0xf0)+'t']='',_0x5c4fc7[_0x55e0c3(0xe1)]=_0x259a98[_0x55e0c3(0x18e)],_0x5c4fc7[_0x55e0c3(0xaf)]=_0x34534d;const _0x314b12=_0x5c4fc7,_0x41749f=await this[_0x55e0c3(0x116)+_0x55e0c3(0x107)]['requestSca'+'Analysis'](_0x314b12);logger[_0x55e0c3(0x177)]('폴더\x20기반\x20SCA\x20'+'분석\x20요청\x20완료:\x20'+_0x41749f['requestId']);const _0x53d18b={};return _0x53d18b[_0x55e0c3(0x134)]=_0x41749f[_0x55e0c3(0x134)]||_0x41749f[_0x55e0c3(0xd3)],_0x53d18b['status']=_0x41749f[_0x55e0c3(0x172)],_0x53d18b[_0x55e0c3(0x10e)+'pe']='SCA',_0x53d18b[_0x55e0c3(0xdb)+_0x55e0c3(0x175)]=_0x259a98[_0x55e0c3(0xdb)+_0x55e0c3(0x175)],_0x53d18b;}catch(_0x29552c){logger['error'](_0x55e0c3(0x12e)+_0x55e0c3(0x159),_0x29552c);throw _0x29552c;}}async[a19_0x567618(0x111)+'Sca'](_0x41069a,_0x32aa00,_0x21ce62){const _0x235877=a19_0x567618;try{logger[_0x235877(0x177)](_0x235877(0x183)+_0x235877(0xe9)+'\x20'+_0x41069a);if(!_0x41069a)throw new Error(_0x235877(0x180)+_0x235877(0x11a)+'다.');const _0x2a13f3=await this['s3Service'][_0x235877(0xf6)+'ile'](_0x41069a);if(!_0x2a13f3['success'])throw new Error(_0x235877(0xb9)+'\x20실패:\x20'+_0x2a13f3['error']);const _0x4c5ba2=_0x32aa00||a19_0x1be371[_0x235877(0x12b)](_0x41069a)||_0x235877(0xd5),_0x569f83={};_0x569f83[_0x235877(0x16a)]=_0x4c5ba2,_0x569f83['fileConten'+'t']='',_0x569f83[_0x235877(0xe1)]=_0x2a13f3[_0x235877(0x18e)],_0x569f83[_0x235877(0xaf)]=_0x21ce62;const _0x5527e8=_0x569f83,_0x74858c=await this[_0x235877(0x116)+'vice'][_0x235877(0x187)+_0x235877(0x194)](_0x5527e8);logger['info'](_0x235877(0x183)+_0x235877(0x18c)+'완료:\x20'+_0x74858c[_0x235877(0xd3)]);const _0x175f9f={};return _0x175f9f[_0x235877(0x134)]=_0x74858c[_0x235877(0x134)]||_0x74858c[_0x235877(0xd3)],_0x175f9f[_0x235877(0x172)]=_0x74858c[_0x235877(0x172)],_0x175f9f[_0x235877(0x10e)+'pe']=_0x235877(0x158),_0x175f9f;}catch(_0x591f97){logger['error']('ZIP\x20파일\x20기반\x20'+'SCA\x20분석\x20요청\x20'+'실패:',_0x591f97);throw _0x591f97;}}[a19_0x567618(0x198)+'y'](_0x590da4){const _0x2a5936=a19_0x567618,_0x6df1af={};_0x6df1af[_0x2a5936(0x123)]=_0x2a5936(0xf8),_0x6df1af[_0x2a5936(0x170)]=function(_0x29ed8c,_0x53f051){return _0x29ed8c===_0x53f051;};const _0x1d55ca=_0x6df1af,_0x3015d4=_0x590da4['toUpperCas'+'e']();if(_0x3015d4===_0x2a5936(0x137)||_0x3015d4===_0x2a5936(0xf8))return _0x1d55ca[_0x2a5936(0x123)];if(_0x1d55ca['wyZxE'](_0x3015d4,_0x2a5936(0x15c)))return'MEDIUM';return _0x2a5936(0x13e);}async[a19_0x567618(0xe2)+'sStatus'](_0x394112){const _0x192fed=a19_0x567618,_0x3088eb=await this[_0x192fed(0x116)+_0x192fed(0x107)][_0x192fed(0xe2)+'sStatus'](_0x394112),_0x259550={};return _0x259550[_0x192fed(0x172)]=_0x3088eb[_0x192fed(0x172)],_0x259550[_0x192fed(0xc9)]=_0x3088eb[_0x192fed(0xc9)],_0x259550[_0x192fed(0x124)]=_0x3088eb[_0x192fed(0x124)],_0x259550[_0x192fed(0x114)]=_0x3088eb['message'],_0x259550;}async[a19_0x567618(0xe2)+'sResults'](_0x4d50ed){const _0x1511cb=a19_0x567618,_0x47e2c8=await this['sparrowSer'+_0x1511cb(0x107)][_0x1511cb(0xe2)+'sStatus'](_0x4d50ed);let _0x3e8911=[],_0x349810='';if(_0x47e2c8[_0x1511cb(0x172)]===_0x1511cb(0x161)&&_0x47e2c8[_0x1511cb(0xc9)]==='SUCCESS')try{const _0x414e07=await this[_0x1511cb(0x116)+_0x1511cb(0x107)][_0x1511cb(0xbd)+_0x1511cb(0xd8)+_0x1511cb(0x12a)](_0x4d50ed);_0x3e8911=_0x414e07['map'](_0x2f2c4a=>({'checkerKey':_0x2f2c4a['checker'],'description':_0x2f2c4a['descriptio'+'n']||_0x2f2c4a[_0x1511cb(0x162)+'e']||_0x1511cb(0x149)+_0x1511cb(0x12f),'filePath':_0x2f2c4a[_0x1511cb(0x16a)],'lineNumber':_0x2f2c4a[_0x1511cb(0x135)],'severity':this['mapSeverit'+'y'](_0x2f2c4a[_0x1511cb(0x153)]),'checkerInfo':{'name':_0x2f2c4a['checkerNam'+'e']||_0x2f2c4a[_0x1511cb(0x138)],'description':_0x2f2c4a[_0x1511cb(0x11d)+'n']||'','compliance':[]}}));const _0x4daedd=_0x3e8911[_0x1511cb(0xca)](_0x286d94=>_0x286d94[_0x1511cb(0x153)]===_0x1511cb(0xf8))['length'],_0x5e10ad=_0x3e8911[_0x1511cb(0xca)](_0x2cde85=>_0x2cde85[_0x1511cb(0x153)]===_0x1511cb(0x15c))['length'],_0x27f47e=_0x3e8911['filter'](_0x38636e=>_0x38636e['severity']===_0x1511cb(0x13e))[_0x1511cb(0x16f)];_0x349810=_0x1511cb(0x12d)+_0x3e8911[_0x1511cb(0x16f)]+('\x20vulnerabi'+'lities\x20fou'+_0x1511cb(0xf2)+'\x20')+_0x4daedd+',\x20Medium:\x20'+_0x5e10ad+_0x1511cb(0xb2)+_0x27f47e+')';}catch(_0x132a4c){logger[_0x1511cb(0x18f)](_0x1511cb(0x181)+_0x1511cb(0x195)+_0x1511cb(0x11f)+_0x1511cb(0x169)+_0x4d50ed+':',_0x132a4c),_0x349810=_0x1511cb(0x181)+_0x1511cb(0x15f)+_0x1511cb(0x13a)+'sults.';}else _0x349810=_0x1511cb(0xd6)+_0x1511cb(0xe0)+_0x1511cb(0x141)+'s:\x20'+_0x47e2c8[_0x1511cb(0x172)]+_0x1511cb(0x132)+_0x47e2c8[_0x1511cb(0xc9)];let _0x2ea3af=_0x1511cb(0xf5);(_0x47e2c8[_0x1511cb(0x172)]===_0x1511cb(0x161)||_0x47e2c8['result']===_0x1511cb(0x154))&&(_0x2ea3af=_0x1511cb(0x17a));const _0x96c31e={};return _0x96c31e[_0x1511cb(0x134)]=_0x4d50ed,_0x96c31e['status']=_0x2ea3af,_0x96c31e[_0x1511cb(0xc9)]=_0x47e2c8['result'],_0x96c31e[_0x1511cb(0xd7)+_0x1511cb(0x16c)]=_0x3e8911,_0x96c31e[_0x1511cb(0xbc)+'ief']=_0x349810,_0x96c31e;}async[a19_0x567618(0xb1)+a19_0x567618(0x15b)+a19_0x567618(0xc8)](_0x15135c,_0x37188d){const _0x1c8558=a19_0x567618,_0x4eb848=await this[_0x1c8558(0xe2)+_0x1c8558(0x11c)](_0x15135c),_0x2762dc=await this[_0x1c8558(0xfc)][_0x1c8558(0xb1)+_0x1c8558(0xfa)](_0x37188d,_0x4eb848[_0x1c8558(0xd7)+_0x1c8558(0x16c)]),_0x368471=_0x2762dc[_0x1c8558(0xc3)],_0x36fa21=DiffUtil[_0x1c8558(0xff)+_0x1c8558(0xdf)](_0x37188d,_0x368471,_0x1c8558(0x189)),_0xa6ee27=await this[_0x1c8558(0xfc)][_0x1c8558(0xb1)+_0x1c8558(0x104)+_0x1c8558(0x156)](_0x37188d,_0x368471),_0x10f5d3={};return _0x10f5d3['secureCode']=_0x368471,_0x10f5d3['secureCode'+_0x1c8558(0xee)]=_0xa6ee27[_0x1c8558(0xc3)],_0x10f5d3[_0x1c8558(0x18b)]=_0x36fa21,_0x10f5d3;}async[a19_0x567618(0xd9)+a19_0x567618(0x108)+'s'](_0x1a4248){const _0xcd8ddc=a19_0x567618,_0x74172c={};_0x74172c[_0xcd8ddc(0x18a)]=function(_0x309fe2,_0x4d798e){return _0x309fe2+_0x4d798e;},_0x74172c[_0xcd8ddc(0x10b)]=_0xcd8ddc(0x12c)+'조회\x20실패:';const _0x7c9092=_0x74172c;try{if(this['scaResults'+_0xcd8ddc(0x119)][_0xcd8ddc(0x144)](_0x1a4248))return logger['info'](_0xcd8ddc(0x12c)+_0xcd8ddc(0x125)+_0x1a4248),this[_0xcd8ddc(0x133)+_0xcd8ddc(0x119)][_0xcd8ddc(0xcc)](_0x1a4248);logger[_0xcd8ddc(0x177)](_0xcd8ddc(0x12c)+_0xcd8ddc(0x140)+_0x1a4248);const _0x3d2e84=await this[_0xcd8ddc(0x116)+_0xcd8ddc(0x107)][_0xcd8ddc(0xf9)+'isCompleti'+'on'](_0x1a4248),_0x44827f=_0x3d2e84[_0xcd8ddc(0xc9)]?String(_0x3d2e84[_0xcd8ddc(0xc9)])[_0xcd8ddc(0xe5)+'e']():undefined;let _0x12d36f;_0x44827f===_0xcd8ddc(0xe7)||_0x44827f===_0xcd8ddc(0x15d)?_0x12d36f='failed':_0x12d36f=_0xcd8ddc(0x17a);const _0x2047fb=_0x3d2e84[_0xcd8ddc(0x134)]||_0x1a4248;logger[_0xcd8ddc(0x177)](_0xcd8ddc(0x12c)+'다운로드\x20시작:\x20'+_0x2047fb);const _0x3a67e2=await this[_0xcd8ddc(0x116)+'vice'][_0xcd8ddc(0xbd)+_0xcd8ddc(0xd8)+_0xcd8ddc(0x12a)](_0x2047fb),_0x5d42fd=this[_0xcd8ddc(0xc0)+_0xcd8ddc(0xd2)](_0x3a67e2);let _0x2c7193=0x0,_0x3a883d=0x0,_0x238e6b=0x0,_0x18f2f2=0x0;for(const _0x18d72b of _0x5d42fd){for(const _0x2d508c of _0x18d72b['issues']){switch(_0x2d508c[_0xcd8ddc(0x153)]){case _0xcd8ddc(0x137):_0x2c7193++;break;case _0xcd8ddc(0xf8):_0x3a883d++;break;case _0xcd8ddc(0x15c):_0x238e6b++;break;case _0xcd8ddc(0x13e):_0x18f2f2++;break;}}}const _0x30811e=_0x7c9092['lXBCU'](_0x2c7193,_0x3a883d)+_0x238e6b+_0x18f2f2,_0xc7f875=this[_0xcd8ddc(0x197)+_0xcd8ddc(0xfe)+'ef'](_0x5d42fd,_0x30811e,_0x2c7193,_0x3a883d,_0x238e6b,_0x18f2f2),_0x34479e={};_0x34479e[_0xcd8ddc(0x134)]=_0x2047fb,_0x34479e[_0xcd8ddc(0x172)]=_0x12d36f,_0x34479e['result']=_0x44827f,_0x34479e['components']=_0x5d42fd,_0x34479e['totalVulne'+_0xcd8ddc(0x164)]=_0x30811e,_0x34479e['criticalCo'+_0xcd8ddc(0xfd)]=_0x2c7193,_0x34479e['highCount']=_0x3a883d,_0x34479e[_0xcd8ddc(0xd1)+'t']=_0x238e6b,_0x34479e['lowCount']=_0x18f2f2,_0x34479e[_0xcd8ddc(0xbc)+_0xcd8ddc(0x156)]=_0xc7f875;const _0x4bd3b5=_0x34479e;return this[_0xcd8ddc(0x133)+'Cache'][_0xcd8ddc(0x14b)](_0x1a4248,_0x4bd3b5),_0x2047fb!==_0x1a4248&&this[_0xcd8ddc(0x133)+_0xcd8ddc(0x119)]['set'](_0x2047fb,_0x4bd3b5),logger[_0xcd8ddc(0x177)](_0xcd8ddc(0x12c)+_0xcd8ddc(0x16b)+_0x5d42fd[_0xcd8ddc(0x16f)]+_0xcd8ddc(0x122)+_0x30811e+'개\x20취약점'),_0x4bd3b5;}catch(_0xf2598b){logger[_0xcd8ddc(0x18f)](_0x7c9092[_0xcd8ddc(0x10b)],_0xf2598b);throw _0xf2598b;}}['parseScaCo'+a19_0x567618(0xd2)](_0x3a0ef4){const _0x425833=a19_0x567618,_0x3a82e3={};_0x3a82e3[_0x425833(0x103)]='Unknown';const _0x462adf=_0x3a82e3,_0x352bfb=[];for(const _0xf41d6b of _0x3a0ef4){if(_0xf41d6b['name']&&_0xf41d6b['version']!==undefined){const _0x4020d7=[];if(_0xf41d6b[_0x425833(0x168)]&&Array[_0x425833(0x131)](_0xf41d6b[_0x425833(0x168)]))for(const _0x4ec225 of _0xf41d6b[_0x425833(0x168)]){const _0x452ac9={};_0x452ac9[_0x425833(0xc5)]=_0x4ec225['name']||_0x4ec225['spdxId']||_0x425833(0x13f),_0x452ac9['spdxId']=_0x4ec225[_0x425833(0x192)],_0x452ac9[_0x425833(0x143)]=_0x4ec225[_0x425833(0x143)],_0x4020d7[_0x425833(0x11b)](_0x452ac9);}const _0x5c0ba9=[];if(_0xf41d6b[_0x425833(0x190)]&&Array[_0x425833(0x131)](_0xf41d6b[_0x425833(0x190)]))for(const _0x48322a of _0xf41d6b['issues']){_0x5c0ba9[_0x425833(0x11b)]({'cveId':_0x48322a[_0x425833(0x15e)]||_0x48322a['id']||_0x425833(0x13f),'severity':this['mapScaSeve'+'rity'](_0x48322a['severity']||_0x48322a[_0x425833(0xde)]),'cvssScore':_0x48322a[_0x425833(0x17b)]||_0x48322a[_0x425833(0x150)],'description':_0x48322a[_0x425833(0x11d)+'n']||_0x48322a['summary'],'fixedVersion':_0x48322a[_0x425833(0x10c)+'on']||_0x48322a['patchedVer'+_0x425833(0x106)]});}const _0x5721cc={};_0x5721cc['name']=_0xf41d6b['name'],_0x5721cc['version']=_0xf41d6b[_0x425833(0x118)]||_0x462adf[_0x425833(0x103)],_0x5721cc[_0x425833(0xba)]=_0xf41d6b[_0x425833(0xba)],_0x5721cc['repository']=_0xf41d6b[_0x425833(0xef)],_0x5721cc[_0x425833(0xef)+_0x425833(0xb7)]=_0xf41d6b[_0x425833(0xef)+_0x425833(0xb7)],_0x5721cc[_0x425833(0x10d)]=_0xf41d6b[_0x425833(0x10d)],_0x5721cc[_0x425833(0x168)]=_0x4020d7,_0x5721cc[_0x425833(0x190)]=_0x5c0ba9,_0x5721cc[_0x425833(0x165)+_0x425833(0x171)]=_0xf41d6b[_0x425833(0x165)+_0x425833(0x171)],_0x5721cc[_0x425833(0xeb)+'ate']=_0xf41d6b[_0x425833(0xeb)+_0x425833(0x129)],_0x352bfb[_0x425833(0x11b)](_0x5721cc);}else{if(Array[_0x425833(0x131)](_0xf41d6b))for(const _0x11de20 of _0xf41d6b){if(_0x11de20[_0x425833(0xc5)]&&_0x11de20[_0x425833(0x118)]!==undefined){const _0x1781f7=[];if(_0x11de20['licenses']&&Array[_0x425833(0x131)](_0x11de20[_0x425833(0x168)]))for(const _0x373cb4 of _0x11de20['licenses']){const _0x4567e7={};_0x4567e7[_0x425833(0xc5)]=_0x373cb4[_0x425833(0xc5)]||_0x373cb4[_0x425833(0x192)]||_0x425833(0x13f),_0x4567e7['spdxId']=_0x373cb4[_0x425833(0x192)],_0x4567e7[_0x425833(0x143)]=_0x373cb4['url'],_0x1781f7[_0x425833(0x11b)](_0x4567e7);}const _0x424ecf=[];if(_0x11de20['issues']&&Array[_0x425833(0x131)](_0x11de20[_0x425833(0x190)]))for(const _0x339978 of _0x11de20[_0x425833(0x190)]){_0x424ecf[_0x425833(0x11b)]({'cveId':_0x339978[_0x425833(0x15e)]||_0x339978['id']||_0x425833(0x13f),'severity':this[_0x425833(0x101)+_0x425833(0xed)](_0x339978[_0x425833(0x153)]||_0x339978['risk']),'cvssScore':_0x339978[_0x425833(0x17b)]||_0x339978[_0x425833(0x150)],'description':_0x339978[_0x425833(0x11d)+'n']||_0x339978[_0x425833(0xda)],'fixedVersion':_0x339978[_0x425833(0x10c)+'on']||_0x339978['patchedVer'+_0x425833(0x106)]});}const _0x3fa4ed={};_0x3fa4ed['name']=_0x11de20[_0x425833(0xc5)],_0x3fa4ed[_0x425833(0x118)]=_0x11de20['version']||_0x425833(0x13f),_0x3fa4ed[_0x425833(0xba)]=_0x11de20['purl'],_0x3fa4ed[_0x425833(0xef)]=_0x11de20[_0x425833(0xef)],_0x3fa4ed['repository'+_0x425833(0xb7)]=_0x11de20['repository'+_0x425833(0xb7)],_0x3fa4ed['matchType']=_0x11de20['matchType'],_0x3fa4ed['licenses']=_0x1781f7,_0x3fa4ed[_0x425833(0x190)]=_0x424ecf,_0x3fa4ed['confidence'+_0x425833(0x171)]=_0x11de20[_0x425833(0x165)+'Score'],_0x3fa4ed['publishedD'+_0x425833(0x129)]=_0x11de20['publishedD'+'ate'],_0x352bfb['push'](_0x3fa4ed);}}}}return _0x352bfb;}[a19_0x567618(0x101)+'rity'](_0x390922){const _0x2c820c=a19_0x567618,_0x166059={};_0x166059[_0x2c820c(0x126)]=_0x2c820c(0xf8);const _0x5ba1c4=_0x166059;if(typeof _0x390922===_0x2c820c(0x147)){if(_0x390922>=0x9)return _0x2c820c(0x137);if(_0x390922>=0x7)return _0x2c820c(0xf8);if(_0x390922>=0x4)return _0x2c820c(0x15c);return _0x2c820c(0x13e);}const _0x4896a5={};_0x4896a5[_0x2c820c(0x137)]=_0x2c820c(0x137),_0x4896a5[_0x2c820c(0xf8)]=_0x5ba1c4[_0x2c820c(0x126)],_0x4896a5[_0x2c820c(0x15c)]='MEDIUM',_0x4896a5[_0x2c820c(0x13e)]=_0x2c820c(0x13e),_0x4896a5['INFO']=_0x2c820c(0x13e);const _0x180f4e=_0x4896a5;return _0x180f4e[_0x390922?.[_0x2c820c(0xe5)+'e']()]||_0x2c820c(0x15c);}[a19_0x567618(0x197)+'aReportBri'+'ef'](_0x1ca47c,_0x59b89b,_0x39e03a,_0x23cd3d,_0x4b2830,_0x1f9187){const _0x3bed77=a19_0x567618,_0x3d926e=_0x1ca47c[_0x3bed77(0xca)](_0x2263dd=>_0x2263dd['issues']['length']>0x0),_0xb5f69d=new Set();for(const _0x572de5 of _0x1ca47c){for(const _0xba90d of _0x572de5['licenses']){_0xb5f69d['add'](_0xba90d[_0x3bed77(0xc5)]);}}let _0x3bbfa0=_0x3bed77(0xcd)+_0x1ca47c[_0x3bed77(0x16f)]+'개\x20중\x20'+_0x3d926e['length']+(_0x3bed77(0xc6)+'.\x20');_0x3bbfa0+='총\x20'+_0x59b89b+(_0x3bed77(0xc7)+_0x3bed77(0x146))+_0x39e03a+',\x20High:\x20'+_0x23cd3d+_0x3bed77(0x14e)+_0x4b2830+_0x3bed77(0xb2)+_0x1f9187+_0x3bed77(0x11e);_0xb5f69d[_0x3bed77(0x10a)]>0x0&&(_0x3bbfa0+=_0x3bed77(0xf4)+Array[_0x3bed77(0x196)](_0xb5f69d)['slice'](0x0,0x5)['join'](',\x20')+(_0xb5f69d[_0x3bed77(0x10a)]>0x5?'\x20외\x20'+(_0xb5f69d['size']-0x5)+'개':'')+'.\x20');if(_0x39e03a>0x0||_0x23cd3d>0x0)_0x3bbfa0+=_0x3bed77(0x121)+_0x3bed77(0x151)+_0x3bed77(0x199);else _0x4b2830>0x0?_0x3bbfa0+=_0x3bed77(0x188)+_0x3bed77(0xb5)+'.':_0x3bbfa0+=_0x3bed77(0x17f)+_0x3bed77(0x127);return _0x3bbfa0;}}
@@ -1 +1 @@
1
- const a20_0x617dd5=a20_0x533d;(function(_0x26d62c,_0x5dbdf5){const _0x78a9a4=a20_0x533d,_0x51edca=_0x26d62c();while(!![]){try{const _0x5e9ccc=parseInt(_0x78a9a4(0x15c))/0x1*(-parseInt(_0x78a9a4(0x166))/0x2)+-parseInt(_0x78a9a4(0x11a))/0x3*(-parseInt(_0x78a9a4(0x14a))/0x4)+parseInt(_0x78a9a4(0x12c))/0x5*(parseInt(_0x78a9a4(0x11f))/0x6)+-parseInt(_0x78a9a4(0x122))/0x7*(-parseInt(_0x78a9a4(0x13d))/0x8)+parseInt(_0x78a9a4(0x15f))/0x9+-parseInt(_0x78a9a4(0x113))/0xa*(parseInt(_0x78a9a4(0x163))/0xb)+-parseInt(_0x78a9a4(0x115))/0xc;if(_0x5e9ccc===_0x5dbdf5)break;else _0x51edca['push'](_0x51edca['shift']());}catch(_0x32f2d4){_0x51edca['push'](_0x51edca['shift']());}}}(a20_0x3945,0xca6d3));const a20_0x1b794a=(function(){let _0x5def8e=!![];return function(_0x59ce87,_0x13045a){const _0x286d66=_0x5def8e?function(){const _0x2f1041=a20_0x533d;if(_0x13045a){const _0x2e44c5=_0x13045a[_0x2f1041(0x14d)](_0x59ce87,arguments);return _0x13045a=null,_0x2e44c5;}}:function(){};return _0x5def8e=![],_0x286d66;};}()),a20_0x479406=a20_0x1b794a(this,function(){const _0x5349fb=a20_0x533d;return a20_0x479406['toString']()[_0x5349fb(0x117)]('(((.+)+)+)'+'+$')[_0x5349fb(0x165)]()[_0x5349fb(0x12b)+'r'](a20_0x479406)[_0x5349fb(0x117)]('(((.+)+)+)'+'+$');});a20_0x479406();import a20_0x148b77 from'axios';import a20_0x13aea5 from'adm-zip';import a20_0x204dac from'path';function a20_0x3945(){const _0x2f0367=['erabilitie','descriptio','../../chec','sByComplia','recursive','constructo','280290lmYcrm','개\x20파일','mkdirSync','arraybuffe','checkers.z','ync','baseUrl','size','\x20완료:\x20','toLowerCas','tems','체커\x20규칙\x20다운로드','개\x20규칙\x20로드','checkerKey','lang','nce','filter','37384DdGsdb','referenceI','checkerCac','aded','getComplia','unlinkSync','\x20실패:','\x20시작...','length','version','/api/v1/ch','apiKey','reference','124992yISdTn','error','loadChecke','apply','kersDownlo','name','rabilities','some','find','info','parse','edInfo','nceInfo','values','warn','체커\x20파일\x20파싱\x20실','kers','clear','29Szvyrr','readdirSyn','groupVulne','5489415ezSYDZ','set','기존\x20체커\x20캐시\x20사','writeFileS','21813qvEuUZ','getLocaliz','toString','80582PQlCtC','ensureChec','패:\x20','erInfo','.rule','checkersDi','tXNgw','existsSync','getCachedC','sWithCheck','fVPhc','체커\x20디렉토리가\x20존','join','endsWith','5170opTAfS','key','1364400NEZfKj','push','search','dirname','initialize','12hhghYl','tHUzU','includes','localized','Bearer\x20','120bzmpZB','resolve','extractAll','1918UmtBth','readFileSy','체커\x20서비스\x20초기화','get'];a20_0x3945=function(){return _0x2f0367;};return a20_0x3945();}import a20_0x397cf4 from'fs';function a20_0x533d(_0x3b6360,_0x1fcc36){_0x3b6360=_0x3b6360-0x107;const _0x1ba000=a20_0x3945();let _0x479406=_0x1ba000[_0x3b6360];return _0x479406;}import{fileURLToPath}from'url';import{appConfig}from'../config/appConfig.js';import{logger}from'../utils/logger.js';export class CheckerService{[a20_0x617dd5(0x10a)+'r'];[a20_0x617dd5(0x13f)+'he'];['initialize'+'d']=![];constructor(_0x6f8ec8){const _0x4fa5bf=a20_0x617dd5;if(_0x6f8ec8)this[_0x4fa5bf(0x10a)+'r']=_0x6f8ec8;else{const _0x36cafc=a20_0x204dac[_0x4fa5bf(0x118)](fileURLToPath(import.meta.url));this[_0x4fa5bf(0x10a)+'r']=a20_0x204dac[_0x4fa5bf(0x120)](_0x36cafc,_0x4fa5bf(0x128)+_0x4fa5bf(0x15a));}this[_0x4fa5bf(0x13f)+'he']=new Map();}async['initialize'](){const _0x1354d0=a20_0x617dd5,_0x4e8ca2={};_0x4e8ca2['tHUzU']=_0x1354d0(0x124)+'\x20실패:';const _0x5a3c95=_0x4e8ca2;if(this[_0x1354d0(0x119)+'d'])return;try{await this['ensureChec'+_0x1354d0(0x14e)+_0x1354d0(0x140)](),await this[_0x1354d0(0x14c)+'rs'](),this['initialize'+'d']=!![],logger[_0x1354d0(0x153)](_0x1354d0(0x124)+'\x20완료:\x20'+this[_0x1354d0(0x13f)+'he'][_0x1354d0(0x133)]+_0x1354d0(0x138));}catch(_0x25c1d9){logger[_0x1354d0(0x14b)](_0x5a3c95[_0x1354d0(0x11b)],_0x25c1d9),this[_0x1354d0(0x119)+'d']=!![];}}async[a20_0x617dd5(0x167)+'kersDownlo'+a20_0x617dd5(0x140)](){const _0x5261d7=a20_0x617dd5,_0x4eabe5={};_0x4eabe5[_0x5261d7(0x10f)]=function(_0x219be5,_0x5c6517){return _0x219be5>_0x5c6517;};const _0x4fb412=_0x4eabe5;if(a20_0x397cf4['existsSync'](this['checkersDi'+'r'])){const _0x27e0ca=a20_0x397cf4[_0x5261d7(0x15d)+'c'](this[_0x5261d7(0x10a)+'r']),_0x4e7b66=_0x27e0ca[_0x5261d7(0x13c)](_0x12c5e6=>_0x12c5e6[_0x5261d7(0x112)](_0x5261d7(0x109)));if(_0x4fb412[_0x5261d7(0x10f)](_0x4e7b66['length'],0x0)){logger[_0x5261d7(0x153)](_0x5261d7(0x161)+'용:\x20'+_0x4e7b66[_0x5261d7(0x145)]+'개\x20파일');return;}}logger[_0x5261d7(0x153)](_0x5261d7(0x137)+_0x5261d7(0x144));try{const _0x4f3675=await a20_0x148b77[_0x5261d7(0x125)](appConfig['sparrow'][_0x5261d7(0x132)]+(_0x5261d7(0x147)+'eckers'),{'headers':{'Authorization':_0x5261d7(0x11e)+appConfig['sparrow'][_0x5261d7(0x148)]},'responseType':_0x5261d7(0x12f)+'r','timeout':0xea60});if(!a20_0x397cf4[_0x5261d7(0x10c)](this[_0x5261d7(0x10a)+'r'])){const _0x308302={};_0x308302[_0x5261d7(0x12a)]=!![],a20_0x397cf4[_0x5261d7(0x12e)](this[_0x5261d7(0x10a)+'r'],_0x308302);}const _0x552c99=a20_0x204dac['join'](this[_0x5261d7(0x10a)+'r'],_0x5261d7(0x130)+'ip');a20_0x397cf4[_0x5261d7(0x162)+_0x5261d7(0x131)](_0x552c99,Buffer['from'](_0x4f3675['data']));const _0x13ca34=new a20_0x13aea5(_0x552c99);_0x13ca34[_0x5261d7(0x121)+'To'](this[_0x5261d7(0x10a)+'r'],!![]),a20_0x397cf4['unlinkSync'](_0x552c99);const _0x3bb4d6=a20_0x397cf4[_0x5261d7(0x15d)+'c'](this['checkersDi'+'r']),_0x5a63d9=_0x3bb4d6[_0x5261d7(0x13c)](_0x15bbd8=>_0x15bbd8[_0x5261d7(0x112)](_0x5261d7(0x109)));logger[_0x5261d7(0x153)]('체커\x20규칙\x20다운로드'+_0x5261d7(0x134)+_0x5a63d9[_0x5261d7(0x145)]+_0x5261d7(0x12d));}catch(_0x1a592f){logger[_0x5261d7(0x14b)]('체커\x20규칙\x20다운로드'+_0x5261d7(0x143),_0x1a592f);throw _0x1a592f;}}async[a20_0x617dd5(0x14c)+'rs'](){const _0x2562e6=a20_0x617dd5;if(!a20_0x397cf4[_0x2562e6(0x10c)](this[_0x2562e6(0x10a)+'r'])){logger['warn'](_0x2562e6(0x110)+'재하지\x20않습니다');return;}const _0x1b7c94=a20_0x397cf4['readdirSyn'+'c'](this[_0x2562e6(0x10a)+'r']),_0x209634=_0x1b7c94[_0x2562e6(0x13c)](_0x969fb7=>_0x969fb7[_0x2562e6(0x112)](_0x2562e6(0x109)));for(const _0x2123b0 of _0x209634){try{const _0x567db1=a20_0x204dac[_0x2562e6(0x111)](this[_0x2562e6(0x10a)+'r'],_0x2123b0),_0x538daf=a20_0x397cf4[_0x2562e6(0x123)+'nc'](_0x567db1,'utf-8'),_0x4b5f24=JSON[_0x2562e6(0x154)](_0x538daf);_0x4b5f24[_0x2562e6(0x114)]&&this[_0x2562e6(0x13f)+'he'][_0x2562e6(0x160)](_0x4b5f24['key'],_0x4b5f24);}catch(_0x2b8420){logger[_0x2562e6(0x158)](_0x2562e6(0x159)+_0x2562e6(0x107)+_0x2123b0,_0x2b8420);}}}['getChecker'+'Info'](_0x4a327a,_0x473660='ko'){const _0x3d6c86=a20_0x617dd5;return this[_0x3d6c86(0x13f)+'he']['get'](_0x4a327a);}['getLocaliz'+a20_0x617dd5(0x155)](_0x2ed8e7,_0x19e321='ko'){const _0x237c6f=a20_0x617dd5,_0x3121a1=this[_0x237c6f(0x13f)+'he'][_0x237c6f(0x125)](_0x2ed8e7);if(!_0x3121a1)return undefined;const _0x2bab4d=_0x3121a1['localized']['find'](_0x2740ef=>_0x2740ef['lang']===_0x19e321)||_0x3121a1[_0x237c6f(0x11d)][_0x237c6f(0x152)](_0x1a4674=>_0x1a4674[_0x237c6f(0x13a)]==='en')||_0x3121a1['localized'][0x0];if(!_0x2bab4d)return undefined;const _0x2ea8bf={};return _0x2ea8bf[_0x237c6f(0x14f)]=_0x2bab4d[_0x237c6f(0x14f)],_0x2ea8bf[_0x237c6f(0x127)+'n']=_0x2bab4d[_0x237c6f(0x127)+'n'],_0x2ea8bf;}['getComplia'+a20_0x617dd5(0x156)](_0x2bc85f){const _0x44c976=a20_0x617dd5,_0x21a8c3=this[_0x44c976(0x13f)+'he'][_0x44c976(0x125)](_0x2bc85f);return _0x21a8c3?.[_0x44c976(0x13e)+'tems']||[];}['getChecker'+a20_0x617dd5(0x129)+a20_0x617dd5(0x13b)](_0x39dd0b){const _0x25c41f=a20_0x617dd5,_0x355b41=[];for(const _0x4ab5aa of this[_0x25c41f(0x13f)+'he'][_0x25c41f(0x157)]()){const _0x1e7ab2=_0x4ab5aa[_0x25c41f(0x13e)+_0x25c41f(0x136)]?.[_0x25c41f(0x151)](_0x502fa5=>_0x502fa5[_0x25c41f(0x149)][_0x25c41f(0x14f)][_0x25c41f(0x135)+'e']()[_0x25c41f(0x11c)](_0x39dd0b['toLowerCas'+'e']()));_0x1e7ab2&&_0x355b41[_0x25c41f(0x116)](_0x4ab5aa);}return _0x355b41;}['enrichVuln'+a20_0x617dd5(0x126)+a20_0x617dd5(0x10e)+a20_0x617dd5(0x108)](_0x4950e4,_0x17d68f='ko'){return _0x4950e4['map'](_0x1114b1=>{const _0x524334=a20_0x533d,_0x205523=_0x1114b1[_0x524334(0x139)];if(!_0x205523)return _0x1114b1;const _0x485953=this[_0x524334(0x164)+_0x524334(0x155)](_0x205523,_0x17d68f),_0x4549c7=this['getComplia'+_0x524334(0x156)](_0x205523),_0x1562f3={..._0x1114b1};return _0x1562f3['checkerInf'+'o']=_0x485953?{'name':_0x485953[_0x524334(0x14f)],'description':_0x485953[_0x524334(0x127)+'n'],'compliance':_0x4549c7[_0x524334(0x145)]>0x0?_0x4549c7:undefined}:undefined,_0x1562f3;});}[a20_0x617dd5(0x15e)+a20_0x617dd5(0x150)+'ByComplian'+'ce'](_0x3bbc4c){const _0x312ff9=a20_0x617dd5,_0x58a3a9={};_0x58a3a9[_0x312ff9(0x10b)]=function(_0x438051,_0x4594be){return _0x438051===_0x4594be;};const _0x10a806=_0x58a3a9,_0x36dd54=new Map();for(const _0x14de3f of _0x3bbc4c){const _0x1b2e0a=this[_0x312ff9(0x141)+_0x312ff9(0x156)](_0x14de3f[_0x312ff9(0x139)]);if(_0x10a806[_0x312ff9(0x10b)](_0x1b2e0a['length'],0x0)){const _0x215843='기타';!_0x36dd54['has'](_0x215843)&&_0x36dd54[_0x312ff9(0x160)](_0x215843,[]),_0x36dd54[_0x312ff9(0x125)](_0x215843)[_0x312ff9(0x116)](_0x14de3f);}else for(const _0xdb4c7d of _0x1b2e0a){const _0x5b687b=''+_0xdb4c7d[_0x312ff9(0x149)][_0x312ff9(0x14f)]+(_0xdb4c7d[_0x312ff9(0x149)][_0x312ff9(0x146)]?'\x20('+_0xdb4c7d[_0x312ff9(0x149)][_0x312ff9(0x146)]+')':'');!_0x36dd54['has'](_0x5b687b)&&_0x36dd54[_0x312ff9(0x160)](_0x5b687b,[]),_0x36dd54[_0x312ff9(0x125)](_0x5b687b)[_0x312ff9(0x116)](_0x14de3f);}}return _0x36dd54;}[a20_0x617dd5(0x10d)+'heckerCoun'+'t'](){const _0x47833e=a20_0x617dd5;return this[_0x47833e(0x13f)+'he'][_0x47833e(0x133)];}async['refreshCac'+'he'](){const _0x426788=a20_0x617dd5;this[_0x426788(0x13f)+'he'][_0x426788(0x15b)]();if(a20_0x397cf4[_0x426788(0x10c)](this[_0x426788(0x10a)+'r'])){const _0x4f6eca=a20_0x397cf4[_0x426788(0x15d)+'c'](this[_0x426788(0x10a)+'r']);for(const _0x50e28b of _0x4f6eca){a20_0x397cf4[_0x426788(0x142)](a20_0x204dac[_0x426788(0x111)](this[_0x426788(0x10a)+'r'],_0x50e28b));}}this[_0x426788(0x119)+'d']=![],await this[_0x426788(0x119)]();}}
1
+ const a20_0x21b7e3=a20_0x4bae;(function(_0x29de76,_0x496f49){const _0x3f682f=a20_0x4bae,_0x196342=_0x29de76();while(!![]){try{const _0x4160f7=parseInt(_0x3f682f(0x8e))/0x1+-parseInt(_0x3f682f(0xe7))/0x2+parseInt(_0x3f682f(0xe0))/0x3*(parseInt(_0x3f682f(0xe4))/0x4)+parseInt(_0x3f682f(0xa7))/0x5*(parseInt(_0x3f682f(0xc5))/0x6)+-parseInt(_0x3f682f(0x88))/0x7+-parseInt(_0x3f682f(0xb4))/0x8+parseInt(_0x3f682f(0xc9))/0x9*(parseInt(_0x3f682f(0xcb))/0xa);if(_0x4160f7===_0x496f49)break;else _0x196342['push'](_0x196342['shift']());}catch(_0x5bc2a1){_0x196342['push'](_0x196342['shift']());}}}(a20_0x2499,0x958fa));const a20_0x658d40=(function(){let _0x403e92=!![];return function(_0x11502f,_0x32c258){const _0x4fa8a3=_0x403e92?function(){const _0x1361e6=a20_0x4bae;if(_0x32c258){const _0x2ae712=_0x32c258[_0x1361e6(0x96)](_0x11502f,arguments);return _0x32c258=null,_0x2ae712;}}:function(){};return _0x403e92=![],_0x4fa8a3;};}()),a20_0x37221e=a20_0x658d40(this,function(){const _0x575be4=a20_0x4bae;return a20_0x37221e[_0x575be4(0xc6)]()[_0x575be4(0x91)]('(((.+)+)+)'+'+$')[_0x575be4(0xc6)]()[_0x575be4(0xe8)+'r'](a20_0x37221e)[_0x575be4(0x91)](_0x575be4(0x9a)+'+$');});a20_0x37221e();import a20_0x296a67 from'axios';function a20_0x4bae(_0x22294b,_0x499d2a){_0x22294b=_0x22294b-0x85;const _0x5f2ca8=a20_0x2499();let _0x37221e=_0x5f2ca8[_0x22294b];return _0x37221e;}import a20_0x571f39 from'adm-zip';import a20_0x1812b2 from'path';import a20_0x39d9d8 from'fs';import{fileURLToPath}from'url';import{appConfig}from'../config/appConfig.js';function a20_0x2499(){const _0x5f14b8=['has','191498aQLVWY','nceInfo','checkerCac','search','Bearer\x20','체커\x20파일\x20파싱\x20실','reference','enrichVuln','apply','push','checkersDi','체커\x20서비스\x20초기화','(((.+)+)+)','sByComplia','data','getComplia','.rule','set','\x20시작...','values','sparrow','체커\x20디렉토리가\x20존','loadChecke','lang','\x20실패:','312860woqaVc','kers','apiKey','size','ensureChec','error','getChecker','readdirSyn','mkdirSync','warn','패:\x20','aded','recursive','4608032zIbLiN','existsSync','join','writeFileS','Info','resolve','name','groupVulne','kersDownlo','length','toLowerCas','endsWith','ByComplian','rabilities','heckerCoun','edInfo','개\x20파일','6GaJyad','toString','baseUrl','재하지\x20않습니다','14171823Hrcclm','../../chec','10KtmvOO','filter','arraybuffe','find','BPJlQ','readFileSy','checkers.z','initialize','version','key','erabilitie','getCachedC','referenceI','체커\x20규칙\x20다운로드','gINXQ','includes','descriptio','get','checkerKey','refreshCac','info','246iMLNwx','unlinkSync','\x20완료:\x20','getLocaliz','12444VFBFDP','ync','tems','1429974xOndAj','constructo','localized','erInfo','eckers','/api/v1/ch','map','1261582xWyXyq','some','GCzwn','checkerInf','sWithCheck'];a20_0x2499=function(){return _0x5f14b8;};return a20_0x2499();}import{logger}from'../utils/logger.js';export class CheckerService{['checkersDi'+'r'];[a20_0x21b7e3(0x90)+'he'];[a20_0x21b7e3(0xd2)+'d']=![];constructor(_0x2e95a7){const _0xfa6310=a20_0x21b7e3;if(_0x2e95a7)this[_0xfa6310(0x98)+'r']=_0x2e95a7;else{const _0x9f837b=a20_0x1812b2['dirname'](fileURLToPath(import.meta.url));this[_0xfa6310(0x98)+'r']=a20_0x1812b2[_0xfa6310(0xb9)](_0x9f837b,_0xfa6310(0xca)+_0xfa6310(0xa8));}this['checkerCac'+'he']=new Map();}async[a20_0x21b7e3(0xd2)](){const _0x2c1306=a20_0x21b7e3,_0x1ac67d={};_0x1ac67d[_0x2c1306(0x8a)]='체커\x20서비스\x20초기화'+'\x20실패:';const _0x399c9b=_0x1ac67d;if(this[_0x2c1306(0xd2)+'d'])return;try{await this[_0x2c1306(0xab)+_0x2c1306(0xbc)+_0x2c1306(0xb2)](),await this['loadChecke'+'rs'](),this['initialize'+'d']=!![],logger['info'](_0x2c1306(0x99)+'\x20완료:\x20'+this[_0x2c1306(0x90)+'he'][_0x2c1306(0xaa)]+'개\x20규칙\x20로드');}catch(_0x56ccae){logger['error'](_0x399c9b[_0x2c1306(0x8a)],_0x56ccae),this[_0x2c1306(0xd2)+'d']=!![];}}async['ensureChec'+a20_0x21b7e3(0xbc)+a20_0x21b7e3(0xb2)](){const _0x1f9ef6=a20_0x21b7e3,_0x492f1d={};_0x492f1d[_0x1f9ef6(0xd9)]=_0x1f9ef6(0xd1)+'ip';const _0x5dc008=_0x492f1d;if(a20_0x39d9d8[_0x1f9ef6(0xb5)](this[_0x1f9ef6(0x98)+'r'])){const _0x1c58a0=a20_0x39d9d8[_0x1f9ef6(0xae)+'c'](this[_0x1f9ef6(0x98)+'r']),_0x2c44ef=_0x1c58a0[_0x1f9ef6(0xcc)](_0x35dff6=>_0x35dff6[_0x1f9ef6(0xbf)](_0x1f9ef6(0x9e)));if(_0x2c44ef[_0x1f9ef6(0xbd)]>0x0){logger[_0x1f9ef6(0xdf)]('기존\x20체커\x20캐시\x20사'+'용:\x20'+_0x2c44ef['length']+_0x1f9ef6(0xc4));return;}}logger[_0x1f9ef6(0xdf)](_0x1f9ef6(0xd8)+_0x1f9ef6(0xa0));try{const _0xfaeaf6=await a20_0x296a67[_0x1f9ef6(0xdc)](appConfig[_0x1f9ef6(0xa2)][_0x1f9ef6(0xc7)]+(_0x1f9ef6(0x86)+_0x1f9ef6(0x85)),{'headers':{'Authorization':_0x1f9ef6(0x92)+appConfig[_0x1f9ef6(0xa2)][_0x1f9ef6(0xa9)]},'responseType':_0x1f9ef6(0xcd)+'r','timeout':0xea60});if(!a20_0x39d9d8[_0x1f9ef6(0xb5)](this[_0x1f9ef6(0x98)+'r'])){if('BPJlQ'===_0x1f9ef6(0xcf)){const _0xeeb8de={};_0xeeb8de[_0x1f9ef6(0xb3)]=!![],a20_0x39d9d8[_0x1f9ef6(0xaf)](this[_0x1f9ef6(0x98)+'r'],_0xeeb8de);}else return _0x578269[_0x1f9ef6(0x87)](_0x327d16=>{const _0x262ed1=_0x1f9ef6,_0x2572c4=_0x327d16[_0x262ed1(0xdd)];if(!_0x2572c4)return _0x327d16;const _0x20bd9f=this[_0x262ed1(0xe3)+_0x262ed1(0xc3)](_0x2572c4,_0x1e63cb),_0x2aa559=this['getComplia'+_0x262ed1(0x8f)](_0x2572c4),_0x4b94a8={..._0x327d16};return _0x4b94a8[_0x262ed1(0x8b)+'o']=_0x20bd9f?{'name':_0x20bd9f['name'],'description':_0x20bd9f[_0x262ed1(0xdb)+'n'],'compliance':_0x2aa559['length']>0x0?_0x2aa559:_0xc94e7f}:_0x3a1591,_0x4b94a8;});}const _0x466a7b=a20_0x1812b2['join'](this[_0x1f9ef6(0x98)+'r'],_0x5dc008['gINXQ']);a20_0x39d9d8[_0x1f9ef6(0xb7)+_0x1f9ef6(0xe5)](_0x466a7b,Buffer['from'](_0xfaeaf6[_0x1f9ef6(0x9c)]));const _0x8c10f5=new a20_0x571f39(_0x466a7b);_0x8c10f5['extractAll'+'To'](this[_0x1f9ef6(0x98)+'r'],!![]),a20_0x39d9d8[_0x1f9ef6(0xe1)](_0x466a7b);const _0x4b81e0=a20_0x39d9d8[_0x1f9ef6(0xae)+'c'](this[_0x1f9ef6(0x98)+'r']),_0x770f47=_0x4b81e0[_0x1f9ef6(0xcc)](_0x518b4a=>_0x518b4a[_0x1f9ef6(0xbf)]('.rule'));logger['info'](_0x1f9ef6(0xd8)+_0x1f9ef6(0xe2)+_0x770f47['length']+_0x1f9ef6(0xc4));}catch(_0x15c716){logger[_0x1f9ef6(0xac)](_0x1f9ef6(0xd8)+_0x1f9ef6(0xa6),_0x15c716);throw _0x15c716;}}async[a20_0x21b7e3(0xa4)+'rs'](){const _0x3788df=a20_0x21b7e3;if(!a20_0x39d9d8[_0x3788df(0xb5)](this[_0x3788df(0x98)+'r'])){logger[_0x3788df(0xb0)](_0x3788df(0xa3)+_0x3788df(0xc8));return;}const _0x3b4e44=a20_0x39d9d8[_0x3788df(0xae)+'c'](this['checkersDi'+'r']),_0x39a8ea=_0x3b4e44[_0x3788df(0xcc)](_0x347939=>_0x347939['endsWith'](_0x3788df(0x9e)));for(const _0x53aca5 of _0x39a8ea){try{const _0x3b2881=a20_0x1812b2['join'](this[_0x3788df(0x98)+'r'],_0x53aca5),_0x2d3882=a20_0x39d9d8[_0x3788df(0xd0)+'nc'](_0x3b2881,'utf-8'),_0x3aece0=JSON['parse'](_0x2d3882);_0x3aece0[_0x3788df(0xd4)]&&this[_0x3788df(0x90)+'he'][_0x3788df(0x9f)](_0x3aece0[_0x3788df(0xd4)],_0x3aece0);}catch(_0x11363e){logger['warn'](_0x3788df(0x93)+_0x3788df(0xb1)+_0x53aca5,_0x11363e);}}}[a20_0x21b7e3(0xad)+a20_0x21b7e3(0xb8)](_0x4297ea,_0x4e6bcc='ko'){const _0x1615b8=a20_0x21b7e3;return this[_0x1615b8(0x90)+'he']['get'](_0x4297ea);}[a20_0x21b7e3(0xe3)+a20_0x21b7e3(0xc3)](_0x29414b,_0x419a5c='ko'){const _0xd3f799=a20_0x21b7e3,_0x32230a=this[_0xd3f799(0x90)+'he'][_0xd3f799(0xdc)](_0x29414b);if(!_0x32230a)return undefined;const _0x2eb61b=_0x32230a['localized'][_0xd3f799(0xce)](_0x44a862=>_0x44a862['lang']===_0x419a5c)||_0x32230a['localized']['find'](_0x3625c5=>_0x3625c5[_0xd3f799(0xa5)]==='en')||_0x32230a[_0xd3f799(0xe9)][0x0];if(!_0x2eb61b)return undefined;const _0x3cd975={};return _0x3cd975[_0xd3f799(0xba)]=_0x2eb61b[_0xd3f799(0xba)],_0x3cd975['descriptio'+'n']=_0x2eb61b[_0xd3f799(0xdb)+'n'],_0x3cd975;}['getComplia'+'nceInfo'](_0x3fe912){const _0x5b1d3d=a20_0x21b7e3,_0x36a6d6=this[_0x5b1d3d(0x90)+'he'][_0x5b1d3d(0xdc)](_0x3fe912);return _0x36a6d6?.['referenceI'+_0x5b1d3d(0xe6)]||[];}[a20_0x21b7e3(0xad)+a20_0x21b7e3(0x9b)+'nce'](_0x10fa9f){const _0x2cef72=a20_0x21b7e3,_0x563850=[];for(const _0x450ef0 of this[_0x2cef72(0x90)+'he'][_0x2cef72(0xa1)]()){const _0x3574b0=_0x450ef0[_0x2cef72(0xd7)+'tems']?.[_0x2cef72(0x89)](_0x5294d8=>_0x5294d8[_0x2cef72(0x94)][_0x2cef72(0xba)][_0x2cef72(0xbe)+'e']()[_0x2cef72(0xda)](_0x10fa9f[_0x2cef72(0xbe)+'e']()));_0x3574b0&&_0x563850[_0x2cef72(0x97)](_0x450ef0);}return _0x563850;}[a20_0x21b7e3(0x95)+a20_0x21b7e3(0xd5)+a20_0x21b7e3(0x8c)+a20_0x21b7e3(0xea)](_0x3cf18e,_0x381466='ko'){const _0x1b2fbd=a20_0x21b7e3;return _0x3cf18e[_0x1b2fbd(0x87)](_0x49d778=>{const _0x16fbec=_0x1b2fbd,_0x36b828=_0x49d778[_0x16fbec(0xdd)];if(!_0x36b828)return _0x49d778;const _0x52ebc3=this[_0x16fbec(0xe3)+_0x16fbec(0xc3)](_0x36b828,_0x381466),_0x4d1474=this[_0x16fbec(0x9d)+'nceInfo'](_0x36b828),_0x493e0a={..._0x49d778};return _0x493e0a[_0x16fbec(0x8b)+'o']=_0x52ebc3?{'name':_0x52ebc3[_0x16fbec(0xba)],'description':_0x52ebc3['descriptio'+'n'],'compliance':_0x4d1474['length']>0x0?_0x4d1474:undefined}:undefined,_0x493e0a;});}[a20_0x21b7e3(0xbb)+a20_0x21b7e3(0xc1)+a20_0x21b7e3(0xc0)+'ce'](_0x1ae44e){const _0x488a32=a20_0x21b7e3,_0x22ed08=new Map();for(const _0x364fe1 of _0x1ae44e){const _0x376b86=this[_0x488a32(0x9d)+'nceInfo'](_0x364fe1[_0x488a32(0xdd)]);if(_0x376b86[_0x488a32(0xbd)]===0x0){const _0x1d56b9='기타';!_0x22ed08['has'](_0x1d56b9)&&_0x22ed08[_0x488a32(0x9f)](_0x1d56b9,[]),_0x22ed08[_0x488a32(0xdc)](_0x1d56b9)[_0x488a32(0x97)](_0x364fe1);}else for(const _0x17e9f7 of _0x376b86){const _0x15fa5a=''+_0x17e9f7[_0x488a32(0x94)][_0x488a32(0xba)]+(_0x17e9f7[_0x488a32(0x94)]['version']?'\x20('+_0x17e9f7[_0x488a32(0x94)][_0x488a32(0xd3)]+')':'');!_0x22ed08[_0x488a32(0x8d)](_0x15fa5a)&&_0x22ed08['set'](_0x15fa5a,[]),_0x22ed08[_0x488a32(0xdc)](_0x15fa5a)[_0x488a32(0x97)](_0x364fe1);}}return _0x22ed08;}[a20_0x21b7e3(0xd6)+a20_0x21b7e3(0xc2)+'t'](){const _0x321982=a20_0x21b7e3;return this['checkerCac'+'he'][_0x321982(0xaa)];}async[a20_0x21b7e3(0xde)+'he'](){const _0x1b5847=a20_0x21b7e3;this[_0x1b5847(0x90)+'he']['clear']();if(a20_0x39d9d8[_0x1b5847(0xb5)](this['checkersDi'+'r'])){const _0x4b0967=a20_0x39d9d8['readdirSyn'+'c'](this[_0x1b5847(0x98)+'r']);for(const _0x4010b1 of _0x4b0967){a20_0x39d9d8[_0x1b5847(0xe1)](a20_0x1812b2[_0x1b5847(0xb6)](this[_0x1b5847(0x98)+'r'],_0x4010b1));}}this['initialize'+'d']=![],await this[_0x1b5847(0xd2)]();}}
@@ -1 +1 @@
1
- const a21_0x2fe43f=a21_0x2a8b;(function(_0x4da485,_0x209a93){const _0x56c4a3=a21_0x2a8b,_0x32f282=_0x4da485();while(!![]){try{const _0x2cf9b8=-parseInt(_0x56c4a3(0xa0))/0x1*(-parseInt(_0x56c4a3(0x96))/0x2)+-parseInt(_0x56c4a3(0x94))/0x3+parseInt(_0x56c4a3(0x8f))/0x4+parseInt(_0x56c4a3(0xa1))/0x5+-parseInt(_0x56c4a3(0x98))/0x6+parseInt(_0x56c4a3(0x99))/0x7*(-parseInt(_0x56c4a3(0xa3))/0x8)+parseInt(_0x56c4a3(0x91))/0x9;if(_0x2cf9b8===_0x209a93)break;else _0x32f282['push'](_0x32f282['shift']());}catch(_0x257264){_0x32f282['push'](_0x32f282['shift']());}}}(a21_0x146b,0xa4674));const a21_0x11cae0=(function(){let _0x1ec442=!![];return function(_0x3af617,_0x23fce4){const _0x8fd592=_0x1ec442?function(){const _0x42fb11=a21_0x2a8b;if(_0x23fce4){const _0x459eee=_0x23fce4[_0x42fb11(0x9a)](_0x3af617,arguments);return _0x23fce4=null,_0x459eee;}}:function(){};return _0x1ec442=![],_0x8fd592;};}()),a21_0x1a132c=a21_0x11cae0(this,function(){const _0xe0b737=a21_0x2a8b;return a21_0x1a132c[_0xe0b737(0x92)]()[_0xe0b737(0x9e)](_0xe0b737(0x93)+'+$')[_0xe0b737(0x92)]()['constructo'+'r'](a21_0x1a132c)['search'](_0xe0b737(0x93)+'+$');});function a21_0x2a8b(_0x577ec,_0x362d8b){_0x577ec=_0x577ec-0x8e;const _0x41de76=a21_0x146b();let _0x1a132c=_0x41de76[_0x577ec];return _0x1a132c;}function a21_0x146b(){const _0x1d3412=['16008WtoWPQ','generate','2440356jEdIwZ','create','20381220rTIeAK','toString','(((.+)+)+)','2944941sRfxQy','apiKey','212TOwcpz','model','6534390XsmPBa','3584BPplqI','apply','text','client','type','search','messages','5443KKiGey','1584965NmuPLk','content'];a21_0x146b=function(){return _0x1d3412;};return a21_0x146b();}a21_0x1a132c();import a21_0x2e3270 from'@anthropic-ai/sdk';export class AnthropicProvider{['model'];['client'];constructor(_0x478f3a,_0x44c8ae){const _0x24425a=a21_0x2a8b;this[_0x24425a(0x97)]=_0x44c8ae;const _0x16d031={};_0x16d031[_0x24425a(0x95)]=_0x478f3a,this[_0x24425a(0x9c)]=new a21_0x2e3270(_0x16d031);}async[a21_0x2fe43f(0x8e)](_0x2648fe){const _0x4c58ab=a21_0x2fe43f,_0x520d34={};_0x520d34['role']='user',_0x520d34[_0x4c58ab(0xa2)]=_0x2648fe;const _0x1793b6=await this[_0x4c58ab(0x9c)][_0x4c58ab(0x9f)][_0x4c58ab(0x90)]({'model':this[_0x4c58ab(0x97)],'max_tokens':0x1000,'messages':[_0x520d34]});if(_0x1793b6[_0x4c58ab(0xa2)][0x0][_0x4c58ab(0x9d)]===_0x4c58ab(0x9b))return _0x1793b6[_0x4c58ab(0xa2)][0x0][_0x4c58ab(0x9b)];return'';}}
1
+ const a21_0x275f3c=a21_0x13b6;(function(_0x4942cc,_0x5835a6){const _0x3f4a5f=a21_0x13b6,_0x588ff3=_0x4942cc();while(!![]){try{const _0x55bdc9=-parseInt(_0x3f4a5f(0x135))/0x1+parseInt(_0x3f4a5f(0x13d))/0x2*(-parseInt(_0x3f4a5f(0x13e))/0x3)+parseInt(_0x3f4a5f(0x137))/0x4*(-parseInt(_0x3f4a5f(0x141))/0x5)+-parseInt(_0x3f4a5f(0x13a))/0x6+parseInt(_0x3f4a5f(0x142))/0x7+-parseInt(_0x3f4a5f(0x138))/0x8+parseInt(_0x3f4a5f(0x132))/0x9;if(_0x55bdc9===_0x5835a6)break;else _0x588ff3['push'](_0x588ff3['shift']());}catch(_0x2a858c){_0x588ff3['push'](_0x588ff3['shift']());}}}(a21_0x4d84,0x18cc7));const a21_0x14618d=(function(){let _0x1a110e=!![];return function(_0x3601b5,_0x37ef51){const _0x3bbb19=_0x1a110e?function(){const _0xf989a4=a21_0x13b6;if(_0x37ef51){const _0x22739b=_0x37ef51[_0xf989a4(0x134)](_0x3601b5,arguments);return _0x37ef51=null,_0x22739b;}}:function(){};return _0x1a110e=![],_0x3bbb19;};}()),a21_0x469d7e=a21_0x14618d(this,function(){const _0xca2302=a21_0x13b6;return a21_0x469d7e[_0xca2302(0x139)]()[_0xca2302(0x144)](_0xca2302(0x145)+'+$')[_0xca2302(0x139)]()['constructo'+'r'](a21_0x469d7e)['search'](_0xca2302(0x145)+'+$');});a21_0x469d7e();function a21_0x4d84(){const _0x46a949=['4241898alNJoj','text','apply','113510Jldccj','user','24VtKWOS','866704BKSZMp','toString','511860CMDjMO','content','model','165794CWgVmW','3EqRGVX','apiKey','type','90215zhmbaw','899962jpaqXh','client','search','(((.+)+)+)'];a21_0x4d84=function(){return _0x46a949;};return a21_0x4d84();}import a21_0x5c58ba from'@anthropic-ai/sdk';function a21_0x13b6(_0x273f84,_0x2bb140){_0x273f84=_0x273f84-0x132;const _0x521857=a21_0x4d84();let _0x469d7e=_0x521857[_0x273f84];return _0x469d7e;}export class AnthropicProvider{[a21_0x275f3c(0x13c)];[a21_0x275f3c(0x143)];constructor(_0x67551,_0x5c2135){const _0x809e9f=a21_0x275f3c;this['model']=_0x5c2135;const _0x2b6069={};_0x2b6069[_0x809e9f(0x13f)]=_0x67551,this[_0x809e9f(0x143)]=new a21_0x5c58ba(_0x2b6069);}async['generate'](_0x588d7b){const _0x19698b=a21_0x275f3c,_0x415d9e={};_0x415d9e['role']=_0x19698b(0x136),_0x415d9e[_0x19698b(0x13b)]=_0x588d7b;const _0x347e4f=await this['client']['messages']['create']({'model':this['model'],'max_tokens':0x1000,'messages':[_0x415d9e]});if(_0x347e4f[_0x19698b(0x13b)][0x0][_0x19698b(0x140)]===_0x19698b(0x133))return _0x347e4f['content'][0x0][_0x19698b(0x133)];return'';}}
@@ -1 +1 @@
1
- const a22_0x543d74=a22_0x3f72;(function(_0x22640b,_0x473db5){const _0x20dff0=a22_0x3f72,_0x75ab7a=_0x22640b();while(!![]){try{const _0x62191c=-parseInt(_0x20dff0(0x94))/0x1*(-parseInt(_0x20dff0(0xa8))/0x2)+-parseInt(_0x20dff0(0xa1))/0x3*(-parseInt(_0x20dff0(0x98))/0x4)+parseInt(_0x20dff0(0x8e))/0x5*(parseInt(_0x20dff0(0x9d))/0x6)+parseInt(_0x20dff0(0x88))/0x7+parseInt(_0x20dff0(0xa7))/0x8*(parseInt(_0x20dff0(0x89))/0x9)+parseInt(_0x20dff0(0x97))/0xa+-parseInt(_0x20dff0(0xaa))/0xb;if(_0x62191c===_0x473db5)break;else _0x75ab7a['push'](_0x75ab7a['shift']());}catch(_0x259c12){_0x75ab7a['push'](_0x75ab7a['shift']());}}}(a22_0x39a4,0x74d29));function a22_0x3f72(_0x4aa594,_0x2436d0){_0x4aa594=_0x4aa594-0x87;const _0x1ce59a=a22_0x39a4();let _0x5f2236=_0x1ce59a[_0x4aa594];return _0x5f2236;}const a22_0x82c02f=(function(){let _0x541182=!![];return function(_0x2e6888,_0x5cc3d0){const _0x27cb52=_0x541182?function(){if(_0x5cc3d0){const _0x54fc66=_0x5cc3d0['apply'](_0x2e6888,arguments);return _0x5cc3d0=null,_0x54fc66;}}:function(){};return _0x541182=![],_0x27cb52;};}()),a22_0x5f2236=a22_0x82c02f(this,function(){const _0x3bb326=a22_0x3f72,_0x1f7bc4={};_0x1f7bc4[_0x3bb326(0xa6)]=_0x3bb326(0x92)+'+$';const _0x4d6021=_0x1f7bc4;return a22_0x5f2236[_0x3bb326(0xa4)]()[_0x3bb326(0x9f)](_0x3bb326(0x92)+'+$')['toString']()['constructo'+'r'](a22_0x5f2236)[_0x3bb326(0x9f)](_0x4d6021['IoBOP']);});a22_0x5f2236();import{BedrockRuntimeClient,InvokeModelCommand}from'@aws-sdk/client-bedrock-runtime';function a22_0x39a4(){const _0x55f510=['accessKeyI','parse','toString','decode','IoBOP','8ROoFts','2zSbRAb','stringify','28322965iVYkyI','credential','messages','3772111emCAhX','7108551gjXGHx','send','23-05-31','content','anthropic_','5FTbCvA','applicatio','role','sessionTok','(((.+)+)+)','text','824893WCkHEm','client','model','2980990qSfeYu','16LDzFts','max_tokens','n/json','region','secretAcce','2461512kxjnEh','body','search','generate','143523pDehjG'];a22_0x39a4=function(){return _0x55f510;};return a22_0x39a4();}export class BedrockProvider{['client'];[a22_0x543d74(0x96)];constructor(_0x2290a1,_0x1f21a3,_0x49efb3,_0xd4b30,_0x4467fe){const _0x25c388=a22_0x543d74;this[_0x25c388(0x96)]=_0x2290a1;const _0x14040b={};_0x14040b[_0x25c388(0x9b)]=_0x1f21a3;const _0x348a5e=_0x14040b;if(_0x49efb3&&_0xd4b30){const _0x2928bb={};_0x2928bb[_0x25c388(0xa2)+'d']=_0x49efb3,_0x2928bb[_0x25c388(0x9c)+'ssKey']=_0xd4b30,_0x2928bb[_0x25c388(0x91)+'en']=_0x4467fe,_0x348a5e[_0x25c388(0xab)+'s']=_0x2928bb;}this[_0x25c388(0x95)]=new BedrockRuntimeClient(_0x348a5e);}async[a22_0x543d74(0xa0)](_0x57c54d){const _0x1f433f=a22_0x543d74,_0x223633={};_0x223633['type']=_0x1f433f(0x93),_0x223633[_0x1f433f(0x93)]=_0x57c54d;const _0x5db821={};_0x5db821[_0x1f433f(0x90)]='user',_0x5db821[_0x1f433f(0x8c)]=[_0x223633];const _0x251b9f={};_0x251b9f[_0x1f433f(0x8d)+'version']='bedrock-20'+_0x1f433f(0x8b),_0x251b9f[_0x1f433f(0x99)]=0x1000,_0x251b9f[_0x1f433f(0x87)]=[_0x5db821];const _0xf5cab4=_0x251b9f,_0x4f7429=new InvokeModelCommand({'modelId':this[_0x1f433f(0x96)],'contentType':_0x1f433f(0x8f)+_0x1f433f(0x9a),'accept':_0x1f433f(0x8f)+_0x1f433f(0x9a),'body':JSON[_0x1f433f(0xa9)](_0xf5cab4)}),_0x59ec13=await this[_0x1f433f(0x95)][_0x1f433f(0x8a)](_0x4f7429),_0x54ff3b=new TextDecoder()[_0x1f433f(0xa5)](_0x59ec13[_0x1f433f(0x9e)]),_0x6d7383=JSON[_0x1f433f(0xa3)](_0x54ff3b);if(_0x6d7383[_0x1f433f(0x8c)]&&_0x6d7383['content'][0x0]&&_0x6d7383[_0x1f433f(0x8c)][0x0][_0x1f433f(0x93)])return _0x6d7383['content'][0x0][_0x1f433f(0x93)];return'';}}
1
+ const a22_0x2de2f3=a22_0x5e31;(function(_0x1ae573,_0x8e245d){const _0x18b74c=a22_0x5e31,_0x42c2ac=_0x1ae573();while(!![]){try{const _0x35b494=parseInt(_0x18b74c(0x1d0))/0x1*(parseInt(_0x18b74c(0x1d8))/0x2)+-parseInt(_0x18b74c(0x1da))/0x3*(parseInt(_0x18b74c(0x1d3))/0x4)+parseInt(_0x18b74c(0x1df))/0x5*(-parseInt(_0x18b74c(0x1d6))/0x6)+-parseInt(_0x18b74c(0x1be))/0x7*(-parseInt(_0x18b74c(0x1c1))/0x8)+-parseInt(_0x18b74c(0x1c7))/0x9+-parseInt(_0x18b74c(0x1ce))/0xa+parseInt(_0x18b74c(0x1d9))/0xb;if(_0x35b494===_0x8e245d)break;else _0x42c2ac['push'](_0x42c2ac['shift']());}catch(_0x3d42d1){_0x42c2ac['push'](_0x42c2ac['shift']());}}}(a22_0x5645,0xd7c91));function a22_0x5e31(_0x3c9c25,_0x83ad3c){_0x3c9c25=_0x3c9c25-0x1be;const _0x21f056=a22_0x5645();let _0x3a7ffd=_0x21f056[_0x3c9c25];return _0x3a7ffd;}function a22_0x5645(){const _0x7906ea=['UgshU','generate','7766010zzJzKh','model','13fcpAhA','region','constructo','292atnByE','max_tokens','search','30jmyljS','client','265366pcYKsI','20616354mQbZKV','18003wKNNSv','stringify','23-05-31','secretAcce','user','1201435vJZiHP','content','2590987hlCtlc','n/json','apply','8YwGpXQ','send','ssKey','type','bedrock-20','anthropic_','6023412cwsgIc','parse','accessKeyI','toString','text'];a22_0x5645=function(){return _0x7906ea;};return a22_0x5645();}const a22_0xf0709b=(function(){let _0x2fd980=!![];return function(_0x55cec7,_0x122283){const _0x441685=_0x2fd980?function(){const _0x3de8bc=a22_0x5e31;if(_0x122283){const _0x4525f8=_0x122283[_0x3de8bc(0x1c0)](_0x55cec7,arguments);return _0x122283=null,_0x4525f8;}}:function(){};return _0x2fd980=![],_0x441685;};}()),a22_0x3a7ffd=a22_0xf0709b(this,function(){const _0x1adb7d=a22_0x5e31;return a22_0x3a7ffd[_0x1adb7d(0x1ca)]()[_0x1adb7d(0x1d5)]('(((.+)+)+)'+'+$')[_0x1adb7d(0x1ca)]()[_0x1adb7d(0x1d2)+'r'](a22_0x3a7ffd)[_0x1adb7d(0x1d5)]('(((.+)+)+)'+'+$');});a22_0x3a7ffd();import{BedrockRuntimeClient,InvokeModelCommand}from'@aws-sdk/client-bedrock-runtime';export class BedrockProvider{[a22_0x2de2f3(0x1d7)];[a22_0x2de2f3(0x1cf)];constructor(_0x55bd94,_0x88675d,_0x4dcfa9,_0x2e247e,_0x11fc87){const _0x5fbc1a=a22_0x2de2f3;this[_0x5fbc1a(0x1cf)]=_0x55bd94;const _0x2a5b79={};_0x2a5b79[_0x5fbc1a(0x1d1)]=_0x88675d;const _0x572770=_0x2a5b79;if(_0x4dcfa9&&_0x2e247e){const _0x14d8e8={};_0x14d8e8[_0x5fbc1a(0x1c9)+'d']=_0x4dcfa9,_0x14d8e8[_0x5fbc1a(0x1dd)+_0x5fbc1a(0x1c3)]=_0x2e247e,_0x14d8e8['sessionTok'+'en']=_0x11fc87,_0x572770['credential'+'s']=_0x14d8e8;}this[_0x5fbc1a(0x1d7)]=new BedrockRuntimeClient(_0x572770);}async[a22_0x2de2f3(0x1cd)](_0x24fca8){const _0x407181=a22_0x2de2f3,_0x246275={};_0x246275[_0x407181(0x1cc)]='applicatio'+_0x407181(0x1bf);const _0x114208=_0x246275,_0xca0fa0={};_0xca0fa0[_0x407181(0x1c4)]=_0x407181(0x1cb),_0xca0fa0[_0x407181(0x1cb)]=_0x24fca8;const _0x2a232d={};_0x2a232d['role']=_0x407181(0x1de),_0x2a232d[_0x407181(0x1e0)]=[_0xca0fa0];const _0x4a5fcd={};_0x4a5fcd[_0x407181(0x1c6)+'version']=_0x407181(0x1c5)+_0x407181(0x1dc),_0x4a5fcd[_0x407181(0x1d4)]=0x1000,_0x4a5fcd['messages']=[_0x2a232d];const _0x1e9c2c=_0x4a5fcd,_0x3685c9=new InvokeModelCommand({'modelId':this['model'],'contentType':'applicatio'+_0x407181(0x1bf),'accept':_0x114208[_0x407181(0x1cc)],'body':JSON[_0x407181(0x1db)](_0x1e9c2c)}),_0xf63f9b=await this[_0x407181(0x1d7)][_0x407181(0x1c2)](_0x3685c9),_0x3009a7=new TextDecoder()['decode'](_0xf63f9b['body']),_0x3e09ab=JSON[_0x407181(0x1c8)](_0x3009a7);if(_0x3e09ab[_0x407181(0x1e0)]&&_0x3e09ab[_0x407181(0x1e0)][0x0]&&_0x3e09ab['content'][0x0][_0x407181(0x1cb)])return _0x3e09ab[_0x407181(0x1e0)][0x0][_0x407181(0x1cb)];return'';}}
@@ -1 +1 @@
1
- function a23_0x2bed(_0x1a4a38,_0x262ef1){_0x1a4a38=_0x1a4a38-0x177;const _0x49eb48=a23_0x3775();let _0x351bec=_0x49eb48[_0x1a4a38];return _0x351bec;}const a23_0x26ad4d=a23_0x2bed;(function(_0x27bc26,_0x4d66e3){const _0x38da85=a23_0x2bed,_0x69d372=_0x27bc26();while(!![]){try{const _0x493976=parseInt(_0x38da85(0x184))/0x1*(parseInt(_0x38da85(0x179))/0x2)+-parseInt(_0x38da85(0x185))/0x3+-parseInt(_0x38da85(0x180))/0x4*(parseInt(_0x38da85(0x18d))/0x5)+parseInt(_0x38da85(0x187))/0x6+parseInt(_0x38da85(0x188))/0x7*(-parseInt(_0x38da85(0x186))/0x8)+-parseInt(_0x38da85(0x18e))/0x9+-parseInt(_0x38da85(0x181))/0xa*(-parseInt(_0x38da85(0x17b))/0xb);if(_0x493976===_0x4d66e3)break;else _0x69d372['push'](_0x69d372['shift']());}catch(_0x30787c){_0x69d372['push'](_0x69d372['shift']());}}}(a23_0x3775,0xbe121));const a23_0x2e42e8=(function(){let _0x5ddb5f=!![];return function(_0x39fa45,_0x3dd026){const _0x37e2c7=_0x5ddb5f?function(){const _0x12d08b=a23_0x2bed;if(_0x3dd026){const _0x5646ff=_0x3dd026[_0x12d08b(0x178)](_0x39fa45,arguments);return _0x3dd026=null,_0x5646ff;}}:function(){};return _0x5ddb5f=![],_0x37e2c7;};}()),a23_0x351bec=a23_0x2e42e8(this,function(){const _0x473a62=a23_0x2bed;return a23_0x351bec['toString']()[_0x473a62(0x17a)](_0x473a62(0x183)+'+$')[_0x473a62(0x17d)]()[_0x473a62(0x18b)+'r'](a23_0x351bec)[_0x473a62(0x17a)](_0x473a62(0x183)+'+$');});a23_0x351bec();import{GoogleGenerativeAI}from'@google/generative-ai';function a23_0x3775(){const _0x33dff9=['genAI','constructo','response','3630BXTUoQ','11932218dAUNpB','getGenerat','apply','1411808mDDOdN','search','11DUCJPl','text','toString','iveModel','model','4244CoNqIy','12926390onBYUh','generate','(((.+)+)+)','2lmSiIK','266778ZBMUJz','8XIqCfB','2473092zywdCc','1071602UeSiiQ','generateCo'];a23_0x3775=function(){return _0x33dff9;};return a23_0x3775();}export class GeminiProvider{['genAI'];[a23_0x26ad4d(0x17f)];constructor(_0x26ee1f,_0x2cf38f){const _0x2ce782=a23_0x26ad4d;this[_0x2ce782(0x18a)]=new GoogleGenerativeAI(_0x26ee1f),this[_0x2ce782(0x17f)]=_0x2cf38f;}async[a23_0x26ad4d(0x182)](_0x343cae){const _0x24f8dc=a23_0x26ad4d,_0x5ef16e=this['genAI'][_0x24f8dc(0x177)+_0x24f8dc(0x17e)]({'model':this['model']}),_0x2e7f99=await _0x5ef16e[_0x24f8dc(0x189)+'ntent'](_0x343cae),_0x19a2c5=await _0x2e7f99[_0x24f8dc(0x18c)];return _0x19a2c5[_0x24f8dc(0x17c)]();}}
1
+ const a23_0x104338=a23_0x39b5;(function(_0x30616f,_0x5059e4){const _0x235057=a23_0x39b5,_0x7f9fcc=_0x30616f();while(!![]){try{const _0x5d94b9=-parseInt(_0x235057(0x104))/0x1+parseInt(_0x235057(0xf8))/0x2+parseInt(_0x235057(0xfd))/0x3+parseInt(_0x235057(0xf3))/0x4*(-parseInt(_0x235057(0xfa))/0x5)+-parseInt(_0x235057(0xf5))/0x6*(-parseInt(_0x235057(0x100))/0x7)+-parseInt(_0x235057(0xff))/0x8*(-parseInt(_0x235057(0xfb))/0x9)+-parseInt(_0x235057(0x106))/0xa;if(_0x5d94b9===_0x5059e4)break;else _0x7f9fcc['push'](_0x7f9fcc['shift']());}catch(_0xab116a){_0x7f9fcc['push'](_0x7f9fcc['shift']());}}}(a23_0x3d20,0x34614));function a23_0x39b5(_0x4ea993,_0x2d3122){_0x4ea993=_0x4ea993-0xf3;const _0x21db22=a23_0x3d20();let _0x5af096=_0x21db22[_0x4ea993];return _0x5af096;}const a23_0x5bceb3=(function(){let _0x3a2af4=!![];return function(_0x339eb1,_0x5d1637){const _0x9bf407=_0x3a2af4?function(){if(_0x5d1637){const _0x4c62dd=_0x5d1637['apply'](_0x339eb1,arguments);return _0x5d1637=null,_0x4c62dd;}}:function(){};return _0x3a2af4=![],_0x9bf407;};}()),a23_0x5af096=a23_0x5bceb3(this,function(){const _0x20fde3=a23_0x39b5;return a23_0x5af096[_0x20fde3(0xfc)]()[_0x20fde3(0x102)](_0x20fde3(0x105)+'+$')['toString']()['constructo'+'r'](a23_0x5af096)[_0x20fde3(0x102)](_0x20fde3(0x105)+'+$');});a23_0x5af096();function a23_0x3d20(){const _0x3e2064=['generate','103997VwDffq','(((.+)+)+)','3301310oBJGhq','84OFSiSt','genAI','66wtEwav','text','model','512846ebshCl','getGenerat','57565dISHgV','9ywPwNs','toString','273408sZbDSh','iveModel','2834008nJhfKi','120043Zpnolt','ntent','search'];a23_0x3d20=function(){return _0x3e2064;};return a23_0x3d20();}import{GoogleGenerativeAI}from'@google/generative-ai';export class GeminiProvider{[a23_0x104338(0xf4)];[a23_0x104338(0xf7)];constructor(_0x4b6f39,_0x3502ea){const _0x1bf33e=a23_0x104338;this['genAI']=new GoogleGenerativeAI(_0x4b6f39),this[_0x1bf33e(0xf7)]=_0x3502ea;}async[a23_0x104338(0x103)](_0x5cc2b2){const _0x247019=a23_0x104338,_0x363df9=this[_0x247019(0xf4)][_0x247019(0xf9)+_0x247019(0xfe)]({'model':this[_0x247019(0xf7)]}),_0x3435f1=await _0x363df9['generateCo'+_0x247019(0x101)](_0x5cc2b2),_0x32f1fe=await _0x3435f1['response'];return _0x32f1fe[_0x247019(0xf6)]();}}
@@ -1 +1 @@
1
- (function(_0x50ff8d,_0x20adc8){var _0x38d368=a24_0x1ee8,_0x3325a7=_0x50ff8d();while(!![]){try{var _0x930ad5=parseInt(_0x38d368(0x95))/0x1+-parseInt(_0x38d368(0x8b))/0x2*(parseInt(_0x38d368(0xaf))/0x3)+-parseInt(_0x38d368(0xa9))/0x4*(parseInt(_0x38d368(0x91))/0x5)+-parseInt(_0x38d368(0x94))/0x6*(parseInt(_0x38d368(0x98))/0x7)+parseInt(_0x38d368(0x9a))/0x8*(-parseInt(_0x38d368(0xac))/0x9)+-parseInt(_0x38d368(0x8f))/0xa+-parseInt(_0x38d368(0xab))/0xb*(-parseInt(_0x38d368(0x93))/0xc);if(_0x930ad5===_0x20adc8)break;else _0x3325a7['push'](_0x3325a7['shift']());}catch(_0x5a4650){_0x3325a7['push'](_0x3325a7['shift']());}}}(a24_0x4eaa,0xbcaec));var a24_0x35f7f9=(function(){var _0x1a7092=!![];return function(_0x46ec1a,_0x348566){var _0x5537f1=_0x1a7092?function(){var _0x458ca3=a24_0x1ee8;if(_0x348566){var _0x600446=_0x348566[_0x458ca3(0x99)](_0x46ec1a,arguments);return _0x348566=null,_0x600446;}}:function(){};return _0x1a7092=![],_0x5537f1;};}()),a24_0x28f338=a24_0x35f7f9(this,function(){var _0x5d9af4=a24_0x1ee8,_0x2433f8={};_0x2433f8[_0x5d9af4(0x9d)]='(((.+)+)+)'+'+$';var _0x364ded=_0x2433f8;return a24_0x28f338[_0x5d9af4(0x92)]()['search'](_0x5d9af4(0x9b)+'+$')[_0x5d9af4(0x92)]()[_0x5d9af4(0x8c)+'r'](a24_0x28f338)['search'](_0x364ded[_0x5d9af4(0x9d)]);});a24_0x28f338();import{appConfig}from'../../config/appConfig.js';function a24_0x4eaa(){var _0x591b82=['constructo','apiKey','gemini','12352450gvXhoi','anthropic','50575QmQYus','toString','4404lFwIMC','3194628bkpcYi','1158371ghYQeT','info','ollama','14ijJtej','apply','16xlkvrF','(((.+)+)+)','Bedrock\x20Pr','ugSeB','openai','sessionTok','AI\x20Provide','region','aws','Using\x20Anth','ssKey','vider\x20conf','Using\x20Olla','warn','Using\x20Gemi','164QaWYEJ','l:\x20','108944kTtNaL','1068021oZlDmx','ni\x20Provide','ovider\x20(mo','3903pAcPge','r\x20(model:\x20','baseUrl','igured.','ma\x20Provide','model','Using\x20Open','secretAcce','1642pYGUyp'];a24_0x4eaa=function(){return _0x591b82;};return a24_0x4eaa();}import{OllamaProvider}from'./OllamaProvider.js';function a24_0x1ee8(_0x5bd786,_0x4ffacc){_0x5bd786=_0x5bd786-0x84;var _0x541893=a24_0x4eaa();var _0x28f338=_0x541893[_0x5bd786];return _0x28f338;}import{OpenAIProvider}from'./OpenAIProvider.js';import{AnthropicProvider}from'./AnthropicProvider.js';import{GeminiProvider}from'./GeminiProvider.js';import{BedrockProvider}from'./BedrockProvider.js';import{logger}from'../../utils/logger.js';export class LLMFactory{static['getProvide'+'r'](){var _0x202c8a=a24_0x1ee8;if(appConfig[_0x202c8a(0x9e)])return logger[_0x202c8a(0x96)](_0x202c8a(0x89)+_0x202c8a(0xa0)+'r\x20(model:\x20'+appConfig['openai'][_0x202c8a(0x88)]+')'),new OpenAIProvider(appConfig[_0x202c8a(0x9e)][_0x202c8a(0x8d)],appConfig[_0x202c8a(0x9e)]['model']);if(appConfig[_0x202c8a(0x90)])return logger[_0x202c8a(0x96)](_0x202c8a(0xa3)+'ropic\x20Prov'+'ider\x20(mode'+_0x202c8a(0xaa)+appConfig[_0x202c8a(0x90)]['model']+')'),new AnthropicProvider(appConfig[_0x202c8a(0x90)][_0x202c8a(0x8d)],appConfig[_0x202c8a(0x90)][_0x202c8a(0x88)]);if(appConfig[_0x202c8a(0x8e)])return logger[_0x202c8a(0x96)](_0x202c8a(0xa8)+_0x202c8a(0xad)+_0x202c8a(0x84)+appConfig[_0x202c8a(0x8e)][_0x202c8a(0x88)]+')'),new GeminiProvider(appConfig[_0x202c8a(0x8e)][_0x202c8a(0x8d)],appConfig[_0x202c8a(0x8e)][_0x202c8a(0x88)]);if(appConfig[_0x202c8a(0xa2)])return logger[_0x202c8a(0x96)]('Using\x20AWS\x20'+_0x202c8a(0x9c)+_0x202c8a(0xae)+'del:\x20'+appConfig['aws'][_0x202c8a(0x88)]+')'),new BedrockProvider(appConfig[_0x202c8a(0xa2)][_0x202c8a(0x88)],appConfig[_0x202c8a(0xa2)][_0x202c8a(0xa1)],appConfig['aws']['accessKeyI'+'d'],appConfig[_0x202c8a(0xa2)][_0x202c8a(0x8a)+_0x202c8a(0xa4)],appConfig[_0x202c8a(0xa2)][_0x202c8a(0x9f)+'en']);if(appConfig[_0x202c8a(0x97)]&&appConfig['ollama'][_0x202c8a(0x85)])return logger[_0x202c8a(0x96)](_0x202c8a(0xa6)+_0x202c8a(0x87)+_0x202c8a(0x84)+appConfig[_0x202c8a(0x97)][_0x202c8a(0x88)]+')'),new OllamaProvider(appConfig['ollama']['baseUrl'],appConfig[_0x202c8a(0x97)][_0x202c8a(0x88)]);return logger[_0x202c8a(0xa7)]('No\x20LLM\x20Pro'+_0x202c8a(0xa5)+_0x202c8a(0x86)),null;}}
1
+ var a24_0x45328e=a24_0x4040;function a24_0x4040(_0x3af5de,_0x331002){_0x3af5de=_0x3af5de-0x164;var _0x5dc40f=a24_0x9234();var _0x269bff=_0x5dc40f[_0x3af5de];return _0x269bff;}(function(_0x54e975,_0x23c6a9){var _0x36c249=a24_0x4040,_0x2c00b8=_0x54e975();while(!![]){try{var _0x46a591=-parseInt(_0x36c249(0x17a))/0x1*(-parseInt(_0x36c249(0x170))/0x2)+-parseInt(_0x36c249(0x178))/0x3+parseInt(_0x36c249(0x176))/0x4*(parseInt(_0x36c249(0x175))/0x5)+-parseInt(_0x36c249(0x18e))/0x6+-parseInt(_0x36c249(0x166))/0x7+parseInt(_0x36c249(0x182))/0x8*(parseInt(_0x36c249(0x174))/0x9)+parseInt(_0x36c249(0x177))/0xa*(parseInt(_0x36c249(0x186))/0xb);if(_0x46a591===_0x23c6a9)break;else _0x2c00b8['push'](_0x2c00b8['shift']());}catch(_0x20b1cb){_0x2c00b8['push'](_0x2c00b8['shift']());}}}(a24_0x9234,0x9b7cf));var a24_0x33ae38=(function(){var _0x36eed7=!![];return function(_0x494928,_0x5b84cb){var _0x34ec4a=_0x36eed7?function(){var _0x1577dc=a24_0x4040;if(_0x5b84cb){var _0xe789b7=_0x5b84cb[_0x1577dc(0x169)](_0x494928,arguments);return _0x5b84cb=null,_0xe789b7;}}:function(){};return _0x36eed7=![],_0x34ec4a;};}()),a24_0x269bff=a24_0x33ae38(this,function(){var _0x482007=a24_0x4040;return a24_0x269bff[_0x482007(0x18a)]()[_0x482007(0x16c)](_0x482007(0x165)+'+$')[_0x482007(0x18a)]()[_0x482007(0x179)+'r'](a24_0x269bff)['search'](_0x482007(0x165)+'+$');});a24_0x269bff();import{appConfig}from'../../config/appConfig.js';import{OllamaProvider}from'./OllamaProvider.js';function a24_0x9234(){var _0x21704e=['55qzhtzg','ssKey','Using\x20AWS\x20','aws','toString','ma\x20Provide','AI\x20Provide','Using\x20Olla','7201416vFlTre','gemini','region','Lwluo','ropic\x20Prov','(((.+)+)+)','2356368paLmKL','Bedrock\x20Pr','ollama','apply','model','l:\x20','search','r\x20(model:\x20','anthropic','secretAcce','114872DWKFeq','apiKey','openai','vider\x20conf','7523181AlhQag','61280HVDkkk','80zqcqds','1071970lkvmkE','1259061aNqlPy','constructo','17jeOebm','accessKeyI','getProvide','ni\x20Provide','Using\x20Gemi','ovider\x20(mo','dXjhq','info','8ovYuwi','baseUrl','warn','igured.'];a24_0x9234=function(){return _0x21704e;};return a24_0x9234();}import{OpenAIProvider}from'./OpenAIProvider.js';import{AnthropicProvider}from'./AnthropicProvider.js';import{GeminiProvider}from'./GeminiProvider.js';import{BedrockProvider}from'./BedrockProvider.js';import{logger}from'../../utils/logger.js';export class LLMFactory{static[a24_0x45328e(0x17c)+'r'](){var _0x12b800=a24_0x45328e,_0x1ad69a={};_0x1ad69a[_0x12b800(0x191)]='No\x20LLM\x20Pro'+_0x12b800(0x173)+_0x12b800(0x185);var _0x1d483f=_0x1ad69a;if(appConfig[_0x12b800(0x172)])return logger[_0x12b800(0x181)]('Using\x20Open'+_0x12b800(0x18c)+'r\x20(model:\x20'+appConfig[_0x12b800(0x172)][_0x12b800(0x16a)]+')'),new OpenAIProvider(appConfig[_0x12b800(0x172)][_0x12b800(0x171)],appConfig[_0x12b800(0x172)][_0x12b800(0x16a)]);if(appConfig[_0x12b800(0x16e)])return logger['info']('Using\x20Anth'+_0x12b800(0x164)+'ider\x20(mode'+_0x12b800(0x16b)+appConfig[_0x12b800(0x16e)][_0x12b800(0x16a)]+')'),new AnthropicProvider(appConfig[_0x12b800(0x16e)][_0x12b800(0x171)],appConfig[_0x12b800(0x16e)][_0x12b800(0x16a)]);if(appConfig[_0x12b800(0x18f)])return _0x12b800(0x180)!==_0x12b800(0x180)?(_0x1274f2[_0x12b800(0x181)](_0x12b800(0x17e)+_0x12b800(0x17d)+'r\x20(model:\x20'+_0x4d10ed[_0x12b800(0x18f)][_0x12b800(0x16a)]+')'),new _0x59b66a(_0x3007c4[_0x12b800(0x18f)][_0x12b800(0x171)],_0x4b716f[_0x12b800(0x18f)][_0x12b800(0x16a)])):(logger[_0x12b800(0x181)]('Using\x20Gemi'+'ni\x20Provide'+_0x12b800(0x16d)+appConfig[_0x12b800(0x18f)][_0x12b800(0x16a)]+')'),new GeminiProvider(appConfig[_0x12b800(0x18f)]['apiKey'],appConfig[_0x12b800(0x18f)]['model']));if(appConfig[_0x12b800(0x189)])return logger[_0x12b800(0x181)](_0x12b800(0x188)+_0x12b800(0x167)+_0x12b800(0x17f)+'del:\x20'+appConfig[_0x12b800(0x189)][_0x12b800(0x16a)]+')'),new BedrockProvider(appConfig[_0x12b800(0x189)][_0x12b800(0x16a)],appConfig[_0x12b800(0x189)][_0x12b800(0x190)],appConfig[_0x12b800(0x189)][_0x12b800(0x17b)+'d'],appConfig[_0x12b800(0x189)][_0x12b800(0x16f)+_0x12b800(0x187)],appConfig['aws']['sessionTok'+'en']);if(appConfig[_0x12b800(0x168)]&&appConfig[_0x12b800(0x168)][_0x12b800(0x183)])return logger[_0x12b800(0x181)](_0x12b800(0x18d)+_0x12b800(0x18b)+_0x12b800(0x16d)+appConfig[_0x12b800(0x168)][_0x12b800(0x16a)]+')'),new OllamaProvider(appConfig[_0x12b800(0x168)][_0x12b800(0x183)],appConfig['ollama'][_0x12b800(0x16a)]);return logger[_0x12b800(0x184)](_0x1d483f['Lwluo']),null;}}
@@ -1 +1 @@
1
- (function(_0x23690f,_0x5032a3){var _0x23a03c=a25_0x3cd3,_0x190635=_0x23690f();while(!![]){try{var _0x48af2c=-parseInt(_0x23a03c(0x8d))/0x1+-parseInt(_0x23a03c(0x8e))/0x2+-parseInt(_0x23a03c(0x91))/0x3*(-parseInt(_0x23a03c(0x96))/0x4)+parseInt(_0x23a03c(0x8b))/0x5*(parseInt(_0x23a03c(0x94))/0x6)+parseInt(_0x23a03c(0x93))/0x7*(-parseInt(_0x23a03c(0x89))/0x8)+-parseInt(_0x23a03c(0x92))/0x9*(-parseInt(_0x23a03c(0x8f))/0xa)+-parseInt(_0x23a03c(0x97))/0xb*(-parseInt(_0x23a03c(0x98))/0xc);if(_0x48af2c===_0x5032a3)break;else _0x190635['push'](_0x190635['shift']());}catch(_0x27d5cf){_0x190635['push'](_0x190635['shift']());}}}(a25_0x2637,0x55f90));var a25_0x9ff28f=(function(){var _0x154231=!![];return function(_0x309366,_0x2bcc81){var _0x927f1f=_0x154231?function(){var _0x945ca=a25_0x3cd3;if(_0x2bcc81){var _0x246217=_0x2bcc81[_0x945ca(0x8c)](_0x309366,arguments);return _0x2bcc81=null,_0x246217;}}:function(){};return _0x154231=![],_0x927f1f;};}()),a25_0x289661=a25_0x9ff28f(this,function(){var _0x4d098b=a25_0x3cd3;return a25_0x289661[_0x4d098b(0x90)]()[_0x4d098b(0x8a)](_0x4d098b(0x95)+'+$')[_0x4d098b(0x90)]()['constructo'+'r'](a25_0x289661)[_0x4d098b(0x8a)](_0x4d098b(0x95)+'+$');});function a25_0x2637(){var _0xddab24=['4vPBJHL','3531tIvqxd','612ciXnGr','4361208hvBMbF','search','5sTVdEu','apply','133895HGmTGr','421114hQgkPk','5470ltfcOU','toString','1792743wyKrDf','9819mGpFVe','7TOSNEj','186108vqQhPA','(((.+)+)+)'];a25_0x2637=function(){return _0xddab24;};return a25_0x2637();}function a25_0x3cd3(_0x1e6e1b,_0x3933ea){_0x1e6e1b=_0x1e6e1b-0x89;var _0xcd0120=a25_0x2637();var _0x289661=_0xcd0120[_0x1e6e1b];return _0x289661;}a25_0x289661();export{};
1
+ (function(_0x4ec40a,_0x55a5eb){var _0x297557=a25_0x48e4,_0x5df3b9=_0x4ec40a();while(!![]){try{var _0x234936=-parseInt(_0x297557(0xe6))/0x1+parseInt(_0x297557(0xeb))/0x2+parseInt(_0x297557(0xec))/0x3*(parseInt(_0x297557(0xe9))/0x4)+parseInt(_0x297557(0xee))/0x5+-parseInt(_0x297557(0xf1))/0x6+-parseInt(_0x297557(0xea))/0x7+parseInt(_0x297557(0xe7))/0x8;if(_0x234936===_0x55a5eb)break;else _0x5df3b9['push'](_0x5df3b9['shift']());}catch(_0x41e62d){_0x5df3b9['push'](_0x5df3b9['shift']());}}}(a25_0x46dc,0x477be));function a25_0x46dc(){var _0x1cb50c=['16524hhMZDP','270upFZCs','apply','773975MlYOrt','search','toString','3466410oqzOaQ','81171UUiLHF','6322160ZbvbQx','(((.+)+)+)','11476peZhtr','1818831sMgtvi'];a25_0x46dc=function(){return _0x1cb50c;};return a25_0x46dc();}var a25_0x2ef19b=(function(){var _0x4ba7a3=!![];return function(_0x19d59c,_0x4897ae){var _0x2be109=_0x4ba7a3?function(){var _0x54b1ac=a25_0x48e4;if(_0x4897ae){var _0x4a9168=_0x4897ae[_0x54b1ac(0xed)](_0x19d59c,arguments);return _0x4897ae=null,_0x4a9168;}}:function(){};return _0x4ba7a3=![],_0x2be109;};}()),a25_0x523635=a25_0x2ef19b(this,function(){var _0x50506d=a25_0x48e4;return a25_0x523635['toString']()[_0x50506d(0xef)](_0x50506d(0xe8)+'+$')[_0x50506d(0xf0)]()['constructo'+'r'](a25_0x523635)['search'](_0x50506d(0xe8)+'+$');});a25_0x523635();function a25_0x48e4(_0x1241f3,_0x5d9cb5){_0x1241f3=_0x1241f3-0xe6;var _0x45ff4a=a25_0x46dc();var _0x523635=_0x45ff4a[_0x1241f3];return _0x523635;}export{};
@@ -1 +1 @@
1
- const a26_0x3dbf6e=a26_0x4ecc;(function(_0x29dff1,_0x230349){const _0x321507=a26_0x4ecc,_0xcd27bc=_0x29dff1();while(!![]){try{const _0x24cb33=parseInt(_0x321507(0xde))/0x1*(parseInt(_0x321507(0xd8))/0x2)+-parseInt(_0x321507(0xe6))/0x3*(parseInt(_0x321507(0xd7))/0x4)+-parseInt(_0x321507(0xe3))/0x5*(parseInt(_0x321507(0xed))/0x6)+parseInt(_0x321507(0xd3))/0x7+parseInt(_0x321507(0xdb))/0x8+parseInt(_0x321507(0xd5))/0x9+parseInt(_0x321507(0xf0))/0xa*(-parseInt(_0x321507(0xf4))/0xb);if(_0x24cb33===_0x230349)break;else _0xcd27bc['push'](_0xcd27bc['shift']());}catch(_0x321f8d){_0xcd27bc['push'](_0xcd27bc['shift']());}}}(a26_0x27b5,0x5604b));function a26_0x4ecc(_0x1a48cd,_0x4431b3){_0x1a48cd=_0x1a48cd-0xd3;const _0x135cd4=a26_0x27b5();let _0x5edc54=_0x135cd4[_0x1a48cd];return _0x5edc54;}const a26_0x2f9e39=(function(){let _0x421957=!![];return function(_0x3515ac,_0x54b465){const _0xfdc8bb=_0x421957?function(){if(_0x54b465){const _0x211881=_0x54b465['apply'](_0x3515ac,arguments);return _0x54b465=null,_0x211881;}}:function(){};return _0x421957=![],_0xfdc8bb;};}()),a26_0x5edc54=a26_0x2f9e39(this,function(){const _0xc81cb3=a26_0x4ecc;return a26_0x5edc54['toString']()['search'](_0xc81cb3(0xf3)+'+$')['toString']()[_0xc81cb3(0xdd)+'r'](a26_0x5edc54)[_0xc81cb3(0xdc)](_0xc81cb3(0xf3)+'+$');});a26_0x5edc54();import a26_0x171f12 from'axios';function a26_0x27b5(){const _0x5ea137=['generate','321345OCKjwQ','ETIMEDOUT','418292ZFPOKd','2FvPBGh','Ollama\x20ser','\x20-\x20','4280920MZYIRB','search','constructo','452122fzYKJz','r.\x20Please\x20','baseUrl','code','ECONNREFUS','101635uInhZq','ver\x20connec','Ollama\x20API','9GOUPrr','ate','post','is\x20running','response','stringify','model','150IFbhYD','/api/gener','ffsoV','246330ixGTrN','data','\x20error:\x20','(((.+)+)+)','209YDrAiQ','timeout','lama\x20serve','4335170eLOKsy'];a26_0x27b5=function(){return _0x5ea137;};return a26_0x27b5();}export class OllamaProvider{['baseUrl'];[a26_0x3dbf6e(0xec)];constructor(_0x4e9438,_0x1f4c20){const _0x550478=a26_0x3dbf6e;this[_0x550478(0xe0)]=_0x4e9438,this[_0x550478(0xec)]=_0x1f4c20;}async[a26_0x3dbf6e(0xd4)](_0x3dcf6b){const _0x4e255b=a26_0x3dbf6e,_0x18138e={};_0x18138e[_0x4e255b(0xef)]=_0x4e255b(0xe2)+'ED';const _0x281e79=_0x18138e;try{const _0x582dd3={};_0x582dd3[_0x4e255b(0xf5)]=0x493e0;const _0xafac0b=await a26_0x171f12[_0x4e255b(0xe8)](this[_0x4e255b(0xe0)]+(_0x4e255b(0xee)+_0x4e255b(0xe7)),{'model':this[_0x4e255b(0xec)],'prompt':_0x3dcf6b,'stream':![]},_0x582dd3);return _0xafac0b[_0x4e255b(0xf1)][_0x4e255b(0xea)];}catch(_0x2c6c34){if(a26_0x171f12['isAxiosErr'+'or'](_0x2c6c34)){if(_0x2c6c34[_0x4e255b(0xe1)]===_0x281e79['ffsoV'])throw new Error('Cannot\x20con'+'nect\x20to\x20Ol'+_0x4e255b(0xf6)+_0x4e255b(0xdf)+'check\x20if\x20t'+'he\x20server\x20'+_0x4e255b(0xe9)+'.');else{if(_0x2c6c34[_0x4e255b(0xe1)]===_0x4e255b(0xd6))throw new Error(_0x4e255b(0xd9)+_0x4e255b(0xe4)+'tion\x20timeo'+'ut');else{if(_0x2c6c34[_0x4e255b(0xea)])throw new Error(_0x4e255b(0xe5)+_0x4e255b(0xf2)+_0x2c6c34[_0x4e255b(0xea)]['status']+_0x4e255b(0xda)+JSON[_0x4e255b(0xeb)](_0x2c6c34[_0x4e255b(0xea)][_0x4e255b(0xf1)]));}}}throw _0x2c6c34;}}}
1
+ const a26_0x3dbeb0=a26_0x2f12;function a26_0x2f12(_0x287834,_0x498a66){_0x287834=_0x287834-0x1bf;const _0x58325b=a26_0x49b9();let _0x41761f=_0x58325b[_0x287834];return _0x41761f;}function a26_0x49b9(){const _0x122453=['status','ETIMEDOUT','ONBXC','344136qeOxvR','baseUrl','\x20-\x20','598908xMntsm','code','nect\x20to\x20Ol','(((.+)+)+)','toString','12209992KvVgaE','105iWFqLt','apply','search','uocJy','ECONNREFUS','165276eNAynY','Ollama\x20ser','1851010xSWooa','45yvXWFb','38591721Wruyoj','r.\x20Please\x20','data','he\x20server\x20','Cannot\x20con','isAxiosErr','model','578079YgKqVp','constructo','post','Ollama\x20API','response'];a26_0x49b9=function(){return _0x122453;};return a26_0x49b9();}(function(_0x421cb1,_0x21c1ef){const _0x419162=a26_0x2f12,_0x4537e2=_0x421cb1();while(!![]){try{const _0x169555=-parseInt(_0x419162(0x1c1))/0x1+parseInt(_0x419162(0x1d9))/0x2+-parseInt(_0x419162(0x1d7))/0x3+parseInt(_0x419162(0x1c9))/0x4*(-parseInt(_0x419162(0x1da))/0x5)+-parseInt(_0x419162(0x1cc))/0x6*(parseInt(_0x419162(0x1d2))/0x7)+-parseInt(_0x419162(0x1d1))/0x8+parseInt(_0x419162(0x1db))/0x9;if(_0x169555===_0x21c1ef)break;else _0x4537e2['push'](_0x4537e2['shift']());}catch(_0x28eb1d){_0x4537e2['push'](_0x4537e2['shift']());}}}(a26_0x49b9,0xbf08e));const a26_0xca0934=(function(){let _0x46e7e5=!![];return function(_0x1f1e84,_0x44cc99){const _0x340587=_0x46e7e5?function(){const _0x20c9ab=a26_0x2f12;if(_0x44cc99){const _0x15a36f=_0x44cc99[_0x20c9ab(0x1d3)](_0x1f1e84,arguments);return _0x44cc99=null,_0x15a36f;}}:function(){};return _0x46e7e5=![],_0x340587;};}()),a26_0x41761f=a26_0xca0934(this,function(){const _0xcee335=a26_0x2f12,_0x34d76a={};_0x34d76a[_0xcee335(0x1c8)]='(((.+)+)+)'+'+$';const _0x54297b=_0x34d76a;return a26_0x41761f[_0xcee335(0x1d0)]()['search'](_0xcee335(0x1cf)+'+$')['toString']()[_0xcee335(0x1c2)+'r'](a26_0x41761f)[_0xcee335(0x1d4)](_0x54297b[_0xcee335(0x1c8)]);});a26_0x41761f();import a26_0x5b3bba from'axios';export class OllamaProvider{[a26_0x3dbeb0(0x1ca)];[a26_0x3dbeb0(0x1c0)];constructor(_0x6b4d4,_0x3b32cb){const _0x3b833f=a26_0x3dbeb0;this[_0x3b833f(0x1ca)]=_0x6b4d4,this[_0x3b833f(0x1c0)]=_0x3b32cb;}async['generate'](_0x507e84){const _0x163dc4=a26_0x3dbeb0,_0xcf0cf9={};_0xcf0cf9['uocJy']=_0x163dc4(0x1d8)+'ver\x20connec'+'tion\x20timeo'+'ut';const _0x533c13=_0xcf0cf9;try{const _0x405dfc={};_0x405dfc['timeout']=0x493e0;const _0x937a72=await a26_0x5b3bba[_0x163dc4(0x1c3)](this[_0x163dc4(0x1ca)]+('/api/gener'+'ate'),{'model':this[_0x163dc4(0x1c0)],'prompt':_0x507e84,'stream':![]},_0x405dfc);return _0x937a72[_0x163dc4(0x1dd)][_0x163dc4(0x1c5)];}catch(_0x59eeff){if(a26_0x5b3bba[_0x163dc4(0x1bf)+'or'](_0x59eeff)){if(_0x59eeff['code']===_0x163dc4(0x1d6)+'ED')throw new Error(_0x163dc4(0x1df)+_0x163dc4(0x1ce)+'lama\x20serve'+_0x163dc4(0x1dc)+'check\x20if\x20t'+_0x163dc4(0x1de)+'is\x20running'+'.');else{if(_0x59eeff[_0x163dc4(0x1cd)]===_0x163dc4(0x1c7))throw new Error(_0x533c13[_0x163dc4(0x1d5)]);else{if(_0x59eeff['response'])throw new Error(_0x163dc4(0x1c4)+'\x20error:\x20'+_0x59eeff[_0x163dc4(0x1c5)][_0x163dc4(0x1c6)]+_0x163dc4(0x1cb)+JSON['stringify'](_0x59eeff['response'][_0x163dc4(0x1dd)]));}}}throw _0x59eeff;}}}
@@ -1 +1 @@
1
- const a27_0x5b4a39=a27_0x356b;(function(_0x387ceb,_0x118448){const _0x17201e=a27_0x356b,_0x49795a=_0x387ceb();while(!![]){try{const _0x2baf53=-parseInt(_0x17201e(0xfa))/0x1*(-parseInt(_0x17201e(0xf7))/0x2)+-parseInt(_0x17201e(0x102))/0x3+parseInt(_0x17201e(0xf9))/0x4+parseInt(_0x17201e(0xfe))/0x5*(-parseInt(_0x17201e(0x100))/0x6)+-parseInt(_0x17201e(0xff))/0x7+parseInt(_0x17201e(0xf1))/0x8*(-parseInt(_0x17201e(0x101))/0x9)+parseInt(_0x17201e(0xf4))/0xa;if(_0x2baf53===_0x118448)break;else _0x49795a['push'](_0x49795a['shift']());}catch(_0x3921e8){_0x49795a['push'](_0x49795a['shift']());}}}(a27_0x5a2f,0xbee98));const a27_0x242f7d=(function(){let _0x22f02b=!![];return function(_0xfe6525,_0x14f39a){const _0x807dd7=_0x22f02b?function(){const _0x3bba0f=a27_0x356b;if(_0x14f39a){const _0x2212e8=_0x14f39a[_0x3bba0f(0xfc)](_0xfe6525,arguments);return _0x14f39a=null,_0x2212e8;}}:function(){};return _0x22f02b=![],_0x807dd7;};}()),a27_0x4a7707=a27_0x242f7d(this,function(){const _0x2a2e08=a27_0x356b;return a27_0x4a7707[_0x2a2e08(0xf2)]()[_0x2a2e08(0xf6)](_0x2a2e08(0xef)+'+$')[_0x2a2e08(0xf2)]()[_0x2a2e08(0xea)+'r'](a27_0x4a7707)[_0x2a2e08(0xf6)]('(((.+)+)+)'+'+$');});function a27_0x5a2f(){const _0x27c587=['1885617klHFha','constructo','content','client','choices','completion','(((.+)+)+)','apiKey','548296dhwkdF','toString','user','8777720bOkPlr','role','search','2dJnjTL','message','2601412iCrKEU','1347293yjgIxa','model','apply','chat','5nZdoKy','6021561SaCDax','3216858Jgbhgx','9qCvDGF'];a27_0x5a2f=function(){return _0x27c587;};return a27_0x5a2f();}a27_0x4a7707();function a27_0x356b(_0xc7da37,_0x1b29cd){_0xc7da37=_0xc7da37-0xea;const _0x5859e4=a27_0x5a2f();let _0x4a7707=_0x5859e4[_0xc7da37];return _0x4a7707;}import a27_0x17f202 from'openai';export class OpenAIProvider{[a27_0x5b4a39(0xfb)];[a27_0x5b4a39(0xec)];constructor(_0x51837d,_0x2882f1){const _0x532361=a27_0x5b4a39;this[_0x532361(0xfb)]=_0x2882f1;const _0x221714={};_0x221714[_0x532361(0xf0)]=_0x51837d,this[_0x532361(0xec)]=new a27_0x17f202(_0x221714);}async['generate'](_0x645e0c){const _0x46c1b5=a27_0x5b4a39,_0x3d6c7b={};_0x3d6c7b[_0x46c1b5(0xf5)]=_0x46c1b5(0xf3),_0x3d6c7b[_0x46c1b5(0xeb)]=_0x645e0c;const _0x1a858d=await this[_0x46c1b5(0xec)][_0x46c1b5(0xfd)][_0x46c1b5(0xee)+'s']['create']({'model':this[_0x46c1b5(0xfb)],'messages':[_0x3d6c7b]});return _0x1a858d[_0x46c1b5(0xed)][0x0][_0x46c1b5(0xf8)][_0x46c1b5(0xeb)]||'';}}
1
+ const a27_0x2b5677=a27_0x5334;(function(_0x249954,_0x589e0d){const _0x363a7b=a27_0x5334,_0x554199=_0x249954();while(!![]){try{const _0x5d163d=-parseInt(_0x363a7b(0x1d2))/0x1*(parseInt(_0x363a7b(0x1d1))/0x2)+parseInt(_0x363a7b(0x1d7))/0x3*(-parseInt(_0x363a7b(0x1bf))/0x4)+-parseInt(_0x363a7b(0x1d4))/0x5+parseInt(_0x363a7b(0x1c8))/0x6*(-parseInt(_0x363a7b(0x1c5))/0x7)+-parseInt(_0x363a7b(0x1d6))/0x8*(-parseInt(_0x363a7b(0x1c4))/0x9)+parseInt(_0x363a7b(0x1ce))/0xa+-parseInt(_0x363a7b(0x1c7))/0xb*(-parseInt(_0x363a7b(0x1c2))/0xc);if(_0x5d163d===_0x589e0d)break;else _0x554199['push'](_0x554199['shift']());}catch(_0x3fda9a){_0x554199['push'](_0x554199['shift']());}}}(a27_0xf338,0xe549e));const a27_0x27a81b=(function(){let _0x5e56ed=!![];return function(_0x2660d0,_0x4064de){const _0x4f5010=_0x5e56ed?function(){const _0xaec0c5=a27_0x5334;if(_0x4064de){const _0x1aa86a=_0x4064de[_0xaec0c5(0x1cf)](_0x2660d0,arguments);return _0x4064de=null,_0x1aa86a;}}:function(){};return _0x5e56ed=![],_0x4f5010;};}()),a27_0x3f8b55=a27_0x27a81b(this,function(){const _0x512b87=a27_0x5334;return a27_0x3f8b55['toString']()[_0x512b87(0x1c0)](_0x512b87(0x1cd)+'+$')[_0x512b87(0x1d5)]()[_0x512b87(0x1c9)+'r'](a27_0x3f8b55)[_0x512b87(0x1c0)](_0x512b87(0x1cd)+'+$');});a27_0x3f8b55();function a27_0xf338(){const _0x4ba258=['create','12SoXSEr','search','message','5185668UrssTt','model','2475387bWQOgj','119WWkaef','user','154GdXGRo','620826OtQsKw','constructo','client','completion','role','(((.+)+)+)','5600930uoWpEf','apply','content','14RQhxGC','250244zUXJnz','apiKey','8778025YncEWZ','toString','24ddOYKy','1229682TIDSBF','generate'];a27_0xf338=function(){return _0x4ba258;};return a27_0xf338();}function a27_0x5334(_0x5302c9,_0x476f51){_0x5302c9=_0x5302c9-0x1bd;const _0x24cf06=a27_0xf338();let _0x3f8b55=_0x24cf06[_0x5302c9];return _0x3f8b55;}import a27_0x198dfe from'openai';export class OpenAIProvider{['model'];[a27_0x2b5677(0x1ca)];constructor(_0x3db868,_0x32f5be){const _0x4e14ef=a27_0x2b5677;this[_0x4e14ef(0x1c3)]=_0x32f5be;const _0x301c7e={};_0x301c7e[_0x4e14ef(0x1d3)]=_0x3db868,this[_0x4e14ef(0x1ca)]=new a27_0x198dfe(_0x301c7e);}async[a27_0x2b5677(0x1bd)](_0x463bde){const _0x5c2cc6=a27_0x2b5677,_0x3320bc={};_0x3320bc[_0x5c2cc6(0x1cc)]=_0x5c2cc6(0x1c6),_0x3320bc[_0x5c2cc6(0x1d0)]=_0x463bde;const _0x2c575a=await this[_0x5c2cc6(0x1ca)]['chat'][_0x5c2cc6(0x1cb)+'s'][_0x5c2cc6(0x1be)]({'model':this[_0x5c2cc6(0x1c3)],'messages':[_0x3320bc]});return _0x2c575a['choices'][0x0][_0x5c2cc6(0x1c1)][_0x5c2cc6(0x1d0)]||'';}}