@myagentroam/node 0.9.56 → 0.9.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x1f8c85=_0x2fc3;(function(_0x2483c7,_0x165125){const _0x39e6bd=_0x2fc3,_0xb15347=_0x2483c7();while(!![]){try{const _0x542cdf=parseInt(_0x39e6bd(0x23a))/(-0x374+-0xa1f*0x3+-0x9*-0x3c2)*(-parseInt(_0x39e6bd(0x1b9))/(0xa5*0x9+-0x1e2+0xb*-0x5b))+parseInt(_0x39e6bd(0x179))/(0x6fb*-0x5+-0x1147+-0x1*-0x3431)+-parseInt(_0x39e6bd(0x125))/(0x2265+0x23d6+-0xe0b*0x5)+-parseInt(_0x39e6bd(0x11c))/(-0x1187+0x1ebd+-0xd31)+parseInt(_0x39e6bd(0x255))/(-0xf3d+0x1be1+-0xc9e)*(-parseInt(_0x39e6bd(0x226))/(0x1a2f+-0x8d7+-0x193*0xb))+parseInt(_0x39e6bd(0xc4))/(-0x85b+-0x95b*0x4+0x2dcf)+parseInt(_0x39e6bd(0x195))/(-0x12c7+0x2148+0xe78*-0x1);if(_0x542cdf===_0x165125)break;else _0xb15347['push'](_0xb15347['shift']());}catch(_0x258bfe){_0xb15347['push'](_0xb15347['shift']());}}}(_0x2b1b,-0x853*-0x119+0x1*0x8cbd3+0x116c*-0x76));import{createHash,randomUUID}from'node:crypto';import{constants}from'node:fs';import{lstat,mkdir,open,readFile,rename,rm,utimes}from'node:fs/promises';import{isAbsolute,join,relative,resolve,sep}from'node:path';import{conversationTurnSchema,conversationTemplateDraftSchema,conversationTemplateSummarySchema,hostedConversationConfigUpdateInputSchema,hostedConversationCreateInputSchema,hostedConversationDeleteResultSchema,hostedConversationFileDeleteInputSchema,hostedConversationFileDeleteResultSchema,hostedConversationFileReadInputSchema,hostedConversationFileReadResultSchema,hostedConversationFilesSchema,hostedConversationIdInputSchema,hostedConversationImageReadInputSchema,hostedConversationListInputSchema,hostedConversationListPageSchema,hostedConversationMessageInputSchema,hostedConversationMetadataUpdateInputSchema,hostedConversationRollbackInputSchema,hostedConversationSnapshotSchema,hostedConversationSummarySchema,hostedConversationUnwatchInputSchema,hostedConversationUploadChunkInputSchema,hostedConversationUploadControlInputSchema,hostedConversationUploadCreateInputSchema,hostedConversationUploadPreflightInputSchema,hostedConversationUploadPreflightResultSchema,hostedConversationUploadSchema,hostedConversationWatchInputSchema,marAgentRuntimeModelConfigurationSchema,mcpInstallationConfigurationSchema,mcpRuntimeDescriptorSchema,resolveMarAgentDefaultReasoningEffort}from'@myagentroam/protocol';import{hostedConversationGeneratedImagesDisplayDirectory,hostedConversationImageRunId,marAgentGeneratedImagesDirectory}from'../runner/mar-agent/generated-images.js';import{sessionTitleFromFirstMessage}from'../util/node-operation-parsers.js';import{safeErrorCode}from'../util/safe-error.js';import{SessionWatchSlotCoordinator}from'./session-watch-slot-coordinator.js';const DEFAULT_HOSTED_CONVERSATION_TITLE=_0x1f8c85(0x253),HOST_POLICY_VERSION=0x6*0x2f1+0xacd+-0x1c72,MAX_FILE_READ_BYTES=(0xda2+0x24f*-0x5+-0x17)*(-0x1139*0x1+0x1c4*-0x13+0x1*0x36c5),WATCH_TTL_MS=-0x2485*-0x3+0x15277+-0x1103e,RUNTIME_LINK_ROOTS=[_0x1f8c85(0x220),_0x1f8c85(0x19c),_0x1f8c85(0x28f),_0x1f8c85(0x1f9),_0x1f8c85(0x118)],RESERVED_SANDBOX_ROOTS=[_0x1f8c85(0x18a),_0x1f8c85(0xc5),_0x1f8c85(0x1d9),_0x1f8c85(0x220),_0x1f8c85(0x19c),_0x1f8c85(0x28f),_0x1f8c85(0x1f9),_0x1f8c85(0x118),_0x1f8c85(0x141),_0x1f8c85(0x1b5),_0x1f8c85(0x286),_0x1f8c85(0x215)];export class HostedConversationNodeService{[_0x1f8c85(0x1c3)];[_0x1f8c85(0x100)];['id'];[_0x1f8c85(0xd5)]=new Map();[_0x1f8c85(0x12f)]=new Map();[_0x1f8c85(0xca)]=new Map();[_0x1f8c85(0xd4)]=new Map();[_0x1f8c85(0xd3)]=new Map();[_0x1f8c85(0x155)]=new Set();[_0x1f8c85(0x20b)]=new Map();[_0x1f8c85(0x261)]=new Map();[_0x1f8c85(0x11b)]=new Set();[_0x1f8c85(0x285)]=new Map();[_0x1f8c85(0xda)]=new Set();[_0x1f8c85(0x1c9)]=new Map();[_0x1f8c85(0x201)]=new Map();[_0x1f8c85(0x278)];[_0x1f8c85(0x23e)]=![];[_0x1f8c85(0x1d3)]=0x1*0xf9e+0xbaf*-0x1+-0x3ef;[_0x1f8c85(0x269)]=-0x2f5*-0xb+0x1*0x452+-0x24d9;constructor(_0x3fc85b){const _0x53607f=_0x1f8c85;this[_0x53607f(0x1c3)]=_0x3fc85b,this[_0x53607f(0x100)]=_0x3fc85b[_0x53607f(0x100)]??Date[_0x53607f(0x100)],this['id']=_0x3fc85b['id']??randomUUID,this[_0x53607f(0x278)]=_0x3fc85b[_0x53607f(0x278)]??new SessionWatchSlotCoordinator();}[_0x1f8c85(0x257)](){const _0x5e6ab1=_0x1f8c85;return{'conversation.hosted.list':_0x2d6a71=>this[_0x5e6ab1(0x1bd)](_0x2d6a71),'conversation.hosted.create':_0x542aa2=>this[_0x5e6ab1(0x140)](_0x542aa2),'conversation.hosted.get':_0x57edab=>this[_0x5e6ab1(0x10b)](_0x57edab),'conversation.hosted.watch':_0x17f439=>this[_0x5e6ab1(0x1d0)](_0x17f439),'conversation.hosted.unwatch':_0x2c606b=>this[_0x5e6ab1(0xec)](_0x2c606b),'conversation.hosted.message':_0x1bbe6b=>this[_0x5e6ab1(0x15e)](_0x1bbe6b),'conversation.hosted.rollback':_0x325583=>this[_0x5e6ab1(0x111)](_0x325583),'conversation.hosted.interrupt':_0x20a243=>this[_0x5e6ab1(0x264)](_0x20a243),'conversation.hosted.config.update':_0x4b5ad7=>this[_0x5e6ab1(0x21a)](_0x4b5ad7),'conversation.hosted.metadata.update':_0x36fbf0=>this[_0x5e6ab1(0x1db)](_0x36fbf0),'conversation.hosted.image.read':_0x3265dc=>this[_0x5e6ab1(0x1c2)](_0x3265dc),'conversation.hosted.files.list':_0xdd4af3=>this[_0x5e6ab1(0x168)](_0xdd4af3),'conversation.hosted.file.read':_0x251da5=>this[_0x5e6ab1(0x273)](_0x251da5),'conversation.hosted.file.delete':_0x25afdd=>this[_0x5e6ab1(0xe6)](_0x25afdd),'conversation.hosted.files.upload.preflight':_0x194dcb=>this[_0x5e6ab1(0xdb)](_0x194dcb),'conversation.hosted.files.upload.create':_0x4163e4=>this[_0x5e6ab1(0x26c)](_0x4163e4),'conversation.hosted.files.upload.chunk':_0x595204=>this[_0x5e6ab1(0x281)](_0x595204),'conversation.hosted.files.upload.status':_0x1bbd92=>this[_0x5e6ab1(0x263)](_0x1bbd92),'conversation.hosted.files.upload.complete':_0x261eb1=>this[_0x5e6ab1(0x17b)](_0x261eb1),'conversation.hosted.files.upload.cancel':_0x187f7b=>this[_0x5e6ab1(0x241)](_0x187f7b),'conversation.hosted.delete':_0x138805=>this[_0x5e6ab1(0x167)](_0x138805)};}[_0x1f8c85(0x243)](){const _0x56bef7=_0x1f8c85;if(this[_0x56bef7(0x23e)]||this[_0x56bef7(0x12f)][_0x56bef7(0x1d7)]>-0x3f*-0x2b+-0x54a+-0x54b||this[_0x56bef7(0xca)][_0x56bef7(0x1d7)]>0xf*-0x2a+-0x2119+0x238f*0x1||this[_0x56bef7(0xd4)][_0x56bef7(0x1d7)]>0x3ad+0x313*0x8+-0x1c45||this[_0x56bef7(0x1c9)][_0x56bef7(0x1d7)]>0x1923+-0x1*0x1253+0x368*-0x2)return undefined;return this[_0x56bef7(0x23e)]=!![],()=>{const _0x273ca4=_0x56bef7;this[_0x273ca4(0x23e)]=![];};}[_0x1f8c85(0x1bd)](_0x2d2a27){const _0x500c0f=_0x1f8c85,_0xa49644=hostedRequest(_0x2d2a27),_0x59e297=hostedConversationListInputSchema[_0x500c0f(0x12b)](_0xa49644[_0x500c0f(0x108)]),_0x570e7a=this[_0x500c0f(0x1c3)][_0x500c0f(0x25f)][_0x500c0f(0x1e3)]({'userId':_0xa49644[_0x500c0f(0x14e)],'limit':_0x59e297[_0x500c0f(0xbf)],..._0x59e297[_0x500c0f(0x1bc)]===undefined?{}:{'cursor':_0x59e297[_0x500c0f(0x1bc)]}});return hostedConversationListPageSchema[_0x500c0f(0x12b)]({..._0x570e7a,'items':_0x570e7a[_0x500c0f(0x116)][_0x500c0f(0xf8)](_0xa66b43=>({..._0xa66b43,'activity':this[_0x500c0f(0x131)](_0xa66b43['id'])}))});}[_0x1f8c85(0x140)](_0x44f74c){const _0x2fa5a0=_0x1f8c85;if(this[_0x2fa5a0(0x23e)])return Promise[_0x2fa5a0(0x239)](new Error(_0x2fa5a0(0x124)));const _0x10f30d=hostedRequest(_0x44f74c),_0x198b3d=hostedConversationCreateInputSchema[_0x2fa5a0(0x12b)](_0x10f30d[_0x2fa5a0(0x108)]),_0x2f56e5=conversationTemplateSummarySchema[_0x2fa5a0(0x12b)](_0x10f30d[_0x2fa5a0(0xed)]),_0x136a25=runtimeModels(_0x10f30d[_0x2fa5a0(0x272)]);if(_0x2f56e5['id']!==_0x198b3d[_0x2fa5a0(0x268)]||_0x2f56e5[_0x2fa5a0(0x147)]!==this[_0x2fa5a0(0x1c3)][_0x2fa5a0(0x147)]()||!_0x2f56e5[_0x2fa5a0(0x28a)]||_0x2f56e5[_0x2fa5a0(0x156)]!==_0x2fa5a0(0x23b)||_0x2f56e5[_0x2fa5a0(0xef)]===null)throw new Error(_0x2fa5a0(0x184));const _0x521be0=_0x10f30d[_0x2fa5a0(0x14e)]+'\x00'+_0x198b3d[_0x2fa5a0(0x12e)],_0x4777ae=this[_0x2fa5a0(0xd5)][_0x2fa5a0(0x10b)](_0x521be0);if(_0x4777ae!==undefined)return _0x4777ae;const _0xe28053=this[_0x2fa5a0(0x1c3)][_0x2fa5a0(0x25f)][_0x2fa5a0(0x291)](_0x10f30d[_0x2fa5a0(0x14e)],_0x198b3d[_0x2fa5a0(0x12e)]);if(_0xe28053!==undefined)return this[_0x2fa5a0(0x1ac)](_0x10f30d[_0x2fa5a0(0x14e)],_0xe28053['id'],_0x136a25);const _0x2a62f9=this[_0x2fa5a0(0x284)](_0x10f30d[_0x2fa5a0(0x14e)],_0x198b3d[_0x2fa5a0(0x12e)],_0x2f56e5,_0x136a25,_0x10f30d[_0x2fa5a0(0x21d)]);return this[_0x2fa5a0(0xd5)][_0x2fa5a0(0x1dc)](_0x521be0,_0x2a62f9),void _0x2a62f9[_0x2fa5a0(0x262)](()=>this[_0x2fa5a0(0xd5)][_0x2fa5a0(0x167)](_0x521be0))[_0x2fa5a0(0x142)](()=>undefined),_0x2a62f9;}async[_0x1f8c85(0x284)](_0x3a6a26,_0x213591,_0x3bf234,_0x1cd0ae,_0x2cf6f8){const _0xff08da=_0x1f8c85;await this[_0xff08da(0x1c3)][_0xff08da(0x16e)]?.();const _0x9cfba6=await this[_0xff08da(0x280)](_0x3bf234[_0xff08da(0xef)],_0x3bf234['id']),_0x15f6e1=selectModel(_0x9cfba6,_0x1cd0ae,_0x9cfba6[_0xff08da(0xd7)][_0xff08da(0x18e)]),_0x2d3a3e=this['id'](),_0x5344d5=await this[_0xff08da(0x1c3)][_0xff08da(0x25f)][_0xff08da(0xcf)](_0x3a6a26,_0x2d3a3e),_0x443a95=this[_0xff08da(0x228)](_0x5344d5[_0xff08da(0x14a)],_0x9cfba6),_0x4a8a06=this[_0xff08da(0x14c)](_0x5344d5[_0xff08da(0x14a)],_0x9cfba6);let _0x332604;try{const _0x12d32f=await this[_0xff08da(0x1c3)][_0xff08da(0x221)][_0xff08da(0x210)]({'conversationId':_0x2d3a3e,'homeDirectory':_0x5344d5[_0xff08da(0x14a)][_0xff08da(0x235)],'workspaceDirectory':_0x9cfba6[_0xff08da(0x17c)],'systemInstruction':systemInstruction(_0x9cfba6),'defaultModelId':_0x15f6e1['id'],'models':networkModels(allowedModels(_0x9cfba6,_0x1cd0ae),_0x9cfba6[_0xff08da(0x10c)][_0xff08da(0x176)]),..._0x2cf6f8===undefined?{}:{'runtimeScopeId':_0x2cf6f8},'pathMounts':_0x443a95,'processExecutor':_0x4a8a06});_0x332604=_0x12d32f[_0xff08da(0x1a8)];const _0x210046=this[_0xff08da(0x100)](),_0x2c3084={'id':_0x2d3a3e,'nodeId':this[_0xff08da(0x1c3)][_0xff08da(0x147)](),'sessionId':_0x332604,'templateId':_0x3bf234['id'],'templateName':_0x3bf234[_0xff08da(0x23d)],'activeVersionId':_0x9cfba6['id'],'title':DEFAULT_HOSTED_CONVERSATION_TITLE,'titleSource':_0xff08da(0x1ea),'pinnedAt':null,'status':_0xff08da(0x23b),'modelId':_0x15f6e1['id'],'createdAt':_0x210046,'updatedAt':_0x210046,'lastActivityAt':_0x210046,'userStorageKey':_0x5344d5[_0xff08da(0x12c)],'conversationStorageKey':_0x5344d5[_0xff08da(0x25a)],'clientRequestId':_0x213591,'templateDeleted':![],'quota':{'usedBytes':0x0,'maxBytes':_0x9cfba6[_0xff08da(0x10c)][_0xff08da(0x27e)][_0xff08da(0x18c)]}},_0x17ec17=await this[_0xff08da(0x1c3)][_0xff08da(0x25f)][_0xff08da(0x284)](_0x2c3084);return _0x17ec17['id']!==_0x2d3a3e&&(await this[_0xff08da(0x1c3)][_0xff08da(0x221)][_0xff08da(0x11d)]({'conversationId':_0x2d3a3e,'sessionId':_0x332604,'homeDirectory':_0x5344d5[_0xff08da(0x14a)][_0xff08da(0x235)]})[_0xff08da(0x142)](()=>undefined),await rm(_0x5344d5[_0xff08da(0x14a)][_0xff08da(0x150)],{'recursive':!![],'force':!![]})),this[_0xff08da(0x1ac)](_0x3a6a26,_0x17ec17['id'],_0x1cd0ae);}catch(_0xba26e2){if(_0x332604!==undefined)await this[_0xff08da(0x1c3)][_0xff08da(0x221)][_0xff08da(0x11d)]({'conversationId':_0x2d3a3e,'sessionId':_0x332604,'homeDirectory':_0x5344d5[_0xff08da(0x14a)][_0xff08da(0x235)]})[_0xff08da(0x142)](()=>undefined);await rm(_0x5344d5[_0xff08da(0x14a)][_0xff08da(0x150)],{'recursive':!![],'force':!![]})[_0xff08da(0x142)](()=>undefined);throw _0xba26e2;}}async[_0x1f8c85(0x10b)](_0x157d4d){const _0x4061b5=_0x1f8c85,_0x1c2388=hostedRequest(_0x157d4d),_0x9b8132=hostedConversationIdInputSchema[_0x4061b5(0x12b)](_0x1c2388[_0x4061b5(0x108)]);return this[_0x4061b5(0x1ac)](_0x1c2388[_0x4061b5(0x14e)],_0x9b8132[_0x4061b5(0x222)],runtimeModels(_0x1c2388[_0x4061b5(0x272)]),_0x1c2388[_0x4061b5(0x105)]);}async[_0x1f8c85(0x1ac)](_0x31d822,_0x268441,_0x51e217,_0x198b1b=![],_0x10a775=![],_0x2eb2bc){const _0x13b153=_0x1f8c85;if(_0x10a775)return this[_0x13b153(0x1e9)](_0x31d822,_0x268441,_0x51e217,_0x198b1b,_0x2eb2bc);while(!![]){const _0x289908=this[_0x13b153(0x201)][_0x13b153(0x10b)](_0x268441)??0x17b*0x11+-0x2*-0x6e0+-0x26eb,_0x8726ea=this[_0x13b153(0x1c9)][_0x13b153(0x10b)](_0x268441);if(_0x8726ea!==undefined){await _0x8726ea[_0x13b153(0x142)](()=>undefined);continue;}const _0x35c465=await this[_0x13b153(0x1e9)](_0x31d822,_0x268441,_0x51e217,_0x198b1b);if(!this[_0x13b153(0x1c9)][_0x13b153(0x1ba)](_0x268441)&&(this[_0x13b153(0x201)][_0x13b153(0x10b)](_0x268441)??-0x21f2+0x63b+0x1bb7)===_0x289908)return _0x35c465;}}async[_0x1f8c85(0x1e9)](_0x72ce5e,_0x18887d,_0x2e6294,_0x167b5c,_0x318088){const _0x50530e=_0x1f8c85;let _0x34b4e5=this[_0x50530e(0x1c3)][_0x50530e(0x25f)][_0x50530e(0x15a)](_0x72ce5e,_0x18887d);if(_0x167b5c)_0x34b4e5=await this[_0x50530e(0x1c3)][_0x50530e(0x25f)][_0x50530e(0x1cd)](_0x72ce5e,_0x18887d,this[_0x50530e(0x100)]());const _0x432624=_0x34b4e5[_0x50530e(0x105)]?undefined:this[_0x50530e(0xeb)](_0x34b4e5[_0x50530e(0x268)]),_0x49e13e=_0x432624??_0x34b4e5[_0x50530e(0x164)],_0x593baa=await this[_0x50530e(0x280)](_0x49e13e,_0x34b4e5[_0x50530e(0x268)]),_0x146563=networkModels(allowedModels(_0x593baa,_0x2e6294),_0x593baa[_0x50530e(0x10c)][_0x50530e(0x176)]),_0x54029f=this[_0x50530e(0x1c3)][_0x50530e(0x25f)][_0x50530e(0x114)](_0x72ce5e,_0x34b4e5['id']),_0x55feeb=_0x318088??await this[_0x50530e(0x1c3)][_0x50530e(0x221)][_0x50530e(0x102)]({'conversationId':_0x34b4e5['id'],'sessionId':_0x34b4e5[_0x50530e(0x1a8)],'homeDirectory':_0x54029f[_0x50530e(0x235)],'modelId':_0x34b4e5[_0x50530e(0x271)]});return hostedConversationSnapshotSchema[_0x50530e(0x12b)]({'nodeAppVersion':this[_0x50530e(0x1c3)][_0x50530e(0x237)]?.()??_0x50530e(0x26f),'conversation':this[_0x50530e(0x18d)](_0x34b4e5),'template':templateSummary(_0x34b4e5,_0x593baa[_0x50530e(0x10c)]),'run':this[_0x50530e(0xca)][_0x50530e(0x10b)](_0x34b4e5['id'])?.[_0x50530e(0x1ff)]??null,'turns':_0x55feeb,'files':this[_0x50530e(0x1c3)][_0x50530e(0x25f)][_0x50530e(0x168)](_0x72ce5e,_0x34b4e5['id']),'models':_0x146563[_0x50530e(0xf8)](modelSummary),'error':null,'snapshotSequence':0x0});}async[_0x1f8c85(0x1d0)](_0x22d9ad){const _0x2f20ff=_0x1f8c85,_0x110884=hostedRequest(_0x22d9ad),_0x382db5=hostedConversationWatchInputSchema[_0x2f20ff(0x12b)](_0x110884[_0x2f20ff(0x108)]),_0x4d5e1c=this[_0x2f20ff(0x1c3)][_0x2f20ff(0x25f)][_0x2f20ff(0x15a)](_0x110884[_0x2f20ff(0x14e)],_0x382db5[_0x2f20ff(0x222)]);if(this[_0x2f20ff(0xda)][_0x2f20ff(0x1ba)](_0x4d5e1c['id']))throw new Error(_0x2f20ff(0x1a7));const _0x8160c6=requireWatchSessionHash(_0x110884[_0x2f20ff(0x101)]),_0x58f89b=watchOwnerKey(_0x8160c6,_0x382db5[_0x2f20ff(0x1b7)]);if(_0x382db5[_0x2f20ff(0x1c4)]===_0x2f20ff(0x1da)){const _0x5e75c1=this[_0x2f20ff(0x285)][_0x2f20ff(0x10b)](_0x58f89b);if(_0x5e75c1===undefined||!this[_0x2f20ff(0x278)][_0x2f20ff(0x260)](_0x58f89b,_0x5e75c1[_0x2f20ff(0x16f)])||_0x5e75c1[_0x2f20ff(0x1c6)]!==_0x382db5[_0x2f20ff(0x1c6)]||_0x5e75c1[_0x2f20ff(0x222)]!==_0x382db5[_0x2f20ff(0x222)]||_0x5e75c1[_0x2f20ff(0x14e)]!==_0x110884[_0x2f20ff(0x14e)]||_0x5e75c1[_0x2f20ff(0x188)]<=Date[_0x2f20ff(0x100)]()){this[_0x2f20ff(0x28d)](_0x58f89b);throw new Error(_0x2f20ff(0x180));}return _0x5e75c1[_0x2f20ff(0x188)]=Date[_0x2f20ff(0x100)]()+WATCH_TTL_MS,clearTimeout(_0x5e75c1[_0x2f20ff(0x122)]),_0x5e75c1[_0x2f20ff(0x122)]=this[_0x2f20ff(0x163)](_0x58f89b),this[_0x2f20ff(0x1df)](_0x5e75c1);}const _0x2c7dff=runtimeModels(_0x110884[_0x2f20ff(0x272)]),_0x56b704=this[_0x2f20ff(0x285)][_0x2f20ff(0x10b)](_0x58f89b);if(_0x56b704!==undefined&&this[_0x2f20ff(0x278)][_0x2f20ff(0x260)](_0x58f89b,_0x56b704[_0x2f20ff(0x16f)])&&_0x56b704[_0x2f20ff(0x1c6)]===_0x382db5[_0x2f20ff(0x1c6)]&&_0x56b704[_0x2f20ff(0x222)]===_0x382db5[_0x2f20ff(0x222)]&&_0x56b704[_0x2f20ff(0x14e)]===_0x110884[_0x2f20ff(0x14e)]&&_0x56b704[_0x2f20ff(0x188)]>Date[_0x2f20ff(0x100)]())return _0x56b704[_0x2f20ff(0x188)]=Date[_0x2f20ff(0x100)]()+WATCH_TTL_MS,clearTimeout(_0x56b704[_0x2f20ff(0x122)]),_0x56b704[_0x2f20ff(0x122)]=this[_0x2f20ff(0x163)](_0x58f89b),this[_0x2f20ff(0x1df)](_0x56b704);this[_0x2f20ff(0x28d)](_0x58f89b);const _0x209ffe=this[_0x2f20ff(0x278)][_0x2f20ff(0x20d)](_0x58f89b,_0x2f20ff(0xe8),()=>this[_0x2f20ff(0x28d)](_0x58f89b)),_0x55feaf={'ownerKey':_0x58f89b,'slotToken':_0x209ffe,'sessionHash':_0x8160c6,'workbenchConnectionId':_0x382db5[_0x2f20ff(0x1b7)],'watchId':_0x382db5[_0x2f20ff(0x1c6)],'conversationId':_0x382db5[_0x2f20ff(0x222)],'templateId':_0x4d5e1c[_0x2f20ff(0x268)],'userId':_0x110884[_0x2f20ff(0x14e)],'models':_0x2c7dff,'nodeGeneration':this[_0x2f20ff(0x1c3)][_0x2f20ff(0x186)]?.()??_0x2f20ff(0x123),'pendingEvents':[],'expiresAt':Date[_0x2f20ff(0x100)]()+WATCH_TTL_MS,'ready':![],'timer':undefined};return _0x55feaf[_0x2f20ff(0x122)]=this[_0x2f20ff(0x163)](_0x58f89b),this[_0x2f20ff(0x285)][_0x2f20ff(0x1dc)](_0x58f89b,_0x55feaf),void this[_0x2f20ff(0x24f)](_0x55feaf),this[_0x2f20ff(0x1df)](_0x55feaf);}[_0x1f8c85(0xec)](_0x521640){const _0x39cf99=_0x1f8c85,_0x630745=hostedRequest(_0x521640),_0x372453=hostedConversationUnwatchInputSchema[_0x39cf99(0x12b)](_0x630745[_0x39cf99(0x108)]);this[_0x39cf99(0x1c3)][_0x39cf99(0x25f)][_0x39cf99(0x15a)](_0x630745[_0x39cf99(0x14e)],_0x372453[_0x39cf99(0x222)]);const _0x160760=watchOwnerKey(requireWatchSessionHash(_0x630745[_0x39cf99(0x101)]),_0x372453[_0x39cf99(0x1b7)]),_0x373a12=this[_0x39cf99(0x285)][_0x39cf99(0x10b)](_0x160760);if(_0x373a12?.[_0x39cf99(0x1c6)]===_0x372453[_0x39cf99(0x1c6)]&&_0x373a12[_0x39cf99(0x222)]===_0x372453[_0x39cf99(0x222)]&&_0x373a12[_0x39cf99(0x14e)]===_0x630745[_0x39cf99(0x14e)])this[_0x39cf99(0x28d)](_0x160760);return{'unwatched':!![]};}[_0x1f8c85(0x1f6)](_0x21dfb4,_0xb28b90){const _0x2ca77f=_0x1f8c85;return this[_0x2ca77f(0x211)](_0x21dfb4,{'conversationId':_0x21dfb4,'kind':_0x2ca77f(0x221),'runtimeEvent':_0xb28b90});}[_0x1f8c85(0x1c0)](_0x1f2cc4){const _0xf38f0d=_0x1f8c85;return this[_0xf38f0d(0xda)][_0xf38f0d(0x1ba)](_0x1f2cc4)||this[_0xf38f0d(0x1c9)][_0xf38f0d(0x1ba)](_0x1f2cc4)||this[_0xf38f0d(0xca)][_0xf38f0d(0x1ba)](_0x1f2cc4)||this[_0xf38f0d(0xd4)][_0xf38f0d(0x1ba)](_0x1f2cc4)||[...this[_0xf38f0d(0x285)][_0xf38f0d(0x287)]()][_0xf38f0d(0x1b4)](_0x1d13ee=>_0x1d13ee[_0xf38f0d(0x222)]===_0x1f2cc4)||[...this[_0xf38f0d(0x20b)][_0xf38f0d(0x287)]()][_0xf38f0d(0x1b4)](_0x556e4f=>_0x556e4f[_0xf38f0d(0x222)]===_0x1f2cc4&&_0x556e4f[_0xf38f0d(0x156)]===_0xf38f0d(0x134))||[...this[_0xf38f0d(0x12f)][_0xf38f0d(0x158)]()][_0xf38f0d(0x1b4)](_0x3b4c34=>_0x3b4c34[_0xf38f0d(0x249)](_0x1f2cc4+'\x00'));}[_0x1f8c85(0x137)](_0x4ab2f7){const _0x18228a=_0x1f8c85;if(this[_0x18228a(0x1c0)](_0x4ab2f7))return undefined;return this[_0x18228a(0xda)][_0x18228a(0x182)](_0x4ab2f7),()=>{const _0x765aad=_0x18228a;this[_0x765aad(0xda)][_0x765aad(0x167)](_0x4ab2f7);};}async[_0x1f8c85(0x19e)](_0x1d11cd){const _0x22859d=_0x1f8c85,_0xc22af9=this[_0x22859d(0x1c3)][_0x22859d(0x25f)][_0x22859d(0x256)](_0x1d11cd);await this[_0x22859d(0x1c3)][_0x22859d(0x221)][_0x22859d(0x11d)]({'conversationId':_0x1d11cd['id'],'sessionId':_0x1d11cd[_0x22859d(0x1a8)],'homeDirectory':_0xc22af9[_0x22859d(0x235)]})[_0x22859d(0x142)](()=>undefined);}[_0x1f8c85(0xbb)](){const _0x4c3d87=_0x1f8c85;for(const [_0x2d780d,_0x4f5407]of this[_0x4c3d87(0xca)]){const _0x3e33ff=runInterruptionKey(_0x2d780d,_0x4f5407[_0x4c3d87(0x1ff)]['id']);this[_0x4c3d87(0x155)][_0x4c3d87(0x182)](_0x3e33ff);if(!_0x4f5407[_0x4c3d87(0xf5)]())this[_0x4c3d87(0x155)][_0x4c3d87(0x167)](_0x3e33ff);}for(const _0x2f03f6 of[...this[_0x4c3d87(0x285)][_0x4c3d87(0x158)]()])this[_0x4c3d87(0x28d)](_0x2f03f6);}[_0x1f8c85(0x15e)](_0x494340){const _0x3c1d5a=_0x1f8c85;if(this[_0x3c1d5a(0x23e)])return Promise[_0x3c1d5a(0x239)](new Error(_0x3c1d5a(0x124)));const _0x427bfb=hostedRequest(_0x494340),_0x156335=hostedConversationMessageInputSchema[_0x3c1d5a(0x12b)](_0x427bfb[_0x3c1d5a(0x108)]);if(this[_0x3c1d5a(0x1c9)][_0x3c1d5a(0x1ba)](_0x156335[_0x3c1d5a(0x222)]))return Promise[_0x3c1d5a(0x239)](new Error(_0x3c1d5a(0x1a7)));const _0x25ef78=_0x156335[_0x3c1d5a(0x222)]+'\x00'+_0x156335[_0x3c1d5a(0x1be)],_0x7d8dae=this[_0x3c1d5a(0x12f)][_0x3c1d5a(0x10b)](_0x25ef78);if(_0x7d8dae!==undefined)return _0x7d8dae;const _0x12dbe3=this[_0x3c1d5a(0x1c3)][_0x3c1d5a(0x25f)][_0x3c1d5a(0x25d)](_0x427bfb[_0x3c1d5a(0x14e)],_0x156335[_0x3c1d5a(0x222)],_0x156335[_0x3c1d5a(0x1be)]);if(_0x12dbe3!==undefined){const _0x3e654f=this[_0x3c1d5a(0x1c3)][_0x3c1d5a(0x25f)][_0x3c1d5a(0x15a)](_0x427bfb[_0x3c1d5a(0x14e)],_0x156335[_0x3c1d5a(0x222)]);return Promise[_0x3c1d5a(0xf3)]({'conversation':this[_0x3c1d5a(0x18d)](_0x3e654f),'run':runFromMessage(_0x12dbe3)});}if([...this[_0x3c1d5a(0x12f)][_0x3c1d5a(0x158)]()][_0x3c1d5a(0x1b4)](_0x869b8f=>_0x869b8f[_0x3c1d5a(0x249)](_0x156335[_0x3c1d5a(0x222)]+'\x00')))return Promise[_0x3c1d5a(0x239)](new Error(_0x3c1d5a(0xff)));const _0x5985cf=this[_0x3c1d5a(0xc2)](_0x427bfb,_0x156335);return this[_0x3c1d5a(0x12f)][_0x3c1d5a(0x1dc)](_0x25ef78,_0x5985cf),void _0x5985cf[_0x3c1d5a(0x262)](()=>this[_0x3c1d5a(0x12f)][_0x3c1d5a(0x167)](_0x25ef78))[_0x3c1d5a(0x142)](()=>undefined),_0x5985cf;}async[_0x1f8c85(0xc2)](_0x3f93c1,_0x306069){const _0x3d3275=_0x1f8c85;let _0x3b94ca=this[_0x3d3275(0x1c3)][_0x3d3275(0x25f)][_0x3d3275(0x15a)](_0x3f93c1[_0x3d3275(0x14e)],_0x306069[_0x3d3275(0x222)]);if(this[_0x3d3275(0xda)][_0x3d3275(0x1ba)](_0x3b94ca['id']))throw new Error(_0x3d3275(0x1a7));if(this[_0x3d3275(0x1c9)][_0x3d3275(0x1ba)](_0x3b94ca['id']))throw new Error(_0x3d3275(0x1a7));if(_0x3b94ca[_0x3d3275(0x156)]!==_0x3d3275(0x23b))throw new Error(_0x3d3275(0x1a7));if(this[_0x3d3275(0xca)][_0x3d3275(0x1ba)](_0x3b94ca['id']))throw new Error(_0x3d3275(0xff));const _0x150cfe=sessionTitleFromFirstMessage(_0x306069[_0x3d3275(0x149)]),_0x18c6c5=_0x150cfe[_0x3d3275(0x1ed)]>0xcb0+0x1*-0x9ff+0x2b1*-0x1&&!this[_0x3d3275(0x1c3)][_0x3d3275(0x25f)][_0x3d3275(0x1c5)](_0x3f93c1[_0x3d3275(0x14e)],_0x3b94ca['id']),_0xc5189f=runtimeModels(_0x3f93c1[_0x3d3275(0x272)]),_0xe91d96=this[_0x3d3275(0x1c3)][_0x3d3275(0x25f)][_0x3d3275(0x114)](_0x3f93c1[_0x3d3275(0x14e)],_0x3b94ca['id']);let _0x49cec8,_0x391f55,_0xf800ec,_0x146e3a;const _0x68778f=_0x3b94ca[_0x3d3275(0x105)]?undefined:this[_0x3d3275(0xeb)](_0x3b94ca[_0x3d3275(0x268)]);if(_0x68778f!==undefined&&_0x68778f!==_0x3b94ca[_0x3d3275(0x164)]){const _0x46300d=_0x3b94ca[_0x3d3275(0x164)],_0x2dcd65=_0x68778f;try{_0x49cec8=await this[_0x3d3275(0x280)](_0x2dcd65,_0x3b94ca[_0x3d3275(0x268)]),_0x391f55=selectModel(_0x49cec8,_0xc5189f,_0x306069[_0x3d3275(0x271)]??_0x49cec8[_0x3d3275(0xd7)][_0x3d3275(0x18e)]),_0xf800ec=resolveMcpServers(_0x49cec8,this[_0x3d3275(0x1c3)][_0x3d3275(0xe4)]??process.env),this[_0x3d3275(0x228)](_0xe91d96,_0x49cec8),this[_0x3d3275(0x14c)](_0xe91d96,_0x49cec8),_0x146e3a={'previousVersionId':_0x46300d,'targetVersionId':_0x2dcd65};}catch(_0x44db36){this[_0x3d3275(0x17d)](_0x3b94ca,_0x46300d,_0x2dcd65,_0x44db36);throw new Error(_0x3d3275(0x192));}}else _0x49cec8=await this[_0x3d3275(0x280)](_0x3b94ca[_0x3d3275(0x164)],_0x3b94ca[_0x3d3275(0x268)]),_0x391f55=selectModel(_0x49cec8,_0xc5189f,_0x306069[_0x3d3275(0x271)]??_0x3b94ca[_0x3d3275(0x271)]);const _0x546033=await Promise[_0x3d3275(0x1f3)](_0x306069[_0x3d3275(0x1f7)][_0x3d3275(0xf8)](_0x2e6fed=>this[_0x3d3275(0x132)](_0x3f93c1[_0x3d3275(0x14e)],_0x3b94ca['id'],_0x2e6fed))),_0x584484=attachmentPrompt(_0x306069[_0x3d3275(0x149)],_0x546033),_0x17c15a=marAgentGeneratedImagesDirectory(_0xe91d96[_0x3d3275(0x235)],_0x3b94ca[_0x3d3275(0x1a8)]),_0x535070=hostedConversationGeneratedImagesDisplayDirectory(_0x3b94ca[_0x3d3275(0x1a8)]);if(_0x17c15a===undefined||_0x535070===undefined)throw new Error(_0x3d3275(0x212));await mkdir(_0x17c15a,{'recursive':!![],'mode':0x1c0});const _0x2c7321=await this[_0x3d3275(0x1c3)][_0x3d3275(0x25f)][_0x3d3275(0xc6)](_0x3f93c1[_0x3d3275(0x14e)],_0x3b94ca['id']),_0x1f965a=this[_0x3d3275(0x228)](_0xe91d96,_0x49cec8,_0x17c15a,_0x535070,_0x2c7321);this[_0x3d3275(0x293)](_0x3f93c1[_0x3d3275(0x14e)],_0x3b94ca,_0x3d3275(0x112),this[_0x3d3275(0x100)]());const _0x2755cf=[];let _0x169d6e=![];const _0xee8865=await this[_0x3d3275(0x1c3)][_0x3d3275(0x221)][_0x3d3275(0x24a)]({'conversationId':_0x3b94ca['id'],'sessionId':_0x3b94ca[_0x3d3275(0x1a8)],'clientMessageId':_0x306069[_0x3d3275(0x1be)],'userPrompt':_0x306069[_0x3d3275(0x149)],'prompt':_0x584484,'attachmentIds':_0x306069[_0x3d3275(0x1f7)],'access':_0x3d3275(0x1f8),'modelId':_0x391f55['id'],'models':networkModels(allowedModels(_0x49cec8,_0xc5189f),_0x49cec8[_0x3d3275(0x10c)][_0x3d3275(0x176)]),..._0x3f93c1[_0x3d3275(0x21d)]===undefined?{}:{'runtimeScopeId':_0x3f93c1[_0x3d3275(0x21d)]},'systemInstruction':systemInstruction(_0x49cec8,_0x535070),'homeDirectory':_0xe91d96[_0x3d3275(0x235)],'workspaceDirectory':_0x49cec8[_0x3d3275(0x17c)],'temporaryDirectory':_0x2c7321,'pathMounts':_0x1f965a,'processExecutor':this[_0x3d3275(0x14c)](_0xe91d96,_0x49cec8,_0x2c7321,_0x17c15a,_0x535070),'mcpServers':_0xf800ec??resolveMcpServers(_0x49cec8,this[_0x3d3275(0x1c3)][_0x3d3275(0xe4)]??process.env),'webAccess':_0x49cec8[_0x3d3275(0x10c)][_0x3d3275(0x176)]!==_0x3d3275(0xfe),'onEvent':_0x5489cf=>{const _0x1a449c=_0x3d3275;if(_0x169d6e)this[_0x1a449c(0x1f6)](_0x3b94ca['id'],_0x5489cf);else _0x2755cf[_0x1a449c(0xd8)](_0x5489cf);}})[_0x3d3275(0x142)](_0x4ac920=>{const _0x42df65=_0x3d3275;this[_0x42df65(0x293)](_0x3f93c1[_0x42df65(0x14e)],_0x3b94ca,_0x42df65(0x20a),this[_0x42df65(0x100)]());if(_0x146e3a!==undefined){this[_0x42df65(0x17d)](_0x3b94ca,_0x146e3a[_0x42df65(0x25c)],_0x146e3a[_0x42df65(0x1b6)],_0x4ac920);throw new Error(_0x42df65(0x192));}throw _0x4ac920;}),_0x59db5c=_0xee8865[_0x3d3275(0x1ff)][_0x3d3275(0x245)];let _0x2c687b=![],_0x5f1048;try{this[_0x3d3275(0x1c3)][_0x3d3275(0x25f)][_0x3d3275(0x1cb)]({'conversationId':_0x3b94ca['id'],'clientMessageId':_0x306069[_0x3d3275(0x1be)],'runId':_0xee8865[_0x3d3275(0x1ff)]['id'],'userTextPresent':_0x150cfe[_0x3d3275(0x1ed)]>0x1b0e+0x180e+0x331c*-0x1,'status':_0x3d3275(0x28c),'createdAt':_0x59db5c,'updatedAt':_0x59db5c}),_0x2c687b=!![];const _0x37dfa9=this[_0x3d3275(0x100)]();_0x5f1048=await this[_0x3d3275(0x1c3)][_0x3d3275(0x25f)][_0x3d3275(0x28e)]({'conversationId':_0x3b94ca['id'],'modelId':_0x391f55['id'],'activityAt':_0x37dfa9,..._0x146e3a===undefined?{}:{'templateVersion':{'expectedActiveVersionId':_0x146e3a[_0x3d3275(0x25c)],'activeVersionId':_0x146e3a[_0x3d3275(0x1b6)],'maxStorageBytes':_0x49cec8[_0x3d3275(0x10c)][_0x3d3275(0x27e)][_0x3d3275(0x18c)]}},..._0x18c6c5?{'automaticTitle':_0x150cfe}:{}});}catch(_0x51b337){try{_0xee8865[_0x3d3275(0xf5)]();}catch{}const _0xadcd55=await _0xee8865[_0x3d3275(0x233)][_0x3d3275(0x142)](()=>({'status':_0x3d3275(0x250),'completedAt':this[_0x3d3275(0x100)]()}));if(_0x2c687b)try{this[_0x3d3275(0x1c3)][_0x3d3275(0x25f)][_0x3d3275(0x275)](_0x3b94ca['id'],_0x306069[_0x3d3275(0x1be)],_0xadcd55[_0x3d3275(0x156)],_0xadcd55[_0x3d3275(0x28b)]);}catch{}this[_0x3d3275(0x293)](_0x3f93c1[_0x3d3275(0x14e)],_0x3b94ca,_0x3d3275(0x20a),_0xadcd55[_0x3d3275(0x28b)]);if(_0x146e3a!==undefined)this[_0x3d3275(0x17d)](_0x3b94ca,_0x146e3a[_0x3d3275(0x25c)],_0x146e3a[_0x3d3275(0x1b6)],_0x51b337);throw _0x51b337;}_0x3b94ca=_0x5f1048[_0x3d3275(0x159)];if(_0x146e3a!==undefined)this[_0x3d3275(0x211)](_0x3b94ca['id'],{'conversationId':_0x3b94ca['id'],'kind':_0x3d3275(0xfb),'upgrade':{'status':_0x3d3275(0x227),'previousVersionId':_0x146e3a[_0x3d3275(0x25c)],'targetVersionId':_0x146e3a[_0x3d3275(0x1b6)],'activeVersionId':_0x3b94ca[_0x3d3275(0x164)],'conversation':this[_0x3d3275(0x18d)](_0x3b94ca),'error':null}});this[_0x3d3275(0xca)][_0x3d3275(0x1dc)](_0x3b94ca['id'],_0xee8865),this[_0x3d3275(0x293)](_0x3f93c1[_0x3d3275(0x14e)],_0x3b94ca,_0x3d3275(0x28c),_0xee8865[_0x3d3275(0x1ff)][_0x3d3275(0x245)]);if(_0x5f1048[_0x3d3275(0x15b)])this[_0x3d3275(0x211)](_0x3b94ca['id'],{'conversationId':_0x3b94ca['id'],'kind':_0x3d3275(0x159),'conversation':this[_0x3d3275(0x18d)](_0x3b94ca)});this[_0x3d3275(0x211)](_0x3b94ca['id'],{'conversationId':_0x3b94ca['id'],'kind':_0x3d3275(0x1ff),'run':_0xee8865[_0x3d3275(0x1ff)]}),_0x169d6e=!![];for(const _0x107add of _0x2755cf)this[_0x3d3275(0x1f6)](_0x3b94ca['id'],_0x107add);_0x2755cf[_0x3d3275(0x1ed)]=0x6*0x9d+0x1d31*-0x1+0x1983;const _0x225b56=_0xee8865[_0x3d3275(0x233)][_0x3d3275(0x225)](_0x55acd4=>this[_0x3d3275(0x1cf)](_0x3f93c1[_0x3d3275(0x14e)],_0x3b94ca['id'],_0x306069[_0x3d3275(0x1be)],_0xee8865[_0x3d3275(0x1ff)],_0x55acd4),()=>this[_0x3d3275(0x1cf)](_0x3f93c1[_0x3d3275(0x14e)],_0x3b94ca['id'],_0x306069[_0x3d3275(0x1be)],_0xee8865[_0x3d3275(0x1ff)],{'status':_0x3d3275(0x250),'completedAt':this[_0x3d3275(0x100)]()}))[_0x3d3275(0x142)](()=>undefined)[_0x3d3275(0x262)](()=>{const _0x43b306=_0x3d3275;this[_0x43b306(0x155)][_0x43b306(0x167)](runInterruptionKey(_0x3b94ca['id'],_0xee8865[_0x43b306(0x1ff)]['id']));if(this[_0x43b306(0xca)][_0x43b306(0x10b)](_0x3b94ca['id'])===_0xee8865)this[_0x43b306(0xca)][_0x43b306(0x167)](_0x3b94ca['id']);if(this[_0x43b306(0xd4)][_0x43b306(0x10b)](_0x3b94ca['id'])===_0x225b56)this[_0x43b306(0xd4)][_0x43b306(0x167)](_0x3b94ca['id']);});return this[_0x3d3275(0xd4)][_0x3d3275(0x1dc)](_0x3b94ca['id'],_0x225b56),void _0x225b56,{'conversation':this[_0x3d3275(0x18d)](_0x3b94ca),'run':_0xee8865[_0x3d3275(0x1ff)]};}[_0x1f8c85(0x111)](_0x38ca1a){const _0x559943=_0x1f8c85;if(this[_0x559943(0x23e)])return Promise[_0x559943(0x239)](new Error(_0x559943(0x124)));const _0x258410=hostedRequest(_0x38ca1a),_0xd2b18e=hostedConversationRollbackInputSchema[_0x559943(0x12b)](_0x258410[_0x559943(0x108)]),_0x5f2a52=this[_0x559943(0x1c3)][_0x559943(0x25f)][_0x559943(0x15a)](_0x258410[_0x559943(0x14e)],_0xd2b18e[_0x559943(0x222)]);if(_0x5f2a52[_0x559943(0x156)]!==_0x559943(0x23b)||this[_0x559943(0xda)][_0x559943(0x1ba)](_0x5f2a52['id'])||this[_0x559943(0x1c9)][_0x559943(0x1ba)](_0x5f2a52['id']))return Promise[_0x559943(0x239)](new Error(_0x559943(0x1a7)));if(this[_0x559943(0xca)][_0x559943(0x1ba)](_0x5f2a52['id'])||this[_0x559943(0xd4)][_0x559943(0x1ba)](_0x5f2a52['id'])||[...this[_0x559943(0x12f)][_0x559943(0x158)]()][_0x559943(0x1b4)](_0x284045=>_0x284045[_0x559943(0x249)](_0x5f2a52['id']+'\x00')))return Promise[_0x559943(0x239)](new Error(_0x559943(0xff)));const _0x2d22eb=this[_0x559943(0x21f)](_0x258410,_0x5f2a52,_0xd2b18e);return this[_0x559943(0x1c9)][_0x559943(0x1dc)](_0x5f2a52['id'],_0x2d22eb),void _0x2d22eb[_0x559943(0x262)](()=>{const _0x2e6579=_0x559943;if(this[_0x2e6579(0x1c9)][_0x2e6579(0x10b)](_0x5f2a52['id'])===_0x2d22eb)this[_0x2e6579(0x1c9)][_0x2e6579(0x167)](_0x5f2a52['id']);})[_0x559943(0x142)](()=>undefined),_0x2d22eb;}async[_0x1f8c85(0x21f)](_0x215a05,_0x21877f,_0x4966cd){const _0x1e04bc=_0x1f8c85,_0x211aef=this[_0x1e04bc(0x1c3)][_0x1e04bc(0x25f)][_0x1e04bc(0x114)](_0x215a05[_0x1e04bc(0x14e)],_0x21877f['id']),_0x32ab8f=(await this[_0x1e04bc(0x1c3)][_0x1e04bc(0x221)][_0x1e04bc(0x102)]({'conversationId':_0x21877f['id'],'sessionId':_0x21877f[_0x1e04bc(0x1a8)],'homeDirectory':_0x211aef[_0x1e04bc(0x235)],'modelId':_0x21877f[_0x1e04bc(0x271)]}))[_0x1e04bc(0xf8)](_0x49491d=>conversationTurnSchema[_0x1e04bc(0x12b)](_0x49491d)),_0x43cdb8=_0x32ab8f[_0x1e04bc(0xd6)](_0x18a820=>_0x18a820['id']===_0x4966cd[_0x1e04bc(0x166)]),_0x4af67c=_0x32ab8f[_0x43cdb8],_0x43d88b=_0x4af67c?.[_0x1e04bc(0x116)][_0x1e04bc(0x107)](_0x5ed09a=>_0x5ed09a[_0x1e04bc(0xbc)]===_0x1e04bc(0x244)&&_0x5ed09a[_0x1e04bc(0x156)]===_0x1e04bc(0x1bb));if(_0x4af67c===undefined||!terminalHostedTurnStatus(_0x4af67c[_0x1e04bc(0x156)])||_0x43d88b===undefined||_0x4af67c[_0x1e04bc(0x1d2)]?.[_0x1e04bc(0xfd)]!==_0x4966cd[_0x1e04bc(0x209)])throw new Error(_0x1e04bc(0x229));let _0x6feb94;try{_0x6feb94=await this[_0x1e04bc(0x1c3)][_0x1e04bc(0x221)][_0x1e04bc(0x111)]({'conversationId':_0x21877f['id'],'sessionId':_0x21877f[_0x1e04bc(0x1a8)],'homeDirectory':_0x211aef[_0x1e04bc(0x235)],'modelId':_0x21877f[_0x1e04bc(0x271)],'boundaryTurnId':_0x4966cd[_0x1e04bc(0x209)]});}catch(_0x556795){if(_0x556795 instanceof Error&&_0x556795[_0x1e04bc(0x15e)]===_0x1e04bc(0x183))throw new Error(_0x1e04bc(0x229),{'cause':_0x556795});throw _0x556795;}this[_0x1e04bc(0x201)][_0x1e04bc(0x1dc)](_0x21877f['id'],(this[_0x1e04bc(0x201)][_0x1e04bc(0x10b)](_0x21877f['id'])??-0x1457+-0x1ae9*0x1+-0xe0*-0x36)+(-0x47*-0x10+0x78a+0xbf9*-0x1)),await this[_0x1e04bc(0x1c3)][_0x1e04bc(0x25f)][_0x1e04bc(0x110)](_0x21877f['id'],Math[_0x1e04bc(0xe7)](this[_0x1e04bc(0x100)](),_0x6feb94[_0x1e04bc(0xba)]));const _0x489df9=await this[_0x1e04bc(0x1ac)](_0x215a05[_0x1e04bc(0x14e)],_0x21877f['id'],runtimeModels(_0x215a05[_0x1e04bc(0x272)]),_0x215a05[_0x1e04bc(0x105)],!![],_0x32ab8f[_0x1e04bc(0x161)](0x21ec+-0x4*0x4b8+-0xf0c,_0x43cdb8));return this[_0x1e04bc(0x22c)](_0x21877f['id'],_0x489df9),_0x489df9;}async[_0x1f8c85(0x1cf)](_0x21c35c,_0x41a3cb,_0x1e0999,_0xf05ee7,_0x4003be){const _0x2c113f=_0x1f8c85,_0x2feda3=runInterruptionKey(_0x41a3cb,_0xf05ee7['id']),_0x5ca716=this[_0x2c113f(0x155)][_0x2c113f(0x1ba)](_0x2feda3);let _0x233dfa;try{this[_0x2c113f(0x1c3)][_0x2c113f(0x25f)][_0x2c113f(0x275)](_0x41a3cb,_0x1e0999,_0x4003be[_0x2c113f(0x156)],_0x4003be[_0x2c113f(0x28b)]);try{const _0x5ad734=await this[_0x2c113f(0x1c3)][_0x2c113f(0x25f)][_0x2c113f(0x252)](_0x21c35c,_0x41a3cb);this[_0x2c113f(0x211)](_0x41a3cb,{'conversationId':_0x41a3cb,'kind':_0x2c113f(0x216),'files':_0x5ad734,'error':null});}catch(_0x14a24e){this[_0x2c113f(0x211)](_0x41a3cb,{'conversationId':_0x41a3cb,'kind':_0x2c113f(0x216),'files':this[_0x2c113f(0x1c3)][_0x2c113f(0x25f)][_0x2c113f(0x168)](_0x21c35c,_0x41a3cb),'error':{'code':safeErrorCode(_0x14a24e,_0x2c113f(0x274)),'message':_0x2c113f(0x1d4)}});}await this[_0x2c113f(0x1c3)][_0x2c113f(0x25f)][_0x2c113f(0x110)](_0x41a3cb,_0x4003be[_0x2c113f(0x28b)]),this[_0x2c113f(0x211)](_0x41a3cb,{'conversationId':_0x41a3cb,'kind':_0x2c113f(0x1ff),'run':{'id':_0xf05ee7['id'],'status':_0x4003be[_0x2c113f(0x156)],'startedAt':_0xf05ee7[_0x2c113f(0x245)],'completedAt':_0x4003be[_0x2c113f(0x28b)]}}),await this[_0x2c113f(0x1e1)](_0x41a3cb,_0x4003be[_0x2c113f(0x20c)],_0x4003be[_0x2c113f(0x28b)])[_0x2c113f(0x142)](()=>undefined),_0x233dfa=this[_0x2c113f(0x1c3)][_0x2c113f(0x25f)][_0x2c113f(0x15a)](_0x21c35c,_0x41a3cb);}finally{this[_0x2c113f(0x155)][_0x2c113f(0x167)](_0x2feda3);if(_0x233dfa===undefined)try{_0x233dfa=this[_0x2c113f(0x1c3)][_0x2c113f(0x25f)][_0x2c113f(0x15a)](_0x21c35c,_0x41a3cb);}catch{}if(_0x233dfa!==undefined)this[_0x2c113f(0x293)](_0x21c35c,_0x233dfa,_0x2c113f(0x20a),_0x4003be[_0x2c113f(0x28b)]);}if(_0x233dfa!==undefined&&(_0x4003be[_0x2c113f(0x156)]!==_0x2c113f(0x288)||!_0x5ca716))this[_0x2c113f(0x1ab)](_0x21c35c,_0x233dfa,_0xf05ee7['id'],_0x4003be);}async[_0x1f8c85(0x1e1)](_0x2234a2,_0x3bf311,_0x30cb92){const _0x5ab415=_0x1f8c85,_0x44c74e=automaticHostedConversationTitle(_0x3bf311);if(_0x44c74e===undefined)return;const _0x4ae774=await this[_0x5ab415(0x1c3)][_0x5ab415(0x25f)][_0x5ab415(0x202)](_0x2234a2,_0x44c74e,_0x30cb92);if(_0x4ae774===undefined)return;this[_0x5ab415(0x211)](_0x2234a2,{'conversationId':_0x2234a2,'kind':_0x5ab415(0x159),'conversation':this[_0x5ab415(0x18d)](_0x4ae774)});}[_0x1f8c85(0x264)](_0xf6bdd7){const _0x26c8b9=_0x1f8c85,_0x5f5423=hostedRequest(_0xf6bdd7),_0x126845=hostedConversationIdInputSchema[_0x26c8b9(0x12b)](_0x5f5423[_0x26c8b9(0x108)]),_0x367f74=this[_0x26c8b9(0x1c3)][_0x26c8b9(0x25f)][_0x26c8b9(0x15a)](_0x5f5423[_0x26c8b9(0x14e)],_0x126845[_0x26c8b9(0x222)]),_0x219bb0=this[_0x26c8b9(0xca)][_0x26c8b9(0x10b)](_0x126845[_0x26c8b9(0x222)]);if(_0x219bb0===undefined)return{'interrupted':![]};const _0x4ad295=runInterruptionKey(_0x367f74['id'],_0x219bb0[_0x26c8b9(0x1ff)]['id']);this[_0x26c8b9(0x155)][_0x26c8b9(0x182)](_0x4ad295);try{const _0xce8e01=_0x219bb0[_0x26c8b9(0xf5)]();if(!_0xce8e01)return this[_0x26c8b9(0x155)][_0x26c8b9(0x167)](_0x4ad295),{'interrupted':![]};return this[_0x26c8b9(0x293)](_0x5f5423[_0x26c8b9(0x14e)],_0x367f74,_0x26c8b9(0x133),this[_0x26c8b9(0x100)]()),{'interrupted':!![]};}catch(_0x5f2194){this[_0x26c8b9(0x155)][_0x26c8b9(0x167)](_0x4ad295);throw _0x5f2194;}}async[_0x1f8c85(0x21a)](_0x250ff9){const _0x11416d=_0x1f8c85,_0x4135ce=hostedRequest(_0x250ff9),_0x1a502e=hostedConversationConfigUpdateInputSchema[_0x11416d(0x12b)](_0x4135ce[_0x11416d(0x108)]),_0x1167f1=this[_0x11416d(0x1c3)][_0x11416d(0x25f)][_0x11416d(0x15a)](_0x4135ce[_0x11416d(0x14e)],_0x1a502e[_0x11416d(0x222)]);if(this[_0x11416d(0xda)][_0x11416d(0x1ba)](_0x1167f1['id']))throw new Error(_0x11416d(0x1a7));const _0xfe1834=_0x1167f1[_0x11416d(0x105)]?undefined:this[_0x11416d(0xeb)](_0x1167f1[_0x11416d(0x268)]),_0x2bf3a7=_0xfe1834??_0x1167f1[_0x11416d(0x164)],_0x686e78=await this[_0x11416d(0x280)](_0x2bf3a7,_0x1167f1[_0x11416d(0x268)]),_0x23eeca=runtimeModels(_0x4135ce[_0x11416d(0x272)]),_0x2f4890=selectModel(_0x686e78,_0x23eeca,_0x1a502e[_0x11416d(0x271)]??_0x1167f1[_0x11416d(0x271)]),_0x36eaf5=this[_0x11416d(0x100)](),_0x2686a=await this[_0x11416d(0x1c3)][_0x11416d(0x25f)][_0x11416d(0x193)](_0x1167f1['id'],_0x548343=>({..._0x548343,'modelId':_0x2f4890['id'],'updatedAt':_0x36eaf5,'lastActivityAt':_0x36eaf5}));return this[_0x11416d(0x211)](_0x1167f1['id'],{'conversationId':_0x1167f1['id'],'kind':_0x11416d(0x294),'conversation':this[_0x11416d(0x18d)](_0x2686a)}),{'conversation':this[_0x11416d(0x18d)](_0x2686a)};}async[_0x1f8c85(0x1db)](_0x1e8260){const _0x260959=_0x1f8c85,_0x2244e9=hostedRequest(_0x1e8260),_0x318659=hostedConversationMetadataUpdateInputSchema[_0x260959(0x12b)](_0x2244e9[_0x260959(0x108)]),_0x551ad1=this[_0x260959(0x1c3)][_0x260959(0x25f)][_0x260959(0x15a)](_0x2244e9[_0x260959(0x14e)],_0x318659[_0x260959(0x222)]);if(this[_0x260959(0xda)][_0x260959(0x1ba)](_0x551ad1['id']))throw new Error(_0x260959(0x1a7));const _0x5c0c52=this[_0x260959(0x100)](),_0x9ea5d1=await this[_0x260959(0x1c3)][_0x260959(0x25f)][_0x260959(0x193)](_0x551ad1['id'],_0x416186=>({..._0x416186,'title':_0x318659[_0x260959(0x20c)]??_0x416186[_0x260959(0x20c)],'titleSource':_0x318659[_0x260959(0x20c)]===undefined?_0x416186[_0x260959(0x139)]:_0x260959(0x21b),'pinnedAt':_0x318659[_0x260959(0x19a)]===undefined?_0x416186[_0x260959(0x128)]:_0x318659[_0x260959(0x19a)]?_0x5c0c52:null,'updatedAt':_0x5c0c52,'lastActivityAt':_0x416186[_0x260959(0xba)]}));return this[_0x260959(0x211)](_0x551ad1['id'],{'conversationId':_0x551ad1['id'],'kind':_0x260959(0x294),'conversation':this[_0x260959(0x18d)](_0x9ea5d1)}),{'conversation':this[_0x260959(0x18d)](_0x9ea5d1)};}async[_0x1f8c85(0x168)](_0x341b97){const _0x4528e4=_0x1f8c85,_0x362bea=hostedRequest(_0x341b97),_0x55c750=hostedConversationIdInputSchema[_0x4528e4(0x12b)](_0x362bea[_0x4528e4(0x108)]);return hostedConversationFilesSchema[_0x4528e4(0x12b)]({'files':this[_0x4528e4(0x1c3)][_0x4528e4(0x25f)][_0x4528e4(0x168)](_0x362bea[_0x4528e4(0x14e)],_0x55c750[_0x4528e4(0x222)])});}async[_0x1f8c85(0x1c2)](_0x203a43){const _0x2139d4=_0x1f8c85,_0x4b5cb9=hostedRequest(_0x203a43),_0x23e6b5=hostedConversationImageReadInputSchema[_0x2139d4(0x12b)](_0x4b5cb9[_0x2139d4(0x108)]);this[_0x2139d4(0x1c3)][_0x2139d4(0x25f)][_0x2139d4(0x15a)](_0x4b5cb9[_0x2139d4(0x14e)],_0x23e6b5[_0x2139d4(0x222)]);if(_0x23e6b5[_0x2139d4(0xe0)]!==hostedConversationImageRunId(_0x23e6b5[_0x2139d4(0x222)]))throw new Error(_0x2139d4(0x1e2));const _0x5c0843=await this[_0x2139d4(0x1c3)][_0x2139d4(0x1c2)](_0x23e6b5[_0x2139d4(0xe0)],_0x23e6b5[_0x2139d4(0x187)]);if(_0x5c0843===undefined)throw new Error(_0x2139d4(0x11e));return{'image':_0x5c0843};}async[_0x1f8c85(0x273)](_0x28c803){const _0x2a4273=_0x1f8c85,_0x732db3=hostedRequest(_0x28c803),_0x5612da=hostedConversationFileReadInputSchema[_0x2a4273(0x12b)](_0x732db3[_0x2a4273(0x108)]),_0x4a360c=this[_0x2a4273(0x1c3)][_0x2a4273(0x25f)][_0x2a4273(0x119)](_0x732db3[_0x2a4273(0x14e)],_0x5612da[_0x2a4273(0x222)],_0x5612da[_0x2a4273(0x145)]),_0x29e38e=this[_0x2a4273(0x1c3)][_0x2a4273(0x25f)][_0x2a4273(0xc1)](_0x732db3[_0x2a4273(0x14e)],_0x4a360c),_0x32599a=_0x5612da[_0x2a4273(0x172)]??0x7*0x55b+0x1*-0x230b+-0x272*0x1,_0x41ef3b=Math[_0x2a4273(0x248)](_0x5612da[_0x2a4273(0xbf)]??MAX_FILE_READ_BYTES,MAX_FILE_READ_BYTES),_0x3cabb9=await openRegularFile(_0x29e38e);try{const _0x13b209=await _0x3cabb9[_0x2a4273(0x205)]();assertRegularFileMetadata(_0x13b209);const _0x4c5123=await regularFileMetadata(_0x29e38e);if(!sameFileIdentity(_0x13b209,_0x4c5123))throw new Error(_0x2a4273(0x162));if(_0x32599a>_0x13b209[_0x2a4273(0x1d7)])throw new Error(_0x2a4273(0x27d));const _0x3c6a2c=Buffer[_0x2a4273(0xfc)](Math[_0x2a4273(0x248)](_0x41ef3b,Math[_0x2a4273(0xe7)](-0x70b*-0x1+-0x17a3+0x8*0x213,_0x13b209[_0x2a4273(0x1d7)]-_0x32599a))),_0x3be42e=await _0x3cabb9[_0x2a4273(0x17f)](_0x3c6a2c,-0x4*0x239+0x4d1*0x1+0x413,_0x3c6a2c[_0x2a4273(0x1ed)],_0x32599a),_0x1d2ec8=await _0x3cabb9[_0x2a4273(0x205)](),_0x47a730=await regularFileMetadata(_0x29e38e);if(!sameFileSnapshot(_0x13b209,_0x1d2ec8)||!sameFileSnapshot(_0x1d2ec8,_0x47a730))throw new Error(_0x2a4273(0x162));const _0xdc47d6=_0x32599a+_0x3be42e[_0x2a4273(0x15f)],_0x56e494=_0xdc47d6>=_0x1d2ec8[_0x2a4273(0x1d7)],_0x5e95e5={..._0x4a360c,'size':_0x1d2ec8[_0x2a4273(0x1d7)],'updatedAt':Math[_0x2a4273(0xe7)](_0x4a360c[_0x2a4273(0xf0)],safeFileTimestamp(_0x1d2ec8[_0x2a4273(0x290)]),safeFileTimestamp(_0x1d2ec8[_0x2a4273(0x1dd)]))};return hostedConversationFileReadResultSchema[_0x2a4273(0x12b)]({'file':_0x5e95e5,'encoding':_0x2a4273(0x218),'content':_0x3c6a2c[_0x2a4273(0x1aa)](-0x1c60+0xdac+-0x75a*-0x2,_0x3be42e[_0x2a4273(0x15f)])[_0x2a4273(0x12a)](_0x2a4273(0x218)),'offset':_0x32599a,'nextOffset':_0x56e494?null:_0xdc47d6,'eof':_0x56e494});}finally{await _0x3cabb9[_0x2a4273(0x1ae)]();}}async[_0x1f8c85(0xe6)](_0x3f546f){const _0x11c04f=_0x1f8c85,_0x32e7a4=hostedRequest(_0x3f546f),_0x3e69eb=hostedConversationFileDeleteInputSchema[_0x11c04f(0x12b)](_0x32e7a4[_0x11c04f(0x108)]);this[_0x11c04f(0x104)](_0x32e7a4[_0x11c04f(0x14e)],_0x3e69eb[_0x11c04f(0x222)]);const _0x329c1e=_0x3e69eb[_0x11c04f(0x222)]+'\x00'+_0x3e69eb[_0x11c04f(0x145)];if(this[_0x11c04f(0x11b)][_0x11c04f(0x1ba)](_0x329c1e))throw new Error(_0x11c04f(0xe2));this[_0x11c04f(0x11b)][_0x11c04f(0x182)](_0x329c1e);try{const _0x2069f5=await this[_0x11c04f(0x1c3)][_0x11c04f(0x25f)][_0x11c04f(0xe6)](_0x32e7a4[_0x11c04f(0x14e)],_0x3e69eb[_0x11c04f(0x222)],_0x3e69eb[_0x11c04f(0x145)],this[_0x11c04f(0x100)]()),_0x1e7e66=hostedConversationFileDeleteResultSchema[_0x11c04f(0x12b)]({'deletedFileId':_0x3e69eb[_0x11c04f(0x145)],'files':_0x2069f5});return this[_0x11c04f(0x211)](_0x3e69eb[_0x11c04f(0x222)],{'conversationId':_0x3e69eb[_0x11c04f(0x222)],'kind':_0x11c04f(0x216),'files':_0x1e7e66[_0x11c04f(0x216)],'error':null}),_0x1e7e66;}finally{this[_0x11c04f(0x11b)][_0x11c04f(0x167)](_0x329c1e);}}async[_0x1f8c85(0xdb)](_0x35c486){const _0xd34e48=_0x1f8c85,_0x49d691=hostedRequest(_0x35c486),_0x595b78=hostedConversationUploadPreflightInputSchema[_0xd34e48(0x12b)](_0x49d691[_0xd34e48(0x108)]),_0x284c07=this[_0xd34e48(0x104)](_0x49d691[_0xd34e48(0x14e)],_0x595b78[_0xd34e48(0x222)]),_0x11942a=await this[_0xd34e48(0x280)](_0x284c07[_0xd34e48(0x164)],_0x284c07[_0xd34e48(0x268)]),_0x2939f1=this[_0xd34e48(0x1c3)][_0xd34e48(0x25f)][_0xd34e48(0x114)](_0x49d691[_0xd34e48(0x14e)],_0x284c07['id']),_0x30be11=await Promise[_0xd34e48(0x1f3)](_0x595b78[_0xd34e48(0x216)][_0xd34e48(0xf8)](async _0x4565c8=>({'name':_0x4565c8[_0xd34e48(0x23d)],'status':await this[_0xd34e48(0x194)](_0x2939f1,_0x284c07,_0x11942a[_0xd34e48(0x10c)],_0x4565c8[_0xd34e48(0x23d)],_0x4565c8[_0xd34e48(0x1d7)])})));return hostedConversationUploadPreflightResultSchema[_0xd34e48(0x12b)]({'files':_0x30be11});}async[_0x1f8c85(0x26c)](_0x54b670){const _0x5397e2=_0x1f8c85,_0x1aee65=hostedRequest(_0x54b670),_0x27fb7b=hostedConversationUploadCreateInputSchema[_0x5397e2(0x12b)](_0x1aee65[_0x5397e2(0x108)]),_0x40a592=this[_0x5397e2(0x104)](_0x1aee65[_0x5397e2(0x14e)],_0x27fb7b[_0x5397e2(0x222)]),_0x116ca2=_0x1aee65[_0x5397e2(0x14e)]+'\x00'+_0x40a592['id']+'\x00'+_0x27fb7b[_0x5397e2(0x12e)],_0x49ec95=this[_0x5397e2(0x261)][_0x5397e2(0x10b)](_0x116ca2);if(_0x49ec95!==undefined){const _0x44b8fa=this[_0x5397e2(0x20b)][_0x5397e2(0x10b)](_0x49ec95);if(_0x44b8fa!==undefined)return{'upload':hostedConversationUploadSchema[_0x5397e2(0x12b)](uploadProjection(_0x44b8fa))};}const _0x2f14bf=await this[_0x5397e2(0x280)](_0x40a592[_0x5397e2(0x164)],_0x40a592[_0x5397e2(0x268)]),_0x38141c=this[_0x5397e2(0x1c3)][_0x5397e2(0x25f)][_0x5397e2(0x114)](_0x1aee65[_0x5397e2(0x14e)],_0x40a592['id']),_0x201d05=await this[_0x5397e2(0x194)](_0x38141c,_0x40a592,_0x2f14bf[_0x5397e2(0x10c)],_0x27fb7b[_0x5397e2(0x23d)],_0x27fb7b[_0x5397e2(0x1d7)]);if(_0x201d05===_0x5397e2(0x15d)||_0x201d05===_0x5397e2(0x22f))throw new Error(_0x5397e2(0xf1));if(_0x201d05!==_0x5397e2(0x238))throw new Error(_0x5397e2(0x162));const _0x114c09=this['id'](),_0xbcf56c=join(_0x38141c[_0x5397e2(0x1cc)],'.'+_0x114c09+_0x5397e2(0xee)),_0x53b104=join(_0x38141c[_0x5397e2(0x1cc)],_0x27fb7b[_0x5397e2(0x23d)]),_0x102e3c=await open(_0xbcf56c,'wx',0x1*-0x76d+0x23fb*0x1+-0x1b0e);await _0x102e3c[_0x5397e2(0x1ae)]();const _0x487a38={'uploadId':_0x114c09,'conversationId':_0x40a592['id'],'userId':_0x1aee65[_0x5397e2(0x14e)],'clientRequestId':_0x27fb7b[_0x5397e2(0x12e)],'name':_0x27fb7b[_0x5397e2(0x23d)],'mimeType':_0x27fb7b[_0x5397e2(0x1b8)],'size':_0x27fb7b[_0x5397e2(0x1d7)],'temporaryPath':_0xbcf56c,'targetPath':_0x53b104,'receivedBytes':0x0,'status':_0x5397e2(0x134)};return this[_0x5397e2(0x20b)][_0x5397e2(0x1dc)](_0x114c09,_0x487a38),this[_0x5397e2(0x261)][_0x5397e2(0x1dc)](_0x116ca2,_0x114c09),{'upload':hostedConversationUploadSchema[_0x5397e2(0x12b)](uploadProjection(_0x487a38))};}async[_0x1f8c85(0x281)](_0x3b5afd){const _0x577132=_0x1f8c85,_0x85db5b=hostedRequest(_0x3b5afd),_0x1ae5f3=hostedConversationUploadChunkInputSchema[_0x577132(0x12b)](_0x85db5b[_0x577132(0x108)]),_0x51e4fa=this[_0x577132(0x1ce)](_0x85db5b[_0x577132(0x14e)],_0x1ae5f3[_0x577132(0x222)],_0x1ae5f3[_0x577132(0x136)]);if(_0x51e4fa[_0x577132(0x156)]!==_0x577132(0x134))throw new Error(_0x577132(0x1f4));if(_0x1ae5f3[_0x577132(0x172)]!==_0x51e4fa[_0x577132(0x1fc)])throw new Error(_0x577132(0xd0));const _0x39af26=Buffer[_0x577132(0x1eb)](_0x1ae5f3[_0x577132(0x1ad)],_0x577132(0x218));if(_0x51e4fa[_0x577132(0x1fc)]+_0x39af26[_0x577132(0x267)]>_0x51e4fa[_0x577132(0x1d7)])throw new Error(_0x577132(0xf6));await assertUploadTemporaryFile(_0x51e4fa[_0x577132(0x11a)],_0x51e4fa[_0x577132(0x1fc)]);const _0x2c6404=await open(_0x51e4fa[_0x577132(0x11a)],'r+');try{await _0x2c6404[_0x577132(0xb8)](_0x39af26,-0x177d*0x1+0x5*-0x761+-0x106*-0x3b,_0x39af26[_0x577132(0x267)],_0x51e4fa[_0x577132(0x1fc)]);}finally{await _0x2c6404[_0x577132(0x1ae)]();}return _0x51e4fa[_0x577132(0x1fc)]+=_0x39af26[_0x577132(0x267)],{'upload':hostedConversationUploadSchema[_0x577132(0x12b)](uploadProjection(_0x51e4fa))};}[_0x1f8c85(0x263)](_0x29e37e){const _0x4655ea=_0x1f8c85,_0x194822=hostedRequest(_0x29e37e),_0x422327=hostedConversationUploadControlInputSchema[_0x4655ea(0x12b)](_0x194822[_0x4655ea(0x108)]),_0x48398d=this[_0x4655ea(0x1ce)](_0x194822[_0x4655ea(0x14e)],_0x422327[_0x4655ea(0x222)],_0x422327[_0x4655ea(0x136)]);return{'upload':hostedConversationUploadSchema[_0x4655ea(0x12b)](uploadProjection(_0x48398d))};}async[_0x1f8c85(0x17b)](_0x27540b){const _0x1433bf=_0x1f8c85,_0x4d6d64=hostedRequest(_0x27540b),_0xc5fa85=hostedConversationUploadControlInputSchema[_0x1433bf(0x12b)](_0x4d6d64[_0x1433bf(0x108)]),_0x1479a5=this[_0x1433bf(0x1ce)](_0x4d6d64[_0x1433bf(0x14e)],_0xc5fa85[_0x1433bf(0x222)],_0xc5fa85[_0x1433bf(0x136)]);if(_0x1479a5[_0x1433bf(0x156)]===_0x1433bf(0x1bb))return{'upload':hostedConversationUploadSchema[_0x1433bf(0x12b)](uploadProjection(_0x1479a5))};if(_0x1479a5[_0x1433bf(0x156)]!==_0x1433bf(0x134)||_0x1479a5[_0x1433bf(0x1fc)]!==_0x1479a5[_0x1433bf(0x1d7)])throw new Error(_0x1433bf(0x120));const _0x1b9015=this[_0x1433bf(0x104)](_0x4d6d64[_0x1433bf(0x14e)],_0x1479a5[_0x1433bf(0x222)]),_0x20bca1=await this[_0x1433bf(0x280)](_0x1b9015[_0x1433bf(0x164)],_0x1b9015[_0x1433bf(0x268)]);if(_0x1479a5[_0x1433bf(0x1d7)]>_0x20bca1[_0x1433bf(0x10c)][_0x1433bf(0x27e)][_0x1433bf(0x1a9)]||_0x1b9015[_0x1433bf(0x1af)][_0x1433bf(0xf4)]+_0x1479a5[_0x1433bf(0x1d7)]>_0x1b9015[_0x1433bf(0x1af)][_0x1433bf(0x25b)])throw new Error(_0x1433bf(0xf1));await assertUploadTemporaryFile(_0x1479a5[_0x1433bf(0x11a)],_0x1479a5[_0x1433bf(0x1d7)]);const _0x3f7b59=await lstat(_0x1479a5[_0x1433bf(0x276)])[_0x1433bf(0x142)](_0x26f204=>{const _0x3f1ad1=_0x1433bf;if(_0x26f204[_0x3f1ad1(0xe3)]===_0x3f1ad1(0x165))return undefined;throw _0x26f204;});if(_0x3f7b59!==undefined)throw new Error(_0x1433bf(0x162));const _0x378a1f=await open(_0x1479a5[_0x1433bf(0x11a)],'r+');try{await _0x378a1f[_0x1433bf(0xc3)]();}finally{await _0x378a1f[_0x1433bf(0x1ae)]();}await rename(_0x1479a5[_0x1433bf(0x11a)],_0x1479a5[_0x1433bf(0x276)]);const _0x4f3090=this[_0x1433bf(0x100)]();try{await utimes(_0x1479a5[_0x1433bf(0x276)],new Date(_0x4f3090),new Date(_0x4f3090));const _0x54f215={'id':this[_0x1433bf(0x1c3)][_0x1433bf(0x25f)][_0x1433bf(0x14f)](_0x1479a5[_0x1433bf(0x222)],_0x1433bf(0x1a3),_0x1479a5[_0x1433bf(0x23d)]),'conversationId':_0x1479a5[_0x1433bf(0x222)],'category':_0x1433bf(0x1a3),'relativePath':_0x1479a5[_0x1433bf(0x23d)],'displayName':_0x1479a5[_0x1433bf(0x23d)],'mimeType':_0x1479a5[_0x1433bf(0x1b8)],'size':_0x1479a5[_0x1433bf(0x1d7)],'source':_0x1433bf(0x22a),'createdAt':_0x4f3090,'updatedAt':_0x4f3090};return _0x1479a5[_0x1433bf(0x203)]=await this[_0x1433bf(0x1c3)][_0x1433bf(0x25f)][_0x1433bf(0x24e)](_0x4d6d64[_0x1433bf(0x14e)],_0x54f215),_0x1479a5[_0x1433bf(0x156)]=_0x1433bf(0x1bb),this[_0x1433bf(0x211)](_0x1479a5[_0x1433bf(0x222)],{'conversationId':_0x1479a5[_0x1433bf(0x222)],'kind':_0x1433bf(0x216),'files':this[_0x1433bf(0x1c3)][_0x1433bf(0x25f)][_0x1433bf(0x168)](_0x4d6d64[_0x1433bf(0x14e)],_0x1479a5[_0x1433bf(0x222)]),'error':null}),{'upload':hostedConversationUploadSchema[_0x1433bf(0x12b)](uploadProjection(_0x1479a5))};}catch(_0x12fd6a){await rename(_0x1479a5[_0x1433bf(0x276)],_0x1479a5[_0x1433bf(0x11a)])[_0x1433bf(0x142)](()=>undefined);throw _0x12fd6a;}}async[_0x1f8c85(0x241)](_0x52f4a0){const _0x2d35e8=_0x1f8c85,_0x296584=hostedRequest(_0x52f4a0),_0x427cb0=hostedConversationUploadControlInputSchema[_0x2d35e8(0x12b)](_0x296584[_0x2d35e8(0x108)]),_0xd38e15=this[_0x2d35e8(0x1ce)](_0x296584[_0x2d35e8(0x14e)],_0x427cb0[_0x2d35e8(0x222)],_0x427cb0[_0x2d35e8(0x136)]);if(_0xd38e15[_0x2d35e8(0x156)]===_0x2d35e8(0x1bb))throw new Error(_0x2d35e8(0x1f4));return _0xd38e15[_0x2d35e8(0x156)]=_0x2d35e8(0x246),await rm(_0xd38e15[_0x2d35e8(0x11a)],{'force':!![]}),{'upload':hostedConversationUploadSchema[_0x2d35e8(0x12b)](uploadProjection(_0xd38e15))};}async[_0x1f8c85(0x167)](_0x3868e2){const _0x43ec98=_0x1f8c85,_0x2a8e3c=hostedRequest(_0x3868e2),_0x31e718=hostedConversationIdInputSchema[_0x43ec98(0x12b)](_0x2a8e3c[_0x43ec98(0x108)]),_0x50e20d=this[_0x43ec98(0x1c3)][_0x43ec98(0x25f)][_0x43ec98(0x15a)](_0x2a8e3c[_0x43ec98(0x14e)],_0x31e718[_0x43ec98(0x222)]);if(this[_0x43ec98(0xda)][_0x43ec98(0x1ba)](_0x50e20d['id'])||this[_0x43ec98(0x1c9)][_0x43ec98(0x1ba)](_0x50e20d['id']))throw new Error(_0x43ec98(0x1a7));this[_0x43ec98(0xda)][_0x43ec98(0x182)](_0x50e20d['id']);try{await this[_0x43ec98(0x191)](_0x50e20d['id']);const _0x259532=this[_0x43ec98(0xca)][_0x43ec98(0x10b)](_0x50e20d['id']);if(_0x259532!==undefined){const _0x253087=runInterruptionKey(_0x50e20d['id'],_0x259532[_0x43ec98(0x1ff)]['id']);this[_0x43ec98(0x155)][_0x43ec98(0x182)](_0x253087);if(!_0x259532[_0x43ec98(0xf5)]())this[_0x43ec98(0x155)][_0x43ec98(0x167)](_0x253087);}await this[_0x43ec98(0x160)](_0x2a8e3c[_0x43ec98(0x14e)],_0x50e20d['id']);const _0x51fe42=this[_0x43ec98(0x1c3)][_0x43ec98(0x25f)][_0x43ec98(0x114)](_0x2a8e3c[_0x43ec98(0x14e)],_0x50e20d['id']);return await this[_0x43ec98(0x1c3)][_0x43ec98(0x221)][_0x43ec98(0x11d)]({'conversationId':_0x50e20d['id'],'sessionId':_0x50e20d[_0x43ec98(0x1a8)],'homeDirectory':_0x51fe42[_0x43ec98(0x235)]})[_0x43ec98(0x142)](()=>undefined),await this[_0x43ec98(0xd4)][_0x43ec98(0x10b)](_0x50e20d['id'])?.[_0x43ec98(0x142)](()=>undefined),this[_0x43ec98(0x22d)](_0x50e20d['id']),await this[_0x43ec98(0x1c3)][_0x43ec98(0x25f)][_0x43ec98(0x27a)](_0x50e20d['id']),this[_0x43ec98(0xd3)][_0x43ec98(0x167)](_0x50e20d['id']),this[_0x43ec98(0x201)][_0x43ec98(0x167)](_0x50e20d['id']),hostedConversationDeleteResultSchema[_0x43ec98(0x12b)]({'deletedConversationId':_0x50e20d['id']});}finally{this[_0x43ec98(0xda)][_0x43ec98(0x167)](_0x50e20d['id']);}}async[_0x1f8c85(0x191)](_0x25df7c){const _0x2cf2b9=_0x1f8c85,_0x153cfe=_0x25df7c+'\x00',_0x3e4b3e=[...this[_0x2cf2b9(0x12f)][_0x2cf2b9(0x14d)]()][_0x2cf2b9(0x1e0)](([_0x52dea1])=>_0x52dea1[_0x2cf2b9(0x249)](_0x153cfe))[_0x2cf2b9(0xf8)](([,_0x4cd592])=>_0x4cd592);await Promise[_0x2cf2b9(0x109)](_0x3e4b3e);}async[_0x1f8c85(0x24f)](_0x36c060){const _0x1d8d77=_0x1f8c85;try{const _0x19aefb=await this[_0x1d8d77(0x10b)]({'conversationId':_0x36c060[_0x1d8d77(0x222)],'__requestUserId':_0x36c060[_0x1d8d77(0x14e)],'__marAgentModels':_0x36c060[_0x1d8d77(0x272)]});if(this[_0x1d8d77(0x285)][_0x1d8d77(0x10b)](_0x36c060[_0x1d8d77(0xc0)])!==_0x36c060)return;this[_0x1d8d77(0x1c3)][_0x1d8d77(0x1f5)]?.({'type':_0x1d8d77(0x234),'workbenchConnectionId':_0x36c060[_0x1d8d77(0x1b7)],'watchId':_0x36c060[_0x1d8d77(0x1c6)],'nodeGeneration':_0x36c060[_0x1d8d77(0x186)],'nodeId':this[_0x1d8d77(0x1c3)][_0x1d8d77(0x147)](),'templateId':_0x36c060[_0x1d8d77(0x268)],'conversationId':_0x36c060[_0x1d8d77(0x222)],'revision':0x1,'snapshotSequence':++this[_0x1d8d77(0x1d3)],'expiresAt':_0x36c060[_0x1d8d77(0x188)],'payload':_0x19aefb}),_0x36c060[_0x1d8d77(0x1a0)]=!![];for(const _0x32f38d of _0x36c060[_0x1d8d77(0x19d)])this[_0x1d8d77(0x1b1)](_0x36c060,_0x32f38d);_0x36c060[_0x1d8d77(0x19d)][_0x1d8d77(0x1ed)]=-0xe21+0xe6b+-0x4a*0x1;}catch(_0x9e6169){if(this[_0x1d8d77(0x285)][_0x1d8d77(0x10b)](_0x36c060[_0x1d8d77(0xc0)])!==_0x36c060)return;this[_0x1d8d77(0x1c3)][_0x1d8d77(0x1f5)]?.({'type':_0x1d8d77(0x1b0),'workbenchConnectionId':_0x36c060[_0x1d8d77(0x1b7)],'watchType':_0x1d8d77(0xe8),'watchId':_0x36c060[_0x1d8d77(0x1c6)],'nodeGeneration':_0x36c060[_0x1d8d77(0x186)],'nodeId':this[_0x1d8d77(0x1c3)][_0x1d8d77(0x147)](),'templateId':_0x36c060[_0x1d8d77(0x268)],'conversationId':_0x36c060[_0x1d8d77(0x222)],'code':safeErrorCode(_0x9e6169,_0x1d8d77(0x1bf)),'message':_0x1d8d77(0x189)}),this[_0x1d8d77(0x28d)](_0x36c060[_0x1d8d77(0xc0)]);}}[_0x1f8c85(0x22c)](_0x1074b9,_0x2b844b){const _0x5fb382=_0x1f8c85;for(const _0x182659 of this[_0x5fb382(0x285)][_0x5fb382(0x287)]()){if(_0x182659[_0x5fb382(0x222)]!==_0x1074b9||!_0x182659[_0x5fb382(0x1a0)])continue;this[_0x5fb382(0x1c3)][_0x5fb382(0x1f5)]?.({'type':_0x5fb382(0x234),'workbenchConnectionId':_0x182659[_0x5fb382(0x1b7)],'watchId':_0x182659[_0x5fb382(0x1c6)],'nodeGeneration':_0x182659[_0x5fb382(0x186)],'nodeId':this[_0x5fb382(0x1c3)][_0x5fb382(0x147)](),'templateId':_0x182659[_0x5fb382(0x268)],'conversationId':_0x182659[_0x5fb382(0x222)],'revision':0x1,'snapshotSequence':++this[_0x5fb382(0x1d3)],'expiresAt':_0x182659[_0x5fb382(0x188)],'payload':_0x2b844b});}}[_0x1f8c85(0x131)](_0x584861){const _0x3c71d4=_0x1f8c85;return this[_0x3c71d4(0xd3)][_0x3c71d4(0x10b)](_0x584861)??{'status':_0x3c71d4(0x20a),'version':0x0,'updatedAt':0x0};}[_0x1f8c85(0x18d)](_0x253795){const _0x54118c=_0x1f8c85;return hostedConversationSummary(_0x253795,this[_0x54118c(0x131)](_0x253795['id']));}[_0x1f8c85(0x293)](_0x285a55,_0x3c6ef8,_0x50d3ac,_0x117fbc){const _0x136bb5=_0x1f8c85,_0x3b2d32=this[_0x136bb5(0x131)](_0x3c6ef8['id']),_0x18a107={'status':_0x50d3ac,'version':_0x3b2d32[_0x136bb5(0x242)]+(-0x1b48+0x1a24+0x125),'updatedAt':_0x117fbc};this[_0x136bb5(0xd3)][_0x136bb5(0x1dc)](_0x3c6ef8['id'],_0x18a107),this[_0x136bb5(0x10a)]({'kind':_0x136bb5(0x131),'userId':_0x285a55,'templateId':_0x3c6ef8[_0x136bb5(0x268)],'conversationId':_0x3c6ef8['id'],'activity':_0x18a107});}[_0x1f8c85(0x1ab)](_0x117bbd,_0x461f71,_0x161694,_0x339df6){const _0x6d64ac=_0x1f8c85;this[_0x6d64ac(0x10a)]({'kind':_0x6d64ac(0x266),'event':{'runId':_0x161694,'sequence':0x1,'eventType':_0x6d64ac(0x266),'payload':{'targetType':_0x6d64ac(0x26e),'userId':_0x117bbd,'templateId':_0x461f71[_0x6d64ac(0x268)],'conversationId':_0x461f71['id'],'conversationTitle':_0x461f71[_0x6d64ac(0x20c)],'runId':_0x161694,'notificationId':_0x6d64ac(0x236)+this[_0x6d64ac(0x1c3)][_0x6d64ac(0x147)]()+':'+_0x461f71['id']+':'+_0x161694,'kind':_0x6d64ac(0x27c),'outcome':_0x339df6[_0x6d64ac(0x156)],'occurredAt':_0x339df6[_0x6d64ac(0x28b)]},'createdAt':_0x339df6[_0x6d64ac(0x28b)]}});}[_0x1f8c85(0x10a)](_0x30b642){const _0xadd063=_0x1f8c85,_0x27071d=this[_0xadd063(0x1c3)][_0xadd063(0x103)]?.(_0x30b642)??{'sequence':++this[_0xadd063(0x269)],'category':_0xadd063(0xe8),'payload':_0x30b642};if(_0x27071d!==undefined)this[_0xadd063(0x1c3)][_0xadd063(0x1f2)]?.(_0x27071d);}[_0x1f8c85(0x17d)](_0x4372a4,_0x122199,_0x435b58,_0x4188ff){const _0x4c8fe9=_0x1f8c85;this[_0x4c8fe9(0x211)](_0x4372a4['id'],{'conversationId':_0x4372a4['id'],'kind':_0x4c8fe9(0xfb),'upgrade':{'status':_0x4c8fe9(0x250),'previousVersionId':_0x122199,'targetVersionId':_0x435b58,'activeVersionId':_0x4372a4[_0x4c8fe9(0x164)],'conversation':this[_0x4c8fe9(0x18d)](_0x4372a4),'error':{'code':safeErrorCode(_0x4188ff,_0x4c8fe9(0x192)),'message':_0x4c8fe9(0xcb)}}});}[_0x1f8c85(0x211)](_0x730b77,_0xf804c4){const _0x27563d=_0x1f8c85,_0x3bbb1c=[...this[_0x27563d(0x285)][_0x27563d(0x287)]()][_0x27563d(0x1e0)](_0x46d884=>_0x46d884[_0x27563d(0x222)]===_0x730b77);if(_0x3bbb1c[_0x27563d(0x1ed)]===-0x124*0x3+0x781+0x37*-0x13)return![];const _0x198769=this[_0x27563d(0x1c3)][_0x27563d(0x103)]?.(_0xf804c4)??{'sequence':++this[_0x27563d(0x269)],'category':_0x27563d(0xe8),'payload':_0xf804c4};if(_0x198769===undefined)return![];for(const _0x5dce56 of _0x3bbb1c){if(!_0x5dce56[_0x27563d(0x1a0)])_0x5dce56[_0x27563d(0x19d)][_0x27563d(0xd8)](_0x198769);else this[_0x27563d(0x1b1)](_0x5dce56,_0x198769);}return!![];}[_0x1f8c85(0x1b1)](_0xe20f1b,_0x78e0eb){const _0xd89428=_0x1f8c85;this[_0xd89428(0x1c3)][_0xd89428(0x1f5)]?.({'type':_0xd89428(0x282),'workbenchConnectionId':_0xe20f1b[_0xd89428(0x1b7)],'watchId':_0xe20f1b[_0xd89428(0x1c6)],'nodeGeneration':_0xe20f1b[_0xd89428(0x186)],'nodeId':this[_0xd89428(0x1c3)][_0xd89428(0x147)](),'templateId':_0xe20f1b[_0xd89428(0x268)],'conversationId':_0xe20f1b[_0xd89428(0x222)],'expiresAt':_0xe20f1b[_0xd89428(0x188)],'event':_0x78e0eb});}[_0x1f8c85(0x1df)](_0x1cba83){const _0x46f393=_0x1f8c85;return{'accepted':!![],'watchId':_0x1cba83[_0x46f393(0x1c6)],'nodeGeneration':_0x1cba83[_0x46f393(0x186)],'expiresAt':_0x1cba83[_0x46f393(0x188)]};}[_0x1f8c85(0x22d)](_0xd01ff9){const _0x100d21=_0x1f8c85;for(const _0x55f5e9 of[...this[_0x100d21(0x285)][_0x100d21(0x287)]()])if(_0x55f5e9[_0x100d21(0x222)]===_0xd01ff9)this[_0x100d21(0x28d)](_0x55f5e9[_0x100d21(0xc0)]);}[_0x1f8c85(0x28d)](_0x5946d5){const _0x2e180b=_0x1f8c85,_0x3fd864=this[_0x2e180b(0x285)][_0x2e180b(0x10b)](_0x5946d5);if(_0x3fd864===undefined)return;clearTimeout(_0x3fd864[_0x2e180b(0x122)]),this[_0x2e180b(0x285)][_0x2e180b(0x167)](_0x5946d5),this[_0x2e180b(0x278)][_0x2e180b(0x295)](_0x5946d5,_0x3fd864[_0x2e180b(0x16f)]);}[_0x1f8c85(0x163)](_0x49a634){const _0x15eaec=_0x1f8c85,_0x253b41=setTimeout(()=>this[_0x15eaec(0x28d)](_0x49a634),WATCH_TTL_MS);return _0x253b41[_0x15eaec(0x1e7)](),_0x253b41;}[_0x1f8c85(0x104)](_0x1d7fe5,_0x48a791){const _0x737be2=_0x1f8c85,_0x4c8e98=this[_0x737be2(0x1c3)][_0x737be2(0x25f)][_0x737be2(0x15a)](_0x1d7fe5,_0x48a791);if(this[_0x737be2(0xda)][_0x737be2(0x1ba)](_0x4c8e98['id']))throw new Error(_0x737be2(0x1a7));if(_0x4c8e98[_0x737be2(0x156)]!==_0x737be2(0x23b))throw new Error(_0x737be2(0x1a7));return _0x4c8e98;}[_0x1f8c85(0x1ce)](_0x11c61c,_0x122163,_0x272889){const _0x29bf47=_0x1f8c85;this[_0x29bf47(0x1c3)][_0x29bf47(0x25f)][_0x29bf47(0x15a)](_0x11c61c,_0x122163);const _0x40d283=this[_0x29bf47(0x20b)][_0x29bf47(0x10b)](_0x272889);if(_0x40d283===undefined||_0x40d283[_0x29bf47(0x14e)]!==_0x11c61c||_0x40d283[_0x29bf47(0x222)]!==_0x122163)throw new Error(_0x29bf47(0x23c));return _0x40d283;}async[_0x1f8c85(0x160)](_0x45f39c,_0xcb1460){const _0x47af1c=_0x1f8c85;for(const _0x596e29 of this[_0x47af1c(0x20b)][_0x47af1c(0x287)]()){if(_0x596e29[_0x47af1c(0x14e)]!==_0x45f39c||_0x596e29[_0x47af1c(0x222)]!==_0xcb1460)continue;_0x596e29[_0x47af1c(0x156)]===_0x47af1c(0x134)&&(_0x596e29[_0x47af1c(0x156)]=_0x47af1c(0x246),await rm(_0x596e29[_0x47af1c(0x11a)],{'force':!![]})[_0x47af1c(0x142)](()=>undefined));}}async[_0x1f8c85(0x132)](_0x4346e8,_0x29ea19,_0x16f713){const _0x5680ba=_0x1f8c85,_0x3f3454=this[_0x5680ba(0x1c3)][_0x5680ba(0x25f)][_0x5680ba(0x119)](_0x4346e8,_0x29ea19,_0x16f713);if(_0x3f3454[_0x5680ba(0x1a1)]!==_0x5680ba(0x1a3))throw new Error(_0x5680ba(0x22e));return await assertRegularFile(this[_0x5680ba(0x1c3)][_0x5680ba(0x25f)][_0x5680ba(0xc1)](_0x4346e8,_0x3f3454),_0x3f3454[_0x5680ba(0x1d7)]),_0x3f3454;}async[_0x1f8c85(0x194)](_0x359f05,_0x427a99,_0x3b0e2d,_0x78e95b,_0x2f617a){const _0x4fb92b=_0x1f8c85;if(_0x2f617a>_0x3b0e2d[_0x4fb92b(0x27e)][_0x4fb92b(0x1a9)])return _0x4fb92b(0x22f);if(_0x427a99[_0x4fb92b(0x1af)][_0x4fb92b(0xf4)]+_0x2f617a>_0x427a99[_0x4fb92b(0x1af)][_0x4fb92b(0x25b)])return _0x4fb92b(0x15d);const _0x2e0afb=await lstat(join(_0x359f05[_0x4fb92b(0x1cc)],_0x78e95b))[_0x4fb92b(0x142)](_0x108016=>{const _0x164459=_0x4fb92b;if(_0x108016[_0x164459(0xe3)]===_0x164459(0x165))return undefined;throw _0x108016;});return _0x2e0afb===undefined?_0x4fb92b(0x238):_0x4fb92b(0x24d);}[_0x1f8c85(0x228)](_0x35b477,_0x1e8b42,_0x4faaa9,_0x19bbd8,_0x51edd7){const _0x10b338=_0x1f8c85,_0x5c2f81=[{'logicalPath':_0x10b338(0x18a),'physicalPath':_0x1e8b42[_0x10b338(0x17c)],'writable':![]},{'logicalPath':_0x10b338(0x259),'physicalPath':_0x35b477[_0x10b338(0x1cc)],'writable':!![]},{'logicalPath':_0x10b338(0x16d),'physicalPath':_0x35b477[_0x10b338(0x26a)],'writable':!![]}];if(_0x51edd7!==undefined)_0x5c2f81[_0x10b338(0xd8)]({'logicalPath':_0x10b338(0x215),'physicalPath':_0x51edd7,'writable':!![]});if(_0x4faaa9!==undefined&&_0x19bbd8!==undefined)_0x5c2f81[_0x10b338(0xd8)]({'logicalPath':_0x19bbd8,'physicalPath':_0x4faaa9,'writable':![]});if(_0x1e8b42[_0x10b338(0x198)]!==undefined)_0x5c2f81[_0x10b338(0xd8)]({'logicalPath':_0x1e8b42[_0x10b338(0x198)],'physicalPath':_0x1e8b42[_0x10b338(0x17c)],'writable':![]},{'logicalPath':join(_0x1e8b42[_0x10b338(0x198)],_0x10b338(0xd2)),'physicalPath':_0x35b477[_0x10b338(0x1cc)],'writable':!![]},{'logicalPath':join(_0x1e8b42[_0x10b338(0x198)],_0x10b338(0x21c)),'physicalPath':_0x35b477[_0x10b338(0x26a)],'writable':!![]});return _0x5c2f81;}[_0x1f8c85(0x14c)](_0x833298,_0x1064cb,_0x25ce13=_0x833298[_0x1f8c85(0x1fd)],_0x5e4546,_0x5614c5){const _0x35c5d1=_0x1f8c85;return this[_0x35c5d1(0x1c3)][_0x35c5d1(0x1ee)]({'policyVersion':HOST_POLICY_VERSION,'workspaceDirectory':_0x1064cb[_0x35c5d1(0x17c)],..._0x1064cb[_0x35c5d1(0x198)]===undefined?{}:{'sourceWorkspacePath':_0x1064cb[_0x35c5d1(0x198)]},'inboxDirectory':_0x833298[_0x35c5d1(0x1cc)],'outputDirectory':_0x833298[_0x35c5d1(0x26a)],..._0x5e4546===undefined||_0x5614c5===undefined?{}:{'generatedImagesDirectory':_0x5e4546,'generatedImagesLogicalPath':_0x5614c5},'temporaryDirectory':_0x25ce13,'networkMode':_0x1064cb[_0x35c5d1(0x10c)][_0x35c5d1(0x176)]});}[_0x1f8c85(0xeb)](_0x7b798f){const _0x46808b=_0x1f8c85,_0xe32f1=this[_0x46808b(0x1c3)][_0x46808b(0x144)][_0x46808b(0x1ec)][_0x46808b(0x1f1)](_0x46808b(0x1d8))[_0x46808b(0x10b)](_0x7b798f);if(_0xe32f1===undefined)return undefined;if(typeof _0xe32f1['id']!==_0x46808b(0xdd))throw new Error(_0x46808b(0x265));return _0xe32f1['id'];}async[_0x1f8c85(0x280)](_0xcbdc0a,_0x143ce2){const _0x23dc0f=_0x1f8c85,_0x57a051=this[_0x23dc0f(0x1c3)][_0x23dc0f(0x144)][_0x23dc0f(0x1ec)][_0x23dc0f(0x1f1)](_0x23dc0f(0x115))[_0x23dc0f(0x10b)](_0xcbdc0a,_0x143ce2);if(_0x57a051===undefined||_0x57a051[_0x23dc0f(0x156)]!==_0x23dc0f(0x12d)&&_0x57a051[_0x23dc0f(0x156)]!==_0x23dc0f(0x277)||_0x57a051[_0x23dc0f(0x146)]!==HOST_POLICY_VERSION||typeof _0x57a051[_0x23dc0f(0x16a)]!==_0x23dc0f(0xdd)||typeof _0x57a051[_0x23dc0f(0x1c7)]!==_0x23dc0f(0xdd)||typeof _0x57a051[_0x23dc0f(0x127)]!==_0x23dc0f(0xdd)||typeof _0x57a051[_0x23dc0f(0x121)]!==_0x23dc0f(0xdd)||typeof _0x57a051[_0x23dc0f(0x10d)]!==_0x23dc0f(0xdd))throw new Error(_0x23dc0f(0x265));const _0x535f68=this[_0x23dc0f(0x1c3)][_0x23dc0f(0x25f)][_0x23dc0f(0x1e6)](_0x57a051[_0x23dc0f(0x16a)]),_0x10131a=join(_0x535f68,_0x23dc0f(0x230)),_0x11671c=join(_0x535f68,_0x23dc0f(0xce)),_0x45acec=await lstat(_0x10131a)[_0x23dc0f(0x142)](()=>undefined),_0x240fb0=await lstat(_0x11671c)[_0x23dc0f(0x142)](()=>undefined);if(_0x45acec===undefined||!_0x45acec[_0x23dc0f(0x117)]()||_0x45acec[_0x23dc0f(0x130)]()||_0x240fb0===undefined||!_0x240fb0[_0x23dc0f(0x16c)]()||_0x240fb0[_0x23dc0f(0x130)]()||(_0x240fb0[_0x23dc0f(0x1c4)]&0x1*0x19e4+0xe*0x18d+0x5*-0x91f)!==0x185*0x1+-0x7af*-0x1+-0x1*0x7c7)throw new Error(_0x23dc0f(0x265));let _0x214ac3;try{const _0xb4431f=await readFile(_0x10131a,_0x23dc0f(0xf2)),_0x539a4f=_0xb4431f[_0x23dc0f(0xc7)]('\x0a')?_0xb4431f[_0x23dc0f(0x161)](-0x254c+-0x6aa+0x2bf6,-(0x9*0x37d+-0x1e94+0x10*-0xd)):_0xb4431f;if(_0x539a4f!==_0x57a051[_0x23dc0f(0x1c7)]||createHash(_0x23dc0f(0x1d5))[_0x23dc0f(0xea)](_0x539a4f)[_0x23dc0f(0x13c)](_0x23dc0f(0x143))!==_0x57a051[_0x23dc0f(0x121)])throw new Error(_0x23dc0f(0x265));_0x214ac3=JSON[_0x23dc0f(0x12b)](_0x539a4f);}catch{throw new Error(_0x23dc0f(0x265));}if(!record(_0x214ac3))throw new Error(_0x23dc0f(0x265));const _0x18f88b=publishedTemplateSnapshot(_0x214ac3),_0x3bf0a4=publishedTemplateDraft(_0x18f88b[_0x23dc0f(0x1f0)],_0x214ac3[_0x23dc0f(0x10c)]),_0x578f3e=_0x3bf0a4[_0x23dc0f(0x10c)],_0x5e1caa=publishedMcpServers(_0x214ac3[_0x23dc0f(0x173)]),_0x2d7779=publishedTemplateContentHash(_0x18f88b[_0x23dc0f(0x20e)],_0x18f88b[_0x23dc0f(0x14d)],_0x18f88b[_0x23dc0f(0x1f0)]),_0x125fae=_0x18f88b[_0x23dc0f(0x14d)][_0x23dc0f(0x1fb)]((_0x259d54,_0x526e4d)=>_0x259d54+_0x526e4d[_0x23dc0f(0x1d7)],0xc4d+-0xfd7+0x38a*0x1);if(_0x214ac3[_0x23dc0f(0x217)]!==_0x57a051[_0x23dc0f(0x10d)]||createHash(_0x23dc0f(0x1d5))[_0x23dc0f(0xea)](JSON[_0x23dc0f(0x190)](_0x5e1caa))[_0x23dc0f(0x13c)](_0x23dc0f(0x143))!==_0x57a051[_0x23dc0f(0x10d)]||_0x214ac3[_0x23dc0f(0xe9)]!==_0x57a051[_0x23dc0f(0x127)]||_0x2d7779!==_0x57a051[_0x23dc0f(0x127)]||_0x57a051[_0x23dc0f(0x13a)]!==_0x18f88b[_0x23dc0f(0x14d)][_0x23dc0f(0x1ed)]||_0x57a051[_0x23dc0f(0x289)]!==_0x125fae)throw new Error(_0x23dc0f(0x265));if(_0x214ac3[_0x23dc0f(0x171)]!==_0xcbdc0a||_0x214ac3[_0x23dc0f(0x268)]!==_0x143ce2||_0x214ac3[_0x23dc0f(0x196)]!==HOST_POLICY_VERSION||_0x578f3e[_0x23dc0f(0x268)]!==_0x143ce2||_0x578f3e[_0x23dc0f(0x147)]!==this[_0x23dc0f(0x1c3)][_0x23dc0f(0x147)]())throw new Error(_0x23dc0f(0x265));return{'id':_0xcbdc0a,'templateId':_0x143ce2,'storageKey':_0x57a051[_0x23dc0f(0x16a)],'templateDirectory':_0x11671c,..._0x18f88b[_0x23dc0f(0x198)]===undefined?{}:{'sourceWorkspacePath':_0x18f88b[_0x23dc0f(0x198)]},'draft':_0x578f3e,'modelPolicy':_0x3bf0a4[_0x23dc0f(0xd7)],'mcpServers':_0x5e1caa};}}function hostedRequest(_0x502375){const _0x40204a=_0x1f8c85;if(!record(_0x502375))throw new Error(_0x40204a(0x1e2));const {__requestUserId:_0x169fc6,__template:_0xb3f774,__marAgentModel:_0x354b88,__marAgentModels:_0x42a71a,__marAgentRuntimeScopeId:_0x29abfe,__workspaceWatchSessionHash:_0x286885,__templateDeleted:_0xf670b9,..._0x51c5e9}=_0x502375;if(typeof _0x169fc6!==_0x40204a(0xe1)||!Number[_0x40204a(0x1a6)](_0x169fc6)||_0x169fc6<=0x642+-0xc5*-0x5+-0xa1b)throw new Error(_0x40204a(0x1e2));if(_0xf670b9!==undefined&&_0xf670b9!==!![])throw new Error(_0x40204a(0x1e2));if(_0x29abfe!==undefined&&(typeof _0x29abfe!==_0x40204a(0xdd)||_0x29abfe[_0x40204a(0x1ed)]===-0xf88+-0x2568+-0x8*-0x69e))throw new Error(_0x40204a(0x1e2));return{'data':_0x51c5e9,'userId':_0x169fc6,..._0xb3f774===undefined?{}:{'template':_0xb3f774},..._0x354b88===undefined?{}:{'model':_0x354b88},..._0x42a71a===undefined?{}:{'models':_0x42a71a},..._0x29abfe===undefined?{}:{'runtimeScopeId':_0x29abfe},..._0x286885===undefined?{}:{'sessionHash':_0x286885},..._0xf670b9===!![]?{'templateDeleted':!![]}:{}};}function requireWatchSessionHash(_0x5ed39f){const _0x2a0607=_0x1f8c85;if(typeof _0x5ed39f!==_0x2a0607(0xdd)||_0x5ed39f[_0x2a0607(0x1ed)]===-0x11c7+0x756+-0x3*-0x37b)throw new Error(_0x2a0607(0x1e2));return _0x5ed39f;}function watchOwnerKey(_0x432ef4,_0x55c7b0){return _0x432ef4+':'+_0x55c7b0;}function runtimeModels(_0x357132){const _0x20734d=_0x1f8c85;return marAgentRuntimeModelConfigurationSchema[_0x20734d(0x232)]()[_0x20734d(0x12b)](_0x357132);}function _0x2fc3(_0x50b544,_0x4d0c11){_0x50b544=_0x50b544-(-0x1fd9+-0x2507*-0x1+0x476*-0x1);const _0x63394c=_0x2b1b();let _0x27d972=_0x63394c[_0x50b544];if(_0x2fc3['LgVifk']===undefined){var _0x433e0d=function(_0xc0f087){const _0x489611='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x469532='',_0x50f37e='';for(let _0x5bd0ec=0x1e*0x67+0x8c*0x35+-0x2*0x1487,_0x14b613,_0x16dd45,_0xed8675=-0x231b+0xda2+0xef*0x17;_0x16dd45=_0xc0f087['charAt'](_0xed8675++);~_0x16dd45&&(_0x14b613=_0x5bd0ec%(-0x1d7+-0x1139*0x1+0xde*0x16)?_0x14b613*(0x23a7*0x1+-0x32*-0x5+-0x2461)+_0x16dd45:_0x16dd45,_0x5bd0ec++%(-0x6da+0x1*0xf9e+0x460*-0x2))?_0x469532+=String['fromCharCode'](0x116*-0x1+0x2087+0x1*-0x1e72&_0x14b613>>(-(-0x913+-0x3f*-0x2b+-0x180)*_0x5bd0ec&-0x1abd+0xf*-0x2a+0x1d39)):0x119*0x9+0x1a6c+0x244d*-0x1){_0x16dd45=_0x489611['indexOf'](_0x16dd45);}for(let _0x131b3a=-0x2360+0x1923+-0x1*-0xa3d,_0x5af1e2=_0x469532['length'];_0x131b3a<_0x5af1e2;_0x131b3a++){_0x50f37e+='%'+('00'+_0x469532['charCodeAt'](_0x131b3a)['toString'](0x1a*0xd6+0x2a4*0xd+-0x2*0x1c00))['slice'](-(-0xc*0x14f+-0x21f2+0x31a8));}return decodeURIComponent(_0x50f37e);};_0x2fc3['PtKpoW']=_0x433e0d,_0x2fc3['wKiMfl']={},_0x2fc3['LgVifk']=!![];}const _0x5abd62=_0x63394c[0xcb0+0x1*-0x9ff+0x2b1*-0x1];_0x2fc3['PeDHER']!==_0x5abd62&&(_0x2fc3['wKiMfl']={},_0x2fc3['PeDHER']=_0x5abd62);const _0x342dd2=_0x2fc3['wKiMfl'][_0x50b544];return _0x342dd2===undefined?(_0x27d972=_0x2fc3['PtKpoW'](_0x27d972),_0x2fc3['wKiMfl'][_0x50b544]=_0x27d972):_0x27d972=_0x342dd2,_0x27d972;}function allowedModels(_0xc8e855,_0xf5a26){const _0x87c9aa=_0x1f8c85,_0x2deb7b=new Set(_0xc8e855[_0x87c9aa(0xd7)][_0x87c9aa(0x174)]);return _0xf5a26[_0x87c9aa(0x1e0)](_0x33023c=>_0x33023c[_0x87c9aa(0x13e)]&&_0x2deb7b[_0x87c9aa(0x1ba)](_0xc8e855[_0x87c9aa(0xd7)][_0x87c9aa(0x231)]===_0x87c9aa(0x17a)?_0x33023c[_0x87c9aa(0x271)]:_0x33023c['id']));}function selectModel(_0x12326a,_0x5b54ee,_0xc107d1){const _0x3fab42=_0x1f8c85,_0x3b19a1=allowedModels(_0x12326a,_0x5b54ee),_0x389a15=_0x3b19a1[_0x3fab42(0x107)](_0x402ffe=>_0x402ffe['id']===_0xc107d1);if(_0x389a15!==undefined)return _0x389a15;const _0x4bb3b7=_0x3b19a1[_0x3fab42(0x107)](_0x306f1c=>(_0x12326a[_0x3fab42(0xd7)][_0x3fab42(0x231)]===_0x3fab42(0x17a)?_0x306f1c[_0x3fab42(0x271)]:_0x306f1c['id'])===_0x12326a[_0x3fab42(0xd7)][_0x3fab42(0x18e)]);if(_0x4bb3b7!==undefined)return _0x4bb3b7;const _0x3806c3=_0x12326a[_0x3fab42(0xd7)][_0x3fab42(0x174)][_0x3fab42(0xf8)](_0x5a0f01=>_0x3b19a1[_0x3fab42(0x107)](_0x1df8a9=>(_0x12326a[_0x3fab42(0xd7)][_0x3fab42(0x231)]===_0x3fab42(0x17a)?_0x1df8a9[_0x3fab42(0x271)]:_0x1df8a9['id'])===_0x5a0f01))[_0x3fab42(0x107)](_0x441cbf=>_0x441cbf!==undefined);if(_0x3806c3===undefined)throw new Error(_0x3fab42(0xde));return _0x3806c3;}function publishedTemplateDraft(_0xfc0bb7,_0x1f4467){const _0x2bcc27=_0x1f8c85,_0x198ce1=conversationTemplateDraftSchema[_0x2bcc27(0x22b)](_0x1f4467);if(_0x198ce1[_0x2bcc27(0x1b2)]){const {allowedModels:_0x56e7bf,defaultModelId:_0x58ff57,..._0x3e09db}=_0x198ce1[_0x2bcc27(0x108)];return{'draft':_0x3e09db,'modelPolicy':{'identity':_0x2bcc27(0x17a),'allowedIds':_0x56e7bf[_0x2bcc27(0xf8)](_0x3a0f42=>_0x3a0f42[_0x2bcc27(0x271)]),'defaultId':_0x58ff57}};}if(_0xfc0bb7!==-0x1cda+-0x1c21+0x38fc||!record(_0x1f4467)||_0x2bcc27(0x279)in _0x1f4467||!Array[_0x2bcc27(0x10e)](_0x1f4467[_0x2bcc27(0xdf)]))throw new Error(_0x2bcc27(0x265));const _0x526322=_0x1f4467[_0x2bcc27(0xdf)],_0xeabaa4={..._0x1f4467};delete _0xeabaa4[_0x2bcc27(0xdf)];const _0x311428=conversationTemplateDraftSchema[_0x2bcc27(0x22b)]({..._0xeabaa4,'allowedModels':_0x526322[_0x2bcc27(0xf8)](_0x653e33=>({'modelId':_0x653e33,'name':_0x653e33}))});if(!_0x311428[_0x2bcc27(0x1b2)])throw new Error(_0x2bcc27(0x265));const {allowedModels:_0x54c98e,defaultModelId:_0x3e9786,..._0xfbf0cd}=_0x311428[_0x2bcc27(0x108)];return{'draft':_0xfbf0cd,'modelPolicy':{'identity':_0x2bcc27(0x1ca),'allowedIds':_0x54c98e[_0x2bcc27(0xf8)](_0x446b11=>_0x446b11[_0x2bcc27(0x271)]),'defaultId':_0x3e9786}};}function networkModels(_0x464f75,_0x18b2f9){const _0xc4a7d4=_0x1f8c85;if(_0x18b2f9!==_0xc4a7d4(0xfe))return _0x464f75;return _0x464f75[_0xc4a7d4(0xf8)](_0x39136e=>_0x39136e[_0xc4a7d4(0x214)]?{..._0x39136e,'hostedWebSearch':![]}:_0x39136e);}function publishedMcpServers(_0x348c5f){const _0x2fe4e8=_0x1f8c85;if(!Array[_0x2fe4e8(0x10e)](_0x348c5f))throw new Error(_0x2fe4e8(0x265));return _0x348c5f[_0x2fe4e8(0xf8)](_0x3604e2=>{const _0x81cdf3=_0x2fe4e8;if(!record(_0x3604e2))throw new Error(_0x81cdf3(0x265));const _0x4f6646=Object[_0x81cdf3(0x158)](_0x3604e2)[_0x81cdf3(0x24b)]()[_0x81cdf3(0x19f)](',');if(_0x4f6646!==_0x81cdf3(0x23f))throw new Error(_0x81cdf3(0x265));const _0x33afe6=mcpRuntimeDescriptorSchema[_0x81cdf3(0x12b)](_0x3604e2[_0x81cdf3(0x221)]),_0x108caa=mcpInstallationConfigurationSchema[_0x81cdf3(0x12b)](_0x3604e2[_0x81cdf3(0x294)]);if(typeof _0x3604e2['id']!==_0x81cdf3(0xdd)||typeof _0x3604e2[_0x81cdf3(0x1e4)]!==_0x81cdf3(0xdd)||typeof _0x3604e2[_0x81cdf3(0x1a4)]!==_0x81cdf3(0xdd)||typeof _0x3604e2[_0x81cdf3(0x242)]!==_0x81cdf3(0xdd)||_0x3604e2[_0x81cdf3(0x181)]!==_0x81cdf3(0xfa)&&_0x3604e2[_0x81cdf3(0x181)]!==_0x81cdf3(0x151)||_0x3604e2[_0x81cdf3(0x247)]!==_0x33afe6[_0x81cdf3(0x247)])throw new Error(_0x81cdf3(0x265));return{'id':_0x3604e2['id'],'serverName':_0x3604e2[_0x81cdf3(0x1e4)],'displayName':_0x3604e2[_0x81cdf3(0x1a4)],'version':_0x3604e2[_0x81cdf3(0x242)],'origin':_0x3604e2[_0x81cdf3(0x181)],'transport':_0x33afe6[_0x81cdf3(0x247)],'runtime':_0x33afe6,'configuration':_0x108caa};});}function publishedTemplateSnapshot(_0x3d1478){const _0x35451e=_0x1f8c85;if(_0x3d1478[_0x35451e(0x1f0)]===0x1*-0x1a26+-0xf4b+0x5*0x84a){const _0x27bf3c=publishedTemplateFiles(_0x3d1478[_0x35451e(0x216)]);return{'schemaVersion':0x1,'directories':legacyPublishedTemplateDirectories(_0x27bf3c),'entries':_0x27bf3c};}if(_0x3d1478[_0x35451e(0x1f0)]!==0x3*-0x2ef+0x1806+-0xf37||typeof _0x3d1478[_0x35451e(0x198)]!==_0x35451e(0xdd)||!Array[_0x35451e(0x10e)](_0x3d1478[_0x35451e(0x20e)])||!Array[_0x35451e(0x10e)](_0x3d1478[_0x35451e(0x14d)]))throw new Error(_0x35451e(0x265));validatePublishedSourceWorkspacePath(_0x3d1478[_0x35451e(0x198)]);const _0x58bcf9=_0x3d1478[_0x35451e(0x20e)][_0x35451e(0xf8)](safePublishedTemplateRelativePath);if(new Set(_0x58bcf9)[_0x35451e(0x1d7)]!==_0x58bcf9[_0x35451e(0x1ed)]||_0x58bcf9[_0x35451e(0x13b)](_0x35451e(0xd2))||_0x58bcf9[_0x35451e(0x13b)](_0x35451e(0x21c)))throw new Error(_0x35451e(0x265));const _0x36f09e=_0x3d1478[_0x35451e(0x14d)][_0x35451e(0xf8)](publishedTemplateEntry);if(new Set(_0x36f09e[_0x35451e(0xf8)](_0x6a5d0d=>_0x6a5d0d[_0x35451e(0x1c1)]))[_0x35451e(0x1d7)]!==_0x36f09e[_0x35451e(0x1ed)])throw new Error(_0x35451e(0x265));return{'schemaVersion':0x2,'sourceWorkspacePath':_0x3d1478[_0x35451e(0x198)],'directories':_0x58bcf9,'entries':_0x36f09e};}function publishedTemplateEntry(_0x362071){const _0x306efc=_0x1f8c85;if(!record(_0x362071))throw new Error(_0x306efc(0x265));if(_0x362071[_0x306efc(0xbc)]===_0x306efc(0x135))return publishedTemplateFile(_0x362071,!![]);if(_0x362071[_0x306efc(0xbc)]!==_0x306efc(0x1d1)||typeof _0x362071[_0x306efc(0x197)]!==_0x306efc(0xdd)||_0x362071[_0x306efc(0x197)][_0x306efc(0x1ed)]===0x26f1+-0x1*-0xcf7+0xb*-0x4b8||_0x362071[_0x306efc(0x197)][_0x306efc(0x13b)]('\x00')||_0x362071[_0x306efc(0x1de)]!==_0x306efc(0x1d6)&&_0x362071[_0x306efc(0x1de)]!==_0x306efc(0x206)||typeof _0x362071[_0x306efc(0x26b)]!==_0x306efc(0xdd))throw new Error(_0x306efc(0x265));const _0x7952f6=safePublishedTemplateRelativePath(_0x362071[_0x306efc(0x1c1)]),_0x38a47f=safePublishedTemplateSize(_0x362071[_0x306efc(0x1d7)]),_0x314057=_0x362071[_0x306efc(0x197)],_0x3a7e80=_0x362071[_0x306efc(0x1de)],_0x319029=_0x362071[_0x306efc(0x26b)];if(_0x38a47f!==Buffer[_0x306efc(0x267)](_0x314057))throw new Error(_0x306efc(0x265));if(_0x3a7e80===_0x306efc(0x1d6))safePublishedTemplateRelativePath(_0x319029);else{if(!isAbsolute(_0x319029)||!RUNTIME_LINK_ROOTS[_0x306efc(0x1b4)](_0x210df5=>_0x319029===_0x210df5||within(_0x210df5,_0x319029)))throw new Error(_0x306efc(0x265));}return{'kind':_0x306efc(0x1d1),'relativePath':_0x7952f6,'size':_0x38a47f,'linkTarget':_0x314057,'targetKind':_0x3a7e80,'resolvedTarget':_0x319029};}function publishedTemplateFiles(_0xe1a723){const _0x66cdbf=_0x1f8c85;if(!Array[_0x66cdbf(0x10e)](_0xe1a723))throw new Error(_0x66cdbf(0x265));const _0x1b1b39=new Set();return _0xe1a723[_0x66cdbf(0xf8)](_0x1e49e2=>{const _0x1c320d=_0x66cdbf,_0x4a1c4e=publishedTemplateFile(_0x1e49e2);if(_0x1b1b39[_0x1c320d(0x1ba)](_0x4a1c4e[_0x1c320d(0x1c1)]))throw new Error(_0x1c320d(0x265));return _0x1b1b39[_0x1c320d(0x182)](_0x4a1c4e[_0x1c320d(0x1c1)]),_0x4a1c4e;});}function publishedTemplateFile(_0x8f81b0,_0x1764a1=![]){const _0x5a80a9=_0x1f8c85;if(!record(_0x8f81b0)||_0x1764a1&&_0x8f81b0[_0x5a80a9(0xbc)]!==_0x5a80a9(0x135)||typeof _0x8f81b0[_0x5a80a9(0x1fe)]!==_0x5a80a9(0x223)||typeof _0x8f81b0[_0x5a80a9(0x1d5)]!==_0x5a80a9(0xdd)||!/^[a-f0-9]{64}$/u[_0x5a80a9(0xb9)](_0x8f81b0[_0x5a80a9(0x1d5)]))throw new Error(_0x5a80a9(0x265));return{'kind':_0x5a80a9(0x135),'relativePath':safePublishedTemplateRelativePath(_0x8f81b0[_0x5a80a9(0x1c1)]),'size':safePublishedTemplateSize(_0x8f81b0[_0x5a80a9(0x1d7)]),'executable':_0x8f81b0[_0x5a80a9(0x1fe)],'sha256':_0x8f81b0[_0x5a80a9(0x1d5)]};}function safePublishedTemplateRelativePath(_0x23545e){const _0x2ada49=_0x1f8c85;if(typeof _0x23545e!==_0x2ada49(0xdd)||_0x23545e[_0x2ada49(0x1ed)]===0x1d54+-0xfdc+0xd78*-0x1||_0x23545e[_0x2ada49(0x249)]('/')||_0x23545e[_0x2ada49(0x13b)]('\x5c')||_0x23545e[_0x2ada49(0x1e8)]('/')[_0x2ada49(0x1b4)](_0x3d4042=>_0x3d4042[_0x2ada49(0x1ed)]===-0x5c+-0x5*0x5+0x75||_0x3d4042==='.'||_0x3d4042==='..'))throw new Error(_0x2ada49(0x265));return _0x23545e;}function safePublishedTemplateSize(_0x30ccaa){const _0x5a27ef=_0x1f8c85;if(!Number[_0x5a27ef(0x1a6)](_0x30ccaa)||_0x30ccaa<-0x1816+-0x2644+0x2*0x1f2d)throw new Error(_0x5a27ef(0x265));return _0x30ccaa;}function _0x2b1b(){const _0x13e859=['zxHLy3v0ywjSzq','CNvU','zw4Tvvm','AgLZDg9YEvzLCNnPB25Z','C2f2zuf1Dg9TyxrPy1rPDgXL','zMLSzq','Aw5V','C3rHDa','uLvoveLnrq','C2vJCMv0tMfTzq','CMvZCg9UC2vZvhjHBNnWB3j0','yM91BMrHCNK','surmrq','DxbSB2fKCW','DgL0Bgu','CMvWBgfJzq','zgLYzwn0B3jPzxm','DhjPBq','y3jLyxrLu2vZC2LVBG','ChvIBgLZAeHVC3rLzev2zw50','se9tvevex0nptLzfuLnbveLptL9trvntsu9ox0LovKfmsuq','ihrVic93B3jRC3bHy2uVB3v0Chv0ihDOzw4GyxzHAwXHyMXLlIbjzIbPDcbPCYbTAxnZAw5NlcbYzxbVCNqGDgHHDcbMywn0oYbYzwDLBMvYyxrLig9UBhKGD2HLBIbYzxf1zxn0zwqGB3iGyxv0Ag9YAxPLzcbIEsb0AguGDxnLCI4','Ag9ZDgvKv2vIu2vHCMnO','l3rTCa','zMLSzxm','BwnWq29UzMLNsgfZAa','yMfZzty0','igfZigeGy29TCgf0AwjPBgL0EsbHBgLHCZSGAxqGAxmGDgHLihnHBwuGAw1TDxrHyMXLihnUyxbZAg90lcbUB3qGDgHLigXPDMuGC291CMnLifDVCMTZCgfJzs4G','DxbKyxrLq29UzMLNDxjHDgLVBG','q1vtve9n','B3v0Chv0','CNvUDgLTzvnJB3bLswq','rM9SBg93ihnHDMvKignVBNzLCNnHDgLVBIbPBNn0CNvJDgLVBNmGC3vIAMvJDcb0BYb0AguGsg9ZDcDZihnLy3vYAxr5igjVDw5KyxjPzxmSihrOzsbWDwjSAxnOzwqGDgvTCgXHDguGAw5ZDhj1y3rPB25ZlcbHBMqGDgHLihvZzxiNCYbJDxjYzw50igv4CgXPy2L0ihjLCxvLC3qU','CM9SBgjHy2TdB252zxjZyxrPB24','l3vZCG','CNvUDgLTzq','y29UDMvYC2f0Aw9Uswq','yM9VBgvHBG','AxngAw5PDgu','DgHLBG','mZK3mJK5D3fnt2z5','u1vdq0vfreve','Cgf0Ae1VDw50CW','se9tvevex0nptLzfuLnbveLptL9st0XmqKfds19uqvjhrvrFsu5wquXjra','vvnfuG','C2fMzvbHCNnL','ChvIBgLZAeHVC3rLzfnUyxbZAg90','CMvTB3zLq29UDMvYC2f0Aw9Uv2f0y2HmzwfZzxm','se9tvevex0nptLzfuLnbveLptL9bvfrbq0Hnru5ux0LovKfmsuq','ve9px0XbuKDf','BwfUAwzLC3qUANnVBG','AwrLBNrPDhK','yxjYyxK','y29TCgXLDgLVBG','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5ZBMfWC2HVDa','Ag9TzurPCMvJDg9YEq','CNvUoG','BM9KzufWCfzLCNnPB24','uKvbrfK','CMvQzwn0','odK1C2DPvgjA','qunusvzf','se9tvevex0nptLzfuLnbveLptL9vueXpqurFtK9ux0zpvu5e','BMfTzq','zgLZywjSzvbYzxbHCMvK','y29UzMLNDxjHDgLVBIXKAxnWBgf5tMfTzsXPzcXVCMLNAw4SCNvUDgLTzsXZzxj2zxjoyw1LlhrYyw5ZCg9YDcX2zxjZAw9U','Aw5WDxrdyxbHyMLSAxrPzxm','y2fUy2vSvxbSB2fK','DMvYC2LVBG','ChjLCgfYzuzVCKrPC2fIBgu','DxnLCL9TzxnZywDL','C3rHCNrLzef0','q0foq0vmteve','DhjHBNnWB3j0','BwLU','C3rHCNrZv2L0Aa','C3rHCNrsDw4','C29YDa','sfruua','q09orKXjq1q','CMvNAxn0zxjgAwXL','Aw5PDgLHBgL6zvDHDgnOtgvHC2u','rKfjteve','uMvHzcbPDhmGzxHPC3rPBMCGy29UDgvUDhmGzMLYC3qGyw5KihbYzxnLCNzLihvUCMvSyxrLzcbPBNn0CNvJDgLVBNmUierVig5VDcbWzxjZAxn0igeGChjLzMvYzw5JzsbTzxjLBhKGyMvJyxvZzsbPDcbHChbLyxjZigLUihrOzsbJDxjYzw50ihjLCxvLC3qGDw5SzxnZihrOzsb1C2vYigfZA3mGEw91ihrVihjLBwvTyMvYigL0lG','CMvJB25JAwXLrMLSzxm','tMv3ignVBNzLCNnHDgLVBG','Bwf4t3v0Chv0vg9Rzw5Z','nLvMwfnkrG','Cgf0AhngB3jnyw5PzMvZDa','B3bLCMf0Aw9UCW','vgHPCYbPCYbHie5VzguTAg9ZDgvKignVBNzLCNnHDgLVBI4GvgHLieHVC3qTzgvJBgfYzwqGBw91BNrZigfYzsb0AguGy29TCgXLDguGzMLSzsbIB3vUzgfYEs4','l3DVCMTZCgfJzs9PBMjVEa','y29UDMvYC2f0Aw9Uu3rVCMfNzuTLEq','Bwf4qNL0zxm','ChjLDMLVDxnwzxjZAw9Uswq','zMLUze1LC3nHz2u','u1resu8','C3rVCMu','B3DUCW','DxbSB2fKC0j5uMvXDwvZDa','zMLUywXSEq','DxbSB2fKu3rHDhvZ','Aw50zxjYDxb0','q09ovKvsu0fusu9ox1rftvbmqvrfx1zfuLnjt05Fq09suLvqveve','BM90AwzPy2f0Aw9U','yNL0zuXLBMD0Aa','DgvTCgXHDgvjza','D29YA2jLBMnOu2vXDwvUy2u','B3v0Chv0rgLYzwn0B3j5','CMvZB2X2zwruyxjNzxq','y3jLyxrLvxbSB2fK','v2HLBIbYzxbVCNrPBMCGyw4GB3v0Chv0igzPBguGDg8GDgHLihvZzxiSihvZzsbHie1HCMTKB3DUigXPBMSGAw4GDgHLigv4ywn0igzVCM0Gw3jLBgf0AxzLl3bHDgHDkc93B3jRC3bHy2uVB3v0Chv0l3jLBgf0AxzLl3bHDgGPihnVihrOzsb1C2vYignHBIbVCgvUigL0CYbJB250CM9SBgvKihbYzxzPzxCGB3iGzg93BMXVywqU','se9tvevex0nptLzfuLnbveLptG','Dw5RBM93BG','tg9JywWGChjVy2vZC2vZlcboB2rLlwXVy2fSifDLyIbgzxrJAcWGyxzHAwXHyMXLifDLyIbtzwfYy2GSig1VzgvSlwHVC3rLzcb3zwiSigfUzcbWDwjSAxnOzwqGCMvTB3rLieHuvfaGtunqig1HEsbHy2nLC3mGBMv0D29YA3mGCMvHy2HHyMXLigzYB20GDgHPCYboB2rLlG','Bw9KzwXjza','Bw9KzwXZ','CMvHzezPBgu','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jfq09oq0Lmrv9gquLmruq','zMLUAxnOtwvZC2fNzq','DgfYz2v0ugf0Aa','uKvuquLoruq','C2vZC2LVBLDHDgnOu2XVDhm','ywXSB3DLze1VzgvSCW','CgvYBwfUzw50rgvSzxrLq29UDMvYC2f0Aw9U','CMvZCg9UC2vZuhjLDMLVDxnszxnWB25ZzuLK','uLvox1rfuK1jtKfm','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jbtKDfx0LovKfmsuq','CxvVDgfZ','qxr0ywnOBwvUDhm6cG','Bg9HzfrLBxbSyxrLvMvYC2LVBG','D3jPDgvvCgXVywrdAhvUAW','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5LDMvUDa','vgHLieHVC3qGzw5MB3jJzxmGDgHPCYbMAwXLigjVDw5Kyxj5lcbHBMqGBg9JywWGChjVy2vZC2vZihj1BIbPBNnPzguGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','y3jLyxrLq29UDMvYC2f0Aw9U','D2f0y2HmzwfZzxm','l3j1BG','DMfSDwvZ','su5urvjsvvburuq','Dg90ywXFyNL0zxm','yxzHAwXHyMXL','y29TCgXLDgvKqxq','uLvotKLorW','CMvTB3zLv2f0y2HmzwfZzq','C2f2zu1LC3nHz2vby2nLChrHBMnL','l3nIAw4','BxrPBwvnCW','zMLUzenVBNzLCNnHDgLVBKj5q2XPzw50uMvXDwvZDa','v2HLBIb0AguGDxnLCIbLEhbSAwnPDgX5igfZA3mGEw91ihrVihjLBwvTyMvYigeGCMvXDwLYzw1LBNqSihbYzwzLCMvUy2uSignVBNzLBNrPB24SihDVCMTMBg93ihj1BguSig9Yig90AgvYigD1AwrHBMnLigzVCIbSyxrLCIb3B3jRigLUihrOAxmGy29UDMvYC2f0Aw9UlcbJCMvHDguGB3iGDxbKyxrLic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KlG','ChvIBgLZAefJDgL2Axr5','y29UzMLNDxjHDgLVBG','CMvSzwfZzq','D3jPDgu','DgvZDa','BgfZDefJDgL2Axr5qxq','zgLZCg9Zzq','A2LUza','qxqGDgHLihn0yxj0ig9MigvHy2GGCNvUlcbYzwfKic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KigLMigL0igv4Axn0CY4GsxqGC3rVCMvZignVBNzLCNnHDgLVBI1ZCgvJAwzPyYbYzxf1AxjLBwvUDhmGzM9YigXHDgvYihj1BNmGyw5KigLZig5VDcbWyxj0ig9MihrOzsbWDwjSAxnOzwqGDgvTCgXHDguU','t19sre9otfK','BgLTAxq','B3DUzxjlzxK','zMLSzvbHDgG','C3rHCNrnzxnZywDL','C3LUyW','odiXmde2oeXbDMjquq','l2HVBwuVBwfY','ChjLCgfYzunVBNzLCNnHDgLVBLrLBxbVCMfYEurPCMvJDg9YEq','zw5KC1DPDgG','reLsrunut1jzaa','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGyw4GAw1TDxrHyMXLigfKBwLUAxn0CMf0B3iTBwfPBNrHAw5Lzcb0zw1WBgf0zsbZBMfWC2HVDc4Gq2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguGBxvZDcbIzsbTywrLigLUigL0CYbZB3vYy2uGv29YA3nWywnLigfUzcbWDwjSAxnOzwqGyxmGysbUzxCGDMvYC2LVBI4','ywn0AxzLuNvUCW','vgHLignVBNzLCNnHDgLVBIb0zw1WBgf0zsb1CgDYywrLigzHAwXLzc4','tMv0D29YAYbHy2nLC3mGAxmGzgLZywjSzwqUieXVy2fSihbYB2nLC3nLCYWGv2vIifnLyxjJAcWGv2vIiezLDgnOlcbTB2rLBc1OB3n0zwqGD2vIlcbHBMqGCMvTB3rLieHuvfaGtunqignHBM5VDcb1C2uGDgHLig5LDhDVCMSU','t19ot0zpteXpvW','y29UDgvUDa','ChjLCgfYzunVBNzLCNnHDgLVBKvUDMLYB25Tzw50','se9tvevex0nptLzfuLnbveLptL9vueXpqurFt0zgu0vux0LovKfmsuq','u3rVCMuGzgLZCg9ZywjSzsbPBNrLCM1LzgLHDguGD29YAYbPBIaVDg1WlIbjDcbPCYbYzxvZzwqGywnYB3nZihj1BNmGAw4GDgHPCYbJB252zxjZyxrPB24Sigj1Dcb0AguGsg9ZDcbTyxKGy2XLyxiGAxqGywnJB3jKAw5NihrVihrOzsbZExn0zw0GDgvTCg9Yyxj5lwrPCMvJDg9YEsbSAwzLy3LJBguU','Aw5IB3G','ywn0AxzPDgLLCW','CNvUu2v0DgXLBwvUDhm','CgvUzgLUz0nYzwf0zxm','zMLUzeLUzgv4','Bw9KzwXqB2XPy3K','ChvZAa','B2jQzwn0','y2XLyw51CeXVy2TZ','ChjLzMXPz2H0vxbSB2fK','BMXPBMS','C3rYAw5N','se9tvevex0nptLzfuLnbveLptL9nt0rftf9ot1rFqvzbsuXbqKXf','ywXSB3DLze1VzgvSswrZ','CNvUswq','BNvTyMvY','se9tvevex0nptLzfuLnbveLptL9gsuXfx0nptKzmsunu','y29Kzq','C2vJCMv0rw52AxjVBM1LBNq','igfUzcbJB3b5ihrOzsbLEgLZDgLUzYbMAwXLigzYB20G','zgvSzxrLrMLSzq','Bwf4','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','y29UDgvUDeHHC2G','DxbKyxrL','Bgf0zxn0qxzHAwXHyMXLvgvTCgXHDgvwzxjZAw9Uswq','Dw53yxrJAa','DgvTCgXHDgu','lNvWBg9Hza','y3vYCMvUDfzLCNnPB25jza','y3jLyxrLzef0','se9tvevex0nptLzfuLnbveLptL9rvu9uqv9fwenfrurfra','DxrMoa','CMvZB2X2zq','DxnLzej5DgvZ','y2fUy2vS','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu0LArv9jtLzbteLe','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGywXZBYbTB3vUDgvKihjLywqTB25SEsbHDca','BwfW','v2HLBIb0AguGDxnLCIbHC2TZihrVihbSywnLigeGChjLDMLVDxnSEsbNzw5LCMf0zwqGAw1Hz2uGAw4GB3v0Chv0lcbPBNnWzwn0ia','tK9erq','DxbNCMfKzq','ywXSB2m','yMvMB3jL','tK9orq','se9tvevex0nptLzfuLnbveLptL9svu5Fqunusvzf','BM93','C2vZC2LVBKHHC2G','AgLZDg9YEq','BMv4DfDVCMTIzw5JAev2zw50','CMvXDwLYzvDYAxrHyMXLq29UDMvYC2f0Aw9U','DgvTCgXHDgvezwXLDgvK','zgvMyxvSDfjLyxnVBMLUz0vMzM9YDa','zMLUza','zgf0yq','ywXSu2v0DgXLza','ChvIBgLZAfDVCMTIzw5JAev2zw50','z2v0','zhjHzNq','BwnWx2nVBMzPz19OyxnO','AxnbCNjHEq','DxjS','ywr2yw5JzuXHC3rby3rPDML0Eq','CM9SBgjHy2S','u1rbuLrjtKC','lsaVD29YA3nWywnLl2LUyM94lW','Cgf0AhngB3jdB252zxjZyxrPB24','u0vmrunuigLKlhrLBxbSyxrLx2LKlhn0yxr1CYXZDg9YywDLx2TLEsXTyw5PzMvZDcXJB250zw50x2HHC2GSBwfUAwzLC3rFAgfZAcXTy3bFy29UzMLNx2HHC2GScIaGicaGicaGicaGicaGicbMAwXLx2nVDw50lhrVDgfSx2j5DgvZlgHVC3rFCg9SAwn5x3zLCNnPB24kicaGicaGicaGrLjptsbJB252zxjZyxrPB25FDgvTCgXHDgvFDMvYC2LVBNmGv0HfuKuGAwq9pYbbtKqGDgvTCgXHDgvFAwq9pW','AxrLBxm','AxngAwXL','l2XPyJy0','CMvXDwLYzuzPBgu','DgvTCg9Yyxj5ugf0Aa','zMLSzurLBgv0zxm','mtyWmJK5nuvLANzNsq','CMvSzwfZzvnLC3nPB24','uLvox0LnquDfx05pvf9gt1vora','DxbKyxrLzef0','se9tvevex0nptLzfuLnbveLptL9vueXpqurFsu5dt01qtevurq','BwfUAwzLC3rFAgfZAa','DgLTzxi','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','mJa0ntqZnKrRq2fItq','igfUzca','y29UDgvUDf9OyxnO','CgLUBMvKqxq','tufyx1nbrKvFsu5uruDfuG','Dg9tDhjPBMC','CgfYC2u','DxnLCLn0B3jHz2vlzxK','qvzbsuXbqKXf','y2XPzw50uMvXDwvZDeLK','CgvUzgLUz01LC3nHz2vZ','AxntEw1IB2XPy0XPBMS','ywn0AxzPDhK','CMvXDwLYzuf0DgfJAg1LBNq','q0foq0vmteLorW','vvbmt0fesu5h','rKLmrq','DxbSB2fKswq','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','y29UDgv4DfDPBMrVD1rVA2vUCW','DgL0BgvtB3vYy2u','zMLSzv9JB3vUDa','Aw5JBhvKzxm','zgLNzxn0','Dhj1BMm','zw5HyMXLza','rg8GBM90igrLC2nYAwjLigvKAxrZihvUzgvYic93B3jRC3bHy2uVAw5IB3GGB3iGl3DVCMTZCgfJzs9VDxrWDxqGyxmGy2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguU','y3jLyxrL','l3bYB2m','y2f0y2G','Agv4','zgf0ywjHC2u','zMLSzuLK','Ag9ZDf9WB2XPy3LFDMvYC2LVBG','BM9KzuLK','revmrvrfra','ChjVBxb0','Cgf0Ahm','B3v0Chv0q2fWywjPBgL0AwvZ','ChjVy2vZC0v4zwn1Dg9Y','zw50CMLLCW','DxnLCKLK','zMLSzvbYB2PLy3rPB25jza','y29UDMvYC2f0Aw9UrgLYzwn0B3j5','v09ss1nqqunf','igrPCMvJDg9YEs4','vu5srvnuuKLdveve','zgv2','zxHWzwn0zwrjBNrLCNj1ChrPB25Z','C3rHDhvZ','yxjNCW','A2v5CW','y29UDMvYC2f0Aw9U','CMvXDwLYzunVBNzLCNnHDgLVBG','DgL0BgvdAgfUz2vK','AgvHzgvYCW','uvvpvefFrvHdruveruq','BwvZC2fNzq','yNL0zxnszwfK','y2fUy2vSq29UDMvYC2f0Aw9UvxbSB2fKCW','C2XPy2u','se9tvevex0nptLzfuLnbveLptL9gsuXfx0LovKfmsuq','D2f0y2HmzwfZzvrPBwvY','ywn0AxzLvMvYC2LVBKLK','ru5pru5u','DhvYBKLK','zgvSzxrL','BgLZDezPBgvZ','zgvZy3jPChrPB24','C3rVCMfNzv9RzxK','CMvHC29UAw5NrwzMB3j0CW','AxneAxjLy3rVCNK','l3DVCMTZCgfJzs9VDxrWDxq','yxnZzxj0q2fUq3jLyxrL','C2XVDfrVA2vU','DgvTCgXHDgvoyw1L','DMvYC2LVBKLK','B2zMC2v0','BwnWu2vYDMvYCW','ywXSB3DLzeLKCW','uMvHzcb1C2vYihvWBg9HzhmGzNjVBsaVD29YA3nWywnLl2LUyM94lG','BMv0D29YA01Vzgu','zw52AxjVBM1LBNq','y29TBwfUza','ntCXmtDzwK1uDfC','vvbtvfjfqu1Ftu9eruXFsuq','y29TCgXLDgvvCgXVywq','DgvTCgXHDgveAxjLy3rVCNK','ChvIBgLZAfvWz3jHzgvgywLSDxjL','ChjVDg9JB2W','CMvHza','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','B3jPz2LU','ywrK','tufsx0fhru5ux1jpteXcqunlx1rbuKDfvf9jtLzbteLe','se9tvevex0nptLzfuLnbveLptL9uru1qtefurv9vtKfwquLmqujmrq','ugXHy2uGzMLUywWGzgvSAxzLCMfIBgvZigLUigfWChjVChjPyxrLihbHDgHZihvUzgvYic93B3jRC3bHy2uVB3v0Chv0ihnVihrOzxKGyMvJB21LihvZzxiTDMLZAwjSzsbVDxrWDxrZlG','BM9KzuDLBMvYyxrPB24','Aw1Hz2vjBMrLEa','zxHWAxjLC0f0','sg9ZDgvKignVBNzLCNnHDgLVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','l3DVCMTZCgfJzq','q09ovKvsu0fusu9ox1rftvbmqvrfx01duf9jtLzbteLe','Bwf4u3rVCMfNzuj5DgvZ','C3vTBwfYEq','zgvMyxvSDeLK','r2vUzxjHDgvKigLTywDLCYbMCM9TihrOAxmGy29UDMvYC2f0Aw9UihjLBwfPBIbHDMfPBgfIBguGywnYB3nZigv4zwn1DgLVBNmGAw4GDgHLihjLywqTB25SEsa','C3rYAw5NAwz5','D2fPDezVCLbLBMrPBMDnzxnZywDLu3rHCNrZ','se9tvevex0nptLzfuLnbveLptL9vueDsqurfx0zbsuXfra','DxbKyxrLq29UDMvYC2f0Aw9U','DxbSB2fKuhjLzMXPz2H0u3rHDhvZ','ntq5ndG4n0rnsMzwuW','Ag9ZDfbVBgLJEvzLCNnPB24','BgLUA1rHCMDLDa','C291CMnLv29YA3nWywnLugf0Aa','Bg9JywXLq29TCgfYzq','CgLUBMvK','zMXHDe1HCa','l2jPBG','CgvUzgLUz0v2zw50CW','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','AM9PBG','CMvHzhK','y2f0zwDVCNK','igfYzsbHBgLHC2vZig9MihrOzsbZyw1LihDYAxrHyMXLig92zxjSyxLZlG','vvbmt0fe','zgLZCgXHEu5HBwu','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGCM9VDcbPCYbYzwfKlw9UBhKUifDPDgHPBIaVD29YA3nWywnLlcbVBMX5ic93B3jRC3bHy2uVAw5IB3GGyw5Kic93B3jRC3bHy2uVB3v0Chv0igfYzsb3CML0ywjSzs4','AxntywzLsw50zwDLCG','se9tvevex0nptLzfuLnbveLptL9tvefurv9jtLzbteLe','C2vZC2LVBKLK','Bwf4vxbSB2fKqNL0zxm','C3vIyxjYyxK','ChvIBgLZAfrLCM1PBMfStM90AwzPy2f0Aw9U','C25HChnOB3q','zgf0yujHC2u2na','y2XVC2u','CxvVDge','D2f0y2GUzMfPBgvK','zw1PDfDHDgnOtgvHC2vfDMvUDa','C3vJy2vZCW','rvHfq1vusu9o','C29Tzq','l2rLDG','DgfYz2v0vMvYC2LVBKLK','D29YA2jLBMnOq29UBMvJDgLVBKLK','BwLTzvr5Cgu','mJy0uNrqwu95','AgfZ','q09nueXfveve','y3vYC29Y','BgLZDa','y2XPzw50twvZC2fNzuLK','se9tvevex0nptLzfuLnbveLptL9xqvrdsf9gquLmruq','AxndB252zxjZyxrPB25jBLvZzq','CMvSyxrPDMvqyxrO','CMvHzeLTywDL','B3b0Aw9UCW','Bw9Kzq','AgfZtM9Urw1WDhLvC2vYtwvZC2fNzq','D2f0y2Hjza','BwfUAwzLC3q','te9tva','AgLZDg9YEu11Dgf0Aw9UCW','q09orKLhvvjbveLptL9jra','y3jLyxrLtwvZC2fNzq','DxbSB2fKC0rPCMvJDg9YEq','CMv0ywLUq29UDMvYC2f0Aw9UvgvTCgXHDgu','CMvXDwLYzvvWBg9Hza','zMLUAxnOuNvU','D2f0y2G','u1LnteLosW','CMv3Aw5K','C25HChnOB3rtzxf1zw5Jzq','sg9ZDgvKignVBNzLCNnHDgLVBIbMAwXLihbYB2PLy3rPB24GzMfPBgvKlG','C2HHmJu2','u05bufnit1q','C2L6zq','u0vmrunuigLKiezst00Gy29UDMvYC2f0Aw9Ux3rLBxbSyxrLx3zLCNnPB25ZcIaGicaGicaGifDirvjfihrLBxbSyxrLx2LKpt8Gqu5eihn0yxr1CZ0NqvzbsuXbqKXfjWOGicaGicaGicbpuKrfuIbcwsb2zxjZAw9Ux251BwjLCIbervndlhb1yMXPC2HLzf9HDcbervndlgLKierfu0mkicaGicaGicaGteLnsvqGmq','l3j1BNrPBwu','CMvUzxC','DxbKyxrLtwv0ywrHDge','C2v0','y3rPBwvnCW','DgfYz2v0s2LUza','ywnJzxb0zwrxyxrJAa','zMLSDgvY','yxbWBhLbDxrVBwf0AwnuAxrSzq','se9tvevex0nptLzfuLnbveLptL9ot1rFqvvuse9ssvPfra','BgLZDenVBNzLCNnHDgLVBNm','C2vYDMvYtMfTzq','rwfJAcbUzxCGC2fUzgjVEcbWCM9JzxnZigHHCYbHihrLBxbVCMfYEsbit01figf0ic9OB21Ll21HCIWGyxbHCNqGzNjVBsbLEhbSAwnPDgX5ig1VDw50zwqGzgLYzwn0B3jPzxmUierVig5VDcbYzwX5ig9UieHptuuGzMLSzxmGB3iGC2HLBgWGC3rHDguGCgvYC2LZDgLUzYbIzxr3zwvUihrVB2WGzxHLy3v0Aw9UCY4GvxnLic90BxaGzM9YihjLDxnHyMXLigLUDgvYBwvKAwf0zsbMAwXLCYbHBMqGC2v0ihjLCxvPCMvKigvUDMLYB25Tzw50ihzHCMLHyMXLCYbPBIbLywnOignVBw1HBMqU','DgvTCgXHDgvwzxjZAw9UrgLYzwn0B3j5','Dw5Yzwy','C3bSAxq','CMvHzfnUyxbZAg90','revgqvvmva','zNjVBq','CMf3','BgvUz3rO','ChjVy2vZC0v4zwn1Dg9YrMfJDg9YEq','yxjNDw1LBNrZ','C2nOzw1HvMvYC2LVBG','ChjLCgfYzq','zw1PDfDVCMTIzw5JAev2zw50','ywXS','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu1rbvevFsu5wquXjra','zw1PDfDHDgnOrxzLBNq','ChvIBgLZAfj1BNrPBwvfDMvUDa','yxr0ywnOBwvUDeLKCW','zNvSBc1Hy2nLC3m','l2XPyG','yMfZzvvYBa','CMvKDwnL','CMvJzwL2zwrcExrLCW','DgvTCg9Yyxj5uM9VDerPCMvJDg9YEq'];_0x2b1b=function(){return _0x13e859;};return _0x2b1b();}function legacyPublishedTemplateDirectories(_0x4997fa){const _0x21c5fe=_0x1f8c85,_0x937ee4=new Set();for(const _0x22eef9 of _0x4997fa){const _0xc086b7=_0x22eef9[_0x21c5fe(0x1c1)][_0x21c5fe(0x1e8)]('/');for(let _0x285a15=0x4c3+0x1cf+0x1*-0x691;_0x285a15<_0xc086b7[_0x21c5fe(0x1ed)];_0x285a15+=0xff*0x11+-0x6aa*0x4+0x9ba)_0x937ee4[_0x21c5fe(0x182)](_0xc086b7[_0x21c5fe(0x161)](-0x17c2*-0x1+-0x1f71+0x1*0x7af,_0x285a15)[_0x21c5fe(0x19f)]('/'));}return[..._0x937ee4][_0x21c5fe(0x24b)]((_0x19d570,_0x15cc65)=>_0x19d570[_0x21c5fe(0x199)](_0x15cc65,_0x21c5fe(0x200)));}function publishedTemplateContentHash(_0x521394,_0x331e63,_0x1ab53a){const _0x3d2a58=_0x1f8c85,_0x205e9e=_0x1ab53a===0x53*0x24+-0x1e80+-0x1*-0x12d5?_0x331e63[_0x3d2a58(0xf8)](_0x15f383=>{const _0x19fe10=_0x3d2a58;if(_0x15f383[_0x19fe10(0xbc)]!==_0x19fe10(0x135))throw new Error(_0x19fe10(0x265));return _0x15f383[_0x19fe10(0x1c1)]+'\x00'+_0x15f383[_0x19fe10(0x1d7)]+'\x00'+_0x15f383[_0x19fe10(0x1d5)];})[_0x3d2a58(0x19f)]('\x0a'):[..._0x521394[_0x3d2a58(0xf8)](_0x516bfb=>_0x3d2a58(0xc8)+_0x516bfb),..._0x331e63[_0x3d2a58(0xf8)](_0x34c2b5=>_0x34c2b5[_0x3d2a58(0xbc)]===_0x3d2a58(0x135)?_0x34c2b5[_0x3d2a58(0xbc)]+'\x00'+_0x34c2b5[_0x3d2a58(0x1c1)]+'\x00'+_0x34c2b5[_0x3d2a58(0x1d7)]+'\x00'+(_0x34c2b5[_0x3d2a58(0x1fe)]?-0x1b95+-0x1e2*-0xd+0x18e*0x2:-0x1b67+-0x2380+-0x1*-0x3ee7)+'\x00'+_0x34c2b5[_0x3d2a58(0x1d5)]:_0x34c2b5[_0x3d2a58(0xbc)]+'\x00'+_0x34c2b5[_0x3d2a58(0x1c1)]+'\x00'+_0x34c2b5[_0x3d2a58(0x1d7)]+'\x00'+_0x34c2b5[_0x3d2a58(0x197)]+'\x00'+_0x34c2b5[_0x3d2a58(0x1de)]+'\x00'+_0x34c2b5[_0x3d2a58(0x26b)])][_0x3d2a58(0x19f)]('\x0a');return createHash(_0x3d2a58(0x1d5))[_0x3d2a58(0xea)](_0x205e9e)[_0x3d2a58(0x13c)](_0x3d2a58(0x143));}function validatePublishedSourceWorkspacePath(_0x5d19a2){const _0x524158=_0x1f8c85;if(!isAbsolute(_0x5d19a2)||resolve(_0x5d19a2)!==_0x5d19a2||_0x5d19a2==='/'||RESERVED_SANDBOX_ROOTS[_0x524158(0x1b4)](_0x3ed93e=>_0x5d19a2===_0x3ed93e||within(_0x3ed93e,_0x5d19a2)||within(_0x5d19a2,_0x3ed93e)))throw new Error(_0x524158(0x265));}function within(_0x3f6ef2,_0x465a2d){const _0x284141=_0x1f8c85,_0x273917=relative(_0x3f6ef2,_0x465a2d);return _0x273917[_0x284141(0x1ed)]>0xa62+0x90*-0xe+-0x282&&_0x273917!=='..'&&!_0x273917[_0x284141(0x249)]('..'+sep);}function resolveMcpServers(_0x33645e,_0x4064cc){const _0x1d8791=_0x1f8c85,_0x22ba8f=_0x1ddcd5=>{const _0x1c75a9=_0x2fc3,_0x4e93ce={};for(const [_0x5381b8,_0x446893]of Object[_0x1c75a9(0x14d)](_0x1ddcd5??{})){const _0x4cd584=_0x4064cc[_0x446893[_0x1c75a9(0x207)]];if(_0x4cd584===undefined)throw new Error(_0x1c75a9(0x18b));_0x4e93ce[_0x5381b8]=_0x4cd584;}return _0x4e93ce;};return _0x33645e[_0x1d8791(0x173)][_0x1d8791(0x19b)](_0x1bebd7=>{const _0x3a5b68=_0x1d8791;if(_0x1bebd7[_0x3a5b68(0x221)][_0x3a5b68(0x247)]===_0x3a5b68(0x24c)){if(_0x33645e[_0x3a5b68(0x10c)][_0x3a5b68(0x176)]!==_0x3a5b68(0x153))return[];return[{'name':_0x1bebd7[_0x3a5b68(0x1e4)],'lifecycle':_0x3a5b68(0x1b3),'transport':_0x3a5b68(0x24c),'url':_0x1bebd7[_0x3a5b68(0x221)][_0x3a5b68(0x10f)],'headers':{..._0x22ba8f(_0x1bebd7[_0x3a5b68(0x221)][_0x3a5b68(0x15c)]),..._0x22ba8f(_0x1bebd7[_0x3a5b68(0x294)][_0x3a5b68(0x15c)])}}];}return[{'name':_0x1bebd7[_0x3a5b68(0x1e4)],'lifecycle':_0x3a5b68(0x1b3),'transport':_0x3a5b68(0x25e),'command':_0x1bebd7[_0x3a5b68(0x221)][_0x3a5b68(0x178)],'args':[..._0x1bebd7[_0x3a5b68(0x221)][_0x3a5b68(0x157)],..._0x1bebd7[_0x3a5b68(0x294)][_0x3a5b68(0x1ef)]??[]],'environment':{..._0x22ba8f(_0x1bebd7[_0x3a5b68(0x221)][_0x3a5b68(0x177)]),..._0x22ba8f(_0x1bebd7[_0x3a5b68(0x294)][_0x3a5b68(0x177)])}}];});}function hostedConversationSummary(_0x1e7d13,_0xc63727){const _0x500202=_0x1f8c85;return hostedConversationSummarySchema[_0x500202(0x12b)]({'id':_0x1e7d13['id'],'nodeId':_0x1e7d13[_0x500202(0x147)],'sessionId':_0x1e7d13[_0x500202(0x1a8)],'templateId':_0x1e7d13[_0x500202(0x268)],'templateName':_0x1e7d13[_0x500202(0x170)],'activeVersionId':_0x1e7d13[_0x500202(0x164)],'title':_0x1e7d13[_0x500202(0x20c)],'titleSource':_0x1e7d13[_0x500202(0x139)],'pinnedAt':_0x1e7d13[_0x500202(0x128)],'status':_0x1e7d13[_0x500202(0x156)],'modelId':_0x1e7d13[_0x500202(0x271)],'createdAt':_0x1e7d13[_0x500202(0xf0)],'updatedAt':_0x1e7d13[_0x500202(0x11f)],'lastActivityAt':_0x1e7d13[_0x500202(0xba)],..._0xc63727===undefined?{}:{'activity':_0xc63727}});}function templateSummary(_0x2b7736,_0xf527e2){const _0x4777d3=_0x1f8c85;return conversationTemplateSummarySchema[_0x4777d3(0x12b)]({'id':_0x2b7736[_0x4777d3(0x268)],'nodeId':_0x2b7736[_0x4777d3(0x147)],'name':_0x2b7736[_0x4777d3(0x170)],'description':_0xf527e2[_0x4777d3(0x169)],'status':_0x2b7736[_0x4777d3(0x105)]?_0x4777d3(0x148):_0x4777d3(0x23b),'currentVersionId':_0x2b7736[_0x4777d3(0x164)],'available':!_0x2b7736[_0x4777d3(0x105)],'createdAt':_0x2b7736[_0x4777d3(0xf0)],'updatedAt':_0xf527e2[_0x4777d3(0x11f)]});}function modelSummary(_0x44131b,_0x2d6b77){const _0x35aced=_0x1f8c85;return{'id':_0x44131b['id'],'name':_0x44131b[_0x35aced(0x23d)],'protocol':_0x44131b[_0x35aced(0x17e)],'baseUrl':_0x44131b[_0x35aced(0x1fa)],'modelId':_0x44131b[_0x35aced(0x271)],'contextWindowTokens':_0x44131b[_0x35aced(0x138)],'maxOutputTokens':_0x44131b[_0x35aced(0x254)],'inputCapabilities':_0x44131b[_0x35aced(0x240)],'outputCapabilities':_0x44131b[_0x35aced(0x14b)],'reasoningEfforts':_0x44131b[_0x35aced(0x16b)],'defaultReasoningEffort':resolveMarAgentDefaultReasoningEffort(_0x44131b[_0x35aced(0x106)],_0x44131b[_0x35aced(0x16b)]),'hostedWebSearch':_0x44131b[_0x35aced(0x214)],..._0x44131b[_0x35aced(0x208)]===undefined?{}:{'responsesTransport':_0x44131b[_0x35aced(0x208)]},'responsesPreviousResponseId':_0x44131b[_0x35aced(0x27b)],'enabled':_0x44131b[_0x35aced(0x13e)],'sortOrder':_0x2d6b77,'apiKeyConfigured':!![]};}function systemInstruction(_0x931743,_0xea43d4){const _0x3bc905=_0x1f8c85,_0x3e1aff=_0x931743[_0x3bc905(0x10c)],_0x17726c=_0x3e1aff[_0x3bc905(0x176)]===_0x3bc905(0xfe)?_0x3bc905(0xcc):_0x3bc905(0x270);return[_0x3bc905(0x258),_0x3bc905(0x283),_0x3bc905(0x1a5),_0x3bc905(0xc9),_0x3bc905(0x13f),_0x3bc905(0xbd),_0x3bc905(0x292),_0x3bc905(0x251),_0x3bc905(0x21e),_0x3bc905(0xd1),_0x3bc905(0x1e5),_0x3bc905(0x185),_0x3bc905(0x26d),..._0xea43d4===undefined?[]:[_0x3bc905(0x18f)+_0xea43d4+_0x3bc905(0x152),_0x3bc905(0xf9)+_0xea43d4+_0x3bc905(0xe5)+_0xea43d4+_0x3bc905(0x213)],..._0x931743[_0x3bc905(0x198)]===undefined?[]:[_0x3bc905(0xf7)+_0x931743[_0x3bc905(0x198)]+_0x3bc905(0x219)+join(_0x931743[_0x3bc905(0x198)],_0x3bc905(0xd2))+_0x3bc905(0x126)+join(_0x931743[_0x3bc905(0x198)],_0x3bc905(0x21c))+_0x3bc905(0x1a2)],_0x3bc905(0x175),_0x17726c][_0x3bc905(0x19f)]('\x0a');}function attachmentPrompt(_0x392b20,_0x4c75da){const _0x15dae0=_0x1f8c85;if(_0x4c75da[_0x15dae0(0x1ed)]===-0x5*-0x212+0x26c1+-0x311b)return _0x392b20;const _0x528e7e=_0x4c75da[_0x15dae0(0xf8)](_0xb33f8=>_0x15dae0(0x113)+_0xb33f8[_0x15dae0(0x1c1)])[_0x15dae0(0x19f)]('\x0a');return''+_0x392b20+(_0x392b20[_0x15dae0(0x20f)]()[_0x15dae0(0x1ed)]===-0x1*-0x1f51+0x1760+-0xd*0x435?'':'\x0a\x0a')+_0x15dae0(0x27f)+_0x528e7e;}function automaticHostedConversationTitle(_0x509be2){const _0x4e5788=_0x1f8c85;if(_0x509be2===undefined)return undefined;const _0x3eb9af=sessionTitleFromFirstMessage(_0x509be2);if(_0x3eb9af[_0x4e5788(0x1ed)]===-0x4*0x213+-0x52*-0x57+-0x1*0x1392||/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x4e5788(0xb9)](_0x3eb9af))return undefined;return _0x3eb9af;}function terminalHostedTurnStatus(_0x5baae0){const _0x25f338=_0x1f8c85;return _0x5baae0===_0x25f338(0x227)||_0x5baae0===_0x25f338(0x250)||_0x5baae0===_0x25f338(0x246)||_0x5baae0===_0x25f338(0x288)||_0x5baae0===_0x25f338(0x1c8);}function runFromMessage(_0x184cf2){const _0x8572b8=_0x1f8c85;return{'id':_0x184cf2[_0x8572b8(0xe0)],'status':_0x184cf2[_0x8572b8(0x156)],'startedAt':_0x184cf2[_0x8572b8(0xf0)],'completedAt':_0x184cf2[_0x8572b8(0x156)]===_0x8572b8(0x28c)?null:_0x184cf2[_0x8572b8(0x11f)]};}function runInterruptionKey(_0x179fe5,_0x5851a5){return _0x179fe5+'\x00'+_0x5851a5;}function uploadProjection(_0x358b09){const _0x529ce9=_0x1f8c85;return{'uploadId':_0x358b09[_0x529ce9(0x136)],'conversationId':_0x358b09[_0x529ce9(0x222)],'name':_0x358b09[_0x529ce9(0x23d)],'mimeType':_0x358b09[_0x529ce9(0x1b8)],'receivedBytes':_0x358b09[_0x529ce9(0x1fc)],'size':_0x358b09[_0x529ce9(0x1d7)],'status':_0x358b09[_0x529ce9(0x156)],..._0x358b09[_0x529ce9(0x203)]===undefined?{}:{'file':_0x358b09[_0x529ce9(0x203)]}};}async function assertRegularFile(_0x45b01c,_0x5c1b57){const _0x4fef4c=_0x1f8c85,_0x1b1d9e=await regularFileMetadata(_0x45b01c);if(_0x1b1d9e[_0x4fef4c(0x1d7)]!==_0x5c1b57)throw new Error(_0x4fef4c(0x162));}async function openRegularFile(_0x4b65ba){const _0x1748cb=_0x1f8c85;return open(_0x4b65ba,constants[_0x1748cb(0xbe)]|constants[_0x1748cb(0xcd)])[_0x1748cb(0x142)](()=>{const _0x3149bd=_0x1748cb;throw new Error(_0x3149bd(0x162));});}async function regularFileMetadata(_0x483a4f){const _0x50dfaa=_0x1f8c85,_0x31231f=await lstat(_0x483a4f)[_0x50dfaa(0x142)](()=>{const _0x3adc19=_0x50dfaa;throw new Error(_0x3adc19(0x162));});return assertRegularFileMetadata(_0x31231f),_0x31231f;}function assertRegularFileMetadata(_0x5286d0){const _0x549684=_0x1f8c85;if(!_0x5286d0[_0x549684(0x117)]()||_0x5286d0[_0x549684(0x130)]()||_0x5286d0[_0x549684(0xdc)]!==0xc4a+-0x1*0x68e+-0x5bb||!Number[_0x549684(0x1a6)](_0x5286d0[_0x549684(0x1d7)])||_0x5286d0[_0x549684(0x1d7)]<0x8ec*0x1+-0x44*0x7b+0x98*0x28)throw new Error(_0x549684(0x162));}function sameFileIdentity(_0x34f90b,_0x13c7f1){const _0x49bc45=_0x1f8c85;return _0x34f90b[_0x49bc45(0x154)]===_0x13c7f1[_0x49bc45(0x154)]&&_0x34f90b[_0x49bc45(0x204)]===_0x13c7f1[_0x49bc45(0x204)];}function sameFileSnapshot(_0x5ab499,_0x2f3bd3){const _0x2cfdec=_0x1f8c85;return sameFileIdentity(_0x5ab499,_0x2f3bd3)&&_0x5ab499[_0x2cfdec(0xdc)]===_0x2f3bd3[_0x2cfdec(0xdc)]&&_0x5ab499[_0x2cfdec(0x1d7)]===_0x2f3bd3[_0x2cfdec(0x1d7)]&&_0x5ab499[_0x2cfdec(0x290)]===_0x2f3bd3[_0x2cfdec(0x290)]&&_0x5ab499[_0x2cfdec(0x1dd)]===_0x2f3bd3[_0x2cfdec(0x1dd)];}function safeFileTimestamp(_0x377f54){const _0x3da08c=_0x1f8c85;if(!Number[_0x3da08c(0x224)](_0x377f54)||_0x377f54<0x1d*0x49+-0x1*0x12f1+0xaac)return-0x2*0x537+-0x6d*0x8+0xdd6;return Math[_0x3da08c(0x248)](Number[_0x3da08c(0x129)],Math[_0x3da08c(0x13d)](_0x377f54));}async function assertUploadTemporaryFile(_0x5ba6bb,_0x50f857){const _0x3af2a4=_0x1f8c85,_0x54c50d=await lstat(_0x5ba6bb)[_0x3af2a4(0x142)](()=>{const _0x7103c3=_0x3af2a4;throw new Error(_0x7103c3(0x1f4));});if(!_0x54c50d[_0x3af2a4(0x117)]()||_0x54c50d[_0x3af2a4(0x130)]()||_0x54c50d[_0x3af2a4(0xdc)]!==-0x23de*-0x1+0x93c+-0x2d19||_0x54c50d[_0x3af2a4(0x1d7)]!==_0x50f857)throw new Error(_0x3af2a4(0x1f4));}function record(_0x41bcfe){const _0x51ef7b=_0x1f8c85;return typeof _0x41bcfe===_0x51ef7b(0xd9)&&_0x41bcfe!==null&&!Array[_0x51ef7b(0x10e)](_0x41bcfe);}
|
|
2
|
+
const _0x4a8d97=_0x4e72;(function(_0x4b9be5,_0x403d0a){const _0x33d5bb=_0x4e72,_0x286cea=_0x4b9be5();while(!![]){try{const _0x4b7d68=-parseInt(_0x33d5bb(0x303))/(0x1*-0x1f2d+-0x10f7*0x1+0x3025)*(parseInt(_0x33d5bb(0x2aa))/(0xecd*0x2+0xf48+-0xb38*0x4))+parseInt(_0x33d5bb(0x1ba))/(0x18d*-0x1+-0x1*-0xc43+-0xab3*0x1)+parseInt(_0x33d5bb(0x358))/(0x1d*0xe5+-0x83f+-0x11ae)+-parseInt(_0x33d5bb(0x20b))/(0x6fa+-0x17af+-0x85d*-0x2)+-parseInt(_0x33d5bb(0x313))/(-0x39*0xc+0x159*-0x9+0xed3)*(parseInt(_0x33d5bb(0x22c))/(-0x2*-0x63c+0x125b+-0x1ecc))+-parseInt(_0x33d5bb(0x267))/(0x51a*-0x1+-0x1*-0x517+0xb*0x1)*(-parseInt(_0x33d5bb(0x2e1))/(-0x1*-0x551+-0x3*-0xf1+0x19f*-0x5))+parseInt(_0x33d5bb(0x1a3))/(0x1*0x761+0xd79*-0x2+0x139b);if(_0x4b7d68===_0x403d0a)break;else _0x286cea['push'](_0x286cea['shift']());}catch(_0x49a553){_0x286cea['push'](_0x286cea['shift']());}}}(_0x20f4,0x490be+0x7a1aa+0x1*-0x2dda3));function _0x4e72(_0x2b6eb2,_0x9a12d9){_0x2b6eb2=_0x2b6eb2-(-0xd4c+-0x4f*0x3b+0x211e);const _0x24be43=_0x20f4();let _0xb3376c=_0x24be43[_0x2b6eb2];if(_0x4e72['EoCBZy']===undefined){var _0x117063=function(_0x392b43){const _0x549f58='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1db7b1='',_0x1af74b='';for(let _0x2ac818=-0x1*-0x1f4d+-0x36a*0x3+-0x1*0x150f,_0x26bdad,_0x1f14b2,_0x4889ef=0x1ae9+0x4ba+0x59*-0x5b;_0x1f14b2=_0x392b43['charAt'](_0x4889ef++);~_0x1f14b2&&(_0x26bdad=_0x2ac818%(-0x96a+-0x55a*-0x1+0xae*0x6)?_0x26bdad*(-0x23ff+0x1*-0x1273+0x36b2)+_0x1f14b2:_0x1f14b2,_0x2ac818++%(0x22e+0x2360+-0x258a))?_0x1db7b1+=String['fromCharCode'](0x14ba+-0x1*-0x183+-0x153e*0x1&_0x26bdad>>(-(-0x30*0x57+-0x2*-0xf3e+0x62*-0x25)*_0x2ac818&0x444+0x22b5+-0xd*0x2ff)):-0x1f52+-0x7*0x3d8+-0x3a*-0x101){_0x1f14b2=_0x549f58['indexOf'](_0x1f14b2);}for(let _0x5f5bf6=-0x27e+0x2597*0x1+-0x2319,_0x4ce32a=_0x1db7b1['length'];_0x5f5bf6<_0x4ce32a;_0x5f5bf6++){_0x1af74b+='%'+('00'+_0x1db7b1['charCodeAt'](_0x5f5bf6)['toString'](-0x15ec+-0x2081+-0x1*-0x367d))['slice'](-(-0x16c6+0x1*-0x1ac9+0x1*0x3191));}return decodeURIComponent(_0x1af74b);};_0x4e72['udmSQz']=_0x117063,_0x4e72['axWemx']={},_0x4e72['EoCBZy']=!![];}const _0x39db94=_0x24be43[0x149f*0x1+-0x1bc7+0x1*0x728];_0x4e72['rQwuvQ']!==_0x39db94&&(_0x4e72['axWemx']={},_0x4e72['rQwuvQ']=_0x39db94);const _0x1f4b5e=_0x4e72['axWemx'][_0x2b6eb2];return _0x1f4b5e===undefined?(_0xb3376c=_0x4e72['udmSQz'](_0xb3376c),_0x4e72['axWemx'][_0x2b6eb2]=_0xb3376c):_0xb3376c=_0x1f4b5e,_0xb3376c;}import{createHash,randomUUID}from'node:crypto';import{constants}from'node:fs';import{lstat,mkdir,open,readFile,rename,rm,utimes}from'node:fs/promises';import{isAbsolute,join,relative,resolve,sep}from'node:path';import{conversationTurnSchema,conversationTemplateDraftSchema,conversationTemplateSummarySchema,hostedConversationConfigUpdateInputSchema,hostedConversationCreateInputSchema,hostedConversationDeleteResultSchema,hostedConversationFileDeleteInputSchema,hostedConversationFileDeleteResultSchema,hostedConversationFileReadInputSchema,hostedConversationFileReadResultSchema,hostedConversationFilesSchema,hostedConversationIdInputSchema,hostedConversationImageReadInputSchema,hostedConversationListInputSchema,hostedConversationListPageSchema,hostedConversationMessageInputSchema,hostedConversationMetadataUpdateInputSchema,hostedConversationRollbackInputSchema,hostedConversationSnapshotSchema,hostedConversationSummarySchema,hostedConversationUnwatchInputSchema,hostedConversationUploadChunkInputSchema,hostedConversationUploadControlInputSchema,hostedConversationUploadCreateInputSchema,hostedConversationUploadPreflightInputSchema,hostedConversationUploadPreflightResultSchema,hostedConversationUploadSchema,hostedConversationWatchInputSchema,marAgentRuntimeModelConfigurationSchema,mcpInstallationConfigurationSchema,mcpRuntimeDescriptorSchema,resolveMarAgentDefaultReasoningEffort}from'@myagentroam/protocol';import{hostedConversationGeneratedImagesDisplayDirectory,hostedConversationImageRunId,marAgentGeneratedImagesDirectory}from'../runner/mar-agent/generated-images.js';import{sessionTitleFromFirstMessage}from'../util/node-operation-parsers.js';import{safeErrorCode}from'../util/safe-error.js';import{SessionWatchSlotCoordinator}from'./session-watch-slot-coordinator.js';const DEFAULT_HOSTED_CONVERSATION_TITLE=_0x4a8d97(0x278),HOST_POLICY_VERSION=-0x1*-0x622+0x3*-0xb0c+0x1b03,MAX_FILE_READ_BYTES=(-0x4*0x72+-0xac*-0x10+-0x6f8*0x1)*(0x2053+0x1e34+-0x3a87),WATCH_TTL_MS=0x13941+0x3cd6*0x2+-0x10325,RUNTIME_LINK_ROOTS=[_0x4a8d97(0x31c),_0x4a8d97(0x1d1),_0x4a8d97(0x35f),_0x4a8d97(0x305),_0x4a8d97(0x1f8)],RESERVED_SANDBOX_ROOTS=[_0x4a8d97(0x1ac),_0x4a8d97(0x2d3),_0x4a8d97(0x2b2),_0x4a8d97(0x31c),_0x4a8d97(0x1d1),_0x4a8d97(0x35f),_0x4a8d97(0x305),_0x4a8d97(0x1f8),_0x4a8d97(0x1df),_0x4a8d97(0x20f),_0x4a8d97(0x295),_0x4a8d97(0x26b)];export class HostedConversationNodeService{[_0x4a8d97(0x1b1)];[_0x4a8d97(0x1a8)];['id'];[_0x4a8d97(0x23c)]=new Map();[_0x4a8d97(0x2fb)]=new Map();[_0x4a8d97(0x2f2)]=new Map();[_0x4a8d97(0x1cd)]=new Map();[_0x4a8d97(0x1d7)]=new Map();[_0x4a8d97(0x2cc)]=new Set();[_0x4a8d97(0x29f)]=new Map();[_0x4a8d97(0x30e)]=new Map();[_0x4a8d97(0x1c6)]=new Set();[_0x4a8d97(0x25e)]=new Map();[_0x4a8d97(0x2c5)]=new Set();[_0x4a8d97(0x289)]=new Map();[_0x4a8d97(0x1b9)]=new Map();[_0x4a8d97(0x223)];[_0x4a8d97(0x1ff)]=![];[_0x4a8d97(0x375)]=0x1*-0x195+-0x1b25+-0x1*-0x1cba;[_0x4a8d97(0x2e4)]=0x8e6+0x1*-0x1ddb+0x14f5;constructor(_0xa3538a){const _0x2c0d23=_0x4a8d97;this[_0x2c0d23(0x1b1)]=_0xa3538a,this[_0x2c0d23(0x1a8)]=_0xa3538a[_0x2c0d23(0x1a8)]??Date[_0x2c0d23(0x1a8)],this['id']=_0xa3538a['id']??randomUUID,this[_0x2c0d23(0x223)]=_0xa3538a[_0x2c0d23(0x223)]??new SessionWatchSlotCoordinator();}[_0x4a8d97(0x19f)](){const _0x43c676=_0x4a8d97;return{'conversation.hosted.list':_0x7765ec=>this[_0x43c676(0x20e)](_0x7765ec),'conversation.hosted.create':_0x2fe67a=>this[_0x43c676(0x294)](_0x2fe67a),'conversation.hosted.get':_0x1e7209=>this[_0x43c676(0x1b2)](_0x1e7209),'conversation.hosted.watch':_0x162870=>this[_0x43c676(0x2b7)](_0x162870),'conversation.hosted.unwatch':_0x467f97=>this[_0x43c676(0x33e)](_0x467f97),'conversation.hosted.message':_0x577780=>this[_0x43c676(0x1f5)](_0x577780),'conversation.hosted.rollback':_0x2b0b12=>this[_0x43c676(0x36b)](_0x2b0b12),'conversation.hosted.interrupt':_0x3d98b3=>this[_0x43c676(0x1be)](_0x3d98b3),'conversation.hosted.config.update':_0x3fb6c2=>this[_0x43c676(0x19e)](_0x3fb6c2),'conversation.hosted.metadata.update':_0xe75d5e=>this[_0x43c676(0x2b0)](_0xe75d5e),'conversation.hosted.image.read':_0x4ce2cc=>this[_0x43c676(0x2dd)](_0x4ce2cc),'conversation.hosted.files.list':_0x310661=>this[_0x43c676(0x2ac)](_0x310661),'conversation.hosted.file.read':_0x3ba92c=>this[_0x43c676(0x237)](_0x3ba92c),'conversation.hosted.file.delete':_0x169ea4=>this[_0x43c676(0x21b)](_0x169ea4),'conversation.hosted.files.upload.preflight':_0x44ca1f=>this[_0x43c676(0x26f)](_0x44ca1f),'conversation.hosted.files.upload.create':_0x2f66a6=>this[_0x43c676(0x2ca)](_0x2f66a6),'conversation.hosted.files.upload.chunk':_0x1d8271=>this[_0x43c676(0x1f4)](_0x1d8271),'conversation.hosted.files.upload.status':_0x1e74d5=>this[_0x43c676(0x1db)](_0x1e74d5),'conversation.hosted.files.upload.complete':_0x2a615a=>this[_0x43c676(0x275)](_0x2a615a),'conversation.hosted.files.upload.cancel':_0xa32a80=>this[_0x43c676(0x32b)](_0xa32a80),'conversation.hosted.delete':_0x286ed4=>this[_0x43c676(0x1c2)](_0x286ed4)};}[_0x4a8d97(0x264)](){const _0x3ae8c3=_0x4a8d97;if(this[_0x3ae8c3(0x1ff)]||this[_0x3ae8c3(0x2fb)][_0x3ae8c3(0x32d)]>0x9d*0x33+0xb49*-0x1+-0x13fe||this[_0x3ae8c3(0x2f2)][_0x3ae8c3(0x32d)]>-0xd85+0xe46+-0xc1||this[_0x3ae8c3(0x1cd)][_0x3ae8c3(0x32d)]>-0xbe+-0x49*-0x6b+-0x1dc5||this[_0x3ae8c3(0x289)][_0x3ae8c3(0x32d)]>0x2597*0x1+-0x1cfd+-0x89a)return undefined;return this[_0x3ae8c3(0x1ff)]=!![],()=>{const _0x565e16=_0x3ae8c3;this[_0x565e16(0x1ff)]=![];};}[_0x4a8d97(0x20e)](_0x36cdeb){const _0x5036a7=_0x4a8d97,_0x133bf0=hostedRequest(_0x36cdeb),_0x797ee9=hostedConversationListInputSchema[_0x5036a7(0x374)](_0x133bf0[_0x5036a7(0x2ec)]),_0x196b1a=this[_0x5036a7(0x1b1)][_0x5036a7(0x27e)][_0x5036a7(0x1f3)]({'userId':_0x133bf0[_0x5036a7(0x317)],'limit':_0x797ee9[_0x5036a7(0x239)],..._0x797ee9[_0x5036a7(0x23d)]===undefined?{}:{'cursor':_0x797ee9[_0x5036a7(0x23d)]}});return hostedConversationListPageSchema[_0x5036a7(0x374)]({..._0x196b1a,'items':_0x196b1a[_0x5036a7(0x235)][_0x5036a7(0x2c1)](_0x51d74c=>({..._0x51d74c,'activity':this[_0x5036a7(0x333)](_0x51d74c['id'])}))});}[_0x4a8d97(0x294)](_0x49dfa1){const _0x3ab078=_0x4a8d97;if(this[_0x3ab078(0x1ff)])return Promise[_0x3ab078(0x1e3)](new Error(_0x3ab078(0x2f0)));const _0x218904=hostedRequest(_0x49dfa1),_0x38193f=hostedConversationCreateInputSchema[_0x3ab078(0x374)](_0x218904[_0x3ab078(0x2ec)]),_0xccd550=conversationTemplateSummarySchema[_0x3ab078(0x374)](_0x218904[_0x3ab078(0x205)]),_0xf16caa=runtimeModels(_0x218904[_0x3ab078(0x30f)]);if(_0xccd550['id']!==_0x38193f[_0x3ab078(0x1d4)]||_0xccd550[_0x3ab078(0x2e2)]!==this[_0x3ab078(0x1b1)][_0x3ab078(0x2e2)]()||!_0xccd550[_0x3ab078(0x37b)]||_0xccd550[_0x3ab078(0x304)]!==_0x3ab078(0x285)||_0xccd550[_0x3ab078(0x26c)]===null)throw new Error(_0x3ab078(0x31b));const _0x3065a3=_0x218904[_0x3ab078(0x317)]+'\x00'+_0x38193f[_0x3ab078(0x2ed)],_0x516fe0=this[_0x3ab078(0x23c)][_0x3ab078(0x1b2)](_0x3065a3);if(_0x516fe0!==undefined)return _0x516fe0;const _0x362962=this[_0x3ab078(0x1b1)][_0x3ab078(0x27e)][_0x3ab078(0x1c4)](_0x218904[_0x3ab078(0x317)],_0x38193f[_0x3ab078(0x2ed)]);if(_0x362962!==undefined)return this[_0x3ab078(0x252)](_0x218904[_0x3ab078(0x317)],_0x362962['id'],_0xf16caa);const _0x5573dd=this[_0x3ab078(0x308)](_0x218904[_0x3ab078(0x317)],_0x38193f[_0x3ab078(0x2ed)],_0xccd550,_0xf16caa,_0x218904[_0x3ab078(0x343)]);return this[_0x3ab078(0x23c)][_0x3ab078(0x21e)](_0x3065a3,_0x5573dd),void _0x5573dd[_0x3ab078(0x335)](()=>this[_0x3ab078(0x23c)][_0x3ab078(0x1c2)](_0x3065a3))[_0x3ab078(0x2e9)](()=>undefined),_0x5573dd;}async[_0x4a8d97(0x308)](_0x1296c6,_0x4de7c9,_0x49689f,_0x5ddc4c,_0x547dce){const _0x565690=_0x4a8d97;await this[_0x565690(0x1b1)][_0x565690(0x1ed)]?.();const _0x508176=await this[_0x565690(0x325)](_0x49689f[_0x565690(0x26c)],_0x49689f['id']),_0x597192=selectModel(_0x508176,_0x5ddc4c,_0x508176[_0x565690(0x21c)][_0x565690(0x1cf)]),_0x2ecf02=this['id'](),_0x482303=await this[_0x565690(0x1b1)][_0x565690(0x27e)][_0x565690(0x28b)](_0x1296c6,_0x2ecf02),_0x2f7e08=this[_0x565690(0x350)](_0x482303[_0x565690(0x29e)],_0x508176),_0x56db0a=this[_0x565690(0x1dc)](_0x482303[_0x565690(0x29e)],_0x508176);let _0x1ed648;try{const _0x410504=await this[_0x565690(0x1b1)][_0x565690(0x32e)][_0x565690(0x29b)]({'conversationId':_0x2ecf02,'homeDirectory':_0x482303[_0x565690(0x29e)][_0x565690(0x1e0)],'workspaceDirectory':_0x508176[_0x565690(0x2c7)],'systemInstruction':systemInstruction(_0x508176),'defaultModelId':_0x597192['id'],'models':networkModels(allowedModels(_0x508176,_0x5ddc4c),_0x508176[_0x565690(0x33d)][_0x565690(0x211)]),..._0x547dce===undefined?{}:{'runtimeScopeId':_0x547dce},'pathMounts':_0x2f7e08,'processExecutor':_0x56db0a});_0x1ed648=_0x410504[_0x565690(0x1af)];const _0x523e4d=this[_0x565690(0x1a8)](),_0x472c59={'id':_0x2ecf02,'nodeId':this[_0x565690(0x1b1)][_0x565690(0x2e2)](),'sessionId':_0x1ed648,'templateId':_0x49689f['id'],'templateName':_0x49689f[_0x565690(0x21f)],'activeVersionId':_0x508176['id'],'title':DEFAULT_HOSTED_CONVERSATION_TITLE,'titleSource':_0x565690(0x1a0),'pinnedAt':null,'status':_0x565690(0x285),'modelId':_0x597192['id'],'createdAt':_0x523e4d,'updatedAt':_0x523e4d,'lastActivityAt':_0x523e4d,'userStorageKey':_0x482303[_0x565690(0x231)],'conversationStorageKey':_0x482303[_0x565690(0x1a9)],'clientRequestId':_0x4de7c9,'templateDeleted':![],'quota':{'usedBytes':0x0,'maxBytes':_0x508176[_0x565690(0x33d)][_0x565690(0x2cb)][_0x565690(0x1d9)]}},_0x40de87=await this[_0x565690(0x1b1)][_0x565690(0x27e)][_0x565690(0x308)](_0x472c59);return _0x40de87['id']!==_0x2ecf02&&(await this[_0x565690(0x1b1)][_0x565690(0x32e)][_0x565690(0x25b)]({'conversationId':_0x2ecf02,'sessionId':_0x1ed648,'homeDirectory':_0x482303[_0x565690(0x29e)][_0x565690(0x1e0)]})[_0x565690(0x2e9)](()=>undefined),await rm(_0x482303[_0x565690(0x29e)][_0x565690(0x282)],{'recursive':!![],'force':!![]})),this[_0x565690(0x252)](_0x1296c6,_0x40de87['id'],_0x5ddc4c);}catch(_0x436806){if(_0x1ed648!==undefined)await this[_0x565690(0x1b1)][_0x565690(0x32e)][_0x565690(0x25b)]({'conversationId':_0x2ecf02,'sessionId':_0x1ed648,'homeDirectory':_0x482303[_0x565690(0x29e)][_0x565690(0x1e0)]})[_0x565690(0x2e9)](()=>undefined);await rm(_0x482303[_0x565690(0x29e)][_0x565690(0x282)],{'recursive':!![],'force':!![]})[_0x565690(0x2e9)](()=>undefined);throw _0x436806;}}async[_0x4a8d97(0x1b2)](_0x4d273a){const _0xa08587=_0x4a8d97,_0xae4645=hostedRequest(_0x4d273a),_0x52f577=hostedConversationIdInputSchema[_0xa08587(0x374)](_0xae4645[_0xa08587(0x2ec)]);return this[_0xa08587(0x252)](_0xae4645[_0xa08587(0x317)],_0x52f577[_0xa08587(0x2d8)],runtimeModels(_0xae4645[_0xa08587(0x30f)]),_0xae4645[_0xa08587(0x323)]);}async[_0x4a8d97(0x252)](_0x44657e,_0x437d7a,_0x3cf5d5,_0x329ef6=![],_0x112dd0=![],_0xd2b1d4){const _0x2beb00=_0x4a8d97;if(_0x112dd0)return this[_0x2beb00(0x290)](_0x44657e,_0x437d7a,_0x3cf5d5,_0x329ef6,_0xd2b1d4);while(!![]){const _0x8307ff=this[_0x2beb00(0x1b9)][_0x2beb00(0x1b2)](_0x437d7a)??-0x2081+-0x1*0x1e81+0x3f02,_0x3b57f6=this[_0x2beb00(0x289)][_0x2beb00(0x1b2)](_0x437d7a);if(_0x3b57f6!==undefined){await _0x3b57f6[_0x2beb00(0x2e9)](()=>undefined);continue;}const _0x27203c=await this[_0x2beb00(0x290)](_0x44657e,_0x437d7a,_0x3cf5d5,_0x329ef6);if(!this[_0x2beb00(0x289)][_0x2beb00(0x215)](_0x437d7a)&&(this[_0x2beb00(0x1b9)][_0x2beb00(0x1b2)](_0x437d7a)??0x1*-0x1ac9+0x2d*-0xd2+-0x2c5*-0x17)===_0x8307ff)return _0x27203c;}}async[_0x4a8d97(0x290)](_0x21f1da,_0x19d6a7,_0x176c9f,_0x4a1f63,_0x55a581){const _0x409832=_0x4a8d97;let _0x5700e8=this[_0x409832(0x1b1)][_0x409832(0x27e)][_0x409832(0x36c)](_0x21f1da,_0x19d6a7);if(_0x4a1f63)_0x5700e8=await this[_0x409832(0x1b1)][_0x409832(0x27e)][_0x409832(0x259)](_0x21f1da,_0x19d6a7,this[_0x409832(0x1a8)]());const _0x1935d6=_0x5700e8[_0x409832(0x323)]?undefined:this[_0x409832(0x248)](_0x5700e8[_0x409832(0x1d4)]),_0x52d927=_0x1935d6??_0x5700e8[_0x409832(0x24f)],_0x17f926=await this[_0x409832(0x325)](_0x52d927,_0x5700e8[_0x409832(0x1d4)]),_0x435f6b=networkModels(allowedModels(_0x17f926,_0x176c9f),_0x17f926[_0x409832(0x33d)][_0x409832(0x211)]),_0xf1777f=this[_0x409832(0x1b1)][_0x409832(0x27e)][_0x409832(0x1fa)](_0x21f1da,_0x5700e8['id']),_0x49828b=_0x55a581??await this[_0x409832(0x1b1)][_0x409832(0x32e)][_0x409832(0x2cf)]({'conversationId':_0x5700e8['id'],'sessionId':_0x5700e8[_0x409832(0x1af)],'homeDirectory':_0xf1777f[_0x409832(0x1e0)],'modelId':_0x5700e8[_0x409832(0x24b)]});return hostedConversationSnapshotSchema[_0x409832(0x374)]({'nodeAppVersion':this[_0x409832(0x1b1)][_0x409832(0x1a2)]?.()??_0x409832(0x228),'conversation':this[_0x409832(0x33f)](_0x5700e8),'template':templateSummary(_0x5700e8,_0x17f926[_0x409832(0x33d)]),'run':this[_0x409832(0x2f2)][_0x409832(0x1b2)](_0x5700e8['id'])?.[_0x409832(0x1c3)]??null,'turns':_0x49828b,'files':this[_0x409832(0x1b1)][_0x409832(0x27e)][_0x409832(0x2ac)](_0x21f1da,_0x5700e8['id']),'models':_0x435f6b[_0x409832(0x2c1)](modelSummary),'error':null,'snapshotSequence':0x0});}async[_0x4a8d97(0x2b7)](_0xd9b7c5){const _0x147655=_0x4a8d97,_0x14885a=hostedRequest(_0xd9b7c5),_0x35db19=hostedConversationWatchInputSchema[_0x147655(0x374)](_0x14885a[_0x147655(0x2ec)]),_0x5e213e=this[_0x147655(0x1b1)][_0x147655(0x27e)][_0x147655(0x36c)](_0x14885a[_0x147655(0x317)],_0x35db19[_0x147655(0x2d8)]);if(this[_0x147655(0x2c5)][_0x147655(0x215)](_0x5e213e['id']))throw new Error(_0x147655(0x2c8));const _0x16de94=requireWatchSessionHash(_0x14885a[_0x147655(0x2ad)]),_0x58d719=watchOwnerKey(_0x16de94,_0x35db19[_0x147655(0x2f5)]);if(_0x35db19[_0x147655(0x1e5)]===_0x147655(0x1aa)){const _0xd5c85a=this[_0x147655(0x25e)][_0x147655(0x1b2)](_0x58d719);if(_0xd5c85a===undefined||!this[_0x147655(0x223)][_0x147655(0x1e4)](_0x58d719,_0xd5c85a[_0x147655(0x2d7)])||_0xd5c85a[_0x147655(0x2f4)]!==_0x35db19[_0x147655(0x2f4)]||_0xd5c85a[_0x147655(0x2d8)]!==_0x35db19[_0x147655(0x2d8)]||_0xd5c85a[_0x147655(0x317)]!==_0x14885a[_0x147655(0x317)]||_0xd5c85a[_0x147655(0x336)]<=Date[_0x147655(0x1a8)]()){this[_0x147655(0x1e2)](_0x58d719);throw new Error(_0x147655(0x342));}return _0xd5c85a[_0x147655(0x336)]=Date[_0x147655(0x1a8)]()+WATCH_TTL_MS,clearTimeout(_0xd5c85a[_0x147655(0x368)]),_0xd5c85a[_0x147655(0x368)]=this[_0x147655(0x216)](_0x58d719),this[_0x147655(0x23f)](_0xd5c85a);}const _0x252407=runtimeModels(_0x14885a[_0x147655(0x30f)]),_0x3a2c24=this[_0x147655(0x25e)][_0x147655(0x1b2)](_0x58d719);if(_0x3a2c24!==undefined&&this[_0x147655(0x223)][_0x147655(0x1e4)](_0x58d719,_0x3a2c24[_0x147655(0x2d7)])&&_0x3a2c24[_0x147655(0x2f4)]===_0x35db19[_0x147655(0x2f4)]&&_0x3a2c24[_0x147655(0x2d8)]===_0x35db19[_0x147655(0x2d8)]&&_0x3a2c24[_0x147655(0x317)]===_0x14885a[_0x147655(0x317)]&&_0x3a2c24[_0x147655(0x336)]>Date[_0x147655(0x1a8)]())return _0x3a2c24[_0x147655(0x336)]=Date[_0x147655(0x1a8)]()+WATCH_TTL_MS,clearTimeout(_0x3a2c24[_0x147655(0x368)]),_0x3a2c24[_0x147655(0x368)]=this[_0x147655(0x216)](_0x58d719),this[_0x147655(0x23f)](_0x3a2c24);this[_0x147655(0x1e2)](_0x58d719);const _0x5cef6f=this[_0x147655(0x223)][_0x147655(0x2c4)](_0x58d719,_0x147655(0x287),()=>this[_0x147655(0x1e2)](_0x58d719)),_0x4adbd9={'ownerKey':_0x58d719,'slotToken':_0x5cef6f,'sessionHash':_0x16de94,'workbenchConnectionId':_0x35db19[_0x147655(0x2f5)],'watchId':_0x35db19[_0x147655(0x2f4)],'conversationId':_0x35db19[_0x147655(0x2d8)],'templateId':_0x5e213e[_0x147655(0x1d4)],'userId':_0x14885a[_0x147655(0x317)],'models':_0x252407,'nodeGeneration':this[_0x147655(0x1b1)][_0x147655(0x201)]?.()??_0x147655(0x229),'pendingEvents':[],'expiresAt':Date[_0x147655(0x1a8)]()+WATCH_TTL_MS,'ready':![],'timer':undefined};return _0x4adbd9[_0x147655(0x368)]=this[_0x147655(0x216)](_0x58d719),this[_0x147655(0x25e)][_0x147655(0x21e)](_0x58d719,_0x4adbd9),void this[_0x147655(0x1d6)](_0x4adbd9),this[_0x147655(0x23f)](_0x4adbd9);}[_0x4a8d97(0x33e)](_0x51abe0){const _0x3bb891=_0x4a8d97,_0x846fee=hostedRequest(_0x51abe0),_0x5e0e44=hostedConversationUnwatchInputSchema[_0x3bb891(0x374)](_0x846fee[_0x3bb891(0x2ec)]);this[_0x3bb891(0x1b1)][_0x3bb891(0x27e)][_0x3bb891(0x36c)](_0x846fee[_0x3bb891(0x317)],_0x5e0e44[_0x3bb891(0x2d8)]);const _0x542287=watchOwnerKey(requireWatchSessionHash(_0x846fee[_0x3bb891(0x2ad)]),_0x5e0e44[_0x3bb891(0x2f5)]),_0x29a06f=this[_0x3bb891(0x25e)][_0x3bb891(0x1b2)](_0x542287);if(_0x29a06f?.[_0x3bb891(0x2f4)]===_0x5e0e44[_0x3bb891(0x2f4)]&&_0x29a06f[_0x3bb891(0x2d8)]===_0x5e0e44[_0x3bb891(0x2d8)]&&_0x29a06f[_0x3bb891(0x317)]===_0x846fee[_0x3bb891(0x317)])this[_0x3bb891(0x1e2)](_0x542287);return{'unwatched':!![]};}[_0x4a8d97(0x25c)](_0x5b0257,_0x2324ee){const _0x27c1fa=_0x4a8d97;return this[_0x27c1fa(0x276)](_0x5b0257,{'conversationId':_0x5b0257,'kind':_0x27c1fa(0x32e),'runtimeEvent':_0x2324ee});}[_0x4a8d97(0x277)](_0x301bd4){const _0x17e3f2=_0x4a8d97;return this[_0x17e3f2(0x2c5)][_0x17e3f2(0x215)](_0x301bd4)||this[_0x17e3f2(0x289)][_0x17e3f2(0x215)](_0x301bd4)||this[_0x17e3f2(0x2f2)][_0x17e3f2(0x215)](_0x301bd4)||this[_0x17e3f2(0x1cd)][_0x17e3f2(0x215)](_0x301bd4)||[...this[_0x17e3f2(0x25e)][_0x17e3f2(0x2d4)]()][_0x17e3f2(0x27a)](_0x349eeb=>_0x349eeb[_0x17e3f2(0x2d8)]===_0x301bd4)||[...this[_0x17e3f2(0x29f)][_0x17e3f2(0x2d4)]()][_0x17e3f2(0x27a)](_0x4a6285=>_0x4a6285[_0x17e3f2(0x2d8)]===_0x301bd4&&_0x4a6285[_0x17e3f2(0x304)]===_0x17e3f2(0x27f))||[...this[_0x17e3f2(0x2fb)][_0x17e3f2(0x355)]()][_0x17e3f2(0x27a)](_0x59c3d1=>_0x59c3d1[_0x17e3f2(0x2e5)](_0x301bd4+'\x00'));}[_0x4a8d97(0x319)](_0x4eb6ba){const _0x35eafa=_0x4a8d97;if(this[_0x35eafa(0x277)](_0x4eb6ba))return undefined;return this[_0x35eafa(0x2c5)][_0x35eafa(0x222)](_0x4eb6ba),()=>{const _0xc94f73=_0x35eafa;this[_0xc94f73(0x2c5)][_0xc94f73(0x1c2)](_0x4eb6ba);};}async[_0x4a8d97(0x297)](_0x3006d0){const _0x26a4ba=_0x4a8d97,_0xbcd46b=this[_0x26a4ba(0x1b1)][_0x26a4ba(0x27e)][_0x26a4ba(0x274)](_0x3006d0);await this[_0x26a4ba(0x1b1)][_0x26a4ba(0x32e)][_0x26a4ba(0x25b)]({'conversationId':_0x3006d0['id'],'sessionId':_0x3006d0[_0x26a4ba(0x1af)],'homeDirectory':_0xbcd46b[_0x26a4ba(0x1e0)]})[_0x26a4ba(0x2e9)](()=>undefined);}[_0x4a8d97(0x34d)](){const _0x52bfda=_0x4a8d97;for(const [_0xbacce4,_0x19c204]of this[_0x52bfda(0x2f2)]){const _0x4896ec=runInterruptionKey(_0xbacce4,_0x19c204[_0x52bfda(0x1c3)]['id']);this[_0x52bfda(0x2cc)][_0x52bfda(0x222)](_0x4896ec);if(!_0x19c204[_0x52bfda(0x351)]())this[_0x52bfda(0x2cc)][_0x52bfda(0x1c2)](_0x4896ec);}for(const _0x301ab6 of[...this[_0x52bfda(0x25e)][_0x52bfda(0x355)]()])this[_0x52bfda(0x1e2)](_0x301ab6);}[_0x4a8d97(0x1f5)](_0x14f423){const _0x22d3e0=_0x4a8d97;if(this[_0x22d3e0(0x1ff)])return Promise[_0x22d3e0(0x1e3)](new Error(_0x22d3e0(0x2f0)));const _0x189cf4=hostedRequest(_0x14f423),_0x308933=hostedConversationMessageInputSchema[_0x22d3e0(0x374)](_0x189cf4[_0x22d3e0(0x2ec)]);if(this[_0x22d3e0(0x289)][_0x22d3e0(0x215)](_0x308933[_0x22d3e0(0x2d8)]))return Promise[_0x22d3e0(0x1e3)](new Error(_0x22d3e0(0x2c8)));const _0x9d8f54=_0x308933[_0x22d3e0(0x2d8)]+'\x00'+_0x308933[_0x22d3e0(0x1b8)],_0x3b41fb=this[_0x22d3e0(0x2fb)][_0x22d3e0(0x1b2)](_0x9d8f54);if(_0x3b41fb!==undefined)return _0x3b41fb;const _0x285e96=this[_0x22d3e0(0x1b1)][_0x22d3e0(0x27e)][_0x22d3e0(0x314)](_0x189cf4[_0x22d3e0(0x317)],_0x308933[_0x22d3e0(0x2d8)],_0x308933[_0x22d3e0(0x1b8)]);if(_0x285e96!==undefined){const _0x190572=this[_0x22d3e0(0x1b1)][_0x22d3e0(0x27e)][_0x22d3e0(0x36c)](_0x189cf4[_0x22d3e0(0x317)],_0x308933[_0x22d3e0(0x2d8)]);return Promise[_0x22d3e0(0x363)]({'conversation':this[_0x22d3e0(0x33f)](_0x190572),'run':runFromMessage(_0x285e96)});}if([...this[_0x22d3e0(0x2fb)][_0x22d3e0(0x355)]()][_0x22d3e0(0x27a)](_0x150b34=>_0x150b34[_0x22d3e0(0x2e5)](_0x308933[_0x22d3e0(0x2d8)]+'\x00')))return Promise[_0x22d3e0(0x1e3)](new Error(_0x22d3e0(0x254)));const _0x566ab2=this[_0x22d3e0(0x36d)](_0x189cf4,_0x308933);return this[_0x22d3e0(0x2fb)][_0x22d3e0(0x21e)](_0x9d8f54,_0x566ab2),void _0x566ab2[_0x22d3e0(0x335)](()=>this[_0x22d3e0(0x2fb)][_0x22d3e0(0x1c2)](_0x9d8f54))[_0x22d3e0(0x2e9)](()=>undefined),_0x566ab2;}async[_0x4a8d97(0x36d)](_0x1207d2,_0x5ad7c7){const _0x5d5a1c=_0x4a8d97;let _0x2d7a36=this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x36c)](_0x1207d2[_0x5d5a1c(0x317)],_0x5ad7c7[_0x5d5a1c(0x2d8)]);if(this[_0x5d5a1c(0x2c5)][_0x5d5a1c(0x215)](_0x2d7a36['id']))throw new Error(_0x5d5a1c(0x2c8));if(this[_0x5d5a1c(0x289)][_0x5d5a1c(0x215)](_0x2d7a36['id']))throw new Error(_0x5d5a1c(0x2c8));if(_0x2d7a36[_0x5d5a1c(0x304)]!==_0x5d5a1c(0x285))throw new Error(_0x5d5a1c(0x2c8));if(this[_0x5d5a1c(0x2f2)][_0x5d5a1c(0x215)](_0x2d7a36['id']))throw new Error(_0x5d5a1c(0x254));const _0x47d3e5=sessionTitleFromFirstMessage(_0x5ad7c7[_0x5d5a1c(0x2e8)]),_0x4e8f0f=_0x47d3e5[_0x5d5a1c(0x299)]>0x20a4+0x1*0x210c+-0x41b0&&!this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x28c)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id']),_0xee7444=runtimeModels(_0x1207d2[_0x5d5a1c(0x30f)]),_0x24318b=this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x1fa)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id']);let _0xf871e0,_0x5652f4,_0x3e4a35,_0x272700;const _0x5cbd35=_0x2d7a36[_0x5d5a1c(0x323)]?undefined:this[_0x5d5a1c(0x248)](_0x2d7a36[_0x5d5a1c(0x1d4)]);if(_0x5cbd35!==undefined&&_0x5cbd35!==_0x2d7a36[_0x5d5a1c(0x24f)]){const _0x3144eb=_0x2d7a36[_0x5d5a1c(0x24f)],_0x27272a=_0x5cbd35;try{_0xf871e0=await this[_0x5d5a1c(0x325)](_0x27272a,_0x2d7a36[_0x5d5a1c(0x1d4)]),_0x5652f4=selectModel(_0xf871e0,_0xee7444,_0x5ad7c7[_0x5d5a1c(0x24b)]??_0xf871e0[_0x5d5a1c(0x21c)][_0x5d5a1c(0x1cf)]),_0x3e4a35=resolveMcpServers(_0xf871e0,this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x22b)]??process.env),this[_0x5d5a1c(0x350)](_0x24318b,_0xf871e0),this[_0x5d5a1c(0x1dc)](_0x24318b,_0xf871e0),_0x272700={'previousVersionId':_0x3144eb,'targetVersionId':_0x27272a};}catch(_0x59876b){this[_0x5d5a1c(0x2b9)](_0x2d7a36,_0x3144eb,_0x27272a,_0x59876b);throw new Error(_0x5d5a1c(0x1e7));}}else _0xf871e0=await this[_0x5d5a1c(0x325)](_0x2d7a36[_0x5d5a1c(0x24f)],_0x2d7a36[_0x5d5a1c(0x1d4)]),_0x5652f4=selectModel(_0xf871e0,_0xee7444,_0x5ad7c7[_0x5d5a1c(0x24b)]??_0x2d7a36[_0x5d5a1c(0x24b)]);const _0xd1f5e9=await Promise[_0x5d5a1c(0x352)](_0x5ad7c7[_0x5d5a1c(0x33c)][_0x5d5a1c(0x2c1)](_0x3c0a72=>this[_0x5d5a1c(0x31f)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id'],_0x3c0a72))),_0x1e7c6c=attachmentPrompt(_0x5ad7c7[_0x5d5a1c(0x2e8)],_0xd1f5e9),_0x2e2b65=marAgentGeneratedImagesDirectory(_0x24318b[_0x5d5a1c(0x1e0)],_0x2d7a36[_0x5d5a1c(0x1af)]),_0x2e660=hostedConversationGeneratedImagesDisplayDirectory(_0x2d7a36[_0x5d5a1c(0x1af)]);if(_0x2e2b65===undefined||_0x2e660===undefined)throw new Error(_0x5d5a1c(0x26e));await mkdir(_0x2e2b65,{'recursive':!![],'mode':0x1c0});const _0x35456a=await this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x2fc)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id']),_0x17a0cd=this[_0x5d5a1c(0x350)](_0x24318b,_0xf871e0,_0x2e2b65,_0x2e660,_0x35456a);this[_0x5d5a1c(0x20c)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36,_0x5d5a1c(0x260),this[_0x5d5a1c(0x1a8)]());const _0x3e7a87=[];let _0x5013d4=![];const _0x4de7c7=await this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x32e)][_0x5d5a1c(0x2fa)]({'conversationId':_0x2d7a36['id'],'sessionId':_0x2d7a36[_0x5d5a1c(0x1af)],'clientMessageId':_0x5ad7c7[_0x5d5a1c(0x1b8)],'userPrompt':_0x5ad7c7[_0x5d5a1c(0x2e8)],'prompt':_0x1e7c6c,'attachmentIds':_0x5ad7c7[_0x5d5a1c(0x33c)],'access':_0x5d5a1c(0x2a2),'modelId':_0x5652f4['id'],'models':networkModels(allowedModels(_0xf871e0,_0xee7444),_0xf871e0[_0x5d5a1c(0x33d)][_0x5d5a1c(0x211)]),..._0x1207d2[_0x5d5a1c(0x343)]===undefined?{}:{'runtimeScopeId':_0x1207d2[_0x5d5a1c(0x343)]},'systemInstruction':systemInstruction(_0xf871e0,_0x2e660),'homeDirectory':_0x24318b[_0x5d5a1c(0x1e0)],'workspaceDirectory':_0xf871e0[_0x5d5a1c(0x2c7)],'temporaryDirectory':_0x35456a,'pathMounts':_0x17a0cd,'processExecutor':this[_0x5d5a1c(0x1dc)](_0x24318b,_0xf871e0,_0x35456a,_0x2e2b65,_0x2e660),'mcpServers':_0x3e4a35??resolveMcpServers(_0xf871e0,this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x22b)]??process.env),'webAccess':_0xf871e0[_0x5d5a1c(0x33d)][_0x5d5a1c(0x211)]!==_0x5d5a1c(0x233),'onEvent':_0x59e55f=>{const _0x3cf30e=_0x5d5a1c;if(_0x5013d4)this[_0x3cf30e(0x25c)](_0x2d7a36['id'],_0x59e55f);else _0x3e7a87[_0x3cf30e(0x1e8)](_0x59e55f);}})[_0x5d5a1c(0x2e9)](_0x5be329=>{const _0x46f2a8=_0x5d5a1c;this[_0x46f2a8(0x20c)](_0x1207d2[_0x46f2a8(0x317)],_0x2d7a36,_0x46f2a8(0x338),this[_0x46f2a8(0x1a8)]());if(_0x272700!==undefined){this[_0x46f2a8(0x2b9)](_0x2d7a36,_0x272700[_0x46f2a8(0x35c)],_0x272700[_0x46f2a8(0x219)],_0x5be329);throw new Error(_0x46f2a8(0x1e7));}throw _0x5be329;}),_0xd67a76=_0x4de7c7[_0x5d5a1c(0x1c3)][_0x5d5a1c(0x2c0)];let _0x46eaae=![],_0x1685f6;try{this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x247)]({'conversationId':_0x2d7a36['id'],'clientMessageId':_0x5ad7c7[_0x5d5a1c(0x1b8)],'runId':_0x4de7c7[_0x5d5a1c(0x1c3)]['id'],'userTextPresent':_0x47d3e5[_0x5d5a1c(0x299)]>-0x1f2f+-0x8f8+-0x13*-0x21d,'status':_0x5d5a1c(0x292),'createdAt':_0xd67a76,'updatedAt':_0xd67a76}),_0x46eaae=!![];const _0x245707=this[_0x5d5a1c(0x1a8)]();_0x1685f6=await this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x1d2)]({'conversationId':_0x2d7a36['id'],'modelId':_0x5652f4['id'],'activityAt':_0x245707,..._0x272700===undefined?{}:{'templateVersion':{'expectedActiveVersionId':_0x272700[_0x5d5a1c(0x35c)],'activeVersionId':_0x272700[_0x5d5a1c(0x219)],'maxStorageBytes':_0xf871e0[_0x5d5a1c(0x33d)][_0x5d5a1c(0x2cb)][_0x5d5a1c(0x1d9)]}},..._0x4e8f0f?{'automaticTitle':_0x47d3e5}:{}});}catch(_0xb1aebf){try{_0x4de7c7[_0x5d5a1c(0x351)]();}catch{}const _0x154d7f=await _0x4de7c7[_0x5d5a1c(0x26a)][_0x5d5a1c(0x2e9)](()=>({'status':_0x5d5a1c(0x310),'completedAt':this[_0x5d5a1c(0x1a8)]()}));if(_0x46eaae)try{this[_0x5d5a1c(0x1b1)][_0x5d5a1c(0x27e)][_0x5d5a1c(0x210)](_0x2d7a36['id'],_0x5ad7c7[_0x5d5a1c(0x1b8)],_0x154d7f[_0x5d5a1c(0x304)],_0x154d7f[_0x5d5a1c(0x2a7)]);}catch{}this[_0x5d5a1c(0x20c)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36,_0x5d5a1c(0x338),_0x154d7f[_0x5d5a1c(0x2a7)]);if(_0x272700!==undefined)this[_0x5d5a1c(0x2b9)](_0x2d7a36,_0x272700[_0x5d5a1c(0x35c)],_0x272700[_0x5d5a1c(0x219)],_0xb1aebf);throw _0xb1aebf;}_0x2d7a36=_0x1685f6[_0x5d5a1c(0x261)];if(_0x272700!==undefined)this[_0x5d5a1c(0x276)](_0x2d7a36['id'],{'conversationId':_0x2d7a36['id'],'kind':_0x5d5a1c(0x37a),'upgrade':{'status':_0x5d5a1c(0x2bd),'previousVersionId':_0x272700[_0x5d5a1c(0x35c)],'targetVersionId':_0x272700[_0x5d5a1c(0x219)],'activeVersionId':_0x2d7a36[_0x5d5a1c(0x24f)],'conversation':this[_0x5d5a1c(0x33f)](_0x2d7a36),'error':null}});this[_0x5d5a1c(0x2f2)][_0x5d5a1c(0x21e)](_0x2d7a36['id'],_0x4de7c7),this[_0x5d5a1c(0x20c)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36,_0x5d5a1c(0x292),_0x4de7c7[_0x5d5a1c(0x1c3)][_0x5d5a1c(0x2c0)]);if(_0x1685f6[_0x5d5a1c(0x2cd)])this[_0x5d5a1c(0x276)](_0x2d7a36['id'],{'conversationId':_0x2d7a36['id'],'kind':_0x5d5a1c(0x261),'conversation':this[_0x5d5a1c(0x33f)](_0x2d7a36)});this[_0x5d5a1c(0x276)](_0x2d7a36['id'],{'conversationId':_0x2d7a36['id'],'kind':_0x5d5a1c(0x1c3),'run':_0x4de7c7[_0x5d5a1c(0x1c3)]}),_0x5013d4=!![];for(const _0x449540 of _0x3e7a87)this[_0x5d5a1c(0x25c)](_0x2d7a36['id'],_0x449540);_0x3e7a87[_0x5d5a1c(0x299)]=0x7c5+0x1e43+-0x2608;const _0x561851=_0x4de7c7[_0x5d5a1c(0x26a)][_0x5d5a1c(0x328)](_0x338b9f=>this[_0x5d5a1c(0x272)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id'],_0x5ad7c7[_0x5d5a1c(0x1b8)],_0x4de7c7[_0x5d5a1c(0x1c3)],_0x338b9f),()=>this[_0x5d5a1c(0x272)](_0x1207d2[_0x5d5a1c(0x317)],_0x2d7a36['id'],_0x5ad7c7[_0x5d5a1c(0x1b8)],_0x4de7c7[_0x5d5a1c(0x1c3)],{'status':_0x5d5a1c(0x310),'completedAt':this[_0x5d5a1c(0x1a8)]()}))[_0x5d5a1c(0x2e9)](()=>undefined)[_0x5d5a1c(0x335)](()=>{const _0x3677b5=_0x5d5a1c;this[_0x3677b5(0x2cc)][_0x3677b5(0x1c2)](runInterruptionKey(_0x2d7a36['id'],_0x4de7c7[_0x3677b5(0x1c3)]['id']));if(this[_0x3677b5(0x2f2)][_0x3677b5(0x1b2)](_0x2d7a36['id'])===_0x4de7c7)this[_0x3677b5(0x2f2)][_0x3677b5(0x1c2)](_0x2d7a36['id']);if(this[_0x3677b5(0x1cd)][_0x3677b5(0x1b2)](_0x2d7a36['id'])===_0x561851)this[_0x3677b5(0x1cd)][_0x3677b5(0x1c2)](_0x2d7a36['id']);});return this[_0x5d5a1c(0x1cd)][_0x5d5a1c(0x21e)](_0x2d7a36['id'],_0x561851),void _0x561851,{'conversation':this[_0x5d5a1c(0x33f)](_0x2d7a36),'run':_0x4de7c7[_0x5d5a1c(0x1c3)]};}[_0x4a8d97(0x36b)](_0x28fa27){const _0x32a908=_0x4a8d97;if(this[_0x32a908(0x1ff)])return Promise[_0x32a908(0x1e3)](new Error(_0x32a908(0x2f0)));const _0x1198c9=hostedRequest(_0x28fa27),_0x1e1a49=hostedConversationRollbackInputSchema[_0x32a908(0x374)](_0x1198c9[_0x32a908(0x2ec)]),_0x30bf5c=this[_0x32a908(0x1b1)][_0x32a908(0x27e)][_0x32a908(0x36c)](_0x1198c9[_0x32a908(0x317)],_0x1e1a49[_0x32a908(0x2d8)]);if(_0x30bf5c[_0x32a908(0x304)]!==_0x32a908(0x285)||this[_0x32a908(0x2c5)][_0x32a908(0x215)](_0x30bf5c['id'])||this[_0x32a908(0x289)][_0x32a908(0x215)](_0x30bf5c['id']))return Promise[_0x32a908(0x1e3)](new Error(_0x32a908(0x2c8)));if(this[_0x32a908(0x333)](_0x30bf5c['id'])[_0x32a908(0x304)]!==_0x32a908(0x338)||this[_0x32a908(0x2f2)][_0x32a908(0x215)](_0x30bf5c['id'])||this[_0x32a908(0x1cd)][_0x32a908(0x215)](_0x30bf5c['id'])||[...this[_0x32a908(0x2fb)][_0x32a908(0x355)]()][_0x32a908(0x27a)](_0x1035dc=>_0x1035dc[_0x32a908(0x2e5)](_0x30bf5c['id']+'\x00')))return Promise[_0x32a908(0x1e3)](new Error(_0x32a908(0x254)));const _0x460c59=this[_0x32a908(0x36a)](_0x1198c9,_0x30bf5c,_0x1e1a49);return this[_0x32a908(0x289)][_0x32a908(0x21e)](_0x30bf5c['id'],_0x460c59),void _0x460c59[_0x32a908(0x335)](()=>{const _0x34f129=_0x32a908;if(this[_0x34f129(0x289)][_0x34f129(0x1b2)](_0x30bf5c['id'])===_0x460c59)this[_0x34f129(0x289)][_0x34f129(0x1c2)](_0x30bf5c['id']);})[_0x32a908(0x2e9)](()=>undefined),_0x460c59;}async[_0x4a8d97(0x36a)](_0x204d0b,_0x57d0ec,_0xa60e27){const _0x30b251=_0x4a8d97,_0x2ae0b1=this[_0x30b251(0x1b1)][_0x30b251(0x27e)][_0x30b251(0x1fa)](_0x204d0b[_0x30b251(0x317)],_0x57d0ec['id']),_0x2c7109=(await this[_0x30b251(0x1b1)][_0x30b251(0x32e)][_0x30b251(0x2cf)]({'conversationId':_0x57d0ec['id'],'sessionId':_0x57d0ec[_0x30b251(0x1af)],'homeDirectory':_0x2ae0b1[_0x30b251(0x1e0)],'modelId':_0x57d0ec[_0x30b251(0x24b)]}))[_0x30b251(0x2c1)](_0x12d455=>conversationTurnSchema[_0x30b251(0x374)](_0x12d455)),_0x4ddc89=_0x2c7109[_0x30b251(0x1f6)](_0x290278=>_0x290278['id']===_0xa60e27[_0x30b251(0x2ce)]),_0x27bf26=_0x2c7109[_0x4ddc89],_0x44bf67=_0x27bf26?.[_0x30b251(0x235)][_0x30b251(0x206)](_0x4f43f0=>_0x4f43f0[_0x30b251(0x258)]===_0x30b251(0x265)&&_0x4f43f0[_0x30b251(0x304)]===_0x30b251(0x33a));if(_0x27bf26===undefined||!terminalHostedTurnStatus(_0x27bf26[_0x30b251(0x304)])||_0x44bf67===undefined||_0x27bf26[_0x30b251(0x1b0)]?.[_0x30b251(0x202)]!==_0xa60e27[_0x30b251(0x212)])throw new Error(_0x30b251(0x2c3));let _0xddc827;try{_0xddc827=await this[_0x30b251(0x1b1)][_0x30b251(0x32e)][_0x30b251(0x36b)]({'conversationId':_0x57d0ec['id'],'sessionId':_0x57d0ec[_0x30b251(0x1af)],'homeDirectory':_0x2ae0b1[_0x30b251(0x1e0)],'modelId':_0x57d0ec[_0x30b251(0x24b)],'boundaryTurnId':_0xa60e27[_0x30b251(0x212)]});}catch(_0x90f654){if(_0x90f654 instanceof Error&&_0x90f654[_0x30b251(0x1f5)]===_0x30b251(0x1eb))throw new Error(_0x30b251(0x2c3),{'cause':_0x90f654});throw _0x90f654;}this[_0x30b251(0x1b9)][_0x30b251(0x21e)](_0x57d0ec['id'],(this[_0x30b251(0x1b9)][_0x30b251(0x1b2)](_0x57d0ec['id'])??0x755*-0x1+0x3*-0x489+-0x10c*-0x14)+(0x416*-0x4+-0x1611+0x16*0x1bf)),await this[_0x30b251(0x1b1)][_0x30b251(0x27e)][_0x30b251(0x241)](_0x57d0ec['id'],Math[_0x30b251(0x1b6)](this[_0x30b251(0x1a8)](),_0xddc827[_0x30b251(0x34b)]));const _0x4886c5=await this[_0x30b251(0x252)](_0x204d0b[_0x30b251(0x317)],_0x57d0ec['id'],runtimeModels(_0x204d0b[_0x30b251(0x30f)]),_0x204d0b[_0x30b251(0x323)],!![],_0x2c7109[_0x30b251(0x2b1)](-0x32*-0x2b+-0xc4a+-0x4*-0xf9,_0x4ddc89));return this[_0x30b251(0x2e3)](_0x57d0ec['id'],_0x4886c5),_0x4886c5;}async[_0x4a8d97(0x272)](_0x74d2fe,_0x38b153,_0x5afa10,_0x5335b4,_0x8dd4a2){const _0x1e2333=_0x4a8d97,_0x2f0842=runInterruptionKey(_0x38b153,_0x5335b4['id']),_0x291b3d=this[_0x1e2333(0x2cc)][_0x1e2333(0x215)](_0x2f0842);let _0xc0bac1;try{this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x210)](_0x38b153,_0x5afa10,_0x8dd4a2[_0x1e2333(0x304)],_0x8dd4a2[_0x1e2333(0x2a7)]);try{const _0x1bae3f=await this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x2fd)](_0x74d2fe,_0x38b153);this[_0x1e2333(0x276)](_0x38b153,{'conversationId':_0x38b153,'kind':_0x1e2333(0x208),'files':_0x1bae3f,'error':null});}catch(_0x25cc9b){this[_0x1e2333(0x276)](_0x38b153,{'conversationId':_0x38b153,'kind':_0x1e2333(0x208),'files':this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x2ac)](_0x74d2fe,_0x38b153),'error':{'code':safeErrorCode(_0x25cc9b,_0x1e2333(0x1b7)),'message':_0x1e2333(0x1f9)}});}await this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x241)](_0x38b153,_0x8dd4a2[_0x1e2333(0x2a7)]),this[_0x1e2333(0x276)](_0x38b153,{'conversationId':_0x38b153,'kind':_0x1e2333(0x1c3),'run':{'id':_0x5335b4['id'],'status':_0x8dd4a2[_0x1e2333(0x304)],'startedAt':_0x5335b4[_0x1e2333(0x2c0)],'completedAt':_0x8dd4a2[_0x1e2333(0x2a7)]}}),await this[_0x1e2333(0x22f)](_0x38b153,_0x8dd4a2[_0x1e2333(0x1a6)],_0x8dd4a2[_0x1e2333(0x2a7)])[_0x1e2333(0x2e9)](()=>undefined),_0xc0bac1=this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x36c)](_0x74d2fe,_0x38b153);}finally{this[_0x1e2333(0x2cc)][_0x1e2333(0x1c2)](_0x2f0842);if(_0xc0bac1===undefined)try{_0xc0bac1=this[_0x1e2333(0x1b1)][_0x1e2333(0x27e)][_0x1e2333(0x36c)](_0x74d2fe,_0x38b153);}catch{}if(_0xc0bac1!==undefined)this[_0x1e2333(0x20c)](_0x74d2fe,_0xc0bac1,_0x1e2333(0x338),_0x8dd4a2[_0x1e2333(0x2a7)]);}if(_0xc0bac1!==undefined&&(_0x8dd4a2[_0x1e2333(0x304)]!==_0x1e2333(0x1de)||!_0x291b3d))this[_0x1e2333(0x2c6)](_0x74d2fe,_0xc0bac1,_0x5335b4['id'],_0x8dd4a2);}async[_0x4a8d97(0x22f)](_0x45e9f1,_0x52dbb5,_0x48d19e){const _0x39f280=_0x4a8d97,_0x5b01dd=automaticHostedConversationTitle(_0x52dbb5);if(_0x5b01dd===undefined)return;const _0x39778a=await this[_0x39f280(0x1b1)][_0x39f280(0x27e)][_0x39f280(0x243)](_0x45e9f1,_0x5b01dd,_0x48d19e);if(_0x39778a===undefined)return;this[_0x39f280(0x276)](_0x45e9f1,{'conversationId':_0x45e9f1,'kind':_0x39f280(0x261),'conversation':this[_0x39f280(0x33f)](_0x39778a)});}[_0x4a8d97(0x1be)](_0x18c43d){const _0x23ff37=_0x4a8d97,_0x40b702=hostedRequest(_0x18c43d),_0x42176a=hostedConversationIdInputSchema[_0x23ff37(0x374)](_0x40b702[_0x23ff37(0x2ec)]),_0x247477=this[_0x23ff37(0x1b1)][_0x23ff37(0x27e)][_0x23ff37(0x36c)](_0x40b702[_0x23ff37(0x317)],_0x42176a[_0x23ff37(0x2d8)]),_0x113d86=this[_0x23ff37(0x2f2)][_0x23ff37(0x1b2)](_0x42176a[_0x23ff37(0x2d8)]);if(_0x113d86===undefined)return{'interrupted':![]};const _0x8864c6=runInterruptionKey(_0x247477['id'],_0x113d86[_0x23ff37(0x1c3)]['id']);this[_0x23ff37(0x2cc)][_0x23ff37(0x222)](_0x8864c6);try{const _0x1a181d=_0x113d86[_0x23ff37(0x351)]();if(!_0x1a181d)return this[_0x23ff37(0x2cc)][_0x23ff37(0x1c2)](_0x8864c6),{'interrupted':![]};return this[_0x23ff37(0x20c)](_0x40b702[_0x23ff37(0x317)],_0x247477,_0x23ff37(0x332),this[_0x23ff37(0x1a8)]()),{'interrupted':!![]};}catch(_0x4e17ef){this[_0x23ff37(0x2cc)][_0x23ff37(0x1c2)](_0x8864c6);throw _0x4e17ef;}}async[_0x4a8d97(0x19e)](_0x41f1bc){const _0x5ee739=_0x4a8d97,_0x23f41e=hostedRequest(_0x41f1bc),_0xbaaedf=hostedConversationConfigUpdateInputSchema[_0x5ee739(0x374)](_0x23f41e[_0x5ee739(0x2ec)]),_0x214e73=this[_0x5ee739(0x1b1)][_0x5ee739(0x27e)][_0x5ee739(0x36c)](_0x23f41e[_0x5ee739(0x317)],_0xbaaedf[_0x5ee739(0x2d8)]);if(this[_0x5ee739(0x2c5)][_0x5ee739(0x215)](_0x214e73['id']))throw new Error(_0x5ee739(0x2c8));const _0x22f18d=_0x214e73[_0x5ee739(0x323)]?undefined:this[_0x5ee739(0x248)](_0x214e73[_0x5ee739(0x1d4)]),_0x3e62dc=_0x22f18d??_0x214e73[_0x5ee739(0x24f)],_0x5c6cb8=await this[_0x5ee739(0x325)](_0x3e62dc,_0x214e73[_0x5ee739(0x1d4)]),_0x4a6595=runtimeModels(_0x23f41e[_0x5ee739(0x30f)]),_0xcb686d=selectModel(_0x5c6cb8,_0x4a6595,_0xbaaedf[_0x5ee739(0x24b)]??_0x214e73[_0x5ee739(0x24b)]),_0x1196ba=this[_0x5ee739(0x1a8)](),_0x12bbbe=await this[_0x5ee739(0x1b1)][_0x5ee739(0x27e)][_0x5ee739(0x21a)](_0x214e73['id'],_0x211cbf=>({..._0x211cbf,'modelId':_0xcb686d['id'],'updatedAt':_0x1196ba,'lastActivityAt':_0x1196ba}));return this[_0x5ee739(0x276)](_0x214e73['id'],{'conversationId':_0x214e73['id'],'kind':_0x5ee739(0x2b6),'conversation':this[_0x5ee739(0x33f)](_0x12bbbe)}),{'conversation':this[_0x5ee739(0x33f)](_0x12bbbe)};}async[_0x4a8d97(0x2b0)](_0x1c61ef){const _0x219cf3=_0x4a8d97,_0x5eab09=hostedRequest(_0x1c61ef),_0x1452c5=hostedConversationMetadataUpdateInputSchema[_0x219cf3(0x374)](_0x5eab09[_0x219cf3(0x2ec)]),_0x85a810=this[_0x219cf3(0x1b1)][_0x219cf3(0x27e)][_0x219cf3(0x36c)](_0x5eab09[_0x219cf3(0x317)],_0x1452c5[_0x219cf3(0x2d8)]);if(this[_0x219cf3(0x2c5)][_0x219cf3(0x215)](_0x85a810['id']))throw new Error(_0x219cf3(0x2c8));const _0x484eb0=this[_0x219cf3(0x1a8)](),_0x41ddda=await this[_0x219cf3(0x1b1)][_0x219cf3(0x27e)][_0x219cf3(0x21a)](_0x85a810['id'],_0x3b69cf=>({..._0x3b69cf,'title':_0x1452c5[_0x219cf3(0x1a6)]??_0x3b69cf[_0x219cf3(0x1a6)],'titleSource':_0x1452c5[_0x219cf3(0x1a6)]===undefined?_0x3b69cf[_0x219cf3(0x1ca)]:_0x219cf3(0x236),'pinnedAt':_0x1452c5[_0x219cf3(0x25f)]===undefined?_0x3b69cf[_0x219cf3(0x1cc)]:_0x1452c5[_0x219cf3(0x25f)]?_0x484eb0:null,'updatedAt':_0x484eb0,'lastActivityAt':_0x3b69cf[_0x219cf3(0x34b)]}));return this[_0x219cf3(0x276)](_0x85a810['id'],{'conversationId':_0x85a810['id'],'kind':_0x219cf3(0x2b6),'conversation':this[_0x219cf3(0x33f)](_0x41ddda)}),{'conversation':this[_0x219cf3(0x33f)](_0x41ddda)};}async[_0x4a8d97(0x2ac)](_0x559be1){const _0x2d4903=_0x4a8d97,_0x520010=hostedRequest(_0x559be1),_0x12bbcd=hostedConversationIdInputSchema[_0x2d4903(0x374)](_0x520010[_0x2d4903(0x2ec)]);return hostedConversationFilesSchema[_0x2d4903(0x374)]({'files':this[_0x2d4903(0x1b1)][_0x2d4903(0x27e)][_0x2d4903(0x2ac)](_0x520010[_0x2d4903(0x317)],_0x12bbcd[_0x2d4903(0x2d8)])});}async[_0x4a8d97(0x2dd)](_0x2469bb){const _0x21f08c=_0x4a8d97,_0x52fc23=hostedRequest(_0x2469bb),_0xae5404=hostedConversationImageReadInputSchema[_0x21f08c(0x374)](_0x52fc23[_0x21f08c(0x2ec)]);this[_0x21f08c(0x1b1)][_0x21f08c(0x27e)][_0x21f08c(0x36c)](_0x52fc23[_0x21f08c(0x317)],_0xae5404[_0x21f08c(0x2d8)]);if(_0xae5404[_0x21f08c(0x1c9)]!==hostedConversationImageRunId(_0xae5404[_0x21f08c(0x2d8)]))throw new Error(_0x21f08c(0x32a));const _0x4810c3=await this[_0x21f08c(0x1b1)][_0x21f08c(0x2dd)](_0xae5404[_0x21f08c(0x1c9)],_0xae5404[_0x21f08c(0x1e9)]);if(_0x4810c3===undefined)throw new Error(_0x21f08c(0x1f7));return{'image':_0x4810c3};}async[_0x4a8d97(0x237)](_0x2f104d){const _0x3e0b5b=_0x4a8d97,_0x32d2ff=hostedRequest(_0x2f104d),_0x243b7e=hostedConversationFileReadInputSchema[_0x3e0b5b(0x374)](_0x32d2ff[_0x3e0b5b(0x2ec)]),_0x812446=this[_0x3e0b5b(0x1b1)][_0x3e0b5b(0x27e)][_0x3e0b5b(0x225)](_0x32d2ff[_0x3e0b5b(0x317)],_0x243b7e[_0x3e0b5b(0x2d8)],_0x243b7e[_0x3e0b5b(0x2c9)]),_0x1e084c=this[_0x3e0b5b(0x1b1)][_0x3e0b5b(0x27e)][_0x3e0b5b(0x20d)](_0x32d2ff[_0x3e0b5b(0x317)],_0x812446),_0x5f79a=_0x243b7e[_0x3e0b5b(0x306)]??-0xb6f*-0x2+-0x1*0xef0+-0x7ee,_0x28182b=Math[_0x3e0b5b(0x266)](_0x243b7e[_0x3e0b5b(0x239)]??MAX_FILE_READ_BYTES,MAX_FILE_READ_BYTES),_0x46c6c2=await openRegularFile(_0x1e084c);try{const _0x8768d1=await _0x46c6c2[_0x3e0b5b(0x345)]();assertRegularFileMetadata(_0x8768d1);const _0x14e3e0=await regularFileMetadata(_0x1e084c);if(!sameFileIdentity(_0x8768d1,_0x14e3e0))throw new Error(_0x3e0b5b(0x29c));if(_0x5f79a>_0x8768d1[_0x3e0b5b(0x32d)])throw new Error(_0x3e0b5b(0x23a));const _0xa21cc8=Buffer[_0x3e0b5b(0x245)](Math[_0x3e0b5b(0x266)](_0x28182b,Math[_0x3e0b5b(0x1b6)](0x1752+0x2232+0xe61*-0x4,_0x8768d1[_0x3e0b5b(0x32d)]-_0x5f79a))),_0x497059=await _0x46c6c2[_0x3e0b5b(0x1ab)](_0xa21cc8,0x76f+-0x1b37+0x13c8,_0xa21cc8[_0x3e0b5b(0x299)],_0x5f79a),_0x3c5ffe=await _0x46c6c2[_0x3e0b5b(0x345)](),_0x201886=await regularFileMetadata(_0x1e084c);if(!sameFileSnapshot(_0x8768d1,_0x3c5ffe)||!sameFileSnapshot(_0x3c5ffe,_0x201886))throw new Error(_0x3e0b5b(0x29c));const _0x598869=_0x5f79a+_0x497059[_0x3e0b5b(0x2d6)],_0x14406e=_0x598869>=_0x3c5ffe[_0x3e0b5b(0x32d)],_0x5c86da={..._0x812446,'size':_0x3c5ffe[_0x3e0b5b(0x32d)],'updatedAt':Math[_0x3e0b5b(0x1b6)](_0x812446[_0x3e0b5b(0x270)],safeFileTimestamp(_0x3c5ffe[_0x3e0b5b(0x262)]),safeFileTimestamp(_0x3c5ffe[_0x3e0b5b(0x2a6)]))};return hostedConversationFileReadResultSchema[_0x3e0b5b(0x374)]({'file':_0x5c86da,'encoding':_0x3e0b5b(0x1da),'content':_0xa21cc8[_0x3e0b5b(0x2a3)](0x1c0e+0xb9*0xf+-0x1*0x26e5,_0x497059[_0x3e0b5b(0x2d6)])[_0x3e0b5b(0x226)](_0x3e0b5b(0x1da)),'offset':_0x5f79a,'nextOffset':_0x14406e?null:_0x598869,'eof':_0x14406e});}finally{await _0x46c6c2[_0x3e0b5b(0x376)]();}}async[_0x4a8d97(0x21b)](_0x53a535){const _0x46e651=_0x4a8d97,_0x1e75e6=hostedRequest(_0x53a535),_0x5203e7=hostedConversationFileDeleteInputSchema[_0x46e651(0x374)](_0x1e75e6[_0x46e651(0x2ec)]);this[_0x46e651(0x288)](_0x1e75e6[_0x46e651(0x317)],_0x5203e7[_0x46e651(0x2d8)]);const _0x47800b=_0x5203e7[_0x46e651(0x2d8)]+'\x00'+_0x5203e7[_0x46e651(0x2c9)];if(this[_0x46e651(0x1c6)][_0x46e651(0x215)](_0x47800b))throw new Error(_0x46e651(0x2f3));this[_0x46e651(0x1c6)][_0x46e651(0x222)](_0x47800b);try{const _0x1494df=await this[_0x46e651(0x1b1)][_0x46e651(0x27e)][_0x46e651(0x21b)](_0x1e75e6[_0x46e651(0x317)],_0x5203e7[_0x46e651(0x2d8)],_0x5203e7[_0x46e651(0x2c9)],this[_0x46e651(0x1a8)]()),_0x5796bb=hostedConversationFileDeleteResultSchema[_0x46e651(0x374)]({'deletedFileId':_0x5203e7[_0x46e651(0x2c9)],'files':_0x1494df});return this[_0x46e651(0x276)](_0x5203e7[_0x46e651(0x2d8)],{'conversationId':_0x5203e7[_0x46e651(0x2d8)],'kind':_0x46e651(0x208),'files':_0x5796bb[_0x46e651(0x208)],'error':null}),_0x5796bb;}finally{this[_0x46e651(0x1c6)][_0x46e651(0x1c2)](_0x47800b);}}async[_0x4a8d97(0x26f)](_0x17c473){const _0x3a0d9d=_0x4a8d97,_0x13f9b1=hostedRequest(_0x17c473),_0x3c7138=hostedConversationUploadPreflightInputSchema[_0x3a0d9d(0x374)](_0x13f9b1[_0x3a0d9d(0x2ec)]),_0x26c1fa=this[_0x3a0d9d(0x288)](_0x13f9b1[_0x3a0d9d(0x317)],_0x3c7138[_0x3a0d9d(0x2d8)]),_0x3187d8=await this[_0x3a0d9d(0x325)](_0x26c1fa[_0x3a0d9d(0x24f)],_0x26c1fa[_0x3a0d9d(0x1d4)]),_0x230bdb=this[_0x3a0d9d(0x1b1)][_0x3a0d9d(0x27e)][_0x3a0d9d(0x1fa)](_0x13f9b1[_0x3a0d9d(0x317)],_0x26c1fa['id']),_0x467b0f=await Promise[_0x3a0d9d(0x352)](_0x3c7138[_0x3a0d9d(0x208)][_0x3a0d9d(0x2c1)](async _0x15ee49=>({'name':_0x15ee49[_0x3a0d9d(0x21f)],'status':await this[_0x3a0d9d(0x2a9)](_0x230bdb,_0x26c1fa,_0x3187d8[_0x3a0d9d(0x33d)],_0x15ee49[_0x3a0d9d(0x21f)],_0x15ee49[_0x3a0d9d(0x32d)])})));return hostedConversationUploadPreflightResultSchema[_0x3a0d9d(0x374)]({'files':_0x467b0f});}async[_0x4a8d97(0x2ca)](_0x361881){const _0x60e3ce=_0x4a8d97,_0x1dbbbf=hostedRequest(_0x361881),_0x4e75f9=hostedConversationUploadCreateInputSchema[_0x60e3ce(0x374)](_0x1dbbbf[_0x60e3ce(0x2ec)]),_0x4e1295=this[_0x60e3ce(0x288)](_0x1dbbbf[_0x60e3ce(0x317)],_0x4e75f9[_0x60e3ce(0x2d8)]),_0xea0099=_0x1dbbbf[_0x60e3ce(0x317)]+'\x00'+_0x4e1295['id']+'\x00'+_0x4e75f9[_0x60e3ce(0x2ed)],_0x526001=this[_0x60e3ce(0x30e)][_0x60e3ce(0x1b2)](_0xea0099);if(_0x526001!==undefined){const _0x3e4399=this[_0x60e3ce(0x29f)][_0x60e3ce(0x1b2)](_0x526001);if(_0x3e4399!==undefined)return{'upload':hostedConversationUploadSchema[_0x60e3ce(0x374)](uploadProjection(_0x3e4399))};}const _0x2af5dc=await this[_0x60e3ce(0x325)](_0x4e1295[_0x60e3ce(0x24f)],_0x4e1295[_0x60e3ce(0x1d4)]),_0xccc44a=this[_0x60e3ce(0x1b1)][_0x60e3ce(0x27e)][_0x60e3ce(0x1fa)](_0x1dbbbf[_0x60e3ce(0x317)],_0x4e1295['id']),_0x457303=await this[_0x60e3ce(0x2a9)](_0xccc44a,_0x4e1295,_0x2af5dc[_0x60e3ce(0x33d)],_0x4e75f9[_0x60e3ce(0x21f)],_0x4e75f9[_0x60e3ce(0x32d)]);if(_0x457303===_0x60e3ce(0x378)||_0x457303===_0x60e3ce(0x27d))throw new Error(_0x60e3ce(0x2ab));if(_0x457303!==_0x60e3ce(0x1d5))throw new Error(_0x60e3ce(0x29c));const _0x2082bc=this['id'](),_0x562919=join(_0xccc44a[_0x60e3ce(0x318)],'.'+_0x2082bc+_0x60e3ce(0x207)),_0x445f2f=join(_0xccc44a[_0x60e3ce(0x318)],_0x4e75f9[_0x60e3ce(0x21f)]),_0x1c52ca=await open(_0x562919,'wx',-0xca+0x11cb+-0x1b*0x93);await _0x1c52ca[_0x60e3ce(0x376)]();const _0x13746c={'uploadId':_0x2082bc,'conversationId':_0x4e1295['id'],'userId':_0x1dbbbf[_0x60e3ce(0x317)],'clientRequestId':_0x4e75f9[_0x60e3ce(0x2ed)],'name':_0x4e75f9[_0x60e3ce(0x21f)],'mimeType':_0x4e75f9[_0x60e3ce(0x347)],'size':_0x4e75f9[_0x60e3ce(0x32d)],'temporaryPath':_0x562919,'targetPath':_0x445f2f,'receivedBytes':0x0,'status':_0x60e3ce(0x27f)};return this[_0x60e3ce(0x29f)][_0x60e3ce(0x21e)](_0x2082bc,_0x13746c),this[_0x60e3ce(0x30e)][_0x60e3ce(0x21e)](_0xea0099,_0x2082bc),{'upload':hostedConversationUploadSchema[_0x60e3ce(0x374)](uploadProjection(_0x13746c))};}async[_0x4a8d97(0x1f4)](_0xcd1178){const _0x4680d4=_0x4a8d97,_0x20dbdc=hostedRequest(_0xcd1178),_0x5e0b5d=hostedConversationUploadChunkInputSchema[_0x4680d4(0x374)](_0x20dbdc[_0x4680d4(0x2ec)]),_0x3d18ba=this[_0x4680d4(0x249)](_0x20dbdc[_0x4680d4(0x317)],_0x5e0b5d[_0x4680d4(0x2d8)],_0x5e0b5d[_0x4680d4(0x27c)]);if(_0x3d18ba[_0x4680d4(0x304)]!==_0x4680d4(0x27f))throw new Error(_0x4680d4(0x356));if(_0x5e0b5d[_0x4680d4(0x306)]!==_0x3d18ba[_0x4680d4(0x1f0)])throw new Error(_0x4680d4(0x34a));const _0x4dcd85=Buffer[_0x4680d4(0x2f7)](_0x5e0b5d[_0x4680d4(0x268)],_0x4680d4(0x1da));if(_0x3d18ba[_0x4680d4(0x1f0)]+_0x4dcd85[_0x4680d4(0x2d0)]>_0x3d18ba[_0x4680d4(0x32d)])throw new Error(_0x4680d4(0x2fe));await assertUploadTemporaryFile(_0x3d18ba[_0x4680d4(0x1c0)],_0x3d18ba[_0x4680d4(0x1f0)]);const _0x542ffa=await open(_0x3d18ba[_0x4680d4(0x1c0)],'r+');try{await _0x542ffa[_0x4680d4(0x2db)](_0x4dcd85,0x1714*-0x1+0x9*-0xa0+0x16*0x14e,_0x4dcd85[_0x4680d4(0x2d0)],_0x3d18ba[_0x4680d4(0x1f0)]);}finally{await _0x542ffa[_0x4680d4(0x376)]();}return _0x3d18ba[_0x4680d4(0x1f0)]+=_0x4dcd85[_0x4680d4(0x2d0)],{'upload':hostedConversationUploadSchema[_0x4680d4(0x374)](uploadProjection(_0x3d18ba))};}[_0x4a8d97(0x1db)](_0x4e5f71){const _0x4890e8=_0x4a8d97,_0x366d7c=hostedRequest(_0x4e5f71),_0xaa6ec9=hostedConversationUploadControlInputSchema[_0x4890e8(0x374)](_0x366d7c[_0x4890e8(0x2ec)]),_0x55d339=this[_0x4890e8(0x249)](_0x366d7c[_0x4890e8(0x317)],_0xaa6ec9[_0x4890e8(0x2d8)],_0xaa6ec9[_0x4890e8(0x27c)]);return{'upload':hostedConversationUploadSchema[_0x4890e8(0x374)](uploadProjection(_0x55d339))};}async[_0x4a8d97(0x275)](_0x5b0762){const _0x45cd76=_0x4a8d97,_0x1c5bbd=hostedRequest(_0x5b0762),_0x12bbc7=hostedConversationUploadControlInputSchema[_0x45cd76(0x374)](_0x1c5bbd[_0x45cd76(0x2ec)]),_0x46e500=this[_0x45cd76(0x249)](_0x1c5bbd[_0x45cd76(0x317)],_0x12bbc7[_0x45cd76(0x2d8)],_0x12bbc7[_0x45cd76(0x27c)]);if(_0x46e500[_0x45cd76(0x304)]===_0x45cd76(0x33a))return{'upload':hostedConversationUploadSchema[_0x45cd76(0x374)](uploadProjection(_0x46e500))};if(_0x46e500[_0x45cd76(0x304)]!==_0x45cd76(0x27f)||_0x46e500[_0x45cd76(0x1f0)]!==_0x46e500[_0x45cd76(0x32d)])throw new Error(_0x45cd76(0x2b5));const _0x701e17=this[_0x45cd76(0x288)](_0x1c5bbd[_0x45cd76(0x317)],_0x46e500[_0x45cd76(0x2d8)]),_0x354eda=await this[_0x45cd76(0x325)](_0x701e17[_0x45cd76(0x24f)],_0x701e17[_0x45cd76(0x1d4)]);if(_0x46e500[_0x45cd76(0x32d)]>_0x354eda[_0x45cd76(0x33d)][_0x45cd76(0x2cb)][_0x45cd76(0x1ee)]||_0x701e17[_0x45cd76(0x2d9)][_0x45cd76(0x280)]+_0x46e500[_0x45cd76(0x32d)]>_0x701e17[_0x45cd76(0x2d9)][_0x45cd76(0x19d)])throw new Error(_0x45cd76(0x2ab));await assertUploadTemporaryFile(_0x46e500[_0x45cd76(0x1c0)],_0x46e500[_0x45cd76(0x32d)]);const _0x1c411c=await lstat(_0x46e500[_0x45cd76(0x20a)])[_0x45cd76(0x2e9)](_0x122f0b=>{const _0x40a10a=_0x45cd76;if(_0x122f0b[_0x40a10a(0x354)]===_0x40a10a(0x2a5))return undefined;throw _0x122f0b;});if(_0x1c411c!==undefined)throw new Error(_0x45cd76(0x29c));const _0x2ecd8e=await open(_0x46e500[_0x45cd76(0x1c0)],'r+');try{await _0x2ecd8e[_0x45cd76(0x2a8)]();}finally{await _0x2ecd8e[_0x45cd76(0x376)]();}await rename(_0x46e500[_0x45cd76(0x1c0)],_0x46e500[_0x45cd76(0x20a)]);const _0x23ed2a=this[_0x45cd76(0x1a8)]();try{await utimes(_0x46e500[_0x45cd76(0x20a)],new Date(_0x23ed2a),new Date(_0x23ed2a));const _0x4ac5a4={'id':this[_0x45cd76(0x1b1)][_0x45cd76(0x27e)][_0x45cd76(0x2ae)](_0x46e500[_0x45cd76(0x2d8)],_0x45cd76(0x32f),_0x46e500[_0x45cd76(0x21f)]),'conversationId':_0x46e500[_0x45cd76(0x2d8)],'category':_0x45cd76(0x32f),'relativePath':_0x46e500[_0x45cd76(0x21f)],'displayName':_0x46e500[_0x45cd76(0x21f)],'mimeType':_0x46e500[_0x45cd76(0x347)],'size':_0x46e500[_0x45cd76(0x32d)],'source':_0x45cd76(0x1b4),'createdAt':_0x23ed2a,'updatedAt':_0x23ed2a};return _0x46e500[_0x45cd76(0x257)]=await this[_0x45cd76(0x1b1)][_0x45cd76(0x27e)][_0x45cd76(0x227)](_0x1c5bbd[_0x45cd76(0x317)],_0x4ac5a4),_0x46e500[_0x45cd76(0x304)]=_0x45cd76(0x33a),this[_0x45cd76(0x276)](_0x46e500[_0x45cd76(0x2d8)],{'conversationId':_0x46e500[_0x45cd76(0x2d8)],'kind':_0x45cd76(0x208),'files':this[_0x45cd76(0x1b1)][_0x45cd76(0x27e)][_0x45cd76(0x2ac)](_0x1c5bbd[_0x45cd76(0x317)],_0x46e500[_0x45cd76(0x2d8)]),'error':null}),{'upload':hostedConversationUploadSchema[_0x45cd76(0x374)](uploadProjection(_0x46e500))};}catch(_0x12a9b0){await rename(_0x46e500[_0x45cd76(0x20a)],_0x46e500[_0x45cd76(0x1c0)])[_0x45cd76(0x2e9)](()=>undefined);throw _0x12a9b0;}}async[_0x4a8d97(0x32b)](_0x18d645){const _0xceba86=_0x4a8d97,_0xed7aac=hostedRequest(_0x18d645),_0x851dab=hostedConversationUploadControlInputSchema[_0xceba86(0x374)](_0xed7aac[_0xceba86(0x2ec)]),_0x26c546=this[_0xceba86(0x249)](_0xed7aac[_0xceba86(0x317)],_0x851dab[_0xceba86(0x2d8)],_0x851dab[_0xceba86(0x27c)]);if(_0x26c546[_0xceba86(0x304)]===_0xceba86(0x33a))throw new Error(_0xceba86(0x356));return _0x26c546[_0xceba86(0x304)]=_0xceba86(0x1a5),await rm(_0x26c546[_0xceba86(0x1c0)],{'force':!![]}),{'upload':hostedConversationUploadSchema[_0xceba86(0x374)](uploadProjection(_0x26c546))};}async[_0x4a8d97(0x1c2)](_0x585c2c){const _0x59997d=_0x4a8d97,_0x679e16=hostedRequest(_0x585c2c),_0x5a2ba6=hostedConversationIdInputSchema[_0x59997d(0x374)](_0x679e16[_0x59997d(0x2ec)]),_0xc1d227=this[_0x59997d(0x1b1)][_0x59997d(0x27e)][_0x59997d(0x36c)](_0x679e16[_0x59997d(0x317)],_0x5a2ba6[_0x59997d(0x2d8)]);if(this[_0x59997d(0x2c5)][_0x59997d(0x215)](_0xc1d227['id'])||this[_0x59997d(0x289)][_0x59997d(0x215)](_0xc1d227['id']))throw new Error(_0x59997d(0x2c8));this[_0x59997d(0x2c5)][_0x59997d(0x222)](_0xc1d227['id']);try{await this[_0x59997d(0x204)](_0xc1d227['id']);const _0x4713a9=this[_0x59997d(0x2f2)][_0x59997d(0x1b2)](_0xc1d227['id']);if(_0x4713a9!==undefined){const _0x52b240=runInterruptionKey(_0xc1d227['id'],_0x4713a9[_0x59997d(0x1c3)]['id']);this[_0x59997d(0x2cc)][_0x59997d(0x222)](_0x52b240);if(!_0x4713a9[_0x59997d(0x351)]())this[_0x59997d(0x2cc)][_0x59997d(0x1c2)](_0x52b240);}await this[_0x59997d(0x1a1)](_0x679e16[_0x59997d(0x317)],_0xc1d227['id']);const _0xbe0237=this[_0x59997d(0x1b1)][_0x59997d(0x27e)][_0x59997d(0x1fa)](_0x679e16[_0x59997d(0x317)],_0xc1d227['id']);return await this[_0x59997d(0x1b1)][_0x59997d(0x32e)][_0x59997d(0x25b)]({'conversationId':_0xc1d227['id'],'sessionId':_0xc1d227[_0x59997d(0x1af)],'homeDirectory':_0xbe0237[_0x59997d(0x1e0)]})[_0x59997d(0x2e9)](()=>undefined),await this[_0x59997d(0x1cd)][_0x59997d(0x1b2)](_0xc1d227['id'])?.[_0x59997d(0x2e9)](()=>undefined),this[_0x59997d(0x271)](_0xc1d227['id']),await this[_0x59997d(0x1b1)][_0x59997d(0x27e)][_0x59997d(0x1c5)](_0xc1d227['id']),this[_0x59997d(0x1d7)][_0x59997d(0x1c2)](_0xc1d227['id']),this[_0x59997d(0x1b9)][_0x59997d(0x1c2)](_0xc1d227['id']),hostedConversationDeleteResultSchema[_0x59997d(0x374)]({'deletedConversationId':_0xc1d227['id']});}finally{this[_0x59997d(0x2c5)][_0x59997d(0x1c2)](_0xc1d227['id']);}}async[_0x4a8d97(0x204)](_0x777196){const _0x1498b9=_0x4a8d97,_0x633a03=_0x777196+'\x00',_0x2b0983=[...this[_0x1498b9(0x2fb)][_0x1498b9(0x1c8)]()][_0x1498b9(0x34e)](([_0x58869f])=>_0x58869f[_0x1498b9(0x2e5)](_0x633a03))[_0x1498b9(0x2c1)](([,_0x558152])=>_0x558152);await Promise[_0x1498b9(0x322)](_0x2b0983);}async[_0x4a8d97(0x1d6)](_0x5d6807){const _0x46a775=_0x4a8d97;try{const _0x41ddf2=await this[_0x46a775(0x1b2)]({'conversationId':_0x5d6807[_0x46a775(0x2d8)],'__requestUserId':_0x5d6807[_0x46a775(0x317)],'__marAgentModels':_0x5d6807[_0x46a775(0x30f)]});if(this[_0x46a775(0x25e)][_0x46a775(0x1b2)](_0x5d6807[_0x46a775(0x2a4)])!==_0x5d6807)return;this[_0x46a775(0x1b1)][_0x46a775(0x29a)]?.({'type':_0x46a775(0x25d),'workbenchConnectionId':_0x5d6807[_0x46a775(0x2f5)],'watchId':_0x5d6807[_0x46a775(0x2f4)],'nodeGeneration':_0x5d6807[_0x46a775(0x201)],'nodeId':this[_0x46a775(0x1b1)][_0x46a775(0x2e2)](),'templateId':_0x5d6807[_0x46a775(0x1d4)],'conversationId':_0x5d6807[_0x46a775(0x2d8)],'revision':0x1,'snapshotSequence':++this[_0x46a775(0x375)],'expiresAt':_0x5d6807[_0x46a775(0x336)],'payload':_0x41ddf2}),_0x5d6807[_0x46a775(0x24d)]=!![];for(const _0x1736ae of _0x5d6807[_0x46a775(0x2d1)])this[_0x46a775(0x35b)](_0x5d6807,_0x1736ae);_0x5d6807[_0x46a775(0x2d1)][_0x46a775(0x299)]=-0xad+-0xd04+-0x1*-0xdb1;}catch(_0x198cad){if(this[_0x46a775(0x25e)][_0x46a775(0x1b2)](_0x5d6807[_0x46a775(0x2a4)])!==_0x5d6807)return;this[_0x46a775(0x1b1)][_0x46a775(0x29a)]?.({'type':_0x46a775(0x279),'workbenchConnectionId':_0x5d6807[_0x46a775(0x2f5)],'watchType':_0x46a775(0x287),'watchId':_0x5d6807[_0x46a775(0x2f4)],'nodeGeneration':_0x5d6807[_0x46a775(0x201)],'nodeId':this[_0x46a775(0x1b1)][_0x46a775(0x2e2)](),'templateId':_0x5d6807[_0x46a775(0x1d4)],'conversationId':_0x5d6807[_0x46a775(0x2d8)],'code':safeErrorCode(_0x198cad,_0x46a775(0x370)),'message':_0x46a775(0x312)}),this[_0x46a775(0x1e2)](_0x5d6807[_0x46a775(0x2a4)]);}}[_0x4a8d97(0x2e3)](_0x10ed61,_0x58f50e){const _0x51a7e2=_0x4a8d97;for(const _0x3574cf of this[_0x51a7e2(0x25e)][_0x51a7e2(0x2d4)]()){if(_0x3574cf[_0x51a7e2(0x2d8)]!==_0x10ed61||!_0x3574cf[_0x51a7e2(0x24d)])continue;this[_0x51a7e2(0x1b1)][_0x51a7e2(0x29a)]?.({'type':_0x51a7e2(0x25d),'workbenchConnectionId':_0x3574cf[_0x51a7e2(0x2f5)],'watchId':_0x3574cf[_0x51a7e2(0x2f4)],'nodeGeneration':_0x3574cf[_0x51a7e2(0x201)],'nodeId':this[_0x51a7e2(0x1b1)][_0x51a7e2(0x2e2)](),'templateId':_0x3574cf[_0x51a7e2(0x1d4)],'conversationId':_0x3574cf[_0x51a7e2(0x2d8)],'revision':0x1,'snapshotSequence':++this[_0x51a7e2(0x375)],'expiresAt':_0x3574cf[_0x51a7e2(0x336)],'payload':_0x58f50e});}}[_0x4a8d97(0x333)](_0x380190){const _0x1ca0a6=_0x4a8d97;return this[_0x1ca0a6(0x1d7)][_0x1ca0a6(0x1b2)](_0x380190)??{'status':_0x1ca0a6(0x338),'version':0x0,'updatedAt':0x0};}[_0x4a8d97(0x33f)](_0x50fa69){const _0x5e6525=_0x4a8d97;return hostedConversationSummary(_0x50fa69,this[_0x5e6525(0x333)](_0x50fa69['id']));}[_0x4a8d97(0x20c)](_0x382bfc,_0x571d02,_0x3b048b,_0x41ec84){const _0x38f264=_0x4a8d97,_0x11f7cb=this[_0x38f264(0x333)](_0x571d02['id']),_0x2cc916={'status':_0x3b048b,'version':_0x11f7cb[_0x38f264(0x1cb)]+(-0x3a*0x11+-0xd+0x3e8),'updatedAt':_0x41ec84};this[_0x38f264(0x1d7)][_0x38f264(0x21e)](_0x571d02['id'],_0x2cc916),this[_0x38f264(0x1fe)]({'kind':_0x38f264(0x333),'userId':_0x382bfc,'templateId':_0x571d02[_0x38f264(0x1d4)],'conversationId':_0x571d02['id'],'activity':_0x2cc916});}[_0x4a8d97(0x2c6)](_0x5b6ddc,_0xa66749,_0xa0738b,_0x197d4e){const _0x37b7ba=_0x4a8d97;this[_0x37b7ba(0x1fe)]({'kind':_0x37b7ba(0x1fb),'event':{'runId':_0xa0738b,'sequence':0x1,'eventType':_0x37b7ba(0x1fb),'payload':{'targetType':_0x37b7ba(0x1bc),'userId':_0x5b6ddc,'templateId':_0xa66749[_0x37b7ba(0x1d4)],'conversationId':_0xa66749['id'],'conversationTitle':_0xa66749[_0x37b7ba(0x1a6)],'runId':_0xa0738b,'notificationId':_0x37b7ba(0x251)+this[_0x37b7ba(0x1b1)][_0x37b7ba(0x2e2)]()+':'+_0xa66749['id']+':'+_0xa0738b,'kind':_0x37b7ba(0x2d2),'outcome':_0x197d4e[_0x37b7ba(0x304)],'occurredAt':_0x197d4e[_0x37b7ba(0x2a7)]},'createdAt':_0x197d4e[_0x37b7ba(0x2a7)]}});}[_0x4a8d97(0x1fe)](_0x3e143f){const _0x574ead=_0x4a8d97,_0x323c64=this[_0x574ead(0x1b1)][_0x574ead(0x1b5)]?.(_0x3e143f)??{'sequence':++this[_0x574ead(0x2e4)],'category':_0x574ead(0x287),'payload':_0x3e143f};if(_0x323c64!==undefined)this[_0x574ead(0x1b1)][_0x574ead(0x2a1)]?.(_0x323c64);}[_0x4a8d97(0x2b9)](_0x220865,_0x152d32,_0x361cea,_0x2c8298){const _0x436604=_0x4a8d97;this[_0x436604(0x276)](_0x220865['id'],{'conversationId':_0x220865['id'],'kind':_0x436604(0x37a),'upgrade':{'status':_0x436604(0x310),'previousVersionId':_0x152d32,'targetVersionId':_0x361cea,'activeVersionId':_0x220865[_0x436604(0x24f)],'conversation':this[_0x436604(0x33f)](_0x220865),'error':{'code':safeErrorCode(_0x2c8298,_0x436604(0x1e7)),'message':_0x436604(0x1ec)}}});}[_0x4a8d97(0x276)](_0x329dd0,_0x290bd0){const _0x1c2e5f=_0x4a8d97,_0x302370=[...this[_0x1c2e5f(0x25e)][_0x1c2e5f(0x2d4)]()][_0x1c2e5f(0x34e)](_0x497c20=>_0x497c20[_0x1c2e5f(0x2d8)]===_0x329dd0);if(_0x302370[_0x1c2e5f(0x299)]===0x1*-0x20a2+0x3*0x2e9+0x17e7)return![];const _0x5570a0=this[_0x1c2e5f(0x1b1)][_0x1c2e5f(0x1b5)]?.(_0x290bd0)??{'sequence':++this[_0x1c2e5f(0x2e4)],'category':_0x1c2e5f(0x287),'payload':_0x290bd0};if(_0x5570a0===undefined)return![];for(const _0x4c4ee6 of _0x302370){if(!_0x4c4ee6[_0x1c2e5f(0x24d)])_0x4c4ee6[_0x1c2e5f(0x2d1)][_0x1c2e5f(0x1e8)](_0x5570a0);else this[_0x1c2e5f(0x35b)](_0x4c4ee6,_0x5570a0);}return!![];}[_0x4a8d97(0x35b)](_0x3aa04c,_0x21d934){const _0x15e5c4=_0x4a8d97;this[_0x15e5c4(0x1b1)][_0x15e5c4(0x29a)]?.({'type':_0x15e5c4(0x281),'workbenchConnectionId':_0x3aa04c[_0x15e5c4(0x2f5)],'watchId':_0x3aa04c[_0x15e5c4(0x2f4)],'nodeGeneration':_0x3aa04c[_0x15e5c4(0x201)],'nodeId':this[_0x15e5c4(0x1b1)][_0x15e5c4(0x2e2)](),'templateId':_0x3aa04c[_0x15e5c4(0x1d4)],'conversationId':_0x3aa04c[_0x15e5c4(0x2d8)],'expiresAt':_0x3aa04c[_0x15e5c4(0x336)],'event':_0x21d934});}[_0x4a8d97(0x23f)](_0x414b24){const _0x3f58db=_0x4a8d97;return{'accepted':!![],'watchId':_0x414b24[_0x3f58db(0x2f4)],'nodeGeneration':_0x414b24[_0x3f58db(0x201)],'expiresAt':_0x414b24[_0x3f58db(0x336)]};}[_0x4a8d97(0x271)](_0x1ba866){const _0x569c01=_0x4a8d97;for(const _0x3066e7 of[...this[_0x569c01(0x25e)][_0x569c01(0x2d4)]()])if(_0x3066e7[_0x569c01(0x2d8)]===_0x1ba866)this[_0x569c01(0x1e2)](_0x3066e7[_0x569c01(0x2a4)]);}[_0x4a8d97(0x1e2)](_0x5e39f0){const _0x19bd87=_0x4a8d97,_0x3c8365=this[_0x19bd87(0x25e)][_0x19bd87(0x1b2)](_0x5e39f0);if(_0x3c8365===undefined)return;clearTimeout(_0x3c8365[_0x19bd87(0x368)]),this[_0x19bd87(0x25e)][_0x19bd87(0x1c2)](_0x5e39f0),this[_0x19bd87(0x223)][_0x19bd87(0x1dd)](_0x5e39f0,_0x3c8365[_0x19bd87(0x2d7)]);}[_0x4a8d97(0x216)](_0x3cd951){const _0x2b9f5c=_0x4a8d97,_0xa47444=setTimeout(()=>this[_0x2b9f5c(0x1e2)](_0x3cd951),WATCH_TTL_MS);return _0xa47444[_0x2b9f5c(0x330)](),_0xa47444;}[_0x4a8d97(0x288)](_0x35ba0c,_0x38ad44){const _0x4a40a6=_0x4a8d97,_0x5c180d=this[_0x4a40a6(0x1b1)][_0x4a40a6(0x27e)][_0x4a40a6(0x36c)](_0x35ba0c,_0x38ad44);if(this[_0x4a40a6(0x2c5)][_0x4a40a6(0x215)](_0x5c180d['id']))throw new Error(_0x4a40a6(0x2c8));if(_0x5c180d[_0x4a40a6(0x304)]!==_0x4a40a6(0x285))throw new Error(_0x4a40a6(0x2c8));return _0x5c180d;}[_0x4a8d97(0x249)](_0x1f459a,_0x2003c4,_0x42a83d){const _0x526e77=_0x4a8d97;this[_0x526e77(0x1b1)][_0x526e77(0x27e)][_0x526e77(0x36c)](_0x1f459a,_0x2003c4);const _0x575be0=this[_0x526e77(0x29f)][_0x526e77(0x1b2)](_0x42a83d);if(_0x575be0===undefined||_0x575be0[_0x526e77(0x317)]!==_0x1f459a||_0x575be0[_0x526e77(0x2d8)]!==_0x2003c4)throw new Error(_0x526e77(0x353));return _0x575be0;}async[_0x4a8d97(0x1a1)](_0x1e0987,_0xdef9e){const _0x256937=_0x4a8d97;for(const _0x47f56d of this[_0x256937(0x29f)][_0x256937(0x2d4)]()){if(_0x47f56d[_0x256937(0x317)]!==_0x1e0987||_0x47f56d[_0x256937(0x2d8)]!==_0xdef9e)continue;_0x47f56d[_0x256937(0x304)]===_0x256937(0x27f)&&(_0x47f56d[_0x256937(0x304)]=_0x256937(0x1a5),await rm(_0x47f56d[_0x256937(0x1c0)],{'force':!![]})[_0x256937(0x2e9)](()=>undefined));}}async[_0x4a8d97(0x31f)](_0x462a02,_0x5a5a38,_0x134904){const _0x22c5c2=_0x4a8d97,_0x6c8927=this[_0x22c5c2(0x1b1)][_0x22c5c2(0x27e)][_0x22c5c2(0x225)](_0x462a02,_0x5a5a38,_0x134904);if(_0x6c8927[_0x22c5c2(0x1d3)]!==_0x22c5c2(0x32f))throw new Error(_0x22c5c2(0x1b3));return await assertRegularFile(this[_0x22c5c2(0x1b1)][_0x22c5c2(0x27e)][_0x22c5c2(0x20d)](_0x462a02,_0x6c8927),_0x6c8927[_0x22c5c2(0x32d)]),_0x6c8927;}async[_0x4a8d97(0x2a9)](_0xc868dc,_0x43a7c8,_0x4391a2,_0xc9ddf0,_0x30bb6c){const _0x2a4926=_0x4a8d97;if(_0x30bb6c>_0x4391a2[_0x2a4926(0x2cb)][_0x2a4926(0x1ee)])return _0x2a4926(0x27d);if(_0x43a7c8[_0x2a4926(0x2d9)][_0x2a4926(0x280)]+_0x30bb6c>_0x43a7c8[_0x2a4926(0x2d9)][_0x2a4926(0x19d)])return _0x2a4926(0x378);const _0x128e53=await lstat(join(_0xc868dc[_0x2a4926(0x318)],_0xc9ddf0))[_0x2a4926(0x2e9)](_0x3ebdb6=>{const _0x5b9d54=_0x2a4926;if(_0x3ebdb6[_0x5b9d54(0x354)]===_0x5b9d54(0x2a5))return undefined;throw _0x3ebdb6;});return _0x128e53===undefined?_0x2a4926(0x1d5):_0x2a4926(0x348);}[_0x4a8d97(0x350)](_0x123564,_0x5430a9,_0x4f5c5f,_0x371d84,_0x254b2f){const _0x5cf46f=_0x4a8d97,_0x237e1b=[{'logicalPath':_0x5cf46f(0x1ac),'physicalPath':_0x5430a9[_0x5cf46f(0x2c7)],'writable':![]},{'logicalPath':_0x5cf46f(0x2f8),'physicalPath':_0x123564[_0x5cf46f(0x318)],'writable':!![]},{'logicalPath':_0x5cf46f(0x224),'physicalPath':_0x123564[_0x5cf46f(0x2ea)],'writable':!![]}];if(_0x254b2f!==undefined)_0x237e1b[_0x5cf46f(0x1e8)]({'logicalPath':_0x5cf46f(0x26b),'physicalPath':_0x254b2f,'writable':!![]});if(_0x4f5c5f!==undefined&&_0x371d84!==undefined)_0x237e1b[_0x5cf46f(0x1e8)]({'logicalPath':_0x371d84,'physicalPath':_0x4f5c5f,'writable':![]});if(_0x5430a9[_0x5cf46f(0x1ae)]!==undefined)_0x237e1b[_0x5cf46f(0x1e8)]({'logicalPath':_0x5430a9[_0x5cf46f(0x1ae)],'physicalPath':_0x5430a9[_0x5cf46f(0x2c7)],'writable':![]},{'logicalPath':join(_0x5430a9[_0x5cf46f(0x1ae)],_0x5cf46f(0x2df)),'physicalPath':_0x123564[_0x5cf46f(0x318)],'writable':!![]},{'logicalPath':join(_0x5430a9[_0x5cf46f(0x1ae)],_0x5cf46f(0x2e7)),'physicalPath':_0x123564[_0x5cf46f(0x2ea)],'writable':!![]});return _0x237e1b;}[_0x4a8d97(0x1dc)](_0x320491,_0x5a39fe,_0x44057e=_0x320491[_0x4a8d97(0x35e)],_0x4bb561,_0x53a47e){const _0x3e81e2=_0x4a8d97;return this[_0x3e81e2(0x1b1)][_0x3e81e2(0x35a)]({'policyVersion':HOST_POLICY_VERSION,'workspaceDirectory':_0x5a39fe[_0x3e81e2(0x2c7)],..._0x5a39fe[_0x3e81e2(0x1ae)]===undefined?{}:{'sourceWorkspacePath':_0x5a39fe[_0x3e81e2(0x1ae)]},'inboxDirectory':_0x320491[_0x3e81e2(0x318)],'outputDirectory':_0x320491[_0x3e81e2(0x2ea)],..._0x4bb561===undefined||_0x53a47e===undefined?{}:{'generatedImagesDirectory':_0x4bb561,'generatedImagesLogicalPath':_0x53a47e},'temporaryDirectory':_0x44057e,'networkMode':_0x5a39fe[_0x3e81e2(0x33d)][_0x3e81e2(0x211)]});}[_0x4a8d97(0x248)](_0x57c48f){const _0x7c819f=_0x4a8d97,_0x1eb1fe=this[_0x7c819f(0x1b1)][_0x7c819f(0x35d)][_0x7c819f(0x253)][_0x7c819f(0x30a)](_0x7c819f(0x1e1))[_0x7c819f(0x1b2)](_0x57c48f);if(_0x1eb1fe===undefined)return undefined;if(typeof _0x1eb1fe['id']!==_0x7c819f(0x1fc))throw new Error(_0x7c819f(0x1c1));return _0x1eb1fe['id'];}async[_0x4a8d97(0x325)](_0x2cf56b,_0x3ac312){const _0x5066c5=_0x4a8d97,_0x743e4c=this[_0x5066c5(0x1b1)][_0x5066c5(0x35d)][_0x5066c5(0x253)][_0x5066c5(0x30a)](_0x5066c5(0x331))[_0x5066c5(0x1b2)](_0x2cf56b,_0x3ac312);if(_0x743e4c===undefined||_0x743e4c[_0x5066c5(0x304)]!==_0x5066c5(0x242)&&_0x743e4c[_0x5066c5(0x304)]!==_0x5066c5(0x34f)||_0x743e4c[_0x5066c5(0x273)]!==HOST_POLICY_VERSION||typeof _0x743e4c[_0x5066c5(0x30c)]!==_0x5066c5(0x1fc)||typeof _0x743e4c[_0x5066c5(0x339)]!==_0x5066c5(0x1fc)||typeof _0x743e4c[_0x5066c5(0x23b)]!==_0x5066c5(0x1fc)||typeof _0x743e4c[_0x5066c5(0x1f1)]!==_0x5066c5(0x1fc)||typeof _0x743e4c[_0x5066c5(0x365)]!==_0x5066c5(0x1fc))throw new Error(_0x5066c5(0x1c1));const _0x352725=this[_0x5066c5(0x1b1)][_0x5066c5(0x27e)][_0x5066c5(0x2ff)](_0x743e4c[_0x5066c5(0x30c)]),_0x5daff1=join(_0x352725,_0x5066c5(0x321)),_0x5976cd=join(_0x352725,_0x5066c5(0x283)),_0x17afb8=await lstat(_0x5daff1)[_0x5066c5(0x2e9)](()=>undefined),_0x437cc1=await lstat(_0x5976cd)[_0x5066c5(0x2e9)](()=>undefined);if(_0x17afb8===undefined||!_0x17afb8[_0x5066c5(0x1ce)]()||_0x17afb8[_0x5066c5(0x373)]()||_0x437cc1===undefined||!_0x437cc1[_0x5066c5(0x2bb)]()||_0x437cc1[_0x5066c5(0x373)]()||(_0x437cc1[_0x5066c5(0x1e5)]&-0x1633*0x1+0x1*0x2459+-0x33*0x3d)!==-0x1b95+0x1de9+-0xe7)throw new Error(_0x5066c5(0x1c1));let _0x271a68;try{const _0x5d570c=await readFile(_0x5daff1,_0x5066c5(0x213)),_0x3ff31a=_0x5d570c[_0x5066c5(0x2bf)]('\x0a')?_0x5d570c[_0x5066c5(0x2b1)](0x2668+-0x2*0xda+0xa2*-0x3a,-(0x45*-0x19+0x11f8+0x3be*-0x3)):_0x5d570c;if(_0x3ff31a!==_0x743e4c[_0x5066c5(0x339)]||createHash(_0x5066c5(0x2b3))[_0x5066c5(0x2b4)](_0x3ff31a)[_0x5066c5(0x32c)](_0x5066c5(0x2a0))!==_0x743e4c[_0x5066c5(0x1f1)])throw new Error(_0x5066c5(0x1c1));_0x271a68=JSON[_0x5066c5(0x374)](_0x3ff31a);}catch{throw new Error(_0x5066c5(0x1c1));}if(!record(_0x271a68))throw new Error(_0x5066c5(0x1c1));const _0x564fc6=publishedTemplateSnapshot(_0x271a68),_0x2326b3=publishedTemplateDraft(_0x564fc6[_0x5066c5(0x2b8)],_0x271a68[_0x5066c5(0x33d)]),_0x23366b=_0x2326b3[_0x5066c5(0x33d)],_0x9067f=publishedMcpServers(_0x271a68[_0x5066c5(0x372)]),_0x5348f5=publishedTemplateContentHash(_0x564fc6[_0x5066c5(0x209)],_0x564fc6[_0x5066c5(0x1c8)],_0x564fc6[_0x5066c5(0x2b8)]),_0x445cf5=_0x564fc6[_0x5066c5(0x1c8)][_0x5066c5(0x26d)]((_0x8015cd,_0x431974)=>_0x8015cd+_0x431974[_0x5066c5(0x32d)],0xe*-0xe2+-0x23ff+-0x305b*-0x1);if(_0x271a68[_0x5066c5(0x31d)]!==_0x743e4c[_0x5066c5(0x365)]||createHash(_0x5066c5(0x2b3))[_0x5066c5(0x2b4)](JSON[_0x5066c5(0x25a)](_0x9067f))[_0x5066c5(0x32c)](_0x5066c5(0x2a0))!==_0x743e4c[_0x5066c5(0x365)]||_0x271a68[_0x5066c5(0x214)]!==_0x743e4c[_0x5066c5(0x23b)]||_0x5348f5!==_0x743e4c[_0x5066c5(0x23b)]||_0x743e4c[_0x5066c5(0x315)]!==_0x564fc6[_0x5066c5(0x1c8)][_0x5066c5(0x299)]||_0x743e4c[_0x5066c5(0x1c7)]!==_0x445cf5)throw new Error(_0x5066c5(0x1c1));if(_0x271a68[_0x5066c5(0x324)]!==_0x2cf56b||_0x271a68[_0x5066c5(0x1d4)]!==_0x3ac312||_0x271a68[_0x5066c5(0x2ee)]!==HOST_POLICY_VERSION||_0x23366b[_0x5066c5(0x1d4)]!==_0x3ac312||_0x23366b[_0x5066c5(0x2e2)]!==this[_0x5066c5(0x1b1)][_0x5066c5(0x2e2)]())throw new Error(_0x5066c5(0x1c1));return{'id':_0x2cf56b,'templateId':_0x3ac312,'storageKey':_0x743e4c[_0x5066c5(0x30c)],'templateDirectory':_0x5976cd,..._0x564fc6[_0x5066c5(0x1ae)]===undefined?{}:{'sourceWorkspacePath':_0x564fc6[_0x5066c5(0x1ae)]},'draft':_0x23366b,'modelPolicy':_0x2326b3[_0x5066c5(0x21c)],'mcpServers':_0x9067f};}}function hostedRequest(_0x4969b9){const _0x54fc97=_0x4a8d97;if(!record(_0x4969b9))throw new Error(_0x54fc97(0x32a));const {__requestUserId:_0x3f34fe,__template:_0x2f3761,__marAgentModel:_0x5c62e1,__marAgentModels:_0x2b2099,__marAgentRuntimeScopeId:_0x3766ba,__workspaceWatchSessionHash:_0x2ad7ea,__templateDeleted:_0x44315d,..._0x2253b7}=_0x4969b9;if(typeof _0x3f34fe!==_0x54fc97(0x29d)||!Number[_0x54fc97(0x1f2)](_0x3f34fe)||_0x3f34fe<=-0x1*-0x11bc+0x2210+-0x3*0x1144)throw new Error(_0x54fc97(0x32a));if(_0x44315d!==undefined&&_0x44315d!==!![])throw new Error(_0x54fc97(0x32a));if(_0x3766ba!==undefined&&(typeof _0x3766ba!==_0x54fc97(0x1fc)||_0x3766ba[_0x54fc97(0x299)]===0xbe0+0x1500+-0x20e0))throw new Error(_0x54fc97(0x32a));return{'data':_0x2253b7,'userId':_0x3f34fe,..._0x2f3761===undefined?{}:{'template':_0x2f3761},..._0x5c62e1===undefined?{}:{'model':_0x5c62e1},..._0x2b2099===undefined?{}:{'models':_0x2b2099},..._0x3766ba===undefined?{}:{'runtimeScopeId':_0x3766ba},..._0x2ad7ea===undefined?{}:{'sessionHash':_0x2ad7ea},..._0x44315d===!![]?{'templateDeleted':!![]}:{}};}function requireWatchSessionHash(_0x553d4d){const _0x12e1cf=_0x4a8d97;if(typeof _0x553d4d!==_0x12e1cf(0x1fc)||_0x553d4d[_0x12e1cf(0x299)]===0x171b+-0x1*-0x9b2+-0x20cd)throw new Error(_0x12e1cf(0x32a));return _0x553d4d;}function watchOwnerKey(_0x326169,_0x14fe31){return _0x326169+':'+_0x14fe31;}function runtimeModels(_0x592683){const _0x3a55a6=_0x4a8d97;return marAgentRuntimeModelConfigurationSchema[_0x3a55a6(0x28e)]()[_0x3a55a6(0x374)](_0x592683);}function allowedModels(_0x1c39a0,_0x4c5a6a){const _0x4d135a=_0x4a8d97,_0x1e218c=new Set(_0x1c39a0[_0x4d135a(0x21c)][_0x4d135a(0x1bd)]);return _0x4c5a6a[_0x4d135a(0x34e)](_0x3a5ec6=>_0x3a5ec6[_0x4d135a(0x30d)]&&_0x1e218c[_0x4d135a(0x215)](_0x1c39a0[_0x4d135a(0x21c)][_0x4d135a(0x244)]===_0x4d135a(0x367)?_0x3a5ec6[_0x4d135a(0x24b)]:_0x3a5ec6['id']));}function selectModel(_0x39bd5a,_0x1553c4,_0x31e5dd){const _0x180690=_0x4a8d97,_0x545479=allowedModels(_0x39bd5a,_0x1553c4),_0x357130=_0x545479[_0x180690(0x206)](_0x3a6829=>_0x3a6829['id']===_0x31e5dd);if(_0x357130!==undefined)return _0x357130;const _0x12a7fa=_0x545479[_0x180690(0x206)](_0x129b81=>(_0x39bd5a[_0x180690(0x21c)][_0x180690(0x244)]===_0x180690(0x367)?_0x129b81[_0x180690(0x24b)]:_0x129b81['id'])===_0x39bd5a[_0x180690(0x21c)][_0x180690(0x1cf)]);if(_0x12a7fa!==undefined)return _0x12a7fa;const _0x3a9696=_0x39bd5a[_0x180690(0x21c)][_0x180690(0x1bd)][_0x180690(0x2c1)](_0x21dc6f=>_0x545479[_0x180690(0x206)](_0xdc6f29=>(_0x39bd5a[_0x180690(0x21c)][_0x180690(0x244)]===_0x180690(0x367)?_0xdc6f29[_0x180690(0x24b)]:_0xdc6f29['id'])===_0x21dc6f))[_0x180690(0x206)](_0x5dd3a0=>_0x5dd3a0!==undefined);if(_0x3a9696===undefined)throw new Error(_0x180690(0x238));return _0x3a9696;}function publishedTemplateDraft(_0x148704,_0x5c6a70){const _0x2226f6=_0x4a8d97,_0x4018a4=conversationTemplateDraftSchema[_0x2226f6(0x286)](_0x5c6a70);if(_0x4018a4[_0x2226f6(0x221)]){const {allowedModels:_0x1d2b25,defaultModelId:_0x34ed73,..._0x566513}=_0x4018a4[_0x2226f6(0x2ec)];return{'draft':_0x566513,'modelPolicy':{'identity':_0x2226f6(0x367),'allowedIds':_0x1d2b25[_0x2226f6(0x2c1)](_0x320c73=>_0x320c73[_0x2226f6(0x24b)]),'defaultId':_0x34ed73}};}if(_0x148704!==0x2ec+-0x216c+0x1e81||!record(_0x5c6a70)||_0x2226f6(0x1a7)in _0x5c6a70||!Array[_0x2226f6(0x2da)](_0x5c6a70[_0x2226f6(0x232)]))throw new Error(_0x2226f6(0x1c1));const _0x1f7ec8=_0x5c6a70[_0x2226f6(0x232)],_0x1f4141={..._0x5c6a70};delete _0x1f4141[_0x2226f6(0x232)];const _0xff85a9=conversationTemplateDraftSchema[_0x2226f6(0x286)]({..._0x1f4141,'allowedModels':_0x1f7ec8[_0x2226f6(0x2c1)](_0x48540b=>({'modelId':_0x48540b,'name':_0x48540b}))});if(!_0xff85a9[_0x2226f6(0x221)])throw new Error(_0x2226f6(0x1c1));const {allowedModels:_0x38ecad,defaultModelId:_0x5c443c,..._0x5ca50a}=_0xff85a9[_0x2226f6(0x2ec)];return{'draft':_0x5ca50a,'modelPolicy':{'identity':_0x2226f6(0x1ad),'allowedIds':_0x38ecad[_0x2226f6(0x2c1)](_0x42f32a=>_0x42f32a[_0x2226f6(0x24b)]),'defaultId':_0x5c443c}};}function networkModels(_0x3c74c5,_0x56622f){const _0x388d14=_0x4a8d97;if(_0x56622f!==_0x388d14(0x233))return _0x3c74c5;return _0x3c74c5[_0x388d14(0x2c1)](_0x563ba2=>_0x563ba2[_0x388d14(0x300)]?{..._0x563ba2,'hostedWebSearch':![]}:_0x563ba2);}function publishedMcpServers(_0x133b65){const _0x42847c=_0x4a8d97;if(!Array[_0x42847c(0x2da)](_0x133b65))throw new Error(_0x42847c(0x1c1));return _0x133b65[_0x42847c(0x2c1)](_0x3d18e0=>{const _0x4b262e=_0x42847c;if(!record(_0x3d18e0))throw new Error(_0x4b262e(0x1c1));const _0x466023=Object[_0x4b262e(0x355)](_0x3d18e0)[_0x4b262e(0x334)]()[_0x4b262e(0x2c2)](',');if(_0x466023!==_0x4b262e(0x2bc))throw new Error(_0x4b262e(0x1c1));const _0x2e4bf1=mcpRuntimeDescriptorSchema[_0x4b262e(0x374)](_0x3d18e0[_0x4b262e(0x32e)]),_0x24f923=mcpInstallationConfigurationSchema[_0x4b262e(0x374)](_0x3d18e0[_0x4b262e(0x2b6)]);if(typeof _0x3d18e0['id']!==_0x4b262e(0x1fc)||typeof _0x3d18e0[_0x4b262e(0x2be)]!==_0x4b262e(0x1fc)||typeof _0x3d18e0[_0x4b262e(0x291)]!==_0x4b262e(0x1fc)||typeof _0x3d18e0[_0x4b262e(0x1cb)]!==_0x4b262e(0x1fc)||_0x3d18e0[_0x4b262e(0x1a4)]!==_0x4b262e(0x2ef)&&_0x3d18e0[_0x4b262e(0x1a4)]!==_0x4b262e(0x340)||_0x3d18e0[_0x4b262e(0x2eb)]!==_0x2e4bf1[_0x4b262e(0x2eb)])throw new Error(_0x4b262e(0x1c1));return{'id':_0x3d18e0['id'],'serverName':_0x3d18e0[_0x4b262e(0x2be)],'displayName':_0x3d18e0[_0x4b262e(0x291)],'version':_0x3d18e0[_0x4b262e(0x1cb)],'origin':_0x3d18e0[_0x4b262e(0x1a4)],'transport':_0x2e4bf1[_0x4b262e(0x2eb)],'runtime':_0x2e4bf1,'configuration':_0x24f923};});}function publishedTemplateSnapshot(_0x3e1399){const _0x48a3c1=_0x4a8d97;if(_0x3e1399[_0x48a3c1(0x2b8)]===0x565+0x1bbb+-0x211f){const _0x5d70e6=publishedTemplateFiles(_0x3e1399[_0x48a3c1(0x208)]);return{'schemaVersion':0x1,'directories':legacyPublishedTemplateDirectories(_0x5d70e6),'entries':_0x5d70e6};}if(_0x3e1399[_0x48a3c1(0x2b8)]!==0x1dd7+0xf4c+0x1*-0x2d21||typeof _0x3e1399[_0x48a3c1(0x1ae)]!==_0x48a3c1(0x1fc)||!Array[_0x48a3c1(0x2da)](_0x3e1399[_0x48a3c1(0x209)])||!Array[_0x48a3c1(0x2da)](_0x3e1399[_0x48a3c1(0x1c8)]))throw new Error(_0x48a3c1(0x1c1));validatePublishedSourceWorkspacePath(_0x3e1399[_0x48a3c1(0x1ae)]);const _0x27309f=_0x3e1399[_0x48a3c1(0x209)][_0x48a3c1(0x2c1)](safePublishedTemplateRelativePath);if(new Set(_0x27309f)[_0x48a3c1(0x32d)]!==_0x27309f[_0x48a3c1(0x299)]||_0x27309f[_0x48a3c1(0x250)](_0x48a3c1(0x2df))||_0x27309f[_0x48a3c1(0x250)](_0x48a3c1(0x2e7)))throw new Error(_0x48a3c1(0x1c1));const _0x4eb44a=_0x3e1399[_0x48a3c1(0x1c8)][_0x48a3c1(0x2c1)](publishedTemplateEntry);if(new Set(_0x4eb44a[_0x48a3c1(0x2c1)](_0x358c9d=>_0x358c9d[_0x48a3c1(0x255)]))[_0x48a3c1(0x32d)]!==_0x4eb44a[_0x48a3c1(0x299)])throw new Error(_0x48a3c1(0x1c1));return{'schemaVersion':0x2,'sourceWorkspacePath':_0x3e1399[_0x48a3c1(0x1ae)],'directories':_0x27309f,'entries':_0x4eb44a};}function publishedTemplateEntry(_0x593224){const _0x31000c=_0x4a8d97;if(!record(_0x593224))throw new Error(_0x31000c(0x1c1));if(_0x593224[_0x31000c(0x258)]===_0x31000c(0x326))return publishedTemplateFile(_0x593224,!![]);if(_0x593224[_0x31000c(0x258)]!==_0x31000c(0x28f)||typeof _0x593224[_0x31000c(0x28d)]!==_0x31000c(0x1fc)||_0x593224[_0x31000c(0x28d)][_0x31000c(0x299)]===-0x25d3+0x2629*0x1+-0x1*0x56||_0x593224[_0x31000c(0x28d)][_0x31000c(0x250)]('\x00')||_0x593224[_0x31000c(0x2f1)]!==_0x31000c(0x2f9)&&_0x593224[_0x31000c(0x2f1)]!==_0x31000c(0x269)||typeof _0x593224[_0x31000c(0x298)]!==_0x31000c(0x1fc))throw new Error(_0x31000c(0x1c1));const _0x363ce0=safePublishedTemplateRelativePath(_0x593224[_0x31000c(0x255)]),_0x8127de=safePublishedTemplateSize(_0x593224[_0x31000c(0x32d)]),_0x5582f3=_0x593224[_0x31000c(0x28d)],_0x293b24=_0x593224[_0x31000c(0x2f1)],_0x5706f1=_0x593224[_0x31000c(0x298)];if(_0x8127de!==Buffer[_0x31000c(0x2d0)](_0x5582f3))throw new Error(_0x31000c(0x1c1));if(_0x293b24===_0x31000c(0x2f9))safePublishedTemplateRelativePath(_0x5706f1);else{if(!isAbsolute(_0x5706f1)||!RUNTIME_LINK_ROOTS[_0x31000c(0x27a)](_0x62cc8e=>_0x5706f1===_0x62cc8e||within(_0x62cc8e,_0x5706f1)))throw new Error(_0x31000c(0x1c1));}return{'kind':_0x31000c(0x28f),'relativePath':_0x363ce0,'size':_0x8127de,'linkTarget':_0x5582f3,'targetKind':_0x293b24,'resolvedTarget':_0x5706f1};}function publishedTemplateFiles(_0x3d8abf){const _0x1466d4=_0x4a8d97;if(!Array[_0x1466d4(0x2da)](_0x3d8abf))throw new Error(_0x1466d4(0x1c1));const _0x13b37f=new Set();return _0x3d8abf[_0x1466d4(0x2c1)](_0x5618d6=>{const _0x43001e=_0x1466d4,_0xaaee43=publishedTemplateFile(_0x5618d6);if(_0x13b37f[_0x43001e(0x215)](_0xaaee43[_0x43001e(0x255)]))throw new Error(_0x43001e(0x1c1));return _0x13b37f[_0x43001e(0x222)](_0xaaee43[_0x43001e(0x255)]),_0xaaee43;});}function publishedTemplateFile(_0x3bd50a,_0x196b79=![]){const _0x4ff6c8=_0x4a8d97;if(!record(_0x3bd50a)||_0x196b79&&_0x3bd50a[_0x4ff6c8(0x258)]!==_0x4ff6c8(0x326)||typeof _0x3bd50a[_0x4ff6c8(0x234)]!==_0x4ff6c8(0x366)||typeof _0x3bd50a[_0x4ff6c8(0x2b3)]!==_0x4ff6c8(0x1fc)||!/^[a-f0-9]{64}$/u[_0x4ff6c8(0x346)](_0x3bd50a[_0x4ff6c8(0x2b3)]))throw new Error(_0x4ff6c8(0x1c1));return{'kind':_0x4ff6c8(0x326),'relativePath':safePublishedTemplateRelativePath(_0x3bd50a[_0x4ff6c8(0x255)]),'size':safePublishedTemplateSize(_0x3bd50a[_0x4ff6c8(0x32d)]),'executable':_0x3bd50a[_0x4ff6c8(0x234)],'sha256':_0x3bd50a[_0x4ff6c8(0x2b3)]};}function safePublishedTemplateRelativePath(_0x52dfeb){const _0x55d757=_0x4a8d97;if(typeof _0x52dfeb!==_0x55d757(0x1fc)||_0x52dfeb[_0x55d757(0x299)]===0xc89*0x2+0xc*-0x173+-0x7ae||_0x52dfeb[_0x55d757(0x2e5)]('/')||_0x52dfeb[_0x55d757(0x250)]('\x5c')||_0x52dfeb[_0x55d757(0x307)]('/')[_0x55d757(0x27a)](_0x2c5d1f=>_0x2c5d1f[_0x55d757(0x299)]===-0x7b+0x34d*-0x3+0xa62||_0x2c5d1f==='.'||_0x2c5d1f==='..'))throw new Error(_0x55d757(0x1c1));return _0x52dfeb;}function safePublishedTemplateSize(_0x37315e){const _0x497233=_0x4a8d97;if(!Number[_0x497233(0x1f2)](_0x37315e)||_0x37315e<-0x8*0x31c+-0x249b+0x3d7b)throw new Error(_0x497233(0x1c1));return _0x37315e;}function legacyPublishedTemplateDirectories(_0x155740){const _0x21a45f=_0x4a8d97,_0x3b7d5b=new Set();for(const _0x53a5ff of _0x155740){const _0x1a2964=_0x53a5ff[_0x21a45f(0x255)][_0x21a45f(0x307)]('/');for(let _0x25bcb9=0x1777+-0x5*-0x1da+-0x20b8;_0x25bcb9<_0x1a2964[_0x21a45f(0x299)];_0x25bcb9+=-0x269+0xe7a+0x608*-0x2)_0x3b7d5b[_0x21a45f(0x222)](_0x1a2964[_0x21a45f(0x2b1)](0x10cb+-0x6e2+0x9e9*-0x1,_0x25bcb9)[_0x21a45f(0x2c2)]('/'));}return[..._0x3b7d5b][_0x21a45f(0x334)]((_0x2f027c,_0x5486cd)=>_0x2f027c[_0x21a45f(0x200)](_0x5486cd,_0x21a45f(0x31e)));}function publishedTemplateContentHash(_0x51e7f0,_0x2fec63,_0x16dc9a){const _0x2beee4=_0x4a8d97,_0x4672dd=_0x16dc9a===0x1*0x1ceb+-0x402+-0x18e8?_0x2fec63[_0x2beee4(0x2c1)](_0x12625c=>{const _0x231d64=_0x2beee4;if(_0x12625c[_0x231d64(0x258)]!==_0x231d64(0x326))throw new Error(_0x231d64(0x1c1));return _0x12625c[_0x231d64(0x255)]+'\x00'+_0x12625c[_0x231d64(0x32d)]+'\x00'+_0x12625c[_0x231d64(0x2b3)];})[_0x2beee4(0x2c2)]('\x0a'):[..._0x51e7f0[_0x2beee4(0x2c1)](_0x294d8f=>_0x2beee4(0x359)+_0x294d8f),..._0x2fec63[_0x2beee4(0x2c1)](_0x50cb34=>_0x50cb34[_0x2beee4(0x258)]===_0x2beee4(0x326)?_0x50cb34[_0x2beee4(0x258)]+'\x00'+_0x50cb34[_0x2beee4(0x255)]+'\x00'+_0x50cb34[_0x2beee4(0x32d)]+'\x00'+(_0x50cb34[_0x2beee4(0x234)]?0x148d*0x1+-0xa*-0x143+-0x212a:-0x1*-0x2069+0x1f47+-0x3fb0)+'\x00'+_0x50cb34[_0x2beee4(0x2b3)]:_0x50cb34[_0x2beee4(0x258)]+'\x00'+_0x50cb34[_0x2beee4(0x255)]+'\x00'+_0x50cb34[_0x2beee4(0x32d)]+'\x00'+_0x50cb34[_0x2beee4(0x28d)]+'\x00'+_0x50cb34[_0x2beee4(0x2f1)]+'\x00'+_0x50cb34[_0x2beee4(0x298)])][_0x2beee4(0x2c2)]('\x0a');return createHash(_0x2beee4(0x2b3))[_0x2beee4(0x2b4)](_0x4672dd)[_0x2beee4(0x32c)](_0x2beee4(0x2a0));}function validatePublishedSourceWorkspacePath(_0x947806){const _0x180d78=_0x4a8d97;if(!isAbsolute(_0x947806)||resolve(_0x947806)!==_0x947806||_0x947806==='/'||RESERVED_SANDBOX_ROOTS[_0x180d78(0x27a)](_0x39a5e5=>_0x947806===_0x39a5e5||within(_0x39a5e5,_0x947806)||within(_0x947806,_0x39a5e5)))throw new Error(_0x180d78(0x1c1));}function within(_0x2ef8cd,_0x4c1ebb){const _0x5a115c=_0x4a8d97,_0x11f889=relative(_0x2ef8cd,_0x4c1ebb);return _0x11f889[_0x5a115c(0x299)]>-0x1f17+-0x11dc+0x3*0x1051&&_0x11f889!=='..'&&!_0x11f889[_0x5a115c(0x2e5)]('..'+sep);}function resolveMcpServers(_0x3f2ddd,_0x2373e2){const _0x4e3112=_0x4a8d97,_0x287107=_0x2d5524=>{const _0x34ca98=_0x4e72,_0x57cd86={};for(const [_0x51ad6c,_0x3063a9]of Object[_0x34ca98(0x1c8)](_0x2d5524??{})){const _0xba2d94=_0x2373e2[_0x3063a9[_0x34ca98(0x2dc)]];if(_0xba2d94===undefined)throw new Error(_0x34ca98(0x360));_0x57cd86[_0x51ad6c]=_0xba2d94;}return _0x57cd86;};return _0x3f2ddd[_0x4e3112(0x372)][_0x4e3112(0x220)](_0x4bc353=>{const _0x3f7b18=_0x4e3112;if(_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x2eb)]===_0x3f7b18(0x2de)){if(_0x3f2ddd[_0x3f7b18(0x33d)][_0x3f7b18(0x211)]!==_0x3f7b18(0x2f6))return[];return[{'name':_0x4bc353[_0x3f7b18(0x2be)],'lifecycle':_0x3f7b18(0x1ea),'transport':_0x3f7b18(0x2de),'url':_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x320)],'headers':{..._0x287107(_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x2ba)]),..._0x287107(_0x4bc353[_0x3f7b18(0x2b6)][_0x3f7b18(0x2ba)])}}];}return[{'name':_0x4bc353[_0x3f7b18(0x2be)],'lifecycle':_0x3f7b18(0x1ea),'transport':_0x3f7b18(0x2e0),'command':_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x24a)],'args':[..._0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x341)],..._0x4bc353[_0x3f7b18(0x2b6)][_0x3f7b18(0x27b)]??[]],'environment':{..._0x287107(_0x4bc353[_0x3f7b18(0x32e)][_0x3f7b18(0x33b)]),..._0x287107(_0x4bc353[_0x3f7b18(0x2b6)][_0x3f7b18(0x33b)])}}];});}function hostedConversationSummary(_0x46f77a,_0x347e96){const _0x2d5507=_0x4a8d97;return hostedConversationSummarySchema[_0x2d5507(0x374)]({'id':_0x46f77a['id'],'nodeId':_0x46f77a[_0x2d5507(0x2e2)],'sessionId':_0x46f77a[_0x2d5507(0x1af)],'templateId':_0x46f77a[_0x2d5507(0x1d4)],'templateName':_0x46f77a[_0x2d5507(0x327)],'activeVersionId':_0x46f77a[_0x2d5507(0x24f)],'title':_0x46f77a[_0x2d5507(0x1a6)],'titleSource':_0x46f77a[_0x2d5507(0x1ca)],'pinnedAt':_0x46f77a[_0x2d5507(0x1cc)],'status':_0x46f77a[_0x2d5507(0x304)],'modelId':_0x46f77a[_0x2d5507(0x24b)],'createdAt':_0x46f77a[_0x2d5507(0x270)],'updatedAt':_0x46f77a[_0x2d5507(0x337)],'lastActivityAt':_0x46f77a[_0x2d5507(0x34b)],..._0x347e96===undefined?{}:{'activity':_0x347e96}});}function templateSummary(_0x20d344,_0x2e629f){const _0x4e8530=_0x4a8d97;return conversationTemplateSummarySchema[_0x4e8530(0x374)]({'id':_0x20d344[_0x4e8530(0x1d4)],'nodeId':_0x20d344[_0x4e8530(0x2e2)],'name':_0x20d344[_0x4e8530(0x327)],'description':_0x2e629f[_0x4e8530(0x217)],'status':_0x20d344[_0x4e8530(0x323)]?_0x4e8530(0x28a):_0x4e8530(0x285),'currentVersionId':_0x20d344[_0x4e8530(0x24f)],'available':!_0x20d344[_0x4e8530(0x323)],'createdAt':_0x20d344[_0x4e8530(0x270)],'updatedAt':_0x2e629f[_0x4e8530(0x337)]});}function modelSummary(_0x337611,_0x554cbe){const _0x43cd27=_0x4a8d97;return{'id':_0x337611['id'],'name':_0x337611[_0x43cd27(0x21f)],'protocol':_0x337611[_0x43cd27(0x296)],'baseUrl':_0x337611[_0x43cd27(0x1d0)],'modelId':_0x337611[_0x43cd27(0x24b)],'contextWindowTokens':_0x337611[_0x43cd27(0x240)],'maxOutputTokens':_0x337611[_0x43cd27(0x293)],'inputCapabilities':_0x337611[_0x43cd27(0x349)],'outputCapabilities':_0x337611[_0x43cd27(0x23e)],'reasoningEfforts':_0x337611[_0x43cd27(0x302)],'defaultReasoningEffort':resolveMarAgentDefaultReasoningEffort(_0x337611[_0x43cd27(0x203)],_0x337611[_0x43cd27(0x302)]),'hostedWebSearch':_0x337611[_0x43cd27(0x300)],..._0x337611[_0x43cd27(0x329)]===undefined?{}:{'responsesTransport':_0x337611[_0x43cd27(0x329)]},'responsesPreviousResponseId':_0x337611[_0x43cd27(0x2d5)],'enabled':_0x337611[_0x43cd27(0x30d)],'sortOrder':_0x554cbe,'apiKeyConfigured':!![]};}function systemInstruction(_0x523c81,_0x2eed18){const _0x4d455c=_0x4a8d97,_0x5e1f6c=_0x523c81[_0x4d455c(0x33d)],_0x3d86aa=_0x5e1f6c[_0x4d455c(0x211)]===_0x4d455c(0x233)?_0x4d455c(0x256):_0x4d455c(0x22a);return[_0x4d455c(0x364),_0x4d455c(0x230),_0x4d455c(0x1bb),_0x4d455c(0x309),_0x4d455c(0x36f),_0x4d455c(0x1bf),_0x4d455c(0x2af),_0x4d455c(0x362),_0x4d455c(0x246),_0x4d455c(0x21d),_0x4d455c(0x1d8),_0x4d455c(0x379),_0x4d455c(0x1fd),..._0x2eed18===undefined?[]:[_0x4d455c(0x361)+_0x2eed18+_0x4d455c(0x22d),_0x4d455c(0x284)+_0x2eed18+_0x4d455c(0x34c)+_0x2eed18+_0x4d455c(0x218)],..._0x523c81[_0x4d455c(0x1ae)]===undefined?[]:[_0x4d455c(0x1ef)+_0x523c81[_0x4d455c(0x1ae)]+_0x4d455c(0x371)+join(_0x523c81[_0x4d455c(0x1ae)],_0x4d455c(0x2df))+_0x4d455c(0x31a)+join(_0x523c81[_0x4d455c(0x1ae)],_0x4d455c(0x2e7))+_0x4d455c(0x369)],_0x4d455c(0x24c),_0x3d86aa][_0x4d455c(0x2c2)]('\x0a');}function attachmentPrompt(_0x55c173,_0x48f78c){const _0x181bad=_0x4a8d97;if(_0x48f78c[_0x181bad(0x299)]===0x13a0+-0x65*0x60+0x124*0x10)return _0x55c173;const _0x743a7d=_0x48f78c[_0x181bad(0x2c1)](_0x2e4835=>_0x181bad(0x36e)+_0x2e4835[_0x181bad(0x255)])[_0x181bad(0x2c2)]('\x0a');return''+_0x55c173+(_0x55c173[_0x181bad(0x2e6)]()[_0x181bad(0x299)]===-0x3d0*0x8+-0xe5*-0xb+0x3*0x6e3?'':'\x0a\x0a')+_0x181bad(0x316)+_0x743a7d;}function automaticHostedConversationTitle(_0x32c04d){const _0x4b2874=_0x4a8d97;if(_0x32c04d===undefined)return undefined;const _0x3da420=sessionTitleFromFirstMessage(_0x32c04d);if(_0x3da420[_0x4b2874(0x299)]===-0x1d0*-0x2+-0x1803+0x1463||/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x4b2874(0x346)](_0x3da420))return undefined;return _0x3da420;}function terminalHostedTurnStatus(_0x401847){const _0x186635=_0x4a8d97;return _0x401847===_0x186635(0x2bd)||_0x401847===_0x186635(0x310)||_0x401847===_0x186635(0x1a5)||_0x401847===_0x186635(0x1de)||_0x401847===_0x186635(0x24e);}function runFromMessage(_0x5cd4d1){const _0x3d14d6=_0x4a8d97;return{'id':_0x5cd4d1[_0x3d14d6(0x1c9)],'status':_0x5cd4d1[_0x3d14d6(0x304)],'startedAt':_0x5cd4d1[_0x3d14d6(0x270)],'completedAt':_0x5cd4d1[_0x3d14d6(0x304)]===_0x3d14d6(0x292)?null:_0x5cd4d1[_0x3d14d6(0x337)]};}function runInterruptionKey(_0x378875,_0x1baf14){return _0x378875+'\x00'+_0x1baf14;}function uploadProjection(_0x41f4b6){const _0x55930f=_0x4a8d97;return{'uploadId':_0x41f4b6[_0x55930f(0x27c)],'conversationId':_0x41f4b6[_0x55930f(0x2d8)],'name':_0x41f4b6[_0x55930f(0x21f)],'mimeType':_0x41f4b6[_0x55930f(0x347)],'receivedBytes':_0x41f4b6[_0x55930f(0x1f0)],'size':_0x41f4b6[_0x55930f(0x32d)],'status':_0x41f4b6[_0x55930f(0x304)],..._0x41f4b6[_0x55930f(0x257)]===undefined?{}:{'file':_0x41f4b6[_0x55930f(0x257)]}};}async function assertRegularFile(_0x497f43,_0x3e2433){const _0x3fd058=_0x4a8d97,_0x490783=await regularFileMetadata(_0x497f43);if(_0x490783[_0x3fd058(0x32d)]!==_0x3e2433)throw new Error(_0x3fd058(0x29c));}async function openRegularFile(_0xdacce9){const _0x1c149c=_0x4a8d97;return open(_0xdacce9,constants[_0x1c149c(0x30b)]|constants[_0x1c149c(0x344)])[_0x1c149c(0x2e9)](()=>{const _0x49c1c7=_0x1c149c;throw new Error(_0x49c1c7(0x29c));});}async function regularFileMetadata(_0x231bd4){const _0x1df7e4=_0x4a8d97,_0xfaa74d=await lstat(_0x231bd4)[_0x1df7e4(0x2e9)](()=>{const _0x371104=_0x1df7e4;throw new Error(_0x371104(0x29c));});return assertRegularFileMetadata(_0xfaa74d),_0xfaa74d;}function assertRegularFileMetadata(_0x5d327b){const _0x120b01=_0x4a8d97;if(!_0x5d327b[_0x120b01(0x1ce)]()||_0x5d327b[_0x120b01(0x373)]()||_0x5d327b[_0x120b01(0x301)]!==0x3a6*-0x4+-0x87c+0x1715||!Number[_0x120b01(0x1f2)](_0x5d327b[_0x120b01(0x32d)])||_0x5d327b[_0x120b01(0x32d)]<0x66c+0x3*0xa3+-0x2c7*0x3)throw new Error(_0x120b01(0x29c));}function sameFileIdentity(_0x2f9e84,_0x15702c){const _0x174222=_0x4a8d97;return _0x2f9e84[_0x174222(0x311)]===_0x15702c[_0x174222(0x311)]&&_0x2f9e84[_0x174222(0x22e)]===_0x15702c[_0x174222(0x22e)];}function sameFileSnapshot(_0x403764,_0x1086e3){const _0x19f136=_0x4a8d97;return sameFileIdentity(_0x403764,_0x1086e3)&&_0x403764[_0x19f136(0x301)]===_0x1086e3[_0x19f136(0x301)]&&_0x403764[_0x19f136(0x32d)]===_0x1086e3[_0x19f136(0x32d)]&&_0x403764[_0x19f136(0x262)]===_0x1086e3[_0x19f136(0x262)]&&_0x403764[_0x19f136(0x2a6)]===_0x1086e3[_0x19f136(0x2a6)];}function safeFileTimestamp(_0x5a9216){const _0x522d87=_0x4a8d97;if(!Number[_0x522d87(0x1e6)](_0x5a9216)||_0x5a9216<0xc6f+0x1*-0xf56+0x2e7*0x1)return-0x11*0xf7+0xe0*-0x4+0x13e7;return Math[_0x522d87(0x266)](Number[_0x522d87(0x377)],Math[_0x522d87(0x357)](_0x5a9216));}async function assertUploadTemporaryFile(_0x50de08,_0x20cab5){const _0x430fa6=_0x4a8d97,_0x50b99d=await lstat(_0x50de08)[_0x430fa6(0x2e9)](()=>{const _0x32a72f=_0x430fa6;throw new Error(_0x32a72f(0x356));});if(!_0x50b99d[_0x430fa6(0x1ce)]()||_0x50b99d[_0x430fa6(0x373)]()||_0x50b99d[_0x430fa6(0x301)]!==0x1b26+-0x1a*0xb7+-0x88f||_0x50b99d[_0x430fa6(0x32d)]!==_0x20cab5)throw new Error(_0x430fa6(0x356));}function record(_0x4d0d25){const _0x33db77=_0x4a8d97;return typeof _0x4d0d25===_0x33db77(0x263)&&_0x4d0d25!==null&&!Array[_0x33db77(0x2da)](_0x4d0d25);}function _0x20f4(){const _0x149b1d=['Bg9JywXLq29TCgfYzq','BM9KzuDLBMvYyxrPB24','yMvMB3jL','zgvMyxvSDfjLyxnVBMLUz0vMzM9YDa','D2fPDezVCLbLBMrPBMDnzxnZywDLu3rHCNrZ','DgvTCgXHDgu','zMLUza','lNvWBg9Hza','zMLSzxm','zgLYzwn0B3jPzxm','DgfYz2v0ugf0Aa','ntyYnZq1zvbjwuvc','ChvIBgLZAefJDgL2Axr5','zMLSzvbHDgG','BgLZDa','l2rLDG','zMLUAxnOtwvZC2fNzq','BMv0D29YA01Vzgu','yM91BMrHCNK','DxrMoa','y29UDgvUDeHHC2G','AgfZ','D2f0y2HmzwfZzvrPBwvY','zgvZy3jPChrPB24','ihrVic93B3jRC3bHy2uVB3v0Chv0ihDOzw4GyxzHAwXHyMXLlIbjzIbPDcbPCYbTAxnZAw5NlcbYzxbVCNqGDgHHDcbMywn0oYbYzwDLBMvYyxrLig9UBhKGD2HLBIbYzxf1zxn0zwqGB3iGyxv0Ag9YAxPLzcbIEsb0AguGDxnLCI4','DgfYz2v0vMvYC2LVBKLK','DxbKyxrLq29UDMvYC2f0Aw9U','zgvSzxrLrMLSzq','Bw9KzwXqB2XPy3K','u3rVCMuGzgLZCg9ZywjSzsbPBNrLCM1LzgLHDguGD29YAYbPBIaVDg1WlIbjDcbPCYbYzxvZzwqGywnYB3nZihj1BNmGAw4GDgHPCYbJB252zxjZyxrPB24Sigj1Dcb0AguGsg9ZDcbTyxKGy2XLyxiGAxqGywnJB3jKAw5NihrVihrOzsbZExn0zw0GDgvTCg9Yyxj5lwrPCMvJDg9YEsbSAwzLy3LJBguU','C2v0','BMfTzq','zMXHDe1HCa','C3vJy2vZCW','ywrK','C2vZC2LVBLDHDgnOu2XVDhm','l3DVCMTZCgfJzs9VDxrWDxq','CMvXDwLYzuzPBgu','Dg9tDhjPBMC','CMvNAxn0zxjgAwXL','Dw5RBM93BG','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','tg9JywWGChjVy2vZC2vZlcboB2rLlwXVy2fSifDLyIbgzxrJAcWGyxzHAwXHyMXLifDLyIbtzwfYy2GSig1VzgvSlwHVC3rLzcb3zwiSigfUzcbWDwjSAxnOzwqGCMvTB3rLieHuvfaGtunqig1HEsbHy2nLC3mGBMv0D29YA3mGCMvHy2HHyMXLigzYB20GDgHPCYboB2rLlG','C2vJCMv0rw52AxjVBM1LBNq','n0XsEM5NwG','igrPCMvJDg9YEs4','Aw5V','yxbWBhLbDxrVBwf0AwnuAxrSzq','vgHLieHVC3qGzw5MB3jJzxmGDgHPCYbMAwXLigjVDw5Kyxj5lcbHBMqGBg9JywWGChjVy2vZC2vZihj1BIbPBNnPzguGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','DxnLCLn0B3jHz2vlzxK','ywXSB3DLze1VzgvSswrZ','tK9orq','zxHLy3v0ywjSzq','AxrLBxm','q1vtve9n','CMvHzezPBgu','se9tvevex0nptLzfuLnbveLptL9nt0rftf9ot1rFqvzbsuXbqKXf','BgLTAxq','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jbtKDfx0LovKfmsuq','y29UDgvUDf9OyxnO','CgvUzgLUz0nYzwf0zxm','y3vYC29Y','B3v0Chv0q2fWywjPBgL0AwvZ','ywnJzxb0zwrxyxrJAa','y29UDgv4DfDPBMrVD1rVA2vUCW','ywr2yw5JzuXHC3rby3rPDML0Eq','qvzbsuXbqKXf','C2f2zuf1Dg9TyxrPy1rPDgXL','AwrLBNrPDhK','ywXSB2m','rM9SBg93ihnHDMvKignVBNzLCNnHDgLVBIbPBNn0CNvJDgLVBNmGC3vIAMvJDcb0BYb0AguGsg9ZDcDZihnLy3vYAxr5igjVDw5KyxjPzxmSihrOzsbWDwjSAxnOzwqGDgvTCgXHDguGAw5ZDhj1y3rPB25ZlcbHBMqGDgHLihvZzxiNCYbJDxjYzw50igv4CgXPy2L0ihjLCxvLC3qU','y3jLyxrLtwvZC2fNzq','Bgf0zxn0qxzHAwXHyMXLvgvTCgXHDgvwzxjZAw9Uswq','CMvXDwLYzvvWBg9Hza','y29TBwfUza','Bw9KzwXjza','uMvHzcb1C2vYihvWBg9HzhmGzNjVBsaVD29YA3nWywnLl2LUyM94lG','CMvHzhK','te9tva','ywn0AxzLvMvYC2LVBKLK','Aw5JBhvKzxm','CNvUoG','C25HChnOB3q','CMf3','se9tvevex0nptLzfuLnbveLptL9svu5Fqunusvzf','CMvSyxrPDMvqyxrO','tMv0D29YAYbHy2nLC3mGAxmGzgLZywjSzwqUieXVy2fSihbYB2nLC3nLCYWGv2vIifnLyxjJAcWGv2vIiezLDgnOlcbTB2rLBc1OB3n0zwqGD2vIlcbHBMqGCMvTB3rLieHuvfaGtunqignHBM5VDcb1C2uGDgHLig5LDhDVCMSU','zMLSzq','A2LUza','CMv0ywLUq29UDMvYC2f0Aw9UvgvTCgXHDgu','C3rYAw5NAwz5','CMvSzwfZzvnLC3nPB24','ChvIBgLZAfj1BNrPBwvfDMvUDa','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5ZBMfWC2HVDa','D2f0y2HmzwfZzxm','CgLUBMvK','u1rbuLrjtKC','y29UDMvYC2f0Aw9U','BxrPBwvnCW','B2jQzwn0','ChjLCgfYzuzVCKrPC2fIBgu','DxnLCL9TzxnZywDL','BwLU','nZeZodK2vLDJqMju','zgf0yujHC2u2na','uLvoveLnrq','y29TCgXLDgLVBG','l3rTCa','y3vYCMvUDfzLCNnPB25jza','CMvKDwnL','se9tvevex0nptLzfuLnbveLptL9trvntsu9ox0LovKfmsuq','ChjLzMXPz2H0vxbSB2fK','y3jLyxrLzef0','CMvTB3zLq29UDMvYC2f0Aw9Uv2f0y2HmzwfZzxm','zMLUAxnOuNvU','Ag9ZDf9WB2XPy3LFDMvYC2LVBG','Cgf0AhngB3jnyw5PzMvZDa','y29TCgXLDgvvCgXVywq','ChvIBgLZAeHVC3rLzev2zw50','AxndB252zxjZyxrPB25jBLvZzq','tMv3ignVBNzLCNnHDgLVBG','D2f0y2GUzMfPBgvK','C29Tzq','yxjNDw1LBNrZ','DxbSB2fKswq','ve9px0XbuKDf','C3rVCMu','vvbmt0fesu5h','DxnLzej5DgvZ','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5LDMvUDa','y29UDMvYC2f0Aw9UrgLYzwn0B3j5','y29UDgvUDa','v2HLBIb0AguGDxnLCIbHC2TZihrVihbSywnLigeGChjLDMLVDxnSEsbNzw5LCMf0zwqGAw1Hz2uGAw4GB3v0Chv0lcbPBNnWzwn0ia','qunusvzf','C2fMzvbHCNnL','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','CMvXDwLYzvDYAxrHyMXLq29UDMvYC2f0Aw9U','AgLZDg9YEu11Dgf0Aw9UCW','revmrvrfra','ChjLCgfYzunVBNzLCNnHDgLVBKvUDMLYB25Tzw50','AgfZtM9Urw1WDhLvC2vYtwvZC2fNzq','BgLUA1rHCMDLDa','yxjYyxK','u1LnteLosW','CMvHzfnUyxbZAg90','zgLZCgXHEu5HBwu','uLvotKLorW','Bwf4t3v0Chv0vg9Rzw5Z','y3jLyxrL','l3j1BG','ChjVDg9JB2W','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','CMvZB2X2zwruyxjNzxq','BgvUz3rO','zw1PDfDHDgnOrxzLBNq','y3jLyxrLu2vZC2LVBG','se9tvevex0nptLzfuLnbveLptL9gsuXfx0LovKfmsuq','BNvTyMvY','Cgf0Ahm','DxbSB2fKCW','Agv4','zw1PDfDVCMTIzw5JAev2zw50','zNvSBc1Hy2nLC3m','C3vIyxjYyxK','B3DUzxjlzxK','ru5pru5u','y3rPBwvnCW','y29TCgXLDgvKqxq','C3LUyW','DxbSB2fKuhjLzMXPz2H0u3rHDhvZ','otaYsfzovg5d','se9tvevex0nptLzfuLnbveLptL9rvu9uqv9fwenfrurfra','BgLZDezPBgvZ','C2vZC2LVBKHHC2G','zMLSzvbYB2PLy3rPB25jza','v2HLBIb0AguGDxnLCIbLEhbSAwnPDgX5igfZA3mGEw91ihrVihjLBwvTyMvYigeGCMvXDwLYzw1LBNqSihbYzwzLCMvUy2uSignVBNzLBNrPB24SihDVCMTMBg93ihj1BguSig9Yig90AgvYigD1AwrHBMnLigzVCIbSyxrLCIb3B3jRigLUihrOAxmGy29UDMvYC2f0Aw9UlcbJCMvHDguGB3iGDxbKyxrLic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KlG','DxbKyxrLtwv0ywrHDge','C2XPy2u','l3j1BNrPBwu','C2HHmJu2','DxbKyxrL','se9tvevex0nptLzfuLnbveLptL9vueXpqurFsu5dt01qtevurq','y29UzMLNDxjHDgLVBG','D2f0y2G','C2nOzw1HvMvYC2LVBG','ChvIBgLZAfvWz3jHzgvgywLSDxjL','AgvHzgvYCW','AxneAxjLy3rVCNK','y29UzMLNDxjHDgLVBIXKAxnWBgf5tMfTzsXPzcXVCMLNAw4SCNvUDgLTzsXZzxj2zxjoyw1LlhrYyw5ZCg9YDcX2zxjZAw9U','u1vdq0vfreve','C2vYDMvYtMfTzq','zw5KC1DPDgG','C3rHCNrLzef0','BwfW','AM9PBG','se9tvevex0nptLzfuLnbveLptL9st0XmqKfds19uqvjhrvrFsu5wquXjra','CMvWBgfJzq','y2XLyw51CeXVy2TZ','ChvIBgLZAfrLCM1PBMfStM90AwzPy2f0Aw9U','DgvTCgXHDgveAxjLy3rVCNK','se9tvevex0nptLzfuLnbveLptL9tvefurv9jtLzbteLe','zMLSzuLK','y3jLyxrLvxbSB2fK','CxvVDgfZ','zxHWzwn0zwrjBNrLCNj1ChrPB25Z','DgL0BgvdAgfUz2vK','DhvYBKLK','AgLZDg9YEq','yNL0zuXLBMD0Aa','CgvUzgLUz0v2zw50CW','uLvox1rfuK1jtKfm','l2HVBwuVBwfY','DMfSDwvZ','CMvZCg9UC2vZuhjLDMLVDxnszxnWB25ZzuLK','yNL0zxnszwfK','C2XVDfrVA2vU','y29UDMvYC2f0Aw9Uswq','CxvVDge','AxnbCNjHEq','D3jPDgu','C2vJCMv0tMfTzq','CMvHzeLTywDL','sfruua','Aw5IB3G','u1resu8','nZjzwhruy3C','BM9KzuLK','ChvIBgLZAeHVC3rLzfnUyxbZAg90','D29YA2jLBMnOu2vXDwvUy2u','C3rHCNrZv2L0Aa','DhjPBq','B3v0Chv0','ChjVBxb0','y2f0y2G','B3v0Chv0rgLYzwn0B3j5','DhjHBNnWB3j0','zgf0yq','y2XPzw50uMvXDwvZDeLK','Ag9ZDfbVBgLJEvzLCNnPB24','tK9erq','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','DgfYz2v0s2LUza','ywn0AxzLuNvUCW','se9tvevex0nptLzfuLnbveLptL9gsuXfx0nptKzmsunu','D2f0y2Hjza','D29YA2jLBMnOq29UBMvJDgLVBKLK','vu5srvnuuKLdveve','zNjVBq','l3DVCMTZCgfJzs9PBMjVEa','u05bufnit1q','C3rHCNrsDw4','CgvUzgLUz01LC3nHz2vZ','ChjLCgfYzunVBNzLCNnHDgLVBLrLBxbVCMfYEurPCMvJDg9YEq','CMvJB25JAwXLrMLSzxm','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu0LArv9jtLzbteLe','DgvTCgXHDgvwzxjZAw9UrgLYzwn0B3j5','Ag9ZDgvKv2vIu2vHCMnO','BMXPBMS','CMvHC29UAw5NrwzMB3j0CW','mJy2nunur0LKta','C3rHDhvZ','l2XPyG','B2zMC2v0','C3bSAxq','y3jLyxrLq29UDMvYC2f0Aw9U','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGyw4GAw1TDxrHyMXLigfKBwLUAxn0CMf0B3iTBwfPBNrHAw5Lzcb0zw1WBgf0zsbZBMfWC2HVDc4Gq2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguGBxvZDcbIzsbTywrLigLUigL0CYbZB3vYy2uGv29YA3nWywnLigfUzcbWDwjSAxnOzwqGyxmGysbUzxCGDMvYC2LVBI4','ChjLCgfYzq','t19sre9otfK','C3rVCMfNzv9RzxK','zw5HyMXLza','DxbSB2fKC0j5uMvXDwvZDa','Bw9KzwXZ','rKfjteve','zgv2','sg9ZDgvKignVBNzLCNnHDgLVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','ntu3oti5mKfTthbvsq','zMLUze1LC3nHz2u','zMLSzv9JB3vUDa','qxr0ywnOBwvUDhm6cG','DxnLCKLK','DxbSB2fKC0rPCMvJDg9YEq','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','igfUzca','se9tvevex0nptLzfuLnbveLptL9uru1qtefurv9vtKfwquLmqujmrq','l3vZCG','BwnWq29UzMLNsgfZAa','zw4Tvvm','CMvXDwLYzuf0DgfJAg1LBNq','DxjS','BwfUAwzLC3qUANnVBG','ywXSu2v0DgXLza','DgvTCgXHDgvezwXLDgvK','DMvYC2LVBKLK','Bg9HzfrLBxbSyxrLvMvYC2LVBG','rKLmrq','DgvTCgXHDgvoyw1L','DgHLBG','CMvZCg9UC2vZvhjHBNnWB3j0','se9tvevex0nptLzfuLnbveLptL9ot1rFqvvuse9ssvPfra','y2fUy2vSvxbSB2fK','zgLNzxn0','C2L6zq','CNvUDgLTzq','vvbmt0fe','Dw5Yzwy','u0vmrunuigLKlhrLBxbSyxrLx2LKlhn0yxr1CYXZDg9YywDLx2TLEsXTyw5PzMvZDcXJB250zw50x2HHC2GSBwfUAwzLC3rFAgfZAcXTy3bFy29UzMLNx2HHC2GScIaGicaGicaGicaGicaGicbMAwXLx2nVDw50lhrVDgfSx2j5DgvZlgHVC3rFCg9SAwn5x3zLCNnPB24kicaGicaGicaGrLjptsbJB252zxjZyxrPB25FDgvTCgXHDgvFDMvYC2LVBNmGv0HfuKuGAwq9pYbbtKqGDgvTCgXHDgvFAwq9pW','q0foq0vmteLorW','ywn0AxzPDhK','C29YDa','zMLUywXSEq','zxHWAxjLC0f0','DxbKyxrLzef0','surmrq','BwfUAwzLC3q','q09nueXfveve','zw52AxjVBM1LBNq','yxr0ywnOBwvUDeLKCW','zhjHzNq','Dw53yxrJAa','C3vTBwfYEq','v09ss1nqqunf','yxjNCW','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','CNvUDgLTzvnJB3bLswq','t19ot0zpteXpvW','C3rHDa','DgvZDa','BwLTzvr5Cgu','q09orKXjq1q','Aw5WDxrdyxbHyMLSAxrPzxm','se9tvevex0nptLzfuLnbveLptL9vueXpqurFt0zgu0vux0LovKfmsuq','BgfZDefJDgL2Axr5qxq','igfUzcbJB3b5ihrOzsbLEgLZDgLUzYbMAwXLigzYB20G','zgLZCg9Zzq','zMLSDgvY','uKvuquLoruq','Cgf0Ae1VDw50CW','y2fUy2vS','ywXS','se9tvevex0nptLzfuLnbveLptL9vueXpqurFtK9ux0zpvu5e','y29Kzq','A2v5CW','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu1rbvevFsu5wquXjra','Dhj1BMm','mJKYmtiZnNrKv255ua','reLsrunut1jzaa','ChjVy2vZC0v4zwn1Dg9YrMfJDg9YEq','zw1PDfDHDgnOtgvHC2vfDMvUDa','ChjLDMLVDxnwzxjZAw9Uswq','zgf0ywjHC2u','DgvTCg9Yyxj5uM9VDerPCMvJDg9YEq','l3nIAw4','q09ovKvsu0fusu9ox1rftvbmqvrfx01duf9jtLzbteLe','r2vUzxjHDgvKigLTywDLCYbMCM9TihrOAxmGy29UDMvYC2f0Aw9UihjLBwfPBIbHDMfPBgfIBguGywnYB3nZigv4zwn1DgLVBNmGAw4GDgHLihjLywqTB25SEsa','uMvHzcbPDhmGzxHPC3rPBMCGy29UDgvUDhmGzMLYC3qGyw5KihbYzxnLCNzLihvUCMvSyxrLzcbPBNn0CNvJDgLVBNmUierVig5VDcbWzxjZAxn0igeGChjLzMvYzw5JzsbTzxjLBhKGyMvJyxvZzsbPDcbHChbLyxjZigLUihrOzsbJDxjYzw50ihjLCxvLC3qGDw5SzxnZihrOzsb1C2vYigfZA3mGEw91ihrVihjLBwvTyMvYigL0lG','CMvZB2X2zq','vgHPCYbPCYbHie5VzguTAg9ZDgvKignVBNzLCNnHDgLVBI4GvgHLieHVC3qTzgvJBgfYzwqGBw91BNrZigfYzsb0AguGy29TCgXLDguGzMLSzsbIB3vUzgfYEs4','BwnWx2nVBMzPz19OyxnO','yM9VBgvHBG','vvbtvfjfqu1Ftu9eruXFsuq','DgLTzxi','igfYzsbHBgLHC2vZig9MihrOzsbZyw1LihDYAxrHyMXLig92zxjSyxLZlG','CM9SBgjHy2TdB252zxjZyxrPB24','CM9SBgjHy2S','CMvXDwLYzunVBNzLCNnHDgLVBG','C3rHCNrnzxnZywDL','lsaVD29YA3nWywnLl2LUyM94lW','rg8GBM90igrLC2nYAwjLigvKAxrZihvUzgvYic93B3jRC3bHy2uVAw5IB3GGB3iGl3DVCMTZCgfJzs9VDxrWDxqGyxmGy2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguU','se9tvevex0nptLzfuLnbveLptL9xqvrdsf9gquLmruq','igfZigeGy29TCgf0AwjPBgL0EsbHBgLHCZSGAxqGAxmGDgHLihnHBwuGAw1TDxrHyMXLihnUyxbZAg90lcbUB3qGDgHLigXPDMuGC291CMnLifDVCMTZCgfJzs4G','BwnWu2vYDMvYCW','AxntEw1IB2XPy0XPBMS','CgfYC2u','C25HChnOB3rtzxf1zw5Jzq','y2XVC2u','tufyx1nbrKvFsu5uruDfuG','uvvpvefFrvHdruveruq','ugXHy2uGzMLUywWGzgvSAxzLCMfIBgvZigLUigfWChjVChjPyxrLihbHDgHZihvUzgvYic93B3jRC3bHy2uVB3v0Chv0ihnVihrOzxKGyMvJB21LihvZzxiTDMLZAwjSzsbVDxrWDxrZlG','DxbNCMfKzq','yxzHAwXHyMXL','Bwf4qNL0zxm','DxbKyxrLq29UzMLNDxjHDgLVBG','B3bLCMf0Aw9UCW','revgqvvmva','y2fUy2vSq29UDMvYC2f0Aw9UvxbSB2fKCW','BM9KzufWCfzLCNnPB24','ntqYnteZmfnMB2HKyq','B3jPz2LU','q0foq0vmteve','DgL0Bgu','ywXSB3DLze1VzgvSCW','BM93','y29UDMvYC2f0Aw9Uu3rVCMfNzuTLEq','CMvUzxC','CMvHza','l3DVCMTZCgfJzq','q09orKLhvvjbveLptL9jra','C291CMnLv29YA3nWywnLugf0Aa','C2vZC2LVBKLK','CMv3Aw5K','B3b0Aw9UCW','z2v0','se9tvevex0nptLzfuLnbveLptL9bvfrbq0Hnru5ux0LovKfmsuq','vvnfuG','BMv4DfDVCMTIzw5JAev2zw50','Bwf4','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jfq09oq0Lmrv9gquLmruq','y2XPzw50twvZC2fNzuLK','AgLZDg9YEvzLCNnPB25Z','mJyWnZq1oxv1vxfcyq','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGCM9VDcbPCYbYzwfKlw9UBhKUifDPDgHPBIaVD29YA3nWywnLlcbVBMX5ic93B3jRC3bHy2uVAw5IB3GGyw5Kic93B3jRC3bHy2uVB3v0Chv0igfYzsb3CML0ywjSzs4','se9tvevex0nptLzfuLnbveLptG','ywXSB3DLzeLKCW','Aw50zxjYDxb0','qxqGDgHLihn0yxj0ig9MigvHy2GGCNvUlcbYzwfKic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KigLMigL0igv4Axn0CY4GsxqGC3rVCMvZignVBNzLCNnHDgLVBI1ZCgvJAwzPyYbYzxf1AxjLBwvUDhmGzM9YigXHDgvYihj1BNmGyw5KigLZig5VDcbWyxj0ig9MihrOzsbWDwjSAxnOzwqGDgvTCgXHDguU','DgvTCg9Yyxj5ugf0Aa','q09ovKvsu0fusu9ox1rftvbmqvrfx1zfuLnjt05Fq09suLvqveve','zgvSzxrL','CNvU','zMLUzenVBNzLCNnHDgLVBKj5q2XPzw50uMvXDwvZDa','CgvYBwfUzw50rgvSzxrLq29UDMvYC2f0Aw9U','zMLSzurLBgv0zxm','Dg90ywXFyNL0zxm','zw50CMLLCW','CNvUswq','DgL0BgvtB3vYy2u','DMvYC2LVBG','CgLUBMvKqxq','CNvUu2v0DgXLBwvUDhm','AxngAwXL','zgvMyxvSDeLK','yMfZzvvYBa','l2jPBG','C2f2zu1LC3nHz2vby2nLChrHBMnL','y2f0zwDVCNK','DgvTCgXHDgvjza','uKvbrfK','Aw5PDgLHBgL6zvDHDgnOtgvHC2u','ywn0AxzPDgLLCW','rwfJAcbUzxCGC2fUzgjVEcbWCM9JzxnZigHHCYbHihrLBxbVCMfYEsbit01figf0ic9OB21Ll21HCIWGyxbHCNqGzNjVBsbLEhbSAwnPDgX5ig1VDw50zwqGzgLYzwn0B3jPzxmUierVig5VDcbYzwX5ig9UieHptuuGzMLSzxmGB3iGC2HLBgWGC3rHDguGCgvYC2LZDgLUzYbIzxr3zwvUihrVB2WGzxHLy3v0Aw9UCY4GvxnLic90BxaGzM9YihjLDxnHyMXLigLUDgvYBwvKAwf0zsbMAwXLCYbHBMqGC2v0ihjLCxvPCMvKigvUDMLYB25Tzw50ihzHCMLHyMXLCYbPBIbLywnOignVBw1HBMqU','Bwf4u3rVCMfNzuj5DgvZ','yMfZzty0','DxbSB2fKu3rHDhvZ','ChjVy2vZC0v4zwn1Dg9Y','CMvSzwfZzq','su5urvjsvvburuq','l3bYB2m','Ag9TzurPCMvJDg9YEq','u0vmrunuigLKiezst00Gy29UDMvYC2f0Aw9Ux3rLBxbSyxrLx3zLCNnPB25ZcIaGicaGicaGifDirvjfihrLBxbSyxrLx2LKpt8Gqu5eihn0yxr1CZ0NqvzbsuXbqKXfjWOGicaGicaGicbpuKrfuIbcwsb2zxjZAw9Ux251BwjLCIbervndlhb1yMXPC2HLzf9HDcbervndlgLKierfu0mkicaGicaGicaGteLnsvqGmq','CMvTB3zLv2f0y2HmzwfZzq','CMvQzwn0','B3DUCW','Bw9Kzq','AxngAw5PDgu','se9tvevex0nptLzfuLnbveLptL9vueDsqurfx0zbsuXfra','ChvZAa','Aw1Hz2vjBMrLEa','rvHfq1vusu9o','tufsx0fhru5ux1jpteXcqunlx1rbuKDfvf9jtLzbteLe','vgHLignVBNzLCNnHDgLVBIb0zw1WBgf0zsb1CgDYywrLigzHAwXLzc4','yxnZzxj0q2fUq3jLyxrL','Bwf4vxbSB2fKqNL0zxm','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGywXZBYbTB3vUDgvKihjLywqTB25SEsbHDca','CMvJzwL2zwrcExrLCW','BwfUAwzLC3rFAgfZAa','AxntywzLsw50zwDLCG','BgLZDenVBNzLCNnHDgLVBNm','D3jPDgvvCgXVywrdAhvUAW','BwvZC2fNzq','zMLUzeLUzgv4','uLvox0LnquDfx05pvf9gt1vora','l2XPyJy0','sg9ZDgvKignVBNzLCNnHDgLVBIbMAwXLihbYB2PLy3rPB24GzMfPBgvKlG','Cgf0AhngB3jdB252zxjZyxrPB24','BM90AwzPy2f0Aw9U','C3rYAw5N','v2HLBIbYzxbVCNrPBMCGyw4GB3v0Chv0igzPBguGDg8GDgHLihvZzxiSihvZzsbHie1HCMTKB3DUigXPBMSGAw4GDgHLigv4ywn0igzVCM0Gw3jLBgf0AxzLl3bHDgHDkc93B3jRC3bHy2uVB3v0Chv0l3jLBgf0AxzLl3bHDgGPihnVihrOzsb1C2vYignHBIbVCgvUigL0CYbJB250CM9SBgvKihbYzxzPzxCGB3iGzg93BMXVywqU','ChvIBgLZAfDVCMTIzw5JAev2zw50','zgLZywjSzvbYzxbHCMvK'];_0x20f4=function(){return _0x149b1d;};return _0x20f4();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.57",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"node-pty": "1.1.0",
|
|
26
26
|
"ws": "^8.21.3",
|
|
27
27
|
"zod": "4.4.3",
|
|
28
|
-
"@myagentroam/agent": "^0.9.
|
|
29
|
-
"@myagentroam/protocol": "^0.9.
|
|
28
|
+
"@myagentroam/agent": "^0.9.57",
|
|
29
|
+
"@myagentroam/protocol": "^0.9.57"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/ws": "^8.18.1"
|