@myagentroam/node 0.9.55 → 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 _0x3dba87=_0x24f6;(function(_0x17e6b3,_0x142996){const _0x3efe05=_0x24f6,_0x41997e=_0x17e6b3();while(!![]){try{const _0x512224=parseInt(_0x3efe05(0x242))/(-0x1711*0x1+0x4e4+0x1a*0xb3)*(-parseInt(_0x3efe05(0x1b2))/(0x1*0xd10+0x1f76+-0x25*0x134))+parseInt(_0x3efe05(0x1cc))/(0x37d+0x1*-0x957+0x1*0x5dd)*(-parseInt(_0x3efe05(0x287))/(-0x11*0x18d+-0x93*-0x13+0x3c*0x42))+-parseInt(_0x3efe05(0x273))/(-0x824+0x865*-0x4+-0x1*-0x29bd)+parseInt(_0x3efe05(0x256))/(-0x1f7e+0x1*0x919+0x166b)*(parseInt(_0x3efe05(0x285))/(-0x714+-0x24f1+-0x1606*-0x2))+parseInt(_0x3efe05(0x210))/(0x38*-0x71+-0x1*0x9bd+-0x1b*-0x147)+parseInt(_0x3efe05(0x1dd))/(0x7*-0x243+0x67*0x3b+-0x5*0x193)*(-parseInt(_0x3efe05(0x2dc))/(0xdd*0x29+0x11da+-0x3535))+-parseInt(_0x3efe05(0x199))/(0x222d+0x1*-0x12dd+-0xf45)*(-parseInt(_0x3efe05(0x279))/(-0x15*0xd+0x2*0x44b+-0x779));if(_0x512224===_0x142996)break;else _0x41997e['push'](_0x41997e['shift']());}catch(_0xce55dd){_0x41997e['push'](_0x41997e['shift']());}}}(_0x1027,0x2011*0x3+0x1*0x386d3+0x8304a));import{createHash,randomUUID}from'node:crypto';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=_0x3dba87(0x26c),HOST_POLICY_VERSION=0x2a1*-0x5+0x4da+0x84c,MAX_FILE_READ_BYTES=(0x1f9c+0xd59+-0x2af5*0x1)*(0x2*-0xb8f+0x1a7b+-0x1*-0xa3),WATCH_TTL_MS=0x47d4+0x8a2e*-0x2+0x17c50,RUNTIME_LINK_ROOTS=[_0x3dba87(0x1aa),_0x3dba87(0x2b3),_0x3dba87(0x266),_0x3dba87(0x2a3),_0x3dba87(0x184)],RESERVED_SANDBOX_ROOTS=[_0x3dba87(0x24c),_0x3dba87(0x253),_0x3dba87(0x123),_0x3dba87(0x1aa),_0x3dba87(0x2b3),_0x3dba87(0x266),_0x3dba87(0x2a3),_0x3dba87(0x184),_0x3dba87(0x29a),_0x3dba87(0x18d),_0x3dba87(0x224),_0x3dba87(0x282)];export class HostedConversationNodeService{[_0x3dba87(0x198)];[_0x3dba87(0x190)];['id'];[_0x3dba87(0x135)]=new Map();[_0x3dba87(0x196)]=new Map();[_0x3dba87(0x22f)]=new Map();[_0x3dba87(0x212)]=new Map();[_0x3dba87(0x299)]=new Map();[_0x3dba87(0x215)]=new Set();[_0x3dba87(0x114)]=new Map();[_0x3dba87(0x162)]=new Map();[_0x3dba87(0x1a9)]=new Set();[_0x3dba87(0x26a)]=new Map();[_0x3dba87(0x292)]=new Set();[_0x3dba87(0x225)]=new Map();[_0x3dba87(0x17a)]=new Map();[_0x3dba87(0x15d)];[_0x3dba87(0x127)]=![];[_0x3dba87(0x264)]=0x3*0xcb1+-0x1315*-0x1+-0x725*0x8;[_0x3dba87(0x151)]=-0x249*-0x10+-0x32d*0x2+-0x1e36;constructor(_0x23f69d){const _0x28d59b=_0x3dba87;this[_0x28d59b(0x198)]=_0x23f69d,this[_0x28d59b(0x190)]=_0x23f69d[_0x28d59b(0x190)]??Date[_0x28d59b(0x190)],this['id']=_0x23f69d['id']??randomUUID,this[_0x28d59b(0x15d)]=_0x23f69d[_0x28d59b(0x15d)]??new SessionWatchSlotCoordinator();}[_0x3dba87(0x2bf)](){const _0x42ef36=_0x3dba87;return{'conversation.hosted.list':_0x426bf1=>this[_0x42ef36(0x131)](_0x426bf1),'conversation.hosted.create':_0x427f6f=>this[_0x42ef36(0x158)](_0x427f6f),'conversation.hosted.get':_0x526438=>this[_0x42ef36(0x262)](_0x526438),'conversation.hosted.watch':_0x13f9d0=>this[_0x42ef36(0x29b)](_0x13f9d0),'conversation.hosted.unwatch':_0x23b48d=>this[_0x42ef36(0x1c3)](_0x23b48d),'conversation.hosted.message':_0x3a41df=>this[_0x42ef36(0x27d)](_0x3a41df),'conversation.hosted.rollback':_0x379f68=>this[_0x42ef36(0x153)](_0x379f68),'conversation.hosted.interrupt':_0x3a3188=>this[_0x42ef36(0x20a)](_0x3a3188),'conversation.hosted.config.update':_0x5bb8f8=>this[_0x42ef36(0x165)](_0x5bb8f8),'conversation.hosted.metadata.update':_0x5cd59d=>this[_0x42ef36(0x1b4)](_0x5cd59d),'conversation.hosted.image.read':_0x19fe72=>this[_0x42ef36(0x2d2)](_0x19fe72),'conversation.hosted.files.list':_0x2a93bb=>this[_0x42ef36(0x148)](_0x2a93bb),'conversation.hosted.file.read':_0x24b7fe=>this[_0x42ef36(0x16c)](_0x24b7fe),'conversation.hosted.file.delete':_0x23f90c=>this[_0x42ef36(0x161)](_0x23f90c),'conversation.hosted.files.upload.preflight':_0x4cf216=>this[_0x42ef36(0x146)](_0x4cf216),'conversation.hosted.files.upload.create':_0x11e70b=>this[_0x42ef36(0x1c6)](_0x11e70b),'conversation.hosted.files.upload.chunk':_0x19bdcc=>this[_0x42ef36(0x227)](_0x19bdcc),'conversation.hosted.files.upload.status':_0x3829d3=>this[_0x42ef36(0x2b2)](_0x3829d3),'conversation.hosted.files.upload.complete':_0x3e5884=>this[_0x42ef36(0x12e)](_0x3e5884),'conversation.hosted.files.upload.cancel':_0x1b68f2=>this[_0x42ef36(0x174)](_0x1b68f2),'conversation.hosted.delete':_0x5cf020=>this[_0x42ef36(0x163)](_0x5cf020)};}[_0x3dba87(0x2b7)](){const _0x9dbe7a=_0x3dba87;if(this[_0x9dbe7a(0x127)]||this[_0x9dbe7a(0x196)][_0x9dbe7a(0x1e2)]>-0x2*-0x910+-0x2659+0x1439||this[_0x9dbe7a(0x22f)][_0x9dbe7a(0x1e2)]>0x2327+-0x2220+-0x107*0x1||this[_0x9dbe7a(0x212)][_0x9dbe7a(0x1e2)]>-0x1*0x11df+0x6c*0x47+-0xc15||this[_0x9dbe7a(0x225)][_0x9dbe7a(0x1e2)]>-0x19ac+-0xf68+0x2914)return undefined;return this[_0x9dbe7a(0x127)]=!![],()=>{const _0x247dcb=_0x9dbe7a;this[_0x247dcb(0x127)]=![];};}[_0x3dba87(0x131)](_0x5547b7){const _0x3ae776=_0x3dba87,_0x37826f=hostedRequest(_0x5547b7),_0x1fdfe8=hostedConversationListInputSchema[_0x3ae776(0x116)](_0x37826f[_0x3ae776(0x2ce)]),_0x169fad=this[_0x3ae776(0x198)][_0x3ae776(0x234)][_0x3ae776(0x22b)]({'userId':_0x37826f[_0x3ae776(0x1bb)],'limit':_0x1fdfe8[_0x3ae776(0x1ed)],..._0x1fdfe8[_0x3ae776(0x2af)]===undefined?{}:{'cursor':_0x1fdfe8[_0x3ae776(0x2af)]}});return hostedConversationListPageSchema[_0x3ae776(0x116)]({..._0x169fad,'items':_0x169fad[_0x3ae776(0x2b1)][_0x3ae776(0x2bd)](_0x3f21e0=>({..._0x3f21e0,'activity':this[_0x3ae776(0x1f6)](_0x3f21e0['id'])}))});}[_0x3dba87(0x158)](_0x140f9c){const _0x35cdc7=_0x3dba87;if(this[_0x35cdc7(0x127)])return Promise[_0x35cdc7(0x24d)](new Error(_0x35cdc7(0x203)));const _0x2fa3a9=hostedRequest(_0x140f9c),_0x3f70b1=hostedConversationCreateInputSchema[_0x35cdc7(0x116)](_0x2fa3a9[_0x35cdc7(0x2ce)]),_0x2cb9e9=conversationTemplateSummarySchema[_0x35cdc7(0x116)](_0x2fa3a9[_0x35cdc7(0x2a6)]),_0x39de74=runtimeModels(_0x2fa3a9[_0x35cdc7(0x138)]);if(_0x2cb9e9['id']!==_0x3f70b1[_0x35cdc7(0x1ec)]||_0x2cb9e9[_0x35cdc7(0x23f)]!==this[_0x35cdc7(0x198)][_0x35cdc7(0x23f)]()||!_0x2cb9e9[_0x35cdc7(0x28b)]||_0x2cb9e9[_0x35cdc7(0x1fc)]!==_0x35cdc7(0x2aa)||_0x2cb9e9[_0x35cdc7(0x233)]===null)throw new Error(_0x35cdc7(0x1a0));const _0x1a34cf=_0x2fa3a9[_0x35cdc7(0x1bb)]+'\x00'+_0x3f70b1[_0x35cdc7(0x2e3)],_0x477e65=this[_0x35cdc7(0x135)][_0x35cdc7(0x262)](_0x1a34cf);if(_0x477e65!==undefined)return _0x477e65;const _0x34e423=this[_0x35cdc7(0x198)][_0x35cdc7(0x234)][_0x35cdc7(0x1d8)](_0x2fa3a9[_0x35cdc7(0x1bb)],_0x3f70b1[_0x35cdc7(0x2e3)]);if(_0x34e423!==undefined)return this[_0x35cdc7(0x2ca)](_0x2fa3a9[_0x35cdc7(0x1bb)],_0x34e423['id'],_0x39de74);const _0x2e2b40=this[_0x35cdc7(0x271)](_0x2fa3a9[_0x35cdc7(0x1bb)],_0x3f70b1[_0x35cdc7(0x2e3)],_0x2cb9e9,_0x39de74,_0x2fa3a9[_0x35cdc7(0x13d)]);return this[_0x35cdc7(0x135)][_0x35cdc7(0x1ba)](_0x1a34cf,_0x2e2b40),void _0x2e2b40[_0x35cdc7(0x1c8)](()=>this[_0x35cdc7(0x135)][_0x35cdc7(0x163)](_0x1a34cf))[_0x35cdc7(0x2c9)](()=>undefined),_0x2e2b40;}async[_0x3dba87(0x271)](_0x46df83,_0x3a2740,_0x294ea6,_0x7feaf0,_0x114548){const _0x3d2561=_0x3dba87;await this[_0x3d2561(0x198)][_0x3d2561(0x2b6)]?.();const _0x58e118=await this[_0x3d2561(0x177)](_0x294ea6[_0x3d2561(0x233)],_0x294ea6['id']),_0x3ce155=selectModel(_0x58e118,_0x7feaf0,_0x58e118[_0x3d2561(0x2e4)][_0x3d2561(0x254)]),_0x264e03=this['id'](),_0x460166=await this[_0x3d2561(0x198)][_0x3d2561(0x234)][_0x3d2561(0x2da)](_0x46df83,_0x264e03),_0x3a8e0a=this[_0x3d2561(0x251)](_0x460166[_0x3d2561(0x155)],_0x58e118),_0x58374e=this[_0x3d2561(0x12a)](_0x460166[_0x3d2561(0x155)],_0x58e118);let _0x1fe619;try{const _0x203bd0=await this[_0x3d2561(0x198)][_0x3d2561(0x25a)][_0x3d2561(0x2e6)]({'conversationId':_0x264e03,'homeDirectory':_0x460166[_0x3d2561(0x155)][_0x3d2561(0x24b)],'workspaceDirectory':_0x58e118[_0x3d2561(0x2c4)],'systemInstruction':systemInstruction(_0x58e118),'defaultModelId':_0x3ce155['id'],'models':networkModels(allowedModels(_0x58e118,_0x7feaf0),_0x58e118[_0x3d2561(0x2bb)][_0x3d2561(0x25f)]),..._0x114548===undefined?{}:{'runtimeScopeId':_0x114548},'pathMounts':_0x3a8e0a,'processExecutor':_0x58374e});_0x1fe619=_0x203bd0[_0x3d2561(0x26b)];const _0x2d68ba=this[_0x3d2561(0x190)](),_0x3588d7={'id':_0x264e03,'nodeId':this[_0x3d2561(0x198)][_0x3d2561(0x23f)](),'sessionId':_0x1fe619,'templateId':_0x294ea6['id'],'templateName':_0x294ea6[_0x3d2561(0x2c1)],'activeVersionId':_0x58e118['id'],'title':DEFAULT_HOSTED_CONVERSATION_TITLE,'titleSource':_0x3d2561(0x277),'pinnedAt':null,'status':_0x3d2561(0x2aa),'modelId':_0x3ce155['id'],'createdAt':_0x2d68ba,'updatedAt':_0x2d68ba,'lastActivityAt':_0x2d68ba,'userStorageKey':_0x460166[_0x3d2561(0x29f)],'conversationStorageKey':_0x460166[_0x3d2561(0x194)],'clientRequestId':_0x3a2740,'templateDeleted':![],'quota':{'usedBytes':0x0,'maxBytes':_0x58e118[_0x3d2561(0x2bb)][_0x3d2561(0x126)][_0x3d2561(0x1d2)]}},_0x6d1584=await this[_0x3d2561(0x198)][_0x3d2561(0x234)][_0x3d2561(0x271)](_0x3588d7);return _0x6d1584['id']!==_0x264e03&&(await this[_0x3d2561(0x198)][_0x3d2561(0x25a)][_0x3d2561(0x15b)]({'conversationId':_0x264e03,'sessionId':_0x1fe619,'homeDirectory':_0x460166[_0x3d2561(0x155)][_0x3d2561(0x24b)]})[_0x3d2561(0x2c9)](()=>undefined),await rm(_0x460166[_0x3d2561(0x155)][_0x3d2561(0x2d1)],{'recursive':!![],'force':!![]})),this[_0x3d2561(0x2ca)](_0x46df83,_0x6d1584['id'],_0x7feaf0);}catch(_0x2d813f){if(_0x1fe619!==undefined)await this[_0x3d2561(0x198)][_0x3d2561(0x25a)][_0x3d2561(0x15b)]({'conversationId':_0x264e03,'sessionId':_0x1fe619,'homeDirectory':_0x460166[_0x3d2561(0x155)][_0x3d2561(0x24b)]})[_0x3d2561(0x2c9)](()=>undefined);await rm(_0x460166[_0x3d2561(0x155)][_0x3d2561(0x2d1)],{'recursive':!![],'force':!![]})[_0x3d2561(0x2c9)](()=>undefined);throw _0x2d813f;}}async[_0x3dba87(0x262)](_0x397c69){const _0x4236a3=_0x3dba87,_0x36276c=hostedRequest(_0x397c69),_0x32741a=hostedConversationIdInputSchema[_0x4236a3(0x116)](_0x36276c[_0x4236a3(0x2ce)]);return this[_0x4236a3(0x2ca)](_0x36276c[_0x4236a3(0x1bb)],_0x32741a[_0x4236a3(0x289)],runtimeModels(_0x36276c[_0x4236a3(0x138)]),_0x36276c[_0x4236a3(0x170)]);}async[_0x3dba87(0x2ca)](_0x42bcc6,_0x2e77be,_0x2aaa08,_0x12b2d1=![],_0x19eaa0=![],_0x43f708){const _0x1afcd5=_0x3dba87;if(_0x19eaa0)return this[_0x1afcd5(0x2cf)](_0x42bcc6,_0x2e77be,_0x2aaa08,_0x12b2d1,_0x43f708);while(!![]){const _0x22bf6a=this[_0x1afcd5(0x17a)][_0x1afcd5(0x262)](_0x2e77be)??-0x2079+-0x2*-0xda2+0x535,_0x2ad149=this[_0x1afcd5(0x225)][_0x1afcd5(0x262)](_0x2e77be);if(_0x2ad149!==undefined){await _0x2ad149[_0x1afcd5(0x2c9)](()=>undefined);continue;}const _0x291025=await this[_0x1afcd5(0x2cf)](_0x42bcc6,_0x2e77be,_0x2aaa08,_0x12b2d1);if(!this[_0x1afcd5(0x225)][_0x1afcd5(0x280)](_0x2e77be)&&(this[_0x1afcd5(0x17a)][_0x1afcd5(0x262)](_0x2e77be)??0x1e89+0x1247*0x2+-0x4317)===_0x22bf6a)return _0x291025;}}async[_0x3dba87(0x2cf)](_0x4a0f08,_0x3d3e9f,_0x58306c,_0x484d58,_0x27e4f0){const _0x1692ca=_0x3dba87;let _0x4f511d=this[_0x1692ca(0x198)][_0x1692ca(0x234)][_0x1692ca(0x176)](_0x4a0f08,_0x3d3e9f);if(_0x484d58)_0x4f511d=await this[_0x1692ca(0x198)][_0x1692ca(0x234)][_0x1692ca(0x18e)](_0x4a0f08,_0x3d3e9f,this[_0x1692ca(0x190)]());const _0x589c61=_0x4f511d[_0x1692ca(0x170)]?undefined:this[_0x1692ca(0x19d)](_0x4f511d[_0x1692ca(0x1ec)]),_0x542693=_0x589c61??_0x4f511d[_0x1692ca(0x1a4)],_0x4d78b9=await this[_0x1692ca(0x177)](_0x542693,_0x4f511d[_0x1692ca(0x1ec)]),_0x56b13b=networkModels(allowedModels(_0x4d78b9,_0x58306c),_0x4d78b9[_0x1692ca(0x2bb)][_0x1692ca(0x25f)]),_0x22c2d1=this[_0x1692ca(0x198)][_0x1692ca(0x234)][_0x1692ca(0x228)](_0x4a0f08,_0x4f511d['id']),_0x19d359=_0x27e4f0??await this[_0x1692ca(0x198)][_0x1692ca(0x25a)][_0x1692ca(0x149)]({'conversationId':_0x4f511d['id'],'sessionId':_0x4f511d[_0x1692ca(0x26b)],'homeDirectory':_0x22c2d1[_0x1692ca(0x24b)],'modelId':_0x4f511d[_0x1692ca(0x270)]});return hostedConversationSnapshotSchema[_0x1692ca(0x116)]({'nodeAppVersion':this[_0x1692ca(0x198)][_0x1692ca(0x2ac)]?.()??_0x1692ca(0x18c),'conversation':this[_0x1692ca(0x1ea)](_0x4f511d),'template':templateSummary(_0x4f511d,_0x4d78b9[_0x1692ca(0x2bb)]),'run':this[_0x1692ca(0x22f)][_0x1692ca(0x262)](_0x4f511d['id'])?.[_0x1692ca(0x218)]??null,'turns':_0x19d359,'files':this[_0x1692ca(0x198)][_0x1692ca(0x234)][_0x1692ca(0x148)](_0x4a0f08,_0x4f511d['id']),'models':_0x56b13b[_0x1692ca(0x2bd)](modelSummary),'error':null,'snapshotSequence':0x0});}async[_0x3dba87(0x29b)](_0xe2dd2a){const _0x3a0366=_0x3dba87,_0x41d4ab=hostedRequest(_0xe2dd2a),_0x5d9bb7=hostedConversationWatchInputSchema[_0x3a0366(0x116)](_0x41d4ab[_0x3a0366(0x2ce)]),_0x91b4c9=this[_0x3a0366(0x198)][_0x3a0366(0x234)][_0x3a0366(0x176)](_0x41d4ab[_0x3a0366(0x1bb)],_0x5d9bb7[_0x3a0366(0x289)]);if(this[_0x3a0366(0x292)][_0x3a0366(0x280)](_0x91b4c9['id']))throw new Error(_0x3a0366(0x178));const _0x332a20=requireWatchSessionHash(_0x41d4ab[_0x3a0366(0x259)]),_0x13daa4=watchOwnerKey(_0x332a20,_0x5d9bb7[_0x3a0366(0x1af)]);if(_0x5d9bb7[_0x3a0366(0x1a5)]===_0x3a0366(0x1ce)){const _0x1e3338=this[_0x3a0366(0x26a)][_0x3a0366(0x262)](_0x13daa4);if(_0x1e3338===undefined||!this[_0x3a0366(0x15d)][_0x3a0366(0x2d6)](_0x13daa4,_0x1e3338[_0x3a0366(0x2c5)])||_0x1e3338[_0x3a0366(0x258)]!==_0x5d9bb7[_0x3a0366(0x258)]||_0x1e3338[_0x3a0366(0x289)]!==_0x5d9bb7[_0x3a0366(0x289)]||_0x1e3338[_0x3a0366(0x1bb)]!==_0x41d4ab[_0x3a0366(0x1bb)]||_0x1e3338[_0x3a0366(0x25b)]<=Date[_0x3a0366(0x190)]()){this[_0x3a0366(0x1f7)](_0x13daa4);throw new Error(_0x3a0366(0x17c));}return _0x1e3338[_0x3a0366(0x25b)]=Date[_0x3a0366(0x190)]()+WATCH_TTL_MS,clearTimeout(_0x1e3338[_0x3a0366(0x111)]),_0x1e3338[_0x3a0366(0x111)]=this[_0x3a0366(0x173)](_0x13daa4),this[_0x3a0366(0x1f1)](_0x1e3338);}const _0x4a025a=runtimeModels(_0x41d4ab[_0x3a0366(0x138)]),_0x5375f4=this[_0x3a0366(0x26a)][_0x3a0366(0x262)](_0x13daa4);if(_0x5375f4!==undefined&&this[_0x3a0366(0x15d)][_0x3a0366(0x2d6)](_0x13daa4,_0x5375f4[_0x3a0366(0x2c5)])&&_0x5375f4[_0x3a0366(0x258)]===_0x5d9bb7[_0x3a0366(0x258)]&&_0x5375f4[_0x3a0366(0x289)]===_0x5d9bb7[_0x3a0366(0x289)]&&_0x5375f4[_0x3a0366(0x1bb)]===_0x41d4ab[_0x3a0366(0x1bb)]&&_0x5375f4[_0x3a0366(0x25b)]>Date[_0x3a0366(0x190)]())return _0x5375f4[_0x3a0366(0x25b)]=Date[_0x3a0366(0x190)]()+WATCH_TTL_MS,clearTimeout(_0x5375f4[_0x3a0366(0x111)]),_0x5375f4[_0x3a0366(0x111)]=this[_0x3a0366(0x173)](_0x13daa4),this[_0x3a0366(0x1f1)](_0x5375f4);this[_0x3a0366(0x1f7)](_0x13daa4);const _0x40a886=this[_0x3a0366(0x15d)][_0x3a0366(0x188)](_0x13daa4,_0x3a0366(0x275),()=>this[_0x3a0366(0x1f7)](_0x13daa4)),_0x4c777a={'ownerKey':_0x13daa4,'slotToken':_0x40a886,'sessionHash':_0x332a20,'workbenchConnectionId':_0x5d9bb7[_0x3a0366(0x1af)],'watchId':_0x5d9bb7[_0x3a0366(0x258)],'conversationId':_0x5d9bb7[_0x3a0366(0x289)],'templateId':_0x91b4c9[_0x3a0366(0x1ec)],'userId':_0x41d4ab[_0x3a0366(0x1bb)],'models':_0x4a025a,'nodeGeneration':this[_0x3a0366(0x198)][_0x3a0366(0x1da)]?.()??_0x3a0366(0x213),'pendingEvents':[],'expiresAt':Date[_0x3a0366(0x190)]()+WATCH_TTL_MS,'ready':![],'timer':undefined};return _0x4c777a[_0x3a0366(0x111)]=this[_0x3a0366(0x173)](_0x13daa4),this[_0x3a0366(0x26a)][_0x3a0366(0x1ba)](_0x13daa4,_0x4c777a),void this[_0x3a0366(0x202)](_0x4c777a),this[_0x3a0366(0x1f1)](_0x4c777a);}[_0x3dba87(0x1c3)](_0x2e5ba9){const _0x21aa2c=_0x3dba87,_0x219249=hostedRequest(_0x2e5ba9),_0x24f989=hostedConversationUnwatchInputSchema[_0x21aa2c(0x116)](_0x219249[_0x21aa2c(0x2ce)]);this[_0x21aa2c(0x198)][_0x21aa2c(0x234)][_0x21aa2c(0x176)](_0x219249[_0x21aa2c(0x1bb)],_0x24f989[_0x21aa2c(0x289)]);const _0x3e6f41=watchOwnerKey(requireWatchSessionHash(_0x219249[_0x21aa2c(0x259)]),_0x24f989[_0x21aa2c(0x1af)]),_0x473423=this[_0x21aa2c(0x26a)][_0x21aa2c(0x262)](_0x3e6f41);if(_0x473423?.[_0x21aa2c(0x258)]===_0x24f989[_0x21aa2c(0x258)]&&_0x473423[_0x21aa2c(0x289)]===_0x24f989[_0x21aa2c(0x289)]&&_0x473423[_0x21aa2c(0x1bb)]===_0x219249[_0x21aa2c(0x1bb)])this[_0x21aa2c(0x1f7)](_0x3e6f41);return{'unwatched':!![]};}[_0x3dba87(0x22e)](_0x443f3a,_0x1d6bfe){const _0x4b1865=_0x3dba87;return this[_0x4b1865(0x1bc)](_0x443f3a,{'conversationId':_0x443f3a,'kind':_0x4b1865(0x25a),'runtimeEvent':_0x1d6bfe});}[_0x3dba87(0x20c)](_0x543068){const _0x1de44a=_0x3dba87;return this[_0x1de44a(0x292)][_0x1de44a(0x280)](_0x543068)||this[_0x1de44a(0x225)][_0x1de44a(0x280)](_0x543068)||this[_0x1de44a(0x22f)][_0x1de44a(0x280)](_0x543068)||this[_0x1de44a(0x212)][_0x1de44a(0x280)](_0x543068)||[...this[_0x1de44a(0x26a)][_0x1de44a(0x19a)]()][_0x1de44a(0x142)](_0x50afd3=>_0x50afd3[_0x1de44a(0x289)]===_0x543068)||[...this[_0x1de44a(0x114)][_0x1de44a(0x19a)]()][_0x1de44a(0x142)](_0xf5602e=>_0xf5602e[_0x1de44a(0x289)]===_0x543068&&_0xf5602e[_0x1de44a(0x1fc)]===_0x1de44a(0x14e))||[...this[_0x1de44a(0x196)][_0x1de44a(0x156)]()][_0x1de44a(0x142)](_0x595aa6=>_0x595aa6[_0x1de44a(0x2db)](_0x543068+'\x00'));}[_0x3dba87(0x147)](_0x1181e6){const _0x561690=_0x3dba87;if(this[_0x561690(0x20c)](_0x1181e6))return undefined;return this[_0x561690(0x292)][_0x561690(0x21f)](_0x1181e6),()=>{const _0x27d832=_0x561690;this[_0x27d832(0x292)][_0x27d832(0x163)](_0x1181e6);};}async[_0x3dba87(0x2c6)](_0x51489b){const _0x43a958=_0x3dba87,_0x5c5645=this[_0x43a958(0x198)][_0x43a958(0x234)][_0x43a958(0x122)](_0x51489b);await this[_0x43a958(0x198)][_0x43a958(0x25a)][_0x43a958(0x15b)]({'conversationId':_0x51489b['id'],'sessionId':_0x51489b[_0x43a958(0x26b)],'homeDirectory':_0x5c5645[_0x43a958(0x24b)]})[_0x43a958(0x2c9)](()=>undefined);}[_0x3dba87(0x2a8)](){const _0xc2b456=_0x3dba87;for(const [_0x27a616,_0x47f738]of this[_0xc2b456(0x22f)]){const _0x2e216d=runInterruptionKey(_0x27a616,_0x47f738[_0xc2b456(0x218)]['id']);this[_0xc2b456(0x215)][_0xc2b456(0x21f)](_0x2e216d);if(!_0x47f738[_0xc2b456(0x118)]())this[_0xc2b456(0x215)][_0xc2b456(0x163)](_0x2e216d);}for(const _0x3bdba9 of[...this[_0xc2b456(0x26a)][_0xc2b456(0x156)]()])this[_0xc2b456(0x1f7)](_0x3bdba9);}[_0x3dba87(0x27d)](_0xc9a225){const _0x2d316b=_0x3dba87;if(this[_0x2d316b(0x127)])return Promise[_0x2d316b(0x24d)](new Error(_0x2d316b(0x203)));const _0x440c70=hostedRequest(_0xc9a225),_0x1c5ee2=hostedConversationMessageInputSchema[_0x2d316b(0x116)](_0x440c70[_0x2d316b(0x2ce)]);if(this[_0x2d316b(0x225)][_0x2d316b(0x280)](_0x1c5ee2[_0x2d316b(0x289)]))return Promise[_0x2d316b(0x24d)](new Error(_0x2d316b(0x178)));const _0x4eb696=_0x1c5ee2[_0x2d316b(0x289)]+'\x00'+_0x1c5ee2[_0x2d316b(0x181)],_0x308ef4=this[_0x2d316b(0x196)][_0x2d316b(0x262)](_0x4eb696);if(_0x308ef4!==undefined)return _0x308ef4;const _0xebe236=this[_0x2d316b(0x198)][_0x2d316b(0x234)][_0x2d316b(0x290)](_0x440c70[_0x2d316b(0x1bb)],_0x1c5ee2[_0x2d316b(0x289)],_0x1c5ee2[_0x2d316b(0x181)]);if(_0xebe236!==undefined){const _0x1b3653=this[_0x2d316b(0x198)][_0x2d316b(0x234)][_0x2d316b(0x176)](_0x440c70[_0x2d316b(0x1bb)],_0x1c5ee2[_0x2d316b(0x289)]);return Promise[_0x2d316b(0x1c5)]({'conversation':this[_0x2d316b(0x1ea)](_0x1b3653),'run':runFromMessage(_0xebe236)});}if([...this[_0x2d316b(0x196)][_0x2d316b(0x156)]()][_0x2d316b(0x142)](_0x515ef7=>_0x515ef7[_0x2d316b(0x2db)](_0x1c5ee2[_0x2d316b(0x289)]+'\x00')))return Promise[_0x2d316b(0x24d)](new Error(_0x2d316b(0x2b9)));const _0x357891=this[_0x2d316b(0x223)](_0x440c70,_0x1c5ee2);return this[_0x2d316b(0x196)][_0x2d316b(0x1ba)](_0x4eb696,_0x357891),void _0x357891[_0x2d316b(0x1c8)](()=>this[_0x2d316b(0x196)][_0x2d316b(0x163)](_0x4eb696))[_0x2d316b(0x2c9)](()=>undefined),_0x357891;}async[_0x3dba87(0x223)](_0x3afdfd,_0x3e0b21){const _0x3cffcb=_0x3dba87;let _0x40d073=this[_0x3cffcb(0x198)][_0x3cffcb(0x234)][_0x3cffcb(0x176)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x3e0b21[_0x3cffcb(0x289)]);if(this[_0x3cffcb(0x292)][_0x3cffcb(0x280)](_0x40d073['id']))throw new Error(_0x3cffcb(0x178));if(this[_0x3cffcb(0x225)][_0x3cffcb(0x280)](_0x40d073['id']))throw new Error(_0x3cffcb(0x178));if(_0x40d073[_0x3cffcb(0x1fc)]!==_0x3cffcb(0x2aa))throw new Error(_0x3cffcb(0x178));if(this[_0x3cffcb(0x22f)][_0x3cffcb(0x280)](_0x40d073['id']))throw new Error(_0x3cffcb(0x2b9));const _0x28b566=sessionTitleFromFirstMessage(_0x3e0b21[_0x3cffcb(0x11c)]),_0x15a1a4=_0x28b566[_0x3cffcb(0x110)]>-0x1439+0x2dc+0x115d*0x1&&!this[_0x3cffcb(0x198)][_0x3cffcb(0x234)][_0x3cffcb(0x152)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x40d073['id']),_0x4c400a=runtimeModels(_0x3afdfd[_0x3cffcb(0x138)]),_0x200456=this[_0x3cffcb(0x198)][_0x3cffcb(0x234)][_0x3cffcb(0x228)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x40d073['id']);let _0x4fd2b6,_0x16be5c,_0xbb31ea,_0x59b378;const _0x67a05f=_0x40d073[_0x3cffcb(0x170)]?undefined:this[_0x3cffcb(0x19d)](_0x40d073[_0x3cffcb(0x1ec)]);if(_0x67a05f!==undefined&&_0x67a05f!==_0x40d073[_0x3cffcb(0x1a4)]){const _0x2b7c4c=_0x40d073[_0x3cffcb(0x1a4)],_0x590a79=_0x67a05f;try{_0x4fd2b6=await this[_0x3cffcb(0x177)](_0x590a79,_0x40d073[_0x3cffcb(0x1ec)]),_0x16be5c=selectModel(_0x4fd2b6,_0x4c400a,_0x3e0b21[_0x3cffcb(0x270)]??_0x4fd2b6[_0x3cffcb(0x2e4)][_0x3cffcb(0x254)]),_0xbb31ea=resolveMcpServers(_0x4fd2b6,this[_0x3cffcb(0x198)][_0x3cffcb(0x250)]??process.env),this[_0x3cffcb(0x251)](_0x200456,_0x4fd2b6),this[_0x3cffcb(0x12a)](_0x200456,_0x4fd2b6),_0x59b378={'previousVersionId':_0x2b7c4c,'targetVersionId':_0x590a79};}catch(_0x10b82e){this[_0x3cffcb(0x21e)](_0x40d073,_0x2b7c4c,_0x590a79,_0x10b82e);throw new Error(_0x3cffcb(0x2c3));}}else _0x4fd2b6=await this[_0x3cffcb(0x177)](_0x40d073[_0x3cffcb(0x1a4)],_0x40d073[_0x3cffcb(0x1ec)]),_0x16be5c=selectModel(_0x4fd2b6,_0x4c400a,_0x3e0b21[_0x3cffcb(0x270)]??_0x40d073[_0x3cffcb(0x270)]);const _0x2018fd=await Promise[_0x3cffcb(0x2e0)](_0x3e0b21[_0x3cffcb(0x160)][_0x3cffcb(0x2bd)](_0x57ca18=>this[_0x3cffcb(0x2e2)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x40d073['id'],_0x57ca18))),_0x3bb739=attachmentPrompt(_0x3e0b21[_0x3cffcb(0x11c)],_0x2018fd),_0x2fa546=marAgentGeneratedImagesDirectory(_0x200456[_0x3cffcb(0x24b)],_0x40d073[_0x3cffcb(0x26b)]),_0x41a63c=hostedConversationGeneratedImagesDisplayDirectory(_0x40d073[_0x3cffcb(0x26b)]);if(_0x2fa546===undefined||_0x41a63c===undefined)throw new Error(_0x3cffcb(0x18b));await mkdir(_0x2fa546,{'recursive':!![],'mode':0x1c0});const _0x3faf5b=await this[_0x3cffcb(0x198)][_0x3cffcb(0x234)][_0x3cffcb(0x23e)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x40d073['id']),_0x5805d0=this[_0x3cffcb(0x251)](_0x200456,_0x4fd2b6,_0x2fa546,_0x41a63c,_0x3faf5b);this[_0x3cffcb(0x217)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x40d073,_0x3cffcb(0x204),this[_0x3cffcb(0x190)]());const _0x446c0b=[];let _0x4da53d=![];const _0x2740e3=await this[_0x3cffcb(0x198)][_0x3cffcb(0x25a)][_0x3cffcb(0x25d)]({'conversationId':_0x40d073['id'],'sessionId':_0x40d073[_0x3cffcb(0x26b)],'clientMessageId':_0x3e0b21[_0x3cffcb(0x181)],'userPrompt':_0x3e0b21[_0x3cffcb(0x11c)],'prompt':_0x3bb739,'attachmentIds':_0x3e0b21[_0x3cffcb(0x160)],'access':_0x3cffcb(0x14b),'modelId':_0x16be5c['id'],'models':networkModels(allowedModels(_0x4fd2b6,_0x4c400a),_0x4fd2b6[_0x3cffcb(0x2bb)][_0x3cffcb(0x25f)]),..._0x3afdfd[_0x3cffcb(0x13d)]===undefined?{}:{'runtimeScopeId':_0x3afdfd[_0x3cffcb(0x13d)]},'systemInstruction':systemInstruction(_0x4fd2b6,_0x41a63c),'homeDirectory':_0x200456[_0x3cffcb(0x24b)],'workspaceDirectory':_0x4fd2b6[_0x3cffcb(0x2c4)],'temporaryDirectory':_0x3faf5b,'pathMounts':_0x5805d0,'processExecutor':this[_0x3cffcb(0x12a)](_0x200456,_0x4fd2b6,_0x3faf5b,_0x2fa546,_0x41a63c),'mcpServers':_0xbb31ea??resolveMcpServers(_0x4fd2b6,this[_0x3cffcb(0x198)][_0x3cffcb(0x250)]??process.env),'webAccess':_0x4fd2b6[_0x3cffcb(0x2bb)][_0x3cffcb(0x25f)]!==_0x3cffcb(0x230),'onEvent':_0x34410a=>{const _0x2f989d=_0x3cffcb;if(_0x4da53d)this[_0x2f989d(0x22e)](_0x40d073['id'],_0x34410a);else _0x446c0b[_0x2f989d(0x211)](_0x34410a);}})[_0x3cffcb(0x2c9)](_0x36ce93=>{const _0x499eca=_0x3cffcb;this[_0x499eca(0x217)](_0x3afdfd[_0x499eca(0x1bb)],_0x40d073,_0x499eca(0x1fe),this[_0x499eca(0x190)]());if(_0x59b378!==undefined){this[_0x499eca(0x21e)](_0x40d073,_0x59b378[_0x499eca(0x183)],_0x59b378[_0x499eca(0x1f2)],_0x36ce93);throw new Error(_0x499eca(0x2c3));}throw _0x36ce93;}),_0xcd21c2=_0x2740e3[_0x3cffcb(0x218)][_0x3cffcb(0x17e)];let _0xbd2220=![],_0x2e7a32;try{this[_0x3cffcb(0x198)][_0x3cffcb(0x234)][_0x3cffcb(0x129)]({'conversationId':_0x40d073['id'],'clientMessageId':_0x3e0b21[_0x3cffcb(0x181)],'runId':_0x2740e3[_0x3cffcb(0x218)]['id'],'userTextPresent':_0x28b566[_0x3cffcb(0x110)]>-0x2f*-0x4c+0x259*-0xf+0x1543,'status':_0x3cffcb(0x1b1),'createdAt':_0xcd21c2,'updatedAt':_0xcd21c2}),_0xbd2220=!![];const _0x4cdd72=this[_0x3cffcb(0x190)]();_0x2e7a32=await this[_0x3cffcb(0x198)][_0x3cffcb(0x234)][_0x3cffcb(0x29c)]({'conversationId':_0x40d073['id'],'modelId':_0x16be5c['id'],'activityAt':_0x4cdd72,..._0x59b378===undefined?{}:{'templateVersion':{'expectedActiveVersionId':_0x59b378[_0x3cffcb(0x183)],'activeVersionId':_0x59b378[_0x3cffcb(0x1f2)],'maxStorageBytes':_0x4fd2b6[_0x3cffcb(0x2bb)][_0x3cffcb(0x126)][_0x3cffcb(0x1d2)]}},..._0x15a1a4?{'automaticTitle':_0x28b566}:{}});}catch(_0x4814ae){try{_0x2740e3[_0x3cffcb(0x118)]();}catch{}const _0x2985c5=await _0x2740e3[_0x3cffcb(0x2cc)][_0x3cffcb(0x2c9)](()=>({'status':_0x3cffcb(0x1e8),'completedAt':this[_0x3cffcb(0x190)]()}));if(_0xbd2220)try{this[_0x3cffcb(0x198)][_0x3cffcb(0x234)][_0x3cffcb(0x186)](_0x40d073['id'],_0x3e0b21[_0x3cffcb(0x181)],_0x2985c5[_0x3cffcb(0x1fc)],_0x2985c5[_0x3cffcb(0x157)]);}catch{}this[_0x3cffcb(0x217)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x40d073,_0x3cffcb(0x1fe),_0x2985c5[_0x3cffcb(0x157)]);if(_0x59b378!==undefined)this[_0x3cffcb(0x21e)](_0x40d073,_0x59b378[_0x3cffcb(0x183)],_0x59b378[_0x3cffcb(0x1f2)],_0x4814ae);throw _0x4814ae;}_0x40d073=_0x2e7a32[_0x3cffcb(0x112)];if(_0x59b378!==undefined)this[_0x3cffcb(0x1bc)](_0x40d073['id'],{'conversationId':_0x40d073['id'],'kind':_0x3cffcb(0x1b9),'upgrade':{'status':_0x3cffcb(0x232),'previousVersionId':_0x59b378[_0x3cffcb(0x183)],'targetVersionId':_0x59b378[_0x3cffcb(0x1f2)],'activeVersionId':_0x40d073[_0x3cffcb(0x1a4)],'conversation':this[_0x3cffcb(0x1ea)](_0x40d073),'error':null}});this[_0x3cffcb(0x22f)][_0x3cffcb(0x1ba)](_0x40d073['id'],_0x2740e3),this[_0x3cffcb(0x217)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x40d073,_0x3cffcb(0x1b1),_0x2740e3[_0x3cffcb(0x218)][_0x3cffcb(0x17e)]);if(_0x2e7a32[_0x3cffcb(0x220)])this[_0x3cffcb(0x1bc)](_0x40d073['id'],{'conversationId':_0x40d073['id'],'kind':_0x3cffcb(0x112),'conversation':this[_0x3cffcb(0x1ea)](_0x40d073)});this[_0x3cffcb(0x1bc)](_0x40d073['id'],{'conversationId':_0x40d073['id'],'kind':_0x3cffcb(0x218),'run':_0x2740e3[_0x3cffcb(0x218)]}),_0x4da53d=!![];for(const _0x15ef90 of _0x446c0b)this[_0x3cffcb(0x22e)](_0x40d073['id'],_0x15ef90);_0x446c0b[_0x3cffcb(0x110)]=0x5dd*0x5+0xbde*-0x3+-0x649*-0x1;const _0x6c3cec=_0x2740e3[_0x3cffcb(0x2cc)][_0x3cffcb(0x1dc)](_0x308ca0=>this[_0x3cffcb(0x23b)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x40d073['id'],_0x3e0b21[_0x3cffcb(0x181)],_0x2740e3[_0x3cffcb(0x218)],_0x308ca0),()=>this[_0x3cffcb(0x23b)](_0x3afdfd[_0x3cffcb(0x1bb)],_0x40d073['id'],_0x3e0b21[_0x3cffcb(0x181)],_0x2740e3[_0x3cffcb(0x218)],{'status':_0x3cffcb(0x1e8),'completedAt':this[_0x3cffcb(0x190)]()}))[_0x3cffcb(0x2c9)](()=>undefined)[_0x3cffcb(0x1c8)](()=>{const _0x14186c=_0x3cffcb;this[_0x14186c(0x215)][_0x14186c(0x163)](runInterruptionKey(_0x40d073['id'],_0x2740e3[_0x14186c(0x218)]['id']));if(this[_0x14186c(0x22f)][_0x14186c(0x262)](_0x40d073['id'])===_0x2740e3)this[_0x14186c(0x22f)][_0x14186c(0x163)](_0x40d073['id']);if(this[_0x14186c(0x212)][_0x14186c(0x262)](_0x40d073['id'])===_0x6c3cec)this[_0x14186c(0x212)][_0x14186c(0x163)](_0x40d073['id']);});return this[_0x3cffcb(0x212)][_0x3cffcb(0x1ba)](_0x40d073['id'],_0x6c3cec),void _0x6c3cec,{'conversation':this[_0x3cffcb(0x1ea)](_0x40d073),'run':_0x2740e3[_0x3cffcb(0x218)]};}[_0x3dba87(0x153)](_0x406d62){const _0x36e7e5=_0x3dba87;if(this[_0x36e7e5(0x127)])return Promise[_0x36e7e5(0x24d)](new Error(_0x36e7e5(0x203)));const _0x13df8f=hostedRequest(_0x406d62),_0x364f8e=hostedConversationRollbackInputSchema[_0x36e7e5(0x116)](_0x13df8f[_0x36e7e5(0x2ce)]),_0x37202a=this[_0x36e7e5(0x198)][_0x36e7e5(0x234)][_0x36e7e5(0x176)](_0x13df8f[_0x36e7e5(0x1bb)],_0x364f8e[_0x36e7e5(0x289)]);if(_0x37202a[_0x36e7e5(0x1fc)]!==_0x36e7e5(0x2aa)||this[_0x36e7e5(0x292)][_0x36e7e5(0x280)](_0x37202a['id'])||this[_0x36e7e5(0x225)][_0x36e7e5(0x280)](_0x37202a['id']))return Promise[_0x36e7e5(0x24d)](new Error(_0x36e7e5(0x178)));if(this[_0x36e7e5(0x22f)][_0x36e7e5(0x280)](_0x37202a['id'])||this[_0x36e7e5(0x212)][_0x36e7e5(0x280)](_0x37202a['id'])||[...this[_0x36e7e5(0x196)][_0x36e7e5(0x156)]()][_0x36e7e5(0x142)](_0x5f4b22=>_0x5f4b22[_0x36e7e5(0x2db)](_0x37202a['id']+'\x00')))return Promise[_0x36e7e5(0x24d)](new Error(_0x36e7e5(0x2b9)));const _0x5ddb18=this[_0x36e7e5(0x144)](_0x13df8f,_0x37202a,_0x364f8e);return this[_0x36e7e5(0x225)][_0x36e7e5(0x1ba)](_0x37202a['id'],_0x5ddb18),void _0x5ddb18[_0x36e7e5(0x1c8)](()=>{const _0xa8497c=_0x36e7e5;if(this[_0xa8497c(0x225)][_0xa8497c(0x262)](_0x37202a['id'])===_0x5ddb18)this[_0xa8497c(0x225)][_0xa8497c(0x163)](_0x37202a['id']);})[_0x36e7e5(0x2c9)](()=>undefined),_0x5ddb18;}async[_0x3dba87(0x144)](_0x11944a,_0x29357a,_0x2d9643){const _0x366533=_0x3dba87,_0x5f3abd=this[_0x366533(0x198)][_0x366533(0x234)][_0x366533(0x228)](_0x11944a[_0x366533(0x1bb)],_0x29357a['id']),_0x557306=(await this[_0x366533(0x198)][_0x366533(0x25a)][_0x366533(0x149)]({'conversationId':_0x29357a['id'],'sessionId':_0x29357a[_0x366533(0x26b)],'homeDirectory':_0x5f3abd[_0x366533(0x24b)],'modelId':_0x29357a[_0x366533(0x270)]}))[_0x366533(0x2bd)](_0x112471=>conversationTurnSchema[_0x366533(0x116)](_0x112471)),_0x2d239d=_0x557306[_0x366533(0x1bd)](_0x58b224=>_0x58b224['id']===_0x2d9643[_0x366533(0x2d8)]),_0x3a8808=_0x557306[_0x2d239d],_0x183a1b=_0x3a8808?.[_0x366533(0x2b1)][_0x366533(0x159)](_0x5d77a1=>_0x5d77a1[_0x366533(0x27b)]===_0x366533(0x23a)&&_0x5d77a1[_0x366533(0x1fc)]===_0x366533(0x263));if(_0x3a8808===undefined||!terminalHostedTurnStatus(_0x3a8808[_0x366533(0x1fc)])||_0x183a1b===undefined||_0x3a8808[_0x366533(0x22a)]?.[_0x366533(0x192)]!==_0x2d9643[_0x366533(0x1e0)])throw new Error(_0x366533(0x187));let _0x4f4a7a;try{_0x4f4a7a=await this[_0x366533(0x198)][_0x366533(0x25a)][_0x366533(0x153)]({'conversationId':_0x29357a['id'],'sessionId':_0x29357a[_0x366533(0x26b)],'homeDirectory':_0x5f3abd[_0x366533(0x24b)],'modelId':_0x29357a[_0x366533(0x270)],'boundaryTurnId':_0x2d9643[_0x366533(0x1e0)]});}catch(_0x197a8f){if(_0x197a8f instanceof Error&&_0x197a8f[_0x366533(0x27d)]===_0x366533(0x2c8))throw new Error(_0x366533(0x187),{'cause':_0x197a8f});throw _0x197a8f;}this[_0x366533(0x17a)][_0x366533(0x1ba)](_0x29357a['id'],(this[_0x366533(0x17a)][_0x366533(0x262)](_0x29357a['id'])??0x1*0x11f2+-0x3*0x667+0x143)+(-0x6b6+0x3*0x64d+-0xc30)),await this[_0x366533(0x198)][_0x366533(0x234)][_0x366533(0x1f5)](_0x29357a['id'],Math[_0x366533(0x260)](this[_0x366533(0x190)](),_0x4f4a7a[_0x366533(0x2b4)]));const _0x51747d=await this[_0x366533(0x2ca)](_0x11944a[_0x366533(0x1bb)],_0x29357a['id'],runtimeModels(_0x11944a[_0x366533(0x138)]),_0x11944a[_0x366533(0x170)],!![],_0x557306[_0x366533(0x298)](0x2*0x13f+0x3ef+-0x2f*0x23,_0x2d239d));return this[_0x366533(0x1f4)](_0x29357a['id'],_0x51747d),_0x51747d;}async[_0x3dba87(0x23b)](_0x177051,_0x12fc53,_0x498e6f,_0x498a4c,_0x2998e0){const _0x387703=_0x3dba87,_0x7f69a3=runInterruptionKey(_0x12fc53,_0x498a4c['id']),_0x29e51e=this[_0x387703(0x215)][_0x387703(0x280)](_0x7f69a3);let _0x58c69a;try{this[_0x387703(0x198)][_0x387703(0x234)][_0x387703(0x186)](_0x12fc53,_0x498e6f,_0x2998e0[_0x387703(0x1fc)],_0x2998e0[_0x387703(0x157)]);try{const _0x210016=await this[_0x387703(0x198)][_0x387703(0x234)][_0x387703(0x120)](_0x177051,_0x12fc53);this[_0x387703(0x1bc)](_0x12fc53,{'conversationId':_0x12fc53,'kind':_0x387703(0x16b),'files':_0x210016,'error':null});}catch(_0x278ac0){this[_0x387703(0x1bc)](_0x12fc53,{'conversationId':_0x12fc53,'kind':_0x387703(0x16b),'files':this[_0x387703(0x198)][_0x387703(0x234)][_0x387703(0x148)](_0x177051,_0x12fc53),'error':{'code':safeErrorCode(_0x278ac0,_0x387703(0x1f0)),'message':_0x387703(0x17f)}});}await this[_0x387703(0x198)][_0x387703(0x234)][_0x387703(0x1f5)](_0x12fc53,_0x2998e0[_0x387703(0x157)]),this[_0x387703(0x1bc)](_0x12fc53,{'conversationId':_0x12fc53,'kind':_0x387703(0x218),'run':{'id':_0x498a4c['id'],'status':_0x2998e0[_0x387703(0x1fc)],'startedAt':_0x498a4c[_0x387703(0x17e)],'completedAt':_0x2998e0[_0x387703(0x157)]}}),await this[_0x387703(0x2ba)](_0x12fc53,_0x2998e0[_0x387703(0x265)],_0x2998e0[_0x387703(0x157)])[_0x387703(0x2c9)](()=>undefined),_0x58c69a=this[_0x387703(0x198)][_0x387703(0x234)][_0x387703(0x176)](_0x177051,_0x12fc53);}finally{this[_0x387703(0x215)][_0x387703(0x163)](_0x7f69a3);if(_0x58c69a===undefined)try{_0x58c69a=this[_0x387703(0x198)][_0x387703(0x234)][_0x387703(0x176)](_0x177051,_0x12fc53);}catch{}if(_0x58c69a!==undefined)this[_0x387703(0x217)](_0x177051,_0x58c69a,_0x387703(0x1fe),_0x2998e0[_0x387703(0x157)]);}if(_0x58c69a!==undefined&&(_0x2998e0[_0x387703(0x1fc)]!==_0x387703(0x2ab)||!_0x29e51e))this[_0x387703(0x15a)](_0x177051,_0x58c69a,_0x498a4c['id'],_0x2998e0);}async[_0x3dba87(0x2ba)](_0x4711bb,_0x53ba03,_0x3d47f4){const _0x1cc39b=_0x3dba87,_0x442827=automaticHostedConversationTitle(_0x53ba03);if(_0x442827===undefined)return;const _0x2fce94=await this[_0x1cc39b(0x198)][_0x1cc39b(0x234)][_0x1cc39b(0x28f)](_0x4711bb,_0x442827,_0x3d47f4);if(_0x2fce94===undefined)return;this[_0x1cc39b(0x1bc)](_0x4711bb,{'conversationId':_0x4711bb,'kind':_0x1cc39b(0x112),'conversation':this[_0x1cc39b(0x1ea)](_0x2fce94)});}[_0x3dba87(0x20a)](_0x2acf7e){const _0x3bb3c7=_0x3dba87,_0x49c5f3=hostedRequest(_0x2acf7e),_0x4b3f65=hostedConversationIdInputSchema[_0x3bb3c7(0x116)](_0x49c5f3[_0x3bb3c7(0x2ce)]),_0x5280a9=this[_0x3bb3c7(0x198)][_0x3bb3c7(0x234)][_0x3bb3c7(0x176)](_0x49c5f3[_0x3bb3c7(0x1bb)],_0x4b3f65[_0x3bb3c7(0x289)]),_0x103f35=this[_0x3bb3c7(0x22f)][_0x3bb3c7(0x262)](_0x4b3f65[_0x3bb3c7(0x289)]);if(_0x103f35===undefined)return{'interrupted':![]};const _0x1abb75=runInterruptionKey(_0x5280a9['id'],_0x103f35[_0x3bb3c7(0x218)]['id']);this[_0x3bb3c7(0x215)][_0x3bb3c7(0x21f)](_0x1abb75);try{const _0x3444d0=_0x103f35[_0x3bb3c7(0x118)]();if(!_0x3444d0)return this[_0x3bb3c7(0x215)][_0x3bb3c7(0x163)](_0x1abb75),{'interrupted':![]};return this[_0x3bb3c7(0x217)](_0x49c5f3[_0x3bb3c7(0x1bb)],_0x5280a9,_0x3bb3c7(0x28c),this[_0x3bb3c7(0x190)]()),{'interrupted':!![]};}catch(_0x1ff128){this[_0x3bb3c7(0x215)][_0x3bb3c7(0x163)](_0x1abb75);throw _0x1ff128;}}async[_0x3dba87(0x165)](_0x39c062){const _0x2a739a=_0x3dba87,_0x2b2b22=hostedRequest(_0x39c062),_0x99116f=hostedConversationConfigUpdateInputSchema[_0x2a739a(0x116)](_0x2b2b22[_0x2a739a(0x2ce)]),_0x1a4722=this[_0x2a739a(0x198)][_0x2a739a(0x234)][_0x2a739a(0x176)](_0x2b2b22[_0x2a739a(0x1bb)],_0x99116f[_0x2a739a(0x289)]);if(this[_0x2a739a(0x292)][_0x2a739a(0x280)](_0x1a4722['id']))throw new Error(_0x2a739a(0x178));const _0x16f34f=_0x1a4722[_0x2a739a(0x170)]?undefined:this[_0x2a739a(0x19d)](_0x1a4722[_0x2a739a(0x1ec)]),_0x2b127a=_0x16f34f??_0x1a4722[_0x2a739a(0x1a4)],_0x56136f=await this[_0x2a739a(0x177)](_0x2b127a,_0x1a4722[_0x2a739a(0x1ec)]),_0x3e8628=runtimeModels(_0x2b2b22[_0x2a739a(0x138)]),_0x77d691=selectModel(_0x56136f,_0x3e8628,_0x99116f[_0x2a739a(0x270)]??_0x1a4722[_0x2a739a(0x270)]),_0x4055b5=this[_0x2a739a(0x190)](),_0x53dfbf=await this[_0x2a739a(0x198)][_0x2a739a(0x234)][_0x2a739a(0x243)](_0x1a4722['id'],_0x416a5d=>({..._0x416a5d,'modelId':_0x77d691['id'],'updatedAt':_0x4055b5,'lastActivityAt':_0x4055b5}));return this[_0x2a739a(0x1bc)](_0x1a4722['id'],{'conversationId':_0x1a4722['id'],'kind':_0x2a739a(0x21b),'conversation':this[_0x2a739a(0x1ea)](_0x53dfbf)}),{'conversation':this[_0x2a739a(0x1ea)](_0x53dfbf)};}async[_0x3dba87(0x1b4)](_0x2b7215){const _0x188b21=_0x3dba87,_0x42ccc6=hostedRequest(_0x2b7215),_0x14cb0c=hostedConversationMetadataUpdateInputSchema[_0x188b21(0x116)](_0x42ccc6[_0x188b21(0x2ce)]),_0x9f95a=this[_0x188b21(0x198)][_0x188b21(0x234)][_0x188b21(0x176)](_0x42ccc6[_0x188b21(0x1bb)],_0x14cb0c[_0x188b21(0x289)]);if(this[_0x188b21(0x292)][_0x188b21(0x280)](_0x9f95a['id']))throw new Error(_0x188b21(0x178));const _0x5c55dc=this[_0x188b21(0x190)](),_0x55e7cd=await this[_0x188b21(0x198)][_0x188b21(0x234)][_0x188b21(0x243)](_0x9f95a['id'],_0x727d0d=>({..._0x727d0d,'title':_0x14cb0c[_0x188b21(0x265)]??_0x727d0d[_0x188b21(0x265)],'titleSource':_0x14cb0c[_0x188b21(0x265)]===undefined?_0x727d0d[_0x188b21(0x16a)]:_0x188b21(0x189),'pinnedAt':_0x14cb0c[_0x188b21(0x137)]===undefined?_0x727d0d[_0x188b21(0x26d)]:_0x14cb0c[_0x188b21(0x137)]?_0x5c55dc:null,'updatedAt':_0x5c55dc,'lastActivityAt':_0x727d0d[_0x188b21(0x2b4)]}));return this[_0x188b21(0x1bc)](_0x9f95a['id'],{'conversationId':_0x9f95a['id'],'kind':_0x188b21(0x21b),'conversation':this[_0x188b21(0x1ea)](_0x55e7cd)}),{'conversation':this[_0x188b21(0x1ea)](_0x55e7cd)};}async[_0x3dba87(0x148)](_0x41fc53){const _0x4133d6=_0x3dba87,_0x2e8ea9=hostedRequest(_0x41fc53),_0x203f0a=hostedConversationIdInputSchema[_0x4133d6(0x116)](_0x2e8ea9[_0x4133d6(0x2ce)]);return hostedConversationFilesSchema[_0x4133d6(0x116)]({'files':this[_0x4133d6(0x198)][_0x4133d6(0x234)][_0x4133d6(0x148)](_0x2e8ea9[_0x4133d6(0x1bb)],_0x203f0a[_0x4133d6(0x289)])});}async[_0x3dba87(0x2d2)](_0x26bc3e){const _0x3cf122=_0x3dba87,_0x57972f=hostedRequest(_0x26bc3e),_0x24e267=hostedConversationImageReadInputSchema[_0x3cf122(0x116)](_0x57972f[_0x3cf122(0x2ce)]);this[_0x3cf122(0x198)][_0x3cf122(0x234)][_0x3cf122(0x176)](_0x57972f[_0x3cf122(0x1bb)],_0x24e267[_0x3cf122(0x289)]);if(_0x24e267[_0x3cf122(0x248)]!==hostedConversationImageRunId(_0x24e267[_0x3cf122(0x289)]))throw new Error(_0x3cf122(0x175));const _0x38fc78=await this[_0x3cf122(0x198)][_0x3cf122(0x2d2)](_0x24e267[_0x3cf122(0x248)],_0x24e267[_0x3cf122(0x13e)]);if(_0x38fc78===undefined)throw new Error(_0x3cf122(0x150));return{'image':_0x38fc78};}async[_0x3dba87(0x16c)](_0x3f9741){const _0x2b73d3=_0x3dba87,_0xf7d85=hostedRequest(_0x3f9741),_0x12dcb9=hostedConversationFileReadInputSchema[_0x2b73d3(0x116)](_0xf7d85[_0x2b73d3(0x2ce)]),_0x1950cc=this[_0x2b73d3(0x198)][_0x2b73d3(0x234)][_0x2b73d3(0x167)](_0xf7d85[_0x2b73d3(0x1bb)],_0x12dcb9[_0x2b73d3(0x289)],_0x12dcb9[_0x2b73d3(0x14c)]),_0xce19de=this[_0x2b73d3(0x198)][_0x2b73d3(0x234)][_0x2b73d3(0x27f)](_0xf7d85[_0x2b73d3(0x1bb)],_0x1950cc);await assertRegularFile(_0xce19de,_0x1950cc[_0x2b73d3(0x1e2)]);const _0x3b28f5=_0x12dcb9[_0x2b73d3(0x1e7)]??-0x2301+0x8b7+0x1a4a;if(_0x3b28f5>_0x1950cc[_0x2b73d3(0x1e2)])throw new Error(_0x2b73d3(0x125));const _0x33cde5=Math[_0x2b73d3(0x268)](_0x12dcb9[_0x2b73d3(0x1ed)]??MAX_FILE_READ_BYTES,MAX_FILE_READ_BYTES),_0x39ca6c=await open(_0xce19de,'r');try{const _0x31a9ce=Buffer[_0x2b73d3(0x179)](Math[_0x2b73d3(0x268)](_0x33cde5,Math[_0x2b73d3(0x260)](-0x2707+-0xa*0x4a+0x49*0x93,_0x1950cc[_0x2b73d3(0x1e2)]-_0x3b28f5))),_0x4531d5=await _0x39ca6c[_0x2b73d3(0x1ab)](_0x31a9ce,-0x89+0x1e92+-0x21*0xe9,_0x31a9ce[_0x2b73d3(0x110)],_0x3b28f5),_0x383fa0=_0x3b28f5+_0x4531d5[_0x2b73d3(0x1fa)],_0x1b41c3=_0x383fa0>=_0x1950cc[_0x2b73d3(0x1e2)];return hostedConversationFileReadResultSchema[_0x2b73d3(0x116)]({'file':_0x1950cc,'encoding':_0x2b73d3(0x1e3),'content':_0x31a9ce[_0x2b73d3(0x2a0)](-0xe17*-0x1+0x520+-0x1337,_0x4531d5[_0x2b73d3(0x1fa)])[_0x2b73d3(0x2cb)](_0x2b73d3(0x1e3)),'offset':_0x3b28f5,'nextOffset':_0x1b41c3?null:_0x383fa0,'eof':_0x1b41c3});}finally{await _0x39ca6c[_0x2b73d3(0x1e6)]();}}async[_0x3dba87(0x161)](_0x4e9e13){const _0x3e79b6=_0x3dba87,_0x344713=hostedRequest(_0x4e9e13),_0x3d67e4=hostedConversationFileDeleteInputSchema[_0x3e79b6(0x116)](_0x344713[_0x3e79b6(0x2ce)]);this[_0x3e79b6(0x261)](_0x344713[_0x3e79b6(0x1bb)],_0x3d67e4[_0x3e79b6(0x289)]);const _0xabe580=_0x3d67e4[_0x3e79b6(0x289)]+'\x00'+_0x3d67e4[_0x3e79b6(0x14c)];if(this[_0x3e79b6(0x1a9)][_0x3e79b6(0x280)](_0xabe580))throw new Error(_0x3e79b6(0x1d9));this[_0x3e79b6(0x1a9)][_0x3e79b6(0x21f)](_0xabe580);try{const _0x31bb75=await this[_0x3e79b6(0x198)][_0x3e79b6(0x234)][_0x3e79b6(0x161)](_0x344713[_0x3e79b6(0x1bb)],_0x3d67e4[_0x3e79b6(0x289)],_0x3d67e4[_0x3e79b6(0x14c)],this[_0x3e79b6(0x190)]()),_0xe355c4=hostedConversationFileDeleteResultSchema[_0x3e79b6(0x116)]({'deletedFileId':_0x3d67e4[_0x3e79b6(0x14c)],'files':_0x31bb75});return this[_0x3e79b6(0x1bc)](_0x3d67e4[_0x3e79b6(0x289)],{'conversationId':_0x3d67e4[_0x3e79b6(0x289)],'kind':_0x3e79b6(0x16b),'files':_0xe355c4[_0x3e79b6(0x16b)],'error':null}),_0xe355c4;}finally{this[_0x3e79b6(0x1a9)][_0x3e79b6(0x163)](_0xabe580);}}async[_0x3dba87(0x146)](_0x1ee65d){const _0x21e80a=_0x3dba87,_0x5bf94d=hostedRequest(_0x1ee65d),_0x1c2db5=hostedConversationUploadPreflightInputSchema[_0x21e80a(0x116)](_0x5bf94d[_0x21e80a(0x2ce)]),_0x14e994=this[_0x21e80a(0x261)](_0x5bf94d[_0x21e80a(0x1bb)],_0x1c2db5[_0x21e80a(0x289)]),_0x5b6665=await this[_0x21e80a(0x177)](_0x14e994[_0x21e80a(0x1a4)],_0x14e994[_0x21e80a(0x1ec)]),_0x52cf75=this[_0x21e80a(0x198)][_0x21e80a(0x234)][_0x21e80a(0x228)](_0x5bf94d[_0x21e80a(0x1bb)],_0x14e994['id']),_0x16bc8f=await Promise[_0x21e80a(0x2e0)](_0x1c2db5[_0x21e80a(0x16b)][_0x21e80a(0x2bd)](async _0x5cf432=>({'name':_0x5cf432[_0x21e80a(0x2c1)],'status':await this[_0x21e80a(0x28e)](_0x52cf75,_0x14e994,_0x5b6665[_0x21e80a(0x2bb)],_0x5cf432[_0x21e80a(0x2c1)],_0x5cf432[_0x21e80a(0x1e2)])})));return hostedConversationUploadPreflightResultSchema[_0x21e80a(0x116)]({'files':_0x16bc8f});}async[_0x3dba87(0x1c6)](_0x140895){const _0x2691ae=_0x3dba87,_0x5d75ba=hostedRequest(_0x140895),_0x1de998=hostedConversationUploadCreateInputSchema[_0x2691ae(0x116)](_0x5d75ba[_0x2691ae(0x2ce)]),_0x351e22=this[_0x2691ae(0x261)](_0x5d75ba[_0x2691ae(0x1bb)],_0x1de998[_0x2691ae(0x289)]),_0x459dd9=_0x5d75ba[_0x2691ae(0x1bb)]+'\x00'+_0x351e22['id']+'\x00'+_0x1de998[_0x2691ae(0x2e3)],_0xf46db3=this[_0x2691ae(0x162)][_0x2691ae(0x262)](_0x459dd9);if(_0xf46db3!==undefined){const _0x236769=this[_0x2691ae(0x114)][_0x2691ae(0x262)](_0xf46db3);if(_0x236769!==undefined)return{'upload':hostedConversationUploadSchema[_0x2691ae(0x116)](uploadProjection(_0x236769))};}const _0x41037e=await this[_0x2691ae(0x177)](_0x351e22[_0x2691ae(0x1a4)],_0x351e22[_0x2691ae(0x1ec)]),_0x34dbb5=this[_0x2691ae(0x198)][_0x2691ae(0x234)][_0x2691ae(0x228)](_0x5d75ba[_0x2691ae(0x1bb)],_0x351e22['id']),_0x1024f2=await this[_0x2691ae(0x28e)](_0x34dbb5,_0x351e22,_0x41037e[_0x2691ae(0x2bb)],_0x1de998[_0x2691ae(0x2c1)],_0x1de998[_0x2691ae(0x1e2)]);if(_0x1024f2===_0x2691ae(0x2d5)||_0x1024f2===_0x2691ae(0x22d))throw new Error(_0x2691ae(0x247));if(_0x1024f2!==_0x2691ae(0x24f))throw new Error(_0x2691ae(0x2d4));const _0x8e1800=this['id'](),_0x205b27=join(_0x34dbb5[_0x2691ae(0x1fb)],'.'+_0x8e1800+_0x2691ae(0x14f)),_0x379546=join(_0x34dbb5[_0x2691ae(0x1fb)],_0x1de998[_0x2691ae(0x2c1)]),_0x37bab5=await open(_0x205b27,'wx',-0x2650+-0x1*-0x21c1+0x60f);await _0x37bab5[_0x2691ae(0x1e6)]();const _0x122347={'uploadId':_0x8e1800,'conversationId':_0x351e22['id'],'userId':_0x5d75ba[_0x2691ae(0x1bb)],'clientRequestId':_0x1de998[_0x2691ae(0x2e3)],'name':_0x1de998[_0x2691ae(0x2c1)],'mimeType':_0x1de998[_0x2691ae(0x2c2)],'size':_0x1de998[_0x2691ae(0x1e2)],'temporaryPath':_0x205b27,'targetPath':_0x379546,'receivedBytes':0x0,'status':_0x2691ae(0x14e)};return this[_0x2691ae(0x114)][_0x2691ae(0x1ba)](_0x8e1800,_0x122347),this[_0x2691ae(0x162)][_0x2691ae(0x1ba)](_0x459dd9,_0x8e1800),{'upload':hostedConversationUploadSchema[_0x2691ae(0x116)](uploadProjection(_0x122347))};}async[_0x3dba87(0x227)](_0x347366){const _0xd38a00=_0x3dba87,_0x4d6dce=hostedRequest(_0x347366),_0x5cb14f=hostedConversationUploadChunkInputSchema[_0xd38a00(0x116)](_0x4d6dce[_0xd38a00(0x2ce)]),_0x1a35c7=this[_0xd38a00(0x13b)](_0x4d6dce[_0xd38a00(0x1bb)],_0x5cb14f[_0xd38a00(0x289)],_0x5cb14f[_0xd38a00(0x130)]);if(_0x1a35c7[_0xd38a00(0x1fc)]!==_0xd38a00(0x14e))throw new Error(_0xd38a00(0x219));if(_0x5cb14f[_0xd38a00(0x1e7)]!==_0x1a35c7[_0xd38a00(0x2c0)])throw new Error(_0xd38a00(0x2de));const _0x1199d1=Buffer[_0xd38a00(0x229)](_0x5cb14f[_0xd38a00(0x1c0)],_0xd38a00(0x1e3));if(_0x1a35c7[_0xd38a00(0x2c0)]+_0x1199d1[_0xd38a00(0x2a5)]>_0x1a35c7[_0xd38a00(0x1e2)])throw new Error(_0xd38a00(0x2be));await assertUploadTemporaryFile(_0x1a35c7[_0xd38a00(0x16d)],_0x1a35c7[_0xd38a00(0x2c0)]);const _0x17454b=await open(_0x1a35c7[_0xd38a00(0x16d)],'r+');try{await _0x17454b[_0xd38a00(0x154)](_0x1199d1,0x2f3*-0x5+-0xc7*0x26+-0x2c49*-0x1,_0x1199d1[_0xd38a00(0x2a5)],_0x1a35c7[_0xd38a00(0x2c0)]);}finally{await _0x17454b[_0xd38a00(0x1e6)]();}return _0x1a35c7[_0xd38a00(0x2c0)]+=_0x1199d1[_0xd38a00(0x2a5)],{'upload':hostedConversationUploadSchema[_0xd38a00(0x116)](uploadProjection(_0x1a35c7))};}[_0x3dba87(0x2b2)](_0x5bd60d){const _0x1567ad=_0x3dba87,_0x259fdf=hostedRequest(_0x5bd60d),_0x5ef75a=hostedConversationUploadControlInputSchema[_0x1567ad(0x116)](_0x259fdf[_0x1567ad(0x2ce)]),_0x29d16b=this[_0x1567ad(0x13b)](_0x259fdf[_0x1567ad(0x1bb)],_0x5ef75a[_0x1567ad(0x289)],_0x5ef75a[_0x1567ad(0x130)]);return{'upload':hostedConversationUploadSchema[_0x1567ad(0x116)](uploadProjection(_0x29d16b))};}async[_0x3dba87(0x12e)](_0x138a1c){const _0x6ab7c7=_0x3dba87,_0x1d5b88=hostedRequest(_0x138a1c),_0x244d0c=hostedConversationUploadControlInputSchema[_0x6ab7c7(0x116)](_0x1d5b88[_0x6ab7c7(0x2ce)]),_0x5c113a=this[_0x6ab7c7(0x13b)](_0x1d5b88[_0x6ab7c7(0x1bb)],_0x244d0c[_0x6ab7c7(0x289)],_0x244d0c[_0x6ab7c7(0x130)]);if(_0x5c113a[_0x6ab7c7(0x1fc)]===_0x6ab7c7(0x263))return{'upload':hostedConversationUploadSchema[_0x6ab7c7(0x116)](uploadProjection(_0x5c113a))};if(_0x5c113a[_0x6ab7c7(0x1fc)]!==_0x6ab7c7(0x14e)||_0x5c113a[_0x6ab7c7(0x2c0)]!==_0x5c113a[_0x6ab7c7(0x1e2)])throw new Error(_0x6ab7c7(0x236));const _0x5a9eb4=this[_0x6ab7c7(0x261)](_0x1d5b88[_0x6ab7c7(0x1bb)],_0x5c113a[_0x6ab7c7(0x289)]),_0x12b3de=await this[_0x6ab7c7(0x177)](_0x5a9eb4[_0x6ab7c7(0x1a4)],_0x5a9eb4[_0x6ab7c7(0x1ec)]);if(_0x5c113a[_0x6ab7c7(0x1e2)]>_0x12b3de[_0x6ab7c7(0x2bb)][_0x6ab7c7(0x126)][_0x6ab7c7(0x17b)]||_0x5a9eb4[_0x6ab7c7(0x284)][_0x6ab7c7(0x1d7)]+_0x5c113a[_0x6ab7c7(0x1e2)]>_0x5a9eb4[_0x6ab7c7(0x284)][_0x6ab7c7(0x169)])throw new Error(_0x6ab7c7(0x247));await assertUploadTemporaryFile(_0x5c113a[_0x6ab7c7(0x16d)],_0x5c113a[_0x6ab7c7(0x1e2)]);const _0x40affd=await lstat(_0x5c113a[_0x6ab7c7(0x11e)])[_0x6ab7c7(0x2c9)](_0x52555f=>{const _0x4fdf8a=_0x6ab7c7;if(_0x52555f[_0x4fdf8a(0x2df)]===_0x4fdf8a(0x26f))return undefined;throw _0x52555f;});if(_0x40affd!==undefined)throw new Error(_0x6ab7c7(0x2d4));const _0x4bd841=await open(_0x5c113a[_0x6ab7c7(0x16d)],'r+');try{await _0x4bd841[_0x6ab7c7(0x20f)]();}finally{await _0x4bd841[_0x6ab7c7(0x1e6)]();}await rename(_0x5c113a[_0x6ab7c7(0x16d)],_0x5c113a[_0x6ab7c7(0x11e)]);const _0x5946e2=this[_0x6ab7c7(0x190)]();try{await utimes(_0x5c113a[_0x6ab7c7(0x11e)],new Date(_0x5946e2),new Date(_0x5946e2));const _0x3c5b7b={'id':this[_0x6ab7c7(0x198)][_0x6ab7c7(0x234)][_0x6ab7c7(0x15c)](_0x5c113a[_0x6ab7c7(0x289)],_0x6ab7c7(0x13f),_0x5c113a[_0x6ab7c7(0x2c1)]),'conversationId':_0x5c113a[_0x6ab7c7(0x289)],'category':_0x6ab7c7(0x13f),'relativePath':_0x5c113a[_0x6ab7c7(0x2c1)],'displayName':_0x5c113a[_0x6ab7c7(0x2c1)],'mimeType':_0x5c113a[_0x6ab7c7(0x2c2)],'size':_0x5c113a[_0x6ab7c7(0x1e2)],'source':_0x6ab7c7(0x2cd),'createdAt':_0x5946e2,'updatedAt':_0x5946e2};return _0x5c113a[_0x6ab7c7(0x240)]=await this[_0x6ab7c7(0x198)][_0x6ab7c7(0x234)][_0x6ab7c7(0x296)](_0x1d5b88[_0x6ab7c7(0x1bb)],_0x3c5b7b),_0x5c113a[_0x6ab7c7(0x1fc)]=_0x6ab7c7(0x263),this[_0x6ab7c7(0x1bc)](_0x5c113a[_0x6ab7c7(0x289)],{'conversationId':_0x5c113a[_0x6ab7c7(0x289)],'kind':_0x6ab7c7(0x16b),'files':this[_0x6ab7c7(0x198)][_0x6ab7c7(0x234)][_0x6ab7c7(0x148)](_0x1d5b88[_0x6ab7c7(0x1bb)],_0x5c113a[_0x6ab7c7(0x289)]),'error':null}),{'upload':hostedConversationUploadSchema[_0x6ab7c7(0x116)](uploadProjection(_0x5c113a))};}catch(_0x1493e1){await rename(_0x5c113a[_0x6ab7c7(0x11e)],_0x5c113a[_0x6ab7c7(0x16d)])[_0x6ab7c7(0x2c9)](()=>undefined);throw _0x1493e1;}}async[_0x3dba87(0x174)](_0xb3ef64){const _0x24daf7=_0x3dba87,_0x3d78bd=hostedRequest(_0xb3ef64),_0x55f194=hostedConversationUploadControlInputSchema[_0x24daf7(0x116)](_0x3d78bd[_0x24daf7(0x2ce)]),_0x276fe9=this[_0x24daf7(0x13b)](_0x3d78bd[_0x24daf7(0x1bb)],_0x55f194[_0x24daf7(0x289)],_0x55f194[_0x24daf7(0x130)]);if(_0x276fe9[_0x24daf7(0x1fc)]===_0x24daf7(0x263))throw new Error(_0x24daf7(0x219));return _0x276fe9[_0x24daf7(0x1fc)]=_0x24daf7(0x2a9),await rm(_0x276fe9[_0x24daf7(0x16d)],{'force':!![]}),{'upload':hostedConversationUploadSchema[_0x24daf7(0x116)](uploadProjection(_0x276fe9))};}async[_0x3dba87(0x163)](_0x342ce8){const _0x224824=_0x3dba87,_0xf2680c=hostedRequest(_0x342ce8),_0x22e51a=hostedConversationIdInputSchema[_0x224824(0x116)](_0xf2680c[_0x224824(0x2ce)]),_0x312fa6=this[_0x224824(0x198)][_0x224824(0x234)][_0x224824(0x176)](_0xf2680c[_0x224824(0x1bb)],_0x22e51a[_0x224824(0x289)]);if(this[_0x224824(0x292)][_0x224824(0x280)](_0x312fa6['id'])||this[_0x224824(0x225)][_0x224824(0x280)](_0x312fa6['id']))throw new Error(_0x224824(0x178));this[_0x224824(0x292)][_0x224824(0x21f)](_0x312fa6['id']);try{await this[_0x224824(0x145)](_0x312fa6['id']);const _0x3a970b=this[_0x224824(0x22f)][_0x224824(0x262)](_0x312fa6['id']);if(_0x3a970b!==undefined){const _0x5e9493=runInterruptionKey(_0x312fa6['id'],_0x3a970b[_0x224824(0x218)]['id']);this[_0x224824(0x215)][_0x224824(0x21f)](_0x5e9493);if(!_0x3a970b[_0x224824(0x118)]())this[_0x224824(0x215)][_0x224824(0x163)](_0x5e9493);}await this[_0x224824(0x231)](_0xf2680c[_0x224824(0x1bb)],_0x312fa6['id']);const _0x510a65=this[_0x224824(0x198)][_0x224824(0x234)][_0x224824(0x228)](_0xf2680c[_0x224824(0x1bb)],_0x312fa6['id']);return await this[_0x224824(0x198)][_0x224824(0x25a)][_0x224824(0x15b)]({'conversationId':_0x312fa6['id'],'sessionId':_0x312fa6[_0x224824(0x26b)],'homeDirectory':_0x510a65[_0x224824(0x24b)]})[_0x224824(0x2c9)](()=>undefined),await this[_0x224824(0x212)][_0x224824(0x262)](_0x312fa6['id'])?.[_0x224824(0x2c9)](()=>undefined),this[_0x224824(0x252)](_0x312fa6['id']),await this[_0x224824(0x198)][_0x224824(0x234)][_0x224824(0x2e5)](_0x312fa6['id']),this[_0x224824(0x299)][_0x224824(0x163)](_0x312fa6['id']),this[_0x224824(0x17a)][_0x224824(0x163)](_0x312fa6['id']),hostedConversationDeleteResultSchema[_0x224824(0x116)]({'deletedConversationId':_0x312fa6['id']});}finally{this[_0x224824(0x292)][_0x224824(0x163)](_0x312fa6['id']);}}async[_0x3dba87(0x145)](_0x457b95){const _0x5398bf=_0x3dba87,_0x2839e3=_0x457b95+'\x00',_0x25a621=[...this[_0x5398bf(0x196)][_0x5398bf(0x1e4)]()][_0x5398bf(0x172)](([_0x4b44a6])=>_0x4b44a6[_0x5398bf(0x2db)](_0x2839e3))[_0x5398bf(0x2bd)](([,_0x2ce53f])=>_0x2ce53f);await Promise[_0x5398bf(0x11d)](_0x25a621);}async[_0x3dba87(0x202)](_0x36aec4){const _0x592ac9=_0x3dba87;try{const _0x4ef99a=await this[_0x592ac9(0x262)]({'conversationId':_0x36aec4[_0x592ac9(0x289)],'__requestUserId':_0x36aec4[_0x592ac9(0x1bb)],'__marAgentModels':_0x36aec4[_0x592ac9(0x138)]});if(this[_0x592ac9(0x26a)][_0x592ac9(0x262)](_0x36aec4[_0x592ac9(0x1b3)])!==_0x36aec4)return;this[_0x592ac9(0x198)][_0x592ac9(0x12b)]?.({'type':_0x592ac9(0x124),'workbenchConnectionId':_0x36aec4[_0x592ac9(0x1af)],'watchId':_0x36aec4[_0x592ac9(0x258)],'nodeGeneration':_0x36aec4[_0x592ac9(0x1da)],'nodeId':this[_0x592ac9(0x198)][_0x592ac9(0x23f)](),'templateId':_0x36aec4[_0x592ac9(0x1ec)],'conversationId':_0x36aec4[_0x592ac9(0x289)],'revision':0x1,'snapshotSequence':++this[_0x592ac9(0x264)],'expiresAt':_0x36aec4[_0x592ac9(0x25b)],'payload':_0x4ef99a}),_0x36aec4[_0x592ac9(0x115)]=!![];for(const _0x1e3e2b of _0x36aec4[_0x592ac9(0x17d)])this[_0x592ac9(0x278)](_0x36aec4,_0x1e3e2b);_0x36aec4[_0x592ac9(0x17d)][_0x592ac9(0x110)]=-0x10bc+-0x5f5*0x3+0x229b*0x1;}catch(_0x582e71){if(this[_0x592ac9(0x26a)][_0x592ac9(0x262)](_0x36aec4[_0x592ac9(0x1b3)])!==_0x36aec4)return;this[_0x592ac9(0x198)][_0x592ac9(0x12b)]?.({'type':_0x592ac9(0x191),'workbenchConnectionId':_0x36aec4[_0x592ac9(0x1af)],'watchType':_0x592ac9(0x275),'watchId':_0x36aec4[_0x592ac9(0x258)],'nodeGeneration':_0x36aec4[_0x592ac9(0x1da)],'nodeId':this[_0x592ac9(0x198)][_0x592ac9(0x23f)](),'templateId':_0x36aec4[_0x592ac9(0x1ec)],'conversationId':_0x36aec4[_0x592ac9(0x289)],'code':safeErrorCode(_0x582e71,_0x592ac9(0x14d)),'message':_0x592ac9(0x1d1)}),this[_0x592ac9(0x1f7)](_0x36aec4[_0x592ac9(0x1b3)]);}}[_0x3dba87(0x1f4)](_0xaa7bc2,_0x2574ce){const _0x3fa15d=_0x3dba87;for(const _0xcf1d55 of this[_0x3fa15d(0x26a)][_0x3fa15d(0x19a)]()){if(_0xcf1d55[_0x3fa15d(0x289)]!==_0xaa7bc2||!_0xcf1d55[_0x3fa15d(0x115)])continue;this[_0x3fa15d(0x198)][_0x3fa15d(0x12b)]?.({'type':_0x3fa15d(0x124),'workbenchConnectionId':_0xcf1d55[_0x3fa15d(0x1af)],'watchId':_0xcf1d55[_0x3fa15d(0x258)],'nodeGeneration':_0xcf1d55[_0x3fa15d(0x1da)],'nodeId':this[_0x3fa15d(0x198)][_0x3fa15d(0x23f)](),'templateId':_0xcf1d55[_0x3fa15d(0x1ec)],'conversationId':_0xcf1d55[_0x3fa15d(0x289)],'revision':0x1,'snapshotSequence':++this[_0x3fa15d(0x264)],'expiresAt':_0xcf1d55[_0x3fa15d(0x25b)],'payload':_0x2574ce});}}[_0x3dba87(0x1f6)](_0x21d332){const _0x3e1090=_0x3dba87;return this[_0x3e1090(0x299)][_0x3e1090(0x262)](_0x21d332)??{'status':_0x3e1090(0x1fe),'version':0x0,'updatedAt':0x0};}[_0x3dba87(0x1ea)](_0x48c33e){const _0x5c9cbf=_0x3dba87;return hostedConversationSummary(_0x48c33e,this[_0x5c9cbf(0x1f6)](_0x48c33e['id']));}[_0x3dba87(0x217)](_0x34415d,_0x31e605,_0x526bc4,_0x4ca5c3){const _0x248c7b=_0x3dba87,_0x347328=this[_0x248c7b(0x1f6)](_0x31e605['id']),_0x20d76f={'status':_0x526bc4,'version':_0x347328[_0x248c7b(0x16e)]+(0x1da8+0x17b0+0x3557*-0x1),'updatedAt':_0x4ca5c3};this[_0x248c7b(0x299)][_0x248c7b(0x1ba)](_0x31e605['id'],_0x20d76f),this[_0x248c7b(0x2d7)]({'kind':_0x248c7b(0x1f6),'userId':_0x34415d,'templateId':_0x31e605[_0x248c7b(0x1ec)],'conversationId':_0x31e605['id'],'activity':_0x20d76f});}[_0x3dba87(0x15a)](_0x572b61,_0x56aec6,_0x14b3a9,_0x15e502){const _0x1ce443=_0x3dba87;this[_0x1ce443(0x2d7)]({'kind':_0x1ce443(0x19e),'event':{'runId':_0x14b3a9,'sequence':0x1,'eventType':_0x1ce443(0x19e),'payload':{'targetType':_0x1ce443(0x294),'userId':_0x572b61,'templateId':_0x56aec6[_0x1ce443(0x1ec)],'conversationId':_0x56aec6['id'],'conversationTitle':_0x56aec6[_0x1ce443(0x265)],'runId':_0x14b3a9,'notificationId':_0x1ce443(0x2a1)+this[_0x1ce443(0x198)][_0x1ce443(0x23f)]()+':'+_0x56aec6['id']+':'+_0x14b3a9,'kind':_0x1ce443(0x182),'outcome':_0x15e502[_0x1ce443(0x1fc)],'occurredAt':_0x15e502[_0x1ce443(0x157)]},'createdAt':_0x15e502[_0x1ce443(0x157)]}});}[_0x3dba87(0x2d7)](_0x2b360e){const _0x2b2cf4=_0x3dba87,_0x4ccd0d=this[_0x2b2cf4(0x198)][_0x2b2cf4(0x267)]?.(_0x2b360e)??{'sequence':++this[_0x2b2cf4(0x151)],'category':_0x2b2cf4(0x275),'payload':_0x2b360e};if(_0x4ccd0d!==undefined)this[_0x2b2cf4(0x198)][_0x2b2cf4(0x136)]?.(_0x4ccd0d);}[_0x3dba87(0x21e)](_0x1085cf,_0x369547,_0x4cb4c2,_0x94b905){const _0x4c043a=_0x3dba87;this[_0x4c043a(0x1bc)](_0x1085cf['id'],{'conversationId':_0x1085cf['id'],'kind':_0x4c043a(0x1b9),'upgrade':{'status':_0x4c043a(0x1e8),'previousVersionId':_0x369547,'targetVersionId':_0x4cb4c2,'activeVersionId':_0x1085cf[_0x4c043a(0x1a4)],'conversation':this[_0x4c043a(0x1ea)](_0x1085cf),'error':{'code':safeErrorCode(_0x94b905,_0x4c043a(0x2c3)),'message':_0x4c043a(0x1b8)}}});}[_0x3dba87(0x1bc)](_0x1f7633,_0x52730a){const _0x361731=_0x3dba87,_0x171aa4=[...this[_0x361731(0x26a)][_0x361731(0x19a)]()][_0x361731(0x172)](_0x2975df=>_0x2975df[_0x361731(0x289)]===_0x1f7633);if(_0x171aa4[_0x361731(0x110)]===-0x1f87+0x26dd*-0x1+0x2*0x2332)return![];const _0x59f1bf=this[_0x361731(0x198)][_0x361731(0x267)]?.(_0x52730a)??{'sequence':++this[_0x361731(0x151)],'category':_0x361731(0x275),'payload':_0x52730a};if(_0x59f1bf===undefined)return![];for(const _0x3da125 of _0x171aa4){if(!_0x3da125[_0x361731(0x115)])_0x3da125[_0x361731(0x17d)][_0x361731(0x211)](_0x59f1bf);else this[_0x361731(0x278)](_0x3da125,_0x59f1bf);}return!![];}[_0x3dba87(0x278)](_0x1695c1,_0x56b2ca){const _0xae3f2b=_0x3dba87;this[_0xae3f2b(0x198)][_0xae3f2b(0x12b)]?.({'type':_0xae3f2b(0x257),'workbenchConnectionId':_0x1695c1[_0xae3f2b(0x1af)],'watchId':_0x1695c1[_0xae3f2b(0x258)],'nodeGeneration':_0x1695c1[_0xae3f2b(0x1da)],'nodeId':this[_0xae3f2b(0x198)][_0xae3f2b(0x23f)](),'templateId':_0x1695c1[_0xae3f2b(0x1ec)],'conversationId':_0x1695c1[_0xae3f2b(0x289)],'expiresAt':_0x1695c1[_0xae3f2b(0x25b)],'event':_0x56b2ca});}[_0x3dba87(0x1f1)](_0x3053b7){const _0x48a4d5=_0x3dba87;return{'accepted':!![],'watchId':_0x3053b7[_0x48a4d5(0x258)],'nodeGeneration':_0x3053b7[_0x48a4d5(0x1da)],'expiresAt':_0x3053b7[_0x48a4d5(0x25b)]};}[_0x3dba87(0x252)](_0x1402fe){const _0x46bf14=_0x3dba87;for(const _0x34dce6 of[...this[_0x46bf14(0x26a)][_0x46bf14(0x19a)]()])if(_0x34dce6[_0x46bf14(0x289)]===_0x1402fe)this[_0x46bf14(0x1f7)](_0x34dce6[_0x46bf14(0x1b3)]);}[_0x3dba87(0x1f7)](_0x38ec61){const _0x54193b=_0x3dba87,_0x3a95d5=this[_0x54193b(0x26a)][_0x54193b(0x262)](_0x38ec61);if(_0x3a95d5===undefined)return;clearTimeout(_0x3a95d5[_0x54193b(0x111)]),this[_0x54193b(0x26a)][_0x54193b(0x163)](_0x38ec61),this[_0x54193b(0x15d)][_0x54193b(0x1d5)](_0x38ec61,_0x3a95d5[_0x54193b(0x2c5)]);}[_0x3dba87(0x173)](_0x1e1089){const _0x37c6d7=_0x3dba87,_0x98b624=setTimeout(()=>this[_0x37c6d7(0x1f7)](_0x1e1089),WATCH_TTL_MS);return _0x98b624[_0x37c6d7(0x239)](),_0x98b624;}[_0x3dba87(0x261)](_0x20a5d3,_0x55f650){const _0x43e396=_0x3dba87,_0x4d0fd6=this[_0x43e396(0x198)][_0x43e396(0x234)][_0x43e396(0x176)](_0x20a5d3,_0x55f650);if(this[_0x43e396(0x292)][_0x43e396(0x280)](_0x4d0fd6['id']))throw new Error(_0x43e396(0x178));if(_0x4d0fd6[_0x43e396(0x1fc)]!==_0x43e396(0x2aa))throw new Error(_0x43e396(0x178));return _0x4d0fd6;}[_0x3dba87(0x13b)](_0x16f126,_0x49c122,_0x2e710a){const _0x538c8b=_0x3dba87;this[_0x538c8b(0x198)][_0x538c8b(0x234)][_0x538c8b(0x176)](_0x16f126,_0x49c122);const _0x51a2e3=this[_0x538c8b(0x114)][_0x538c8b(0x262)](_0x2e710a);if(_0x51a2e3===undefined||_0x51a2e3[_0x538c8b(0x1bb)]!==_0x16f126||_0x51a2e3[_0x538c8b(0x289)]!==_0x49c122)throw new Error(_0x538c8b(0x2dd));return _0x51a2e3;}async[_0x3dba87(0x231)](_0x3d2c0a,_0x169b30){const _0x31de06=_0x3dba87;for(const _0x41bd29 of this[_0x31de06(0x114)][_0x31de06(0x19a)]()){if(_0x41bd29[_0x31de06(0x1bb)]!==_0x3d2c0a||_0x41bd29[_0x31de06(0x289)]!==_0x169b30)continue;_0x41bd29[_0x31de06(0x1fc)]===_0x31de06(0x14e)&&(_0x41bd29[_0x31de06(0x1fc)]=_0x31de06(0x2a9),await rm(_0x41bd29[_0x31de06(0x16d)],{'force':!![]})[_0x31de06(0x2c9)](()=>undefined));}}async[_0x3dba87(0x2e2)](_0x4b2f10,_0x189590,_0x20e47c){const _0x29d945=_0x3dba87,_0x483e48=this[_0x29d945(0x198)][_0x29d945(0x234)][_0x29d945(0x167)](_0x4b2f10,_0x189590,_0x20e47c);if(_0x483e48[_0x29d945(0x246)]!==_0x29d945(0x13f))throw new Error(_0x29d945(0x20e));return await assertRegularFile(this[_0x29d945(0x198)][_0x29d945(0x234)][_0x29d945(0x27f)](_0x4b2f10,_0x483e48),_0x483e48[_0x29d945(0x1e2)]),_0x483e48;}async[_0x3dba87(0x28e)](_0x3f3b75,_0x392a97,_0x58817c,_0x1a07b4,_0x51c6da){const _0x5e8663=_0x3dba87;if(_0x51c6da>_0x58817c[_0x5e8663(0x126)][_0x5e8663(0x17b)])return _0x5e8663(0x22d);if(_0x392a97[_0x5e8663(0x284)][_0x5e8663(0x1d7)]+_0x51c6da>_0x392a97[_0x5e8663(0x284)][_0x5e8663(0x169)])return _0x5e8663(0x2d5);const _0x2db020=await lstat(join(_0x3f3b75[_0x5e8663(0x1fb)],_0x1a07b4))[_0x5e8663(0x2c9)](_0x5b4359=>{const _0x4bed0a=_0x5e8663;if(_0x5b4359[_0x4bed0a(0x2df)]===_0x4bed0a(0x26f))return undefined;throw _0x5b4359;});return _0x2db020===undefined?_0x5e8663(0x24f):_0x5e8663(0x1ee);}[_0x3dba87(0x251)](_0x41ee5e,_0x488f71,_0x46c675,_0x45e6a8,_0x5dba3c){const _0x59c171=_0x3dba87,_0x2292c4=[{'logicalPath':_0x59c171(0x24c),'physicalPath':_0x488f71[_0x59c171(0x2c4)],'writable':![]},{'logicalPath':_0x59c171(0x2a2),'physicalPath':_0x41ee5e[_0x59c171(0x1fb)],'writable':!![]},{'logicalPath':_0x59c171(0x276),'physicalPath':_0x41ee5e[_0x59c171(0x1be)],'writable':!![]}];if(_0x5dba3c!==undefined)_0x2292c4[_0x59c171(0x211)]({'logicalPath':_0x59c171(0x282),'physicalPath':_0x5dba3c,'writable':!![]});if(_0x46c675!==undefined&&_0x45e6a8!==undefined)_0x2292c4[_0x59c171(0x211)]({'logicalPath':_0x45e6a8,'physicalPath':_0x46c675,'writable':![]});if(_0x488f71[_0x59c171(0x235)]!==undefined)_0x2292c4[_0x59c171(0x211)]({'logicalPath':_0x488f71[_0x59c171(0x235)],'physicalPath':_0x488f71[_0x59c171(0x2c4)],'writable':![]},{'logicalPath':join(_0x488f71[_0x59c171(0x235)],_0x59c171(0x27c)),'physicalPath':_0x41ee5e[_0x59c171(0x1fb)],'writable':!![]},{'logicalPath':join(_0x488f71[_0x59c171(0x235)],_0x59c171(0x200)),'physicalPath':_0x41ee5e[_0x59c171(0x1be)],'writable':!![]});return _0x2292c4;}[_0x3dba87(0x12a)](_0x43ad9f,_0x286fc5,_0x17d395=_0x43ad9f[_0x3dba87(0x1a8)],_0x4deb85,_0x4fecc8){const _0x15be4b=_0x3dba87;return this[_0x15be4b(0x198)][_0x15be4b(0x283)]({'policyVersion':HOST_POLICY_VERSION,'workspaceDirectory':_0x286fc5[_0x15be4b(0x2c4)],..._0x286fc5[_0x15be4b(0x235)]===undefined?{}:{'sourceWorkspacePath':_0x286fc5[_0x15be4b(0x235)]},'inboxDirectory':_0x43ad9f[_0x15be4b(0x1fb)],'outputDirectory':_0x43ad9f[_0x15be4b(0x1be)],..._0x4deb85===undefined||_0x4fecc8===undefined?{}:{'generatedImagesDirectory':_0x4deb85,'generatedImagesLogicalPath':_0x4fecc8},'temporaryDirectory':_0x17d395,'networkMode':_0x286fc5[_0x15be4b(0x2bb)][_0x15be4b(0x25f)]});}[_0x3dba87(0x19d)](_0x79e5c3){const _0x5375ee=_0x3dba87,_0x29dd03=this[_0x5375ee(0x198)][_0x5375ee(0x134)][_0x5375ee(0x1d3)][_0x5375ee(0x119)](_0x5375ee(0x197))[_0x5375ee(0x262)](_0x79e5c3);if(_0x29dd03===undefined)return undefined;if(typeof _0x29dd03['id']!==_0x5375ee(0x1ae))throw new Error(_0x5375ee(0x113));return _0x29dd03['id'];}async[_0x3dba87(0x177)](_0x158d38,_0x5c3f8a){const _0x4d2d9d=_0x3dba87,_0x395738=this[_0x4d2d9d(0x198)][_0x4d2d9d(0x134)][_0x4d2d9d(0x1d3)][_0x4d2d9d(0x119)](_0x4d2d9d(0x269))[_0x4d2d9d(0x262)](_0x158d38,_0x5c3f8a);if(_0x395738===undefined||_0x395738[_0x4d2d9d(0x1fc)]!==_0x4d2d9d(0x205)&&_0x395738[_0x4d2d9d(0x1fc)]!==_0x4d2d9d(0x1ad)||_0x395738[_0x4d2d9d(0x25e)]!==HOST_POLICY_VERSION||typeof _0x395738[_0x4d2d9d(0x1a2)]!==_0x4d2d9d(0x1ae)||typeof _0x395738[_0x4d2d9d(0x2a4)]!==_0x4d2d9d(0x1ae)||typeof _0x395738[_0x4d2d9d(0x1bf)]!==_0x4d2d9d(0x1ae)||typeof _0x395738[_0x4d2d9d(0x168)]!==_0x4d2d9d(0x1ae)||typeof _0x395738[_0x4d2d9d(0x26e)]!==_0x4d2d9d(0x1ae))throw new Error(_0x4d2d9d(0x113));const _0x5829fe=this[_0x4d2d9d(0x198)][_0x4d2d9d(0x234)][_0x4d2d9d(0x128)](_0x395738[_0x4d2d9d(0x1a2)]),_0x4541fd=join(_0x5829fe,_0x4d2d9d(0x133)),_0x30df48=join(_0x5829fe,_0x4d2d9d(0x2ae)),_0x3508b0=await lstat(_0x4541fd)[_0x4d2d9d(0x2c9)](()=>undefined),_0xe543e1=await lstat(_0x30df48)[_0x4d2d9d(0x2c9)](()=>undefined);if(_0x3508b0===undefined||!_0x3508b0[_0x4d2d9d(0x2b0)]()||_0x3508b0[_0x4d2d9d(0x286)]()||_0xe543e1===undefined||!_0xe543e1[_0x4d2d9d(0x249)]()||_0xe543e1[_0x4d2d9d(0x286)]()||(_0xe543e1[_0x4d2d9d(0x1a5)]&0xf4a+-0x9*0x38b+0x1298)!==0x373*-0x1+-0x15*0x153+-0x3*-0xae5)throw new Error(_0x4d2d9d(0x113));let _0x46728c;try{const _0x350090=await readFile(_0x4541fd,_0x4d2d9d(0x1c2)),_0x5c9c87=_0x350090[_0x4d2d9d(0x132)]('\x0a')?_0x350090[_0x4d2d9d(0x298)](-0x1*-0x2287+0x1430+0x57*-0xa1,-(-0x8d0+-0x2*-0x2a4+0x389*0x1)):_0x350090;if(_0x5c9c87!==_0x395738[_0x4d2d9d(0x2a4)]||createHash(_0x4d2d9d(0x12f))[_0x4d2d9d(0x1cb)](_0x5c9c87)[_0x4d2d9d(0x2c7)](_0x4d2d9d(0x27a))!==_0x395738[_0x4d2d9d(0x168)])throw new Error(_0x4d2d9d(0x113));_0x46728c=JSON[_0x4d2d9d(0x116)](_0x5c9c87);}catch{throw new Error(_0x4d2d9d(0x113));}if(!record(_0x46728c))throw new Error(_0x4d2d9d(0x113));const _0xacb44f=publishedTemplateSnapshot(_0x46728c),_0x1298a4=publishedTemplateDraft(_0xacb44f[_0x4d2d9d(0x222)],_0x46728c[_0x4d2d9d(0x2bb)]),_0x67b018=_0x1298a4[_0x4d2d9d(0x2bb)],_0x5c8d5c=publishedMcpServers(_0x46728c[_0x4d2d9d(0x1b6)]),_0x3aa216=publishedTemplateContentHash(_0xacb44f[_0x4d2d9d(0x11f)],_0xacb44f[_0x4d2d9d(0x1e4)],_0xacb44f[_0x4d2d9d(0x222)]),_0x2d1c6f=_0xacb44f[_0x4d2d9d(0x1e4)][_0x4d2d9d(0x207)]((_0x5d47cb,_0x14807d)=>_0x5d47cb+_0x14807d[_0x4d2d9d(0x1e2)],0x1bd1+-0x1*-0xe0b+0x5e*-0x72);if(_0x46728c[_0x4d2d9d(0x24e)]!==_0x395738[_0x4d2d9d(0x26e)]||createHash(_0x4d2d9d(0x12f))[_0x4d2d9d(0x1cb)](JSON[_0x4d2d9d(0x1c9)](_0x5c8d5c))[_0x4d2d9d(0x2c7)](_0x4d2d9d(0x27a))!==_0x395738[_0x4d2d9d(0x26e)]||_0x46728c[_0x4d2d9d(0x2e1)]!==_0x395738[_0x4d2d9d(0x1bf)]||_0x3aa216!==_0x395738[_0x4d2d9d(0x1bf)]||_0x395738[_0x4d2d9d(0x2b5)]!==_0xacb44f[_0x4d2d9d(0x1e4)][_0x4d2d9d(0x110)]||_0x395738[_0x4d2d9d(0x143)]!==_0x2d1c6f)throw new Error(_0x4d2d9d(0x113));if(_0x46728c[_0x4d2d9d(0x27e)]!==_0x158d38||_0x46728c[_0x4d2d9d(0x1ec)]!==_0x5c3f8a||_0x46728c[_0x4d2d9d(0x216)]!==HOST_POLICY_VERSION||_0x67b018[_0x4d2d9d(0x1ec)]!==_0x5c3f8a||_0x67b018[_0x4d2d9d(0x23f)]!==this[_0x4d2d9d(0x198)][_0x4d2d9d(0x23f)]())throw new Error(_0x4d2d9d(0x113));return{'id':_0x158d38,'templateId':_0x5c3f8a,'storageKey':_0x395738[_0x4d2d9d(0x1a2)],'templateDirectory':_0x30df48,..._0xacb44f[_0x4d2d9d(0x235)]===undefined?{}:{'sourceWorkspacePath':_0xacb44f[_0x4d2d9d(0x235)]},'draft':_0x67b018,'modelPolicy':_0x1298a4[_0x4d2d9d(0x2e4)],'mcpServers':_0x5c8d5c};}}function hostedRequest(_0x49b765){const _0x5df55b=_0x3dba87;if(!record(_0x49b765))throw new Error(_0x5df55b(0x175));const {__requestUserId:_0x3fda2f,__template:_0x163301,__marAgentModel:_0x5880dc,__marAgentModels:_0x253778,__marAgentRuntimeScopeId:_0x306153,__workspaceWatchSessionHash:_0x2aaf7f,__templateDeleted:_0x4817b1,..._0x45cad0}=_0x49b765;if(typeof _0x3fda2f!==_0x5df55b(0x28a)||!Number[_0x5df55b(0x19c)](_0x3fda2f)||_0x3fda2f<=-0xfe6+-0xdc8+0x1dae)throw new Error(_0x5df55b(0x175));if(_0x4817b1!==undefined&&_0x4817b1!==!![])throw new Error(_0x5df55b(0x175));if(_0x306153!==undefined&&(typeof _0x306153!==_0x5df55b(0x1ae)||_0x306153[_0x5df55b(0x110)]===-0x3a6+0x1bc2+-0x2*0xc0e))throw new Error(_0x5df55b(0x175));return{'data':_0x45cad0,'userId':_0x3fda2f,..._0x163301===undefined?{}:{'template':_0x163301},..._0x5880dc===undefined?{}:{'model':_0x5880dc},..._0x253778===undefined?{}:{'models':_0x253778},..._0x306153===undefined?{}:{'runtimeScopeId':_0x306153},..._0x2aaf7f===undefined?{}:{'sessionHash':_0x2aaf7f},..._0x4817b1===!![]?{'templateDeleted':!![]}:{}};}function requireWatchSessionHash(_0x36321d){const _0x3bbb73=_0x3dba87;if(typeof _0x36321d!==_0x3bbb73(0x1ae)||_0x36321d[_0x3bbb73(0x110)]===-0x25e3+0x1*0x127f+-0x44*-0x49)throw new Error(_0x3bbb73(0x175));return _0x36321d;}function watchOwnerKey(_0x4860df,_0x4321cc){return _0x4860df+':'+_0x4321cc;}function runtimeModels(_0x4dcd88){const _0x42e731=_0x3dba87;return marAgentRuntimeModelConfigurationSchema[_0x42e731(0x12c)]()[_0x42e731(0x116)](_0x4dcd88);}function allowedModels(_0x263594,_0x46189a){const _0x22d130=_0x3dba87,_0x227031=new Set(_0x263594[_0x22d130(0x2e4)][_0x22d130(0x274)]);return _0x46189a[_0x22d130(0x172)](_0x27c472=>_0x27c472[_0x22d130(0x291)]&&_0x227031[_0x22d130(0x280)](_0x263594[_0x22d130(0x2e4)][_0x22d130(0x244)]===_0x22d130(0x16f)?_0x27c472[_0x22d130(0x270)]:_0x27c472['id']));}function selectModel(_0x3d6f3c,_0x9ae4f1,_0x4f3a82){const _0x2bb69d=_0x3dba87,_0x51a4b6=allowedModels(_0x3d6f3c,_0x9ae4f1),_0x2d15ed=_0x51a4b6[_0x2bb69d(0x159)](_0x2ad4af=>_0x2ad4af['id']===_0x4f3a82);if(_0x2d15ed!==undefined)return _0x2d15ed;const _0x157c85=_0x51a4b6[_0x2bb69d(0x159)](_0x20a6e6=>(_0x3d6f3c[_0x2bb69d(0x2e4)][_0x2bb69d(0x244)]===_0x2bb69d(0x16f)?_0x20a6e6[_0x2bb69d(0x270)]:_0x20a6e6['id'])===_0x3d6f3c[_0x2bb69d(0x2e4)][_0x2bb69d(0x254)]);if(_0x157c85!==undefined)return _0x157c85;const _0x340ea5=_0x3d6f3c[_0x2bb69d(0x2e4)][_0x2bb69d(0x274)][_0x2bb69d(0x2bd)](_0x37664c=>_0x51a4b6[_0x2bb69d(0x159)](_0x3c8c5f=>(_0x3d6f3c[_0x2bb69d(0x2e4)][_0x2bb69d(0x244)]===_0x2bb69d(0x16f)?_0x3c8c5f[_0x2bb69d(0x270)]:_0x3c8c5f['id'])===_0x37664c))[_0x2bb69d(0x159)](_0x515c3f=>_0x515c3f!==undefined);if(_0x340ea5===undefined)throw new Error(_0x2bb69d(0x21a));return _0x340ea5;}function publishedTemplateDraft(_0x2dcad3,_0x13ad34){const _0x5d3a32=_0x3dba87,_0x274b1d=conversationTemplateDraftSchema[_0x5d3a32(0x2ad)](_0x13ad34);if(_0x274b1d[_0x5d3a32(0x140)]){const {allowedModels:_0x91076a,defaultModelId:_0x475cf7,..._0x2c2fbc}=_0x274b1d[_0x5d3a32(0x2ce)];return{'draft':_0x2c2fbc,'modelPolicy':{'identity':_0x5d3a32(0x16f),'allowedIds':_0x91076a[_0x5d3a32(0x2bd)](_0x3af34e=>_0x3af34e[_0x5d3a32(0x270)]),'defaultId':_0x475cf7}};}if(_0x2dcad3!==0x15fa*-0x1+0x4b*0x4a+0x4d||!record(_0x13ad34)||_0x5d3a32(0x1cf)in _0x13ad34||!Array[_0x5d3a32(0x14a)](_0x13ad34[_0x5d3a32(0x1eb)]))throw new Error(_0x5d3a32(0x113));const _0x793a0e=_0x13ad34[_0x5d3a32(0x1eb)],_0x34bdad={..._0x13ad34};delete _0x34bdad[_0x5d3a32(0x1eb)];const _0x287db7=conversationTemplateDraftSchema[_0x5d3a32(0x2ad)]({..._0x34bdad,'allowedModels':_0x793a0e[_0x5d3a32(0x2bd)](_0x2d1750=>({'modelId':_0x2d1750,'name':_0x2d1750}))});if(!_0x287db7[_0x5d3a32(0x140)])throw new Error(_0x5d3a32(0x113));const {allowedModels:_0x4ef33e,defaultModelId:_0x41dcee,..._0x1eb095}=_0x287db7[_0x5d3a32(0x2ce)];return{'draft':_0x1eb095,'modelPolicy':{'identity':_0x5d3a32(0x1e5),'allowedIds':_0x4ef33e[_0x5d3a32(0x2bd)](_0x1d9646=>_0x1d9646[_0x5d3a32(0x270)]),'defaultId':_0x41dcee}};}function networkModels(_0x372179,_0x1fbb0a){const _0x2e855f=_0x3dba87;if(_0x1fbb0a!==_0x2e855f(0x230))return _0x372179;return _0x372179[_0x2e855f(0x2bd)](_0x323467=>_0x323467[_0x2e855f(0x1ca)]?{..._0x323467,'hostedWebSearch':![]}:_0x323467);}function publishedMcpServers(_0x222439){const _0x4eac5c=_0x3dba87;if(!Array[_0x4eac5c(0x14a)](_0x222439))throw new Error(_0x4eac5c(0x113));return _0x222439[_0x4eac5c(0x2bd)](_0x349566=>{const _0x4c3529=_0x4eac5c;if(!record(_0x349566))throw new Error(_0x4c3529(0x113));const _0x2df198=Object[_0x4c3529(0x156)](_0x349566)[_0x4c3529(0x1f9)]()[_0x4c3529(0x19f)](',');if(_0x2df198!==_0x4c3529(0x121))throw new Error(_0x4c3529(0x113));const _0x5dd4a1=mcpRuntimeDescriptorSchema[_0x4c3529(0x116)](_0x349566[_0x4c3529(0x25a)]),_0x3aa313=mcpInstallationConfigurationSchema[_0x4c3529(0x116)](_0x349566[_0x4c3529(0x21b)]);if(typeof _0x349566['id']!==_0x4c3529(0x1ae)||typeof _0x349566[_0x4c3529(0x193)]!==_0x4c3529(0x1ae)||typeof _0x349566[_0x4c3529(0x15e)]!==_0x4c3529(0x1ae)||typeof _0x349566[_0x4c3529(0x16e)]!==_0x4c3529(0x1ae)||_0x349566[_0x4c3529(0x18f)]!==_0x4c3529(0x2a7)&&_0x349566[_0x4c3529(0x18f)]!==_0x4c3529(0x1ff)||_0x349566[_0x4c3529(0x1b5)]!==_0x5dd4a1[_0x4c3529(0x1b5)])throw new Error(_0x4c3529(0x113));return{'id':_0x349566['id'],'serverName':_0x349566[_0x4c3529(0x193)],'displayName':_0x349566[_0x4c3529(0x15e)],'version':_0x349566[_0x4c3529(0x16e)],'origin':_0x349566[_0x4c3529(0x18f)],'transport':_0x5dd4a1[_0x4c3529(0x1b5)],'runtime':_0x5dd4a1,'configuration':_0x3aa313};});}function publishedTemplateSnapshot(_0x903534){const _0x1a420c=_0x3dba87;if(_0x903534[_0x1a420c(0x222)]===-0x165d*0x1+-0x141*0xf+0x292d*0x1){const _0x1e86c7=publishedTemplateFiles(_0x903534[_0x1a420c(0x16b)]);return{'schemaVersion':0x1,'directories':legacyPublishedTemplateDirectories(_0x1e86c7),'entries':_0x1e86c7};}if(_0x903534[_0x1a420c(0x222)]!==0x275*0xd+-0x3e8*0x7+-0x497||typeof _0x903534[_0x1a420c(0x235)]!==_0x1a420c(0x1ae)||!Array[_0x1a420c(0x14a)](_0x903534[_0x1a420c(0x11f)])||!Array[_0x1a420c(0x14a)](_0x903534[_0x1a420c(0x1e4)]))throw new Error(_0x1a420c(0x113));validatePublishedSourceWorkspacePath(_0x903534[_0x1a420c(0x235)]);const _0x3cd470=_0x903534[_0x1a420c(0x11f)][_0x1a420c(0x2bd)](safePublishedTemplateRelativePath);if(new Set(_0x3cd470)[_0x1a420c(0x1e2)]!==_0x3cd470[_0x1a420c(0x110)]||_0x3cd470[_0x1a420c(0x25c)](_0x1a420c(0x27c))||_0x3cd470[_0x1a420c(0x25c)](_0x1a420c(0x200)))throw new Error(_0x1a420c(0x113));const _0x1ea9f5=_0x903534[_0x1a420c(0x1e4)][_0x1a420c(0x2bd)](publishedTemplateEntry);if(new Set(_0x1ea9f5[_0x1a420c(0x2bd)](_0x5ad07a=>_0x5ad07a[_0x1a420c(0x1b7)]))[_0x1a420c(0x1e2)]!==_0x1ea9f5[_0x1a420c(0x110)])throw new Error(_0x1a420c(0x113));return{'schemaVersion':0x2,'sourceWorkspacePath':_0x903534[_0x1a420c(0x235)],'directories':_0x3cd470,'entries':_0x1ea9f5};}function publishedTemplateEntry(_0x4927b6){const _0x502fae=_0x3dba87;if(!record(_0x4927b6))throw new Error(_0x502fae(0x113));if(_0x4927b6[_0x502fae(0x27b)]===_0x502fae(0x1db))return publishedTemplateFile(_0x4927b6,!![]);if(_0x4927b6[_0x502fae(0x27b)]!==_0x502fae(0x1cd)||typeof _0x4927b6[_0x502fae(0x1a3)]!==_0x502fae(0x1ae)||_0x4927b6[_0x502fae(0x1a3)][_0x502fae(0x110)]===0x1517+0x2*0x57d+-0x2011||_0x4927b6[_0x502fae(0x1a3)][_0x502fae(0x25c)]('\x00')||_0x4927b6[_0x502fae(0x297)]!==_0x502fae(0x2bc)&&_0x4927b6[_0x502fae(0x297)]!==_0x502fae(0x29d)||typeof _0x4927b6[_0x502fae(0x226)]!==_0x502fae(0x1ae))throw new Error(_0x502fae(0x113));const _0x3fffb1=safePublishedTemplateRelativePath(_0x4927b6[_0x502fae(0x1b7)]),_0x2173b3=safePublishedTemplateSize(_0x4927b6[_0x502fae(0x1e2)]),_0x3552c4=_0x4927b6[_0x502fae(0x1a3)],_0x3864c0=_0x4927b6[_0x502fae(0x297)],_0x3f9814=_0x4927b6[_0x502fae(0x226)];if(_0x2173b3!==Buffer[_0x502fae(0x2a5)](_0x3552c4))throw new Error(_0x502fae(0x113));if(_0x3864c0===_0x502fae(0x2bc))safePublishedTemplateRelativePath(_0x3f9814);else{if(!isAbsolute(_0x3f9814)||!RUNTIME_LINK_ROOTS[_0x502fae(0x142)](_0x3c245a=>_0x3f9814===_0x3c245a||within(_0x3c245a,_0x3f9814)))throw new Error(_0x502fae(0x113));}return{'kind':_0x502fae(0x1cd),'relativePath':_0x3fffb1,'size':_0x2173b3,'linkTarget':_0x3552c4,'targetKind':_0x3864c0,'resolvedTarget':_0x3f9814};}function publishedTemplateFiles(_0x10633d){const _0x165996=_0x3dba87;if(!Array[_0x165996(0x14a)](_0x10633d))throw new Error(_0x165996(0x113));const _0xbd915b=new Set();return _0x10633d[_0x165996(0x2bd)](_0x1afd5d=>{const _0x1d03e6=_0x165996,_0x339dc8=publishedTemplateFile(_0x1afd5d);if(_0xbd915b[_0x1d03e6(0x280)](_0x339dc8[_0x1d03e6(0x1b7)]))throw new Error(_0x1d03e6(0x113));return _0xbd915b[_0x1d03e6(0x21f)](_0x339dc8[_0x1d03e6(0x1b7)]),_0x339dc8;});}function publishedTemplateFile(_0x3f7d7c,_0x381b1c=![]){const _0x18d2e8=_0x3dba87;if(!record(_0x3f7d7c)||_0x381b1c&&_0x3f7d7c[_0x18d2e8(0x27b)]!==_0x18d2e8(0x1db)||typeof _0x3f7d7c[_0x18d2e8(0x1d0)]!==_0x18d2e8(0x209)||typeof _0x3f7d7c[_0x18d2e8(0x12f)]!==_0x18d2e8(0x1ae)||!/^[a-f0-9]{64}$/u[_0x18d2e8(0x1d4)](_0x3f7d7c[_0x18d2e8(0x12f)]))throw new Error(_0x18d2e8(0x113));return{'kind':_0x18d2e8(0x1db),'relativePath':safePublishedTemplateRelativePath(_0x3f7d7c[_0x18d2e8(0x1b7)]),'size':safePublishedTemplateSize(_0x3f7d7c[_0x18d2e8(0x1e2)]),'executable':_0x3f7d7c[_0x18d2e8(0x1d0)],'sha256':_0x3f7d7c[_0x18d2e8(0x12f)]};}function safePublishedTemplateRelativePath(_0x18ffca){const _0x539ee0=_0x3dba87;if(typeof _0x18ffca!==_0x539ee0(0x1ae)||_0x18ffca[_0x539ee0(0x110)]===0x1dbb+-0x1a21*0x1+-0x2*0x1cd||_0x18ffca[_0x539ee0(0x2db)]('/')||_0x18ffca[_0x539ee0(0x25c)]('\x5c')||_0x18ffca[_0x539ee0(0x20d)]('/')[_0x539ee0(0x142)](_0x4b2843=>_0x4b2843[_0x539ee0(0x110)]===0xb63*-0x3+0x2b3*-0x1+0x7*0x544||_0x4b2843==='.'||_0x4b2843==='..'))throw new Error(_0x539ee0(0x113));return _0x18ffca;}function safePublishedTemplateSize(_0x11c88d){const _0x5110f7=_0x3dba87;if(!Number[_0x5110f7(0x19c)](_0x11c88d)||_0x11c88d<0x1b73+0x1*0x443+-0x29*0xc6)throw new Error(_0x5110f7(0x113));return _0x11c88d;}function legacyPublishedTemplateDirectories(_0xf4491b){const _0xcaaaa9=_0x3dba87,_0x2c71f1=new Set();for(const _0x14fc9a of _0xf4491b){const _0x24f054=_0x14fc9a[_0xcaaaa9(0x1b7)][_0xcaaaa9(0x20d)]('/');for(let _0x259cc7=-0xcdc+-0x25*0x92+0x21f7*0x1;_0x259cc7<_0x24f054[_0xcaaaa9(0x110)];_0x259cc7+=-0x76f*0x1+-0x26e3+0xb1*0x43)_0x2c71f1[_0xcaaaa9(0x21f)](_0x24f054[_0xcaaaa9(0x298)](0x1976*-0x1+-0xf4f+0x28c5,_0x259cc7)[_0xcaaaa9(0x19f)]('/'));}return[..._0x2c71f1][_0xcaaaa9(0x1f9)]((_0x118846,_0x2957cb)=>_0x118846[_0xcaaaa9(0x185)](_0x2957cb,_0xcaaaa9(0x15f)));}function publishedTemplateContentHash(_0x2cc0f5,_0x273bcb,_0x30604c){const _0x3268c2=_0x3dba87,_0x31ccde=_0x30604c===0x4*-0x3c8+0x1b31+-0xc10?_0x273bcb[_0x3268c2(0x2bd)](_0x3356ad=>{const _0x5eccdf=_0x3268c2;if(_0x3356ad[_0x5eccdf(0x27b)]!==_0x5eccdf(0x1db))throw new Error(_0x5eccdf(0x113));return _0x3356ad[_0x5eccdf(0x1b7)]+'\x00'+_0x3356ad[_0x5eccdf(0x1e2)]+'\x00'+_0x3356ad[_0x5eccdf(0x12f)];})[_0x3268c2(0x19f)]('\x0a'):[..._0x2cc0f5[_0x3268c2(0x2bd)](_0x2fb466=>_0x3268c2(0x1ef)+_0x2fb466),..._0x273bcb[_0x3268c2(0x2bd)](_0xdc4005=>_0xdc4005[_0x3268c2(0x27b)]===_0x3268c2(0x1db)?_0xdc4005[_0x3268c2(0x27b)]+'\x00'+_0xdc4005[_0x3268c2(0x1b7)]+'\x00'+_0xdc4005[_0x3268c2(0x1e2)]+'\x00'+(_0xdc4005[_0x3268c2(0x1d0)]?-0x1a82*0x1+-0xdc5*0x2+0x89*0x65:0xd*0x79+-0xd27+-0x8a*-0xd)+'\x00'+_0xdc4005[_0x3268c2(0x12f)]:_0xdc4005[_0x3268c2(0x27b)]+'\x00'+_0xdc4005[_0x3268c2(0x1b7)]+'\x00'+_0xdc4005[_0x3268c2(0x1e2)]+'\x00'+_0xdc4005[_0x3268c2(0x1a3)]+'\x00'+_0xdc4005[_0x3268c2(0x297)]+'\x00'+_0xdc4005[_0x3268c2(0x226)])][_0x3268c2(0x19f)]('\x0a');return createHash(_0x3268c2(0x12f))[_0x3268c2(0x1cb)](_0x31ccde)[_0x3268c2(0x2c7)](_0x3268c2(0x27a));}function validatePublishedSourceWorkspacePath(_0x265c76){const _0xa13a90=_0x3dba87;if(!isAbsolute(_0x265c76)||resolve(_0x265c76)!==_0x265c76||_0x265c76==='/'||RESERVED_SANDBOX_ROOTS[_0xa13a90(0x142)](_0x221aba=>_0x265c76===_0x221aba||within(_0x221aba,_0x265c76)||within(_0x265c76,_0x221aba)))throw new Error(_0xa13a90(0x113));}function within(_0x407fd1,_0xbc6f99){const _0x1d3038=_0x3dba87,_0x61ae4f=relative(_0x407fd1,_0xbc6f99);return _0x61ae4f[_0x1d3038(0x110)]>-0x1e3b+0x2f8+0x1b43&&_0x61ae4f!=='..'&&!_0x61ae4f[_0x1d3038(0x2db)]('..'+sep);}function resolveMcpServers(_0x13c533,_0x106be1){const _0x242833=_0x3dba87,_0x3059b2=_0x3df76=>{const _0x3a3da4=_0x24f6,_0x29ab72={};for(const [_0x540917,_0x438bb3]of Object[_0x3a3da4(0x1e4)](_0x3df76??{})){const _0x2176aa=_0x106be1[_0x438bb3[_0x3a3da4(0x13a)]];if(_0x2176aa===undefined)throw new Error(_0x3a3da4(0x1f8));_0x29ab72[_0x540917]=_0x2176aa;}return _0x29ab72;};return _0x13c533[_0x242833(0x1b6)][_0x242833(0x221)](_0x18e603=>{const _0x220689=_0x242833;if(_0x18e603[_0x220689(0x25a)][_0x220689(0x1b5)]===_0x220689(0x1c4)){if(_0x13c533[_0x220689(0x2bb)][_0x220689(0x25f)]!==_0x220689(0x238))return[];return[{'name':_0x18e603[_0x220689(0x193)],'lifecycle':_0x220689(0x208),'transport':_0x220689(0x1c4),'url':_0x18e603[_0x220689(0x25a)][_0x220689(0x2b8)],'headers':{..._0x3059b2(_0x18e603[_0x220689(0x25a)][_0x220689(0x1fd)]),..._0x3059b2(_0x18e603[_0x220689(0x21b)][_0x220689(0x1fd)])}}];}return[{'name':_0x18e603[_0x220689(0x193)],'lifecycle':_0x220689(0x208),'transport':_0x220689(0x20b),'command':_0x18e603[_0x220689(0x25a)][_0x220689(0x241)],'args':[..._0x18e603[_0x220689(0x25a)][_0x220689(0x1e1)],..._0x18e603[_0x220689(0x21b)][_0x220689(0x139)]??[]],'environment':{..._0x3059b2(_0x18e603[_0x220689(0x25a)][_0x220689(0x11b)]),..._0x3059b2(_0x18e603[_0x220689(0x21b)][_0x220689(0x11b)])}}];});}function hostedConversationSummary(_0xb144d1,_0x40f36b){const _0x2b5508=_0x3dba87;return hostedConversationSummarySchema[_0x2b5508(0x116)]({'id':_0xb144d1['id'],'nodeId':_0xb144d1[_0x2b5508(0x23f)],'sessionId':_0xb144d1[_0x2b5508(0x26b)],'templateId':_0xb144d1[_0x2b5508(0x1ec)],'templateName':_0xb144d1[_0x2b5508(0x1c7)],'activeVersionId':_0xb144d1[_0x2b5508(0x1a4)],'title':_0xb144d1[_0x2b5508(0x265)],'titleSource':_0xb144d1[_0x2b5508(0x16a)],'pinnedAt':_0xb144d1[_0x2b5508(0x26d)],'status':_0xb144d1[_0x2b5508(0x1fc)],'modelId':_0xb144d1[_0x2b5508(0x270)],'createdAt':_0xb144d1[_0x2b5508(0x29e)],'updatedAt':_0xb144d1[_0x2b5508(0x245)],'lastActivityAt':_0xb144d1[_0x2b5508(0x2b4)],..._0x40f36b===undefined?{}:{'activity':_0x40f36b}});}function templateSummary(_0x39695a,_0x440efc){const _0x1f280b=_0x3dba87;return conversationTemplateSummarySchema[_0x1f280b(0x116)]({'id':_0x39695a[_0x1f280b(0x1ec)],'nodeId':_0x39695a[_0x1f280b(0x23f)],'name':_0x39695a[_0x1f280b(0x1c7)],'description':_0x440efc[_0x1f280b(0x21c)],'status':_0x39695a[_0x1f280b(0x170)]?_0x1f280b(0x13c):_0x1f280b(0x2aa),'currentVersionId':_0x39695a[_0x1f280b(0x1a4)],'available':!_0x39695a[_0x1f280b(0x170)],'createdAt':_0x39695a[_0x1f280b(0x29e)],'updatedAt':_0x440efc[_0x1f280b(0x245)]});}function modelSummary(_0x38a1d1,_0x2f5c63){const _0x1fed12=_0x3dba87;return{'id':_0x38a1d1['id'],'name':_0x38a1d1[_0x1fed12(0x2c1)],'protocol':_0x38a1d1[_0x1fed12(0x180)],'baseUrl':_0x38a1d1[_0x1fed12(0x2d0)],'modelId':_0x38a1d1[_0x1fed12(0x270)],'contextWindowTokens':_0x38a1d1[_0x1fed12(0x12d)],'maxOutputTokens':_0x38a1d1[_0x1fed12(0x281)],'inputCapabilities':_0x38a1d1[_0x1fed12(0x171)],'outputCapabilities':_0x38a1d1[_0x1fed12(0x1de)],'reasoningEfforts':_0x38a1d1[_0x1fed12(0x288)],'defaultReasoningEffort':resolveMarAgentDefaultReasoningEffort(_0x38a1d1[_0x1fed12(0x1a6)],_0x38a1d1[_0x1fed12(0x288)]),'hostedWebSearch':_0x38a1d1[_0x1fed12(0x1ca)],..._0x38a1d1[_0x1fed12(0x2d9)]===undefined?{}:{'responsesTransport':_0x38a1d1[_0x1fed12(0x2d9)]},'responsesPreviousResponseId':_0x38a1d1[_0x1fed12(0x1d6)],'enabled':_0x38a1d1[_0x1fed12(0x291)],'sortOrder':_0x2f5c63,'apiKeyConfigured':!![]};}function systemInstruction(_0x1e43c1,_0xd8228c){const _0xd6dd15=_0x3dba87,_0x2239a3=_0x1e43c1[_0xd6dd15(0x2bb)],_0x5691bf=_0x2239a3[_0xd6dd15(0x25f)]===_0xd6dd15(0x230)?_0xd6dd15(0x21d):_0xd6dd15(0x23d);return[_0xd6dd15(0x272),_0xd6dd15(0x201),_0xd6dd15(0x1e9),_0xd6dd15(0x2d3),_0xd6dd15(0x23c),_0xd6dd15(0x293),_0xd6dd15(0x19b),_0xd6dd15(0x1a7),_0xd6dd15(0x255),_0xd6dd15(0x22c),_0xd6dd15(0x295),_0xd6dd15(0x1b0),_0xd6dd15(0x214),..._0xd8228c===undefined?[]:[_0xd6dd15(0x1ac)+_0xd8228c+_0xd6dd15(0x166),_0xd6dd15(0x1a1)+_0xd8228c+_0xd6dd15(0x195)+_0xd8228c+_0xd6dd15(0x24a)],..._0x1e43c1[_0xd6dd15(0x235)]===undefined?[]:[_0xd6dd15(0x141)+_0x1e43c1[_0xd6dd15(0x235)]+_0xd6dd15(0x117)+join(_0x1e43c1[_0xd6dd15(0x235)],_0xd6dd15(0x27c))+_0xd6dd15(0x28d)+join(_0x1e43c1[_0xd6dd15(0x235)],_0xd6dd15(0x200))+_0xd6dd15(0x1df)],_0xd6dd15(0x206),_0x5691bf][_0xd6dd15(0x19f)]('\x0a');}function attachmentPrompt(_0x385ae8,_0x258044){const _0x4b6216=_0x3dba87;if(_0x258044[_0x4b6216(0x110)]===-0x22a1+-0x1*-0x1463+0x2*0x71f)return _0x385ae8;const _0x4404aa=_0x258044[_0x4b6216(0x2bd)](_0x30bc52=>_0x4b6216(0x237)+_0x30bc52[_0x4b6216(0x1b7)])[_0x4b6216(0x19f)]('\x0a');return''+_0x385ae8+(_0x385ae8[_0x4b6216(0x1c1)]()[_0x4b6216(0x110)]===-0x1eef+0x136*0x5+0x18e1?'':'\x0a\x0a')+_0x4b6216(0x11a)+_0x4404aa;}function automaticHostedConversationTitle(_0x2ae26a){const _0x4923fc=_0x3dba87;if(_0x2ae26a===undefined)return undefined;const _0x55514e=sessionTitleFromFirstMessage(_0x2ae26a);if(_0x55514e[_0x4923fc(0x110)]===0x3b*-0x61+0x255b+-0xf00||/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x4923fc(0x1d4)](_0x55514e))return undefined;return _0x55514e;}function terminalHostedTurnStatus(_0x3dec1a){const _0x2190f9=_0x3dba87;return _0x3dec1a===_0x2190f9(0x232)||_0x3dec1a===_0x2190f9(0x1e8)||_0x3dec1a===_0x2190f9(0x2a9)||_0x3dec1a===_0x2190f9(0x2ab)||_0x3dec1a===_0x2190f9(0x164);}function runFromMessage(_0x1621c7){const _0x11573f=_0x3dba87;return{'id':_0x1621c7[_0x11573f(0x248)],'status':_0x1621c7[_0x11573f(0x1fc)],'startedAt':_0x1621c7[_0x11573f(0x29e)],'completedAt':_0x1621c7[_0x11573f(0x1fc)]===_0x11573f(0x1b1)?null:_0x1621c7[_0x11573f(0x245)]};}function runInterruptionKey(_0x30fe40,_0x43fce9){return _0x30fe40+'\x00'+_0x43fce9;}function _0x1027(){const _0x120fef=['zNvSBc1Hy2nLC3m','zMLSzuLK','se9tvevex0nptLzfuLnbveLptL9xqvrdsf9gquLmruq','vvbmt0fesu5h','lNvWBg9Hza','uLvox0LnquDfx05pvf9gt1vora','D29YA2jLBMnOu2vXDwvUy2u','AgfZtM9Urw1WDhLvC2vYtwvZC2fNzq','CM9SBgjHy2S','D3jPDgu','Cgf0Ahm','A2v5CW','y29TCgXLDgvKqxq','y3jLyxrL','zMLUza','ChvIBgLZAfrLCM1PBMfStM90AwzPy2f0Aw9U','CMvSzwfZzvnLC3nPB24','zMLSzvbYB2PLy3rPB25jza','C2vZC2LVBLDHDgnOu2XVDhm','zgLZCgXHEu5HBwu','zw4Tvvm','yxr0ywnOBwvUDeLKCW','zgvSzxrLrMLSzq','DxbSB2fKC0j5uMvXDwvZDa','zgvSzxrL','te9tva','DxbKyxrLq29UzMLNDxjHDgLVBG','igrPCMvJDg9YEs4','CMvXDwLYzuzPBgu','BwfUAwzLC3rFAgfZAa','Bwf4qNL0zxm','DgL0BgvtB3vYy2u','zMLSzxm','CMvHzezPBgu','DgvTCg9Yyxj5ugf0Aa','DMvYC2LVBG','vvbtvfjfqu1Ftu9eruXFsuq','DgvTCgXHDgvezwXLDgvK','Aw5WDxrdyxbHyMLSAxrPzxm','zMLSDgvY','D2f0y2HmzwfZzvrPBwvY','y2fUy2vSvxbSB2fK','se9tvevex0nptLzfuLnbveLptL9ot1rFqvvuse9ssvPfra','CMvXDwLYzunVBNzLCNnHDgLVBG','Bg9HzfrLBxbSyxrLvMvYC2LVBG','se9tvevex0nptLzfuLnbveLptL9tvefurv9jtLzbteLe','ywXSB2m','AgLZDg9YEvzLCNnPB25Z','Bwf4vxbSB2fKqNL0zxm','u0vtu0LptL9xqvrdsf9ot1rFrK9vtKq','CgvUzgLUz0v2zw50CW','C3rHCNrLzef0','sg9ZDgvKignVBNzLCNnHDgLVBIbMAwXLihbYB2PLy3rPB24GzMfPBgvKlG','ChjVDg9JB2W','y2XPzw50twvZC2fNzuLK','uLvox1rfuK1jtKfm','ChjLDMLVDxnwzxjZAw9Uswq','l2XPyJy0','Bg9JywXLq29TCgfYzq','zMLUAxnOtwvZC2fNzq','se9tvevex0nptLzfuLnbveLptL9st0XmqKfds19uqvjhrvrFsu5wquXjra','CMvWBgfJzq','q1vtve9n','B2jQzwn0','se9tvevex0nptLzfuLnbveLptL9trvntsu9ox0LovKfmsuq','Dw5RBM93BG','l2rLDG','CMv0ywLUq29UDMvYC2f0Aw9UvgvTCgXHDgu','B3jPz2LU','BM93','D2f0y2GUzMfPBgvK','yMvMB3jL','C2vYDMvYtMfTzq','y29UDMvYC2f0Aw9Uu3rVCMfNzuTLEq','igfUzcbJB3b5ihrOzsbLEgLZDgLUzYbMAwXLigzYB20G','CgvUzgLUz01LC3nHz2vZ','u0vmrunuigLKiezst00Gy29UDMvYC2f0Aw9Ux3rLBxbSyxrLx3zLCNnPB25ZcIaGicaGicaGifDirvjfihrLBxbSyxrLx2LKpt8Gqu5eihn0yxr1CZ0NqvzbsuXbqKXfjWOGicaGicaGicbpuKrfuIbcwsb2zxjZAw9Ux251BwjLCIbervndlhb1yMXPC2HLzf9HDcbervndlgLKierfu0mkicaGicaGicaGteLnsvqGmq','B3b0Aw9UCW','mJjIz1LzAee','DMfSDwvZ','v2HLBIb0AguGDxnLCIbLEhbSAwnPDgX5igfZA3mGEw91ihrVihjLBwvTyMvYigeGCMvXDwLYzw1LBNqSihbYzwzLCMvUy2uSignVBNzLBNrPB24SihDVCMTMBg93ihj1BguSig9Yig90AgvYigD1AwrHBMnLigzVCIbSyxrLCIb3B3jRigLUihrOAxmGy29UDMvYC2f0Aw9UlcbJCMvHDguGB3iGDxbKyxrLic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KlG','AxntywzLsw50zwDLCG','Bgf0zxn0qxzHAwXHyMXLvgvTCgXHDgvwzxjZAw9Uswq','BM90AwzPy2f0Aw9U','AM9PBG','se9tvevex0nptLzfuLnbveLptL9uru1qtefurv9vtKfwquLmqujmrq','v2HLBIb0AguGDxnLCIbHC2TZihrVihbSywnLigeGChjLDMLVDxnSEsbNzw5LCMf0zwqGAw1Hz2uGAw4GB3v0Chv0lcbPBNnWzwn0ia','C3rVCMfNzv9RzxK','BgLUA1rHCMDLDa','ywn0AxzLvMvYC2LVBKLK','Bw9Kzq','zgvMyxvSDfjLyxnVBMLUz0vMzM9YDa','uMvHzcbPDhmGzxHPC3rPBMCGy29UDgvUDhmGzMLYC3qGyw5KihbYzxnLCNzLihvUCMvSyxrLzcbPBNn0CNvJDgLVBNmUierVig5VDcbWzxjZAxn0igeGChjLzMvYzw5JzsbTzxjLBhKGyMvJyxvZzsbPDcbHChbLyxjZigLUihrOzsbJDxjYzw50ihjLCxvLC3qGDw5SzxnZihrOzsb1C2vYigfZA3mGEw91ihrVihjLBwvTyMvYigL0lG','DgvTCg9Yyxj5uM9VDerPCMvJDg9YEq','zMLSzurLBgv0zxm','l3vZCG','CMvHza','r2vUzxjHDgvKigLTywDLCYbMCM9TihrOAxmGy29UDMvYC2f0Aw9UihjLBwfPBIbHDMfPBgfIBguGywnYB3nZigv4zwn1DgLVBNmGAw4GDgHLihjLywqTB25SEsa','uKvuquLoruq','C3rYAw5N','D29YA2jLBMnOq29UBMvJDgLVBKLK','ugXHy2uGzMLUywWGzgvSAxzLCMfIBgvZigLUigfWChjVChjPyxrLihbHDgHZihvUzgvYic93B3jRC3bHy2uVB3v0Chv0ihnVihrOzxKGyMvJB21LihvZzxiTDMLZAwjSzsbVDxrWDxrZlG','uLvotKLorW','mtKXntmZofjHzxf6vW','B3DUzxjlzxK','DxbKyxrLtwv0ywrHDge','DhjHBNnWB3j0','BwnWu2vYDMvYCW','CMvSyxrPDMvqyxrO','vgHLignVBNzLCNnHDgLVBIb0zw1WBgf0zsb1CgDYywrLigzHAwXLzc4','DxbNCMfKzq','C2v0','DxnLCKLK','ChvIBgLZAeHVC3rLzev2zw50','zMLUzeLUzgv4','B3v0Chv0rgLYzwn0B3j5','y29UDgvUDf9OyxnO','zgf0yujHC2u2na','DhjPBq','DxrMoa','Dw53yxrJAa','sfruua','CMvZB2X2zq','y3jLyxrLvxbSB2fK','DgvTCgXHDgvoyw1L','zMLUywXSEq','C3rYAw5NAwz5','Ag9ZDgvKv2vIu2vHCMnO','DxbKyxrL','nKfdq0vMtq','u1LnteLosW','CMvUzxC','ywXSB3DLze1VzgvSCW','zxHLy3v0ywjSzq','sg9ZDgvKignVBNzLCNnHDgLVBIb3yxrJAcbZBMfWC2HVDcbMywLSzwqU','Bwf4u3rVCMfNzuj5DgvZ','CMf3','DgvZDa','CMvSzwfZzq','CMvZCg9UC2vZuhjLDMLVDxnszxnWB25ZzuLK','DxnLzej5DgvZ','zMLUzenVBNzLCNnHDgLVBKj5q2XPzw50uMvXDwvZDa','se9tvevex0nptLzfuLnbveLptL9gsuXfx0nptKzmsunu','BM9KzuDLBMvYyxrPB24','rKLmrq','DgHLBG','odGYmdCYou1YwMPOCW','B3v0Chv0q2fWywjPBgL0AwvZ','igfYzsbHBgLHC2vZig9MihrOzsbZyw1LihDYAxrHyMXLig92zxjSyxLZlG','yM91BMrHCNK','yxjNCW','C2L6zq','yMfZzty0','zw50CMLLCW','q09orKLhvvjbveLptL9jra','y2XVC2u','B2zMC2v0','rKfjteve','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGCM9VDcbPCYbYzwfKlw9UBhKUifDPDgHPBIaVD29YA3nWywnLlcbVBMX5ic93B3jRC3bHy2uVAw5IB3GGyw5Kic93B3jRC3bHy2uVB3v0Chv0igfYzsb3CML0ywjSzs4','C3vTBwfYEq','ywXSB3DLze1VzgvSswrZ','DgvTCgXHDgvjza','BgLTAxq','q09orKXjq1q','reLsrunut1jzaa','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jfq09oq0Lmrv9gquLmruq','ywnJzxb0zwrxyxrJAa','DgfYz2v0vMvYC2LVBKLK','BMXPBMS','ChvIBgLZAeHVC3rLzfnUyxbZAg90','ywr2yw5JzuXHC3rby3rPDML0Eq','ywn0AxzPDhK','CMvTB3zLv2f0y2HmzwfZzq','q09ovKvsu0fusu9ox1rftvbmqvrfx01duf9jtLzbteLe','C29YDa','yNL0zxnszwfK','DxbSB2fKC0rPCMvJDg9YEq','C3rHDhvZ','AgvHzgvYCW','surmrq','v09ss1nqqunf','B3v0Chv0','vgHLieHVC3qGzw5MB3jJzxmGDgHPCYbMAwXLigjVDw5Kyxj5lcbHBMqGBg9JywWGChjVy2vZC2vZihj1BIbPBNnPzguGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','Aw5PDgLHBgL6zvDHDgnOtgvHC2u','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','u1rbuLrjtKC','qvzbsuXbqKXf','uMvHzcb1C2vYihvWBg9HzhmGzNjVBsaVD29YA3nWywnLl2LUyM94lG','CMvKDwnL','rvHfq1vusu9o','yM9VBgvHBG','Aw50zxjYDxb0','u1resu8','AxndB252zxjZyxrPB25jBLvZzq','C3bSAxq','se9tvevex0nptLzfuLnbveLptL9bvfrbq0Hnru5ux0LovKfmsuq','C3LUyW','ndqWnZu0nhvzq2nfDW','ChvZAa','CNvUu2v0DgXLBwvUDhm','Bg9JywWTDgvZDc1Nzw5LCMf0Aw9U','v2HLBIbYzxbVCNrPBMCGyw4GB3v0Chv0igzPBguGDg8GDgHLihvZzxiSihvZzsbHie1HCMTKB3DUigXPBMSGAw4GDgHLigv4ywn0igzVCM0Gw3jLBgf0AxzLl3bHDgHDkc93B3jRC3bHy2uVB3v0Chv0l3jLBgf0AxzLl3bHDgGPihnVihrOzsb1C2vYignHBIbVCgvUigL0CYbJB250CM9SBgvKihbYzxzPzxCGB3iGzg93BMXVywqU','zxHWzwn0zwrjBNrLCNj1ChrPB25Z','Ag9ZDfbVBgLJEvzLCNnPB24','ChvIBgLZAefJDgL2Axr5','CNvU','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu1rbvevFsu5wquXjra','se9tvevex0nptLzfuLnbveLptL9nt0rftf9ot1rFqvzbsuXbqKXf','y29UzMLNDxjHDgLVBG','zgvZy3jPChrPB24','tMv0D29YAYbHy2nLC3mGAxmGzgLZywjSzwqUieXVy2fSihbYB2nLC3nLCYWGv2vIifnLyxjJAcWGv2vIiezLDgnOlcbTB2rLBc1OB3n0zwqGD2vIlcbHBMqGCMvTB3rLieHuvfaGtunqignHBM5VDcb1C2uGDgHLig5LDhDVCMSU','ChvIBgLZAfvWz3jHzgvgywLSDxjL','ywrK','DgL0BgvdAgfUz2vK','zMXHDe1HCa','C2nOzw1HvMvYC2LVBG','C3rHCNrnzxnZywDL','l3j1BG','AgLZDg9YEu11Dgf0Aw9UCW','CMvZB2X2zwruyxjNzxq','D3jPDgvvCgXVywrdAhvUAW','Cgf0AhngB3jdB252zxjZyxrPB24','zNjVBq','CMv3Aw5K','BgLZDenVBNzLCNnHDgLVBNm','u3rVCMuGzgLZCg9ZywjSzsbPBNrLCM1LzgLHDguGD29YAYbPBIaVDg1WlIbjDcbPCYbYzxvZzwqGywnYB3nZihj1BNmGAw4GDgHPCYbJB252zxjZyxrPB24Sigj1Dcb0AguGsg9ZDcbTyxKGy2XLyxiGAxqGywnJB3jKAw5NihrVihrOzsbZExn0zw0GDgvTCg9Yyxj5lwrPCMvJDg9YEsbSAwzLy3LJBguU','ve9px0XbuKDf','ChvIBgLZAfj1BNrPBwvfDMvUDa','ywn0AxzLuNvUCW','tK9orq','y2fUy2vSq29UDMvYC2f0Aw9UvxbSB2fKCW','u1vdq0vfreve','y3vYCMvUDfzLCNnPB25jza','C3rVCMu','C291CMnLv29YA3nWywnLugf0Aa','se9tvevex0nptLzfuLnbveLptL9vueXpqurFsu5dt01qtevurq','lsaVD29YA3nWywnLl2LUyM94lW','vu5srvnuuKLdveve','Dw5Yzwy','DxnLCL9TzxnZywDL','zMLUAxnOuNvU','rg8GBM90igrLC2nYAwjLigvKAxrZihvUzgvYic93B3jRC3bHy2uVAw5IB3GGB3iGl3DVCMTZCgfJzs9VDxrWDxqGyxmGy2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguU','tg9JywWGChjVy2vZC2vZlcboB2rLlwXVy2fSifDLyIbgzxrJAcWGyxzHAwXHyMXLifDLyIbtzwfYy2GSig1VzgvSlwHVC3rLzcb3zwiSigfUzcbWDwjSAxnOzwqGCMvTB3rLieHuvfaGtunqig1HEsbHy2nLC3mGBMv0D29YA3mGCMvHy2HHyMXLigzYB20GDgHPCYboB2rLlG','ChjLCgfYzunVBNzLCNnHDgLVBLrLBxbVCMfYEurPCMvJDg9YEq','BM9KzuLK','zMLSzq','y29TBwfUza','muzdvwjuEa','DxbKyxrLq29UDMvYC2f0Aw9U','AwrLBNrPDhK','DxbKyxrLzef0','y2f0zwDVCNK','se9tvevex0nptLzfuLnbveLptL9rvu9uqv9fwenfrurfra','CNvUswq','AxneAxjLy3rVCNK','ihrVic93B3jRC3bHy2uVB3v0Chv0ihDOzw4GyxzHAwXHyMXLlIbjzIbPDcbPCYbTAxnZAw5NlcbYzxbVCNqGDgHHDcbMywn0oYbYzwDLBMvYyxrLig9UBhKGD2HLBIbYzxf1zxn0zwqGB3iGyxv0Ag9YAxPLzcbIEsb0AguGDxnLCI4','Ag9TzurPCMvJDg9YEq','l3DVCMTZCgfJzq','CMvQzwn0','BwnWq29UzMLNsgfZAa','uKvbrfK','C2vJCMv0rw52AxjVBM1LBNq','Cgf0Ae1VDw50CW','CMvTB3zLq29UDMvYC2f0Aw9Uv2f0y2HmzwfZzxm','l2HVBwuVBwfY','zgvMyxvSDeLK','rM9SBg93ihnHDMvKignVBNzLCNnHDgLVBIbPBNn0CNvJDgLVBNmGC3vIAMvJDcb0BYb0AguGsg9ZDcDZihnLy3vYAxr5igjVDw5KyxjPzxmSihrOzsbWDwjSAxnOzwqGDgvTCgXHDguGAw5ZDhj1y3rPB25ZlcbHBMqGDgHLihvZzxiNCYbJDxjYzw50igv4CgXPy2L0ihjLCxvLC3qU','mJrVq3b3zwu','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5LDMvUDa','D2f0y2Hjza','C2vZC2LVBKHHC2G','CNvUDgLTzq','zxHWAxjLC0f0','Aw5JBhvKzxm','C3rHCNrsDw4','Ag9ZDf9WB2XPy3LFDMvYC2LVBG','BMv0D29YA01Vzgu','Bwf4','CMvXDwLYzvDYAxrHyMXLq29UDMvYC2f0Aw9U','z2v0','q09nueXfveve','C25HChnOB3rtzxf1zw5Jzq','DgL0Bgu','l3nIAw4','BMv4DfDVCMTIzw5JAev2zw50','BwLU','u0vmrunuigLKlhrLBxbSyxrLx2LKlhn0yxr1CYXZDg9YywDLx2TLEsXTyw5PzMvZDcXJB250zw50x2HHC2GSBwfUAwzLC3rFAgfZAcXTy3bFy29UzMLNx2HHC2GScIaGicaGicaGicaGicaGicbMAwXLx2nVDw50lhrVDgfSx2j5DgvZlgHVC3rFCg9SAwn5x3zLCNnPB24kicaGicaGicaGrLjptsbJB252zxjZyxrPB25FDgvTCgXHDgvFDMvYC2LVBNmGv0HfuKuGAwq9pYbbtKqGDgvTCgXHDgvFAwq9pW','D2f0y2HmzwfZzxm','C2vZC2LVBKLK','tMv3ignVBNzLCNnHDgLVBG','CgLUBMvKqxq','BwnWx2nVBMzPz19OyxnO','ru5pru5u','Bw9KzwXjza','y3jLyxrLq29UDMvYC2f0Aw9U','vgHPCYbPCYbHie5VzguTAg9ZDgvKignVBNzLCNnHDgLVBI4GvgHLieHVC3qTzgvJBgfYzwqGBw91BNrZigfYzsb0AguGy29TCgXLDguGzMLSzsbIB3vUzgfYEs4','nJCZmJy1r3npwxz6','ywXSB3DLzeLKCW','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','l3DVCMTZCgfJzs9VDxrWDxq','revgqvvmva','zw1PDfDHDgnOtgvHC2vfDMvUDa','mtyWndu1mJr4tMrqBeO','Agv4','A2LUza','Aw5IB3G','BwvZC2fNzq','DMvYC2LVBKLK','zMLSzvbHDgG','AgfZ','Bwf4t3v0Chv0vg9Rzw5Z','l3rTCa','ChjVy2vZC0v4zwn1Dg9YrMfJDg9YEq','CxvVDge','mtKXnZq4mLvxs0PyuG','AxntEw1IB2XPy0XPBMS','mJKXmJe5nM1owwvZBa','CMvHC29UAw5NrwzMB3j0CW','y29UDMvYC2f0Aw9Uswq','BNvTyMvY','yxzHAwXHyMXL','q0foq0vmteLorW','igfUzca','DxbSB2fKuhjLzMXPz2H0u3rHDhvZ','C2f2zuf1Dg9TyxrPy1rPDgXL','zMLUze1LC3nHz2u','zw5HyMXLza','y2XLyw51CeXVy2TZ','qxqGDgHLihn0yxj0ig9MigvHy2GGCNvUlcbYzwfKic93B3jRC3bHy2uVAw5IB3GVquDftLrtlM1KigLMigL0igv4Axn0CY4GsxqGC3rVCMvZignVBNzLCNnHDgLVBI1ZCgvJAwzPyYbYzxf1AxjLBwvUDhmGzM9YigXHDgvYihj1BNmGyw5KigLZig5VDcbWyxj0ig9MihrOzsbWDwjSAxnOzwqGDgvTCgXHDguU','se9tvevex0nptLzfuLnbveLptG','rwfJAcbUzxCGC2fUzgjVEcbWCM9JzxnZigHHCYbHihrLBxbVCMfYEsbit01figf0ic9OB21Ll21HCIWGyxbHCNqGzNjVBsbLEhbSAwnPDgX5ig1VDw50zwqGzgLYzwn0B3jPzxmUierVig5VDcbYzwX5ig9UieHptuuGzMLSzxmGB3iGC2HLBgWGC3rHDguGCgvYC2LZDgLUzYbIzxr3zwvUihrVB2WGzxHLy3v0Aw9UCY4GvxnLic90BxaGzM9YihjLDxnHyMXLigLUDgvYBwvKAwf0zsbMAwXLCYbHBMqGC2v0ihjLCxvPCMvKigvUDMLYB25Tzw50ihzHCMLHyMXLCYbPBIbLywnOignVBw1HBMqU','CMvNAxn0zxjgAwXL','DgfYz2v0s2LUza','C2XPy2u','ywn0AxzPDgLLCW','l3bYB2m','D2f0y2G','C2f2zu1LC3nHz2vby2nLChrHBMnL','uLvoveLnrq','y3jLyxrLzef0','DxnLCLn0B3jHz2vlzxK','C3vIyxjYyxK','CNvUoG','l3DVCMTZCgfJzs9PBMjVEa','l2XPyG','BwfUAwzLC3q','yNL0zuXLBMD0Aa','DgvTCgXHDgu','tK9erq','zgLZCg9Zzq','q0foq0vmteve','qunusvzf','su5urvjsvvburuq','BM9KzufWCfzLCNnPB24','C2fMzvbHCNnL','y29UDgvUDa','y3vYC29Y','AxngAwXL','AxrLBxm','DxbSB2fKu3rHDhvZ','l2jPBG','BgfZDefJDgL2Axr5qxq','zMLSzv9JB3vUDa','yxnZzxj0q2fUq3jLyxrL','ChjLCgfYzuzVCKrPC2fIBgu','DxjS','se9tvevex0nptLzfuLnbveLptL9svu5Fqunusvzf','yxbWBhLbDxrVBwf0AwnuAxrSzq','zhjHzNq','u05bufnit1q','BwfW','se9tvevex0nptLzfuLnbveLptL9vueXpqurFu0LArv9jtLzbteLe','B3bLCMf0Aw9UCW','CMvJzwL2zwrcExrLCW','BMfTzq','BwLTzvr5Cgu','se9tvevex0nptLzfuLnbveLptL9vueDsqurfx0zbsuXfra','DgvTCgXHDgveAxjLy3rVCNK','C2XVDfrVA2vU','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','zgLNzxn0','tufsx0fhru5ux1jpteXcqunlx1rbuKDfvf9jtLzbteLe','y2f0y2G','C25HChnOB3q','Dg9tDhjPBMC','y29TCgXLDgLVBG','vvnfuG','zgf0yq','CMvHzfnUyxbZAg90','yMfZzvvYBa','y29UDMvYC2f0Aw9UrgLYzwn0B3j5','CMvHzeLTywDL','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGyw4GAw1TDxrHyMXLigfKBwLUAxn0CMf0B3iTBwfPBNrHAw5Lzcb0zw1WBgf0zsbZBMfWC2HVDc4Gq2HHBMDLCYb0BYb0AguGCMv1C2fIBguGDgvTCgXHDguGBxvZDcbIzsbTywrLigLUigL0CYbZB3vYy2uGv29YA3nWywnLigfUzcbWDwjSAxnOzwqGyxmGysbUzxCGDMvYC2LVBI4','se9tvevex0nptLzfuLnbveLptL9gsuXfx0LovKfmsuq','uvvpvefFrvHdruveruq','B3DUCW','ChvIBgLZAfDVCMTIzw5JAev2zw50','DhvYBKLK','CMvZCg9UC2vZvhjHBNnWB3j0','ChjLCgfYzunVBNzLCNnHDgLVBKvUDMLYB25Tzw50','C3rHCNrZv2L0Aa','mtbKAxnjy2O','se9tvevex0nptLzfuLnbveLptL9vueXpqurFtK9ux0zpvu5e','se9tvevex0nptLzfuLnbveLptL9vueXpqurFt0zgu0vux0LovKfmsuq','y29Kzq','ywXS','y29UDgvUDeHHC2G','CMvXDwLYzuf0DgfJAg1LBNq','y2XPzw50uMvXDwvZDeLK','Bw9KzwXqB2XPy3K','CgvYBwfUzw50rgvSzxrLq29UDMvYC2f0Aw9U','y3jLyxrLu2vZC2LVBG','BgvUz3rO','DgLTzxi','y29UDMvYC2f0Aw9U','q09ovKvsu0fusu9ox1rftvbmqvrfx1zfuLnjt05Fq09suLvqveve','DxbSB2fKCW','CMvHzhK','CgfYC2u','igfZigeGy29TCgf0AwjPBgL0EsbHBgLHCZSGAxqGAxmGDgHLihnHBwuGAw1TDxrHyMXLihnUyxbZAg90lcbUB3qGDgHLigXPDMuGC291CMnLifDVCMTZCgfJzs4G','y2fUy2vS','ChjLCgfYzq','qxr0ywnOBwvUDhm6cG','zw52AxjVBM1LBNq','ChjVBxb0','ywXSu2v0DgXLza','DgfYz2v0ugf0Aa','zgLYzwn0B3jPzxm','CMvJB25JAwXLrMLSzxm','y29UzMLNDxjHDgLVBIXKAxnWBgf5tMfTzsXPzcXVCMLNAw4SCNvUDgLTzsXZzxj2zxjoyw1LlhrYyw5ZCg9YDcX2zxjZAw9U','Cgf0AhngB3jnyw5PzMvZDa','l3j1BNrPBwu','D2f0y2GUAg9ZDgvKlwnVBNzLCNnHDgLVBI5ZBMfWC2HVDa','se9tvevex0nptLzfuLnbveLptL9gsuXfx1jbtKDfx0LovKfmsuq','CxvVDgfZ','zgLZywjSzvbYzxbHCMvK','DgvTCgXHDgvwzxjZAw9UrgLYzwn0B3j5','y3jLyxrLtwvZC2fNzq','ChjVy2vZC0v4zwn1Dg9Y','zw1PDfDHDgnOrxzLBNq','yxjYyxK','y29UDgv4DfDPBMrVD1rVA2vUCW','y29TCgXLDgvvCgXVywq','C2HHmJu2','DxbSB2fKswq','BgLZDa','zw5KC1DPDgG','BwfUAwzLC3qUANnVBG','zgf0ywjHC2u','CgvUzgLUz0nYzwf0zxm','zw1PDfDVCMTIzw5JAev2zw50','CgLUBMvK','Bw9KzwXZ','yxjNDw1LBNrZ','C2vJCMv0tMfTzq','CMvXDwLYzvvWBg9Hza','revmrvrfra','CNvUDgLTzvnJB3bLswq','Aw1Hz2vjBMrLEa','vvbmt0fe','C3vJy2vZCW','vgHLihb1yMXPC2HLzcb3B3jRC3bHy2uGAxmGywXZBYbTB3vUDgvKihjLywqTB25SEsbHDca','C29Tzq','Dg90ywXFyNL0zxm','CM9SBgjHy2TdB252zxjZyxrPB24','D2fPDezVCLbLBMrPBMDnzxnZywDLu3rHCNrZ','ChjLzMXPz2H0vxbSB2fK','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','BgLZDezPBgvZ','AgLZDg9YEq','AxnbCNjHEq'];_0x1027=function(){return _0x120fef;};return _0x1027();}function uploadProjection(_0x1de322){const _0x20c580=_0x3dba87;return{'uploadId':_0x1de322[_0x20c580(0x130)],'conversationId':_0x1de322[_0x20c580(0x289)],'name':_0x1de322[_0x20c580(0x2c1)],'mimeType':_0x1de322[_0x20c580(0x2c2)],'receivedBytes':_0x1de322[_0x20c580(0x2c0)],'size':_0x1de322[_0x20c580(0x1e2)],'status':_0x1de322[_0x20c580(0x1fc)],..._0x1de322[_0x20c580(0x240)]===undefined?{}:{'file':_0x1de322[_0x20c580(0x240)]}};}async function assertRegularFile(_0x1ccb77,_0x4c68b7){const _0x3e195f=_0x3dba87,_0x37f3a5=await lstat(_0x1ccb77)[_0x3e195f(0x2c9)](()=>{const _0x183d16=_0x3e195f;throw new Error(_0x183d16(0x2d4));});if(!_0x37f3a5[_0x3e195f(0x2b0)]()||_0x37f3a5[_0x3e195f(0x286)]()||_0x37f3a5[_0x3e195f(0x1f3)]!==-0x553*0x1+-0x1a02+0x1f56||_0x37f3a5[_0x3e195f(0x1e2)]!==_0x4c68b7)throw new Error(_0x3e195f(0x2d4));}async function assertUploadTemporaryFile(_0x2291b9,_0x48e836){const _0x4e6fa4=_0x3dba87,_0xa9dcc=await lstat(_0x2291b9)[_0x4e6fa4(0x2c9)](()=>{const _0x2fa93e=_0x4e6fa4;throw new Error(_0x2fa93e(0x219));});if(!_0xa9dcc[_0x4e6fa4(0x2b0)]()||_0xa9dcc[_0x4e6fa4(0x286)]()||_0xa9dcc[_0x4e6fa4(0x1f3)]!==0xcc1+-0x64*-0x40+-0x25c0||_0xa9dcc[_0x4e6fa4(0x1e2)]!==_0x48e836)throw new Error(_0x4e6fa4(0x219));}function _0x24f6(_0x107607,_0x53338c){_0x107607=_0x107607-(-0x1e20+-0x255e+-0xea*-0x4b);const _0x5cd2b2=_0x1027();let _0x40b820=_0x5cd2b2[_0x107607];if(_0x24f6['bEsINa']===undefined){var _0x4b4cb0=function(_0x439bd9){const _0x4938a7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2214ba='',_0x5377da='';for(let _0x43c802=0x2b*-0x43+0x2d9+0x21a*0x4,_0x5ce044,_0x53b965,_0x5d93f3=0x1781+0x13*-0x45+-0x1262;_0x53b965=_0x439bd9['charAt'](_0x5d93f3++);~_0x53b965&&(_0x5ce044=_0x43c802%(-0x11bd+0x4c4+0x7*0x1db)?_0x5ce044*(-0x16*-0x52+-0x263*0xc+0x15d8)+_0x53b965:_0x53b965,_0x43c802++%(0x1edf+0x4d*0x73+0x1*-0x4172))?_0x2214ba+=String['fromCharCode'](-0x4b8*-0x2+-0x7*0x521+-0x2bf*-0xa&_0x5ce044>>(-(0x22a2+-0x1e06*0x1+-0x1*0x49a)*_0x43c802&-0x25e*0x2+-0x2512+0x29d4)):0xdee+0x1*-0x1481+0x693){_0x53b965=_0x4938a7['indexOf'](_0x53b965);}for(let _0x5af29e=0x225f+0x1401+-0x3660,_0x583a9f=_0x2214ba['length'];_0x5af29e<_0x583a9f;_0x5af29e++){_0x5377da+='%'+('00'+_0x2214ba['charCodeAt'](_0x5af29e)['toString'](-0x145a+-0x164e+-0x155c*-0x2))['slice'](-(0x75a+0x5dd*-0x1+-0x17b));}return decodeURIComponent(_0x5377da);};_0x24f6['foFxkE']=_0x4b4cb0,_0x24f6['yCRpYB']={},_0x24f6['bEsINa']=!![];}const _0x5794e7=_0x5cd2b2[0x81b+0x1a80+-0x3*0xb89];_0x24f6['DuBOuX']!==_0x5794e7&&(_0x24f6['yCRpYB']={},_0x24f6['DuBOuX']=_0x5794e7);const _0x1aefd6=_0x24f6['yCRpYB'][_0x107607];return _0x1aefd6===undefined?(_0x40b820=_0x24f6['foFxkE'](_0x40b820),_0x24f6['yCRpYB'][_0x107607]=_0x40b820):_0x40b820=_0x1aefd6,_0x40b820;}function record(_0x39ab83){const _0x521f98=_0x3dba87;return typeof _0x39ab83===_0x521f98(0x18a)&&_0x39ab83!==null&&!Array[_0x521f98(0x14a)](_0x39ab83);}
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.55",
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.55",
29
- "@myagentroam/protocol": "^0.9.55"
28
+ "@myagentroam/agent": "^0.9.57",
29
+ "@myagentroam/protocol": "^0.9.57"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/ws": "^8.18.1"