@myagentroam/node 0.9.14 → 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.
Files changed (60) hide show
  1. package/dist/capabilities.js +1 -1
  2. package/dist/codex-app-server.js +1 -1
  3. package/dist/connector.js +1 -1
  4. package/dist/database.js +1 -1
  5. package/dist/migrations/v005.js +23 -0
  6. package/dist/native-session-history.js +1 -1
  7. package/dist/ripgrep-binary.js +2 -0
  8. package/dist/runner/abstract-runner.js +1 -1
  9. package/dist/runner/claude/managed-run-controller.js +1 -1
  10. package/dist/runner/claude/tool-normalizer.js +2 -0
  11. package/dist/runner/codex/conversation-parser.js +1 -1
  12. package/dist/runner/codex/managed-run-controller.js +1 -1
  13. package/dist/runner/codex/tool-normalizer.js +2 -0
  14. package/dist/runner/mar-agent/conversation-normalizer.js +2 -0
  15. package/dist/runner/mar-agent/history-projection.js +2 -0
  16. package/dist/runner/mar-agent/managed-run-controller.js +2 -0
  17. package/dist/runner/mar-agent/mcp-client-pool.js +2 -0
  18. package/dist/runner/mar-agent-runner.js +2 -0
  19. package/dist/runner/opencode/conversation-parser.js +1 -1
  20. package/dist/runner/opencode/managed-run-controller.js +1 -1
  21. package/dist/runner/opencode/tool-normalizer.js +2 -0
  22. package/dist/runner/runner-registry.js +1 -1
  23. package/dist/runner-command-engine.js +1 -1
  24. package/dist/runner-profiles.js +1 -1
  25. package/dist/runtime-state.js +1 -1
  26. package/dist/service/continuous-run-coordinator.js +1 -1
  27. package/dist/service/conversation-history-service.js +1 -1
  28. package/dist/service/external-session-resume-service.js +1 -1
  29. package/dist/service/mission-mcp-server.js +2 -0
  30. package/dist/service/mission-mcp-stdio.js +2 -0
  31. package/dist/service/mission-runtime.js +2 -0
  32. package/dist/service/native-session-projection-service.js +1 -1
  33. package/dist/service/native-session-watch-service.js +1 -1
  34. package/dist/service/node-workspace-coordinator.js +1 -1
  35. package/dist/service/run-event-service.js +1 -1
  36. package/dist/service/runner-service.js +1 -1
  37. package/dist/service/session-catalog-service.js +1 -1
  38. package/dist/service/session-command-service.js +1 -1
  39. package/dist/service/session-context-service.js +1 -1
  40. package/dist/service/session-identity-service.js +1 -1
  41. package/dist/service/session-lifecycle-service.js +1 -1
  42. package/dist/service/session-message-service.js +1 -1
  43. package/dist/service/workspace-content-search-service.js +1 -1
  44. package/dist/service/workspace-queue-workbench-service.js +1 -1
  45. package/dist/service/workspace-session-service.js +1 -1
  46. package/dist/service/workspace-watch-controller.js +2 -0
  47. package/dist/service/workspace-watch-service.js +1 -1
  48. package/dist/service/workspace-watch-snapshot-service.js +2 -0
  49. package/dist/service/workspace-workbench-service.js +1 -1
  50. package/dist/util/personal-instructions.js +1 -1
  51. package/dist/util/runner-error.js +1 -1
  52. package/dist/util/runner-native-session-parsers.js +1 -1
  53. package/package.json +4 -2
  54. package/vendor/ripgrep/LICENSE-MIT +21 -0
  55. package/vendor/ripgrep/UNLICENSE +24 -0
  56. package/vendor/ripgrep/linux-arm64/rg +0 -0
  57. package/vendor/ripgrep/linux-x64/rg +0 -0
  58. package/vendor/ripgrep/manifest.json +30 -0
  59. package/vendor/ripgrep/win32-arm64/rg.exe +0 -0
  60. package/vendor/ripgrep/win32-x64/rg.exe +0 -0
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x3446b3=_0x2530;function _0x5ecd(){const _0x16f99c=['CgXHBG','qwnJzxb0igvKAxrZ','mJa4sxzbv0ve','zw52AxjVBM1LBNq','y29TBwfUzhm','CMvHzc1VBMX5','vxnLie9Wzw5dB2rLigfUzcbxB3jRC3bHy2uGCgvYBwLZC2LVBIbJB25MAwD1CMf0Aw9UlG','vxnLienSyxvKzsbdB2rLigrLzMf1BhqGy29UzMLYBwf0Aw9UCY4','Aw5JBhvKzxm','qNLWyxnZihbLCM1PC3nPB24Gy29UzMLYBwf0Aw9UCY4','qxnRihDOzw4GywrKAxrPB25HBcbWzxjTAxnZAw9UigLZihjLCxvPCMvKlG','mJuZnda0thnzB0Lp','q0Xbvurfx0fhru5ux1nesW','qu5usfjpueLdx0rfrKfvtfrFu09otKvux01prevm','qu5usfjpueLdx0rfrKfvtfrFt1bvu19nt0rfta','rgvMyxvSDa','qu5usfjpueLdx0rfrKfvtfrFsefjs1vFtu9eruW','q2XHDwrLie9WDxm','mtq2mtKWm2rAAwLAAG','mM1ZywPZyq','v29YA3nWywnLihDYAxrL','q2XHDwrLieHHAwT1','vg9Nz2XLignVBgXHyM9YyxrPDMuGugXHBIbnB2rLlG','mtuWnJe4nLrYswPIwa','y2XHDwrLlwnVzgu','EgHPz2G','DhvYBI5PBNrLCNj1Chq','uLvotKvsx1voqvzbsuXbqKXf','ywnJzxb0lwvKAxrZ','qxv0B21HDgLJywXSEsbHBgXVDYbYzxf1zxn0zwqGDg9VBcbWzxjTAxnZAw9UCY4','Bg93','BgvUz3rO','BwfW','yxv0BW','zNvSBc1Hy2nLC3m','qNLWyxnZihbLCM1PC3nPB25Z','zwzMB3j0','zMLUza','DhvYBI5ZDgfYDa','C29Tzq','zMLSDgvY','qwXSB3CGzNvSBcbHy2nLC3mGD2L0Ag91DcbPBMrPDMLKDwfSignVBMzPCM1HDgLVBNmU','B3bLBKnVzgvbDMfPBgfIBgu','AgLZDg9YEs5YzwfK','qxv0BYbHChbYB3zL','ve9hr0Xf','su1nrurjqvrfx0fdveLptG','uNvUigLUifbSyw4Gtw9Kzsb3AxrOB3v0igv4zwn1DgLUzYb0B29SCY4','AgfPA3u','qwXSB3CGD3jPDgvZigLUihrOzsbJDxjYzw50ifDVCMTZCgfJzs4','l3bSyw4','qxv0B21HDgLJywXSEsbHy2nLChqGzwrPDhmGAw4GDgHLign1CNjLBNqGv29YA3nWywnLlG','uMvZDhjPy3qGq29KzxGGDg8GysbYzwfKlw9UBhKGC2fUzgjVEc4','q29TCgfJDcb0AguGy3vYCMvUDcbZzxnZAw9UignVBNrLEhqU','D29YA3nWywnLlxDYAxrL','ugXHBIbnB2rL','DhjPBq','uMvHzc1VBMX5','yNLWyxnZ','nZK4nZe4ovHgEfPKEG','ywnJzxnZt3b0Aw9UCW','DhvYBI5XDwv1zq','qu5usfjpueLdx01prevm','rNvSBcbHy2nLC3m','C29UBMv0','zgvMyxvSDa','q2XHDwrLifnVBM5LDa','y29KzxHbDMfPBgfIBgu','y2XHDwrLq29Kzuf2ywLSywjSzq','y29TCgfJDa','ndG1mJa2mgDOrhbKzG','Bw9KzwW','t1bftKnprevFu0vsvKvs','mtC0nZG0oeDhA1vuua','B24TCMvXDwvZDa','AgLNAa','CNvUBMvY','zMLUzeLUzgv4','l2zHC3q','ywnJzxnZ','Bw9KzwXZ','t24TCMvXDwvZDa','B3b1CW','BwvKAxvT','zMfZDa','mZuZmdyWqwnqCwLA','zxzLBNrZlMXPDMu','B3bLBMnVzgu','Bwf4','q09ervHFqvbqx1nfuLzfuG','C3vWCg9YDgvKrwzMB3j0CW','y29KzxG','l2nVBxbHy3q','vg9Nz2XLihrOzsbMyxn0ihnLCNzPy2uGDgLLCIb3AgvUihn1ChbVCNrLzc4'];_0x5ecd=function(){return _0x16f99c;};return _0x5ecd();}(function(_0xe1712b,_0x22ba54){const _0x2ff840=_0x2530,_0x3e60b6=_0xe1712b();while(!![]){try{const _0x4bf2c4=parseInt(_0x2ff840(0x1e0))/(-0x1a3a+0xfb2*0x1+0x57*0x1f)*(-parseInt(_0x2ff840(0x1e1))/(-0x1*0x221b+-0xd19+0x1*0x2f36))+parseInt(_0x2ff840(0x1e5))/(-0x181f+-0x1e74+0x3696)+parseInt(_0x2ff840(0x214))/(0xc48+0x1a18+-0x265c)+-parseInt(_0x2ff840(0x223))/(-0x15cd+0x1fb2+-0x9e0)+parseInt(_0x2ff840(0x217))/(0x167*-0x2+0xdd3*-0x1+0x15*0xcb)+parseInt(_0x2ff840(0x209))/(0x1557+-0xb2*-0x12+-0x21d4)+parseInt(_0x2ff840(0x22e))/(0x38a+-0x1*-0x472+-0x7f4)*(-parseInt(_0x2ff840(0x1d9))/(-0x2c7*0xc+-0x19b8+0x3b15));if(_0x4bf2c4===_0x22ba54)break;else _0x3e60b6['push'](_0x3e60b6['shift']());}catch(_0x245658){_0x3e60b6['push'](_0x3e60b6['shift']());}}}(_0x5ecd,-0xc3b1*-0x20+-0x8d2b9+-0x27a1*0xe));const COMMON_COMMAND_DESCRIPTIONS={'compact':_0x3446b3(0x203),'plan':_0x3446b3(0x1e4)},CLAUDE_MODEL_ENVIRONMENT={'opus':_0x3446b3(0x1dc),'sonnet':_0x3446b3(0x1db),'haiku':_0x3446b3(0x1de)},definitions={'codex':{'runner':_0x3446b3(0x229),'models':[],'accessOptions':[{'id':_0x3446b3(0x218),'label':_0x3446b3(0x21f),'description':_0x3446b3(0x1d8)},{'id':_0x3446b3(0x204),'label':_0x3446b3(0x1e2),'description':_0x3446b3(0x1ff)},{'id':_0x3446b3(0x1f0),'label':_0x3446b3(0x20d),'description':_0x3446b3(0x1f7)},{'id':_0x3446b3(0x231),'label':_0x3446b3(0x207),'description':_0x3446b3(0x202)}],'commands':[{'id':_0x3446b3(0x213),'label':_0x3446b3(0x22a),'description':COMMON_COMMAND_DESCRIPTIONS[_0x3446b3(0x213)],'inputHint':_0x3446b3(0x22a),'interaction':_0x3446b3(0x1fc)},{'id':_0x3446b3(0x22c),'label':_0x3446b3(0x200),'stateLabel':_0x3446b3(0x205),'description':COMMON_COMMAND_DESCRIPTIONS[_0x3446b3(0x22c)],'inputHint':_0x3446b3(0x200),'interaction':_0x3446b3(0x1fb)},{'id':_0x3446b3(0x222),'label':_0x3446b3(0x21c),'description':_0x3446b3(0x22b),'inputHint':_0x3446b3(0x21c),'interaction':_0x3446b3(0x1fb)}][_0x3446b3(0x1ee)](_0x3bf36f=>({..._0x3bf36f,'runner':_0x3446b3(0x229),'source':_0x3446b3(0x227),'available':!![],'reasonCode':null}))},'claude-code':{'runner':_0x3446b3(0x1e6),'models':[{'id':_0x3446b3(0x220),'label':_0x3446b3(0x1df),'supportedEfforts':[_0x3446b3(0x1ec),_0x3446b3(0x221),_0x3446b3(0x219),_0x3446b3(0x1e7),_0x3446b3(0x226)]},{'id':_0x3446b3(0x20e),'label':_0x3446b3(0x210),'supportedEfforts':[_0x3446b3(0x1ec),_0x3446b3(0x221),_0x3446b3(0x219),_0x3446b3(0x1e7),_0x3446b3(0x226)]},{'id':_0x3446b3(0x1fe),'label':_0x3446b3(0x1e3),'supportedEfforts':[_0x3446b3(0x1ec),_0x3446b3(0x221)]}],'accessOptions':[{'id':_0x3446b3(0x20f),'label':_0x3446b3(0x1dd),'description':_0x3446b3(0x233)},{'id':_0x3446b3(0x1ea),'label':_0x3446b3(0x22d),'description':_0x3446b3(0x201)},{'id':_0x3446b3(0x208),'label':_0x3446b3(0x1f1),'description':_0x3446b3(0x1d7)},{'id':_0x3446b3(0x22c),'label':_0x3446b3(0x205),'description':_0x3446b3(0x1fd)}],'commands':[{'id':_0x3446b3(0x213),'runner':_0x3446b3(0x1e6),'label':_0x3446b3(0x22a),'description':COMMON_COMMAND_DESCRIPTIONS[_0x3446b3(0x213)],'inputHint':_0x3446b3(0x22a),'source':_0x3446b3(0x1da),'interaction':_0x3446b3(0x1fc),'available':!![],'reasonCode':null},{'id':_0x3446b3(0x22c),'runner':_0x3446b3(0x1e6),'label':_0x3446b3(0x200),'stateLabel':_0x3446b3(0x205),'description':COMMON_COMMAND_DESCRIPTIONS[_0x3446b3(0x22c)],'inputHint':_0x3446b3(0x200),'source':_0x3446b3(0x1da),'interaction':_0x3446b3(0x1fb),'available':!![],'reasonCode':null}]},'opencode':{'runner':_0x3446b3(0x225),'models':[],'accessOptions':[{'id':_0x3446b3(0x20f),'label':_0x3446b3(0x1dd),'description':_0x3446b3(0x232)},{'id':_0x3446b3(0x1ef),'label':_0x3446b3(0x1fa),'description':_0x3446b3(0x1eb)}],'commands':[{'id':_0x3446b3(0x213),'runner':_0x3446b3(0x225),'label':_0x3446b3(0x22a),'description':COMMON_COMMAND_DESCRIPTIONS[_0x3446b3(0x213)],'inputHint':_0x3446b3(0x22a),'source':_0x3446b3(0x216),'interaction':_0x3446b3(0x1fc),'available':!![],'reasonCode':null},{'id':_0x3446b3(0x22c),'runner':_0x3446b3(0x225),'label':_0x3446b3(0x200),'stateLabel':_0x3446b3(0x205),'description':COMMON_COMMAND_DESCRIPTIONS[_0x3446b3(0x22c)],'inputHint':_0x3446b3(0x200),'source':_0x3446b3(0x216),'interaction':_0x3446b3(0x1fb),'available':!![],'reasonCode':null}]}};export function declaredRunnerProfiles(_0x30d396){const _0xd7a846=_0x3446b3;return[withCapabilities(definitions[_0xd7a846(0x229)],_0x30d396[_0xd7a846(0x211)]),withCapabilities(claudeProfile(_0x30d396[_0xd7a846(0x22f)]??process.env),_0x30d396[_0xd7a846(0x212)]),withCapabilities(definitions[_0xd7a846(0x225)],_0x30d396[_0xd7a846(0x1f8)]===!![])];}export function supportsRunnerConfiguration(_0x2f4adb){const _0x4a2f27=_0x3446b3,_0x1f86e4=_0x2f4adb[_0x4a2f27(0x21a)]===_0x4a2f27(0x1e6)?claudeProfile(_0x2f4adb[_0x4a2f27(0x22f)]??process.env):definitions[_0x2f4adb[_0x4a2f27(0x21a)]],_0x402422=_0x1f86e4[_0x4a2f27(0x21e)][_0x4a2f27(0x1f3)](_0x9c71d3=>_0x9c71d3['id']===_0x2f4adb[_0x4a2f27(0x215)]);return _0x402422!==undefined&&_0x402422[_0x4a2f27(0x228)][_0x4a2f27(0x234)](_0x2f4adb[_0x4a2f27(0x1f2)])&&_0x1f86e4[_0x4a2f27(0x20a)][_0x4a2f27(0x1f5)](_0x47327e=>_0x47327e['id']===_0x2f4adb[_0x4a2f27(0x21d)]);}export function claudeDefaultModel(_0x5328af=process.env){const _0x386a95=_0x3446b3;return configuredClaudeModel(_0x386a95(0x20e),_0x5328af)??_0x386a95(0x20e);}function claudeProfile(_0x2ad973){const _0x4c1964=_0x3446b3,_0x1e8e82=definitions[_0x4c1964(0x1e6)],_0x3bbe1e=_0x1e8e82[_0x4c1964(0x21e)][_0x4c1964(0x1ee)](_0x56105a=>{const _0x49fac5=configuredClaudeModel(_0x56105a['id'],_0x2ad973);return _0x49fac5===undefined?_0x56105a:{..._0x56105a,'id':_0x49fac5,'label':_0x49fac5};});return{..._0x1e8e82,'models':_0x3bbe1e[_0x4c1964(0x1f6)]((_0x1523ee,_0x2decf9)=>_0x3bbe1e[_0x4c1964(0x21b)](_0x2c63b9=>_0x2c63b9['id']===_0x1523ee['id'])===_0x2decf9)};}function configuredClaudeModel(_0x375908,_0x52fdd2){const _0x453489=_0x3446b3,_0x2e52e4=CLAUDE_MODEL_ENVIRONMENT[_0x375908];return validModelName(_0x2e52e4===undefined?undefined:_0x52fdd2[_0x2e52e4])??(_0x375908===_0x453489(0x20e)?validModelName(_0x52fdd2[_0x453489(0x20c)]):undefined);}function validModelName(_0x2ac416){const _0x29703c=_0x3446b3,_0x764dc3=_0x2ac416?.[_0x29703c(0x206)]();return _0x764dc3!==undefined&&_0x764dc3[_0x29703c(0x1ed)]>-0x1*0x12ef+0x517+-0x1bb*-0x8&&_0x764dc3[_0x29703c(0x1ed)]<=-0x231f*0x1+-0x4*0x503+-0x37ab*-0x1?_0x764dc3:undefined;}function _0x2530(_0x305e3f,_0x52904f){_0x305e3f=_0x305e3f-(-0x3*-0xf9+0x969+-0x1*0xa7d);const _0x4c0d5e=_0x5ecd();let _0x1f1c53=_0x4c0d5e[_0x305e3f];if(_0x2530['qZsvye']===undefined){var _0xebe868=function(_0x3c817e){const _0x13d72f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x54decf='',_0x53bffa='';for(let _0x4cc68e=-0x3*0xb8d+0x3d*-0x78+0x3f3f,_0x5b6cd9,_0x399e2f,_0x2acb4c=-0x6c4+0x9c9+-0x305;_0x399e2f=_0x3c817e['charAt'](_0x2acb4c++);~_0x399e2f&&(_0x5b6cd9=_0x4cc68e%(-0x25*-0xf9+-0x2455*0x1+0x1*0x5c)?_0x5b6cd9*(-0x53*0x1+0x235*-0x6+0xdd1)+_0x399e2f:_0x399e2f,_0x4cc68e++%(0xe09*-0x1+0x9e0+0x42d))?_0x54decf+=String['fromCharCode'](-0x1*0x2b4+0x647+-0x294&_0x5b6cd9>>(-(0xd01*-0x3+0xed9+0xee*0x1a)*_0x4cc68e&0x32*-0x8+-0x5*-0x14a+-0x4dc)):-0x1da8+0x3*-0x2bd+0x25df){_0x399e2f=_0x13d72f['indexOf'](_0x399e2f);}for(let _0x5f1ea7=0x26db+-0x8fe*0x3+-0xbe1,_0x744392=_0x54decf['length'];_0x5f1ea7<_0x744392;_0x5f1ea7++){_0x53bffa+='%'+('00'+_0x54decf['charCodeAt'](_0x5f1ea7)['toString'](-0xb4c+-0x2701+0x325d))['slice'](-(-0xef*-0x1f+-0xd1a+-0x243*0x7));}return decodeURIComponent(_0x53bffa);};_0x2530['AALSWT']=_0xebe868,_0x2530['NrLFyj']={},_0x2530['qZsvye']=!![];}const _0x5da932=_0x4c0d5e[-0x1c46+0x4e4+0x1762];_0x2530['iewQIN']!==_0x5da932&&(_0x2530['NrLFyj']={},_0x2530['iewQIN']=_0x5da932);const _0x3b8882=_0x2530['NrLFyj'][_0x305e3f];return _0x3b8882===undefined?(_0x1f1c53=_0x2530['AALSWT'](_0x1f1c53),_0x2530['NrLFyj'][_0x305e3f]=_0x1f1c53):_0x1f1c53=_0x3b8882,_0x1f1c53;}function withCapabilities(_0x12b98,_0x41cef9){const _0x16030f=_0x3446b3;return{..._0x12b98,'commands':_0x12b98[_0x16030f(0x230)][_0x16030f(0x1ee)](_0x314a36=>_0x41cef9?_0x314a36:{..._0x314a36,'available':![],'reasonCode':_0x16030f(0x1e9)}),'capabilities':_0x41cef9?[_0x16030f(0x1f9),_0x16030f(0x224),_0x16030f(0x1f4),_0x16030f(0x20b),_0x16030f(0x1e8)]:[]};}
2
+ const _0x44ec60=_0x2f1c;(function(_0x4a55aa,_0x335b1c){const _0x2971b=_0x2f1c,_0x1eed84=_0x4a55aa();while(!![]){try{const _0x53eca3=-parseInt(_0x2971b(0xa1))/(0x33b*-0x9+0x98e+0x1386)+parseInt(_0x2971b(0xde))/(0x1953+0x4a5*0x5+-0x308a)+parseInt(_0x2971b(0xfc))/(0x4*0x650+0x1c8d+-0x35ca)*(-parseInt(_0x2971b(0xb1))/(-0x223d+0xabc+0x1b*0xdf))+parseInt(_0x2971b(0xc5))/(0x112*0x23+0x3*-0x2e1+-0x2*0xe67)+-parseInt(_0x2971b(0xc8))/(-0x1cc9+-0x3b0*0x5+0x127*0x29)+-parseInt(_0x2971b(0xdc))/(0x132e*0x2+0x2644+-0x4c99)+parseInt(_0x2971b(0xb8))/(0x1*0x262c+0x2701+0xe3*-0x57)*(parseInt(_0x2971b(0xc2))/(-0x1*-0x1aad+-0x2388*-0x1+-0x2e*0x15a));if(_0x53eca3===_0x335b1c)break;else _0x1eed84['push'](_0x1eed84['shift']());}catch(_0x20dd2a){_0x1eed84['push'](_0x1eed84['shift']());}}}(_0x371d,-0x30d9f+-0x3b066+0x143323));const COMMON_COMMAND_DESCRIPTIONS={'compact':_0x44ec60(0x102),'plan':_0x44ec60(0xa8),'mission':_0x44ec60(0xfb)},CLAUDE_MODEL_ENVIRONMENT={'opus':_0x44ec60(0xcd),'sonnet':_0x44ec60(0xc4),'haiku':_0x44ec60(0xc7)},OFFICIAL_ANTHROPIC_HOST=_0x44ec60(0xd0),definitions={'codex':{'runner':_0x44ec60(0xe8),'models':[],'accessOptions':[{'id':_0x44ec60(0x10c),'label':_0x44ec60(0xf4),'description':_0x44ec60(0xf7)},{'id':_0x44ec60(0x10d),'label':_0x44ec60(0xd7),'description':_0x44ec60(0xff)},{'id':_0x44ec60(0x108),'label':_0x44ec60(0xd9),'description':_0x44ec60(0xe9)},{'id':_0x44ec60(0xe2),'label':_0x44ec60(0xa4),'description':_0x44ec60(0xb5)}],'commands':[{'id':_0x44ec60(0xcc),'label':_0x44ec60(0xd6),'description':COMMON_COMMAND_DESCRIPTIONS[_0x44ec60(0xcc)],'inputHint':_0x44ec60(0xd6),'interaction':_0x44ec60(0xf6)},{'id':_0x44ec60(0xb6),'label':_0x44ec60(0xd2),'stateLabel':_0x44ec60(0x10a),'description':COMMON_COMMAND_DESCRIPTIONS[_0x44ec60(0xb6)],'inputHint':_0x44ec60(0xd2),'interaction':_0x44ec60(0xae)},{'id':_0x44ec60(0xa9),'label':_0x44ec60(0xbb),'description':_0x44ec60(0xc1),'inputHint':_0x44ec60(0xbb),'interaction':_0x44ec60(0xae)}][_0x44ec60(0x106)](_0x468dbf=>({..._0x468dbf,'runner':_0x44ec60(0xe8),'source':_0x44ec60(0x103),'available':!![],'reasonCode':null}))},'claude-code':{'runner':_0x44ec60(0xc0),'models':[{'id':_0x44ec60(0xf5),'label':_0x44ec60(0xce),'supportedEfforts':[_0x44ec60(0xca),_0x44ec60(0xad),_0x44ec60(0x107),_0x44ec60(0xe0),_0x44ec60(0xf9)]},{'id':_0x44ec60(0xe7),'label':_0x44ec60(0xeb),'supportedEfforts':[_0x44ec60(0xca),_0x44ec60(0xad),_0x44ec60(0x107),_0x44ec60(0xe0),_0x44ec60(0xf9)]},{'id':_0x44ec60(0xb0),'label':_0x44ec60(0xf2),'supportedEfforts':[_0x44ec60(0xca),_0x44ec60(0xad)]}],'accessOptions':[{'id':_0x44ec60(0xa2),'label':_0x44ec60(0xb2),'description':_0x44ec60(0xd3)},{'id':_0x44ec60(0xef),'label':_0x44ec60(0xa5),'description':_0x44ec60(0xec)},{'id':_0x44ec60(0xac),'label':_0x44ec60(0xfd),'description':_0x44ec60(0xa3)},{'id':_0x44ec60(0xb6),'label':_0x44ec60(0x10a),'description':_0x44ec60(0xea)}],'commands':[{'id':_0x44ec60(0xcc),'runner':_0x44ec60(0xc0),'label':_0x44ec60(0xd6),'description':COMMON_COMMAND_DESCRIPTIONS[_0x44ec60(0xcc)],'inputHint':_0x44ec60(0xd6),'source':_0x44ec60(0xbd),'interaction':_0x44ec60(0xf6),'available':!![],'reasonCode':null},{'id':_0x44ec60(0xb6),'runner':_0x44ec60(0xc0),'label':_0x44ec60(0xd2),'stateLabel':_0x44ec60(0x10a),'description':COMMON_COMMAND_DESCRIPTIONS[_0x44ec60(0xb6)],'inputHint':_0x44ec60(0xd2),'source':_0x44ec60(0xbd),'interaction':_0x44ec60(0xae),'available':!![],'reasonCode':null}]},'opencode':{'runner':_0x44ec60(0x10e),'models':[],'accessOptions':[{'id':_0x44ec60(0xa2),'label':_0x44ec60(0xb2),'description':_0x44ec60(0xfe)},{'id':_0x44ec60(0xa7),'label':_0x44ec60(0xb7),'description':_0x44ec60(0xbc)}],'commands':[{'id':_0x44ec60(0xcc),'runner':_0x44ec60(0x10e),'label':_0x44ec60(0xd6),'description':COMMON_COMMAND_DESCRIPTIONS[_0x44ec60(0xcc)],'inputHint':_0x44ec60(0xd6),'source':_0x44ec60(0xed),'interaction':_0x44ec60(0xf6),'available':!![],'reasonCode':null},{'id':_0x44ec60(0xb6),'runner':_0x44ec60(0x10e),'label':_0x44ec60(0xd2),'stateLabel':_0x44ec60(0x10a),'description':COMMON_COMMAND_DESCRIPTIONS[_0x44ec60(0xb6)],'inputHint':_0x44ec60(0xd2),'source':_0x44ec60(0xed),'interaction':_0x44ec60(0xae),'available':!![],'reasonCode':null}]},'mar-agent':{'runner':_0x44ec60(0xb3),'models':[],'accessOptions':[{'id':_0x44ec60(0x10c),'label':_0x44ec60(0xf4),'description':_0x44ec60(0xf3)},{'id':_0x44ec60(0x108),'label':_0x44ec60(0xd9),'description':_0x44ec60(0x104)}],'commands':[{'id':_0x44ec60(0xcc),'runner':_0x44ec60(0xb3),'label':_0x44ec60(0xd6),'description':COMMON_COMMAND_DESCRIPTIONS[_0x44ec60(0xcc)],'inputHint':_0x44ec60(0xd6),'source':_0x44ec60(0xe4),'interaction':_0x44ec60(0xf6),'available':!![],'reasonCode':null},{'id':_0x44ec60(0xb6),'runner':_0x44ec60(0xb3),'label':_0x44ec60(0xd2),'stateLabel':_0x44ec60(0x10a),'description':COMMON_COMMAND_DESCRIPTIONS[_0x44ec60(0xb6)],'inputHint':_0x44ec60(0xd2),'source':_0x44ec60(0xe4),'interaction':_0x44ec60(0xae),'available':!![],'reasonCode':null},{'id':_0x44ec60(0xaa),'runner':_0x44ec60(0xb3),'label':_0x44ec60(0xc6),'description':_0x44ec60(0xab),'inputHint':_0x44ec60(0xc6),'source':_0x44ec60(0xe4),'interaction':_0x44ec60(0xf6),'available':!![],'reasonCode':null}]}};export function declaredRunnerProfiles(_0x2e4484){const _0x5d03e8=_0x44ec60;return[withCapabilities(definitions[_0x5d03e8(0xe8)],_0x2e4484[_0x5d03e8(0xc9)]),withCapabilities(claudeProfile(_0x2e4484[_0x5d03e8(0x100)]??process.env),_0x2e4484[_0x5d03e8(0x109)]),withCapabilities(definitions[_0x5d03e8(0x10e)],_0x2e4484[_0x5d03e8(0xbf)]===!![])];}export function supportsRunnerConfiguration(_0x6614e6){const _0x34d244=_0x44ec60,_0x3ebd18=_0x6614e6[_0x34d244(0xcf)]===_0x34d244(0xc0)?claudeProfile(_0x6614e6[_0x34d244(0x100)]??process.env):definitions[_0x6614e6[_0x34d244(0xcf)]],_0x98e8f3=_0x3ebd18[_0x34d244(0xdd)][_0x34d244(0xf1)](_0x1cca1c=>_0x1cca1c['id']===_0x6614e6[_0x34d244(0xd1)]);return _0x98e8f3!==undefined&&_0x98e8f3[_0x34d244(0xe1)][_0x34d244(0xf8)](_0x6614e6[_0x34d244(0xb4)])&&_0x3ebd18[_0x34d244(0xb9)][_0x34d244(0xf0)](_0x45c32a=>_0x45c32a['id']===_0x6614e6[_0x34d244(0xd8)]);}function _0x2f1c(_0x7fb6a,_0x2a15eb){_0x7fb6a=_0x7fb6a-(-0x1*0xcb1+0x2442+-0x1*0x16f0);const _0x1c02f3=_0x371d();let _0x5bfe2e=_0x1c02f3[_0x7fb6a];if(_0x2f1c['PDsUdA']===undefined){var _0x771b2d=function(_0x2afbae){const _0x9fa9ff='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2249b6='',_0x31f294='';for(let _0x1991d6=-0x193+0x196b+-0x38*0x6d,_0x31d503,_0x4f24cd,_0x3b6c65=-0x17a8+0x11d4+-0x2*-0x2ea;_0x4f24cd=_0x2afbae['charAt'](_0x3b6c65++);~_0x4f24cd&&(_0x31d503=_0x1991d6%(-0xa83+0x1*0x234e+-0x18c7)?_0x31d503*(0x9*-0xbf+0x2306+-0x1c0f)+_0x4f24cd:_0x4f24cd,_0x1991d6++%(0xc55+0x535*-0x6+-0x64f*-0x3))?_0x2249b6+=String['fromCharCode'](-0x1*-0x158f+0x9fe+-0x1e8e&_0x31d503>>(-(-0x22f9*-0x1+0x7*0x173+-0x2d1c)*_0x1991d6&0x29*-0x7+-0x2266+0x3f3*0x9)):-0xc58+-0x189*-0x9+-0x179){_0x4f24cd=_0x9fa9ff['indexOf'](_0x4f24cd);}for(let _0x25a60b=0x193*-0x1+-0x305+0x498,_0x470974=_0x2249b6['length'];_0x25a60b<_0x470974;_0x25a60b++){_0x31f294+='%'+('00'+_0x2249b6['charCodeAt'](_0x25a60b)['toString'](0x1003*-0x1+-0x7*-0x4bb+0x5ae*-0x3))['slice'](-(0x1346+-0x683+-0xcc1));}return decodeURIComponent(_0x31f294);};_0x2f1c['eDuoqD']=_0x771b2d,_0x2f1c['tbbEIH']={},_0x2f1c['PDsUdA']=!![];}const _0x58e22e=_0x1c02f3[0x3*-0x172+0x826+0x2*-0x1e8];_0x2f1c['fVGpIN']!==_0x58e22e&&(_0x2f1c['tbbEIH']={},_0x2f1c['fVGpIN']=_0x58e22e);const _0x5c0478=_0x2f1c['tbbEIH'][_0x7fb6a];return _0x5c0478===undefined?(_0x5bfe2e=_0x2f1c['eDuoqD'](_0x5bfe2e),_0x2f1c['tbbEIH'][_0x7fb6a]=_0x5bfe2e):_0x5bfe2e=_0x5c0478,_0x5bfe2e;}function _0x371d(){const _0x99e32f=['B3bLBKnVzgvbDMfPBgfIBgu','y2XHDwrLlwnVzgu','vg9Nz2XLihrOzsbMyxn0ihnLCNzPy2uGDgLLCIb3AgvUihn1ChbVCNrLzc4','ntiWntzdtxL5Eeu','DhvYBI5ZDgfYDa','qu5usfjpueLdx0rfrKfvtfrFu09otKvux01prevm','mtq1mZKZnwjMC0jHqG','l3jLDMLLDW','qu5usfjpueLdx0rfrKfvtfrFsefjs1vFtu9eruW','nZyZnZm4ofjhDu1nEa','y29KzxHbDMfPBgfIBgu','Bg93','qu5usfjpueLdx01prevm','y29TCgfJDa','qu5usfjpueLdx0rfrKfvtfrFt1bvu19nt0rfta','q2XHDwrLie9WDxm','CNvUBMvY','yxbPlMfUDgHYB3bPyY5JB20','Bw9KzwW','l3bSyw4','vxnLienSyxvKzsbdB2rLigrLzMf1BhqGy29UzMLYBwf0Aw9UCY4','zxzLBNrZlMXPDMu','AgLZDg9YEs5YzwfK','l2nVBxbHy3q','v29YA3nWywnLihDYAxrL','ywnJzxnZ','rNvSBcbHy2nLC3m','uLvotKvsx1voqvzbsuXbqKXf','qu5usfjpueLdx0jbu0vFvvjm','mZyWoty2ouHYvuvXsG','Bw9KzwXZ','mti0nZu3mNz4B2P4rG','BgvUz3rO','EgHPz2G','C3vWCg9YDgvKrwzMB3j0CW','CMvHzc1VBMX5','zMLUzeLUzgv4','tufsx1jvtLrjtuu','Ag9ZDg5HBwu','DhvYBI5XDwv1zq','C29UBMv0','y29KzxG','qwXSB3CGzNvSBcbHy2nLC3mGD2L0Ag91DcbPBMrPDMLKDwfSignVBMzPCM1HDgLVBNmU','uNvUigLUifbSyw4Gtw9Kzsb3AxrOB3v0igv4zwn1DgLUzYb0B29SCY4','q2XHDwrLifnVBM5LDa','qxv0B21HDgLJywXSEsbHy2nLChqGzwrPDhmGAw4GDgHLign1CNjLBNqGv29YA3nWywnLlG','t1bftKnprevFu0vsvKvs','Dg9mB3DLCKnHC2u','ywnJzxb0lwvKAxrZ','C29Tzq','zMLUza','q2XHDwrLieHHAwT1','qxnRigjLzM9Yzsb0B29SCYb3AxrOihnPzguGzwzMzwn0CY4GvgHPCYbPCYbUB3qGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','t24TCMvXDwvZDa','B3b1CW','su1nrurjqvrfx0fdveLptG','qxnRihDOzw4GywrKAxrPB25HBcbWzxjTAxnZAw9UigLZihjLCxvPCMvKlG','Aw5JBhvKzxm','Bwf4','DhjPBq','rw50zxiGCgvYC2LZDgvUDcbnAxnZAw9Uig1VzguU','ndu4mtK0mLbezfrdyq','qNLWyxnZihbLCM1PC3nPB25Z','vxnLie9Wzw5dB2rLigfUzcbxB3jRC3bHy2uGCgvYBwLZC2LVBIbJB25MAwD1CMf0Aw9UlG','qwXSB3CGD3jPDgvZigLUihrOzsbJDxjYzw50ifDVCMTZCgfJzs4','zw52AxjVBM1LBNq','l21PC3nPB24','q29TCgfJDcb0AguGy3vYCMvUDcbZzxnZAw9UignVBNrLEhqU','q09ervHFqvbqx1nfuLzfuG','u2TPCcbbz2vUDcbHChbYB3zHBhmUieHVC3qGDMfSAwrHDgLVBIbZDgLSBcbHChbSAwvZigfUzcbUBYbbz2vUDcbZyw5KyM94igLZihbYB3zPzgvKlG','twLZC2LVBG','BwfW','AgLNAa','zNvSBc1Hy2nLC3m','y2XHDwrLq29Kzuf2ywLSywjSzq','ugXHBIbnB2rL','zMXHDe1HCa','B24TCMvXDwvZDa','D29YA3nWywnLlxDYAxrL','B3bLBMnVzgu','ntu3mZiWvfn0rvjn','zgvMyxvSDa','qNLWyxnZihbLCM1PC3nPB24Gy29UzMLYBwf0Aw9UCY4','uMvHzc1VBMX5','qwnJzxb0igvKAxrZ','DhvYBI5PBNrLCNj1Chq','yxv0BW','vg9Nz2XLignVBgXHyM9YyxrPDMuGugXHBIbnB2rLlG','zMfZDa','CMv2Awv3','uMv2Awv3ihrOzsbZzwXLy3rLzcb3B3jRC3bHy2uGy2HHBMDLCYb3AxrOB3v0ig1VzgLMEwLUzYbMAwXLCY4','yNLWyxnZ','BwvKAxvT','ve9hr0Xf','zMLSDgvY','AgfPA3u','nhDWwwvxwq','rgvMyxvSDa','BwfYlwfNzw50','zwzMB3j0','uMvZDhjPy3qGq29KzxGGDg8GysbYzwfKlw9UBhKGC2fUzgjVEc4','CgXHBG','qxv0BYbHChbYB3zL','ntmXmLfPtgTpAa','ywnJzxnZt3b0Aw9UCW','y29TBwfUzhm','l2zHC3q','qxv0B21HDgLJywXSEsbHBgXVDYbYzxf1zxn0zwqGDg9VBcbWzxjTAxnZAw9UCY4','q0Xbvurfx0fhru5ux1nesW','BwLZC2LVBG'];_0x371d=function(){return _0x99e32f;};return _0x371d();}export function claudeDefaultModel(_0x54d7d7=process.env){const _0x194060=_0x44ec60,_0x400b56=configuredClaudeModel(_0x194060(0xe7),_0x54d7d7);if(_0x400b56!==undefined)return _0x400b56;if(usesThirdPartyEndpoint(_0x54d7d7))return configuredClaudeModel(_0x194060(0xf5),_0x54d7d7)??configuredClaudeModel(_0x194060(0xb0),_0x54d7d7)??_0x194060(0xe7);return _0x194060(0xe7);}function claudeProfile(_0x3733c8){const _0x28c5b0=_0x44ec60,_0x4a00ca=definitions[_0x28c5b0(0xc0)],_0x3be283=usesThirdPartyEndpoint(_0x3733c8),_0x5c2692=_0x4a00ca[_0x28c5b0(0xdd)][_0x28c5b0(0x10b)](_0x2045b5=>{const _0x14c854=configuredClaudeModel(_0x2045b5['id'],_0x3733c8);if(_0x14c854!==undefined)return[{..._0x2045b5,'id':_0x14c854,'label':_0x14c854}];return _0x3be283?[]:[_0x2045b5];});return{..._0x4a00ca,'models':_0x5c2692[_0x28c5b0(0xaf)]((_0xdf3001,_0x5a5f81)=>_0x5c2692[_0x28c5b0(0xe3)](_0x3c1227=>_0x3c1227['id']===_0xdf3001['id'])===_0x5a5f81)};}function usesThirdPartyEndpoint(_0x3b6a50){const _0x1f514b=_0x44ec60,_0x687b76=_0x3b6a50[_0x1f514b(0xdb)]?.[_0x1f514b(0xfa)]();if(_0x687b76===undefined||_0x687b76[_0x1f514b(0xdf)]===-0x1bb+0x1cde+-0x1*0x1b23)return![];try{return new URL(_0x687b76)[_0x1f514b(0xe5)][_0x1f514b(0xee)]()!==OFFICIAL_ANTHROPIC_HOST;}catch{return!![];}}function configuredClaudeModel(_0x3d8e48,_0x398f6b){const _0x254a58=_0x44ec60,_0x2af3f5=CLAUDE_MODEL_ENVIRONMENT[_0x3d8e48];return validModelName(_0x2af3f5===undefined?undefined:_0x398f6b[_0x2af3f5])??(_0x3d8e48===_0x254a58(0xe7)?validModelName(_0x398f6b[_0x254a58(0xcb)]):undefined);}function validModelName(_0x2e51ef){const _0x5bc50c=_0x44ec60,_0x5b4f58=_0x2e51ef?.[_0x5bc50c(0xfa)]();return _0x5b4f58!==undefined&&_0x5b4f58[_0x5bc50c(0xdf)]>-0x14ea+0x242e+-0x2*0x7a2&&_0x5b4f58[_0x5bc50c(0xdf)]<=0x1a1d+0x524+0x1*-0x1ec1?_0x5b4f58:undefined;}function withCapabilities(_0x38a98b,_0x5271cf){const _0x1af785=_0x44ec60,_0x1c00aa={'id':_0x1af785(0xbe),'runner':_0x38a98b[_0x1af785(0xcf)],'label':_0x1af785(0x101),'stateLabel':_0x1af785(0x105),'description':COMMON_COMMAND_DESCRIPTIONS[_0x1af785(0xbe)],'inputHint':_0x1af785(0x101),'source':_0x1af785(0xe4),'interaction':_0x1af785(0xae),'available':_0x5271cf,'reasonCode':_0x5271cf?null:_0x1af785(0xda)};return{..._0x38a98b,'commands':[..._0x38a98b[_0x1af785(0xba)][_0x1af785(0x106)](_0x52578e=>_0x5271cf?_0x52578e:{..._0x52578e,'available':![],'reasonCode':_0x1af785(0xda)}),_0x1c00aa],'capabilities':_0x5271cf?[_0x1af785(0xd5),_0x1af785(0xd4),_0x1af785(0xc3),_0x1af785(0xe6),_0x1af785(0xa6)]:[]};}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x2d6bcd=_0x2c99;(function(_0x408931,_0x2228d2){const _0x38257a=_0x2c99,_0xba2539=_0x408931();while(!![]){try{const _0x5f3868=-parseInt(_0x38257a(0x146))/(0xa68*-0x3+0x3*-0xd03+0x4642)+parseInt(_0x38257a(0x1b3))/(-0x11*0x179+0x11*-0x1c1+0x36dc)+parseInt(_0x38257a(0x124))/(0x2eb+-0x1a72+0x178a)*(parseInt(_0x38257a(0x160))/(0x328*-0x2+-0x431+0xa85))+-parseInt(_0x38257a(0x118))/(0x11ab+0x2*-0x11fa+0x124e)*(parseInt(_0x38257a(0x195))/(-0x7*0x4fd+-0x5f0+0x5d7*0x7))+-parseInt(_0x38257a(0xf9))/(0x1*0xdbc+-0x300+0xab5*-0x1)+-parseInt(_0x38257a(0x1c0))/(-0x3e9*0x3+-0x10be*0x1+0x1*0x1c81)*(-parseInt(_0x38257a(0x1d4))/(0x843+-0x1*-0x1b29+-0x1*0x2363))+-parseInt(_0x38257a(0x1b7))/(-0xa23+-0x10dc+0x1b09)*(-parseInt(_0x38257a(0x1d9))/(-0x1bd9*0x1+0x1f7*0x13+-0x971));if(_0x5f3868===_0x2228d2)break;else _0xba2539['push'](_0xba2539['shift']());}catch(_0xeeae12){_0xba2539['push'](_0xba2539['shift']());}}}(_0x5066,-0x3*-0x19d4a+0x10da7a+-0xb7614));import{randomUUID}from'node:crypto';export class NodeRuntimeState{[_0x2d6bcd(0x1df)];[_0x2d6bcd(0x1a9)];[_0x2d6bcd(0x18d)];[_0x2d6bcd(0x131)];static [_0x2d6bcd(0x13b)]=-0x191a+0x217+0x170d;[_0x2d6bcd(0x117)]=new Map();[_0x2d6bcd(0x141)]=new Map();[_0x2d6bcd(0x101)]=new Map();[_0x2d6bcd(0x133)]=new Map();[_0x2d6bcd(0x10b)]=new Map();[_0x2d6bcd(0x157)]=new Map();[_0x2d6bcd(0x1bf)]=new Map();[_0x2d6bcd(0xf3)]=new Map();[_0x2d6bcd(0xf5)]=new Map();[_0x2d6bcd(0x1dc)]=new Map();[_0x2d6bcd(0x1be)]=new Map();[_0x2d6bcd(0x14c)]=new Map();[_0x2d6bcd(0x1c2)]=new Map();[_0x2d6bcd(0x194)]=new Set();[_0x2d6bcd(0x1d7)]=new Set();constructor(_0x5d072c,_0x2f27f9,_0x2ca833=Date[_0x2d6bcd(0x18d)],_0xa70ea){const _0xb80472=_0x2d6bcd;this[_0xb80472(0x1df)]=_0x5d072c,this[_0xb80472(0x1a9)]=_0x2f27f9,this[_0xb80472(0x18d)]=_0x2ca833,this[_0xb80472(0x131)]=_0xa70ea;}[_0x2d6bcd(0x190)](){const _0x583204=_0x2d6bcd;return this[_0x583204(0x1be)][_0x583204(0x149)];}[_0x2d6bcd(0x134)](_0x218ee8){const _0x160907=_0x2d6bcd,_0x5da1b6=this[_0x160907(0x1be)][_0x160907(0x11f)](_0x218ee8);return _0x5da1b6===undefined?undefined:this[_0x160907(0x141)][_0x160907(0x11f)](_0x5da1b6);}[_0x2d6bcd(0x183)](_0x32eddf){const _0x439565=_0x2d6bcd;return this[_0x439565(0x1be)][_0x439565(0xfe)](_0x32eddf);}[_0x2d6bcd(0x156)](_0x51cf40){const _0xee8160=_0x2d6bcd;if(this[_0xee8160(0x1a9)](_0x51cf40[_0xee8160(0x17e)])===undefined)throw new Error(_0xee8160(0x159));const _0x3d5f97=this[_0xee8160(0x18d)](),_0x1e9fff=_0x51cf40[_0xee8160(0x19a)]??randomUUID();if(this[_0xee8160(0x117)][_0xee8160(0xfe)](_0x1e9fff))throw new Error(_0xee8160(0x1c1));const _0x5c38ad={'id':_0x1e9fff,'nodeId':this[_0xee8160(0x1df)](),'workspaceId':_0x51cf40[_0xee8160(0x17e)],'runner':_0x51cf40[_0xee8160(0x164)],'externalSessionId':_0x51cf40[_0xee8160(0x19a)]??null,'nativeControl':_0x51cf40[_0xee8160(0x19a)]===undefined?_0xee8160(0x1c5):_0x51cf40[_0xee8160(0x1db)]??_0xee8160(0x13d),'channelToken':null,'cwd':_0x51cf40[_0xee8160(0x139)],'model':_0x51cf40[_0xee8160(0x165)]??null,'effort':_0x51cf40[_0xee8160(0x102)]??null,'access':_0x51cf40[_0xee8160(0x1b0)]??null,'customTitle':null,'runnerTitle':_0x51cf40[_0xee8160(0x151)]?.[_0xee8160(0xd6)]()[_0xee8160(0x1de)](-0x240e+0x1499+0x1*0xf75,-0x832*0x1+0x682*-0x2+0x15d6)||null,'pinnedAt':null,'titleSource':_0xee8160(0x1a0),'lastActivityAt':_0x3d5f97,'createdAt':_0x3d5f97};return this[_0xee8160(0x117)][_0xee8160(0x173)](_0x5c38ad['id'],_0x5c38ad),_0x5c38ad;}[_0x2d6bcd(0x123)](_0x1c5343){const _0x513df0=_0x2d6bcd;if(this[_0x513df0(0x1d7)][_0x513df0(0xfe)](_0x1c5343[_0x513df0(0x178)]))throw new Error(_0x513df0(0x1e6));let _0x5689c9=this[_0x513df0(0x117)][_0x513df0(0x11f)](_0x1c5343[_0x513df0(0xd8)]);if(_0x5689c9===undefined){const _0x48d55e=this[_0x513df0(0x18d)]();_0x5689c9={'id':_0x1c5343[_0x513df0(0xd8)],'nodeId':this[_0x513df0(0x1df)](),'workspaceId':_0x1c5343[_0x513df0(0x17e)]??_0x513df0(0x13f)+_0x1c5343[_0x513df0(0x139)],'runner':_0x1c5343[_0x513df0(0x164)],'externalSessionId':_0x1c5343[_0x513df0(0x19a)]??null,'nativeControl':_0x1c5343[_0x513df0(0x19a)]===undefined?_0x513df0(0x1c5):_0x513df0(0x13d),'channelToken':null,'cwd':_0x1c5343[_0x513df0(0x139)],'model':null,'effort':null,'access':null,'customTitle':null,'runnerTitle':null,'pinnedAt':null,'titleSource':_0x513df0(0x1a0),'lastActivityAt':_0x48d55e,'createdAt':_0x48d55e},this[_0x513df0(0x117)][_0x513df0(0x173)](_0x5689c9['id'],_0x5689c9);}const _0x133733=this[_0x513df0(0x13c)](_0x1c5343[_0x513df0(0x178)]);if(_0x133733!==undefined)return _0x133733;const _0x58ed6c=this[_0x513df0(0x18d)](),_0x351546={'id':_0x1c5343[_0x513df0(0x178)],'sessionId':_0x5689c9['id'],'nodeId':this[_0x513df0(0x1df)](),'workspaceId':_0x5689c9[_0x513df0(0x17e)],'runner':_0x5689c9[_0x513df0(0x164)],'status':_0x513df0(0x162),'recoveryState':_0x513df0(0x1bb),'version':0x0,'clientMessageId':_0x1c5343[_0x513df0(0x19c)]??_0x1c5343[_0x513df0(0x178)],'createdAt':_0x58ed6c,'startedAt':_0x58ed6c,'completedAt':null,'updatedAt':_0x58ed6c};return this[_0x513df0(0x141)][_0x513df0(0x173)](_0x351546['id'],_0x351546),this[_0x513df0(0x1be)][_0x513df0(0x173)](_0x351546[_0x513df0(0xd8)],_0x351546['id']),this[_0x513df0(0x1ce)](_0x351546,_0x5689c9),_0x351546;}[_0x2d6bcd(0x128)](_0x28497c){const _0x20ec68=_0x2d6bcd;return this[_0x20ec68(0x117)][_0x20ec68(0x11f)](_0x28497c)??[...this[_0x20ec68(0x117)][_0x20ec68(0x107)]()][_0x20ec68(0x187)](_0x42f025=>_0x42f025[_0x20ec68(0x19a)]===_0x28497c);}[_0x2d6bcd(0x17b)](){const _0x2b2546=_0x2d6bcd;return[...this[_0x2b2546(0x117)][_0x2b2546(0x107)]()][_0x2b2546(0x1e3)]((_0xc19452,_0x38c96e)=>_0x38c96e[_0x2b2546(0x11c)]-_0xc19452[_0x2b2546(0x11c)]);}[_0x2d6bcd(0x11d)](_0x2bbe3c,_0x25b0b6){const _0xcba4d=_0x2d6bcd;return[...this[_0xcba4d(0x117)][_0xcba4d(0x107)]()][_0xcba4d(0x187)](_0x1a02bd=>_0x1a02bd[_0xcba4d(0x164)]===_0x2bbe3c&&_0x1a02bd[_0xcba4d(0x19a)]===_0x25b0b6);}[_0x2d6bcd(0x121)](_0x429128){const _0x2f0f0e=_0x2d6bcd;return this[_0x2f0f0e(0x193)](_0x429128[_0x2f0f0e(0xd8)],{'model':_0x429128[_0x2f0f0e(0x165)],'effort':_0x429128[_0x2f0f0e(0x102)],'access':_0x429128[_0x2f0f0e(0x1b0)]});}[_0x2d6bcd(0xfa)](_0x24aac2,_0x16367f){const _0x1405a0=_0x2d6bcd;this[_0x1405a0(0x193)](_0x24aac2,{'nativeControl':_0x16367f});}[_0x2d6bcd(0x197)](_0x5aaad1,_0x190f6e){const _0x54228c=_0x2d6bcd;if(_0x190f6e[_0x54228c(0x15b)]===0xa4+0x10cb+0x116f*-0x1)throw new Error(_0x54228c(0x10e));this[_0x54228c(0x1aa)](_0x5aaad1,_0x190f6e);}[_0x2d6bcd(0x1aa)](_0x281b21,_0x3aabdf){const _0x2421a7=_0x2d6bcd;if(_0x3aabdf[_0x2421a7(0x15b)]===-0x2011+-0xe70+0x5*0x94d)throw new Error(_0x2421a7(0x10e));const _0x23690c=this[_0x2421a7(0x167)](_0x281b21);if(_0x281b21===_0x3aabdf)return this[_0x2421a7(0x193)](_0x281b21,{'externalSessionId':_0x3aabdf,'nativeControl':_0x2421a7(0x1c5)});const _0x55d16a=this[_0x2421a7(0x117)][_0x2421a7(0x11f)](_0x3aabdf);if(_0x55d16a!==undefined&&_0x55d16a['id']!==_0x23690c['id'])throw new Error(_0x2421a7(0x1c1));const _0x446608={..._0x23690c,'id':_0x3aabdf,'externalSessionId':_0x3aabdf,'nativeControl':_0x2421a7(0x1c5)},_0x59ce29=this[_0x2421a7(0x1ad)](_0x281b21),_0x8a0f69=this[_0x2421a7(0xf5)][_0x2421a7(0x11f)](_0x281b21)??[],_0x4c708f=this[_0x2421a7(0x14c)][_0x2421a7(0x11f)](_0x281b21),_0x367ab3=this[_0x2421a7(0x1c2)][_0x2421a7(0x11f)](_0x281b21),_0x460c37=this[_0x2421a7(0x1be)][_0x2421a7(0x11f)](_0x281b21),_0x207393=this[_0x2421a7(0x194)][_0x2421a7(0xfe)](_0x281b21);this[_0x2421a7(0x117)][_0x2421a7(0x14d)](_0x281b21),this[_0x2421a7(0x117)][_0x2421a7(0x173)](_0x3aabdf,_0x446608);for(const _0x5b5905 of _0x59ce29)this[_0x2421a7(0x141)][_0x2421a7(0x173)](_0x5b5905['id'],{..._0x5b5905,'sessionId':_0x3aabdf});this[_0x2421a7(0xf5)][_0x2421a7(0x14d)](_0x281b21),this[_0x2421a7(0xf5)][_0x2421a7(0x173)](_0x3aabdf,_0x8a0f69[_0x2421a7(0xee)](_0xf18ff0=>({..._0xf18ff0,'sessionId':_0x3aabdf,'items':_0xf18ff0[_0x2421a7(0x181)][_0x2421a7(0xee)](_0x437692=>({..._0x437692,'sessionId':_0x3aabdf}))})));if(_0x4c708f!==undefined){this[_0x2421a7(0x14c)][_0x2421a7(0x14d)](_0x281b21),this[_0x2421a7(0x14c)][_0x2421a7(0x173)](_0x3aabdf,_0x4c708f);for(const _0x262a46 of _0x4c708f){const _0x10aba7=this[_0x2421a7(0x10b)][_0x2421a7(0x11f)](_0x262a46);if(_0x10aba7!==undefined)this[_0x2421a7(0x10b)][_0x2421a7(0x173)](_0x262a46,{..._0x10aba7,'sessionId':_0x3aabdf});}}_0x367ab3!==undefined&&(this[_0x2421a7(0x1c2)][_0x2421a7(0x14d)](_0x281b21),this[_0x2421a7(0x1c2)][_0x2421a7(0x173)](_0x3aabdf,_0x367ab3));_0x460c37!==undefined&&(this[_0x2421a7(0x1be)][_0x2421a7(0x14d)](_0x281b21),this[_0x2421a7(0x1be)][_0x2421a7(0x173)](_0x3aabdf,_0x460c37));_0x207393&&(this[_0x2421a7(0x194)][_0x2421a7(0x14d)](_0x281b21),this[_0x2421a7(0x194)][_0x2421a7(0xe6)](_0x3aabdf));for(const [_0x156204,_0x4d4f72]of[...this[_0x2421a7(0x101)]]){if(!_0x156204[_0x2421a7(0x1a6)](_0x281b21+'\x00'))continue;this[_0x2421a7(0x101)][_0x2421a7(0x14d)](_0x156204),this[_0x2421a7(0x101)][_0x2421a7(0x173)](''+_0x3aabdf+_0x156204[_0x2421a7(0x1de)](_0x281b21[_0x2421a7(0x15b)]),_0x4d4f72);}for(const [_0x51b987,_0x36c1c2]of this[_0x2421a7(0x1bf)])if(_0x36c1c2[_0x2421a7(0xd8)]===_0x281b21)this[_0x2421a7(0x1bf)][_0x2421a7(0x173)](_0x51b987,{..._0x36c1c2,'sessionId':_0x3aabdf});for(const _0x2fe097 of _0x59ce29){const _0xa79fd7=this[_0x2421a7(0x14a)](_0x2fe097['id']);this[_0x2421a7(0x1ce)](_0xa79fd7,_0x446608);}return _0x446608;}[_0x2d6bcd(0x104)](_0x4cf39c,_0x170161){const _0x369551=_0x2d6bcd;if(_0x170161[_0x369551(0x15b)]<0xa*-0x1f3+0x26c9+0x1*-0x133b)throw new Error(_0x369551(0xdd));this[_0x369551(0x193)](_0x4cf39c,{'channelToken':_0x170161});}[_0x2d6bcd(0xe9)](_0x164b54){const _0x3b959b=_0x2d6bcd,_0x348505=this[_0x3b959b(0x167)](_0x164b54[_0x3b959b(0xd8)]),_0x39d8f1=_0x164b54[_0x3b959b(0x1b9)]===undefined?_0x348505[_0x3b959b(0x1b9)]:_0x164b54[_0x3b959b(0x1b9)]?.[_0x3b959b(0xd6)]()||null;if(_0x39d8f1!==null&&_0x39d8f1[_0x3b959b(0x15b)]>0x226b+-0x184f+-0x97c)throw new Error(_0x3b959b(0x15c));return this[_0x3b959b(0x193)](_0x348505['id'],{'customTitle':_0x39d8f1,'pinnedAt':_0x164b54[_0x3b959b(0xfb)]===undefined?_0x348505[_0x3b959b(0x103)]:_0x164b54[_0x3b959b(0xfb)]?this[_0x3b959b(0x18d)]():null,'titleSource':_0x39d8f1===null?_0x3b959b(0x1a0):_0x3b959b(0x11a)});}[_0x2d6bcd(0xde)](_0x5cc7a9,_0x3cc23f){const _0x2de359=_0x2d6bcd,_0x403937=this[_0x2de359(0x167)](_0x5cc7a9),_0x5ce0da=_0x3cc23f[_0x2de359(0xd6)]()[_0x2de359(0x15a)](/\s+/g,'\x20')[_0x2de359(0x1de)](-0x9fd+0x1da2+0x2f*-0x6b,-0x216*-0x1+-0x11*-0x215+-0x24db);if(_0x5ce0da[_0x2de359(0x15b)]===0x244c+-0x21a4+0x11*-0x28||_0x403937[_0x2de359(0x1b9)]!==null||_0x403937[_0x2de359(0x1c4)]!==null)return _0x403937;return this[_0x2de359(0x193)](_0x5cc7a9,{'runnerTitle':_0x5ce0da,'titleSource':_0x2de359(0x1a0)});}[_0x2d6bcd(0x17f)](_0x3314ca,_0x5b98d4){const _0x37ca12=_0x2d6bcd,_0x32e6f0=this[_0x37ca12(0x167)](_0x3314ca),_0x2510e0=_0x5b98d4[_0x37ca12(0xd6)]()[_0x37ca12(0x15a)](/\s+/g,'\x20')[_0x37ca12(0x1de)](-0x952+0x9af+-0x5d*0x1,0x2*-0xadc+0x265d*-0x1+0x3cb5);if(_0x2510e0[_0x37ca12(0x15b)]===-0x17*-0x190+0xa1a*0x1+-0xa6*0x47||_0x32e6f0[_0x37ca12(0x1b9)]!==null||_0x32e6f0[_0x37ca12(0x1c4)]===_0x2510e0)return _0x32e6f0;return this[_0x37ca12(0x193)](_0x3314ca,{'runnerTitle':_0x2510e0,'titleSource':_0x37ca12(0x126)});}[_0x2d6bcd(0x112)](_0x14f5cc){const _0x2e418c=_0x2d6bcd,_0x250c57=_0x14f5cc[_0x2e418c(0xd8)]+'\x00'+_0x14f5cc[_0x2e418c(0x19c)],_0x3b800f=this[_0x2e418c(0x101)][_0x2e418c(0x11f)](_0x250c57);if(_0x3b800f!==undefined){if(_0x3b800f[_0x2e418c(0x143)]!==_0x2e418c(0x19b))throw new Error(_0x2e418c(0x12b));return{'run':this[_0x2e418c(0x14a)](_0x3b800f['id']),'created':![]};}const _0x32e970=this[_0x2e418c(0x167)](_0x14f5cc[_0x2e418c(0xd8)]);if(this[_0x2e418c(0x134)](_0x32e970['id'])!==undefined)throw new Error(_0x2e418c(0x16e));const _0x254152=this[_0x2e418c(0x18d)](),_0x1f30e4={'id':_0x14f5cc[_0x2e418c(0x178)]??randomUUID(),'sessionId':_0x32e970['id'],'nodeId':this[_0x2e418c(0x1df)](),'workspaceId':_0x32e970[_0x2e418c(0x17e)],'runner':_0x32e970[_0x2e418c(0x164)],'status':_0x2e418c(0x162),'recoveryState':_0x2e418c(0x1bb),'version':0x0,'clientMessageId':_0x14f5cc[_0x2e418c(0x19c)],..._0x14f5cc[_0x2e418c(0x163)]===undefined?{}:{'initiatedByUserId':_0x14f5cc[_0x2e418c(0x163)]},'createdAt':_0x254152,'startedAt':_0x254152,'completedAt':null,'updatedAt':_0x254152};let _0x11a0b9=-0x628+0x1*-0x2457+0x2a7f;const _0x364439=(_0x14f5cc[_0x2e418c(0x142)]??[])[_0x2e418c(0xee)](({name:_0x41ca3d,mime:_0x50c269,dataBase64:_0x3ccb9f})=>{const _0x1da636=_0x2e418c,_0x58f5c3={'name':_0x41ca3d,'mime':_0x50c269,'byteSize':Buffer[_0x1da636(0x12a)](_0x3ccb9f,_0x1da636(0x108)),'runId':_0x1f30e4['id']};if(!_0x50c269[_0x1da636(0x1a6)](_0x1da636(0x140)))return _0x58f5c3;return{..._0x58f5c3,'imageIndex':_0x11a0b9++};}),_0x5220ec={'id':randomUUID(),'sessionId':_0x32e970['id'],'turnId':'','runId':_0x1f30e4['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x2e418c(0x1d5),'status':_0x2e418c(0x199),'payload':{'clientMessageId':_0x14f5cc[_0x2e418c(0x19c)],'text':_0x14f5cc[_0x2e418c(0x113)],'contexts':[],'attachments':_0x364439,'delivery':_0x2e418c(0x171)},'startedAt':_0x254152,'completedAt':_0x254152},_0xa68649={'id':randomUUID(),'sessionId':_0x32e970['id'],'runId':_0x1f30e4['id'],'userItemId':_0x5220ec['id'],'status':_0x2e418c(0x116),'model':_0x32e970[_0x2e418c(0x165)],'effort':_0x32e970[_0x2e418c(0x102)],'access':_0x32e970[_0x2e418c(0x1b0)],'items':[_0x5220ec],'startedAt':_0x254152,'completedAt':null},_0x4ddd8c={..._0xa68649,'items':[{..._0x5220ec,'turnId':_0xa68649['id']}]};return this[_0x2e418c(0x141)][_0x2e418c(0x173)](_0x1f30e4['id'],_0x1f30e4),this[_0x2e418c(0x101)][_0x2e418c(0x173)](_0x250c57,{'kind':_0x2e418c(0x19b),'id':_0x1f30e4['id']}),this[_0x2e418c(0x1be)][_0x2e418c(0x173)](_0x32e970['id'],_0x1f30e4['id']),this[_0x2e418c(0xf5)][_0x2e418c(0x173)](_0x32e970['id'],[...this[_0x2e418c(0xf5)][_0x2e418c(0x11f)](_0x32e970['id'])??[],_0x4ddd8c]),this[_0x2e418c(0x193)](_0x32e970['id'],{'lastActivityAt':_0x254152}),this[_0x2e418c(0x1ce)](_0x1f30e4,this[_0x2e418c(0x167)](_0x32e970['id'])),{'run':_0x1f30e4,'created':!![]};}[_0x2d6bcd(0x111)](_0x108388){const _0xb48ffc=_0x2d6bcd,_0x205ba8=_0x108388[_0xb48ffc(0xd8)]+'\x00'+_0x108388[_0xb48ffc(0x19c)],_0x3b100c=this[_0xb48ffc(0x101)][_0xb48ffc(0x11f)](_0x205ba8);if(_0x3b100c!==undefined){if(_0x3b100c[_0xb48ffc(0x143)]!==_0xb48ffc(0x179))throw new Error(_0xb48ffc(0x188));return{'item':this[_0xb48ffc(0x1ca)](_0x3b100c['id']),'created':![]};}const _0x13bd57=this[_0xb48ffc(0x167)](_0x108388[_0xb48ffc(0xd8)]),_0x4e2976=this[_0xb48ffc(0x134)](_0x13bd57['id']);if(_0x4e2976!==undefined&&_0x4e2976[_0xb48ffc(0x163)]!==undefined&&_0x108388[_0xb48ffc(0x163)]!==_0x4e2976[_0xb48ffc(0x163)])throw new Error(_0xb48ffc(0x152));const _0x514543=this[_0xb48ffc(0x18d)](),_0x187c53={'id':_0x108388[_0xb48ffc(0x1a5)]??randomUUID(),'sessionId':_0x13bd57['id'],'workspaceId':_0x13bd57[_0xb48ffc(0x17e)],'runner':_0x13bd57[_0xb48ffc(0x164)],'clientMessageId':_0x108388[_0xb48ffc(0x19c)],'content':_0x108388[_0xb48ffc(0x113)],'attachments':_0x108388[_0xb48ffc(0x142)]??[],..._0x108388[_0xb48ffc(0x163)]===undefined?{}:{'initiatedByUserId':_0x108388[_0xb48ffc(0x163)]},'createdAt':_0x514543};return this[_0xb48ffc(0x10b)][_0xb48ffc(0x173)](_0x187c53['id'],_0x187c53),this[_0xb48ffc(0x101)][_0xb48ffc(0x173)](_0x205ba8,{'kind':_0xb48ffc(0x179),'id':_0x187c53['id']}),this[_0xb48ffc(0x14c)][_0xb48ffc(0x173)](_0x13bd57['id'],[...this[_0xb48ffc(0x14c)][_0xb48ffc(0x11f)](_0x13bd57['id'])??[],_0x187c53['id']]),this[_0xb48ffc(0x1b4)](_0x13bd57['id']),{'item':_0x187c53,'created':!![]};}[_0x2d6bcd(0x129)](_0x3d9018){const _0x7c0cee=_0x2d6bcd;return{'version':this[_0x7c0cee(0x1c2)][_0x7c0cee(0x11f)](_0x3d9018)??-0x16*0xcc+0x1*-0x1de9+0x2f71,'paused':this[_0x7c0cee(0x194)][_0x7c0cee(0xfe)](_0x3d9018),'itemIds':this[_0x7c0cee(0x14c)][_0x7c0cee(0x11f)](_0x3d9018)??[]};}[_0x2d6bcd(0x10d)](_0x1ebf0e){const _0x16e88d=_0x2d6bcd;return this[_0x16e88d(0x10b)][_0x16e88d(0x11f)](_0x1ebf0e);}[_0x2d6bcd(0x1a1)](_0x20f53d){const _0x5a9211=_0x2d6bcd;if(this[_0x5a9211(0x194)][_0x5a9211(0xfe)](_0x20f53d))return undefined;const _0x433fe3=this[_0x5a9211(0x134)](_0x20f53d);if(_0x433fe3===undefined)return undefined;const _0x1af10d=this[_0x5a9211(0x14c)][_0x5a9211(0x11f)](_0x20f53d)??[],_0x372b8c=_0x1af10d[-0x2089+0x1e0e+-0x27b*-0x1];if(_0x372b8c===undefined)return undefined;this[_0x5a9211(0x14c)][_0x5a9211(0x173)](_0x20f53d,_0x1af10d[_0x5a9211(0x1de)](0x3*0x405+0x1d50+-0x295e)),this[_0x5a9211(0x1b4)](_0x20f53d);const _0x16a2c2=this[_0x5a9211(0x1ca)](_0x372b8c);this[_0x5a9211(0x10b)][_0x5a9211(0x14d)](_0x372b8c),this[_0x5a9211(0x101)][_0x5a9211(0x173)](_0x16a2c2[_0x5a9211(0xd8)]+'\x00'+_0x16a2c2[_0x5a9211(0x19c)],{'kind':_0x5a9211(0x19b),'id':_0x433fe3['id']});const _0x18789a=this[_0x5a9211(0x12d)](_0x433fe3,_0x16a2c2[_0x5a9211(0x19c)],_0x16a2c2[_0x5a9211(0x113)],_0x16a2c2[_0x5a9211(0x142)]);return{'item':_0x16a2c2,'turn':_0x18789a};}[_0x2d6bcd(0x1a4)](_0x4d7bf7){const _0x33dcba=_0x2d6bcd,_0xaab49e=this[_0x33dcba(0x1ca)](_0x4d7bf7);if(this[_0x33dcba(0x134)](_0xaab49e[_0x33dcba(0xd8)])!==undefined)throw new Error(_0x33dcba(0x16e));const _0x35f06b=this[_0x33dcba(0x14c)][_0x33dcba(0x11f)](_0xaab49e[_0x33dcba(0xd8)])??[];if(_0x35f06b[-0x2660+-0x30*0x83+0x3ef0]!==_0x4d7bf7)throw new Error(_0x33dcba(0xf4));this[_0x33dcba(0x14c)][_0x33dcba(0x173)](_0xaab49e[_0x33dcba(0xd8)],_0x35f06b[_0x33dcba(0x1de)](-0x2129+-0x3b3*0x3+0x3*0xec1)),this[_0x33dcba(0x10b)][_0x33dcba(0x14d)](_0x4d7bf7),this[_0x33dcba(0x101)][_0x33dcba(0x14d)](_0xaab49e[_0x33dcba(0xd8)]+'\x00'+_0xaab49e[_0x33dcba(0x19c)]),this[_0x33dcba(0x1b4)](_0xaab49e[_0x33dcba(0xd8)]);const _0x584df2=this[_0x33dcba(0x112)]({'sessionId':_0xaab49e[_0x33dcba(0xd8)],'clientMessageId':_0xaab49e[_0x33dcba(0x19c)],'content':_0xaab49e[_0x33dcba(0x113)],..._0xaab49e[_0x33dcba(0x142)][_0x33dcba(0x15b)]===-0x211a+0x1a8a+-0xf0*-0x7?{}:{'attachments':_0xaab49e[_0x33dcba(0x142)]},..._0xaab49e[_0x33dcba(0x163)]===undefined?{}:{'initiatedByUserId':_0xaab49e[_0x33dcba(0x163)]}}),_0x486fbf=this[_0x33dcba(0x1e0)](_0x584df2[_0x33dcba(0x19b)]['id']);if(_0x486fbf===undefined)throw new Error(_0x33dcba(0x135));return{'run':_0x584df2[_0x33dcba(0x19b)],'turn':_0x486fbf};}[_0x2d6bcd(0x10c)](_0x28552e){const _0x55c665=_0x2d6bcd;this[_0x55c665(0x194)][_0x55c665(0xe6)](_0x28552e),this[_0x55c665(0x1b4)](_0x28552e);}[_0x2d6bcd(0x175)](_0x5c1404){const _0x58e879=_0x2d6bcd;if(!this[_0x58e879(0x194)][_0x58e879(0x14d)](_0x5c1404))return;this[_0x58e879(0x1b4)](_0x5c1404);}[_0x2d6bcd(0x147)](_0x22158d,_0x320b37,_0xf271fb){const _0x40e48c=_0x2d6bcd,_0x2edc19=this[_0x40e48c(0x14c)][_0x40e48c(0x11f)](_0x22158d)??[];if(this[_0x40e48c(0x129)](_0x22158d)[_0x40e48c(0x1ae)]!==_0x320b37||_0x2edc19[_0x40e48c(0x15b)]!==_0xf271fb[_0x40e48c(0x15b)]||new Set(_0x2edc19)[_0x40e48c(0x149)]!==_0x2edc19[_0x40e48c(0x15b)]||_0x2edc19[_0x40e48c(0x1a7)](_0x16d04e=>!_0xf271fb[_0x40e48c(0x1e2)](_0x16d04e)))throw new Error(_0x40e48c(0xda));if(_0xf271fb[_0x40e48c(0x1a7)](_0x10ed54=>this[_0x40e48c(0x10b)][_0x40e48c(0x11f)](_0x10ed54)?.[_0x40e48c(0xd8)]!==_0x22158d))throw new Error(_0x40e48c(0xf4));this[_0x40e48c(0x14c)][_0x40e48c(0x173)](_0x22158d,[..._0xf271fb]),this[_0x40e48c(0x1b4)](_0x22158d);}[_0x2d6bcd(0x18e)](_0x5ae9ca){const _0x29f14a=_0x2d6bcd,_0x55b184=this[_0x29f14a(0x1ca)](_0x5ae9ca),_0x1df47a=this[_0x29f14a(0x14c)][_0x29f14a(0x11f)](_0x55b184[_0x29f14a(0xd8)])??[];if(!_0x1df47a[_0x29f14a(0x1e2)](_0x5ae9ca))throw new Error(_0x29f14a(0xf4));return this[_0x29f14a(0x14c)][_0x29f14a(0x173)](_0x55b184[_0x29f14a(0xd8)],[_0x5ae9ca,..._0x1df47a[_0x29f14a(0x1ba)](_0xd97eff=>_0xd97eff!==_0x5ae9ca)]),this[_0x29f14a(0x1b4)](_0x55b184[_0x29f14a(0xd8)]),_0x55b184;}[_0x2d6bcd(0x1cd)](_0xec01a0,_0x2c45dd){const _0x39ebd7=_0x2d6bcd,_0x2716ec=this[_0x39ebd7(0x1ca)](_0xec01a0);if(!(this[_0x39ebd7(0x14c)][_0x39ebd7(0x11f)](_0x2716ec[_0x39ebd7(0xd8)])??[])[_0x39ebd7(0x1e2)](_0xec01a0))throw new Error(_0x39ebd7(0xf4));const _0x291f00={..._0x2716ec,'content':_0x2c45dd};return this[_0x39ebd7(0x10b)][_0x39ebd7(0x173)](_0xec01a0,_0x291f00),this[_0x39ebd7(0x1b4)](_0x2716ec[_0x39ebd7(0xd8)]),_0x291f00;}[_0x2d6bcd(0xea)](_0x2f183d,_0x1fb796){const _0x3ffd96=_0x2d6bcd,_0x4cc2b2=this[_0x3ffd96(0x1ca)](_0x2f183d),_0x5e4e23={..._0x4cc2b2,'attachments':_0x1fb796};return this[_0x3ffd96(0x10b)][_0x3ffd96(0x173)](_0x2f183d,_0x5e4e23),_0x5e4e23;}[_0x2d6bcd(0x19f)](_0x15ec12){const _0x23f658=_0x2d6bcd,_0x564a41=this[_0x23f658(0x1ca)](_0x15ec12),_0x147f25=this[_0x23f658(0x14c)][_0x23f658(0x11f)](_0x564a41[_0x23f658(0xd8)])??[];if(!_0x147f25[_0x23f658(0x1e2)](_0x15ec12))throw new Error(_0x23f658(0xf4));this[_0x23f658(0x14c)][_0x23f658(0x173)](_0x564a41[_0x23f658(0xd8)],_0x147f25[_0x23f658(0x1ba)](_0x2274ca=>_0x2274ca!==_0x15ec12)),this[_0x23f658(0x1b4)](_0x564a41[_0x23f658(0xd8)]),this[_0x23f658(0x10b)][_0x23f658(0x14d)](_0x15ec12);for(const [_0x5cc90b,_0x159ded]of this[_0x23f658(0x101)])if(_0x159ded[_0x23f658(0x143)]===_0x23f658(0x179)&&_0x159ded['id']===_0x15ec12)this[_0x23f658(0x101)][_0x23f658(0x14d)](_0x5cc90b);}[_0x2d6bcd(0x176)](_0x417a8f){const _0x44557f=_0x2d6bcd,_0x36c633=this[_0x44557f(0x14a)](_0x417a8f),_0x5b556b=(this[_0x44557f(0xf5)][_0x44557f(0x11f)](_0x36c633[_0x44557f(0xd8)])??[])[_0x44557f(0x1b1)](_0x1f3004=>_0x1f3004[_0x44557f(0x178)]===_0x417a8f),_0x56b002=_0x5b556b?.[_0x44557f(0x181)][_0x44557f(0x187)](_0x5e0136=>_0x5e0136['id']===_0x5b556b[_0x44557f(0x14e)]);return isRecord(_0x56b002?.[_0x44557f(0x13a)])&&typeof _0x56b002[_0x44557f(0x13a)][_0x44557f(0x184)]===_0x44557f(0x17c)?_0x56b002[_0x44557f(0x13a)][_0x44557f(0x184)]:'';}[_0x2d6bcd(0xff)](_0x1cba4c,_0x4a0470){const _0x2506a8=_0x2d6bcd;let _0x3601f6=-0xac0+0x167b+0xd*-0xe7;const _0x45911a=_0x4a0470[_0x2506a8(0xee)](({name:_0x54a2f4,mime:_0x4ddecd,dataBase64:_0x32f25b})=>{const _0x30dadf=_0x2506a8,_0x15529c={'name':_0x54a2f4,'mime':_0x4ddecd,'byteSize':Buffer[_0x30dadf(0x12a)](_0x32f25b,_0x30dadf(0x108)),'runId':_0x1cba4c};if(!_0x4ddecd[_0x30dadf(0x1a6)](_0x30dadf(0x140)))return _0x15529c;return{..._0x15529c,'imageIndex':_0x3601f6++};});this[_0x2506a8(0xf1)](_0x1cba4c,_0x5c2f47=>({..._0x5c2f47,'items':_0x5c2f47[_0x2506a8(0x181)][_0x2506a8(0xee)](_0x92df4b=>_0x92df4b['id']===_0x5c2f47[_0x2506a8(0x14e)]&&isRecord(_0x92df4b[_0x2506a8(0x13a)])?{..._0x92df4b,'payload':{..._0x92df4b[_0x2506a8(0x13a)],'attachments':_0x45911a}}:_0x92df4b)}));}[_0x2d6bcd(0x13c)](_0x201d2a){const _0x6ba4bc=_0x2d6bcd,_0x338ecc=this[_0x6ba4bc(0x157)][_0x6ba4bc(0x11f)](_0x201d2a)?.[_0x6ba4bc(0x178)]??_0x201d2a;return this[_0x6ba4bc(0x141)][_0x6ba4bc(0x11f)](_0x338ecc);}[_0x2d6bcd(0x114)](_0x483316,_0xd2bc4e){const _0x2ba6d1=_0x2d6bcd,_0x353b13=this[_0x2ba6d1(0x101)][_0x2ba6d1(0x11f)](_0x483316+'\x00'+_0xd2bc4e);return _0x353b13?.[_0x2ba6d1(0x143)]===_0x2ba6d1(0x19b)?this[_0x2ba6d1(0x141)][_0x2ba6d1(0x11f)](_0x353b13['id']):undefined;}[_0x2d6bcd(0x12c)](_0x4d4580,_0x1f75e7){const _0x2be715=_0x2d6bcd,_0x1da6ab=this[_0x2be715(0x101)][_0x2be715(0x11f)](_0x4d4580+'\x00'+_0x1f75e7);if(_0x1da6ab===undefined)return undefined;if(_0x1da6ab[_0x2be715(0x143)]===_0x2be715(0x19b))return{'kind':_0x2be715(0x19b),'run':this[_0x2be715(0x14a)](_0x1da6ab['id'])};const _0x44d324=this[_0x2be715(0x1ca)](_0x1da6ab['id']),_0x486c95=this[_0x2be715(0x134)](_0x4d4580);if(_0x486c95===undefined)throw new Error(_0x2be715(0xe0));return{'kind':_0x2be715(0x179),'item':_0x44d324,'run':_0x486c95};}[_0x2d6bcd(0x136)](_0x5c47ad,_0x959780){const _0x34be70=_0x2d6bcd;return this[_0x34be70(0x133)][_0x34be70(0x11f)](_0x5c47ad+'\x00'+_0x959780);}[_0x2d6bcd(0x158)](_0x2ab606,_0x486697){const _0x5d7322=_0x2d6bcd,_0x4c503b=[...this[_0x5d7322(0x101)]][_0x5d7322(0x187)](([,_0x18f5c0])=>_0x18f5c0['id']===_0x2ab606);if(_0x4c503b===undefined)return;this[_0x5d7322(0x133)][_0x5d7322(0x173)](_0x4c503b[0x12*0x125+-0xf39*0x2+0x9d8],_0x486697);if(this[_0x5d7322(0x133)][_0x5d7322(0x149)]>-0x19e8+-0x133*-0x1f+-0x1*0x745)this[_0x5d7322(0x133)][_0x5d7322(0x14d)](this[_0x5d7322(0x133)][_0x5d7322(0x18c)]()[_0x5d7322(0x105)]()[_0x5d7322(0x100)]);}[_0x2d6bcd(0x1ad)](_0x17545a){const _0x36c916=_0x2d6bcd;return[...this[_0x36c916(0x141)][_0x36c916(0x107)]()][_0x36c916(0x1ba)](_0x520453=>_0x520453[_0x36c916(0xd8)]===_0x17545a)[_0x36c916(0x1e3)]((_0x5f4ba7,_0x23e31b)=>_0x23e31b[_0x36c916(0x1ab)]-_0x5f4ba7[_0x36c916(0x1ab)]);}[_0x2d6bcd(0xed)](_0x4977c8,_0xfee3bb){const _0x4a9923=_0x2d6bcd,_0x43d054=this[_0x4a9923(0x157)][_0x4a9923(0x11f)](_0x4977c8)?.[_0x4a9923(0x178)]??_0x4977c8,_0x4f9935=this[_0x4a9923(0x14a)](_0x43d054);if(!transitionAllowed(_0x4f9935[_0x4a9923(0xdb)],_0xfee3bb))throw new Error(_0x4a9923(0x1e8));const _0x45541d=this[_0x4a9923(0x18d)](),_0xbbadfe={..._0x4f9935,'status':_0xfee3bb,'version':_0x4f9935[_0x4a9923(0x1ae)]+(-0x239+-0x1f8c+0x21c6),'completedAt':terminal(_0xfee3bb)?_0x45541d:_0x4f9935[_0x4a9923(0xd3)],'updatedAt':_0x45541d};this[_0x4a9923(0x141)][_0x4a9923(0x173)](_0x43d054,_0xbbadfe),this[_0x4a9923(0x1ce)](_0xbbadfe,this[_0x4a9923(0x167)](_0xbbadfe[_0x4a9923(0xd8)]));if(terminal(_0xfee3bb)&&this[_0x4a9923(0x1be)][_0x4a9923(0x11f)](_0xbbadfe[_0x4a9923(0xd8)])===_0xbbadfe['id'])this[_0x4a9923(0x1be)][_0x4a9923(0x14d)](_0xbbadfe[_0x4a9923(0xd8)]);return this[_0x4a9923(0xf1)](_0xbbadfe['id'],_0x5d2682=>({..._0x5d2682,'status':_0xfee3bb,'completedAt':terminal(_0xfee3bb)?this[_0x4a9923(0x18d)]():_0x5d2682[_0x4a9923(0xd3)],'items':terminal(_0xfee3bb)?_0x5d2682[_0x4a9923(0x181)][_0x4a9923(0xee)](_0x27ec46=>activeConversationItem(_0x27ec46[_0x4a9923(0xdb)])?{..._0x27ec46,'status':completedStatusForRun(_0xfee3bb),'completedAt':this[_0x4a9923(0x18d)]()}:_0x27ec46):_0x5d2682[_0x4a9923(0x181)]})),_0xbbadfe;}[_0x2d6bcd(0x1d1)](_0x2115bf){const _0x47aa05=_0x2d6bcd,_0x3c357a=this[_0x47aa05(0x157)][_0x47aa05(0x11f)](_0x2115bf[_0x47aa05(0x178)]),_0x5334e6=_0x3c357a?.[_0x47aa05(0x178)]??_0x2115bf[_0x47aa05(0x178)];this[_0x47aa05(0x14a)](_0x5334e6);const _0x26f185=this[_0x47aa05(0xf3)][_0x47aa05(0x11f)](_0x5334e6)??-0x1*0x71e+-0x17cf+0x1eed;if(_0x2115bf[_0x47aa05(0x155)]<=_0x26f185)return undefined;if(_0x2115bf[_0x47aa05(0x155)]>_0x26f185+(-0x86e+0x511*-0x5+0x4*0x871))throw new Error(_0x47aa05(0x132));const _0x3281e9={'runId':_0x5334e6,'sequence':_0x2115bf[_0x47aa05(0x155)],'eventType':_0x2115bf[_0x47aa05(0x12f)],'payload':_0x2115bf[_0x47aa05(0x13a)],..._0x2115bf[_0x47aa05(0xdb)]===undefined?{}:{'status':_0x2115bf[_0x47aa05(0xdb)]},'createdAt':this[_0x47aa05(0x18d)]()};this[_0x47aa05(0xf3)][_0x47aa05(0x173)](_0x5334e6,_0x2115bf[_0x47aa05(0x155)]);if(_0x3c357a!==undefined&&_0x2115bf[_0x47aa05(0xdb)]!==undefined){const _0x53f007=executionStatusForRun(_0x2115bf[_0x47aa05(0xdb)]);this[_0x47aa05(0x157)][_0x47aa05(0x173)](_0x2115bf[_0x47aa05(0x178)],{..._0x3c357a,'status':_0x53f007,'completedAt':terminal(_0x2115bf[_0x47aa05(0xdb)])?_0x3281e9[_0x47aa05(0x1ab)]:_0x3c357a[_0x47aa05(0xd3)]});}if(_0x2115bf[_0x47aa05(0xdb)]!==undefined&&!terminal(_0x2115bf[_0x47aa05(0xdb)]))this[_0x47aa05(0xed)](_0x5334e6,_0x2115bf[_0x47aa05(0xdb)]);this[_0x47aa05(0x19d)](_0x3281e9,_0x3c357a?.[_0x47aa05(0xdc)]);if(_0x2115bf[_0x47aa05(0xdb)]!==undefined&&terminal(_0x2115bf[_0x47aa05(0xdb)])&&_0x3c357a!==undefined)this[_0x47aa05(0x109)](_0x3c357a[_0x47aa05(0xdc)],_0x2115bf[_0x47aa05(0xdb)],_0x3281e9[_0x47aa05(0x1ab)]);return _0x3281e9;}[_0x2d6bcd(0x1d2)](_0x1e0824){const _0x9ea30f=_0x2d6bcd,_0x502c0e=this[_0x9ea30f(0x1e0)](_0x1e0824);if(_0x502c0e===undefined)return undefined;for(const [_0x210a21,_0x2b7f62]of this[_0x9ea30f(0x157)])if(_0x2b7f62[_0x9ea30f(0x178)]===_0x1e0824&&_0x2b7f62[_0x9ea30f(0xdc)]===_0x502c0e['id']&&!terminalExecution(_0x2b7f62[_0x9ea30f(0xdb)]))return _0x210a21;return undefined;}[_0x2d6bcd(0x161)](_0xd1cf67){const _0x1d4532=_0x2d6bcd,_0x46f2d0=this[_0x1d4532(0x191)](_0xd1cf67),_0x36f601=this[_0x1d4532(0x1e0)](_0x46f2d0);if(_0x36f601===undefined||_0x36f601[_0x1d4532(0xdb)]!==_0x1d4532(0x116))throw new Error(_0x1d4532(0x13e));const _0x22c0e=[...this[_0x1d4532(0x157)][_0x1d4532(0x107)]()][_0x1d4532(0x187)](_0x37abed=>_0x37abed[_0x1d4532(0x178)]===_0x46f2d0&&_0x37abed[_0x1d4532(0xdc)]===_0x36f601['id']);if(_0x22c0e!==undefined)return _0x22c0e;const _0x4d4458=this[_0x1d4532(0x18d)](),_0x50f241={'id':randomUUID(),'runId':_0x46f2d0,'turnId':_0x36f601['id'],'status':_0x1d4532(0x162),'startedAt':_0x4d4458,'completedAt':null};return this[_0x1d4532(0x157)][_0x1d4532(0x173)](_0x50f241['id'],_0x50f241),this[_0x1d4532(0xf1)](_0x46f2d0,_0x5ef302=>({..._0x5ef302,'items':_0x5ef302[_0x1d4532(0x181)][_0x1d4532(0xee)](_0x3f0064=>_0x3f0064['id']===_0x5ef302[_0x1d4532(0x14e)]&&isRecord(_0x3f0064[_0x1d4532(0x13a)])&&Array[_0x1d4532(0x137)](_0x3f0064[_0x1d4532(0x13a)][_0x1d4532(0x142)])?{..._0x3f0064,'payload':{..._0x3f0064[_0x1d4532(0x13a)],'attachments':_0x3f0064[_0x1d4532(0x13a)][_0x1d4532(0x142)][_0x1d4532(0xee)](_0xf47479=>isRecord(_0xf47479)&&typeof _0xf47479[_0x1d4532(0x14b)]===_0x1d4532(0x169)?{..._0xf47479,'runId':_0x50f241['id']}:_0xf47479)}}:_0x3f0064)})),_0x50f241;}[_0x2d6bcd(0x191)](_0x424daa){const _0x5c86f2=_0x2d6bcd;return this[_0x5c86f2(0x157)][_0x5c86f2(0x11f)](_0x424daa)?.[_0x5c86f2(0x178)]??_0x424daa;}[_0x2d6bcd(0x168)](_0x4e00c7,_0x3b0e8c){const _0x4079d4=_0x2d6bcd;return this[_0x4079d4(0xed)](this[_0x4079d4(0x191)](_0x4e00c7),_0x3b0e8c);}[_0x2d6bcd(0x17a)](_0x3728f0){const _0x246509=_0x2d6bcd;this[_0x246509(0x167)](_0x3728f0[_0x246509(0xd8)]);const _0x5864d=[...this[_0x246509(0xf5)][_0x246509(0x11f)](_0x3728f0[_0x246509(0xd8)])??[]][_0x246509(0xee)]((_0x5a0a11,_0x517624)=>({'turn':_0x5a0a11,'index':_0x517624}))[_0x246509(0x1e3)]((_0x2ac3d4,_0x5c7c2d)=>{const _0x2866ed=_0x246509,_0x1249c1=_0x1d89ba=>_0x1d89ba[_0x2866ed(0x181)][_0x2866ed(0x187)](_0xa78e42=>_0xa78e42['id']===_0x1d89ba[_0x2866ed(0x14e)])?.[_0x2866ed(0x1d3)]??_0x1d89ba[_0x2866ed(0x1d3)]??_0x1d89ba[_0x2866ed(0xd3)]??-0xe3e*-0x1+0x79e+0x577*-0x4;return _0x1249c1(_0x2ac3d4[_0x2866ed(0x1e1)])-_0x1249c1(_0x5c7c2d[_0x2866ed(0x1e1)])||_0x2ac3d4[_0x2866ed(0x15e)]-_0x5c7c2d[_0x2866ed(0x15e)];})[_0x246509(0xee)](({turn:_0x30217f})=>_0x30217f),_0x55f2f1=_0x3728f0[_0x246509(0x14f)]===undefined?_0x5864d[_0x246509(0x15b)]:decodeCursor(_0x3728f0[_0x246509(0x14f)],_0x3728f0[_0x246509(0xd8)]),_0x31fe9e=Math[_0x246509(0x1bc)](Math[_0x246509(0x11e)](_0x3728f0[_0x246509(0x122)]??-0x2*0x52f+-0x1*0x1f9b+0x2a17,0x1894+0x15*0x8e+-0x2439*0x1),-0x9c6*0x3+-0x1d6*-0x13+-0x39c),_0x1067d1=Math[_0x246509(0x11e)](-0x2*0x743+0x1*-0x1e71+-0xefd*-0x3,_0x55f2f1-_0x31fe9e),_0x495435=_0x5864d[_0x246509(0x1de)](_0x1067d1,_0x55f2f1);return{'turns':_0x495435,'nextCursor':_0x1067d1>-0x13*0x69+0x1*0xbc6+0x1*-0x3fb?encodeCursor(_0x3728f0[_0x246509(0xd8)],_0x1067d1):null};}[_0x2d6bcd(0x189)](_0x29c9a8){const _0x1cdb66=_0x2d6bcd;for(const _0x3d4056 of this[_0x1cdb66(0xf5)][_0x1cdb66(0x107)]()){const _0x4f7817=_0x3d4056[_0x1cdb66(0x1b1)](_0x15dcb8=>_0x15dcb8[_0x1cdb66(0x178)]===this[_0x1cdb66(0x191)](_0x29c9a8));if(_0x4f7817!==undefined)return _0x4f7817;}return undefined;}[_0x2d6bcd(0x185)](_0x3e5449){const _0x2a1359=_0x2d6bcd,_0x3ff375=this[_0x2a1359(0x157)][_0x2a1359(0x11f)](_0x3e5449),_0x2fb27d=_0x3ff375===undefined?this[_0x2a1359(0x1bf)][_0x2a1359(0x11f)](_0x3e5449):{'sessionId':this[_0x2a1359(0x14a)](_0x3ff375[_0x2a1359(0x178)])[_0x2a1359(0xd8)],'turnId':_0x3ff375[_0x2a1359(0xdc)]};if(_0x2fb27d===undefined)return undefined;return(this[_0x2a1359(0xf5)][_0x2a1359(0x11f)](_0x2fb27d[_0x2a1359(0xd8)])??[])[_0x2a1359(0x187)](_0x4380ae=>_0x4380ae['id']===_0x2fb27d[_0x2a1359(0xdc)]);}[_0x2d6bcd(0x1e4)](_0x15058a){const _0x473b62=_0x2d6bcd,_0x116105=this[_0x473b62(0x17a)](_0x15058a)[_0x473b62(0xf5)];return{'items':_0x116105[_0x473b62(0x15d)](_0x3b51c5=>_0x3b51c5[_0x473b62(0x181)]),'nextCursor':null};}[_0x2d6bcd(0x1d0)](_0x12a14e){const _0x4f4b25=_0x2d6bcd,_0x27615e=this[_0x4f4b25(0x167)](_0x12a14e[_0x4f4b25(0xd8)]),_0x1a1a5f=this[_0x4f4b25(0x18d)](),_0x4df076={'id':randomUUID(),'sessionId':_0x12a14e[_0x4f4b25(0xd8)],'turnId':'','runId':null,'parentItemId':null,'sourceSequence':null,'revision':0x1,'kind':_0x4f4b25(0x120),'status':_0x12a14e[_0x4f4b25(0x110)]?_0x4f4b25(0x1c6):_0x4f4b25(0x199),'payload':{'command':_0x12a14e[_0x4f4b25(0xf8)],'cwd':_0x12a14e[_0x4f4b25(0x139)],'outputPreview':_0x12a14e[_0x4f4b25(0xf2)][_0x4f4b25(0x1de)](-0x244a+-0x6*0x18a+0x2*0x16c3,0x43*-0x32+-0xb*-0x66e+-0x74*0x29),'outputRef':null,'exitCode':_0x12a14e[_0x4f4b25(0x110)]?-0x7ec+-0x877*-0x1+-0x8a:-0x1*-0x247f+-0x17d1+-0x1*0xcae,'durationMs':0x0,'truncated':![]},'startedAt':_0x1a1a5f,'completedAt':_0x1a1a5f},_0x429fa3={'id':randomUUID(),'sessionId':_0x12a14e[_0x4f4b25(0xd8)],'runId':null,'userItemId':null,'status':_0x12a14e[_0x4f4b25(0x110)]?_0x4f4b25(0x1c6):_0x4f4b25(0x1da),'model':_0x27615e[_0x4f4b25(0x165)],'effort':_0x27615e[_0x4f4b25(0x102)],'access':_0x27615e[_0x4f4b25(0x1b0)],'items':[],'startedAt':_0x1a1a5f,'completedAt':_0x1a1a5f},_0x4c8106={..._0x4df076,'turnId':_0x429fa3['id']},_0x40d869={..._0x429fa3,'items':[_0x4c8106]};return this[_0x4f4b25(0xf5)][_0x4f4b25(0x173)](_0x12a14e[_0x4f4b25(0xd8)],[...this[_0x4f4b25(0xf5)][_0x4f4b25(0x11f)](_0x12a14e[_0x4f4b25(0xd8)])??[],_0x40d869]),this[_0x4f4b25(0x193)](_0x27615e['id'],{'lastActivityAt':_0x1a1a5f}),_0x40d869;}[_0x2d6bcd(0x1dd)](_0x205cdb){const _0x90f681=_0x2d6bcd,_0x17ada2=this[_0x90f681(0x13c)](_0x205cdb[_0x90f681(0x178)]);if(_0x17ada2===undefined)throw new Error(_0x90f681(0xe0));if(_0x205cdb[_0x90f681(0x178)]!==_0x17ada2['id']&&this[_0x90f681(0x1d2)](_0x17ada2['id'])!==_0x205cdb[_0x90f681(0x178)])throw new Error(_0x90f681(0xe8));if(this[_0x90f681(0x1dc)][_0x90f681(0xfe)](_0x205cdb[_0x90f681(0xfd)]))throw new Error(_0x90f681(0x1c8));if(_0x205cdb[_0x90f681(0x1d8)]<=this[_0x90f681(0x18d)]())throw new Error(_0x90f681(0x115));const _0x48bb2d={'id':_0x205cdb[_0x90f681(0xfd)],'runId':_0x205cdb[_0x90f681(0x178)],'status':_0x90f681(0x1e7),'payload':_0x205cdb[_0x90f681(0x13a)],'expiresAt':_0x205cdb[_0x90f681(0x1d8)],'createdAt':this[_0x90f681(0x18d)](),'decidedAt':null};return this[_0x90f681(0x1dc)][_0x90f681(0x173)](_0x48bb2d['id'],_0x48bb2d),_0x48bb2d;}[_0x2d6bcd(0x10f)](_0x5bf1c7){const _0x129fd3=_0x2d6bcd,_0x5c4951=this[_0x129fd3(0x1dc)][_0x129fd3(0x11f)](_0x5bf1c7);if(_0x5c4951?.[_0x129fd3(0xdb)]===_0x129fd3(0x1e7)&&_0x5c4951[_0x129fd3(0x1d8)]<=this[_0x129fd3(0x18d)]())return this[_0x129fd3(0xd5)](_0x5bf1c7);return _0x5c4951;}[_0x2d6bcd(0x170)](_0x6b6ad){const _0x2a259e=_0x2d6bcd,_0x17f604=this[_0x2a259e(0x191)](_0x6b6ad);return[...this[_0x2a259e(0x1dc)][_0x2a259e(0x107)]()][_0x2a259e(0x1ba)](_0x31fb39=>this[_0x2a259e(0x191)](_0x31fb39[_0x2a259e(0x178)])===_0x17f604)[_0x2a259e(0xee)](_0x402c07=>this[_0x2a259e(0x10f)](_0x402c07['id']));}[_0x2d6bcd(0xd5)](_0x5c105c){const _0x191039=_0x2d6bcd,_0x3ff8e1=this[_0x191039(0x127)](_0x5c105c);if(_0x3ff8e1[_0x191039(0xdb)]!==_0x191039(0x1e7))return _0x3ff8e1;if(_0x3ff8e1[_0x191039(0x1d8)]>this[_0x191039(0x18d)]())throw new Error(_0x191039(0xf7));const _0x2a84ec={..._0x3ff8e1,'status':_0x191039(0xe7),'decidedAt':this[_0x191039(0x18d)]()};return this[_0x191039(0x1dc)][_0x191039(0x173)](_0x5c105c,_0x2a84ec),_0x2a84ec;}[_0x2d6bcd(0x1c9)](_0x474e1b,_0x5a01c2){const _0x32af13=_0x2d6bcd,_0x5b7e8e=this[_0x32af13(0x10f)](_0x474e1b);if(_0x5b7e8e===undefined)throw new Error(_0x32af13(0xef));if(_0x5b7e8e[_0x32af13(0xdb)]===_0x32af13(0xe7))throw new Error(_0x32af13(0x115));if(_0x5b7e8e[_0x32af13(0xdb)]!==_0x32af13(0x1e7))throw new Error(_0x32af13(0xe2));const _0x4db426={..._0x5b7e8e,'status':_0x5a01c2,'decidedAt':this[_0x32af13(0x18d)]()};return this[_0x32af13(0x1dc)][_0x32af13(0x173)](_0x474e1b,_0x4db426),_0x4db426;}[_0x2d6bcd(0x1b5)](){const _0x1233f3=_0x2d6bcd;return[...this[_0x1233f3(0x1dc)][_0x1233f3(0x107)]()][_0x1233f3(0x1ba)](_0xf5fa42=>_0xf5fa42[_0x1233f3(0xdb)]===_0x1233f3(0x1e7)&&_0xf5fa42[_0x1233f3(0x1d8)]<=this[_0x1233f3(0x18d)]())[_0x1233f3(0xee)](_0x5067b7=>this[_0x1233f3(0xd5)](_0x5067b7['id']));}[_0x2d6bcd(0x19e)](){const _0x1f3c80=_0x2d6bcd;return[...this[_0x1f3c80(0x141)][_0x1f3c80(0x107)]()][_0x1f3c80(0x1ba)](_0x2e21da=>!terminal(_0x2e21da[_0x1f3c80(0xdb)]));}[_0x2d6bcd(0x180)](_0x4f5d51){const _0x56ee83=_0x2d6bcd;return this[_0x56ee83(0xf3)][_0x56ee83(0x11f)](_0x4f5d51)??0x198b+0x3*0x332+-0x2321;}[_0x2d6bcd(0x1cc)](_0x4028a7){const _0x58218d=_0x2d6bcd,_0x4d22c8=this[_0x58218d(0x14a)](_0x4028a7);if(!terminal(_0x4d22c8[_0x58218d(0xdb)]))throw new Error(_0x58218d(0x1ac));this[_0x58218d(0x1d7)][_0x58218d(0xe6)](_0x4028a7);if(this[_0x58218d(0x1d7)][_0x58218d(0x149)]>0x1fe+0xd3d*0x1+-0xb3b*0x1)this[_0x58218d(0x1d7)][_0x58218d(0x14d)](this[_0x58218d(0x1d7)][_0x58218d(0x107)]()[_0x58218d(0x105)]()[_0x58218d(0x100)]);const _0x25be5c=new Set([...this[_0x58218d(0x157)][_0x58218d(0x107)]()][_0x58218d(0x1ba)](_0x263696=>_0x263696[_0x58218d(0x178)]===_0x4028a7)[_0x58218d(0xee)](_0x58c291=>_0x58c291['id'])),_0x14564e=(this[_0x58218d(0xf5)][_0x58218d(0x11f)](_0x4d22c8[_0x58218d(0xd8)])??[])[_0x58218d(0x1ba)](_0x47900e=>{const _0x5f30e8=_0x58218d,_0x116129=_0x47900e[_0x5f30e8(0x181)][_0x5f30e8(0x1a7)](_0x24e06f=>_0x24e06f[_0x5f30e8(0x143)]===_0x5f30e8(0x16a));if(_0x47900e[_0x5f30e8(0x178)]===_0x4028a7)return _0x4d22c8[_0x5f30e8(0xdb)]===_0x5f30e8(0x1da)||_0x4d22c8[_0x5f30e8(0xdb)]===_0x5f30e8(0x1a8)||_0x116129;const _0x44173a=_0x116129&&_0x47900e[_0x5f30e8(0xdb)]!==_0x5f30e8(0x1da)&&_0x47900e[_0x5f30e8(0xdb)]!==_0x5f30e8(0x1a8);return _0x4d22c8[_0x5f30e8(0xdb)]!==_0x5f30e8(0x1da)||!_0x44173a;}),_0x43e505=_0x14564e[_0x58218d(0x1ba)](_0x4e88aa=>terminalTurn(_0x4e88aa[_0x58218d(0xdb)])),_0x1c3597=new Set(_0x43e505[_0x58218d(0x1de)](-NodeRuntimeState[_0x58218d(0x13b)])[_0x58218d(0xee)](_0x2782e7=>_0x2782e7['id'])),_0x84c304=_0x14564e[_0x58218d(0x1ba)](_0x530445=>!terminalTurn(_0x530445[_0x58218d(0xdb)])||_0x1c3597[_0x58218d(0xfe)](_0x530445['id'])),_0xc0be48=new Set(_0x84c304[_0x58218d(0xee)](_0x4edbe9=>_0x4edbe9['id']));this[_0x58218d(0xf5)][_0x58218d(0x173)](_0x4d22c8[_0x58218d(0xd8)],_0x84c304);for(const [_0x4406be,_0x116cbb]of this[_0x58218d(0x157)]){if(_0x116cbb[_0x58218d(0x178)]!==_0x4028a7)continue;this[_0x58218d(0x157)][_0x58218d(0x14d)](_0x4406be);if(_0xc0be48[_0x58218d(0xfe)](_0x116cbb[_0x58218d(0xdc)]))this[_0x58218d(0x1bf)][_0x58218d(0x173)](_0x4406be,{'sessionId':_0x4d22c8[_0x58218d(0xd8)],'turnId':_0x116cbb[_0x58218d(0xdc)]});}this[_0x58218d(0xd9)](_0x4d22c8[_0x58218d(0xd8)],_0xc0be48),this[_0x58218d(0x141)][_0x58218d(0x14d)](_0x4028a7),this[_0x58218d(0xf3)][_0x58218d(0x14d)](_0x4028a7);for(const [_0x920218,_0x2340c5]of this[_0x58218d(0x101)])if(_0x2340c5[_0x58218d(0x143)]===_0x58218d(0x19b)&&_0x2340c5['id']===_0x4028a7)this[_0x58218d(0x101)][_0x58218d(0x14d)](_0x920218);for(const [_0x5baa6,_0x3afc32]of this[_0x58218d(0x1dc)])if(_0x3afc32[_0x58218d(0x178)]===_0x4028a7||_0x25be5c[_0x58218d(0xfe)](_0x3afc32[_0x58218d(0x178)]))this[_0x58218d(0x1dc)][_0x58218d(0x14d)](_0x5baa6);}[_0x2d6bcd(0x196)](_0x1654b1){const _0x455f85=_0x2d6bcd;return[...this[_0x455f85(0x1be)][_0x455f85(0x107)]()][_0x455f85(0xee)](_0x410cae=>this[_0x455f85(0x141)][_0x455f85(0x11f)](_0x410cae))[_0x455f85(0x1a7)](_0x55657=>_0x55657?.[_0x455f85(0x17e)]===_0x1654b1);}[_0x2d6bcd(0xf6)](_0xd73469){const _0x31e733=_0x2d6bcd;this[_0x31e733(0x167)](_0xd73469);const _0x55d343=this[_0x31e733(0x1ad)](_0xd73469);if(_0x55d343[_0x31e733(0x1a7)](_0x827e56=>!terminal(_0x827e56[_0x31e733(0xdb)])))throw new Error(_0x31e733(0x10a));const _0xcbc108=new Set(_0x55d343[_0x31e733(0xee)](_0x811e82=>_0x811e82['id'])),_0x657705=new Set([...this[_0x31e733(0x157)][_0x31e733(0x107)]()][_0x31e733(0x1ba)](_0x219180=>_0xcbc108[_0x31e733(0xfe)](_0x219180[_0x31e733(0x178)]))[_0x31e733(0xee)](_0x4e4947=>_0x4e4947['id']));this[_0x31e733(0x117)][_0x31e733(0x14d)](_0xd73469),this[_0x31e733(0xf5)][_0x31e733(0x14d)](_0xd73469),this[_0x31e733(0xd9)](_0xd73469,new Set());const _0x22d9d1=this[_0x31e733(0x14c)][_0x31e733(0x11f)](_0xd73469)??[];this[_0x31e733(0x14c)][_0x31e733(0x14d)](_0xd73469);for(const _0xc11f3f of _0x22d9d1)this[_0x31e733(0x10b)][_0x31e733(0x14d)](_0xc11f3f);this[_0x31e733(0x1c2)][_0x31e733(0x14d)](_0xd73469),this[_0x31e733(0x194)][_0x31e733(0x14d)](_0xd73469),this[_0x31e733(0x1be)][_0x31e733(0x14d)](_0xd73469);for(const _0x1c1903 of _0xcbc108){this[_0x31e733(0x141)][_0x31e733(0x14d)](_0x1c1903),this[_0x31e733(0xf3)][_0x31e733(0x14d)](_0x1c1903);}for(const _0x1040df of _0x657705)this[_0x31e733(0x157)][_0x31e733(0x14d)](_0x1040df);for(const [_0x5ceaad,_0x1322e1]of this[_0x31e733(0x101)])if(_0x1322e1[_0x31e733(0x143)]===_0x31e733(0x19b)&&_0xcbc108[_0x31e733(0xfe)](_0x1322e1['id'])||_0x1322e1[_0x31e733(0x143)]===_0x31e733(0x179)&&_0x22d9d1[_0x31e733(0x1e2)](_0x1322e1['id']))this[_0x31e733(0x101)][_0x31e733(0x14d)](_0x5ceaad);for(const _0x3c8a3e of this[_0x31e733(0x133)][_0x31e733(0x18c)]())if(_0x3c8a3e[_0x31e733(0x1a6)](_0xd73469+'\x00'))this[_0x31e733(0x133)][_0x31e733(0x14d)](_0x3c8a3e);for(const [_0x2cf522,_0xc5769a]of this[_0x31e733(0x1dc)])if(_0xcbc108[_0x31e733(0xfe)](_0xc5769a[_0x31e733(0x178)])||_0x657705[_0x31e733(0xfe)](_0xc5769a[_0x31e733(0x178)]))this[_0x31e733(0x1dc)][_0x31e733(0x14d)](_0x2cf522);}[_0x2d6bcd(0x16f)](_0xccf7ac){const _0x1896cf=_0x2d6bcd;if(this[_0x1896cf(0x196)](_0xccf7ac))throw new Error(_0x1896cf(0x12e));const _0x33f77b=new Set([...this[_0x1896cf(0x117)][_0x1896cf(0x107)]()][_0x1896cf(0x1ba)](_0x4995fa=>_0x4995fa[_0x1896cf(0x17e)]===_0xccf7ac)[_0x1896cf(0xee)](_0x3c0057=>_0x3c0057['id'])),_0x44bfee=new Set([...this[_0x1896cf(0x141)][_0x1896cf(0x107)]()][_0x1896cf(0x1ba)](_0x25ab66=>_0x25ab66[_0x1896cf(0x17e)]===_0xccf7ac)[_0x1896cf(0xee)](_0x452a6b=>_0x452a6b['id'])),_0x39f61a=new Set([...this[_0x1896cf(0x157)][_0x1896cf(0x107)]()][_0x1896cf(0x1ba)](_0x381c60=>_0x44bfee[_0x1896cf(0xfe)](_0x381c60[_0x1896cf(0x178)]))[_0x1896cf(0xee)](_0x95e044=>_0x95e044['id'])),_0x39645c=new Set([..._0x33f77b][_0x1896cf(0x15d)](_0x3250b4=>this[_0x1896cf(0x14c)][_0x1896cf(0x11f)](_0x3250b4)??[]));for(const _0x183da6 of _0x33f77b){this[_0x1896cf(0x117)][_0x1896cf(0x14d)](_0x183da6),this[_0x1896cf(0xf5)][_0x1896cf(0x14d)](_0x183da6),this[_0x1896cf(0xd9)](_0x183da6,new Set());}for(const _0x4e3fe5 of _0x44bfee){this[_0x1896cf(0x141)][_0x1896cf(0x14d)](_0x4e3fe5),this[_0x1896cf(0xf3)][_0x1896cf(0x14d)](_0x4e3fe5);}for(const _0x5e332f of _0x39f61a)this[_0x1896cf(0x157)][_0x1896cf(0x14d)](_0x5e332f);for(const [_0x440c2e,_0x615073]of this[_0x1896cf(0x101)])if(_0x615073[_0x1896cf(0x143)]===_0x1896cf(0x19b)&&_0x44bfee[_0x1896cf(0xfe)](_0x615073['id'])||_0x615073[_0x1896cf(0x143)]===_0x1896cf(0x179)&&_0x39645c[_0x1896cf(0xfe)](_0x615073['id']))this[_0x1896cf(0x101)][_0x1896cf(0x14d)](_0x440c2e);for(const _0x96335b of this[_0x1896cf(0x133)][_0x1896cf(0x18c)]()){const _0x4ae7a5=_0x96335b[_0x1896cf(0xfc)]('\u0000');if(_0x4ae7a5>=0x29*-0x97+-0x20b9*0x1+0x38e8&&_0x33f77b[_0x1896cf(0xfe)](_0x96335b[_0x1896cf(0x1de)](0x57*0x1+0x49a+-0xfd*0x5,_0x4ae7a5)))this[_0x1896cf(0x133)][_0x1896cf(0x14d)](_0x96335b);}for(const [_0xcfa4b5,_0x2d744f]of this[_0x1896cf(0x1dc)])if(_0x44bfee[_0x1896cf(0xfe)](_0x2d744f[_0x1896cf(0x178)])||_0x39f61a[_0x1896cf(0xfe)](_0x2d744f[_0x1896cf(0x178)]))this[_0x1896cf(0x1dc)][_0x1896cf(0x14d)](_0xcfa4b5);for(const _0x196c04 of _0x33f77b){const _0x47e28e=this[_0x1896cf(0x14c)][_0x1896cf(0x11f)](_0x196c04)??[];this[_0x1896cf(0x14c)][_0x1896cf(0x14d)](_0x196c04);for(const _0x325ed1 of _0x47e28e)this[_0x1896cf(0x10b)][_0x1896cf(0x14d)](_0x325ed1);this[_0x1896cf(0x1c2)][_0x1896cf(0x14d)](_0x196c04),this[_0x1896cf(0x194)][_0x1896cf(0x14d)](_0x196c04),this[_0x1896cf(0x1be)][_0x1896cf(0x14d)](_0x196c04);}}[_0x2d6bcd(0x16c)](_0x41d2a1,_0xc5db62){void _0x41d2a1,void _0xc5db62;}[_0x2d6bcd(0x193)](_0x158eac,_0x46b52d){const _0x5d00d6=_0x2d6bcd,_0x2af473=this[_0x5d00d6(0x167)](_0x158eac),_0x50f538={..._0x2af473,..._0x46b52d};this[_0x5d00d6(0x117)][_0x5d00d6(0x173)](_0x158eac,_0x50f538);if(_0x2af473[_0x5d00d6(0x1b9)]!==_0x50f538[_0x5d00d6(0x1b9)]||_0x2af473[_0x5d00d6(0x1c4)]!==_0x50f538[_0x5d00d6(0x1c4)]){for(const _0x3721d6 of this[_0x5d00d6(0x1ad)](_0x158eac))this[_0x5d00d6(0x1ce)](_0x3721d6,_0x50f538);}return _0x50f538;}[_0x2d6bcd(0x1ce)](_0x14a4ca,_0x20662e){const _0x36e132=_0x2d6bcd,_0x2a1e57=this[_0x36e132(0x176)](_0x14a4ca['id']);this[_0x36e132(0x131)]?.(_0x14a4ca,_0x20662e,_0x2a1e57[_0x36e132(0x15b)]===0xbcd+0x1e03+-0x1*0x29d0?undefined:_0x2a1e57);}[_0x2d6bcd(0x1b4)](_0x1f39e1){const _0x219b0f=_0x2d6bcd;this[_0x219b0f(0x1c2)][_0x219b0f(0x173)](_0x1f39e1,(this[_0x219b0f(0x1c2)][_0x219b0f(0x11f)](_0x1f39e1)??0x125*0x22+0x544+-0x2c2e)+(-0x6*-0x470+0x57*-0x4e+0x1d*-0x1));}[_0x2d6bcd(0xd9)](_0x3c7f27,_0x494f62){const _0x27efa4=_0x2d6bcd;for(const [_0x494e01,_0xc5522]of this[_0x27efa4(0x1bf)])if(_0xc5522[_0x27efa4(0xd8)]===_0x3c7f27&&!_0x494f62[_0x27efa4(0xfe)](_0xc5522[_0x27efa4(0xdc)]))this[_0x27efa4(0x1bf)][_0x27efa4(0x14d)](_0x494e01);}[_0x2d6bcd(0x167)](_0xdbf73){const _0x3e7317=_0x2d6bcd,_0x56ce71=this[_0x3e7317(0x117)][_0x3e7317(0x11f)](_0xdbf73);if(_0x56ce71===undefined)throw new Error(_0x3e7317(0x17d));return _0x56ce71;}[_0x2d6bcd(0x14a)](_0x1009e8){const _0x34ee6d=_0x2d6bcd,_0x16134e=this[_0x34ee6d(0x141)][_0x34ee6d(0x11f)](_0x1009e8);if(_0x16134e===undefined)throw new Error(_0x34ee6d(0xe0));return _0x16134e;}[_0x2d6bcd(0x1ca)](_0x450a93){const _0x269724=_0x2d6bcd,_0x35f5d7=this[_0x269724(0x10b)][_0x269724(0x11f)](_0x450a93);if(_0x35f5d7===undefined)throw new Error(_0x269724(0xf4));return _0x35f5d7;}[_0x2d6bcd(0x127)](_0x5cd470){const _0x4f3a35=_0x2d6bcd,_0x180cc4=this[_0x4f3a35(0x1dc)][_0x4f3a35(0x11f)](_0x5cd470);if(_0x180cc4===undefined)throw new Error(_0x4f3a35(0xef));return _0x180cc4;}[_0x2d6bcd(0x166)](_0x1237cb,_0x15c16a){const _0x3b2f27=_0x2d6bcd,_0x132596=this[_0x3b2f27(0x14a)](_0x1237cb),_0x4a07f8=this[_0x3b2f27(0xf5)][_0x3b2f27(0x11f)](_0x132596[_0x3b2f27(0xd8)])??[];this[_0x3b2f27(0xf5)][_0x3b2f27(0x173)](_0x132596[_0x3b2f27(0xd8)],_0x4a07f8[_0x3b2f27(0xee)](_0xab013f=>_0xab013f[_0x3b2f27(0x178)]===_0x1237cb?_0x15c16a(_0xab013f):_0xab013f));}[_0x2d6bcd(0xf1)](_0x9c1ad,_0x7b809a){const _0x371567=_0x2d6bcd,_0x2e9179=this[_0x371567(0x14a)](_0x9c1ad),_0x291b84=this[_0x371567(0xf5)][_0x371567(0x11f)](_0x2e9179[_0x371567(0xd8)])??[],_0x13fe4b=_0x291b84[_0x371567(0x1b8)](_0x5c40a2=>_0x5c40a2[_0x371567(0x178)]===_0x9c1ad);if(_0x13fe4b<-0x1*-0x194e+0x4e9+0x1*-0x1e37)return;this[_0x371567(0xf5)][_0x371567(0x173)](_0x2e9179[_0x371567(0xd8)],_0x291b84[_0x371567(0xee)]((_0x4098c3,_0x473825)=>_0x473825===_0x13fe4b?_0x7b809a(_0x4098c3):_0x4098c3));}[_0x2d6bcd(0x1e0)](_0x287c07){const _0x485250=_0x2d6bcd,_0x15c6a5=this[_0x485250(0x14a)](_0x287c07);return(this[_0x485250(0xf5)][_0x485250(0x11f)](_0x15c6a5[_0x485250(0xd8)])??[])[_0x485250(0x1b1)](_0x44c2b0=>_0x44c2b0[_0x485250(0x178)]===_0x287c07);}[_0x2d6bcd(0x12d)](_0x57b81e,_0x1efb0,_0x3190ef,_0x2b195f){const _0x245bf9=_0x2d6bcd,_0x380afe=this[_0x245bf9(0x167)](_0x57b81e[_0x245bf9(0xd8)]),_0x2754e7=this[_0x245bf9(0x18d)](),_0x2251e5=randomUUID(),_0x11ba76=randomUUID(),_0x1c0713={'id':_0x11ba76,'sessionId':_0x380afe['id'],'turnId':_0x2251e5,'runId':_0x57b81e['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x245bf9(0x1d5),'status':_0x245bf9(0x199),'payload':{'clientMessageId':_0x1efb0,'text':_0x3190ef,'contexts':[],'attachments':_0x2b195f,'delivery':_0x245bf9(0x171)},'startedAt':_0x2754e7,'completedAt':_0x2754e7},_0x124b12={'id':_0x2251e5,'sessionId':_0x380afe['id'],'runId':_0x57b81e['id'],'userItemId':_0x11ba76,'status':_0x245bf9(0x116),'model':_0x380afe[_0x245bf9(0x165)],'effort':_0x380afe[_0x245bf9(0x102)],'access':_0x380afe[_0x245bf9(0x1b0)],'items':[_0x1c0713],'startedAt':_0x2754e7,'completedAt':null};return this[_0x245bf9(0xf5)][_0x245bf9(0x173)](_0x380afe['id'],[...this[_0x245bf9(0xf5)][_0x245bf9(0x11f)](_0x380afe['id'])??[],_0x124b12]),this[_0x245bf9(0x193)](_0x380afe['id'],{'lastActivityAt':_0x2754e7}),_0x124b12;}[_0x2d6bcd(0x109)](_0x57bda7,_0x3f10ac,_0x50fc52){const _0x5b217c=_0x2d6bcd;for(const [_0x3f582f,_0x35f291]of this[_0x5b217c(0xf5)]){if(!_0x35f291[_0x5b217c(0x1a7)](_0x17f8bb=>_0x17f8bb['id']===_0x57bda7))continue;this[_0x5b217c(0xf5)][_0x5b217c(0x173)](_0x3f582f,_0x35f291[_0x5b217c(0xee)](_0x52253e=>_0x52253e['id']===_0x57bda7?{..._0x52253e,'status':_0x3f10ac,'completedAt':_0x50fc52,'items':_0x52253e[_0x5b217c(0x181)][_0x5b217c(0xee)](_0x51c5a4=>activeConversationItem(_0x51c5a4[_0x5b217c(0xdb)])?{..._0x51c5a4,'status':completedStatusForRun(_0x3f10ac),'completedAt':_0x50fc52}:_0x51c5a4)}:_0x52253e));return;}}[_0x2d6bcd(0x19d)](_0x272456,_0x362f40){const _0x24a088=_0x2d6bcd,_0xcd1893=this[_0x24a088(0x14a)](_0x272456[_0x24a088(0x178)]),_0x2d6bbf=_0x2245b3=>{const _0x5a1edd=_0x24a088;if(_0x272456[_0x5a1edd(0x12f)]===_0x5a1edd(0xe1)&&isRecord(_0x272456[_0x5a1edd(0x13a)])&&typeof _0x272456[_0x5a1edd(0x13a)][_0x5a1edd(0x184)]===_0x5a1edd(0x17c)){const _0x337d42=typeof _0x272456[_0x5a1edd(0x13a)][_0x5a1edd(0x16d)]===_0x5a1edd(0x17c)&&_0x272456[_0x5a1edd(0x13a)][_0x5a1edd(0x16d)][_0x5a1edd(0x15b)]<=-0x4*-0x65b+-0x1d24+0x410?_0x272456[_0x5a1edd(0x13a)][_0x5a1edd(0x16d)]:undefined,_0x4bfe20=_0x337d42===undefined?undefined:_0x272456[_0x5a1edd(0x178)]+':'+_0x337d42,_0x29875a=_0x2245b3[_0x5a1edd(0x181)]['at'](-(-0x2679+0x1390+-0x9*-0x21a)),_0x3f2142=_0x4bfe20===undefined?_0x29875a?.[_0x5a1edd(0x143)]===_0x5a1edd(0x1c3)&&activeConversationItem(_0x29875a[_0x5a1edd(0xdb)])?_0x29875a:undefined:_0x2245b3[_0x5a1edd(0x181)][_0x5a1edd(0x187)](_0x2efee8=>_0x2efee8['id']===_0x4bfe20&&_0x2efee8[_0x5a1edd(0x143)]===_0x5a1edd(0x1c3)),_0x43012e=''+(_0x3f2142===undefined?'':readableText(_0x3f2142[_0x5a1edd(0x13a)]))+_0x272456[_0x5a1edd(0x13a)][_0x5a1edd(0x184)],_0x26fe13={'id':_0x3f2142?.['id']??_0x4bfe20??_0x272456[_0x5a1edd(0x178)]+_0x5a1edd(0x1af)+_0x272456[_0x5a1edd(0x155)],'sessionId':_0xcd1893[_0x5a1edd(0xd8)],'turnId':_0x2245b3['id'],'runId':_0x272456[_0x5a1edd(0x178)],'parentItemId':null,'sourceSequence':_0x3f2142?.[_0x5a1edd(0xe5)]??_0x272456[_0x5a1edd(0x155)],'revision':_0x272456[_0x5a1edd(0x155)],'kind':_0x5a1edd(0x1c3),'status':_0x5a1edd(0x138),'payload':{'text':_0x43012e,'format':_0x5a1edd(0x182),'model':null},'startedAt':_0x3f2142?.[_0x5a1edd(0x1d3)]??_0x272456[_0x5a1edd(0x1ab)],'completedAt':null};return{..._0x2245b3,'status':_0x5a1edd(0xd4),'startedAt':_0x2245b3[_0x5a1edd(0x1d3)]??_0x272456[_0x5a1edd(0x1ab)],'items':_0x3f2142===undefined?[..._0x2245b3[_0x5a1edd(0x181)],_0x26fe13]:_0x2245b3[_0x5a1edd(0x181)][_0x5a1edd(0xee)](_0x437c73=>_0x437c73['id']===_0x26fe13['id']?_0x26fe13:_0x437c73)};}const _0x4b4930=conversationItemFromEvent(_0x272456);if(_0x4b4930!==undefined){const _0x5e4ecf=_0x2245b3[_0x5a1edd(0x181)]['at'](-(-0x115f+-0x2c1*0x1+0x1421)),_0x155046=_0x5e4ecf?.[_0x5a1edd(0x143)]===_0x5a1edd(0x1c3)&&activeConversationItem(_0x5e4ecf[_0x5a1edd(0xdb)])?_0x2245b3[_0x5a1edd(0x181)][_0x5a1edd(0xee)](_0x5e2ba0=>_0x5e2ba0['id']===_0x5e4ecf['id']?{..._0x5e2ba0,'status':_0x5a1edd(0x199),'completedAt':_0x272456[_0x5a1edd(0x1ab)]}:_0x5e2ba0):_0x2245b3[_0x5a1edd(0x181)],_0x40b35b=_0x155046[_0x5a1edd(0x187)](_0x237cd5=>_0x237cd5['id']===_0x272456[_0x5a1edd(0x178)]+':'+_0x4b4930[_0x5a1edd(0x16d)])??(_0x4b4930[_0x5a1edd(0x143)]===_0x5a1edd(0x1c3)&&_0x4b4930[_0x5a1edd(0x16d)][_0x5a1edd(0x1a6)](_0x5a1edd(0xf0))&&_0x5e4ecf?.[_0x5a1edd(0x143)]===_0x5a1edd(0x1c3)&&_0x5e4ecf['id'][_0x5a1edd(0x1a6)](_0x272456[_0x5a1edd(0x178)]+_0x5a1edd(0x1af))&&activeConversationItem(_0x5e4ecf[_0x5a1edd(0xdb)])?_0x5e4ecf:undefined),_0x78e1ca=_0x4b4930[_0x5a1edd(0xdb)],_0x232aa9={'id':_0x272456[_0x5a1edd(0x178)]+':'+_0x4b4930[_0x5a1edd(0x16d)],'sessionId':_0xcd1893[_0x5a1edd(0xd8)],'turnId':_0x2245b3['id'],'runId':_0x272456[_0x5a1edd(0x178)],'parentItemId':null,'sourceSequence':_0x40b35b?.[_0x5a1edd(0xe5)]??_0x272456[_0x5a1edd(0x155)],'revision':(_0x40b35b?.[_0x5a1edd(0x18a)]??-(0xe05+0x33f+-0x1143))+(0x103a+-0xd14*-0x1+-0x1d4d),'kind':_0x4b4930[_0x5a1edd(0x143)],'status':_0x78e1ca,'payload':mergeConversationItemPayload(_0x40b35b?.[_0x5a1edd(0x13a)],_0x4b4930),'startedAt':_0x40b35b?.[_0x5a1edd(0x1d3)]??_0x272456[_0x5a1edd(0x1ab)],'completedAt':completedConversationItem(_0x78e1ca)?_0x272456[_0x5a1edd(0x1ab)]:null};return{..._0x2245b3,'status':terminal(_0xcd1893[_0x5a1edd(0xdb)])?_0xcd1893[_0x5a1edd(0xdb)]:_0x5a1edd(0xd4),'startedAt':_0x2245b3[_0x5a1edd(0x1d3)]??_0x272456[_0x5a1edd(0x1ab)],'items':_0x40b35b===undefined?[..._0x155046,_0x232aa9]:_0x155046[_0x5a1edd(0xee)](_0x337717=>_0x337717['id']===_0x40b35b['id']?_0x232aa9:_0x337717)};}if(_0x272456[_0x5a1edd(0x12f)]===_0x5a1edd(0x198)||_0x272456[_0x5a1edd(0x12f)]===_0x5a1edd(0x172))return{..._0x2245b3,'status':_0x5a1edd(0xd4),'startedAt':_0x2245b3[_0x5a1edd(0x1d3)]??_0x272456[_0x5a1edd(0x1ab)]};if(_0x272456[_0x5a1edd(0x12f)]===_0x5a1edd(0x1a2)||_0x272456[_0x5a1edd(0x12f)]===_0x5a1edd(0x1e5)||_0x272456[_0x5a1edd(0x12f)]===_0x5a1edd(0xe3))return{..._0x2245b3,'status':this[_0x5a1edd(0x14a)](_0x272456[_0x5a1edd(0x178)])[_0x5a1edd(0xdb)],'completedAt':_0x272456[_0x5a1edd(0x1ab)],'items':_0x2245b3[_0x5a1edd(0x181)][_0x5a1edd(0xee)](_0x17016f=>activeConversationItem(_0x17016f[_0x5a1edd(0xdb)])?{..._0x17016f,'status':completedStatusForRun(this[_0x5a1edd(0x14a)](_0x272456[_0x5a1edd(0x178)])[_0x5a1edd(0xdb)]),'completedAt':_0x272456[_0x5a1edd(0x1ab)]}:_0x17016f)};return _0x2245b3;};if(_0x362f40===undefined)this[_0x24a088(0xf1)](_0x272456[_0x24a088(0x178)],_0x2d6bbf);else{const _0x341a16=this[_0x24a088(0xf5)][_0x24a088(0x11f)](_0xcd1893[_0x24a088(0xd8)])??[];this[_0x24a088(0xf5)][_0x24a088(0x173)](_0xcd1893[_0x24a088(0xd8)],_0x341a16[_0x24a088(0xee)](_0x4a4feb=>_0x4a4feb['id']===_0x362f40?_0x2d6bbf(_0x4a4feb):_0x4a4feb));}}}function terminal(_0x175ab3){const _0xaf2104=_0x2d6bcd;return[_0xaf2104(0x1da),_0xaf2104(0x1c6),_0xaf2104(0x145),_0xaf2104(0x1a8),_0xaf2104(0x125)][_0xaf2104(0x1e2)](_0x175ab3);}function terminalTurn(_0x418e10){const _0xb7fed6=_0x2d6bcd;return[_0xb7fed6(0x1da),_0xb7fed6(0x1c6),_0xb7fed6(0x145),_0xb7fed6(0x1a8),_0xb7fed6(0x125)][_0xb7fed6(0x1e2)](_0x418e10);}function transitionAllowed(_0x4ccb01,_0x138c08){return!terminal(_0x4ccb01)||_0x4ccb01===_0x138c08;}function isRecord(_0x227a99){const _0x4620e1=_0x2d6bcd;return typeof _0x227a99===_0x4620e1(0x18b)&&_0x227a99!==null;}function readableText(_0x198ce5){const _0x4e3d37=_0x2d6bcd;return isRecord(_0x198ce5)&&typeof _0x198ce5[_0x4e3d37(0x184)]===_0x4e3d37(0x17c)?_0x198ce5[_0x4e3d37(0x184)]:'';}function conversationItemFromEvent(_0x3eeafc){const _0xcb31b6=_0x2d6bcd;if(isRecord(_0x3eeafc[_0xcb31b6(0x13a)])){const _0x5599d3=_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0xfd)];if(typeof _0x5599d3===_0xcb31b6(0x17c)&&_0x5599d3[_0xcb31b6(0x15b)]>-0x30*-0x47+-0x1f20+0x11d0){if(_0x3eeafc[_0xcb31b6(0x12f)]===_0xcb31b6(0x1cf))return{'itemId':_0xcb31b6(0x148)+_0x5599d3,'kind':_0xcb31b6(0xeb),'status':_0xcb31b6(0x1e7),'payload':{'approvalId':_0x5599d3,'approvalStatus':_0xcb31b6(0x1e7),'approval':_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0x13a)],'expiresAt':_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0x1d8)]},'merge':![]};if(_0x3eeafc[_0xcb31b6(0x12f)]===_0xcb31b6(0x11b)){const _0x5d44c8=_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0x1a3)];if(_0x5d44c8===_0xcb31b6(0x1bd)||_0x5d44c8===_0xcb31b6(0x1d6))return{'itemId':_0xcb31b6(0x148)+_0x5599d3,'kind':_0xcb31b6(0xeb),'status':_0x5d44c8===_0xcb31b6(0x1bd)?_0xcb31b6(0x199):_0xcb31b6(0xd7),'payload':{'approvalId':_0x5599d3,'approvalStatus':_0x5d44c8},'merge':!![]};}if(_0x3eeafc[_0xcb31b6(0x12f)]===_0xcb31b6(0x186))return{'itemId':_0xcb31b6(0x148)+_0x5599d3,'kind':_0xcb31b6(0xeb),'status':_0xcb31b6(0x145),'payload':{'approvalId':_0x5599d3,'approvalStatus':_0xcb31b6(0xe7)},'merge':!![]};}}if(_0x3eeafc[_0xcb31b6(0x12f)]!==_0xcb31b6(0x177)||!isRecord(_0x3eeafc[_0xcb31b6(0x13a)]))return undefined;const _0x4cfb69=_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0x16d)],_0x3c2fe1=_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0x143)],_0x1abdf9=_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0xdb)],_0x1f8f70=_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0x13a)];if(typeof _0x4cfb69!==_0xcb31b6(0x17c)||_0x4cfb69[_0xcb31b6(0x15b)]===0x2*-0x923+0x1*-0x205+-0x5*-0x40f||_0x4cfb69[_0xcb31b6(0x15b)]>0x1726+-0x1a02+0x334||typeof _0x3c2fe1!==_0xcb31b6(0x17c)||!projectableConversationKind(_0x3c2fe1)||typeof _0x1abdf9!==_0xcb31b6(0x17c)||!projectableConversationStatus(_0x1abdf9)||!isRecord(_0x1f8f70))return undefined;const _0x36adda=_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0x154)];return{'itemId':_0x4cfb69,'kind':_0x3c2fe1,'status':_0x1abdf9,'payload':_0x1f8f70,'merge':_0x3eeafc[_0xcb31b6(0x13a)][_0xcb31b6(0x130)]===!![],..._0x36adda===_0xcb31b6(0x1b6)||_0x36adda===_0xcb31b6(0xf2)||_0x36adda===_0xcb31b6(0x1cb)?{'append':_0x36adda}:{}};}function _0x5066(){const _0x27cd3e=['C2XPy2u','BM9KzuLK','y3vYCMvUDfr1CM5gB3jsDw4','DhvYBG','Aw5JBhvKzxm','C29YDa','BgLZDenVBNzLCNnHDgLVBKL0zw1Z','CNvUlMzHAwXLza','uLvox1rfuK1jtKfm','uevoreLorW','uLvox1nuqvrfx0LovKfmsuq','zMLSzv9JAgfUz2u','y29TCgXLDgvKqxq','uLvotKLorW','zxHWAxjLqxbWCM92ywW','DhjPBq','revdteLoruq','C2vZC2LVBKLK','Chj1BMvszxrHAw5Lzev4zwn1DgLVBLr1CM5Z','uvvfvuvFvKvsu0LptL9dt05gteLdva','C3rHDhvZ','DhvYBKLK','u0vtu0LptL9dsefotKvmx1rps0vox0LovKfmsuq','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','DxnLCL9PBNb1Df9Yzxf1zxn0','uLvox05pvf9gt1vora','Dgv4Dc5KzwX0yq','qvbquK9wquXFquXsrufewv9erunjreve','CNvUlNjLAMvJDgvK','AxnjBNrLz2vY','C291CMnLu2vXDwvUy2u','ywrK','rvHqsvjfra','uLvox0vyrunvveLptL9ot1rFq1vsuKvova','DxbKyxrLu2vZC2LVBK1LDgfKyxrH','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','yxbWCM92ywXFCMvXDwvZDa','CgfYC2u','DhjHBNnPDgLVBLj1BG','BwfW','qvbquK9wquXFtK9ux0zpvu5e','y29KzxG6','DxbKyxrLq3vYCMvUDfr1CM5gB3jsDw4','B3v0Chv0uhjLDMLLDW','CNvUu2vXDwvUy2vZ','uvvfvuvFsvrftv9jtLzbteLe','DhvYBNm','CMvTB3zLqwDLBNrtzxnZAw9U','qvbquK9wquXFtK9ux0vyueLsruq','y29TBwfUza','ode4mZC0ouT3y2D0ta','C2v0tMf0AxzLq29UDhjVBa','CgLUBMvK','Aw5KzxHpzG','yxbWCM92ywXjza','AgfZ','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','DMfSDwu','BwvZC2fNzvn1yM1PC3nPB25Z','zwzMB3j0','CgLUBMvKqxq','C2v0q2HHBM5LBfrVA2vU','BMv4Da','D2fYBMLUzW','DMfSDwvZ','yMfZzty0','y29TCgXLDgvuDxjU','u0vtu0LptL9bq1rjvKu','CxvLDwvjDgvTCW','Cgf1C2vtzxnZAw9UuxvLDwu','z2v0uxvLDwvjDgvT','u0vtu0LptL9fwfrfuK5btf9jrf9jtLzbteLe','z2v0qxbWCM92ywW','zMfPBgvK','y3jLyxrLuxvLDwvjDgvT','y3jLyxrLtwvZC2fNzvj1BG','y29UDgvUDa','zMLUze1LC3nHz2vsDw4','qvbquK9wquXFrvHqsvjfra','ufjfuefssu5h','C2vZC2LVBNm','otaYnwXPu3LPua','C3rYAw5NAwz5','q1vtve9n','yxbWCM92ywWUzgvJAwrLza','BgfZDefJDgL2Axr5qxq','zMLUzefNzw50u2vZC2LVBKj5rxH0zxjUywXtzxnZAw9U','Bwf4','z2v0','y29TBwfUzf9LEgvJDxrPB24','DxbKyxrLqwDLBNrtzxnZAw9Uq29UzMLNDxjHDgLVBG','BgLTAxq','ywrVChrsDw4','nLLsCLj0AG','te9tva','uLvotKvs','CMvXDwLYzufWChjVDMfS','z2v0qwDLBNrtzxnZAw9U','C2vZC2LVBLf1zxvL','yNL0zuXLBMD0Aa','tuvtu0fhrv9btfjfqurzx1fvrvvfra','zMLUze1LC3nHz2vtDwjTAxnZAw9U','y3jLyxrLvhvYBG','v09ss1nqqunfx0jvu1K','zxzLBNruExbL','BwvYz2u','B25sDw5dAgfUz2vK','rvzftLrFu0vrvuvoq0vFr0fq','zMfPBgvKtwvZC2fNzvn1yM1PC3nPB25Z','ywn0AxzLu2vZC2LVBLj1BG','uLvox1rvuK5FtK9ux0zpvu5e','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','AxnbCNjHEq','su5Fufjpr1jfu1m','y3DK','Cgf5Bg9Hza','tufyx0nptvbmrvrfrf9uvvjou19qrvjFu0vtu0LptG','z2v0uNvU','rvHurvjoquW','uLvox1rvuK5FtK9ux1jfqurz','CNvUDgLTztO','Aw1Hz2uV','CNvUCW','yxr0ywnOBwvUDhm','A2LUza','DxrMoa','q0foq0vmteve','mtiZmtKYnMHQv3bNCG','CMvVCMrLCLnLC3nPB25rDwv1zq','yxbWCM92ywW6','C2L6zq','CMvXDwLYzvj1BG','Aw1Hz2vjBMrLEa','CxvLDwvKsxrLBxm','zgvSzxrL','DxnLCKL0zw1jza','y3vYC29Y','Dg9tDhjPBMC','DgL0Bgu','uLvox09xtKvex0jzx0fot1rirvjFvvnfuG','CMvHC29UAw5Nx3n1Bw1HCNK','yxbWzw5K','C2vXDwvUy2u','y3jLyxrLqwDLBNrtzxnZAw9U','zxHLy3v0Aw9UCW','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','v09ss1nqqunfx05pvf9gt1vora','CMvWBgfJzq','BgvUz3rO','u0vtu0LptL9usvrmrv9jtLzbteLe','zMXHDe1HCa','Aw5KzxG','Dg9VBf9JywXS','odGXodK2BxPUrMjj','y3jLyxrLrxHLy3v0Aw9U','u1rbuLrjtKC','Aw5PDgLHDgvKqNLvC2vYswq','CNvUBMvY','Bw9KzwW','DxbKyxrLvhvYBKzVCLj1BG','CMvXDwLYzvnLC3nPB24','zMLUAxnOuNvU','BNvTyMvY','zxjYB3i','y29UDgv4Df9JB21Wywn0Aw9U','CMvJB25JAwXLuNvU','AxrLBuLK','uLvox0fmuKvbrfLFqunusvzf','CMvTB3zLv29YA3nWywnL','BgLZDefWChjVDMfSCW','qundrvburuq','CNvUlNj1BM5PBMC','C2v0','yMfZzty0DxjS','CMvZDw1Lu2vZC2LVBLf1zxvL','y3vYCMvUDfj1BK1LC3nHz2vuzxH0','y29UDMvYC2f0Aw9UlML0zw0','CNvUswq','CxvLDwu','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','BgLZDefNzw50u2vZC2LVBNm','C3rYAw5N','u0vtu0LptL9ot1rFrK9vtKq','D29YA3nWywnLswq','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','BgfZDfj1BLnLCxvLBMnL','AxrLBxm','BwfYA2rVD24','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','Dgv4Da','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','yxbWCM92ywWUzxHWAxjLza','zMLUza','tuvtu0fhrv9btfjfqurzx1nuqvjuruq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','CMv2AxnPB24','B2jQzwn0','A2v5CW','BM93','ChjPB3jPDgL6zvf1zxvLsxrLBq','C2nVCgu','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','y2fUB25Py2fSuNvUswq','CgXHBG','CMvWBgfJzvnLC3nPB24','Cgf1C2vKuxvLDwvZ','mZyZmhnqq09kqq','AgfZqwn0AxzLv29YA3nWywnLtgvHC2u','C2v0rxH0zxjUywXtzxnZAw9Uswq','CNvUlNn0yxj0zwq','q09nueXfveve','zxH0zxjUywXtzxnZAw9Uswq','CNvU','y2XPzw50twvZC2fNzuLK','ChjVAMvJDev2zw50','BgLZDe5VBNrLCM1PBMfSuNvUCW','zgvSzxrLuxvLDwvjDgvT','qvvutW','y2XHAw1ozxH0uxvLDwvjDgvT','CNvUlMnVBxbSzxrLza','zgvJAxnPB24','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','CxvLDwvjDgvTswq','C3rHCNrZv2L0Aa','C29Tzq','su5urvjsvvburuq','z2v0v29YA3nWywnL','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','y3jLyxrLzef0','uLvox0fdveLwrq','BgLZDfj1BNngB3jtzxnZAw9U','DMvYC2LVBG','oMfZC2LZDgfUDdO','ywnJzxnZ','zMLUzeXHC3q','Dw5RBM93BG','ntiZnZG2uej5D0TY','yNvTCff1zxvLvMvYC2LVBG','zxHWAxjLrhvLqxbWCM92ywXZ','C2vJDgLVBNm','mJeYndq2nZbnEfPhqxq','zMLUzeXHC3rjBMrLEa','y3vZDg9TvgL0Bgu','zMLSDgvY','qunusvzf','BwLU','qvbquK9wruq','BgvHC2vZ','CMv0ywLUzwrfEgvJDxrPB25uDxjUCW','mteYsNHxELj0','u0vtu0LptL9jrf9dt05gteLdva','CxvLDwvwzxjZAw9UCW','yxnZAxn0yw50x21LC3nHz2u','CNvUBMvYvgL0Bgu','tufsx01btKfhruq','rKfjteve','zNjVBq','qvbquK9wquXFquXsrufewv9fweLtvfm','zgvJAwrLqxbWCM92ywW','CMvXDwLYzvf1zxvLsxrLBq','B3v0Chv0u3vTBwfYEq','CMvTB3zLvgvYBwLUywXsDw4','DxbKyxrLuxvLDwvjDgvT','zw1PDfj1BKnOyw5Nzwq','yxbWCM92ywWUCMvXDwvZDa','CMvJB3jKq29TBwfUzev4zwn1DgLVBG','yxbWzw5KuNvUrxzLBNq','y3vYCMvUDev4zwn1DgLVBKLK','C3rHCNrLzef0','odu5mJaZBK1yAuTi','DxnLCL9TzxnZywDL','uKvkrunuruq','DgvYBwLUywXsDw5jzhm','zxHWAxjLC0f0','mtfYvufmELy','u1vdq0vfreve','BMf0AxzLq29UDhjVBa','yxbWCM92ywXZ','y3jLyxrLqxbWCM92ywW'];_0x5066=function(){return _0x27cd3e;};return _0x5066();}function projectableConversationKind(_0x5569d6){const _0x3066a4=_0x2d6bcd;return _0x5569d6===_0x3066a4(0x1c3)||_0x5569d6===_0x3066a4(0x153)||_0x5569d6===_0x3066a4(0x15f)||_0x5569d6===_0x3066a4(0x120)||_0x5569d6===_0x3066a4(0xeb)||_0x5569d6===_0x3066a4(0xdf)||_0x5569d6===_0x3066a4(0x192)||_0x5569d6===_0x3066a4(0xd2)||_0x5569d6===_0x3066a4(0x16b)||_0x5569d6===_0x3066a4(0x1b2)||_0x5569d6===_0x3066a4(0x106)||_0x5569d6===_0x3066a4(0x16a);}function _0x2c99(_0x282d30,_0x356526){_0x282d30=_0x282d30-(-0x1*0xe82+0xaf+0xea5);const _0x8dfaa3=_0x5066();let _0x39eec4=_0x8dfaa3[_0x282d30];if(_0x2c99['nxobOI']===undefined){var _0x358bd8=function(_0xb2e80a){const _0x52d838='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21b626='',_0x36484e='';for(let _0x2fc4a4=0x2519*0x1+-0x1bed+-0x496*0x2,_0x250967,_0x7facd8,_0x545e9b=-0x14cb+-0x5*0x663+0x34ba;_0x7facd8=_0xb2e80a['charAt'](_0x545e9b++);~_0x7facd8&&(_0x250967=_0x2fc4a4%(0xdf0+0x66c+-0x1458*0x1)?_0x250967*(0x8f0+0x4*0x8cb+-0x2bdc)+_0x7facd8:_0x7facd8,_0x2fc4a4++%(-0x14cf*0x1+0x10d3+0x400))?_0x21b626+=String['fromCharCode'](-0x5c*0x62+0x18b3*0x1+-0x86*-0x16&_0x250967>>(-(-0xd3*-0x23+0xf5+-0x1dcc)*_0x2fc4a4&-0x1*0x4c7+-0x9fd+0x3*0x4ee)):-0x216*-0x1+-0x11*-0x215+-0x257b){_0x7facd8=_0x52d838['indexOf'](_0x7facd8);}for(let _0x127a73=0x244c+-0x21a4+0x11*-0x28,_0x291b83=_0x21b626['length'];_0x127a73<_0x291b83;_0x127a73++){_0x36484e+='%'+('00'+_0x21b626['charCodeAt'](_0x127a73)['toString'](-0x952+0x9af+-0x4d*0x1))['slice'](-(0x2*-0xadc+0x265d*-0x1+0x3c17));}return decodeURIComponent(_0x36484e);};_0x2c99['ewfMJD']=_0x358bd8,_0x2c99['LaqADZ']={},_0x2c99['nxobOI']=!![];}const _0x2e9b1b=_0x8dfaa3[-0x17*-0x190+0xa1a*0x1+-0xa6*0x47];_0x2c99['RjedWB']!==_0x2e9b1b&&(_0x2c99['LaqADZ']={},_0x2c99['RjedWB']=_0x2e9b1b);const _0x1a4a49=_0x2c99['LaqADZ'][_0x282d30];return _0x1a4a49===undefined?(_0x39eec4=_0x2c99['ewfMJD'](_0x39eec4),_0x2c99['LaqADZ'][_0x282d30]=_0x39eec4):_0x39eec4=_0x1a4a49,_0x39eec4;}function projectableConversationStatus(_0x5ed417){const _0x199e0e=_0x2d6bcd;return[_0x199e0e(0x1e7),_0x199e0e(0x138),_0x199e0e(0x199),_0x199e0e(0x1c6),_0x199e0e(0xd7),_0x199e0e(0x145),_0x199e0e(0x1a8)][_0x199e0e(0x1e2)](_0x5ed417);}function mergeConversationItemPayload(_0x1e0fc8,_0x1ca423){const _0x5e8487=_0x2d6bcd,_0x453686=_0x1ca423[_0x5e8487(0x130)]&&isRecord(_0x1e0fc8)?_0x1e0fc8:{},_0x16e7e7={..._0x453686,..._0x1ca423[_0x5e8487(0x13a)]};if(_0x1ca423[_0x5e8487(0x154)]===_0x5e8487(0x1b6)){const _0x185faf=Array[_0x5e8487(0x137)](_0x453686[_0x5e8487(0x1b6)])?_0x453686[_0x5e8487(0x1b6)]:[],_0x4dddd1=Array[_0x5e8487(0x137)](_0x1ca423[_0x5e8487(0x13a)][_0x5e8487(0x1b6)])?_0x1ca423[_0x5e8487(0x13a)][_0x5e8487(0x1b6)]:[],_0x479c9b=new Map();for(const _0x112cd8 of[..._0x185faf,..._0x4dddd1]){if(!isRecord(_0x112cd8)||typeof _0x112cd8[_0x5e8487(0x15e)]!==_0x5e8487(0x169)||!Number[_0x5e8487(0xe4)](_0x112cd8[_0x5e8487(0x15e)])||_0x112cd8[_0x5e8487(0x15e)]<-0x21c1+-0x4a*-0x33+0x1303||typeof _0x112cd8[_0x5e8487(0x184)]!==_0x5e8487(0x17c))continue;_0x479c9b[_0x5e8487(0x173)](_0x112cd8[_0x5e8487(0x15e)],appendProjectionText(_0x479c9b[_0x5e8487(0x11f)](_0x112cd8[_0x5e8487(0x15e)])??'',_0x112cd8[_0x5e8487(0x184)]));}_0x16e7e7[_0x5e8487(0x1b6)]=[..._0x479c9b][_0x5e8487(0x1e3)](([_0x5e31ce],[_0x3751da])=>_0x5e31ce-_0x3751da)[_0x5e8487(0xee)](([_0x5ac13a,_0x51814b])=>({'index':_0x5ac13a,'text':_0x51814b}));}if(_0x1ca423[_0x5e8487(0x154)]===_0x5e8487(0xf2)){const _0x36252b=typeof _0x453686[_0x5e8487(0xf2)]===_0x5e8487(0x17c)?_0x453686[_0x5e8487(0xf2)]:'',_0x441f73=typeof _0x1ca423[_0x5e8487(0x13a)][_0x5e8487(0xf2)]===_0x5e8487(0x17c)?_0x1ca423[_0x5e8487(0x13a)][_0x5e8487(0xf2)]:'';_0x16e7e7[_0x5e8487(0xf2)]=appendProjectionText(_0x36252b,_0x441f73);}if(_0x1ca423[_0x5e8487(0x154)]===_0x5e8487(0x1cb)){const _0x468b5d=typeof _0x453686[_0x5e8487(0x1cb)]===_0x5e8487(0x17c)?_0x453686[_0x5e8487(0x1cb)]:'',_0x3a61a6=typeof _0x1ca423[_0x5e8487(0x13a)][_0x5e8487(0x1cb)]===_0x5e8487(0x17c)?_0x1ca423[_0x5e8487(0x13a)][_0x5e8487(0x1cb)]:'';_0x16e7e7[_0x5e8487(0x1cb)]=appendProjectionText(_0x468b5d,_0x3a61a6);}return _0x16e7e7;}function appendProjectionText(_0x487a5f,_0x982f60){const _0x52b524=_0x2d6bcd,_0x3fe01b=''+_0x487a5f+_0x982f60;return _0x3fe01b[_0x52b524(0x15b)]<=0x3*-0x8a1+-0xbb*-0x5+0x3d4c?_0x3fe01b:_0x3fe01b[_0x52b524(0x1de)](0x2*-0x24e+-0x780+-0x3e*-0x32,-0x2ffa+-0x28e2+0x7feb)+'…';}function activeConversationItem(_0x5d033f){const _0xfc4edf=_0x2d6bcd;return _0x5d033f===_0xfc4edf(0x1e7)||_0x5d033f===_0xfc4edf(0x138);}function completedConversationItem(_0x3e012c){return!activeConversationItem(_0x3e012c);}function completedStatusForRun(_0x48311b){const _0xdee1d1=_0x2d6bcd;if(_0x48311b===_0xdee1d1(0x1a8))return _0xdee1d1(0x1a8);if(_0x48311b===_0xdee1d1(0x145))return _0xdee1d1(0x145);if(_0x48311b===_0xdee1d1(0x1c6))return _0xdee1d1(0x1c6);return _0xdee1d1(0x199);}function executionStatusForRun(_0x3d3773){const _0x515ed9=_0x2d6bcd;if(_0x3d3773===_0x515ed9(0x1c6))return _0x515ed9(0x1c6);if(_0x3d3773===_0x515ed9(0x1a8)||_0x3d3773===_0x515ed9(0x145))return _0x515ed9(0x1a8);if(_0x3d3773===_0x515ed9(0x1da))return _0x515ed9(0x1da);if(_0x3d3773===_0x515ed9(0xd4))return _0x515ed9(0xd4);return _0x515ed9(0x162);}function terminalExecution(_0x562ab7){const _0x10d2c1=_0x2d6bcd;return _0x562ab7===_0x10d2c1(0x1da)||_0x562ab7===_0x10d2c1(0x1c6)||_0x562ab7===_0x10d2c1(0x1a8);}function encodeCursor(_0x4600bd,_0x155ebd){const _0x39373d=_0x2d6bcd;return Buffer[_0x39373d(0x1c7)](JSON[_0x39373d(0x119)]({'scope':_0x4600bd,'value':_0x155ebd}))[_0x39373d(0x150)](_0x39373d(0x174));}function decodeCursor(_0x36e905,_0x410209){const _0xac5b3c=_0x2d6bcd;if(_0x36e905===undefined)return 0x1327*-0x2+-0x1*-0x58f+0x53*0x65;try{const _0x2c1121=JSON[_0xac5b3c(0xec)](Buffer[_0xac5b3c(0x1c7)](_0x36e905,_0xac5b3c(0x174))[_0xac5b3c(0x150)](_0xac5b3c(0x144)));return _0x2c1121[_0xac5b3c(0x18f)]===_0x410209&&Number[_0xac5b3c(0xe4)](_0x2c1121[_0xac5b3c(0x100)])&&_0x2c1121[_0xac5b3c(0x100)]>=-0x1e83+-0x1*-0xa9f+0x13e4?_0x2c1121[_0xac5b3c(0x100)]:0x71*-0x49+0xe45*-0x1+0x2e7e;}catch{return-0x1e0+0xb2*-0x29+0x1e62;}}
2
+ const _0x34e5c0=_0x41e1;(function(_0x2b8f4c,_0x45dd7f){const _0xf4cc3c=_0x41e1,_0x24ce23=_0x2b8f4c();while(!![]){try{const _0x33c5aa=parseInt(_0xf4cc3c(0x22e))/(-0x4f1+0x5*0x11b+0x1*-0x95)+parseInt(_0xf4cc3c(0x218))/(0x1bb6+0x80f*-0x1+-0x13a5)+-parseInt(_0xf4cc3c(0x1d7))/(-0x17d8*-0x1+0x5dc+-0x1db1)*(parseInt(_0xf4cc3c(0x1eb))/(-0x329*0x2+0x1941+0x12eb*-0x1))+-parseInt(_0xf4cc3c(0x221))/(0xbf9*0x3+0x6f3+-0x7*0x61f)+-parseInt(_0xf4cc3c(0x133))/(-0x3d5+0x1f11+-0x1b36)+-parseInt(_0xf4cc3c(0x192))/(-0x6c3*-0x1+0x2619+-0x1f3*0x17)*(-parseInt(_0xf4cc3c(0x168))/(0x1c12+-0xa85+0x45*-0x41))+parseInt(_0xf4cc3c(0x198))/(0x1dfc+0x2239+-0x402c);if(_0x33c5aa===_0x45dd7f)break;else _0x24ce23['push'](_0x24ce23['shift']());}catch(_0x359aa6){_0x24ce23['push'](_0x24ce23['shift']());}}}(_0x2fa1,-0xb0502+-0x6bcd+-0x6f4a*-0x2e));import{randomUUID}from'node:crypto';function _0x2fa1(){const _0x57d257=['yNvTCff1zxvLvMvYC2LVBG','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','ndm1ndiXn0PisxPfAa','uLvox0vyrunvveLptL9ot1rFq1vsuKvova','rKfjteve','z2v0qxbWCM92ywW','y29UDgv4Df9JB21Wywn0Aw9U','CMvHC29UAw5Nx3n1Bw1HCNK','nJC1nZC0oxPPB255Bq','yxr0ywnOBwvUDhm','u0vtu0LptL9fwfrfuK5btf9jrf9jtLzbteLe','zMfPBgvKtwvZC2fNzvn1yM1PC3nPB25Z','u0vtu0LptL9dsefotKvmx1rps0vox0LovKfmsuq','C2vZC2LVBKLK','zMLUza','Dgv4Da','C2nVCgu','C2vZC2LVBNm','CNvUswq','CxvLDwvjDgvTCW','CxvLDwvKsxrLBxm','uLvox09xtKvex0jzx0fot1rirvjFvvnfuG','yxbWCM92ywW6','u0vtu0LptL9bq1rjvKu','CNvUCW','A2v5CW','tuvtu0fhrv9btfjfqurzx1nuqvjuruq','q1vtve9n','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','qvbquK9wquXFrvHqsvjfra','y29TBwfUza','DhvYBKLK','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','y29UDgvUDa','uLvox0fmuKvbrfLFqunusvzf','BgLTAxq','AgfZ','y3vYC29Y','y29TCgXLDgvKqxq','y2XPzw50twvZC2fNzuLK','zMXHDe1HCa','C2XPy2u','BgLZDefWChjVDMfSCW','CMvJB25JAwXLuNvU','yxbWCM92ywWUzxHWAxjLza','yxnZAxn0yw50x21LC3nHz2u','AxrLBxm','Dw5RBM93BG','C3rYAw5N','yxbWCM92ywXFCMvXDwvZDa','uKvkrunuruq','oMfZC2LZDgfUDdO','DhvYBG','C2L6zq','ywn0AxzLu2vZC2LVBLj1BG','CNvUu2vXDwvUy2vZ','Dg9tDhjPBMC','te9tva','uLvox0fdveLwrq','Cgf1C2vtzxnZAw9UuxvLDwu','ywrVChrsDw4','qvbquK9wquXFtK9ux0zpvu5e','C291CMnLu2vXDwvUy2u','y29KzxG6','uLvox1rfuK1jtKfm','CNvUlNn0yxj0zwq','yMfZzty0DxjS','y29TBwfUzf9LEgvJDxrPB24','C2v0','y3jLyxrLqxbWCM92ywW','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','m1z1qw1vEG','C2vJDgLVBNm','y3jLyxrLuxvLDwvjDgvT','CgXHBG','BgLZDfj1BNngB3jtzxnZAw9U','zw1PDfj1BKnOyw5Nzwq','y2fUB25Py2fSuNvUswq','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','CMvXDwLYzvf1zxvLsxrLBq','qvbquK9wquXFquXsrufewv9fweLtvfm','C2v0rxH0zxjUywXtzxnZAw9Uswq','ChjVAMvJDev2zw50','CMvXDwLYzufWChjVDMfS','Aw5PDgLHDgvKqNLvC2vYswq','yxbWCM92ywXZ','uLvotKvs','zMLUzeXHC3q','CgfYC2u','C3rHCNrZv2L0Aa','C3rHCNrLzef0','mZy3ntCYngDcyLf4zq','yxbWCM92ywWUzgvJAwrLza','DhjHBNnPDgLVBLj1BG','zxHWAxjLrhvLqxbWCM92ywXZ','zMLUze1LC3nHz2vsDw4','Aw5KzxG','C2vZC2LVBLf1zxvL','BwfW','zMLSzv9JAgfUz2u','y3jLyxrLqwDLBNrtzxnZAw9U','z2v0uxvLDwvjDgvT','zgvSzxrL','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','AgfZqwn0AxzLv29YA3nWywnLtgvHC2u','uLvox05pvf9gt1vora','qvbquK9wruq','uevoreLorW','zxHWAxjLC0f0','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','Aw1Hz2vjBMrLEa','B3v0Chv0u3vTBwfYEq','revdteLoruq','v09ss1nqqunfx0jvu1K','CNvUlMnVBxbSzxrLza','tufsx01btKfhruq','zxzLBNruExbL','Aw1Hz2uV','AxnjBNrLz2vY','uLvox1nuqvrfx0LovKfmsuq','zwzMB3j0','DhvYBNm','DgvYBwLUywXsDw5jzhm','CMvWBgfJzq','DgL0BgvtB3vYy2u','Dgv4Dc5KzwX0yq','C3rYAw5NAwz5','DxbKyxrLvhvYBKzVCLj1BG','rvHurvjoquW','BwvYz2u','AxnbCNjHEq','q09nueXfveve','qunusvzf','DxbKyxrLu2vZC2LVBK1LDgfKyxrH','CNvUlNj1BM5PBMC','CMvTB3zLqwDLBNrtzxnZAw9U','mta4mdCZnfD5shbZtG','D29YA3nWywnLswq','C3rHDhvZ','uLvotKLorW','u0vtu0LptL9usvrmrv9jtLzbteLe','C29Tzq','zgvJAwrLqxbWCM92ywW','yNL0zuXLBMD0Aa','D2fYBMLUzW','mty5ntmXmgDXruDfqG','ChjPB3jPDgL6zvf1zxvLsxrLBq','CNvUlMzHAwXLza','y29UDMvYC2f0Aw9UlML0zw0','CMvZDw1Lu2vZC2LVBLf1zxvL','qvbquK9wquXFtK9ux0vyueLsruq','C29YDa','zxjYB3i','C2v0tMf0AxzLq29UDhjVBa','zgvJAxnPB24','DgvZDa','z2v0qwDLBNrtzxnZAw9U','DxrMoa','nJCXmdeWCvLYzM9z','CMv2AxnPB24','yxbWCM92ywWUCMvXDwvZDa','CMvTB3zLvgvYBwLUywXsDw4','CgLUBMvK','DxbKyxrLqwDLBNrtzxnZAw9Uq29UzMLNDxjHDgLVBG','CxvLDwvjDgvTswq','A2LUza','CgLUBMvKqxq','CMv0ywLUzwrfEgvJDxrPB25uDxjUCW','q0foq0vmteve','y29TCgXLDgvuDxjU','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','BwfYA2rVD24','B25sDw5dAgfUz2vK','CMvVCMrLCLnLC3nPB25rDwv1zq','tufyx0nptvbmrvrfrf9uvvjou19qrvjFu0vtu0LptG','BgLZDe5VBNrLCM1PBMfSuNvUCW','u0vtu0LptL9jrf9dt05gteLdva','DMfSDwvZ','yxbWzw5KuNvUrxzLBNq','su5urvjsvvburuq','DMvYC2LVBG','yMfZzty0','y3jLyxrLvhvYBG','CNvUBMvY','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','DgL0Bgu','BMv4Da','CNvUlNjLAMvJDgvK','y3vZDg9TvgL0Bgu','ndu5mZa2nLLWtgvsuW','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','y3vYCMvUDfr1CM5gB3jsDw4','z2v0','y3jLyxrLrxHLy3v0Aw9U','y3vYCMvUDfj1BK1LC3nHz2vuzxH0','qundrvburuq','Aw5KzxHpzG','B3v0Chv0uhjLDMLLDW','DxnLCL9TzxnZywDL','BgvUz3rO','CNvUDgLTztO','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','B2jQzwn0','DxnLCKL0zw1jza','BgLZDefNzw50u2vZC2LVBNm','BMf0AxzLq29UDhjVBa','zxH0zxjUywXtzxnZAw9Uswq','qvbquK9wquXFquXsrufewv9erunjreve','DxbKyxrLuxvLDwvjDgvT','u1rbuLrjtKC','CxvLDwu','zMLUzefNzw50u2vZC2LVBKj5rxH0zxjUywXtzxnZAw9U','uvvfvuvFvKvsu0LptL9dt05gteLdva','Aw5JBhvKzxm','CxvLDwvwzxjZAw9UCW','C2v0q2HHBM5LBfrVA2vU','BwLZC2LVBJO','v09ss1nqqunfx05pvf9gt1vora','DxnLCL9PBNb1Df9Yzxf1zxn0','CMvWBgfJzvnLC3nPB24','DhjPBq','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','rvHqsvjfra','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','zMLSDgvY','CMvTB3zLv29YA3nWywnL','z2v0v29YA3nWywnL','zMLUAxnOuNvU','BwLU','CMvXDwLYzvnLC3nPB24','tuvtu0fhrv9btfjfqurzx1fvrvvfra','BgfZDefJDgL2Axr5qxq','qvvutW','zxHWAxjLqxbWCM92ywW','u1vdq0vfreve','zxHLy3v0Aw9UCW','DMfSDwu','u0vtu0LptL9ot1rFrK9vtKq','y3vYCMvUDev4zwn1DgLVBKLK','y3DK','C2vXDwvUy2u','Dg9VBf9JywXS','ogPQD2XZva','BgLZDenVBNzLCNnHDgLVBKL0zw1Z','ywrK','Bw9KzwW','CMvJB3jKq29TBwfUzev4zwn1DgLVBG','uLvox1rvuK5FtK9ux0zpvu5e','BgfZDfj1BLnLCxvLBMnL','CMvXDwLYzvj1BG','su5Fufjpr1jfu1m','y3jLyxrLtwvZC2fNzvj1BG','y3jLyxrLzef0','rvzftLrFu0vrvuvoq0vFr0fq','yxbWzw5K','CNvUBMvYvgL0Bgu','BM9KzuLK','zMLUze1LC3nHz2vtDwjTAxnZAw9U','CNvU','y2XHAw1ozxH0uxvLDwvjDgvT','BgvHC2vZ','zgvSzxrLuxvLDwvjDgvT','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','Chj1BMvszxrHAw5Lzev4zwn1DgLVBLr1CM5Z','zNjVBq','zMfPBgvK','DxbKyxrLq3vYCMvUDfr1CM5gB3jsDw4','zMLUzeXHC3rjBMrLEa','yxbWCM92ywXjza','uvvfvuvFsvrftv9jtLzbteLe','BwvZC2fNzvn1yM1PC3nPB25Z','Cgf5Bg9Hza','BNvTyMvY','Cgf1C2vKuxvLDwvZ','ufjfuefssu5h','uLvox1rvuK5FtK9ux1jfqurz','Bwf4','ChjVAMvJDe1LC3nHz2vbDhrHy2HTzw50CW','BM93','z2v0uNvU','AxrLBuLK','ywnJzxnZ'];_0x2fa1=function(){return _0x57d257;};return _0x2fa1();}export class NodeRuntimeState{[_0x34e5c0(0x176)];[_0x34e5c0(0x158)];[_0x34e5c0(0x18c)];[_0x34e5c0(0x23c)];static [_0x34e5c0(0x23e)]=-0x804+-0x1*0x2329+0x2b37;[_0x34e5c0(0x1a1)]=new Map();[_0x34e5c0(0x1a8)]=new Map();[_0x34e5c0(0x184)]=new Map();[_0x34e5c0(0x19b)]=new Map();[_0x34e5c0(0x1a3)]=new Map();[_0x34e5c0(0x161)]=new Map();[_0x34e5c0(0x237)]=new Map();[_0x34e5c0(0x1c7)]=new Map();[_0x34e5c0(0x209)]=new Map();[_0x34e5c0(0x1e5)]=new Map();[_0x34e5c0(0x17a)]=new Map();[_0x34e5c0(0x1a4)]=new Map();[_0x34e5c0(0x14c)]=new Map();[_0x34e5c0(0x187)]=new Set();[_0x34e5c0(0x20a)]=new Set();constructor(_0x46a539,_0x548c18,_0x452f8b=Date[_0x34e5c0(0x18c)],_0x5cca27){const _0xe51c3b=_0x34e5c0;this[_0xe51c3b(0x176)]=_0x46a539,this[_0xe51c3b(0x158)]=_0x548c18,this[_0xe51c3b(0x18c)]=_0x452f8b,this[_0xe51c3b(0x23c)]=_0x5cca27;}[_0x34e5c0(0x23a)](){const _0x379765=_0x34e5c0;return this[_0x379765(0x17a)][_0x379765(0x1c5)];}[_0x34e5c0(0x1c6)](_0x58ee32){const _0x1560ed=_0x34e5c0,_0x4a2487=this[_0x1560ed(0x17a)][_0x1560ed(0x136)](_0x58ee32);return _0x4a2487===undefined?undefined:this[_0x1560ed(0x1a8)][_0x1560ed(0x136)](_0x4a2487);}[_0x34e5c0(0x155)](_0x597680){const _0x112994=_0x34e5c0;return this[_0x112994(0x17a)][_0x112994(0x1b4)](_0x597680);}[_0x34e5c0(0x1f4)](_0x56f617){const _0x7e1407=_0x34e5c0;if(this[_0x7e1407(0x158)](_0x56f617[_0x7e1407(0x219)])===undefined)throw new Error(_0x7e1407(0x14f));const _0x31e18a=this[_0x7e1407(0x18c)](),_0x1d885c=_0x56f617[_0x7e1407(0x144)]??randomUUID();if(this[_0x7e1407(0x1a1)][_0x7e1407(0x1b4)](_0x1d885c))throw new Error(_0x7e1407(0x240));const _0x10a87c={'id':_0x1d885c,'nodeId':this[_0x7e1407(0x176)](),'workspaceId':_0x56f617[_0x7e1407(0x219)],'runner':_0x56f617[_0x7e1407(0x247)],'externalSessionId':_0x56f617[_0x7e1407(0x144)]??null,'nativeControl':_0x56f617[_0x7e1407(0x144)]===undefined?_0x7e1407(0x203):_0x56f617[_0x7e1407(0x143)]??_0x7e1407(0x210),'channelToken':null,'cwd':_0x56f617[_0x7e1407(0x165)],'model':_0x56f617[_0x7e1407(0x16b)]??null,'effort':_0x56f617[_0x7e1407(0x208)]??null,'access':_0x56f617[_0x7e1407(0x18f)]??null,'customTitle':null,'runnerTitle':_0x56f617[_0x7e1407(0x249)]?.[_0x7e1407(0x152)]()[_0x7e1407(0x1b9)](-0x2*-0x68+0x19*0x13c+-0x1fac,0x212c+-0x3f4+-0x1c98)||null,'pinnedAt':null,'titleSource':_0x7e1407(0x15e),'lastActivityAt':_0x31e18a,'createdAt':_0x31e18a};return this[_0x7e1407(0x1a1)][_0x7e1407(0x1d4)](_0x10a87c['id'],_0x10a87c),_0x10a87c;}[_0x34e5c0(0x1cc)](_0x314093){const _0x2d8ea8=_0x34e5c0;if(this[_0x2d8ea8(0x20a)][_0x2d8ea8(0x1b4)](_0x314093[_0x2d8ea8(0x1a2)]))throw new Error(_0x2d8ea8(0x1d0));let _0x39edec=this[_0x2d8ea8(0x1a1)][_0x2d8ea8(0x136)](_0x314093[_0x2d8ea8(0x19d)]);if(_0x39edec===undefined){const _0x2e108c=this[_0x2d8ea8(0x18c)]();_0x39edec={'id':_0x314093[_0x2d8ea8(0x19d)],'nodeId':this[_0x2d8ea8(0x176)](),'workspaceId':_0x314093[_0x2d8ea8(0x219)]??_0x2d8ea8(0x13e)+_0x314093[_0x2d8ea8(0x165)],'runner':_0x314093[_0x2d8ea8(0x247)],'externalSessionId':_0x314093[_0x2d8ea8(0x144)]??null,'nativeControl':_0x314093[_0x2d8ea8(0x144)]===undefined?_0x2d8ea8(0x203):_0x2d8ea8(0x210),'channelToken':null,'cwd':_0x314093[_0x2d8ea8(0x165)],'model':null,'effort':null,'access':null,'customTitle':null,'runnerTitle':null,'pinnedAt':null,'titleSource':_0x2d8ea8(0x15e),'lastActivityAt':_0x2e108c,'createdAt':_0x2e108c},this[_0x2d8ea8(0x1a1)][_0x2d8ea8(0x1d4)](_0x39edec['id'],_0x39edec);}const _0x5ea06c=this[_0x2d8ea8(0x18d)](_0x314093[_0x2d8ea8(0x1a2)]);if(_0x5ea06c!==undefined)return _0x5ea06c;const _0x831ca4=this[_0x2d8ea8(0x18c)](),_0x75aa7f={'id':_0x314093[_0x2d8ea8(0x1a2)],'sessionId':_0x39edec['id'],'nodeId':this[_0x2d8ea8(0x176)](),'workspaceId':_0x39edec[_0x2d8ea8(0x219)],'runner':_0x39edec[_0x2d8ea8(0x247)],'status':_0x2d8ea8(0x147),'recoveryState':_0x2d8ea8(0x214),'version':0x0,'clientMessageId':_0x314093[_0x2d8ea8(0x1b7)]??_0x314093[_0x2d8ea8(0x1a2)],'createdAt':_0x831ca4,'startedAt':_0x831ca4,'completedAt':null,'updatedAt':_0x831ca4};return this[_0x2d8ea8(0x1a8)][_0x2d8ea8(0x1d4)](_0x75aa7f['id'],_0x75aa7f),this[_0x2d8ea8(0x17a)][_0x2d8ea8(0x1d4)](_0x75aa7f[_0x2d8ea8(0x19d)],_0x75aa7f['id']),this[_0x2d8ea8(0x1dc)](_0x75aa7f,_0x39edec),_0x75aa7f;}[_0x34e5c0(0x22c)](_0x58a83b){const _0x3aa36e=_0x34e5c0;return this[_0x3aa36e(0x1a1)][_0x3aa36e(0x136)](_0x58a83b)??[...this[_0x3aa36e(0x1a1)][_0x3aa36e(0x241)]()][_0x3aa36e(0x19e)](_0x1af383=>_0x1af383[_0x3aa36e(0x144)]===_0x58a83b);}[_0x34e5c0(0x142)](){const _0x25a93e=_0x34e5c0;return[...this[_0x25a93e(0x1a1)][_0x25a93e(0x241)]()][_0x25a93e(0x227)]((_0x35471c,_0x3dada7)=>_0x3dada7[_0x25a93e(0x15d)]-_0x35471c[_0x25a93e(0x15d)]);}[_0x34e5c0(0x149)](_0x3428a4,_0x53d469){const _0x16daf3=_0x34e5c0;return[...this[_0x16daf3(0x1a1)][_0x16daf3(0x241)]()][_0x16daf3(0x19e)](_0x2e13c7=>_0x2e13c7[_0x16daf3(0x247)]===_0x3428a4&&_0x2e13c7[_0x16daf3(0x144)]===_0x53d469);}[_0x34e5c0(0x233)](_0x27895b){const _0x428d52=_0x34e5c0;return this[_0x428d52(0x151)](_0x27895b[_0x428d52(0x19d)],{'model':_0x27895b[_0x428d52(0x16b)],'effort':_0x27895b[_0x428d52(0x208)],'access':_0x27895b[_0x428d52(0x18f)]});}[_0x34e5c0(0x153)](_0xb41243,_0x1f7172){const _0x1ef746=_0x34e5c0;return this[_0x1ef746(0x151)](_0xb41243,{'access':_0x1f7172});}[_0x34e5c0(0x229)](_0x3bff46,_0x520913){const _0x47cbaf=_0x34e5c0;this[_0x47cbaf(0x151)](_0x3bff46,{'nativeControl':_0x520913});}[_0x34e5c0(0x1e1)](_0x5bf3dd,_0x4dcbd6){const _0x2c5647=_0x34e5c0;if(_0x4dcbd6[_0x2c5647(0x13d)]===-0x158b+0x2*0xd64+-0x1bf*0x3)throw new Error(_0x2c5647(0x19a));this[_0x2c5647(0x1fd)](_0x5bf3dd,_0x4dcbd6);}[_0x34e5c0(0x1fd)](_0x9d560a,_0x15c173){const _0x2b5ce7=_0x34e5c0;if(_0x15c173[_0x2b5ce7(0x13d)]===0x1350+-0x1b7c+0x82c)throw new Error(_0x2b5ce7(0x19a));const _0x535c52=this[_0x2b5ce7(0x15b)](_0x9d560a);if(_0x9d560a===_0x15c173)return this[_0x2b5ce7(0x151)](_0x9d560a,{'externalSessionId':_0x15c173,'nativeControl':_0x2b5ce7(0x203)});const _0x22ea71=this[_0x2b5ce7(0x1a1)][_0x2b5ce7(0x136)](_0x15c173);if(_0x22ea71!==undefined&&_0x22ea71['id']!==_0x535c52['id'])throw new Error(_0x2b5ce7(0x240));const _0x17cf37={..._0x535c52,'id':_0x15c173,'externalSessionId':_0x15c173,'nativeControl':_0x2b5ce7(0x203)},_0x50612c=this[_0x2b5ce7(0x1db)](_0x9d560a),_0x537c59=this[_0x2b5ce7(0x209)][_0x2b5ce7(0x136)](_0x9d560a)??[],_0x171da7=this[_0x2b5ce7(0x1a4)][_0x2b5ce7(0x136)](_0x9d560a),_0x4445e2=this[_0x2b5ce7(0x14c)][_0x2b5ce7(0x136)](_0x9d560a),_0x2ea578=this[_0x2b5ce7(0x17a)][_0x2b5ce7(0x136)](_0x9d560a),_0x3cf610=this[_0x2b5ce7(0x187)][_0x2b5ce7(0x1b4)](_0x9d560a);this[_0x2b5ce7(0x1a1)][_0x2b5ce7(0x1f6)](_0x9d560a),this[_0x2b5ce7(0x1a1)][_0x2b5ce7(0x1d4)](_0x15c173,_0x17cf37);for(const _0x11907e of _0x50612c)this[_0x2b5ce7(0x1a8)][_0x2b5ce7(0x1d4)](_0x11907e['id'],{..._0x11907e,'sessionId':_0x15c173});this[_0x2b5ce7(0x209)][_0x2b5ce7(0x1f6)](_0x9d560a),this[_0x2b5ce7(0x209)][_0x2b5ce7(0x1d4)](_0x15c173,_0x537c59[_0x2b5ce7(0x1f2)](_0x207ae8=>({..._0x207ae8,'sessionId':_0x15c173,'items':_0x207ae8[_0x2b5ce7(0x1be)][_0x2b5ce7(0x1f2)](_0x540948=>({..._0x540948,'sessionId':_0x15c173}))})));if(_0x171da7!==undefined){this[_0x2b5ce7(0x1a4)][_0x2b5ce7(0x1f6)](_0x9d560a),this[_0x2b5ce7(0x1a4)][_0x2b5ce7(0x1d4)](_0x15c173,_0x171da7);for(const _0x1af567 of _0x171da7){const _0x125478=this[_0x2b5ce7(0x1a3)][_0x2b5ce7(0x136)](_0x1af567);if(_0x125478!==undefined)this[_0x2b5ce7(0x1a3)][_0x2b5ce7(0x1d4)](_0x1af567,{..._0x125478,'sessionId':_0x15c173});}}_0x4445e2!==undefined&&(this[_0x2b5ce7(0x14c)][_0x2b5ce7(0x1f6)](_0x9d560a),this[_0x2b5ce7(0x14c)][_0x2b5ce7(0x1d4)](_0x15c173,_0x4445e2));_0x2ea578!==undefined&&(this[_0x2b5ce7(0x17a)][_0x2b5ce7(0x1f6)](_0x9d560a),this[_0x2b5ce7(0x17a)][_0x2b5ce7(0x1d4)](_0x15c173,_0x2ea578));_0x3cf610&&(this[_0x2b5ce7(0x187)][_0x2b5ce7(0x1f6)](_0x9d560a),this[_0x2b5ce7(0x187)][_0x2b5ce7(0x16a)](_0x15c173));for(const [_0x5189ce,_0x5d9787]of[...this[_0x2b5ce7(0x184)]]){if(!_0x5189ce[_0x2b5ce7(0x1e9)](_0x9d560a+'\x00'))continue;this[_0x2b5ce7(0x184)][_0x2b5ce7(0x1f6)](_0x5189ce),this[_0x2b5ce7(0x184)][_0x2b5ce7(0x1d4)](''+_0x15c173+_0x5189ce[_0x2b5ce7(0x1b9)](_0x9d560a[_0x2b5ce7(0x13d)]),_0x5d9787);}for(const [_0x34f392,_0x598764]of this[_0x2b5ce7(0x237)])if(_0x598764[_0x2b5ce7(0x19d)]===_0x9d560a)this[_0x2b5ce7(0x237)][_0x2b5ce7(0x1d4)](_0x34f392,{..._0x598764,'sessionId':_0x15c173});for(const _0x15334a of _0x50612c){const _0xc14cf8=this[_0x2b5ce7(0x16f)](_0x15334a['id']);this[_0x2b5ce7(0x1dc)](_0xc14cf8,_0x17cf37);}return _0x17cf37;}[_0x34e5c0(0x14d)](_0x248642,_0x33442e){const _0x4f55ad=_0x34e5c0;if(_0x33442e[_0x4f55ad(0x13d)]<0x1d2*0x2+-0xa94+0x700)throw new Error(_0x4f55ad(0x19c));this[_0x4f55ad(0x151)](_0x248642,{'channelToken':_0x33442e});}[_0x34e5c0(0x215)](_0x362659){const _0x78fbee=_0x34e5c0,_0x276d74=this[_0x78fbee(0x15b)](_0x362659[_0x78fbee(0x19d)]),_0x55a939=_0x362659[_0x78fbee(0x132)]===undefined?_0x276d74[_0x78fbee(0x132)]:_0x362659[_0x78fbee(0x132)]?.[_0x78fbee(0x152)]()||null;if(_0x55a939!==null&&_0x55a939[_0x78fbee(0x13d)]>0x5*-0x5b8+0x26af+-0x977)throw new Error(_0x78fbee(0x21c));return this[_0x78fbee(0x151)](_0x276d74['id'],{'customTitle':_0x55a939,'pinnedAt':_0x362659[_0x78fbee(0x232)]===undefined?_0x276d74[_0x78fbee(0x236)]:_0x362659[_0x78fbee(0x232)]?this[_0x78fbee(0x18c)]():null,'titleSource':_0x55a939===null?_0x78fbee(0x15e):_0x78fbee(0x1ab)});}[_0x34e5c0(0x1d6)](_0xbd22af,_0x47f382){const _0x583e8c=_0x34e5c0,_0x2c2285=this[_0x583e8c(0x15b)](_0xbd22af),_0xac146c=_0x47f382[_0x583e8c(0x152)]()[_0x583e8c(0x20b)](/\s+/g,'\x20')[_0x583e8c(0x1b9)](0x1*-0x3d2+0x1f6d*-0x1+-0x509*-0x7,-0x15ed+-0x112+-0x179f*-0x1);if(_0xac146c[_0x583e8c(0x13d)]===-0x1*-0xd98+0x230+-0xa*0x194||_0x2c2285[_0x583e8c(0x132)]!==null||_0x2c2285[_0x583e8c(0x175)]!==null)return _0x2c2285;return this[_0x583e8c(0x151)](_0xbd22af,{'runnerTitle':_0xac146c,'titleSource':_0x583e8c(0x15e)});}[_0x34e5c0(0x1de)](_0x137d8c,_0x48ec4d){const _0x3715f2=_0x34e5c0,_0x407efe=this[_0x3715f2(0x15b)](_0x137d8c),_0x1f96d9=_0x48ec4d[_0x3715f2(0x152)]()[_0x3715f2(0x20b)](/\s+/g,'\x20')[_0x3715f2(0x1b9)](-0x4ce*-0x1+-0xf5+-0x3d9,0x13cd+0x2279+-0xda*0x3f);if(_0x1f96d9[_0x3715f2(0x13d)]===0x4*-0x626+-0x24+0x18bc||_0x407efe[_0x3715f2(0x132)]!==null||_0x407efe[_0x3715f2(0x175)]===_0x1f96d9||_0x407efe[_0x3715f2(0x20c)]===_0x3715f2(0x15e)&&isDefaultRunnerTitle(_0x1f96d9))return _0x407efe;return this[_0x3715f2(0x151)](_0x137d8c,{'runnerTitle':_0x1f96d9,'titleSource':_0x3715f2(0x1e6)});}[_0x34e5c0(0x171)](_0x22d6dc){const _0x2244fd=_0x34e5c0,_0x3ec517=_0x22d6dc[_0x2244fd(0x19d)]+'\x00'+_0x22d6dc[_0x2244fd(0x1b7)],_0x896268=this[_0x2244fd(0x184)][_0x2244fd(0x136)](_0x3ec517);if(_0x896268!==undefined){if(_0x896268[_0x2244fd(0x235)]!==_0x2244fd(0x178))throw new Error(_0x2244fd(0x15c));return{'run':this[_0x2244fd(0x16f)](_0x896268['id']),'created':![]};}const _0x532221=this[_0x2244fd(0x15b)](_0x22d6dc[_0x2244fd(0x19d)]);if(this[_0x2244fd(0x1c6)](_0x532221['id'])!==undefined)throw new Error(_0x2244fd(0x1b2));const _0x57ebbb=this[_0x2244fd(0x18c)](),_0x59c3ea={'id':_0x22d6dc[_0x2244fd(0x1a2)]??randomUUID(),'sessionId':_0x532221['id'],'nodeId':this[_0x2244fd(0x176)](),'workspaceId':_0x532221[_0x2244fd(0x219)],'runner':_0x532221[_0x2244fd(0x247)],'status':_0x2244fd(0x147),'recoveryState':_0x2244fd(0x214),'version':0x0,'clientMessageId':_0x22d6dc[_0x2244fd(0x1b7)],..._0x22d6dc[_0x2244fd(0x1e4)]===undefined?{}:{'initiatedByUserId':_0x22d6dc[_0x2244fd(0x1e4)]},'createdAt':_0x57ebbb,'startedAt':_0x57ebbb,'completedAt':null,'updatedAt':_0x57ebbb},_0x3e24de=this[_0x2244fd(0x18b)](_0x59c3ea['id'],_0x22d6dc[_0x2244fd(0x199)]??[]),_0x1bbece={'id':randomUUID(),'sessionId':_0x532221['id'],'turnId':'','runId':_0x59c3ea['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x2244fd(0x13c),'status':_0x2244fd(0x213),'payload':{'clientMessageId':_0x22d6dc[_0x2244fd(0x1b7)],'text':_0x22d6dc[_0x2244fd(0x1b1)],'contexts':[],'attachments':_0x3e24de,'delivery':_0x2244fd(0x139)},'startedAt':_0x57ebbb,'completedAt':_0x57ebbb},_0x59b079={'id':randomUUID(),'sessionId':_0x532221['id'],'runId':_0x59c3ea['id'],'userItemId':_0x1bbece['id'],'status':_0x2244fd(0x188),'model':_0x532221[_0x2244fd(0x16b)],'effort':_0x532221[_0x2244fd(0x208)],'access':_0x532221[_0x2244fd(0x18f)],'items':[_0x1bbece],'startedAt':_0x57ebbb,'completedAt':null},_0x4e858b={..._0x59b079,'items':[{..._0x1bbece,'turnId':_0x59b079['id']}]};return this[_0x2244fd(0x1a8)][_0x2244fd(0x1d4)](_0x59c3ea['id'],_0x59c3ea),this[_0x2244fd(0x184)][_0x2244fd(0x1d4)](_0x3ec517,{'kind':_0x2244fd(0x178),'id':_0x59c3ea['id']}),this[_0x2244fd(0x17a)][_0x2244fd(0x1d4)](_0x532221['id'],_0x59c3ea['id']),this[_0x2244fd(0x209)][_0x2244fd(0x1d4)](_0x532221['id'],[...this[_0x2244fd(0x209)][_0x2244fd(0x136)](_0x532221['id'])??[],_0x4e858b]),this[_0x2244fd(0x151)](_0x532221['id'],{'lastActivityAt':_0x57ebbb}),this[_0x2244fd(0x1dc)](_0x59c3ea,this[_0x2244fd(0x15b)](_0x532221['id'])),{'run':_0x59c3ea,'created':!![]};}[_0x34e5c0(0x1d9)](_0x23b41e){const _0x1845ca=_0x34e5c0,_0x52be34=_0x23b41e[_0x1845ca(0x19d)]+'\x00'+_0x23b41e[_0x1845ca(0x1b7)],_0x50652f=this[_0x1845ca(0x184)][_0x1845ca(0x136)](_0x52be34);if(_0x50652f!==undefined){if(_0x50652f[_0x1845ca(0x235)]!==_0x1845ca(0x148))throw new Error(_0x1845ca(0x1aa));return{'item':this[_0x1845ca(0x1df)](_0x50652f['id']),'created':![]};}const _0x5eb174=this[_0x1845ca(0x15b)](_0x23b41e[_0x1845ca(0x19d)]),_0x130a25=this[_0x1845ca(0x1c6)](_0x5eb174['id']);if(_0x130a25!==undefined&&_0x130a25[_0x1845ca(0x1e4)]!==undefined&&_0x23b41e[_0x1845ca(0x1e4)]!==_0x130a25[_0x1845ca(0x1e4)])throw new Error(_0x1845ca(0x1a5));const _0x5450fe=this[_0x1845ca(0x18c)](),_0x40497c={'id':_0x23b41e[_0x1845ca(0x234)]??randomUUID(),'sessionId':_0x5eb174['id'],'workspaceId':_0x5eb174[_0x1845ca(0x219)],'runner':_0x5eb174[_0x1845ca(0x247)],'clientMessageId':_0x23b41e[_0x1845ca(0x1b7)],'content':_0x23b41e[_0x1845ca(0x1b1)],'attachments':_0x23b41e[_0x1845ca(0x199)]??[],..._0x23b41e[_0x1845ca(0x1e4)]===undefined?{}:{'initiatedByUserId':_0x23b41e[_0x1845ca(0x1e4)]},'createdAt':_0x5450fe};return this[_0x1845ca(0x1a3)][_0x1845ca(0x1d4)](_0x40497c['id'],_0x40497c),this[_0x1845ca(0x184)][_0x1845ca(0x1d4)](_0x52be34,{'kind':_0x1845ca(0x148),'id':_0x40497c['id']}),this[_0x1845ca(0x1a4)][_0x1845ca(0x1d4)](_0x5eb174['id'],[...this[_0x1845ca(0x1a4)][_0x1845ca(0x136)](_0x5eb174['id'])??[],_0x40497c['id']]),this[_0x1845ca(0x190)](_0x5eb174['id']),{'item':_0x40497c,'created':!![]};}[_0x34e5c0(0x1f1)](_0x19844b){const _0x37346c=_0x34e5c0;return{'version':this[_0x37346c(0x14c)][_0x37346c(0x136)](_0x19844b)??-0x1f99+-0x87d*-0x3+0x622,'paused':this[_0x37346c(0x187)][_0x37346c(0x1b4)](_0x19844b),'itemIds':this[_0x37346c(0x1a4)][_0x37346c(0x136)](_0x19844b)??[]};}[_0x34e5c0(0x1f5)](_0x497a71){const _0x3d2790=_0x34e5c0;return this[_0x3d2790(0x1a3)][_0x3d2790(0x136)](_0x497a71);}[_0x34e5c0(0x179)](_0x556356){const _0x27b74e=_0x34e5c0;if(this[_0x27b74e(0x187)][_0x27b74e(0x1b4)](_0x556356))return undefined;const _0x3946e0=this[_0x27b74e(0x1c6)](_0x556356);if(_0x3946e0===undefined)return undefined;const _0x16923c=this[_0x27b74e(0x1a4)][_0x27b74e(0x136)](_0x556356)??[],_0x476877=_0x16923c[0x1*-0x54+-0x2b*0x54+0xe70];if(_0x476877===undefined)return undefined;this[_0x27b74e(0x1a4)][_0x27b74e(0x1d4)](_0x556356,_0x16923c[_0x27b74e(0x1b9)](-0x1*0x2045+-0x5*-0x18+0x2*0xfe7)),this[_0x27b74e(0x190)](_0x556356);const _0x4e30e9=this[_0x27b74e(0x1df)](_0x476877);this[_0x27b74e(0x1a3)][_0x27b74e(0x1f6)](_0x476877),this[_0x27b74e(0x184)][_0x27b74e(0x1d4)](_0x4e30e9[_0x27b74e(0x19d)]+'\x00'+_0x4e30e9[_0x27b74e(0x1b7)],{'kind':_0x27b74e(0x178),'id':_0x3946e0['id']});const _0x57b1e1=this[_0x27b74e(0x246)](_0x3946e0,_0x4e30e9[_0x27b74e(0x1b7)],_0x4e30e9[_0x27b74e(0x1b1)],_0x4e30e9[_0x27b74e(0x199)]);return this[_0x27b74e(0x1dc)](_0x3946e0,this[_0x27b74e(0x15b)](_0x556356)),{'item':_0x4e30e9,'turn':_0x57b1e1};}[_0x34e5c0(0x1b0)](_0x5b8db2){const _0x62a9c7=_0x34e5c0,_0x3f4a6f=this[_0x62a9c7(0x1df)](_0x5b8db2);if(this[_0x62a9c7(0x1c6)](_0x3f4a6f[_0x62a9c7(0x19d)])!==undefined)throw new Error(_0x62a9c7(0x1b2));const _0x40b8a9=this[_0x62a9c7(0x1a4)][_0x62a9c7(0x136)](_0x3f4a6f[_0x62a9c7(0x19d)])??[];if(_0x40b8a9[0x13*-0xae+0x1*-0x1adf+0x27c9]!==_0x5b8db2)throw new Error(_0x62a9c7(0x183));this[_0x62a9c7(0x1a4)][_0x62a9c7(0x1d4)](_0x3f4a6f[_0x62a9c7(0x19d)],_0x40b8a9[_0x62a9c7(0x1b9)](0x986+0x837+0x1*-0x11bc)),this[_0x62a9c7(0x1a3)][_0x62a9c7(0x1f6)](_0x5b8db2),this[_0x62a9c7(0x184)][_0x62a9c7(0x1f6)](_0x3f4a6f[_0x62a9c7(0x19d)]+'\x00'+_0x3f4a6f[_0x62a9c7(0x1b7)]),this[_0x62a9c7(0x190)](_0x3f4a6f[_0x62a9c7(0x19d)]);const _0x11391c=this[_0x62a9c7(0x171)]({'sessionId':_0x3f4a6f[_0x62a9c7(0x19d)],'clientMessageId':_0x3f4a6f[_0x62a9c7(0x1b7)],'content':_0x3f4a6f[_0x62a9c7(0x1b1)],..._0x3f4a6f[_0x62a9c7(0x199)][_0x62a9c7(0x13d)]===-0x1a6*0x11+-0x251d*-0x1+-0x917?{}:{'attachments':_0x3f4a6f[_0x62a9c7(0x199)]},..._0x3f4a6f[_0x62a9c7(0x1e4)]===undefined?{}:{'initiatedByUserId':_0x3f4a6f[_0x62a9c7(0x1e4)]}}),_0x28d09b=this[_0x62a9c7(0x135)](_0x11391c[_0x62a9c7(0x178)]['id']);if(_0x28d09b===undefined)throw new Error(_0x62a9c7(0x16d));return{'run':_0x11391c[_0x62a9c7(0x178)],'turn':_0x28d09b};}[_0x34e5c0(0x1cb)](_0x216db0){const _0xabe714=_0x34e5c0;this[_0xabe714(0x187)][_0xabe714(0x16a)](_0x216db0),this[_0xabe714(0x190)](_0x216db0);}[_0x34e5c0(0x225)](_0x422e82){const _0x521012=_0x34e5c0;if(!this[_0x521012(0x187)][_0x521012(0x1f6)](_0x422e82))return;this[_0x521012(0x190)](_0x422e82);}[_0x34e5c0(0x23d)](_0x2bdd61,_0x31688f,_0x4b8485){const _0x33c5b2=_0x34e5c0,_0x29aab9=this[_0x33c5b2(0x1a4)][_0x33c5b2(0x136)](_0x2bdd61)??[];if(this[_0x33c5b2(0x1f1)](_0x2bdd61)[_0x33c5b2(0x244)]!==_0x31688f||_0x29aab9[_0x33c5b2(0x13d)]!==_0x4b8485[_0x33c5b2(0x13d)]||new Set(_0x29aab9)[_0x33c5b2(0x1c5)]!==_0x29aab9[_0x33c5b2(0x13d)]||_0x29aab9[_0x33c5b2(0x21d)](_0x16647c=>!_0x4b8485[_0x33c5b2(0x14b)](_0x16647c)))throw new Error(_0x33c5b2(0x14a));if(_0x4b8485[_0x33c5b2(0x21d)](_0x1a089c=>this[_0x33c5b2(0x1a3)][_0x33c5b2(0x136)](_0x1a089c)?.[_0x33c5b2(0x19d)]!==_0x2bdd61))throw new Error(_0x33c5b2(0x183));this[_0x33c5b2(0x1a4)][_0x33c5b2(0x1d4)](_0x2bdd61,[..._0x4b8485]),this[_0x33c5b2(0x190)](_0x2bdd61);}[_0x34e5c0(0x222)](_0x35525d){const _0x3ef7b8=_0x34e5c0,_0x1b4221=this[_0x3ef7b8(0x1df)](_0x35525d),_0x110756=this[_0x3ef7b8(0x1a4)][_0x3ef7b8(0x136)](_0x1b4221[_0x3ef7b8(0x19d)])??[];if(!_0x110756[_0x3ef7b8(0x14b)](_0x35525d))throw new Error(_0x3ef7b8(0x183));return this[_0x3ef7b8(0x1a4)][_0x3ef7b8(0x1d4)](_0x1b4221[_0x3ef7b8(0x19d)],[_0x35525d,..._0x110756[_0x3ef7b8(0x156)](_0x24d031=>_0x24d031!==_0x35525d)]),this[_0x3ef7b8(0x190)](_0x1b4221[_0x3ef7b8(0x19d)]),_0x1b4221;}[_0x34e5c0(0x146)](_0x355993,_0xc93343){const _0xb0549d=_0x34e5c0,_0x4a2eb5=this[_0xb0549d(0x1df)](_0x355993);if(!(this[_0xb0549d(0x1a4)][_0xb0549d(0x136)](_0x4a2eb5[_0xb0549d(0x19d)])??[])[_0xb0549d(0x14b)](_0x355993))throw new Error(_0xb0549d(0x183));const _0x35bc9a={..._0x4a2eb5,'content':_0xc93343};return this[_0xb0549d(0x1a3)][_0xb0549d(0x1d4)](_0x355993,_0x35bc9a),this[_0xb0549d(0x190)](_0x4a2eb5[_0xb0549d(0x19d)]),_0x35bc9a;}[_0x34e5c0(0x17c)](_0x46fb90,_0xc5005c){const _0x2beea2=_0x34e5c0,_0x134a58=this[_0x2beea2(0x1df)](_0x46fb90),_0x30e04d={..._0x134a58,'attachments':_0xc5005c};return this[_0x2beea2(0x1a3)][_0x2beea2(0x1d4)](_0x46fb90,_0x30e04d),_0x30e04d;}[_0x34e5c0(0x17b)](_0x337fd7){const _0x211043=_0x34e5c0,_0x181c39=this[_0x211043(0x1df)](_0x337fd7),_0x5f190c=this[_0x211043(0x1a4)][_0x211043(0x136)](_0x181c39[_0x211043(0x19d)])??[];if(!_0x5f190c[_0x211043(0x14b)](_0x337fd7))throw new Error(_0x211043(0x183));this[_0x211043(0x1a4)][_0x211043(0x1d4)](_0x181c39[_0x211043(0x19d)],_0x5f190c[_0x211043(0x156)](_0x423c96=>_0x423c96!==_0x337fd7)),this[_0x211043(0x190)](_0x181c39[_0x211043(0x19d)]),this[_0x211043(0x1a3)][_0x211043(0x1f6)](_0x337fd7);for(const [_0x565e20,_0x11f24d]of this[_0x211043(0x184)])if(_0x11f24d[_0x211043(0x235)]===_0x211043(0x148)&&_0x11f24d['id']===_0x337fd7)this[_0x211043(0x184)][_0x211043(0x1f6)](_0x565e20);}[_0x34e5c0(0x138)](_0x15bc89){const _0x1b5a08=_0x34e5c0,_0x4513f9=this[_0x1b5a08(0x16f)](_0x15bc89),_0x32ca16=(this[_0x1b5a08(0x209)][_0x1b5a08(0x136)](_0x4513f9[_0x1b5a08(0x19d)])??[])[_0x1b5a08(0x1e7)](_0x1400e0=>_0x1400e0[_0x1b5a08(0x1a2)]===_0x15bc89),_0x4a499e=_0x32ca16?.[_0x1b5a08(0x1be)][_0x1b5a08(0x19e)](_0x563186=>_0x563186['id']===_0x32ca16[_0x1b5a08(0x141)]);return isRecord(_0x4a499e?.[_0x1b5a08(0x185)])&&typeof _0x4a499e[_0x1b5a08(0x185)][_0x1b5a08(0x19f)]===_0x1b5a08(0x1c0)?_0x4a499e[_0x1b5a08(0x185)][_0x1b5a08(0x19f)]:'';}[_0x34e5c0(0x248)](_0x3e7b8b,_0x3adb9e){const _0x3d876c=_0x34e5c0,_0x6fb8ee=this[_0x3d876c(0x18b)](_0x3e7b8b,_0x3adb9e);this[_0x3d876c(0x180)](_0x3e7b8b,_0x3e4ca1=>({..._0x3e4ca1,'items':_0x3e4ca1[_0x3d876c(0x1be)][_0x3d876c(0x1f2)](_0x3a46b1=>_0x3a46b1['id']===_0x3e4ca1[_0x3d876c(0x141)]&&isRecord(_0x3a46b1[_0x3d876c(0x185)])?{..._0x3a46b1,'payload':{..._0x3a46b1[_0x3d876c(0x185)],'attachments':_0x6fb8ee}}:_0x3a46b1)}));}[_0x34e5c0(0x18d)](_0xd65879){const _0x5d3f28=_0x34e5c0,_0x48f822=this[_0x5d3f28(0x161)][_0x5d3f28(0x136)](_0xd65879)?.[_0x5d3f28(0x1a2)]??_0xd65879;return this[_0x5d3f28(0x1a8)][_0x5d3f28(0x136)](_0x48f822);}[_0x34e5c0(0x1ef)](_0x4ac779,_0xfffe7d){const _0x4e93a1=_0x34e5c0,_0x3c781=this[_0x4e93a1(0x184)][_0x4e93a1(0x136)](_0x4ac779+'\x00'+_0xfffe7d);return _0x3c781?.[_0x4e93a1(0x235)]===_0x4e93a1(0x178)?this[_0x4e93a1(0x1a8)][_0x4e93a1(0x136)](_0x3c781['id']):undefined;}[_0x34e5c0(0x177)](_0x9d48ff,_0x3bbf89){const _0x2a1915=_0x34e5c0,_0x1bb102=this[_0x2a1915(0x184)][_0x2a1915(0x136)](_0x9d48ff+'\x00'+_0x3bbf89);if(_0x1bb102===undefined)return undefined;if(_0x1bb102[_0x2a1915(0x235)]===_0x2a1915(0x178))return{'kind':_0x2a1915(0x178),'run':this[_0x2a1915(0x16f)](_0x1bb102['id'])};const _0x25b630=this[_0x2a1915(0x1df)](_0x1bb102['id']),_0x30cf16=this[_0x2a1915(0x1c6)](_0x9d48ff);if(_0x30cf16===undefined)throw new Error(_0x2a1915(0x1f9));return{'kind':_0x2a1915(0x148),'item':_0x25b630,'run':_0x30cf16};}[_0x34e5c0(0x191)](_0x2a95a6,_0x55fe66){const _0xa6e9b3=_0x34e5c0;return this[_0xa6e9b3(0x19b)][_0xa6e9b3(0x136)](_0x2a95a6+'\x00'+_0x55fe66);}[_0x34e5c0(0x1f7)](_0x3723e6,_0x281ce8){const _0x4590d1=_0x34e5c0,_0x2fb7d7=[...this[_0x4590d1(0x184)]][_0x4590d1(0x19e)](([,_0x3e1554])=>_0x3e1554['id']===_0x3723e6);if(_0x2fb7d7===undefined)return;this[_0x4590d1(0x19b)][_0x4590d1(0x1d4)](_0x2fb7d7[0x2607+0xce+-0x26d5],_0x281ce8);if(this[_0x4590d1(0x19b)][_0x4590d1(0x1c5)]>0xd8d*0x2+0xb7c+0x26*-0xe9)this[_0x4590d1(0x19b)][_0x4590d1(0x1f6)](this[_0x4590d1(0x19b)][_0x4590d1(0x1a9)]()[_0x4590d1(0x24a)]()[_0x4590d1(0x162)]);}[_0x34e5c0(0x1db)](_0x3b376b){const _0x4f0650=_0x34e5c0;return[...this[_0x4f0650(0x1a8)][_0x4f0650(0x241)]()][_0x4f0650(0x156)](_0x2689dd=>_0x2689dd[_0x4f0650(0x19d)]===_0x3b376b)[_0x4f0650(0x227)]((_0x4f64d6,_0x3fd6d1)=>_0x3fd6d1[_0x4f0650(0x172)]-_0x4f64d6[_0x4f0650(0x172)]);}[_0x34e5c0(0x1ed)](_0x28b9cb,_0x3d9d49){const _0x29b4bb=_0x34e5c0,_0x302c6b=this[_0x29b4bb(0x161)][_0x29b4bb(0x136)](_0x28b9cb)?.[_0x29b4bb(0x1a2)]??_0x28b9cb,_0x354e4d=this[_0x29b4bb(0x16f)](_0x302c6b);if(!transitionAllowed(_0x354e4d[_0x29b4bb(0x21a)],_0x3d9d49))throw new Error(_0x29b4bb(0x207));const _0x232e57=this[_0x29b4bb(0x18c)](),_0x15a30d={..._0x354e4d,'status':_0x3d9d49,'version':_0x354e4d[_0x29b4bb(0x244)]+(-0x19f6+-0x2*-0x2d2+0x1453),'completedAt':terminal(_0x3d9d49)?_0x232e57:_0x354e4d[_0x29b4bb(0x1b6)],'updatedAt':_0x232e57};this[_0x29b4bb(0x1a8)][_0x29b4bb(0x1d4)](_0x302c6b,_0x15a30d),this[_0x29b4bb(0x1dc)](_0x15a30d,this[_0x29b4bb(0x15b)](_0x15a30d[_0x29b4bb(0x19d)]));if(terminal(_0x3d9d49)&&this[_0x29b4bb(0x17a)][_0x29b4bb(0x136)](_0x15a30d[_0x29b4bb(0x19d)])===_0x15a30d['id'])this[_0x29b4bb(0x17a)][_0x29b4bb(0x1f6)](_0x15a30d[_0x29b4bb(0x19d)]);return this[_0x29b4bb(0x180)](_0x15a30d['id'],_0xe537ff=>({..._0xe537ff,'status':_0x3d9d49,'completedAt':terminal(_0x3d9d49)?this[_0x29b4bb(0x18c)]():_0xe537ff[_0x29b4bb(0x1b6)],'items':terminal(_0x3d9d49)?_0xe537ff[_0x29b4bb(0x1be)][_0x29b4bb(0x1f2)](_0x5d31f8=>activeConversationItem(_0x5d31f8[_0x29b4bb(0x21a)])?{..._0x5d31f8,'status':completedStatusForRun(_0x3d9d49),'completedAt':this[_0x29b4bb(0x18c)]()}:_0x5d31f8):_0xe537ff[_0x29b4bb(0x1be)]})),_0x15a30d;}[_0x34e5c0(0x242)](_0x3baadc){const _0x5c4ead=_0x34e5c0,_0x2f06b1=this[_0x5c4ead(0x161)][_0x5c4ead(0x136)](_0x3baadc[_0x5c4ead(0x1a2)]),_0xd66bda=_0x2f06b1?.[_0x5c4ead(0x1a2)]??_0x3baadc[_0x5c4ead(0x1a2)];this[_0x5c4ead(0x16f)](_0xd66bda);const _0x40dc9d=this[_0x5c4ead(0x1c7)][_0x5c4ead(0x136)](_0xd66bda)??0x1*-0x38f+-0xe*-0x157+0xf33*-0x1;if(_0x3baadc[_0x5c4ead(0x166)]<=_0x40dc9d)return undefined;if(_0x3baadc[_0x5c4ead(0x166)]>_0x40dc9d+(-0x91c*-0x3+0x4*-0x236+-0x127b))throw new Error(_0x5c4ead(0x173));const _0x327fdb={'runId':_0xd66bda,'sequence':_0x3baadc[_0x5c4ead(0x166)],'eventType':_0x3baadc[_0x5c4ead(0x204)],'payload':_0x3baadc[_0x5c4ead(0x185)],..._0x3baadc[_0x5c4ead(0x21a)]===undefined?{}:{'status':_0x3baadc[_0x5c4ead(0x21a)]},'createdAt':this[_0x5c4ead(0x18c)]()};this[_0x5c4ead(0x1c7)][_0x5c4ead(0x1d4)](_0xd66bda,_0x3baadc[_0x5c4ead(0x166)]);if(_0x2f06b1!==undefined&&_0x3baadc[_0x5c4ead(0x21a)]!==undefined){const _0x572f38=executionStatusForRun(_0x3baadc[_0x5c4ead(0x21a)]);this[_0x5c4ead(0x161)][_0x5c4ead(0x1d4)](_0x3baadc[_0x5c4ead(0x1a2)],{..._0x2f06b1,'status':_0x572f38,'completedAt':terminal(_0x3baadc[_0x5c4ead(0x21a)])?_0x327fdb[_0x5c4ead(0x172)]:_0x2f06b1[_0x5c4ead(0x1b6)]});}if(_0x3baadc[_0x5c4ead(0x21a)]!==undefined&&!terminal(_0x3baadc[_0x5c4ead(0x21a)]))this[_0x5c4ead(0x1ed)](_0xd66bda,_0x3baadc[_0x5c4ead(0x21a)]);this[_0x5c4ead(0x1e2)](_0x327fdb,_0x2f06b1?.[_0x5c4ead(0x1af)]);if(_0x3baadc[_0x5c4ead(0x21a)]!==undefined&&terminal(_0x3baadc[_0x5c4ead(0x21a)])&&_0x2f06b1!==undefined)this[_0x5c4ead(0x239)](_0x2f06b1[_0x5c4ead(0x1af)],_0x3baadc[_0x5c4ead(0x21a)],_0x327fdb[_0x5c4ead(0x172)]);return _0x327fdb;}[_0x34e5c0(0x164)](_0x4e18c){const _0x47c800=_0x34e5c0,_0x5f4b81=this[_0x47c800(0x135)](_0x4e18c);if(_0x5f4b81===undefined)return undefined;for(const [_0x5bddcd,_0x2d9523]of this[_0x47c800(0x161)])if(_0x2d9523[_0x47c800(0x1a2)]===_0x4e18c&&_0x2d9523[_0x47c800(0x1af)]===_0x5f4b81['id']&&!terminalExecution(_0x2d9523[_0x47c800(0x21a)]))return _0x5bddcd;return undefined;}[_0x34e5c0(0x137)](_0x252433){const _0x396012=_0x34e5c0,_0x4cdf9e=this[_0x396012(0x1dd)](_0x252433),_0x5c0335=this[_0x396012(0x135)](_0x4cdf9e);if(_0x5c0335===undefined||_0x5c0335[_0x396012(0x21a)]!==_0x396012(0x188))throw new Error(_0x396012(0x189));const _0x52646c=[...this[_0x396012(0x161)][_0x396012(0x241)]()][_0x396012(0x19e)](_0x27045b=>_0x27045b[_0x396012(0x1a2)]===_0x4cdf9e&&_0x27045b[_0x396012(0x1af)]===_0x5c0335['id']);if(_0x52646c!==undefined)return _0x52646c;const _0x415f93=this[_0x396012(0x18c)](),_0x4931c9={'id':randomUUID(),'runId':_0x4cdf9e,'turnId':_0x5c0335['id'],'status':_0x396012(0x147),'startedAt':_0x415f93,'completedAt':null};return this[_0x396012(0x161)][_0x396012(0x1d4)](_0x4931c9['id'],_0x4931c9),this[_0x396012(0x180)](_0x4cdf9e,_0x577d01=>({..._0x577d01,'items':_0x577d01[_0x396012(0x1be)][_0x396012(0x1f2)](_0x2ba63c=>_0x2ba63c['id']===_0x577d01[_0x396012(0x141)]&&isRecord(_0x2ba63c[_0x396012(0x185)])&&Array[_0x396012(0x212)](_0x2ba63c[_0x396012(0x185)][_0x396012(0x199)])?{..._0x2ba63c,'payload':{..._0x2ba63c[_0x396012(0x185)],'attachments':_0x2ba63c[_0x396012(0x185)][_0x396012(0x199)][_0x396012(0x1f2)](_0xbd1fde=>isRecord(_0xbd1fde)&&typeof _0xbd1fde[_0x396012(0x1fe)]===_0x396012(0x186)?{..._0xbd1fde,'runId':_0x4931c9['id']}:_0xbd1fde)}}:_0x2ba63c)})),_0x4931c9;}[_0x34e5c0(0x1dd)](_0xdfc602){const _0x35654e=_0x34e5c0;return this[_0x35654e(0x161)][_0x35654e(0x136)](_0xdfc602)?.[_0x35654e(0x1a2)]??_0xdfc602;}[_0x34e5c0(0x159)](_0x34990e,_0xc3c57){const _0xd1dbe7=_0x34e5c0;return this[_0xd1dbe7(0x1ed)](this[_0xd1dbe7(0x1dd)](_0x34990e),_0xc3c57);}[_0x34e5c0(0x134)](_0x292dcf){const _0x5c64b3=_0x34e5c0;this[_0x5c64b3(0x15b)](_0x292dcf[_0x5c64b3(0x19d)]);const _0x427336=[...this[_0x5c64b3(0x209)][_0x5c64b3(0x136)](_0x292dcf[_0x5c64b3(0x19d)])??[]][_0x5c64b3(0x1f2)]((_0x13b7ac,_0x3424dc)=>({'turn':_0x13b7ac,'index':_0x3424dc}))[_0x5c64b3(0x227)]((_0x4ac8ba,_0x1e26e2)=>{const _0x342f74=_0x5c64b3,_0x5de2ae=_0x1b10c0=>_0x1b10c0[_0x342f74(0x1be)][_0x342f74(0x19e)](_0x5bbf40=>_0x5bbf40['id']===_0x1b10c0[_0x342f74(0x141)])?.[_0x342f74(0x1ea)]??_0x1b10c0[_0x342f74(0x1ea)]??_0x1b10c0[_0x342f74(0x1b6)]??-0x3cb*0x1+-0xb1*0x25+0x1d60;return _0x5de2ae(_0x4ac8ba[_0x342f74(0x1c4)])-_0x5de2ae(_0x1e26e2[_0x342f74(0x1c4)])||_0x4ac8ba[_0x342f74(0x1f0)]-_0x1e26e2[_0x342f74(0x1f0)];})[_0x5c64b3(0x1f2)](({turn:_0x23bf64})=>_0x23bf64),_0x3f64fd=_0x292dcf[_0x5c64b3(0x1b5)]===undefined?_0x427336[_0x5c64b3(0x13d)]:decodeCursor(_0x292dcf[_0x5c64b3(0x1b5)],_0x292dcf[_0x5c64b3(0x19d)]),_0x1d08d0=Math[_0x5c64b3(0x15a)](Math[_0x5c64b3(0x18a)](_0x292dcf[_0x5c64b3(0x1b3)]??0x2a9+-0x1*0xbe4+0x1*0x959,-0xf4+-0x257b+0x2670),-0x114a+-0xe55*0x1+-0x3*-0xb31),_0x1288c5=Math[_0x5c64b3(0x18a)](0x1416+0x1ffc+-0xd7*0x3e,_0x3f64fd-_0x1d08d0),_0x5c17f4=_0x427336[_0x5c64b3(0x1b9)](_0x1288c5,_0x3f64fd);return{'turns':_0x5c17f4,'nextCursor':_0x1288c5>-0x54f+-0x19*-0x74+-0x605?encodeCursor(_0x292dcf[_0x5c64b3(0x19d)],_0x1288c5):null};}[_0x34e5c0(0x1ac)](_0x4c11fd){const _0x33770d=_0x34e5c0;for(const _0x44f5d3 of this[_0x33770d(0x209)][_0x33770d(0x241)]()){const _0x5b95cb=_0x44f5d3[_0x33770d(0x1e7)](_0xe737be=>_0xe737be[_0x33770d(0x1a2)]===this[_0x33770d(0x1dd)](_0x4c11fd));if(_0x5b95cb!==undefined)return _0x5b95cb;}return undefined;}[_0x34e5c0(0x13f)](_0x3b31de){const _0x3347b0=_0x34e5c0,_0x138b08=this[_0x3347b0(0x161)][_0x3347b0(0x136)](_0x3b31de),_0x1a4682=_0x138b08===undefined?this[_0x3347b0(0x237)][_0x3347b0(0x136)](_0x3b31de):{'sessionId':this[_0x3347b0(0x16f)](_0x138b08[_0x3347b0(0x1a2)])[_0x3347b0(0x19d)],'turnId':_0x138b08[_0x3347b0(0x1af)]};if(_0x1a4682===undefined)return undefined;return(this[_0x3347b0(0x209)][_0x3347b0(0x136)](_0x1a4682[_0x3347b0(0x19d)])??[])[_0x3347b0(0x19e)](_0x35f702=>_0x35f702['id']===_0x1a4682[_0x3347b0(0x1af)]);}[_0x34e5c0(0x169)](_0x3cc0f8){const _0x33ca2c=_0x34e5c0,_0x4ed73d=this[_0x33ca2c(0x134)](_0x3cc0f8)[_0x33ca2c(0x209)];return{'items':_0x4ed73d[_0x33ca2c(0x1b8)](_0x13fa0d=>_0x13fa0d[_0x33ca2c(0x1be)]),'nextCursor':null};}[_0x34e5c0(0x16c)](_0x5e32c9){const _0x55e46e=_0x34e5c0,_0x5b30aa=this[_0x55e46e(0x15b)](_0x5e32c9[_0x55e46e(0x19d)]),_0x4d389f=this[_0x55e46e(0x18c)](),_0x25488e={'id':randomUUID(),'sessionId':_0x5e32c9[_0x55e46e(0x19d)],'turnId':'','runId':null,'parentItemId':null,'sourceSequence':null,'revision':0x1,'kind':_0x55e46e(0x1d3),'status':_0x5e32c9[_0x55e46e(0x17f)]?_0x55e46e(0x194):_0x55e46e(0x213),'payload':{'command':_0x5e32c9[_0x55e46e(0x1ae)],'cwd':_0x5e32c9[_0x55e46e(0x165)],'outputPreview':_0x5e32c9[_0x55e46e(0x13b)][_0x55e46e(0x1b9)](-0x78+-0xeba+0xf32,0x10f9+0x3e*-0x1f+0x1d99),'outputRef':null,'exitCode':_0x5e32c9[_0x55e46e(0x17f)]?-0x2547+0x24e4+0x64:0x1db+0x4*0x891+-0x529*0x7,'durationMs':0x0,'truncated':![]},'startedAt':_0x4d389f,'completedAt':_0x4d389f},_0x274879={'id':randomUUID(),'sessionId':_0x5e32c9[_0x55e46e(0x19d)],'runId':null,'userItemId':null,'status':_0x5e32c9[_0x55e46e(0x17f)]?_0x55e46e(0x194):_0x55e46e(0x160),'model':_0x5b30aa[_0x55e46e(0x16b)],'effort':_0x5b30aa[_0x55e46e(0x208)],'access':_0x5b30aa[_0x55e46e(0x18f)],'items':[],'startedAt':_0x4d389f,'completedAt':_0x4d389f},_0x4a484f={..._0x25488e,'turnId':_0x274879['id']},_0x385a0c={..._0x274879,'items':[_0x4a484f]};return this[_0x55e46e(0x209)][_0x55e46e(0x1d4)](_0x5e32c9[_0x55e46e(0x19d)],[...this[_0x55e46e(0x209)][_0x55e46e(0x136)](_0x5e32c9[_0x55e46e(0x19d)])??[],_0x385a0c]),this[_0x55e46e(0x151)](_0x5b30aa['id'],{'lastActivityAt':_0x4d389f}),_0x385a0c;}[_0x34e5c0(0x1d5)](_0x75f124){const _0x22311c=_0x34e5c0,_0x368003=this[_0x22311c(0x18d)](_0x75f124[_0x22311c(0x1a2)]);if(_0x368003===undefined)throw new Error(_0x22311c(0x1f9));if(_0x75f124[_0x22311c(0x1a2)]!==_0x368003['id']&&this[_0x22311c(0x164)](_0x368003['id'])!==_0x75f124[_0x22311c(0x1a2)])throw new Error(_0x22311c(0x193));if(this[_0x22311c(0x1e5)][_0x22311c(0x1b4)](_0x75f124[_0x22311c(0x182)]))throw new Error(_0x22311c(0x1e0));if(_0x75f124[_0x22311c(0x1fc)]<=this[_0x22311c(0x18c)]())throw new Error(_0x22311c(0x1ad));const _0x5f477a={'id':_0x75f124[_0x22311c(0x182)],'runId':_0x75f124[_0x22311c(0x1a2)],'status':_0x22311c(0x1fb),'payload':_0x75f124[_0x22311c(0x185)],'expiresAt':_0x75f124[_0x22311c(0x1fc)],'createdAt':this[_0x22311c(0x18c)](),'decidedAt':null};return this[_0x22311c(0x1e5)][_0x22311c(0x1d4)](_0x5f477a['id'],_0x5f477a),_0x5f477a;}[_0x34e5c0(0x195)](_0x40649f){const _0x23851a=_0x34e5c0,_0x335d52=this[_0x23851a(0x1e5)][_0x23851a(0x136)](_0x40649f);if(_0x335d52?.[_0x23851a(0x21a)]===_0x23851a(0x1fb)&&_0x335d52[_0x23851a(0x1fc)]<=this[_0x23851a(0x18c)]())return this[_0x23851a(0x15f)](_0x40649f);return _0x335d52;}[_0x34e5c0(0x1ba)](_0x1d3245){const _0x537efe=_0x34e5c0,_0x4a9346=this[_0x537efe(0x1dd)](_0x1d3245);return[...this[_0x537efe(0x1e5)][_0x537efe(0x241)]()][_0x537efe(0x156)](_0x287a0b=>this[_0x537efe(0x1dd)](_0x287a0b[_0x537efe(0x1a2)])===_0x4a9346)[_0x537efe(0x1f2)](_0x5c2343=>this[_0x537efe(0x195)](_0x5c2343['id']));}[_0x34e5c0(0x15f)](_0x4fd60e){const _0x44ed92=_0x34e5c0,_0x4d4007=this[_0x44ed92(0x1e3)](_0x4fd60e);if(_0x4d4007[_0x44ed92(0x21a)]!==_0x44ed92(0x1fb))return _0x4d4007;if(_0x4d4007[_0x44ed92(0x1fc)]>this[_0x44ed92(0x18c)]())throw new Error(_0x44ed92(0x226));const _0x40fb84={..._0x4d4007,'status':_0x44ed92(0x154),'decidedAt':this[_0x44ed92(0x18c)]()};return this[_0x44ed92(0x1e5)][_0x44ed92(0x1d4)](_0x4fd60e,_0x40fb84),_0x40fb84;}[_0x34e5c0(0x21e)](_0x4cd458,_0x1594d3){const _0x4eddc1=_0x34e5c0,_0x26206c=this[_0x4eddc1(0x195)](_0x4cd458);if(_0x26206c===undefined)throw new Error(_0x4eddc1(0x1cd));if(_0x26206c[_0x4eddc1(0x21a)]===_0x4eddc1(0x154))throw new Error(_0x4eddc1(0x1ad));if(_0x26206c[_0x4eddc1(0x21a)]!==_0x4eddc1(0x1fb))throw new Error(_0x4eddc1(0x145));const _0x195c5e={..._0x26206c,'status':_0x1594d3,'decidedAt':this[_0x4eddc1(0x18c)]()};return this[_0x4eddc1(0x1e5)][_0x4eddc1(0x1d4)](_0x4cd458,_0x195c5e),_0x195c5e;}[_0x34e5c0(0x1ee)](){const _0xb40c36=_0x34e5c0;return[...this[_0xb40c36(0x1e5)][_0xb40c36(0x241)]()][_0xb40c36(0x156)](_0x3f6c9c=>_0x3f6c9c[_0xb40c36(0x21a)]===_0xb40c36(0x1fb)&&_0x3f6c9c[_0xb40c36(0x1fc)]<=this[_0xb40c36(0x18c)]())[_0xb40c36(0x1f2)](_0x5f48a2=>this[_0xb40c36(0x15f)](_0x5f48a2['id']));}[_0x34e5c0(0x23f)](){const _0xc71173=_0x34e5c0;return[...this[_0xc71173(0x1a8)][_0xc71173(0x241)]()][_0xc71173(0x156)](_0x549cae=>!terminal(_0x549cae[_0xc71173(0x21a)]));}[_0x34e5c0(0x16e)](_0x20784d){const _0x3186c4=_0x34e5c0;return this[_0x3186c4(0x1c7)][_0x3186c4(0x136)](_0x20784d)??0x115*0x9+0x4fa+-0xeb7*0x1;}[_0x34e5c0(0x231)](_0x1000ce){const _0x3d84b0=_0x34e5c0,_0x822a05=this[_0x3d84b0(0x16f)](_0x1000ce);if(!terminal(_0x822a05[_0x3d84b0(0x21a)]))throw new Error(_0x3d84b0(0x1ca));this[_0x3d84b0(0x20a)][_0x3d84b0(0x16a)](_0x1000ce);if(this[_0x3d84b0(0x20a)][_0x3d84b0(0x1c5)]>0x1a01+0x1d5b+-0x335c)this[_0x3d84b0(0x20a)][_0x3d84b0(0x1f6)](this[_0x3d84b0(0x20a)][_0x3d84b0(0x241)]()[_0x3d84b0(0x24a)]()[_0x3d84b0(0x162)]);const _0x5bca0c=new Set([...this[_0x3d84b0(0x161)][_0x3d84b0(0x241)]()][_0x3d84b0(0x156)](_0xeefc27=>_0xeefc27[_0x3d84b0(0x1a2)]===_0x1000ce)[_0x3d84b0(0x1f2)](_0x2a76eb=>_0x2a76eb['id'])),_0x3a950b=(this[_0x3d84b0(0x209)][_0x3d84b0(0x136)](_0x822a05[_0x3d84b0(0x19d)])??[])[_0x3d84b0(0x156)](_0x1b29d0=>{const _0x23aff1=_0x3d84b0,_0x210836=_0x1b29d0[_0x23aff1(0x1be)][_0x23aff1(0x21d)](_0x4becb7=>_0x4becb7[_0x23aff1(0x235)]===_0x23aff1(0x228));if(_0x1b29d0[_0x23aff1(0x1a2)]===_0x1000ce)return _0x822a05[_0x23aff1(0x21a)]===_0x23aff1(0x160)||_0x822a05[_0x23aff1(0x21a)]===_0x23aff1(0x243)||_0x210836;const _0x4cc9d6=_0x210836&&_0x1b29d0[_0x23aff1(0x21a)]!==_0x23aff1(0x160)&&_0x1b29d0[_0x23aff1(0x21a)]!==_0x23aff1(0x243);return _0x822a05[_0x23aff1(0x21a)]!==_0x23aff1(0x160)||!_0x4cc9d6;}),_0x12bb6e=_0x3a950b[_0x3d84b0(0x156)](_0x1a8f7b=>terminalTurn(_0x1a8f7b[_0x3d84b0(0x21a)])),_0x25ce2c=new Set(_0x12bb6e[_0x3d84b0(0x1b9)](-NodeRuntimeState[_0x3d84b0(0x23e)])[_0x3d84b0(0x1f2)](_0x2fddb7=>_0x2fddb7['id'])),_0x4b6255=_0x3a950b[_0x3d84b0(0x156)](_0x82181b=>!terminalTurn(_0x82181b[_0x3d84b0(0x21a)])||_0x25ce2c[_0x3d84b0(0x1b4)](_0x82181b['id'])),_0x1a6c91=new Set(_0x4b6255[_0x3d84b0(0x1f2)](_0x2b00f7=>_0x2b00f7['id']));this[_0x3d84b0(0x209)][_0x3d84b0(0x1d4)](_0x822a05[_0x3d84b0(0x19d)],_0x4b6255);for(const [_0x1d45de,_0x46b9a2]of this[_0x3d84b0(0x161)]){if(_0x46b9a2[_0x3d84b0(0x1a2)]!==_0x1000ce)continue;this[_0x3d84b0(0x161)][_0x3d84b0(0x1f6)](_0x1d45de);if(_0x1a6c91[_0x3d84b0(0x1b4)](_0x46b9a2[_0x3d84b0(0x1af)]))this[_0x3d84b0(0x237)][_0x3d84b0(0x1d4)](_0x1d45de,{'sessionId':_0x822a05[_0x3d84b0(0x19d)],'turnId':_0x46b9a2[_0x3d84b0(0x1af)]});}this[_0x3d84b0(0x17d)](_0x822a05[_0x3d84b0(0x19d)],_0x1a6c91),this[_0x3d84b0(0x1a8)][_0x3d84b0(0x1f6)](_0x1000ce),this[_0x3d84b0(0x1c7)][_0x3d84b0(0x1f6)](_0x1000ce);for(const [_0x2cd2e2,_0x1b7c5d]of this[_0x3d84b0(0x184)])if(_0x1b7c5d[_0x3d84b0(0x235)]===_0x3d84b0(0x178)&&_0x1b7c5d['id']===_0x1000ce)this[_0x3d84b0(0x184)][_0x3d84b0(0x1f6)](_0x2cd2e2);for(const [_0x302f50,_0x8aef9c]of this[_0x3d84b0(0x1e5)])if(_0x8aef9c[_0x3d84b0(0x1a2)]===_0x1000ce||_0x5bca0c[_0x3d84b0(0x1b4)](_0x8aef9c[_0x3d84b0(0x1a2)]))this[_0x3d84b0(0x1e5)][_0x3d84b0(0x1f6)](_0x302f50);}[_0x34e5c0(0x1f8)](_0x4a0af3){const _0x4ec0cb=_0x34e5c0;return[...this[_0x4ec0cb(0x17a)][_0x4ec0cb(0x241)]()][_0x4ec0cb(0x1f2)](_0x29f187=>this[_0x4ec0cb(0x1a8)][_0x4ec0cb(0x136)](_0x29f187))[_0x4ec0cb(0x21d)](_0x2ad595=>_0x2ad595?.[_0x4ec0cb(0x219)]===_0x4a0af3);}[_0x34e5c0(0x217)](_0x1d1f3a){const _0x47cd00=_0x34e5c0;this[_0x47cd00(0x15b)](_0x1d1f3a);const _0xdbd551=this[_0x47cd00(0x1db)](_0x1d1f3a);if(_0xdbd551[_0x47cd00(0x21d)](_0x328870=>!terminal(_0x328870[_0x47cd00(0x21a)])))throw new Error(_0x47cd00(0x1a7));const _0x16f804=new Set(_0xdbd551[_0x47cd00(0x1f2)](_0x10c765=>_0x10c765['id'])),_0x412702=new Set([...this[_0x47cd00(0x161)][_0x47cd00(0x241)]()][_0x47cd00(0x156)](_0x58719d=>_0x16f804[_0x47cd00(0x1b4)](_0x58719d[_0x47cd00(0x1a2)]))[_0x47cd00(0x1f2)](_0xc5ec58=>_0xc5ec58['id']));this[_0x47cd00(0x1a1)][_0x47cd00(0x1f6)](_0x1d1f3a),this[_0x47cd00(0x209)][_0x47cd00(0x1f6)](_0x1d1f3a),this[_0x47cd00(0x17d)](_0x1d1f3a,new Set());const _0x272d29=this[_0x47cd00(0x1a4)][_0x47cd00(0x136)](_0x1d1f3a)??[];this[_0x47cd00(0x1a4)][_0x47cd00(0x1f6)](_0x1d1f3a);for(const _0x1cf001 of _0x272d29)this[_0x47cd00(0x1a3)][_0x47cd00(0x1f6)](_0x1cf001);this[_0x47cd00(0x14c)][_0x47cd00(0x1f6)](_0x1d1f3a),this[_0x47cd00(0x187)][_0x47cd00(0x1f6)](_0x1d1f3a),this[_0x47cd00(0x17a)][_0x47cd00(0x1f6)](_0x1d1f3a);for(const _0xc1bc5c of _0x16f804){this[_0x47cd00(0x1a8)][_0x47cd00(0x1f6)](_0xc1bc5c),this[_0x47cd00(0x1c7)][_0x47cd00(0x1f6)](_0xc1bc5c);}for(const _0x28c904 of _0x412702)this[_0x47cd00(0x161)][_0x47cd00(0x1f6)](_0x28c904);for(const [_0x3ab305,_0x46394d]of this[_0x47cd00(0x184)])if(_0x46394d[_0x47cd00(0x235)]===_0x47cd00(0x178)&&_0x16f804[_0x47cd00(0x1b4)](_0x46394d['id'])||_0x46394d[_0x47cd00(0x235)]===_0x47cd00(0x148)&&_0x272d29[_0x47cd00(0x14b)](_0x46394d['id']))this[_0x47cd00(0x184)][_0x47cd00(0x1f6)](_0x3ab305);for(const _0x378210 of this[_0x47cd00(0x19b)][_0x47cd00(0x1a9)]())if(_0x378210[_0x47cd00(0x1e9)](_0x1d1f3a+'\x00'))this[_0x47cd00(0x19b)][_0x47cd00(0x1f6)](_0x378210);for(const [_0x1a2aac,_0x1802e4]of this[_0x47cd00(0x1e5)])if(_0x16f804[_0x47cd00(0x1b4)](_0x1802e4[_0x47cd00(0x1a2)])||_0x412702[_0x47cd00(0x1b4)](_0x1802e4[_0x47cd00(0x1a2)]))this[_0x47cd00(0x1e5)][_0x47cd00(0x1f6)](_0x1a2aac);}[_0x34e5c0(0x157)](_0x271a12){const _0x1b2746=_0x34e5c0;if(this[_0x1b2746(0x1f8)](_0x271a12))throw new Error(_0x1b2746(0x201));const _0x390e65=new Set([...this[_0x1b2746(0x1a1)][_0x1b2746(0x241)]()][_0x1b2746(0x156)](_0x1c1789=>_0x1c1789[_0x1b2746(0x219)]===_0x271a12)[_0x1b2746(0x1f2)](_0x3dcd56=>_0x3dcd56['id'])),_0x238bfc=new Set([...this[_0x1b2746(0x1a8)][_0x1b2746(0x241)]()][_0x1b2746(0x156)](_0x522f82=>_0x522f82[_0x1b2746(0x219)]===_0x271a12)[_0x1b2746(0x1f2)](_0x30f6a0=>_0x30f6a0['id'])),_0x29910c=new Set([...this[_0x1b2746(0x161)][_0x1b2746(0x241)]()][_0x1b2746(0x156)](_0x5a7afa=>_0x238bfc[_0x1b2746(0x1b4)](_0x5a7afa[_0x1b2746(0x1a2)]))[_0x1b2746(0x1f2)](_0x47c324=>_0x47c324['id'])),_0x32e772=new Set([..._0x390e65][_0x1b2746(0x1b8)](_0x10ec40=>this[_0x1b2746(0x1a4)][_0x1b2746(0x136)](_0x10ec40)??[]));for(const _0x509cfe of _0x390e65){this[_0x1b2746(0x1a1)][_0x1b2746(0x1f6)](_0x509cfe),this[_0x1b2746(0x209)][_0x1b2746(0x1f6)](_0x509cfe),this[_0x1b2746(0x17d)](_0x509cfe,new Set());}for(const _0x7cb67 of _0x238bfc){this[_0x1b2746(0x1a8)][_0x1b2746(0x1f6)](_0x7cb67),this[_0x1b2746(0x1c7)][_0x1b2746(0x1f6)](_0x7cb67);}for(const _0x493135 of _0x29910c)this[_0x1b2746(0x161)][_0x1b2746(0x1f6)](_0x493135);for(const [_0x27e06a,_0x1c5fa8]of this[_0x1b2746(0x184)])if(_0x1c5fa8[_0x1b2746(0x235)]===_0x1b2746(0x178)&&_0x238bfc[_0x1b2746(0x1b4)](_0x1c5fa8['id'])||_0x1c5fa8[_0x1b2746(0x235)]===_0x1b2746(0x148)&&_0x32e772[_0x1b2746(0x1b4)](_0x1c5fa8['id']))this[_0x1b2746(0x184)][_0x1b2746(0x1f6)](_0x27e06a);for(const _0x119de1 of this[_0x1b2746(0x19b)][_0x1b2746(0x1a9)]()){const _0x5cb636=_0x119de1[_0x1b2746(0x13a)]('\u0000');if(_0x5cb636>=-0xcf1*0x2+-0x10d7*-0x1+0x90b&&_0x390e65[_0x1b2746(0x1b4)](_0x119de1[_0x1b2746(0x1b9)](0x1*-0x533+0x1bfc+-0x16c9,_0x5cb636)))this[_0x1b2746(0x19b)][_0x1b2746(0x1f6)](_0x119de1);}for(const [_0x302f89,_0x11afc3]of this[_0x1b2746(0x1e5)])if(_0x238bfc[_0x1b2746(0x1b4)](_0x11afc3[_0x1b2746(0x1a2)])||_0x29910c[_0x1b2746(0x1b4)](_0x11afc3[_0x1b2746(0x1a2)]))this[_0x1b2746(0x1e5)][_0x1b2746(0x1f6)](_0x302f89);for(const _0x5721ce of _0x390e65){const _0x11d66f=this[_0x1b2746(0x1a4)][_0x1b2746(0x136)](_0x5721ce)??[];this[_0x1b2746(0x1a4)][_0x1b2746(0x1f6)](_0x5721ce);for(const _0x24b4a9 of _0x11d66f)this[_0x1b2746(0x1a3)][_0x1b2746(0x1f6)](_0x24b4a9);this[_0x1b2746(0x14c)][_0x1b2746(0x1f6)](_0x5721ce),this[_0x1b2746(0x187)][_0x1b2746(0x1f6)](_0x5721ce),this[_0x1b2746(0x17a)][_0x1b2746(0x1f6)](_0x5721ce);}}[_0x34e5c0(0x1bb)](_0x170543,_0x44c964){void _0x170543,void _0x44c964;}[_0x34e5c0(0x151)](_0x2e950c,_0x448b88){const _0x575b18=_0x34e5c0,_0x153567=this[_0x575b18(0x15b)](_0x2e950c),_0x5c2102={..._0x153567,..._0x448b88};this[_0x575b18(0x1a1)][_0x575b18(0x1d4)](_0x2e950c,_0x5c2102);if(_0x153567[_0x575b18(0x132)]!==_0x5c2102[_0x575b18(0x132)]||_0x153567[_0x575b18(0x175)]!==_0x5c2102[_0x575b18(0x175)]){for(const _0x86413 of this[_0x575b18(0x1db)](_0x2e950c))this[_0x575b18(0x1dc)](_0x86413,_0x5c2102);}return _0x5c2102;}[_0x34e5c0(0x1dc)](_0x5b185d,_0x511268){const _0x2c56f1=_0x34e5c0,_0x54763d=this[_0x2c56f1(0x135)](_0x5b185d['id']),_0x33ed9c=_0x54763d?.[_0x2c56f1(0x1be)][_0x2c56f1(0x19e)](_0x443e16=>_0x443e16[_0x2c56f1(0x235)]===_0x2c56f1(0x13c))?.[_0x2c56f1(0x185)],_0x469d22=isRecord(_0x33ed9c)&&typeof _0x33ed9c[_0x2c56f1(0x1b7)]===_0x2c56f1(0x1c0)?_0x33ed9c[_0x2c56f1(0x1b7)]:undefined,_0x453387=_0x469d22?.[_0x2c56f1(0x1e9)](_0x2c56f1(0x14e))?'':this[_0x2c56f1(0x138)](_0x5b185d['id']);this[_0x2c56f1(0x23c)]?.(_0x5b185d,_0x511268,_0x453387[_0x2c56f1(0x13d)]===0x114c+0xad*-0x25+0x7b5*0x1?undefined:_0x453387);}[_0x34e5c0(0x190)](_0x15c210){const _0x137f23=_0x34e5c0;this[_0x137f23(0x14c)][_0x137f23(0x1d4)](_0x15c210,(this[_0x137f23(0x14c)][_0x137f23(0x136)](_0x15c210)??0x1357*-0x1+0x174d+-0x3f6)+(0x2ab+-0x1de1+0x1b37));}[_0x34e5c0(0x17d)](_0x44deee,_0x14cad9){const _0x3d3c4=_0x34e5c0;for(const [_0x595627,_0x3f5c58]of this[_0x3d3c4(0x237)])if(_0x3f5c58[_0x3d3c4(0x19d)]===_0x44deee&&!_0x14cad9[_0x3d3c4(0x1b4)](_0x3f5c58[_0x3d3c4(0x1af)]))this[_0x3d3c4(0x237)][_0x3d3c4(0x1f6)](_0x595627);}[_0x34e5c0(0x15b)](_0x5133dd){const _0x222be4=_0x34e5c0,_0x340fa6=this[_0x222be4(0x1a1)][_0x222be4(0x136)](_0x5133dd);if(_0x340fa6===undefined)throw new Error(_0x222be4(0x163));return _0x340fa6;}[_0x34e5c0(0x16f)](_0x1f0523){const _0x162711=_0x34e5c0,_0x15328c=this[_0x162711(0x1a8)][_0x162711(0x136)](_0x1f0523);if(_0x15328c===undefined)throw new Error(_0x162711(0x1f9));return _0x15328c;}[_0x34e5c0(0x1df)](_0x1fc9d2){const _0x59697b=_0x34e5c0,_0x591b8a=this[_0x59697b(0x1a3)][_0x59697b(0x136)](_0x1fc9d2);if(_0x591b8a===undefined)throw new Error(_0x59697b(0x183));return _0x591b8a;}[_0x34e5c0(0x1e3)](_0x580a57){const _0x56136a=_0x34e5c0,_0x41cfed=this[_0x56136a(0x1e5)][_0x56136a(0x136)](_0x580a57);if(_0x41cfed===undefined)throw new Error(_0x56136a(0x1cd));return _0x41cfed;}[_0x34e5c0(0x20f)](_0x59aaf3,_0x3ae4ba){const _0x3f0133=_0x34e5c0,_0x323921=this[_0x3f0133(0x16f)](_0x59aaf3),_0x5dbd84=this[_0x3f0133(0x209)][_0x3f0133(0x136)](_0x323921[_0x3f0133(0x19d)])??[];this[_0x3f0133(0x209)][_0x3f0133(0x1d4)](_0x323921[_0x3f0133(0x19d)],_0x5dbd84[_0x3f0133(0x1f2)](_0x517f54=>_0x517f54[_0x3f0133(0x1a2)]===_0x59aaf3?_0x3ae4ba(_0x517f54):_0x517f54));}[_0x34e5c0(0x180)](_0x2c71f0,_0x502a24){const _0x338127=_0x34e5c0,_0x46d2a3=this[_0x338127(0x16f)](_0x2c71f0),_0x100547=this[_0x338127(0x209)][_0x338127(0x136)](_0x46d2a3[_0x338127(0x19d)])??[],_0x3c2da6=_0x100547[_0x338127(0x181)](_0x1848b6=>_0x1848b6[_0x338127(0x1a2)]===_0x2c71f0);if(_0x3c2da6<-0x2*0x130d+-0x1c7a+0x1*0x4294)return;this[_0x338127(0x209)][_0x338127(0x1d4)](_0x46d2a3[_0x338127(0x19d)],_0x100547[_0x338127(0x1f2)]((_0x406276,_0x2812fd)=>_0x2812fd===_0x3c2da6?_0x502a24(_0x406276):_0x406276));}[_0x34e5c0(0x135)](_0x44e003){const _0x42b84c=_0x34e5c0,_0x4f59f7=this[_0x42b84c(0x16f)](_0x44e003);return(this[_0x42b84c(0x209)][_0x42b84c(0x136)](_0x4f59f7[_0x42b84c(0x19d)])??[])[_0x42b84c(0x1e7)](_0x4f23d6=>_0x4f23d6[_0x42b84c(0x1a2)]===_0x44e003);}[_0x34e5c0(0x246)](_0x26a6d0,_0x2d1a98,_0x4281c8,_0x578abe){const _0x2d0139=_0x34e5c0,_0xafbe6f=this[_0x2d0139(0x15b)](_0x26a6d0[_0x2d0139(0x19d)]),_0x2a7406=this[_0x2d0139(0x18c)](),_0x480632=randomUUID(),_0x27638d=randomUUID(),_0x7703d0={'id':_0x27638d,'sessionId':_0xafbe6f['id'],'turnId':_0x480632,'runId':_0x26a6d0['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x2d0139(0x13c),'status':_0x2d0139(0x213),'payload':{'clientMessageId':_0x2d1a98,'text':_0x4281c8,'contexts':[],'attachments':this[_0x2d0139(0x18b)](_0x26a6d0['id'],_0x578abe),'delivery':_0x2d0139(0x139)},'startedAt':_0x2a7406,'completedAt':_0x2a7406},_0x36d315={'id':_0x480632,'sessionId':_0xafbe6f['id'],'runId':_0x26a6d0['id'],'userItemId':_0x27638d,'status':_0x2d0139(0x188),'model':_0xafbe6f[_0x2d0139(0x16b)],'effort':_0xafbe6f[_0x2d0139(0x208)],'access':_0xafbe6f[_0x2d0139(0x18f)],'items':[_0x7703d0],'startedAt':_0x2a7406,'completedAt':null};return this[_0x2d0139(0x209)][_0x2d0139(0x1d4)](_0xafbe6f['id'],[...this[_0x2d0139(0x209)][_0x2d0139(0x136)](_0xafbe6f['id'])??[],_0x36d315]),this[_0x2d0139(0x151)](_0xafbe6f['id'],{'lastActivityAt':_0x2a7406}),_0x36d315;}[_0x34e5c0(0x18b)](_0x10932b,_0x3dd32d){const _0x2a80ef=_0x34e5c0;let _0x13e4e0=-0x120a+-0x1049+0x2253;return _0x3dd32d[_0x2a80ef(0x1f2)](({name:_0x4921f6,mime:_0x5cf001,dataBase64:_0x2dbd51})=>{const _0x26c871=_0x2a80ef,_0x2c52b3={'name':_0x4921f6,'mime':_0x5cf001,'byteSize':Buffer[_0x26c871(0x21f)](_0x2dbd51,_0x26c871(0x245)),'runId':_0x10932b};if(!_0x5cf001[_0x26c871(0x1e9)](_0x26c871(0x205)))return _0x2c52b3;return{..._0x2c52b3,'imageIndex':_0x13e4e0++};});}[_0x34e5c0(0x239)](_0x5296d9,_0x5c31fd,_0x2495bf){const _0x3a4c0f=_0x34e5c0;for(const [_0x125792,_0x25e918]of this[_0x3a4c0f(0x209)]){if(!_0x25e918[_0x3a4c0f(0x21d)](_0x2a07a1=>_0x2a07a1['id']===_0x5296d9))continue;this[_0x3a4c0f(0x209)][_0x3a4c0f(0x1d4)](_0x125792,_0x25e918[_0x3a4c0f(0x1f2)](_0x212c78=>_0x212c78['id']===_0x5296d9?{..._0x212c78,'status':_0x5c31fd,'completedAt':_0x2495bf,'items':_0x212c78[_0x3a4c0f(0x1be)][_0x3a4c0f(0x1f2)](_0x54c0ed=>activeConversationItem(_0x54c0ed[_0x3a4c0f(0x21a)])?{..._0x54c0ed,'status':completedStatusForRun(_0x5c31fd),'completedAt':_0x2495bf}:_0x54c0ed)}:_0x212c78));return;}}[_0x34e5c0(0x1e2)](_0x57ffd9,_0x48a362){const _0x24d1f1=_0x34e5c0,_0x5200b9=this[_0x24d1f1(0x16f)](_0x57ffd9[_0x24d1f1(0x1a2)]),_0xb9a2a4=_0x57de56=>{const _0x4fceb0=_0x24d1f1;if(_0x57ffd9[_0x4fceb0(0x204)]===_0x4fceb0(0x20d)&&isRecord(_0x57ffd9[_0x4fceb0(0x185)])&&typeof _0x57ffd9[_0x4fceb0(0x185)][_0x4fceb0(0x19f)]===_0x4fceb0(0x1c0)){const _0x24a29c=typeof _0x57ffd9[_0x4fceb0(0x185)][_0x4fceb0(0x18e)]===_0x4fceb0(0x1c0)&&_0x57ffd9[_0x4fceb0(0x185)][_0x4fceb0(0x18e)][_0x4fceb0(0x13d)]<=0x49*0x65+-0x1f85*0x1+0x310?_0x57ffd9[_0x4fceb0(0x185)][_0x4fceb0(0x18e)]:undefined,_0x422465=_0x24a29c===undefined?undefined:_0x57ffd9[_0x4fceb0(0x1a2)]+':'+_0x24a29c,_0x771a59=_0x57de56[_0x4fceb0(0x1be)]['at'](-(0x1bce+-0x1adc+0xf1*-0x1)),_0x5a8160=_0x422465===undefined?_0x771a59?.[_0x4fceb0(0x235)]===_0x4fceb0(0x1bd)&&activeConversationItem(_0x771a59[_0x4fceb0(0x21a)])?_0x771a59:undefined:_0x57de56[_0x4fceb0(0x1be)][_0x4fceb0(0x19e)](_0x23be4a=>_0x23be4a['id']===_0x422465&&_0x23be4a[_0x4fceb0(0x235)]===_0x4fceb0(0x1bd)),_0x36f0f1=''+(_0x5a8160===undefined?'':readableText(_0x5a8160[_0x4fceb0(0x185)]))+_0x57ffd9[_0x4fceb0(0x185)][_0x4fceb0(0x19f)],_0x37b50a={'id':_0x5a8160?.['id']??_0x422465??_0x57ffd9[_0x4fceb0(0x1a2)]+_0x4fceb0(0x1c3)+_0x57ffd9[_0x4fceb0(0x166)],'sessionId':_0x5200b9[_0x4fceb0(0x19d)],'turnId':_0x57de56['id'],'runId':_0x57ffd9[_0x4fceb0(0x1a2)],'parentItemId':null,'sourceSequence':_0x5a8160?.[_0x4fceb0(0x1ce)]??_0x57ffd9[_0x4fceb0(0x166)],'revision':_0x57ffd9[_0x4fceb0(0x166)],'kind':_0x4fceb0(0x1bd),'status':_0x4fceb0(0x170),'payload':{'text':_0x36f0f1,'format':_0x4fceb0(0x23b),'model':null},'startedAt':_0x5a8160?.[_0x4fceb0(0x1ea)]??_0x57ffd9[_0x4fceb0(0x172)],'completedAt':null};return{..._0x57de56,'status':_0x4fceb0(0x21b),'startedAt':_0x57de56[_0x4fceb0(0x1ea)]??_0x57ffd9[_0x4fceb0(0x172)],'items':_0x5a8160===undefined?[..._0x57de56[_0x4fceb0(0x1be)],_0x37b50a]:_0x57de56[_0x4fceb0(0x1be)][_0x4fceb0(0x1f2)](_0x5f1db8=>_0x5f1db8['id']===_0x37b50a['id']?_0x37b50a:_0x5f1db8)};}const _0x1b1b2f=conversationItemFromEvent(_0x57ffd9);if(_0x1b1b2f!==undefined){const _0x41a6a8=_0x57de56[_0x4fceb0(0x1be)]['at'](-(-0x2579+-0x340*0x4+0x327a)),_0x144bc2=_0x41a6a8?.[_0x4fceb0(0x235)]===_0x4fceb0(0x1bd)&&activeConversationItem(_0x41a6a8[_0x4fceb0(0x21a)])?_0x57de56[_0x4fceb0(0x1be)][_0x4fceb0(0x1f2)](_0x47ab19=>_0x47ab19['id']===_0x41a6a8['id']?{..._0x47ab19,'status':_0x4fceb0(0x213),'completedAt':_0x57ffd9[_0x4fceb0(0x172)]}:_0x47ab19):_0x57de56[_0x4fceb0(0x1be)],_0x158747=_0x144bc2[_0x4fceb0(0x19e)](_0xd8b20b=>_0xd8b20b['id']===_0x57ffd9[_0x4fceb0(0x1a2)]+':'+_0x1b1b2f[_0x4fceb0(0x18e)])??(_0x1b1b2f[_0x4fceb0(0x235)]===_0x4fceb0(0x1bd)&&_0x1b1b2f[_0x4fceb0(0x18e)][_0x4fceb0(0x1e9)](_0x4fceb0(0x1cf))&&_0x41a6a8?.[_0x4fceb0(0x235)]===_0x4fceb0(0x1bd)&&_0x41a6a8['id'][_0x4fceb0(0x1e9)](_0x57ffd9[_0x4fceb0(0x1a2)]+_0x4fceb0(0x1c3))&&activeConversationItem(_0x41a6a8[_0x4fceb0(0x21a)])?_0x41a6a8:undefined),_0x50767e=_0x1b1b2f[_0x4fceb0(0x21a)],_0x19b843={'id':_0x57ffd9[_0x4fceb0(0x1a2)]+':'+_0x1b1b2f[_0x4fceb0(0x18e)],'sessionId':_0x5200b9[_0x4fceb0(0x19d)],'turnId':_0x57de56['id'],'runId':_0x57ffd9[_0x4fceb0(0x1a2)],'parentItemId':null,'sourceSequence':_0x158747?.[_0x4fceb0(0x1ce)]??_0x57ffd9[_0x4fceb0(0x166)],'revision':(_0x158747?.[_0x4fceb0(0x22f)]??-(-0x3*-0x821+0x20b8+-0x1*0x391a))+(-0x1cfd+0x17c3+0x53b),'kind':_0x1b1b2f[_0x4fceb0(0x235)],'status':_0x50767e,'payload':mergeConversationItemPayload(_0x158747?.[_0x4fceb0(0x185)],_0x1b1b2f),'startedAt':_0x158747?.[_0x4fceb0(0x1ea)]??_0x57ffd9[_0x4fceb0(0x172)],'completedAt':completedConversationItem(_0x50767e)?_0x57ffd9[_0x4fceb0(0x172)]:null};return{..._0x57de56,'status':terminal(_0x5200b9[_0x4fceb0(0x21a)])?_0x5200b9[_0x4fceb0(0x21a)]:_0x4fceb0(0x21b),'startedAt':_0x57de56[_0x4fceb0(0x1ea)]??_0x57ffd9[_0x4fceb0(0x172)],'items':_0x158747===undefined?[..._0x144bc2,_0x19b843]:_0x144bc2[_0x4fceb0(0x1f2)](_0x313a85=>_0x313a85['id']===_0x158747['id']?_0x19b843:_0x313a85)};}if(_0x57ffd9[_0x4fceb0(0x204)]===_0x4fceb0(0x1d1)||_0x57ffd9[_0x4fceb0(0x204)]===_0x4fceb0(0x216))return{..._0x57de56,'status':_0x4fceb0(0x21b),'startedAt':_0x57de56[_0x4fceb0(0x1ea)]??_0x57ffd9[_0x4fceb0(0x172)]};if(_0x57ffd9[_0x4fceb0(0x204)]===_0x4fceb0(0x202)||_0x57ffd9[_0x4fceb0(0x204)]===_0x4fceb0(0x223)||_0x57ffd9[_0x4fceb0(0x204)]===_0x4fceb0(0x24b))return{..._0x57de56,'status':this[_0x4fceb0(0x16f)](_0x57ffd9[_0x4fceb0(0x1a2)])[_0x4fceb0(0x21a)],'completedAt':_0x57ffd9[_0x4fceb0(0x172)],'items':_0x57de56[_0x4fceb0(0x1be)][_0x4fceb0(0x1f2)](_0x3c821f=>activeConversationItem(_0x3c821f[_0x4fceb0(0x21a)])?{..._0x3c821f,'status':completedStatusForRun(this[_0x4fceb0(0x16f)](_0x57ffd9[_0x4fceb0(0x1a2)])[_0x4fceb0(0x21a)]),'completedAt':_0x57ffd9[_0x4fceb0(0x172)]}:_0x3c821f)};return _0x57de56;};if(_0x48a362===undefined)this[_0x24d1f1(0x180)](_0x57ffd9[_0x24d1f1(0x1a2)],_0xb9a2a4);else{const _0xcca26d=this[_0x24d1f1(0x209)][_0x24d1f1(0x136)](_0x5200b9[_0x24d1f1(0x19d)])??[];this[_0x24d1f1(0x209)][_0x24d1f1(0x1d4)](_0x5200b9[_0x24d1f1(0x19d)],_0xcca26d[_0x24d1f1(0x1f2)](_0x283343=>_0x283343['id']===_0x48a362?_0xb9a2a4(_0x283343):_0x283343));}}}function isDefaultRunnerTitle(_0x26922e){const _0x409a00=_0x34e5c0;return/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x409a00(0x22b)](_0x26922e);}function terminal(_0xdbced8){const _0x4818d0=_0x34e5c0;return[_0x4818d0(0x160),_0x4818d0(0x194),_0x4818d0(0x238),_0x4818d0(0x243),_0x4818d0(0x1c9)][_0x4818d0(0x14b)](_0xdbced8);}function terminalTurn(_0x872ff8){const _0xe0472f=_0x34e5c0;return[_0xe0472f(0x160),_0xe0472f(0x194),_0xe0472f(0x238),_0xe0472f(0x243),_0xe0472f(0x1c9)][_0xe0472f(0x14b)](_0x872ff8);}function transitionAllowed(_0x1b7fd1,_0x42200a){return!terminal(_0x1b7fd1)||_0x1b7fd1===_0x42200a;}function _0x41e1(_0x91ef79,_0x4ec48c){_0x91ef79=_0x91ef79-(-0x265b+-0xa6*0x1f+-0x3ba7*-0x1);const _0x14efb8=_0x2fa1();let _0x381c4b=_0x14efb8[_0x91ef79];if(_0x41e1['RaCJbt']===undefined){var _0xbdd11d=function(_0x1e7785){const _0x3bde1e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x31a81f='',_0x4f5bda='';for(let _0x18c4c0=-0x3*0x731+0x1e87+-0x8f4,_0x132352,_0x84db25,_0x30431e=0xb6c+0x275*-0x5+-0x1*-0xdd;_0x84db25=_0x1e7785['charAt'](_0x30431e++);~_0x84db25&&(_0x132352=_0x18c4c0%(0x32c+-0x2*-0x70a+-0x113c)?_0x132352*(-0x96a+-0x240a*0x1+0x12*0x28a)+_0x84db25:_0x84db25,_0x18c4c0++%(-0x84*-0x12+-0x1fb9+0x1675))?_0x31a81f+=String['fromCharCode'](-0x15d9+0x1d2*0x2+0x1334&_0x132352>>(-(0xf*-0x15+-0x1c98*0x1+0x1dd5)*_0x18c4c0&0x1*-0x3d2+0x1f6d*-0x1+-0x2345*-0x1)):-0x15ed+-0x112+-0x349*-0x7){_0x84db25=_0x3bde1e['indexOf'](_0x84db25);}for(let _0x54fc2c=-0x1*-0xd98+0x230+-0xa*0x194,_0x2b2a9e=_0x31a81f['length'];_0x54fc2c<_0x2b2a9e;_0x54fc2c++){_0x4f5bda+='%'+('00'+_0x31a81f['charCodeAt'](_0x54fc2c)['toString'](-0x4ce*-0x1+-0xf5+-0x3c9))['slice'](-(0x13cd+0x2279+-0x97*0x5c));}return decodeURIComponent(_0x4f5bda);};_0x41e1['unsViW']=_0xbdd11d,_0x41e1['PCCtnv']={},_0x41e1['RaCJbt']=!![];}const _0xb6f001=_0x14efb8[0x4*-0x626+-0x24+0x18bc];_0x41e1['chGAwH']!==_0xb6f001&&(_0x41e1['PCCtnv']={},_0x41e1['chGAwH']=_0xb6f001);const _0x2f4a1e=_0x41e1['PCCtnv'][_0x91ef79];return _0x2f4a1e===undefined?(_0x381c4b=_0x41e1['unsViW'](_0x381c4b),_0x41e1['PCCtnv'][_0x91ef79]=_0x381c4b):_0x381c4b=_0x2f4a1e,_0x381c4b;}function isRecord(_0x123be5){const _0x35faec=_0x34e5c0;return typeof _0x123be5===_0x35faec(0x140)&&_0x123be5!==null;}function readableText(_0x32ee34){const _0x591dc6=_0x34e5c0;return isRecord(_0x32ee34)&&typeof _0x32ee34[_0x591dc6(0x19f)]===_0x591dc6(0x1c0)?_0x32ee34[_0x591dc6(0x19f)]:'';}function conversationItemFromEvent(_0x4c6a66){const _0x53972d=_0x34e5c0;if(isRecord(_0x4c6a66[_0x53972d(0x185)])){const _0x56b73c=_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x182)];if(typeof _0x56b73c===_0x53972d(0x1c0)&&_0x56b73c[_0x53972d(0x13d)]>-0xb0*0x28+0xc3f+0xf41){if(_0x4c6a66[_0x53972d(0x204)]===_0x53972d(0x230))return{'itemId':_0x53972d(0x1a6)+_0x56b73c,'kind':_0x53972d(0x1c1),'status':_0x53972d(0x1fb),'payload':{'approvalId':_0x56b73c,'approvalStatus':_0x53972d(0x1fb),'approval':_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x185)],'expiresAt':_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x1fc)]},'merge':![]};if(_0x4c6a66[_0x53972d(0x204)]===_0x53972d(0x1ec)){const _0x500ca0=_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x22a)];if(_0x500ca0===_0x53972d(0x1fa)||_0x500ca0===_0x53972d(0x1c2))return{'itemId':_0x53972d(0x1a6)+_0x56b73c,'kind':_0x53972d(0x1c1),'status':_0x500ca0===_0x53972d(0x1fa)?_0x53972d(0x213):_0x53972d(0x200),'payload':{'approvalId':_0x56b73c,'approvalStatus':_0x500ca0},'merge':!![]};}if(_0x4c6a66[_0x53972d(0x204)]===_0x53972d(0x1bc))return{'itemId':_0x53972d(0x1a6)+_0x56b73c,'kind':_0x53972d(0x1c1),'status':_0x53972d(0x238),'payload':{'approvalId':_0x56b73c,'approvalStatus':_0x53972d(0x154)},'merge':!![]};}}if(_0x4c6a66[_0x53972d(0x204)]!==_0x53972d(0x224)||!isRecord(_0x4c6a66[_0x53972d(0x185)]))return undefined;const _0xc91f64=_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x18e)],_0x4ce362=_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x235)],_0x3eaa6d=_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x21a)],_0x10299b=_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x185)];if(typeof _0xc91f64!==_0x53972d(0x1c0)||_0xc91f64[_0x53972d(0x13d)]===0x1676+0x1124+-0x279a||_0xc91f64[_0x53972d(0x13d)]>-0x7c0+-0x1e49*0x1+0x2661||typeof _0x4ce362!==_0x53972d(0x1c0)||!projectableConversationKind(_0x4ce362)||typeof _0x3eaa6d!==_0x53972d(0x1c0)||!projectableConversationStatus(_0x3eaa6d)||!isRecord(_0x10299b))return undefined;const _0x550641=_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x174)];return{'itemId':_0xc91f64,'kind':_0x4ce362,'status':_0x3eaa6d,'payload':_0x10299b,'merge':_0x4c6a66[_0x53972d(0x185)][_0x53972d(0x211)]===!![],..._0x550641===_0x53972d(0x1d8)||_0x550641===_0x53972d(0x13b)||_0x550641===_0x53972d(0x1ff)?{'append':_0x550641}:{}};}function projectableConversationKind(_0x4a4742){const _0x4dfcdc=_0x34e5c0;return _0x4a4742===_0x4dfcdc(0x1bd)||_0x4a4742===_0x4dfcdc(0x197)||_0x4a4742===_0x4dfcdc(0x167)||_0x4a4742===_0x4dfcdc(0x1d3)||_0x4a4742===_0x4dfcdc(0x1c1)||_0x4a4742===_0x4dfcdc(0x150)||_0x4a4742===_0x4dfcdc(0x1da)||_0x4a4742===_0x4dfcdc(0x1f3)||_0x4a4742===_0x4dfcdc(0x196)||_0x4a4742===_0x4dfcdc(0x1bf)||_0x4a4742===_0x4dfcdc(0x220)||_0x4a4742===_0x4dfcdc(0x228);}function projectableConversationStatus(_0x557530){const _0x410813=_0x34e5c0;return[_0x410813(0x1fb),_0x410813(0x170),_0x410813(0x213),_0x410813(0x194),_0x410813(0x200),_0x410813(0x238),_0x410813(0x243)][_0x410813(0x14b)](_0x557530);}function mergeConversationItemPayload(_0x2e6acb,_0x2213d5){const _0x2dbcff=_0x34e5c0,_0x51867a=_0x2213d5[_0x2dbcff(0x211)]&&isRecord(_0x2e6acb)?_0x2e6acb:{},_0x273d0f={..._0x51867a,..._0x2213d5[_0x2dbcff(0x185)]};if(_0x2213d5[_0x2dbcff(0x174)]===_0x2dbcff(0x1d8)){const _0x5b4d24=Array[_0x2dbcff(0x212)](_0x51867a[_0x2dbcff(0x1d8)])?_0x51867a[_0x2dbcff(0x1d8)]:[],_0xd9dc90=Array[_0x2dbcff(0x212)](_0x2213d5[_0x2dbcff(0x185)][_0x2dbcff(0x1d8)])?_0x2213d5[_0x2dbcff(0x185)][_0x2dbcff(0x1d8)]:[],_0x57936b=new Map();for(const _0x468431 of[..._0x5b4d24,..._0xd9dc90]){if(!isRecord(_0x468431)||typeof _0x468431[_0x2dbcff(0x1f0)]!==_0x2dbcff(0x186)||!Number[_0x2dbcff(0x206)](_0x468431[_0x2dbcff(0x1f0)])||_0x468431[_0x2dbcff(0x1f0)]<-0x45b*0x8+0x250f+0x237*-0x1||typeof _0x468431[_0x2dbcff(0x19f)]!==_0x2dbcff(0x1c0))continue;_0x57936b[_0x2dbcff(0x1d4)](_0x468431[_0x2dbcff(0x1f0)],appendProjectionText(_0x57936b[_0x2dbcff(0x136)](_0x468431[_0x2dbcff(0x1f0)])??'',_0x468431[_0x2dbcff(0x19f)]));}_0x273d0f[_0x2dbcff(0x1d8)]=[..._0x57936b][_0x2dbcff(0x227)](([_0x252ae4],[_0xdaf220])=>_0x252ae4-_0xdaf220)[_0x2dbcff(0x1f2)](([_0x560b42,_0x218718])=>({'index':_0x560b42,'text':_0x218718}));}if(_0x2213d5[_0x2dbcff(0x174)]===_0x2dbcff(0x13b)){const _0x3973f0=typeof _0x51867a[_0x2dbcff(0x13b)]===_0x2dbcff(0x1c0)?_0x51867a[_0x2dbcff(0x13b)]:'',_0x135b4d=typeof _0x2213d5[_0x2dbcff(0x185)][_0x2dbcff(0x13b)]===_0x2dbcff(0x1c0)?_0x2213d5[_0x2dbcff(0x185)][_0x2dbcff(0x13b)]:'';_0x273d0f[_0x2dbcff(0x13b)]=appendProjectionText(_0x3973f0,_0x135b4d);}if(_0x2213d5[_0x2dbcff(0x174)]===_0x2dbcff(0x1ff)){const _0x5a3a86=typeof _0x51867a[_0x2dbcff(0x1ff)]===_0x2dbcff(0x1c0)?_0x51867a[_0x2dbcff(0x1ff)]:'',_0x5185e4=typeof _0x2213d5[_0x2dbcff(0x185)][_0x2dbcff(0x1ff)]===_0x2dbcff(0x1c0)?_0x2213d5[_0x2dbcff(0x185)][_0x2dbcff(0x1ff)]:'';_0x273d0f[_0x2dbcff(0x1ff)]=appendProjectionText(_0x5a3a86,_0x5185e4);}return _0x273d0f;}function appendProjectionText(_0x27874b,_0x390e9f){const _0x54cd11=_0x34e5c0,_0x5ed64f=''+_0x27874b+_0x390e9f;return _0x5ed64f[_0x54cd11(0x13d)]<=-0x1*-0x3727+-0x1*0x34e7+0x24d0?_0x5ed64f:_0x5ed64f[_0x54cd11(0x1b9)](0xaaa*-0x1+-0x4*0x165+-0x3f*-0x42,-0x16b6+0x6*0x63+-0x13*-0x321)+'…';}function activeConversationItem(_0x3bcd0c){const _0x1766af=_0x34e5c0;return _0x3bcd0c===_0x1766af(0x1fb)||_0x3bcd0c===_0x1766af(0x170);}function completedConversationItem(_0x2b9561){return!activeConversationItem(_0x2b9561);}function completedStatusForRun(_0x1d2b43){const _0x325136=_0x34e5c0;if(_0x1d2b43===_0x325136(0x243))return _0x325136(0x243);if(_0x1d2b43===_0x325136(0x238))return _0x325136(0x238);if(_0x1d2b43===_0x325136(0x194))return _0x325136(0x194);return _0x325136(0x213);}function executionStatusForRun(_0x5b25c9){const _0x3c0cb7=_0x34e5c0;if(_0x5b25c9===_0x3c0cb7(0x194))return _0x3c0cb7(0x194);if(_0x5b25c9===_0x3c0cb7(0x243)||_0x5b25c9===_0x3c0cb7(0x238))return _0x3c0cb7(0x243);if(_0x5b25c9===_0x3c0cb7(0x160))return _0x3c0cb7(0x160);if(_0x5b25c9===_0x3c0cb7(0x21b))return _0x3c0cb7(0x21b);return _0x3c0cb7(0x147);}function terminalExecution(_0x167eac){const _0x1ecddc=_0x34e5c0;return _0x167eac===_0x1ecddc(0x160)||_0x167eac===_0x1ecddc(0x194)||_0x167eac===_0x1ecddc(0x243);}function encodeCursor(_0x3eb59e,_0x49f646){const _0x300d76=_0x34e5c0;return Buffer[_0x300d76(0x17e)](JSON[_0x300d76(0x20e)]({'scope':_0x3eb59e,'value':_0x49f646}))[_0x300d76(0x1c8)](_0x300d76(0x1d2));}function decodeCursor(_0x1925b8,_0x21c07f){const _0x4da85f=_0x34e5c0;if(_0x1925b8===undefined)return 0x2*-0x6a1+-0x19a+0xedc;try{const _0x522b86=JSON[_0x4da85f(0x1e8)](Buffer[_0x4da85f(0x17e)](_0x1925b8,_0x4da85f(0x1d2))[_0x4da85f(0x1c8)](_0x4da85f(0x22d)));return _0x522b86[_0x4da85f(0x1a0)]===_0x21c07f&&Number[_0x4da85f(0x206)](_0x522b86[_0x4da85f(0x162)])&&_0x522b86[_0x4da85f(0x162)]>=-0x122a+0x1*-0x16cf+0x28f9*0x1?_0x522b86[_0x4da85f(0x162)]:0xacd*-0x1+-0x1822*0x1+0x22ef;}catch{return-0x1f94+-0x939*-0x2+0xd22;}}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0x348c(_0x594680,_0x150ee6){_0x594680=_0x594680-(0x17a7+0x3*0x859+-0x2f4a);const _0x2fdd65=_0x2db2();let _0x14d01f=_0x2fdd65[_0x594680];if(_0x348c['JdGYut']===undefined){var _0x455cb4=function(_0x4ea1b4){const _0x1d7f33='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x11d057='',_0x513fe2='';for(let _0x1e20fe=-0xf0b+-0x239*-0x2+0xa99,_0x33c5cb,_0xd58a96,_0x698016=-0x1b81*0x1+0xea6+0xcdb;_0xd58a96=_0x4ea1b4['charAt'](_0x698016++);~_0xd58a96&&(_0x33c5cb=_0x1e20fe%(0x187*-0x3+-0xd*0x9b+0x428*0x3)?_0x33c5cb*(0x476*0x4+-0x14c8+0x330)+_0xd58a96:_0xd58a96,_0x1e20fe++%(0x73d*0x2+-0x1*-0x12a1+0xc5*-0x2b))?_0x11d057+=String['fromCharCode'](0x2659+0x700+-0x2c5a&_0x33c5cb>>(-(-0x2*-0xe32+-0x2390+-0x397*-0x2)*_0x1e20fe&0xd3b+0x70b*0x3+-0x2256)):0x5*-0x463+-0x2*0x575+0x20d9){_0xd58a96=_0x1d7f33['indexOf'](_0xd58a96);}for(let _0x576219=0x12e5+-0x14fc+0x1*0x217,_0x2ba536=_0x11d057['length'];_0x576219<_0x2ba536;_0x576219++){_0x513fe2+='%'+('00'+_0x11d057['charCodeAt'](_0x576219)['toString'](0x17b*-0xd+0x26*0x48+0x89f))['slice'](-(-0x1*-0x25cd+0x5b*-0x7+0x11a7*-0x2));}return decodeURIComponent(_0x513fe2);};_0x348c['BrSKjl']=_0x455cb4,_0x348c['BMEsSD']={},_0x348c['JdGYut']=!![];}const _0x2c9f89=_0x2fdd65[0x7a5+-0x18*-0xfe+0x1f75*-0x1];_0x348c['Gqxdwy']!==_0x2c9f89&&(_0x348c['BMEsSD']={},_0x348c['Gqxdwy']=_0x2c9f89);const _0x2a0d7d=_0x348c['BMEsSD'][_0x594680];return _0x2a0d7d===undefined?(_0x14d01f=_0x348c['BrSKjl'](_0x14d01f),_0x348c['BMEsSD'][_0x594680]=_0x14d01f):_0x14d01f=_0x2a0d7d,_0x14d01f;}const _0x1bad2a=_0x348c;(function(_0x53d198,_0x9af955){const _0x47cab2=_0x348c,_0x47cd25=_0x53d198();while(!![]){try{const _0x4c05ca=-parseInt(_0x47cab2(0x184))/(0x2350+0xc74+-0x2fc3*0x1)+-parseInt(_0x47cab2(0x19b))/(-0x266f*0x1+0xc0+-0x25b1*-0x1)+-parseInt(_0x47cab2(0x191))/(0xf53*0x1+0x36b+0x89*-0x23)+-parseInt(_0x47cab2(0x176))/(-0x23c7+0x270d+0x342*-0x1)*(parseInt(_0x47cab2(0x179))/(0x2504*0x1+0x251e*-0x1+0x1f))+-parseInt(_0x47cab2(0x18e))/(-0x7*-0x22a+-0x1*0xc4d+-0x2d3)+parseInt(_0x47cab2(0x1d2))/(0xb7*-0x2d+-0x9*0x2b1+-0x1*-0x386b)+parseInt(_0x47cab2(0x1c5))/(0x129e+0x2695+-0x392b)*(parseInt(_0x47cab2(0x1c9))/(-0xf9d+-0x1044*-0x1+-0x9e*0x1));if(_0x4c05ca===_0x9af955)break;else _0x47cd25['push'](_0x47cd25['shift']());}catch(_0x59fb29){_0x47cd25['push'](_0x47cd25['shift']());}}}(_0x2db2,0x21d97*-0x2+-0x15dde0+0xb3*0x368f));function _0x2db2(){const _0x5bf51b=['CgvYC29UywXjBNn0CNvJDgLVBNm','zgvSzxrLuxvLDwvjDgvT','C2nOzwr1Bgu','AxrLBuLKCW','CMvZDw1L','z2v0qwDLBNrtzxnZAw9U','ChvIBgLZAa','Aw50zw50','nJrMzgjIB2y','ywnJzxb0','y3jLyxrLrxHLy3v0Aw9U','AgfZ','mZC0nJmYmK5VrLLXsG','y2XHAw1ozxH0uxvLDwvjDgvT','tuvtu0fhrv9trvntsu9ox01ju01bveni','zw1PDenVBNzLCNnHDgLVBG','y3jLyxrLuxvLDwvjDgvT','Cgf1C2vK','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','y2XLyxjjBwfNzxm','y29UDhjVBa','mta4mta1nZzXDfLvuhm','DhvYBG','C2nOzwr1BgvKu2vZC2LVBNm','ywn0AxzLu2vZC2LVBLj1BG','zxHLy3v0zvf1zxvLsxrLBq','BwfYA0LUDgvYCNvWDgvK','y29UDgvUDa','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','BwLNCMf0zufZC2v0CW','uvvfvuu','u0vora','Dw5Yzwy','zgLZCgf0y2HLzev4zwn1DgLVBNm','CNvUDgLTzq','C3vIBwLZC2LVBKLK','y3jLyxrLtwvZC2fNzvj1BG','CMvZDw1Lu2vZC2LVBLf1zxvL','ywn0AxzLuNvUswq','nhPKvM9ktW','ChjLCgfYzwrjBNb1Dhm','C2v0DgXL','mteZntqWnxvtDMPNyW','C3rHCNrjzgXLuxvLDwu','y2XLyxi','Aw5WDxq','rKfjteve','CgvUzgLUzW','C2vZC2LVBLf1zxvL','y2XPzw50twvZC2fNzuLK','uvvfvuvFsu5qvvrFte9tva','uLvox05pvf9gt1vora','ywnJzxnZ','nteWmZKYDuvKzxvJ','DMfSDwvZ','C2vZC2LVBKLK','y3DK','CMvTB3zL','ChjPB3jPDgL6zvf1zxvLsxrLBq','Aw5PDgLHDgvKqNLvC2vYswq','CNvUlMLUDgvYCNvWDa','C3rVChbLza','Bw9KzwW','ndyZnZC5mgDkwfLLuG','y2XLyw51Cef0DgfJAg1LBNrZ','y3vYCMvUDev4zwn1DgLVBKLK','ndeXmJa0m3vIA05mza','uKvtvefsveLorW','z2v0uNvU','ChjLCgfYzq','CMvWBgfJzq','u1rbuLrfra','yxr0ywnOBwvUDhm','CNvUlNn0yxj0','BwnWCW','BwLNCMf0zvnLC3nPB24','mJqWnZe0mg5zqLjiDW','BgvUz3rO','zgLZCgf0y2G','B3b0Aw9UCW','CxvLDwvczwzVCMu','uvvfvuve','AxrLBq','y29SBgfIB3jHDgLVBK1Vzgu','u0vtu0LptL9ot1rFrK9vtKq','zgvSzxrL','z2v0uxvLDwvjDgvT','CNvUBMvY','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','uLvox0vyrunvveLptL9ot1rFrK9vtKq','uLvox1nuqvjux0zbsuXfra','y3jLyxrLza','ChvIBgLZAen1CNjLBNruDxjU','zw1PDfj1BG','C2vJCMv0rw52AxjVBM1LBNq','C2vYDMLJzvrPzxi','zw1PDff1zxvL','CMvXDwLYzvbYzxbHCMvKsxrLBq','zwzMB3j0','CNvUlNjLAMvJDgvK','C2v0','ywrK','CNvUswq','DxbKyxrLuhjLCgfYzwrjBNb1Da','zxH0zxjUywXtzxnZAw9Uswq','zMfPBfbYzxbHCMf0Aw9U','uvvfvuvFsvrftv9jtLzbteLe','z2v0','tuvtu0fhrv9ot1rFrK9vtKq','D29YA3nWywnLswq'];_0x2db2=function(){return _0x5bf51b;};return _0x2db2();}import{safeErrorCode}from'../util/safe-error.js';export class ContinuousRunCoordinator{[_0x1bad2a(0x19e)];[_0x1bad2a(0x177)]=new Map();[_0x1bad2a(0x170)]=new Set();[_0x1bad2a(0x1d4)]=new Map();constructor(_0x2de6a5){const _0x52b1ea=_0x1bad2a;this[_0x52b1ea(0x19e)]=_0x2de6a5;}[_0x1bad2a(0x1c6)](_0x5256b6){const _0xddfd23=_0x1bad2a,_0x4489d4=this[_0xddfd23(0x19e)][_0xddfd23(0x171)][_0xddfd23(0x1d5)](_0x5256b6[_0xddfd23(0x186)]);if(_0x4489d4===undefined)return this[_0xddfd23(0x19e)][_0xddfd23(0x171)][_0xddfd23(0x173)](_0x5256b6);const _0x4c298b=this[_0xddfd23(0x19e)][_0xddfd23(0x171)][_0xddfd23(0x1cd)]({'queueItemId':_0x5256b6[_0xddfd23(0x1b5)],'sessionId':_0x5256b6[_0xddfd23(0x186)],'clientMessageId':_0x5256b6[_0xddfd23(0x180)],'content':_0x5256b6[_0xddfd23(0x16a)],..._0x5256b6[_0xddfd23(0x18a)]===undefined?{}:{'initiatedByUserId':_0x5256b6[_0xddfd23(0x18a)]},..._0x5256b6[_0xddfd23(0x197)]===undefined?{}:{'attachments':_0x5256b6[_0xddfd23(0x197)]}});return{'run':_0x4489d4,'queueItem':_0x4c298b[_0xddfd23(0x1a1)],'created':_0x4c298b[_0xddfd23(0x1aa)]};}[_0x1bad2a(0x194)](_0x29581a,_0x4fcb2d){const _0xf89d88=_0x1bad2a,_0x43a5ec=this[_0xf89d88(0x19e)][_0xf89d88(0x171)][_0xf89d88(0x193)](_0x29581a),_0xe07aeb=this[_0xf89d88(0x19e)][_0xf89d88(0x171)][_0xf89d88(0x1a5)](_0x29581a);if(_0x43a5ec===undefined&&_0xe07aeb===undefined)throw new Error(_0xf89d88(0x1bb));if((_0x43a5ec?.[_0xf89d88(0x186)]??_0xe07aeb?.[_0xf89d88(0x186)])!==_0x4fcb2d[_0xf89d88(0x186)])throw new Error(_0xf89d88(0x1cb));this[_0xf89d88(0x177)][_0xf89d88(0x1b3)](_0x29581a,_0x4fcb2d);}[_0x1bad2a(0x17e)](_0x3fd68f){const _0x331490=_0x1bad2a;return this[_0x331490(0x177)][_0x331490(0x1ba)](_0x3fd68f);}[_0x1bad2a(0x1b8)](_0x49797d,_0x10c9b3){const _0x511016=_0x1bad2a;this[_0x511016(0x19e)][_0x511016(0x171)][_0x511016(0x16b)](_0x49797d,_0x10c9b3);const _0x439e09=this[_0x511016(0x19e)][_0x511016(0x171)][_0x511016(0x1a5)](_0x49797d);if(_0x439e09!==undefined){const _0xd2083f=_0x439e09[_0x511016(0x186)];this[_0x511016(0x1be)](_0x439e09['id']);const _0x14ea78=this[_0x511016(0x19e)][_0x511016(0x171)][_0x511016(0x1d5)](_0xd2083f);if(_0x14ea78===undefined||this[_0x511016(0x19e)][_0x511016(0x171)][_0x511016(0x190)](_0x14ea78['id'])!==undefined)return;if(this[_0x511016(0x19e)][_0x511016(0x171)][_0x511016(0x17f)](_0xd2083f)[_0x511016(0x1c0)][_0x511016(0x19c)]>-0x1515+0x2*-0xa08+0x2925){this[_0x511016(0x1bf)](_0xd2083f);return;}this[_0x511016(0x19e)][_0x511016(0x1ac)](_0x14ea78['id'],_0x511016(0x1b2),{'code':_0x10c9b3},_0x511016(0x17d));return;}const _0x5639c5=this[_0x511016(0x19e)][_0x511016(0x171)][_0x511016(0x193)](_0x49797d);if(_0x5639c5!==undefined)this[_0x511016(0x19e)][_0x511016(0x1ac)](_0x5639c5['id'],_0x511016(0x1b2),{'code':_0x10c9b3},_0x511016(0x17d));}[_0x1bad2a(0x178)](_0x225e3f){const _0x171e63=_0x1bad2a,_0x593fd5=this[_0x171e63(0x177)][_0x171e63(0x1ba)](_0x225e3f[_0x171e63(0x172)]),_0x40f569=this[_0x171e63(0x19e)][_0x171e63(0x171)][_0x171e63(0x1a5)](_0x225e3f[_0x171e63(0x172)]),_0x42a82f=_0x593fd5?.[_0x171e63(0x186)]??_0x40f569?.[_0x171e63(0x186)];if(_0x42a82f===undefined)throw new Error(_0x171e63(0x1a3));const _0x287e38=this[_0x171e63(0x19e)][_0x171e63(0x171)][_0x171e63(0x1d5)](_0x42a82f);if(!_0x225e3f[_0x171e63(0x19f)][_0x171e63(0x1ce)]||_0x225e3f[_0x171e63(0x1c4)]!==_0x171e63(0x16d))this[_0x171e63(0x19e)][_0x171e63(0x171)][_0x171e63(0x174)](_0x42a82f);if(_0x225e3f[_0x171e63(0x175)]!==undefined&&_0x287e38?.['id']===_0x225e3f[_0x171e63(0x175)])return this[_0x171e63(0x195)](_0x225e3f[_0x171e63(0x172)],_0x287e38['id']),_0x171e63(0x192);if(_0x287e38!==undefined&&_0x225e3f[_0x171e63(0x172)]===_0x287e38['id'])return this[_0x171e63(0x1bf)](_0x42a82f),_0x171e63(0x196);if(_0x287e38===undefined&&_0x40f569!==undefined){if(_0x225e3f[_0x171e63(0x19f)][_0x171e63(0x1ce)]&&_0x225e3f[_0x171e63(0x1c4)]===_0x171e63(0x16e))this[_0x171e63(0x19e)][_0x171e63(0x171)][_0x171e63(0x189)](_0x40f569['id']);return this[_0x171e63(0x17a)](_0x42a82f),_0x171e63(0x196);}return this[_0x171e63(0x1c3)](_0x42a82f),_0x171e63(0x1a0);}[_0x1bad2a(0x168)](_0x2db831){const _0x199f1f=_0x1bad2a,_0x46bfc2=this[_0x199f1f(0x1b0)](_0x2db831);this[_0x199f1f(0x19e)][_0x199f1f(0x171)][_0x199f1f(0x174)](_0x46bfc2[_0x199f1f(0x186)]),this[_0x199f1f(0x19e)][_0x199f1f(0x171)][_0x199f1f(0x189)](_0x46bfc2['id']);const _0x161429=this[_0x199f1f(0x19e)][_0x199f1f(0x171)][_0x199f1f(0x1d5)](_0x46bfc2[_0x199f1f(0x186)]);if(_0x161429!==undefined)return this[_0x199f1f(0x195)](_0x46bfc2['id'],_0x161429['id'],![]),{'run':_0x161429,'delivery':_0x199f1f(0x192)};this[_0x199f1f(0x17a)](_0x46bfc2[_0x199f1f(0x186)]);const _0x1abf20=this[_0x199f1f(0x19e)][_0x199f1f(0x171)][_0x199f1f(0x1d5)](_0x46bfc2[_0x199f1f(0x186)]);if(_0x1abf20===undefined)throw new Error(_0x199f1f(0x182));return{'run':_0x1abf20,'delivery':_0x199f1f(0x196)};}[_0x1bad2a(0x1b6)](_0x2baebf,_0x3669e4){const _0x36f05a=_0x1bad2a,_0x332227=this[_0x36f05a(0x177)][_0x36f05a(0x1ba)](_0x2baebf);if(_0x332227===undefined)return;this[_0x36f05a(0x177)][_0x36f05a(0x1b3)](_0x2baebf,{..._0x332227,'input':_0x3669e4});}[_0x1bad2a(0x1be)](_0x183332){const _0x389443=_0x1bad2a,_0x3cbba2=this[_0x389443(0x19e)][_0x389443(0x171)][_0x389443(0x1a5)](_0x183332);if(_0x3cbba2===undefined)throw new Error(_0x389443(0x1b9));this[_0x389443(0x19e)][_0x389443(0x171)][_0x389443(0x1be)](_0x3cbba2['id']),this[_0x389443(0x188)](_0x3cbba2['id']),this[_0x389443(0x19e)][_0x389443(0x1d0)](_0x3cbba2['id']),this[_0x389443(0x19e)][_0x389443(0x18f)](_0x3cbba2['id']),this[_0x389443(0x19e)][_0x389443(0x1af)](_0x3cbba2[_0x389443(0x1bc)],_0x3cbba2[_0x389443(0x186)]);}[_0x1bad2a(0x1ab)](_0x31608b){const _0x1efa3c=_0x1bad2a,_0x50c782=this[_0x1efa3c(0x19e)][_0x1efa3c(0x171)][_0x1efa3c(0x1a7)](_0x31608b);if(_0x50c782!==undefined)this[_0x1efa3c(0x19e)][_0x1efa3c(0x1cc)](_0x50c782);}[_0x1bad2a(0x1c3)](_0x4202ef){const _0x39e84b=_0x1bad2a,_0x45806c=this[_0x39e84b(0x19e)][_0x39e84b(0x171)][_0x39e84b(0x1c2)](_0x4202ef);if(_0x45806c===undefined)throw new Error(_0x39e84b(0x1a3));this[_0x39e84b(0x19e)][_0x39e84b(0x1af)](_0x45806c[_0x39e84b(0x1bc)],_0x45806c['id']);}[_0x1bad2a(0x195)](_0x2b59ee,_0x5dd369,_0x2ca633=!![]){const _0x30ede8=_0x1bad2a,_0x4ff1ac=this[_0x30ede8(0x1b0)](_0x2b59ee),_0x1ed71d=this[_0x30ede8(0x19e)][_0x30ede8(0x171)][_0x30ede8(0x193)](_0x5dd369);if(_0x1ed71d===undefined||_0x4ff1ac[_0x30ede8(0x186)]!==_0x1ed71d[_0x30ede8(0x186)])throw new Error(_0x30ede8(0x1b9));if(_0x2ca633)this[_0x30ede8(0x19e)][_0x30ede8(0x171)][_0x30ede8(0x189)](_0x4ff1ac['id']);this[_0x30ede8(0x1c3)](_0x4ff1ac[_0x30ede8(0x186)]);const _0x3fd97f=this[_0x30ede8(0x19e)][_0x30ede8(0x171)][_0x30ede8(0x190)](_0x1ed71d['id']);if(_0x3fd97f===undefined)throw new Error(_0x30ede8(0x1a8));this[_0x30ede8(0x19e)][_0x30ede8(0x169)](_0x3fd97f),this[_0x30ede8(0x19e)][_0x30ede8(0x1d1)](_0x30ede8(0x18b),{'runId':_0x3fd97f});}[_0x1bad2a(0x1c1)](_0x4ff8aa){const _0x740615=_0x1bad2a;this[_0x740615(0x19e)][_0x740615(0x171)][_0x740615(0x174)](_0x4ff8aa),this[_0x740615(0x17a)](_0x4ff8aa);}[_0x1bad2a(0x1bf)](_0x4544a5){const _0x15bd71=_0x1bad2a;if(this[_0x15bd71(0x1d4)][_0x15bd71(0x1c8)](_0x4544a5))return;const _0x4df3b6=setTimeout(()=>{const _0x4b59e7=_0x15bd71;this[_0x4b59e7(0x1d4)][_0x4b59e7(0x1a4)](_0x4544a5);if(!this[_0x4b59e7(0x19e)][_0x4b59e7(0x18c)]())void this[_0x4b59e7(0x19d)](_0x4544a5);},-0x1c90+-0x6e7+0x2377*0x1);this[_0x15bd71(0x1d4)][_0x15bd71(0x1b3)](_0x4544a5,_0x4df3b6),_0x4df3b6[_0x15bd71(0x16f)]();}async[_0x1bad2a(0x19d)](_0x3904dd){const _0xb74e94=_0x1bad2a,_0x4cc033=this[_0xb74e94(0x19e)][_0xb74e94(0x171)][_0xb74e94(0x1d5)](_0x3904dd);if(_0x4cc033===undefined)return;let _0xaaca50=this[_0xb74e94(0x19e)][_0xb74e94(0x171)][_0xb74e94(0x190)](_0x4cc033['id']);if(_0xaaca50!==undefined&&this[_0xb74e94(0x170)][_0xb74e94(0x1c8)](_0xaaca50))return;let _0x38fa11=_0xaaca50===undefined?this[_0xb74e94(0x177)][_0xb74e94(0x1ba)](_0x4cc033['id']):this[_0xb74e94(0x177)][_0xb74e94(0x1ba)](_0xaaca50);if(_0xaaca50===undefined&&_0x38fa11===undefined){const _0x1af92f=this[_0xb74e94(0x19e)][_0xb74e94(0x171)][_0xb74e94(0x17f)](_0x3904dd)[_0xb74e94(0x1c0)][0x212f*0x1+-0x5f*0x26+0x3d1*-0x5];if(_0x1af92f===undefined)return;_0x38fa11=this[_0xb74e94(0x177)][_0xb74e94(0x1ba)](_0x1af92f);if(_0x38fa11===undefined)return;const _0x53fd20=this[_0xb74e94(0x19e)][_0xb74e94(0x171)][_0xb74e94(0x1ca)](_0x3904dd);if(_0x53fd20===undefined)return;const _0x4f590e=this[_0xb74e94(0x19e)][_0xb74e94(0x171)][_0xb74e94(0x1c7)](_0x4cc033['id']);_0xaaca50=_0x4f590e['id'],this[_0xb74e94(0x177)][_0xb74e94(0x1a4)](_0x1af92f),this[_0xb74e94(0x177)][_0xb74e94(0x1b3)](_0x4f590e['id'],{..._0x38fa11,'runId':_0x4f590e['id']}),this[_0xb74e94(0x19e)][_0xb74e94(0x16c)](_0x1af92f,_0x4f590e['id']),this[_0xb74e94(0x1c3)](_0x3904dd),this[_0xb74e94(0x19e)][_0xb74e94(0x1cc)](_0x53fd20[_0xb74e94(0x1d3)]);}else{if(_0xaaca50===undefined&&_0x38fa11!==undefined){const _0x594680=this[_0xb74e94(0x19e)][_0xb74e94(0x171)][_0xb74e94(0x1c7)](_0x4cc033['id']);_0xaaca50=_0x594680['id'],this[_0xb74e94(0x177)][_0xb74e94(0x1a4)](_0x4cc033['id']),this[_0xb74e94(0x177)][_0xb74e94(0x1b3)](_0x594680['id'],{..._0x38fa11,'runId':_0x594680['id']}),this[_0xb74e94(0x19e)][_0xb74e94(0x16c)](_0x4cc033['id'],_0x594680['id']);}}if(_0xaaca50===undefined||_0x38fa11===undefined)return;if(this[_0xb74e94(0x170)][_0xb74e94(0x1c8)](_0xaaca50))return;this[_0xb74e94(0x170)][_0xb74e94(0x1b4)](_0xaaca50);try{this[_0xb74e94(0x19e)][_0xb74e94(0x1d1)](_0xb74e94(0x198),{'runId':_0xaaca50,'sessionId':_0x38fa11[_0xb74e94(0x186)],'workspaceId':_0x38fa11[_0xb74e94(0x1bc)],'runner':_0x38fa11[_0xb74e94(0x1a6)],'input':_0x38fa11[_0xb74e94(0x17c)],..._0x38fa11[_0xb74e94(0x197)][_0xb74e94(0x19c)]===0x52*-0x54+0x619*-0x5+-0x1*-0x3965?{}:{'attachments':_0x38fa11[_0xb74e94(0x197)]},'cwd':_0x38fa11[_0xb74e94(0x187)],..._0x38fa11[_0xb74e94(0x1b7)]===null?{}:{'externalSessionId':_0x38fa11[_0xb74e94(0x1b7)]},..._0x38fa11[_0xb74e94(0x18d)]===null?{}:{'model':_0x38fa11[_0xb74e94(0x18d)]},..._0x38fa11[_0xb74e94(0x1b1)]===null?{}:{'effort':_0x38fa11[_0xb74e94(0x1b1)]},..._0x38fa11[_0xb74e94(0x183)]===null?{}:{'access':_0x38fa11[_0xb74e94(0x183)]},'collaborationMode':_0x38fa11[_0xb74e94(0x1a2)],..._0x38fa11[_0xb74e94(0x1ae)]===undefined?{}:{'serviceTier':_0x38fa11[_0xb74e94(0x1ae)]},'secretEnvironment':_0x38fa11[_0xb74e94(0x1ad)],..._0x38fa11[_0xb74e94(0x1bd)]===undefined?{}:{'personalInstructions':_0x38fa11[_0xb74e94(0x1bd)]},'mcpInstallations':this[_0xb74e94(0x19e)][_0xb74e94(0x199)](_0x38fa11[_0xb74e94(0x1bc)])});}catch(_0x150ee6){this[_0xb74e94(0x19e)][_0xb74e94(0x1ac)](_0xaaca50,_0xb74e94(0x1b2),{'code':safeErrorCode(_0x150ee6,_0xb74e94(0x1a9))},_0xb74e94(0x17d));}}[_0x1bad2a(0x19a)](_0x2fdd65,_0x14d01f){const _0x209795=_0x1bad2a;for(const [_0x2c9f89,_0x2a0d7d]of this[_0x209795(0x177)])if(_0x2a0d7d[_0x209795(0x186)]===_0x2fdd65)this[_0x209795(0x177)][_0x209795(0x1b3)](_0x2c9f89,{..._0x2a0d7d,'sessionId':_0x14d01f,'externalSessionId':_0x14d01f});const _0x455cb4=this[_0x209795(0x1d4)][_0x209795(0x1ba)](_0x2fdd65);_0x455cb4!==undefined&&(clearTimeout(_0x455cb4),this[_0x209795(0x1d4)][_0x209795(0x1a4)](_0x2fdd65),this[_0x209795(0x1bf)](_0x14d01f));}[_0x1bad2a(0x188)](_0x4ea1b4){const _0x3d86ff=_0x1bad2a;this[_0x3d86ff(0x177)][_0x3d86ff(0x1a4)](_0x4ea1b4),this[_0x3d86ff(0x170)][_0x3d86ff(0x1a4)](_0x4ea1b4);}[_0x1bad2a(0x17b)](){const _0x4a5715=_0x1bad2a;this[_0x4a5715(0x177)][_0x4a5715(0x17b)](),this[_0x4a5715(0x170)][_0x4a5715(0x17b)]();for(const _0x1d7f33 of this[_0x4a5715(0x1d4)][_0x4a5715(0x185)]())clearTimeout(_0x1d7f33);this[_0x4a5715(0x1d4)][_0x4a5715(0x17b)]();}[_0x1bad2a(0x17a)](_0x11d057){const _0x142afd=_0x1bad2a;if(this[_0x142afd(0x19e)][_0x142afd(0x171)][_0x142afd(0x1d5)](_0x11d057)!==undefined){this[_0x142afd(0x1bf)](_0x11d057);return;}const _0x513fe2=this[_0x142afd(0x19e)][_0x142afd(0x171)][_0x142afd(0x17f)](_0x11d057),_0x1e20fe=_0x513fe2[_0x142afd(0x1ce)]?undefined:_0x513fe2[_0x142afd(0x1c0)][0x1*0x1e9e+0x1a17+-0x38b5];if(_0x1e20fe===undefined)return;const _0x33c5cb=this[_0x142afd(0x177)][_0x142afd(0x1ba)](_0x1e20fe);if(_0x33c5cb===undefined)throw new Error(_0x142afd(0x181));const {run:_0xd58a96,turn:_0x698016}=this[_0x142afd(0x19e)][_0x142afd(0x171)][_0x142afd(0x1cf)](_0x1e20fe);this[_0x142afd(0x177)][_0x142afd(0x1a4)](_0x1e20fe),this[_0x142afd(0x177)][_0x142afd(0x1b3)](_0xd58a96['id'],{..._0x33c5cb,'runId':_0xd58a96['id']}),this[_0x142afd(0x19e)][_0x142afd(0x1af)](_0xd58a96[_0x142afd(0x1bc)],_0x11d057),this[_0x142afd(0x19e)][_0x142afd(0x1cc)](_0x698016),this[_0x142afd(0x1bf)](_0x11d057);}[_0x1bad2a(0x1b0)](_0x576219){const _0x28e99c=_0x1bad2a,_0x2ba536=this[_0x28e99c(0x19e)][_0x28e99c(0x171)][_0x28e99c(0x1a5)](_0x576219);if(_0x2ba536===undefined)throw new Error(_0x28e99c(0x1b9));if(!this[_0x28e99c(0x177)][_0x28e99c(0x1c8)](_0x576219))throw new Error(_0x28e99c(0x181));return _0x2ba536;}}
2
+ const _0x1b22b2=_0xb37e;function _0xb37e(_0x3fd715,_0x21038d){_0x3fd715=_0x3fd715-(-0x1d4d*-0x1+-0x3*0x8f3+0x6e*-0x2);const _0x41ea1b=_0x5a72();let _0x1669f2=_0x41ea1b[_0x3fd715];if(_0xb37e['NVhrvV']===undefined){var _0xd8c5db=function(_0x1d1757){const _0x1fb69f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10e961='',_0x25e740='';for(let _0x1ad1e6=0x6c*0x47+0xf7*-0x13+0xb9f*-0x1,_0x236b44,_0x2d6744,_0x5b745e=0x15b+-0x3a*0x64+0x154d;_0x2d6744=_0x1d1757['charAt'](_0x5b745e++);~_0x2d6744&&(_0x236b44=_0x1ad1e6%(-0x1*-0x535+0x65*-0x56+0x1cbd)?_0x236b44*(0xd38+-0x7*0x295+-0x1*-0x51b)+_0x2d6744:_0x2d6744,_0x1ad1e6++%(0xb*0x15d+-0x65*-0x2f+-0x2186))?_0x10e961+=String['fromCharCode'](0xea0+0xcab*0x1+-0x1a4c&_0x236b44>>(-(0xae+0x103c+0x43a*-0x4)*_0x1ad1e6&0x63*-0x2a+0x150d*0x1+-0x4c9)):0x4f*-0x7b+0x144a+0x11ab*0x1){_0x2d6744=_0x1fb69f['indexOf'](_0x2d6744);}for(let _0x2f24ae=-0x1*0x104a+0x53f*-0x1+0x1589,_0x10778f=_0x10e961['length'];_0x2f24ae<_0x10778f;_0x2f24ae++){_0x25e740+='%'+('00'+_0x10e961['charCodeAt'](_0x2f24ae)['toString'](-0x12ab+0x24cf+-0x1214))['slice'](-(-0x12c2+0x17e5+-0x1*0x521));}return decodeURIComponent(_0x25e740);};_0xb37e['jdEGsl']=_0xd8c5db,_0xb37e['ltXMCa']={},_0xb37e['NVhrvV']=!![];}const _0x40b67a=_0x41ea1b[-0x1*0xfa1+0x1*-0x24d+-0x10e*-0x11];_0xb37e['ZCevIo']!==_0x40b67a&&(_0xb37e['ltXMCa']={},_0xb37e['ZCevIo']=_0x40b67a);const _0x5a2edc=_0xb37e['ltXMCa'][_0x3fd715];return _0x5a2edc===undefined?(_0x1669f2=_0xb37e['jdEGsl'](_0x1669f2),_0xb37e['ltXMCa'][_0x3fd715]=_0x1669f2):_0x1669f2=_0x5a2edc,_0x1669f2;}(function(_0x54eae4,_0x435bf1){const _0x2fde71=_0xb37e,_0x7f0d0d=_0x54eae4();while(!![]){try{const _0x2bee1e=-parseInt(_0x2fde71(0x1ae))/(-0x2347+-0x1*0x118d+0x1*0x34d5)*(-parseInt(_0x2fde71(0x1cd))/(0x1*-0x4c7+0x12f9+-0x38c*0x4))+parseInt(_0x2fde71(0x1b9))/(-0x2595+0x35f*0x8+0xaa0)*(parseInt(_0x2fde71(0x210))/(-0x125a+0x1ef8+-0xc9a*0x1))+parseInt(_0x2fde71(0x1ef))/(0xd4+0x162e+-0x16fd)+parseInt(_0x2fde71(0x1dd))/(-0x1988+0x1690+0x2fe)+-parseInt(_0x2fde71(0x1e2))/(-0x1b4f+-0x1*-0xaac+0x2*0x855)+parseInt(_0x2fde71(0x1d8))/(0x1*0x198b+-0xf3a+-0xa49)*(-parseInt(_0x2fde71(0x1e5))/(0x26b*0xf+-0x30f+-0x212d))+-parseInt(_0x2fde71(0x1da))/(-0x488+0x5*0x6dd+0x5*-0x5f3)*(parseInt(_0x2fde71(0x1b8))/(0x1621*0x1+-0x3*-0x31a+-0x1f64));if(_0x2bee1e===_0x435bf1)break;else _0x7f0d0d['push'](_0x7f0d0d['shift']());}catch(_0x2bd6ab){_0x7f0d0d['push'](_0x7f0d0d['shift']());}}}(_0x5a72,0x3105e+0x22*0x335c+0x98b*-0xa7));function _0x5a72(){const _0x4ae22d=['zwzMB3j0','u1rbuLrfra','CNvUlMLUDgvYCNvWDa','BwLNCMf0zufZC2v0CW','tuvtu0fhrv9ot1rFrK9vtKq','uLvox1nuqvjux0zbsuXfra','zw1PDfj1BG','AxrLBuLKCW','uKvtvefsveLorW','C2nOzwr1Bgu','C2nOzwr1BgvKu2vZC2LVBNm','C3rHCNrjzgXLuxvLDwu','BwfYqwDLBNrnB2rLBa','uLvox0vyrunvveLptL9ot1rFrK9vtKq','CNvUDgLTzq','yxr0ywnOBwvUDhm','uvvfvuve','zw1PDff1zxvL','u1vdq0vfreve','Aw50zw50','B3b0Aw9UCW','AgfZrxHLy3v0Aw9Uu3rHCNrLza','Aw5ZDgfSBgf0Aw9U','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','BgvUz3rO','CgvYC29UywXjBNn0CNvJDgLVBNm','mxDsCef4Aq','zxHLy3v0zvf1zxvLsxrLBq','y3vYCMvUDev4zwn1DgLVBKLK','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','z2v0qwDLBNrtzxnZAw9U','zxH0zxjUywXtzxnZAw9Uswq','u0vora','Aw5WDxq','CMvXDwLYzvbYzxbHCMvKsxrLBq','CMvTB3zL','oti0D0nJwuzS','m1zAtg5jAW','C3rHDhvZ','ywnJzxb0','C2vYDMLJzvrPzxi','DxbKyxrLuhjLCgfYzwrjBNb1Da','BwfYA0LUDgvYCNvWDgvK','CNvUlNjLAMvJDgvK','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','ChjLCgfYzwrjBNb1Dhm','CNvUswq','CNvUBMvY','BwLZC2LVBK1JCa','tuvtu0fhrv9trvntsu9ox01ju01bveni','ywn0AxzLuNvUswq','zxHLy3v0Aw9Uu3rHCNrLza','CMvTB3zLtwLZC2LVBLf1zxvL','y2XLyw51Cef0DgfJAg1LBNrZ','y29UDhjVBa','ChvIBgLZAen1CNjLBNruDxjU','uLvox1rvuK5FtK9ux0zpvu5e','mJGWmdrTzhrcthG','zgvSzxrL','ChjPB3jPDgL6zvf1zxvLsxrLBq','u0vtu0LptL9ot1rFrK9vtKq','AxrLBq','y29UDgvUDa','su5urvjsvvburuq','zgvSzxrLuxvLDwvjDgvT','uLvox05pvf9gt1vora','DMvYC2LVBG','rKfjteve','mtznEffZB3G','CMvZDw1Lu2vZC2LVBLf1zxvL','mZu4mgXluwP0uq','CMvWBgfJzq','Dw5Yzwy','mJqYmJG2nMXhzg9kyq','C3vIBwLZC2LVBKLK','BwLNCMf0zvnLC3nPB24','z2v0','zgLZCgf0y2HLzev4zwn1DgLVBNm','mtK1ndaWohD1B1rAAa','y2XHAw1ozxH0uxvLDwvjDgvT','CMvZDw1L','mti1nJqWovLuCufJtG','C2vZC2LVBLf1zxvL','AgfZ','Bw9KzwW','ywn0AxzLu2vZC2LVBLj1BG','BwLZC2LVBG','y2f0y2G','ywz0zxjfEgvJDxrPB25tDgfYDgvK','C3rVChbLza','C2vJCMv0rw52AxjVBM1LBNq','mJu0mtG1zNrZqMDn','y29SBgfIB3jHDgLVBK1Vzgu','CxvLDwvczwzVCMu','z2v0uxvLDwvjDgvT','y3jLyxrLuxvLDwvjDgvT','y3DK','uvvfvuvFsu5qvvrFte9tva','ChvIBgLZAa','C2v0','Aw5PDgLHDgvKqNLvC2vYswq','CMvTB3zLugvUzgLUz1f1zxvL','uvvfvuvFsvrftv9jtLzbteLe','uvvfvuu','y2XPzw50twvZC2fNzuLK','C2vJCMv0CW','y3jLyxrLrxHLy3v0Aw9U','ywnJzxnZ','C2v0DgXL','CNvUlNn0yxj0','Cgf1C2vK','ywrK','BwnWCW','DMfSDwvZ','y3jLyxrLza','zgLZCgf0y2G','C2vZC2LVBKLK','ChjLCgfYzq','y2XLyxi','CgvUzgLUzW','y3jLyxrLtwvZC2fNzvj1BG','zMfPBfbYzxbHCMf0Aw9U','zw1PDenVBNzLCNnHDgLVBG','C3rHCNrLzev4zwn1DgLVBNm','mtqZodq2ofbdEerYDG','y2XLyxjjBwfNzxm','z2v0uNvU','D29YA3nWywnLswq','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG'];_0x5a72=function(){return _0x4ae22d;};return _0x5a72();}import{safeErrorCode}from'../util/safe-error.js';export class ContinuousRunCoordinator{[_0x1b22b2(0x1a8)];[_0x1b22b2(0x1c1)]=new Map();[_0x1b22b2(0x1e1)]=new Set();[_0x1b22b2(0x20f)]=new Set();[_0x1b22b2(0x19e)]=new Map();constructor(_0x1cd557){const _0x399f2d=_0x1b22b2;this[_0x399f2d(0x1a8)]=_0x1cd557;}[_0x1b22b2(0x1bb)](_0x58a3ca){const _0x3090c9=_0x1b22b2,_0x5e5283=this[_0x3090c9(0x1a8)][_0x3090c9(0x1a2)][_0x3090c9(0x1e9)](_0x58a3ca[_0x3090c9(0x208)]);if(_0x5e5283===undefined)return this[_0x3090c9(0x1a8)][_0x3090c9(0x1a2)][_0x3090c9(0x20c)](_0x58a3ca);const _0x7af719=this[_0x3090c9(0x1a8)][_0x3090c9(0x1a2)][_0x3090c9(0x1f3)]({'queueItemId':_0x58a3ca[_0x3090c9(0x1c2)],'sessionId':_0x58a3ca[_0x3090c9(0x208)],'clientMessageId':_0x58a3ca[_0x3090c9(0x1fc)],'content':_0x58a3ca[_0x3090c9(0x1d2)],..._0x58a3ca[_0x3090c9(0x1f8)]===undefined?{}:{'initiatedByUserId':_0x58a3ca[_0x3090c9(0x1f8)]},..._0x58a3ca[_0x3090c9(0x1a3)]===undefined?{}:{'attachments':_0x58a3ca[_0x3090c9(0x1a3)]}});if(_0x7af719[_0x3090c9(0x206)])this[_0x3090c9(0x1a8)][_0x3090c9(0x1a5)](_0x7af719[_0x3090c9(0x1d1)][_0x3090c9(0x213)],_0x7af719[_0x3090c9(0x1d1)][_0x3090c9(0x208)]);return{'run':_0x5e5283,'queueItem':_0x7af719[_0x3090c9(0x1d1)],'created':_0x7af719[_0x3090c9(0x206)]};}[_0x1b22b2(0x209)](_0x3084f3,_0x438121){const _0x54e78f=_0x1b22b2,_0x179874=this[_0x54e78f(0x1a8)][_0x54e78f(0x1a2)][_0x54e78f(0x212)](_0x3084f3),_0x2d0773=this[_0x54e78f(0x1a8)][_0x54e78f(0x1a2)][_0x54e78f(0x1f2)](_0x3084f3);if(_0x179874===undefined&&_0x2d0773===undefined)throw new Error(_0x54e78f(0x198));if((_0x179874?.[_0x54e78f(0x208)]??_0x2d0773?.[_0x54e78f(0x208)])!==_0x438121[_0x54e78f(0x208)])throw new Error(_0x54e78f(0x1c5));this[_0x54e78f(0x1c1)][_0x54e78f(0x1f7)](_0x3084f3,_0x438121);}[_0x1b22b2(0x20b)](_0x3cd23e){const _0x37013d=_0x1b22b2;return this[_0x37013d(0x1c1)][_0x37013d(0x1e0)](_0x3cd23e);}[_0x1b22b2(0x20d)](_0x52d11f,_0x1bddc3){const _0x42bdb0=_0x1b22b2;this[_0x42bdb0(0x1a8)][_0x42bdb0(0x1a2)][_0x42bdb0(0x1c0)](_0x52d11f,_0x1bddc3);const _0x49617a=this[_0x42bdb0(0x1a8)][_0x42bdb0(0x1a2)][_0x42bdb0(0x1f2)](_0x52d11f);if(_0x49617a!==undefined){const _0x4aef1a=_0x49617a[_0x42bdb0(0x208)];this[_0x42bdb0(0x1d4)](_0x49617a['id']);const _0x359752=this[_0x42bdb0(0x1a8)][_0x42bdb0(0x1a2)][_0x42bdb0(0x1e9)](_0x4aef1a);if(_0x359752===undefined||this[_0x42bdb0(0x1a8)][_0x42bdb0(0x1a2)][_0x42bdb0(0x1b0)](_0x359752['id'])!==undefined)return;if(this[_0x42bdb0(0x1a8)][_0x42bdb0(0x1a2)][_0x42bdb0(0x1e6)](_0x4aef1a)[_0x42bdb0(0x19b)][_0x42bdb0(0x1ac)]>0x67*0x32+0x13a4*0x1+-0x2d7*0xe){this[_0x42bdb0(0x19d)](_0x4aef1a);return;}this[_0x42bdb0(0x1a8)][_0x42bdb0(0x19a)](_0x359752['id'],_0x42bdb0(0x1bf),{'code':_0x1bddc3},_0x42bdb0(0x1d7));return;}const _0x50d419=this[_0x42bdb0(0x1a8)][_0x42bdb0(0x1a2)][_0x42bdb0(0x212)](_0x52d11f);if(_0x50d419!==undefined)this[_0x42bdb0(0x1a8)][_0x42bdb0(0x19a)](_0x50d419['id'],_0x42bdb0(0x1bf),{'code':_0x1bddc3},_0x42bdb0(0x1d7));}[_0x1b22b2(0x200)](_0x5a03ad){const _0x59dba2=_0x1b22b2,_0x1c4800=this[_0x59dba2(0x1c1)][_0x59dba2(0x1e0)](_0x5a03ad[_0x59dba2(0x1de)]),_0x15c49a=this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1f2)](_0x5a03ad[_0x59dba2(0x1de)]),_0x487390=_0x1c4800?.[_0x59dba2(0x208)]??_0x15c49a?.[_0x59dba2(0x208)];if(_0x487390===undefined)throw new Error(_0x59dba2(0x1d0));const _0x4a6159=this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1e9)](_0x487390),_0x4461db=_0x4a6159&&this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1ab)](_0x4a6159['id']),_0x1c216b=_0x4a6159!==undefined&&this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1b0)](_0x4a6159['id'])===undefined&&_0x4461db!==undefined&&(_0x4461db[_0x59dba2(0x1ba)]===_0x59dba2(0x1a6)||_0x4461db[_0x59dba2(0x1ba)]===_0x59dba2(0x1d7)||_0x4461db[_0x59dba2(0x1ba)]===_0x59dba2(0x1d3)),_0x3ea3fe=this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1e6)](_0x487390)[_0x59dba2(0x1d6)],_0x50d176=_0x4a6159!==undefined&&_0x5a03ad[_0x59dba2(0x1de)]===_0x4a6159['id'];if(_0x50d176||!_0x5a03ad[_0x59dba2(0x1f1)][_0x59dba2(0x202)]||_0x5a03ad[_0x59dba2(0x1a7)]!==_0x59dba2(0x1fb))this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1d9)](_0x487390);if(_0x5a03ad[_0x59dba2(0x1c6)]!==undefined&&_0x4a6159?.['id']===_0x5a03ad[_0x59dba2(0x1c6)]){if(_0x1c216b){if(_0x15c49a!==undefined)this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1cf)](_0x15c49a['id']);return this[_0x59dba2(0x19d)](_0x487390),_0x59dba2(0x19c);}return this[_0x59dba2(0x1db)](_0x5a03ad[_0x59dba2(0x1de)],_0x4a6159['id']),_0x59dba2(0x19c);}if(_0x50d176)return this[_0x59dba2(0x19d)](_0x487390),_0x59dba2(0x216);if(_0x4a6159===undefined&&_0x15c49a!==undefined){if(_0x5a03ad[_0x59dba2(0x1f1)][_0x59dba2(0x202)]&&_0x5a03ad[_0x59dba2(0x1a7)]===_0x59dba2(0x1b4))this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1cf)](_0x15c49a['id']);return this[_0x59dba2(0x19f)](_0x487390),_0x59dba2(0x216);}if(_0x1c216b&&_0x15c49a!==undefined){if(_0x5a03ad[_0x59dba2(0x1a7)]===_0x59dba2(0x1b4))this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1cf)](_0x15c49a['id']);return this[_0x59dba2(0x19d)](_0x487390),_0x59dba2(0x216);}if(this[_0x59dba2(0x1a8)][_0x59dba2(0x1a2)][_0x59dba2(0x1e6)](_0x487390)[_0x59dba2(0x1d6)]!==_0x3ea3fe)this[_0x59dba2(0x1f6)](_0x487390);return _0x59dba2(0x1a4);}[_0x1b22b2(0x1af)](_0x1bce55){const _0x1a5522=_0x1b22b2,_0x2948cd=this[_0x1a5522(0x1b6)](_0x1bce55);this[_0x1a5522(0x1a8)][_0x1a5522(0x1a2)][_0x1a5522(0x1d9)](_0x2948cd[_0x1a5522(0x208)]),this[_0x1a5522(0x1a8)][_0x1a5522(0x1a2)][_0x1a5522(0x1cf)](_0x2948cd['id']);const _0x5ce0b4=this[_0x1a5522(0x1a8)][_0x1a5522(0x1a2)][_0x1a5522(0x1e9)](_0x2948cd[_0x1a5522(0x208)]);if(_0x5ce0b4!==undefined)return this[_0x1a5522(0x1db)](_0x2948cd['id'],_0x5ce0b4['id'],![]),{'run':_0x5ce0b4,'delivery':_0x1a5522(0x19c)};this[_0x1a5522(0x19f)](_0x2948cd[_0x1a5522(0x208)]);const _0x2f3493=this[_0x1a5522(0x1a8)][_0x1a5522(0x1a2)][_0x1a5522(0x1e9)](_0x2948cd[_0x1a5522(0x208)]);if(_0x2f3493===undefined)throw new Error(_0x1a5522(0x1d5));return{'run':_0x2f3493,'delivery':_0x1a5522(0x216)};}[_0x1b22b2(0x1bd)](_0x5bb2f8,_0x5b1952){const _0x177bd4=_0x1b22b2,_0x113ba6=this[_0x177bd4(0x1c1)][_0x177bd4(0x1e0)](_0x5bb2f8);if(_0x113ba6===undefined)return;this[_0x177bd4(0x1c1)][_0x177bd4(0x1f7)](_0x5bb2f8,{..._0x113ba6,'input':_0x5b1952});}[_0x1b22b2(0x1d4)](_0x18e778){const _0x292d07=_0x1b22b2,_0x5c9d99=this[_0x292d07(0x1a8)][_0x292d07(0x1a2)][_0x292d07(0x1f2)](_0x18e778);if(_0x5c9d99===undefined)throw new Error(_0x292d07(0x1fa));this[_0x292d07(0x1a8)][_0x292d07(0x1a2)][_0x292d07(0x1d4)](_0x5c9d99['id']),this[_0x292d07(0x1b7)](_0x5c9d99['id']),this[_0x292d07(0x1a8)][_0x292d07(0x211)](_0x5c9d99['id']),this[_0x292d07(0x1a8)][_0x292d07(0x1c9)](_0x5c9d99['id']),this[_0x292d07(0x1a8)][_0x292d07(0x1a5)](_0x5c9d99[_0x292d07(0x213)],_0x5c9d99[_0x292d07(0x208)]);}[_0x1b22b2(0x1cb)](_0x2ae84a){const _0x51b970=_0x1b22b2,_0x2298ad=this[_0x51b970(0x1a8)][_0x51b970(0x1a2)][_0x51b970(0x1ab)](_0x2ae84a);if(_0x2298ad!==undefined)this[_0x51b970(0x1a8)][_0x51b970(0x20e)](_0x2298ad);}[_0x1b22b2(0x1f6)](_0x1fee25){const _0x2eaf1b=_0x1b22b2,_0x18cb56=this[_0x2eaf1b(0x1a8)][_0x2eaf1b(0x1a2)][_0x2eaf1b(0x1b2)](_0x1fee25);if(_0x18cb56===undefined)throw new Error(_0x2eaf1b(0x1d0));this[_0x2eaf1b(0x1a8)][_0x2eaf1b(0x1a5)](_0x18cb56[_0x2eaf1b(0x213)],_0x18cb56['id']);}[_0x1b22b2(0x1db)](_0x4cda35,_0x2a5cb4,_0x2a2d00=!![]){const _0x2539ef=_0x1b22b2,_0x40e90a=this[_0x2539ef(0x1b6)](_0x4cda35),_0x2f2627=this[_0x2539ef(0x1a8)][_0x2539ef(0x1a2)][_0x2539ef(0x212)](_0x2a5cb4);if(_0x2f2627===undefined||_0x40e90a[_0x2539ef(0x208)]!==_0x2f2627[_0x2539ef(0x208)])throw new Error(_0x2539ef(0x1fa));if(_0x2a2d00)this[_0x2539ef(0x1a8)][_0x2539ef(0x1a2)][_0x2539ef(0x1cf)](_0x40e90a['id']);this[_0x2539ef(0x1f6)](_0x40e90a[_0x2539ef(0x208)]);const _0x1c9ca4=this[_0x2539ef(0x1a8)][_0x2539ef(0x1a2)][_0x2539ef(0x1b0)](_0x2f2627['id']);if(_0x1c9ca4===undefined)throw new Error(_0x2539ef(0x1a1));if(!this[_0x2539ef(0x20f)][_0x2539ef(0x1e7)](_0x1c9ca4)){const _0x2ce147=this[_0x2539ef(0x1c1)][_0x2539ef(0x1e0)](_0x1c9ca4),_0x514acf=this[_0x2539ef(0x1c1)][_0x2539ef(0x1e0)](_0x40e90a['id']);if(_0x2ce147!==undefined&&_0x514acf!==undefined)this[_0x2539ef(0x1c1)][_0x2539ef(0x1f7)](_0x40e90a['id'],{..._0x514acf,'input':_0x2ce147[_0x2539ef(0x1b5)]+'\x0a\x0a'+_0x514acf[_0x2539ef(0x1b5)]});}this[_0x2539ef(0x1a8)][_0x2539ef(0x1be)](_0x1c9ca4),this[_0x2539ef(0x1a8)][_0x2539ef(0x1ca)](_0x2539ef(0x217),{'runId':_0x1c9ca4});}[_0x1b22b2(0x1e4)](_0x1ede86){const _0xdd3194=_0x1b22b2;this[_0xdd3194(0x1a8)][_0xdd3194(0x1a2)][_0xdd3194(0x1d9)](_0x1ede86),this[_0xdd3194(0x19f)](_0x1ede86);}[_0x1b22b2(0x19d)](_0x49d89e,_0x319861=-0x2172+0x67c+-0x3da*-0x7){const _0x39dfdd=_0x1b22b2;if(this[_0x39dfdd(0x19e)][_0x39dfdd(0x1e7)](_0x49d89e))return;const _0x33114d=setTimeout(()=>{const _0x10e469=_0x39dfdd;this[_0x10e469(0x19e)][_0x10e469(0x1ce)](_0x49d89e);if(!this[_0x10e469(0x1a8)][_0x10e469(0x1ed)]())void this[_0x10e469(0x207)](_0x49d89e);},_0x319861);this[_0x39dfdd(0x19e)][_0x39dfdd(0x1f7)](_0x49d89e,_0x33114d),_0x33114d[_0x39dfdd(0x1dc)]();}async[_0x1b22b2(0x207)](_0xd4b161){const _0x5d3005=_0x1b22b2,_0x3fd715=this[_0x5d3005(0x1a8)][_0x5d3005(0x1a2)][_0x5d3005(0x1e9)](_0xd4b161);if(_0x3fd715===undefined)return;let _0x21038d=this[_0x5d3005(0x1a8)][_0x5d3005(0x1a2)][_0x5d3005(0x1b0)](_0x3fd715['id']);if(_0x21038d!==undefined&&this[_0x5d3005(0x1e1)][_0x5d3005(0x1e7)](_0x21038d))return;let _0x41ea1b=_0x21038d===undefined?this[_0x5d3005(0x1c1)][_0x5d3005(0x1e0)](_0x3fd715['id']):this[_0x5d3005(0x1c1)][_0x5d3005(0x1e0)](_0x21038d);if(_0x21038d===undefined&&_0x41ea1b===undefined){const _0x1669f2=this[_0x5d3005(0x1a8)][_0x5d3005(0x1a2)][_0x5d3005(0x1e6)](_0xd4b161)[_0x5d3005(0x19b)][0x29*0x17+-0x7fc+-0x3*-0x16f];if(_0x1669f2===undefined)return;_0x41ea1b=this[_0x5d3005(0x1c1)][_0x5d3005(0x1e0)](_0x1669f2);if(_0x41ea1b===undefined)return;if(this[_0x5d3005(0x1a8)][_0x5d3005(0x1a2)][_0x5d3005(0x1e3)](_0xd4b161)===undefined)return;const _0xd8c5db=this[_0x5d3005(0x1a8)][_0x5d3005(0x1a2)][_0x5d3005(0x1fe)](_0x3fd715['id']);_0x21038d=_0xd8c5db['id'],this[_0x5d3005(0x1c1)][_0x5d3005(0x1ce)](_0x1669f2),this[_0x5d3005(0x1c1)][_0x5d3005(0x1f7)](_0xd8c5db['id'],{..._0x41ea1b,'runId':_0xd8c5db['id']}),this[_0x5d3005(0x1a8)][_0x5d3005(0x218)](_0x1669f2,_0xd8c5db['id']),this[_0x5d3005(0x1f6)](_0xd4b161);const _0x40b67a=this[_0x5d3005(0x1a8)][_0x5d3005(0x1a2)][_0x5d3005(0x214)](_0xd8c5db['id']);if(_0x40b67a===undefined)throw new Error(_0x5d3005(0x1cc));this[_0x5d3005(0x1a8)][_0x5d3005(0x20e)](_0x40b67a);}else{if(_0x21038d===undefined&&_0x41ea1b!==undefined){const _0x5a2edc=this[_0x5d3005(0x1a8)][_0x5d3005(0x1a2)][_0x5d3005(0x1fe)](_0x3fd715['id']);_0x21038d=_0x5a2edc['id'],this[_0x5d3005(0x1c1)][_0x5d3005(0x1ce)](_0x3fd715['id']),this[_0x5d3005(0x1c1)][_0x5d3005(0x1f7)](_0x5a2edc['id'],{..._0x41ea1b,'runId':_0x5a2edc['id']}),this[_0x5d3005(0x1a8)][_0x5d3005(0x218)](_0x3fd715['id'],_0x5a2edc['id']);}}if(_0x21038d===undefined||_0x41ea1b===undefined)return;if(this[_0x5d3005(0x1e1)][_0x5d3005(0x1e7)](_0x21038d))return;this[_0x5d3005(0x1e1)][_0x5d3005(0x203)](_0x21038d);try{const _0x1d1757=_0x41ea1b[_0x5d3005(0x1ea)]===undefined?undefined:await this[_0x5d3005(0x1a8)][_0x5d3005(0x1c4)]?.(_0x41ea1b);this[_0x5d3005(0x1a8)][_0x5d3005(0x1ca)](_0x5d3005(0x201),{'runId':_0x21038d,'sessionId':_0x41ea1b[_0x5d3005(0x208)],'workspaceId':_0x41ea1b[_0x5d3005(0x213)],'runner':_0x41ea1b[_0x5d3005(0x1c3)],'input':_0x41ea1b[_0x5d3005(0x1b5)],..._0x41ea1b[_0x5d3005(0x1fc)]===undefined?{}:{'clientMessageId':_0x41ea1b[_0x5d3005(0x1fc)]},..._0x41ea1b[_0x5d3005(0x1a3)][_0x5d3005(0x1ac)]===-0x15e3+-0x5*-0x319+0x27*0x2a?{}:{'attachments':_0x41ea1b[_0x5d3005(0x1a3)]},'cwd':_0x41ea1b[_0x5d3005(0x1f4)],..._0x41ea1b[_0x5d3005(0x1b3)]===null?{}:{'externalSessionId':_0x41ea1b[_0x5d3005(0x1b3)]},..._0x41ea1b[_0x5d3005(0x1e8)]===null?{}:{'model':_0x41ea1b[_0x5d3005(0x1e8)]},..._0x41ea1b[_0x5d3005(0x215)]===null?{}:{'effort':_0x41ea1b[_0x5d3005(0x215)]},..._0x41ea1b[_0x5d3005(0x1ff)]===null?{}:{'access':_0x41ea1b[_0x5d3005(0x1ff)]},'collaborationMode':_0x41ea1b[_0x5d3005(0x1f0)],..._0x41ea1b[_0x5d3005(0x1bc)]===undefined?{}:{'serviceTier':_0x41ea1b[_0x5d3005(0x1bc)]},'secretEnvironment':_0x41ea1b[_0x5d3005(0x1ee)],..._0x1d1757===undefined?{}:{'mcpSecretEnvironment':_0x1d1757[_0x5d3005(0x1fd)]},..._0x41ea1b[_0x5d3005(0x1ad)]===undefined?{}:{'personalInstructions':_0x41ea1b[_0x5d3005(0x1ad)]},..._0x41ea1b[_0x5d3005(0x1a0)]===undefined?{}:{'marAgentModel':_0x41ea1b[_0x5d3005(0x1a0)]},'mcpInstallations':[...this[_0x5d3005(0x1a8)][_0x5d3005(0x204)](_0x41ea1b[_0x5d3005(0x213)]),..._0x1d1757===undefined?[]:[_0x1d1757[_0x5d3005(0x1aa)]]]});}catch(_0x1fb69f){this[_0x5d3005(0x1a8)][_0x5d3005(0x19a)](_0x21038d,_0x5d3005(0x1bf),{'code':safeErrorCode(_0x1fb69f,_0x5d3005(0x199))},_0x5d3005(0x1d7));}}[_0x1b22b2(0x1c7)](_0x10e961){const _0x28d3ac=_0x1b22b2;if(this[_0x28d3ac(0x20f)][_0x28d3ac(0x1e7)](_0x10e961))return;const _0x25e740=this[_0x28d3ac(0x1c1)][_0x28d3ac(0x1e0)](_0x10e961);if(_0x25e740===undefined)return;this[_0x28d3ac(0x20f)][_0x28d3ac(0x203)](_0x10e961),void this[_0x28d3ac(0x1a8)][_0x28d3ac(0x1ec)]?.(_0x25e740)[_0x28d3ac(0x1eb)](()=>undefined);}[_0x1b22b2(0x1a9)](_0x1ad1e6){const _0xb1d3c2=_0x1b22b2;return this[_0xb1d3c2(0x20f)][_0xb1d3c2(0x1e7)](_0x1ad1e6);}[_0x1b22b2(0x1df)](_0x236b44,_0x2d6744){const _0x7bc122=_0x1b22b2;for(const [_0x2f24ae,_0x10778f]of this[_0x7bc122(0x1c1)])if(_0x10778f[_0x7bc122(0x208)]===_0x236b44)this[_0x7bc122(0x1c1)][_0x7bc122(0x1f7)](_0x2f24ae,{..._0x10778f,'sessionId':_0x2d6744,'externalSessionId':_0x2d6744});const _0x5b745e=this[_0x7bc122(0x19e)][_0x7bc122(0x1e0)](_0x236b44);_0x5b745e!==undefined&&(clearTimeout(_0x5b745e),this[_0x7bc122(0x19e)][_0x7bc122(0x1ce)](_0x236b44),this[_0x7bc122(0x19d)](_0x2d6744));}[_0x1b22b2(0x1b7)](_0x341f15){const _0x3d5b79=_0x1b22b2;this[_0x3d5b79(0x1c1)][_0x3d5b79(0x1ce)](_0x341f15),this[_0x3d5b79(0x1e1)][_0x3d5b79(0x1ce)](_0x341f15),this[_0x3d5b79(0x20f)][_0x3d5b79(0x1ce)](_0x341f15);}[_0x1b22b2(0x1c8)](_0x57f2a2){const _0x537b4d=_0x1b22b2;for(const [_0x3ede19,_0x225a75]of this[_0x537b4d(0x1c1)]){if(_0x225a75[_0x537b4d(0x208)]!==_0x57f2a2||_0x225a75[_0x537b4d(0x1ea)]===undefined)continue;const _0x54ed9c=this[_0x537b4d(0x1a8)][_0x537b4d(0x1a2)][_0x537b4d(0x1f2)](_0x3ede19);if(_0x54ed9c!==undefined)this[_0x537b4d(0x1d4)](_0x3ede19);}}[_0x1b22b2(0x1f9)](_0xd13090,_0x1b6831){const _0x53168d=_0x1b22b2;for(const _0x7b80db of[...this[_0x53168d(0x1a8)][_0x53168d(0x1a2)][_0x53168d(0x1e6)](_0xd13090)[_0x53168d(0x19b)]]){if(_0x7b80db===_0x1b6831)continue;this[_0x53168d(0x1d4)](_0x7b80db);}}[_0x1b22b2(0x20a)](){const _0x196d24=_0x1b22b2;this[_0x196d24(0x1c1)][_0x196d24(0x20a)](),this[_0x196d24(0x1e1)][_0x196d24(0x20a)](),this[_0x196d24(0x20f)][_0x196d24(0x20a)]();for(const _0x4c125a of this[_0x196d24(0x19e)][_0x196d24(0x205)]())clearTimeout(_0x4c125a);this[_0x196d24(0x19e)][_0x196d24(0x20a)]();}[_0x1b22b2(0x19f)](_0x3bf5dc){const _0x59da65=_0x1b22b2;if(this[_0x59da65(0x1a8)][_0x59da65(0x1a2)][_0x59da65(0x1e9)](_0x3bf5dc)!==undefined){this[_0x59da65(0x19d)](_0x3bf5dc);return;}const _0x59e900=this[_0x59da65(0x1a8)][_0x59da65(0x1a2)][_0x59da65(0x1e6)](_0x3bf5dc),_0x6f7df5=_0x59e900[_0x59da65(0x202)]?undefined:_0x59e900[_0x59da65(0x19b)][-0xda*-0xd+0xc58+0x1b*-0xde];if(_0x6f7df5===undefined)return;const _0xbbe19d=this[_0x59da65(0x1c1)][_0x59da65(0x1e0)](_0x6f7df5);if(_0xbbe19d===undefined)throw new Error(_0x59da65(0x1f5));const {run:_0x2c856a,turn:_0x330bf6}=this[_0x59da65(0x1a8)][_0x59da65(0x1a2)][_0x59da65(0x1b1)](_0x6f7df5);this[_0x59da65(0x1c1)][_0x59da65(0x1ce)](_0x6f7df5),this[_0x59da65(0x1c1)][_0x59da65(0x1f7)](_0x2c856a['id'],{..._0xbbe19d,'runId':_0x2c856a['id']}),this[_0x59da65(0x1a8)][_0x59da65(0x1a5)](_0x2c856a[_0x59da65(0x213)],_0x3bf5dc),this[_0x59da65(0x1a8)][_0x59da65(0x20e)](_0x330bf6),this[_0x59da65(0x19d)](_0x3bf5dc);}[_0x1b22b2(0x1b6)](_0x35e168){const _0x124450=_0x1b22b2,_0x1ceb03=this[_0x124450(0x1a8)][_0x124450(0x1a2)][_0x124450(0x1f2)](_0x35e168);if(_0x1ceb03===undefined)throw new Error(_0x124450(0x1fa));if(!this[_0x124450(0x1c1)][_0x124450(0x1e7)](_0x35e168))throw new Error(_0x124450(0x1f5));return _0x1ceb03;}}