a2a-memory 0.12.67 → 0.12.69
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/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/contextrank.js +1 -1
- package/dist/cli/commands/edit.js +1 -1
- package/dist/cli/commands/embed.js +1 -1
- package/dist/cli/commands/export.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/measure.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/review.js +1 -1
- package/dist/cli/commands/rm.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/session-extract.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/commands/usage.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/config/manager.js +1 -1
- package/dist/config/prompt-hook.js +1 -1
- package/dist/contextrank/ac-matcher.js +1 -1
- package/dist/contextrank/edge-builder.js +1 -1
- package/dist/contextrank/rank-builder.js +1 -1
- package/dist/contextrank/signal-builder.js +1 -1
- package/dist/contextrank/since-store.js +1 -1
- package/dist/db/database.d.ts +17 -0
- package/dist/db/database.js +1 -1
- package/dist/db/integrity-marker.js +1 -1
- package/dist/db/usage-spool.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.d.ts +18 -0
- 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/channel-metrics.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/contradiction.js +1 -1
- package/dist/lifecycle/embedding-backfill.js +1 -1
- package/dist/lifecycle/index.js +1 -1
- package/dist/lifecycle/injection-flush.js +1 -1
- package/dist/lifecycle/quality-scorer.js +1 -1
- package/dist/lifecycle/session-extract.js +1 -1
- package/dist/lifecycle/shadow-rebuild.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/search/adaptive-router.js +1 -1
- package/dist/search/index.js +1 -1
- package/dist/search/injection-filter.js +1 -1
- package/dist/search/memoryrank-rerank.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/file-mode.js +1 -1
- package/dist/utils/keychain.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/utils/test-isolation.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xa610f6,_0x1d7b09){function _0x1c1a08(_0x3104f1,_0x1480d2){return _0x4fb8(_0x1480d2-0x1fa,_0x3104f1);}const _0x2e426f=_0xa610f6();function _0xd33f83(_0x1f91a7,_0x307302){return _0x4fb8(_0x307302-0x231,_0x1f91a7);}while(!![]){try{const _0x5eee39=parseInt(_0x1c1a08(0x40b,0x3e5))/0x1+-parseInt(_0x1c1a08(0x3d5,0x3db))/0x2+-parseInt(_0xd33f83(0x46d,0x45a))/0x3+-parseInt(_0xd33f83(0x453,0x44a))/0x4*(-parseInt(_0xd33f83(0x425,0x414))/0x5)+parseInt(_0xd33f83(0x3eb,0x410))/0x6+parseInt(_0x1c1a08(0x40d,0x418))/0x7+-parseInt(_0xd33f83(0x46e,0x449))/0x8;if(_0x5eee39===_0x1d7b09)break;else _0x2e426f['push'](_0x2e426f['shift']());}catch(_0x2b3f84){_0x2e426f['push'](_0x2e426f['shift']());}}}(_0x8341,0xc4225));import{buildAsciiSubstringMatcher}from'./ac-matcher.js';function _0x8341(){const _0x3665b0=['v2TdqKK','BwLU','B25nyxrJAgvKuW','C2X1z3m','q29UDgvUDhm','z2v0','u2HHCMvKu2v0CW','BgvHC2u','AgvZt1a','BgvUz3rO','z2v0q2HHBMDLza','CMvUzxC','psaXicHNB3qG','zhn0','C3fYDa','zxngB3jtCMnZ','AgfZ','CMvM','Aw5KzxHpzG','y2vPBa','mtq3mdKXnZzTEvzyCem','mJK2nJy3mMHnquXgCa','zMLSDgvY','BwfW','C3nPB25tzxrZ','z2v0u2vZC2LVBG','mJa2otK5mvHvy0rPvG','CMfJAKq','BxncsLG','AhvItwf4rgy','zxrZ','quPlquO','BwLUu2LT','AxrLCMf0zufSBa','zMXVB3i','Bwf4u2v0u2L6zq','DgvTCa','mtG3ntu0meHjy0LluG','C2nHBKrVyW','zgznyxG','twvTB3j5swrZ','ChvZAa','z2v0vgfNtwvTBW','D2vPz2H0','DvztExy','mZC1mde1mfjdDhHkDq','B25qCM9NCMvZCW','mti3ntC5nK1Rrvrmqq','ruzAtKq','mtbOCvvIz08','wNvfDfO','BM93','Evz4zwq','z2v0qwXSrw1Izq','C2LUy2u','C3bSAxq','y29VyW','mtuWmtaXnKfRtgrivG','wfDryvi','zNjVBq','C29YDa','C3jJ','y291BNq','AejNwxe','z2v0vxnHz2vtzq','BxvZDcbIzsbHBG','C2LT','y29UDgvUDa','Dg9WsW','z2v0sw5Qzwn0Aq','BgvHC2vszw5LDW','qK53CeG','BM93txm','CMvWBgfJzuvKzW','AxnjBNrLz2vY','A2f4s0q','C2L6zq','ywrK','zw1IzwrKAw5N','C2v0','Be9PzxC','Bwf4'];_0x8341=function(){return _0x3665b0;};return _0x8341();}export const SIM_TOP_K=0x19;export const SIM_MIN=0.5;export const SIM_CHUNK=0x40;export const SIM_PRUNE_EPS=1e-9;export const TAG_COOC_ABS_MAX_DF=0x64;export function resolveHubMaxDf(_0x5a5c85,_0x51825a){if(_0x51825a!==undefined)return _0x51825a;function _0x288c9d(_0xb51209,_0x3ff7d0){return _0x4fb8(_0xb51209- -0x89,_0x3ff7d0);}function _0x4cd809(_0x320bc8,_0x5a28d9){return _0x4fb8(_0x320bc8-0x191,_0x5a28d9);}return Math[_0x4cd809(0x396,0x378)](TAG_COOC_ABS_MAX_DF,Math[_0x4cd809(0x394,0x373)](0x32,Math[_0x4cd809(0x3b7,0x391)](_0x5a5c85*0.1)));}export function insertTopK(_0x27a034,_0x3b6eab,_0x39844,_0x2201d2,_0x8319d6,_0xf8f6e2,_0x18017a,_0x28c80c){const _0x30b08f=_0x8319d6*_0xf8f6e2,_0x376869=_0x5d68a2=>_0x27a034[_0x30b08f+_0x5d68a2]<_0x28c80c||_0x27a034[_0x30b08f+_0x5d68a2]===_0x28c80c&&_0x3b6eab[_0x30b08f+_0x5d68a2]>_0x18017a;if(_0x39844[_0x8319d6]<_0xf8f6e2){if('nUMby'===_0x258dab(0x34a,0x32f))_0x4e0fb3[_0x246848[_0x445c6e]]=0x1,_0x36a028[_0x5a2222[_0x204c30]]=0x1;else{let _0x431989=_0x39844[_0x8319d6]-0x1;while(_0x431989>=0x0&&_0x376869(_0x431989)){if('XWQaR'!==_0x2ad40b(0x252,0x22c)){let _0x407f73=0x0;const _0xc75c4b=_0xffd1e7*_0x442b75;for(let _0x535343=0x0;_0x535343<_0x538f4e;_0x535343++){_0x2af047[_0x1fee2c*_0x304ede+_0x535343]=_0x21036a[_0x2ad40b(0x278,0x29c)](_0x4266e3['max'](0x0,0x1-_0x407f73));const _0x4b004c=_0x8022d6[_0x258dab(0x34b,0x327)](_0x2fb094,(_0x535343+0x1)*_0x3b9901);for(let _0x34cdc4=_0x535343*_0x249ec;_0x34cdc4<_0x4b004c;_0x34cdc4++){const _0x1714dd=_0x59d5c2[_0xc75c4b+_0x34cdc4];_0x407f73+=_0x1714dd*_0x1714dd;}}}else _0x27a034[_0x30b08f+_0x431989+0x1]=_0x27a034[_0x30b08f+_0x431989],_0x3b6eab[_0x30b08f+_0x431989+0x1]=_0x3b6eab[_0x30b08f+_0x431989],_0x431989--;}_0x27a034[_0x30b08f+_0x431989+0x1]=_0x28c80c,_0x3b6eab[_0x30b08f+_0x431989+0x1]=_0x18017a,_0x39844[_0x8319d6]++;if(_0x39844[_0x8319d6]===_0xf8f6e2)_0x2201d2[_0x8319d6]=_0x27a034[_0x30b08f+_0xf8f6e2-0x1];return;}}function _0x258dab(_0x494af3,_0xce2587){return _0x4fb8(_0x494af3-0x146,_0xce2587);}function _0x2ad40b(_0x1639b4,_0x449752){return _0x4fb8(_0x1639b4-0x66,_0x449752);}if(_0x28c80c<_0x2201d2[_0x8319d6])return;if(_0x28c80c===_0x2201d2[_0x8319d6]&&_0x18017a>_0x3b6eab[_0x30b08f+_0xf8f6e2-0x1])return;let _0xe17c60=_0xf8f6e2-0x2;while(_0xe17c60>=0x0&&_0x376869(_0xe17c60)){_0x27a034[_0x30b08f+_0xe17c60+0x1]=_0x27a034[_0x30b08f+_0xe17c60],_0x3b6eab[_0x30b08f+_0xe17c60+0x1]=_0x3b6eab[_0x30b08f+_0xe17c60],_0xe17c60--;}_0x27a034[_0x30b08f+_0xe17c60+0x1]=_0x28c80c,_0x3b6eab[_0x30b08f+_0xe17c60+0x1]=_0x18017a,_0x2201d2[_0x8319d6]=_0x27a034[_0x30b08f+_0xf8f6e2-0x1];}export function sameAsExisting(_0x56b9bc,_0x1d39b9,_0x2e1c9c,_0x1b53e4,_0x4e871e,_0x24bfc8,_0x51cbd0){function _0x45bdea(_0x14a1d1,_0x2ce397){return _0x4fb8(_0x2ce397-0x193,_0x14a1d1);}function _0x1e1211(_0x2f4f69,_0x349100){return _0x4fb8(_0x2f4f69- -0x12,_0x349100);}if(_0x56b9bc[_0x45bdea(0x368,0x383)][_0x1d39b9]!==_0x2e1c9c)return![];const _0x371b5e=_0x56b9bc[_0x1e1211(0x1ff,0x217)][_0x1d39b9],_0x916608=_0x56b9bc['w'][_0x1d39b9];if(_0x2e1c9c===0x0)return _0x371b5e===undefined||_0x371b5e['length']===0x0;if(_0x371b5e===undefined||_0x916608===undefined||_0x371b5e['length']!==_0x2e1c9c)return![];for(let _0x23d4be=0x0;_0x23d4be<_0x2e1c9c;_0x23d4be++){const _0xba0591=_0x51cbd0[_0x4e871e[_0x1b53e4+_0x23d4be]],_0x290870=_0x24bfc8[_0x1b53e4+_0x23d4be];let _0xa1eabb=![];for(let _0xda95b1=0x0;_0xda95b1<_0x2e1c9c;_0xda95b1++){if(_0x371b5e[_0xda95b1]===_0xba0591&&_0x916608[_0xda95b1]===_0x290870){_0xa1eabb=!![];break;}}if(!_0xa1eabb)return![];}return!![];}export function buildSimEdges(_0x29626b,_0x4c0643){const _0xf7ccb0=_0x4c0643?.['topK']??SIM_TOP_K;if(!Number[_0x375fb8(0x171,0x15e)](_0xf7ccb0)||_0xf7ccb0<0x1)throw new Error('buildSimEd'+'ges:\x20topK\x20'+_0x154fa5(0x1fb,0x1dd)+'\x20integer\x20>'+_0x154fa5(0x218,0x23a)+String(_0x4c0643?.[_0x154fa5(0x1fe,0x215)])+')');const _0x14a3d4=_0x4c0643?.[_0x154fa5(0x22c,0x208)]??SIM_MIN,_0x112e7a=_0x4c0643?.[_0x375fb8(0x16f,0x182)]??0x0,_0x3c3c05=_0x4c0643?.[_0x375fb8(0x180,0x1a2)],_0x2ef7ad=_0x4c0643?.[_0x154fa5(0x200,0x1da)+'Ms']??0xea60,_0x44dfa3=_0x29626b[_0x375fb8(0x15c,0x135)+'ddingRows'](),_0x191a6b=_0x44dfa3[_0x154fa5(0x215,0x201)];let _0x284f92=null,_0x5b3be7=null,_0x562bc4=null,_0x48ca47=null,_0x161e04=null;if(_0x4c0643?.[_0x154fa5(0x1f0,0x208)]){const _0x311212=new Map();for(let _0x5b8d80=0x0;_0x5b8d80<_0x191a6b;_0x5b8d80++)_0x311212[_0x154fa5(0x209,0x1f3)](_0x44dfa3[_0x5b8d80]['id'],_0x5b8d80);const _0x2e22d9=new Set(_0x29626b[_0x154fa5(0x216,0x23f)+_0x154fa5(0x234,0x217)](_0x4c0643[_0x154fa5(0x1f0,0x20a)])),_0x58d2ad=new Uint8Array(_0x191a6b);for(const _0x410288 of _0x2e22d9){const _0x5962af=_0x311212[_0x154fa5(0x211,0x224)](_0x410288);if(_0x5962af!==undefined)_0x58d2ad[_0x5962af]=0x1;}const _0x480bd2=_0x29626b['getEdges'](_0x154fa5(0x1fc,0x1ff));for(const _0x2633f0 of _0x480bd2){if(!_0x2e22d9[_0x375fb8(0x189,0x1aa)](_0x2633f0['dst']))continue;const _0x489087=_0x311212[_0x154fa5(0x211,0x1fa)](_0x2633f0['src']);if(_0x489087!==undefined)_0x58d2ad[_0x489087]=0x1;}_0x284f92=_0x58d2ad,_0x562bc4=Uint8Array[_0x154fa5(0x1f5,0x20b)](_0x58d2ad);const _0x330f4d=[],_0x206a4d=new Set(),_0x2ff77b=new Set(),_0x3a2ad3=new Int32Array(_0x191a6b),_0x3c4e96=new Array(_0x191a6b),_0x3d2ea1=new Array(_0x191a6b);for(const _0x49ed13 of _0x480bd2){if('plHGm'!=='plHGm'){const _0x14e04f=new _0x1ff817();for(let _0x441f1e=0x0;_0x441f1e<_0x258908;_0x441f1e++)_0x14e04f[_0x154fa5(0x209,0x1ee)](_0x201cfd[_0x441f1e],_0x441f1e);const _0x3d732c=_0xc00200['filter'](_0x1eb415=>_0x14e04f[_0x375fb8(0x189,0x1b1)](_0x1eb415['s'])&&_0x14e04f[_0x154fa5(0x21c,0x207)](_0x1eb415['d']))[_0x375fb8(0x163,0x147)]((_0x472392,_0x45bff3)=>_0x472392['s']-_0x45bff3['s']||_0x472392['d']-_0x45bff3['d']);for(const _0x209b23 of _0x3d732c){_0x5777b1(_0x14e04f[_0x375fb8(0x17e,0x160)](_0x209b23['s']),_0x14e04f[_0x375fb8(0x17e,0x15c)](_0x209b23['d']),_0x209b23['w']);}}else{const _0x406d09=_0x311212[_0x154fa5(0x211,0x1fb)](_0x49ed13[_0x375fb8(0x164,0x176)]),_0x1fe8fc=_0x311212[_0x154fa5(0x211,0x225)](_0x49ed13[_0x375fb8(0x186,0x195)]);if(_0x406d09===undefined){_0x206a4d['add'](_0x49ed13[_0x375fb8(0x164,0x17d)]);continue;}_0x3a2ad3[_0x406d09]++;if(_0x1fe8fc===undefined){if(_0x154fa5(0x1ec,0x208)!==_0x154fa5(0x201,0x221)){_0x2ff77b[_0x154fa5(0x207,0x228)](_0x406d09);continue;}else _0x4b8e13=[],_0xcaa4b5[_0x375fb8(0x176,0x15e)](_0x530649,_0x9abb5f);}(_0x3c4e96[_0x406d09]??=[])[_0x375fb8(0x1a2,0x1bd)](_0x1fe8fc),(_0x3d2ea1[_0x406d09]??=[])[_0x375fb8(0x1a2,0x199)](_0x49ed13[_0x375fb8(0x1a4,0x1b2)]);if(_0x58d2ad[_0x406d09]||_0x58d2ad[_0x1fe8fc])continue;_0x330f4d[_0x375fb8(0x1a2,0x185)]({'s':_0x406d09,'d':_0x1fe8fc,'w':_0x49ed13[_0x375fb8(0x1a4,0x195)]});}}_0x161e04={'count':_0x3a2ad3,'dst':_0x3c4e96,'w':_0x3d2ea1},_0x5b3be7=_0x330f4d,_0x48ca47=_0x206a4d;for(const _0xa325e of _0x2ff77b)_0x562bc4[_0xa325e]=0x1;}const _0x3b4540=new Map();for(let _0x3e31ff=0x0;_0x3e31ff<_0x191a6b;_0x3e31ff++){const _0x3effd3=_0x44dfa3[_0x3e31ff]['embedding']['length'];let _0x51cd7e=_0x3b4540[_0x154fa5(0x211,0x1ec)](_0x3effd3);!_0x51cd7e&&(_0x51cd7e=[],_0x3b4540[_0x375fb8(0x176,0x16a)](_0x3effd3,_0x51cd7e)),_0x51cd7e[_0x154fa5(0x235,0x232)](_0x3e31ff);}const _0x4b790b=[];let _0x4676a5=0x0;function _0x375fb8(_0x53859c,_0x2e39da){return _0x4fb8(_0x53859c- -0x8b,_0x2e39da);}let _0x29e634=0x0,_0x5ea7e4=0x0;function _0x154fa5(_0x1e259e,_0x9a1060){return _0x4fb8(_0x1e259e-0x8,_0x9a1060);}let _0x54e96f=0x0;for(const [_0x800b82,_0x5918d0]of _0x3b4540){const _0x120d7a=_0x5918d0[_0x154fa5(0x215,0x212)];if(_0x120d7a<0x2){_0x54e96f+=_0x120d7a;continue;}const _0x3d7138=new Float64Array(_0x120d7a*_0x800b82);for(let _0x3ba347=0x0;_0x3ba347<_0x120d7a;_0x3ba347++){if(_0x375fb8(0x177,0x170)!==_0x154fa5(0x20a,0x1f0)){const _0x9c2bb4=_0x3123a9?.['nowMs']??0x0,_0x1c39d5=new _0x85e47e(),_0x13d42c=(_0xc8801c,_0x234c2d)=>{if(_0xc8801c===_0x234c2d)return;const _0x2008a0=_0xc8801c<_0x234c2d?_0xc8801c+'\x20'+_0x234c2d:_0x234c2d+'\x20'+_0xc8801c;_0x1c39d5['set'](_0x2008a0,(_0x1c39d5['get'](_0x2008a0)??0x0)+0x1);},_0x3d6d61=_0x4a3602['getInjecti'+_0x154fa5(0x20e,0x232)+'ets']();for(const _0x6b5a17 of _0x3d6d61)_0x818034(_0x6b5a17,_0x13d42c);const _0x2468a=_0x3e8e31[_0x375fb8(0x167,0x177)+_0x375fb8(0x191,0x192)]();for(const _0x58a134 of _0x2468a)_0x2a2c70(_0x58a134,_0x13d42c);const _0x256e9c=_0x1d2725(_0x3df56d,_0x13d42c,_0x86cce?.['hubMaxDf']),_0x58e317=[];for(const [_0x5dac68,_0x4a2abb]of _0x1c39d5){const [_0x4dca24,_0x78b8d]=_0x5dac68[_0x154fa5(0x1f1,0x1e5)]('\x20');_0x58e317[_0x154fa5(0x235,0x242)]({'src':_0x4dca24,'dst':_0x78b8d,'weight':_0x4a2abb}),_0x58e317[_0x154fa5(0x235,0x240)]({'src':_0x78b8d,'dst':_0x4dca24,'weight':_0x4a2abb});}const _0x3ec41a=_0x414562[_0x154fa5(0x203,0x20d)+'es'](_0x375fb8(0x15f,0x164),_0x58e317);return{'edges':_0x3ec41a,'injectionSets':_0x3d6d61[_0x375fb8(0x182,0x17b)],'usageSets':_0x2468a['length'],'tagStats':_0x256e9c,'elapsedMs':_0x9c2bb4?_0x1671ff['now']()-_0x9c2bb4:0x0};}else{const _0x17b159=_0x44dfa3[_0x5918d0[_0x3ba347]][_0x154fa5(0x208,0x226)];let _0x17857b=0x0;for(let _0x1e8ea9=0x0;_0x1e8ea9<_0x800b82;_0x1e8ea9++)_0x17857b+=_0x17b159[_0x1e8ea9]*_0x17b159[_0x1e8ea9];_0x17857b=Math[_0x154fa5(0x21a,0x224)](_0x17857b)||0x1;const _0x28ca89=_0x3ba347*_0x800b82;for(let _0x5e0e99=0x0;_0x5e0e99<_0x800b82;_0x5e0e99++)_0x3d7138[_0x28ca89+_0x5e0e99]=_0x17b159[_0x5e0e99]/_0x17857b;}}const _0xcbc5a9=Math[_0x375fb8(0x18c,0x17f)](_0x800b82/SIM_CHUNK),_0x2ea6bd=new Float64Array(_0x120d7a*_0xcbc5a9);for(let _0x400a89=0x0;_0x400a89<_0x120d7a;_0x400a89++){let _0x1c79a8=0x0;const _0x2cf457=_0x400a89*_0x800b82;for(let _0x441bc8=0x0;_0x441bc8<_0xcbc5a9;_0x441bc8++){_0x2ea6bd[_0x400a89*_0xcbc5a9+_0x441bc8]=Math['sqrt'](Math[_0x154fa5(0x20b,0x21d)](0x0,0x1-_0x1c79a8));const _0x2ee885=Math[_0x375fb8(0x17a,0x1a2)](_0x800b82,(_0x441bc8+0x1)*SIM_CHUNK);for(let _0x47e276=_0x441bc8*SIM_CHUNK;_0x47e276<_0x2ee885;_0x47e276++){const _0x3207be=_0x3d7138[_0x2cf457+_0x47e276];_0x1c79a8+=_0x3207be*_0x3207be;}}}const _0x4db1eb=new Float64Array(_0x120d7a*_0xf7ccb0),_0x40f6a9=new Int32Array(_0x120d7a*_0xf7ccb0),_0x1f434a=new Int32Array(_0x120d7a),_0x3e92d6=new Float64Array(_0x120d7a);_0x3e92d6['fill'](-0x2);const _0x380c4a=(_0x2634c3,_0x4f27c6,_0x15052e)=>insertTopK(_0x4db1eb,_0x40f6a9,_0x1f434a,_0x3e92d6,_0x2634c3,_0xf7ccb0,_0x4f27c6,_0x15052e);if(_0x5b3be7){const _0xef9dc2=new Map();for(let _0x7da17f=0x0;_0x7da17f<_0x120d7a;_0x7da17f++)_0xef9dc2[_0x375fb8(0x176,0x197)](_0x5918d0[_0x7da17f],_0x7da17f);const _0x36fb61=_0x5b3be7[_0x154fa5(0x222,0x241)](_0x290c3b=>_0xef9dc2['has'](_0x290c3b['s'])&&_0xef9dc2['has'](_0x290c3b['d']))[_0x375fb8(0x163,0x16c)]((_0x4a33f3,_0x18b93d)=>_0x4a33f3['s']-_0x18b93d['s']||_0x4a33f3['d']-_0x18b93d['d']);for(const _0x274aff of _0x36fb61){_0x380c4a(_0xef9dc2['get'](_0x274aff['s']),_0xef9dc2[_0x375fb8(0x17e,0x172)](_0x274aff['d']),_0x274aff['w']);}}for(let _0x29e961=0x0;_0x29e961<_0x120d7a;_0x29e961++){if(_0x3c3c05){const _0x20f031=Date[_0x375fb8(0x15a,0x17c)]();if(_0x20f031-_0x5ea7e4>=_0x2ef7ad){if(!_0x3c3c05[_0x154fa5(0x217,0x236)]())return{'nodes':_0x191a6b,'edges':0x0,'elapsedMs':_0x112e7a?Date[_0x375fb8(0x15a,0x176)]()-_0x112e7a:0x0,'aborted':!![]};_0x4c0643?.[_0x154fa5(0x1e8,0x20f)]?.(_0x54e96f+_0x29e961,_0x191a6b),_0x5ea7e4=_0x20f031;}}const _0x48cadd=_0x29e961*_0x800b82,_0x50948a=_0x29e961*_0xcbc5a9;for(let _0x294a22=_0x29e961+0x1;_0x294a22<_0x120d7a;_0x294a22++){if(_0x154fa5(0x227,0x24a)!==_0x154fa5(0x1ea,0x1dc)){if(_0x284f92&&!_0x284f92[_0x5918d0[_0x29e961]]&&!_0x284f92[_0x5918d0[_0x294a22]])continue;_0x29e634++;const _0x5a0f57=Math[_0x375fb8(0x178,0x16e)](_0x14a3d4,Math[_0x375fb8(0x17a,0x18d)](_0x3e92d6[_0x29e961],_0x3e92d6[_0x294a22])),_0x45f229=_0x294a22*_0x800b82,_0x3b63d3=_0x294a22*_0xcbc5a9;let _0x5dec34=0x0,_0x3b6e9b=0x0,_0x1a4d18=0x0,_0x52d47f=!![];while(_0x3b6e9b<_0x800b82){if(_0x154fa5(0x228,0x245)===_0x375fb8(0x15b,0x169))_0x52445f(_0xec4bdd['get'](_0x3e129a['s']),_0x2dc37c['get'](_0x3e5da1['d']),_0x4852b4['w']);else{const _0xab15d0=Math['min'](_0x800b82,_0x3b6e9b+SIM_CHUNK);for(;_0x3b6e9b<_0xab15d0;_0x3b6e9b++)_0x5dec34+=_0x3d7138[_0x48cadd+_0x3b6e9b]*_0x3d7138[_0x45f229+_0x3b6e9b];_0x1a4d18++;if(_0x1a4d18<_0xcbc5a9&&_0x5dec34+_0x2ea6bd[_0x50948a+_0x1a4d18]*_0x2ea6bd[_0x3b63d3+_0x1a4d18]<_0x5a0f57-SIM_PRUNE_EPS){_0x52d47f=![],_0x4676a5++;break;}}}if(!_0x52d47f||_0x5dec34<_0x14a3d4)continue;_0x380c4a(_0x29e961,_0x294a22,_0x5dec34),_0x380c4a(_0x294a22,_0x29e961,_0x5dec34);if(_0x562bc4){if(_0x375fb8(0x172,0x157)===_0x154fa5(0x1f9,0x21a))for(let _0x1d25f9=0x0;_0x1d25f9<_0x3bda6b[_0x154fa5(0x215,0x1ee)];_0x1d25f9++){for(let _0x4df92d=_0x1d25f9+0x1;_0x4df92d<_0x1e4e82[_0x154fa5(0x215,0x23a)];_0x4df92d++){_0x5246e1(_0x7adb3e[_0x1d25f9],_0x35b3e2[_0x4df92d]);}}else _0x562bc4[_0x5918d0[_0x29e961]]=0x1,_0x562bc4[_0x5918d0[_0x294a22]]=0x1;}}else{const _0x1c845c=[];for(let _0x454b3c=0x0;_0x454b3c<_0x347fa8;_0x454b3c++)if(_0x586bf1[_0x454b3c])_0x1c845c[_0x375fb8(0x1a2,0x1c2)](_0x45ca87[_0x454b3c]['id']);if(_0x2c2845){for(const _0x34e18c of _0x55e9e1)_0x1c845c[_0x375fb8(0x1a2,0x181)](_0x34e18c);}_0x119b7c=_0x1c845c[_0x154fa5(0x215,0x207)],_0x5c69d1=_0x2107d6[_0x375fb8(0x170,0x165)+_0x154fa5(0x21b,0x23d)](_0x154fa5(0x1fc,0x21c),_0x1c845c,_0x3448c8);}}}for(let _0x351655=0x0;_0x351655<_0x120d7a;_0x351655++){if(_0x562bc4&&!_0x562bc4[_0x5918d0[_0x351655]])continue;const _0x4390e7=_0x5918d0[_0x351655];if(_0x161e04&&sameAsExisting(_0x161e04,_0x4390e7,_0x1f434a[_0x351655],_0x351655*_0xf7ccb0,_0x40f6a9,_0x4db1eb,_0x5918d0)){_0x562bc4[_0x4390e7]=0x0;continue;}const _0x41f341=_0x44dfa3[_0x4390e7]['id'],_0x5b29f2=_0x351655*_0xf7ccb0;for(let _0x311eb2=0x0;_0x311eb2<_0x1f434a[_0x351655];_0x311eb2++){_0x4b790b[_0x154fa5(0x235,0x219)]({'src':_0x41f341,'dst':_0x44dfa3[_0x5918d0[_0x40f6a9[_0x5b29f2+_0x311eb2]]]['id'],'weight':_0x4db1eb[_0x5b29f2+_0x311eb2]});}}_0x54e96f+=_0x120d7a;}let _0xfbc671,_0x57e145=0x0;if(_0x562bc4){const _0x2b68f2=[];for(let _0x31c8ed=0x0;_0x31c8ed<_0x191a6b;_0x31c8ed++)if(_0x562bc4[_0x31c8ed])_0x2b68f2[_0x375fb8(0x1a2,0x180)](_0x44dfa3[_0x31c8ed]['id']);if(_0x48ca47){for(const _0x190b84 of _0x48ca47)_0x2b68f2[_0x154fa5(0x235,0x23e)](_0x190b84);}_0x57e145=_0x2b68f2[_0x375fb8(0x182,0x174)],_0xfbc671=_0x29626b['replaceEdg'+_0x375fb8(0x188,0x17e)](_0x154fa5(0x1fc,0x1d6),_0x2b68f2,_0x4b790b);}else _0xfbc671=_0x29626b[_0x375fb8(0x170,0x177)+'es']('sim',_0x4b790b),_0x57e145=new Set(_0x4b790b[_0x375fb8(0x190,0x1b8)](_0x5ed358=>_0x5ed358[_0x154fa5(0x1f7,0x21f)]))[_0x375fb8(0x173,0x165)];const _0x2ef74d=_0x562bc4?_0x29626b['countEdges'](_0x375fb8(0x169,0x15f)):_0xfbc671;return{'nodes':_0x191a6b,'edges':_0x2ef74d,'elapsedMs':_0x112e7a?Date['now']()-_0x112e7a:0x0,'prunedPairs':_0x4676a5,'pairsConsidered':_0x29e634,'srcsReplaced':_0x57e145,'edgesWritten':_0xfbc671};}function coocFromSet(_0x2de2eb,_0x140ae9){for(let _0xcc5497=0x0;_0xcc5497<_0x2de2eb['length'];_0xcc5497++){for(let _0x109982=_0xcc5497+0x1;_0x109982<_0x2de2eb['length'];_0x109982++){_0x140ae9(_0x2de2eb[_0xcc5497],_0x2de2eb[_0x109982]);}}}function addTagCooc(_0x45d2d4,_0x17970c,_0x5033c0){const _0x12b517=_0x45d2d4[_0x5d58f3(0x4ac,0x4a3)+'ryPairs'](),_0x5ba4bb=new Map();function _0x839b34(_0x50e4ed,_0x4fab86){return _0x4fb8(_0x4fab86- -0x279,_0x50e4ed);}const _0x464862=new Set();for(const {memory_id:_0x48a803,tag:_0x252f9f}of _0x12b517){let _0x3d5a02=_0x5ba4bb[_0x5d58f3(0x487,0x4a5)](_0x252f9f);!_0x3d5a02&&(_0x3d5a02=[],_0x5ba4bb[_0x839b34(-0x7f,-0x78)](_0x252f9f,_0x3d5a02)),_0x3d5a02['push'](_0x48a803),_0x464862['add'](_0x48a803);}function _0x5d58f3(_0x5be084,_0x5ada44){return _0x4fb8(_0x5be084-0x27e,_0x5ada44);}const _0x197cc9=_0x464862['size'],_0x34f0c7=resolveHubMaxDf(_0x197cc9,_0x5033c0);let _0x31b1ec=0x0,_0x34a0e2=0x0;for(const [,_0x41a2d3]of _0x5ba4bb){const _0x42a701=new Set(_0x41a2d3)[_0x839b34(-0x5e,-0x7b)];if(_0x42a701<0x2)continue;if(_0x42a701>_0x34f0c7){if(_0x839b34(-0x38,-0x56)!==_0x5d58f3(0x4a1,0x4a9))_0x2bf4cf(_0x483fe2[_0x4f16fd],_0x2e0f7b[_0x55671d]);else{_0x31b1ec++;continue;}}_0x34a0e2++;const _0x3a6e21=[...new Set(_0x41a2d3)];coocFromSet(_0x3a6e21,_0x17970c);}return{'totalTags':_0x5ba4bb[_0x5d58f3(0x47c,0x456)],'hubTags':_0x31b1ec,'validTags':_0x34a0e2};}export function buildCoocEdges(_0x14594f,_0x34cd54){const _0x57eee3=_0x34cd54?.[_0x3756dc(0x3c4,0x3cc)]??0x0,_0x454006=new Map();function _0x42b526(_0x227170,_0x56815f){return _0x4fb8(_0x56815f-0x30a,_0x227170);}const _0x378f73=(_0x1f94f9,_0xb1dcbf)=>{function _0x522f5c(_0x3db151,_0x19cc8d){return _0x3756dc(_0x19cc8d-0x218,_0x3db151);}function _0x3189a9(_0x4fba98,_0x1366a8){return _0x3756dc(_0x4fba98- -0x2fc,_0x1366a8);}if(_0x1f94f9===_0xb1dcbf)return;const _0xe4747b=_0x1f94f9<_0xb1dcbf?_0x1f94f9+'\x20'+_0xb1dcbf:_0xb1dcbf+'\x20'+_0x1f94f9;_0x454006[_0x522f5c(0x5d0,0x5e3)](_0xe4747b,(_0x454006[_0x3189a9(0xd7,0xb6)](_0xe4747b)??0x0)+0x1);},_0x55711b=_0x14594f[_0x42b526(0x4dd,0x501)+_0x42b526(0x4f5,0x510)+_0x3756dc(0x3ec,0x402)]();for(const _0x44a5c0 of _0x55711b)coocFromSet(_0x44a5c0,_0x378f73);const _0x2537d2=_0x14594f[_0x42b526(0x4ff,0x4fc)+_0x3756dc(0x3e6,0x3f5)]();for(const _0x69b4f of _0x2537d2)coocFromSet(_0x69b4f,_0x378f73);const _0x3e9576=addTagCooc(_0x14594f,_0x378f73,_0x34cd54?.[_0x42b526(0x512,0x52b)]),_0x112bf1=[];function _0x3756dc(_0x1ab3d8,_0x5d8e9e){return _0x4fb8(_0x1ab3d8-0x1ca,_0x5d8e9e);}for(const [_0x46071e,_0x18824e]of _0x454006){const [_0x402a2e,_0x391706]=_0x46071e['split']('\x20');_0x112bf1['push']({'src':_0x402a2e,'dst':_0x391706,'weight':_0x18824e}),_0x112bf1['push']({'src':_0x391706,'dst':_0x402a2e,'weight':_0x18824e});}const _0x35d6c2=_0x14594f['replaceEdg'+'es'](_0x42b526(0x511,0x4f4),_0x112bf1);return{'edges':_0x35d6c2,'injectionSets':_0x55711b[_0x3756dc(0x3d7,0x3d7)],'usageSets':_0x2537d2[_0x42b526(0x512,0x517)],'tagStats':_0x3e9576,'elapsedMs':_0x57eee3?Date[_0x42b526(0x50a,0x4ef)]()-_0x57eee3:0x0};}export const TEMP_MAX_SET=0xc8;function _0x4fb8(_0x56e0be,_0x1dffa5){_0x56e0be=_0x56e0be-0x1de;const _0x8341a5=_0x8341();let _0x4fb8df=_0x8341a5[_0x56e0be];if(_0x4fb8['CIRakf']===undefined){var _0x3d3f7d=function(_0x2cee11){const _0x138cf5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xd803bf='',_0x3e378f='';for(let _0x31e1d1=0x0,_0xa5e0dd,_0x112f48,_0x2dfcc5=0x0;_0x112f48=_0x2cee11['charAt'](_0x2dfcc5++);~_0x112f48&&(_0xa5e0dd=_0x31e1d1%0x4?_0xa5e0dd*0x40+_0x112f48:_0x112f48,_0x31e1d1++%0x4)?_0xd803bf+=String['fromCharCode'](0xff&_0xa5e0dd>>(-0x2*_0x31e1d1&0x6)):0x0){_0x112f48=_0x138cf5['indexOf'](_0x112f48);}for(let _0x8567b1=0x0,_0x2364cc=_0xd803bf['length'];_0x8567b1<_0x2364cc;_0x8567b1++){_0x3e378f+='%'+('00'+_0xd803bf['charCodeAt'](_0x8567b1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e378f);};_0x4fb8['ygFKih']=_0x3d3f7d,_0x4fb8['wCNvfr']={},_0x4fb8['CIRakf']=!![];}const _0x7471d2=_0x8341a5[0x0],_0x1d1fa8=_0x56e0be+_0x7471d2,_0x15bab0=_0x4fb8['wCNvfr'][_0x1d1fa8];return!_0x15bab0?(_0x4fb8df=_0x4fb8['ygFKih'](_0x4fb8df),_0x4fb8['wCNvfr'][_0x1d1fa8]=_0x4fb8df):_0x4fb8df=_0x15bab0,_0x4fb8df;}export function buildTempEdges(_0x4a2450,_0x188380){const _0x26fd3b=_0x188380?.[_0x5f23c1(0xc9,0xc5)]??0x0,_0x552624=_0x188380?.[_0x417161(0x3ad,0x39e)]??TEMP_MAX_SET,_0x9ef69a=_0x4a2450[_0x417161(0x36c,0x394)+_0x417161(0x37a,0x381)](),_0x400dba=new Map();function _0x417161(_0x1e029e,_0x381cf4){return _0x4fb8(_0x381cf4-0x177,_0x1e029e);}const _0x47ed54=(_0x563122,_0xef3a34)=>{if(_0x563122===_0xef3a34)return;const _0x416815=_0x563122<_0xef3a34?_0x563122+'\x20'+_0xef3a34:_0xef3a34+'\x20'+_0x563122;function _0x59f510(_0x204539,_0x5489e6){return _0x5f23c1(_0x204539,_0x5489e6-0x2d3);}function _0x36d31c(_0x156c91,_0x3c6739){return _0x5f23c1(_0x156c91,_0x3c6739- -0x1b9);}_0x400dba[_0x36d31c(-0xcd,-0xed)](_0x416815,(_0x400dba[_0x59f510(0x3a6,0x3a7)](_0x416815)??0x0)+0x1);};let _0x39537f=0x0;for(const _0x106da1 of _0x9ef69a){if(_0x106da1[_0x417161(0x38c,0x384)]>_0x552624){_0x39537f++;continue;}coocFromSet(_0x106da1,_0x47ed54);}const _0x406f1a=[];for(const [_0x33ab0e,_0x3be070]of _0x400dba){const [_0xc0664d,_0x935dbe]=_0x33ab0e[_0x417161(0x34a,0x360)]('\x20');_0x406f1a[_0x417161(0x3b4,0x3a4)]({'src':_0xc0664d,'dst':_0x935dbe,'weight':_0x3be070}),_0x406f1a[_0x417161(0x3aa,0x3a4)]({'src':_0x935dbe,'dst':_0xc0664d,'weight':_0x3be070});}function _0x5f23c1(_0x3c2d23,_0x458657){return _0x4fb8(_0x458657- -0x135,_0x3c2d23);}const _0x11010e=_0x4a2450[_0x417161(0x34f,0x372)+'es'](_0x417161(0x386,0x39f),_0x406f1a);return{'edges':_0x11010e,'sessionSets':_0x9ef69a[_0x5f23c1(0xe3,0xd8)],'skippedLargeSets':_0x39537f,'elapsedMs':_0x26fd3b?Date['now']()-_0x26fd3b:0x0};}const REF_LINK_RE=/\[\[([A-Za-z0-9][A-Za-z0-9_\-./]*)\]\]/g,REF_SLUG_MIN=0x3;export const REF_DF_MAX=0x64;export function buildRefEdges(_0x1c0d64,_0x5b58de){function _0x22ec24(_0x4205a9,_0x4bc0ae){return _0x4fb8(_0x4bc0ae-0x58,_0x4205a9);}const _0x416ad3=_0x5b58de?.['nowMs']??0x0,_0x461866=_0x5b58de?.[_0x22ec24(0x25c,0x283)]??REF_DF_MAX,_0x4a0100=_0x1c0d64['getRefLink'+'Sources'](),_0x1d67a3=[],_0x12b5c5=new Map(),_0xbfd74=[];for(const _0x553fc1 of _0x4a0100){const _0x124319=new Set();REF_LINK_RE['lastIndex']=0x0;let _0x202e14;while((_0x202e14=REF_LINK_RE['exec'](_0x553fc1[_0x22ec24(0x241,0x24d)]))!==null){if(_0x202e14[0x1][_0x46f73d(0x39e,0x377)]>=REF_SLUG_MIN)_0x124319[_0x46f73d(0x34c,0x369)](_0x202e14[0x1]);}const _0x5e4152=[..._0x124319];_0x1d67a3[_0x46f73d(0x38c,0x397)]({'id':_0x553fc1['id'],'slugs':_0x5e4152});for(const _0xe4c27 of _0x5e4152){if(_0x22ec24(0x246,0x264)===_0x46f73d(0x38c,0x376))!_0x12b5c5['has'](_0xe4c27)&&(_0x12b5c5[_0x46f73d(0x394,0x36b)](_0xe4c27,_0xbfd74['length']),_0xbfd74[_0x22ec24(0x287,0x285)](_0xe4c27));else{_0x4090d0[_0x5aec6a*_0x18d9f5+_0x14632e]=_0x561181[_0x22ec24(0x25b,0x26a)](_0x13f614['max'](0x0,0x1-_0x4042a7));const _0x2ea549=_0x30ab9c['min'](_0x35455b,(_0x589149+0x1)*_0x1e2a63);for(let _0x35be95=_0x5a087e*_0x11a656;_0x35be95<_0x2ea549;_0x35be95++){const _0x3891eb=_0x273802[_0x3742ac+_0x35be95];_0x29e873+=_0x3891eb*_0x3891eb;}}}}const _0x34e0ca=buildAsciiSubstringMatcher(_0xbfd74),_0x3305e8=_0xbfd74[_0x22ec24(0x26f,0x273)](()=>[]);let _0x2e66fd=0x0;for(const _0x166252 of _0x1c0d64[_0x46f73d(0x367,0x38f)+_0x22ec24(0x23a,0x260)]()){if(!_0x166252[_0x22ec24(0x24a,0x24d)])continue;_0x2e66fd++,_0x34e0ca[_0x46f73d(0x38d,0x394)](_0x166252['content'],_0x5c6366=>_0x3305e8[_0x5c6366][_0x46f73d(0x375,0x397)](_0x166252['id']));}const _0x25067b=[],_0x81cac8=new Map();let _0x269797=0x0,_0x124796=0x0;function _0x46f73d(_0x458550,_0x366d8b){return _0x4fb8(_0x366d8b-0x16a,_0x458550);}let _0x3556ba=0x0;for(const _0x36dc06 of _0x1d67a3){for(const _0x47c774 of _0x36dc06[_0x46f73d(0x392,0x371)]){_0x269797++;const _0x436f14=_0x3305e8[_0x12b5c5[_0x46f73d(0x38c,0x373)](_0x47c774)],_0x34d5dd=_0x436f14[_0x22ec24(0x24e,0x26e)](_0x36dc06['id']),_0x1ac4ee=_0x34d5dd===-0x1?_0x436f14[_0x22ec24(0x251,0x265)]:_0x436f14[_0x46f73d(0x356,0x377)]-0x1;if(_0x1ac4ee>0x0)_0x124796++;if(_0x1ac4ee>_0x461866){_0x3556ba++;continue;}const _0x2f52ce=0x1/(0x1+Math['log2'](Math[_0x22ec24(0x25d,0x25b)](_0x1ac4ee,0x1)));for(let _0x392e60=0x0;_0x392e60<_0x436f14[_0x22ec24(0x259,0x265)];_0x392e60++){if(_0x46f73d(0x35d,0x348)===_0x22ec24(0x221,0x236)){if(_0x392e60===_0x34d5dd)continue;const _0x530634=_0x36dc06['id']+'\x20'+_0x436f14[_0x392e60],_0x32f90b=_0x81cac8[_0x22ec24(0x261,0x261)](_0x530634);if(_0x32f90b!==undefined){if(_0x2f52ce>_0x32f90b)_0x81cac8[_0x22ec24(0x237,0x259)](_0x530634,_0x2f52ce);continue;}_0x81cac8['set'](_0x530634,_0x2f52ce);}else{let _0x4e27cf=_0x63eea9[_0x4aa4cb]-0x1;while(_0x4e27cf>=0x0&&_0x12dbd3(_0x4e27cf)){_0x487f02[_0x4d4998+_0x4e27cf+0x1]=_0xff8f99[_0x506841+_0x4e27cf],_0x158d0d[_0x592986+_0x4e27cf+0x1]=_0x248378[_0x37df74+_0x4e27cf],_0x4e27cf--;}_0x3f3e00[_0x50ef8f+_0x4e27cf+0x1]=_0x31dfc1,_0x4b11cb[_0x2257c9+_0x4e27cf+0x1]=_0x10d88d,_0x48b42f[_0x35ed50]++;if(_0x5ef76b[_0x2d8b7e]===_0x11c24c)_0x4a260f[_0x1c26f3]=_0x211b4d[_0x3e1a2c+_0x4b2344-0x1];return;}}}}for(const [_0x334830,_0x50cd90]of _0x81cac8){const [_0x37daeb,_0xbf64a6]=_0x334830[_0x46f73d(0x369,0x353)]('\x20');_0x25067b[_0x22ec24(0x2ab,0x285)]({'src':_0x37daeb,'dst':_0xbf64a6,'weight':_0x50cd90});}const _0xee01bb=_0x1c0d64[_0x22ec24(0x236,0x253)+'es'](_0x22ec24(0x25c,0x26d),_0x25067b);return{'edges':_0xee01bb,'sources':_0x4a0100[_0x46f73d(0x394,0x377)],'slugRefs':_0x269797,'resolvedSlugs':_0x124796,'skippedHighDf':_0x3556ba,'elapsedMs':_0x416ad3?Date[_0x46f73d(0x348,0x34f)]()-_0x416ad3:0x0,'patterns':_0xbfd74[_0x46f73d(0x368,0x377)],'scanned':_0x2e66fd};}
|
|
1
|
+
(function(_0x4dcec3,_0xd90a4d){const _0x1abc72=_0x4dcec3();function _0x334601(_0x17e3e5,_0xcab8cd){return _0x44a4(_0xcab8cd- -0x5d,_0x17e3e5);}function _0x5c28f6(_0x4f0f80,_0x5c57e8){return _0x44a4(_0x4f0f80- -0x17f,_0x5c57e8);}while(!![]){try{const _0x1655db=-parseInt(_0x334601(0xde,0xf0))/0x1+-parseInt(_0x5c28f6(-0x70,-0x62))/0x2+parseInt(_0x334601(0xd0,0xe5))/0x3*(parseInt(_0x5c28f6(-0x29,-0x4))/0x4)+-parseInt(_0x5c28f6(-0x22,-0x49))/0x5+-parseInt(_0x334601(0xd9,0xb5))/0x6+parseInt(_0x334601(0x115,0xf7))/0x7+-parseInt(_0x334601(0xf6,0xd7))/0x8*(-parseInt(_0x334601(0xe6,0xd9))/0x9);if(_0x1655db===_0xd90a4d)break;else _0x1abc72['push'](_0x1abc72['shift']());}catch(_0x4a9bc5){_0x1abc72['push'](_0x1abc72['shift']());}}}(_0x55ba,0x58926));function _0x44a4(_0x142ef6,_0x3ba4d0){_0x142ef6=_0x142ef6-0x108;const _0x55ba1a=_0x55ba();let _0x44a487=_0x55ba1a[_0x142ef6];if(_0x44a4['uwQrMG']===undefined){var _0x5cd8aa=function(_0x517708){const _0xf37b55='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x422dbd='',_0x280340='';for(let _0x92f4a6=0x0,_0x33ade4,_0x4fffac,_0x1220cc=0x0;_0x4fffac=_0x517708['charAt'](_0x1220cc++);~_0x4fffac&&(_0x33ade4=_0x92f4a6%0x4?_0x33ade4*0x40+_0x4fffac:_0x4fffac,_0x92f4a6++%0x4)?_0x422dbd+=String['fromCharCode'](0xff&_0x33ade4>>(-0x2*_0x92f4a6&0x6)):0x0){_0x4fffac=_0xf37b55['indexOf'](_0x4fffac);}for(let _0x432713=0x0,_0x4b3762=_0x422dbd['length'];_0x432713<_0x4b3762;_0x432713++){_0x280340+='%'+('00'+_0x422dbd['charCodeAt'](_0x432713)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x280340);};_0x44a4['nVFgpV']=_0x5cd8aa,_0x44a4['XNOZwi']={},_0x44a4['uwQrMG']=!![];}const _0x108f77=_0x55ba1a[0x0],_0x2944ec=_0x142ef6+_0x108f77,_0x12ff74=_0x44a4['XNOZwi'][_0x2944ec];return!_0x12ff74?(_0x44a487=_0x44a4['nVFgpV'](_0x44a487),_0x44a4['XNOZwi'][_0x2944ec]=_0x44a487):_0x44a487=_0x12ff74,_0x44a487;}import{buildAsciiSubstringMatcher}from'./ac-matcher.js';export const SIM_TOP_K=0x19;export const SIM_MIN=0.5;export const SIM_CHUNK=0x40;export const SIM_PRUNE_EPS=1e-9;export const TAG_COOC_ABS_MAX_DF=0x64;export function resolveHubMaxDf(_0x5a2275,_0x5d1dfb){if(_0x5d1dfb!==undefined)return _0x5d1dfb;function _0x4c595a(_0x56a4c1,_0x3a8ee2){return _0x44a4(_0x56a4c1- -0x226,_0x3a8ee2);}function _0x1207ad(_0x2d0f62,_0x117bbe){return _0x44a4(_0x117bbe-0x2db,_0x2d0f62);}return Math[_0x1207ad(0x419,0x409)](TAG_COOC_ABS_MAX_DF,Math['max'](0x32,Math[_0x1207ad(0x3f5,0x3fa)](_0x5a2275*0.1)));}export function insertTopK(_0x20a458,_0x195721,_0x149ee0,_0x3a79cc,_0x10ab04,_0x5be2f5,_0x242c88,_0x32ddd9){const _0x3e5149=_0x10ab04*_0x5be2f5,_0x4a5fd7=_0x1f682b=>_0x20a458[_0x3e5149+_0x1f682b]<_0x32ddd9||_0x20a458[_0x3e5149+_0x1f682b]===_0x32ddd9&&_0x195721[_0x3e5149+_0x1f682b]>_0x242c88;if(_0x149ee0[_0x10ab04]<_0x5be2f5){let _0x3cd7d5=_0x149ee0[_0x10ab04]-0x1;while(_0x3cd7d5>=0x0&&_0x4a5fd7(_0x3cd7d5)){_0x20a458[_0x3e5149+_0x3cd7d5+0x1]=_0x20a458[_0x3e5149+_0x3cd7d5],_0x195721[_0x3e5149+_0x3cd7d5+0x1]=_0x195721[_0x3e5149+_0x3cd7d5],_0x3cd7d5--;}_0x20a458[_0x3e5149+_0x3cd7d5+0x1]=_0x32ddd9,_0x195721[_0x3e5149+_0x3cd7d5+0x1]=_0x242c88,_0x149ee0[_0x10ab04]++;if(_0x149ee0[_0x10ab04]===_0x5be2f5)_0x3a79cc[_0x10ab04]=_0x20a458[_0x3e5149+_0x5be2f5-0x1];return;}if(_0x32ddd9<_0x3a79cc[_0x10ab04])return;if(_0x32ddd9===_0x3a79cc[_0x10ab04]&&_0x242c88>_0x195721[_0x3e5149+_0x5be2f5-0x1])return;let _0x2a7a89=_0x5be2f5-0x2;while(_0x2a7a89>=0x0&&_0x4a5fd7(_0x2a7a89)){_0x20a458[_0x3e5149+_0x2a7a89+0x1]=_0x20a458[_0x3e5149+_0x2a7a89],_0x195721[_0x3e5149+_0x2a7a89+0x1]=_0x195721[_0x3e5149+_0x2a7a89],_0x2a7a89--;}_0x20a458[_0x3e5149+_0x2a7a89+0x1]=_0x32ddd9,_0x195721[_0x3e5149+_0x2a7a89+0x1]=_0x242c88,_0x3a79cc[_0x10ab04]=_0x20a458[_0x3e5149+_0x5be2f5-0x1];}function _0x55ba(){const _0x3263c5=['DfLns0m','CMvWBgfJzuvKzW','z2v0','C2nHBKrVyW','zw1IzwrKAw5N','BM93txm','BgvUz3rO','mJu3n0vqsurUtW','z2v0q2HHBMDLza','C3bSAxq','zMLSBa','zxngB3jtCMnZ','EgX5AKK','Dg9WsW','z2vZoIb0B3blia','qwTpvfO','EfbHwxK','BgfZDeLUzgv4','ndGZnty2wvzPD0XU','C3jJ','C3fYDa','Bwf4u2v0u2L6zq','twvTB3j5swrZ','Bwf4','s0DetNu','nJi3odmWsu5Lrgzo','r0DvDeC','mZK2yuHgtxPO','BgvHC2vszw5LDW','uuzltMq','zhn0','BM93','C2L6zq','u291CMnLCW','oda0nJeWzujmAMr0','BxvZDcbIzsbHBG','z2v0qwXSrw1Izq','C2LUy2u','Aw5KzxHpzG','BgvHC2u','suf5DLK','z2v0u2vZC2LVBG','v1r4A1q','C3nPB25tzxrZ','AgfZ','igLUDgvNzxiGpG','odqYndHmCfjIvLq','DgvTCa','zNjVBq','mZaYnZG0q25XsLrc','D2vPz2H0','r3zTvhq','zxrZ','zgrPBMDsB3DZ','B25qCM9NCMvZCW','q1DuwwS','z2v0vxnHz2vtzq','z2v0rwrNzxm','weH0ELe','DufurKu','C2v0','ywrK','zMXVB3i','z2v0sw5Qzwn0Aq','y29UDgvUDa','CMvUzxC','zMLSDgvY','B25nyxrJAgvKuW','Bg9NmG','C2LT','q29UDgvUDhm','rgrdr20','q2f5swC','AxnjBNrLz2vY','AhvItwf4rgy','u2HHCMvKu2v0CW','C29YDa','BwLU','uhvqA24','yNvPBgrtAw1fza','BwfW','y291BNrfzgDLCW','r1z2B3i','mtq4mdiXnNrWAuLXCq','AxrLCMf0zufSBa','ndv4q1vRD2y','psaXicHNB3qG','z2v0uMvMtgLUAW','y2vPBa','ChvZAa'];_0x55ba=function(){return _0x3263c5;};return _0x55ba();}export function sameAsExisting(_0x8b5fde,_0x25ba74,_0x2bb8eb,_0x2edc90,_0x2fd781,_0x390341,_0xc4a0de){if(_0x8b5fde['count'][_0x25ba74]!==_0x2bb8eb)return![];const _0x41393e=_0x8b5fde[_0x2c0b9f(-0x203,-0x21b)][_0x25ba74];function _0x19c197(_0x5268e7,_0x2510db){return _0x44a4(_0x2510db-0x38b,_0x5268e7);}const _0x471f6d=_0x8b5fde['w'][_0x25ba74];if(_0x2bb8eb===0x0)return _0x41393e===undefined||_0x41393e['length']===0x0;if(_0x41393e===undefined||_0x471f6d===undefined||_0x41393e[_0x2c0b9f(-0x242,-0x233)]!==_0x2bb8eb)return![];function _0x2c0b9f(_0x4f6ddc,_0x7fd803){return _0x44a4(_0x7fd803- -0x374,_0x4f6ddc);}for(let _0x4d659b=0x0;_0x4d659b<_0x2bb8eb;_0x4d659b++){const _0x470da3=_0xc4a0de[_0x2fd781[_0x2edc90+_0x4d659b]],_0x86bc6d=_0x390341[_0x2edc90+_0x4d659b];let _0x8b4e23=![];for(let _0x3dff7c=0x0;_0x3dff7c<_0x2bb8eb;_0x3dff7c++){if('bhkxk'===_0x2c0b9f(-0x252,-0x239))throw new _0x37d2c4(_0x19c197(0x4ba,0x4bb)+_0x19c197(0x501,0x4d4)+'must\x20be\x20an'+_0x2c0b9f(-0x25d,-0x266)+'=\x201\x20(got\x20'+_0x3e8914(_0xcdd786?.[_0x2c0b9f(-0x220,-0x22c)])+')');else{if(_0x41393e[_0x3dff7c]===_0x470da3&&_0x471f6d[_0x3dff7c]===_0x86bc6d){_0x8b4e23=!![];break;}}}if(!_0x8b4e23)return![];}return!![];}export function buildSimEdges(_0x554e13,_0x3e625f){const _0x320494=_0x3e625f?.[_0x38240c(0x170,0x17a)]??SIM_TOP_K;if(!Number[_0x477c2e(-0x9b,-0xa8)](_0x320494)||_0x320494<0x1)throw new Error(_0x477c2e(-0x95,-0xb9)+'ges:\x20topK\x20'+_0x38240c(0x186,0x15a)+_0x477c2e(-0xb7,-0xa9)+_0x38240c(0x15f,0x14b)+String(_0x3e625f?.[_0x477c2e(-0x7d,-0x90)])+')');const _0x15e39b=_0x3e625f?.['minSim']??SIM_MIN,_0x385689=_0x3e625f?.[_0x477c2e(-0x85,-0xad)]??0x0,_0x136ff2=_0x3e625f?.[_0x477c2e(-0xbd,-0xe8)];function _0x477c2e(_0x59cf81,_0x1603c2){return _0x44a4(_0x59cf81- -0x1c5,_0x1603c2);}const _0x5240c1=_0x3e625f?.[_0x38240c(0x17f,0x17f)+'Ms']??0xea60,_0x5aade6=_0x554e13[_0x38240c(0x187,0x189)+_0x477c2e(-0xaf,-0xbb)](),_0xb6035e=_0x5aade6[_0x477c2e(-0x84,-0xa2)];let _0x1e4fcb=null,_0x5a2562=null,_0x5ac692=null,_0xb89777=null,_0x4fd8e9=null;function _0x38240c(_0x3424eb,_0x354bf1){return _0x44a4(_0x3424eb-0x28,_0x354bf1);}if(_0x3e625f?.[_0x477c2e(-0x65,-0x3a)]){if(_0x38240c(0x133,0x15e)!==_0x38240c(0x17b,0x1a7)){const _0xe8e445=new Map();for(let _0x2ddef1=0x0;_0x2ddef1<_0xb6035e;_0x2ddef1++)_0xe8e445[_0x38240c(0x145,0x165)](_0x5aade6[_0x2ddef1]['id'],_0x2ddef1);const _0x5a15d8=new Set(_0x554e13[_0x477c2e(-0x82,-0x93)+_0x38240c(0x179,0x14d)](_0x3e625f[_0x38240c(0x188,0x1ab)])),_0x4cbe19=new Uint8Array(_0xb6035e);for(const _0x329652 of _0x5a15d8){const _0x432e01=_0xe8e445[_0x477c2e(-0x88,-0x81)](_0x329652);if(_0x432e01!==undefined)_0x4cbe19[_0x432e01]=0x1;}const _0x15fe3a=_0x554e13[_0x38240c(0x142,0x12e)](_0x38240c(0x14e,0x15c));for(const _0x104bb6 of _0x15fe3a){if(!_0x5a15d8['has'](_0x104bb6[_0x477c2e(-0x6c,-0x5a)]))continue;const _0x45d948=_0xe8e445[_0x38240c(0x165,0x143)](_0x104bb6[_0x38240c(0x176,0x178)]);if(_0x45d948!==undefined)_0x4cbe19[_0x45d948]=0x1;}_0x1e4fcb=_0x4cbe19,_0x5ac692=Uint8Array[_0x477c2e(-0xb4,-0xaa)](_0x4cbe19);const _0x1b19b9=[],_0x390363=new Set(),_0x3d8f28=new Set(),_0x12e4aa=new Int32Array(_0xb6035e),_0x17ad45=new Array(_0xb6035e),_0x4b5b15=new Array(_0xb6035e);for(const _0x27ada8 of _0x15fe3a){const _0x48ca67=_0xe8e445[_0x477c2e(-0x88,-0x81)](_0x27ada8[_0x38240c(0x176,0x19c)]),_0x1c44dc=_0xe8e445[_0x38240c(0x165,0x147)](_0x27ada8[_0x38240c(0x181,0x158)]);if(_0x48ca67===undefined){_0x390363[_0x477c2e(-0xa7,-0x8e)](_0x27ada8['src']);continue;}_0x12e4aa[_0x48ca67]++;if(_0x1c44dc===undefined){_0x3d8f28[_0x38240c(0x146,0x149)](_0x48ca67);continue;}(_0x17ad45[_0x48ca67]??=[])['push'](_0x1c44dc),(_0x4b5b15[_0x48ca67]??=[])[_0x38240c(0x162,0x18f)](_0x27ada8[_0x477c2e(-0xb2,-0xd5)]);if(_0x4cbe19[_0x48ca67]||_0x4cbe19[_0x1c44dc])continue;_0x1b19b9[_0x38240c(0x162,0x184)]({'s':_0x48ca67,'d':_0x1c44dc,'w':_0x27ada8['weight']});}_0x4fd8e9={'count':_0x12e4aa,'dst':_0x17ad45,'w':_0x4b5b15},_0x5a2562=_0x1b19b9,_0xb89777=_0x390363;for(const _0x22cad2 of _0x3d8f28)_0x5ac692[_0x22cad2]=0x1;}else{const _0x2604a9=_0x22b0ca[_0x1d7c19[_0x2fcc2b]][_0x477c2e(-0x86,-0x72)];let _0x63acd0=0x0;for(let _0x465f87=0x0;_0x465f87<_0x549750;_0x465f87++)_0x63acd0+=_0x2604a9[_0x465f87]*_0x2604a9[_0x465f87];_0x63acd0=_0x33e9f7[_0x38240c(0x177,0x17f)](_0x63acd0)||0x1;const _0x230a65=_0x348071*_0xb2ab7b;for(let _0x5cd990=0x0;_0x5cd990<_0x2f671e;_0x5cd990++)_0x253274[_0x230a65+_0x5cd990]=_0x2604a9[_0x5cd990]/_0x63acd0;}}const _0x126353=new Map();for(let _0xcb79d8=0x0;_0xcb79d8<_0xb6035e;_0xcb79d8++){const _0x4aeaba=_0x5aade6[_0xcb79d8][_0x38240c(0x167,0x173)]['length'];let _0x1f5225=_0x126353[_0x38240c(0x165,0x14d)](_0x4aeaba);!_0x1f5225&&('sKzkS'===_0x477c2e(-0x6d,-0x72)?(_0x1f067d[_0x38240c(0x145,0x16f)](_0x37bd42,_0x212216[_0x38240c(0x169,0x155)]),_0x1bb8ca[_0x38240c(0x162,0x13d)](_0x3143ba)):(_0x1f5225=[],_0x126353[_0x38240c(0x145,0x146)](_0x4aeaba,_0x1f5225))),_0x1f5225[_0x477c2e(-0x8b,-0x9d)](_0xcb79d8);}const _0x3d102c=[];let _0x37fb3b=0x0,_0x1b6b57=0x0,_0x1d2ff0=0x0,_0x347374=0x0;for(const [_0x172de1,_0x51c1a5]of _0x126353){const _0x1d123f=_0x51c1a5[_0x38240c(0x169,0x183)];if(_0x1d123f<0x2){if(_0x38240c(0x13c,0x151)===_0x477c2e(-0x96,-0x8a))_0x1e9047=_0x50de40[_0x38240c(0x164,0x137)+'es'](_0x38240c(0x14e,0x14d),_0x4e23d),_0x31a73d=new _0x175c8c(_0x2be700[_0x477c2e(-0x94,-0x9c)](_0x4a3dad=>_0x4a3dad['src']))[_0x38240c(0x183,0x16a)];else{_0x347374+=_0x1d123f;continue;}}const _0x306f45=new Float64Array(_0x1d123f*_0x172de1);for(let _0x26dae3=0x0;_0x26dae3<_0x1d123f;_0x26dae3++){const _0x3787d4=_0x5aade6[_0x51c1a5[_0x26dae3]][_0x38240c(0x167,0x150)];let _0x459c78=0x0;for(let _0x241b71=0x0;_0x241b71<_0x172de1;_0x241b71++)_0x459c78+=_0x3787d4[_0x241b71]*_0x3787d4[_0x241b71];_0x459c78=Math[_0x477c2e(-0x76,-0x88)](_0x459c78)||0x1;const _0x2447fb=_0x26dae3*_0x172de1;for(let _0x3495de=0x0;_0x3495de<_0x172de1;_0x3495de++)_0x306f45[_0x2447fb+_0x3495de]=_0x3787d4[_0x3495de]/_0x459c78;}const _0x1c8685=Math[_0x38240c(0x161,0x183)](_0x172de1/SIM_CHUNK),_0x4007f2=new Float64Array(_0x1d123f*_0x1c8685);for(let _0x56508b=0x0;_0x56508b<_0x1d123f;_0x56508b++){let _0x11109b=0x0;const _0x4c39bd=_0x56508b*_0x172de1;for(let _0x58a8c1=0x0;_0x58a8c1<_0x1c8685;_0x58a8c1++){_0x4007f2[_0x56508b*_0x1c8685+_0x58a8c1]=Math[_0x38240c(0x177,0x18c)](Math[_0x38240c(0x17a,0x191)](0x0,0x1-_0x11109b));const _0x23532c=Math[_0x38240c(0x156,0x175)](_0x172de1,(_0x58a8c1+0x1)*SIM_CHUNK);for(let _0xcb1df0=_0x58a8c1*SIM_CHUNK;_0xcb1df0<_0x23532c;_0xcb1df0++){const _0x3a831f=_0x306f45[_0x4c39bd+_0xcb1df0];_0x11109b+=_0x3a831f*_0x3a831f;}}}const _0xefde3d=new Float64Array(_0x1d123f*_0x320494),_0x775d86=new Int32Array(_0x1d123f*_0x320494),_0x5a0db0=new Int32Array(_0x1d123f),_0x12243d=new Float64Array(_0x1d123f);_0x12243d[_0x477c2e(-0x80,-0x80)](-0x2);const _0x37d5c9=(_0x769c7a,_0x239507,_0x5359a3)=>insertTopK(_0xefde3d,_0x775d86,_0x5a0db0,_0x12243d,_0x769c7a,_0x320494,_0x239507,_0x5359a3);if(_0x5a2562){const _0x2e167c=new Map();for(let _0x2ef8b3=0x0;_0x2ef8b3<_0x1d123f;_0x2ef8b3++)_0x2e167c[_0x477c2e(-0xa8,-0xa8)](_0x51c1a5[_0x2ef8b3],_0x2ef8b3);const _0x26e491=_0x5a2562[_0x38240c(0x14b,0x144)](_0x1248d2=>_0x2e167c[_0x38240c(0x135,0x15b)](_0x1248d2['s'])&&_0x2e167c[_0x38240c(0x135,0x156)](_0x1248d2['d']))[_0x38240c(0x155,0x180)]((_0x4d1b8a,_0x33168e)=>_0x4d1b8a['s']-_0x33168e['s']||_0x4d1b8a['d']-_0x33168e['d']);for(const _0x4e0df7 of _0x26e491){_0x37d5c9(_0x2e167c[_0x38240c(0x165,0x149)](_0x4e0df7['s']),_0x2e167c[_0x477c2e(-0x88,-0x71)](_0x4e0df7['d']),_0x4e0df7['w']);}}for(let _0x2c2b98=0x0;_0x2c2b98<_0x1d123f;_0x2c2b98++){if(_0x136ff2){const _0x56ff4a=Date[_0x38240c(0x182,0x15e)]();if(_0x56ff4a-_0x1d2ff0>=_0x5240c1){if(_0x477c2e(-0xa9,-0x85)==='uATFE'){if(!_0x136ff2[_0x477c2e(-0xa3,-0xb5)]())return{'nodes':_0xb6035e,'edges':0x0,'elapsedMs':_0x385689?Date[_0x477c2e(-0x6b,-0x87)]()-_0x385689:0x0,'aborted':!![]};_0x3e625f?.[_0x477c2e(-0xae,-0x85)]?.(_0x347374+_0x2c2b98,_0xb6035e),_0x1d2ff0=_0x56ff4a;}else{let _0x15df71=_0x99d07e[_0xccf14a]-0x1;while(_0x15df71>=0x0&&_0x5ea52f(_0x15df71)){_0x45c29f[_0x1e82dd+_0x15df71+0x1]=_0x22d60a[_0x2bab02+_0x15df71],_0x35d5e3[_0x2adc81+_0x15df71+0x1]=_0x5bf451[_0x4e2323+_0x15df71],_0x15df71--;}_0x49ffd9[_0x44e1f+_0x15df71+0x1]=_0x24376f,_0x5cda04[_0xe2dcd2+_0x15df71+0x1]=_0xa85e34,_0x5250e1[_0x469cec]++;if(_0x3f367b[_0x2bae9a]===_0x346760)_0x52ec34[_0x1eae31]=_0x2dd424[_0x5ce7c7+_0x14d41d-0x1];return;}}}const _0x3c4c18=_0x2c2b98*_0x172de1,_0x49cb71=_0x2c2b98*_0x1c8685;for(let _0x4ba63e=_0x2c2b98+0x1;_0x4ba63e<_0x1d123f;_0x4ba63e++){if(_0x38240c(0x172,0x15d)!==_0x38240c(0x172,0x149))_0x293f23=[],_0x42e620[_0x38240c(0x145,0x15f)](_0x2c1fe0,_0x477db0);else{if(_0x1e4fcb&&!_0x1e4fcb[_0x51c1a5[_0x2c2b98]]&&!_0x1e4fcb[_0x51c1a5[_0x4ba63e]])continue;_0x1b6b57++;const _0x316be8=Math['max'](_0x15e39b,Math[_0x477c2e(-0x97,-0x6b)](_0x12243d[_0x2c2b98],_0x12243d[_0x4ba63e])),_0x34befd=_0x4ba63e*_0x172de1,_0x2d2d58=_0x4ba63e*_0x1c8685;let _0xbf8bce=0x0,_0x4bec32=0x0,_0x5015b6=0x0,_0x2239eb=!![];while(_0x4bec32<_0x172de1){const _0x4f6665=Math[_0x38240c(0x156,0x167)](_0x172de1,_0x4bec32+SIM_CHUNK);for(;_0x4bec32<_0x4f6665;_0x4bec32++)_0xbf8bce+=_0x306f45[_0x3c4c18+_0x4bec32]*_0x306f45[_0x34befd+_0x4bec32];_0x5015b6++;if(_0x5015b6<_0x1c8685&&_0xbf8bce+_0x4007f2[_0x49cb71+_0x5015b6]*_0x4007f2[_0x2d2d58+_0x5015b6]<_0x316be8-SIM_PRUNE_EPS){_0x2239eb=![],_0x37fb3b++;break;}}if(!_0x2239eb||_0xbf8bce<_0x15e39b)continue;_0x37d5c9(_0x2c2b98,_0x4ba63e,_0xbf8bce),_0x37d5c9(_0x4ba63e,_0x2c2b98,_0xbf8bce),_0x5ac692&&(_0x5ac692[_0x51c1a5[_0x2c2b98]]=0x1,_0x5ac692[_0x51c1a5[_0x4ba63e]]=0x1);}}}for(let _0x20847d=0x0;_0x20847d<_0x1d123f;_0x20847d++){if('IUoHU'!=='IUoHU'){if(_0x3a8149===_0x791081)return;const _0x2983c2=_0xca3ecd<_0x2573fe?_0x50b07e+'\x20'+_0x487d07:_0xff18fd+'\x20'+_0x3d7ce3;_0x3f0665[_0x38240c(0x145,0x11a)](_0x2983c2,(_0x4b6794[_0x38240c(0x165,0x13b)](_0x2983c2)??0x0)+0x1);}else{if(_0x5ac692&&!_0x5ac692[_0x51c1a5[_0x20847d]])continue;const _0x1b4b90=_0x51c1a5[_0x20847d];if(_0x4fd8e9&&sameAsExisting(_0x4fd8e9,_0x1b4b90,_0x5a0db0[_0x20847d],_0x20847d*_0x320494,_0x775d86,_0xefde3d,_0x51c1a5)){_0x5ac692[_0x1b4b90]=0x0;continue;}const _0x2610de=_0x5aade6[_0x1b4b90]['id'],_0x21d66f=_0x20847d*_0x320494;for(let _0x4b4587=0x0;_0x4b4587<_0x5a0db0[_0x20847d];_0x4b4587++){_0x3d102c[_0x38240c(0x162,0x16a)]({'src':_0x2610de,'dst':_0x5aade6[_0x51c1a5[_0x775d86[_0x21d66f+_0x4b4587]]]['id'],'weight':_0xefde3d[_0x21d66f+_0x4b4587]});}}}_0x347374+=_0x1d123f;}let _0x579ca9,_0xf08ffb=0x0;if(_0x5ac692){if(_0x38240c(0x150,0x168)!=='raHCx'){const _0x57b27f=[];for(let _0x22190b=0x0;_0x22190b<_0xb6035e;_0x22190b++)if(_0x5ac692[_0x22190b])_0x57b27f[_0x38240c(0x162,0x145)](_0x5aade6[_0x22190b]['id']);if(_0xb89777){for(const _0x26c3ef of _0xb89777)_0x57b27f[_0x477c2e(-0x8b,-0xae)](_0x26c3ef);}_0xf08ffb=_0x57b27f[_0x38240c(0x169,0x152)],_0x579ca9=_0x554e13['replaceEdg'+_0x38240c(0x16e,0x185)]('sim',_0x57b27f,_0x3d102c);}else{const [_0x904852,_0x4fb506]=_0x4c24eb['split']('\x20');_0x4ac7d2[_0x38240c(0x162,0x151)]({'src':_0x904852,'dst':_0x4fb506,'weight':_0x544bee});}}else{if('oWgJS'===_0x38240c(0x15b,0x17d)){const _0x184756=_0x7b445d[_0x30d84c+_0x2d53a6];_0x4010ec+=_0x184756*_0x184756;}else _0x579ca9=_0x554e13[_0x38240c(0x164,0x15c)+'es']('sim',_0x3d102c),_0xf08ffb=new Set(_0x3d102c['map'](_0x40be3e=>_0x40be3e[_0x477c2e(-0x77,-0x80)]))['size'];}const _0x7cb0ff=_0x5ac692?_0x554e13[_0x38240c(0x15a,0x160)]('sim'):_0x579ca9;return{'nodes':_0xb6035e,'edges':_0x7cb0ff,'elapsedMs':_0x385689?Date[_0x38240c(0x182,0x16f)]()-_0x385689:0x0,'prunedPairs':_0x37fb3b,'pairsConsidered':_0x1b6b57,'srcsReplaced':_0xf08ffb,'edgesWritten':_0x579ca9};}function coocFromSet(_0x2ea5e1,_0x2b2cd6){function _0xf574ec(_0x589243,_0x38d8bb){return _0x44a4(_0x38d8bb- -0x35a,_0x589243);}function _0x4b17f2(_0x25519,_0x36f270){return _0x44a4(_0x25519- -0x281,_0x36f270);}for(let _0x515a93=0x0;_0x515a93<_0x2ea5e1[_0x4b17f2(-0x140,-0x143)];_0x515a93++){for(let _0x4a2d09=_0x515a93+0x1;_0x4a2d09<_0x2ea5e1[_0x4b17f2(-0x140,-0x145)];_0x4a2d09++){_0x2b2cd6(_0x2ea5e1[_0x515a93],_0x2ea5e1[_0x4a2d09]);}}}function addTagCooc(_0x24950e,_0x28d578,_0x100754){const _0x38e5e8=_0x24950e['getTagMemo'+'ryPairs'](),_0x32c867=new Map(),_0xb17978=new Set();for(const {memory_id:_0x3521fc,tag:_0xb94076}of _0x38e5e8){let _0x29b7be=_0x32c867['get'](_0xb94076);!_0x29b7be&&(_0x29b7be=[],_0x32c867[_0x45449d(0x155,0x13f)](_0xb94076,_0x29b7be)),_0x29b7be[_0x15731a(0x4c6,0x4f3)](_0x3521fc),_0xb17978['add'](_0x3521fc);}const _0x50f71c=_0xb17978['size'];function _0x45449d(_0x331cc6,_0x297934){return _0x44a4(_0x297934-0x22,_0x331cc6);}function _0x15731a(_0x104859,_0x4c765f){return _0x44a4(_0x104859-0x38c,_0x4c765f);}const _0x1c0f6f=resolveHubMaxDf(_0x50f71c,_0x100754);let _0x5e82a4=0x0,_0xacecd6=0x0;for(const [,_0x2beaf3]of _0x32c867){const _0x29a21a=new Set(_0x2beaf3)['size'];if(_0x29a21a<0x2)continue;if(_0x29a21a>_0x1c0f6f){_0x5e82a4++;continue;}_0xacecd6++;const _0x3b6453=[...new Set(_0x2beaf3)];coocFromSet(_0x3b6453,_0x28d578);}return{'totalTags':_0x32c867[_0x15731a(0x4e7,0x4c6)],'hubTags':_0x5e82a4,'validTags':_0xacecd6};}export function buildCoocEdges(_0x1e069f,_0x5c1fce){const _0x18fee8=_0x5c1fce?.[_0x224deb(-0xa8,-0x98)]??0x0,_0x4d0e15=new Map(),_0x5ab86f=(_0x420e58,_0x477e9e)=>{if(_0x420e58===_0x477e9e)return;const _0x31eabb=_0x420e58<_0x477e9e?_0x420e58+'\x20'+_0x477e9e:_0x477e9e+'\x20'+_0x420e58;_0x4d0e15['set'](_0x31eabb,(_0x4d0e15['get'](_0x31eabb)??0x0)+0x1);},_0x8bc5a2=_0x1e069f[_0x224deb(-0xa1,-0xb8)+_0x26315f(0x3a1,0x37d)+_0x26315f(0x364,0x36e)]();for(const _0x24fcab of _0x8bc5a2)coocFromSet(_0x24fcab,_0x5ab86f);function _0x224deb(_0x55dc60,_0xb7a159){return _0x44a4(_0xb7a159- -0x1d8,_0x55dc60);}const _0xd4dfef=_0x1e069f[_0x26315f(0x349,0x372)+_0x224deb(-0xf2,-0xcc)]();for(const _0x1f679e of _0xd4dfef)coocFromSet(_0x1f679e,_0x5ab86f);function _0x26315f(_0x3750cb,_0x55939a){return _0x44a4(_0x55939a-0x259,_0x3750cb);}const _0x24403b=addTagCooc(_0x1e069f,_0x5ab86f,_0x5c1fce?.[_0x26315f(0x395,0x384)]),_0xa4ae32=[];for(const [_0x55ca5c,_0x2908f9]of _0x4d0e15){if(_0x224deb(-0x7c,-0x8d)==='xPaYy'){const [_0x2d4aaf,_0x30b7e1]=_0x55ca5c[_0x26315f(0x373,0x39d)]('\x20');_0xa4ae32[_0x26315f(0x371,0x393)]({'src':_0x2d4aaf,'dst':_0x30b7e1,'weight':_0x2908f9}),_0xa4ae32[_0x224deb(-0xc8,-0x9e)]({'src':_0x30b7e1,'dst':_0x2d4aaf,'weight':_0x2908f9});}else{const _0x42a432=_0xd81bd3[_0x224deb(-0x9d,-0x9b)](_0xb723bf);if(_0x42a432!==_0x452b0c)_0x385ab1[_0x42a432]=0x1;}}const _0x160ce9=_0x1e069f[_0x26315f(0x372,0x395)+'es']('cooc',_0xa4ae32);return{'edges':_0x160ce9,'injectionSets':_0x8bc5a2[_0x26315f(0x3be,0x39a)],'usageSets':_0xd4dfef[_0x26315f(0x3a4,0x39a)],'tagStats':_0x24403b,'elapsedMs':_0x18fee8?Date[_0x26315f(0x3a0,0x3b3)]()-_0x18fee8:0x0};}export const TEMP_MAX_SET=0xc8;export function buildTempEdges(_0x2d7f66,_0x541f13){const _0x1d008f=_0x541f13?.['nowMs']??0x0,_0x13e380=_0x541f13?.[_0x59e78b(0x47d,0x468)]??TEMP_MAX_SET,_0x4c8779=_0x2d7f66[_0x59e78b(0x42c,0x422)+_0x59e78b(0x439,0x444)](),_0x62f3e3=new Map(),_0x5e4f13=(_0x13e7a3,_0x525d0f)=>{if(_0x13e7a3===_0x525d0f)return;const _0x1158cb=_0x13e7a3<_0x525d0f?_0x13e7a3+'\x20'+_0x525d0f:_0x525d0f+'\x20'+_0x13e7a3;function _0x522092(_0x40bfaf,_0x35f639){return _0x59e78b(_0x40bfaf,_0x35f639- -0x580);}function _0x12fd5a(_0x17152e,_0x2dad3b){return _0x59e78b(_0x2dad3b,_0x17152e- -0x451);}_0x62f3e3[_0x522092(-0x14e,-0x14b)](_0x1158cb,(_0x62f3e3[_0x522092(-0x10e,-0x12b)](_0x1158cb)??0x0)+0x1);};let _0x4c78b7=0x0;for(const _0x201e57 of _0x4c8779){if(_0x201e57[_0x3efd3(-0x32,-0x5b)]>_0x13e380){_0x4c78b7++;continue;}coocFromSet(_0x201e57,_0x5e4f13);}function _0x59e78b(_0x2c258e,_0x5b1bf1){return _0x44a4(_0x5b1bf1-0x318,_0x2c258e);}function _0x3efd3(_0x23a273,_0x4eb338){return _0x44a4(_0x23a273- -0x173,_0x4eb338);}const _0x2789c=[];for(const [_0x176a54,_0x167242]of _0x62f3e3){if(_0x3efd3(-0x58,-0x67)!==_0x59e78b(0x421,0x430)){const [_0x5846d3,_0x504d2b]=_0x176a54[_0x59e78b(0x42f,0x45c)]('\x20');_0x2789c['push']({'src':_0x5846d3,'dst':_0x504d2b,'weight':_0x167242}),_0x2789c[_0x59e78b(0x468,0x452)]({'src':_0x504d2b,'dst':_0x5846d3,'weight':_0x167242});}else{let _0x3a6dc4=0x0;const _0xdc5f06=_0x3f9e90*_0x1764f1;for(let _0xfb7a90=0x0;_0xfb7a90<_0x325db0;_0xfb7a90++){_0x50de4d[_0x3da6f6*_0x54e8f3+_0xfb7a90]=_0x4b0d00['sqrt'](_0x212777[_0x59e78b(0x480,0x46a)](0x0,0x1-_0x3a6dc4));const _0x9c6be2=_0x35f720[_0x3efd3(-0x45,-0x2a)](_0x2123e3,(_0xfb7a90+0x1)*_0x1dff62);for(let _0x29175b=_0xfb7a90*_0x5d42d5;_0x29175b<_0x9c6be2;_0x29175b++){const _0x2c5292=_0x2fc497[_0xdc5f06+_0x29175b];_0x3a6dc4+=_0x2c5292*_0x2c5292;}}}}const _0x4142c6=_0x2d7f66[_0x3efd3(-0x37,-0x38)+'es'](_0x3efd3(-0x63,-0x64),_0x2789c);return{'edges':_0x4142c6,'sessionSets':_0x4c8779['length'],'skippedLargeSets':_0x4c78b7,'elapsedMs':_0x1d008f?Date[_0x3efd3(-0x19,-0x14)]()-_0x1d008f:0x0};}const REF_LINK_RE=/\[\[([A-Za-z0-9][A-Za-z0-9_\-./]*)\]\]/g,REF_SLUG_MIN=0x3;export const REF_DF_MAX=0x64;export function buildRefEdges(_0xc4eaeb,_0x463f91){const _0x5b742c=_0x463f91?.[_0x38ccff(-0x223,-0x243)]??0x0,_0x5ef55d=_0x463f91?.['dfMax']??REF_DF_MAX,_0x10bb05=_0xc4eaeb[_0x38ccff(-0x22b,-0x212)+_0x38ccff(-0x207,-0x1f1)]();function _0x38ccff(_0x548a38,_0x14e7e0){return _0x44a4(_0x548a38- -0x363,_0x14e7e0);}const _0x418c31=[],_0x32ba10=new Map(),_0xf4e159=[];for(const _0x52c4b9 of _0x10bb05){const _0x2a0722=new Set();REF_LINK_RE[_0x570ebb(-0xf7,-0xdf)]=0x0;let _0x12903a;while((_0x12903a=REF_LINK_RE['exec'](_0x52c4b9[_0x570ebb(-0x122,-0x134)]))!==null){if(_0x12903a[0x1][_0x38ccff(-0x222,-0x215)]>=REF_SLUG_MIN)_0x2a0722[_0x38ccff(-0x245,-0x24e)](_0x12903a[0x1]);}const _0xa92e08=[..._0x2a0722];_0x418c31[_0x570ebb(-0x109,-0x100)]({'id':_0x52c4b9['id'],'slugs':_0xa92e08});for(const _0x282361 of _0xa92e08){!_0x32ba10[_0x38ccff(-0x256,-0x22d)](_0x282361)&&(_0x32ba10['set'](_0x282361,_0xf4e159[_0x38ccff(-0x222,-0x216)]),_0xf4e159['push'](_0x282361));}}const _0x26a1d5=buildAsciiSubstringMatcher(_0xf4e159),_0x25d481=_0xf4e159[_0x570ebb(-0x112,-0xe8)](()=>[]);let _0x17946f=0x0;for(const _0x43b8fe of _0xc4eaeb[_0x38ccff(-0x22e,-0x22b)+_0x38ccff(-0x23c,-0x261)]()){if(!_0x43b8fe[_0x38ccff(-0x242,-0x21a)])continue;_0x17946f++,_0x26a1d5[_0x570ebb(-0x105,-0xeb)](_0x43b8fe[_0x570ebb(-0x122,-0x109)],_0x5adf78=>_0x25d481[_0x5adf78][_0x38ccff(-0x229,-0x235)](_0x43b8fe['id']));}function _0x570ebb(_0x547bf7,_0x5783fd){return _0x44a4(_0x547bf7- -0x243,_0x5783fd);}const _0x384c45=[],_0x3f7d27=new Map();let _0x4c1788=0x0,_0xdb2f1e=0x0,_0xae0aa1=0x0;for(const _0x20a2ac of _0x418c31){if('CayIg'===_0x38ccff(-0x23a,-0x23b))for(const _0x54f519 of _0x20a2ac['slugs']){_0x4c1788++;const _0x251866=_0x25d481[_0x32ba10[_0x38ccff(-0x226,-0x22a)](_0x54f519)],_0xa0c93=_0x251866[_0x38ccff(-0x202,-0x1da)](_0x20a2ac['id']),_0x9be063=_0xa0c93===-0x1?_0x251866[_0x570ebb(-0x102,-0x10f)]:_0x251866[_0x38ccff(-0x222,-0x231)]-0x1;if(_0x9be063>0x0)_0xdb2f1e++;if(_0x9be063>_0x5ef55d){if(_0x38ccff(-0x25a,-0x23d)!==_0x38ccff(-0x25a,-0x269))_0x535429(_0x4a8ec4[_0x448058],_0x249d9e[_0x22d0c7]);else{_0xae0aa1++;continue;}}const _0x3e2cb9=0x1/(0x1+Math[_0x570ebb(-0x11e,-0x144)](Math[_0x570ebb(-0xf1,-0x106)](_0x9be063,0x1)));for(let _0x157e24=0x0;_0x157e24<_0x251866[_0x38ccff(-0x222,-0x230)];_0x157e24++){if(_0x157e24===_0xa0c93)continue;const _0x48846e=_0x20a2ac['id']+'\x20'+_0x251866[_0x157e24],_0x173dc5=_0x3f7d27[_0x570ebb(-0x106,-0xe7)](_0x48846e);if(_0x173dc5!==undefined){if(_0x38ccff(-0x20e,-0x1ef)===_0x570ebb(-0xfc,-0x122))return{'nodes':_0x390170,'edges':0x0,'elapsedMs':_0x400cab?_0x2d1f3b['now']()-_0x44c198:0x0,'aborted':!![]};else{if(_0x3e2cb9>_0x173dc5)_0x3f7d27[_0x38ccff(-0x246,-0x251)](_0x48846e,_0x3e2cb9);continue;}}_0x3f7d27[_0x38ccff(-0x246,-0x26a)](_0x48846e,_0x3e2cb9);}}else{const _0x12ec22=[];for(let _0x267fd5=0x0;_0x267fd5<_0x3f52ae;_0x267fd5++)if(_0x5a7302[_0x267fd5])_0x12ec22[_0x38ccff(-0x229,-0x21e)](_0x554906[_0x267fd5]['id']);if(_0x5d29d6){for(const _0x2cae2a of _0x5e54b3)_0x12ec22['push'](_0x2cae2a);}_0x2d1332=_0x12ec22[_0x570ebb(-0x102,-0xe7)],_0x5a8a6f=_0x5d2604[_0x570ebb(-0x107,-0x12e)+'esForSrcs'](_0x38ccff(-0x23d,-0x244),_0x12ec22,_0xd4e3b2);}}for(const [_0x1ad918,_0x1dbe29]of _0x3f7d27){const [_0x236433,_0x1bf6e9]=_0x1ad918[_0x570ebb(-0xff,-0xf8)]('\x20');_0x384c45[_0x38ccff(-0x229,-0x214)]({'src':_0x236433,'dst':_0x1bf6e9,'weight':_0x1dbe29});}const _0x3fb3fa=_0xc4eaeb['replaceEdg'+'es']('ref',_0x384c45);return{'edges':_0x3fb3fa,'sources':_0x10bb05[_0x570ebb(-0x102,-0xe4)],'slugRefs':_0x4c1788,'resolvedSlugs':_0xdb2f1e,'skippedHighDf':_0xae0aa1,'elapsedMs':_0x5b742c?Date['now']()-_0x5b742c:0x0,'patterns':_0xf4e159[_0x38ccff(-0x222,-0x21d)],'scanned':_0x17946f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1cdf1a,_0x18f2e7){function _0x130a29(_0x4c1f78,_0x10f211){return _0x2246(_0x4c1f78-0x28a,_0x10f211);}function _0x5a6fbc(_0x5f1d3a,_0x34a0cd){return _0x2246(_0x5f1d3a- -0xc3,_0x34a0cd);}const _0x495424=_0x1cdf1a();while(!![]){try{const _0x186797=-parseInt(_0x130a29(0x3eb,0x3d5))/0x1+-parseInt(_0x5a6fbc(0xb5,0xcc))/0x2+parseInt(_0x5a6fbc(0xbb,0xc6))/0x3+parseInt(_0x5a6fbc(0x99,0x96))/0x4+-parseInt(_0x130a29(0x3fa,0x3e1))/0x5+-parseInt(_0x5a6fbc(0x97,0x83))/0x6+parseInt(_0x130a29(0x3d4,0x3eb))/0x7;if(_0x186797===_0x18f2e7)break;else _0x495424['push'](_0x495424['shift']());}catch(_0x4ba1f4){_0x495424['push'](_0x495424['shift']());}}}(_0x788b,0x5debb));function _0xb0ced9(_0x54aad2,_0x42e2f8){return _0x2246(_0x54aad2-0x323,_0x42e2f8);}function _0x2246(_0x5ccdd3,_0x4ad24b){_0x5ccdd3=_0x5ccdd3-0x143;const _0x788be8=_0x788b();let _0x22467a=_0x788be8[_0x5ccdd3];if(_0x2246['xVpDiA']===undefined){var _0x127335=function(_0x128bfe){const _0x40af4c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41a476='',_0x268820='';for(let _0x40de4=0x0,_0x245010,_0x26730e,_0x4ef140=0x0;_0x26730e=_0x128bfe['charAt'](_0x4ef140++);~_0x26730e&&(_0x245010=_0x40de4%0x4?_0x245010*0x40+_0x26730e:_0x26730e,_0x40de4++%0x4)?_0x41a476+=String['fromCharCode'](0xff&_0x245010>>(-0x2*_0x40de4&0x6)):0x0){_0x26730e=_0x40af4c['indexOf'](_0x26730e);}for(let _0x57518f=0x0,_0x338dc3=_0x41a476['length'];_0x57518f<_0x338dc3;_0x57518f++){_0x268820+='%'+('00'+_0x41a476['charCodeAt'](_0x57518f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x268820);};_0x2246['iQXJfg']=_0x127335,_0x2246['IalFYW']={},_0x2246['xVpDiA']=!![];}const _0x2f1167=_0x788be8[0x0],_0x2e1a76=_0x5ccdd3+_0x2f1167,_0x5432e8=_0x2246['IalFYW'][_0x2e1a76];return!_0x5432e8?(_0x22467a=_0x2246['iQXJfg'](_0x22467a),_0x2246['IalFYW'][_0x2e1a76]=_0x22467a):_0x22467a=_0x5432e8,_0x22467a;}import{rankNorm,parseTs}from'./signal-builder.js';export const FUSE_WEIGHTS={'sim':0.35,'cooc':0.3,'ref':0.25,'temp':0.1};export const PPR_RESTART=0.15;export const PPR_EPSILON=1e-9;export const PPR_MAX_ITERS=0x64;export const MEMORYRANK_WEIGHTS={'w1_struct':0.3,'w2_refLocal':0.11,'w3_coocLocal':0.09,'w4_uniqueness':0.16,'w5_activation':0.14,'w6_reliability':0x0,'w7_dup':0.08,'w8_dump':0.06,'w9_generic':0.06};export const COLDSTART_TAU_DAYS=0x15;export const COLDSTART_THETA=0.5;export const TIER_PRIOR={'semantic':0x1,'episodic':0.8,'working':0.6};export const HARD_PROTECT_CATEGORIES=new Set([_0x3398a5(0x2f6,0x300),'convention',_0x3398a5(0x2d7,0x2ec)+_0x3398a5(0x306,0x2ef),'learning']);function _0x3398a5(_0x2ed524,_0x4f3209){return _0x2246(_0x2ed524-0x18a,_0x4f3209);}export const IMPORTANCE_PRIOR={'decision':0x1,'convention':0x1,'error_solution':0x1,'learning':0x1,'code_pattern':0.7,'project_knowledge':0.7,'context':0.5,'skill':0.5};export const OBSERVATION_WINDOW_DAYS=0x15;export const PRUNE_HIGH=0.7;function _0x788b(){const _0x5f4b77=['ChvZAa','z2vUzxjPy19Wzq','zhvWx3nJB3jL','Aw9U','DZvFywn0AxzHDa','mZKWotuYohrstxz6zq','ywn0AxzHDgLVBG','mZa3mZu1mKDQr1rTuW','CxvHBgL0Ev9ZyW','Bg9N','B3jL','y2f0zwDVCNK','ntiXndzyv2n1DeC','reLeqvrf','zhn0','tuvsr0u','DZLFz2vUzxjPyW','AgfZ','revmrvrfx0nbtG','DZDFzhvW','BgvUz3rO','z2v0','y3jLyxrLzf9HDa','zgvJAxnPB24','C2LT','ywjZ','y29VyW','mJu1mtyXnwXZAhzrra','DxbKyxrLuMfUAW','ywnJzxnZx2nVDq','Dw5PCxvLBMvZCW','C2vKx2f0','BwfW','zMLSDgvY','z2v0rwrNzxm','nZy1nZa4t0zXwgry','C3bSAxq','C2v0','C3jJ','DgLVBG','zM9YrwfJAa','nte4ndbmquThCxm','DZrFDw5PCxvLBG','zhvTCf9Zy29Yzq','DZfFC3rYDwn0','DMfSDwvZ','BM93txm','DZnFy29Vy0XVyW','qvjdseLwrq','zxHW','DgvTCa','zxnZ','BgfZDf9Hy2nLCW','CMvZDgfYDa','odm3mtu5ngzHtLnKwG','y2X1C3rLCL9Pza','DxrsB3DZ','zxjYB3jFC29SDq','CMvSAwfIAwXPDa','Bwf4','s0vfua','CMvM','D2vPz2H0','BMfSDhK','zMLSBa'];_0x788b=function(){return _0x5f4b77;};return _0x788b();}export const PRUNE_MID=0.5;export function ppmiNormalize(_0x501e58){if(_0x501e58[_0x286464(0x99,0x93)]===0x0)return[];let _0x597028=0x0;const _0x90e2e8=new Map();for(const _0x25e6a6 of _0x501e58){_0x597028+=_0x25e6a6['weight'],_0x90e2e8['set'](_0x25e6a6[_0x221210(0x52,0x71)],(_0x90e2e8[_0x286464(0x9a,0x96)](_0x25e6a6['src'])??0x0)+_0x25e6a6[_0x286464(0x82,0x85)]);}const _0x437cab=new Array(_0x501e58['length']);let _0xc960dd=0x0;function _0x286464(_0x5c7b8c,_0x529fdc){return _0xb0ced9(_0x5c7b8c- -0x3f3,_0x529fdc);}for(let _0x2c306e=0x0;_0x2c306e<_0x501e58[_0x221210(0x79,0x5f)];_0x2c306e++){const _0x5c1588=_0x501e58[_0x2c306e],_0x4e6091=(_0x90e2e8[_0x221210(0x62,0x60)](_0x5c1588[_0x221210(0x8f,0x71)])??0x0)*(_0x90e2e8[_0x286464(0x9a,0xb3)](_0x5c1588['dst'])??0x0),_0x120047=_0x4e6091>0x0?Math[_0x286464(0x8e,0x76)](_0x5c1588[_0x286464(0x82,0x7d)]*_0x597028/_0x4e6091):0x0,_0x47d149=Math['max'](0x0,_0x120047);_0x437cab[_0x2c306e]=_0x47d149;if(_0x47d149>_0xc960dd)_0xc960dd=_0x47d149;}function _0x221210(_0x439a2a,_0x4c7be1){return _0xb0ced9(_0x4c7be1- -0x42d,_0x439a2a);}if(_0xc960dd===0x0)return[];const _0xe596f=[];for(let _0x16e8c4=0x0;_0x16e8c4<_0x501e58[_0x221210(0x46,0x5f)];_0x16e8c4++){if(_0x437cab[_0x16e8c4]>0x0)_0xe596f['push']({'src':_0x501e58[_0x16e8c4]['src'],'dst':_0x501e58[_0x16e8c4][_0x286464(0x93,0x95)],'weight':_0x437cab[_0x16e8c4]/_0xc960dd});}return _0xe596f;}export function computeRanks(_0x38f919,_0x21924b){const _0x173297=_0x21924b?.['nowMs']??0x0,_0x18db11=_0x21924b?.[_0xfe97e(0x30e,0x2ff)]??Date['now'](),_0x4402a9=_0x21924b?.[_0xe428d6(0x39d,0x382)]??PPR_RESTART;function _0xe428d6(_0x3fd15c,_0x1bc571){return _0xb0ced9(_0x3fd15c- -0xcf,_0x1bc571);}const _0x9784d2=_0x38f919['getRankInp'+_0xe428d6(0x3a0,0x394)](),_0x5f1720=_0x9784d2['length'],_0x75b73=new Map();_0x9784d2[_0xe428d6(0x3d1,0x3c1)]((_0x227b1b,_0x5e227e)=>_0x75b73['set'](_0x227b1b['id'],_0x5e227e));const _0x40a108=_0x4d0b2c=>_0x75b73['has'](_0x4d0b2c[_0xe428d6(0x3cf,0x3af)])&&_0x75b73['has'](_0x4d0b2c[_0xfe97e(0x2ee,0x2e8)]),_0x54b0e0=_0x38f919[_0xfe97e(0x302,0x30e)](_0xfe97e(0x2f8,0x2fb))[_0xfe97e(0x301,0x316)](_0x40a108),_0x1258c6=new Map();for(const _0x5697e8 of _0x54b0e0){const _0x194dbd=_0x5697e8[_0xe428d6(0x3cf,0x3c2)]+'\x20'+_0x5697e8[_0xfe97e(0x2ee,0x2e1)],_0x41d277=_0x5697e8[_0xfe97e(0x2ee,0x30c)]+'\x20'+_0x5697e8[_0xe428d6(0x3cf,0x3ee)];if((_0x1258c6[_0xfe97e(0x2f5,0x2f9)](_0x194dbd)??0x0)<_0x5697e8[_0xfe97e(0x2dd,0x2ec)])_0x1258c6[_0xe428d6(0x3ce,0x3c0)](_0x194dbd,_0x5697e8[_0xe428d6(0x3a6,0x38a)]);if((_0x1258c6[_0xe428d6(0x3be,0x3cf)](_0x41d277)??0x0)<_0x5697e8[_0xe428d6(0x3a6,0x397)])_0x1258c6[_0xfe97e(0x305,0x2fe)](_0x41d277,_0x5697e8[_0xe428d6(0x3a6,0x3a5)]);}const _0x11cafb=ppmiNormalize(_0x38f919[_0xfe97e(0x302,0x30b)]('cooc')[_0xe428d6(0x3ca,0x3c4)](_0x40a108)),_0x3bc6b2=_0x38f919[_0xe428d6(0x3cb,0x3e4)](_0xe428d6(0x39a,0x3a5))[_0xfe97e(0x301,0x317)](_0x40a108);let _0x277c8c=0x0;for(const _0x110aad of _0x3bc6b2)if(_0x110aad['weight']>_0x277c8c)_0x277c8c=_0x110aad[_0xfe97e(0x2dd,0x2da)];const _0xacdd8e=_0x38f919[_0xfe97e(0x302,0x2f3)](_0xe428d6(0x3a5,0x386))[_0xfe97e(0x301,0x2f1)](_0x40a108),_0x5de48d=new Map(),_0x24b3b5=(_0x3aeff5,_0x396f94,_0x3c80c3)=>{function _0x25c337(_0x43e09b,_0x1f306e){return _0xe428d6(_0x1f306e- -0x28d,_0x43e09b);}if(_0x3c80c3<=0x0)return;const _0x5a10e8=_0x75b73[_0x433c76(0x28a,0x29d)](_0x3aeff5),_0x20112a=_0x75b73[_0x25c337(0x11a,0x131)](_0x396f94);if(_0x5a10e8===_0x20112a)return;function _0x433c76(_0x19a5dc,_0x48f56e){return _0xe428d6(_0x48f56e- -0x121,_0x19a5dc);}let _0x39cd7d=_0x5de48d[_0x433c76(0x28f,0x29d)](_0x5a10e8);!_0x39cd7d&&(_0x39cd7d=new Map(),_0x5de48d['set'](_0x5a10e8,_0x39cd7d)),_0x39cd7d[_0x433c76(0x29e,0x2ad)](_0x20112a,(_0x39cd7d[_0x25c337(0x142,0x131)](_0x20112a)??0x0)+_0x3c80c3);};for(const [_0x29d8fc,_0x5b2035]of _0x1258c6){const [_0x5eef10,_0x50419a]=_0x29d8fc[_0xfe97e(0x304,0x2fb)]('\x20');_0x24b3b5(_0x5eef10,_0x50419a,FUSE_WEIGHTS[_0xe428d6(0x3c1,0x3d6)]*_0x5b2035);}for(const _0x1a426f of _0x11cafb)_0x24b3b5(_0x1a426f['src'],_0x1a426f[_0xe428d6(0x3b7,0x3aa)],FUSE_WEIGHTS[_0xe428d6(0x3c3,0x3a3)]*_0x1a426f[_0xe428d6(0x3a6,0x3a9)]);for(const _0x384a28 of _0xacdd8e)_0x24b3b5(_0x384a28['src'],_0x384a28[_0xe428d6(0x3b7,0x3a3)],FUSE_WEIGHTS[_0xfe97e(0x2dc,0x2bd)]*_0x384a28[_0xfe97e(0x2dd,0x2ed)]);if(_0x277c8c>0x0){for(const _0x356f9e of _0x3bc6b2)_0x24b3b5(_0x356f9e[_0xfe97e(0x306,0x2f9)],_0x356f9e[_0xfe97e(0x2ee,0x2d7)],FUSE_WEIGHTS['temp']*(_0x356f9e[_0xfe97e(0x2dd,0x2e7)]/_0x277c8c));}let _0x2e3bb7=0x0;const _0x3916eb=[],_0x30d0a1=[],_0x41950a=[],_0x2e3190=new Array(_0x5f1720)['fill'](![]);for(const [_0x40d6c0,_0x4b8306]of _0x5de48d){let _0x40a6d6=0x0;for(const _0x49b07d of _0x4b8306[_0xe428d6(0x3d6,0x3e0)]())_0x40a6d6+=_0x49b07d;if(_0x40a6d6<=0x0)continue;_0x2e3190[_0x40d6c0]=!![];for(const [_0x99608b,_0x336259]of _0x4b8306){_0x3916eb[_0xe428d6(0x3a9,0x3bb)](_0x40d6c0),_0x30d0a1[_0xfe97e(0x2e0,0x2ee)](_0x99608b),_0x41950a[_0xe428d6(0x3a9,0x39c)](_0x336259/_0x40a6d6),_0x2e3bb7++;}}const _0x2f95a0=new Array(_0x5f1720);let _0x1e9f4f=0x0;for(let _0x23a8dc=0x0;_0x23a8dc<_0x5f1720;_0x23a8dc++){const _0x1398d6=_0x9784d2[_0x23a8dc]['quality_sc'+_0xfe97e(0x2ea,0x2d7)]??0.5,_0x254606=TIER_PRIOR[_0x9784d2[_0x23a8dc]['tier']]??0.6,_0x2bf720=Math['max'](_0x1398d6,0.000001)*_0x254606;_0x2f95a0[_0x23a8dc]=_0x2bf720,_0x1e9f4f+=_0x2bf720;}for(let _0x3e9af4=0x0;_0x3e9af4<_0x5f1720;_0x3e9af4++)_0x2f95a0[_0x3e9af4]/=_0x1e9f4f;let _0x1b9033=_0x2f95a0['slice'](),_0x1538d0=0x0,_0x2b38c3=![];for(let _0x45645e=0x0;_0x45645e<PPR_MAX_ITERS;_0x45645e++){_0x1538d0=_0x45645e+0x1;const _0x364ff0=new Array(_0x5f1720)[_0xfe97e(0x2df,0x2da)](0x0);let _0x4d622d=0x0;for(let _0x117a17=0x0;_0x117a17<_0x5f1720;_0x117a17++)if(!_0x2e3190[_0x117a17])_0x4d622d+=_0x1b9033[_0x117a17];for(let _0x1d63cc=0x0;_0x1d63cc<_0x3916eb['length'];_0x1d63cc++)_0x364ff0[_0x30d0a1[_0x1d63cc]]+=_0x41950a[_0x1d63cc]*_0x1b9033[_0x3916eb[_0x1d63cc]];let _0x35f160=0x0;for(let _0x382ab4=0x0;_0x382ab4<_0x5f1720;_0x382ab4++){const _0x3782de=(0x1-_0x4402a9)*(_0x364ff0[_0x382ab4]+_0x4d622d*_0x2f95a0[_0x382ab4])+_0x4402a9*_0x2f95a0[_0x382ab4];_0x35f160+=Math[_0xe428d6(0x3c2,0x3d2)](_0x3782de-_0x1b9033[_0x382ab4]),_0x364ff0[_0x382ab4]=_0x3782de;}_0x1b9033=_0x364ff0;if(_0x35f160<PPR_EPSILON){_0x2b38c3=!![];break;}}const _0x56ea05=rankNorm(_0x1b9033),_0x59fc5f=new Array(_0x5f1720)['fill'](0x0);for(const _0x4d0e99 of _0xacdd8e)_0x59fc5f[_0x75b73[_0xfe97e(0x2f5,0x2ed)](_0x4d0e99[_0xfe97e(0x2ee,0x30a)])]+=_0x4d0e99['weight'];const _0x47f583=rankNorm(_0x59fc5f),_0x3d7ec2=new Array(_0x5f1720)['fill'](0x0);for(const _0x2795f7 of _0x11cafb)_0x3d7ec2[_0x75b73[_0xfe97e(0x2f5,0x2f5)](_0x2795f7[_0xe428d6(0x3cf,0x3c4)])]+=_0x2795f7[_0xfe97e(0x2dd,0x2f7)];const _0x483ceb=rankNorm(_0x3d7ec2),_0x84b7d2=(_0x3827ac,_0x3ec2c8)=>_0x3827ac??_0x3ec2c8,_0x1c4812=MEMORYRANK_WEIGHTS,_0x2cbdc6=new Array(_0x5f1720);for(let _0xbb7d8e=0x0;_0xbb7d8e<_0x5f1720;_0xbb7d8e++){const _0x526db8=_0x9784d2[_0xbb7d8e];_0x2cbdc6[_0xbb7d8e]=_0x1c4812[_0xe428d6(0x3d5,0x3b6)]*_0x56ea05[_0xbb7d8e]+_0x1c4812['w2_refLoca'+'l']*_0x47f583[_0xbb7d8e]+_0x1c4812[_0xfe97e(0x2ce,0x2e0)+'al']*_0x483ceb[_0xbb7d8e]+_0x1c4812[_0xfe97e(0x30a,0x310)+_0xe428d6(0x39b,0x393)]*_0x84b7d2(_0x526db8[_0xe428d6(0x3c7,0x3d2)],0.5)+_0x1c4812[_0xe428d6(0x3ad,0x38f)+_0xfe97e(0x2e3,0x2c2)]*_0x84b7d2(_0x526db8['activation'],0.5)+_0x1c4812['w6_reliabi'+'lity']*_0x84b7d2(_0x526db8[_0xe428d6(0x3a2,0x399)+'y'],0x1)-_0x1c4812[_0xfe97e(0x2f3,0x307)]*_0x84b7d2(_0x526db8[_0xfe97e(0x2e2,0x2cb)],0x0)-_0x1c4812['w8_dump']*_0x84b7d2(_0x526db8['dump_score'],0.5)-_0x1c4812[_0xfe97e(0x2f0,0x2fb)]*_0x84b7d2(_0x526db8[_0xfe97e(0x2e1,0x2d9)+'nalty'],0.5);}const _0x15fa9f=_0x9784d2[_0xe428d6(0x3c9,0x3ca)](_0x438fa8=>{const _0x1c2b0a=parseTs(_0x438fa8[_0x595187(-0xd3,-0xba)])??_0x18db11;function _0x379e48(_0x1711c9,_0x1d1b1c){return _0xe428d6(_0x1711c9- -0x3f7,_0x1d1b1c);}function _0x595187(_0x31bfac,_0x27803d){return _0xe428d6(_0x31bfac- -0x492,_0x27803d);}return Math[_0x379e48(-0x54,-0x4d)]((_0x18db11-_0x1c2b0a)/0x5265c00,0x0);}),_0x5b7e30=_0x15fa9f['map'](_0x48933c=>Math[_0xfe97e(0x2d0,0x2dd)](-_0x48933c/COLDSTART_TAU_DAYS)),_0x11256b=_0x9784d2[_0xe428d6(0x3c9,0x3c8)](_0x412e76=>{function _0x2fa32a(_0x381191,_0x3327b3){return _0xe428d6(_0x3327b3- -0x61,_0x381191);}function _0xa94b10(_0x4c270c,_0x5a071b){return _0xe428d6(_0x5a071b- -0x5d3,_0x4c270c);}const _0x21943e=parseTs(_0x412e76[_0x2fa32a(0x331,0x33b)+_0xa94b10(-0x223,-0x20b)])??parseTs(_0x412e76[_0x2fa32a(0x355,0x35e)])??_0x18db11;return Math[_0xa94b10(-0x20f,-0x230)]((_0x18db11-_0x21943e)/0x5265c00,0x0);}),_0x5eab28=rankNorm(_0x11256b),_0xac377f=new Array(_0x5f1720);function _0xfe97e(_0x2b5d38,_0x1fa81f){return _0xb0ced9(_0x2b5d38- -0x198,_0x1fa81f);}const _0x37c145=new Array(_0x5f1720);for(let _0x207102=0x0;_0x207102<_0x5f1720;_0x207102++){const _0xa98514=_0x9784d2[_0x207102],_0x4a5399=_0xa98514[_0xe428d6(0x3b1,0x3c1)+_0xe428d6(0x3b3,0x39f)]??0.5,_0x4e219e=IMPORTANCE_PRIOR[_0xa98514[_0xe428d6(0x3b4,0x3ab)]]??0.5;_0xac377f[_0x207102]=(_0x84b7d2(_0xa98514[_0xfe97e(0x2fe,0x2fb)],0.5)+_0x47f583[_0x207102]+_0x84b7d2(_0xa98514['reliabilit'+'y'],0x1)*_0x4a5399+_0x84b7d2(_0xa98514[_0xfe97e(0x2e6,0x305)],0.5)+_0x4e219e+_0x5b7e30[_0x207102])/0x6;const _0x5462bf=_0x5eab28[_0x207102]*(0x1-_0x84b7d2(_0xa98514[_0xfe97e(0x2e6,0x2e6)],0.5)),_0x2d4f27=_0xa98514[_0xfe97e(0x2fd,0x2e1)+'nt']===0x0&&_0x15fa9f[_0x207102]>OBSERVATION_WINDOW_DAYS?0x1:0x0;_0x37c145[_0x207102]=(_0x84b7d2(_0xa98514[_0xe428d6(0x3ab,0x3c8)],0x0)+_0x84b7d2(_0xa98514[_0xfe97e(0x30b,0x310)],0.5)+_0x84b7d2(_0xa98514[_0xe428d6(0x3aa,0x3ba)+_0xfe97e(0x2de,0x2e0)],0.5)+_0x5462bf+_0x2d4f27)/0x5;}const _0x18e469=rankNorm(_0x2cbdc6),_0x4d1e19=rankNorm(_0x9784d2[_0xfe97e(0x300,0x318)](_0x351183=>_0x84b7d2(_0x351183['uniqueness'],0.5))),_0x512507={'KEEP':0x0,'MERGE':0x0,'ARCHIVE':0x0,'DELETE_CANDIDATE':0x0},_0x189061=new Array(_0x5f1720);for(let _0x1488f8=0x0;_0x1488f8<_0x5f1720;_0x1488f8++){const _0x5afda5=_0x9784d2[_0x1488f8],_0x252fb4=HARD_PROTECT_CATEGORIES[_0xe428d6(0x3ba,0x3b6)](_0x5afda5['category']),_0x18dffe=_0x59fc5f[_0x1488f8]>0x0,_0x57e5b1=_0x5b7e30[_0x1488f8]>=COLDSTART_THETA,_0x21a552=_0x18e469[_0x1488f8]>=0.5,_0x16608b=_0x4d1e19[_0x1488f8]>=0.5,_0x56ffc3=_0x5afda5[_0xe428d6(0x39f,0x3ae)]!==null;let _0xb51b7c;if(_0x21a552&&_0x16608b)_0xb51b7c=_0xe428d6(0x3a4,0x3c2);else{if(_0x21a552&&!_0x16608b)_0xb51b7c=_0x56ffc3?_0xfe97e(0x2ef,0x2ed):'KEEP';else{if(!_0x21a552&&_0x16608b)_0xb51b7c=_0xe428d6(0x3a4,0x3b9);else{if(_0x37c145[_0x1488f8]>=PRUNE_HIGH&&_0x56ffc3&&!_0x18dffe&&!_0x57e5b1&&!_0x252fb4)_0xb51b7c=_0xe428d6(0x3bb,0x3cd)+'DIDATE';else{if(_0x37c145[_0x1488f8]>=PRUNE_MID)_0xb51b7c=_0xe428d6(0x398,0x385);else _0xb51b7c=_0xe428d6(0x3a4,0x397);}}}}if(_0x252fb4&&(_0xb51b7c===_0xe428d6(0x3bb,0x39a)+_0xe428d6(0x3b6,0x3cd)||_0xb51b7c===_0xe428d6(0x3b8,0x3a3)))_0xb51b7c='ARCHIVE';if((_0x18dffe||_0x57e5b1)&&_0xb51b7c===_0xe428d6(0x3bb,0x3a9)+'DIDATE')_0xb51b7c=_0xe428d6(0x398,0x3a2);if(_0x57e5b1&&(_0xb51b7c==='MERGE'||_0xb51b7c===_0xfe97e(0x2cf,0x2b8)))_0xb51b7c=_0xfe97e(0x2db,0x2bf);_0x189061[_0x1488f8]=_0xb51b7c,_0x512507[_0xb51b7c]++;}const _0xa89ecb=new Date(_0x18db11)['toISOStrin'+'g']();return _0x38f919[_0xe428d6(0x3c5,0x3b8)+'s'](_0x9784d2['map']((_0x285bc0,_0x604c9e)=>({'id':_0x285bc0['id'],'struct_rank':_0x56ea05[_0x604c9e],'memoryrank':_0x2cbdc6[_0x604c9e],'retention_score':_0xac377f[_0x604c9e],'prune_score':_0x37c145[_0x604c9e],'decision':_0x189061[_0x604c9e]})),_0xa89ecb),{'nodes':_0x5f1720,'fusedEdges':_0x2e3bb7,'iterations':_0x1538d0,'converged':_0x2b38c3,'decisions':_0x512507,'elapsedMs':_0x173297?Date['now']()-_0x173297:0x0};}
|
|
1
|
+
(function(_0x3d46b4,_0x2ff25c){function _0xc3bf7b(_0x385db8,_0x37a5e3){return _0x2504(_0x385db8- -0x25a,_0x37a5e3);}const _0x167124=_0x3d46b4();function _0x47662b(_0x52ec4d,_0x5b14fb){return _0x2504(_0x5b14fb-0x22a,_0x52ec4d);}while(!![]){try{const _0xab7329=-parseInt(_0x47662b(0x326,0x31f))/0x1+parseInt(_0xc3bf7b(-0x173,-0x173))/0x2+-parseInt(_0x47662b(0x2ed,0x2e0))/0x3*(-parseInt(_0xc3bf7b(-0x17f,-0x197))/0x4)+parseInt(_0xc3bf7b(-0x188,-0x1a9))/0x5*(parseInt(_0xc3bf7b(-0x19a,-0x1b5))/0x6)+parseInt(_0xc3bf7b(-0x186,-0x1a7))/0x7*(parseInt(_0xc3bf7b(-0x1aa,-0x1c2))/0x8)+parseInt(_0xc3bf7b(-0x18f,-0x1ae))/0x9+-parseInt(_0x47662b(0x316,0x2f2))/0xa;if(_0xab7329===_0x2ff25c)break;else _0x167124['push'](_0x167124['shift']());}catch(_0x55f666){_0x167124['push'](_0x167124['shift']());}}}(_0x3656,0x8561d));function _0x62c11e(_0x5c0ff1,_0x59f248){return _0x2504(_0x5c0ff1- -0x22e,_0x59f248);}import{rankNorm,parseTs}from'./signal-builder.js';function _0x2504(_0x30eb20,_0x559c44){_0x30eb20=_0x30eb20-0xaf;const _0x36561b=_0x3656();let _0x250462=_0x36561b[_0x30eb20];if(_0x2504['nyLKCT']===undefined){var _0x3e5692=function(_0x13d259){const _0x434871='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1bce27='',_0x2c25cf='';for(let _0x55983c=0x0,_0x4595e5,_0xdd1734,_0x1938de=0x0;_0xdd1734=_0x13d259['charAt'](_0x1938de++);~_0xdd1734&&(_0x4595e5=_0x55983c%0x4?_0x4595e5*0x40+_0xdd1734:_0xdd1734,_0x55983c++%0x4)?_0x1bce27+=String['fromCharCode'](0xff&_0x4595e5>>(-0x2*_0x55983c&0x6)):0x0){_0xdd1734=_0x434871['indexOf'](_0xdd1734);}for(let _0x136e08=0x0,_0x57ea5a=_0x1bce27['length'];_0x136e08<_0x57ea5a;_0x136e08++){_0x2c25cf+='%'+('00'+_0x1bce27['charCodeAt'](_0x136e08)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c25cf);};_0x2504['FVXuaM']=_0x3e5692,_0x2504['BqVIMH']={},_0x2504['nyLKCT']=!![];}const _0x155e42=_0x36561b[0x0],_0x4e1f40=_0x30eb20+_0x155e42,_0x39dac2=_0x2504['BqVIMH'][_0x4e1f40];return!_0x39dac2?(_0x250462=_0x2504['FVXuaM'](_0x250462),_0x2504['BqVIMH'][_0x4e1f40]=_0x250462):_0x250462=_0x39dac2,_0x250462;}export const FUSE_WEIGHTS={'sim':0.35,'cooc':0.3,'ref':0.25,'temp':0.1};function _0x565ba1(_0x19bd76,_0xaac6d9){return _0x2504(_0x19bd76-0x3c2,_0xaac6d9);}export const PPR_RESTART=0.15;export const PPR_EPSILON=1e-9;export const PPR_MAX_ITERS=0x64;function _0x3656(){const _0xf021de=['CxvHBgL0Ev9ZyW','DZDFzhvW','zhvTCf9Zy29Yzq','ywjZ','zxjYB3jFC29SDq','C2LT','zhn0','DxrsB3DZ','mta1mdm4mM1Nqu1lwG','z2v0rwrNzxm','BgvHCM5PBMC','nZe3nJe2v3ntsLfv','DgLVBG','CMvZDgfYDa','z2v0','BM93txm','zMLSDgvY','m29JzM5wva','z2v0uMfUA0LUCa','DZrFDw5PCxvLBG','DZnFy29Vy0XVyW','y3jLyxrLzf9HDa','ywn0AxzHDgLVBG','r0fLqwW','reLeqvrf','DgvTCa','C3jJ','ndC0nNHNsu9fEq','BM93','CMvM','tuvsr0u','DZzFCMvSAwfIAq','BgfZDf9Hy2nLCW','Bg9N','C2v0','nJaYotG5mfHKzejxDW','BgvUz3rO','s0vfua','otuZodK0n1jZA3bQqG','DMfSDwvZ','DxbKyxrLuMfUAW','BMfSDhK','DZHFzhvTCa','y2f0zwDVCNK','D2vPz2H0','mtCZmgThzu13wa','zM9YrwfJAa','mZvbrKX1z0O','BwfW','AgfZ','ywnJzxnZx2nVDq','r0foCg8','v0rgEhe','C3bSAxq','ndi1odi4CxHKCffK','Aw9U','B3jL','Bwf4','Dg9ju09tDhjPBG','BgL0Eq','yM1Tu0W','qvjdseLwrq','y29UDMvUDgLVBG','zMLSBa','zhvWx3nJB3jL','DgLLCG','nJiYmZm2Eur5uxz6','DZvFywn0AxzHDa','y29VyW','revmrvrfx0nbtG','ChvZAa','Dw5PCxvLBMvZCW'];_0x3656=function(){return _0xf021de;};return _0x3656();}export const MEMORYRANK_WEIGHTS={'w1_struct':0.3,'w2_refLocal':0.11,'w3_coocLocal':0.09,'w4_uniqueness':0.16,'w5_activation':0.14,'w6_reliability':0x0,'w7_dup':0.08,'w8_dump':0.06,'w9_generic':0.06};export const COLDSTART_TAU_DAYS=0x15;export const COLDSTART_THETA=0.5;export const TIER_PRIOR={'semantic':0x1,'episodic':0.8,'working':0.6};export const HARD_PROTECT_CATEGORIES=new Set(['decision',_0x565ba1(0x4a5,0x493),_0x62c11e(-0x13d,-0x13f)+_0x565ba1(0x473,0x46e),_0x62c11e(-0x17f,-0x19e)]);export const IMPORTANCE_PRIOR={'decision':0x1,'convention':0x1,'error_solution':0x1,'learning':0x1,'code_pattern':0.7,'project_knowledge':0.7,'context':0.5,'skill':0.5};export const OBSERVATION_WINDOW_DAYS=0x15;export const PRUNE_HIGH=0.7;export const PRUNE_MID=0.5;export function ppmiNormalize(_0x235420){if(_0x235420[_0x2d5c45(0x84,0x9d)]===0x0)return[];let _0x1dafe2=0x0;const _0x5d4bf8=new Map();for(const _0x28c734 of _0x235420){_0x1dafe2+=_0x28c734['weight'],_0x5d4bf8[_0x55360c(-0x20b,-0x206)](_0x28c734[_0x55360c(-0x21e,-0x20e)],(_0x5d4bf8[_0x2d5c45(0x71,0x87)](_0x28c734[_0x2d5c45(0x76,0x93)])??0x0)+_0x28c734[_0x2d5c45(0xc3,0xa5)]);}const _0x3bbe5b=new Array(_0x235420[_0x55360c(-0x1f1,-0x204)]);let _0x8575db=0x0;function _0x2d5c45(_0x34680b,_0x1c6d7c){return _0x62c11e(_0x1c6d7c-0x202,_0x34680b);}for(let _0x47351e=0x0;_0x47351e<_0x235420[_0x2d5c45(0xa9,0x9d)];_0x47351e++){const _0x5b3c8d=_0x235420[_0x47351e],_0x48be2f=(_0x5d4bf8['get'](_0x5b3c8d[_0x55360c(-0x1fc,-0x20e)])??0x0)*(_0x5d4bf8[_0x55360c(-0x235,-0x21a)](_0x5b3c8d[_0x55360c(-0x1e6,-0x1da)])??0x0),_0x3dcd85=_0x48be2f>0x0?Math[_0x55360c(-0x219,-0x207)](_0x5b3c8d[_0x55360c(-0x20f,-0x1fc)]*_0x1dafe2/_0x48be2f):0x0,_0x371f43=Math[_0x2d5c45(0xad,0xb2)](0x0,_0x3dcd85);_0x3bbe5b[_0x47351e]=_0x371f43;if(_0x371f43>_0x8575db)_0x8575db=_0x371f43;}if(_0x8575db===0x0)return[];const _0x8ea436=[];function _0x55360c(_0x3e93c9,_0x532b12){return _0x62c11e(_0x532b12- -0x9f,_0x3e93c9);}for(let _0x575933=0x0;_0x575933<_0x235420[_0x2d5c45(0xb7,0x9d)];_0x575933++){if('oLLQr'!==_0x2d5c45(0xa3,0xb5)){if(_0x3bbe5b[_0x575933]>0x0)_0x8ea436[_0x2d5c45(0xb8,0xbf)]({'src':_0x235420[_0x575933]['src'],'dst':_0x235420[_0x575933]['dst'],'weight':_0x3bbe5b[_0x575933]/_0x8575db});}else{const _0x435a45=_0x45511a[_0x55360c(-0x211,-0x20e)]+'\x20'+_0x219ff9['dst'],_0x126511=_0x19b300['dst']+'\x20'+_0x45c994[_0x2d5c45(0xb5,0x93)];if((_0x39d239['get'](_0x435a45)??0x0)<_0x70e50b['weight'])_0x3fc575['set'](_0x435a45,_0x212b74[_0x55360c(-0x220,-0x1fc)]);if((_0x260470[_0x2d5c45(0x72,0x87)](_0x126511)??0x0)<_0x58097f[_0x55360c(-0x209,-0x1fc)])_0x1d27a9[_0x55360c(-0x208,-0x206)](_0x126511,_0x2c706a[_0x55360c(-0x215,-0x1fc)]);}}return _0x8ea436;}export function computeRanks(_0x3a8d4f,_0x5d2b94){const _0xa5996e=_0x5d2b94?.[_0x4fdb83(0x38e,0x37a)]??0x0,_0x631a30=_0x5d2b94?.[_0x1ca2bf(-0x323,-0x33e)]??Date['now'](),_0x3c12b9=_0x5d2b94?.[_0x1ca2bf(-0x325,-0x31e)]??PPR_RESTART,_0x502915=_0x3a8d4f[_0x1ca2bf(-0x320,-0x341)+_0x1ca2bf(-0x2e3,-0x2d6)](),_0xa649d=_0x502915[_0x4fdb83(0x3a3,0x3ac)],_0x35684e=new Map();_0x502915[_0x1ca2bf(-0x304,-0x326)]((_0x390603,_0x29c025)=>_0x35684e['set'](_0x390603['id'],_0x29c025));const _0x35d4b2=_0x320ddf=>_0x35684e[_0x1ca2bf(-0x301,-0x2f7)](_0x320ddf[_0x4fdb83(0x399,0x39d)])&&_0x35684e[_0x1ca2bf(-0x301,-0x2f9)](_0x320ddf[_0x4fdb83(0x3cd,0x3cc)]),_0x3f23d4=_0x3a8d4f[_0x4fdb83(0x3d0,0x3df)]('sim')[_0x4fdb83(0x38f,0x376)](_0x35d4b2),_0x37ffdd=new Map();for(const _0x1afc55 of _0x3f23d4){if(_0x4fdb83(0x3b2,0x3bf)!==_0x1ca2bf(-0x2ff,-0x2e2)){const _0x1057d0=_0x4f32e4[_0x5b45df],_0x270ba0=(_0x32db1a[_0x4fdb83(0x38d,0x3a2)](_0x1057d0['src'])??0x0)*(_0x27d8be[_0x4fdb83(0x38d,0x397)](_0x1057d0[_0x1ca2bf(-0x2e4,-0x2c8)])??0x0),_0x20ff05=_0x270ba0>0x0?_0x3d7ff6[_0x4fdb83(0x3a0,0x3ab)](_0x1057d0['weight']*_0x65abdb/_0x270ba0):0x0,_0x4021d5=_0x1835d0[_0x4fdb83(0x3b8,0x3cc)](0x0,_0x20ff05);_0x1d8914[_0x2f9728]=_0x4021d5;if(_0x4021d5>_0x49c0da)_0x49d1e6=_0x4021d5;}else{const _0x1107f6=_0x1afc55[_0x4fdb83(0x399,0x393)]+'\x20'+_0x1afc55[_0x1ca2bf(-0x2e4,-0x2f6)],_0x38a859=_0x1afc55[_0x1ca2bf(-0x2e4,-0x2db)]+'\x20'+_0x1afc55[_0x4fdb83(0x399,0x3b9)];if((_0x37ffdd[_0x1ca2bf(-0x324,-0x319)](_0x1107f6)??0x0)<_0x1afc55[_0x1ca2bf(-0x306,-0x326)])_0x37ffdd[_0x1ca2bf(-0x310,-0x2f1)](_0x1107f6,_0x1afc55[_0x4fdb83(0x3ab,0x38b)]);if((_0x37ffdd[_0x4fdb83(0x38d,0x381)](_0x38a859)??0x0)<_0x1afc55['weight'])_0x37ffdd[_0x4fdb83(0x3a1,0x399)](_0x38a859,_0x1afc55[_0x1ca2bf(-0x306,-0x2e4)]);}}const _0x72b2b5=ppmiNormalize(_0x3a8d4f[_0x1ca2bf(-0x2e1,-0x2e4)](_0x4fdb83(0x3c3,0x3d2))[_0x1ca2bf(-0x322,-0x33e)](_0x35d4b2)),_0x3d9564=_0x3a8d4f[_0x1ca2bf(-0x2e1,-0x2d4)](_0x1ca2bf(-0x319,-0x315))[_0x1ca2bf(-0x322,-0x331)](_0x35d4b2);let _0x1f09d0=0x0;for(const _0x4b0391 of _0x3d9564)if(_0x4b0391[_0x4fdb83(0x3ab,0x3ad)]>_0x1f09d0)_0x1f09d0=_0x4b0391[_0x1ca2bf(-0x306,-0x327)];const _0x449b9a=_0x3a8d4f[_0x4fdb83(0x3d0,0x3af)]('ref')[_0x4fdb83(0x38f,0x38a)](_0x35d4b2),_0x5b30be=new Map(),_0x2d7b5b=(_0x3a82b0,_0x182012,_0x1bde5d)=>{if(_0x1bde5d<=0x0)return;const _0xfb6aaa=_0x35684e['get'](_0x3a82b0),_0x18faa4=_0x35684e[_0x139cac(-0x309,-0x316)](_0x182012);if(_0xfb6aaa===_0x18faa4)return;let _0x54a89e=_0x5b30be[_0x139cac(-0x300,-0x316)](_0xfb6aaa);function _0x139cac(_0xdf3ede,_0x3e845e){return _0x4fdb83(_0x3e845e- -0x6a3,_0xdf3ede);}function _0x359b6b(_0x3270ec,_0x13762a){return _0x4fdb83(_0x3270ec-0x86,_0x13762a);}!_0x54a89e&&(_0x54a89e=new Map(),_0x5b30be[_0x139cac(-0x2f4,-0x302)](_0xfb6aaa,_0x54a89e)),_0x54a89e[_0x359b6b(0x427,0x419)](_0x18faa4,(_0x54a89e[_0x359b6b(0x413,0x436)](_0x18faa4)??0x0)+_0x1bde5d);};for(const [_0x48aa84,_0x1e7f12]of _0x37ffdd){const [_0x2acd65,_0xb72a82]=_0x48aa84[_0x4fdb83(0x3b4,0x3b1)]('\x20');_0x2d7b5b(_0x2acd65,_0xb72a82,FUSE_WEIGHTS[_0x4fdb83(0x3cc,0x3ac)]*_0x1e7f12);}for(const _0x2e5810 of _0x72b2b5)_0x2d7b5b(_0x2e5810[_0x1ca2bf(-0x318,-0x325)],_0x2e5810[_0x1ca2bf(-0x2e4,-0x2d1)],FUSE_WEIGHTS[_0x1ca2bf(-0x2ee,-0x2e5)]*_0x2e5810[_0x4fdb83(0x3ab,0x3c0)]);for(const _0x13075e of _0x449b9a)_0x2d7b5b(_0x13075e['src'],_0x13075e[_0x4fdb83(0x3cd,0x3c4)],FUSE_WEIGHTS[_0x4fdb83(0x39c,0x393)]*_0x13075e['weight']);if(_0x1f09d0>0x0){for(const _0x49f57e of _0x3d9564)_0x2d7b5b(_0x49f57e[_0x4fdb83(0x399,0x3bb)],_0x49f57e['dst'],FUSE_WEIGHTS[_0x4fdb83(0x398,0x39c)]*(_0x49f57e[_0x4fdb83(0x3ab,0x3a2)]/_0x1f09d0));}let _0x56588c=0x0;const _0x59ac1a=[],_0xccad26=[],_0x55bda4=[],_0x40913a=new Array(_0xa649d)[_0x4fdb83(0x3be,0x3be)](![]);for(const [_0x4cbf68,_0x4d5903]of _0x5b30be){if('TvgtH'==='TvgtH'){let _0x3aba9e=0x0;for(const _0xa4945 of _0x4d5903[_0x1ca2bf(-0x30b,-0x312)]())_0x3aba9e+=_0xa4945;if(_0x3aba9e<=0x0)continue;_0x40913a[_0x4cbf68]=!![];for(const [_0x1b3668,_0x24daba]of _0x4d5903){_0x59ac1a[_0x1ca2bf(-0x2ec,-0x2ec)](_0x4cbf68),_0xccad26[_0x1ca2bf(-0x2ec,-0x2f1)](_0x1b3668),_0x55bda4[_0x1ca2bf(-0x2ec,-0x2e7)](_0x24daba/_0x3aba9e),_0x56588c++;}}else{const _0x5a1f0e=_0x2d33ed(_0x24e786[_0x4fdb83(0x394,0x38a)])??_0x4a11c7;return _0x2be631[_0x4fdb83(0x3b8,0x3c6)]((_0x3c790e-_0x5a1f0e)/0x5265c00,0x0);}}const _0x31ba58=new Array(_0xa649d);let _0x97034a=0x0;for(let _0x51775c=0x0;_0x51775c<_0xa649d;_0x51775c++){const _0x4113e0=_0x502915[_0x51775c][_0x4fdb83(0x3c7,0x3d0)+_0x1ca2bf(-0x2fa,-0x2ea)]??0.5,_0x9432f0=TIER_PRIOR[_0x502915[_0x51775c][_0x4fdb83(0x3c0,0x3b2)]]??0.6,_0x10e3e1=Math[_0x4fdb83(0x3b8,0x39d)](_0x4113e0,0.000001)*_0x9432f0;_0x31ba58[_0x51775c]=_0x10e3e1,_0x97034a+=_0x10e3e1;}for(let _0x457ae4=0x0;_0x457ae4<_0xa649d;_0x457ae4++)_0x31ba58[_0x457ae4]/=_0x97034a;let _0x5a3370=_0x31ba58['slice'](),_0x47b134=0x0,_0x4aa2e3=![];for(let _0x5e8d25=0x0;_0x5e8d25<PPR_MAX_ITERS;_0x5e8d25++){if(_0x4fdb83(0x3b3,0x3a8)!==_0x4fdb83(0x396,0x391)){_0x47b134=_0x5e8d25+0x1;const _0x428100=new Array(_0xa649d)[_0x4fdb83(0x3be,0x3b7)](0x0);let _0x13e605=0x0;for(let _0x172b5b=0x0;_0x172b5b<_0xa649d;_0x172b5b++)if(!_0x40913a[_0x172b5b])_0x13e605+=_0x5a3370[_0x172b5b];for(let _0x42cfd9=0x0;_0x42cfd9<_0x59ac1a[_0x1ca2bf(-0x30e,-0x2eb)];_0x42cfd9++)_0x428100[_0xccad26[_0x42cfd9]]+=_0x55bda4[_0x42cfd9]*_0x5a3370[_0x59ac1a[_0x42cfd9]];let _0x59e7f6=0x0;for(let _0x573f40=0x0;_0x573f40<_0xa649d;_0x573f40++){const _0x352ac8=(0x1-_0x3c12b9)*(_0x428100[_0x573f40]+_0x13e605*_0x31ba58[_0x573f40])+_0x3c12b9*_0x31ba58[_0x573f40];_0x59e7f6+=Math[_0x1ca2bf(-0x2e7,-0x2ec)](_0x352ac8-_0x5a3370[_0x573f40]),_0x428100[_0x573f40]=_0x352ac8;}_0x5a3370=_0x428100;if(_0x59e7f6<PPR_EPSILON){_0x4aa2e3=!![];break;}}else{const [_0x494d59,_0x9bad8]=_0x3c9428[_0x4fdb83(0x3b4,0x3be)]('\x20');_0x123a60(_0x494d59,_0x9bad8,_0x3bc85f[_0x4fdb83(0x3cc,0x3ea)]*_0x161d2f);}}const _0xbd98d9=rankNorm(_0x5a3370),_0x2c1a4d=new Array(_0xa649d)[_0x4fdb83(0x3be,0x3d5)](0x0);for(const _0x2c1933 of _0x449b9a)_0x2c1a4d[_0x35684e[_0x4fdb83(0x38d,0x384)](_0x2c1933['dst'])]+=_0x2c1933[_0x1ca2bf(-0x306,-0x32a)];const _0x5806a8=rankNorm(_0x2c1a4d),_0x11e710=new Array(_0xa649d)[_0x4fdb83(0x3be,0x3c5)](0x0);for(const _0x39a61c of _0x72b2b5)_0x11e710[_0x35684e[_0x1ca2bf(-0x324,-0x319)](_0x39a61c['src'])]+=_0x39a61c[_0x1ca2bf(-0x306,-0x2f6)];function _0x1ca2bf(_0x490074,_0x5a09a1){return _0x565ba1(_0x490074- -0x799,_0x5a09a1);}const _0x52f6dc=rankNorm(_0x11e710),_0x435ee9=(_0x2143e8,_0x13cedc)=>_0x2143e8??_0x13cedc,_0x2a33de=MEMORYRANK_WEIGHTS,_0x2e5784=new Array(_0xa649d);for(let _0x1e757b=0x0;_0x1e757b<_0xa649d;_0x1e757b++){const _0x3b5a57=_0x502915[_0x1e757b];_0x2e5784[_0x1e757b]=_0x2a33de['w1_struct']*_0xbd98d9[_0x1e757b]+_0x2a33de['w2_refLoca'+'l']*_0x5806a8[_0x1e757b]+_0x2a33de[_0x4fdb83(0x393,0x397)+'al']*_0x52f6dc[_0x1e757b]+_0x2a33de[_0x1ca2bf(-0x31f,-0x2fb)+'ess']*_0x435ee9(_0x3b5a57[_0x4fdb83(0x3c6,0x3d7)],0.5)+_0x2a33de[_0x1ca2bf(-0x2ef,-0x2f2)+_0x1ca2bf(-0x2fb,-0x30c)]*_0x435ee9(_0x3b5a57[_0x4fdb83(0x395,0x378)],0.5)+_0x2a33de[_0x4fdb83(0x39e,0x387)+_0x4fdb83(0x3ba,0x3d9)]*_0x435ee9(_0x3b5a57['reliabilit'+'y'],0x1)-_0x2a33de[_0x1ca2bf(-0x2e9,-0x2f2)]*_0x435ee9(_0x3b5a57['dup_score'],0x0)-_0x2a33de[_0x4fdb83(0x3a9,0x393)]*_0x435ee9(_0x3b5a57['dump_score'],0.5)-_0x2a33de['w9_generic']*_0x435ee9(_0x3b5a57['generic_pe'+_0x4fdb83(0x3a8,0x3c3)],0.5);}function _0x4fdb83(_0x158440,_0x2fc77d){return _0x565ba1(_0x158440- -0xe8,_0x2fc77d);}const _0xd65af9=_0x502915[_0x1ca2bf(-0x302,-0x307)](_0x48b8cc=>{const _0x5e6344=parseTs(_0x48b8cc['created_at'])??_0x631a30;function _0x1cdd73(_0x4ab090,_0x5e4f05){return _0x1ca2bf(_0x5e4f05-0x647,_0x4ab090);}return Math[_0x1cdd73(0x34c,0x34e)]((_0x631a30-_0x5e6344)/0x5265c00,0x0);}),_0x15d285=_0xd65af9[_0x1ca2bf(-0x302,-0x303)](_0x387346=>Math['exp'](-_0x387346/COLDSTART_TAU_DAYS)),_0x2f08fe=_0x502915[_0x1ca2bf(-0x302,-0x305)](_0x46798c=>{function _0x4c1507(_0x2c8e0b,_0x56b8b2){return _0x4fdb83(_0x56b8b2-0x66,_0x2c8e0b);}function _0x1f79f2(_0x328192,_0x51500c){return _0x4fdb83(_0x328192-0x49,_0x51500c);}const _0x4bba48=parseTs(_0x46798c[_0x4c1507(0x406,0x405)+'sed_at'])??parseTs(_0x46798c[_0x4c1507(0x3de,0x3fa)])??_0x631a30;return Math[_0x1f79f2(0x401,0x3f4)]((_0x631a30-_0x4bba48)/0x5265c00,0x0);}),_0x331c5b=rankNorm(_0x2f08fe),_0x1fc8fc=new Array(_0xa649d),_0x249e39=new Array(_0xa649d);for(let _0x2c9033=0x0;_0x2c9033<_0xa649d;_0x2c9033++){const _0x3428f5=_0x502915[_0x2c9033],_0x57990d=_0x3428f5[_0x1ca2bf(-0x2ea,-0x2d6)+'ore']??0.5,_0x2cff02=IMPORTANCE_PRIOR[_0x3428f5['category']]??0.5;_0x1fc8fc[_0x2c9033]=(_0x435ee9(_0x3428f5[_0x1ca2bf(-0x2eb,-0x2fe)],0.5)+_0x5806a8[_0x2c9033]+_0x435ee9(_0x3428f5['reliabilit'+'y'],0x1)*_0x57990d+_0x435ee9(_0x3428f5['activation'],0.5)+_0x2cff02+_0x15d285[_0x2c9033])/0x6;const _0x1e908c=_0x331c5b[_0x2c9033]*(0x1-_0x435ee9(_0x3428f5['activation'],0.5)),_0x1954a3=_0x3428f5[_0x1ca2bf(-0x300,-0x2ee)+'nt']===0x0&&_0xd65af9[_0x2c9033]>OBSERVATION_WINDOW_DAYS?0x1:0x0;_0x249e39[_0x2c9033]=(_0x435ee9(_0x3428f5[_0x1ca2bf(-0x2f2,-0x2fe)],0x0)+_0x435ee9(_0x3428f5[_0x1ca2bf(-0x2e8,-0x2c9)],0.5)+_0x435ee9(_0x3428f5['generic_pe'+'nalty'],0.5)+_0x1e908c+_0x1954a3)/0x5;}const _0x2e2e10=rankNorm(_0x2e5784),_0x399281=rankNorm(_0x502915['map'](_0x4791c8=>_0x435ee9(_0x4791c8[_0x1ca2bf(-0x2eb,-0x2f3)],0.5))),_0x817077={'KEEP':0x0,'MERGE':0x0,'ARCHIVE':0x0,'DELETE_CANDIDATE':0x0},_0x1ac0a0=new Array(_0xa649d);for(let _0x465643=0x0;_0x465643<_0xa649d;_0x465643++){const _0xdec37e=_0x502915[_0x465643],_0x59853c=HARD_PROTECT_CATEGORIES[_0x1ca2bf(-0x301,-0x2fe)](_0xdec37e[_0x4fdb83(0x3aa,0x391)]),_0x52c1d6=_0x2c1a4d[_0x465643]>0x0,_0x7bf570=_0x15d285[_0x465643]>=COLDSTART_THETA,_0x105e38=_0x2e2e10[_0x465643]>=0.5,_0x2022fb=_0x399281[_0x465643]>=0.5,_0x92c245=_0xdec37e['cluster_id']!==null;let _0x16f66f;if(_0x105e38&&_0x2022fb)_0x16f66f=_0x1ca2bf(-0x30d,-0x312);else{if(_0x105e38&&!_0x2022fb)_0x16f66f=_0x92c245?_0x1ca2bf(-0x314,-0x327):_0x4fdb83(0x3a4,0x38b);else{if(!_0x105e38&&_0x2022fb)_0x16f66f=_0x4fdb83(0x3a4,0x38a);else{if(_0x249e39[_0x465643]>=PRUNE_HIGH&&_0x92c245&&!_0x52c1d6&&!_0x7bf570&&!_0x59853c)_0x16f66f=_0x1ca2bf(-0x2ed,-0x30e)+_0x1ca2bf(-0x31a,-0x2ff);else{if(_0x249e39[_0x465643]>=PRUNE_MID)_0x16f66f='ARCHIVE';else _0x16f66f=_0x4fdb83(0x3a4,0x389);}}}}if(_0x59853c&&(_0x16f66f==='DELETE_CAN'+_0x1ca2bf(-0x31a,-0x331)||_0x16f66f==='MERGE'))_0x16f66f='ARCHIVE';if((_0x52c1d6||_0x7bf570)&&_0x16f66f==='DELETE_CAN'+_0x1ca2bf(-0x31a,-0x30c))_0x16f66f=_0x4fdb83(0x3bc,0x3df);if(_0x7bf570&&(_0x16f66f===_0x4fdb83(0x39d,0x380)||_0x16f66f===_0x4fdb83(0x3bc,0x3d4)))_0x16f66f=_0x1ca2bf(-0x30d,-0x305);_0x1ac0a0[_0x465643]=_0x16f66f,_0x817077[_0x16f66f]++;}const _0xe58a9e=new Date(_0x631a30)[_0x4fdb83(0x3b9,0x3ab)+'g']();return _0x3a8d4f[_0x4fdb83(0x3a7,0x3b3)+'s'](_0x502915[_0x4fdb83(0x3af,0x3b2)]((_0x32406d,_0x21c8c5)=>({'id':_0x32406d['id'],'struct_rank':_0xbd98d9[_0x21c8c5],'memoryrank':_0x2e5784[_0x21c8c5],'retention_score':_0x1fc8fc[_0x21c8c5],'prune_score':_0x249e39[_0x21c8c5],'decision':_0x1ac0a0[_0x21c8c5]})),_0xe58a9e),{'nodes':_0xa649d,'fusedEdges':_0x56588c,'iterations':_0x47b134,'converged':_0x4aa2e3,'decisions':_0x817077,'elapsedMs':_0xa5996e?Date[_0x1ca2bf(-0x316,-0x325)]()-_0xa5996e:0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x921be7(_0x37d5e4,_0x2a1604){return _0x69ef(_0x2a1604- -0x36f,_0x37d5e4);}(function(_0x2ea81f,_0x1792bb){function _0x3164af(_0x27bf05,_0x196804){return _0x69ef(_0x196804-0xc9,_0x27bf05);}function _0x4c92ef(_0x2f9da7,_0x363b14){return _0x69ef(_0x2f9da7- -0x211,_0x363b14);}const _0x3ee5fa=_0x2ea81f();while(!![]){try{const _0x879f67=-parseInt(_0x4c92ef(-0x122,-0x119))/0x1+-parseInt(_0x3164af(0x1b2,0x1a7))/0x2*(-parseInt(_0x4c92ef(-0x13d,-0x138))/0x3)+parseInt(_0x4c92ef(-0x131,-0x122))/0x4*(parseInt(_0x3164af(0x1ae,0x1a6))/0x5)+parseInt(_0x3164af(0x197,0x1ad))/0x6+-parseInt(_0x4c92ef(-0x129,-0x132))/0x7*(-parseInt(_0x3164af(0x19f,0x1b3))/0x8)+parseInt(_0x4c92ef(-0x13b,-0x13f))/0x9*(parseInt(_0x3164af(0x190,0x198))/0xa)+parseInt(_0x4c92ef(-0x11b,-0x10e))/0xb*(-parseInt(_0x4c92ef(-0x119,-0x118))/0xc);if(_0x879f67===_0x1792bb)break;else _0x3ee5fa['push'](_0x3ee5fa['shift']());}catch(_0x53711a){_0x3ee5fa['push'](_0x3ee5fa['shift']());}}}(_0x469f,0x9d402));function _0x469f(){const _0x155066=['Dw5PB24','ChvZAa','Bwf4','mZe5mJbwr0PrsLm','BMD0Aa','zMLSDgvY','z2v0rwrNzxm','BM93','mJC0mJnJAK50Bei','D2vPz2H0','odi4yMXtANDS','BNb1DfjVD3m','BwfW','zgvJyxK','zMLUza','C2v0','BgvUz3rO','mtu4nZaYmgvSzND6wa','mtyYr0Xhugjn','CMvWBgfJzq','oe1RzfPetG','B3jL','Bg9N','zhn0','odm3oty2uNjZBNj6','Dg9ju09tDhjPBG','y29UDgvUDf9Szq','zhvWvgf1','otHzBhfdA2m','CgfYC2u','nJa4mZm2wffdA3PQ','AgfZ','CMvKDwnL','ywXZ','C3jJ','otq3mdeWzezJBgzW','z2v0u2LNBMfSsq','BM93txm','v3bUweK','C2LT','CxvHBgL0Ev9ZyW','z2v0','mtfhqLjrt1O','CgfYzw50','mtuZodq0mdHOEgfoufK','DxbKyxrLu2LNBG'];_0x469f=function(){return _0x155066;};return _0x469f();}export const ACTR_DECAY=0.5;function _0xd506f8(_0x326f2f,_0x5d0ef3){return _0x69ef(_0x5d0ef3-0x39a,_0x326f2f);}export const DUP_TAU=0.98;export function parseTs(_0x459c0a){if(!_0x459c0a)return null;const _0x59f603=_0x459c0a['includes']('T')?_0x459c0a:_0x459c0a[_0x5d0b47(0x119,0x119)]('\x20','T')+'Z';function _0x5d0b47(_0x7cbe29,_0x19f881){return _0x69ef(_0x7cbe29-0x3a,_0x19f881);}function _0x3704b5(_0x5cf3f3,_0x19db6c){return _0x69ef(_0x19db6c-0x274,_0x5cf3f3);}const _0x1c4670=Date[_0x5d0b47(0x123,0x131)](_0x59f603);return Number['isNaN'](_0x1c4670)?null:_0x1c4670;}export function rankNorm(_0x565185){const _0x1aceb9=_0x565185[_0x5b08d1(0x230,0x232)];if(_0x1aceb9===0x0)return[];if(_0x1aceb9===0x1)return[0.5];const _0x599a2e=_0x565185['map']((_0x9cbdb7,_0xb182f0)=>({'v':_0x9cbdb7,'i':_0xb182f0}))['sort']((_0x46ed5a,_0x12e882)=>_0x46ed5a['v']-_0x12e882['v']),_0x361174=new Array(_0x1aceb9);let _0xa90b71=0x0;while(_0xa90b71<_0x1aceb9){let _0x32c4fc=_0xa90b71;while(_0x32c4fc+0x1<_0x1aceb9&&_0x599a2e[_0x32c4fc+0x1]['v']===_0x599a2e[_0xa90b71]['v'])_0x32c4fc++;const _0x266031=(_0xa90b71+_0x32c4fc)/0x2,_0x2ceee9=_0x266031/(_0x1aceb9-0x1);for(let _0x4f7780=_0xa90b71;_0x4f7780<=_0x32c4fc;_0x4f7780++)_0x361174[_0x599a2e[_0x4f7780]['i']]=_0x2ceee9;_0xa90b71=_0x32c4fc+0x1;}function _0x5b08d1(_0x3b7703,_0x273602){return _0x69ef(_0x3b7703-0x154,_0x273602);}return _0x361174;}function _0x69ef(_0x5fbfec,_0x5e7b70){_0x5fbfec=_0x5fbfec-0xcb;const _0x469ff6=_0x469f();let _0x69ef34=_0x469ff6[_0x5fbfec];if(_0x69ef['uAsPlu']===undefined){var _0x297e51=function(_0x2cc373){const _0xa77fab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30cc36='',_0x3239a8='';for(let _0x3a705=0x0,_0x382d4a,_0x20600b,_0x551168=0x0;_0x20600b=_0x2cc373['charAt'](_0x551168++);~_0x20600b&&(_0x382d4a=_0x3a705%0x4?_0x382d4a*0x40+_0x20600b:_0x20600b,_0x3a705++%0x4)?_0x30cc36+=String['fromCharCode'](0xff&_0x382d4a>>(-0x2*_0x3a705&0x6)):0x0){_0x20600b=_0xa77fab['indexOf'](_0x20600b);}for(let _0x20783d=0x0,_0x3dbe6e=_0x30cc36['length'];_0x20783d<_0x3dbe6e;_0x20783d++){_0x3239a8+='%'+('00'+_0x30cc36['charCodeAt'](_0x20783d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3239a8);};_0x69ef['DtWuhe']=_0x297e51,_0x69ef['vijPBq']={},_0x69ef['uAsPlu']=!![];}const _0x394c71=_0x469ff6[0x0],_0x4e6085=_0x5fbfec+_0x394c71,_0xf31cfd=_0x69ef['vijPBq'][_0x4e6085];return!_0xf31cfd?(_0x69ef34=_0x69ef['DtWuhe'](_0x69ef34),_0x69ef['vijPBq'][_0x4e6085]=_0x69ef34):_0x69ef34=_0xf31cfd,_0x69ef34;}class UnionFind{[_0xd506f8(0x483,0x491)]=new Map();['find'](_0x219f10){const _0x555f51=this['parent'][_0x2391d4(-0x49,-0x4b)](_0x219f10);if(_0x555f51===undefined||_0x555f51===_0x219f10)return this['parent'][_0x5cb40b(0x189,0x191)](_0x219f10,_0x219f10),_0x219f10;const _0x1bfc7e=this['find'](_0x555f51);function _0x2391d4(_0x3cfb94,_0x45df52){return _0xd506f8(_0x45df52,_0x3cfb94- -0x4d8);}function _0x5cb40b(_0x1726aa,_0x523261){return _0xd506f8(_0x1726aa,_0x523261- -0x2e4);}return this[_0x2391d4(-0x47,-0x5e)][_0x2391d4(-0x63,-0x5b)](_0x219f10,_0x1bfc7e),_0x1bfc7e;}[_0x921be7(-0x293,-0x2a3)](_0x10039c,_0xe370be){function _0xe247c5(_0x4029a5,_0x649dd6){return _0x921be7(_0x4029a5,_0x649dd6-0x3f1);}function _0x1e86af(_0x4903a9,_0x3782f2){return _0x921be7(_0x3782f2,_0x4903a9-0x25b);}const _0x5c9b6c=this['find'](_0x10039c),_0x3e6217=this[_0x1e86af(-0x3a,-0x2f)](_0xe370be);if(_0x5c9b6c!==_0x3e6217)this[_0x1e86af(-0x1d,-0xa)][_0x1e86af(-0x39,-0x22)](_0x5c9b6c,_0x3e6217);}}export function computeSignals(_0x2a06a6,_0x1dc6aa){function _0x4e2bd4(_0xa7369d,_0x39e420){return _0x921be7(_0x39e420,_0xa7369d-0x679);}const _0x5df036=_0x1dc6aa?.['nowMs']??0x0,_0x2a1bb8=_0x1dc6aa?.[_0x3c9cca(0x4bd,0x4cc)]??Date[_0x3c9cca(0x49b,0x4ae)](),_0x5153c3=_0x1dc6aa?.[_0x3c9cca(0x4a2,0x4b4)]??ACTR_DECAY,_0x514edf=_0x1dc6aa?.[_0x3c9cca(0x4bf,0x4c2)]??DUP_TAU,_0x3fcd0d=_0x2a06a6[_0x3c9cca(0x4bd,0x4cb)+_0x3c9cca(0x4a2,0x4b2)](),_0x5abfbb=_0x3fcd0d[_0x4e2bd4(0x3e6,0x3e5)],_0x3f82d5=_0x3fcd0d['map'](_0x280f6c=>_0x280f6c['id']),_0xa9c383=new Set(_0x3f82d5);let _0x5ce5d6=0x0;const _0x1f9abe=_0x3fcd0d[_0x3c9cca(0x4b3,0x4b3)](_0x52a1fb=>{const _0x3b1723=parseTs(_0x52a1fb['created_at'])??_0x2a1bb8,_0x30f9d1=Math[_0x25404b(0x213,0x206)]((_0x2a1bb8-_0x3b1723)/0x5265c00,0x1/0x18);function _0x25404b(_0x360e5a,_0x370a8b){return _0x4e2bd4(_0x370a8b- -0x1d2,_0x360e5a);}const _0x3029b4=Math['max'](_0x52a1fb['access_cou'+'nt'],0x0);if(_0x3029b4>0x0)_0x5ce5d6++;function _0x5798a6(_0x35583a,_0x3a21c5){return _0x4e2bd4(_0x3a21c5- -0x2f9,_0x35583a);}return Math[_0x5798a6(0x104,0xf3)]((_0x3029b4+0x1)/(0x1-_0x5153c3))-_0x5153c3*Math[_0x5798a6(0x109,0xf3)](_0x30f9d1);}),_0x18ba23=rankNorm(_0x1f9abe),_0x68fee0=_0x2a06a6[_0x4e2bd4(0x3dc,0x3e4)](_0x3c9cca(0x4d6,0x4ce)),_0x3b266f=new Map(),_0x2c89fd=new Map(),_0x3588f2=new UnionFind();for(const _0x341794 of _0x68fee0){if(!_0xa9c383[_0x4e2bd4(0x3f5,0x406)](_0x341794[_0x4e2bd4(0x3f8,0x3f4)])||!_0xa9c383[_0x3c9cca(0x4af,0x4c6)](_0x341794[_0x3c9cca(0x4cb,0x4be)]))continue;let _0x572f3a=_0x3b266f[_0x4e2bd4(0x3ff,0x40c)](_0x341794[_0x3c9cca(0x4b7,0x4c9)]);!_0x572f3a&&(_0x572f3a=[],_0x3b266f[_0x4e2bd4(0x3e5,0x3e2)](_0x341794[_0x4e2bd4(0x3f8,0x3ee)],_0x572f3a));_0x572f3a[_0x4e2bd4(0x3d7,0x3e0)](_0x341794[_0x3c9cca(0x4c6,0x4b0)]),_0x2c89fd['set'](_0x341794[_0x4e2bd4(0x3ed,0x3fb)],(_0x2c89fd[_0x4e2bd4(0x3ff,0x3fb)](_0x341794['dst'])??0x0)+0x1);if(_0x341794[_0x3c9cca(0x4bc,0x4b0)]>=_0x514edf)_0x3588f2[_0x3c9cca(0x4ac,0x4a7)](_0x341794['src'],_0x341794[_0x4e2bd4(0x3ed,0x3e6)]);}const _0x2b10c5=_0x3f82d5[_0x4e2bd4(0x3e2,0x3f8)](_0x41e1d8=>{function _0x56d9e7(_0x589b44,_0x3460ad){return _0x4e2bd4(_0x589b44- -0x37b,_0x3460ad);}const _0x4625f9=_0x3b266f[_0x56d9e7(0x84,0x77)](_0x41e1d8);if(!_0x4625f9||_0x4625f9[_0x5d94ca(-0x278,-0x264)]===0x0)return 0x1;function _0x5d94ca(_0x1ab0bb,_0x1e1672){return _0x4e2bd4(_0x1e1672- -0x64a,_0x1ab0bb);}const _0x55b562=_0x4625f9[_0x56d9e7(0x7b,0x66)]((_0x11e267,_0x57fa61)=>_0x11e267+_0x57fa61,0x0)/_0x4625f9['length'];return 0x1-_0x55b562;}),_0x475f9d=_0x3f82d5[_0x4e2bd4(0x3e2,0x3e1)](_0x48bece=>_0x2c89fd[_0x3c9cca(0x4de,0x4d0)](_0x48bece)??0x0),_0x372ffd=rankNorm(_0x475f9d),_0x488313=new Map(),_0x3b002d=new Map();for(const _0x274101 of _0x3f82d5){const _0x1afa6f=_0x3588f2[_0x4e2bd4(0x3e4,0x3d1)](_0x274101);_0x488313['set'](_0x274101,_0x1afa6f),_0x3b002d[_0x4e2bd4(0x3e5,0x3f0)](_0x1afa6f,(_0x3b002d[_0x4e2bd4(0x3ff,0x40d)](_0x1afa6f)??0x0)+0x1);}const _0x5613ca=_0x3f82d5['map'](_0x5d71d8=>(_0x3b002d[_0x3c9cca(0x4bd,0x4d0)](_0x488313[_0x4e2bd4(0x3ff,0x3fb)](_0x5d71d8))??0x1)-0x1),_0x2442cf=rankNorm(_0x5613ca),_0x48e398=_0x3f82d5['map'](_0x2a3361=>{function _0x2166c8(_0x104835,_0x4e3ea2){return _0x3c9cca(_0x104835,_0x4e3ea2- -0x668);}function _0x4bd011(_0x2937ac,_0x201aaa){return _0x3c9cca(_0x2937ac,_0x201aaa- -0x42f);}if('DJQgq'!==_0x4bd011(0x96,0x9e)){const _0x2efa49=_0x488313[_0x2166c8(-0x1ab,-0x198)](_0x2a3361);return(_0x3b002d[_0x2166c8(-0x1a6,-0x198)](_0x2efa49)??0x1)>=0x2?_0x2efa49:null;}else _0x323c44=[],_0x15d4af[_0x4bd011(0x98,0x87)](_0x26a5d3[_0x2166c8(-0x195,-0x19f)],_0x521639);}),_0x3479c3=rankNorm(_0x3fcd0d[_0x3c9cca(0x49f,0x4b3)](_0x3344a5=>_0x3344a5[_0x3c9cca(0x4c4,0x4c1)+_0x3c9cca(0x4b3,0x4ab)])),_0x4c2a2d=_0x3f82d5[_0x4e2bd4(0x3e2,0x3f3)]((_0x5602df,_0x5e4bf9)=>{function _0x5e6040(_0x4b7efa,_0x1c423f){return _0x3c9cca(_0x1c423f,_0x4b7efa- -0x3d8);}const _0x214908=_0x3479c3[_0x5e4bf9],_0x93221=_0x3fcd0d[_0x5e4bf9][_0x5e6040(0xf7,0xff)+_0x5e6040(0xe4,0xe2)]??0.5;function _0x12aba6(_0x506914,_0x2f670c){return _0x3c9cca(_0x506914,_0x2f670c- -0x2b3);}const _0x54c542=(_0x93221+_0x2b10c5[_0x5e4bf9])/0x2;return 0.5*(0x1-_0x214908)+0.5*(0x1-_0x54c542);}),_0x32388a=rankNorm(_0x4c2a2d),_0xcf8927=[..._0x3b002d['values']()][_0x3c9cca(0x4bc,0x4ac)](_0x489377=>_0x489377>=0x2)[_0x4e2bd4(0x3e6,0x3f1)],_0x263cdf=new Date(_0x2a1bb8)[_0x3c9cca(0x4b4,0x4c0)+'g'](),_0x2f9c54=_0x3f82d5[_0x4e2bd4(0x3e2,0x3f8)]((_0x4b6c13,_0x1715af)=>({'id':_0x4b6c13,'activation':_0x18ba23[_0x1715af],'uniqueness':_0x2b10c5[_0x1715af],'generic_penalty':_0x372ffd[_0x1715af],'dup_score':_0x2442cf[_0x1715af],'dump_score':_0x32388a[_0x1715af],'reliability':0x1,'cluster_id':_0x48e398[_0x1715af]}));function _0x3c9cca(_0x428b61,_0xf8a241){return _0x921be7(_0x428b61,_0xf8a241-0x74a);}return _0x2a06a6[_0x3c9cca(0x4a4,0x4a6)+_0x3c9cca(0x4d5,0x4c8)](_0x2f9c54,_0x263cdf),{'nodes':_0x5abfbb,'dupClusters':_0xcf8927,'activationValid':_0x5ce5d6,'elapsedMs':_0x5df036?Date[_0x4e2bd4(0x3dd,0x3ce)]()-_0x5df036:0x0};}
|
|
1
|
+
function _0x5f44f3(_0x4697e6,_0x466759){return _0x4bc6(_0x466759-0x110,_0x4697e6);}(function(_0x8d3cf0,_0x2e9f28){function _0x5382ae(_0xd4d976,_0x8d3d7){return _0x4bc6(_0x8d3d7-0x1d5,_0xd4d976);}const _0x1da96d=_0x8d3cf0();function _0x53a660(_0x4ec365,_0x33fc71){return _0x4bc6(_0x33fc71- -0x2fe,_0x4ec365);}while(!![]){try{const _0x585f57=parseInt(_0x5382ae(0x2d6,0x2dd))/0x1*(-parseInt(_0x53a660(-0x1f4,-0x1f2))/0x2)+parseInt(_0x5382ae(0x2ba,0x2d1))/0x3*(parseInt(_0x5382ae(0x2e3,0x2dc))/0x4)+-parseInt(_0x53a660(-0x201,-0x201))/0x5*(-parseInt(_0x5382ae(0x2da,0x2cf))/0x6)+-parseInt(_0x5382ae(0x2c5,0x2ce))/0x7+parseInt(_0x5382ae(0x2d5,0x2d9))/0x8*(parseInt(_0x53a660(-0x1fc,-0x207))/0x9)+-parseInt(_0x5382ae(0x2da,0x2e7))/0xa*(parseInt(_0x5382ae(0x2d1,0x2c5))/0xb)+parseInt(_0x53a660(-0x1f8,-0x208))/0xc*(parseInt(_0x5382ae(0x2d0,0x2ba))/0xd);if(_0x585f57===_0x2e9f28)break;else _0x1da96d['push'](_0x1da96d['shift']());}catch(_0x45dbb0){_0x1da96d['push'](_0x1da96d['shift']());}}}(_0x598d,0xde831));export const ACTR_DECAY=0.5;function _0x598d(){const _0x4697e0=['ANHrC0e','q1PfDM8','zMLUza','mJq1mtyWofDKu3bdBq','z2v0','CMvKDwnL','mtm2ntqXnNb6reXRvW','ndy3zfnbrKvJ','z2v0u2LNBMfSsq','B3jL','D2vPz2H0','nJm0nM5zvKHwtW','zgvJyxK','swj5B1a','C2v0','Dw5PB24','z2v0rwrNzxm','mtG5otK3mgzbyNzRqq','DMfSDwvZ','CgfYzw50','Dg9ju09tDhjPBG','zhn0','Axnoyu4','mJz1uhfNy0y','Bwf4','BgvUz3rO','BxvyB1y','Aw5JBhvKzxm','Bg9N','CxvHBgL0Ev9ZyW','BM93','CgfYC2u','C29YDa','AgfZ','mtf5BM1OCxm','C2LT','ChvZAa','zhvWvgf1','ywXZ','C3jJ','mZa3nJe2nevet050qW','ndvvrhfwrhe','CMvWBgfJzq','mta2ntGZmdvHC1vWAKe','mtaZmtCWntrgqNDgrLm','ywnJzxnZx2nVDq','m3D0DwfVtq','nxDyD3zYCG','zMLSDgvY','BwfW','y29UDgvUDf9Szq'];_0x598d=function(){return _0x4697e0;};return _0x598d();}export const DUP_TAU=0.98;export function parseTs(_0x2bfc78){if(!_0x2bfc78)return null;const _0x4f50f0=_0x2bfc78[_0x4666e4(-0x230,-0x249)]('T')?_0x2bfc78:_0x2bfc78[_0x4666e4(-0x24c,-0x23a)]('\x20','T')+'Z';function _0x4666e4(_0xf95afb,_0x345b0e){return _0x4bc6(_0x345b0e- -0x332,_0xf95afb);}function _0x164a17(_0x403a4d,_0x27d501){return _0x4bc6(_0x403a4d- -0x75,_0x27d501);}const _0x1b59f0=Date['parse'](_0x4f50f0);return Number[_0x164a17(0x6f,0x63)](_0x1b59f0)?null:_0x1b59f0;}export function rankNorm(_0x42bb42){const _0x3b8cf2=_0x42bb42[_0x4e8cf9(0x42c,0x430)];function _0x58403a(_0x2e23a5,_0x52247a){return _0x4bc6(_0x52247a- -0x16a,_0x2e23a5);}if(_0x3b8cf2===0x0)return[];if(_0x3b8cf2===0x1)return[0.5];const _0x117e00=_0x42bb42['map']((_0x350c73,_0xf3d116)=>({'v':_0x350c73,'i':_0xf3d116}))[_0x4e8cf9(0x433,0x437)]((_0x487486,_0x59a5ee)=>_0x487486['v']-_0x59a5ee['v']),_0x2e4e9a=new Array(_0x3b8cf2);let _0x44a3ca=0x0;function _0x4e8cf9(_0x402b82,_0x34ca00){return _0x4bc6(_0x402b82-0x345,_0x34ca00);}while(_0x44a3ca<_0x3b8cf2){let _0x405d62=_0x44a3ca;while(_0x405d62+0x1<_0x3b8cf2&&_0x117e00[_0x405d62+0x1]['v']===_0x117e00[_0x44a3ca]['v'])_0x405d62++;const _0xdaf034=(_0x44a3ca+_0x405d62)/0x2,_0x1841e8=_0xdaf034/(_0x3b8cf2-0x1);for(let _0x4de00a=_0x44a3ca;_0x4de00a<=_0x405d62;_0x4de00a++)_0x2e4e9a[_0x117e00[_0x4de00a]['i']]=_0x1841e8;_0x44a3ca=_0x405d62+0x1;}return _0x2e4e9a;}function _0x4bc6(_0x27ce79,_0x241bb0){_0x27ce79=_0x27ce79-0xe2;const _0x598dcb=_0x598d();let _0x4bc692=_0x598dcb[_0x27ce79];if(_0x4bc6['NNRmuQ']===undefined){var _0x58ad74=function(_0x506317){const _0x2c01ea='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x265a58='',_0xf4c871='';for(let _0xf8440d=0x0,_0x553ee1,_0x8e6e19,_0x84c573=0x0;_0x8e6e19=_0x506317['charAt'](_0x84c573++);~_0x8e6e19&&(_0x553ee1=_0xf8440d%0x4?_0x553ee1*0x40+_0x8e6e19:_0x8e6e19,_0xf8440d++%0x4)?_0x265a58+=String['fromCharCode'](0xff&_0x553ee1>>(-0x2*_0xf8440d&0x6)):0x0){_0x8e6e19=_0x2c01ea['indexOf'](_0x8e6e19);}for(let _0x527194=0x0,_0x1d2cdb=_0x265a58['length'];_0x527194<_0x1d2cdb;_0x527194++){_0xf4c871+='%'+('00'+_0x265a58['charCodeAt'](_0x527194)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf4c871);};_0x4bc6['VkEZVn']=_0x58ad74,_0x4bc6['AjtICT']={},_0x4bc6['NNRmuQ']=!![];}const _0x252f33=_0x598dcb[0x0],_0x53ec11=_0x27ce79+_0x252f33,_0x218702=_0x4bc6['AjtICT'][_0x53ec11];return!_0x218702?(_0x4bc692=_0x4bc6['VkEZVn'](_0x4bc692),_0x4bc6['AjtICT'][_0x53ec11]=_0x4bc692):_0x4bc692=_0x218702,_0x4bc692;}class UnionFind{['parent']=new Map();[_0x5f44f3(0x201,0x213)](_0x37b564){const _0x4b2a6e=this[_0x320e8b(-0xc,0x1)][_0x55c537(0x21b,0x224)](_0x37b564);if(_0x4b2a6e===undefined||_0x4b2a6e===_0x37b564){if(_0x55c537(0x218,0x220)===_0x320e8b(-0x1e,-0xa))return this['parent'][_0x320e8b(-0x11,-0x8)](_0x37b564,_0x37b564),_0x37b564;else{const _0x5a461a=_0x4b3793['get'](_0x437590);return(_0x3bc6a9[_0x55c537(0x21b,0x229)](_0x5a461a)??0x1)>=0x2?_0x5a461a:null;}}const _0x1f4677=this[_0x320e8b(-0x1d,-0x2b)](_0x4b2a6e);this[_0x320e8b(-0xc,0x5)][_0x55c537(0x225,0x233)](_0x37b564,_0x1f4677);function _0x55c537(_0x17ac8f,_0x2ec927){return _0x5f44f3(_0x2ec927,_0x17ac8f-0x6);}function _0x320e8b(_0x4b004b,_0x19d8aa){return _0x5f44f3(_0x19d8aa,_0x4b004b- -0x230);}return _0x1f4677;}[_0x2bb7d7(-0x29c,-0x2b0)](_0x62ff5,_0x26c374){function _0x3ae235(_0x239505,_0x231734){return _0x5f44f3(_0x231734,_0x239505- -0x40e);}const _0x114b2c=this[_0x3ae235(-0x1fb,-0x1f2)](_0x62ff5),_0xb5f7e6=this['find'](_0x26c374);if(_0x114b2c!==_0xb5f7e6)this['parent']['set'](_0x114b2c,_0xb5f7e6);}}function _0x2bb7d7(_0x302af1,_0x8229c3){return _0x4bc6(_0x302af1- -0x3ac,_0x8229c3);}export function computeSignals(_0x5612e8,_0x2e23c4){const _0xd58073=_0x2e23c4?.['nowMs']??0x0;function _0x1d7590(_0x1c9645,_0x3701b){return _0x2bb7d7(_0x3701b-0x44f,_0x1c9645);}const _0x31f504=_0x2e23c4?.['nowMs']??Date[_0x1d7590(0x184,0x18f)](),_0x9f890=_0x2e23c4?.[_0xd59eeb(-0x2bc,-0x2b2)]??ACTR_DECAY,_0x40bbf6=_0x2e23c4?.[_0x1d7590(0x196,0x196)]??DUP_TAU,_0x59a603=_0x5612e8[_0xd59eeb(-0x2c0,-0x2cf)+'nputRows'](),_0x265155=_0x59a603[_0x1d7590(0x179,0x18a)],_0x5662dd=_0x59a603[_0x1d7590(0x195,0x1a2)](_0x456758=>_0x456758['id']);function _0xd59eeb(_0x5286bf,_0x4ea6a8){return _0x2bb7d7(_0x5286bf- -0x1d,_0x4ea6a8);}const _0xe8b9e9=new Set(_0x5662dd);let _0x35cf8f=0x0;const _0x4c0cb8=_0x59a603[_0xd59eeb(-0x2ca,-0x2b2)](_0x2ca814=>{const _0x261fde=parseTs(_0x2ca814['created_at'])??_0x31f504;function _0x4d1796(_0x1f9a76,_0x602d18){return _0xd59eeb(_0x602d18-0x1cc,_0x1f9a76);}const _0x2e7b84=Math[_0x4d1796(-0x123,-0x117)]((_0x31f504-_0x261fde)/0x5265c00,0x1/0x18),_0x594cd5=Math['max'](_0x2ca814[_0x515068(-0xb7,-0xc7)+'nt'],0x0);if(_0x594cd5>0x0)_0x35cf8f++;function _0x515068(_0x282e2c,_0x5b8060){return _0xd59eeb(_0x282e2c-0x217,_0x5b8060);}return Math['log']((_0x594cd5+0x1)/(0x1-_0x9f890))-_0x9f890*Math[_0x4d1796(-0x108,-0x113)](_0x2e7b84);}),_0x3aefd8=rankNorm(_0x4c0cb8),_0x4ded11=_0x5612e8[_0x1d7590(0x1ce,0x1b4)](_0x1d7590(0x188,0x194)),_0x1ada66=new Map(),_0x48c558=new Map(),_0x1185f7=new UnionFind();for(const _0x2fb8de of _0x4ded11){if(!_0xe8b9e9['has'](_0x2fb8de[_0xd59eeb(-0x2d4,-0x2d2)])||!_0xe8b9e9[_0x1d7590(0x19a,0x192)](_0x2fb8de[_0xd59eeb(-0x2e6,-0x2e9)]))continue;let _0x474650=_0x1ada66['get'](_0x2fb8de['src']);!_0x474650&&(_0x474650=[],_0x1ada66[_0xd59eeb(-0x2ba,-0x2cf)](_0x2fb8de[_0xd59eeb(-0x2d4,-0x2df)],_0x474650));_0x474650[_0xd59eeb(-0x2d7,-0x2de)](_0x2fb8de[_0x1d7590(0x199,0x1ae)]),_0x48c558[_0x1d7590(0x1ca,0x1b2)](_0x2fb8de[_0xd59eeb(-0x2e6,-0x2d9)],(_0x48c558[_0x1d7590(0x18f,0x1a8)](_0x2fb8de[_0xd59eeb(-0x2e6,-0x2e8)])??0x0)+0x1);if(_0x2fb8de[_0x1d7590(0x199,0x1ae)]>=_0x40bbf6)_0x1185f7[_0x1d7590(0x1a6,0x1b3)](_0x2fb8de[_0xd59eeb(-0x2d4,-0x2e0)],_0x2fb8de[_0x1d7590(0x174,0x186)]);}const _0x58c1ee=_0x5662dd[_0xd59eeb(-0x2ca,-0x2b9)](_0x42f8b3=>{function _0x49995f(_0x3d10ab,_0x2ac2ef){return _0xd59eeb(_0x3d10ab-0x208,_0x2ac2ef);}function _0x32575a(_0x526b96,_0x24c82d){return _0xd59eeb(_0x24c82d-0x406,_0x526b96);}if(_0x49995f(-0xd9,-0xd7)!==_0x32575a(0x144,0x13e)){const _0x1fb380=_0x1ada66[_0x49995f(-0xbc,-0xb7)](_0x42f8b3);if(!_0x1fb380||_0x1fb380['length']===0x0)return 0x1;const _0x1d32d3=_0x1fb380[_0x49995f(-0xbb,-0xcb)]((_0x1233ea,_0x3c56ea)=>_0x1233ea+_0x3c56ea,0x0)/_0x1fb380[_0x32575a(0x131,0x124)];return 0x1-_0x1d32d3;}else{const _0x47aefd=_0x1a8930[_0x49995f(-0xbc,-0xcc)](_0x1a2145);if(!_0x47aefd||_0x47aefd[_0x32575a(0x11a,0x124)]===0x0)return 0x1;const _0x5ebf86=_0x47aefd['reduce']((_0x3dccf9,_0x41802f)=>_0x3dccf9+_0x41802f,0x0)/_0x47aefd[_0x49995f(-0xda,-0xd9)];return 0x1-_0x5ebf86;}}),_0x12212c=_0x5662dd['map'](_0x186603=>_0x48c558[_0xd59eeb(-0x2c4,-0x2c2)](_0x186603)??0x0),_0x4ff51e=rankNorm(_0x12212c),_0xf16254=new Map(),_0x51d55f=new Map();for(const _0x32571e of _0x5662dd){if(_0x1d7590(0x1b4,0x1b1)===_0x1d7590(0x1c0,0x1b1)){const _0x526c01=_0x1185f7[_0xd59eeb(-0x2c6,-0x2db)](_0x32571e);_0xf16254['set'](_0x32571e,_0x526c01),_0x51d55f[_0xd59eeb(-0x2ba,-0x2d1)](_0x526c01,(_0x51d55f['get'](_0x526c01)??0x0)+0x1);}else{if(!_0x527194)return null;const _0x5399a0=_0x1d2cdb[_0xd59eeb(-0x2e0,-0x2e8)]('T')?_0x92da8f:_0x514d0c[_0x1d7590(0x1a3,0x19b)]('\x20','T')+'Z',_0x190f3a=_0x23713b[_0x1d7590(0x196,0x190)](_0x5399a0);return _0x56782b['isNaN'](_0x190f3a)?null:_0x190f3a;}}const _0x42afb0=_0x5662dd[_0xd59eeb(-0x2ca,-0x2d9)](_0x4775ec=>(_0x51d55f['get'](_0xf16254[_0x1d7590(0x19b,0x1a8)](_0x4775ec))??0x1)-0x1),_0x45597a=rankNorm(_0x42afb0),_0x4dea22=_0x5662dd['map'](_0x29a913=>{const _0x533277=_0xf16254[_0x3c1c31(-0x164,-0x177)](_0x29a913);function _0x3c1c31(_0x5d3db0,_0x12c7b4){return _0xd59eeb(_0x12c7b4-0x14d,_0x5d3db0);}return(_0x51d55f['get'](_0x533277)??0x1)>=0x2?_0x533277:null;}),_0x4059a6=rankNorm(_0x59a603['map'](_0xdcbfc3=>_0xdcbfc3[_0xd59eeb(-0x2c9,-0x2b0)+'ngth'])),_0x275e71=_0x5662dd[_0xd59eeb(-0x2ca,-0x2d6)]((_0x1593bc,_0x1b7a1f)=>{function _0x3e97c3(_0x50d3c3,_0x197ada){return _0xd59eeb(_0x197ada-0x749,_0x50d3c3);}const _0x258949=_0x4059a6[_0x1b7a1f];function _0x2c58f0(_0x35296f,_0x640141){return _0xd59eeb(_0x640141-0x544,_0x35296f);}const _0x2fa9ba=_0x59a603[_0x1b7a1f][_0x3e97c3(0x472,0x46b)+_0x2c58f0(0x288,0x285)]??0.5,_0x5aa4bb=(_0x2fa9ba+_0x58c1ee[_0x1b7a1f])/0x2;return 0.5*(0x1-_0x258949)+0.5*(0x1-_0x5aa4bb);}),_0x5e745d=rankNorm(_0x275e71),_0x203bf4=[..._0x51d55f[_0x1d7590(0x1b4,0x1b6)]()][_0xd59eeb(-0x2cb,-0x2cc)](_0x49a4e8=>_0x49a4e8>=0x2)['length'],_0x4ae73e=new Date(_0x31f504)[_0x1d7590(0x186,0x185)+'g'](),_0xcf5325=_0x5662dd['map']((_0x28472b,_0x18b802)=>({'id':_0x28472b,'activation':_0x3aefd8[_0x18b802],'uniqueness':_0x58c1ee[_0x18b802],'generic_penalty':_0x4ff51e[_0x18b802],'dup_score':_0x45597a[_0x18b802],'dump_score':_0x5e745d[_0x18b802],'reliability':0x1,'cluster_id':_0x4dea22[_0x18b802]}));return _0x5612e8['updateSign'+_0x1d7590(0x194,0x197)](_0xcf5325,_0x4ae73e),{'nodes':_0x265155,'dupClusters':_0x203bf4,'activationValid':_0x35cf8f,'elapsedMs':_0xd58073?Date[_0x1d7590(0x19c,0x18f)]()-_0xd58073:0x0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x390ff8,_0x82f16d){function _0x1c6f88(_0x2e7373,_0x3e13a2){return _0x815d(_0x3e13a2- -0xba,_0x2e7373);}function _0x18c1a7(_0x540a26,_0xe1d54){return _0x815d(_0xe1d54-0x3d,_0x540a26);}const _0x3120ce=_0x390ff8();while(!![]){try{const _0x42ab5d=parseInt(_0x1c6f88(-0xe,-0x9))/0x1*(-parseInt(_0x18c1a7(0xf1,0xf0))/0x2)+parseInt(_0x18c1a7(0xff,0xf9))/0x3+parseInt(_0x18c1a7(0xf3,0xf2))/0x4*(-parseInt(_0x1c6f88(0xa,0x4))/0x5)+parseInt(_0x18c1a7(0xfe,0xf6))/0x6+-parseInt(_0x18c1a7(0xf3,0xf1))/0x7*(parseInt(_0x18c1a7(0xfa,0xff))/0x8)+-parseInt(_0x1c6f88(0xd,0x7))/0x9*(-parseInt(_0x1c6f88(0x9,-0x2))/0xa)+parseInt(_0x18c1a7(0xea,0xf3))/0xb;if(_0x42ab5d===_0x82f16d)break;else _0x3120ce['push'](_0x3120ce['shift']());}catch(_0x5f5b25){_0x3120ce['push'](_0x3120ce['shift']());}}}(_0xfe28,0xf10b4));import{existsSync,readFileSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function _0x815d(_0x2e45ad,_0x3a4204){_0x2e45ad=_0x2e45ad-0xb0;const _0xfe2895=_0xfe28();let _0x815db=_0xfe2895[_0x2e45ad];if(_0x815d['jxlMKx']===undefined){var _0x22c8a8=function(_0x164761){const _0x1e33ef='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b6abf='',_0x396ad1='';for(let _0x50a5e2=0x0,_0x39cbb0,_0x1a34ca,_0x42d7fc=0x0;_0x1a34ca=_0x164761['charAt'](_0x42d7fc++);~_0x1a34ca&&(_0x39cbb0=_0x50a5e2%0x4?_0x39cbb0*0x40+_0x1a34ca:_0x1a34ca,_0x50a5e2++%0x4)?_0x5b6abf+=String['fromCharCode'](0xff&_0x39cbb0>>(-0x2*_0x50a5e2&0x6)):0x0){_0x1a34ca=_0x1e33ef['indexOf'](_0x1a34ca);}for(let _0x5bf0bd=0x0,_0x2aad0d=_0x5b6abf['length'];_0x5bf0bd<_0x2aad0d;_0x5bf0bd++){_0x396ad1+='%'+('00'+_0x5b6abf['charCodeAt'](_0x5bf0bd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x396ad1);};_0x815d['WkOXKw']=_0x22c8a8,_0x815d['hSxPBC']={},_0x815d['jxlMKx']=!![];}const _0x291f53=_0xfe2895[0x0],_0x530931=_0x2e45ad+_0x291f53,_0x3e8ac0=_0x815d['hSxPBC'][_0x530931];return!_0x3e8ac0?(_0x815db=_0x815d['WkOXKw'](_0x815db),_0x815d['hSxPBC'][_0x530931]=_0x815db):_0x815db=_0x3e8ac0,_0x815db;}function _0x249918(_0x368c16,_0x5d3a24){return _0x815d(_0x368c16- -0xba,_0x5d3a24);}function _0xfe28(){const _0x30ae01=['mJu1mdq4mfDnzxvTtW','DxrMltG','mZC0mJy1DwndEwHw','DhPTBxy','EuP3zei','mJi1yxPREgPb','mtu5mJbbtKTcyw8','lMnVBNrLEhrYyq','DgvZDa','CMvWBgfJzq','mtiZn0v2u3Hiua','DhjPBq','nZaWBvHosKvZ','ntC0n2j1DKPZCW','odreDLDqy08','mJa3mtmWntvYAe9qrwe','BM93','nZq3odb0EMj2y2S','mtaYmZuXmJrNvfnhC04','Dg9ju09tDhjPBG','BMSTC2LUy2u'];_0xfe28=function(){return _0x30ae01;};return _0xfe28();}import{resolvePath}from'../db/database.js';export function sinceFilePath(_0x176a66){function _0x197bab(_0xfa0fad,_0x38aa11){return _0x815d(_0x38aa11- -0x3ab,_0xfa0fad);}function _0x2dd736(_0xd35f1e,_0x1ad8e7){return _0x815d(_0x1ad8e7- -0x18e,_0xd35f1e);}return join(dirname(resolve(resolvePath(_0x176a66))),_0x197bab(-0x2ef,-0x2e8)+_0x197bab(-0x2e7,-0x2f0));}export function nowStamp(_0x5705ac=Date[_0x249918(-0x3,-0xc)]()){function _0x4d4b0a(_0x9fc5a,_0x1797c0){return _0x249918(_0x1797c0- -0x20f,_0x9fc5a);}function _0x28fd4d(_0x17aa4f,_0x21403b){return _0x249918(_0x21403b-0x21d,_0x17aa4f);}return new Date(_0x5705ac)[_0x28fd4d(0x225,0x21d)+'g']()[_0x28fd4d(0x21d,0x213)]('T','\x20')['slice'](0x0,0x13);}export function readSince(_0x2139ea){const _0x2ec045=sinceFilePath(_0x2139ea);function _0x17892a(_0x4a42a9,_0x27f971){return _0x249918(_0x27f971-0x79,_0x4a42a9);}if(!existsSync(_0x2ec045))return undefined;function _0x189419(_0x4fe5ab,_0x1ef1c7){return _0x249918(_0x1ef1c7-0xb7,_0x4fe5ab);}try{const _0x57a29c=readFileSync(_0x2ec045,_0x17892a(0x76,0x7c))[_0x17892a(0x7a,0x71)]();return/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/[_0x17892a(0x7b,0x83)](_0x57a29c)?_0x57a29c:undefined;}catch{return undefined;}}export function writeSince(_0x4ed5c6,_0xfd755b){function _0x1fb5fa(_0x5aaaaf,_0x4a83ca){return _0x249918(_0x5aaaaf- -0x16,_0x4a83ca);}function _0x540099(_0x5cd208,_0x3dd9de){return _0x249918(_0x3dd9de- -0x2eb,_0x5cd208);}try{if(_0x540099(-0x2ec,-0x2e5)!==_0x540099(-0x2de,-0x2e5)){const _0x23e718=_0x10b951(_0x4a1b67);if(!_0x256f27(_0x23e718))return _0x20dabf;try{const _0x24cf71=_0x18a56c(_0x23e718,_0x1fb5fa(-0x13,-0xa))[_0x540099(-0x2fd,-0x2f3)]();return/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/[_0x1fb5fa(-0xc,-0x4)](_0x24cf71)?_0x24cf71:_0x44f808;}catch{return _0x5a7a0a;}}else return writeFileSync(sinceFilePath(_0x4ed5c6),_0xfd755b+'\x0a',_0x1fb5fa(-0x13,-0x14)),!![];}catch{return![];}}export function clearSince(_0x575324){function _0x1fb816(_0x4f36b6,_0x4eae09){return _0x249918(_0x4f36b6-0x3c,_0x4eae09);}try{if('tzmmv'===_0x1fb816(0x41,0x3f)){const _0x17a667=sinceFilePath(_0x575324);if(existsSync(_0x17a667))unlinkSync(_0x17a667);}else try{const _0x22d15a=_0x372424(_0x38a883);if(_0x2e4912(_0x22d15a))_0x1c95de(_0x22d15a);}catch{}}catch{}}
|
package/dist/db/database.d.ts
CHANGED
|
@@ -141,6 +141,23 @@ export declare class MemoryDatabase {
|
|
|
141
141
|
private recoverCorruptDatabase;
|
|
142
142
|
private stmt;
|
|
143
143
|
initialize(): void;
|
|
144
|
+
/**
|
|
145
|
+
* #303 (ADR-065 D-303) 판정 SSOT — 원격 id 가 가리키는 로컬 chunk 부모.
|
|
146
|
+
* 그 원격 id 로 매핑되는 **살아 있는 chunk 부모**(parent_id IS NULL · chunk_total 있음)가
|
|
147
|
+
* 정확히 1개일 때만 그 로컬 id. 0개(진짜 고아)·2개 이상(모호)·대상이 child 나 독립 메모리면 null.
|
|
148
|
+
* pull 생성 분기와 remapRemoteParentIds 가 같은 술어를 쓴다(경로마다 규칙이 갈리지 않게).
|
|
149
|
+
*/
|
|
150
|
+
private static readonly LOCAL_CHUNK_PARENT_BY_REMOTE;
|
|
151
|
+
findLocalChunkParentIdByRemoteId(remoteId: string): string | null;
|
|
152
|
+
/**
|
|
153
|
+
* #303 (ADR-065 D-303): child 의 부모 칸이 로컬 행을 가리키지 않고, 그 값이 위 판정으로
|
|
154
|
+
* 로컬 chunk 부모 1개에 매핑되면 그 로컬 id 로 바꾼다. 행을 지우지 않는다.
|
|
155
|
+
* 호출 시점: 매 DB open(initialize) · pull 종료(뒷 페이지에서 도착한 부모).
|
|
156
|
+
* 정정이 일어나면 stderr 에 1줄 남긴다 — pull 종료 정정 수가 0 보다 크면 pull 생성 분기가
|
|
157
|
+
* 놓친 수다(부모가 뒷 페이지에 온 경우가 아니면 0 이어야 한다).
|
|
158
|
+
* @returns 정정한 child 수
|
|
159
|
+
*/
|
|
160
|
+
remapRemoteParentIds(via?: 'open' | 'pull' | 'manual'): number;
|
|
144
161
|
createMemory(input: MemoryCreateInput): Memory;
|
|
145
162
|
getMemory(id: string): Memory | null;
|
|
146
163
|
/**
|