@myagentroam/node 0.9.23 → 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.
@@ -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 _0x693d35=_0x9c33;function _0x9c33(_0x1d627b,_0x5b7c66){_0x1d627b=_0x1d627b-(-0x1a9*0x5+0x1633+-0xbf3);const _0x1db7ad=_0x39fe();let _0x538ea6=_0x1db7ad[_0x1d627b];if(_0x9c33['klYUEC']===undefined){var _0xa95777=function(_0x218bf3){const _0x58419a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e5153='',_0x4da85e='';for(let _0x57baeb=-0x1*-0x5c4+-0x4*0x5b3+0x1108,_0x19d901,_0x31ef57,_0x26e1fb=0x3*0x9d9+-0x1*-0x877+-0x2602;_0x31ef57=_0x218bf3['charAt'](_0x26e1fb++);~_0x31ef57&&(_0x19d901=_0x57baeb%(-0x6d+0xe02+-0xd91)?_0x19d901*(-0x4*-0x7cf+-0x1*-0x55d+-0x2459)+_0x31ef57:_0x31ef57,_0x57baeb++%(-0xc5*-0x2b+0x736+-0x2849))?_0x4e5153+=String['fromCharCode'](0x868+0x1e83+0x6*-0x652&_0x19d901>>(-(0x23d2+-0xdc9+-0x1607)*_0x57baeb&0x116a+-0x1be2+0x4f*0x22)):-0x6*-0x1c6+0xc9d+-0x1*0x1741){_0x31ef57=_0x58419a['indexOf'](_0x31ef57);}for(let _0x1051be=0xf92*-0x2+0x9a*-0x1f+0x1*0x31ca,_0x14da00=_0x4e5153['length'];_0x1051be<_0x14da00;_0x1051be++){_0x4da85e+='%'+('00'+_0x4e5153['charCodeAt'](_0x1051be)['toString'](0x12*0x16+-0xf7*0x14+0x11d0))['slice'](-(-0x9*-0xc5+0x2232+-0x291d));}return decodeURIComponent(_0x4da85e);};_0x9c33['qVxtGn']=_0xa95777,_0x9c33['ioGZlm']={},_0x9c33['klYUEC']=!![];}const _0x1d80a1=_0x1db7ad[0x37*0x40+-0x47d*0x1+0x943*-0x1];_0x9c33['wKyROl']!==_0x1d80a1&&(_0x9c33['ioGZlm']={},_0x9c33['wKyROl']=_0x1d80a1);const _0x1d4aa9=_0x9c33['ioGZlm'][_0x1d627b];return _0x1d4aa9===undefined?(_0x538ea6=_0x9c33['qVxtGn'](_0x538ea6),_0x9c33['ioGZlm'][_0x1d627b]=_0x538ea6):_0x538ea6=_0x1d4aa9,_0x538ea6;}function _0x39fe(){const _0x33f98b=['DMvYC2LVBNm','CM91BMq','CNvUBMvY','zxH0zxjUywXtzxnZAw9Uswq','Bwf4vg9Rzw5Z','CgvYy2vUDgfNzq','C3rYAw5N','z2v0','CMvHza','DgHLBG','DMfSDwvZ','nJK3mM9lq1fkva','C3rVChbLza','mZy1mZe2n09bA0HLEG','C25HChnOB3ruAw1LCNm','C25HChnOB3rZ','y3vYCMvUDa','zgvSzxrL','mtjtvNbns0e','C2nOzwr1Bgu','mZe5mdL4v29KBLa','C25HChnOB3q','y2XLyxi','mtj4EfzZvhe','CMvHzenVBNrLEhrvC2fNzq','mJKWodKWmJDeD0f0t1u','CNvUBMvYCW','C2v0','ovDsAxzJDa','B3b0Aw9UCW','ChjVzhvJDa','BgvUz3rO','Bw9KzwW','DgLTzxjZ','ChvIBgLZAa','ote4ntiWDhfVt3Ll','oti3mZC5mfjIuhPcta','zMLUywXSEq','D29YA3nWywnLswq','Dw5Yzwy','C2vZC2LVBG','DxnLzfrVA2vUCW','y2f0y2G','mtuZnJm1wu9Pu2XN','zgLZCg9Zzq','odzZqMzJDMu'];_0x39fe=function(){return _0x33f98b;};return _0x39fe();}(function(_0x3e62a6,_0x52714f){const _0x309f0a=_0x9c33,_0x576eb5=_0x3e62a6();while(!![]){try{const _0x186fb=parseInt(_0x309f0a(0x206))/(0xa28+0x4*-0x871+0xc3*0x1f)+-parseInt(_0x309f0a(0x21f))/(-0x1*0x75b+-0x1873*-0x1+0xa2*-0x1b)*(-parseInt(_0x309f0a(0x1fd))/(0x2*-0xdaf+0xf74*-0x2+-0x1*-0x3a49))+parseInt(_0x309f0a(0x204))/(0x1fa4+0x5d1*0x5+0x1*-0x3cb5)*(-parseInt(_0x309f0a(0x21d))/(-0x150d+0xd6*-0xe+-0x20c6*-0x1))+parseInt(_0x309f0a(0x209))/(0x7*0x51b+0x95*0x9+-0x28f4)*(-parseInt(_0x309f0a(0x1ff))/(0x1*-0x174d+0x1571*0x1+0x1e3))+-parseInt(_0x309f0a(0x215))/(0x53*-0x3+0x2547+-0x2446)+parseInt(_0x309f0a(0x20e))/(-0x1ca9+-0xf*-0x34+-0x19a6*-0x1)*(-parseInt(_0x309f0a(0x216))/(-0x38*0x73+-0x1*-0x20ef+0x7*-0x11b))+parseInt(_0x309f0a(0x20b))/(0x40+-0x3+-0x32);if(_0x186fb===_0x52714f)break;else _0x576eb5['push'](_0x576eb5['shift']());}catch(_0x49d7f1){_0x576eb5['push'](_0x576eb5['shift']());}}}(_0x39fe,0x8a026+-0x226cb+0x2a736));const REFRESH_DELAYS_MS=[0x1eb2+0x9*-0x1a9+0x13*-0xcf,0x1146+-0x254+-0x6*0x23b,0x4*-0x63f+-0x1d*0x3a+-0x22*-0x10b],CONTEXT_SNAPSHOT_TTL_MS=(0x2*-0x61+0x2117+-0x2037)*(-0x1*0x18598+0x64e0+0x4c*0x6e2);export class SessionContextService{[_0x693d35(0x20f)];[_0x693d35(0x201)]=new Map();[_0x693d35(0x200)]=new Map();[_0x693d35(0x213)]=new Map();[_0x693d35(0x220)]=new Map();constructor(_0x1d627b){const _0x333bd5=_0x693d35;this[_0x333bd5(0x20f)]=_0x1d627b;}async[_0x693d35(0x1fa)](_0x5b7c66){const _0x4160c4=_0x693d35;if(_0x5b7c66[_0x4160c4(0x1f5)]===null)return{'context':null,'pending':![]};const _0x1db7ad=await this[_0x4160c4(0x20f)][_0x4160c4(0x20c)][_0x4160c4(0x210)](_0x5b7c66[_0x4160c4(0x1f4)])?.[_0x4160c4(0x20a)](_0x5b7c66);if(_0x1db7ad===undefined)return{'context':null,'pending':![]};const _0x538ea6={'model':_0x1db7ad[_0x4160c4(0x212)]??_0x5b7c66[_0x4160c4(0x212)],'usedTokens':_0x1db7ad[_0x4160c4(0x21b)],'maxTokens':_0x1db7ad[_0x4160c4(0x1f6)],'percentage':Math[_0x4160c4(0x1f3)](_0x1db7ad[_0x4160c4(0x21b)]/_0x1db7ad[_0x4160c4(0x1f6)]*(0x23d2+-0xdc9+-0x1221))/(0x116a+-0x1be2+0x10d*0xa)};this[_0x4160c4(0x201)][_0x4160c4(0x20d)](_0x5b7c66['id'],_0x538ea6);const _0xa95777=this[_0x4160c4(0x200)][_0x4160c4(0x1f9)](_0x5b7c66['id']);if(_0xa95777!==undefined)clearTimeout(_0xa95777);const _0x1d80a1=setTimeout(()=>{const _0x424cd5=_0x4160c4;this[_0x424cd5(0x200)][_0x424cd5(0x203)](_0x5b7c66['id']),this[_0x424cd5(0x201)][_0x424cd5(0x203)](_0x5b7c66['id']);},CONTEXT_SNAPSHOT_TTL_MS);return _0x1d80a1[_0x4160c4(0x219)](),this[_0x4160c4(0x200)][_0x4160c4(0x20d)](_0x5b7c66['id'],_0x1d80a1),{'context':_0x538ea6,'pending':![]};}[_0x693d35(0x207)](_0x1d4aa9){const _0x34c6e8=_0x693d35;return this[_0x34c6e8(0x201)][_0x34c6e8(0x1f9)](_0x1d4aa9)??null;}[_0x693d35(0x205)](_0x218bf3){const _0x1bd59e=_0x693d35,_0x58419a=typeof _0x218bf3===_0x1bd59e(0x1f8)?_0x218bf3:_0x218bf3['id'],_0x4e5153=typeof _0x218bf3===_0x1bd59e(0x1f8)?undefined:_0x218bf3,_0x4da85e=this[_0x1bd59e(0x213)][_0x1bd59e(0x1f9)](_0x58419a);if(_0x4da85e!==undefined)clearTimeout(_0x4da85e);this[_0x1bd59e(0x213)][_0x1bd59e(0x203)](_0x58419a);const _0x57baeb=(this[_0x1bd59e(0x220)][_0x1bd59e(0x1f9)](_0x58419a)??-0x6*-0x1c6+0xc9d+-0x1*0x1741)+(0xf92*-0x2+0x9a*-0x1f+0x1*0x31cb);this[_0x1bd59e(0x220)][_0x1bd59e(0x20d)](_0x58419a,_0x57baeb);let _0x19d901=this[_0x1bd59e(0x201)][_0x1bd59e(0x1f9)](_0x58419a);const _0x31ef57=_0x26e1fb=>{const _0x3c37f9=_0x1bd59e,_0x1051be=setTimeout(()=>{const _0x21c527=_0x9c33;if(this[_0x21c527(0x213)][_0x21c527(0x1f9)](_0x58419a)===_0x1051be)this[_0x21c527(0x213)][_0x21c527(0x203)](_0x58419a);if(!this[_0x21c527(0x202)](_0x58419a,_0x57baeb))return;const _0x14da00=this[_0x21c527(0x20f)][_0x21c527(0x21a)](_0x58419a)??_0x4e5153;if(_0x14da00===undefined||_0x14da00[_0x21c527(0x1f5)]===null)return;void this[_0x21c527(0x1fa)](_0x14da00)[_0x21c527(0x1fb)](({context:_0x40c5e8})=>{const _0x4051d3=_0x21c527;if(!this[_0x4051d3(0x202)](_0x58419a,_0x57baeb))return;_0x40c5e8!==null&&(_0x19d901===undefined||!sameUsage(_0x19d901,_0x40c5e8))&&(_0x19d901=_0x40c5e8,this[_0x4051d3(0x20f)][_0x4051d3(0x214)]({'sessionId':_0x14da00['id'],'workspaceId':_0x14da00[_0x4051d3(0x218)],'context':_0x40c5e8,'pending':![]}));})[_0x21c527(0x21c)](()=>undefined)[_0x21c527(0x217)](()=>{const _0x171c15=_0x21c527;if(!this[_0x171c15(0x202)](_0x58419a,_0x57baeb))return;if(_0x26e1fb+(0x12*0x16+-0xf7*0x14+0x11c1)<REFRESH_DELAYS_MS[_0x171c15(0x211)])_0x31ef57(_0x26e1fb+(-0x9*-0xc5+0x2232+-0x291e));else this[_0x171c15(0x220)][_0x171c15(0x203)](_0x58419a);});},REFRESH_DELAYS_MS[_0x26e1fb]);this[_0x3c37f9(0x213)][_0x3c37f9(0x20d)](_0x58419a,_0x1051be),_0x1051be[_0x3c37f9(0x219)]();};_0x31ef57(0x37*0x40+-0x47d*0x1+0x943*-0x1);}[_0x693d35(0x21e)](){const _0x5f19f0=_0x693d35;for(const _0x36bb9e of this[_0x5f19f0(0x213)][_0x5f19f0(0x1fc)]())clearTimeout(_0x36bb9e);for(const _0x333e7c of this[_0x5f19f0(0x200)][_0x5f19f0(0x1fc)]())clearTimeout(_0x333e7c);this[_0x5f19f0(0x213)][_0x5f19f0(0x208)](),this[_0x5f19f0(0x200)][_0x5f19f0(0x208)](),this[_0x5f19f0(0x220)][_0x5f19f0(0x208)](),this[_0x5f19f0(0x201)][_0x5f19f0(0x208)]();}[_0x693d35(0x202)](_0x3c25cf,_0x4db19b){const _0x211006=_0x693d35;return!this[_0x211006(0x20f)][_0x211006(0x1fe)]()&&this[_0x211006(0x220)][_0x211006(0x1f9)](_0x3c25cf)===_0x4db19b;}}function sameUsage(_0x1ebae4,_0x4703a0){const _0x49952c=_0x693d35;return _0x1ebae4[_0x49952c(0x212)]===_0x4703a0[_0x49952c(0x212)]&&_0x1ebae4[_0x49952c(0x21b)]===_0x4703a0[_0x49952c(0x21b)]&&_0x1ebae4[_0x49952c(0x1f6)]===_0x4703a0[_0x49952c(0x1f6)]&&_0x1ebae4[_0x49952c(0x1f7)]===_0x4703a0[_0x49952c(0x1f7)];}
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)];}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0xe862(){const _0xb712a0=['mtzYCgLkrLO','B3b0Aw9UCW','twLZC2LVBIbdB250Aw51zq','CMvXDwLYzq','y29TBwfUzhm','CgvUzgLUz01LC3nHz2vZ','C29Tzq','zxH0zxjUywXtzxnZAw9Uswq','B2jQzwn0','DxbSB2fKCW','ndK3mtiZEhnuugns','CgXHBG','ywnJzxb0','twLZC2LVBIbtDgfYDa','ywn0AxzLu2vZC2LVBLj1BG','A2LUza','zgvMzxjYzwq','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','z2v0','z2v0qwDLBNrtzxnZAw9U','AxnbCNjHEq','mM1pyK95wq','D29YA3nWywnLswq','CMvZB2X2zq','BgLZDa','C3vIBwL0twLZC2LVBG','tuvtu0fhrv9jtLzbteLe','y2XLyw51Ca','BwLZC2LVBK1LC3nHz2u','ntb4ANbYtMm','tuvtu0fhrv9quKvqqvjbveLptL9gquLmruq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','mZyWmdC4veTVzuPr','CxvLDwvjDgvT','y2fJAgu','ChjLC2vUDa','y2XLyxi','CNvUDgLTzq','yxr0ywnOBwvUDhm','CgvYC2LZDef0DgfJAg1LBNrZ','C2vZC2LVBKLK','zMLUze1LC3nHz2vtDwjTAxnZAw9U','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','mte3nJKZA1bfvhPM','zMLSDgvY','Dg9Rzw4','CgvYC2LZDezPBgvZ','ChvIBgLZAen1CNjLBNruDxjU','ywn0AxzHDgvK','AxnjBNrLz2vY','CMvHzhK','zgvMyxvSDa','u0vtu0LptL9jtLzbteLe','B3bLCMf0Aw9UCW','BwvZC2fNzq','mtqYotC3mgjnDxbgua','uvvfvuu','C2vZC2LVBG','BwfYqwDLBNrnB2rLBa','y29UC3vTzq','y29TBwfUzeLK','y3DK','uKvtvefsveLorW','CxvLDwu','Aw50zxjUywXnAxnZAw9U','mtyWmdqYnxrQCeP2sG','ndjtwuzXBMu','nJi0nJzMuePHthy','BwLZC2LVBG','y2XPzw50twvZC2fNzuLK','CNvU','zw1PDfnLC3nPB24','x19Yzxf1zxn0vxnLCKLK','BwfW','zgvSzxrL','C2vZC2LVBLf1zxvL','uKvqtefdrv9dvvjsru5u','BwLZC2LVBJO','y2HHBM5LBfrVA2vU','CNvUBMvY','y2f0y2G','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','zMfZDa','BwLZC2LVBLbYzxbHCMf0Aw9UrMfPBgvK','AxntywzLsw50zwDLCG','yxr0ywnOBwvUDeLKCW','CMv2AxnPB24','AxrLBq','ChjLCgfYzu1LC3nHz2vjBNb1Da','CNvUBMvYCW','x19TAxnZAw9U','ChjLCgfYzq','uvvfvuve','C3rYAw5N','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','mtmXmZi4otzyvenJAKq','BwfYqwDLBNrnB2rLBhm','Bw9KzwW','x19YDw5UzxjdB250zw50','ChjLCgfYzu1PC3nPB25jBNnLCNrPB24','C3rHCNq','CgvYC29UywXjBNn0CNvJDgLVBNm','zMfPBfbYzxbHCMf0Aw9U','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','zwzMB3j0','ywnJzxnZ','BgvUz3rO','C2vJCMv0rw52AxjVBM1LBNq','ntuYy0fVA0vL','CNvUBMvYq29UDgvUDa','C2v0','y29UDgvUDa','yxr0ywnOBwvUDa','y2HHBM5LBe1LC3nHz2u','u1rbuLrfra','C2v0DgXL','x19TAxnZAw9UuMvM','u0vora','C2vYDMLJzvrPzxi','zgvSAxzLCNLjBNrLBNq','y29VCMrPBMf0B3i'];_0xe862=function(){return _0xb712a0;};return _0xe862();}const _0x2ab189=_0x2660;(function(_0x559b03,_0x4a1826){const _0x2e7433=_0x2660,_0x365557=_0x559b03();while(!![]){try{const _0x48ae54=parseInt(_0x2e7433(0x1c6))/(-0x10d4+0x4*-0x680+-0xff*-0x2b)*(-parseInt(_0x2e7433(0x212))/(-0x1*-0x446+-0x4*0x4f4+0xf8c))+parseInt(_0x2e7433(0x21d))/(0x7df+-0x64d+0x18f*-0x1)*(-parseInt(_0x2e7433(0x1fd))/(0xe6a+0xa0e+-0x1874))+-parseInt(_0x2e7433(0x1c4))/(0x11f*-0x1d+-0x1c52+0x1e6d*0x2)+parseInt(_0x2e7433(0x1ba))/(-0x702+0x4bd+-0x1*-0x24b)*(parseInt(_0x2e7433(0x1c5))/(0x1486+-0x19dc+0x55d))+-parseInt(_0x2e7433(0x1f0))/(0x20a6+-0x1*-0x23ae+-0x444c)*(parseInt(_0x2e7433(0x228))/(0x1*-0xa39+0x1c74*-0x1+0x26b6))+parseInt(_0x2e7433(0x21a))/(-0x1a85*0x1+-0xc74+-0x1*-0x2703)*(parseInt(_0x2e7433(0x207))/(-0x2f1+0x1*0xa8d+-0x791))+parseInt(_0x2e7433(0x1e3))/(-0xcbd*-0x1+0x1*-0x73f+-0x572);if(_0x48ae54===_0x4a1826)break;else _0x365557['push'](_0x365557['shift']());}catch(_0x2f05c3){_0x365557['push'](_0x365557['shift']());}}}(_0xe862,0x2e*0x4c67+0x89bf2+-0x35*0x2349));import{randomUUID}from'node:crypto';function _0x2660(_0xc31afe,_0x3bf3a2){_0xc31afe=_0xc31afe-(0xd27+-0x1931+0xdbc);const _0x54008f=_0xe862();let _0x3dae79=_0x54008f[_0xc31afe];if(_0x2660['JzbTJQ']===undefined){var _0xc000cf=function(_0x5b1c44){const _0x9e044='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48990c='',_0x28e92c='';for(let _0x64889e=-0xe0b+0x2bb*-0x2+0x1381,_0x4a00ea,_0x5f1c9f,_0x283a62=0x23b1+0x1*0x18ee+-0x3c9f;_0x5f1c9f=_0x5b1c44['charAt'](_0x283a62++);~_0x5f1c9f&&(_0x4a00ea=_0x64889e%(0x253d*-0x1+0x1274+-0x12cd*-0x1)?_0x4a00ea*(0x17*0x4f+0x1334+-0x1a0d)+_0x5f1c9f:_0x5f1c9f,_0x64889e++%(-0x25b7+-0x406+-0x3*-0xdeb))?_0x48990c+=String['fromCharCode'](-0x4*0x770+-0xa*0x3e+-0x212b*-0x1&_0x4a00ea>>(-(-0x5*-0x4d+0x23a+-0x3b9)*_0x64889e&0xa57+0x1f*-0xa9+-0x2*-0x513)):0x1*0x131c+0x8c2+-0x1bde){_0x5f1c9f=_0x9e044['indexOf'](_0x5f1c9f);}for(let _0xf425f0=-0x2*-0xbd3+0x243e+-0x3be4,_0x9644b4=_0x48990c['length'];_0xf425f0<_0x9644b4;_0xf425f0++){_0x28e92c+='%'+('00'+_0x48990c['charCodeAt'](_0xf425f0)['toString'](0x65*0x27+-0x4*-0x6a3+-0x29df))['slice'](-(0x1e8c+0x1*-0x82d+-0x165d));}return decodeURIComponent(_0x28e92c);};_0x2660['ugrfEd']=_0xc000cf,_0x2660['CfsiWp']={},_0x2660['JzbTJQ']=!![];}const _0x3deb3b=_0x54008f[-0x22b8+0x1bf4+0x6c4];_0x2660['ERjfKL']!==_0x3deb3b&&(_0x2660['CfsiWp']={},_0x2660['ERjfKL']=_0x3deb3b);const _0x367137=_0x2660['CfsiWp'][_0xc31afe];return _0x367137===undefined?(_0x3dae79=_0x2660['ugrfEd'](_0x3dae79),_0x2660['CfsiWp'][_0xc31afe]=_0x3dae79):_0x3dae79=_0x367137,_0x3dae79;}import{isImageAttachment,isRunnerImageAttachment,parseComposerAttachmentIds,parseMessageAttachments,sessionTitleFromFirstMessage,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{parseSecretEnvironment}from'../util/secret-environment.js';import{personalInstructionsForRunner}from'../util/personal-instructions.js';import{safeErrorCode}from'../util/safe-error.js';const INTERNAL_MISSION=Symbol(_0x2ab189(0x1c3));export class SessionMessageService{[_0x2ab189(0x1fe)];[_0x2ab189(0x202)]=new Map();constructor(_0x54f903){const _0x427bab=_0x2ab189;this[_0x427bab(0x1fe)]=_0x54f903;}[_0x2ab189(0x1b8)](){const _0x1bd730=_0x2ab189;return{'session.message':_0x25b574=>this[_0x1bd730(0x1b9)](record(_0x25b574)),'session.channel.message':_0x2db24a=>this[_0x1bd730(0x1f5)](record(_0x2db24a)),'session.channel.token':_0x3c47f0=>this[_0x1bd730(0x1d1)](record(_0x3c47f0))};}[_0x2ab189(0x216)](_0x32c91b){const _0x4072b6=_0x2ab189;return this[_0x4072b6(0x1b9)]({[INTERNAL_MISSION]:!![],'sessionId':_0x32c91b[_0x4072b6(0x225)],'clientMessageId':_0x4072b6(0x1d0)+randomUUID(),'content':_0x32c91b[_0x4072b6(0x20c)]===_0x4072b6(0x1e8)?_0x4072b6(0x20a):_0x4072b6(0x1ff),'__runnerContent':_0x32c91b[_0x4072b6(0x1f3)],'__missionRef':_0x32c91b[_0x4072b6(0x1c7)],'deliveryIntent':_0x32c91b[_0x4072b6(0x1fb)],'secretEnvironment':_0x32c91b[_0x4072b6(0x1ef)],'personalInstructions':_0x32c91b[_0x4072b6(0x1e9)]});}async[_0x2ab189(0x1b9)](_0x24aff0){const _0x11364b=_0x2ab189;if(typeof _0x24aff0[_0x11364b(0x225)]!==_0x11364b(0x1e1)||typeof _0x24aff0[_0x11364b(0x1c8)]!==_0x11364b(0x1e1)||_0x24aff0[_0x11364b(0x1c8)][_0x11364b(0x1ee)]===-0x2fe*0x4+0x1*0x23b1+-0x17b9||typeof _0x24aff0[_0x11364b(0x1f3)]!==_0x11364b(0x1e1)||_0x24aff0[_0x11364b(0x1f3)][_0x11364b(0x1ee)]===0x253d*-0x1+0x1274+-0x643*-0x3)throw new Error(_0x11364b(0x217));const _0x5504a5=_0x24aff0[_0x11364b(0x1c8)],_0x51ce58=_0x24aff0[_0x11364b(0x1f3)],_0x2b8ae9=_0x24aff0[INTERNAL_MISSION]===!![],_0x11a279=_0x2b8ae9&&typeof _0x24aff0[_0x11364b(0x1e6)]===_0x11364b(0x1e1)?_0x24aff0[_0x11364b(0x1e6)]:_0x51ce58,_0x2b3659=parseMessageAttachments(_0x24aff0[_0x11364b(0x223)]),_0xc31afe=parseSecretEnvironment(_0x24aff0[_0x11364b(0x1ef)]),_0x3bf3a2=parseComposerAttachmentIds(_0x24aff0[_0x11364b(0x1d9)]);if(_0x2b3659[_0x11364b(0x1ee)]>0x17*0x4f+0x1334+-0x1a4d&&_0x3bf3a2[_0x11364b(0x1ee)]>-0x25b7+-0x406+-0x1*-0x29bd)throw new Error(_0x11364b(0x1d5));const _0x54008f=await this[_0x11364b(0x1fe)][_0x11364b(0x214)](_0x24aff0[_0x11364b(0x225)]),_0x3dae79=_0x54008f[_0x11364b(0x1bc)],_0xc000cf=_0x2b8ae9&&typeof _0x24aff0[_0x11364b(0x1e9)]===_0x11364b(0x1e1)?_0x24aff0[_0x11364b(0x1e9)]:personalInstructionsForRunner(_0x24aff0[_0x11364b(0x1e9)],_0x3dae79[_0x11364b(0x1d2)]),_0x3deb3b=_0x24aff0[_0x11364b(0x1fb)]??_0x11364b(0x1f9);if(_0x3deb3b!==_0x11364b(0x1f9)&&_0x3deb3b!==_0x11364b(0x1bb)&&_0x3deb3b!==_0x11364b(0x1cf))throw new Error(_0x11364b(0x217));const _0x367137=_0x3dae79['id']+'\x00'+_0x5504a5,_0x5b1c44=this[_0x11364b(0x202)][_0x11364b(0x20f)](_0x367137);if(_0x5b1c44!==undefined)return _0x5b1c44;const _0x9e044=this[_0x11364b(0x1fe)][_0x11364b(0x222)][_0x11364b(0x20e)](_0x3dae79['id'],_0x5504a5);if(_0x9e044!==undefined)throw new Error(_0x9e044);const _0x48990c=this[_0x11364b(0x1fe)][_0x11364b(0x222)][_0x11364b(0x226)](_0x3dae79['id'],_0x5504a5);if(_0x48990c!==undefined)return{'session':this[_0x11364b(0x1fe)][_0x11364b(0x220)](_0x3dae79),'run':_0x48990c[_0x11364b(0x1c9)],..._0x48990c[_0x11364b(0x20c)]===_0x11364b(0x1c2)?{'queueItemId':_0x48990c[_0x11364b(0x1db)]['id']}:{},'delivery':_0x48990c[_0x11364b(0x20c)]===_0x11364b(0x1c2)?_0x11364b(0x1e0):_0x11364b(0x1f6),'idempotent':!![]};const _0x28e92c=_0x2b8ae9?undefined:this[_0x11364b(0x1fe)][_0x11364b(0x219)](_0x3dae79,_0x51ce58),_0x64889e=_0x28e92c?.[_0x11364b(0x1f1)]??_0x11a279,_0x4a00ea=_0x28e92c?.[_0x11364b(0x1b3)]===!![]?_0x11364b(0x20a):_0x51ce58,_0x5f1c9f=_0x28e92c===undefined?_0x3deb3b:_0x11364b(0x1cf),_0x283a62=((async()=>{const _0x4f3e8d=_0x11364b,_0xf425f0=randomUUID(),_0x9644b4=this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x222)][_0x4f3e8d(0x1ce)](_0x3dae79['id']),_0xb36fab=this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x222)][_0x4f3e8d(0x20b)](_0x3dae79['id']),_0xef78b2=_0x5f1c9f===_0x4f3e8d(0x1cf)?_0xb36fab:undefined,_0x565d7b=this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x1fc)][_0x4f3e8d(0x209)]({'runId':_0xf425f0,'sessionId':_0x3dae79['id'],'clientMessageId':_0x5504a5,'content':_0x4a00ea,...Number[_0x4f3e8d(0x1d8)](_0x24aff0[_0x4f3e8d(0x1cb)])?{'initiatedByUserId':_0x24aff0[_0x4f3e8d(0x1cb)]}:{},..._0x2b3659[_0x4f3e8d(0x1ee)]===-0x4*0x770+-0xa*0x3e+-0x80b*-0x4?{}:{'attachments':_0x2b3659}}),_0x253b8d=_0x565d7b[_0x4f3e8d(0x21e)]?.['id']??_0x565d7b[_0x4f3e8d(0x1c9)]['id'],_0x4a796a=_0x24aff0[_0x4f3e8d(0x1de)]===!![]?_0x3dae79:this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x222)][_0x4f3e8d(0x1d4)](_0x3dae79['id'],sessionTitleFromFirstMessage(_0x51ce58)),_0x1fbef1=_0x54008f[_0x4f3e8d(0x20d)]&&_0x3bf3a2[_0x4f3e8d(0x1ee)]===-0x5*-0x4d+0x23a+-0x3bb&&_0x2b3659[_0x4f3e8d(0x1ee)]===0xa57+0x1f*-0xa9+-0x9*-0x120;this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x1ca)](_0x4a796a);if(_0x565d7b[_0x4f3e8d(0x21e)]===undefined)this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x1fc)][_0x4f3e8d(0x1b2)](_0x565d7b[_0x4f3e8d(0x1c9)]['id']);const _0x3088ae=async()=>{const _0xe9d1f8=_0x4f3e8d;try{const _0x5717e0=await _0x54008f[_0xe9d1f8(0x1b5)];if(_0x1fbef1)this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1ca)](_0x5717e0);const _0x17aead=await this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x206)][_0xe9d1f8(0x214)](_0x3dae79[_0xe9d1f8(0x213)],_0x3bf3a2),_0x3c47ee=_0x3bf3a2[_0xe9d1f8(0x1ee)]===0x1*0x131c+0x8c2+-0x1bde?_0x2b3659:_0x17aead[_0xe9d1f8(0x1cc)](_0x2f9450=>_0x2f9450[_0xe9d1f8(0x1f4)]),_0x2fbcc8=_0x3c47ee[_0xe9d1f8(0x229)](isImageAttachment),_0x20db64=_0x3c47ee[_0xe9d1f8(0x229)](isRunnerImageAttachment),_0x1844d9=await this[_0xe9d1f8(0x224)](_0x3dae79,_0xf425f0,_0x3c47ee),_0x4cec08=withNonImageAttachmentPrompt(_0x64889e,_0x1844d9),_0x315f34=this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x201)][_0xe9d1f8(0x215)](_0x3dae79['id'])[_0xe9d1f8(0x203)](_0x5ec30e=>_0x5ec30e[_0xe9d1f8(0x1bf)]===_0xe9d1f8(0x208)),_0x23fb2b=this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1dd)][_0xe9d1f8(0x200)](_0x5717e0[_0xe9d1f8(0x1d2)]);if(_0x565d7b[_0xe9d1f8(0x21e)]===undefined){this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x222)][_0xe9d1f8(0x1e2)](_0x565d7b[_0xe9d1f8(0x1c9)]['id'],_0x3c47ee);if(_0x3bf3a2[_0xe9d1f8(0x1ee)]>-0x2*-0xbd3+0x243e+-0x3be4)this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1fc)][_0xe9d1f8(0x1b2)](_0x565d7b[_0xe9d1f8(0x1c9)]['id']);}else this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x222)][_0xe9d1f8(0x1eb)](_0x565d7b[_0xe9d1f8(0x21e)]['id'],_0x3c47ee);this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1fc)][_0xe9d1f8(0x1df)](_0x253b8d,{'runId':_0xf425f0,'sessionId':_0x5717e0['id'],'workspaceId':_0x5717e0[_0xe9d1f8(0x213)],'runner':_0x5717e0[_0xe9d1f8(0x1d2)],'input':_0x23fb2b[_0xe9d1f8(0x1dc)](_0x4cec08,_0x315f34?_0xe9d1f8(0x208):_0xe9d1f8(0x1b6)),'clientMessageId':_0x5504a5,'attachments':_0x20db64,'attachmentPaths':_0x1844d9,'cwd':_0x5717e0[_0xe9d1f8(0x1c0)],'externalSessionId':_0x5717e0[_0xe9d1f8(0x204)],'model':_0x5717e0[_0xe9d1f8(0x1e5)],'effort':_0x5717e0[_0xe9d1f8(0x1ec)],'access':_0x5717e0[_0xe9d1f8(0x1ed)],'collaborationMode':_0x315f34?_0xe9d1f8(0x208):_0xe9d1f8(0x1b6),'secretEnvironment':_0xc31afe,..._0xc000cf===undefined?{}:{'personalInstructions':_0xc000cf},..._0x24aff0[_0xe9d1f8(0x1bd)]===undefined?{}:{'marAgentModel':_0x24aff0[_0xe9d1f8(0x1bd)]},..._0x24aff0[_0xe9d1f8(0x1e4)]===undefined?{}:{'marAgentModels':_0x24aff0[_0xe9d1f8(0x1e4)]},..._0x28e92c!==undefined?{'mission':_0x28e92c[_0xe9d1f8(0x1c7)]}:isMissionRef(_0x24aff0[_0xe9d1f8(0x1f8)])?{'mission':_0x24aff0[_0xe9d1f8(0x1f8)]}:{},..._0x23fb2b[_0xe9d1f8(0x1fa)]()===_0xe9d1f8(0x1d6)?{'serviceTier':_0xe9d1f8(0x1d6)}:{}}),this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x223)][_0xe9d1f8(0x21f)](_0x253b8d,_0x2fbcc8),void this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x206)][_0xe9d1f8(0x1be)](_0x3bf3a2)[_0xe9d1f8(0x1d3)](()=>undefined);if(_0x28e92c!==undefined)this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1e7)](_0x3dae79['id'],_0x253b8d);return this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1fc)][_0xe9d1f8(0x1f7)]({'submissionId':_0x253b8d,'intent':_0x5f1c9f,'queueBefore':_0x9644b4,..._0xef78b2===undefined?{}:{'activeRunId':_0xef78b2['id']}});}catch(_0x5ba611){if(_0x28e92c!==undefined)this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1d7)](_0x3dae79,_0x28e92c[_0xe9d1f8(0x1c7)],_0x28e92c[_0xe9d1f8(0x1b3)]);this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x1fc)][_0xe9d1f8(0x1ea)](_0x253b8d,safeErrorCode(_0x5ba611,_0xe9d1f8(0x21b))),this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x223)][_0xe9d1f8(0x221)](_0x253b8d),this[_0xe9d1f8(0x1fe)][_0xe9d1f8(0x223)][_0xe9d1f8(0x218)](_0x253b8d);throw _0x5ba611;}};if(_0x1fbef1)void _0x3088ae()[_0x4f3e8d(0x1d3)](()=>undefined);const _0x4926c9=_0x1fbef1?_0x565d7b[_0x4f3e8d(0x21e)]===undefined?_0x4f3e8d(0x1f6):_0x5f1c9f===_0x4f3e8d(0x1cf)?_0x4f3e8d(0x1c1):_0x4f3e8d(0x1e0):await _0x3088ae();return{'session':this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x220)](_0x4a796a),'run':_0x565d7b[_0x4f3e8d(0x1c9)],..._0x565d7b[_0x4f3e8d(0x21e)]===undefined&&(_0x2b8ae9||_0x28e92c?.[_0x4f3e8d(0x1b3)]===!![])?{'turn':this[_0x4f3e8d(0x1fe)][_0x4f3e8d(0x222)][_0x4f3e8d(0x21c)](_0x565d7b[_0x4f3e8d(0x1c9)]['id'])}:{},..._0x565d7b[_0x4f3e8d(0x21e)]===undefined?{}:{'queueItemId':_0x565d7b[_0x4f3e8d(0x21e)]['id']},'delivery':_0x4926c9,'idempotent':![]};})());this[_0x11364b(0x202)][_0x11364b(0x1f2)](_0x367137,_0x283a62);try{return await _0x283a62;}finally{if(this[_0x11364b(0x202)][_0x11364b(0x20f)](_0x367137)===_0x283a62)this[_0x11364b(0x202)][_0x11364b(0x1cd)](_0x367137);}}async[_0x2ab189(0x224)](_0x652bc0,_0x5f4ec7,_0x4b07a4){const _0x39f7c9=_0x2ab189;return this[_0x39f7c9(0x1fe)][_0x39f7c9(0x223)][_0x39f7c9(0x22b)](_0x652bc0[_0x39f7c9(0x1c0)],_0x5f4ec7,_0x4b07a4[_0x39f7c9(0x229)](_0x4299f2=>!isRunnerImageAttachment(_0x4299f2)));}async[_0x2ab189(0x1f5)](_0x28139b){const _0x47fe00=_0x2ab189;if(typeof _0x28139b[_0x47fe00(0x225)]!==_0x47fe00(0x1e1)||typeof _0x28139b[_0x47fe00(0x22a)]!==_0x47fe00(0x1e1)||typeof _0x28139b[_0x47fe00(0x1c8)]!==_0x47fe00(0x1e1)||typeof _0x28139b[_0x47fe00(0x1f3)]!==_0x47fe00(0x1e1)||_0x28139b[_0x47fe00(0x1f3)][_0x47fe00(0x1ee)]===0x65*0x27+-0x4*-0x6a3+-0x29ef||!Number[_0x47fe00(0x1d8)](_0x28139b[_0x47fe00(0x1cb)]))throw new Error(_0x47fe00(0x217));const _0x47d25d=this[_0x47fe00(0x1fe)][_0x47fe00(0x222)][_0x47fe00(0x210)](_0x28139b[_0x47fe00(0x225)]);if(_0x47d25d===undefined||_0x47d25d[_0x47fe00(0x1d1)]!==_0x28139b[_0x47fe00(0x22a)])throw new Error(_0x47fe00(0x227));return this[_0x47fe00(0x1b9)]({'sessionId':_0x28139b[_0x47fe00(0x225)],'clientMessageId':_0x28139b[_0x47fe00(0x1c8)],'content':_0x28139b[_0x47fe00(0x1f3)],'deliveryIntent':_0x47fe00(0x1bb),'__requestUserId':_0x28139b[_0x47fe00(0x1cb)]});}[_0x2ab189(0x1d1)](_0x27bcfb){const _0x27a44c=_0x2ab189;if(typeof _0x27bcfb[_0x27a44c(0x225)]!==_0x27a44c(0x1e1))throw new Error(_0x27a44c(0x1b7));const _0x441da7=this[_0x27a44c(0x1fe)][_0x27a44c(0x1d1)](_0x27bcfb[_0x27a44c(0x225)]);if(_0x441da7===undefined)throw new Error(_0x27a44c(0x227));return{'token':_0x441da7};}}function record(_0x1e8b4f){const _0x2e862b=_0x2ab189;if(_0x1e8b4f===null||typeof _0x1e8b4f!==_0x2e862b(0x205)||Array[_0x2e862b(0x211)](_0x1e8b4f))return{};return _0x1e8b4f;}function isMissionRef(_0x86c3df){const _0x2a95d3=_0x2ab189;return _0x86c3df!==null&&typeof _0x86c3df===_0x2a95d3(0x205)&&typeof _0x86c3df['id']===_0x2a95d3(0x1e1)&&Number[_0x2a95d3(0x1b4)](_0x86c3df[_0x2a95d3(0x1da)]);}
2
+ const _0x3b5585=_0x1c84;(function(_0x56f5da,_0x352127){const _0x9a6bc9=_0x1c84,_0x1a89aa=_0x56f5da();while(!![]){try{const _0x4b3518=parseInt(_0x9a6bc9(0x1b2))/(0x2*-0xa72+-0x4d8*0x5+0x2d1d)*(parseInt(_0x9a6bc9(0x1a1))/(-0x2325+0x25e5+-0x2be))+parseInt(_0x9a6bc9(0x1d1))/(-0x1a9c+-0x1cf*0x8+0x2917*0x1)*(parseInt(_0x9a6bc9(0x1c5))/(0x37e+-0x1fc+0xbf*-0x2))+parseInt(_0x9a6bc9(0x19e))/(-0x192a+-0x12fb+0x1*0x2c2a)*(-parseInt(_0x9a6bc9(0x1a6))/(0x218f+0x2248+-0x43d1))+-parseInt(_0x9a6bc9(0x1cc))/(0x1802+0x11e4+-0x29df)+-parseInt(_0x9a6bc9(0x196))/(-0x136f+-0x95f*0x1+-0xe6b*-0x2)+-parseInt(_0x9a6bc9(0x17a))/(-0x10bc+0x7*0x197+-0x5a4*-0x1)+parseInt(_0x9a6bc9(0x184))/(0x1bf5+-0x1eef+-0x1*-0x304);if(_0x4b3518===_0x352127)break;else _0x1a89aa['push'](_0x1a89aa['shift']());}catch(_0x2e3370){_0x1a89aa['push'](_0x1a89aa['shift']());}}}(_0x44a0,0x13e9f9*-0x1+-0x3886e+-0x26*-0xf87a));import{randomUUID}from'node:crypto';import{isImageAttachment,isRunnerImageAttachment,parseComposerAttachmentIds,parseMessageAttachments,sessionTitleFromFirstMessage,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{parseSecretEnvironment}from'../util/secret-environment.js';import{personalInstructionsForRunner}from'../util/personal-instructions.js';import{safeErrorCode}from'../util/safe-error.js';function _0x1c84(_0x53fe7d,_0x2c529a){_0x53fe7d=_0x53fe7d-(0x886+0xba1+0x12af*-0x1);const _0x1b6419=_0x44a0();let _0x5b2320=_0x1b6419[_0x53fe7d];if(_0x1c84['KjPCwh']===undefined){var _0x28965c=function(_0x23afbd){const _0x1b6afd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a6208='',_0x427994='';for(let _0x2788a2=0x1d37+0xc70+-0x1*0x29a7,_0x484434,_0x4d5909,_0x3e31eb=0x1*0xbfd+-0x2198*0x1+0x159b;_0x4d5909=_0x23afbd['charAt'](_0x3e31eb++);~_0x4d5909&&(_0x484434=_0x2788a2%(-0xaf9*-0x3+-0xa4e*-0x2+0x3583*-0x1)?_0x484434*(-0x11c3*0x2+-0x9c9+0x2d8f)+_0x4d5909:_0x4d5909,_0x2788a2++%(0x11*0x24a+0xd3d*-0x2+0xd4*-0xf))?_0x5a6208+=String['fromCharCode'](-0x1a*0x17b+0x1a85+0xcf8&_0x484434>>(-(-0xb87+-0x115*0x13+-0x34*-0x9e)*_0x2788a2&-0xa*-0x133+-0xb51*0x1+-0xa7)):-0x1857+-0x1ba6+0x33fd){_0x4d5909=_0x1b6afd['indexOf'](_0x4d5909);}for(let _0x2abb2d=-0x1*-0x174d+-0x8ee+0xe5f*-0x1,_0x4e6ba8=_0x5a6208['length'];_0x2abb2d<_0x4e6ba8;_0x2abb2d++){_0x427994+='%'+('00'+_0x5a6208['charCodeAt'](_0x2abb2d)['toString'](0x65f*0x2+-0xb89*-0x2+-0x23c*0x10))['slice'](-(0x17*-0xab+-0xd3f*-0x1+0x220));}return decodeURIComponent(_0x427994);};_0x1c84['YLhFXE']=_0x28965c,_0x1c84['CWvkeq']={},_0x1c84['KjPCwh']=!![];}const _0x2e0821=_0x1b6419[0x1e8+-0xd99*-0x1+-0xf81];_0x1c84['rSIsSW']!==_0x2e0821&&(_0x1c84['CWvkeq']={},_0x1c84['rSIsSW']=_0x2e0821);const _0xdcd790=_0x1c84['CWvkeq'][_0x53fe7d];return _0xdcd790===undefined?(_0x5b2320=_0x1c84['YLhFXE'](_0x5b2320),_0x1c84['CWvkeq'][_0x53fe7d]=_0x5b2320):_0x5b2320=_0xdcd790,_0x5b2320;}const INTERNAL_MISSION=Symbol(_0x3b5585(0x1c0));export class SessionMessageService{[_0x3b5585(0x1c4)];[_0x3b5585(0x1dd)]=new Map();constructor(_0x14815f){const _0x446146=_0x3b5585;this[_0x446146(0x1c4)]=_0x14815f;}[_0x3b5585(0x1cf)](){const _0x4734af=_0x3b5585;return{'session.message':_0x2ff4ca=>this[_0x4734af(0x1d4)](record(_0x2ff4ca)),'session.channel.message':_0xb08877=>this[_0x4734af(0x1d9)](record(_0xb08877)),'session.channel.token':_0x1cf049=>this[_0x4734af(0x1a9)](record(_0x1cf049))};}[_0x3b5585(0x191)](_0x3fdb2e){const _0x291616=_0x3b5585;return this[_0x291616(0x1d4)]({[INTERNAL_MISSION]:!![],'sessionId':_0x3fdb2e[_0x291616(0x17c)],'clientMessageId':_0x291616(0x1e3)+randomUUID(),'content':_0x3fdb2e[_0x291616(0x180)]===_0x291616(0x1ec)?_0x291616(0x1b9):_0x291616(0x1d7),'__runnerContent':_0x3fdb2e[_0x291616(0x195)],'__missionRef':_0x3fdb2e[_0x291616(0x1ca)],'deliveryIntent':_0x3fdb2e[_0x291616(0x1b4)],'secretEnvironment':_0x3fdb2e[_0x291616(0x17d)],'personalInstructions':_0x3fdb2e[_0x291616(0x1df)]});}async[_0x3b5585(0x1d4)](_0x5498fd){const _0xcd4903=_0x3b5585;if(typeof _0x5498fd[_0xcd4903(0x17c)]!==_0xcd4903(0x1d5)||typeof _0x5498fd[_0xcd4903(0x1a2)]!==_0xcd4903(0x1d5)||_0x5498fd[_0xcd4903(0x1a2)][_0xcd4903(0x1de)]===-0xe66*-0x2+0x1*-0x596+-0x1736*0x1||typeof _0x5498fd[_0xcd4903(0x195)]!==_0xcd4903(0x1d5)||_0x5498fd[_0xcd4903(0x195)][_0xcd4903(0x1de)]===0x9d*-0x17+0x20eb+-0x2b0*0x7)throw new Error(_0xcd4903(0x190));const _0x413731=_0x5498fd[_0xcd4903(0x1a2)],_0x436ae8=_0x5498fd[_0xcd4903(0x195)],_0x1286b7=_0x5498fd[INTERNAL_MISSION]===!![],_0x875585=_0x1286b7&&typeof _0x5498fd[_0xcd4903(0x18d)]===_0xcd4903(0x1d5)?_0x5498fd[_0xcd4903(0x18d)]:_0x436ae8,_0x3203ee=parseMessageAttachments(_0x5498fd[_0xcd4903(0x1c1)]),_0x404862=parseSecretEnvironment(_0x5498fd[_0xcd4903(0x17d)]),_0xc13438=parseComposerAttachmentIds(_0x5498fd[_0xcd4903(0x1b7)]);if(_0x3203ee[_0xcd4903(0x1de)]>0x2233+0x24c4+-0x1eb*0x25&&_0xc13438[_0xcd4903(0x1de)]>-0x10a*0x1b+0x11*-0xe8+0x15bb*0x2)throw new Error(_0xcd4903(0x1bc));const _0x4ed64c=await this[_0xcd4903(0x1c4)][_0xcd4903(0x185)](_0x5498fd[_0xcd4903(0x17c)]),_0xf1eeef=_0x4ed64c[_0xcd4903(0x1a7)],_0x277306=_0x1286b7&&typeof _0x5498fd[_0xcd4903(0x1df)]===_0xcd4903(0x1d5)?_0x5498fd[_0xcd4903(0x1df)]:personalInstructionsForRunner(_0x5498fd[_0xcd4903(0x1df)],_0xf1eeef[_0xcd4903(0x198)]),_0x53fe7d=_0x5498fd[_0xcd4903(0x1b4)]??_0xcd4903(0x1ee);if(_0x53fe7d!==_0xcd4903(0x1ee)&&_0x53fe7d!==_0xcd4903(0x1ae)&&_0x53fe7d!==_0xcd4903(0x1b6))throw new Error(_0xcd4903(0x190));const _0x2c529a=_0xf1eeef['id']+'\x00'+_0x413731,_0x1b6419=this[_0xcd4903(0x1dd)][_0xcd4903(0x1dc)](_0x2c529a);if(_0x1b6419!==undefined)return _0x1b6419;const _0x5b2320=this[_0xcd4903(0x1c4)][_0xcd4903(0x1e1)][_0xcd4903(0x183)](_0xf1eeef['id'],_0x413731);if(_0x5b2320!==undefined)throw new Error(_0x5b2320);const _0x28965c=this[_0xcd4903(0x1c4)][_0xcd4903(0x1e1)][_0xcd4903(0x1a5)](_0xf1eeef['id'],_0x413731);if(_0x28965c!==undefined)return{'session':this[_0xcd4903(0x1c4)][_0xcd4903(0x187)](_0xf1eeef),'run':_0x28965c[_0xcd4903(0x1ad)],..._0x28965c[_0xcd4903(0x180)]===_0xcd4903(0x1ac)?{'queueItemId':_0x28965c[_0xcd4903(0x192)]['id']}:{},'delivery':_0x28965c[_0xcd4903(0x180)]===_0xcd4903(0x1ac)?_0xcd4903(0x1db):_0xcd4903(0x1d3),'idempotent':!![]};const _0x2e0821=_0x1286b7?undefined:this[_0xcd4903(0x1c4)][_0xcd4903(0x1be)](_0xf1eeef,_0x436ae8),_0xdcd790=_0x2e0821?.[_0xcd4903(0x19a)]??_0x875585,_0x23afbd=_0x2e0821?.[_0xcd4903(0x18c)]===!![]?_0xcd4903(0x1b9):_0x436ae8,_0x1b6afd=_0x2e0821===undefined?_0x53fe7d:_0xcd4903(0x1b6),_0x5a6208=((async()=>{const _0x2ca5a9=_0xcd4903,_0x427994=randomUUID(),_0x2788a2=this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1e1)][_0x2ca5a9(0x19d)](_0xf1eeef['id']),_0x484434=this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1e1)][_0x2ca5a9(0x1a0)](_0xf1eeef['id']),_0x4d5909=_0x1b6afd===_0x2ca5a9(0x1b6)?_0x484434:undefined,_0x3e31eb=this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1b1)][_0x2ca5a9(0x182)]({'runId':_0x427994,'sessionId':_0xf1eeef['id'],'clientMessageId':_0x413731,'content':_0x23afbd,...Number[_0x2ca5a9(0x197)](_0x5498fd[_0x2ca5a9(0x1ce)])?{'initiatedByUserId':_0x5498fd[_0x2ca5a9(0x1ce)]}:{},..._0x3203ee[_0x2ca5a9(0x1de)]===0x4b7+0x191b*0x1+-0x1dd2?{}:{'attachments':_0x3203ee}}),_0x2abb2d=_0x3e31eb[_0x2ca5a9(0x188)]?.['id']??_0x3e31eb[_0x2ca5a9(0x1ad)]['id'],_0x4e6ba8=_0x5498fd[_0x2ca5a9(0x1c2)]===!![]?_0xf1eeef:this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1e1)][_0x2ca5a9(0x18a)](_0xf1eeef['id'],sessionTitleFromFirstMessage(_0x436ae8)),_0x3f4c74=_0x4ed64c[_0x2ca5a9(0x18b)]&&_0xc13438[_0x2ca5a9(0x1de)]===-0x314+-0x1c84+0x1f98&&_0x3203ee[_0x2ca5a9(0x1de)]===-0x1c*-0x50+-0x2*0xa12+-0x1b*-0x6c;this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x19f)](_0x4e6ba8);if(_0x3e31eb[_0x2ca5a9(0x188)]===undefined)this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1b1)][_0x2ca5a9(0x1ed)](_0x3e31eb[_0x2ca5a9(0x1ad)]['id']);const _0x53f780=async()=>{const _0x12186f=_0x2ca5a9;try{const _0x16ec60=await _0x4ed64c[_0x12186f(0x1ef)];if(_0x3f4c74)this[_0x12186f(0x1c4)][_0x12186f(0x19f)](_0x16ec60);const _0xce33e=await this[_0x12186f(0x1c4)][_0x12186f(0x1b3)][_0x12186f(0x185)](_0xf1eeef[_0x12186f(0x1c6)],_0xc13438),_0x27f09d=_0xc13438[_0x12186f(0x1de)]===0x1072+-0x1796+0x724?_0x3203ee:_0xce33e[_0x12186f(0x17e)](_0x501434=>_0x501434[_0x12186f(0x1e6)]),_0x1116d2=_0x27f09d[_0x12186f(0x1eb)](isImageAttachment),_0x467b75=_0x27f09d[_0x12186f(0x1eb)](isRunnerImageAttachment),_0x3f4ac0=await this[_0x12186f(0x18f)](_0xf1eeef,_0x427994,_0x27f09d),_0x124da9=withNonImageAttachmentPrompt(_0x23afbd,_0x3f4ac0),_0x4184cb=withNonImageAttachmentPrompt(_0xdcd790,_0x3f4ac0),_0xc75c99=this[_0x12186f(0x1c4)][_0x12186f(0x19b)][_0x12186f(0x17f)](_0xf1eeef['id'])[_0x12186f(0x179)](_0x52d9a0=>_0x52d9a0[_0x12186f(0x1e9)]===_0x12186f(0x1bd)),_0x10aa1d=this[_0x12186f(0x1c4)][_0x12186f(0x1cd)][_0x12186f(0x181)](_0x16ec60[_0x12186f(0x198)]);if(_0x3e31eb[_0x12186f(0x188)]===undefined){this[_0x12186f(0x1c4)][_0x12186f(0x1e1)][_0x12186f(0x1c3)](_0x3e31eb[_0x12186f(0x1ad)]['id'],_0x124da9,_0x27f09d);if(_0xc13438[_0x12186f(0x1de)]>-0x2059+-0x7*0x75+-0xd*-0x2bc||_0x124da9!==_0x23afbd)this[_0x12186f(0x1c4)][_0x12186f(0x1b1)][_0x12186f(0x1ed)](_0x3e31eb[_0x12186f(0x1ad)]['id']);}else this[_0x12186f(0x1c4)][_0x12186f(0x1e1)][_0x12186f(0x1d0)](_0x3e31eb[_0x12186f(0x188)]['id'],_0x27f09d);this[_0x12186f(0x1c4)][_0x12186f(0x1b1)][_0x12186f(0x1d2)](_0x2abb2d,{'runId':_0x427994,'sessionId':_0x16ec60['id'],'workspaceId':_0x16ec60[_0x12186f(0x1c6)],'runner':_0x16ec60[_0x12186f(0x198)],'input':_0x10aa1d[_0x12186f(0x199)](_0x4184cb,_0xc75c99?_0x12186f(0x1bd):_0x12186f(0x1b5)),'clientMessageId':_0x413731,'attachments':_0x467b75,'attachmentPaths':_0x3f4ac0,'cwd':_0x16ec60[_0x12186f(0x1a8)],'externalSessionId':_0x16ec60[_0x12186f(0x1a4)],'model':_0x16ec60[_0x12186f(0x1ea)],'effort':_0x16ec60[_0x12186f(0x1ba)],'access':_0x16ec60[_0x12186f(0x1aa)],'collaborationMode':_0xc75c99?_0x12186f(0x1bd):_0x12186f(0x1b5),'secretEnvironment':_0x404862,..._0x277306===undefined?{}:{'personalInstructions':_0x277306},..._0x5498fd[_0x12186f(0x1e5)]===undefined?{}:{'marAgentModel':_0x5498fd[_0x12186f(0x1e5)]},..._0x5498fd[_0x12186f(0x1e2)]===undefined?{}:{'marAgentModels':_0x5498fd[_0x12186f(0x1e2)]},..._0x2e0821!==undefined?{'mission':_0x2e0821[_0x12186f(0x1ca)]}:isMissionRef(_0x5498fd[_0x12186f(0x1af)])?{'mission':_0x5498fd[_0x12186f(0x1af)]}:{},..._0x10aa1d[_0x12186f(0x1a3)]()===_0x12186f(0x1ab)?{'serviceTier':_0x12186f(0x1ab)}:{}}),this[_0x12186f(0x1c4)][_0x12186f(0x1c1)][_0x12186f(0x1b8)](_0x2abb2d,_0x1116d2);if(_0x2e0821!==undefined)this[_0x12186f(0x1c4)][_0x12186f(0x1c9)](_0xf1eeef['id'],_0x2abb2d);const _0x39c3aa=this[_0x12186f(0x1c4)][_0x12186f(0x1b1)][_0x12186f(0x193)]({'submissionId':_0x2abb2d,'intent':_0x1b6afd,'queueBefore':_0x2788a2,..._0x4d5909===undefined?{}:{'activeRunId':_0x4d5909['id']}});return void this[_0x12186f(0x1c4)][_0x12186f(0x1b3)][_0x12186f(0x17b)](_0xc13438)[_0x12186f(0x19c)](()=>undefined),_0x39c3aa;}catch(_0x2469d2){if(_0x2e0821!==undefined)this[_0x12186f(0x1c4)][_0x12186f(0x1e4)](_0xf1eeef,_0x2e0821[_0x12186f(0x1ca)],_0x2e0821[_0x12186f(0x18c)]);this[_0x12186f(0x1c4)][_0x12186f(0x1b1)][_0x12186f(0x1d8)](_0x2abb2d,safeErrorCode(_0x2469d2,_0x12186f(0x1b0))),this[_0x12186f(0x1c4)][_0x12186f(0x1c1)][_0x12186f(0x1bf)](_0x2abb2d),this[_0x12186f(0x1c4)][_0x12186f(0x1c1)][_0x12186f(0x1c8)](_0x2abb2d);throw _0x2469d2;}};if(_0x3f4c74)void _0x53f780()[_0x2ca5a9(0x19c)](()=>undefined);const _0x4aea8a=_0x3f4c74?_0x3e31eb[_0x2ca5a9(0x188)]===undefined?_0x2ca5a9(0x1d3):_0x1b6afd===_0x2ca5a9(0x1b6)?_0x2ca5a9(0x1cb):_0x2ca5a9(0x1db):await _0x53f780();return{'session':this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x187)](_0x4e6ba8),'run':_0x3e31eb[_0x2ca5a9(0x1ad)],..._0x3e31eb[_0x2ca5a9(0x188)]===undefined&&(_0x1286b7||_0x2e0821?.[_0x2ca5a9(0x18c)]===!![])?{'turn':this[_0x2ca5a9(0x1c4)][_0x2ca5a9(0x1e1)][_0x2ca5a9(0x1c7)](_0x3e31eb[_0x2ca5a9(0x1ad)]['id'])}:{},..._0x3e31eb[_0x2ca5a9(0x188)]===undefined?{}:{'queueItemId':_0x3e31eb[_0x2ca5a9(0x188)]['id']},'delivery':_0x4aea8a,'idempotent':![]};})());this[_0xcd4903(0x1dd)][_0xcd4903(0x1d6)](_0x2c529a,_0x5a6208);try{return await _0x5a6208;}finally{if(this[_0xcd4903(0x1dd)][_0xcd4903(0x1dc)](_0x2c529a)===_0x5a6208)this[_0xcd4903(0x1dd)][_0xcd4903(0x194)](_0x2c529a);}}async[_0x3b5585(0x18f)](_0x1b2ad5,_0x1e8f52,_0x9f516e){const _0x3d7243=_0x3b5585;return this[_0x3d7243(0x1c4)][_0x3d7243(0x1c1)][_0x3d7243(0x1da)](_0x1b2ad5[_0x3d7243(0x1a8)],_0x1e8f52,_0x9f516e[_0x3d7243(0x1eb)](_0xe2dbe7=>!isRunnerImageAttachment(_0xe2dbe7)));}async[_0x3b5585(0x1d9)](_0x3f3fa2){const _0x542e43=_0x3b5585;if(typeof _0x3f3fa2[_0x542e43(0x17c)]!==_0x542e43(0x1d5)||typeof _0x3f3fa2[_0x542e43(0x189)]!==_0x542e43(0x1d5)||typeof _0x3f3fa2[_0x542e43(0x1a2)]!==_0x542e43(0x1d5)||typeof _0x3f3fa2[_0x542e43(0x195)]!==_0x542e43(0x1d5)||_0x3f3fa2[_0x542e43(0x195)][_0x542e43(0x1de)]===0xb*-0x2d1+0x1*0x1e5d+0x9e*0x1||!Number[_0x542e43(0x197)](_0x3f3fa2[_0x542e43(0x1ce)]))throw new Error(_0x542e43(0x190));const _0x476a9d=this[_0x542e43(0x1c4)][_0x542e43(0x1e1)][_0x542e43(0x1bb)](_0x3f3fa2[_0x542e43(0x17c)]);if(_0x476a9d===undefined||_0x476a9d[_0x542e43(0x1a9)]!==_0x3f3fa2[_0x542e43(0x189)])throw new Error(_0x542e43(0x18e));return this[_0x542e43(0x1d4)]({'sessionId':_0x3f3fa2[_0x542e43(0x17c)],'clientMessageId':_0x3f3fa2[_0x542e43(0x1a2)],'content':_0x3f3fa2[_0x542e43(0x195)],'deliveryIntent':_0x542e43(0x1ae),'__requestUserId':_0x3f3fa2[_0x542e43(0x1ce)]});}[_0x3b5585(0x1a9)](_0x411f1f){const _0x165ea8=_0x3b5585;if(typeof _0x411f1f[_0x165ea8(0x17c)]!==_0x165ea8(0x1d5))throw new Error(_0x165ea8(0x1e8));const _0xfa908d=this[_0x165ea8(0x1c4)][_0x165ea8(0x1a9)](_0x411f1f[_0x165ea8(0x17c)]);if(_0xfa908d===undefined)throw new Error(_0x165ea8(0x18e));return{'token':_0xfa908d};}}function _0x44a0(){const _0x55bf87=['Dg9Rzw4','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','zgvMzxjYzwq','ywn0AxzHDgvK','x19YDw5UzxjdB250zw50','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','CgvYC2LZDef0DgfJAg1LBNrZ','tuvtu0fhrv9jtLzbteLe','C3vIBwL0twLZC2LVBG','AxrLBq','C2v0DgXL','zgvSzxrL','y29UDgvUDa','mtm2nJm0odHsu2jpAwm','AxntywzLsw50zwDLCG','CNvUBMvY','ChjLCgfYzu1LC3nHz2vjBNb1Da','CNvUBMvYq29UDgvUDa','y29TBwfUzhm','y2f0y2G','C2vZC2LVBLf1zxvL','nwnwAu1AEG','zw1PDfnLC3nPB24','ywn0AxzLu2vZC2LVBLj1BG','mte0nJe4ofPjrNHRAa','y2XPzw50twvZC2fNzuLK','C2vYDMLJzvrPzxi','zxH0zxjUywXtzxnZAw9Uswq','zMLUze1LC3nHz2vtDwjTAxnZAw9U','mZuWntC0A3zswxvx','C2vZC2LVBG','y3DK','y2HHBM5LBfrVA2vU','ywnJzxnZ','zMfZDa','CxvLDwu','CNvU','uvvfvuu','x19TAxnZAw9UuMvM','tuvtu0fhrv9quKvqqvjbveLptL9gquLmruq','y29VCMrPBMf0B3i','mLzlEvzdEG','DxbSB2fKCW','zgvSAxzLCNLjBNrLBNq','zgvMyxvSDa','uKvqtefdrv9dvvjsru5u','yxr0ywnOBwvUDeLKCW','y2fJAgu','twLZC2LVBIbtDgfYDa','zwzMB3j0','z2v0qwDLBNrtzxnZAw9U','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','CgXHBG','BwLZC2LVBK1LC3nHz2u','y2XLyxi','Aw50zxjUywXnAxnZAw9U','yxr0ywnOBwvUDhm','x19TAxnZAw9U','DxbKyxrLuhjLCgfYAw5NvhvYBK1LC3nHz2u','B3b0Aw9UCW','mte3mte3mLnfy1rcAa','D29YA3nWywnLswq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','y2XLyw51Ca','ChjLCgfYzu1PC3nPB25jBNnLCNrPB24','BwLZC2LVBG','uKvtvefsveLorW','ntu1odK0nw1hvKPjqG','CNvUBMvYCW','x19Yzxf1zxn0vxnLCKLK','B3bLCMf0Aw9UCW','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','m0XcrNjAyG','ChjLCgfYzq','u1rbuLrfra','BwvZC2fNzq','C3rYAw5N','C2v0','twLZC2LVBIbdB250Aw51zq','zMfPBfbYzxbHCMf0Aw9U','y2HHBM5LBe1LC3nHz2u','CgvYC2LZDezPBgvZ','uvvfvuve','z2v0','CgvUzgLUz01LC3nHz2vZ','BgvUz3rO','CgvYC29UywXjBNn0CNvJDgLVBNm','B2jQzwn0','CNvUDgLTzq','BwfYqwDLBNrnB2rLBhm','BwLZC2LVBJO','BwLZC2LVBLbYzxbHCMf0Aw9UrMfPBgvK','BwfYqwDLBNrnB2rLBa','yxr0ywnOBwvUDa','AxnjBNrLz2vY','u0vtu0LptL9jtLzbteLe','y29TBwfUzeLK','Bw9KzwW','zMLSDgvY','C3rHCNq','ChvIBgLZAen1CNjLBNruDxjU','u0vora','CMvHzhK','AxnbCNjHEq','C29Tzq','mtu2mteWndbur25Rvg4','y29UC3vTzq','C2vZC2LVBKLK','C2vJCMv0rw52AxjVBM1LBNq','BwfW','BgLZDa','A2LUza','CMvXDwLYzq','ywnJzxb0','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','mZCZnJy0ndbqAxLqt3O','CMvZB2X2zq','CMv2AxnPB24','ChjLC2vUDa','CxvLDwvjDgvT'];_0x44a0=function(){return _0x55bf87;};return _0x44a0();}function record(_0x5e4f8c){const _0x5ef281=_0x3b5585;if(_0x5e4f8c===null||typeof _0x5e4f8c!==_0x5ef281(0x1e0)||Array[_0x5ef281(0x178)](_0x5e4f8c))return{};return _0x5e4f8c;}function isMissionRef(_0x17ef62){const _0x5a3884=_0x3b5585;return _0x17ef62!==null&&typeof _0x17ef62===_0x5a3884(0x1e0)&&typeof _0x17ef62['id']===_0x5a3884(0x1d5)&&Number[_0x5a3884(0x1e7)](_0x17ef62[_0x5a3884(0x186)]);}