@myagentroam/node 0.9.15 → 0.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capabilities.js +1 -1
- package/dist/connector.js +1 -1
- package/dist/database.js +1 -1
- package/dist/migrations/v005.js +23 -0
- package/dist/ripgrep-binary.js +2 -0
- package/dist/runner/abstract-runner.js +1 -1
- package/dist/runner/claude/managed-run-controller.js +1 -1
- package/dist/runner/claude/tool-normalizer.js +2 -0
- package/dist/runner/codex/conversation-parser.js +1 -1
- package/dist/runner/codex/managed-run-controller.js +1 -1
- package/dist/runner/codex/tool-normalizer.js +2 -0
- package/dist/runner/mar-agent/conversation-normalizer.js +2 -0
- package/dist/runner/mar-agent/history-projection.js +2 -0
- package/dist/runner/mar-agent/managed-run-controller.js +2 -0
- package/dist/runner/mar-agent/mcp-client-pool.js +2 -0
- package/dist/runner/mar-agent-runner.js +2 -0
- package/dist/runner/opencode/conversation-parser.js +1 -1
- package/dist/runner/opencode/managed-run-controller.js +1 -1
- package/dist/runner/opencode/tool-normalizer.js +2 -0
- package/dist/runner-profiles.js +1 -1
- package/dist/runtime-state.js +1 -1
- package/dist/service/continuous-run-coordinator.js +1 -1
- package/dist/service/mission-runtime.js +1 -1
- package/dist/service/native-session-watch-service.js +1 -1
- package/dist/service/run-event-service.js +1 -1
- package/dist/service/runner-service.js +1 -1
- package/dist/service/session-command-service.js +1 -1
- package/dist/service/session-lifecycle-service.js +1 -1
- package/dist/service/session-message-service.js +1 -1
- package/dist/service/workspace-content-search-service.js +1 -1
- package/dist/util/personal-instructions.js +1 -1
- package/dist/util/runner-error.js +1 -1
- package/dist/util/runner-native-session-parsers.js +1 -1
- package/package.json +4 -2
- package/vendor/ripgrep/LICENSE-MIT +21 -0
- package/vendor/ripgrep/UNLICENSE +24 -0
- package/vendor/ripgrep/linux-arm64/rg +0 -0
- package/vendor/ripgrep/linux-x64/rg +0 -0
- package/vendor/ripgrep/manifest.json +30 -0
- package/vendor/ripgrep/win32-arm64/rg.exe +0 -0
- package/vendor/ripgrep/win32-x64/rg.exe +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
function _0xe063(_0x6d2ec2,_0x52daae){_0x6d2ec2=_0x6d2ec2-(-0x36f*-0xb+0x27*-0x5a+-0x2*0xba8);const _0x4c6c0d=_0x4af5();let _0x169731=_0x4c6c0d[_0x6d2ec2];if(_0xe063['mccDtP']===undefined){var _0x582893=function(_0x32da48){const _0x2b057c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x316cee='',_0x17bffd='';for(let _0x2442cc=0x3c+-0x2*0x1223+-0x240a*-0x1,_0x5f4349,_0x2f222a,_0x45505c=0x1d1*-0x11+0x1*0x1697+-0x2*-0x425;_0x2f222a=_0x32da48['charAt'](_0x45505c++);~_0x2f222a&&(_0x5f4349=_0x2442cc%(-0x823*-0x3+0x2383*0x1+0x6c*-0x8e)?_0x5f4349*(-0x375+0x16f8+-0x1343*0x1)+_0x2f222a:_0x2f222a,_0x2442cc++%(0x1ab6+0xd6a+-0x281c))?_0x316cee+=String['fromCharCode'](-0x242a+-0x1bad*0x1+0x40d6&_0x5f4349>>(-(-0x5bf+0x1af1+-0x1530)*_0x2442cc&0x18e*-0x1+-0xf4f*0x1+-0x3*-0x5a1)):-0x12d5+-0x35*-0x23+-0xb96*-0x1){_0x2f222a=_0x2b057c['indexOf'](_0x2f222a);}for(let _0x250367=0x17d3+0x1b72+-0x4b*0xaf,_0x5448c9=_0x316cee['length'];_0x250367<_0x5448c9;_0x250367++){_0x17bffd+='%'+('00'+_0x316cee['charCodeAt'](_0x250367)['toString'](0x998+0x11*-0x22d+0x1*0x1b75))['slice'](-(0x15c1+-0x1*0xa52+-0xb6d));}return decodeURIComponent(_0x17bffd);};_0xe063['assSbu']=_0x582893,_0xe063['qhjhUR']={},_0xe063['mccDtP']=!![];}const _0x20bd38=_0x4c6c0d[0x2*-0x381+0x961+-0x1*0x25f];_0xe063['KRBhYE']!==_0x20bd38&&(_0xe063['qhjhUR']={},_0xe063['KRBhYE']=_0x20bd38);const _0x356d1e=_0xe063['qhjhUR'][_0x6d2ec2];return _0x356d1e===undefined?(_0x169731=_0xe063['assSbu'](_0x169731),_0xe063['qhjhUR'][_0x6d2ec2]=_0x169731):_0x169731=_0x356d1e,_0x169731;}const _0x52be86=_0xe063;(function(_0x3a3dee,_0x39894a){const _0x4799c3=_0xe063,_0x7f5ad5=_0x3a3dee();while(!![]){try{const _0x2c6e47=-parseInt(_0x4799c3(0x143))/(0x2687+0xac3+-0xb*0x47b)+-parseInt(_0x4799c3(0xc3))/(-0xb*0x17f+-0x224c+0x32c3)+parseInt(_0x4799c3(0xf3))/(-0x2600*0x1+-0xf25+-0x6*-0x8dc)+-parseInt(_0x4799c3(0x10b))/(-0xf5f+0x140b+-0x1*0x4a8)*(-parseInt(_0x4799c3(0x128))/(-0x1*-0x26ad+0x13*-0xad+-0x19d1))+parseInt(_0x4799c3(0x148))/(0x1cc7+0xf62+-0x1*0x2c23)*(parseInt(_0x4799c3(0xcd))/(0xe77+0x4e*0x7c+-0x3438))+-parseInt(_0x4799c3(0xd7))/(0x1474+-0x1a71+-0x17*-0x43)+-parseInt(_0x4799c3(0x120))/(0x658+0x607+-0xc56);if(_0x2c6e47===_0x39894a)break;else _0x7f5ad5['push'](_0x7f5ad5['shift']());}catch(_0x28c846){_0x7f5ad5['push'](_0x7f5ad5['shift']());}}}(_0x4af5,0x2dfa0+0x3*-0x29b1+0x1c1db));import{isPlainRecord}from'../runner/codex/conversation-parser.js';import{safeErrorCode}from'../util/safe-error.js';const INTERVAL_MS=-0x2223+-0x264*-0x1+0x278f,TTL_MS=0xcb50*0x1+0x3*0x3665+-0xbeb7,MAX_FAILURES=-0x823*-0x3+0x2383*0x1+0x31*-0x139,INITIAL_TURN_LIMIT=-0x375+0x16f8+-0x3e1*0x5,EMITTED_TURN_LIMIT=0x1ab6+0xd6a+-0x2816;export class NativeSessionWatchService{[_0x52be86(0xe1)];[_0x52be86(0x150)]=new Map();[_0x52be86(0xc2)]=new Map();[_0x52be86(0x102)]=-0x242a+-0x1bad*0x1+0x3fd7;constructor(_0x9b624c){const _0x23ceaa=_0x52be86;this[_0x23ceaa(0xe1)]=_0x9b624c;}[_0x52be86(0x151)](){const _0x48fc6f=_0x52be86;return{'session.watch':_0xbe0d5c=>this[_0x48fc6f(0x132)](isPlainRecord(_0xbe0d5c)?_0xbe0d5c:{}),'session.unwatch':_0x301642=>this[_0x48fc6f(0xda)](isPlainRecord(_0x301642)?_0x301642:{})};}async[_0x52be86(0x132)](_0x4381d7){const _0x2dc3c4=_0x52be86,_0x48df3e=this[_0x2dc3c4(0xe1)][_0x2dc3c4(0x130)];if(_0x4381d7[_0x2dc3c4(0x11e)]===_0x2dc3c4(0xe2)&&_0x48df3e===undefined)throw new Error(_0x2dc3c4(0xfa));if(typeof _0x4381d7[_0x2dc3c4(0xed)]!==_0x2dc3c4(0xf9)||_0x4381d7[_0x2dc3c4(0x146)]!==undefined&&typeof _0x4381d7[_0x2dc3c4(0x146)]!==_0x2dc3c4(0xf9)||typeof _0x4381d7[_0x2dc3c4(0xce)]!==_0x2dc3c4(0xf9)||typeof _0x4381d7[_0x2dc3c4(0xc4)]!==_0x2dc3c4(0xf9)||_0x4381d7[_0x2dc3c4(0x125)]!==_0x2dc3c4(0x115)&&_0x4381d7[_0x2dc3c4(0x125)]!==_0x2dc3c4(0xd4)||_0x4381d7[_0x2dc3c4(0x11e)]!==undefined&&_0x4381d7[_0x2dc3c4(0x11e)]!==_0x2dc3c4(0xe2))throw new Error(_0x2dc3c4(0xfa));const _0x55e1e4=this[_0x2dc3c4(0x149)](_0x4381d7);if(_0x4381d7[_0x2dc3c4(0x125)]===_0x2dc3c4(0xd4)){const _0x46028b=this[_0x2dc3c4(0xc2)][_0x2dc3c4(0xd8)](_0x55e1e4);if(_0x46028b===undefined||_0x46028b[_0x2dc3c4(0xce)]!==_0x4381d7[_0x2dc3c4(0xce)]||_0x46028b[_0x2dc3c4(0xed)]!==_0x4381d7[_0x2dc3c4(0xed)]||_0x4381d7[_0x2dc3c4(0x146)]!==undefined&&_0x46028b[_0x2dc3c4(0x146)]!==_0x4381d7[_0x2dc3c4(0x146)])throw new Error(_0x2dc3c4(0xe3));if(_0x46028b[_0x2dc3c4(0x10e)]<=Date[_0x2dc3c4(0xbf)]()){this[_0x2dc3c4(0xdd)](_0x55e1e4);throw new Error(_0x2dc3c4(0xe3));}_0x46028b[_0x2dc3c4(0x10e)]=Date[_0x2dc3c4(0xbf)]()+TTL_MS;const _0x501f56=this[_0x2dc3c4(0x150)][_0x2dc3c4(0xd8)](_0x46028b[_0x2dc3c4(0xed)]);if(_0x501f56!==undefined)_0x501f56[_0x2dc3c4(0x10e)]=this[_0x2dc3c4(0x126)](_0x46028b[_0x2dc3c4(0xed)]);return clearTimeout(_0x46028b[_0x2dc3c4(0x144)]),_0x46028b[_0x2dc3c4(0x144)]=this[_0x2dc3c4(0xde)](_0x55e1e4),this[_0x2dc3c4(0x108)](_0x46028b);}const _0x307bdc=this[_0x2dc3c4(0xc2)][_0x2dc3c4(0xd8)](_0x55e1e4),_0x529df9=_0x4381d7[_0x2dc3c4(0x11e)]===_0x2dc3c4(0xe2)?_0x2dc3c4(0xe2):_0x2dc3c4(0x133);if(_0x307bdc?.[_0x2dc3c4(0xce)]===_0x4381d7[_0x2dc3c4(0xce)]&&_0x307bdc[_0x2dc3c4(0xed)]===_0x4381d7[_0x2dc3c4(0xed)]&&(_0x4381d7[_0x2dc3c4(0x146)]===undefined||_0x307bdc[_0x2dc3c4(0x146)]===_0x4381d7[_0x2dc3c4(0x146)])&&_0x307bdc[_0x2dc3c4(0x11e)]===_0x529df9&&_0x307bdc[_0x2dc3c4(0x10e)]>Date[_0x2dc3c4(0xbf)]())return _0x307bdc[_0x2dc3c4(0x10e)]=Date[_0x2dc3c4(0xbf)]()+TTL_MS,clearTimeout(_0x307bdc[_0x2dc3c4(0x144)]),_0x307bdc[_0x2dc3c4(0x144)]=this[_0x2dc3c4(0xde)](_0x55e1e4),this[_0x2dc3c4(0x108)](_0x307bdc);this[_0x2dc3c4(0xdd)](_0x55e1e4);const _0x5c3188={'ownerKey':_0x55e1e4,'sessionHash':this[_0x2dc3c4(0x13d)](_0x4381d7),'workbenchConnectionId':_0x4381d7[_0x2dc3c4(0xc4)],'watchId':_0x4381d7[_0x2dc3c4(0xce)],'sessionId':_0x4381d7[_0x2dc3c4(0xed)],'unit':_0x529df9,'nodeGeneration':this[_0x2dc3c4(0xe1)][_0x2dc3c4(0x153)]?.()??_0x2dc3c4(0xf8),...typeof _0x4381d7[_0x2dc3c4(0x146)]===_0x2dc3c4(0xf9)?{'workspaceId':_0x4381d7[_0x2dc3c4(0x146)]}:{},'expiresAt':Date[_0x2dc3c4(0xbf)]()+TTL_MS,'ready':![],'snapshotSent':![],'pendingEvents':[],'timer':undefined};_0x5c3188[_0x2dc3c4(0x144)]=this[_0x2dc3c4(0xde)](_0x55e1e4),this[_0x2dc3c4(0xc2)][_0x2dc3c4(0x105)](_0x55e1e4,_0x5c3188);const _0x456393=this[_0x2dc3c4(0x150)][_0x2dc3c4(0xd8)](_0x5c3188[_0x2dc3c4(0xed)]);if(_0x456393!==undefined)_0x456393[_0x2dc3c4(0x10e)]=this[_0x2dc3c4(0x126)](_0x5c3188[_0x2dc3c4(0xed)]);return void this[_0x2dc3c4(0xf1)](_0x5c3188,_0x48df3e),this[_0x2dc3c4(0x108)](_0x5c3188);}[_0x52be86(0xda)](_0x5d76d2){const _0xc133b2=_0x52be86;if(typeof _0x5d76d2[_0xc133b2(0xed)]!==_0xc133b2(0xf9)||typeof _0x5d76d2[_0xc133b2(0xce)]!==_0xc133b2(0xf9)||typeof _0x5d76d2[_0xc133b2(0xc4)]!==_0xc133b2(0xf9))throw new Error(_0xc133b2(0xfa));const _0x302edd=this[_0xc133b2(0x149)](_0x5d76d2),_0xf9cad8=this[_0xc133b2(0xc2)][_0xc133b2(0xd8)](_0x302edd);if(_0xf9cad8?.[_0xc133b2(0xce)]===_0x5d76d2[_0xc133b2(0xce)]&&_0xf9cad8[_0xc133b2(0xed)]===_0x5d76d2[_0xc133b2(0xed)])this[_0xc133b2(0xdd)](_0x302edd);return{'stopped':!![]};}[_0x52be86(0x142)](_0x44c9af){const _0x13be29=_0x52be86,_0x4914b5=this[_0x13be29(0x150)][_0x13be29(0xd8)](_0x44c9af['id']);if(_0x4914b5!==undefined)return _0x4914b5[_0x13be29(0x10e)]=Date[_0x13be29(0xbf)]()+TTL_MS,{'expiresAt':_0x4914b5[_0x13be29(0x10e)]};const _0x5a96b4={'session':_0x44c9af,'mode':this[_0x13be29(0xe1)][_0x13be29(0x11b)](_0x44c9af)?_0x13be29(0xc6):_0x13be29(0xfe),'expiresAt':Date[_0x13be29(0xbf)]()+TTL_MS,'refresh':undefined,'sessionSignature':undefined,'signature':undefined,'page':undefined,'runtimePage':undefined,'runtimeRevision':undefined,'runtimeRead':undefined,'historyRead':undefined,'observedPage':undefined,'authority':undefined,'eventRevision':0x0,'failures':0x0,'transitionGeneration':0x0,'timer':undefined};return _0x5a96b4[_0x13be29(0x144)]=this[_0x13be29(0xe0)](_0x44c9af['id']),this[_0x13be29(0x150)][_0x13be29(0x105)](_0x44c9af['id'],_0x5a96b4),{'expiresAt':_0x5a96b4[_0x13be29(0x10e)]};}[_0x52be86(0x114)](_0xf13675,_0x48dfcf){const _0x27a7b4=_0x52be86,_0x219780=this[_0x27a7b4(0x150)][_0x27a7b4(0xd8)](_0xf13675);if(_0x219780!==undefined)_0x219780[_0x27a7b4(0x14d)]=_0x48dfcf[_0x27a7b4(0x140)];const _0x2e1300=[...this[_0x27a7b4(0xc2)][_0x27a7b4(0xf5)]()][_0x27a7b4(0x131)](_0x33247a=>_0x33247a[_0x27a7b4(0xed)]===_0xf13675),_0x48dfbd=sessionActivity(_0x48dfcf);if(_0x219780!==undefined&&_0x48dfbd===_0x27a7b4(0xc6)&&_0x219780[_0x27a7b4(0x125)]!==_0x27a7b4(0xc6)){_0x219780[_0x27a7b4(0x125)]=_0x27a7b4(0xc6),_0x219780[_0x27a7b4(0x13f)]+=-0x5bf+0x1af1+-0x1531;for(const _0x295a36 of _0x2e1300)_0x295a36[_0x27a7b4(0x100)]=![];void this[_0x27a7b4(0x135)](_0x219780,_0x219780[_0x27a7b4(0x13f)]);}else{if(_0x219780!==undefined&&_0x48dfbd===_0x27a7b4(0x101)&&_0x219780[_0x27a7b4(0x125)]===_0x27a7b4(0xc6)){_0x219780[_0x27a7b4(0x125)]=_0x27a7b4(0x12b);const _0x4f8740=++_0x219780[_0x27a7b4(0x13f)];for(const _0x571d20 of _0x2e1300)_0x571d20[_0x27a7b4(0x100)]=![];setTimeout(()=>void this[_0x27a7b4(0xc0)](_0x219780,_0x4f8740),0x18e*-0x1+-0xf4f*0x1+-0x1*-0x10dd);}}for(const _0x4f6ddd of _0x2e1300){if(!_0x4f6ddd[_0x27a7b4(0x100)])_0x4f6ddd[_0x27a7b4(0xd2)][_0x27a7b4(0x14f)](_0x48dfcf);else this[_0x27a7b4(0x118)](_0x4f6ddd,_0x48dfcf);}return _0x2e1300[_0x27a7b4(0x12f)]>-0x12d5+-0x35*-0x23+-0xb96*-0x1;}[_0x52be86(0xd4)](_0x3d7af4){const _0x3115ca=_0x52be86,_0x57c037=this[_0x3115ca(0x150)][_0x3115ca(0xd8)](_0x3d7af4['id']);if(_0x57c037===undefined||_0x57c037[_0x3115ca(0x10e)]<=Date[_0x3115ca(0xbf)]())return this[_0x3115ca(0xf0)](_0x3d7af4['id']),undefined;return _0x57c037[_0x3115ca(0x10e)]=Date[_0x3115ca(0xbf)]()+TTL_MS,{'expiresAt':_0x57c037[_0x3115ca(0x10e)]};}[_0x52be86(0xf0)](_0x4aa854){const _0x17d243=_0x52be86,_0x423b5c=this[_0x17d243(0x150)][_0x17d243(0xd8)](_0x4aa854);if(_0x423b5c===undefined)return;clearTimeout(_0x423b5c[_0x17d243(0x144)]),this[_0x17d243(0x150)][_0x17d243(0x112)](_0x4aa854);}[_0x52be86(0x109)](){const _0x3a8806=_0x52be86;for(const _0x22309b of this[_0x3a8806(0x150)][_0x3a8806(0xf5)]())clearTimeout(_0x22309b[_0x3a8806(0x144)]);this[_0x3a8806(0x150)][_0x3a8806(0x109)]();for(const _0x2eeb0e of this[_0x3a8806(0xc2)][_0x3a8806(0xf5)]())clearTimeout(_0x2eeb0e[_0x3a8806(0x144)]);this[_0x3a8806(0xc2)][_0x3a8806(0x109)]();}[_0x52be86(0xe6)](_0x86f97){const _0x4d5034=_0x52be86;return this[_0x4d5034(0x150)][_0x4d5034(0xe6)](_0x86f97);}[_0x52be86(0xdf)](_0xa5edee){const _0xbc0d34=_0x52be86;return this[_0xbc0d34(0x150)][_0xbc0d34(0xd8)](_0xa5edee);}get[_0x52be86(0x104)](){const _0x1f4eb5=_0x52be86;return this[_0x1f4eb5(0x150)][_0x1f4eb5(0x104)];}async[_0x52be86(0xf2)](_0x4712a9,_0x24bd86=0x17d3+0x1b72+-0x3d*0xd7,_0x58adbf=!![]){const _0x524458=_0x52be86,_0x1fe849=this[_0x524458(0x150)][_0x524458(0xd8)](_0x4712a9);if(_0x1fe849===undefined)return undefined;if(_0x1fe849[_0x524458(0xf2)]!==undefined)return _0x1fe849[_0x524458(0xf2)];if(_0x1fe849[_0x524458(0x10e)]<=Date[_0x524458(0xbf)]())return this[_0x524458(0xf0)](_0x4712a9),undefined;const _0x28373=this[_0x524458(0x121)](_0x4712a9,_0x1fe849,_0x24bd86,_0x58adbf);_0x1fe849[_0x524458(0xf2)]=_0x28373;try{return await _0x28373;}finally{this[_0x524458(0x150)][_0x524458(0xd8)](_0x4712a9)===_0x1fe849&&(_0x1fe849[_0x524458(0xf2)]=undefined,clearTimeout(_0x1fe849[_0x524458(0x144)]),_0x1fe849[_0x524458(0x144)]=this[_0x524458(0xe0)](_0x4712a9));}}async[_0x52be86(0x121)](_0x44c3e8,_0x1f71ba,_0x57ddb7,_0x3e94d8){const _0x51609c=_0x52be86;let _0x30fe1d=_0x51609c(0x127),_0x3090df;try{if(this[_0x51609c(0xe1)][_0x51609c(0x12a)]?.(_0x44c3e8)===!![])return _0x1f71ba[_0x51609c(0x10a)];_0x3090df=await this[_0x51609c(0xe1)][_0x51609c(0x127)](_0x44c3e8);if(_0x3090df===undefined||_0x3090df[_0x51609c(0x123)]===null)return this[_0x51609c(0xe7)](_0x44c3e8),undefined;_0x1f71ba[_0x51609c(0x145)]=_0x3090df;if(_0x3e94d8&&this[_0x51609c(0xe1)][_0x51609c(0x11b)](_0x3090df))return _0x1f71ba[_0x51609c(0x10a)];_0x30fe1d=_0x51609c(0x12c),await this[_0x51609c(0xe1)][_0x51609c(0x13a)](_0x3090df);if(this[_0x51609c(0xe1)][_0x51609c(0x12a)]?.(_0x44c3e8)===!![])return _0x1f71ba[_0x51609c(0x10a)];_0x30fe1d=_0x51609c(0x154);const _0x27a67a=_0x1f71ba[_0x51609c(0x14d)],_0x226d0a=await this[_0x51609c(0xe1)][_0x51609c(0x119)](_0x3090df,_0x57ddb7);if(_0x3e94d8&&_0x27a67a!==_0x1f71ba[_0x51609c(0x14d)])return _0x1f71ba[_0x51609c(0x10a)];_0x30fe1d=_0x51609c(0xc7);const _0x368ebb=this[_0x51609c(0xe1)][_0x51609c(0xeb)](_0x3090df),_0x2ad96c=JSON[_0x51609c(0x110)](_0x368ebb);if(_0x2ad96c!==_0x1f71ba[_0x51609c(0xf6)]){_0x1f71ba[_0x51609c(0xf6)]=_0x2ad96c;if(_0x3e94d8)this[_0x51609c(0xe1)][_0x51609c(0xc5)](_0x368ebb);}_0x1f71ba[_0x51609c(0xe4)]=0x998+0x11*-0x22d+0x1*0x1b65;const _0x3c55af=_0x226d0a[_0x51609c(0xca)][_0x51609c(0x12f)]<=EMITTED_TURN_LIMIT?_0x226d0a[_0x51609c(0xca)]:_0x226d0a[_0x51609c(0xca)][_0x51609c(0x14b)](-EMITTED_TURN_LIMIT),_0x1f5981={..._0x226d0a,'turns':_0x3c55af};_0x30fe1d=_0x51609c(0x137);const _0x19965f=this[_0x51609c(0xe1)][_0x51609c(0xff)](_0x1f71ba[_0x51609c(0x10a)],_0x1f71ba[_0x51609c(0x106)],_0x1f5981,_0x1f71ba[_0x51609c(0xd5)]),_0x15d44c=_0x19965f[_0x51609c(0x10a)],_0x4c7473=_0x15d44c[_0x51609c(0xca)][_0x51609c(0x12f)]<=EMITTED_TURN_LIMIT+(0x15c1+-0x1*0xa52+-0xb6e)?_0x15d44c:{..._0x15d44c,'turns':_0x15d44c[_0x51609c(0xca)][_0x51609c(0x14b)](-(EMITTED_TURN_LIMIT+(0x2*-0x381+0x961+-0x3*0xca)))};_0x1f71ba[_0x51609c(0x106)]=_0x1f5981,_0x1f71ba[_0x51609c(0xd5)]=_0x19965f[_0x51609c(0xd5)];const _0x286744=_0x1f71ba[_0x51609c(0x125)]===_0x51609c(0x12b)&&!this[_0x51609c(0xe1)][_0x51609c(0x11b)](_0x3090df);_0x286744&&(_0x1f71ba[_0x51609c(0x125)]=_0x51609c(0xfe),_0x1f71ba[_0x51609c(0x147)]=undefined,_0x1f71ba[_0x51609c(0xec)]=undefined);const _0x24464c=JSON[_0x51609c(0x110)]({'source':_0x4c7473[_0x51609c(0x12e)],'turns':_0x4c7473[_0x51609c(0xca)]}),_0x444faf=_0x24464c!==_0x1f71ba[_0x51609c(0x117)];_0x444faf&&(_0x1f71ba[_0x51609c(0x117)]=_0x24464c,_0x1f71ba[_0x51609c(0x10a)]=_0x4c7473);_0x30fe1d=_0x51609c(0xd0);if(_0x3e94d8&&_0x286744)this[_0x51609c(0xd6)](_0x3090df,_0x4c7473,!![]);else{if(_0x3e94d8&&_0x444faf)this[_0x51609c(0x11f)](_0x3090df,_0x4c7473);}return _0x3e94d8?_0x4c7473:_0x226d0a;}catch(_0x1ccc9a){_0x1f71ba[_0x51609c(0xe4)]+=-0xb29*0x3+-0x8*-0x39a+0x4ac,this[_0x51609c(0xe1)][_0x51609c(0x10d)]?.(_0x51609c(0xd3),{'nodeId':this[_0x51609c(0xe1)][_0x51609c(0x141)]?.()??_0x51609c(0xc9),'sessionId':_0x44c3e8,..._0x3090df===undefined?{}:{'runner':_0x3090df[_0x51609c(0xd9)]},'stage':_0x30fe1d,'errorCode':diagnosticErrorCode(_0x1ccc9a,_0x51609c(0xe9)),'failureCount':_0x1f71ba[_0x51609c(0xe4)],'terminal':_0x1f71ba[_0x51609c(0xe4)]>=MAX_FAILURES});if(_0x1f71ba[_0x51609c(0xe4)]>=MAX_FAILURES)this[_0x51609c(0x138)](_0x44c3e8);return undefined;}}[_0x52be86(0x13d)](_0x1cbdf9){const _0x4cc33e=_0x52be86;return typeof _0x1cbdf9[_0x4cc33e(0xd1)]===_0x4cc33e(0xf9)?_0x1cbdf9[_0x4cc33e(0xd1)]:_0x4cc33e(0xea);}[_0x52be86(0x149)](_0x460f77){const _0x571b79=_0x52be86;return this[_0x571b79(0x13d)](_0x460f77)+':'+_0x460f77[_0x571b79(0xc4)];}[_0x52be86(0x108)](_0x2c5ca8){const _0x3edef1=_0x52be86;return{'accepted':!![],'watchId':_0x2c5ca8[_0x3edef1(0xce)],'nodeGeneration':_0x2c5ca8[_0x3edef1(0x153)],'expiresAt':_0x2c5ca8[_0x3edef1(0x10e)]};}async[_0x52be86(0xf1)](_0x4d52d0,_0x390d81){const _0x3d68a2=_0x52be86;let _0x3027c6=_0x3d68a2(0x127);try{const _0x56e205=await this[_0x3d68a2(0xe1)][_0x3d68a2(0x127)](_0x4d52d0[_0x3d68a2(0xed)]);if(_0x56e205===undefined||_0x56e205[_0x3d68a2(0x123)]===null)throw new Error(_0x3d68a2(0xef));if(_0x4d52d0[_0x3d68a2(0x146)]!==undefined&&_0x56e205[_0x3d68a2(0x146)]!==_0x4d52d0[_0x3d68a2(0x146)])throw new Error(_0x3d68a2(0xe5));if(this[_0x3d68a2(0xc2)][_0x3d68a2(0xd8)](_0x4d52d0[_0x3d68a2(0x149)])!==_0x4d52d0)return;_0x4d52d0[_0x3d68a2(0x146)]=_0x56e205[_0x3d68a2(0x146)],_0x3027c6=_0x3d68a2(0x11a),this[_0x3d68a2(0x142)](_0x56e205);const _0x5d56ea=this[_0x3d68a2(0x150)][_0x3d68a2(0xd8)](_0x56e205['id']);if(_0x5d56ea!==undefined)_0x5d56ea[_0x3d68a2(0x145)]=_0x56e205;const _0x116bec=this[_0x3d68a2(0xe1)][_0x3d68a2(0x11b)](_0x56e205);if(_0x5d56ea!==undefined)_0x5d56ea[_0x3d68a2(0x125)]=_0x116bec?_0x3d68a2(0xc6):_0x5d56ea[_0x3d68a2(0x125)];const _0x7219b9=!_0x116bec&&_0x5d56ea?.[_0x3d68a2(0x10a)]!==undefined?_0x5d56ea[_0x3d68a2(0x10a)]:undefined,_0x221d11=_0x116bec?_0x5d56ea===undefined?undefined:this[_0x3d68a2(0xfb)](_0x5d56ea[_0x3d68a2(0x10a)],await this[_0x3d68a2(0x134)](_0x5d56ea,_0x56e205)):_0x7219b9??(_0x5d56ea===undefined?undefined:await this[_0x3d68a2(0xf2)](_0x56e205['id'],INITIAL_TURN_LIMIT,![]));if(_0x221d11===undefined)throw new Error(_0x3d68a2(0xfc));if(_0x4d52d0[_0x3d68a2(0x129)])return;_0x3027c6=_0x3d68a2(0x111);const _0x3b80a2=_0x4d52d0[_0x3d68a2(0x11e)]===_0x3d68a2(0xe2)?_0x390d81(_0x56e205,_0x221d11,_0x3d68a2(0xe2),-0x53*-0x8+-0x3d3+-0x1*-0x145):_0x221d11;if(this[_0x3d68a2(0xc2)][_0x3d68a2(0xd8)](_0x4d52d0[_0x3d68a2(0x149)])!==_0x4d52d0)return;this[_0x3d68a2(0x11c)](_0x4d52d0,_0x56e205,_0x3b80a2),_0x4d52d0[_0x3d68a2(0x100)]=!![];for(const _0x188769 of _0x4d52d0[_0x3d68a2(0xd2)])this[_0x3d68a2(0x118)](_0x4d52d0,_0x188769);_0x4d52d0[_0x3d68a2(0xd2)][_0x3d68a2(0x12f)]=0x7*0x288+-0x1*0x8bf+-0x8f9;if(_0x116bec&&_0x5d56ea!==undefined&&_0x5d56ea[_0x3d68a2(0x10a)]===undefined)void this[_0x3d68a2(0xc1)](_0x5d56ea,_0x56e205);}catch(_0x2e606d){if(this[_0x3d68a2(0xc2)][_0x3d68a2(0xd8)](_0x4d52d0[_0x3d68a2(0x149)])!==_0x4d52d0)return;const _0x1abd43=diagnosticErrorCode(_0x2e606d,_0x3d68a2(0x14e));this[_0x3d68a2(0xe1)][_0x3d68a2(0x10d)]?.(_0x3d68a2(0x103),{'nodeId':this[_0x3d68a2(0xe1)][_0x3d68a2(0x141)]?.()??_0x3d68a2(0xc9),'sessionId':_0x4d52d0[_0x3d68a2(0xed)],'workspaceId':_0x4d52d0[_0x3d68a2(0x146)]??_0x3d68a2(0x14c),'workbenchConnectionId':_0x4d52d0[_0x3d68a2(0xc4)],'watchId':_0x4d52d0[_0x3d68a2(0xce)],'stage':_0x3027c6,'errorCode':_0x1abd43}),this[_0x3d68a2(0xe1)][_0x3d68a2(0x13b)]?.({'type':_0x3d68a2(0x139),'workbenchConnectionId':_0x4d52d0[_0x3d68a2(0xc4)],'watchType':_0x3d68a2(0x145),'watchId':_0x4d52d0[_0x3d68a2(0xce)],'nodeGeneration':_0x4d52d0[_0x3d68a2(0x153)],'nodeId':this[_0x3d68a2(0xe1)][_0x3d68a2(0x141)]?.()??_0x3d68a2(0xc9),'workspaceId':_0x4d52d0[_0x3d68a2(0x146)]??_0x3d68a2(0x14c),'sessionId':_0x4d52d0[_0x3d68a2(0xed)],'code':_0x1abd43,'message':_0x3d68a2(0xdb)}),this[_0x3d68a2(0xdd)](_0x4d52d0[_0x3d68a2(0x149)]);}}[_0x52be86(0xdd)](_0x3e59a2){const _0x545062=_0x52be86,_0x19840e=this[_0x545062(0xc2)][_0x545062(0xd8)](_0x3e59a2);if(_0x19840e===undefined)return;clearTimeout(_0x19840e[_0x545062(0x144)]),this[_0x545062(0xc2)][_0x545062(0x112)](_0x3e59a2);const _0xdcc1a7=this[_0x545062(0x150)][_0x545062(0xd8)](_0x19840e[_0x545062(0xed)]),_0x22376d=this[_0x545062(0x126)](_0x19840e[_0x545062(0xed)]);if(_0x22376d===-0x7c5+0x2113+-0x194e)this[_0x545062(0xf0)](_0x19840e[_0x545062(0xed)]);else{if(_0xdcc1a7!==undefined)_0xdcc1a7[_0x545062(0x10e)]=_0x22376d;}}[_0x52be86(0xfb)](_0x2e47ea,_0xde65fb){const _0x30ef19=_0x52be86;return this[_0x30ef19(0xe1)][_0x30ef19(0xfb)]?.(_0x2e47ea,_0xde65fb)??_0xde65fb;}async[_0x52be86(0x134)](_0xf19734,_0x510be5){const _0x2ff8d8=_0x52be86;if(_0xf19734[_0x2ff8d8(0x147)]!==undefined&&_0xf19734[_0x2ff8d8(0xec)]===_0xf19734[_0x2ff8d8(0x14d)])return _0xf19734[_0x2ff8d8(0x147)];if(_0xf19734[_0x2ff8d8(0x10f)]!==undefined)return _0xf19734[_0x2ff8d8(0x10f)];const _0x32ad05=_0xf19734[_0x2ff8d8(0x14d)],_0x9985e6=this[_0x2ff8d8(0xe1)][_0x2ff8d8(0x119)](_0x510be5,INITIAL_TURN_LIMIT);_0xf19734[_0x2ff8d8(0x10f)]=_0x9985e6;try{const _0x5874c0=await _0x9985e6;return this[_0x2ff8d8(0x150)][_0x2ff8d8(0xd8)](_0x510be5['id'])===_0xf19734&&(_0xf19734[_0x2ff8d8(0x147)]=_0x5874c0,_0xf19734[_0x2ff8d8(0xec)]=_0x32ad05),_0x5874c0;}finally{if(this[_0x2ff8d8(0x150)][_0x2ff8d8(0xd8)](_0x510be5['id'])===_0xf19734&&_0xf19734[_0x2ff8d8(0x10f)]===_0x9985e6)_0xf19734[_0x2ff8d8(0x10f)]=undefined;}}async[_0x52be86(0x135)](_0x11902e,_0xeb939b){const _0x3c906b=_0x52be86,_0x5c6f36=_0x11902e[_0x3c906b(0x145)];if(_0x5c6f36===undefined)return;try{const _0x301315=await this[_0x3c906b(0x134)](_0x11902e,_0x5c6f36);if(this[_0x3c906b(0x150)][_0x3c906b(0xd8)](_0x5c6f36['id'])!==_0x11902e||_0x11902e[_0x3c906b(0x125)]!==_0x3c906b(0xc6)||_0x11902e[_0x3c906b(0x13f)]!==_0xeb939b)return;_0x11902e[_0x3c906b(0x147)]=_0x301315,this[_0x3c906b(0xd6)](_0x5c6f36,this[_0x3c906b(0xfb)](_0x11902e[_0x3c906b(0x10a)],_0x301315),!![]);}catch(_0x511a80){this[_0x3c906b(0xe1)][_0x3c906b(0x10d)]?.(_0x3c906b(0x113),{'nodeId':this[_0x3c906b(0xe1)][_0x3c906b(0x141)]?.()??_0x3c906b(0xc9),'sessionId':_0x5c6f36['id'],'runner':_0x5c6f36[_0x3c906b(0xd9)],'errorCode':diagnosticErrorCode(_0x511a80,_0x3c906b(0x107))}),this[_0x3c906b(0x13c)](_0x5c6f36['id']);}}async[_0x52be86(0xc1)](_0x1596e6,_0x1e92c4){const _0x5bac50=_0x52be86;if(this[_0x5bac50(0xe1)][_0x5bac50(0x122)]===undefined||_0x1596e6[_0x5bac50(0xdc)]!==undefined)return;const _0x1df790=this[_0x5bac50(0xe1)][_0x5bac50(0x122)](_0x1e92c4,INITIAL_TURN_LIMIT);_0x1596e6[_0x5bac50(0xdc)]=_0x1df790;try{const _0x4823ea=await _0x1df790;if(this[_0x5bac50(0x150)][_0x5bac50(0xd8)](_0x1e92c4['id'])!==_0x1596e6||_0x1596e6[_0x5bac50(0x125)]!==_0x5bac50(0xc6))return;_0x1596e6[_0x5bac50(0x10a)]=_0x4823ea,_0x1596e6[_0x5bac50(0xd5)]=_0x4823ea[_0x5bac50(0x12e)];const _0x2e7329=await this[_0x5bac50(0x134)](_0x1596e6,_0x1e92c4);if(this[_0x5bac50(0x150)][_0x5bac50(0xd8)](_0x1e92c4['id'])!==_0x1596e6||_0x1596e6[_0x5bac50(0x125)]!==_0x5bac50(0xc6))return;this[_0x5bac50(0xd6)](_0x1e92c4,this[_0x5bac50(0xfb)](_0x4823ea,_0x2e7329),!![]);}catch(_0x49c0f0){this[_0x5bac50(0xe1)][_0x5bac50(0x10d)]?.(_0x5bac50(0xfd),{'nodeId':this[_0x5bac50(0xe1)][_0x5bac50(0x141)]?.()??_0x5bac50(0xc9),'sessionId':_0x1e92c4['id'],'runner':_0x1e92c4[_0x5bac50(0xd9)],'errorCode':diagnosticErrorCode(_0x49c0f0,_0x5bac50(0xf4))});}finally{if(this[_0x5bac50(0x150)][_0x5bac50(0xd8)](_0x1e92c4['id'])===_0x1596e6&&_0x1596e6[_0x5bac50(0xdc)]===_0x1df790)_0x1596e6[_0x5bac50(0xdc)]=undefined;}}async[_0x52be86(0xc0)](_0x358870,_0x24e30d){const _0x13284d=_0x52be86;if(_0x358870[_0x13284d(0xdc)]!==undefined)try{await _0x358870[_0x13284d(0xdc)];}catch{}const _0x1f7fa8=_0x358870[_0x13284d(0x145)];if(_0x1f7fa8===undefined||this[_0x13284d(0x150)][_0x13284d(0xd8)](_0x1f7fa8['id'])!==_0x358870||_0x358870[_0x13284d(0x125)]!==_0x13284d(0x12b)||_0x358870[_0x13284d(0x13f)]!==_0x24e30d)return;await this[_0x13284d(0xf2)](_0x1f7fa8['id'],INITIAL_TURN_LIMIT,!![]);}[_0x52be86(0x118)](_0x339d4c,_0x5d06cb){const _0x229dec=_0x52be86;this[_0x229dec(0xe1)][_0x229dec(0x13b)]?.({'type':_0x229dec(0xf7),'workbenchConnectionId':_0x339d4c[_0x229dec(0xc4)],'watchId':_0x339d4c[_0x229dec(0xce)],'nodeGeneration':_0x339d4c[_0x229dec(0x153)],'nodeId':this[_0x229dec(0xe1)][_0x229dec(0x141)]?.()??_0x229dec(0xc9),'workspaceId':_0x339d4c[_0x229dec(0x146)]??_0x229dec(0x14c),'sessionId':_0x339d4c[_0x229dec(0xed)],'expiresAt':_0x339d4c[_0x229dec(0x10e)],'event':_0x5d06cb});}[_0x52be86(0x11f)](_0x50b971,_0x2083ed){const _0x134b1d=_0x52be86,_0x101464=[...this[_0x134b1d(0xc2)][_0x134b1d(0xf5)]()][_0x134b1d(0x131)](_0xa0f1fa=>_0xa0f1fa[_0x134b1d(0xed)]===_0x50b971['id']);if(_0x101464[_0x134b1d(0x12f)]===0x249f+-0x1f83+-0x51c){this[_0x134b1d(0xe1)][_0x134b1d(0xc8)](_0x50b971,_0x2083ed);return;}for(const _0x28af68 of _0x101464){if(!_0x28af68[_0x134b1d(0x100)])continue;const _0x3ed3b8=_0x28af68[_0x134b1d(0x11e)]===_0x134b1d(0xe2)?this[_0x134b1d(0xe1)][_0x134b1d(0x130)]?.(_0x50b971,_0x2083ed,_0x134b1d(0xe2),0xfe*0x25+-0x4a*-0x3c+-0x3604):_0x2083ed;if(_0x3ed3b8===undefined)continue;this[_0x134b1d(0xe1)][_0x134b1d(0x13b)]?.({'type':_0x134b1d(0xcf),'workbenchConnectionId':_0x28af68[_0x134b1d(0xc4)],'watchId':_0x28af68[_0x134b1d(0xce)],'nodeGeneration':_0x28af68[_0x134b1d(0x153)],'nodeId':this[_0x134b1d(0xe1)][_0x134b1d(0x141)]?.()??_0x134b1d(0xc9),'workspaceId':_0x50b971[_0x134b1d(0x146)],'sessionId':_0x50b971['id'],'revision':0x1,'snapshotSequence':++this[_0x134b1d(0x102)],'expiresAt':_0x28af68[_0x134b1d(0x10e)],'payload':_0x3ed3b8});}}[_0x52be86(0xd6)](_0x585d34,_0x3e0e35,_0x51478f){const _0x423bb6=_0x52be86;for(const _0xfe344d of[...this[_0x423bb6(0xc2)][_0x423bb6(0xf5)]()]){if(_0xfe344d[_0x423bb6(0xed)]!==_0x585d34['id'])continue;const _0x5c646c=_0xfe344d[_0x423bb6(0x11e)]===_0x423bb6(0xe2)?this[_0x423bb6(0xe1)][_0x423bb6(0x130)]?.(_0x585d34,_0x3e0e35,_0x423bb6(0xe2),-0xbda+0x179c+-0xbb8):_0x3e0e35;if(_0x5c646c===undefined)continue;this[_0x423bb6(0x11c)](_0xfe344d,_0x585d34,_0x5c646c);if(!_0x51478f)continue;_0xfe344d[_0x423bb6(0x100)]=!![];for(const _0x45e6f4 of _0xfe344d[_0x423bb6(0xd2)])this[_0x423bb6(0x118)](_0xfe344d,_0x45e6f4);_0xfe344d[_0x423bb6(0xd2)][_0x423bb6(0x12f)]=0x2cf*0x1+-0x111f+0x8*0x1ca;}}[_0x52be86(0x11c)](_0x433335,_0x4e8393,_0x1735ff){const _0x3f67af=_0x52be86;_0x433335[_0x3f67af(0x129)]=!![],this[_0x3f67af(0xe1)][_0x3f67af(0x13b)]?.({'type':_0x3f67af(0xcf),'workbenchConnectionId':_0x433335[_0x3f67af(0xc4)],'watchId':_0x433335[_0x3f67af(0xce)],'nodeGeneration':_0x433335[_0x3f67af(0x153)],'nodeId':this[_0x3f67af(0xe1)][_0x3f67af(0x141)]?.()??_0x3f67af(0xc9),'workspaceId':_0x4e8393[_0x3f67af(0x146)],'sessionId':_0x4e8393['id'],'revision':0x1,'snapshotSequence':++this[_0x3f67af(0x102)],'expiresAt':_0x433335[_0x3f67af(0x10e)],'payload':_0x1735ff});}[_0x52be86(0x13c)](_0x6bd7d3){const _0x23afad=_0x52be86;for(const _0x12b0ba of this[_0x23afad(0xc2)][_0x23afad(0xf5)]()){if(_0x12b0ba[_0x23afad(0xed)]!==_0x6bd7d3)continue;_0x12b0ba[_0x23afad(0x100)]=!![];for(const _0x357d22 of _0x12b0ba[_0x23afad(0xd2)])this[_0x23afad(0x118)](_0x12b0ba,_0x357d22);_0x12b0ba[_0x23afad(0xd2)][_0x23afad(0x12f)]=0x905*0x1+0xd8d+0x786*-0x3;}}[_0x52be86(0x138)](_0x3affd8){const _0x4e9e1b=_0x52be86;for(const _0x42b637 of[...this[_0x4e9e1b(0xc2)][_0x4e9e1b(0xf5)]()]){if(_0x42b637[_0x4e9e1b(0xed)]!==_0x3affd8)continue;this[_0x4e9e1b(0xe1)][_0x4e9e1b(0x13b)]?.({'type':_0x4e9e1b(0x139),'workbenchConnectionId':_0x42b637[_0x4e9e1b(0xc4)],'watchType':_0x4e9e1b(0x145),'watchId':_0x42b637[_0x4e9e1b(0xce)],'nodeGeneration':_0x42b637[_0x4e9e1b(0x153)],'nodeId':this[_0x4e9e1b(0xe1)][_0x4e9e1b(0x141)]?.()??_0x4e9e1b(0xc9),'workspaceId':_0x42b637[_0x4e9e1b(0x146)]??_0x4e9e1b(0x14c),'sessionId':_0x3affd8,'code':_0x4e9e1b(0xfc),'message':_0x4e9e1b(0xdb)}),this[_0x4e9e1b(0xdd)](_0x42b637[_0x4e9e1b(0x149)]);}this[_0x4e9e1b(0xf0)](_0x3affd8);}[_0x52be86(0xe7)](_0x4b0cbe){const _0x53d0da=_0x52be86;for(const _0x400d5b of[...this[_0x53d0da(0xc2)][_0x53d0da(0xf5)]()])if(_0x400d5b[_0x53d0da(0xed)]===_0x4b0cbe)this[_0x53d0da(0xdd)](_0x400d5b[_0x53d0da(0x149)]);this[_0x53d0da(0xf0)](_0x4b0cbe);}[_0x52be86(0xde)](_0x138476){const _0x4cce6c=_0x52be86,_0x27579e=setTimeout(()=>this[_0x4cce6c(0xdd)](_0x138476),TTL_MS);return _0x27579e[_0x4cce6c(0x116)](),_0x27579e;}[_0x52be86(0x126)](_0x6bf362){const _0x267ac6=_0x52be86;let _0x495b2c=0x679*0x4+0x487+-0x1e6b;for(const _0xeb00a5 of this[_0x267ac6(0xc2)][_0x267ac6(0xf5)]())if(_0xeb00a5[_0x267ac6(0xed)]===_0x6bf362)_0x495b2c=Math[_0x267ac6(0x12d)](_0x495b2c,_0xeb00a5[_0x267ac6(0x10e)]);return _0x495b2c;}[_0x52be86(0xe0)](_0x3de6fa){const _0x16082f=_0x52be86,_0x2aa1df=setTimeout(()=>void this[_0x16082f(0xf2)](_0x3de6fa),INTERVAL_MS);return _0x2aa1df[_0x16082f(0x116)](),_0x2aa1df;}}function diagnosticErrorCode(_0x154a58,_0x44955a){const _0x5e6ff9=_0x52be86,_0x246d93=safeErrorCode(_0x154a58,'');if(_0x246d93[_0x5e6ff9(0x12f)]>-0x39*-0x39+-0x5d9*0x2+-0xff)return _0x246d93;if(_0x154a58!==null&&typeof _0x154a58===_0x5e6ff9(0x11d)&&_0x5e6ff9(0x10c)in _0x154a58&&typeof _0x154a58[_0x5e6ff9(0x10c)]===_0x5e6ff9(0xf9)&&/^[A-Z][A-Z0-9_]{0,127}$/[_0x5e6ff9(0xee)](_0x154a58[_0x5e6ff9(0x10c)]))return _0x154a58[_0x5e6ff9(0x10c)];return _0x44955a;}function _0x4af5(){const _0x40c501=['oty5nJjrrezUExO','D29YA2jLBMnOq29UBMvJDgLVBKLK','zw1PDfnLC3nPB24','uLvotKLorW','ChjLC2vUDf9ZzxnZAw9U','zw1PDfbHz2u','Bg9JywWTDgvZDc1UB2rL','DhvYBNm','y2f0zwDVCNK','u1rbuLrjtKC','mtmZqM92CeTP','D2f0y2Hjza','D2f0y2GUC2vZC2LVBI5ZBMfWC2HVDa','zw1PDf9WywDL','x193B3jRC3bHy2vxyxrJAfnLC3nPB25iyxnO','CgvUzgLUz0v2zw50CW','C2vZC2LVBI53yxrJAc5YzwzYzxnOlMzHAwXLza','CMvUzxC','yxv0Ag9YAxr5','zw1PDfnUyxbZAg90vg9mzwfZzxm','mJa2nZi3mMjzyxfPCa','z2v0','CNvUBMvY','zxHLy3v0zvvUD2f0y2G','u2vZC2LVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','AgLZDg9YEvjLywq','CMvTB3zLtgvHC2u','BgvHC2vuAw1LCG','zw50CNK','CMvMCMvZAfrPBwvY','B3b0Aw9UCW','u0vhtuvova','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','zMfPBhvYzxm','u0vtu0LptL9xt1jlu1bbq0vFtuLttufuq0G','AgfZ','CMvSzwfZzvnLC3nPB25mzwfZzxm','ywn0AxzPDhK','u0vtu0LptL9xqvrdsf9sruzsrvnix0zbsuXfra','Bg9JywWTDgvZDa','ChjLC2vUDa','CNvUDgLTzvjLDMLZAw9U','C2vZC2LVBKLK','DgvZDa','u0vtu0LptL9ot1rFrK9vtKq','C3rVCa','Aw5PDgLHBgL6zuXLyxnL','CMvMCMvZAa','mta1mJe5mfHKCMnXtG','u0vtu0LptL9xqvrdsf9isvnut1jzx0zbsuXfra','DMfSDwvZ','C2vZC2LVBLnPz25HDhvYzq','D2f0y2GUC2vZC2LVBI5LDMvUDa','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','C3rYAw5N','u0vtu0LptL9jtLzbteLe','y29TCg9Zzvj1BNrPBwvqywDL','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','C2vZC2LVBI53yxrJAc5YDw5UAw5NlwHPC3rVCNKUzMfPBgvK','seLtve9swq','y29UDMvYz2vqywDL','CMvHzhK','surmrq','C25HChnOB3rtzxf1zw5Jzq','C2vZC2LVBI53yxrJAc5PBML0AwfSlMzHAwXLza','C2L6zq','C2v0','B2jZzxj2zwrqywDL','u0vtu0LptL9xqvrdsf9svu5usu1fx1noqvbtse9ux0zbsuXfra','ywnJzxb0zwq','y2XLyxi','CgfNzq','mteYnte2zM5ssfbh','y29Kzq','Bg9N','zxHWAxjLC0f0','CNvUDgLTzvjLywq','C3rYAw5NAwz5','ChjVAMvJDf9ZBMfWC2HVDa','zgvSzxrL','C2vZC2LVBI53yxrJAc5YDw50Aw1LlxnUyxbZAg90lMzHAwXLza','zw1PDfjLywX0Aw1L','Aw5PDgLHBa','Dw5Yzwy','C2LNBMf0DxjL','zw1PDeXLyxnLrxzLBNq','CMvHzfbHz2u','Aw5PDgLHBf9YzwzYzxnO','BwfUywDLzefJDgL2zq','zw1PDfnUyxbZAg90','B2jQzwn0','Dw5PDa','zw1PDe9IC2vYDMvKugfNzq','mtq1mti3n3D5Ew9Nyq','CgvYzM9YBvjLzNjLC2G','CMvHzeHPC3rVCNLqywDL','zxH0zxjUywXtzxnZAw9Uswq','tufoquDfrf9bq1rjvKu','Bw9Kzq','Bgf0zxn0tgvHC2vfEhbPCNK','CMvZB2X2zq','ndblDMnozMK','C25HChnOB3rtzw50','C3vZCgvUzgvK','q09ovKvsr0LorW','CMvMCMvZAf9Hy3rPDML0Eq','Bwf4','C291CMnL','BgvUz3rO','ChjVAMvJDeLUAxrPywXqywDL','zMLSDgvY','zxHLy3v0zvDHDgnO','vfvstG','CMvHzfj1BNrPBwvqywDL','ChvIBgLZAfj1BNrPBwvtBMfWC2HVDa','C3rHDhvZ','y29UDMvYz2vFCgfNzq','zMfPBfnLC3nPB24','D2f0y2GUzMfPBgvK','CMvMCMvZAefJDgL2Axr5','zw1PDfDHDgnOrxzLBNq','CMvSzwfZzvbLBMrPBMDfDMvUDhm','C2vZC2LVBKHHC2G','Cgf5Bg9Hza','DhjHBNnPDgLVBKDLBMvYyxrPB24','C2vXDwvUy2u','BM9KzuLK','D2f0y2G','mZq3mJm2r2fZteP0','DgLTzxi','C2vZC2LVBG','D29YA3nWywnLswq','CNvUDgLTzvbHz2u','mtyXmZK0uwTSvvLw','B3DUzxjlzxK','CNvU','C2XPy2u','Dw5RBM93BG','zxzLBNrszxzPC2LVBG','u0vtu0LptL9xqvrdsf9ttKfqu0Hpvf9gquLmruq','ChvZAa','D2f0y2HLCW','B3bLCMf0Aw9UCW','q0foq0vmteLorW','BM9KzuDLBMvYyxrPB24','CMvHzf9WywDL','BM93','y29UDMvYz2viAxn0B3j5','AhLKCMf0zvj1BM5PBMDiAxn0B3j5','BgvHC2vZ'];_0x4af5=function(){return _0x40c501;};return _0x4af5();}function sessionActivity(_0x1e0607){const _0x5f559c=_0x52be86;if(!isPlainRecord(_0x1e0607[_0x5f559c(0x13e)]))return undefined;if(_0x1e0607[_0x5f559c(0xcb)]===_0x5f559c(0x14a)&&isPlainRecord(_0x1e0607[_0x5f559c(0x13e)][_0x5f559c(0x14a)])){const _0x50b192=_0x1e0607[_0x5f559c(0x13e)][_0x5f559c(0x14a)][_0x5f559c(0x136)];if(_0x50b192===_0x5f559c(0xcc)||_0x50b192===_0x5f559c(0xc6)||_0x50b192===_0x5f559c(0x152))return _0x5f559c(0xc6);return undefined;}if(_0x1e0607[_0x5f559c(0xcb)]!==_0x5f559c(0x145))return undefined;const _0x16fb3b=_0x1e0607[_0x5f559c(0x13e)][_0x5f559c(0x145)];if(!isPlainRecord(_0x16fb3b)||typeof _0x16fb3b[_0x5f559c(0xe8)]!==_0x5f559c(0xf9))return undefined;return _0x16fb3b[_0x5f559c(0xe8)]===_0x5f559c(0x124)?_0x5f559c(0xc6):_0x5f559c(0x101);}
|
|
2
|
+
const _0x58eaa3=_0x55de;function _0x590a(){const _0x1f3bf0=['zMfPBfnLC3nPB24','Bgf0zxn0tgvHC2vfEhbPCNK','CMvSzwfZzvnLC3nPB25mzwfZzxm','C3rYAw5N','Dw5PDa','C2vZC2LVBI53yxrJAc5YDw50Aw1LlxnUyxbZAg90lMzHAwXLza','C3rYAw5NAwz5','ChjVAMvJDf9ZBMfWC2HVDa','Bg9JywWTDgvZDc1UB2rL','mtq2mdK5nfPNwe12Cq','CMvHzhK','Dw5RBM93BG','zMLSDgvY','C2L6zq','AgfZ','Bw9Kzq','CMvSzwfZzvnUyxbZAg90ugvUzgLUz0v2zw50CW','C2v0','CMvUzxC','DMfSDwvZ','mtmWDgDkBKzr','CNvUBMvY','B2jZzxj2zwrqywDL','uLvotKLorW','DgLTzxi','CgvYzM9YBvjLzNjLC2G','D2f0y2GUC2vZC2LVBI5ZBMfWC2HVDa','C291CMnL','BwfUywDLzefJDgL2zq','z2v0','CgvUzgLUz0v2zw50CW','zxHLy3v0zvDHDgnO','ChvIBgLZAfj1BNrPBwvtBMfWC2HVDa','BM9KzuLK','mZm3ndi5m1zIzxr1qW','zw1PDfjLywX0Aw1L','u0vtu0LptL9xqvrdsf9svu5usu1fx1noqvbtse9ux0zbsuXfra','y29UDMvYz2vqywDL','DgvZDa','yxv0Ag9YAxr5','C25HChnOB3rtzxf1zw5Jzq','ChjVAMvJDeLUAxrPywXqywDL','CNvU','zw1PDf9WywDL','ChjLC2vUDf9ZzxnZAw9U','y2f0zwDVCNK','C2LNBMf0DxjL','C2vZC2LVBI53yxrJAc5PBML0AwfSlMzHAwXLza','C3rVCa','Aw5PDgLHBf9YzwzYzxnO','zw1PDfnUyxbZAg90vg9mzwfZzxm','C3vZCgvUzgvK','surmrq','C2vZC2LVBI53yxrJAc5YDw5UAw5NlwHPC3rVCNKUzMfPBgvK','CgfNzq','D29YA3nWywnLswq','ywnJzxb0zwq','odyYnZK2u3DUtNjW','ChvZAa','mtGWngXXu0Lwvq','zw1PDfbHz2u','CMvZB2X2zq','y29UDMvYz2viAxn0B3j5','Bwf4','DhjHBNnPDgLVBKDLBMvYyxrPB24','zMfPBhvYzxm','B3b0Aw9UCW','Aw5PDgLHBgL6zuXLyxnL','BgvHC2vZ','D2f0y2Hjza','CMvHzfbHz2u','B3DUzxjlzxK','CMvMCMvZAefJDgL2Axr5','tKfusvzfx1rsqu5tq1jjufrFvu5bvKfjtefcteu','BM9KzuDLBMvYyxrPB24','C2vZC2LVBKLK','x193B3jRC3bHy2vxyxrJAfnLC3nPB25iyxnO','D2f0y2GUC2vZC2LVBI5LDMvUDa','CMvMCMvZAfrPBwvY','CMvHzf9WywDL','Bg9N','y2XLyxi','C25HChnOB3rtzw50','CNvUDgLTzvbHz2u','Bg9JywWTDgvZDa','zw1PDe9IC2vYDMvKugfNzq','C2XPy2u','C2vZC2LVBG','C2vZC2LVBLnPz25HDhvYzq','zxH0zxjUywXtzxnZAw9Uswq','u0vtu0LptL9xqvrdsf9ttKfqu0Hpvf9gquLmruq','q09ovKvsr0LorW','u2vZC2LVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','D2f0y2G','D29YA2jLBMnOq29UBMvJDgLVBKLK','u0vtu0LptL9xqvrdsf9isvnut1jzx0zbsuXfra','CNvUDgLTzvjLywq','BM93','C2vXDwvUy2u','u0vtu0LptL9jtLzbteLe','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','C2vZC2LVBKHHC2G','mti2AvHxu1fp','mtK4ue5vwMjV','y29TCg9Zzvj1BNrPBwvqywDL','vfvstG','tufoquDfrf9bq1rjvKu','DhvYBNm','zxHLy3v0zvvUD2f0y2G','B3bLCMf0Aw9UCW','BNvTyMvY','otz2tuDmyMW','y29UDMvYz2vFCgfNzq','D2f0y2GUzMfPBgvK','ChjLC2vUDa','Dw5Yzwy','CMvMCMvZAf9Hy3rPDML0Eq','seLtve9swq','zw1PDfnLC3nPB24','y29Kzq','nZj0shzUte8','BgvHC2vuAw1LCG','nJeYmwnXruTxuq','C3rHDhvZ','AxntywzLsw50zwDLCG','zxzLBNrszxzPC2LVBG','CMvSzwfZzvbLBMrPBMDfDMvUDhm','BgvUz3rO','zgvSzxrL','zxHWAxjLC0f0','Cgf5Bg9Hza','zw1PDfDHDgnOrxzLBNq','CMvHzeHPC3rVCNLqywDL','AhLKCMf0zvj1BM5PBMDiAxn0B3j5','zw50CNK','ywn0AxzPDhK','zw1PDeXLyxnLrxzLBNq','ndi2odC5tfLIAMj5','u1rbuLrjtKC','D2f0y2HLCW','q0foq0vmteLorW','u0vtu0LptL9ot1rFrK9vtKq','u0vhtuvova','otuWmgTfDKfUCq','CNvUDgLTzvjLDMLZAw9U','mtuWntDtwMHkwge','zw1PDfnUyxbZAg90','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','u0vtu0LptL9xqvrdsf9sruzsrvnix0zbsuXfra','u0vtu0LptL9xt1jlu1bbq0vFtuLttufuq0G','CMvTB3zLtgvHC2u','CMvHzfj1BNrPBwvqywDL','CMvMCMvZAa','Aw5PDgLHBa','AgLZDg9YEvjLywq','C2vZC2LVBI53yxrJAc5YzwzYzxnOlMzHAwXLza','B2jQzwn0'];_0x590a=function(){return _0x1f3bf0;};return _0x590a();}(function(_0x595e28,_0x5025c2){const _0x5f1f9a=_0x55de,_0x59bc1f=_0x595e28();while(!![]){try{const _0x445021=-parseInt(_0x5f1f9a(0xe7))/(0x1*0xd5a+-0x13a0+-0x1*-0x647)*(-parseInt(_0x5f1f9a(0xd4))/(0x1a7*0xb+-0x290+-0xeb*0x11))+parseInt(_0x5f1f9a(0x76))/(-0x2f9+-0x9a3+-0x167*-0x9)+parseInt(_0x5f1f9a(0xa8))/(0xee*0x5+0x1*0x32d+0x7cf*-0x1)*(parseInt(_0x5f1f9a(0xfc))/(0x1f9c+0x24e3+-0x447a))+parseInt(_0x5f1f9a(0xd3))/(0x2fb+-0x1775+0x1480)*(parseInt(_0x5f1f9a(0xfe))/(-0x1cdd+0x83*-0x45+0x4033))+parseInt(_0x5f1f9a(0xe5))/(0x10a0+0x1*0x25f7+0x368f*-0x1)*(-parseInt(_0x5f1f9a(0xf6))/(-0x1*0xe19+-0x3*0x493+-0x1bdb*-0x1))+parseInt(_0x5f1f9a(0x81))/(-0x12d4*-0x1+-0x1c8c+0x4e1*0x2)*(parseInt(_0x5f1f9a(0xa6))/(-0x1766+0xf7*0x4+0x1395))+-parseInt(_0x5f1f9a(0xdc))/(0xbc*-0x29+0x212*-0x1+0x203a)*(parseInt(_0x5f1f9a(0x8f))/(0x23f5+-0x73*-0x37+-0x3c9d*0x1));if(_0x445021===_0x5025c2)break;else _0x59bc1f['push'](_0x59bc1f['shift']());}catch(_0x29a823){_0x59bc1f['push'](_0x59bc1f['shift']());}}}(_0x590a,-0x29e1f*0x3+0x5cc2c+0x4edd3*0x2));import{isPlainRecord}from'../runner/codex/conversation-parser.js';import{safeErrorCode}from'../util/safe-error.js';const INTERVAL_MS=0x1c65*-0x1+0x2*-0xe75+0x411f,TTL_MS=-0x3*-0x2f8e+-0x7*0xf3f+-0x3*-0x2e9d,MAX_FAILURES=0x3b1+0x2d9*-0x8+-0x32f*-0x6,INITIAL_TURN_LIMIT=-0x1*-0x2025+-0x26b6+0x1d*0x3b,EMITTED_TURN_LIMIT=-0xba4+-0xf78+0x1b26;export class NativeSessionWatchService{[_0x58eaa3(0xaf)];[_0x58eaa3(0xf8)]=new Map();[_0x58eaa3(0xb1)]=new Map();[_0x58eaa3(0x95)]=-0x1b5e+-0x1c7d+-0x1*-0x37db;constructor(_0x191fa0){const _0x235d33=_0x58eaa3;this[_0x235d33(0xaf)]=_0x191fa0;}[_0x58eaa3(0xda)](){const _0x11dbd0=_0x58eaa3;return{'session.watch':_0x5bcc68=>this[_0x11dbd0(0x8c)](isPlainRecord(_0x5bcc68)?_0x5bcc68:{}),'session.unwatch':_0x5e790f=>this[_0x11dbd0(0xd9)](isPlainRecord(_0x5e790f)?_0x5e790f:{})};}async[_0x58eaa3(0x8c)](_0x5a3a2a){const _0x4571a3=_0x58eaa3,_0x3ca591=this[_0x4571a3(0xaf)][_0x4571a3(0x96)];if(_0x5a3a2a[_0x4571a3(0x71)]===_0x4571a3(0xfb)&&_0x3ca591===undefined)throw new Error(_0x4571a3(0xd0));if(typeof _0x5a3a2a[_0x4571a3(0xb8)]!==_0x4571a3(0x70)||_0x5a3a2a[_0x4571a3(0xa4)]!==undefined&&typeof _0x5a3a2a[_0x4571a3(0xa4)]!==_0x4571a3(0x70)||typeof _0x5a3a2a[_0x4571a3(0xb2)]!==_0x4571a3(0x70)||typeof _0x5a3a2a[_0x4571a3(0xcb)]!==_0x4571a3(0x70)||_0x5a3a2a[_0x4571a3(0x7c)]!==_0x4571a3(0x69)&&_0x5a3a2a[_0x4571a3(0x7c)]!==_0x4571a3(0x7f)||_0x5a3a2a[_0x4571a3(0x71)]!==undefined&&_0x5a3a2a[_0x4571a3(0x71)]!==_0x4571a3(0xfb))throw new Error(_0x4571a3(0xd0));const _0x44d731=this[_0x4571a3(0xb4)](_0x5a3a2a);if(_0x5a3a2a[_0x4571a3(0x7c)]===_0x4571a3(0x7f)){const _0x11b9fd=this[_0x4571a3(0xb1)][_0x4571a3(0x8a)](_0x44d731);if(_0x11b9fd===undefined||_0x11b9fd[_0x4571a3(0xb2)]!==_0x5a3a2a[_0x4571a3(0xb2)]||_0x11b9fd[_0x4571a3(0xb8)]!==_0x5a3a2a[_0x4571a3(0xb8)]||_0x5a3a2a[_0x4571a3(0xa4)]!==undefined&&_0x11b9fd[_0x4571a3(0xa4)]!==_0x5a3a2a[_0x4571a3(0xa4)])throw new Error(_0x4571a3(0xd1));if(_0x11b9fd[_0x4571a3(0xee)]<=Date[_0x4571a3(0xce)]()){this[_0x4571a3(0x66)](_0x44d731);throw new Error(_0x4571a3(0xd1));}_0x11b9fd[_0x4571a3(0xee)]=Date[_0x4571a3(0xce)]()+TTL_MS;const _0x6e5128=this[_0x4571a3(0xf8)][_0x4571a3(0x8a)](_0x11b9fd[_0x4571a3(0xb8)]);if(_0x6e5128!==undefined)_0x6e5128[_0x4571a3(0xee)]=this[_0x4571a3(0x6e)](_0x11b9fd[_0x4571a3(0xb8)]);return clearTimeout(_0x11b9fd[_0x4571a3(0x85)]),_0x11b9fd[_0x4571a3(0x85)]=this[_0x4571a3(0xe6)](_0x44d731),this[_0x4571a3(0xa5)](_0x11b9fd);}const _0x32aef1=this[_0x4571a3(0xb1)][_0x4571a3(0x8a)](_0x44d731),_0x3a1342=_0x5a3a2a[_0x4571a3(0x71)]===_0x4571a3(0xfb)?_0x4571a3(0xfb):_0x4571a3(0xd6);if(_0x32aef1?.[_0x4571a3(0xb2)]===_0x5a3a2a[_0x4571a3(0xb2)]&&_0x32aef1[_0x4571a3(0xb8)]===_0x5a3a2a[_0x4571a3(0xb8)]&&(_0x5a3a2a[_0x4571a3(0xa4)]===undefined||_0x32aef1[_0x4571a3(0xa4)]===_0x5a3a2a[_0x4571a3(0xa4)])&&_0x32aef1[_0x4571a3(0x71)]===_0x3a1342&&_0x32aef1[_0x4571a3(0xee)]>Date[_0x4571a3(0xce)]())return _0x32aef1[_0x4571a3(0xee)]=Date[_0x4571a3(0xce)]()+TTL_MS,clearTimeout(_0x32aef1[_0x4571a3(0x85)]),_0x32aef1[_0x4571a3(0x85)]=this[_0x4571a3(0xe6)](_0x44d731),this[_0x4571a3(0xa5)](_0x32aef1);this[_0x4571a3(0x66)](_0x44d731);const _0x237e21={'ownerKey':_0x44d731,'sessionHash':this[_0x4571a3(0xd2)](_0x5a3a2a),'workbenchConnectionId':_0x5a3a2a[_0x4571a3(0xcb)],'watchId':_0x5a3a2a[_0x4571a3(0xb2)],'sessionId':_0x5a3a2a[_0x4571a3(0xb8)],'unit':_0x3a1342,'nodeGeneration':this[_0x4571a3(0xaf)][_0x4571a3(0xb7)]?.()??_0x4571a3(0x100),...typeof _0x5a3a2a[_0x4571a3(0xa4)]===_0x4571a3(0x70)?{'workspaceId':_0x5a3a2a[_0x4571a3(0xa4)]}:{},'expiresAt':Date[_0x4571a3(0xce)]()+TTL_MS,'ready':![],'snapshotSent':![],'pendingEvents':[],'timer':undefined};_0x237e21[_0x4571a3(0x85)]=this[_0x4571a3(0xe6)](_0x44d731),this[_0x4571a3(0xb1)][_0x4571a3(0x7e)](_0x44d731,_0x237e21);const _0xe83cb2=this[_0x4571a3(0xf8)][_0x4571a3(0x8a)](_0x237e21[_0x4571a3(0xb8)]);if(_0xe83cb2!==undefined)_0xe83cb2[_0x4571a3(0xee)]=this[_0x4571a3(0x6e)](_0x237e21[_0x4571a3(0xb8)]);return void this[_0x4571a3(0xb0)](_0x237e21,_0x3ca591),this[_0x4571a3(0xa5)](_0x237e21);}[_0x58eaa3(0xd9)](_0x579d11){const _0x13cafd=_0x58eaa3;if(typeof _0x579d11[_0x13cafd(0xb8)]!==_0x13cafd(0x70)||typeof _0x579d11[_0x13cafd(0xb2)]!==_0x13cafd(0x70)||typeof _0x579d11[_0x13cafd(0xcb)]!==_0x13cafd(0x70))throw new Error(_0x13cafd(0xd0));const _0x12be9d=this[_0x13cafd(0xb4)](_0x579d11),_0xffcddd=this[_0x13cafd(0xb1)][_0x13cafd(0x8a)](_0x12be9d);if(_0xffcddd?.[_0x13cafd(0xb2)]===_0x579d11[_0x13cafd(0xb2)]&&_0xffcddd[_0x13cafd(0xb8)]===_0x579d11[_0x13cafd(0xb8)])this[_0x13cafd(0x66)](_0x12be9d);return{'stopped':!![]};}[_0x58eaa3(0xca)](_0x3b7681){const _0x28ba70=_0x58eaa3,_0x3645fb=this[_0x28ba70(0xf8)][_0x28ba70(0x8a)](_0x3b7681['id']);if(_0x3645fb!==undefined)return _0x3645fb[_0x28ba70(0xee)]=Date[_0x28ba70(0xce)]()+TTL_MS,{'expiresAt':_0x3645fb[_0x28ba70(0xee)]};const _0x34c916={'session':_0x3b7681,'mode':this[_0x28ba70(0xaf)][_0x28ba70(0x89)](_0x3b7681)?_0x28ba70(0x84):_0x28ba70(0xe2),'expiresAt':Date[_0x28ba70(0xce)]()+TTL_MS,'refresh':undefined,'sessionSignature':undefined,'signature':undefined,'page':undefined,'runtimePage':undefined,'runtimeRevision':undefined,'runtimeRead':undefined,'historyRead':undefined,'observedPage':undefined,'authority':undefined,'eventRevision':0x0,'failures':0x0,'transitionGeneration':0x0,'timer':undefined};return _0x34c916[_0x28ba70(0x85)]=this[_0x28ba70(0xbb)](_0x3b7681['id']),this[_0x28ba70(0xf8)][_0x28ba70(0x7e)](_0x3b7681['id'],_0x34c916),{'expiresAt':_0x34c916[_0x28ba70(0xee)]};}[_0x58eaa3(0x90)](_0x64e287,_0x4d10a7){const _0x2e9268=_0x58eaa3,_0x49d55b=this[_0x2e9268(0xf8)][_0x2e9268(0x8a)](_0x64e287);if(_0x49d55b!==undefined)_0x49d55b[_0x2e9268(0xea)]=_0x4d10a7[_0x2e9268(0xcf)];const _0x33a374=[...this[_0x2e9268(0xb1)][_0x2e9268(0x80)]()][_0x2e9268(0x79)](_0x3253e5=>_0x3253e5[_0x2e9268(0xb8)]===_0x64e287),_0x2d61c9=sessionActivity(_0x4d10a7);if(_0x49d55b!==undefined&&_0x2d61c9===_0x2e9268(0x84)&&_0x49d55b[_0x2e9268(0x7c)]!==_0x2e9268(0x84)){_0x49d55b[_0x2e9268(0x7c)]=_0x2e9268(0x84),_0x49d55b[_0x2e9268(0xad)]+=-0x60*0x3f+-0x1cf*-0x3+0x1234;for(const _0x16c97a of _0x33a374)_0x16c97a[_0x2e9268(0x77)]=![];void this[_0x2e9268(0x8d)](_0x49d55b,_0x49d55b[_0x2e9268(0xad)]);}else{if(_0x49d55b!==undefined&&_0x2d61c9===_0x2e9268(0xa1)&&_0x49d55b[_0x2e9268(0x7c)]===_0x2e9268(0x84)){_0x49d55b[_0x2e9268(0x7c)]=_0x2e9268(0xc8);const _0x56f4b7=++_0x49d55b[_0x2e9268(0xad)];for(const _0x22398c of _0x33a374)_0x22398c[_0x2e9268(0x77)]=![];setTimeout(()=>void this[_0x2e9268(0xab)](_0x49d55b,_0x56f4b7),0x1845+0x6*-0x556+-0x1*-0x7bf);}}for(const _0x9423cc of _0x33a374){if(!_0x9423cc[_0x2e9268(0x77)])_0x9423cc[_0x2e9268(0x8b)][_0x2e9268(0xa7)](_0x4d10a7);else this[_0x2e9268(0xf5)](_0x9423cc,_0x4d10a7);}return _0x33a374[_0x2e9268(0xec)]>-0x929+0x17*0x76+-0x7b*0x3;}[_0x58eaa3(0x7f)](_0x2382ee){const _0x258726=_0x58eaa3,_0x5762da=this[_0x258726(0xf8)][_0x258726(0x8a)](_0x2382ee['id']);if(_0x5762da===undefined||_0x5762da[_0x258726(0xee)]<=Date[_0x258726(0xce)]())return this[_0x258726(0x9d)](_0x2382ee['id']),undefined;return _0x5762da[_0x258726(0xee)]=Date[_0x258726(0xce)]()+TTL_MS,{'expiresAt':_0x5762da[_0x258726(0xee)]};}[_0x58eaa3(0x9d)](_0x50e7cb){const _0x5c5f2a=_0x58eaa3,_0x220941=this[_0x5c5f2a(0xf8)][_0x5c5f2a(0x8a)](_0x50e7cb);if(_0x220941===undefined)return;clearTimeout(_0x220941[_0x5c5f2a(0x85)]),this[_0x5c5f2a(0xf8)][_0x5c5f2a(0xed)](_0x50e7cb);}[_0x58eaa3(0xbe)](){const _0x413964=_0x58eaa3;for(const _0x1e622b of this[_0x413964(0xf8)][_0x413964(0x80)]())clearTimeout(_0x1e622b[_0x413964(0x85)]);this[_0x413964(0xf8)][_0x413964(0xbe)]();for(const _0x4093ab of this[_0x413964(0xb1)][_0x413964(0x80)]())clearTimeout(_0x4093ab[_0x413964(0x85)]);this[_0x413964(0xb1)][_0x413964(0xbe)]();}[_0x58eaa3(0x7b)](_0x63efd8){const _0xbffd47=_0x58eaa3;return this[_0xbffd47(0xf8)][_0xbffd47(0x7b)](_0x63efd8);}[_0x58eaa3(0xf3)](_0x2206e2){const _0x4fcee7=_0x58eaa3;return this[_0x4fcee7(0xf8)][_0x4fcee7(0x8a)](_0x2206e2);}get[_0x58eaa3(0x7a)](){const _0x46573f=_0x58eaa3;return this[_0x46573f(0xf8)][_0x46573f(0x7a)];}async[_0x58eaa3(0x68)](_0x196547,_0x3c18e4=-0x1a34+-0x1caf*0x1+0x6d*0x81,_0x1a933b=!![]){const _0x21a289=_0x58eaa3,_0x4c78c1=this[_0x21a289(0xf8)][_0x21a289(0x8a)](_0x196547);if(_0x4c78c1===undefined)return undefined;if(_0x4c78c1[_0x21a289(0x68)]!==undefined)return _0x4c78c1[_0x21a289(0x68)];if(_0x4c78c1[_0x21a289(0xee)]<=Date[_0x21a289(0xce)]())return this[_0x21a289(0x9d)](_0x196547),undefined;const _0x29a578=this[_0x21a289(0x86)](_0x196547,_0x4c78c1,_0x3c18e4,_0x1a933b);_0x4c78c1[_0x21a289(0x68)]=_0x29a578;try{return await _0x29a578;}finally{this[_0x21a289(0xf8)][_0x21a289(0x8a)](_0x196547)===_0x4c78c1&&(_0x4c78c1[_0x21a289(0x68)]=undefined,clearTimeout(_0x4c78c1[_0x21a289(0x85)]),_0x4c78c1[_0x21a289(0x85)]=this[_0x21a289(0xbb)](_0x196547));}}async[_0x58eaa3(0x86)](_0x2317a2,_0x5d948c,_0x91b42,_0x1b9c6f){const _0x42bbc0=_0x58eaa3;let _0x5b0efc=_0x42bbc0(0xaa),_0x1ac3b5;const _0x4e721a=_0x5d948c[_0x42bbc0(0x7c)]===_0x42bbc0(0xe2)&&this[_0x42bbc0(0xaf)][_0x42bbc0(0xf1)]!==undefined;try{if(this[_0x42bbc0(0xaf)][_0x42bbc0(0xa0)]?.(_0x2317a2)===!![])return _0x5d948c[_0x42bbc0(0xa3)];_0x1ac3b5=await this[_0x42bbc0(0xaf)][_0x42bbc0(0xaa)](_0x2317a2);if(_0x1ac3b5===undefined||_0x1ac3b5[_0x42bbc0(0xc6)]===null)return this[_0x42bbc0(0x6f)](_0x2317a2),undefined;_0x5d948c[_0x42bbc0(0xc4)]=_0x1ac3b5;if(_0x1b9c6f&&this[_0x42bbc0(0xaf)][_0x42bbc0(0x89)](_0x1ac3b5))return _0x5d948c[_0x42bbc0(0xa3)];_0x5b0efc=_0x42bbc0(0xe1),await this[_0x42bbc0(0xaf)][_0x42bbc0(0xb5)](_0x1ac3b5);if(this[_0x42bbc0(0xaf)][_0x42bbc0(0xa0)]?.(_0x2317a2)===!![])return _0x5d948c[_0x42bbc0(0xa3)];_0x5b0efc=_0x42bbc0(0xbc);const _0x2a4de5=_0x5d948c[_0x42bbc0(0xea)],_0x5709d9=await(_0x4e721a?this[_0x42bbc0(0xaf)][_0x42bbc0(0xf1)](_0x1ac3b5,_0x91b42):this[_0x42bbc0(0xaf)][_0x42bbc0(0xb3)](_0x1ac3b5,_0x91b42));if(_0x1b9c6f&&_0x2a4de5!==_0x5d948c[_0x42bbc0(0xea)])return _0x5d948c[_0x42bbc0(0xa3)];_0x5b0efc=_0x42bbc0(0x99);const _0x3c5ea3=this[_0x42bbc0(0xaf)][_0x42bbc0(0xdf)](_0x1ac3b5),_0x5557fe=JSON[_0x42bbc0(0x73)](_0x3c5ea3);if(_0x5557fe!==_0x5d948c[_0x42bbc0(0xc5)]){_0x5d948c[_0x42bbc0(0xc5)]=_0x5557fe;if(_0x1b9c6f)this[_0x42bbc0(0xaf)][_0x42bbc0(0xe3)](_0x3c5ea3);}_0x5d948c[_0x42bbc0(0xae)]=-0x1dfd*0x1+-0x6c4+0x24c1;const _0x592b46=_0x5709d9[_0x42bbc0(0xd8)][_0x42bbc0(0xec)]<=EMITTED_TURN_LIMIT?_0x5709d9[_0x42bbc0(0xd8)]:_0x5709d9[_0x42bbc0(0xd8)][_0x42bbc0(0xc3)](-EMITTED_TURN_LIMIT),_0x2e46b1={..._0x5709d9,'turns':_0x592b46};_0x5b0efc=_0x42bbc0(0xdd);const _0x547470=this[_0x42bbc0(0xaf)][_0x42bbc0(0x92)](_0x5d948c[_0x42bbc0(0xa3)],_0x5d948c[_0x42bbc0(0x83)],_0x2e46b1,_0x5d948c[_0x42bbc0(0x94)]),_0x2a5909=_0x547470[_0x42bbc0(0xa3)],_0x12c465=_0x2a5909[_0x42bbc0(0xd8)][_0x42bbc0(0xec)]<=EMITTED_TURN_LIMIT+(-0x7b0*-0x1+-0x1*-0x26b3+-0x3*0xf76)?_0x2a5909:{..._0x2a5909,'turns':_0x2a5909[_0x42bbc0(0xd8)][_0x42bbc0(0xc3)](-(EMITTED_TURN_LIMIT+(-0x37e*-0x7+0x1*-0x1f75+0x704)))};_0x5d948c[_0x42bbc0(0x83)]=_0x2e46b1,_0x5d948c[_0x42bbc0(0x94)]=_0x547470[_0x42bbc0(0x94)];const _0x5a1a64=_0x5d948c[_0x42bbc0(0x7c)]===_0x42bbc0(0xc8)&&!this[_0x42bbc0(0xaf)][_0x42bbc0(0x89)](_0x1ac3b5);_0x5a1a64&&(_0x5d948c[_0x42bbc0(0x7c)]=_0x42bbc0(0xe2),_0x5d948c[_0x42bbc0(0xc0)]=undefined,_0x5d948c[_0x42bbc0(0xfd)]=undefined);const _0x3667e4=JSON[_0x42bbc0(0x73)]({'source':_0x12c465[_0x42bbc0(0x88)],'turns':_0x12c465[_0x42bbc0(0xd8)]}),_0x2ee7c6=_0x3667e4!==_0x5d948c[_0x42bbc0(0x9b)];_0x2ee7c6&&(_0x5d948c[_0x42bbc0(0x9b)]=_0x3667e4,_0x5d948c[_0x42bbc0(0xa3)]=_0x12c465);_0x5b0efc=_0x42bbc0(0x98);if(_0x1b9c6f&&_0x5a1a64)this[_0x42bbc0(0x9f)](_0x1ac3b5,_0x12c465,!![]);else{if(_0x1b9c6f&&_0x2ee7c6)this[_0x42bbc0(0xc2)](_0x1ac3b5,_0x12c465);}return _0x1b9c6f?_0x12c465:_0x5709d9;}catch(_0x450639){_0x5d948c[_0x42bbc0(0xae)]+=0x1*0x1f66+-0x1643+-0x922,this[_0x42bbc0(0xaf)][_0x42bbc0(0xbd)]?.(_0x42bbc0(0x6b),{'nodeId':this[_0x42bbc0(0xaf)][_0x42bbc0(0x8e)]?.()??_0x42bbc0(0x75),'sessionId':_0x2317a2,..._0x1ac3b5===undefined?{}:{'runner':_0x1ac3b5[_0x42bbc0(0x82)]},'stage':_0x5b0efc,'errorCode':diagnosticErrorCode(_0x450639,_0x42bbc0(0x101)),'failureCount':_0x5d948c[_0x42bbc0(0xae)],'terminal':_0x5d948c[_0x42bbc0(0xae)]>=MAX_FAILURES});if(_0x5d948c[_0x42bbc0(0xae)]>=MAX_FAILURES)this[_0x42bbc0(0x6d)](_0x2317a2);return undefined;}}[_0x58eaa3(0xd2)](_0x14f2bf){const _0x4327a3=_0x58eaa3;return typeof _0x14f2bf[_0x4327a3(0xb9)]===_0x4327a3(0x70)?_0x14f2bf[_0x4327a3(0xb9)]:_0x4327a3(0xc1);}[_0x58eaa3(0xb4)](_0x2c0420){const _0xa37e2d=_0x58eaa3;return this[_0xa37e2d(0xd2)](_0x2c0420)+':'+_0x2c0420[_0xa37e2d(0xcb)];}[_0x58eaa3(0xa5)](_0x3db400){const _0x543248=_0x58eaa3;return{'accepted':!![],'watchId':_0x3db400[_0x543248(0xb2)],'nodeGeneration':_0x3db400[_0x543248(0xb7)],'expiresAt':_0x3db400[_0x543248(0xee)]};}async[_0x58eaa3(0xb0)](_0x17c38f,_0x5c2557){const _0x534eae=_0x58eaa3;let _0x8671d8=_0x534eae(0xaa);try{const _0x1af9d5=await this[_0x534eae(0xaf)][_0x534eae(0xaa)](_0x17c38f[_0x534eae(0xb8)]);if(_0x1af9d5===undefined||_0x1af9d5[_0x534eae(0xc6)]===null)throw new Error(_0x534eae(0xfa));if(_0x17c38f[_0x534eae(0xa4)]!==undefined&&_0x1af9d5[_0x534eae(0xa4)]!==_0x17c38f[_0x534eae(0xa4)])throw new Error(_0x534eae(0x102));if(this[_0x534eae(0xb1)][_0x534eae(0x8a)](_0x17c38f[_0x534eae(0xb4)])!==_0x17c38f)return;_0x17c38f[_0x534eae(0xa4)]=_0x1af9d5[_0x534eae(0xa4)],_0x8671d8=_0x534eae(0x9e),this[_0x534eae(0xca)](_0x1af9d5);const _0x43d6e6=this[_0x534eae(0xf8)][_0x534eae(0x8a)](_0x1af9d5['id']);if(_0x43d6e6!==undefined)_0x43d6e6[_0x534eae(0xc4)]=_0x1af9d5;const _0x1048f8=this[_0x534eae(0xaf)][_0x534eae(0x89)](_0x1af9d5);if(_0x43d6e6!==undefined)_0x43d6e6[_0x534eae(0x7c)]=_0x1048f8?_0x534eae(0x84):_0x43d6e6[_0x534eae(0x7c)];const _0x48bc76=!_0x1048f8&&_0x43d6e6?.[_0x534eae(0xa3)]!==undefined?_0x43d6e6[_0x534eae(0xa3)]:undefined;let _0x3cefe1=_0x1048f8?_0x43d6e6===undefined?undefined:this[_0x534eae(0xd5)](_0x43d6e6[_0x534eae(0xa3)],await this[_0x534eae(0x67)](_0x43d6e6,_0x1af9d5)):_0x48bc76??(_0x43d6e6===undefined?undefined:await this[_0x534eae(0x68)](_0x1af9d5['id'],INITIAL_TURN_LIMIT,![]));if(_0x3cefe1===undefined)throw new Error(_0x534eae(0xb6));if(_0x17c38f[_0x534eae(0xbf)])return;const _0x3f545d=this[_0x534eae(0xaf)][_0x534eae(0x89)](_0x1af9d5);_0x3f545d&&!_0x1048f8&&_0x43d6e6!==undefined&&(_0x43d6e6[_0x534eae(0x7c)]=_0x534eae(0x84),_0x3cefe1=this[_0x534eae(0xd5)](_0x3cefe1,await this[_0x534eae(0x67)](_0x43d6e6,_0x1af9d5)));_0x8671d8=_0x534eae(0x74);const _0x4f5418=_0x17c38f[_0x534eae(0x71)]===_0x534eae(0xfb)?_0x5c2557(_0x1af9d5,_0x3cefe1,_0x534eae(0xfb),-0x33*0x19+0xbe6*0x1+0x24b*-0x3):_0x3cefe1;if(this[_0x534eae(0xb1)][_0x534eae(0x8a)](_0x17c38f[_0x534eae(0xb4)])!==_0x17c38f)return;this[_0x534eae(0xff)](_0x17c38f,_0x1af9d5,_0x4f5418),this[_0x534eae(0x7d)](_0x17c38f,_0x3cefe1);if(_0x3f545d&&_0x43d6e6!==undefined&&_0x43d6e6[_0x534eae(0xa3)]===undefined)void this[_0x534eae(0xf2)](_0x43d6e6,_0x1af9d5);}catch(_0x5310c3){if(this[_0x534eae(0xb1)][_0x534eae(0x8a)](_0x17c38f[_0x534eae(0xb4)])!==_0x17c38f)return;const _0x37d14a=diagnosticErrorCode(_0x5310c3,_0x534eae(0xc7));this[_0x534eae(0xaf)][_0x534eae(0xbd)]?.(_0x534eae(0x9c),{'nodeId':this[_0x534eae(0xaf)][_0x534eae(0x8e)]?.()??_0x534eae(0x75),'sessionId':_0x17c38f[_0x534eae(0xb8)],'workspaceId':_0x17c38f[_0x534eae(0xa4)]??_0x534eae(0x78),'workbenchConnectionId':_0x17c38f[_0x534eae(0xcb)],'watchId':_0x17c38f[_0x534eae(0xb2)],'stage':_0x8671d8,'errorCode':_0x37d14a}),this[_0x534eae(0xaf)][_0x534eae(0xf0)]?.({'type':_0x534eae(0xde),'workbenchConnectionId':_0x17c38f[_0x534eae(0xcb)],'watchType':_0x534eae(0xc4),'watchId':_0x17c38f[_0x534eae(0xb2)],'nodeGeneration':_0x17c38f[_0x534eae(0xb7)],'nodeId':this[_0x534eae(0xaf)][_0x534eae(0x8e)]?.()??_0x534eae(0x75),'workspaceId':_0x17c38f[_0x534eae(0xa4)]??_0x534eae(0x78),'sessionId':_0x17c38f[_0x534eae(0xb8)],'code':_0x37d14a,'message':_0x534eae(0xc9)}),this[_0x534eae(0x66)](_0x17c38f[_0x534eae(0xb4)]);}}[_0x58eaa3(0x66)](_0x431443){const _0x3e4824=_0x58eaa3,_0x4ede29=this[_0x3e4824(0xb1)][_0x3e4824(0x8a)](_0x431443);if(_0x4ede29===undefined)return;clearTimeout(_0x4ede29[_0x3e4824(0x85)]),this[_0x3e4824(0xb1)][_0x3e4824(0xed)](_0x431443);const _0x36f037=this[_0x3e4824(0xf8)][_0x3e4824(0x8a)](_0x4ede29[_0x3e4824(0xb8)]),_0x5afece=this[_0x3e4824(0x6e)](_0x4ede29[_0x3e4824(0xb8)]);if(_0x5afece===-0x5*0x221+-0x22d7+0x2d7c)this[_0x3e4824(0x9d)](_0x4ede29[_0x3e4824(0xb8)]);else{if(_0x36f037!==undefined)_0x36f037[_0x3e4824(0xee)]=_0x5afece;}}[_0x58eaa3(0xd5)](_0x11c7e3,_0x245d44){const _0x2235f4=_0x58eaa3;return this[_0x2235f4(0xaf)][_0x2235f4(0xd5)]?.(_0x11c7e3,_0x245d44)??_0x245d44;}async[_0x58eaa3(0x67)](_0x3a172c,_0x28ea45){const _0x23141d=_0x58eaa3;if(_0x3a172c[_0x23141d(0xc0)]!==undefined&&_0x3a172c[_0x23141d(0xfd)]===_0x3a172c[_0x23141d(0xea)])return _0x3a172c[_0x23141d(0xc0)];if(_0x3a172c[_0x23141d(0xcd)]!==undefined)return _0x3a172c[_0x23141d(0xcd)];const _0x42cfd3=_0x3a172c[_0x23141d(0xea)],_0x3cb2d4=this[_0x23141d(0xaf)][_0x23141d(0xb3)](_0x28ea45,INITIAL_TURN_LIMIT);_0x3a172c[_0x23141d(0xcd)]=_0x3cb2d4;try{const _0x3cc814=await _0x3cb2d4;return this[_0x23141d(0xf8)][_0x23141d(0x8a)](_0x28ea45['id'])===_0x3a172c&&(_0x3a172c[_0x23141d(0xc0)]=_0x3cc814,_0x3a172c[_0x23141d(0xfd)]=_0x42cfd3),_0x3cc814;}finally{if(this[_0x23141d(0xf8)][_0x23141d(0x8a)](_0x28ea45['id'])===_0x3a172c&&_0x3a172c[_0x23141d(0xcd)]===_0x3cb2d4)_0x3a172c[_0x23141d(0xcd)]=undefined;}}async[_0x58eaa3(0x8d)](_0x269339,_0xc53bc0){const _0x1b94cb=_0x58eaa3,_0x50f298=_0x269339[_0x1b94cb(0xc4)];if(_0x50f298===undefined)return;try{const _0x2b6213=await this[_0x1b94cb(0x67)](_0x269339,_0x50f298);if(this[_0x1b94cb(0xf8)][_0x1b94cb(0x8a)](_0x50f298['id'])!==_0x269339||_0x269339[_0x1b94cb(0x7c)]!==_0x1b94cb(0x84)||_0x269339[_0x1b94cb(0xad)]!==_0xc53bc0)return;_0x269339[_0x1b94cb(0xc0)]=_0x2b6213,this[_0x1b94cb(0x9f)](_0x50f298,this[_0x1b94cb(0xd5)](_0x269339[_0x1b94cb(0xa3)],_0x2b6213),!![]);}catch(_0xf3c957){this[_0x1b94cb(0xaf)][_0x1b94cb(0xbd)]?.(_0x1b94cb(0x72),{'nodeId':this[_0x1b94cb(0xaf)][_0x1b94cb(0x8e)]?.()??_0x1b94cb(0x75),'sessionId':_0x50f298['id'],'runner':_0x50f298[_0x1b94cb(0x82)],'errorCode':diagnosticErrorCode(_0xf3c957,_0x1b94cb(0x91))}),this[_0x1b94cb(0xeb)](_0x50f298['id']);}}async[_0x58eaa3(0xf2)](_0x346822,_0x1b57ca){const _0x13adc3=_0x58eaa3;if(this[_0x13adc3(0xaf)][_0x13adc3(0xf1)]===undefined||_0x346822[_0x13adc3(0x6a)]!==undefined)return;const _0x305716=this[_0x13adc3(0xaf)][_0x13adc3(0xf1)](_0x1b57ca,INITIAL_TURN_LIMIT);_0x346822[_0x13adc3(0x6a)]=_0x305716;try{const _0x417c52=await _0x305716;if(this[_0x13adc3(0xf8)][_0x13adc3(0x8a)](_0x1b57ca['id'])!==_0x346822||_0x346822[_0x13adc3(0x7c)]!==_0x13adc3(0x84))return;_0x346822[_0x13adc3(0xa3)]=_0x417c52,_0x346822[_0x13adc3(0x94)]=_0x417c52[_0x13adc3(0x88)];const _0x84d972=await this[_0x13adc3(0x67)](_0x346822,_0x1b57ca);if(this[_0x13adc3(0xf8)][_0x13adc3(0x8a)](_0x1b57ca['id'])!==_0x346822||_0x346822[_0x13adc3(0x7c)]!==_0x13adc3(0x84))return;this[_0x13adc3(0x9f)](_0x1b57ca,this[_0x13adc3(0xd5)](_0x417c52,_0x84d972),!![]);}catch(_0x232a62){this[_0x13adc3(0xaf)][_0x13adc3(0xbd)]?.(_0x13adc3(0xa2),{'nodeId':this[_0x13adc3(0xaf)][_0x13adc3(0x8e)]?.()??_0x13adc3(0x75),'sessionId':_0x1b57ca['id'],'runner':_0x1b57ca[_0x13adc3(0x82)],'errorCode':diagnosticErrorCode(_0x232a62,_0x13adc3(0xcc))});}finally{if(this[_0x13adc3(0xf8)][_0x13adc3(0x8a)](_0x1b57ca['id'])===_0x346822&&_0x346822[_0x13adc3(0x6a)]===_0x305716)_0x346822[_0x13adc3(0x6a)]=undefined;}}async[_0x58eaa3(0xab)](_0x3deea0,_0x4c4c2c){const _0x3f45b5=_0x58eaa3;if(_0x3deea0[_0x3f45b5(0x6a)]!==undefined)try{await _0x3deea0[_0x3f45b5(0x6a)];}catch{}const _0x579633=_0x3deea0[_0x3f45b5(0xc4)];if(_0x579633===undefined||this[_0x3f45b5(0xf8)][_0x3f45b5(0x8a)](_0x579633['id'])!==_0x3deea0||_0x3deea0[_0x3f45b5(0x7c)]!==_0x3f45b5(0xc8)||_0x3deea0[_0x3f45b5(0xad)]!==_0x4c4c2c)return;await this[_0x3f45b5(0x68)](_0x579633['id'],INITIAL_TURN_LIMIT,!![]);}[_0x58eaa3(0xf5)](_0x24c8e4,_0x23e40f){const _0x2e0b12=_0x58eaa3;this[_0x2e0b12(0xaf)][_0x2e0b12(0xf0)]?.({'type':_0x2e0b12(0xba),'workbenchConnectionId':_0x24c8e4[_0x2e0b12(0xcb)],'watchId':_0x24c8e4[_0x2e0b12(0xb2)],'nodeGeneration':_0x24c8e4[_0x2e0b12(0xb7)],'nodeId':this[_0x2e0b12(0xaf)][_0x2e0b12(0x8e)]?.()??_0x2e0b12(0x75),'workspaceId':_0x24c8e4[_0x2e0b12(0xa4)]??_0x2e0b12(0x78),'sessionId':_0x24c8e4[_0x2e0b12(0xb8)],'expiresAt':_0x24c8e4[_0x2e0b12(0xee)],'event':_0x23e40f});}[_0x58eaa3(0xc2)](_0x38ac8b,_0x20d0fc){const _0x7750aa=_0x58eaa3,_0x1861cf=[...this[_0x7750aa(0xb1)][_0x7750aa(0x80)]()][_0x7750aa(0x79)](_0x24bf69=>_0x24bf69[_0x7750aa(0xb8)]===_0x38ac8b['id']);if(_0x1861cf[_0x7750aa(0xec)]===0x1f7b*0x1+-0x1c83*-0x1+-0x1dff*0x2){this[_0x7750aa(0xaf)][_0x7750aa(0xa9)](_0x38ac8b,_0x20d0fc);return;}for(const _0x905cf6 of _0x1861cf){if(!_0x905cf6[_0x7750aa(0x77)])continue;const _0x1f1b59=_0x905cf6[_0x7750aa(0x71)]===_0x7750aa(0xfb)?this[_0x7750aa(0xaf)][_0x7750aa(0x96)]?.(_0x38ac8b,_0x20d0fc,_0x7750aa(0xfb),-0x1caa+0x779*0x1+0x153b):_0x20d0fc;if(_0x1f1b59===undefined)continue;this[_0x7750aa(0xaf)][_0x7750aa(0xf0)]?.({'type':_0x7750aa(0x87),'workbenchConnectionId':_0x905cf6[_0x7750aa(0xcb)],'watchId':_0x905cf6[_0x7750aa(0xb2)],'nodeGeneration':_0x905cf6[_0x7750aa(0xb7)],'nodeId':this[_0x7750aa(0xaf)][_0x7750aa(0x8e)]?.()??_0x7750aa(0x75),'workspaceId':_0x38ac8b[_0x7750aa(0xa4)],'sessionId':_0x38ac8b['id'],'revision':0x1,'snapshotSequence':++this[_0x7750aa(0x95)],'expiresAt':_0x905cf6[_0x7750aa(0xee)],'payload':_0x1f1b59});}}[_0x58eaa3(0x9f)](_0x3f9112,_0x384499,_0x376a37){const _0x3addfd=_0x58eaa3;for(const _0x4a7fab of[...this[_0x3addfd(0xb1)][_0x3addfd(0x80)]()]){if(_0x4a7fab[_0x3addfd(0xb8)]!==_0x3f9112['id'])continue;if(!_0x4a7fab[_0x3addfd(0xbf)])continue;const _0x391f59=_0x4a7fab[_0x3addfd(0x71)]===_0x3addfd(0xfb)?this[_0x3addfd(0xaf)][_0x3addfd(0x96)]?.(_0x3f9112,_0x384499,_0x3addfd(0xfb),-0x22*-0xa1+0x25df+-0x1*0x3b37):_0x384499;if(_0x391f59===undefined)continue;this[_0x3addfd(0xff)](_0x4a7fab,_0x3f9112,_0x391f59);if(!_0x376a37)continue;this[_0x3addfd(0x7d)](_0x4a7fab,_0x384499);}}[_0x58eaa3(0xff)](_0x485d11,_0xd6453b,_0x2eda8a){const _0x326de5=_0x58eaa3;_0x485d11[_0x326de5(0xbf)]=!![],this[_0x326de5(0xaf)][_0x326de5(0xf0)]?.({'type':_0x326de5(0x87),'workbenchConnectionId':_0x485d11[_0x326de5(0xcb)],'watchId':_0x485d11[_0x326de5(0xb2)],'nodeGeneration':_0x485d11[_0x326de5(0xb7)],'nodeId':this[_0x326de5(0xaf)][_0x326de5(0x8e)]?.()??_0x326de5(0x75),'workspaceId':_0xd6453b[_0x326de5(0xa4)],'sessionId':_0xd6453b['id'],'revision':0x1,'snapshotSequence':++this[_0x326de5(0x95)],'expiresAt':_0x485d11[_0x326de5(0xee)],'payload':_0x2eda8a});}[_0x58eaa3(0xeb)](_0x4ff92f){const _0x4dc9aa=_0x58eaa3;for(const _0x3d58bd of this[_0x4dc9aa(0xb1)][_0x4dc9aa(0x80)]()){if(_0x3d58bd[_0x4dc9aa(0xb8)]!==_0x4ff92f)continue;if(!_0x3d58bd[_0x4dc9aa(0xbf)])continue;_0x3d58bd[_0x4dc9aa(0x77)]=!![];for(const _0x495c16 of _0x3d58bd[_0x4dc9aa(0x8b)])this[_0x4dc9aa(0xf5)](_0x3d58bd,_0x495c16);_0x3d58bd[_0x4dc9aa(0x8b)][_0x4dc9aa(0xec)]=-0x596*0x4+0x1738+0x1*-0xe0;}}[_0x58eaa3(0x7d)](_0x249055,_0x5342be){const _0x3cd362=_0x58eaa3,_0x523ddc=isPlainRecord(_0x5342be)?_0x5342be:undefined,_0x4ef199=_0x523ddc?.[_0x3cd362(0x95)],_0x4bc62b=typeof _0x4ef199===_0x3cd362(0xdb)&&Number[_0x3cd362(0xe9)](_0x4ef199)&&_0x4ef199>=0x456*-0x2+-0x450*-0x5+-0xce4?_0x4ef199:undefined;_0x249055[_0x3cd362(0x77)]=!![];for(const _0x26ae82 of _0x249055[_0x3cd362(0x8b)])if(_0x4bc62b===undefined||_0x26ae82[_0x3cd362(0xcf)]>_0x4bc62b)this[_0x3cd362(0xf5)](_0x249055,_0x26ae82);_0x249055[_0x3cd362(0x8b)][_0x3cd362(0xec)]=0x1*0x13c3+0x220a+-0x35cd;}[_0x58eaa3(0x6d)](_0x26868b){const _0x1f787b=_0x58eaa3;for(const _0x532b4b of[...this[_0x1f787b(0xb1)][_0x1f787b(0x80)]()]){if(_0x532b4b[_0x1f787b(0xb8)]!==_0x26868b)continue;this[_0x1f787b(0xaf)][_0x1f787b(0xf0)]?.({'type':_0x1f787b(0xde),'workbenchConnectionId':_0x532b4b[_0x1f787b(0xcb)],'watchType':_0x1f787b(0xc4),'watchId':_0x532b4b[_0x1f787b(0xb2)],'nodeGeneration':_0x532b4b[_0x1f787b(0xb7)],'nodeId':this[_0x1f787b(0xaf)][_0x1f787b(0x8e)]?.()??_0x1f787b(0x75),'workspaceId':_0x532b4b[_0x1f787b(0xa4)]??_0x1f787b(0x78),'sessionId':_0x26868b,'code':_0x1f787b(0xb6),'message':_0x1f787b(0xc9)}),this[_0x1f787b(0x66)](_0x532b4b[_0x1f787b(0xb4)]);}this[_0x1f787b(0x9d)](_0x26868b);}[_0x58eaa3(0x6f)](_0x4af00e){const _0x18c518=_0x58eaa3;for(const _0x337c85 of[...this[_0x18c518(0xb1)][_0x18c518(0x80)]()])if(_0x337c85[_0x18c518(0xb8)]===_0x4af00e)this[_0x18c518(0x66)](_0x337c85[_0x18c518(0xb4)]);this[_0x18c518(0x9d)](_0x4af00e);}[_0x58eaa3(0xe6)](_0x310a9f){const _0x276181=_0x58eaa3,_0x5520d7=setTimeout(()=>this[_0x276181(0x66)](_0x310a9f),TTL_MS);return _0x5520d7[_0x276181(0xe0)](),_0x5520d7;}[_0x58eaa3(0x6e)](_0x3d677c){const _0x3dc7e9=_0x58eaa3;let _0x4002d8=0x6b3+0x26eb+-0x2d9e;for(const _0x5096bd of this[_0x3dc7e9(0xb1)][_0x3dc7e9(0x80)]())if(_0x5096bd[_0x3dc7e9(0xb8)]===_0x3d677c)_0x4002d8=Math[_0x3dc7e9(0xac)](_0x4002d8,_0x5096bd[_0x3dc7e9(0xee)]);return _0x4002d8;}[_0x58eaa3(0xbb)](_0x13729c){const _0x5272cb=_0x58eaa3,_0x16cedf=setTimeout(()=>void this[_0x5272cb(0x68)](_0x13729c),INTERVAL_MS);return _0x16cedf[_0x5272cb(0xe0)](),_0x16cedf;}}function _0x55de(_0x4d8655,_0x94af12){_0x4d8655=_0x4d8655-(0x230*0xd+0x6*0x5de+-0x3f3e);const _0x59edbb=_0x590a();let _0xc9be87=_0x59edbb[_0x4d8655];if(_0x55de['zjVeRs']===undefined){var _0x35c16c=function(_0x560263){const _0x1484cd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5312cb='',_0x331030='';for(let _0x233d64=0x1d7d+-0x1b8d+-0x1f0,_0x20a40d,_0x299b94,_0x3e3614=0x3*0x62f+0x24aa+-0xb*0x505;_0x299b94=_0x560263['charAt'](_0x3e3614++);~_0x299b94&&(_0x20a40d=_0x233d64%(-0x1*-0xdd3+-0x1*0x853+-0x34*0x1b)?_0x20a40d*(0x1*-0x5c3+0x1e5b+-0x1858*0x1)+_0x299b94:_0x299b94,_0x233d64++%(0x1d60+0x4*-0x25+-0x1cc8))?_0x5312cb+=String['fromCharCode'](-0xf78+-0x4c6+0x153d&_0x20a40d>>(-(-0x1c7d+-0x3*0x32d+0x2606)*_0x233d64&0x56d+-0x23dd*-0x1+-0x2944)):0x1845+0x6*-0x556+-0x1*-0x7bf){_0x299b94=_0x1484cd['indexOf'](_0x299b94);}for(let _0x5a94a0=-0x929+0x17*0x76+-0x7b*0x3,_0x14761c=_0x5312cb['length'];_0x5a94a0<_0x14761c;_0x5a94a0++){_0x331030+='%'+('00'+_0x5312cb['charCodeAt'](_0x5a94a0)['toString'](-0x1a34+-0x1caf*0x1+0x1b*0x209))['slice'](-(-0x1dfd*0x1+-0x6c4+0x24c3));}return decodeURIComponent(_0x331030);};_0x55de['cgIpRw']=_0x35c16c,_0x55de['ftqHJm']={},_0x55de['zjVeRs']=!![];}const _0x2fcd7b=_0x59edbb[-0x7b0*-0x1+-0x1*-0x26b3+-0x13*0x271];_0x55de['UUwOkF']!==_0x2fcd7b&&(_0x55de['ftqHJm']={},_0x55de['UUwOkF']=_0x2fcd7b);const _0x132044=_0x55de['ftqHJm'][_0x4d8655];return _0x132044===undefined?(_0xc9be87=_0x55de['cgIpRw'](_0xc9be87),_0x55de['ftqHJm'][_0x4d8655]=_0xc9be87):_0xc9be87=_0x132044,_0xc9be87;}function diagnosticErrorCode(_0x19f3ff,_0x45c047){const _0x44df04=_0x58eaa3,_0x33e4d9=safeErrorCode(_0x19f3ff,'');if(_0x33e4d9[_0x44df04(0xec)]>-0x2*-0x1109+0x70b+-0x291d)return _0x33e4d9;if(_0x19f3ff!==null&&typeof _0x19f3ff===_0x44df04(0x6c)&&_0x44df04(0xe4)in _0x19f3ff&&typeof _0x19f3ff[_0x44df04(0xe4)]===_0x44df04(0x70)&&/^[A-Z][A-Z0-9_]{0,127}$/[_0x44df04(0x93)](_0x19f3ff[_0x44df04(0xe4)]))return _0x19f3ff[_0x44df04(0xe4)];return _0x45c047;}function sessionActivity(_0xf2339b){const _0x2eb608=_0x58eaa3;if(!isPlainRecord(_0xf2339b[_0x2eb608(0xef)]))return undefined;if(_0xf2339b[_0x2eb608(0x9a)]===_0x2eb608(0x97)&&isPlainRecord(_0xf2339b[_0x2eb608(0xef)][_0x2eb608(0x97)])){const _0xceceb7=_0xf2339b[_0x2eb608(0xef)][_0x2eb608(0x97)][_0x2eb608(0xe8)];if(_0xceceb7===_0x2eb608(0xf7)||_0xceceb7===_0x2eb608(0x84)||_0xceceb7===_0x2eb608(0xf9))return _0x2eb608(0x84);return undefined;}if(_0xf2339b[_0x2eb608(0x9a)]!==_0x2eb608(0xc4))return undefined;const _0x286e46=_0xf2339b[_0x2eb608(0xef)][_0x2eb608(0xc4)];if(!isPlainRecord(_0x286e46)||typeof _0x286e46[_0x2eb608(0xf4)]!==_0x2eb608(0x70))return undefined;return _0x286e46[_0x2eb608(0xf4)]===_0x2eb608(0xd7)?_0x2eb608(0x84):_0x2eb608(0xa1);}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x2375c0=_0x343c;(function(_0x16bf77,_0x46b0a6){const _0x5ad08f=_0x343c,_0x7b2c53=_0x16bf77();while(!![]){try{const _0x48c0bb=-parseInt(_0x5ad08f(0x1fb))/(0x1cde+0xc21+-0x28fe)*(-parseInt(_0x5ad08f(0x1d4))/(-0x2*-0x10bf+0x3*-0x599+0x10b1*-0x1))+-parseInt(_0x5ad08f(0x1d5))/(-0x2204+0x1a81+0x786)*(parseInt(_0x5ad08f(0x23a))/(0x47*-0x3d+0x1f62+-0x19b*0x9))+parseInt(_0x5ad08f(0x211))/(-0x152d+-0x6f1*-0x4+-0x692)+-parseInt(_0x5ad08f(0x235))/(-0x868+-0x129*0x21+0x2eb7*0x1)+-parseInt(_0x5ad08f(0x1df))/(0x125b+0x1*-0xc80+-0x5d4)*(-parseInt(_0x5ad08f(0x1dc))/(0x8*-0x1da+-0xa8b+-0x61*-0x43))+parseInt(_0x5ad08f(0x218))/(-0xd23+-0x184c+0x2578)*(-parseInt(_0x5ad08f(0x1fc))/(0x1*-0x14+-0xb*0x1be+0x1*0x1348))+parseInt(_0x5ad08f(0x1e5))/(0xf75*-0x2+0x4f7+0x2*0xcff)*(-parseInt(_0x5ad08f(0x220))/(-0x6df+0x241*0xd+0xa*-0x23d));if(_0x48c0bb===_0x46b0a6)break;else _0x7b2c53['push'](_0x7b2c53['shift']());}catch(_0x425f6c){_0x7b2c53['push'](_0x7b2c53['shift']());}}}(_0x570f,-0x28125+0x289*0x223+0x15d0e));import{nodeLog}from'../operational.js';function _0x570f(){const _0x687faa=['ChjLC2vUDfnLC3nPB24','C2vXDwvUy2u','DgHLBG','CNvUDgLTzq','AxnbCNjHEq','CMvMCMvZAfDVCMTZCgfJzvnLC3nPB25Z','z2v0qwDLBNrtzxnZAw9U','zxHLy3v0Aw9Uu3rHCNrLza','mJe5mtqYmMHss2vytG','CNvU','y2f0y2G','BM90AwzPy2f0Aw9U','zw1PDe5VDW','nda4oeTsyuPcva','mZeZoe5AEu9RrG','nJLit09vDLq','BgfZDfj1BLnLCxvLBMnL','AxntywzLsw50zwDLCG','DxnLCL9PBNb1Df9Yzxf1zxn0','qvbquK9wquXFuKvrvuLsruq','su5urvjsvvburuq','zMLUAxnOuNvU','mJC0mZm5mMDXCw9xwa','y3jLyxrLzef0','zw1PDe5VDgLMAwnHDgLVBG','n2flr3LqCG','CNvUlMv2zw50','zxHLy3v0Aw9UvgvYBwLUyxrPBMC','u0vtu0LptL9tvefsvf9gquLmruq','z2v0uNvU','q0foq0vmteve','ndiZnJf5BffqD2y','C2nOzwr1BgvdB250zxH0uMvMCMvZAa','DMfSDwvZ','BgvUz3rO','y3vYCMvUDev4zwn1DgLVBKLK','CMvTB3zLvgvYBwLUywXsDw4','CNvUoG','Aw5PDgLHDgvKqNLvC2vYswq','zw5XDwv1zvrLEhq','DxnLCKLK','CxvLC3rPB25Z','Dgv4Dc5KzwX0yq','CNvUBMvYvgL0Bgu','zgLZCgf0y2HrDwv1zq','BM90AwzPy2f0Aw9Uugf5Bg9Hza','zw1PDa','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','z2v0','y29UDMvYC2f0Aw9U','CMvQzwn0qM9VDhn0CMfW','Dgv4Da','CNvUlNj1BM5PBMC','mJfbDgHUthC','nteXnJbTufDmBwK','y29UDMvYC2f0Aw9UlML0zw0','y3vZDg9TvgL0Bgu','CNvUBMvYrMfPBgvK','ueXbtL9srufewq','Cgf1C2vK','C2v0','uLvox1rfuK1jtKfm','yxbWzw5KuNvUrxzLBNq','CNvUlNn0yxj0zwq','CgXHBJO','rKfjteve','yxbWCM92ywW6','CgvUzgLUz1rLEhq','CMvSzwfZzuv4zwn1DgLVBG','y2XLyxi','C3rHDgu','DgLTzxi','C2vZC2LVBKLK','AxncB290C3rYyxbtzxnZAw9U','vvnfuL9jtLbvvf9srvfvsvjfra','mJy1nteWmfvKDMrZAG','CgXHBG','A2LUza','AxrLBuLK','zw1PDfDVCMTIzw5JAa','u1vdq0vfreve','BM93','nda1vgz5zKPn','AxrLBuLKCW','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','zMX1C2HuzxH0','B3b0Aw9UCW','Cgf5Bg9Hza','C3rYAw5N','ywn0AxzL','mJriy3vvs1u','zxHWAxjLsw1Hz2vZ','zMX1C2Hqzw5KAw5Nvgv4Da','D29YA3nWywnLswq','yxbWCM92ywWUCMvXDwvZDa','Bwv0CMLJCW','yxbWCM92ywXjza','C2vZC2LVBG','Aw50zxjYDxb0uMvXDwvZDgvK','zgvSzxrL','y2XLyw51Cef0DgfJAg1LBNrZ','C2vZC2LVBLf1zxvL','DxnLCI1PBNb1DdO'];_0x570f=function(){return _0x687faa;};return _0x570f();}function _0x343c(_0x294eec,_0x196f9e){_0x294eec=_0x294eec-(0x3*-0x198+0x1acf+-0x1433);const _0xd4b094=_0x570f();let _0x5e737a=_0xd4b094[_0x294eec];if(_0x343c['whmAyE']===undefined){var _0x192047=function(_0x4f798d){const _0x29a554='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10d33d='',_0x166afd='';for(let _0x1c7bd6=-0xe88+-0x1*0x663+0x14eb,_0xaf1673,_0x2df98a,_0x3d51a3=0xac9+-0xca*-0x31+-0x3173;_0x2df98a=_0x4f798d['charAt'](_0x3d51a3++);~_0x2df98a&&(_0xaf1673=_0x1c7bd6%(-0x1143+0x204d+-0xf06)?_0xaf1673*(0x24d0+0x74c+-0x2bdc)+_0x2df98a:_0x2df98a,_0x1c7bd6++%(-0x209d+0x1c20+-0x481*-0x1))?_0x10d33d+=String['fromCharCode'](-0x1*0x1897+0x245f+-0xac9&_0xaf1673>>(-(0xfed*0x1+0x342+-0x132d*0x1)*_0x1c7bd6&0x3*-0x11a+0x1771+-0x13*0x10f)):0x1ed*-0x5+0x7a1*-0x2+0x18e3){_0x2df98a=_0x29a554['indexOf'](_0x2df98a);}for(let _0x3b87e9=-0x6*-0x50b+-0x10d2+-0xd70,_0x4aa043=_0x10d33d['length'];_0x3b87e9<_0x4aa043;_0x3b87e9++){_0x166afd+='%'+('00'+_0x10d33d['charCodeAt'](_0x3b87e9)['toString'](0x16bf+0x26da*0x1+0x3*-0x1483))['slice'](-(-0xccd*0x1+0x1aef*-0x1+0x27be));}return decodeURIComponent(_0x166afd);};_0x343c['MicNry']=_0x192047,_0x343c['KLYLgL']={},_0x343c['whmAyE']=!![];}const _0x2070d8=_0xd4b094[0x1794+-0x16ea+-0x22*0x5];_0x343c['OXfLor']!==_0x2070d8&&(_0x343c['KLYLgL']={},_0x343c['OXfLor']=_0x2070d8);const _0x215c84=_0x343c['KLYLgL'][_0x294eec];return _0x215c84===undefined?(_0x5e737a=_0x343c['MicNry'](_0x5e737a),_0x343c['KLYLgL'][_0x294eec]=_0x5e737a):_0x5e737a=_0x215c84,_0x5e737a;}import{isPlainRecord,isTerminalRunStatus}from'../util/node-operation-parsers.js';const COALESCE_MS=0x23b*-0x1+-0x2398+-0x269b*-0x1,MAX_BATCH_CHARS=-0x6497*0x1+-0x388e+0xdd25;export class RunEventService{[_0x2375c0(0x21c)];[_0x2375c0(0x209)]=new Map();constructor(_0x549ede){const _0x4e3d70=_0x2375c0;this[_0x4e3d70(0x21c)]=_0x549ede;}[_0x2375c0(0x1f4)](_0x1b2875,_0x463854,_0x17f6b2,_0x19d8df){const _0x2d242b=_0x2375c0;if(_0x463854===_0x2d242b(0x1f0)&&_0x19d8df===undefined&&isPlainRecord(_0x17f6b2)&&typeof _0x17f6b2[_0x2d242b(0x1f9)]===_0x2d242b(0x21e)){this[_0x2d242b(0x1ed)](_0x1b2875,_0x17f6b2[_0x2d242b(0x1f9)],typeof _0x17f6b2[_0x2d242b(0x214)]===_0x2d242b(0x21e)?_0x17f6b2[_0x2d242b(0x214)]:undefined);return;}this[_0x2d242b(0x21b)](_0x1b2875),this[_0x2d242b(0x239)](_0x1b2875,_0x463854,_0x17f6b2,_0x19d8df);}[_0x2375c0(0x20b)](){const _0x2c9661=_0x2375c0;for(const _0x28ca6a of this[_0x2c9661(0x209)][_0x2c9661(0x1e7)]())clearTimeout(_0x28ca6a[_0x2c9661(0x20d)]);this[_0x2c9661(0x209)][_0x2c9661(0x20b)]();}[_0x2375c0(0x222)](_0x4b73eb){const _0x8177d2=_0x2375c0;this[_0x8177d2(0x21b)](_0x4b73eb);}[_0x2375c0(0x1ed)](_0x5f1bd0,_0x115f33,_0x3d0e41){const _0x32cad5=_0x2375c0;if(_0x115f33[_0x32cad5(0x1e8)]===0x24d0+0x74c+-0x2c1c)return;const _0x548373=this[_0x32cad5(0x209)][_0x32cad5(0x1f6)](_0x5f1bd0);if(_0x548373!==undefined&&_0x548373[_0x32cad5(0x214)]===_0x3d0e41){_0x548373[_0x32cad5(0x1f9)]+=_0x115f33;if(_0x548373[_0x32cad5(0x1f9)][_0x32cad5(0x1e8)]>=MAX_BATCH_CHARS)this[_0x32cad5(0x21b)](_0x5f1bd0);return;}if(_0x548373!==undefined)this[_0x32cad5(0x21b)](_0x5f1bd0);const _0x53cffa=setTimeout(()=>this[_0x32cad5(0x21b)](_0x5f1bd0),COALESCE_MS);this[_0x32cad5(0x209)][_0x32cad5(0x202)](_0x5f1bd0,{'text':_0x115f33,..._0x3d0e41===undefined?{}:{'itemId':_0x3d0e41},'timer':_0x53cffa});}[_0x2375c0(0x21b)](_0x39f716){const _0x5c0082=_0x2375c0,_0x2010da=this[_0x5c0082(0x209)][_0x5c0082(0x1f6)](_0x39f716);if(_0x2010da===undefined)return;clearTimeout(_0x2010da[_0x5c0082(0x20d)]),this[_0x5c0082(0x209)][_0x5c0082(0x229)](_0x39f716),this[_0x5c0082(0x239)](_0x39f716,_0x5c0082(0x1f0),{'text':_0x2010da[_0x5c0082(0x1f9)],..._0x2010da[_0x5c0082(0x214)]===undefined?{}:{'itemId':_0x2010da[_0x5c0082(0x214)]}});}[_0x2375c0(0x239)](_0xed110c,_0x520eb9,_0x45a35,_0x44a95a){const _0x258eea=_0x2375c0,_0x5e205f=this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x1e3)](_0xed110c);if(_0x5e205f===undefined)return;const _0xda25c1=_0x5e205f['id'],_0x4c7742=this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x1f5)](_0xed110c),_0x13b8cf=this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x21a)](_0xda25c1),_0xf3781a=_0x4c7742===undefined||_0x13b8cf===undefined||_0x4c7742['id']===_0x13b8cf['id'],_0x2c1c56=_0x44a95a!==undefined&&isTerminalRunStatus(_0x44a95a),_0x598440=this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x1e9)](_0xda25c1),_0xd4c546=_0x2c1c56&&(_0x598440===_0xed110c||_0x598440===undefined&&_0xed110c===_0xda25c1),_0x294eec={'runId':_0xda25c1,'sequence':this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x1d6)](_0xda25c1)+(-0x209d+0x1c20+-0x73*-0xa),'eventType':_0x520eb9,'payload':_0x45a35};if(_0x520eb9!==_0x258eea(0x1f0))nodeLog(_0x258eea(0x1e0),{'runId':_0xda25c1,'eventType':_0x520eb9,'status':_0x44a95a});if(_0x44a95a===_0x258eea(0x207))this[_0x258eea(0x21c)][_0x258eea(0x225)][_0x258eea(0x1ff)]();let _0x196f9e=undefined;try{_0x196f9e=this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x204)]({'runId':_0xed110c,'sequence':_0x294eec[_0x258eea(0x22e)],'eventType':_0x520eb9,'payload':_0x45a35,..._0x44a95a===undefined?{}:{'status':_0x44a95a}});}catch{}if(_0x520eb9===_0x258eea(0x205)||_0x520eb9===_0x258eea(0x1fa))this[_0x258eea(0x21c)][_0x258eea(0x234)]?.(_0xed110c);let _0xd4b094,_0x5e737a=![];if(_0xd4c546){this[_0x258eea(0x21c)][_0x258eea(0x1e1)]?.(_0xed110c,_0x44a95a),this[_0x258eea(0x21c)][_0x258eea(0x20c)][_0x258eea(0x21f)][_0x258eea(0x229)](_0xed110c);const _0x10d33d=this[_0x258eea(0x21c)][_0x258eea(0x20c)][_0x258eea(0x228)][_0x258eea(0x229)](_0xed110c);_0x5e737a=_0x10d33d;const _0x166afd=this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x22b)](_0x5e205f[_0x258eea(0x20e)]),_0x1c7bd6=!_0x166afd[_0x258eea(0x201)]&&_0x166afd[_0x258eea(0x219)][_0x258eea(0x1e8)]>-0x1*0x1897+0x245f+-0xbc8;if(!_0x1c7bd6){_0xd4b094=_0x44a95a===_0x258eea(0x1e4)||_0x10d33d?_0x258eea(0x1da):_0x44a95a;if(_0xd4b094===_0x258eea(0x216)||_0xd4b094===_0x258eea(0x207)||_0xd4b094===_0x258eea(0x1da))this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x1db)](_0xda25c1,_0xd4b094);}}const _0x192047=_0x2c1c56?_0xd4b094:_0x44a95a,_0x2070d8=this[_0x258eea(0x1f3)](_0xda25c1,_0x520eb9,_0x45a35,_0x192047,_0x5e737a||!_0xf3781a);if(_0x192047!==undefined){const _0xaf1673=this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x1e3)](_0xda25c1);this[_0x258eea(0x21c)][_0x258eea(0x215)](_0x258eea(0x236),{'run':_0xaf1673});const _0x2df98a=_0xaf1673===undefined?undefined:this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x233)](_0xaf1673[_0x258eea(0x20e)]);if(_0x2df98a!==undefined)this[_0x258eea(0x21c)][_0x258eea(0x215)](_0x258eea(0x227),{'session':this[_0x258eea(0x21c)][_0x258eea(0x22d)](_0x2df98a)});}if(_0xf3781a)this[_0x258eea(0x21c)][_0x258eea(0x215)](_0x258eea(0x1f7),{'event':{..._0x294eec,..._0x192047===undefined?{}:{'status':_0x192047},'createdAt':_0x196f9e?.[_0x258eea(0x1dd)]??Date[_0x258eea(0x217)]()}});else{const _0x3d51a3=this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x1f5)](_0xed110c);if(_0x3d51a3!==undefined)this[_0x258eea(0x21c)][_0x258eea(0x215)](_0x258eea(0x1f7),{'turn':_0x3d51a3});}const _0x215c84=_0x196f9e?.[_0x258eea(0x1dd)]??Date[_0x258eea(0x217)](),_0x4f798d=_0x2070d8!==undefined&&_0xd4c546&&_0xd4b094!==undefined;_0x2070d8!==undefined&&!_0x4f798d&&this[_0x258eea(0x1de)](_0xda25c1,_0x294eec,_0x2070d8,_0x215c84);if(!_0x2c1c56)return;if(_0xf3781a){const _0x3b87e9=this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x21a)](_0xda25c1);if(_0x3b87e9!==undefined)this[_0x258eea(0x21c)][_0x258eea(0x215)](_0x258eea(0x1f7),{'turn':_0x3b87e9});}this[_0x258eea(0x21c)][_0x258eea(0x22a)](_0xed110c),this[_0x258eea(0x21c)][_0x258eea(0x221)](_0xed110c),this[_0x258eea(0x21c)][_0x258eea(0x20a)](_0xed110c);if(!_0xd4c546)return;if(_0xd4b094===undefined){void this[_0x258eea(0x21c)][_0x258eea(0x1f2)](_0x5e205f[_0x258eea(0x20e)],_0x44a95a===_0x258eea(0x207)?0x2fc7*0x1+0x9c7+-0x26*-0x7:0x3*-0x11a+0x1771+-0x5*0x407);return;}if(this[_0x258eea(0x21c)][_0x258eea(0x20f)](_0x5e205f[_0x258eea(0x20e)])){this[_0x258eea(0x21c)][_0x258eea(0x1f8)](_0x5e205f[_0x258eea(0x20e)],_0x258eea(0x1e2));return;}this[_0x258eea(0x21c)][_0x258eea(0x1e6)](_0x5e205f[_0x258eea(0x20e)]);const _0x29a554=this[_0x258eea(0x21c)][_0x258eea(0x232)](_0x5e205f[_0x258eea(0x223)]);this[_0x258eea(0x21c)][_0x258eea(0x230)][_0x258eea(0x1ea)](_0xda25c1);if(_0x4f798d)void _0x29a554[_0x258eea(0x237)](()=>undefined)[_0x258eea(0x22f)](()=>this[_0x258eea(0x1de)](_0xda25c1,_0x294eec,_0x2070d8,_0x215c84));}[_0x2375c0(0x1de)](_0x4aa043,_0x3f8202,_0x1fe2cd,_0x4b7d3c){const _0xa7fa1f=_0x2375c0;nodeLog(_0xa7fa1f(0x1e0),{'runId':_0x4aa043,'eventType':_0xa7fa1f(0x238)}),this[_0xa7fa1f(0x21c)][_0xa7fa1f(0x215)](_0xa7fa1f(0x1f7),{'event':{'runId':_0x4aa043,'sequence':_0x3f8202[_0xa7fa1f(0x22e)],'eventType':_0xa7fa1f(0x238),'payload':{..._0x1fe2cd,'occurredAt':_0x4b7d3c},'createdAt':_0x4b7d3c}});}[_0x2375c0(0x1f3)](_0xbb798e,_0x53259f,_0x3976ef,_0x509072,_0x30f2fd=![]){const _0x100014=_0x2375c0;if(_0x53259f===_0x100014(0x238))return undefined;const _0x5d0847=this[_0x100014(0x21c)][_0x100014(0x230)][_0x100014(0x1e3)](_0xbb798e);if(_0x5d0847===undefined)return undefined;const _0x2e81b5=this[_0x100014(0x21c)][_0x100014(0x230)][_0x100014(0x233)](_0x5d0847[_0x100014(0x20e)]);if(_0x2e81b5===undefined)return undefined;const _0x16f216={'userId':_0x5d0847[_0x100014(0x1ec)],'workspaceId':_0x5d0847[_0x100014(0x223)],'sessionId':_0x5d0847[_0x100014(0x20e)],'sessionTitle':_0x2e81b5[_0x100014(0x1fe)]??_0x2e81b5[_0x100014(0x1f1)]??_0x2e81b5['id'],'runId':_0xbb798e};if(!Number[_0x100014(0x1d7)](_0x16f216[_0x100014(0x1ee)]))return undefined;if(_0x509072!==undefined&&isTerminalRunStatus(_0x509072)){if(_0x30f2fd)return undefined;return{..._0x16f216,'notificationId':_0x100014(0x1eb)+_0x5d0847[_0x100014(0x223)]+':'+_0xbb798e,'kind':_0x100014(0x203),'outcome':_0x509072};}if(_0x53259f===_0x100014(0x224)&&isPlainRecord(_0x3976ef)){const _0x57fb1d=_0x3976ef[_0x100014(0x226)];if(typeof _0x57fb1d!==_0x100014(0x21e))return undefined;return{..._0x16f216,'notificationId':_0x100014(0x208)+_0x5d0847[_0x100014(0x223)]+':'+_0xbb798e+':'+_0x57fb1d,'kind':_0x100014(0x1d9)};}if(_0x53259f!==_0x100014(0x1fd)||!isPlainRecord(_0x3976ef))return undefined;if(_0x3976ef[_0x100014(0x213)]===_0x100014(0x212)&&typeof _0x3976ef[_0x100014(0x214)]===_0x100014(0x21e))return{..._0x16f216,'notificationId':_0x100014(0x206)+_0x5d0847[_0x100014(0x223)]+':'+_0xbb798e+':'+_0x3976ef[_0x100014(0x214)],'kind':_0x100014(0x200)};if(_0x3976ef[_0x100014(0x213)]===_0x100014(0x1d8)&&typeof _0x3976ef[_0x100014(0x214)]===_0x100014(0x21e)&&isPlainRecord(_0x3976ef[_0x100014(0x21d)])&&Array[_0x100014(0x231)](_0x3976ef[_0x100014(0x21d)][_0x100014(0x1ef)])&&_0x3976ef[_0x100014(0x21d)][_0x100014(0x1ef)][_0x100014(0x1e8)]>0x1ed*-0x5+0x7a1*-0x2+0x18e3)return{..._0x16f216,'notificationId':_0x100014(0x22c)+_0x5d0847[_0x100014(0x223)]+':'+_0xbb798e+':'+_0x3976ef[_0x100014(0x214)],'kind':_0x100014(0x210)};return undefined;}}
|
|
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;}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
|
|
2
|
+
function _0x4503(_0x3c61d2,_0xf977fa){_0x3c61d2=_0x3c61d2-(-0x2485+-0x2a*-0xcf+0x47f);const _0x3f4092=_0x1425();let _0x43d910=_0x3f4092[_0x3c61d2];if(_0x4503['cPdRYP']===undefined){var _0x33c3d3=function(_0x5ab580){const _0x5f0e05='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x42a319='',_0x29ffe8='';for(let _0x423a68=-0x4dd+0xc87+-0x1*0x7aa,_0x451ae3,_0x47c224,_0x5016fe=-0x1489+-0xe3d+0x22c6;_0x47c224=_0x5ab580['charAt'](_0x5016fe++);~_0x47c224&&(_0x451ae3=_0x423a68%(0x286*-0xb+0xae*-0x12+0x2802)?_0x451ae3*(-0x25d6+-0x11ba+-0x1be8*-0x2)+_0x47c224:_0x47c224,_0x423a68++%(-0x1d82+-0x1*-0x1fcd+0x1*-0x247))?_0x42a319+=String['fromCharCode'](-0x32b*-0x6+-0x1f7b*0x1+0x6bc*0x2&_0x451ae3>>(-(0x49*0x1a+-0x1989+-0x27*-0x77)*_0x423a68&0xd*0x12a+-0x1805+0x8e9)):0xdf*0x2b+-0x6e*0x13+-0x1d4b){_0x47c224=_0x5f0e05['indexOf'](_0x47c224);}for(let _0x2b1f15=0x2307+0xd47*-0x1+-0x15c0,_0x267b43=_0x42a319['length'];_0x2b1f15<_0x267b43;_0x2b1f15++){_0x29ffe8+='%'+('00'+_0x42a319['charCodeAt'](_0x2b1f15)['toString'](0x25c7+-0x1762+-0xe55))['slice'](-(-0x7*-0x55+-0x9*-0x369+-0x2102));}return decodeURIComponent(_0x29ffe8);};_0x4503['OHVNGo']=_0x33c3d3,_0x4503['UUbbVi']={},_0x4503['cPdRYP']=!![];}const _0xff3294=_0x3f4092[-0x5*0x166+-0x15*-0x5b+-0x79];_0x4503['EyKsTu']!==_0xff3294&&(_0x4503['UUbbVi']={},_0x4503['EyKsTu']=_0xff3294);const _0x467657=_0x4503['UUbbVi'][_0x3c61d2];return _0x467657===undefined?(_0x43d910=_0x4503['OHVNGo'](_0x43d910),_0x4503['UUbbVi'][_0x3c61d2]=_0x43d910):_0x43d910=_0x467657,_0x43d910;}function _0x1425(){const _0x12be72=['mta0otrmwNbAA3m','D29YA3nWywnLswq','zMXHDe1HCa','ofPlD0TJtG','ChjVzMLSzxm','B3b0Aw9UywW','z2v0v29YA3nWywnL','C2vJCMv0rw52AxjVBM1LBNq','z2v0uNvUBMvYrgvMyxvSDhm','mZz0sxb1r2K','CMvHzfvZywDL','CNvUBMvY','BwfYqwDLBNrnB2rLBhm','BgLZDfbYB2zPBgvZ','ywXS','y2fWywjPBgL0AwvZ','CMvMCMvZAfbYB2zPBgvZ','uLvotKvsx1vtquDfx0LovKfmsuq','ChjVzhvJDa','C2f2zvj1BM5LCKrLzMf1BhrZ','mZzOzK94rKG','BMfTzq','nJu2n29YD2vqCq','DxnHz2u','DxnHz2vtDgf0DxnLCW','y29KzxG','B3bLCMf0Aw9UCW','mta1nMnXqLvkCW','ndi4odDQAvL1wLa','y29UzMLNDxjLtw9KzwXZ','ywr2zxj0AxnLza','C3vJy2vZCW','C3rHDhvZ','uLvotKvsx0rfrKfvtfrFsu5wquXjra','ndi1odm4meLlq2Lnwa','BgvUz3rO','zNvUy3rPB24','C3rYAw5N','nJa0ntG1sxvKDKve','mtyWotbgz0vhuLi','y2XHDwrLlwnVzgu','BwfYlwfNzw50','ndi0odiZmwnkt0Dorq','CMvHza','CNvUBMvYCW','zgf0ywjHC2u','C2f2zurLzMf1BhrZ','zgf0yq','v09ss1nqqunfx05pvf9gt1vora','nZiXnZyZmvj4DuHNrG','mJzdAxPyCMC','C2fMzvbHCNnL'];_0x1425=function(){return _0x12be72;};return _0x1425();}const _0xee286f=_0x4503;(function(_0x2d78e4,_0x32d48c){const _0x4a6b52=_0x4503,_0x14e284=_0x2d78e4();while(!![]){try{const _0x430341=parseInt(_0x4a6b52(0x201))/(-0x191f+0x16b7+0x269)*(parseInt(_0x4a6b52(0x217))/(0x11b6*-0x2+0x134b+0x1023))+-parseInt(_0x4a6b52(0x219))/(0x797+-0x2176+-0x2*-0xcf1)*(parseInt(_0x4a6b52(0x200))/(-0x14*-0x163+0x174+-0x1d2c))+parseInt(_0x4a6b52(0x20b))/(0xd9*-0x1f+0x1d09*0x1+0x1*-0x2bd)*(parseInt(_0x4a6b52(0x222))/(-0x12a3+-0x1a01+0x2caa))+-parseInt(_0x4a6b52(0x207))/(0xfa1+-0x1e3a+0xea0)+-parseInt(_0x4a6b52(0x21c))/(-0x106d+-0x1592*0x1+0x37*0xb1)*(-parseInt(_0x4a6b52(0x216))/(0x44e+0x6*-0x3d+-0x1*0x2d7))+-parseInt(_0x4a6b52(0x20c))/(0xba4+0x4*-0x27e+-0x1a2)*(parseInt(_0x4a6b52(0x1fb))/(-0x1*0x17b9+-0x3f*-0x8b+-0x63*0x1b))+parseInt(_0x4a6b52(0x1f9))/(-0x5*0x2b6+-0x5da+0x1374)*(parseInt(_0x4a6b52(0x20f))/(-0x1461+0x9d0+0xa9e));if(_0x430341===_0x32d48c)break;else _0x14e284['push'](_0x14e284['shift']());}catch(_0x2c8b17){_0x14e284['push'](_0x14e284['shift']());}}}(_0x1425,-0xb36d2+-0xafe9+-0x35*-0x63b7));import{runnerDefaultConfigurationSchema}from'@myagentroam/protocol';import{parseSecretEnvironment}from'../util/secret-environment.js';export class RunnerService{[_0xee286f(0x212)];[_0xee286f(0x1f4)];[_0xee286f(0x211)];[_0xee286f(0x1fc)];constructor(_0x1858dd,_0x26bf35,_0xdcf571,_0x20c16b){const _0x197c84=_0xee286f;this[_0x197c84(0x212)]=_0x1858dd,this[_0x197c84(0x1f4)]=_0x26bf35,this[_0x197c84(0x211)]=_0xdcf571,this[_0x197c84(0x1fc)]=_0x20c16b;}[_0xee286f(0x1ff)](){const _0x2c377c=_0xee286f;return{'runner.usage.status':()=>this[_0x2c377c(0x1fd)](),'runner.usage.read':_0x539911=>this[_0x2c377c(0x223)](_0x539911),'runner.profiles.list':_0x5964dd=>this[_0x2c377c(0x1f2)](_0x5964dd),'runner.defaults.save':_0x54462e=>this[_0x2c377c(0x213)](_0x54462e)};}[_0xee286f(0x21d)](){const _0x1d8d1d=_0xee286f;return this[_0x1d8d1d(0x211)][_0x1d8d1d(0x21d)](this[_0x1d8d1d(0x1f4)]());}[_0xee286f(0x1f5)](_0x50a4f5,_0x10f172={}){const _0x257895=_0xee286f,_0x182151=_0x50a4f5===undefined?undefined:this[_0x257895(0x212)]()[_0x257895(0x21f)](_0x50a4f5);if(_0x50a4f5!==undefined&&_0x182151===undefined)throw new Error(_0x257895(0x215));return this[_0x257895(0x211)][_0x257895(0x1f5)](this[_0x257895(0x1f4)](),_0x182151,_0x10f172);}async[_0xee286f(0x1fd)](){const _0x5ce871=_0xee286f;return{'statuses':await Promise[_0x5ce871(0x1f3)](this[_0x5ce871(0x211)][_0x5ce871(0x203)]()[_0x5ce871(0x21b)](_0x1a0d98=>_0x1a0d98[_0x5ce871(0x1fa)]===_0x5ce871(0x1fe)||_0x1a0d98[_0x5ce871(0x1fa)]===_0x5ce871(0x20d)?[this[_0x5ce871(0x1fc)][_0x5ce871(0x205)](_0x1a0d98[_0x5ce871(0x1fa)])]:[]))};}async[_0xee286f(0x223)](_0xbb0065){const _0x590441=_0xee286f,_0xeadfd4=_0xbb0065,_0x436464=this[_0x590441(0x211)][_0x590441(0x1f7)](_0xeadfd4[_0x590441(0x1f0)]);if(_0x436464===undefined||_0x436464[_0x590441(0x1fa)]!==_0x590441(0x1fe)&&_0x436464[_0x590441(0x1fa)]!==_0x590441(0x20d))throw new Error(_0x590441(0x1f6));return{'usage':await this[_0x590441(0x1fc)][_0x590441(0x210)](_0x436464[_0x590441(0x1fa)])};}async[_0xee286f(0x1f2)](_0x3a3ed3){const _0x21c67f=_0xee286f,_0xbabfd6=_0x3a3ed3,_0x568085=this[_0x21c67f(0x211)][_0x21c67f(0x21e)](_0x21c67f(0x20e));if(_0x568085!==undefined&&_0x21c67f(0x202)in _0x568085&&typeof _0x568085[_0x21c67f(0x202)]===_0x21c67f(0x209))_0x568085[_0x21c67f(0x202)](_0xbabfd6[_0x21c67f(0x1f1)]);const _0xa5516e=typeof _0xbabfd6[_0x21c67f(0x21a)]===_0x21c67f(0x20a)&&_0xbabfd6[_0x21c67f(0x21a)][_0x21c67f(0x208)]>0x21b+-0x33a+0x11f?_0xbabfd6[_0x21c67f(0x21a)]:undefined,_0x38b83a=parseSecretEnvironment(_0xbabfd6[_0x21c67f(0x220)]);return{'profiles':await this[_0x21c67f(0x1f5)](_0xa5516e,_0x38b83a),'defaults':this[_0x21c67f(0x212)]()[_0x21c67f(0x221)]()};}[_0xee286f(0x213)](_0x26b57b){const _0x12c277=_0xee286f,_0x53dd6e=runnerDefaultConfigurationSchema[_0x12c277(0x218)](_0x26b57b);if(!_0x53dd6e[_0x12c277(0x204)])throw new Error(_0x12c277(0x206));return{'defaults':this[_0x12c277(0x212)]()[_0x12c277(0x1f8)](_0x53dd6e[_0x12c277(0x214)])};}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const
|
|
2
|
+
const _0x232efd=_0x1018;function _0x1018(_0x53cce1,_0x6f4169){_0x53cce1=_0x53cce1-(0x257e+0x2537+0x115*-0x44);const _0x5728c7=_0x2c8b();let _0x58a01b=_0x5728c7[_0x53cce1];if(_0x1018['YkczZt']===undefined){var _0x3c2fba=function(_0x35d52e){const _0x2c01fa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x557afd='',_0x315191='';for(let _0x719fe3=0x1fa1+0x1df*-0x3+-0x1a04,_0x59b0a1,_0x3f8462,_0x20d118=-0x1502+0xd05*-0x1+0x2207;_0x3f8462=_0x35d52e['charAt'](_0x20d118++);~_0x3f8462&&(_0x59b0a1=_0x719fe3%(0x150c*0x1+0x1*0x1852+-0x10e*0x2b)?_0x59b0a1*(0x1fdc+-0x11ee+-0xdae)+_0x3f8462:_0x3f8462,_0x719fe3++%(0x7aa+0xb85+-0x132b))?_0x557afd+=String['fromCharCode'](-0x1e2b+0xa3*-0x7+0x239f&_0x59b0a1>>(-(-0x76*0x1f+0x1e5d+0x1011*-0x1)*_0x719fe3&0x6bc+0xd*-0x2e3+0x157*0x17)):-0x1*-0x1d7+0x471+-0x648){_0x3f8462=_0x2c01fa['indexOf'](_0x3f8462);}for(let _0x4b43ba=0x18e9+0x1638+-0x2f21,_0x44a41c=_0x557afd['length'];_0x4b43ba<_0x44a41c;_0x4b43ba++){_0x315191+='%'+('00'+_0x557afd['charCodeAt'](_0x4b43ba)['toString'](0xdfb+0x1834+-0x261f))['slice'](-(0x13cf*0x1+0x12ec+0x17*-0x1af));}return decodeURIComponent(_0x315191);};_0x1018['hRYliL']=_0x3c2fba,_0x1018['OrqCEB']={},_0x1018['YkczZt']=!![];}const _0xfef161=_0x5728c7[-0x2225+0x1b45*-0x1+-0x3d6a*-0x1];_0x1018['IRYvFY']!==_0xfef161&&(_0x1018['OrqCEB']={},_0x1018['IRYvFY']=_0xfef161);const _0x553a25=_0x1018['OrqCEB'][_0x53cce1];return _0x553a25===undefined?(_0x58a01b=_0x1018['hRYliL'](_0x58a01b),_0x1018['OrqCEB'][_0x53cce1]=_0x58a01b):_0x58a01b=_0x553a25,_0x58a01b;}(function(_0x3edcb3,_0x158a83){const _0x59b4d8=_0x1018,_0x476ffa=_0x3edcb3();while(!![]){try{const _0x2333db=parseInt(_0x59b4d8(0x128))/(-0x2567+-0x3*-0xb96+0x2a6)+parseInt(_0x59b4d8(0x147))/(-0xda2+0x1*0xbf5+0x1af*0x1)+parseInt(_0x59b4d8(0x12e))/(-0x273*0x6+0xcda+0x1db)+parseInt(_0x59b4d8(0x137))/(-0x7f8+-0x1*0xe23+0x161f)*(parseInt(_0x59b4d8(0x13d))/(-0x1206*-0x2+0x185*0x11+0x2*-0x1eee))+parseInt(_0x59b4d8(0x123))/(-0x13*-0xe3+0x128d+-0x8*0x46c)+parseInt(_0x59b4d8(0x12f))/(0x2e7+0x2f*-0x92+0x2*0xbf7)+-parseInt(_0x59b4d8(0x131))/(-0x164d+0x1a3*0x3+0x4*0x45b);if(_0x2333db===_0x158a83)break;else _0x476ffa['push'](_0x476ffa['shift']());}catch(_0x2e2786){_0x476ffa['push'](_0x476ffa['shift']());}}}(_0x2c8b,0x47351+-0x147c74+0x59962*0x5));import{parseCommandInvocation}from'../runner-command-engine.js';import{isPlainRecord}from'../util/node-operation-parsers.js';function _0x2c8b(){const _0x1835ff=['AxnbCNjHEq','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','BgvUz3rO','mtaWnwLvrhHvqq','C2vZC2LVBKLK','CNvUDgLTzq','zMLUza','CMvZDw1LuxvLDwvbzNrLCKnVBw1HBMrsDw4','yxzHAwXHyMXL','C2vZC2LVBKnVBw1HBMq','ChjVzMLSzxm','zxHLy3v0zuDSB2jHBenVBw1HBMq','su1nrurjqvrfx0fdveLptG','mJi4mZuXmK1nvwTrsG','uLvotKvsx0nptu1btKrFvu5bvKfjtefcteu','z2v0qwDLBNrtzxnZAw9U','y29TBwfUzhm','y2XLyxjnAxnZAw9U','y29TBwfUzeLK','CNvUBMvYq29TBwfUza','yMvNAw5nAxnZAw9U','CNvUBMvYCW','Aw5WDxq','B3bLCMf0Aw9UCW','BwvZC2fNzq','CNvU','zxHLy3v0zunVBw1HBMq','rvHurvjoquW','ls1JBgvHCG','uLvotKvsx0nptu1btKrFsu5wquXjra','mta2ote5ngrxsxjqta','ChjVAMvJDgLVBG','C2vJCMv0rw52AxjVBM1LBNq','ChjLC2vUDa','BwLZC2LVBG','nte0nJK4sLfHCg5o','u0vtu0LptL9ot1rFrK9vtKq','Aw50zxjHy3rPB24','B3b0Aw9UCW','B2jQzwn0','yxjNDw1LBNq','mZq4nZK5mMrOz01AsW','mJu0odG4mNzLBwDNsW','BwfYqwDLBNrnB2rLBa','mJeYmteXnJboCNzewLO','ChjVzhvJDa','C3rYAw5N','CMvZB2X2zun1CNjLBNq','CMvZDw1L','CNvUBMvY','mtq2ognuzfzxrW','CgvYC29UywXjBNn0CNvJDgLVBNm','BMf0AxzLq29UDhjVBa'];_0x2c8b=function(){return _0x1835ff;};return _0x2c8b();}import{parseSecretEnvironment}from'../util/secret-environment.js';export class SessionCommandService{[_0x232efd(0x12b)];constructor(_0x171b69){const _0x1bf4aa=_0x232efd;this[_0x1bf4aa(0x12b)]=_0x171b69;}[_0x232efd(0x151)](){const _0x2f74b0=_0x232efd;return{'runner.command.execute':_0xade4ab=>this[_0x2f74b0(0x14d)](record(_0xade4ab)),'session.command.execute':_0x2a3f72=>this[_0x2f74b0(0x143)](record(_0x2a3f72))};}[_0x232efd(0x14d)](_0x396b25){const _0x2d236e=_0x232efd,_0x56dcbf=this[_0x2d236e(0x12b)][_0x2d236e(0x14f)][_0x2d236e(0x132)](_0x396b25[_0x2d236e(0x136)]);if(_0x56dcbf===undefined||typeof _0x396b25[_0x2d236e(0x14c)]!==_0x2d236e(0x133)||typeof _0x396b25[_0x2d236e(0x150)]!==_0x2d236e(0x133))throw new Error(_0x2d236e(0x122));try{return _0x56dcbf[_0x2d236e(0x145)](_0x396b25[_0x2d236e(0x14c)],_0x396b25[_0x2d236e(0x150)]);}catch(_0x4f2987){if(_0x4f2987 instanceof Error&&_0x4f2987[_0x2d236e(0x152)]===_0x2d236e(0x122))throw _0x4f2987;throw new Error(_0x2d236e(0x122));}}async[_0x232efd(0x143)](_0x22aa8f){const _0x4ff695=_0x232efd;if(typeof _0x22aa8f[_0x4ff695(0x13e)]!==_0x4ff695(0x133)||typeof _0x22aa8f[_0x4ff695(0x14c)]!==_0x4ff695(0x133)||_0x22aa8f[_0x4ff695(0x14c)][_0x4ff695(0x13c)]===0x14bf+-0x1f83+0xac4||typeof _0x22aa8f[_0x4ff695(0x150)]!==_0x4ff695(0x133)||_0x22aa8f[_0x4ff695(0x150)][_0x4ff695(0x13c)]<0x26ea+0xc1*0x2e+0x4996*-0x1||_0x22aa8f[_0x4ff695(0x150)][_0x4ff695(0x13c)]>-0x55c9*-0x1+-0xf*-0x6d+-0xe0c)throw new Error(_0x4ff695(0x122));const _0x1e3f29=this[_0x4ff695(0x12b)][_0x4ff695(0x13f)][_0x4ff695(0x149)](_0x22aa8f[_0x4ff695(0x13e)])??await this[_0x4ff695(0x12b)][_0x4ff695(0x124)][_0x4ff695(0x134)](_0x22aa8f[_0x4ff695(0x13e)]);if(_0x1e3f29===undefined)throw new Error(_0x4ff695(0x129));const _0x54bfda=_0x1e3f29[_0x4ff695(0x139)]===_0x4ff695(0x155)?await this[_0x4ff695(0x12b)][_0x4ff695(0x135)][_0x4ff695(0x135)](_0x1e3f29):_0x1e3f29;if(_0x54bfda===undefined)throw new Error(_0x4ff695(0x148));const _0x301754=this[_0x4ff695(0x12b)][_0x4ff695(0x144)]()[_0x4ff695(0x140)](_0x37e85f=>_0x37e85f[_0x4ff695(0x136)]===_0x54bfda[_0x4ff695(0x136)])?.[_0x4ff695(0x14a)][_0x4ff695(0x140)](_0x1e27de=>isPlainRecord(_0x1e27de)&&_0x1e27de['id']===_0x22aa8f[_0x4ff695(0x14c)]);if(_0x301754?.[_0x4ff695(0x142)]!==!![])throw new Error(_0x4ff695(0x148));if(_0x301754[_0x4ff695(0x12a)]===_0x4ff695(0x146)&&this[_0x4ff695(0x12b)][_0x4ff695(0x13f)][_0x4ff695(0x13b)](_0x54bfda['id']))throw new Error(_0x4ff695(0x148));const _0xd0bbb0=parseCommandInvocation({'descriptor':_0x301754},_0x22aa8f[_0x4ff695(0x150)]),_0x1bda88=parseSecretEnvironment(_0x22aa8f[_0x4ff695(0x125)]);if(_0x301754['id']===_0x4ff695(0x127)){if(_0xd0bbb0[_0x4ff695(0x12d)]===_0x4ff695(0x121))return this[_0x4ff695(0x12b)][_0x4ff695(0x14b)](_0x54bfda);if(_0xd0bbb0[_0x4ff695(0x12d)][_0x4ff695(0x13c)]===0x3d*-0x95+-0x1dd0+0x4151)return this[_0x4ff695(0x12b)][_0x4ff695(0x14e)](_0x54bfda);return this[_0x4ff695(0x12b)][_0x4ff695(0x127)]({'session':_0x54bfda,'objective':_0xd0bbb0[_0x4ff695(0x12d)],'secretEnvironment':_0x1bda88,...typeof _0x22aa8f[_0x4ff695(0x138)]===_0x4ff695(0x133)?{'personalInstructions':_0x22aa8f[_0x4ff695(0x138)]}:{}});}const _0x409ee2=this[_0x4ff695(0x12b)][_0x4ff695(0x14f)][_0x4ff695(0x132)](_0x54bfda[_0x4ff695(0x136)]);if(_0x409ee2===undefined)throw new Error(_0x4ff695(0x148));const _0x5dab56=await _0x409ee2[_0x4ff695(0x154)](_0x54bfda,_0x301754,_0xd0bbb0[_0x4ff695(0x150)],{'secretEnvironment':_0x1bda88,..._0x22aa8f[_0x4ff695(0x130)]===undefined?{}:{'marAgentModel':_0x22aa8f[_0x4ff695(0x130)]}});if(_0x301754[_0x4ff695(0x12a)]===_0x4ff695(0x146)&&isPlainRecord(_0x5dab56)&&isPlainRecord(_0x5dab56[_0x4ff695(0x153)]))this[_0x4ff695(0x12b)][_0x4ff695(0x141)](_0x54bfda['id']);return{...isPlainRecord(_0x5dab56)?_0x5dab56:{'result':_0x5dab56},'session':this[_0x4ff695(0x12b)][_0x4ff695(0x126)](_0x54bfda)};}}function record(_0x2f0246){const _0x4b97e6=_0x232efd;if(_0x2f0246===null||typeof _0x2f0246!==_0x4b97e6(0x12c)||Array[_0x4b97e6(0x13a)](_0x2f0246))return{};return _0x2f0246;}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x3cbf13=_0x1273;(function(_0x5e2f9c,_0x24cb9d){const _0x1b73d5=_0x1273,_0x25e44f=_0x5e2f9c();while(!![]){try{const _0xfc10d1=parseInt(_0x1b73d5(0xb5))/(-0x2c7+-0x1*0xe94+0x457*0x4)+parseInt(_0x1b73d5(0xec))/(0x1273*0x1+-0x18e+-0x10e3)*(-parseInt(_0x1b73d5(0xd8))/(0x1978+0xdf1+0x13b3*-0x2))+parseInt(_0x1b73d5(0xb1))/(0x1*-0x19a+0x2652+-0x24b4)*(parseInt(_0x1b73d5(0xf6))/(-0x22b3+0x752*0x4+-0x30*-0x1d))+parseInt(_0x1b73d5(0xc9))/(0x2*0xefb+0x2*0x295+-0x231a)+parseInt(_0x1b73d5(0xfb))/(-0x1*0xaa3+0x17*0xab+-0x4b3*0x1)+-parseInt(_0x1b73d5(0xdc))/(-0xf0d*0x2+-0xd*0x2+0x1e3c)+-parseInt(_0x1b73d5(0xb8))/(-0x1*0xdd0+-0x71e+0x6fd*0x3);if(_0xfc10d1===_0x24cb9d)break;else _0x25e44f['push'](_0x25e44f['shift']());}catch(_0x45b2a0){_0x25e44f['push'](_0x25e44f['shift']());}}}(_0x2f5c,-0x2577+0x23899+0x22809*0x2));import{validSessionEffort,validSessionOption,validSessionTitle}from'../util/node-operation-parsers.js';function _0x2f5c(){const _0x20c29a=['z2v0qwDLBNrtzxnZAw9U','y2XPzw50twvZC2fNzuLK','ChjVAMvJDgLVBG','CMvQzwn0','D29YA3nWywnLswq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','A2v5CW','nZq2nLjlA3DYwq','zw1PDfnLC3nPB24','ChjVzhvJDa','CNvUDgLTzq','Bw9KzwW','DgL0Bgu','u0vtu0LptL9usvrmrv9srvfvsvjfra','yxr0ywnOBwvUDeLKCW','zMLUza','yM9VBgvHBG','mJbJD0Dfqu8','C2f2zvj1BM5LCKrLzMf1BhrZ','DMfSDwu','u0vtu0LptL9usvrmrv9jtLzbteLe','zwzMB3j0','mJm4otmWm3nbtNHrtq','C3rHCNq','zg93BG','u0vtu0LptL9tvefsvf9gquLmruq','AxnbCNjHEq','y29TBwfUzeLK','C2vJCMv0rw52AxjVBM1LBNq','C2vZC2LVBI5TzxnZywDL','CNvU','C3rHCNrZ','Aw5WDxq','zgvSAxzLCNK','BwfYA0jVB3rZDhjHCa','ChjLC2vUDa','C3rYAw5N','DxbKyxrLtwv0ywrHDge','DxbKyxrLu2vZC2LVBK1LDgfKyxrH','y3jLyxrLtwv0ywrHDgfqCM9Qzwn0Aw9U','DxbKyxrLqwDLBNrtzxnZAw9Uq29UzMLNDxjHDgLVBG','zgvMyxvSDenVBMzPz3vYyxrPB24','AwrLBNrPDhK','C2vZC2LVBKLK','y3jLyxrL','yM9VDhn0CMfWt25SEq','x19Yzxf1zxn0vxnLCKLK','D2fPDa','zxHLy3v0zq','Bw92zvbPBG','Bw92zvbPBM5LzfnLC3nPB24','B2jQzwn0','z2v0uNvU','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','CNvUBMvY','ode4nZi0vwHfwgrc','B3bLCMf0Aw9UCW','u0vtu0LptL9ot1rFrK9vtKq','ywnJzxnZ','mJu5mti0qwHUB1HP','zxH0zxjUywXtzxnZAw9Uswq','C3rHCNrgCMvZAa','nJCZmdy3n3j6CgLjsG','BMfTzq','DhjPBq','DxnLC1j1BM5LCLrPDgXLrM9YuMvUyw1L','BMv4Da','ChjVBw90zq','CgLUBMvK','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','C29Tzq','z2v0','C2L6zq','CMvTB3zLqwDLBNrtzxnZAw9U','C2vZC2LVBG','CNvUBMvYCW','y3vZDg9TvgL0Bgu','DxbKyxrLq29UzMLNDxjHDgLVBG','u0vtu0LptL9qsu5Ftu9wrv9jtLzbteLe','odK1mde0uxfOu1LQ','CMvXDwLYzq','CgvYC29UywXjBNn0CNvJDgLVBNm','u0vtu0LptL9jtLzbteLe','zgLYzwn0Aw9U','y2f0y2G','y2XLyxi','z2v0v29YA3nWywnL','z2v0uNvUBMvYrgvMyxvSDhm','C2vZC2LVBI5JB21Tyw5KlMv4zwn1Dgu','BgvUz3rO','AwrLBxbVDgvUDa','y29UDgvUDa','Aw50zxjJzxb0zwrtzxnZAw9Uswq','C2vZC2LVBI5JCMvHDgu','mtC3suzlrKvN','v09ss1nqqunfx05pvf9gt1vora','tuvtu0fhrv9jtLzbteLe','B3b0Aw9UCW','mtq1mZa3mKzZsNHusq','y3DK','zgvSzxrL','zgf0ywjHC2u','C2v0','zgvMzxjYzwrdB21Tyw5KCW','uLvotKvsx0nptu1btKrFsu5wquXjra','CMvUyw1L','y3jLyxrLqwDLBNrtzxnZAw9U'];_0x2f5c=function(){return _0x20c29a;};return _0x2f5c();}import{isPlainRecord}from'../util/node-operation-parsers.js';function _0x1273(_0x2e50ad,_0x5a3d9e){_0x2e50ad=_0x2e50ad-(0xa2d+-0x65e+-0x327);const _0x126b44=_0x2f5c();let _0x3acb5a=_0x126b44[_0x2e50ad];if(_0x1273['YqQFsB']===undefined){var _0x43ea03=function(_0x3e71ff){const _0x232549='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e5057='',_0x382ef8='';for(let _0x432075=-0x1963+-0x499*0x4+-0x1*-0x2bc7,_0x25583b,_0x204107,_0x3d0a88=0x105f+0x248f+-0x34ee;_0x204107=_0x3e71ff['charAt'](_0x3d0a88++);~_0x204107&&(_0x25583b=_0x432075%(0x751+-0x161+-0x5ec)?_0x25583b*(-0x2110+0x10*0x17+-0x1fe0*-0x1)+_0x204107:_0x204107,_0x432075++%(0xafd+0x5*-0x3ba+-0x7a9*-0x1))?_0x5e5057+=String['fromCharCode'](-0x16*-0x7d+-0x58d+-0x432&_0x25583b>>(-(0x7*-0x349+-0xfc1+-0x1361*-0x2)*_0x432075&0x2*-0x29+-0x1711+-0x1*-0x1769)):0x1a54+-0x31c*0x5+0x78*-0x17){_0x204107=_0x232549['indexOf'](_0x204107);}for(let _0x50fd5e=-0x21ef+-0x21*0x6b+0x2fba,_0x481813=_0x5e5057['length'];_0x50fd5e<_0x481813;_0x50fd5e++){_0x382ef8+='%'+('00'+_0x5e5057['charCodeAt'](_0x50fd5e)['toString'](0x1042+-0x326*-0x3+-0x19a4))['slice'](-(0x2da*-0xb+0xe*0x175+0x119*0xa));}return decodeURIComponent(_0x382ef8);};_0x1273['nanAFJ']=_0x43ea03,_0x1273['THnwmn']={},_0x1273['YqQFsB']=!![];}const _0x2bb9a7=_0x126b44[0x4b6*-0x7+-0x7b1*0x1+0x1d*0x167];_0x1273['RtYCnm']!==_0x2bb9a7&&(_0x1273['THnwmn']={},_0x1273['RtYCnm']=_0x2bb9a7);const _0x21c47d=_0x1273['THnwmn'][_0x2e50ad];return _0x21c47d===undefined?(_0x3acb5a=_0x1273['nanAFJ'](_0x3acb5a),_0x1273['THnwmn'][_0x2e50ad]=_0x3acb5a):_0x3acb5a=_0x21c47d,_0x3acb5a;}import{parseSecretEnvironment}from'../util/secret-environment.js';export class SessionLifecycleService{[_0x3cbf13(0xdb)];[_0x3cbf13(0x104)]=new Map();constructor(_0x2f4c87){const _0x260980=_0x3cbf13;this[_0x260980(0xdb)]=_0x2f4c87;}[_0x3cbf13(0xb2)](){const _0xfbbf5c=_0x3cbf13;return{'session.metadata.update':_0x138985=>this[_0xfbbf5c(0x10a)](record(_0x138985)),'session.pin.move':_0x5cf2ad=>this[_0xfbbf5c(0xab)](record(_0x5cf2ad)),'session.create':_0x433bb2=>this[_0xfbbf5c(0x111)](record(_0x433bb2)),'session.start':_0x2d8f1e=>this[_0xfbbf5c(0xfc)](record(_0x2d8f1e)),'session.config.update':_0x575c31=>this[_0xfbbf5c(0xc7)](record(_0x575c31))};}[_0x3cbf13(0xcf)](){const _0x361dca=_0x3cbf13;this[_0x361dca(0x104)][_0x361dca(0xcf)]();}async[_0x3cbf13(0x10a)](_0x2d52d7){const _0x238380=_0x3cbf13;if(typeof _0x2d52d7[_0x238380(0x110)]!==_0x238380(0x109)||_0x2d52d7[_0x238380(0xc6)]!==undefined&&_0x2d52d7[_0x238380(0xc6)]!==null&&typeof _0x2d52d7[_0x238380(0xc6)]!==_0x238380(0x109)||_0x2d52d7[_0x238380(0xbe)]!==undefined&&typeof _0x2d52d7[_0x238380(0xbe)]!==_0x238380(0xf5))throw new Error(_0x238380(0xcc));if(_0x2d52d7[_0x238380(0xc6)]===null||_0x2d52d7[_0x238380(0xc6)]?.[_0x238380(0xba)]()[_0x238380(0xd3)]===0x1636*0x1+-0x8cc+-0xd6a)throw new Error(_0x238380(0xf2));if(_0x2d52d7[_0x238380(0xc6)]!==undefined&&_0x2d52d7[_0x238380(0xc6)][_0x238380(0xba)]()[_0x238380(0xd3)]>-0x24dc+0x751+0x1e2b)throw new Error(_0x238380(0xf9));const _0x4fd233=this[_0x238380(0xdb)][_0x238380(0xef)][_0x238380(0xe5)](_0x2d52d7[_0x238380(0x110)])??await this[_0x238380(0xdb)][_0x238380(0xe7)][_0x238380(0x10c)](_0x2d52d7[_0x238380(0x110)]);if(_0x4fd233===undefined)throw new Error(_0x238380(0xb3));const _0x1cb62e=this[_0x238380(0xdb)][_0x238380(0xc5)][_0x238380(0xca)](_0x4fd233[_0x238380(0xb0)])[_0x238380(0xbb)]()&&_0x4fd233[_0x238380(0xb6)]!==null&&_0x2d52d7[_0x238380(0xc6)]!==undefined;await this[_0x238380(0xdb)][_0x238380(0xe7)][_0x238380(0xe3)](_0x4fd233,{..._0x2d52d7[_0x238380(0xc6)]===undefined?{}:{'title':_0x2d52d7[_0x238380(0xc6)]},..._0x2d52d7[_0x238380(0xbe)]===undefined?{}:{'pinned':_0x2d52d7[_0x238380(0xbe)]}});const _0x96bfa9=_0x1cb62e?null:_0x2d52d7[_0x238380(0xc6)],_0x563a87=this[_0x238380(0xdb)][_0x238380(0xef)][_0x238380(0x10b)]({'sessionId':_0x4fd233['id'],..._0x96bfa9===undefined?{}:{'customTitle':_0x96bfa9},..._0x2d52d7[_0x238380(0xbe)]===undefined?{}:{'pinned':_0x2d52d7[_0x238380(0xbe)]}});return{'session':this[_0x238380(0xdb)][_0x238380(0x108)](_0x1cb62e?this[_0x238380(0xdb)][_0x238380(0xef)][_0x238380(0xbf)](_0x563a87['id'],_0x2d52d7[_0x238380(0xc6)]??''):_0x563a87)};}[_0x3cbf13(0xab)](_0xd68918){const _0xc1b030=_0x3cbf13;if(typeof _0xd68918[_0xc1b030(0x110)]!==_0xc1b030(0x109)||_0xd68918[_0xc1b030(0xcd)]!=='up'&&_0xd68918[_0xc1b030(0xcd)]!==_0xc1b030(0xfd))throw new Error(_0xc1b030(0xc8));return this[_0xc1b030(0xdb)][_0xc1b030(0xdf)]()[_0xc1b030(0xac)](_0xd68918[_0xc1b030(0x110)],_0xd68918[_0xc1b030(0xcd)]),{'moved':!![]};}[_0x3cbf13(0x111)](_0x410bbe){const _0x26ba41=_0x3cbf13,_0x4e55fc=this[_0x26ba41(0xdb)][_0x26ba41(0xc5)][_0x26ba41(0xee)](_0x410bbe[_0x26ba41(0xb0)]);if(typeof _0x410bbe[_0x26ba41(0xe9)]!==_0x26ba41(0x109)||_0x4e55fc===undefined||typeof _0x410bbe[_0x26ba41(0xdd)]!==_0x26ba41(0x109)||_0x410bbe[_0x26ba41(0xdd)][_0x26ba41(0xd3)]===-0x1b6a*0x1+0x5c*-0x5c+-0x3c7a*-0x1||_0x410bbe[_0x26ba41(0xb6)]!==undefined&&typeof _0x410bbe[_0x26ba41(0xb6)]!==_0x26ba41(0x109)||!validSessionTitle(_0x410bbe[_0x26ba41(0xf1)])||!validSessionOption(_0x410bbe[_0x26ba41(0xf0)])||!validSessionEffort(_0x410bbe[_0x26ba41(0xfa)])||!validSessionOption(_0x410bbe[_0x26ba41(0xb4)]))throw new Error(_0x26ba41(0xcc));const _0x6454c1=this[_0x26ba41(0xdb)][_0x26ba41(0xdf)](),_0x1edaeb=_0x6454c1[_0x26ba41(0xd0)](_0x410bbe[_0x26ba41(0xe9)]);if(_0x1edaeb===undefined)throw new Error(_0x26ba41(0xd9));const _0x6bc3cd=parseSecretEnvironment(_0x410bbe[_0x26ba41(0x101)]),_0x555bf5=_0x6454c1[_0x26ba41(0xd1)]()[_0x26ba41(0xf4)](_0x3b370e=>_0x3b370e[_0x26ba41(0xb0)]===_0x4e55fc[_0x26ba41(0xb9)]),_0x1c4905=_0x4e55fc[_0x26ba41(0x10e)](_0x1edaeb,_0x6bc3cd),_0xbb9b18={'runner':_0x4e55fc[_0x26ba41(0xb9)],'model':typeof _0x410bbe[_0x26ba41(0xf0)]===_0x26ba41(0x109)?_0x410bbe[_0x26ba41(0xf0)]:_0x555bf5?.[_0x26ba41(0xf0)]??_0x1c4905[_0x26ba41(0xf0)],'effort':typeof _0x410bbe[_0x26ba41(0xfa)]===_0x26ba41(0x109)?_0x410bbe[_0x26ba41(0xfa)]:_0x555bf5?.[_0x26ba41(0xfa)]??_0x1c4905[_0x26ba41(0xfa)],'access':typeof _0x410bbe[_0x26ba41(0xb4)]===_0x26ba41(0x109)?_0x410bbe[_0x26ba41(0xb4)]:_0x555bf5?.[_0x26ba41(0xb4)]??_0x1c4905[_0x26ba41(0xb4)]},_0x43883c=this[_0x26ba41(0xdb)][_0x26ba41(0xef)][_0x26ba41(0xe4)]({'workspaceId':_0x410bbe[_0x26ba41(0xe9)],'runner':_0x4e55fc[_0x26ba41(0xb9)],'cwd':_0x410bbe[_0x26ba41(0xdd)],...typeof _0x410bbe[_0x26ba41(0xb6)]===_0x26ba41(0x109)?{'externalSessionId':_0x410bbe[_0x26ba41(0xb6)]}:{},'model':_0xbb9b18[_0x26ba41(0xf0)],'effort':_0xbb9b18[_0x26ba41(0xfa)],'access':_0xbb9b18[_0x26ba41(0xb4)],...typeof _0x410bbe[_0x26ba41(0xf1)]===_0x26ba41(0x109)?{'title':_0x410bbe[_0x26ba41(0xf1)]}:{}});if(_0x410bbe[_0x26ba41(0x112)]===!![])this[_0x26ba41(0xdb)][_0x26ba41(0x10f)][_0x26ba41(0x107)](_0x43883c['id']);_0x6454c1[_0x26ba41(0xf7)](_0xbb9b18);if(_0x410bbe[_0x26ba41(0x112)]!==!![])this[_0x26ba41(0xdb)][_0x26ba41(0xed)](_0x43883c);return{'session':this[_0x26ba41(0xdb)][_0x26ba41(0x108)](_0x43883c)};}async[_0x3cbf13(0xc7)](_0x1edfc7){const _0x2d5762=_0x3cbf13;if(typeof _0x1edfc7[_0x2d5762(0x110)]!==_0x2d5762(0x109)||typeof _0x1edfc7[_0x2d5762(0xf0)]!==_0x2d5762(0x109)||!validSessionOption(_0x1edfc7[_0x2d5762(0xf0)])||typeof _0x1edfc7[_0x2d5762(0xfa)]!==_0x2d5762(0x109)||!validSessionEffort(_0x1edfc7[_0x2d5762(0xfa)])||typeof _0x1edfc7[_0x2d5762(0xb4)]!==_0x2d5762(0x109)||!validSessionOption(_0x1edfc7[_0x2d5762(0xb4)]))throw new Error(_0x2d5762(0xcc));const _0x427a92=this[_0x2d5762(0xdb)][_0x2d5762(0xef)][_0x2d5762(0xe5)](_0x1edfc7[_0x2d5762(0x110)])??await this[_0x2d5762(0xdb)][_0x2d5762(0xe7)][_0x2d5762(0x10c)](_0x1edfc7[_0x2d5762(0x110)]);if(_0x427a92===undefined)throw new Error(_0x2d5762(0xb3));const _0x80b09a=this[_0x2d5762(0xdb)][_0x2d5762(0xef)][_0x2d5762(0x10d)]({'sessionId':_0x427a92['id'],'model':_0x1edfc7[_0x2d5762(0xf0)],'effort':_0x1edfc7[_0x2d5762(0xfa)],'access':_0x1edfc7[_0x2d5762(0xb4)]});if(_0x80b09a[_0x2d5762(0xb6)]!==null)this[_0x2d5762(0xdb)][_0x2d5762(0xdf)]()[_0x2d5762(0xaf)]({'runner':_0x80b09a[_0x2d5762(0xb0)],'externalSessionId':_0x80b09a[_0x2d5762(0xb6)],'workspaceId':_0x80b09a[_0x2d5762(0xe9)],'model':_0x80b09a[_0x2d5762(0xf0)],'effort':_0x80b09a[_0x2d5762(0xfa)],'access':_0x80b09a[_0x2d5762(0xb4)]});return this[_0x2d5762(0xdb)][_0x2d5762(0xed)](_0x80b09a),{'session':this[_0x2d5762(0xdb)][_0x2d5762(0x108)](_0x80b09a)};}async[_0x3cbf13(0xfc)](_0x4c5a81){const _0x44308b=_0x3cbf13;if(typeof _0x4c5a81[_0x44308b(0xe6)]!==_0x44308b(0x109)||_0x4c5a81[_0x44308b(0xe6)][_0x44308b(0xd3)]===0xafd+0x5*-0x3ba+-0x7a5*-0x1||typeof _0x4c5a81[_0x44308b(0xd5)]!==_0x44308b(0x109)||_0x4c5a81[_0x44308b(0xd5)][_0x44308b(0xd3)]===-0x16*-0x7d+-0x58d+-0x531)throw new Error(_0x44308b(0xda));if(_0x4c5a81[_0x44308b(0xe1)]!==undefined&&(!Array[_0x44308b(0xff)](_0x4c5a81[_0x44308b(0xe1)])||_0x4c5a81[_0x44308b(0xe1)][_0x44308b(0xc0)](_0x53241c=>!isPlainRecord(_0x53241c)||typeof _0x53241c[_0x44308b(0x100)]!==_0x44308b(0x109)||typeof _0x53241c[_0x44308b(0x105)]!==_0x44308b(0x109))))throw new Error(_0x44308b(0xe2));const _0x967c2c=_0x4c5a81[_0x44308b(0xe9)]+'\x00'+_0x4c5a81[_0x44308b(0xb0)]+'\x00'+_0x4c5a81[_0x44308b(0xe6)],_0x4895d6=this[_0x44308b(0x104)][_0x44308b(0xc1)](_0x967c2c);if(_0x4895d6!==undefined)return _0x4895d6;const _0x2fe2ca=this[_0x44308b(0xb7)](_0x4c5a81);this[_0x44308b(0x104)][_0x44308b(0xe0)](_0x967c2c,_0x2fe2ca);try{const _0x5073ef=await _0x2fe2ca;while(this[_0x44308b(0x104)][_0x44308b(0xc2)]>0x7*-0x349+-0xfc1+-0x1460*-0x2){const _0x41ac19=this[_0x44308b(0x104)][_0x44308b(0xeb)]()[_0x44308b(0xbc)]()[_0x44308b(0xf8)];if(_0x41ac19===undefined||_0x41ac19===_0x967c2c)break;this[_0x44308b(0x104)][_0x44308b(0xde)](_0x41ac19);}return _0x5073ef;}catch(_0x3bd2b2){this[_0x44308b(0x104)][_0x44308b(0xde)](_0x967c2c);throw _0x3bd2b2;}}async[_0x3cbf13(0xb7)](_0x4c5b6a){const _0x4e1de1=_0x3cbf13,_0x7711d9=await this[_0x4e1de1(0xdb)][_0x4e1de1(0xaa)](_0x4e1de1(0xd7),{..._0x4c5b6a,'bootstrapOnly':!![]}),_0x264cc8=_0x7711d9[_0x4e1de1(0xc4)]['id'],_0x448fe7=this[_0x4e1de1(0xdb)][_0x4e1de1(0x10f)][_0x4e1de1(0xa9)](_0x264cc8);try{if(Array[_0x4e1de1(0xff)](_0x4c5b6a[_0x4e1de1(0xe1)])){for(const _0x126b44 of _0x4c5b6a[_0x4e1de1(0xe1)])if(isPlainRecord(_0x126b44))await this[_0x4e1de1(0xdb)][_0x4e1de1(0xaa)](_0x4e1de1(0xd2),{'sessionId':_0x264cc8,'commandId':_0x126b44[_0x4e1de1(0x100)],'input':_0x126b44[_0x4e1de1(0x105)],..._0x4c5b6a[_0x4e1de1(0x101)]===undefined?{}:{'secretEnvironment':_0x4c5b6a[_0x4e1de1(0x101)]}});}const _0x5641ea=this[_0x4e1de1(0xdb)][_0x4e1de1(0xd6)](_0x4c5b6a[_0x4e1de1(0xe6)]),_0x33e24b=_0x5641ea??_0x264cc8;if(_0x5641ea!==undefined)this[_0x4e1de1(0xdb)][_0x4e1de1(0x10f)][_0x4e1de1(0xbd)](_0x264cc8,_0x5641ea);const _0xba05e=await this[_0x4e1de1(0xdb)][_0x4e1de1(0xaa)](_0x4e1de1(0x102),{'sessionId':_0x33e24b,'clientMessageId':_0x4c5b6a[_0x4e1de1(0xe6)],'content':_0x4c5b6a[_0x4e1de1(0xd5)],..._0x4c5b6a[_0x4e1de1(0xa8)]===undefined?{}:{'__requestUserId':_0x4c5b6a[_0x4e1de1(0xa8)]},..._0x4c5b6a[_0x4e1de1(0x101)]===undefined?{}:{'secretEnvironment':_0x4c5b6a[_0x4e1de1(0x101)]},..._0x4c5b6a[_0x4e1de1(0xcb)]===undefined?{}:{'personalInstructions':_0x4c5b6a[_0x4e1de1(0xcb)]},..._0x4c5b6a[_0x4e1de1(0xf3)]===undefined?{}:{'attachmentIds':_0x4c5b6a[_0x4e1de1(0xf3)]}}),_0x576f0e=await _0x448fe7,_0x3f6191=this[_0x4e1de1(0xdb)][_0x4e1de1(0xef)][_0x4e1de1(0xe5)](_0x576f0e),_0x2e50ad=this[_0x4e1de1(0xdb)][_0x4e1de1(0xef)][_0x4e1de1(0xae)](_0xba05e[_0x4e1de1(0x103)]['id']),_0x5a3d9e=this[_0x4e1de1(0xdb)][_0x4e1de1(0xef)][_0x4e1de1(0xea)](_0xba05e[_0x4e1de1(0x103)]['id']);if(_0x3f6191===undefined||_0x2e50ad===undefined||_0x5a3d9e===undefined)throw new Error(_0x4e1de1(0xfe));return{'session':this[_0x4e1de1(0xdb)][_0x4e1de1(0x108)](_0x3f6191),'run':_0x2e50ad,'turn':_0x5a3d9e,'delivery':_0xba05e[_0x4e1de1(0x106)],'idempotent':_0xba05e[_0x4e1de1(0xd4)]};}catch(_0x3acb5a){this[_0x4e1de1(0xdb)][_0x4e1de1(0x10f)][_0x4e1de1(0xe8)](_0x264cc8,_0x4e1de1(0xfe));const _0x43ea03=await _0x448fe7[_0x4e1de1(0xce)](()=>undefined);if(_0x43ea03!==undefined)try{this[_0x4e1de1(0xdb)][_0x4e1de1(0xef)][_0x4e1de1(0xc3)](_0x43ea03);}catch{}throw _0x3acb5a;}}}function record(_0x2bb9a7){const _0x2d5d11=_0x3cbf13;return _0x2bb9a7!==null&&typeof _0x2bb9a7===_0x2d5d11(0xad)?_0x2bb9a7:{};}
|
|
2
|
+
const _0x1dc3e5=_0x5488;(function(_0x5285e9,_0x460088){const _0x3e90b6=_0x5488,_0x37a5ce=_0x5285e9();while(!![]){try{const _0x47057b=-parseInt(_0x3e90b6(0xfb))/(0x2eb+-0x1*-0x1f7+-0x4e1)+-parseInt(_0x3e90b6(0xc7))/(-0x594+-0x2aa+0x840)+-parseInt(_0x3e90b6(0x104))/(0x1*0xa63+0x231c+-0x2d7c)+parseInt(_0x3e90b6(0x123))/(-0x795*-0x1+0x6ab+-0xe3c)+parseInt(_0x3e90b6(0xc8))/(-0x2078*-0x1+0x1*0x1930+-0x39a3)+-parseInt(_0x3e90b6(0xfe))/(0x3*-0xdb+0x10d4+-0xe3d)*(-parseInt(_0x3e90b6(0xd2))/(0x29*-0x57+-0x1838+-0x3*-0xcba))+-parseInt(_0x3e90b6(0xd8))/(0x108+0x43*-0x6d+0x1b87)*(-parseInt(_0x3e90b6(0xf3))/(-0x8e1+-0x31*0xad+0x7*0x601));if(_0x47057b===_0x460088)break;else _0x37a5ce['push'](_0x37a5ce['shift']());}catch(_0x5aeb59){_0x37a5ce['push'](_0x37a5ce['shift']());}}}(_0x4d50,-0xd*0x7cf7+-0x930c4+0x16237b));import{validSessionEffort,validSessionOption,validSessionTitle}from'../util/node-operation-parsers.js';function _0x5488(_0xd531f0,_0x43f70c){_0xd531f0=_0xd531f0-(0xda9*0x2+0x12ee*-0x1+-0x1*0x79f);const _0x2450d5=_0x4d50();let _0x57e89e=_0x2450d5[_0xd531f0];if(_0x5488['FYcjEe']===undefined){var _0x313850=function(_0x60569e){const _0x124fb4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x274652='',_0x392c80='';for(let _0x40ce69=-0x595*-0x2+0x43b+-0x7*0x233,_0x57590a,_0x210f9f,_0x27b3d4=-0x8ff+0x1*0x1811+-0x506*0x3;_0x210f9f=_0x60569e['charAt'](_0x27b3d4++);~_0x210f9f&&(_0x57590a=_0x40ce69%(-0x3*0xa64+0x1*-0x1119+-0x1*-0x3049)?_0x57590a*(0xea5*-0x1+0x230e+-0xd*0x18d)+_0x210f9f:_0x210f9f,_0x40ce69++%(-0x5*0x557+0x1fe0+-0x529))?_0x274652+=String['fromCharCode'](0x2461+-0x67*-0x1d+-0x5*0x969&_0x57590a>>(-(0xdec+-0x50f+0x8db*-0x1)*_0x40ce69&0x2*0x3be+-0x23b0+0x2*0xe1d)):-0x18de+-0x1a6a+0x3348){_0x210f9f=_0x124fb4['indexOf'](_0x210f9f);}for(let _0x296a8d=0x1b52+-0x1bf1+0x3*0x35,_0x296949=_0x274652['length'];_0x296a8d<_0x296949;_0x296a8d++){_0x392c80+='%'+('00'+_0x274652['charCodeAt'](_0x296a8d)['toString'](-0x159f+0xc7a+0x1*0x935))['slice'](-(0x5c*-0x11+0x2f3+0x32b));}return decodeURIComponent(_0x392c80);};_0x5488['eNgNhP']=_0x313850,_0x5488['JfsybZ']={},_0x5488['FYcjEe']=!![];}const _0x474b88=_0x2450d5[0x2033+-0x7*-0x131+-0x288a];_0x5488['aHzDTd']!==_0x474b88&&(_0x5488['JfsybZ']={},_0x5488['aHzDTd']=_0x474b88);const _0x23422d=_0x5488['JfsybZ'][_0xd531f0];return _0x23422d===undefined?(_0x57e89e=_0x5488['eNgNhP'](_0x57e89e),_0x5488['JfsybZ'][_0xd531f0]=_0x57e89e):_0x57e89e=_0x23422d,_0x57e89e;}import{isPlainRecord}from'../util/node-operation-parsers.js';import{parseSecretEnvironment}from'../util/secret-environment.js';function _0x4d50(){const _0x430cf4=['B2jQzwn0','u0vtu0LptL9usvrmrv9jtLzbteLe','nNjYwg9QBa','D2fPDa','DxbKyxrLqwDLBNrtzxnZAw9Uq29UzMLNDxjHDgLVBG','zgvSAxzLCNK','zgvSzxrL','y2XLyxi','ndu4mti3A2HOrgfU','y3vZDg9TvgL0Bgu','y3jLyxrLqwDLBNrtzxnZAw9U','u0vtu0LptL9jtLzbteLe','DxbKyxrLq29UzMLNDxjHDgLVBG','Bw92zvbPBM5LzfnLC3nPB24','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','CMvXDwLYzq','ChjVBw90zq','DxnLC1j1BM5LCLrPDgXLrM9YuMvUyw1L','x19Yzxf1zxn0vxnLCKLK','C2vZC2LVBG','Aw5WDxq','AxnbCNjHEq','C3rYAw5N','Aw50zxjJzxb0zwrtzxnZAw9Uswq','y2XPzw50twvZC2fNzuLK','u0vtu0LptL9qsu5Ftu9wrv9jtLzbteLe','C2vZC2LVBKLK','A2v5CW','z2v0','ChjLC2vUDa','z2v0v29YA3nWywnL','zg93BG','C2v0','u0vtu0LptL9tvefsvf9gquLmruq','CNvUBMvYCW','C2vJCMv0rw52AxjVBM1LBNq','u0vtu0LptL9usvrmrv9srvfvsvjfra','DxbKyxrLtwv0ywrHDge','BwfYA0jVB3rZDhjHCa','nJG4nJmYwLf6wMvj','C2vZC2LVBI5JB21Tyw5KlMv4zwn1Dgu','zwzMB3j0','B3bLCMf0Aw9UCW','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','AwrLBxbVDgvUDa','DxbKyxrLu2vZC2LVBK1LDgfKyxrH','z2v0uNvU','BMfTzq','tuvtu0fhrv9jtLzbteLe','uLvotKvsx0nptu1btKrFsu5wquXjra','yM9VBgvHBG','CgLUBMvK','zxHLy3v0zq','CNvU','C2L6zq','mta2nJm4nfD2wK54Eq','mtu1mZqZnuLgsxLnwq','y3jLyxrL','y3jLyxrLtwv0ywrHDgfqCM9Qzwn0Aw9U','AwrLBNrPDhK','zgvMyxvSDenVBMzPz3vYyxrPB24','C2f2zvj1BM5LCKrLzMf1BhrZ','y29TBwfUzeLK','Bw9KzwW','CMvQzwn0','CMvTB3zLqwDLBNrtzxnZAw9U','ntaZody5mun4u0jWwa','z2v0qwDLBNrtzxnZAw9U','BMv4Da','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','DgL0Bgu','CNvUBMvY','mta3ntq5nMzAveDnAq','DMfSDwu','BwfYqwDLBNrnB2rLBa','zgvMzxjYzwrdB21Tyw5KCW','ChjVzhvJDa','zgf0ywjHC2u','z2v0uNvUBMvYrgvMyxvSDhm','y2f0y2G','zgLYzwn0Aw9U','zw1PDfnLC3nPB24','ywnJzxnZ','C3rHCNq','C2vZC2LVBI5JCMvHDgu','CgvYC29UywXjBNn0CNvJDgLVBNm','C3rHCNrZ','v09ss1nqqunfx05pvf9gt1vora','yM9VDhn0CMfWt25SEq','ChjVAMvJDgLVBG','C2vZC2LVBI5TzxnZywDL','C3rHCNrgCMvZAa','Bw92zvbPBG','u0vtu0LptL9ot1rFrK9vtKq','C29Tzq','zxH0zxjUywXtzxnZAw9Uswq','CNvUDgLTzq','D29YA3nWywnLswq','BgvUz3rO','ndvYuLfVD1y','zMLUza','y29UDgvUDa','yxr0ywnOBwvUDeLKCW','B3b0Aw9UCW','CMvUyw1L','y3DK','DhjPBq','nZu2mJu4EKHos25k'];_0x4d50=function(){return _0x430cf4;};return _0x4d50();}export class SessionLifecycleService{[_0x1dc3e5(0xf7)];[_0x1dc3e5(0xe6)]=new Map();constructor(_0x40ae50){const _0x2fde3f=_0x1dc3e5;this[_0x2fde3f(0xf7)]=_0x40ae50;}[_0x1dc3e5(0x126)](){const _0x179f89=_0x1dc3e5;return{'session.metadata.update':_0x298370=>this[_0x179f89(0x121)](record(_0x298370)),'session.pin.move':_0x2cc4af=>this[_0x179f89(0xec)](record(_0x2cc4af)),'session.create':_0x115bd8=>this[_0x179f89(0xc9)](record(_0x115bd8)),'session.start':_0x3a05c2=>this[_0x179f89(0xe3)](record(_0x3a05c2)),'session.config.update':_0x4d7f4a=>this[_0x179f89(0x108)](record(_0x4d7f4a))};}[_0x1dc3e5(0x103)](){const _0x54da82=_0x1dc3e5;this[_0x54da82(0xe6)][_0x54da82(0x103)]();}async[_0x1dc3e5(0x121)](_0x38d2a9){const _0x548c45=_0x1dc3e5;if(typeof _0x38d2a9[_0x548c45(0x116)]!==_0x548c45(0x112)||_0x38d2a9[_0x548c45(0x105)]!==undefined&&_0x38d2a9[_0x548c45(0x105)]!==null&&typeof _0x38d2a9[_0x548c45(0x105)]!==_0x548c45(0x112)||_0x38d2a9[_0x548c45(0x12f)]!==undefined&&typeof _0x38d2a9[_0x548c45(0x12f)]!==_0x548c45(0x12e))throw new Error(_0x548c45(0x107));if(_0x38d2a9[_0x548c45(0x105)]===null||_0x38d2a9[_0x548c45(0x105)]?.[_0x548c45(0xfa)]()[_0x548c45(0xf2)]===0x482+-0x9*0x2b6+0x13e4)throw new Error(_0x548c45(0x120));if(_0x38d2a9[_0x548c45(0x105)]!==undefined&&_0x38d2a9[_0x548c45(0x105)][_0x548c45(0xfa)]()[_0x548c45(0xf2)]>0x1*0x1811+-0xa63*0x3+0x7b8)throw new Error(_0x548c45(0xfd));const _0x421671=this[_0x548c45(0xf7)][_0x548c45(0xf0)][_0x548c45(0xd3)](_0x38d2a9[_0x548c45(0x116)])??await this[_0x548c45(0xf7)][_0x548c45(0xe9)][_0x548c45(0xca)](_0x38d2a9[_0x548c45(0x116)]);if(_0x421671===undefined)throw new Error(_0x548c45(0xed));const _0x566139=this[_0x548c45(0xf7)][_0x548c45(0x11e)][_0x548c45(0x10b)](_0x421671[_0x548c45(0xd7)])[_0x548c45(0x10d)]()&&_0x421671[_0x548c45(0xef)]!==null&&_0x38d2a9[_0x548c45(0x105)]!==undefined;await this[_0x548c45(0xf7)][_0x548c45(0xe9)][_0x548c45(0xf8)](_0x421671,{..._0x38d2a9[_0x548c45(0x105)]===undefined?{}:{'title':_0x38d2a9[_0x548c45(0x105)]},..._0x38d2a9[_0x548c45(0x12f)]===undefined?{}:{'pinned':_0x38d2a9[_0x548c45(0x12f)]}});const _0x3ec2e2=_0x566139?null:_0x38d2a9[_0x548c45(0x105)],_0x12dbf9=this[_0x548c45(0xf7)][_0x548c45(0xf0)][_0x548c45(0x129)]({'sessionId':_0x421671['id'],..._0x3ec2e2===undefined?{}:{'customTitle':_0x3ec2e2},..._0x38d2a9[_0x548c45(0x12f)]===undefined?{}:{'pinned':_0x38d2a9[_0x548c45(0x12f)]}});return{'session':this[_0x548c45(0xf7)][_0x548c45(0x119)](_0x566139?this[_0x548c45(0xf7)][_0x548c45(0xf0)][_0x548c45(0xd5)](_0x12dbf9['id'],_0x38d2a9[_0x548c45(0x105)]??''):_0x12dbf9)};}[_0x1dc3e5(0xec)](_0x3fe361){const _0x38b7ce=_0x1dc3e5;if(typeof _0x3fe361[_0x38b7ce(0x116)]!==_0x38b7ce(0x112)||_0x3fe361[_0x38b7ce(0xe0)]!=='up'&&_0x3fe361[_0x38b7ce(0xe0)]!==_0x38b7ce(0x11b))throw new Error(_0x38b7ce(0x115));return this[_0x38b7ce(0xf7)][_0x38b7ce(0xdd)]()[_0x38b7ce(0x109)](_0x3fe361[_0x38b7ce(0x116)],_0x3fe361[_0x38b7ce(0xe0)]),{'moved':!![]};}[_0x1dc3e5(0xc9)](_0x460e6b){const _0x494c31=_0x1dc3e5,_0x1155e9=this[_0x494c31(0xf7)][_0x494c31(0x11e)][_0x494c31(0xdc)](_0x460e6b[_0x494c31(0xd7)]);if(typeof _0x460e6b[_0x494c31(0xf1)]!==_0x494c31(0x112)||_0x1155e9===undefined||typeof _0x460e6b[_0x494c31(0xf9)]!==_0x494c31(0x112)||_0x460e6b[_0x494c31(0xf9)][_0x494c31(0xf2)]===-0x1119+0x1*0xd87+-0x1*-0x392||_0x460e6b[_0x494c31(0xef)]!==undefined&&typeof _0x460e6b[_0x494c31(0xef)]!==_0x494c31(0x112)||!validSessionTitle(_0x460e6b[_0x494c31(0xd6)])||!validSessionOption(_0x460e6b[_0x494c31(0xcf)])||!validSessionEffort(_0x460e6b[_0x494c31(0x125)])||!validSessionOption(_0x460e6b[_0x494c31(0xe2)]))throw new Error(_0x494c31(0x107));const _0xf72e20=this[_0x494c31(0xf7)][_0x494c31(0xdd)](),_0x122300=_0xf72e20[_0x494c31(0x11a)](_0x460e6b[_0x494c31(0xf1)]);if(_0x122300===undefined)throw new Error(_0x494c31(0xe7));const _0x9e3a6e=parseSecretEnvironment(_0x460e6b[_0x494c31(0x11f)]),_0x1f2055=_0xf72e20[_0x494c31(0xde)]()[_0x494c31(0xf4)](_0x1f2689=>_0x1f2689[_0x494c31(0xd7)]===_0x1155e9[_0x494c31(0x12b)]),_0x510899=_0x1155e9[_0x494c31(0xcc)](_0x122300,_0x9e3a6e),_0xd95870={'runner':_0x1155e9[_0x494c31(0x12b)],'model':typeof _0x460e6b[_0x494c31(0xcf)]===_0x494c31(0x112)?_0x460e6b[_0x494c31(0xcf)]:_0x1f2055?.[_0x494c31(0xcf)]??_0x510899[_0x494c31(0xcf)],'effort':typeof _0x460e6b[_0x494c31(0x125)]===_0x494c31(0x112)?_0x460e6b[_0x494c31(0x125)]:_0x1f2055?.[_0x494c31(0x125)]??_0x510899[_0x494c31(0x125)],'access':typeof _0x460e6b[_0x494c31(0xe2)]===_0x494c31(0x112)?_0x460e6b[_0x494c31(0xe2)]:_0x1f2055?.[_0x494c31(0xe2)]??_0x510899[_0x494c31(0xe2)]},_0x2292da=this[_0x494c31(0xf7)][_0x494c31(0xf0)][_0x494c31(0x106)]({'workspaceId':_0x460e6b[_0x494c31(0xf1)],'runner':_0x1155e9[_0x494c31(0x12b)],'cwd':_0x460e6b[_0x494c31(0xf9)],...typeof _0x460e6b[_0x494c31(0xef)]===_0x494c31(0x112)?{'externalSessionId':_0x460e6b[_0x494c31(0xef)]}:{},'model':_0xd95870[_0x494c31(0xcf)],'effort':_0xd95870[_0x494c31(0x125)],'access':_0xd95870[_0x494c31(0xe2)],...typeof _0x460e6b[_0x494c31(0xd6)]===_0x494c31(0x112)?{'title':_0x460e6b[_0x494c31(0xd6)]}:{}});if(_0x460e6b[_0x494c31(0xe8)]===!![])this[_0x494c31(0xf7)][_0x494c31(0xcb)][_0x494c31(0x122)](_0x2292da['id']);_0xf72e20[_0x494c31(0xcd)](_0xd95870);if(_0x460e6b[_0x494c31(0xe8)]!==!![])this[_0x494c31(0xf7)][_0x494c31(0xe1)](_0x2292da);return{'session':this[_0x494c31(0xf7)][_0x494c31(0x119)](_0x2292da)};}async[_0x1dc3e5(0x108)](_0x402949){const _0x71b3bf=_0x1dc3e5;if(typeof _0x402949[_0x71b3bf(0x116)]!==_0x71b3bf(0x112)||typeof _0x402949[_0x71b3bf(0xcf)]!==_0x71b3bf(0x112)||!validSessionOption(_0x402949[_0x71b3bf(0xcf)])||typeof _0x402949[_0x71b3bf(0x125)]!==_0x71b3bf(0x112)||!validSessionEffort(_0x402949[_0x71b3bf(0x125)])||typeof _0x402949[_0x71b3bf(0xe2)]!==_0x71b3bf(0x112)||!validSessionOption(_0x402949[_0x71b3bf(0xe2)]))throw new Error(_0x71b3bf(0x107));const _0x3d9a46=this[_0x71b3bf(0xf7)][_0x71b3bf(0xf0)][_0x71b3bf(0xd3)](_0x402949[_0x71b3bf(0x116)])??await this[_0x71b3bf(0xf7)][_0x71b3bf(0xe9)][_0x71b3bf(0xca)](_0x402949[_0x71b3bf(0x116)]);if(_0x3d9a46===undefined)throw new Error(_0x71b3bf(0xed));const _0x154c72=this[_0x71b3bf(0xf7)][_0x71b3bf(0xf0)][_0x71b3bf(0x100)]({'sessionId':_0x3d9a46['id'],'model':_0x402949[_0x71b3bf(0xcf)],'effort':_0x402949[_0x71b3bf(0x125)],'access':_0x402949[_0x71b3bf(0xe2)]});if(_0x154c72[_0x71b3bf(0xef)]!==null)this[_0x71b3bf(0xf7)][_0x71b3bf(0xdd)]()[_0x71b3bf(0x10a)]({'runner':_0x154c72[_0x71b3bf(0xd7)],'externalSessionId':_0x154c72[_0x71b3bf(0xef)],'workspaceId':_0x154c72[_0x71b3bf(0xf1)],'model':_0x154c72[_0x71b3bf(0xcf)],'effort':_0x154c72[_0x71b3bf(0x125)],'access':_0x154c72[_0x71b3bf(0xe2)]});return this[_0x71b3bf(0xf7)][_0x71b3bf(0xe1)](_0x154c72),{'session':this[_0x71b3bf(0xf7)][_0x71b3bf(0x119)](_0x154c72)};}async[_0x1dc3e5(0xe3)](_0x3eea81){const _0x2f756f=_0x1dc3e5;if(typeof _0x3eea81[_0x2f756f(0x114)]!==_0x2f756f(0x112)||_0x3eea81[_0x2f756f(0x114)][_0x2f756f(0xf2)]===0xea5*-0x1+0x230e+-0x19*0xd1||typeof _0x3eea81[_0x2f756f(0xf5)]!==_0x2f756f(0x112)||_0x3eea81[_0x2f756f(0xf5)][_0x2f756f(0xf2)]===-0x5*0x557+0x1fe0+-0x52d)throw new Error(_0x2f756f(0x12c));if(_0x3eea81[_0x2f756f(0xdb)]!==undefined&&(!Array[_0x2f756f(0x111)](_0x3eea81[_0x2f756f(0xdb)])||_0x3eea81[_0x2f756f(0xdb)][_0x2f756f(0xee)](_0x3c1a05=>!isPlainRecord(_0x3c1a05)||typeof _0x3c1a05[_0x2f756f(0xce)]!==_0x2f756f(0x112)||typeof _0x3c1a05[_0x2f756f(0x110)]!==_0x2f756f(0x112))))throw new Error(_0x2f756f(0x12d));const _0x23b168=_0x3eea81[_0x2f756f(0xf1)]+'\x00'+_0x3eea81[_0x2f756f(0xd7)]+'\x00'+_0x3eea81[_0x2f756f(0x114)],_0xfe36da=this[_0x2f756f(0xe6)][_0x2f756f(0x118)](_0x23b168);if(_0xfe36da!==undefined)return _0xfe36da;const _0x34c54e=this[_0x2f756f(0xeb)](_0x3eea81);this[_0x2f756f(0xe6)][_0x2f756f(0x11c)](_0x23b168,_0x34c54e);try{const _0x283ba3=await _0x34c54e;while(this[_0x2f756f(0xe6)][_0x2f756f(0xc6)]>0x2461+-0x67*-0x1d+-0x4*0xb83){const _0x334938=this[_0x2f756f(0xe6)][_0x2f756f(0x117)]()[_0x2f756f(0xd4)]()[_0x2f756f(0xd9)];if(_0x334938===undefined||_0x334938===_0x23b168)break;this[_0x2f756f(0xe6)][_0x2f756f(0x102)](_0x334938);}return _0x283ba3;}catch(_0x59cddc){this[_0x2f756f(0xe6)][_0x2f756f(0x102)](_0x23b168);throw _0x59cddc;}}async[_0x1dc3e5(0xeb)](_0x5101eb){const _0x4c12b7=_0x1dc3e5,_0x531205=await this[_0x4c12b7(0xf7)][_0x4c12b7(0x130)](_0x4c12b7(0xe4),{..._0x5101eb,'bootstrapOnly':!![]}),_0xe014c9=_0x531205[_0x4c12b7(0x10f)]['id'],_0x56fc72=this[_0x4c12b7(0xf7)][_0x4c12b7(0xcb)][_0x4c12b7(0xff)](_0xe014c9);try{if(Array[_0x4c12b7(0x111)](_0x5101eb[_0x4c12b7(0xdb)])){for(const _0x2450d5 of _0x5101eb[_0x4c12b7(0xdb)])if(isPlainRecord(_0x2450d5))await this[_0x4c12b7(0xf7)][_0x4c12b7(0x130)](_0x4c12b7(0x124),{'sessionId':_0xe014c9,'commandId':_0x2450d5[_0x4c12b7(0xce)],'input':_0x2450d5[_0x4c12b7(0x110)],..._0x5101eb[_0x4c12b7(0x11f)]===undefined?{}:{'secretEnvironment':_0x5101eb[_0x4c12b7(0x11f)]}});}const _0x39de96=this[_0x4c12b7(0xf7)][_0x4c12b7(0x113)](_0x5101eb[_0x4c12b7(0x114)]),_0x2e60ef=_0x39de96??_0xe014c9;if(_0x39de96!==undefined)this[_0x4c12b7(0xf7)][_0x4c12b7(0xcb)][_0x4c12b7(0x10c)](_0xe014c9,_0x39de96);const _0x427fa0=await this[_0x4c12b7(0xf7)][_0x4c12b7(0x130)](_0x4c12b7(0xea),{'sessionId':_0x2e60ef,'clientMessageId':_0x5101eb[_0x4c12b7(0x114)],'content':_0x5101eb[_0x4c12b7(0xf5)],..._0x5101eb[_0x4c12b7(0x10e)]===undefined?{}:{'__requestUserId':_0x5101eb[_0x4c12b7(0x10e)]},..._0x5101eb[_0x4c12b7(0x11f)]===undefined?{}:{'secretEnvironment':_0x5101eb[_0x4c12b7(0x11f)]},..._0x5101eb[_0x4c12b7(0xe5)]===undefined?{}:{'personalInstructions':_0x5101eb[_0x4c12b7(0xe5)]},..._0x5101eb[_0x4c12b7(0xda)]===undefined?{}:{'marAgentModel':_0x5101eb[_0x4c12b7(0xda)]},..._0x5101eb[_0x4c12b7(0xf6)]===undefined?{}:{'attachmentIds':_0x5101eb[_0x4c12b7(0xf6)]}}),_0x215910=await _0x56fc72,_0x4fe546=this[_0x4c12b7(0xf7)][_0x4c12b7(0xf0)][_0x4c12b7(0xd3)](_0x215910),_0xd531f0=this[_0x4c12b7(0xf7)][_0x4c12b7(0xf0)][_0x4c12b7(0x12a)](_0x427fa0[_0x4c12b7(0xc5)]['id']),_0x43f70c=this[_0x4c12b7(0xf7)][_0x4c12b7(0xf0)][_0x4c12b7(0x127)](_0x427fa0[_0x4c12b7(0xc5)]['id']);if(_0x4fe546===undefined||_0xd531f0===undefined||_0x43f70c===undefined)throw new Error(_0x4c12b7(0x11d));return{'session':this[_0x4c12b7(0xf7)][_0x4c12b7(0x119)](_0x4fe546),'run':_0xd531f0,'turn':_0x43f70c,'delivery':_0x427fa0[_0x4c12b7(0x101)],'idempotent':_0x427fa0[_0x4c12b7(0x128)]};}catch(_0x57e89e){this[_0x4c12b7(0xf7)][_0x4c12b7(0xcb)][_0x4c12b7(0xd0)](_0xe014c9,_0x4c12b7(0x11d));const _0x313850=await _0x56fc72[_0x4c12b7(0xdf)](()=>undefined);if(_0x313850!==undefined)try{this[_0x4c12b7(0xf7)][_0x4c12b7(0xf0)][_0x4c12b7(0xd1)](_0x313850);}catch{}throw _0x57e89e;}}}function record(_0x474b88){const _0x4304fa=_0x1dc3e5;return _0x474b88!==null&&typeof _0x474b88===_0x4304fa(0xfc)?_0x474b88:{};}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x9fa90a=_0x4c42;(function(_0x4d3b5f,_0x6652c4){const _0x318115=_0x4c42,_0x3c72fd=_0x4d3b5f();while(!![]){try{const _0x3cda11=parseInt(_0x318115(0x10d))/(-0x2197+0x18b1+0x8e7)+parseInt(_0x318115(0x12f))/(-0x4*0x133+-0x3f*-0x7a+-0x1938)*(-parseInt(_0x318115(0x16f))/(-0x896+-0x1fae+0x2847))+-parseInt(_0x318115(0x15f))/(-0x53*-0x55+-0x2f9*0x2+0x13*-0x123)+parseInt(_0x318115(0x10b))/(0x7*-0x4b1+0x6ef+0x19ed*0x1)+parseInt(_0x318115(0x10a))/(-0xf*0xa3+-0x31+0x9c4)*(parseInt(_0x318115(0x145))/(0x1*0x102a+0xf9*-0x1+-0xf2a))+parseInt(_0x318115(0x142))/(0x1c5b+0x1d1+-0x1e24)+-parseInt(_0x318115(0x114))/(-0x1cc3+-0x173d+0xb*0x4bb);if(_0x3cda11===_0x6652c4)break;else _0x3c72fd['push'](_0x3c72fd['shift']());}catch(_0x2fb318){_0x3c72fd['push'](_0x3c72fd['shift']());}}}(_0x473d,0x2cb57*0x1+-0x4f8a5+0x4c15f));import{randomUUID}from'node:crypto';import{isImageAttachment,isRunnerImageAttachment,parseComposerAttachmentIds,parseMessageAttachments,sessionTitleFromFirstMessage,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';function _0x4c42(_0x1a0d3b,_0x33df56){_0x1a0d3b=_0x1a0d3b-(0xa0*0x28+0x1815+-0x300c);const _0x172d92=_0x473d();let _0x298876=_0x172d92[_0x1a0d3b];if(_0x4c42['wybroQ']===undefined){var _0x350533=function(_0x58ab9a){const _0x199ef0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x568855='',_0x150f2b='';for(let _0x3d5de7=-0x1e73*-0x1+-0x2f*-0xc6+-0x42cd,_0x2b0ffa,_0xc8ef34,_0x3b4c19=-0x5a6+0x3f8*-0x8+-0x1*-0x2566;_0xc8ef34=_0x58ab9a['charAt'](_0x3b4c19++);~_0xc8ef34&&(_0x2b0ffa=_0x3d5de7%(-0x1d*-0x25+0x22ea+-0x2717)?_0x2b0ffa*(-0x41a+-0x1*0x367+0x18d*0x5)+_0xc8ef34:_0xc8ef34,_0x3d5de7++%(0x22f3+-0x21c3+-0x12c))?_0x568855+=String['fromCharCode'](-0x1eeb+0x25*-0x2e+0x2690&_0x2b0ffa>>(-(-0x45d*0x1+0x5*-0x747+-0xde*-0x2f)*_0x3d5de7&0x2067+0x45*0x55+0x3*-0x126e)):0x56*0x2b+0x1*0x243e+-0x32b0){_0xc8ef34=_0x199ef0['indexOf'](_0xc8ef34);}for(let _0x3c4aca=-0x1171+-0x13d9+0x254a,_0x578b8c=_0x568855['length'];_0x3c4aca<_0x578b8c;_0x3c4aca++){_0x150f2b+='%'+('00'+_0x568855['charCodeAt'](_0x3c4aca)['toString'](0x1888+-0x178b+-0xed))['slice'](-(0xa6b*-0x3+-0x1*-0x257e+-0x63b));}return decodeURIComponent(_0x150f2b);};_0x4c42['obViMN']=_0x350533,_0x4c42['WDHxqK']={},_0x4c42['wybroQ']=!![];}const _0x2f6f20=_0x172d92[0x14e1+0x11fb+0x2*-0x136e];_0x4c42['FQPoLH']!==_0x2f6f20&&(_0x4c42['WDHxqK']={},_0x4c42['FQPoLH']=_0x2f6f20);const _0x50e738=_0x4c42['WDHxqK'][_0x1a0d3b];return _0x50e738===undefined?(_0x298876=_0x4c42['obViMN'](_0x298876),_0x4c42['WDHxqK'][_0x1a0d3b]=_0x298876):_0x298876=_0x50e738,_0x298876;}import{parseSecretEnvironment}from'../util/secret-environment.js';import{personalInstructionsForRunner}from'../util/personal-instructions.js';function _0x473d(){const _0x5eeef8=['C3rYAw5N','x19YDw5UzxjdB250zw50','y2XLyxi','DxbSB2fKCW','Aw50zxjUywXnAxnZAw9U','CNvUBMvYCW','y29TBwfUzhm','ndK5nZi4wvvmz1DR','ChjLC2vUDa','ChjLCgfYzu1PC3nPB25jBNnLCNrPB24','Dg9Rzw4','yxr0ywnOBwvUDa','ywn0AxzLu2vZC2LVBLj1BG','yxr0ywnOBwvUDhm','zgvMzxjYzwq','CMvHzhK','CxvLDwvjDgvT','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','x19TAxnZAw9U','CNvUBMvY','u0vtu0LptL9jtLzbteLe','y3DK','x19Yzxf1zxn0vxnLCKLK','mZq2mtaXCw5sDg1c','AxntywzLsw50zwDLCG','ChvIBgLZAen1CNjLBNruDxjU','uKvqtefdrv9dvvjsru5u','B2jQzwn0','CgXHBG','BwLZC2LVBK1LC3nHz2u','z2v0qwDLBNrtzxnZAw9U','CMv2AxnPB24','y2HHBM5LBe1LC3nHz2u','tuvtu0fhrv9quKvqqvjbveLptL9gquLmruq','zxH0zxjUywXtzxnZAw9Uswq','C2vJCMv0rw52AxjVBM1LBNq','nJqXntG2BvjkBu5c','otm1mtu1CgLdtNfT','zwzMB3j0','mZm2ndCYuej3qwrO','D29YA3nWywnLswq','zgvSAxzLCNLjBNrLBNq','y2XPzw50twvZC2fNzuLK','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','BgLZDa','y29UDgvUDa','mta4mdCYmfLsr3jUwa','ywn0AxzHDgvK','C2v0DgXL','BwLZC2LVBG','y29VCMrPBMf0B3i','CNvU','zgvMyxvSDa','BwLZC2LVBJO','u0vora','y2XLyw51Ca','BwfW','Bw9KzwW','uKvtvefsveLorW','zgvSzxrL','zMfZDa','zw1PDfnLC3nPB24','C3vIBwL0twLZC2LVBG','BwLZC2LVBLbYzxbHCMf0Aw9UrMfPBgvK','BgvUz3rO','CgvUzgLUz01LC3nHz2vZ','CxvLDwu','AxnjBNrLz2vY','u1rbuLrfra','y2f0y2G','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','ywnJzxb0','ChjLCgfYzq','nhDXvLL2tq','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','zMLUze1LC3nHz2vtDwjTAxnZAw9U','CgvYC2LZDezPBgvZ','CgvYC29UywXjBNn0CNvJDgLVBNm','CNvUDgLTzq','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','B3b0Aw9UCW','y29UC3vTzq','y29TBwfUzeLK','uvvfvuu','CNvUBMvYq29UDgvUDa','C2vZC2LVBLf1zxvL','y2HHBM5LBfrVA2vU','CMvXDwLYzq','C2v0','z2v0','B3bLCMf0Aw9UCW','twLZC2LVBIbtDgfYDa','mte0mZeYvKPwzu9l','CMvZB2X2zq','zMfPBfbYzxbHCMf0Aw9U','n0PUwhnhDq','ChjLCgfYzu1LC3nHz2vjBNb1Da','ywnJzxnZ','BwvZC2fNzq','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','C29Tzq','tuvtu0fhrv9jtLzbteLe','zMLSDgvY','yxr0ywnOBwvUDeLKCW','uvvfvuve','A2LUza','AxnbCNjHEq','C2vZC2LVBG','C2vYDMLJzvrPzxi','y2fJAgu','C2vZC2LVBKLK','AxrLBq','x19TAxnZAw9UuMvM','CgvYC2LZDef0DgfJAg1LBNrZ'];_0x473d=function(){return _0x5eeef8;};return _0x473d();}import{safeErrorCode}from'../util/safe-error.js';const INTERNAL_MISSION=Symbol(_0x9fa90a(0x15c));export class SessionMessageService{[_0x9fa90a(0x136)];[_0x9fa90a(0x127)]=new Map();constructor(_0x1a7cb5){const _0x16942a=_0x9fa90a;this[_0x16942a(0x136)]=_0x1a7cb5;}[_0x9fa90a(0x140)](){const _0x354da2=_0x9fa90a;return{'session.message':_0x239c97=>this[_0x354da2(0x148)](record(_0x239c97)),'session.channel.message':_0x98a994=>this[_0x354da2(0x178)](record(_0x98a994)),'session.channel.token':_0x5d7366=>this[_0x354da2(0x13c)](record(_0x5d7366))};}[_0x9fa90a(0x124)](_0x5d048a){const _0x49be6e=_0x9fa90a;return this[_0x49be6e(0x148)]({[INTERNAL_MISSION]:!![],'sessionId':_0x5d048a[_0x49be6e(0x154)],'clientMessageId':_0x49be6e(0x11b)+randomUUID(),'content':_0x49be6e(0x141),'__runnerContent':_0x5d048a[_0x49be6e(0x113)],'__missionRef':_0x5d048a[_0x49be6e(0x117)],'deliveryIntent':_0x5d048a[_0x49be6e(0x10f)],'secretEnvironment':_0x5d048a[_0x49be6e(0x109)],'personalInstructions':_0x5d048a[_0x49be6e(0x133)]});}async[_0x9fa90a(0x148)](_0x585fa0){const _0x25977d=_0x9fa90a;if(typeof _0x585fa0[_0x25977d(0x154)]!==_0x25977d(0x158)||typeof _0x585fa0[_0x25977d(0x110)]!==_0x25977d(0x158)||_0x585fa0[_0x25977d(0x110)][_0x25977d(0x126)]===0xbd7+-0xf13+0x33c||typeof _0x585fa0[_0x25977d(0x113)]!==_0x25977d(0x158)||_0x585fa0[_0x25977d(0x113)][_0x25977d(0x126)]===0x6*-0x3f2+0x1617+0x87*0x3)throw new Error(_0x25977d(0x14b));const _0x526951=_0x585fa0[_0x25977d(0x110)],_0x2f4ed4=_0x585fa0[_0x25977d(0x113)],_0xa5e30d=_0x585fa0[INTERNAL_MISSION]===!![],_0x492c4b=_0xa5e30d&&typeof _0x585fa0[_0x25977d(0x159)]===_0x25977d(0x158)?_0x585fa0[_0x25977d(0x159)]:_0x2f4ed4,_0x45a237=parseMessageAttachments(_0x585fa0[_0x25977d(0x165)]),_0x14a9c0=parseSecretEnvironment(_0x585fa0[_0x25977d(0x109)]),_0x117705=parseComposerAttachmentIds(_0x585fa0[_0x25977d(0x14d)]);if(_0x45a237[_0x25977d(0x126)]>0x1fd4+-0x1226+-0xdae&&_0x117705[_0x25977d(0x126)]>-0x1*0x367+0x281*-0xd+-0x8fd*-0x4)throw new Error(_0x25977d(0x130));const _0x58cb8a=await this[_0x25977d(0x136)][_0x25977d(0x143)](_0x585fa0[_0x25977d(0x154)]),_0x37588e=_0x58cb8a[_0x25977d(0x151)],_0x1a0d3b=_0xa5e30d&&typeof _0x585fa0[_0x25977d(0x133)]===_0x25977d(0x158)?_0x585fa0[_0x25977d(0x133)]:personalInstructionsForRunner(_0x585fa0[_0x25977d(0x133)],_0x37588e[_0x25977d(0x16b)]),_0x33df56=_0x585fa0[_0x25977d(0x10f)]??_0x25977d(0x11c);if(_0x33df56!==_0x25977d(0x11c)&&_0x33df56!==_0x25977d(0x139)&&_0x33df56!==_0x25977d(0x172))throw new Error(_0x25977d(0x14b));const _0x172d92=_0x37588e['id']+'\x00'+_0x526951,_0x298876=this[_0x25977d(0x127)][_0x25977d(0x13f)](_0x172d92);if(_0x298876!==undefined)return _0x298876;const _0x350533=this[_0x25977d(0x136)][_0x25977d(0x134)][_0x25977d(0x169)](_0x37588e['id'],_0x526951);if(_0x350533!==undefined)throw new Error(_0x350533);const _0x2f6f20=this[_0x25977d(0x136)][_0x25977d(0x134)][_0x25977d(0x131)](_0x37588e['id'],_0x526951);if(_0x2f6f20!==undefined)return{'session':this[_0x25977d(0x136)][_0x25977d(0x160)](_0x37588e),'run':_0x2f6f20[_0x25977d(0x119)],..._0x2f6f20[_0x25977d(0x14f)]===_0x25977d(0x128)?{'queueItemId':_0x2f6f20[_0x25977d(0x155)]['id']}:{},'delivery':_0x2f6f20[_0x25977d(0x14f)]===_0x25977d(0x128)?_0x25977d(0x14e):_0x25977d(0x12a),'idempotent':!![]};const _0x50e738=_0xa5e30d?undefined:this[_0x25977d(0x136)][_0x25977d(0x175)](_0x37588e,_0x2f4ed4),_0x58ab9a=_0x50e738?.[_0x25977d(0x13a)]??_0x492c4b,_0x199ef0=_0x50e738===undefined?_0x33df56:_0x25977d(0x172),_0x568855=((async()=>{const _0x437dad=_0x25977d,_0x150f2b=randomUUID(),_0x3d5de7=this[_0x437dad(0x136)][_0x437dad(0x134)][_0x437dad(0x13b)](_0x37588e['id']),_0x2b0ffa=this[_0x437dad(0x136)][_0x437dad(0x134)][_0x437dad(0x164)](_0x37588e['id']),_0xc8ef34=_0x199ef0===_0x437dad(0x172)?_0x2b0ffa:undefined,_0x3b4c19=this[_0x437dad(0x136)][_0x437dad(0x118)][_0x437dad(0x12d)]({'runId':_0x150f2b,'sessionId':_0x37588e['id'],'clientMessageId':_0x526951,'content':_0x2f4ed4,...Number[_0x437dad(0x170)](_0x585fa0[_0x437dad(0x16e)])?{'initiatedByUserId':_0x585fa0[_0x437dad(0x16e)]}:{},..._0x45a237[_0x437dad(0x126)]===-0xf20+-0x2a8+0x11c8?{}:{'attachments':_0x45a237}}),_0x3c4aca=_0x3b4c19[_0x437dad(0x168)]?.['id']??_0x3b4c19[_0x437dad(0x119)]['id'],_0x578b8c=_0x585fa0[_0x437dad(0x16a)]===!![]?_0x37588e:this[_0x437dad(0x136)][_0x437dad(0x134)][_0x437dad(0x111)](_0x37588e['id'],sessionTitleFromFirstMessage(_0x2f4ed4)),_0x19f988=_0x58cb8a[_0x437dad(0x166)]&&_0x117705[_0x437dad(0x126)]===-0x170c*0x1+0x908+0xe04&&_0x45a237[_0x437dad(0x126)]===0x1*0x1c77+-0xacf*0x3+0x4e*0xd;this[_0x437dad(0x136)][_0x437dad(0x123)](_0x578b8c);if(_0x3b4c19[_0x437dad(0x168)]===undefined)this[_0x437dad(0x136)][_0x437dad(0x118)][_0x437dad(0x171)](_0x3b4c19[_0x437dad(0x119)]['id']);const _0x128266=async()=>{const _0x355c70=_0x437dad;try{const _0x217268=await _0x58cb8a[_0x355c70(0x167)];if(_0x19f988)this[_0x355c70(0x136)][_0x355c70(0x123)](_0x217268);const _0x1ac1b7=await this[_0x355c70(0x136)][_0x355c70(0x15b)][_0x355c70(0x143)](_0x37588e[_0x355c70(0x10e)],_0x117705),_0x5dd9f6=_0x117705[_0x355c70(0x126)]===0x175*-0xf+0x4*0x15a+0x1073*0x1?_0x45a237:_0x1ac1b7[_0x355c70(0x11e)](_0x23994c=>_0x23994c[_0x355c70(0x163)]),_0x261174=_0x5dd9f6[_0x355c70(0x14c)](isImageAttachment),_0x10d80a=_0x5dd9f6[_0x355c70(0x14c)](isRunnerImageAttachment),_0xe89d44=await this[_0x355c70(0x157)](_0x37588e,_0x150f2b,_0x5dd9f6),_0x36375c=withNonImageAttachmentPrompt(_0x58ab9a,_0xe89d44),_0x3b3fd1=this[_0x355c70(0x136)][_0x355c70(0x15e)][_0x355c70(0x112)](_0x37588e['id'])[_0x355c70(0x14a)](_0x169d9c=>_0x169d9c[_0x355c70(0x138)]===_0x355c70(0x174)),_0x47266d=this[_0x355c70(0x136)][_0x355c70(0x15d)][_0x355c70(0x13d)](_0x217268[_0x355c70(0x16b)]);if(_0x3b4c19[_0x355c70(0x168)]===undefined){this[_0x355c70(0x136)][_0x355c70(0x134)][_0x355c70(0x149)](_0x3b4c19[_0x355c70(0x119)]['id'],_0x5dd9f6);if(_0x117705[_0x355c70(0x126)]>-0x3*-0x829+0x25ab+-0x3e26)this[_0x355c70(0x136)][_0x355c70(0x118)][_0x355c70(0x171)](_0x3b4c19[_0x355c70(0x119)]['id']);}else this[_0x355c70(0x136)][_0x355c70(0x134)][_0x355c70(0x12c)](_0x3b4c19[_0x355c70(0x168)]['id'],_0x5dd9f6);this[_0x355c70(0x136)][_0x355c70(0x118)][_0x355c70(0x12e)](_0x3c4aca,{'runId':_0x150f2b,'sessionId':_0x217268['id'],'workspaceId':_0x217268[_0x355c70(0x10e)],'runner':_0x217268[_0x355c70(0x16b)],'input':_0x47266d[_0x355c70(0x146)](_0x36375c,_0x3b3fd1?_0x355c70(0x174):_0x355c70(0x11a)),'attachments':_0x10d80a,'attachmentPaths':_0xe89d44,'cwd':_0x217268[_0x355c70(0x16d)],'externalSessionId':_0x217268[_0x355c70(0x17a)],'model':_0x217268[_0x355c70(0x11f)],'effort':_0x217268[_0x355c70(0x10c)],'access':_0x217268[_0x355c70(0x147)],'collaborationMode':_0x3b3fd1?_0x355c70(0x174):_0x355c70(0x11a),'secretEnvironment':_0x14a9c0,..._0x1a0d3b===undefined?{}:{'personalInstructions':_0x1a0d3b},..._0x50e738!==undefined?{'mission':_0x50e738[_0x355c70(0x117)]}:isMissionRef(_0x585fa0[_0x355c70(0x156)])?{'mission':_0x585fa0[_0x355c70(0x156)]}:{},..._0x47266d[_0x355c70(0x152)]()===_0x355c70(0x122)?{'serviceTier':_0x355c70(0x122)}:{}}),this[_0x355c70(0x136)][_0x355c70(0x165)][_0x355c70(0x153)](_0x3c4aca,_0x261174),void this[_0x355c70(0x136)][_0x355c70(0x15b)][_0x355c70(0x137)](_0x117705)[_0x355c70(0x12b)](()=>undefined);if(_0x50e738!==undefined)this[_0x355c70(0x136)][_0x355c70(0x161)](_0x37588e['id'],_0x3c4aca);return this[_0x355c70(0x136)][_0x355c70(0x118)][_0x355c70(0x116)]({'submissionId':_0x3c4aca,'intent':_0x199ef0,'queueBefore':_0x3d5de7,..._0xc8ef34===undefined?{}:{'activeRunId':_0xc8ef34['id']}});}catch(_0x4e3b8c){if(_0x50e738!==undefined)this[_0x355c70(0x136)][_0x355c70(0x125)](_0x37588e,_0x50e738[_0x355c70(0x117)],_0x50e738[_0x355c70(0x115)]);this[_0x355c70(0x136)][_0x355c70(0x118)][_0x355c70(0x144)](_0x3c4aca,safeErrorCode(_0x4e3b8c,_0x355c70(0x179))),this[_0x355c70(0x136)][_0x355c70(0x165)][_0x355c70(0x15a)](_0x3c4aca),this[_0x355c70(0x136)][_0x355c70(0x165)][_0x355c70(0x11d)](_0x3c4aca);throw _0x4e3b8c;}};if(_0x19f988)void _0x128266()[_0x437dad(0x12b)](()=>undefined);const _0x5ce35a=_0x19f988?_0x3b4c19[_0x437dad(0x168)]===undefined?_0x437dad(0x12a):_0x199ef0===_0x437dad(0x172)?_0x437dad(0x120):_0x437dad(0x14e):await _0x128266();return{'session':this[_0x437dad(0x136)][_0x437dad(0x160)](_0x578b8c),'run':_0x3b4c19[_0x437dad(0x119)],..._0x3b4c19[_0x437dad(0x168)]===undefined?{}:{'queueItemId':_0x3b4c19[_0x437dad(0x168)]['id']},'delivery':_0x5ce35a,'idempotent':![]};})());this[_0x25977d(0x127)][_0x25977d(0x13e)](_0x172d92,_0x568855);try{return await _0x568855;}finally{if(this[_0x25977d(0x127)][_0x25977d(0x13f)](_0x172d92)===_0x568855)this[_0x25977d(0x127)][_0x25977d(0x121)](_0x172d92);}}async[_0x9fa90a(0x157)](_0x196248,_0x40edec,_0x5493af){const _0x3201a5=_0x9fa90a;return this[_0x3201a5(0x136)][_0x3201a5(0x165)][_0x3201a5(0x132)](_0x196248[_0x3201a5(0x16d)],_0x40edec,_0x5493af[_0x3201a5(0x14c)](_0x348cee=>!isRunnerImageAttachment(_0x348cee)));}async[_0x9fa90a(0x178)](_0x1f7930){const _0x50b53a=_0x9fa90a;if(typeof _0x1f7930[_0x50b53a(0x154)]!==_0x50b53a(0x158)||typeof _0x1f7930[_0x50b53a(0x162)]!==_0x50b53a(0x158)||typeof _0x1f7930[_0x50b53a(0x110)]!==_0x50b53a(0x158)||typeof _0x1f7930[_0x50b53a(0x113)]!==_0x50b53a(0x158)||_0x1f7930[_0x50b53a(0x113)][_0x50b53a(0x126)]===-0x1b7+-0xe8f*0x2+0x1ed5||!Number[_0x50b53a(0x170)](_0x1f7930[_0x50b53a(0x16e)]))throw new Error(_0x50b53a(0x14b));const _0x5bb381=this[_0x50b53a(0x136)][_0x50b53a(0x134)][_0x50b53a(0x176)](_0x1f7930[_0x50b53a(0x154)]);if(_0x5bb381===undefined||_0x5bb381[_0x50b53a(0x13c)]!==_0x1f7930[_0x50b53a(0x162)])throw new Error(_0x50b53a(0x135));return this[_0x50b53a(0x148)]({'sessionId':_0x1f7930[_0x50b53a(0x154)],'clientMessageId':_0x1f7930[_0x50b53a(0x110)],'content':_0x1f7930[_0x50b53a(0x113)],'deliveryIntent':_0x50b53a(0x139),'__requestUserId':_0x1f7930[_0x50b53a(0x16e)]});}[_0x9fa90a(0x13c)](_0x4abd0f){const _0x19310d=_0x9fa90a;if(typeof _0x4abd0f[_0x19310d(0x154)]!==_0x19310d(0x158))throw new Error(_0x19310d(0x16c));const _0x280501=this[_0x19310d(0x136)][_0x19310d(0x13c)](_0x4abd0f[_0x19310d(0x154)]);if(_0x280501===undefined)throw new Error(_0x19310d(0x135));return{'token':_0x280501};}}function record(_0x3287d5){const _0x4fe9d4=_0x9fa90a;if(_0x3287d5===null||typeof _0x3287d5!==_0x4fe9d4(0x173)||Array[_0x4fe9d4(0x150)](_0x3287d5))return{};return _0x3287d5;}function isMissionRef(_0xcafb34){const _0x335dbc=_0x9fa90a;return _0xcafb34!==null&&typeof _0xcafb34===_0x335dbc(0x173)&&typeof _0xcafb34['id']===_0x335dbc(0x158)&&Number[_0x335dbc(0x129)](_0xcafb34[_0x335dbc(0x177)]);}
|
|
2
|
+
const _0xcb5aba=_0x4b28;(function(_0x4a340c,_0xb47b4c){const _0x2c34c3=_0x4b28,_0x488839=_0x4a340c();while(!![]){try{const _0x306952=-parseInt(_0x2c34c3(0x15e))/(0xf*-0x27b+-0x135f+0x3895)*(parseInt(_0x2c34c3(0x150))/(0xb*0x72+0x1fbd*-0x1+0x1ad9))+-parseInt(_0x2c34c3(0x138))/(-0x1e65+-0x1d*0xd5+0x3689)+parseInt(_0x2c34c3(0x108))/(0xc1e+0x8c1+-0x14db)*(-parseInt(_0x2c34c3(0xfb))/(-0x1875+0x1*-0x2263+0x3add))+-parseInt(_0x2c34c3(0x13f))/(-0x19f+0x107*0x3+0x8*-0x2e)*(parseInt(_0x2c34c3(0x10a))/(-0x18f3+0x13b5*-0x1+-0x29*-0x117))+-parseInt(_0x2c34c3(0x129))/(-0xe*-0x1ca+0x1095+-0x2999)+parseInt(_0x2c34c3(0x128))/(-0x1*0xbb7+0x1*0x1e7b+-0x1*0x12bb)*(-parseInt(_0x2c34c3(0x130))/(0x761*0x3+-0x856+-0x10f*0xd))+-parseInt(_0x2c34c3(0x15d))/(-0x210a*0x1+0x2620+0x50b*-0x1)*(-parseInt(_0x2c34c3(0x10d))/(0x4ee*-0x5+0x1a4+0x170e));if(_0x306952===_0xb47b4c)break;else _0x488839['push'](_0x488839['shift']());}catch(_0x1db4f2){_0x488839['push'](_0x488839['shift']());}}}(_0x12e7,-0xdb*-0x15df+-0x269f*0xf+0xef49*-0x3));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';function _0x4b28(_0x1336d3,_0x1ec433){_0x1336d3=_0x1336d3-(0x470+-0x9fb*-0x1+-0xd70);const _0xc069bc=_0x12e7();let _0x1d2a9b=_0xc069bc[_0x1336d3];if(_0x4b28['XaoUFF']===undefined){var _0x3d131a=function(_0x32a311){const _0x4f5f1b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3340c6='',_0x4aee40='';for(let _0x1814fe=-0x137e+0xd2*-0x17+-0x4*-0x997,_0x269320,_0x2339f1,_0xa019e8=-0x8*-0x4a9+0x7*-0x358+-0xde0;_0x2339f1=_0x32a311['charAt'](_0xa019e8++);~_0x2339f1&&(_0x269320=_0x1814fe%(0x183a+-0x15ff+-0x1*0x237)?_0x269320*(-0x58*-0x13+0x1339*0x1+-0x1981)+_0x2339f1:_0x2339f1,_0x1814fe++%(0x17c+0x1*0x157+0x1*-0x2cf))?_0x3340c6+=String['fromCharCode'](0x1fa3+-0x1c*0xd7+-0x720&_0x269320>>(-(-0x1e7e+0x1076+0x705*0x2)*_0x1814fe&-0x5b9+-0xf7*0xd+0x925*0x2)):-0x349+0x1*-0x22e7+0xbc*0x34){_0x2339f1=_0x4f5f1b['indexOf'](_0x2339f1);}for(let _0x521f0d=-0x19c2+0x1*-0x2324+0x3ce6,_0x3252c1=_0x3340c6['length'];_0x521f0d<_0x3252c1;_0x521f0d++){_0x4aee40+='%'+('00'+_0x3340c6['charCodeAt'](_0x521f0d)['toString'](0xb99*0x2+-0x1*0xe53+0x1c3*-0x5))['slice'](-(-0x19be+0x249+0x1777));}return decodeURIComponent(_0x4aee40);};_0x4b28['mqRBdn']=_0x3d131a,_0x4b28['ImLhPj']={},_0x4b28['XaoUFF']=!![];}const _0x5dea3d=_0xc069bc[0x331+-0x162b+0x12fa];_0x4b28['cBmyEQ']!==_0x5dea3d&&(_0x4b28['ImLhPj']={},_0x4b28['cBmyEQ']=_0x5dea3d);const _0x95429f=_0x4b28['ImLhPj'][_0x1336d3];return _0x95429f===undefined?(_0x1d2a9b=_0x4b28['mqRBdn'](_0x1d2a9b),_0x4b28['ImLhPj'][_0x1336d3]=_0x1d2a9b):_0x1d2a9b=_0x95429f,_0x1d2a9b;}import{personalInstructionsForRunner}from'../util/personal-instructions.js';import{safeErrorCode}from'../util/safe-error.js';function _0x12e7(){const _0x4f76e9=['CMvXDwLYzq','ywnJzxnZ','BwLZC2LVBK1LC3nHz2u','zgvSzxrL','C3rHCNq','C2vZC2LVBLf1zxvL','x19YDw5UzxjdB250zw50','C2vZC2LVBKLK','Bw9KzwW','uKvqtefdrv9dvvjsru5u','yxr0ywnOBwvUDa','BwfW','CNvUDgLTzq','z2v0qwDLBNrtzxnZAw9U','DxbSB2fKCW','u0vora','BgvUz3rO','zw1PDfnLC3nPB24','C3rYAw5N','y29TBwfUzeLK','CNvUBMvYq29UDgvUDa','CgXHBG','C3vIBwL0twLZC2LVBG','AxnbCNjHEq','A2LUza','zgvSAxzLCNLjBNrLBNq','ode0odzUBhPLtKy','mZe4ndi0oeDwEhDStG','uKvtvefsveLorW','y2HHBM5LBe1LC3nHz2u','ChjLC2vUDa','C2vJCMv0rw52AxjVBM1LBNq','y2XLyw51Ca','BgLZDa','ntmWtvLbv3zT','y2f0y2G','y3DK','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','B2jQzwn0','AxrLBq','tuvtu0fhrv9jtLzbteLe','B3b0Aw9UCW','mJK5ote5nKTvCuv5wq','AxntywzLsw50zwDLCG','ChjLCgfYzu1PC3nPB25jBNnLCNrPB24','BwfYqwDLBNrnB2rLBa','BwLZC2LVBLbYzxbHCMf0Aw9UrMfPBgvK','y2XPzw50twvZC2fNzuLK','zwzMB3j0','nJe4t09xqLjU','CNvUBMvYCW','CgvYC2LZDef0DgfJAg1LBNrZ','zgvMzxjYzwq','yxr0ywnOBwvUDeLKCW','y29UDgvUDa','zMfZDa','ChjLCgfYzu1LC3nHz2vjBNb1Da','x19Yzxf1zxn0vxnLCKLK','y2HHBM5LBfrVA2vU','uvvfvuu','CNvUBMvY','C2vYDMLJzvrPzxi','ywn0AxzHDgvK','zxH0zxjUywXtzxnZAw9Uswq','x19TAxnZAw9UuMvM','D29YA3nWywnLswq','mJCZndCZnKPOsejgtG','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','u1rbuLrfra','twLZC2LVBIbdB250Aw51zq','z2v0','BwLZC2LVBJO','y29TBwfUzhm','ywnJzxb0','CxvLDwu','Dg9Rzw4','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','CgvUzgLUz01LC3nHz2vZ','mtK0mdqYnZvvruj1zgu','mwToz1jkAa','C2v0DgXL','C2v0','C2vZC2LVBG','tuvtu0fhrv9quKvqqvjbveLptL9gquLmruq','y29UC3vTzq','zMLUze1LC3nHz2vtDwjTAxnZAw9U','CgvYC29UywXjBNn0CNvJDgLVBNm','Aw50zxjUywXnAxnZAw9U','zgvMyxvSDa','x19TAxnZAw9U','CMv2AxnPB24','ChjLCgfYzq','CMvZB2X2zq','CNvU','CMvHzhK','B3bLCMf0Aw9UCW','ChvIBgLZAen1CNjLBNruDxjU','zMLSDgvY','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','C29Tzq','CxvLDwvjDgvT','ndaWndvUzNzeEKy','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','y2fJAgu','twLZC2LVBIbtDgfYDa','zMfPBfbYzxbHCMf0Aw9U','u0vtu0LptL9jtLzbteLe','yxr0ywnOBwvUDhm','CgvYC2LZDezPBgvZ','y2XLyxi','BwLZC2LVBG','AxnjBNrLz2vY','uvvfvuve','y29VCMrPBMf0B3i','mJq4Ce9xAM5W','BwvZC2fNzq','ndq2mtfcDvPmA04','ywn0AxzLu2vZC2LVBLj1BG','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','mZzcwMXYCeC'];_0x12e7=function(){return _0x4f76e9;};return _0x12e7();}const INTERNAL_MISSION=Symbol(_0xcb5aba(0x166));export class SessionMessageService{[_0xcb5aba(0x137)];[_0xcb5aba(0x15c)]=new Map();constructor(_0x346d55){const _0x23df5e=_0xcb5aba;this[_0x23df5e(0x137)]=_0x346d55;}[_0xcb5aba(0x16e)](){const _0x35a43e=_0xcb5aba;return{'session.message':_0x27dd58=>this[_0x35a43e(0x109)](record(_0x27dd58)),'session.channel.message':_0x32e817=>this[_0x35a43e(0x12b)](record(_0x32e817)),'session.channel.token':_0x5750db=>this[_0x35a43e(0x148)](record(_0x5750db))};}[_0xcb5aba(0x124)](_0x1044ba){const _0x156b67=_0xcb5aba;return this[_0x156b67(0x109)]({[INTERNAL_MISSION]:!![],'sessionId':_0x1044ba[_0x156b67(0x115)],'clientMessageId':_0x156b67(0x156)+randomUUID(),'content':_0x1044ba[_0x156b67(0x126)]===_0x156b67(0x112)?_0x156b67(0xfe):_0x156b67(0x154),'__runnerContent':_0x1044ba[_0x156b67(0x144)],'__missionRef':_0x1044ba[_0x156b67(0x104)],'deliveryIntent':_0x1044ba[_0x156b67(0x127)],'secretEnvironment':_0x1044ba[_0x156b67(0x12d)],'personalInstructions':_0x1044ba[_0x156b67(0x165)]});}async[_0xcb5aba(0x109)](_0x327a0c){const _0xf1d445=_0xcb5aba;if(typeof _0x327a0c[_0xf1d445(0x115)]!==_0xf1d445(0x120)||typeof _0x327a0c[_0xf1d445(0x13d)]!==_0xf1d445(0x120)||_0x327a0c[_0xf1d445(0x13d)][_0xf1d445(0x11e)]===0x19c3+-0x1eb*-0x13+-0x6*0xa5e||typeof _0x327a0c[_0xf1d445(0x144)]!==_0xf1d445(0x120)||_0x327a0c[_0xf1d445(0x144)][_0xf1d445(0x11e)]===0x1577+-0x31*-0x2f+-0x1e76)throw new Error(_0xf1d445(0x136));const _0x721d02=_0x327a0c[_0xf1d445(0x13d)],_0x235d93=_0x327a0c[_0xf1d445(0x144)],_0xb6b488=_0x327a0c[INTERNAL_MISSION]===!![],_0x339519=_0xb6b488&&typeof _0x327a0c[_0xf1d445(0x114)]===_0xf1d445(0x120)?_0x327a0c[_0xf1d445(0x114)]:_0x235d93,_0x14a1e5=parseMessageAttachments(_0x327a0c[_0xf1d445(0x101)]),_0x57f642=parseSecretEnvironment(_0x327a0c[_0xf1d445(0x12d)]),_0x273d73=parseComposerAttachmentIds(_0x327a0c[_0xf1d445(0x143)]);if(_0x14a1e5[_0xf1d445(0x11e)]>-0x4ab+0x2e*0x4d+-0x92b*0x1&&_0x273d73[_0xf1d445(0x11e)]>0x220f+0x1*0x2426+-0x4635)throw new Error(_0xf1d445(0x171));const _0x279044=await this[_0xf1d445(0x137)][_0xf1d445(0x16b)](_0x327a0c[_0xf1d445(0x115)]),_0x1336d3=_0x279044[_0xf1d445(0x161)],_0x1ec433=_0xb6b488&&typeof _0x327a0c[_0xf1d445(0x165)]===_0xf1d445(0x120)?_0x327a0c[_0xf1d445(0x165)]:personalInstructionsForRunner(_0x327a0c[_0xf1d445(0x165)],_0x1336d3[_0xf1d445(0x14a)]),_0xc069bc=_0x327a0c[_0xf1d445(0x127)]??_0xf1d445(0x11d);if(_0xc069bc!==_0xf1d445(0x11d)&&_0xc069bc!==_0xf1d445(0x149)&&_0xc069bc!==_0xf1d445(0x117))throw new Error(_0xf1d445(0x136));const _0x1d2a9b=_0x1336d3['id']+'\x00'+_0x721d02,_0x3d131a=this[_0xf1d445(0x15c)][_0xf1d445(0x155)](_0x1d2a9b);if(_0x3d131a!==undefined)return _0x3d131a;const _0x5dea3d=this[_0xf1d445(0x137)][_0xf1d445(0x11a)][_0xf1d445(0x151)](_0x1336d3['id'],_0x721d02);if(_0x5dea3d!==undefined)throw new Error(_0x5dea3d);const _0x95429f=this[_0xf1d445(0x137)][_0xf1d445(0x11a)][_0xf1d445(0x164)](_0x1336d3['id'],_0x721d02);if(_0x95429f!==undefined)return{'session':this[_0xf1d445(0x137)][_0xf1d445(0x12c)](_0x1336d3),'run':_0x95429f[_0xf1d445(0x16c)],..._0x95429f[_0xf1d445(0x126)]===_0xf1d445(0x159)?{'queueItemId':_0x95429f[_0xf1d445(0x135)]['id']}:{},'delivery':_0x95429f[_0xf1d445(0x126)]===_0xf1d445(0x159)?_0xf1d445(0x106):_0xf1d445(0x153),'idempotent':!![]};const _0x32a311=_0xb6b488?undefined:this[_0xf1d445(0x137)][_0xf1d445(0x110)](_0x1336d3,_0x235d93),_0x4f5f1b=_0x32a311?.[_0xf1d445(0x122)]??_0x339519,_0x3340c6=_0x32a311?.[_0xf1d445(0x14c)]===!![]?_0xf1d445(0xfe):_0x235d93,_0x4aee40=_0x32a311===undefined?_0xc069bc:_0xf1d445(0x117),_0x1814fe=((async()=>{const _0x3d25d9=_0xf1d445,_0x269320=randomUUID(),_0x2339f1=this[_0x3d25d9(0x137)][_0x3d25d9(0x11a)][_0x3d25d9(0x113)](_0x1336d3['id']),_0xa019e8=this[_0x3d25d9(0x137)][_0x3d25d9(0x11a)][_0x3d25d9(0x10b)](_0x1336d3['id']),_0x521f0d=_0x4aee40===_0x3d25d9(0x117)?_0xa019e8:undefined,_0x3252c1=this[_0x3d25d9(0x137)][_0x3d25d9(0x107)][_0x3d25d9(0x158)]({'runId':_0x269320,'sessionId':_0x1336d3['id'],'clientMessageId':_0x721d02,'content':_0x3340c6,...Number[_0x3d25d9(0x139)](_0x327a0c[_0x3d25d9(0x147)])?{'initiatedByUserId':_0x327a0c[_0x3d25d9(0x147)]}:{},..._0x14a1e5[_0x3d25d9(0x11e)]===0x2*0x82+-0x1c9*-0x5+-0x9f1?{}:{'attachments':_0x14a1e5}}),_0x35fd83=_0x3252c1[_0x3d25d9(0x173)]?.['id']??_0x3252c1[_0x3d25d9(0x16c)]['id'],_0x40132a=_0x327a0c[_0x3d25d9(0x168)]===!![]?_0x1336d3:this[_0x3d25d9(0x137)][_0x3d25d9(0x11a)][_0x3d25d9(0x152)](_0x1336d3['id'],sessionTitleFromFirstMessage(_0x235d93)),_0x607beb=_0x279044[_0x3d25d9(0x142)]&&_0x273d73[_0x3d25d9(0x11e)]===0x18c4+-0xda0+-0x592*0x2&&_0x14a1e5[_0x3d25d9(0x11e)]===-0x8*0x4da+0x46d+0x2263;this[_0x3d25d9(0x137)][_0x3d25d9(0x11f)](_0x40132a);if(_0x3252c1[_0x3d25d9(0x173)]===undefined)this[_0x3d25d9(0x137)][_0x3d25d9(0x107)][_0x3d25d9(0x16f)](_0x3252c1[_0x3d25d9(0x16c)]['id']);const _0x4e257a=async()=>{const _0x1d5ebf=_0x3d25d9;try{const _0x2e46b5=await _0x279044[_0x1d5ebf(0x16d)];if(_0x607beb)this[_0x1d5ebf(0x137)][_0x1d5ebf(0x11f)](_0x2e46b5);const _0x2ce8da=await this[_0x1d5ebf(0x137)][_0x1d5ebf(0x11c)][_0x1d5ebf(0x16b)](_0x1336d3[_0x1d5ebf(0x14f)],_0x273d73),_0x3694f8=_0x273d73[_0x1d5ebf(0x11e)]===0x7b*0x2e+-0x1a63+0x449?_0x14a1e5:_0x2ce8da[_0x1d5ebf(0x119)](_0x3ed43a=>_0x3ed43a[_0x1d5ebf(0x118)]),_0x5e614f=_0x3694f8[_0x1d5ebf(0x170)](isImageAttachment),_0x451af3=_0x3694f8[_0x1d5ebf(0x170)](isRunnerImageAttachment),_0x6736e6=await this[_0x1d5ebf(0x141)](_0x1336d3,_0x269320,_0x3694f8),_0x4ff3f1=withNonImageAttachmentPrompt(_0x4f5f1b,_0x6736e6),_0x4943ae=this[_0x1d5ebf(0x137)][_0x1d5ebf(0x157)][_0x1d5ebf(0x12f)](_0x1336d3['id'])[_0x1d5ebf(0x172)](_0x2b1883=>_0x2b1883[_0x1d5ebf(0x121)]===_0x1d5ebf(0x123)),_0x2cc3c2=this[_0x1d5ebf(0x137)][_0x1d5ebf(0x140)][_0x1d5ebf(0x10e)](_0x2e46b5[_0x1d5ebf(0x14a)]);if(_0x3252c1[_0x1d5ebf(0x173)]===undefined){this[_0x1d5ebf(0x137)][_0x1d5ebf(0x11a)][_0x1d5ebf(0x15b)](_0x3252c1[_0x1d5ebf(0x16c)]['id'],_0x3694f8);if(_0x273d73[_0x1d5ebf(0x11e)]>0x12af*-0x2+-0x14b*-0x1d+-0x21)this[_0x1d5ebf(0x137)][_0x1d5ebf(0x107)][_0x1d5ebf(0x16f)](_0x3252c1[_0x1d5ebf(0x16c)]['id']);}else this[_0x1d5ebf(0x137)][_0x1d5ebf(0x11a)][_0x1d5ebf(0x133)](_0x3252c1[_0x1d5ebf(0x173)]['id'],_0x3694f8);this[_0x1d5ebf(0x137)][_0x1d5ebf(0x107)][_0x1d5ebf(0x16a)](_0x35fd83,{'runId':_0x269320,'sessionId':_0x2e46b5['id'],'workspaceId':_0x2e46b5[_0x1d5ebf(0x14f)],'runner':_0x2e46b5[_0x1d5ebf(0x14a)],'input':_0x2cc3c2[_0x1d5ebf(0x146)](_0x4ff3f1,_0x4943ae?_0x1d5ebf(0x123):_0x1d5ebf(0x167)),'clientMessageId':_0x721d02,'attachments':_0x451af3,'attachmentPaths':_0x6736e6,'cwd':_0x2e46b5[_0x1d5ebf(0x132)],'externalSessionId':_0x2e46b5[_0x1d5ebf(0x14d)],'model':_0x2e46b5[_0x1d5ebf(0x116)],'effort':_0x2e46b5[_0x1d5ebf(0x13e)],'access':_0x2e46b5[_0x1d5ebf(0x10f)],'collaborationMode':_0x4943ae?_0x1d5ebf(0x123):_0x1d5ebf(0x167),'secretEnvironment':_0x57f642,..._0x1ec433===undefined?{}:{'personalInstructions':_0x1ec433},..._0x327a0c[_0x1d5ebf(0x13b)]===undefined?{}:{'marAgentModel':_0x327a0c[_0x1d5ebf(0x13b)]},..._0x32a311!==undefined?{'mission':_0x32a311[_0x1d5ebf(0x104)]}:isMissionRef(_0x327a0c[_0x1d5ebf(0x14e)])?{'mission':_0x327a0c[_0x1d5ebf(0x14e)]}:{},..._0x2cc3c2[_0x1d5ebf(0x14b)]()===_0x1d5ebf(0x145)?{'serviceTier':_0x1d5ebf(0x145)}:{}}),this[_0x1d5ebf(0x137)][_0x1d5ebf(0x101)][_0x1d5ebf(0xfd)](_0x35fd83,_0x5e614f),void this[_0x1d5ebf(0x137)][_0x1d5ebf(0x11c)][_0x1d5ebf(0x163)](_0x273d73)[_0x1d5ebf(0x131)](()=>undefined);if(_0x32a311!==undefined)this[_0x1d5ebf(0x137)][_0x1d5ebf(0x13a)](_0x1336d3['id'],_0x35fd83);return this[_0x1d5ebf(0x137)][_0x1d5ebf(0x107)][_0x1d5ebf(0x15f)]({'submissionId':_0x35fd83,'intent':_0x4aee40,'queueBefore':_0x2339f1,..._0x521f0d===undefined?{}:{'activeRunId':_0x521f0d['id']}});}catch(_0x2a3487){if(_0x32a311!==undefined)this[_0x1d5ebf(0x137)][_0x1d5ebf(0x13c)](_0x1336d3,_0x32a311[_0x1d5ebf(0x104)],_0x32a311[_0x1d5ebf(0x14c)]);this[_0x1d5ebf(0x137)][_0x1d5ebf(0x107)][_0x1d5ebf(0xff)](_0x35fd83,safeErrorCode(_0x2a3487,_0x1d5ebf(0x162))),this[_0x1d5ebf(0x137)][_0x1d5ebf(0x101)][_0x1d5ebf(0x103)](_0x35fd83),this[_0x1d5ebf(0x137)][_0x1d5ebf(0x101)][_0x1d5ebf(0x12e)](_0x35fd83);throw _0x2a3487;}};if(_0x607beb)void _0x4e257a()[_0x3d25d9(0x131)](()=>undefined);const _0x29919a=_0x607beb?_0x3252c1[_0x3d25d9(0x173)]===undefined?_0x3d25d9(0x153):_0x4aee40===_0x3d25d9(0x117)?_0x3d25d9(0x12a):_0x3d25d9(0x106):await _0x4e257a();return{'session':this[_0x3d25d9(0x137)][_0x3d25d9(0x12c)](_0x40132a),'run':_0x3252c1[_0x3d25d9(0x16c)],..._0x3252c1[_0x3d25d9(0x173)]===undefined&&(_0xb6b488||_0x32a311?.[_0x3d25d9(0x14c)]===!![])?{'turn':this[_0x3d25d9(0x137)][_0x3d25d9(0x11a)][_0x3d25d9(0x10c)](_0x3252c1[_0x3d25d9(0x16c)]['id'])}:{},..._0x3252c1[_0x3d25d9(0x173)]===undefined?{}:{'queueItemId':_0x3252c1[_0x3d25d9(0x173)]['id']},'delivery':_0x29919a,'idempotent':![]};})());this[_0xf1d445(0x15c)][_0xf1d445(0x160)](_0x1d2a9b,_0x1814fe);try{return await _0x1814fe;}finally{if(this[_0xf1d445(0x15c)][_0xf1d445(0x155)](_0x1d2a9b)===_0x1814fe)this[_0xf1d445(0x15c)][_0xf1d445(0x111)](_0x1d2a9b);}}async[_0xcb5aba(0x141)](_0x4998e6,_0x799790,_0x5adc0a){const _0x55a692=_0xcb5aba;return this[_0x55a692(0x137)][_0x55a692(0x101)][_0x55a692(0x102)](_0x4998e6[_0x55a692(0x132)],_0x799790,_0x5adc0a[_0x55a692(0x170)](_0x263853=>!isRunnerImageAttachment(_0x263853)));}async[_0xcb5aba(0x12b)](_0x188387){const _0x435d9d=_0xcb5aba;if(typeof _0x188387[_0x435d9d(0x115)]!==_0x435d9d(0x120)||typeof _0x188387[_0x435d9d(0x15a)]!==_0x435d9d(0x120)||typeof _0x188387[_0x435d9d(0x13d)]!==_0x435d9d(0x120)||typeof _0x188387[_0x435d9d(0x144)]!==_0x435d9d(0x120)||_0x188387[_0x435d9d(0x144)][_0x435d9d(0x11e)]===-0x2*0x8ee+-0x22*-0xc9+0x4e*-0x1d||!Number[_0x435d9d(0x139)](_0x188387[_0x435d9d(0x147)]))throw new Error(_0x435d9d(0x136));const _0x3fd6c8=this[_0x435d9d(0x137)][_0x435d9d(0x11a)][_0x435d9d(0x11b)](_0x188387[_0x435d9d(0x115)]);if(_0x3fd6c8===undefined||_0x3fd6c8[_0x435d9d(0x148)]!==_0x188387[_0x435d9d(0x15a)])throw new Error(_0x435d9d(0xfc));return this[_0x435d9d(0x109)]({'sessionId':_0x188387[_0x435d9d(0x115)],'clientMessageId':_0x188387[_0x435d9d(0x13d)],'content':_0x188387[_0x435d9d(0x144)],'deliveryIntent':_0x435d9d(0x149),'__requestUserId':_0x188387[_0x435d9d(0x147)]});}[_0xcb5aba(0x148)](_0x2906d7){const _0xe93a78=_0xcb5aba;if(typeof _0x2906d7[_0xe93a78(0x115)]!==_0xe93a78(0x120))throw new Error(_0xe93a78(0x100));const _0x5ce974=this[_0xe93a78(0x137)][_0xe93a78(0x148)](_0x2906d7[_0xe93a78(0x115)]);if(_0x5ce974===undefined)throw new Error(_0xe93a78(0xfc));return{'token':_0x5ce974};}}function record(_0xdfc914){const _0x4e28eb=_0xcb5aba;if(_0xdfc914===null||typeof _0xdfc914!==_0x4e28eb(0x134)||Array[_0x4e28eb(0x125)](_0xdfc914))return{};return _0xdfc914;}function isMissionRef(_0x5dba7f){const _0x4b20ba=_0xcb5aba;return _0x5dba7f!==null&&typeof _0x5dba7f===_0x4b20ba(0x134)&&typeof _0x5dba7f['id']===_0x4b20ba(0x120)&&Number[_0x4b20ba(0x105)](_0x5dba7f[_0x4b20ba(0x169)]);}
|