apt-mcp-agent-setup 3.4.0 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -7
- package/bin/cli.js +1 -1
- package/bundle/NOTICES.md +0 -0
- package/bundle/core.enc +0 -0
- package/bundle/mcp-rules.enc +0 -0
- package/bundle/skills-aso.enc +0 -0
- package/bundle/skills-ba.enc +0 -0
- package/bundle/skills-base.enc +0 -0
- package/bundle/skills-be.enc +0 -0
- package/bundle/skills-design.enc +0 -0
- package/bundle/skills-fe.enc +0 -0
- package/bundle/skills-marketing.enc +0 -0
- package/bundle/skills-mobile.enc +0 -0
- package/bundle/skills-pm.enc +0 -0
- package/docs/apt-3.5.0-migration.md +37 -0
- package/docs/technical-sources-release-checklist.md +14 -0
- package/docs/technical-sources.md +125 -0
- package/docs/upstream-manifest.json +89 -0
- package/integrity-manifest.json +124 -108
- package/package.json +1 -1
- package/release-check.js +4 -2
- package/source-skills-lock.json +311 -0
- package/src/backends/browser-tools.js +1 -1
- package/src/backends/index-command.js +1 -1
- package/src/backends/index-store.js +1 -1
- package/src/backends/profiles.js +1 -1
- package/src/core/admission-fence.js +1 -1
- package/src/core/aso-import.js +1 -1
- package/src/core/caller-context.js +1 -1
- package/src/core/catalog.js +1 -1
- package/src/core/claude-caller-authority.js +1 -1
- package/src/core/claude-invocation.js +1 -1
- package/src/core/claude-native.js +1 -1
- package/src/core/claude-plan.js +1 -1
- package/src/core/claude-worker-transcript.js +1 -1
- package/src/core/codex-host-metadata.js +1 -1
- package/src/core/codex-transcript-receipt.js +1 -1
- package/src/core/context-metrics.js +1 -1
- package/src/core/doctor.js +1 -1
- package/src/core/draining-completion.js +1 -1
- package/src/core/execution.js +1 -1
- package/src/core/git-context.js +1 -0
- package/src/core/hook-bridge.js +1 -1
- package/src/core/host-adapters.js +1 -1
- package/src/core/ipc-envelope.js +1 -1
- package/src/core/memory-scope.js +1 -0
- package/src/core/memory-store.js +1 -1
- package/src/core/model-inventory.js +1 -1
- package/src/core/model-routing.js +1 -1
- package/src/core/native-dispatch.js +1 -1
- package/src/core/node-version.js +1 -1
- package/src/core/npm-cli.js +1 -1
- package/src/core/owned-command-child.js +1 -0
- package/src/core/owned-command.js +1 -0
- package/src/core/owned-lock.js +1 -1
- package/src/core/owned-process.js +1 -0
- package/src/core/presentations.js +1 -1
- package/src/core/quality-artifacts.js +1 -1
- package/src/core/quality.js +1 -1
- package/src/core/read-command.js +1 -0
- package/src/core/readonly-skill.js +1 -0
- package/src/core/resource-transaction.js +1 -1
- package/src/core/run-compatibility.js +1 -1
- package/src/core/runtime-info.js +1 -1
- package/src/core/runtime-ownership.js +1 -1
- package/src/core/session.js +1 -1
- package/src/core/skill-companions.js +1 -1
- package/src/core/skill-names.js +1 -1
- package/src/core/storage-retry.js +1 -0
- package/src/core/tool-contracts.js +1 -1
- package/src/core/update-control.js +1 -1
- package/src/core/upgrade-runs.js +1 -1
- package/src/core/upgrade-stop.js +1 -1
- package/src/core/windows-job.js +1 -0
- package/src/core/windows-job.ps1 +75 -0
- package/src/core/workspace-generation.js +1 -1
- package/src/core/workspace-path.js +1 -1
- package/src/installer/bounded-command.js +1 -1
- package/src/installer/candidate-preflight.js +1 -1
- package/src/installer/connection-activation.js +1 -1
- package/src/installer/connection-supervisor.js +1 -1
- package/src/installer/deployment-draft.js +1 -1
- package/src/installer/gateway-context.js +1 -1
- package/src/installer/gateway-migration.js +1 -1
- package/src/installer/gateway-runtime.js +1 -1
- package/src/installer/global-setup.js +1 -1
- package/src/installer/hook-context-client.js +1 -1
- package/src/installer/host-hooks.js +1 -1
- package/src/installer/managed-config.js +1 -1
- package/src/installer/platform-config.js +1 -1
- package/src/installer/prerequisites.js +1 -1
- package/src/installer/presentations.js +1 -1
- package/src/installer/project-setup.js +1 -1
- package/src/installer/registration-closure.js +1 -1
- package/src/installer/registration-plan.js +1 -1
- package/src/installer/registration-receipt.js +1 -1
- package/src/installer/registrations.js +1 -1
- package/src/installer/runtime-activation.js +1 -1
- package/src/installer/runtime-child.js +1 -1
- package/src/installer/runtime-lock.js +1 -1
- package/src/installer/runtime-store.js +1 -1
- package/src/installer/runtime-supervisor.js +1 -1
- package/src/installer/setup-wizard.js +1 -1
- package/src/installer/update-addons.js +1 -1
- package/src/installer/update-executor.js +1 -1
- package/src/installer/workspace-registry.js +1 -1
- package/src/installer/workspace-transaction.js +1 -1
- package/src/installer/workspace-update.js +1 -1
- package/src/license/crypto.js +1 -1
- package/src/license/fingerprint.js +1 -1
- package/src/license/terms.js +1 -1
- package/src/license/verify.js +1 -1
- package/src/presets/index.js +1 -1
- package/src/proxy/backends.js +1 -1
- package/src/proxy/browser-sessions.js +1 -1
- package/src/proxy/core-tools.js +1 -1
- package/src/proxy/pipeline.js +1 -1
- package/src/proxy/public-catalog.js +1 -1
- package/src/proxy/router.config.js +1 -1
- package/src/proxy/router.js +1 -1
- package/src/proxy/server.js +1 -1
- package/src/proxy/workspace-gateway.js +1 -1
- package/technical-sources-check.js +251 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4cfb3f=_0x5381;function _0x5381(_0x448b21,_0x7f7f2f){_0x448b21=_0x448b21-0x14c;const _0x46aa07=_0x46aa();let _0x5381d5=_0x46aa07[_0x448b21];if(_0x5381['BxqqPL']===undefined){var _0xc94ee=function(_0x489690){const _0x4f2976='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59a2c8='',_0x39fc82='';for(let _0x2d2e87=0x0,_0x312991,_0x40b1a5,_0x4e32a7=0x0;_0x40b1a5=_0x489690['charAt'](_0x4e32a7++);~_0x40b1a5&&(_0x312991=_0x2d2e87%0x4?_0x312991*0x40+_0x40b1a5:_0x40b1a5,_0x2d2e87++%0x4)?_0x59a2c8+=String['fromCharCode'](0xff&_0x312991>>(-0x2*_0x2d2e87&0x6)):0x0){_0x40b1a5=_0x4f2976['indexOf'](_0x40b1a5);}for(let _0x3e3f77=0x0,_0x26307e=_0x59a2c8['length'];_0x3e3f77<_0x26307e;_0x3e3f77++){_0x39fc82+='%'+('00'+_0x59a2c8['charCodeAt'](_0x3e3f77)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x39fc82);};_0x5381['vIbNPM']=_0xc94ee,_0x5381['hTpEHV']={},_0x5381['BxqqPL']=!![];}const _0x159cd7=_0x46aa07[0x0],_0x42f595=_0x448b21+_0x159cd7,_0xdfe1a2=_0x5381['hTpEHV'][_0x42f595];return!_0xdfe1a2?(_0x5381d5=_0x5381['vIbNPM'](_0x5381d5),_0x5381['hTpEHV'][_0x42f595]=_0x5381d5):_0x5381d5=_0xdfe1a2,_0x5381d5;}(function(_0x4aa95e,_0x19cd8a){const _0x4452a9=_0x5381,_0x37d098=_0x4aa95e();while(!![]){try{const _0x34ac14=-parseInt(_0x4452a9(0x274))/0x1+-parseInt(_0x4452a9(0x24c))/0x2+parseInt(_0x4452a9(0x23b))/0x3*(-parseInt(_0x4452a9(0x246))/0x4)+-parseInt(_0x4452a9(0x1e8))/0x5*(-parseInt(_0x4452a9(0x29e))/0x6)+-parseInt(_0x4452a9(0x195))/0x7+-parseInt(_0x4452a9(0x1d4))/0x8+parseInt(_0x4452a9(0x150))/0x9*(parseInt(_0x4452a9(0x1e7))/0xa);if(_0x34ac14===_0x19cd8a)break;else _0x37d098['push'](_0x37d098['shift']());}catch(_0xd68b07){_0x37d098['push'](_0x37d098['shift']());}}}(_0x46aa,0x6bdf0));const fs=require(_0x4cfb3f(0x209)),os=require(_0x4cfb3f(0x213)),path=require(_0x4cfb3f(0x23e)),crypto=require(_0x4cfb3f(0x16b)),net=require(_0x4cfb3f(0x234)),{spawn}=require(_0x4cfb3f(0x284)),{StringDecoder}=require('node:string_decoder'),{verifyRelease}=require('./runtime-store'),{acquireRuntimeLock}=require(_0x4cfb3f(0x23d)),{readFence,changeFence,withAdmissionLock,saveLocked,finishOperation}=require(_0x4cfb3f(0x1de)),{verifyEnvelope}=require(_0x4cfb3f(0x15b)),{registerMember,closeMember,readGeneration,projectGeneration,acknowledgeGeneration,joinServingGeneration}=require(_0x4cfb3f(0x1f7)),hash=_0x205637=>crypto[_0x4cfb3f(0x211)](_0x4cfb3f(0x1b5))[_0x4cfb3f(0x1d8)](_0x205637)[_0x4cfb3f(0x180)](_0x4cfb3f(0x1a4)),atomic=(_0x57065a,_0x5ece79)=>{const _0x523220=_0x4cfb3f,_0x215258={};_0x215258[_0x523220(0x229)]=!![],fs[_0x523220(0x25d)](path[_0x523220(0x1fb)](_0x57065a),_0x215258);const _0x2946b0=_0x57065a+'.'+crypto[_0x523220(0x22e)]()+'.tmp',_0x2b3748=fs[_0x523220(0x22d)](_0x2946b0,'wx',0x180);try{fs[_0x523220(0x21b)](_0x2b3748,JSON[_0x523220(0x168)](_0x5ece79)),fs[_0x523220(0x218)](_0x2b3748);}finally{fs[_0x523220(0x1cf)](_0x2b3748);}fs[_0x523220(0x271)](_0x2946b0,_0x57065a);},same=(_0x2c423b,_0x233d52)=>process['platform']===_0x4cfb3f(0x231)?_0x2c423b[_0x4cfb3f(0x1cc)]()===_0x233d52['toLowerCase']():_0x2c423b===_0x233d52,messageId=_0x24b986=>JSON[_0x4cfb3f(0x168)](_0x24b986),waitChildClosed=(_0x24bf8d,_0x10c07c=0x1388)=>new Promise((_0x396fd8,_0x3bb060)=>{const _0x1d428f=_0x4cfb3f;if(_0x24bf8d[_0x1d428f(0x28d)])return _0x396fd8();const _0x297806=setTimeout(()=>{const _0x64bc56=_0x1d428f;_0x24bf8d['off'](_0x64bc56(0x1dc),_0xb0d00f);const _0x3edf76={};_0x3edf76[_0x64bc56(0x1ca)]=_0x64bc56(0x21e),_0x3bb060(Object['assign'](new Error('Runtime\x20child\x20did\x20not\x20exit'),_0x3edf76));},_0x10c07c),_0xb0d00f=()=>{clearTimeout(_0x297806),_0x396fd8();};_0x24bf8d[_0x1d428f(0x1b7)](_0x1d428f(0x1dc),_0xb0d00f);});class ConnectionSupervisor{constructor(_0x3755a1={}){const _0x108577=_0x4cfb3f;this['runtimeRoot']=fs['realpathSync'](_0x3755a1['runtimeRoot']),this[_0x108577(0x294)]=fs[_0x108577(0x1f0)](_0x3755a1[_0x108577(0x294)]),this[_0x108577(0x19b)]=_0x3755a1[_0x108577(0x19b)],this[_0x108577(0x152)]=_0x3755a1[_0x108577(0x152)]||process['stdin'],this[_0x108577(0x217)]=_0x3755a1[_0x108577(0x217)]||process[_0x108577(0x217)],this['stderr']=_0x3755a1['stderr']||process[_0x108577(0x1b3)],this[_0x108577(0x193)]=fs[_0x108577(0x1f0)](_0x3755a1[_0x108577(0x193)]||process['cwd']()),this['explicitWorkspace']=_0x3755a1['explicitWorkspace']===!![],this[_0x108577(0x1c6)]=require(_0x108577(0x1dd))[_0x108577(0x289)](this),this[_0x108577(0x19a)]=_0x3755a1[_0x108577(0x19a)]||null,this[_0x108577(0x277)]=_0x3755a1[_0x108577(0x277)]||{},this['connectionId']=_0x3755a1['connectionId']||crypto['randomUUID'](),this['secret']=crypto['randomBytes'](0x20),this[_0x108577(0x1d0)]=new Set(),this[_0x108577(0x28c)]=0x0,this['child']=null,this[_0x108577(0x267)]=null,this[_0x108577(0x1eb)]=new Map(),this[_0x108577(0x18d)]=new Map(),this['inputBuffer']='',this[_0x108577(0x21f)]=Promise[_0x108577(0x279)](),this[_0x108577(0x1d5)]='',this[_0x108577(0x28a)]=new StringDecoder('utf8'),this[_0x108577(0x29c)]=null,this[_0x108577(0x21a)]=![],this[_0x108577(0x2a3)]=null,this[_0x108577(0x1a3)]=![],this[_0x108577(0x14e)]=null,this[_0x108577(0x27a)]=![],this[_0x108577(0x241)]=_0x108577(0x25f),this[_0x108577(0x1bb)]=null,this[_0x108577(0x1ab)]=process[_0x108577(0x292)]===_0x108577(0x231)?_0x108577(0x1fe)+hash(this[_0x108577(0x263)])['slice'](0x0,0x18):path[_0x108577(0x18a)](os[_0x108577(0x244)](),_0x108577(0x154)+hash(this['connectionId'])[_0x108577(0x1fc)](0x0,0x18)+'.sock');}get[_0x4cfb3f(0x201)](){const _0x24e181=_0x4cfb3f;return path[_0x24e181(0x18a)](this[_0x24e181(0x193)],'.agents',_0x24e181(0x257),_0x24e181(0x184),this['connectionId']+_0x24e181(0x14d));}get[_0x4cfb3f(0x1a9)](){const _0x41eddf=_0x4cfb3f;return path[_0x41eddf(0x18a)](this[_0x41eddf(0x193)],_0x41eddf(0x296),_0x41eddf(0x257),_0x41eddf(0x184),_0x41eddf(0x222),this['connectionId']+_0x41eddf(0x1ec));}get[_0x4cfb3f(0x230)](){const _0xf55c9c=_0x4cfb3f;return path[_0xf55c9c(0x18a)](this['workspace'],_0xf55c9c(0x259),this['connectionId']+_0xf55c9c(0x22a));}[_0x4cfb3f(0x1fa)](){const _0x573d5f=_0x4cfb3f;atomic(this[_0x573d5f(0x230)],{'connectionId':this[_0x573d5f(0x263)],'supervisorPid':process['pid'],'workspace':this[_0x573d5f(0x193)],'runtimeRoot':this[_0x573d5f(0x22b)],'candidate':this['candidate']});}[_0x4cfb3f(0x297)](_0x5e3d5d){const _0x418aaa=_0x4cfb3f;if(this['candidate'])return;let _0x1da443;try{_0x1da443=JSON[_0x418aaa(0x1bc)](fs['readFileSync'](this[_0x418aaa(0x230)],_0x418aaa(0x287)));}catch(_0x565298){if(_0x565298[_0x418aaa(0x1ca)]===_0x418aaa(0x20a))return;throw _0x565298;}if(_0x1da443[_0x418aaa(0x263)]!==this[_0x418aaa(0x263)]||_0x1da443[_0x418aaa(0x224)]!==process[_0x418aaa(0x262)]||!same(_0x1da443[_0x418aaa(0x193)],this[_0x418aaa(0x193)])||!same(_0x1da443[_0x418aaa(0x22b)],this[_0x418aaa(0x22b)])||_0x1da443[_0x418aaa(0x1bb)]?.['transactionId']!==_0x5e3d5d)return;this[_0x418aaa(0x1bb)]=_0x1da443[_0x418aaa(0x1bb)];}[_0x4cfb3f(0x18f)](){const _0x2d8b8b=_0x4cfb3f,_0x14f332=joinServingGeneration(this[_0x2d8b8b(0x193)],{'connectionId':this[_0x2d8b8b(0x263)],'supervisorPid':process['pid'],'childPid':this['child']?.[_0x2d8b8b(0x262)],'version':this['identity'][_0x2d8b8b(0x253)],'digest':this[_0x2d8b8b(0x267)][_0x2d8b8b(0x180)],'resourceDigest':this[_0x2d8b8b(0x173)]});this[_0x2d8b8b(0x28c)]=_0x14f332[_0x2d8b8b(0x28c)],projectGeneration(this[_0x2d8b8b(0x22b)],this['workspace'],_0x14f332);if(this[_0x2d8b8b(0x266)]?.[_0x2d8b8b(0x187)])this['child']['send']({'type':_0x2d8b8b(0x15e),'generation':this[_0x2d8b8b(0x28c)]});this[_0x2d8b8b(0x1da)]();}[_0x4cfb3f(0x1da)](_0xe846a={}){const _0x2cd8a6=_0x4cfb3f;atomic(this[_0x2cd8a6(0x201)],{'connectionId':this[_0x2cd8a6(0x263)],'workspace':this[_0x2cd8a6(0x193)],'runtimeRoot':this[_0x2cd8a6(0x22b)],'endpoint':this[_0x2cd8a6(0x1ab)],'secretFile':this[_0x2cd8a6(0x1a9)],'supervisorPid':process['pid'],'childPid':this[_0x2cd8a6(0x266)]?.[_0x2cd8a6(0x262)]||null,'version':this[_0x2cd8a6(0x267)]?.[_0x2cd8a6(0x253)]||null,'digest':this[_0x2cd8a6(0x267)]?.['digest']||null,'resourceDigest':this['resourceDigest']||null,'generation':this['generation'],'catalogHash':this[_0x2cd8a6(0x2a3)]||null,'supervisorProtocol':0x2,'activation':this[_0x2cd8a6(0x241)],'serving':this[_0x2cd8a6(0x266)]?.[_0x2cd8a6(0x247)]===!![]&&!this[_0x2cd8a6(0x27a)],'closed':this[_0x2cd8a6(0x27a)],'observedAt':new Date()['toISOString'](),..._0xe846a});}['rebindWorkspace'](_0x2463fe){const _0x46672d=_0x4cfb3f,_0x3cde63=fs[_0x46672d(0x1f0)](_0x2463fe);if(same(_0x3cde63,this['workspace']))return;const _0x426445={};_0x426445[_0x46672d(0x1ca)]=_0x46672d(0x214);if(this['explicitWorkspace']||this[_0x46672d(0x266)])throw Object[_0x46672d(0x1c7)](new Error(_0x46672d(0x16c)),_0x426445);const _0x3ed0f0=this[_0x46672d(0x201)],_0xde730a=this[_0x46672d(0x1a9)];closeMember(this[_0x46672d(0x193)],this[_0x46672d(0x263)],process['pid'],!![]),this['workspace']=_0x3cde63;const _0x32e24f=registerMember(this[_0x46672d(0x193)],{'connectionId':this[_0x46672d(0x263)],'supervisorPid':process['pid'],'runtimeRoot':this[_0x46672d(0x22b)]});this['admissionClosed']=_0x32e24f[_0x46672d(0x1b8)]===_0x46672d(0x1f5);const _0xefc982={};_0xefc982[_0x46672d(0x229)]=!![],fs['mkdirSync'](path[_0x46672d(0x1fb)](this[_0x46672d(0x1a9)]),_0xefc982);const _0x441a9e={};_0x441a9e[_0x46672d(0x236)]='wx',_0x441a9e[_0x46672d(0x163)]=0x180,fs[_0x46672d(0x21b)](this[_0x46672d(0x1a9)],this[_0x46672d(0x1ac)],_0x441a9e);const _0x7ce5d={};_0x7ce5d['connectionId']=this[_0x46672d(0x263)],_0x7ce5d['serving']=![],_0x7ce5d[_0x46672d(0x241)]=_0x46672d(0x26a),atomic(_0x3ed0f0,_0x7ce5d);try{fs['unlinkSync'](_0xde730a);}catch{}this[_0x46672d(0x1da)]();}async[_0x4cfb3f(0x1c5)](){const _0xc56b21=_0x4cfb3f;require('../core/node-version')['requireSupportedNode'](),verifyRelease(this[_0xc56b21(0x294)],this['publicKey']);const _0x2a6cb2=registerMember(this[_0xc56b21(0x193)],{'connectionId':this[_0xc56b21(0x263)],'supervisorPid':process[_0xc56b21(0x262)],'runtimeRoot':this[_0xc56b21(0x22b)]});this[_0xc56b21(0x1a3)]=_0x2a6cb2[_0xc56b21(0x1b8)]===_0xc56b21(0x1f5);const _0x45bb67={};_0x45bb67[_0xc56b21(0x229)]=!![],fs[_0xc56b21(0x25d)](path[_0xc56b21(0x1fb)](this[_0xc56b21(0x1a9)]),_0x45bb67);const _0x5f2306={};return _0x5f2306[_0xc56b21(0x236)]='wx',_0x5f2306[_0xc56b21(0x163)]=0x180,fs['writeFileSync'](this[_0xc56b21(0x1a9)],this[_0xc56b21(0x1ac)],_0x5f2306),this[_0xc56b21(0x156)]=net[_0xc56b21(0x252)](_0x40a149=>{const _0x2dda61=_0xc56b21;let _0x3391b9='',_0x54ce1d=![];_0x40a149[_0x2dda61(0x194)](0x1fbd0,()=>_0x40a149[_0x2dda61(0x232)]()),_0x40a149['on']('data',_0x5a217f=>{const _0x76dce7=_0x2dda61;_0x3391b9+=_0x5a217f;if(Buffer['byteLength'](_0x3391b9)>0x2*0x400*0x400)return _0x40a149[_0x76dce7(0x232)]();const _0x3ef061=_0x3391b9[_0x76dce7(0x23c)]('\x0a');if(_0x3ef061<0x0)return;if(_0x54ce1d)return _0x40a149[_0x76dce7(0x232)]();_0x54ce1d=!![];let _0x162570;try{_0x162570=JSON['parse'](_0x3391b9[_0x76dce7(0x1fc)](0x0,_0x3ef061));}catch{return _0x40a149['destroy']();}if(![_0x76dce7(0x283),'prepare',_0x76dce7(0x25b),_0x76dce7(0x15f),'abort',_0x76dce7(0x1a5),_0x76dce7(0x245),'commit-candidate',_0x76dce7(0x278),_0x76dce7(0x227),'gateway-binding']['includes'](_0x162570[_0x76dce7(0x1d6)])||!verifyEnvelope(this['secret'],_0x162570,this[_0x76dce7(0x1d0)],this[_0x76dce7(0x263)]))return _0x40a149['destroy']();const _0x1bc29e=_0x47c5d6=>{const _0x5db27c=_0x76dce7,_0x2b1e3b={'nonce':_0x162570[_0x5db27c(0x207)],'connectionId':this['connectionId'],'workspace':this[_0x5db27c(0x193)],'supervisorPid':process[_0x5db27c(0x262)],'childPid':this[_0x5db27c(0x266)]?.[_0x5db27c(0x262)]||null,'generation':this[_0x5db27c(0x28c)],'version':this[_0x5db27c(0x267)]?.[_0x5db27c(0x253)]||null,'digest':this[_0x5db27c(0x267)]?.[_0x5db27c(0x180)]||null,'resourceDigest':this['resourceDigest']||null,'catalogHash':this['toolCatalogHash']||null,'controlCapabilities':this[_0x5db27c(0x1df)]||[],'activation':this[_0x5db27c(0x241)],'serving':this[_0x5db27c(0x266)]?.['ready']===!![]&&!this[_0x5db27c(0x27a)],..._0x47c5d6},_0x5786a6=_0x2b1e3b;_0x5786a6[_0x5db27c(0x1ad)]=crypto[_0x5db27c(0x1cb)](_0x5db27c(0x1b5),this[_0x5db27c(0x1ac)])[_0x5db27c(0x1d8)](JSON[_0x5db27c(0x168)](_0x5786a6))[_0x5db27c(0x180)](_0x5db27c(0x1a4)),_0x40a149[_0x5db27c(0x17f)](JSON[_0x5db27c(0x168)](_0x5786a6)+'\x0a');};if(_0x162570['type']===_0x76dce7(0x283))return _0x1bc29e({});const _0x4e6a7d={};_0x4e6a7d[_0x76dce7(0x25c)]='unavailable',_0x4e6a7d[_0x76dce7(0x1ca)]='GATEWAY_BINDING_REQUIRED';if(_0x162570[_0x76dce7(0x1d6)]===_0x76dce7(0x1a1))return _0x1bc29e(this['gatewayBinding']&&this[_0x76dce7(0x266)]?.[_0x76dce7(0x247)]&&!this['stopped']?{'status':_0x76dce7(0x295),'binding':this[_0x76dce7(0x19a)]}:_0x4e6a7d);if(_0x162570['type']===_0x76dce7(0x227)){const _0x3fafa4={};_0x3fafa4['status']=_0x76dce7(0x1f3),_0x3fafa4[_0x76dce7(0x1ca)]=_0x76dce7(0x183);if(readFence(this[_0x76dce7(0x193)])[_0x76dce7(0x1b8)]===_0x76dce7(0x1af)||!this[_0x76dce7(0x266)]?.[_0x76dce7(0x247)])return _0x1bc29e(_0x3fafa4);const _0x4bb49d={};_0x4bb49d[_0x76dce7(0x157)]=_0x162570[_0x76dce7(0x15a)],void this[_0x76dce7(0x24a)](_0x76dce7(0x255),_0x4bb49d)[_0x76dce7(0x175)](_0x35e04f=>_0x1bc29e(_0x35e04f))[_0x76dce7(0x1aa)](_0x180b6a=>_0x1bc29e({'status':_0x76dce7(0x1f3),'code':_0x180b6a[_0x76dce7(0x1ca)]||'CALLER_CONTEXT_UNAVAILABLE'}));return;}if([_0x76dce7(0x1a5),_0x76dce7(0x245),'commit-candidate',_0x76dce7(0x278)][_0x76dce7(0x165)](_0x162570[_0x76dce7(0x1d6)])){void this[_0x76dce7(0x299)](_0x162570)[_0x76dce7(0x175)](_0x1bc29e)[_0x76dce7(0x1aa)](_0x449d33=>_0x1bc29e({'status':'failed','code':_0x449d33['code']||'CANDIDATE_CONTROL_FAILED'}));return;}if(_0x162570[_0x76dce7(0x1d6)]===_0x76dce7(0x16d)){const _0x2eb797={};_0x2eb797[_0x76dce7(0x25c)]=_0x76dce7(0x1f3),_0x2eb797[_0x76dce7(0x1ca)]='WORKSPACE_RECOVERY_REQUIRED';if(this[_0x76dce7(0x1bb)]&&!this[_0x76dce7(0x1bb)][_0x76dce7(0x1c2)]||readFence(this['workspace'])[_0x76dce7(0x1b8)]===_0x76dce7(0x1af))return _0x1bc29e(_0x2eb797);const _0x32182e={};_0x32182e[_0x76dce7(0x25c)]=_0x76dce7(0x17c),_0x32182e[_0x76dce7(0x1ca)]=_0x76dce7(0x206);if(this[_0x76dce7(0x14e)])return _0x1bc29e(_0x32182e);this[_0x76dce7(0x1a3)]=![];this[_0x76dce7(0x1bb)]?.[_0x76dce7(0x1c2)]&&(this[_0x76dce7(0x1bb)]=null,this[_0x76dce7(0x1fa)]());this[_0x76dce7(0x241)]=this[_0x76dce7(0x266)]?.[_0x76dce7(0x247)]?_0x76dce7(0x171):_0x76dce7(0x22f),this[_0x76dce7(0x1da)]();const _0x40b8da={};return _0x40b8da[_0x76dce7(0x25c)]=this[_0x76dce7(0x241)],_0x1bc29e(_0x40b8da);}if(_0x162570[_0x76dce7(0x1d6)]===_0x76dce7(0x161)){this[_0x76dce7(0x1a3)]=!![],this[_0x76dce7(0x241)]='pending-safe-boundary',this[_0x76dce7(0x1da)](),void this['safeBoundary']()[_0x76dce7(0x175)](_0x9e04d0=>_0x1bc29e({'status':_0x9e04d0['length']?'pending-safe-boundary':_0x76dce7(0x298),'blockers':_0x9e04d0}))[_0x76dce7(0x1aa)](_0x338423=>_0x1bc29e({'status':_0x76dce7(0x1f3),'code':_0x338423[_0x76dce7(0x1ca)]||_0x76dce7(0x1b2)}));return;}if(_0x162570[_0x76dce7(0x1d6)]===_0x76dce7(0x25b)){const _0xa26159=readFence(this[_0x76dce7(0x193)]),_0x5c24dc={};_0x5c24dc[_0x76dce7(0x25c)]=_0x76dce7(0x1f3),_0x5c24dc[_0x76dce7(0x1ca)]='ADMISSION_CONFLICT';if(_0xa26159[_0x76dce7(0x1b8)]!==_0x76dce7(0x1d2)||!_0xa26159[_0x76dce7(0x158)]||_0xa26159[_0x76dce7(0x200)]!==_0x162570[_0x76dce7(0x200)]||_0xa26159['epoch']!==_0x162570['epoch']||_0xa26159[_0x76dce7(0x1c9)]!==_0x162570[_0x76dce7(0x253)]||_0xa26159['targetDigest']!==_0x162570[_0x76dce7(0x180)])return _0x1bc29e(_0x5c24dc);this[_0x76dce7(0x1a3)]=!![],this[_0x76dce7(0x241)]=_0x76dce7(0x17c),this[_0x76dce7(0x1da)](),void this['requestChild'](_0x76dce7(0x25b),{..._0x162570['options'],'transactionId':_0x162570[_0x76dce7(0x200)],'epoch':_0x162570[_0x76dce7(0x151)],'version':_0x162570[_0x76dce7(0x253)],'digest':_0x162570[_0x76dce7(0x180)],'requestsPending':this[_0x76dce7(0x1eb)]['size']},0x3a98)['then'](_0x1bc29e)['catch'](_0x1d71dd=>_0x1bc29e({'status':_0x76dce7(0x1f3),'code':_0x1d71dd[_0x76dce7(0x1ca)]||_0x76dce7(0x185)}));return;}const _0x88f731={};_0x88f731[_0x76dce7(0x25c)]=_0x76dce7(0x1f3),_0x88f731[_0x76dce7(0x1ca)]=_0x76dce7(0x270);if(!/^[0-9]+\.[0-9]+\.[0-9]+$/[_0x76dce7(0x1a7)](_0x162570[_0x76dce7(0x253)]||'')||!/^[a-f0-9]{64}$/[_0x76dce7(0x1a7)](_0x162570[_0x76dce7(0x180)]||'')||!this[_0x76dce7(0x1a3)])return _0x1bc29e(_0x88f731);const _0x51ce47=path[_0x76dce7(0x18a)](this[_0x76dce7(0x22b)],_0x76dce7(0x269),_0x162570['version']+'-'+_0x162570['digest']);void this['switchRuntime'](_0x51ce47,Math[_0x76dce7(0x25e)](0x0,Math['min'](0x78,Number(_0x162570[_0x76dce7(0x169)])||0x0)))[_0x76dce7(0x175)](_0x3afa2c=>_0x1bc29e(_0x3afa2c))['catch'](_0x40ef18=>_0x1bc29e({'status':_0x76dce7(0x1f3),'code':_0x40ef18[_0x76dce7(0x1ca)]||_0x76dce7(0x254)}));});}),await new Promise((_0x449a4e,_0x199e1e)=>this['listener'][_0xc56b21(0x1b7)]('error',_0x199e1e)['listen'](this['endpoint'],_0x449a4e)),this[_0xc56b21(0x1da)](),this[_0xc56b21(0x152)]['on'](_0xc56b21(0x182),_0x21cf62=>this[_0xc56b21(0x223)](_0x21cf62)),this[_0xc56b21(0x152)]['on'](_0xc56b21(0x17f),()=>void this[_0xc56b21(0x1dc)]('host-eof')),this[_0xc56b21(0x152)]['on'](_0xc56b21(0x23a),()=>void this[_0xc56b21(0x1dc)]('host-error')),this['watchPendingExecutor'](),this;}['watchPendingExecutor'](_0x48350d=0x1388){const _0x12088c=_0x4cfb3f;clearTimeout(this[_0x12088c(0x210)]);const _0x1aa731=async()=>{const _0x1e179d=_0x12088c;if(this[_0x1e179d(0x27a)]||this['closing'])return;const _0x2efaae=this['workspace'];try{await require(_0x1e179d(0x19e))['startPendingExecutor'](_0x2efaae,this[_0x1e179d(0x19b)]);}catch(_0x113b96){const _0x354866={};_0x354866[_0x1e179d(0x186)]=_0x113b96['code']||'EXECUTOR_START_FAILED';if(this['workspace']===_0x2efaae&&!this[_0x1e179d(0x27a)]&&!this[_0x1e179d(0x24f)])this[_0x1e179d(0x1da)](_0x354866);}!this['stopped']&&!this[_0x1e179d(0x24f)]&&(this[_0x1e179d(0x210)]=setTimeout(_0x1aa731,_0x48350d),this[_0x1e179d(0x210)][_0x1e179d(0x15c)]());};void _0x1aa731();}[_0x4cfb3f(0x18b)](_0x59fcfb){const _0x25560e=_0x4cfb3f,_0x5a33c8=_0x59fcfb['params']||{},_0x268c46=_0x5a33c8[_0x25560e(0x239)]?.[0x0],_0x2f4fda=_0x268c46?.[_0x25560e(0x290)]||_0x268c46?.[_0x25560e(0x1cd)]||_0x5a33c8[_0x25560e(0x288)]||_0x5a33c8[_0x25560e(0x1ed)];if(!_0x2f4fda)return this[_0x25560e(0x193)];try{const _0x2c7a77=_0x2f4fda[_0x25560e(0x1ba)](_0x25560e(0x1e5))?require(_0x25560e(0x26d))[_0x25560e(0x272)](_0x2f4fda):_0x2f4fda;return fs[_0x25560e(0x1f0)](_0x2c7a77);}catch{return this[_0x25560e(0x193)];}}[_0x4cfb3f(0x223)](_0x2487de){const _0x2da4bd=_0x4cfb3f;this[_0x2da4bd(0x1c0)]+=_0x2487de[_0x2da4bd(0x167)](_0x2da4bd(0x287));if(this[_0x2da4bd(0x1c0)][_0x2da4bd(0x155)]>0x8*0x400*0x400)return void this[_0x2da4bd(0x1dc)](_0x2da4bd(0x1e9));let _0x3f921a;while((_0x3f921a=this['inputBuffer'][_0x2da4bd(0x23c)]('\x0a'))>=0x0){const _0x551d12=this[_0x2da4bd(0x1c0)][_0x2da4bd(0x1fc)](0x0,_0x3f921a);this[_0x2da4bd(0x1c0)]=this[_0x2da4bd(0x1c0)]['slice'](_0x3f921a+0x1);if(!_0x551d12[_0x2da4bd(0x256)]())continue;let _0x42394e;try{_0x42394e=JSON['parse'](_0x551d12);}catch{const _0x3d12a4={};_0x3d12a4[_0x2da4bd(0x1ca)]=-0x7fbc,_0x3d12a4['message']='Parse\x20error';const _0x54dd5f={};_0x54dd5f[_0x2da4bd(0x1a0)]=_0x2da4bd(0x240),_0x54dd5f['id']=null,_0x54dd5f[_0x2da4bd(0x23a)]=_0x3d12a4,this[_0x2da4bd(0x216)](_0x54dd5f);continue;}this[_0x2da4bd(0x21f)]=this[_0x2da4bd(0x21f)][_0x2da4bd(0x175)](()=>this[_0x2da4bd(0x20c)](_0x42394e,_0x551d12))['catch'](_0x27a398=>{const _0x48a162=_0x2da4bd,_0x9ce773={};_0x9ce773[_0x48a162(0x1ca)]=-0x7f5b,_0x9ce773[_0x48a162(0x204)]=_0x27a398[_0x48a162(0x1ca)]||_0x48a162(0x221);if(_0x42394e['id']!==undefined)this[_0x48a162(0x216)]({'jsonrpc':_0x48a162(0x240),'id':_0x42394e['id'],'error':_0x9ce773});});}}async[_0x4cfb3f(0x20c)](_0x52d2eb,_0x11553a){const _0x177d79=_0x4cfb3f;if(this[_0x177d79(0x27a)])return;if(!_0x52d2eb['method'])return;const _0x5c97b3=readFence(this[_0x177d79(0x193)]);if(_0x5c97b3['state']===_0x177d79(0x1af)){const _0x998587={};_0x998587[_0x177d79(0x1ca)]=-0x7d01,_0x998587['message']=_0x177d79(0x17d);if(_0x52d2eb['id']!==undefined)this['writeHost']({'jsonrpc':_0x177d79(0x240),'id':_0x52d2eb['id'],'error':_0x998587});return;}if(!this[_0x177d79(0x266)]&&_0x5c97b3[_0x177d79(0x1b8)]!==_0x177d79(0x212)){const _0x243854={};_0x243854['code']=-0x7d01,_0x243854['message']='APT_UPDATE_PENDING:\x20new\x20connection\x20is\x20waiting\x20for\x20workspace\x20recovery';if(_0x52d2eb['id']!==undefined)this[_0x177d79(0x216)]({'jsonrpc':_0x177d79(0x240),'id':_0x52d2eb['id'],'error':_0x243854});return;}if(!this['child']){if(_0x52d2eb[_0x177d79(0x264)]!=='initialize'){const _0x1708a2={};_0x1708a2[_0x177d79(0x1ca)]=-0x7d02,_0x1708a2[_0x177d79(0x204)]=_0x177d79(0x1d1);if(_0x52d2eb['id']!==undefined)this[_0x177d79(0x216)]({'jsonrpc':_0x177d79(0x240),'id':_0x52d2eb['id'],'error':_0x1708a2});return;}if(_0x52d2eb[_0x177d79(0x264)]===_0x177d79(0x29c))this[_0x177d79(0x22c)](this[_0x177d79(0x18b)](_0x52d2eb));const _0x2e673c=readGeneration(this['workspace']);if(_0x2e673c){const _0xdf10ac=path['join'](this[_0x177d79(0x22b)],_0x177d79(0x269),_0x2e673c[_0x177d79(0x253)]+'-'+_0x2e673c[_0x177d79(0x180)]),_0x235bcf=verifyRelease(_0xdf10ac,this['publicKey']),_0x56d3d5={};_0x56d3d5[_0x177d79(0x1ca)]=_0x177d79(0x27c);if(_0x235bcf[_0x177d79(0x253)]!==_0x2e673c['version']||_0x235bcf['digest']!==_0x2e673c[_0x177d79(0x180)])throw Object[_0x177d79(0x1c7)](new Error('Committed\x20runtime\x20identity\x20differs'),_0x56d3d5);this[_0x177d79(0x294)]=_0xdf10ac,this[_0x177d79(0x28c)]=_0x2e673c[_0x177d79(0x28c)];}await this[_0x177d79(0x1e2)](this[_0x177d79(0x294)],this[_0x177d79(0x28c)]||0x1);if(readFence(this[_0x177d79(0x193)])['state']===_0x177d79(0x212))this['admissionClosed']=![];}let _0xadc2d3;if(readFence(this[_0x177d79(0x193)])[_0x177d79(0x1b8)]===_0x177d79(0x1d2)&&this[_0x177d79(0x1a6)](_0x52d2eb)){const _0x8a627c={};_0x8a627c[_0x177d79(0x1c4)]=_0x52d2eb[_0x177d79(0x1e4)][_0x177d79(0x2a0)],_0x8a627c['arguments']=_0x52d2eb[_0x177d79(0x1e4)][_0x177d79(0x250)],_0xadc2d3=await this[_0x177d79(0x24a)](_0x177d79(0x1a8),_0x8a627c);}const _0x341a9d=_0x52d2eb['id']===undefined?!![]:withAdmissionLock(this['workspace'],_0x34d61a=>{const _0x10c4db=_0x177d79,_0x540952=_0x34d61a[_0x10c4db(0x1b8)]===_0x10c4db(0x1d2)&&_0xadc2d3?.[_0x10c4db(0x28b)]===!![]&&_0xadc2d3['epoch']===_0x34d61a[_0x10c4db(0x151)];if(_0x34d61a[_0x10c4db(0x1b8)]===_0x10c4db(0x1af)||(this['admissionClosed']||[_0x10c4db(0x28d),_0x10c4db(0x1d2)][_0x10c4db(0x165)](_0x34d61a[_0x10c4db(0x1b8)]))&&this[_0x10c4db(0x1a6)](_0x52d2eb)&&!_0x540952)return![];const _0x1dbb0d={};_0x1dbb0d['code']=_0x10c4db(0x1db);if(this[_0x10c4db(0x1eb)][_0x10c4db(0x17e)](messageId(_0x52d2eb['id'])))throw Object['assign'](new Error(_0x10c4db(0x191)),_0x1dbb0d);const _0x19818d=this[_0x10c4db(0x263)]+':'+crypto[_0x10c4db(0x22e)](),_0x524948={'invocationId':_0x19818d,'actorId':_0x10c4db(0x24d),'attemptId':null,'inputHash':hash(_0x11553a),'epoch':_0x34d61a['epoch'],'status':'active','connectionId':this[_0x10c4db(0x263)],'createdAt':new Date()[_0x10c4db(0x20f)]()};return _0x34d61a['tickets']||={},_0x34d61a['tickets'][hash(_0x19818d)]=_0x524948,saveLocked(this[_0x10c4db(0x193)],_0x34d61a),this[_0x10c4db(0x1eb)][_0x10c4db(0x235)](messageId(_0x52d2eb['id']),{'method':_0x52d2eb['method'],'tool':_0x52d2eb[_0x10c4db(0x1e4)]?.[_0x10c4db(0x2a0)]||null,'ticket':_0x524948}),!![];});if(!_0x341a9d){const _0x132212={};_0x132212[_0x177d79(0x1ca)]=-0x7d01,_0x132212[_0x177d79(0x204)]=_0x177d79(0x1f2);if(_0x52d2eb['id']!==undefined)this[_0x177d79(0x216)]({'jsonrpc':_0x177d79(0x240),'id':_0x52d2eb['id'],'error':_0x132212});return;}if(_0x52d2eb[_0x177d79(0x264)]===_0x177d79(0x29c))this[_0x177d79(0x29c)]=_0x52d2eb[_0x177d79(0x1e4)]||{};if(_0x52d2eb['method']==='notifications/initialized')this[_0x177d79(0x21a)]=!![];try{!this[_0x177d79(0x266)][_0x177d79(0x152)][_0x177d79(0x179)](_0x11553a+'\x0a')&&(this['stdin'][_0x177d79(0x273)](),this[_0x177d79(0x266)]['stdin'][_0x177d79(0x1b7)](_0x177d79(0x1ea),()=>this[_0x177d79(0x152)][_0x177d79(0x192)]()));}catch(_0x4310a5){if(_0x52d2eb['id']!==undefined)this['pending'][_0x177d79(0x275)](messageId(_0x52d2eb['id']));throw _0x4310a5;}}[_0x4cfb3f(0x1a6)](_0x4961f7){const _0x9f8546=_0x4cfb3f;if(_0x4961f7[_0x9f8546(0x264)]!==_0x9f8546(0x1bd))return![];const _0x5d3e9e=_0x4961f7[_0x9f8546(0x1e4)]?.[_0x9f8546(0x2a0)]||'',_0x39cf36=_0x4961f7[_0x9f8546(0x1e4)]?.[_0x9f8546(0x250)]?.['action'];if(_0x5d3e9e===_0x9f8546(0x226))return!(_0x4961f7[_0x9f8546(0x1e4)]?.[_0x9f8546(0x250)]?.[_0x9f8546(0x280)]&&[_0x9f8546(0x16e),_0x9f8546(0x188),_0x9f8546(0x294),_0x9f8546(0x1b9),_0x9f8546(0x1e3),'review',_0x9f8546(0x160)][_0x9f8546(0x165)](_0x39cf36));if([_0x9f8546(0x1ff),_0x9f8546(0x20b),_0x9f8546(0x1ce),_0x9f8546(0x265),_0x9f8546(0x176),_0x9f8546(0x1f4)]['includes'](_0x5d3e9e))return![];return!![];}async['boot'](_0xf1c8b3,_0x3b07c1){const _0x410642=_0x4cfb3f;if(this['booting'])return this[_0x410642(0x196)];this[_0x410642(0x196)]=((async()=>{const _0xcbada8=_0x410642,_0x1b8a78=verifyRelease(_0xf1c8b3,this[_0xcbada8(0x19b)]),_0x1e1590=spawn(process[_0xcbada8(0x1c3)],[path['join'](_0xf1c8b3,_0xcbada8(0x27b))],{'cwd':this[_0xcbada8(0x193)],'stdio':[_0xcbada8(0x1f1),_0xcbada8(0x1f1),_0xcbada8(0x1f1),_0xcbada8(0x285)],'windowsHide':!![],'env':{...process.env,...this[_0xcbada8(0x277)],'APT_SUPERVISOR_CHILD':'1','APT_CONNECTION_ID':this[_0xcbada8(0x263)]}});this[_0xcbada8(0x266)]=_0x1e1590;const _0x1e2264={};_0x1e2264['version']=_0x1b8a78[_0xcbada8(0x253)],_0x1e2264[_0xcbada8(0x180)]=_0x1b8a78[_0xcbada8(0x180)],_0x1e2264[_0xcbada8(0x28c)]=_0x3b07c1,_0x1e1590['expectedBoot']=_0x1e2264,_0x1e1590[_0xcbada8(0x247)]=![],_0x1e1590['stdout']['on'](_0xcbada8(0x182),_0x2944f8=>this[_0xcbada8(0x18e)](_0x2944f8,_0x1e1590)),_0x1e1590[_0xcbada8(0x1b3)]['on'](_0xcbada8(0x182),_0x2bb885=>this['stderr'][_0xcbada8(0x179)](_0x2bb885)),_0x1e1590['on'](_0xcbada8(0x204),_0x3040a7=>this[_0xcbada8(0x208)](_0x3040a7,_0x1e1590)),_0x1e1590['on'](_0xcbada8(0x1dc),(_0x2ba922,_0xdb66bb)=>this['childClosed'](_0x1e1590,_0x2ba922,_0xdb66bb)),_0x1e1590['on'](_0xcbada8(0x23a),_0x268901=>this[_0xcbada8(0x261)](_0x1e1590,null,_0x268901[_0xcbada8(0x1ca)]));const _0x56efda=new Promise((_0x38329c,_0x7afc6)=>{const _0x43674f=_0xcbada8,_0x4e5000={};_0x4e5000[_0x43674f(0x1ca)]='CHILD_START_TIMEOUT';const _0x39632c=setTimeout(()=>_0x7afc6(Object[_0x43674f(0x1c7)](new Error(_0x43674f(0x16a)),_0x4e5000)),0x3a98);_0x1e1590[_0x43674f(0x27f)]=_0x8378f6=>{clearTimeout(_0x39632c),_0x38329c(_0x8378f6);},_0x1e1590['bootReject']=_0x4a0565=>{clearTimeout(_0x39632c),_0x7afc6(_0x4a0565);};});_0x1e1590[_0xcbada8(0x162)]({'type':_0xcbada8(0x1e2),'runtimeRoot':this[_0xcbada8(0x22b)],'release':_0xf1c8b3,'publicKey':this[_0xcbada8(0x19b)]?.['toString'](),'connectionId':this[_0xcbada8(0x263)],'generation':_0x3b07c1,'workspace':this[_0xcbada8(0x193)],'explicitWorkspace':this[_0xcbada8(0x24e)],'gatewayBinding':this[_0xcbada8(0x19a)]});try{const _0x40c331=await _0x56efda;_0x1e1590['ready']=!![],this[_0xcbada8(0x1df)]=Array[_0xcbada8(0x28f)](_0x40c331[_0xcbada8(0x248)])?_0x40c331[_0xcbada8(0x248)]:[],this[_0xcbada8(0x267)]=_0x1b8a78,this[_0xcbada8(0x173)]=_0x40c331['resourceDigest'],this[_0xcbada8(0x28c)]=_0x3b07c1,this[_0xcbada8(0x241)]='ready-next-connection',this[_0xcbada8(0x1da)]();}catch(_0x5bd0f6){_0x1e1590[_0xcbada8(0x293)]();if(this['child']===_0x1e1590)this[_0xcbada8(0x266)]=null;throw _0x5bd0f6;}})());try{return await this[_0x410642(0x196)];}finally{this[_0x410642(0x196)]=null;}}['receiveChild'](_0x1adc1e,_0x109bfe){const _0x2b2082=_0x4cfb3f;if(this[_0x2b2082(0x266)]!==_0x109bfe)return;const _0x438204=this['outputDecoder']['write'](_0x1adc1e);this[_0x2b2082(0x1d5)]+=_0x438204;let _0x2c499a;while((_0x2c499a=this[_0x2b2082(0x1d5)][_0x2b2082(0x23c)]('\x0a'))>=0x0){const _0x3cbc55=this[_0x2b2082(0x1d5)]['slice'](0x0,_0x2c499a);this[_0x2b2082(0x1d5)]=this[_0x2b2082(0x1d5)][_0x2b2082(0x1fc)](_0x2c499a+0x1);if(!_0x3cbc55)continue;let _0x552c9e;try{_0x552c9e=JSON[_0x2b2082(0x1bc)](_0x3cbc55);}catch{continue;}const _0x34870b=_0x552c9e['id']!==undefined&&this[_0x2b2082(0x18d)][_0x2b2082(0x174)](messageId(_0x552c9e['id']));if(_0x34870b){this[_0x2b2082(0x18d)][_0x2b2082(0x275)](messageId(_0x552c9e['id'])),_0x34870b[_0x2b2082(0x279)](_0x552c9e);continue;}const _0x26b0c4=_0x552c9e['id']!==undefined?this[_0x2b2082(0x1eb)][_0x2b2082(0x174)](messageId(_0x552c9e['id'])):null;if(_0x26b0c4){if(_0x26b0c4['ticket'])finishOperation(this[_0x2b2082(0x193)],_0x26b0c4['ticket'][_0x2b2082(0x1d7)],_0x26b0c4['ticket']['epoch']);this[_0x2b2082(0x1eb)][_0x2b2082(0x275)](messageId(_0x552c9e['id']));if(_0x26b0c4[_0x2b2082(0x264)]==='initialize'&&!_0x552c9e[_0x2b2082(0x23a)]){try{this[_0x2b2082(0x18f)](),this[_0x2b2082(0x241)]=_0x2b2082(0x171);}catch(_0x165fb1){this[_0x2b2082(0x241)]='reconnect-required';const _0x5ec49d={};_0x5ec49d[_0x2b2082(0x1ca)]=-0x7d01,_0x5ec49d[_0x2b2082(0x204)]=_0x165fb1['code']||_0x2b2082(0x177),_0x552c9e={'jsonrpc':'2.0','id':_0x552c9e['id'],'error':_0x5ec49d};}this[_0x2b2082(0x1da)](),void this[_0x2b2082(0x1b0)]()[_0x2b2082(0x1aa)](_0x33d06c=>{const _0x25545e=_0x2b2082,_0x339762={};_0x339762[_0x25545e(0x238)]=_0x33d06c[_0x25545e(0x1ca)]||'ADMISSION_RELEASE_FAILED',this['record'](_0x339762);});}if(_0x26b0c4['method']===_0x2b2082(0x233)&&!_0x552c9e[_0x2b2082(0x23a)])this[_0x2b2082(0x2a3)]=hash(JSON[_0x2b2082(0x168)](_0x552c9e[_0x2b2082(0x228)]?.[_0x2b2082(0x1f8)]||[]));}!this[_0x2b2082(0x217)][_0x2b2082(0x179)](JSON[_0x2b2082(0x168)](_0x552c9e)+'\x0a')&&(_0x109bfe[_0x2b2082(0x217)][_0x2b2082(0x273)](),this[_0x2b2082(0x217)][_0x2b2082(0x1b7)](_0x2b2082(0x1ea),()=>_0x109bfe['stdout']['resume']()));}}async['releaseCommittedFence'](){const _0x490322=_0x4cfb3f,_0x1de301=readFence(this[_0x490322(0x193)]);if(_0x1de301['state']!==_0x490322(0x28d)||_0x1de301[_0x490322(0x1c9)]!==this['identity']?.['version']||_0x1de301[_0x490322(0x14c)]!==this[_0x490322(0x267)]?.[_0x490322(0x180)])return;const _0x10d359=path['join'](this[_0x490322(0x193)],'.agents',_0x490322(0x257),_0x490322(0x159));let _0x10cc35;try{_0x10cc35=JSON[_0x490322(0x1bc)](fs['readFileSync'](_0x10d359,'utf8'));}catch{return;}if(_0x10cc35[_0x490322(0x200)]!==_0x1de301[_0x490322(0x200)]||![_0x490322(0x219),_0x490322(0x28e)][_0x490322(0x165)](_0x10cc35[_0x490322(0x25c)]))return;const _0x3b20dd=await require(_0x490322(0x2a2))[_0x490322(0x198)](this[_0x490322(0x193)],{'version':this[_0x490322(0x267)][_0x490322(0x253)],'digest':this[_0x490322(0x267)]['digest'],'resourceDigest':this[_0x490322(0x173)]});if(_0x3b20dd[_0x490322(0x25c)]!==_0x490322(0x171))return;const _0x42b5c8=changeFence(this[_0x490322(0x193)],_0x1de301[_0x490322(0x151)],{'state':_0x490322(0x212),'transactionId':_0x1de301['transactionId'],'generation':this[_0x490322(0x28c)]}),_0x4c66d8={..._0x10cc35};_0x4c66d8[_0x490322(0x25c)]=_0x490322(0x171),_0x4c66d8[_0x490322(0x276)]=_0x490322(0x18c),_0x4c66d8[_0x490322(0x28c)]=this[_0x490322(0x28c)],_0x4c66d8[_0x490322(0x1a2)]=_0x42b5c8[_0x490322(0x1a2)],atomic(_0x10d359,_0x4c66d8);}[_0x4cfb3f(0x208)](_0x5bfda8,_0x5244bc){const _0x5be995=_0x4cfb3f;if(this['child']!==_0x5244bc)return;if(_0x5bfda8?.[_0x5be995(0x1d6)]===_0x5be995(0x247)){const _0x1b08f6=_0x5244bc[_0x5be995(0x1b4)],_0xdfead9={};_0xdfead9[_0x5be995(0x1ca)]=_0x5be995(0x1ae);if(!_0x1b08f6||_0x5bfda8['connectionId']!==this['connectionId']||_0x5bfda8[_0x5be995(0x262)]!==_0x5244bc[_0x5be995(0x262)]||_0x5bfda8[_0x5be995(0x28c)]!==_0x1b08f6[_0x5be995(0x28c)]||_0x5bfda8[_0x5be995(0x253)]!==_0x1b08f6[_0x5be995(0x253)]||_0x5bfda8['digest']!==_0x1b08f6['digest']||!same(_0x5bfda8[_0x5be995(0x193)]||'',this[_0x5be995(0x193)]))_0x5244bc['bootReject']?.(Object[_0x5be995(0x1c7)](new Error(_0x5be995(0x282)),_0xdfead9));else _0x5244bc[_0x5be995(0x27f)]?.(_0x5bfda8);}else{if(_0x5bfda8?.[_0x5be995(0x1d6)]===_0x5be995(0x202))_0x5244bc[_0x5be995(0x197)]?.(Object[_0x5be995(0x1c7)](new Error(_0x5bfda8['detail']),{'code':_0x5bfda8[_0x5be995(0x1ca)]}));else{if(_0x5bfda8?.[_0x5be995(0x1d6)]===_0x5be995(0x181))this[_0x5be995(0x22c)](_0x5bfda8[_0x5be995(0x193)]);else{if(_0x5bfda8?.[_0x5be995(0x170)]&&this[_0x5be995(0x18d)][_0x5be995(0x17e)](messageId(_0x5bfda8[_0x5be995(0x170)]))){const _0x44b87d=this[_0x5be995(0x18d)][_0x5be995(0x174)](messageId(_0x5bfda8[_0x5be995(0x170)]));this[_0x5be995(0x18d)]['delete'](messageId(_0x5bfda8['requestId'])),_0x44b87d[_0x5be995(0x279)](_0x5bfda8);}}}}}['requestChild'](_0x299f8a,_0x12875b={},_0x42e3f6=0x1388){const _0x150981=_0x4cfb3f,_0x105e1a={};_0x105e1a['code']='CHILD_UNAVAILABLE';if(!this['child']?.[_0x150981(0x187)])return Promise[_0x150981(0x243)](Object[_0x150981(0x1c7)](new Error(_0x150981(0x1be)),_0x105e1a));const _0x347e76=_0x150981(0x268)+crypto[_0x150981(0x22e)]();return new Promise((_0x57bf9b,_0x4daab0)=>{const _0x5830a7=_0x150981,_0x5bbd3b=setTimeout(()=>{const _0x5a4dfc=_0x5381;this[_0x5a4dfc(0x18d)][_0x5a4dfc(0x275)](messageId(_0x347e76));const _0xe0978a={};_0xe0978a[_0x5a4dfc(0x1ca)]='CHILD_CONTROL_TIMEOUT',_0x4daab0(Object[_0x5a4dfc(0x1c7)](new Error(_0x5a4dfc(0x1b6)),_0xe0978a));},_0x42e3f6);this['control'][_0x5830a7(0x235)](messageId(_0x347e76),{'resolve':_0x597d2b=>{clearTimeout(_0x5bbd3b),_0x57bf9b(_0x597d2b);}});const _0x45166a={'type':_0x299f8a,'requestId':_0x347e76,..._0x12875b};this[_0x5830a7(0x266)][_0x5830a7(0x162)](_0x45166a);});}[_0x4cfb3f(0x1e1)](_0xff0d75,_0x503f21,_0x37b348=0x2710){const _0x5c5d78=_0x4cfb3f,_0x2f2ff2=_0x5c5d78(0x215)+crypto[_0x5c5d78(0x22e)]();return new Promise((_0x532cba,_0x36b6de)=>{const _0x112b04=_0x5c5d78,_0x3715a2=setTimeout(()=>{const _0x156253=_0x5381;this[_0x156253(0x18d)]['delete'](messageId(_0x2f2ff2));const _0x42a248={};_0x42a248[_0x156253(0x1ca)]=_0x156253(0x1e0),_0x36b6de(Object['assign'](new Error(_0x156253(0x1fd)),_0x42a248));},_0x37b348);this[_0x112b04(0x18d)][_0x112b04(0x235)](messageId(_0x2f2ff2),{'resolve':_0x53c429=>{clearTimeout(_0x3715a2),_0x532cba(_0x53c429);}});const _0x20a833={};_0x20a833[_0x112b04(0x1a0)]=_0x112b04(0x240),_0x20a833['id']=_0x2f2ff2,_0x20a833[_0x112b04(0x264)]=_0xff0d75,_0x20a833['params']=_0x503f21,this[_0x112b04(0x266)][_0x112b04(0x152)][_0x112b04(0x179)](JSON[_0x112b04(0x168)](_0x20a833)+'\x0a');});}async[_0x4cfb3f(0x17a)](){const _0x2347f6=_0x4cfb3f;if(this[_0x2347f6(0x1eb)][_0x2347f6(0x1f9)])return[{'kind':_0x2347f6(0x20d),'count':this[_0x2347f6(0x1eb)][_0x2347f6(0x1f9)]}];const _0x4586b6=await this[_0x2347f6(0x24a)](_0x2347f6(0x25c)),_0x240f86={};return _0x240f86[_0x2347f6(0x19c)]=_0x2347f6(0x1d9),_0x4586b6['blockers']||[_0x240f86];}[_0x4cfb3f(0x27d)](){const _0x3cc786=_0x4cfb3f,_0x49732d={};return _0x49732d['connectionId']=this['connectionId'],_0x49732d[_0x3cc786(0x193)]=this[_0x3cc786(0x193)],_0x49732d['supervisorPid']=process[_0x3cc786(0x262)],_0x49732d[_0x3cc786(0x27e)]=this[_0x3cc786(0x266)]?.['pid'],_0x49732d[_0x3cc786(0x253)]=this[_0x3cc786(0x267)]?.[_0x3cc786(0x253)],_0x49732d[_0x3cc786(0x180)]=this['identity']?.['digest'],_0x49732d[_0x3cc786(0x173)]=this[_0x3cc786(0x173)],_0x49732d['catalogHash']=this[_0x3cc786(0x2a3)],_0x49732d['generation']=this[_0x3cc786(0x28c)],_0x49732d;}async[_0x4cfb3f(0x249)](_0x4b9934){const _0x7b20c1=_0x4cfb3f,_0x45be9c={};_0x45be9c['code']=_0x7b20c1(0x29d);if(!this[_0x7b20c1(0x266)])throw Object[_0x7b20c1(0x1c7)](new Error('Child\x20ownership\x20is\x20unknown'),_0x45be9c);const _0x1a72dd=this[_0x7b20c1(0x266)],_0xa7a44a={};_0xa7a44a[_0x7b20c1(0x29b)]=_0x4b9934;const _0x242d90=await this[_0x7b20c1(0x24a)](_0x7b20c1(0x1f6),_0xa7a44a,0x3a98),_0x55b683={};_0x55b683[_0x7b20c1(0x1ca)]=_0x7b20c1(0x237);if(_0x242d90[_0x7b20c1(0x1d6)]!==_0x7b20c1(0x27a)||_0x242d90[_0x7b20c1(0x262)]!==_0x1a72dd[_0x7b20c1(0x262)])throw Object[_0x7b20c1(0x1c7)](new Error(_0x7b20c1(0x26c)),_0x55b683);await waitChildClosed(_0x1a72dd,0x3a98);if(this[_0x7b20c1(0x266)]===_0x1a72dd)this[_0x7b20c1(0x266)]=null;this['outputBuffer']='',this[_0x7b20c1(0x28a)]=new StringDecoder(_0x7b20c1(0x287));}async[_0x4cfb3f(0x25a)](_0x39c131){const _0x3066ff=_0x4cfb3f;if(this[_0x3066ff(0x29c)]){const _0x48c286=await this[_0x3066ff(0x1e1)](_0x3066ff(0x29c),this[_0x3066ff(0x29c)]),_0x5871da={};_0x5871da[_0x3066ff(0x1ca)]=_0x3066ff(0x24b);if(_0x48c286[_0x3066ff(0x23a)])throw Object[_0x3066ff(0x1c7)](new Error(_0x3066ff(0x20e)),_0x5871da);const _0x1bba91={};_0x1bba91['jsonrpc']='2.0',_0x1bba91[_0x3066ff(0x264)]=_0x3066ff(0x178),_0x1bba91[_0x3066ff(0x1e4)]={};if(this[_0x3066ff(0x21a)])this[_0x3066ff(0x266)][_0x3066ff(0x152)]['write'](JSON[_0x3066ff(0x168)](_0x1bba91)+'\x0a');}const _0x40cb9d=await this[_0x3066ff(0x1e1)]('tools/list',{}),_0x347ed3=hash(JSON[_0x3066ff(0x168)](_0x40cb9d[_0x3066ff(0x228)]?.[_0x3066ff(0x1f8)]||[])),_0x3adcec={};_0x3adcec[_0x3066ff(0x1ca)]=_0x3066ff(0x1c1);if(_0x40cb9d[_0x3066ff(0x23a)]||this['toolCatalogHash']&&_0x347ed3!==this['toolCatalogHash'])throw Object[_0x3066ff(0x1c7)](new Error('Host\x20must\x20refresh\x20its\x20catalog'),_0x3adcec);this[_0x3066ff(0x2a3)]=_0x347ed3;const _0x4b453d={};_0x4b453d[_0x3066ff(0x17b)]=_0x39c131[_0x3066ff(0x17b)],_0x4b453d[_0x3066ff(0x29f)]=_0x39c131[_0x3066ff(0x29f)],await this[_0x3066ff(0x24a)](_0x3066ff(0x172),_0x4b453d);}async[_0x4cfb3f(0x299)](_0xd4bacc){const _0x3c8814=_0x4cfb3f,_0x8a6018=readFence(this['workspace']),_0x437f8c={};_0x437f8c[_0x3c8814(0x1ca)]=_0x3c8814(0x164);if(_0x8a6018['state']!==_0x3c8814(0x1af)||_0xd4bacc[_0x3c8814(0x200)]!==_0x8a6018[_0x3c8814(0x200)]||_0xd4bacc[_0x3c8814(0x151)]!==_0x8a6018[_0x3c8814(0x151)])throw Object[_0x3c8814(0x1c7)](new Error(_0x3c8814(0x1bf)),_0x437f8c);const _0x5a0eed={};_0x5a0eed[_0x3c8814(0x25c)]=_0x3c8814(0x17c),_0x5a0eed['code']=_0x3c8814(0x206);if(this[_0x3c8814(0x14e)])return _0x5a0eed;this[_0x3c8814(0x297)](_0xd4bacc[_0x3c8814(0x200)]),this['admissionClosed']=!![];if(_0xd4bacc[_0x3c8814(0x1d6)]==='commit-candidate'){const _0x463d53={};_0x463d53['code']=_0x3c8814(0x281);if(!this[_0x3c8814(0x1bb)]||this['candidate']['transactionId']!==_0xd4bacc[_0x3c8814(0x200)]||!this[_0x3c8814(0x1bb)][_0x3c8814(0x15d)]||!this[_0x3c8814(0x266)]?.[_0x3c8814(0x247)])throw Object[_0x3c8814(0x1c7)](new Error(_0x3c8814(0x190)),_0x463d53);const _0xd6d2ab=await this[_0x3c8814(0x24a)]('status'),_0xe59cd8={};_0xe59cd8['code']=_0x3c8814(0x1ae);if(_0xd6d2ab[_0x3c8814(0x262)]!==this['child'][_0x3c8814(0x262)]||_0xd6d2ab[_0x3c8814(0x28c)]!==_0xd4bacc[_0x3c8814(0x28c)]||!same(_0xd6d2ab[_0x3c8814(0x193)],this['workspace']))throw Object[_0x3c8814(0x1c7)](new Error('Candidate\x20readiness\x20is\x20no\x20longer\x20valid'),_0xe59cd8);const _0x819465=acknowledgeGeneration(this['workspace'],this['connectionId'],_0xd4bacc[_0x3c8814(0x200)],this[_0x3c8814(0x27d)]());projectGeneration(this[_0x3c8814(0x22b)],this['workspace'],_0x819465),this[_0x3c8814(0x294)]=this[_0x3c8814(0x1bb)][_0x3c8814(0x294)],this['activation']=_0x3c8814(0x171),this['admissionClosed']=![];const _0x43a9bc={};return _0x43a9bc[_0x3c8814(0x29a)]=_0x819465[_0x3c8814(0x200)],this[_0x3c8814(0x1da)](_0x43a9bc),{'status':_0x3c8814(0x171),...this['candidateTuple']()};}const _0x403593=readGeneration(this[_0x3c8814(0x193)]),_0x19d133={};_0x19d133[_0x3c8814(0x1ca)]=_0x3c8814(0x26b);if(_0xd4bacc[_0x3c8814(0x1d6)]===_0x3c8814(0x278)&&_0x403593?.[_0x3c8814(0x200)]===_0xd4bacc[_0x3c8814(0x200)])throw Object[_0x3c8814(0x1c7)](new Error(_0x3c8814(0x286)),_0x19d133);if(_0xd4bacc[_0x3c8814(0x1d6)]===_0x3c8814(0x245)&&this[_0x3c8814(0x1bb)]?.['transactionId']===_0xd4bacc['transactionId']&&this['candidate'][_0x3c8814(0x15d)]&&this[_0x3c8814(0x266)]?.[_0x3c8814(0x247)]){const _0x118d94=this[_0x3c8814(0x27d)](),_0x239819={};_0x239819[_0x3c8814(0x1ca)]='CANDIDATE_TUPLE_MISMATCH';if([_0x3c8814(0x253),_0x3c8814(0x180),'generation','resourceDigest','catalogHash'][_0x3c8814(0x26e)](_0x28386b=>_0x118d94[_0x28386b]!==_0xd4bacc[_0x28386b]))throw Object[_0x3c8814(0x1c7)](new Error(_0x3c8814(0x205)),_0x239819);const _0x46133f=await this[_0x3c8814(0x24a)](_0x3c8814(0x25c)),_0x3d4c03={};_0x3d4c03['code']=_0x3c8814(0x1ae);if(_0x46133f[_0x3c8814(0x262)]!==_0x118d94[_0x3c8814(0x27e)]||_0x46133f[_0x3c8814(0x28c)]!==_0x118d94[_0x3c8814(0x28c)]||!same(_0x46133f[_0x3c8814(0x193)],this[_0x3c8814(0x193)]))throw Object[_0x3c8814(0x1c7)](new Error(_0x3c8814(0x166)),_0x3d4c03);const _0x24d703={'status':_0x3c8814(0x1ef),..._0x118d94};return _0x24d703;}this[_0x3c8814(0x14e)]=((async()=>{const _0x27d4b3=_0x3c8814;if(_0xd4bacc[_0x27d4b3(0x1d6)]==='stop-for-update'){if(this['candidate']?.[_0x27d4b3(0x200)]===_0xd4bacc['transactionId']&&this[_0x27d4b3(0x1bb)][_0x27d4b3(0x27a)]&&this[_0x27d4b3(0x1bb)][_0x27d4b3(0x15d)]&&!this['candidate'][_0x27d4b3(0x1c2)])return{'status':this[_0x27d4b3(0x266)]?.[_0x27d4b3(0x247)]?_0x27d4b3(0x1ef):_0x27d4b3(0x17c),'code':this[_0x27d4b3(0x266)]?.[_0x27d4b3(0x247)]?undefined:_0x27d4b3(0x1c8),'oldRuntimeStopped':!![],...this['candidateTuple']()};if(this[_0x27d4b3(0x1bb)]?.[_0x27d4b3(0x200)]===_0xd4bacc['transactionId']&&this['candidate'][_0x27d4b3(0x27a)]&&!this[_0x27d4b3(0x1bb)][_0x27d4b3(0x1c2)]&&!this[_0x27d4b3(0x266)])return{'status':'stopped','connectionId':this['connectionId']};const _0xd14dd4=await this['safeBoundary']();if(_0xd14dd4[_0x27d4b3(0x155)])return{'status':_0x27d4b3(0x17c),'blockers':_0xd14dd4};const _0x1a69cd=await this['requestChild']('status');this[_0x27d4b3(0x1bb)]={'transactionId':_0xd4bacc[_0x27d4b3(0x200)],'previous':{'release':this[_0x27d4b3(0x294)],'generation':this[_0x27d4b3(0x28c)],'resourceDigest':this[_0x27d4b3(0x173)],'state':_0x1a69cd}},this['persistCandidate'](),await this[_0x27d4b3(0x249)]('workspace-update'),this[_0x27d4b3(0x1bb)][_0x27d4b3(0x27a)]=!![],this[_0x27d4b3(0x1fa)]();const _0x88162f={};_0x88162f[_0x27d4b3(0x16f)]=_0xd4bacc[_0x27d4b3(0x200)],this[_0x27d4b3(0x1da)](_0x88162f);const _0x112cfb={};return _0x112cfb['status']=_0x27d4b3(0x27a),_0x112cfb[_0x27d4b3(0x263)]=this[_0x27d4b3(0x263)],_0x112cfb;}if(_0xd4bacc[_0x27d4b3(0x1d6)]===_0x27d4b3(0x278)){const _0x2a01ba={};_0x2a01ba[_0x27d4b3(0x1ca)]='CHILD_OWNERSHIP_UNKNOWN';if(!this[_0x27d4b3(0x1bb)])throw Object['assign'](new Error(_0x27d4b3(0x21d)),_0x2a01ba);const _0x2617f6=this[_0x27d4b3(0x1bb)]['previous'],_0x27f24e={};_0x27f24e['code']=_0x27d4b3(0x14f);if(!_0x2617f6?.[_0x27d4b3(0x1b8)]||!this[_0x27d4b3(0x1bb)][_0x27d4b3(0x27a)])throw Object[_0x27d4b3(0x1c7)](new Error('Previous\x20stop\x20evidence\x20is\x20missing'),_0x27f24e);if(this[_0x27d4b3(0x266)])await this[_0x27d4b3(0x249)](_0x27d4b3(0x199));await this[_0x27d4b3(0x1e2)](_0x2617f6[_0x27d4b3(0x294)],_0x2617f6[_0x27d4b3(0x28c)]);const _0x550e69={};_0x550e69['code']='RESOURCE_ROLLBACK_UNCONFIRMED';if(this[_0x27d4b3(0x173)]!==_0x2617f6[_0x27d4b3(0x173)])throw Object['assign'](new Error(_0x27d4b3(0x23f)),_0x550e69);return await this[_0x27d4b3(0x25a)](_0x2617f6[_0x27d4b3(0x1b8)]),this[_0x27d4b3(0x294)]=_0x2617f6['release'],this[_0x27d4b3(0x1bb)]={...this[_0x27d4b3(0x1bb)],'restored':!![],'prepared':![]},this[_0x27d4b3(0x1fa)](),this[_0x27d4b3(0x241)]=_0x27d4b3(0x17c),this[_0x27d4b3(0x1a3)]=![],this[_0x27d4b3(0x1da)](),{'status':'previous-restored','serving':this[_0x27d4b3(0x266)]?.[_0x27d4b3(0x247)]===!![],...this[_0x27d4b3(0x27d)]()};}const _0x1110fa={};_0x1110fa[_0x27d4b3(0x1ca)]='CANDIDATE_TUPLE_MISMATCH';if(!Number['isSafeInteger'](_0xd4bacc[_0x27d4b3(0x28c)])||_0xd4bacc[_0x27d4b3(0x28c)]<=(this[_0x27d4b3(0x1bb)]?.[_0x27d4b3(0x189)]?.[_0x27d4b3(0x28c)]??this[_0x27d4b3(0x28c)])||_0xd4bacc['version']!==_0x8a6018[_0x27d4b3(0x1c9)]||_0xd4bacc['digest']!==_0x8a6018[_0x27d4b3(0x14c)])throw Object[_0x27d4b3(0x1c7)](new Error(_0x27d4b3(0x220)),_0x1110fa);const _0x405602=_0xd4bacc[_0x27d4b3(0x294)]||path['join'](this['runtimeRoot'],_0x27d4b3(0x269),_0xd4bacc[_0x27d4b3(0x253)]+'-'+_0xd4bacc['digest']),_0x444051=verifyRelease(_0x405602,this[_0x27d4b3(0x19b)]),_0x3aa25a={};_0x3aa25a[_0x27d4b3(0x1ca)]=_0x27d4b3(0x251);if(_0x444051[_0x27d4b3(0x253)]!==_0xd4bacc[_0x27d4b3(0x253)]||_0x444051[_0x27d4b3(0x180)]!==_0xd4bacc[_0x27d4b3(0x180)])throw Object[_0x27d4b3(0x1c7)](new Error('Candidate\x20release\x20does\x20not\x20match\x20transaction'),_0x3aa25a);const _0x3480f9={};_0x3480f9['code']='CHILD_STOP_UNCONFIRMED';if(!this[_0x27d4b3(0x1bb)]?.[_0x27d4b3(0x27a)]||this['candidate'][_0x27d4b3(0x200)]!==_0xd4bacc['transactionId'])throw Object[_0x27d4b3(0x1c7)](new Error(_0x27d4b3(0x225)),_0x3480f9);const _0xfc1d00=this[_0x27d4b3(0x1bb)]['previous'][_0x27d4b3(0x1b8)];this[_0x27d4b3(0x1bb)][_0x27d4b3(0x294)]=_0x405602;if(this[_0x27d4b3(0x266)])await this[_0x27d4b3(0x249)]('candidate-recovery');this[_0x27d4b3(0x1bb)][_0x27d4b3(0x15d)]=![],this[_0x27d4b3(0x1fa)](),await this[_0x27d4b3(0x1e2)](_0x405602,_0xd4bacc[_0x27d4b3(0x28c)]),await this[_0x27d4b3(0x25a)](_0xfc1d00);const _0x375dbd={};_0x375dbd['code']=_0x27d4b3(0x251);if(this[_0x27d4b3(0x173)]!==_0xd4bacc[_0x27d4b3(0x173)]||this[_0x27d4b3(0x2a3)]!==_0xd4bacc['catalogHash'])throw Object[_0x27d4b3(0x1c7)](new Error(_0x27d4b3(0x21c)),_0x375dbd);this[_0x27d4b3(0x1bb)][_0x27d4b3(0x15d)]=!![],this[_0x27d4b3(0x1fa)](),this['activation']=_0x27d4b3(0x17c);const _0x11c515={};return _0x11c515[_0x27d4b3(0x2a1)]=_0xd4bacc['transactionId'],this[_0x27d4b3(0x1da)](_0x11c515),{'status':_0x27d4b3(0x1ef),...this[_0x27d4b3(0x27d)]()};})());try{return await this[_0x3c8814(0x14e)];}finally{this[_0x3c8814(0x14e)]=null;}}async[_0x4cfb3f(0x19f)](){const _0x5ee5e9=_0x4cfb3f,_0x291fcf={};return _0x291fcf['status']=_0x5ee5e9(0x28e),_0x291fcf[_0x5ee5e9(0x1ca)]=_0x5ee5e9(0x203),_0x291fcf;}['childClosed'](_0x203fca,_0x1492e1,_0x522bb5){const _0x181e40=_0x4cfb3f;if(this[_0x181e40(0x266)]!==_0x203fca)return;_0x203fca[_0x181e40(0x28d)]=!![];const _0x4b0d9b={};_0x4b0d9b[_0x181e40(0x1ca)]=_0x181e40(0x19d),_0x203fca['bootReject']?.(Object[_0x181e40(0x1c7)](new Error(_0x181e40(0x1ee)),_0x4b0d9b));for(const [_0x30be90]of this['pending']){try{const _0x2f1c64={};_0x2f1c64[_0x181e40(0x1ca)]=-0x7d02,_0x2f1c64[_0x181e40(0x204)]=_0x181e40(0x242),this[_0x181e40(0x216)]({'jsonrpc':_0x181e40(0x240),'id':JSON['parse'](_0x30be90),'error':_0x2f1c64});}catch{}}this[_0x181e40(0x1eb)]['clear'](),this[_0x181e40(0x266)]=null;if(!this[_0x181e40(0x14e)]&&!this[_0x181e40(0x27a)]){this[_0x181e40(0x29c)]=null,this[_0x181e40(0x21a)]=![],this[_0x181e40(0x241)]=_0x181e40(0x28e),this['admissionClosed']=!![];const _0x4615a5={};_0x4615a5[_0x181e40(0x26f)]=_0x522bb5||_0x1492e1||_0x181e40(0x291),this[_0x181e40(0x1da)](_0x4615a5);}}[_0x4cfb3f(0x216)](_0xfff995){const _0x2aef8a=_0x4cfb3f;this[_0x2aef8a(0x217)][_0x2aef8a(0x179)](JSON[_0x2aef8a(0x168)](_0xfff995)+'\x0a');}async[_0x4cfb3f(0x1dc)](_0x4b0431='host-eof'){const _0x4d6d9f=_0x4cfb3f;if(this['closed'])return;if(this[_0x4d6d9f(0x24f)])return this[_0x4d6d9f(0x24f)];this[_0x4d6d9f(0x1a3)]=!![],clearTimeout(this[_0x4d6d9f(0x210)]),this[_0x4d6d9f(0x24f)]=((async()=>{const _0xde8d3d=_0x4d6d9f;try{if(this[_0xde8d3d(0x266)])await this['stopChild'](_0x4b0431);closeMember(this[_0xde8d3d(0x193)],this[_0xde8d3d(0x263)],process[_0xde8d3d(0x262)],!![]),this['stopped']=!![],this[_0xde8d3d(0x258)]=_0x4b0431,require('./registration-closure')[_0xde8d3d(0x1e6)](this),await new Promise(_0x5ef885=>this[_0xde8d3d(0x156)]?.['close'](_0x5ef885)||_0x5ef885()),this[_0xde8d3d(0x241)]=_0xde8d3d(0x22f);const _0x4f0e27={};_0x4f0e27[_0xde8d3d(0x26f)]=_0x4b0431,this[_0xde8d3d(0x1da)](_0x4f0e27);try{fs[_0xde8d3d(0x260)](this['secretPath']);}catch{}if(process[_0xde8d3d(0x292)]!==_0xde8d3d(0x231))try{fs[_0xde8d3d(0x260)](this['endpoint']);}catch{}this[_0xde8d3d(0x28d)]=!![];}catch(_0x4c1745){this[_0xde8d3d(0x241)]=_0xde8d3d(0x1b1);const _0x48c64a={};_0x48c64a[_0xde8d3d(0x26f)]=_0x4b0431,_0x48c64a[_0xde8d3d(0x238)]=_0x4c1745[_0xde8d3d(0x1ca)]||_0xde8d3d(0x237),this[_0xde8d3d(0x1da)](_0x48c64a);throw _0x4c1745;}})());try{return await this[_0x4d6d9f(0x24f)];}finally{this[_0x4d6d9f(0x24f)]=null;}}}const _0x5a7025={};_0x5a7025[_0x4cfb3f(0x153)]=ConnectionSupervisor,module[_0x4cfb3f(0x1d3)]=_0x5a7025;function _0x46aa(){const _0x1d529f=['CMvJzwL2zuHVC3q','C3vWzxj2AxnVCLbPza','uhjLDMLVDxmGCNvUDgLTzsbTDxn0ihn0B3aGyMvMB3jLihjLC291CMnLCYbJAgfUz2u','CgLWzwXPBMvFy2HLy2TWB2LUDa','Ag9VAY1JB250zxH0','CMvZDwX0','CMvJDxjZAxzL','lNrYyw5Zywn0Aw9UlMPZB24','CNvUDgLTzvjVB3q','CMvIAw5Kv29YA3nWywnL','B3bLBLn5BMm','CMfUzg9Tvvvjra','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','y2fUzgLKyxrLugf0Aa','D2LUmZi','zgvZDhjVEq','Dg9VBhmVBgLZDa','BM9KztPUzxq','C2v0','zMXHzW','q0HjterFu1rpuf9vtKnptKzjuK1fra','yMXVy2TLCG','D29YA3nWywnLrM9SzgvYCW','zxjYB3i','mty5odG0ovjcsxzkzq','Aw5KzxHpzG','lI4Vy29Yzs9VD25Lzc1SB2nR','BM9KztPWyxrO','uhjLDMLVDxmGCMvZB3vYy2vZihDLCMuGBM90ihjLC3rVCMvK','mI4W','ywn0AxzHDgLVBG','qvbux1jvtLrjtuvFt1vuq09nrv9vtKTot1DooIbJAgLSzcbJBg9ZzwqGywz0zxiGCMvXDwvZDcbKzwXPDMvYEq','CMvQzwn0','Dg1WzgLY','ChjLCgfYzs1Jyw5KAwrHDgu','neDxt3jzEq','CMvHzhK','y29UDhjVBenHCgfIAwXPDgLLCW','C3rVCenOAwXK','CMvXDwvZDenOAwXK','q0HjterFsu5jveLbteLArv9gquLmruq','mtqXmtuZnKzvt29Aua','DhjHBNnWB3j0','zxHWBgLJAxrxB3jRC3bHy2u','y2XVC2LUzW','yxjNDw1LBNrZ','q0foreLeqvrfx1rvueXfx01ju01bveni','y3jLyxrLu2vYDMvY','DMvYC2LVBG','u1Djvenix0zbsuXfra','AxnZDwuTy29UDgv4Da','DhjPBq','CNvUDgLTzq','y2XVC2vszwfZB24','lMfNzw50CY9YDw50Aw1Ll2nVBM5Ly3rPB25Z','Aw5PDgLHBgL6zunHBMrPzgf0zq','CMvXDwvZDc1ZDg9W','C3rHDhvZ','BwTKAxjtEw5J','Bwf4','y29UBMvJDgLUzW','Dw5SAw5Ru3LUyW','y2HPBgrdBg9Zzwq','CgLK','y29UBMvJDgLVBKLK','Bwv0Ag9K','C2vZC2LVBL9IB290C3rYyxa','y2HPBgq','AwrLBNrPDhK','yxb0lwnVBNrYB2WT','CMvSzwfZzxm','D29YA3nWywnLlxjLyM91BMq','uKvtt1vsq0vFuK9mtf9gt1jxqvjex1jfuvvjuKve','q2HPBgqGC2H1DgrVD24GD2fZig5VDcbJB25MAxjTzwq','BM9KztP1CMW','C29Tzq','C3rVCfjLyxnVBG','qunusvzbveLptL9ot1rFufjfuefsruq','CMvUyw1Lu3LUyW','zMLSzvvstfrVugf0Aa','Cgf1C2u','otG3m3zPtwrduq','zgvSzxrL','ywn0AxzHDgLVBKv2AwrLBMnL','y2HPBgrfBNzPCM9UBwvUDa','CMvZDg9Yzs1WCMv2Aw91CW','CMvZB2X2zq','C3rVChbLza','C3jJl2LUC3rHBgXLCI9YDw50Aw1LlwnOAwXKlMPZ','r0vorvjbveLptL9srunpvKvswv9nsvnnqvrdsa','y2fUzgLKyxrLvhvWBgu','y2HPBgrqAwq','yM9VDfjLC29SDMu','yxr0zw1WDeLK','q09otKvdveLptL9ot1rFufjfuefsruq','uNvUDgLTzsbYzwfKAw5LC3mGDhvWBguGzg9LCYbUB3qGBwf0y2GGy2fUzgLKyxrL','y2HHBgXLBMDL','BM9KztPJAgLSzf9WCM9JzxnZ','AxbJ','q29TBwL0DgvKigDLBMvYyxrPB24GCMvXDwLYzxmGCM9SBcbMB3j3yxjK','DxrMoa','CM9VDfbHDgG','y2fWDhvYzvjLz2LZDhjHDgLVBNm','B3v0Chv0rgvJB2rLCG','ywXSB3DLza','z2vUzxjHDgLVBG','y2XVC2vK','CMvJB25Uzwn0lxjLCxvPCMvK','AxnbCNjHEq','Cgf0Aa','y2HPBgqTy2XVC2vK','CgXHDgzVCM0','A2LSBa','CMvSzwfZzq','yM91BMq','lMfNzw50CW','CMvJB3zLCKnHBMrPzgf0zq','C2fMzs1IB3vUzgfYEq','y29UDhjVBenHBMrPzgf0zq','y29TBwL0DgvKvhjHBNnHy3rPB24','CMvHC29U','Aw5PDgLHBgL6zq','q0HjterFvu5bvKfjtefcteu','ntm0meThDgz1Ea','yM91BMrqAxbLBgLUzq','BMfTzq','ChjLCgfYzwruCMfUC2fJDgLVBG','lI9JB25Uzwn0Aw9UlwfJDgL2yxrPB24','Dg9VBenHDgfSB2DiyxnO','DgfYz2v0rgLNzxn0','lMPZB24','DhjHBNnPDgLVBG','q0HjterFt1DorvjtseLqx1vos05pv04','mZC5mduYmxbywLz5AG','zxbVy2G','C3rKAw4','q29UBMvJDgLVBLn1CgvYDMLZB3i','yxb0lw1JCc0','BgvUz3rO','BgLZDgvUzxi','Aw5WDxq','C3rVCfjLCxvLC3rLza','DxbKyxrLlxrYyw5Zywn0Aw9UlMPZB24','BMf0AxzLq2fSBgvY','lI4Vy29Yzs9PCgmTzw52zwXVCgu','Dw5Yzwy','ChjLCgfYzwq','C2v0lwDLBMvYyxrPB24','ywn0AxzHDgu','zMLUzgLUzY1YzxnVBhv0Aw9U','ChjLCgfYzq','C2vUza','Bw9Kzq','qurnsvntsu9ox0nptKzmsunu','Aw5JBhvKzxm','q2fUzgLKyxrLihjLywrPBMvZCYbPCYbUBYbSB25NzxiGDMfSAwq','Dg9tDhjPBMC','C3rYAw5NAwz5','D2fPDfnLy29Uzhm','uNvUDgLTzsbJAgLSzcbZDgfYDhvWihrPBwvKig91Da','BM9KztPJCNLWDg8','q29UBMvJDgLVBIb3B3jRC3bHy2uGy2fUBM90ignOyw5NzsbHzNrLCIbIAw5KAw5N','ywjVCNq','CMvWB3j0','C3rVChbLzfrYyw5Zywn0Aw9U','CMvXDwvZDeLK','ywn0AxzL','CMvZDg9Yzq','CMvZB3vYy2veAwDLC3q','z2v0','DgHLBG','C2TPBgXFBg9Hza','r0vorvjbveLptL9vtKnptKzjuK1fra','BM90AwzPy2f0Aw9UCY9PBML0AwfSAxPLza','D3jPDgu','C2fMzujVDw5Kyxj5','Ag9ZDfnLC3nPB25jza','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGAxmGzNjVEMvU','AgfZ','zw5K','zgLNzxn0','D29YA3nWywnLlwjVDw5K','zgf0yq','q0fmtevsx0nptLrfwfrFvu5bvKfjtefcteu','y29UBMvJDgLVBNm','v09ss0vsx1nut1bFvu5dt05gsvjnruq','DxbKyxrLqMXVy2TLCG','y29UBMvJDgvK','y29UC3vTzs1YzxbVCNq','ChjLDMLVDxm','AM9PBG','D29YA3nWywnLrNjVBuLUAxrPywXPEMu','yxv0AgvUDgLJyxrLzc1SAxzLlxbYB2nLC3m','y29UDhjVBa','CMvJzwL2zunOAwXK','y29TBwL0r2vUzxjHDgLVBG','q2fUzgLKyxrLigLZig5VDcbWCMvWyxjLza','uMvXDwvZDcbjrcbPCYbZDgLSBcbPBIbMBgLNAhq','CMvZDw1L','D29YA3nWywnL','C2v0vgLTzw91Da','ntyZmJCXohLIBg9Isq','yM9VDgLUzW','yM9VDfjLAMvJDa','ChjVyMvxB3jRC3bHy2vdB25Uzwn0Aw9UCW','D29YA3nWywnLlxjVBgXIywnR','z2f0zxDHEujPBMrPBMC','ChvIBgLJs2v5','A2LUza','q0HjterFq0Xpu0ve','lI91CgrHDguTzxHLy3v0B3i','C3DPDgnOuNvUDgLTzq','ANnVBNjWyW','z2f0zxDHEs1IAw5KAw5N','y2HHBMDLzef0','ywrTAxnZAw9Uq2XVC2vK','Agv4','C3rVCc1MB3iTDxbKyxrL','AxnozxDnDxrHDgLVBG','DgvZDa','ywrTAxnZAw9UlwnOzwnR','C2vJCMv0ugf0Aa','y2f0y2G','zw5KCg9PBNq','C2vJCMv0','BwfJ','q0HjterFuKvbreLorvntx01ju01bveni','zNjVEMvU','CMvSzwfZzunVBw1PDhrLzezLBMnL','BgvNywn5lw93BMvYC2HPCc11BNzLCMLMAwvK','t1DorvjtseLqx1vos05pv04','C3rKzxjY','zxHWzwn0zwrcB290','C2HHmJu2','uNvUDgLTzsbJAgLSzcbJB250CM9SihrPBwvKig91Da','B25Jzq','C3rHDgu','CMvZB3vYy2uTD2fPDa','C3rHCNrZv2L0Aa','y2fUzgLKyxrL','CgfYC2u','Dg9VBhmVy2fSBa','uNvUDgLTzsbJAgLSzcbPCYb1BMf2ywLSywjSzq','q2fUzgLKyxrLig9WzxjHDgLVBIbOyxmGysbZDgfSzsb3B3jRC3bHy2uGzxbVy2G','Aw5WDxrcDwzMzxi','uKvdt05orunux1jfuvvjuKve','CMvZDg9Yzwq','zxHLy1bHDgG','Dg9VBa','C3rHCNq','y2XVC3vYzvjLz2LZDhjHDgLVBNm','yxnZAwDU','q0foreLeqvrfx05pvf9srufewq','DgfYz2v0vMvYC2LVBG','y29Kzq','y3jLyxrLsg1HyW','Dg9mB3DLCKnHC2u','DxjP','BwnWx2fNzw50x2HLywX0Aa','y2XVC2vtEw5J','DxnLze5VBMnLCW','qvbux1jfq09otKvdvf9srvfvsvjfrdOGCNvUDgLTzsbJAgLSzcbZDg9WCgvKoYbPBML0AwfSAxPLigeGBMv3ie1ducbZzxnZAw9U','zhjHAw5PBMC','zxHWB3j0CW','nZaXnZy0me1js0HzCq','B3v0Chv0qNvMzMvY','DhLWzq','Aw52B2nHDgLVBKLK','DxbKyxrL','B3DUzxjZAgLWlxvUA25VD24','CMvJB3jK','uKvrvuvtvf9jrf9dt05gteLdva','y2XVC2u','lI9YzwDPC3rYyxrPB24Ty2XVC3vYzq','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','y2HPBgrdB250CM9Sq2fWywjPBgL0AwvZ','q0HjterFuLbdx1rjtuvpvvq','CMvXDwvZDfjWyW','yM9VDa','CMvJB25JAwXLlxzLCMLMAwnHDgLVBG','CgfYyw1Z','zMLSztO','CMvJB3jKuMvNAxn0CMf0Aw9Uq2XVC3vYzq','nZbhrevSyuO','mJu3meTgCvbSEq','B3zLCNnPEMuTAg9ZDc1TzxnZywDL','zhjHAw4','CgvUzgLUzW','lMTLEq','CM9VDfvYAq','uNvUDgLTzsbJAgLSzcbJBg9Zzwq','y2fUzgLKyxrLlxjLywr5','CMvHBhbHDgHtEw5J','CgLWzq','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGywrTAxnZAw9UigLZignSB3nLzcbMB3iGCNvUDgLTzsbZD2L0y2G','zMfPBgvK','y29UDgv4Df9SB2fK','D2fPDgLUzW','C2H1DgrVD24','lI4Vy29Yzs93B3jRC3bHy2uTz2vUzxjHDgLVBG','Dg9VBhm','C2L6zq','CgvYC2LZDenHBMrPzgf0zq','zgLYBMfTzq','C2XPy2u','uNvUDgLTzsbsuemGDgLTzwqGB3v0','xfWUxhbPCgvCyxb0lw1JCc0','CgLWzwXPBMvFC3rHDhvZ','DhjHBNnHy3rPB25jza','CMvJzwLWDfbHDgG','yM9VDc1LCNjVCG','v09ss1nqqunfx1rsqu5tqunusu9ox1jfuvvjuKve','BwvZC2fNzq','uhjLCgfYzwqGy2fUzgLKyxrLihr1CgXLignOyw5Nzwq','vfjbtLnjveLptL9jtL9quK9huKvtuW','BM9Uy2u','CMvJzwL2zunVBNrYB2W','BM9KztPMCW','ru5pru5u','Bw9KzwXFBgLZDa','AgfUzgXLsg9ZDe1LC3nHz2u','CMvXDwvZDa','q2fUzgLKyxrLigLUAxrPywXPEMf0Aw9UigzHAwXLza','Dg9ju09tDhjPBMC','zxHLy3v0B3juAw1LCG','y3jLyxrLsgfZAa','B3bLBG','BM9KztPVCW','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','yxb0lxn1CgvYDMLZB3iT','D3jPDgviB3n0','C3rKB3v0','zNn5BMntEw5J','CMvZB3vYy2vZlwfWCgXPzwq','Aw5PDgLHBgL6zwq','D3jPDgvgAwXLu3LUyW','q2fUzgLKyxrLihjLC291CMnLCYbVCIbJyxrHBg9NigrVig5VDcbTyxrJAcb0CMfUC2fJDgLVBG','uhjLDMLVDxmGCNvUDgLTzsbVD25LCNnOAxaGD2fZig5VDcbYzwnVDMvYzwq','q0HjterFrvHjvf9usu1ft1vu','Aw5WDxrdAgfPBG','q2fUzgLKyxrLihrHCMDLDcbKB2vZig5VDcbTyxrJAcb0CMfUC2fJDgLVBG','u3vWzxj2AxnVCIbYzxf1zxn0igzHAwXLza','lNnLy3jLDhm'];_0x46aa=function(){return _0x1d529f;};return _0x46aa();}
|
|
1
|
+
'use strict';const _0x176370=_0x1f3c;(function(_0x2242a5,_0x142fd0){const _0x414397=_0x1f3c,_0x95b826=_0x2242a5();while(!![]){try{const _0x4db1b0=-parseInt(_0x414397(0x243))/0x1+-parseInt(_0x414397(0x212))/0x2+parseInt(_0x414397(0x15d))/0x3*(-parseInt(_0x414397(0x280))/0x4)+-parseInt(_0x414397(0x247))/0x5+-parseInt(_0x414397(0x1e0))/0x6*(parseInt(_0x414397(0x2b0))/0x7)+parseInt(_0x414397(0x1b2))/0x8+parseInt(_0x414397(0x29e))/0x9*(parseInt(_0x414397(0x1dd))/0xa);if(_0x4db1b0===_0x142fd0)break;else _0x95b826['push'](_0x95b826['shift']());}catch(_0x5b385e){_0x95b826['push'](_0x95b826['shift']());}}}(_0x3095,0xd8e5d));function _0x3095(){const _0x17e392=['DxbKyxrL','Cgf0Aa','qvbux1vqrefurv9qru5esu5hoIbUzxCGy29UBMvJDgLVBIbPCYb3ywL0Aw5NigzVCIb3B3jRC3bHy2uGCMvJB3zLCNK','AgfZ','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','y29UDhjVBenHBMrPzgf0zq','q2fUzgLKyxrLig9WzxjHDgLVBIbOyxmGysbZDgfSzsb3B3jRC3bHy2uGzxbVy2G','zxHLy1bHDgG','CMvJB25Uzwn0lxjLCxvPCMvK','ChjLDMLVDxm','DxjP','q0HjterFq09ovfjptf9usu1ft1vu','ywn0AxzL','yxjNDw1LBNrZ','CMvHzhK','q0HjterFu1rbuLrFveLnru9vva','Ag9ZDfnLC3nPB25jza','zxbVy2G','yxb0t3DUzxjZAgLW','lMfNzw50CY9YDw50Aw1Ll2nVBM5Ly3rPB25Z','Dg1WzgLY','zgvSzxrL','q0fmtevsx0nptLrfwfrFvu5bvKfjtefcteu','CgLK','ChjLDMLVDxmTCMvZDg9Yzwq','lNrYyw5Zywn0Aw9UlMPZB24','y2fUzgLKyxrL','yM9VDfjLC29SDMu','y29TBwL0DgvKvhjHBNnHy3rPB24','CgvUzgLUzY1ZywzLlwjVDw5Kyxj5','CNvUDgLTzvjVB3q','t1DorvjtseLqx1vos05pv04','y2HHBgXLBMDL','D3jPDgviB3n0','uKvtt1vsq0vFuK9mtejbq0TFvu5dt05gsvjnruq','DhjHBNnHy3rPB25jza','D2fPDgLUzW','uNvUDgLTzsbsuemGDgLTzwqGB3v0','q2fUzgLKyxrLigLUAxrPywXPEMf0Aw9UigzHAwXLza','BwvZC2fNzq','mJK2otC3u0PdCvv6','lI4Vy29Yzs93B3jRC3bHy2uTz2vUzxjHDgLVBG','BM9KztPWyxrO','CMvSzwfZzxm','mZm1ody1zvPwsMTN','q2HPBgqGB3DUzxjZAgLWigLZihvUA25VD24','y2fUzgLKyxrLugf0Aa','CMvXDwLYzxnqCM9JzxnZrgLZCgf0y2G','DgfYz2v0vMvYC2LVBG','ChjLCgfYzs1Jyw5KAwrHDgu','q2fUzgLKyxrLihjLywrPBMvZCYbPCYbUBYbSB25NzxiGDMfSAwq','CMvXDwvZDenOAwXK','y2HPBgrqAwq','u3vWzxj2AxnVCIbYzxf1zxn0igzHAwXLza','BM9KztPUzxq','q0HjterFq0Xpu0ve','y29UBMvJDgLVBKLK','zw5K','zgvZDhjVEq','C3rVCc1MB3iTDxbKyxrL','yM9VDgLUzW','zw5KCg9PBNq','zgf0yq','BwnWx2fNzw50x2HLywX0Aa','CgfYyw1Z','yM91BMq','q29TBwL0DgvKihj1BNrPBwuGAwrLBNrPDhKGzgLMzMvYCW','r0furvDbwv9csu5esu5hx1jfuvvjuKve','C3rVChbLza','BM9KztPMCW','ywrTAxnZAw9UlwnOzwnR','yNL0zuXLBMD0Aa','zNjVEMvU','CMvJzwL2zunVBNrYB2W','yM91BMrqAxbLBgLUzq','ChjLCgfYzwruCMfUC2fJDgLVBG','CMvSzwfZzq','CMfUzg9Tvvvjra','zMXHzW','ru5pru5u','BgLZDgvUzxi','DgvZDa','y29TBwL0r2vUzxjHDgLVBG','Dg9ju09tDhjPBMC','C2L6zq','yM9VDa','CMvZDg9Yzwq','AM9PBG','Dw5HDMfPBgfIBgu','q0HjterFuLbdx1rjtuvpvvq','C3rKzxjY','y29UC3vTzs1YzxbVCNq','CMvHC29U','zgv0ywLS','C3rHCNrqzw5KAw5NrxHLy3v0B3i','CgLWzq','lNnLy3jLDhm','zxHLy3v0B3juAw1LCG','ChjVyMvxB3jRC3bHy2vdB25Uzwn0Aw9UCW','zxHWBgLJAxrxB3jRC3bHy2u','CgvUzgLUzW','mZyXnJq0q3zgu3D6','zgLZy29UBMvJDa','CMvJB3jKuMvNAxn0CMf0Aw9Uq2XVC3vYzq','yxb0lw1JCc0','CMvJB3zLCKnHBMrPzgf0zq','Aw5PDgLHBgL6zunHBMrPzgf0zq','ywn0AxzHDgu','CMvJB25JAwXLlxzLCMLMAwnHDgLVBG','AxbJ','q29UBMvJDgLVBIb3B3jRC3bHy2uGy2fUBM90ignOyw5NzsbHzNrLCIbIAw5KAw5N','CMvXDwvZDc1ZDg9W','C3rVCenOAwXK','D2f0y2Hqzw5KAw5NrxHLy3v0B3i','y2HPBgrdBg9Zzwq','y2f0ywXVz0HHC2G','Bwf4','B3DUzxjZAgLWlxvUA25VD24','uhjLDMLVDxmGCNvUDgLTzsbVD25LCNnOAxaGD2fZig5VDcbYzwnVDMvYzwq','CgLWzwXPBMvFy2HLy2TWB2LUDa','rvHfq1vut1jFu1rbuLrFrKfjteve','q2fUzgLKyxrLihrHCMDLDcbKB2vZig5VDcbTyxrJAcb0CMfUC2fJDgLVBG','CMvHzezPBgvtEw5J','CMvMCMvZAeLUDMvUDg9YEq','AwrLBNrPDhK','ywjVCNq','qvbux1nvuevsvKLtt1jFq0Hjteq','C2TPBgXFBg9Hza','CMvJzwLWDfbHDgG','D29YA3nWywnLlxjVBgXIywnR','CMvUyw1Lu3LUyW','mta1nJyZnMPxyvjisa','CMv2Awv3','D29YA3nWywnLrNjVBuLUAxrPywXPEMu','DxnLze5VBMnLCW','DxbKyxrLqMXVy2TLCG','DhjPBq','CgvYC2LZDenHBMrPzgf0zq','BwLU','Bwv0Ag9K','Dg9VBhmVBgLZDa','Dg9mB3DLCKnHC2u','DgLJA2v0','Aw5PDgLHBgL6zwq','y3jLyxrLu2vYDMvY','Aw52B2nHDgLVBKLK','lMfNzw50CW','zxHWzwn0zwrcB290','qurnsvntsu9ox0nptKzmsunu','mZvpvMvfEui','D3jPDgu','uKvrvuvtvf9jrf9dt05gteLdva','C3rKB3v0','ugfYC2uGzxjYB3i','D2LUmZi','Dg9VBhmVy2fSBa','CMvNAxn0zxjLze93BMvYC1n0B3bWzwq','y3jLyxrLsg1HyW','y2XVC2vK','ANnVBNjWyW','CMvZB3vYy2veAwDLC3q','y29UDgv4Df9SB2fK','lNrTCa','tK9erv9pufrjt05t','q09otKvdveLptL9ot1rFufjfuefsruq','Aw5PDgLHBgL6zq','mI4W','yxv0AgvUDgLJyxrLzc1SAxzLlxbYB2nLC3m','uhjLDMLVDxmGC3rVCcbLDMLKzw5JzsbPCYbTAxnZAw5N','D3jPDgvgAwXLu3LUyW','A2LUza','yMfJA2vUza','Aw5WDxrdAgfPBG','C3rKAw4','Dg9VBa','CMfUzg9TqNL0zxm','Aw5WDxq','B25Jzq','lI9JB25Uzwn0Aw9UlwfJDgL2yxrPB24','Aw5WDxrcDwzMzxi','DgHLBG','u1Djvenix0zbsuXfra','C3vWzxj2AxnVCLbPza','CMvJDxjZAxzL','DhLWzq','y29UBMvJDgvK','C2H1DgrVD25fDMLKzw5Jzq','BgvUz3rO','yxb0lxn1CgvYDMLZB3iT','mZLLtujwque','q0foreLeqvrfx1rvueXfx01ju01bveni','lI9YDw50Aw1Llxn0B3jL','AxnozxDnDxrHDgLVBG','y29UDhjVBenHCgfIAwXPDgLLCW','B3v0Chv0qNvMzMvY','yxr0zw1WDeLK','y3DK','CMvIAw5Kv29YA3nWywnL','y2HHBMDLzef0','y2f0y2G','CMvZDw1L','CM9VDfvYAq','uhjLCgfYzwqGy2fUzgLKyxrLihr1CgXLignOyw5Nzwq','y2XVC2vtEw5J','uMvXDwvZDcbjrcbPCYbZDgLSBcbPBIbMBgLNAhq','uNvUDgLTzsbJAgLSzcbJBg9Zzwq','r0vorvjbveLptL9vtKnptKzjuK1fra','y2XVC2u','lI91CgrHDguTzxHLy3v0B3i','zxjYB3i','y2XVC3vYzvjLz2LZDhjHDgLVBNm','y3jLyxrLsgfZAa','Dg9VBenHDgfSB2DiyxnO','v09ss0vsx1nut1bFvu5dt05gsvjnruq','yM9VDfjLAMvJDa','C3rVCenVzgu','C3rHCNrZv2L0Aa','y29UBMvJDgLVBNm','zgLYBMfTzq','y2fUzgLKyxrLvhvWBgu','C2v0','Agv4','BgLZDgvU','C2fMzs1IB3vUzgfYEq','lMTLEq','C2XPy2u','CMvZB2X2zq','y2HPBgqTy2XVC2vK','CMvHzhKTBMv4Dc1JB25Uzwn0Aw9U','y2fUzgLKyxrLlwjVB3qTzMfPBgvK','z2v0','lNnVy2S','v09ss1nqqunfx1rsqu5tqunusu9ox1jfuvvjuKve','uNvUDgLTzsbJAgLSzcbJB250CM9SihrPBwvKig91Da','y29TBwL0lwnHBMrPzgf0zq','BM9Uy2u','DMvYC2LVBG','B3b0Aw9UCW','BM9KztP1CMW','C3rYAw5NAwz5','y2fUzgLKyxrLlxjLy292zxj5','Dw5SAw5Ru3LUyW','C3DPDgnOuNvUDgLTzq','CMvMCMvZAa','qurnsvntsu9ox1jftevbu0vFrKfjteve','B3bLBG','ywn0Aw9U','Dg9tDhjPBMC','Dw5Yzwy','BM9KztPJAgLSzf9WCM9JzxnZ','C2vYDMLUzW','ufjpq0vtu19uuKvfx1nut1bFvu5dt05gsvjnruq6ihbYAw9Yihj1BNrPBwuGB3DUzxjZAgLWihjLCxvPCMvZihjLy292zxj5','CMvZB3vYy2uTD2fPDa','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGywrTAxnZAw9UigLZignSB3nLzcbMB3iGCNvUDgLTzsbZD2L0y2G','lI4Vy29Yzs9VD25Lzc1SB2nR','Aw5KzxHpzG','zMLSzvvstfrVugf0Aa','ywrTAxnZAw9Uq2XVC2vK','B3bLCMf0Aw9UC0vUywjSzwq','lI4Vy29Yzs9VD25Lzc1WCM9JzxnZ','y2HPBgrfBNzPCM9UBwvUDa','DxbKyxrLlxrYyw5Zywn0Aw9UlMPZB24','BMfTzq','zw5HyMXLlw93BMvKlw9WzxjHDgLVBNm','y2HPBgq','C29Tzq','y2XVC2LUzW','q0HjterFvu5bvKfjtefcteu','Bw9Kzq','y29UDhjVBa','qunusvzbveLptL9ot1rFufjfuefsruq','qvbux1vqrefurv9qru5esu5hoIb3B3jRC3bHy2uGAxmGzNjVEMvU','CMvZDwX0','DxrMoa','mta1nJiZotjOz0rPrgO','q0HjterFu1rpuf9vtKnptKzjuK1fra','q0HjterFrvHjvf9usu1ft1vu','CMvWB3j0','B3bLCMf0Aw9Uqwn0AxzHDgLVBG','ChjLCgfYzq','D29YA3nWywnLlxvWzgf0zq','CgLUzW','C3rHDgu','C2vJCMv0ugf0Aa','uhjLDMLVDxmGCMvZB3vYy2vZihDLCMuGBM90ihjLC3rVCMvK','CgLWzwXPBMvFC3rHDhvZ','zgLNzxn0','uhjLDMLVDxmGCNvUDgLTzsbTDxn0ihn0B3aGyMvMB3jLihjLC291CMnLCYbJAgfUz2u','C2fMzujVDw5Kyxj5','Bw9KzwXFBgLZDa','lI4Vy29Yzs9UB2rLlxzLCNnPB24','Aw5JBhvKzxm','CMvHBhbHDgHtEw5J','Cgf1C2u','q0foreLeqvrfx0nptLrst0XFrKfjteve','C2H1DgrVD24','C2H1DgrVD25by2TUB3DSzwrNzwq','yMXVy2TLCG','B3bLCMf0Aw9UCY1LBMfIBgvK','zMLUzgLUzY1YzxnVBhv0Aw9U','ywn0AxzHDgLVBKv2AwrLBMnL','Ag9ZDc1LB2y','q0HjterFuKvbreLorvntx01ju01bveni','DhjHBNnPDgLVBG','ChjLCgfYzwq','DgfYz2v0rgLNzxn0','yMXVy2TLCNm','C3rVCfjLyxnVBG','C2vUza','qvbux1jvtLrjtuvFt1vuq09nrv9vtKTot1DooIbJAgLSzcbJBg9ZzwqGywz0zxiGCMvXDwvZDcbKzwXPDMvYEq','uNvUDgLTzsbJAgLSzcbZDgfYDhvWihrPBwvKig91Da','z2f0zxDHEujPBMrPBMC','zMfPBgvK','D29YA3nWywnLlwjVDw5K','lI4Vy29Yzs9PCgmTzw52zwXVCgu','CMvQzwn0','BM9KztPJCNLWDg8','mJeWqMnWqLDN','C3jJl2LUC3rHBgXLCI9YDw50Aw1LlwnOAwXKlMPZ','q29TBwL0DgvKigDLBMvYyxrPB24GCMvXDwLYzxmGCM9SBcbMB3j3yxjK','otm2otmWsLrkC3DP','yxb0lwnVBNrYB2WT','xfWUxhbPCgvCyxb0lw1JCc0','CNvUDgLTzq','C3rHDhvZ','uKvdt05orunux1jfuvvjuKve','D29YA3nWywnL','C2vJCMv0','CMvXDwvZDeLK','ChvIBgLJs2v5','y29Kzq','q0HjterFt1DorvjtseLqx1vos05pv04','qvbux0nptK5fq1rjt05Fsuq','BgvNywn5lw93BMvYC2HPCc11BNzLCMLMAwvK','C2vZC2LVBL9IB290C3rYyxa','CMvZDg9Yzs1WCMv2Aw91CW','q2fUzgLKyxrLigLZig5VDcbWCMvWyxjLza','z2vUzxjHDgLVBG','CgfYC2u','Dg9VBhm','uNvUDgLTzsbJAgLSzcbPCYb1BMf2ywLSywjSzq','B3v0Chv0rgvJB2rLCG','uMvNAxn0zxjLzcbVD25LCIbZAhv0zg93BIb3yxmGBM90ignVBMzPCM1Lza','BwTKAxjtEw5J','y2HPBgrdB250CM9Sq2fWywjPBgL0AwvZ','vfjbtLnjveLptL9jtL9quK9huKvtuW','v09ss1nqqunfx1jfq09wrvjzx1jfuvvjuKve','lI4Vy29Yzs9Hzg1PC3nPB24TzMvUy2u','AxntywzLsw50zwDLCG','zNn5BMntEw5J','B3bLBLn5BMm','y2fUzgLKyxrLlxjLywr5','r0vorvjbveLptL9srunpvKvswv9nsvnnqvrdsa','lI9YzwDPC3rYyxrPB24Ty2XVC3vYzq','zhjHAw4','BwfJ','zw5HyMXLt3DUzwrpCgvYyxrPB25Z','ywXSB3DLza','C2HHmJu2','y2XLyxi','CMvJzwL2zuHVC3q','ywn0AxzHDgLVBG','AxnbCNjHEq','CMvSzwfZzunVBw1PDhrLzezLBMnL','ufjpq0vtu19uuKvfx1nut1bFvu5dt05gsvjnruq','zhjHAw5PBMC','CMvJB3jK','D29YA3nWywnLrM9SzgvYCW','AgfUzgXLsg9ZDe1LC3nHz2u','z2f0zxDHEs1IAw5KAw5N','mte1ndiWngfdtw5yDa','Ag9VAY1JB250zxH0','CgXHDgzVCM0','zMLSztO','CMvXDwvZDfjWyW','yxnZAwDU','yM9VDc1LCNjVCG','CMvJzwL2zunOAwXK','AxnZDwuTy29UDgv4Da'];_0x3095=function(){return _0x17e392;};return _0x3095();}const fs=require(_0x176370(0x260)),os=require('node:os'),path=require(_0x176370(0x245)),crypto=require(_0x176370(0x1dc)),net=require(_0x176370(0x251)),{spawn}=require(_0x176370(0x199)),{StringDecoder}=require('node:string_decoder'),{captureOwnedChild,attachOwnedJob,stopOwnedChild}=require(_0x176370(0x1a3)),{verifyRelease}=require(_0x176370(0x15f)),{acquireRuntimeLock}=require(_0x176370(0x19e)),{readFence,changeFence,withAdmissionLock,saveLocked,finishOperation}=require(_0x176370(0x1fb)),{verifyEnvelope}=require(_0x176370(0x1da)),{registerMember,closeMember,readGeneration,projectGeneration,acknowledgeGeneration,joinServingGeneration}=require(_0x176370(0x244)),hash=_0x444f49=>crypto[_0x176370(0x173)](_0x176370(0x206))[_0x176370(0x21b)](_0x444f49)['digest'](_0x176370(0x17d)),atomic=(_0x139019,_0x104284)=>{const _0x1a3d50=_0x176370,_0x4454f3={};_0x4454f3[_0x1a3d50(0x157)]=!![],fs[_0x1a3d50(0x1f7)](path[_0x1a3d50(0x17a)](_0x139019),_0x4454f3);const _0x4036e5=_0x139019+'.'+crypto[_0x1a3d50(0x268)]()+_0x1a3d50(0x142),_0x7516cf=fs[_0x1a3d50(0x1fe)](_0x4036e5,'wx',0x180);try{fs[_0x1a3d50(0x149)](_0x7516cf,JSON[_0x1a3d50(0x18f)](_0x104284)),fs[_0x1a3d50(0x1fd)](_0x7516cf);}finally{fs[_0x1a3d50(0x16b)](_0x7516cf);}fs[_0x1a3d50(0x29d)](_0x4036e5,_0x139019);},same=(_0x4d9455,_0x9d96af)=>process[_0x176370(0x214)]===_0x176370(0x2b5)?_0x4d9455[_0x176370(0x2a8)]()===_0x9d96af[_0x176370(0x2a8)]():_0x4d9455===_0x9d96af,messageId=_0x4f9c8c=>JSON['stringify'](_0x4f9c8c),waitChildClosed=(_0x5781ad,_0x631ff6=0x1388)=>new Promise((_0x2bdc40,_0x26862c)=>{const _0x5bcbd4=_0x176370;if(_0x5781ad[_0x5bcbd4(0x13e)])return _0x2bdc40();const _0x199a48=setTimeout(()=>{const _0x137495=_0x5bcbd4;_0x5781ad['off'](_0x137495(0x16f),_0xdc406b);const _0x26e2ec={};_0x26e2ec[_0x137495(0x1ea)]=_0x137495(0x1b4),_0x26862c(Object[_0x137495(0x217)](new Error('Runtime\x20child\x20did\x20not\x20exit'),_0x26e2ec));},_0x631ff6),_0xdc406b=()=>{clearTimeout(_0x199a48),_0x2bdc40();};_0x5781ad['once'](_0x5bcbd4(0x16f),_0xdc406b);});class ConnectionSupervisor{constructor(_0x120f2d={}){const _0x4650ef=_0x176370;this['runtimeRoot']=fs[_0x4650ef(0x1c4)](_0x120f2d[_0x4650ef(0x239)]),this[_0x4650ef(0x267)]=fs[_0x4650ef(0x1c4)](_0x120f2d[_0x4650ef(0x267)]),this[_0x4650ef(0x1e9)]=_0x120f2d[_0x4650ef(0x1e9)],this[_0x4650ef(0x14d)]=_0x120f2d[_0x4650ef(0x14d)]||process['stdin'],this[_0x4650ef(0x2b3)]=_0x120f2d['stdout']||process[_0x4650ef(0x2b3)],this[_0x4650ef(0x275)]=_0x120f2d[_0x4650ef(0x275)]||process[_0x4650ef(0x275)],this[_0x4650ef(0x1e6)]=fs[_0x4650ef(0x1c4)](_0x120f2d[_0x4650ef(0x1e6)]||process[_0x4650ef(0x164)]()),this[_0x4650ef(0x27e)]=_0x120f2d[_0x4650ef(0x27e)]===!![],this[_0x4650ef(0x172)]=require('./registration-closure')['captureRegistrations'](this),this[_0x4650ef(0x1d7)]=_0x120f2d[_0x4650ef(0x1d7)]||null,this['childEnvironment']=_0x120f2d[_0x4650ef(0x1a4)]||{},this['connectionId']=_0x120f2d['connectionId']||crypto[_0x4650ef(0x268)](),this[_0x4650ef(0x1e7)]=crypto[_0x4650ef(0x14f)](0x20),this[_0x4650ef(0x2a1)]=new Set(),this[_0x4650ef(0x1f1)]=0x0,this['child']=null,this['identity']=null,this[_0x4650ef(0x27f)]=new Map(),this[_0x4650ef(0x1ad)]=new Map(),this[_0x4650ef(0x153)]='',this['inputChain']=Promise[_0x4650ef(0x182)](),this[_0x4650ef(0x162)]='',this[_0x4650ef(0x1f5)]=new StringDecoder('utf8'),this[_0x4650ef(0x145)]=null,this['initialized']=![],this['toolCatalogHash']=null,this['admissionClosed']=![],this[_0x4650ef(0x1cf)]=null,this['stopped']=![],this[_0x4650ef(0x209)]='connecting',this[_0x4650ef(0x235)]=null,this['endpoint']=process[_0x4650ef(0x214)]===_0x4650ef(0x2b5)?_0x4650ef(0x1e2)+hash(this['connectionId'])[_0x4650ef(0x181)](0x0,0x18):path[_0x4650ef(0x272)](os[_0x4650ef(0x22f)](),_0x4650ef(0x283)+hash(this[_0x4650ef(0x253)])[_0x4650ef(0x181)](0x0,0x18)+_0x4650ef(0x187));}get[_0x176370(0x29b)](){const _0x7ae84c=_0x176370;return path['join'](this[_0x7ae84c(0x1e6)],'.agents',_0x7ae84c(0x1e3),_0x7ae84c(0x179),this[_0x7ae84c(0x253)]+'.json');}get[_0x176370(0x1bb)](){const _0x3eff9f=_0x176370;return path[_0x3eff9f(0x272)](this[_0x3eff9f(0x1e6)],_0x3eff9f(0x2ad),_0x3eff9f(0x1e3),_0x3eff9f(0x179),_0x3eff9f(0x27b),this[_0x3eff9f(0x253)]+_0x3eff9f(0x180));}get[_0x176370(0x249)](){const _0x257f69=_0x176370;return path['join'](this[_0x257f69(0x1e6)],_0x257f69(0x22e),this[_0x257f69(0x253)]+_0x257f69(0x234));}[_0x176370(0x2a4)](){const _0x5e0309=_0x176370;atomic(this[_0x5e0309(0x249)],{'connectionId':this[_0x5e0309(0x253)],'supervisorPid':process['pid'],'workspace':this['workspace'],'runtimeRoot':this['runtimeRoot'],'candidate':this[_0x5e0309(0x235)]});}['recoverCandidate'](_0x566496){const _0x16f1e4=_0x176370;if(this[_0x16f1e4(0x235)])return;let _0x11f0c3;try{_0x11f0c3=JSON[_0x16f1e4(0x1f2)](fs[_0x16f1e4(0x295)](this[_0x16f1e4(0x249)],_0x16f1e4(0x1b1)));}catch(_0x163ef3){if(_0x163ef3['code']===_0x16f1e4(0x26a))return;throw _0x163ef3;}if(_0x11f0c3[_0x16f1e4(0x253)]!==this[_0x16f1e4(0x253)]||_0x11f0c3[_0x16f1e4(0x156)]!==process['pid']||!same(_0x11f0c3['workspace'],this[_0x16f1e4(0x1e6)])||!same(_0x11f0c3[_0x16f1e4(0x239)],this['runtimeRoot'])||_0x11f0c3['candidate']?.['transactionId']!==_0x566496)return;this[_0x16f1e4(0x235)]=_0x11f0c3[_0x16f1e4(0x235)];}[_0x176370(0x26d)](){const _0x56346f=_0x176370,_0x305125=joinServingGeneration(this[_0x56346f(0x1e6)],{'connectionId':this['connectionId'],'supervisorPid':process['pid'],'childPid':this[_0x56346f(0x1a8)]?.[_0x56346f(0x232)],'version':this[_0x56346f(0x297)][_0x56346f(0x18c)],'digest':this['identity'][_0x56346f(0x1be)],'resourceDigest':this[_0x56346f(0x140)]});this['generation']=_0x305125['generation'],projectGeneration(this[_0x56346f(0x239)],this[_0x56346f(0x1e6)],_0x305125);if(this[_0x56346f(0x1a8)]?.[_0x56346f(0x159)])this[_0x56346f(0x1a8)][_0x56346f(0x1d4)]({'type':'set-generation','generation':this[_0x56346f(0x1f1)]});this[_0x56346f(0x20e)]();}[_0x176370(0x20e)](_0xcecc74={}){const _0x402801=_0x176370;atomic(this[_0x402801(0x29b)],{'connectionId':this['connectionId'],'workspace':this[_0x402801(0x1e6)],'runtimeRoot':this[_0x402801(0x239)],'endpoint':this['endpoint'],'secretFile':this[_0x402801(0x1bb)],'supervisorPid':process[_0x402801(0x232)],'childPid':this['child']?.['pid']||null,'version':this[_0x402801(0x297)]?.[_0x402801(0x18c)]||null,'digest':this['identity']?.[_0x402801(0x1be)]||null,'resourceDigest':this[_0x402801(0x140)]||null,'generation':this[_0x402801(0x1f1)],'catalogHash':this[_0x402801(0x174)]||null,'supervisorProtocol':0x2,'shutdownEvidence':this[_0x402801(0x15a)]||null,'activation':this[_0x402801(0x209)],'serving':this['child']?.[_0x402801(0x229)]===!![]&&!this[_0x402801(0x25f)],'closed':this[_0x402801(0x25f)],'observedAt':new Date()[_0x402801(0x26e)](),..._0xcecc74});}[_0x176370(0x165)](_0x117767){const _0x472eaf=_0x176370,_0x5c6fc4=fs[_0x472eaf(0x1c4)](_0x117767);if(same(_0x5c6fc4,this[_0x472eaf(0x1e6)]))return;const _0x10f769={};_0x10f769['code']=_0x472eaf(0x21f);if(this[_0x472eaf(0x27e)]||this['child'])throw Object['assign'](new Error(_0x472eaf(0x289)),_0x10f769);const _0x5464a5=this[_0x472eaf(0x29b)],_0x43c3ed=this['secretPath'];closeMember(this[_0x472eaf(0x1e6)],this[_0x472eaf(0x253)],process[_0x472eaf(0x232)],!![]),this[_0x472eaf(0x1e6)]=_0x5c6fc4;const _0x164a44=registerMember(this[_0x472eaf(0x1e6)],{'connectionId':this[_0x472eaf(0x253)],'supervisorPid':process[_0x472eaf(0x232)],'runtimeRoot':this[_0x472eaf(0x239)]});this[_0x472eaf(0x1a1)]=_0x164a44[_0x472eaf(0x1ba)]===_0x472eaf(0x23f);const _0x383e9a={};_0x383e9a['recursive']=!![],fs[_0x472eaf(0x1f7)](path[_0x472eaf(0x17a)](this[_0x472eaf(0x1bb)]),_0x383e9a);const _0x1236a9={};_0x1236a9[_0x472eaf(0x269)]='wx',_0x1236a9['mode']=0x180,fs[_0x472eaf(0x149)](this[_0x472eaf(0x1bb)],this[_0x472eaf(0x1e7)],_0x1236a9);const _0x220b7a={};_0x220b7a['connectionId']=this[_0x472eaf(0x253)],_0x220b7a[_0x472eaf(0x19a)]=![],_0x220b7a[_0x472eaf(0x209)]='workspace-rebound',atomic(_0x5464a5,_0x220b7a);try{fs[_0x472eaf(0x191)](_0x43c3ed);}catch{}this[_0x472eaf(0x20e)]();}async['start'](){const _0x34a692=_0x176370;require(_0x34a692(0x1c2))['requireSupportedNode'](),verifyRelease(this[_0x34a692(0x267)],this[_0x34a692(0x1e9)]);const _0x48eb4d=registerMember(this[_0x34a692(0x1e6)],{'connectionId':this[_0x34a692(0x253)],'supervisorPid':process[_0x34a692(0x232)],'runtimeRoot':this[_0x34a692(0x239)]});this[_0x34a692(0x1a1)]=_0x48eb4d[_0x34a692(0x1ba)]===_0x34a692(0x23f);const _0x557ca1={};_0x557ca1[_0x34a692(0x157)]=!![],fs[_0x34a692(0x1f7)](path[_0x34a692(0x17a)](this['secretPath']),_0x557ca1);const _0x34aec1={};return _0x34aec1[_0x34a692(0x269)]='wx',_0x34aec1[_0x34a692(0x1ac)]=0x180,fs[_0x34a692(0x149)](this[_0x34a692(0x1bb)],this['secret'],_0x34aec1),this[_0x34a692(0x26b)]=net[_0x34a692(0x2ab)](_0x83e30f=>{const _0x2e9bfc=_0x34a692;let _0x2f207e='',_0x54a398=![];_0x83e30f['setTimeout'](0x1fbd0,()=>_0x83e30f[_0x2e9bfc(0x255)]()),_0x83e30f['on'](_0x2e9bfc(0x259),_0x55335f=>{const _0x28ef94=_0x2e9bfc;_0x2f207e+=_0x55335f;if(Buffer[_0x28ef94(0x262)](_0x2f207e)>0x2*0x400*0x400)return _0x83e30f[_0x28ef94(0x255)]();const _0x3df4dc=_0x2f207e['indexOf']('\x0a');if(_0x3df4dc<0x0)return;if(_0x54a398)return _0x83e30f[_0x28ef94(0x255)]();_0x54a398=!![];let _0x527b8f;try{_0x527b8f=JSON[_0x28ef94(0x1f2)](_0x2f207e[_0x28ef94(0x181)](0x0,_0x3df4dc));}catch{return _0x83e30f['destroy']();}if(![_0x28ef94(0x23b),_0x28ef94(0x1b7),_0x28ef94(0x28a),_0x28ef94(0x286),_0x28ef94(0x298),_0x28ef94(0x256),_0x28ef94(0x24c),_0x28ef94(0x18a),'restore-previous','hook-context',_0x28ef94(0x211)][_0x28ef94(0x1c3)](_0x527b8f[_0x28ef94(0x158)])||!verifyEnvelope(this[_0x28ef94(0x1e7)],_0x527b8f,this[_0x28ef94(0x2a1)],this[_0x28ef94(0x253)]))return _0x83e30f[_0x28ef94(0x255)]();const _0x5921db=_0x4cf55c=>{const _0x2635bd=_0x28ef94,_0x1087cb={'nonce':_0x527b8f[_0x2635bd(0x18b)],'connectionId':this[_0x2635bd(0x253)],'workspace':this[_0x2635bd(0x1e6)],'supervisorPid':process['pid'],'childPid':this[_0x2635bd(0x1a8)]?.['pid']||null,'generation':this[_0x2635bd(0x1f1)],'version':this[_0x2635bd(0x297)]?.[_0x2635bd(0x18c)]||null,'digest':this[_0x2635bd(0x297)]?.[_0x2635bd(0x1be)]||null,'resourceDigest':this['resourceDigest']||null,'catalogHash':this['toolCatalogHash']||null,'shutdownEvidence':this[_0x2635bd(0x15a)]||null,'controlCapabilities':this[_0x2635bd(0x1f8)]||[],'activation':this[_0x2635bd(0x209)],'serving':this[_0x2635bd(0x1a8)]?.[_0x2635bd(0x229)]===!![]&&!this[_0x2635bd(0x25f)],..._0x4cf55c},_0x3cfc96=_0x1087cb;_0x3cfc96[_0x2635bd(0x203)]=crypto[_0x2635bd(0x13d)](_0x2635bd(0x206),this[_0x2635bd(0x1e7)])['update'](JSON[_0x2635bd(0x18f)](_0x3cfc96))[_0x2635bd(0x1be)](_0x2635bd(0x17d)),_0x83e30f[_0x2635bd(0x254)](JSON[_0x2635bd(0x18f)](_0x3cfc96)+'\x0a');};if(_0x527b8f[_0x28ef94(0x158)]==='challenge')return _0x5921db({});const _0x27985d={};_0x27985d['status']=_0x28ef94(0x273),_0x27985d[_0x28ef94(0x1ea)]=_0x28ef94(0x25e);if(_0x527b8f[_0x28ef94(0x158)]===_0x28ef94(0x211))return _0x5921db(this[_0x28ef94(0x1d7)]&&this['child']?.['ready']&&!this[_0x28ef94(0x25f)]?{'status':_0x28ef94(0x25c),'binding':this[_0x28ef94(0x1d7)]}:_0x27985d);if(_0x527b8f[_0x28ef94(0x158)]===_0x28ef94(0x213)){const _0x33f9fe={};_0x33f9fe[_0x28ef94(0x1e4)]=_0x28ef94(0x1d8),_0x33f9fe[_0x28ef94(0x1ea)]=_0x28ef94(0x231);if(readFence(this[_0x28ef94(0x1e6)])[_0x28ef94(0x1ba)]===_0x28ef94(0x263)||!this[_0x28ef94(0x1a8)]?.['ready'])return _0x5921db(_0x33f9fe);const _0x27a1aa={};_0x27a1aa['input']=_0x527b8f['nativeCaller'],void this[_0x28ef94(0x24e)](_0x28ef94(0x21a),_0x27a1aa)['then'](_0x209b70=>_0x5921db(_0x209b70))[_0x28ef94(0x167)](_0x193cf5=>_0x5921db({'status':'failed','code':_0x193cf5[_0x28ef94(0x1ea)]||_0x28ef94(0x231)}));return;}if([_0x28ef94(0x256),_0x28ef94(0x24c),_0x28ef94(0x18a),_0x28ef94(0x1ef)][_0x28ef94(0x1c3)](_0x527b8f['type'])){void this['controlCandidate'](_0x527b8f)[_0x28ef94(0x154)](_0x5921db)[_0x28ef94(0x167)](_0x47c177=>_0x5921db({'status':_0x28ef94(0x1d8),'code':_0x47c177[_0x28ef94(0x1ea)]||_0x28ef94(0x1c6)}));return;}if(_0x527b8f[_0x28ef94(0x158)]==='abort'){const _0x56c5b6={};_0x56c5b6[_0x28ef94(0x1e4)]=_0x28ef94(0x1d8),_0x56c5b6[_0x28ef94(0x1ea)]=_0x28ef94(0x1fa);if(this[_0x28ef94(0x235)]&&!this[_0x28ef94(0x235)]['restored']||readFence(this[_0x28ef94(0x1e6)])[_0x28ef94(0x1ba)]==='frozen')return _0x5921db(_0x56c5b6);const _0x4aea60={};_0x4aea60[_0x28ef94(0x1e4)]='pending-safe-boundary',_0x4aea60[_0x28ef94(0x1ea)]=_0x28ef94(0x1f9);if(this['transition'])return _0x5921db(_0x4aea60);this['admissionClosed']=![];this['candidate']?.[_0x28ef94(0x271)]&&(this[_0x28ef94(0x235)]=null,this['persistCandidate']());this[_0x28ef94(0x209)]=this[_0x28ef94(0x1a8)]?.[_0x28ef94(0x229)]?'active':_0x28ef94(0x184),this[_0x28ef94(0x20e)]();const _0x36c89d={};return _0x36c89d[_0x28ef94(0x1e4)]=this['activation'],_0x5921db(_0x36c89d);}if(_0x527b8f[_0x28ef94(0x158)]===_0x28ef94(0x1b7)){this[_0x28ef94(0x1a1)]=!![],this[_0x28ef94(0x209)]=_0x28ef94(0x238),this['record'](),void this[_0x28ef94(0x1c0)]()[_0x28ef94(0x154)](_0xd3b030=>_0x5921db({'status':_0xd3b030['length']?'pending-safe-boundary':_0x28ef94(0x17f),'blockers':_0xd3b030}))[_0x28ef94(0x167)](_0x2f3737=>_0x5921db({'status':_0x28ef94(0x1d8),'code':_0x2f3737[_0x28ef94(0x1ea)]||_0x28ef94(0x23a)}));return;}if(_0x527b8f[_0x28ef94(0x158)]===_0x28ef94(0x28a)){const _0x50ee75=readFence(this[_0x28ef94(0x1e6)]),_0x2e247e={};_0x2e247e[_0x28ef94(0x1e4)]=_0x28ef94(0x1d8),_0x2e247e[_0x28ef94(0x1ea)]=_0x28ef94(0x2af);if(_0x50ee75['state']!==_0x28ef94(0x20d)||!_0x50ee75['stopRequested']||_0x50ee75[_0x28ef94(0x23e)]!==_0x527b8f[_0x28ef94(0x23e)]||_0x50ee75[_0x28ef94(0x22c)]!==_0x527b8f[_0x28ef94(0x22c)]||_0x50ee75[_0x28ef94(0x24b)]!==_0x527b8f[_0x28ef94(0x18c)]||_0x50ee75['targetDigest']!==_0x527b8f[_0x28ef94(0x1be)])return _0x5921db(_0x2e247e);this[_0x28ef94(0x1a1)]=!![],this[_0x28ef94(0x209)]=_0x28ef94(0x238),this[_0x28ef94(0x20e)](),void this[_0x28ef94(0x24e)](_0x28ef94(0x28a),{..._0x527b8f[_0x28ef94(0x18d)],'transactionId':_0x527b8f[_0x28ef94(0x23e)],'epoch':_0x527b8f[_0x28ef94(0x22c)],'version':_0x527b8f[_0x28ef94(0x18c)],'digest':_0x527b8f[_0x28ef94(0x1be)],'requestsPending':this[_0x28ef94(0x27f)][_0x28ef94(0x26f)]},0x3a98)[_0x28ef94(0x154)](_0x5921db)[_0x28ef94(0x167)](_0xad6768=>_0x5921db({'status':_0x28ef94(0x1d8),'code':_0xad6768[_0x28ef94(0x1ea)]||_0x28ef94(0x175)}));return;}const _0x2e269c={};_0x2e269c['status']=_0x28ef94(0x1d8),_0x2e269c[_0x28ef94(0x1ea)]=_0x28ef94(0x1ae);if(!/^[0-9]+\.[0-9]+\.[0-9]+$/['test'](_0x527b8f['version']||'')||!/^[a-f0-9]{64}$/[_0x28ef94(0x26c)](_0x527b8f[_0x28ef94(0x1be)]||'')||!this['admissionClosed'])return _0x5921db(_0x2e269c);const _0x3146f4=path[_0x28ef94(0x272)](this[_0x28ef94(0x239)],_0x28ef94(0x246),_0x527b8f[_0x28ef94(0x18c)]+'-'+_0x527b8f[_0x28ef94(0x1be)]);void this[_0x28ef94(0x192)](_0x3146f4,Math[_0x28ef94(0x28f)](0x0,Math[_0x28ef94(0x2a5)](0x78,Number(_0x527b8f['waitSeconds'])||0x0)))['then'](_0x3d34ca=>_0x5921db(_0x3d34ca))['catch'](_0x3864ea=>_0x5921db({'status':_0x28ef94(0x1d8),'code':_0x3864ea[_0x28ef94(0x1ea)]||_0x28ef94(0x155)}));});}),await new Promise((_0x58e97e,_0x5e4e84)=>this['listener'][_0x34a692(0x151)]('error',_0x5e4e84)[_0x34a692(0x17e)](this[_0x34a692(0x258)],_0x58e97e)),this[_0x34a692(0x20e)](),this[_0x34a692(0x14d)]['on'](_0x34a692(0x259),_0x4cdb2d=>this[_0x34a692(0x208)](_0x4cdb2d)),this['stdin']['on'](_0x34a692(0x254),()=>void this[_0x34a692(0x16f)](_0x34a692(0x1cd))),this[_0x34a692(0x14d)]['on']('error',()=>void this['close']('host-error')),this[_0x34a692(0x28c)](),this;}[_0x176370(0x28c)](_0x3210cd=0x1388){const _0x1a57d8=_0x176370;clearTimeout(this[_0x1a57d8(0x27c)]);const _0x5c2488=async()=>{const _0x49c032=_0x1a57d8;if(this[_0x49c032(0x25f)]||this[_0x49c032(0x1aa)])return;const _0x39243c=this['workspace'];try{await require(_0x49c032(0x170))[_0x49c032(0x279)](_0x39243c,this['publicKey']);}catch(_0x5bf085){const _0x54086b={};_0x54086b[_0x49c032(0x2a2)]=_0x5bf085[_0x49c032(0x1ea)]||_0x49c032(0x293);if(this[_0x49c032(0x1e6)]===_0x39243c&&!this[_0x49c032(0x25f)]&&!this['closing'])this['record'](_0x54086b);}!this[_0x49c032(0x25f)]&&!this['closing']&&(this[_0x49c032(0x27c)]=setTimeout(_0x5c2488,_0x3210cd),this['executorTimer'][_0x49c032(0x198)]());};void _0x5c2488();}[_0x176370(0x2a0)](_0x5e2257){const _0x17ad8e=_0x176370,_0x2074a5=_0x5e2257[_0x17ad8e(0x25b)]||{},_0xf4d1ab=_0x2074a5[_0x17ad8e(0x20f)]?.[0x0],_0x4e11ce=_0xf4d1ab?.[_0x17ad8e(0x21c)]||_0xf4d1ab?.[_0x17ad8e(0x225)]||_0x2074a5['rootPath']||_0x2074a5[_0x17ad8e(0x169)];if(!_0x4e11ce)return this['workspace'];try{const _0x24b478=_0x4e11ce[_0x17ad8e(0x178)](_0x17ad8e(0x215))?require(_0x17ad8e(0x18e))[_0x17ad8e(0x1a0)](_0x4e11ce):_0x4e11ce;return fs[_0x17ad8e(0x1c4)](_0x24b478);}catch{return this[_0x17ad8e(0x1e6)];}}[_0x176370(0x208)](_0x54cc0a){const _0x4704cd=_0x176370;this[_0x4704cd(0x153)]+=_0x54cc0a[_0x4704cd(0x197)](_0x4704cd(0x1b1));if(this[_0x4704cd(0x153)][_0x4704cd(0x15b)]>0x8*0x400*0x400)return void this[_0x4704cd(0x16f)]('oversize-host-message');let _0x4ed7a5;while((_0x4ed7a5=this[_0x4704cd(0x153)][_0x4704cd(0x19f)]('\x0a'))>=0x0){const _0x4fa841=this[_0x4704cd(0x153)][_0x4704cd(0x181)](0x0,_0x4ed7a5);this[_0x4704cd(0x153)]=this[_0x4704cd(0x153)][_0x4704cd(0x181)](_0x4ed7a5+0x1);if(!_0x4fa841[_0x4704cd(0x2a3)]())continue;let _0x77f5d1;try{_0x77f5d1=JSON[_0x4704cd(0x1f2)](_0x4fa841);}catch{const _0x2e4378={};_0x2e4378[_0x4704cd(0x1ea)]=-0x7fbc,_0x2e4378[_0x4704cd(0x242)]=_0x4704cd(0x2b4);const _0x458a8d={};_0x458a8d[_0x4704cd(0x13f)]=_0x4704cd(0x146),_0x458a8d['id']=null,_0x458a8d['error']=_0x2e4378,this[_0x4704cd(0x23c)](_0x458a8d);continue;}this[_0x4704cd(0x14c)]=this['inputChain'][_0x4704cd(0x154)](()=>this['handleHostMessage'](_0x77f5d1,_0x4fa841))[_0x4704cd(0x167)](_0x3c0b28=>{const _0xef9dfe=_0x4704cd,_0x18f8ab={};_0x18f8ab[_0xef9dfe(0x1ea)]=-0x7f5b,_0x18f8ab[_0xef9dfe(0x242)]=_0x3c0b28[_0xef9dfe(0x1ea)]||_0xef9dfe(0x250);if(_0x77f5d1['id']!==undefined)this['writeHost']({'jsonrpc':_0xef9dfe(0x146),'id':_0x77f5d1['id'],'error':_0x18f8ab});});}}async[_0x176370(0x210)](_0x50d599,_0x48c7cb){const _0x4647ec=_0x176370;if(this[_0x4647ec(0x25f)])return;if(!_0x50d599[_0x4647ec(0x2a6)])return;if(this[_0x4647ec(0x1a8)]?.[_0x4647ec(0x13e)]&&this['activation']===_0x4647ec(0x1ed)){const _0x41f02e={};_0x41f02e['code']=-0x7d02,_0x41f02e[_0x4647ec(0x242)]=_0x4647ec(0x19b);if(_0x50d599['id']!==undefined)this[_0x4647ec(0x23c)]({'jsonrpc':_0x4647ec(0x146),'id':_0x50d599['id'],'error':_0x41f02e});return;}const _0x5725e6=readFence(this[_0x4647ec(0x1e6)]);if(_0x5725e6['state']===_0x4647ec(0x263)){const _0x58c913={};_0x58c913[_0x4647ec(0x1ea)]=-0x7d01,_0x58c913[_0x4647ec(0x242)]=_0x4647ec(0x1af);if(_0x50d599['id']!==undefined)this[_0x4647ec(0x23c)]({'jsonrpc':_0x4647ec(0x146),'id':_0x50d599['id'],'error':_0x58c913});return;}if(!this[_0x4647ec(0x1a8)]&&_0x5725e6[_0x4647ec(0x1ba)]!==_0x4647ec(0x195)){const _0x2ccafa={};_0x2ccafa[_0x4647ec(0x1ea)]=-0x7d01,_0x2ccafa[_0x4647ec(0x242)]=_0x4647ec(0x21d);if(_0x50d599['id']!==undefined)this['writeHost']({'jsonrpc':_0x4647ec(0x146),'id':_0x50d599['id'],'error':_0x2ccafa});return;}if(!this[_0x4647ec(0x1a8)]){if(_0x50d599[_0x4647ec(0x2a6)]!==_0x4647ec(0x145)){const _0x12ef82={};_0x12ef82[_0x4647ec(0x1ea)]=-0x7d02,_0x12ef82[_0x4647ec(0x242)]='APT_RECONNECT_REQUIRED:\x20runtime\x20child\x20stopped;\x20initialize\x20a\x20new\x20MCP\x20session';if(_0x50d599['id']!==undefined)this[_0x4647ec(0x23c)]({'jsonrpc':_0x4647ec(0x146),'id':_0x50d599['id'],'error':_0x12ef82});return;}if(_0x50d599['method']===_0x4647ec(0x145))this[_0x4647ec(0x165)](this[_0x4647ec(0x2a0)](_0x50d599));const _0x2af906=readGeneration(this['workspace']);if(_0x2af906){const _0x45660e=path[_0x4647ec(0x272)](this[_0x4647ec(0x239)],'releases',_0x2af906[_0x4647ec(0x18c)]+'-'+_0x2af906[_0x4647ec(0x1be)]),_0x6b48cc=verifyRelease(_0x45660e,this[_0x4647ec(0x1e9)]),_0x8186ce={};_0x8186ce[_0x4647ec(0x1ea)]=_0x4647ec(0x200);if(_0x6b48cc[_0x4647ec(0x18c)]!==_0x2af906[_0x4647ec(0x18c)]||_0x6b48cc[_0x4647ec(0x1be)]!==_0x2af906[_0x4647ec(0x1be)])throw Object['assign'](new Error(_0x4647ec(0x25d)),_0x8186ce);this[_0x4647ec(0x267)]=_0x45660e,this[_0x4647ec(0x1f1)]=_0x2af906['generation'];}await this['boot'](this[_0x4647ec(0x267)],this['generation']||0x1);if(readFence(this[_0x4647ec(0x1e6)])[_0x4647ec(0x1ba)]===_0x4647ec(0x195))this[_0x4647ec(0x1a1)]=![];}let _0x494a4d;if(readFence(this['workspace'])[_0x4647ec(0x1ba)]===_0x4647ec(0x20d)&&this['isNewMutation'](_0x50d599)){const _0x3cc0f7={};_0x3cc0f7[_0x4647ec(0x14e)]=_0x50d599['params'][_0x4647ec(0x1a6)],_0x3cc0f7[_0x4647ec(0x228)]=_0x50d599[_0x4647ec(0x25b)][_0x4647ec(0x228)],_0x494a4d=await this['requestChild'](_0x4647ec(0x261),_0x3cc0f7);}const _0x6d5ce8=_0x50d599['id']===undefined?!![]:withAdmissionLock(this[_0x4647ec(0x1e6)],_0x29ae72=>{const _0x302edd=_0x4647ec,_0x3c9811=_0x29ae72[_0x302edd(0x1ba)]===_0x302edd(0x20d)&&_0x494a4d?.[_0x302edd(0x205)]===!![]&&_0x494a4d[_0x302edd(0x22c)]===_0x29ae72['epoch'];if(_0x29ae72[_0x302edd(0x1ba)]==='frozen'||(this[_0x302edd(0x1a1)]||[_0x302edd(0x13e),_0x302edd(0x20d)][_0x302edd(0x1c3)](_0x29ae72[_0x302edd(0x1ba)]))&&this[_0x302edd(0x160)](_0x50d599)&&!_0x3c9811)return![];const _0x4d8036={};_0x4d8036[_0x302edd(0x1ea)]=_0x302edd(0x2b2);if(this[_0x302edd(0x27f)][_0x302edd(0x21e)](messageId(_0x50d599['id'])))throw Object['assign'](new Error(_0x302edd(0x16c)),_0x4d8036);const _0x11e44d=this[_0x302edd(0x253)]+':'+crypto['randomUUID'](),_0x151f93={'invocationId':_0x11e44d,'actorId':'transport','attemptId':null,'inputHash':hash(_0x48c7cb),'epoch':_0x29ae72['epoch'],'status':_0x302edd(0x227),'connectionId':this['connectionId'],'createdAt':new Date()[_0x302edd(0x26e)]()};return _0x29ae72['tickets']||={},_0x29ae72['tickets'][hash(_0x11e44d)]=_0x151f93,saveLocked(this[_0x302edd(0x1e6)],_0x29ae72),this[_0x302edd(0x27f)]['set'](messageId(_0x50d599['id']),{'method':_0x50d599[_0x302edd(0x2a6)],'tool':_0x50d599['params']?.['name']||null,'ticket':_0x151f93}),!![];});if(!_0x6d5ce8){const _0x54a455={};_0x54a455[_0x4647ec(0x1ea)]=-0x7d01,_0x54a455[_0x4647ec(0x242)]=_0x4647ec(0x19d);if(_0x50d599['id']!==undefined)this[_0x4647ec(0x23c)]({'jsonrpc':'2.0','id':_0x50d599['id'],'error':_0x54a455});return;}if(_0x50d599[_0x4647ec(0x2a6)]==='initialize')this[_0x4647ec(0x145)]=_0x50d599[_0x4647ec(0x25b)]||{};if(_0x50d599[_0x4647ec(0x2a6)]==='notifications/initialized')this[_0x4647ec(0x2aa)]=!![];try{if(this[_0x4647ec(0x24a)](_0x50d599))await this[_0x4647ec(0x204)]();!this['child'][_0x4647ec(0x14d)][_0x4647ec(0x2b1)](_0x48c7cb+'\x0a')&&(this[_0x4647ec(0x14d)][_0x4647ec(0x1c5)](),this[_0x4647ec(0x1a8)][_0x4647ec(0x14d)][_0x4647ec(0x151)](_0x4647ec(0x202),()=>this['stdin'][_0x4647ec(0x168)]()));}catch(_0x6d127){if(_0x50d599['id']!==undefined){const _0x6f7f27=this[_0x4647ec(0x27f)]['get'](messageId(_0x50d599['id']));if(_0x6f7f27?.[_0x4647ec(0x2a9)])finishOperation(this[_0x4647ec(0x1e6)],_0x6f7f27[_0x4647ec(0x2a9)][_0x4647ec(0x2ac)],_0x6f7f27['ticket']['epoch']);this[_0x4647ec(0x27f)][_0x4647ec(0x230)](messageId(_0x50d599['id']));}throw _0x6d127;}}[_0x176370(0x160)](_0x372f9d){const _0x597ff7=_0x176370;if(_0x372f9d[_0x597ff7(0x2a6)]!==_0x597ff7(0x2b6))return![];const _0x139cd3=_0x372f9d[_0x597ff7(0x25b)]?.['name']||'',_0x5c3b1b=_0x372f9d[_0x597ff7(0x25b)]?.[_0x597ff7(0x228)]?.[_0x597ff7(0x196)];if(_0x139cd3===_0x597ff7(0x292))return!(_0x372f9d['params']?.[_0x597ff7(0x228)]?.[_0x597ff7(0x163)]&&[_0x597ff7(0x1b5),_0x597ff7(0x276),_0x597ff7(0x267),_0x597ff7(0x19c),_0x597ff7(0x287),_0x597ff7(0x29f),_0x597ff7(0x1cb)][_0x597ff7(0x1c3)](_0x5c3b1b));if([_0x597ff7(0x1bd),'model_list',_0x597ff7(0x25a),'session_bootstrap','skill_load',_0x597ff7(0x141)]['includes'](_0x139cd3))return![];return!![];}[_0x176370(0x24a)](_0x2b7a48){const _0x407694=_0x176370;if(_0x2b7a48['method']===_0x407694(0x2a7))return(this[_0x407694(0x1a4)]['MCP_DISCOVER_BACKENDS']||process.env.MCP_DISCOVER_BACKENDS)==='1';if([_0x407694(0x145),_0x407694(0x1b9)][_0x407694(0x1c3)](_0x2b7a48[_0x407694(0x2a6)])||_0x2b7a48['method']?.[_0x407694(0x178)]('notifications/'))return![];if(_0x2b7a48[_0x407694(0x2a6)]!==_0x407694(0x2b6))return!![];const {name:_0x2621fe,arguments:_0x354d92={}}=_0x2b7a48[_0x407694(0x25b)]||{};if(_0x2621fe===_0x407694(0x1ee))return _0x354d92[_0x407694(0x296)]===!![];if(_0x2621fe===_0x407694(0x1c1))return _0x354d92[_0x407694(0x193)]===!![];if(_0x2621fe===_0x407694(0x25a))return Boolean(_0x354d92[_0x407694(0x14b)]||_0x354d92['service']);if(_0x2621fe===_0x407694(0x1bd))return _0x354d92[_0x407694(0x193)]===!![];return![_0x407694(0x29a),_0x407694(0x141)][_0x407694(0x1c3)](_0x2621fe);}async[_0x176370(0x204)](){const _0x209557=_0x176370,_0xdf6f4e=this['child'],_0x57e4b3={};_0x57e4b3[_0x209557(0x1ea)]=_0x209557(0x1ab);if(!_0xdf6f4e)throw Object[_0x209557(0x217)](new Error('Runtime\x20child\x20is\x20unavailable'),_0x57e4b3);if(_0xdf6f4e[_0x209557(0x1a2)])return;_0xdf6f4e[_0x209557(0x1b6)]||=((async()=>{const _0x5851b2=_0x209557;await attachOwnedJob(_0xdf6f4e);const _0x551964=await this[_0x5851b2(0x24e)](_0x5851b2(0x1a7)),_0x35dea9={};_0x35dea9[_0x5851b2(0x1ea)]=_0x5851b2(0x1ce);if(this[_0x5851b2(0x1a8)]!==_0xdf6f4e||_0x551964['type']!==_0x5851b2(0x1ca)||_0x551964[_0x5851b2(0x232)]!==_0xdf6f4e[_0x5851b2(0x232)]||_0x551964['connectionId']!==this[_0x5851b2(0x253)]||_0x551964[_0x5851b2(0x1f1)]!==this[_0x5851b2(0x1f1)])throw Object[_0x5851b2(0x217)](new Error('Process\x20dispatch\x20activation\x20was\x20not\x20confirmed'),_0x35dea9);_0xdf6f4e['operationsEnabled']=!![];})());try{await _0xdf6f4e[_0x209557(0x1b6)];}catch(_0x5da9dd){_0xdf6f4e[_0x209557(0x1b6)]=null;throw _0x5da9dd;}}async['boot'](_0x3e282b,_0x1c88f5){const _0x38c374=_0x176370;if(this[_0x38c374(0x257)])return this[_0x38c374(0x257)];this['booting']=((async()=>{const _0x1c9459=_0x38c374,_0x6d8981=verifyRelease(_0x3e282b,this['publicKey']),_0x1259b9={...process.env,...this[_0x1c9459(0x1a4)]};_0x1259b9[_0x1c9459(0x299)]='1',_0x1259b9[_0x1c9459(0x1ec)]=this[_0x1c9459(0x253)];const _0x441e00=_0x1259b9;delete _0x441e00[_0x1c9459(0x143)];const _0xe1eb3c=spawn(process[_0x1c9459(0x222)],[path[_0x1c9459(0x272)](_0x3e282b,_0x1c9459(0x1de))],{'cwd':this['workspace'],'stdio':[_0x1c9459(0x27a),_0x1c9459(0x27a),_0x1c9459(0x27a),_0x1c9459(0x288)],'detached':process['platform']!==_0x1c9459(0x2b5),'windowsHide':!![],'env':_0x441e00});this[_0x1c9459(0x1a8)]=_0xe1eb3c;const _0x335d86={};_0x335d86[_0x1c9459(0x1e6)]=this[_0x1c9459(0x1e6)],_0x335d86[_0x1c9459(0x253)]=this[_0x1c9459(0x253)],_0x335d86[_0x1c9459(0x239)]=this[_0x1c9459(0x239)],_0x335d86[_0x1c9459(0x1f1)]=_0x1c88f5;const _0x12f08e={};_0x12f08e['deferIdentity']=!![],_0xe1eb3c[_0x1c9459(0x22d)]=captureOwnedChild(_0xe1eb3c,_0x335d86,_0x12f08e);const _0x39b2ca={};_0x39b2ca['version']=_0x6d8981[_0x1c9459(0x18c)],_0x39b2ca[_0x1c9459(0x1be)]=_0x6d8981[_0x1c9459(0x1be)],_0x39b2ca[_0x1c9459(0x1f1)]=_0x1c88f5,_0xe1eb3c[_0x1c9459(0x2ae)]=_0x39b2ca,_0xe1eb3c[_0x1c9459(0x229)]=![],_0xe1eb3c[_0x1c9459(0x2b3)]['on'](_0x1c9459(0x259),_0x5e99b7=>this[_0x1c9459(0x219)](_0x5e99b7,_0xe1eb3c)),_0xe1eb3c[_0x1c9459(0x275)]['on'](_0x1c9459(0x259),_0x44e385=>this[_0x1c9459(0x275)][_0x1c9459(0x2b1)](_0x44e385)),_0xe1eb3c['on'](_0x1c9459(0x242),_0x1dcaa1=>this[_0x1c9459(0x264)](_0x1dcaa1,_0xe1eb3c)),_0xe1eb3c['on'](_0x1c9459(0x16f),(_0x26675f,_0x5a7c04)=>this['childClosed'](_0xe1eb3c,_0x26675f,_0x5a7c04)),_0xe1eb3c['on'](_0x1c9459(0x171),_0x218b81=>_0xe1eb3c[_0x1c9459(0x176)]?.(_0x218b81));const _0x239f0f=new Promise((_0x1647d6,_0x5ed055)=>{const _0x374b93=_0x1c9459,_0x1a2b7b={};_0x1a2b7b['code']=_0x374b93(0x22a);const _0x5b6f6d=setTimeout(()=>_0x5ed055(Object[_0x374b93(0x217)](new Error(_0x374b93(0x1d6)),_0x1a2b7b)),0x3a98);_0xe1eb3c['bootResolve']=_0x39b665=>{clearTimeout(_0x5b6f6d),_0x1647d6(_0x39b665);},_0xe1eb3c[_0x374b93(0x176)]=_0x51d29a=>{clearTimeout(_0x5b6f6d),_0x5ed055(_0x51d29a);};});_0x239f0f['catch'](()=>{});try{_0xe1eb3c[_0x1c9459(0x1d4)]({'type':_0x1c9459(0x270),'runtimeRoot':this[_0x1c9459(0x239)],'release':_0x3e282b,'publicKey':this['publicKey']?.[_0x1c9459(0x197)](),'connectionId':this[_0x1c9459(0x253)],'generation':_0x1c88f5,'workspace':this[_0x1c9459(0x1e6)],'explicitWorkspace':this['explicitWorkspace'],'gatewayBinding':this[_0x1c9459(0x1d7)]});const _0x5e8728=await _0x239f0f;_0xe1eb3c['ready']=!![],this['childControlCapabilities']=Array[_0x1c9459(0x20a)](_0x5e8728[_0x1c9459(0x161)])?_0x5e8728[_0x1c9459(0x161)]:[],this['identity']=_0x6d8981,this[_0x1c9459(0x140)]=_0x5e8728[_0x1c9459(0x140)],this[_0x1c9459(0x1f1)]=_0x1c88f5,this[_0x1c9459(0x209)]=_0x1c9459(0x184),this[_0x1c9459(0x20e)]();}catch(_0x263e37){_0xe1eb3c[_0x1c9459(0x176)]?.(_0x263e37);try{await attachOwnedJob(_0xe1eb3c),await stopOwnedChild(_0xe1eb3c,{'graceMs':0x64,'reason':_0x1c9459(0x185),'graceful':()=>{const _0x2839b=_0x1c9459;if(_0xe1eb3c[_0x2839b(0x159)])_0xe1eb3c[_0x2839b(0x281)]();}});}catch(_0x398130){const _0x5ab3b3={};_0x5ab3b3[_0x1c9459(0x177)]=_0x398130[_0x1c9459(0x1ea)];throw Object[_0x1c9459(0x217)](_0x263e37,_0x5ab3b3);}if(this[_0x1c9459(0x1a8)]===_0xe1eb3c)this['child']=null;throw _0x263e37;}})());try{return await this[_0x38c374(0x257)];}finally{this[_0x38c374(0x257)]=null;}}[_0x176370(0x219)](_0x2cded5,_0x4953b0){const _0x542038=_0x176370;if(this[_0x542038(0x1a8)]!==_0x4953b0)return;const _0x5090d9=this[_0x542038(0x1f5)][_0x542038(0x2b1)](_0x2cded5);this[_0x542038(0x162)]+=_0x5090d9;let _0x21164f;while((_0x21164f=this[_0x542038(0x162)][_0x542038(0x19f)]('\x0a'))>=0x0){const _0x245d7d=this[_0x542038(0x162)][_0x542038(0x181)](0x0,_0x21164f);this['outputBuffer']=this[_0x542038(0x162)][_0x542038(0x181)](_0x21164f+0x1);if(!_0x245d7d)continue;let _0x1dfe62;try{_0x1dfe62=JSON['parse'](_0x245d7d);}catch{continue;}const _0x7e470a=_0x1dfe62['id']!==undefined&&this[_0x542038(0x1ad)][_0x542038(0x186)](messageId(_0x1dfe62['id']));if(_0x7e470a){this['control'][_0x542038(0x230)](messageId(_0x1dfe62['id'])),_0x7e470a[_0x542038(0x182)](_0x1dfe62);continue;}const _0x372860=_0x1dfe62['id']!==undefined?this['pending'][_0x542038(0x186)](messageId(_0x1dfe62['id'])):null;if(_0x372860){if(_0x372860[_0x542038(0x2a9)])finishOperation(this[_0x542038(0x1e6)],_0x372860['ticket'][_0x542038(0x2ac)],_0x372860[_0x542038(0x2a9)][_0x542038(0x22c)]);this[_0x542038(0x27f)]['delete'](messageId(_0x1dfe62['id']));if(_0x372860[_0x542038(0x2a6)]===_0x542038(0x145)&&!_0x1dfe62[_0x542038(0x171)]){try{this[_0x542038(0x26d)](),this[_0x542038(0x209)]=_0x542038(0x227);}catch(_0x1a65c1){this[_0x542038(0x209)]=_0x542038(0x223);const _0x132313={};_0x132313[_0x542038(0x1ea)]=-0x7d01,_0x132313[_0x542038(0x242)]=_0x1a65c1[_0x542038(0x1ea)]||_0x542038(0x16e),_0x1dfe62={'jsonrpc':_0x542038(0x146),'id':_0x1dfe62['id'],'error':_0x132313};}this['record'](),void this[_0x542038(0x20b)]()[_0x542038(0x167)](_0x35d916=>{const _0x2dc2b3=_0x542038,_0x67939a={};_0x67939a[_0x2dc2b3(0x1c9)]=_0x35d916[_0x2dc2b3(0x1ea)]||_0x2dc2b3(0x194),this[_0x2dc2b3(0x20e)](_0x67939a);});}if(_0x372860['method']===_0x542038(0x2a7)&&!_0x1dfe62[_0x542038(0x171)])this[_0x542038(0x174)]=hash(JSON[_0x542038(0x18f)](_0x1dfe62[_0x542038(0x1b0)]?.['tools']||[]));}!this['stdout'][_0x542038(0x2b1)](JSON[_0x542038(0x18f)](_0x1dfe62)+'\x0a')&&(_0x4953b0[_0x542038(0x2b3)]['pause'](),this['stdout']['once'](_0x542038(0x202),()=>_0x4953b0[_0x542038(0x2b3)][_0x542038(0x168)]()));}}async[_0x176370(0x20b)](){const _0x4e7284=_0x176370,_0x159a15=readFence(this[_0x4e7284(0x1e6)]);if(_0x159a15[_0x4e7284(0x1ba)]!==_0x4e7284(0x13e)||_0x159a15[_0x4e7284(0x24b)]!==this[_0x4e7284(0x297)]?.[_0x4e7284(0x18c)]||_0x159a15[_0x4e7284(0x1d1)]!==this['identity']?.[_0x4e7284(0x1be)])return;const _0x279c94=path[_0x4e7284(0x272)](this[_0x4e7284(0x1e6)],_0x4e7284(0x2ad),_0x4e7284(0x1e3),_0x4e7284(0x1a5));let _0x9ebcbd;try{_0x9ebcbd=JSON['parse'](fs[_0x4e7284(0x295)](_0x279c94,'utf8'));}catch{return;}if(_0x9ebcbd[_0x4e7284(0x23e)]!==_0x159a15[_0x4e7284(0x23e)]||!['resources-applied','reconnect-required']['includes'](_0x9ebcbd[_0x4e7284(0x1e4)]))return;const _0x292763=await require(_0x4e7284(0x152))[_0x4e7284(0x27d)](this[_0x4e7284(0x1e6)],{'version':this[_0x4e7284(0x297)]['version'],'digest':this[_0x4e7284(0x297)]['digest'],'resourceDigest':this[_0x4e7284(0x140)]});if(_0x292763['status']!==_0x4e7284(0x227))return;const _0xe1c49c=changeFence(this[_0x4e7284(0x1e6)],_0x159a15[_0x4e7284(0x22c)],{'state':_0x4e7284(0x195),'transactionId':_0x159a15['transactionId'],'generation':this[_0x4e7284(0x1f1)]}),_0x472a89={..._0x9ebcbd};_0x472a89[_0x4e7284(0x1e4)]=_0x4e7284(0x227),_0x472a89[_0x4e7284(0x1cc)]=_0x4e7284(0x147),_0x472a89[_0x4e7284(0x1f1)]=this['generation'],_0x472a89['changedAt']=_0xe1c49c[_0x4e7284(0x166)],atomic(_0x279c94,_0x472a89);}[_0x176370(0x264)](_0x14f3ec,_0x378e2c){const _0x531beb=_0x176370;if(this['child']!==_0x378e2c)return;if(_0x14f3ec?.[_0x531beb(0x158)]===_0x531beb(0x229)){const _0x38ae36=_0x378e2c[_0x531beb(0x2ae)],_0x1ea1e8={};_0x1ea1e8[_0x531beb(0x1ea)]=_0x531beb(0x1ce);if(!_0x38ae36||_0x14f3ec[_0x531beb(0x253)]!==this[_0x531beb(0x253)]||_0x14f3ec[_0x531beb(0x232)]!==_0x378e2c[_0x531beb(0x232)]||_0x14f3ec[_0x531beb(0x1f1)]!==_0x38ae36[_0x531beb(0x1f1)]||_0x14f3ec[_0x531beb(0x18c)]!==_0x38ae36[_0x531beb(0x18c)]||_0x14f3ec[_0x531beb(0x1be)]!==_0x38ae36[_0x531beb(0x1be)]||!same(_0x14f3ec[_0x531beb(0x1e6)]||'',this[_0x531beb(0x1e6)]))_0x378e2c[_0x531beb(0x176)]?.(Object['assign'](new Error('Runtime\x20readiness\x20tuple\x20does\x20not\x20match\x20candidate'),_0x1ea1e8));else _0x378e2c[_0x531beb(0x236)]?.(_0x14f3ec);}else{if(_0x14f3ec?.['type']===_0x531beb(0x218))_0x378e2c[_0x531beb(0x176)]?.(Object['assign'](new Error(_0x14f3ec[_0x531beb(0x278)]),{'code':_0x14f3ec[_0x531beb(0x1ea)]}));else{if(_0x14f3ec?.[_0x531beb(0x158)]===_0x531beb(0x1d9))this['rebindWorkspace'](_0x14f3ec[_0x531beb(0x1e6)]);else{if(_0x14f3ec?.['requestId']&&this[_0x531beb(0x1ad)][_0x531beb(0x21e)](messageId(_0x14f3ec[_0x531beb(0x1e8)]))){if(_0x14f3ec[_0x531beb(0x158)]===_0x531beb(0x25f)&&_0x14f3ec['pid']===_0x378e2c[_0x531beb(0x232)]&&_0x14f3ec[_0x531beb(0x253)]===this[_0x531beb(0x253)]&&_0x14f3ec[_0x531beb(0x1f1)]===this['generation']&&_0x14f3ec[_0x531beb(0x2b7)]===!![])_0x378e2c[_0x531beb(0x1c8)]=!![];const _0x4de5c1=this['control']['get'](messageId(_0x14f3ec[_0x531beb(0x1e8)]));this[_0x531beb(0x1ad)][_0x531beb(0x230)](messageId(_0x14f3ec['requestId'])),_0x4de5c1[_0x531beb(0x182)](_0x14f3ec);}}}}}async['requestChild'](_0x2e6698,_0x3628d2={},_0x585c38=0x1388){const _0x3f434c=_0x176370,_0x5b926d={};_0x5b926d[_0x3f434c(0x1a6)]=_0x3628d2['input']?.[_0x3f434c(0x14e)],_0x5b926d[_0x3f434c(0x228)]=_0x3628d2[_0x3f434c(0x150)]?.['arguments'];const _0x4728b1={};_0x4728b1[_0x3f434c(0x2a6)]=_0x3f434c(0x2b6),_0x4728b1['params']=_0x5b926d;const _0x3d1255=_0x2e6698===_0x3f434c(0x21a)&&!this[_0x3f434c(0x24a)](_0x4728b1);if(!['status',_0x3f434c(0x1a7)][_0x3f434c(0x1c3)](_0x2e6698)&&!_0x3d1255)await this[_0x3f434c(0x204)]();const _0x2a88be={};_0x2a88be[_0x3f434c(0x1ea)]=_0x3f434c(0x1ab);if(!this[_0x3f434c(0x1a8)]?.['connected'])return Promise[_0x3f434c(0x1db)](Object['assign'](new Error(_0x3f434c(0x1f4)),_0x2a88be));const _0x3734be=_0x3f434c(0x1e1)+crypto[_0x3f434c(0x268)]();return new Promise((_0x378966,_0x45a866)=>{const _0x4d360d=_0x3f434c,_0x485aef=setTimeout(()=>{const _0x3bf679=_0x1f3c;this[_0x3bf679(0x1ad)][_0x3bf679(0x230)](messageId(_0x3734be));const _0x802753={};_0x802753[_0x3bf679(0x1ea)]=_0x3bf679(0x226),_0x45a866(Object['assign'](new Error(_0x3bf679(0x189)),_0x802753));},_0x585c38);this['control']['set'](messageId(_0x3734be),{'resolve':_0x31645f=>{clearTimeout(_0x485aef),_0x378966(_0x31645f);}});const _0x4d6e0b={'type':_0x2e6698,'requestId':_0x3734be,..._0x3628d2};this['child'][_0x4d360d(0x1d4)](_0x4d6e0b);});}async['requestRpc'](_0x26ec55,_0x1174a8,_0x48cb48=0x2710){const _0x1280bf=_0x176370;await this[_0x1280bf(0x204)]();const _0x2aaf9f=_0x1280bf(0x15c)+crypto[_0x1280bf(0x268)]();return new Promise((_0x42fb83,_0x2dc860)=>{const _0x50e10f=_0x1280bf,_0x2b3678=setTimeout(()=>{const _0x54061a=_0x1f3c;this[_0x54061a(0x1ad)]['delete'](messageId(_0x2aaf9f));const _0x315289={};_0x315289[_0x54061a(0x1ea)]=_0x54061a(0x274),_0x2dc860(Object[_0x54061a(0x217)](new Error(_0x54061a(0x240)),_0x315289));},_0x48cb48);this[_0x50e10f(0x1ad)][_0x50e10f(0x17c)](messageId(_0x2aaf9f),{'resolve':_0x5944dc=>{clearTimeout(_0x2b3678),_0x42fb83(_0x5944dc);}});const _0x4fc85e={};_0x4fc85e[_0x50e10f(0x13f)]=_0x50e10f(0x146),_0x4fc85e['id']=_0x2aaf9f,_0x4fc85e[_0x50e10f(0x2a6)]=_0x26ec55,_0x4fc85e[_0x50e10f(0x25b)]=_0x1174a8,this[_0x50e10f(0x1a8)][_0x50e10f(0x14d)][_0x50e10f(0x2b1)](JSON[_0x50e10f(0x18f)](_0x4fc85e)+'\x0a');});}async['safeBoundary'](){const _0x3a11bd=_0x176370;if(this[_0x3a11bd(0x27f)][_0x3a11bd(0x26f)])return[{'kind':'request','count':this[_0x3a11bd(0x27f)][_0x3a11bd(0x26f)]}];const _0x5b1ddb=await this[_0x3a11bd(0x24e)](_0x3a11bd(0x1e4)),_0xf1b7ab={};return _0xf1b7ab[_0x3a11bd(0x14a)]=_0x3a11bd(0x290),_0x5b1ddb[_0x3a11bd(0x1d2)]||[_0xf1b7ab];}[_0x176370(0x17b)](){const _0x5930c8=_0x176370,_0x36aade={};return _0x36aade[_0x5930c8(0x253)]=this[_0x5930c8(0x253)],_0x36aade[_0x5930c8(0x1e6)]=this['workspace'],_0x36aade['supervisorPid']=process['pid'],_0x36aade['childPid']=this[_0x5930c8(0x1a8)]?.[_0x5930c8(0x232)],_0x36aade[_0x5930c8(0x18c)]=this[_0x5930c8(0x297)]?.[_0x5930c8(0x18c)],_0x36aade['digest']=this[_0x5930c8(0x297)]?.[_0x5930c8(0x1be)],_0x36aade[_0x5930c8(0x140)]=this[_0x5930c8(0x140)],_0x36aade[_0x5930c8(0x28e)]=this[_0x5930c8(0x174)],_0x36aade['generation']=this[_0x5930c8(0x1f1)],_0x36aade;}async[_0x176370(0x28b)](_0x348be6){const _0x4edcb5=_0x176370,_0x5776b7={};_0x5776b7['code']=_0x4edcb5(0x1ab);if(!this['child'])throw Object[_0x4edcb5(0x217)](new Error(_0x4edcb5(0x248)),_0x5776b7);const _0x22105e=this[_0x4edcb5(0x1a8)];if(!_0x22105e[_0x4edcb5(0x13e)])await this[_0x4edcb5(0x204)]();else await attachOwnedJob(_0x22105e);let _0x58fd1a=![];const _0x1ababb=await stopOwnedChild(_0x22105e,{'reason':_0x348be6,'graceful':async()=>{const _0x1797a2=_0x4edcb5,_0x2afd91={};_0x2afd91[_0x1797a2(0x277)]=_0x348be6;const _0x1363ca=await this[_0x1797a2(0x24e)](_0x1797a2(0x1c7),_0x2afd91,0x3a98);_0x58fd1a=_0x1363ca[_0x1797a2(0x158)]===_0x1797a2(0x25f)&&_0x1363ca[_0x1797a2(0x232)]===_0x22105e[_0x1797a2(0x232)]&&_0x1363ca[_0x1797a2(0x253)]===this['connectionId']&&_0x1363ca[_0x1797a2(0x1f1)]===this[_0x1797a2(0x1f1)]&&_0x1363ca['registeredOwnersStopped']===!![];}}),_0x5d6c5c={};_0x5d6c5c[_0x4edcb5(0x1ea)]=_0x4edcb5(0x20c);if(process['platform']!=='win32'&&!_0x58fd1a)throw Object[_0x4edcb5(0x217)](new Error(_0x4edcb5(0x1f6)),_0x5d6c5c);const _0x34f64a={..._0x1ababb};_0x34f64a[_0x4edcb5(0x2b7)]=_0x58fd1a,this[_0x4edcb5(0x15a)]=_0x34f64a;if(this[_0x4edcb5(0x1a8)]===_0x22105e)this['child']=null;this[_0x4edcb5(0x162)]='',this[_0x4edcb5(0x1f5)]=new StringDecoder(_0x4edcb5(0x1b1));}async[_0x176370(0x285)](_0x4854dd){const _0xa3b0a7=_0x176370;if(this['initialize']){const _0x218775=await this[_0xa3b0a7(0x216)](_0xa3b0a7(0x145),this['initialize']),_0x29c882={};_0x29c882[_0xa3b0a7(0x1ea)]='CHILD_INITIALIZE_FAILED';if(_0x218775[_0xa3b0a7(0x171)])throw Object[_0xa3b0a7(0x217)](new Error(_0xa3b0a7(0x241)),_0x29c882);const _0x54a75a={};_0x54a75a[_0xa3b0a7(0x13f)]=_0xa3b0a7(0x146),_0x54a75a[_0xa3b0a7(0x2a6)]='notifications/initialized',_0x54a75a[_0xa3b0a7(0x25b)]={};if(this[_0xa3b0a7(0x2aa)])this[_0xa3b0a7(0x1a8)][_0xa3b0a7(0x14d)][_0xa3b0a7(0x2b1)](JSON[_0xa3b0a7(0x18f)](_0x54a75a)+'\x0a');}const _0x25ad29=await this[_0xa3b0a7(0x216)](_0xa3b0a7(0x2a7),{}),_0x401523=hash(JSON[_0xa3b0a7(0x18f)](_0x25ad29[_0xa3b0a7(0x1b0)]?.[_0xa3b0a7(0x1f3)]||[])),_0x5e8178={};_0x5e8178[_0xa3b0a7(0x1ea)]=_0xa3b0a7(0x1e5);if(_0x25ad29[_0xa3b0a7(0x171)]||this[_0xa3b0a7(0x174)]&&_0x401523!==this[_0xa3b0a7(0x174)])throw Object['assign'](new Error('Host\x20must\x20refresh\x20its\x20catalog'),_0x5e8178);this['toolCatalogHash']=_0x401523;const _0x299336={};_0x299336['hostSessionId']=_0x4854dd[_0xa3b0a7(0x22b)],_0x299336[_0xa3b0a7(0x265)]=_0x4854dd['boundPipeline'],await this['requestChild']('restore',_0x299336);}async[_0x176370(0x220)](_0x3fe7de){const _0x3630f7=_0x176370,_0x5f3320=readFence(this[_0x3630f7(0x1e6)]),_0x25f777={};_0x25f777['code']=_0x3630f7(0x2af);if(_0x5f3320[_0x3630f7(0x1ba)]!==_0x3630f7(0x263)||_0x3fe7de[_0x3630f7(0x23e)]!==_0x5f3320[_0x3630f7(0x23e)]||_0x3fe7de[_0x3630f7(0x22c)]!==_0x5f3320[_0x3630f7(0x22c)])throw Object[_0x3630f7(0x217)](new Error(_0x3630f7(0x221)),_0x25f777);const _0x405192={};_0x405192['status']='pending-safe-boundary',_0x405192[_0x3630f7(0x1ea)]=_0x3630f7(0x1f9);if(this['transition'])return _0x405192;this[_0x3630f7(0x284)](_0x3fe7de['transactionId']),this[_0x3630f7(0x1a1)]=!![];if(_0x3fe7de[_0x3630f7(0x158)]===_0x3630f7(0x18a)){const _0x510081={};_0x510081[_0x3630f7(0x1ea)]=_0x3630f7(0x144);if(!this[_0x3630f7(0x235)]||this[_0x3630f7(0x235)][_0x3630f7(0x23e)]!==_0x3fe7de[_0x3630f7(0x23e)]||!this['candidate'][_0x3630f7(0x1d0)]||!this['child']?.['ready'])throw Object['assign'](new Error(_0x3630f7(0x1f0)),_0x510081);const _0x3e36ed=await this['requestChild']('status'),_0x1dadcc={};_0x1dadcc[_0x3630f7(0x1ea)]=_0x3630f7(0x1ce);if(_0x3e36ed[_0x3630f7(0x232)]!==this[_0x3630f7(0x1a8)]['pid']||_0x3e36ed['generation']!==_0x3fe7de[_0x3630f7(0x1f1)]||!same(_0x3e36ed[_0x3630f7(0x1e6)],this['workspace']))throw Object[_0x3630f7(0x217)](new Error(_0x3630f7(0x24d)),_0x1dadcc);const _0x5e15e1=acknowledgeGeneration(this[_0x3630f7(0x1e6)],this[_0x3630f7(0x253)],_0x3fe7de['transactionId'],this[_0x3630f7(0x17b)]());projectGeneration(this[_0x3630f7(0x239)],this[_0x3630f7(0x1e6)],_0x5e15e1),this[_0x3630f7(0x267)]=this['candidate'][_0x3630f7(0x267)],this[_0x3630f7(0x209)]='active',this[_0x3630f7(0x1a1)]=![];const _0x3a3472={};return _0x3a3472[_0x3630f7(0x237)]=_0x5e15e1[_0x3630f7(0x23e)],this[_0x3630f7(0x20e)](_0x3a3472),{'status':_0x3630f7(0x227),...this[_0x3630f7(0x17b)]()};}const _0x222510=readGeneration(this[_0x3630f7(0x1e6)]),_0x2b9dee={};_0x2b9dee[_0x3630f7(0x1ea)]='RESOURCE_ROLL_FORWARD_REQUIRED';if(_0x3fe7de[_0x3630f7(0x158)]===_0x3630f7(0x1ef)&&_0x222510?.[_0x3630f7(0x23e)]===_0x3fe7de['transactionId'])throw Object['assign'](new Error(_0x3630f7(0x1df)),_0x2b9dee);if(_0x3fe7de['type']===_0x3630f7(0x24c)&&this[_0x3630f7(0x235)]?.[_0x3630f7(0x23e)]===_0x3fe7de[_0x3630f7(0x23e)]&&this[_0x3630f7(0x235)]['prepared']&&this['child']?.[_0x3630f7(0x229)]){const _0x29d4b3=this[_0x3630f7(0x17b)](),_0x4d815e={};_0x4d815e['code']='CANDIDATE_TUPLE_MISMATCH';if([_0x3630f7(0x18c),'digest',_0x3630f7(0x1f1),'resourceDigest','catalogHash'][_0x3630f7(0x1a9)](_0xa9892=>_0x29d4b3[_0xa9892]!==_0x3fe7de[_0xa9892]))throw Object[_0x3630f7(0x217)](new Error(_0x3630f7(0x16a)),_0x4d815e);const _0x21725e=await this['requestChild'](_0x3630f7(0x1e4)),_0xad6ffa={};_0xad6ffa['code']=_0x3630f7(0x1ce);if(_0x21725e[_0x3630f7(0x232)]!==_0x29d4b3[_0x3630f7(0x24f)]||_0x21725e[_0x3630f7(0x1f1)]!==_0x29d4b3[_0x3630f7(0x1f1)]||!same(_0x21725e[_0x3630f7(0x1e6)],this['workspace']))throw Object['assign'](new Error('Candidate\x20readiness\x20is\x20no\x20longer\x20valid'),_0xad6ffa);const _0x10dd46={'status':_0x3630f7(0x1ff),..._0x29d4b3};return _0x10dd46;}this[_0x3630f7(0x1cf)]=((async()=>{const _0x1daec4=_0x3630f7;if(_0x3fe7de['type']===_0x1daec4(0x256)){if(this[_0x1daec4(0x235)]?.[_0x1daec4(0x23e)]===_0x3fe7de[_0x1daec4(0x23e)]&&this[_0x1daec4(0x235)][_0x1daec4(0x25f)]&&this['candidate'][_0x1daec4(0x1d0)]&&!this['candidate'][_0x1daec4(0x271)])return{'status':this[_0x1daec4(0x1a8)]?.[_0x1daec4(0x229)]?_0x1daec4(0x1ff):_0x1daec4(0x238),'code':this[_0x1daec4(0x1a8)]?.[_0x1daec4(0x229)]?undefined:'CANDIDATE_NOT_READY','oldRuntimeStopped':!![],...this['candidateTuple']()};if(this[_0x1daec4(0x235)]?.[_0x1daec4(0x23e)]===_0x3fe7de[_0x1daec4(0x23e)]&&this[_0x1daec4(0x235)][_0x1daec4(0x25f)]&&!this[_0x1daec4(0x235)]['restored']&&!this[_0x1daec4(0x1a8)])return{'status':_0x1daec4(0x25f),'connectionId':this['connectionId']};const _0x21fdf9=await this[_0x1daec4(0x1c0)]();if(_0x21fdf9[_0x1daec4(0x15b)])return{'status':_0x1daec4(0x238),'blockers':_0x21fdf9};const _0x287d34=await this[_0x1daec4(0x24e)]('status');this[_0x1daec4(0x235)]={'transactionId':_0x3fe7de['transactionId'],'previous':{'release':this[_0x1daec4(0x267)],'generation':this[_0x1daec4(0x1f1)],'resourceDigest':this[_0x1daec4(0x140)],'state':_0x287d34}},this[_0x1daec4(0x2a4)](),await this['stopChild'](_0x1daec4(0x1b8)),this[_0x1daec4(0x235)][_0x1daec4(0x25f)]=!![],this[_0x1daec4(0x2a4)]();const _0x579814={};_0x579814['stoppedTransaction']=_0x3fe7de['transactionId'],this['record'](_0x579814);const _0x42efda={};return _0x42efda[_0x1daec4(0x1e4)]='stopped',_0x42efda['connectionId']=this['connectionId'],_0x42efda['shutdownEvidence']=this['shutdownEvidence'],_0x42efda;}if(_0x3fe7de[_0x1daec4(0x158)]===_0x1daec4(0x1ef)){const _0x2bb4df={};_0x2bb4df[_0x1daec4(0x1ea)]=_0x1daec4(0x1eb);if(!this[_0x1daec4(0x235)])throw Object['assign'](new Error(_0x1daec4(0x291)),_0x2bb4df);const _0x17803b=this['candidate'][_0x1daec4(0x224)],_0x2741aa={};_0x2741aa[_0x1daec4(0x1ea)]=_0x1daec4(0x1eb);if(!_0x17803b?.['state']||!this[_0x1daec4(0x235)][_0x1daec4(0x25f)])throw Object[_0x1daec4(0x217)](new Error(_0x1daec4(0x148)),_0x2741aa);if(this[_0x1daec4(0x1a8)])await this[_0x1daec4(0x28b)](_0x1daec4(0x29c));await this[_0x1daec4(0x270)](_0x17803b[_0x1daec4(0x267)],_0x17803b['generation']);const _0x531cb3={};_0x531cb3[_0x1daec4(0x1ea)]=_0x1daec4(0x23d);if(this['resourceDigest']!==_0x17803b[_0x1daec4(0x140)])throw Object[_0x1daec4(0x217)](new Error(_0x1daec4(0x1bc)),_0x531cb3);return await this[_0x1daec4(0x285)](_0x17803b['state']),this['release']=_0x17803b[_0x1daec4(0x267)],this[_0x1daec4(0x235)]={...this[_0x1daec4(0x235)],'restored':!![],'prepared':![]},this[_0x1daec4(0x2a4)](),this['activation']=_0x1daec4(0x238),this[_0x1daec4(0x1a1)]=![],this[_0x1daec4(0x20e)](),{'status':_0x1daec4(0x233),'serving':this['child']?.['ready']===!![],...this[_0x1daec4(0x17b)]()};}const _0x22bb69={};_0x22bb69[_0x1daec4(0x1ea)]='CANDIDATE_TUPLE_MISMATCH';if(!Number[_0x1daec4(0x1fc)](_0x3fe7de[_0x1daec4(0x1f1)])||_0x3fe7de['generation']<=(this[_0x1daec4(0x235)]?.['previous']?.[_0x1daec4(0x1f1)]??this[_0x1daec4(0x1f1)])||_0x3fe7de[_0x1daec4(0x18c)]!==_0x5f3320['targetVersion']||_0x3fe7de['digest']!==_0x5f3320[_0x1daec4(0x1d1)])throw Object[_0x1daec4(0x217)](new Error(_0x1daec4(0x294)),_0x22bb69);const _0x199c45=_0x3fe7de[_0x1daec4(0x267)]||path['join'](this[_0x1daec4(0x239)],_0x1daec4(0x246),_0x3fe7de[_0x1daec4(0x18c)]+'-'+_0x3fe7de[_0x1daec4(0x1be)]),_0x39a1a8=verifyRelease(_0x199c45,this[_0x1daec4(0x1e9)]),_0x2c072a={};_0x2c072a[_0x1daec4(0x1ea)]=_0x1daec4(0x15e);if(_0x39a1a8[_0x1daec4(0x18c)]!==_0x3fe7de[_0x1daec4(0x18c)]||_0x39a1a8[_0x1daec4(0x1be)]!==_0x3fe7de['digest'])throw Object['assign'](new Error('Candidate\x20release\x20does\x20not\x20match\x20transaction'),_0x2c072a);const _0x5afd95={};_0x5afd95[_0x1daec4(0x1ea)]='CHILD_STOP_UNCONFIRMED';if(!this[_0x1daec4(0x235)]?.[_0x1daec4(0x25f)]||this['candidate'][_0x1daec4(0x23e)]!==_0x3fe7de[_0x1daec4(0x23e)])throw Object['assign'](new Error(_0x1daec4(0x1bf)),_0x5afd95);const _0x17fbee=this[_0x1daec4(0x235)][_0x1daec4(0x224)][_0x1daec4(0x1ba)];this[_0x1daec4(0x235)][_0x1daec4(0x267)]=_0x199c45;if(this[_0x1daec4(0x1a8)])await this['stopChild'](_0x1daec4(0x190));this[_0x1daec4(0x235)][_0x1daec4(0x1d0)]=![],this[_0x1daec4(0x2a4)](),await this['boot'](_0x199c45,_0x3fe7de['generation']),await this[_0x1daec4(0x285)](_0x17fbee);const _0x284b60={};_0x284b60[_0x1daec4(0x1ea)]=_0x1daec4(0x15e);if(this[_0x1daec4(0x140)]!==_0x3fe7de[_0x1daec4(0x140)]||this[_0x1daec4(0x174)]!==_0x3fe7de[_0x1daec4(0x28e)])throw Object[_0x1daec4(0x217)](new Error('Candidate\x20resources\x20or\x20catalog\x20do\x20not\x20match\x20transaction'),_0x284b60);this[_0x1daec4(0x235)][_0x1daec4(0x1d0)]=!![],this['persistCandidate'](),this[_0x1daec4(0x209)]=_0x1daec4(0x238);const _0x340398={};return _0x340398[_0x1daec4(0x266)]=_0x3fe7de[_0x1daec4(0x23e)],this['record'](_0x340398),{'status':'candidate-ready',...this[_0x1daec4(0x17b)]()};})());try{return await this[_0x3630f7(0x1cf)];}finally{this[_0x3630f7(0x1cf)]=null;}}async[_0x176370(0x192)](){const _0xfe4385=_0x176370,_0x1da4de={};return _0x1da4de[_0xfe4385(0x1e4)]=_0xfe4385(0x223),_0x1da4de[_0xfe4385(0x1ea)]=_0xfe4385(0x188),_0x1da4de;}async[_0x176370(0x28d)](_0x11d6af,_0x13e550,_0x3e9874){const _0x159f26=_0x176370;if(this[_0x159f26(0x1a8)]!==_0x11d6af)return;_0x11d6af[_0x159f26(0x13e)]=!![],_0x11d6af['ready']=![];const _0x5c15ce={};_0x5c15ce[_0x159f26(0x1ea)]=_0x159f26(0x252),_0x11d6af['bootReject']?.(Object[_0x159f26(0x217)](new Error(_0x159f26(0x16d)),_0x5c15ce));for(const [_0x14dbf1]of this['pending']){try{const _0x5dcaad={};_0x5dcaad['code']=-0x7d02,_0x5dcaad['message']=_0x159f26(0x1d5),this['writeHost']({'jsonrpc':_0x159f26(0x146),'id':JSON[_0x159f26(0x1f2)](_0x14dbf1),'error':_0x5dcaad});}catch{}}this[_0x159f26(0x27f)][_0x159f26(0x207)]();try{const _0x420e52={};_0x420e52['reason']='runtime-child-closed',_0x420e52['graceMs']=0x3e8,await stopOwnedChild(_0x11d6af,_0x420e52);}catch(_0x37e57f){this[_0x159f26(0x209)]='legacy-ownership-unverified',this[_0x159f26(0x1a1)]=!![];const _0x527115={};_0x527115['stopReason']=_0x3e9874||_0x13e550||_0x159f26(0x183),_0x527115[_0x159f26(0x1c9)]=_0x37e57f[_0x159f26(0x1ea)]||'PROCESS_TREE_STOP_UNCONFIRMED',this[_0x159f26(0x20e)](_0x527115);return;}if(this['child']!==_0x11d6af)return;if(process['platform']!==_0x159f26(0x2b5)&&!_0x11d6af[_0x159f26(0x1c8)]){this[_0x159f26(0x209)]=_0x159f26(0x1ed),this['admissionClosed']=!![];const _0x4ffcc4={};_0x4ffcc4[_0x159f26(0x1d3)]=_0x3e9874||_0x13e550||_0x159f26(0x183),_0x4ffcc4[_0x159f26(0x1c9)]=_0x159f26(0x20c),this[_0x159f26(0x20e)](_0x4ffcc4);return;}this['child']=null;if(!this[_0x159f26(0x1cf)]&&!this['stopped']){this['initialize']=null,this[_0x159f26(0x2aa)]=![],this['activation']=_0x159f26(0x223),this['admissionClosed']=!![];const _0x4e7d7c={};_0x4e7d7c[_0x159f26(0x1d3)]=_0x3e9874||_0x13e550||_0x159f26(0x183),this[_0x159f26(0x20e)](_0x4e7d7c);}}[_0x176370(0x23c)](_0x57007e){const _0x1d1e75=_0x176370;this['stdout'][_0x1d1e75(0x2b1)](JSON[_0x1d1e75(0x18f)](_0x57007e)+'\x0a');}async['close'](_0x40db6e='host-eof'){const _0x32f6b3=_0x176370;if(this['closed'])return;if(this[_0x32f6b3(0x1aa)])return this[_0x32f6b3(0x1aa)];this[_0x32f6b3(0x1a1)]=!![],clearTimeout(this[_0x32f6b3(0x27c)]),this[_0x32f6b3(0x1aa)]=((async()=>{const _0x5235d0=_0x32f6b3;try{if(this[_0x5235d0(0x1a8)])await this[_0x5235d0(0x28b)](_0x40db6e);closeMember(this[_0x5235d0(0x1e6)],this['connectionId'],process[_0x5235d0(0x232)],!![]),this[_0x5235d0(0x25f)]=!![],this['closeReason']=_0x40db6e,require(_0x5235d0(0x201))[_0x5235d0(0x282)](this),await new Promise(_0x3c621f=>this[_0x5235d0(0x26b)]?.[_0x5235d0(0x16f)](_0x3c621f)||_0x3c621f()),this[_0x5235d0(0x209)]='ready-next-connection';const _0x2561b1={};_0x2561b1[_0x5235d0(0x1d3)]=_0x40db6e,this[_0x5235d0(0x20e)](_0x2561b1);try{fs[_0x5235d0(0x191)](this[_0x5235d0(0x1bb)]);}catch{}if(process[_0x5235d0(0x214)]!=='win32')try{fs[_0x5235d0(0x191)](this[_0x5235d0(0x258)]);}catch{}this['closed']=!![];}catch(_0x28d74d){this[_0x5235d0(0x209)]=_0x5235d0(0x1ed);const _0xbda002={};_0xbda002['stopReason']=_0x40db6e,_0xbda002['blocker']=_0x28d74d['code']||_0x5235d0(0x1b3),this['record'](_0xbda002);throw _0x28d74d;}})());try{return await this['closing'];}finally{this[_0x32f6b3(0x1aa)]=null;}}}function _0x1f3c(_0xe62e7,_0x68be86){_0xe62e7=_0xe62e7-0x13d;const _0x309526=_0x3095();let _0x1f3cb2=_0x309526[_0xe62e7];if(_0x1f3c['IjqBiM']===undefined){var _0x308fdf=function(_0x5ab419){const _0x3aeced='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x7bd78c='',_0x57b432='';for(let _0x3cb4cc=0x0,_0x8166a2,_0x169f64,_0x65002a=0x0;_0x169f64=_0x5ab419['charAt'](_0x65002a++);~_0x169f64&&(_0x8166a2=_0x3cb4cc%0x4?_0x8166a2*0x40+_0x169f64:_0x169f64,_0x3cb4cc++%0x4)?_0x7bd78c+=String['fromCharCode'](0xff&_0x8166a2>>(-0x2*_0x3cb4cc&0x6)):0x0){_0x169f64=_0x3aeced['indexOf'](_0x169f64);}for(let _0xa58575=0x0,_0x3e84f0=_0x7bd78c['length'];_0xa58575<_0x3e84f0;_0xa58575++){_0x57b432+='%'+('00'+_0x7bd78c['charCodeAt'](_0xa58575)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x57b432);};_0x1f3c['ZMBnGr']=_0x308fdf,_0x1f3c['NPhkvM']={},_0x1f3c['IjqBiM']=!![];}const _0x266c87=_0x309526[0x0],_0x4ac6d7=_0xe62e7+_0x266c87,_0x12c69f=_0x1f3c['NPhkvM'][_0x4ac6d7];return!_0x12c69f?(_0x1f3cb2=_0x1f3c['ZMBnGr'](_0x1f3cb2),_0x1f3c['NPhkvM'][_0x4ac6d7]=_0x1f3cb2):_0x1f3cb2=_0x12c69f,_0x1f3cb2;}const _0x343c96={};_0x343c96['ConnectionSupervisor']=ConnectionSupervisor,module['exports']=_0x343c96;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5375dd=_0x3af6;(function(_0x10b2df,_0x3ba3f4){const _0x42f7fd=_0x3af6,_0x1bfdd5=_0x10b2df();while(!![]){try{const _0x5a02bb=-parseInt(_0x42f7fd(0x14c))/0x1*(parseInt(_0x42f7fd(0x175))/0x2)+-parseInt(_0x42f7fd(0x16b))/0x3+-parseInt(_0x42f7fd(0x160))/0x4+parseInt(_0x42f7fd(0x141))/0x5+-parseInt(_0x42f7fd(0x168))/0x6*(parseInt(_0x42f7fd(0x12d))/0x7)+parseInt(_0x42f7fd(0x163))/0x8*(-parseInt(_0x42f7fd(0x159))/0x9)+parseInt(_0x42f7fd(0x172))/0xa;if(_0x5a02bb===_0x3ba3f4)break;else _0x1bfdd5['push'](_0x1bfdd5['shift']());}catch(_0x261588){_0x1bfdd5['push'](_0x1bfdd5['shift']());}}}(_0x5122,0x8f7ae));function _0x5122(){const _0x3f81b8=['CMvZB2X2zq','ndHtAMLiD0y','lMfNzw50CY9Tyw5PzMvZDc5QC29U','CMvHzezPBgvtEw5J','mtG5nZu3ofHWt0P6tW','C2HHmJu2','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','C3rHDfn5BMm','CMvHzgrPCLn5BMm','ChjLCgfYzq','CgfYC2u','mZe0otaWmtbdtxDyrfO','CMvTzw1Izxi','ChvZAa','oejcCwXfDG','zxHPC3rZ','Dg9tDhjPBMC','CMvNAxn0CMf0Aw9UtwLNCMf0Aw9U','y2HHBMDLCW','z2v0','D3jPDgvgAwXLu3LUyW','zxzLCNK','zxf1ywXZ','zgLYzwn0B3jPzxm','AxnbyNnVBhv0zq','zgvWBg95uhjVAMvJDa','ywrK','zgvWBg95BwvUDa','BwfUAwzLC3q','ywXSB2m','zgLYBMfTzq','lI9WCM9Qzwn0lxnLDhvW','CNvUDgLTzuXHDw5JAgvYugf0Aa','BM9KztPWyxrO','zxHPC3rZu3LUyW','ru5pru5u','C2vW','AxngAwXL','C3rHDhvZ','CMvSyxrPDMu','nJGZmtC5s2ryBvvf','yMfZzw5HBwu','CMvHBhbHDgHtEw5J','zxHWB3j0CW','Aw5JBhvKzxm','y29UDgv4De1Pz3jHDgLVBNm','CMvHza','uKvtt1vsq0vFuefusf9fu0nbueu','AgfZ','D29YA3nWywnL','D3jPDgfIBgu','y29UzMXPy3rZ','D3jPDgu','C2v0','AxneAxjLy3rVCNK','BM9KztPJCNLWDg8','ChjLCgfYzvbYB2PLy3q','BwfW','y29Kzq','BgvUz3rO','mtKXmJa0nwHiBNDouW','CMvIDwLSzeLUzgv4','zgLNzxn0','CMvNAxn0CMf0Aw9Usg9ZDhm','C3rHCNrZv2L0Aa','CgXHBG','ChjVAMvJDfnJB3bLvMvYAwzPzwq','Aw5KzxHszxf1zxn0zwq','C3rYAw5N','rgvWBg95BwvUDerYywz0','BM90lxjLCxvPCMvK','mJe5mdqXAMT3vNrn','zw5JB2rPBMC','zgvSzxrL','CMvWBgfJzq','rhjHzNqGzMLSzsbLEgLZDhm','B3jPz2LUywXZ','BwfUAwzLC3qUANnVBG','yxnZAwDU','uMvNAxn0CMf0Aw9UugXHBG','DxbKyxrL','yMXVy2TLCNm','C2f2zq','DhjHBNnHy3rPB25jza','mJyXvNDkvMX6','BwLNCMf0Aw9UlxjLCxvPCMvK','zMLSzxm','CMvZB3vYy2vqBgfU','Agv4','zNjVBq','zw50CMLLCW','mtKZmZy0ngLYB0rJva','lI9YzwDPC3rYyxrPB24TCgXHBG','Cgf0Aa','ndCXmJHMCuDxvfO','CMvTB3zL','zMXHzW','AxnezwvWu3rYAwn0rxf1ywW'];_0x5122=function(){return _0x3f81b8;};return _0x5122();}const fs=require('node:fs'),path=require(_0x5375dd(0x126)),crypto=require(_0x5375dd(0x13c)),{containsWorkspace,sameWorkspace}=require(_0x5375dd(0x16d)),{ResourceTransaction}=require('../core/resource-transaction'),hash=_0x548dc7=>crypto['createHash'](_0x5375dd(0x16c))[_0x5375dd(0x155)](_0x548dc7)[_0x5375dd(0x143)](_0x5375dd(0x15d));function _0x3af6(_0x132a99,_0xc3f539){_0x132a99=_0x132a99-0x118;const _0x5122d5=_0x5122();let _0x3af663=_0x5122d5[_0x132a99];if(_0x3af6['RxAtOJ']===undefined){var _0x2e9c04=function(_0x4d487c){const _0x38c74d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x15d4b4='',_0x384d23='';for(let _0x471265=0x0,_0x6e413,_0x2b8eb0,_0x5399d5=0x0;_0x2b8eb0=_0x4d487c['charAt'](_0x5399d5++);~_0x2b8eb0&&(_0x6e413=_0x471265%0x4?_0x6e413*0x40+_0x2b8eb0:_0x2b8eb0,_0x471265++%0x4)?_0x15d4b4+=String['fromCharCode'](0xff&_0x6e413>>(-0x2*_0x471265&0x6)):0x0){_0x2b8eb0=_0x38c74d['indexOf'](_0x2b8eb0);}for(let _0x4630ec=0x0,_0x1dde97=_0x15d4b4['length'];_0x4630ec<_0x1dde97;_0x4630ec++){_0x384d23+='%'+('00'+_0x15d4b4['charCodeAt'](_0x4630ec)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x384d23);};_0x3af6['mOPvJU']=_0x2e9c04,_0x3af6['hHfFhf']={},_0x3af6['RxAtOJ']=!![];}const _0x41431a=_0x5122d5[0x0],_0xaa71fa=_0x132a99+_0x41431a,_0x2fc79b=_0x3af6['hHfFhf'][_0xaa71fa];return!_0x2fc79b?(_0x3af663=_0x3af6['mOPvJU'](_0x3af663),_0x3af6['hHfFhf'][_0xaa71fa]=_0x3af663):_0x3af663=_0x2fc79b,_0x3af663;}class DeploymentDraft{constructor(_0x378291){const _0x42dd6f=_0x5375dd;this[_0x42dd6f(0x136)]=fs[_0x42dd6f(0x12f)](_0x378291),this['files']=new Map(),this[_0x42dd6f(0x151)]=new Map(),this[_0x42dd6f(0x11c)]=new Set();const _0x127034={};_0x127034['isFile']=()=>!![],_0x127034['isDirectory']=()=>![];const _0x2c6f01={};_0x2c6f01[_0x42dd6f(0x12a)]=()=>![],_0x2c6f01[_0x42dd6f(0x13b)]=()=>!![],this['fs']={'existsSync':_0xb8bc6c=>this['exists'](_0xb8bc6c),'readFileSync':(_0xe2a30a,_0x22f041)=>this[_0x42dd6f(0x133)](_0xe2a30a,_0x22f041),'writeFileSync':(_0x255489,_0x4850c0,_0x390a8d)=>this[_0x42dd6f(0x139)](_0x255489,_0x4850c0,_0x390a8d),'appendFileSync':(_0x18ffb8,_0x463421)=>this[_0x42dd6f(0x139)](_0x18ffb8,Buffer['concat']([this[_0x42dd6f(0x176)](_0x18ffb8)?this[_0x42dd6f(0x133)](_0x18ffb8):Buffer[_0x42dd6f(0x122)](0x0),Buffer[_0x42dd6f(0x15e)](_0x463421)])),'copyFileSync':(_0x6abc90,_0x2c7b85)=>this[_0x42dd6f(0x139)](_0x2c7b85,this[_0x42dd6f(0x133)](_0x6abc90)),'renameSync':(_0x3e851,_0x3617f3)=>{const _0x24fd0a=_0x42dd6f;this[_0x24fd0a(0x139)](_0x3617f3,this[_0x24fd0a(0x133)](_0x3e851)),this[_0x24fd0a(0x164)](_0x3e851);},'unlinkSync':_0x295eab=>this['remove'](_0x295eab),'mkdirSync':_0x111d88=>this[_0x42dd6f(0x11c)][_0x42dd6f(0x11f)](this[_0x42dd6f(0x137)](_0x111d88)),'rmdirSync':_0x50cd8f=>this[_0x42dd6f(0x11c)]['delete'](this['writable'](_0x50cd8f)),'statSync':_0x4ce1e8=>this[_0x42dd6f(0x15b)][_0x42dd6f(0x135)](path[_0x42dd6f(0x167)](_0x4ce1e8))&&this[_0x42dd6f(0x15b)][_0x42dd6f(0x118)](path[_0x42dd6f(0x167)](_0x4ce1e8))!==null?_0x127034:this[_0x42dd6f(0x11c)][_0x42dd6f(0x135)](path[_0x42dd6f(0x167)](_0x4ce1e8))?_0x2c6f01:fs[_0x42dd6f(0x16e)](_0x4ce1e8),'readdirSync':_0x2e4574=>this[_0x42dd6f(0x15f)](_0x2e4574),'realpathSync':_0x5aedae=>fs['realpathSync'](_0x5aedae)};}[_0x5375dd(0x137)](_0x1d3f2c){const _0x4372b8=_0x5375dd,_0x1c4a19=path['resolve'](_0x1d3f2c),_0x462092=path['relative'](this[_0x4372b8(0x136)],_0x1c4a19);let _0x1ee17f=_0x1c4a19;while(!fs[_0x4372b8(0x127)](_0x1ee17f)&&path[_0x4372b8(0x123)](_0x1ee17f)!==_0x1ee17f)_0x1ee17f=path[_0x4372b8(0x123)](_0x1ee17f);const _0x1eecb0={};_0x1eecb0[_0x4372b8(0x13f)]=_0x4372b8(0x134);if(_0x462092==='..'||_0x462092[_0x4372b8(0x145)]('..'+path[_0x4372b8(0x129)])||path[_0x4372b8(0x11d)](_0x462092)||!sameWorkspace(_0x1ee17f,this['workspace'])&&!containsWorkspace(this['workspace'],_0x1ee17f))throw Object[_0x4372b8(0x153)](new Error('Deployment\x20draft\x20path\x20escapes\x20project'),_0x1eecb0);return _0x1c4a19;}[_0x5375dd(0x176)](_0x39db0e){const _0x557c5b=_0x5375dd;_0x39db0e=path[_0x557c5b(0x167)](_0x39db0e);if(this[_0x557c5b(0x15b)]['has'](_0x39db0e))return this['files']['get'](_0x39db0e)!==null;return this['directories']['has'](_0x39db0e)||fs[_0x557c5b(0x127)](_0x39db0e);}[_0x5375dd(0x173)](_0x1e0d63){const _0x37df72=_0x5375dd;if(this[_0x37df72(0x151)][_0x37df72(0x135)](_0x1e0d63))return;try{this[_0x37df72(0x151)][_0x37df72(0x13a)](_0x1e0d63,fs[_0x37df72(0x16a)](_0x1e0d63));}catch(_0x6b2bc5){if(_0x6b2bc5[_0x37df72(0x13f)]===_0x37df72(0x128))this[_0x37df72(0x151)][_0x37df72(0x13a)](_0x1e0d63,null);else throw _0x6b2bc5;}}[_0x5375dd(0x133)](_0x193f49,_0xb6da1a){const _0x29d367=_0x5375dd;_0x193f49=path[_0x29d367(0x167)](_0x193f49);let _0x784bd0;if(this['files'][_0x29d367(0x135)](_0x193f49))_0x784bd0=this[_0x29d367(0x15b)][_0x29d367(0x118)](_0x193f49);else{_0x784bd0=fs[_0x29d367(0x16a)](_0x193f49);const _0x425bac=path[_0x29d367(0x12c)](this['workspace'],_0x193f49);if(_0x425bac&&_0x425bac!=='..'&&!_0x425bac[_0x29d367(0x145)]('..'+path[_0x29d367(0x129)])&&!path['isAbsolute'](_0x425bac)&&!this[_0x29d367(0x151)]['has'](_0x193f49))this['originals'][_0x29d367(0x13a)](_0x193f49,Buffer[_0x29d367(0x15e)](_0x784bd0));}const _0x49bd3a={};_0x49bd3a[_0x29d367(0x13f)]=_0x29d367(0x128);if(_0x784bd0===null)throw Object[_0x29d367(0x153)](new Error('Draft\x20file\x20has\x20been\x20removed'),_0x49bd3a);const _0x1f82d3=typeof _0xb6da1a===_0x29d367(0x149)?_0xb6da1a:_0xb6da1a?.[_0x29d367(0x14d)];return _0x1f82d3?_0x784bd0[_0x29d367(0x177)](_0x1f82d3):Buffer[_0x29d367(0x15e)](_0x784bd0);}[_0x5375dd(0x139)](_0x366624,_0x11711c,_0x3eb391){const _0xbd258=_0x5375dd;_0x366624=this['writable'](_0x366624);const _0x924ea4={};_0x924ea4[_0xbd258(0x13f)]='EEXIST';if(_0x3eb391?.[_0xbd258(0x165)]==='wx'&&this[_0xbd258(0x176)](_0x366624))throw Object['assign'](new Error(_0xbd258(0x150)),_0x924ea4);this[_0xbd258(0x173)](_0x366624),this[_0xbd258(0x15b)][_0xbd258(0x13a)](_0x366624,Buffer[_0xbd258(0x15e)](_0x11711c)),this['directories'][_0xbd258(0x11f)](path[_0xbd258(0x123)](_0x366624));}[_0x5375dd(0x164)](_0x4d97f5){const _0x5a781f=_0x5375dd;_0x4d97f5=this['writable'](_0x4d97f5),this[_0x5a781f(0x173)](_0x4d97f5),this[_0x5a781f(0x15b)][_0x5a781f(0x13a)](_0x4d97f5,null);}[_0x5375dd(0x15f)](_0x1b5357){const _0xf90640=_0x5375dd;_0x1b5357=path['resolve'](_0x1b5357);let _0x2f536c;try{_0x2f536c=new Set(fs[_0xf90640(0x16f)](_0x1b5357));}catch(_0x1c11c5){if(_0x1c11c5['code']===_0xf90640(0x128))_0x2f536c=new Set();else throw _0x1c11c5;}for(const [_0x3dd7f8,_0x130b49]of this[_0xf90640(0x15b)])if(path[_0xf90640(0x123)](_0x3dd7f8)===_0x1b5357){if(_0x130b49===null)_0x2f536c[_0xf90640(0x14e)](path[_0xf90640(0x12e)](_0x3dd7f8));else _0x2f536c[_0xf90640(0x11f)](path['basename'](_0x3dd7f8));}for(const _0x39bbd7 of this[_0xf90640(0x11c)])if(path['dirname'](_0x39bbd7)===_0x1b5357)_0x2f536c['add'](path[_0xf90640(0x12e)](_0x39bbd7));return[..._0x2f536c];}[_0x5375dd(0x179)](){const _0x3dd99e=_0x5375dd;return[...this[_0x3dd99e(0x15b)]]['filter'](([_0x1f5e74,_0x40dc3c])=>{const _0x3cab33=_0x3dd99e,_0x5c75a4=this[_0x3cab33(0x151)][_0x3cab33(0x118)](_0x1f5e74);return _0x40dc3c===null?_0x5c75a4!==null:_0x5c75a4===null||!_0x40dc3c[_0x3cab33(0x11b)](_0x5c75a4);})[_0x3dd99e(0x13e)](([_0x4ae8b2,_0x4fdb33])=>({'path':path[_0x3dd99e(0x12c)](this[_0x3dd99e(0x136)],_0x4ae8b2)['replaceAll']('\x5c','/'),'type':_0x4fdb33===null?_0x3dd99e(0x14e):_0x3dd99e(0x14f),'bytes':_0x4fdb33,'managedHash':this['originals'][_0x3dd99e(0x118)](_0x4ae8b2)===null?null:hash(this[_0x3dd99e(0x151)][_0x3dd99e(0x118)](_0x4ae8b2))}));}}function prepareProject(_0x59188d){const _0x33cbb1=_0x5375dd,_0x544cc2=new DeploymentDraft(_0x59188d['projectPath']),_0x9ab69a={};_0x9ab69a['mcpConfigTargets']=[];const _0x3fbbb9={..._0x59188d,'fileSystem':_0x544cc2['fs'],'preparation':!![],..._0x59188d[_0x33cbb1(0x144)]?_0x9ab69a:{}},_0x5ef9d4=require(_0x33cbb1(0x124))[_0x33cbb1(0x11e)](_0x3fbbb9),_0x2cc188=path['join'](_0x544cc2[_0x33cbb1(0x136)],'.agents',_0x33cbb1(0x152)),_0x37625e=_0x544cc2['changes']();if(_0x37625e[_0x33cbb1(0x11a)](_0x3a7442=>_0x3a7442[_0x33cbb1(0x162)]===_0x33cbb1(0x169))&&fs[_0x33cbb1(0x127)](_0x2cc188)){const _0x3eb122=fs[_0x33cbb1(0x16a)](_0x2cc188),_0x1db05c=_0x16ff53=>{const {deployedAt:_0x37c2b5,previousVersion:_0x46b006,contextMigrations:_0x10143a,..._0x1d93b4}=_0x16ff53;return _0x1d93b4;},_0x33a8de=JSON[_0x33cbb1(0x171)](_0x3eb122);require('node:util')[_0x33cbb1(0x166)](_0x1db05c(_0x33a8de),_0x1db05c(_0x5ef9d4['manifest']))&&!_0x5ef9d4[_0x33cbb1(0x121)][_0x33cbb1(0x132)][_0x33cbb1(0x140)]&&(_0x544cc2['fs'][_0x33cbb1(0x119)](_0x2cc188,_0x3eb122),_0x5ef9d4[_0x33cbb1(0x121)]=_0x33a8de);}const _0x12a590={};_0x12a590[_0x33cbb1(0x158)]=_0x59188d[_0x33cbb1(0x158)];const _0x32bebf=ResourceTransaction['prepare'](_0x544cc2[_0x33cbb1(0x136)],_0x544cc2['changes'](),_0x12a590);for(const _0x2a295d of _0x5ef9d4[_0x33cbb1(0x121)]['pendingUpdates'])_0x32bebf[_0x33cbb1(0x146)][_0x33cbb1(0x138)][_0x33cbb1(0x174)]({'path':_0x2a295d,'code':'RESOURCE_CUSTOM_CONFLICT','required':!![]});_0x32bebf[_0x33cbb1(0x157)]();const _0x58295e={};_0x58295e[_0x33cbb1(0x12b)]=_0x33cbb1(0x14b),_0x58295e[_0x33cbb1(0x156)]=[];let _0x56ee11,_0x5ad363=_0x58295e;try{_0x56ee11=_0x59188d[_0x33cbb1(0x144)]&&require(_0x33cbb1(0x161))[_0x33cbb1(0x154)][_0x33cbb1(0x170)]({'workspace':_0x544cc2[_0x33cbb1(0x136)],'transactionId':_0x32bebf['plan'][_0x33cbb1(0x158)],'launcher':_0x59188d[_0x33cbb1(0x125)],'hosts':_0x59188d['registrationHosts'],'scope':_0x59188d['mcpScope']||'auto','projectScopeVerified':_0x59188d[_0x33cbb1(0x147)]||{}});}catch(_0x57de63){if(!['MCP_MIGRATION_REQUIRED','REGISTRATION_OWNERSHIP_REQUIRED'][_0x33cbb1(0x131)](_0x57de63[_0x33cbb1(0x13f)]))throw _0x57de63;const _0x4fc67c={};_0x4fc67c['code']=_0x57de63['code'];const _0x9d3e98={};_0x9d3e98[_0x33cbb1(0x12b)]=_0x33cbb1(0x15a),_0x9d3e98[_0x33cbb1(0x156)]=[_0x4fc67c],_0x5ad363=_0x9d3e98;}const _0x3978bd={};return _0x3978bd[_0x33cbb1(0x15c)]=_0x32bebf,_0x3978bd['registrationPlan']=_0x56ee11,_0x3978bd[_0x33cbb1(0x178)]=_0x5ad363,_0x3978bd[_0x33cbb1(0x120)]=_0x5ef9d4,_0x3978bd[_0x33cbb1(0x148)]=_0x59188d[_0x33cbb1(0x142)]===!![],_0x3978bd;}const _0xbdca85={};_0xbdca85[_0x5375dd(0x14a)]=DeploymentDraft,_0xbdca85[_0x5375dd(0x13d)]=prepareProject,module[_0x5375dd(0x130)]=_0xbdca85;
|
|
1
|
+
'use strict';const _0x411eb2=_0x1a18;(function(_0x1692c5,_0x38f634){const _0x1c68e8=_0x1a18,_0x56f24b=_0x1692c5();while(!![]){try{const _0x2ffdb0=-parseInt(_0x1c68e8(0xcf))/0x1+-parseInt(_0x1c68e8(0xfa))/0x2+parseInt(_0x1c68e8(0xc1))/0x3*(-parseInt(_0x1c68e8(0xa2))/0x4)+parseInt(_0x1c68e8(0xe3))/0x5+-parseInt(_0x1c68e8(0xf3))/0x6*(-parseInt(_0x1c68e8(0xba))/0x7)+-parseInt(_0x1c68e8(0xf4))/0x8+parseInt(_0x1c68e8(0x97))/0x9;if(_0x2ffdb0===_0x38f634)break;else _0x56f24b['push'](_0x56f24b['shift']());}catch(_0x5f3eae){_0x56f24b['push'](_0x56f24b['shift']());}}}(_0x5cb3,0x74f55));const fs=require('node:fs'),path=require(_0x411eb2(0xe7)),crypto=require(_0x411eb2(0xb8)),{containsWorkspace,sameWorkspace}=require(_0x411eb2(0xd1)),{ResourceTransaction}=require('../core/resource-transaction'),hash=_0x33c976=>crypto[_0x411eb2(0xb1)](_0x411eb2(0xe0))['update'](_0x33c976)[_0x411eb2(0xa5)](_0x411eb2(0xdb));class DeploymentDraft{constructor(_0x17f8b4){const _0x25dce6=_0x411eb2;this[_0x25dce6(0xac)]=fs[_0x25dce6(0xe9)](_0x17f8b4),this['files']=new Map(),this[_0x25dce6(0xaa)]=new Map(),this[_0x25dce6(0xed)]=new Set();const _0x3ca817={};_0x3ca817[_0x25dce6(0xb4)]=()=>!![],_0x3ca817[_0x25dce6(0xa7)]=()=>![];const _0x1463e5={};_0x1463e5[_0x25dce6(0xb4)]=()=>![],_0x1463e5['isDirectory']=()=>!![],this['fs']={'existsSync':_0x1c69e5=>this['exists'](_0x1c69e5),'readFileSync':(_0x33ced2,_0x4c637f)=>this[_0x25dce6(0xb0)](_0x33ced2,_0x4c637f),'writeFileSync':(_0x1520b2,_0x51f0c6,_0x9ab33d)=>this['write'](_0x1520b2,_0x51f0c6,_0x9ab33d),'appendFileSync':(_0x2b6912,_0x2a874e)=>this[_0x25dce6(0xd0)](_0x2b6912,Buffer[_0x25dce6(0xf5)]([this[_0x25dce6(0xf0)](_0x2b6912)?this['read'](_0x2b6912):Buffer[_0x25dce6(0xb2)](0x0),Buffer[_0x25dce6(0xa6)](_0x2a874e)])),'copyFileSync':(_0x441378,_0x532039)=>this[_0x25dce6(0xd0)](_0x532039,this['read'](_0x441378)),'renameSync':(_0x28d1be,_0x118804)=>{const _0x945206=_0x25dce6;this[_0x945206(0xd0)](_0x118804,this[_0x945206(0xb0)](_0x28d1be)),this[_0x945206(0xdd)](_0x28d1be);},'unlinkSync':_0x5b3ed9=>this['remove'](_0x5b3ed9),'mkdirSync':_0x246716=>this[_0x25dce6(0xed)][_0x25dce6(0xa1)](this[_0x25dce6(0xc0)](_0x246716)),'rmdirSync':_0x160a56=>this[_0x25dce6(0xed)]['delete'](this['writable'](_0x160a56)),'statSync':_0x2b85a0=>this[_0x25dce6(0xd8)][_0x25dce6(0x9a)](path[_0x25dce6(0xcd)](_0x2b85a0))&&this['files'][_0x25dce6(0x9c)](path[_0x25dce6(0xcd)](_0x2b85a0))!==null?_0x3ca817:this[_0x25dce6(0xed)][_0x25dce6(0x9a)](path[_0x25dce6(0xcd)](_0x2b85a0))?_0x1463e5:fs[_0x25dce6(0xc8)](_0x2b85a0),'readdirSync':_0x2ed936=>this[_0x25dce6(0xb3)](_0x2ed936),'realpathSync':_0x2cf36b=>fs[_0x25dce6(0xe9)](_0x2cf36b)};}['writable'](_0x540e16){const _0x195ac6=_0x411eb2,_0x330236=path['resolve'](_0x540e16),_0x9a55ea=path[_0x195ac6(0xc9)](this[_0x195ac6(0xac)],_0x330236);let _0x70bf00=_0x330236;while(!fs[_0x195ac6(0xce)](_0x70bf00)&&path[_0x195ac6(0xe4)](_0x70bf00)!==_0x70bf00)_0x70bf00=path[_0x195ac6(0xe4)](_0x70bf00);const _0x4b8baa={};_0x4b8baa[_0x195ac6(0xb9)]=_0x195ac6(0xbc);if(_0x9a55ea==='..'||_0x9a55ea[_0x195ac6(0x9e)]('..'+path[_0x195ac6(0xc7)])||path[_0x195ac6(0xc6)](_0x9a55ea)||!sameWorkspace(_0x70bf00,this['workspace'])&&!containsWorkspace(this['workspace'],_0x70bf00))throw Object[_0x195ac6(0xd4)](new Error('Deployment\x20draft\x20path\x20escapes\x20project'),_0x4b8baa);return _0x330236;}[_0x411eb2(0xf0)](_0x4ae7c0){const _0x3042a2=_0x411eb2;_0x4ae7c0=path['resolve'](_0x4ae7c0);if(this[_0x3042a2(0xd8)][_0x3042a2(0x9a)](_0x4ae7c0))return this[_0x3042a2(0xd8)]['get'](_0x4ae7c0)!==null;return this['directories'][_0x3042a2(0x9a)](_0x4ae7c0)||fs[_0x3042a2(0xce)](_0x4ae7c0);}[_0x411eb2(0xfb)](_0x72eaf1){const _0x2700c8=_0x411eb2;if(this[_0x2700c8(0xaa)]['has'](_0x72eaf1))return;try{this[_0x2700c8(0xaa)][_0x2700c8(0xa0)](_0x72eaf1,fs[_0x2700c8(0xeb)](_0x72eaf1));}catch(_0x599461){if(_0x599461[_0x2700c8(0xb9)]===_0x2700c8(0xcb))this[_0x2700c8(0xaa)][_0x2700c8(0xa0)](_0x72eaf1,null);else throw _0x599461;}}[_0x411eb2(0xb0)](_0x4f1f7a,_0x2767a7){const _0x51a7bb=_0x411eb2;_0x4f1f7a=path[_0x51a7bb(0xcd)](_0x4f1f7a);let _0x344f1f;if(this[_0x51a7bb(0xd8)][_0x51a7bb(0x9a)](_0x4f1f7a))_0x344f1f=this[_0x51a7bb(0xd8)][_0x51a7bb(0x9c)](_0x4f1f7a);else{_0x344f1f=fs[_0x51a7bb(0xeb)](_0x4f1f7a);const _0x3be4ef=path[_0x51a7bb(0xc9)](this[_0x51a7bb(0xac)],_0x4f1f7a);if(_0x3be4ef&&_0x3be4ef!=='..'&&!_0x3be4ef[_0x51a7bb(0x9e)]('..'+path[_0x51a7bb(0xc7)])&&!path[_0x51a7bb(0xc6)](_0x3be4ef)&&!this[_0x51a7bb(0xaa)]['has'](_0x4f1f7a))this[_0x51a7bb(0xaa)][_0x51a7bb(0xa0)](_0x4f1f7a,Buffer[_0x51a7bb(0xa6)](_0x344f1f));}const _0x2f9395={};_0x2f9395[_0x51a7bb(0xb9)]=_0x51a7bb(0xcb);if(_0x344f1f===null)throw Object[_0x51a7bb(0xd4)](new Error(_0x51a7bb(0xf7)),_0x2f9395);const _0x23fb62=typeof _0x2767a7===_0x51a7bb(0xe1)?_0x2767a7:_0x2767a7?.[_0x51a7bb(0xdf)];return _0x23fb62?_0x344f1f[_0x51a7bb(0xef)](_0x23fb62):Buffer['from'](_0x344f1f);}[_0x411eb2(0xd0)](_0xfc56f4,_0x53bdde,_0x2661a5){const _0x34ab23=_0x411eb2;_0xfc56f4=this[_0x34ab23(0xc0)](_0xfc56f4);const _0x584457={};_0x584457[_0x34ab23(0xb9)]=_0x34ab23(0xbd);if(_0x2661a5?.[_0x34ab23(0xee)]==='wx'&&this[_0x34ab23(0xf0)](_0xfc56f4))throw Object[_0x34ab23(0xd4)](new Error('Draft\x20file\x20exists'),_0x584457);this[_0x34ab23(0xfb)](_0xfc56f4),this['files'][_0x34ab23(0xa0)](_0xfc56f4,Buffer[_0x34ab23(0xa6)](_0x53bdde)),this[_0x34ab23(0xed)][_0x34ab23(0xa1)](path['dirname'](_0xfc56f4));}['remove'](_0x47e746){const _0x220afa=_0x411eb2;_0x47e746=this['writable'](_0x47e746),this[_0x220afa(0xfb)](_0x47e746),this[_0x220afa(0xd8)][_0x220afa(0xa0)](_0x47e746,null);}[_0x411eb2(0xb3)](_0x2797d5){const _0x473d2d=_0x411eb2;_0x2797d5=path['resolve'](_0x2797d5);let _0x3f28a6;try{_0x3f28a6=new Set(fs[_0x473d2d(0xca)](_0x2797d5));}catch(_0x1f3e21){if(_0x1f3e21[_0x473d2d(0xb9)]===_0x473d2d(0xcb))_0x3f28a6=new Set();else throw _0x1f3e21;}for(const [_0x21f7e4,_0x3fef99]of this['files'])if(path[_0x473d2d(0xe4)](_0x21f7e4)===_0x2797d5){if(_0x3fef99===null)_0x3f28a6[_0x473d2d(0xae)](path[_0x473d2d(0xdc)](_0x21f7e4));else _0x3f28a6[_0x473d2d(0xa1)](path[_0x473d2d(0xdc)](_0x21f7e4));}for(const _0x3136a7 of this['directories'])if(path[_0x473d2d(0xe4)](_0x3136a7)===_0x2797d5)_0x3f28a6[_0x473d2d(0xa1)](path[_0x473d2d(0xdc)](_0x3136a7));return[..._0x3f28a6];}['changes'](){const _0x4391cf=_0x411eb2;return[...this['files']][_0x4391cf(0xbb)](([_0x2a4227,_0x2cc446])=>{const _0xbc9de8=_0x4391cf,_0x28704f=this[_0xbc9de8(0xaa)][_0xbc9de8(0x9c)](_0x2a4227);return _0x2cc446===null?_0x28704f!==null:_0x28704f===null||!_0x2cc446[_0xbc9de8(0xde)](_0x28704f);})['map'](([_0x2c4859,_0x1f6410])=>({'path':path['relative'](this[_0x4391cf(0xac)],_0x2c4859)[_0x4391cf(0x96)]('\x5c','/'),'type':_0x1f6410===null?'delete':_0x4391cf(0xab),'bytes':_0x1f6410,'managedHash':this['originals'][_0x4391cf(0x9c)](_0x2c4859)===null?null:hash(this[_0x4391cf(0xaa)][_0x4391cf(0x9c)](_0x2c4859))}));}}function _0x1a18(_0x43df42,_0x2ebf5d){_0x43df42=_0x43df42-0x96;const _0x5cb3b1=_0x5cb3();let _0x1a18a5=_0x5cb3b1[_0x43df42];if(_0x1a18['fYASPS']===undefined){var _0x50e66c=function(_0x5b5039){const _0x57c7d1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36d960='',_0x4bfbeb='';for(let _0x19cd07=0x0,_0xdfc1e5,_0x5c72f4,_0x6db927=0x0;_0x5c72f4=_0x5b5039['charAt'](_0x6db927++);~_0x5c72f4&&(_0xdfc1e5=_0x19cd07%0x4?_0xdfc1e5*0x40+_0x5c72f4:_0x5c72f4,_0x19cd07++%0x4)?_0x36d960+=String['fromCharCode'](0xff&_0xdfc1e5>>(-0x2*_0x19cd07&0x6)):0x0){_0x5c72f4=_0x57c7d1['indexOf'](_0x5c72f4);}for(let _0x29b46f=0x0,_0x2114c1=_0x36d960['length'];_0x29b46f<_0x2114c1;_0x29b46f++){_0x4bfbeb+='%'+('00'+_0x36d960['charCodeAt'](_0x29b46f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4bfbeb);};_0x1a18['UrTTdr']=_0x50e66c,_0x1a18['ZweXpD']={},_0x1a18['fYASPS']=!![];}const _0x413302=_0x5cb3b1[0x0],_0x47a339=_0x43df42+_0x413302,_0x2fe879=_0x1a18['ZweXpD'][_0x47a339];return!_0x2fe879?(_0x1a18a5=_0x1a18['UrTTdr'](_0x1a18a5),_0x1a18['ZweXpD'][_0x47a339]=_0x1a18a5):_0x1a18a5=_0x2fe879,_0x1a18a5;}function _0x5cb3(){const _0x3cea30=['C2vW','C3rHDfn5BMm','CMvSyxrPDMu','CMvHzgrPCLn5BMm','ru5pru5u','Cgf0Aa','CMvZB2X2zq','zxHPC3rZu3LUyW','mJK4nZjougTjz2m','D3jPDgu','lI4Vy29Yzs93B3jRC3bHy2uTCgf0Aa','BgvUz3rO','lMfNzw50CY9Tyw5PzMvZDc5QC29U','yxnZAwDU','BwfUAwzLC3qUANnVBG','BwLNCMf0Aw9UlxjLCxvPCMvK','y29UzMXPy3rZ','zMLSzxm','CMvNAxn0CMf0Aw9UtwLNCMf0Aw9U','C2f2zq','Agv4','yMfZzw5HBwu','CMvTB3zL','zxf1ywXZ','zw5JB2rPBMC','C2HHmJu2','C3rYAw5N','CgXHBG','mZyYmdG4mfL1A0jnuW','zgLYBMfTzq','C3rHDhvZ','BM90lxjLCxvPCMvK','BM9KztPWyxrO','AM9PBG','CMvHBhbHDgHtEw5J','uKvtt1vsq0vFq1vtve9nx0nptKzmsunu','CMvHzezPBgvtEw5J','CMvIDwLSzeLUzgv4','zgLYzwn0B3jPzxm','zMXHzW','Dg9tDhjPBMC','zxHPC3rZ','ChjLCgfYzvbYB2PLy3q','AxnezwvWu3rYAwn0rxf1ywW','mJqZoda1oerPDhDKrG','mJeZndyWofvJqLDnqG','y29Uy2f0','zxzLCNK','rhjHzNqGzMLSzsbOyxmGyMvLBIbYzw1VDMvK','lI9YzwDPC3rYyxrPB24TCgXHBG','yMXVy2TLCNm','mtG0ntq2oejdyu9Tzq','CMvTzw1Izxi','CMvWBgfJzufSBa','ndmWotqYnu5gA0n3tG','ChjVAMvJDfbHDgG','y29UDgv4De1Pz3jHDgLVBNm','AgfZ','lMfNzw50CW','z2v0','lI9WCM9Qzwn0lxnLDhvW','C3rHCNrZv2L0Aa','zgvWBg95uhjVAMvJDa','C2v0','ywrK','nhrozg5pwa','DhjHBNnHy3rPB25jza','D3jPDgvgAwXLu3LUyW','zgLNzxn0','zNjVBq','AxneAxjLy3rVCNK','ChjLCgfYzq','BwnWu2nVCgu','B3jPz2LUywXZ','CMvWBgfJzq','D29YA3nWywnL','CgfYC2u','zgvSzxrL','ChvZAa','CMvHza','y3jLyxrLsgfZAa','ywXSB2m','zw50CMLLCW','AxngAwXL','BwfUAwzLC3q','CNvUDgLTzuXHDw5JAgvYugf0Aa','uMvNAxn0CMf0Aw9UugXHBG','BM9KztPJCNLWDg8','y29Kzq','mtrqueTire8','zMLSDgvY','uKvtt1vsq0vFuefusf9fu0nbueu','ruvysvnu','CMvNAxn0CMf0Aw9Usg9ZDhm','Aw5KzxHszxf1zxn0zwq','D3jPDgfIBgu','otuXntGYsgfst1fi','CMvZB3vYy2vqBgfU','ChjVAMvJDfnJB3bLvMvYAwzPzwq','rgvWBg95BwvUDerYywz0','y2HHBMDLCW','AxnbyNnVBhv0zq'];_0x5cb3=function(){return _0x3cea30;};return _0x5cb3();}function prepareProject(_0x4e7929){const _0x347122=_0x411eb2,_0x2d3c7b=new DeploymentDraft(_0x4e7929[_0x347122(0x98)]),_0x94d3e7={};_0x94d3e7['mcpConfigTargets']=[];const _0x779f42={..._0x4e7929,'fileSystem':_0x2d3c7b['fs'],'preparation':!![],..._0x4e7929['registrationHosts']?_0x94d3e7:{}},_0x3639d8=require(_0x347122(0x9d))[_0x347122(0x9f)](_0x779f42),_0x480770=path[_0x347122(0xe8)](_0x2d3c7b[_0x347122(0xac)],_0x347122(0x9b),_0x347122(0xd5)),_0x583e1d=_0x2d3c7b[_0x347122(0xc5)]();if(_0x583e1d[_0x347122(0xf6)](_0x1396f4=>_0x1396f4[_0x347122(0xcc)]===_0x347122(0xd3))&&fs['existsSync'](_0x480770)){const _0x116c6c=fs[_0x347122(0xeb)](_0x480770),_0x5e77b9=_0x36a503=>{const {deployedAt:_0x53f23d,previousVersion:_0x99a26,contextMigrations:_0x29023d,..._0x1eb0be}=_0x36a503;return _0x1eb0be;},_0x2e0468=JSON[_0x347122(0xad)](_0x116c6c);require('node:util')[_0x347122(0xf2)](_0x5e77b9(_0x2e0468),_0x5e77b9(_0x3639d8[_0x347122(0xb5)]))&&!_0x3639d8[_0x347122(0xb5)][_0x347122(0x99)][_0x347122(0xd2)]&&(_0x2d3c7b['fs'][_0x347122(0xa4)](_0x480770,_0x116c6c),_0x3639d8['manifest']=_0x2e0468);}const _0x2ba711={};_0x2ba711[_0x347122(0xa3)]=_0x4e7929[_0x347122(0xa3)];const _0xa53746=ResourceTransaction[_0x347122(0xa8)](_0x2d3c7b[_0x347122(0xac)],_0x2d3c7b['changes'](),_0x2ba711);for(const _0x5e88d4 of _0x3639d8['manifest']['pendingUpdates'])_0xa53746['plan'][_0x347122(0xd7)][_0x347122(0xaf)]({'path':_0x5e88d4,'code':_0x347122(0xea),'required':!![]});_0xa53746[_0x347122(0xda)]();const _0x298683={};_0x298683[_0x347122(0xe5)]=_0x347122(0xe6),_0x298683[_0x347122(0xf9)]=[];let _0x76de29,_0x2762e3=_0x298683;try{_0x76de29=_0x4e7929[_0x347122(0xbe)]&&require(_0x347122(0xf8))[_0x347122(0xb7)][_0x347122(0xa8)]({'workspace':_0x2d3c7b[_0x347122(0xac)],'transactionId':_0xa53746[_0x347122(0xe2)]['transactionId'],'launcher':_0x4e7929[_0x347122(0xb6)],'hosts':_0x4e7929[_0x347122(0xbe)],'scope':_0x4e7929[_0x347122(0xa9)]||'auto','projectScopeVerified':_0x4e7929[_0x347122(0xc3)]||{}});}catch(_0x589962){if(!['MCP_MIGRATION_REQUIRED','REGISTRATION_OWNERSHIP_REQUIRED']['includes'](_0x589962[_0x347122(0xb9)]))throw _0x589962;const _0x375e77={};_0x375e77[_0x347122(0xb9)]=_0x589962[_0x347122(0xb9)];const _0x501db8={};_0x501db8[_0x347122(0xe5)]=_0x347122(0xd6),_0x501db8['blockers']=[_0x375e77],_0x2762e3=_0x501db8;}const _0x12285e={};return _0x12285e[_0x347122(0xc2)]=_0xa53746,_0x12285e['registrationPlan']=_0x76de29,_0x12285e[_0x347122(0xd9)]=_0x2762e3,_0x12285e['deployment']=_0x3639d8,_0x12285e[_0x347122(0xbf)]=_0x4e7929[_0x347122(0xec)]===!![],_0x12285e;}const _0x3dadc0={};_0x3dadc0[_0x411eb2(0xc4)]=DeploymentDraft,_0x3dadc0[_0x411eb2(0xf1)]=prepareProject,module['exports']=_0x3dadc0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5c004b=_0x2f8f;function _0x2f8f(_0x2c84ca,_0x191228){_0x2c84ca=_0x2c84ca-0x178;const _0x21ea6f=_0x21ea();let _0x2f8fe6=_0x21ea6f[_0x2c84ca];if(_0x2f8f['ssLsTw']===undefined){var _0x343d0e=function(_0x241162){const _0x4d5ba9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x137a03='',_0x95a7f4='';for(let _0x4871e7=0x0,_0x1ea2a0,_0x42ae64,_0x313ed9=0x0;_0x42ae64=_0x241162['charAt'](_0x313ed9++);~_0x42ae64&&(_0x1ea2a0=_0x4871e7%0x4?_0x1ea2a0*0x40+_0x42ae64:_0x42ae64,_0x4871e7++%0x4)?_0x137a03+=String['fromCharCode'](0xff&_0x1ea2a0>>(-0x2*_0x4871e7&0x6)):0x0){_0x42ae64=_0x4d5ba9['indexOf'](_0x42ae64);}for(let _0x8850de=0x0,_0x54ca43=_0x137a03['length'];_0x8850de<_0x54ca43;_0x8850de++){_0x95a7f4+='%'+('00'+_0x137a03['charCodeAt'](_0x8850de)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x95a7f4);};_0x2f8f['ZqFFYT']=_0x343d0e,_0x2f8f['eKYubE']={},_0x2f8f['ssLsTw']=!![];}const _0x80525=_0x21ea6f[0x0],_0x19efee=_0x2c84ca+_0x80525,_0x2dc13f=_0x2f8f['eKYubE'][_0x19efee];return!_0x2dc13f?(_0x2f8fe6=_0x2f8f['ZqFFYT'](_0x2f8fe6),_0x2f8f['eKYubE'][_0x19efee]=_0x2f8fe6):_0x2f8fe6=_0x2dc13f,_0x2f8fe6;}function _0x21ea(){const _0x23f652=['y29UBMvJDgLVBKLK','CMvHzezPBgvtEw5J','z2f0zxDHEq','Aw5KzxHpzG','Ag9ZDa','BwTKAxjtEw5J','C3rHCNq','C2vZC2LVBL9IB290C3rYyxa','D3jPDgvgAwXLu3LUyW','D3jPDgu','D29YA3nWywnLswq','C2XPy2u','DMvYC2LVBG','yMLUza','zxHWB3j0CW','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','Dg9VBa','BMf0AxzLq2HPBgq','lI4Vy29Yzs9JBgf1zguTAw52B2nHDgLVBG','mJi1nvzmsKzqzq','zMXHzW','r0furvDbwv9dt05urvHux1rjtuvpvvq','DMvYAwz5u2vSzwn0Aw9U','BM9Uy2u','CMvNAxn0CMf0Aw9UlxjLy2vPChrZ','BM9KztPMCW','C2vJCMv0','DMvYAwz5sw52B2nHDgLVBG','mJi3oduXnfHLB0zMCq','C2v0vgLTzw91Da','BgLZDgvUAw5N','nJK2ndaXnNrHvMHMBW','zxHLyW','m0LYqxzyuG','C3rYAw5NAwz5','lMPZB24','C3rYAw5N','CMvNAxn0CNK','mtu1ntuYmMffvwHiBW','r2f0zxDHEunVBNrLEhq','zMfPBgvK','Bw9Kzq','Aw5JBhvKzxm','yxb0lxj1BNrPBwu','C2vJCMv0rMLSzq','nZq5mZyWn2XtqM50yq','yxjNDw1LBNrZ','xfWUxhbPCgvCyxb0lwDHDgv3yxKT','DgHLBG','Bhn0yxrtEw5J','yNL0zuXLBMD0Aa','lI4Vy29Yzs9PCgmTzw52zwXVCgu','CgLK','B25Jzq','otyYnJbpD3bes3a','zw5K','y2XVC2u','Dw5HDMfPBgfIBgu','zgvZDhjVEq','BM9KztPUzxq','BM9Uy2vZ','y2f0y2G','D29YA3nWywnL','AxntEw1IB2XPy0XPBMS','AM9PBG','ChvZAa','DhLWzq','DMvYAwz5','C2vYDMvY','CgfYC2u','C3rHDhvZ','BgLZDgvU','y29Kzq','CMvJDxjZAxzL','ogLbr2LLra','nMLRv0jyAa','nte5ndaWy0HeA1fv','CM9VDa','BwnWx2fWDc1Ty3aTywDLBNrFC2vZC2LVBL9IB290C3rYyxa','zxjYB3i','zw5KCg9PBNq','ota3mte1EwTpDwL4','lMfUAgrO','Ag9VAY1IAw5K','y29UBMvJDa','lMTLEq','y3jLyxrLu2vYDMvY','CMfUzg9TqNL0zxm','BgvUz3rO','CMfUzg9Tvvvjra','BM9KztPJCNLWDg8','DMfSAwrHDgvjzgvUDgL0Eq','BMf0AxzLvg9VBe5HBwu','yxnZAwDU','BMf0AxzLq2fSBgvY','CgXHDgzVCM0','CMvJzwLWDezPBgu','ChjLCgfYzuHVB2TcAw5KAw5N','BwfJ','y2XHDwrL','z2f0zxDHExm','tKfusvzfx0jjtKrjtKDFuevoreLorW','yMLUzgLUz1rVA2vU','C2vZC2LVBKLK','BwnWx19HChqTBwnWlwfNzw50x19ZzxnZAw9Ux2jVB3rZDhjHCa','Dg1WzgLY','r0furvDbwv9dt05urvHux0LovKfmsuq','zgf0yq','yM91BMq','D29YA3nWywnLugf0Aa'];_0x21ea=function(){return _0x23f652;};return _0x21ea();}(function(_0x39eb92,_0x2f695e){const _0x528aa2=_0x2f8f,_0x2da6f1=_0x39eb92();while(!![]){try{const _0x338a9b=-parseInt(_0x528aa2(0x1b5))/0x1+-parseInt(_0x528aa2(0x18f))/0x2*(-parseInt(_0x528aa2(0x18a))/0x3)+parseInt(_0x528aa2(0x1b3))/0x4*(parseInt(_0x528aa2(0x1ba))/0x5)+-parseInt(_0x528aa2(0x1b4))/0x6*(parseInt(_0x528aa2(0x185))/0x7)+-parseInt(_0x528aa2(0x188))/0x8+-parseInt(_0x528aa2(0x196))/0x9+-parseInt(_0x528aa2(0x19f))/0xa*(-parseInt(_0x528aa2(0x17c))/0xb);if(_0x338a9b===_0x2f695e)break;else _0x2da6f1['push'](_0x2da6f1['shift']());}catch(_0xab88f2){_0x2da6f1['push'](_0x2da6f1['shift']());}}}(_0x21ea,0x8a296));const fs=require(_0x5c004b(0x182)),path=require('node:path'),os=require('node:os'),net=require(_0x5c004b(0x1a4)),crypto=require(_0x5c004b(0x1c3)),{signEnvelope,verifyEnvelope}=require(_0x5c004b(0x19c)),fail=_0xf04323=>{const _0x505115=_0x5c004b;throw Object[_0x505115(0x1c6)](new Error(_0xf04323),{'code':_0xf04323});},rootFor=()=>path['join'](process.env.APT_REGISTRATION_RECEIPT_ROOT||path['join'](os['homedir'](),_0x5c004b(0x1bb),_0x5c004b(0x194),_0x5c004b(0x181)),_0x5c004b(0x1cd));class GatewayContext{constructor(_0x57e5b6,_0x8a571a={}){const _0x1aa290=_0x5c004b;this['gateway']=_0x57e5b6,this[_0x1aa290(0x1b6)]=_0x8a571a['root']||rootFor(),this[_0x1aa290(0x1ac)]=_0x8a571a[_0x1aa290(0x184)]||require(_0x1aa290(0x17b))['verifyClaudeInvocation'],this[_0x1aa290(0x183)]=crypto[_0x1aa290(0x1c0)](0x20),this[_0x1aa290(0x1a5)]=new Set(),this['endpoint']=process[_0x1aa290(0x1c8)]==='win32'?_0x1aa290(0x198)+_0x57e5b6[_0x1aa290(0x1d7)]:path[_0x1aa290(0x1a9)](os[_0x1aa290(0x1d2)](),'apt-gateway-'+_0x57e5b6['connectionId']+'.sock'),this[_0x1aa290(0x1c9)]=path[_0x1aa290(0x1a9)](this['root'],_0x57e5b6[_0x1aa290(0x1d7)]+_0x1aa290(0x18c)),this[_0x1aa290(0x195)]=path[_0x1aa290(0x1a9)](this[_0x1aa290(0x1b6)],_0x57e5b6[_0x1aa290(0x1d7)]+_0x1aa290(0x1be));}async[_0x5c004b(0x1e4)](_0x2c26af){const _0x106f9f=_0x5c004b;if(this[_0x106f9f(0x1d9)][_0x106f9f(0x1db)]!=='claude')fail('NATIVE_CONTEXT_UNAVAILABLE');const _0x2867c2=_0x2c26af[_0x106f9f(0x1c7)];if(!_0x2867c2||_0x2867c2[_0x106f9f(0x17a)]||_0x2867c2[_0x106f9f(0x179)]!==_0x106f9f(0x1de)||![_0x106f9f(0x1d1),_0x106f9f(0x1b7)][_0x106f9f(0x193)](_0x2867c2[_0x106f9f(0x1c5)]))fail('GATEWAY_CONTEXT_UNSUPPORTED');const _0x5a8fbc={};_0x5a8fbc['workspacePath']=_0x2c26af['workspace'];const _0x3091b9=this['gateway'][_0x106f9f(0x18e)]['resolve'](_0x5a8fbc,{'host':this[_0x106f9f(0x1d9)][_0x106f9f(0x1db)]});this[_0x106f9f(0x1d9)][_0x106f9f(0x17f)](_0x2867c2[_0x106f9f(0x197)]?.[_0x106f9f(0x1cf)],_0x3091b9[_0x106f9f(0x1e1)]);const _0x1a4f55={..._0x2867c2};_0x1a4f55[_0x106f9f(0x1a7)]=_0x3091b9[_0x106f9f(0x1a7)];const _0x5508a1=await this[_0x106f9f(0x1ac)](_0x1a4f55);if(_0x5508a1[_0x106f9f(0x1af)]!=='verified')fail(_0x5508a1['code']||_0x106f9f(0x1ce));const _0x5d885b=_0x2867c2['arguments']||{};require('../proxy/workspace-gateway')[_0x106f9f(0x1c4)](_0x5d885b);if(_0x5d885b[_0x106f9f(0x1e1)]||_0x5d885b[_0x106f9f(0x1d6)]){const _0x32d758=this['gateway'][_0x106f9f(0x18e)]['resolve'](_0x5d885b,{'host':this[_0x106f9f(0x1d9)]['host']});if(_0x32d758[_0x106f9f(0x1e1)]!==_0x3091b9[_0x106f9f(0x1e1)])fail(_0x106f9f(0x178));}const _0x537994={..._0x5d885b};_0x537994[_0x106f9f(0x1e1)]=_0x3091b9[_0x106f9f(0x1e1)];const _0x1f07be=await this[_0x106f9f(0x1d9)][_0x106f9f(0x1e4)](_0x537994),_0x401037={};return _0x401037['status']=_0x106f9f(0x1d5),_0x401037[_0x106f9f(0x1a7)]=_0x1f07be[_0x106f9f(0x1a7)],_0x401037[_0x106f9f(0x1d0)]=_0x1f07be[_0x106f9f(0x1d0)],_0x401037[_0x106f9f(0x1e1)]=_0x1f07be[_0x106f9f(0x1e1)],_0x401037['registration']=_0x1f07be['registration'],_0x401037['evidence']='verified-native-hook',_0x401037;}async[_0x5c004b(0x1dd)](){const _0x2a317d=_0x5c004b,_0x2e198d={};_0x2e198d[_0x2a317d(0x1b2)]=!![],fs[_0x2a317d(0x1dc)](this[_0x2a317d(0x1b6)],_0x2e198d);const _0x4901ec={};_0x4901ec[_0x2a317d(0x17d)]='wx',_0x4901ec['mode']=0x180,fs['writeFileSync'](this[_0x2a317d(0x195)],this[_0x2a317d(0x183)],_0x4901ec),this[_0x2a317d(0x1ad)]=net[_0x2a317d(0x1bf)](_0x6e564f=>{const _0x4d1703=_0x2a317d;let _0x3f30fc='',_0x1aeef0=![];_0x6e564f['setTimeout'](0x2710,()=>_0x6e564f[_0x4d1703(0x1a3)]()),_0x6e564f['on']('error',()=>{}),_0x6e564f['on'](_0x4d1703(0x1d4),_0x4e850e=>{const _0x574909=_0x4d1703;if(_0x1aeef0)return _0x6e564f[_0x574909(0x1a3)]();_0x3f30fc+=_0x4e850e;if(Buffer[_0x574909(0x19b)](_0x3f30fc)>0x2*0x400*0x400)return _0x6e564f[_0x574909(0x1a3)]();const _0x293958=_0x3f30fc[_0x574909(0x1da)]('\x0a');if(_0x293958<0x0)return;_0x1aeef0=!![];let _0x57219e;try{_0x57219e=JSON[_0x574909(0x1ae)](_0x3f30fc[_0x574909(0x1e2)](0x0,_0x293958));}catch{return _0x6e564f[_0x574909(0x1a3)]();}if(_0x57219e[_0x574909(0x1ab)]!==_0x574909(0x1bc)||!verifyEnvelope(this['secret'],_0x57219e,this[_0x574909(0x1a5)],this[_0x574909(0x1d9)][_0x574909(0x1d7)]))return _0x6e564f['destroy']();const _0x280713=_0x2e7802=>{const _0x48580d=_0x574909,_0x3b9403={'protocol':0x2,'connectionId':this[_0x48580d(0x1d9)][_0x48580d(0x1d7)],'nonce':_0x57219e[_0x48580d(0x180)],..._0x2e7802},_0x4c2e03=_0x3b9403;_0x4c2e03[_0x48580d(0x1cb)]=signEnvelope(this[_0x48580d(0x183)],_0x4c2e03),_0x6e564f[_0x48580d(0x1a0)](JSON[_0x48580d(0x18b)](_0x4c2e03)+'\x0a');};void this[_0x574909(0x1e4)](_0x57219e)[_0x574909(0x199)](_0x280713)[_0x574909(0x1a6)](_0x1bfcc6=>_0x280713({'status':_0x574909(0x191),'code':_0x1bfcc6['code']||_0x574909(0x1ce)}));});}),await new Promise((_0x364dba,_0x591b88)=>{const _0x536922=_0x2a317d;this[_0x536922(0x1ad)][_0x536922(0x19e)](_0x536922(0x1b8),_0x591b88),this['server'][_0x536922(0x1b0)](this[_0x536922(0x1b9)],_0x364dba);});const _0x372baa={};return _0x372baa[_0x2a317d(0x192)]=0x180,fs[_0x2a317d(0x1df)](this[_0x2a317d(0x1c9)],JSON[_0x2a317d(0x18b)]({'version':0x1,'connectionId':this[_0x2a317d(0x1d9)][_0x2a317d(0x1d7)],'endpoint':this[_0x2a317d(0x1b9)],'host':this[_0x2a317d(0x1d9)][_0x2a317d(0x1db)],'pid':process[_0x2a317d(0x19d)]}),_0x372baa),this;}async[_0x5c004b(0x1a1)](){const _0x17d0bb=_0x5c004b;if(this[_0x17d0bb(0x1ad)]?.[_0x17d0bb(0x187)])await new Promise(_0x10b697=>this[_0x17d0bb(0x1ad)]['close'](_0x10b697));for(const _0x315af0 of[this[_0x17d0bb(0x1c9)],this[_0x17d0bb(0x195)]])try{fs['unlinkSync'](_0x315af0);}catch(_0x143c59){if(_0x143c59[_0x17d0bb(0x1b1)]!=='ENOENT')throw _0x143c59;}}}async function prepareHookBinding(_0x1eb656,_0x18d9ee,_0x152439={}){const _0x3713d8=_0x5c004b,_0x37e375=_0x152439[_0x3713d8(0x1b6)]||rootFor();let _0x56fdfc;try{_0x56fdfc=fs['readdirSync'](_0x37e375)['filter'](_0x3e5912=>/^[a-f0-9-]{36}\.json$/['test'](_0x3e5912));}catch(_0x1b0150){if(_0x1b0150[_0x3713d8(0x1b1)]==='ENOENT')return[];throw _0x1b0150;}const _0x31d146=_0x18d9ee[_0x3713d8(0x197)]?.[_0x3713d8(0x1cf)],_0x522edd=typeof _0x31d146===_0x3713d8(0x18d)&&/^([a-f0-9-]{36})\.[A-Za-z0-9_-]{43}$/[_0x3713d8(0x189)](_0x31d146)?.[0x1],_0x2fd785={};_0x2fd785['status']=_0x3713d8(0x191),_0x2fd785['code']='GATEWAY_SELECTION_REQUIRED';if(!_0x522edd)return[_0x2fd785];const _0x98ff59=[];for(const _0x15614b of _0x56fdfc){const _0x5e8864=_0x15614b[_0x3713d8(0x1e2)](0x0,-0x5);if(_0x5e8864!==_0x522edd)continue;const _0x23d10b=path[_0x3713d8(0x1a9)](_0x37e375,_0x15614b),_0x3d08aa=path[_0x3713d8(0x1a9)](_0x37e375,_0x5e8864+_0x3713d8(0x1be));let _0x5b6330,_0x11817a;try{if(fs[_0x3713d8(0x19a)](_0x23d10b)['isSymbolicLink']()||fs[_0x3713d8(0x19a)](_0x3d08aa)[_0x3713d8(0x1a8)]())continue;_0x5b6330=JSON[_0x3713d8(0x1ae)](fs[_0x3713d8(0x1d8)](_0x23d10b)),_0x11817a=fs['readFileSync'](_0x3d08aa);if(_0x5b6330[_0x3713d8(0x1e3)]!==0x1||_0x5b6330[_0x3713d8(0x1d7)]!==_0x5e8864||_0x5b6330[_0x3713d8(0x1db)]!==_0x3713d8(0x1cc)||_0x11817a[_0x3713d8(0x1c1)]!==0x20)continue;}catch{continue;}const _0x17e502={'protocol':0x2,'type':'hook-bind','connectionId':_0x5e8864,'nonce':crypto[_0x3713d8(0x1c2)](),'workspace':_0x1eb656,'nativeCaller':_0x18d9ee};_0x17e502['mac']=signEnvelope(_0x11817a,_0x17e502),_0x98ff59[_0x3713d8(0x1aa)](await new Promise(_0x5be4e6=>{const _0x4bbbe6=_0x3713d8,_0x343d6d=net['connect'](_0x5b6330['endpoint']);let _0x118612='';const _0x3db664=_0x57d2a3=>{const _0x41a6ca=_0x2f8f;_0x343d6d[_0x41a6ca(0x1a3)](),_0x5be4e6(_0x57d2a3);},_0x919f69={};_0x919f69[_0x4bbbe6(0x1af)]='failed',_0x919f69[_0x4bbbe6(0x1b1)]=_0x4bbbe6(0x17e),_0x343d6d[_0x4bbbe6(0x186)](0x2710,()=>_0x3db664(_0x919f69));const _0x29bbe7={};_0x29bbe7[_0x4bbbe6(0x1af)]=_0x4bbbe6(0x1a2),_0x343d6d['on']('error',()=>_0x3db664(_0x29bbe7)),_0x343d6d['on'](_0x4bbbe6(0x1bd),()=>_0x343d6d[_0x4bbbe6(0x1e0)](JSON[_0x4bbbe6(0x18b)](_0x17e502)+'\x0a')),_0x343d6d['on'](_0x4bbbe6(0x1d4),_0x5981e1=>{const _0x252f54=_0x4bbbe6;_0x118612+=_0x5981e1;const _0xe63f30={};_0xe63f30['status']=_0x252f54(0x191),_0xe63f30['code']=_0x252f54(0x1d3);if(_0x118612[_0x252f54(0x1c1)]>0x2000)return _0x3db664(_0xe63f30);const _0x2989bf=_0x118612[_0x252f54(0x1da)]('\x0a');if(_0x2989bf<0x0)return;let _0x4d1ce3;try{_0x4d1ce3=JSON[_0x252f54(0x1ae)](_0x118612[_0x252f54(0x1e2)](0x0,_0x2989bf));}catch{const _0x35ff67={};return _0x35ff67[_0x252f54(0x1af)]=_0x252f54(0x191),_0x3db664(_0x35ff67);}const _0x1cb165={};_0x1cb165[_0x252f54(0x1af)]=_0x252f54(0x191),_0x1cb165[_0x252f54(0x1b1)]='GATEWAY_CONTEXT_INVALID';if(!verifyEnvelope(_0x11817a,_0x4d1ce3,new Set(),_0x5e8864)||_0x4d1ce3[_0x252f54(0x180)]!==_0x17e502[_0x252f54(0x180)])return _0x3db664(_0x1cb165);_0x3db664(_0x4d1ce3);});}));}return _0x98ff59;}const _0x4b67be={};_0x4b67be[_0x5c004b(0x190)]=GatewayContext,_0x4b67be[_0x5c004b(0x1ca)]=prepareHookBinding,module[_0x5c004b(0x1e5)]=_0x4b67be;
|
|
1
|
+
'use strict';function _0x5657(){const _0x375e5b=['BM9Uy2vZ','ChvZAa','mJq5ote4swH5CvbP','yxjNDw1LBNrZ','BMf0AxzLvg9VBe5HBwu','DhLWzq','D29YA3nWywnL','mtKYodiWmNjetNPXtG','D29YA3nWywnLswq','C2vJCMv0rMLSzq','lMTLEq','C2v0vgLTzw91Da','BM9KztPUzxq','z2f0zxDHEq','DgHLBG','Ag9VAY1IAw5K','yMLUza','ChjLCgfYzuHVB2TcAw5KAw5N','y29UBMvJDa','zxjYB3i','DgvZDa','CMvZB2X2zq','BM9Uy2u','yxnZAwDU','tKfusvzfx0nptLrfwfrFvu5bvKfjtefcteu','Bhn0yxrtEw5J','CMvHzezPBgvtEw5J','DMvYAwzPzwqTBMf0AxzLlwHVB2S','Ag9ZDa','y29Kzq','zMLSDgvY','Ag9TzwrPCG','ru5pru5u','C3rHDhvZ','zgf0yq','BgvUz3rO','zMXHzW','ndC2mdm5mMnLDKP4yG','DMvYAwz5','nZa5ndiXngXMsu9ywG','Dw5SAw5Ru3LUyW','lI4Vy29Yzs9PCgmTzw52zwXVCgu','BMf0AxzLq2fSBgvY','DMvYAwz5u2vSzwn0Aw9U','mJyYzg5lCu9P','CgLK','y29UBMvJDgLVBKLK','BgLZDgvU','CMvNAxn0CNK','mtG0mJHPvgLhq00','CMvNAxn0CMf0Aw9UlxjLy2vPChrZ','CgXHDgzVCM0','AM9PBG','CMvNAxn0CMf0Aw9U','mJG4nMrQyu5Oqq','CgfYC2u','z2f0zxDHExm','yxb0lxj1BNrPBwu','r0furvDbwv9dt05urvHux0LovKfmsuq','AxntEw1IB2XPy0XPBMS','Aw5KzxHpzG','ntu0mtuZnMzvuNvdtG','BM9KztPWyxrO','Dg9VBa','yNL0zuXLBMD0Aa','yMLUzgLUz1rVA2vU','DMfSAwrHDgvjzgvUDgL0Eq','lI4Vy29Yzs9JBgf1zguTAw52B2nHDgLVBG','zw5KCg9PBNq','DMvYAwz5sw52B2nHDgLVBG','BwnWx2fWDc1Ty3aTywDLBNrFC2vZC2LVBL9IB290C3rYyxa','v09ss1nqqunfx0jjtKrjtKDFq09orKXjq1q','C2vZC2LVBL9IB290C3rYyxa','r0furvDbwv9dt05urvHux1vou1vque9sveve','DMvYAwz5q2XHDwrLsw52B2nHDgLVBG','BwTKAxjtEw5J','C3rYAw5N','BwnWx19HChqTBwnWlwfNzw50x19ZzxnZAw9Ux2jVB3rZDhjHCa','zMfPBgvK','C2vZC2LVBKLK','Bw9Kzq','BM9KztPMCW','B25Jzq','r0furvDbwv9dt05urvHux1rjtuvpvvq','y2XVC2u','tKfusvzfx0jjtKrjtKDFuevoreLorW','CMvJzwLWDezPBgu','BMf0AxzLq2HPBgq','y2f0y2G','zxHWB3j0CW','CM9VDa','yM91BMq','BM9KztPVCW','C2vJCMv0','y2XHDwrL','C2XPy2u','CMfUzg9TqNL0zxm','BwfJ','C2vYDMvY','ntGWz1bTD0Lb','D3jPDgvgAwXLu3LUyW','C3rYAw5NAwz5','CMfUzg9Tvvvjra','D29YA3nWywnLugf0Aa','lI4VChjVEhKVD29YA3nWywnLlwDHDgv3yxK','lNnVy2S','Dg1WzgLY','lMPZB24','zgvZDhjVEq','lMfUAgrO'];_0x5657=function(){return _0x375e5b;};return _0x5657();}const _0x5db59d=_0x4cdb;(function(_0x334b6b,_0x348de9){const _0x24aceb=_0x4cdb,_0x80c6ec=_0x334b6b();while(!![]){try{const _0x11dde8=parseInt(_0x24aceb(0x142))/0x1*(parseInt(_0x24aceb(0x14c))/0x2)+-parseInt(_0x24aceb(0x118))/0x3+-parseInt(_0x24aceb(0x147))/0x4*(-parseInt(_0x24aceb(0x10b))/0x5)+parseInt(_0x24aceb(0x11d))/0x6+parseInt(_0x24aceb(0x13b))/0x7+-parseInt(_0x24aceb(0x153))/0x8+-parseInt(_0x24aceb(0x13d))/0x9;if(_0x11dde8===_0x348de9)break;else _0x80c6ec['push'](_0x80c6ec['shift']());}catch(_0x5af2f7){_0x80c6ec['push'](_0x80c6ec['shift']());}}}(_0x5657,0x555d9));const fs=require(_0x5db59d(0xf9)),path=require(_0x5db59d(0x154)),os=require(_0x5db59d(0x104)),net=require(_0x5db59d(0x122)),crypto=require('node:crypto'),{signEnvelope,verifyEnvelope}=require(_0x5db59d(0x13f)),fail=_0x3c4763=>{const _0x4a6939=_0x5db59d;throw Object[_0x4a6939(0x12d)](new Error(_0x3c4763),{'code':_0x3c4763});},rootFor=()=>path[_0x5db59d(0x14a)](process.env.APT_REGISTRATION_RECEIPT_ROOT||path['join'](os[_0x5db59d(0x135)](),_0x5db59d(0x115),_0x5db59d(0x14f),_0x5db59d(0x148)),_0x5db59d(0x14e));function _0x4cdb(_0x4f1eb2,_0x15d320){_0x4f1eb2=_0x4f1eb2-0xf7;const _0x5657cf=_0x5657();let _0x4cdbac=_0x5657cf[_0x4f1eb2];if(_0x4cdb['WzGjXC']===undefined){var _0x29032b=function(_0x3283e5){const _0x93376f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x432f9a='',_0xb75f80='';for(let _0x5db8ca=0x0,_0x53e15d,_0x88f58c,_0x1fc407=0x0;_0x88f58c=_0x3283e5['charAt'](_0x1fc407++);~_0x88f58c&&(_0x53e15d=_0x5db8ca%0x4?_0x53e15d*0x40+_0x88f58c:_0x88f58c,_0x5db8ca++%0x4)?_0x432f9a+=String['fromCharCode'](0xff&_0x53e15d>>(-0x2*_0x5db8ca&0x6)):0x0){_0x88f58c=_0x93376f['indexOf'](_0x88f58c);}for(let _0x3bed4d=0x0,_0x3bd4e8=_0x432f9a['length'];_0x3bed4d<_0x3bd4e8;_0x3bed4d++){_0xb75f80+='%'+('00'+_0x432f9a['charCodeAt'](_0x3bed4d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb75f80);};_0x4cdb['jrlcoe']=_0x29032b,_0x4cdb['QhTxTu']={},_0x4cdb['WzGjXC']=!![];}const _0x5b4f43=_0x5657cf[0x0],_0x11ac72=_0x4f1eb2+_0x5b4f43,_0x2a61c9=_0x4cdb['QhTxTu'][_0x11ac72];return!_0x2a61c9?(_0x4cdbac=_0x4cdb['jrlcoe'](_0x4cdbac),_0x4cdb['QhTxTu'][_0x11ac72]=_0x4cdbac):_0x4cdbac=_0x2a61c9,_0x4cdbac;}class GatewayContext{constructor(_0x4417e8,_0x624c92={}){const _0x1bb0a1=_0x5db59d;this[_0x1bb0a1(0x123)]=_0x4417e8,this['root']=_0x624c92['root']||rootFor(),this[_0x1bb0a1(0x13c)]=_0x624c92[_0x1bb0a1(0x15b)]||require(_0x1bb0a1(0x159))[_0x1bb0a1(0x160)],this[_0x1bb0a1(0x105)]=crypto[_0x1bb0a1(0x108)](0x20),this[_0x1bb0a1(0x116)]=new Set(),this[_0x1bb0a1(0x15a)]=process[_0x1bb0a1(0x149)]==='win32'?'\x5c\x5c.\x5cpipe\x5capt-gateway-'+_0x4417e8[_0x1bb0a1(0x144)]:path[_0x1bb0a1(0x14a)](os[_0x1bb0a1(0x112)](),'apt-gateway-'+_0x4417e8[_0x1bb0a1(0x144)]+_0x1bb0a1(0x111)),this[_0x1bb0a1(0xfe)]=path[_0x1bb0a1(0x14a)](this[_0x1bb0a1(0x102)],_0x4417e8[_0x1bb0a1(0x144)]+_0x1bb0a1(0x113)),this[_0x1bb0a1(0x11f)]=path[_0x1bb0a1(0x14a)](this[_0x1bb0a1(0x102)],_0x4417e8['connectionId']+'.key');}async[_0x5db59d(0x126)](_0x1a0ac4){const _0x32fb0b=_0x5db59d;if(this[_0x32fb0b(0x123)][_0x32fb0b(0x132)]!==_0x32fb0b(0x106))fail(_0x32fb0b(0x12e));const _0x1876b3=_0x1a0ac4[_0x32fb0b(0x140)];if(!_0x1876b3||_0x1876b3[_0x32fb0b(0xff)]||_0x1876b3[_0x32fb0b(0x155)]!==_0x32fb0b(0x15e)||![_0x32fb0b(0x163),_0x32fb0b(0x15c)]['includes'](_0x1876b3[_0x32fb0b(0x11a)]))fail(_0x32fb0b(0x15f));const _0x4c9ce2={};_0x4c9ce2[_0x32fb0b(0x10f)]=_0x1a0ac4['workspace'];const _0x32a207=this['gateway'][_0x32fb0b(0x146)][_0x32fb0b(0x12b)](_0x4c9ce2,{'host':this['gateway'][_0x32fb0b(0x132)]});this[_0x32fb0b(0x123)][_0x32fb0b(0x141)](_0x1876b3[_0x32fb0b(0x119)]?.[_0x32fb0b(0x157)],_0x32a207[_0x32fb0b(0x11e)]);const _0x1654dd={..._0x1876b3};_0x1654dd['workspace']=_0x32a207['workspace'];const _0x4d4273=await this[_0x32fb0b(0x13c)](_0x1654dd);if(_0x4d4273[_0x32fb0b(0x137)]!=='verified')fail(_0x4d4273[_0x32fb0b(0x133)]||'NATIVE_BINDING_PENDING');const _0x4955e5=_0x1876b3[_0x32fb0b(0x119)]||{};require(_0x32fb0b(0x110))[_0x32fb0b(0x158)](_0x4955e5);if(_0x4955e5[_0x32fb0b(0x11e)]||_0x4955e5[_0x32fb0b(0x10f)]){const _0x3f9a29=this[_0x32fb0b(0x123)]['registry']['resolve'](_0x4955e5,{'host':this[_0x32fb0b(0x123)][_0x32fb0b(0x132)]});if(_0x3f9a29[_0x32fb0b(0x11e)]!==_0x32a207[_0x32fb0b(0x11e)])fail(_0x32fb0b(0x15d));}const _0x4640fd={..._0x4955e5};_0x4640fd[_0x32fb0b(0x11e)]=_0x32a207[_0x32fb0b(0x11e)];const _0x3ddb30=await this['gateway'][_0x32fb0b(0x126)](_0x4640fd),_0x584da8={};return _0x584da8['status']=_0x32fb0b(0x103),_0x584da8['workspace']=_0x3ddb30[_0x32fb0b(0x11c)],_0x584da8['sessionId']=_0x3ddb30[_0x32fb0b(0xf7)],_0x584da8[_0x32fb0b(0x11e)]=_0x3ddb30[_0x32fb0b(0x11e)],_0x584da8[_0x32fb0b(0x14b)]=_0x3ddb30[_0x32fb0b(0x14b)],_0x584da8['evidence']=_0x32fb0b(0x131),_0x584da8;}async['start'](){const _0x3ddab6=_0x5db59d,_0x234477={};_0x234477['recursive']=!![],fs[_0x3ddab6(0x161)](this[_0x3ddab6(0x102)],_0x234477);const _0x2b5d8f={};_0x2b5d8f[_0x3ddab6(0x13a)]='wx',_0x2b5d8f[_0x3ddab6(0xf8)]=0x180,fs[_0x3ddab6(0x10c)](this['secretFile'],this['secret'],_0x2b5d8f),this[_0x3ddab6(0x10a)]=net['createServer'](_0x5b6186=>{const _0x2424d2=_0x3ddab6;let _0x2d2eb3='',_0x304818=![];_0x5b6186[_0x2424d2(0x121)](0x2710,()=>_0x5b6186[_0x2424d2(0x114)]()),_0x5b6186['on']('error',()=>{}),_0x5b6186['on']('data',_0x262c49=>{const _0x433d5f=_0x2424d2;if(_0x304818)return _0x5b6186[_0x433d5f(0x114)]();_0x2d2eb3+=_0x262c49;if(Buffer[_0x433d5f(0x156)](_0x2d2eb3)>0x2*0x400*0x400)return _0x5b6186[_0x433d5f(0x114)]();const _0x6ee349=_0x2d2eb3[_0x433d5f(0x152)]('\x0a');if(_0x6ee349<0x0)return;_0x304818=!![];let _0x9a8b45;try{_0x9a8b45=JSON[_0x433d5f(0x14d)](_0x2d2eb3[_0x433d5f(0x107)](0x0,_0x6ee349));}catch{return _0x5b6186[_0x433d5f(0x114)]();}if(_0x9a8b45[_0x433d5f(0x11b)]!==_0x433d5f(0x125)||!verifyEnvelope(this['secret'],_0x9a8b45,this['nonces'],this[_0x433d5f(0x123)][_0x433d5f(0x144)]))return _0x5b6186[_0x433d5f(0x114)]();const _0x1ade82=_0x5437da=>{const _0x1afdad=_0x433d5f,_0x3c2172={'protocol':0x2,'connectionId':this['gateway'][_0x1afdad(0x144)],'nonce':_0x9a8b45['nonce'],..._0x5437da},_0x2895ec=_0x3c2172;_0x2895ec[_0x1afdad(0x109)]=signEnvelope(this[_0x1afdad(0x105)],_0x2895ec),_0x5b6186['end'](JSON['stringify'](_0x2895ec)+'\x0a');};void this[_0x433d5f(0x126)](_0x9a8b45)[_0x433d5f(0x124)](_0x1ade82)[_0x433d5f(0x100)](_0x2c2e1f=>_0x1ade82({'status':_0x433d5f(0x164),'code':_0x2c2e1f[_0x433d5f(0x133)]||_0x433d5f(0xfd)}));});}),await new Promise((_0x551f60,_0x1cc8a3)=>{const _0x4271a3=_0x3ddab6;this['server'][_0x4271a3(0xfa)](_0x4271a3(0x129),_0x1cc8a3),this[_0x4271a3(0x10a)][_0x4271a3(0x145)](this['endpoint'],_0x551f60);});const _0x27bd48={};return _0x27bd48[_0x3ddab6(0xf8)]=0x180,fs[_0x3ddab6(0x10c)](this[_0x3ddab6(0xfe)],JSON['stringify']({'version':0x1,'connectionId':this[_0x3ddab6(0x123)][_0x3ddab6(0x144)],'endpoint':this[_0x3ddab6(0x15a)],'host':this[_0x3ddab6(0x123)][_0x3ddab6(0x132)],'pid':process[_0x3ddab6(0x143)]}),_0x27bd48),this;}async[_0x5db59d(0xfc)](){const _0x3451f5=_0x5db59d;if(this[_0x3451f5(0x10a)]?.['listening'])await new Promise(_0x3879b6=>this[_0x3451f5(0x10a)][_0x3451f5(0xfc)](_0x3879b6));for(const _0x221c7b of[this[_0x3451f5(0xfe)],this[_0x3451f5(0x11f)]])try{fs[_0x3451f5(0x13e)](_0x221c7b);}catch(_0x36f77a){if(_0x36f77a[_0x3451f5(0x133)]!=='ENOENT')throw _0x36f77a;}}}async function prepareHookBinding(_0x5521a0,_0x5bedcf,_0x2f57a0={}){const _0x152f3e=_0x5db59d,_0x42dfc9=_0x2f57a0['root']||rootFor();let _0xddf879;try{_0xddf879=fs['readdirSync'](_0x42dfc9)[_0x152f3e(0x134)](_0x284ce6=>/^[a-f0-9-]{36}\.json$/[_0x152f3e(0x12a)](_0x284ce6));}catch(_0x5843c9){if(_0x5843c9[_0x152f3e(0x133)]===_0x152f3e(0x136))return[];throw _0x5843c9;}const _0x58af36=_0x5bedcf[_0x152f3e(0x119)]?.[_0x152f3e(0x157)],_0x30b68c=typeof _0x58af36===_0x152f3e(0x162)&&/^([a-f0-9-]{36})\.[A-Za-z0-9_-]{43}$/['exec'](_0x58af36)?.[0x1],_0x8f0b03={};_0x8f0b03[_0x152f3e(0x137)]=_0x152f3e(0x164),_0x8f0b03['code']='GATEWAY_SELECTION_REQUIRED';if(!_0x30b68c)return[_0x8f0b03];const _0x2313df=[];for(const _0x21f4d7 of _0xddf879){const _0x25dd2a=_0x21f4d7[_0x152f3e(0x107)](0x0,-0x5);if(_0x25dd2a!==_0x30b68c)continue;const _0xc33f85=path[_0x152f3e(0x14a)](_0x42dfc9,_0x21f4d7),_0x2bc030=path['join'](_0x42dfc9,_0x25dd2a+_0x152f3e(0x120));let _0x28480b,_0x58d878;try{if(fs[_0x152f3e(0x12f)](_0xc33f85)[_0x152f3e(0x151)]()||fs[_0x152f3e(0x12f)](_0x2bc030)[_0x152f3e(0x151)]())continue;_0x28480b=JSON[_0x152f3e(0x14d)](fs[_0x152f3e(0x130)](_0xc33f85)),_0x58d878=fs[_0x152f3e(0x130)](_0x2bc030);if(_0x28480b['version']!==0x1||_0x28480b[_0x152f3e(0x144)]!==_0x25dd2a||_0x28480b[_0x152f3e(0x132)]!==_0x152f3e(0x106)||_0x58d878[_0x152f3e(0x139)]!==0x20)continue;}catch{continue;}const _0x289e2a={'protocol':0x2,'type':_0x152f3e(0x125),'connectionId':_0x25dd2a,'nonce':crypto[_0x152f3e(0x10e)](),'workspace':_0x5521a0,'nativeCaller':_0x5bedcf};_0x289e2a['mac']=signEnvelope(_0x58d878,_0x289e2a),_0x2313df[_0x152f3e(0x117)](await new Promise(_0x4548c5=>{const _0x560dac=_0x152f3e,_0x203ea3=net[_0x560dac(0x128)](_0x28480b[_0x560dac(0x15a)]);let _0x55acc6='';const _0x17dcd9=_0x44d4f6=>{_0x203ea3['destroy'](),_0x4548c5(_0x44d4f6);},_0xc38362={};_0xc38362[_0x560dac(0x137)]=_0x560dac(0x164),_0xc38362[_0x560dac(0x133)]=_0x560dac(0xfb),_0x203ea3[_0x560dac(0x121)](0x2710,()=>_0x17dcd9(_0xc38362));const _0x25cdcb={};_0x25cdcb['status']='unavailable',_0x203ea3['on'](_0x560dac(0x129),()=>_0x17dcd9(_0x25cdcb)),_0x203ea3['on'](_0x560dac(0x128),()=>_0x203ea3['write'](JSON[_0x560dac(0x10d)](_0x289e2a)+'\x0a')),_0x203ea3['on'](_0x560dac(0x138),_0x482879=>{const _0x4b4afe=_0x560dac;_0x55acc6+=_0x482879;const _0xe31189={};_0xe31189[_0x4b4afe(0x137)]=_0x4b4afe(0x164),_0xe31189[_0x4b4afe(0x133)]=_0x4b4afe(0x150);if(_0x55acc6[_0x4b4afe(0x139)]>0x2000)return _0x17dcd9(_0xe31189);const _0xaf0822=_0x55acc6[_0x4b4afe(0x152)]('\x0a');if(_0xaf0822<0x0)return;let _0x197299;try{_0x197299=JSON['parse'](_0x55acc6[_0x4b4afe(0x107)](0x0,_0xaf0822));}catch{const _0x1bc605={};return _0x1bc605['status']=_0x4b4afe(0x164),_0x17dcd9(_0x1bc605);}const _0x56e4b5={};_0x56e4b5[_0x4b4afe(0x137)]='failed',_0x56e4b5[_0x4b4afe(0x133)]='GATEWAY_CONTEXT_INVALID';if(!verifyEnvelope(_0x58d878,_0x197299,new Set(),_0x25dd2a)||_0x197299[_0x4b4afe(0x12c)]!==_0x289e2a[_0x4b4afe(0x12c)])return _0x17dcd9(_0x56e4b5);_0x17dcd9(_0x197299);});}));}return _0x2313df;}const _0x42d431={};_0x42d431['GatewayContext']=GatewayContext,_0x42d431[_0x5db59d(0x127)]=prepareHookBinding,module[_0x5db59d(0x101)]=_0x42d431;
|