@wujie-shell/core 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +7 -5
  2. package/dist/bin/wujie-shell.mjs +1 -1
  3. package/dist/src/agents/bundled-agent-skills.mjs +1 -1
  4. package/dist/src/agents/bundled-agents.mjs +1 -1
  5. package/dist/src/agents/runtime-config.mjs +1 -1
  6. package/dist/src/chat/media-archive.mjs +1 -1
  7. package/dist/src/chat/queue.mjs +1 -1
  8. package/dist/src/common/cron-session-key.mjs +1 -0
  9. package/dist/src/common/diagnostics.mjs +1 -1
  10. package/dist/src/common/logging.mjs +1 -1
  11. package/dist/src/common/runtime-logger.mjs +1 -1
  12. package/dist/src/common/sqlite-paths.mjs +1 -0
  13. package/dist/src/common/user-events.mjs +1 -1
  14. package/dist/src/common/utils.mjs +1 -1
  15. package/dist/src/config/controller.mjs +1 -1
  16. package/dist/src/connectors/config-utils.mjs +1 -1
  17. package/dist/src/connectors/constants.mjs +1 -1
  18. package/dist/src/connectors/controller.mjs +1 -1
  19. package/dist/src/connectors/kdocs-cli.mjs +1 -1
  20. package/dist/src/connectors/lark-cli.mjs +1 -1
  21. package/dist/src/electron/main.mjs +1 -1
  22. package/dist/src/electron/preload.mjs +1 -1
  23. package/dist/src/electron/protocol-url-state.mjs +1 -0
  24. package/dist/src/events/domain-event-journal.mjs +1 -0
  25. package/dist/src/files/generated-files-store.mjs +1 -1
  26. package/dist/src/files/handlers.mjs +1 -1
  27. package/dist/src/gateway/chat-delta.mjs +1 -1
  28. package/dist/src/gateway/controller.mjs +1 -1
  29. package/dist/src/gateway/request-id-title-events.mjs +1 -0
  30. package/dist/src/gateway/ws-client.mjs +1 -1
  31. package/dist/src/index.mjs +1 -1
  32. package/dist/src/log-reporting/handlers.mjs +1 -1
  33. package/dist/src/log-reporting/report-logs.mjs +1 -1
  34. package/dist/src/models/handlers.mjs +1 -1
  35. package/dist/src/preferences/store.mjs +1 -1
  36. package/dist/src/request-id/handlers.mjs +1 -0
  37. package/dist/src/request-id/runtime-bridge.mjs +1 -0
  38. package/dist/src/request-id/session-store.mjs +1 -0
  39. package/dist/src/request-id/title.mjs +1 -0
  40. package/dist/src/runtime/cron-missed-run-policy.mjs +1 -0
  41. package/dist/src/runtime/index.mjs +1 -1
  42. package/dist/src/runtime/patch-channel-plugin-runtime.mjs +1 -1
  43. package/dist/src/runtime/patch-chat-history-mixed-tool-content.mjs +1 -1
  44. package/dist/src/runtime/patch-provider-request-id-header.mjs +1 -1
  45. package/dist/src/runtime/patch-qqbot-outbound-session-route.mjs +1 -0
  46. package/dist/src/runtime/patch-request-id-title-runtime.mjs +1 -0
  47. package/dist/src/runtime/patch-session-store-sqlite.mjs +1 -1
  48. package/dist/src/runtime/patch-weixin-outbound-session-route.mjs +1 -0
  49. package/dist/src/runtime/plugin-sync.mjs +1 -1
  50. package/dist/src/sessions/agent-sessions-map-store.mjs +1 -1
  51. package/dist/src/sessions/runtime-bridge.mjs +1 -1
  52. package/dist/src/sessions/session-data-service.mjs +1 -1
  53. package/dist/src/sessions/session-runtime-state-service.mjs +1 -0
  54. package/dist/src/sessions/session-runtime-state.mjs +1 -0
  55. package/dist/src/sessions/session-sqlite-store.mjs +1 -1
  56. package/dist/src/sessions/sql/001_init.sql +2 -1
  57. package/dist/src/sessions/sql/004_request_id_titles.sql +15 -0
  58. package/dist/src/sessions/sql/005_session_subagents.sql +31 -0
  59. package/dist/src/sessions/sql/006_session_process_snapshot.sql +24 -0
  60. package/dist/src/sessions/sql/schema.md +53 -3
  61. package/dist/src/skills/import.mjs +1 -1
  62. package/dist/src/skills/market.mjs +1 -1
  63. package/dist/src/terminal/manager.mjs +1 -1
  64. package/dist/src/updates/controller.mjs +1 -1
  65. package/dist/src/updates/loader.mjs +1 -1
  66. package/package.json +3 -3
