@myagentroam/node 0.9.24 → 0.9.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codex-app-server.js +1 -1
- package/dist/opencode-server.js +1 -1
- package/dist/runner/codex-runner.js +1 -1
- package/dist/runner/mar-agent/conversation-normalizer.js +1 -1
- package/dist/runner/opencode-runner.js +1 -1
- package/dist/runtime-state.js +1 -1
- package/dist/service/continuous-run-coordinator.js +1 -1
- package/dist/service/conversation-history-service.js +1 -1
- package/dist/service/external-session-resume-service.js +1 -1
- package/dist/service/run-event-service.js +1 -1
- package/dist/service/session-catalog-service.js +1 -1
- package/dist/service/session-context-service.js +1 -1
- package/dist/service/session-message-service.js +1 -1
- package/dist/service/workspace-queue-workbench-service.js +1 -1
- package/dist/util/runner-native-session-parsers.js +1 -1
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
function _0x1404(_0x41a628,_0x4f70d5){_0x41a628=_0x41a628-(-0xc3e+0x397+0xa82);const _0x1e2486=_0xcf88();let _0xc70e5=_0x1e2486[_0x41a628];if(_0x1404['NOvFZM']===undefined){var _0x165651=function(_0x49ffeb){const _0x366ca1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3556e6='',_0x325313='';for(let _0x4f8820=0x12d9+-0x2b*-0x1b+-0x1762,_0x17bb6a,_0x352d82,_0x1890eb=0x199*0x5+-0x2ab+-0x2a9*0x2;_0x352d82=_0x49ffeb['charAt'](_0x1890eb++);~_0x352d82&&(_0x17bb6a=_0x4f8820%(-0xe*-0x2ab+0x1caa+-0x200*0x21)?_0x17bb6a*(0x271*0x3+-0x4bb+0xf*-0x28)+_0x352d82:_0x352d82,_0x4f8820++%(-0x1232+0x5*0x311+0x2e1))?_0x3556e6+=String['fromCharCode'](0x1cc1*0x1+-0x1baa+-0x18&_0x17bb6a>>(-(-0x22a3+-0x1b5e+0x3e03)*_0x4f8820&0x1c25+0x217a*-0x1+0x55b)):0x525+0xa3*-0x22+0x145*0xd){_0x352d82=_0x366ca1['indexOf'](_0x352d82);}for(let _0x4ff144=-0x11*0x14f+0x11*-0x1c4+0x3443,_0x186623=_0x3556e6['length'];_0x4ff144<_0x186623;_0x4ff144++){_0x325313+='%'+('00'+_0x3556e6['charCodeAt'](_0x4ff144)['toString'](0x945*0x2+-0x491+-0x3*0x4a3))['slice'](-(-0x1b7*0xb+0x2549+-0x126a));}return decodeURIComponent(_0x325313);};_0x1404['dPHBRC']=_0x165651,_0x1404['gZayLM']={},_0x1404['NOvFZM']=!![];}const _0x401fb6=_0x1e2486[0x68c+0x1ed5+-0x2561];_0x1404['tUBPjR']!==_0x401fb6&&(_0x1404['gZayLM']={},_0x1404['tUBPjR']=_0x401fb6);const _0x1057f8=_0x1404['gZayLM'][_0x41a628];return _0x1057f8===undefined?(_0xc70e5=_0x1404['dPHBRC'](_0xc70e5),_0x1404['gZayLM'][_0x41a628]=_0xc70e5):_0xc70e5=_0x1057f8,_0xc70e5;}const _0x1a9d05=_0x1404;(function(_0x5163ea,_0x331608){const _0x184ebb=_0x1404,_0x19b00f=_0x5163ea();while(!![]){try{const _0x407ff7=parseInt(_0x184ebb(0x21e))/(0x6c1+0x10ff+-0x17bf)*(parseInt(_0x184ebb(0x21a))/(-0x1a8c+0xc9*-0xa+0x2268))+parseInt(_0x184ebb(0x1dc))/(0x13fa*0x1+-0x5*0x128+-0x1*0xe2f)+parseInt(_0x184ebb(0x1ed))/(0x1*0x17bf+0x1ee*0x13+-0x1*0x3c65)*(-parseInt(_0x184ebb(0x1fe))/(0x1720+0x1*-0x53e+-0x1*0x11dd))+parseInt(_0x184ebb(0x22b))/(0x264b+0x1*0xd4+-0x2719)*(parseInt(_0x184ebb(0x258))/(-0x1*0x7f+-0xfa9*0x1+0x102f))+-parseInt(_0x184ebb(0x254))/(-0x240c+0xb8d+0x7*0x381)*(parseInt(_0x184ebb(0x211))/(0x5*0x6df+0x16b*-0x6+-0x19d0))+parseInt(_0x184ebb(0x216))/(-0x20*-0x11+-0x343*-0x8+-0x1c2e)*(parseInt(_0x184ebb(0x223))/(-0xb*-0x1b+-0x24e5+0x23c7))+-parseInt(_0x184ebb(0x1e2))/(0x23*-0x1+0x1b53*-0x1+0x1b82);if(_0x407ff7===_0x331608)break;else _0x19b00f['push'](_0x19b00f['shift']());}catch(_0x507b03){_0x19b00f['push'](_0x19b00f['shift']());}}}(_0xcf88,-0x7d*-0x14f6+0x7*-0x6e31+0x207b));function _0xcf88(){const _0x22944e=['C3rHCNrLzev4zwn1DgLVBNm','y2XLyw51Cef0DgfJAg1LBNrZ','u0vora','Aw5PDgLHDgvKqNLvC2vYswq','C2v0','zxHLy3v0zvf1zxvLsxrLBq','nZuYodqWzvn2txbf','y3jLyxrLtwvZC2fNzvj1BG','Bw9KzwW','zxHLy3v0Aw9Uu3rHCNrLza','BwfYA0LUDgvYCNvWDgvK','CNvUDgLTzq','ChjPB3jPDgL6zvf1zxvLsxrLBq','ChjLCgfYzwrjBNb1Dhm','ChjLCgfYzq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','CMvXDwLYzvbYzxbHCMvKsxrLBq','y2XLyxjjBwfNzxm','y3jLyxrLrxHLy3v0Aw9U','CgvUzgLUzW','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','Aw50zw50','uLvox05pvf9gt1vora','CMvTB3zLtwLZC2LVBLf1zxvL','nJi5nJCZm05eDfHhyq','y3jLyxrLuxvLDwvjDgvT','y29SBgfIB3jHDgLVBK1Vzgu','tuvtu0fhrv9ot1rFrK9vtKq','Dw5Yzwy','nZbdvur2yxm','CMvZDw1L','zxH0zxjUywXtzxnZAw9Uswq','BwLZC2LVBG','mZe3ohHttLr3zG','CNvUlMLUDgvYCNvWDa','C3rHDhvZ','zMfPBfbYzxbHCMf0Aw9U','ndeWrhHiqMHO','y29UDhjVBa','C2vJCMv0CW','uLvox1nuqvjux0zbsuXfra','u1rbuLrfra','otaYmdC3B2PNAejd','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','ywz0zxjfEgvJDxrPB25tDgfYDgvK','zw1PDenVBNzLCNnHDgLVBG','CNvUBMvY','ChvIBgLZAa','yxr0ywnOBwvUDhm','C2vJCMv0rw52AxjVBM1LBNq','mJGZndGWmKXNuxbXAG','C2nOzwr1BgvKu2vZC2LVBNm','CgvYC29UywXjBNn0CNvJDgLVBNm','BwnWCW','y2XPzw50twvZC2fNzuLK','BgvUz3rO','uKvtvefsveLorW','C2vZC2LVBKLK','zw1PDff1zxvL','z2v0uNvU','z2v0qwDLBNrtzxnZAw9U','ChvIBgLZAen1CNjLBNruDxjU','CxvLDwvczwzVCMu','Aw5WDxq','CMvTB3zL','uvvfvuvFsu5qvvrFte9tva','z2v0uxvLDwvjDgvT','ywn0AxzLu2vZC2LVBLj1BG','ywnJzxnZ','BwLNCMf0zufZC2v0CW','D29YA3nWywnLswq','u0vtu0LptL9ot1rFrK9vtKq','AgfZrxHLy3v0Aw9Uu3rHCNrLza','tuvtu0fhrv9trvntsu9ox01ju01bveni','su5urvjsvvburuq','z2v0','uvvfvuve','zgvSzxrLuxvLDwvjDgvT','B3b0Aw9UCW','C3rVChbLza','CNvUlNjLAMvJDgvK','C3vIBwLZC2LVBKLK','ywn0AxzLuNvUswq','CMvTB3zLugvUzgLUz1f1zxvL','AgfZ','ywnJzxb0','y2f0y2G','CMvWBgfJzq','y2XLyxi','AxrLBuLKCW','C3rHCNrjzgXLuxvLDwu','oevwyxnHzG','C2vYDMLJzvrPzxi','zgvSzxrL','Cgf1C2vK','mtr5ExPcDMm','y29UDgvUDa','C2v0DgXL','uvvfvuvFsvrftv9jtLzbteLe','uLvox1rvuK5FtK9ux0zpvu5e','AxrLBq','rKfjteve','mtK5mZi5nKrsshjfsG','y2XHAw1ozxH0uxvLDwvjDgvT','BwLZC2LVBK1JCa','u1vdq0vfreve','y3jLyxrLza','CNvUswq','mta4mdK5mtjjrMz0D3u','BwfYqwDLBNrnB2rLBa','BwLNCMf0zvnLC3nPB24','zgLZCgf0y2G','CMvZDw1Lu2vZC2LVBLf1zxvL','BwfYqwDLBNrnB2rLBhm','zwzMB3j0','ywrK','uvvfvuu','DMvYC2LVBG','DxbKyxrLuhjLCgfYzwrjBNb1Da','mJbYDhvQzgO','C2nOzwr1Bgu','CNvUlNn0yxj0','y3DK','Aw5ZDgfSBgf0Aw9U','y3vYCMvUDev4zwn1DgLVBKLK','zw1PDfj1BG','DMfSDwvZ','C2vZC2LVBLf1zxvL','uLvox0vyrunvveLptL9ot1rFrK9vtKq','zgLZCgf0y2HLzev4zwn1DgLVBNm'];_0xcf88=function(){return _0x22944e;};return _0xcf88();}import{safeErrorCode}from'../util/safe-error.js';export class ContinuousRunCoordinator{[_0x1a9d05(0x247)];[_0x1a9d05(0x205)]=new Map();[_0x1a9d05(0x1f7)]=new Set();[_0x1a9d05(0x1f8)]=new Set();[_0x1a9d05(0x22c)]=new Map();constructor(_0x1c3a28){const _0x1333ed=_0x1a9d05;this[_0x1333ed(0x247)]=_0x1c3a28;}[_0x1a9d05(0x24e)](_0x56a4b3){const _0x1c9d5f=_0x1a9d05,_0xe49e26=this[_0x1c9d5f(0x247)][_0x1c9d5f(0x203)][_0x1c9d5f(0x23c)](_0x56a4b3[_0x1c9d5f(0x232)]);if(_0xe49e26===undefined)return this[_0x1c9d5f(0x247)][_0x1c9d5f(0x203)][_0x1c9d5f(0x1ff)](_0x56a4b3);const _0x220765=this[_0x1c9d5f(0x247)][_0x1c9d5f(0x203)][_0x1c9d5f(0x212)]({'queueItemId':_0x56a4b3[_0x1c9d5f(0x1e1)],'sessionId':_0x56a4b3[_0x1c9d5f(0x232)],'clientMessageId':_0x56a4b3[_0x1c9d5f(0x22f)],'content':_0x56a4b3[_0x1c9d5f(0x259)],..._0x56a4b3[_0x1c9d5f(0x1fb)]===undefined?{}:{'initiatedByUserId':_0x56a4b3[_0x1c9d5f(0x1fb)]},..._0x56a4b3[_0x1c9d5f(0x229)]===undefined?{}:{'attachments':_0x56a4b3[_0x1c9d5f(0x229)]}});if(_0x220765[_0x1c9d5f(0x1e0)])this[_0x1c9d5f(0x247)][_0x1c9d5f(0x233)](_0x220765[_0x1c9d5f(0x25d)][_0x1c9d5f(0x23f)],_0x220765[_0x1c9d5f(0x25d)][_0x1c9d5f(0x232)]);return{'run':_0xe49e26,'queueItem':_0x220765[_0x1c9d5f(0x25d)],'created':_0x220765[_0x1c9d5f(0x1e0)]};}[_0x1a9d05(0x206)](_0xd0f1a,_0x16dca9){const _0x327fbb=_0x1a9d05,_0x520a29=this[_0x327fbb(0x247)][_0x327fbb(0x203)][_0x327fbb(0x234)](_0xd0f1a),_0x6d4ab6=this[_0x327fbb(0x247)][_0x327fbb(0x203)][_0x327fbb(0x23b)](_0xd0f1a);if(_0x520a29===undefined&&_0x6d4ab6===undefined)throw new Error(_0x327fbb(0x214));if((_0x520a29?.[_0x327fbb(0x232)]??_0x6d4ab6?.[_0x327fbb(0x232)])!==_0x16dca9[_0x327fbb(0x232)])throw new Error(_0x327fbb(0x242));this[_0x327fbb(0x205)][_0x327fbb(0x1fc)](_0xd0f1a,_0x16dca9);}[_0x1a9d05(0x20b)](_0x154910){const _0x5d974f=_0x1a9d05;return this[_0x5d974f(0x205)][_0x5d974f(0x244)](_0x154910);}[_0x1a9d05(0x21d)](_0x336f54,_0x5e9466){const _0x420954=_0x1a9d05;this[_0x420954(0x247)][_0x420954(0x203)][_0x420954(0x224)](_0x336f54,_0x5e9466);const _0x2d7f56=this[_0x420954(0x247)][_0x420954(0x203)][_0x420954(0x23b)](_0x336f54);if(_0x2d7f56!==undefined){const _0x154490=_0x2d7f56[_0x420954(0x232)];this[_0x420954(0x246)](_0x2d7f56['id']);const _0x168c34=this[_0x420954(0x247)][_0x420954(0x203)][_0x420954(0x23c)](_0x154490);if(_0x168c34===undefined||this[_0x420954(0x247)][_0x420954(0x203)][_0x420954(0x1f2)](_0x168c34['id'])!==undefined)return;if(this[_0x420954(0x247)][_0x420954(0x203)][_0x420954(0x1f5)](_0x154490)[_0x420954(0x252)][_0x420954(0x230)]>-0x268d+0x199*0x5+0x1e90){this[_0x420954(0x1ee)](_0x154490);return;}this[_0x420954(0x247)][_0x420954(0x1f3)](_0x168c34['id'],_0x420954(0x249),{'code':_0x5e9466},_0x420954(0x1db));return;}const _0x35f793=this[_0x420954(0x247)][_0x420954(0x203)][_0x420954(0x234)](_0x336f54);if(_0x35f793!==undefined)this[_0x420954(0x247)][_0x420954(0x1f3)](_0x35f793['id'],_0x420954(0x249),{'code':_0x5e9466},_0x420954(0x1db));}[_0x1a9d05(0x25a)](_0x3f8ee5){const _0x4903f3=_0x1a9d05,_0x4ae256=this[_0x4903f3(0x205)][_0x4903f3(0x244)](_0x3f8ee5[_0x4903f3(0x24a)]),_0x388a0e=this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x23b)](_0x3f8ee5[_0x4903f3(0x24a)]),_0x544b5f=_0x4ae256?.[_0x4903f3(0x232)]??_0x388a0e?.[_0x4903f3(0x232)];if(_0x544b5f===undefined)throw new Error(_0x4903f3(0x240));const _0x148925=this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x23c)](_0x544b5f),_0xb0d593=_0x148925&&this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x207)](_0x148925['id']),_0x56d099=_0x148925!==undefined&&this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x1f2)](_0x148925['id'])===undefined&&_0xb0d593!==undefined&&(_0xb0d593[_0x4903f3(0x21c)]===_0x4903f3(0x1df)||_0xb0d593[_0x4903f3(0x21c)]===_0x4903f3(0x1db)||_0xb0d593[_0x4903f3(0x21c)]===_0x4903f3(0x243)),_0x1e8a51=this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x1f5)](_0x544b5f)[_0x4903f3(0x1eb)],_0x407cfb=_0x148925!==undefined&&_0x3f8ee5[_0x4903f3(0x24a)]===_0x148925['id'];if(_0x407cfb||!_0x3f8ee5[_0x4903f3(0x237)][_0x4903f3(0x257)]||_0x3f8ee5[_0x4903f3(0x20e)]!==_0x4903f3(0x1ea))this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x1e6)](_0x544b5f);if(_0x3f8ee5[_0x4903f3(0x24b)]!==undefined&&_0x148925?.['id']===_0x3f8ee5[_0x4903f3(0x24b)]){if(_0x56d099){if(_0x388a0e!==undefined)this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x204)](_0x388a0e['id']);return this[_0x4903f3(0x1ee)](_0x544b5f),_0x4903f3(0x231);}return this[_0x4903f3(0x250)](_0x3f8ee5[_0x4903f3(0x24a)],_0x148925['id']),_0x4903f3(0x231);}if(_0x407cfb)return this[_0x4903f3(0x1ee)](_0x544b5f),_0x4903f3(0x222);if(_0x148925===undefined&&_0x388a0e!==undefined){if(_0x3f8ee5[_0x4903f3(0x237)][_0x4903f3(0x257)]&&_0x3f8ee5[_0x4903f3(0x20e)]===_0x4903f3(0x1fa))this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x204)](_0x388a0e['id']);return this[_0x4903f3(0x253)](_0x544b5f),_0x4903f3(0x222);}if(_0x56d099&&_0x388a0e!==undefined){if(_0x3f8ee5[_0x4903f3(0x20e)]===_0x4903f3(0x1fa))this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x204)](_0x388a0e['id']);return this[_0x4903f3(0x1ee)](_0x544b5f),_0x4903f3(0x222);}if(this[_0x4903f3(0x247)][_0x4903f3(0x203)][_0x4903f3(0x1f5)](_0x544b5f)[_0x4903f3(0x1eb)]!==_0x1e8a51)this[_0x4903f3(0x228)](_0x544b5f);return _0x4903f3(0x245);}[_0x1a9d05(0x1fd)](_0x3d1518){const _0x187e21=_0x1a9d05,_0x177b8d=this[_0x187e21(0x208)](_0x3d1518);this[_0x187e21(0x247)][_0x187e21(0x203)][_0x187e21(0x1e6)](_0x177b8d[_0x187e21(0x232)]),this[_0x187e21(0x247)][_0x187e21(0x203)][_0x187e21(0x204)](_0x177b8d['id']);const _0x4650ac=this[_0x187e21(0x247)][_0x187e21(0x203)][_0x187e21(0x23c)](_0x177b8d[_0x187e21(0x232)]);if(_0x4650ac!==undefined)return this[_0x187e21(0x250)](_0x177b8d['id'],_0x4650ac['id'],![]),{'run':_0x4650ac,'delivery':_0x187e21(0x231)};this[_0x187e21(0x253)](_0x177b8d[_0x187e21(0x232)]);const _0x2a1d17=this[_0x187e21(0x247)][_0x187e21(0x203)][_0x187e21(0x23c)](_0x177b8d[_0x187e21(0x232)]);if(_0x2a1d17===undefined)throw new Error(_0x187e21(0x20f));return{'run':_0x2a1d17,'delivery':_0x187e21(0x222)};}[_0x1a9d05(0x1ec)](_0x50f95b,_0x598111){const _0x422ed6=_0x1a9d05,_0x118f35=this[_0x422ed6(0x205)][_0x422ed6(0x244)](_0x50f95b);if(_0x118f35===undefined)return;this[_0x422ed6(0x205)][_0x422ed6(0x1fc)](_0x50f95b,{..._0x118f35,'input':_0x598111});}[_0x1a9d05(0x246)](_0x47a3d9){const _0x2e841e=_0x1a9d05,_0x1cb9c6=this[_0x2e841e(0x247)][_0x2e841e(0x203)][_0x2e841e(0x23b)](_0x47a3d9);if(_0x1cb9c6===undefined)throw new Error(_0x2e841e(0x25b));this[_0x2e841e(0x247)][_0x2e841e(0x203)][_0x2e841e(0x246)](_0x1cb9c6['id']),this[_0x2e841e(0x239)](_0x1cb9c6['id']),this[_0x2e841e(0x247)][_0x2e841e(0x209)](_0x1cb9c6['id']),this[_0x2e841e(0x247)][_0x2e841e(0x1f9)](_0x1cb9c6['id']),this[_0x2e841e(0x247)][_0x2e841e(0x233)](_0x1cb9c6[_0x2e841e(0x23f)],_0x1cb9c6[_0x2e841e(0x232)]);}[_0x1a9d05(0x236)](_0x18aa16){const _0x4c5397=_0x1a9d05,_0x5d3193=this[_0x4c5397(0x247)][_0x4c5397(0x203)][_0x4c5397(0x207)](_0x18aa16);if(_0x5d3193!==undefined)this[_0x4c5397(0x247)][_0x4c5397(0x226)](_0x5d3193);}[_0x1a9d05(0x228)](_0x4809d5){const _0x23d0ca=_0x1a9d05,_0x137c32=this[_0x23d0ca(0x247)][_0x23d0ca(0x203)][_0x23d0ca(0x235)](_0x4809d5);if(_0x137c32===undefined)throw new Error(_0x23d0ca(0x240));this[_0x23d0ca(0x247)][_0x23d0ca(0x233)](_0x137c32[_0x23d0ca(0x23f)],_0x137c32['id']);}[_0x1a9d05(0x250)](_0xc1cdba,_0x28a7ff,_0x37ad73=!![]){const _0x27c95c=_0x1a9d05,_0x5551b0=this[_0x27c95c(0x208)](_0xc1cdba),_0x2d6fb0=this[_0x27c95c(0x247)][_0x27c95c(0x203)][_0x27c95c(0x234)](_0x28a7ff);if(_0x2d6fb0===undefined||_0x5551b0[_0x27c95c(0x232)]!==_0x2d6fb0[_0x27c95c(0x232)])throw new Error(_0x27c95c(0x25b));if(_0x37ad73)this[_0x27c95c(0x247)][_0x27c95c(0x203)][_0x27c95c(0x204)](_0x5551b0['id']);this[_0x27c95c(0x228)](_0x5551b0[_0x27c95c(0x232)]);const _0x285d51=this[_0x27c95c(0x247)][_0x27c95c(0x203)][_0x27c95c(0x1f2)](_0x2d6fb0['id']);if(_0x285d51===undefined)throw new Error(_0x27c95c(0x1f6));if(!this[_0x27c95c(0x1f8)][_0x27c95c(0x24d)](_0x285d51)){const _0x45cacd=this[_0x27c95c(0x205)][_0x27c95c(0x244)](_0x285d51),_0x41a628=this[_0x27c95c(0x205)][_0x27c95c(0x244)](_0x5551b0['id']);if(_0x45cacd!==undefined&&_0x41a628!==undefined)this[_0x27c95c(0x205)][_0x27c95c(0x1fc)](_0x5551b0['id'],{..._0x41a628,'input':_0x45cacd[_0x27c95c(0x238)]+'\x0a\x0a'+_0x41a628[_0x27c95c(0x238)]});}this[_0x27c95c(0x247)][_0x27c95c(0x202)](_0x285d51),this[_0x27c95c(0x247)][_0x27c95c(0x21f)](_0x27c95c(0x21b),{'runId':_0x285d51});}[_0x1a9d05(0x217)](_0x4f70d5){const _0x4af55d=_0x1a9d05;this[_0x4af55d(0x247)][_0x4af55d(0x203)][_0x4af55d(0x1e6)](_0x4f70d5),this[_0x4af55d(0x253)](_0x4f70d5);}[_0x1a9d05(0x1ee)](_0x1e2486,_0xc70e5=0x454*0x7+-0x35*0x8f+-0xb1){const _0x153ebe=_0x1a9d05;if(this[_0x153ebe(0x22c)][_0x153ebe(0x24d)](_0x1e2486))return;const _0x165651=setTimeout(()=>{const _0x2ba0a0=_0x153ebe;this[_0x2ba0a0(0x22c)][_0x2ba0a0(0x256)](_0x1e2486);if(!this[_0x2ba0a0(0x247)][_0x2ba0a0(0x248)]())void this[_0x2ba0a0(0x1e5)](_0x1e2486);},_0xc70e5);this[_0x153ebe(0x22c)][_0x153ebe(0x1fc)](_0x1e2486,_0x165651),_0x165651[_0x153ebe(0x215)]();}async[_0x1a9d05(0x1e5)](_0x401fb6){const _0x42d99a=_0x1a9d05,_0x1057f8=this[_0x42d99a(0x247)][_0x42d99a(0x203)][_0x42d99a(0x23c)](_0x401fb6);if(_0x1057f8===undefined)return;let _0x49ffeb=this[_0x42d99a(0x247)][_0x42d99a(0x203)][_0x42d99a(0x1f2)](_0x1057f8['id']);if(_0x49ffeb!==undefined&&this[_0x42d99a(0x1f7)][_0x42d99a(0x24d)](_0x49ffeb))return;let _0x366ca1=_0x49ffeb===undefined?this[_0x42d99a(0x205)][_0x42d99a(0x244)](_0x1057f8['id']):this[_0x42d99a(0x205)][_0x42d99a(0x244)](_0x49ffeb);if(_0x49ffeb===undefined&&_0x366ca1===undefined){const _0x3556e6=this[_0x42d99a(0x247)][_0x42d99a(0x203)][_0x42d99a(0x1f5)](_0x401fb6)[_0x42d99a(0x252)][-0x1*-0x21b3+0x6c2*-0x4+-0x6ab];if(_0x3556e6===undefined)return;_0x366ca1=this[_0x42d99a(0x205)][_0x42d99a(0x244)](_0x3556e6);if(_0x366ca1===undefined)return;if(this[_0x42d99a(0x247)][_0x42d99a(0x203)][_0x42d99a(0x1dd)](_0x401fb6)===undefined)return;const _0x325313=this[_0x42d99a(0x247)][_0x42d99a(0x203)][_0x42d99a(0x20a)](_0x1057f8['id']);_0x49ffeb=_0x325313['id'],this[_0x42d99a(0x205)][_0x42d99a(0x256)](_0x3556e6),this[_0x42d99a(0x205)][_0x42d99a(0x1fc)](_0x325313['id'],{..._0x366ca1,'runId':_0x325313['id']}),this[_0x42d99a(0x247)][_0x42d99a(0x23e)](_0x3556e6,_0x325313['id']),this[_0x42d99a(0x228)](_0x401fb6);const _0x4f8820=this[_0x42d99a(0x247)][_0x42d99a(0x203)][_0x42d99a(0x20d)](_0x325313['id']);if(_0x4f8820===undefined)throw new Error(_0x42d99a(0x25c));this[_0x42d99a(0x247)][_0x42d99a(0x226)](_0x4f8820);}else{if(_0x49ffeb===undefined&&_0x366ca1!==undefined){const _0x17bb6a=this[_0x42d99a(0x247)][_0x42d99a(0x203)][_0x42d99a(0x20a)](_0x1057f8['id']);_0x49ffeb=_0x17bb6a['id'],this[_0x42d99a(0x205)][_0x42d99a(0x256)](_0x1057f8['id']),this[_0x42d99a(0x205)][_0x42d99a(0x1fc)](_0x17bb6a['id'],{..._0x366ca1,'runId':_0x17bb6a['id']}),this[_0x42d99a(0x247)][_0x42d99a(0x23e)](_0x1057f8['id'],_0x17bb6a['id']);}}if(_0x49ffeb===undefined||_0x366ca1===undefined)return;if(this[_0x42d99a(0x1f7)][_0x42d99a(0x24d)](_0x49ffeb))return;this[_0x42d99a(0x1f7)][_0x42d99a(0x1e9)](_0x49ffeb);try{const _0x352d82=_0x366ca1[_0x42d99a(0x219)]===undefined?undefined:await this[_0x42d99a(0x247)][_0x42d99a(0x1de)]?.(_0x366ca1);this[_0x42d99a(0x247)][_0x42d99a(0x21f)](_0x42d99a(0x1ef),{'runId':_0x49ffeb,'sessionId':_0x366ca1[_0x42d99a(0x232)],'workspaceId':_0x366ca1[_0x42d99a(0x23f)],'runner':_0x366ca1[_0x42d99a(0x227)],'input':_0x366ca1[_0x42d99a(0x238)],..._0x366ca1[_0x42d99a(0x22f)]===undefined?{}:{'clientMessageId':_0x366ca1[_0x42d99a(0x22f)]},..._0x366ca1[_0x42d99a(0x229)][_0x42d99a(0x230)]===0xf54+-0x23b*-0x7+0x1*-0x1ef1?{}:{'attachments':_0x366ca1[_0x42d99a(0x229)]},'cwd':_0x366ca1[_0x42d99a(0x1f0)],..._0x366ca1[_0x42d99a(0x218)]===null?{}:{'externalSessionId':_0x366ca1[_0x42d99a(0x218)]},..._0x366ca1[_0x42d99a(0x200)]===null?{}:{'model':_0x366ca1[_0x42d99a(0x200)]},..._0x366ca1[_0x42d99a(0x1e8)]===null?{}:{'effort':_0x366ca1[_0x42d99a(0x1e8)]},..._0x366ca1[_0x42d99a(0x23d)]===null?{}:{'access':_0x366ca1[_0x42d99a(0x23d)]},'collaborationMode':_0x366ca1[_0x42d99a(0x213)],..._0x366ca1[_0x42d99a(0x255)]===undefined?{}:{'serviceTier':_0x366ca1[_0x42d99a(0x255)]},'secretEnvironment':_0x366ca1[_0x42d99a(0x22a)],..._0x352d82===undefined?{}:{'mcpSecretEnvironment':_0x352d82[_0x42d99a(0x220)]},..._0x366ca1[_0x42d99a(0x22d)]===undefined?{}:{'personalInstructions':_0x366ca1[_0x42d99a(0x22d)]},..._0x366ca1[_0x42d99a(0x1e3)]===undefined?{}:{'marAgentModel':_0x366ca1[_0x42d99a(0x1e3)]},..._0x366ca1[_0x42d99a(0x1e7)]===undefined?{}:{'marAgentModels':_0x366ca1[_0x42d99a(0x1e7)]},'mcpInstallations':[...this[_0x42d99a(0x247)][_0x42d99a(0x22e)](_0x366ca1[_0x42d99a(0x23f)]),..._0x352d82===undefined?[]:[_0x352d82[_0x42d99a(0x1f1)]]]});}catch(_0x1890eb){this[_0x42d99a(0x247)][_0x42d99a(0x1f3)](_0x49ffeb,_0x42d99a(0x249),{'code':safeErrorCode(_0x1890eb,_0x42d99a(0x221))},_0x42d99a(0x1db));}}[_0x1a9d05(0x201)](_0x4ff144){const _0x52f292=_0x1a9d05;if(this[_0x52f292(0x1f8)][_0x52f292(0x24d)](_0x4ff144))return;const _0x186623=this[_0x52f292(0x205)][_0x52f292(0x244)](_0x4ff144);if(_0x186623===undefined)return;this[_0x52f292(0x1f8)][_0x52f292(0x1e9)](_0x4ff144),void this[_0x52f292(0x247)][_0x52f292(0x225)]?.(_0x186623)[_0x52f292(0x24f)](()=>undefined);}[_0x1a9d05(0x241)](_0x425b81){const _0x2389cd=_0x1a9d05;return this[_0x2389cd(0x1f8)][_0x2389cd(0x24d)](_0x425b81);}[_0x1a9d05(0x1e4)](_0x4235ea,_0x14c0e8){const _0x556ac7=_0x1a9d05;for(const [_0x428aec,_0x3ddb5b]of this[_0x556ac7(0x205)])if(_0x3ddb5b[_0x556ac7(0x232)]===_0x4235ea)this[_0x556ac7(0x205)][_0x556ac7(0x1fc)](_0x428aec,{..._0x3ddb5b,'sessionId':_0x14c0e8,'externalSessionId':_0x14c0e8});const _0x53121a=this[_0x556ac7(0x22c)][_0x556ac7(0x244)](_0x4235ea);_0x53121a!==undefined&&(clearTimeout(_0x53121a),this[_0x556ac7(0x22c)][_0x556ac7(0x256)](_0x4235ea),this[_0x556ac7(0x1ee)](_0x14c0e8));}[_0x1a9d05(0x239)](_0x5e7ec7){const _0x1128af=_0x1a9d05;this[_0x1128af(0x205)][_0x1128af(0x256)](_0x5e7ec7),this[_0x1128af(0x1f7)][_0x1128af(0x256)](_0x5e7ec7),this[_0x1128af(0x1f8)][_0x1128af(0x256)](_0x5e7ec7);}[_0x1a9d05(0x210)](_0x1bf3a3){const _0x2f86a3=_0x1a9d05;for(const [_0x40d76c,_0x332ef9]of this[_0x2f86a3(0x205)]){if(_0x332ef9[_0x2f86a3(0x232)]!==_0x1bf3a3||_0x332ef9[_0x2f86a3(0x219)]===undefined)continue;const _0x122020=this[_0x2f86a3(0x247)][_0x2f86a3(0x203)][_0x2f86a3(0x23b)](_0x40d76c);if(_0x122020!==undefined)this[_0x2f86a3(0x246)](_0x40d76c);}}[_0x1a9d05(0x24c)](_0x5c22ef,_0x527b22){const _0x4a4788=_0x1a9d05;for(const _0x176a66 of[...this[_0x4a4788(0x247)][_0x4a4788(0x203)][_0x4a4788(0x1f5)](_0x5c22ef)[_0x4a4788(0x252)]]){if(_0x176a66===_0x527b22)continue;this[_0x4a4788(0x246)](_0x176a66);}}[_0x1a9d05(0x251)](){const _0x54033a=_0x1a9d05;this[_0x54033a(0x205)][_0x54033a(0x251)](),this[_0x54033a(0x1f7)][_0x54033a(0x251)](),this[_0x54033a(0x1f8)][_0x54033a(0x251)]();for(const _0x8ae79e of this[_0x54033a(0x22c)][_0x54033a(0x1f4)]())clearTimeout(_0x8ae79e);this[_0x54033a(0x22c)][_0x54033a(0x251)]();}[_0x1a9d05(0x253)](_0x49adc2){const _0x3c8315=_0x1a9d05;if(this[_0x3c8315(0x247)][_0x3c8315(0x203)][_0x3c8315(0x23c)](_0x49adc2)!==undefined){this[_0x3c8315(0x1ee)](_0x49adc2);return;}const _0x1250b9=this[_0x3c8315(0x247)][_0x3c8315(0x203)][_0x3c8315(0x1f5)](_0x49adc2),_0x110ad3=_0x1250b9[_0x3c8315(0x257)]?undefined:_0x1250b9[_0x3c8315(0x252)][-0x625+0x1cc1*0x1+-0x169c];if(_0x110ad3===undefined)return;const _0x1c6ced=this[_0x3c8315(0x205)][_0x3c8315(0x244)](_0x110ad3);if(_0x1c6ced===undefined)throw new Error(_0x3c8315(0x23a));const {run:_0x25ed50,turn:_0x5f192e}=this[_0x3c8315(0x247)][_0x3c8315(0x203)][_0x3c8315(0x20c)](_0x110ad3);this[_0x3c8315(0x205)][_0x3c8315(0x256)](_0x110ad3),this[_0x3c8315(0x205)][_0x3c8315(0x1fc)](_0x25ed50['id'],{..._0x1c6ced,'runId':_0x25ed50['id']}),this[_0x3c8315(0x247)][_0x3c8315(0x233)](_0x25ed50[_0x3c8315(0x23f)],_0x49adc2),this[_0x3c8315(0x247)][_0x3c8315(0x226)](_0x5f192e),this[_0x3c8315(0x1ee)](_0x49adc2);}[_0x1a9d05(0x208)](_0x1e3d0b){const _0x22f74c=_0x1a9d05,_0x4bbee6=this[_0x22f74c(0x247)][_0x22f74c(0x203)][_0x22f74c(0x23b)](_0x1e3d0b);if(_0x4bbee6===undefined)throw new Error(_0x22f74c(0x25b));if(!this[_0x22f74c(0x205)][_0x22f74c(0x24d)](_0x1e3d0b))throw new Error(_0x22f74c(0x23a));return _0x4bbee6;}}
|
|
2
|
+
function _0x2033(_0x1ef812,_0x4455e1){_0x1ef812=_0x1ef812-(-0x2*-0x5e+-0x371*-0x8+-0x6e*0x3e);const _0x50dc23=_0x4445();let _0x55a65a=_0x50dc23[_0x1ef812];if(_0x2033['HOKwNP']===undefined){var _0x2e5e0e=function(_0x4b65e6){const _0x117c41='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1763b8='',_0x1860f2='';for(let _0x165bf8=0x11e2+0x9*-0x390+0xe2e,_0x11ac1e,_0x1cf90b,_0xac975f=-0x10f3+-0x5*0xdf+-0x2*-0xaa7;_0x1cf90b=_0x4b65e6['charAt'](_0xac975f++);~_0x1cf90b&&(_0x11ac1e=_0x165bf8%(-0x4*0x577+-0x18e3+-0x2ec3*-0x1)?_0x11ac1e*(-0x319+0x25a3+-0x224a)+_0x1cf90b:_0x1cf90b,_0x165bf8++%(0x2351+0x1e9c+0x2f*-0x167))?_0x1763b8+=String['fromCharCode'](-0x2*-0x567+0x1c22+-0x373*0xb&_0x11ac1e>>(-(0x1*-0x981+0xf13+-0x590)*_0x165bf8&-0x5*0x385+0x191e+-0x65*0x13)):-0xaa9*0x3+-0x225d+0x212c*0x2){_0x1cf90b=_0x117c41['indexOf'](_0x1cf90b);}for(let _0x31d8f6=0x682+0x1*0x1896+-0xf8c*0x2,_0x395890=_0x1763b8['length'];_0x31d8f6<_0x395890;_0x31d8f6++){_0x1860f2+='%'+('00'+_0x1763b8['charCodeAt'](_0x31d8f6)['toString'](0x1*-0x25cf+0x6b8+0x1f27))['slice'](-(0x26cf+0xd18+-0x33e5*0x1));}return decodeURIComponent(_0x1860f2);};_0x2033['UqbOiO']=_0x2e5e0e,_0x2033['wCRIZf']={},_0x2033['HOKwNP']=!![];}const _0x32d353=_0x50dc23[0x21bd+-0x1947+-0x876];_0x2033['gvgryj']!==_0x32d353&&(_0x2033['wCRIZf']={},_0x2033['gvgryj']=_0x32d353);const _0xeb7612=_0x2033['wCRIZf'][_0x1ef812];return _0xeb7612===undefined?(_0x55a65a=_0x2033['UqbOiO'](_0x55a65a),_0x2033['wCRIZf'][_0x1ef812]=_0x55a65a):_0x55a65a=_0xeb7612,_0x55a65a;}const _0x5ef0e4=_0x2033;function _0x4445(){const _0xdab194=['u0vora','y29SBgfIB3jHDgLVBK1Vzgu','C2v0','ChjPB3jPDgL6zvf1zxvLsxrLBq','CNvUlNn0yxj0','u1rbuLrfra','BwLNCMf0zufZC2v0CW','uLvox1rvuK5FtK9ux0zpvu5e','DxbKyxrLuhjLCgfYzwrjBNb1Da','tuvtu0fhrv9trvntsu9ox01ju01bveni','mtCWyKDmwfzz','AgfZ','yxr0ywnOBwvUDfbHDgHZ','uvvfvuve','z2v0uNvU','uvvfvuvFsu5qvvrFte9tva','zw1PDff1zxvL','y2XPzw50twvZC2fNzuLK','y29UDhjVBa','zxHLy3v0Aw9Uu3rHCNrLza','C3rHCNrLzev4zwn1DgLVBNm','zxHLy3v0zvf1zxvLsxrLBq','oti1ntGWn2LXExDcuW','zw1PDenVBNzLCNnHDgLVBG','ChvIBgLZAa','u1vdq0vfreve','BwnWCW','DMfSDwvZ','tuvtu0fhrv9ot1rFrK9vtKq','y3jLyxrLrxHLy3v0Aw9U','Aw5ZDgfSBgf0Aw9U','CMvWBgfJzq','yxr0ywnOBwvUDhm','CMvZDw1L','Bw9KzwW','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','CgvYC29UywXjBNn0CNvJDgLVBNm','AxrLBuLKCW','zwzMB3j0','y3vYCMvUDev4zwn1DgLVBKLK','C2v0DgXL','CMvTB3zLtwLZC2LVBLf1zxvL','CNvUlMnVBxbSzxrLza','zxH0zxjUywXtzxnZAw9Uswq','uvvfvuvFsvrftv9jtLzbteLe','AxrLBq','CMvTB3zLugvUzgLUz1f1zxvL','u0vtu0LptL9ot1rFrK9vtKq','mJeYntaWuuL1rfzl','C2vJCMv0rw52AxjVBM1LBNq','y3DK','C3rVChbLza','mtm3otC5nfjdD2Xbvq','BwLNCMf0zvnLC3nPB24','ywn0AxzLuNvUswq','BwfYqwDLBNrnB2rLBa','uLvox05pvf9gt1vora','CxvLDwvczwzVCMu','B3b0Aw9UCW','C3rHCNrjzgXLuxvLDwu','Dw5Yzwy','zgvSzxrLuxvLDwvjDgvT','su5urvjsvvburuq','C3rHDhvZ','CNvUDgLTzq','BwfYA0LUDgvYCNvWDgvK','ywnJzxb0','y3jLyxrLuxvLDwvjDgvT','CNvUlNjLAMvJDgvK','zw1PDfj1BG','zgLZCgf0y2G','ChvIBgLZAen1CNjLBNruDxjU','CNvUBMvY','C2nOzwr1BgvKu2vZC2LVBNm','zMLUAxnOvgvYBwLUywXdB21Tyw5KuNvU','Aw5WDxq','y2XLyxjjBwfNzxm','Aw5PDgLHDgvKqNLvC2vYswq','y2XLyw51Cef0DgfJAg1LBNrZ','BwfYqwDLBNrnB2rLBhm','ChjLCgfYzwrjBNb1Dhm','y29UDgvUDa','ChjLCgfYzq','ywrK','ywz0zxjfEgvJDxrPB25tDgfYDgvK','uvvfvuu','ntm1zhfyz2TX','uLvox1nuqvjux0zbsuXfra','ywnJzxnZ','nJCWntboC0ztt1i','C2vZC2LVBKLK','DMvYC2LVBG','CNvUlMzHAwXLza','rKfjteve','ogrhz2Hguq','y2f0y2G','y2XLyxi','CMvXDwLYzvbYzxbHCMvKsxrLBq','uKvtvefsveLorW','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','C2vZC2LVBLf1zxvL','z2v0qwDLBNrtzxnZAw9U','CMvZDw1Lu2vZC2LVBLf1zxvL','C2vYDMLJzvrPzxi','C2nOzwr1Bgu','mta4mti0nJbAvLvXwuq','m2zwC2rODq','Cgf1C2vK','CNvUlMLUDgvYCNvWDa','BgvUz3rO','odyYntaXnvbLtvLgra','C3vIBwLZC2LVBKLK','AxnnzxnZywDLuNvU','CMvTB3zL','uLvox0vyrunvveLptL9ot1rFrK9vtKq','BwLZC2LVBG','z2v0uxvLDwvjDgvT','y3jLyxrLza','mtfTEffxuwO','ywn0AxzLu2vZC2LVBLj1BG','AgfZrxHLy3v0Aw9Uu3rHCNrLza','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','zMfPBfbYzxbHCMf0Aw9U','zgvSzxrL','CgvUzgLUzW','zgLZCgf0y2HLzev4zwn1DgLVBNm','mtKYwhLSs09S','Aw50zw50','y2XHAw1ozxH0uxvLDwvjDgvT','C2vJCMv0CW','D29YA3nWywnLswq','BwLZC2LVBK1JCa','mti1nJLgEu9bBhe','y3jLyxrLtwvZC2fNzvj1BG','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','z2v0','zMLUze1LC3nHz2vsDw4','CNvUswq'];_0x4445=function(){return _0xdab194;};return _0x4445();}(function(_0x35950e,_0xe693c6){const _0x4560f4=_0x2033,_0x210343=_0x35950e();while(!![]){try{const _0x1fc9b9=parseInt(_0x4560f4(0x224))/(0x153d+0x125b*0x2+-0x1*0x39f2)*(-parseInt(_0x4560f4(0x1aa))/(0x2*-0x11a1+0x1*0x23a7+0x1*-0x63))+parseInt(_0x4560f4(0x20a))/(-0x1957+0x11*0x127+0x5*0x127)*(-parseInt(_0x4560f4(0x1d0))/(0x6cf*-0x5+0x119c+0x1073))+parseInt(_0x4560f4(0x1f6))/(0x1855*0x1+0x42e+-0x2*0xe3f)*(-parseInt(_0x4560f4(0x1f9))/(0x1782+-0x1d5b+0x9*0xa7))+parseInt(_0x4560f4(0x20e))/(-0x10*-0x26e+0x1*0x1fa8+-0x4681)+-parseInt(_0x4560f4(0x1fe))/(0x67*-0x1+0xf5b*0x2+-0x1e47)*(parseInt(_0x4560f4(0x1b6))/(-0x8*-0x3c7+-0x542*0x4+-0x927))+-parseInt(_0x4560f4(0x209))/(0x117b+-0x1*-0x1c65+0x2*-0x16eb)*(-parseInt(_0x4560f4(0x216))/(-0x7b2*-0x1+-0x1*0x302+-0x4a5))+-parseInt(_0x4560f4(0x21e))/(-0x12b9+0xe3d+0x488)*(-parseInt(_0x4560f4(0x1d4))/(-0x2*-0x647+0xd8e+-0x3b9*0x7));if(_0x1fc9b9===_0xe693c6)break;else _0x210343['push'](_0x210343['shift']());}catch(_0xb20286){_0x210343['push'](_0x210343['shift']());}}}(_0x4445,-0x109944+-0x1e780+0x1caa2d));import{withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{safeErrorCode}from'../util/safe-error.js';export class ContinuousRunCoordinator{[_0x5ef0e4(0x1da)];[_0x5ef0e4(0x1f0)]=new Map();[_0x5ef0e4(0x21d)]=new Set();[_0x5ef0e4(0x1b4)]=new Set();[_0x5ef0e4(0x1e9)]=new Map();constructor(_0x3ce09a){const _0x17e134=_0x5ef0e4;this[_0x17e134(0x1da)]=_0x3ce09a;}[_0x5ef0e4(0x1e2)](_0x520638){const _0x25b86c=_0x5ef0e4,_0x58f360=this[_0x25b86c(0x1da)][_0x25b86c(0x1e0)][_0x25b86c(0x217)](_0x520638[_0x25b86c(0x1fa)]);if(_0x58f360===undefined)return this[_0x25b86c(0x1da)][_0x25b86c(0x1e0)][_0x25b86c(0x225)](_0x520638);const _0x263684=this[_0x25b86c(0x1da)][_0x25b86c(0x1e0)][_0x25b86c(0x1e3)]({'queueItemId':_0x520638[_0x25b86c(0x229)],'sessionId':_0x520638[_0x25b86c(0x1fa)],'clientMessageId':_0x520638[_0x25b86c(0x1b1)],'content':_0x520638[_0x25b86c(0x1f1)],..._0x520638[_0x25b86c(0x1ed)]===undefined?{}:{'initiatedByUserId':_0x520638[_0x25b86c(0x1ed)]},..._0x520638[_0x25b86c(0x1c0)]===undefined?{}:{'attachments':_0x520638[_0x25b86c(0x1c0)]}});if(_0x263684[_0x25b86c(0x215)])this[_0x25b86c(0x1da)][_0x25b86c(0x1b0)](_0x263684[_0x25b86c(0x1cd)][_0x25b86c(0x222)],_0x263684[_0x25b86c(0x1cd)][_0x25b86c(0x1fa)]);return{'run':_0x58f360,'queueItem':_0x263684[_0x25b86c(0x1cd)],'created':_0x263684[_0x25b86c(0x215)]};}[_0x5ef0e4(0x1f2)](_0x2221bb,_0x35ef14){const _0x1231f8=_0x5ef0e4,_0x175899=this[_0x1231f8(0x1da)][_0x1231f8(0x1e0)][_0x1231f8(0x1ae)](_0x2221bb),_0x24173a=this[_0x1231f8(0x1da)][_0x1231f8(0x1e0)][_0x1231f8(0x214)](_0x2221bb);if(_0x175899===undefined&&_0x24173a===undefined)throw new Error(_0x1231f8(0x1bc));if((_0x175899?.[_0x1231f8(0x1fa)]??_0x24173a?.[_0x1231f8(0x1fa)])!==_0x35ef14[_0x1231f8(0x1fa)])throw new Error(_0x1231f8(0x1a9));this[_0x1231f8(0x1f0)][_0x1231f8(0x1a2)](_0x2221bb,_0x35ef14);}[_0x5ef0e4(0x21c)](_0x4215f8){const _0x51ec2b=_0x5ef0e4;return this[_0x51ec2b(0x1f0)][_0x51ec2b(0x227)](_0x4215f8);}[_0x5ef0e4(0x21a)](_0x5f4493,_0x312c2e){const _0x1eeb8d=_0x5ef0e4;this[_0x1eeb8d(0x1da)][_0x1eeb8d(0x1e0)][_0x1eeb8d(0x1c3)](_0x5f4493,_0x312c2e);const _0x692b91=this[_0x1eeb8d(0x1da)][_0x1eeb8d(0x1e0)][_0x1eeb8d(0x214)](_0x5f4493);if(_0x692b91!==undefined){const _0x1a3594=_0x692b91[_0x1eeb8d(0x1fa)];this[_0x1eeb8d(0x1dd)](_0x692b91['id']);const _0x4e58a1=this[_0x1eeb8d(0x1da)][_0x1eeb8d(0x1e0)][_0x1eeb8d(0x217)](_0x1a3594);if(_0x4e58a1===undefined||this[_0x1eeb8d(0x1da)][_0x1eeb8d(0x1e0)][_0x1eeb8d(0x1c7)](_0x4e58a1['id'])!==undefined)return;if(!this[_0x1eeb8d(0x210)](_0x4e58a1)){this[_0x1eeb8d(0x1ea)](_0x4e58a1);return;}if(this[_0x1eeb8d(0x1da)][_0x1eeb8d(0x1e0)][_0x1eeb8d(0x204)](_0x1a3594)[_0x1eeb8d(0x1c5)][_0x1eeb8d(0x20d)]>-0x13*0xfb+0x1877+-0x5d6){this[_0x1eeb8d(0x208)](_0x1a3594);return;}this[_0x1eeb8d(0x1da)][_0x1eeb8d(0x1e5)](_0x4e58a1['id'],_0x1eeb8d(0x1e4),{'code':_0x312c2e},_0x1eeb8d(0x1fd));return;}const _0x297e58=this[_0x1eeb8d(0x1da)][_0x1eeb8d(0x1e0)][_0x1eeb8d(0x1ae)](_0x5f4493);if(_0x297e58!==undefined)this[_0x1eeb8d(0x1da)][_0x1eeb8d(0x1e5)](_0x297e58['id'],_0x1eeb8d(0x1e4),{'code':_0x312c2e},_0x1eeb8d(0x1fd));}[_0x5ef0e4(0x1c8)](_0x3c5eb0){const _0x2394ed=_0x5ef0e4,_0x256277=this[_0x2394ed(0x1f0)][_0x2394ed(0x227)](_0x3c5eb0[_0x2394ed(0x20f)]),_0x25a4a3=this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x214)](_0x3c5eb0[_0x2394ed(0x20f)]),_0x3034e5=_0x256277?.[_0x2394ed(0x1fa)]??_0x25a4a3?.[_0x2394ed(0x1fa)];if(_0x3034e5===undefined)throw new Error(_0x2394ed(0x1cf));const _0x13fa35=this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x217)](_0x3034e5),_0x8a7aaa=_0x13fa35&&this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x203)](_0x13fa35['id']),_0x5bf8f1=_0x13fa35!==undefined&&this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x1c7)](_0x13fa35['id'])===undefined&&_0x8a7aaa!==undefined&&(_0x8a7aaa[_0x2394ed(0x1df)]===_0x2394ed(0x1b9)||_0x8a7aaa[_0x2394ed(0x1df)]===_0x2394ed(0x1fd)||_0x8a7aaa[_0x2394ed(0x1df)]===_0x2394ed(0x1de)),_0x37fc69=this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x204)](_0x3034e5)[_0x2394ed(0x1fb)],_0x10e665=_0x13fa35!==undefined&&_0x3c5eb0[_0x2394ed(0x20f)]===_0x13fa35['id'];if(_0x10e665||!_0x3c5eb0[_0x2394ed(0x1d9)][_0x2394ed(0x20b)]||_0x3c5eb0[_0x2394ed(0x21f)]!==_0x2394ed(0x1f5))this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x206)](_0x3034e5);if(_0x3c5eb0[_0x2394ed(0x1d6)]!==undefined&&_0x13fa35?.['id']===_0x3c5eb0[_0x2394ed(0x1d6)]){if(_0x5bf8f1){if(_0x25a4a3!==undefined)this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x1a3)](_0x25a4a3['id']);return this[_0x2394ed(0x208)](_0x3034e5),_0x2394ed(0x202);}if(this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x1c7)](_0x13fa35['id'])===undefined&&!this[_0x2394ed(0x210)](_0x13fa35)){if(_0x25a4a3!==undefined)this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x1a3)](_0x25a4a3['id']);return this[_0x2394ed(0x1b8)](_0x3034e5),_0x2394ed(0x1ad);}return this[_0x2394ed(0x1bf)](_0x3c5eb0[_0x2394ed(0x20f)],_0x13fa35['id']),_0x2394ed(0x202);}if(_0x10e665)return this[_0x2394ed(0x208)](_0x3034e5),_0x2394ed(0x1a5);if(_0x13fa35===undefined&&_0x25a4a3!==undefined){if(_0x3c5eb0[_0x2394ed(0x1d9)][_0x2394ed(0x20b)]&&_0x3c5eb0[_0x2394ed(0x21f)]===_0x2394ed(0x1a0))this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x1a3)](_0x25a4a3['id']);return this[_0x2394ed(0x1db)](_0x3034e5),_0x2394ed(0x1a5);}if(_0x5bf8f1&&_0x25a4a3!==undefined){if(_0x3c5eb0[_0x2394ed(0x21f)]===_0x2394ed(0x1a0))this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x1a3)](_0x25a4a3['id']);return this[_0x2394ed(0x208)](_0x3034e5),_0x2394ed(0x1a5);}if(this[_0x2394ed(0x1da)][_0x2394ed(0x1e0)][_0x2394ed(0x204)](_0x3034e5)[_0x2394ed(0x1fb)]!==_0x37fc69)this[_0x2394ed(0x1b8)](_0x3034e5);return _0x2394ed(0x1ad);}[_0x5ef0e4(0x1b5)](_0x218f41){const _0x473737=_0x5ef0e4,_0x45e434=this[_0x473737(0x201)](_0x218f41);this[_0x473737(0x1da)][_0x473737(0x1e0)][_0x473737(0x206)](_0x45e434[_0x473737(0x1fa)]),this[_0x473737(0x1da)][_0x473737(0x1e0)][_0x473737(0x1a3)](_0x45e434['id']);const _0x5a31cc=this[_0x473737(0x1da)][_0x473737(0x1e0)][_0x473737(0x217)](_0x45e434[_0x473737(0x1fa)]);if(_0x5a31cc!==undefined)return this[_0x473737(0x1bf)](_0x45e434['id'],_0x5a31cc['id'],![]),{'run':_0x5a31cc,'delivery':_0x473737(0x202)};this[_0x473737(0x1db)](_0x45e434[_0x473737(0x1fa)]);const _0x37a107=this[_0x473737(0x1da)][_0x473737(0x1e0)][_0x473737(0x217)](_0x45e434[_0x473737(0x1fa)]);if(_0x37a107===undefined)throw new Error(_0x473737(0x1d8));return{'run':_0x37a107,'delivery':_0x473737(0x1a5)};}[_0x5ef0e4(0x1a8)](_0x4db286,_0x18c342){const _0x39dd5d=_0x5ef0e4,_0x37125a=this[_0x39dd5d(0x1f0)][_0x39dd5d(0x227)](_0x4db286);if(_0x37125a===undefined)return;this[_0x39dd5d(0x1f0)][_0x39dd5d(0x1a2)](_0x4db286,{..._0x37125a,'input':_0x18c342});}[_0x5ef0e4(0x1dd)](_0x322f5a){const _0xd0e48b=_0x5ef0e4,_0x3e50e7=this[_0xd0e48b(0x1da)][_0xd0e48b(0x1e0)][_0xd0e48b(0x214)](_0x322f5a);if(_0x3e50e7===undefined)throw new Error(_0xd0e48b(0x1cc));this[_0xd0e48b(0x1da)][_0xd0e48b(0x1e0)][_0xd0e48b(0x1dd)](_0x3e50e7['id']),this[_0xd0e48b(0x211)](_0x3e50e7['id']),this[_0xd0e48b(0x1da)][_0xd0e48b(0x1ec)](_0x3e50e7['id']),this[_0xd0e48b(0x1da)][_0xd0e48b(0x1ee)](_0x3e50e7['id']),this[_0xd0e48b(0x1da)][_0xd0e48b(0x1b0)](_0x3e50e7[_0xd0e48b(0x222)],_0x3e50e7[_0xd0e48b(0x1fa)]);}[_0x5ef0e4(0x1e7)](_0x457544){const _0x449999=_0x5ef0e4,_0x18b4aa=this[_0x449999(0x1da)][_0x449999(0x1e0)][_0x449999(0x203)](_0x457544);if(_0x18b4aa!==undefined)this[_0x449999(0x1da)][_0x449999(0x1b7)](_0x18b4aa);}[_0x5ef0e4(0x1b8)](_0x37e33f){const _0x392362=_0x5ef0e4,_0x521e06=this[_0x392362(0x1da)][_0x392362(0x1e0)][_0x392362(0x205)](_0x37e33f);if(_0x521e06===undefined)throw new Error(_0x392362(0x1cf));this[_0x392362(0x1da)][_0x392362(0x1b0)](_0x521e06[_0x392362(0x222)],_0x521e06['id']);}[_0x5ef0e4(0x1bf)](_0x47649a,_0xc29c93,_0x1de547=!![]){const _0x4886c7=_0x5ef0e4,_0x5f0e2d=this[_0x4886c7(0x201)](_0x47649a),_0x3fac08=this[_0x4886c7(0x1da)][_0x4886c7(0x1e0)][_0x4886c7(0x1ae)](_0xc29c93);if(_0x3fac08===undefined||_0x5f0e2d[_0x4886c7(0x1fa)]!==_0x3fac08[_0x4886c7(0x1fa)])throw new Error(_0x4886c7(0x1cc));if(_0x1de547)this[_0x4886c7(0x1da)][_0x4886c7(0x1e0)][_0x4886c7(0x1a3)](_0x5f0e2d['id']);this[_0x4886c7(0x1b8)](_0x5f0e2d[_0x4886c7(0x1fa)]);const _0x17e357=this[_0x4886c7(0x1da)][_0x4886c7(0x1e0)][_0x4886c7(0x1c7)](_0x3fac08['id']);if(_0x17e357===undefined)throw new Error(_0x4886c7(0x212));if(!this[_0x4886c7(0x1b4)][_0x4886c7(0x1ab)](_0x17e357)){const _0x4ce2b5=this[_0x4886c7(0x1f0)][_0x4886c7(0x227)](_0x17e357),_0x3a6570=this[_0x4886c7(0x1f0)][_0x4886c7(0x227)](_0x5f0e2d['id']);if(_0x4ce2b5!==undefined&&_0x3a6570!==undefined)this[_0x4886c7(0x1f0)][_0x4886c7(0x1a2)](_0x5f0e2d['id'],{..._0x3a6570,'input':_0x4ce2b5[_0x4886c7(0x1eb)]+'\x0a\x0a'+_0x3a6570[_0x4886c7(0x1eb)]});}this[_0x4886c7(0x1da)][_0x4886c7(0x1e1)](_0x17e357),this[_0x4886c7(0x1da)][_0x4886c7(0x1b2)](_0x4886c7(0x20c),{'runId':_0x17e357});}[_0x5ef0e4(0x1c1)](_0x82835a){const _0x28c603=_0x5ef0e4;this[_0x28c603(0x1da)][_0x28c603(0x1e0)][_0x28c603(0x206)](_0x82835a),this[_0x28c603(0x1db)](_0x82835a);}[_0x5ef0e4(0x208)](_0x58dda1,_0x10d69a=-0x2619+-0x5*-0x4a6+0xedb){const _0x5379b3=_0x5ef0e4;if(this[_0x5379b3(0x1e9)][_0x5379b3(0x1ab)](_0x58dda1))return;const _0x4bf1d2=setTimeout(()=>{const _0x158fd0=_0x5379b3;this[_0x158fd0(0x1e9)][_0x158fd0(0x21b)](_0x58dda1);if(!this[_0x158fd0(0x1da)][_0x158fd0(0x1d3)]())void this[_0x158fd0(0x1e6)](_0x58dda1);},_0x10d69a);this[_0x5379b3(0x1e9)][_0x5379b3(0x1a2)](_0x58dda1,_0x4bf1d2),_0x4bf1d2[_0x5379b3(0x1dc)]();}async[_0x5ef0e4(0x1e6)](_0x17853b){const _0x2164b8=_0x5ef0e4,_0x2e4f24=this[_0x2164b8(0x1da)][_0x2164b8(0x1e0)][_0x2164b8(0x217)](_0x17853b);if(_0x2e4f24===undefined)return;let _0x1ef812=this[_0x2164b8(0x1da)][_0x2164b8(0x1e0)][_0x2164b8(0x1c7)](_0x2e4f24['id']);if(_0x1ef812!==undefined&&this[_0x2164b8(0x21d)][_0x2164b8(0x1ab)](_0x1ef812))return;let _0x4455e1=_0x1ef812===undefined?this[_0x2164b8(0x1f0)][_0x2164b8(0x227)](_0x2e4f24['id']):this[_0x2164b8(0x1f0)][_0x2164b8(0x227)](_0x1ef812);if(_0x1ef812===undefined&&_0x4455e1===undefined){const _0x50dc23=this[_0x2164b8(0x1da)][_0x2164b8(0x1e0)][_0x2164b8(0x204)](_0x17853b)[_0x2164b8(0x1c5)][-0x18e3+0xe47+-0xc2*-0xe];if(_0x50dc23===undefined)return;_0x4455e1=this[_0x2164b8(0x1f0)][_0x2164b8(0x227)](_0x50dc23);if(_0x4455e1===undefined)return;const _0x55a65a=this[_0x2164b8(0x1da)][_0x2164b8(0x1e0)][_0x2164b8(0x214)](_0x50dc23);if(_0x55a65a===undefined)return;if(this[_0x2164b8(0x1da)][_0x2164b8(0x1e0)][_0x2164b8(0x220)](_0x17853b,withNonImageAttachmentPrompt(_0x55a65a[_0x2164b8(0x1f1)],_0x4455e1[_0x2164b8(0x1ac)]))===undefined)return;const _0x2e5e0e=this[_0x2164b8(0x1da)][_0x2164b8(0x1e0)][_0x2164b8(0x1bd)](_0x2e4f24['id']);_0x1ef812=_0x2e5e0e['id'],this[_0x2164b8(0x1f0)][_0x2164b8(0x21b)](_0x50dc23),this[_0x2164b8(0x1f0)][_0x2164b8(0x1a2)](_0x2e5e0e['id'],{..._0x4455e1,'runId':_0x2e5e0e['id']}),this[_0x2164b8(0x1da)][_0x2164b8(0x1a6)](_0x50dc23,_0x2e5e0e['id']),this[_0x2164b8(0x1b8)](_0x17853b);const _0x32d353=this[_0x2164b8(0x1da)][_0x2164b8(0x1e0)][_0x2164b8(0x219)](_0x2e5e0e['id']);if(_0x32d353===undefined)throw new Error(_0x2164b8(0x1a7));this[_0x2164b8(0x1da)][_0x2164b8(0x1b7)](_0x32d353);}else{if(_0x1ef812===undefined&&_0x4455e1!==undefined){const _0xeb7612=this[_0x2164b8(0x1da)][_0x2164b8(0x1e0)][_0x2164b8(0x1bd)](_0x2e4f24['id']);_0x1ef812=_0xeb7612['id'],this[_0x2164b8(0x1f0)][_0x2164b8(0x21b)](_0x2e4f24['id']),this[_0x2164b8(0x1f0)][_0x2164b8(0x1a2)](_0xeb7612['id'],{..._0x4455e1,'runId':_0xeb7612['id']}),this[_0x2164b8(0x1da)][_0x2164b8(0x1a6)](_0x2e4f24['id'],_0xeb7612['id']);}}if(_0x1ef812===undefined||_0x4455e1===undefined)return;if(this[_0x2164b8(0x21d)][_0x2164b8(0x1ab)](_0x1ef812))return;this[_0x2164b8(0x21d)][_0x2164b8(0x1f3)](_0x1ef812);try{const _0x4b65e6=_0x4455e1[_0x2164b8(0x213)]===undefined?undefined:await this[_0x2164b8(0x1da)][_0x2164b8(0x223)]?.(_0x4455e1);this[_0x2164b8(0x1da)][_0x2164b8(0x1b2)](_0x2164b8(0x1a4),{'runId':_0x1ef812,'sessionId':_0x4455e1[_0x2164b8(0x1fa)],'workspaceId':_0x4455e1[_0x2164b8(0x222)],'runner':_0x4455e1[_0x2164b8(0x1e8)],'input':_0x4455e1[_0x2164b8(0x1eb)],..._0x4455e1[_0x2164b8(0x1b1)]===undefined?{}:{'clientMessageId':_0x4455e1[_0x2164b8(0x1b1)]},..._0x4455e1[_0x2164b8(0x1c0)][_0x2164b8(0x20d)]===-0x319+0x25a3+-0x228a?{}:{'attachments':_0x4455e1[_0x2164b8(0x1c0)]},'cwd':_0x4455e1[_0x2164b8(0x1d2)],..._0x4455e1[_0x2164b8(0x1cb)]===null?{}:{'externalSessionId':_0x4455e1[_0x2164b8(0x1cb)]},..._0x4455e1[_0x2164b8(0x1c2)]===null?{}:{'model':_0x4455e1[_0x2164b8(0x1c2)]},..._0x4455e1[_0x2164b8(0x1c6)]===null?{}:{'effort':_0x4455e1[_0x2164b8(0x1c6)]},..._0x4455e1[_0x2164b8(0x1f8)]===null?{}:{'access':_0x4455e1[_0x2164b8(0x1f8)]},'collaborationMode':_0x4455e1[_0x2164b8(0x1a1)],..._0x4455e1[_0x2164b8(0x207)]===undefined?{}:{'serviceTier':_0x4455e1[_0x2164b8(0x207)]},'secretEnvironment':_0x4455e1[_0x2164b8(0x1d1)],..._0x4b65e6===undefined?{}:{'mcpSecretEnvironment':_0x4b65e6[_0x2164b8(0x221)]},..._0x4455e1[_0x2164b8(0x1c4)]===undefined?{}:{'personalInstructions':_0x4455e1[_0x2164b8(0x1c4)]},..._0x4455e1[_0x2164b8(0x1d7)]===undefined?{}:{'marAgentModel':_0x4455e1[_0x2164b8(0x1d7)]},..._0x4455e1[_0x2164b8(0x1ef)]===undefined?{}:{'marAgentModels':_0x4455e1[_0x2164b8(0x1ef)]},'mcpInstallations':[...this[_0x2164b8(0x1da)][_0x2164b8(0x1ba)](_0x4455e1[_0x2164b8(0x222)]),..._0x4b65e6===undefined?[]:[_0x4b65e6[_0x2164b8(0x1be)]]]});}catch(_0x117c41){this[_0x2164b8(0x1da)][_0x2164b8(0x1e5)](_0x1ef812,_0x2164b8(0x1e4),{'code':safeErrorCode(_0x117c41,_0x2164b8(0x1f7))},_0x2164b8(0x1fd));}}[_0x5ef0e4(0x1b3)](_0x1763b8){const _0x832c0a=_0x5ef0e4;if(this[_0x832c0a(0x1b4)][_0x832c0a(0x1ab)](_0x1763b8))return;const _0x1860f2=this[_0x832c0a(0x1f0)][_0x832c0a(0x227)](_0x1763b8);if(_0x1860f2===undefined)return;this[_0x832c0a(0x1b4)][_0x832c0a(0x1f3)](_0x1763b8),void this[_0x832c0a(0x1da)][_0x832c0a(0x1f4)]?.(_0x1860f2)[_0x832c0a(0x1ff)](()=>undefined);}[_0x5ef0e4(0x218)](_0x165bf8){const _0x5509f9=_0x5ef0e4;return this[_0x5509f9(0x1b4)][_0x5509f9(0x1ab)](_0x165bf8);}[_0x5ef0e4(0x1d5)](_0x11ac1e,_0x1cf90b){const _0x460a25=_0x5ef0e4;for(const [_0x31d8f6,_0x395890]of this[_0x460a25(0x1f0)])if(_0x395890[_0x460a25(0x1fa)]===_0x11ac1e)this[_0x460a25(0x1f0)][_0x460a25(0x1a2)](_0x31d8f6,{..._0x395890,'sessionId':_0x1cf90b,'externalSessionId':_0x1cf90b});const _0xac975f=this[_0x460a25(0x1e9)][_0x460a25(0x227)](_0x11ac1e);_0xac975f!==undefined&&(clearTimeout(_0xac975f),this[_0x460a25(0x1e9)][_0x460a25(0x21b)](_0x11ac1e),this[_0x460a25(0x208)](_0x1cf90b));}[_0x5ef0e4(0x211)](_0x2e2080){const _0x2dfb6e=_0x5ef0e4;this[_0x2dfb6e(0x1f0)][_0x2dfb6e(0x21b)](_0x2e2080),this[_0x2dfb6e(0x21d)][_0x2dfb6e(0x21b)](_0x2e2080),this[_0x2dfb6e(0x1b4)][_0x2dfb6e(0x21b)](_0x2e2080);}[_0x5ef0e4(0x1c9)](_0x3836d5){const _0x2291a9=_0x5ef0e4;for(const [_0x2afcdb,_0x13fad3]of this[_0x2291a9(0x1f0)]){if(_0x13fad3[_0x2291a9(0x1fa)]!==_0x3836d5||_0x13fad3[_0x2291a9(0x213)]===undefined)continue;const _0x1c3498=this[_0x2291a9(0x1da)][_0x2291a9(0x1e0)][_0x2291a9(0x214)](_0x2afcdb);if(_0x1c3498!==undefined)this[_0x2291a9(0x1dd)](_0x2afcdb);}}[_0x5ef0e4(0x1ce)](_0x140497,_0x26f9b5){const _0x4b4bc8=_0x5ef0e4;for(const _0x2b563d of[...this[_0x4b4bc8(0x1da)][_0x4b4bc8(0x1e0)][_0x4b4bc8(0x204)](_0x140497)[_0x4b4bc8(0x1c5)]]){if(_0x2b563d===_0x26f9b5)continue;this[_0x4b4bc8(0x1dd)](_0x2b563d);}}[_0x5ef0e4(0x200)](){const _0x1591ed=_0x5ef0e4;this[_0x1591ed(0x1f0)][_0x1591ed(0x200)](),this[_0x1591ed(0x21d)][_0x1591ed(0x200)](),this[_0x1591ed(0x1b4)][_0x1591ed(0x200)]();for(const _0x456fb2 of this[_0x1591ed(0x1e9)][_0x1591ed(0x1bb)]())clearTimeout(_0x456fb2);this[_0x1591ed(0x1e9)][_0x1591ed(0x200)]();}[_0x5ef0e4(0x1db)](_0xb56c12){const _0x4a89e6=_0x5ef0e4;if(this[_0x4a89e6(0x1da)][_0x4a89e6(0x1e0)][_0x4a89e6(0x217)](_0xb56c12)!==undefined){this[_0x4a89e6(0x208)](_0xb56c12);return;}const _0x53615b=this[_0x4a89e6(0x1da)][_0x4a89e6(0x1e0)][_0x4a89e6(0x204)](_0xb56c12),_0x1d82c8=_0x53615b[_0x4a89e6(0x20b)]?undefined:_0x53615b[_0x4a89e6(0x1c5)][0x2351+0x1e9c+0x7*-0x96b];if(_0x1d82c8===undefined)return;const _0x27c951=this[_0x4a89e6(0x1f0)][_0x4a89e6(0x227)](_0x1d82c8);if(_0x27c951===undefined)throw new Error(_0x4a89e6(0x1af));const _0x16f241=this[_0x4a89e6(0x1da)][_0x4a89e6(0x1e0)][_0x4a89e6(0x214)](_0x1d82c8);if(_0x16f241===undefined)throw new Error(_0x4a89e6(0x1cc));const {run:_0x364d8a,turn:_0x360c2b}=this[_0x4a89e6(0x1da)][_0x4a89e6(0x1e0)][_0x4a89e6(0x226)](_0x1d82c8,withNonImageAttachmentPrompt(_0x16f241[_0x4a89e6(0x1f1)],_0x27c951[_0x4a89e6(0x1ac)]));this[_0x4a89e6(0x1f0)][_0x4a89e6(0x21b)](_0x1d82c8),this[_0x4a89e6(0x1f0)][_0x4a89e6(0x1a2)](_0x364d8a['id'],{..._0x27c951,'runId':_0x364d8a['id']}),this[_0x4a89e6(0x1da)][_0x4a89e6(0x1b0)](_0x364d8a[_0x4a89e6(0x222)],_0xb56c12),this[_0x4a89e6(0x1da)][_0x4a89e6(0x1b7)](_0x360c2b),this[_0x4a89e6(0x208)](_0xb56c12);}[_0x5ef0e4(0x201)](_0x57be8c){const _0x4b78c9=_0x5ef0e4,_0x37e897=this[_0x4b78c9(0x1da)][_0x4b78c9(0x1e0)][_0x4b78c9(0x214)](_0x57be8c);if(_0x37e897===undefined)throw new Error(_0x4b78c9(0x1cc));if(!this[_0x4b78c9(0x1f0)][_0x4b78c9(0x1ab)](_0x57be8c))throw new Error(_0x4b78c9(0x1af));return _0x37e897;}[_0x5ef0e4(0x210)](_0x4d2d90){const _0x284e8f=_0x5ef0e4;return this[_0x284e8f(0x1da)][_0x284e8f(0x1e0)][_0x284e8f(0x228)](_0x4d2d90[_0x284e8f(0x1fa)],_0x4d2d90[_0x284e8f(0x1b1)])?.['id']===_0x4d2d90['id'];}[_0x5ef0e4(0x1ea)](_0x2782bc){const _0x6d6f8d=_0x5ef0e4,_0x2d5fb6=this[_0x6d6f8d(0x1da)][_0x6d6f8d(0x1e0)][_0x6d6f8d(0x203)](_0x2782bc['id'])?.[_0x6d6f8d(0x1df)];if(_0x2d5fb6===_0x6d6f8d(0x1b9))this[_0x6d6f8d(0x1da)][_0x6d6f8d(0x1e5)](_0x2782bc['id'],_0x6d6f8d(0x1ca),{},_0x6d6f8d(0x1b9));else{if(_0x2d5fb6===_0x6d6f8d(0x1fd))this[_0x6d6f8d(0x1da)][_0x6d6f8d(0x1e5)](_0x2782bc['id'],_0x6d6f8d(0x1fc),{},_0x6d6f8d(0x1fd));else{if(_0x2d5fb6===_0x6d6f8d(0x1de))this[_0x6d6f8d(0x1da)][_0x6d6f8d(0x1e5)](_0x2782bc['id'],_0x6d6f8d(0x1ca),{},_0x6d6f8d(0x1de));}}}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0xd6b9b7=_0x15df;(function(_0x391176,_0x159406){const _0x27c8d2=_0x15df,_0x2cf79b=_0x391176();while(!![]){try{const _0x14e8c8=parseInt(_0x27c8d2(0x1b4))/(-0x1e54*0x1+0xc*-0x282+0x3c6d)*(parseInt(_0x27c8d2(0x1b2))/(-0x5e7*-0x1+-0x1*-0x1a15+-0x1ffa))+parseInt(_0x27c8d2(0x1e9))/(0x1c97+0x274*-0x2+-0x7e4*0x3)+-parseInt(_0x27c8d2(0x1bb))/(0x20cd+0xebf+-0x2f88)+parseInt(_0x27c8d2(0x1ad))/(0x102*-0x15+0x1007+-0x1*-0x528)+-parseInt(_0x27c8d2(0x1c6))/(-0x1a40+-0x1b78+0x35be)*(parseInt(_0x27c8d2(0x1a2))/(0x1b3*0x13+0xf7c+-0x7f5*0x6))+-parseInt(_0x27c8d2(0x1d5))/(-0x7e0+0x12dd+-0xaf5)+-parseInt(_0x27c8d2(0x1aa))/(0x7*0x61+-0x2fd*0x7+-0x1*-0x124d)*(-parseInt(_0x27c8d2(0x1f4))/(0x6d8+-0x16f6*0x1+-0x2*-0x814));if(_0x14e8c8===_0x159406)break;else _0x2cf79b['push'](_0x2cf79b['shift']());}catch(_0x12ec0e){_0x2cf79b['push'](_0x2cf79b['shift']());}}}(_0x51b0,0x28df*0x25+0x64d33+0x1*-0x7d173));import{discoverNativeSessions,readNativeSession}from'../native-session-history.js';import{coalesceImageGenerationItems}from'../runner/codex/conversation-parser.js';import{nativeConversationPage}from'../util/runner-native-session-parsers.js';import{isPlainRecord}from'../util/node-operation-parsers.js';import{nodeLog}from'../operational.js';export function hasManagedActiveRun(_0x2baddc,_0x22bdd9){const _0x4bf1fd=_0x15df;return _0x22bdd9[_0x4bf1fd(0x1a9)]===_0x4bf1fd(0x222)&&_0x2baddc[_0x4bf1fd(0x220)](_0x22bdd9['id'])[_0x4bf1fd(0x1a6)](_0x35e430=>_0x35e430[_0x4bf1fd(0x1a3)]===_0x4bf1fd(0x1cc)||_0x35e430[_0x4bf1fd(0x1a3)]===_0x4bf1fd(0x21b)||_0x35e430[_0x4bf1fd(0x1a3)]===_0x4bf1fd(0x1f7));}export function convergeConversationWatchPage(_0x29d4b9,_0xebba5c,_0x59d891,_0xc51bde){const _0x558e53=_0x15df,_0x5d213d=isConversationHistorySource(_0xc51bde)?_0xc51bde:_0x29d4b9?.[_0x558e53(0x204)];if(_0x29d4b9===undefined||_0x5d213d===undefined||sourceRank(_0x59d891[_0x558e53(0x204)])>=sourceRank(_0x5d213d))return{'page':_0x59d891,'authority':_0x59d891[_0x558e53(0x204)]};if(_0x29d4b9[_0x558e53(0x1c7)][_0x558e53(0x1ae)]===0x255f*-0x1+0x2514+0x4b)return{'page':_0x59d891,'authority':_0x5d213d};const _0x4341bb=_0x59d891[_0x558e53(0x1c7)][_0x558e53(0x1eb)](_0x362a56=>_0x29d4b9[_0x558e53(0x1c7)][_0x558e53(0x1a6)](_0x24d476=>sameConversationTurn(_0x24d476,_0x362a56))),_0x3e29e7=_0x4341bb>=0x1664+-0x151*-0x11+0x9d*-0x49||_0xebba5c===undefined?-(-0x21f6+-0x6*-0x62c+-0x1*0x311):_0x59d891[_0x558e53(0x1c7)][_0x558e53(0x1eb)](_0x4dfb5b=>_0xebba5c[_0x558e53(0x1c7)][_0x558e53(0x1a6)](_0x587958=>sameConversationTurn(_0x587958,_0x4dfb5b))),_0x226236=Math[_0x558e53(0x219)](_0x4341bb,_0x3e29e7);if(_0x226236<-0x6e4+0x14c6+-0xde2)return{'page':_0x29d4b9,'authority':_0x5d213d};const _0x266ef4=_0x59d891[_0x558e53(0x1c7)][_0x558e53(0x1d9)](_0x226236+(0x9a9*-0x2+0x2041+-0xcee*0x1))[_0x558e53(0x1a5)](_0x227e45=>!_0x29d4b9[_0x558e53(0x1c7)][_0x558e53(0x1a6)](_0x38acdc=>sameConversationTurn(_0x38acdc,_0x227e45)));if(_0x266ef4[_0x558e53(0x1ae)]===0x1c33*-0x1+-0x1d09+0x393c)return{'page':_0x29d4b9,'authority':_0x5d213d};return{'page':{..._0x29d4b9,'source':_0x59d891[_0x558e53(0x204)],'snapshotSequence':Math[_0x558e53(0x219)](_0x29d4b9[_0x558e53(0x1cf)],_0x59d891[_0x558e53(0x1cf)]),'readAt':_0x59d891[_0x558e53(0x1fa)],'latestVisibleAt':_0x59d891[_0x558e53(0x1f6)]??_0x29d4b9[_0x558e53(0x1f6)],'turns':[..._0x29d4b9[_0x558e53(0x1c7)],..._0x266ef4]},'authority':_0x5d213d};}export function composeConversationRuntimePage(_0x43b65e,_0x5a79d8){const _0x12214e=_0x15df;if(_0x43b65e===undefined)return _0x5a79d8;const _0x25469d=[..._0x43b65e[_0x12214e(0x1c7)]];for(const _0x469390 of _0x5a79d8[_0x12214e(0x1c7)]){const _0x5eacb2=_0x25469d[_0x12214e(0x1d2)](_0xf468d2=>sameConversationTurn(_0xf468d2,_0x469390));if(_0x5eacb2<-0x110e+-0x16f6+0x1a*0x18a)insertConversationTurnChronologically(_0x25469d,_0x469390);else _0x25469d[_0x5eacb2]=_0x469390;}return{..._0x5a79d8,'nextCursor':_0x43b65e[_0x12214e(0x208)],'turns':_0x25469d};}function insertConversationTurnChronologically(_0x2c2be2,_0x267736){const _0x5d23af=_0x15df,_0x422a82=earliestTurnActivityAt(_0x267736);if(_0x422a82===-0xad6+-0x1379+0x1e4f){_0x2c2be2[_0x5d23af(0x1bf)](_0x267736);return;}const _0x10db31=_0x2c2be2[_0x5d23af(0x1d2)](_0x598e46=>{const _0x4b16d6=earliestTurnActivityAt(_0x598e46);return _0x4b16d6>0x2007+0x182*-0x7+0xef*-0x17&&_0x4b16d6>_0x422a82;});if(_0x10db31<0x4fd*-0x3+0x12b5+0x3be*-0x1)_0x2c2be2[_0x5d23af(0x1bf)](_0x267736);else _0x2c2be2[_0x5d23af(0x1ed)](_0x10db31,-0x12a9*0x1+-0xc2c+0x1ed5,_0x267736);}function earliestTurnActivityAt(_0x4d5ce8){const _0x5231b0=_0x15df,_0x3e1ef4=[_0x4d5ce8[_0x5231b0(0x1e3)],_0x4d5ce8[_0x5231b0(0x1e0)],..._0x4d5ce8[_0x5231b0(0x1ca)][_0x5231b0(0x202)](_0x10f48e=>_0x10f48e[_0x5231b0(0x1e3)])][_0x5231b0(0x1a5)](_0x43fde3=>typeof _0x43fde3===_0x5231b0(0x1b0)&&Number[_0x5231b0(0x1e7)](_0x43fde3)&&_0x43fde3>0x11d+-0xd61*-0x2+-0x1bdf*0x1);return _0x3e1ef4[_0x5231b0(0x1ae)]===0xb*0x7+-0x20af+0x2062?-0x13a4+-0x2*-0xbe3+-0x422:Math[_0x5231b0(0x21e)](..._0x3e1ef4);}function isConversationHistorySource(_0x140a91){const _0x3e040e=_0x15df;return _0x140a91===_0x3e040e(0x1de)||_0x140a91===_0x3e040e(0x1d3)||_0x140a91===_0x3e040e(0x1b6);}function _0x51b0(){const _0x39f866=['CMvHza','DMfSDwvZ','CNvUBMvY','ChvZAa','BgLTAxq','BMv4DevUza','rvzftLrFq1vsu09sx0LovKfmsuq','A2LUza','CMvHzeXPBwL0','uevoreLorW','mtm0mty3mKXhC3P3CW','DhvYBNm','C3rHCNrZv2L0Aa','CMvHzeHPC3rVCNLqywDL','AxrLBxm','Dg9VBfvZzuLK','u1rbuLrjtKC','C2v0rxH0zxjUywXby3rPDML0Eq','Dg9tDhjPBMC','C25HChnOB3rtzxf1zw5Jzq','CNvUBMvYCW','y3vYC29YuMvZzxq','zMLUzeLUzgv4','BMf0AxzL','AxnjBNrLz2vY','mtK1mJG5nLjkwhHzvG','CMvHzeHPC3rVCNK','CMvHze9MzMLJAwfS','C3rHz2u','C2XPy2u','C25HChnOB3rfBMq','Aw5JB21WBgv0zu5HDgL2zq','DxrMoa','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','B2zMAwnPywW','CMvHze9MzMLJAwfSq29UDMvYC2f0Aw9U','y29TCgXLDgvKqxq','ywnJzxb0C1rYDw5JyxrLze5HDgL2zuHPC3rVCNK','DxnLCL9TzxnZywDL','C3rHCNrLzef0','Dg9VBf9JywXS','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5HDhrHy2HTzw50lxnVDxjJzs1YzwfKlMnVBxbSzxrLza','Cgf5Bg9Hza','AxngAw5PDgu','BgfZDeLUzgv4t2y','ndu4nJq5sNvyzw1L','yxr0ywnOtMf0AxzLsw1Hz2vZ','zMLUzeXHC3rjBMrLEa','BwfUywDLzfj1BKzVCK5HDgL2zvr1CM4','C3bSAwnL','CMvNAxn0zxjoyxrPDMu','Aw1Hz2vbDhrHy2HTzw50CW','zxH0zxjUywXtzxnZAw9Uswq','CMvHzenVBNzLCNnHDgLVBKHPC3rVCNK','C2L6zq','yMvMB3jLqxq','mZCWBwzsCgrJ','CgfYC2u','Bgf0zxn0vMLZAwjSzuf0','q0foq0vmteLorW','CM91BMq','zxjYB3i','CMvHzef0','yxbWCM92ywXFCMvXDwvZDa','BM93','yxzHAwXHyMXL','yMfZzty0DxjS','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','z2v0','y2fWywjPBgL0AwvZ','BwfW','CMvXDwvZDeLK','C291CMnL','y3DK','AgfZ','tKfusvzfx1rsqu5tq1jjufrFsu5dt01qtevurq','BMv4Den1CNnVCG','yxbWCM92ywXjza','AgfZtwfUywDLzefJDgL2zvj1BG','C3rYAw5N','DxnLCL9PBNb1Df9Yzxf1zxn0','CMvHze5HDgL2zq','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5UyxrPDMuTCMvHzc5JB21WBgv0zwq','yw5JAg9YqNL0zxm','BwfYlwfJDgL2zs1OAxn0B3j5oJe6','zMXHDe1HCa','t0zgsunjquW','y2XPzw50twvZC2fNzuLK','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','CMvHze1HBMfNzwrby3rPDMu','CNvUswq','zMLSzufUy2HVCG','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5VzMzPy2LHBc1YzwfKlMnVBxbSzxrLza','Bwf4','C2vZC2LVBKLK','uLvotKLorW','BwfUywDLzfj1BM5LCLr1CM4','CMvXDwLYzq','BwLU','y3vYC29Y','BgLZDfj1BNngB3jtzxnZAw9U','Dhj1BMnHDgvK','tufsx01btKfhruq','CMvHzev4DgvYBMfSqwn0AxzPDhK','n2vXEKL1Bq','C3rHDhvZ','CMvHzfj1BM5LCKHPC3rVCNK','zMLSDgvY','C29Tzq','C3rYAw5NAwz5','yxr0ywnOBwvUDhm','BMf0AxzLq29UDhjVBa','mZuWmdfAqvDwveW','rvHurvjoquW','CgfNzq','mJq4nJiZnvLgDvfctW','BgvUz3rO','z2v0qwDLBNrtzxnZAw9U','BNvTyMvY','rKfjteve','odyYBwrxEuzy','zNjVBq','mty5BwHWCw9i','uLvoveLnrq','CNvUDgLTzq','vu5bvKfjtefcteu','C2v0','B3b0Aw9UCW','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','ndq1ntK2rfv2ywrb'];_0x51b0=function(){return _0x39f866;};return _0x51b0();}export class ConversationHistoryService{[_0xd6b9b7(0x1b9)];constructor(_0x1abebc){const _0x2de682=_0xd6b9b7;this[_0x2de682(0x1b9)]=_0x1abebc;}async[_0xd6b9b7(0x1bc)](_0x2cc5fb,_0x473cd9){const _0x54c640=_0xd6b9b7,_0x1bdb7d=this[_0x54c640(0x1b9)][_0x54c640(0x1cf)](),_0x3be88f=Date[_0x54c640(0x1fc)](),_0x4a563e=decodeActiveHistoryCursor(_0x473cd9[_0x54c640(0x21f)],_0x2cc5fb['id']);if(_0x4a563e!==undefined||this[_0x54c640(0x1b9)][_0x54c640(0x20a)](_0x2cc5fb))return this[_0x54c640(0x215)](_0x2cc5fb,_0x473cd9,_0x4a563e,_0x1bdb7d,_0x3be88f);return this[_0x54c640(0x1d6)](_0x2cc5fb,_0x473cd9,_0x1bdb7d,_0x3be88f);}async[_0xd6b9b7(0x1c9)](_0xac01e3,_0x4f9643){const _0x116ead=_0xd6b9b7;return this[_0x116ead(0x1d6)](_0xac01e3,_0x4f9643,this[_0x116ead(0x1b9)][_0x116ead(0x1cf)](),Date[_0x116ead(0x1fc)]());}async[_0xd6b9b7(0x1d6)](_0x4bf49b,_0x4183ce,_0x27ba26,_0x2c4129){const _0x4593f5=_0xd6b9b7,_0x5945d5=await this[_0x4593f5(0x1a4)](_0x4bf49b,_0x4183ce);if(_0x5945d5[_0x4593f5(0x1ac)]?.[_0x4593f5(0x204)]===_0x4593f5(0x1d3))return this[_0x4593f5(0x1ac)](_0x5945d5[_0x4593f5(0x1ac)][_0x4593f5(0x208)],_0x5945d5[_0x4593f5(0x1ac)][_0x4593f5(0x1c7)],{'snapshotSequence':_0x27ba26,'source':_0x4593f5(0x1d3),'readAt':_0x2c4129});let _0x532bbc=_0x5945d5[_0x4593f5(0x1ac)]?.[_0x4593f5(0x204)]===_0x4593f5(0x1de)?_0x5945d5[_0x4593f5(0x1ac)]:undefined;if(_0x532bbc!==undefined){const _0x2867e7=Math[_0x4593f5(0x21e)](Math[_0x4593f5(0x219)](_0x4183ce[_0x4593f5(0x1c0)]??-0xa7c*-0x3+0x26c2+-0x4618,-0x1177+0x161a+-0x2*0x251),-0x10d3+0x81f+-0x3e*-0x2c),_0x508f41=this[_0x4593f5(0x1b9)][_0x4593f5(0x1b6)][_0x4593f5(0x1af)](_0x4bf49b['id'])===undefined?[]:this[_0x4593f5(0x1b9)][_0x4593f5(0x1b6)][_0x4593f5(0x214)]({'sessionId':_0x4bf49b['id'],'limit':0x1f4})[_0x4593f5(0x1c7)],_0x150dc7=new Set(_0x532bbc[_0x4593f5(0x1c7)][_0x4593f5(0x211)](_0x3b855a=>_0x3b855a[_0x4593f5(0x216)]===null?[]:[_0x3b855a[_0x4593f5(0x216)]])),_0x584a81=_0x508f41[_0x4593f5(0x1eb)](_0x1147e8=>_0x1147e8[_0x4593f5(0x216)]!==null&&_0x150dc7[_0x4593f5(0x206)](_0x1147e8[_0x4593f5(0x216)])),_0x28f5b1=_0x532bbc[_0x4593f5(0x1c7)][_0x4593f5(0x1ae)]>-0x3*0x1d7+0x2a2*-0xa+0x1fd9*0x1,_0x158382=_0x508f41[_0x4593f5(0x1a5)]((_0x56d73d,_0x5b98ca)=>(_0x56d73d[_0x4593f5(0x216)]===null||!_0x150dc7[_0x4593f5(0x206)](_0x56d73d[_0x4593f5(0x216)]))&&(!_0x28f5b1||_0x5b98ca>_0x584a81)),_0x52aec4=_0x158382[_0x4593f5(0x1d9)](-_0x2867e7);if(_0x4183ce[_0x4593f5(0x21f)]===undefined&&_0x52aec4[_0x4593f5(0x1ae)]>0x7*0x51d+-0x4d9*-0x8+-0x1*0x4a93&&_0x532bbc[_0x4593f5(0x1c7)][_0x4593f5(0x1ae)]+_0x52aec4[_0x4593f5(0x1ae)]>_0x2867e7){const _0x56f4d2=Math[_0x4593f5(0x21e)](_0x52aec4[_0x4593f5(0x1ae)],Math[_0x4593f5(0x219)](0x2037+0x18a*0x14+-0x3eff,_0x2867e7-(-0x745*-0x4+0x1097*-0x1+-0xc7c))),_0x283b83=await this[_0x4593f5(0x1d7)](_0x4bf49b,{..._0x4183ce,'limit':_0x2867e7-_0x56f4d2});if(_0x283b83!==undefined)_0x532bbc={..._0x283b83,'source':_0x4593f5(0x1de)};}const _0x1de1f8=await this[_0x4593f5(0x1ea)](_0x4bf49b,_0x532bbc[_0x4593f5(0x1c7)]),_0x3c4360=new Set(_0x1de1f8[_0x4593f5(0x211)](_0x16c48a=>_0x16c48a[_0x4593f5(0x216)]===null?[]:[_0x16c48a[_0x4593f5(0x216)]])),_0x519868=new Map();for(const _0x31f369 of _0x508f41){if(_0x31f369[_0x4593f5(0x216)]===null||!_0x3c4360[_0x4593f5(0x206)](_0x31f369[_0x4593f5(0x216)]))continue;const _0x56a4cc=_0x31f369[_0x4593f5(0x1ca)][_0x4593f5(0x1a5)](_0x2acae6=>_0x2acae6[_0x4593f5(0x1c3)]===_0x4593f5(0x1f9)||_0x2acae6[_0x4593f5(0x1c3)]===_0x4593f5(0x1fb)||_0x2acae6[_0x4593f5(0x1c3)]===_0x4593f5(0x20c)&&_0x2acae6[_0x4593f5(0x1a3)]===_0x4593f5(0x1c5));if(_0x56a4cc[_0x4593f5(0x1ae)]>-0x1269+-0x2581+0x37ea)_0x519868[_0x4593f5(0x1b8)](_0x31f369[_0x4593f5(0x216)],_0x56a4cc);}const _0xcaa484=Math[_0x4593f5(0x219)](0x4*-0x4ff+0x926+-0x13*-0x92,_0x2867e7-_0x1de1f8[_0x4593f5(0x1ae)]),_0x592f01=_0x4183ce[_0x4593f5(0x21f)]===undefined?_0x52aec4:[],_0x44af88=_0xcaa484===-0x22fd+0x5*-0x305+0x3*0x10b2?[]:_0x592f01[_0x4593f5(0x1d9)](-_0xcaa484),_0x1fb4a3=new Set([..._0x44af88[_0x4593f5(0x211)](_0x2061f2=>_0x2061f2[_0x4593f5(0x1ca)][_0x4593f5(0x211)](_0x5257d1=>{const _0x21d299=_0x4593f5;if(!isPlainRecord(_0x5257d1[_0x21d299(0x1e6)]))return[];const _0xcf8ac=_0x5257d1[_0x21d299(0x1c3)]===_0x21d299(0x1fb)?_0x5257d1[_0x21d299(0x1e6)][_0x21d299(0x209)]:_0x5257d1[_0x21d299(0x1c3)]===_0x21d299(0x20c)?_0x5257d1[_0x21d299(0x1e6)][_0x21d299(0x203)]:undefined;return typeof _0xcf8ac===_0x21d299(0x20b)?[_0xcf8ac]:[];})),...[..._0x519868[_0x4593f5(0x1bd)]()][_0x4593f5(0x211)](_0x53dda9=>_0x53dda9[_0x4593f5(0x211)](_0x482acd=>{const _0x4590d1=_0x4593f5;if(!isPlainRecord(_0x482acd[_0x4590d1(0x1e6)]))return[];const _0x4ae9f0=_0x482acd[_0x4590d1(0x1c3)]===_0x4590d1(0x1fb)?_0x482acd[_0x4590d1(0x1e6)][_0x4590d1(0x209)]:_0x482acd[_0x4590d1(0x1e6)][_0x4590d1(0x203)];return typeof _0x4ae9f0===_0x4590d1(0x20b)?[_0x4ae9f0]:[];}))]),_0x3e3f7d=[..._0x1de1f8[_0x4593f5(0x202)](_0x46e9a1=>{const _0xabe0f0=_0x4593f5,_0x4e4a48=_0x46e9a1[_0xabe0f0(0x216)]===null?[]:_0x519868[_0xabe0f0(0x200)](_0x46e9a1[_0xabe0f0(0x216)])??[],_0x35d09f=[..._0x46e9a1[_0xabe0f0(0x1ca)][_0xabe0f0(0x1a5)](_0x33a5c9=>_0x33a5c9[_0xabe0f0(0x1c3)]!==_0xabe0f0(0x1fb)&&_0x33a5c9[_0xabe0f0(0x1c3)]!==_0xabe0f0(0x20c)||!isPlainRecord(_0x33a5c9[_0xabe0f0(0x1e6)])||!_0x1fb4a3[_0xabe0f0(0x206)](_0x33a5c9[_0xabe0f0(0x1c3)]===_0xabe0f0(0x1fb)?String(_0x33a5c9[_0xabe0f0(0x1e6)][_0xabe0f0(0x209)]??''):String(_0x33a5c9[_0xabe0f0(0x1e6)][_0xabe0f0(0x203)]??''))),..._0x4e4a48[_0xabe0f0(0x1a5)](_0xcb185a=>!_0x46e9a1[_0xabe0f0(0x1ca)][_0xabe0f0(0x1a6)](_0x58632a=>_0x58632a['id']===_0xcb185a['id']||_0x58632a[_0xabe0f0(0x1c3)]===_0xabe0f0(0x1f9)&&_0xcb185a[_0xabe0f0(0x1c3)]===_0xabe0f0(0x1f9)))];return{..._0x46e9a1,'status':_0x4e4a48[_0xabe0f0(0x1a6)](_0x176983=>_0x176983[_0xabe0f0(0x1c3)]===_0xabe0f0(0x1f9))?_0xabe0f0(0x1b1):_0x46e9a1[_0xabe0f0(0x1a3)],'items':_0x35d09f};})[_0x4593f5(0x1a5)](_0x58d62c=>_0x58d62c[_0x4593f5(0x1ca)][_0x4593f5(0x1ae)]>-0x7*-0x56+0x17fd+-0x1a57),..._0x44af88];return this[_0x4593f5(0x1ac)](_0x532bbc[_0x4593f5(0x208)],_0x3e3f7d,{'snapshotSequence':_0x27ba26,'source':_0x4593f5(0x1de),'readAt':_0x2c4129});}if(_0x4bf49b[_0x4593f5(0x1f0)]!==null&&_0x5945d5[_0x4593f5(0x1db)]){const _0x17d692=this[_0x4593f5(0x1b9)][_0x4593f5(0x1b6)][_0x4593f5(0x214)]({'sessionId':_0x4bf49b['id'],..._0x4183ce});if(_0x17d692[_0x4593f5(0x1c7)][_0x4593f5(0x1ae)]===0x4*-0x815+0x1387+0x71*0x1d)throw new Error(_0x4593f5(0x207));return this[_0x4593f5(0x1ac)](_0x17d692[_0x4593f5(0x208)],_0x17d692[_0x4593f5(0x1c7)],{'snapshotSequence':_0x27ba26,'source':_0x4593f5(0x1b6),'readAt':_0x2c4129});}if(_0x4bf49b[_0x4593f5(0x1f0)]!==null&&_0x4bf49b[_0x4593f5(0x1a9)]===_0x4593f5(0x1ab))throw new Error(_0x4593f5(0x1ff));const _0x22a83f=this[_0x4593f5(0x1b9)][_0x4593f5(0x1b6)][_0x4593f5(0x214)]({'sessionId':_0x4bf49b['id'],..._0x4183ce});return this[_0x4593f5(0x1ac)](_0x22a83f[_0x4593f5(0x208)],_0x22a83f[_0x4593f5(0x1c7)],{'snapshotSequence':_0x27ba26,'source':_0x4593f5(0x1b6),'readAt':_0x2c4129});}async[_0xd6b9b7(0x1a4)](_0x35d077,_0x573308){const _0x17a15f=_0xd6b9b7,_0x2a9612=this[_0x17a15f(0x1b9)][_0x17a15f(0x1d0)][_0x17a15f(0x21d)](_0x35d077[_0x17a15f(0x1be)]);let _0x145e71=![];const _0x14694e=await _0x2a9612[_0x17a15f(0x1f1)]({'native':async()=>{const _0x476e0a=_0x17a15f,_0x268b01=performance[_0x476e0a(0x1fc)]();let _0x3f042c;try{_0x3f042c=await this[_0x476e0a(0x20d)](_0x35d077,_0x573308[_0x476e0a(0x21f)],_0x573308[_0x476e0a(0x1c0)]);}catch{return undefined;}finally{const _0x30428f=Math[_0x476e0a(0x1f8)](performance[_0x476e0a(0x1fc)]()-_0x268b01);if(_0x30428f>=-0x27b*-0x9+0x1*0x1794+0x35*-0xd9)nodeLog(_0x476e0a(0x20e),{'runner':_0x35d077[_0x476e0a(0x1be)],'sessionId':_0x35d077['id'],'durationMs':_0x30428f});}if(_0x3f042c===undefined)return undefined;if(_0x3f042c[_0x476e0a(0x221)]===!![]&&(!_0x2a9612[_0x476e0a(0x1e1)]()||_0x3f042c[_0x476e0a(0x1ca)][_0x476e0a(0x1ae)]===-0x1b29+0x1643+0x4e6))return _0x145e71=!![],undefined;const _0x4269ff=this[_0x476e0a(0x1b9)][_0x476e0a(0x1b6)][_0x476e0a(0x1af)](_0x35d077['id'])===undefined?[]:this[_0x476e0a(0x1b9)][_0x476e0a(0x1b6)][_0x476e0a(0x214)]({'sessionId':_0x35d077['id'],'limit':0x1f4})[_0x476e0a(0x1c7)],_0x3890f9=nativeConversationPage(_0x35d077,_0x3f042c,_0x3f042c[_0x476e0a(0x1d1)]===!![]?_0x573308[_0x476e0a(0x1c0)]===undefined?{}:{'limit':_0x573308[_0x476e0a(0x1c0)]}:_0x573308,_0x4269ff,_0x2c1f35=>this[_0x476e0a(0x1b9)][_0x476e0a(0x1a8)][_0x476e0a(0x1ee)](_0x35d077,_0x2c1f35));return _0x3890f9;},'official':()=>this[_0x17a15f(0x1d7)](_0x35d077,_0x573308)});return{'page':_0x14694e,'incompleteNative':_0x145e71};}async[_0xd6b9b7(0x215)](_0x4e4df9,_0x105a58,_0x5eb8b6,_0x3a2b9e,_0x27e2e5){const _0x80de21=_0xd6b9b7,_0x35a159=Math[_0x80de21(0x21e)](Math[_0x80de21(0x219)](_0x105a58[_0x80de21(0x1c0)]??-0x110f*-0x1+0x1e84+-0x2f75,-0x1ca2+0x6cd+0x1a*0xd7),0x1ee4+0x145e+-0x18a7*0x2),_0x44e89a=this[_0x80de21(0x1b9)][_0x80de21(0x1b6)][_0x80de21(0x214)]({'sessionId':_0x4e4df9['id'],'limit':0x1f4})[_0x80de21(0x1c7)],_0x2fce83=_0x5eb8b6?.[_0x80de21(0x1f3)]??oldestTurnActivityAt(_0x44e89a);if(_0x5eb8b6?.[_0x80de21(0x1d8)]===_0x80de21(0x212)){const _0xb065f1=await this[_0x80de21(0x1a4)](_0x4e4df9,{..._0x5eb8b6[_0x80de21(0x21f)]===null?{}:{'cursor':_0x5eb8b6[_0x80de21(0x21f)]},'limit':_0x35a159}),_0x42c960=_0xb065f1[_0x80de21(0x1ac)];if(_0x42c960===undefined)return this[_0x80de21(0x1ac)](null,[],{'snapshotSequence':_0x3a2b9e,'source':_0x80de21(0x1b6),'readAt':_0x27e2e5});const _0x4b64ca=_0x42c960[_0x80de21(0x204)]===_0x80de21(0x1de)?await this[_0x80de21(0x1ea)](_0x4e4df9,_0x42c960[_0x80de21(0x1c7)]):_0x42c960[_0x80de21(0x1c7)],_0x530747=_0x4b64ca[_0x80de21(0x1a5)](_0xf5cb36=>latestTurnActivityAt(_0xf5cb36)<_0x2fce83);return this[_0x80de21(0x1ac)](_0x42c960[_0x80de21(0x208)]===null?null:encodeActiveHistoryCursor({'sessionId':_0x4e4df9['id'],'stage':_0x80de21(0x212),'beforeAt':_0x2fce83,'cursor':_0x42c960[_0x80de21(0x208)]}),_0x530747,{'snapshotSequence':_0x3a2b9e,'source':_0x42c960[_0x80de21(0x204)],'readAt':_0x27e2e5});}const _0x3adac0=this[_0x80de21(0x1b9)][_0x80de21(0x1b6)][_0x80de21(0x214)]({'sessionId':_0x4e4df9['id'],..._0x5eb8b6?.[_0x80de21(0x21f)]===null||_0x5eb8b6===undefined?{}:{'cursor':_0x5eb8b6[_0x80de21(0x21f)]},'limit':_0x35a159}),_0x1786a2=_0x3adac0[_0x80de21(0x208)]!==null?encodeActiveHistoryCursor({'sessionId':_0x4e4df9['id'],'stage':_0x80de21(0x1b5),'beforeAt':_0x2fce83,'cursor':_0x3adac0[_0x80de21(0x208)]}):_0x4e4df9[_0x80de21(0x1f0)]===null?null:encodeActiveHistoryCursor({'sessionId':_0x4e4df9['id'],'stage':_0x80de21(0x212),'beforeAt':_0x2fce83,'cursor':null});return this[_0x80de21(0x1ac)](_0x1786a2,_0x3adac0[_0x80de21(0x1c7)],{'snapshotSequence':_0x3a2b9e,'source':_0x80de21(0x1b6),'readAt':_0x27e2e5,'deferredOlderHistory':!![]});}async[_0xd6b9b7(0x1dd)](_0x190802){const _0x2fc7c8=_0xd6b9b7,_0x210f5f=this[_0x2fc7c8(0x1b9)][_0x2fc7c8(0x1d0)][_0x2fc7c8(0x21d)](_0x190802[_0x2fc7c8(0x1be)]);if(!_0x210f5f[_0x2fc7c8(0x1fd)](this[_0x2fc7c8(0x1b9)][_0x2fc7c8(0x201)]())){this[_0x2fc7c8(0x1b9)][_0x2fc7c8(0x1cd)](_0x190802['id'],_0x2fc7c8(0x1b7));return;}const _0x252d58=await _0x210f5f[_0x2fc7c8(0x1a1)](_0x190802);if(_0x252d58!==undefined)this[_0x2fc7c8(0x1b9)][_0x2fc7c8(0x1cd)](_0x190802['id'],_0x252d58);}async[_0xd6b9b7(0x20d)](_0x5c3645,_0x5c78af,_0x1ba54a=0x7ba+-0x288+-0x514){const _0xc1173c=_0xd6b9b7;if(_0x5c3645[_0xc1173c(0x1f0)]===null)return undefined;const _0x2a931f=nativeHistoryPageCursor(_0x5c78af,_0x5c3645['id']),_0x17725b=await readNativeSession(_0x5c3645[_0xc1173c(0x1be)],_0x5c3645[_0xc1173c(0x205)],_0x5c3645[_0xc1173c(0x1f0)],_0x2a931f,_0x1ba54a);if(_0x17725b!==undefined)return _0x17725b;return await discoverNativeSessions(_0x5c3645[_0xc1173c(0x1be)],_0x5c3645[_0xc1173c(0x205)]),readNativeSession(_0x5c3645[_0xc1173c(0x1be)],_0x5c3645[_0xc1173c(0x205)],_0x5c3645[_0xc1173c(0x1f0)],_0x2a931f,_0x1ba54a);}async[_0xd6b9b7(0x1ea)](_0x432674,_0x4106a0){const _0x1cb4ec=_0xd6b9b7,_0xf20402=performance[_0x1cb4ec(0x1fc)](),_0x357a6c=await this[_0x1cb4ec(0x20d)](_0x432674),_0x645f39=Math[_0x1cb4ec(0x1f8)](performance[_0x1cb4ec(0x1fc)]()-_0xf20402);if(_0x645f39>=-0x1a6*0x3+0x3a8+0x244)nodeLog(_0x1cb4ec(0x1e5),{'runner':_0x432674[_0x1cb4ec(0x1be)],'sessionId':_0x432674['id'],'durationMs':_0x645f39});if(_0x357a6c===undefined)return _0x4106a0;const _0x209163=new Map();for(const _0x360d53 of _0x357a6c[_0x1cb4ec(0x1ca)]){if(_0x360d53[_0x1cb4ec(0x1c3)]!==_0x1cb4ec(0x1e4)||_0x360d53[_0x1cb4ec(0x1ef)]===undefined)continue;const _0x3921e2=this[_0x1cb4ec(0x1b9)][_0x1cb4ec(0x1a8)][_0x1cb4ec(0x1ee)](_0x432674,_0x360d53[_0x1cb4ec(0x1ef)]);if(_0x3921e2[_0x1cb4ec(0x1ae)]>-0x222*-0xc+-0x1249*-0x1+0x2f*-0xef)_0x209163[_0x1cb4ec(0x1b8)](_0x360d53[_0x1cb4ec(0x1cb)],_0x3921e2);}if(_0x209163[_0x1cb4ec(0x1f2)]===0x831+-0x1e55+0xda*0x1a)return _0x4106a0;return _0x4106a0[_0x1cb4ec(0x202)](_0x5d36bb=>({..._0x5d36bb,'items':coalesceImageGenerationItems(_0x5d36bb[_0x1cb4ec(0x1ca)][_0x1cb4ec(0x202)](_0x43b4f6=>{const _0x179c00=_0x1cb4ec,_0x431acf=_0x209163[_0x179c00(0x200)](_0x43b4f6['id'][_0x179c00(0x1d9)](_0x43b4f6['id'][_0x179c00(0x1e8)](':')+(0x931+-0x1*0x2417+0x1*0x1ae7)));if(_0x431acf===undefined||!isPlainRecord(_0x43b4f6[_0x179c00(0x1e6)]))return _0x43b4f6;return{..._0x43b4f6,'payload':{..._0x43b4f6[_0x179c00(0x1e6)],'attachments':_0x431acf}};}))}));}async[_0xd6b9b7(0x1d7)](_0x2d1e7f,_0x18f1b0){const _0x40c436=_0xd6b9b7,_0x4c9b97=this[_0x40c436(0x1b9)][_0x40c436(0x1d0)][_0x40c436(0x21d)](_0x2d1e7f[_0x40c436(0x1be)]);if(_0x2d1e7f[_0x40c436(0x1f0)]===null||!_0x4c9b97[_0x40c436(0x1fd)](this[_0x40c436(0x1b9)][_0x40c436(0x201)]()))return undefined;const _0x1aebd4=performance[_0x40c436(0x1fc)]();try{return await _0x4c9b97[_0x40c436(0x1df)](_0x2d1e7f,_0x18f1b0,_0x1e11fb=>this[_0x40c436(0x21c)](_0x2d1e7f,_0x1e11fb));}finally{const _0x4220b6=Math[_0x40c436(0x1f8)](performance[_0x40c436(0x1fc)]()-_0x1aebd4);if(_0x4220b6>=-0x5*-0x174+0xdb0+-0x13fa)nodeLog(_0x40c436(0x218),{'runner':_0x2d1e7f[_0x40c436(0x1be)],'sessionId':_0x2d1e7f['id'],'durationMs':_0x4220b6});}}[_0xd6b9b7(0x21c)](_0x53355f,_0x46d0dc){const _0x50ec17=_0xd6b9b7,_0x3a6d2d=this[_0x50ec17(0x1b9)][_0x50ec17(0x1d0)][_0x50ec17(0x21d)](_0x53355f[_0x50ec17(0x1be)])[_0x50ec17(0x1ec)](_0x46d0dc);if(_0x3a6d2d===undefined)return undefined;return this[_0x50ec17(0x1b9)][_0x50ec17(0x1b6)][_0x50ec17(0x1ba)](_0x3a6d2d);}[_0xd6b9b7(0x1ac)](_0x92ced6,_0x537b3e,_0x454f2e){const _0x65e983=_0xd6b9b7;return{..._0x454f2e,'turns':_0x537b3e,'nextCursor':_0x92ced6,'latestVisibleAt':Math[_0x65e983(0x219)](-0x1d22+0x957*-0x4+-0x162a*-0x3,..._0x537b3e[_0x65e983(0x202)](_0x3603b9=>Math[_0x65e983(0x219)](_0x3603b9[_0x65e983(0x1e3)]??-0x1525+-0x122d+0x2752,_0x3603b9[_0x65e983(0x1e0)]??-0x11cb+0x67*0x54+0x1001*-0x1)))};}}function nativeHistoryPageCursor(_0x325621,_0x34ce36){const _0x4e05d6=_0xd6b9b7;if(_0x325621===undefined)return undefined;try{const _0x20b37b=JSON[_0x4e05d6(0x1f5)](Buffer[_0x4e05d6(0x1b3)](_0x325621,_0x4e05d6(0x1fe))[_0x4e05d6(0x1ce)](_0x4e05d6(0x1dc)));return _0x20b37b[_0x4e05d6(0x21a)]===_0x34ce36&&Number[_0x4e05d6(0x1d4)](_0x20b37b[_0x4e05d6(0x1da)])&&Number[_0x4e05d6(0x1d4)](_0x20b37b[_0x4e05d6(0x1c1)])&&Number[_0x4e05d6(0x1d4)](_0x20b37b[_0x4e05d6(0x20f)])&&_0x20b37b[_0x4e05d6(0x1da)]>=-0x9d*0xd+0x1*-0x4c7+0xcc0&&_0x20b37b[_0x4e05d6(0x1c1)]>=0x13*0xb5+0xb13+-0x1882&&_0x20b37b[_0x4e05d6(0x1c1)]<=_0x20b37b[_0x4e05d6(0x1da)]&&_0x20b37b[_0x4e05d6(0x20f)]>=-0x17*0xff+-0x3*0x6fd+0x2be0&&_0x20b37b[_0x4e05d6(0x20f)]<=_0x20b37b[_0x4e05d6(0x1da)]&&(_0x20b37b[_0x4e05d6(0x1c4)]===undefined||Number[_0x4e05d6(0x1d4)](_0x20b37b[_0x4e05d6(0x1c4)])&&_0x20b37b[_0x4e05d6(0x1c4)]>=0x1b75+-0x1a89+-0xeb&&_0x20b37b[_0x4e05d6(0x1c4)]<=0x778*0x5+-0x1*0x905+0x2b*-0x9d)&&typeof _0x20b37b[_0x4e05d6(0x217)]===_0x4e05d6(0x20b)?{'snapshotEnd':_0x20b37b[_0x4e05d6(0x1da)],'nextEnd':_0x20b37b[_0x4e05d6(0x1c1)],'fileAnchor':_0x20b37b[_0x4e05d6(0x217)],'anchorBytes':_0x20b37b[_0x4e05d6(0x20f)],..._0x20b37b[_0x4e05d6(0x1c4)]===undefined?{}:{'readLimit':_0x20b37b[_0x4e05d6(0x1c4)]}}:undefined;}catch{return undefined;}}const ACTIVE_HISTORY_CURSOR_PREFIX=_0xd6b9b7(0x210);function encodeActiveHistoryCursor(_0x232e4f){const _0x14234b=_0xd6b9b7;return''+ACTIVE_HISTORY_CURSOR_PREFIX+Buffer[_0x14234b(0x1b3)](JSON[_0x14234b(0x1a7)](_0x232e4f))[_0x14234b(0x1ce)](_0x14234b(0x1fe));}function decodeActiveHistoryCursor(_0x1edf2f,_0x85107){const _0xb8b31=_0xd6b9b7;if(_0x1edf2f===undefined||!_0x1edf2f[_0xb8b31(0x1c8)](ACTIVE_HISTORY_CURSOR_PREFIX))return undefined;try{const _0x57543f=JSON[_0xb8b31(0x1f5)](Buffer[_0xb8b31(0x1b3)](_0x1edf2f[_0xb8b31(0x1d9)](ACTIVE_HISTORY_CURSOR_PREFIX[_0xb8b31(0x1ae)]),_0xb8b31(0x1fe))[_0xb8b31(0x1ce)](_0xb8b31(0x1dc)));if(_0x57543f[_0xb8b31(0x21a)]!==_0x85107||_0x57543f[_0xb8b31(0x1d8)]!==_0xb8b31(0x1b5)&&_0x57543f[_0xb8b31(0x1d8)]!==_0xb8b31(0x212)||typeof _0x57543f[_0xb8b31(0x1f3)]!==_0xb8b31(0x1b0)||!Number[_0xb8b31(0x1e7)](_0x57543f[_0xb8b31(0x1f3)])||_0x57543f[_0xb8b31(0x1f3)]<0x2f*0x1+0x35*0xa4+-0x2223*0x1||_0x57543f[_0xb8b31(0x21f)]!==null&&typeof _0x57543f[_0xb8b31(0x21f)]!==_0xb8b31(0x20b))throw new Error(_0xb8b31(0x1c2));return _0x57543f;}catch{throw new Error(_0xb8b31(0x1c2));}}function latestTurnActivityAt(_0x220da6){const _0x48930f=_0xd6b9b7;return Math[_0x48930f(0x219)](_0x220da6[_0x48930f(0x1e3)]??0x5c*-0x6a+-0x1fd6+0x45ee,_0x220da6[_0x48930f(0x1e0)]??-0x4d5*-0x2+-0x1ff0+0x1646);}function oldestTurnActivityAt(_0x3863c5){const _0x3cf0c5=_0xd6b9b7;return _0x3863c5[_0x3cf0c5(0x1ae)]===-0xf*0x17f+-0x407+0x3c8*0x7?-0x41f*-0x5+0x18d2+-0x2d6d:Math[_0x3cf0c5(0x21e)](..._0x3863c5[_0x3cf0c5(0x202)](latestTurnActivityAt));}function sameConversationTurn(_0x548e60,_0x1b91fe){if(_0x548e60['id']===_0x1b91fe['id'])return!![];const _0x1e8b33=conversationClientMessageId(_0x548e60);return _0x1e8b33!==null&&_0x1e8b33===conversationClientMessageId(_0x1b91fe);}function conversationClientMessageId(_0x1e6737){const _0x5f2b36=_0xd6b9b7;for(const _0x36acc6 of _0x1e6737[_0x5f2b36(0x1ca)]){if(_0x36acc6[_0x5f2b36(0x1c3)]!==_0x5f2b36(0x1e2)||!isPlainRecord(_0x36acc6[_0x5f2b36(0x1e6)]))continue;const _0x20cad2=_0x36acc6[_0x5f2b36(0x1e6)][_0x5f2b36(0x213)];if(typeof _0x20cad2===_0x5f2b36(0x20b)&&_0x20cad2[_0x5f2b36(0x1ae)]>-0x236+0x4f0*0x2+0x147*-0x6)return _0x20cad2;}return null;}function _0x15df(_0x17b7a7,_0x4cb459){_0x17b7a7=_0x17b7a7-(-0x31*0x2a+0x2*0xa63+-0xb1b);const _0x3ffb45=_0x51b0();let _0x595b24=_0x3ffb45[_0x17b7a7];if(_0x15df['yKqgjg']===undefined){var _0x27a1fe=function(_0x5efebe){const _0x571f47='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x512ed5='',_0x24066b='';for(let _0x201661=-0x806*0x1+0x1*-0xce1+-0x1*-0x14e7,_0x1a5f42,_0x4aaa78,_0x3e9795=-0x11*0x25+-0x599*-0x4+0xf3*-0x15;_0x4aaa78=_0x5efebe['charAt'](_0x3e9795++);~_0x4aaa78&&(_0x1a5f42=_0x201661%(-0x21f6+-0x6*-0x62c+-0x1*0x30e)?_0x1a5f42*(-0x6e4+0x14c6+-0xda2)+_0x4aaa78:_0x4aaa78,_0x201661++%(0x9a9*-0x2+0x2041+-0xceb*0x1))?_0x512ed5+=String['fromCharCode'](0x1c33*-0x1+-0x1d09+0x3a3b&_0x1a5f42>>(-(-0x110e+-0x16f6+0x2f*0xda)*_0x201661&-0xad6+-0x1379+0x1e55)):0x2007+0x182*-0x7+0xef*-0x17){_0x4aaa78=_0x571f47['indexOf'](_0x4aaa78);}for(let _0x2da926=0x4fd*-0x3+0x12b5+0x3be*-0x1,_0x3618b2=_0x512ed5['length'];_0x2da926<_0x3618b2;_0x2da926++){_0x24066b+='%'+('00'+_0x512ed5['charCodeAt'](_0x2da926)['toString'](-0x12a9*0x1+-0xc2c+0x1ee5))['slice'](-(0x11d+-0xd61*-0x2+-0x1bdd*0x1));}return decodeURIComponent(_0x24066b);};_0x15df['BZHOun']=_0x27a1fe,_0x15df['ZTEuQy']={},_0x15df['yKqgjg']=!![];}const _0x2cc657=_0x3ffb45[0xb*0x7+-0x20af+0x2062];_0x15df['hWMIjO']!==_0x2cc657&&(_0x15df['ZTEuQy']={},_0x15df['hWMIjO']=_0x2cc657);const _0x561454=_0x15df['ZTEuQy'][_0x17b7a7];return _0x561454===undefined?(_0x595b24=_0x15df['BZHOun'](_0x595b24),_0x15df['ZTEuQy'][_0x17b7a7]=_0x595b24):_0x595b24=_0x561454,_0x595b24;}function sourceRank(_0x5c11f2){const _0x201b1f=_0xd6b9b7;if(_0x5c11f2===_0x201b1f(0x1de))return 0x21fb+-0x525*-0x3+-0x1*0x3167;if(_0x5c11f2===_0x201b1f(0x1d3))return-0xe80+-0x1*-0x2185+-0x1303;return 0x2502+0x49+0x3*-0xc6e;}
|
|
2
|
+
const _0x5ad2b6=_0x445a;(function(_0xfd3c75,_0x52b274){const _0x4fdc55=_0x445a,_0x1566c3=_0xfd3c75();while(!![]){try{const _0x2a9575=parseInt(_0x4fdc55(0x8e))/(-0x200f*0x1+0x5b3*0x5+-0x1*-0x391)*(parseInt(_0x4fdc55(0x101))/(0x5c9*-0x1+0x1178+-0xbad))+parseInt(_0x4fdc55(0xaf))/(0x1*-0x1b3b+0x1df*-0x3+0x20db)*(-parseInt(_0x4fdc55(0xa8))/(0x2*0x392+-0x2e9+-0x437))+parseInt(_0x4fdc55(0xbe))/(-0xa78+-0x7d*-0x3e+0x5*-0x3f5)+parseInt(_0x4fdc55(0xd5))/(0x1767*-0x1+0x11a3+0x5ca)*(-parseInt(_0x4fdc55(0xee))/(-0x2452+-0x1800+0x3c59))+-parseInt(_0x4fdc55(0xdf))/(0x1c3a+-0x7a*0x2c+-0x73a)+parseInt(_0x4fdc55(0xf7))/(0xb71*0x1+-0x955*-0x4+-0x185e*0x2)*(-parseInt(_0x4fdc55(0xd6))/(0x91e*0x1+0x147e+-0x1d92))+-parseInt(_0x4fdc55(0x88))/(-0x69+-0x1977+-0x1*-0x19eb)*(-parseInt(_0x4fdc55(0xc5))/(-0x599+-0xf63+0x1508));if(_0x2a9575===_0x52b274)break;else _0x1566c3['push'](_0x1566c3['shift']());}catch(_0x37a3ef){_0x1566c3['push'](_0x1566c3['shift']());}}}(_0x5939,0x2*0x3fe93+-0xb2511*-0x1+-0xb89d1));import{discoverNativeSessions,readNativeSession}from'../native-session-history.js';import{coalesceImageGenerationItems}from'../runner/codex/conversation-parser.js';import{nativeConversationPage}from'../util/runner-native-session-parsers.js';import{isPlainRecord}from'../util/node-operation-parsers.js';import{nodeLog}from'../operational.js';export function hasManagedActiveRun(_0x1cf0f3,_0x32f623){const _0x5340e5=_0x445a;return _0x32f623[_0x5340e5(0xe0)]===_0x5340e5(0xba)&&_0x1cf0f3[_0x5340e5(0xa9)](_0x32f623['id'])[_0x5340e5(0x81)](_0x5ecf0b=>_0x5ecf0b[_0x5340e5(0xde)]===_0x5340e5(0xcc)||_0x5ecf0b[_0x5340e5(0xde)]===_0x5340e5(0xe7)||_0x5ecf0b[_0x5340e5(0xde)]===_0x5340e5(0xcd));}export function convergeConversationWatchPage(_0x52dd0c,_0x40ae06,_0x6c0c92,_0x4c0c36){const _0x289dac=_0x445a,_0x483a68=isConversationHistorySource(_0x4c0c36)?_0x4c0c36:_0x52dd0c?.[_0x289dac(0xa7)];if(_0x52dd0c===undefined||_0x483a68===undefined||sourceRank(_0x6c0c92[_0x289dac(0xa7)])>=sourceRank(_0x483a68))return{'page':_0x6c0c92,'authority':_0x6c0c92[_0x289dac(0xa7)]};if(_0x52dd0c[_0x289dac(0xeb)][_0x289dac(0x9b)]===-0x1e8f+0x2451+-0x5c2)return{'page':_0x6c0c92,'authority':_0x483a68};const _0x429d8f=_0x6c0c92[_0x289dac(0xeb)][_0x289dac(0xe1)](_0x5be17f=>_0x52dd0c[_0x289dac(0xeb)][_0x289dac(0x81)](_0x58edd2=>sameConversationTurn(_0x58edd2,_0x5be17f))),_0x4b10ac=_0x429d8f>=-0x1def+-0x1e98+0x3c87||_0x40ae06===undefined?-(-0x4e3+-0x1640+-0x304*-0x9):_0x6c0c92[_0x289dac(0xeb)][_0x289dac(0xe1)](_0x57c5ee=>_0x40ae06[_0x289dac(0xeb)][_0x289dac(0x81)](_0x19a40b=>sameConversationTurn(_0x19a40b,_0x57c5ee))),_0x2c7d9c=Math[_0x289dac(0x96)](_0x429d8f,_0x4b10ac);if(_0x2c7d9c<0xb34+-0x2050+0x151c)return{'page':_0x52dd0c,'authority':_0x483a68};const _0x19c86f=_0x6c0c92[_0x289dac(0xeb)][_0x289dac(0x9f)](_0x2c7d9c+(-0xa*0xc5+-0x104e+0x1801))[_0x289dac(0xbc)](_0x3d633f=>!_0x52dd0c[_0x289dac(0xeb)][_0x289dac(0x81)](_0x219120=>sameConversationTurn(_0x219120,_0x3d633f)));if(_0x19c86f[_0x289dac(0x9b)]===-0x8b*-0xb+-0x7*-0x359+-0x75a*0x4)return{'page':_0x52dd0c,'authority':_0x483a68};return{'page':{..._0x52dd0c,'source':_0x6c0c92[_0x289dac(0xa7)],'snapshotSequence':Math[_0x289dac(0x96)](_0x52dd0c[_0x289dac(0xb2)],_0x6c0c92[_0x289dac(0xb2)]),'readAt':_0x6c0c92[_0x289dac(0xda)],'latestVisibleAt':_0x6c0c92[_0x289dac(0x9d)]??_0x52dd0c[_0x289dac(0x9d)],'turns':[..._0x52dd0c[_0x289dac(0xeb)],..._0x19c86f]},'authority':_0x483a68};}export function composeConversationRuntimePage(_0xc63f60,_0x425bc5){const _0x30448f=_0x445a;if(_0xc63f60===undefined)return _0x425bc5;const _0x5f0d9d=[..._0xc63f60[_0x30448f(0xeb)]];for(const _0x24ffac of _0x425bc5[_0x30448f(0xeb)]){const _0x1c3101=_0x5f0d9d[_0x30448f(0xb0)](_0x24ad55=>sameConversationTurn(_0x24ad55,_0x24ffac));if(_0x1c3101<-0x11b7+0x1*0x134f+-0x198)insertConversationTurnChronologically(_0x5f0d9d,_0x24ffac);else _0x5f0d9d[_0x1c3101]=_0x24ffac;}return{..._0x425bc5,'nextCursor':_0xc63f60[_0x30448f(0x9c)],'turns':_0x5f0d9d};}function insertConversationTurnChronologically(_0x72eb68,_0x50ae14){const _0x17ae6b=_0x445a,_0x29cd64=earliestTurnActivityAt(_0x50ae14);if(_0x29cd64===-0xa6*-0xb+-0x12d1*0x1+-0x3e5*-0x3){_0x72eb68[_0x17ae6b(0x89)](_0x50ae14);return;}const _0x5e51af=_0x72eb68[_0x17ae6b(0xb0)](_0x2d45e6=>{const _0x5d6480=earliestTurnActivityAt(_0x2d45e6);return _0x5d6480>0x1a09+-0x22d9*-0x1+-0x3ce2&&_0x5d6480>_0x29cd64;});if(_0x5e51af<0xfd1+-0x1*-0x1aab+0x4*-0xa9f)_0x72eb68[_0x17ae6b(0x89)](_0x50ae14);else _0x72eb68[_0x17ae6b(0x83)](_0x5e51af,0x1885+-0x1519+0x1b6*-0x2,_0x50ae14);}function earliestTurnActivityAt(_0x56fbeb){const _0x2db213=_0x445a,_0x1c4f0e=[_0x56fbeb[_0x2db213(0xec)],_0x56fbeb[_0x2db213(0xa6)],..._0x56fbeb[_0x2db213(0xd3)][_0x2db213(0x94)](_0x47b010=>_0x47b010[_0x2db213(0xec)])][_0x2db213(0xbc)](_0x38c6cf=>typeof _0x38c6cf===_0x2db213(0xea)&&Number[_0x2db213(0xa5)](_0x38c6cf)&&_0x38c6cf>0x1*-0x1a44+-0x231d+0x3d61);return _0x1c4f0e[_0x2db213(0x9b)]===0x3*0xae0+0x1*0x601+-0x26a1?0x329+-0x1*0x1d6b+-0x1a42*-0x1:Math[_0x2db213(0xc0)](..._0x1c4f0e);}function _0x445a(_0x338b81,_0xbc8b1b){_0x338b81=_0x338b81-(0x38*-0x92+-0x1d69*0x1+0x1eec*0x2);const _0x17b022=_0x5939();let _0x471080=_0x17b022[_0x338b81];if(_0x445a['YktJrp']===undefined){var _0x294998=function(_0x30282b){const _0x1e315d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d5f7a='',_0x42df17='';for(let _0x3f7be1=0xbfc+-0x3*0x8e1+0xea7,_0x19797c,_0x1e388e,_0x58fee8=-0xa67+-0x1def+0x2856;_0x1e388e=_0x30282b['charAt'](_0x58fee8++);~_0x1e388e&&(_0x19797c=_0x3f7be1%(-0x3ef+-0x4e3+0x8d6)?_0x19797c*(-0x350*-0x7+-0x1bfc+0x50c)+_0x1e388e:_0x1e388e,_0x3f7be1++%(-0x67d+-0xa*0xc5+0xe33))?_0x5d5f7a+=String['fromCharCode'](0x6*-0x399+0x5f9+-0x4*-0x427&_0x19797c>>(-(0x2356+-0x1965*0x1+0x1*-0x9ef)*_0x3f7be1&-0x1808+-0xa6*-0xb+-0x5a4*-0x3)):0x21f7*0x1+-0x184a+-0x9ad*0x1){_0x1e388e=_0x1e315d['indexOf'](_0x1e388e);}for(let _0x3c89a1=-0x529*0x2+-0x1*-0xfd1+0x15*-0x43,_0x21633d=_0x5d5f7a['length'];_0x3c89a1<_0x21633d;_0x3c89a1++){_0x42df17+='%'+('00'+_0x5d5f7a['charCodeAt'](_0x3c89a1)['toString'](0x1885+-0x1519+0x1ae*-0x2))['slice'](-(0x1*-0x1a44+-0x231d+0x3d63));}return decodeURIComponent(_0x42df17);};_0x445a['pZELGg']=_0x294998,_0x445a['vSssVW']={},_0x445a['YktJrp']=!![];}const _0x55ca52=_0x17b022[0x3*0xae0+0x1*0x601+-0x26a1];_0x445a['pPQWei']!==_0x55ca52&&(_0x445a['vSssVW']={},_0x445a['pPQWei']=_0x55ca52);const _0x2774ed=_0x445a['vSssVW'][_0x338b81];return _0x2774ed===undefined?(_0x471080=_0x445a['pZELGg'](_0x471080),_0x445a['vSssVW'][_0x338b81]=_0x471080):_0x471080=_0x2774ed,_0x471080;}function isConversationHistorySource(_0xc58f99){const _0x5e934c=_0x445a;return _0xc58f99===_0x5e934c(0x102)||_0xc58f99===_0x5e934c(0xe9)||_0xc58f99===_0x5e934c(0xbf);}export class ConversationHistoryService{[_0x5ad2b6(0x97)];constructor(_0x5d1bf5){const _0x2bc40f=_0x5ad2b6;this[_0x2bc40f(0x97)]=_0x5d1bf5;}async[_0x5ad2b6(0xb3)](_0x1ce9ac,_0x5c5ce7){const _0x1c61e1=_0x5ad2b6,_0x3b663c=this[_0x1c61e1(0x97)][_0x1c61e1(0xb2)](),_0x261fa1=Date[_0x1c61e1(0xd8)](),_0x192e1e=decodeActiveHistoryCursor(_0x5c5ce7[_0x1c61e1(0xac)],_0x1ce9ac['id']);if(_0x192e1e!==undefined||this[_0x1c61e1(0x97)][_0x1c61e1(0xb1)](_0x1ce9ac))return this[_0x1c61e1(0xe6)](_0x1ce9ac,_0x5c5ce7,_0x192e1e,_0x3b663c,_0x261fa1);return this[_0x1c61e1(0x100)](_0x1ce9ac,_0x5c5ce7,_0x3b663c,_0x261fa1);}async[_0x5ad2b6(0x95)](_0x48dc96,_0x1f0b15){const _0x1b5665=_0x5ad2b6;return this[_0x1b5665(0x100)](_0x48dc96,_0x1f0b15,this[_0x1b5665(0x97)][_0x1b5665(0xb2)](),Date[_0x1b5665(0xd8)]());}async[_0x5ad2b6(0x100)](_0x3334af,_0x5de167,_0x7afe14,_0x4231e6){const _0x17d01c=_0x5ad2b6,_0x6295f=await this[_0x17d01c(0xa4)](_0x3334af,_0x5de167);if(_0x6295f[_0x17d01c(0xf6)]?.[_0x17d01c(0xa7)]===_0x17d01c(0xe9))return this[_0x17d01c(0xf6)](_0x6295f[_0x17d01c(0xf6)][_0x17d01c(0x9c)],_0x6295f[_0x17d01c(0xf6)][_0x17d01c(0xeb)],{'snapshotSequence':_0x7afe14,'source':_0x17d01c(0xe9),'readAt':_0x4231e6});let _0x2fd2c6=_0x6295f[_0x17d01c(0xf6)]?.[_0x17d01c(0xa7)]===_0x17d01c(0x102)?_0x6295f[_0x17d01c(0xf6)]:undefined;if(_0x2fd2c6!==undefined){const _0x2993ce=Math[_0x17d01c(0xc0)](Math[_0x17d01c(0x96)](_0x5de167[_0x17d01c(0xc2)]??0x7*0xe+-0xa*0x16f+0xe12,0x21d8+-0x181*-0x7+-0x2c5e),0x1f+0x2*0x8bd+-0xfa5),_0x1c5a57=this[_0x17d01c(0x97)][_0x17d01c(0xbf)][_0x17d01c(0xe3)](_0x3334af['id'])===undefined?[]:this[_0x17d01c(0x97)][_0x17d01c(0xbf)][_0x17d01c(0xd7)]({'sessionId':_0x3334af['id'],'limit':0x1f4})[_0x17d01c(0xeb)],_0x21235c=new Set(_0x2fd2c6[_0x17d01c(0xeb)][_0x17d01c(0x8c)](_0x13d154=>_0x13d154[_0x17d01c(0xad)]===null?[]:[_0x13d154[_0x17d01c(0xad)]])),_0x43f047=_0x1c5a57[_0x17d01c(0xe1)](_0x5b5af3=>_0x5b5af3[_0x17d01c(0xad)]!==null&&_0x21235c[_0x17d01c(0xb6)](_0x5b5af3[_0x17d01c(0xad)])),_0x76a087=_0x2fd2c6[_0x17d01c(0xeb)][_0x17d01c(0x9b)]>-0x4a3*-0x1+0xa28+-0xecb,_0x2d74e2=_0x1c5a57[_0x17d01c(0xbc)]((_0x75a88e,_0x1174be)=>(_0x75a88e[_0x17d01c(0xad)]===null||!_0x21235c[_0x17d01c(0xb6)](_0x75a88e[_0x17d01c(0xad)]))&&(!_0x76a087||_0x1174be>_0x43f047)),_0x1a3d02=_0x2d74e2[_0x17d01c(0x9f)](-_0x2993ce);if(_0x5de167[_0x17d01c(0xac)]===undefined&&_0x1a3d02[_0x17d01c(0x9b)]>0x72a*-0x1+-0x7a*-0x4f+-0x4*0x79f&&_0x2fd2c6[_0x17d01c(0xeb)][_0x17d01c(0x9b)]+_0x1a3d02[_0x17d01c(0x9b)]>_0x2993ce){const _0x4731db=Math[_0x17d01c(0xc0)](_0x1a3d02[_0x17d01c(0x9b)],Math[_0x17d01c(0x96)](-0x13ad+-0x1b04+0x2eb1,_0x2993ce-(-0x209a+0x1158+0xf43*0x1))),_0x5aa144=await this[_0x17d01c(0x90)](_0x3334af,{..._0x5de167,'limit':_0x2993ce-_0x4731db});if(_0x5aa144!==undefined)_0x2fd2c6={..._0x5aa144,'source':_0x17d01c(0x102)};}const _0x2f7b27=await this[_0x17d01c(0xab)](_0x3334af,_0x2fd2c6[_0x17d01c(0xeb)]),_0x4f580e=new Set(_0x2f7b27[_0x17d01c(0x8c)](_0x2eac9e=>_0x2eac9e[_0x17d01c(0xad)]===null?[]:[_0x2eac9e[_0x17d01c(0xad)]])),_0x308ff3=new Map();for(const _0x2f2dc3 of _0x1c5a57){if(_0x2f2dc3[_0x17d01c(0xad)]===null||!_0x4f580e[_0x17d01c(0xb6)](_0x2f2dc3[_0x17d01c(0xad)]))continue;const _0x501679=_0x2f2dc3[_0x17d01c(0xd3)][_0x17d01c(0xbc)](_0x59edf6=>_0x59edf6[_0x17d01c(0xd2)]===_0x17d01c(0x91)||_0x59edf6[_0x17d01c(0xd2)]===_0x17d01c(0xae)||_0x59edf6[_0x17d01c(0xd2)]===_0x17d01c(0x9e)&&_0x59edf6[_0x17d01c(0xde)]===_0x17d01c(0x84));if(_0x501679[_0x17d01c(0x9b)]>-0x2322+-0x1e0c+0x412e)_0x308ff3[_0x17d01c(0xc8)](_0x2f2dc3[_0x17d01c(0xad)],_0x501679);}const _0x379a39=Math[_0x17d01c(0x96)](0x1a2d*0x1+-0x1f63+-0x2*-0x29b,_0x2993ce-_0x2f7b27[_0x17d01c(0x9b)]),_0x1087cb=_0x5de167[_0x17d01c(0xac)]===undefined?_0x1a3d02:[],_0x234d43=_0x379a39===0x1891+0x2130+-0x39c1?[]:_0x1087cb[_0x17d01c(0x9f)](-_0x379a39),_0x472c56=new Set([..._0x234d43[_0x17d01c(0x8c)](_0x4373a9=>_0x4373a9[_0x17d01c(0xd3)][_0x17d01c(0x8c)](_0x5c562e=>{const _0xe877bd=_0x17d01c;if(!isPlainRecord(_0x5c562e[_0xe877bd(0x98)]))return[];const _0x1b74a1=_0x5c562e[_0xe877bd(0xd2)]===_0xe877bd(0xae)?_0x5c562e[_0xe877bd(0x98)][_0xe877bd(0xdc)]:_0x5c562e[_0xe877bd(0xd2)]===_0xe877bd(0x9e)?_0x5c562e[_0xe877bd(0x98)][_0xe877bd(0xb9)]:undefined;return typeof _0x1b74a1===_0xe877bd(0xcb)?[_0x1b74a1]:[];})),...[..._0x308ff3[_0x17d01c(0xd1)]()][_0x17d01c(0x8c)](_0x35f12b=>_0x35f12b[_0x17d01c(0x8c)](_0x233c2b=>{const _0x3fbe78=_0x17d01c;if(!isPlainRecord(_0x233c2b[_0x3fbe78(0x98)]))return[];const _0x37aa5e=_0x233c2b[_0x3fbe78(0xd2)]===_0x3fbe78(0xae)?_0x233c2b[_0x3fbe78(0x98)][_0x3fbe78(0xdc)]:_0x233c2b[_0x3fbe78(0x98)][_0x3fbe78(0xb9)];return typeof _0x37aa5e===_0x3fbe78(0xcb)?[_0x37aa5e]:[];}))]),_0x338a0d=[..._0x2f7b27[_0x17d01c(0x94)](_0x382040=>{const _0x3f92e5=_0x17d01c,_0x175fd7=_0x382040[_0x3f92e5(0xad)]===null?[]:_0x308ff3[_0x3f92e5(0xfe)](_0x382040[_0x3f92e5(0xad)])??[],_0x20ec4d=[..._0x382040[_0x3f92e5(0xd3)][_0x3f92e5(0xbc)](_0x3513ed=>_0x3513ed[_0x3f92e5(0xd2)]!==_0x3f92e5(0xae)&&_0x3513ed[_0x3f92e5(0xd2)]!==_0x3f92e5(0x9e)||!isPlainRecord(_0x3513ed[_0x3f92e5(0x98)])||!_0x472c56[_0x3f92e5(0xb6)](_0x3513ed[_0x3f92e5(0xd2)]===_0x3f92e5(0xae)?String(_0x3513ed[_0x3f92e5(0x98)][_0x3f92e5(0xdc)]??''):String(_0x3513ed[_0x3f92e5(0x98)][_0x3f92e5(0xb9)]??''))),..._0x175fd7[_0x3f92e5(0xbc)](_0x30ca50=>!_0x382040[_0x3f92e5(0xd3)][_0x3f92e5(0x81)](_0x105765=>_0x105765['id']===_0x30ca50['id']||_0x105765[_0x3f92e5(0xd2)]===_0x3f92e5(0x91)&&_0x30ca50[_0x3f92e5(0xd2)]===_0x3f92e5(0x91)))];return{..._0x382040,'status':_0x175fd7[_0x3f92e5(0x81)](_0xbfb1b4=>_0xbfb1b4[_0x3f92e5(0xd2)]===_0x3f92e5(0x91))?_0x3f92e5(0x87):_0x382040[_0x3f92e5(0xde)],'items':_0x20ec4d};})[_0x17d01c(0xbc)](_0x71c458=>_0x71c458[_0x17d01c(0xd3)][_0x17d01c(0x9b)]>0x1a1+-0x1*0x11b+-0x86),..._0x234d43];return this[_0x17d01c(0xf6)](_0x2fd2c6[_0x17d01c(0x9c)],_0x338a0d,{'snapshotSequence':_0x7afe14,'source':_0x17d01c(0x102),'readAt':_0x4231e6});}if(_0x3334af[_0x17d01c(0xa3)]!==null&&_0x6295f[_0x17d01c(0xca)]){const _0x2fab10=this[_0x17d01c(0x97)][_0x17d01c(0xbf)][_0x17d01c(0xd7)]({'sessionId':_0x3334af['id'],..._0x5de167});if(_0x2fab10[_0x17d01c(0xeb)][_0x17d01c(0x9b)]===0xd8d*0x1+-0x17b+-0xc12)throw new Error(_0x17d01c(0x93));return this[_0x17d01c(0xf6)](_0x2fab10[_0x17d01c(0x9c)],_0x2fab10[_0x17d01c(0xeb)],{'snapshotSequence':_0x7afe14,'source':_0x17d01c(0xbf),'readAt':_0x4231e6});}const _0x10e2c1=this[_0x17d01c(0x97)][_0x17d01c(0xbf)][_0x17d01c(0xd7)]({'sessionId':_0x3334af['id'],..._0x5de167});if(_0x3334af[_0x17d01c(0xa3)]!==null&&_0x3334af[_0x17d01c(0xe0)]===_0x17d01c(0x8a)&&_0x10e2c1[_0x17d01c(0xeb)][_0x17d01c(0x9b)]===-0x878+-0x1e52+-0xf*-0x296)throw new Error(_0x17d01c(0xf8));return this[_0x17d01c(0xf6)](_0x10e2c1[_0x17d01c(0x9c)],_0x10e2c1[_0x17d01c(0xeb)],{'snapshotSequence':_0x7afe14,'source':_0x17d01c(0xbf),'readAt':_0x4231e6});}async[_0x5ad2b6(0xa4)](_0x4e50b2,_0x36d772){const _0x1d81c9=_0x5ad2b6,_0x3b5e14=this[_0x1d81c9(0x97)][_0x1d81c9(0xa0)][_0x1d81c9(0x80)](_0x4e50b2[_0x1d81c9(0x86)]);let _0x128796=![];const _0x3fc47d=await _0x3b5e14[_0x1d81c9(0x85)]({'native':async()=>{const _0x363880=_0x1d81c9,_0x3794c6=performance[_0x363880(0xd8)]();let _0x531469;try{_0x531469=await this[_0x363880(0xbb)](_0x4e50b2,_0x36d772[_0x363880(0xac)],_0x36d772[_0x363880(0xc2)]);}catch{return undefined;}finally{const _0x2539f1=Math[_0x363880(0xc4)](performance[_0x363880(0xd8)]()-_0x3794c6);if(_0x2539f1>=0x26b0+0xee*0x12+-0xca*0x45)nodeLog(_0x363880(0xdd),{'runner':_0x4e50b2[_0x363880(0x86)],'sessionId':_0x4e50b2['id'],'durationMs':_0x2539f1});}if(_0x531469===undefined)return undefined;if(_0x531469[_0x363880(0xff)]===!![]&&(!_0x3b5e14[_0x363880(0xe2)]()||_0x531469[_0x363880(0xd3)][_0x363880(0x9b)]===0x61*-0x35+0xc*0x22a+0x1*-0x5e3))return _0x128796=!![],undefined;const _0x432d9f=this[_0x363880(0x97)][_0x363880(0xbf)][_0x363880(0xe3)](_0x4e50b2['id'])===undefined?[]:this[_0x363880(0x97)][_0x363880(0xbf)][_0x363880(0xd7)]({'sessionId':_0x4e50b2['id'],'limit':0x1f4})[_0x363880(0xeb)],_0x8ea49c=nativeConversationPage(_0x4e50b2,_0x531469,_0x531469[_0x363880(0xf0)]===!![]?_0x36d772[_0x363880(0xc2)]===undefined?{}:{'limit':_0x36d772[_0x363880(0xc2)]}:_0x36d772,_0x432d9f,_0x80435c=>this[_0x363880(0x97)][_0x363880(0x9a)][_0x363880(0xb5)](_0x4e50b2,_0x80435c));return _0x8ea49c;},'official':()=>this[_0x1d81c9(0x90)](_0x4e50b2,_0x36d772)});return{'page':_0x3fc47d,'incompleteNative':_0x128796};}async[_0x5ad2b6(0xe6)](_0x5ca149,_0x432ace,_0x3b5e7e,_0x282f84,_0x5ec37b){const _0x2bc73e=_0x5ad2b6,_0x5e5b4a=Math[_0x2bc73e(0xc0)](Math[_0x2bc73e(0x96)](_0x432ace[_0x2bc73e(0xc2)]??0x361*-0x5+0x21c0*-0x1+-0x73*-0x71,0x43*0x8f+0xba3+-0x310f),-0x1797+-0x696*-0x5+0x3d*-0x1f),_0x3dd2c9=this[_0x2bc73e(0x97)][_0x2bc73e(0xbf)][_0x2bc73e(0xd7)]({'sessionId':_0x5ca149['id'],'limit':0x1f4})[_0x2bc73e(0xeb)],_0x392147=_0x3b5e7e?.[_0x2bc73e(0x8d)]??oldestTurnActivityAt(_0x3dd2c9);if(_0x3b5e7e?.[_0x2bc73e(0xdb)]===_0x2bc73e(0xc1)){const _0x22dede=await this[_0x2bc73e(0xa4)](_0x5ca149,{..._0x3b5e7e[_0x2bc73e(0xac)]===null?{}:{'cursor':_0x3b5e7e[_0x2bc73e(0xac)]},'limit':_0x5e5b4a}),_0x16acab=_0x22dede[_0x2bc73e(0xf6)];if(_0x16acab===undefined)return this[_0x2bc73e(0xf6)](null,[],{'snapshotSequence':_0x282f84,'source':_0x2bc73e(0xbf),'readAt':_0x5ec37b});const _0x5c6dbd=_0x16acab[_0x2bc73e(0xa7)]===_0x2bc73e(0x102)?await this[_0x2bc73e(0xab)](_0x5ca149,_0x16acab[_0x2bc73e(0xeb)]):_0x16acab[_0x2bc73e(0xeb)],_0x30de7b=_0x5c6dbd[_0x2bc73e(0xbc)](_0x259375=>latestTurnActivityAt(_0x259375)<_0x392147);return this[_0x2bc73e(0xf6)](_0x16acab[_0x2bc73e(0x9c)]===null?null:encodeActiveHistoryCursor({'sessionId':_0x5ca149['id'],'stage':_0x2bc73e(0xc1),'beforeAt':_0x392147,'cursor':_0x16acab[_0x2bc73e(0x9c)]}),_0x30de7b,{'snapshotSequence':_0x282f84,'source':_0x16acab[_0x2bc73e(0xa7)],'readAt':_0x5ec37b});}const _0x591fac=this[_0x2bc73e(0x97)][_0x2bc73e(0xbf)][_0x2bc73e(0xd7)]({'sessionId':_0x5ca149['id'],..._0x3b5e7e?.[_0x2bc73e(0xac)]===null||_0x3b5e7e===undefined?{}:{'cursor':_0x3b5e7e[_0x2bc73e(0xac)]},'limit':_0x5e5b4a}),_0x28a7ce=_0x591fac[_0x2bc73e(0x9c)]!==null?encodeActiveHistoryCursor({'sessionId':_0x5ca149['id'],'stage':_0x2bc73e(0xe4),'beforeAt':_0x392147,'cursor':_0x591fac[_0x2bc73e(0x9c)]}):_0x5ca149[_0x2bc73e(0xa3)]===null?null:encodeActiveHistoryCursor({'sessionId':_0x5ca149['id'],'stage':_0x2bc73e(0xc1),'beforeAt':_0x392147,'cursor':null});return this[_0x2bc73e(0xf6)](_0x28a7ce,_0x591fac[_0x2bc73e(0xeb)],{'snapshotSequence':_0x282f84,'source':_0x2bc73e(0xbf),'readAt':_0x5ec37b,'deferredOlderHistory':!![]});}async[_0x5ad2b6(0xc6)](_0x4e63f4){const _0x21cb25=_0x5ad2b6,_0x25a4dc=this[_0x21cb25(0x97)][_0x21cb25(0xa0)][_0x21cb25(0x80)](_0x4e63f4[_0x21cb25(0x86)]);if(!_0x25a4dc[_0x21cb25(0xfc)](this[_0x21cb25(0x97)][_0x21cb25(0xa2)]())){this[_0x21cb25(0x97)][_0x21cb25(0x99)](_0x4e63f4['id'],_0x21cb25(0x8f));return;}const _0x3ff2f0=await _0x25a4dc[_0x21cb25(0xc7)](_0x4e63f4);if(_0x3ff2f0!==undefined)this[_0x21cb25(0x97)][_0x21cb25(0x99)](_0x4e63f4['id'],_0x3ff2f0);}async[_0x5ad2b6(0xbb)](_0x4ac325,_0x482824,_0x175a1f=-0xa5e+0xa3*-0x35+0x2c3b){const _0x4c9975=_0x5ad2b6;if(_0x4ac325[_0x4c9975(0xa3)]===null)return undefined;const _0x280478=nativeHistoryPageCursor(_0x482824,_0x4ac325['id']),_0x3818ec=await readNativeSession(_0x4ac325[_0x4c9975(0x86)],_0x4ac325[_0x4c9975(0x8b)],_0x4ac325[_0x4c9975(0xa3)],_0x280478,_0x175a1f);if(_0x3818ec!==undefined)return _0x3818ec;return await discoverNativeSessions(_0x4ac325[_0x4c9975(0x86)],_0x4ac325[_0x4c9975(0x8b)]),readNativeSession(_0x4ac325[_0x4c9975(0x86)],_0x4ac325[_0x4c9975(0x8b)],_0x4ac325[_0x4c9975(0xa3)],_0x280478,_0x175a1f);}async[_0x5ad2b6(0xab)](_0x29141a,_0x483f64){const _0x7af8b4=_0x5ad2b6,_0x2343ed=performance[_0x7af8b4(0xd8)](),_0x3f15e5=await this[_0x7af8b4(0xbb)](_0x29141a),_0x50f71d=Math[_0x7af8b4(0xc4)](performance[_0x7af8b4(0xd8)]()-_0x2343ed);if(_0x50f71d>=0x1*-0x814+0x17a8+0x4de*-0x3)nodeLog(_0x7af8b4(0xfd),{'runner':_0x29141a[_0x7af8b4(0x86)],'sessionId':_0x29141a['id'],'durationMs':_0x50f71d});if(_0x3f15e5===undefined)return _0x483f64;const _0x4d6411=new Map();for(const _0x5d8ccb of _0x3f15e5[_0x7af8b4(0xd3)]){if(_0x5d8ccb[_0x7af8b4(0xd2)]!==_0x7af8b4(0xd0)||_0x5d8ccb[_0x7af8b4(0xcf)]===undefined)continue;const _0x223e6e=this[_0x7af8b4(0x97)][_0x7af8b4(0x9a)][_0x7af8b4(0xb5)](_0x29141a,_0x5d8ccb[_0x7af8b4(0xcf)]);if(_0x223e6e[_0x7af8b4(0x9b)]>0x9fa+0x1ee+-0xbe8)_0x4d6411[_0x7af8b4(0xc8)](_0x5d8ccb[_0x7af8b4(0xe5)],_0x223e6e);}if(_0x4d6411[_0x7af8b4(0xf4)]===-0x3*-0x40c+-0x41b+-0x1*0x809)return _0x483f64;return _0x483f64[_0x7af8b4(0x94)](_0x1f4edc=>({..._0x1f4edc,'items':coalesceImageGenerationItems(_0x1f4edc[_0x7af8b4(0xd3)][_0x7af8b4(0x94)](_0x240ac7=>{const _0x134c0a=_0x7af8b4,_0x2525bc=_0x4d6411[_0x134c0a(0xfe)](_0x240ac7['id'][_0x134c0a(0x9f)](_0x240ac7['id'][_0x134c0a(0xf2)](':')+(0x33*0xab+-0xb69+-0x16a7)));if(_0x2525bc===undefined||!isPlainRecord(_0x240ac7[_0x134c0a(0x98)]))return _0x240ac7;return{..._0x240ac7,'payload':{..._0x240ac7[_0x134c0a(0x98)],'attachments':_0x2525bc}};}))}));}async[_0x5ad2b6(0x90)](_0x28bc9b,_0x23fa5a){const _0x161ed3=_0x5ad2b6,_0x45d8b1=this[_0x161ed3(0x97)][_0x161ed3(0xa0)][_0x161ed3(0x80)](_0x28bc9b[_0x161ed3(0x86)]);if(_0x28bc9b[_0x161ed3(0xa3)]===null||!_0x45d8b1[_0x161ed3(0xfc)](this[_0x161ed3(0x97)][_0x161ed3(0xa2)]()))return undefined;const _0x351936=performance[_0x161ed3(0xd8)]();try{return await _0x45d8b1[_0x161ed3(0xb7)](_0x28bc9b,_0x23fa5a,_0x5dbae7=>this[_0x161ed3(0xfb)](_0x28bc9b,_0x5dbae7));}finally{const _0x3fa67e=Math[_0x161ed3(0xc4)](performance[_0x161ed3(0xd8)]()-_0x351936);if(_0x3fa67e>=0xde0+0x754+-0x35f*0x6)nodeLog(_0x161ed3(0xd9),{'runner':_0x28bc9b[_0x161ed3(0x86)],'sessionId':_0x28bc9b['id'],'durationMs':_0x3fa67e});}}[_0x5ad2b6(0xfb)](_0x363c7b,_0x3e0595){const _0x83a4d3=_0x5ad2b6,_0x5bbe48=this[_0x83a4d3(0x97)][_0x83a4d3(0xa0)][_0x83a4d3(0x80)](_0x363c7b[_0x83a4d3(0x86)])[_0x83a4d3(0xf1)](_0x3e0595);if(_0x5bbe48===undefined)return undefined;return this[_0x83a4d3(0x97)][_0x83a4d3(0xbf)][_0x83a4d3(0xbd)](_0x5bbe48);}[_0x5ad2b6(0xf6)](_0x292960,_0x290626,_0x49a451){const _0x174a7f=_0x5ad2b6;return{..._0x49a451,'turns':_0x290626,'nextCursor':_0x292960,'latestVisibleAt':Math[_0x174a7f(0x96)](0xa53*-0x1+-0x1*0x121c+0x1c6f,..._0x290626[_0x174a7f(0x94)](_0x148318=>Math[_0x174a7f(0x96)](_0x148318[_0x174a7f(0xec)]??-0xa7*0x7+0x78*-0x41+0x2309,_0x148318[_0x174a7f(0xa6)]??-0x5*0x2ed+0x345*0x3+0x4d2)))};}}function nativeHistoryPageCursor(_0x5ed990,_0x2c2b96){const _0x5ecf23=_0x5ad2b6;if(_0x5ed990===undefined)return undefined;try{const _0x2124d8=JSON[_0x5ecf23(0xb4)](Buffer[_0x5ecf23(0xc9)](_0x5ed990,_0x5ecf23(0xf5))[_0x5ecf23(0xed)](_0x5ecf23(0x7f)));return _0x2124d8[_0x5ecf23(0xef)]===_0x2c2b96&&Number[_0x5ecf23(0xf9)](_0x2124d8[_0x5ecf23(0x82)])&&Number[_0x5ecf23(0xf9)](_0x2124d8[_0x5ecf23(0xce)])&&Number[_0x5ecf23(0xf9)](_0x2124d8[_0x5ecf23(0x92)])&&_0x2124d8[_0x5ecf23(0x82)]>=-0xc*0x270+0x21aa+-0x46a&&_0x2124d8[_0x5ecf23(0xce)]>=0x1*-0x1c18+-0x1992+0x35aa&&_0x2124d8[_0x5ecf23(0xce)]<=_0x2124d8[_0x5ecf23(0x82)]&&_0x2124d8[_0x5ecf23(0x92)]>=-0x1d6e+-0x4f*0x6d+-0x3f11*-0x1&&_0x2124d8[_0x5ecf23(0x92)]<=_0x2124d8[_0x5ecf23(0x82)]&&(_0x2124d8[_0x5ecf23(0xf3)]===undefined||Number[_0x5ecf23(0xf9)](_0x2124d8[_0x5ecf23(0xf3)])&&_0x2124d8[_0x5ecf23(0xf3)]>=0x89*0x3a+0x28b*-0x8+0xa1*-0x11&&_0x2124d8[_0x5ecf23(0xf3)]<=0x1140+0xff4+-0x1f40)&&typeof _0x2124d8[_0x5ecf23(0xaa)]===_0x5ecf23(0xcb)?{'snapshotEnd':_0x2124d8[_0x5ecf23(0x82)],'nextEnd':_0x2124d8[_0x5ecf23(0xce)],'fileAnchor':_0x2124d8[_0x5ecf23(0xaa)],'anchorBytes':_0x2124d8[_0x5ecf23(0x92)],..._0x2124d8[_0x5ecf23(0xf3)]===undefined?{}:{'readLimit':_0x2124d8[_0x5ecf23(0xf3)]}}:undefined;}catch{return undefined;}}const ACTIVE_HISTORY_CURSOR_PREFIX=_0x5ad2b6(0xfa);function encodeActiveHistoryCursor(_0x5958de){const _0x1687f1=_0x5ad2b6;return''+ACTIVE_HISTORY_CURSOR_PREFIX+Buffer[_0x1687f1(0xc9)](JSON[_0x1687f1(0xe8)](_0x5958de))[_0x1687f1(0xed)](_0x1687f1(0xf5));}function _0x5939(){const _0x3a7dfd=['CMvHzev4DgvYBMfSqwn0AxzPDhK','C2v0','zNjVBq','Aw5JB21WBgv0zu5HDgL2zq','C3rYAw5N','u1rbuLrjtKC','q0foq0vmteLorW','BMv4DevUza','Aw1Hz2vbDhrHy2HTzw50CW','Dg9VBf9JywXS','DMfSDwvZ','A2LUza','AxrLBxm','C3rHCNrZv2L0Aa','ndK4mde4uw1zEffI','mtbMshz0reO','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','BM93','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5VzMzPy2LHBc1YzwfKlMnVBxbSzxrLza','CMvHzef0','C3rHz2u','yxbWCM92ywXjza','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5UyxrPDMuTCMvHzc5JB21WBgv0zwq','C3rHDhvZ','mtq1nJiZmLj5Cw1fBG','BMf0AxzLq29UDhjVBa','zMLUzeXHC3rjBMrLEa','ywnJzxb0C1rYDw5JyxrLze5HDgL2zuHPC3rVCNK','z2v0qwDLBNrtzxnZAw9U','uLvoveLnrq','Dg9VBfvZzuLK','CMvHze1HBMfNzwrby3rPDMu','uLvotKLorW','C3rYAw5NAwz5','BMf0AxzL','BNvTyMvY','DhvYBNm','C3rHCNrLzef0','Dg9tDhjPBMC','mJHUzffxt2C','C2vZC2LVBKLK','y3vYC29YuMvZzxq','BwfUywDLzfj1BKzVCK5HDgL2zvr1CM4','BgfZDeLUzgv4t2y','CMvHzeXPBwL0','C2L6zq','yMfZzty0DxjS','CgfNzq','mJm0mJiZmLfHCMDyzG','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','AxnjBNrLz2vY','BwfYlwfJDgL2zs1OAxn0B3j5oJe6','BwfUywDLzfj1BM5LCLr1CM4','yxzHAwXHyMXL','BMf0AxzLlNnLC3nPB24UAgLZDg9YEs5HDhrHy2HTzw50lxnVDxjJzs1YzwfKlMnVBxbSzxrLza','z2v0','Dhj1BMnHDgvK','CMvHzeHPC3rVCNK','mtC5mJzuBwDcthi','B2zMAwnPywW','DxrMoa','CMvXDwLYzq','C29Tzq','C25HChnOB3rfBMq','C3bSAwnL','uevoreLorW','CMvHzenVBNzLCNnHDgLVBKHPC3rVCNK','CNvUBMvY','rKfjteve','ntyZmdLUDNv3swW','ChvZAa','rvHurvjoquW','y3DK','zMXHDe1HCa','yMvMB3jLqxq','mta3BKDuAuHi','vu5bvKfjtefcteu','CMvHze9MzMLJAwfS','zxjYB3i','yw5JAg9YqNL0zxm','tKfusvzfx1rsqu5tq1jjufrFsu5dt01qtevurq','BwfW','CMvHzeHPC3rVCNLqywDL','Bwf4','B3b0Aw9UCW','Cgf5Bg9Hza','C2v0rxH0zxjUywXby3rPDML0Eq','yxr0ywnOBwvUDhm','BgvUz3rO','BMv4Den1CNnVCG','Bgf0zxn0vMLZAwjSzuf0','DxnLCL9PBNb1Df9Yzxf1zxn0','C2XPy2u','CNvUBMvYCW','DxnLCL9TzxnZywDL','y2fWywjPBgL0AwvZ','zxH0zxjUywXtzxnZAw9Uswq','CMvHzfj1BM5LCKHPC3rVCNK','AxngAw5PDgu','y29TCgXLDgvKqxq','C291CMnL','ngnHDwXnvq','BgLZDfj1BNngB3jtzxnZAw9U','zMLSzufUy2HVCG','yxr0ywnOtMf0AxzLsw1Hz2vZ','y3vYC29Y','CNvUswq','yxbWCM92ywXFCMvXDwvZDa','mJuWndm4mKLPy3nQwG','zMLUzeLUzgv4','AgfZtwfUywDLzefJDgL2zvj1BG','C25HChnOB3rtzxf1zw5Jzq','CMvHza','CgfYC2u','CMvNAxn0zxjoyxrPDMu','AgfZ','CMvHze9MzMLJAwfSq29UDMvYC2f0Aw9U','rvzftLrFq1vsu09sx0LovKfmsuq','CMvXDwvZDeLK','tufsx01btKfhruq','CMvHze5HDgL2zq','zMLSDgvY','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','ndiYodKZnwPlrK9gtW','CNvUDgLTzq','BwLU','t0zgsunjquW','BgLTAxq','y2XPzw50twvZC2fNzuLK','CM91BMq','nZa4BMjzy0Hs','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK'];_0x5939=function(){return _0x3a7dfd;};return _0x5939();}function decodeActiveHistoryCursor(_0x4623ee,_0x317d77){const _0x2c577b=_0x5ad2b6;if(_0x4623ee===undefined||!_0x4623ee[_0x2c577b(0xd4)](ACTIVE_HISTORY_CURSOR_PREFIX))return undefined;try{const _0x4f01ba=JSON[_0x2c577b(0xb4)](Buffer[_0x2c577b(0xc9)](_0x4623ee[_0x2c577b(0x9f)](ACTIVE_HISTORY_CURSOR_PREFIX[_0x2c577b(0x9b)]),_0x2c577b(0xf5))[_0x2c577b(0xed)](_0x2c577b(0x7f)));if(_0x4f01ba[_0x2c577b(0xef)]!==_0x317d77||_0x4f01ba[_0x2c577b(0xdb)]!==_0x2c577b(0xe4)&&_0x4f01ba[_0x2c577b(0xdb)]!==_0x2c577b(0xc1)||typeof _0x4f01ba[_0x2c577b(0x8d)]!==_0x2c577b(0xea)||!Number[_0x2c577b(0xa5)](_0x4f01ba[_0x2c577b(0x8d)])||_0x4f01ba[_0x2c577b(0x8d)]<-0xd52+-0x1599+0x4fd*0x7||_0x4f01ba[_0x2c577b(0xac)]!==null&&typeof _0x4f01ba[_0x2c577b(0xac)]!==_0x2c577b(0xcb))throw new Error(_0x2c577b(0xb8));return _0x4f01ba;}catch{throw new Error(_0x2c577b(0xb8));}}function latestTurnActivityAt(_0x341c73){const _0x5b5c55=_0x5ad2b6;return Math[_0x5b5c55(0x96)](_0x341c73[_0x5b5c55(0xec)]??-0x22d0+0x20ef+0x25*0xd,_0x341c73[_0x5b5c55(0xa6)]??0x8*-0x4cc+-0x2ec+0x294c);}function oldestTurnActivityAt(_0x153579){const _0x5b2195=_0x5ad2b6;return _0x153579[_0x5b2195(0x9b)]===-0x1af*-0x3+-0x1f*-0xc5+0x73a*-0x4?-0x2197+0x3*-0x732+-0x235*-0x19:Math[_0x5b2195(0xc0)](..._0x153579[_0x5b2195(0x94)](latestTurnActivityAt));}function sameConversationTurn(_0x4013b1,_0x217154){if(_0x4013b1['id']===_0x217154['id'])return!![];const _0x9f3b2d=conversationClientMessageId(_0x4013b1);return _0x9f3b2d!==null&&_0x9f3b2d===conversationClientMessageId(_0x217154);}function conversationClientMessageId(_0x279638){const _0x50685f=_0x5ad2b6;for(const _0x51f9ad of _0x279638[_0x50685f(0xd3)]){if(_0x51f9ad[_0x50685f(0xd2)]!==_0x50685f(0xa1)||!isPlainRecord(_0x51f9ad[_0x50685f(0x98)]))continue;const _0x44e240=_0x51f9ad[_0x50685f(0x98)][_0x50685f(0xc3)];if(typeof _0x44e240===_0x50685f(0xcb)&&_0x44e240[_0x50685f(0x9b)]>0x3b1*-0x3+-0x246+0xd59)return _0x44e240;}return null;}function sourceRank(_0x14b996){const _0x45d0fa=_0x5ad2b6;if(_0x14b996===_0x45d0fa(0x102))return 0x1872+0x1*0x793+-0x2002;if(_0x14b996===_0x45d0fa(0xe9))return-0x45e+-0xc22+-0x1*-0x1082;return 0xbfd+0x1565+-0x2161;}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x2340f0=_0x53e8;function _0x53e8(_0x4396eb,_0x402911){_0x4396eb=_0x4396eb-(0x19e*-0xd+0xfd3*-0x1+-0x15d*-0x1c);const _0x25c2c3=_0x3f1e();let _0xbd6ff5=_0x25c2c3[_0x4396eb];if(_0x53e8['STzCWl']===undefined){var _0x29438d=function(_0x4ecffe){const _0x476925='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x316548='',_0x4469e7='';for(let _0x5b719e=0xc6d*-0x1+0x1*-0x158f+0x3c*0x91,_0x2608ed,_0x41fd02,_0xc6c139=-0x15a0+-0x1e8+0x1788;_0x41fd02=_0x4ecffe['charAt'](_0xc6c139++);~_0x41fd02&&(_0x2608ed=_0x5b719e%(0x5ae*-0x1+-0xab0+0x1062)?_0x2608ed*(-0x1325+-0x247*0x2+0x17f3)+_0x41fd02:_0x41fd02,_0x5b719e++%(0x1*0x20c1+0x11da+-0x3297))?_0x316548+=String['fromCharCode'](-0x3*-0x9b+-0x384+0x2b2&_0x2608ed>>(-(-0x2f*-0x74+-0x4*0x943+0xfc2)*_0x5b719e&0x1*-0x109d+0x1bc7*0x1+-0xb24)):-0x1f7e+0x162*0xb+0x209*0x8){_0x41fd02=_0x476925['indexOf'](_0x41fd02);}for(let _0x60658b=-0xd9*0x20+-0xca0*-0x2+-0x3c*-0x8,_0x4c8405=_0x316548['length'];_0x60658b<_0x4c8405;_0x60658b++){_0x4469e7+='%'+('00'+_0x316548['charCodeAt'](_0x60658b)['toString'](-0x218f*-0x1+-0x3*-0x80f+-0x39ac))['slice'](-(-0x1400+-0x2*0x31c+0x1a3a));}return decodeURIComponent(_0x4469e7);};_0x53e8['qIVHHT']=_0x29438d,_0x53e8['wbnorT']={},_0x53e8['STzCWl']=!![];}const _0xda3118=_0x25c2c3[0x63d*0x2+0x4f7*0x5+0xc6f*-0x3];_0x53e8['DCGfnq']!==_0xda3118&&(_0x53e8['wbnorT']={},_0x53e8['DCGfnq']=_0xda3118);const _0x38ccb7=_0x53e8['wbnorT'][_0x4396eb];return _0x38ccb7===undefined?(_0xbd6ff5=_0x53e8['qIVHHT'](_0xbd6ff5),_0x53e8['wbnorT'][_0x4396eb]=_0xbd6ff5):_0xbd6ff5=_0x38ccb7,_0xbd6ff5;}function _0x3f1e(){const _0xc1f1d4=['u0vtu0LptL9srvnvtuvFuKvkrunuruq','D29YA3nWywnLswq','zw5ZDxjLq29UzMLNDxjHDgLVBG','y2XLyxjgywLSDxjL','Bw9KzwW','mtm3nZiYmgD3Aevrtq','zM9Yy2u','y3vZDg9TvgL0Bgu','CMvZDw1LrxH0zxjUywW','ywn0AxzPDhK','ndzNsvfltLe','y29Kzq','y3DK','zMfPBhvYzvrPBwvYCW','C2v0','uKvtvu1bqKXf','nda1mxvTDNHwDq','ote4sfPRC0Do','yxzHAwXHyMXL','rvHurvjoquXFqunusvzf','tufsx01btKfhruq','ChjVBwLZzq','CMvZDw1Lzej5rgLYzwn0swq','BwfUywDLzefSAwfZrM9Y','CMvZDw1L','D29YA3nWywnLugf0Aa','Dw5Yzwy','mZqZq0jcwvzv','BMf0AxzLq29UDhjVBa','ywnJzxb0rM9YtwvZC2fNzq','C3rHDgu','CMvZDw1LrMfPBhvYzxm','CNvUBMvYvgL0Bgu','ChjVzhvJDa','uKvkrunuruq','BwvZC2fNzvjLC3vTzuzHAwX1CMvZ','zxH0zxjUywXby3rPDML0Eq','ntCWndHjAeTWquy','u0vtu0LptL9ot1rFrK9vtKq','rvHurvjoquXFu0vtu0LptL9bq1rjvKu','ywrK','z2v0','mtaXnZq1nLDyveTjDq','CMvZDw1LvgfZA3m','zgvSAxzLCNK','C2v0tMf0AxzLq29UDhjVBa','uLvotKvsx1voqvzbsuXbqKXf','y29UzMLNDxjHDgLVBG','B3b0Aw9UCW','DhjHBNnPDgLVBMLUzW','C2v0rMfPBhvYzq','mJaXndm5mhjRC0Lwua','C2vZC2LVBG','zxH0zxjUywXtzxnZAw9Uswq','zgvSzxrL','CMvTzw1IzxjoyxrPDMu','mtvbtfH1y2C','CMvZDw1LrMfPBhvYzurLDgfPBhm','mJu5mtrKuhflyNK','CNvUBMvYCW','C3rHz2u','zMfPBhvYzunVzgu','ntvTC3LNAhK','mZe1ntuWm2v6D0XqAW','CgvYzM9YBvjLC3vTzq','mJrmyM9YsLm','zMfPBhvYzq','ywnJzxnZ','CMvZB2X2zuzVCK1LC3nHz2u','BwvZC2fNzuzHAwX1CMvdB2rL','z2v0qwDLBNrtzxnZAw9U','y3jLyxrLqwDLBNrtzxnZAw9U','zMfPBhvYzurLDgfPBa','DgHLBG','CNvUDgLTzq','CNvUBMvY','DhjHBNnPDgLVBNm','CMvZB2X2zq','zwzMB3j0','rvHurvjoquW','AgfZ','ChjVAMvJDgLVBKzVCG'];_0x3f1e=function(){return _0xc1f1d4;};return _0x3f1e();}(function(_0x439697,_0x5e7c41){const _0x2ebd98=_0x53e8,_0x137342=_0x439697();while(!![]){try{const _0x244b71=parseInt(_0x2ebd98(0x188))/(-0x1933+0x1*0x130d+0x627)*(-parseInt(_0x2ebd98(0x182))/(-0x35*0x97+0x25de+-0x699))+parseInt(_0x2ebd98(0x1a2))/(0x5+-0x19c3+0x19c1)+-parseInt(_0x2ebd98(0x17d))/(-0x19d*0x16+-0x13*0xc2+0x31e8)*(-parseInt(_0x2ebd98(0x15e))/(0x19c9+0x1f3d+-0x3901))+-parseInt(_0x2ebd98(0x160))/(0x13ff+0x1b02*0x1+-0x2efb)*(-parseInt(_0x2ebd98(0x193))/(0x126d+0x25b8+-0x381e))+parseInt(_0x2ebd98(0x19d))/(0x1fd*0xd+0x1117+0xaba*-0x4)*(parseInt(_0x2ebd98(0x189))/(-0x3*-0x2d1+-0x1165+0x13*0x79))+-parseInt(_0x2ebd98(0x159))/(0x10c4+0x24ce*-0x1+0x1414)*(parseInt(_0x2ebd98(0x164))/(-0x18*0x99+0x95*-0x27+-0x1*-0x2516))+-parseInt(_0x2ebd98(0x167))/(-0xbf*0x26+-0x1*-0x49d+0x17c9)*(parseInt(_0x2ebd98(0x165))/(-0x77*-0x2b+0x1*0x9f7+0x1*-0x1de7));if(_0x244b71===_0x5e7c41)break;else _0x137342['push'](_0x137342['shift']());}catch(_0x102bee){_0x137342['push'](_0x137342['shift']());}}}(_0x3f1e,0x1e7*-0xaaf+-0x2715e+-0x1*-0x21d535));const RESUME_FAILURE_TTL_MS=(0x32*0x73+0xc*0x22a+-0x3050)*(-0x16db+-0x12cd0+0x22e0b);export class ExternalSessionResumeService{[_0x2340f0(0x156)];[_0x2340f0(0x172)]=new Set();[_0x2340f0(0x1a3)]=new Map();constructor(_0x22a496){const _0xd1d2c4=_0x2340f0;this[_0xd1d2c4(0x156)]=_0x22a496;}[_0x2340f0(0x157)](_0x42a5bc){const _0x4059d7=_0x2340f0;return this[_0x4059d7(0x172)][_0x4059d7(0x176)](_0x42a5bc);}async[_0x2340f0(0x190)](_0x5cc57c,_0x7a9002=![]){const _0x1be369=_0x2340f0,_0x2529fb=this[_0x1be369(0x1a3)][_0x1be369(0x1a1)](_0x5cc57c['id']);if(_0x2529fb!==undefined){if(!_0x7a9002||_0x2529fb[_0x1be369(0x17e)])return _0x2529fb[_0x1be369(0x18d)];const _0x2a2179=await _0x2529fb[_0x1be369(0x18d)];return _0x2a2179??this[_0x1be369(0x190)](_0x5cc57c,!![]);}const _0x185204=this[_0x1be369(0x166)](_0x5cc57c,_0x7a9002);this[_0x1be369(0x1a3)][_0x1be369(0x186)](_0x5cc57c['id'],{'force':_0x7a9002,'promise':_0x185204});try{return await _0x185204;}finally{if(this[_0x1be369(0x1a3)][_0x1be369(0x1a1)](_0x5cc57c['id'])?.[_0x1be369(0x18d)]===_0x185204)this[_0x1be369(0x1a3)][_0x1be369(0x15c)](_0x5cc57c['id']);}}async[_0x2340f0(0x166)](_0xb0497,_0x50fd66){const _0x3c11ec=_0x2340f0;this[_0x3c11ec(0x17b)](_0xb0497['id']);const _0x6962f4=this[_0x3c11ec(0x156)][_0x3c11ec(0x196)][_0x3c11ec(0x18e)][_0x3c11ec(0x1a1)](_0xb0497['id']),_0x24af78=_0x6962f4===undefined?undefined:this[_0x3c11ec(0x156)][_0x3c11ec(0x170)][_0x3c11ec(0x16c)](_0x6962f4);if(_0x24af78!==undefined)return this[_0x3c11ec(0x156)][_0x3c11ec(0x17a)](_0x24af78);const _0x57a9d1=this[_0x3c11ec(0x156)][_0x3c11ec(0x161)][_0x3c11ec(0x199)](_0xb0497[_0x3c11ec(0x171)]);if(_0x57a9d1===undefined)return this[_0x3c11ec(0x158)](_0xb0497['id'],_0x3c11ec(0x154)),undefined;this[_0x3c11ec(0x172)][_0x3c11ec(0x1a0)](_0xb0497['id']);let _0x457993;try{_0x457993=await _0x57a9d1[_0x3c11ec(0x180)](_0xb0497,{'available':this[_0x3c11ec(0x156)][_0x3c11ec(0x18a)](_0xb0497[_0x3c11ec(0x171)]),'projectionFor':this[_0x3c11ec(0x156)][_0x3c11ec(0x177)],'managedAliasFor':this[_0x3c11ec(0x156)][_0x3c11ec(0x18f)],'currentResumed':_0x3dd3ee=>{const _0x67f907=_0x3c11ec,_0x31613b=this[_0x67f907(0x156)][_0x67f907(0x196)][_0x67f907(0x18e)][_0x67f907(0x1a1)](_0x3dd3ee);return _0x31613b===undefined?undefined:this[_0x67f907(0x156)][_0x67f907(0x170)][_0x67f907(0x16c)](_0x31613b);},'promote':_0x1669de=>{const _0x4e43b8=_0x3c11ec;return this[_0x4e43b8(0x156)][_0x4e43b8(0x170)][_0x4e43b8(0x153)](_0x1669de,_0x4e43b8(0x18c)),this[_0x4e43b8(0x156)][_0x4e43b8(0x170)][_0x4e43b8(0x16c)](_0x1669de);},'ensureConfiguration':this[_0x3c11ec(0x156)][_0x3c11ec(0x17a)],'create':_0x9be4f=>{const _0x47a30d=_0x3c11ec,_0x31e74d=this[_0x47a30d(0x156)][_0x47a30d(0x155)](_0x9be4f);return this[_0x47a30d(0x156)][_0x47a30d(0x170)][_0x47a30d(0x16d)]({'workspaceId':_0x9be4f[_0x47a30d(0x179)],'runner':_0x9be4f[_0x47a30d(0x171)],..._0x9be4f[_0x47a30d(0x15b)]===null?{}:{'externalSessionId':_0x9be4f[_0x47a30d(0x15b)]},'nativeControl':_0x47a30d(0x18c),'cwd':_0x9be4f[_0x47a30d(0x184)],'model':_0x31e74d[_0x47a30d(0x17c)],'effort':_0x31e74d[_0x47a30d(0x174)],'access':_0x31e74d[_0x47a30d(0x169)],..._0x9be4f[_0x47a30d(0x198)]===null?{}:{'title':_0x9be4f[_0x47a30d(0x198)]},..._0x9be4f[_0x47a30d(0x17f)]===null?{}:{'customTitle':_0x9be4f[_0x47a30d(0x17f)]}});},'workspacePath':this[_0x3c11ec(0x156)][_0x3c11ec(0x191)],'rememberManagedNative':this[_0x3c11ec(0x156)][_0x3c11ec(0x15d)]},_0x50fd66);}finally{this[_0x3c11ec(0x172)][_0x3c11ec(0x15c)](_0xb0497['id']);}if(_0x457993[_0x3c11ec(0x181)]!==undefined)this[_0x3c11ec(0x156)][_0x3c11ec(0x196)][_0x3c11ec(0x19c)][_0x3c11ec(0x186)](_0xb0497['id'],_0x457993[_0x3c11ec(0x181)]);if(_0x457993[_0x3c11ec(0x15a)]!==undefined)return this[_0x3c11ec(0x156)][_0x3c11ec(0x196)][_0x3c11ec(0x18e)][_0x3c11ec(0x186)](_0xb0497['id'],_0x457993[_0x3c11ec(0x15a)]['id']),_0x457993[_0x3c11ec(0x15a)];return this[_0x3c11ec(0x158)](_0xb0497['id'],_0x457993[_0x3c11ec(0x163)]??_0x3c11ec(0x178),_0x457993[_0x3c11ec(0x16e)]),this[_0x3c11ec(0x156)][_0x3c11ec(0x196)][_0x3c11ec(0x19b)][_0x3c11ec(0x186)](_0xb0497['id'],_0x457993[_0x3c11ec(0x16b)]??_0x457993[_0x3c11ec(0x163)]??_0x3c11ec(0x178)),undefined;}[_0x2340f0(0x168)](_0x2b6630){const _0x4fa5d0=_0x2340f0,_0x3eb0e7=this[_0x4fa5d0(0x156)][_0x4fa5d0(0x196)][_0x4fa5d0(0x197)][_0x4fa5d0(0x1a1)](_0x2b6630)??_0x4fa5d0(0x178),_0x297781=this[_0x4fa5d0(0x156)][_0x4fa5d0(0x196)][_0x4fa5d0(0x15f)][_0x4fa5d0(0x1a1)](_0x2b6630);return _0x297781===undefined?{'code':_0x3eb0e7}:{'code':_0x3eb0e7,'detail':_0x297781};}async[_0x2340f0(0x16a)](_0x270ac2){const _0x58506d=_0x2340f0,_0x16bacc=this[_0x58506d(0x156)][_0x58506d(0x196)][_0x58506d(0x18e)][_0x58506d(0x1a1)](_0x270ac2),_0x49af1c=this[_0x58506d(0x156)][_0x58506d(0x170)][_0x58506d(0x16c)](_0x16bacc??_0x270ac2)??await this[_0x58506d(0x156)][_0x58506d(0x173)](_0x270ac2);if(_0x49af1c===undefined)throw new Error(_0x58506d(0x19e));if(_0x49af1c[_0x58506d(0x194)]!==_0x58506d(0x175))return _0x49af1c;const _0x27968c=await this[_0x58506d(0x190)](_0x49af1c);if(_0x27968c!==undefined)return _0x27968c;if(this[_0x58506d(0x156)][_0x58506d(0x196)][_0x58506d(0x19c)][_0x58506d(0x1a1)](_0x49af1c['id'])===_0x58506d(0x18b))throw new Error(_0x58506d(0x19f));throw new Error(this[_0x58506d(0x156)][_0x58506d(0x196)][_0x58506d(0x19b)][_0x58506d(0x1a1)](_0x49af1c['id'])??this[_0x58506d(0x168)](_0x49af1c['id'])[_0x58506d(0x183)]);}async[_0x2340f0(0x195)](_0x33793c){const _0x1f7a95=_0x2340f0,_0x1bd5d7=this[_0x1f7a95(0x156)][_0x1f7a95(0x196)][_0x1f7a95(0x18e)][_0x1f7a95(0x1a1)](_0x33793c),_0x42ffa0=this[_0x1f7a95(0x156)][_0x1f7a95(0x170)][_0x1f7a95(0x16c)](_0x1bd5d7??_0x33793c)??await this[_0x1f7a95(0x156)][_0x1f7a95(0x173)](_0x33793c);if(_0x42ffa0===undefined)throw new Error(_0x1f7a95(0x19e));if(_0x42ffa0[_0x1f7a95(0x194)]!==_0x1f7a95(0x175))return{'session':_0x42ffa0,'ready':Promise[_0x1f7a95(0x173)](_0x42ffa0),'deferred':![]};const _0x1a2e4b=this[_0x1f7a95(0x156)][_0x1f7a95(0x177)](_0x42ffa0)??this[_0x1f7a95(0x156)][_0x1f7a95(0x162)](_0x42ffa0),_0x1dc7f8=this[_0x1f7a95(0x190)](_0x42ffa0)[_0x1f7a95(0x16f)](_0x1b68f9=>{const _0x5d5fe1=_0x1f7a95;if(_0x1b68f9!==undefined)return _0x1b68f9;if(this[_0x5d5fe1(0x156)][_0x5d5fe1(0x196)][_0x5d5fe1(0x19c)][_0x5d5fe1(0x1a1)](_0x42ffa0['id'])===_0x5d5fe1(0x18b))throw new Error(_0x5d5fe1(0x19f));throw new Error(this[_0x5d5fe1(0x156)][_0x5d5fe1(0x196)][_0x5d5fe1(0x19b)][_0x5d5fe1(0x1a1)](_0x42ffa0['id'])??this[_0x5d5fe1(0x168)](_0x42ffa0['id'])[_0x5d5fe1(0x183)]);});return{'session':_0x1a2e4b,'ready':_0x1dc7f8,'deferred':!![]};}[_0x2340f0(0x1a4)](_0x5196d4){const _0x4a15e9=_0x2340f0;return _0x5196d4[_0x4a15e9(0x194)]===_0x4a15e9(0x175)&&_0x5196d4[_0x4a15e9(0x15b)]!==null?_0x4a15e9(0x187):_0x4a15e9(0x19a);}[_0x2340f0(0x17b)](_0x4102c8){const _0x720b2c=_0x2340f0,_0x41afc0=this[_0x720b2c(0x156)][_0x720b2c(0x196)][_0x720b2c(0x185)][_0x720b2c(0x1a1)](_0x4102c8);if(_0x41afc0!==undefined)clearTimeout(_0x41afc0);this[_0x720b2c(0x156)][_0x720b2c(0x196)][_0x720b2c(0x185)][_0x720b2c(0x15c)](_0x4102c8),this[_0x720b2c(0x156)][_0x720b2c(0x196)][_0x720b2c(0x197)][_0x720b2c(0x15c)](_0x4102c8),this[_0x720b2c(0x156)][_0x720b2c(0x196)][_0x720b2c(0x15f)][_0x720b2c(0x15c)](_0x4102c8),this[_0x720b2c(0x156)][_0x720b2c(0x196)][_0x720b2c(0x19b)][_0x720b2c(0x15c)](_0x4102c8);}[_0x2340f0(0x158)](_0x561eec,_0x573919,_0x21e3fc){const _0x5ee5b3=_0x2340f0;this[_0x5ee5b3(0x17b)](_0x561eec),this[_0x5ee5b3(0x156)][_0x5ee5b3(0x196)][_0x5ee5b3(0x197)][_0x5ee5b3(0x186)](_0x561eec,_0x573919);if(_0x21e3fc===undefined)this[_0x5ee5b3(0x156)][_0x5ee5b3(0x196)][_0x5ee5b3(0x15f)][_0x5ee5b3(0x15c)](_0x561eec);else this[_0x5ee5b3(0x156)][_0x5ee5b3(0x196)][_0x5ee5b3(0x15f)][_0x5ee5b3(0x186)](_0x561eec,_0x21e3fc);const _0x93fd60=setTimeout(()=>this[_0x5ee5b3(0x17b)](_0x561eec),RESUME_FAILURE_TTL_MS);_0x93fd60[_0x5ee5b3(0x192)](),this[_0x5ee5b3(0x156)][_0x5ee5b3(0x196)][_0x5ee5b3(0x185)][_0x5ee5b3(0x186)](_0x561eec,_0x93fd60);}}
|
|
2
|
+
const _0xff519d=_0x50f4;function _0x5176(){const _0x5c92dd=['y2XLyxjgywLSDxjL','CMvZB2X2zq','ChjVzhvJDa','zwzMB3j0','ChjVAMvJDgLVBKzVCG','zw5ZDxjLq29UzMLNDxjHDgLVBG','CMvZDw1L','z2v0','y29Kzq','mtu5mdiZnZL2BwLQy3q','rvHurvjoquW','DhjHBNnPDgLVBNm','C2v0rMfPBhvYzq','C2v0','rvHurvjoquXFqunusvzf','CNvUBMvY','zMfPBhvYzurLDgfPBa','z2v0qwDLBNrtzxnZAw9U','nJaWmJqYngncAvLdAa','ywn0AxzPDhK','BwvZC2fNzuzHAwX1CMvdB2rL','n2PhAg1lqW','y3jLyxrLqwDLBNrtzxnZAw9U','CMvTzw1IzxjoyxrPDMu','nte3mJu5nurhDvrizW','BwvZC2fNzvjLC3vTzuzHAwX1CMvZ','CMvZB2X2zuzVCK1LC3nHz2u','C2vZC2LVBG','CMvZDw1LrxH0zxjUywW','DgHLBG','zMfPBhvYzvrPBwvYCW','CMvZDw1Lzej5rgLYzwn0swq','CMvZDw1LrMfPBhvYzurLDgfPBhm','mJy1nZy2mwfwr2T4wG','neTduMHnyq','uLvotKvsx1voqvzbsuXbqKXf','u0vtu0LptL9srvnvtuvFuKvkrunuruq','tufsx01btKfhruq','nda5ndqXyunUwgHU','CMvZDw1LvgfZA3m','Bw9KzwW','zgvSAxzLCNK','ywnJzxnZ','zxH0zxjUywXby3rPDML0Eq','ywrK','C3rHDgu','B3b0Aw9UCW','rvHurvjoquXFu0vtu0LptL9bq1rjvKu','u0vtu0LptL9ot1rFrK9vtKq','D29YA3nWywnLswq','ywnJzxb0rM9YtwvZC2fNzq','CNvUDgLTzq','uKvkrunuruq','BMf0AxzLq29UDhjVBa','uKvtvu1bqKXf','mtCYmdK4nffcwwLMwG','y29UzMLNDxjHDgLVBG','zgvSzxrL','CMvZDw1LrMfPBhvYzxm','C2v0tMf0AxzLq29UDhjVBa','BwfUywDLzefSAwfZrM9Y','AgfZ','zMfPBhvYzunVzgu','C3rHz2u','zxH0zxjUywXtzxnZAw9Uswq','CNvUBMvYCW','CgvYzM9YBvjLC3vTzq','DhjHBNnPDgLVBMLUzW','yxzHAwXHyMXL','mZqZmdG3nKH6sunhCW','Dw5Yzwy','zMfPBhvYzq','D29YA3nWywnLugf0Aa','CNvUBMvYvgL0Bgu','y3vZDg9TvgL0Bgu','y3DK'];_0x5176=function(){return _0x5c92dd;};return _0x5176();}(function(_0x7d1319,_0x4b05de){const _0x48716b=_0x50f4,_0x36e5de=_0x7d1319();while(!![]){try{const _0x53f089=parseInt(_0x48716b(0x1b1))/(0x14b7+-0x24cc+-0x8e*-0x1d)*(-parseInt(_0x48716b(0x1ad))/(-0x2*0x16f+0x59d*-0x5+0x1ef1))+-parseInt(_0x48716b(0x1ac))/(-0xe8e*-0x1+-0xf16+-0x1*-0x8b)+parseInt(_0x48716b(0x184))/(0x1d*-0x77+-0xa*-0x329+-0x3*0x609)+-parseInt(_0x48716b(0x1a3))/(-0x1*-0x71+-0x1*0x28e+-0x1*-0x222)+parseInt(_0x48716b(0x19d))/(0x227*-0x7+-0x1*0xbe9+0x1b00)+parseInt(_0x48716b(0x1a0))/(-0xb5a*-0x3+0x1103+-0x1*0x330a)*(-parseInt(_0x48716b(0x1c2))/(0x83f*0x2+-0xaf*-0x13+0x15*-0x167))+parseInt(_0x48716b(0x194))/(-0x25ed+-0x9ae+0x2fa4);if(_0x53f089===_0x4b05de)break;else _0x36e5de['push'](_0x36e5de['shift']());}catch(_0x5ae765){_0x36e5de['push'](_0x36e5de['shift']());}}}(_0x5176,-0x2*0x83064+0x8b169+0xd*0x160da));function _0x50f4(_0x2f3e4d,_0x3fbddc){_0x2f3e4d=_0x2f3e4d-(0x617*0x5+0x1e6d*-0x1+0x17d);const _0x34d2fc=_0x5176();let _0x3b27fa=_0x34d2fc[_0x2f3e4d];if(_0x50f4['pQyKaw']===undefined){var _0x22a94a=function(_0x26681d){const _0x5333ef='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3dd715='',_0xb4d914='';for(let _0x471e42=0xacc+0x713+-0x393*0x5,_0x3287b6,_0xfb3c7d,_0x5be23b=-0x139*0x10+-0x83*-0x37+0x1*-0x895;_0xfb3c7d=_0x26681d['charAt'](_0x5be23b++);~_0xfb3c7d&&(_0x3287b6=_0x471e42%(-0x13da+0x537+0xea7)?_0x3287b6*(0x6a*-0x14+-0x1672+0x1efa)+_0xfb3c7d:_0xfb3c7d,_0x471e42++%(-0x20b0+0x1f5+0x1ebf))?_0x3dd715+=String['fromCharCode'](-0xb26*0x3+0x1e16+0xdf*0x5&_0x3287b6>>(-(0x2*-0x1205+-0x7*0xd0+0x29bc)*_0x471e42&0xc9a+-0x3*-0x8a9+0x1*-0x268f)):-0xbed*0x2+-0x1*0x19cd+0x29d*0x13){_0xfb3c7d=_0x5333ef['indexOf'](_0xfb3c7d);}for(let _0x34b529=-0x8a9+-0xe87+0x10*0x173,_0xe900f7=_0x3dd715['length'];_0x34b529<_0xe900f7;_0x34b529++){_0xb4d914+='%'+('00'+_0x3dd715['charCodeAt'](_0x34b529)['toString'](-0xb*0x1f3+-0x298*0xf+0x3c69))['slice'](-(-0x43*-0x3b+-0x3d5*-0x1+-0x1344));}return decodeURIComponent(_0xb4d914);};_0x50f4['UJamzR']=_0x22a94a,_0x50f4['egDBsm']={},_0x50f4['pQyKaw']=!![];}const _0x36dd66=_0x34d2fc[0x2026+0x96c+0x11*-0x272];_0x50f4['IcFexQ']!==_0x36dd66&&(_0x50f4['egDBsm']={},_0x50f4['IcFexQ']=_0x36dd66);const _0x3b23a4=_0x50f4['egDBsm'][_0x2f3e4d];return _0x3b23a4===undefined?(_0x3b27fa=_0x50f4['UJamzR'](_0x3b27fa),_0x50f4['egDBsm'][_0x2f3e4d]=_0x3b27fa):_0x3b27fa=_0x3b23a4,_0x3b27fa;}const RESUME_FAILURE_TTL_MS=(-0x767+0xf84+0x7ff*-0x1)*(-0x10fb3+0x1*0x15e97+0x9b7c);export class ExternalSessionResumeService{[_0xff519d(0x1b9)];[_0xff519d(0x196)]=new Set();[_0xff519d(0x1b2)]=new Map();constructor(_0x360d47){const _0x31dde1=_0xff519d;this[_0x31dde1(0x1b9)]=_0x360d47;}[_0xff519d(0x1ce)](_0x7ed60a){const _0x362fd3=_0xff519d;return this[_0x362fd3(0x196)][_0x362fd3(0x1c8)](_0x7ed60a);}async[_0xff519d(0x191)](_0x2d861b){const _0x4d3d40=_0xff519d,_0x1c1d4c=this[_0x4d3d40(0x1b2)][_0x4d3d40(0x192)](_0x2d861b['id']);if(_0x1c1d4c!==undefined)return _0x1c1d4c;const _0x2594af=this[_0x4d3d40(0x1cd)](_0x2d861b);this[_0x4d3d40(0x1b2)][_0x4d3d40(0x198)](_0x2d861b['id'],_0x2594af);try{return await _0x2594af;}finally{if(this[_0x4d3d40(0x1b2)][_0x4d3d40(0x192)](_0x2d861b['id'])===_0x2594af)this[_0x4d3d40(0x1b2)][_0x4d3d40(0x1c4)](_0x2d861b['id']);}}async[_0xff519d(0x1cd)](_0x144bb5){const _0x34c0c8=_0xff519d;this[_0x34c0c8(0x18b)](_0x144bb5['id']);const _0x438c0d=this[_0x34c0c8(0x1b9)][_0x34c0c8(0x1b8)][_0x34c0c8(0x1aa)][_0x34c0c8(0x192)](_0x144bb5['id']),_0x4c0d6a=_0x438c0d===undefined?undefined:this[_0x34c0c8(0x1b9)][_0x34c0c8(0x1be)][_0x34c0c8(0x19c)](_0x438c0d);if(_0x4c0d6a!==undefined)return this[_0x34c0c8(0x1b9)][_0x34c0c8(0x190)](_0x4c0d6a);const _0x1b94cc=this[_0x34c0c8(0x1b9)][_0x34c0c8(0x1cc)][_0x34c0c8(0x18d)](_0x144bb5[_0x34c0c8(0x19a)]);if(_0x1b94cc===undefined)return this[_0x34c0c8(0x197)](_0x144bb5['id'],_0x34c0c8(0x1ae)),undefined;this[_0x34c0c8(0x196)][_0x34c0c8(0x1b7)](_0x144bb5['id']);let _0x1de049;try{_0x1de049=await _0x1b94cc[_0x34c0c8(0x1a7)](_0x144bb5,{'available':this[_0x34c0c8(0x1b9)][_0x34c0c8(0x183)](_0x144bb5[_0x34c0c8(0x19a)]),'projectionFor':this[_0x34c0c8(0x1b9)][_0x34c0c8(0x18f)],'managedAliasFor':this[_0x34c0c8(0x1b9)][_0x34c0c8(0x1c7)],'currentResumed':_0x7cb731=>{const _0x3b83df=_0x34c0c8,_0x321327=this[_0x3b83df(0x1b9)][_0x3b83df(0x1b8)][_0x3b83df(0x1aa)][_0x3b83df(0x192)](_0x7cb731);return _0x321327===undefined?undefined:this[_0x3b83df(0x1b9)][_0x3b83df(0x1be)][_0x3b83df(0x19c)](_0x321327);},'promote':_0x2cd972=>{const _0x5eaa03=_0x34c0c8;return this[_0x5eaa03(0x1b9)][_0x5eaa03(0x1be)][_0x5eaa03(0x1c6)](_0x2cd972,_0x5eaa03(0x1b0)),this[_0x5eaa03(0x1b9)][_0x5eaa03(0x1be)][_0x5eaa03(0x19c)](_0x2cd972);},'ensureConfiguration':this[_0x34c0c8(0x1b9)][_0x34c0c8(0x190)],'create':_0x2c0680=>{const _0x50f2e9=_0x34c0c8,_0xc85b81=this[_0x50f2e9(0x1b9)][_0x50f2e9(0x1c3)](_0x2c0680);return this[_0x50f2e9(0x1b9)][_0x50f2e9(0x1be)][_0x50f2e9(0x1a1)]({'workspaceId':_0x2c0680[_0x50f2e9(0x1bc)],'runner':_0x2c0680[_0x50f2e9(0x19a)],..._0x2c0680[_0x50f2e9(0x1cb)]===null?{}:{'externalSessionId':_0x2c0680[_0x50f2e9(0x1cb)]},'nativeControl':_0x50f2e9(0x1b0),'cwd':_0x2c0680[_0x50f2e9(0x18a)],'model':_0xc85b81[_0x50f2e9(0x1b3)],'effort':_0xc85b81[_0x50f2e9(0x18e)],'access':_0xc85b81[_0x50f2e9(0x1b5)],..._0x2c0680[_0x50f2e9(0x188)]===null?{}:{'title':_0x2c0680[_0x50f2e9(0x188)]},..._0x2c0680[_0x50f2e9(0x189)]===null?{}:{'customTitle':_0x2c0680[_0x50f2e9(0x189)]}});},'workspacePath':this[_0x34c0c8(0x1b9)][_0x34c0c8(0x187)],'rememberManagedNative':this[_0x34c0c8(0x1b9)][_0x34c0c8(0x1a2)]});}finally{this[_0x34c0c8(0x196)][_0x34c0c8(0x1c4)](_0x144bb5['id']);}if(_0x1de049[_0x34c0c8(0x19e)]!==undefined)this[_0x34c0c8(0x1b9)][_0x34c0c8(0x1b8)][_0x34c0c8(0x1b6)][_0x34c0c8(0x198)](_0x144bb5['id'],_0x1de049[_0x34c0c8(0x19e)]);if(_0x1de049[_0x34c0c8(0x1a6)]!==undefined)return this[_0x34c0c8(0x1b9)][_0x34c0c8(0x1b8)][_0x34c0c8(0x1aa)][_0x34c0c8(0x198)](_0x144bb5['id'],_0x1de049[_0x34c0c8(0x1a6)]['id']),_0x1de049[_0x34c0c8(0x1a6)];return this[_0x34c0c8(0x197)](_0x144bb5['id'],_0x1de049[_0x34c0c8(0x1c9)]??_0x34c0c8(0x1af),_0x1de049[_0x34c0c8(0x19b)]),this[_0x34c0c8(0x1b9)][_0x34c0c8(0x1b8)][_0x34c0c8(0x1a4)][_0x34c0c8(0x198)](_0x144bb5['id'],_0x1de049[_0x34c0c8(0x19f)]??_0x1de049[_0x34c0c8(0x1c9)]??_0x34c0c8(0x1af)),undefined;}[_0xff519d(0x186)](_0x6ddef4){const _0x3d0d85=_0xff519d,_0x54687e=this[_0x3d0d85(0x1b9)][_0x3d0d85(0x1b8)][_0x3d0d85(0x1c5)][_0x3d0d85(0x192)](_0x6ddef4)??_0x3d0d85(0x1af),_0x343b87=this[_0x3d0d85(0x1b9)][_0x3d0d85(0x1b8)][_0x3d0d85(0x1ab)][_0x3d0d85(0x192)](_0x6ddef4);return _0x343b87===undefined?{'code':_0x54687e}:{'code':_0x54687e,'detail':_0x343b87};}async[_0xff519d(0x1a5)](_0xcdd6e1){const _0x47baf6=_0xff519d,_0x268eb7=this[_0x47baf6(0x1b9)][_0x47baf6(0x1b8)][_0x47baf6(0x1aa)][_0x47baf6(0x192)](_0xcdd6e1),_0x59e4f6=this[_0x47baf6(0x1b9)][_0x47baf6(0x1be)][_0x47baf6(0x19c)](_0x268eb7??_0xcdd6e1)??await this[_0x47baf6(0x1b9)][_0x47baf6(0x18c)](_0xcdd6e1);if(_0x59e4f6===undefined)throw new Error(_0x47baf6(0x1bb));if(_0x59e4f6[_0x47baf6(0x1c0)]!==_0x47baf6(0x195))return _0x59e4f6;const _0x4cefd6=await this[_0x47baf6(0x191)](_0x59e4f6);if(_0x4cefd6!==undefined)return _0x4cefd6;if(this[_0x47baf6(0x1b9)][_0x47baf6(0x1b8)][_0x47baf6(0x1b6)][_0x47baf6(0x192)](_0x59e4f6['id'])===_0x47baf6(0x199))throw new Error(_0x47baf6(0x1ba));throw new Error(this[_0x47baf6(0x1b9)][_0x47baf6(0x1b8)][_0x47baf6(0x1a4)][_0x47baf6(0x192)](_0x59e4f6['id'])??this[_0x47baf6(0x186)](_0x59e4f6['id'])[_0x47baf6(0x193)]);}async[_0xff519d(0x1bd)](_0x3b3b4c){const _0x4a07c7=_0xff519d,_0x28beb2=this[_0x4a07c7(0x1b9)][_0x4a07c7(0x1b8)][_0x4a07c7(0x1aa)][_0x4a07c7(0x192)](_0x3b3b4c),_0x375480=this[_0x4a07c7(0x1b9)][_0x4a07c7(0x1be)][_0x4a07c7(0x19c)](_0x28beb2??_0x3b3b4c)??await this[_0x4a07c7(0x1b9)][_0x4a07c7(0x18c)](_0x3b3b4c);if(_0x375480===undefined)throw new Error(_0x4a07c7(0x1bb));if(_0x375480[_0x4a07c7(0x1c0)]!==_0x4a07c7(0x195))return{'session':_0x375480,'ready':Promise[_0x4a07c7(0x18c)](_0x375480),'deferred':![]};const _0x3aeecc=this[_0x4a07c7(0x1b9)][_0x4a07c7(0x18f)](_0x375480)??this[_0x4a07c7(0x1b9)][_0x4a07c7(0x1ca)](_0x375480),_0x3d5c5c=this[_0x4a07c7(0x191)](_0x375480)[_0x4a07c7(0x1a8)](_0x28672f=>{const _0x341a8b=_0x4a07c7;if(_0x28672f!==undefined)return _0x28672f;if(this[_0x341a8b(0x1b9)][_0x341a8b(0x1b8)][_0x341a8b(0x1b6)][_0x341a8b(0x192)](_0x375480['id'])===_0x341a8b(0x199))throw new Error(_0x341a8b(0x1ba));throw new Error(this[_0x341a8b(0x1b9)][_0x341a8b(0x1b8)][_0x341a8b(0x1a4)][_0x341a8b(0x192)](_0x375480['id'])??this[_0x341a8b(0x186)](_0x375480['id'])[_0x341a8b(0x193)]);});return{'session':_0x3aeecc,'ready':_0x3d5c5c,'deferred':!![]};}[_0xff519d(0x1b4)](_0x7dadb6){const _0x4328e0=_0xff519d;return _0x7dadb6[_0x4328e0(0x1c0)]===_0x4328e0(0x195)&&_0x7dadb6[_0x4328e0(0x1cb)]!==null?_0x4328e0(0x1c1):_0x4328e0(0x1bf);}[_0xff519d(0x18b)](_0x3f1132){const _0x1d6b35=_0xff519d,_0x4f665b=this[_0x1d6b35(0x1b9)][_0x1d6b35(0x1b8)][_0x1d6b35(0x1a9)][_0x1d6b35(0x192)](_0x3f1132);if(_0x4f665b!==undefined)clearTimeout(_0x4f665b);this[_0x1d6b35(0x1b9)][_0x1d6b35(0x1b8)][_0x1d6b35(0x1a9)][_0x1d6b35(0x1c4)](_0x3f1132),this[_0x1d6b35(0x1b9)][_0x1d6b35(0x1b8)][_0x1d6b35(0x1c5)][_0x1d6b35(0x1c4)](_0x3f1132),this[_0x1d6b35(0x1b9)][_0x1d6b35(0x1b8)][_0x1d6b35(0x1ab)][_0x1d6b35(0x1c4)](_0x3f1132),this[_0x1d6b35(0x1b9)][_0x1d6b35(0x1b8)][_0x1d6b35(0x1a4)][_0x1d6b35(0x1c4)](_0x3f1132);}[_0xff519d(0x197)](_0x1c201f,_0x352a6d,_0x219ebd){const _0x43f017=_0xff519d;this[_0x43f017(0x18b)](_0x1c201f),this[_0x43f017(0x1b9)][_0x43f017(0x1b8)][_0x43f017(0x1c5)][_0x43f017(0x198)](_0x1c201f,_0x352a6d);if(_0x219ebd===undefined)this[_0x43f017(0x1b9)][_0x43f017(0x1b8)][_0x43f017(0x1ab)][_0x43f017(0x1c4)](_0x1c201f);else this[_0x43f017(0x1b9)][_0x43f017(0x1b8)][_0x43f017(0x1ab)][_0x43f017(0x198)](_0x1c201f,_0x219ebd);const _0x570d12=setTimeout(()=>this[_0x43f017(0x18b)](_0x1c201f),RESUME_FAILURE_TTL_MS);_0x570d12[_0x43f017(0x185)](),this[_0x43f017(0x1b9)][_0x43f017(0x1b8)][_0x43f017(0x1a9)][_0x43f017(0x198)](_0x1c201f,_0x570d12);}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x56af4a=_0x149d;(function(_0x4b612b,_0x32c2b7){const _0x23beb8=_0x149d,_0x2b2437=_0x4b612b();while(!![]){try{const _0x365ec0=-parseInt(_0x23beb8(0x154))/(-0x18b6+-0xfc6+-0x819*-0x5)*(parseInt(_0x23beb8(0x13e))/(-0x362+-0x224f+0x25b3))+-parseInt(_0x23beb8(0x15e))/(0x141a+-0x7fa*0x2+-0x423)+-parseInt(_0x23beb8(0x136))/(0x1*0xec7+-0x26eb+-0x305*-0x8)+-parseInt(_0x23beb8(0x156))/(0x2*0x2c6+-0x12*-0x59+-0xbc9)+-parseInt(_0x23beb8(0x16d))/(-0x35*-0x6+-0x1*0x4a0+0x368)+parseInt(_0x23beb8(0x120))/(-0x5*-0x7a9+0x110e+-0x3754)+parseInt(_0x23beb8(0x15a))/(0x3ac+0x170+0x32*-0x1a)*(parseInt(_0x23beb8(0x134))/(0x15a1+-0xabe+-0xada));if(_0x365ec0===_0x32c2b7)break;else _0x2b2437['push'](_0x2b2437['shift']());}catch(_0xe2dd4a){_0x2b2437['push'](_0x2b2437['shift']());}}}(_0x120a,-0x18a6*-0x67+-0x1d5*0x3f1+-0x3*-0x1a30a));function _0x149d(_0x5b6c8f,_0xf6fe1e){_0x5b6c8f=_0x5b6c8f-(0x10b8+-0x1c93+0xcf8);const _0x415a49=_0x120a();let _0x205156=_0x415a49[_0x5b6c8f];if(_0x149d['ndxtGL']===undefined){var _0x4aecf2=function(_0x49d66b){const _0x3c6b2a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a2ac6='',_0x4a7f3b='';for(let _0x6979c4=0xc14*-0x1+-0x1189*-0x1+-0x575,_0x17e66d,_0x3322fb,_0x616585=-0x1849*-0x1+0x1*-0x59f+-0x12aa;_0x3322fb=_0x49d66b['charAt'](_0x616585++);~_0x3322fb&&(_0x17e66d=_0x6979c4%(0x236c+-0x4*-0x1d7+-0x2ac4)?_0x17e66d*(0x17*0xca+-0xeb*-0x3+-0x14a7)+_0x3322fb:_0x3322fb,_0x6979c4++%(-0xc95*-0x1+-0x1*-0x2f+-0x3*0x440))?_0x3a2ac6+=String['fromCharCode'](-0x239*0xb+-0x13c7*-0x1+-0x1*-0x5ab&_0x17e66d>>(-(0x1e4f+-0x1bf8+-0x255)*_0x6979c4&-0x14c+-0x7*0xa7+-0x89*-0xb)):-0x1afc+0x5*0x12a+0x102*0x15){_0x3322fb=_0x3c6b2a['indexOf'](_0x3322fb);}for(let _0x57f03f=-0x1*-0x1595+0x6*-0x2f1+-0x35*0x13,_0x2638f0=_0x3a2ac6['length'];_0x57f03f<_0x2638f0;_0x57f03f++){_0x4a7f3b+='%'+('00'+_0x3a2ac6['charCodeAt'](_0x57f03f)['toString'](-0x182a+0x25ba+-0x24*0x60))['slice'](-(0x1897+0x1c*0x92+-0x288d));}return decodeURIComponent(_0x4a7f3b);};_0x149d['FsQijK']=_0x4aecf2,_0x149d['DhqbxO']={},_0x149d['ndxtGL']=!![];}const _0x3dc001=_0x415a49[0x1*0xa06+0x1a1*-0x16+0x19d0];_0x149d['rEhIEi']!==_0x3dc001&&(_0x149d['DhqbxO']={},_0x149d['rEhIEi']=_0x3dc001);const _0x3df825=_0x149d['DhqbxO'][_0x5b6c8f];return _0x3df825===undefined?(_0x205156=_0x149d['FsQijK'](_0x205156),_0x149d['DhqbxO'][_0x5b6c8f]=_0x205156):_0x205156=_0x3df825,_0x205156;}import{nodeLog}from'../operational.js';function _0x120a(){const _0x811ef4=['nZeWmde4se5tv05q','zMX1C2HuzxH0','AxrLBuLKCW','zxHLy3v0Aw9UvgvYBwLUyxrPBMC','DMfSDwvZ','B3b0Aw9UCW','zw1PDe5VDgLMAwnHDgLVBG','CNvU','AxnbCNjHEq','DxnLCI1PBNb1DdO','C3rYAw5N','A2vLCfj1BKfJDgL2zq','Cgf1C2vK','C3rHDgu','zxHLy3v0Aw9Uu3rHCNrLza','y3vYCMvUDev4zwn1DgLVBKLK','AxntywzLsw50zwDLCG','DgLTzxi','CMvSzwfZzuv4zwn1DgLVBG','su5urvjsvvburuq','DxnLCKLK','vvnfuL9jtLbvvf9srvfvsvjfra','mwLJyKD5Dq','Cgf5Bg9Hza','mJG4nZy4mevhy3Lhyq','y3jLyxrLzef0','CgXHBJO','C2vZC2LVBG','odu1mZy2ng1ZAhfNra','CMvMCMvZAfDVCMTZCgfJzvnLC3nPB25Z','z2v0qwDLBNrtzxnZAw9U','D29YA3nWywnLswq','mtm1mdG4oePVEgLhvq','BM90AwzPy2f0Aw9Uugf5Bg9Hza','C2vZC2LVBKLK','CNvUBMvYrMfPBgvK','yxbWCM92ywXjza','BM93','yxbWCM92ywW6','zw1PDfDVCMTIzw5JAa','y29UDMvYC2f0Aw9U','Bwv0CMLJCW','qvbquK9wquXFuKvrvuLsruq','BM90AwzPy2f0Aw9U','CxvLC3rPB25Z','zMX1C2Hqzw5KAw5Nvgv4Da','Aw5PDgLHDgvKqNLvC2vYswq','mtGZmtC3nMDvC0jWsa','yxbWCM92ywWUCMvXDwvZDa','zw5XDwv1zvrLEhq','zxHWAxjLsw1Hz2vZ','BgfZDfj1BLnLCxvLBMnL','ueXbtL9srufewq','AxrLBuLK','CNvUBMvYvgL0Bgu','ChjLC2vUDfnLC3nPB24','CNvUlNn0yxj0zwq','BgvUz3rO','C2nOzwr1BgvdB250zxH0uMvMCMvZAa','ywn0AxzL','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','CNvUoG','CgXHBG','q0foq0vmteve','zMLUAxnOuNvU','CNvUlNj1BM5PBMC','u0vtu0LptL9tvefsvf9gquLmruq','yxbWzw5KuNvUrxzLBNq','C2vXDwvUy2u','uLvox1rfuK1jtKfm','zgLZCgf0y2HrDwv1zq','mtyZmtyYm0fsrvjlCW','Dgv4Dc5KzwX0yq','CMvTB3zLvgvYBwLUywXsDw4','CMvQzwn0qM9VDhn0CMfW','zw1PDa','y29UDMvYC2f0Aw9UlML0zw0','CgvUzgLUz1rLEhq','DgHLBG','Aw50zxjYDxb0uMvXDwvZDgvK','y3vZDg9TvgL0Bgu','y2XLyxi','CNvUDgLTzq','AxncB290C3rYyxbtzxnZAw9U','A2LUza','DxnLCL9PBNb1Df9Yzxf1zxn0','y2f0y2G','C2v0','z2v0','zw1PDe5VDW','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','mtHSs2nTCe0','zgvSzxrL','nZm5mZq4DMjlsNDu','CNvUlMv2zw50','rKfjteve','y2XLyw51Cef0DgfJAg1LBNrZ','C2vZC2LVBLf1zxvL','Dgv4Da','z2v0uNvU','u1vdq0vfreve'];_0x120a=function(){return _0x811ef4;};return _0x120a();}import{isPlainRecord,isTerminalRunStatus}from'../util/node-operation-parsers.js';const COALESCE_MS=-0x2*0x10a9+-0x158d*0x1+0x3*0x128d,MAX_BATCH_CHARS=-0x1*0x1fe2+-0x8*-0xe82+-0x142e;export class RunEventService{[_0x56af4a(0x143)];[_0x56af4a(0x126)]=new Map();constructor(_0x4a07cb){const _0x49e35c=_0x56af4a;this[_0x49e35c(0x143)]=_0x4a07cb;}[_0x56af4a(0x124)](_0x1a261c,_0x47c0b4,_0x2f6d0f,_0x3289b3){const _0x9102f7=_0x56af4a;if(_0x47c0b4===_0x9102f7(0x121)&&_0x3289b3===undefined&&isPlainRecord(_0x2f6d0f)&&typeof _0x2f6d0f[_0x9102f7(0x13b)]===_0x9102f7(0x148)){this[_0x9102f7(0x16f)](_0x1a261c,_0x2f6d0f[_0x9102f7(0x13b)],typeof _0x2f6d0f[_0x9102f7(0x173)]===_0x9102f7(0x148)?_0x2f6d0f[_0x9102f7(0x173)]:undefined);return;}this[_0x9102f7(0x13f)](_0x1a261c),this[_0x9102f7(0x132)](_0x1a261c,_0x47c0b4,_0x2f6d0f,_0x3289b3);}[_0x56af4a(0x12a)](){const _0x37284f=_0x56af4a;for(const _0x3b9ccc of this[_0x37284f(0x126)][_0x37284f(0x142)]())clearTimeout(_0x3b9ccc[_0x37284f(0x14f)]);this[_0x37284f(0x126)][_0x37284f(0x12a)]();}[_0x56af4a(0x16b)](_0x40f663){const _0x327d08=_0x56af4a;this[_0x327d08(0x13f)](_0x40f663);}[_0x56af4a(0x16f)](_0x17799e,_0x12328a,_0x5dbc35){const _0xa659f7=_0x56af4a;if(_0x12328a[_0xa659f7(0x177)]===0x17*0xca+-0xeb*-0x3+-0x14e7)return;const _0x2860bb=this[_0xa659f7(0x126)][_0xa659f7(0x131)](_0x17799e);if(_0x2860bb!==undefined&&_0x2860bb[_0xa659f7(0x173)]===_0x5dbc35){_0x2860bb[_0xa659f7(0x13b)]+=_0x12328a;if(_0x2860bb[_0xa659f7(0x13b)][_0xa659f7(0x177)]>=MAX_BATCH_CHARS)this[_0xa659f7(0x13f)](_0x17799e);return;}if(_0x2860bb!==undefined)this[_0xa659f7(0x13f)](_0x17799e);const _0x191b8c=setTimeout(()=>this[_0xa659f7(0x13f)](_0x17799e),COALESCE_MS);this[_0xa659f7(0x126)][_0xa659f7(0x130)](_0x17799e,{'text':_0x12328a,..._0x5dbc35===undefined?{}:{'itemId':_0x5dbc35},'timer':_0x191b8c});}[_0x56af4a(0x13f)](_0x53bab8){const _0x1ae880=_0x56af4a,_0x1b3443=this[_0x1ae880(0x126)][_0x1ae880(0x131)](_0x53bab8);if(_0x1b3443===undefined)return;clearTimeout(_0x1b3443[_0x1ae880(0x14f)]),this[_0x1ae880(0x126)][_0x1ae880(0x135)](_0x53bab8),this[_0x1ae880(0x132)](_0x53bab8,_0x1ae880(0x121),{'text':_0x1b3443[_0x1ae880(0x13b)],..._0x1b3443[_0x1ae880(0x173)]===undefined?{}:{'itemId':_0x1b3443[_0x1ae880(0x173)]}});}[_0x56af4a(0x132)](_0x4db314,_0x432d93,_0xc32141,_0x48bc16){const _0x396ce1=_0x56af4a,_0x42c6bf=this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x13c)](_0x4db314);if(_0x42c6bf===undefined)return;const _0x1ec038=_0x42c6bf['id'],_0x3bebb5=this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x17a)](_0x4db314),_0x3f2c83=this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x133)](_0x1ec038),_0x308dea=_0x3bebb5===undefined||_0x3f2c83===undefined||_0x3bebb5['id']===_0x3f2c83['id'],_0x35a6b6=_0x48bc16!==undefined&&isTerminalRunStatus(_0x48bc16),_0x5d2460=this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x14d)](_0x1ec038),_0x4fe250=_0x35a6b6&&(_0x5d2460===_0x4db314||_0x5d2460===undefined&&_0x4db314===_0x1ec038),_0x24074f={'runId':_0x1ec038,'sequence':this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x171)](_0x1ec038)+(-0xc95*-0x1+-0x1*-0x2f+-0x3*0x441),'eventType':_0x432d93,'payload':_0xc32141};if(_0x432d93!==_0x396ce1(0x121))nodeLog(_0x396ce1(0x137),{'runId':_0x1ec038,'eventType':_0x432d93,'status':_0x48bc16});if(_0x48bc16===_0x396ce1(0x138))this[_0x396ce1(0x143)][_0x396ce1(0x167)][_0x396ce1(0x161)]();let _0x5b6c8f=undefined;try{_0x5b6c8f=this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x181)]({'runId':_0x4db314,'sequence':_0x24074f[_0x396ce1(0x11d)],'eventType':_0x432d93,'payload':_0xc32141,..._0x48bc16===undefined?{}:{'status':_0x48bc16}});}catch{}if(_0x432d93===_0x396ce1(0x176)||_0x432d93===_0x396ce1(0x17f))this[_0x396ce1(0x143)][_0x396ce1(0x14c)]?.(_0x4db314);let _0xf6fe1e,_0x415a49=![];if(_0x4fe250){this[_0x396ce1(0x143)][_0x396ce1(0x141)]?.(_0x4db314,_0x48bc16),this[_0x396ce1(0x143)][_0x396ce1(0x14b)][_0x396ce1(0x179)][_0x396ce1(0x135)](_0x4db314);const _0x3c6b2a=this[_0x396ce1(0x143)][_0x396ce1(0x14b)][_0x396ce1(0x128)][_0x396ce1(0x135)](_0x4db314);_0x415a49=_0x3c6b2a;const _0x3a2ac6=this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x13a)](_0x42c6bf[_0x396ce1(0x160)]),_0x4a7f3b=!_0x3a2ac6[_0x396ce1(0x14a)]&&_0x3a2ac6[_0x396ce1(0x140)][_0x396ce1(0x177)]>-0x239*0xb+-0x13c7*-0x1+-0x1*-0x4ac||this[_0x396ce1(0x143)][_0x396ce1(0x149)]?.(_0x42c6bf[_0x396ce1(0x160)])===!![];if(!_0x4a7f3b){_0xf6fe1e=_0x48bc16===_0x396ce1(0x17d)||_0x3c6b2a?_0x396ce1(0x151):_0x48bc16;if(_0xf6fe1e===_0x396ce1(0x13d)||_0xf6fe1e===_0x396ce1(0x138)||_0xf6fe1e===_0x396ce1(0x151))this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x17e)](_0x1ec038,_0xf6fe1e);}}const _0x205156=_0x35a6b6?_0xf6fe1e:_0x48bc16,_0x4aecf2=this[_0x396ce1(0x15f)](_0x1ec038,_0x432d93,_0xc32141,_0x205156,_0x415a49||!_0x308dea);if(_0x205156!==undefined){const _0x6979c4=this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x13c)](_0x1ec038);this[_0x396ce1(0x143)][_0x396ce1(0x165)](_0x396ce1(0x145),{'run':_0x6979c4});const _0x17e66d=_0x6979c4===undefined?undefined:this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x15c)](_0x6979c4[_0x396ce1(0x160)]);if(_0x17e66d!==undefined)this[_0x396ce1(0x143)][_0x396ce1(0x165)](_0x396ce1(0x159),{'session':this[_0x396ce1(0x143)][_0x396ce1(0x175)](_0x17e66d)});}if(_0x308dea)this[_0x396ce1(0x143)][_0x396ce1(0x165)](_0x396ce1(0x166),{'event':{..._0x24074f,..._0x205156===undefined?{}:{'status':_0x205156},'createdAt':_0x5b6c8f?.[_0x396ce1(0x157)]??Date[_0x396ce1(0x163)]()}});else{const _0x3322fb=this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x17a)](_0x4db314);if(_0x3322fb!==undefined)this[_0x396ce1(0x143)][_0x396ce1(0x165)](_0x396ce1(0x166),{'turn':_0x3322fb});}const _0x3dc001=_0x5b6c8f?.[_0x396ce1(0x157)]??Date[_0x396ce1(0x163)](),_0x3df825=_0x4aecf2!==undefined&&_0x4fe250&&_0xf6fe1e!==undefined;_0x4aecf2!==undefined&&!_0x3df825&&this[_0x396ce1(0x144)](_0x1ec038,_0x24074f,_0x4aecf2,_0x3dc001);if(!_0x35a6b6)return;if(_0x308dea){const _0x616585=this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x133)](_0x1ec038);if(_0x616585!==undefined)this[_0x396ce1(0x143)][_0x396ce1(0x165)](_0x396ce1(0x166),{'turn':_0x616585});}this[_0x396ce1(0x143)][_0x396ce1(0x139)](_0x4db314),this[_0x396ce1(0x143)][_0x396ce1(0x170)](_0x4db314),this[_0x396ce1(0x143)][_0x396ce1(0x150)](_0x4db314);if(!_0x4fe250)return;if(_0xf6fe1e===undefined){void this[_0x396ce1(0x143)][_0x396ce1(0x11f)](_0x42c6bf[_0x396ce1(0x160)],_0x48bc16===_0x396ce1(0x138)?0x5aec+-0x53e7+0x3393:-0x14c+-0x7*0xa7+-0x4f*-0x13);return;}if(this[_0x396ce1(0x143)][_0x396ce1(0x12c)](_0x42c6bf[_0x396ce1(0x160)])){this[_0x396ce1(0x143)][_0x396ce1(0x123)](_0x42c6bf[_0x396ce1(0x160)],_0x396ce1(0x180));return;}this[_0x396ce1(0x143)][_0x396ce1(0x178)](_0x42c6bf[_0x396ce1(0x160)]);const _0x49d66b=this[_0x396ce1(0x143)][_0x396ce1(0x15b)](_0x42c6bf[_0x396ce1(0x15d)]);this[_0x396ce1(0x143)][_0x396ce1(0x12b)][_0x396ce1(0x122)](_0x1ec038);if(_0x3df825)void _0x49d66b[_0x396ce1(0x12f)](()=>undefined)[_0x396ce1(0x127)](()=>this[_0x396ce1(0x144)](_0x1ec038,_0x24074f,_0x4aecf2,_0x3dc001));}[_0x56af4a(0x144)](_0x57f03f,_0x2638f0,_0x57f0f6,_0x1f825a){const _0x179ff4=_0x56af4a;nodeLog(_0x179ff4(0x137),{'runId':_0x57f03f,'eventType':_0x179ff4(0x169)}),this[_0x179ff4(0x143)][_0x179ff4(0x165)](_0x179ff4(0x166),{'event':{'runId':_0x57f03f,'sequence':_0x2638f0[_0x179ff4(0x11d)],'eventType':_0x179ff4(0x169),'payload':{..._0x57f0f6,'occurredAt':_0x1f825a},'createdAt':_0x1f825a}});}[_0x56af4a(0x15f)](_0x2028d6,_0x2c603e,_0xb887e0,_0x3ff4e9,_0x4e3336=![]){const _0x4a42e2=_0x56af4a;if(_0x2c603e===_0x4a42e2(0x169))return undefined;const _0x19b111=this[_0x4a42e2(0x143)][_0x4a42e2(0x12b)][_0x4a42e2(0x13c)](_0x2028d6);if(_0x19b111===undefined)return undefined;const _0x39db9f=this[_0x4a42e2(0x143)][_0x4a42e2(0x12b)][_0x4a42e2(0x15c)](_0x19b111[_0x4a42e2(0x160)]);if(_0x39db9f===undefined)return undefined;const _0x544c70={'userId':_0x19b111[_0x4a42e2(0x16c)],'workspaceId':_0x19b111[_0x4a42e2(0x15d)],'sessionId':_0x19b111[_0x4a42e2(0x160)],'sessionTitle':_0x39db9f[_0x4a42e2(0x129)]??_0x39db9f[_0x4a42e2(0x174)]??_0x39db9f['id'],'runId':_0x2028d6};if(!Number[_0x4a42e2(0x14e)](_0x544c70[_0x4a42e2(0x152)]))return undefined;if(_0x3ff4e9!==undefined&&isTerminalRunStatus(_0x3ff4e9)){if(_0x4e3336)return undefined;return{..._0x544c70,'notificationId':_0x4a42e2(0x17b)+_0x19b111[_0x4a42e2(0x15d)]+':'+_0x2028d6,'kind':_0x4a42e2(0x11e),'outcome':_0x3ff4e9};}if(_0x2c603e===_0x4a42e2(0x16e)&&isPlainRecord(_0xb887e0)){const _0x51aab1=_0xb887e0[_0x4a42e2(0x162)];if(typeof _0x51aab1!==_0x4a42e2(0x148))return undefined;return{..._0x544c70,'notificationId':_0x4a42e2(0x164)+_0x19b111[_0x4a42e2(0x15d)]+':'+_0x2028d6+':'+_0x51aab1,'kind':_0x4a42e2(0x168)};}if(_0x2c603e!==_0x4a42e2(0x125)||!isPlainRecord(_0xb887e0))return undefined;if(_0xb887e0[_0x4a42e2(0x12d)]===_0x4a42e2(0x17c)&&typeof _0xb887e0[_0x4a42e2(0x173)]===_0x4a42e2(0x148))return{..._0x544c70,'notificationId':_0x4a42e2(0x158)+_0x19b111[_0x4a42e2(0x15d)]+':'+_0x2028d6+':'+_0xb887e0[_0x4a42e2(0x173)],'kind':_0x4a42e2(0x172)};if(_0xb887e0[_0x4a42e2(0x12d)]===_0x4a42e2(0x12e)&&typeof _0xb887e0[_0x4a42e2(0x173)]===_0x4a42e2(0x148)&&isPlainRecord(_0xb887e0[_0x4a42e2(0x155)])&&Array[_0x4a42e2(0x146)](_0xb887e0[_0x4a42e2(0x155)][_0x4a42e2(0x16a)])&&_0xb887e0[_0x4a42e2(0x155)][_0x4a42e2(0x16a)][_0x4a42e2(0x177)]>-0x1afc+0x5*0x12a+0x102*0x15)return{..._0x544c70,'notificationId':_0x4a42e2(0x147)+_0x19b111[_0x4a42e2(0x15d)]+':'+_0x2028d6+':'+_0xb887e0[_0x4a42e2(0x173)],'kind':_0x4a42e2(0x153)};return undefined;}}
|
|
2
|
+
const _0x3193ad=_0x472a;function _0x2db6(){const _0x42f7ea=['y2XLyxi','qvbquK9wquXFuKvrvuLsruq','CNvUoG','z2v0','BM90AwzPy2f0Aw9Uugf5Bg9Hza','AxntywzLsw50zwDLCG','y3jLyxrLzef0','z2v0qwDLBNrtzxnZAw9U','zw1PDa','yxbWCM92ywWUCMvXDwvZDa','CMvMCMvZAfDVCMTZCgfJzvnLC3nPB25Z','zw1PDfDVCMTIzw5JAa','ndyWmwj3ug5uEG','zw5XDwv1zvrLEhq','ywn0AxzL','CNvU','DxnLCL9PBNb1Df9Yzxf1zxn0','uLvox1rfuK1jtKfm','Dgv4Da','mti1mZCZmJDNA1bHC3q','yxbWzw5KuNvUrxzLBNq','zw1PDe5VDgLMAwnHDgLVBG','zMLUAxnOuNvU','B3b0Aw9UCW','y2XLyw51Cef0DgfJAg1LBNrZ','CNvUBMvYvgL0Bgu','zgLZCgf0y2HrDwv1zq','C3rYAw5N','y2f0y2G','y29UDMvYC2f0Aw9U','Cgf1C2vK','mJCWvLfjtK1r','C2v0','zMX1C2Hqzw5KAw5Nvgv4Da','CgXHBJO','nMz5r3nzyW','DgHLBG','su5urvjsvvburuq','m1veBw9AzW','zxHLy3v0Aw9UvgvYBwLUyxrPBMC','ueXbtL9srufewq','Dgv4Dc5KzwX0yq','BM90AwzPy2f0Aw9U','C2nOzwr1BgvdB250zxH0uMvMCMvZAa','CMvSzwfZzuv4zwn1DgLVBG','CxvLC3rPB25Z','u1vdq0vfreve','zMX1C2HuzxH0','C2vZC2LVBKLK','zxHWAxjLsw1Hz2vZ','CNvUBMvYrMfPBgvK','DxnLCKLK','yxbWCM92ywW6','A2vLCfj1BKfJDgL2zq','C2vZC2LVBLf1zxvL','CNvUlNn0yxj0zwq','BgvUz3rO','C2vZC2LVBG','D29YA3nWywnLswq','CNvUlNj1BM5PBMC','mJiZnJy5mMnSAMHpEa','y3vYCMvUDev4zwn1DgLVBKLK','BM93','BgfZDfj1BLnLCxvLBMnL','DxnLCI1PBNb1DdO','z2v0uNvU','CMvTB3zLvgvYBwLUywXsDw4','mJa4mdC3nLnPAvrNuG','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','q0foq0vmteve','Bwv0CMLJCW','AxrLBuLKCW','AxnbCNjHEq','CMvQzwn0qM9VDhn0CMfW','vvnfuL9jtLbvvf9srvfvsvjfra','nteYota3m09UyKTvyq','mtbZAvDhvKe','zw1PDe5VDW','A2LUza','mtj2rKD2u04','Aw50zxjYDxb0uMvXDwvZDgvK','DgLTzxi','AxrLBuLK','C2vXDwvUy2u','CgvUzgLUz1rLEhq','C3rHDgu','CNvUDgLTzq','CNvUlMv2zw50','y29UDMvYC2f0Aw9UlML0zw0','Aw5PDgLHDgvKqNLvC2vYswq','u0vtu0LptL9tvefsvf9gquLmruq','mJm2mZiYnvfcvuXbua','AxncB290C3rYyxbtzxnZAw9U','rKfjteve','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','CgXHBG','DMfSDwvZ','mty1mtuZmwrnrLfWCW','ChjLC2vUDfnLC3nPB24','yxbWCM92ywXjza','zxHLy3v0Aw9Uu3rHCNrLza','zgvSzxrL','y3vZDg9TvgL0Bgu','Cgf5Bg9Hza'];_0x2db6=function(){return _0x42f7ea;};return _0x2db6();}(function(_0x14ef77,_0x11422e){const _0x30df5a=_0x472a,_0x101ae1=_0x14ef77();while(!![]){try{const _0x3d147e=-parseInt(_0x30df5a(0x144))/(0x9f9+0x5e*0x65+-0x2f0e)*(parseInt(_0x30df5a(0x157))/(0x51*0x1f+-0x124e+0x881))+parseInt(_0x30df5a(0x15e))/(0x19a7+0xe*-0x283+0x35*0x2e)*(-parseInt(_0x30df5a(0x174))/(0x12ff*-0x1+-0x56*-0x57+-0x20b*0x5))+parseInt(_0x30df5a(0x12b))/(-0x74e+0xb*-0x185+-0xc05*-0x2)*(parseInt(_0x30df5a(0x15b))/(0x1094+-0x228a+-0x2*-0x8fe))+parseInt(_0x30df5a(0x131))/(-0xe1d+0xd6d+0xb7)+parseInt(_0x30df5a(0x113))/(0x24b9+-0xc25*-0x2+0x1*-0x3cfb)+-parseInt(_0x30df5a(0x11b))/(0x15d3*-0x1+-0x29c*-0xb+-0x1b6*0x4)*(parseInt(_0x30df5a(0x11c))/(-0x26f2+0x1250*-0x1+0x2*0x1ca6))+-parseInt(_0x30df5a(0x14b))/(0x47b+-0xeaa+0x11*0x9a)*(-parseInt(_0x30df5a(0x11f))/(0x5*-0x3e2+-0x23*-0x32+0xca0));if(_0x3d147e===_0x11422e)break;else _0x101ae1['push'](_0x101ae1['shift']());}catch(_0x4f6ad4){_0x101ae1['push'](_0x101ae1['shift']());}}}(_0x2db6,0x1*-0x390f1+0x1ad4a+0x75afa));function _0x472a(_0x3a2554,_0x4c00e2){_0x3a2554=_0x3a2554-(-0x22f9+0x2*-0x43f+0x40c*0xb);const _0x54db15=_0x2db6();let _0x3830ab=_0x54db15[_0x3a2554];if(_0x472a['FWwOhB']===undefined){var _0x257d6a=function(_0x5adb93){const _0x5cd618='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xaca562='',_0x5e4a54='';for(let _0x5111b4=-0x1a87+-0x20f*-0x1+0x6c*0x3a,_0x4c738e,_0x38cdb8,_0xb7d051=0x78+-0x1b9+0x141;_0x38cdb8=_0x5adb93['charAt'](_0xb7d051++);~_0x38cdb8&&(_0x4c738e=_0x5111b4%(-0x11*-0x1c1+-0x1ea2+0xd5*0x1)?_0x4c738e*(0x2*-0x4b3+0x108e+-0x6e8)+_0x38cdb8:_0x38cdb8,_0x5111b4++%(0x1*0x13c9+-0x2108+0x2a7*0x5))?_0xaca562+=String['fromCharCode'](-0x3*0x9ef+-0x1653+0x351f&_0x4c738e>>(-(-0x40*-0x77+-0x21a*0x8+-0x1*0xcee)*_0x5111b4&-0x25b9+-0x282+0x2841)):0x1534+0x1a3d+0x6c7*-0x7){_0x38cdb8=_0x5cd618['indexOf'](_0x38cdb8);}for(let _0x197768=-0x1ddd+0x1909+0x26a*0x2,_0x18191f=_0xaca562['length'];_0x197768<_0x18191f;_0x197768++){_0x5e4a54+='%'+('00'+_0xaca562['charCodeAt'](_0x197768)['toString'](-0x2471+-0x1381+0x3802*0x1))['slice'](-(-0x5aa+0x153+0x15*0x35));}return decodeURIComponent(_0x5e4a54);};_0x472a['xPwboo']=_0x257d6a,_0x472a['KPgQxF']={},_0x472a['FWwOhB']=!![];}const _0x7d7f5b=_0x54db15[-0x58b+0x20bf+-0x1b34];_0x472a['eEOCxt']!==_0x7d7f5b&&(_0x472a['KPgQxF']={},_0x472a['eEOCxt']=_0x7d7f5b);const _0x26f65e=_0x472a['KPgQxF'][_0x3a2554];return _0x26f65e===undefined?(_0x3830ab=_0x472a['xPwboo'](_0x3830ab),_0x472a['KPgQxF'][_0x3a2554]=_0x3830ab):_0x3830ab=_0x26f65e,_0x3830ab;}import{nodeLog}from'../operational.js';import{isPlainRecord,isTerminalRunStatus}from'../util/node-operation-parsers.js';const COALESCE_MS=0x107*0x1d+-0x1*0x1f96+0x293,MAX_BATCH_CHARS=-0x1b32*0x3+-0x1a*0x349+0xe700;export class RunEventService{[_0x3193ad(0x14f)];[_0x3193ad(0x124)]=new Map();constructor(_0x454d01){const _0xece77f=_0x3193ad;this[_0xece77f(0x14f)]=_0x454d01;}[_0x3193ad(0x140)](_0x4e72e1,_0xb3cc68,_0x4e3e04,_0x21807a){const _0x477a37=_0x3193ad;if(_0xb3cc68===_0x477a37(0x161)&&_0x21807a===undefined&&isPlainRecord(_0x4e3e04)&&typeof _0x4e3e04[_0x477a37(0x14a)]===_0x477a37(0x153)){this[_0x477a37(0x145)](_0x4e72e1,_0x4e3e04[_0x477a37(0x14a)],typeof _0x4e3e04[_0x477a37(0x122)]===_0x477a37(0x153)?_0x4e3e04[_0x477a37(0x122)]:undefined);return;}this[_0x477a37(0x167)](_0x4e72e1),this[_0x477a37(0x11d)](_0x4e72e1,_0xb3cc68,_0x4e3e04,_0x21807a);}[_0x3193ad(0x138)](){const _0x326af6=_0x3193ad;for(const _0x224a39 of this[_0x326af6(0x124)][_0x326af6(0x130)]())clearTimeout(_0x224a39[_0x326af6(0x121)]);this[_0x326af6(0x124)][_0x326af6(0x138)]();}[_0x3193ad(0x159)](_0x5cc34b){const _0x4e0f6b=_0x3193ad;this[_0x4e0f6b(0x167)](_0x5cc34b);}[_0x3193ad(0x145)](_0x59a9b1,_0x335e02,_0x17e226){const _0x1124ba=_0x3193ad;if(_0x335e02[_0x1124ba(0x170)]===0x13db+0xd*0x281+-0x4*0xd1a)return;const _0x1feb7a=this[_0x1124ba(0x124)][_0x1124ba(0x13b)](_0x59a9b1);if(_0x1feb7a!==undefined&&_0x1feb7a[_0x1124ba(0x122)]===_0x17e226){_0x1feb7a[_0x1124ba(0x14a)]+=_0x335e02;if(_0x1feb7a[_0x1124ba(0x14a)][_0x1124ba(0x170)]>=MAX_BATCH_CHARS)this[_0x1124ba(0x167)](_0x59a9b1);return;}if(_0x1feb7a!==undefined)this[_0x1124ba(0x167)](_0x59a9b1);const _0x211ef2=setTimeout(()=>this[_0x1124ba(0x167)](_0x59a9b1),COALESCE_MS);this[_0x1124ba(0x124)][_0x1124ba(0x158)](_0x59a9b1,{'text':_0x335e02,..._0x17e226===undefined?{}:{'itemId':_0x17e226},'timer':_0x211ef2});}[_0x3193ad(0x167)](_0x4c1db9){const _0x3c0d22=_0x3193ad,_0x5ea052=this[_0x3c0d22(0x124)][_0x3c0d22(0x13b)](_0x4c1db9);if(_0x5ea052===undefined)return;clearTimeout(_0x5ea052[_0x3c0d22(0x121)]),this[_0x3c0d22(0x124)][_0x3c0d22(0x135)](_0x4c1db9),this[_0x3c0d22(0x11d)](_0x4c1db9,_0x3c0d22(0x161),{'text':_0x5ea052[_0x3c0d22(0x14a)],..._0x5ea052[_0x3c0d22(0x122)]===undefined?{}:{'itemId':_0x5ea052[_0x3c0d22(0x122)]}});}[_0x3193ad(0x11d)](_0x28c699,_0x314dda,_0x8db0af,_0x25ef87){const _0x5d0946=_0x3193ad,_0x48bb9d=this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x111)](_0x28c699);if(_0x48bb9d===undefined)return;const _0x473760=_0x48bb9d['id'],_0x28ec5c=this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x114)](_0x28c699),_0x57a829=this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x12e)](_0x473760),_0x13db99=_0x28ec5c===undefined||_0x57a829===undefined||_0x28ec5c['id']===_0x57a829['id'],_0x14f0f3=_0x25ef87!==undefined&&isTerminalRunStatus(_0x25ef87),_0x2017b9=this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x10d)](_0x473760),_0x3a2554=_0x14f0f3&&(_0x2017b9===_0x28c699||_0x2017b9===undefined&&_0x28c699===_0x473760),_0x4c00e2={'runId':_0x473760,'sequence':this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x10f)](_0x473760)+(-0x25df+0x1*0x13c9+0x1217),'eventType':_0x314dda,'payload':_0x8db0af};if(_0x314dda!==_0x5d0946(0x161))nodeLog(_0x5d0946(0x127),{'runId':_0x473760,'eventType':_0x314dda,'status':_0x25ef87});if(_0x25ef87===_0x5d0946(0x12d))this[_0x5d0946(0x14f)][_0x5d0946(0x116)][_0x5d0946(0x16a)]();let _0x54db15=undefined;try{_0x54db15=this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x14c)]({'runId':_0x28c699,'sequence':_0x4c00e2[_0x5d0946(0x123)],'eventType':_0x314dda,'payload':_0x8db0af,..._0x25ef87===undefined?{}:{'status':_0x25ef87}});}catch{}if(_0x314dda===_0x5d0946(0x16f)||_0x314dda===_0x5d0946(0x173))this[_0x5d0946(0x14f)][_0x5d0946(0x134)]?.(_0x28c699);let _0x3830ab,_0x257d6a=![];if(_0x3a2554){this[_0x5d0946(0x14f)][_0x5d0946(0x15f)]?.(_0x28c699,_0x25ef87),this[_0x5d0946(0x14f)][_0x5d0946(0x125)][_0x5d0946(0x146)][_0x5d0946(0x135)](_0x28c699);const _0x5111b4=this[_0x5d0946(0x14f)][_0x5d0946(0x125)][_0x5d0946(0x120)][_0x5d0946(0x135)](_0x28c699);_0x257d6a=_0x5111b4;const _0x4c738e=this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x16e)](_0x48bb9d[_0x5d0946(0x168)]),_0x38cdb8=!_0x4c738e[_0x5d0946(0x156)]&&_0x4c738e[_0x5d0946(0x117)][_0x5d0946(0x170)]>0x11e+0x1dc3+-0x55*0x5d||this[_0x5d0946(0x14f)][_0x5d0946(0x16d)]?.(_0x48bb9d[_0x5d0946(0x168)])===!![];if(!_0x38cdb8){_0x3830ab=_0x25ef87===_0x5d0946(0x115)||_0x5111b4?_0x5d0946(0x15d):_0x25ef87;if(_0x3830ab===_0x5d0946(0x166)||_0x3830ab===_0x5d0946(0x12d)||_0x3830ab===_0x5d0946(0x15d))this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x14e)](_0x473760,_0x3830ab);}}const _0x7d7f5b=_0x14f0f3?_0x3830ab:_0x25ef87,_0x26f65e=this[_0x5d0946(0x13c)](_0x473760,_0x314dda,_0x8db0af,_0x7d7f5b,_0x257d6a||!_0x13db99);if(_0x7d7f5b!==undefined){const _0xb7d051=this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x111)](_0x473760);this[_0x5d0946(0x14f)][_0x5d0946(0x143)](_0x5d0946(0x147),{'run':_0xb7d051});const _0x197768=_0xb7d051===undefined?undefined:this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x13f)](_0xb7d051[_0x5d0946(0x168)]);if(_0x197768!==undefined)this[_0x5d0946(0x14f)][_0x5d0946(0x143)](_0x5d0946(0x171),{'session':this[_0x5d0946(0x14f)][_0x5d0946(0x132)](_0x197768)});}const _0x5adb93=_0x13db99&&_0x28ec5c===undefined&&_0x57a829===undefined?this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x12e)](_0x473760):undefined;if(_0x13db99)this[_0x5d0946(0x14f)][_0x5d0946(0x143)](_0x5d0946(0x155),_0x5adb93===undefined?{'event':{..._0x4c00e2,..._0x7d7f5b===undefined?{}:{'status':_0x7d7f5b},'createdAt':_0x54db15?.[_0x5d0946(0x13e)]??Date[_0x5d0946(0x10e)]()}}:{'turn':_0x5adb93});else{const _0x18191f=this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x114)](_0x28c699);if(_0x18191f!==undefined)this[_0x5d0946(0x14f)][_0x5d0946(0x143)](_0x5d0946(0x155),{'turn':_0x18191f});}const _0x5cd618=_0x54db15?.[_0x5d0946(0x13e)]??Date[_0x5d0946(0x10e)](),_0xaca562=_0x26f65e!==undefined&&_0x3a2554&&_0x3830ab!==undefined;_0x26f65e!==undefined&&!_0xaca562&&this[_0x5d0946(0x14d)](_0x473760,_0x4c00e2,_0x26f65e,_0x5cd618);if(!_0x14f0f3)return;if(_0x13db99&&_0x5adb93===undefined){const _0x4dc887=this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x12e)](_0x473760);if(_0x4dc887!==undefined)this[_0x5d0946(0x14f)][_0x5d0946(0x143)](_0x5d0946(0x155),{'turn':_0x4dc887});}this[_0x5d0946(0x14f)][_0x5d0946(0x150)](_0x28c699),this[_0x5d0946(0x14f)][_0x5d0946(0x169)](_0x28c699),this[_0x5d0946(0x14f)][_0x5d0946(0x164)](_0x28c699);if(!_0x3a2554)return;if(_0x3830ab===undefined){void this[_0x5d0946(0x14f)][_0x5d0946(0x152)](_0x48bb9d[_0x5d0946(0x168)],_0x25ef87===_0x5d0946(0x12d)?-0x4c*0x9d+-0x1f*0x13d+-0x2fdd*-0x3:0x1c9d+-0x98+-0x1c05);return;}if(this[_0x5d0946(0x14f)][_0x5d0946(0x12c)](_0x48bb9d[_0x5d0946(0x168)])){this[_0x5d0946(0x14f)][_0x5d0946(0x119)](_0x48bb9d[_0x5d0946(0x168)],_0x5d0946(0x12a));return;}this[_0x5d0946(0x14f)][_0x5d0946(0x163)](_0x48bb9d[_0x5d0946(0x168)]);const _0x5e4a54=this[_0x5d0946(0x14f)][_0x5d0946(0x142)](_0x48bb9d[_0x5d0946(0x172)]);this[_0x5d0946(0x14f)][_0x5d0946(0x126)][_0x5d0946(0x112)](_0x473760);if(_0xaca562)void _0x5e4a54[_0x5d0946(0x154)](()=>undefined)[_0x5d0946(0x15c)](()=>this[_0x5d0946(0x14d)](_0x473760,_0x4c00e2,_0x26f65e,_0x5cd618));}[_0x3193ad(0x14d)](_0x2a291c,_0x111485,_0x4896d4,_0x58ce2d){const _0x141bc2=_0x3193ad;nodeLog(_0x141bc2(0x127),{'runId':_0x2a291c,'eventType':_0x141bc2(0x162)}),this[_0x141bc2(0x14f)][_0x141bc2(0x143)](_0x141bc2(0x155),{'event':{'runId':_0x2a291c,'sequence':_0x111485[_0x141bc2(0x123)],'eventType':_0x141bc2(0x162),'payload':{..._0x4896d4,'occurredAt':_0x58ce2d},'createdAt':_0x58ce2d}});}[_0x3193ad(0x13c)](_0x5f4d58,_0x5379b9,_0x403ff7,_0x5e73d6,_0x4432f0=![]){const _0x6ecd7c=_0x3193ad;if(_0x5379b9===_0x6ecd7c(0x162))return undefined;const _0x57ebb2=this[_0x6ecd7c(0x14f)][_0x6ecd7c(0x126)][_0x6ecd7c(0x111)](_0x5f4d58);if(_0x57ebb2===undefined)return undefined;const _0x26c306=this[_0x6ecd7c(0x14f)][_0x6ecd7c(0x126)][_0x6ecd7c(0x13f)](_0x57ebb2[_0x6ecd7c(0x168)]);if(_0x26c306===undefined)return undefined;const _0x29a3ff={'userId':_0x57ebb2[_0x6ecd7c(0x129)],'workspaceId':_0x57ebb2[_0x6ecd7c(0x172)],'sessionId':_0x57ebb2[_0x6ecd7c(0x168)],'sessionTitle':_0x26c306[_0x6ecd7c(0x136)]??_0x26c306[_0x6ecd7c(0x151)]??_0x26c306['id'],'runId':_0x5f4d58};if(!Number[_0x6ecd7c(0x13d)](_0x29a3ff[_0x6ecd7c(0x16b)]))return undefined;if(_0x5e73d6!==undefined&&isTerminalRunStatus(_0x5e73d6)){if(_0x4432f0)return undefined;return{..._0x29a3ff,'notificationId':_0x6ecd7c(0x13a)+_0x57ebb2[_0x6ecd7c(0x172)]+':'+_0x5f4d58,'kind':_0x6ecd7c(0x149),'outcome':_0x5e73d6};}if(_0x5379b9===_0x6ecd7c(0x141)&&isPlainRecord(_0x403ff7)){const _0x5c6b27=_0x403ff7[_0x6ecd7c(0x133)];if(typeof _0x5c6b27!==_0x6ecd7c(0x153))return undefined;return{..._0x29a3ff,'notificationId':_0x6ecd7c(0x16c)+_0x57ebb2[_0x6ecd7c(0x172)]+':'+_0x5f4d58+':'+_0x5c6b27,'kind':_0x6ecd7c(0x139)};}if(_0x5379b9!==_0x6ecd7c(0x128)||!isPlainRecord(_0x403ff7))return undefined;if(_0x403ff7[_0x6ecd7c(0x11e)]===_0x6ecd7c(0x12f)&&typeof _0x403ff7[_0x6ecd7c(0x122)]===_0x6ecd7c(0x153))return{..._0x29a3ff,'notificationId':_0x6ecd7c(0x15a)+_0x57ebb2[_0x6ecd7c(0x172)]+':'+_0x5f4d58+':'+_0x403ff7[_0x6ecd7c(0x122)],'kind':_0x6ecd7c(0x160)};if(_0x403ff7[_0x6ecd7c(0x11e)]===_0x6ecd7c(0x148)&&typeof _0x403ff7[_0x6ecd7c(0x122)]===_0x6ecd7c(0x153)&&isPlainRecord(_0x403ff7[_0x6ecd7c(0x137)])&&Array[_0x6ecd7c(0x118)](_0x403ff7[_0x6ecd7c(0x137)][_0x6ecd7c(0x165)])&&_0x403ff7[_0x6ecd7c(0x137)][_0x6ecd7c(0x165)][_0x6ecd7c(0x170)]>0x9f*-0x29+-0x25e1+0x3f58)return{..._0x29a3ff,'notificationId':_0x6ecd7c(0x110)+_0x57ebb2[_0x6ecd7c(0x172)]+':'+_0x5f4d58+':'+_0x403ff7[_0x6ecd7c(0x122)],'kind':_0x6ecd7c(0x11a)};return undefined;}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
function _0x58c2(_0x3aba39,_0x325394){_0x3aba39=_0x3aba39-(-0x21fd+0x2587*-0x1+-0xd9*-0x56);const _0xe1dd72=_0x809c();let _0x20b3af=_0xe1dd72[_0x3aba39];if(_0x58c2['gdJEMv']===undefined){var _0x36ad30=function(_0x54c4f0){const _0x2f7443='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3339ae='',_0x1dc175='';for(let _0x11eb7f=-0x2117+0xab5*0x3+0xf8,_0x36e4b0,_0x56c7b2,_0x38a340=0xb5a*-0x1+0x121*-0x10+0x1d6a;_0x56c7b2=_0x54c4f0['charAt'](_0x38a340++);~_0x56c7b2&&(_0x36e4b0=_0x11eb7f%(0x638+-0x27e+-0x2*0x1db)?_0x36e4b0*(-0xad8*-0x2+0x1*-0xc14+-0x95c)+_0x56c7b2:_0x56c7b2,_0x11eb7f++%(-0x98d*0x1+-0x1357*0x1+0x1ce8*0x1))?_0x3339ae+=String['fromCharCode'](-0x419*0x1+0xb9d*-0x1+0x10b5&_0x36e4b0>>(-(-0x1*0x1886+0xe07+0xa81)*_0x11eb7f&0xdaf*0x1+-0x2575*0x1+-0x4*-0x5f3)):-0x3b*-0x45+0xc1*0x1a+-0x2381){_0x56c7b2=_0x2f7443['indexOf'](_0x56c7b2);}for(let _0x2771af=0x9*-0x409+0xd*0x29+0x223c,_0xb692d6=_0x3339ae['length'];_0x2771af<_0xb692d6;_0x2771af++){_0x1dc175+='%'+('00'+_0x3339ae['charCodeAt'](_0x2771af)['toString'](0xa7f+-0xd9e+0x32f))['slice'](-(-0x1*-0xe4b+-0xa10+-0x439));}return decodeURIComponent(_0x1dc175);};_0x58c2['rHSfuO']=_0x36ad30,_0x58c2['CLNdbw']={},_0x58c2['gdJEMv']=!![];}const _0x39caaf=_0xe1dd72[0x69*-0x30+0x1*-0x19+0x13c9];_0x58c2['DIiZJn']!==_0x39caaf&&(_0x58c2['CLNdbw']={},_0x58c2['DIiZJn']=_0x39caaf);const _0x49a62a=_0x58c2['CLNdbw'][_0x3aba39];return _0x49a62a===undefined?(_0x20b3af=_0x58c2['rHSfuO'](_0x20b3af),_0x58c2['CLNdbw'][_0x3aba39]=_0x20b3af):_0x20b3af=_0x49a62a,_0x20b3af;}const _0x3b6230=_0x58c2;(function(_0x484a80,_0x59892c){const _0x33837a=_0x58c2,_0x3d18ba=_0x484a80();while(!![]){try{const _0x6a8653=-parseInt(_0x33837a(0x1b9))/(0x20a1+0x18d0*0x1+-0x3970)*(parseInt(_0x33837a(0x172))/(-0x1*-0x35f+0x155a+0x13*-0x14d))+-parseInt(_0x33837a(0x1b5))/(-0xb*0x45+-0x14a7+0x107*0x17)+parseInt(_0x33837a(0x1c2))/(-0xc1*0x11+0x3c7+0x13*0x7a)+parseInt(_0x33837a(0x1ae))/(-0x1c41+0x1f95+-0x34f*0x1)*(parseInt(_0x33837a(0x180))/(-0x1e2f+-0x50+0x1e85))+-parseInt(_0x33837a(0x1b4))/(0x647*-0x1+0x1a68*0x1+0x1*-0x141a)*(parseInt(_0x33837a(0x1ca))/(0x1fb8+0x187c+-0x382c))+-parseInt(_0x33837a(0x1bd))/(0x48*0x5a+0x1*0x827+-0x216e)+parseInt(_0x33837a(0x1bc))/(-0xb01*0x2+0x623*0x4+-0x280);if(_0x6a8653===_0x59892c)break;else _0x3d18ba['push'](_0x3d18ba['shift']());}catch(_0x46018b){_0x3d18ba['push'](_0x3d18ba['shift']());}}}(_0x809c,0x1b693a+0xb*0x224b4+-0x1*0x24e338));import{removeNativeSession}from'../native-session-history.js';import{isTerminalRunStatus,sessionPage}from'../util/node-operation-parsers.js';import{latestSessionActivityAt}from'./session-presentation-service.js';export class SessionCatalogService{[_0x3b6230(0x167)];[_0x3b6230(0x1c1)]=Promise[_0x3b6230(0x1be)]();constructor(_0x17a90f){const _0x2cc359=_0x3b6230;this[_0x2cc359(0x167)]=_0x17a90f;}[_0x3b6230(0x1d2)](){const _0x13ddb9=_0x3b6230;return{'session.list':_0x2f924b=>this[_0x13ddb9(0x1a6)](record(_0x2f924b)),'session.resume':_0x405e2d=>this[_0x13ddb9(0x189)](record(_0x405e2d)),'session.remove':_0x4b31f7=>this[_0x13ddb9(0x1d4)](record(_0x4b31f7)),'session.rewind':_0x5f38ec=>this[_0x13ddb9(0x1b8)](record(_0x5f38ec))};}async[_0x3b6230(0x1a6)](_0x347f6e){const _0x18d9b6=_0x3b6230,_0x2d73d6=typeof _0x347f6e[_0x18d9b6(0x1cf)]===_0x18d9b6(0x1a7)?_0x347f6e[_0x18d9b6(0x1cf)]:undefined,_0x3aba39=_0x2d73d6===undefined?this[_0x18d9b6(0x167)][_0x18d9b6(0x1a9)]():await this[_0x18d9b6(0x167)][_0x18d9b6(0x163)](_0x2d73d6),_0x325394=_0x3aba39[_0x18d9b6(0x198)](_0x39caaf=>this[_0x18d9b6(0x167)][_0x18d9b6(0x1bb)]({..._0x39caaf,'externalDiscovered':!![]})),_0xe1dd72=this[_0x18d9b6(0x167)][_0x18d9b6(0x16f)][_0x18d9b6(0x164)]()[_0x18d9b6(0x1cb)](_0x49a62a=>_0x49a62a[_0x18d9b6(0x1c7)]===_0x18d9b6(0x17c)||_0x49a62a[_0x18d9b6(0x1c7)]===_0x18d9b6(0x1c6)&&_0x49a62a[_0x18d9b6(0x1a8)]!==null)[_0x18d9b6(0x198)](_0x54c4f0=>{const _0x1355f9=_0x18d9b6,_0x2f7443=_0x325394[_0x1355f9(0x1af)](_0x1dc175=>this[_0x1355f9(0x167)][_0x1355f9(0x1b0)](_0x1dc175)?.['id']===_0x54c4f0['id']),_0x3339ae=_0x54c4f0[_0x1355f9(0x185)]!==_0x1355f9(0x1c0)||_0x2f7443?.[_0x1355f9(0x176)]===undefined||_0x2f7443[_0x1355f9(0x176)]===null?_0x54c4f0:this[_0x1355f9(0x167)][_0x1355f9(0x16f)][_0x1355f9(0x1b2)](_0x54c4f0['id'],_0x2f7443[_0x1355f9(0x176)]);return this[_0x1355f9(0x167)][_0x1355f9(0x1bb)](_0x2f7443===undefined?_0x3339ae:{..._0x3339ae,'pinnedAt':_0x2f7443[_0x1355f9(0x193)],'pinOrder':_0x2f7443[_0x1355f9(0x192)]??null,'externalDiscovered':!![],'lastActivityAt':latestSessionActivityAt(_0x3339ae[_0x1355f9(0x17f)],_0x2f7443[_0x1355f9(0x17f)])});}),_0x20b3af=new Map([..._0xe1dd72,..._0x325394[_0x18d9b6(0x1cb)](_0x11eb7f=>_0x11eb7f[_0x18d9b6(0x1a8)]===null||this[_0x18d9b6(0x167)][_0x18d9b6(0x1b0)](_0x11eb7f)===undefined)][_0x18d9b6(0x198)](_0x36e4b0=>[_0x36e4b0['id'],_0x36e4b0]));if(_0x2d73d6!==undefined)this[_0x18d9b6(0x184)](_0x20b3af,_0x2d73d6);const _0x36ad30=[..._0x20b3af[_0x18d9b6(0x1cd)]()];return sessionPage(_0x2d73d6===undefined?_0x36ad30:_0x36ad30[_0x18d9b6(0x1cb)](_0x56c7b2=>_0x56c7b2[_0x18d9b6(0x1cf)]===_0x2d73d6),_0x347f6e);}[_0x3b6230(0x184)](_0x38a340,_0x2771af){const _0x48ed4e=_0x3b6230,_0xb692d6=this[_0x48ed4e(0x167)][_0x48ed4e(0x174)](),_0xe2095c=_0xb692d6[_0x48ed4e(0x188)](_0x2771af);if(_0xe2095c===undefined)throw new Error(_0x48ed4e(0x1d0));for(const _0x29e211 of _0xb692d6[_0x48ed4e(0x1a2)](_0x2771af)){if(_0x38a340[_0x48ed4e(0x16b)](_0x29e211['id']))continue;_0x38a340[_0x48ed4e(0x1b1)](_0x29e211['id'],this[_0x48ed4e(0x167)][_0x48ed4e(0x1bb)]({'id':_0x29e211['id'],'nodeId':this[_0x48ed4e(0x167)][_0x48ed4e(0x162)](),'workspaceId':_0x2771af,'runner':_0x29e211[_0x48ed4e(0x1b7)],'externalSessionId':_0x29e211['id'],'nativeControl':_0x48ed4e(0x1c6),'channelToken':null,'cwd':_0xe2095c[_0x48ed4e(0x1c8)],'model':_0x29e211[_0x48ed4e(0x1ba)][_0x48ed4e(0x16c)],'effort':_0x29e211[_0x48ed4e(0x1ba)][_0x48ed4e(0x165)],'access':_0x29e211[_0x48ed4e(0x1ba)][_0x48ed4e(0x1bf)],'customTitle':_0x29e211[_0x48ed4e(0x1ba)][_0x48ed4e(0x1c3)],'runnerTitle':_0x29e211[_0x48ed4e(0x1ba)][_0x48ed4e(0x176)],'pinnedAt':_0x29e211[_0x48ed4e(0x192)]===null?null:0xab5+0x1493+-0x1f47,'pinOrder':_0x29e211[_0x48ed4e(0x192)],'externalDiscovered':![],'titleSource':_0x29e211[_0x48ed4e(0x1ba)][_0x48ed4e(0x1c3)]===null?_0x48ed4e(0x18e):_0x48ed4e(0x17a),'lastActivityAt':0x0,'createdAt':0x0}));}}async[_0x3b6230(0x189)](_0x256e9a){const _0x58d33e=_0x3b6230;if(typeof _0x256e9a[_0x58d33e(0x190)]!==_0x58d33e(0x1a7))throw new Error(_0x58d33e(0x187));const _0x238426=this[_0x58d33e(0x167)][_0x58d33e(0x16f)][_0x58d33e(0x1c9)](_0x256e9a[_0x58d33e(0x190)])??await this[_0x58d33e(0x167)][_0x58d33e(0x19d)][_0x58d33e(0x1be)](_0x256e9a[_0x58d33e(0x190)]);if(_0x238426===undefined)throw new Error(_0x58d33e(0x191));if(_0x238426[_0x58d33e(0x1c7)]!==_0x58d33e(0x1c6))return{'session':this[_0x58d33e(0x167)][_0x58d33e(0x1bb)](_0x238426),'delivery':this[_0x58d33e(0x167)][_0x58d33e(0x189)][_0x58d33e(0x168)](_0x238426)};const _0x19e5d1=await this[_0x58d33e(0x167)][_0x58d33e(0x189)][_0x58d33e(0x189)](_0x238426,!![]),_0x26023b=_0x19e5d1===undefined?this[_0x58d33e(0x167)][_0x58d33e(0x189)][_0x58d33e(0x19b)](_0x238426['id']):undefined;return{'session':this[_0x58d33e(0x167)][_0x58d33e(0x1bb)](_0x19e5d1??_0x238426),'delivery':_0x19e5d1===undefined?_0x58d33e(0x18f):_0x58d33e(0x19a),..._0x19e5d1===undefined?{'reasonCode':_0x26023b?.[_0x58d33e(0x1c4)]??_0x58d33e(0x199)}:{}};}[_0x3b6230(0x1b8)](_0x24c606){const _0x3b8104=_0x3b6230,_0x56a7ac=this[_0x3b8104(0x1c1)][_0x3b8104(0x1a4)](()=>this[_0x3b8104(0x181)](_0x24c606));return this[_0x3b8104(0x1c1)]=_0x56a7ac[_0x3b8104(0x1a4)](()=>undefined,()=>undefined),_0x56a7ac;}async[_0x3b6230(0x181)](_0x7a19b4){const _0x7a6d8e=_0x3b6230;if(!validRewindId(_0x7a19b4[_0x7a6d8e(0x190)],0xff*0x1a+0x2453+-0x1*0x3db9)||!validRewindId(_0x7a19b4[_0x7a6d8e(0x1b6)],-0x2*0x2d6+-0x14*0xc0+-0xa96*-0x2)||_0x7a19b4[_0x7a6d8e(0x18d)]!==_0x7a6d8e(0x1aa)&&_0x7a19b4[_0x7a6d8e(0x18d)]!==_0x7a6d8e(0x16e)||_0x7a19b4[_0x7a6d8e(0x17b)]!==null&&!validRewindId(_0x7a19b4[_0x7a6d8e(0x17b)],0x6e1+0x107+-0x6e8))throw new Error(_0x7a6d8e(0x1d3));const _0x5f476f=this[_0x7a6d8e(0x167)][_0x7a6d8e(0x16f)][_0x7a6d8e(0x1c9)](_0x7a19b4[_0x7a6d8e(0x190)])??await this[_0x7a6d8e(0x167)][_0x7a6d8e(0x19d)][_0x7a6d8e(0x1be)](_0x7a19b4[_0x7a6d8e(0x190)]);if(_0x5f476f===undefined)throw new Error(_0x7a6d8e(0x191));if(_0x5f476f[_0x7a6d8e(0x1a8)]===null)throw new Error(_0x7a6d8e(0x1ab));const _0x2ca7e8=await this[_0x7a6d8e(0x171)](_0x5f476f,_0x7a19b4[_0x7a6d8e(0x1b6)]),_0x47cb13=_0x7a19b4[_0x7a6d8e(0x18d)]===_0x7a6d8e(0x1aa)?_0x2ca7e8?.[_0x7a6d8e(0x181)]?.[_0x7a6d8e(0x183)]:_0x2ca7e8?.[_0x7a6d8e(0x181)]?.[_0x7a6d8e(0x18a)];if(_0x2ca7e8===undefined||_0x47cb13!==_0x7a19b4[_0x7a6d8e(0x17b)])throw new Error(_0x7a6d8e(0x166));const _0x3879b7=rewindTitle(_0x5f476f[_0x7a6d8e(0x1c3)]??_0x5f476f[_0x7a6d8e(0x176)]??_0x7a6d8e(0x19f),this[_0x7a6d8e(0x167)][_0x7a6d8e(0x16f)][_0x7a6d8e(0x164)]()[_0x7a6d8e(0x197)](_0x1b2b23=>[_0x1b2b23[_0x7a6d8e(0x1c3)]??_0x1b2b23[_0x7a6d8e(0x176)]][_0x7a6d8e(0x1cb)](isString))),_0x216a7b=this[_0x7a6d8e(0x167)][_0x7a6d8e(0x175)][_0x7a6d8e(0x1d1)](_0x5f476f[_0x7a6d8e(0x1b7)]),_0x4f3804=await _0x216a7b[_0x7a6d8e(0x1cc)](_0x5f476f,_0x7a19b4[_0x7a6d8e(0x17b)],_0x3879b7),_0x370683=this[_0x7a6d8e(0x167)][_0x7a6d8e(0x16f)][_0x7a6d8e(0x1a0)]({'workspaceId':_0x5f476f[_0x7a6d8e(0x1cf)],'runner':_0x5f476f[_0x7a6d8e(0x1b7)],'cwd':_0x5f476f[_0x7a6d8e(0x196)],'nativeControl':_0x7a6d8e(0x17c),..._0x4f3804===null?{}:{'externalSessionId':_0x4f3804},..._0x5f476f[_0x7a6d8e(0x16c)]===null?{}:{'model':_0x5f476f[_0x7a6d8e(0x16c)]},..._0x5f476f[_0x7a6d8e(0x165)]===null?{}:{'effort':_0x5f476f[_0x7a6d8e(0x165)]},..._0x5f476f[_0x7a6d8e(0x1bf)]===null?{}:{'access':_0x5f476f[_0x7a6d8e(0x1bf)]},'title':_0x3879b7});if(_0x4f3804!==null)_0x216a7b[_0x7a6d8e(0x1a3)](_0x370683,_0x4f3804);return this[_0x7a6d8e(0x167)][_0x7a6d8e(0x169)](_0x370683),{'session':this[_0x7a6d8e(0x167)][_0x7a6d8e(0x1bb)](_0x370683)};}async[_0x3b6230(0x171)](_0x29cc98,_0x3b653f){const _0x4637d9=_0x3b6230;let _0x53d68d;for(let _0x218960=-0xe17*-0x1+0x26c9*-0x1+0x18b2;_0x218960<-0xb9d+0x1cfa*0x1+-0x10f9;_0x218960+=-0x1*0x1886+0xe07+0xa80){const _0x1fdf45=await this[_0x4637d9(0x167)][_0x4637d9(0x186)](_0x29cc98,{..._0x53d68d===undefined?{}:{'cursor':_0x53d68d},'limit':0x64}),_0x3495d8=_0x1fdf45[_0x4637d9(0x18b)][_0x4637d9(0x1af)](_0x505c5a=>_0x505c5a['id']===_0x3b653f);if(_0x3495d8!==undefined||_0x1fdf45[_0x4637d9(0x1ce)]===null)return _0x3495d8;_0x53d68d=_0x1fdf45[_0x4637d9(0x1ce)];}throw new Error(_0x4637d9(0x166));}async[_0x3b6230(0x1d4)](_0x56de9d){const _0x5b6318=_0x3b6230;if(typeof _0x56de9d[_0x5b6318(0x190)]!==_0x5b6318(0x1a7))throw new Error(_0x5b6318(0x187));const _0x1d6760=this[_0x5b6318(0x167)][_0x5b6318(0x16f)][_0x5b6318(0x1c9)](_0x56de9d[_0x5b6318(0x190)])??await this[_0x5b6318(0x167)][_0x5b6318(0x19d)][_0x5b6318(0x1be)](_0x56de9d[_0x5b6318(0x190)]);if(_0x1d6760===undefined)throw new Error(_0x5b6318(0x191));if(_0x1d6760[_0x5b6318(0x1a8)]===null)throw new Error(_0x5b6318(0x195));if(this[_0x5b6318(0x167)][_0x5b6318(0x16f)][_0x5b6318(0x1b3)](_0x1d6760['id'])[_0x5b6318(0x179)](_0x1dfb39=>!isTerminalRunStatus(_0x1dfb39[_0x5b6318(0x170)])))throw new Error(_0x5b6318(0x1c5));if(_0x1d6760[_0x5b6318(0x1c7)]===_0x5b6318(0x1c6)){await this[_0x5b6318(0x167)][_0x5b6318(0x18c)](_0x1d6760);if(this[_0x5b6318(0x167)][_0x5b6318(0x182)](_0x1d6760['id'])===_0x5b6318(0x194))throw new Error(_0x5b6318(0x1c5));}const _0x1cc2e7=this[_0x5b6318(0x167)][_0x5b6318(0x177)](_0x1d6760),_0x4d95e3=this[_0x5b6318(0x167)][_0x5b6318(0x175)][_0x5b6318(0x1d1)](_0x1d6760[_0x5b6318(0x1b7)]);for(const _0x3dfa4d of _0x1cc2e7){try{if(!await _0x4d95e3[_0x5b6318(0x1a5)](_0x1d6760,_0x3dfa4d))await removeNativeSession(_0x1d6760[_0x5b6318(0x1b7)],_0x1d6760[_0x5b6318(0x196)],_0x3dfa4d);}catch(_0x4ffae5){if(!(_0x4ffae5 instanceof Error)||_0x4ffae5[_0x5b6318(0x16d)]!==_0x5b6318(0x195))throw _0x4ffae5;}}return this[_0x5b6318(0x167)][_0x5b6318(0x174)]()[_0x5b6318(0x17e)](_0x1d6760['id']),this[_0x5b6318(0x167)][_0x5b6318(0x1ac)](_0x1d6760,_0x1cc2e7),{'deleted':!![]};}}export function rewindTitle(_0x204e2f,_0x1d2798=[]){const _0x2ff85f=_0x3b6230,_0x555653=_0x204e2f[_0x2ff85f(0x19c)](/ \(Copy \d+\)$/u,''),_0x42ed91=new Set(_0x1d2798);for(let _0x4781d9=0xdaf*0x1+-0x2575*0x1+-0x3*-0x7ed;_0x4781d9<Number[_0x2ff85f(0x178)];_0x4781d9+=-0x3b*-0x45+0xc1*0x1a+-0x2380){const _0x188ef7=_0x2ff85f(0x17d)+_0x4781d9+')',_0x164341=''+_0x555653[_0x2ff85f(0x16a)](0x9*-0x409+0xd*0x29+0x223c,0xa7f+-0xd9e+0x3bf-_0x188ef7[_0x2ff85f(0x1ad)])+_0x188ef7;if(!_0x42ed91[_0x2ff85f(0x16b)](_0x164341))return _0x164341;}throw new Error(_0x2ff85f(0x1a1));}function _0x809c(){const _0x3ba524=['u0vtu0LptL9bq1rjvKu','rvHurvjoquW','BMf0AxzLq29UDhjVBa','Cgf0Aa','z2v0qwDLBNrtzxnZAw9U','mtqZmtyWyNv1u1Ls','zMLSDgvY','zM9YA05HDgL2zq','DMfSDwvZ','BMv4Den1CNnVCG','D29YA3nWywnLswq','v09ss1nqqunfx05pvf9gt1vora','CMvXDwLYzq','B3bLCMf0Aw9UCW','u0vtu0LptL9srvDjtKrFsu5wquXjra','CMvTB3zL','BM9KzuLK','y2fJAgvKv29YA3nWywnL','BgLZDefNzw50u2vZC2LVBNm','zwzMB3j0','u0vtu0LptL9srvDjtKrFvefsr0vux0LovKfmsuq','B3b0Aw9UCW','zgvSAxzLCNK','zw1PDfnLC3nPB24','C2XPy2u','AgfZ','Bw9KzwW','BwvZC2fNzq','quzurvi','CNvUDgLTzq','C3rHDhvZ','zMLUzfr1CM4','mZbJuK1NBLC','B2jQzwn0','zgf0ywjHC2u','CNvUBMvYCW','CNvUBMvYvgL0Bgu','BMf0AxzLswrZ','tufyx1nbrKvFsu5uruDfuG','C29Tzq','q1vtve9n','yM91BMrHCNK','tufsx01btKfhruq','icHdB3b5ia','zgvSzxrLu2vZC2LVBLjLy29Yza','BgfZDefJDgL2Axr5qxq','ntu0otrNy212vg8','CMv3Aw5K','zxH0zxjUywXby3rPDML0Eq','yMvMB3jL','BwvYz2vqzxjZAxn0zwq','DgL0BgvtB3vYy2u','AgLZDg9YEq','u0vtu0LptL9jtLzbteLe','z2v0v29YA3nWywnL','CMvZDw1L','ywz0zxi','DhvYBNm','CMvMCMvZAefJDgL2Axr5','Cg9ZAxrPB24','uLvotKvs','uKvkrunuruq','C2vZC2LVBKLK','u0vtu0LptL9ot1rFrK9vtKq','CgLUt3jKzxi','CgLUBMvKqxq','rvHurvjoquXFqunusvzf','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','y3DK','zMXHDe1HCa','BwfW','u0vtu0LptL9srvnvtuvFuKvkrunuruq','uKvtvu1bqKXf','zMfPBhvYzq','CMvWBgfJzq','ChjVAMvJDgLVBG','AxnbCNjHEq','vw50AxrSzwqGC2vZC2LVBG','y3jLyxrLqwDLBNrtzxnZAw9U','u0vtu0LptL9srvDjtKrFveLutevFvu5bvKfjtefcteu','BgLZDfnLC3nPB25szwnVCMrZ','CMvTzw1Izxjnyw5Hz2vKtMf0AxzL','DgHLBG','CMvTB3zLtMf0AxzL','BgLZDa','C3rYAw5N','zxH0zxjUywXtzxnZAw9Uswq','y2fJAgvKtMf0AxzL','qKvgt1jf','u0vtu0LptL9srvDjtKrFvu5bvKfjtefcteu','zM9Yz2v0','BgvUz3rO','mJy1ChbKr3Do','zMLUza','ChjVAMvJDgLVBKzVCK5HDgL2zq','C2v0','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','BgLZDfj1BNngB3jtzxnZAw9U','nteXqwvhDwrx','mteWndm5owvuwKnXwa','DhvYBKLK','CNvUBMvY','zw5XDwv1zvjLD2LUza','mZK2mtLur3Hws2m','Bwv0ywrHDge','ChjLC2vUDa','mJq4mdiXmZbWDefZB1i','mta4nJuYotvivM9ZD1e','CMvZB2X2zq','ywnJzxnZ','qvvutW','CMv3Aw5KuxvLDwu','ntCXodC2oeDttuPKwa','y3vZDg9TvgL0Bgu','y29Kzq'];_0x809c=function(){return _0x3ba524;};return _0x809c();}function validRewindId(_0x348fae,_0x32742f){const _0x58f2b0=_0x3b6230;return typeof _0x348fae===_0x58f2b0(0x1a7)&&_0x348fae[_0x58f2b0(0x1ad)]>-0x1*-0xe4b+-0xa10+-0x43b&&_0x348fae[_0x58f2b0(0x1ad)]<=_0x32742f;}function isString(_0x57a0ac){return _0x57a0ac!==null;}function record(_0x1eb263){const _0x3285b0=_0x3b6230;if(_0x1eb263===null||typeof _0x1eb263!==_0x3285b0(0x173)||Array[_0x3285b0(0x19e)](_0x1eb263))return{};return _0x1eb263;}
|
|
2
|
+
const _0x271726=_0x3ace;(function(_0x2b82be,_0x54e1cf){const _0x977ed1=_0x3ace,_0x4d6d89=_0x2b82be();while(!![]){try{const _0x4b1e17=-parseInt(_0x977ed1(0x105))/(-0x19b*0x6+-0x1299+0x1c3c)*(-parseInt(_0x977ed1(0xc0))/(0x2091+-0x1*-0x69e+-0x272d))+parseInt(_0x977ed1(0x100))/(0xbdb*0x2+-0x1cf8+0x1*0x545)+-parseInt(_0x977ed1(0xf4))/(-0x1fb4+-0x1*-0x249f+-0x4e7)*(parseInt(_0x977ed1(0xa0))/(0x142f+-0x59*-0x31+-0x2533))+parseInt(_0x977ed1(0xcb))/(-0x1*-0xbe7+0x190a+-0x24eb)+parseInt(_0x977ed1(0x9e))/(0x14b*-0x11+-0x1*0x1d63+0x3365)*(-parseInt(_0x977ed1(0xbb))/(-0x243b+-0xc72+0x30b5))+-parseInt(_0x977ed1(0xc7))/(0x1e07*-0x1+0x13d5+0xa3b)*(parseInt(_0x977ed1(0xdc))/(0x2f5+0x5*0x5cb+-0x1fe2))+-parseInt(_0x977ed1(0x106))/(-0x4cd*-0x1+0x1*0x3d1+-0x893*0x1)*(-parseInt(_0x977ed1(0xed))/(0x1df*-0x13+-0x34d+0x26e6));if(_0x4b1e17===_0x54e1cf)break;else _0x4d6d89['push'](_0x4d6d89['shift']());}catch(_0xb261ff){_0x4d6d89['push'](_0x4d6d89['shift']());}}}(_0x3e3e,0x1d9cf+0x5aaa3+0x3b3*-0x8b));import{removeNativeSession}from'../native-session-history.js';function _0x3ace(_0x22d5cb,_0xfbb975){_0x22d5cb=_0x22d5cb-(0x5*-0x29b+-0x53a*-0x2+0x329);const _0x451cdb=_0x3e3e();let _0x261a47=_0x451cdb[_0x22d5cb];if(_0x3ace['hdRVql']===undefined){var _0x10082c=function(_0x28e594){const _0x1b06f7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x54f44a='',_0x473203='';for(let _0xc7d194=-0x9ca+-0x6f3*0x1+0x5*0x359,_0x564c63,_0x5bfa49,_0x49b2c8=0x95*-0x13+-0x2b0+0xdbf;_0x5bfa49=_0x28e594['charAt'](_0x49b2c8++);~_0x5bfa49&&(_0x564c63=_0xc7d194%(-0x2692*-0x1+-0x1*0x773+0x1*-0x1f1b)?_0x564c63*(-0xc4+0x80f*0x2+-0xf1a*0x1)+_0x5bfa49:_0x5bfa49,_0xc7d194++%(-0x1e0d+-0x106*0x7+0x253b))?_0x54f44a+=String['fromCharCode'](0x2645+0x1615*0x1+-0x3b5b&_0x564c63>>(-(-0x29*0xe9+0x1d6+0x237d)*_0xc7d194&0x1*-0xa95+-0x361*0x2+0x115d)):-0xf90+0x21d*0x11+-0x145d){_0x5bfa49=_0x1b06f7['indexOf'](_0x5bfa49);}for(let _0x19d9f3=0x146*0x1c+-0x9df*-0x1+-0x2d*0x103,_0x32ec6e=_0x54f44a['length'];_0x19d9f3<_0x32ec6e;_0x19d9f3++){_0x473203+='%'+('00'+_0x54f44a['charCodeAt'](_0x19d9f3)['toString'](0xb3*-0x2a+-0x10d3+-0x3*-0xf6b))['slice'](-(-0x1177+-0xfd6+-0x214f*-0x1));}return decodeURIComponent(_0x473203);};_0x3ace['ebLnCN']=_0x10082c,_0x3ace['mJXATa']={},_0x3ace['hdRVql']=!![];}const _0x1e0ae5=_0x451cdb[-0x2*-0x927+0x22ad+-0x34fb];_0x3ace['TkuHLZ']!==_0x1e0ae5&&(_0x3ace['mJXATa']={},_0x3ace['TkuHLZ']=_0x1e0ae5);const _0x36f139=_0x3ace['mJXATa'][_0x22d5cb];return _0x36f139===undefined?(_0x261a47=_0x3ace['ebLnCN'](_0x261a47),_0x3ace['mJXATa'][_0x22d5cb]=_0x261a47):_0x261a47=_0x36f139,_0x261a47;}import{isTerminalRunStatus,sessionPage}from'../util/node-operation-parsers.js';function _0x3e3e(){const _0x5d8955=['rvHurvjoquXFqunusvzf','u0vtu0LptL9srvnvtuvFuKvkrunuruq','u0vtu0LptL9srvDjtKrFvu5bvKfjtefcteu','qKvgt1jf','rvHurvjoquW','uLvotKvs','Bwv0ywrHDge','u0vtu0LptL9srvDjtKrFsu5wquXjra','mtK0mJC2nKLYrvLUra','y2fJAgvKv29YA3nWywnL','mJv5vMf0zxu','y29Kzq','BgLZDefNzw50u2vZC2LVBNm','zw5XDwv1zvjLD2LUza','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','tufsx01btKfhruq','Cgf0Aa','B3bLCMf0Aw9UCW','CMvZB2X2zq','CMvTB3zLtMf0AxzL','CMvZDw1L','yM91BMrHCNK','vw50AxrSzwqGC2vZC2LVBG','CNvUBMvYvgL0Bgu','zw1PDfnLC3nPB24','ChjVAMvJDgLVBG','ywnJzxnZ','yMvMB3jL','CgLUt3jKzxi','CgLUBMvKqxq','CMvTB3zL','C2v0','z2v0qwDLBNrtzxnZAw9U','zM9Yz2v0','CMvWBgfJzq','tufyx1nbrKvFsu5uruDfuG','zMXHDe1HCa','mtzyEevTB0m','ywz0zxi','v09ss1nqqunfx05pvf9gt1vora','zwzMB3j0','y3jLyxrLqwDLBNrtzxnZAw9U','mty2nZbLuhDVA3u','zMLSDgvY','y3vZDg9TvgL0Bgu','AxnbCNjHEq','C3rHDhvZ','C2vZC2LVBKLK','zgvSzxrLu2vZC2LVBLjLy29Yza','mtK0mdy5n3fou1LvtG','DhvYBKLK','BwvZC2fNzq','zxH0zxjUywXby3rPDML0Eq','nJG1nZm0CfjTDxzu','z2v0v29YA3nWywnL','zgf0ywjHC2u','BgvUz3rO','zMfPBhvYzq','Bw9KzwW','zgvSAxzLCNK','zMLUzfr1CM4','icHdB3b5ia','BwvYz2vqzxjZAxn0zwq','BgLZDa','BMv4Den1CNnVCG','ChjLC2vUDa','CMvXDwLYzq','CMvTzw1Izxjnyw5Hz2vKtMf0AxzL','BMf0AxzLswrZ','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','mZb5DwvYExe','AgfZ','zM9YA05HDgL2zq','Cg9ZAxrPB24','zMLUza','CMv3Aw5K','u0vtu0LptL9bq1rjvKu','DhvYBNm','BwfW','C29Tzq','BM9KzuLK','DMfSDwvZ','C3rYAw5N','quzurvi','B3b0Aw9UCW','CMvMCMvZAefJDgL2Axr5','BgLZDfj1BNngB3jtzxnZAw9U','mtjmyLbHqNy','BgfZDefJDgL2Axr5qxq','BMf0AxzLq29UDhjVBa','q1vtve9n','CNvUBMvY','ChjVAMvJDgLVBKzVCK5HDgL2zq','DgL0BgvtB3vYy2u','ndaXodyWAerRsK9O','CNvUBMvYCW','DgHLBG','qvvutW','u0vtu0LptL9jtLzbteLe','CNvUDgLTzq','u0vtu0LptL9ot1rFrK9vtKq','CMv3Aw5KuxvLDwu','C2XPy2u','B2jQzwn0','AgLZDg9YEq','y2fJAgvKtMf0AxzL','nZu0nZG1vNDouNn1','y3DK','uKvkrunuruq','D29YA3nWywnLswq','BgLZDfnLC3nPB25szwnVCMrZ','owz0qKn1ta','mtC4nJG2odzzs3PmvvG','uKvtvu1bqKXf','zxH0zxjUywXtzxnZAw9Uswq','u0vtu0LptL9srvDjtKrFvefsr0vux0LovKfmsuq','u0vtu0LptL9srvDjtKrFveLutevFvu5bvKfjtefcteu'];_0x3e3e=function(){return _0x5d8955;};return _0x3e3e();}import{latestSessionActivityAt}from'./session-presentation-service.js';export class SessionCatalogService{[_0x271726(0xea)];[_0x271726(0xfb)]=Promise[_0x271726(0xa8)]();constructor(_0x54d777){const _0x3a73d4=_0x271726;this[_0x3a73d4(0xea)]=_0x54d777;}[_0x271726(0xa7)](){const _0x549714=_0x271726;return{'session.list':_0x2a3b18=>this[_0x549714(0xd5)](record(_0x2a3b18)),'session.resume':_0x15bae3=>this[_0x549714(0xaa)](record(_0x15bae3)),'session.remove':_0x1ebdfa=>this[_0x549714(0xb4)](record(_0x1ebdfa)),'session.rewind':_0x22d5cb=>this[_0x549714(0xa3)](record(_0x22d5cb))};}async[_0x271726(0xd5)](_0xfbb975){const _0x827bb0=_0x271726,_0x451cdb=typeof _0xfbb975[_0x827bb0(0x103)]===_0x827bb0(0xe8)?_0xfbb975[_0x827bb0(0x103)]:undefined,_0x261a47=_0x451cdb===undefined?this[_0x827bb0(0xea)][_0x827bb0(0xff)]():await this[_0x827bb0(0xea)][_0x827bb0(0x9f)](_0x451cdb),_0x10082c=_0x261a47[_0x827bb0(0xe4)](_0x1b06f7=>this[_0x827bb0(0xea)][_0x827bb0(0xd7)]({..._0x1b06f7,'externalDiscovered':!![]})),_0x1e0ae5=this[_0x827bb0(0xea)][_0x827bb0(0xf9)][_0x827bb0(0xa2)]()[_0x827bb0(0xc1)](_0x54f44a=>_0x54f44a[_0x827bb0(0xef)]===_0x827bb0(0xa5)||_0x54f44a[_0x827bb0(0xef)]===_0x827bb0(0x9a)&&_0x54f44a[_0x827bb0(0x108)]!==null)[_0x827bb0(0xe4)](_0x473203=>{const _0x1cfbd5=_0x827bb0,_0xc7d194=_0x10082c[_0x1cfbd5(0xe0)](_0x5bfa49=>this[_0x1cfbd5(0xea)][_0x1cfbd5(0xf2)](_0x5bfa49)?.['id']===_0x473203['id']),_0x564c63=_0x473203[_0x1cfbd5(0xf3)]!==_0x1cfbd5(0xf7)||_0xc7d194?.[_0x1cfbd5(0xad)]===undefined||_0xc7d194[_0x1cfbd5(0xad)]===null?_0x473203:this[_0x1cfbd5(0xea)][_0x1cfbd5(0xf9)][_0x1cfbd5(0xdb)](_0x473203['id'],_0xc7d194[_0x1cfbd5(0xad)]);return this[_0x1cfbd5(0xea)][_0x1cfbd5(0xd7)](_0xc7d194===undefined?_0x564c63:{..._0x564c63,'pinnedAt':_0xc7d194[_0x1cfbd5(0xb3)],'pinOrder':_0xc7d194[_0x1cfbd5(0xb2)]??null,'externalDiscovered':!![],'lastActivityAt':latestSessionActivityAt(_0x564c63[_0x1cfbd5(0xee)],_0xc7d194[_0x1cfbd5(0xee)])});}),_0x36f139=new Map([..._0x1e0ae5,..._0x10082c[_0x827bb0(0xc1)](_0x49b2c8=>_0x49b2c8[_0x827bb0(0x108)]===null||this[_0x827bb0(0xea)][_0x827bb0(0xf2)](_0x49b2c8)===undefined)][_0x827bb0(0xe4)](_0x19d9f3=>[_0x19d9f3['id'],_0x19d9f3]));if(_0x451cdb!==undefined)this[_0x827bb0(0xd4)](_0x36f139,_0x451cdb);const _0x28e594=[..._0x36f139[_0x827bb0(0xe7)]()];return sessionPage(_0x451cdb===undefined?_0x28e594:_0x28e594[_0x827bb0(0xc1)](_0x32ec6e=>_0x32ec6e[_0x827bb0(0x103)]===_0x451cdb),_0xfbb975);}[_0x271726(0xd4)](_0xc45042,_0x2b2368){const _0x5e5853=_0x271726,_0x52a72f=this[_0x5e5853(0xea)][_0x5e5853(0xcd)](),_0x3d08a3=_0x52a72f[_0x5e5853(0xcc)](_0x2b2368);if(_0x3d08a3===undefined)throw new Error(_0x5e5853(0xbd));for(const _0x34223d of _0x52a72f[_0x5e5853(0x104)](_0x2b2368)){if(_0xc45042[_0x5e5853(0xdd)](_0x34223d['id']))continue;_0xc45042[_0x5e5853(0xb5)](_0x34223d['id'],this[_0x5e5853(0xea)][_0x5e5853(0xd7)]({'id':_0x34223d['id'],'nodeId':this[_0x5e5853(0xea)][_0x5e5853(0xe6)](),'workspaceId':_0x2b2368,'runner':_0x34223d[_0x5e5853(0xf1)],'externalSessionId':_0x34223d['id'],'nativeControl':_0x5e5853(0x9a),'channelToken':null,'cwd':_0x3d08a3[_0x5e5853(0xa6)],'model':_0x34223d[_0x5e5853(0x9c)][_0x5e5853(0xd0)],'effort':_0x34223d[_0x5e5853(0x9c)][_0x5e5853(0xbe)],'access':_0x34223d[_0x5e5853(0x9c)][_0x5e5853(0xb0)],'customTitle':_0x34223d[_0x5e5853(0x9c)][_0x5e5853(0xc2)],'runnerTitle':_0x34223d[_0x5e5853(0x9c)][_0x5e5853(0xad)],'pinnedAt':_0x34223d[_0x5e5853(0xb2)]===null?null:0x4*0x6b6+-0x2107+0x630,'pinOrder':_0x34223d[_0x5e5853(0xb2)],'externalDiscovered':![],'titleSource':_0x34223d[_0x5e5853(0x9c)][_0x5e5853(0xc2)]===null?_0x5e5853(0x9b):_0x5e5853(0xf0),'lastActivityAt':0x0,'createdAt':0x0}));}}async[_0x271726(0xaa)](_0x19f37f){const _0x9dc67b=_0x271726;if(typeof _0x19f37f[_0x9dc67b(0xc5)]!==_0x9dc67b(0xe8))throw new Error(_0x9dc67b(0xf8));const _0xd84293=this[_0x9dc67b(0xea)][_0x9dc67b(0xf9)][_0x9dc67b(0xb6)](_0x19f37f[_0x9dc67b(0xc5)])??await this[_0x9dc67b(0xea)][_0x9dc67b(0xaf)][_0x9dc67b(0xa8)](_0x19f37f[_0x9dc67b(0xc5)]);if(_0xd84293===undefined)throw new Error(_0x9dc67b(0xfa));if(_0xd84293[_0x9dc67b(0xef)]!==_0x9dc67b(0x9a))return{'session':this[_0x9dc67b(0xea)][_0x9dc67b(0xd7)](_0xd84293),'delivery':this[_0x9dc67b(0xea)][_0x9dc67b(0xaa)][_0x9dc67b(0xd1)](_0xd84293)};const _0xbddb10=await this[_0x9dc67b(0xea)][_0x9dc67b(0xaa)][_0x9dc67b(0xaa)](_0xd84293),_0x407306=_0xbddb10===undefined?this[_0x9dc67b(0xea)][_0x9dc67b(0xaa)][_0x9dc67b(0xcf)](_0xd84293['id']):undefined;return{'session':this[_0x9dc67b(0xea)][_0x9dc67b(0xd7)](_0xbddb10??_0xd84293),'delivery':_0xbddb10===undefined?_0x9dc67b(0x102):_0x9dc67b(0x107),..._0xbddb10===undefined?{'reasonCode':_0x407306?.[_0x9dc67b(0xa1)]??_0x9dc67b(0x97)}:{}};}[_0x271726(0xa3)](_0x36a8a1){const _0x14137c=_0x271726,_0x50b8b5=this[_0x14137c(0xfb)][_0x14137c(0xf6)](()=>this[_0x14137c(0xe1)](_0x36a8a1));return this[_0x14137c(0xfb)]=_0x50b8b5[_0x14137c(0xf6)](()=>undefined,()=>undefined),_0x50b8b5;}async[_0x271726(0xe1)](_0x18277b){const _0x1fab0f=_0x271726;if(!validRewindId(_0x18277b[_0x1fab0f(0xc5)],0x1f40+0x1545+-0x3*0x1157)||!validRewindId(_0x18277b[_0x1fab0f(0xc8)],-0x1*-0x5f8+0xe*-0x22f+0x191a)||_0x18277b[_0x1fab0f(0xdf)]!==_0x1fab0f(0x99)&&_0x18277b[_0x1fab0f(0xdf)]!==_0x1fab0f(0xe9)||_0x18277b[_0x1fab0f(0xab)]!==null&&!validRewindId(_0x18277b[_0x1fab0f(0xab)],0x80f*0x2+-0x1f71*0x1+0x1053))throw new Error(_0x1fab0f(0x9d));const _0x24f12e=this[_0x1fab0f(0xea)][_0x1fab0f(0xf9)][_0x1fab0f(0xb6)](_0x18277b[_0x1fab0f(0xc5)])??await this[_0x1fab0f(0xea)][_0x1fab0f(0xaf)][_0x1fab0f(0xa8)](_0x18277b[_0x1fab0f(0xc5)]);if(_0x24f12e===undefined)throw new Error(_0x1fab0f(0xfa));if(_0x24f12e[_0x1fab0f(0x108)]===null)throw new Error(_0x1fab0f(0x98));const _0x474ab4=await this[_0x1fab0f(0xd2)](_0x24f12e,_0x18277b[_0x1fab0f(0xc8)]),_0x589b1e=_0x18277b[_0x1fab0f(0xdf)]===_0x1fab0f(0x99)?_0x474ab4?.[_0x1fab0f(0xe1)]?.[_0x1fab0f(0xb1)]:_0x474ab4?.[_0x1fab0f(0xe1)]?.[_0x1fab0f(0xbc)];if(_0x474ab4===undefined||_0x589b1e!==_0x18277b[_0x1fab0f(0xab)])throw new Error(_0x1fab0f(0x109));const _0x54c773=rewindTitle(_0x24f12e[_0x1fab0f(0xc2)]??_0x24f12e[_0x1fab0f(0xad)]??_0x1fab0f(0xac),this[_0x1fab0f(0xea)][_0x1fab0f(0xf9)][_0x1fab0f(0xa2)]()[_0x1fab0f(0xba)](_0x594dce=>[_0x594dce[_0x1fab0f(0xc2)]??_0x594dce[_0x1fab0f(0xad)]][_0x1fab0f(0xc1)](isString))),_0x9dc6d8=this[_0x1fab0f(0xea)][_0x1fab0f(0xf5)][_0x1fab0f(0xd8)](_0x24f12e[_0x1fab0f(0xf1)]),_0x25719c=await _0x9dc6d8[_0x1fab0f(0xde)](_0x24f12e,_0x18277b[_0x1fab0f(0xab)],_0x54c773),_0x4edce4=this[_0x1fab0f(0xea)][_0x1fab0f(0xf9)][_0x1fab0f(0xbf)]({'workspaceId':_0x24f12e[_0x1fab0f(0x103)],'runner':_0x24f12e[_0x1fab0f(0xf1)],'cwd':_0x24f12e[_0x1fab0f(0x101)],'nativeControl':_0x1fab0f(0xa5),..._0x25719c===null?{}:{'externalSessionId':_0x25719c},..._0x24f12e[_0x1fab0f(0xd0)]===null?{}:{'model':_0x24f12e[_0x1fab0f(0xd0)]},..._0x24f12e[_0x1fab0f(0xbe)]===null?{}:{'effort':_0x24f12e[_0x1fab0f(0xbe)]},..._0x24f12e[_0x1fab0f(0xb0)]===null?{}:{'access':_0x24f12e[_0x1fab0f(0xb0)]},'title':_0x54c773});if(_0x25719c!==null)_0x9dc6d8[_0x1fab0f(0xd9)](_0x4edce4,_0x25719c);return this[_0x1fab0f(0xea)][_0x1fab0f(0xae)](_0x4edce4),{'session':this[_0x1fab0f(0xea)][_0x1fab0f(0xd7)](_0x4edce4)};}async[_0x271726(0xd2)](_0x535434,_0x29cdcb){const _0x57e394=_0x271726;let _0xb05c7f;for(let _0x2361ea=-0x106*0x7+-0x9d4+0x57*0x32;_0x2361ea<-0x1559*0x1+0x1243+0x1*0x37a;_0x2361ea+=-0x1044+-0xc4a+0x1c8f){const _0x1bdc4c=await this[_0x57e394(0xea)][_0x57e394(0xfe)](_0x535434,{..._0xb05c7f===undefined?{}:{'cursor':_0xb05c7f},'limit':0x64}),_0x1da151=_0x1bdc4c[_0x57e394(0xe3)][_0x57e394(0xe0)](_0x2a4686=>_0x2a4686['id']===_0x29cdcb);if(_0x1da151!==undefined||_0x1bdc4c[_0x57e394(0xd6)]===null)return _0x1da151;_0xb05c7f=_0x1bdc4c[_0x57e394(0xd6)];}throw new Error(_0x57e394(0x109));}async[_0x271726(0xb4)](_0x32b69a){const _0x4c3368=_0x271726;if(typeof _0x32b69a[_0x4c3368(0xc5)]!==_0x4c3368(0xe8))throw new Error(_0x4c3368(0xf8));const _0x2ef6f0=this[_0x4c3368(0xea)][_0x4c3368(0xf9)][_0x4c3368(0xb6)](_0x32b69a[_0x4c3368(0xc5)])??await this[_0x4c3368(0xea)][_0x4c3368(0xaf)][_0x4c3368(0xa8)](_0x32b69a[_0x4c3368(0xc5)]);if(_0x2ef6f0===undefined)throw new Error(_0x4c3368(0xfa));if(_0x2ef6f0[_0x4c3368(0x108)]===null)throw new Error(_0x4c3368(0xa4));if(this[_0x4c3368(0xea)][_0x4c3368(0xf9)][_0x4c3368(0xec)](_0x2ef6f0['id'])[_0x4c3368(0xe5)](_0x157f42=>!isTerminalRunStatus(_0x157f42[_0x4c3368(0xc4)])))throw new Error(_0x4c3368(0xe2));if(_0x2ef6f0[_0x4c3368(0xef)]===_0x4c3368(0x9a)){await this[_0x4c3368(0xea)][_0x4c3368(0xeb)](_0x2ef6f0);if(this[_0x4c3368(0xea)][_0x4c3368(0xca)](_0x2ef6f0['id'])===_0x4c3368(0x96))throw new Error(_0x4c3368(0xe2));}const _0x85fc67=this[_0x4c3368(0xea)][_0x4c3368(0xda)](_0x2ef6f0),_0x4a95a1=this[_0x4c3368(0xea)][_0x4c3368(0xf5)][_0x4c3368(0xd8)](_0x2ef6f0[_0x4c3368(0xf1)]);for(const _0x50a376 of _0x85fc67){try{if(!await _0x4a95a1[_0x4c3368(0xa9)](_0x2ef6f0,_0x50a376))await removeNativeSession(_0x2ef6f0[_0x4c3368(0xf1)],_0x2ef6f0[_0x4c3368(0x101)],_0x50a376);}catch(_0x4429da){if(!(_0x4429da instanceof Error)||_0x4429da[_0x4c3368(0xc9)]!==_0x4c3368(0xa4))throw _0x4429da;}}return this[_0x4c3368(0xea)][_0x4c3368(0xcd)]()[_0x4c3368(0xc6)](_0x2ef6f0['id']),this[_0x4c3368(0xea)][_0x4c3368(0xb7)](_0x2ef6f0,_0x85fc67),{'deleted':!![]};}}export function rewindTitle(_0x1745a3,_0x2b0a7d=[]){const _0x3c3f43=_0x271726,_0x58d540=_0x1745a3[_0x3c3f43(0xb8)](/ \(Copy \d+\)$/u,''),_0x43a3c5=new Set(_0x2b0a7d);for(let _0x5e9e70=-0x208d*-0x1+0x281+-0x230d;_0x5e9e70<Number[_0x3c3f43(0xb9)];_0x5e9e70+=0x21d*0x11+-0x60e+0x2*-0xeef){const _0x36b31e=_0x3c3f43(0xd3)+_0x5e9e70+')',_0x25474c=''+_0x58d540[_0x3c3f43(0xfc)](-0x103d*-0x1+-0x2*-0xbdd+-0x27f7,-0x1*0x10d3+-0x25*-0x9d+-0x53e-_0x36b31e[_0x3c3f43(0xce)])+_0x36b31e;if(!_0x43a3c5[_0x3c3f43(0xdd)](_0x25474c))return _0x25474c;}throw new Error(_0x3c3f43(0x10a));}function validRewindId(_0x36eebc,_0x252f06){const _0x744eb4=_0x271726;return typeof _0x36eebc===_0x744eb4(0xe8)&&_0x36eebc[_0x744eb4(0xce)]>-0xfd6+-0x8a*0x2b+0x1382*0x2&&_0x36eebc[_0x744eb4(0xce)]<=_0x252f06;}function isString(_0x977ca0){return _0x977ca0!==null;}function record(_0x35f09a){const _0x4ece89=_0x271726;if(_0x35f09a===null||typeof _0x35f09a!==_0x4ece89(0xfd)||Array[_0x4ece89(0xc3)](_0x35f09a))return{};return _0x35f09a;}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const
|
|
2
|
+
const _0x11350d=_0x3441;(function(_0x3bc180,_0x27a6a5){const _0x20d664=_0x3441,_0x3bf83b=_0x3bc180();while(!![]){try{const _0x406267=parseInt(_0x20d664(0x111))/(0x1067+-0x1e1*-0x11+-0x3057)+parseInt(_0x20d664(0x119))/(0x1d64+0x1*-0x1f49+0x1e7)*(parseInt(_0x20d664(0x114))/(-0x1c60+0x1*0x210d+-0x4aa))+-parseInt(_0x20d664(0x11b))/(-0x6c1*0x1+-0x45*-0x3b+-0x922*0x1)*(parseInt(_0x20d664(0x110))/(-0x2600*-0x1+-0x36d*0x5+-0x14da))+parseInt(_0x20d664(0x117))/(0x525*0x7+-0xe37+0x1*-0x15c6)+-parseInt(_0x20d664(0xf5))/(0xf4*-0x1+-0x3*0xbec+0x24bf)*(parseInt(_0x20d664(0x104))/(-0x3*0xc33+-0xaf1+0x2f92))+parseInt(_0x20d664(0xf3))/(-0x1a2d+-0x9c*-0x1f+0x752)*(-parseInt(_0x20d664(0xf1))/(-0x456+0x2*-0x83e+0x14dc))+parseInt(_0x20d664(0x10c))/(0x3*0x945+0x1*0x167b+-0x323f)*(parseInt(_0x20d664(0x115))/(0x66f+-0x2397+0x59*0x54));if(_0x406267===_0x27a6a5)break;else _0x3bf83b['push'](_0x3bf83b['shift']());}catch(_0x3e8734){_0x3bf83b['push'](_0x3bf83b['shift']());}}}(_0x3928,0x3a02b+0x15*-0x2335+-0xb1*-0x858));function _0x3928(){const _0x444114=['ntC3mtG4DM1NzMzq','zgLZCg9Zzq','odjTterLBw4','Bwf4vg9Rzw5Z','mJu1mty3nM5lrNjHqq','CNvUBMvY','C2nOzwr1Bgu','C2vZC2LVBG','DgHLBG','C25HChnOB3rZ','mtaWndiWyxrTqvj2','zMLUywXSEq','mtyYEfLNC1r6','y3vYCMvUDa','mZC1mte3nenSu1rnuW','CMvHzenVBNrLEhrvC2fNzq','CgvYy2vUDgfNzq','zxH0zxjUywXtzxnZAw9Uswq','C3rYAw5N','y2f0y2G','Bw9KzwW','CMvHza','B3b0Aw9UCW','C2v0','Dw5Yzwy','z2v0','ChjVzhvJDa','zgvSzxrL','C25HChnOB3q','oe1yC2rwsG','ChvIBgLZAa','C3rVChbLza','DMvYC2LVBNm','y2XLyxi','C25HChnOB3ruAw1LCNm','CNvUBMvYCW','y2XLyxjtBMfWC2HVDa','odHxvKzPEum','CM91BMq','DgLTzxjZ','D29YA3nWywnLswq','nuzozhrODW','nZy5ndKWq011zefk','DxnLzfrVA2vUCW','DMfSDwvZ','otGXm0zmvfHWzG','mte3mtC1mNLzt2rRua','BgvUz3rO'];_0x3928=function(){return _0x444114;};return _0x3928();}const REFRESH_DELAYS_MS=[0xf2*-0x1+0xaaf+-0x959,-0x3a*0x45+0x11*0x22+0xef0,-0x2*0x63+-0x29*0xad+0x2063],CONTEXT_SNAPSHOT_TTL_MS=(-0x581*-0x1+0x1*-0xfd1+-0x1*-0xa6e)*(0x1*0x122f2+0x39*-0x599+0x1067f);export class SessionContextService{[_0x11350d(0xfd)];[_0x11350d(0xf0)]=new Map();[_0x11350d(0x109)]=new Map();[_0x11350d(0x10e)]=new Map();[_0x11350d(0x107)]=new Map();constructor(_0x1a412a){const _0x58f6b6=_0x11350d;this[_0x58f6b6(0xfd)]=_0x1a412a;}async[_0x11350d(0xfc)](_0x1cfa36){const _0x1d8245=_0x11350d;if(_0x1cfa36[_0x1d8245(0xf8)]===null)return this[_0x1d8245(0x10b)](_0x1cfa36['id']),{'context':null,'pending':![]};const _0x38f75f=await this[_0x1d8245(0xfd)][_0x1d8245(0x10a)][_0x1d8245(0x101)](_0x1cfa36[_0x1d8245(0x11c)])?.[_0x1d8245(0xf6)](_0x1cfa36);if(_0x38f75f===undefined)return this[_0x1d8245(0x10b)](_0x1cfa36['id']),{'context':null,'pending':![]};const _0x37f31a={'model':_0x38f75f[_0x1d8245(0xfb)]??_0x1cfa36[_0x1d8245(0xfb)],'usedTokens':_0x38f75f[_0x1d8245(0x112)],'maxTokens':_0x38f75f[_0x1d8245(0x11a)],'percentage':Math[_0x1d8245(0x10d)](_0x38f75f[_0x1d8245(0x112)]/_0x38f75f[_0x1d8245(0x11a)]*(-0x10*0x1a5+0x1a29+0x40f))/(0x2220+-0x1*-0xf85+-0x53*0x99)};this[_0x1d8245(0xf0)][_0x1d8245(0xfe)](_0x1cfa36['id'],_0x37f31a);const _0x3e2e24=this[_0x1d8245(0x109)][_0x1d8245(0x100)](_0x1cfa36['id']);if(_0x3e2e24!==undefined)clearTimeout(_0x3e2e24);const _0x2271f5=setTimeout(()=>{const _0x305631=_0x1d8245;this[_0x305631(0x109)][_0x305631(0x102)](_0x1cfa36['id']),this[_0x305631(0xf0)][_0x305631(0x102)](_0x1cfa36['id']);},CONTEXT_SNAPSHOT_TTL_MS);return _0x2271f5[_0x1d8245(0xff)](),this[_0x1d8245(0x109)][_0x1d8245(0xfe)](_0x1cfa36['id'],_0x2271f5),{'context':_0x37f31a,'pending':![]};}[_0x11350d(0x103)](_0x46e7af){const _0x2e5856=_0x11350d;return this[_0x2e5856(0xf0)][_0x2e5856(0x100)](_0x46e7af)??null;}[_0x11350d(0xed)](_0x10f6e5){const _0x4f9a78=_0x11350d,_0x460f4f=typeof _0x10f6e5===_0x4f9a78(0xf9)?_0x10f6e5:_0x10f6e5['id'],_0x8c9495=typeof _0x10f6e5===_0x4f9a78(0xf9)?undefined:_0x10f6e5,_0x387819=this[_0x4f9a78(0x10e)][_0x4f9a78(0x100)](_0x460f4f);if(_0x387819!==undefined)clearTimeout(_0x387819);this[_0x4f9a78(0x10e)][_0x4f9a78(0x102)](_0x460f4f);const _0x5c4efe=(this[_0x4f9a78(0x107)][_0x4f9a78(0x100)](_0x460f4f)??-0x255+-0x264f+0x28a4)+(0xda8*-0x2+-0xea1+0x19d*0x1a);this[_0x4f9a78(0x107)][_0x4f9a78(0xfe)](_0x460f4f,_0x5c4efe);let _0x273bd5=this[_0x4f9a78(0xf0)][_0x4f9a78(0x100)](_0x460f4f);const _0x4a1ef3=_0x2be342=>{const _0xba663f=_0x4f9a78,_0xff5e51=setTimeout(()=>{const _0x2bbd61=_0x3441;if(this[_0x2bbd61(0x10e)][_0x2bbd61(0x100)](_0x460f4f)===_0xff5e51)this[_0x2bbd61(0x10e)][_0x2bbd61(0x102)](_0x460f4f);if(!this[_0x2bbd61(0xf4)](_0x460f4f,_0x5c4efe))return;const _0x16335f=this[_0x2bbd61(0xfd)][_0x2bbd61(0xee)](_0x460f4f)??_0x8c9495;if(_0x16335f===undefined||_0x16335f[_0x2bbd61(0xf8)]===null)return;void this[_0x2bbd61(0xfc)](_0x16335f)[_0x2bbd61(0xef)](({context:_0x30b93f})=>{const _0x3eb654=_0x2bbd61;if(!this[_0x3eb654(0xf4)](_0x460f4f,_0x5c4efe))return;if(_0x30b93f===null){if(_0x273bd5===undefined)return;_0x273bd5=undefined,this[_0x3eb654(0xfd)][_0x3eb654(0x105)]({'sessionId':_0x16335f['id'],'workspaceId':_0x16335f[_0x3eb654(0x10f)],'context':null,'pending':![]});}else(_0x273bd5===undefined||!sameUsage(_0x273bd5,_0x30b93f))&&(_0x273bd5=_0x30b93f,this[_0x3eb654(0xfd)][_0x3eb654(0x105)]({'sessionId':_0x16335f['id'],'workspaceId':_0x16335f[_0x3eb654(0x10f)],'context':_0x30b93f,'pending':![]}));})[_0x2bbd61(0xfa)](()=>undefined)[_0x2bbd61(0xf2)](()=>{const _0x2bf4e4=_0x2bbd61;if(!this[_0x2bf4e4(0xf4)](_0x460f4f,_0x5c4efe))return;if(_0x2be342+(0x1*-0xb0c+0x8c4+0x249)<REFRESH_DELAYS_MS[_0x2bf4e4(0x116)])_0x4a1ef3(_0x2be342+(-0x1*0x23ce+0x25db+-0x20c));else this[_0x2bf4e4(0x107)][_0x2bf4e4(0x102)](_0x460f4f);});},REFRESH_DELAYS_MS[_0x2be342]);this[_0xba663f(0x10e)][_0xba663f(0xfe)](_0x460f4f,_0xff5e51),_0xff5e51[_0xba663f(0xff)]();};_0x4a1ef3(0x1*-0x677+-0x2f5*0xb+0x26fe);}[_0x11350d(0x118)](){const _0x3de8d4=_0x11350d;for(const _0xd46d32 of this[_0x3de8d4(0x10e)][_0x3de8d4(0x113)]())clearTimeout(_0xd46d32);for(const _0x465559 of this[_0x3de8d4(0x109)][_0x3de8d4(0x113)]())clearTimeout(_0x465559);this[_0x3de8d4(0x10e)][_0x3de8d4(0x108)](),this[_0x3de8d4(0x109)][_0x3de8d4(0x108)](),this[_0x3de8d4(0x107)][_0x3de8d4(0x108)](),this[_0x3de8d4(0xf0)][_0x3de8d4(0x108)]();}[_0x11350d(0xf4)](_0x37c187,_0x572de7){const _0x50a331=_0x11350d;return!this[_0x50a331(0xfd)][_0x50a331(0x106)]()&&this[_0x50a331(0x107)][_0x50a331(0x100)](_0x37c187)===_0x572de7;}[_0x11350d(0x10b)](_0x14ddd3){const _0x4ead41=_0x11350d,_0x5c72d7=this[_0x4ead41(0x109)][_0x4ead41(0x100)](_0x14ddd3);if(_0x5c72d7!==undefined)clearTimeout(_0x5c72d7);this[_0x4ead41(0x109)][_0x4ead41(0x102)](_0x14ddd3),this[_0x4ead41(0xf0)][_0x4ead41(0x102)](_0x14ddd3);}}function _0x3441(_0x460f4f,_0x8c9495){_0x460f4f=_0x460f4f-(0x3*-0xc57+0x1a7*0xc+0x121e);const _0x387819=_0x3928();let _0x5c4efe=_0x387819[_0x460f4f];if(_0x3441['wHTTsf']===undefined){var _0x273bd5=function(_0xff5e51){const _0x16335f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30b93f='',_0xd46d32='';for(let _0x465559=-0x1*0x76e+0x2f9*-0xd+-0x695*-0x7,_0x37c187,_0x572de7,_0x14ddd3=0x25*-0x35+-0xfa2+0x43*0x59;_0x572de7=_0xff5e51['charAt'](_0x14ddd3++);~_0x572de7&&(_0x37c187=_0x465559%(-0x217c+-0x2*0x63+-0x52*-0x6b)?_0x37c187*(-0x13ab+-0x581*-0x1+0x29*0x5a)+_0x572de7:_0x572de7,_0x465559++%(-0x20*-0x6+0x1*-0x183+0x1*0xc7))?_0x30b93f+=String['fromCharCode'](0x15*-0xe2+-0x1a50+0x2dd9&_0x37c187>>(-(-0x1*0x203b+-0x8*-0x444+-0x15*0x17)*_0x465559&-0x255+-0x264f+0x28aa)):0xda8*-0x2+-0xea1+0x4a9*0x9){_0x572de7=_0x16335f['indexOf'](_0x572de7);}for(let _0x5c72d7=0x1*-0xb0c+0x8c4+0x248,_0x5a1888=_0x30b93f['length'];_0x5c72d7<_0x5a1888;_0x5c72d7++){_0xd46d32+='%'+('00'+_0x30b93f['charCodeAt'](_0x5c72d7)['toString'](-0x1*0x23ce+0x25db+-0x1fd))['slice'](-(0x1*-0x677+-0x2f5*0xb+0x2700));}return decodeURIComponent(_0xd46d32);};_0x3441['rFyYcO']=_0x273bd5,_0x3441['nfyPqI']={},_0x3441['wHTTsf']=!![];}const _0x4a1ef3=_0x387819[0x2*-0x8c8+-0x5*0x311+-0x4b3*-0x7];_0x3441['zUbfwF']!==_0x4a1ef3&&(_0x3441['nfyPqI']={},_0x3441['zUbfwF']=_0x4a1ef3);const _0x2be342=_0x3441['nfyPqI'][_0x460f4f];return _0x2be342===undefined?(_0x5c4efe=_0x3441['rFyYcO'](_0x5c4efe),_0x3441['nfyPqI'][_0x460f4f]=_0x5c4efe):_0x5c4efe=_0x2be342,_0x5c4efe;}function sameUsage(_0x5a1888,_0x4d5602){const _0x294152=_0x11350d;return _0x5a1888[_0x294152(0xfb)]===_0x4d5602[_0x294152(0xfb)]&&_0x5a1888[_0x294152(0x112)]===_0x4d5602[_0x294152(0x112)]&&_0x5a1888[_0x294152(0x11a)]===_0x4d5602[_0x294152(0x11a)]&&_0x5a1888[_0x294152(0xf7)]===_0x4d5602[_0x294152(0xf7)];}
|