a2a-memory 0.12.5 → 0.12.7
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.
- package/README.md +1 -1
- package/dist/a2a/client.js +1 -1
- package/dist/a2a/discovery.js +1 -1
- package/dist/a2a/index.js +1 -1
- package/dist/a2a/types.js +1 -1
- package/dist/adapters/anthropic.js +1 -1
- package/dist/chunking/chunker.js +1 -1
- package/dist/claude/sync.js +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/claude-sync.js +1 -1
- package/dist/cli/commands/cleanup.js +1 -1
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/extract.js +1 -1
- package/dist/cli/commands/health.js +1 -1
- package/dist/cli/commands/list.js +1 -1
- package/dist/cli/commands/migrate-chunks.js +1 -1
- package/dist/cli/commands/migrate-file-refs.js +1 -1
- package/dist/cli/commands/proficiency.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/setup-wizard.js +1 -1
- package/dist/cli/commands/setup.js +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/sync.js +1 -1
- package/dist/cli/commands/team.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/db/database.d.ts +11 -0
- package/dist/db/database.js +1 -1
- package/dist/embedding/e5-provider.js +1 -1
- package/dist/embedding/index.js +1 -1
- package/dist/embedding/local-provider.js +1 -1
- package/dist/embedding/openai-provider.js +1 -1
- package/dist/embedding/quantization.js +1 -1
- package/dist/extraction/dedup-manager.js +1 -1
- package/dist/extraction/emotion-filter.js +1 -1
- package/dist/extraction/extractor.js +1 -1
- package/dist/extraction/file-reference.js +1 -1
- package/dist/extraction/filter.js +1 -1
- package/dist/extraction/scorer.js +1 -1
- package/dist/extraction/similarity.js +1 -1
- package/dist/hooks/client-factory.js +1 -1
- package/dist/hooks/post-tool-use.js +1 -1
- package/dist/hooks/pre-compact.js +1 -1
- package/dist/hooks/session-end.js +1 -1
- package/dist/hooks/session-start.js +1 -1
- package/dist/hooks/shared.js +1 -1
- package/dist/hooks/stop.js +1 -1
- package/dist/hooks/user-prompt-submit.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messages.js +1 -1
- package/dist/index.js +1 -1
- package/dist/lifecycle/cleanup-scheduler.js +1 -1
- package/dist/lifecycle/cleanup.js +1 -1
- package/dist/lifecycle/consolidation.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.d.ts +6 -0
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/tiering.js +1 -1
- package/dist/llm/client.js +1 -1
- package/dist/llm/index.js +1 -1
- package/dist/proficiency/actr-engine.js +1 -1
- package/dist/proficiency/detection.js +1 -1
- package/dist/proficiency/index.js +1 -1
- package/dist/proficiency/tracker.js +1 -1
- package/dist/providers/adapters.js +1 -1
- package/dist/providers/detector.js +1 -1
- package/dist/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/ranker.js +1 -1
- package/dist/search/reranker.js +1 -1
- package/dist/session/parser.js +1 -1
- package/dist/skill/evaluator.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/sync/client.js +1 -1
- package/dist/sync/encryption.js +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/queue.js +1 -1
- package/dist/sync/scheduler.js +1 -1
- package/dist/sync/synchronizer.js +1 -1
- package/dist/sync/team-synchronizer.js +1 -1
- package/dist/sync/vector-clock.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/skill/evaluator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x41452f(_0x20567f,_0x525a9c){return _0x47d9(_0x20567f- -0x64,_0x525a9c);}function _0x47d9(_0x602d44,_0x3718ed){_0x602d44=_0x602d44-0x17b;const _0x357d18=_0x357d();let _0x47d91c=_0x357d18[_0x602d44];if(_0x47d9['HxRCtE']===undefined){var _0x3cead0=function(_0x1d4929){const _0x46a89a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10def3='',_0x39703c='';for(let _0xecf63=0x0,_0x488156,_0x12330c,_0x1d7bc9=0x0;_0x12330c=_0x1d4929['charAt'](_0x1d7bc9++);~_0x12330c&&(_0x488156=_0xecf63%0x4?_0x488156*0x40+_0x12330c:_0x12330c,_0xecf63++%0x4)?_0x10def3+=String['fromCharCode'](0xff&_0x488156>>(-0x2*_0xecf63&0x6)):0x0){_0x12330c=_0x46a89a['indexOf'](_0x12330c);}for(let _0x2daee6=0x0,_0x5cb524=_0x10def3['length'];_0x2daee6<_0x5cb524;_0x2daee6++){_0x39703c+='%'+('00'+_0x10def3['charCodeAt'](_0x2daee6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x39703c);};_0x47d9['xkmihf']=_0x3cead0,_0x47d9['BHfmDu']={},_0x47d9['HxRCtE']=!![];}const _0x3fa8ab=_0x357d18[0x0],_0x69c821=_0x602d44+_0x3fa8ab,_0x3f291e=_0x47d9['BHfmDu'][_0x69c821];return!_0x3f291e?(_0x47d91c=_0x47d9['xkmihf'](_0x47d91c),_0x47d9['BHfmDu'][_0x69c821]=_0x47d91c):_0x47d91c=_0x3f291e,_0x47d91c;}function _0x4f4032(_0x4f068a,_0x3d68f5){return _0x47d9(_0x4f068a- -0xbc,_0x3d68f5);}(function(_0x343434,_0x33be6e){function _0x58a7fe(_0x51bf3d,_0x93943d){return _0x47d9(_0x93943d- -0x14,_0x51bf3d);}const _0x26ec9d=_0x343434();function _0x434931(_0x1d54d9,_0x594a99){return _0x47d9(_0x594a99- -0x75,_0x1d54d9);}while(!![]){try{const _0x29970d=parseInt(_0x58a7fe(0x1ed,0x20c))/0x1*(parseInt(_0x434931(0x180,0x134))/0x2)+-parseInt(_0x434931(0x192,0x184))/0x3+parseInt(_0x58a7fe(0x144,0x1a0))/0x4*(parseInt(_0x434931(0x12a,0x124))/0x5)+-parseInt(_0x434931(0x167,0x17c))/0x6*(-parseInt(_0x434931(0x158,0x150))/0x7)+parseInt(_0x58a7fe(0x19f,0x1cf))/0x8+parseInt(_0x434931(0x1e1,0x195))/0x9+-parseInt(_0x434931(0x124,0x138))/0xa;if(_0x29970d===_0x33be6e)break;else _0x26ec9d['push'](_0x26ec9d['shift']());}catch(_0xe5986){_0x26ec9d['push'](_0x26ec9d['shift']());}}}(_0x357d,0xb056e));function _0x357d(){const _0x12a366=['zdOG','igzHAwXLzdOG','BwLUq29UzMLKzq','vwDgt1i','zwrKAw5NCW','ChjVAMvJDfbHDa','CgfYC2u','CMv2Awv3u2TPBa','zwrbDa','y3j5C3rHBgXPEG','DgLVBIbMywLSzq','u291CMnLCZOG','mZG2nJGWEhfADfnV','C2LTAwXHCML0Eq','DMfSAwq','sKnky1u','z2v0vgLTzq','C3rYAw5NAwz5','rgTMtvO','swrqqxm','Bwv0ytO','Cgf0DgvYBG','BgWVCgf0DgvYBG','qKXTwfi','z2v0','zNjVBq','ig1LBw9YAwvZ','BM1xtwK','zwLNCfy','zurHExm','u2TPBgW','rgv0zxjTAw5Lia','zhjxwvK','DhjPBuvUza','DxrMltG','zg9TywLU','BNrLBNq','wM9fvge','Dg9tDhjPBMC','B3jPzxm','Bwf4u2TPBgXZ','C1P2BvO','mtaWnZiYnhvJCvfNva','rNL6BeK','BMrWv2G','zvnRAwXS','u2XYtw4','u2TPBgWGy3jLyq','vwPgtNC','y29UzMLN','C2L6zq','y0zeqva','yNvPBgrtA2LSBa','zxzHBhvHDgu','ChvZAa','AwyGDgHLC2uGCW','mJrLDujlC1O','y2XHC3nPzNLdBW','CMfNzvnPBwLSyq','r3jeBNu','y2DqwM4','yNrtv0W','sKr4Bg0','zgzbshG','mZC1ndj5A0zVuuu','DxnHyMXLihnRAq','runptK5sruzvuW','ELn1s3O','rxzHBhvHDgLVBG','swzQELq','zw1IzwrKAw5N','DgvKqxq','BwvZC2fNzq','y29UzMLKzw5Jzq','ywrK','ywrHDge','sNHJve0','ugf0DgvYBJOG','Dg9gAxHLza','zLzwEhq','C2TPBgW','mta3nJKWndbwvvrXEM0','Exjlz3K','vgHYzxnOB2XK','C3bSAxq','sM11CLG','sxnnzKy','ywjZB3jIsw50BW','q29UzMLKzw5Jzq','ywnJzxnZq291BG','vhv0AgO','DxbKyxrLzef0','AhnAwMO','BM93','BNq6ia','zu9iAKe','DgfNCW','y3jLyxrLtwvTBW','BMf0DxjLoG','CMv2Awv3q3LJBa','veTczvm','zgvUsvm','uxn2svC','ng95CLbmAG','Bu9vsLC','DgLTzw91Da','Aw1PBgfYig1LBq','BwLUuMvWzxrPDa','uufzv0S','BMf0DxjL','y29TChjLC3nuBW','q29UDgvUDa','CMfUzg9T','yMfZzty0','zxnLBNqGysbYzq','q291BNq','lJb9','y2XbsLu','y29UDgvUDa','zMLSBa','BgvHCM5PBMC','C291CMnLtwvTBW','C2vTyw50Awm','BgXT','teXnihzHBgLKyq','BwLU','CNvLl2zHBhnLla','BwfW','BgfZDefJDgL2yq','B3jPzxm6','Dgf4B25VBxK6','B3jPzxmGCMvWCG','D0Hqvfu','Dxn0zxi','C2TPBgXFAwq','Aw9UCW','y2X1C3rLCK1LBq','CNnPB24','vLD4y1u','q2f0zwDVCNK6ia','BgfZDefJy2vZCW','DgHmte0','vejotg0','wK1Xy0O','EMTIAxO','CgLXyKu','uMzAvNC','sw93u2S','BgrKA3C','A3ndvxK','BgvUz3rO','z2TnD0q','zxH0CMfJDe1LDa','uKL0seK','C3rHCNrZv2L0Aa','rhb1B3u','AvjTy2i','C2TPBgXdB252zq','y2uIoIaWlJaTmq','BgLZDe1LBw9YAq','AM9PBG','uMrNwxe','zw5HyMXLza','s2v5ihbHDhrLCG','Aw5JBhvKzxm','CMLLCW','zMLSDgvY','DxbKyxrLtwvTBW','r0vvrvu','Aw9U','odmYnJi1zufvDwzp','EhD3vhG','y2f0zwDVCNK','zMv0y2GGzMfPBa','seTswfu','rwzcrKe','D3jNwvq','Bwf4','uK1hAvq','BNm6','zMXVB3i','C2vZC2LVBKLK','AgfZ','C2v0','icjJB25MAwrLBG','s0TRyNK','ntCYoty4A3LqAxv3','C3fKrfi','Dg9ju09tDhjPBG','AxneDxbSAwnHDa','mJeYmta4ndbiBwDXsMe','BMnL','C2XPy2u','iNzHBgLKiJOGDa','Bgr0Ceu','tenqtvi','CML0Eq','ngT1yKPkBq','zfPStNG','tNPUwNy','EKzdC20','Dhfyu3O'];_0x357d=function(){return _0x12a366;};return _0x357d();}import{randomUUID}from'node:crypto';import{cosineSimilarity}from'../extraction/similarity.js';export class SkillEvaluator{['db'];[_0x41452f(0x186,0x1c4)];constructor(_0x240798,_0x54e375){this['db']=_0x240798;function _0x4f094e(_0x4831a2,_0xea7759){return _0x41452f(_0xea7759- -0x22a,_0x4831a2);}this[_0x4f094e(-0x103,-0xa4)]=_0x54e375;}async[_0x4f4032(0x132,0x13a)](_0x1023fb,_0x5c96e5){const _0x147d10={'dZlNx':function(_0x1674d7,_0x5ef89e){return _0x1674d7*_0x5ef89e;},'ksCUy':_0x288c82(0x186,0x173),'BLmXR':function(_0x1070bc,_0x1fb024){return _0x1070bc<_0x1fb024;},'Tuthj':function(_0x3d859a,_0x397570){return _0x3d859a===_0x397570;},'JmurX':_0x12732f(0x428,0x478),'GrDnu':_0x12732f(0x471,0x4a6),'zFCsm':function(_0x2367ed,_0x46443b){return _0x2367ed-_0x46443b;},'JDxlm':function(_0x1942d9,_0x5cba37){return _0x1942d9+_0x5cba37;},'JxcTM':function(_0x41f736,_0x253e31){return _0x41f736-_0x253e31;},'DkfMZ':function(_0x3e1132,_0x34ce5d){return _0x3e1132<=_0x34ce5d;},'qDkSS':function(_0x4c9d14,_0x5ae1f3){return _0x4c9d14 instanceof _0x5ae1f3;},'JCJcU':function(_0x1e32ea,_0x4084b5){return _0x1e32ea instanceof _0x4084b5;},'xwwTx':function(_0x485deb,_0x22005b){return _0x485deb(_0x22005b);}},_0x4cb5e0=this['config'][_0x288c82(0xe8,0x13d)+_0x12732f(0x4ee,0x51c)];if(!_0x4cb5e0?.['enabled'])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};const _0x577bc6=[];function _0x288c82(_0x2fe598,_0xce2acf){return _0x41452f(_0x2fe598- -0x40,_0xce2acf);}function _0x12732f(_0x219014,_0x5926da){return _0x41452f(_0x5926da-0x33e,_0x219014);}const _0x37cf39=[];let _0x3b4218=0x0,_0x4a9301=0x0;try{if(_0x288c82(0x181,0x146)==='QAYWK'){const _0x54aab7=this['db'][_0x288c82(0xea,0x9a)+'es']({'limit':0x1f4,'projectPath':_0x1023fb}),_0x49e5e9=_0x54aab7[_0x288c82(0xf1,0xb6)](_0x3290e8=>_0x3290e8[_0x288c82(0xf7,0x14c)]!==_0x288c82(0x165,0x19b)&&_0x3290e8[_0x12732f(0x4a0,0x4d9)]&&_0x3290e8[_0x12732f(0x52f,0x4d9)][_0x12732f(0x48a,0x45f)]>0x0);if(_0x147d10[_0x288c82(0x12c,0xcd)](_0x49e5e9[_0x12732f(0x486,0x45f)],_0x4cb5e0['minRepetit'+_0x288c82(0x19c,0x170)]))return{'candidates':_0x37cf39,'created':_0x3b4218,'skipped':_0x49e5e9[_0x288c82(0xe1,0x12e)],'errors':_0x577bc6};const _0x55d5b1=0x12c;let _0x5bd020;if(_0x49e5e9[_0x288c82(0xe1,0xdc)]>_0x55d5b1){if(_0x147d10[_0x288c82(0x16f,0x142)](_0x147d10[_0x288c82(0x16a,0x193)],_0x147d10[_0x12732f(0x52c,0x4ce)]))return{'absorbed':![]};else{const _0xeb7205=[..._0x49e5e9]['sort']((_0x1f0312,_0x298c75)=>new Date(_0x298c75[_0x288c82(0x170,0x175)])[_0x12732f(0x4a2,0x4a3)]()-new Date(_0x1f0312['updatedAt'])[_0x12732f(0x491,0x4a3)]()),_0x372091=Math[_0x12732f(0x44e,0x47d)](_0x147d10[_0x288c82(0x111,0x14e)](_0x55d5b1,0.7)),_0x5e5ef9=_0x147d10[_0x288c82(0x113,0xee)](_0x55d5b1,_0x372091),_0x5942d3=_0xeb7205[_0x288c82(0x10b,0x139)](0x0,_0x372091),_0x3547ce=new Set(_0x5942d3[_0x12732f(0x541,0x512)](_0x3d7ed0=>_0x3d7ed0['id'])),_0x126232=_0xeb7205[_0x12732f(0x44a,0x489)](_0x372091)[_0x288c82(0xf1,0x130)](_0x19b76a=>!_0x3547ce[_0x288c82(0x101,0xfe)](_0x19b76a['id'])),_0x586331=[];for(let _0x2044b3=_0x126232['length']-0x1;_0x2044b3>0x0&&_0x147d10[_0x288c82(0x12c,0x162)](_0x586331[_0x12732f(0x4c2,0x45f)],_0x5e5ef9);_0x2044b3--){const _0x2869fd=Math[_0x288c82(0xff,0x9b)](Math[_0x12732f(0x544,0x503)]()*_0x147d10[_0x12732f(0x49c,0x4d1)](_0x2044b3,0x1));[_0x126232[_0x2044b3],_0x126232[_0x2869fd]]=[_0x126232[_0x2869fd],_0x126232[_0x2044b3]],_0x586331[_0x288c82(0x14b,0x12d)](_0x126232[_0x2044b3]);}_0x5bd020=[..._0x5942d3,..._0x586331];}}else _0x5bd020=_0x49e5e9;const _0x17391b=this[_0x12732f(0x4e5,0x51b)+_0x288c82(0x13c,0x153)](_0x5bd020,_0x4cb5e0[_0x12732f(0x4ca,0x4a0)+_0x288c82(0x168,0x134)]),_0x563685=_0x54aab7['filter'](_0x5cb1dc=>_0x5cb1dc[_0x288c82(0xf7,0x9d)]==='skill');let _0x17c248=_0x147d10[_0x12732f(0x491,0x4df)](_0x4cb5e0[_0x12732f(0x4d6,0x4bb)],_0x563685['length']);for(const _0x267582 of _0x17391b){if(_0x147d10[_0x288c82(0x127,0x117)](_0x17c248,0x0))break;const _0x44dc82=this['evaluateCl'+_0x12732f(0x578,0x518)](_0x267582,_0x4cb5e0[_0x288c82(0x180,0x146)+_0x288c82(0x19c,0x1bd)],_0x4cb5e0[_0x288c82(0x117,0xf8)+_0x288c82(0x10a,0xf9)]);if(!_0x44dc82){_0x4a9301+=_0x267582[_0x288c82(0xe1,0xf9)];continue;}const _0x4813fa=this['isDuplicat'+'eSkill'](_0x44dc82,_0x563685);if(_0x4813fa){_0x4a9301+=_0x267582['length'];continue;}_0x37cf39[_0x288c82(0x14b,0x14e)](_0x44dc82);if(_0x4cb5e0['llmValidat'+_0x288c82(0xf4,0xb8)]&&this[_0x288c82(0x146,0xf8)][_0x288c82(0x190,0x155)]?.[_0x288c82(0xed,0x12f)])try{const _0xd1e55c=await this['validateWi'+'thLLM'](_0x44dc82);if(!_0xd1e55c){_0x4a9301+=_0x267582[_0x288c82(0xe1,0xf4)];continue;}}catch(_0x120029){_0x577bc6[_0x288c82(0x14b,0x14e)](_0x12732f(0x544,0x50f)+_0x288c82(0x11f,0x167)+_0x12732f(0x431,0x493)+(_0x147d10['qDkSS'](_0x120029,Error)?_0x120029[_0x288c82(0x15d,0xff)]:String(_0x120029)));}try{await this[_0x12732f(0x4d8,0x501)+_0x288c82(0x133,0x111)](_0x44dc82,_0x5c96e5),_0x3b4218++,_0x17c248--;}catch(_0x2beebd){_0x577bc6[_0x288c82(0x14b,0x109)](_0x288c82(0x144,0x10f)+'tion\x20faile'+_0x288c82(0x115,0x135)+(_0x147d10[_0x12732f(0x469,0x4a2)](_0x2beebd,Error)?_0x2beebd[_0x12732f(0x500,0x4db)]:_0x147d10[_0x12732f(0x4b5,0x474)](String,_0x2beebd)));}}}else{const _0xe1a7c2=new _0x541812(_0x415542[_0x288c82(0x172,0x1c6)]()+_0x147d10[_0x12732f(0x490,0x48f)](_0x147d10['dZlNx'](_0x147d10['dZlNx'](this[_0x12732f(0x4b3,0x4c4)][_0x12732f(0x454,0x466)+_0x288c82(0x19e,0x176)]?.[_0x288c82(0x178,0x13e)+_0x12732f(0x4f6,0x4b0)]??0x5a,0x18),0x3c)*0x3c,0x3e8))['toISOStrin'+'g'](),_0x399617={..._0x54b8b6,'reviewDueAt':_0xe1a7c2,'activationCount':_0x49b1a5[_0x12732f(0x4c2,0x4ec)+'t'],'lastActivatedAt':_0x356253['lastAccess'+_0x12732f(0x4e1,0x49b)]},_0x1aa08a=_0x12732f(0x4ff,0x4a7)+_0x568a52[_0x288c82(0x12e,0x118)](_0x5e77a1[_0x288c82(0x126,0x130)](_0x399617))[_0x12732f(0x4af,0x4b9)](_0x147d10[_0x12732f(0x40a,0x45e)]),_0x19c778=_0x66df04[_0x288c82(0x175,0x1d4)][_0x288c82(0xf1,0x91)](_0x417587=>!_0x417587['startsWith']('meta:'));_0x19c778[_0x288c82(0x14b,0x103)](_0x1aa08a),this['db'][_0x12732f(0x44f,0x470)+'ry'](_0x359a35['id'],{'tags':_0x19c778}),_0x3a2fde++;}}catch(_0x53a753){_0x577bc6[_0x288c82(0x14b,0x160)](_0x12732f(0x47d,0x4d7)+_0x12732f(0x4f1,0x494)+(_0x53a753 instanceof Error?_0x53a753[_0x12732f(0x4f9,0x4db)]:String(_0x53a753)));}return{'candidates':_0x37cf39,'created':_0x3b4218,'skipped':_0x4a9301,'errors':_0x577bc6};}[_0x41452f(0x1dd,0x1f5)+_0x41452f(0x17c,0x164)](_0x5657cc,_0x36e264){const _0x529d39={'Dpuou':function(_0x4a91cd,_0x34962a){return _0x4a91cd>=_0x34962a;}};function _0x433a58(_0x3524a3,_0x463a93){return _0x41452f(_0x463a93- -0x245,_0x3524a3);}const _0x7c6522=new Set(),_0x2b5264=[];function _0x351dd1(_0x344897,_0x33164d){return _0x41452f(_0x33164d- -0x1e,_0x344897);}for(const _0x5bf01e of _0x5657cc){if(_0x7c6522['has'](_0x5bf01e['id']))continue;if(!_0x5bf01e[_0x433a58(-0xa2,-0xaa)])continue;const _0x397bca=[_0x5bf01e];_0x7c6522['add'](_0x5bf01e['id']);for(const _0x4ff691 of _0x5657cc){if(_0x7c6522[_0x433a58(-0x14f,-0x104)](_0x4ff691['id']))continue;if(!_0x4ff691[_0x351dd1(0x156,0x17d)])continue;const _0xafa6a7=cosineSimilarity(_0x5bf01e[_0x351dd1(0x1ba,0x17d)],_0x4ff691[_0x351dd1(0x1c6,0x17d)]);_0x529d39[_0x351dd1(0xf9,0x108)](_0xafa6a7,_0x36e264)&&(_0x397bca[_0x351dd1(0x1c8,0x16d)](_0x4ff691),_0x7c6522['add'](_0x4ff691['id']));}_0x2b5264[_0x351dd1(0x1cd,0x16d)](_0x397bca);}return _0x2b5264;}['evaluateCl'+'uster'](_0x282f34,_0x2c5a01,_0x4d47d3){const _0x163fb1={'FyzlI':function(_0x4fa85d,_0x143e2f){return _0x4fa85d instanceof _0x143e2f;},'hsZZj':function(_0x3874a7,_0xea7fc1){return _0x3874a7(_0xea7fc1);},'BibUZ':_0x1dd906(-0xb0,-0xab),'cFDAP':_0x1bc137(0x301,0x2e0)+'ED','gqtZt':_0x1bc137(0x2a2,0x28f)+'ed','ZMqcJ':function(_0x8f1609,_0x262aa5){return _0x8f1609+_0x262aa5;},'NznZv':function(_0x54dab3,_0x388cbb){return _0x54dab3<_0x388cbb;},'cgPZn':function(_0x3a53d6,_0xae7310){return _0x3a53d6>=_0xae7310;},'clAJU':function(_0x566339,_0x262bb8){return _0x566339+_0x262bb8;},'SCWah':_0x1dd906(-0x14c,-0x198),'SlrMn':function(_0x52c268,_0x3e1bdd){return _0x52c268/_0x3e1bdd;},'QsvIW':function(_0x53acfa,_0x1e83e2){return _0x53acfa!==_0x1e83e2;},'sqdDR':'AvSjW','tqXSz':_0x1bc137(0x327,0x312),'iRmcb':_0x1dd906(-0x142,-0x127),'guOjo':function(_0x156a72,_0x2ce5cd){return _0x156a72>_0x2ce5cd;},'ZoETa':function(_0x2e6f6a){return _0x2e6f6a();}},_0x5b81c8=0.5;if(_0x163fb1[_0x1bc137(0x2bc,0x31d)](_0x282f34[_0x1dd906(-0x14d,-0x109)],_0x2c5a01))return null;function _0x1bc137(_0xbfac2c,_0x19fa55){return _0x4f4032(_0xbfac2c-0x1c2,_0x19fa55);}const _0x5829ae=this['computeAve'+_0x1bc137(0x2f9,0x353)+_0x1dd906(-0x11f,-0xc1)](_0x282f34);if(_0x5829ae<0.75)return null;let _0x559521=_0x5829ae;const _0x3b1d23=new Set(_0x282f34[_0x1dd906(-0x9a,-0xa1)](_0x57455c=>_0x57455c[_0x1bc137(0x2aa,0x25f)])[_0x1dd906(-0x13d,-0xee)](Boolean));_0x163fb1[_0x1bc137(0x2fb,0x354)](_0x3b1d23[_0x1bc137(0x2f1,0x2f3)],0x2)&&(_0x559521*=1.2);const _0x4d27a1=new Map();for(const _0x4ec346 of _0x282f34){_0x4d27a1[_0x1dd906(-0x12c,-0xe9)](_0x4ec346[_0x1dd906(-0x137,-0x178)],_0x163fb1[_0x1bc137(0x334,0x30a)](_0x4d27a1[_0x1bc137(0x2d7,0x274)](_0x4ec346[_0x1bc137(0x2a1,0x2f5)])??0x0,0x1));}let _0x504411=_0x282f34[0x0][_0x1dd906(-0x137,-0xf1)];function _0x1dd906(_0x5c9b83,_0x19a22d){return _0x4f4032(_0x5c9b83- -0x216,_0x19a22d);}let _0x34ce12=0x0;for(const [_0x2922c7,_0x246f5b]of _0x4d27a1){_0x246f5b>_0x34ce12&&(_0x163fb1['SCWah']==='TRXzJ'?_0x3a60e0=_0x1b80ea:(_0x34ce12=_0x246f5b,_0x504411=_0x2922c7));}_0x163fb1[_0x1dd906(-0xeb,-0xb4)](_0x34ce12,_0x282f34[_0x1bc137(0x28b,0x263)])>=0.5&&(_0x559521*=1.1);_0x559521=Math[_0x1dd906(-0x9c,-0x8d)](_0x559521,0x1);if(_0x163fb1['NznZv'](_0x559521,_0x5b81c8))return null;let _0x59f3f2;const _0x104c01=_0x282f34[_0x1dd906(-0x13d,-0x164)](_0x5338bc=>_0x5338bc[_0x1dd906(-0xd3,-0xd9)]&&_0x5338bc[_0x1dd906(-0xd3,-0x122)][_0x1bc137(0x28b,0x2b6)]>0x0);if(_0x104c01[_0x1bc137(0x28b,0x2c6)]>=0x2){if(_0x163fb1['QsvIW'](_0x163fb1[_0x1bc137(0x2b0,0x285)],_0x1dd906(-0x133,-0xf7))){const _0x3a4358=_0x104c01[0x0]['embedding'][_0x1dd906(-0x14d,-0x19a)],_0x1db2a5=new Array(_0x3a4358)[_0x1bc137(0x336,0x368)](0x0);for(const _0x163447 of _0x104c01){if(_0x163fb1[_0x1bc137(0x325,0x321)]('mOUJW',_0x163fb1[_0x1bc137(0x2be,0x294)])){const _0x4eba68=_0x163fb1[_0x1bc137(0x2ea,0x2cf)](_0xb2faac,_0x5bf69e)?_0x118459[_0x1dd906(-0xd1,-0xa7)]:_0x163fb1[_0x1bc137(0x31b,0x340)](_0x25d9a8,_0x56807f);if(_0x4eba68[_0x1bc137(0x299,0x298)](_0x163fb1['BibUZ'])||_0x4eba68[_0x1bc137(0x299,0x2c7)](_0x163fb1[_0x1bc137(0x2f2,0x34b)])||_0x4eba68[_0x1dd906(-0x13f,-0x158)](_0x163fb1['gqtZt']))return![];return![];}else for(let _0x1c8eb8=0x0;_0x163fb1[_0x1dd906(-0x11c,-0x12e)](_0x1c8eb8,_0x3a4358);_0x1c8eb8++){_0x1db2a5[_0x1c8eb8]+=_0x163447[_0x1bc137(0x305,0x304)][_0x1c8eb8]/_0x104c01[_0x1bc137(0x28b,0x26f)];}}let _0x4664ac=0x0,_0x5b4802=-0x1;for(let _0x5cedd5=0x0;_0x5cedd5<_0x104c01[_0x1dd906(-0x14d,-0x1a4)];_0x5cedd5++){if(_0x163fb1[_0x1bc137(0x291,0x293)]===_0x163fb1[_0x1bc137(0x291,0x23e)]){const _0x3672ce=cosineSimilarity(_0x1db2a5,_0x104c01[_0x5cedd5][_0x1bc137(0x305,0x34e)]);_0x163fb1['guOjo'](_0x3672ce,_0x5b4802)&&(_0x5b4802=_0x3672ce,_0x4664ac=_0x5cedd5);}else _0x1c7f1a[_0x1dd906(-0x12c,-0x17f)](_0x47a1e4[_0x1dd906(-0x137,-0xde)],_0x163fb1[_0x1bc137(0x284,0x25b)](_0x51186a['get'](_0x2b18ca[_0x1dd906(-0x137,-0x159)])??0x0,0x1));}_0x59f3f2=_0x104c01[_0x4664ac][_0x1dd906(-0xa3,-0x105)][_0x1bc137(0x2b5,0x2fa)](0x0,0x1f4);}else return![];}else{const _0x59b5e8=[..._0x282f34]['sort']((_0x49906d,_0x2d6207)=>_0x2d6207[_0x1bc137(0x335,0x304)][_0x1bc137(0x28b,0x2f0)]-_0x49906d[_0x1bc137(0x335,0x370)][_0x1dd906(-0x14d,-0xf5)]);_0x59f3f2=_0x59b5e8[0x0]['content'][_0x1dd906(-0x123,-0xdd)](0x0,0x1f4);}const _0x2bde18=new Map();for(const _0x40260b of _0x282f34){for(const _0x3c2c69 of _0x40260b[_0x1dd906(-0xb9,-0xb6)]){_0x2bde18[_0x1bc137(0x2ac,0x276)](_0x3c2c69,(_0x2bde18[_0x1dd906(-0x101,-0x153)](_0x3c2c69)??0x0)+0x1);}}const _0x214cb9=Array['from'](_0x2bde18['entries']())[_0x1bc137(0x29b,0x275)](([,_0x311dc7])=>_0x311dc7>=0x2)[_0x1dd906(-0x9a,-0xdd)](([_0x2f0026])=>_0x2f0026);return{'clusterId':_0x163fb1[_0x1bc137(0x2e4,0x28e)](randomUUID),'sourceMemories':_0x282f34,'category':_0x504411,'confidence':_0x559521,'pattern':_0x59f3f2,'tags':[..._0x214cb9,'skill',_0x1dd906(-0x110,-0xb5)+'ed']};}async['validateWi'+_0x41452f(0x118,0x112)](_0x1425bd){function _0x3b1203(_0x59105d,_0x55f6ad){return _0x4f4032(_0x55f6ad- -0x204,_0x59105d);}const _0x38600c={'UjFNw':'Sample\x20mem'+_0x3b1203(-0x2c,-0x86),'drWYY':function(_0x2abfb9,_0x44dcd8){return _0x2abfb9===_0x44dcd8;},'UgFOR':function(_0x45b038,_0x51d435){return _0x45b038(_0x51d435);},'yrKgy':_0x3b1203(-0xd3,-0x9e),'KKkby':'ECONNREFUS'+'ED'};function _0x396c56(_0x5d58f6,_0x5f40c9){return _0x4f4032(_0x5d58f6- -0x300,_0x5f40c9);}try{const {createLLMClient:_0xece984}=await import('../llm/ind'+'ex.js'),_0x132e31=_0xece984(this[_0x3b1203(-0x87,-0xd6)][_0x3b1203(-0xac,-0x8c)]),_0x15c660=[_0x396c56(-0x1e4,-0x1de)+_0x396c56(-0x1cc,-0x20a)+_0x396c56(-0x199,-0x196)+_0x396c56(-0x180,-0x1b0)+_0x396c56(-0x191,-0x1dc)+_0x396c56(-0x1c2,-0x1ad)+_0x3b1203(-0xde,-0xf1)+'.','Respond\x20wi'+'th\x20JSON:\x20{'+_0x396c56(-0x20c,-0x1ea)+_0x396c56(-0x185,-0x1a9)+_0x396c56(-0x215,-0x247)+_0x396c56(-0x22f,-0x1d9)+_0x396c56(-0x18f,-0x1e5),'',_0x3b1203(-0x82,-0x7c)+_0x1425bd['category'],_0x3b1203(-0x110,-0xba)+_0x1425bd[_0x396c56(-0x1ee,-0x1d2)],'Source\x20cou'+_0x396c56(-0x1a5,-0x201)+_0x1425bd['sourceMemo'+_0x396c56(-0x228,-0x24b)][_0x396c56(-0x237,-0x292)],'',_0x38600c[_0x3b1203(-0x10a,-0xd7)],..._0x1425bd[_0x396c56(-0x18a,-0x166)+_0x3b1203(-0xcd,-0x12c)][_0x396c56(-0x20d,-0x21c)](0x0,0x3)[_0x3b1203(-0x5f,-0x88)]((_0x44993d,_0x45a80f)=>_0x45a80f+0x1+'.\x20'+_0x44993d[_0x3b1203(-0x78,-0x91)]['slice'](0x0,0xc8))][_0x396c56(-0x22d,-0x205)]('\x0a'),_0x409d38=await _0x132e31['complete'](_0x15c660),_0x5b1fcc=JSON['parse'](_0x409d38);return _0x38600c[_0x396c56(-0x1e3,-0x1a3)](_0x5b1fcc[_0x3b1203(-0x146,-0xf9)],!![])&&(_0x5b1fcc['confidence']??0x0)>=(this['config'][_0x3b1203(-0x110,-0x134)+_0x3b1203(-0xb6,-0x7e)]?.[_0x396c56(-0x201,-0x264)+_0x3b1203(-0xcc,-0x112)]??0.7);}catch(_0x2b6f0a){const _0x2d58a3=_0x2b6f0a instanceof Error?_0x2b6f0a[_0x396c56(-0x1bb,-0x1f4)]:_0x38600c[_0x3b1203(-0xd3,-0x104)](String,_0x2b6f0a);if(_0x2d58a3[_0x3b1203(-0x12a,-0x12d)](_0x38600c[_0x396c56(-0x1b1,-0x1e0)])||_0x2d58a3[_0x396c56(-0x229,-0x24e)](_0x38600c[_0x3b1203(-0xe4,-0x118)])||_0x2d58a3['includes'](_0x396c56(-0x220,-0x1d9)+'ed'))return![];return![];}}async[_0x41452f(0x1c3,0x16d)+_0x4f4032(0x11b,0x122)](_0x5f0558,_0x4af379){const _0x5743fe={'RItHI':function(_0x15ca30,_0x28d9a2){return _0x15ca30*_0x28d9a2;},'OvIcQ':function(_0x3e81e0,_0x265d00){return _0x3e81e0*_0x265d00;},'IowSk':function(_0x13c132,_0x5744b8){return _0x13c132&&_0x5744b8;}},_0x422945=new Date()['toISOStrin'+'g'](),_0x5cffa0=new Date(Date['now']()+_0x5743fe['RItHI'](_0x5743fe[_0xf54adf(0x2d0,0x305)](_0x5743fe['OvIcQ'](this[_0x36c91e(0x30b,0x2e3)]['skillConve'+_0xf54adf(0x38a,0x341)]?.[_0x36c91e(0x33d,0x2dc)+'eDays']??0x5a,0x18)*0x3c,0x3c),0x3e8))[_0xf54adf(0x2f3,0x2ec)+'g'](),_0x9fa0e9=this['buildSkill'+_0x36c91e(0x349,0x31f)](_0x5f0558);function _0xf54adf(_0x2f89e3,_0x31169b){return _0x4f4032(_0x2f89e3-0x204,_0x31169b);}function _0x36c91e(_0x36378f,_0x164254){return _0x4f4032(_0x36378f-0x1dd,_0x164254);}let _0x4ee5ed=null;if(_0x4af379)try{_0x4ee5ed=await _0x4af379[_0x36c91e(0x313,0x2af)+_0xf54adf(0x325,0x2fc)]({'content':_0x5f0558['pattern'],'tags':_0x5f0558['tags']['filter'](_0x2f8e8b=>!_0x2f8e8b[_0xf54adf(0x2d1,0x310)](_0x36c91e(0x2ee,0x292))&&_0x2f8e8b!=='skill'&&_0x2f8e8b!==_0x36c91e(0x2e3,0x2bf)+'ed'),'category':_0x5f0558[_0xf54adf(0x2e3,0x310)]});}catch{}const _0x18eb04={'sourceMemoryIds':_0x5f0558[_0xf54adf(0x37a,0x32a)+'ries'][_0x36c91e(0x359,0x3b3)](_0x22e108=>_0x22e108['id']),'crystallizedAt':_0x422945,'confidence':_0x5f0558['confidence'],'reviewDueAt':_0x5cffa0,'activationCount':0x0,..._0x5743fe[_0x36c91e(0x2a3,0x2ca)](_0x4ee5ed,{'taxonomyDomain':_0x4ee5ed['domain'],'taxonomySkillId':_0x4ee5ed[_0x36c91e(0x360,0x330)]??undefined,'taxonomyNature':_0x4ee5ed[_0xf54adf(0x36e,0x30e)]??undefined,'taxonomyStability':_0x4ee5ed['stability']??undefined,'taxonomyConfidence':_0x4ee5ed['confidence']})},_0x4f074b=_0x36c91e(0x2ee,0x2f3)+Buffer[_0x36c91e(0x2f3,0x337)](JSON[_0xf54adf(0x312,0x36f)](_0x18eb04))[_0xf54adf(0x327,0x2e6)](_0x36c91e(0x34b,0x358)),_0x52bf08=[];_0x4ee5ed&&(_0x52bf08[_0xf54adf(0x337,0x32b)](_0xf54adf(0x383,0x3a1)+_0x4ee5ed[_0xf54adf(0x324,0x2d9)]),_0x4ee5ed[_0x36c91e(0x360,0x32f)]&&_0x52bf08[_0x36c91e(0x310,0x2be)](_0x36c91e(0x35c,0x351)+_0x4ee5ed[_0x36c91e(0x360,0x352)]),_0x4ee5ed['nature']&&_0x52bf08[_0x36c91e(0x310,0x366)](_0x36c91e(0x33c,0x2e4)+_0x4ee5ed[_0x36c91e(0x347,0x389)]));const _0x155675=this['db'][_0x36c91e(0x33b,0x385)+'ry']({'content':_0x9fa0e9,'category':_0xf54adf(0x351,0x354),'tier':_0xf54adf(0x37b,0x348),'tags':[..._0x5f0558[_0xf54adf(0x361,0x311)],..._0x52bf08,_0x4f074b],'projectPath':_0x5f0558['sourceMemo'+'ries'][0x0]?.[_0xf54adf(0x306,0x311)+'h']}),_0x4711d8=_0x5f0558[_0xf54adf(0x37a,0x342)+_0x36c91e(0x2b5,0x262)][_0x36c91e(0x359,0x325)](_0x10335c=>_0x10335c[_0x36c91e(0x320,0x305)])[_0xf54adf(0x2dd,0x314)](_0x5ceb84=>!!_0x5ceb84&&_0x5ceb84[_0xf54adf(0x2cd,0x29b)]>0x0);if(_0x4711d8[_0x36c91e(0x2a6,0x25c)]>0x0){const _0x51922f=this['averageEmb'+'eddings'](_0x4711d8);this['db']['saveEmbedd'+'ing'](_0x155675['id'],_0x51922f);}return _0x155675;}[_0x41452f(0x15c,0x1a3)+'ls'](){const _0x33b18e={'nmWMi':function(_0x44968d,_0x3a88ff){return _0x44968d<_0x3a88ff;},'GEUEU':function(_0x480728,_0x409f6c,_0xa3a4d4){return _0x480728(_0x409f6c,_0xa3a4d4);},'sZvmZ':_0x50e0c5(0x32e,0x309),'fFTWz':function(_0x169ed2,_0x1a3b1f){return _0x169ed2<_0x1a3b1f;},'uiert':_0x367d71(0x53,0x36),'TKBeS':function(_0x6b4ee9,_0x3459c2){return _0x6b4ee9!==_0x3459c2;},'VWxcU':function(_0x26c361,_0x56ab1b){return _0x26c361*_0x56ab1b;},'piqbE':function(_0x50151,_0x5c13ff){return _0x50151*_0x5c13ff;}},_0x360df6=new Date();let _0x36445d=0x0;function _0x367d71(_0x467255,_0x1492c0){return _0x41452f(_0x1492c0- -0x197,_0x467255);}let _0x12eced=0x0,_0x46b6ac=0x0;const _0x372c78=this['db'][_0x367d71(-0x35,-0x6d)+'es']({'category':_0x33b18e[_0x50e0c5(0x307,0x361)],'limit':0x3e8});for(const _0x38e19a of _0x372c78){_0x36445d++;const _0x33d80a=this[_0x367d71(-0x27,-0x74)+_0x50e0c5(0x329,0x2e4)](_0x38e19a);if(!_0x33d80a)continue;const _0x55a81e=new Date(_0x33d80a['reviewDueA'+'t']);if(_0x33b18e[_0x50e0c5(0x2f9,0x34e)](_0x360df6,_0x55a81e))continue;if(_0x33b18e['fFTWz'](_0x38e19a['accessCoun'+'t'],0x2))this['db']['updateMemo'+'ry'](_0x38e19a['id'],{'category':_0x33b18e['uiert'],'tags':_0x38e19a['tags'][_0x367d71(-0xa2,-0x66)](_0x87b9ac=>!_0x87b9ac[_0x367d71(-0x34,-0x72)](_0x367d71(0x1e,-0x2e))&&_0x87b9ac!==_0x50e0c5(0x32e,0x31d)&&_0x87b9ac!==_0x50e0c5(0x2e7,0x304)+'ed')}),_0x12eced++;else{if(_0x33b18e[_0x367d71(0x39,0x22)]('IfjzT',_0x50e0c5(0x323,0x375)))for(let _0x4c93fb=_0x4b4ca3+0x1;_0x33b18e[_0x50e0c5(0x2f9,0x2c4)](_0x4c93fb,_0xffa293[_0x50e0c5(0x2aa,0x285)]);_0x4c93fb++){_0x549e09[_0x9df9e8]['embedding']&&_0x5068c9[_0x4c93fb][_0x367d71(0x19,0x4)]&&(_0x52d1ab+=_0x33b18e[_0x50e0c5(0x2bc,0x2ac)](_0x15f6f1,_0x5e37db[_0x2d86fd][_0x367d71(-0x20,0x4)],_0x42d3a2[_0x4c93fb]['embedding']),_0x4d449e++);}else{const _0x52004c=new Date(Date[_0x50e0c5(0x33b,0x343)]()+_0x33b18e[_0x50e0c5(0x368,0x33a)](_0x33b18e['piqbE'](_0x33b18e[_0x50e0c5(0x2a5,0x246)]((this[_0x367d71(0x3b,-0x11)][_0x367d71(-0x20,-0x6f)+'rsion']?.['reviewCycl'+_0x50e0c5(0x2fb,0x2c4)]??0x5a)*0x18,0x3c),0x3c),0x3e8))[_0x367d71(0x4,-0x50)+'g'](),_0x51daa3={..._0x33d80a,'reviewDueAt':_0x52004c,'activationCount':_0x38e19a[_0x367d71(0x5b,0x17)+'t'],'lastActivatedAt':_0x38e19a[_0x367d71(-0x79,-0x80)+_0x50e0c5(0x2e6,0x2ab)]},_0x583665=_0x50e0c5(0x2f2,0x346)+Buffer[_0x50e0c5(0x2f7,0x294)](JSON[_0x50e0c5(0x2ef,0x2b7)](_0x51daa3))[_0x367d71(-0x66,-0x1c)](_0x50e0c5(0x34f,0x342)),_0x176a80=_0x38e19a[_0x367d71(-0x36,0x1e)][_0x50e0c5(0x2ba,0x2fd)](_0x5707d5=>!_0x5707d5['startsWith'](_0x367d71(-0x43,-0x2e)));_0x176a80['push'](_0x583665),this['db'][_0x50e0c5(0x2bb,0x30d)+'ry'](_0x38e19a['id'],{'tags':_0x176a80}),_0x46b6ac++;}}}function _0x50e0c5(_0x3bbd9d,_0x21731b){return _0x41452f(_0x3bbd9d-0x189,_0x21731b);}return{'reviewed':_0x36445d,'demoted':_0x12eced,'renewed':_0x46b6ac};}['computeAve'+_0x41452f(0x18f,0x138)+_0x41452f(0x14f,0x169)](_0x37e99f){const _0x1239d0={'kZvqv':function(_0x27fbb3,_0x31455b){return _0x27fbb3<_0x31455b;},'eOHjA':function(_0x5e100f,_0x57a4ed,_0x400c40){return _0x5e100f(_0x57a4ed,_0x400c40);}};if(_0x37e99f[_0x42834b(-0x205,-0x237)]<0x2)return 0x1;let _0x4cba0e=0x0,_0x2ecf5b=0x0;function _0x198f1b(_0x57aa86,_0x2108f5){return _0x4f4032(_0x57aa86- -0x1a4,_0x2108f5);}for(let _0x25380f=0x0;_0x25380f<_0x37e99f['length'];_0x25380f++){for(let _0x89d8df=_0x25380f+0x1;_0x1239d0['kZvqv'](_0x89d8df,_0x37e99f[_0x198f1b(-0xdb,-0x117)]);_0x89d8df++){_0x37e99f[_0x25380f][_0x198f1b(-0x61,-0xb2)]&&_0x37e99f[_0x89d8df]['embedding']&&(_0x4cba0e+=_0x1239d0[_0x42834b(-0x172,-0x175)](cosineSimilarity,_0x37e99f[_0x25380f][_0x198f1b(-0x61,-0x52)],_0x37e99f[_0x89d8df][_0x42834b(-0x18b,-0x1b1)]),_0x2ecf5b++);}}function _0x42834b(_0x263885,_0xcc111a){return _0x4f4032(_0x263885- -0x2ce,_0xcc111a);}return _0x2ecf5b>0x0?_0x4cba0e/_0x2ecf5b:0x0;}[_0x4f4032(0xf0,0x11f)+_0x41452f(0x182,0x154)](_0x3e2b95,_0x1c4cc7){function _0x22b643(_0x3fc045,_0x590b9c){return _0x41452f(_0x590b9c- -0x127,_0x3fc045);}function _0x3a04a0(_0x39c3ef,_0x2b8afe){return _0x41452f(_0x2b8afe- -0x106,_0x39c3ef);}const _0x2b44ba={'denIS':function(_0xed960e,_0x3ad4b1){return _0xed960e/_0x3ad4b1;},'LCPMR':function(_0x502de8,_0x58ac0e){return _0x502de8>=_0x58ac0e;}},_0x5e576f=new Set(_0x3e2b95[_0x22b643(0xf3,0xa7)+_0x3a04a0(0x28,0x2a)][_0x22b643(0xd5,0xad)](_0x3ece39=>_0x3ece39['id']));for(const _0x5debad of _0x1c4cc7){const _0x1217d8=this['extractMet'+_0x22b643(0x44,0x79)](_0x5debad);if(!_0x1217d8)continue;const _0x1e629a=new Set(_0x1217d8[_0x22b643(0xc9,0xa7)+'ryIds']),_0x289538=[..._0x5e576f][_0x3a04a0(0x5f,0x2b)](_0x335f71=>_0x1e629a['has'](_0x335f71))[_0x22b643(-0x5e,-0x6)],_0x23ed74=_0x2b44ba[_0x3a04a0(0x9b,0xb4)](_0x289538,Math[_0x3a04a0(0x93,0x36)](_0x5e576f['size'],_0x1e629a[_0x22b643(0x2a,0x60)]));if(_0x2b44ba[_0x22b643(-0x12,0x27)](_0x23ed74,0.7))return!![];}return![];}[_0x4f4032(0x131,0x110)+_0x41452f(0x1c4,0x1ee)](_0x4a89e3){const _0x5203b7={'RfZVw':function(_0x4b8dcb,_0x12d7c9){return _0x4b8dcb+_0x12d7c9;},'YoYxJ':function(_0x5a045d,_0x45ba64){return _0x5a045d*_0x45ba64;},'HKRXU':function(_0x1f7397,_0x5c23df){return _0x1f7397===_0x5c23df;},'ldtpE':function(_0x4cbce8,_0x495cd4){return _0x4cbce8===_0x495cd4;},'IsMfF':_0xa9268a(0x5c,0xe)};function _0x5ca60c(_0x210fdf,_0x579c21){return _0x41452f(_0x210fdf- -0x1e8,_0x579c21);}function _0xa9268a(_0x391667,_0x13eb91){return _0x41452f(_0x13eb91- -0x186,_0x391667);}const _0x414a8b=[];_0x414a8b['push']('[Skill]\x20'+_0x4a89e3['pattern']),_0x414a8b[_0x5ca60c(-0x5d,-0xa)](''),_0x414a8b[_0xa9268a(0x25,0x5)](_0xa9268a(0x2c,0x5a)+_0x4a89e3[_0x5ca60c(-0xb1,-0xae)]),_0x414a8b[_0x5ca60c(-0x5d,-0x42)](_0x5ca60c(-0x88,-0x63)+_0x4a89e3[_0x5ca60c(-0x1a,-0x71)+'ries'][_0xa9268a(-0x48,-0x65)]+_0xa9268a(-0x5,-0x17)),_0x414a8b[_0x5ca60c(-0x5d,-0x1)](_0xa9268a(0x81,0x27)+':\x20'+_0x5203b7['YoYxJ'](_0x4a89e3[_0xa9268a(0x3a,0x18)],0x64)[_0x5ca60c(-0x45,0xe)](0x0)+'%');if(_0x4a89e3[_0xa9268a(0x56,0x48)+'ries'][_0xa9268a(-0xa6,-0x65)]>0x1){if(_0x5203b7[_0x5ca60c(-0xaf,-0xe6)](_0xa9268a(0x7e,0x53),_0xa9268a(-0x4a,0x12))){const _0x296e0f=_0xc0a677[_0xa9268a(-0x9b,-0x47)](_0x445540['random']()*PTUxGV[_0x5ca60c(-0xcb,-0x120)](_0x5a1c00,0x1));[_0xbb334[_0x4f480d],_0x590c9c[_0x296e0f]]=[_0x14d8c[_0x296e0f],_0x557b99[_0xd37ba0]],_0x210e49['push'](_0x43a5de[_0x4679b6]);}else{_0x414a8b[_0xa9268a(-0x3c,0x5)](''),_0x414a8b[_0xa9268a(-0x3,0x5)](_0x5ca60c(-0xba,-0xc2)+_0x5ca60c(-0xaa,-0xd5));for(const _0x5cca7e of _0x4a89e3[_0x5ca60c(-0x1a,0x46)+_0x5ca60c(-0xb8,-0xba)][_0x5ca60c(-0x9d,-0xfc)](0x0,0x3)){if(_0x5203b7[_0xa9268a(-0x96,-0x39)](_0xa9268a(-0x38,-0x6b),_0x5203b7[_0x5ca60c(-0x3d,-0x9a)]))_0x2b7fd8[_0xa9268a(-0x26,0x5)](_0x2fd6a8),_0x4e5739[_0xa9268a(-0x44,0x19)](_0x25a600['id']);else{const _0x213119=_0x5cca7e['content']['split']('\x0a')[0x0][_0x5ca60c(-0x9d,-0x85)](0x0,0x96);_0x414a8b[_0xa9268a(-0x2,0x5)]('-\x20'+_0x213119);}}}}return _0x414a8b[_0x5ca60c(-0xbd,-0x82)]('\x0a');}['extractMet'+'adata'](_0x5be7a2){function _0x53db10(_0x437a46,_0x840c97){return _0x41452f(_0x437a46- -0x211,_0x840c97);}const _0x259cff={'WOZki':function(_0x510b1c,_0x449cd0){return _0x510b1c!==_0x449cd0;}};function _0x4a5787(_0x2b8aa2,_0x2c97e0){return _0x41452f(_0x2b8aa2- -0x26,_0x2c97e0);}const _0x3f351a=_0x5be7a2['tags']['find'](_0x4f9590=>_0x4f9590['startsWith'](_0x4a5787(0x143,0x13b)));if(!_0x3f351a)return null;try{const _0x5b8865=Buffer[_0x53db10(-0xa3,-0xb7)](_0x3f351a['slice'](0x5),_0x4a5787(0x1a0,0x175))[_0x4a5787(0x155,0x187)](_0x53db10(-0x9a,-0x89));return JSON[_0x4a5787(0x135,0x18a)](_0x5b8865);}catch{if(_0x259cff['WOZki'](_0x53db10(-0xf8,-0xb8),'TBNLm')){const _0x3c20cf=_0xc88e16[_0x53db10(-0x46,-0x6c)][_0x4a5787(0x183,0x153)]('\x0a')[0x0][_0x53db10(-0xc6,-0xda)](0x0,0x96);_0x3eda56[_0x4a5787(0x165,0x1b1)]('-\x20'+_0x3c20cf);}else return null;}}['averageEmb'+_0x41452f(0x159,0x18e)](_0x234e18){const _0x39915e={'RMGiT':function(_0x1f2a3b,_0x1d818a){return _0x1f2a3b===_0x1d818a;},'ndpWh':_0x1f8f55(0x14e,0x171)};function _0x320390(_0x1408a4,_0x138d26){return _0x4f4032(_0x1408a4-0x389,_0x138d26);}if(_0x39915e[_0x1f8f55(0xe7,0xff)](_0x234e18[_0x320390(0x452,0x427)],0x0))return[];const _0x5a518b=_0x234e18[0x0][_0x320390(0x452,0x46f)],_0x312f6c=new Array(_0x5a518b)[_0x1f8f55(0x176,0x177)](0x0);for(const _0x2d4fb0 of _0x234e18){for(let _0xe992ce=0x0;_0xe992ce<_0x5a518b;_0xe992ce++){_0x312f6c[_0xe992ce]+=_0x2d4fb0[_0xe992ce];}}function _0x1f8f55(_0x43cc6b,_0x1fed7b){return _0x4f4032(_0x43cc6b-0x2,_0x1fed7b);}for(let _0x22fe3f=0x0;_0x22fe3f<_0x5a518b;_0x22fe3f++){if(_0x39915e[_0x1f8f55(0xe7,0x10a)](_0x39915e[_0x320390(0x4b2,0x4f4)],_0x320390(0x4d5,0x539)))_0x312f6c[_0x22fe3f]/=_0x234e18[_0x320390(0x452,0x471)];else return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};}return _0x312f6c;}[_0x41452f(0x1ac,0x18e)+_0x41452f(0x173,0x13d)](_0xcf864e){const _0x44daf4={'wEPpY':function(_0x14cadc,_0x11622c,_0x4a0b73){return _0x14cadc(_0x11622c,_0x4a0b73);},'dmxFo':function(_0x1f64ff,_0x3133f1){return _0x1f64ff<_0x3133f1;},'btSWL':_0x28364f(0x42e,0x451),'eigpV':function(_0xe378b3,_0xd17188){return _0xe378b3<_0xd17188;},'lddkw':function(_0x22b846,_0x1ecbcf){return _0x22b846+_0x1ecbcf;}};function _0x578f76(_0x56b978,_0x1d5b15){return _0x4f4032(_0x1d5b15-0x183,_0x56b978);}if(!_0xcf864e[_0x28364f(0x403,0x3b4)]||_0xcf864e[_0x578f76(0x289,0x262)]===_0x578f76(0x2d0,0x2d0))return{'absorbed':![]};const _0x15f090=this['db']['listMemori'+'es']({'limit':0xc8})[_0x28364f(0x399,0x3b3)](_0x5d6824=>_0x5d6824['category']===_0x578f76(0x279,0x2d0));for(const _0x2b3a7f of _0x15f090){if(!_0x2b3a7f['embedding'])continue;const _0x65cf89=_0x44daf4['wEPpY'](cosineSimilarity,_0xcf864e['embedding'],_0x2b3a7f['embedding']);if(_0x44daf4['dmxFo'](_0x65cf89,0.8))continue;const _0xd13e0c=this[_0x578f76(0x245,0x24e)+'adata'](_0x2b3a7f);if(!_0xd13e0c)continue;if(_0xd13e0c[_0x578f76(0x31a,0x2f9)+'ryIds'][_0x28364f(0x397,0x3b4)](_0xcf864e['id']))return{'absorbed':![]};_0xd13e0c[_0x578f76(0x30a,0x2f9)+'ryIds'][_0x578f76(0x2d1,0x2b6)](_0xcf864e['id']),_0xd13e0c['activation'+_0x578f76(0x2f5,0x2f3)]=(_0xd13e0c['activation'+'Count']||0x0)+0x1,_0xd13e0c[_0x28364f(0x43d,0x451)+_0x28364f(0x404,0x440)]=new Date()[_0x28364f(0x3af,0x3d6)+'g']();const _0x4ea8ae=_0x578f76(0x2ce,0x294)+Buffer[_0x578f76(0x2c0,0x299)](JSON[_0x578f76(0x23a,0x291)](_0xd13e0c))['toString'](_0x44daf4[_0x28364f(0x3fa,0x3ed)]),_0x43f9ef=_0x2b3a7f[_0x578f76(0x2db,0x2e0)][_0x28364f(0x399,0x3d4)](_0x16574d=>!_0x16574d['startsWith'](_0x578f76(0x267,0x294))),_0x4433eb='-\x20'+_0xcf864e['content'][_0x578f76(0x2f5,0x2d4)]('\x0a')[0x0][_0x28364f(0x3b3,0x38b)](0x0,0x96);let _0x9bc36f=_0x2b3a7f[_0x28364f(0x433,0x445)];const _0x492467=_0x9bc36f[_0x578f76(0x311,0x2d4)]('\x0a')[_0x28364f(0x399,0x344)](_0x373983=>_0x373983[_0x28364f(0x38d,0x391)]('-\x20'));return _0x44daf4[_0x578f76(0x2f0,0x29c)](_0x492467[_0x578f76(0x285,0x24c)],0x5)&&(_0x9bc36f=_0x44daf4[_0x28364f(0x387,0x367)](_0x9bc36f[_0x28364f(0x3de,0x3fd)](),'\x0a')+_0x4433eb),this['db'][_0x28364f(0x39a,0x367)+'ry'](_0x2b3a7f['id'],{'content':_0x9bc36f,'tags':[..._0x43f9ef,_0x4ea8ae]}),{'absorbed':!![],'skillId':_0x2b3a7f['id']};}function _0x28364f(_0x5990df,_0x35b61e){return _0x4f4032(_0x5990df-0x2c0,_0x35b61e);}return{'absorbed':![]};}}
|
|
1
|
+
function _0x13ea(){const _0x48a736=['DgGGsLnptJOGEW','Aw5JBhvKzxm','B2TlD2q','BMvLB3G','uMvZCg9Uzcb3Aq','B3jPzxmGCMvWCG','mZm1mZa0ufrpvvLH','AwyGDgHLC2uGCW','BgLrq3C','CNLjzhm','swjQqLy','EgrorLm','zwrbDa','ywrK','svHVENK','ywnJzxnZq291BG','icjJB25MAwrLBG','uxfAvw4','DhjPBuvUza','zxnLBNqGysbYzq','Dxn0zxi','zw50CMLLCW','C3rHyMLSAxr5','DKjxuwq','sNnorw8','Ae9UvNm','DgLVBIbMywLSzq','CuLYuxG','BNm6','Dg9ju09tDhjPBG','mZCWnti1menwzenMCa','CMv2Awv3q3LJBa','rLfPENm','mtiWmZuXANLOwvLP','BNq6ia','Bwv0ytO','C29YDa','igzHAwXLzdOG','y29UDgvUDa','C2LTAwXHCML0Eq','r0Hzuvm','runptK5sruzvuW','nZCWnZm4nw5VrLjUva','B3jPzxm','zurHExm','iNzHBgLKiJOGDa','werStfi','v1L6r3m','ig1LBw9YAwvZ','u291CMnLignVDq','mtaWoduWnuzVtNnMyq','DfPHz1u','Aw9UCW','CMv2Awv3rhvLqq','BgXT','z2v0','BgLZDe1LBw9YAq','D29IC0W','tM14AeS','DgvKqxq','CNnPB24','zxzHBhvHDgvdBa','C2TPBgW','DMfSAwq','zMv0y2GGzMfPBa','wfvWzKy','u2TPBgW','C2L6zq','CNzqte0','zg9TywLU','y29TChjLC3nuBW','BgvUz3rO','AgfZ','BMnL','yMLHwhy','D094uKW','vKXdBgq','uhfPEfq','lJb9','q29UzMLKzw5Jzq','ywjZB3jIsw50BW','ALPVuem','BwfW','BMf0DxjLoG','C2vTyw50Awm','u291CMnLCZOG','C2vZC2LVBKLK','y2f0zwDVCNK','zMLUza','DgHmte0','CLHSrgW','ChbKyuK','txPYAuC','q291BNq','DxbKyxrLzef0','C0fhuuq','s3rUr3a','zNbwsvO','DMfSAwrHDgvxAq','zw1IzwrKAw5N','yMfZzty0','Aw5N','mteWzurQwgzI','CgfYC2u','BM93','teXnihzHBgLKyq','y0vnAu0','s2v5ihbHDhrLCG','BMf0DxjL','y29TCgXLDgu','ChvZAa','C3rHCNrZv2L0Aa','mJaYnxfItfbLvG','rNbiywu','v0X3Cw4','tMLszM8','BwvZC2fNzq','C291CMnLtwvTBW','ywrHDge','AxneDxbSAwnHDa','CMv2Awv3u2TPBa','Cgf0DgvYBG','BNrLBNq','y3jLyxrLtwvTBW','AuXlCgi','ELbcwvi','q3nOyKe','rvjsuw4','u2TPBgWGy3jLyq','zMLSBa','DxrMltG','q29UDgvUDa','AM9PBG','nJu5mtLot2H4ruO','zvnRAwXS','Aw1PBgfYig1LBq','zxH0CMfJDe1LDa','mJyYotzsufjmALC','zMLSDgvY','lI4VBgXTl2LUza','y3j5C3rHBgXPEG','tvfvvgO','CMLLCW','ntjSEvLIwve','B3jPzxm6','BgvHCM5PBMC','z0LIv28','DxDwrxG','y29UzMLN','DNPbBxm','C2TPBgXFAwq','zgrrvw8','CML0Eq','rgv0zxjTAw5Lia','zw5HyMXLza','C2TPBgXdB252zq','zvLoBu4','EfzWy2u','svvIBgW','BgXTvMfSAwrHDa','vM5dshO','sM9Usuq','BwLUuMvWzxrPDa','C3rYAw5NAwz5','rxzHBhvHDgLVBG','AhrPEgq','zNjVBq','quD4uM8','AvHRqxO','AxzYzKW','yNvPBgrtA2LSBa','Dg9tDhjPBMC','z1LLBxu','yxzLCMfNzuvTyG','y29UzMLKzw5Jzq','qxDACvu','z2v0vgLTzq','y2XHC3nPzNLdBW','BgfZDefJDgL2yq','AxPND0O','q1zdCKu','ywn0AxzHDgLVBG','q2f0zwDVCNK6ia','CMfNzvnPBwLSyq','DxnHyMXLihnRAq','u2fTCgXLig1LBq','w1nRAwXSxsa','C2v0','C2f2zuvTyMvKza','zdOG','tKznyLu','BgfZDefJy2vZCW','DgLTzw91Da','C2XPy2u','y2X1C3rLCK1LBq','DxbKyxrLtwvTBW','wgPcBvm','odq2vNv3DhrM','DgfNCW','C21wrKO','Dgf4B25VBxK6','C3bSAxq','t1DXBwO','BgWVCgf0DgvYBG'];_0x13ea=function(){return _0x48a736;};return _0x13ea();}function _0x1ac7ed(_0x2f525d,_0x79dc10){return _0x2094(_0x79dc10- -0x3c4,_0x2f525d);}(function(_0xb718e,_0x25bac7){const _0x67ee9e=_0xb718e();function _0x5d4bea(_0x16d855,_0x337448){return _0x2094(_0x16d855-0x242,_0x337448);}function _0x1c09a8(_0x19caab,_0x2f4454){return _0x2094(_0x19caab-0x6d,_0x2f4454);}while(!![]){try{const _0x5201ee=-parseInt(_0x5d4bea(0x402,0x3fd))/0x1+parseInt(_0x1c09a8(0x1be,0x1df))/0x2*(-parseInt(_0x1c09a8(0x21c,0x1e3))/0x3)+parseInt(_0x1c09a8(0x201,0x19e))/0x4+-parseInt(_0x1c09a8(0x225,0x21b))/0x5+-parseInt(_0x1c09a8(0x1f4,0x23c))/0x6*(-parseInt(_0x1c09a8(0x1b4,0x1fd))/0x7)+-parseInt(_0x5d4bea(0x38d,0x35c))/0x8*(parseInt(_0x1c09a8(0x26b,0x27b))/0x9)+-parseInt(_0x1c09a8(0x219,0x25a))/0xa*(-parseInt(_0x5d4bea(0x436,0x3f6))/0xb);if(_0x5201ee===_0x25bac7)break;else _0x67ee9e['push'](_0x67ee9e['shift']());}catch(_0x3905f4){_0x67ee9e['push'](_0x67ee9e['shift']());}}}(_0x13ea,0xbf792));import{randomUUID}from'node:crypto';import{cosineSimilarity}from'../extraction/similarity.js';function _0x2094(_0x457c7c,_0x12bca1){_0x457c7c=_0x457c7c-0x142;const _0x13ea5d=_0x13ea();let _0x2094bc=_0x13ea5d[_0x457c7c];if(_0x2094['yywSyY']===undefined){var _0x24c75a=function(_0x115bba){const _0x33f39a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x264c89='',_0x266c41='';for(let _0x8b658f=0x0,_0x2c49c9,_0x348df8,_0x4d2ba0=0x0;_0x348df8=_0x115bba['charAt'](_0x4d2ba0++);~_0x348df8&&(_0x2c49c9=_0x8b658f%0x4?_0x2c49c9*0x40+_0x348df8:_0x348df8,_0x8b658f++%0x4)?_0x264c89+=String['fromCharCode'](0xff&_0x2c49c9>>(-0x2*_0x8b658f&0x6)):0x0){_0x348df8=_0x33f39a['indexOf'](_0x348df8);}for(let _0x55138f=0x0,_0x2f5002=_0x264c89['length'];_0x55138f<_0x2f5002;_0x55138f++){_0x266c41+='%'+('00'+_0x264c89['charCodeAt'](_0x55138f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x266c41);};_0x2094['AbrkcS']=_0x24c75a,_0x2094['ENYxbr']={},_0x2094['yywSyY']=!![];}const _0x4f023c=_0x13ea5d[0x0],_0x1a8f4b=_0x457c7c+_0x4f023c,_0x39e4ee=_0x2094['ENYxbr'][_0x1a8f4b];return!_0x39e4ee?(_0x2094bc=_0x2094['AbrkcS'](_0x2094bc),_0x2094['ENYxbr'][_0x1a8f4b]=_0x2094bc):_0x2094bc=_0x39e4ee,_0x2094bc;}function _0x3bf241(_0x19d0a3,_0x44763b){return _0x2094(_0x44763b-0x2f9,_0x19d0a3);}export class SkillEvaluator{['db'];['config'];constructor(_0x5b3b49,_0x418951){function _0xe0e13b(_0x1423ac,_0x33d2be){return _0x2094(_0x1423ac- -0x113,_0x33d2be);}this['db']=_0x5b3b49,this[_0xe0e13b(0x43,0x10)]=_0x418951;}async['evaluate'](_0x186f47,_0x108a0b){const _0x493261={'KtnGp':function(_0x20af21,_0xb17dad){return _0x20af21===_0xb17dad;},'uwVEx':_0x3cf1e6(0x33e,0x394),'MQUTj':function(_0x43fa3f,_0x29f3f7){return _0x43fa3f<_0x29f3f7;},'JonID':function(_0x31772a,_0x1ed989){return _0x31772a-_0x1ed989;},'ERRQn':function(_0xcee1f7,_0x565821){return _0xcee1f7<_0x565821;},'cEMiM':function(_0x370936,_0x14aefb){return _0x370936-_0x14aefb;},'PYJfU':_0x3d5d26(-0x35,-0x4d),'iLKpb':function(_0x150f00,_0x28a685){return _0x150f00(_0x28a685);},'nHnkg':function(_0x231865,_0x53b54b){return _0x231865 instanceof _0x53b54b;}},_0x11252a=this['config']['skillConve'+_0x3cf1e6(0x3c2,0x375)];function _0x3cf1e6(_0x230762,_0x3e45d9){return _0x2094(_0x3e45d9-0x1ab,_0x230762);}function _0x3d5d26(_0x4fe04d,_0x25d368){return _0x2094(_0x4fe04d- -0x1a6,_0x25d368);}if(!_0x11252a?.[_0x3d5d26(-0x4a,-0x3b)])return{'candidates':[],'created':0x0,'skipped':0x0,'errors':[]};const _0x2154ee=[],_0x59b1bb=[];let _0x24fc1c=0x0,_0x4dcae9=0x0;try{if(_0x493261[_0x3cf1e6(0x3c5,0x399)](_0x493261[_0x3d5d26(-0x51,-0x64)],_0x3cf1e6(0x3f5,0x394))){const _0x548633=this['db'][_0x3cf1e6(0x324,0x371)+'es']({'limit':0x1f4,'projectPath':_0x186f47}),_0x2e7cf7=_0x548633[_0x3d5d26(-0x5a,-0x3a)](_0x22e1ca=>_0x22e1ca[_0x3d5d26(0x3f,0x4)]!==_0x3cf1e6(0x3a5,0x377)&&_0x22e1ca[_0x3cf1e6(0x3a4,0x39c)]&&_0x22e1ca[_0x3d5d26(0x4b,0x15)][_0x3cf1e6(0x37b,0x380)]>0x0);if(_0x493261[_0x3cf1e6(0x2e5,0x2fa)](_0x2e7cf7['length'],_0x11252a[_0x3cf1e6(0x2da,0x30f)+_0x3d5d26(0x1c,0x61)]))return{'candidates':_0x59b1bb,'created':_0x24fc1c,'skipped':_0x2e7cf7[_0x3cf1e6(0x354,0x380)],'errors':_0x2154ee};const _0xaeb70d=0x12c;let _0x36bfa0;if(_0x2e7cf7[_0x3cf1e6(0x3e3,0x380)]>_0xaeb70d){const _0x228c38=[..._0x2e7cf7][_0x3cf1e6(0x39b,0x35d)]((_0x504c29,_0x4614d8)=>new Date(_0x4614d8[_0x3d5d26(0x46,0x8f)])[_0x3d5d26(-0x34,-0x4)]()-new Date(_0x504c29[_0x3d5d26(0x46,0x17)])[_0x3cf1e6(0x345,0x31d)]()),_0x3f49a3=Math['floor'](_0xaeb70d*0.7),_0x5dcd21=_0xaeb70d-_0x3f49a3,_0x258d0a=_0x228c38[_0x3cf1e6(0x374,0x32e)](0x0,_0x3f49a3),_0x5aceb6=new Set(_0x258d0a['map'](_0x54dd4c=>_0x54dd4c['id'])),_0x58d3fc=_0x228c38['slice'](_0x3f49a3)['filter'](_0x47f07b=>!_0x5aceb6[_0x3d5d26(0x30,-0x5)](_0x47f07b['id'])),_0x403a5c=[];for(let _0x3d7e86=_0x493261[_0x3d5d26(-0x43,0x0)](_0x58d3fc[_0x3cf1e6(0x3b7,0x380)],0x1);_0x3d7e86>0x0&&_0x493261[_0x3d5d26(0x67,0xbb)](_0x403a5c[_0x3d5d26(0x2f,0x1e)],_0x5dcd21);_0x3d7e86--){const _0x128a0d=Math['floor'](Math['random']()*(_0x3d7e86+0x1));[_0x58d3fc[_0x3d7e86],_0x58d3fc[_0x128a0d]]=[_0x58d3fc[_0x128a0d],_0x58d3fc[_0x3d7e86]],_0x403a5c[_0x3d5d26(0x56,0x1e)](_0x58d3fc[_0x3d7e86]);}_0x36bfa0=[..._0x258d0a,..._0x403a5c];}else _0x36bfa0=_0x2e7cf7;const _0x40786c=this[_0x3d5d26(-0x22,-0x36)+_0x3cf1e6(0x377,0x364)](_0x36bfa0,_0x11252a[_0x3cf1e6(0x3a5,0x360)+'Threshold']),_0x99e4dd=_0x548633['filter'](_0x559269=>_0x559269[_0x3cf1e6(0x350,0x390)]===_0x3d5d26(0x26,0x89));let _0x412405=_0x493261[_0x3cf1e6(0x38f,0x3a3)](_0x11252a['maxSkills'],_0x99e4dd[_0x3d5d26(0x2f,0x3c)]);for(const _0x3a6f59 of _0x40786c){if(_0x412405<=0x0)break;const _0x25fcf7=this['evaluateCl'+_0x3cf1e6(0x33d,0x34d)](_0x3a6f59,_0x11252a[_0x3cf1e6(0x31f,0x30f)+_0x3cf1e6(0x3c7,0x36d)],_0x11252a['minConfide'+_0x3d5d26(0x31,0x54)]);if(!_0x25fcf7){_0x4dcae9+=_0x3a6f59['length'];continue;}const _0x42170e=this[_0x3d5d26(0x5f,0x3)+'eSkill'](_0x25fcf7,_0x99e4dd);if(_0x42170e){_0x4dcae9+=_0x3a6f59[_0x3d5d26(0x2f,-0x11)];continue;}_0x59b1bb['push'](_0x25fcf7);if(_0x11252a[_0x3cf1e6(0x33f,0x30c)+'ion']&&this[_0x3d5d26(-0x50,-0x1d)]['llm']?.[_0x3d5d26(-0x4a,-0x40)])try{if(_0x3cf1e6(0x2c0,0x31c)!==_0x493261['PYJfU'])return null;else{const _0x4d86c7=await this[_0x3d5d26(0x4a,0x83)+_0x3d5d26(0x41,-0x4)](_0x25fcf7);if(!_0x4d86c7){_0x4dcae9+=_0x3a6f59[_0x3cf1e6(0x3de,0x380)];continue;}}}catch(_0x33aa8e){_0x2154ee['push']('LLM\x20valida'+_0x3d5d26(0x2,0x1b)+_0x3d5d26(-0x27,-0x74)+(_0x33aa8e instanceof Error?_0x33aa8e[_0x3d5d26(0x5c,-0x8)]:String(_0x33aa8e)));}try{await this[_0x3cf1e6(0x327,0x37f)+_0x3d5d26(0x2a,-0x9)](_0x25fcf7,_0x108a0b),_0x24fc1c++,_0x412405--;}catch(_0x130c1e){_0x2154ee[_0x3d5d26(0x56,0x46)](_0x3d5d26(-0x64,-0x47)+'tion\x20faile'+_0x3d5d26(-0x27,-0x6d)+(_0x130c1e instanceof Error?_0x130c1e['message']:_0x493261[_0x3d5d26(0x64,0x9)](String,_0x130c1e)));}}}else{const _0x4e62d1=[];_0x4e62d1[_0x3d5d26(0x56,-0x5)](_0x3cf1e6(0x33b,0x327)+_0x561042['pattern']),_0x4e62d1['push'](''),_0x4e62d1[_0x3cf1e6(0x3c1,0x3a7)](_0x3d5d26(-0x2e,0x10)+_0x5ccfa8[_0x3cf1e6(0x376,0x390)]),_0x4e62d1['push'](_0x3cf1e6(0x3d4,0x38e)+_0x51abbc['sourceMemo'+'ries']['length']+_0x3d5d26(0x18,0x76)),_0x4e62d1['push'](_0x3cf1e6(0x3e5,0x388)+':\x20'+(_0x24bc54[_0x3cf1e6(0x2ec,0x31b)]*0x64)['toFixed'](0x0)+'%');if(_0x2e2e9a[_0x3d5d26(0x5d,0x95)+_0x3cf1e6(0x2b2,0x2fb)]['length']>0x1){_0x4e62d1[_0x3d5d26(0x56,0x38)](''),_0x4e62d1['push'](_0x3d5d26(0x53,0xa2)+_0x3cf1e6(0x35d,0x355));for(const _0x83161f of _0x121ae6[_0x3cf1e6(0x40d,0x3ae)+'ries'][_0x3cf1e6(0x36c,0x32e)](0x0,0x3)){const _0x129678=_0x83161f['content'][_0x3d5d26(-0x1b,-0x25)]('\x0a')[0x0][_0x3d5d26(-0x23,-0xb)](0x0,0x96);_0x4e62d1['push']('-\x20'+_0x129678);}}return _0x4e62d1[_0x3cf1e6(0x334,0x2f1)]('\x0a');}}catch(_0x351eef){_0x2154ee[_0x3cf1e6(0x409,0x3a7)](_0x3d5d26(-0x40,-0x47)+_0x3d5d26(0xd,-0x2b)+(_0x493261['nHnkg'](_0x351eef,Error)?_0x351eef[_0x3d5d26(0x5c,0xa)]:String(_0x351eef)));}return{'candidates':_0x59b1bb,'created':_0x24fc1c,'skipped':_0x4dcae9,'errors':_0x2154ee};}[_0x1ac7ed(-0x1e9,-0x240)+_0x3bf241(0x4b0,0x4b2)](_0x2115bb,_0x528f5d){function _0x33e29f(_0x7d9c4b,_0x50b6bd){return _0x1ac7ed(_0x50b6bd,_0x7d9c4b-0x218);}const _0x474ada=new Set(),_0x5b181f=[];for(const _0x55c358 of _0x2115bb){if(_0x474ada[_0xca987(0x578,0x562)](_0x55c358['id']))continue;if(!_0x55c358[_0xca987(0x593,0x569)])continue;const _0x29694e=[_0x55c358];_0x474ada['add'](_0x55c358['id']);for(const _0x3d40a2 of _0x2115bb){if(_0x474ada[_0x33e29f(0x2a,0x76)](_0x3d40a2['id']))continue;if(!_0x3d40a2[_0xca987(0x593,0x5c7)])continue;const _0x287029=cosineSimilarity(_0x55c358['embedding'],_0x3d40a2[_0xca987(0x593,0x5cc)]);_0x287029>=_0x528f5d&&(_0x29694e['push'](_0x3d40a2),_0x474ada[_0x33e29f(-0x11,0x15)](_0x3d40a2['id']));}_0x5b181f[_0xca987(0x59e,0x552)](_0x29694e);}function _0xca987(_0x55d4bc,_0x7b193a){return _0x1ac7ed(_0x7b193a,_0x55d4bc-0x766);}return _0x5b181f;}[_0x1ac7ed(-0x199,-0x1f9)+_0x3bf241(0x47a,0x49b)](_0x877efb,_0x346f5e,_0x1a05c6){const _0x583ad4={'vzAms':_0x115744(0x1dc,0x1d8),'FpHae':_0x115744(0x12e,0x170),'vBWQd':function(_0x3fff4c,_0x5046ce){return _0x3fff4c<_0x5046ce;},'hOnVs':function(_0x188819,_0x3c4e08){return _0x188819>=_0x3c4e08;},'FQizs':function(_0xea5539,_0x48ff06){return _0xea5539+_0x48ff06;},'jZoPC':function(_0x135101,_0x1eafc3){return _0x135101>=_0x1eafc3;},'liQCw':function(_0x5b736f,_0x583e32){return _0x5b736f===_0x583e32;},'JsNEo':_0x3cecd2(0x4ae,0x4b2),'MzriG':_0x3cecd2(0x492,0x44f),'FqqPj':function(_0xba854,_0x1b8612){return _0xba854<_0x1b8612;},'eYNmN':function(_0x73e244,_0x33b7bb){return _0x73e244/_0x33b7bb;},'rvPLM':function(_0x1df305,_0x239708){return _0x1df305+_0x239708;},'WYzGs':_0x3cecd2(0x460,0x475)+'ed'},_0xdb616e=0.5;if(_0x877efb[_0x115744(0x1bf,0x1fb)]<_0x346f5e)return null;const _0x473db0=this['computeAve'+_0x115744(0x163,0x13b)+_0x115744(0x144,0x128)](_0x877efb);if(_0x583ad4[_0x3cecd2(0x4b7,0x4da)](_0x473db0,0.75))return null;let _0x4675f2=_0x473db0;const _0x13aa2e=new Set(_0x877efb[_0x115744(0x1ca,0x1fa)](_0x2d9f11=>_0x2d9f11[_0x3cecd2(0x4f6,0x500)])[_0x115744(0x136,0xf5)](Boolean));_0x583ad4[_0x3cecd2(0x4b9,0x46b)](_0x13aa2e[_0x115744(0x1bb,0x178)],0x2)&&(_0x4675f2*=1.2);const _0x3e186c=new Map();for(const _0x36336b of _0x877efb){_0x3e186c[_0x115744(0x167,0x19f)](_0x36336b[_0x115744(0x1cf,0x16a)],_0x583ad4[_0x3cecd2(0x4c0,0x4b2)](_0x3e186c[_0x115744(0x1af,0x1bd)](_0x36336b[_0x115744(0x1cf,0x17e)])??0x0,0x1));}let _0x5bb6e6=_0x877efb[0x0][_0x3cecd2(0x4f7,0x4ee)],_0x3eda59=0x0;for(const [_0x456f27,_0x32b227]of _0x3e186c){_0x32b227>_0x3eda59&&(_0x3eda59=_0x32b227,_0x5bb6e6=_0x456f27);}function _0x3cecd2(_0x5a7949,_0x111a67){return _0x1ac7ed(_0x111a67,_0x5a7949-0x6d6);}_0x583ad4[_0x3cecd2(0x4b9,0x496)](_0x3eda59/_0x877efb[_0x115744(0x1bf,0x181)],0.5)&&(_0x4675f2*=1.1);_0x4675f2=Math['min'](_0x4675f2,0x1);if(_0x4675f2<_0xdb616e)return null;let _0x1653c8;const _0x514848=_0x877efb[_0x3cecd2(0x45e,0x476)](_0x3421f9=>_0x3421f9[_0x3cecd2(0x503,0x565)]&&_0x3421f9[_0x115744(0x1db,0x234)][_0x3cecd2(0x4e7,0x515)]>0x0);if(_0x583ad4[_0x3cecd2(0x4f1,0x4c0)](_0x514848[_0x3cecd2(0x4e7,0x4de)],0x2)){if(_0x583ad4[_0x115744(0x180,0x1c8)](_0x583ad4[_0x3cecd2(0x4b8,0x4b6)],_0x583ad4[_0x115744(0x1d4,0x230)]))_0xdcfa73=_0xcf4c4c;else{const _0x4e9e28=_0x514848[0x0][_0x115744(0x1db,0x182)]['length'],_0x10bf16=new Array(_0x4e9e28)[_0x115744(0x12d,0x140)](0x0);for(const _0x21ef72 of _0x514848){for(let _0xd01a8c=0x0;_0x583ad4['FqqPj'](_0xd01a8c,_0x4e9e28);_0xd01a8c++){_0x10bf16[_0xd01a8c]+=_0x583ad4[_0x3cecd2(0x470,0x477)](_0x21ef72['embedding'][_0xd01a8c],_0x514848['length']);}}let _0x5468fd=0x0,_0x3de46d=-0x1;for(let _0x3b8c45=0x0;_0x3b8c45<_0x514848[_0x115744(0x1bf,0x1ab)];_0x3b8c45++){if('FFGFL'==='FFGFL'){const _0x24f85d=cosineSimilarity(_0x10bf16,_0x514848[_0x3b8c45]['embedding']);_0x24f85d>_0x3de46d&&(_0x3de46d=_0x24f85d,_0x5468fd=_0x3b8c45);}else{const _0x3e2129=_0x3ce5c1['from'](_0x583166[_0x115744(0x16d,0x129)](0x5),_0x583ad4[_0x3cecd2(0x469,0x4ad)])[_0x115744(0x157,0x1a3)](_0x583ad4[_0x115744(0x1e9,0x213)]);return _0x4ae7b1['parse'](_0x3e2129);}}_0x1653c8=_0x514848[_0x5468fd][_0x115744(0x19e,0x139)][_0x3cecd2(0x495,0x4de)](0x0,0x1f4);}}else{const _0x286f5c=[..._0x877efb]['sort']((_0x3e605d,_0x14aa37)=>_0x14aa37[_0x3cecd2(0x4c6,0x515)][_0x115744(0x1bf,0x1e4)]-_0x3e605d[_0x115744(0x19e,0x1d5)][_0x3cecd2(0x4e7,0x4c1)]);_0x1653c8=_0x286f5c[0x0][_0x3cecd2(0x4c6,0x486)][_0x3cecd2(0x495,0x49d)](0x0,0x1f4);}const _0x49811c=new Map();for(const _0x254167 of _0x877efb){for(const _0xa7e7c1 of _0x254167[_0x3cecd2(0x49a,0x4a6)]){_0x49811c[_0x115744(0x167,0x1ca)](_0xa7e7c1,_0x583ad4[_0x115744(0x1bc,0x213)](_0x49811c[_0x115744(0x1af,0x187)](_0xa7e7c1)??0x0,0x1));}}const _0x571993=Array['from'](_0x49811c[_0x115744(0x18d,0x145)]())[_0x3cecd2(0x45e,0x4a9)](([,_0x41eaa2])=>_0x41eaa2>=0x2)['map'](([_0x392002])=>_0x392002);function _0x115744(_0x3d6f73,_0x4ebbab){return _0x1ac7ed(_0x4ebbab,_0x3d6f73-0x3ae);}return{'clusterId':randomUUID(),'sourceMemories':_0x877efb,'category':_0x5bb6e6,'confidence':_0x4675f2,'pattern':_0x1653c8,'tags':[..._0x571993,_0x115744(0x1b6,0x1f2),_0x583ad4[_0x115744(0x1a7,0x1c5)]]};}async[_0x1ac7ed(-0x1f5,-0x1d4)+'thLLM'](_0x1dd49f){function _0x539dcf(_0x201df8,_0x52bdbc){return _0x1ac7ed(_0x52bdbc,_0x201df8-0x6eb);}function _0x1f9899(_0x2660b5,_0x1a506a){return _0x1ac7ed(_0x1a506a,_0x2660b5-0x4e9);}const _0x119cf5={'CshbA':_0x539dcf(0x474,0x496)+'ex.js','XDlLR':_0x539dcf(0x4b9,0x464)+_0x1f9899(0x2b3,0x2e2)+_0x1f9899(0x2e0,0x331)+'rue/false,'+_0x1f9899(0x2c3,0x2e7)+'ce\x22:\x200.0-1'+_0x1f9899(0x301,0x2be),'izgwJ':function(_0x5bfdd4,_0x3ff6a5){return _0x5bfdd4===_0x3ff6a5;},'aJWlv':function(_0xca10cd,_0x1b6e3f){return _0xca10cd(_0x1b6e3f);},'gYemu':_0x1f9899(0x2f3,0x29a)+'ed','fpVIZ':function(_0xc373a7,_0x4d1d15){return _0xc373a7===_0x4d1d15;},'rXlDl':_0x1f9899(0x2b5,0x2fd)};try{const {createLLMClient:_0x3d0c86}=await import(_0x119cf5[_0x1f9899(0x331,0x2ee)]),_0x22103d=_0x3d0c86(this[_0x539dcf(0x47d,0x489)][_0x539dcf(0x4eb,0x532)]),_0x3a9fc3=[_0x1f9899(0x280,0x263)+_0x1f9899(0x2ba,0x299)+_0x1f9899(0x26e,0x26a)+_0x1f9899(0x2b8,0x313)+_0x539dcf(0x4c8,0x4a0)+_0x1f9899(0x29f,0x2c5)+_0x539dcf(0x4b4,0x496)+'.',_0x119cf5[_0x1f9899(0x2e1,0x31e)],'',_0x539dcf(0x49f,0x48b)+_0x1dd49f[_0x539dcf(0x50c,0x562)],'Pattern:\x20'+_0x1dd49f[_0x1f9899(0x32c,0x363)],_0x1f9899(0x2e4,0x337)+_0x539dcf(0x4d7,0x4bc)+_0x1dd49f[_0x1f9899(0x328,0x34a)+'ries'][_0x539dcf(0x4fc,0x516)],'',_0x539dcf(0x4a2,0x483)+_0x539dcf(0x479,0x486),..._0x1dd49f[_0x1f9899(0x328,0x2eb)+_0x1f9899(0x275,0x2c9)]['slice'](0x0,0x3)[_0x539dcf(0x507,0x4bc)]((_0x9bc623,_0x2af354)=>_0x2af354+0x1+'.\x20'+_0x9bc623[_0x539dcf(0x4db,0x4b4)][_0x539dcf(0x4aa,0x48a)](0x0,0xc8))][_0x539dcf(0x46d,0x4cd)]('\x0a'),_0x1cb2ec=await _0x22103d[_0x539dcf(0x522,0x586)](_0x3a9fc3),_0x23ab90=JSON['parse'](_0x1cb2ec);return _0x119cf5[_0x1f9899(0x29a,0x278)](_0x23ab90[_0x1f9899(0x2f2,0x299)],!![])&&(_0x23ab90[_0x1f9899(0x295,0x2ea)]??0x0)>=(this[_0x539dcf(0x47d,0x450)][_0x1f9899(0x282,0x27c)+_0x539dcf(0x4f1,0x53b)]?.['minConfide'+_0x539dcf(0x4fe,0x54f)]??0.7);}catch(_0x4d9eb9){const _0x5c8361=_0x4d9eb9 instanceof Error?_0x4d9eb9['message']:_0x119cf5['aJWlv'](String,_0x4d9eb9);if(_0x5c8361[_0x539dcf(0x4b6,0x4f4)](_0x1f9899(0x2a7,0x2a9))||_0x5c8361[_0x539dcf(0x4b6,0x49e)](_0x539dcf(0x4de,0x47e)+'ED')||_0x5c8361['includes'](_0x119cf5[_0x539dcf(0x495,0x4ce)]))return _0x119cf5[_0x1f9899(0x314,0x338)](_0x539dcf(0x4b7,0x463),_0x119cf5[_0x1f9899(0x30d,0x32e)])?![]:{'candidates':_0x456819,'created':_0x196946,'skipped':_0x46a94c[_0x1f9899(0x2fa,0x30c)],'errors':_0x4d9a94};return![];}}async[_0x3bf241(0x504,0x4cd)+'Skill'](_0x247841,_0x1d4572){const _0x30a1e4={'QqZUn':function(_0x28c83a,_0x21b475){return _0x28c83a instanceof _0x21b475;},'sAGQD':function(_0x9f1319,_0x4e6fea){return _0x9f1319+_0x4e6fea;},'XUpfF':function(_0x28d0bf,_0x2a2b42){return _0x28d0bf*_0x2a2b42;},'biaXv':_0x175694(0x3ae,0x37b),'lllNG':_0x175694(0x388,0x3ac),'iXkAz':_0x175694(0x39e,0x366),'BYBWu':function(_0x4ea392,_0x24687e){return _0x4ea392!==_0x24687e;},'zPBYR':_0xac48ef(0x6a,0x65)},_0x43809b=new Date()[_0xac48ef(0x9f,0xcd)+'g'](),_0x38f007=new Date(_0x30a1e4[_0xac48ef(0xe1,0x13c)](Date['now'](),_0x30a1e4[_0x175694(0x38b,0x34d)]((this[_0x175694(0x312,0x2d0)][_0x175694(0x319,0x2f0)+'rsion']?.[_0x175694(0x369,0x3be)+'eDays']??0x5a)*0x18*0x3c*0x3c,0x3e8)))[_0x175694(0x367,0x363)+'g'](),_0x265db6=this['buildSkill'+_0x175694(0x301,0x324)](_0x247841);function _0xac48ef(_0x46eb4b,_0x96a23){return _0x3bf241(_0x96a23,_0x46eb4b- -0x405);}let _0x134eb3=null;function _0x175694(_0x13d818,_0x29c7ca){return _0x3bf241(_0x29c7ca,_0x13d818- -0x13d);}if(_0x1d4572)try{_0x134eb3=await _0x1d4572[_0xac48ef(0x67,0x6)+_0x175694(0x3c4,0x41f)]({'content':_0x247841[_0xac48ef(0xfb,0x10f)],'tags':_0x247841[_0xac48ef(0x7c,0x16)][_0x175694(0x308,0x309)](_0x1ed9fe=>!_0x1ed9fe[_0xac48ef(0xf1,0x9d)](_0xac48ef(0xa5,0x68))&&_0x1ed9fe!=='skill'&&_0x1ed9fe!==_0x175694(0x30a,0x2f9)+'ed'),'category':_0x247841[_0xac48ef(0xd9,0xd7)]});}catch{}const _0xe5abb8={'sourceMemoryIds':_0x247841['sourceMemo'+'ries'][_0xac48ef(0xd4,0x102)](_0x4648c9=>_0x4648c9['id']),'crystallizedAt':_0x43809b,'confidence':_0x247841['confidence'],'reviewDueAt':_0x38f007,'activationCount':0x0,..._0x134eb3&&{'taxonomyDomain':_0x134eb3[_0xac48ef(0xc7,0x117)],'taxonomySkillId':_0x134eb3[_0x175694(0x314,0x309)]??undefined,'taxonomyNature':_0x134eb3[_0x175694(0x3b6,0x389)]??undefined,'taxonomyStability':_0x134eb3[_0xac48ef(0x98,0xf9)]??undefined,'taxonomyConfidence':_0x134eb3[_0xac48ef(0x64,0x3)]}},_0x407a99='meta:'+Buffer[_0xac48ef(0x5c,0x6)](JSON[_0x175694(0x321,0x364)](_0xe5abb8))[_0x175694(0x329,0x33a)](_0x30a1e4[_0xac48ef(0xcc,0x6f)]),_0xe078db=[];_0x134eb3&&(_0xe078db[_0x175694(0x3b8,0x3ff)](_0xac48ef(0x7e,0x87)+_0x134eb3['domain']),_0x134eb3[_0x175694(0x314,0x36d)]&&_0xe078db[_0xac48ef(0xf0,0x130)]('taxonomy:'+_0x134eb3[_0xac48ef(0x4c,0x45)]),_0x134eb3[_0xac48ef(0xee,0x10a)]&&_0xe078db['push'](_0x175694(0x39d,0x378)+_0x134eb3['nature']));const _0x127d98=this['db'][_0xac48ef(0xfd,0xa1)+'ry']({'content':_0x265db6,'category':_0x30a1e4['lllNG'],'tier':_0x30a1e4[_0xac48ef(0x5e,0xb0)],'tags':[..._0x247841[_0x175694(0x344,0x334)],..._0xe078db,_0x407a99],'projectPath':_0x247841[_0xac48ef(0xf7,0x103)+_0xac48ef(0x44,0x44)][0x0]?.['projectPat'+'h']}),_0x37f7d4=_0x247841[_0x175694(0x3bf,0x3d0)+_0xac48ef(0x44,0x6c)][_0xac48ef(0xd4,0xe5)](_0x481b12=>_0x481b12[_0xac48ef(0xe5,0x10e)])[_0xac48ef(0x40,0xe)](_0x2f59d0=>!!_0x2f59d0&&_0x2f59d0[_0x175694(0x391,0x368)]>0x0);if(_0x37f7d4[_0x175694(0x391,0x381)]>0x0){if(_0x30a1e4['BYBWu']('HmBMw',_0x30a1e4[_0x175694(0x3c7,0x3e6)])){const _0x526956=this[_0x175694(0x32b,0x34d)+'eddings'](_0x37f7d4);this['db'][_0x175694(0x33a,0x304)+_0x175694(0x3af,0x356)](_0x127d98['id'],_0x526956);}else _0x39cba3[_0xac48ef(0xf0,0x10d)](_0xac48ef(0xeb,0x9f)+_0x175694(0x364,0x3b8)+_0xac48ef(0x73,0xa7)+(dEsvJv[_0x175694(0x35b,0x332)](_0x5ba78e,_0x1212c5)?_0x45616b[_0x175694(0x3be,0x3e9)]:_0x3b8554(_0x2a56a7)));}return _0x127d98;}[_0x1ac7ed(-0x166,-0x1be)+'ls'](){const _0x121981={'NmxhK':function(_0x3b5032,_0xa75da8){return _0x3b5032 instanceof _0xa75da8;},'VLCld':function(_0x12bd1c,_0x3d5bd8){return _0x12bd1c(_0x3d5bd8);},'wOxRL':_0x1e6925(0x3ef,0x3f6)+'ED','fpmbh':_0x1e6925(0x404,0x40b),'htixd':'HtFXS','IbjBV':_0x2df914(0xc4,0xb5),'GHYQS':function(_0x45115c,_0x5144d2){return _0x45115c!==_0x5144d2;},'AGxRo':'KBnjQ','qIrQx':function(_0x3ded32,_0x1e1270){return _0x3ded32+_0x1e1270;},'NiRfo':function(_0x165432,_0x288fca){return _0x165432*_0x288fca;}},_0x4bd282=new Date();function _0x1e6925(_0x23c70f,_0x472605){return _0x1ac7ed(_0x23c70f,_0x472605-0x603);}let _0xaa08c9=0x0,_0x1172bc=0x0,_0x5b1516=0x0;function _0x2df914(_0x4812e7,_0x3c3b32){return _0x1ac7ed(_0x4812e7,_0x3c3b32-0x326);}const _0x4102e1=this['db'][_0x1e6925(0x3f3,0x405)+'es']({'category':_0x121981['fpmbh'],'limit':0x3e8});for(const _0x27769a of _0x4102e1){_0xaa08c9++;const _0x5dc6a1=this[_0x2df914(0x91,0xac)+'adata'](_0x27769a);if(!_0x5dc6a1)continue;const _0x5b9b89=new Date(_0x5dc6a1[_0x1e6925(0x3f8,0x402)+'t']);if(_0x4bd282<_0x5b9b89)continue;if(_0x27769a[_0x2df914(0x13f,0xff)+'t']<0x2){if(_0x121981[_0x2df914(0x96,0xc9)]===_0x1e6925(0x419,0x3c5)){const _0x48cc62=_0x1089bc['content'][_0x2df914(0xd3,0xed)]('\x0a')[0x0][_0x2df914(0xac,0xe5)](0x0,0x96);_0x453ac7[_0x2df914(0x19a,0x15e)]('-\x20'+_0x48cc62);}else this['db'][_0x2df914(0x138,0xe7)+'ry'](_0x27769a['id'],{'category':_0x121981[_0x1e6925(0x3ee,0x3d7)],'tags':_0x27769a[_0x2df914(0x10b,0xea)][_0x1e6925(0x3b8,0x38b)](_0x149bf=>!_0x149bf['startsWith'](_0x2df914(0x11f,0x113))&&_0x149bf!==_0x2df914(0x15b,0x12e)&&_0x149bf!==_0x1e6925(0x349,0x38d)+'ed')}),_0x1172bc++;}else{if(_0x121981[_0x1e6925(0x3ad,0x3f5)](_0x121981[_0x1e6925(0x362,0x3a8)],_0x2df914(0xfe,0xc4))){const _0x32f267=new Date(_0x121981[_0x1e6925(0x3c3,0x3e8)](Date[_0x2df914(0x136,0x158)](),_0x121981[_0x1e6925(0x46c,0x440)](_0x121981['NiRfo'](this[_0x2df914(0xb3,0xb8)]['skillConve'+'rsion']?.['reviewCycl'+_0x1e6925(0x3ee,0x3f9)]??0x5a,0x18)*0x3c,0x3c)*0x3e8))[_0x2df914(0x16d,0x10d)+'g'](),_0x2ff5b3={..._0x5dc6a1,'reviewDueAt':_0x32f267,'activationCount':_0x27769a[_0x1e6925(0x416,0x3dc)+'t'],'lastActivatedAt':_0x27769a[_0x2df914(0x123,0xe3)+_0x2df914(0x134,0xfc)]},_0x497f35='meta:'+Buffer[_0x2df914(0x6e,0xca)](JSON[_0x1e6925(0x3b3,0x3a4)](_0x2ff5b3))[_0x2df914(0xf9,0xcf)](_0x2df914(0x1ad,0x154)),_0x3283ad=_0x27769a[_0x1e6925(0x3c1,0x3c7)][_0x2df914(0xf4,0xae)](_0x54a4c6=>!_0x54a4c6['startsWith']('meta:'));_0x3283ad[_0x2df914(0x120,0x15e)](_0x497f35),this['db']['updateMemo'+'ry'](_0x27769a['id'],{'tags':_0x3283ad}),_0x5b1516++;}else{const _0x332299=yAPVym[_0x1e6925(0x3a2,0x407)](_0x158170,_0x5a2cce)?_0xc97fc0[_0x2df914(0x142,0x164)]:yAPVym[_0x1e6925(0x425,0x419)](_0x4374c4,_0x2656fd);if(_0x332299['includes'](_0x2df914(0xee,0xe4))||_0x332299[_0x2df914(0xcc,0xf1)](yAPVym[_0x1e6925(0x3d9,0x418)])||_0x332299['includes'](_0x1e6925(0x400,0x40d)+'ed'))return![];return![];}}}return{'reviewed':_0xaa08c9,'demoted':_0x1172bc,'renewed':_0x5b1516};}['computeAve'+_0x1ac7ed(-0x29e,-0x24b)+_0x1ac7ed(-0x2a2,-0x26a)](_0x326413){function _0x5d2212(_0x1a853a,_0x496f0e){return _0x3bf241(_0x1a853a,_0x496f0e- -0x125);}const _0x56c6ad={'IUbll':function(_0x4b4b47,_0x436dad){return _0x4b4b47<_0x436dad;},'ddQUo':function(_0x404ed9,_0x443085,_0x5bbdd5){return _0x404ed9(_0x443085,_0x5bbdd5);},'WLwqn':function(_0x362aaa,_0x2b8368){return _0x362aaa/_0x2b8368;}};function _0x8914aa(_0x4dcc77,_0x230330){return _0x3bf241(_0x230330,_0x4dcc77- -0x1ff);}if(_0x56c6ad[_0x8914aa(0x25a,0x26d)](_0x326413[_0x8914aa(0x2cf,0x2dc)],0x2))return 0x1;let _0x256cb7=0x0,_0x195b78=0x0;for(let _0x806fe7=0x0;_0x806fe7<_0x326413[_0x5d2212(0x3fb,0x3a9)];_0x806fe7++){for(let _0x28887c=_0x806fe7+0x1;_0x28887c<_0x326413[_0x8914aa(0x2cf,0x273)];_0x28887c++){_0x326413[_0x806fe7][_0x8914aa(0x2eb,0x315)]&&_0x326413[_0x28887c][_0x5d2212(0x40b,0x3c5)]&&(_0x256cb7+=_0x56c6ad[_0x8914aa(0x253,0x29f)](cosineSimilarity,_0x326413[_0x806fe7]['embedding'],_0x326413[_0x28887c][_0x5d2212(0x3ed,0x3c5)]),_0x195b78++);}}return _0x195b78>0x0?_0x56c6ad[_0x8914aa(0x2fa,0x2ea)](_0x256cb7,_0x195b78):0x0;}[_0x1ac7ed(-0x1fc,-0x1bf)+_0x1ac7ed(-0x295,-0x27c)](_0x59b115,_0x415071){const _0x23dbce={'xdNFS':function(_0x21f525,_0x8f317b){return _0x21f525/_0x8f317b;}};function _0x238faf(_0x2702e6,_0x538898){return _0x1ac7ed(_0x538898,_0x2702e6-0x5fd);}const _0x3464c2=new Set(_0x59b115[_0x551bdb(0x17a,0x190)+_0x238faf(0x389,0x374)]['map'](_0x5d7851=>_0x5d7851['id']));for(const _0x5d71d3 of _0x415071){const _0x360a50=this['extractMet'+_0x551bdb(0x1bd,0x191)](_0x5d71d3);if(!_0x360a50)continue;const _0x31fad6=new Set(_0x360a50[_0x551bdb(0x1a1,0x190)+_0x238faf(0x3d0,0x3d4)]),_0x20bc57=[..._0x3464c2][_0x551bdb(0x13e,0xd9)](_0x106919=>_0x31fad6[_0x551bdb(0x12a,0x163)](_0x106919))[_0x551bdb(0x184,0x162)],_0x1bf3fc=_0x23dbce[_0x238faf(0x3d2,0x3bb)](_0x20bc57,Math['max'](_0x3464c2['size'],_0x31fad6[_0x238faf(0x40a,0x438)]));if(_0x1bf3fc>=0.7)return!![];}function _0x551bdb(_0x38bb7c,_0x280e92){return _0x1ac7ed(_0x38bb7c,_0x280e92-0x351);}return![];}[_0x1ac7ed(-0x276,-0x258)+_0x3bf241(0x3dd,0x43e)](_0x28e7d2){const _0x4e78d7={'tZagU':function(_0x3b35ef,_0x2cc08f){return _0x3b35ef*_0x2cc08f;}},_0x1457fb=[];_0x1457fb[_0x2c17bc(0x39d,0x403)](_0x1a6477(-0x1d1,-0x1a1)+_0x28e7d2[_0x2c17bc(0x3a8,0x3d2)]),_0x1457fb[_0x2c17bc(0x39d,0x381)](''),_0x1457fb[_0x1a6477(-0x151,-0x110)](_0x2c17bc(0x319,0x2eb)+_0x28e7d2['category']),_0x1457fb['push'](_0x1a6477(-0x16a,-0x1c1)+_0x28e7d2[_0x2c17bc(0x3a4,0x382)+_0x2c17bc(0x2f1,0x343)][_0x2c17bc(0x376,0x398)]+'\x20memories'),_0x1457fb[_0x2c17bc(0x39d,0x35c)]('Confidence'+':\x20'+_0x4e78d7[_0x2c17bc(0x362,0x3a3)](_0x28e7d2[_0x2c17bc(0x311,0x2dc)],0x64)['toFixed'](0x0)+'%');function _0x1a6477(_0x5e24a4,_0x4311ed){return _0x1ac7ed(_0x4311ed,_0x5e24a4-0x77);}function _0x2c17bc(_0x4902d5,_0x51a875){return _0x1ac7ed(_0x51a875,_0x4902d5-0x565);}if(_0x28e7d2[_0x1a6477(-0x14a,-0x12a)+_0x2c17bc(0x2f1,0x28e)][_0x2c17bc(0x376,0x383)]>0x1){_0x1457fb[_0x1a6477(-0x151,-0x1a5)](''),_0x1457fb[_0x1a6477(-0x151,-0x121)]('Key\x20patter'+_0x2c17bc(0x34b,0x3a1));for(const _0x3fb208 of _0x28e7d2[_0x2c17bc(0x3a4,0x353)+_0x1a6477(-0x1fd,-0x1aa)][_0x2c17bc(0x324,0x33b)](0x0,0x3)){const _0x578ff5=_0x3fb208[_0x1a6477(-0x199,-0x1fc)][_0x1a6477(-0x1c2,-0x193)]('\x0a')[0x0][_0x2c17bc(0x324,0x31e)](0x0,0x96);_0x1457fb[_0x2c17bc(0x39d,0x385)]('-\x20'+_0x578ff5);}}return _0x1457fb[_0x2c17bc(0x2e7,0x304)]('\x0a');}['extractMet'+_0x1ac7ed(-0x16e,-0x1c0)](_0x11caab){function _0x43d8a9(_0x2a9d09,_0x5e62af){return _0x1ac7ed(_0x2a9d09,_0x5e62af-0x47d);}const _0x22d967={'xVpce':'base64','gBiFK':_0x43d8a9(0x1dc,0x1fd)};function _0x58e26b(_0x30c9c4,_0x5a8576){return _0x1ac7ed(_0x30c9c4,_0x5a8576-0x6e4);}const _0x147a9a=_0x11caab[_0x43d8a9(0x241,0x241)][_0x43d8a9(0x2ad,0x29f)](_0x6f8b50=>_0x6f8b50['startsWith'](_0x43d8a9(0x23c,0x26a)));if(!_0x147a9a)return null;try{const _0x52c2f9=Buffer[_0x58e26b(0x465,0x488)](_0x147a9a[_0x58e26b(0x46b,0x4a3)](0x5),_0x22d967[_0x43d8a9(0x207,0x218)])[_0x58e26b(0x4f0,0x48d)](_0x22d967['gBiFK']);return JSON[_0x43d8a9(0x2bc,0x2ae)](_0x52c2f9);}catch{return null;}}[_0x3bf241(0x44d,0x468)+'eddings'](_0x3ecc7a){const _0x2ff87a={'smVFJ':function(_0x1857df,_0x1402f2){return _0x1857df<_0x1402f2;}};if(_0x3ecc7a[_0x4e04e6(-0x160,-0x161)]===0x0)return[];const _0x4c872c=_0x3ecc7a[0x0][_0xd0e43(-0x10b,-0x120)],_0x4f2cc6=new Array(_0x4c872c)[_0x4e04e6(-0x248,-0x1f3)](0x0);for(const _0x459edf of _0x3ecc7a){for(let _0x17bf98=0x0;_0x2ff87a[_0xd0e43(-0x157,-0x155)](_0x17bf98,_0x4c872c);_0x17bf98++){_0x4f2cc6[_0x17bf98]+=_0x459edf[_0x17bf98];}}function _0x4e04e6(_0x34b352,_0x380081){return _0x1ac7ed(_0x34b352,_0x380081-0x8e);}for(let _0x368d8d=0x0;_0x368d8d<_0x4c872c;_0x368d8d++){_0x4f2cc6[_0x368d8d]/=_0x3ecc7a[_0x4e04e6(-0x171,-0x161)];}function _0xd0e43(_0x546c2a,_0x2f64a8){return _0x1ac7ed(_0x2f64a8,_0x546c2a-0xe4);}return _0x4f2cc6;}[_0x3bf241(0x4d2,0x4d7)+'Skill'](_0xbdc3b5){function _0x4400aa(_0x24b29c,_0x5239cd){return _0x3bf241(_0x24b29c,_0x5239cd- -0x3ce);}function _0x262489(_0x25ce17,_0x182cba){return _0x3bf241(_0x182cba,_0x25ce17- -0x646);}const _0x19b4fb={'neeox':'skill','wobsL':function(_0x5cfb90,_0x170208){return _0x5cfb90<_0x170208;},'ivrfL':_0x262489(-0x1f9,-0x1c4),'PqixT':function(_0x2f0c26,_0x54f66c){return _0x2f0c26+_0x54f66c;}};if(!_0xbdc3b5[_0x262489(-0x15c,-0x115)]||_0xbdc3b5[_0x262489(-0x168,-0x14f)]===_0x19b4fb[_0x4400aa(0x9b,0xbc)])return{'absorbed':![]};const _0x1dd4aa=this['db'][_0x4400aa(0x147,0xf1)+'es']({'limit':0xc8})[_0x4400aa(0x70,0x77)](_0x375c03=>_0x375c03[_0x4400aa(0xf8,0x110)]===_0x262489(-0x181,-0x19e));for(const _0x1e7adb of _0x1dd4aa){if(!_0x1e7adb['embedding'])continue;const _0x5a47d8=cosineSimilarity(_0xbdc3b5['embedding'],_0x1e7adb[_0x4400aa(0x158,0x11c)]);if(_0x19b4fb['wobsL'](_0x5a47d8,0.8))continue;const _0x358434=this[_0x262489(-0x203,-0x1be)+'adata'](_0x1e7adb);if(!_0x358434)continue;if(_0x358434['sourceMemo'+'ryIds'][_0x4400aa(0x7e,0xba)](_0xbdc3b5['id'])){if(_0x262489(-0x1c1,-0x1d3)===_0x19b4fb[_0x262489(-0x1e2,-0x1ce)])_0x3706c3=_0x52a1a6,_0x23a2d8=_0x2b70aa;else return{'absorbed':![]};}_0x358434[_0x4400aa(0xde,0x12e)+_0x4400aa(0x9a,0xc2)][_0x262489(-0x151,-0xef)](_0xbdc3b5['id']),_0x358434['activation'+_0x4400aa(0x154,0x116)]=_0x19b4fb[_0x4400aa(0xe2,0x106)](_0x358434[_0x262489(-0x1d6,-0x18e)+'Count']||0x0,0x1),_0x358434[_0x262489(-0x1d9,-0x1e7)+_0x4400aa(0xed,0xf4)]=new Date()[_0x4400aa(0x7c,0xd6)+'g']();const _0x2b76ca=_0x4400aa(0x7f,0xdc)+Buffer[_0x262489(-0x1e5,-0x1c3)](JSON['stringify'](_0x358434))[_0x262489(-0x1e0,-0x223)](_0x4400aa(0xb7,0x11d)),_0x440787=_0x1e7adb[_0x262489(-0x1c5,-0x1af)]['filter'](_0x57dfe2=>!_0x57dfe2[_0x262489(-0x150,-0x19e)](_0x262489(-0x19c,-0x196))),_0x133845='-\x20'+_0xbdc3b5['content'][_0x262489(-0x1c2,-0x216)]('\x0a')[0x0][_0x262489(-0x1ca,-0x223)](0x0,0x96);let _0x59978d=_0x1e7adb[_0x4400aa(0xd4,0xdf)];const _0x6bad6b=_0x59978d[_0x262489(-0x1c2,-0x209)]('\x0a')['filter'](_0x1ca32f=>_0x1ca32f[_0x262489(-0x150,-0x11b)]('-\x20'));return _0x19b4fb[_0x4400aa(0xeb,0xf2)](_0x6bad6b[_0x262489(-0x178,-0x192)],0x5)&&(_0x59978d=_0x59978d[_0x262489(-0x1ad,-0x1f6)]()+'\x0a'+_0x133845),this['db']['updateMemo'+'ry'](_0x1e7adb['id'],{'content':_0x59978d,'tags':[..._0x440787,_0x2b76ca]}),{'absorbed':!![],'skillId':_0x1e7adb['id']};}return{'absorbed':![]};}}
|
package/dist/skill/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x782dc6,_0x34d2e9){var _0x126c32=_0x782dc6();function _0x1449c5(_0x14e6b6,_0x29940f){return _0x92cb(_0x29940f- -0x24c,_0x14e6b6);}function _0x27415b(_0x4dbd38,_0x3954f6){return _0x92cb(_0x3954f6-0x385,_0x4dbd38);}while(!![]){try{var _0x523c2f=-parseInt(_0x27415b(0x555,0x559))/0x1+-parseInt(_0x1449c5(-0x7d,-0x7a))/0x2*(-parseInt(_0x27415b(0x55c,0x55d))/0x3)+parseInt(_0x1449c5(-0x72,-0x73))/0x4*(-parseInt(_0x27415b(0x55f,0x55b))/0x5)+-parseInt(_0x27415b(0x556,0x558))/0x6+parseInt(_0x27415b(0x558,0x55a))/0x7+-parseInt(_0x1449c5(-0x77,-0x72))/0x8+parseInt(_0x1449c5(-0x76,-0x75))/0x9;if(_0x523c2f===_0x34d2e9)break;else _0x126c32['push'](_0x126c32['shift']());}catch(_0x12476b){_0x126c32['push'](_0x126c32['shift']());}}}(_0x3134,0x2ac3a));function _0x3134(){var _0x37a1c1=['nuXyB01oua','mJK0ndu4nhH3B2vyvG','mZy5mdLZu3Pbv08','mtm5mZm2BvntyvzZ','mtaWnte4nhj2vuvztW','mJjpAeXxtLm','mte0odqXmMDdy1DbCW','mtKWndq2Ag5JsvPw','mtC4ndG4muvfC1vZAq'];_0x3134=function(){return _0x37a1c1;};return _0x3134();}function _0x92cb(_0x24286d,_0x29afeb){_0x24286d=_0x24286d-0x1d2;var _0x3134ee=_0x3134();var _0x92cb76=_0x3134ee[_0x24286d];if(_0x92cb['kyUPrT']===undefined){var _0xa1b8b8=function(_0x4b0259){var _0x235af4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x7f9285='',_0x15c4d5='';for(var _0x421b6f=0x0,_0x2af293,_0x15a384,_0x526438=0x0;_0x15a384=_0x4b0259['charAt'](_0x526438++);~_0x15a384&&(_0x2af293=_0x421b6f%0x4?_0x2af293*0x40+_0x15a384:_0x15a384,_0x421b6f++%0x4)?_0x7f9285+=String['fromCharCode'](0xff&_0x2af293>>(-0x2*_0x421b6f&0x6)):0x0){_0x15a384=_0x235af4['indexOf'](_0x15a384);}for(var _0x1e967b=0x0,_0x2566b5=_0x7f9285['length'];_0x1e967b<_0x2566b5;_0x1e967b++){_0x15c4d5+='%'+('00'+_0x7f9285['charCodeAt'](_0x1e967b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x15c4d5);};_0x92cb['yYxSUB']=_0xa1b8b8,_0x92cb['uRbwTV']={},_0x92cb['kyUPrT']=!![];}var _0xf3f3a5=_0x3134ee[0x0],_0x13be83=_0x24286d+_0xf3f3a5,_0x14c235=_0x92cb['uRbwTV'][_0x13be83];return!_0x14c235?(_0x92cb76=_0x92cb['yYxSUB'](_0x92cb76),_0x92cb['uRbwTV'][_0x13be83]=_0x92cb76):_0x92cb76=_0x14c235,_0x92cb76;}export{SkillEvaluator}from'./evaluator.js';
|
package/dist/sync/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xb7de(){const _0x56e23a=['DxrMltG','BNrLBNq','zM9Yy2vnzw1VCG','Bw9YAwvZl2fZCW','l2fWAs92ms90CG','CvPNu1K','yw5ZzMvYl2LTCa','wNzoBve','Bvzzv3e','Bw9YAwvZ','y3jLyxrLq29UDa','tLjnELO','Eg9UB215l2nSyq','Dg90ywXFBM9Kzq','7jwu7zI47zMuio2cPoUkLcaZmIa','s3PJAgC','zgv0ywLS','t0PsBue','nZa0nJy4BujbBfbe','ywDLlMPZB24','B1vRv3q','Egvhsfa','C2XPy2u','ue9tva','twvTB3jPzxm','yw5HBhL6zuvTBW','yw5ZzMvYl2HPCW','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','qwjVCNrfCNjVCG','B3j5','ieTLEEULVcdTMzxSNBJTLzJSHlG','DMvYC2LVBG','txjJvxq','mtC4nJuYmgP2y1fAvG','Dg9YEt8','CMnO','revmrvrf','y2XHC3nPzNLdBW','zfjKvuu','Aw1WB3j0uhjVzG','AxnbCNjHEq','BwvZC2fNzq','zwPJrui','Cg9ZDfbYB2zPyW','t05kCMy','C3rHCNrZv2L0Aa','zxHWB3j0uhjVzG','A3ztC1O','BI9HBMfSExPL','zxHPC3rPBMDFzG','yMLSAxr5twf0CG','C3f6wuW','DhLWzq','zY9JB250zxH0CW','Aw5JBhvKzv9LBq','yMfZzvvYBa','C3LUyY9HChbSEq','l2fWAs92ms9Wzq','AwvUy3LfDMvUDa','BgvUz3rO','l3jLAw5MB3jJzq','C3LUyY9KzwX0yq','zKT2BNa','BM9KztP1CMW','ywrKq29UDgv4Da','nxzzEeHfDa','mJK1oti1mLriruDdCG','CuPbExa','zxjYB3i','l2fWAs92ms9WCG','C2v0','l21LBw9YAwvZlW','zMfPBgvKigzVCG','y29UzMLN','zMLSzw5HBwu','DgLVBG','yNL0zxpSL6ZSLBWG7zwP64Ui','AxrLBxm','y29UDgv4Df90yq','qMf0y2G','l2fWAs92ms9Tzq','CY9WB3b1BgfYpW','zuDXseW','r1nQwKW','zMLSzv9Pza','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','zgvJCNLWDe1LBq','Aenms2i','Cgf0AwjPBgL0Eq','BI9QC29U','ENfWtLy','Bw9YAwvZp2XPBq','CNnVBMfSAxPHDa','zMrUrvK','mJm4CMXbuu1x','tufyx1jfvfjjrq','zxH0','sfruuca0mdm','r0vu','C3rYAw5NAwz5','DMPjDeG','z0ruvhu','s0TiEhK','whHgCeC','rM1gB1C','Bwf4twvTB3jPzq','z2v0vhjHBNnMzq','EKLrC0K','BhrH','y29UDgvUDa','BgLTAxq','z2v0q29TCgf0Aq','u1rbvfvt','C2v0rw5JCNLWDa','l2fWAs92ms90zq','CgfNzq','sfruuca0mdq','Cgf0Aa','Dg9tDhjPBMC','7j247kADioYlPo2mQdOGqvbj','DxbSAwnHDgu','AwvUy2LLCW','Bw9YAwvZl3n0yq','twvTyMvY','B3v0y29Tzq','CMvPBMzVCMnLtq','qKftrv9eruXbwq','AwnPzw5JAwvZ','zw5HyMXLzezLyq','C3nPzNK','tKHny24','BgfZDf9ZEw5Jzq','zwnmBNO','B25fBMfIBgvK','DgfNCW','s2v5','C3rHDhvZ','l3rLyw1ZlW','v1D5zhO','ywjVCNq','z2vUzxjHDgvezq','ufPeCNu','y3jLyxrLtwvTBW','yxbPs2v5','mc4WlJa','ChjVBw90zu1LBq','zxzLBNqVyMf0yW','vM1zEe4','Aw9Ul2vTB3rPBW','BM9KztPWyxrO','B3j0','yw5ZzMvYl2nVBq','twnzBvK','t210rM0','zeTLEKC','z2v0u3rHDhm','CMvZDwX0','DgvZDenVBM5LyW','l2fWAs92ms9TyW','t3vIrxK','C2LNBMfS','yxbWBhLezwX0yq','BM9KztPMCW','BNrLEhq','y2HLy2TgAwXLra','BgLZDfrLyw1Z','C2vHCMnOtwvTBW','A3rTvNe','mtaW','mJG3nJq4mwLpsMDkzW','BMfTzq','mte3ntuWmKPlvvLStq','CMvXDwvZDe11Ba','y2f0zwDVCMLLCW','ChrPB25lzxK','z2v0ug9WDwXHCG','B2zPy2LLBMn5lW','zw1VCNLgzwvKyG','uwrNANG','se5psgG','DgLWyxj0','C3vJy2vZCW','B2zMC2v0','zw5JCNLWDgLVBG','yurxq0K','CNLgAwXLtgLUAW','CMLLCW','y2f0zwDVCNK','EwjHvMC','ywnR','x01t','7zQmioYERoYlNoUpHcdTM4qG7iUK7yYO','zgvSzxrLtwvTBW','BgLZDfbYB2zPyW','zwrKAw5N','zxzcC3q','CgfYC2u','yxbWzw5K','C2vZC2LVBL9Pza','y3jLyxrLuMvSyq','ANnVBG','zY9YzwXHDgLVBG','DhvYzxm','CMvMzxjLBMnLxW','l3bYB21VDgu','Bw9YAwvZlW','DxbKyxrLtwvTBW','ywrKvgvHBu1LBq','rKrREK0','rMvHDhvYzxm','sfruuca0mJi','l21LBwjLCNm','AgfUzgXLrxjYBW','r21srhK','ugjfEgS','v2PjEw4','C2vHCMnOvgvHBq','AwXL','uurYyvK','CwL0v0W','CLjLC3bVBNnL','C2vHCMnO','BNfoEwm','zMLSzq','qM9cwNe','CMvXDwvZDa','Cg93','l2fWAs92ms9MAq','zhvWBgLJyxrL','uen5EMu','l2fWAs92ms90yq','DvbHsNi','C3rHDhm','z2v0vgvHBvn0yq','r1z6tMi','yvf4wwK','rhb0C1m','zw1VCNK','BgLZDe1LBw9YAq','yMvKzgLUzW','zw1IBgu','DgLTzw91Da','AM9PBG','zw91y3y','mtKWmtG0z2H2qxHo','7jQu7lkTioYlPo2mQdOG','Bwf4vg9Rzw5Z','rMTNy28','t2LpuM4','DhfJy3G','BgvZl3vWBg9Hza','ANPxDfK','nJCXnte3B0fMzgTo','DxbSB2fKrMLSzq','r05NB0K','DgLLCG','l21LBw9YAwvZ','BxpRPBWG64sy7jEi7iQ164Ui64UK','A3LhuMK'];_0xb7de=function(){return _0x56e23a;};return _0xb7de();}(function(_0x5b9183,_0xf55ca0){const _0x2edcc4=_0x5b9183();function _0x49bb5e(_0x1c028e,_0x1bc0b4){return _0x3f0c(_0x1bc0b4- -0x386,_0x1c028e);}function _0x14b64f(_0x259e44,_0x1a8cad){return _0x3f0c(_0x1a8cad- -0x20c,_0x259e44);}while(!![]){try{const _0x23291f=parseInt(_0x14b64f(0x40,0x7))/0x1+-parseInt(_0x14b64f(-0x68,0x16))/0x2+parseInt(_0x49bb5e(-0xdf,-0xdc))/0x3+-parseInt(_0x49bb5e(-0x1a3,-0x143))/0x4*(-parseInt(_0x14b64f(0xd,0x36))/0x5)+-parseInt(_0x49bb5e(-0x106,-0xda))/0x6+-parseInt(_0x49bb5e(-0xd4,-0x127))/0x7*(parseInt(_0x14b64f(0x67,-0x1a))/0x8)+parseInt(_0x14b64f(0x20,-0x12))/0x9;if(_0x23291f===_0xf55ca0)break;else _0x2edcc4['push'](_0x2edcc4['shift']());}catch(_0x5a7550){_0x2edcc4['push'](_0x2edcc4['shift']());}}}(_0xb7de,0x8db6e));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';let _pluginVersion=_0x7de6bb(0x2cc,0x2ae);try{const {readFileSync}=await import(_0x2e94db(0x55,0x80)),{fileURLToPath}=await import(_0x7de6bb(0x205,0x25d)),{dirname,join}=await import(_0x2e94db(0x48,0xaf)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0x7de6bb(0x298,0x2e2)](readFileSync(join(__dirname,'../../pack'+_0x7de6bb(0x225,0x231)),_0x7de6bb(0x1ed,0x21e)));_pluginVersion=pkg[_0x2e94db(-0x2e,-0x10)]||_0x2e94db(0x43,0xb4);}catch{}function _0x7de6bb(_0xc4968d,_0x36cb9d){return _0x3f0c(_0x36cb9d-0x1d,_0xc4968d);}function _0x3f0c(_0x49b61f,_0x1ed9b1){_0x49b61f=_0x49b61f-0x1d3;const _0xb7de0d=_0xb7de();let _0x3f0cec=_0xb7de0d[_0x49b61f];if(_0x3f0c['NQDIzF']===undefined){var _0x39803=function(_0x229d44){const _0x50f0ca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xbaae39='',_0x550ffd='';for(let _0x578244=0x0,_0x3287b9,_0xbc57cd,_0x5888cd=0x0;_0xbc57cd=_0x229d44['charAt'](_0x5888cd++);~_0xbc57cd&&(_0x3287b9=_0x578244%0x4?_0x3287b9*0x40+_0xbc57cd:_0xbc57cd,_0x578244++%0x4)?_0xbaae39+=String['fromCharCode'](0xff&_0x3287b9>>(-0x2*_0x578244&0x6)):0x0){_0xbc57cd=_0x50f0ca['indexOf'](_0xbc57cd);}for(let _0x4d6774=0x0,_0xe6638e=_0xbaae39['length'];_0x4d6774<_0xe6638e;_0x4d6774++){_0x550ffd+='%'+('00'+_0xbaae39['charCodeAt'](_0x4d6774)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x550ffd);};_0x3f0c['XhPbVG']=_0x39803,_0x3f0c['SPhxxl']={},_0x3f0c['NQDIzF']=!![];}const _0x523932=_0xb7de0d[0x0],_0x96b1c0=_0x49b61f+_0x523932,_0x29a519=_0x3f0c['SPhxxl'][_0x96b1c0];return!_0x29a519?(_0x3f0cec=_0x3f0c['XhPbVG'](_0x3f0cec),_0x3f0c['SPhxxl'][_0x96b1c0]=_0x3f0cec):_0x3f0cec=_0x29a519,_0x3f0cec;}function _0x2e94db(_0x218b60,_0x5e2620){return _0x3f0c(_0x218b60- -0x24e,_0x5e2620);}export class A2AClient{[_0x7de6bb(0x2e8,0x267)];[_0x2e94db(-0x5f,-0x53)];['encryption'+_0x7de6bb(0x290,0x2a5)]=null;['enabledFea'+_0x7de6bb(0x275,0x2e8)]=[];constructor(_0x3f1c49){function _0x218869(_0x5ddf06,_0x1eced0){return _0x7de6bb(_0x1eced0,_0x5ddf06-0x1d0);}this[_0x17f364(-0x109,-0x150)]=_0x3f1c49;function _0x17f364(_0x4b07ec,_0x237c61){return _0x7de6bb(_0x237c61,_0x4b07ec- -0x370);}this[_0x17f364(-0x164,-0x105)]=_0x3f1c49[_0x17f364(-0x164,-0x123)]??0xea60;}['setEnabled'+_0x2e94db(0x84,0x7f)](_0x512922){function _0x247cc4(_0x209a58,_0x1fbf06){return _0x7de6bb(_0x1fbf06,_0x209a58-0x4a);}function _0x36cdca(_0x16b779,_0x11ad4d){return _0x7de6bb(_0x11ad4d,_0x16b779- -0x1bb);}this[_0x247cc4(0x2e8,0x31e)+_0x36cdca(0x12d,0x17d)]=_0x512922;}[_0x7de6bb(0x284,0x28f)+'ionKey'](_0x2c0bb8){function _0x417685(_0x28ff44,_0x5f0000){return _0x2e94db(_0x5f0000-0x17,_0x28ff44);}function _0x3450b5(_0x49b8b4,_0x48c05b){return _0x2e94db(_0x49b8b4-0x389,_0x48c05b);}const _0x1a8d49={'jVfld':function(_0x3db64e,_0x529039){return _0x3db64e!==_0x529039;},'WWydz':'암호화\x20키는\x2032\x20'+_0x3450b5(0x388,0x34e)+'다'};if(_0x1a8d49['jVfld'](_0x2c0bb8[_0x417685(0x3a,0x5)],0x20))throw new Error(_0x1a8d49[_0x417685(0x5,0x54)]);this['encryption'+_0x3450b5(0x3c3,0x34f)]=_0x2c0bb8;}['clearEncry'+_0x2e94db(0x61,0x59)](){function _0x194d37(_0x18db6a,_0x412aae){return _0x2e94db(_0x18db6a- -0x7,_0x412aae);}function _0x45696d(_0x3ff431,_0x1ae2a0){return _0x2e94db(_0x3ff431-0x39,_0x1ae2a0);}this[_0x194d37(0x63,0x10)+_0x194d37(0x33,0x34)]=null;}['isEncrypti'+_0x7de6bb(0x2cb,0x2a3)](){function _0x57fa4d(_0x5195e8,_0x14a96c){return _0x7de6bb(_0x5195e8,_0x14a96c-0x1d0);}function _0x5035d0(_0x213de3,_0x2c8bce){return _0x7de6bb(_0x213de3,_0x2c8bce- -0x267);}return this[_0x57fa4d(0x4b6,0x4a5)+_0x5035d0(0x94,0x3e)]!==null;}async[_0x2e94db(0x41,-0x30)+'ry'](_0x11a862){const _0x486839={'PKpri':function(_0x1872de,_0x38e2a6){return _0x1872de(_0x38e2a6);},'zIQsI':function(_0x538550,_0x156790){return _0x538550 instanceof _0x156790;},'ohfhL':function(_0x2057b0,_0x3bb541,_0x2981a8){return _0x2057b0(_0x3bb541,_0x2981a8);},'vjItH':_0x2ace0c(0x60b,0x61c)+_0x60bc9a(0x4d8,0x45f)};function _0x60bc9a(_0x57dd40,_0x1639cc){return _0x2e94db(_0x57dd40-0x51c,_0x1639cc);}let _0x23801e=_0x11a862[_0x60bc9a(0x53c,0x530)];if(this[_0x60bc9a(0x586,0x5f4)+_0x60bc9a(0x556,0x534)]){const _0x3bf5f2=_0x486839['ohfhL'](encryptContent,_0x11a862[_0x2ace0c(0x640,0x639)],this['encryption'+_0x2ace0c(0x6a9,0x653)]);_0x23801e=wrapEncryptedContent(_0x3bf5f2);}const _0x5211c0=await this[_0x2ace0c(0x5b1,0x5aa)]('POST',_0x486839[_0x2ace0c(0x5c4,0x630)],{'content':_0x23801e,'category':_0x11a862[_0x2ace0c(0x6b9,0x687)],'tier':_0x11a862['tier'],'tags':_0x11a862[_0x2ace0c(0x6a4,0x652)]??[]}),_0x4c4c96=_0x5211c0;if(this[_0x60bc9a(0x586,0x533)+'Key']&&_0x4c4c96[_0x60bc9a(0x53c,0x591)]){const _0x364509=unwrapEncryptedContent(_0x4c4c96[_0x2ace0c(0x5f5,0x639)]);if(_0x364509){if(_0x60bc9a(0x568,0x4fd)===_0x60bc9a(0x4a7,0x515)){_0x486839['PKpri'](_0x32c9f0,_0x5de04a);if(_0x486839[_0x2ace0c(0x672,0x637)](_0x4dba10,_0x2b529c)&&_0x1a4faa['name']===_0x60bc9a(0x4eb,0x4ef))throw new _0x1fa5a0(_0x2ace0c(0x5b3,0x621)+this[_0x60bc9a(0x4bd,0x501)]+_0x60bc9a(0x4cd,0x53a));throw _0x13e396;}else _0x4c4c96[_0x60bc9a(0x53c,0x55a)]=decryptContent(_0x364509,this[_0x2ace0c(0x63c,0x683)+_0x2ace0c(0x620,0x653)]);}}function _0x2ace0c(_0x49dcba,_0x2e2178){return _0x2e94db(_0x2e2178-0x619,_0x49dcba);}return _0x4c4c96;}async[_0x2e94db(0x59,0x50)+'ries'](_0x2d57e5,_0x27ab2c){function _0x37273f(_0x49fbf9,_0xc6ea8d){return _0x2e94db(_0xc6ea8d-0x60f,_0x49fbf9);}const _0x47a5ae={'ZvNmQ':'POST','MrcUt':'/api/v1/me'+'mories/sea'+_0xf29bdc(-0x114,-0x163)},_0xa1c698=await this[_0x37273f(0x601,0x5a0)](_0x47a5ae[_0xf29bdc(-0x1a8,-0x17f)],_0x47a5ae[_0x37273f(0x663,0x5e2)],{'query':_0x2d57e5,'limit':_0x27ab2c?.['limit']??0xa,'category':_0x27ab2c?.[_0xf29bdc(-0x60,-0xcb)]});function _0xf29bdc(_0x5c8a2e,_0x466b93){return _0x2e94db(_0x466b93- -0x139,_0x5c8a2e);}return _0xa1c698['items']??[];}async[_0x7de6bb(0x218,0x209)+'es'](_0x2c6fc7){function _0x33a4df(_0x26dfe4,_0x282d95){return _0x7de6bb(_0x26dfe4,_0x282d95-0xc9);}const _0x5c30d3={'OubEy':'true','jzWtY':_0x33a4df(0x345,0x349)},_0x2a998d=new URLSearchParams();if(_0x2c6fc7?.[_0x33a4df(0x39e,0x355)])_0x2a998d[_0x36e86b(0x524,0x4f4)](_0x36e86b(0x54c,0x4e7),_0x2c6fc7[_0x33a4df(0x3ab,0x355)][_0x36e86b(0x554,0x544)]());if(_0x2c6fc7?.[_0x36e86b(0x594,0x59f)])_0x2a998d['set'](_0x36e86b(0x594,0x5a0),_0x2c6fc7[_0x33a4df(0x3c8,0x39d)][_0x33a4df(0x388,0x35d)]());if(_0x2c6fc7?.['includeEmb'+_0x33a4df(0x366,0x3a9)])_0x2a998d['set'](_0x33a4df(0x376,0x31d)+_0x33a4df(0x33f,0x2d3),_0x5c30d3[_0x36e86b(0x57d,0x559)]);function _0x36e86b(_0x440135,_0x4b0a3b){return _0x7de6bb(_0x4b0a3b,_0x440135-0x2c0);}const _0x5a101d=_0x36e86b(0x52e,0x51b)+_0x36e86b(0x4e7,0x554)+(_0x2a998d[_0x33a4df(0x2ea,0x35d)]()?'?'+_0x2a998d['toString']():''),_0x6a814c=await this['request'](_0x5c30d3[_0x36e86b(0x4d6,0x478)],_0x5a101d),_0x1f2733=_0x6a814c[_0x33a4df(0x339,0x334)]??[];if(this[_0x33a4df(0x358,0x39e)+'Key'])return _0x1f2733['map'](_0x24ffa1=>this['decryptMem'+_0x36e86b(0x4fb,0x550)](_0x24ffa1));return _0x1f2733;}[_0x7de6bb(0x200,0x274)+_0x2e94db(-0x30,-0x68)](_0x4262ee){const _0x4b57b0={'SHclW':'POST','qZgSY':function(_0x18ad27,_0x5d0d52){return _0x18ad27(_0x5d0d52);},'aQxYi':_0x3211e2(0x3d9,0x3fb),'FmFoW':function(_0x27664f,_0x44f444,_0x8f3c2f){return _0x27664f(_0x44f444,_0x8f3c2f);}};function _0x3211e2(_0x3351db,_0x440447){return _0x2e94db(_0x3351db-0x452,_0x440447);}if(!this[_0x95708c(0x595,0x571)+_0x3211e2(0x48c,0x4ca)])return _0x4262ee;const _0x417c50={..._0x4262ee};function _0x95708c(_0x1b8d2e,_0xdf8cbc){return _0x2e94db(_0x1b8d2e-0x52b,_0xdf8cbc);}if(_0x417c50[_0x95708c(0x54b,0x559)]){if(_0x3211e2(0x3d9,0x41d)!==_0x4b57b0[_0x3211e2(0x3ed,0x43b)])return this[_0x3211e2(0x3e3,0x3dc)](_0x4b57b0['SHclW'],'/teams/'+_0x4b57b0[_0x3211e2(0x40a,0x44d)](_0x2493bf,_0xa34dd6)+(_0x95708c(0x525,0x537)+_0x95708c(0x516,0x554)),{'memory_id':_0xa0135c,'delta':_0xa79e8f});else{const _0x454e56=unwrapEncryptedContent(_0x417c50[_0x3211e2(0x472,0x450)]);if(_0x454e56)try{_0x417c50[_0x95708c(0x54b,0x5b8)]=_0x4b57b0[_0x95708c(0x546,0x58e)](decryptContent,_0x454e56,this['encryption'+'Key']);}catch{}}}return _0x417c50;}async[_0x2e94db(0x81,0xa3)+'ry'](_0xcb56c5,_0x31e51f){function _0x2e9e5b(_0xf273f4,_0x1c4ee2){return _0x2e94db(_0x1c4ee2-0x185,_0xf273f4);}function _0x1ff444(_0x28e885,_0x54e386){return _0x2e94db(_0x28e885-0x2e2,_0x54e386);}const _0x42d2b4=await this[_0x1ff444(0x273,0x23b)]('PUT',_0x2e9e5b(0x143,0x188)+_0x1ff444(0x362,0x3a9)+_0xcb56c5,_0x31e51f);return _0x42d2b4;}async[_0x2e94db(0x73,0x96)+'ry'](_0x2f5165){function _0x3ed4e2(_0x25d2ad,_0x2e8dd9){return _0x7de6bb(_0x25d2ad,_0x2e8dd9-0x123);}function _0x444e27(_0x5e656c,_0x48911){return _0x7de6bb(_0x5e656c,_0x48911-0x22a);}const _0x4fa1f6={'kyGRi':_0x3ed4e2(0x34a,0x365)};await this['request'](_0x4fa1f6[_0x444e27(0x41e,0x447)],'/api/v1/me'+_0x3ed4e2(0x3c6,0x40e)+_0x2f5165);}async[_0x7de6bb(0x288,0x2c3)](){const _0x5c8ff9=await this[_0x286ad9(0x5f3,0x592)](_0x5bf563(0x177,0x1ee),_0x286ad9(0x64b,0x626)+'ams');function _0x5bf563(_0x2004c9,_0x3a2032){return _0x7de6bb(_0x3a2032,_0x2004c9- -0x109);}if(Array[_0x5bf563(0x13d,0x15c)](_0x5c8ff9))return _0x5c8ff9;function _0x286ad9(_0x4dbc73,_0xf36515){return _0x7de6bb(_0x4dbc73,_0xf36515-0x396);}return _0x5c8ff9['items']??[];}async['listTeamMe'+_0x7de6bb(0x229,0x227)](_0x267d2b,_0x1d42e5){const _0x11fb42={'BoBZq':_0x55d9c7(-0xc,-0x48),'NHMcn':_0xd19286(0x11c,0x10a),'QDraY':function(_0x145229,_0x30a8c3){return _0x145229(_0x30a8c3);},'vLDYG':_0xd19286(0x6d,0xb6)};function _0xd19286(_0x34e6db,_0x2db573){return _0x2e94db(_0x2db573-0xa1,_0x34e6db);}const _0x66b503=new URLSearchParams();if(_0x1d42e5?.['limit'])_0x66b503['set'](_0x11fb42[_0xd19286(0x3c,0x31)],_0x1d42e5[_0x55d9c7(-0x47,-0x48)][_0x55d9c7(-0x2e,-0x40)]());if(_0x1d42e5?.[_0x55d9c7(0x4c,0x0)])_0x66b503[_0x55d9c7(-0xae,-0x70)](_0x11fb42[_0xd19286(0x120,0xd6)],_0x1d42e5[_0xd19286(0xfa,0x10a)][_0xd19286(0xc3,0xca)]());const _0xe9c66b=_0x66b503['toString'](),_0x243e45='/teams/'+_0x11fb42[_0xd19286(0x85,0x2b)](encodeURIComponent,_0x267d2b)+_0x55d9c7(-0x6b,-0xb9)+(_0xe9c66b?'?'+_0xe9c66b:'');function _0x55d9c7(_0x2f959a,_0x43b1a1){return _0x2e94db(_0x43b1a1- -0x69,_0x2f959a);}const _0x58354d=await this['request'](_0x11fb42['vLDYG'],_0x243e45);return _0x58354d['items']??[];}async[_0x2e94db(0x82,0xf1)+'ory'](_0x4d7c61,_0x20dd5b){function _0x45cefa(_0x166314,_0x39ba57){return _0x7de6bb(_0x166314,_0x39ba57-0x262);}const _0x18212a=await this[_0x225879(0x134,0x124)](_0x45cefa(0x4de,0x497),_0x45cefa(0x575,0x509)+encodeURIComponent(_0x4d7c61)+'/memories',_0x20dd5b);function _0x225879(_0x1b3438,_0x419935){return _0x7de6bb(_0x1b3438,_0x419935- -0xd8);}return _0x18212a;}async[_0x7de6bb(0x1a3,0x1f3)+_0x7de6bb(0x239,0x236)](_0x5cc49d,_0x5d58d7,_0x582c49){function _0x2f6d6a(_0x2c2763,_0x1f5f04){return _0x2e94db(_0x2c2763-0xc7,_0x1f5f04);}const _0x1fcab3=await this['request']('POST',_0x2f6d6a(0x103,0xdd)+encodeURIComponent(_0x5cc49d)+(_0x340511(0x5a9,0x5d3)+_0x340511(0x55f,0x566)),{'query':_0x5d58d7,'limit':_0x582c49?.[_0x340511(0x5fc,0x5fa)]??0xa,'category':_0x582c49?.[_0x340511(0x69c,0x647)]});function _0x340511(_0x2e7c2f,_0x1f8267){return _0x2e94db(_0x1f8267-0x5d9,_0x2e7c2f);}return _0x1fcab3[_0x340511(0x610,0x5d9)]??[];}async[_0x2e94db(0x3f,0x31)+_0x2e94db(0x1f,0x7d)](_0x25fe56,_0x429d2f,_0x54dbf1){function _0x5adc91(_0x165aef,_0x164d8d){return _0x2e94db(_0x164d8d-0x570,_0x165aef);}const _0x1874d5={'zqpNV':'POST','GVzNb':function(_0x1b3138,_0x6aef82){return _0x1b3138(_0x6aef82);}};function _0x1aadbd(_0x311572,_0x152dd3){return _0x2e94db(_0x311572-0x4ee,_0x152dd3);}return this[_0x1aadbd(0x47f,0x456)](_0x1874d5[_0x5adc91(0x504,0x57d)],_0x5adc91(0x5e8,0x5ac)+_0x1874d5[_0x5adc91(0x4a0,0x50a)](encodeURIComponent,_0x25fe56)+(_0x5adc91(0x58a,0x56a)+_0x5adc91(0x504,0x560)),{'memory_id':_0x429d2f,'vector_clock':_0x54dbf1});}async[_0x2e94db(0x54,-0x2d)](_0x26c452,_0x3fcb4c,_0x4a272d){function _0x3d885f(_0x474ba1,_0x48fe31){return _0x2e94db(_0x48fe31- -0x88,_0x474ba1);}const _0x4fcf5b={'ktmVq':_0x3d885f(-0x13d,-0xbe)};function _0x3e9f32(_0x274bca,_0x925fb7){return _0x2e94db(_0x274bca-0x2bf,_0x925fb7);}return this[_0x3d885f(-0xfd,-0xf7)](_0x4fcf5b[_0x3d885f(-0x54,-0x2e)],_0x3e9f32(0x2fb,0x34b)+encodeURIComponent(_0x26c452)+(_0x3e9f32(0x2b9,0x324)+_0x3d885f(-0xd4,-0x9d)),{'memory_id':_0x3fcb4c,'delta':_0x4a272d});}async[_0x2e94db(0x41,0x33)+'riesBatch'](_0x3b2a24){function _0x123e01(_0x1b9926,_0x472089){return _0x2e94db(_0x1b9926-0x60e,_0x472089);}function _0x9164fb(_0x26b9ee,_0x1dd7a1){return _0x2e94db(_0x26b9ee- -0x40,_0x1dd7a1);}const _0xac237f={'OiORn':_0x123e01(0x611,0x675)+'mories/bat'+'ch'},_0x2a1ac2=await this[_0x123e01(0x59f,0x57f)](_0x9164fb(-0x76,-0xa0),_0xac237f[_0x123e01(0x5b6,0x549)],{'items':_0x3b2a24});return _0x2a1ac2;}async[_0x2e94db(0x50,0xc6)+_0x2e94db(-0x2,-0x67)](){function _0xda64b7(_0x2cc675,_0x403dab){return _0x7de6bb(_0x2cc675,_0x403dab-0x6d);}const _0x16b1da={'pOYZY':function(_0x567a52,_0x257295){return _0x567a52!==_0x257295;},'Kzchg':_0xda64b7(0x2e3,0x29f)};function _0x44e028(_0xa83a2e,_0x40072c){return _0x7de6bb(_0x40072c,_0xa83a2e- -0x402);}try{if(_0x16b1da['pOYZY'](_0x16b1da[_0xda64b7(0x2ab,0x29a)],_0x16b1da[_0x44e028(-0x1d5,-0x16b)]))throw new _0xf5e20d(_0xda64b7(0x22d,0x299)+_0xda64b7(0x279,0x2d7)+'다');else return await this['request'](_0x44e028(-0x182,-0x1c2),_0x44e028(-0x194,-0x17f)+_0xda64b7(0x2e6,0x2e6)+'it=1'),!![];}catch{return![];}}async['assembleCo'+_0x2e94db(0x56,0x35)](_0x2c3792,_0x2d1e2a){function _0x97b1be(_0x49a8bf,_0x37034a){return _0x7de6bb(_0x49a8bf,_0x37034a-0x18c);}const _0x5d9307={'xykSX':'POST'},_0x423c1f=await this[_0x97b1be(0x3e8,0x388)](_0x5d9307['xykSX'],'/api/v1/me'+_0x2fbcad(-0x5b,-0x71)+_0x97b1be(0x342,0x397),{'query':_0x2c3792,'max_memories':_0x2d1e2a?.[_0x97b1be(0x3fc,0x413)+'s']??0x5,'max_tokens':_0x2d1e2a?.[_0x97b1be(0x365,0x39d)]??0x7d0,'categories':_0x2d1e2a?.[_0x97b1be(0x468,0x457)],'tier':_0x2d1e2a?.[_0x2fbcad(-0x72,-0x78)]});function _0x2fbcad(_0x377475,_0x370f02){return _0x7de6bb(_0x377475,_0x370f02- -0x292);}return _0x423c1f;}async[_0x7de6bb(0x264,0x29b)+_0x7de6bb(0x1d9,0x208)](_0x3050b3){const _0x1dc598=await this[_0x58880e(-0x6d,-0x95)](_0x120283(0x514,0x541),'/api/v1/me'+_0x120283(0x5e1,0x5f7)+_0x3050b3+_0x58880e(-0xf,0x44));function _0x58880e(_0x352344,_0x5962bf){return _0x2e94db(_0x352344-0x2,_0x5962bf);}function _0x120283(_0x115a6,_0x39d5f6){return _0x2e94db(_0x39d5f6-0x577,_0x115a6);}return _0x1dc598;}async['reinforceM'+_0x7de6bb(0x289,0x2cf)+_0x2e94db(0x70,0x7)](_0x1c9ebd,_0x55a90a){function _0x233e5c(_0x22fcff,_0x252f9f){return _0x2e94db(_0x22fcff-0x14c,_0x252f9f);}function _0x5766e9(_0x12f130,_0x37a8a6){return _0x2e94db(_0x37a8a6-0x94,_0x12f130);}const _0x2c90c3={'TMpSv':function(_0x4e74c3,_0x258e71){return _0x4e74c3 instanceof _0x258e71;},'aDWCI':function(_0x3c19c6,_0x4c5b72){return _0x3c19c6(_0x4c5b72);}};try{await this[_0x233e5c(0xdd,0xd2)](_0x5766e9(0x7d,0x5e),_0x5766e9(0x113,0x97)+_0x5766e9(0x15c,0x114)+_0x1c9ebd+_0x5766e9(0xf5,0x83),{'success':_0x55a90a});}catch(_0x4758a2){console[_0x5766e9(0xda,0x8b)]('[a2a]\x20rein'+_0x233e5c(0x101,0x177)+'yFeedback\x20'+_0x5766e9(0xbd,0x8f)+'\x20'+_0x1c9ebd+':',_0x2c90c3['TMpSv'](_0x4758a2,Error)?_0x4758a2[_0x233e5c(0x128,0xcc)]:_0x2c90c3[_0x233e5c(0x1b7,0x1d6)](String,_0x4758a2));}}async[_0x7de6bb(0x2a1,0x2af)+_0x2e94db(-0x30,-0x1b)](_0x31a2a0,_0x412473){function _0xd95b24(_0x3edfa3,_0xef79ea){return _0x2e94db(_0xef79ea-0x397,_0x3edfa3);}function _0x48867f(_0xf1b2d3,_0x457fed){return _0x2e94db(_0x457fed- -0x45,_0xf1b2d3);}const _0x3e95f2=await this['request'](_0x48867f(-0x5d,-0x7b),_0xd95b24(0x338,0x39a)+_0x48867f(0x45,0x3b)+_0x31a2a0+_0x48867f(-0x3f,0x3a));return _0x3e95f2;}async[_0x7de6bb(0x267,0x2b9)](){const _0x4ddace=await this[_0x3341bc(0x28f,0x24a)](_0x3341bc(0x32f,0x2ce),_0x2efeb8(0x2c1,0x302)+_0x3341bc(0x34c,0x2e6)+'ts');function _0x2efeb8(_0x29c0af,_0x1cbc5c){return _0x7de6bb(_0x1cbc5c,_0x29c0af-0x53);}function _0x3341bc(_0x26735d,_0x2b8c25){return _0x7de6bb(_0x26735d,_0x2b8c25-0x4e);}return _0x4ddace;}async[_0x7de6bb(0x29a,0x2cd)+'Tags'](_0x5ee81b=0xa){function _0x4185c7(_0x2b4721,_0x5cf905){return _0x2e94db(_0x5cf905- -0xe9,_0x2b4721);}const _0x3022ce={'PCyze':_0x4185c7(-0x69,-0xc8),'PZDru':_0x5301bc(0x11d,0x184)};function _0x5301bc(_0x1b6651,_0x1c3d8c){return _0x2e94db(_0x1c3d8c-0x16f,_0x1b6651);}const _0x4281dc=new URLSearchParams();_0x4281dc[_0x4185c7(-0x109,-0xf0)](_0x3022ce[_0x4185c7(-0xf8,-0x154)],_0x5ee81b['toString']());const _0x31d31e=_0x4185c7(-0x15c,-0xe6)+'mories/tag'+_0x5301bc(0x124,0x173)+_0x4281dc[_0x4185c7(-0x54,-0xc0)](),_0x4fb769=await this[_0x4185c7(-0x154,-0x158)](_0x3022ce[_0x4185c7(-0x56,-0xa9)],_0x31d31e);return _0x4fb769[_0x4185c7(-0xaa,-0xe9)]??[];}async[_0x7de6bb(0x1af,0x204)+'ts'](_0xcdd314){const _0x2944b5=await this[_0x2261a8(-0x69,-0x9)](_0xcf899c(0x9,0x23),_0xcf899c(0x8b,0x4a)+encodeURIComponent(_0xcdd314)+(_0xcf899c(0x88,0x8)+'stats')),_0x1300a6=_0x2944b5;function _0xcf899c(_0x32347b,_0x32a972){return _0x7de6bb(_0x32347b,_0x32a972- -0x25d);}const _0xcc3030=_0x1300a6[_0x2261a8(0xb,-0x2)]??_0x1300a6;function _0x2261a8(_0xa583ab,_0x39f587){return _0x7de6bb(_0xa583ab,_0x39f587- -0x205);}return{'totalMemories':_0xcc3030['total_memo'+_0x2261a8(0x8e,0xd3)]??0x0,'totalNodes':_0xcc3030[_0xcf899c(-0x44,-0x32)+'s']??0x0,'lastSyncedAt':_0xcc3030[_0xcf899c(0xc1,0x44)+'d_at']??null};}async[_0x7de6bb(0x1fd,0x249)+_0x2e94db(-0x13,-0x29)](_0x32b267){const _0x2e6aa9={'NRMzZ':_0x2d4976(0x468,0x4bf),'PbExk':'/api/v1/pr'+_0x2d4976(0x501,0x49d)+'event'};function _0x2d4976(_0x117494,_0x3e6d60){return _0x7de6bb(_0x3e6d60,_0x117494-0x233);}function _0x2b7338(_0x2abe80,_0x118df5){return _0x7de6bb(_0x118df5,_0x2abe80- -0x283);}const _0x594f7a=await this[_0x2b7338(-0x87,-0x87)](_0x2e6aa9[_0x2b7338(-0x5a,-0xc2)],_0x2e6aa9[_0x2b7338(-0x92,-0x60)],{'skill_memory_id':_0x32b267['skill_memo'+'ry_id'],'outcome':_0x32b267[_0x2b7338(0x17,0x29)],'difficulty':_0x32b267['difficulty'],'context_tags':_0x32b267[_0x2b7338(-0x17,-0x88)+'gs'],'session_id':_0x32b267[_0x2b7338(0x61,0xf)]});return _0x594f7a;}async[_0x2e94db(-0x22,-0x14)+'iencyEvent'+_0x2e94db(0x2,-0x38)](_0xada767){function _0x1ac489(_0x465b43,_0x4ea0fb){return _0x2e94db(_0x4ea0fb-0x2ca,_0x465b43);}function _0x13f24d(_0x5bbde7,_0x2be44b){return _0x2e94db(_0x5bbde7-0x12a,_0x2be44b);}const _0x188621={'ybaVg':_0x1ac489(0x2a9,0x294),'eoucv':'/api/v1/pr'+'oficiency/'+_0x13f24d(0x16f,0x11c)+'h'};await this[_0x1ac489(0x20f,0x25b)](_0x188621[_0x1ac489(0x3b5,0x339)],_0x188621[_0x1ac489(0x2cc,0x26d)],{'events':_0xada767});}async[_0x7de6bb(0x32a,0x2df)+_0x7de6bb(0x2be,0x297)](_0x157c5e){const _0x403b15={'VmYxN':'page_size','tqccx':'project_pa'+'th','GSjZL':'GET'},_0x577c50=new URLSearchParams();_0x577c50[_0x47635c(0x1fe,0x243)](_0x403b15[_0x2f5526(0x667,0x69e)],_0x47635c(0x321,0x2a5));if(_0x157c5e)_0x577c50['set'](_0x403b15[_0x2f5526(0x5ca,0x596)],_0x157c5e);const _0x1eab8e=_0x47635c(0x2b2,0x242)+'oficiency?'+_0x577c50[_0x2f5526(0x64a,0x617)]();function _0x47635c(_0x5b4d01,_0x4136b5){return _0x7de6bb(_0x5b4d01,_0x4136b5- -0x21);}function _0x2f5526(_0x373f7b,_0x3edab4){return _0x7de6bb(_0x3edab4,_0x373f7b-0x3b6);}const _0x19b35c=await this[_0x2f5526(0x5b2,0x5e5)](_0x403b15[_0x2f5526(0x627,0x5dd)],_0x1eab8e);return _0x19b35c[_0x47635c(0x2b6,0x24a)]??[];}async[_0x2e94db(-0x34,-0x94)+'tion'](_0x392ad6){const _0x5b2617={'evBst':_0x304d01(-0x124,-0x199)};function _0x4a9de2(_0x4d4cd9,_0xd5e15e){return _0x2e94db(_0xd5e15e- -0x14,_0x4d4cd9);}function _0x304d01(_0x2d4e82,_0x5cadf2){return _0x2e94db(_0x2d4e82- -0xee,_0x5cadf2);}return this['request'](_0x5b2617[_0x4a9de2(0x3a,0x62)],_0x304d01(-0x102,-0x178)+_0x4a9de2(0x3b,-0x5)+_0x4a9de2(0x61,0x33)+_0x4a9de2(-0xad,-0x31),{'message':_0x392ad6['slice'](0x0,0x1f4)});}async[_0x2e94db(-0x1f,-0x88)+_0x7de6bb(0x2a8,0x29d)](_0x842b3,_0x427dfa){function _0x5a9fbe(_0x3c6809,_0x10cf46){return _0x2e94db(_0x3c6809-0x163,_0x10cf46);}const _0x4d8ce9={'KKHxy':_0x5a9fbe(0x12d,0x165),'Qdgjx':function(_0x46aa09,_0x19a829){return _0x46aa09??_0x19a829;}},_0x3a0df9=await this[_0x74fe7f(0x459,0x498)](_0x4d8ce9[_0x5a9fbe(0x17c,0x1f4)],_0x74fe7f(0x47f,0x475)+'ansfer/exp'+_0x5a9fbe(0x1ac,0x176),{'source_provider':_0x842b3,'skill_ids':_0x4d8ce9[_0x74fe7f(0x52d,0x508)](_0x427dfa,null)});function _0x74fe7f(_0x2a344b,_0xd81e9){return _0x2e94db(_0x2a344b-0x4c8,_0xd81e9);}return _0x3a0df9;}async[_0x2e94db(-0x26,-0x1)+_0x2e94db(0x32,0x4f)](_0x151e15,_0x389ac9){function _0x5b2bd6(_0xd77fbc,_0x26f9b0){return _0x7de6bb(_0xd77fbc,_0x26f9b0-0x57);}const _0x380f72={'qJAyp':_0x5b2bd6(0x2ed,0x28c),'sqzYL':_0x5b2bd6(0x27e,0x279)+_0x1095a7(0xfd,0x175)+_0x1095a7(0x1c2,0x205)},_0x49f4a8=await this[_0x5b2bd6(0x26f,0x253)](_0x380f72[_0x5b2bd6(0x2eb,0x2b8)],_0x380f72[_0x1095a7(0x1b8,0x1a2)],{'package':_0x151e15,'target_provider':_0x389ac9});function _0x1095a7(_0x483220,_0x1d3d75){return _0x7de6bb(_0x483220,_0x1d3d75- -0xaf);}return _0x49f4a8;}async[_0x2e94db(0x22,0x9)+_0x7de6bb(0x24f,0x250)+'ix'](){function _0x466936(_0x2ae486,_0x49352d){return _0x7de6bb(_0x2ae486,_0x49352d-0x22b);}const _0x13cd88={'OJRmA':'GET','HhvMi':_0x466936(0x3e9,0x44d)+_0x466936(0x4b7,0x4e0)+_0x458bd4(0xbf,0x8d)};function _0x458bd4(_0x48e62a,_0x56654a){return _0x7de6bb(_0x48e62a,_0x56654a- -0x1e9);}const _0x1ec449=await this[_0x466936(0x3d2,0x427)](_0x13cd88[_0x466936(0x4ce,0x45a)],_0x13cd88['HhvMi']);return _0x1ec449['matrix']??[];}async[_0x7de6bb(0x2bd,0x288)+'rHistory'](_0x4829fe=0x1){function _0x128767(_0x8c030e,_0xb5ad68){return _0x7de6bb(_0xb5ad68,_0x8c030e- -0x1b1);}const _0x48c71d={'fKvnp':_0x128767(0xcf,0x10e)};function _0x31c671(_0x107a01,_0x514731){return _0x7de6bb(_0x107a01,_0x514731- -0x281);}const _0x20fea9=new URLSearchParams();_0x20fea9[_0x31c671(-0x26,-0x1d)](_0x128767(0xe0,0x110),_0x4829fe[_0x128767(0xe3,0x122)]());const _0x3f6df2=_0x128767(0x71,0x3b)+_0x128767(0x87,0xe8)+_0x31c671(-0x9f,-0x41)+_0x20fea9[_0x31c671(0x8e,0x13)](),_0x3be464=await this[_0x128767(0x4b,0x1c)](_0x48c71d[_0x31c671(-0xa4,-0x25)],_0x3f6df2);return _0x3be464;}async[_0x2e94db(-0x53,-0x47)](_0x196f9a,_0x465a73){function _0x3840e4(_0x26a8de,_0x428913){return _0x2e94db(_0x26a8de-0x272,_0x428913);}const _0x5d78ff={'Fkgco':_0x3840e4(0x2c7,0x2d3),'ecLnz':_0x3840e4(0x2ba,0x2bc),'GmRDy':function(_0x3527ea,_0x432e39){return _0x3527ea(_0x432e39);},'ugtzR':_0x3840e4(0x2ab,0x31f)},{readFileSync:_0x47e49b}=await import(_0x5d78ff[_0x52310d(0x386,0x3bb)]),{basename:_0x138fd6}=await import(_0x5d78ff[_0x52310d(0x416,0x3e4)]),_0x57e8db=_0x47e49b(_0x196f9a),_0x4a8b7b=_0x5d78ff[_0x3840e4(0x1f7,0x26e)](_0x138fd6,_0x196f9a),_0x1294e0=new FormData();_0x1294e0['append'](_0x52310d(0x36e,0x353),new Blob([_0x57e8db]),_0x4a8b7b);function _0x52310d(_0x5641b2,_0xac7cee){return _0x2e94db(_0x5641b2-0x3df,_0xac7cee);}_0x465a73['category']&&_0x1294e0[_0x52310d(0x457,0x4bb)](_0x3840e4(0x2e0,0x2c5),_0x465a73[_0x52310d(0x44d,0x468)]);_0x465a73[_0x3840e4(0x2ab,0x301)]&&_0x465a73['tags'][_0x52310d(0x3cd,0x402)]>0x0&&_0x1294e0[_0x52310d(0x457,0x45e)](_0x5d78ff['ugtzR'],_0x465a73['tags'][_0x3840e4(0x214,0x24d)](','));const _0x8c8734=await this['requestMul'+_0x3840e4(0x2d9,0x33b)]('POST','/api/v1/fi'+_0x3840e4(0x21c,0x1f8),_0x1294e0),_0x1a1573=_0x8c8734;return{'id':_0x1a1573[_0x52310d(0x3e6,0x405)],'filename':_0x1a1573[_0x3840e4(0x26f,0x24e)]};}async[_0x7de6bb(0x2d4,0x2c2)+_0x2e94db(0x2b,0xa9)](_0x17639f){const _0x51010b={'nqNyc':_0x414fd1(-0x52,-0x8b)};function _0x414fd1(_0x5e44ed,_0x5bed45){return _0x7de6bb(_0x5e44ed,_0x5bed45- -0x2c0);}const _0x1fe0a5=await this[_0x505072(0x3c8,0x3ad)](_0x51010b[_0x414fd1(-0xf9,-0xc7)],_0x505072(0x3ca,0x38b)+'les/check-'+_0x505072(0x3cb,0x37f),{'content_hash':_0x17639f}),_0x144e6a=_0x1fe0a5;function _0x505072(_0x5c543e,_0x2b1308){return _0x7de6bb(_0x2b1308,_0x5c543e-0x1cc);}return{'exists':_0x144e6a['is_duplica'+'te'],'file_id':_0x144e6a[_0x414fd1(-0x3a,-0x71)+_0x414fd1(-0xc2,-0xcc)]?.['id']};}async['createMemo'+_0x2e94db(0x6c,0x44)](_0x5de6f7,_0x823e53,_0x2aa2d6){const _0x486b65=await this['request'](_0x28746d(0x29f,0x2f3),_0x28746d(0x2d8,0x258)+'mory-files',{'memory_id':_0x5de6f7,'file_id':_0x823e53,'reference_type':_0x2aa2d6[_0xa9cf30(0x5ca,0x583)+_0x28746d(0x2bc,0x256)],'reference_path':_0x2aa2d6['reference_'+_0xa9cf30(0x4f0,0x52d)]});function _0xa9cf30(_0x3168a0,_0x362b65){return _0x7de6bb(_0x3168a0,_0x362b65-0x29a);}function _0x28746d(_0x578fd7,_0x2792ed){return _0x7de6bb(_0x2792ed,_0x578fd7-0x6a);}return _0x486b65;}async[_0x7de6bb(0x286,0x228)+_0x7de6bb(0x2d2,0x27e)](_0x448896){const _0x38a3c5={'fdnEY':_0x4c6851(0x64,0x67)};function _0x4c6851(_0x2c38a2,_0x5477cd){return _0x2e94db(_0x5477cd-0x9d,_0x2c38a2);}function _0x59157f(_0x55308b,_0x47ba8d){return _0x2e94db(_0x55308b-0x1b6,_0x47ba8d);}return this[_0x4c6851(0xac,0x2e)](_0x38a3c5[_0x4c6851(0xce,0xad)],'/api/v1/mc'+'g/contexts',_0x448896);}async[_0x2e94db(-0xd,-0x3a)+_0x2e94db(0x2e,-0x30)](_0xe82baa,_0x28188d){const _0x25d5b6={'XxFpG':_0x3ea4b6(0x51,0x72)};function _0x2edc29(_0x2184dc,_0x3d0ae6){return _0x2e94db(_0x2184dc-0x3db,_0x3d0ae6);}function _0x3ea4b6(_0x4deb6b,_0x357507){return _0x2e94db(_0x357507-0xa8,_0x4deb6b);}return this[_0x2edc29(0x36c,0x357)](_0x25d5b6[_0x2edc29(0x3f5,0x459)],_0x2edc29(0x42c,0x3de)+_0x3ea4b6(0x100,0x90)+'/'+_0xe82baa+_0x3ea4b6(0xe5,0x12e),_0x28188d);}async[_0x2e94db(0x7a,0x23)+_0x7de6bb(0x1f1,0x269)](_0x376661){function _0x5609cc(_0x5f0c15,_0x75cf91){return _0x2e94db(_0x75cf91-0x475,_0x5f0c15);}const _0x230757={'FDkzM':_0x5609cc(0x469,0x4c6)+_0x5609cc(0x56c,0x4f1)+'s'};function _0x2d5a59(_0x10e91f,_0x29a0f4){return _0x2e94db(_0x10e91f-0x2a1,_0x29a0f4);}return this[_0x2d5a59(0x232,0x1c8)](_0x2d5a59(0x26b,0x1f3),_0x230757[_0x2d5a59(0x324,0x321)],_0x376661);}async[_0x2e94db(-0x28,-0x95)+_0x7de6bb(0x202,0x21f)](_0x449134){function _0x216d2a(_0x4ba4df,_0x742c29){return _0x7de6bb(_0x4ba4df,_0x742c29-0x2ac);}function _0x4cd40c(_0x37e076,_0x5a6a9f){return _0x7de6bb(_0x37e076,_0x5a6a9f-0x11e);}try{const _0x506d6e=await this[_0x4cd40c(0x2c6,0x31a)]('POST',_0x4cd40c(0x394,0x31f)+_0x4cd40c(0x38e,0x348)+_0x4cd40c(0x3e7,0x3bd),{'content':_0x449134['content'][_0x4cd40c(0x34c,0x352)](0x0,0x7d0),'tags':_0x449134[_0x4cd40c(0x3ad,0x3c2)]??[],'category':_0x449134[_0x216d2a(0x5f8,0x585)]}),_0x5c8171=_0x506d6e;if(_0x5c8171[_0x4cd40c(0x39d,0x3f1)]&&_0x5c8171['result'])return _0x5c8171[_0x4cd40c(0x439,0x3d8)];return null;}catch{return null;}}static ['RETRYABLE_'+'STATUS']=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x7de6bb(0x2c4,0x27d)+'S']=0x3;static ['BASE_DELAY'+_0x7de6bb(0x29b,0x2dc)]=0x3e8;async[_0x7de6bb(0x20b,0x1fc)](_0x36862b,_0x3ef078,_0x3e2083){const _0x152d3b={'dRdUE':function(_0x2fa0d7,_0x455351,_0x264679){return _0x2fa0d7(_0x455351,_0x264679);},'eGqHL':function(_0x1ff58a,_0x288dfa,_0x5cc3c3){return _0x1ff58a(_0x288dfa,_0x5cc3c3);},'GNgoI':function(_0x58270b,_0xc1033c){return _0x58270b>_0xc1033c;},'hCLKb':function(_0x14f36f,_0x53c332){return _0x14f36f(_0x53c332);},'xeGHP':function(_0x37c2d6,_0x29632d){return _0x37c2d6<_0x29632d;},'DptsS':function(_0x5c6140,_0x242646){return _0x5c6140===_0x242646;},'mVYWq':_0x14a5a0(0x226,0x1a9),'dKezG':function(_0x47a4aa,_0x18c803){return _0x47a4aa instanceof _0x18c803;},'kvSsZ':'인증\x20실패','ejcEB':_0x3754a1(-0xdd,-0xb3),'McYmY':_0x3754a1(-0xca,-0xe9),'VjAtg':_0x14a5a0(0x251,0x257),'ONJrf':function(_0x15a2b3,_0x192a1e){return _0x15a2b3*_0x192a1e;},'gDTTu':function(_0x26bb63,_0x3707d7){return _0x26bb63===_0x3707d7;}};let _0x2b8b30;for(let _0x15339a=0x0;_0x15339a<A2AClient[_0x14a5a0(0x217,0x1e4)+'S'];_0x15339a++){const _0x4d8098=''+this[_0x3754a1(-0xf5,-0xdc)][_0x14a5a0(0x198,0x1bc)]+_0x3ef078,_0x19829c=new AbortController(),_0x540674=_0x152d3b[_0x3754a1(-0x118,-0x13c)](setTimeout,()=>_0x19829c['abort'](),this[_0x3754a1(-0x150,-0xdb)]);try{const _0x32acc6=await _0x152d3b[_0x3754a1(-0xec,-0x96)](fetch,_0x4d8098,{'method':_0x36862b,'headers':{'Content-Type':'applicatio'+_0x14a5a0(0x220,0x1de),'x-api-key':this[_0x3754a1(-0xf5,-0xca)][_0x3754a1(-0xaf,-0xf1)],'X-Plugin-Version':_pluginVersion,..._0x152d3b[_0x14a5a0(0x15c,0x180)](this[_0x3754a1(-0xbe,-0x12d)+_0x3754a1(-0x74,-0x85)][_0x14a5a0(0x189,0x1c0)],0x0)&&{'X-Plugin-Features':this[_0x14a5a0(0x1e5,0x205)+_0x3754a1(-0x74,-0x7c)][_0x3754a1(-0x14f,-0x168)](',')}},'body':_0x3e2083?JSON[_0x3754a1(-0xdb,-0x12c)](_0x3e2083):undefined,'signal':_0x19829c[_0x14a5a0(0x27b,0x225)]});_0x152d3b['hCLKb'](clearTimeout,_0x540674);if(A2AClient['RETRYABLE_'+_0x14a5a0(0x267,0x1f5)]['has'](_0x32acc6[_0x14a5a0(0x1ba,0x20d)])&&_0x152d3b[_0x3754a1(-0x129,-0xc7)](_0x15339a,A2AClient['MAX_RETRIE'+'S']-0x1)){const _0x2afe7d=A2AClient[_0x3754a1(-0xc0,-0xef)+_0x3754a1(-0x80,-0x95)]*Math[_0x3754a1(-0x15f,-0x145)](0x2,_0x15339a);await new Promise(_0x1e9f2c=>setTimeout(_0x1e9f2c,_0x2afe7d));continue;}!_0x32acc6['ok']&&await this[_0x14a5a0(0x2b6,0x259)+_0x3754a1(-0x165,-0x1b4)](_0x32acc6);if(_0x152d3b[_0x14a5a0(0x15c,0x16e)](_0x36862b,_0x152d3b[_0x14a5a0(0x1ab,0x18d)])&&_0x32acc6[_0x3754a1(-0xb6,-0xc8)]===0xcc)return;return await _0x32acc6[_0x3754a1(-0x76,-0x4d)]();}catch(_0x337d3c){_0x152d3b[_0x3754a1(-0xe7,-0xeb)](clearTimeout,_0x540674);if(_0x152d3b[_0x14a5a0(0x28c,0x21f)](_0x337d3c,Error)){if(_0x337d3c[_0x3754a1(-0x115,-0x11d)][_0x14a5a0(0x21c,0x1b2)](_0x152d3b[_0x3754a1(-0x10f,-0xbb)])||_0x337d3c[_0x14a5a0(0x178,0x1ae)][_0x14a5a0(0x1de,0x1b2)](_0x152d3b[_0x14a5a0(0x17e,0x1af)])||_0x337d3c[_0x14a5a0(0x168,0x1ae)][_0x3754a1(-0x111,-0xc5)](_0x152d3b[_0x14a5a0(0x29c,0x21d)])||_0x337d3c['message'][_0x14a5a0(0x1c2,0x1b2)](_0x152d3b['VjAtg']))throw _0x337d3c;if(_0x15339a<A2AClient[_0x14a5a0(0x213,0x1e4)+'S']-0x1){_0x2b8b30=_0x337d3c;const _0x560d4e=_0x152d3b[_0x3754a1(-0x112,-0x179)](A2AClient[_0x3754a1(-0xc0,-0xe7)+'_MS'],Math[_0x14a5a0(0x150,0x164)](0x2,_0x15339a));await new Promise(_0x383bb7=>setTimeout(_0x383bb7,_0x560d4e));continue;}if(_0x152d3b[_0x14a5a0(0x1fc,0x1ea)](_0x337d3c[_0x3754a1(-0x94,-0xa4)],'AbortError'))throw new Error(_0x3754a1(-0xe9,-0x82)+this['timeout']+_0x14a5a0(0x1a8,0x183));throw new Error('네트워크\x20오류:\x20'+_0x337d3c[_0x14a5a0(0x1f0,0x1ae)]);}throw _0x337d3c;}}function _0x3754a1(_0x509f20,_0x3fab0a){return _0x7de6bb(_0x3fab0a,_0x509f20- -0x35c);}function _0x14a5a0(_0x2f048f,_0x1e215a){return _0x7de6bb(_0x2f048f,_0x1e215a- -0x99);}throw _0x2b8b30??new Error(_0x3754a1(-0x14c,-0x1be)+A2AClient['MAX_RETRIE'+'S']+_0x3754a1(-0x7f,-0x63));}async[_0x2e94db(0x5f,0x6f)+'tipart'](_0x30e757,_0x4b1eea,_0x108a0a){const _0x12c1ec={'HNOHh':function(_0x3025ac,_0x1a9d27,_0xa288a3){return _0x3025ac(_0x1a9d27,_0xa288a3);},'FiAYq':function(_0x1b50e9,_0x3671c1){return _0x1b50e9(_0x3671c1);}},_0x463f8b=''+this[_0xecdb13(0x36c,0x361)][_0xecdb13(0x35a,0x349)]+_0x4b1eea;function _0x591bb2(_0x3d053f,_0x1a8c81){return _0x7de6bb(_0x3d053f,_0x1a8c81-0x2a0);}function _0xecdb13(_0x13ba8b,_0x3148cc){return _0x7de6bb(_0x3148cc,_0x13ba8b-0x105);}const _0x4771b3=new AbortController(),_0x54bc7f=setTimeout(()=>_0x4771b3[_0x591bb2(0x555,0x549)](),this[_0xecdb13(0x311,0x2fb)]);try{const _0x38a2c6=await _0x12c1ec[_0xecdb13(0x3d6,0x3df)](fetch,_0x463f8b,{'method':_0x30e757,'headers':{'x-api-key':this[_0x591bb2(0x57c,0x507)][_0xecdb13(0x3b2,0x370)],'X-Plugin-Version':_pluginVersion},'body':_0x108a0a,'signal':_0x4771b3['signal']});return clearTimeout(_0x54bc7f),!_0x38a2c6['ok']&&await this['handleErro'+_0xecdb13(0x2fc,0x369)](_0x38a2c6),await _0x38a2c6[_0x591bb2(0x51d,0x586)]();}catch(_0x8c8f33){_0x12c1ec['FiAYq'](clearTimeout,_0x54bc7f);if(_0x8c8f33 instanceof Error&&_0x8c8f33[_0xecdb13(0x3cd,0x3b4)]===_0xecdb13(0x33f,0x379))throw new Error(_0x591bb2(0x49b,0x513)+this[_0xecdb13(0x311,0x35a)]+'ms를\x20넘었습니다');throw _0x8c8f33;}}async['handleErro'+'rResponse'](_0x1cb10c){function _0x128672(_0x55534d,_0xe2e1b4){return _0x2e94db(_0xe2e1b4- -0x115,_0x55534d);}const _0x4d0392={'iQwSr':function(_0x4921d1,_0x28f8ff){return _0x4921d1===_0x28f8ff;},'uPaJr':_0x4964ea(0x59b,0x58e)+'후\x20다시\x20시도하세요'},_0x188c07=_0x1cb10c['status'];if(_0x188c07===0x191)throw new Error(_0x128672(-0xb0,-0xeb)+_0x4964ea(0x52a,0x591)+'요');function _0x4964ea(_0x3706e5,_0x24249b){return _0x2e94db(_0x24249b-0x5c0,_0x3706e5);}if(_0x4d0392['iQwSr'](_0x188c07,0x1ad))throw new Error(_0x4d0392[_0x4964ea(0x541,0x557)]);let _0x5def10='HTTP\x20'+_0x188c07;try{const _0x11bb7b=await _0x1cb10c['json']();if(_0x11bb7b[_0x4964ea(0x54f,0x583)])_0x5def10+=':\x20'+_0x11bb7b[_0x128672(-0x165,-0x152)];else _0x11bb7b['message']&&(_0x5def10+=':\x20'+_0x11bb7b['message']);}catch{}throw new Error(_0x5def10);}}
|
|
1
|
+
function _0x2354f1(_0x1549c8,_0x565743){return _0x197d(_0x565743- -0xea,_0x1549c8);}function _0xc72ffd(_0x9e2b1a,_0x2e75a9){return _0x197d(_0x2e75a9-0x161,_0x9e2b1a);}function _0x197d(_0x9b781c,_0x3e9388){_0x9b781c=_0x9b781c-0xb3;const _0x2de5f4=_0x2de5();let _0x197d91=_0x2de5f4[_0x9b781c];if(_0x197d['XsailG']===undefined){var _0x5baa8b=function(_0x4693e6){const _0x343322='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x238b34='',_0x5e70f2='';for(let _0x5e3b50=0x0,_0x3b90e3,_0x2f8f2f,_0x3fd851=0x0;_0x2f8f2f=_0x4693e6['charAt'](_0x3fd851++);~_0x2f8f2f&&(_0x3b90e3=_0x5e3b50%0x4?_0x3b90e3*0x40+_0x2f8f2f:_0x2f8f2f,_0x5e3b50++%0x4)?_0x238b34+=String['fromCharCode'](0xff&_0x3b90e3>>(-0x2*_0x5e3b50&0x6)):0x0){_0x2f8f2f=_0x343322['indexOf'](_0x2f8f2f);}for(let _0x4df9f7=0x0,_0x467ef4=_0x238b34['length'];_0x4df9f7<_0x467ef4;_0x4df9f7++){_0x5e70f2+='%'+('00'+_0x238b34['charCodeAt'](_0x4df9f7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5e70f2);};_0x197d['RNsMXv']=_0x5baa8b,_0x197d['qEkSFS']={},_0x197d['XsailG']=!![];}const _0x370aca=_0x2de5f4[0x0],_0x396b76=_0x9b781c+_0x370aca,_0x4746dd=_0x197d['qEkSFS'][_0x396b76];return!_0x4746dd?(_0x197d91=_0x197d['RNsMXv'](_0x197d91),_0x197d['qEkSFS'][_0x396b76]=_0x197d91):_0x197d91=_0x4746dd,_0x197d91;}(function(_0x576b22,_0x3f23ff){const _0x5b805f=_0x576b22();function _0x337983(_0x4ba9ff,_0x3bf502){return _0x197d(_0x4ba9ff- -0x331,_0x3bf502);}function _0x228690(_0x18db90,_0x58bbc6){return _0x197d(_0x58bbc6- -0x388,_0x18db90);}while(!![]){try{const _0x597767=parseInt(_0x228690(-0x333,-0x2b0))/0x1*(parseInt(_0x228690(-0x292,-0x24d))/0x2)+-parseInt(_0x337983(-0x26f,-0x2b4))/0x3+-parseInt(_0x337983(-0x16f,-0x15b))/0x4*(-parseInt(_0x337983(-0x1d1,-0x1cb))/0x5)+parseInt(_0x337983(-0x1c9,-0x13e))/0x6+-parseInt(_0x337983(-0x206,-0x211))/0x7+-parseInt(_0x337983(-0x1d0,-0x250))/0x8+-parseInt(_0x337983(-0x1de,-0x229))/0x9*(-parseInt(_0x337983(-0x1f0,-0x273))/0xa);if(_0x597767===_0x3f23ff)break;else _0x5b805f['push'](_0x5b805f['shift']());}catch(_0x4d3912){_0x5b805f['push'](_0x5b805f['shift']());}}}(_0x2de5,0xb954f));import{encryptContent,decryptContent,wrapEncryptedContent,unwrapEncryptedContent}from'./encryption.js';function _0x2de5(){const _0x4d7014=['l2fWAs92ms9Wzq','AM9PBG','BfbnEgG','7jQu7lkTioYlNoQWHcdSTiJQS7W6ia','CLjLC3bVBNnL','CMnO','l21LBw9YAwvZlW','uhLMAMm','B3j0','AxnfBMnYExb0Aq','l2fWAs92ms90CG','Aw5JBhvKzv9LBq','Cgf0AwjPBgL0Eq','ndKXodaWzMjIyNPg','BwvZC2fNzq','A3bRrNG','y29UDgvUDa','BM9KztPMCW','yNfSvLK','CMvZDwX0','BI9HBMfSExPL','B2zPy2LLBMn5pW','BgLTAxq','DgvZDenVBM5LyW','vK1NAMK','BwnnrKW','DNnrwNa','q3fMDwG','l21LBw9YAwvZ','y29UDgv4Df90yq','l2fWAs92ms90yq','CY9WB3b1BgfYpW','zxzLBNqVyMf0yW','r2Dzu08','yxbWBgLJyxrPBW','C3rHCNrZv2L0Aa','CNnVBMfSAxPHDa','zw5HyMXLzezLyq','mZe5ndm4nuPctfDhqG','yMLSAxr5twf0CG','zMfPBgvKigzVCG','l3bYB21VDgu','y3jLyxrLtwvTBW','zvPqBNi','l2fWAs92ms9Tzq','zgvSzxrLtwvTBW','z1fqEKq','zgvJCNLWDe1LBq','Burut0W','BwfW','C2vHCMnO','twvTyMvY','revmrvrf','CgfYC2u','qKDnDgm','BNrLBNq','ufvu','zgv0ywLS','uvresfC','sfruuca0mJi','mJCWnty3BLjoAfDP','l3jLAw5MB3jJzq','wfDMswm','7jQu7lkTioYlPo2mQdOG','Bw9YAwvZl3nLyq','r0vu','CNLFAwq','zw5JCNLWDgLVBG','vw52rM0','ChjVBw90zu1LBq','BM9KztPWyxrO','ywjVCNq','Axq9mq','wxP6y0G','ChjVAMvJDf9Wyq','CMvPBMzVCMnLtq','w2eYyv0GCMvPBG','7j247kADioYlPo2mQdOGqvbj','y3jLyxrLuMvSyq','C2v0','AxnbCNjHEq','z2vUzxjHDgvezq','zxjYB3i','vwjxzxe','qwjVCNrfCNjVCG','AwnPzw5JAwvZ','zf9HDa','Bw9YAwvZl3rHzW','C3rYAw5NAwz5','7zQmioYERoYlNoUpHcdTM4qG7iUK7yYO','BgLZDfrLyw1Z','CMvXDwvZDa','AxnFzhvWBgLJyq','CMvMzxjLBMnLxW','l2fWAs92ms9WCG','DxbSB2fKrMLSzq','yw5ZzMvYl2LTCa','CNnYDNO','y29UzMLN','ChjNwxG','C3rHDhm','zM9Yy2vnzw1VCG','zgLby1O','CMvXDwvZDe11Ba','vgfNCW','C2XPy2u','AwvUy3LfDMvUDa','DvPACw0','C2v0rw5JCNLWDa','ChrPB25lzxK','C2vHCMnOvgvHBq','Bwf4vg9Rzw5Z','rMvHDhvYzxm','v3LNrfm','C3LUyY9KzwX0yq','DxbKyxrLtwvTBW','AM5YtgC','yw5HBhL6zuvTBW','CgfNzv9ZAxPL','wuz4C1u','Aw5JBhvKzuvTyG','DgzTDwi','y2HLy2TgAwXLra','tufyx1jfvfjjrq','l3rLyw1ZlW','zw1IBgu','DhvYzxm','Bwf0CML4','Bw9YEs1MAwXLCW','ywDLlMPZB24','CMLLCW','tu9RDeO','7jwu7zI47zMuio2cPoUkLcaZmIa','Dg90ywXFBwvTBW','EhnpAvq','ww1IsM4','zY9JB250zxH0CW','z2v0vgvHBvn0yq','vgjvrKm','qMf0y2G','ANnVBG','ELzTuLK','BgvZl2nOzwnRlq','mJG2mtC0n1nYyK9pDW','vu5Hswm','AgHlzwi','AwvUy2LLCW','C2vHCMnOtwvTBW','twviCNO','yxn0weu','u0zoDfC','ieTLEEULVcdTMzxSNBJTLzJSHlG','B2zMC2v0','qKzwAMq','C2TPBgXFBwvTBW','DgLWyxj0','Aw9Us2v5','z2v0vhjHBNnMzq','yw5ZzMvYl2nVBq','nMrxsNHJAq','zxzLBNq','B25fBMfIBgvK','Dg90ywXFBM9Kzq','DMvYC2LVBG','DuHHA3i','mJm2mZbjtfDiuvy','Cg9ZDfbYB2zPyW','zMLSzq','sfruuca0mdq','zLDhDg0','zxHWB3j0uhjVzG','C3LUyY9HChbSEq','whzkEM4','EvDpDKC','DgLTzw91Da','zw1VCNLgzwvKyG','ExvjDgC','zwrKAw5N','Bg9J','u1rbvfvt','zMLSzw5HBwu','CNLgAwXLtgLUAW','Dg9tDhjPBMC','nJe4m01SswrwBa','mc4WlJa','sM5vsw4','z2v0q29TCgf0Aq','Bw9YAwvZl2jHDa','BLjtDK4','ihWG','wvLdv3C','DgLVBG','64sK7yQ47jUm7ygSioYyPoULMdOG','y2f0zwDVCMLLCW','C2LNBMfS','CKHPC3rVCNK','mtvovurXz00','nZe0nJiWogTnq3Divq','zY9YzwXHDgLVBG','BKTcA2i','l2fWAs92ms9MAq','DgfNCW','y2XHC3nPzNLdBW','rw5YDvG','mtKZmJq3ng9rsKHVyq','A0jOAxa','y25gwhC','lI4VlI4VCgfJAW','x01t','Bwf4twvTB3jPzq','BxpRPBWG64sy7jEi7iQ164Ui64UK','yw5ZzMvYl2v4Ca','Aw1WB3j0uhjVzG','yMvKzgLUzW','7j247kADioYlPo2mQa','B2zPy2LLBMn5lW','uxDMA0m','zgLMzMLJDwX0Eq','yxbPs2v5','EuzLzwrIywnRia','Bw9YAwvZ','yxnZzw1IBgvdBW','Ewz2zMm','qKftrv9eruXbwq','BhrH','uKvuuLLbqKXfxW','B3j5','Cg93','l2fWAs92ms90zq','C3rHDhvZ','vfnbB2O','BgvUz3rO','Bw9YAwvZl3n0yq','DgLLCG','Bw9YAwvZp2XPBq','7jQu7lkTioYGNo2vNdOG7j6G7iUCia','z2v0ug9WDwXHCG','7zUeioUlPoYlNcdSI5ZRJ4tTLzJSHlJSMPq','zxH0','yLbJtvm','v1DhBLO','yw1Z','rvrQA0m','BgfZDf9ZEw5Jzq','yMfZzvvYBa','yxbWzw5K','sfruuca0mdm','wvfhCeu','l2fWAs92ms9TyW','BgvZl3vWBg9Hza','ywrKvgvHBu1LBq','BMfTzq','twvNDMS','s2v5','AgfUzgXLrxjYBW','Bw9YAwvZlW','DxbSAwnHDgu','BhjXBLe','AxrLBxm','zw1VCNK','u1fhquq','ue9tva','DhLWzq','wvvnt3a','y2f0zwDVCNK','zxHPC3rPBMDFzG','l21LBwjLCNm','DxrMltG','Eg9UB215l2nSyq','qMXVyMS','BNrPyMu','zhLXqKy','yNL0zxpSL6ZSLBWG7zwP64Ui','yw5ZzMvYl2HPCW','AwncB3a','AufruuS','C3nPzNK','CMLLC0jHDgnO','C3vJy2vZCW','y1zKywC','Cgf0Aa'];_0x2de5=function(){return _0x4d7014;};return _0x2de5();}let _pluginVersion=_0xc72ffd(0x305,0x2b5);try{const {readFileSync}=await import(_0x2354f1(0xe0,0xdc)),{fileURLToPath}=await import('node:url'),{dirname,join}=await import(_0x2354f1(0x75,-0x8)),__dirname=dirname(fileURLToPath(import.meta.url)),pkg=JSON[_0xc72ffd(0x1c8,0x232)](readFileSync(join(__dirname,_0x2354f1(0x34,0x81)+_0xc72ffd(0x29e,0x27e)),_0x2354f1(0x86,0xbd)));_pluginVersion=pkg[_0x2354f1(-0x36,0x55)]||_0x2354f1(0x4f,0x6a);}catch{}export class A2AClient{[_0x2354f1(-0x78,0x14)];[_0xc72ffd(0x336,0x2ab)];['encryption'+_0x2354f1(0x2c,0xaf)]=null;[_0x2354f1(0x4b,-0x29)+_0xc72ffd(0x23c,0x27b)]=[];constructor(_0x561128){function _0x5b4fce(_0xd62b62,_0x257bb1){return _0x2354f1(_0xd62b62,_0x257bb1-0x308);}this[_0x4f4fe3(-0xb8,-0xb5)]=_0x561128;function _0x4f4fe3(_0x560ffe,_0x21298d){return _0x2354f1(_0x21298d,_0x560ffe- -0xcc);}this['timeout']=_0x561128[_0x4f4fe3(-0x6c,-0x36)]??0xea60;}['setEnabled'+_0x2354f1(0x4e,0x22)](_0x1ae50c){function _0x46f3fb(_0x438a5c,_0x3e7f50){return _0xc72ffd(_0x3e7f50,_0x438a5c- -0x2ad);}function _0xeb6a4(_0x5d713a,_0x4510a2){return _0xc72ffd(_0x4510a2,_0x5d713a- -0x41e);}this[_0xeb6a4(-0x1fc,-0x1a8)+_0xeb6a4(-0x1a3,-0x11e)]=_0x1ae50c;}[_0xc72ffd(0x2d8,0x269)+_0x2354f1(0xd,0x4e)](_0xb8d995){const _0x4ec2f4={'tfmub':_0x4d9f7e(0xd3,0x9f)+_0x4d9f7e(0x15f,0x1be)+'다'};function _0x4d9f7e(_0x1351bf,_0x4918ee){return _0xc72ffd(_0x4918ee,_0x1351bf- -0x1ae);}function _0x1458ef(_0x447b29,_0x130759){return _0xc72ffd(_0x130759,_0x447b29-0xac);}if(_0xb8d995[_0x4d9f7e(0x136,0x1a7)]!==0x20)throw new Error(_0x4ec2f4[_0x1458ef(0x322,0x2e4)]);this[_0x4d9f7e(0x92,0x4a)+_0x1458ef(0x3a6,0x389)]=_0xb8d995;}['clearEncry'+_0xc72ffd(0x2b1,0x26a)](){function _0x22e2ec(_0x2d1c71,_0xb8f9f1){return _0xc72ffd(_0x2d1c71,_0xb8f9f1- -0x31);}this['encryption'+_0x22e2ec(0x30d,0x2c9)]=null;}[_0x2354f1(0x150,0xd4)+_0xc72ffd(0x2a0,0x29e)](){function _0x335310(_0x3f430b,_0x2bea38){return _0x2354f1(_0x3f430b,_0x2bea38- -0x1de);}return this[_0x335310(-0x166,-0x1e9)+'Key']!==null;}async['createMemo'+'ry'](_0x1747a9){function _0x375d94(_0x14b321,_0x1c5c85){return _0xc72ffd(_0x14b321,_0x1c5c85-0x275);}const _0x38abe0={'lPMxh':function(_0x21bd37,_0x3406fb,_0x490ef8){return _0x21bd37(_0x3406fb,_0x490ef8);},'BFVjd':function(_0x50bf4d,_0x1b87f7,_0x13f64f){return _0x50bf4d(_0x1b87f7,_0x13f64f);},'TbUFC':_0x375d94(0x5a6,0x577),'qTtbU':_0x375d94(0x45d,0x49e)+_0x3a828d(0x4e7,0x4cd),'tETyx':function(_0x33dce0,_0x4b2e9e){return _0x33dce0!==_0x4b2e9e;},'jMtSa':_0x375d94(0x4c4,0x53d),'icBop':function(_0xf28bc9,_0x34c74e,_0x482ff9){return _0xf28bc9(_0x34c74e,_0x482ff9);}};let _0x255141=_0x1747a9[_0x3a828d(0x495,0x51a)];if(this[_0x3a828d(0x41e,0x434)+_0x3a828d(0x54b,0x4ee)]){const _0xa58109=_0x38abe0[_0x375d94(0x585,0x50b)](encryptContent,_0x1747a9[_0x3a828d(0x57d,0x51a)],this[_0x375d94(0x457,0x4b5)+_0x375d94(0x531,0x56f)]);_0x255141=wrapEncryptedContent(_0xa58109);}const _0x5cd746=await this[_0x3a828d(0x4b8,0x44c)](_0x38abe0[_0x375d94(0x57d,0x4fc)],_0x38abe0['qTtbU'],{'content':_0x255141,'category':_0x1747a9['category'],'tier':_0x1747a9[_0x375d94(0x5e2,0x55b)],'tags':_0x1747a9[_0x3a828d(0x458,0x4ba)]??[]});function _0x3a828d(_0x38aeae,_0xc49159){return _0xc72ffd(_0x38aeae,_0xc49159-0x1f4);}const _0x1ad6ad=_0x5cd746;if(this['encryption'+_0x3a828d(0x503,0x4ee)]&&_0x1ad6ad['content']){if(_0x38abe0['tETyx'](_0x3a828d(0x4a7,0x4e8),_0x38abe0['jMtSa'])){const _0x39287f=unwrapEncryptedContent(_0x1ad6ad[_0x375d94(0x52a,0x59b)]);if(_0x39287f){if(_0x3a828d(0x54f,0x4c9)!==_0x3a828d(0x4b0,0x485))_0x1ad6ad[_0x375d94(0x5ee,0x59b)]=_0x38abe0[_0x375d94(0x544,0x584)](decryptContent,_0x39287f,this[_0x3a828d(0x4a5,0x434)+_0x3a828d(0x520,0x4ee)]);else return this['request'](_0x375d94(0x501,0x577),_0x3a828d(0x4ff,0x4e9)+_0x3a828d(0x508,0x4b7)+'s',_0x1ea5ca);}}else{const _0x4cea80=_0x24a486(_0x8fa08d[_0x375d94(0x590,0x59b)]);_0x4cea80&&(_0x91ceda['content']=_0x38abe0[_0x375d94(0x5f3,0x58d)](_0x3a1a3d,_0x4cea80,this[_0x3a828d(0x431,0x434)+_0x375d94(0x52b,0x56f)]));}}return _0x1ad6ad;}async[_0xc72ffd(0x2f1,0x290)+_0x2354f1(0x70,0x34)](_0x4defd7,_0x47dc88){const _0x38cf14={'zVmRY':_0x551ba4(0x2e9,0x25d),'QTDHW':_0xeb58e3(0x21e,0x226)+_0x551ba4(0x224,0x2ab)+_0xeb58e3(0x397,0x318)};function _0xeb58e3(_0x5cd499,_0xf1fc78){return _0x2354f1(_0x5cd499,_0xf1fc78-0x248);}const _0x8aa9f1=await this[_0xeb58e3(0x221,0x255)](_0x38cf14[_0xeb58e3(0x2bb,0x287)],_0x38cf14[_0x551ba4(0x21e,0x290)],{'query':_0x4defd7,'limit':_0x47dc88?.['limit']??0xa,'category':_0x47dc88?.[_0xeb58e3(0x2ff,0x302)]});function _0x551ba4(_0x5de894,_0x5495ca){return _0x2354f1(_0x5495ca,_0x5de894-0x232);}return _0x8aa9f1[_0x551ba4(0x2e6,0x2df)]??[];}async['listMemori'+'es'](_0x4b888b){const _0x4503ae={'SFNtW':_0x1f9c98(0x38,0x46)},_0x5891cd=new URLSearchParams();if(_0x4b888b?.[_0x1f8e9f(0x312,0x2e5)])_0x5891cd['set'](_0x1f8e9f(0x312,0x35a),_0x4b888b['limit']['toString']());if(_0x4b888b?.[_0x1f8e9f(0x27b,0x2d9)])_0x5891cd[_0x1f9c98(0x46,0x54)](_0x1f8e9f(0x27b,0x26c),_0x4b888b[_0x1f9c98(0x10b,0x9d)][_0x1f9c98(0xbe,0xbb)]());function _0x1f8e9f(_0xfb7e75,_0x303463){return _0xc72ffd(_0x303463,_0xfb7e75- -0x1a);}function _0x1f9c98(_0x488564,_0x58a728){return _0xc72ffd(_0x488564,_0x58a728- -0x1f8);}if(_0x4b888b?.[_0x1f8e9f(0x25b,0x2af)+_0x1f8e9f(0x294,0x284)])_0x5891cd[_0x1f8e9f(0x232,0x26e)](_0x1f9c98(0x10c,0x129)+_0x1f9c98(0x124,0xda),'true');const _0x4feae9=_0x1f8e9f(0x20f,0x1ee)+_0x1f8e9f(0x2bf,0x23a)+(_0x5891cd['toString']()?'?'+_0x5891cd[_0x1f8e9f(0x299,0x214)]():''),_0x343459=await this['request'](_0x4503ae[_0x1f8e9f(0x279,0x2ce)],_0x4feae9),_0x185f9d=_0x343459['items']??[];if(this['encryption'+'Key'])return _0x185f9d['map'](_0x496696=>this[_0x1f8e9f(0x212,0x1ef)+_0x1f8e9f(0x2c5,0x304)](_0x496696));return _0x185f9d;}[_0xc72ffd(0x2b0,0x22c)+_0x2354f1(0x75,0x94)](_0x21b86c){const _0x322cbb={'vsQZp':'POST','nRSvN':'sznNO','uHakr':function(_0x3958d5,_0x37a2da,_0x20046d){return _0x3958d5(_0x37a2da,_0x20046d);}};function _0x206fb4(_0x2bf2e5,_0x587d5b){return _0xc72ffd(_0x587d5b,_0x2bf2e5- -0x4b8);}function _0x1d5a9c(_0x2fb827,_0x125828){return _0xc72ffd(_0x2fb827,_0x125828-0x1);}if(!this[_0x1d5a9c(0x253,0x241)+_0x1d5a9c(0x2db,0x2fb)])return _0x21b86c;const _0x12d828={..._0x21b86c};if(_0x12d828[_0x1d5a9c(0x2ea,0x327)]){const _0x51c611=unwrapEncryptedContent(_0x12d828['content']);if(_0x51c611){if('sznNO'===_0x322cbb[_0x1d5a9c(0x2cc,0x2ba)])try{_0x12d828[_0x206fb4(-0x192,-0x216)]=_0x322cbb[_0x206fb4(-0x217,-0x1c7)](decryptContent,_0x51c611,this[_0x206fb4(-0x278,-0x227)+_0x1d5a9c(0x286,0x2fb)]);}catch{}else return this[_0x1d5a9c(0x2d7,0x259)](_0x322cbb[_0x206fb4(-0x2a1,-0x2cc)],_0x1d5a9c(0x290,0x2f6)+_0x1d5a9c(0x2fe,0x286)+'/'+_0x3bf0d1+'/members',_0x5c738d);}}return _0x12d828;}async[_0x2354f1(0xab,0x25)+'ry'](_0x880c69,_0x300233){function _0x533039(_0x4e69de,_0x28b44c){return _0xc72ffd(_0x28b44c,_0x4e69de-0x1c9);}const _0x3698ba=await this['request'](_0x4201f8(0x49,0x65),_0x4201f8(0x3d,0x6d)+_0x533039(0x4c5,0x4c3)+_0x880c69,_0x300233);function _0x4201f8(_0xed8732,_0x54d1b2){return _0xc72ffd(_0x54d1b2,_0xed8732- -0x1ec);}return _0x3698ba;}async[_0x2354f1(-0x6f,-0x21)+'ry'](_0x5426f){function _0x2cc915(_0x92c08e,_0x2f1197){return _0x2354f1(_0x2f1197,_0x92c08e-0x1bf);}function _0x48ca47(_0x30bab8,_0x30eb18){return _0x2354f1(_0x30eb18,_0x30bab8-0x89);}await this[_0x2cc915(0x1cc,0x1ea)](_0x48ca47(0x6f,0xc3),_0x2cc915(0x19d,0x183)+_0x2cc915(0x270,0x2ca)+_0x5426f);}async[_0x2354f1(-0x42,0xc)](){function _0x2827e5(_0x24716e,_0x2d9ba6){return _0xc72ffd(_0x24716e,_0x2d9ba6-0xd9);}const _0x21b9fd={'gQPzD':_0xa79eb8(-0xa4,-0x120)+_0xa79eb8(-0x188,-0x113)},_0x49d4c7=await this[_0x2827e5(0x3b9,0x331)](_0xa79eb8(-0x222,-0x1c3),_0x21b9fd[_0xa79eb8(-0x1db,-0x1d6)]);if(Array[_0x2827e5(0x3a5,0x326)](_0x49d4c7))return _0x49d4c7;function _0xa79eb8(_0x2f504f,_0xc9b50){return _0xc72ffd(_0x2f504f,_0xc9b50- -0x401);}return _0x49d4c7[_0xa79eb8(-0xc2,-0x102)]??[];}async['listTeamMe'+'mories'](_0x4bfa2f,_0x272da2){function _0x51fcd9(_0x5ee965,_0x4fad40){return _0x2354f1(_0x5ee965,_0x4fad40- -0x1ef);}const _0x2c1228=new URLSearchParams();if(_0x272da2?.[_0x51fcd9(-0x11a,-0x10e)])_0x2c1228['set'](_0x51fcd9(-0xc0,-0x10e),_0x272da2[_0x51fcd9(-0xdf,-0x10e)][_0x57ab30(0x378,0x2f9)]());if(_0x272da2?.[_0x51fcd9(-0x1f7,-0x1a5)])_0x2c1228[_0x57ab30(0x2f7,0x292)](_0x57ab30(0x283,0x2db),_0x272da2[_0x51fcd9(-0x186,-0x1a5)][_0x51fcd9(-0x166,-0x187)]());const _0x522405=_0x2c1228['toString'](),_0x2adbfd=_0x51fcd9(-0x201,-0x1c1)+encodeURIComponent(_0x4bfa2f)+_0x51fcd9(-0x247,-0x221)+(_0x522405?'?'+_0x522405:''),_0x494ac5=await this[_0x51fcd9(-0x1b0,-0x1e2)](_0x51fcd9(-0x192,-0x1fc),_0x2adbfd);function _0x57ab30(_0x5cb2ce,_0x4d9b8b){return _0x2354f1(_0x5cb2ce,_0x4d9b8b-0x291);}return _0x494ac5['items']??[];}async[_0x2354f1(0x3c,0xac)+'ory'](_0x459b3e,_0xa8c3e9){function _0x1317eb(_0x3560d5,_0x3df4f9){return _0xc72ffd(_0x3df4f9,_0x3560d5- -0x289);}const _0x1e6f41=await this['request'](_0x1e99c9(0x28,0x86),_0x1e99c9(-0x1f,-0x3)+encodeURIComponent(_0x459b3e)+'/memories',_0xa8c3e9);function _0x1e99c9(_0x5c7ae3,_0x45560d){return _0xc72ffd(_0x5c7ae3,_0x45560d- -0x27c);}return _0x1e6f41;}async[_0x2354f1(0x5d,0x20)+'Memories'](_0xce64c9,_0x7b869a,_0x1a3655){const _0x561b08=await this['request'](_0x4018b7(0x3fd,0x426),_0x21d295(0x4a0,0x4f4)+encodeURIComponent(_0xce64c9)+(_0x4018b7(0x417,0x4a2)+_0x21d295(0x456,0x4db)),{'query':_0x7b869a,'limit':_0x1a3655?.[_0x4018b7(0x427,0x417)]??0xa,'category':_0x1a3655?.[_0x4018b7(0x400,0x474)]});function _0x4018b7(_0x50fad5,_0x54b275){return _0x2354f1(_0x54b275,_0x50fad5-0x346);}function _0x21d295(_0x332172,_0x47e3ff){return _0x2354f1(_0x47e3ff,_0x332172-0x472);}return _0x561b08['items']??[];}async[_0xc72ffd(0x267,0x24e)+_0xc72ffd(0x34f,0x2dd)](_0x8b58ff,_0x45544e,_0x3e08ba){function _0x4ecdda(_0x9d9a25,_0x2de479){return _0xc72ffd(_0x2de479,_0x9d9a25-0xd0);}function _0x3f6b4b(_0x11ed09,_0x630b5){return _0xc72ffd(_0x630b5,_0x11ed09- -0xb2);}return this[_0x4ecdda(0x328,0x2c5)](_0x4ecdda(0x3d2,0x3e3),_0x3f6b4b(0x1c7,0x1d1)+encodeURIComponent(_0x8b58ff)+('/memories/'+_0x3f6b4b(0x1bd,0x173)),{'memory_id':_0x45544e,'vector_clock':_0x3e08ba});}async['applyDelta'](_0x5732fc,_0xa13b75,_0x6dcb2f){function _0x5cf9d8(_0x2278e9,_0x3a45c1){return _0xc72ffd(_0x2278e9,_0x3a45c1- -0x21e);}function _0x4009ff(_0x50f7dd,_0x8426b8){return _0xc72ffd(_0x8426b8,_0x50f7dd- -0x1ba);}const _0x16fd4a={'YmbJn':_0x4009ff(0x148,0x14a)};return this[_0x5cf9d8(0x39,0x3a)](_0x16fd4a[_0x4009ff(0xca,0x108)],'/teams/'+encodeURIComponent(_0x5732fc)+(_0x5cf9d8(0xad,0xfe)+_0x4009ff(0xee,0x14a)),{'memory_id':_0xa13b75,'delta':_0x6dcb2f});}async[_0xc72ffd(0x1e9,0x227)+_0x2354f1(0x125,0xc7)](_0x17fe5f){function _0x46c14f(_0xcd2ece,_0x527591){return _0xc72ffd(_0x527591,_0xcd2ece- -0x4a9);}const _0x1855e0=await this['request'](_0x46c14f(-0x1a7,-0x1ea),_0x46c14f(-0x280,-0x290)+_0x12b26b(-0x21f,-0x28e)+'ch',{'items':_0x17fe5f});function _0x12b26b(_0x569db5,_0xf23591){return _0xc72ffd(_0xf23591,_0x569db5- -0x4d7);}return _0x1855e0;}async[_0xc72ffd(0x23a,0x214)+_0xc72ffd(0x2e5,0x2bc)](){function _0x4d0d01(_0x509e8b,_0x508e01){return _0x2354f1(_0x508e01,_0x509e8b- -0x263);}const _0x3e5c5e={'mcMFL':_0x4d0d01(-0x270,-0x1fb)};function _0x536580(_0x368085,_0x411a33){return _0x2354f1(_0x368085,_0x411a33- -0x183);}try{return await this['request'](_0x3e5c5e[_0x4d0d01(-0x298,-0x216)],_0x536580(-0x1a0,-0x1a5)+_0x4d0d01(-0x1c7,-0x248)+_0x536580(-0x1be,-0x189)),!![];}catch{return![];}}async[_0x2354f1(0x5f,0x8f)+'ntext'](_0x5b4d83,_0x308ac7){function _0x178ff5(_0x2d552e,_0x40557d){return _0xc72ffd(_0x40557d,_0x2d552e- -0x59);}function _0x235d87(_0xc01fb8,_0x1c8bf3){return _0xc72ffd(_0xc01fb8,_0x1c8bf3- -0x1dd);}const _0x4628c8={'astXE':_0x178ff5(0x2a9,0x2df)},_0x3053cc=await this['request'](_0x4628c8[_0x235d87(0x49,0xb5)],_0x235d87(0xc7,0x4c)+'mories/ass'+_0x178ff5(0x221,0x238),{'query':_0x5b4d83,'max_memories':_0x308ac7?.[_0x178ff5(0x275,0x215)+'s']??0x5,'max_tokens':_0x308ac7?.[_0x235d87(0x116,0x8f)]??0x7d0,'categories':_0x308ac7?.[_0x178ff5(0x265,0x232)],'tier':_0x308ac7?.[_0x178ff5(0x28d,0x292)]});return _0x3053cc;}async[_0x2354f1(0x29,-0x3)+_0xc72ffd(0x387,0x300)](_0x30259b){function _0x2b80ef(_0x5a3686,_0x314508){return _0xc72ffd(_0x314508,_0x5a3686- -0x3fb);}const _0x40b384=await this[_0x46c068(0x1cc,0x217)](_0x2b80ef(-0xf9,-0xc7),'/api/v1/me'+'mories/'+_0x30259b+'/reinforce');function _0x46c068(_0x316bc4,_0x118601){return _0xc72ffd(_0x316bc4,_0x118601- -0x41);}return _0x40b384;}async[_0x2354f1(-0x70,-0x3)+_0x2354f1(0xb5,0x61)+'ack'](_0x24d718,_0x3da293){function _0x16d0ed(_0x124da2,_0x4d42cf){return _0xc72ffd(_0x124da2,_0x4d42cf-0xe0);}function _0x41cdc7(_0x5bfd9f,_0x13f4ad){return _0xc72ffd(_0x13f4ad,_0x5bfd9f- -0xa8);}const _0x5bacbc={'cVdag':function(_0x431b5d,_0x561220){return _0x431b5d===_0x561220;},'yWOvG':_0x16d0ed(0x3ca,0x340),'UNaIc':function(_0x307ff4,_0x5a54ea){return _0x307ff4(_0x5a54ea);}};try{if(_0x5bacbc[_0x41cdc7(0x26c,0x264)](_0x5bacbc[_0x16d0ed(0x3fd,0x38a)],_0x41cdc7(0x1b8,0x23e)))await this[_0x16d0ed(0x2fe,0x338)](_0x41cdc7(0x25a,0x263),_0x16d0ed(0x330,0x309)+_0x16d0ed(0x401,0x3dc)+_0x24d718+_0x41cdc7(0x192,0x203),{'success':_0x3da293});else return null;}catch(_0x33c1ec){if(_0x16d0ed(0x3d1,0x3ec)==='OximK')return _0x30b70f[_0x16d0ed(0x422,0x409)];else console[_0x41cdc7(0x1a7,0x1fd)](_0x16d0ed(0x378,0x329)+_0x41cdc7(0x1ba,0x199)+_0x41cdc7(0x230,0x1f0)+_0x16d0ed(0x298,0x305)+'\x20'+_0x24d718+':',_0x33c1ec instanceof Error?_0x33c1ec['message']:_0x5bacbc[_0x16d0ed(0x2ef,0x36d)](String,_0x33c1ec));}}async[_0x2354f1(0x19,-0x9)+_0xc72ffd(0x2d4,0x2df)](_0x589d8f,_0x731b0e){function _0x123a21(_0x1870b5,_0x2dc320){return _0x2354f1(_0x2dc320,_0x1870b5-0x3c2);}function _0x258a41(_0x315455,_0x471892){return _0x2354f1(_0x471892,_0x315455- -0x2e7);}const _0x2a06f0=await this[_0x258a41(-0x2da,-0x33a)](_0x258a41(-0x230,-0x269),_0x258a41(-0x309,-0x38f)+_0x123a21(0x473,0x44a)+_0x589d8f+_0x123a21(0x39d,0x3de));return _0x2a06f0;}async['getStats'](){const _0x1c7f91={'YzzcH':_0x573b08(0x2e2,0x2cc),'BGMtc':'/api/v1/me'+_0x573b08(0x3e7,0x373)+'ts'},_0x17bae5=await this[_0x573b08(0x2a6,0x2e6)](_0x1c7f91[_0x573b08(0x2f3,0x2d4)],_0x1c7f91[_0x4da582(-0xbf,-0xbe)]);function _0x4da582(_0x5bc321,_0x240464){return _0xc72ffd(_0x5bc321,_0x240464- -0x2f1);}function _0x573b08(_0x41dfe9,_0x1ffe44){return _0xc72ffd(_0x41dfe9,_0x1ffe44-0x8e);}return _0x17bae5;}async[_0x2354f1(0x22,0x9e)+_0x2354f1(0x4f,0x1a)](_0x170255=0xa){const _0x4ff7e6={'dGSMV':'GET'},_0x154d6f=new URLSearchParams();_0x154d6f[_0x3953ff(0x239,0x22e)](_0x3953ff(0x2d6,0x30e),_0x170255[_0x4e520d(0xf8,0x113)]());function _0x4e520d(_0xb57e02,_0x27eaa0){return _0xc72ffd(_0xb57e02,_0x27eaa0- -0x1a0);}const _0x33c9d7='/api/v1/me'+_0x4e520d(0xe2,0xb4)+_0x3953ff(0x1cb,0x1fe)+_0x154d6f[_0x3953ff(0x2c6,0x295)]();function _0x3953ff(_0x4afc8c,_0x4f3a38){return _0xc72ffd(_0x4afc8c,_0x4f3a38- -0x1e);}const _0x1431fd=await this[_0x3953ff(0x296,0x23a)](_0x4ff7e6['dGSMV'],_0x33c9d7);return _0x1431fd[_0x3953ff(0x346,0x2e1)]??[];}async[_0xc72ffd(0x2e2,0x286)+'ts'](_0x3ba21d){const _0x54197e=await this[_0x45e674(0x11d,0x166)](_0x598d88(0x40f,0x3d6),_0x598d88(0x44d,0x411)+encodeURIComponent(_0x3ba21d)+(_0x598d88(0x500,0x4b4)+_0x598d88(0x483,0x3f9))),_0x5d57fe=_0x54197e;function _0x45e674(_0x5be442,_0x5ccd00){return _0xc72ffd(_0x5ccd00,_0x5be442- -0x13b);}function _0x598d88(_0x4a5bf6,_0x31d8cb){return _0xc72ffd(_0x4a5bf6,_0x31d8cb-0x198);}const _0x34b950=_0x5d57fe[_0x45e674(0x126,0xc8)]??_0x5d57fe;return{'totalMemories':_0x34b950[_0x45e674(0x147,0x112)+'ries']??0x0,'totalNodes':_0x34b950[_0x598d88(0x476,0x437)+'s']??0x0,'lastSyncedAt':_0x34b950[_0x45e674(0x1b5,0x16f)+_0x45e674(0x118,0x11f)]??null};}async[_0xc72ffd(0x24c,0x2a3)+_0x2354f1(-0x4,0x1c)](_0x53f65c){const _0xd8d2a3={'MOktJ':_0x4ae693(0x145,0xe4)+'oficiency/'+_0x4ae693(0x187,0x1c9)};function _0xd601c1(_0x2be5cf,_0x1e0f96){return _0x2354f1(_0x1e0f96,_0x2be5cf- -0x1f1);}function _0x4ae693(_0x2e5a4b,_0x51688d){return _0x2354f1(_0x51688d,_0x2e5a4b-0x135);}const _0x25ae49=await this['request'](_0x4ae693(0x1ec,0x21e),_0xd8d2a3[_0xd601c1(-0x1bc,-0x208)],{'skill_memory_id':_0x53f65c[_0x4ae693(0x181,0x19e)+_0x4ae693(0x129,0x115)],'outcome':_0x53f65c['outcome'],'difficulty':_0x53f65c[_0x4ae693(0x1c0,0x1b8)],'context_tags':_0x53f65c[_0x4ae693(0x104,0x181)+'gs'],'session_id':_0x53f65c['session_id']});return _0x25ae49;}async[_0x2354f1(0x2b,0x58)+_0x2354f1(0x44,0x1c)+_0xc72ffd(0x2b8,0x288)](_0x2f6794){function _0xfe558d(_0x45e765,_0x5032a9){return _0x2354f1(_0x5032a9,_0x45e765-0x200);}function _0xd840e9(_0x58fe0e,_0x1d173f){return _0x2354f1(_0x1d173f,_0x58fe0e- -0x2d8);}const _0x14d9f2={'tBLXp':_0xfe558d(0x2b7,0x263)};await this[_0xd840e9(-0x2cb,-0x325)](_0x14d9f2['tBLXp'],_0xfe558d(0x210,0x1c1)+_0xd840e9(-0x24f,-0x2af)+_0xfe558d(0x1d2,0x1ef)+'h',{'events':_0x2f6794});}async['listProfic'+_0x2354f1(0x75,0x44)](_0x3c9566){const _0x415453={'hhKeb':_0x5463ab(-0x1ca,-0x233),'bPcMS':'100','zKbWX':_0x5463ab(-0x268,-0x268)};function _0x5463ab(_0x50fb4b,_0x238216){return _0x2354f1(_0x50fb4b,_0x238216- -0x25b);}const _0x5a38c0=new URLSearchParams();_0x5a38c0[_0x5463ab(-0x273,-0x25a)](_0x415453[_0x59984e(0x3c5,0x362)],_0x415453[_0x5463ab(-0x195,-0x1ba)]);if(_0x3c9566)_0x5a38c0[_0x5463ab(-0x255,-0x25a)](_0x59984e(0x34c,0x31b)+'th',_0x3c9566);function _0x59984e(_0x539123,_0x50e4f8){return _0x2354f1(_0x539123,_0x50e4f8-0x31f);}const _0x42b958=_0x59984e(0x384,0x32f)+_0x5463ab(-0x16a,-0x17b)+_0x5a38c0[_0x5463ab(-0x248,-0x1f3)](),_0x250815=await this['request'](_0x415453['zKbWX'],_0x42b958);return _0x250815[_0x5463ab(-0x204,-0x1a7)]??[];}async[_0xc72ffd(0x243,0x272)+_0x2354f1(0xd0,0x71)](_0x43a1ef){function _0x54c26d(_0x40f649,_0x466859){return _0x2354f1(_0x40f649,_0x466859-0x378);}function _0xb230bd(_0x3dee96,_0x1bbf41){return _0x2354f1(_0x1bbf41,_0x3dee96-0xec);}return this[_0xb230bd(0xf9,0x135)]('POST',_0x54c26d(0x3d4,0x443)+_0x54c26d(0x2c8,0x34e)+'ion/emotio'+_0xb230bd(0x1cb,0x240),{'message':_0x43a1ef[_0xb230bd(0x107,0x80)](0x0,0x1f4)});}async[_0x2354f1(0x45,0x5c)+_0xc72ffd(0x26d,0x252)](_0x37885f,_0x31352d){function _0x28c59b(_0x205f05,_0x46ea50){return _0x2354f1(_0x205f05,_0x46ea50-0x287);}const _0xce1f82={'JnUIn':_0x43d06f(0x430,0x493)+_0x28c59b(0x2af,0x30c)+_0x28c59b(0x2f1,0x35a),'nKBkb':function(_0x3d77cc,_0x5a092d){return _0x3d77cc??_0x5a092d;}},_0x395679=await this[_0x43d06f(0x3d3,0x3cb)](_0x28c59b(0x339,0x33e),_0xce1f82[_0x28c59b(0x34c,0x2f2)],{'source_provider':_0x37885f,'skill_ids':_0xce1f82[_0x43d06f(0x428,0x437)](_0x31352d,null)});function _0x43d06f(_0x2bf56a,_0x3b8f0c){return _0x2354f1(_0x2bf56a,_0x3b8f0c-0x3be);}return _0x395679;}async[_0x2354f1(0x7b,0x86)+_0xc72ffd(0x274,0x252)](_0x37dc13,_0x175a2b){function _0x52582a(_0x39e261,_0x38b30b){return _0x2354f1(_0x39e261,_0x38b30b-0x18b);}const _0x2824e1={'UbWeq':_0x52582a(0x1f6,0x242),'yfvfc':_0x136326(0x44b,0x458)+_0x52582a(0x13f,0x19d)+'ort'},_0x4e9660=await this[_0x52582a(0x188,0x198)](_0x2824e1[_0x136326(0x37b,0x3ed)],_0x2824e1[_0x136326(0x406,0x3a2)],{'package':_0x37dc13,'target_provider':_0x175a2b});function _0x136326(_0x36f350,_0x2c8938){return _0x2354f1(_0x2c8938,_0x36f350-0x376);}return _0x4e9660;}async[_0xc72ffd(0x297,0x2b7)+_0x2354f1(-0x4f,-0x27)+'ix'](){function _0x23fe32(_0x38b94a,_0x58a2dc){return _0xc72ffd(_0x58a2dc,_0x38b94a- -0x213);}function _0x656f53(_0x2d781b,_0x4a55a2){return _0xc72ffd(_0x4a55a2,_0x2d781b- -0x4a1);}const _0x528083=await this['request'](_0x23fe32(0x2b,0x26),_0x656f53(-0x181,-0x1f8)+_0x23fe32(0x88,-0x2)+_0x23fe32(0x10f,0x122));return _0x528083[_0x656f53(-0x225,-0x23b)]??[];}async[_0x2354f1(-0x14,0x4f)+_0xc72ffd(0x30e,0x2c0)](_0x280101=0x1){const _0x25dc4f={'Megvk':'page'},_0x1dc2ba=new URLSearchParams();function _0x3afd0d(_0x2d7f65,_0x61710a){return _0x2354f1(_0x61710a,_0x2d7f65-0x219);}_0x1dc2ba[_0x3afd0d(0x21a,0x1d6)](_0x25dc4f[_0x3afd0d(0x2c7,0x2b6)],_0x280101[_0x3afd0d(0x281,0x25a)]());const _0x281920=_0x3afd0d(0x2ee,0x32f)+_0x142f55(-0x6d,-0x3c)+'tory?'+_0x1dc2ba['toString']();function _0x142f55(_0x58d841,_0x5738ba){return _0x2354f1(_0x58d841,_0x5738ba- -0xff);}const _0x220c03=await this['request'](_0x142f55(-0x160,-0x10c),_0x281920);return _0x220c03;}async[_0x2354f1(0x5,0x11)](_0x1a7a12,_0x9789b1){const _0x7d0da={'mDTOL':_0x360a20(0x35e,0x354),'fWGtm':_0x360a20(0x3a6,0x3b5),'XWfIc':_0x443529(-0xad,-0x105)+_0x360a20(0x454,0x407)};function _0x360a20(_0x3e53d6,_0x1b582f){return _0xc72ffd(_0x3e53d6,_0x1b582f-0x111);}const {readFileSync:_0x306f3e}=await import(_0x443529(-0x5b,-0xa3)),{basename:_0x51da36}=await import(_0x7d0da[_0x443529(-0x18c,-0x19d)]);function _0x443529(_0x361463,_0x10b812){return _0xc72ffd(_0x361463,_0x10b812- -0x3ca);}const _0x43c3c0=_0x306f3e(_0x1a7a12),_0x35c039=_0x51da36(_0x1a7a12),_0x1792bd=new FormData();_0x1792bd['append'](_0x7d0da[_0x443529(-0x147,-0x124)],new Blob([_0x43c3c0]),_0x35c039);_0x9789b1[_0x360a20(0x47a,0x416)]&&_0x1792bd[_0x443529(-0x8a,-0xd8)](_0x443529(-0xef,-0xc5),_0x9789b1[_0x443529(-0xec,-0xc5)]);_0x9789b1[_0x443529(-0xb7,-0x104)]&&_0x9789b1[_0x443529(-0x18c,-0x104)][_0x360a20(0x442,0x3f5)]>0x0&&_0x1792bd[_0x443529(-0xe3,-0xd8)]('tags',_0x9789b1[_0x360a20(0x427,0x3d7)][_0x443529(-0xca,-0xb3)](','));const _0x1335e7=await this['requestMul'+_0x360a20(0x31d,0x3a9)]('POST',_0x7d0da[_0x360a20(0x2dc,0x34c)],_0x1792bd),_0x583992=_0x1335e7;return{'id':_0x583992['file_id'],'filename':_0x583992[_0x360a20(0x42f,0x3c2)]};}async[_0xc72ffd(0x29f,0x277)+_0xc72ffd(0x292,0x2fd)](_0x343e03){const _0x35a792={'UnvFm':_0x5a07b9(0x4,0x8e)};function _0x4f3d7c(_0xc4bb61,_0x46c713){return _0x2354f1(_0xc4bb61,_0x46c713-0x31b);}const _0x39de79=await this[_0x4f3d7c(0x2e5,0x328)](_0x35a792[_0x4f3d7c(0x310,0x311)],_0x5a07b9(-0x13,0x51)+_0x5a07b9(0x4d,0x17)+'duplicate',{'content_hash':_0x343e03});function _0x5a07b9(_0x3e9e8b,_0x5db5e5){return _0x2354f1(_0x3e9e8b,_0x5db5e5- -0x29);}const _0x2ce33f=_0x39de79;return{'exists':_0x2ce33f[_0x4f3d7c(0x2b5,0x329)+'te'],'file_id':_0x2ce33f[_0x5a07b9(0x33,0x92)+'ile']?.['id']};}async[_0x2354f1(-0x80,-0x24)+_0xc72ffd(0x335,0x2b2)](_0x7843e1,_0x778a14,_0x3e991c){function _0x505750(_0x350d02,_0x549563){return _0x2354f1(_0x549563,_0x350d02- -0x29);}function _0x46563b(_0x190aa7,_0x231bbb){return _0x2354f1(_0x231bbb,_0x190aa7- -0x1f0);}const _0x52f88a=await this[_0x505750(-0x1c,-0x5)](_0x505750(0x8e,0xf3),_0x46563b(-0x212,-0x260)+_0x505750(0x9,0x78),{'memory_id':_0x7843e1,'file_id':_0x778a14,'reference_type':_0x3e991c[_0x46563b(-0x1e1,-0x1b4)+_0x46563b(-0x138,-0x150)],'reference_path':_0x3e991c['reference_'+_0x505750(0xa1,0xf9)]});return _0x52f88a;}async['createCont'+_0xc72ffd(0x336,0x2eb)](_0x27d2ff){const _0xd7474={'MKJpf':_0x3b7693(-0x10f,-0x94),'uZZqm':_0x2bbd85(-0x28c,-0x215)+'g/contexts'};function _0x3b7693(_0x4411bc,_0x5788bc){return _0xc72ffd(_0x5788bc,_0x4411bc- -0x411);}function _0x2bbd85(_0xbf1285,_0x103696){return _0xc72ffd(_0xbf1285,_0x103696- -0x50a);}return this[_0x3b7693(-0x1b9,-0x148)](_0xd7474['MKJpf'],_0xd7474[_0x3b7693(-0x1a9,-0x157)],_0x27d2ff);}async['addContext'+_0x2354f1(-0x83,-0x1b)](_0x517993,_0x3c07b6){function _0x5c70fa(_0x1eb776,_0x3dd541){return _0x2354f1(_0x3dd541,_0x1eb776-0x4b5);}function _0x51fe42(_0x2900b4,_0x5ed1d6){return _0x2354f1(_0x5ed1d6,_0x2900b4- -0xcd);}const _0x9c8d84={'kpkFx':_0x51fe42(-0x16,-0x6c)};return this[_0x5c70fa(0x4c2,0x43c)](_0x9c8d84[_0x5c70fa(0x58f,0x5ea)],_0x51fe42(-0x23,-0xd)+'g/contexts'+'/'+_0x517993+_0x51fe42(-0x11,-0xd),_0x3c07b6);}async[_0x2354f1(0x34,0x0)+_0x2354f1(0xeb,0x71)](_0x1454e0){function _0x38aace(_0x450432,_0xda9ea3){return _0x2354f1(_0x450432,_0xda9ea3- -0x17c);}function _0x18df93(_0x5d4207,_0x10de7b){return _0x2354f1(_0x5d4207,_0x10de7b-0x190);}return this['request'](_0x38aace(-0x79,-0xc5),'/api/v1/mc'+_0x38aace(-0x185,-0x104)+'s',_0x1454e0);}async[_0xc72ffd(0x31b,0x2c7)+_0x2354f1(-0x4e,-0x17)](_0x5b38a3){const _0x12b846={'bqlVY':_0x2b4873(0x1e1,0x183)+_0x48518e(0x3a1,0x424)+_0x48518e(0x49f,0x42c)};function _0x2b4873(_0x50a42a,_0xd8a1f9){return _0x2354f1(_0x50a42a,_0xd8a1f9-0x1b3);}function _0x48518e(_0x20ab43,_0x298c0b){return _0x2354f1(_0x20ab43,_0x298c0b-0x366);}try{const _0x2d6c0b=await this[_0x2b4873(0x22b,0x1c0)](_0x2b4873(0x2b0,0x26a),_0x12b846[_0x2b4873(0x2a5,0x290)],{'content':_0x5b38a3[_0x2b4873(0x2af,0x28e)][_0x48518e(0x39d,0x381)](0x0,0x7d0),'tags':_0x5b38a3['tags']??[],'category':_0x5b38a3[_0x48518e(0x446,0x420)]}),_0x2670e7=_0x2d6c0b;if(_0x2670e7[_0x48518e(0x460,0x42e)]&&_0x2670e7['result'])return _0x2670e7[_0x48518e(0x45c,0x444)];return null;}catch{return null;}}static [_0x2354f1(0x47,0x93)+_0x2354f1(0x30,0x65)]=new Set([0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]);static [_0x2354f1(-0x5c,0x2d)+'S']=0x3;static ['BASE_DELAY'+'_MS']=0x3e8;async[_0xc72ffd(0x20a,0x258)](_0x2131e3,_0x5927c1,_0x2360e9){function _0x3edbec(_0x4ba072,_0x49c9d5){return _0xc72ffd(_0x4ba072,_0x49c9d5- -0x265);}const _0x570801={'Cqfuh':function(_0x405466,_0x444eb6){return _0x405466<_0x444eb6;},'Pyfjc':function(_0x278918,_0x175b16,_0x1fc96a){return _0x278918(_0x175b16,_0x1fc96a);},'jnrLg':function(_0x1baf6d,_0x44ec1d){return _0x1baf6d===_0x44ec1d;},'GgYSO':_0x3edbec(0xa5,0x66),'WWGnZ':function(_0x35d273,_0x1cd154){return _0x35d273(_0x1cd154);},'YFxsU':function(_0x1db5c4,_0x61a06c){return _0x1db5c4<_0x61a06c;},'WfFfm':function(_0x18ce87,_0x29d8de){return _0x18ce87!==_0x29d8de;},'lrqnQ':'diAcZ','iAQQK':function(_0x3be65d,_0x154217){return _0x3be65d*_0x154217;},'YYCWw':'DELETE','ntibe':function(_0x4f77d9,_0x3b3787){return _0x4f77d9 instanceof _0x3b3787;},'HzIFx':_0x3edbec(0xc8,0x40),'JANyD':function(_0x48656a,_0x2aa1dd){return _0x48656a-_0x2aa1dd;}};let _0x6e9667;for(let _0xa3f4c6=0x0;_0x570801[_0x5a41ec(-0x12a,-0x127)](_0xa3f4c6,A2AClient[_0x3edbec(0x85,0x13)+'S']);_0xa3f4c6++){const _0x29027d=''+this['config']['baseUrl']+_0x5927c1,_0x44650c=new AbortController(),_0x37c9d9=_0x570801[_0x3edbec(0x74,0xb8)](setTimeout,()=>_0x44650c[_0x3edbec(0x4f,-0x21)](),this[_0x3edbec(0x3c,0x46)]);try{if(_0x570801[_0x3edbec(0x53,0xc)](_0x570801[_0x3edbec(-0x48,-0x47)],_0x3edbec(0x112,0x9f)))_0x558408[_0x5a41ec(-0x50,-0xb9)](_0x5a41ec(-0x3d,0x3f),_0xec1b69[_0x3edbec(0x4e,0xa0)]);else{const _0x1f8a4e=await fetch(_0x29027d,{'method':_0x2131e3,'headers':{'Content-Type':_0x3edbec(0x27,-0x46)+'n/json','x-api-key':this[_0x5a41ec(-0xe3,-0x88)]['apiKey'],'X-Plugin-Version':_pluginVersion,...this[_0x5a41ec(-0x120,-0x13b)+_0x3edbec(0x6b,0x16)][_0x3edbec(0xb,0x7f)]>0x0&&{'X-Plugin-Features':this[_0x3edbec(-0x79,-0x43)+_0x5a41ec(-0xc7,-0x100)][_0x5a41ec(-0x2b,-0x8a)](',')}},'body':_0x2360e9?JSON[_0x3edbec(0x22,-0x10)](_0x2360e9):undefined,'signal':_0x44650c[_0x5a41ec(-0x83,-0x10c)]});_0x570801[_0x3edbec(0xa,0x88)](clearTimeout,_0x37c9d9);if(A2AClient[_0x3edbec(0x11,0x79)+_0x5a41ec(-0x92,-0xc)]['has'](_0x1f8a4e[_0x3edbec(0xe6,0x7d)])&&_0x570801[_0x3edbec(-0x41,0xf)](_0xa3f4c6,A2AClient[_0x5a41ec(-0xca,-0x80)+'S']-0x1)){if(_0x570801['WfFfm'](_0x570801[_0x5a41ec(-0x44,-0x52)],_0x5a41ec(-0xdf,-0xdd)))return this[_0x5a41ec(-0xea,-0x6b)](_0x3edbec(0xa9,0x9d),_0x3edbec(-0x2d,0x14)+_0x146cd1(_0x40f7e7)+(_0x3edbec(0xf7,0xb7)+_0x3edbec(0x7,0xa)),{'memory_id':_0x9e0813,'vector_clock':_0x4c8961});else{const _0x3abd79=_0x570801[_0x5a41ec(-0x32,-0x6c)](A2AClient[_0x3edbec(0xb4,0x77)+'_MS'],Math[_0x5a41ec(-0x62,-0xc7)](0x2,_0xa3f4c6));await new Promise(_0xe65e43=>setTimeout(_0xe65e43,_0x3abd79));continue;}}!_0x1f8a4e['ok']&&await this['handleErro'+_0x3edbec(0x7f,0xb5)](_0x1f8a4e);if(_0x2131e3===_0x570801[_0x3edbec(0x4b,0x56)]&&_0x1f8a4e[_0x5a41ec(-0x60,-0x5a)]===0xcc)return;return await _0x1f8a4e[_0x5a41ec(-0xb9,-0x64)]();}}catch(_0x1cf436){_0x570801[_0x3edbec(0x68,0x88)](clearTimeout,_0x37c9d9);if(_0x570801[_0x3edbec(0xbe,0xa6)](_0x1cf436,Error)){if(_0x1cf436[_0x5a41ec(-0x1e,0x48)][_0x3edbec(-0x90,-0x45)](_0x3edbec(0x46,0x6e))||_0x1cf436[_0x3edbec(0x9f,0xbf)][_0x5a41ec(-0x122,-0x18a)](_0x3edbec(0xb6,0x8e))||_0x1cf436[_0x3edbec(0x10b,0xbf)][_0x5a41ec(-0x122,-0xb5)](_0x570801['HzIFx'])||_0x1cf436[_0x5a41ec(-0x1e,0x37)]['startsWith'](_0x5a41ec(-0x10a,-0xa0)))throw _0x1cf436;if(_0x570801[_0x5a41ec(-0x12a,-0x108)](_0xa3f4c6,_0x570801['JANyD'](A2AClient['MAX_RETRIE'+'S'],0x1))){_0x6e9667=_0x1cf436;const _0x4a7999=A2AClient['BASE_DELAY'+_0x5a41ec(-0x75,-0xe6)]*Math[_0x3edbec(0x27,0x7b)](0x2,_0xa3f4c6);await new Promise(_0x27b694=>setTimeout(_0x27b694,_0x4a7999));continue;}if(_0x570801[_0x3edbec(0x3c,0xc)](_0x1cf436[_0x5a41ec(-0x4a,0x6)],_0x3edbec(0xf,-0x14)))throw new Error(_0x5a41ec(-0x29,0x1a)+this[_0x5a41ec(-0x97,-0xf9)]+'ms를\x20넘었습니다');throw new Error(_0x3edbec(0xd4,0x58)+_0x1cf436[_0x5a41ec(-0x1e,-0x63)]);}throw _0x1cf436;}}function _0x5a41ec(_0x17c228,_0x5d20f3){return _0xc72ffd(_0x5d20f3,_0x17c228- -0x342);}throw _0x6e9667??new Error(_0x5a41ec(-0x106,-0x10e)+A2AClient[_0x3edbec(0x50,0x13)+'S']+_0x5a41ec(-0xec,-0xab));}async[_0xc72ffd(0x26c,0x264)+_0x2354f1(0x1f,0x4d)](_0xfd87a,_0x40cd2b,_0x3e8bfc){function _0x3cf8be(_0x920f87,_0x45cb36){return _0xc72ffd(_0x45cb36,_0x920f87-0x79);}const _0x6d1474={'Blobk':function(_0x258063,_0x250b11,_0x13addb){return _0x258063(_0x250b11,_0x13addb);}},_0x479be2=''+this[_0x27c330(-0x2f3,-0x2c3)][_0x3cf8be(0x36a,0x3cb)]+_0x40cd2b,_0x4549f6=new AbortController(),_0x1e9188=_0x6d1474[_0x3cf8be(0x383,0x3c6)](setTimeout,()=>_0x4549f6[_0x3cf8be(0x2bd,0x2f5)](),this['timeout']);function _0x27c330(_0x4650b2,_0x556119){return _0xc72ffd(_0x4650b2,_0x556119- -0x522);}try{const _0x5e4db9=await fetch(_0x479be2,{'method':_0xfd87a,'headers':{'x-api-key':this[_0x3cf8be(0x2d8,0x2ce)][_0x27c330(-0x27a,-0x24b)],'X-Plugin-Version':_pluginVersion},'body':_0x3e8bfc,'signal':_0x4549f6[_0x27c330(-0x279,-0x263)]});return clearTimeout(_0x1e9188),!_0x5e4db9['ok']&&await this[_0x3cf8be(0x374,0x3eb)+'rResponse'](_0x5e4db9),await _0x5e4db9[_0x3cf8be(0x302,0x2b9)]();}catch(_0x4e6113){clearTimeout(_0x1e9188);if(_0x4e6113 instanceof Error&&_0x4e6113[_0x27c330(-0x1ad,-0x22a)]===_0x3cf8be(0x2ca,0x33e))throw new Error(_0x27c330(-0x291,-0x209)+this[_0x27c330(-0x209,-0x277)]+_0x3cf8be(0x348,0x3b4));throw _0x4e6113;}}async[_0x2354f1(0xcf,0xb0)+_0xc72ffd(0x358,0x31a)](_0x15b8dc){const _0x43af64={'VMgji':function(_0x340f28,_0x50ce73){return _0x340f28===_0x50ce73;},'eZPnr':function(_0x161884,_0x573650){return _0x161884===_0x573650;},'xsOiT':'DNcPh','TSAoj':_0x52b4a2(0x228,0x244),'yuItg':_0x12b124(0x5b,0xc6)+_0x12b124(0x13c,0xc8),'XvJzn':function(_0x415efb,_0x1470bb){return _0x415efb===_0x1470bb;},'ddiAU':_0x12b124(0x4,0x3c),'WygDS':_0x52b4a2(0x1d9,0x1fd),'kBhip':_0x12b124(0xe6,0xcd)},_0x2be446=_0x15b8dc['status'];function _0x12b124(_0x5ed88c,_0x434284){return _0xc72ffd(_0x5ed88c,_0x434284- -0x222);}if(_0x43af64[_0x12b124(0x67,-0xd)](_0x2be446,0x191))throw new Error(_0x12b124(-0x33,0x28)+_0x12b124(0x31,0x72)+'요');if(_0x43af64[_0x52b4a2(0x148,0x16b)](_0x2be446,0x1ad)){if(_0x43af64[_0x12b124(0xdf,0x61)]===_0x43af64[_0x52b4a2(0x2b1,0x226)])throw new _0x3fedd0(_0x12b124(-0x63,0x28)+_0x12b124(0xb6,0x72)+'요');else throw new Error(_0x43af64[_0x52b4a2(0x272,0x1f0)]);}let _0x5a3caa='HTTP\x20'+_0x2be446;function _0x52b4a2(_0x183158,_0x5d0ec0){return _0xc72ffd(_0x183158,_0x5d0ec0- -0xbd);}try{const _0x1f2bf2=await _0x15b8dc[_0x12b124(0x72,0x67)]();if(Array[_0x12b124(0x80,0x2b)](_0x1f2bf2['detail'])){if(_0x43af64[_0x12b124(0x103,0x87)](_0x43af64['ddiAU'],_0x52b4a2(0x1ca,0x1a1))){const _0x250a7f=_0x1f2bf2[_0x52b4a2(0x103,0x179)][_0x52b4a2(0xf9,0x171)](_0x1f3c2d=>{function _0x4e855a(_0x5c56cf,_0x34fd94){return _0x12b124(_0x34fd94,_0x5c56cf-0x45);}const _0x579bc=Array[_0x329345(0x43a,0x3c6)](_0x1f3c2d[_0x4e855a(0xd2,0x8c)])?_0x1f3c2d[_0x4e855a(0xd2,0x73)][_0x4e855a(0x13a,0x107)]('.'):'',_0x3c3c8e=_0x1f3c2d['msg']??JSON[_0x4e855a(0x78,0x43)](_0x1f3c2d);function _0x329345(_0x4aaea8,_0x55c351){return _0x12b124(_0x4aaea8,_0x55c351-0x39b);}return _0x579bc?_0x579bc+':\x20'+_0x3c3c8e:_0x3c3c8e;})['join'](_0x43af64[_0x52b4a2(0x187,0x1b1)]);_0x5a3caa+=':\x20'+_0x250a7f;}else _0x26e84c[_0x12b124(0xee,0x104)]=_0x11e024(_0x589ef3,this['encryption'+_0x52b4a2(0x29b,0x23d)]);}else{if(_0x1f2bf2[_0x12b124(0x7c,0x14)]){if(_0x52b4a2(0x267,0x232)===_0x43af64[_0x12b124(0x70,0xa8)])_0x5a3caa+=':\x20'+_0x1f2bf2[_0x52b4a2(0x1ca,0x179)];else return this[_0x52b4a2(0x104,0x183)+'Key']!==null;}else _0x1f2bf2[_0x52b4a2(0x1e9,0x267)]&&(_0x5a3caa+=':\x20'+_0x1f2bf2[_0x52b4a2(0x2ee,0x267)]);}}catch{}throw new Error(_0x5a3caa);}}
|
package/dist/sync/encryption.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4f13d5,_0x1c4017){function _0x598d3d(_0x27a606,_0x5c97a0){return _0x45ea(_0x5c97a0-0x107,_0x27a606);}const _0x302555=_0x4f13d5();function _0xcad9bc(_0x2241e8,_0x592a61){return _0x45ea(_0x2241e8-0x370,_0x592a61);}while(!![]){try{const _0x42c3bd=parseInt(_0x598d3d(0x1ad,0x195))/0x1*(parseInt(_0x598d3d(0x17f,0x1a0))/0x2)+-parseInt(_0x598d3d(0x1a4,0x189))/0x3*(-parseInt(_0xcad9bc(0x408,0x411))/0x4)+parseInt(_0xcad9bc(0x3f1,0x3d8))/0x5+parseInt(_0x598d3d(0x16d,0x17d))/0x6*(parseInt(_0xcad9bc(0x40b,0x3f4))/0x7)+-parseInt(_0xcad9bc(0x3e9,0x3f8))/0x8+-parseInt(_0x598d3d(0x16c,0x170))/0x9+parseInt(_0xcad9bc(0x3e8,0x3d3))/0xa*(-parseInt(_0xcad9bc(0x3fc,0x417))/0xb);if(_0x42c3bd===_0x1c4017)break;else _0x302555['push'](_0x302555['shift']());}catch(_0x15ecf6){_0x302555['push'](_0x302555['shift']());}}}(_0x2d4b,0x2b5e1));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM=_0x4c2ff8(0x35b,0x349)+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc;function _0x4c2ff8(_0x5a7b3d,_0x5a86a8){return _0x45ea(_0x5a7b3d-0x2ef,_0x5a86a8);}const TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST='sha512';export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0x9baefa,_0x300bf6){const _0x222007={'nafdj':function(_0x309489,_0x1707e1,_0x139678,_0x537667,_0x124405,_0x1834c2){return _0x309489(_0x1707e1,_0x139678,_0x537667,_0x124405,_0x1834c2);}},_0xd4fca2=_0x300bf6??randomBytes(SALT_LENGTH),_0x57a469=_0x222007['nafdj'](pbkdf2Sync,_0x9baefa,_0xd4fca2,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x57a469,'salt':_0xd4fca2};}export function encryptContent(_0x5422fe,_0x3f67bc){function _0x989cae(_0x5edc47,_0x528f52){return _0x4c2ff8(_0x5edc47- -0x1c1,_0x528f52);}const _0x431312={'OZELw':_0x372748(-0x355,-0x355),'saMUh':function(_0x1dfe81,_0x30dda3){return _0x1dfe81(_0x30dda3);},'CAFgc':_0x372748(-0x32f,-0x332)};function _0x372748(_0x427d68,_0x241246){return _0x4c2ff8(_0x427d68- -0x6b3,_0x241246);}if(_0x3f67bc[_0x989cae(0x198,0x192)]!==KEY_LENGTH){if(_0x431312[_0x372748(-0x339,-0x322)]!=='WuRMU')throw new _0x4fce3f(_0x372748(-0x34d,-0x33a)+'이터가\x20너무\x20짧습니'+'다');else throw new Error(_0x372748(-0x334,-0x33e)+KEY_LENGTH+('\x20bytes여야\x20합'+_0x372748(-0x357,-0x33a))+_0x3f67bc[_0x989cae(0x198,0x187)]+')');}const _0x5eb650=_0x431312[_0x372748(-0x335,-0x338)](randomBytes,IV_LENGTH),_0x4d041b=createCipheriv(ALGORITHM,_0x3f67bc,_0x5eb650),_0xf57c99=Buffer['from'](_0x5422fe,_0x372748(-0x32d,-0x346)),_0x281d0d=Buffer[_0x372748(-0x353,-0x363)]([_0x4d041b['update'](_0xf57c99),_0x4d041b[_0x989cae(0x1ce,0x1dd)]()]),_0x36c96b=_0x4d041b['getAuthTag']();return{'ciphertext':_0x281d0d['toString'](_0x372748(-0x32f,-0x320)),'iv':_0x5eb650['toString'](_0x372748(-0x32f,-0x338)),'tag':_0x36c96b['toString'](_0x431312[_0x989cae(0x196,0x18e)])};}export function decryptContent(_0x3809ec,_0x462a66){const _0x4956df={'ULeAB':function(_0x169655,_0x1fd242){return _0x169655!==_0x1fd242;},'VlPmE':_0x403ecb(0x134,0x146),'RloZE':function(_0x4533d8,_0x5a06ae){return _0x4533d8===_0x5a06ae;},'NBvNr':_0x403ecb(0x11f,0x135)};if(_0x4956df[_0x403ecb(0x144,0x163)](_0x462a66[_0x403ecb(0x109,0x10d)],KEY_LENGTH))throw new Error(_0x403ecb(0x12f,0x13d)+KEY_LENGTH+(_0x403ecb(0x133,0x118)+_0x403ecb(0x10c,0xf2))+_0x462a66[_0x403ecb(0x109,0x103)]+')');const _0x5b4ca5=Buffer[_0x403ecb(0x10a,0xea)](_0x3809ec['iv'],_0x32ba5e(-0x115,-0x11a));function _0x403ecb(_0x4888ce,_0x4c2c13){return _0x4c2ff8(_0x4888ce- -0x250,_0x4c2c13);}function _0x32ba5e(_0x4c8990,_0x398359){return _0x4c2ff8(_0x4c8990- -0x499,_0x398359);}const _0x5c5d0e=Buffer[_0x32ba5e(-0x13f,-0x141)](_0x3809ec[_0x403ecb(0x146,0x14c)],_0x4956df[_0x32ba5e(-0x10b,-0x123)]),_0x1f63c4=Buffer[_0x32ba5e(-0x13f,-0x151)](_0x3809ec['tag'],_0x4956df[_0x32ba5e(-0x10b,-0x126)]),_0x1b0fd6=createDecipheriv(ALGORITHM,_0x462a66,_0x5b4ca5);_0x1b0fd6[_0x32ba5e(-0x10c,-0xf6)](_0x1f63c4);try{const _0x54b45=Buffer['concat']([_0x1b0fd6[_0x403ecb(0x139,0x13f)](_0x5c5d0e),_0x1b0fd6[_0x32ba5e(-0x10a,-0x111)]()]);return _0x54b45[_0x32ba5e(-0x136,-0x137)]('utf-8');}catch(_0x5259f5){if(_0x5259f5 instanceof Error){if(_0x4956df[_0x32ba5e(-0x138,-0x11c)](_0x4956df[_0x403ecb(0x13c,0x13c)],_0x4956df['NBvNr']))throw new Error(_0x403ecb(0x142,0x159)+_0x5259f5[_0x403ecb(0x114,0x132)]+('\x20(잘못된\x20키\x20또는'+_0x403ecb(0x122,0x140)));else return null;}throw _0x5259f5;}}export function encryptEmbedding(_0x15a321,_0x5582c6){function _0x116263(_0x2eee79,_0xc8618c){return _0x4c2ff8(_0x2eee79-0x9d,_0xc8618c);}const _0x375978=new Float64Array(_0x15a321);function _0x4feabb(_0x3f47ca,_0x353169){return _0x4c2ff8(_0x3f47ca- -0x1a0,_0x353169);}const _0x2b3407=Buffer['from'](_0x375978['buffer']),_0x2e4404=randomBytes(IV_LENGTH),_0x795627=createCipheriv(ALGORITHM,_0x5582c6,_0x2e4404),_0x1b0380=Buffer['concat']([_0x795627[_0x116263(0x426,0x427)](_0x2b3407),_0x795627[_0x4feabb(0x1ef,0x1f5)]()]),_0x259c62=_0x795627[_0x116263(0x434,0x425)](),_0xe96660=Buffer[_0x116263(0x3fd,0x3e5)]([_0x2e4404,_0x259c62,_0x1b0380]);return _0xe96660[_0x4feabb(0x1c3,0x1a3)](_0x116263(0x421,0x422));}export function decryptEmbedding(_0x10d3aa,_0x4e6f75){const _0x82c3c2={'PswGi':function(_0x135b27,_0x467dc2){return _0x135b27(_0x467dc2);},'SfLzx':_0x3f38c7(-0x150,-0x152),'GoszQ':function(_0x35035e,_0x2d1789){return _0x35035e<_0x2d1789;},'ZCYak':function(_0x441e10,_0x438c1e){return _0x441e10+_0x438c1e;},'vRcig':function(_0x1d3125,_0x2ee91b){return _0x1d3125===_0x2ee91b;},'tWZAu':'BoSeV','AaIew':function(_0x6b9f14,_0x1d99ce,_0x3de644,_0x3eb18b){return _0x6b9f14(_0x1d99ce,_0x3de644,_0x3eb18b);},'OEfAp':_0x3f38c7(-0x141,-0x151)},_0x261618=Buffer[_0x3f38c7(-0x187,-0x17c)](_0x10d3aa,_0x82c3c2['SfLzx']);if(_0x82c3c2[_0x22370e(-0x1f3,-0x211)](_0x261618['length'],_0x82c3c2['ZCYak'](IV_LENGTH,TAG_LENGTH))){if(_0x82c3c2['vRcig'](_0x22370e(-0x1f0,-0x1d4),_0x82c3c2[_0x22370e(-0x201,-0x1fb)]))throw new _0x2b773d(_0x3f38c7(-0x16b,-0x157)+_0x3b5ecd+(_0x3f38c7(-0x138,-0x153)+_0x3f38c7(-0x162,-0x17a))+_0x163564[_0x3f38c7(-0x15e,-0x17d)]+')');else throw new Error(_0x3f38c7(-0x155,-0x170)+_0x22370e(-0x219,-0x22f)+'다');}function _0x22370e(_0x2c3a51,_0x37172b){return _0x4c2ff8(_0x2c3a51- -0x583,_0x37172b);}const _0x2cbad1=_0x261618[_0x3f38c7(-0x155,-0x156)](0x0,IV_LENGTH);function _0x3f38c7(_0x3773b4,_0x5c87be){return _0x4c2ff8(_0x5c87be- -0x4d6,_0x3773b4);}const _0x27053a=_0x261618[_0x22370e(-0x203,-0x20a)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x4a7c71=_0x261618[_0x22370e(-0x203,-0x20e)](IV_LENGTH+TAG_LENGTH),_0x2f69e7=_0x82c3c2[_0x22370e(-0x21a,-0x21e)](createDecipheriv,ALGORITHM,_0x4e6f75,_0x2cbad1);_0x2f69e7[_0x3f38c7(-0x134,-0x149)](_0x27053a);try{if(_0x22370e(-0x215,-0x206)!==_0x82c3c2[_0x22370e(-0x207,-0x1f8)]){const _0x589cab=Buffer['concat']([_0x2f69e7[_0x3f38c7(-0x13c,-0x14d)](_0x4a7c71),_0x2f69e7[_0x22370e(-0x1f4,-0x1e4)]()]),_0x685397=new Float64Array(_0x589cab[_0x22370e(-0x20a,-0x20f)],_0x589cab[_0x22370e(-0x226,-0x236)],_0x589cab[_0x22370e(-0x216,-0x20c)]/Float64Array[_0x3f38c7(-0x159,-0x161)+_0x3f38c7(-0x14a,-0x141)]);return Array[_0x3f38c7(-0x191,-0x17c)](_0x685397);}else return RgOiQs[_0x22370e(-0x210,-0x21f)](_0x5e3e38,_0x5bef50);}catch(_0x451f9a){if(_0x451f9a instanceof Error)throw new Error(_0x22370e(-0x20f,-0x206)+':\x20'+_0x451f9a['message']);throw _0x451f9a;}}export function isValidEncryptedPayload(_0x42670c){const _0x1e4a62={'BPvuV':function(_0x39893c,_0x4c54bd){return _0x39893c===_0x4c54bd;},'tjBWD':_0x47e3ac(0x33e,0x326)};if(typeof _0x42670c!==_0x372ff4(0x257,0x23f)||_0x42670c===null)return![];function _0x47e3ac(_0x2c8bf5,_0x264ad8){return _0x4c2ff8(_0x2c8bf5- -0x53,_0x264ad8);}const _0x227c8f=_0x42670c;function _0x372ff4(_0x2d7bd8,_0x538220){return _0x4c2ff8(_0x538220- -0x137,_0x2d7bd8);}return _0x1e4a62[_0x372ff4(0x227,0x22b)](typeof _0x227c8f[_0x372ff4(0x257,0x25f)],_0x47e3ac(0x33e,0x358))&&_0x1e4a62[_0x372ff4(0x228,0x22b)](typeof _0x227c8f['iv'],_0x47e3ac(0x33e,0x336))&&typeof _0x227c8f[_0x372ff4(0x23c,0x235)]===_0x1e4a62[_0x372ff4(0x23e,0x240)];}export function wrapEncryptedContent(_0x168e65){function _0x2b0793(_0x344fa7,_0x35695f){return _0x4c2ff8(_0x344fa7- -0x54c,_0x35695f);}function _0x1d8da3(_0x3da00e,_0x3d1cbc){return _0x4c2ff8(_0x3d1cbc- -0x1c9,_0x3da00e);}return JSON[_0x2b0793(-0x1f7,-0x218)]({'encrypted':!![],'data':_0x168e65[_0x2b0793(-0x1b6,-0x1a7)],'iv':_0x168e65['iv'],'tag':_0x168e65[_0x1d8da3(0x19f,0x1a3)]});}function _0x45ea(_0x27ed8a,_0x1dbcd9){_0x27ed8a=_0x27ed8a-0x66;const _0x2d4b17=_0x2d4b();let _0x45ea9c=_0x2d4b17[_0x27ed8a];if(_0x45ea['NewmuD']===undefined){var _0x3983b8=function(_0xa49dbc){const _0x5cfdaa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3228fe='',_0x35669f='';for(let _0x5e3e38=0x0,_0x5bef50,_0x4970e1,_0x1af045=0x0;_0x4970e1=_0xa49dbc['charAt'](_0x1af045++);~_0x4970e1&&(_0x5bef50=_0x5e3e38%0x4?_0x5bef50*0x40+_0x4970e1:_0x4970e1,_0x5e3e38++%0x4)?_0x3228fe+=String['fromCharCode'](0xff&_0x5bef50>>(-0x2*_0x5e3e38&0x6)):0x0){_0x4970e1=_0x5cfdaa['indexOf'](_0x4970e1);}for(let _0x1ca9c0=0x0,_0x204f4c=_0x3228fe['length'];_0x1ca9c0<_0x204f4c;_0x1ca9c0++){_0x35669f+='%'+('00'+_0x3228fe['charCodeAt'](_0x1ca9c0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35669f);};_0x45ea['gbYnmq']=_0x3983b8,_0x45ea['twCbEO']={},_0x45ea['NewmuD']=!![];}const _0x11c537=_0x2d4b17[0x0],_0x2d51b7=_0x27ed8a+_0x11c537,_0x1233d3=_0x45ea['twCbEO'][_0x2d51b7];return!_0x1233d3?(_0x45ea9c=_0x45ea['gbYnmq'](_0x45ea9c),_0x45ea['twCbEO'][_0x2d51b7]=_0x45ea9c):_0x45ea9c=_0x1233d3,_0x45ea9c;}function _0x2d4b(){const _0x37f79c=['DgPcv0q','zw5JCNLWDgvK','yNvMzMvY','t1PfthC','otuXnwr2C0jksW','t0vMqxa','mZmZmdfXu1nhueS','C2fnvwG','7jwu7zI47zMuio2cPoUkLca','C3vIyxjYyxK','zgf0yq','DfDAqxu','igj5DgvZ7jES7jw8io2vQq','yMfZzty0','ueHAzge','DxrMltG','mJaZmZmYy2fYDfvu','mKLzt3nqAq','DxbKyxrL','mJGYogfNAgfAAG','Aevzy20','tKj2tNi','C2v0qxv0AfrHzW','vMXqBuu','zMLUywW','r29ZELe','C3rYAw5N','67o17zI47zMuioYlPo2mQdOG','ENfJBKu','vuXLqui','ruXftuvova','y2LWAgvYDgv4Da','z2v0qxv0AfrHzW','C3rYAw5NAwz5','BK5Ms0G','q0fgz2m','mJqXmJm2tLD2CMnA','BgvUz3rO','zNjVBq','ywvZlti1nI1NyW','64Ui64UKicJTMitSNQW6ia','yNL0zu9MzNnLDa','v3vstvu','qM1Jwge','y29Uy2f0','uMXVwKu','qLb2Dvy','Dg9tDhjPBMC','BwvZC2fNzq','nte5nM1IAfjWBG','7jwu7zI47zMu65cCioYEHoUYOoUuQsdRJBa','mtK5mhb2A3LJua','mJq1ode5mKDku0PRCG','qwfjzxC','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','CgfYC2u','DgfN','yNL0zuXLBMD0Aa','sMngDgK','vgDNDNG','otK1mdC1wvHZqMri','nLbSB2jwEa','ioUnSoYDTo2eScdRS4dSOBaP','uhn3r2K','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG','qLLurvnFuevsxW','B2jQzwn0'];_0x2d4b=function(){return _0x37f79c;};return _0x2d4b();}export function unwrapEncryptedContent(_0x2ec090){function _0x142f02(_0x583e85,_0x8e14f2){return _0x4c2ff8(_0x8e14f2- -0xbf,_0x583e85);}function _0x464841(_0x74f2fc,_0x4de629){return _0x4c2ff8(_0x74f2fc- -0x649,_0x4de629);}const _0x1ef312={'hEYcm':_0x464841(-0x2b8,-0x2a4),'nNfKH':function(_0x1091df,_0x23577b){return _0x1091df!==_0x23577b;},'MrGZl':'oIIry','UheRW':_0x464841(-0x2ea,-0x2ee)};try{const _0xfe7604=JSON[_0x464841(-0x2de,-0x2c4)](_0x2ec090);if(_0xfe7604[_0x142f02(0x2c7,0x2b9)]!==!![])return null;if(typeof _0xfe7604['data']!==_0x1ef312['hEYcm']||typeof _0xfe7604['iv']!==_0x1ef312[_0x142f02(0x2ba,0x2cc)]||typeof _0xfe7604[_0x464841(-0x2dd,-0x2d8)]!==_0x1ef312[_0x464841(-0x2be,-0x2b7)])return null;return{'ciphertext':_0xfe7604[_0x464841(-0x2c8,-0x2d9)],'iv':_0xfe7604['iv'],'tag':_0xfe7604[_0x464841(-0x2dd,-0x2f1)]};}catch{if(_0x1ef312[_0x142f02(0x290,0x297)](_0x1ef312['MrGZl'],_0x1ef312['UheRW']))return null;else{const _0x123fe6=_0x1a91f6['concat']([_0x58dee9[_0x142f02(0x2e3,0x2ca)](_0x1e1654),_0x27b3ed['final']()]);return _0x123fe6[_0x142f02(0x2ac,0x2a4)]('utf-8');}}}
|
|
1
|
+
(function(_0x39df18,_0x2309ee){function _0x4f37af(_0x465ba3,_0x466553){return _0x1a6e(_0x466553-0xec,_0x465ba3);}function _0x22b2cf(_0x3d7cf1,_0x3db412){return _0x1a6e(_0x3db412-0x26d,_0x3d7cf1);}const _0x2a06a4=_0x39df18();while(!![]){try{const _0x3a07fc=-parseInt(_0x4f37af(0x2a6,0x2ac))/0x1*(-parseInt(_0x4f37af(0x2b7,0x2b5))/0x2)+parseInt(_0x4f37af(0x29f,0x2b7))/0x3+parseInt(_0x22b2cf(0x41c,0x41d))/0x4+parseInt(_0x4f37af(0x28f,0x2a4))/0x5+-parseInt(_0x4f37af(0x2ae,0x2ab))/0x6*(-parseInt(_0x4f37af(0x29b,0x295))/0x7)+-parseInt(_0x4f37af(0x2bb,0x2a7))/0x8+-parseInt(_0x4f37af(0x2a1,0x299))/0x9;if(_0x3a07fc===_0x2309ee)break;else _0x2a06a4['push'](_0x2a06a4['shift']());}catch(_0x415a79){_0x2a06a4['push'](_0x2a06a4['shift']());}}}(_0x5bb7,0x2984d));import{randomBytes,createCipheriv,createDecipheriv,pbkdf2Sync}from'node:crypto';const ALGORITHM=_0x424ac6(-0xf0,-0xda)+'m',KEY_LENGTH=0x20,IV_LENGTH=0xc,TAG_LENGTH=0x10,SALT_LENGTH=0x10,PBKDF2_ITERATIONS=0x186a0,PBKDF2_DIGEST='sha512';export function generateEncryptionKey(){return randomBytes(KEY_LENGTH);}export function deriveKey(_0x537748,_0x51c7e5){const _0x3723fd={'HcajP':function(_0x1d75b8,_0x5cd424,_0x5ec140,_0x22435e,_0x1b8f92,_0x48c701){return _0x1d75b8(_0x5cd424,_0x5ec140,_0x22435e,_0x1b8f92,_0x48c701);}},_0xc2b5ba=_0x51c7e5??randomBytes(SALT_LENGTH);function _0x14387d(_0x349b03,_0x1c7129){return _0x424ac6(_0x1c7129,_0x349b03-0x30c);}const _0x5321a4=_0x3723fd[_0x14387d(0x22f,0x21c)](pbkdf2Sync,_0x537748,_0xc2b5ba,PBKDF2_ITERATIONS,KEY_LENGTH,PBKDF2_DIGEST);return{'key':_0x5321a4,'salt':_0xc2b5ba};}export function encryptContent(_0x2944e2,_0x15dc15){const _0x3fa433={'GXajC':function(_0x255795,_0x5efa0a){return _0x255795!==_0x5efa0a;},'nEYSY':function(_0x15b33e,_0x301c31){return _0x15b33e(_0x301c31);},'fsMxG':function(_0x2db154,_0x42dcc1,_0xe19306,_0x2eb9b5){return _0x2db154(_0x42dcc1,_0xe19306,_0x2eb9b5);},'zXIGq':'utf-8','TTmYY':_0x5d24e1(0x20e,0x1fe)};if(_0x3fa433[_0x5d24e1(0x229,0x229)](_0x15dc15[_0x5d24e1(0x1f5,0x210)],KEY_LENGTH))throw new Error(_0x2e80b7(-0xda,-0xec)+KEY_LENGTH+(_0x5d24e1(0x21f,0x227)+_0x5d24e1(0x1fd,0x20d))+_0x15dc15[_0x2e80b7(-0xee,-0x107)]+')');function _0x2e80b7(_0x2535b2,_0x3cbad9){return _0x424ac6(_0x2535b2,_0x3cbad9- -0x38);}const _0x23bf57=_0x3fa433[_0x2e80b7(-0x12a,-0x10f)](randomBytes,IV_LENGTH);function _0x5d24e1(_0x54efd7,_0xed100d){return _0x424ac6(_0x54efd7,_0xed100d-0x2df);}const _0x89ae=_0x3fa433['fsMxG'](createCipheriv,ALGORITHM,_0x15dc15,_0x23bf57),_0x2f41de=Buffer[_0x5d24e1(0x1fc,0x218)](_0x2944e2,_0x3fa433['zXIGq']),_0x5f006a=Buffer[_0x2e80b7(-0x10f,-0x118)]([_0x89ae[_0x5d24e1(0x232,0x216)](_0x2f41de),_0x89ae[_0x5d24e1(0x1e8,0x1f9)]()]),_0xf380ee=_0x89ae[_0x5d24e1(0x1e8,0x203)]();return{'ciphertext':_0x5f006a[_0x2e80b7(-0xd6,-0xf1)](_0x5d24e1(0x207,0x1fe)),'iv':_0x23bf57[_0x5d24e1(0x222,0x226)]('base64'),'tag':_0xf380ee[_0x5d24e1(0x233,0x226)](_0x3fa433[_0x5d24e1(0x22f,0x22e)])};}export function decryptContent(_0x13ab34,_0x57283f){const _0x496120={'UmzZx':_0x31100c(0x2d2,0x2b8)};if(_0x57283f[_0x31100c(0x2d7,0x2e5)]!==KEY_LENGTH)throw new Error(_0x31100c(0x2f2,0x30a)+KEY_LENGTH+('\x20bytes여야\x20합'+'니다\x20(현재:\x20')+_0x57283f[_0x31100c(0x2d7,0x2d3)]+')');function _0x31100c(_0x18a321,_0x3b6e6b){return _0x424ac6(_0x3b6e6b,_0x18a321-0x3a6);}const _0x59f981=Buffer[_0xcf4d4b(0x13f,0x140)](_0x13ab34['iv'],'base64'),_0x480c13=Buffer[_0x31100c(0x2df,0x2cf)](_0x13ab34[_0xcf4d4b(0x121,0x13b)],_0xcf4d4b(0x12a,0x126));function _0xcf4d4b(_0x33589a,_0x3083d2){return _0x424ac6(_0x33589a,_0x3083d2-0x207);}const _0x134d62=Buffer[_0xcf4d4b(0x133,0x140)](_0x13ab34[_0xcf4d4b(0x16b,0x158)],_0x31100c(0x2c5,0x2d6)),_0x14b527=createDecipheriv(ALGORITHM,_0x57283f,_0x59f981);_0x14b527[_0x31100c(0x2f6,0x2f3)](_0x134d62);try{const _0x2dda47=Buffer[_0xcf4d4b(0x11a,0x127)]([_0x14b527['update'](_0x480c13),_0x14b527['final']()]);return _0x2dda47[_0x31100c(0x2ed,0x308)](_0x496120[_0xcf4d4b(0x12f,0x13c)]);}catch(_0x56dfd9){if(_0x56dfd9 instanceof Error){if('optVO'===_0xcf4d4b(0x13c,0x13d))throw new Error(_0x31100c(0x2ea,0x2e9)+_0x56dfd9[_0x31100c(0x2c2,0x2dd)]+('\x20(잘못된\x20키\x20또는'+_0xcf4d4b(0x14f,0x14d)));else return null;}throw _0x56dfd9;}}export function encryptEmbedding(_0x59cdcb,_0x2134d0){function _0x6b26d7(_0x62df59,_0x1f3c8e){return _0x424ac6(_0x1f3c8e,_0x62df59-0x4e9);}const _0xba783f={'dSAaq':_0x6b26d7(0x408,0x41a)},_0x45fcd7=new Float64Array(_0x59cdcb),_0x2b0e5a=Buffer[_0x6b26d7(0x422,0x437)](_0x45fcd7[_0x11ee1e(0x22b,0x23b)]),_0x5aba2c=randomBytes(IV_LENGTH),_0x12c391=createCipheriv(ALGORITHM,_0x2134d0,_0x5aba2c),_0x2fc48b=Buffer[_0x6b26d7(0x409,0x3ef)]([_0x12c391[_0x11ee1e(0x272,0x257)](_0x2b0e5a),_0x12c391['final']()]),_0x266337=_0x12c391[_0x11ee1e(0x249,0x244)]();function _0x11ee1e(_0x2e7733,_0x3ad025){return _0x424ac6(_0x2e7733,_0x3ad025-0x320);}const _0x52ea11=Buffer[_0x6b26d7(0x409,0x40d)]([_0x5aba2c,_0x266337,_0x2fc48b]);return _0x52ea11[_0x6b26d7(0x430,0x445)](_0xba783f['dSAaq']);}function _0x1a6e(_0x4d5166,_0xf8763b){_0x4d5166=_0x4d5166-0x198;const _0x5bb7c2=_0x5bb7();let _0x1a6e93=_0x5bb7c2[_0x4d5166];if(_0x1a6e['oyPNPW']===undefined){var _0x55603d=function(_0xdcf475){const _0xdac62b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a4a43='',_0x458402='';for(let _0x40b74f=0x0,_0x176fc4,_0x20097a,_0x53e338=0x0;_0x20097a=_0xdcf475['charAt'](_0x53e338++);~_0x20097a&&(_0x176fc4=_0x40b74f%0x4?_0x176fc4*0x40+_0x20097a:_0x20097a,_0x40b74f++%0x4)?_0x1a4a43+=String['fromCharCode'](0xff&_0x176fc4>>(-0x2*_0x40b74f&0x6)):0x0){_0x20097a=_0xdac62b['indexOf'](_0x20097a);}for(let _0x313a43=0x0,_0x5c9242=_0x1a4a43['length'];_0x313a43<_0x5c9242;_0x313a43++){_0x458402+='%'+('00'+_0x1a4a43['charCodeAt'](_0x313a43)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x458402);};_0x1a6e['pyvfcg']=_0x55603d,_0x1a6e['tCThGc']={},_0x1a6e['oyPNPW']=!![];}const _0x2fc717=_0x5bb7c2[0x0],_0x12eded=_0x4d5166+_0x2fc717,_0x1e02b5=_0x1a6e['tCThGc'][_0x12eded];return!_0x1e02b5?(_0x1a6e93=_0x1a6e['pyvfcg'](_0x1a6e93),_0x1a6e['tCThGc'][_0x12eded]=_0x1a6e93):_0x1a6e93=_0x1e02b5,_0x1a6e93;}function _0x424ac6(_0x2d308b,_0x3b076a){return _0x1a6e(_0x3b076a- -0x27e,_0x2d308b);}export function decryptEmbedding(_0x4c10e2,_0x4ba494){function _0x4a56b0(_0x51f8b1,_0x3cf697){return _0x424ac6(_0x51f8b1,_0x3cf697-0xe);}const _0x48e45c={'OKwOr':'base64','urWPv':function(_0x40ddc3,_0x52babc){return _0x40ddc3<_0x52babc;},'oQVKg':function(_0x1f1851,_0x294a35){return _0x1f1851+_0x294a35;},'zWJzd':function(_0x3d1408,_0x2d6cac){return _0x3d1408===_0x2d6cac;},'Lemcf':'NjBCC','hvzSr':'암호화된\x20임베딩\x20데'+_0x4a56b0(-0xab,-0xa9)+'다'},_0x27c4a6=Buffer[_0x4a56b0(-0x9f,-0xb9)](_0x4c10e2,_0x48e45c['OKwOr']);if(_0x48e45c[_0x7fafee(0x1ac,0x19b)](_0x27c4a6['length'],_0x48e45c[_0x4a56b0(-0xbb,-0xaf)](IV_LENGTH,TAG_LENGTH))){if(_0x48e45c[_0x7fafee(0x170,0x18a)](_0x7fafee(0x18c,0x189),_0x48e45c[_0x4a56b0(-0xcc,-0xba)]))throw new _0x5c6261(_0x4a56b0(-0xd6,-0xc5)+':\x20'+_0x38a873[_0x7fafee(0x194,0x184)]);else throw new Error(_0x48e45c[_0x7fafee(0x17e,0x192)]);}const _0x56ed4e=_0x27c4a6[_0x4a56b0(-0xb8,-0xd4)](0x0,IV_LENGTH),_0x560c6d=_0x27c4a6[_0x4a56b0(-0xdd,-0xd4)](IV_LENGTH,IV_LENGTH+TAG_LENGTH),_0x2b8d9e=_0x27c4a6[_0x7fafee(0x191,0x186)](IV_LENGTH+TAG_LENGTH);function _0x7fafee(_0x3985bc,_0x55c60c){return _0x424ac6(_0x3985bc,_0x55c60c-0x268);}const _0x330d95=createDecipheriv(ALGORITHM,_0x4ba494,_0x56ed4e);_0x330d95['setAuthTag'](_0x560c6d);try{const _0x461a0f=Buffer['concat']([_0x330d95[_0x7fafee(0x1a4,0x19f)](_0x2b8d9e),_0x330d95[_0x4a56b0(-0xca,-0xd8)]()]),_0x30d242=new Float64Array(_0x461a0f[_0x4a56b0(-0xc4,-0xd7)],_0x461a0f[_0x7fafee(0x19f,0x1a7)],_0x461a0f[_0x7fafee(0x169,0x185)]/Float64Array[_0x4a56b0(-0xa6,-0xb4)+'ELEMENT']);return Array[_0x4a56b0(-0xc5,-0xb9)](_0x30d242);}catch(_0x11a88b){if(_0x11a88b instanceof Error)throw new Error('임베딩\x20복호화\x20실패'+':\x20'+_0x11a88b[_0x7fafee(0x19e,0x184)]);throw _0x11a88b;}}export function isValidEncryptedPayload(_0x7b6302){function _0x429dcb(_0x1e5e5c,_0x33ea02){return _0x424ac6(_0x33ea02,_0x1e5e5c-0x473);}function _0x4ea43c(_0x183bb2,_0x57a851){return _0x424ac6(_0x183bb2,_0x57a851-0x1be);}const _0x116d86={'pHJgV':function(_0x4d4e0d,_0x3f4dbf){return _0x4d4e0d===_0x3f4dbf;},'qvDWy':function(_0x36b036,_0x5395b2){return _0x36b036===_0x5395b2;},'EDfAl':'string'};if(typeof _0x7b6302!==_0x4ea43c(0xf8,0xf9)||_0x7b6302===null)return![];const _0x58d368=_0x7b6302;return _0x116d86[_0x4ea43c(0xed,0xe6)](typeof _0x58d368[_0x4ea43c(0x10b,0xf2)],'string')&&_0x116d86[_0x429dcb(0x3af,0x3ae)](typeof _0x58d368['iv'],_0x116d86[_0x4ea43c(0xeb,0xfe)])&&typeof _0x58d368['tag']===_0x429dcb(0x398,0x38b);}function _0x5bb7(){const _0xa7ffb8=['ioUnSoYDTo2eScdRS4dSOBaP','Dg9tDhjPBMC','igj5DgvZ7jES7jw8io2vQq','7j207ysW6RcaioUeIoUSTcdSP6FSIRxRI4G','r1HHAKm','mtq2A21RyMXr','7jwu7zI47zMuio2cPoUkLca','mtGZodq5qwDwyuDc','C3rYAw5NAwz5','vfrTwvK','C2v0qxv0AfrHzW','DgfN','zMLUywW','yNvMzMvY','BwvZC2fNzq','yNL0zuXLBMD0Aa','C3vIyxjYyxK','yMfZzty0','y29Uy2f0','EgDHvge','ELDkEMq','sgnHALa','z2v0qxv0AfrHzW','C3rYAw5N','ywvZlti1nI1NyW','zhHHCe8','CeHkz1y','BKvzu1K','Ahz6u3i','n1Dmu0DdDa','DxrMltG','7j6e67kG65sPioUZTE2yUo2zLcdSI6tTJkG','64Ui64UKicJTMitSNQW6ia','mtmXmJqZnhDkD0fcAq','Ee9ru0i','BgvUz3rO','mJC3mZq0AKTZqK9f','Dxjxuhy','y2LWAgvYDgv4Da','vw16wNG','B3b0vK8','DxbKyxrL','tgvTy2y','zNjVBq','ndmWmtq1s3vACM5S','B2jQzwn0','Cxzev3K','mJi1ndy3mMfiuMLbzW','qLLurvnFuevsxW','yNL0zu9MzNnLDa','rurMqwW','mteXmti4ngzJtLLmwa','mJy4m1LsAMzNBG','B1fws2C','67o17zI47zMuioYlPo2mQdOG','qKDvA2e'];_0x5bb7=function(){return _0xa7ffb8;};return _0x5bb7();}export function wrapEncryptedContent(_0x5b32b9){function _0x291fd5(_0x313070,_0x67cee8){return _0x424ac6(_0x313070,_0x67cee8- -0x13d);}function _0x184711(_0x1c78b9,_0x142a29){return _0x424ac6(_0x1c78b9,_0x142a29-0x60e);}return JSON[_0x291fd5(-0x1e0,-0x1ef)]({'encrypted':!![],'data':_0x5b32b9[_0x291fd5(-0x20f,-0x209)],'iv':_0x5b32b9['iv'],'tag':_0x5b32b9[_0x184711(0x55b,0x55f)]});}export function unwrapEncryptedContent(_0x57a344){function _0x31f656(_0x181f47,_0x51e55d){return _0x424ac6(_0x51e55d,_0x181f47-0x4c);}const _0xcf0198={'dxapO':function(_0x435fe6,_0x5bae62){return _0x435fe6!==_0x5bae62;},'xOQSB':_0x4d0f79(0x36,0x25),'BGUka':function(_0x30056e,_0x599b08){return _0x30056e!==_0x599b08;}};function _0x4d0f79(_0x35d9c8,_0x4ccf69){return _0x424ac6(_0x4ccf69,_0x35d9c8-0x111);}try{const _0x46dd17=JSON['parse'](_0x57a344);if(_0x46dd17['encrypted']!==!![])return null;if(_0xcf0198[_0x4d0f79(0x38,0x31)](typeof _0x46dd17['data'],_0xcf0198[_0x31f656(-0x84,-0x9b)])||_0xcf0198[_0x31f656(-0x6f,-0x6d)](typeof _0x46dd17['iv'],_0xcf0198[_0x4d0f79(0x41,0x4a)])||typeof _0x46dd17[_0x31f656(-0x63,-0x65)]!==_0xcf0198[_0x31f656(-0x84,-0x79)])return null;return{'ciphertext':_0x46dd17['data'],'iv':_0x46dd17['iv'],'tag':_0x46dd17[_0x31f656(-0x63,-0x6b)]};}catch{return null;}}
|
package/dist/sync/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3fb2d0,_0x588160){function _0x1a4b43(_0xaf9931,_0x41eff5){return _0x10cd(_0xaf9931- -0x1f3,_0x41eff5);}var _0x2228d2=_0x3fb2d0();function _0x3645ec(_0x25ffba,_0x1a5e20){return _0x10cd(_0x25ffba- -0x76,_0x1a5e20);}while(!![]){try{var _0x7174df=-parseInt(_0x1a4b43(-0x127,-0x124))/0x1+parseInt(_0x1a4b43(-0x125,-0x129))/0x2+parseInt(_0x3645ec(0x5b,0x5a))/0x3*(parseInt(_0x3645ec(0x5a,0x55))/0x4)+-parseInt(_0x1a4b43(-0x128,-0x126))/0x5+parseInt(_0x3645ec(0x54,0x50))/0x6*(parseInt(_0x1a4b43(-0x124,-0x124))/0x7)+parseInt(_0x3645ec(0x5c,0x58))/0x8+-parseInt(_0x3645ec(0x57,0x59))/0x9;if(_0x7174df===_0x588160)break;else _0x2228d2['push'](_0x2228d2['shift']());}catch(_0x5471e8){_0x2228d2['push'](_0x2228d2['shift']());}}}(_0x27c6,0x1e48a));export{A2AClient}from'./client.js';function _0x27c6(){var _0x490eb9=['mtCWndK2meXJv051ra','mJu5mdC4r3juseXs','nZy4mJCXA05KANHz','mZi2mta4D2jyBffS','owXrD05XqG','ntu2nZKYvuzlA1nd','mtj2wwjkDuq','otK2nZa1sefAv05g','mtuWndaYyvDRr3bH'];_0x27c6=function(){return _0x490eb9;};return _0x27c6();}export{MemorySynchronizer}from'./synchronizer.js';function _0x10cd(_0x646a7d,_0x4ad904){_0x646a7d=_0x646a7d-0xca;var _0x27c6ca=_0x27c6();var _0x10cd3c=_0x27c6ca[_0x646a7d];if(_0x10cd['DbNWyA']===undefined){var _0x49e14d=function(_0x374e5b){var _0x1b1729='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x28e8f3='',_0x12c876='';for(var _0x489594=0x0,_0x5eb1ad,_0x9609d1,_0x59e001=0x0;_0x9609d1=_0x374e5b['charAt'](_0x59e001++);~_0x9609d1&&(_0x5eb1ad=_0x489594%0x4?_0x5eb1ad*0x40+_0x9609d1:_0x9609d1,_0x489594++%0x4)?_0x28e8f3+=String['fromCharCode'](0xff&_0x5eb1ad>>(-0x2*_0x489594&0x6)):0x0){_0x9609d1=_0x1b1729['indexOf'](_0x9609d1);}for(var _0x3d1086=0x0,_0x15103d=_0x28e8f3['length'];_0x3d1086<_0x15103d;_0x3d1086++){_0x12c876+='%'+('00'+_0x28e8f3['charCodeAt'](_0x3d1086)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x12c876);};_0x10cd['neRirP']=_0x49e14d,_0x10cd['vtxAle']={},_0x10cd['DbNWyA']=!![];}var _0x3603ca=_0x27c6ca[0x0],_0x3971a=_0x646a7d+_0x3603ca,_0x40f8e9=_0x10cd['vtxAle'][_0x3971a];return!_0x40f8e9?(_0x10cd3c=_0x10cd['neRirP'](_0x10cd3c),_0x10cd['vtxAle'][_0x3971a]=_0x10cd3c):_0x10cd3c=_0x40f8e9,_0x10cd3c;}export{SyncQueue,mapCategory,mapTier}from'./queue.js';export{LocalVectorClock}from'./vector-clock.js';export{TeamSynchronizer}from'./team-synchronizer.js';export{SyncScheduler}from'./scheduler.js';export{encryptContent,decryptContent,encryptEmbedding,decryptEmbedding,deriveKey,generateEncryptionKey,wrapEncryptedContent,unwrapEncryptedContent,isValidEncryptedPayload}from'./encryption.js';
|
package/dist/sync/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x31b41a,_0x2fc5d7){function _0x15f196(_0xd7298c,_0x1ec049){return _0x9ce4(_0xd7298c-0x143,_0x1ec049);}function _0x5c9e58(_0xd8af7c,_0x3b1536){return _0x9ce4(_0xd8af7c- -0x3e5,_0x3b1536);}const _0x36f188=_0x31b41a();while(!![]){try{const _0x153d30=-parseInt(_0x15f196(0x326,0x310))/0x1+parseInt(_0x5c9e58(-0x1e6,-0x21f))/0x2+parseInt(_0x15f196(0x32f,0x2fd))/0x3*(parseInt(_0x15f196(0x32e,0x30c))/0x4)+-parseInt(_0x15f196(0x30c,0x2df))/0x5*(-parseInt(_0x15f196(0x33d,0x340))/0x6)+-parseInt(_0x5c9e58(-0x1f7,-0x21f))/0x7+-parseInt(_0x5c9e58(-0x1fe,-0x1f9))/0x8*(-parseInt(_0x15f196(0x2ec,0x2f9))/0x9)+parseInt(_0x5c9e58(-0x22f,-0x200))/0xa*(parseInt(_0x5c9e58(-0x23e,-0x24a))/0xb);if(_0x153d30===_0x2fc5d7)break;else _0x36f188['push'](_0x36f188['shift']());}catch(_0x35d27c){_0x36f188['push'](_0x36f188['shift']());}}}(_0x4321,0x60108));import{createHash}from'node:crypto';const CATEGORY_MAP={'preference':_0x460f75(0x4e1,0x4de)};function _0x42ba8d(_0xf8da55,_0x5a50c7){return _0x9ce4(_0xf8da55-0x13b,_0x5a50c7);}const TIER_MAP={'procedural':_0x42ba8d(0x2ee,0x2de)};function _0x4321(){const _0x5c12a8=['ufHKthO','CKveDwG','mJi4odqYELnruw9q','y3jLyxrLza','ywDnuwC','DgjnA0i','mti4mdHgquDPuwu','B3rLx2LKioUVUo2zLEYDUa','B25Lu3LUy2vK','tM90iezVDw5K','mtjbzurfv2O','mZG2nZn6C3r2Duq','CMLLC0jHDgnO','mJuYmZG2nhnjsenTrq','u3LUy01LBw9YAq','Cg5cBK8','CgfYzw50swq','y2H1BMTjBMrLEa','icJRI6tSNyWGzMX1C2G','zhvYyxrPB24','y2Piq28','DgfNCW','C3vIC3rYAw5N','D1P1she','CxvHBgL0EvnJBW','mtKZmMHPEvvywa','zMX1C2G','CMvTB3rLswq','zMXRqwm','BxfOtNq','odi0mdzAz0zftfO','DgLLCG','zMX1C2HuB21ICW','Dg9Uzxm','y2XPzw50','y2H1BMTuB3rHBa','y3jLyxrLtwvTBW','z253BgK','DhjPBq','zw5XDwv1zq','Aw5JBhvKzxm','zxjYB3jZ','zMfPBgvK','rNzSvNy','BM93','C2v0','yKDYB0S','zKTgsuO','veDtqu8','AwrZ','7ikT7kcCioYlPo2mQcaO','vevnwuW','DgLTzw91De1Z','BM90igzVDw5K','ANPoChq','mZnxt0LSs0q','wNLfEva','mtK1m0DUwffYBW','CvvNAe8','y3jLyxrLzef0','CgvUzgLUzW','Agv4','qNrHreG','6RcCignOAwXKiokaLca','ChvZAa','CNzYzee','wfLOCLC','C2vTyw50Awm','6RcCioUVUoYYMoUMRa','Dg9mB3DLCKnHCW','mty0nJKZmfD1DMX1ta','Dxj3rg8','y2f0zwDVCNK','C2HHmJu2','ChvZAejHDgnOzq','ktOG','u2rKrxO','CgfYzw50ihjLBq','zgLNzxn0','zMLSDgvY','z2v0ugvUzgLUzW','7yoa7j6e7jwe7jUdoIa','67cW7lMyioYlPo2mQdOG','BwvTB3j5swq','BwvZC2fNzq','z2v0u3LUy1n0yq','y29UDgvUDa','ChvZAgvK','AwDPCgq','otu1tvPuqMzU','C2v0u3LUy1n0yq','BwfYA1rVBwjZDa','B1LfyLi','AgfZ','DxbKyxrL','BgvUz3rO','Cw5fqNu','Ce1nCLm','zgvryuy','rgPwre8','DxbKyxrLtwvTBW','nda0','su53D2i','q291BNq','BM95rfq','DvLdywK','z2v0','DhvZ','y29UDMvUDgLVBG','C2XPy2u','z1fAzfm','z2v0vw5ZEw5Jzq','7jEq7isCioYERoYlNoUpHcK'];_0x4321=function(){return _0x5c12a8;};return _0x4321();}function _0x9ce4(_0x1ce160,_0xc01aff){_0x1ce160=_0x1ce160-0x194;const _0x432156=_0x4321();let _0x9ce498=_0x432156[_0x1ce160];if(_0x9ce4['CZpehD']===undefined){var _0x479bdc=function(_0x58a076){const _0x24d703='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x29334c='',_0x3be56e='';for(let _0xbccccf=0x0,_0x396fe2,_0x5eaab9,_0x576554=0x0;_0x5eaab9=_0x58a076['charAt'](_0x576554++);~_0x5eaab9&&(_0x396fe2=_0xbccccf%0x4?_0x396fe2*0x40+_0x5eaab9:_0x5eaab9,_0xbccccf++%0x4)?_0x29334c+=String['fromCharCode'](0xff&_0x396fe2>>(-0x2*_0xbccccf&0x6)):0x0){_0x5eaab9=_0x24d703['indexOf'](_0x5eaab9);}for(let _0x138852=0x0,_0x3a8d9c=_0x29334c['length'];_0x138852<_0x3a8d9c;_0x138852++){_0x3be56e+='%'+('00'+_0x29334c['charCodeAt'](_0x138852)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3be56e);};_0x9ce4['tRmGOy']=_0x479bdc,_0x9ce4['QjPyjA']={},_0x9ce4['CZpehD']=!![];}const _0x2e5b12=_0x432156[0x0],_0x2bc841=_0x1ce160+_0x2e5b12,_0x2c4de1=_0x9ce4['QjPyjA'][_0x2bc841];return!_0x2c4de1?(_0x9ce498=_0x9ce4['tRmGOy'](_0x9ce498),_0x9ce4['QjPyjA'][_0x2bc841]=_0x9ce498):_0x9ce498=_0x2c4de1,_0x9ce498;}export function mapCategory(_0x5a1757){return CATEGORY_MAP[_0x5a1757]??_0x5a1757;}function _0x460f75(_0x25920c,_0x2fdd8e){return _0x9ce4(_0x25920c-0x305,_0x2fdd8e);}export function mapTier(_0x19acb8){return TIER_MAP[_0x19acb8]??_0x19acb8;}function computeContentHash(_0x4997f4){function _0x526337(_0x42af47,_0x573633){return _0x460f75(_0x42af47- -0x218,_0x573633);}const _0x5186f7={'flkAc':function(_0x48c18,_0x29a792){return _0x48c18(_0x29a792);}};function _0x5dbe76(_0x5f59a8,_0x39404c){return _0x460f75(_0x5f59a8- -0x165,_0x39404c);}return _0x5186f7[_0x526337(0x2ea,0x31c)](createHash,_0x5dbe76(0x359,0x32e))[_0x526337(0x2bb,0x2c3)](_0x4997f4[_0x526337(0x283,0x27a)]()[_0x526337(0x2a2,0x26a)+'e']())[_0x5dbe76(0x35e,0x34f)](_0x5dbe76(0x34d,0x32c))[_0x526337(0x2e4,0x2da)](0x0,0x10);}export class SyncQueue{['db'];[_0x460f75(0x508,0x4db)];constructor(_0x5092b0,_0x496c26){this['db']=_0x5092b0,this['client']=_0x496c26;}[_0x460f75(0x49c,0x4ae)](_0x3cd27f){function _0x5d128f(_0x402b09,_0x1d5934){return _0x460f75(_0x402b09-0x9d,_0x1d5934);}this['db']['setSyncSta'+'tus'](_0x3cd27f,null,_0x5d128f(0x54e,0x53a));}async[_0x460f75(0x500,0x4e4)](_0x40e371){const _0x2f34f3={'SddEz':function(_0x4e8769,_0x57c7fc){return _0x4e8769(_0x57c7fc);},'YUgXE':'synced','qnEBu':function(_0x4bc8bb,_0x36b45d){return _0x4bc8bb-_0x36b45d;},'XYhrW':function(_0x5d8958,_0x49c547){return _0x5d8958<_0x49c547;}},_0x1177a2=Date[_0x576a38(0x387,0x37c)](),_0x4f2e64=_0x40e371?.[_0x17af5f(0x144,0x134)]??0x493e0;function _0x576a38(_0x6a89b0,_0x471b4f){return _0x460f75(_0x6a89b0- -0x11a,_0x471b4f);}const _0x53f63a={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]},_0x267193=0x64,_0x1953d8=this['db'][_0x17af5f(0x177,0x150)+_0x17af5f(0x196,0x17f)+'es']();if(_0x1953d8[_0x17af5f(0x16e,0x15f)]===0x0)return _0x53f63a[_0x17af5f(0x15e,0x184)]=_0x2f34f3[_0x576a38(0x3bb,0x399)](Date[_0x17af5f(0x107,0x12c)](),_0x1177a2),_0x53f63a;const _0x3b11c2=new Map(),_0x6dc236=_0x1953d8['filter'](_0xa20397=>{function _0xb1e78d(_0x4d0085,_0x5c9ab0){return _0x576a38(_0x5c9ab0- -0x21c,_0x4d0085);}function _0x58690b(_0x3c8dbf,_0x5be9af){return _0x576a38(_0x5be9af-0x1d9,_0x3c8dbf);}if(_0x58690b(0x560,0x58c)!=='igipd')this['db']['updateMemo'+'ry'](_0x4d3f33,{'qualityScore':_0x2521a9});else{const _0x5b5d05=_0x2f34f3[_0xb1e78d(0x17d,0x18b)](computeContentHash,_0xa20397[_0x58690b(0x5a6,0x58a)]);if(_0x3b11c2['has'](_0x5b5d05))return this['db'][_0xb1e78d(0x162,0x199)+_0x58690b(0x5bf,0x59f)](_0xa20397['id'],null,_0x2f34f3['YUgXE']),![];return _0x3b11c2[_0x58690b(0x535,0x561)](_0x5b5d05,_0xa20397['id']),!![];}});function _0x17af5f(_0x5c1b0c,_0x11d64d){return _0x460f75(_0x11d64d- -0x375,_0x5c1b0c);}const _0x315f15=_0x6dc236[_0x17af5f(0x159,0x14f)](_0x5de6c6=>!_0x5de6c6['parentId']),_0x5abc9e=_0x6dc236[_0x17af5f(0x14d,0x14f)](_0x119fb1=>!!_0x119fb1['parentId']),_0x457a55=new Map();for(const _0x52da2e of _0x5abc9e){if(_0x576a38(0x39c,0x393)===_0x576a38(0x39c,0x388)){if(_0x52da2e[_0x17af5f(0x197,0x181)]&&!_0x457a55[_0x17af5f(0x133,0x15d)](_0x52da2e['parentId'])){const _0x56903d=this['db'][_0x576a38(0x3b0,0x37f)+'tus'](_0x52da2e[_0x576a38(0x3dc,0x3c0)]);_0x56903d?.[_0x17af5f(0x1bd,0x18c)]&&_0x457a55[_0x576a38(0x388,0x3a2)](_0x52da2e[_0x17af5f(0x190,0x181)],_0x56903d[_0x576a38(0x3e7,0x3fe)]);}}else this['db'][_0x576a38(0x3b6,0x3b9)+_0x576a38(0x3d4,0x3db)](_0x12abd1[_0x17af5f(0x176,0x153)]),_0x26b06e++;}await this[_0x576a38(0x3a5,0x399)+'s'](_0x315f15,_0x267193,_0x1177a2,_0x4f2e64,_0x53f63a,_0x457a55);if(_0x5abc9e[_0x576a38(0x3ba,0x3d0)]>0x0&&(_0x4f2e64===0x0||_0x2f34f3[_0x17af5f(0x162,0x142)](_0x2f34f3[_0x576a38(0x3bb,0x3c0)](Date['now'](),_0x1177a2),_0x4f2e64))){const _0x24d0c0=_0x5abc9e[_0x17af5f(0x137,0x14f)](_0x1cae10=>_0x457a55[_0x17af5f(0x147,0x15d)](_0x1cae10['parentId'])),_0x33cc8e=_0x5abc9e[_0x17af5f(0x11b,0x14f)](_0x492d34=>!_0x457a55['has'](_0x492d34['parentId']));_0x33cc8e[_0x576a38(0x3ba,0x3ce)]>0x0&&_0x53f63a[_0x576a38(0x384,0x3b8)][_0x576a38(0x39b,0x3cd)](_0x33cc8e['length']+(_0x17af5f(0x162,0x13f)+_0x576a38(0x3a8,0x3c2)+'ote_id\x20미확인'+_0x17af5f(0x1a6,0x183)+_0x576a38(0x3cb,0x400))),await this[_0x576a38(0x3a5,0x393)+'s'](_0x24d0c0,_0x267193,_0x1177a2,_0x4f2e64,_0x53f63a,_0x457a55);}return _0x53f63a[_0x576a38(0x3df,0x3c0)]=Date[_0x17af5f(0x156,0x12c)]()-_0x1177a2,_0x53f63a;}async['pushBatche'+'s'](_0x1de824,_0x34d9a8,_0x44126b,_0x4a758a,_0x76f577,_0x398b3d){const _0x50f4d0={'jzNpt':_0x5715ee(0x3e7,0x3d9),'iWgJp':_0x5715ee(0x42c,0x432),'qUghO':function(_0x1689de,_0x3e875f){return _0x1689de*_0x3e875f;},'fKFIJ':function(_0x1a35c0,_0x49f481){return _0x1a35c0(_0x49f481);},'pnBnO':function(_0x268067,_0x10f96b){return _0x268067>_0x10f96b;},'rlipk':function(_0x408c10,_0x4f3f05){return _0x408c10-_0x4f3f05;},'ZyEyP':function(_0x839f6c,_0x1d2a11){return _0x839f6c+_0x1d2a11;},'gnwli':function(_0x3d6925,_0xc95e03){return _0x3d6925===_0xc95e03;},'mqhNt':_0x5715ee(0x3f9,0x3fd),'pMMrS':function(_0x53d20c,_0x1b782c){return _0x53d20c!==_0x1b782c;},'DjVDO':function(_0x308a21,_0x188af9){return _0x308a21!==_0x188af9;},'uYCai':_0x106f1b(0x38b,0x353),'bGroK':'synced','TEMYL':function(_0xe477f0,_0x45995f){return _0xe477f0 instanceof _0x45995f;}};function _0x5715ee(_0x5b98c3,_0x2bfe69){return _0x42ba8d(_0x5b98c3-0x107,_0x2bfe69);}function _0x106f1b(_0x14fa3b,_0x3b3a3b){return _0x42ba8d(_0x14fa3b-0x78,_0x3b3a3b);}for(let _0x1de962=0x0;_0x1de962<_0x1de824[_0x5715ee(0x411,0x3e4)];_0x1de962+=_0x34d9a8){if(_0x50f4d0[_0x106f1b(0x3a3,0x3cd)](_0x4a758a,0x0)&&Date[_0x5715ee(0x3de,0x400)]()-_0x44126b>_0x4a758a){const _0x1cb6bf=_0x50f4d0['rlipk'](_0x1de824[_0x5715ee(0x411,0x436)],_0x1de962);_0x76f577[_0x5715ee(0x3db,0x3ff)][_0x106f1b(0x363,0x34c)](_0x106f1b(0x374,0x384)+_0x1cb6bf+_0x5715ee(0x3f6,0x40e)),_0x76f577[_0x106f1b(0x34d,0x375)]+=_0x1cb6bf;break;}const _0xa03793=_0x1de824[_0x106f1b(0x390,0x3a4)](_0x1de962,_0x50f4d0[_0x5715ee(0x3ea,0x421)](_0x1de962,_0x34d9a8));try{if(_0x50f4d0[_0x106f1b(0x348,0x31d)](_0x106f1b(0x395,0x35e),_0x50f4d0[_0x106f1b(0x3b1,0x3c5)])){const _0x36201e=_0x573e01 instanceof _0x1a04bb?_0x3bcb61[_0x5715ee(0x406,0x427)]:_0xe2f63c(_0x2162cc);_0x36201e['includes'](_0x106f1b(0x388,0x35c))||_0x36201e[_0x106f1b(0x34b,0x374)](_0x50f4d0[_0x5715ee(0x3e8,0x3ff)])||_0x36201e[_0x106f1b(0x34b,0x37b)](_0x50f4d0['iWgJp'])?(this['db'][_0x106f1b(0x37e,0x34d)+'oneSynced'](_0x3a906d['memoryId']),_0x53a667++):_0x3d5732[_0x106f1b(0x363,0x338)](_0x106f1b(0x355,0x34e)+_0x762ae3['memoryId']+_0x5715ee(0x3fd,0x406)+_0x36201e);}else{const _0x34be16=new Map(),_0x5ee771=await this['client'][_0x5715ee(0x3d6,0x3bd)+_0x106f1b(0x3a0,0x3ab)](_0xa03793['map'](_0x5bfb50=>{function _0x47f29e(_0x42d2d9,_0x43f9a9){return _0x5715ee(_0x43f9a9- -0x1ae,_0x42d2d9);}const _0x1a11be=_0x5bfb50[_0x47f29e(0x2ba,0x28d)+'re']!==undefined?Math['round'](_0x50f4d0[_0x5be9a2(0x31b,0x31d)](_0x5bfb50[_0x47f29e(0x263,0x28d)+'re'],0x3e8))/0x3e8:undefined;function _0x5be9a2(_0x222874,_0x15fd1d){return _0x5715ee(_0x222874- -0xd1,_0x15fd1d);}return _0x34be16[_0x5be9a2(0x30e,0x33a)](_0x5bfb50['id'],_0x1a11be),{'content':_0x5bfb50[_0x47f29e(0x247,0x25a)],'category':mapCategory(_0x5bfb50[_0x5be9a2(0x329,0x305)]),'tier':_0x50f4d0[_0x47f29e(0x231,0x233)](mapTier,_0x5bfb50[_0x47f29e(0x272,0x294)]),'tags':_0x5bfb50[_0x5be9a2(0x367,0x368)],'created_at':_0x5bfb50[_0x5be9a2(0x31c,0x333)],'parent_id':_0x5bfb50[_0x47f29e(0x26f,0x285)]?_0x398b3d[_0x5be9a2(0x34b,0x343)](_0x5bfb50['parentId']):undefined,'chunk_index':_0x5bfb50[_0x5be9a2(0x363,0x32f)]??undefined,'chunk_total':_0x5bfb50[_0x5be9a2(0x375,0x3a2)]??undefined,'quality_score':_0x1a11be};}));for(let _0x517491=0x0;_0x517491<_0x5ee771['ids'][_0x5715ee(0x411,0x428)];_0x517491++){if(_0x517491<_0xa03793[_0x5715ee(0x411,0x402)]&&_0x5ee771[_0x5715ee(0x3e3,0x415)][_0x517491]){if(_0x50f4d0[_0x5715ee(0x413,0x428)](_0x5715ee(0x414,0x445),'deQaF'))_0x1ba9c7[_0x5715ee(0x3db,0x404)][_0x5715ee(0x3f2,0x3df)](_0x109606[_0x106f1b(0x382,0x399)]+(_0x106f1b(0x362,0x360)+_0x5715ee(0x3ff,0x3f2)+_0x5715ee(0x42a,0x444)+'\x20(다음\x20flush'+_0x106f1b(0x393,0x3bf)));else{const _0x4a64eb=_0xa03793[_0x517491]['id'],_0x344700=_0x34be16[_0x106f1b(0x38d,0x39d)](_0x4a64eb);if(_0x50f4d0[_0x5715ee(0x415,0x42d)](_0x344700,undefined)&&_0x50f4d0[_0x106f1b(0x348,0x31d)](_0xa03793[_0x517491][_0x5715ee(0x43b,0x40d)+'re'],undefined)){if(_0x50f4d0[_0x5715ee(0x415,0x446)](_0x106f1b(0x3ab,0x3d1),_0x50f4d0[_0x106f1b(0x38c,0x360)]))try{this['db'][_0x106f1b(0x387,0x384)+'ry'](_0x4a64eb,{'qualityScore':_0x344700});}catch{}else this['db']=_0x1133c3,this[_0x106f1b(0x3b6,0x38a)]=_0x5b1ba3;}this['db'][_0x106f1b(0x37d,0x3b5)+'tus'](_0x4a64eb,_0x5ee771[_0x106f1b(0x354,0x388)][_0x517491],_0x50f4d0[_0x106f1b(0x351,0x382)]),_0x398b3d['set'](_0x4a64eb,_0x5ee771[_0x106f1b(0x354,0x36e)][_0x517491]),_0x76f577['syncedItem'+'s'][_0x5715ee(0x3f2,0x3f4)]({'localId':_0x4a64eb,'remoteId':_0x5ee771['ids'][_0x517491]});}}}_0x76f577[_0x106f1b(0x37a,0x353)]+=_0x5ee771[_0x5715ee(0x426,0x44e)],_0x76f577['failed']+=_0x5ee771[_0x5715ee(0x3dc,0x40c)],_0x5ee771[_0x5715ee(0x3db,0x3d5)][_0x5715ee(0x411,0x41e)]>0x0&&_0x76f577[_0x5715ee(0x3db,0x3e7)]['push'](..._0x5ee771[_0x5715ee(0x3db,0x3f0)]);}}catch(_0x4a30f5){_0x76f577[_0x106f1b(0x34c,0x355)][_0x5715ee(0x3f2,0x422)](_0x106f1b(0x375,0x353)+(_0x50f4d0[_0x5715ee(0x3e5,0x3c2)](_0x4a30f5,Error)?_0x4a30f5[_0x5715ee(0x406,0x3f0)]:String(_0x4a30f5))),_0x76f577[_0x5715ee(0x3dc,0x40e)]+=_0xa03793[_0x5715ee(0x411,0x430)];}}}async[_0x460f75(0x506,0x509)+_0x42ba8d(0x33d,0x30a)](){function _0x2f6d92(_0x2d6a69,_0x3adddf){return _0x42ba8d(_0x3adddf- -0x260,_0x2d6a69);}const _0x42b1ae={'TGSAO':function(_0x485cc2,_0x372536){return _0x485cc2 instanceof _0x372536;},'gQZdS':function(_0x4227b7,_0x247a77){return _0x4227b7(_0x247a77);},'tbMkB':function(_0x4850eb,_0x32406b){return _0x4850eb===_0x32406b;},'FvlVv':_0x2f6d92(0x86,0x80),'oYEbR':_0x27931c(0x3fd,0x403)};function _0x27931c(_0x2b063e,_0x27a723){return _0x42ba8d(_0x2b063e-0xe1,_0x27a723);}const _0x2b87b4=this['db'][_0x2f6d92(0x8c,0xba)+'dTombstone'+'s']();let _0x44a2e4=0x0;const _0x1b5f6c=[];for(const _0x2f8fd8 of _0x2b87b4){if(_0x42b1ae[_0x27931c(0x402,0x42e)]('agMQg',_0x27931c(0x401,0x3da))){const _0x2ec400=this['db'][_0x2f6d92(0xbe,0xa0)+_0x2f6d92(0xcf,0xb6)](_0x2f8fd8[_0x2f6d92(0xcf,0x9e)]);if(!_0x2ec400?.[_0x27931c(0x418,0x403)]){if(_0x27931c(0x3f2,0x40f)!==_0x2f6d92(0xe1,0xd0)){this['db'][_0x2f6d92(0xa7,0xa6)+_0x2f6d92(0xd7,0xc4)](_0x2f8fd8['memoryId']);continue;}else _0x52ccd8[_0x2f6d92(0x41,0x74)]['push'](..._0x3774e8[_0x2f6d92(0x5f,0x74)]);}try{await this[_0x2f6d92(0xdb,0xde)]['deleteMemo'+'ry'](_0x2ec400[_0x2f6d92(0xf0,0xd7)]),this['db'][_0x27931c(0x3e7,0x3cc)+_0x27931c(0x405,0x3ff)](_0x2f8fd8[_0x2f6d92(0xad,0x9e)]),_0x44a2e4++;}catch(_0x30e48d){const _0x5afb74=_0x30e48d instanceof Error?_0x30e48d['message']:_0x42b1ae['gQZdS'](String,_0x30e48d);if(_0x5afb74[_0x27931c(0x3b4,0x3a2)](_0x27931c(0x3f1,0x3e7))||_0x5afb74['includes'](_0x42b1ae[_0x2f6d92(0x89,0x76)])||_0x5afb74[_0x27931c(0x3b4,0x37c)](_0x27931c(0x406,0x403)))this['db']['markTombst'+'oneSynced'](_0x2f8fd8[_0x27931c(0x3df,0x3fb)]),_0x44a2e4++;else{if(_0x2f6d92(0xbc,0x89)!==_0x42b1ae[_0x2f6d92(0xb0,0xa7)])_0x1b5f6c[_0x27931c(0x3cc,0x3dd)](_0x2f6d92(0xac,0x7d)+_0x2f8fd8[_0x2f6d92(0x93,0x9e)]+_0x2f6d92(0x93,0x96)+_0x5afb74);else{if(_0x4b43ff[_0x2f6d92(0x95,0xcc)]&&!_0x3e2166[_0x27931c(0x3e9,0x3d8)](_0x50b554['parentId'])){const _0x14511d=this['db'][_0x27931c(0x3e1,0x40b)+_0x27931c(0x3f7,0x416)](_0x4950cf[_0x27931c(0x40d,0x3f6)]);_0x14511d?.[_0x2f6d92(0x9f,0xd7)]&&_0x27c85c[_0x2f6d92(0x57,0x78)](_0x106b91['parentId'],_0x14511d[_0x2f6d92(0xba,0xd7)]);}}}}}else _0x4f65ad[_0x27931c(0x3b5,0x3b2)][_0x27931c(0x3cc,0x3ca)](_0x2f6d92(0x6a,0x9d)+(dBHGrU[_0x2f6d92(0x44,0x7b)](_0x5ca19a,_0x196ab2)?_0x331823['message']:dBHGrU[_0x27931c(0x3fa,0x401)](_0x411e46,_0x513f9d))),_0x45753c[_0x2f6d92(0x72,0x75)]+=_0x2860dc[_0x27931c(0x3eb,0x3d4)];}return{'deleted':_0x44a2e4,'errors':_0x1b5f6c};}[_0x460f75(0x4c5,0x4af)+_0x460f75(0x4dc,0x4b3)](){function _0x4e2afe(_0x5e4631,_0x4bdd37){return _0x42ba8d(_0x4bdd37- -0x3cf,_0x5e4631);}function _0x2bd378(_0x1bc5f6,_0x5460c3){return _0x42ba8d(_0x5460c3- -0x3bb,_0x1bc5f6);}return this['db'][_0x4e2afe(-0xfb,-0xd4)+_0x4e2afe(-0xbb,-0xa5)+'es']()[_0x2bd378(-0xa5,-0xb1)];}}
|
|
1
|
+
(function(_0x348801,_0x276c23){function _0x3d1d8a(_0x5b70f4,_0x326bcd){return _0x3016(_0x5b70f4-0x3be,_0x326bcd);}function _0x43257c(_0x451cfd,_0x71f726){return _0x3016(_0x71f726-0x345,_0x451cfd);}const _0x2f558e=_0x348801();while(!![]){try{const _0x27e541=-parseInt(_0x3d1d8a(0x544,0x549))/0x1*(-parseInt(_0x43257c(0x4c5,0x4f3))/0x2)+-parseInt(_0x43257c(0x491,0x4a8))/0x3+-parseInt(_0x3d1d8a(0x52d,0x551))/0x4+-parseInt(_0x43257c(0x500,0x4e5))/0x5+parseInt(_0x3d1d8a(0x50f,0x51d))/0x6*(parseInt(_0x43257c(0x4c3,0x4ec))/0x7)+parseInt(_0x3d1d8a(0x567,0x563))/0x8+-parseInt(_0x3d1d8a(0x547,0x538))/0x9*(-parseInt(_0x3d1d8a(0x534,0x527))/0xa);if(_0x27e541===_0x276c23)break;else _0x2f558e['push'](_0x2f558e['shift']());}catch(_0x1af937){_0x2f558e['push'](_0x2f558e['shift']());}}}(_0x496a,0x5a998));function _0x496a(){const _0x334740=['zgPtEMu','rKjnwKK','DgLLCG','nda0','mJm3mgDSvw10rq','EfDZCMi','DgfNCW','Aw5JBhvKzxm','B3rLx2LKioUVUo2zLEYDUa','y3bXufC','zgLNzxn0','C2XPy2u','DxbKyxrLtwvTBW','ExDutuG','CxvHBgL0EvnJBW','CwLlr3y','z2v0u3LUy1n0yq','vNngCeG','DgLTzw91De1Z','mte0D25urwzr','C2v0u3LUy1n0yq','ktOG','Au9yrg0','zMLSDgvY','C3LUy2vK','zMfPBgvK','C3vIC3rYAw5N','zgvSzxrLtwvTBW','ChvZAejHDgnOzq','AgfZ','Du1szMm','y2H1BMTuB3rHBa','DwzUDxq','z2v0ugvUzgLUzW','r2fLyKe','vLfhrKO','7ikT7kcCioYlPo2mQcaO','mtq5nZK4n0fKww92rq','quvQtLi','D0TNwMe','ChvZAa','zMX1C2G','tM90iezVDw5K','DhjPBq','AwrZ','DxbKyxrL','Dg9Uzxm','BgHHz0G','BwfW','mJKYota4ogTMBg1erq','BM93','7yoa7j6e7jwe7jUdoIa','A3bNCwi','BgvUz3rO','DwHAueO','zLDKwwK','mteWwLrssurw','C2v0','BwvZC2fNzq','6RcCignOAwXKiokaLca','C2HHmJu2','y3jLyxrLtwvTBW','BwfYA1rVBwjZDa','zhvYyxrPB24','zw5XDwv1zq','txHdshi','yvbqCuS','uurXthq','zMX1C2HuB21ICW','s3vwBxu','BvP2sMC','BwzYvxu','mw1lDeznuW','zxjYB3jZ','CMvTB3rLswq','mti0ntuZn2XVrfDHua','vKTszNK','z2v0','CLnKuxu','rurOzNa','y3jLyxrLzef0','uhHpBMK','rNHJzgC','CgvUzgLUzW','67cW7lMyioYlPo2mQdOG','BKn3C1C','vvPrq3O','y29UDgvUDa','BM90igzVDw5K','y29UDMvUDgLVBG','vfvoCLa','B25Lu3LUy2vK','DhvZ','BwvTB3j5swq','wfzTueW','6RcCioUVUoYYMoUMRa','CgfYzw50swq','CgfYzw50ihjLBq','mZeWnZG4nxrtEw1ZCq','icJRI6tSNyWGzMX1C2G','t25oAK8','y2XPzw50','CMLLC0jHDgnO','qxPbuvm','Dg9mB3DLCKnHCW','mJa2ota2qwH6ChvV','B2PdrMK','mteXmZmXmKTtwMziyW'];_0x496a=function(){return _0x334740;};return _0x496a();}import{createHash}from'node:crypto';const CATEGORY_MAP={'preference':'convention','rule':_0x115b9e(0x4cb,0x4fb)},TIER_MAP={'procedural':'semantic'};function _0x3016(_0x4f3a64,_0x19692c){_0x4f3a64=_0x4f3a64-0x146;const _0x496aca=_0x496a();let _0x30168a=_0x496aca[_0x4f3a64];if(_0x3016['HUcSsD']===undefined){var _0x398b22=function(_0x54f3ac){const _0x1a828b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x31cac6='',_0x589c4e='';for(let _0x5726ef=0x0,_0x512874,_0x5d9f0c,_0x10b2ef=0x0;_0x5d9f0c=_0x54f3ac['charAt'](_0x10b2ef++);~_0x5d9f0c&&(_0x512874=_0x5726ef%0x4?_0x512874*0x40+_0x5d9f0c:_0x5d9f0c,_0x5726ef++%0x4)?_0x31cac6+=String['fromCharCode'](0xff&_0x512874>>(-0x2*_0x5726ef&0x6)):0x0){_0x5d9f0c=_0x1a828b['indexOf'](_0x5d9f0c);}for(let _0x477ca2=0x0,_0x3f6d4d=_0x31cac6['length'];_0x477ca2<_0x3f6d4d;_0x477ca2++){_0x589c4e+='%'+('00'+_0x31cac6['charCodeAt'](_0x477ca2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x589c4e);};_0x3016['ULfZgv']=_0x398b22,_0x3016['LiXuBf']={},_0x3016['HUcSsD']=!![];}const _0x48ca0c=_0x496aca[0x0],_0xb6e2f7=_0x4f3a64+_0x48ca0c,_0x22efae=_0x3016['LiXuBf'][_0xb6e2f7];return!_0x22efae?(_0x30168a=_0x3016['ULfZgv'](_0x30168a),_0x3016['LiXuBf'][_0xb6e2f7]=_0x30168a):_0x30168a=_0x22efae,_0x30168a;}export function mapCategory(_0x1ae364){return CATEGORY_MAP[_0x1ae364]??_0x1ae364;}function _0x267c46(_0x400439,_0x2b23ff){return _0x3016(_0x400439- -0x2b6,_0x2b23ff);}function _0x115b9e(_0x31708a,_0x506a81){return _0x3016(_0x506a81-0x364,_0x31708a);}export function mapTier(_0xcddfb0){return TIER_MAP[_0xcddfb0]??_0xcddfb0;}function computeContentHash(_0x4f464){function _0x5514e4(_0x3d52b3,_0x38a51e){return _0x115b9e(_0x38a51e,_0x3d52b3- -0x317);}const _0x192e59={'QDqLt':function(_0x3605fa,_0x3c8edd){return _0x3605fa(_0x3c8edd);}};function _0x26e29f(_0x4bc067,_0x2340c4){return _0x115b9e(_0x4bc067,_0x2340c4- -0x564);}return _0x192e59[_0x26e29f(-0xa4,-0x7f)](createHash,_0x5514e4(0x1c7,0x1e0))['update'](_0x4f464[_0x5514e4(0x1b6,0x1cc)]()[_0x5514e4(0x1f3,0x228)+'e']())[_0x26e29f(-0xc1,-0xb8)]('hex')[_0x26e29f(-0x90,-0xa8)](0x0,0x10);}export class SyncQueue{['db'];[_0x267c46(-0x113,-0x147)];constructor(_0x3fbc4b,_0x561671){function _0x368033(_0x19c56f,_0x249e04){return _0x115b9e(_0x249e04,_0x19c56f- -0x43d);}this['db']=_0x3fbc4b,this[_0x368033(0xca,0xf6)]=_0x561671;}[_0x115b9e(0x4cb,0x4e2)](_0x249c2b){function _0x55099d(_0x44b643,_0x5f2b24){return _0x115b9e(_0x44b643,_0x5f2b24- -0x303);}function _0x3e4222(_0x3f2c9f,_0x5c04e7){return _0x115b9e(_0x3f2c9f,_0x5c04e7- -0x2ec);}const _0x88089b={'uMRfc':_0x55099d(0x219,0x1f2)};this['db'][_0x3e4222(0x1c8,0x1ca)+'tus'](_0x249c2b,null,_0x88089b[_0x3e4222(0x208,0x1d4)]);}async[_0x267c46(-0x14f,-0x14e)](_0x2bc521){const _0x460ef7={'VQGFJ':function(_0x150f50,_0x39f469){return _0x150f50(_0x39f469);},'VsFpH':function(_0x1cf10a,_0x21d06c){return _0x1cf10a===_0x21d06c;},'rSdQu':function(_0x16b35d,_0x1e7c4d){return _0x16b35d!==_0x1e7c4d;},'TUNrP':_0x13ff89(0x40f,0x409),'kpgqb':function(_0x1d7618,_0x31ebca){return _0x1d7618===_0x31ebca;},'fWdYi':_0x13ff89(0x3ba,0x396),'bzPst':_0x13ff89(0x3f2,0x3e1),'KuVmu':function(_0x36daf2,_0x5a5e67){return _0x36daf2<_0x5a5e67;},'FBMZI':function(_0x2ebbb4,_0x13a88a){return _0x2ebbb4-_0x13a88a;},'GaebA':_0x19f0b4(0x1b,0x42)},_0x2576f6=Date[_0x19f0b4(-0x1f,-0x20)](),_0x5641ad=_0x2bc521?.[_0x13ff89(0x3bd,0x3ac)]??0x493e0,_0x520278={'pushed':0x0,'failed':0x0,'errors':[],'duration':0x0,'syncedItems':[]},_0x14aaad=0x64,_0x47594d=this['db']['getPending'+'SyncMemori'+'es']();if(_0x460ef7[_0x19f0b4(-0x40,-0x4c)](_0x47594d[_0x19f0b4(-0x1c,-0x4f)],0x0))return _0x520278[_0x13ff89(0x3ea,0x3cd)]=Date[_0x19f0b4(-0x1f,-0xe)]()-_0x2576f6,_0x520278;const _0x3b5743=new Map(),_0x2b0304=_0x47594d[_0x19f0b4(-0x3a,-0x6d)](_0x90484d=>{const _0x52aaeb=_0x460ef7[_0x5ec865(0x45c,0x445)](computeContentHash,_0x90484d['content']);if(_0x3b5743['has'](_0x52aaeb))return this['db'][_0x430ba3(-0x154,-0x16a)+'tus'](_0x90484d['id'],null,_0x430ba3(-0x130,-0x166)),![];function _0x430ba3(_0x1ebf5e,_0x55392b){return _0x13ff89(_0x55392b- -0x529,_0x1ebf5e);}_0x3b5743[_0x430ba3(-0x177,-0x145)](_0x52aaeb,_0x90484d['id']);function _0x5ec865(_0x1c9bb6,_0x1ace6a){return _0x13ff89(_0x1ace6a-0x77,_0x1c9bb6);}return!![];}),_0x297b31=_0x2b0304['filter'](_0x503ab0=>!_0x503ab0['parentId']);function _0x13ff89(_0x2efa1c,_0x398921){return _0x115b9e(_0x398921,_0x2efa1c- -0xf7);}const _0x200f63=_0x2b0304[_0x13ff89(0x3c2,0x395)](_0x4c35bb=>!!_0x4c35bb[_0x13ff89(0x40b,0x41f)]),_0x3d01fc=new Map();for(const _0xc81ff1 of _0x200f63){if(_0x460ef7[_0x19f0b4(-0x3,-0x8)](_0x460ef7[_0x13ff89(0x405,0x3e2)],_0x19f0b4(0x13,0x1e)))_0x57a9aa['push']('삭제\x20실패\x20('+_0x36af60[_0x13ff89(0x408,0x422)]+_0x13ff89(0x3c0,0x3f4)+_0x4f82a0);else{if(_0xc81ff1[_0x13ff89(0x40b,0x3d8)]&&!_0x3d01fc['has'](_0xc81ff1[_0x13ff89(0x40b,0x41b)])){const _0x1acc79=this['db'][_0x13ff89(0x3bb,0x386)+_0x13ff89(0x407,0x43a)](_0xc81ff1[_0x13ff89(0x40b,0x42f)]);if(_0x1acc79?.[_0x13ff89(0x3f5,0x428)]){if(_0x460ef7[_0x13ff89(0x3df,0x411)](_0x460ef7[_0x13ff89(0x3e2,0x3e8)],_0x460ef7['bzPst'])){const _0x48c22b=this['db'][_0x19f0b4(-0x41,-0x67)+'tus'](_0x594c64[_0x19f0b4(0xf,0xd)]);_0x48c22b?.[_0x19f0b4(-0x7,0x9)]&&_0x2915d8['set'](_0x2496ac[_0x13ff89(0x40b,0x400)],_0x48c22b[_0x19f0b4(-0x7,0x2)]);}else _0x3d01fc[_0x13ff89(0x3e4,0x3d5)](_0xc81ff1[_0x13ff89(0x40b,0x3f5)],_0x1acc79[_0x19f0b4(-0x7,-0x2f)]);}}}}await this['pushBatche'+'s'](_0x297b31,_0x14aaad,_0x2576f6,_0x5641ad,_0x520278,_0x3d01fc);function _0x19f0b4(_0x4c5fb8,_0x57e99b){return _0x115b9e(_0x57e99b,_0x4c5fb8- -0x4f3);}if(_0x200f63[_0x19f0b4(-0x1c,0x17)]>0x0&&(_0x460ef7[_0x13ff89(0x3df,0x3ce)](_0x5641ad,0x0)||_0x460ef7[_0x13ff89(0x3f0,0x422)](_0x460ef7[_0x13ff89(0x418,0x403)](Date[_0x19f0b4(-0x1f,-0x19)](),_0x2576f6),_0x5641ad))){if(_0x13ff89(0x3da,0x3ba)!=='lemeO'){const _0x361733=_0x200f63['filter'](_0x587172=>_0x3d01fc['has'](_0x587172[_0x13ff89(0x40b,0x408)])),_0x810496=_0x200f63[_0x13ff89(0x3c2,0x3ba)](_0x1bcde5=>!_0x3d01fc[_0x13ff89(0x3c8,0x3d8)](_0x1bcde5['parentId']));_0x810496[_0x19f0b4(-0x1c,-0x1)]>0x0&&('EVvLN'===_0x460ef7[_0x13ff89(0x3cd,0x3ec)]?_0x2ba3f6['set'](_0x4669dd['parentId'],_0x2a0ed0['remoteId']):_0x520278[_0x19f0b4(-0x8,0x26)][_0x13ff89(0x3d3,0x3ba)](_0x810496[_0x13ff89(0x3e0,0x3ca)]+(_0x13ff89(0x3e6,0x3eb)+_0x19f0b4(0x10,0x8)+_0x13ff89(0x3b3,0x3ac)+_0x13ff89(0x40e,0x418)+'에서\x20재시도)'))),await this[_0x19f0b4(-0x35,-0x5a)+'s'](_0x361733,_0x14aaad,_0x2576f6,_0x5641ad,_0x520278,_0x3d01fc);}else return this['db'][_0x13ff89(0x3cc,0x396)+'SyncMemori'+'es']()[_0x19f0b4(-0x1c,-0x1a)];}return _0x520278['duration']=Date[_0x19f0b4(-0x1f,-0x19)]()-_0x2576f6,_0x520278;}async['pushBatche'+'s'](_0x4eed8e,_0x2b27c0,_0x8a9528,_0x175550,_0x5d7090,_0x55f7b7){function _0x4d6863(_0x550b19,_0x4fc5bb){return _0x115b9e(_0x550b19,_0x4fc5bb- -0x2aa);}const _0x54aadf={'mZvJg':function(_0x2b4c95,_0x4aba32){return _0x2b4c95 instanceof _0x4aba32;},'wKgZa':_0x4d6863(0x250,0x267),'PxOni':'not\x20found','uhZPJ':_0x505a91(-0x130,-0x130),'iOXDm':function(_0x2cfafc,_0x2bbc6a){return _0x2cfafc!==_0x2bbc6a;},'ojCFi':'hex','GcJDK':_0x505a91(-0xe9,-0x109),'aPPqK':function(_0x1add96,_0x47fe5e){return _0x1add96>_0x47fe5e;},'MxCHr':function(_0x223814,_0x3478dd){return _0x223814-_0x3478dd;},'AzAQS':function(_0x3d8d3a,_0xa662b5){return _0x3d8d3a-_0xa662b5;},'UZQCz':_0x4d6863(0x1cc,0x201),'XVmPL':function(_0x1042b0,_0x5ef3f4){return _0x1042b0<_0x5ef3f4;},'AEjNR':_0x505a91(-0x142,-0x147),'ywTMH':function(_0x175aaf,_0x2d9797){return _0x175aaf===_0x2d9797;},'nCwsW':function(_0x349d44,_0x147e01){return _0x349d44(_0x147e01);}};function _0x505a91(_0x12c0ef,_0x2b8a52){return _0x115b9e(_0x2b8a52,_0x12c0ef- -0x5fc);}for(let _0x21502a=0x0;_0x21502a<_0x4eed8e[_0x505a91(-0x125,-0x108)];_0x21502a+=_0x2b27c0){if(_0x54aadf[_0x4d6863(0x206,0x20e)](_0x4d6863(0x26e,0x269),_0x54aadf['GcJDK']))return _0x512874[_0x5d9f0c]??_0x10b2ef;else{if(_0x175550>0x0&&_0x54aadf[_0x4d6863(0x21a,0x23a)](_0x54aadf[_0x505a91(-0x119,-0xe4)](Date['now'](),_0x8a9528),_0x175550)){const _0x399d79=_0x54aadf[_0x4d6863(0x28e,0x25f)](_0x4eed8e['length'],_0x21502a);_0x5d7090[_0x4d6863(0x26b,0x241)][_0x4d6863(0x22a,0x220)](_0x4d6863(0x202,0x22b)+_0x399d79+_0x4d6863(0x25d,0x257)),_0x5d7090[_0x505a91(-0x141,-0x11e)]+=_0x399d79;break;}const _0x495c81=_0x4eed8e[_0x4d6863(0x1d4,0x203)](_0x21502a,_0x21502a+_0x2b27c0);try{if(_0x505a91(-0x151,-0x144)!==_0x54aadf[_0x505a91(-0x104,-0xdd)]){const _0x136c0a=_0x54aadf[_0x4d6863(0x260,0x23e)](_0x35bee8,_0x38e164)?_0x5eb88e[_0x505a91(-0x120,-0xf2)]:_0x5abc35(_0x4bf091);_0x136c0a[_0x4d6863(0x241,0x26b)](_0x54aadf[_0x4d6863(0x255,0x21f)])||_0x136c0a[_0x505a91(-0xe7,-0x105)](_0x54aadf[_0x4d6863(0x22b,0x249)])||_0x136c0a[_0x505a91(-0xe7,-0xd8)](_0x54aadf[_0x505a91(-0x124,-0xf9)])?(this['db'][_0x505a91(-0x11c,-0xfb)+'oneSynced'](_0x4f1c9e[_0x505a91(-0xfd,-0xe8)]),_0x2cf2fe++):_0x46421c[_0x4d6863(0x208,0x220)](_0x4d6863(0x220,0x21c)+_0x525286[_0x505a91(-0xfd,-0x11d)]+_0x505a91(-0x145,-0x123)+_0x136c0a);}else{const _0x5979d2=new Map(),_0x10b39c=await this[_0x505a91(-0xf5,-0x11c)][_0x505a91(-0x11d,-0x14d)+_0x505a91(-0xf4,-0xc4)](_0x495c81[_0x505a91(-0x12a,-0x151)](_0x2bdb04=>{function _0x3b8ff7(_0x3ebc4e,_0x69fe69){return _0x4d6863(_0x69fe69,_0x3ebc4e- -0x29d);}const _0x302763=_0x54aadf[_0x3b8ff7(-0x8f,-0x99)](_0x2bdb04['qualitySco'+'re'],undefined)?Math['round'](_0x2bdb04['qualitySco'+'re']*0x3e8)/0x3e8:undefined;function _0x23aca6(_0x4a785b,_0x2e11b2){return _0x4d6863(_0x4a785b,_0x2e11b2- -0xce);}return _0x5979d2[_0x23aca6(0x183,0x163)](_0x2bdb04['id'],_0x302763),{'content':_0x2bdb04[_0x3b8ff7(-0x4e,-0x47)],'category':mapCategory(_0x2bdb04['category']),'tier':mapTier(_0x2bdb04[_0x3b8ff7(-0x37,-0x14)]),'tags':_0x2bdb04[_0x23aca6(0x1cd,0x19c)],'created_at':_0x2bdb04[_0x3b8ff7(-0x55,-0x6f)],'parent_id':_0x2bdb04[_0x23aca6(0x168,0x18a)]?_0x55f7b7[_0x3b8ff7(-0x58,-0x2f)](_0x2bdb04[_0x3b8ff7(-0x45,-0x6e)]):undefined,'chunk_index':_0x2bdb04['chunkIndex']??undefined,'chunk_total':_0x2bdb04[_0x23aca6(0x119,0x149)]??undefined,'quality_score':_0x302763};}));for(let _0x23dc4a=0x0;_0x54aadf[_0x505a91(-0xfc,-0x11a)](_0x23dc4a,_0x10b39c[_0x505a91(-0x12e,-0x13e)][_0x4d6863(0x25a,0x22d)]);_0x23dc4a++){if(_0x23dc4a<_0x495c81[_0x4d6863(0x238,0x22d)]&&_0x10b39c['ids'][_0x23dc4a]){const _0x363431=_0x495c81[_0x23dc4a]['id'],_0x3b195d=_0x5979d2[_0x4d6863(0x27a,0x245)](_0x363431);if(_0x3b195d!==undefined&&_0x495c81[_0x23dc4a][_0x4d6863(0x216,0x206)+'re']===undefined)try{this['db'][_0x4d6863(0x223,0x204)+'ry'](_0x363431,{'qualityScore':_0x3b195d});}catch{}this['db']['setSyncSta'+_0x4d6863(0x25c,0x254)](_0x363431,_0x10b39c[_0x4d6863(0x22d,0x224)][_0x23dc4a],_0x54aadf[_0x505a91(-0x134,-0x104)]),_0x55f7b7[_0x505a91(-0x121,-0xf7)](_0x363431,_0x10b39c[_0x4d6863(0x205,0x224)][_0x23dc4a]),_0x5d7090['syncedItem'+'s'][_0x505a91(-0x132,-0x12c)]({'localId':_0x363431,'remoteId':_0x10b39c[_0x4d6863(0x20e,0x224)][_0x23dc4a]});}}_0x5d7090['pushed']+=_0x10b39c['created'],_0x5d7090[_0x505a91(-0x141,-0x121)]+=_0x10b39c['failed'];if(_0x10b39c[_0x4d6863(0x270,0x241)][_0x505a91(-0x125,-0x12f)]>0x0){if('dVJBS'!==_0x505a91(-0x108,-0x100))_0x5d7090['errors'][_0x505a91(-0x132,-0x11d)](..._0x10b39c[_0x4d6863(0x277,0x241)]);else return _0x610189(_0x505a91(-0x11e,-0x153))[_0x4d6863(0x23d,0x225)](_0x2d9684[_0x505a91(-0x12f,-0x12a)]()[_0x4d6863(0x28e,0x260)+'e']())[_0x505a91(-0x150,-0x11b)](qdLGWX[_0x4d6863(0x268,0x262)])[_0x4d6863(0x224,0x212)](0x0,0x10);}}}catch(_0x37a60c){if(_0x54aadf[_0x505a91(-0x14d,-0x181)](_0x4d6863(0x25b,0x244),_0x4d6863(0x25a,0x244)))_0x5d7090['errors']['push'](_0x4d6863(0x256,0x24c)+(_0x37a60c instanceof Error?_0x37a60c[_0x4d6863(0x25f,0x232)]:_0x54aadf[_0x505a91(-0x105,-0x111)](String,_0x37a60c))),_0x5d7090[_0x505a91(-0x141,-0x129)]+=_0x495c81[_0x505a91(-0x125,-0x103)];else return this['db'][_0x505a91(-0x146,-0x144)+_0x505a91(-0xfe,-0x125)](_0x4bb4ec['id'],null,_0x4d6863(0x1dd,0x210)),![];}}}}async[_0x115b9e(0x4e2,0x4e6)+_0x267c46(-0x14a,-0x16b)](){function _0x471bfa(_0xb9fadc,_0x117e64){return _0x115b9e(_0xb9fadc,_0x117e64- -0x638);}const _0x399ff4={'ufnut':function(_0xe61053,_0x58918a){return _0xe61053 instanceof _0x58918a;}},_0x5442c5=this['db']['getUnsynce'+'dTombstone'+'s']();let _0x4ec8c9=0x0;const _0x560c89=[];function _0x2d3c07(_0x383e60,_0x34cdc1){return _0x115b9e(_0x34cdc1,_0x383e60- -0xa6);}for(const _0x14a57b of _0x5442c5){const _0x1c079f=this['db']['getSyncSta'+_0x2d3c07(0x458,0x44a)](_0x14a57b['memoryId']);if(!_0x1c079f?.[_0x471bfa(-0x16d,-0x14c)]){this['db']['markTombst'+_0x471bfa(-0x15c,-0x13b)](_0x14a57b['memoryId']);continue;}try{await this[_0x2d3c07(0x461,0x46e)][_0x2d3c07(0x417,0x41d)+'ry'](_0x1c079f[_0x2d3c07(0x446,0x457)]),this['db'][_0x2d3c07(0x43a,0x437)+_0x471bfa(-0x15d,-0x13b)](_0x14a57b[_0x471bfa(-0x15b,-0x139)]),_0x4ec8c9++;}catch(_0x28d396){const _0x9f2f03=_0x399ff4[_0x2d3c07(0x41c,0x42f)](_0x28d396,Error)?_0x28d396[_0x471bfa(-0x155,-0x15c)]:String(_0x28d396);_0x9f2f03[_0x2d3c07(0x46f,0x493)]('404')||_0x9f2f03[_0x2d3c07(0x46f,0x47c)](_0x2d3c07(0x454,0x481))||_0x9f2f03[_0x471bfa(-0xee,-0x123)](_0x2d3c07(0x426,0x443))?(this['db'][_0x2d3c07(0x43a,0x418)+_0x2d3c07(0x457,0x428)](_0x14a57b['memoryId']),_0x4ec8c9++):'EDhfp'===_0x2d3c07(0x44b,0x44c)?_0x560c89[_0x2d3c07(0x424,0x404)](_0x2d3c07(0x420,0x44d)+_0x14a57b['memoryId']+_0x471bfa(-0x152,-0x181)+_0x9f2f03):(this['db']=_0x3e8d58,this[_0x2d3c07(0x461,0x468)]=_0x52ee2e);}}return{'deleted':_0x4ec8c9,'errors':_0x560c89};}[_0x115b9e(0x48f,0x4c3)+'Count'](){function _0x14f7ed(_0x286dcb,_0x2e3df4){return _0x267c46(_0x2e3df4- -0x117,_0x286dcb);}return this['db'][_0x14f7ed(-0x23b,-0x26e)+'SyncMemori'+'es']()['length'];}}
|