@@ -1 +1 @@
1
- function _0x5e87(_0x54db66,_0x3d066c){_0x54db66=_0x54db66-0x13c;const _0x1498e3=_0x1498();let _0x5e8755=_0x1498e3[_0x54db66];return _0x5e8755;}const _0x37eb28=_0x5e87;(function(_0x1b6ea9,_0x124047){const _0x468d15=_0x5e87,_0x5a1316=_0x1b6ea9();while(!![]){try{const _0x1036cd=parseInt(_0x468d15(0x17a))/0x1+parseInt(_0x468d15(0x17c))/0x2*(parseInt(_0x468d15(0x16a))/0x3)+parseInt(_0x468d15(0x15a))/0x4*(-parseInt(_0x468d15(0x16b))/0x5)+parseInt(_0x468d15(0x17f))/0x6*(parseInt(_0x468d15(0x147))/0x7)+parseInt(_0x468d15(0x15f))/0x8+parseInt(_0x468d15(0x18d))/0x9+-parseInt(_0x468d15(0x186))/0xa*(parseInt(_0x468d15(0x151))/0xb);if(_0x1036cd===_0x124047)break;else _0x5a1316['push'](_0x5a1316['shift']());}catch(_0x862f69){_0x5a1316['push'](_0x5a1316['shift']());}}}(_0x1498,0x66d89));const REQUEST_ID_HEADER_PATCH_MARKER='const\x20re'+_0x37eb28(0x15b)+_0x37eb28(0x167)+_0x37eb28(0x168)+_0x37eb28(0x188)+_0x37eb28(0x17b)+'id\x22);',OPENAI_COMPLETIONS_TRANSPORT_CREATE_LINE='const\x20re'+'sponseSt'+_0x37eb28(0x16d)+_0x37eb28(0x142)+_0x37eb28(0x149)+_0x37eb28(0x156)+_0x37eb28(0x175)+_0x37eb28(0x144)+_0x37eb28(0x15c)+_0x37eb28(0x171)+_0x37eb28(0x18c)+_0x37eb28(0x15d)+_0x37eb28(0x14c)+_0x37eb28(0x180)+'.signal)'+');',OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER=_0x37eb28(0x159)+_0x37eb28(0x174)+_0x37eb28(0x145)+'ream,\x20re'+_0x37eb28(0x160)+_0x37eb28(0x181)+_0x37eb28(0x13e)+_0x37eb28(0x166)+_0x37eb28(0x143)+_0x37eb28(0x162)+'params,\x20'+_0x37eb28(0x190)+_0x37eb28(0x177)+_0x37eb28(0x16e)+_0x37eb28(0x164)+'el,\x20opti'+'ons?.sig'+_0x37eb28(0x17e)+'thRespon'+_0x37eb28(0x179);export function patchProviderRequestIdHeaderFromSource(_0x4bc666){const _0x386804=_0x37eb28,_0x193d51=_0x4bc666['split']('\x0a'),_0x56e790=[];let _0x369813=![],_0x55a07b=_0x4bc666[_0x386804(0x13d)](OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER),_0x19fea9=/if \(requestId\) output\["request-id"\] = requestId;\s*await options\?\.onResponse\?\.\(\{/['test'](_0x4bc666);for(let _0x2e1001=0x0;_0x2e1001<_0x193d51[_0x386804(0x150)];_0x2e1001+=0x1){const _0x4703fd=_0x193d51[_0x2e1001];if(!_0x55a07b&&_0x4703fd[_0x386804(0x13d)](OPENAI_COMPLETIONS_TRANSPORT_CREATE_LINE)){const _0x2308e2=_0x4703fd[_0x386804(0x176)](/^\s*/)?.[0x0]??'';_0x56e790['push'](''+_0x2308e2+OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER,_0x2308e2+(_0x386804(0x169)+_0x386804(0x15b)+'=\x20respon'+_0x386804(0x168)+_0x386804(0x188)+_0x386804(0x17b)+_0x386804(0x18b)),_0x2308e2+(_0x386804(0x17d)+_0x386804(0x18f)+_0x386804(0x14d)+_0x386804(0x17b)+_0x386804(0x185)+_0x386804(0x173)+_0x386804(0x141)),_0x2308e2+(_0x386804(0x15e)+_0x386804(0x153)+_0x386804(0x148)+'er\x20??\x20nu'+'ll,'),_0x2308e2+(_0x386804(0x158)+_0x386804(0x14e)+_0x386804(0x161)+'l,'),_0x2308e2+('\x09status:'+_0x386804(0x14b)+_0x386804(0x152)+','),_0x2308e2+(_0x386804(0x157)+_0x386804(0x184)+_0x386804(0x189)+'equestId'+'),'),_0x2308e2+_0x386804(0x183),_0x2308e2+(_0x386804(0x155)+_0x386804(0x163)+_0x386804(0x16c)+_0x386804(0x182)+'d\x22]\x20=\x20re'+_0x386804(0x13c))),_0x369813=!![],_0x55a07b=!![];continue;}if(_0x19fea9||!_0x4703fd[_0x386804(0x13d)]('await\x20op'+_0x386804(0x140)+_0x386804(0x170)+_0x386804(0x18e))){_0x56e790[_0x386804(0x187)](_0x4703fd);continue;}let _0xedaae1=_0x2e1001;while(_0xedaae1<_0x193d51[_0x386804(0x150)]&&_0xedaae1-_0x2e1001<0x8&&_0x193d51[_0xedaae1][_0x386804(0x16f)]()!==_0x386804(0x146)+');'){_0xedaae1+=0x1;}const _0xacb97e=_0x193d51[_0x386804(0x172)](_0x2e1001,_0xedaae1+0x1)[_0x386804(0x165)]('\x0a');if(!_0xacb97e['includes'](_0x386804(0x14a)+_0x386804(0x154)+_0x386804(0x178)+'(respons'+_0x386804(0x13f)+'s)')){_0x56e790[_0x386804(0x187)](_0x4703fd);continue;}const _0x4d0ac0=_0x4703fd[_0x386804(0x176)](/^\s*/)?.[0x0]??'';_0x56e790['push'](_0x4d0ac0+(_0x386804(0x169)+_0x386804(0x15b)+'=\x20respon'+'se.heade'+_0x386804(0x188)+_0x386804(0x17b)+_0x386804(0x18b)),_0x4d0ac0+(_0x386804(0x155)+_0x386804(0x163)+_0x386804(0x16c)+_0x386804(0x182)+'d\x22]\x20=\x20re'+_0x386804(0x13c))),_0x369813=!![],_0x19fea9=!![],_0x56e790[_0x386804(0x187)](_0x4703fd);}if(!_0x369813)return{'patched':![],'reason':_0x4bc666[_0x386804(0x13d)](REQUEST_ID_HEADER_PATCH_MARKER)||_0x4bc666[_0x386804(0x13d)](OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER)?'already-'+_0x386804(0x14f):_0x386804(0x18a)+'d'};return{'patched':!![],'source':_0x56e790[_0x386804(0x165)]('\x0a')};}function _0x1498(){const _0x29ee74=['\x20respons','(model,\x20','rovider-','model?.i','patched','length','11EHxERw','e.status','r:\x20model','\x20headers','if\x20(requ','.complet','\x09hasRequ','\x09model:\x20','const\x20{\x20','567472DtuTXV','questId\x20','ms,\x20buil','tOptions','\x09provide','4428424bUxndR','sponse\x20}','d\x20??\x20nul','.create(','estId)\x20o','ions(mod','join','chat.com','=\x20respon','se.heade','const\x20re','12459GqMwFx','10WKSDUf','utput[\x22r','ream\x20=\x20a','questOpt','trim','nRespons','dOpenAIS','slice','onse\x20hea','data:\x20re','ions.cre','match','nAISdkRe','ToRecord','se();','546801CVASnd','request-','4sifqtB','console.','nal)).wi','42WGrdzq','options?','\x20=\x20await','equest-i','});','estId:\x20B','id]\x20resp','14955190NgrKov','push','rs.get(\x22','oolean(r','not-foun','id\x22);','dkReques','7566354WLCjNH','e?.({','info(\x22[p','buildOpe','questId;','includes','\x20client.','e.header','tions?.o','der\x22,\x20{','wait\x20cli','pletions','ate(para','sponseSt','},\x20model','251146ZotNFU','?.provid','ent.chat','headers:'];_0x1498=function(){return _0x29ee74;};return _0x1498();}
1
+ function _0x4c27(_0x5d6273,_0x15d338){_0x5d6273=_0x5d6273-0x1eb;const _0xb0df1a=_0xb0df();let _0x4c273b=_0xb0df1a[_0x5d6273];return _0x4c273b;}const _0xb28653=_0x4c27;(function(_0x2189e8,_0x590ed8){const _0x1ad11d=_0x4c27,_0x39f56d=_0x2189e8();while(!![]){try{const _0x16b407=parseInt(_0x1ad11d(0x201))/0x1+parseInt(_0x1ad11d(0x212))/0x2+-parseInt(_0x1ad11d(0x214))/0x3*(-parseInt(_0x1ad11d(0x21b))/0x4)+parseInt(_0x1ad11d(0x20a))/0x5*(-parseInt(_0x1ad11d(0x20f))/0x6)+-parseInt(_0x1ad11d(0x221))/0x7*(parseInt(_0x1ad11d(0x229))/0x8)+-parseInt(_0x1ad11d(0x1ff))/0x9*(parseInt(_0x1ad11d(0x21a))/0xa)+parseInt(_0x1ad11d(0x230))/0xb*(-parseInt(_0x1ad11d(0x232))/0xc);if(_0x16b407===_0x590ed8)break;else _0x39f56d['push'](_0x39f56d['shift']());}catch(_0x578df0){_0x39f56d['push'](_0x39f56d['shift']());}}}(_0xb0df,0xb650d));const REQUEST_ID_HEADER_PATCH_MARKER=_0xb28653(0x210)+_0xb28653(0x223)+_0xb28653(0x1f5)+_0xb28653(0x1fd)+_0xb28653(0x1f1)+'request-'+_0xb28653(0x22d),OPENAI_COMPLETIONS_TRANSPORT_CREATE_LINE=_0xb28653(0x210)+'sponseSt'+_0xb28653(0x233)+_0xb28653(0x21e)+_0xb28653(0x23d)+_0xb28653(0x1f7)+_0xb28653(0x21c)+_0xb28653(0x220)+_0xb28653(0x23c)+_0xb28653(0x1fe)+_0xb28653(0x226)+_0xb28653(0x205)+'(model,\x20'+_0xb28653(0x1f3)+'.signal)'+');',OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER=_0xb28653(0x231)+'data:\x20re'+'sponseSt'+'ream,\x20re'+_0xb28653(0x1eb)+_0xb28653(0x22c)+_0xb28653(0x234)+'chat.com'+'pletions'+_0xb28653(0x218)+'params,\x20'+_0xb28653(0x1f2)+_0xb28653(0x1f0)+_0xb28653(0x20e)+_0xb28653(0x215)+_0xb28653(0x206)+'ons?.sig'+'nal)).wi'+_0xb28653(0x204)+'se();';function _0xb0df(){const _0x307335=['buildOpe','options?','rovider-','=\x20respon','r:\x20model','.complet','split','length','not-foun','headers:','patched','se.heade','dOpenAIS','45xvpVQn','request-','1482053BQYBpx','ll,','e?.({','thRespon','tOptions','el,\x20opti','ToRecord','(respons','?.provid','5prmmGo','if\x20(requ','utput[\x22r','match','questOpt','6517230SfxYQY','const\x20re','push','1406094iVugFa','equest-i','12JpAWxF','ions(mod','er\x20??\x20nu','d\x20??\x20nul','.create(','estId:\x20B','1092380GQjKou','1031284PnMkll','ions.cre','\x09provide','wait\x20cli','questId;','ate(para','7ANnCCJ','oolean(r','questId\x20','nRespons','id]\x20resp','dkReques','join','\x20headers','4902416lFlrKw','der\x22,\x20{','onse\x20hea','\x20=\x20await','id\x22);','\x09status:','d\x22]\x20=\x20re','12221pxqXVM','const\x20{\x20','2424MPdnwz','ream\x20=\x20a','\x20client.','estId)\x20o','console.','},\x20model','slice','includes','await\x20op','e.header','ms,\x20buil','ent.chat','sponse\x20}','equestId','trim','tions?.o','test','nAISdkRe','rs.get(\x22'];_0xb0df=function(){return _0x307335;};return _0xb0df();}export function patchProviderRequestIdHeaderFromSource(_0x3c440a){const _0x4db119=_0xb28653,_0x3f3be4=_0x3c440a[_0x4db119(0x1f8)]('\x0a'),_0x5aeffb=[];let _0x4e0943=![],_0x42fdec=_0x3c440a[_0x4db119(0x239)](OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER),_0x362e19=/if \(requestId\) output\["request-id"\] = requestId;\s*await options\?\.onResponse\?\.\(\{/[_0x4db119(0x1ef)](_0x3c440a);for(let _0x221a8d=0x0;_0x221a8d<_0x3f3be4[_0x4db119(0x1f9)];_0x221a8d+=0x1){const _0x34b9e0=_0x3f3be4[_0x221a8d];if(!_0x42fdec&&_0x34b9e0[_0x4db119(0x239)](OPENAI_COMPLETIONS_TRANSPORT_CREATE_LINE)){const _0x5551f4=_0x34b9e0[_0x4db119(0x20d)](/^\s*/)?.[0x0]??'';_0x5aeffb['push'](''+_0x5551f4+OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER,_0x5551f4+(_0x4db119(0x210)+_0x4db119(0x223)+_0x4db119(0x1f5)+_0x4db119(0x1fd)+_0x4db119(0x1f1)+_0x4db119(0x200)+_0x4db119(0x22d)),_0x5551f4+(_0x4db119(0x236)+'info(\x22[p'+_0x4db119(0x1f4)+_0x4db119(0x200)+_0x4db119(0x225)+_0x4db119(0x22b)+_0x4db119(0x22a)),_0x5551f4+(_0x4db119(0x21d)+_0x4db119(0x1f6)+_0x4db119(0x209)+_0x4db119(0x216)+_0x4db119(0x202)),_0x5551f4+('\x09model:\x20'+'model?.i'+_0x4db119(0x217)+'l,'),_0x5551f4+(_0x4db119(0x22e)+'\x20respons'+'e.status'+','),_0x5551f4+('\x09hasRequ'+_0x4db119(0x219)+_0x4db119(0x222)+_0x4db119(0x1ec)+'),'),_0x5551f4+'});',_0x5551f4+(_0x4db119(0x20b)+_0x4db119(0x235)+_0x4db119(0x20c)+_0x4db119(0x213)+_0x4db119(0x22f)+_0x4db119(0x21f))),_0x4e0943=!![],_0x42fdec=!![];continue;}if(_0x362e19||!_0x34b9e0[_0x4db119(0x239)](_0x4db119(0x23a)+_0x4db119(0x1ee)+_0x4db119(0x224)+_0x4db119(0x203))){_0x5aeffb[_0x4db119(0x211)](_0x34b9e0);continue;}let _0x453f6e=_0x221a8d;while(_0x453f6e<_0x3f3be4[_0x4db119(0x1f9)]&&_0x453f6e-_0x221a8d<0x8&&_0x3f3be4[_0x453f6e][_0x4db119(0x1ed)]()!==_0x4db119(0x237)+');'){_0x453f6e+=0x1;}const _0x9e9b9f=_0x3f3be4[_0x4db119(0x238)](_0x221a8d,_0x453f6e+0x1)[_0x4db119(0x227)]('\x0a');if(!_0x9e9b9f[_0x4db119(0x239)](_0x4db119(0x1fb)+_0x4db119(0x228)+_0x4db119(0x207)+_0x4db119(0x208)+_0x4db119(0x23b)+'s)')){_0x5aeffb[_0x4db119(0x211)](_0x34b9e0);continue;}const _0x256b1e=_0x34b9e0[_0x4db119(0x20d)](/^\s*/)?.[0x0]??'';_0x5aeffb['push'](_0x256b1e+(_0x4db119(0x210)+_0x4db119(0x223)+'=\x20respon'+_0x4db119(0x1fd)+_0x4db119(0x1f1)+_0x4db119(0x200)+_0x4db119(0x22d)),_0x256b1e+(_0x4db119(0x20b)+'estId)\x20o'+_0x4db119(0x20c)+_0x4db119(0x213)+_0x4db119(0x22f)+_0x4db119(0x21f))),_0x4e0943=!![],_0x362e19=!![],_0x5aeffb['push'](_0x34b9e0);}if(!_0x4e0943)return{'patched':![],'reason':_0x3c440a[_0x4db119(0x239)](REQUEST_ID_HEADER_PATCH_MARKER)||_0x3c440a[_0x4db119(0x239)](OPENAI_COMPLETIONS_TRANSPORT_PATCH_MARKER)?'already-'+_0x4db119(0x1fc):_0x4db119(0x1fa)+'d'};return{'patched':!![],'source':_0x5aeffb[_0x4db119(0x227)]('\x0a')};}
@@ -0,0 +1 @@
1
+ function _0x14a6(){const _0x11f4d8=['solveQQB','el).trim','`user:${','*/\x0a\x09\x09\x09lo','tId,\x0a\x09\x09c','get(para','();\x0a\x09con','main`;\x0a}','irect\x22,\x20','atType,\x0a','t)\x20or\x20qq','stripPro','al\x20qqbot','d,\x20route','ute.peer','get(valu','105810AFkYhL','Kind:\x20\x22d','tId:\x20par','||\x20\x22main','found','\x09return\x20','d:\x20id\x20}\x20','Fallback','nKey,\x0a\x09\x09','d\x20(group','hannel-p','function','st\x20witho','roupMirr','sWith(\x22t','t:\x22)\x20?\x20r',');\x0a\x09retu','seSessio','wujieNor','ujieNorm','outProvi','rovider.',').trim()','Target(r',':\x20routeT','ms?.targ','bot\x22\x20:\x20`','rn\x20`agen','route,\x20a','ze\x20commo','wujieRes','ce(/^(gr','esolveQQ','\x20\x22main\x22;','{\x20chatTy','\x0a\x09\x09targe','\x22,\x0a\x09\x09fro','otDirect','nnel-pee','onversat','ix\x20=\x20rou','n\x20QQ\x20Bot','\x09\x09}\x0a\x09},','y(cfg,\x20a','\x22per-cha','y:\x20baseS','rget\x20=\x20w','oute,\x0a\x09\x09','replace(','ssionKey','not-foun',':direct:','ith(\x22roo','-resolve','direct)\x20','erId\x0a\x09};','d:\x20looks','r\x20=\x20with','\x20\x22user\x22\x20','qqbot:${','\x09const\x20t','params.c','421519wUxLwp','\x09}\x0a\x09cons','?\x20\x22\x22),\x20c','peerId)\x20','ring(par','urn\x20null','}:${rout','w.toLowe','th(\x22qqbo','e()\x20||\x20\x22','.peerKin','kind:\x20ro','arget\x20fo','roupid\x20(','ujieReso','rId}`,\x0a\x09','Session(','ionKey,\x0a','rmat:\x20qq','tTarget,','\x20Return\x20','r|direct','uteTarge','roup:\x22)\x20','nst\x20with','toPrefix','id\x20}\x20:\x20n','\x20normali','et,\x20para','.trim();','{\x0a\x09if\x20(n','params)\x20','irror\x20=\x20','{\x0a\x09\x09cons','el\x20=\x20\x22qq','oupMirro','QBotPeer','aw.slice','==\x20\x22qqbo','RouteTar','lower.st','fix(Stri','40NTNthv','\x20null;\x0a\x09','er.start','ault\x22).t','153tVoaoJ','}:${norm','bot\x22;\x0a\x09c','\x20target\x20','`${fromP','m();\x0a\x09co','rn\x20{\x0a\x09\x09s','alizedAc','eStringO','malizeQQ','rmalizeQ',':\x20null;\x0a','e:\x20\x22chan','includes','messagin','werCase(','.startsW','\x09cfg:\x20pa',':/i,\x20\x22\x22)','\x20Normali','Scope\x20==','rn\x20true\x20','eSession','nnel}:${','chatType','openid\x20(','eTarget.','(params)','n\x20=\x20{','rimmed\x20=','formats\x20','s.agentI','{routeTa','String(a','(\x22channe','zed)\x20ret','withoutP','ot-found','LikeId:\x20','\x09const\x20w','nt:${nor','sation:\x22','bot:c2c:',');\x0a\x09cons','ession)\x20','t\x20id\x20=\x20n','\x09\x09from:\x20','-normali','der.repl','er|direc','\x20qqbot:c','2c:openi','rmalized','eOutboun',';\x0a\x09\x09retu','ersation','t\x22,\x20peer','unction\x20',')\x20{\x0a\x09con','ujieQQBo','rim().to','\x20{\x0a\x09\x09con','nKey({\x0a\x09','/^(user|','peer:\x20{\x20','trim();\x0a','Kind\x20!==','\x20resolve','alizedAg','patched','QBotSess','/^g-/i,\x20','d\x20(direc','replace','m|c2c):/','\x09\x09resolv','arams.cf',':\x20\x22chann','ent:${no','untId,\x0a\x09','ope\x20===\x20','tResolve','\x20id\x20=\x20no','11nJFJxn','{channel',':\x20\x22direc',',\x0a\x09\x09agen','nction\x20w','peerId:\x20','\x20routeTa','ingOrEmp','\x09to:\x20`${','untId\x20=\x20','true\x20whe','\x20id\x20look','\x20stripPr','13FGtvGo','tDirectF','Route:\x20w','ad:\x22))\x20{','hannel:\x22','\x20\x22direct','(\x22conver','Provider','Prefix(r','\x20without','\x20=\x20route','5988430aonYip','withoutG','wujieQQB','-shape-n','ng:\x20{\x0a\x09\x09','group)\x22\x0a','eer,\x0a\x09\x09c','channel}','\x0a\x09if\x20(dm','ieBuildQ','Key,\x0a\x09\x09p',')\x20return','onRoute(','hatType:','\x20Bot\x20tar','ithoutGr','aw,\x20para','6nZOqzC','st\x20lower','arams.ch','gentId\x20=',':group:g','routeTar','rCase()\x20','TargetCh','urn\x20`age','Type}`;\x0a','rget(raw','lizeLowe','\x20:\x20raw;\x0a','ntId}:${','\x20chatTyp','kSession','n\x20null;','normaliz','m.\x20*/\x0a\x09\x09','ccountId','!normali','ams.targ','th(\x22thre',');\x0a\x09if\x20(','sion?.dm','QBotTarg','gentId}:','ession','default\x22','r\x20=\x20{\x0a\x09\x09','wer.star','t\x20target','ionKey(p','\x22\x22).trim','hannel).','eResolve','efixes:\x20','${peerId','-functio','el\x22;\x0a\x09co','\x20format:','|\x20lower.','[\x22qqbot\x22','et)\x20retu','\x20QQ\x20Bot\x20','d}:${pee','atType:\x20','solver:\x20','Scope\x20??','artsWith','?.target','QQ\x20Bot\x20t','pe:\x20\x22gro','agentId\x20','Route','oviderPr','\x22).trim(','outeTarg',':...\x20for','get.chat','Scope\x20=\x20','):/i,\x20\x22\x22','n\x20wujieR','erId\x20=\x20w',':${norma','Session\x20','sessionK','or.repla','olveQQBo','group\x22,\x20','BotOutbo','g,\x20param','Id\x20},\x0a\x09\x09','eTarget,','\x0a\x09\x09\x09hint','lveQQBot','=\x20wujieR','already-','\x09peer\x0a\x09}','\x22per-pee','irect\x22\x20?','t\x20peerId','nel)\x20{\x0a\x09',':${chann','|thread)',';\x0a\x09const','und','\x20canonic','\x0a\x09\x09const','ams.agen','\x0a\x09if\x20(ro','193286PfDNeC','zed.toLo','BotPeerT','der\x20=\x20ra','Prefix\x20=','\x20||\x20\x22def','peerId}`','rams.cha','teTarget','essionKe','m:\x20`${pa','existing','onst\x20nor','oksLikeI','r\x22\x20&&\x20pe','tsWith(\x22','\x0a\x09if\x20(!r','!peerId)','irect\x22,\x0a','rams.cfg','=\x20\x22per-a','hannel,\x0a','ey\x20=\x20wuj','annel)\x20!','tboundBa','d)\x20retur','utGroupM','when\x20the','erKind:\x20','tOutboun','r-not-fo','otPeerTa','if\x20(dmSc','const\x20qq','entId}:$','],\x0a\x09\x09/**','rcaseStr','(\x22group:','n\x20the\x20id','\x0a\x09const\x20','rKind:\x20\x22','et?.to\x20?','{\x0a\x09\x09\x09/**','ion:\x22)\x20|','(\x22qqbot:','rget.pee','BotDirec','alizeQQB','countId}','return\x20w','Outbound','ams.acco','{\x0a\x09const','rn\x20id\x20?\x20','m:\x22)\x20||\x20','rCase().',';\x0a\x09if\x20(w','target.\x20','nst\x20norm','t\x20toPref','sWith(\x22c','arget.ch','\x22;\x0a\x09cons','({\x20to\x20})','\x22,\x20peerI','(!trimme','ike\x20a\x20QQ','value\x20??','}`;\x0a\x09}\x0a\x09','fallback','izedAcco','();\x0a\x09if\x20','\x20??\x20\x22\x22);','ce(/^(us','nd,\x20id:\x20','const\x20dm','\x22.length','dSession','n\x20id\x20?\x20{','room:\x22))','\x09\x09\x09looks','ty(witho','5teNRoz','ormalize','\x20return\x20','t\x22\x20?\x20\x22qq','erId)\x20re','QQBotRou','\x22)\x20retur','s\x20like\x20a','allbackS',')\x20||\x20low','p:groupi','vider\x20=\x20','hannel:\x20','\x0a\x09};\x0a}','\x0a\x09return','LikeQQBo','lizedAge','startsWi','\x20String(','et(value','ionKey\x20=','thoutPro','eer\x22\x20&&\x20','turn\x20`ag','Target,\x20','AgentId}','\x20=>\x20wuji','\x20wujieNo','gentId,\x20','eQQBotTa','rn\x20null;','arget','t.peerKi','371556KigVRc','targetRe','const\x20pe','12gtJbRj','n-not-fo','4443924DEYVmw','4568628UQhshA','tFallbac','st\x20chann','}`;\x0a\x09ret','direct|d','.peerId;','nchor-no','n\x20`agent','\x09\x09id:\x20pe','{\x0a\x09\x09sess',')\x22\x0a\x09\x09}\x0a\x09','viderPre','ession;','ccount-c','=\x20\x22direc','ms.chann','indexOf','\x22channel','Lowercas','\x09messagi','st\x20raw\x20=','.replace','efix(par',').toLowe','plugin-a'];_0x14a6=function(){return _0x11f4d8;};return _0x14a6();}(function(_0x2c371c,_0x8f9c54){const _0xe27d38=_0x1a8d,_0x3adfe9=_0x2c371c();while(!![]){try{const _0x534f92=-parseInt(_0xe27d38(0x1b7))/0x1*(-parseInt(_0xe27d38(0x212))/0x2)+-parseInt(_0xe27d38(0x285))/0x3*(-parseInt(_0xe27d38(0x288))/0x4)+parseInt(_0xe27d38(0x264))/0x5*(-parseInt(_0xe27d38(0x28b))/0x6)+-parseInt(_0xe27d38(0x2f2))/0x7*(-parseInt(_0xe27d38(0x31c))/0x8)+-parseInt(_0xe27d38(0x320))/0x9*(-parseInt(_0xe27d38(0x2b4))/0xa)+-parseInt(_0xe27d38(0x18e))/0xb*(-parseInt(_0xe27d38(0x28a))/0xc)+parseInt(_0xe27d38(0x19b))/0xd*(-parseInt(_0xe27d38(0x1a6))/0xe);if(_0x534f92===_0x8f9c54)break;else _0x3adfe9['push'](_0x3adfe9['shift']());}catch(_0x454229){_0x3adfe9['push'](_0x3adfe9['shift']());}}}(_0x14a6,0x95c90));export function patchQQBotOutboundSessionRouteFromSource(_0xe54286){const _0x26d1b7=_0x1a8d;if(_0xe54286[_0x26d1b7(0x32d)](_0x26d1b7(0x2d2)+'olveQQBo'+_0x26d1b7(0x22f)+_0x26d1b7(0x25f)+_0x26d1b7(0x1ed)))return{'patched':![],'reason':'already-'+_0x26d1b7(0x180)};const _0x361a73=_0x26d1b7(0x233)+'botPlugi'+_0x26d1b7(0x157);if(!_0xe54286[_0x26d1b7(0x32d)](_0x361a73))return{'patched':![],'reason':_0x26d1b7(0x2a3)+_0x26d1b7(0x291)+'t-found'};const _0x3c1c02=_0x26d1b7(0x29e)+_0x26d1b7(0x1aa)+'targetPr'+_0x26d1b7(0x1db)+_0x26d1b7(0x1e1)+_0x26d1b7(0x235)+_0x26d1b7(0x333)+_0x26d1b7(0x2d1)+_0x26d1b7(0x2dd)+_0x26d1b7(0x323)+'formats\x20'+'into\x20the'+'\x20canonic'+_0x26d1b7(0x2b0)+_0x26d1b7(0x1f1)+_0x26d1b7(0x1c9)+'normaliz'+_0x26d1b7(0x200)+_0x26d1b7(0x2d7)+_0x26d1b7(0x18c)+'r:\x20{\x0a\x09\x09\x09'+'/**\x20Retu'+_0x26d1b7(0x335)+_0x26d1b7(0x22d)+_0x26d1b7(0x199)+_0x26d1b7(0x26b)+_0x26d1b7(0x1e3)+_0x26d1b7(0x24b)+_0x26d1b7(0x2a7)+_0x26d1b7(0x21f)+_0x26d1b7(0x2ec)+_0x26d1b7(0x273)+_0x26d1b7(0x305)+_0x26d1b7(0x201)+':\x20\x22QQ\x20Bo'+_0x26d1b7(0x1d6)+_0x26d1b7(0x1df)+_0x26d1b7(0x16d)+_0x26d1b7(0x16e)+_0x26d1b7(0x183)+_0x26d1b7(0x2ae)+'bot:grou'+_0x26d1b7(0x26e)+_0x26d1b7(0x2bd)+_0x26d1b7(0x295)+'},';if(!_0xe54286['includes'](_0x3c1c02))return{'patched':![],'reason':_0x26d1b7(0x32e)+'g-shape-'+_0x26d1b7(0x2e6)+'d'};const _0xb3838c=qqBotPluginRouteHelperSource()+'\x0a'+_0x361a73,_0x82dec2=_0x26d1b7(0x29e)+'ng:\x20{\x0a\x09\x09'+'targetPr'+_0x26d1b7(0x1db)+_0x26d1b7(0x1e1)+_0x26d1b7(0x235)+_0x26d1b7(0x333)+'ze\x20commo'+_0x26d1b7(0x2dd)+_0x26d1b7(0x323)+_0x26d1b7(0x159)+'into\x20the'+_0x26d1b7(0x20e)+_0x26d1b7(0x2b0)+_0x26d1b7(0x1f1)+_0x26d1b7(0x1c9)+_0x26d1b7(0x1c8)+'eTarget,'+'\x0a\x09\x09infer'+_0x26d1b7(0x1be)+_0x26d1b7(0x1e5)+_0x26d1b7(0x251)+_0x26d1b7(0x27e)+_0x26d1b7(0x1da)+_0x26d1b7(0x269)+'teTarget'+'(to)?.ch'+_0x26d1b7(0x2ad)+_0x26d1b7(0x186)+_0x26d1b7(0x170)+_0x26d1b7(0x25f)+_0x26d1b7(0x19d)+_0x26d1b7(0x300)+_0x26d1b7(0x202)+_0x26d1b7(0x244)+'SessionR'+_0x26d1b7(0x2e3)+_0x26d1b7(0x286)+_0x26d1b7(0x1e6)+_0x26d1b7(0x23c)+_0x26d1b7(0x306)+_0x26d1b7(0x198)+_0x26d1b7(0x238)+'\x20looks\x20l'+_0x26d1b7(0x254)+_0x26d1b7(0x1b4)+'get.\x20*/\x0a'+_0x26d1b7(0x262)+_0x26d1b7(0x161)+'looksLik'+_0x26d1b7(0x281)+'rget,\x0a\x09\x09'+'\x09hint:\x20\x22'+_0x26d1b7(0x1ea)+_0x26d1b7(0x2fe)+_0x26d1b7(0x304)+_0x26d1b7(0x165)+_0x26d1b7(0x154)+_0x26d1b7(0x2ea)+'or\x20qqbot'+_0x26d1b7(0x1bb)+_0x26d1b7(0x2ff)+_0x26d1b7(0x1ab)+_0x26d1b7(0x2de);return{'patched':!![],'source':_0xe54286['replace'](_0x361a73,_0xb3838c)['replace'](_0x3c1c02,_0x82dec2)};}export function patchQQBotOutboundFallbackFromSource(_0xd6d067){const _0x57e7e4=_0x1a8d;if(_0xd6d067[_0x57e7e4(0x32d)](_0x57e7e4(0x2d2)+'olveQQBo'+'tDirectF'+'allbackS'+_0x57e7e4(0x1d2))){if(!_0xd6d067[_0x57e7e4(0x32d)]('replace('+_0x57e7e4(0x17a)+_0x57e7e4(0x28f)+_0x57e7e4(0x185)+'i'))return upgradeExistingQQBotOutboundFallbackPatch(_0xd6d067);return{'patched':![],'reason':_0x57e7e4(0x204)+_0x57e7e4(0x180)};}const _0x10c8de=_0x57e7e4(0x2bf)+_0x57e7e4(0x17e)+_0x57e7e4(0x2bb)+'Session('+_0x57e7e4(0x311)+'{';if(!_0xd6d067[_0x57e7e4(0x32d)](_0x10c8de))return{'patched':![],'reason':_0x57e7e4(0x257)+_0x57e7e4(0x1dd)+_0x57e7e4(0x289)+_0x57e7e4(0x20d)};const _0x2817cb=_0x57e7e4(0x2f0)+_0x57e7e4(0x158)+_0x57e7e4(0x19a)+_0x57e7e4(0x1ee)+_0x57e7e4(0x2a1)+_0x57e7e4(0x1cc)+_0x57e7e4(0x30e)+_0x57e7e4(0x29a)+'el).trim'+_0x57e7e4(0x259)+_0x57e7e4(0x253)+_0x57e7e4(0x22b)+_0x57e7e4(0x1c7);if(!_0xd6d067[_0x57e7e4(0x32d)](_0x2817cb))return{'patched':![],'reason':_0x57e7e4(0x257)+_0x57e7e4(0x1a9)+_0x57e7e4(0x160)};const _0x4e9c6c=qqBotCoreFallbackHelperSource()+'\x0a'+_0x10c8de,_0x4de6d2=_0x2817cb+(_0x57e7e4(0x239)+_0x57e7e4(0x1a8)+_0x57e7e4(0x2d9)+_0x57e7e4(0x1f8)+_0x57e7e4(0x203)+'esolveQQ'+_0x57e7e4(0x240)+_0x57e7e4(0x28c)+_0x57e7e4(0x1c6)+_0x57e7e4(0x156)+_0x57e7e4(0x24a)+_0x57e7e4(0x176)+'tDirectS'+_0x57e7e4(0x167)+_0x57e7e4(0x243)+'ujieQQBo'+'tDirectS'+_0x57e7e4(0x297));return{'patched':!![],'source':_0xd6d067['replace'](_0x10c8de,_0x4e9c6c)[_0x57e7e4(0x184)](_0x2817cb,_0x4de6d2)};}function _0x1a8d(_0x2d78bb,_0xcacfde){_0x2d78bb=_0x2d78bb-0x154;const _0x14a66d=_0x14a6();let _0x1a8db7=_0x14a66d[_0x2d78bb];return _0x1a8db7;}function qqBotPluginRouteHelperSource(){const _0x4527d8=_0x1a8d;return _0x4527d8(0x2bf)+_0x4527d8(0x27f)+_0x4527d8(0x32a)+_0x4527d8(0x1d0)+_0x4527d8(0x277)+_0x4527d8(0x175)+_0x4527d8(0x29f)+'\x20String('+_0x4527d8(0x255)+'\x20\x22\x22).tri'+_0x4527d8(0x325)+_0x4527d8(0x30a)+_0x4527d8(0x2c8)+_0x4527d8(0x215)+_0x4527d8(0x2f9)+_0x4527d8(0x249)+_0x4527d8(0x275)+_0x4527d8(0x2fa)+_0x4527d8(0x2c3)+_0x4527d8(0x317)+_0x4527d8(0x23e)+_0x4527d8(0x25e)+_0x4527d8(0x2ca)+_0x4527d8(0x1c3)+_0x4527d8(0x2b9)+_0x4527d8(0x15f)+_0x4527d8(0x2c9)+_0x4527d8(0x2e4)+_0x4527d8(0x182)+_0x4527d8(0x1d8)+'();\x0a}\x0afu'+_0x4527d8(0x192)+_0x4527d8(0x300)+_0x4527d8(0x202)+_0x4527d8(0x319)+_0x4527d8(0x2b3)+'e)\x20{\x0a\x09co'+_0x4527d8(0x24c)+'alized\x20='+_0x4527d8(0x27f)+_0x4527d8(0x32a)+_0x4527d8(0x1d0)+_0x4527d8(0x277)+_0x4527d8(0x1ce)+_0x4527d8(0x1cb)+_0x4527d8(0x15e)+_0x4527d8(0x2f7)+_0x4527d8(0x20c)+'\x20lower\x20='+_0x4527d8(0x30d)+_0x4527d8(0x213)+_0x4527d8(0x32f)+_0x4527d8(0x1ce)+_0x4527d8(0x31a)+_0x4527d8(0x1e8)+_0x4527d8(0x237)+'\x22)\x20||\x20lo'+_0x4527d8(0x1d5)+_0x4527d8(0x221)+_0x4527d8(0x261)+_0x4527d8(0x178)+'st\x20id\x20=\x20'+'normaliz'+'ed.repla'+_0x4527d8(0x2d3)+'oup|room'+_0x4527d8(0x1f4)+_0x4527d8(0x2ca)+_0x4527d8(0x171)+_0x4527d8(0x247)+_0x4527d8(0x2d6)+_0x4527d8(0x1eb)+'up\x22,\x20pee'+_0x4527d8(0x23a)+_0x4527d8(0x1fc)+_0x4527d8(0x193)+_0x4527d8(0x30c)+'ull;\x0a\x09}\x0a'+'\x09if\x20(low'+_0x4527d8(0x31e)+'sWith(\x22c'+_0x4527d8(0x19f)+_0x4527d8(0x26d)+'er.start'+_0x4527d8(0x24e)+_0x4527d8(0x2db)+_0x4527d8(0x23d)+_0x4527d8(0x1e0)+'startsWi'+_0x4527d8(0x1cd)+_0x4527d8(0x19e)+_0x4527d8(0x20f)+_0x4527d8(0x18d)+_0x4527d8(0x16f)+_0x4527d8(0x2a0)+'(/^(chan'+'nel|conv'+_0x4527d8(0x172)+_0x4527d8(0x20b)+':/i,\x20\x22\x22)'+_0x4527d8(0x30f)+'\x0a\x09\x09retur'+_0x4527d8(0x260)+_0x4527d8(0x1c5)+_0x4527d8(0x32c)+'nel\x22,\x20pe'+_0x4527d8(0x22e)+_0x4527d8(0x29c)+_0x4527d8(0x252)+_0x4527d8(0x2ba)+_0x4527d8(0x32b)+_0x4527d8(0x2f3)+_0x4527d8(0x168)+_0x4527d8(0x265)+'d.replac'+'e(/^(use'+_0x4527d8(0x307)+'|dm|c2c)'+_0x4527d8(0x332)+'.trim();'+_0x4527d8(0x272)+'\x20id\x20?\x20{\x20'+_0x4527d8(0x338)+_0x4527d8(0x190)+_0x4527d8(0x173)+(_0x4527d8(0x2b5)+_0x4527d8(0x2ac)+'peerId:\x20'+_0x4527d8(0x30c)+'ull;\x0a}\x0af'+_0x4527d8(0x174)+'wujieBui'+'ldQQBotS'+_0x4527d8(0x21b)+_0x4527d8(0x2df)+_0x4527d8(0x280)+_0x4527d8(0x2d0)+_0x4527d8(0x1ca)+_0x4527d8(0x175)+_0x4527d8(0x28d)+_0x4527d8(0x314)+_0x4527d8(0x322)+_0x4527d8(0x21e)+'malizedA'+_0x4527d8(0x1ba)+_0x4527d8(0x276)+_0x4527d8(0x1ec)+_0x4527d8(0x2b7)+_0x4527d8(0x1ef)+_0x4527d8(0x2a2)+_0x4527d8(0x1bd)+_0x4527d8(0x2b7)+_0x4527d8(0x250)+_0x4527d8(0x208)+_0x4527d8(0x1a5)+_0x4527d8(0x290)+_0x4527d8(0x211)+_0x4527d8(0x2b2)+_0x4527d8(0x17d)+_0x4527d8(0x1a0)+_0x4527d8(0x26a)+_0x4527d8(0x292)+_0x4527d8(0x1f7)+_0x4527d8(0x274)+_0x4527d8(0x1c4)+_0x4527d8(0x1ad)+':${route'+_0x4527d8(0x2fc)+_0x4527d8(0x1e4)+'rId}`;\x0a\x09'+_0x4527d8(0x25d)+_0x4527d8(0x1f3)+'cfg?.ses'+_0x4527d8(0x1cf)+_0x4527d8(0x1e7)+_0x4527d8(0x2d5)+_0x4527d8(0x1ae)+_0x4527d8(0x334)+_0x4527d8(0x226)+_0x4527d8(0x298)+_0x4527d8(0x2be)+_0x4527d8(0x27a)+_0x4527d8(0x2f5)+_0x4527d8(0x313)+'t\x20normal'+_0x4527d8(0x258)+_0x4527d8(0x197)+_0x4527d8(0x15c)+_0x4527d8(0x1ca)+_0x4527d8(0x217)+_0x4527d8(0x31f)+_0x4527d8(0x177)+'LowerCas'+_0x4527d8(0x2fb)+_0x4527d8(0x1d3)+_0x4527d8(0x171)+_0x4527d8(0x2cf)+'t:${norm'+_0x4527d8(0x17f)+_0x4527d8(0x234)+_0x4527d8(0x18f)+_0x4527d8(0x321)+_0x4527d8(0x327)+_0x4527d8(0x242)+':direct:'+_0x4527d8(0x1dc)+_0x4527d8(0x256)+_0x4527d8(0x232)+'ope\x20===\x20'+_0x4527d8(0x2e0)+_0x4527d8(0x2da)+_0x4527d8(0x220)+_0x4527d8(0x268)+'turn\x20`ag'+_0x4527d8(0x189)+_0x4527d8(0x16f)+_0x4527d8(0x27d)+_0x4527d8(0x20a)+'el}:dire'+'ct:${pee'+'rId}`;\x0a\x09'+'if\x20(dmSc'+_0x4527d8(0x18b)+_0x4527d8(0x206)+'r\x22\x20&&\x20pe'+_0x4527d8(0x268)+_0x4527d8(0x27b)+_0x4527d8(0x189)+'rmalized'+_0x4527d8(0x27d)+_0x4527d8(0x2e7)+_0x4527d8(0x1dc)+_0x4527d8(0x28e)+_0x4527d8(0x1bf)+_0x4527d8(0x163)+'malizedA'+_0x4527d8(0x1d1)+_0x4527d8(0x2ab)+'\x0afunctio'+_0x4527d8(0x1f5)+_0x4527d8(0x2d4)+_0x4527d8(0x1fd)+'undSessi'+_0x4527d8(0x1b2)+_0x4527d8(0x311)+_0x4527d8(0x246)+_0x4527d8(0x194)+_0x4527d8(0x2e2)+_0x4527d8(0x300)+_0x4527d8(0x202))+('RouteTar'+_0x4527d8(0x2a9)+_0x4527d8(0x2cd)+_0x4527d8(0x23b)+'?\x20params'+_0x4527d8(0x1e9)+_0x4527d8(0x25a)+_0x4527d8(0x222)+_0x4527d8(0x1f0)+_0x4527d8(0x1e2)+_0x4527d8(0x282)+_0x4527d8(0x239)+_0x4527d8(0x1f9)+_0x4527d8(0x228)+_0x4527d8(0x1af)+_0x4527d8(0x181)+_0x4527d8(0x1d7)+_0x4527d8(0x187)+_0x4527d8(0x1fe)+_0x4527d8(0x15a)+_0x4527d8(0x2b1)+_0x4527d8(0x27c)+'params.a'+_0x4527d8(0x1ca)+_0x4527d8(0x166)+_0x4527d8(0x24d)+_0x4527d8(0x2dc)+_0x4527d8(0x21a)+'.chatTyp'+'e\x20===\x20\x22d'+_0x4527d8(0x207)+_0x4527d8(0x2ee)+_0x4527d8(0x188)+_0x4527d8(0x1de)+'nst\x20from'+_0x4527d8(0x216)+_0x4527d8(0x194)+'rget.cha'+'tType\x20=='+_0x4527d8(0x299)+_0x4527d8(0x267)+_0x4527d8(0x2ce)+_0x4527d8(0x2ef)+_0x4527d8(0x1bc)+_0x4527d8(0x1f2)+_0x4527d8(0x1c0)+_0x4527d8(0x2b9)+_0x4527d8(0x294)+_0x4527d8(0x303)+'\x09\x09baseSe'+_0x4527d8(0x2e5)+':\x20sessio'+_0x4527d8(0x2bc)+_0x4527d8(0x17b)+_0x4527d8(0x2fd)+_0x4527d8(0x308)+_0x4527d8(0x284)+_0x4527d8(0x25c)+_0x4527d8(0x1bc)+'get.peer'+_0x4527d8(0x1ff)+_0x4527d8(0x338)+_0x4527d8(0x2cc)+_0x4527d8(0x24f)+_0x4527d8(0x2ad)+_0x4527d8(0x169)+_0x4527d8(0x324)+'refix}:$'+_0x4527d8(0x15b)+_0x4527d8(0x23f)+_0x4527d8(0x301)+_0x4527d8(0x196)+_0x4527d8(0x30b)+_0x4527d8(0x2f8)+_0x4527d8(0x155)+_0x4527d8(0x218)+',\x0a\x09};\x0a}');}function qqBotCoreFallbackHelperSource(){return qqBotNormalizePeerTargetFunctionSource()+'\x0a'+qqBotDirectFallbackFunctionSource();}function qqBotNormalizePeerTargetFunctionSource(){const _0x2799e8=_0x1a8d;return _0x2799e8(0x2bf)+_0x2799e8(0x27f)+'rmalizeQ'+_0x2799e8(0x316)+_0x2799e8(0x2cb)+'aw,\x20chan'+_0x2799e8(0x209)+'const\x20wi'+_0x2799e8(0x279)+_0x2799e8(0x26f)+_0x2799e8(0x2af)+_0x2799e8(0x296)+_0x2799e8(0x31b)+'ng(raw\x20?'+_0x2799e8(0x2f4)+_0x2799e8(0x1d9)+_0x2799e8(0x17c)+_0x2799e8(0x162)+_0x2799e8(0x1b5)+_0x2799e8(0x315)+_0x2799e8(0x2ed)+'outProvi'+_0x2799e8(0x16b)+'ace(/^g-'+'/i,\x20\x22\x22).'+_0x2799e8(0x17c)+'\x09return\x20'+_0x2799e8(0x1a7)+_0x2799e8(0x2c1)+_0x2799e8(0x1fa)+_0x2799e8(0x25b)+_0x2799e8(0x16c)+'t|dm|c2c'+_0x2799e8(0x1f4)+_0x2799e8(0x2ca)+';\x0a}';}function qqBotDirectFallbackFunctionSource(){const _0x3c7cf2=_0x1a8d;return'function'+'\x20wujieRe'+_0x3c7cf2(0x2a4)+_0x3c7cf2(0x2d9)+_0x3c7cf2(0x2bb)+_0x3c7cf2(0x302)+_0x3c7cf2(0x311)+_0x3c7cf2(0x310)+'ormalize'+_0x3c7cf2(0x29d)+_0x3c7cf2(0x328)+'rEmpty(p'+_0x3c7cf2(0x1b9)+_0x3c7cf2(0x229)+_0x3c7cf2(0x318)+'t\x22)\x20retu'+_0x3c7cf2(0x282)+_0x3c7cf2(0x239)+'raw\x20=\x20St'+_0x3c7cf2(0x2f6)+_0x3c7cf2(0x1cc)+'et\x20??\x20\x22\x22'+_0x3c7cf2(0x2ca)+';\x0a\x09const'+_0x3c7cf2(0x1a4)+_0x3c7cf2(0x1a2)+'\x20=\x20strip'+'Provider'+_0x3c7cf2(0x1a3)+_0x3c7cf2(0x1b6)+_0x3c7cf2(0x29a)+_0x3c7cf2(0x2a5)+'();\x0a\x09con'+_0x3c7cf2(0x2c0)+_0x3c7cf2(0x22c)+_0x3c7cf2(0x312)+_0x3c7cf2(0x15f)+_0x3c7cf2(0x2c9)+_0x3c7cf2(0x2e4)+_0x3c7cf2(0x182)+'\x22\x22).trim'+_0x3c7cf2(0x2aa)+_0x3c7cf2(0x1b8)+'\x20=\x20norma'+_0x3c7cf2(0x1c2)+_0x3c7cf2(0x236)+_0x3c7cf2(0x195)+_0x3c7cf2(0x263)+_0x3c7cf2(0x22c)+'irror);\x0a'+'\x09if\x20(low'+_0x3c7cf2(0x31e)+'sWith(\x22g'+_0x3c7cf2(0x309)+'||\x20lower'+_0x3c7cf2(0x330)+_0x3c7cf2(0x2e8)+_0x3c7cf2(0x248)+'lower.st'+_0x3c7cf2(0x1e8)+_0x3c7cf2(0x15d)+'l:\x22)\x20||\x20'+_0x3c7cf2(0x31a)+_0x3c7cf2(0x1e8)+_0x3c7cf2(0x1a1)+_0x3c7cf2(0x164)+_0x3c7cf2(0x26d)+_0x3c7cf2(0x31e)+_0x3c7cf2(0x2c2)+'hread:\x22)'+_0x3c7cf2(0x1b1)+_0x3c7cf2(0x31d)+_0x3c7cf2(0x287)+_0x3c7cf2(0x1f6)+_0x3c7cf2(0x2c7)+_0x3c7cf2(0x241)+_0x3c7cf2(0x231)+_0x3c7cf2(0x1c1)+',\x20params'+'.channel'+_0x3c7cf2(0x1ce)+_0x3c7cf2(0x223)+_0x3c7cf2(0x266)+'null;\x0a\x09c'+'onst\x20pee'+_0x3c7cf2(0x1d4)+'kind:\x20\x22d'+_0x3c7cf2(0x224)+_0x3c7cf2(0x293)+_0x3c7cf2(0x2eb)+_0x3c7cf2(0x239)+'baseSess'+_0x3c7cf2(0x278)+'\x20buildOu'+_0x3c7cf2(0x22a)+_0x3c7cf2(0x2c5)+_0x3c7cf2(0x179)+_0x3c7cf2(0x331)+_0x3c7cf2(0x225)+_0x3c7cf2(0x191)+_0x3c7cf2(0x2b6)+_0x3c7cf2(0x210)+_0x3c7cf2(0x2a8)+_0x3c7cf2(0x270)+_0x3c7cf2(0x2f1)+_0x3c7cf2(0x227)+'\x09\x09accoun'+_0x3c7cf2(0x2b6)+_0x3c7cf2(0x245)+_0x3c7cf2(0x18a)+_0x3c7cf2(0x205)+_0x3c7cf2(0x2c4)+_0x3c7cf2(0x326)+_0x3c7cf2(0x21b)+_0x3c7cf2(0x2e1)+_0x3c7cf2(0x21b)+'y,\x0a\x09\x09bas'+_0x3c7cf2(0x336)+_0x3c7cf2(0x1b0)+_0x3c7cf2(0x1ac)+_0x3c7cf2(0x1b3)+_0x3c7cf2(0x1a0)+_0x3c7cf2(0x2d8)+_0x3c7cf2(0x21c)+_0x3c7cf2(0x219)+(_0x3c7cf2(0x337)+_0x3c7cf2(0x218)+',\x0a\x09\x09to:\x20'+_0x3c7cf2(0x2a6)+_0x3c7cf2(0x218)+_0x3c7cf2(0x271));}function replaceFunction(_0x2e18ca,_0x195abd,_0x4ceb77){const _0x204cd0=_0x1a8d,_0x33df78=_0x2e18ca[_0x204cd0(0x29b)](_0x204cd0(0x2bf)+'\x20'+_0x195abd);if(_0x33df78===-0x1)return null;const _0x283116=_0x2e18ca['indexOf']('{',_0x33df78);if(_0x283116===-0x1)return null;let _0x23520d=0x0,_0x4999df=null,_0x59fec1=![];for(let _0x4ff89b=_0x283116;_0x4ff89b<_0x2e18ca['length'];_0x4ff89b+=0x1){const _0x511dc3=_0x2e18ca[_0x4ff89b];if(_0x4999df){if(_0x59fec1){_0x59fec1=![];continue;}if(_0x511dc3==='\x5c'){_0x59fec1=!![];continue;}if(_0x511dc3===_0x4999df)_0x4999df=null;continue;}if(_0x511dc3==='\x22'||_0x511dc3==='\x27'||_0x511dc3==='`'){_0x4999df=_0x511dc3;continue;}if(_0x511dc3==='{')_0x23520d+=0x1;if(_0x511dc3==='}')_0x23520d-=0x1;if(_0x23520d===0x0)return _0x2e18ca['slice'](0x0,_0x33df78)+_0x4ceb77+_0x2e18ca['slice'](_0x4ff89b+0x1);}return null;}function upgradeExistingQQBotOutboundFallbackPatch(_0x173c28){const _0x364fc9=_0x1a8d;let _0x13170d=replaceFunction(_0x173c28,_0x364fc9(0x2c6)+_0x364fc9(0x329)+_0x364fc9(0x214)+_0x364fc9(0x283),qqBotNormalizePeerTargetFunctionSource());if(!_0x13170d)return{'patched':![],'reason':_0x364fc9(0x21d)+_0x364fc9(0x16a)+'zer-not-'+_0x364fc9(0x2b8)};_0x13170d=replaceFunction(_0x13170d,_0x364fc9(0x2d2)+_0x364fc9(0x1fb)+_0x364fc9(0x19c)+_0x364fc9(0x26c)+'ession',qqBotDirectFallbackFunctionSource());if(!_0x13170d)return{'patched':![],'reason':_0x364fc9(0x21d)+_0x364fc9(0x2e9)+_0x364fc9(0x230)+_0x364fc9(0x20d)};return{'patched':!![],'source':_0x13170d};}
@@ -0,0 +1 @@
1
+ (function(_0x5721a5,_0x174ac1){const _0xdbc6f=_0x5b8d,_0xc6a88=_0x5721a5();while(!![]){try{const _0x122823=-parseInt(_0xdbc6f(0x197))/0x1*(parseInt(_0xdbc6f(0x1b5))/0x2)+parseInt(_0xdbc6f(0x19e))/0x3+-parseInt(_0xdbc6f(0x1a7))/0x4+-parseInt(_0xdbc6f(0x1bf))/0x5+parseInt(_0xdbc6f(0x1ac))/0x6*(-parseInt(_0xdbc6f(0x1b4))/0x7)+-parseInt(_0xdbc6f(0x1a0))/0x8*(parseInt(_0xdbc6f(0x1af))/0x9)+parseInt(_0xdbc6f(0x195))/0xa*(parseInt(_0xdbc6f(0x19d))/0xb);if(_0x122823===_0x174ac1)break;else _0xc6a88['push'](_0xc6a88['shift']());}catch(_0x34f7e2){_0xc6a88['push'](_0xc6a88['shift']());}}}(_0x5bf4,0x4e7dd));function createBridgeImport(_0x416600){const _0x409aaa=_0x5b8d;return _0x409aaa(0x1b7)+_0x409aaa(0x1b9)+'eRequest'+_0x409aaa(0x1a3)+'ridge\x20fr'+_0x409aaa(0x189)+_0x416600+'\x22;';}function _0x5b8d(_0x4ff9d5,_0x2458b2){_0x4ff9d5=_0x4ff9d5-0x188;const _0x5bf483=_0x5bf4();let _0x5b8dee=_0x5bf483[_0x4ff9d5];return _0x5b8dee;}function ensureBridgeImport(_0x3e4c0f,_0x4aedee){const _0x717e87=_0x5b8d,_0x5a6b3d=createBridgeImport(_0x4aedee);if(_0x3e4c0f[_0x717e87(0x1a6)](_0x5a6b3d))return _0x3e4c0f;const _0x2dcef3=_0x3e4c0f['match'](/^import .*;$/m);if(!_0x2dcef3)return _0x5a6b3d+'\x0a'+_0x3e4c0f;return _0x3e4c0f['replace'](_0x2dcef3[0x0],_0x2dcef3[0x0]+'\x0a'+_0x5a6b3d);}function _0x5bf4(){const _0x11fcbe=['551270LezMPY','dTitleBr','runtime\x20','om\x20\x22','bridge-i','=\x20{\x0a\x09\x09\x09\x09','wujieReq','sureWuji','ayload)\x0a','length','uestIdTi','itles\x20??','Bridge.b','e)\x20=>','{\x0a\x09\x09\x09\x09ru','10IRsslI','already-','27oalewx','Titles(p','RequestI','(entry)\x20','slice','e.upsert','13997412NqSMQV','1671630YJOxqh','\x09\x09\x09\x09};\x0a\x09','862640wBUvGy','\x20(runtim','e\x20===\x20\x22o','IdTitleB','const\x20en','RuntimeH','includes','503172bVLVmB','atchGetR',',\x0a\x09\x09\x09\x09ba','ntime.re','elpers\x20=','1615998tiSLLA','=>\x20wujie','&&\x20typeo','45IUJxsI','equestId','mport-no','ieReques','tchGet:\x20','7WlYUeS','34346QzrKUs','questIdT','import\x20*','indexOf','\x20as\x20wuji','f\x20runtim','t-provid',')\x20=>\x20wuj','not-foun','-found'];_0x5bf4=function(){return _0x11fcbe;};return _0x5bf4();}function findFunctionBodyStart(_0x8ef9f4,_0x54221b){const _0x928840=_0x5b8d,_0x5cf7ba=_0x8ef9f4[_0x928840(0x1b8)]('(',_0x54221b);if(_0x5cf7ba===-0x1)return-0x1;let _0x375b79=0x0,_0x1f9586=null,_0xda9318=![];for(let _0x3f225c=_0x5cf7ba;_0x3f225c<_0x8ef9f4[_0x928840(0x18f)];_0x3f225c+=0x1){const _0x2e5953=_0x8ef9f4[_0x3f225c];if(_0x1f9586){if(_0xda9318){_0xda9318=![];continue;}if(_0x2e5953==='\x5c'){_0xda9318=!![];continue;}if(_0x2e5953===_0x1f9586)_0x1f9586=null;continue;}if(_0x2e5953==='\x22'||_0x2e5953==='\x27'||_0x2e5953==='`'){_0x1f9586=_0x2e5953;continue;}if(_0x2e5953==='('){_0x375b79+=0x1;continue;}if(_0x2e5953===')'){_0x375b79-=0x1;continue;}if(_0x2e5953==='{'&&_0x375b79===0x0)return _0x3f225c;}return-0x1;}function insertAfterFunctionOpen(_0x232165,_0x53c17b,_0xf6f6eb){const _0x4ff307=_0x5b8d,_0x3aabc3=_0x232165[_0x4ff307(0x1b8)](_0x53c17b);if(_0x3aabc3===-0x1)return{'patched':![],'reason':_0x4ff307(0x1bd)+'d'};const _0x20e329=findFunctionBodyStart(_0x232165,_0x3aabc3);if(_0x20e329===-0x1)return{'patched':![],'reason':'body-not'+_0x4ff307(0x1be)};return{'patched':!![],'source':''+_0x232165[_0x4ff307(0x19b)](0x0,_0x20e329+0x1)+_0xf6f6eb+_0x232165[_0x4ff307(0x19b)](_0x20e329+0x1)};}export function patchRequestIdTitleRuntimeFromSource(_0x16f459,_0x1353de={}){const _0x31c472=_0x5b8d,_0x6e6a6a=_0x1353de['bridgeIm'+'portPath'];if(!_0x6e6a6a)return{'patched':![],'reason':_0x31c472(0x18a)+_0x31c472(0x1b1)+_0x31c472(0x1bb)+'ed'};if(_0x16f459[_0x31c472(0x1a6)](_0x31c472(0x18c)+_0x31c472(0x190)+'tleBridg'+_0x31c472(0x19c)+_0x31c472(0x199)+'dTitle'))return{'patched':![],'reason':_0x31c472(0x196)+'patched'};const _0x36c10d=_0x31c472(0x1a4)+_0x31c472(0x18d)+'eChannel'+_0x31c472(0x1a5)+_0x31c472(0x1ab)+_0x31c472(0x1a1)+_0x31c472(0x193),_0x500af2='\x0a\x09\x09\x09if\x20('+_0x31c472(0x188)+_0x31c472(0x1ae)+_0x31c472(0x1ba)+_0x31c472(0x1a2)+'bject\x22)\x20'+_0x31c472(0x194)+_0x31c472(0x1aa)+_0x31c472(0x1b6)+_0x31c472(0x191)+_0x31c472(0x18b)+'upsert:\x20'+_0x31c472(0x19a)+_0x31c472(0x1ad)+_0x31c472(0x199)+_0x31c472(0x1c0)+'idge.ups'+'ertReque'+'stIdTitl'+'e(entry)'+_0x31c472(0x1a9)+_0x31c472(0x1b3)+'(payload'+_0x31c472(0x1bc)+_0x31c472(0x1b2)+'tIdTitle'+_0x31c472(0x192)+_0x31c472(0x1a8)+_0x31c472(0x1b0)+_0x31c472(0x198)+_0x31c472(0x18e)+_0x31c472(0x19f)+'\x09\x09}',_0x588837=insertAfterFunctionOpen(ensureBridgeImport(_0x16f459,_0x6e6a6a),_0x36c10d,_0x500af2);return _0x588837;}
@@ -1 +1 @@
1
- (function(_0x1456d1,_0x28c3ea){const _0x1a58f7=_0x5e9c,_0x34facd=_0x1456d1();while(!![]){try{const _0xb33617=-parseInt(_0x1a58f7(0xcb))/0x1+-parseInt(_0x1a58f7(0xbb))/0x2+parseInt(_0x1a58f7(0xb3))/0x3*(-parseInt(_0x1a58f7(0xd1))/0x4)+-parseInt(_0x1a58f7(0xbc))/0x5+-parseInt(_0x1a58f7(0xbf))/0x6+parseInt(_0x1a58f7(0xe1))/0x7+parseInt(_0x1a58f7(0xcd))/0x8;if(_0xb33617===_0x28c3ea)break;else _0x34facd['push'](_0x34facd['shift']());}catch(_0x2cfd80){_0x34facd['push'](_0x34facd['shift']());}}}(_0x59a5,0x44d3b));function createBridgeImport(_0x5345f8){const _0x10fefa=_0x5e9c;return _0x10fefa(0xb4)+_0x10fefa(0xcc)+'eSession'+_0x10fefa(0xbd)+_0x10fefa(0xd4)+_0x5345f8+'\x22;';}function ensureBridgeImport(_0x404c6a,_0x119124){const _0x52d0a9=_0x5e9c,_0x514b72=createBridgeImport(_0x119124);if(_0x404c6a['includes'](_0x514b72))return _0x404c6a;const _0xb3f9f1=_0x404c6a[_0x52d0a9(0xc7)](/^import .*;$/m);if(!_0xb3f9f1)return _0x514b72+'\x0a'+_0x404c6a;return _0x404c6a[_0x52d0a9(0xce)](_0xb3f9f1[0x0],_0xb3f9f1[0x0]+'\x0a'+_0x514b72);}function findFunctionBodyStart(_0xe9bc42,_0x195222){const _0x1d2ab4=_0x5e9c,_0x19ad13=_0xe9bc42[_0x1d2ab4(0xcf)]('(',_0x195222);if(_0x19ad13===-0x1)return-0x1;let _0x54431a=0x0,_0x1f63c6=null,_0x562a32=![];for(let _0x367a26=_0x19ad13;_0x367a26<_0xe9bc42['length'];_0x367a26+=0x1){const _0x65e813=_0xe9bc42[_0x367a26];if(_0x1f63c6){if(_0x562a32){_0x562a32=![];continue;}if(_0x65e813==='\x5c'){_0x562a32=!![];continue;}if(_0x65e813===_0x1f63c6)_0x1f63c6=null;continue;}if(_0x65e813==='\x22'||_0x65e813==='\x27'||_0x65e813==='`'){_0x1f63c6=_0x65e813;continue;}if(_0x65e813==='('){_0x54431a+=0x1;continue;}if(_0x65e813===')'){_0x54431a-=0x1;continue;}if(_0x65e813==='{'&&_0x54431a===0x0)return _0x367a26;}return-0x1;}function findMatchingBlockEnd(_0x1a5dc9,_0x31743d){const _0x423233=_0x5e9c;let _0x5579e3=0x0,_0x5e9745=null,_0x5e1c81=![];for(let _0x4c8707=_0x31743d;_0x4c8707<_0x1a5dc9[_0x423233(0xba)];_0x4c8707+=0x1){const _0x350c38=_0x1a5dc9[_0x4c8707];if(_0x5e9745){if(_0x5e1c81){_0x5e1c81=![];continue;}if(_0x350c38==='\x5c'){_0x5e1c81=!![];continue;}if(_0x350c38===_0x5e9745)_0x5e9745=null;continue;}if(_0x350c38==='\x22'||_0x350c38==='\x27'||_0x350c38==='`'){_0x5e9745=_0x350c38;continue;}if(_0x350c38==='{')_0x5579e3+=0x1;if(_0x350c38==='}')_0x5579e3-=0x1;if(_0x5579e3===0x0)return _0x4c8707+0x1;}return-0x1;}function findNextNonWhitespace(_0x567ebf,_0x14c83c){const _0x2ef74d=_0x5e9c;for(let _0x35a5db=_0x14c83c;_0x35a5db<_0x567ebf[_0x2ef74d(0xba)];_0x35a5db+=0x1){if(!/\s/[_0x2ef74d(0xd7)](_0x567ebf[_0x35a5db]))return _0x35a5db;}return-0x1;}function repairMalformedAlreadyPatchedFunction(_0x163955,_0x4669fd){const _0x8090d7=_0x5e9c,_0x3954d5=_0x163955[_0x8090d7(0xcf)](_0x4669fd);if(_0x3954d5===-0x1)return{'patched':![],'reason':_0x8090d7(0xd9)+'d'};const _0x3807f8=findFunctionBodyStart(_0x163955,_0x3954d5);if(_0x3807f8===-0x1)return{'patched':![],'reason':_0x8090d7(0xdf)+'-found'};const _0x111017=findMatchingBlockEnd(_0x163955,_0x3807f8);if(_0x111017===-0x1)return{'patched':![],'reason':_0x8090d7(0xca)+_0x8090d7(0xb0)+'nd'};const _0x16be9=findNextNonWhitespace(_0x163955,_0x111017);if(_0x163955[_0x16be9]!==')')return{'patched':![],'reason':_0x8090d7(0xae)+_0x8090d7(0xac)};const _0x335349=findNextNonWhitespace(_0x163955,_0x16be9+0x1);if(_0x163955[_0x335349]!=='{')return{'patched':![],'reason':_0x8090d7(0xae)+_0x8090d7(0xac)};const _0x550b75=findMatchingBlockEnd(_0x163955,_0x335349);if(_0x550b75===-0x1)return{'patched':![],'reason':_0x8090d7(0xca)+_0x8090d7(0xb0)+'nd'};return{'patched':!![],'source':_0x163955[_0x8090d7(0xdc)](0x0,_0x111017)+_0x163955[_0x8090d7(0xdc)](_0x550b75)};}function replaceFunctionBody(_0x145ebb,_0x47cb81,_0x3dbb80){const _0x1ce78a=_0x5e9c,_0x22d0df=_0x145ebb['indexOf'](_0x47cb81);if(_0x22d0df===-0x1)return{'patched':![],'reason':'not-foun'+'d'};const _0x18bfb7=findFunctionBodyStart(_0x145ebb,_0x22d0df);if(_0x18bfb7===-0x1)return{'patched':![],'reason':_0x1ce78a(0xdf)+_0x1ce78a(0xad)};const _0x525472=findMatchingBlockEnd(_0x145ebb,_0x18bfb7);if(_0x525472===-0x1)return{'patched':![],'reason':'body-end'+_0x1ce78a(0xb0)+'nd'};const _0x2dbf96=_0x47cb81+'\x20'+_0x3dbb80;return{'patched':!![],'source':_0x145ebb['slice'](0x0,_0x22d0df)+_0x2dbf96+_0x145ebb[_0x1ce78a(0xdc)](_0x525472)};}export function patchSessionStoreLoadFromSource(_0x3575f4,_0x18ef63={}){const _0x1f41b7=_0x5e9c,_0x933354=_0x18ef63['bridgeIm'+_0x1f41b7(0xaa)];if(!_0x933354)return{'patched':![],'reason':_0x1f41b7(0xc5)+'mport-no'+_0x1f41b7(0xbe)+'ed'};if(_0x3575f4[_0x1f41b7(0xc4)]('wujieSes'+'sionBrid'+_0x1f41b7(0xc2)+'essionSt'+_0x1f41b7(0xda)))return repairMalformedAlreadyPatchedFunction(_0x3575f4,_0x1f41b7(0xab)+_0x1f41b7(0xc8)+_0x1f41b7(0xb8)+'e(storeP'+_0x1f41b7(0xc0)+'s\x20=\x20{})');const _0x29f1f2=replaceFunctionBody(ensureBridgeImport(_0x3575f4,_0x933354),_0x1f41b7(0xab)+_0x1f41b7(0xc8)+_0x1f41b7(0xb8)+_0x1f41b7(0xdb)+_0x1f41b7(0xc0)+_0x1f41b7(0xb7),'{\x0a\x09retur'+'n\x20wujieS'+_0x1f41b7(0xd8)+_0x1f41b7(0xb9)+_0x1f41b7(0xd2)+_0x1f41b7(0xd5)+_0x1f41b7(0xd6)+'\x20opts);\x0a'+'}');return _0x29f1f2;}function _0x5e9c(_0x1e0d7d,_0x517be6){_0x1e0d7d=_0x1e0d7d-0xaa;const _0x59a5b8=_0x59a5();let _0x5e9c5e=_0x59a5b8[_0x1e0d7d];return _0x5e9c5e;}function _0x59a5(){const _0x128471=['indexOf','wujieSes','8qlvTiS','dSession','sionBrid','rom\x20\x22','Store(st','orePath,','test','essionBr','not-foun','ore','e(storeP','slice','riteSess','s);\x0a}','body-not','ionStore','1274378DByfkg','portPath','function','patched','-found','already-','ge.write','-not-fou','arams)','ic(param','831102RgnnRV','import\x20*','SessionS','nction\x20w','s\x20=\x20{})','sionStor','idge.loa','length','630464TjWoCQ','350085bVZHwy','Bridge\x20f','t-provid','1437786GLEndD','ath,\x20opt','toreAtom','ge.loadS','n\x20await\x20','includes','bridge-i','async\x20fu','match','\x20loadSes','mport-no','body-end','432730atBaaq','\x20as\x20wuji','13692312BdIztJ','replace'];_0x59a5=function(){return _0x128471;};return _0x59a5();}export function patchSessionStoreWriteFromSource(_0x310704,_0x3195fb={}){const _0x5bde64=_0x5e9c,_0xda3765=_0x3195fb['bridgeIm'+'portPath'];if(!_0xda3765)return{'patched':![],'reason':'bridge-i'+_0x5bde64(0xc9)+_0x5bde64(0xbe)+'ed'};const _0x3fb79c=replaceFunctionBody(ensureBridgeImport(_0x310704,_0xda3765),_0x5bde64(0xc6)+_0x5bde64(0xb6)+_0x5bde64(0xdd)+_0x5bde64(0xe0)+'Atomic(p'+_0x5bde64(0xb1),'{\x0a\x09retur'+_0x5bde64(0xc3)+_0x5bde64(0xd0)+_0x5bde64(0xd3)+_0x5bde64(0xaf)+_0x5bde64(0xb5)+_0x5bde64(0xc1)+_0x5bde64(0xb2)+_0x5bde64(0xde));if(!_0x3fb79c[_0x5bde64(0xac)])return _0x3fb79c;return _0x3fb79c;}
1
+ (function(_0xb70694,_0x322182){const _0x4f6320=_0x3eba,_0x2e9b68=_0xb70694();while(!![]){try{const _0x3a70b8=parseInt(_0x4f6320(0x19d))/0x1+-parseInt(_0x4f6320(0x19f))/0x2+parseInt(_0x4f6320(0x17d))/0x3*(parseInt(_0x4f6320(0x185))/0x4)+parseInt(_0x4f6320(0x193))/0x5+-parseInt(_0x4f6320(0x180))/0x6+parseInt(_0x4f6320(0x16b))/0x7+parseInt(_0x4f6320(0x182))/0x8*(-parseInt(_0x4f6320(0x18b))/0x9);if(_0x3a70b8===_0x322182)break;else _0x2e9b68['push'](_0x2e9b68['shift']());}catch(_0xad8f1b){_0x2e9b68['push'](_0x2e9b68['shift']());}}}(_0x1e89,0x3265a));function createBridgeImport(_0x112e9b){const _0x32b061=_0x3eba;return _0x32b061(0x174)+_0x32b061(0x172)+_0x32b061(0x197)+_0x32b061(0x19e)+_0x32b061(0x195)+_0x112e9b+'\x22;';}function _0x1e89(){const _0x33c75e=['orePath,','essionSt','test','\x20loadSes','285133kbCXwh','Bridge\x20f','343426wUCXkn','s\x20=\x20{})','async\x20fu','length','includes','807821FeDPom','toreAtom','match','arams)','patched','Store(st','n\x20await\x20','\x20as\x20wuji','mport-no','import\x20*','t-provid','replace','sionBrid','e(storeP','ge.write','-found','{\x0a\x09retur','ore','5541uOrvpf','not-foun','already-','2049102bnwtva','slice','2717816TKAhcW','portPath','\x20opts);\x0a','876GMzTTz','ge.loadS','dSession','sionStor','function','ic(param','9RzoTzR','s);\x0a}','riteSess','-not-fou','ath,\x20opt','wujieSes','body-end','body-not','1271770BAGLzB','idge.loa','rom\x20\x22','n\x20wujieS','eSession','indexOf'];_0x1e89=function(){return _0x33c75e;};return _0x1e89();}function ensureBridgeImport(_0x26c751,_0x17fa96){const _0x3f2512=_0x3eba,_0x66ada6=createBridgeImport(_0x17fa96);if(_0x26c751[_0x3f2512(0x16a)](_0x66ada6))return _0x26c751;const _0x4f97ef=_0x26c751[_0x3f2512(0x16d)](/^import .*;$/m);if(!_0x4f97ef)return _0x66ada6+'\x0a'+_0x26c751;return _0x26c751[_0x3f2512(0x176)](_0x4f97ef[0x0],_0x4f97ef[0x0]+'\x0a'+_0x66ada6);}function findFunctionBodyStart(_0x28d424,_0x5b5180){const _0x3222b4=_0x3eba,_0x1371f4=_0x28d424['indexOf']('(',_0x5b5180);if(_0x1371f4===-0x1)return-0x1;let _0x29b310=0x0,_0x45ebe1=null,_0x1cb4e4=![];for(let _0x30ea13=_0x1371f4;_0x30ea13<_0x28d424[_0x3222b4(0x169)];_0x30ea13+=0x1){const _0x1882ec=_0x28d424[_0x30ea13];if(_0x45ebe1){if(_0x1cb4e4){_0x1cb4e4=![];continue;}if(_0x1882ec==='\x5c'){_0x1cb4e4=!![];continue;}if(_0x1882ec===_0x45ebe1)_0x45ebe1=null;continue;}if(_0x1882ec==='\x22'||_0x1882ec==='\x27'||_0x1882ec==='`'){_0x45ebe1=_0x1882ec;continue;}if(_0x1882ec==='('){_0x29b310+=0x1;continue;}if(_0x1882ec===')'){_0x29b310-=0x1;continue;}if(_0x1882ec==='{'&&_0x29b310===0x0)return _0x30ea13;}return-0x1;}function findMatchingBlockEnd(_0x2ede1e,_0x3b8425){const _0x1f19e7=_0x3eba;let _0x41c5e8=0x0,_0x3693ef=null,_0x103e54=![];for(let _0x42f2cd=_0x3b8425;_0x42f2cd<_0x2ede1e[_0x1f19e7(0x169)];_0x42f2cd+=0x1){const _0x1689ab=_0x2ede1e[_0x42f2cd];if(_0x3693ef){if(_0x103e54){_0x103e54=![];continue;}if(_0x1689ab==='\x5c'){_0x103e54=!![];continue;}if(_0x1689ab===_0x3693ef)_0x3693ef=null;continue;}if(_0x1689ab==='\x22'||_0x1689ab==='\x27'||_0x1689ab==='`'){_0x3693ef=_0x1689ab;continue;}if(_0x1689ab==='{')_0x41c5e8+=0x1;if(_0x1689ab==='}')_0x41c5e8-=0x1;if(_0x41c5e8===0x0)return _0x42f2cd+0x1;}return-0x1;}function _0x3eba(_0x4e47e8,_0x21f2a0){_0x4e47e8=_0x4e47e8-0x167;const _0x1e8940=_0x1e89();let _0x3eba01=_0x1e8940[_0x4e47e8];return _0x3eba01;}function findNextNonWhitespace(_0x7b6fc8,_0x542659){const _0x22d282=_0x3eba;for(let _0x11a59a=_0x542659;_0x11a59a<_0x7b6fc8[_0x22d282(0x169)];_0x11a59a+=0x1){if(!/\s/[_0x22d282(0x19b)](_0x7b6fc8[_0x11a59a]))return _0x11a59a;}return-0x1;}function repairMalformedAlreadyPatchedFunction(_0x4bb2f1,_0xa8081e){const _0x3b61a5=_0x3eba,_0x4503a6=_0x4bb2f1['indexOf'](_0xa8081e);if(_0x4503a6===-0x1)return{'patched':![],'reason':_0x3b61a5(0x17e)+'d'};const _0x5841a5=findFunctionBodyStart(_0x4bb2f1,_0x4503a6);if(_0x5841a5===-0x1)return{'patched':![],'reason':_0x3b61a5(0x192)+_0x3b61a5(0x17a)};const _0x5554ee=findMatchingBlockEnd(_0x4bb2f1,_0x5841a5);if(_0x5554ee===-0x1)return{'patched':![],'reason':_0x3b61a5(0x191)+_0x3b61a5(0x18e)+'nd'};const _0xe94afd=findNextNonWhitespace(_0x4bb2f1,_0x5554ee);if(_0x4bb2f1[_0xe94afd]!==')')return{'patched':![],'reason':_0x3b61a5(0x17f)+_0x3b61a5(0x16f)};const _0x2dcf37=findNextNonWhitespace(_0x4bb2f1,_0xe94afd+0x1);if(_0x4bb2f1[_0x2dcf37]!=='{')return{'patched':![],'reason':'already-'+_0x3b61a5(0x16f)};const _0x2489d2=findMatchingBlockEnd(_0x4bb2f1,_0x2dcf37);if(_0x2489d2===-0x1)return{'patched':![],'reason':'body-end'+_0x3b61a5(0x18e)+'nd'};return{'patched':!![],'source':_0x4bb2f1[_0x3b61a5(0x181)](0x0,_0x5554ee)+_0x4bb2f1['slice'](_0x2489d2)};}function replaceFunctionBody(_0x45c67c,_0x32271c,_0x128d59){const _0x56e47f=_0x3eba,_0xd2d3d0=_0x45c67c[_0x56e47f(0x198)](_0x32271c);if(_0xd2d3d0===-0x1)return{'patched':![],'reason':_0x56e47f(0x17e)+'d'};const _0x21f7e4=findFunctionBodyStart(_0x45c67c,_0xd2d3d0);if(_0x21f7e4===-0x1)return{'patched':![],'reason':_0x56e47f(0x192)+_0x56e47f(0x17a)};const _0x1d8197=findMatchingBlockEnd(_0x45c67c,_0x21f7e4);if(_0x1d8197===-0x1)return{'patched':![],'reason':_0x56e47f(0x191)+_0x56e47f(0x18e)+'nd'};const _0x209e72=_0x32271c+'\x20'+_0x128d59;return{'patched':!![],'source':_0x45c67c[_0x56e47f(0x181)](0x0,_0xd2d3d0)+_0x209e72+_0x45c67c['slice'](_0x1d8197)};}export function patchSessionStoreLoadFromSource(_0x1bf283,_0x41d866={}){const _0x956c8=_0x3eba,_0x2399ac=_0x41d866['bridgeIm'+_0x956c8(0x183)];if(!_0x2399ac)return{'patched':![],'reason':'bridge-i'+_0x956c8(0x173)+_0x956c8(0x175)+'ed'};if(_0x1bf283[_0x956c8(0x16a)](_0x956c8(0x190)+_0x956c8(0x177)+_0x956c8(0x186)+_0x956c8(0x19a)+_0x956c8(0x17c)))return repairMalformedAlreadyPatchedFunction(_0x1bf283,_0x956c8(0x189)+_0x956c8(0x19c)+_0x956c8(0x188)+_0x956c8(0x178)+_0x956c8(0x18f)+_0x956c8(0x167));const _0x4dbe42=replaceFunctionBody(ensureBridgeImport(_0x1bf283,_0x2399ac),'function'+_0x956c8(0x19c)+_0x956c8(0x188)+_0x956c8(0x178)+'ath,\x20opt'+_0x956c8(0x167),_0x956c8(0x17b)+_0x956c8(0x196)+'essionBr'+_0x956c8(0x194)+_0x956c8(0x187)+_0x956c8(0x170)+_0x956c8(0x199)+_0x956c8(0x184)+'}');return _0x4dbe42;}export function patchSessionStoreWriteFromSource(_0x5df0f6,_0x4a439b={}){const _0x1515b6=_0x3eba,_0x3ebd7c=_0x4a439b['bridgeIm'+_0x1515b6(0x183)];if(!_0x3ebd7c)return{'patched':![],'reason':'bridge-i'+'mport-no'+_0x1515b6(0x175)+'ed'};const _0x476619=replaceFunctionBody(ensureBridgeImport(_0x5df0f6,_0x3ebd7c),_0x1515b6(0x168)+'nction\x20w'+_0x1515b6(0x18d)+'ionStore'+'Atomic(p'+_0x1515b6(0x16e),'{\x0a\x09retur'+_0x1515b6(0x171)+'wujieSes'+_0x1515b6(0x177)+_0x1515b6(0x179)+'SessionS'+_0x1515b6(0x16c)+_0x1515b6(0x18a)+_0x1515b6(0x18c));if(!_0x476619[_0x1515b6(0x16f)])return _0x476619;return _0x476619;}
@@ -0,0 +1 @@
1
+ (function(_0x3fdff8,_0x3a8f67){const _0x236113=_0x5896,_0x46890f=_0x3fdff8();while(!![]){try{const _0x13b7a2=-parseInt(_0x236113(0x29d))/0x1+-parseInt(_0x236113(0x277))/0x2+parseInt(_0x236113(0x244))/0x3*(parseInt(_0x236113(0x201))/0x4)+-parseInt(_0x236113(0x152))/0x5*(-parseInt(_0x236113(0x125))/0x6)+parseInt(_0x236113(0x14e))/0x7*(-parseInt(_0x236113(0x2b8))/0x8)+parseInt(_0x236113(0x28d))/0x9*(-parseInt(_0x236113(0x1e6))/0xa)+parseInt(_0x236113(0x28c))/0xb*(parseInt(_0x236113(0x181))/0xc);if(_0x13b7a2===_0x3a8f67)break;else _0x46890f['push'](_0x46890f['shift']());}catch(_0xc32b8){_0x46890f['push'](_0x46890f['shift']());}}}(_0x403e,0x2f3dd));export function patchWeixinOutboundSessionRouteFromSource(_0x13d0f0){const _0x111155=_0x5896;if(_0x13d0f0['includes'](_0x111155(0x136)+_0x111155(0x2c4)+'inOutbou'+_0x111155(0x1bd)+'nRoute')){if(!_0x13d0f0[_0x111155(0x15e)](_0x111155(0x20e)+_0x111155(0x225)+_0x111155(0x264)+_0x111155(0x27d)))return upgradeExistingWeixinOutboundSessionRoutePatch(_0x13d0f0);return{'patched':![],'reason':_0x111155(0x193)+'patched'};}const _0x551be5='const\x20ME'+_0x111155(0x27a)+_0x111155(0x13e)+_0x111155(0x1d5)+_0x111155(0x214)+_0x111155(0x220)+_0x111155(0x1c3)+_0x111155(0x13b)+_0x111155(0x20f)+_0x111155(0x1f8)+_0x111155(0x209)+'a/outbou'+_0x111155(0x189)+');';if(!_0x13d0f0['includes'](_0x551be5))return{'patched':![],'reason':'helper-a'+_0x111155(0x13c)+_0x111155(0x2b6)};const _0x260675=_0x111155(0x1c6)+'aging:\x20{'+_0x111155(0x1ad)+_0x111155(0x149)+'esolver:'+'\x20{\x0a\x20\x20\x20\x20\x20'+_0x111155(0x265)+'/\x20Weixin'+_0x111155(0x16c)+_0x111155(0x12d)+'\x20end\x20wit'+_0x111155(0x12a)+_0x111155(0x144)+_0x111155(0x23d)+_0x111155(0x238)+'s,\x20skip\x20'+_0x111155(0x200)+_0x111155(0x1b1)+_0x111155(0x239)+_0x111155(0x1cc)+_0x111155(0x25a)+_0x111155(0x124)+_0x111155(0x205)+_0x111155(0x1ec)+_0x111155(0x182)+'chat\x22),\x0a'+_0x111155(0x147)+_0x111155(0x25f)+',';if(!_0x13d0f0[_0x111155(0x15e)](_0x260675))return{'patched':![],'reason':_0x111155(0x140)+_0x111155(0x280)+_0x111155(0x21b)+'d'};const _0x38bc90=_0x551be5+'\x0a'+weixinPluginRouteHelperSource(),_0x1c2a5c=_0x111155(0x1c6)+_0x111155(0x218)+_0x111155(0x1ad)+_0x111155(0x208)+'rgetChat'+_0x111155(0x211)+_0x111155(0x235)+_0x111155(0x26b)+'ormalize'+_0x111155(0x1da)+'uteTarge'+_0x111155(0x1a5)+_0x111155(0x2bf)+_0x111155(0x1bc)+_0x111155(0x29f)+_0x111155(0x213)+_0x111155(0x28b)+_0x111155(0x296)+_0x111155(0x12e)+_0x111155(0x1db)+_0x111155(0x2b2)+_0x111155(0x1e2)+':\x20wujieR'+'esolveWe'+_0x111155(0x242)+'oundSess'+_0x111155(0x1e2)+_0x111155(0x163)+'\x20\x20target'+'Resolver'+_0x111155(0x1ba)+_0x111155(0x147)+_0x111155(0x2ab)+_0x111155(0x1f0)+_0x111155(0x173)+_0x111155(0x2ca)+'th\x20@im.w'+_0x111155(0x2af)+_0x111155(0x1fb)+_0x111155(0x254)+_0x111155(0x164)+_0x111155(0x18b)+_0x111155(0x23f)+_0x111155(0x14f)+_0x111155(0x1a8)+'ooksLike'+_0x111155(0x1bf)+_0x111155(0x129)+'.endsWit'+_0x111155(0x226)+_0x111155(0x1eb)+_0x111155(0x1ad)+_0x111155(0x16f)+'},';return{'patched':!![],'source':_0x13d0f0['replace'](_0x551be5,_0x38bc90)[_0x111155(0x1b6)](_0x260675,_0x1c2a5c)};}export function patchWeixinOutboundFallbackFromSource(_0x1217cb){const _0x262554=_0x5896;if(_0x1217cb[_0x262554(0x15e)](_0x262554(0x136)+'olveWeix'+_0x262554(0x1d6)+_0x262554(0x15b)+_0x262554(0x286)+'n'))return{'patched':![],'reason':_0x262554(0x193)+'patched'};const _0x1003a4=_0x262554(0x1b9)+'\x20resolve'+'Fallback'+_0x262554(0x128)+_0x262554(0x28e)+'{';if(!_0x1217cb['includes'](_0x1003a4))return{'patched':![],'reason':_0x262554(0x1cd)+_0x262554(0x2a9)+_0x262554(0x14b)+_0x262554(0x22a)};const _0x52de32=_0x262554(0x25d)+_0x262554(0x253)+_0x262554(0x22b)+_0x262554(0x161)+_0x262554(0x231)+_0x262554(0x291)+'et,\x20para'+'ms.chann'+_0x262554(0x185)+_0x262554(0x1f3)+_0x262554(0x1a6)+_0x262554(0x1cf)+_0x262554(0x1aa);if(!_0x1217cb[_0x262554(0x15e)](_0x52de32))return{'patched':![],'reason':_0x262554(0x1cd)+_0x262554(0x2a1)+'ot-found'};const _0x4edf5e=weixinCoreFallbackHelperSource()+'\x0a'+_0x1003a4,_0x4e2d86=_0x52de32+(_0x262554(0x26c)+_0x262554(0x17a)+_0x262554(0x167)+_0x262554(0x19e)+'\x20=\x20wujie'+_0x262554(0x271)+_0x262554(0x228)+'irectFal'+'lbackSes'+_0x262554(0x227)+'ams);\x0a\x09i'+'f\x20(wujie'+_0x262554(0x210)+_0x262554(0x18a)+'ion)\x20ret'+_0x262554(0x206)+_0x262554(0x2cd)+_0x262554(0x143)+_0x262554(0x186));return{'patched':!![],'source':_0x1217cb['replace'](_0x1003a4,_0x4edf5e)['replace'](_0x52de32,_0x4e2d86)};}function _0x403e(){const _0x3b71d1=['Route(pa','}:direct','\x0a\x09\x09baseS','eBuildWe','ed,','\x20\x20\x20const','Id(to)','essionKe','d:\x20to\x20},','ams.cfg,','ct\x22,\x20id:','wechat\x22)','\x20\x20\x20from:','rimmed\x20=','direct\x20I','r:\x20{\x20kin','nnel:\x20pa','pe\x20===\x20\x22','direct\x22,','to\x20??\x20\x22\x22','oksLikeI','\x20wujieNo','inferTar','\x09const\x20t','return\x20p','},\x0a\x20\x20\x20\x20}','erId}`\x0a\x09','\x20wujieRe','t(to);\x0a\x20','tId}:mai','ixinRout','\x20\x20\x20\x20\x20\x20\x20/','rim();\x0a\x09','(without','\x0a\x09\x09from:','Kind);\x0a\x09','}:${chan','>\x20wujieN','\x0a\x09const\x20','ider\x20=\x20s','countId)','nKey\x20=\x20b','rovider\x20','ResolveW','claw-wei','d:\x20param',')\x20return','nversati','e(/^g-/i','514026OyjaZy','ormalize','xinOutbo','DIA_OUTB','\x22);\x0a\x20\x20\x20\x20','f\x20(dmSco','eTarget','Key\x20=\x20wu','\x20{\x0a\x09\x09ses','g-shape-','ionKey(p','();\x0a}','slice','\x20session','-normali','ckSessio','owerCase','uteTarge','ser:${to','\x20\x20const\x20',':\x20undefi','6276523myddif','18dTfEJk','params)\x20','normaliz','ain\x22).tr','ams.targ','t\x20to\x20=\x20w','arams?.t','ix(Strin','onKey,\x0a\x20','ned,\x0a\x20\x20\x20','w,\x20chann','ntId,\x20to','at\x22)\x20?\x20p','tFallbac','hannel)\x20','arams.ac','141737qGZSHQ','tId\x20||\x20\x22','at\x22)\x20?\x20\x22','\x20\x20\x20\x20to:\x20','-shape-n','();\x0a}\x0afu','to}`,\x0a\x20\x20',').trim()','uildOutb','erId}`;\x0a','ct\x22,\x0a\x20\x20\x20','\x20\x20\x20baseS','-functio','nst\x20to\x20=','//\x20Weixi','eturn\x20`a','y,\x0a\x20\x20\x20\x20\x20','\x20peerId\x20','echat;\x20t','peerId\x20=','\x22\x20&&\x20pee','oundSess','=\x20\x22per-p','ession?.','nction\x20w','t-found','dWeixinD','296oLlKhp','gOrEmpty','nel}:dir','nst\x20raw\x20','ect:${pe','\x20{\x0a\x09if\x20(','getChatT','dsWith(\x22','\x20to,\x20par','malizedA','per-acco','return\x20n','olveWeix','iderPref',',\x20accoun','|\x20\x22defau','eturn\x20nu','eturn\x20wi','s\x20end\x20wi','t\x22\x20:\x20und','\x22)\x20?\x20raw','eWeixinD','.slice(\x22','\x20}\x0a\x20\x20\x20\x20i','d:\x20(raw)','564dzNATK','Target(p','replaceA','Session(',')\x20=>\x20raw','h\x20@im.we','nclaw-we','arget?.t','s\x20always','\x20\x20\x20\x20\x20res','per-chan','on|room|','nnel,\x0a\x09\x09','indexOf','undSessi','cfg,\x20age','nImDirec','wujieRes','ms.chann','n`;\x0a}\x0afu','onst\x20nor',');\x0a\x20\x20\x20\x20r','edOpenCl','nchor-no','{\x0a\x20\x20\x20\x20co','OUND_TEM','teTarget','messagin','jieBuild','d\x20=\x20stri','irectSes','chat;\x20tr','d\x20=\x20Stri','Key,\x0a\x20\x20\x20','\x20\x20\x20\x20\x20\x20\x20\x20','hatType:','\x20targetR','eLowerca','n-not-fo','zeLowerc','ctSessio','9569EceEUF','p.\x0a\x20\x20\x20\x20\x20',';\x0a\x20\x20\x20\x20re','n:${to}`','5780YJtGJl','lt\x22;\x0a\x20\x20\x20','\x20normali','agentId,','zer-not-','onRoute(','${normal','chat\x22))\x20','\x22.length','ctFallba','ujieNorm','ll;\x0a\x09con','includes','th(\x22@im.','alizeWei','oviderPr','ull;\x0a\x20\x20\x20',',\x0a\x20\x20\x20\x20\x20\x20','Ds,\x20skip','y\x20=\x20wuji','d}`;\x0a\x20\x20\x20','xinDirec','nd:\x20\x22dir','s.accoun','rmalizeW','\x20to\x20},\x0a\x20','\x20user\x20ID','tsWith(\x22','seString','\x20},\x0a\x20\x20\x20\x20','nOutboun','default\x22','\x0a\x09if\x20(!p','Ds\x20alway','rn\x20{\x0a\x20\x20\x20','ind:\x20\x22di','pKindPre','openclaw','nel-peer','aseStrin','wujieWei','oundBase','g(accoun','o.endsWi','inOutbou','\x22).trim(','annel).t','12oGSQRY','(\x22@im.we','\x20\x20\x20\x20\x20fro','/^(user|','el).trim','sion;','?\x20\x22direc','\x20\x20\x20\x20\x20ret','nd-temp\x22','rectSess','\x20directo','eer:\x20{\x20k','solveWei','aw-weixi','rId)\x20{\x0a\x20','ixinDire','dmScope\x20','kSession','already-','im().toL','if\x20(!to.','rams)\x20{\x0a','\x20\x20\x20\x20\x20ses','?\x20\x22\x22).tr','to\x20})\x20=>','zeWeixin','\x20\x20if\x20(!t','ype:\x20({\x20','ams.acco','tSession','channel|','}`,\x0a\x20\x20\x20\x20','im();\x0a\x20\x20','ccountId','edAgentI','ixin\x22)\x20r','t(to).en','(!trimme','sionKey(','\x20\x20\x20\x20\x20\x20\x20l','sionKey,','n\x20null;','\x20:\x20raw;\x0a','eerId.en','\x0a\x20\x20\x20\x20\x20\x20\x20','=\x20{\x0a\x09\x09ki','Id\x20||\x20\x22m','echat\x22)\x20','y\x20lookup','id:\x20peer','-resolve','\x20baseSes','??\x20\x22main','replace','el)\x20{\x0a\x09c','d):/i,\x20\x22','function',':\x20{\x0a\x20\x20\x20\x20','.target?','@im.wech','ndSessio','\x20\x20\x20\x20}\x0a\x20\x20','Id:\x20(raw','ImPeerId','(params?','tKind\x20=\x20','ePreferr','tId)\x20{\x0a\x20','\x20undefin','\x20\x20\x20\x20mess','OrEmpty(','accountI','d:\x20\x22dire','Id\x0a\x09};\x0a\x09','-weixin:','\x20\x20\x20\x20\x20\x20lo','fallback','LowerCas','d)\x20retur','.toLower',',\x20\x22\x22).tr','e().star','rovider.','y,\x0a\x09\x09pee','P_DIR\x20=\x20','inImDire','erId}`,\x0a','sionKey:','g,\x20param','WeixinRo','olveOutb','sWith(\x22@','target,\x20','ser:${pe','withoutP','t\x20withou','ujieReso','ionRoute','Scope\x20==','=\x20wujieN','params.c','1128690JEFrsr','el}:${pe','peerId)\x20','ain\x22;\x0a\x20\x20','\x20chatTyp','echat\x22),','endsWith','\x20`agent:','dSession','rams.cha','n\x20user\x20I','\x20\x20\x20\x20\x20pee','\x20channel','();\x0a\x09if\x20','lveWeixi','fix(with','\x20const\x20s','found','(),\x20\x22wei','\x20\x22\x22),\x20ch','=\x20raw.to','reat\x20as\x20','ey({\x0a\x09\x09c','replace(','gentId}:','\x20\x20\x20\x20cons','director','4JXTswJ','dAgentId','()\x20||\x20\x22m','xin\x22;\x0a\x20\x20','\x20=>\x20raw.','urn\x20wuji','r,\x0a\x09\x09cha','\x20inferTa','xin/medi','eerId)\x20r','\x20\x20};\x0a}','s.agentI','untId);\x0a','wujieNor','awTmpDir','WeixinDi','Type:\x20({','irect\x22\x20:','direct\x22\x20','path.joi','l}:${nor','Case()\x20|','izedAgen','aging:\x20{','\x20=\x20Strin','xin:${to','not-foun','eer\x22\x20&&\x20','const\x20wi','d,\x0a\x09\x09cha','\x20null;\x0a\x20','n(resolv','\x09\x09agentI','(value\x20?','dm|threa','thoutKin','malizeWe','h(\x22@im.w','sion(par','eixinImD','const\x20ba','und','\x20stripPr','\x0a\x09return','nRoute','group|co','hannel);','\x22;\x0a\x20\x20\x20\x20i','efix(par','eNormali','y:\x20sessi','der).rep','\x20to\x20})\x20=','\x20\x20\x20\x20\x20\x20\x20s','=\x20cfg?.s','irect\x20ID','.\x0a\x20\x20\x20\x20\x20\x20','existing','ng(agent','im.wecha','eat\x20as\x20d','(value)\x20','ry\x20looku','};\x0a}','eixinRou','ixinOutb','d.replac','567933XGdEvP','st\x20peerI'];_0x403e=function(){return _0x3b71d1;};return _0x403e();}function weixinPluginRouteHelperSource(){const _0x5c7e0b=_0x5896;return _0x5c7e0b(0x1b9)+_0x5c7e0b(0x25b)+_0x5c7e0b(0x16a)+_0x5c7e0b(0x241)+_0x5c7e0b(0x13f)+_0x5c7e0b(0x23e)+_0x5c7e0b(0x13d)+'nst\x20raw\x20'+'=\x20String'+_0x5c7e0b(0x222)+_0x5c7e0b(0x198)+'im();\x0a\x20\x20'+_0x5c7e0b(0x28a)+_0x5c7e0b(0x1df)+_0x5c7e0b(0x270)+'=\x20raw.to'+_0x5c7e0b(0x1ce)+_0x5c7e0b(0x1d2)+_0x5c7e0b(0x16d)+'openclaw'+_0x5c7e0b(0x1cb)+_0x5c7e0b(0x2cc)+_0x5c7e0b(0x2ce)+_0x5c7e0b(0x177)+'-weixin:'+_0x5c7e0b(0x15a)+').trim()'+_0x5c7e0b(0x1ab)+'\x20\x20\x20\x20cons'+_0x5c7e0b(0x1e0)+_0x5c7e0b(0x1c2)+_0x5c7e0b(0x1df)+_0x5c7e0b(0x1d3)+_0x5c7e0b(0x1fd)+_0x5c7e0b(0x184)+_0x5c7e0b(0x19f)+_0x5c7e0b(0x22e)+'nversati'+'on|room|'+_0x5c7e0b(0x223)+_0x5c7e0b(0x1b8)+_0x5c7e0b(0x17f)+_0x5c7e0b(0x13a)+'eturn\x20wi'+_0x5c7e0b(0x224)+'d.replac'+_0x5c7e0b(0x276)+_0x5c7e0b(0x1d1)+'im().toL'+_0x5c7e0b(0x287)+_0x5c7e0b(0x2a2)+_0x5c7e0b(0x2b5)+'ujieBuil'+_0x5c7e0b(0x2b7)+_0x5c7e0b(0x143)+_0x5c7e0b(0x1a7)+_0x5c7e0b(0x134)+_0x5c7e0b(0x298)+_0x5c7e0b(0x2c6)+_0x5c7e0b(0x1c4)+_0x5c7e0b(0x24b)+_0x5c7e0b(0x2ae)+_0x5c7e0b(0x1e4)+_0x5c7e0b(0x278)+_0x5c7e0b(0x1da)+_0x5c7e0b(0x288)+_0x5c7e0b(0x262)+_0x5c7e0b(0x24b)+_0x5c7e0b(0x1f2)+'\x20=\x20\x22open'+'claw-wei'+_0x5c7e0b(0x204)+_0x5c7e0b(0x28a)+_0x5c7e0b(0x28f)+_0x5c7e0b(0x1a3)+_0x5c7e0b(0x145)+_0x5c7e0b(0x23b)+_0x5c7e0b(0x1af)+_0x5c7e0b(0x290)+_0x5c7e0b(0x194)+'owerCase'+_0x5c7e0b(0x203)+_0x5c7e0b(0x1e9)+_0x5c7e0b(0x28a)+_0x5c7e0b(0x191)+_0x5c7e0b(0x237)+_0x5c7e0b(0x2b4)+_0x5c7e0b(0x191)+_0x5c7e0b(0x1b5)+_0x5c7e0b(0x230)+_0x5c7e0b(0x27c)+_0x5c7e0b(0x257)+_0x5c7e0b(0x2c2)+'unt-chan'+_0x5c7e0b(0x178)+_0x5c7e0b(0x2b1)+_0x5c7e0b(0x18f)+'\x20\x20\x20\x20\x20\x20\x20c'+_0x5c7e0b(0x139)+_0x5c7e0b(0x2c1)+'ccountId'+_0x5c7e0b(0x219)+_0x5c7e0b(0x17c)+_0x5c7e0b(0x29e)+_0x5c7e0b(0x171)+_0x5c7e0b(0x2a4)+_0x5c7e0b(0x1d0)+_0x5c7e0b(0x216)+_0x5c7e0b(0x2c7)+_0x5c7e0b(0x153)+_0x5c7e0b(0x188)+'urn\x20`age'+'nt:${nor'+_0x5c7e0b(0x2c1)+_0x5c7e0b(0x1fe)+'${channe'+_0x5c7e0b(0x215)+_0x5c7e0b(0x2c1)+_0x5c7e0b(0x1a2)+_0x5c7e0b(0x247)+':${peerI'+_0x5c7e0b(0x166)+_0x5c7e0b(0x123)+_0x5c7e0b(0x27c)+_0x5c7e0b(0x257)+(_0x5c7e0b(0x12f)+_0x5c7e0b(0x178)+'\x22\x20&&\x20pee'+_0x5c7e0b(0x18f)+'\x20\x20\x20\x20\x20\x20\x20r'+_0x5c7e0b(0x2ac)+'gent:${n'+_0x5c7e0b(0x278)+_0x5c7e0b(0x202)+_0x5c7e0b(0x26a)+_0x5c7e0b(0x2ba)+_0x5c7e0b(0x2bc)+_0x5c7e0b(0x2a6)+_0x5c7e0b(0x1be)+'\x20\x20if\x20(dm'+_0x5c7e0b(0x1e3)+_0x5c7e0b(0x2b3)+_0x5c7e0b(0x21c)+_0x5c7e0b(0x1e8)+'{\x0a\x20\x20\x20\x20\x20\x20'+'\x20\x20return'+'\x20`agent:'+'${normal'+_0x5c7e0b(0x217)+'tId}:dir'+_0x5c7e0b(0x2bc)+_0x5c7e0b(0x2a6)+'\x20\x20\x20\x20}\x0a\x20\x20'+'\x20\x20return'+_0x5c7e0b(0x1ed)+_0x5c7e0b(0x158)+_0x5c7e0b(0x217)+_0x5c7e0b(0x263)+_0x5c7e0b(0x138)+_0x5c7e0b(0x2b5)+_0x5c7e0b(0x1e1)+'lveWeixi'+_0x5c7e0b(0x170)+_0x5c7e0b(0x1ee)+_0x5c7e0b(0x246)+_0x5c7e0b(0x196)+'\x20\x20\x20\x20cons'+_0x5c7e0b(0x292)+_0x5c7e0b(0x15c)+_0x5c7e0b(0x160)+'xinRoute'+_0x5c7e0b(0x126)+_0x5c7e0b(0x293)+_0x5c7e0b(0x12c)+'o\x20??\x20par'+'ams?.tar'+'get\x20??\x20\x22'+_0x5c7e0b(0x27b)+_0x5c7e0b(0x195)+'endsWith'+_0x5c7e0b(0x182)+_0x5c7e0b(0x159)+_0x5c7e0b(0x2c3)+_0x5c7e0b(0x162)+_0x5c7e0b(0x1f6)+_0x5c7e0b(0x24d)+_0x5c7e0b(0x165)+_0x5c7e0b(0x249)+_0x5c7e0b(0x190)+_0x5c7e0b(0x14d)+'nKey(par'+_0x5c7e0b(0x24f)+'\x20params.'+_0x5c7e0b(0x155)+_0x5c7e0b(0x2c0)+_0x5c7e0b(0x19d)+_0x5c7e0b(0x20d)+'\x20\x20\x20\x20retu'+_0x5c7e0b(0x174)+_0x5c7e0b(0x197)+_0x5c7e0b(0x1a9)+_0x5c7e0b(0x1ad)+_0x5c7e0b(0x1b4)+_0x5c7e0b(0x1d8)+'\x20session'+_0x5c7e0b(0x146)+_0x5c7e0b(0x1f1)+_0x5c7e0b(0x255)+_0x5c7e0b(0x1c9)+_0x5c7e0b(0x250)+_0x5c7e0b(0x16b)+'\x20\x20\x20\x20\x20\x20\x20c'+_0x5c7e0b(0x148)+'\x20\x22direct'+'\x22,\x0a\x20\x20\x20\x20\x20'+_0x5c7e0b(0x252)+'\x20`opencl'+_0x5c7e0b(0x18e)+_0x5c7e0b(0x151)+',\x0a\x20\x20\x20\x20\x20\x20'+'\x20\x20to:\x20`u'+_0x5c7e0b(0x289)+_0x5c7e0b(0x1a0)+_0x5c7e0b(0x240));}function weixinCoreFallbackHelperSource(){const _0x572583=_0x5896;return'function'+_0x572583(0x25b)+_0x572583(0x16a)+'eixinImP'+'eerId(ra'+_0x572583(0x297)+_0x572583(0x1b7)+'onst\x20wit'+'houtProv'+_0x572583(0x26d)+'tripProv'+_0x572583(0x2c5)+_0x572583(0x294)+'g(raw\x20??'+_0x572583(0x1f9)+_0x572583(0x180)+_0x572583(0x266)+_0x572583(0x21d)+_0x572583(0x224)+_0x572583(0x142)+_0x572583(0x176)+_0x572583(0x1f5)+'outProvi'+_0x572583(0x234)+'lace(/^g'+'-/i,\x20\x22\x22)'+'.trim();'+_0x572583(0x26c)+_0x572583(0x2b0)+_0x572583(0x154)+_0x572583(0x14c)+_0x572583(0x179)+_0x572583(0x2b9)+_0x572583(0x267)+_0x572583(0x269)+_0x572583(0x25e)+_0x572583(0x1ac)+'dsWith(\x22'+'@im.wech'+_0x572583(0x299)+'eerId\x20:\x20'+'\x22\x22;\x0a}\x0afu'+_0x572583(0x2b5)+_0x572583(0x1e1)+_0x572583(0x1f4)+_0x572583(0x135)+_0x572583(0x29a)+_0x572583(0x192)+'(params)'+_0x572583(0x2bd)+_0x572583(0x28f)+_0x572583(0x14a)+_0x572583(0x16e)+_0x572583(0x1c7)+_0x572583(0x1e5)+_0x572583(0x29b)+'!==\x20\x22ope'+_0x572583(0x12b)+_0x572583(0x1a4)+_0x572583(0x2c8)+_0x572583(0x15d)+_0x572583(0x245)+'d\x20=\x20wuji'+_0x572583(0x232)+_0x572583(0x19a)+_0x572583(0x1c0)+'(params.'+_0x572583(0x1dd)+'params.c'+_0x572583(0x22f)+_0x572583(0x172)+_0x572583(0x20a)+_0x572583(0x2c8)+_0x572583(0x15d)+'st\x20peer\x20'+_0x572583(0x1ae)+_0x572583(0x168)+'ect\x22,\x0a\x09\x09'+_0x572583(0x1b2)+_0x572583(0x1ca)+_0x572583(0x229)+'seSessio'+_0x572583(0x26f)+_0x572583(0x2a5)+_0x572583(0x17b)+'SessionK'+_0x572583(0x1fc)+'fg:\x20para'+'ms.cfg,\x0a'+_0x572583(0x221)+_0x572583(0x273)+_0x572583(0x20c)+_0x572583(0x21e)+_0x572583(0x256)+_0x572583(0x1ef)+_0x572583(0x131)+_0x572583(0x1c8)+'d:\x20param'+_0x572583(0x169)+'tId,\x0a\x09\x09p'+'eer\x0a\x09});'+_0x572583(0x22c)+_0x572583(0x27f)+'sionKey:'+_0x572583(0x1b4)+_0x572583(0x1a9)+_0x572583(0x248)+_0x572583(0x24d)+_0x572583(0x1d4)+_0x572583(0x207)+'tType:\x20\x22'+_0x572583(0x258)+_0x572583(0x268)+'\x20`${para'+_0x572583(0x137)+_0x572583(0x1e7)+_0x572583(0x1d7)+'\x09\x09to:\x20`u'+_0x572583(0x1de)+_0x572583(0x260)+_0x572583(0x240);}function replaceFunction(_0x256bcd,_0x81da64,_0x55c6a3){const _0x5c404a=_0x5896,_0x1ab5c5=_0x256bcd[_0x5c404a(0x132)]('function'+'\x20'+_0x81da64);if(_0x1ab5c5===-0x1)return null;const _0x403212=_0x256bcd[_0x5c404a(0x132)]('{',_0x1ab5c5);if(_0x403212===-0x1)return null;let _0xf0de1c=0x0,_0x2d39bd=null,_0x2e444c=![];for(let _0x1089d7=_0x403212;_0x1089d7<_0x256bcd['length'];_0x1089d7+=0x1){const _0x19a4f4=_0x256bcd[_0x1089d7];if(_0x2d39bd){if(_0x2e444c){_0x2e444c=![];continue;}if(_0x19a4f4==='\x5c'){_0x2e444c=!![];continue;}if(_0x19a4f4===_0x2d39bd)_0x2d39bd=null;continue;}if(_0x19a4f4==='\x22'||_0x19a4f4==='\x27'||_0x19a4f4==='`'){_0x2d39bd=_0x19a4f4;continue;}if(_0x19a4f4==='{')_0xf0de1c+=0x1;if(_0x19a4f4==='}')_0xf0de1c-=0x1;if(_0xf0de1c===0x0)return _0x256bcd['slice'](0x0,_0x1ab5c5)+_0x55c6a3+_0x256bcd[_0x5c404a(0x283)](_0x1089d7+0x1);}return null;}function _0x5896(_0x1e6070,_0x3811a7){_0x1e6070=_0x1e6070-0x123;const _0x403e29=_0x403e();let _0x5896d3=_0x403e29[_0x1e6070];return _0x5896d3;}function upgradeExistingWeixinOutboundSessionRoutePatch(_0x77dba6){const _0x1991d1=_0x5896;let _0x2455c8=replaceFunction(_0x77dba6,_0x1991d1(0x20e)+_0x1991d1(0x225)+'ixinPeer'+'Id',_0x1991d1(0x1b9)+_0x1991d1(0x25b)+_0x1991d1(0x16a)+_0x1991d1(0x241)+_0x1991d1(0x13f)+_0x1991d1(0x23e)+_0x1991d1(0x13d)+_0x1991d1(0x2bb)+'=\x20String'+_0x1991d1(0x222)+_0x1991d1(0x198)+_0x1991d1(0x1a1)+_0x1991d1(0x28a)+'withoutP'+_0x1991d1(0x270)+_0x1991d1(0x1fa)+'LowerCas'+_0x1991d1(0x1d2)+_0x1991d1(0x16d)+_0x1991d1(0x177)+_0x1991d1(0x1cb)+_0x1991d1(0x2cc)+_0x1991d1(0x2ce)+_0x1991d1(0x177)+_0x1991d1(0x1cb)+_0x1991d1(0x15a)+_0x1991d1(0x2a4)+_0x1991d1(0x1ab)+_0x1991d1(0x1ff)+_0x1991d1(0x1e0)+_0x1991d1(0x1c2)+'withoutP'+'rovider.'+_0x1991d1(0x1fd)+_0x1991d1(0x184)+_0x1991d1(0x19f)+'group|co'+_0x1991d1(0x275)+_0x1991d1(0x130)+_0x1991d1(0x223)+_0x1991d1(0x1b8)+_0x1991d1(0x17f)+_0x1991d1(0x13a)+_0x1991d1(0x2c9)+_0x1991d1(0x224)+_0x1991d1(0x243)+'e(/^g-/i'+_0x1991d1(0x1d1)+_0x1991d1(0x194)+_0x1991d1(0x287)+_0x1991d1(0x282));if(!_0x2455c8)return{'patched':![],'reason':_0x1991d1(0x23a)+_0x1991d1(0x285)+_0x1991d1(0x156)+_0x1991d1(0x1f7)};_0x2455c8=replaceFunction(_0x2455c8,_0x1991d1(0x136)+_0x1991d1(0x2c4)+_0x1991d1(0x17e)+_0x1991d1(0x1bd)+_0x1991d1(0x22d),_0x1991d1(0x1b9)+_0x1991d1(0x261)+_0x1991d1(0x18d)+_0x1991d1(0x279)+_0x1991d1(0x133)+_0x1991d1(0x157)+_0x1991d1(0x28e)+_0x1991d1(0x13d)+_0x1991d1(0x2aa)+_0x1991d1(0x25b)+_0x1991d1(0x16a)+_0x1991d1(0x241)+_0x1991d1(0x13f)+_0x1991d1(0x1c1)+_0x1991d1(0x1bb)+'.to\x20??\x20p'+_0x1991d1(0x293)+'arget\x20??'+'\x20\x22\x22);\x0a\x20\x20'+_0x1991d1(0x19b)+_0x1991d1(0x17d)+_0x1991d1(0x15f)+_0x1991d1(0x251)+_0x1991d1(0x274)+_0x1991d1(0x21f)+_0x1991d1(0x24b)+_0x1991d1(0x284)+_0x1991d1(0x27e)+_0x1991d1(0x141)+'WeixinDi'+_0x1991d1(0x18a)+_0x1991d1(0x281)+'arams.cf'+_0x1991d1(0x1d9)+'s.agentI'+'d,\x20to,\x20p'+_0x1991d1(0x29c)+_0x1991d1(0x26e)+_0x1991d1(0x150)+'turn\x20{\x0a\x20'+_0x1991d1(0x236)+_0x1991d1(0x24d)+_0x1991d1(0x2ad)+_0x1991d1(0x2a8)+_0x1991d1(0x24d)+_0x1991d1(0x233)+_0x1991d1(0x295)+'\x20\x20\x20\x20\x20\x20\x20p'+_0x1991d1(0x18c)+_0x1991d1(0x175)+'rect\x22,\x20i'+_0x1991d1(0x24e)+_0x1991d1(0x1ad)+_0x1991d1(0x1ea)+'e:\x20\x22dire'+_0x1991d1(0x2a7)+_0x1991d1(0x183)+'m:\x20`open'+_0x1991d1(0x272)+_0x1991d1(0x21a)+'}`,\x0a\x20\x20\x20\x20'+_0x1991d1(0x2a0)+'`user:${'+_0x1991d1(0x2a3)+_0x1991d1(0x20b));if(!_0x2455c8)return{'patched':![],'reason':_0x1991d1(0x23a)+_0x1991d1(0x1b3)+'r-not-fo'+_0x1991d1(0x22a)};return _0x2455c8=_0x2455c8[_0x1991d1(0x127)+'ll'](_0x1991d1(0x20e)+'malizeWe'+'ixinPeer'+_0x1991d1(0x24c),_0x1991d1(0x20e)+_0x1991d1(0x225)+'ixinRout'+'eTarget('+'to)')[_0x1991d1(0x1b6)](_0x1991d1(0x25c)+_0x1991d1(0x2be)+_0x1991d1(0x19c)+_0x1991d1(0x199)+'\x20String('+_0x1991d1(0x259)+_0x1991d1(0x2a4)+'.endsWit'+_0x1991d1(0x226)+_0x1991d1(0x1b0)+_0x1991d1(0x187)+_0x1991d1(0x2cb)+'efined,',_0x1991d1(0x25c)+_0x1991d1(0x2be)+'ype:\x20({\x20'+'to\x20})\x20=>'+_0x1991d1(0x25b)+_0x1991d1(0x16a)+_0x1991d1(0x241)+_0x1991d1(0x13f)+'(to).end'+_0x1991d1(0x1dc)+_0x1991d1(0x23c)+'t\x22)\x20?\x20\x22d'+_0x1991d1(0x212)+_0x1991d1(0x1c5)+_0x1991d1(0x24a)),{'patched':!![],'source':_0x2455c8};}
@@ -1 +1 @@
1
- function _0x2e0d(_0x21f442,_0xa98f67){_0x21f442=_0x21f442-0x14d;const _0x3e220b=_0x3e22();let _0x2e0d36=_0x3e220b[_0x21f442];return _0x2e0d36;}(function(_0x4b2a87,_0x1b8fc6){const _0x1ce40f=_0x2e0d,_0x14f6f6=_0x4b2a87();while(!![]){try{const _0xc0252d=-parseInt(_0x1ce40f(0x151))/0x1*(-parseInt(_0x1ce40f(0x167))/0x2)+-parseInt(_0x1ce40f(0x15a))/0x3+parseInt(_0x1ce40f(0x15d))/0x4*(parseInt(_0x1ce40f(0x169))/0x5)+-parseInt(_0x1ce40f(0x166))/0x6+parseInt(_0x1ce40f(0x16a))/0x7*(parseInt(_0x1ce40f(0x14d))/0x8)+parseInt(_0x1ce40f(0x154))/0x9*(-parseInt(_0x1ce40f(0x15f))/0xa)+-parseInt(_0x1ce40f(0x15b))/0xb*(-parseInt(_0x1ce40f(0x14f))/0xc);if(_0xc0252d===_0x1b8fc6)break;else _0x14f6f6['push'](_0x14f6f6['shift']());}catch(_0x9a16ca){_0x14f6f6['push'](_0x14f6f6['shift']());}}}(_0x3e22,0x7fe78));function _0x3e22(){const _0x30b84e=['1395423aIAHpa','disabled','length','entries','legacyPl','source','3032436gxcVCP','39963WaUfmI','keys','356604IfEmKt','filter','50vdFbBj','AllowPlu','installs','includes','allow','enabled','ByDefaul','6015420EzhVKC','6VkNFSC','preserve','35TLrLqe','7RxFCmj','4938096RQrZHq','tPluginI','3780nOKULB','uginIdsB','308933bgrAPt','has','pluginId'];_0x3e22=function(){return _0x30b84e;};return _0x3e22();}import{asRecord,asStringArray,dedupeStrings,getTrimmedString}from'../common/utils.mjs';export function syncRuntimeManifestPlugins(_0x54aec2,_0x311193,_0xf60cb2={}){const _0x5a5c7b=_0x2e0d,_0x4c2d3e=new Set(_0xf60cb2[_0x5a5c7b(0x155)+_0x5a5c7b(0x165)+_0x5a5c7b(0x14e)+'ds']??[]),_0x2f7b1e=asRecord(_0xf60cb2[_0x5a5c7b(0x158)+_0x5a5c7b(0x150)+'yPluginI'+'d']),_0x1dee20=new Set(_0xf60cb2[_0x5a5c7b(0x168)+_0x5a5c7b(0x160)+'ginIds']??[]),_0x40a5e2={...asRecord(_0x54aec2)},_0x140499={...asRecord(_0x40a5e2[_0x5a5c7b(0x157)])},_0x6b6320={...asRecord(_0x40a5e2[_0x5a5c7b(0x161)])};let _0x3eb4f9=asStringArray(_0x40a5e2[_0x5a5c7b(0x163)]),_0x433b2d=![];for(const _0x263ce4 of _0x311193??[]){const _0xce5c62=getTrimmedString(_0x263ce4[_0x5a5c7b(0x153)]);if(!_0xce5c62)continue;const _0x59521c=asStringArray(_0x2f7b1e[_0xce5c62]);for(const _0x5c5f25 of _0x59521c){_0x5c5f25 in _0x140499&&(_0x140499[_0xce5c62]={...asRecord(_0x140499[_0xce5c62]),...asRecord(_0x140499[_0x5c5f25])},delete _0x140499[_0x5c5f25],_0x433b2d=!![]);}if(_0x59521c[_0x5a5c7b(0x156)]>0x0){const _0x4f726b=_0x3eb4f9[_0x5a5c7b(0x15e)](_0x1076d9=>!_0x59521c[_0x5a5c7b(0x162)](_0x1076d9));_0x4f726b[_0x5a5c7b(0x156)]!==_0x3eb4f9['length']&&(_0x3eb4f9=_0x4f726b,_0x433b2d=!![]);}!(_0xce5c62 in _0x140499)&&(_0x140499[_0xce5c62]={'enabled':!_0x4c2d3e[_0x5a5c7b(0x152)](_0xce5c62)},_0x433b2d=!![]);if(asRecord(_0x140499[_0xce5c62])[_0x5a5c7b(0x164)]!==![]){const _0x5f2469=dedupeStrings([..._0x3eb4f9,_0xce5c62]);_0x5f2469[_0x5a5c7b(0x156)]!==_0x3eb4f9[_0x5a5c7b(0x156)]&&(_0x3eb4f9=_0x5f2469,_0x433b2d=!![]);}getTrimmedString(_0x263ce4[_0x5a5c7b(0x159)])==='local'&&_0xce5c62 in _0x6b6320&&(delete _0x6b6320[_0xce5c62],_0x433b2d=!![]);}_0x40a5e2['entries']=_0x140499,_0x40a5e2['allow']=dedupeStrings([..._0x3eb4f9,...[..._0x1dee20]['filter'](_0x3746c0=>{const _0x7562ba=_0x5a5c7b,_0x59679c=asRecord(_0x140499[_0x3746c0]);return _0x59679c[_0x7562ba(0x164)]!==![];})]);if(Object[_0x5a5c7b(0x15c)](_0x6b6320)[_0x5a5c7b(0x156)]>0x0)_0x40a5e2[_0x5a5c7b(0x161)]=_0x6b6320;else delete _0x40a5e2[_0x5a5c7b(0x161)];return{'plugins':_0x40a5e2,'changed':_0x433b2d};}
1
+ (function(_0x3a7519,_0x23eb14){const _0x299e9c=_0x4503,_0x1bb5d6=_0x3a7519();while(!![]){try{const _0x37c1c0=-parseInt(_0x299e9c(0xfd))/0x1+parseInt(_0x299e9c(0xef))/0x2*(-parseInt(_0x299e9c(0x101))/0x3)+parseInt(_0x299e9c(0xf2))/0x4*(parseInt(_0x299e9c(0xfa))/0x5)+parseInt(_0x299e9c(0xf6))/0x6*(parseInt(_0x299e9c(0xf7))/0x7)+-parseInt(_0x299e9c(0xf0))/0x8*(-parseInt(_0x299e9c(0xfc))/0x9)+-parseInt(_0x299e9c(0x108))/0xa*(-parseInt(_0x299e9c(0xea))/0xb)+-parseInt(_0x299e9c(0xeb))/0xc*(parseInt(_0x299e9c(0x103))/0xd);if(_0x37c1c0===_0x23eb14)break;else _0x1bb5d6['push'](_0x1bb5d6['shift']());}catch(_0xd10533){_0x1bb5d6['push'](_0x1bb5d6['shift']());}}}(_0x224e,0xe663f));function _0x224e(){const _0x451450=['disabled','legacyPl','5025630fufGQE','14QklPAf','ginIds','length','12365lPyVQz','enabled','406242THFOYa','1760858GBlvwg','source','filter','local','3UgtxHL','AllowPlu','167479IsPBlW','entries','yPluginI','includes','tPluginI','18465490VXpzSx','keys','11CSpPcn','1788bSGQwb','ByDefaul','has','installs','996942KQjish','232TacNHG','allow','472kxTAHG','uginIdsB'];_0x224e=function(){return _0x451450;};return _0x224e();}import{asRecord,asStringArray,dedupeStrings,getTrimmedString}from'../common/utils.mjs';function _0x4503(_0x1d6dcc,_0x847a62){_0x1d6dcc=_0x1d6dcc-0xea;const _0x224e72=_0x224e();let _0x450321=_0x224e72[_0x1d6dcc];return _0x450321;}export function syncRuntimeManifestPlugins(_0x15f98f,_0x1955de,_0xe09186={}){const _0x20a338=_0x4503,_0x575c8e=new Set(_0xe09186[_0x20a338(0xf4)+_0x20a338(0xec)+_0x20a338(0x107)+'ds']??[]),_0x211caa=asRecord(_0xe09186[_0x20a338(0xf5)+_0x20a338(0xf3)+_0x20a338(0x105)+'d']),_0x4fd58c=new Set(_0xe09186['preserve'+_0x20a338(0x102)+_0x20a338(0xf8)]??[]),_0x368a2f={...asRecord(_0x15f98f)},_0x25e37b={...asRecord(_0x368a2f[_0x20a338(0x104)])},_0x50c2d1={...asRecord(_0x368a2f['installs'])};let _0x7c405e=asStringArray(_0x368a2f['allow']),_0x91b568=![];for(const _0x374fa9 of _0x1955de??[]){const _0x2030ae=getTrimmedString(_0x374fa9['pluginId']);if(!_0x2030ae)continue;const _0x2b5d09=asStringArray(_0x211caa[_0x2030ae]);for(const _0x1503f7 of _0x2b5d09){_0x1503f7 in _0x25e37b&&(_0x25e37b[_0x2030ae]={...asRecord(_0x25e37b[_0x2030ae]),...asRecord(_0x25e37b[_0x1503f7])},delete _0x25e37b[_0x1503f7],_0x91b568=!![]);}if(_0x2b5d09[_0x20a338(0xf9)]>0x0){const _0x1dcaaa=_0x7c405e[_0x20a338(0xff)](_0x3910ac=>!_0x2b5d09[_0x20a338(0x106)](_0x3910ac));_0x1dcaaa['length']!==_0x7c405e[_0x20a338(0xf9)]&&(_0x7c405e=_0x1dcaaa,_0x91b568=!![]);}!(_0x2030ae in _0x25e37b)&&(_0x25e37b[_0x2030ae]={'enabled':!_0x575c8e[_0x20a338(0xed)](_0x2030ae)},_0x91b568=!![]);if(asRecord(_0x25e37b[_0x2030ae])[_0x20a338(0xfb)]!==![]){const _0x37df04=dedupeStrings([..._0x7c405e,_0x2030ae]);_0x37df04[_0x20a338(0xf9)]!==_0x7c405e['length']&&(_0x7c405e=_0x37df04,_0x91b568=!![]);}getTrimmedString(_0x374fa9[_0x20a338(0xfe)])===_0x20a338(0x100)&&_0x2030ae in _0x50c2d1&&(delete _0x50c2d1[_0x2030ae],_0x91b568=!![]);}_0x368a2f[_0x20a338(0x104)]=_0x25e37b,_0x368a2f[_0x20a338(0xf1)]=dedupeStrings([..._0x7c405e,...[..._0x4fd58c][_0x20a338(0xff)](_0x19a140=>{const _0x41bd63=_0x20a338,_0x9b133e=asRecord(_0x25e37b[_0x19a140]);return _0x9b133e[_0x41bd63(0xfb)]!==![];})]);if(Object[_0x20a338(0x109)](_0x50c2d1)[_0x20a338(0xf9)]>0x0)_0x368a2f[_0x20a338(0xee)]=_0x50c2d1;else delete _0x368a2f[_0x20a338(0xee)];return{'plugins':_0x368a2f,'changed':_0x91b568};}
@@ -1 +1 @@
1
- const _0x47226f=_0x2260;(function(_0x5769d0,_0x5c774c){const _0x5c0fed=_0x2260,_0x1f1903=_0x5769d0();while(!![]){try{const _0x5be07d=parseInt(_0x5c0fed(0x1f5))/0x1+parseInt(_0x5c0fed(0x1f0))/0x2+-parseInt(_0x5c0fed(0x202))/0x3*(-parseInt(_0x5c0fed(0x20e))/0x4)+-parseInt(_0x5c0fed(0x1f6))/0x5+parseInt(_0x5c0fed(0x215))/0x6+parseInt(_0x5c0fed(0x205))/0x7+-parseInt(_0x5c0fed(0x21e))/0x8;if(_0x5be07d===_0x5c774c)break;else _0x1f1903['push'](_0x1f1903['shift']());}catch(_0x4c97c2){_0x1f1903['push'](_0x1f1903['shift']());}}}(_0x7b3f,0xd174f));import{existsSync}from'node:fs';import{copyFile,mkdir,readFile,writeFile}from'node:fs/promises';import{dirname,extname,join}from'node:path';import{asRecord}from'../common/utils.mjs';import{createSessionSqliteStore}from'./session-sqlite-store.mjs';const CLONED_AGENT_SESSION_EXCLUDED_FIELDS=new Set([_0x47226f(0x1fe)+'ey',_0x47226f(0x20b)+'d',_0x47226f(0x1ff),_0x47226f(0x220)+_0x47226f(0x1fa)]);function extractAgentIdFromSessionKey(_0x1c628b){const _0x98ac5c=_0x47226f,_0x348d7e=String(_0x1c628b||'')[_0x98ac5c(0x21f)](':'),_0x5a0279=_0x348d7e[0x1]?.[_0x98ac5c(0x223)]();return _0x5a0279||'main';}function _0x2260(_0x3deb08,_0x31eeee){_0x3deb08=_0x3deb08-0x1ed;const _0x7b3fa1=_0x7b3f();let _0x2260b6=_0x7b3fa1[_0x3deb08];return _0x2260b6;}function resolveNewSessionFilePath(_0x2734d9,_0x4d0455,_0x3ff3fe,_0x4bc57c,_0x433730){const _0x40ac0a=_0x47226f,_0x59256d=typeof _0x4d0455[_0x40ac0a(0x220)+_0x40ac0a(0x1fa)]===_0x40ac0a(0x1f7)?_0x4d0455['sessionF'+_0x40ac0a(0x1fa)][_0x40ac0a(0x223)]():'';if(_0x59256d)return _0x59256d;const _0xf815ce=_0x3ff3fe&&typeof _0x3ff3fe[_0x40ac0a(0x220)+_0x40ac0a(0x1fa)]==='string'?extname(_0x3ff3fe[_0x40ac0a(0x220)+_0x40ac0a(0x1fa)][_0x40ac0a(0x223)]()):'';return join(_0x2734d9,_0x40ac0a(0x225),_0x433730,_0x40ac0a(0x211),''+_0x4bc57c+(_0xf815ce||_0x40ac0a(0x227)));}function cloneForkedSessionExtraFields(_0x19147f){const _0x15458f=_0x47226f;if(!_0x19147f)return{};const _0x484e6b={};for(const [_0x1250f5,_0xd2a66]of Object[_0x15458f(0x1f9)](_0x19147f)){if(CLONED_AGENT_SESSION_EXCLUDED_FIELDS['has'](_0x1250f5))continue;_0x484e6b[_0x1250f5]=_0xd2a66;}return _0x484e6b;}async function copySessionFileIfNeeded(_0x2c1273,_0x326838){const _0x467d61=_0x47226f;if(!_0x2c1273||!_0x326838)return;const _0x55cc4d=typeof _0x2c1273[_0x467d61(0x220)+'ile']===_0x467d61(0x1f7)?_0x2c1273[_0x467d61(0x220)+_0x467d61(0x1fa)][_0x467d61(0x223)]():'',_0xdb7755=String(_0x326838||'')[_0x467d61(0x223)]();if(!_0x55cc4d||!_0xdb7755||_0x55cc4d===_0xdb7755)return;if(!existsSync(_0x55cc4d))return;await mkdir(dirname(_0xdb7755),{'recursive':!![]}),await copyFile(_0x55cc4d,_0xdb7755);}function _0x7b3f(){const _0x477a98=['ssionKey','join','sessions','assistan','timestam','content','4908258HxPYbd','agentId','getSessi','keys','pop','quired','utf8','push','ionEntry','9466344oAJgWX','split','sessionF','filter','agent','trim','includes','agents','text','.jsonl','lTs','keepUnti','_INFINIT','2054534EYglzK','cutoffRo','parse','map','d\x20is\x20req','910339FryyYB','6352015PLYYNJ','string','role','entries','ile','message','session','user','sessionK','label','length','onsMap','113838NYFYvG','cutoffTe','readSess','1501276sCerfr','isFinite','main','uired','POSITIVE','type','sessionI','number','upsertSe','36OAwulx'];_0x7b3f=function(){return _0x477a98;};return _0x7b3f();}function extractMessageEntryText(_0x4a0c9e){const _0x25f8bb=_0x47226f,_0x165e7b=asRecord(_0x4a0c9e[_0x25f8bb(0x1fb)]),_0x47929a=_0x165e7b[_0x25f8bb(0x214)];if(typeof _0x47929a===_0x25f8bb(0x1f7))return _0x47929a;if(!Array['isArray'](_0x47929a))return'';return _0x47929a[_0x25f8bb(0x1f3)](_0x4070f5=>{const _0x19cf2e=_0x25f8bb,_0x313362=asRecord(_0x4070f5);return _0x313362[_0x19cf2e(0x20a)]==='text'&&typeof _0x313362[_0x19cf2e(0x226)]===_0x19cf2e(0x1f7)?_0x313362[_0x19cf2e(0x226)]:'';})[_0x25f8bb(0x221)](Boolean)[_0x25f8bb(0x210)]('\x0a');}function extractMessageEntryRole(_0x5035f9){const _0x5e0116=_0x47226f,_0x175383=asRecord(_0x5035f9[_0x5e0116(0x1fb)]);if(typeof _0x175383[_0x5e0116(0x1f8)]==='string')return _0x175383[_0x5e0116(0x1f8)];if(typeof _0x5035f9[_0x5e0116(0x1f8)]==='string')return _0x5035f9['role'];return'';}function parseJsonLine(_0x550f5f){const _0x6a338f=_0x47226f;try{const _0x23514a=JSON[_0x6a338f(0x1f2)](_0x550f5f);return asRecord(_0x23514a);}catch{return null;}}function entryTimestampMs(_0x57231a){const _0x22d45c=_0x47226f,_0x1ed6fb=_0x57231a[_0x22d45c(0x213)+'p'];if(typeof _0x1ed6fb===_0x22d45c(0x1f7)){const _0xbb0a38=Date[_0x22d45c(0x1f2)](_0x1ed6fb);return Number[_0x22d45c(0x206)](_0xbb0a38)?_0xbb0a38:null;}if(typeof _0x1ed6fb===_0x22d45c(0x20c)&&Number[_0x22d45c(0x206)](_0x1ed6fb))return _0x1ed6fb;return null;}async function trimSessionFileForFork(_0x31a3b9,_0x5099c4){const _0x306bb4=_0x47226f;if(!_0x31a3b9||!existsSync(_0x31a3b9))return;const {keepUntilTs:_0x12b610,cutoffRole:_0x5bbe1f,cutoffText:_0x52151b}=_0x5099c4,_0xca1940=typeof _0x12b610===_0x306bb4(0x20c)&&Number[_0x306bb4(0x206)](_0x12b610),_0x2a82e3=typeof _0x52151b===_0x306bb4(0x1f7)?_0x52151b[_0x306bb4(0x223)]():'',_0x1a5efd=_0x5bbe1f===_0x306bb4(0x222)?_0x306bb4(0x212)+'t':_0x5bbe1f===_0x306bb4(0x1fd)?_0x306bb4(0x1fd):'',_0x229aec=Boolean(_0x1a5efd&&_0x2a82e3);if(!_0xca1940&&!_0x229aec)return;let _0x4bcfb0='';try{_0x4bcfb0=await readFile(_0x31a3b9,_0x306bb4(0x21b));}catch{return;}const _0x52ad87=_0x4bcfb0['split']('\x0a');let _0x1eb395=-0x1;const _0x3a874a=_0xca1940?_0x12b610+0xa*0x3c*0x3e8:Number[_0x306bb4(0x209)+_0x306bb4(0x1ef)+'Y'];if(_0x229aec)for(let _0x26de0d=0x0;_0x26de0d<_0x52ad87['length'];_0x26de0d+=0x1){const _0x274c07=_0x52ad87[_0x26de0d]['trim']();if(!_0x274c07)continue;const _0x15db08=parseJsonLine(_0x274c07);if(!_0x15db08||_0x15db08[_0x306bb4(0x20a)]!==_0x306bb4(0x1fb))continue;if(extractMessageEntryRole(_0x15db08)!==_0x1a5efd)continue;const _0x35cca1=extractMessageEntryText(_0x15db08)[_0x306bb4(0x223)]();if(!_0x35cca1||!_0x35cca1[_0x306bb4(0x224)](_0x2a82e3))continue;const _0x489595=entryTimestampMs(_0x15db08);if(_0x489595!==null&&_0x489595>_0x3a874a)continue;_0x1eb395=_0x26de0d;}let _0x426493=[];if(_0x1eb395>=0x0)_0x426493=_0x52ad87['slice'](0x0,_0x1eb395+0x1);else{if(_0xca1940)for(const _0x7e118 of _0x52ad87){const _0x1ddc45=_0x7e118[_0x306bb4(0x223)]();if(!_0x1ddc45)continue;const _0x19e4b3=parseJsonLine(_0x1ddc45);if(!_0x19e4b3){_0x426493[_0x306bb4(0x21c)](_0x7e118);continue;}if(_0x19e4b3['type']===_0x306bb4(0x1fc)){_0x426493[_0x306bb4(0x21c)](_0x7e118);continue;}const _0x5adb00=entryTimestampMs(_0x19e4b3);if(_0x5adb00===null||_0x5adb00<=_0x12b610)_0x426493['push'](_0x7e118);}}while(_0x426493['length']>0x0&&_0x426493[_0x426493[_0x306bb4(0x200)]-0x1][_0x306bb4(0x223)]()==='')_0x426493[_0x306bb4(0x219)]();await writeFile(_0x31a3b9,_0x426493['join']('\x0a')+'\x0a',_0x306bb4(0x21b));}export function createAgentSessionsMapStore({stateDir:_0x1e6742}){const _0x387b14=createSessionSqliteStore({'stateDir':_0x1e6742});async function _0x4ec315(_0x243d31={}){const _0x51107f=_0x2260,_0xe443e8=String(_0x243d31[_0x51107f(0x216)]||_0x51107f(0x207));return await _0x387b14[_0x51107f(0x217)+_0x51107f(0x201)](_0xe443e8);}async function _0xae7d7f(_0x513787={}){const _0x315b3d=_0x2260,_0x17db49=String(_0x513787[_0x315b3d(0x1fe)+'ey']||'')[_0x315b3d(0x223)](),_0x17ae27=String(_0x513787['sessionI'+'d']||'')[_0x315b3d(0x223)]();if(!_0x17db49)throw new Error(_0x315b3d(0x1fe)+'ey\x20is\x20re'+_0x315b3d(0x21a));if(!_0x17ae27)throw new Error(_0x315b3d(0x20b)+_0x315b3d(0x1f4)+_0x315b3d(0x208));const _0x585329=extractAgentIdFromSessionKey(_0x17db49),_0x3bd8fe=asRecord(await _0x387b14[_0x315b3d(0x204)+'ionEntry'](_0x17db49)),_0x4e5585=String(_0x513787['sourceSe'+_0x315b3d(0x20f)]||'')[_0x315b3d(0x223)](),_0x40c222=_0x4e5585?extractAgentIdFromSessionKey(_0x4e5585):_0x585329,_0x50e298=_0x4e5585?asRecord(await _0x387b14[_0x315b3d(0x204)+_0x315b3d(0x21d)](_0x4e5585)):null,_0x1d39dc=_0x50e298&&Object[_0x315b3d(0x218)](_0x50e298)['length']>0x0,_0x4b1394=resolveNewSessionFilePath(_0x1e6742,_0x3bd8fe,_0x1d39dc?_0x50e298:null,_0x17ae27,_0x585329),_0x2135d4=typeof _0x513787[_0x315b3d(0x1ee)+_0x315b3d(0x1ed)]==='number'&&Number[_0x315b3d(0x206)](_0x513787[_0x315b3d(0x1ee)+_0x315b3d(0x1ed)])?_0x513787[_0x315b3d(0x1ee)+_0x315b3d(0x1ed)]:null,_0x15be71=typeof _0x513787['cutoffRo'+'le']==='string'?_0x513787[_0x315b3d(0x1f1)+'le']:null,_0x47c277=typeof _0x513787['cutoffTe'+'xt']===_0x315b3d(0x1f7)?_0x513787[_0x315b3d(0x203)+'xt']:null,_0x1394b2={..._0x3bd8fe,...cloneForkedSessionExtraFields(_0x1d39dc?_0x50e298:null),'agentId':_0x585329,'sessionKey':_0x17db49,'sessionId':_0x17ae27,'sessionFile':_0x4b1394,..._0x1d39dc?{'forkedFromParent':!![]}:{}};return await copySessionFileIfNeeded(_0x1d39dc?_0x50e298:null,_0x4b1394),_0x1d39dc&&(_0x2135d4!==null||_0x15be71&&_0x47c277)&&await trimSessionFileForFork(_0x4b1394,{'keepUntilTs':_0x2135d4,'cutoffRole':_0x15be71,'cutoffText':_0x47c277}),await _0x387b14[_0x315b3d(0x20d)+'ssionEnt'+'ry']({'agentId':_0x585329,'sessionKey':_0x17db49,'entry':_0x1394b2}),await _0x387b14[_0x315b3d(0x217)+_0x315b3d(0x201)](_0x585329);}return{'get':_0x4ec315,'upsert':_0xae7d7f};}
1
+ const _0x10bbcf=_0x284c;(function(_0x32a423,_0x12505f){const _0x171b22=_0x284c,_0xc301c0=_0x32a423();while(!![]){try{const _0x1010ac=-parseInt(_0x171b22(0x1be))/0x1*(-parseInt(_0x171b22(0x19f))/0x2)+parseInt(_0x171b22(0x1bd))/0x3*(-parseInt(_0x171b22(0x18b))/0x4)+parseInt(_0x171b22(0x1b8))/0x5*(-parseInt(_0x171b22(0x1b0))/0x6)+-parseInt(_0x171b22(0x1ab))/0x7*(-parseInt(_0x171b22(0x1bc))/0x8)+parseInt(_0x171b22(0x1a4))/0x9*(parseInt(_0x171b22(0x184))/0xa)+-parseInt(_0x171b22(0x18c))/0xb+parseInt(_0x171b22(0x1a6))/0xc;if(_0x1010ac===_0x12505f)break;else _0xc301c0['push'](_0xc301c0['shift']());}catch(_0x316110){_0xc301c0['push'](_0xc301c0['shift']());}}}(_0x112b,0x68e31));function _0x284c(_0x10e8cf,_0x56fd8c){_0x10e8cf=_0x10e8cf-0x184;const _0x112b98=_0x112b();let _0x284c26=_0x112b98[_0x10e8cf];return _0x284c26;}import{existsSync}from'node:fs';function _0x112b(){const _0x51bb75=['text','push','sourceSe','cutoffTe','4204935wJuZiC','sessionI','8943312FyIQVc','lTs','onsMap','split','ile','28OzBeIj','keepUnti','sessionF','main','cutoffRo','4645788OSURxi','upsertSe','assistan','content','sessionK','uired','.jsonl','agent','5cyDBou','d\x20is\x20req','role','number','1014232PAXOKl','39FMsUwv','47WCxXrk','string','user','sessions','10NidaQA','_INFINIT','getSessi','length','readSess','label','has','99228OFTwXc','2431792cWJYip','pop','isFinite','timestam','map','ssionKey','includes','slice','utf8','entries','keys','message','agentId','trim','ey\x20is\x20re','ionEntry','join','parse','type','1186OGqZqr'];_0x112b=function(){return _0x51bb75;};return _0x112b();}import{copyFile,mkdir,readFile,writeFile}from'node:fs/promises';import{dirname,extname,join}from'node:path';import{asRecord}from'../common/utils.mjs';import{createSessionSqliteStore}from'./session-sqlite-store.mjs';const CLONED_AGENT_SESSION_EXCLUDED_FIELDS=new Set(['sessionK'+'ey',_0x10bbcf(0x1a5)+'d',_0x10bbcf(0x189),_0x10bbcf(0x1ad)+_0x10bbcf(0x1aa)]);function extractAgentIdFromSessionKey(_0x48b58c){const _0x326cf=_0x10bbcf,_0x3f2435=String(_0x48b58c||'')[_0x326cf(0x1a9)](':'),_0x44da07=_0x3f2435[0x1]?.[_0x326cf(0x199)]();return _0x44da07||_0x326cf(0x1ae);}function resolveNewSessionFilePath(_0x43b51b,_0x2ed0a5,_0x3f02af,_0x25488d,_0xe0f849){const _0x2586e4=_0x10bbcf,_0x3288f0=typeof _0x2ed0a5[_0x2586e4(0x1ad)+_0x2586e4(0x1aa)]===_0x2586e4(0x1bf)?_0x2ed0a5[_0x2586e4(0x1ad)+_0x2586e4(0x1aa)][_0x2586e4(0x199)]():'';if(_0x3288f0)return _0x3288f0;const _0x3b9394=_0x3f02af&&typeof _0x3f02af[_0x2586e4(0x1ad)+_0x2586e4(0x1aa)]===_0x2586e4(0x1bf)?extname(_0x3f02af['sessionF'+_0x2586e4(0x1aa)][_0x2586e4(0x199)]()):'';return join(_0x43b51b,'agents',_0xe0f849,_0x2586e4(0x1c1),''+_0x25488d+(_0x3b9394||_0x2586e4(0x1b6)));}function cloneForkedSessionExtraFields(_0x7416dc){const _0x4ae258=_0x10bbcf;if(!_0x7416dc)return{};const _0x6229d7={};for(const [_0x1e8eec,_0x4ebd1d]of Object[_0x4ae258(0x195)](_0x7416dc)){if(CLONED_AGENT_SESSION_EXCLUDED_FIELDS[_0x4ae258(0x18a)](_0x1e8eec))continue;_0x6229d7[_0x1e8eec]=_0x4ebd1d;}return _0x6229d7;}async function copySessionFileIfNeeded(_0xe9b7eb,_0x1e16f5){const _0x3b9772=_0x10bbcf;if(!_0xe9b7eb||!_0x1e16f5)return;const _0x4fb1dd=typeof _0xe9b7eb[_0x3b9772(0x1ad)+_0x3b9772(0x1aa)]===_0x3b9772(0x1bf)?_0xe9b7eb['sessionF'+_0x3b9772(0x1aa)][_0x3b9772(0x199)]():'',_0x3afb9e=String(_0x1e16f5||'')[_0x3b9772(0x199)]();if(!_0x4fb1dd||!_0x3afb9e||_0x4fb1dd===_0x3afb9e)return;if(!existsSync(_0x4fb1dd))return;await mkdir(dirname(_0x3afb9e),{'recursive':!![]}),await copyFile(_0x4fb1dd,_0x3afb9e);}function extractMessageEntryText(_0x343035){const _0xbefe9c=_0x10bbcf,_0x7208a2=asRecord(_0x343035[_0xbefe9c(0x197)]),_0x375001=_0x7208a2[_0xbefe9c(0x1b3)];if(typeof _0x375001==='string')return _0x375001;if(!Array['isArray'](_0x375001))return'';return _0x375001[_0xbefe9c(0x190)](_0x39ab0d=>{const _0x1d90a3=_0xbefe9c,_0x3f38a2=asRecord(_0x39ab0d);return _0x3f38a2['type']==='text'&&typeof _0x3f38a2['text']===_0x1d90a3(0x1bf)?_0x3f38a2[_0x1d90a3(0x1a0)]:'';})['filter'](Boolean)[_0xbefe9c(0x19c)]('\x0a');}function extractMessageEntryRole(_0x4d7a25){const _0x489b1e=_0x10bbcf,_0xb608f6=asRecord(_0x4d7a25['message']);if(typeof _0xb608f6[_0x489b1e(0x1ba)]===_0x489b1e(0x1bf))return _0xb608f6[_0x489b1e(0x1ba)];if(typeof _0x4d7a25[_0x489b1e(0x1ba)]===_0x489b1e(0x1bf))return _0x4d7a25[_0x489b1e(0x1ba)];return'';}function parseJsonLine(_0x45251c){try{const _0x2e2b9f=JSON['parse'](_0x45251c);return asRecord(_0x2e2b9f);}catch{return null;}}function entryTimestampMs(_0x31a426){const _0x1b7549=_0x10bbcf,_0x406f4d=_0x31a426[_0x1b7549(0x18f)+'p'];if(typeof _0x406f4d===_0x1b7549(0x1bf)){const _0x5e465a=Date[_0x1b7549(0x19d)](_0x406f4d);return Number[_0x1b7549(0x18e)](_0x5e465a)?_0x5e465a:null;}if(typeof _0x406f4d===_0x1b7549(0x1bb)&&Number['isFinite'](_0x406f4d))return _0x406f4d;return null;}async function trimSessionFileForFork(_0x3efe1b,_0x3013c8){const _0x3d4181=_0x10bbcf;if(!_0x3efe1b||!existsSync(_0x3efe1b))return;const {keepUntilTs:_0x197acb,cutoffRole:_0x199de9,cutoffText:_0x367828}=_0x3013c8,_0x202a6b=typeof _0x197acb===_0x3d4181(0x1bb)&&Number[_0x3d4181(0x18e)](_0x197acb),_0x4f989a=typeof _0x367828===_0x3d4181(0x1bf)?_0x367828[_0x3d4181(0x199)]():'',_0x348e9d=_0x199de9===_0x3d4181(0x1b7)?_0x3d4181(0x1b2)+'t':_0x199de9===_0x3d4181(0x1c0)?'user':'',_0x4a9c77=Boolean(_0x348e9d&&_0x4f989a);if(!_0x202a6b&&!_0x4a9c77)return;let _0x311dd6='';try{_0x311dd6=await readFile(_0x3efe1b,_0x3d4181(0x194));}catch{return;}const _0xa2ede8=_0x311dd6['split']('\x0a');let _0xd5c569=-0x1;const _0x1c431c=_0x202a6b?_0x197acb+0xa*0x3c*0x3e8:Number['POSITIVE'+_0x3d4181(0x185)+'Y'];if(_0x4a9c77)for(let _0x1b7734=0x0;_0x1b7734<_0xa2ede8[_0x3d4181(0x187)];_0x1b7734+=0x1){const _0x57e44c=_0xa2ede8[_0x1b7734][_0x3d4181(0x199)]();if(!_0x57e44c)continue;const _0x77c30=parseJsonLine(_0x57e44c);if(!_0x77c30||_0x77c30[_0x3d4181(0x19e)]!=='message')continue;if(extractMessageEntryRole(_0x77c30)!==_0x348e9d)continue;const _0x474271=extractMessageEntryText(_0x77c30)['trim']();if(!_0x474271||!_0x474271[_0x3d4181(0x192)](_0x4f989a))continue;const _0x435b1a=entryTimestampMs(_0x77c30);if(_0x435b1a!==null&&_0x435b1a>_0x1c431c)continue;_0xd5c569=_0x1b7734;}let _0x46613e=[];if(_0xd5c569>=0x0)_0x46613e=_0xa2ede8[_0x3d4181(0x193)](0x0,_0xd5c569+0x1);else{if(_0x202a6b)for(const _0x595c95 of _0xa2ede8){const _0x45ba2e=_0x595c95['trim']();if(!_0x45ba2e)continue;const _0x525244=parseJsonLine(_0x45ba2e);if(!_0x525244){_0x46613e[_0x3d4181(0x1a1)](_0x595c95);continue;}if(_0x525244['type']==='session'){_0x46613e['push'](_0x595c95);continue;}const _0x4a8642=entryTimestampMs(_0x525244);if(_0x4a8642===null||_0x4a8642<=_0x197acb)_0x46613e[_0x3d4181(0x1a1)](_0x595c95);}}while(_0x46613e[_0x3d4181(0x187)]>0x0&&_0x46613e[_0x46613e[_0x3d4181(0x187)]-0x1][_0x3d4181(0x199)]()==='')_0x46613e[_0x3d4181(0x18d)]();await writeFile(_0x3efe1b,_0x46613e[_0x3d4181(0x19c)]('\x0a')+'\x0a',_0x3d4181(0x194));}export function createAgentSessionsMapStore({stateDir:_0x1edf3c}){const _0x357af4=createSessionSqliteStore({'stateDir':_0x1edf3c});async function _0x279dd8(_0x988870={}){const _0x14c334=_0x284c,_0xa37da3=String(_0x988870[_0x14c334(0x198)]||_0x14c334(0x1ae));return await _0x357af4[_0x14c334(0x186)+_0x14c334(0x1a8)](_0xa37da3);}async function _0xea6c02(_0x2a0d53={}){const _0x339463=_0x284c,_0x38b346=String(_0x2a0d53[_0x339463(0x1b4)+'ey']||'')[_0x339463(0x199)](),_0x9ef3dd=String(_0x2a0d53['sessionI'+'d']||'')[_0x339463(0x199)]();if(!_0x38b346)throw new Error(_0x339463(0x1b4)+_0x339463(0x19a)+'quired');if(!_0x9ef3dd)throw new Error(_0x339463(0x1a5)+_0x339463(0x1b9)+_0x339463(0x1b5));const _0x5398be=extractAgentIdFromSessionKey(_0x38b346),_0x4300a3=asRecord(await _0x357af4[_0x339463(0x188)+'ionEntry'](_0x38b346)),_0x4f678b=String(_0x2a0d53[_0x339463(0x1a2)+_0x339463(0x191)]||'')['trim'](),_0x3d73e1=_0x4f678b?extractAgentIdFromSessionKey(_0x4f678b):_0x5398be,_0x2c3ec7=_0x4f678b?asRecord(await _0x357af4[_0x339463(0x188)+_0x339463(0x19b)](_0x4f678b)):null,_0xeae249=_0x2c3ec7&&Object[_0x339463(0x196)](_0x2c3ec7)['length']>0x0,_0x3cac9e=resolveNewSessionFilePath(_0x1edf3c,_0x4300a3,_0xeae249?_0x2c3ec7:null,_0x9ef3dd,_0x5398be),_0x3ee94a=typeof _0x2a0d53['keepUnti'+_0x339463(0x1a7)]===_0x339463(0x1bb)&&Number[_0x339463(0x18e)](_0x2a0d53[_0x339463(0x1ac)+_0x339463(0x1a7)])?_0x2a0d53[_0x339463(0x1ac)+_0x339463(0x1a7)]:null,_0x3b161e=typeof _0x2a0d53[_0x339463(0x1af)+'le']==='string'?_0x2a0d53[_0x339463(0x1af)+'le']:null,_0x495918=typeof _0x2a0d53[_0x339463(0x1a3)+'xt']==='string'?_0x2a0d53['cutoffTe'+'xt']:null,_0x4fea6f={..._0x4300a3,...cloneForkedSessionExtraFields(_0xeae249?_0x2c3ec7:null),'agentId':_0x5398be,'sessionKey':_0x38b346,'sessionId':_0x9ef3dd,'sessionFile':_0x3cac9e,..._0xeae249?{'forkedFromParent':!![]}:{}};return await copySessionFileIfNeeded(_0xeae249?_0x2c3ec7:null,_0x3cac9e),_0xeae249&&(_0x3ee94a!==null||_0x3b161e&&_0x495918)&&await trimSessionFileForFork(_0x3cac9e,{'keepUntilTs':_0x3ee94a,'cutoffRole':_0x3b161e,'cutoffText':_0x495918}),await _0x357af4[_0x339463(0x1b1)+'ssionEnt'+'ry']({'agentId':_0x5398be,'sessionKey':_0x38b346,'entry':_0x4fea6f}),await _0x357af4[_0x339463(0x186)+_0x339463(0x1a8)](_0x5398be);}return{'get':_0x279dd8,'upsert':_0xea6c02};}
@@ -1 +1 @@
1
- (function(_0x282a94,_0x3dc011){const _0x5c1d5c=_0x1151,_0x26856b=_0x282a94();while(!![]){try{const _0x3f1ac9=parseInt(_0x5c1d5c(0xbf))/0x1*(-parseInt(_0x5c1d5c(0xcc))/0x2)+parseInt(_0x5c1d5c(0xbd))/0x3+parseInt(_0x5c1d5c(0xd1))/0x4*(-parseInt(_0x5c1d5c(0xbc))/0x5)+parseInt(_0x5c1d5c(0xc6))/0x6+parseInt(_0x5c1d5c(0xb3))/0x7+-parseInt(_0x5c1d5c(0xc7))/0x8+parseInt(_0x5c1d5c(0xc4))/0x9;if(_0x3f1ac9===_0x3dc011)break;else _0x26856b['push'](_0x26856b['shift']());}catch(_0x42f273){_0x26856b['push'](_0x26856b['shift']());}}}(_0x10cd,0xb4b17));import{join}from'node:path';import{createSessionSqliteStore}from'./session-sqlite-store.mjs';const BRIDGE_STORE_CACHE=new Map();function resolveStateDirFromStorePath(_0x310d77){const _0x8bcbf2=_0x1151,_0x283401=String(_0x310d77||'')[_0x8bcbf2(0xb6)+'ll']('\x5c','/'),_0xfcbc62=_0x8bcbf2(0xbb),_0x2ce8bb=_0x283401[_0x8bcbf2(0xd2)](_0xfcbc62);if(_0x2ce8bb<0x0){const _0x5518fa=_0x283401['split'](_0x8bcbf2(0xcf)+'s/')[0x0];return _0x5518fa||_0x283401;}return _0x283401[_0x8bcbf2(0xb5)](0x0,_0x2ce8bb);}function createBridgeStore(_0x3d90a7){const _0x572f6b=_0x1151,_0x4969a8=resolveStateDirFromStorePath(_0x3d90a7),_0x19b265=join(_0x4969a8,_0x572f6b(0xc5),_0x572f6b(0xc2)+_0x572f6b(0xd0)),_0x58a61b=_0x4969a8+'::'+_0x19b265,_0x4b95d5=BRIDGE_STORE_CACHE[_0x572f6b(0xb4)](_0x58a61b);if(_0x4b95d5)return _0x4b95d5;const _0x23d2ef=createSessionSqliteStore({'stateDir':_0x4969a8,'dbPath':_0x19b265});return BRIDGE_STORE_CACHE[_0x572f6b(0xc8)](_0x58a61b,_0x23d2ef),_0x23d2ef;}function cloneStoreObject(_0x61981b){const _0x345865=_0x1151;return JSON[_0x345865(0xc3)](JSON[_0x345865(0xb2)+'y'](_0x61981b||{}));}function _0x10cd(){const _0x508a39=['clone','sionStor','index.sq','parse','17982684zcKuij','sessions','1573554aDmRcF','9245448eCXffn','set','applySes','close','ync','3184sFNzPG','writeSes','clear','/session','lite','4dSoMHR','indexOf','tch','updateSe','ionStore','values','saveSess','readStor','stringif','1827119UpyoOg','get','slice','replaceA','ssionSto','storePat','eEntryPa','reEntry','/agents/','1559025nHPFfj','1222287qiJrev','map','453hrDrxy'];_0x10cd=function(){return _0x508a39;};return _0x10cd();}export function loadSessionStore(_0x43a9f3,_0x8396e8={}){const _0x313a82=_0x1151,_0x3321fd=createBridgeStore(_0x43a9f3),_0x317ed3=_0x3321fd[_0x313a82(0xb1)+'eByPathS'+_0x313a82(0xcb)](_0x43a9f3);return _0x8396e8[_0x313a82(0xc0)]===![]?_0x317ed3:cloneStoreObject(_0x317ed3);}export async function saveSessionStore(_0x1a25d9,_0x2db57a){const _0x3978b7=_0x1151,_0x2be641=createBridgeStore(_0x1a25d9);return await _0x2be641[_0x3978b7(0xb0)+_0x3978b7(0xd5)](_0x1a25d9,_0x2db57a);}export async function updateSessionStore(_0x4f79af,_0xe66858,_0xaf29b7){const _0xe21917=_0x1151,_0x5166b6=createBridgeStore(_0x4f79af);return await _0x5166b6[_0xe21917(0xd4)+'ssionSto'+'re'](_0x4f79af,_0xe66858,_0xaf29b7);}export async function updateSessionStoreEntry(_0x368fa6){const _0x27ffa9=_0x1151,_0x324bbd=createBridgeStore(_0x368fa6[_0x27ffa9(0xb8)+'h']);return await _0x324bbd[_0x27ffa9(0xd4)+_0x27ffa9(0xb7)+_0x27ffa9(0xba)](_0x368fa6);}export async function applySessionStoreEntryPatch(_0x217142){const _0x3ce5c4=_0x1151,_0x34e0dc=createBridgeStore(_0x217142[_0x3ce5c4(0xb8)+'h']);return await _0x34e0dc[_0x3ce5c4(0xc9)+_0x3ce5c4(0xc1)+_0x3ce5c4(0xb9)+_0x3ce5c4(0xd3)](_0x217142);}function _0x1151(_0x4efe39,_0x2acf71){_0x4efe39=_0x4efe39-0xaf;const _0x10cd74=_0x10cd();let _0x11510b=_0x10cd74[_0x4efe39];return _0x11510b;}export async function writeSessionStoreAtomic(_0x1dd995){const _0x1647b2=_0x1151,_0x166b98=createBridgeStore(_0x1dd995[_0x1647b2(0xb8)+'h']);return await _0x166b98[_0x1647b2(0xcd)+_0x1647b2(0xc1)+'eAtomic'](_0x1dd995);}export async function closeBridgeStores(){const _0x2230f6=_0x1151,_0x5f565c=[...BRIDGE_STORE_CACHE[_0x2230f6(0xaf)]()];BRIDGE_STORE_CACHE[_0x2230f6(0xce)](),await Promise['all'](_0x5f565c[_0x2230f6(0xbe)](_0xd0229f=>_0xd0229f[_0x2230f6(0xca)]()));}
1
+ (function(_0x4021a1,_0x33aa23){const _0x1eea20=_0x1333,_0x5d5d24=_0x4021a1();while(!![]){try{const _0x200105=-parseInt(_0x1eea20(0x1cd))/0x1*(parseInt(_0x1eea20(0x1c3))/0x2)+parseInt(_0x1eea20(0x1c0))/0x3+parseInt(_0x1eea20(0x1b9))/0x4*(parseInt(_0x1eea20(0x1cc))/0x5)+-parseInt(_0x1eea20(0x1d1))/0x6*(parseInt(_0x1eea20(0x1c6))/0x7)+parseInt(_0x1eea20(0x1c2))/0x8*(parseInt(_0x1eea20(0x1d0))/0x9)+-parseInt(_0x1eea20(0x1d2))/0xa+-parseInt(_0x1eea20(0x1cf))/0xb*(parseInt(_0x1eea20(0x1c8))/0xc);if(_0x200105===_0x33aa23)break;else _0x5d5d24['push'](_0x5d5d24['shift']());}catch(_0x1bef43){_0x5d5d24['push'](_0x5d5d24['shift']());}}}(_0x4944,0xed230));import{join}from'node:path';import{createSessionSqliteStore}from'./session-sqlite-store.mjs';function _0x4944(){const _0x59d0be=['clone','3227169HlUsUt','indexOf','173272FbMptF','1247318LiSskm','storePat','sionStor','483182hCecuF','applySes','120vdqEqh','readStor','sessions','parse','1441045Yjpteb','1sSsZIV','split','726220ELnxuP','441uwCiJY','78biVPQM','1373410WbPfXd','eEntryPa','clear','writeSes','16SCnTEb','ssionSto','lite','values','ionStore','updateSe'];_0x4944=function(){return _0x59d0be;};return _0x4944();}const BRIDGE_STORE_CACHE=new Map();function resolveStateDirFromStorePath(_0x44871f){const _0x272f3f=_0x1333,_0x3b7c93=String(_0x44871f||'')['replaceA'+'ll']('\x5c','/'),_0x51b0a7='/agents/',_0x1ed6b1=_0x3b7c93[_0x272f3f(0x1c1)](_0x51b0a7);if(_0x1ed6b1<0x0){const _0x8c2baf=_0x3b7c93[_0x272f3f(0x1ce)]('/session'+'s/')[0x0];return _0x8c2baf||_0x3b7c93;}return _0x3b7c93['slice'](0x0,_0x1ed6b1);}function createBridgeStore(_0x2c8d18){const _0x13f164=_0x1333,_0x3b0bfe=resolveStateDirFromStorePath(_0x2c8d18),_0x2995fc=join(_0x3b0bfe,_0x13f164(0x1ca),'index.sq'+_0x13f164(0x1bb)),_0x20ba73=_0x3b0bfe+'::'+_0x2995fc,_0x4a8a7b=BRIDGE_STORE_CACHE['get'](_0x20ba73);if(_0x4a8a7b)return _0x4a8a7b;const _0x489abe=createSessionSqliteStore({'stateDir':_0x3b0bfe,'dbPath':_0x2995fc});return BRIDGE_STORE_CACHE['set'](_0x20ba73,_0x489abe),_0x489abe;}function _0x1333(_0x21bbe7,_0x3a84d7){_0x21bbe7=_0x21bbe7-0x1b6;const _0x49447f=_0x4944();let _0x13336c=_0x49447f[_0x21bbe7];return _0x13336c;}function cloneStoreObject(_0x50d83e){const _0x417f8f=_0x1333;return JSON[_0x417f8f(0x1cb)](JSON['stringif'+'y'](_0x50d83e||{}));}export function loadSessionStore(_0x3678d5,_0x330682={}){const _0x30dfe9=_0x1333,_0x269302=createBridgeStore(_0x3678d5),_0x3b7d13=_0x269302[_0x30dfe9(0x1c9)+'eByPathS'+'ync'](_0x3678d5);return _0x330682[_0x30dfe9(0x1bf)]===![]?_0x3b7d13:cloneStoreObject(_0x3b7d13);}export async function saveSessionStore(_0x4b9cf9,_0x364223){const _0x4d35a3=_0x1333,_0x2c014f=createBridgeStore(_0x4b9cf9);return await _0x2c014f['saveSess'+_0x4d35a3(0x1bd)](_0x4b9cf9,_0x364223);}export async function updateSessionStore(_0x196223,_0xddbcf9,_0x573941){const _0x527f3c=_0x1333,_0xb5bc32=createBridgeStore(_0x196223);return await _0xb5bc32['updateSe'+_0x527f3c(0x1ba)+'re'](_0x196223,_0xddbcf9,_0x573941);}export async function updateSessionStoreEntry(_0x24438d){const _0xc02e2f=_0x1333,_0x27ced7=createBridgeStore(_0x24438d[_0xc02e2f(0x1c4)+'h']);return await _0x27ced7[_0xc02e2f(0x1be)+'ssionSto'+'reEntry'](_0x24438d);}export async function applySessionStoreEntryPatch(_0x4b3850){const _0x37d2d5=_0x1333,_0x5dc297=createBridgeStore(_0x4b3850[_0x37d2d5(0x1c4)+'h']);return await _0x5dc297[_0x37d2d5(0x1c7)+_0x37d2d5(0x1c5)+_0x37d2d5(0x1b6)+'tch'](_0x4b3850);}export async function writeSessionStoreAtomic(_0x1effc1){const _0x58a95f=_0x1333,_0x1bdf19=createBridgeStore(_0x1effc1['storePat'+'h']);return await _0x1bdf19[_0x58a95f(0x1b8)+_0x58a95f(0x1c5)+'eAtomic'](_0x1effc1);}export async function closeBridgeStores(){const _0x55b71c=_0x1333,_0x13a97a=[...BRIDGE_STORE_CACHE[_0x55b71c(0x1bc)]()];BRIDGE_STORE_CACHE[_0x55b71c(0x1b7)](),await Promise['all'](_0x13a97a['map'](_0x2fbd4a=>_0x2fbd4a['close']()));}